implement DEV workspace and project automation authority

This commit is contained in:
2026-09-29 07:09:37 +01:00
parent 0ddf3ef70d
commit e3c3b2cbb7
62 changed files with 2180 additions and 354 deletions
@@ -0,0 +1,12 @@
package p.studio.api.automation;
import java.util.Objects;
/** Lossless PNG bytes; stride describes the original RGBA8888 buffer, not PNG padding. */
public record CanonicalCapture(String sessionId, String buildId, long logicalFrameIndex,
long frameId, int width, int height, int stridePixels, byte[] png) {
public CanonicalCapture {
Objects.requireNonNull(sessionId); Objects.requireNonNull(buildId); Objects.requireNonNull(png);
if (width <= 0 || height <= 0 || stridePixels < width) throw new IllegalArgumentException("invalid frame layout");
png = png.clone();
}
@Override public byte[] png() { return png.clone(); }
}