@promptframe/contracts 0.1.0 → 0.1.2

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/README.md CHANGED
@@ -1,5 +1,5 @@
1
1
  # @promptframe/contracts
2
2
 
3
- Public contracts for PromptFrame component manifests, component references, diagnostics and layout capability cards.
3
+ Public contracts for PromptFrame component manifests, component references, diagnostics, layout capability cards, and public authoring policy metadata.
4
4
 
5
- This package is intentionally small and safe to consume from authoring tools, templates and platform integration code.
5
+ This package is intentionally small and safe to consume from authoring tools, templates, and platform integration code. It exports the public standard/security policy IDs used by `@promptframe/cli` so automation can rely on stable diagnostics without reading platform-internal docs.
package/dist/index.d.ts CHANGED
@@ -2,9 +2,192 @@ import { z } from 'zod';
2
2
  export declare const PROMPTFRAME_CONTRACTS_VERSION: "promptframe-contracts.v0.1.0";
3
3
  export declare const COMPONENT_MANIFEST_SCHEMA_VERSION: "component-manifest.v0.1.0";
4
4
  export declare const COMPONENT_STANDARD_VERSION: "component-standard.v0.1.0";
5
+ export declare const COMPONENT_STANDARD_SOURCE_HASH: "sha256:8c1e01c36155b4b646981064d24df9bd8cda501fd9cd9da93e5b62f40db22d52";
5
6
  export declare const COMPONENT_REF_VERSION: "component-ref.v0.1.0";
6
7
  export declare const LAYOUT_CAPABILITY_VERSION: "layout-capability.v0.1.0";
7
8
  export declare const CAPABILITY_CARD_VERSION: "component-capability-card.v0.1.0";
9
+ export declare const COMPONENT_STANDARD_POLICY_VERSION: "component-standard-policy.v0.1.0";
10
+ export declare const COMPONENT_SECURITY_POLICY_VERSION: "component-security-policy.v0.1.0";
11
+ export declare const PROMPTFRAME_PUBLIC_STANDARD_POLICY: {
12
+ readonly policyVersion: "component-standard-policy.v0.1.0";
13
+ readonly sourceVersion: "component-standard.v0.1.0";
14
+ readonly sourceHash: "sha256:8c1e01c36155b4b646981064d24df9bd8cda501fd9cd9da93e5b62f40db22d52";
15
+ readonly manifestSchemaVersion: "component-manifest.v0.1.0";
16
+ readonly requiredFiles: readonly ["manifest.json", "package.json", "src/Component.tsx", "src/schema.ts", "src/index.ts", "src/preview-props.json"];
17
+ readonly ignoredPackageDirectories: readonly ["node_modules", "dist", ".git", ".component-packages", ".promptframe"];
18
+ readonly previewLimits: {
19
+ readonly maxDurationFrames: 180;
20
+ readonly maxWidth: 1280;
21
+ readonly maxHeight: 720;
22
+ readonly allowedFps: readonly [30];
23
+ };
24
+ readonly sourceSafetyRules: readonly [{
25
+ readonly id: "component_standard.source.no_math_random";
26
+ readonly stage: "build";
27
+ readonly severity: "error";
28
+ readonly pattern: "Math\\.random\\s*\\(";
29
+ readonly message: "Math.random() is not allowed in PromptFrame components; use Remotion random(seed).";
30
+ readonly repairHint: "Derive random-looking values from props, frame, or a stable seed.";
31
+ }, {
32
+ readonly id: "component_standard.source.no_date_now";
33
+ readonly stage: "build";
34
+ readonly severity: "error";
35
+ readonly pattern: "Date\\.now\\s*\\(";
36
+ readonly message: "Date.now() is not allowed because renders must be deterministic.";
37
+ readonly repairHint: "Use useCurrentFrame(), useVideoConfig(), and props-derived timing.";
38
+ }, {
39
+ readonly id: "component_standard.source.no_native_img";
40
+ readonly stage: "build";
41
+ readonly severity: "error";
42
+ readonly pattern: "<img\\b";
43
+ readonly message: "Native <img> is not allowed; use Remotion <Img>.";
44
+ readonly repairHint: "Import Img from remotion and replace native img tags.";
45
+ }, {
46
+ readonly id: "component_standard.source.no_native_video";
47
+ readonly stage: "build";
48
+ readonly severity: "error";
49
+ readonly pattern: "<video\\b";
50
+ readonly message: "Native <video> is not allowed; use Remotion <Video>.";
51
+ readonly repairHint: "Import Video from remotion and replace native video tags.";
52
+ }, {
53
+ readonly id: "component_standard.source.no_css_transition";
54
+ readonly stage: "build";
55
+ readonly severity: "error";
56
+ readonly pattern: "transition\\s*:";
57
+ readonly message: "CSS transition is not allowed; animation must be frame-driven.";
58
+ readonly repairHint: "Use interpolate(), spring(), or frame-derived styles.";
59
+ }, {
60
+ readonly id: "component_standard.source.no_css_keyframes";
61
+ readonly stage: "build";
62
+ readonly severity: "error";
63
+ readonly pattern: "@keyframes";
64
+ readonly message: "CSS keyframes are not allowed; animation must be frame-driven.";
65
+ readonly repairHint: "Replace keyframes with Remotion frame-driven animation.";
66
+ }];
67
+ };
68
+ export declare const PROMPTFRAME_PUBLIC_SECURITY_POLICY: {
69
+ readonly policyVersion: "component-security-policy.v0.1.0";
70
+ readonly forbiddenApis: readonly [{
71
+ readonly id: "code.eval";
72
+ readonly label: "Dynamic code execution";
73
+ readonly patterns: readonly ["\\beval\\s*\\("];
74
+ readonly action: "reject";
75
+ readonly category: "dynamic_code_execution";
76
+ readonly severity: "high";
77
+ readonly reason: "Third-party components cannot execute string code.";
78
+ readonly recommendation: "Remove eval and use deterministic props/frame-driven logic.";
79
+ }, {
80
+ readonly id: "code.new_function";
81
+ readonly label: "new Function dynamic execution";
82
+ readonly patterns: readonly ["\\bnew\\s+Function\\s*\\("];
83
+ readonly action: "reject";
84
+ readonly category: "dynamic_code_execution";
85
+ readonly severity: "high";
86
+ readonly reason: "Third-party components cannot build and run arbitrary code strings.";
87
+ readonly recommendation: "Remove new Function.";
88
+ }, {
89
+ readonly id: "code.string_timer";
90
+ readonly label: "String timer execution";
91
+ readonly patterns: readonly ["\\bset(?:Timeout|Interval)\\s*\\(\\s*['\"`]"];
92
+ readonly action: "reject";
93
+ readonly category: "dynamic_code_execution";
94
+ readonly severity: "high";
95
+ readonly reason: "String timers are equivalent to dynamic code execution.";
96
+ readonly recommendation: "Do not pass strings to setTimeout or setInterval.";
97
+ }, {
98
+ readonly id: "host.fs_process_env";
99
+ readonly label: "Host filesystem, process, or env access";
100
+ readonly patterns: readonly ["\\b(node:fs|fs\\/promises|child_process|process\\.env|Bun\\.|Deno\\.)\\b"];
101
+ readonly action: "reject";
102
+ readonly category: "filesystem_process_env_access";
103
+ readonly severity: "critical";
104
+ readonly reason: "Components must not read host files, spawn processes, or access environment variables.";
105
+ readonly recommendation: "Use only platform-provided props and trusted artifacts.";
106
+ }];
107
+ readonly mediatedApis: readonly [{
108
+ readonly id: "network.raw_fetch";
109
+ readonly label: "Raw network access";
110
+ readonly rawApis: readonly ["fetch", "XMLHttpRequest", "WebSocket", "EventSource", "navigator.sendBeacon"];
111
+ readonly defaultAction: "manual_review";
112
+ readonly category: "network_exfiltration";
113
+ readonly severity: "high";
114
+ readonly reason: "Marketplace components must not self-network; assets should be injected by the platform.";
115
+ readonly recommendation: "Remove raw network access or use an audited platform wrapper with an allowlist.";
116
+ }, {
117
+ readonly id: "network.runtime_fetch_json_unconfigured";
118
+ readonly label: "Unconfigured platform JSON network access";
119
+ readonly rawApis: readonly ["componentRuntime.fetchJson"];
120
+ readonly defaultAction: "manual_review";
121
+ readonly category: "network_exfiltration";
122
+ readonly severity: "high";
123
+ readonly reason: "Platform-mediated network calls still require an explicit allowlist.";
124
+ readonly recommendation: "Configure an allowlist or remove the network dependency.";
125
+ }];
126
+ readonly warningApis: readonly [{
127
+ readonly id: "dom.dangerous_html";
128
+ readonly label: "Dangerous HTML injection";
129
+ readonly patterns: readonly ["dangerouslySetInnerHTML|\\.innerHTML\\s*="];
130
+ readonly action: "manual_review";
131
+ readonly category: "dangerous_html_injection";
132
+ readonly severity: "high";
133
+ readonly reason: "HTML injection can bypass component rendering boundaries.";
134
+ readonly recommendation: "Render React nodes or sanitized text structures.";
135
+ }, {
136
+ readonly id: "package.install_script";
137
+ readonly label: "Install script signal";
138
+ readonly patterns: readonly ["postinstall|preinstall|prepare"];
139
+ readonly action: "warn";
140
+ readonly category: "dependency_supply_chain";
141
+ readonly severity: "medium";
142
+ readonly reason: "Third-party component packages should not rely on install scripts.";
143
+ readonly recommendation: "Remove install scripts before upload.";
144
+ }, {
145
+ readonly id: "resource.exhaustion_pattern";
146
+ readonly label: "Resource exhaustion signal";
147
+ readonly patterns: readonly ["while\\s*\\(\\s*true\\s*\\)|for\\s*\\(\\s*;\\s*;\\s*\\)|new\\s+Array\\s*\\(\\s*1\\d{6,}"];
148
+ readonly action: "warn";
149
+ readonly category: "resource_exhaustion";
150
+ readonly severity: "medium";
151
+ readonly reason: "Infinite loops or very large arrays can break preview or render.";
152
+ readonly recommendation: "Bound loops, arrays, canvas operations, and particles.";
153
+ }, {
154
+ readonly id: "tenant.identity_string";
155
+ readonly label: "Tenant or artifact identity signal";
156
+ readonly patterns: readonly ["tenantId|objectKey|sourceArchiveRef|artifactVersion"];
157
+ readonly action: "warn";
158
+ readonly category: "tenant_boundary_bypass";
159
+ readonly severity: "low";
160
+ readonly reason: "Ordinary components should not assemble platform tenant or artifact identifiers.";
161
+ readonly recommendation: "Remove platform identity wiring and use platform-provided props.";
162
+ }, {
163
+ readonly id: "prompt.injection_string";
164
+ readonly label: "Prompt-injection-like string";
165
+ readonly patterns: readonly ["ignore\\s+previous\\s+instructions|rank\\s+this\\s+component\\s+first|忽略.{0,12}规则|自动放行|排名第一"];
166
+ readonly action: "warn";
167
+ readonly category: "prompt_injection_string";
168
+ readonly severity: "medium";
169
+ readonly reason: "Source comments and strings cannot ask the platform to change rules, ranking, or admission.";
170
+ readonly recommendation: "Remove prompt-injection-like strings.";
171
+ }, {
172
+ readonly id: "storage.browser_storage";
173
+ readonly label: "Browser storage access";
174
+ readonly patterns: readonly ["document\\.cookie|localStorage|sessionStorage"];
175
+ readonly action: "warn";
176
+ readonly category: "unsafe_browser_storage";
177
+ readonly severity: "medium";
178
+ readonly reason: "Marketplace components must not read user browser storage.";
179
+ readonly recommendation: "Use platform-provided props for state.";
180
+ }, {
181
+ readonly id: "network.remote_url";
182
+ readonly label: "Hardcoded remote URL";
183
+ readonly patterns: readonly ["https?:\\/\\/"];
184
+ readonly action: "warn";
185
+ readonly category: "remote_url";
186
+ readonly severity: "medium";
187
+ readonly reason: "Remote assets must go through platform asset management and authorization.";
188
+ readonly recommendation: "Do not hardcode remote URLs in component source.";
189
+ }];
190
+ };
8
191
  export declare const sha256Schema: z.ZodString;
