@cueframe/kernel 0.1.2 → 0.1.4

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 (126) hide show
  1. package/dist/_members/authoring/agent/errors.d.ts +8 -0
  2. package/dist/_members/authoring/index.d.ts +1 -1
  3. package/dist/_members/authoring/motion/materializeMotionPresetOps.d.ts +4 -0
  4. package/dist/_members/authoring/prompts/index.d.ts +0 -1
  5. package/dist/_members/authoring/types.d.ts +1 -1
  6. package/dist/_members/cloud-import/CloudImportService.d.ts +3 -4
  7. package/dist/_members/cloud-import/ImportProvider.d.ts +3 -7
  8. package/dist/_members/cloud-import/cloudConfig.d.ts +0 -6
  9. package/dist/_members/cloud-import/index.d.ts +2 -4
  10. package/dist/_members/composition/graphics-plan/schemas.d.ts +20 -20
  11. package/dist/_members/composition/primitive-catalog/projection.d.ts +2 -1
  12. package/dist/_members/composition/projection/behind-readiness.d.ts +4 -2
  13. package/dist/_members/composition/validators/brandKit.d.ts +54 -94
  14. package/dist/_members/composition/validators/composePlan.d.ts +52 -52
  15. package/dist/_members/composition/validators/composition.d.ts +213 -253
  16. package/dist/_members/composition/validators/font.d.ts +2 -2
  17. package/dist/_members/composition/validators/index.d.ts +1 -0
  18. package/dist/_members/composition/validators/opaqueId.d.ts +13 -0
  19. package/dist/_members/composition/validators/project.d.ts +11 -15
  20. package/dist/_members/composition/validators/render.d.ts +372 -534
  21. package/dist/_members/composition/validators/session.d.ts +19 -39
  22. package/dist/_members/composition/validators/webhook.d.ts +8 -16
  23. package/dist/_members/composition-ops/index.d.ts +192 -228
  24. package/dist/_members/director/ai-sdk/messages.d.ts +2 -2
  25. package/dist/_members/director/domain/chat.d.ts +4 -4
  26. package/dist/_members/director/testing/contract.d.ts +1 -1
  27. package/dist/_members/errors/registry.d.ts +115 -1
  28. package/dist/_members/mcp/adapter.d.ts +19 -0
  29. package/dist/_members/mcp/core.d.ts +1 -1
  30. package/dist/_members/mcp/curation.d.ts +4 -0
  31. package/dist/_members/mcp/generated/harness.d.ts +1 -1
  32. package/dist/_members/mcp/generated/operations.d.ts +12 -0
  33. package/dist/_members/mcp/wait.d.ts +1 -1
  34. package/dist/_members/media-model/api.d.ts +53 -109
  35. package/dist/_members/media-model/generation.d.ts +2 -2
  36. package/dist/_members/media-model/index.d.ts +1 -0
  37. package/dist/_members/media-model/opaqueId.d.ts +10 -0
  38. package/dist/_members/render-harness/localRender.d.ts +3 -0
  39. package/dist/_members/render-harness/localRender.d.ts.map +1 -1
  40. package/dist/_members/render-harness/remotion-runtime.d.ts +53 -0
  41. package/dist/authoring/build-tools.js +6 -6
  42. package/dist/authoring/context.js +4 -4
  43. package/dist/authoring/prompts.js +1 -5
  44. package/dist/authoring/tools.js +5 -5
  45. package/dist/authoring.js +40 -27
  46. package/dist/chunk-2SNY75AR.js +498 -0
  47. package/dist/{chunk-XQ72DZKJ.js → chunk-7TQCR7AB.js} +1 -1
  48. package/dist/{chunk-QETYXKQQ.js → chunk-7V3F5HO4.js} +97 -14
  49. package/dist/{chunk-BZZTVOGG.js → chunk-D2EGO543.js} +5 -5
  50. package/dist/{chunk-ZPLJ24OV.js → chunk-D6S3ZKIY.js} +1 -1
  51. package/dist/{chunk-K2IUBCND.js → chunk-HFC3MKXA.js} +0 -51
  52. package/dist/{chunk-ICSZF37W.js → chunk-JRIPQ7DN.js} +1 -1
  53. package/dist/{chunk-TFGKUWHY.js → chunk-JTVFIN6H.js} +15 -19
  54. package/dist/{chunk-DCVJWGIA.js → chunk-JY26PIRP.js} +2 -2
  55. package/dist/{chunk-DWLNPNC4.js → chunk-LSP4HN5N.js} +1 -1
  56. package/dist/{chunk-AO744WIK.js → chunk-PJ4R4N4Q.js} +123 -38
  57. package/dist/{chunk-VFMW3JUY.js → chunk-QSDFTYKV.js} +1 -1
  58. package/dist/{chunk-LLUW26BS.js → chunk-R5BMJ2NX.js} +38 -2
  59. package/dist/{chunk-W3SIWT7J.js → chunk-RQ2G4DXI.js} +406 -174
  60. package/dist/{chunk-VHF66LCQ.js → chunk-RXCEPCAQ.js} +102 -41
  61. package/dist/{chunk-LJ5W4ZBU.js → chunk-TLVPDT4R.js} +1 -1
  62. package/dist/{chunk-PIURX6IZ.js → chunk-WTT3GGCA.js} +9 -4
  63. package/dist/{chunk-CAJQ7H5A.js → chunk-YE3F4LNJ.js} +17 -17
  64. package/dist/{chunk-TD347SSX.js → chunk-YXEZ75MB.js} +31 -20
  65. package/dist/{chunk-TPA6PYN2.js → chunk-ZBRPF6GV.js} +25 -10
  66. package/dist/cloud-import.js +20 -116
  67. package/dist/compose/renderer.js +17 -17
  68. package/dist/compose.js +18 -18
  69. package/dist/composition/graphics-plan.js +1 -1
  70. package/dist/composition/ops.js +3 -3
  71. package/dist/composition/primitive-catalog.js +1 -1
  72. package/dist/composition/projection.js +2 -2
  73. package/dist/composition/validators.js +4 -2
  74. package/dist/composition-ops.js +6 -6
  75. package/dist/composition.js +6 -4
  76. package/dist/{context-JLLU3MYD.js → context-XWNT6QZH.js} +4 -4
  77. package/dist/core/render.js +3 -3
  78. package/dist/core/select.js +2 -2
  79. package/dist/core.js +3 -3
  80. package/dist/director/ai-sdk.js +3 -3
  81. package/dist/director/domain.js +2 -2
  82. package/dist/director.js +3 -3
  83. package/dist/errors.js +1 -1
  84. package/dist/mcp/adapter.js +59 -22
  85. package/dist/mcp/core.js +1 -1
  86. package/dist/mcp/curation.js +5 -1
  87. package/dist/mcp/server.js +4 -4
  88. package/dist/mcp.js +4 -4
  89. package/dist/media-model/media-kind.js +98 -9
  90. package/dist/media-model/testing.js +6 -6
  91. package/dist/media-model.js +83 -77
  92. package/dist/nle-export.js +18 -18
  93. package/dist/primitives/backgrounds.js +2 -2
  94. package/dist/primitives/captions.js +3 -3
  95. package/dist/primitives/effects.js +2 -2
  96. package/dist/primitives/hero-text.js +2 -2
  97. package/dist/primitives/layouts.js +2 -2
  98. package/dist/primitives/lib/index.js +12 -12
  99. package/dist/primitives/lib.js +12 -12
  100. package/dist/primitives/scenes.js +2 -2
  101. package/dist/primitives/text.js +2 -2
  102. package/dist/primitives/ui-blocks.js +2 -2
  103. package/dist/primitives.js +19 -19
  104. package/dist/render-harness.js +4 -2
  105. package/package.json +13 -37
  106. package/dist/_members/authoring/prompts/designReviewerPrompt.d.ts +0 -2
  107. package/dist/_members/cloud-import/MediaItemPreprocessor.d.ts +0 -18
  108. package/dist/_members/cloud-import/multipartUpload.d.ts +0 -12
  109. package/dist/_members/convex-api/api.d.ts +0 -2
  110. package/dist/_members/convex-api/dataModel.d.ts +0 -4
  111. package/dist/chunk-6IU2UQI5.js +0 -107
  112. package/dist/chunk-EP2Y6M2J.js +0 -64
  113. package/dist/chunk-WZH57M53.js +0 -494
  114. package/dist/cloud-import/multipart.d.ts +0 -1
  115. package/dist/cloud-import/multipart.js +0 -8
  116. package/dist/convex-api/dataModel.d.ts +0 -1
  117. package/dist/convex-api/dataModel.js +0 -0
  118. package/dist/convex-api.d.ts +0 -1
  119. package/dist/convex-api.js +0 -8
  120. package/dist/{chunk-RP4SXXLJ.js → chunk-3PM6VICZ.js} +3 -3
  121. package/dist/{chunk-UQSOS726.js → chunk-6ABIXGLO.js} +4 -4
  122. package/dist/{chunk-SAMQUUO5.js → chunk-BIBYZJL3.js} +3 -3
  123. package/dist/{chunk-GMD33ZD7.js → chunk-O7GNE4BQ.js} +3 -3
  124. package/dist/{chunk-BKHGL4MB.js → chunk-THJAY7QS.js} +4 -4
  125. package/dist/{chunk-DYZE7JZA.js → chunk-TMIBBD5E.js} +3 -3
  126. package/dist/{chunk-G5BFI32U.js → chunk-XATRRDVG.js} +3 -3
