@nativestudio/cli 0.3.0-rc.1 → 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 (92) hide show
  1. package/COMPATIBILITY.json +7 -7
  2. package/README.md +45 -4
  3. package/components/runtime.json +3 -3
  4. package/components/runtime.tgz +0 -0
  5. package/dist/_chunks/{chunk-25EDDZQA.js → chunk-6LU6GJKW.js} +1 -1
  6. package/dist/_chunks/chunk-CA54SKBO.js +1 -0
  7. package/dist/_chunks/chunk-D533YC7J.js +1 -0
  8. package/dist/_chunks/{chunk-G42IS5JF.js → chunk-DXJQWTLG.js} +1 -1
  9. package/dist/_chunks/{chunk-MSOMVWKN.js → chunk-FU3524Z6.js} +1 -1
  10. package/dist/_chunks/chunk-JLOHTDP6.js +1 -0
  11. package/dist/_chunks/chunk-KB2GVAN7.js +1 -0
  12. package/dist/_chunks/{chunk-RUMDDTON.js → chunk-KNFUMWDY.js} +1 -1
  13. package/dist/_chunks/chunk-PBEHCYR7.js +1 -0
  14. package/dist/_chunks/chunk-RNOIRNC3.js +1 -0
  15. package/dist/_chunks/chunk-VDQOSVZY.js +1 -0
  16. package/dist/_chunks/chunk-XZP6RNGC.js +1 -0
  17. package/dist/_chunks/chunk-YKOJPJZR.js +1 -0
  18. package/dist/_chunks/{files-TBJVDQWU.js → files-TTIQ7LYJ.js} +1 -1
  19. package/dist/_chunks/local-main-GSL2FQOG.js +1 -0
  20. package/dist/_chunks/local-mcp-VYHO4ZE3.js +1 -0
  21. package/dist/_chunks/{main-4SNF5EKE.js → main-KLXOK7QK.js} +2 -2
  22. package/dist/_chunks/mcp-P7W623FE.js +1 -0
  23. package/dist/_chunks/oauth-WJ36KWAC.js +1 -0
  24. package/dist/_chunks/project-connect-W7V3OALV.js +1 -0
  25. package/dist/_chunks/render-main-ZW6UJHGN.js +1 -0
  26. package/dist/_chunks/src-BXLFLNRG.js +1 -0
  27. package/dist/_chunks/{stdio-main-JEADWO7U.js → stdio-main-4Z2JVCMO.js} +1 -1
  28. package/dist/_types/cli/local/desktop-contract.d.ts +1455 -0
  29. package/dist/_types/cli/local/desktop-device-contract.d.ts +1165 -0
  30. package/dist/_types/cli/local/desktop-device-navigation.d.ts +3 -0
  31. package/dist/_types/cli/local/desktop-device-owner.d.ts +275 -0
  32. package/dist/_types/cli/local/desktop-device-state.d.ts +230 -0
  33. package/dist/_types/cli/local/desktop-owner.d.ts +554 -1
  34. package/dist/_types/cli/local/ledger.d.ts +62 -10
  35. package/dist/_types/cli/local/manager.d.ts +515 -22
  36. package/dist/_types/cli/local/mcp-tools.d.ts +77 -14
  37. package/dist/_types/cli/local/project-render-tools.d.ts +522 -0
  38. package/dist/_types/cli/local/releases.d.ts +11 -2
  39. package/dist/_types/cli/local-management.d.ts +4 -0
  40. package/dist/_types/cli/local-navigation.d.ts +1 -0
  41. package/dist/_types/contracts/delivery-manifest.d.ts +63 -27
  42. package/dist/_types/contracts/delivery-operations.d.ts +21 -9
  43. package/dist/_types/contracts/device-render.d.ts +10 -0
  44. package/dist/_types/contracts/exploration-recommendation.d.ts +84 -36
  45. package/dist/_types/contracts/final-render.d.ts +9 -0
  46. package/dist/_types/contracts/index.d.ts +1 -0
  47. package/dist/_types/contracts/local-execution/agent-context.d.ts +365 -0
  48. package/dist/_types/contracts/local-execution/agent-evidence.d.ts +79 -0
  49. package/dist/_types/contracts/local-execution/agent-grant.d.ts +31 -0
  50. package/dist/_types/contracts/local-execution/agent-review.d.ts +733 -46
  51. package/dist/_types/contracts/local-execution/device.d.ts +10 -2
  52. package/dist/_types/contracts/local-execution/index.d.ts +6 -0
  53. package/dist/_types/contracts/local-execution/ipc.d.ts +1762 -40
  54. package/dist/_types/contracts/local-execution/lifecycle.d.ts +76 -6
  55. package/dist/_types/contracts/local-execution/local-navigation.d.ts +115 -13
  56. package/dist/_types/contracts/local-execution/management.d.ts +394 -0
  57. package/dist/_types/contracts/local-execution/media-recipe.d.ts +203 -0
  58. package/dist/_types/contracts/local-execution/offline.d.ts +59 -0
  59. package/dist/_types/contracts/local-execution/preview.d.ts +7607 -159
  60. package/dist/_types/contracts/local-execution/work.d.ts +7674 -294
  61. package/dist/_types/contracts/local-execution/workspace.d.ts +136 -0
  62. package/dist/_types/contracts/programmatic-exploration.d.ts +42 -18
  63. package/dist/_types/contracts/repair-strategy.d.ts +42 -18
  64. package/dist/_types/contracts/review-intelligence-final-output.d.ts +42 -18
  65. package/dist/_types/contracts/review-intelligence.d.ts +84 -36
  66. package/dist/_types/contracts/rough-cut-manifest.d.ts +7 -3
  67. package/dist/_types/contracts/rough-cut-profile.d.ts +12 -3
  68. package/dist/_types/contracts/rough-cut-review.d.ts +126 -54
  69. package/dist/_types/contracts/rough-cut.d.ts +85 -32
  70. package/dist/_types/contracts/visual-layer-render.d.ts +21 -9
  71. package/dist/_types/sdk/local-runtime/device-client.d.ts +138 -2
  72. package/dist/_types/sdk/local-runtime/workspace.d.ts +181 -0
  73. package/dist/_types/sdk/local-runtime-client.d.ts +1298 -60
  74. package/dist/entry.js +1 -1
  75. package/dist/local-management.js +1 -1
  76. package/dist/local-navigation.js +1 -1
  77. package/dist/native/JobNative.cs +10 -0
  78. package/dist/native/JobRunner.cs +24 -3
  79. package/dist/native/NativeMain.cs +15 -0
  80. package/package.json +1 -1
  81. package/dist/_chunks/chunk-E57YVMQ4.js +0 -1
  82. package/dist/_chunks/chunk-EAZKDCLD.js +0 -1
  83. package/dist/_chunks/chunk-GIEYSDCG.js +0 -1
  84. package/dist/_chunks/chunk-HLKERZIE.js +0 -1
  85. package/dist/_chunks/chunk-QC7RLTGU.js +0 -1
  86. package/dist/_chunks/chunk-U2UKGYGF.js +0 -1
  87. package/dist/_chunks/local-main-SOERK22D.js +0 -1
  88. package/dist/_chunks/local-mcp-JLPXXIDW.js +0 -1
  89. package/dist/_chunks/mcp-EIMXNRH3.js +0 -1
  90. package/dist/_chunks/oauth-257CEUQH.js +0 -1
  91. package/dist/_chunks/project-connect-6MH2QG6G.js +0 -1
  92. package/dist/_chunks/src-7F6ZEU3U.js +0 -1
