@xpert-ai/plugin-motion 0.2.0 → 0.3.0

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.
Files changed (157) hide show
  1. package/.xpertai-plugin/plugin.json +16 -6
  2. package/README.md +19 -5
  3. package/assets/upstream/UPSTREAM-BASELINE.md +27 -0
  4. package/assets/upstream/app/data/reicon-LICENSE.txt +21 -0
  5. package/dist/assets/upstream/UPSTREAM-BASELINE.md +27 -0
  6. package/dist/assets/upstream/app/data/reicon-LICENSE.txt +21 -0
  7. package/dist/index.d.ts +2 -0
  8. package/dist/index.d.ts.map +1 -1
  9. package/dist/index.js +18 -9
  10. package/dist/index.js.map +1 -1
  11. package/dist/lib/constants.d.ts +7 -1
  12. package/dist/lib/constants.d.ts.map +1 -1
  13. package/dist/lib/constants.js +7 -0
  14. package/dist/lib/constants.js.map +1 -1
  15. package/dist/lib/entities/motion-export.entity.d.ts +13 -1
  16. package/dist/lib/entities/motion-export.entity.d.ts.map +1 -1
  17. package/dist/lib/entities/motion-export.entity.js +49 -1
  18. package/dist/lib/entities/motion-export.entity.js.map +1 -1
  19. package/dist/lib/entities/motion-project-version.entity.d.ts +3 -1
  20. package/dist/lib/entities/motion-project-version.entity.d.ts.map +1 -1
  21. package/dist/lib/entities/motion-project-version.entity.js +8 -0
  22. package/dist/lib/entities/motion-project-version.entity.js.map +1 -1
  23. package/dist/lib/entities/motion-project.entity.d.ts +4 -1
  24. package/dist/lib/entities/motion-project.entity.d.ts.map +1 -1
  25. package/dist/lib/entities/motion-project.entity.js +8 -0
  26. package/dist/lib/entities/motion-project.entity.js.map +1 -1
  27. package/dist/lib/hyperframes-composition.d.ts +16 -0
  28. package/dist/lib/hyperframes-composition.d.ts.map +1 -0
  29. package/dist/lib/hyperframes-composition.js +106 -0
  30. package/dist/lib/hyperframes-composition.js.map +1 -0
  31. package/dist/lib/motion-agent-response.d.ts +8 -0
  32. package/dist/lib/motion-agent-response.d.ts.map +1 -1
  33. package/dist/lib/motion-agent-response.js +13 -0
  34. package/dist/lib/motion-agent-response.js.map +1 -1
  35. package/dist/lib/motion-render.processor.d.ts +9 -0
  36. package/dist/lib/motion-render.processor.d.ts.map +1 -0
  37. package/dist/lib/motion-render.processor.js +25 -0
  38. package/dist/lib/motion-render.processor.js.map +1 -0
  39. package/dist/lib/motion-view.provider.d.ts.map +1 -1
  40. package/dist/lib/motion-view.provider.js +31 -2
  41. package/dist/lib/motion-view.provider.js.map +1 -1
  42. package/dist/lib/motion.middleware.d.ts.map +1 -1
  43. package/dist/lib/motion.middleware.js +20 -6
  44. package/dist/lib/motion.middleware.js.map +1 -1
  45. package/dist/lib/motion.plugin.d.ts.map +1 -1
  46. package/dist/lib/motion.plugin.js +2 -1
  47. package/dist/lib/motion.plugin.js.map +1 -1
  48. package/dist/lib/motion.service.d.ts +174 -3
  49. package/dist/lib/motion.service.d.ts.map +1 -1
  50. package/dist/lib/motion.service.js +376 -19
  51. package/dist/lib/motion.service.js.map +1 -1
  52. package/dist/lib/remote-components/motion-workbench/app.css +1 -1
  53. package/dist/lib/remote-components/motion-workbench/app.js +553 -38
  54. package/dist/lib/types.d.ts +26 -1
  55. package/dist/lib/types.d.ts.map +1 -1
  56. package/dist/lib/types.js.map +1 -1
  57. package/dist/sandbox-actions/hyperframes-render/action.json +10 -0
  58. package/dist/sandbox-actions/hyperframes-render/bundle/runner.mjs +188 -0
  59. package/dist/sandbox-actions/hyperframes-render/bundle/runtime-modules/@esbuild/darwin-arm64/README.md +3 -0
  60. package/dist/sandbox-actions/hyperframes-render/bundle/runtime-modules/@esbuild/darwin-arm64/bin/esbuild +0 -0
  61. package/dist/sandbox-actions/hyperframes-render/bundle/runtime-modules/@esbuild/darwin-arm64/package.json +20 -0
  62. package/dist/sandbox-actions/hyperframes-render/bundle/runtime-modules/@esbuild/linux-x64/README.md +3 -0
  63. package/dist/sandbox-actions/hyperframes-render/bundle/runtime-modules/@esbuild/linux-x64/bin/esbuild +0 -0
  64. package/dist/sandbox-actions/hyperframes-render/bundle/runtime-modules/@esbuild/linux-x64/package.json +20 -0
  65. package/dist/sandbox-actions/hyperframes-render/bundle/runtime-modules/@hyperframes/producer/LICENSE +190 -0
  66. package/dist/sandbox-actions/hyperframes-render/bundle/runtime-modules/@hyperframes/producer/README.md +156 -0
  67. package/dist/sandbox-actions/hyperframes-render/bundle/runtime-modules/@hyperframes/producer/dist/distributed.js +156122 -0
  68. package/dist/sandbox-actions/hyperframes-render/bundle/runtime-modules/@hyperframes/producer/dist/hyperframe.manifest.json +22 -0
  69. package/dist/sandbox-actions/hyperframes-render/bundle/runtime-modules/@hyperframes/producer/dist/hyperframe.runtime.iife.js +356 -0
  70. package/dist/sandbox-actions/hyperframes-render/bundle/runtime-modules/@hyperframes/producer/dist/index.js +169375 -0
  71. package/dist/sandbox-actions/hyperframes-render/bundle/runtime-modules/@hyperframes/producer/dist/public-server.js +167618 -0
  72. package/dist/sandbox-actions/hyperframes-render/bundle/runtime-modules/@hyperframes/producer/dist/services/healthWorkerThread.js +53 -0
  73. package/dist/sandbox-actions/hyperframes-render/bundle/runtime-modules/@hyperframes/producer/dist/services/shaderTransitionWorker.js +606 -0
  74. package/dist/sandbox-actions/hyperframes-render/bundle/runtime-modules/@hyperframes/producer/package.json +109 -0
  75. package/dist/sandbox-actions/hyperframes-render/bundle/runtime-modules/esbuild/LICENSE.md +21 -0
  76. package/dist/sandbox-actions/hyperframes-render/bundle/runtime-modules/esbuild/README.md +3 -0
  77. package/dist/sandbox-actions/hyperframes-render/bundle/runtime-modules/esbuild/bin/esbuild +0 -0
  78. package/dist/sandbox-actions/hyperframes-render/bundle/runtime-modules/esbuild/install.js +289 -0
  79. package/dist/sandbox-actions/hyperframes-render/bundle/runtime-modules/esbuild/lib/main.js +2532 -0
  80. package/dist/sandbox-actions/hyperframes-render/bundle/runtime-modules/esbuild/package.json +49 -0
  81. package/dist/sandbox-actions/hyperframes-render/bundle/runtime-modules/nanoid/LICENSE +20 -0
  82. package/dist/sandbox-actions/hyperframes-render/bundle/runtime-modules/nanoid/README.md +36 -0
  83. package/dist/sandbox-actions/hyperframes-render/bundle/runtime-modules/nanoid/async/index.browser.cjs +42 -0
  84. package/dist/sandbox-actions/hyperframes-render/bundle/runtime-modules/nanoid/async/index.browser.js +42 -0
  85. package/dist/sandbox-actions/hyperframes-render/bundle/runtime-modules/nanoid/async/index.cjs +44 -0
  86. package/dist/sandbox-actions/hyperframes-render/bundle/runtime-modules/nanoid/async/index.js +44 -0
  87. package/dist/sandbox-actions/hyperframes-render/bundle/runtime-modules/nanoid/async/index.native.js +35 -0
  88. package/dist/sandbox-actions/hyperframes-render/bundle/runtime-modules/nanoid/async/package.json +12 -0
  89. package/dist/sandbox-actions/hyperframes-render/bundle/runtime-modules/nanoid/bin/nanoid.cjs +55 -0
  90. package/dist/sandbox-actions/hyperframes-render/bundle/runtime-modules/nanoid/index.browser.cjs +44 -0
  91. package/dist/sandbox-actions/hyperframes-render/bundle/runtime-modules/nanoid/index.browser.js +44 -0
  92. package/dist/sandbox-actions/hyperframes-render/bundle/runtime-modules/nanoid/index.cjs +57 -0
  93. package/dist/sandbox-actions/hyperframes-render/bundle/runtime-modules/nanoid/index.d.cts +91 -0
  94. package/dist/sandbox-actions/hyperframes-render/bundle/runtime-modules/nanoid/index.js +62 -0
  95. package/dist/sandbox-actions/hyperframes-render/bundle/runtime-modules/nanoid/nanoid.js +1 -0
  96. package/dist/sandbox-actions/hyperframes-render/bundle/runtime-modules/nanoid/non-secure/index.cjs +24 -0
  97. package/dist/sandbox-actions/hyperframes-render/bundle/runtime-modules/nanoid/non-secure/index.js +24 -0
  98. package/dist/sandbox-actions/hyperframes-render/bundle/runtime-modules/nanoid/non-secure/package.json +6 -0
  99. package/dist/sandbox-actions/hyperframes-render/bundle/runtime-modules/nanoid/package.json +89 -0
  100. package/dist/sandbox-actions/hyperframes-render/bundle/runtime-modules/nanoid/url-alphabet/index.cjs +4 -0
  101. package/dist/sandbox-actions/hyperframes-render/bundle/runtime-modules/nanoid/url-alphabet/index.js +4 -0
  102. package/dist/sandbox-actions/hyperframes-render/bundle/runtime-modules/nanoid/url-alphabet/package.json +6 -0
  103. package/dist/sandbox-actions/hyperframes-render/bundle/runtime-modules/picocolors/LICENSE +15 -0
  104. package/dist/sandbox-actions/hyperframes-render/bundle/runtime-modules/picocolors/README.md +21 -0
  105. package/dist/sandbox-actions/hyperframes-render/bundle/runtime-modules/picocolors/package.json +25 -0
  106. package/dist/sandbox-actions/hyperframes-render/bundle/runtime-modules/picocolors/picocolors.browser.js +4 -0
  107. package/dist/sandbox-actions/hyperframes-render/bundle/runtime-modules/picocolors/picocolors.js +75 -0
  108. package/dist/sandbox-actions/hyperframes-render/bundle/runtime-modules/postcss/LICENSE +20 -0
  109. package/dist/sandbox-actions/hyperframes-render/bundle/runtime-modules/postcss/README.md +25 -0
  110. package/dist/sandbox-actions/hyperframes-render/bundle/runtime-modules/postcss/lib/at-rule.js +25 -0
  111. package/dist/sandbox-actions/hyperframes-render/bundle/runtime-modules/postcss/lib/comment.js +13 -0
  112. package/dist/sandbox-actions/hyperframes-render/bundle/runtime-modules/postcss/lib/container.js +447 -0
  113. package/dist/sandbox-actions/hyperframes-render/bundle/runtime-modules/postcss/lib/css-syntax-error.js +133 -0
  114. package/dist/sandbox-actions/hyperframes-render/bundle/runtime-modules/postcss/lib/declaration.js +24 -0
  115. package/dist/sandbox-actions/hyperframes-render/bundle/runtime-modules/postcss/lib/document.js +33 -0
  116. package/dist/sandbox-actions/hyperframes-render/bundle/runtime-modules/postcss/lib/fromJSON.js +68 -0
  117. package/dist/sandbox-actions/hyperframes-render/bundle/runtime-modules/postcss/lib/input.js +276 -0
  118. package/dist/sandbox-actions/hyperframes-render/bundle/runtime-modules/postcss/lib/lazy-result.js +563 -0
  119. package/dist/sandbox-actions/hyperframes-render/bundle/runtime-modules/postcss/lib/list.js +58 -0
  120. package/dist/sandbox-actions/hyperframes-render/bundle/runtime-modules/postcss/lib/map-generator.js +376 -0
  121. package/dist/sandbox-actions/hyperframes-render/bundle/runtime-modules/postcss/lib/no-work-result.js +137 -0
  122. package/dist/sandbox-actions/hyperframes-render/bundle/runtime-modules/postcss/lib/node.js +456 -0
  123. package/dist/sandbox-actions/hyperframes-render/bundle/runtime-modules/postcss/lib/parse.js +42 -0
  124. package/dist/sandbox-actions/hyperframes-render/bundle/runtime-modules/postcss/lib/parser.js +618 -0
  125. package/dist/sandbox-actions/hyperframes-render/bundle/runtime-modules/postcss/lib/postcss.d.mts +66 -0
  126. package/dist/sandbox-actions/hyperframes-render/bundle/runtime-modules/postcss/lib/postcss.js +101 -0
  127. package/dist/sandbox-actions/hyperframes-render/bundle/runtime-modules/postcss/lib/postcss.mjs +30 -0
  128. package/dist/sandbox-actions/hyperframes-render/bundle/runtime-modules/postcss/lib/previous-map.js +161 -0
  129. package/dist/sandbox-actions/hyperframes-render/bundle/runtime-modules/postcss/lib/processor.js +67 -0
  130. package/dist/sandbox-actions/hyperframes-render/bundle/runtime-modules/postcss/lib/result.js +42 -0
  131. package/dist/sandbox-actions/hyperframes-render/bundle/runtime-modules/postcss/lib/root.js +61 -0
  132. package/dist/sandbox-actions/hyperframes-render/bundle/runtime-modules/postcss/lib/rule.js +27 -0
  133. package/dist/sandbox-actions/hyperframes-render/bundle/runtime-modules/postcss/lib/stringifier.js +374 -0
  134. package/dist/sandbox-actions/hyperframes-render/bundle/runtime-modules/postcss/lib/stringify.js +11 -0
  135. package/dist/sandbox-actions/hyperframes-render/bundle/runtime-modules/postcss/lib/symbols.js +5 -0
  136. package/dist/sandbox-actions/hyperframes-render/bundle/runtime-modules/postcss/lib/terminal-highlight.js +70 -0
  137. package/dist/sandbox-actions/hyperframes-render/bundle/runtime-modules/postcss/lib/tokenize.js +270 -0
  138. package/dist/sandbox-actions/hyperframes-render/bundle/runtime-modules/postcss/lib/warn-once.js +13 -0
  139. package/dist/sandbox-actions/hyperframes-render/bundle/runtime-modules/postcss/lib/warning.js +37 -0
  140. package/dist/sandbox-actions/hyperframes-render/bundle/runtime-modules/postcss/package.json +88 -0
  141. package/dist/sandbox-actions/hyperframes-render/bundle/runtime-modules/source-map-js/LICENSE +28 -0
  142. package/dist/sandbox-actions/hyperframes-render/bundle/runtime-modules/source-map-js/README.md +765 -0
  143. package/dist/sandbox-actions/hyperframes-render/bundle/runtime-modules/source-map-js/lib/array-set.js +121 -0
  144. package/dist/sandbox-actions/hyperframes-render/bundle/runtime-modules/source-map-js/lib/base64-vlq.js +140 -0
  145. package/dist/sandbox-actions/hyperframes-render/bundle/runtime-modules/source-map-js/lib/base64.js +67 -0
  146. package/dist/sandbox-actions/hyperframes-render/bundle/runtime-modules/source-map-js/lib/binary-search.js +111 -0
  147. package/dist/sandbox-actions/hyperframes-render/bundle/runtime-modules/source-map-js/lib/mapping-list.js +79 -0
  148. package/dist/sandbox-actions/hyperframes-render/bundle/runtime-modules/source-map-js/lib/quick-sort.js +132 -0
  149. package/dist/sandbox-actions/hyperframes-render/bundle/runtime-modules/source-map-js/lib/source-map-consumer.js +1188 -0
  150. package/dist/sandbox-actions/hyperframes-render/bundle/runtime-modules/source-map-js/lib/source-map-generator.js +444 -0
  151. package/dist/sandbox-actions/hyperframes-render/bundle/runtime-modules/source-map-js/lib/source-node.js +413 -0
  152. package/dist/sandbox-actions/hyperframes-render/bundle/runtime-modules/source-map-js/lib/util.js +594 -0
  153. package/dist/sandbox-actions/hyperframes-render/bundle/runtime-modules/source-map-js/package.json +71 -0
  154. package/dist/sandbox-actions/hyperframes-render/bundle/runtime-modules/source-map-js/source-map.js +8 -0
  155. package/dist/xpert-motion-assistant.yaml +240 -37
  156. package/package.json +17 -9
  157. package/skills/motion-agent-skill/SKILL.md +19 -7
