@nativestudio/sdk 0.3.0-rc.2 → 0.3.0-rc.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 (57) hide show
  1. package/COMPATIBILITY.json +4 -4
  2. package/README.md +20 -0
  3. package/dist/_chunks/chunk-GLD5WP6Z.js +1 -0
  4. package/dist/_chunks/chunk-NSS2BKVM.js +1 -0
  5. package/dist/_types/contracts/delivery-manifest.d.ts +63 -27
  6. package/dist/_types/contracts/delivery-operations.d.ts +21 -9
  7. package/dist/_types/contracts/device-render.d.ts +10 -0
  8. package/dist/_types/contracts/exploration-recommendation.d.ts +84 -36
  9. package/dist/_types/contracts/final-render.d.ts +9 -0
  10. package/dist/_types/contracts/index.d.ts +1 -0
  11. package/dist/_types/contracts/local-execution/agent-context.d.ts +365 -0
  12. package/dist/_types/contracts/local-execution/agent-evidence.d.ts +79 -0
  13. package/dist/_types/contracts/local-execution/agent-grant.d.ts +31 -0
  14. package/dist/_types/contracts/local-execution/agent-review.d.ts +733 -46
  15. package/dist/_types/contracts/local-execution/device.d.ts +10 -2
  16. package/dist/_types/contracts/local-execution/index.d.ts +6 -0
  17. package/dist/_types/contracts/local-execution/ipc.d.ts +1759 -37
  18. package/dist/_types/contracts/local-execution/lifecycle.d.ts +48 -6
  19. package/dist/_types/contracts/local-execution/local-navigation.d.ts +112 -10
  20. package/dist/_types/contracts/local-execution/management.d.ts +394 -0
  21. package/dist/_types/contracts/local-execution/media-recipe.d.ts +203 -0
  22. package/dist/_types/contracts/local-execution/offline.d.ts +59 -0
  23. package/dist/_types/contracts/local-execution/preview.d.ts +7607 -159
  24. package/dist/_types/contracts/local-execution/work.d.ts +7674 -294
  25. package/dist/_types/contracts/local-execution/workspace.d.ts +136 -0
  26. package/dist/_types/contracts/programmatic-exploration.d.ts +42 -18
  27. package/dist/_types/contracts/repair-strategy.d.ts +42 -18
  28. package/dist/_types/contracts/review-intelligence-final-output.d.ts +42 -18
  29. package/dist/_types/contracts/review-intelligence.d.ts +84 -36
  30. package/dist/_types/contracts/rough-cut-manifest.d.ts +7 -3
  31. package/dist/_types/contracts/rough-cut-profile.d.ts +12 -3
  32. package/dist/_types/contracts/rough-cut-review.d.ts +126 -54
  33. package/dist/_types/contracts/rough-cut.d.ts +85 -32
  34. package/dist/_types/contracts/visual-layer-render.d.ts +21 -9
  35. package/dist/_types/sdk/catalog/assembly.d.ts +146 -110
  36. package/dist/_types/sdk/catalog/delivery.d.ts +36 -36
  37. package/dist/_types/sdk/catalog/programmatic-exploration.d.ts +36 -36
  38. package/dist/_types/sdk/catalog/repair-strategy.d.ts +36 -36
  39. package/dist/_types/sdk/catalog/reviewer.d.ts +72 -72
  40. package/dist/_types/sdk/catalog/visual-exploration.d.ts +36 -36
  41. package/dist/_types/sdk/client.d.ts +2 -0
  42. package/dist/_types/sdk/device-renders.d.ts +138 -0
  43. package/dist/_types/sdk/index.d.ts +1 -0
  44. package/dist/_types/sdk/local-runtime/device-client.d.ts +138 -2
  45. package/dist/_types/sdk/local-runtime/workspace.d.ts +181 -0
  46. package/dist/_types/sdk/local-runtime-client.d.ts +1294 -56
  47. package/dist/_types/sdk/mcp-client.d.ts +2 -0
  48. package/dist/index.d.ts +1 -1
  49. package/dist/index.js +1 -1
  50. package/dist/local-runtime.js +1 -1
  51. package/dist/native/JobNative.cs +10 -0
  52. package/dist/native/JobRunner.cs +24 -3
  53. package/dist/native/NativeMain.cs +15 -0
  54. package/dist/runtime-authority.js +1 -1
  55. package/package.json +1 -1
  56. package/dist/_chunks/chunk-34KSWLCI.js +0 -1
  57. package/dist/_chunks/chunk-4IOFVNFG.js +0 -1
@@ -1,3 +1,4 @@
1
+ import { NativeStudioLocalWorkspaceClient } from "./local-runtime/workspace.js";
1
2
  import { type LocalIpcRequest, type LocalWorkScope } from "../contracts/local-execution/index.js";
2
3
  import { type LocalAgentSnapshot } from "../contracts/local-execution/index.js";
3
4
  export declare class NativeStudioLocalRuntimeClient {
@@ -10,6 +11,7 @@ export declare class NativeStudioLocalRuntimeClient {
10
11
  projectId: string;
11
12
  }[];
12
13
  };
