@hyperframes/gcp-cloud-run 0.7.70 → 0.7.72

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/Dockerfile CHANGED
@@ -97,6 +97,7 @@ COPY packages/parsers/package.json packages/parsers/package.json
97
97
  COPY packages/sdk/package.json packages/sdk/package.json
98
98
  COPY packages/sdk-playground/package.json packages/sdk-playground/package.json
99
99
  COPY packages/studio-server/package.json packages/studio-server/package.json
100
+ COPY scripts/package-subpaths.mjs scripts/package-subpaths.mjs
100
101
  RUN bun install --frozen-lockfile
101
102
 
102
103
  # Copy source for the packages the render path needs.
package/dist/events.d.ts CHANGED
@@ -25,6 +25,8 @@ import type { DistributedFormat, SerializableDistributedRenderConfig } from "@hy
25
25
  export type { SerializableDistributedRenderConfig } from "@hyperframes/producer/distributed";
26
26
  /** Discriminator for the three roles the one Cloud Run image fulfills. */
27
27
  export type CloudRunAction = "plan" | "renderChunk" | "assemble";
28
+ /** Transport protocol selected for one complete distributed render. */
29
+ export type CloudRunPlanProtocol = "v1" | "v2";
28
30
  /**
29
31
  * Top-level shape of any request body the handler may receive.
30
32
  *
@@ -39,7 +41,7 @@ export type CloudRunEvent = PlanEvent | RenderChunkEvent | AssembleEvent | {
39
41
  Input: CloudRunEvent;
40
42
  };
41
43
  /** Activity A: produce a planDir, upload to GCS. */