@@ -1,10 +1,14 @@
1
1
  export type MotionProjectStatus = 'draft' | 'reviewed' | 'archived' | 'failed';
2
2
  export type MotionSurface = 'web' | 'video';
3
+ export type MotionVideoEngine = 'hyperframes' | 'legacy_canvas';
3
4
  export type MotionVersionSource = 'agent_web' | 'agent_video' | 'workbench' | 'import' | 'restore';
4
5
  export type MotionExportKind = 'html' | 'css' | 'react' | 'lottie' | 'json' | 'mp4' | 'gif';
5
6
  export type MotionActorType = 'agent' | 'user' | 'system';
7
+ export type MotionRenderStatus = 'queued' | 'running' | 'succeeded' | 'failed' | 'cancelled';
8
+ export type MotionRenderQuality = 'draft' | 'standard' | 'high';
9
+ export type MotionRenderKind = Extract<MotionExportKind, 'mp4' | 'gif'>;
6
10
  export type MotionWorkspaceCatalog = 'xperts' | 'projects';
7
- export type MotionActionType = 'project_created' | 'web_artifact_saved' | 'video_composition_saved' | 'media_uploaded' | 'version_finalized' | 'version_restored' | 'project_status_updated' | 'project_archived' | 'project_deleted' | 'style_saved' | 'style_deleted' | 'artifact_exported' | 'failure_reported';
11
+ export type MotionActionType = 'project_created' | 'web_artifact_saved' | 'video_composition_saved' | 'hyperframes_composition_saved' | 'media_uploaded' | 'version_finalized' | 'version_restored' | 'project_status_updated' | 'project_archived' | 'project_deleted' | 'style_saved' | 'style_deleted' | 'artifact_exported' | 'production_render_queued' | 'production_render_completed' | 'production_render_failed' | 'failure_reported';
8
12
  export declare const MOTION_WORKSPACE_FILES_RUNTIME_CAPABILITY = "platform.workspace.files";