@@ -61,8 +61,8 @@ export declare const Font: z.ZodObject<{
61
61
  createdAt: z.ZodOptional<z.ZodNumber>;
62
62
  ownerOrgId: z.ZodOptional<z.ZodString>;
63
63
  }, "strip", z.ZodTypeAny, {
64
+ status: "pending" | "uploading" | "analyzing" | "subsetting" | "ready" | "partial" | "failed";
64
65
  id: string;
65
- status: "partial" | "pending" | "uploading" | "analyzing" | "subsetting" | "ready" | "failed";
66
66
  family: string;
67
67
  variants: [{
68
68
  style: "normal" | "italic";
@@ -86,8 +86,8 @@ export declare const Font: z.ZodObject<{
86
86
  ownerOrgId?: string | undefined;
87
87
  createdAt?: number | undefined;
88
88
  }, {
89
+ status: "pending" | "uploading" | "analyzing" | "subsetting" | "ready" | "partial" | "failed";
89
90
  id: string;
90
- status: "partial" | "pending" | "uploading" | "analyzing" | "subsetting" | "ready" | "failed";
91
91
  family: string;
92
92
  variants: [{
93
93
  style: "normal" | "italic";
@@ -7,3 +7,4 @@ export * from "./registry.js";
7
7
  export * from "./project.js";
8
8
  export * from "./session.js";
9
9
  export * from "./webhook.js";
10
+ export * from "./opaqueId.js";
@@ -0,0 +1,13 @@
1
+ import { z } from "zod";
2
+ /**
3
+ * A provider-neutral identifier carried across CueFrame domain boundaries.
4
+ *
5
+ * Identifiers are deliberately opaque to the portable composition package.
6
+ * Resource-kind and tenant validation belong to the private application
7
+ * boundary that resolves an identifier. Keep this as `z.string()` rather than
8
+ * adding format or non-empty constraints: the former Convex `zid()` schemas
9
+ * accepted every string at runtime, and changing that behavior requires a
10
+ * separate contract migration.
11
+ */
12
+ export declare const OpaqueId: z.ZodString;
13
+ export type OpaqueId = z.infer<typeof OpaqueId>;
@@ -1,62 +1,58 @@
1
1
  import { z } from "zod";
2
2
  export declare const Project: z.ZodObject<{
3
- id: import("convex-helpers/server/zod3").Zid<"projects">;
3
+ id: z.ZodString;
4
4
  name: z.ZodString;
5
5
  defaultFormat: z.ZodOptional<z.ZodObject<{
6
6
  aspectRatio: z.ZodEnum<["16:9", "9:16", "1:1", "4:5"]>;
7
- fps: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<24>, z.ZodLiteral<30>, z.ZodLiteral<60>]>>;
7
+ fps: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<24>, z.ZodLiteral<25>, z.ZodLiteral<30>, z.ZodLiteral<60>]>>;
8
8
  resolution: z.ZodOptional<z.ZodEnum<["hd", "fhd", "4k"]>>;
9
9
  platform: z.ZodOptional<z.ZodString>;
10
10
  }, "strip", z.ZodTypeAny, {
11
11
  aspectRatio: "16:9" | "9:16" | "1:1" | "4:5";
12
- fps?: 24 | 30 | 60 | undefined;
12
+ fps?: 24 | 25 | 30 | 60 | undefined;
13
13
  resolution?: "hd" | "fhd" | "4k" | undefined;
14
14
  platform?: string | undefined;
15
15
  }, {
16
16
  aspectRatio: "16:9" | "9:16" | "1:1" | "4:5";
17
- fps?: 24 | 30 | 60 | undefined;
17
+ fps?: 24 | 25 | 30 | 60 | undefined;
18
18
  resolution?: "hd" | "fhd" | "4k" | undefined;
19
19
  platform?: string | undefined;
20
20
  }>>;
21
21
  palConformDefault: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<24>, z.ZodLiteral<30>]>>;
22
- activeCompositionId: z.ZodOptional<z.ZodNullable<import("convex-helpers/server/zod3").Zid<"compositions">>>;
22
+ activeCompositionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
23
23
  brandKitId: z.ZodOptional<z.ZodString>;
24
24
  ownerOrgId: z.ZodOptional<z.ZodString>;
25
25
  createdAt: z.ZodNumber;
26
26
  updatedAt: z.ZodNumber;
27
27
  }, "strip", z.ZodTypeAny, {
28
- id: string & {
29
- __tableName: "projects";
30
- };
28
+ id: string;
31
29
  name: string;
32
30
  createdAt: number;
33
31
  updatedAt: number;
34
32
  ownerOrgId?: string | undefined;
35
33
  defaultFormat?: {
36
34
  aspectRatio: "16:9" | "9:16" | "1:1" | "4:5";
37
- fps?: 24 | 30 | 60 | undefined;
35
+ fps?: 24 | 25 | 30 | 60 | undefined;
38
36
  resolution?: "hd" | "fhd" | "4k" | undefined;
39
37
  platform?: string | undefined;
40
38
  } | undefined;
41
39
  palConformDefault?: 24 | 30 | undefined;
42
- activeCompositionId?: import("convex/values").GenericId<"compositions"> | null | undefined;
40
+ activeCompositionId?: string | null | undefined;
43
41
  brandKitId?: string | undefined;
44
42
  }, {
45
- id: string & {
46
- __tableName: "projects";
47
- };
43
+ id: string;
48
44
  name: string;
49
45
  createdAt: number;
50
46
  updatedAt: number;
51
47
  ownerOrgId?: string | undefined;
52
48
  defaultFormat?: {
53
49
  aspectRatio: "16:9" | "9:16" | "1:1" | "4:5";
54
- fps?: 24 | 30 | 60 | undefined;
50
+ fps?: 24 | 25 | 30 | 60 | undefined;
55
51
  resolution?: "hd" | "fhd" | "4k" | undefined;
56
52
  platform?: string | undefined;
57
53
  } | undefined;
58
54
  palConformDefault?: 24 | 30 | undefined;
59
- activeCompositionId?: import("convex/values").GenericId<"compositions"> | null | undefined;
55
+ activeCompositionId?: string | null | undefined;
60
56
  brandKitId?: string | undefined;
61
57
  }>;
62
58
  export type Project = z.infer<typeof Project>;