42
- export interface PlanEvent {
44
+ interface PlanEventBase {
43
45
  Action: "plan";
44
46
  /** GCS URI pointing at a `tar -czf`-archived project directory (`gs://bucket/key.tar.gz`). */
45
47
  ProjectGcsUri: string;
@@ -48,11 +50,18 @@ export interface PlanEvent {
48
50
  /** `DistributedRenderConfig` minus runtime-only fields (logger, abortSignal). */
49
51
  Config: SerializableDistributedRenderConfig;
50
52
  }
53
+ /** Legacy/default plan transport. Absence is deliberately interpreted as v1. */
54
+ export interface PlanV1Event extends PlanEventBase {
55
+ PlanProtocol?: "v1";
56
+ }
57
+ /** Explicit opt-in to the content-addressed v2 plan transport. */
58
+ export interface PlanV2Event extends PlanEventBase {
59
+ PlanProtocol: "v2";
60
+ }
61
+ export type PlanEvent = PlanV1Event | PlanV2Event;
51
62
  /** Activity B: fetch planDir, render one chunk, upload result. */
52
- export interface RenderChunkEvent {
63
+ interface RenderChunkEventBase {
53
64
  Action: "renderChunk";
54
- /** GCS URI of the plan tar produced by a PlanEvent invocation. */
55
- PlanGcsUri: string;
56
65
  /**
57
66
  * `PlanResult.planHash` from the Plan invocation. The handler verifies
58
67
  * this against the untarred planDir's `plan.json` before invoking the
@@ -68,15 +77,30 @@ export interface RenderChunkEvent {
68
77
  /** Output container format from the plan's encoder.json; drives file vs frame-dir handling. */
69
78
  Format: DistributedFormat;
70
79
  }
80
+ /** Legacy/default chunk event. */
81
+ export interface RenderChunkV1Event extends RenderChunkEventBase {
82
+ PlanProtocol?: "v1";
83
+ /** GCS URI of the v1 plan tar produced by a PlanEvent invocation. */
84
+ PlanGcsUri: string;
85
+ PlanV2ManifestGcsUri?: never;
86
+ PlanV2ArtifactGcsPrefix?: never;
87
+ }
88
+ /**
89
+ * V2 chunk event. It intentionally cannot carry `PlanGcsUri`: the manifest
90
+ * describes the exact content-addressed artifacts needed by this chunk.
91
+ */
92
+ export interface RenderChunkV2Event extends RenderChunkEventBase {
93
+ PlanProtocol: "v2";
94
+ PlanV2ManifestGcsUri: string;
95
+ PlanV2ArtifactGcsPrefix: string;
96
+ PlanGcsUri?: never;
97
+ }
98
+ export type RenderChunkEvent = RenderChunkV1Event | RenderChunkV2Event;
71
99
  /** Activity C: fetch planDir + all chunks + audio, assemble, upload final. */
72
- export interface AssembleEvent {
100
+ interface AssembleEventBase {
73
101
  Action: "assemble";
74
- /** GCS URI of the plan tar produced by a PlanEvent invocation. */
75
- PlanGcsUri: string;
76
102
  /** GCS URIs of every chunk, ordered by chunk index. Length must equal `chunkCount`. */
77
103
  ChunkGcsUris: string[];
78
- /** GCS URI of the planDir's `audio.aac` if the composition has audio; `null` otherwise. */
79
- AudioGcsUri: string | null;
80
104
  /** Final output GCS URI (`gs://bucket/key.mp4`). */
81
105
  OutputGcsUri: string;
82
106
  /** Output container format; drives file vs frame-dir handling. */
@@ -92,10 +116,30 @@ export interface AssembleEvent {
92
116
  */
93
117
  Cfr?: boolean;
94
118
  }
119
+ /** Legacy/default assemble event. */
120
+ export interface AssembleV1Event extends AssembleEventBase {
121
+ PlanProtocol?: "v1";
122
+ /** GCS URI of the v1 plan tar produced by a PlanEvent invocation. */
123
+ PlanGcsUri: string;
124
+ /** Legacy standalone audio locator; `null` when audio is embedded in the v1 plan tar. */
125
+ AudioGcsUri: string | null;
126
+ PlanV2ManifestGcsUri?: never;
127
+ PlanV2ArtifactGcsPrefix?: never;
128
+ }
129
+ /** V2 assemble event, scoped to manifest-declared assembler artifacts. */
130
+ export interface AssembleV2Event extends AssembleEventBase {
131
+ PlanProtocol: "v2";
132
+ PlanV2ManifestGcsUri: string;
133
+ PlanV2ArtifactGcsPrefix: string;
134
+ PlanHash: string;
135
+ PlanGcsUri?: never;
136
+ /** V2 audio is a manifest artifact materialized only for the assembler. */
137
+ AudioGcsUri: null;
138
+ }
139
+ export type AssembleEvent = AssembleV1Event | AssembleV2Event;
95
140
  /** Result of a `plan` invocation. Carries enough to size the Map(N) state. */
96
- export interface PlanResultBody {
141
+ interface PlanResultBodyBase {
97
142
  Action: "plan";
98
- PlanGcsUri: string;
99
143
  PlanHash: string;
100
144
  ChunkCount: number;
101
145
  TotalFrames: number;
@@ -109,6 +153,22 @@ export interface PlanResultBody {
109
153
  ProducerVersion: string;
110
154
  DurationMs: number;
111
155
  }
156
+ /** Existing v1 result. Kept unchanged for wire compatibility. */
157
+ export interface PlanV1ResultBody extends PlanResultBodyBase {
158
+ PlanGcsUri: string;
159
+ PlanProtocol?: never;
160
+ PlanV2ManifestGcsUri?: never;
161
+ PlanV2ArtifactGcsPrefix?: never;
162
+ }
163
+ /** V2 result. The two v2 locators are never aliases for `PlanGcsUri`. */
164
+ export interface PlanV2ResultBody extends PlanResultBodyBase {
165
+ PlanProtocol: "v2";
166
+ PlanV2ManifestGcsUri: string;
167
+ PlanV2ArtifactGcsPrefix: string;
168
+ PlanGcsUri?: never;
169
+ AudioGcsUri: null;
170
+ }
171
+ export type PlanResultBody = PlanV1ResultBody | PlanV2ResultBody;
112
172
  /** Result of a `renderChunk` invocation. Sized ≤200 bytes. */
113
173
  export interface RenderChunkResultBody {
114
174
  Action: "renderChunk";
@@ -1 +1 @@
1
- {"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../src/events.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AAEH,OAAO,KAAK,EACV,iBAAiB,EACjB,mCAAmC,EACpC,MAAM,mCAAmC,CAAC;AAE3C,YAAY,EAAE,mCAAmC,EAAE,MAAM,mCAAmC,CAAC;AAE7F,0EAA0E;AAC1E,MAAM,MAAM,cAAc,GAAG,MAAM,GAAG,aAAa,GAAG,UAAU,CAAC;AAEjE;;;;;;;GAOG;AACH,MAAM,MAAM,aAAa,GACrB,SAAS,GACT,gBAAgB,GAChB,aAAa,GACb;IAAE,OAAO,EAAE,aAAa,CAAA;CAAE,GAC1B;IAAE,KAAK,EAAE,aAAa,CAAA;CAAE,CAAC;AAE7B,oDAAoD;AACpD,MAAM,WAAW,SAAS;IACxB,MAAM,EAAE,MAAM,CAAC;IACf,8FAA8F;IAC9F,aAAa,EAAE,MAAM,CAAC;IACtB,yFAAyF;IACzF,mBAAmB,EAAE,MAAM,CAAC;IAC5B,iFAAiF;IACjF,MAAM,EAAE,mCAAmC,CAAC;CAC7C;AAED,kEAAkE;AAClE,MAAM,WAAW,gBAAgB;IAC/B,MAAM,EAAE,aAAa,CAAC;IACtB,kEAAkE;IAClE,UAAU,EAAE,MAAM,CAAC;IACnB;;;;;;OAMG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB,yDAAyD;IACzD,UAAU,EAAE,MAAM,CAAC;IACnB,0FAA0F;IAC1F,oBAAoB,EAAE,MAAM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WAAW,EAAE,IAAI,CAAC;CACnB;AAED,MAAM,MAAM,cAAc,GAAG,gBAAgB,GAAG,gBAAgB,CAAC;AAEjE,8DAA8D;AAC9D,MAAM,WAAW,qBAAqB;IACpC,MAAM,EAAE,aAAa,CAAC;IACtB,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,EAAE,MAAM,CAAC;IACf,aAAa,EAAE,MAAM,CAAC;IACtB,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,0CAA0C;AAC1C,MAAM,WAAW,kBAAkB;IACjC,MAAM,EAAE,UAAU,CAAC;IACnB,YAAY,EAAE,MAAM,CAAC;IACrB,aAAa,EAAE,MAAM,CAAC;IACtB,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,MAAM,cAAc,GAAG,cAAc,GAAG,qBAAqB,GAAG,kBAAkB,CAAC"}
@@ -30,6 +30,8 @@ export declare function parseGcsUri(uri: string): GcsLocation;
30
30
  export declare function formatGcsUri(loc: GcsLocation): string;
31
31
  /** Stream a GCS object to a local file path. */
32
32
  export declare function downloadGcsObjectToFile(storage: Storage, uri: string, destPath: string): Promise<void>;
33
+ /** Download and verify an immutable plan-v2 artifact before materialization. */
34
+ export declare function downloadGcsObjectToFileVerified(storage: Storage, uri: string, destPath: string, expectedSha256: string): Promise<void>;
33
35
  /**
34
36
  * Upload a local file's contents to a GCS URI using a resumable upload.
35
37
  * GCS objects have no practical size ceiling for the artifacts this adapter
@@ -37,6 +39,16 @@ export declare function downloadGcsObjectToFile(storage: Storage, uri: string, d
37
39
  * upload call works for every case.
38
40
  */
39
41
  export declare function uploadFileToGcs(storage: Storage, localPath: string, uri: string, contentType?: string): Promise<void>;
42
+ /**
43
+ * Upload one content-addressed plan-v2 artifact exactly once.
44
+ *
45
+ * The zero-generation precondition makes creation atomic. Existing objects
46
+ * are reused only when their immutable digest metadata and byte length agree;
47
+ * a conflict is never overwritten because another render may already consume
48
+ * that object.
49
+ */
50
+ export declare function uploadContentAddressedFileToGcs(storage: Storage, localPath: string, uri: string, expectedSha256: string, contentType?: string): Promise<"uploaded" | "reused">;
51
+ export declare function sha256File(path: string): Promise<string>;
40
52
  /**
41
53
  * Pack a directory into a `.tar.gz` at `destTarball`. Uses the `tar` npm
42
54
  * package (pure JS over `node:zlib`) rather than spawning a system tar
@@ -1 +1 @@
1
- {"version":3,"file":"gcsTransport.d.ts","sourceRoot":"","sources":["../src/gcsTransport.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAKH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAGrD,oCAAoC;AACpC,MAAM,WAAW,WAAW;IAC1B,MAAM,EAAE,MAAM,CAAC;IACf,GAAG,EAAE,MAAM,CAAC;CACb;AAED,mFAAmF;AAEnF,wBAAgB,WAAW,CAAC,GAAG,EAAE,MAAM,GAAG,WAAW,CAepD;AAED,+CAA+C;AAC/C,wBAAgB,YAAY,CAAC,GAAG,EAAE,WAAW,GAAG,MAAM,CAErD;AAED,gDAAgD;AAChD,wBAAsB,uBAAuB,CAC3C,OAAO,EAAE,OAAO,EAChB,GAAG,EAAE,MAAM,EACX,QAAQ,EAAE,MAAM,GACf,OAAO,CAAC,IAAI,CAAC,CAQf;AAED;;;;;GAKG;AACH,wBAAsB,eAAe,CACnC,OAAO,EAAE,OAAO,EAChB,SAAS,EAAE,MAAM,EACjB,GAAG,EAAE,MAAM,EACX,WAAW,CAAC,EAAE,MAAM,GACnB,OAAO,CAAC,IAAI,CAAC,CAaf;AAED;;;;GAIG;AACH,wBAAsB,YAAY,CAAC,SAAS,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAMxF;AAED;;;;;GAKG;AACH,wBAAsB,cAAc,CAAC,WAAW,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC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GAIG;AACH,wBAAsB,YAAY,CAAC,SAAS,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAMxF;AAED;;;;;GAKG;AACH,wBAAsB,cAAc,CAAC,WAAW,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAYxF"}
package/dist/index.d.ts CHANGED
@@ -18,9 +18,9 @@
18
18
  * separately.
19
19
  */
20
20
  export { createApp, dispatch, type HandlerDeps, startServer, unwrapEvent } from "./server.js";
21
- export { type AssembleEvent, type AssembleResultBody, type CloudRunAction, type CloudRunEvent, type CloudRunResult, type PlanEvent, type PlanResultBody, type RenderChunkEvent, type RenderChunkResultBody, type SerializableDistributedRenderConfig, } from "./events.js";
21
+ export { type AssembleEvent, type AssembleV1Event, type AssembleV2Event, type AssembleResultBody, type CloudRunAction, type CloudRunEvent, type CloudRunPlanProtocol, type CloudRunResult, type PlanEvent, type PlanResultBody, type PlanV1Event, type PlanV1ResultBody, type PlanV2Event, type PlanV2ResultBody, type RenderChunkEvent, type RenderChunkResultBody, type RenderChunkV1Event, type RenderChunkV2Event, type SerializableDistributedRenderConfig, } from "./events.js";
22
22
  export { ChromeBinaryUnavailableError, resolveChromeExecutablePath } from "./chromium.js";
23
- export { downloadGcsObjectToFile, formatGcsUri, type GcsLocation, parseGcsUri, tarDirectory, untarDirectory, uploadFileToGcs, } from "./gcsTransport.js";
23
+ export { downloadGcsObjectToFile, downloadGcsObjectToFileVerified, formatGcsUri, type GcsLocation, parseGcsUri, sha256File, tarDirectory, untarDirectory, uploadContentAddressedFileToGcs, uploadFileToGcs, } from "./gcsTransport.js";
24
24
  export { deploySite, type DeploySiteOptions, type SiteHandle } from "./sdk/deploySite.js";
25
25
  export { renderToCloudRun, type RenderHandle, type RenderToCloudRunOptions, } from "./sdk/renderToCloudRun.js";
26
26
  export { getRenderProgress, type GetRenderProgressOptions, type RenderError, type RenderProgress, type RenderStatus, } from "./sdk/getRenderProgress.js";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAEH,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,KAAK,WAAW,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC9F,OAAO,EACL,KAAK,aAAa,EAClB,KAAK,kBAAkB,EACvB,KAAK,cAAc,EACnB,KAAK,aAAa,EAClB,KAAK,cAAc,EACnB,KAAK,SAAS,EACd,KAAK,cAAc,EACnB,KAAK,gBAAgB,EACrB,KAAK,qBAAqB,EAC1B,KAAK,mCAAmC,GACzC,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,4BAA4B,EAAE,2BAA2B,EAAE,MAAM,eAAe,CAAC;AAC1F,OAAO,EACL,uBAAuB,EACvB,YAAY,EACZ,KAAK,WAAW,EAChB,WAAW,EACX,YAAY,EACZ,cAAc,EACd,eAAe,GAChB,MAAM,mBAAmB,CAAC;AAG3B,OAAO,EAAE,UAAU,EAAE,KAAK,iBAAiB,EAAE,KAAK,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAC1F,OAAO,EACL,gBAAgB,EAChB,KAAK,YAAY,EACjB,KAAK,uBAAuB,GAC7B,MAAM,2BAA2B,CAAC;AACnC,OAAO,EACL,iBAAiB,EACjB,KAAK,wBAAwB,EAC7B,KAAK,WAAW,EAChB,KAAK,cAAc,EACnB,KAAK,YAAY,GAClB,MAAM,4BAA4B,CAAC;AACpC,OAAO,EACL,KAAK,wBAAwB,EAC7B,iBAAiB,EACjB,KAAK,UAAU,GAChB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,kBAAkB,EAAE,+BAA+B,EAAE,MAAM,yBAAyB,CAAC;AAC9F,OAAO,EAAE,qBAAqB,EAAE,MAAM,gBAAgB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],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