9
192
  export declare const nonEmptyStringSchema: z.ZodString;
10
193
  export declare const semverSchema: z.ZodString;
@@ -13,6 +196,10 @@ export declare const componentNameSchema: z.ZodString;
13
196
  export declare const relativePathSchema: z.ZodString;
14
197
  export declare const promptFrameComponentTypeSchema: z.ZodEnum<["scene_template", "contained_widget", "overlay", "transition_effect"]>;
15
198
  export type PromptFrameComponentType = z.infer<typeof promptFrameComponentTypeSchema>;
199
+ export declare const promptFrameManifestLayerSchema: z.ZodEnum<["foundation", "atom", "motion", "element", "scene_template"]>;
200
+ export type PromptFrameManifestLayer = z.infer<typeof promptFrameManifestLayerSchema>;
201
+ export declare const promptFrameManifestCategorySchema: z.ZodEnum<["background", "text", "media", "shape", "card", "layout", "motion", "effect", "scene_template"]>;
202
+ export type PromptFrameManifestCategory = z.infer<typeof promptFrameManifestCategorySchema>;
16
203
  export declare const componentVisibilitySchema: z.ZodEnum<["builtin", "private", "project_private", "team", "public"]>;
17
204
  export type ComponentVisibility = z.infer<typeof componentVisibilitySchema>;
