@orangecatai/adgen-canvas 0.0.28 → 0.0.30

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.
@@ -1 +1 @@
1
- import{a,b,c,d}from"./chunk-Z5NKEFVG.js";import"./chunk-INDX7AB6.js";import"./chunk-SRAX5OIU.js";export{a as Commands,b as subsetToBase64,c as subsetToBinary,d as toBase64};
1
+ import{a,b,c,d}from"./chunk-Z5NKEFVG.js";import"./chunk-SZMIDXG6.js";import"./chunk-SRAX5OIU.js";export{a as Commands,b as subsetToBase64,c as subsetToBinary,d as toBase64};
@@ -1 +1 @@
1
- import{a as r,c as t}from"./chunk-Z5NKEFVG.js";import"./chunk-INDX7AB6.js";import"./chunk-SRAX5OIU.js";var s=import.meta.url?new URL(import.meta.url):void 0;typeof window>"u"&&typeof self<"u"&&(self.onmessage=async e=>{switch(e.data.command){case r.Subset:let a=await t(e.data.arrayBuffer,e.data.codePoints);self.postMessage(a,{transfer:[a]});break}});export{s as WorkerUrl};
1
+ import{a as r,c as t}from"./chunk-Z5NKEFVG.js";import"./chunk-SZMIDXG6.js";import"./chunk-SRAX5OIU.js";var s=import.meta.url?new URL(import.meta.url):void 0;typeof window>"u"&&typeof self<"u"&&(self.onmessage=async e=>{switch(e.data.command){case r.Subset:let a=await t(e.data.arrayBuffer,e.data.codePoints);self.postMessage(a,{transfer:[a]});break}});export{s as WorkerUrl};
@@ -64,6 +64,13 @@ export declare function runReviewerAgent(opts: {
64
64
  };
65
65
  /** Original user request — first message only, not full conversation history */
66
66
  userBrief: string;
67
+ /**
68
+ * The original user-supplied reference image used to generate this frame
69
+ * (distinct from the brand logo), if one was attached. Lets the reviewer
70
+ * judge fidelity against what the user actually uploaded, not just the
71
+ * text prompt.
72
+ */
73
+ originalImageDataUrl?: string;
67
74
  brandContext?: BrandContext;
68
75
  /** Host proxy URL for the reviewer's OpenRouter call. Key stays server-side. */
69
76
  chatUrl: string;
@@ -45,6 +45,18 @@ export declare function pollVideoJob(jobId: string, videoGenStatusUrl: string, o
45
45
  */
46
46
  export declare function resolveFetchUrl(videoPresignedUrl: string, videoDownloadProxyUrl: string | undefined): string;
47
47
  export declare function fetchSegmentBlob(videoPresignedUrl: string, videoDownloadProxyUrl: string | undefined, signal?: AbortSignal): Promise<Blob>;
48
+ /**
49
+ * Uploads a merged video (chain-stitched or otherwise) to host storage and
50
+ * returns the resulting URL. Presigns a direct-to-S3 PUT rather than posting
51
+ * the bytes through `uploadUrl` itself — Vercel's Serverless Function request
52
+ * body cap (4.5 MB) rejects anything past that size with a bare 413, and a
53
+ * multi-segment stitched video routinely exceeds it. Only small JSON
54
+ * envelopes cross the Function boundary; the video bytes go straight to S3.
55
+ *
56
+ * `uploadUrl` keeps double duty as the "no host configured" fallback so the
57
+ * SDK still works standalone — `!uploadUrl` skips all network calls and
58
+ * returns a local object URL, same as before this flow existed.
59
+ */
48
60
  export declare function uploadMergedVideo(blob: Blob, uploadUrl: string | undefined): Promise<string>;
49
61
  /**
50
62
  * Narrative role of a segment within the ad's arc, assigned by the
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@orangecatai/adgen-canvas",
3
- "version": "0.0.28",
3
+ "version": "0.0.30",
4
4
  "type": "module",
5
5
  "types": "./dist/types/excalidraw/index.d.ts",
6
6
  "main": "./dist/prod/index.js",
@@ -1 +0,0 @@
1
- import{S as a,T as b,U as c}from"../chunk-RI6ZX32X.js";import"../chunk-INDX7AB6.js";import"../chunk-SRAX5OIU.js";export{c as decodePngMetadata,b as encodePngMetadata,a as getTEXtChunk};