14
+ readonly workspace: NativeStudioLocalWorkspaceClient;
13
15
  constructor(options: {
14
16
  stateDirectory: string;
15
17
  authorization: () => Promise<string> | string;
@@ -22,7 +24,7 @@ export declare class NativeStudioLocalRuntimeClient {
22
24
  static fromConnector(path: string): Promise<NativeStudioLocalRuntimeClient>;
23
25
  call(call: LocalIpcRequest["call"], signal?: AbortSignal): Promise<{
24
26
  plan: {
25
- protocol: "NVS_LOCAL_AGENT_REVIEW_V1";
27
+ protocol: "NVS_LOCAL_AGENT_REVIEW_V1" | "NVS_LOCAL_AGENT_REVIEW_V2";
26
28
  id: string;
27
29
  grantFingerprint: string;
28
30
  snapshot: {
@@ -32,11 +34,20 @@ export declare class NativeStudioLocalRuntimeClient {
32
34
  projectId: string & import("zod").$brand<"ProjectId">;
33
35
  productionId: string & import("zod").$brand<"ProductionId">;
34
36
  };
35
- contextFingerprint: string;
36
37
  target: {
37
38
  kind: "IMAGE";
38
39
  generationId: string;
40
+ } | {
41
+ kind: "VIDEO";
42
+ generationId: string;
43
+ } | {
44
+ kind: "ROUGH_CUT";
45
+ renderId: string;
46
+ } | {
47
+ kind: "PROGRAMMATIC";
48
+ renderId: string;
39
49
  };
50
+ contextFingerprint: string;
40
51
  };
41
52
  productionRevision: number;
42
53
  reviewVersion: number;
@@ -46,12 +57,115 @@ export declare class NativeStudioLocalRuntimeClient {
46
57
  representationId: string;
47
58
  checksumSha256: string;
48
59
  };
49
- requirements: {
60
+ requirements: ({
50
61
  key: string;
62
+ dimension: "TRANSITION" | "STYLE" | "PRODUCT_PRESENTATION" | "CANONICAL_FACT" | "NARRATIVE" | "PACING" | "REPETITION" | "TECHNICAL";
51
63
  expected: string;
52
64
  enforcement: "LOCKED" | "REQUIRED" | "PREFERRED";
65
+ scope: "TRANSITION" | "PRODUCTION";
66
+ interval: {
67
+ startMs: number;
68
+ endMs: number;
69
+ };
70
+ shotIds: string[];
71
+ continuity?: {
72
+ kind: "STATE";
73
+ mode: "PRESERVE" | "PLANNED_TRANSITIONS";
74
+ entry: string;
75
+ exit: string;
76
+ changes?: {
77
+ atPermille: number;
78
+ from: string;
79
+ to: string;
80
+ reason: string;
81
+ }[] | undefined;
82
+ } | {
83
+ kind: "TIME";
84
+ mode: "MONOTONIC" | "PLANNED_JUMPS";
85
+ entryMs: number;
86
+ exitMs: number;
87
+ jumps?: {
88
+ atPermille: number;
89
+ fromMs: number;
90
+ toMs: number;
91
+ reason: string;
92
+ }[] | undefined;
93
+ } | undefined;
94
+ consistencyScale?: "INTRA_SHOT" | "INTER_SHOT" | "PRODUCTION" | undefined;
95
+ consistencyFamily?: "PRODUCT_IDENTITY" | "CHARACTER_IDENTITY" | "WARDROBE" | "LOCATION" | "STYLE" | "BOUNDARY_CONTINUITY" | undefined;
96
+ consistencySubject?: {
97
+ id: string;
98
+ kind: "CHARACTER" | "VOICE";
99
+ displayName: string;
100
+ facts: {
101
+ dimension: string;
102
+ value: string;
103
+ }[];
104
+ master: {
105
+ artifactId: string & import("zod").$brand<"ArtifactId">;
106
+ representationId: string & import("zod").$brand<"ArtifactRepresentationId">;
107
+ checksumSha256: string;
108
+ artifactChecksumSha256: string;
109
+ contentType: "image/png" | "image/jpeg" | "image/webp" | "audio/wav";
110
+ };
111
+ } | undefined;
112
+ consistencyReference?: {
113
+ artifactId: string & import("zod").$brand<"ArtifactId">;
114
+ representationId: string & import("zod").$brand<"ArtifactRepresentationId">;
115
+ checksumSha256: string;
116
+ artifactChecksumSha256: string;
117
+ contentType: "image/png" | "image/jpeg" | "image/webp" | "audio/wav";
118
+ } | undefined;
119
+ } | {
120
+ key: string;
121
+ family: "PRODUCT_IDENTITY" | "CHARACTER_IDENTITY" | "WARDROBE" | "LOCATION" | "STYLE" | "SHOT_INTENT" | "BOUNDARY_CONTINUITY" | "SOUND";
122
+ expected: string;
123
+ enforcement: "LOCKED" | "REQUIRED" | "PREFERRED";
124
+ evidenceWindow: "START" | "END" | "WHOLE_VIDEO" | "TEMPORAL";
53
125
  intentPath?: string | undefined;
54
- }[];
126
+ continuity?: {
127
+ kind: "STATE";
128
+ mode: "PRESERVE" | "PLANNED_TRANSITIONS";
129
+ entry: string;
130
+ exit: string;
131
+ changes?: {
132
+ atPermille: number;
133
+ from: string;
134
+ to: string;
135
+ reason: string;
136
+ }[] | undefined;
137
+ } | {
138
+ kind: "TIME";
139
+ mode: "MONOTONIC" | "PLANNED_JUMPS";
140
+ entryMs: number;
141
+ exitMs: number;
142
+ jumps?: {
143
+ atPermille: number;
144
+ fromMs: number;
145
+ toMs: number;
146
+ reason: string;
147
+ }[] | undefined;
148
+ } | undefined;
149
+ interval?: {
150
+ startMs: number;
151
+ endMs: number;
152
+ } | undefined;
153
+ } | {
154
+ key: string;
155
+ expected: string;
156
+ enforcement: "LOCKED" | "REQUIRED" | "PREFERRED";
157
+ intentPath?: string | undefined;
158
+ })[];
159
+ evidence?: {
160
+ profile: "NVS_AGENT_DERIVED_EVIDENCE_V1";
161
+ contentType: "image/png" | "image/jpeg" | "image/webp" | "video/mp4";
162
+ byteSize: number;
163
+ width: number;
164
+ height: number;
165
+ durationMs?: number | undefined;
166
+ frameRate?: 30 | 24 | undefined;
167
+ hasAudio?: boolean | undefined;
168
+ } | undefined;
55
169
  image?: {
56
170
  contentType: "image/png";
57
171
  byteSize: number;
@@ -74,20 +188,20 @@ export declare class NativeStudioLocalRuntimeClient {
74
188
  summary: string;
75
189
  imageReadback: string;
76
190
  observations: {
77
- key: string;
78
191
  status: "SATISFIED" | "VIOLATED" | "NOT_OBSERVABLE" | "NOT_APPLICABLE";
79
192
  confidence: "CLEAR" | "UNCERTAIN";
80
193
  observed: string;
194
+ key: string;
81
195
  }[];
82
196
  } | null;
83
197
  provenance: {
84
- adapter: "CODEX_METADATA_V1";
198
+ adapter: "CODEX_METADATA_V1" | "CODEX_MEDIA_V2";
85
199
  binaryDigest: string;
86
200
  version: "0.164.0" | "0.165.0";
87
201
  model: string;
88
202
  reviewerLabel: string;
89
203
  inference: "REMOTE_OPENAI";
90
- evidence: "IMAGE_PIXELS" | "METADATA_ONLY";
204
+ evidence: "IMAGE_PIXELS" | "VIDEO_FRAMES" | "METADATA_ONLY";
91
205
  reasoningEffort?: "medium" | "low" | "high" | "xhigh" | undefined;
92
206
  };
93
207
  imageReceipt?: {
@@ -103,6 +217,33 @@ export declare class NativeStudioLocalRuntimeClient {
103
217
  width: number;
104
218
  height: number;
105
219
  } | undefined;
220
+ evidenceReceipt?: {
221
+ protocol: "NVS_AGENT_DERIVED_EVIDENCE_V1";
222
+ draftId: string;
223
+ media: {
224
+ artifactId: string;
225
+ representationId: string;
226
+ checksumSha256: string;
227
+ };
228
+ ffmpegDigest: string;
229
+ ffprobeDigest: string;
230
+ attachment: {
231
+ checksumSha256: string;
232
+ byteSize: number;
233
+ width: number;
234
+ height: number;
235
+ };
236
+ timestampsMs: number[];
237
+ audio: {
238
+ sampleRateHz: 48000;
239
+ channels: 1;
240
+ samples: number;
241
+ peak: number;
242
+ rms: number;
243
+ clippedSamples: number;
244
+ } | null;
245
+ limitations: ["SAMPLED_FRAMES_ARE_NOT_FULL_PLAYBACK", "AUDIO_STATISTICS_ARE_NOT_LISTENING_OR_TRANSCRIPTION"];
246
+ } | undefined;
106
247
  } | {
107
248
  protocol: "NVS_LOCAL_CONNECTOR_V1";
108
249
  stateDirectory: string;
@@ -115,9 +256,9 @@ export declare class NativeStudioLocalRuntimeClient {
115
256
  } | {
116
257
  protocol: "NVS_LOCAL_IPC_V1";
117
258
  runtimeRevision: number;
118
- state: "RECOVERY_REQUIRED" | "IDLE" | "EXECUTING" | "DRAINING";
259
+ state: "RECOVERY_REQUIRED" | "EXECUTING" | "DRAINING" | "IDLE";
119
260
  journalSchemaVersion: 1;
120
- workProtocols: "NVS_LOCAL_WORK_V1"[];
261
+ workProtocols: ("NVS_LOCAL_WORK_V1" | "NVS_LOCAL_WORK_V2")[];
121
262
  versions: {
122
263
  component: "CLI" | "SDK" | "MCP" | "RUNTIME" | "MEDIA_TOOLS";
123
264
  installedVersion: string | null;
@@ -132,6 +273,56 @@ export declare class NativeStudioLocalRuntimeClient {
132
273
  }[];
133
274
  nextActions: {
134
275
  call: {
276
+ operation: "agent.discover";
277
+ binary?: string | undefined;
278
+ } | {
279
+ operation: "offline.workspace";
280
+ input: {
281
+ action: "list" | "forget";
282
+ key: string;
283
+ } | {
284
+ action: "retain";
285
+ key: string;
286
+ snapshot: {
287
+ projectId: string;
288
+ title: string;
289
+ savedAt: string;
290
+ expiresAt: string;
291
+ productions: {
292
+ id: string;
293
+ title: string;
294
+ }[];
295
+ possiblyTruncated: boolean;
296
+ };
297
+ } | {
298
+ action: "draft";
299
+ key: string;
300
+ projectId: string;
301
+ text: string;
302
+ expectedRevision: number;
303
+ };
304
+ } | {
305
+ operation: "workspace.inspect";
306
+ } | {
307
+ operation: "workspace.configure";
308
+ policy: {
309
+ mode: "CONTINUOUS" | "IDLE_ONLY";
310
+ idleAfterSeconds: number;
311
+ maxConcurrentJobs: number;
312
+ cpuCores: 2 | 1;
313
+ memoryMiB: number;
314
+ cacheQuotaBytes: number;
315
+ };
316
+ expectedRevision: number;
317
+ } | {
318
+ operation: "workspace.activity";
319
+ idleSeconds: number;
320
+ observedAt: string;
321
+ } | {
322
+ operation: "storage.clean";
323
+ } | {
324
+ operation: "diagnostics.read";
325
+ } | {
135
326
  operation: "agent.grant";
136
327
  grant: {
137
328
  protocol: "NVS_CODEX_REVIEW_GRANT_V1";
@@ -149,6 +340,7 @@ export declare class NativeStudioLocalRuntimeClient {
149
340
  expiresAt: string;
150
341
  reasoningEffort?: "medium" | "low" | "high" | "xhigh" | undefined;
151
342
  imageDisclosureApproved?: true | undefined;
343
+ mediaDisclosureApproved?: true | undefined;
152
344
  };
153
345
  approval: string;
154
346
  } | {
@@ -165,11 +357,20 @@ export declare class NativeStudioLocalRuntimeClient {
165
357
  projectId: string & import("zod").$brand<"ProjectId">;
166
358
  productionId: string & import("zod").$brand<"ProductionId">;
167
359
  };
168
- contextFingerprint: string;
169
360
  target: {
170
361
  kind: "IMAGE";
171
362
  generationId: string;
363
+ } | {
364
+ kind: "VIDEO";
365
+ generationId: string;
366
+ } | {
367
+ kind: "ROUGH_CUT";
368
+ renderId: string;
369
+ } | {
370
+ kind: "PROGRAMMATIC";
371
+ renderId: string;
172
372
  };
373
+ contextFingerprint: string;
173
374
  };
174
375
  productionRevision: number;
175
376
  reviewVersion: number;
@@ -179,12 +380,115 @@ export declare class NativeStudioLocalRuntimeClient {
179
380
  representationId: string;
180
381
  checksumSha256: string;
181
382
  };
182
- requirements: {
383
+ requirements: ({
183
384
  key: string;
385
+ dimension: "TRANSITION" | "STYLE" | "PRODUCT_PRESENTATION" | "CANONICAL_FACT" | "NARRATIVE" | "PACING" | "REPETITION" | "TECHNICAL";
184
386
  expected: string;
185
387
  enforcement: "LOCKED" | "REQUIRED" | "PREFERRED";
388
+ scope: "TRANSITION" | "PRODUCTION";
389
+ interval: {
390
+ startMs: number;
391
+ endMs: number;
392
+ };
393
+ shotIds: string[];
394
+ continuity?: {
395
+ kind: "STATE";
396
+ mode: "PRESERVE" | "PLANNED_TRANSITIONS";
397
+ entry: string;
398
+ exit: string;
399
+ changes?: {
400
+ atPermille: number;
401
+ from: string;
402
+ to: string;
403
+ reason: string;
404
+ }[] | undefined;
405
+ } | {
406
+ kind: "TIME";
407
+ mode: "MONOTONIC" | "PLANNED_JUMPS";
408
+ entryMs: number;
409
+ exitMs: number;
410
+ jumps?: {
411
+ atPermille: number;
412
+ fromMs: number;
413
+ toMs: number;
414
+ reason: string;
415
+ }[] | undefined;
416
+ } | undefined;
417
+ consistencyScale?: "INTRA_SHOT" | "INTER_SHOT" | "PRODUCTION" | undefined;
418
+ consistencyFamily?: "PRODUCT_IDENTITY" | "CHARACTER_IDENTITY" | "WARDROBE" | "LOCATION" | "STYLE" | "BOUNDARY_CONTINUITY" | undefined;
419
+ consistencySubject?: {
420
+ id: string;
421
+ kind: "CHARACTER" | "VOICE";
422
+ displayName: string;
423
+ facts: {
424
+ dimension: string;
425
+ value: string;
426
+ }[];
427
+ master: {
428
+ artifactId: string & import("zod").$brand<"ArtifactId">;
429
+ representationId: string & import("zod").$brand<"ArtifactRepresentationId">;
430
+ checksumSha256: string;
431
+ artifactChecksumSha256: string;
432
+ contentType: "image/png" | "image/jpeg" | "image/webp" | "audio/wav";
433
+ };
434
+ } | undefined;
435
+ consistencyReference?: {
436
+ artifactId: string & import("zod").$brand<"ArtifactId">;
437
+ representationId: string & import("zod").$brand<"ArtifactRepresentationId">;
438
+ checksumSha256: string;
439
+ artifactChecksumSha256: string;
440
+ contentType: "image/png" | "image/jpeg" | "image/webp" | "audio/wav";
441
+ } | undefined;
442
+ } | {
443
+ key: string;
444
+ family: "PRODUCT_IDENTITY" | "CHARACTER_IDENTITY" | "WARDROBE" | "LOCATION" | "STYLE" | "SHOT_INTENT" | "BOUNDARY_CONTINUITY" | "SOUND";
445
+ expected: string;
446
+ enforcement: "LOCKED" | "REQUIRED" | "PREFERRED";
447
+ evidenceWindow: "START" | "END" | "WHOLE_VIDEO" | "TEMPORAL";
186
448
  intentPath?: string | undefined;
187
- }[];
449
+ continuity?: {
450
+ kind: "STATE";
451
+ mode: "PRESERVE" | "PLANNED_TRANSITIONS";
452
+ entry: string;
453
+ exit: string;
454
+ changes?: {
455
+ atPermille: number;
456
+ from: string;
457
+ to: string;
458
+ reason: string;
459
+ }[] | undefined;
460
+ } | {
461
+ kind: "TIME";
462
+ mode: "MONOTONIC" | "PLANNED_JUMPS";
463
+ entryMs: number;
464
+ exitMs: number;
465
+ jumps?: {
466
+ atPermille: number;
467
+ fromMs: number;
468
+ toMs: number;
469
+ reason: string;
470
+ }[] | undefined;
471
+ } | undefined;
472
+ interval?: {
473
+ startMs: number;
474
+ endMs: number;
475
+ } | undefined;
476
+ } | {
477
+ key: string;
478
+ expected: string;
479
+ enforcement: "LOCKED" | "REQUIRED" | "PREFERRED";
480
+ intentPath?: string | undefined;
481
+ })[];
482
+ evidence?: {
483
+ profile: "NVS_AGENT_DERIVED_EVIDENCE_V1";
484
+ contentType: "image/png" | "image/jpeg" | "image/webp" | "video/mp4";
485
+ byteSize: number;
486
+ width: number;
487
+ height: number;
488
+ durationMs?: number | undefined;
489
+ frameRate?: 30 | 24 | undefined;
490
+ hasAudio?: boolean | undefined;
491
+ } | undefined;
188
492
  image?: {
189
493
  contentType: "image/png";
190
494
  byteSize: number;
@@ -202,6 +506,7 @@ export declare class NativeStudioLocalRuntimeClient {
202
506
  id: string;
203
507
  } | {
204
508
  operation: "runtime.status";
509
+ includeDevice?: true | undefined;
205
510
  } | {
206
511
  operation: "runtime.doctor";
207
512
  } | {
@@ -223,6 +528,7 @@ export declare class NativeStudioLocalRuntimeClient {
223
528
  projectId: string;
224
529
  productionId: string;
225
530
  runtimeJobId: string;
531
+ includeProgress?: boolean | undefined;
226
532
  };
227
533
  } | {
228
534
  operation: "execution.list";
@@ -231,6 +537,8 @@ export declare class NativeStudioLocalRuntimeClient {
231
537
  projectId: string;
232
538
  after: string | null;
233
539
  limit: number;
540
+ includeCompleted?: boolean | undefined;
541
+ includeProgress?: boolean | undefined;
234
542
  };
235
543
  } | {
236
544
  operation: "update.check";
@@ -247,6 +555,11 @@ export declare class NativeStudioLocalRuntimeClient {
247
555
  availability: "AVAILABLE" | "BLOCKED";
248
556
  reason: "READY" | "INSTALL_REQUIRED" | "AUTHORIZATION_REQUIRED" | "VERSION_INCOMPATIBLE" | "UPDATE_AVAILABLE" | "RECOVERY_REQUIRED";
249
557
  }[];
558
+ deviceAuthority?: {
559
+ tenantId: string;
560
+ deviceId: string;
561
+ origin: string;
562
+ } | undefined;
250
563
  } | {
251
564
  binding: {
252
565
  tenantId: string;
@@ -260,14 +573,69 @@ export declare class NativeStudioLocalRuntimeClient {
260
573
  toolchainFingerprint: string;
261
574
  };
262
575
  revision: number;
263
- phase: "RUNNING" | "RECOVERY_REQUIRED" | "STAGED" | "OUTPUT_PENDING" | "RECEIPT_RECORDED" | "FENCED";
576
+ phase: "RUNNING" | "RECOVERY_REQUIRED" | "FENCED" | "STAGED" | "OUTPUT_PENDING" | "RECEIPT_RECORDED";
264
577
  checkpoint: "ADOPTED" | "SOURCES_READY" | "PROCESS_STARTED" | "OUTPUT_STAGED";
578
+ progress?: {
579
+ stage: "WAITING" | "COMPLETE" | "RECOVERY_REQUIRED" | "DOWNLOADING" | "EXECUTING" | "UPLOADING" | "AWAITING_ACCEPTANCE" | "FENCED";
580
+ downloadedBytes: number;
581
+ sourceBytes: number;
582
+ uploadedBytes: number;
583
+ outputBytes: number;
584
+ lastError: {
585
+ code: string;
586
+ observedAt: string;
587
+ } | null;
588
+ } | undefined;
589
+ } | {
590
+ candidate: {
591
+ binary: string;
592
+ binaryDigest: string;
593
+ version: string;
594
+ qualified: boolean;
595
+ } | null;
596
+ configured: {
597
+ protocol: "NVS_CODEX_REVIEW_GRANT_V1";
598
+ binary: string;
599
+ binaryDigest: string;
600
+ version: "0.164.0" | "0.165.0";
601
+ model: string;
602
+ reviewerLabel: string;
603
+ inference: "REMOTE_OPENAI";
604
+ remoteUseApproved: true;
605
+ projects: {
606
+ tenantId: string;
607
+ projectId: string;
608
+ }[];
609
+ expiresAt: string;
610
+ reasoningEffort?: "medium" | "low" | "high" | "xhigh" | undefined;
611
+ imageDisclosureApproved?: true | undefined;
612
+ mediaDisclosureApproved?: true | undefined;
613
+ } | null;
265
614
  } | {
266
615
  configured: boolean;
267
616
  available: boolean;
268
617
  reason: "READY" | "GRANT_EXPIRED" | "GRANT_REQUIRED" | "RUNTIME_UNAVAILABLE";
269
618
  grantFingerprint: string | null;
270
619
  inference: "REMOTE_OPENAI";
620
+ } | {
621
+ historical: true;
622
+ items: {
623
+ snapshot: {
624
+ projectId: string;
625
+ title: string;
626
+ savedAt: string;
627
+ expiresAt: string;
628
+ productions: {
629
+ id: string;
630
+ title: string;
631
+ }[];
632
+ possiblyTruncated: boolean;
633
+ };
634
+ draft: {
635
+ text: string;
636
+ revision: number;
637
+ };
638
+ }[];
271
639
  } | {
272
640
  runtimeRevision: number;
273
641
  descriptor: {
@@ -282,15 +650,82 @@ export declare class NativeStudioLocalRuntimeClient {
282
650
  architecture: "x64" | "arm64";
283
651
  };
284
652
  ipcProtocol: "NVS_LOCAL_IPC_V1";
285
- workProtocol: "NVS_LOCAL_WORK_V1";
653
+ workProtocol: "NVS_LOCAL_WORK_V1" | "NVS_LOCAL_WORK_V2";
286
654
  journalSchema: 1;
287
655
  rendererDigest: string;
288
656
  profileDigest: string;
657
+ compatibleRenderers?: {
658
+ rendererDigest: string;
659
+ profileDigest: string;
660
+ }[] | undefined;
289
661
  };
290
662
  activeProcesses: number;
291
663
  pendingExecutions: number;
292
664
  pendingRequests: number;
293
665
  pendingRenderers: string[];
666
+ } | {
667
+ settings: {
668
+ revision: number;
669
+ policy: {
670
+ mode: "CONTINUOUS" | "IDLE_ONLY";
671
+ idleAfterSeconds: number;
672
+ maxConcurrentJobs: number;
673
+ cpuCores: 2 | 1;
674
+ memoryMiB: number;
675
+ cacheQuotaBytes: number;
676
+ };
677
+ };
678
+ storage: {
679
+ cacheBytes: number;
680
+ protectedBytes: number;
681
+ reclaimableBytes: number;
682
+ transferBytes: number;
683
+ journalBytes: number;
684
+ availableDiskBytes: number;
685
+ quotaBytes: number;
686
+ overQuota: boolean;
687
+ reviewBytes?: number | undefined;
688
+ ownerStagingBytes?: number | undefined;
689
+ };
690
+ scheduling: {
691
+ state: "READY" | "WAITING_FOR_IDLE" | "AT_CAPACITY" | "DRAINING";
692
+ activeJobs: number;
693
+ idleObservationCurrent: boolean;
694
+ };
695
+ } | {
696
+ protocol: "NVS_LOCAL_DIAGNOSTICS_V1";
697
+ createdAt: string;
698
+ runtimeVersion: string;
699
+ runtimeRevision: number;
700
+ settings: {
701
+ revision: number;
702
+ policy: {
703
+ mode: "CONTINUOUS" | "IDLE_ONLY";
704
+ idleAfterSeconds: number;
705
+ maxConcurrentJobs: number;
706
+ cpuCores: 2 | 1;
707
+ memoryMiB: number;
708
+ cacheQuotaBytes: number;
709
+ };
710
+ };
711
+ storage: {
712
+ cacheBytes: number;
713
+ protectedBytes: number;
714
+ reclaimableBytes: number;
715
+ transferBytes: number;
716
+ journalBytes: number;
717
+ availableDiskBytes: number;
718
+ quotaBytes: number;
719
+ overQuota: boolean;
720
+ reviewBytes?: number | undefined;
721
+ ownerStagingBytes?: number | undefined;
722
+ };
723
+ recordCounts: Record<string, number>;
724
+ failures: {
725
+ taskFingerprint: string;
726
+ code: string;
727
+ observedAt: string;
728
+ }[];
294
729
  } | {
295
730
  mode: "MANAGED" | "INSTALLED";
296
731
  availability: "UNAVAILABLE" | "AVAILABLE";
@@ -302,6 +737,7 @@ export declare class NativeStudioLocalRuntimeClient {
302
737
  version: string;
303
738
  digest: string;
304
739
  }[];
740
+ executionProfiles?: ("ROUGH_CUT_PREVIEW_V1" | "STUDIO_MEDIA_V2")[] | undefined;
305
741
  } | {
306
742
  items: {
307
743
  binding: {
@@ -316,8 +752,19 @@ export declare class NativeStudioLocalRuntimeClient {
316
752
  toolchainFingerprint: string;
317
753
  };
318
754
  revision: number;
319
- phase: "RUNNING" | "RECOVERY_REQUIRED" | "STAGED" | "OUTPUT_PENDING" | "RECEIPT_RECORDED" | "FENCED";
755
+ phase: "RUNNING" | "RECOVERY_REQUIRED" | "FENCED" | "STAGED" | "OUTPUT_PENDING" | "RECEIPT_RECORDED";
320
756
  checkpoint: "ADOPTED" | "SOURCES_READY" | "PROCESS_STARTED" | "OUTPUT_STAGED";
757
+ progress?: {
758
+ stage: "WAITING" | "COMPLETE" | "RECOVERY_REQUIRED" | "DOWNLOADING" | "EXECUTING" | "UPLOADING" | "AWAITING_ACCEPTANCE" | "FENCED";
759
+ downloadedBytes: number;
760
+ sourceBytes: number;
761
+ uploadedBytes: number;
762
+ outputBytes: number;
763
+ lastError: {
764
+ code: string;
765
+ observedAt: string;
766
+ } | null;
767
+ } | undefined;
321
768
  }[];
322
769
  nextCursor: string | null;
323
770
  } | {
@@ -336,10 +783,14 @@ export declare class NativeStudioLocalRuntimeClient {
336
783
  architecture: "x64" | "arm64";
337
784
  };
338
785
  ipcProtocol: "NVS_LOCAL_IPC_V1";
339
- workProtocol: "NVS_LOCAL_WORK_V1";
786
+ workProtocol: "NVS_LOCAL_WORK_V1" | "NVS_LOCAL_WORK_V2";
340
787
  journalSchema: 1;
341
788
  rendererDigest: string;
342
789
  profileDigest: string;
790
+ compatibleRenderers?: {
791
+ rendererDigest: string;
792
+ profileDigest: string;
793
+ }[] | undefined;
343
794
  };
344
795
  activeProcesses: number;
345
796
  pendingExecutions: number;
@@ -349,12 +800,12 @@ export declare class NativeStudioLocalRuntimeClient {
349
800
  backupPath?: string | undefined;
350
801
  } | null>;
351
802
  private response;
352
- status(signal?: AbortSignal): Promise<{
803
+ status(signal?: AbortSignal, includeDevice?: boolean): Promise<{
353
804
  protocol: "NVS_LOCAL_IPC_V1";
354
805
  runtimeRevision: number;
355
- state: "RECOVERY_REQUIRED" | "IDLE" | "EXECUTING" | "DRAINING";
806
+ state: "RECOVERY_REQUIRED" | "EXECUTING" | "DRAINING" | "IDLE";
356
807
  journalSchemaVersion: 1;
357
- workProtocols: "NVS_LOCAL_WORK_V1"[];
808
+ workProtocols: ("NVS_LOCAL_WORK_V1" | "NVS_LOCAL_WORK_V2")[];
358
809
  versions: {
359
810
  component: "CLI" | "SDK" | "MCP" | "RUNTIME" | "MEDIA_TOOLS";
360
811
  installedVersion: string | null;
@@ -369,6 +820,56 @@ export declare class NativeStudioLocalRuntimeClient {
369
820
  }[];
370
821
  nextActions: {
371
822
  call: {
823
+ operation: "agent.discover";
824
+ binary?: string | undefined;
825
+ } | {
826
+ operation: "offline.workspace";
827
+ input: {
828
+ action: "list" | "forget";
829
+ key: string;
830
+ } | {
831
+ action: "retain";
832
+ key: string;
833
+ snapshot: {
834
+ projectId: string;
835
+ title: string;
836
+ savedAt: string;
837
+ expiresAt: string;
838
+ productions: {
839
+ id: string;
840
+ title: string;
841
+ }[];
842
+ possiblyTruncated: boolean;
843
+ };
844
+ } | {
845
+ action: "draft";
846
+ key: string;
847
+ projectId: string;
848
+ text: string;
849
+ expectedRevision: number;
850
+ };
851
+ } | {
852
+ operation: "workspace.inspect";
853
+ } | {
854
+ operation: "workspace.configure";
855
+ policy: {
856
+ mode: "CONTINUOUS" | "IDLE_ONLY";
857
+ idleAfterSeconds: number;
858
+ maxConcurrentJobs: number;
859
+ cpuCores: 2 | 1;
860
+ memoryMiB: number;
861
+ cacheQuotaBytes: number;
862
+ };
863
+ expectedRevision: number;
864
+ } | {
865
+ operation: "workspace.activity";
866
+ idleSeconds: number;
867
+ observedAt: string;
868
+ } | {
869
+ operation: "storage.clean";
870
+ } | {
871
+ operation: "diagnostics.read";
872
+ } | {
372
873
  operation: "agent.grant";
373
874
  grant: {
374
875
  protocol: "NVS_CODEX_REVIEW_GRANT_V1";
@@ -386,6 +887,7 @@ export declare class NativeStudioLocalRuntimeClient {
386
887
  expiresAt: string;
387
888
  reasoningEffort?: "medium" | "low" | "high" | "xhigh" | undefined;
388
889
  imageDisclosureApproved?: true | undefined;
890
+ mediaDisclosureApproved?: true | undefined;
389
891
  };
390
892
  approval: string;
391
893
  } | {
@@ -402,11 +904,20 @@ export declare class NativeStudioLocalRuntimeClient {
402
904
  projectId: string & import("zod").$brand<"ProjectId">;
403
905
  productionId: string & import("zod").$brand<"ProductionId">;
404
906
  };
405
- contextFingerprint: string;
406
907
  target: {
407
908
  kind: "IMAGE";
408
909
  generationId: string;
910
+ } | {
911
+ kind: "VIDEO";
912
+ generationId: string;
913
+ } | {
914
+ kind: "ROUGH_CUT";
915
+ renderId: string;
916
+ } | {
917
+ kind: "PROGRAMMATIC";
918
+ renderId: string;
409
919
  };
920
+ contextFingerprint: string;
410
921
  };
411
922
  productionRevision: number;
412
923
  reviewVersion: number;
@@ -416,12 +927,115 @@ export declare class NativeStudioLocalRuntimeClient {
416
927
  representationId: string;
417
928
  checksumSha256: string;
418
929
  };
419
- requirements: {
930
+ requirements: ({
420
931
  key: string;
932
+ dimension: "TRANSITION" | "STYLE" | "PRODUCT_PRESENTATION" | "CANONICAL_FACT" | "NARRATIVE" | "PACING" | "REPETITION" | "TECHNICAL";
421
933
  expected: string;
422
934
  enforcement: "LOCKED" | "REQUIRED" | "PREFERRED";
935
+ scope: "TRANSITION" | "PRODUCTION";
936
+ interval: {
937
+ startMs: number;
938
+ endMs: number;
939
+ };
940
+ shotIds: string[];
941
+ continuity?: {
942
+ kind: "STATE";
943
+ mode: "PRESERVE" | "PLANNED_TRANSITIONS";
944
+ entry: string;
945
+ exit: string;
946
+ changes?: {
947
+ atPermille: number;
948
+ from: string;
949
+ to: string;
950
+ reason: string;
951
+ }[] | undefined;
952
+ } | {
953
+ kind: "TIME";
954
+ mode: "MONOTONIC" | "PLANNED_JUMPS";
955
+ entryMs: number;
956
+ exitMs: number;
957
+ jumps?: {
958
+ atPermille: number;
959
+ fromMs: number;
960
+ toMs: number;
961
+ reason: string;
962
+ }[] | undefined;
963
+ } | undefined;
964
+ consistencyScale?: "INTRA_SHOT" | "INTER_SHOT" | "PRODUCTION" | undefined;
965
+ consistencyFamily?: "PRODUCT_IDENTITY" | "CHARACTER_IDENTITY" | "WARDROBE" | "LOCATION" | "STYLE" | "BOUNDARY_CONTINUITY" | undefined;
966
+ consistencySubject?: {
967
+ id: string;
968
+ kind: "CHARACTER" | "VOICE";
969
+ displayName: string;
970
+ facts: {
971
+ dimension: string;
972
+ value: string;
973
+ }[];
974
+ master: {
975
+ artifactId: string & import("zod").$brand<"ArtifactId">;
976
+ representationId: string & import("zod").$brand<"ArtifactRepresentationId">;
977
+ checksumSha256: string;
978
+ artifactChecksumSha256: string;
979
+ contentType: "image/png" | "image/jpeg" | "image/webp" | "audio/wav";
980
+ };
981
+ } | undefined;
982
+ consistencyReference?: {
983
+ artifactId: string & import("zod").$brand<"ArtifactId">;
984
+ representationId: string & import("zod").$brand<"ArtifactRepresentationId">;
985
+ checksumSha256: string;
986
+ artifactChecksumSha256: string;
987
+ contentType: "image/png" | "image/jpeg" | "image/webp" | "audio/wav";
988
+ } | undefined;
989
+ } | {
990
+ key: string;
991
+ family: "PRODUCT_IDENTITY" | "CHARACTER_IDENTITY" | "WARDROBE" | "LOCATION" | "STYLE" | "SHOT_INTENT" | "BOUNDARY_CONTINUITY" | "SOUND";
992
+ expected: string;
993
+ enforcement: "LOCKED" | "REQUIRED" | "PREFERRED";
994
+ evidenceWindow: "START" | "END" | "WHOLE_VIDEO" | "TEMPORAL";
423
995
  intentPath?: string | undefined;
424
- }[];
996
+ continuity?: {
997
+ kind: "STATE";
998
+ mode: "PRESERVE" | "PLANNED_TRANSITIONS";
999
+ entry: string;
1000
+ exit: string;
1001
+ changes?: {
1002
+ atPermille: number;
1003
+ from: string;
1004
+ to: string;
1005
+ reason: string;
1006
+ }[] | undefined;
1007
+ } | {
1008
+ kind: "TIME";
1009
+ mode: "MONOTONIC" | "PLANNED_JUMPS";
1010
+ entryMs: number;
1011
+ exitMs: number;
1012
+ jumps?: {
1013
+ atPermille: number;
1014
+ fromMs: number;
1015
+ toMs: number;
1016
+ reason: string;
1017
+ }[] | undefined;
1018
+ } | undefined;
1019
+ interval?: {
1020
+ startMs: number;
1021
+ endMs: number;
1022
+ } | undefined;
1023
+ } | {
1024
+ key: string;
1025
+ expected: string;
1026
+ enforcement: "LOCKED" | "REQUIRED" | "PREFERRED";
1027
+ intentPath?: string | undefined;
1028
+ })[];
1029
+ evidence?: {
1030
+ profile: "NVS_AGENT_DERIVED_EVIDENCE_V1";
1031
+ contentType: "image/png" | "image/jpeg" | "image/webp" | "video/mp4";
1032
+ byteSize: number;
1033
+ width: number;
1034
+ height: number;
1035
+ durationMs?: number | undefined;
1036
+ frameRate?: 30 | 24 | undefined;
1037
+ hasAudio?: boolean | undefined;
1038
+ } | undefined;
425
1039
  image?: {
426
1040
  contentType: "image/png";
427
1041
  byteSize: number;
@@ -439,6 +1053,7 @@ export declare class NativeStudioLocalRuntimeClient {
439
1053
  id: string;
440
1054
  } | {
441
1055
  operation: "runtime.status";
1056
+ includeDevice?: true | undefined;
442
1057
  } | {
443
1058
  operation: "runtime.doctor";
444
1059
  } | {
@@ -460,6 +1075,7 @@ export declare class NativeStudioLocalRuntimeClient {
460
1075
  projectId: string;
461
1076
  productionId: string;
462
1077
  runtimeJobId: string;
1078
+ includeProgress?: boolean | undefined;
463
1079
  };
464
1080
  } | {
465
1081
  operation: "execution.list";
@@ -468,6 +1084,8 @@ export declare class NativeStudioLocalRuntimeClient {
468
1084
  projectId: string;
469
1085
  after: string | null;
470
1086
  limit: number;
1087
+ includeCompleted?: boolean | undefined;
1088
+ includeProgress?: boolean | undefined;
471
1089
  };
472
1090
  } | {
473
1091
  operation: "update.check";
@@ -484,6 +1102,11 @@ export declare class NativeStudioLocalRuntimeClient {
484
1102
  availability: "AVAILABLE" | "BLOCKED";
485
1103
  reason: "READY" | "INSTALL_REQUIRED" | "AUTHORIZATION_REQUIRED" | "VERSION_INCOMPATIBLE" | "UPDATE_AVAILABLE" | "RECOVERY_REQUIRED";
486
1104
  }[];
1105
+ deviceAuthority?: {
1106
+ tenantId: string;
1107
+ deviceId: string;
1108
+ origin: string;
1109
+ } | undefined;
487
1110
  }>;
488
1111
  doctor(signal?: AbortSignal): Promise<{
489
1112
  mode: "MANAGED" | "INSTALLED";
@@ -496,6 +1119,7 @@ export declare class NativeStudioLocalRuntimeClient {
496
1119
  version: string;
497
1120
  digest: string;
498
1121
  }[];
1122
+ executionProfiles?: ("ROUGH_CUT_PREVIEW_V1" | "STUDIO_MEDIA_V2")[] | undefined;
499
1123
  }>;
500
1124
  inventory(signal?: AbortSignal): Promise<{
501
1125
  runtimeRevision: number;
@@ -511,10 +1135,14 @@ export declare class NativeStudioLocalRuntimeClient {
511
1135
  architecture: "x64" | "arm64";
512
1136
  };
513
1137
  ipcProtocol: "NVS_LOCAL_IPC_V1";
514
- workProtocol: "NVS_LOCAL_WORK_V1";
1138
+ workProtocol: "NVS_LOCAL_WORK_V1" | "NVS_LOCAL_WORK_V2";
515
1139
  journalSchema: 1;
516
1140
  rendererDigest: string;
517
1141
  profileDigest: string;
1142
+ compatibleRenderers?: {
1143
+ rendererDigest: string;
1144
+ profileDigest: string;
1145
+ }[] | undefined;
518
1146
  };
519
1147
  activeProcesses: number;
520
1148
  pendingExecutions: number;
@@ -542,9 +1170,35 @@ export declare class NativeStudioLocalRuntimeClient {
542
1170
  grantFingerprint: string | null;
543
1171
  inference: "REMOTE_OPENAI";
544
1172
  }>;
1173
+ discoverAgent(binary?: string): Promise<{
1174
+ candidate: {
1175
+ binary: string;
1176
+ binaryDigest: string;
1177
+ version: string;
1178
+ qualified: boolean;
1179
+ } | null;
1180
+ configured: {
1181
+ protocol: "NVS_CODEX_REVIEW_GRANT_V1";
1182
+ binary: string;
1183
+ binaryDigest: string;
1184
+ version: "0.164.0" | "0.165.0";
1185
+ model: string;
1186
+ reviewerLabel: string;
1187
+ inference: "REMOTE_OPENAI";
1188
+ remoteUseApproved: true;
1189
+ projects: {
1190
+ tenantId: string;
1191
+ projectId: string;
1192
+ }[];
1193
+ expiresAt: string;
1194
+ reasoningEffort?: "medium" | "low" | "high" | "xhigh" | undefined;
1195
+ imageDisclosureApproved?: true | undefined;
1196
+ mediaDisclosureApproved?: true | undefined;
1197
+ } | null;
1198
+ }>;
545
1199
  prepareAgentReview(snapshot: LocalAgentSnapshot): Promise<{
546
1200
  plan: {
547
- protocol: "NVS_LOCAL_AGENT_REVIEW_V1";
1201
+ protocol: "NVS_LOCAL_AGENT_REVIEW_V1" | "NVS_LOCAL_AGENT_REVIEW_V2";
548
1202
  id: string;
549
1203
  grantFingerprint: string;
550
1204
  snapshot: {
@@ -554,11 +1208,20 @@ export declare class NativeStudioLocalRuntimeClient {
554
1208
  projectId: string & import("zod").$brand<"ProjectId">;
555
1209
  productionId: string & import("zod").$brand<"ProductionId">;
556
1210
  };
557
- contextFingerprint: string;
558
1211
  target: {
559
1212
  kind: "IMAGE";
560
1213
  generationId: string;
1214
+ } | {
1215
+ kind: "VIDEO";
1216
+ generationId: string;
1217
+ } | {
1218
+ kind: "ROUGH_CUT";
1219
+ renderId: string;
1220
+ } | {
1221
+ kind: "PROGRAMMATIC";
1222
+ renderId: string;
561
1223
  };
1224
+ contextFingerprint: string;
562
1225
  };
563
1226
  productionRevision: number;
564
1227
  reviewVersion: number;
@@ -568,12 +1231,115 @@ export declare class NativeStudioLocalRuntimeClient {
568
1231
  representationId: string;
569
1232
  checksumSha256: string;
570
1233
  };
571
- requirements: {
1234
+ requirements: ({
1235
+ key: string;
1236
+ dimension: "TRANSITION" | "STYLE" | "PRODUCT_PRESENTATION" | "CANONICAL_FACT" | "NARRATIVE" | "PACING" | "REPETITION" | "TECHNICAL";
1237
+ expected: string;
1238
+ enforcement: "LOCKED" | "REQUIRED" | "PREFERRED";
1239
+ scope: "TRANSITION" | "PRODUCTION";
1240
+ interval: {
1241
+ startMs: number;
1242
+ endMs: number;
1243
+ };
1244
+ shotIds: string[];
1245
+ continuity?: {
1246
+ kind: "STATE";
1247
+ mode: "PRESERVE" | "PLANNED_TRANSITIONS";
1248
+ entry: string;
1249
+ exit: string;
1250
+ changes?: {
1251
+ atPermille: number;
1252
+ from: string;
1253
+ to: string;
1254
+ reason: string;
1255
+ }[] | undefined;
1256
+ } | {
1257
+ kind: "TIME";
1258
+ mode: "MONOTONIC" | "PLANNED_JUMPS";
1259
+ entryMs: number;
1260
+ exitMs: number;
1261
+ jumps?: {
1262
+ atPermille: number;
1263
+ fromMs: number;
1264
+ toMs: number;
1265
+ reason: string;
1266
+ }[] | undefined;
1267
+ } | undefined;
1268
+ consistencyScale?: "INTRA_SHOT" | "INTER_SHOT" | "PRODUCTION" | undefined;
1269
+ consistencyFamily?: "PRODUCT_IDENTITY" | "CHARACTER_IDENTITY" | "WARDROBE" | "LOCATION" | "STYLE" | "BOUNDARY_CONTINUITY" | undefined;
1270
+ consistencySubject?: {
1271
+ id: string;
1272
+ kind: "CHARACTER" | "VOICE";
1273
+ displayName: string;
1274
+ facts: {
1275
+ dimension: string;
1276
+ value: string;
1277
+ }[];
1278
+ master: {
1279
+ artifactId: string & import("zod").$brand<"ArtifactId">;
1280
+ representationId: string & import("zod").$brand<"ArtifactRepresentationId">;
1281
+ checksumSha256: string;
1282
+ artifactChecksumSha256: string;
1283
+ contentType: "image/png" | "image/jpeg" | "image/webp" | "audio/wav";
1284
+ };
1285
+ } | undefined;
1286
+ consistencyReference?: {
1287
+ artifactId: string & import("zod").$brand<"ArtifactId">;
1288
+ representationId: string & import("zod").$brand<"ArtifactRepresentationId">;
1289
+ checksumSha256: string;
1290
+ artifactChecksumSha256: string;
1291
+ contentType: "image/png" | "image/jpeg" | "image/webp" | "audio/wav";
1292
+ } | undefined;
1293
+ } | {
572
1294
  key: string;
1295
+ family: "PRODUCT_IDENTITY" | "CHARACTER_IDENTITY" | "WARDROBE" | "LOCATION" | "STYLE" | "SHOT_INTENT" | "BOUNDARY_CONTINUITY" | "SOUND";
573
1296
  expected: string;
574
1297
  enforcement: "LOCKED" | "REQUIRED" | "PREFERRED";
1298
+ evidenceWindow: "START" | "END" | "WHOLE_VIDEO" | "TEMPORAL";
575
1299
  intentPath?: string | undefined;
576
- }[];
1300
+ continuity?: {
1301
+ kind: "STATE";
1302
+ mode: "PRESERVE" | "PLANNED_TRANSITIONS";
1303
+ entry: string;
1304
+ exit: string;
1305
+ changes?: {
1306
+ atPermille: number;
1307
+ from: string;
1308
+ to: string;
1309
+ reason: string;
1310
+ }[] | undefined;
1311
+ } | {
1312
+ kind: "TIME";
1313
+ mode: "MONOTONIC" | "PLANNED_JUMPS";
1314
+ entryMs: number;
1315
+ exitMs: number;
1316
+ jumps?: {
1317
+ atPermille: number;
1318
+ fromMs: number;
1319
+ toMs: number;
1320
+ reason: string;
1321
+ }[] | undefined;
1322
+ } | undefined;
1323
+ interval?: {
1324
+ startMs: number;
1325
+ endMs: number;
1326
+ } | undefined;
1327
+ } | {
1328
+ key: string;
1329
+ expected: string;
1330
+ enforcement: "LOCKED" | "REQUIRED" | "PREFERRED";
1331
+ intentPath?: string | undefined;
1332
+ })[];
1333
+ evidence?: {
1334
+ profile: "NVS_AGENT_DERIVED_EVIDENCE_V1";
1335
+ contentType: "image/png" | "image/jpeg" | "image/webp" | "video/mp4";
1336
+ byteSize: number;
1337
+ width: number;
1338
+ height: number;
1339
+ durationMs?: number | undefined;
1340
+ frameRate?: 30 | 24 | undefined;
1341
+ hasAudio?: boolean | undefined;
1342
+ } | undefined;
577
1343
  image?: {
578
1344
  contentType: "image/png";
579
1345
  byteSize: number;
@@ -596,20 +1362,20 @@ export declare class NativeStudioLocalRuntimeClient {
596
1362
  summary: string;
597
1363
  imageReadback: string;
598
1364
  observations: {
599
- key: string;
600
1365
  status: "SATISFIED" | "VIOLATED" | "NOT_OBSERVABLE" | "NOT_APPLICABLE";
601
1366
  confidence: "CLEAR" | "UNCERTAIN";
602
1367
  observed: string;
1368
+ key: string;
603
1369
  }[];
604
1370
  } | null;
605
1371
  provenance: {
606
- adapter: "CODEX_METADATA_V1";
1372
+ adapter: "CODEX_METADATA_V1" | "CODEX_MEDIA_V2";
607
1373
  binaryDigest: string;
608
1374
  version: "0.164.0" | "0.165.0";
609
1375
  model: string;
610
1376
  reviewerLabel: string;
611
1377
  inference: "REMOTE_OPENAI";
612
- evidence: "IMAGE_PIXELS" | "METADATA_ONLY";
1378
+ evidence: "IMAGE_PIXELS" | "VIDEO_FRAMES" | "METADATA_ONLY";
613
1379
  reasoningEffort?: "medium" | "low" | "high" | "xhigh" | undefined;
614
1380
  };
615
1381
  imageReceipt?: {
@@ -625,10 +1391,37 @@ export declare class NativeStudioLocalRuntimeClient {
625
1391
  width: number;
626
1392
  height: number;
627
1393
  } | undefined;
1394
+ evidenceReceipt?: {
1395
+ protocol: "NVS_AGENT_DERIVED_EVIDENCE_V1";
1396
+ draftId: string;
1397
+ media: {
1398
+ artifactId: string;
1399
+ representationId: string;
1400
+ checksumSha256: string;
1401
+ };
1402
+ ffmpegDigest: string;
1403
+ ffprobeDigest: string;
1404
+ attachment: {
1405
+ checksumSha256: string;
1406
+ byteSize: number;
1407
+ width: number;
1408
+ height: number;
1409
+ };
1410
+ timestampsMs: number[];
1411
+ audio: {
1412
+ sampleRateHz: 48000;
1413
+ channels: 1;
1414
+ samples: number;
1415
+ peak: number;
1416
+ rms: number;
1417
+ clippedSamples: number;
1418
+ } | null;
1419
+ limitations: ["SAMPLED_FRAMES_ARE_NOT_FULL_PLAYBACK", "AUDIO_STATISTICS_ARE_NOT_LISTENING_OR_TRANSCRIPTION"];
1420
+ } | undefined;
628
1421
  }>;
629
1422
  startAgentReview(id: string, expectedRevision: number, approval: string): Promise<{
630
1423
  plan: {
631
- protocol: "NVS_LOCAL_AGENT_REVIEW_V1";
1424
+ protocol: "NVS_LOCAL_AGENT_REVIEW_V1" | "NVS_LOCAL_AGENT_REVIEW_V2";
632
1425
  id: string;
633
1426
  grantFingerprint: string;
634
1427
  snapshot: {
@@ -638,11 +1431,20 @@ export declare class NativeStudioLocalRuntimeClient {
638
1431
  projectId: string & import("zod").$brand<"ProjectId">;
639
1432
  productionId: string & import("zod").$brand<"ProductionId">;
640
1433
  };
641
- contextFingerprint: string;
642
1434
  target: {
643
1435
  kind: "IMAGE";
644
1436
  generationId: string;
1437
+ } | {
1438
+ kind: "VIDEO";
1439
+ generationId: string;
1440
+ } | {
1441
+ kind: "ROUGH_CUT";
1442
+ renderId: string;
1443
+ } | {
1444
+ kind: "PROGRAMMATIC";
1445
+ renderId: string;
645
1446
  };
1447
+ contextFingerprint: string;
646
1448
  };
647
1449
  productionRevision: number;
648
1450
  reviewVersion: number;
@@ -652,12 +1454,115 @@ export declare class NativeStudioLocalRuntimeClient {
652
1454
  representationId: string;
653
1455
  checksumSha256: string;
654
1456
  };
655
- requirements: {
1457
+ requirements: ({
1458
+ key: string;
1459
+ dimension: "TRANSITION" | "STYLE" | "PRODUCT_PRESENTATION" | "CANONICAL_FACT" | "NARRATIVE" | "PACING" | "REPETITION" | "TECHNICAL";
1460
+ expected: string;
1461
+ enforcement: "LOCKED" | "REQUIRED" | "PREFERRED";
1462
+ scope: "TRANSITION" | "PRODUCTION";
1463
+ interval: {
1464
+ startMs: number;
1465
+ endMs: number;
1466
+ };
1467
+ shotIds: string[];
1468
+ continuity?: {
1469
+ kind: "STATE";
1470
+ mode: "PRESERVE" | "PLANNED_TRANSITIONS";
1471
+ entry: string;
1472
+ exit: string;
1473
+ changes?: {
1474
+ atPermille: number;
1475
+ from: string;
1476
+ to: string;
1477
+ reason: string;
1478
+ }[] | undefined;
1479
+ } | {
1480
+ kind: "TIME";
1481
+ mode: "MONOTONIC" | "PLANNED_JUMPS";
1482
+ entryMs: number;
1483
+ exitMs: number;
1484
+ jumps?: {
1485
+ atPermille: number;
1486
+ fromMs: number;
1487
+ toMs: number;
1488
+ reason: string;
1489
+ }[] | undefined;
1490
+ } | undefined;
1491
+ consistencyScale?: "INTRA_SHOT" | "INTER_SHOT" | "PRODUCTION" | undefined;
1492
+ consistencyFamily?: "PRODUCT_IDENTITY" | "CHARACTER_IDENTITY" | "WARDROBE" | "LOCATION" | "STYLE" | "BOUNDARY_CONTINUITY" | undefined;
1493
+ consistencySubject?: {
1494
+ id: string;
1495
+ kind: "CHARACTER" | "VOICE";
1496
+ displayName: string;
1497
+ facts: {
1498
+ dimension: string;
1499
+ value: string;
1500
+ }[];
1501
+ master: {
1502
+ artifactId: string & import("zod").$brand<"ArtifactId">;
1503
+ representationId: string & import("zod").$brand<"ArtifactRepresentationId">;
1504
+ checksumSha256: string;
1505
+ artifactChecksumSha256: string;
1506
+ contentType: "image/png" | "image/jpeg" | "image/webp" | "audio/wav";
1507
+ };
1508
+ } | undefined;
1509
+ consistencyReference?: {
1510
+ artifactId: string & import("zod").$brand<"ArtifactId">;
1511
+ representationId: string & import("zod").$brand<"ArtifactRepresentationId">;
1512
+ checksumSha256: string;
1513
+ artifactChecksumSha256: string;
1514
+ contentType: "image/png" | "image/jpeg" | "image/webp" | "audio/wav";
1515
+ } | undefined;
1516
+ } | {
656
1517
  key: string;
1518
+ family: "PRODUCT_IDENTITY" | "CHARACTER_IDENTITY" | "WARDROBE" | "LOCATION" | "STYLE" | "SHOT_INTENT" | "BOUNDARY_CONTINUITY" | "SOUND";
657
1519
  expected: string;
658
1520
  enforcement: "LOCKED" | "REQUIRED" | "PREFERRED";
1521
+ evidenceWindow: "START" | "END" | "WHOLE_VIDEO" | "TEMPORAL";
659
1522
  intentPath?: string | undefined;
660
- }[];
1523
+ continuity?: {
1524
+ kind: "STATE";
1525
+ mode: "PRESERVE" | "PLANNED_TRANSITIONS";
1526
+ entry: string;
1527
+ exit: string;
1528
+ changes?: {
1529
+ atPermille: number;
1530
+ from: string;
1531
+ to: string;
1532
+ reason: string;
1533
+ }[] | undefined;
1534
+ } | {
1535
+ kind: "TIME";
1536
+ mode: "MONOTONIC" | "PLANNED_JUMPS";
1537
+ entryMs: number;
1538
+ exitMs: number;
1539
+ jumps?: {
1540
+ atPermille: number;
1541
+ fromMs: number;
1542
+ toMs: number;
1543
+ reason: string;
1544
+ }[] | undefined;
1545
+ } | undefined;
1546
+ interval?: {
1547
+ startMs: number;
1548
+ endMs: number;
1549
+ } | undefined;
1550
+ } | {
1551
+ key: string;
1552
+ expected: string;
1553
+ enforcement: "LOCKED" | "REQUIRED" | "PREFERRED";
1554
+ intentPath?: string | undefined;
1555
+ })[];
1556
+ evidence?: {
1557
+ profile: "NVS_AGENT_DERIVED_EVIDENCE_V1";
1558
+ contentType: "image/png" | "image/jpeg" | "image/webp" | "video/mp4";
1559
+ byteSize: number;
1560
+ width: number;
1561
+ height: number;
1562
+ durationMs?: number | undefined;
1563
+ frameRate?: 30 | 24 | undefined;
1564
+ hasAudio?: boolean | undefined;
1565
+ } | undefined;
661
1566
  image?: {
662
1567
  contentType: "image/png";
663
1568
  byteSize: number;
@@ -680,20 +1585,20 @@ export declare class NativeStudioLocalRuntimeClient {
680
1585
  summary: string;
681
1586
  imageReadback: string;
682
1587
  observations: {
683
- key: string;
684
1588
  status: "SATISFIED" | "VIOLATED" | "NOT_OBSERVABLE" | "NOT_APPLICABLE";
685
1589
  confidence: "CLEAR" | "UNCERTAIN";
686
1590
  observed: string;
1591
+ key: string;
687
1592
  }[];
688
1593
  } | null;
689
1594
  provenance: {
690
- adapter: "CODEX_METADATA_V1";
1595
+ adapter: "CODEX_METADATA_V1" | "CODEX_MEDIA_V2";
691
1596
  binaryDigest: string;
692
1597
  version: "0.164.0" | "0.165.0";
693
1598
  model: string;
694
1599
  reviewerLabel: string;
695
1600
  inference: "REMOTE_OPENAI";
696
- evidence: "IMAGE_PIXELS" | "METADATA_ONLY";
1601
+ evidence: "IMAGE_PIXELS" | "VIDEO_FRAMES" | "METADATA_ONLY";
697
1602
  reasoningEffort?: "medium" | "low" | "high" | "xhigh" | undefined;
698
1603
  };
699
1604
  imageReceipt?: {
@@ -709,10 +1614,37 @@ export declare class NativeStudioLocalRuntimeClient {
709
1614
  width: number;
710
1615
  height: number;
711
1616
  } | undefined;
1617
+ evidenceReceipt?: {
1618
+ protocol: "NVS_AGENT_DERIVED_EVIDENCE_V1";
1619
+ draftId: string;
1620
+ media: {
1621
+ artifactId: string;
1622
+ representationId: string;
1623
+ checksumSha256: string;
1624
+ };
1625
+ ffmpegDigest: string;
1626
+ ffprobeDigest: string;
1627
+ attachment: {
1628
+ checksumSha256: string;
1629
+ byteSize: number;
1630
+ width: number;
1631
+ height: number;
1632
+ };
1633
+ timestampsMs: number[];
1634
+ audio: {
1635
+ sampleRateHz: 48000;
1636
+ channels: 1;
1637
+ samples: number;
1638
+ peak: number;
1639
+ rms: number;
1640
+ clippedSamples: number;
1641
+ } | null;
1642
+ limitations: ["SAMPLED_FRAMES_ARE_NOT_FULL_PLAYBACK", "AUDIO_STATISTICS_ARE_NOT_LISTENING_OR_TRANSCRIPTION"];
1643
+ } | undefined;
712
1644
  }>;
713
1645
  stageAgentImage(id: string, bytes: Uint8Array, signal?: AbortSignal): Promise<{
714
1646
  plan: {
715
- protocol: "NVS_LOCAL_AGENT_REVIEW_V1";
1647
+ protocol: "NVS_LOCAL_AGENT_REVIEW_V1" | "NVS_LOCAL_AGENT_REVIEW_V2";
716
1648
  id: string;
717
1649
  grantFingerprint: string;
718
1650
  snapshot: {
@@ -722,11 +1654,20 @@ export declare class NativeStudioLocalRuntimeClient {
722
1654
  projectId: string & import("zod").$brand<"ProjectId">;
723
1655
  productionId: string & import("zod").$brand<"ProductionId">;
724
1656
  };
725
- contextFingerprint: string;
726
1657
  target: {
727
1658
  kind: "IMAGE";
728
1659
  generationId: string;
1660
+ } | {
1661
+ kind: "VIDEO";
1662
+ generationId: string;
1663
+ } | {
1664
+ kind: "ROUGH_CUT";
1665
+ renderId: string;
1666
+ } | {
1667
+ kind: "PROGRAMMATIC";
1668
+ renderId: string;
729
1669
  };
1670
+ contextFingerprint: string;
730
1671
  };
731
1672
  productionRevision: number;
732
1673
  reviewVersion: number;
@@ -736,12 +1677,115 @@ export declare class NativeStudioLocalRuntimeClient {
736
1677
  representationId: string;
737
1678
  checksumSha256: string;
738
1679
  };
739
- requirements: {
1680
+ requirements: ({
740
1681
  key: string;
1682
+ dimension: "TRANSITION" | "STYLE" | "PRODUCT_PRESENTATION" | "CANONICAL_FACT" | "NARRATIVE" | "PACING" | "REPETITION" | "TECHNICAL";
741
1683
  expected: string;
742
1684
  enforcement: "LOCKED" | "REQUIRED" | "PREFERRED";
1685
+ scope: "TRANSITION" | "PRODUCTION";
1686
+ interval: {
1687
+ startMs: number;
1688
+ endMs: number;
1689
+ };
1690
+ shotIds: string[];
1691
+ continuity?: {
1692
+ kind: "STATE";
1693
+ mode: "PRESERVE" | "PLANNED_TRANSITIONS";
1694
+ entry: string;
1695
+ exit: string;
1696
+ changes?: {
1697
+ atPermille: number;
1698
+ from: string;
1699
+ to: string;
1700
+ reason: string;
1701
+ }[] | undefined;
1702
+ } | {
1703
+ kind: "TIME";
1704
+ mode: "MONOTONIC" | "PLANNED_JUMPS";
1705
+ entryMs: number;
1706
+ exitMs: number;
1707
+ jumps?: {
1708
+ atPermille: number;
1709
+ fromMs: number;
1710
+ toMs: number;
1711
+ reason: string;
1712
+ }[] | undefined;
1713
+ } | undefined;
1714
+ consistencyScale?: "INTRA_SHOT" | "INTER_SHOT" | "PRODUCTION" | undefined;
1715
+ consistencyFamily?: "PRODUCT_IDENTITY" | "CHARACTER_IDENTITY" | "WARDROBE" | "LOCATION" | "STYLE" | "BOUNDARY_CONTINUITY" | undefined;
1716
+ consistencySubject?: {
1717
+ id: string;
1718
+ kind: "CHARACTER" | "VOICE";
1719
+ displayName: string;
1720
+ facts: {
1721
+ dimension: string;
1722
+ value: string;
1723
+ }[];
1724
+ master: {
1725
+ artifactId: string & import("zod").$brand<"ArtifactId">;
1726
+ representationId: string & import("zod").$brand<"ArtifactRepresentationId">;
1727
+ checksumSha256: string;
1728
+ artifactChecksumSha256: string;
1729
+ contentType: "image/png" | "image/jpeg" | "image/webp" | "audio/wav";
1730
+ };
1731
+ } | undefined;
1732
+ consistencyReference?: {
1733
+ artifactId: string & import("zod").$brand<"ArtifactId">;
1734
+ representationId: string & import("zod").$brand<"ArtifactRepresentationId">;
1735
+ checksumSha256: string;
1736
+ artifactChecksumSha256: string;
1737
+ contentType: "image/png" | "image/jpeg" | "image/webp" | "audio/wav";
1738
+ } | undefined;
1739
+ } | {
1740
+ key: string;
1741
+ family: "PRODUCT_IDENTITY" | "CHARACTER_IDENTITY" | "WARDROBE" | "LOCATION" | "STYLE" | "SHOT_INTENT" | "BOUNDARY_CONTINUITY" | "SOUND";
1742
+ expected: string;
1743
+ enforcement: "LOCKED" | "REQUIRED" | "PREFERRED";
1744
+ evidenceWindow: "START" | "END" | "WHOLE_VIDEO" | "TEMPORAL";
743
1745
  intentPath?: string | undefined;
744
- }[];
1746
+ continuity?: {
1747
+ kind: "STATE";
1748
+ mode: "PRESERVE" | "PLANNED_TRANSITIONS";
1749
+ entry: string;
1750
+ exit: string;
1751
+ changes?: {
1752
+ atPermille: number;
1753
+ from: string;
1754
+ to: string;
1755
+ reason: string;
1756
+ }[] | undefined;
1757
+ } | {
1758
+ kind: "TIME";
1759
+ mode: "MONOTONIC" | "PLANNED_JUMPS";
1760
+ entryMs: number;
1761
+ exitMs: number;
1762
+ jumps?: {
1763
+ atPermille: number;
1764
+ fromMs: number;
1765
+ toMs: number;
1766
+ reason: string;
1767
+ }[] | undefined;
1768
+ } | undefined;
1769
+ interval?: {
1770
+ startMs: number;
1771
+ endMs: number;
1772
+ } | undefined;
1773
+ } | {
1774
+ key: string;
1775
+ expected: string;
1776
+ enforcement: "LOCKED" | "REQUIRED" | "PREFERRED";
1777
+ intentPath?: string | undefined;
1778
+ })[];
1779
+ evidence?: {
1780
+ profile: "NVS_AGENT_DERIVED_EVIDENCE_V1";
1781
+ contentType: "image/png" | "image/jpeg" | "image/webp" | "video/mp4";
1782
+ byteSize: number;
1783
+ width: number;
1784
+ height: number;
1785
+ durationMs?: number | undefined;
1786
+ frameRate?: 30 | 24 | undefined;
1787
+ hasAudio?: boolean | undefined;
1788
+ } | undefined;
745
1789
  image?: {
746
1790
  contentType: "image/png";
747
1791
  byteSize: number;
@@ -764,20 +1808,20 @@ export declare class NativeStudioLocalRuntimeClient {
764
1808
  summary: string;
765
1809
  imageReadback: string;
766
1810
  observations: {
767
- key: string;
768
1811
  status: "SATISFIED" | "VIOLATED" | "NOT_OBSERVABLE" | "NOT_APPLICABLE";
769
1812
  confidence: "CLEAR" | "UNCERTAIN";
770
1813
  observed: string;
1814
+ key: string;
771
1815
  }[];
772
1816
  } | null;
773
1817
  provenance: {
774
- adapter: "CODEX_METADATA_V1";
1818
+ adapter: "CODEX_METADATA_V1" | "CODEX_MEDIA_V2";
775
1819
  binaryDigest: string;
776
1820
  version: "0.164.0" | "0.165.0";
777
1821
  model: string;
778
1822
  reviewerLabel: string;
779
1823
  inference: "REMOTE_OPENAI";
780
- evidence: "IMAGE_PIXELS" | "METADATA_ONLY";
1824
+ evidence: "IMAGE_PIXELS" | "VIDEO_FRAMES" | "METADATA_ONLY";
781
1825
  reasoningEffort?: "medium" | "low" | "high" | "xhigh" | undefined;
782
1826
  };
783
1827
  imageReceipt?: {
@@ -793,10 +1837,37 @@ export declare class NativeStudioLocalRuntimeClient {
793
1837
  width: number;
794
1838
  height: number;
795
1839
  } | undefined;
1840
+ evidenceReceipt?: {
1841
+ protocol: "NVS_AGENT_DERIVED_EVIDENCE_V1";
1842
+ draftId: string;
1843
+ media: {
1844
+ artifactId: string;
1845
+ representationId: string;
1846
+ checksumSha256: string;
1847
+ };
1848
+ ffmpegDigest: string;
1849
+ ffprobeDigest: string;
1850
+ attachment: {
1851
+ checksumSha256: string;
1852
+ byteSize: number;
1853
+ width: number;
1854
+ height: number;
1855
+ };
1856
+ timestampsMs: number[];
1857
+ audio: {
1858
+ sampleRateHz: 48000;
1859
+ channels: 1;
1860
+ samples: number;
1861
+ peak: number;
1862
+ rms: number;
1863
+ clippedSamples: number;
1864
+ } | null;
1865
+ limitations: ["SAMPLED_FRAMES_ARE_NOT_FULL_PLAYBACK", "AUDIO_STATISTICS_ARE_NOT_LISTENING_OR_TRANSCRIPTION"];
1866
+ } | undefined;
796
1867
  }>;
797
1868
  inspectAgentReview(id: string, signal?: AbortSignal): Promise<{
798
1869
  plan: {
799
- protocol: "NVS_LOCAL_AGENT_REVIEW_V1";
1870
+ protocol: "NVS_LOCAL_AGENT_REVIEW_V1" | "NVS_LOCAL_AGENT_REVIEW_V2";
800
1871
  id: string;
801
1872
  grantFingerprint: string;
802
1873
  snapshot: {
@@ -806,11 +1877,20 @@ export declare class NativeStudioLocalRuntimeClient {
806
1877
  projectId: string & import("zod").$brand<"ProjectId">;
807
1878
  productionId: string & import("zod").$brand<"ProductionId">;
808
1879
  };
809
- contextFingerprint: string;
810
1880
  target: {
811
1881
  kind: "IMAGE";
812
1882
  generationId: string;
1883
+ } | {
1884
+ kind: "VIDEO";
1885
+ generationId: string;
1886
+ } | {
1887
+ kind: "ROUGH_CUT";
1888
+ renderId: string;
1889
+ } | {
1890
+ kind: "PROGRAMMATIC";
1891
+ renderId: string;
813
1892
  };
1893
+ contextFingerprint: string;
814
1894
  };
815
1895
  productionRevision: number;
816
1896
  reviewVersion: number;
@@ -820,12 +1900,115 @@ export declare class NativeStudioLocalRuntimeClient {
820
1900
  representationId: string;
821
1901
  checksumSha256: string;
822
1902
  };
823
- requirements: {
1903
+ requirements: ({
824
1904
  key: string;
1905
+ dimension: "TRANSITION" | "STYLE" | "PRODUCT_PRESENTATION" | "CANONICAL_FACT" | "NARRATIVE" | "PACING" | "REPETITION" | "TECHNICAL";
825
1906
  expected: string;
826
1907
  enforcement: "LOCKED" | "REQUIRED" | "PREFERRED";
1908
+ scope: "TRANSITION" | "PRODUCTION";
1909
+ interval: {
1910
+ startMs: number;
1911
+ endMs: number;
1912
+ };
1913
+ shotIds: string[];
1914
+ continuity?: {
1915
+ kind: "STATE";
1916
+ mode: "PRESERVE" | "PLANNED_TRANSITIONS";
1917
+ entry: string;
1918
+ exit: string;
1919
+ changes?: {
1920
+ atPermille: number;
1921
+ from: string;
1922
+ to: string;
1923
+ reason: string;
1924
+ }[] | undefined;
1925
+ } | {
1926
+ kind: "TIME";
1927
+ mode: "MONOTONIC" | "PLANNED_JUMPS";
1928
+ entryMs: number;
1929
+ exitMs: number;
1930
+ jumps?: {
1931
+ atPermille: number;
1932
+ fromMs: number;
1933
+ toMs: number;
1934
+ reason: string;
1935
+ }[] | undefined;
1936
+ } | undefined;
1937
+ consistencyScale?: "INTRA_SHOT" | "INTER_SHOT" | "PRODUCTION" | undefined;
1938
+ consistencyFamily?: "PRODUCT_IDENTITY" | "CHARACTER_IDENTITY" | "WARDROBE" | "LOCATION" | "STYLE" | "BOUNDARY_CONTINUITY" | undefined;
1939
+ consistencySubject?: {
1940
+ id: string;
1941
+ kind: "CHARACTER" | "VOICE";
1942
+ displayName: string;
1943
+ facts: {
1944
+ dimension: string;
1945
+ value: string;
1946
+ }[];
1947
+ master: {
1948
+ artifactId: string & import("zod").$brand<"ArtifactId">;
1949
+ representationId: string & import("zod").$brand<"ArtifactRepresentationId">;
1950
+ checksumSha256: string;
1951
+ artifactChecksumSha256: string;
1952
+ contentType: "image/png" | "image/jpeg" | "image/webp" | "audio/wav";
1953
+ };
1954
+ } | undefined;
1955
+ consistencyReference?: {
1956
+ artifactId: string & import("zod").$brand<"ArtifactId">;
1957
+ representationId: string & import("zod").$brand<"ArtifactRepresentationId">;
1958
+ checksumSha256: string;
1959
+ artifactChecksumSha256: string;
1960
+ contentType: "image/png" | "image/jpeg" | "image/webp" | "audio/wav";
1961
+ } | undefined;
1962
+ } | {
1963
+ key: string;
1964
+ family: "PRODUCT_IDENTITY" | "CHARACTER_IDENTITY" | "WARDROBE" | "LOCATION" | "STYLE" | "SHOT_INTENT" | "BOUNDARY_CONTINUITY" | "SOUND";
1965
+ expected: string;
1966
+ enforcement: "LOCKED" | "REQUIRED" | "PREFERRED";
1967
+ evidenceWindow: "START" | "END" | "WHOLE_VIDEO" | "TEMPORAL";
827
1968
  intentPath?: string | undefined;
828
- }[];
1969
+ continuity?: {
1970
+ kind: "STATE";
1971
+ mode: "PRESERVE" | "PLANNED_TRANSITIONS";
1972
+ entry: string;
1973
+ exit: string;
1974
+ changes?: {
1975
+ atPermille: number;
1976
+ from: string;
1977
+ to: string;
1978
+ reason: string;
1979
+ }[] | undefined;
1980
+ } | {
1981
+ kind: "TIME";
1982
+ mode: "MONOTONIC" | "PLANNED_JUMPS";
1983
+ entryMs: number;
1984
+ exitMs: number;
1985
+ jumps?: {
1986
+ atPermille: number;
1987
+ fromMs: number;
1988
+ toMs: number;
1989
+ reason: string;
1990
+ }[] | undefined;
1991
+ } | undefined;
1992
+ interval?: {
1993
+ startMs: number;
1994
+ endMs: number;
1995
+ } | undefined;
1996
+ } | {
1997
+ key: string;
1998
+ expected: string;
1999
+ enforcement: "LOCKED" | "REQUIRED" | "PREFERRED";
2000
+ intentPath?: string | undefined;
2001
+ })[];
2002
+ evidence?: {
2003
+ profile: "NVS_AGENT_DERIVED_EVIDENCE_V1";
2004
+ contentType: "image/png" | "image/jpeg" | "image/webp" | "video/mp4";
2005
+ byteSize: number;
2006
+ width: number;
2007
+ height: number;
2008
+ durationMs?: number | undefined;
2009
+ frameRate?: 30 | 24 | undefined;
2010
+ hasAudio?: boolean | undefined;
2011
+ } | undefined;
829
2012
  image?: {
830
2013
  contentType: "image/png";
831
2014
  byteSize: number;
@@ -848,20 +2031,20 @@ export declare class NativeStudioLocalRuntimeClient {
848
2031
  summary: string;
849
2032
  imageReadback: string;
850
2033
  observations: {
851
- key: string;
852
2034
  status: "SATISFIED" | "VIOLATED" | "NOT_OBSERVABLE" | "NOT_APPLICABLE";
853
2035
  confidence: "CLEAR" | "UNCERTAIN";
854
2036
  observed: string;
2037
+ key: string;
855
2038
  }[];
856
2039
  } | null;
857
2040
  provenance: {
858
- adapter: "CODEX_METADATA_V1";
2041
+ adapter: "CODEX_METADATA_V1" | "CODEX_MEDIA_V2";
859
2042
  binaryDigest: string;
860
2043
  version: "0.164.0" | "0.165.0";
861
2044
  model: string;
862
2045
  reviewerLabel: string;
863
2046
  inference: "REMOTE_OPENAI";
864
- evidence: "IMAGE_PIXELS" | "METADATA_ONLY";
2047
+ evidence: "IMAGE_PIXELS" | "VIDEO_FRAMES" | "METADATA_ONLY";
865
2048
  reasoningEffort?: "medium" | "low" | "high" | "xhigh" | undefined;
866
2049
  };
867
2050
  imageReceipt?: {
@@ -877,6 +2060,33 @@ export declare class NativeStudioLocalRuntimeClient {
877
2060
  width: number;
878
2061
  height: number;
879
2062
  } | undefined;
2063
+ evidenceReceipt?: {
2064
+ protocol: "NVS_AGENT_DERIVED_EVIDENCE_V1";
2065
+ draftId: string;
2066
+ media: {
2067
+ artifactId: string;
2068
+ representationId: string;
2069
+ checksumSha256: string;
2070
+ };
2071
+ ffmpegDigest: string;
2072
+ ffprobeDigest: string;
2073
+ attachment: {
2074
+ checksumSha256: string;
2075
+ byteSize: number;
2076
+ width: number;
2077
+ height: number;
2078
+ };
2079
+ timestampsMs: number[];
2080
+ audio: {
2081
+ sampleRateHz: 48000;
2082
+ channels: 1;
2083
+ samples: number;
2084
+ peak: number;
2085
+ rms: number;
2086
+ clippedSamples: number;
2087
+ } | null;
2088
+ limitations: ["SAMPLED_FRAMES_ARE_NOT_FULL_PLAYBACK", "AUDIO_STATISTICS_ARE_NOT_LISTENING_OR_TRANSCRIPTION"];
2089
+ } | undefined;
880
2090
  }>;
881
2091
  executions(input: {
882
2092
  tenantId: string;
@@ -897,12 +2107,25 @@ export declare class NativeStudioLocalRuntimeClient {
897
2107
  toolchainFingerprint: string;
898
2108
  };
899
2109
  revision: number;
900
- phase: "RUNNING" | "RECOVERY_REQUIRED" | "STAGED" | "OUTPUT_PENDING" | "RECEIPT_RECORDED" | "FENCED";
2110
+ phase: "RUNNING" | "RECOVERY_REQUIRED" | "FENCED" | "STAGED" | "OUTPUT_PENDING" | "RECEIPT_RECORDED";
901
2111
  checkpoint: "ADOPTED" | "SOURCES_READY" | "PROCESS_STARTED" | "OUTPUT_STAGED";
2112
+ progress?: {
2113
+ stage: "WAITING" | "COMPLETE" | "RECOVERY_REQUIRED" | "DOWNLOADING" | "EXECUTING" | "UPLOADING" | "AWAITING_ACCEPTANCE" | "FENCED";
2114
+ downloadedBytes: number;
2115
+ sourceBytes: number;
2116
+ uploadedBytes: number;
2117
+ outputBytes: number;
2118
+ lastError: {
2119
+ code: string;
2120
+ observedAt: string;
2121
+ } | null;
2122
+ } | undefined;
902
2123
  }[];
903
2124
  nextCursor: string | null;
904
2125
  }>;
905
- inspect(raw: LocalWorkScope, signal?: AbortSignal): Promise<{
2126
+ inspect(raw: LocalWorkScope & {
2127
+ includeProgress?: boolean | undefined;
2128
+ }, signal?: AbortSignal): Promise<{
906
2129
  binding: {
907
2130
  tenantId: string;
908
2131
  projectId: string;
@@ -915,8 +2138,19 @@ export declare class NativeStudioLocalRuntimeClient {
915
2138
  toolchainFingerprint: string;
916
2139
  };
917
2140
  revision: number;
918
- phase: "RUNNING" | "RECOVERY_REQUIRED" | "STAGED" | "OUTPUT_PENDING" | "RECEIPT_RECORDED" | "FENCED";
2141
+ phase: "RUNNING" | "RECOVERY_REQUIRED" | "FENCED" | "STAGED" | "OUTPUT_PENDING" | "RECEIPT_RECORDED";
919
2142
  checkpoint: "ADOPTED" | "SOURCES_READY" | "PROCESS_STARTED" | "OUTPUT_STAGED";
2143
+ progress?: {
2144
+ stage: "WAITING" | "COMPLETE" | "RECOVERY_REQUIRED" | "DOWNLOADING" | "EXECUTING" | "UPLOADING" | "AWAITING_ACCEPTANCE" | "FENCED";
2145
+ downloadedBytes: number;
2146
+ sourceBytes: number;
2147
+ uploadedBytes: number;
2148
+ outputBytes: number;
2149
+ lastError: {
2150
+ code: string;
2151
+ observedAt: string;
2152
+ } | null;
2153
+ } | undefined;
920
2154
  } | null>;
921
2155
  }
922
2156
  export { LocalSessionConnectorSchema } from "../contracts/local-execution/index.js";
@@ -924,9 +2158,13 @@ export { NativeStudioSdkError } from "./errors.js";
924
2158
  export { LocalRuntimeDescriptorSchema, LocalManagementInventorySchema, LocalSignedCatalogueSchema, LocalReleaseSchema, LocalUpdatePlanSchema, LocalToolChoiceSchema, LocalClientNextActionSchema, canonicalLocalJson, LocalSessionConnectorSchema as LocalConnectorSchema, } from "../contracts/local-execution/index.js";
925
2159
  export type { LocalRelease, LocalSignedCatalogue, LocalUpdatePlan, LocalToolChoice, LocalRuntimeDescriptor, LocalSessionConnector, } from "../contracts/local-execution/index.js";
926
2160
  export { NativeStudioLocalDeviceClient } from "./local-runtime/device-client.js";
927
- export { EnrollLocalDeviceSchema, GrantLocalDeviceSchema, RevokeLocalDeviceSchema, RevokeLocalDeviceGrantSchema, StartLocalPreviewSchema, LocalDeviceTransportConfigurationSchema, } from "../contracts/local-execution/index.js";
2161
+ export { EnrollLocalDeviceSchema, GrantLocalDeviceSchema, RevokeLocalDeviceSchema, RevokeLocalDeviceGrantSchema, StartLocalPreviewSchema, StartLocalFinalRenderSchema, LocalDeviceTransportConfigurationSchema, } from "../contracts/local-execution/index.js";
928
2162
  export { LocalToolSelectionSchema, LocalWorkScopeSchema, } from "../contracts/local-execution/index.js";
929
2163
  export { LocalExecutionListInputSchema, LocalExecutionPageSchema, } from "../contracts/local-execution/index.js";
930
2164
  export { LocalMcpOutputSchemas, LocalMcpFailureSchema, } from "../contracts/local-execution/index.js";
931
2165
  export { LocalDoctorReportSchema } from "../contracts/local-execution/index.js";
932
- export { LocalAgentGrantSchema, LocalAgentSnapshotSchema, localAgentSnapshotFromContext, localAgentNativeProposal, } from "../contracts/local-execution/index.js";
2166
+ export { LocalManagementCommandSchema, LocalManagementResultSchema, LocalManagementReceiptSchema, localManagementRoutes, LocalDeviceViewSchema, LocalDeviceGrantSchema, LocalPreviewAdmissionSchema, LocalFinalRenderAdmissionSchema, LocalDeviceChallengeSchema, LocalDeviceSessionSchema, } from "../contracts/local-execution/index.js";
2167
+ export { LocalAgentGrantSchema, LocalAgentSnapshotSchema, localAgentSnapshotFromContext, localAgentNativeProposal, localAgentMediaSnapshot, localAgentMediaProposal, LocalAgentReviewViewSchema, LocalAgentProbeSchema, LocalAgentDiscoverySchema, } from "../contracts/local-execution/index.js";
2168
+ export { NativeStudioLocalWorkspaceClient } from "./local-runtime/workspace.js";
2169
+ export { LocalOfflineCallSchema, LocalOfflinePageSchema, } from "../contracts/local-execution/index.js";
2170
+ export { LocalResourcePolicySchema, LocalResourceSettingsSchema, LocalWorkspaceInspectionSchema, LocalStorageInspectionSchema, LocalExecutionProgressSchema, LocalExecutionInspectInputSchema, LocalDiagnosticsSchema, } from "../contracts/local-execution/index.js";