18
205
  export declare const componentRefSchema: z.ZodObject<{
@@ -50,14 +237,14 @@ export declare const componentDiagnosticSchema: z.ZodObject<{
50
237
  }, "strip", z.ZodTypeAny, {
51
238
  code: string;
52
239
  message: string;
53
- severity: "info" | "warning" | "error";
54
- stage: "authoring" | "doctor" | "validate" | "package" | "upload" | "build" | "manifest" | "schema" | "policy" | "preview" | "probe" | "publish";
240
+ severity: "error" | "info" | "warning";
241
+ stage: "build" | "authoring" | "doctor" | "validate" | "package" | "upload" | "manifest" | "schema" | "policy" | "preview" | "probe" | "publish";
55
242
  repairHint?: string | undefined;
56
243
  }, {
57
244
  code: string;
58
245
  message: string;
59
- severity: "info" | "warning" | "error";
60
- stage: "authoring" | "doctor" | "validate" | "package" | "upload" | "build" | "manifest" | "schema" | "policy" | "preview" | "probe" | "publish";
246
+ severity: "error" | "info" | "warning";
247
+ stage: "build" | "authoring" | "doctor" | "validate" | "package" | "upload" | "manifest" | "schema" | "policy" | "preview" | "probe" | "publish";
61
248
  repairHint?: string | undefined;
62
249
  }>;
63
250
  export type ComponentDiagnostic = z.infer<typeof componentDiagnosticSchema>;
@@ -95,19 +282,19 @@ export declare const layoutCapabilitySchema: z.ZodObject<{
95
282
  }, "strip", z.ZodTypeAny, {
96
283
  code: string;
97
284
  message: string;
98
- severity: "info" | "warning" | "error";
99
- stage: "authoring" | "doctor" | "validate" | "package" | "upload" | "build" | "manifest" | "schema" | "policy" | "preview" | "probe" | "publish";
285
+ severity: "error" | "info" | "warning";
286
+ stage: "build" | "authoring" | "doctor" | "validate" | "package" | "upload" | "manifest" | "schema" | "policy" | "preview" | "probe" | "publish";
100
287
  repairHint?: string | undefined;
101
288
  }, {
102
289
  code: string;
103
290
  message: string;
104
- severity: "info" | "warning" | "error";
105
- stage: "authoring" | "doctor" | "validate" | "package" | "upload" | "build" | "manifest" | "schema" | "policy" | "preview" | "probe" | "publish";
291
+ severity: "error" | "info" | "warning";
292
+ stage: "build" | "authoring" | "doctor" | "validate" | "package" | "upload" | "manifest" | "schema" | "policy" | "preview" | "probe" | "publish";
106
293
  repairHint?: string | undefined;
107
294
  }>, "many">>;
108
295
  }, "strip", z.ZodTypeAny, {
109
296
  contractVersion: "layout-capability.v0.1.0";
110
- recommendedSlot: "full_screen" | "half_screen" | "card" | "badge" | "text_line" | "transition_slot";
297
+ recommendedSlot: "card" | "full_screen" | "half_screen" | "badge" | "text_line" | "transition_slot";
111
298
  minReadableSize: {
112
299
  width: number;
113
300
  height: number;
@@ -120,13 +307,13 @@ export declare const layoutCapabilitySchema: z.ZodObject<{
120
307
  diagnostics: {
121
308
  code: string;
122
309
  message: string;
123
- severity: "info" | "warning" | "error";
124
- stage: "authoring" | "doctor" | "validate" | "package" | "upload" | "build" | "manifest" | "schema" | "policy" | "preview" | "probe" | "publish";
310
+ severity: "error" | "info" | "warning";
311
+ stage: "build" | "authoring" | "doctor" | "validate" | "package" | "upload" | "manifest" | "schema" | "policy" | "preview" | "probe" | "publish";
125
312
  repairHint?: string | undefined;
126
313
  }[];
127
314
  lastVerifiedAt?: string | undefined;
128
315
  }, {
129
- recommendedSlot: "full_screen" | "half_screen" | "card" | "badge" | "text_line" | "transition_slot";
316
+ recommendedSlot: "card" | "full_screen" | "half_screen" | "badge" | "text_line" | "transition_slot";
130
317
  minReadableSize: {
131
318
  width: number;
132
319
  height: number;
@@ -141,8 +328,8 @@ export declare const layoutCapabilitySchema: z.ZodObject<{
141
328
  diagnostics?: {
142
329
  code: string;
143
330
  message: string;
144
- severity: "info" | "warning" | "error";
145
- stage: "authoring" | "doctor" | "validate" | "package" | "upload" | "build" | "manifest" | "schema" | "policy" | "preview" | "probe" | "publish";
331
+ severity: "error" | "info" | "warning";
332
+ stage: "build" | "authoring" | "doctor" | "validate" | "package" | "upload" | "manifest" | "schema" | "policy" | "preview" | "probe" | "publish";
146
333
  repairHint?: string | undefined;
147
334
  }[] | undefined;
148
335
  }>;
@@ -179,7 +366,7 @@ export declare const componentManifestEntrySchema: z.ZodObject<{
179
366
  bundleHash?: string | undefined;
180
367
  componentExport?: string | undefined;
181
368
  }>;
182
- export declare const componentManifestSchema: z.ZodObject<{
369
+ export declare const componentManifestSchema: z.ZodEffects<z.ZodObject<{
183
370
  schemaVersion: z.ZodLiteral<"component-manifest.v0.1.0">;
184
371
  standardVersion: z.ZodLiteral<"component-standard.v0.1.0">;
185
372
  standardSourceHash: z.ZodOptional<z.ZodString>;
@@ -187,7 +374,9 @@ export declare const componentManifestSchema: z.ZodObject<{
187
374
  name: z.ZodString;
188
375
  displayName: z.ZodString;
189
376
  version: z.ZodString;
190
- componentType: z.ZodEnum<["scene_template", "contained_widget", "overlay", "transition_effect"]>;
377
+ componentType: z.ZodOptional<z.ZodEnum<["scene_template", "contained_widget", "overlay", "transition_effect"]>>;
378
+ layer: z.ZodOptional<z.ZodEnum<["foundation", "atom", "motion", "element", "scene_template"]>>;
379
+ category: z.ZodOptional<z.ZodEnum<["background", "text", "media", "shape", "card", "layout", "motion", "effect", "scene_template"]>>;
191
380
  trustLevel: z.ZodOptional<z.ZodEnum<["trusted_builtin", "trusted_private", "trusted_marketplace", "untrusted_temporary"]>>;
192
381
  author: z.ZodObject<{
193
382
  id: z.ZodString;
@@ -245,19 +434,19 @@ export declare const componentManifestSchema: z.ZodObject<{
245
434
  }, "strip", z.ZodTypeAny, {
246
435
  code: string;
247
436
  message: string;
248
- severity: "info" | "warning" | "error";
249
- stage: "authoring" | "doctor" | "validate" | "package" | "upload" | "build" | "manifest" | "schema" | "policy" | "preview" | "probe" | "publish";
437
+ severity: "error" | "info" | "warning";
438
+ stage: "build" | "authoring" | "doctor" | "validate" | "package" | "upload" | "manifest" | "schema" | "policy" | "preview" | "probe" | "publish";
250
439
  repairHint?: string | undefined;
251
440
  }, {
252
441
  code: string;
253
442
  message: string;
254
- severity: "info" | "warning" | "error";
255
- stage: "authoring" | "doctor" | "validate" | "package" | "upload" | "build" | "manifest" | "schema" | "policy" | "preview" | "probe" | "publish";
443
+ severity: "error" | "info" | "warning";
444
+ stage: "build" | "authoring" | "doctor" | "validate" | "package" | "upload" | "manifest" | "schema" | "policy" | "preview" | "probe" | "publish";
256
445
  repairHint?: string | undefined;
257
446
  }>, "many">>>;
258
447
  }, "strip", z.ZodTypeAny, {
259
448
  contractVersion?: "layout-capability.v0.1.0" | undefined;
260
- recommendedSlot?: "full_screen" | "half_screen" | "card" | "badge" | "text_line" | "transition_slot" | undefined;
449
+ recommendedSlot?: "card" | "full_screen" | "half_screen" | "badge" | "text_line" | "transition_slot" | undefined;
261
450
  minReadableSize?: {
262
451
  width: number;
263
452
  height: number;
@@ -271,13 +460,13 @@ export declare const componentManifestSchema: z.ZodObject<{
271
460
  diagnostics?: {
272
461
  code: string;
273
462
  message: string;
274
- severity: "info" | "warning" | "error";
275
- stage: "authoring" | "doctor" | "validate" | "package" | "upload" | "build" | "manifest" | "schema" | "policy" | "preview" | "probe" | "publish";
463
+ severity: "error" | "info" | "warning";
464
+ stage: "build" | "authoring" | "doctor" | "validate" | "package" | "upload" | "manifest" | "schema" | "policy" | "preview" | "probe" | "publish";
276
465
  repairHint?: string | undefined;
277
466
  }[] | undefined;
278
467
  }, {
279
468
  contractVersion?: "layout-capability.v0.1.0" | undefined;
280
- recommendedSlot?: "full_screen" | "half_screen" | "card" | "badge" | "text_line" | "transition_slot" | undefined;
469
+ recommendedSlot?: "card" | "full_screen" | "half_screen" | "badge" | "text_line" | "transition_slot" | undefined;
281
470
  minReadableSize?: {
282
471
  width: number;
283
472
  height: number;
@@ -291,8 +480,8 @@ export declare const componentManifestSchema: z.ZodObject<{
291
480
  diagnostics?: {
292
481
  code: string;
293
482
  message: string;
294
- severity: "info" | "warning" | "error";
295
- stage: "authoring" | "doctor" | "validate" | "package" | "upload" | "build" | "manifest" | "schema" | "policy" | "preview" | "probe" | "publish";
483
+ severity: "error" | "info" | "warning";
484
+ stage: "build" | "authoring" | "doctor" | "validate" | "package" | "upload" | "manifest" | "schema" | "policy" | "preview" | "probe" | "publish";
296
485
  repairHint?: string | undefined;
297
486
  }[] | undefined;
298
487
  }>>;
@@ -332,7 +521,6 @@ export declare const componentManifestSchema: z.ZodObject<{
332
521
  schemaVersion: "component-manifest.v0.1.0";
333
522
  standardVersion: "component-standard.v0.1.0";
334
523
  displayName: string;
335
- componentType: "scene_template" | "contained_widget" | "overlay" | "transition_effect";
336
524
  author: {
337
525
  id: string;
338
526
  name: string;
@@ -357,11 +545,9 @@ export declare const componentManifestSchema: z.ZodObject<{
357
545
  capabilityHints: string[];
358
546
  license: string;
359
547
  createdAt: string;
360
- standardSourceHash?: string | undefined;
361
- trustLevel?: "trusted_builtin" | "trusted_private" | "trusted_marketplace" | "untrusted_temporary" | undefined;
362
548
  layout?: {
363
549
  contractVersion?: "layout-capability.v0.1.0" | undefined;
364
- recommendedSlot?: "full_screen" | "half_screen" | "card" | "badge" | "text_line" | "transition_slot" | undefined;
550
+ recommendedSlot?: "card" | "full_screen" | "half_screen" | "badge" | "text_line" | "transition_slot" | undefined;
365
551
  minReadableSize?: {
366
552
  width: number;
367
553
  height: number;
@@ -375,11 +561,16 @@ export declare const componentManifestSchema: z.ZodObject<{
375
561
  diagnostics?: {
376
562
  code: string;
377
563
  message: string;
378
- severity: "info" | "warning" | "error";
379
- stage: "authoring" | "doctor" | "validate" | "package" | "upload" | "build" | "manifest" | "schema" | "policy" | "preview" | "probe" | "publish";
564
+ severity: "error" | "info" | "warning";
565
+ stage: "build" | "authoring" | "doctor" | "validate" | "package" | "upload" | "manifest" | "schema" | "policy" | "preview" | "probe" | "publish";
380
566
  repairHint?: string | undefined;
381
567
  }[] | undefined;
382
568
  } | undefined;
569
+ standardSourceHash?: string | undefined;
570
+ componentType?: "scene_template" | "contained_widget" | "overlay" | "transition_effect" | undefined;
571
+ layer?: "scene_template" | "foundation" | "atom" | "motion" | "element" | undefined;
572
+ category?: "scene_template" | "motion" | "background" | "text" | "media" | "shape" | "card" | "layout" | "effect" | undefined;
573
+ trustLevel?: "trusted_builtin" | "trusted_private" | "trusted_marketplace" | "untrusted_temporary" | undefined;
383
574
  reviewStatus?: "draft" | "pending_review" | "approved" | "rejected" | "archived" | undefined;
384
575
  }, {
385
576
  version: string;
@@ -388,7 +579,6 @@ export declare const componentManifestSchema: z.ZodObject<{
388
579
  schemaVersion: "component-manifest.v0.1.0";
389
580
  standardVersion: "component-standard.v0.1.0";
390
581
  displayName: string;
391
- componentType: "scene_template" | "contained_widget" | "overlay" | "transition_effect";
392
582
  author: {
393
583
  id: string;
394
584
  name: string;
@@ -409,11 +599,125 @@ export declare const componentManifestSchema: z.ZodObject<{
409
599
  };
410
600
  license: string;
411
601
  createdAt: string;
602
+ layout?: {
603
+ contractVersion?: "layout-capability.v0.1.0" | undefined;
604
+ recommendedSlot?: "card" | "full_screen" | "half_screen" | "badge" | "text_line" | "transition_slot" | undefined;
605
+ minReadableSize?: {
606
+ width: number;
607
+ height: number;
608
+ } | undefined;
609
+ supportedAspectRatios?: ("16:9" | "9:16" | "1:1" | "4:5" | "auto")[] | undefined;
610
+ layoutAdaptivity?: "responsive" | "scales_down" | "reflows" | "clips" | "fixed" | undefined;
611
+ overflowPolicy?: "unknown" | "fit" | "scroll_forbidden" | "clip_with_warning" | undefined;
612
+ safeAreaPolicy?: "required" | "recommended" | "none" | undefined;
613
+ confidence?: number | undefined;
614
+ lastVerifiedAt?: string | undefined;
615
+ diagnostics?: {
616
+ code: string;
617
+ message: string;
618
+ severity: "error" | "info" | "warning";
619
+ stage: "build" | "authoring" | "doctor" | "validate" | "package" | "upload" | "manifest" | "schema" | "policy" | "preview" | "probe" | "publish";
620
+ repairHint?: string | undefined;
621
+ }[] | undefined;
622
+ } | undefined;
623
+ standardSourceHash?: string | undefined;
624
+ componentType?: "scene_template" | "contained_widget" | "overlay" | "transition_effect" | undefined;
625
+ layer?: "scene_template" | "foundation" | "atom" | "motion" | "element" | undefined;
626
+ category?: "scene_template" | "motion" | "background" | "text" | "media" | "shape" | "card" | "layout" | "effect" | undefined;
627
+ trustLevel?: "trusted_builtin" | "trusted_private" | "trusted_marketplace" | "untrusted_temporary" | undefined;
628
+ dependencies?: Record<string, string> | undefined;
629
+ peerDependencies?: Record<string, string> | undefined;
630
+ assets?: Record<string, unknown> | undefined;
631
+ capabilityHints?: string[] | undefined;
632
+ reviewStatus?: "draft" | "pending_review" | "approved" | "rejected" | "archived" | undefined;
633
+ }>, {
634
+ version: string;
635
+ id: string;
636
+ name: string;
637
+ schemaVersion: "component-manifest.v0.1.0";
638
+ standardVersion: "component-standard.v0.1.0";
639
+ displayName: string;
640
+ author: {
641
+ id: string;
642
+ name: string;
643
+ };
644
+ description: string;
645
+ tags: string[];
646
+ designedDurationRange: {
647
+ min: number;
648
+ max: number;
649
+ };
650
+ entry: {
651
+ sourceHash: string;
652
+ schemaHash: string;
653
+ sourcePath: string;
654
+ componentExport: string;
655
+ propsSchemaPath: string;
656
+ bundleHash?: string | undefined;
657
+ };
658
+ dependencies: Record<string, string>;
659
+ peerDependencies: Record<string, string>;
660
+ assets: Record<string, unknown>;
661
+ capabilityHints: string[];
662
+ license: string;
663
+ createdAt: string;
664
+ layout?: {
665
+ contractVersion?: "layout-capability.v0.1.0" | undefined;
666
+ recommendedSlot?: "card" | "full_screen" | "half_screen" | "badge" | "text_line" | "transition_slot" | undefined;
667
+ minReadableSize?: {
668
+ width: number;
669
+ height: number;
670
+ } | undefined;
671
+ supportedAspectRatios?: ("16:9" | "9:16" | "1:1" | "4:5" | "auto")[] | undefined;
672
+ layoutAdaptivity?: "responsive" | "scales_down" | "reflows" | "clips" | "fixed" | undefined;
673
+ overflowPolicy?: "unknown" | "fit" | "scroll_forbidden" | "clip_with_warning" | undefined;
674
+ safeAreaPolicy?: "required" | "recommended" | "none" | undefined;
675
+ confidence?: number | undefined;
676
+ lastVerifiedAt?: string | undefined;
677
+ diagnostics?: {
678
+ code: string;
679
+ message: string;
680
+ severity: "error" | "info" | "warning";
681
+ stage: "build" | "authoring" | "doctor" | "validate" | "package" | "upload" | "manifest" | "schema" | "policy" | "preview" | "probe" | "publish";
682
+ repairHint?: string | undefined;
683
+ }[] | undefined;
684
+ } | undefined;
412
685
  standardSourceHash?: string | undefined;
686
+ componentType?: "scene_template" | "contained_widget" | "overlay" | "transition_effect" | undefined;
687
+ layer?: "scene_template" | "foundation" | "atom" | "motion" | "element" | undefined;
688
+ category?: "scene_template" | "motion" | "background" | "text" | "media" | "shape" | "card" | "layout" | "effect" | undefined;
413
689
  trustLevel?: "trusted_builtin" | "trusted_private" | "trusted_marketplace" | "untrusted_temporary" | undefined;
690
+ reviewStatus?: "draft" | "pending_review" | "approved" | "rejected" | "archived" | undefined;
691
+ }, {
692
+ version: string;
693
+ id: string;
694
+ name: string;
695
+ schemaVersion: "component-manifest.v0.1.0";
696
+ standardVersion: "component-standard.v0.1.0";
697
+ displayName: string;
698
+ author: {
699
+ id: string;
700
+ name: string;
701
+ };
702
+ description: string;
703
+ tags: string[];
704
+ designedDurationRange: {
705
+ min: number;
706
+ max: number;
707
+ };
708
+ entry: {
709
+ sourceHash: string;
710
+ schemaHash: string;
711
+ sourcePath: string;
712
+ propsSchemaPath: string;
713
+ bundleHash?: string | undefined;
714
+ componentExport?: string | undefined;
715
+ };
716
+ license: string;
717
+ createdAt: string;
414
718
  layout?: {
415
719
  contractVersion?: "layout-capability.v0.1.0" | undefined;
416
- recommendedSlot?: "full_screen" | "half_screen" | "card" | "badge" | "text_line" | "transition_slot" | undefined;
720
+ recommendedSlot?: "card" | "full_screen" | "half_screen" | "badge" | "text_line" | "transition_slot" | undefined;
417
721
  minReadableSize?: {
418
722
  width: number;
419
723
  height: number;
@@ -427,11 +731,16 @@ export declare const componentManifestSchema: z.ZodObject<{
427
731
  diagnostics?: {
428
732
  code: string;
429
733
  message: string;
430
- severity: "info" | "warning" | "error";
431
- stage: "authoring" | "doctor" | "validate" | "package" | "upload" | "build" | "manifest" | "schema" | "policy" | "preview" | "probe" | "publish";
734
+ severity: "error" | "info" | "warning";
735
+ stage: "build" | "authoring" | "doctor" | "validate" | "package" | "upload" | "manifest" | "schema" | "policy" | "preview" | "probe" | "publish";
432
736
  repairHint?: string | undefined;
433
737
  }[] | undefined;
434
738
  } | undefined;
739
+ standardSourceHash?: string | undefined;
740
+ componentType?: "scene_template" | "contained_widget" | "overlay" | "transition_effect" | undefined;
741
+ layer?: "scene_template" | "foundation" | "atom" | "motion" | "element" | undefined;
742
+ category?: "scene_template" | "motion" | "background" | "text" | "media" | "shape" | "card" | "layout" | "effect" | undefined;
743
+ trustLevel?: "trusted_builtin" | "trusted_private" | "trusted_marketplace" | "untrusted_temporary" | undefined;
435
744
  dependencies?: Record<string, string> | undefined;
436
745
  peerDependencies?: Record<string, string> | undefined;
437
746
  assets?: Record<string, unknown> | undefined;
@@ -497,19 +806,19 @@ export declare const componentCapabilityCardSchema: z.ZodObject<{
497
806
  }, "strip", z.ZodTypeAny, {
498
807
  code: string;
499
808
  message: string;
500
- severity: "info" | "warning" | "error";
501
- stage: "authoring" | "doctor" | "validate" | "package" | "upload" | "build" | "manifest" | "schema" | "policy" | "preview" | "probe" | "publish";
809
+ severity: "error" | "info" | "warning";
810
+ stage: "build" | "authoring" | "doctor" | "validate" | "package" | "upload" | "manifest" | "schema" | "policy" | "preview" | "probe" | "publish";
502
811
  repairHint?: string | undefined;
503
812
  }, {
504
813
  code: string;
505
814
  message: string;
506
- severity: "info" | "warning" | "error";
507
- stage: "authoring" | "doctor" | "validate" | "package" | "upload" | "build" | "manifest" | "schema" | "policy" | "preview" | "probe" | "publish";
815
+ severity: "error" | "info" | "warning";
816
+ stage: "build" | "authoring" | "doctor" | "validate" | "package" | "upload" | "manifest" | "schema" | "policy" | "preview" | "probe" | "publish";
508
817
  repairHint?: string | undefined;
509
818
  }>, "many">>;
510
819
  }, "strip", z.ZodTypeAny, {
511
820
  contractVersion: "layout-capability.v0.1.0";
512
- recommendedSlot: "full_screen" | "half_screen" | "card" | "badge" | "text_line" | "transition_slot";
821
+ recommendedSlot: "card" | "full_screen" | "half_screen" | "badge" | "text_line" | "transition_slot";
513
822
  minReadableSize: {
514
823
  width: number;
515
824
  height: number;
@@ -522,13 +831,13 @@ export declare const componentCapabilityCardSchema: z.ZodObject<{
522
831
  diagnostics: {
523
832
  code: string;
524
833
  message: string;
525
- severity: "info" | "warning" | "error";
526
- stage: "authoring" | "doctor" | "validate" | "package" | "upload" | "build" | "manifest" | "schema" | "policy" | "preview" | "probe" | "publish";
834
+ severity: "error" | "info" | "warning";
835
+ stage: "build" | "authoring" | "doctor" | "validate" | "package" | "upload" | "manifest" | "schema" | "policy" | "preview" | "probe" | "publish";
527
836
  repairHint?: string | undefined;
528
837
  }[];
529
838
  lastVerifiedAt?: string | undefined;
530
839
  }, {
531
- recommendedSlot: "full_screen" | "half_screen" | "card" | "badge" | "text_line" | "transition_slot";
840
+ recommendedSlot: "card" | "full_screen" | "half_screen" | "badge" | "text_line" | "transition_slot";
532
841
  minReadableSize: {
533
842
  width: number;
534
843
  height: number;
@@ -543,8 +852,8 @@ export declare const componentCapabilityCardSchema: z.ZodObject<{
543
852
  diagnostics?: {
544
853
  code: string;
545
854
  message: string;
546
- severity: "info" | "warning" | "error";
547
- stage: "authoring" | "doctor" | "validate" | "package" | "upload" | "build" | "manifest" | "schema" | "policy" | "preview" | "probe" | "publish";
855
+ severity: "error" | "info" | "warning";
856
+ stage: "build" | "authoring" | "doctor" | "validate" | "package" | "upload" | "manifest" | "schema" | "policy" | "preview" | "probe" | "publish";
548
857
  repairHint?: string | undefined;
549
858
  }[] | undefined;
550
859
  }>;
@@ -558,14 +867,14 @@ export declare const componentCapabilityCardSchema: z.ZodObject<{
558
867
  }, "strip", z.ZodTypeAny, {
559
868
  code: string;
560
869
  message: string;
561
- severity: "info" | "warning" | "error";
562
- stage: "authoring" | "doctor" | "validate" | "package" | "upload" | "build" | "manifest" | "schema" | "policy" | "preview" | "probe" | "publish";
870
+ severity: "error" | "info" | "warning";
871
+ stage: "build" | "authoring" | "doctor" | "validate" | "package" | "upload" | "manifest" | "schema" | "policy" | "preview" | "probe" | "publish";
563
872
  repairHint?: string | undefined;
564
873
  }, {
565
874
  code: string;
566
875
  message: string;
567
- severity: "info" | "warning" | "error";
568
- stage: "authoring" | "doctor" | "validate" | "package" | "upload" | "build" | "manifest" | "schema" | "policy" | "preview" | "probe" | "publish";
876
+ severity: "error" | "info" | "warning";
877
+ stage: "build" | "authoring" | "doctor" | "validate" | "package" | "upload" | "manifest" | "schema" | "policy" | "preview" | "probe" | "publish";
569
878
  repairHint?: string | undefined;
570
879
  }>, "many">>;
571
880
  }, "strip", z.ZodTypeAny, {
@@ -573,8 +882,8 @@ export declare const componentCapabilityCardSchema: z.ZodObject<{
573
882
  diagnostics: {
574
883
  code: string;
575
884
  message: string;
576
- severity: "info" | "warning" | "error";
577
- stage: "authoring" | "doctor" | "validate" | "package" | "upload" | "build" | "manifest" | "schema" | "policy" | "preview" | "probe" | "publish";
885
+ severity: "error" | "info" | "warning";
886
+ stage: "build" | "authoring" | "doctor" | "validate" | "package" | "upload" | "manifest" | "schema" | "policy" | "preview" | "probe" | "publish";
578
887
  repairHint?: string | undefined;
579
888
  }[];
580
889
  displayName: string;
@@ -591,7 +900,7 @@ export declare const componentCapabilityCardSchema: z.ZodObject<{
591
900
  summary: string;
592
901
  layoutCapability: {
593
902
  contractVersion: "layout-capability.v0.1.0";
594
- recommendedSlot: "full_screen" | "half_screen" | "card" | "badge" | "text_line" | "transition_slot";
903
+ recommendedSlot: "card" | "full_screen" | "half_screen" | "badge" | "text_line" | "transition_slot";
595
904
  minReadableSize: {
596
905
  width: number;
597
906
  height: number;
@@ -604,8 +913,8 @@ export declare const componentCapabilityCardSchema: z.ZodObject<{
604
913
  diagnostics: {
605
914
  code: string;
606
915
  message: string;
607
- severity: "info" | "warning" | "error";
608
- stage: "authoring" | "doctor" | "validate" | "package" | "upload" | "build" | "manifest" | "schema" | "policy" | "preview" | "probe" | "publish";
916
+ severity: "error" | "info" | "warning";
917
+ stage: "build" | "authoring" | "doctor" | "validate" | "package" | "upload" | "manifest" | "schema" | "policy" | "preview" | "probe" | "publish";
609
918
  repairHint?: string | undefined;
610
919
  }[];
611
920
  lastVerifiedAt?: string | undefined;
@@ -625,7 +934,7 @@ export declare const componentCapabilityCardSchema: z.ZodObject<{
625
934
  };
626
935
  summary: string;
627
936
  layoutCapability: {
628
- recommendedSlot: "full_screen" | "half_screen" | "card" | "badge" | "text_line" | "transition_slot";
937
+ recommendedSlot: "card" | "full_screen" | "half_screen" | "badge" | "text_line" | "transition_slot";
629
938
  minReadableSize: {
630
939
  width: number;
631
940
  height: number;
@@ -640,8 +949,8 @@ export declare const componentCapabilityCardSchema: z.ZodObject<{
640
949
  diagnostics?: {
641
950
  code: string;
642
951
  message: string;
643
- severity: "info" | "warning" | "error";
644
- stage: "authoring" | "doctor" | "validate" | "package" | "upload" | "build" | "manifest" | "schema" | "policy" | "preview" | "probe" | "publish";
952
+ severity: "error" | "info" | "warning";
953
+ stage: "build" | "authoring" | "doctor" | "validate" | "package" | "upload" | "manifest" | "schema" | "policy" | "preview" | "probe" | "publish";
645
954
  repairHint?: string | undefined;
646
955
  }[] | undefined;
647
956
  };
@@ -649,8 +958,8 @@ export declare const componentCapabilityCardSchema: z.ZodObject<{
649
958
  diagnostics?: {
650
959
  code: string;
651
960
  message: string;
652
- severity: "info" | "warning" | "error";
653
- stage: "authoring" | "doctor" | "validate" | "package" | "upload" | "build" | "manifest" | "schema" | "policy" | "preview" | "probe" | "publish";
961
+ severity: "error" | "info" | "warning";
962
+ stage: "build" | "authoring" | "doctor" | "validate" | "package" | "upload" | "manifest" | "schema" | "policy" | "preview" | "probe" | "publish";
654
963
  repairHint?: string | undefined;
655
964
  }[] | undefined;
656
965
  policyRuleIds?: ("manifest.identity.version" | "manifest.component_type.supported" | "schema.props.explicit" | "runtime.deterministic.remotion" | "runtime.no_global_scripts" | "security.forbidden.browser_apis" | "security.no_raw_remote_url_import" | "layout.root_fills_parent" | "layout.no_fixed_root_canvas" | "package.no_parent_imports" | "package.no_path_traversal" | "evidence.schema_source_hash_present")[] | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,6BAA6B,EAAG,8BAAuC,CAAC;AACrF,eAAO,MAAM,iCAAiC,EAAG,2BAAoC,CAAC;AACtF,eAAO,MAAM,0BAA0B,EAAG,2BAAoC,CAAC;AAC/E,eAAO,MAAM,qBAAqB,EAAG,sBAA+B,CAAC;AACrE,eAAO,MAAM,yBAAyB,EAAG,0BAAmC,CAAC;AAC7E,eAAO,MAAM,uBAAuB,EAAG,kCAA2C,CAAC;AAEnF,eAAO,MAAM,YAAY,aAA4C,CAAC;AACtE,eAAO,MAAM,oBAAoB,aAA2B,CAAC;AAC7D,eAAO,MAAM,YAAY,aAA+E,CAAC;AACzG,eAAO,MAAM,iBAAiB,aAA0E,CAAC;AACzG,eAAO,MAAM,mBAAmB,aAAgD,CAAC;AACjF,eAAO,MAAM,kBAAkB,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA8ChC,CAAC;AACL,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AAExE,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EASxC,CAAC;AACH,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,6BAA6B,CAAC,CAAC;AAEpF,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,OAAO,GAAG,iBAAiB,CAExE;AAED,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,OAAO,GAAG,YAAY,CAE9D"}
package/dist/index.js CHANGED
@@ -2,9 +2,228 @@ import { z } from 'zod';
2
2
  export const PROMPTFRAME_CONTRACTS_VERSION = 'promptframe-contracts.v0.1.0';
3
3
  export const COMPONENT_MANIFEST_SCHEMA_VERSION = 'component-manifest.v0.1.0';
4
4
  export const COMPONENT_STANDARD_VERSION = 'component-standard.v0.1.0';
5
+ export const COMPONENT_STANDARD_SOURCE_HASH = 'sha256:8c1e01c36155b4b646981064d24df9bd8cda501fd9cd9da93e5b62f40db22d52';
5
6
  export const COMPONENT_REF_VERSION = 'component-ref.v0.1.0';
6
7
  export const LAYOUT_CAPABILITY_VERSION = 'layout-capability.v0.1.0';
7
8
  export const CAPABILITY_CARD_VERSION = 'component-capability-card.v0.1.0';
9
+ export const COMPONENT_STANDARD_POLICY_VERSION = 'component-standard-policy.v0.1.0';
10
+ export const COMPONENT_SECURITY_POLICY_VERSION = 'component-security-policy.v0.1.0';
11
+ export const PROMPTFRAME_PUBLIC_STANDARD_POLICY = {
12
+ policyVersion: COMPONENT_STANDARD_POLICY_VERSION,
13
+ sourceVersion: COMPONENT_STANDARD_VERSION,
14
+ sourceHash: COMPONENT_STANDARD_SOURCE_HASH,
15
+ manifestSchemaVersion: COMPONENT_MANIFEST_SCHEMA_VERSION,
16
+ requiredFiles: [
17
+ 'manifest.json',
18
+ 'package.json',
19
+ 'src/Component.tsx',
20
+ 'src/schema.ts',
21
+ 'src/index.ts',
22
+ 'src/preview-props.json',
23
+ ],
24
+ ignoredPackageDirectories: [
25
+ 'node_modules',
26
+ 'dist',
27
+ '.git',
28
+ '.component-packages',
29
+ '.promptframe',
30
+ ],
31
+ previewLimits: {
32
+ maxDurationFrames: 180,
33
+ maxWidth: 1280,
34
+ maxHeight: 720,
35
+ allowedFps: [30],
36
+ },
37
+ sourceSafetyRules: [
38
+ {
39
+ id: 'component_standard.source.no_math_random',
40
+ stage: 'build',
41
+ severity: 'error',
42
+ pattern: 'Math\\.random\\s*\\(',
43
+ message: 'Math.random() is not allowed in PromptFrame components; use Remotion random(seed).',
44
+ repairHint: 'Derive random-looking values from props, frame, or a stable seed.',
45
+ },
46
+ {
47
+ id: 'component_standard.source.no_date_now',
48
+ stage: 'build',
49
+ severity: 'error',
50
+ pattern: 'Date\\.now\\s*\\(',
51
+ message: 'Date.now() is not allowed because renders must be deterministic.',
52
+ repairHint: 'Use useCurrentFrame(), useVideoConfig(), and props-derived timing.',
53
+ },
54
+ {
55
+ id: 'component_standard.source.no_native_img',
56
+ stage: 'build',
57
+ severity: 'error',
58
+ pattern: '<img\\b',
59
+ message: 'Native <img> is not allowed; use Remotion <Img>.',
60
+ repairHint: 'Import Img from remotion and replace native img tags.',
61
+ },
62
+ {
63
+ id: 'component_standard.source.no_native_video',
64
+ stage: 'build',
65
+ severity: 'error',
66
+ pattern: '<video\\b',
67
+ message: 'Native <video> is not allowed; use Remotion <Video>.',
68
+ repairHint: 'Import Video from remotion and replace native video tags.',
69
+ },
70
+ {
71
+ id: 'component_standard.source.no_css_transition',
72
+ stage: 'build',
73
+ severity: 'error',
74
+ pattern: 'transition\\s*:',
75
+ message: 'CSS transition is not allowed; animation must be frame-driven.',
76
+ repairHint: 'Use interpolate(), spring(), or frame-derived styles.',
77
+ },
78
+ {
79
+ id: 'component_standard.source.no_css_keyframes',
80
+ stage: 'build',
81
+ severity: 'error',
82
+ pattern: '@keyframes',
83
+ message: 'CSS keyframes are not allowed; animation must be frame-driven.',
84
+ repairHint: 'Replace keyframes with Remotion frame-driven animation.',
85
+ },
86
+ ],
87
+ };
88
+ export const PROMPTFRAME_PUBLIC_SECURITY_POLICY = {
89
+ policyVersion: COMPONENT_SECURITY_POLICY_VERSION,
90
+ forbiddenApis: [
91
+ {
92
+ id: 'code.eval',
93
+ label: 'Dynamic code execution',
94
+ patterns: ['\\beval\\s*\\('],
95
+ action: 'reject',
96
+ category: 'dynamic_code_execution',
97
+ severity: 'high',
98
+ reason: 'Third-party components cannot execute string code.',
99
+ recommendation: 'Remove eval and use deterministic props/frame-driven logic.',
100
+ },
101
+ {
102
+ id: 'code.new_function',
103
+ label: 'new Function dynamic execution',
104
+ patterns: ['\\bnew\\s+Function\\s*\\('],
105
+ action: 'reject',
106
+ category: 'dynamic_code_execution',
107
+ severity: 'high',
108
+ reason: 'Third-party components cannot build and run arbitrary code strings.',
109
+ recommendation: 'Remove new Function.',
110
+ },
111
+ {
112
+ id: 'code.string_timer',
113
+ label: 'String timer execution',
114
+ patterns: ['\\bset(?:Timeout|Interval)\\s*\\(\\s*[\'"`]'],
115
+ action: 'reject',
116
+ category: 'dynamic_code_execution',
117
+ severity: 'high',
118
+ reason: 'String timers are equivalent to dynamic code execution.',
119
+ recommendation: 'Do not pass strings to setTimeout or setInterval.',
120
+ },
121
+ {
122
+ id: 'host.fs_process_env',
123
+ label: 'Host filesystem, process, or env access',
124
+ patterns: ['\\b(node:fs|fs\\/promises|child_process|process\\.env|Bun\\.|Deno\\.)\\b'],
125
+ action: 'reject',
126
+ category: 'filesystem_process_env_access',
127
+ severity: 'critical',
128
+ reason: 'Components must not read host files, spawn processes, or access environment variables.',
129
+ recommendation: 'Use only platform-provided props and trusted artifacts.',
130
+ },
131
+ ],
132
+ mediatedApis: [
133
+ {
134
+ id: 'network.raw_fetch',
135
+ label: 'Raw network access',
136
+ rawApis: ['fetch', 'XMLHttpRequest', 'WebSocket', 'EventSource', 'navigator.sendBeacon'],
137
+ defaultAction: 'manual_review',
138
+ category: 'network_exfiltration',
139
+ severity: 'high',
140
+ reason: 'Marketplace components must not self-network; assets should be injected by the platform.',
141
+ recommendation: 'Remove raw network access or use an audited platform wrapper with an allowlist.',
142
+ },
143
+ {
144
+ id: 'network.runtime_fetch_json_unconfigured',
145
+ label: 'Unconfigured platform JSON network access',
146
+ rawApis: ['componentRuntime.fetchJson'],
147
+ defaultAction: 'manual_review',
148
+ category: 'network_exfiltration',
149
+ severity: 'high',
150
+ reason: 'Platform-mediated network calls still require an explicit allowlist.',
151
+ recommendation: 'Configure an allowlist or remove the network dependency.',
152
+ },
153
+ ],
154
+ warningApis: [
155
+ {
156
+ id: 'dom.dangerous_html',
157
+ label: 'Dangerous HTML injection',
158
+ patterns: ['dangerouslySetInnerHTML|\\.innerHTML\\s*='],
159
+ action: 'manual_review',
160
+ category: 'dangerous_html_injection',
161
+ severity: 'high',
162
+ reason: 'HTML injection can bypass component rendering boundaries.',
163
+ recommendation: 'Render React nodes or sanitized text structures.',
164
+ },
165
+ {
166
+ id: 'package.install_script',
167
+ label: 'Install script signal',
168
+ patterns: ['postinstall|preinstall|prepare'],
169
+ action: 'warn',
170
+ category: 'dependency_supply_chain',
171
+ severity: 'medium',
172
+ reason: 'Third-party component packages should not rely on install scripts.',
173
+ recommendation: 'Remove install scripts before upload.',
174
+ },
175
+ {
176
+ id: 'resource.exhaustion_pattern',
177
+ label: 'Resource exhaustion signal',
178
+ patterns: ['while\\s*\\(\\s*true\\s*\\)|for\\s*\\(\\s*;\\s*;\\s*\\)|new\\s+Array\\s*\\(\\s*1\\d{6,}'],
179
+ action: 'warn',
180
+ category: 'resource_exhaustion',
181
+ severity: 'medium',
182
+ reason: 'Infinite loops or very large arrays can break preview or render.',
183
+ recommendation: 'Bound loops, arrays, canvas operations, and particles.',
184
+ },
185
+ {
186
+ id: 'tenant.identity_string',
187
+ label: 'Tenant or artifact identity signal',
188
+ patterns: ['tenantId|objectKey|sourceArchiveRef|artifactVersion'],
189
+ action: 'warn',
190
+ category: 'tenant_boundary_bypass',
191
+ severity: 'low',
192
+ reason: 'Ordinary components should not assemble platform tenant or artifact identifiers.',
193
+ recommendation: 'Remove platform identity wiring and use platform-provided props.',
194
+ },
195
+ {
196
+ id: 'prompt.injection_string',
197
+ label: 'Prompt-injection-like string',
198
+ patterns: ['ignore\\s+previous\\s+instructions|rank\\s+this\\s+component\\s+first|忽略.{0,12}规则|自动放行|排名第一'],
199
+ action: 'warn',
200
+ category: 'prompt_injection_string',
201
+ severity: 'medium',
202
+ reason: 'Source comments and strings cannot ask the platform to change rules, ranking, or admission.',
203
+ recommendation: 'Remove prompt-injection-like strings.',
204
+ },
205
+ {
206
+ id: 'storage.browser_storage',
207
+ label: 'Browser storage access',
208
+ patterns: ['document\\.cookie|localStorage|sessionStorage'],
209
+ action: 'warn',
210
+ category: 'unsafe_browser_storage',
211
+ severity: 'medium',
212
+ reason: 'Marketplace components must not read user browser storage.',
213
+ recommendation: 'Use platform-provided props for state.',
214
+ },
215
+ {
216
+ id: 'network.remote_url',
217
+ label: 'Hardcoded remote URL',
218
+ patterns: ['https?:\\/\\/'],
219
+ action: 'warn',
220
+ category: 'remote_url',
221
+ severity: 'medium',
222
+ reason: 'Remote assets must go through platform asset management and authorization.',
223
+ recommendation: 'Do not hardcode remote URLs in component source.',
224
+ },
225
+ ],
226
+ };
8
227
  export const sha256Schema = z.string().regex(/^sha256:[a-f0-9]{64}$/);
9
228
  export const nonEmptyStringSchema = z.string().trim().min(1);
10
229
  export const semverSchema = z.string().regex(/^\d+\.\d+\.\d+(?:-[0-9A-Za-z.-]+)?(?:\+[0-9A-Za-z.-]+)?$/);
@@ -17,6 +236,24 @@ export const promptFrameComponentTypeSchema = z.enum([
17
236
  'overlay',
18
237
  'transition_effect',
19
238
  ]);
239
+ export const promptFrameManifestLayerSchema = z.enum([
240
+ 'foundation',
241
+ 'atom',
242
+ 'motion',
243
+ 'element',
244
+ 'scene_template',
245
+ ]);
246
+ export const promptFrameManifestCategorySchema = z.enum([
247
+ 'background',
248
+ 'text',
249
+ 'media',
250
+ 'shape',
251
+ 'card',
252
+ 'layout',
253
+ 'motion',
254
+ 'effect',
255
+ 'scene_template',
256
+ ]);
20
257
  export const componentVisibilitySchema = z.enum([
21
258
  'builtin',
22
259
  'private',
@@ -103,7 +340,8 @@ export const componentManifestEntrySchema = z.object({
103
340
  schemaHash: sha256Schema,
104
341
  bundleHash: sha256Schema.optional(),
105
342
  });
106
- export const componentManifestSchema = z.object({
343
+ export const componentManifestSchema = z
344
+ .object({
107
345
  schemaVersion: z.literal(COMPONENT_MANIFEST_SCHEMA_VERSION),
108
346
  standardVersion: z.literal(COMPONENT_STANDARD_VERSION),
109
347
  standardSourceHash: sha256Schema.optional(),
@@ -111,7 +349,9 @@ export const componentManifestSchema = z.object({
111
349
  name: componentNameSchema,
112
350
  displayName: nonEmptyStringSchema.max(80),
113
351
  version: semverSchema,
114
- componentType: promptFrameComponentTypeSchema,
352
+ componentType: promptFrameComponentTypeSchema.optional(),
353
+ layer: promptFrameManifestLayerSchema.optional(),
354
+ category: promptFrameManifestCategorySchema.optional(),
115
355
  trustLevel: z.enum(['trusted_builtin', 'trusted_private', 'trusted_marketplace', 'untrusted_temporary']).optional(),
116
356
  author: componentManifestAuthorSchema,
117
357
  description: z.string().trim().min(8).max(600),
@@ -129,7 +369,24 @@ export const componentManifestSchema = z.object({
129
369
  reviewStatus: z.enum(['draft', 'pending_review', 'approved', 'rejected', 'archived']).optional(),
130
370
  license: nonEmptyStringSchema.max(80),
131
371
  createdAt: z.string().datetime(),
132
- }).strict();
372
+ })
373
+ .strict()
374
+ .superRefine((manifest, ctx) => {
375
+ if (!manifest.componentType && !manifest.layer) {
376
+ ctx.addIssue({
377
+ code: z.ZodIssueCode.custom,
378
+ path: ['componentType'],
379
+ message: 'componentType or platform layer is required',
380
+ });
381
+ }
382
+ if (manifest.layer && !manifest.category) {
383
+ ctx.addIssue({
384
+ code: z.ZodIssueCode.custom,
385
+ path: ['category'],
386
+ message: 'category is required when layer is present',
387
+ });
388
+ }
389
+ });
133
390
  export const componentCapabilityCardSchema = z.object({
134
391
  contractVersion: z.literal(CAPABILITY_CARD_VERSION).default(CAPABILITY_CARD_VERSION),
135
392
  componentRef: componentRefSchema,
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,MAAM,CAAC,MAAM,6BAA6B,GAAG,8BAAuC,CAAC;AACrF,MAAM,CAAC,MAAM,iCAAiC,GAAG,2BAAoC,CAAC;AACtF,MAAM,CAAC,MAAM,0BAA0B,GAAG,2BAAoC,CAAC;AAC/E,MAAM,CAAC,MAAM,qBAAqB,GAAG,sBAA+B,CAAC;AACrE,MAAM,CAAC,MAAM,yBAAyB,GAAG,0BAAmC,CAAC;AAC7E,MAAM,CAAC,MAAM,uBAAuB,GAAG,kCAA2C,CAAC;AAEnF,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,CAAC,MAAM,EA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,CAAC,KAAc;IACnD,OAAO,uBAAuB,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;AAC9C,CAAC;AAED,MAAM,UAAU,iBAAiB,CAAC,KAAc;IAC9C,OAAO,kBAAkB,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;AACzC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@promptframe/contracts",
3
- "version": "0.1.0",
3
+ "version": "0.1.2",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "sideEffects": false,
@@ -37,6 +37,7 @@
37
37
  "build": "tsc",
38
38
  "lint": "tsc --noEmit",
39
39
  "test": "node -e \"console.log('placeholder test: @promptframe/contracts')\"",
40
+ "pack:dry-run": "pnpm build && npm pack --dry-run --json",
40
41
  "clean": "rm -rf dist"
41
42
  },
42
43
  "dependencies": {