9
13
  export type MotionJsonPrimitive = string | number | boolean | null;
10
14
  export type MotionJsonValue = MotionJsonPrimitive | MotionJsonObject | MotionJsonArray;
@@ -166,6 +170,7 @@ export interface CreateMotionProjectInput {
166
170
  selectedRecipeIds?: string[] | null;
167
171
  html?: string | null;
168
172
  videoComposition?: MotionVideoComposition | null;
173
+ hyperframesHtml?: string | null;
169
174
  changeSummary?: string | null;
170
175
  }
171
176
  export interface SearchMotionProjectsInput {
@@ -195,6 +200,26 @@ export interface SaveMotionVideoCompositionInput {
195
200
  layerSelection?: MotionJsonObject | null;
196
201
  changeSummary?: string | null;
197
202
  }
203
+ export interface SaveMotionHyperframesCompositionInput {
204
+ projectId: string;
205
+ html: string;
206
+ selectedRecipeIds?: string[] | null;
207
+ changeSummary?: string | null;
208
+ }
209
+ export interface StartMotionProductionRenderInput {
210
+ projectId: string;
211
+ kind?: MotionRenderKind;
212
+ quality?: MotionRenderQuality;
213
+ fps?: 24 | 30 | 60;
214
+ fileName?: string | null;
215
+ expectedChecksum?: string | null;
216
+ changeSummary?: string | null;
217
+ }
218
+ export interface MotionRenderQueueJobData {
219
+ exportId: string;
220
+ tenantId: string;
221
+ organizationId?: string | null;
222
+ }
198
223
  export interface FinalizeMotionVersionInput {
199
224
  projectId: string;
200
225
  sourceType?: MotionVersionSource;
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/lib/types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,mBAAmB,GAAG,OAAO,GAAG,UAAU,GAAG,UAAU,GAAG,QAAQ,CAAA;AAC9E,MAAM,MAAM,aAAa,GAAG,KAAK,GAAG,OAAO,CAAA;AAC3C,MAAM,MAAM,mBAAmB,GAAG,WAAW,GAAG,aAAa,GAAG,WAAW,GAAG,QAAQ,GAAG,SAAS,CAAA;AAClG,MAAM,MAAM,gBAAgB,GAAG,MAAM,GAAG,KAAK,GAAG,OAAO,GAAG,QAAQ,GAAG,MAAM,GAAG,KAAK,GAAG,KAAK,CAAA;AAC3F,MAAM,MAAM,eAAe,GAAG,OAAO,GAAG,MAAM,GAAG,QAAQ,CAAA;AACzD,MAAM,MAAM,sBAAsB,GAAG,QAAQ,GAAG,UAAU,CAAA;AAC1D,MAAM,MAAM,gBAAgB,GACxB,iBAAiB,GACjB,oBAAoB,GACpB,yBAAyB,GACzB,gBAAgB,GAChB,mBAAmB,GACnB,kBAAkB,GAClB,wBAAwB,GACxB,kBAAkB,GAClB,iBAAiB,GACjB,aAAa,GACb,eAAe,GACf,mBAAmB,GACnB,kBAAkB,CAAA;AAEtB,eAAO,MAAM,yCAAyC,6BAA6B,CAAA;AAEnF,MAAM,MAAM,mBAAmB,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,IAAI,CAAA;AACl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AI,CAAA;IAC5B,QAAQ,CAAC,EAAE,eAAe,CAAA;CAC3B;AAED,MAAM,WAAW,wBAAwB;IACvC,SAAS,EAAE,MAAM,CAAA;IACjB,MAAM,EAAE,MAAM,CAAA;IACd,YAAY,EAAE,MAAM,CAAA;IACpB,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IACxB,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IACpB,OAAO,CAAC,EAAE,OAAO,GAAG,YAAY,GAAG,WAAW,GAAG,QAAQ,GAAG,MAAM,GAAG,IAAI,CAAA;CAC1E"}
@@ -1 +1 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/lib/types.ts"],"names":[],"mappings":"AAqBA,MAAM,CAAC,MAAM,yCAAyC,GAAG,0BAA0B,CAAA"}
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/lib/types.ts"],"names":[],"mappings":"AA6BA,MAAM,CAAC,MAAM,yCAAyC,GAAG,0BAA0B,CAAA"}
@@ -0,0 +1,10 @@
1
+ {
2
+ "name": "motion.hyperframes-render",
3
+ "version": "1.0.0",
4
+ "runtimeProfile": "browser/video-playwright-1.61/v1",
5
+ "runtimeContractVersion": "1",
6
+ "playwrightVersion": "1.61.0",
7
+ "bundle": "./bundle",
8
+ "entrypoint": "runner.mjs",
9
+ "bundleSha256": "0c9e77584f7601ce52660522b9b376f69aaaee347e176a2cb5b627fc1db4f145"
10
+ }
@@ -0,0 +1,188 @@
1
+ #!/usr/bin/env node
2
+
3
+ // sandbox-actions/hyperframes-render/runner.mjs
4
+ import { execFile } from "node:child_process";
5
+ import { cp, mkdir, mkdtemp, readFile, readdir, rm, writeFile } from "node:fs/promises";
6
+ import os from "node:os";
7
+ import path from "node:path";
8
+ import { fileURLToPath, pathToFileURL } from "node:url";
9
+ import { promisify } from "node:util";
10
+ var execFileAsync = promisify(execFile);
11
+ var actionRoot = path.dirname(fileURLToPath(import.meta.url));
12
+ var runtimeModulesRoot = path.join(actionRoot, "runtime-modules");
13
+ main().catch((error) => {
14
+ const message = error instanceof Error ? error.message : String(error);
15
+ process.stderr.write(`${classify(message)}: ${message}
16
+ `);
17
+ process.exit(1);
18
+ });
19
+ async function main() {
20
+ const requestPath = requiredPath("--request");
21
+ const outputDir = requiredPath("--output");
22
+ const request = parseRequest(JSON.parse(await readFile(requestPath, "utf8")));
23
+ await mkdir(outputDir, { recursive: true });
24
+ const workRoot = await mkdtemp(path.join(outputDir, ".motion-hyperframes-"));
25
+ try {
26
+ const projectDir = path.join(workRoot, "project");
27
+ const nodeModules = path.join(workRoot, "node_modules");
28
+ await mkdir(projectDir, { recursive: true });
29
+ await cp(runtimeModulesRoot, nodeModules, { recursive: true, force: true });
30
+ await writeFile(path.join(projectDir, "index.html"), prepareCompositionHtml(request.payload.compositionHtml));
31
+ process.env.PRODUCER_HEADLESS_SHELL_PATH = process.env.PRODUCER_HEADLESS_SHELL_PATH || await findHeadlessShell(playwrightBrowsersRoot());
32
+ process.env.XDG_CACHE_HOME = path.join(workRoot, ".cache");
33
+ process.env.PUPPETEER_SKIP_DOWNLOAD = "true";
34
+ const producerPath = path.join(nodeModules, "@hyperframes", "producer", "dist", "index.js");
35
+ const producer = await import(pathToFileURL(producerPath).href);
36
+ const outputPath = path.join(outputDir, `motion.${request.payload.kind}`);
37
+ const job = producer.createRenderJob({
38
+ fps: request.payload.fps,
39
+ quality: request.payload.quality,
40
+ format: request.payload.kind,
41
+ strictness: "strict",
42
+ workers: renderWorkers(request.payload.quality),
43
+ hdrMode: "force-sdr"
44
+ });
45
+ await producer.executeRenderJob(job, projectDir, outputPath, async (current, message) => {
46
+ const progress = Number.isFinite(current.progress) ? Math.max(0, Math.min(100, current.progress)) : 0;
47
+ await writeFile(
48
+ path.join(workRoot, "progress.json"),
49
+ `${JSON.stringify({
50
+ status: current.status,
51
+ stage: current.currentStage,
52
+ progress,
53
+ message: String(message || "").slice(0, 500)
54
+ })}
55
+ `
56
+ );
57
+ });
58
+ await validateOutput(outputPath, request.payload.kind);
59
+ const ffmpeg = await execFileAsync("ffmpeg", ["-version"], { maxBuffer: 1024 * 1024 });
60
+ const producerPackage = JSON.parse(
61
+ await readFile(path.join(nodeModules, "@hyperframes", "producer", "package.json"), "utf8")
62
+ );
63
+ await writeFile(
64
+ path.join(outputDir, "report.json"),
65
+ `${JSON.stringify(
66
+ {
67
+ renderer: "@hyperframes/producer",
68
+ producerVersion: producerPackage.version,
69
+ nodeVersion: process.versions.node,
70
+ ffmpegVersion: ffmpeg.stdout.split(/\r?\n/)[0] || "unknown",
71
+ kind: request.payload.kind,
72
+ quality: request.payload.quality,
73
+ fps: request.payload.fps,
74
+ outcome: job.outcome ?? "completed",
75
+ totalFrames: job.totalFrames ?? null,
76
+ duration: job.duration ?? null,
77
+ warnings: job.warnings ?? [],
78
+ perfSummary: job.perfSummary ?? null
79
+ },
80
+ null,
81
+ 2
82
+ )}
83
+ `
84
+ );
85
+ } finally {
86
+ await rm(workRoot, { recursive: true, force: true });
87
+ }
88
+ }
89
+ function parseRequest(value) {
90
+ if (!isObject(value) || value.contractVersion !== "1" || value.action !== "motion.hyperframes-render" || value.actionVersion !== "1.0.0") {
91
+ throw new Error("EXPORT_INPUT_INVALID: Sandbox Action contract or version does not match.");
92
+ }
93
+ const payload = value.payload;
94
+ if (!isObject(payload) || payload.kind !== "mp4" && payload.kind !== "gif") {
95
+ throw new Error("EXPORT_INPUT_INVALID: payload kind must be mp4 or gif.");
96
+ }
97
+ if (payload.quality !== "draft" && payload.quality !== "standard" && payload.quality !== "high") {
98
+ throw new Error("EXPORT_INPUT_INVALID: payload quality is invalid.");
99
+ }
100
+ if (payload.fps !== 24 && payload.fps !== 30 && payload.fps !== 60) {
101
+ throw new Error("EXPORT_INPUT_INVALID: payload fps must be 24, 30, or 60.");
102
+ }
103
+ if (typeof payload.compositionHtml !== "string" || !payload.compositionHtml.includes("data-composition-id")) {
104
+ throw new Error("EXPORT_INPUT_INVALID: native HyperFrames composition HTML is required.");
105
+ }
106
+ if (Buffer.byteLength(payload.compositionHtml, "utf8") > 2 * 1024 * 1024) {
107
+ throw new Error("EXPORT_INPUT_INVALID: composition HTML exceeds 2 MB.");
108
+ }
109
+ if (hasExternalAssets(payload.compositionHtml)) {
110
+ throw new Error("EXPORT_INPUT_INVALID: composition assets must be embedded as data URIs.");
111
+ }
112
+ return { payload };
113
+ }
114
+ function hasExternalAssets(html) {
115
+ for (const match of html.matchAll(/\b(?:src|href)\s*=\s*["']([^"']+)["']/gi)) {
116
+ const value = match[1]?.trim() || "";
117
+ if (value && !value.startsWith("#") && !value.startsWith("data:")) return true;
118
+ }
119
+ for (const match of html.matchAll(/url\(\s*["']?([^"')]+)["']?\s*\)/gi)) {
120
+ const value = match[1]?.trim() || "";
121
+ if (value && !value.startsWith("data:")) return true;
122
+ }
123
+ return false;
124
+ }
125
+ function renderWorkers(quality) {
126
+ if (quality === "high") return 4;
127
+ if (quality === "standard") return 2;
128
+ return 1;
129
+ }
130
+ function prepareCompositionHtml(html) {
131
+ if (/\bdata-no-timeline\b/i.test(html) || /<script\b/i.test(html)) return html;
132
+ return html.replace(
133
+ /<[^>]+\bdata-composition-id\s*=\s*["'][^"']+["'][^>]*>/i,
134
+ (root) => root.replace(/>$/, " data-no-timeline>")
135
+ );
136
+ }
137
+ async function validateOutput(outputPath, kind) {
138
+ const content = await readFile(outputPath);
139
+ if (content.length < 16) throw new Error("EXPORT_OUTPUT_INVALID: rendered output is empty.");
140
+ if (kind === "gif") {
141
+ const header = content.subarray(0, 6).toString("ascii");
142
+ if (header !== "GIF87a" && header !== "GIF89a") throw new Error("EXPORT_OUTPUT_INVALID: GIF header is invalid.");
143
+ return;
144
+ }
145
+ if (content.subarray(4, 8).toString("ascii") !== "ftyp")
146
+ throw new Error("EXPORT_OUTPUT_INVALID: MP4 ftyp box is missing.");
147
+ }
148
+ async function findHeadlessShell(root) {
149
+ const queue = [root];
150
+ while (queue.length) {
151
+ const directory = queue.shift();
152
+ const entries = await readdir(directory, { withFileTypes: true }).catch(() => []);
153
+ for (const entry of entries) {
154
+ const candidate = path.join(directory, entry.name);
155
+ if (entry.isFile() && entry.name === "chrome-headless-shell") return candidate;
156
+ if (entry.isDirectory()) queue.push(candidate);
157
+ }
158
+ }
159
+ throw new Error("BROWSER_LAUNCH_FAILED: Runtime Chromium headless shell was not found.");
160
+ }
161
+ function playwrightBrowsersRoot() {
162
+ if (process.env.PLAYWRIGHT_BROWSERS_PATH && process.env.PLAYWRIGHT_BROWSERS_PATH !== "0") {
163
+ return path.resolve(process.env.PLAYWRIGHT_BROWSERS_PATH);
164
+ }
165
+ if (process.platform === "darwin") return path.join(os.homedir(), "Library", "Caches", "ms-playwright");
166
+ if (process.platform === "win32") return path.join(os.homedir(), "AppData", "Local", "ms-playwright");
167
+ return path.join(process.env.XDG_CACHE_HOME || path.join(os.homedir(), ".cache"), "ms-playwright");
168
+ }
169
+ function requiredPath(name) {
170
+ const index = process.argv.indexOf(name);
171
+ const value = index >= 0 ? process.argv[index + 1] : "";
172
+ if (!value || value.includes("\0")) throw new Error(`EXPORT_INPUT_INVALID: ${name} is required.`);
173
+ return path.resolve(value);
174
+ }
175
+ function classify(message) {
176
+ const normalized = message.toUpperCase();
177
+ if (normalized.includes("EXPORT_OUTPUT_INVALID")) return "EXPORT_OUTPUT_INVALID";
178
+ if (normalized.includes("EXPORT_INPUT_INVALID")) return "EXPORT_INPUT_INVALID";
179
+ if (normalized.includes("BROWSER") || normalized.includes("CHROME") || normalized.includes("PUPPETEER"))
180
+ return "BROWSER_LAUNCH_FAILED";
181
+ if (normalized.includes("FFMPEG") || normalized.includes("ENCOD")) return "EXPORT_OUTPUT_INVALID";
182
+ if (normalized.includes("ENOMEM") || normalized.includes("OUT OF MEMORY") || normalized.includes("OOM"))
183
+ return "EXPORT_OOM";
184
+ return "SANDBOX_START_FAILED";
185
+ }
186
+ function isObject(value) {
187
+ return typeof value === "object" && value !== null && !Array.isArray(value);
188
+ }
@@ -0,0 +1,3 @@
1
+ # esbuild
2
+
3
+ This is the macOS ARM 64-bit binary for esbuild, a JavaScript bundler and minifier. See https://github.com/evanw/esbuild for details.
@@ -0,0 +1,20 @@
1
+ {
2
+ "name": "@esbuild/darwin-arm64",
3
+ "version": "0.27.7",
4
+ "description": "The macOS ARM 64-bit binary for esbuild, a JavaScript bundler.",
5
+ "repository": {
6
+ "type": "git",
7
+ "url": "git+https://github.com/evanw/esbuild.git"
8
+ },
9
+ "license": "MIT",
10
+ "preferUnplugged": true,
11
+ "engines": {
12
+ "node": ">=18"
13
+ },
14
+ "os": [
15
+ "darwin"
16
+ ],
17
+ "cpu": [
18
+ "arm64"
19
+ ]
20
+ }
@@ -0,0 +1,3 @@
1
+ # esbuild
2
+
3
+ This is the Linux 64-bit binary for esbuild, a JavaScript bundler and minifier. See https://github.com/evanw/esbuild for details.
@@ -0,0 +1,20 @@
1
+ {
2
+ "name": "@esbuild/linux-x64",
3
+ "version": "0.27.7",
4
+ "description": "The Linux 64-bit binary for esbuild, a JavaScript bundler.",
5
+ "repository": {
6
+ "type": "git",
7
+ "url": "git+https://github.com/evanw/esbuild.git"
8
+ },
9
+ "license": "MIT",
10
+ "preferUnplugged": true,
11
+ "engines": {
12
+ "node": ">=18"
13
+ },
14
+ "os": [
15
+ "linux"
16
+ ],
17
+ "cpu": [
18
+ "x64"
19
+ ]
20
+ }
@@ -0,0 +1,190 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to the Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by the Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding any notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
177
+
178
+ Copyright 2026 HeyGen, Inc.
179
+
180
+ Licensed under the Apache License, Version 2.0 (the "License");
181
+ you may not use this file except in compliance with the License.
182
+ You may obtain a copy of the License at
183
+
184
+ http://www.apache.org/licenses/LICENSE-2.0
185
+
186
+ Unless required by applicable law or agreed to in writing, software
187
+ distributed under the License is distributed on an "AS IS" BASIS,
188
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
189
+ See the License for the specific language governing permissions and
190
+ limitations under the License.