@@ -96,15 +96,19 @@ export declare class LocalInstallationManager {
96
96
  architecture: "x64" | "arm64";
97
97
  };
98
98
  ipcProtocol: "NVS_LOCAL_IPC_V1";
99
- workProtocol: "NVS_LOCAL_WORK_V1";
99
+ workProtocol: "NVS_LOCAL_WORK_V1" | "NVS_LOCAL_WORK_V2";
100
100
  journalSchema: 1;
101
101
  rendererDigest: string;
102
102
  profileDigest: string;
103
+ compatibleRenderers?: {
104
+ rendererDigest: string;
105
+ profileDigest: string;
106
+ }[] | undefined;
103
107
  }[];
104
108
  notifications: boolean;
105
109
  rejectedVersions: string[];
106
110
  }>;
107
- prepare(version: string): Promise<{
111
+ prepare(version: string, choice?: unknown): Promise<{
108
112
  protocol: "NVS_LOCAL_UPDATE_PLAN_V1";
109
113
  planId: string;
110
114
  installationRevision: number;
@@ -123,10 +127,14 @@ export declare class LocalInstallationManager {
123
127
  architecture: "x64" | "arm64";
124
128
  };
125
129
  ipcProtocol: "NVS_LOCAL_IPC_V1";
126
- workProtocol: "NVS_LOCAL_WORK_V1";
130
+ workProtocol: "NVS_LOCAL_WORK_V1" | "NVS_LOCAL_WORK_V2";
127
131
  journalSchema: 1;
128
132
  rendererDigest: string;
129
133
  profileDigest: string;
134
+ compatibleRenderers?: {
135
+ rendererDigest: string;
136
+ profileDigest: string;
137
+ }[] | undefined;
130
138
  };
131
139
  package: {
132
140
  url: string;
@@ -151,6 +159,20 @@ export declare class LocalInstallationManager {
151
159
  fingerprint: string;
152
160
  createdAt: string;
153
161
  expiresAt: string;
162
+ trustFingerprint?: string | undefined;
163
+ toolSelection?: {
164
+ mode: "MANAGED";
165
+ } | {
166
+ ffmpeg: {
167
+ path: string;
168
+ digest: string;
169
+ };
170
+ ffprobe: {
171
+ path: string;
172
+ digest: string;
173
+ };
174
+ mode: "INSTALLED";
175
+ } | undefined;
154
176
  }>;
155
177
  plan(id: string): Promise<{
156
178
  protocol: "NVS_LOCAL_UPDATE_PLAN_V1";
@@ -171,10 +193,14 @@ export declare class LocalInstallationManager {
171
193
  architecture: "x64" | "arm64";
172
194
  };
173
195
  ipcProtocol: "NVS_LOCAL_IPC_V1";
174
- workProtocol: "NVS_LOCAL_WORK_V1";
196
+ workProtocol: "NVS_LOCAL_WORK_V1" | "NVS_LOCAL_WORK_V2";
175
197
  journalSchema: 1;
176
198
  rendererDigest: string;
177
199
  profileDigest: string;
200
+ compatibleRenderers?: {
201
+ rendererDigest: string;
202
+ profileDigest: string;
203
+ }[] | undefined;
178
204
  };
179
205
  package: {
180
206
  url: string;
@@ -199,6 +225,20 @@ export declare class LocalInstallationManager {
199
225
  fingerprint: string;
200
226
  createdAt: string;
201
227
  expiresAt: string;
228
+ trustFingerprint?: string | undefined;
229
+ toolSelection?: {
230
+ mode: "MANAGED";
231
+ } | {
232
+ ffmpeg: {
233
+ path: string;
234
+ digest: string;
235
+ };
236
+ ffprobe: {
237
+ path: string;
238
+ digest: string;
239
+ };
240
+ mode: "INSTALLED";
241
+ } | undefined;
202
242
  }>;
203
243
  private transition;
204
244
  apply(id: string, approval: string): Promise<{
@@ -226,10 +266,14 @@ export declare class LocalInstallationManager {
226
266
  architecture: "x64" | "arm64";
227
267
  };
228
268
  ipcProtocol: "NVS_LOCAL_IPC_V1";
229
- workProtocol: "NVS_LOCAL_WORK_V1";
269
+ workProtocol: "NVS_LOCAL_WORK_V1" | "NVS_LOCAL_WORK_V2";
230
270
  journalSchema: 1;
231
271
  rendererDigest: string;
232
272
  profileDigest: string;
273
+ compatibleRenderers?: {
274
+ rendererDigest: string;
275
+ profileDigest: string;
276
+ }[] | undefined;
233
277
  };
234
278
  activeProcesses: number;
235
279
  pendingExecutions: number;
@@ -238,7 +282,7 @@ export declare class LocalInstallationManager {
238
282
  }>;
239
283
  stop(): Promise<{
240
284
  plan: {
241
- protocol: "NVS_LOCAL_AGENT_REVIEW_V1";
285
+ protocol: "NVS_LOCAL_AGENT_REVIEW_V1" | "NVS_LOCAL_AGENT_REVIEW_V2";
242
286
  id: string;
243
287
  grantFingerprint: string;
244
288
  snapshot: {
@@ -248,11 +292,20 @@ export declare class LocalInstallationManager {
248
292
  projectId: string & z.core.$brand<"ProjectId">;
249
293
  productionId: string & z.core.$brand<"ProductionId">;
250
294
  };
251
- contextFingerprint: string;
252
295
  target: {
253
296
  kind: "IMAGE";
254
297
  generationId: string;
298
+ } | {
299
+ kind: "VIDEO";
300
+ generationId: string;
301
+ } | {
302
+ kind: "ROUGH_CUT";
303
+ renderId: string;
304
+ } | {
305
+ kind: "PROGRAMMATIC";
306
+ renderId: string;
255
307
  };
308
+ contextFingerprint: string;
256
309
  };
257
310
  productionRevision: number;
258
311
  reviewVersion: number;
@@ -262,12 +315,115 @@ export declare class LocalInstallationManager {
262
315
  representationId: string;
263
316
  checksumSha256: string;
264
317
  };
265
- requirements: {
318
+ requirements: ({
319
+ key: string;
320
+ dimension: "TRANSITION" | "STYLE" | "PRODUCT_PRESENTATION" | "CANONICAL_FACT" | "NARRATIVE" | "PACING" | "REPETITION" | "TECHNICAL";
321
+ expected: string;
322
+ enforcement: "LOCKED" | "REQUIRED" | "PREFERRED";
323
+ scope: "TRANSITION" | "PRODUCTION";
324
+ interval: {
325
+ startMs: number;
326
+ endMs: number;
327
+ };
328
+ shotIds: string[];
329
+ continuity?: {
330
+ kind: "STATE";
331
+ mode: "PRESERVE" | "PLANNED_TRANSITIONS";
332
+ entry: string;
333
+ exit: string;
334
+ changes?: {
335
+ atPermille: number;
336
+ from: string;
337
+ to: string;
338
+ reason: string;
339
+ }[] | undefined;
340
+ } | {
341
+ kind: "TIME";
342
+ mode: "MONOTONIC" | "PLANNED_JUMPS";
343
+ entryMs: number;
344
+ exitMs: number;
345
+ jumps?: {
346
+ atPermille: number;
347
+ fromMs: number;
348
+ toMs: number;
349
+ reason: string;
350
+ }[] | undefined;
351
+ } | undefined;
352
+ consistencyScale?: "INTRA_SHOT" | "INTER_SHOT" | "PRODUCTION" | undefined;
353
+ consistencyFamily?: "PRODUCT_IDENTITY" | "CHARACTER_IDENTITY" | "WARDROBE" | "LOCATION" | "STYLE" | "BOUNDARY_CONTINUITY" | undefined;
354
+ consistencySubject?: {
355
+ id: string;
356
+ kind: "CHARACTER" | "VOICE";
357
+ displayName: string;
358
+ facts: {
359
+ dimension: string;
360
+ value: string;
361
+ }[];
362
+ master: {
363
+ artifactId: string & z.core.$brand<"ArtifactId">;
364
+ representationId: string & z.core.$brand<"ArtifactRepresentationId">;
365
+ checksumSha256: string;
366
+ artifactChecksumSha256: string;
367
+ contentType: "image/png" | "image/jpeg" | "image/webp" | "audio/wav";
368
+ };
369
+ } | undefined;
370
+ consistencyReference?: {
371
+ artifactId: string & z.core.$brand<"ArtifactId">;
372
+ representationId: string & z.core.$brand<"ArtifactRepresentationId">;
373
+ checksumSha256: string;
374
+ artifactChecksumSha256: string;
375
+ contentType: "image/png" | "image/jpeg" | "image/webp" | "audio/wav";
376
+ } | undefined;
377
+ } | {
266
378
  key: string;
379
+ family: "PRODUCT_IDENTITY" | "CHARACTER_IDENTITY" | "WARDROBE" | "LOCATION" | "STYLE" | "SHOT_INTENT" | "BOUNDARY_CONTINUITY" | "SOUND";
267
380
  expected: string;
268
381
  enforcement: "LOCKED" | "REQUIRED" | "PREFERRED";
382
+ evidenceWindow: "START" | "END" | "WHOLE_VIDEO" | "TEMPORAL";
269
383
  intentPath?: string | undefined;
270
- }[];
384
+ continuity?: {
385
+ kind: "STATE";
386
+ mode: "PRESERVE" | "PLANNED_TRANSITIONS";
387
+ entry: string;
388
+ exit: string;
389
+ changes?: {
390
+ atPermille: number;
391
+ from: string;
392
+ to: string;
393
+ reason: string;
394
+ }[] | undefined;
395
+ } | {
396
+ kind: "TIME";
397
+ mode: "MONOTONIC" | "PLANNED_JUMPS";
398
+ entryMs: number;
399
+ exitMs: number;
400
+ jumps?: {
401
+ atPermille: number;
402
+ fromMs: number;
403
+ toMs: number;
404
+ reason: string;
405
+ }[] | undefined;
406
+ } | undefined;
407
+ interval?: {
408
+ startMs: number;
409
+ endMs: number;
410
+ } | undefined;
411
+ } | {
412
+ key: string;
413
+ expected: string;
414
+ enforcement: "LOCKED" | "REQUIRED" | "PREFERRED";
415
+ intentPath?: string | undefined;
416
+ })[];
417
+ evidence?: {
418
+ profile: "NVS_AGENT_DERIVED_EVIDENCE_V1";
419
+ contentType: "image/png" | "image/jpeg" | "image/webp" | "video/mp4";
420
+ byteSize: number;
421
+ width: number;
422
+ height: number;
423
+ durationMs?: number | undefined;
424
+ frameRate?: 30 | 24 | undefined;
425
+ hasAudio?: boolean | undefined;
426
+ } | undefined;
271
427
  image?: {
272
428
  contentType: "image/png";
273
429
  byteSize: number;
@@ -290,20 +446,20 @@ export declare class LocalInstallationManager {
290
446
  summary: string;
291
447
  imageReadback: string;
292
448
  observations: {
293
- key: string;
294
449
  status: "SATISFIED" | "VIOLATED" | "NOT_OBSERVABLE" | "NOT_APPLICABLE";
295
450
  confidence: "CLEAR" | "UNCERTAIN";
296
451
  observed: string;
452
+ key: string;
297
453
  }[];
298
454
  } | null;
299
455
  provenance: {
300
- adapter: "CODEX_METADATA_V1";
456
+ adapter: "CODEX_METADATA_V1" | "CODEX_MEDIA_V2";
301
457
  binaryDigest: string;
302
458
  version: "0.164.0" | "0.165.0";
303
459
  model: string;
304
460
  reviewerLabel: string;
305
461
  inference: "REMOTE_OPENAI";
306
- evidence: "IMAGE_PIXELS" | "METADATA_ONLY";
462
+ evidence: "IMAGE_PIXELS" | "VIDEO_FRAMES" | "METADATA_ONLY";
307
463
  reasoningEffort?: "medium" | "low" | "high" | "xhigh" | undefined;
308
464
  };
309
465
  imageReceipt?: {
@@ -319,6 +475,33 @@ export declare class LocalInstallationManager {
319
475
  width: number;
320
476
  height: number;
321
477
  } | undefined;
478
+ evidenceReceipt?: {
479
+ protocol: "NVS_AGENT_DERIVED_EVIDENCE_V1";
480
+ draftId: string;
481
+ media: {
482
+ artifactId: string;
483
+ representationId: string;
484
+ checksumSha256: string;
485
+ };
486
+ ffmpegDigest: string;
487
+ ffprobeDigest: string;
488
+ attachment: {
489
+ checksumSha256: string;
490
+ byteSize: number;
491
+ width: number;
492
+ height: number;
493
+ };
494
+ timestampsMs: number[];
495
+ audio: {
496
+ sampleRateHz: 48000;
497
+ channels: 1;
498
+ samples: number;
499
+ peak: number;
500
+ rms: number;
501
+ clippedSamples: number;
502
+ } | null;
503
+ limitations: ["SAMPLED_FRAMES_ARE_NOT_FULL_PLAYBACK", "AUDIO_STATISTICS_ARE_NOT_LISTENING_OR_TRANSCRIPTION"];
504
+ } | undefined;
322
505
  } | {
323
506
  protocol: "NVS_LOCAL_CONNECTOR_V1";
324
507
  stateDirectory: string;
@@ -331,16 +514,16 @@ export declare class LocalInstallationManager {
331
514
  } | {
332
515
  protocol: "NVS_LOCAL_IPC_V1";
333
516
  runtimeRevision: number;
334
- state: "RECOVERY_REQUIRED" | "IDLE" | "EXECUTING" | "DRAINING";
517
+ state: "RECOVERY_REQUIRED" | "EXECUTING" | "DRAINING" | "IDLE";
335
518
  journalSchemaVersion: 1;
336
- workProtocols: "NVS_LOCAL_WORK_V1"[];
519
+ workProtocols: ("NVS_LOCAL_WORK_V1" | "NVS_LOCAL_WORK_V2")[];
337
520
  versions: {
338
521
  component: "CLI" | "SDK" | "MCP" | "RUNTIME" | "MEDIA_TOOLS";
339
522
  installedVersion: string | null;
340
523
  runningVersion: string | null;
341
524
  availableVersion: string | null;
342
525
  executablePath: string | null;
343
- installOwner: "UNKNOWN" | "PROJECT" | "NPM_GLOBAL" | "NPX" | "MANAGED" | "TARBALL";
526
+ installOwner: "UNKNOWN" | "PROJECT" | "MANAGED" | "NPM_GLOBAL" | "NPX" | "TARBALL";
344
527
  }[];
345
528
  authorizedProjects: {
346
529
  tenantId: string;
@@ -348,6 +531,56 @@ export declare class LocalInstallationManager {
348
531
  }[];
349
532
  nextActions: {
350
533
  call: {
534
+ operation: "agent.discover";
535
+ binary?: string | undefined;
536
+ } | {
537
+ operation: "offline.workspace";
538
+ input: {
539
+ action: "list" | "forget";
540
+ key: string;
541
+ } | {
542
+ action: "retain";
543
+ key: string;
544
+ snapshot: {
545
+ projectId: string;
546
+ title: string;
547
+ savedAt: string;
548
+ expiresAt: string;
549
+ productions: {
550
+ id: string;
551
+ title: string;
552
+ }[];
553
+ possiblyTruncated: boolean;
554
+ };
555
+ } | {
556
+ action: "draft";
557
+ key: string;
558
+ projectId: string;
559
+ text: string;
560
+ expectedRevision: number;
561
+ };
562
+ } | {
563
+ operation: "workspace.inspect";
564
+ } | {
565
+ operation: "workspace.configure";
566
+ policy: {
567
+ mode: "CONTINUOUS" | "IDLE_ONLY";
568
+ idleAfterSeconds: number;
569
+ maxConcurrentJobs: number;
570
+ cpuCores: 2 | 1;
571
+ memoryMiB: number;
572
+ cacheQuotaBytes: number;
573
+ };
574
+ expectedRevision: number;
575
+ } | {
576
+ operation: "workspace.activity";
577
+ idleSeconds: number;
578
+ observedAt: string;
579
+ } | {
580
+ operation: "storage.clean";
581
+ } | {
582
+ operation: "diagnostics.read";
583
+ } | {
351
584
  operation: "agent.grant";
352
585
  grant: {
353
586
  protocol: "NVS_CODEX_REVIEW_GRANT_V1";
@@ -365,6 +598,7 @@ export declare class LocalInstallationManager {
365
598
  expiresAt: string;
366
599
  reasoningEffort?: "medium" | "low" | "high" | "xhigh" | undefined;
367
600
  imageDisclosureApproved?: true | undefined;
601
+ mediaDisclosureApproved?: true | undefined;
368
602
  };
369
603
  approval: string;
370
604
  } | {
@@ -381,11 +615,20 @@ export declare class LocalInstallationManager {
381
615
  projectId: string & z.core.$brand<"ProjectId">;
382
616
  productionId: string & z.core.$brand<"ProductionId">;
383
617
  };
384
- contextFingerprint: string;
385
618
  target: {
386
619
  kind: "IMAGE";
387
620
  generationId: string;
621
+ } | {
622
+ kind: "VIDEO";
623
+ generationId: string;
624
+ } | {
625
+ kind: "ROUGH_CUT";
626
+ renderId: string;
627
+ } | {
628
+ kind: "PROGRAMMATIC";
629
+ renderId: string;
388
630
  };
631
+ contextFingerprint: string;
389
632
  };
390
633
  productionRevision: number;
391
634
  reviewVersion: number;
@@ -395,12 +638,115 @@ export declare class LocalInstallationManager {
395
638
  representationId: string;
396
639
  checksumSha256: string;
397
640
  };
398
- requirements: {
641
+ requirements: ({
642
+ key: string;
643
+ dimension: "TRANSITION" | "STYLE" | "PRODUCT_PRESENTATION" | "CANONICAL_FACT" | "NARRATIVE" | "PACING" | "REPETITION" | "TECHNICAL";
644
+ expected: string;
645
+ enforcement: "LOCKED" | "REQUIRED" | "PREFERRED";
646
+ scope: "TRANSITION" | "PRODUCTION";
647
+ interval: {
648
+ startMs: number;
649
+ endMs: number;
650
+ };
651
+ shotIds: string[];
652
+ continuity?: {
653
+ kind: "STATE";
654
+ mode: "PRESERVE" | "PLANNED_TRANSITIONS";
655
+ entry: string;
656
+ exit: string;
657
+ changes?: {
658
+ atPermille: number;
659
+ from: string;
660
+ to: string;
661
+ reason: string;
662
+ }[] | undefined;
663
+ } | {
664
+ kind: "TIME";
665
+ mode: "MONOTONIC" | "PLANNED_JUMPS";
666
+ entryMs: number;
667
+ exitMs: number;
668
+ jumps?: {
669
+ atPermille: number;
670
+ fromMs: number;
671
+ toMs: number;
672
+ reason: string;
673
+ }[] | undefined;
674
+ } | undefined;
675
+ consistencyScale?: "INTRA_SHOT" | "INTER_SHOT" | "PRODUCTION" | undefined;
676
+ consistencyFamily?: "PRODUCT_IDENTITY" | "CHARACTER_IDENTITY" | "WARDROBE" | "LOCATION" | "STYLE" | "BOUNDARY_CONTINUITY" | undefined;
677
+ consistencySubject?: {
678
+ id: string;
679
+ kind: "CHARACTER" | "VOICE";
680
+ displayName: string;
681
+ facts: {
682
+ dimension: string;
683
+ value: string;
684
+ }[];
685
+ master: {
686
+ artifactId: string & z.core.$brand<"ArtifactId">;
687
+ representationId: string & z.core.$brand<"ArtifactRepresentationId">;
688
+ checksumSha256: string;
689
+ artifactChecksumSha256: string;
690
+ contentType: "image/png" | "image/jpeg" | "image/webp" | "audio/wav";
691
+ };
692
+ } | undefined;
693
+ consistencyReference?: {
694
+ artifactId: string & z.core.$brand<"ArtifactId">;
695
+ representationId: string & z.core.$brand<"ArtifactRepresentationId">;
696
+ checksumSha256: string;
697
+ artifactChecksumSha256: string;
698
+ contentType: "image/png" | "image/jpeg" | "image/webp" | "audio/wav";
699
+ } | undefined;
700
+ } | {
399
701
  key: string;
702
+ family: "PRODUCT_IDENTITY" | "CHARACTER_IDENTITY" | "WARDROBE" | "LOCATION" | "STYLE" | "SHOT_INTENT" | "BOUNDARY_CONTINUITY" | "SOUND";
400
703
  expected: string;
401
704
  enforcement: "LOCKED" | "REQUIRED" | "PREFERRED";
705
+ evidenceWindow: "START" | "END" | "WHOLE_VIDEO" | "TEMPORAL";
402
706
  intentPath?: string | undefined;
403
- }[];
707
+ continuity?: {
708
+ kind: "STATE";
709
+ mode: "PRESERVE" | "PLANNED_TRANSITIONS";
710
+ entry: string;
711
+ exit: string;
712
+ changes?: {
713
+ atPermille: number;
714
+ from: string;
715
+ to: string;
716
+ reason: string;
717
+ }[] | undefined;
718
+ } | {
719
+ kind: "TIME";
720
+ mode: "MONOTONIC" | "PLANNED_JUMPS";
721
+ entryMs: number;
722
+ exitMs: number;
723
+ jumps?: {
724
+ atPermille: number;
725
+ fromMs: number;
726
+ toMs: number;
727
+ reason: string;
728
+ }[] | undefined;
729
+ } | undefined;
730
+ interval?: {
731
+ startMs: number;
732
+ endMs: number;
733
+ } | undefined;
734
+ } | {
735
+ key: string;
736
+ expected: string;
737
+ enforcement: "LOCKED" | "REQUIRED" | "PREFERRED";
738
+ intentPath?: string | undefined;
739
+ })[];
740
+ evidence?: {
741
+ profile: "NVS_AGENT_DERIVED_EVIDENCE_V1";
742
+ contentType: "image/png" | "image/jpeg" | "image/webp" | "video/mp4";
743
+ byteSize: number;
744
+ width: number;
745
+ height: number;
746
+ durationMs?: number | undefined;
747
+ frameRate?: 30 | 24 | undefined;
748
+ hasAudio?: boolean | undefined;
749
+ } | undefined;
404
750
  image?: {
405
751
  contentType: "image/png";
406
752
  byteSize: number;
@@ -418,6 +764,7 @@ export declare class LocalInstallationManager {
418
764
  id: string;
419
765
  } | {
420
766
  operation: "runtime.status";
767
+ includeDevice?: true | undefined;
421
768
  } | {
422
769
  operation: "runtime.doctor";
423
770
  } | {
@@ -439,6 +786,7 @@ export declare class LocalInstallationManager {
439
786
  projectId: string;
440
787
  productionId: string;
441
788
  runtimeJobId: string;
789
+ includeProgress?: boolean | undefined;
442
790
  };
443
791
  } | {
444
792
  operation: "execution.list";
@@ -447,6 +795,8 @@ export declare class LocalInstallationManager {
447
795
  projectId: string;
448
796
  after: string | null;
449
797
  limit: number;
798
+ includeCompleted?: boolean | undefined;
799
+ includeProgress?: boolean | undefined;
450
800
  };
451
801
  } | {
452
802
  operation: "update.check";
@@ -463,6 +813,11 @@ export declare class LocalInstallationManager {
463
813
  availability: "AVAILABLE" | "BLOCKED";
464
814
  reason: "READY" | "INSTALL_REQUIRED" | "AUTHORIZATION_REQUIRED" | "VERSION_INCOMPATIBLE" | "UPDATE_AVAILABLE" | "RECOVERY_REQUIRED";
465
815
  }[];
816
+ deviceAuthority?: {
817
+ tenantId: string;
818
+ deviceId: string;
819
+ origin: string;
820
+ } | undefined;
466
821
  } | {
467
822
  binding: {
468
823
  tenantId: string;
@@ -476,14 +831,69 @@ export declare class LocalInstallationManager {
476
831
  toolchainFingerprint: string;
477
832
  };
478
833
  revision: number;
479
- phase: "RUNNING" | "RECOVERY_REQUIRED" | "STAGED" | "OUTPUT_PENDING" | "RECEIPT_RECORDED" | "FENCED";
834
+ phase: "RUNNING" | "RECOVERY_REQUIRED" | "FENCED" | "STAGED" | "OUTPUT_PENDING" | "RECEIPT_RECORDED";
480
835
  checkpoint: "ADOPTED" | "SOURCES_READY" | "PROCESS_STARTED" | "OUTPUT_STAGED";
836
+ progress?: {
837
+ stage: "WAITING" | "COMPLETE" | "RECOVERY_REQUIRED" | "DOWNLOADING" | "EXECUTING" | "UPLOADING" | "AWAITING_ACCEPTANCE" | "FENCED";
838
+ downloadedBytes: number;
839
+ sourceBytes: number;
840
+ uploadedBytes: number;
841
+ outputBytes: number;
842
+ lastError: {
843
+ code: string;
844
+ observedAt: string;
845
+ } | null;
846
+ } | undefined;
847
+ } | {
848
+ candidate: {
849
+ binary: string;
850
+ binaryDigest: string;
851
+ version: string;
852
+ qualified: boolean;
853
+ } | null;
854
+ configured: {
855
+ protocol: "NVS_CODEX_REVIEW_GRANT_V1";
856
+ binary: string;
857
+ binaryDigest: string;
858
+ version: "0.164.0" | "0.165.0";
859
+ model: string;
860
+ reviewerLabel: string;
861
+ inference: "REMOTE_OPENAI";
862
+ remoteUseApproved: true;
863
+ projects: {
864
+ tenantId: string;
865
+ projectId: string;
866
+ }[];
867
+ expiresAt: string;
868
+ reasoningEffort?: "medium" | "low" | "high" | "xhigh" | undefined;
869
+ imageDisclosureApproved?: true | undefined;
870
+ mediaDisclosureApproved?: true | undefined;
871
+ } | null;
481
872
  } | {
482
873
  configured: boolean;
483
874
  available: boolean;
484
875
  reason: "READY" | "GRANT_EXPIRED" | "GRANT_REQUIRED" | "RUNTIME_UNAVAILABLE";
485
876
  grantFingerprint: string | null;
486
877
  inference: "REMOTE_OPENAI";
878
+ } | {
879
+ historical: true;
880
+ items: {
881
+ snapshot: {
882
+ projectId: string;
883
+ title: string;
884
+ savedAt: string;
885
+ expiresAt: string;
886
+ productions: {
887
+ id: string;
888
+ title: string;
889
+ }[];
890
+ possiblyTruncated: boolean;
891
+ };
892
+ draft: {
893
+ text: string;
894
+ revision: number;
895
+ };
896
+ }[];
487
897
  } | {
488
898
  runtimeRevision: number;
489
899
  descriptor: {
@@ -498,15 +908,82 @@ export declare class LocalInstallationManager {
498
908
  architecture: "x64" | "arm64";
499
909
  };
500
910
  ipcProtocol: "NVS_LOCAL_IPC_V1";
501
- workProtocol: "NVS_LOCAL_WORK_V1";
911
+ workProtocol: "NVS_LOCAL_WORK_V1" | "NVS_LOCAL_WORK_V2";
502
912
  journalSchema: 1;
503
913
  rendererDigest: string;
504
914
  profileDigest: string;
915
+ compatibleRenderers?: {
916
+ rendererDigest: string;
917
+ profileDigest: string;
918
+ }[] | undefined;
505
919
  };
506
920
  activeProcesses: number;
507
921
  pendingExecutions: number;
508
922
  pendingRequests: number;
509
923
  pendingRenderers: string[];
924
+ } | {
925
+ settings: {
926
+ revision: number;
927
+ policy: {
928
+ mode: "CONTINUOUS" | "IDLE_ONLY";
929
+ idleAfterSeconds: number;
930
+ maxConcurrentJobs: number;
931
+ cpuCores: 2 | 1;
932
+ memoryMiB: number;
933
+ cacheQuotaBytes: number;
934
+ };
935
+ };
936
+ storage: {
937
+ cacheBytes: number;
938
+ protectedBytes: number;
939
+ reclaimableBytes: number;
940
+ transferBytes: number;
941
+ journalBytes: number;
942
+ availableDiskBytes: number;
943
+ quotaBytes: number;
944
+ overQuota: boolean;
945
+ reviewBytes?: number | undefined;
946
+ ownerStagingBytes?: number | undefined;
947
+ };
948
+ scheduling: {
949
+ state: "READY" | "WAITING_FOR_IDLE" | "AT_CAPACITY" | "DRAINING";
950
+ activeJobs: number;
951
+ idleObservationCurrent: boolean;
952
+ };
953
+ } | {
954
+ protocol: "NVS_LOCAL_DIAGNOSTICS_V1";
955
+ createdAt: string;
956
+ runtimeVersion: string;
957
+ runtimeRevision: number;
958
+ settings: {
959
+ revision: number;
960
+ policy: {
961
+ mode: "CONTINUOUS" | "IDLE_ONLY";
962
+ idleAfterSeconds: number;
963
+ maxConcurrentJobs: number;
964
+ cpuCores: 2 | 1;
965
+ memoryMiB: number;
966
+ cacheQuotaBytes: number;
967
+ };
968
+ };
969
+ storage: {
970
+ cacheBytes: number;
971
+ protectedBytes: number;
972
+ reclaimableBytes: number;
973
+ transferBytes: number;
974
+ journalBytes: number;
975
+ availableDiskBytes: number;
976
+ quotaBytes: number;
977
+ overQuota: boolean;
978
+ reviewBytes?: number | undefined;
979
+ ownerStagingBytes?: number | undefined;
980
+ };
981
+ recordCounts: Record<string, number>;
982
+ failures: {
983
+ taskFingerprint: string;
984
+ code: string;
985
+ observedAt: string;
986
+ }[];
510
987
  } | {
511
988
  mode: "MANAGED" | "INSTALLED";
512
989
  availability: "UNAVAILABLE" | "AVAILABLE";
@@ -518,6 +995,7 @@ export declare class LocalInstallationManager {
518
995
  version: string;
519
996
  digest: string;
520
997
  }[];
998
+ executionProfiles?: ("ROUGH_CUT_PREVIEW_V1" | "STUDIO_MEDIA_V2")[] | undefined;
521
999
  } | {
522
1000
  items: {
523
1001
  binding: {
@@ -532,8 +1010,19 @@ export declare class LocalInstallationManager {
532
1010
  toolchainFingerprint: string;
533
1011
  };
534
1012
  revision: number;
535
- phase: "RUNNING" | "RECOVERY_REQUIRED" | "STAGED" | "OUTPUT_PENDING" | "RECEIPT_RECORDED" | "FENCED";
1013
+ phase: "RUNNING" | "RECOVERY_REQUIRED" | "FENCED" | "STAGED" | "OUTPUT_PENDING" | "RECEIPT_RECORDED";
536
1014
  checkpoint: "ADOPTED" | "SOURCES_READY" | "PROCESS_STARTED" | "OUTPUT_STAGED";
1015
+ progress?: {
1016
+ stage: "WAITING" | "COMPLETE" | "RECOVERY_REQUIRED" | "DOWNLOADING" | "EXECUTING" | "UPLOADING" | "AWAITING_ACCEPTANCE" | "FENCED";
1017
+ downloadedBytes: number;
1018
+ sourceBytes: number;
1019
+ uploadedBytes: number;
1020
+ outputBytes: number;
1021
+ lastError: {
1022
+ code: string;
1023
+ observedAt: string;
1024
+ } | null;
1025
+ } | undefined;
537
1026
  }[];
538
1027
  nextCursor: string | null;
539
1028
  } | {
@@ -552,10 +1041,14 @@ export declare class LocalInstallationManager {
552
1041
  architecture: "x64" | "arm64";
553
1042
  };
554
1043
  ipcProtocol: "NVS_LOCAL_IPC_V1";
555
- workProtocol: "NVS_LOCAL_WORK_V1";
1044
+ workProtocol: "NVS_LOCAL_WORK_V1" | "NVS_LOCAL_WORK_V2";
556
1045
  journalSchema: 1;
557
1046
  rendererDigest: string;
558
1047
  profileDigest: string;
1048
+ compatibleRenderers?: {
1049
+ rendererDigest: string;
1050
+ profileDigest: string;
1051
+ }[] | undefined;
559
1052
  };
560
1053
  activeProcesses: number;
561
1054
  pendingExecutions: number;