@nativestudio/cli 0.3.0-rc.21 → 0.3.0-rc.27

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 (200) hide show
  1. package/COMPATIBILITY.json +11 -11
  2. package/components/runtime.json +7 -7
  3. package/components/runtime.tgz +0 -0
  4. package/dist/_chunks/backup-retirement-5OTAYZYN.js +1 -0
  5. package/dist/_chunks/caller-DPHTMOBN.js +1 -0
  6. package/dist/_chunks/{chunk-MZWEFYHE.js → chunk-24ZFLWWU.js} +1 -1
  7. package/dist/_chunks/chunk-25WUWVDK.js +1 -0
  8. package/dist/_chunks/{chunk-QGK6G6YS.js → chunk-4UQRT3ZH.js} +1 -1
  9. package/dist/_chunks/chunk-6MYLFBLH.js +1 -0
  10. package/dist/_chunks/chunk-6YVGVNEH.js +1 -0
  11. package/dist/_chunks/{chunk-7IVAYDU3.js → chunk-7TXIHIZ5.js} +1 -1
  12. package/dist/_chunks/chunk-A3MJERGH.js +1 -0
  13. package/dist/_chunks/{chunk-DLW42PJ6.js → chunk-AZQLZA47.js} +1 -1
  14. package/dist/_chunks/{chunk-ZYXHPTT2.js → chunk-BNGPPUA3.js} +1 -1
  15. package/dist/_chunks/chunk-CBJIFAHD.js +1 -0
  16. package/dist/_chunks/chunk-CUCC4RFF.js +1 -0
  17. package/dist/_chunks/{chunk-76E5R3OC.js → chunk-DBOQPJLY.js} +1 -1
  18. package/dist/_chunks/chunk-DEXSJABJ.js +1 -0
  19. package/dist/_chunks/chunk-EOWXXTEF.js +1 -0
  20. package/dist/_chunks/chunk-EPH3TRYV.js +1 -0
  21. package/dist/_chunks/chunk-EYOGMJW2.js +1 -0
  22. package/dist/_chunks/{chunk-ZMJYBUS3.js → chunk-FRZDYDOP.js} +1 -1
  23. package/dist/_chunks/chunk-IKJ6VNJ6.js +1 -0
  24. package/dist/_chunks/chunk-ISPIV2P6.js +1 -0
  25. package/dist/_chunks/chunk-IYYCCA44.js +1 -0
  26. package/dist/_chunks/chunk-KAW7T5TR.js +1 -0
  27. package/dist/_chunks/chunk-KGS6SI5Y.js +1 -0
  28. package/dist/_chunks/chunk-LNKE3Z3X.js +1 -0
  29. package/dist/_chunks/{chunk-X5PBZTKX.js → chunk-LRIVN74V.js} +1 -1
  30. package/dist/_chunks/chunk-LVVSTKDW.js +1 -0
  31. package/dist/_chunks/chunk-LZAC64FB.js +1 -0
  32. package/dist/_chunks/chunk-M32FI2OA.js +1 -0
  33. package/dist/_chunks/chunk-N4ORSVTY.js +1 -0
  34. package/dist/_chunks/{chunk-KOCUZ3AE.js → chunk-NEZ7IY5E.js} +1 -1
  35. package/dist/_chunks/{chunk-LTNJ45JP.js → chunk-NW3ODW7Y.js} +1 -1
  36. package/dist/_chunks/chunk-NX4JWZWV.js +1 -0
  37. package/dist/_chunks/chunk-PC54RQIE.js +1 -0
  38. package/dist/_chunks/chunk-Q7MTMC6D.js +1 -0
  39. package/dist/_chunks/chunk-QCBLU6D6.js +1 -0
  40. package/dist/_chunks/chunk-QLHMJUBH.js +1 -0
  41. package/dist/_chunks/{chunk-5Y7J2OYL.js → chunk-RASQZMYI.js} +2 -2
  42. package/dist/_chunks/chunk-RRYZZBXN.js +1 -0
  43. package/dist/_chunks/chunk-SCLI4ALP.js +1 -0
  44. package/dist/_chunks/chunk-SCOSFTMM.js +1 -0
  45. package/dist/_chunks/chunk-UFUFQA5U.js +1 -0
  46. package/dist/_chunks/chunk-UOYNCE7I.js +1 -0
  47. package/dist/_chunks/{chunk-OW6R4MAQ.js → chunk-USOV7NK4.js} +1 -1
  48. package/dist/_chunks/chunk-VJ4SCIR5.js +1 -0
  49. package/dist/_chunks/chunk-VKXFHOAR.js +1 -0
  50. package/dist/_chunks/chunk-VXANXYQL.js +1 -0
  51. package/dist/_chunks/chunk-XMZKBILZ.js +1 -0
  52. package/dist/_chunks/chunk-Z44SK6DZ.js +1 -0
  53. package/dist/_chunks/component-contract-B6VKGV2V.js +1 -0
  54. package/dist/_chunks/component-preflight-FYYYXV6C.js +1 -0
  55. package/dist/_chunks/connect-75RAY2SE.js +1 -0
  56. package/dist/_chunks/device-management-JGV4YU7S.js +1 -0
  57. package/dist/_chunks/device-preflight-ZPWOMGHI.js +1 -0
  58. package/dist/_chunks/device-provider-inspection-C4IRVW3V.js +1 -0
  59. package/dist/_chunks/devices-inventory-OAY2HON2.js +1 -0
  60. package/dist/_chunks/devices-main-6PDXFRE2.js +1 -0
  61. package/dist/_chunks/files-G2HINGMA.js +1 -0
  62. package/dist/_chunks/host-component-W5DIBO65.js +1 -0
  63. package/dist/_chunks/host-help-AYTWACIM.js +1 -0
  64. package/dist/_chunks/host-main-E34OH232.js +1 -0
  65. package/dist/_chunks/http-profile-BFWO2A2T.js +1 -0
  66. package/dist/_chunks/library-main-BDS4ANNF.js +1 -0
  67. package/dist/_chunks/local-main-EF3Y6EHU.js +1 -0
  68. package/dist/_chunks/local-mcp-ME7ZQBUT.js +1 -0
  69. package/dist/_chunks/main-7Q5Y5MVK.js +2 -0
  70. package/dist/_chunks/mcp-VEJ6GVUK.js +1 -0
  71. package/dist/_chunks/model-cleanup-22VY6NWS.js +1 -0
  72. package/dist/_chunks/model-management-RZ4LQYMW.js +1 -0
  73. package/dist/_chunks/model-plan-retirement-4V2J3AUA.js +1 -0
  74. package/dist/_chunks/model-retention-F4WNSTJO.js +1 -0
  75. package/dist/_chunks/model-slot-retirement-KL6MVDGL.js +1 -0
  76. package/dist/_chunks/oauth-Z26E4LJQ.js +1 -0
  77. package/dist/_chunks/observe-entry-ZV26WLCP.js +1 -0
  78. package/dist/_chunks/provider-change-U34UP6ER.js +1 -0
  79. package/dist/_chunks/remote-client-6F6KRJA6.js +1 -0
  80. package/dist/_chunks/render-main-ID5JWWKY.js +1 -0
  81. package/dist/_chunks/source-import-YW6YEMEN.js +1 -0
  82. package/dist/_chunks/src-36KAJDK4.js +1 -0
  83. package/dist/_chunks/stdio-main-YR5TITX2.js +1 -0
  84. package/dist/_chunks/workspace-main-ZFR7ZY3R.js +1 -0
  85. package/dist/_types/cli/local/desktop-contract.d.ts +349 -40
  86. package/dist/_types/cli/local/desktop-device-contract.d.ts +89 -78
  87. package/dist/_types/cli/local/desktop-device-owner.d.ts +14 -14
  88. package/dist/_types/cli/local/desktop-device-state.d.ts +13 -8
  89. package/dist/_types/cli/local/desktop-owner.d.ts +130 -30
  90. package/dist/_types/cli/local/ledger.d.ts +285 -0
  91. package/dist/_types/cli/local/lifecycle-gates.d.ts +8 -0
  92. package/dist/_types/cli/local/manager.d.ts +11 -1107
  93. package/dist/_types/cli/local/mcp-tools.d.ts +3 -0
  94. package/dist/_types/contracts/artifact.d.ts +2 -0
  95. package/dist/_types/contracts/component-status.d.ts +9 -0
  96. package/dist/_types/contracts/device-openai-asr.d.ts +479 -0
  97. package/dist/_types/contracts/device-render.d.ts +6 -0
  98. package/dist/_types/contracts/external-agent-access.d.ts +7 -0
  99. package/dist/_types/contracts/index.d.ts +3 -0
  100. package/dist/_types/contracts/interface/media-output.d.ts +4 -1
  101. package/dist/_types/contracts/interface/operation.d.ts +44 -0
  102. package/dist/_types/contracts/interface/production-snapshot.d.ts +39 -0
  103. package/dist/_types/contracts/interface/query.d.ts +38 -0
  104. package/dist/_types/contracts/local-execution/backup-retirement.d.ts +162 -0
  105. package/dist/_types/contracts/local-execution/claim-resolution.d.ts +1470 -0
  106. package/dist/_types/contracts/local-execution/components.d.ts +1 -1
  107. package/dist/_types/contracts/local-execution/cpu-preparation.d.ts +23 -0
  108. package/dist/_types/contracts/local-execution/credential-request.d.ts +20 -0
  109. package/dist/_types/contracts/local-execution/external-generation.d.ts +59 -2
  110. package/dist/_types/contracts/local-execution/index.d.ts +12 -0
  111. package/dist/_types/contracts/local-execution/ipc.d.ts +27 -0
  112. package/dist/_types/contracts/local-execution/library-command.d.ts +303 -5
  113. package/dist/_types/contracts/local-execution/library-result.d.ts +217 -3
  114. package/dist/_types/contracts/local-execution/lifecycle.d.ts +35 -0
  115. package/dist/_types/contracts/local-execution/local-navigation.d.ts +3 -0
  116. package/dist/_types/contracts/local-execution/management.d.ts +12 -12
  117. package/dist/_types/contracts/local-execution/model-cleanup.d.ts +60 -0
  118. package/dist/_types/contracts/local-execution/model-inspection.d.ts +365 -0
  119. package/dist/_types/contracts/local-execution/openai-asr.d.ts +105 -0
  120. package/dist/_types/contracts/local-execution/openai-realtime-speech.d.ts +151 -0
  121. package/dist/_types/contracts/local-execution/preview.d.ts +15 -4
  122. package/dist/_types/contracts/local-execution/processor-capability.d.ts +6 -0
  123. package/dist/_types/contracts/local-execution/processor-direct.d.ts +140 -4
  124. package/dist/_types/contracts/local-execution/processor-outcomes.d.ts +145 -0
  125. package/dist/_types/contracts/local-execution/processor-recipes.d.ts +163 -3
  126. package/dist/_types/contracts/local-execution/processor.d.ts +2422 -322
  127. package/dist/_types/contracts/local-execution/project-source-direct.d.ts +1 -0
  128. package/dist/_types/contracts/local-execution/provider-inspection.d.ts +58 -0
  129. package/dist/_types/contracts/local-execution/provider-release.d.ts +53 -0
  130. package/dist/_types/contracts/local-execution/provider-selection.d.ts +58 -0
  131. package/dist/_types/contracts/local-execution/recognition.d.ts +30 -0
  132. package/dist/_types/contracts/local-execution/speech.d.ts +1 -1
  133. package/dist/_types/contracts/local-execution/versions.d.ts +2 -0
  134. package/dist/_types/contracts/media-observation.d.ts +56 -0
  135. package/dist/_types/contracts/native-speech-http.d.ts +15 -0
  136. package/dist/_types/contracts/navigation-context.d.ts +144 -0
  137. package/dist/_types/contracts/navigation-groups.d.ts +1 -1
  138. package/dist/_types/contracts/navigation.d.ts +2 -0
  139. package/dist/_types/contracts/observation-profile.d.ts +12 -0
  140. package/dist/_types/contracts/openai-asr.d.ts +55 -0
  141. package/dist/_types/contracts/provider-catalog.d.ts +44 -0
  142. package/dist/_types/contracts/provider-models.d.ts +115 -3
  143. package/dist/_types/contracts/provider.d.ts +93 -7
  144. package/dist/_types/contracts/render-readiness.d.ts +74 -1
  145. package/dist/_types/contracts/repair-strategy.d.ts +1 -1
  146. package/dist/_types/contracts/sound-making-plan.d.ts +41 -0
  147. package/dist/_types/contracts/source-workspace.d.ts +2 -0
  148. package/dist/_types/contracts/speech-cost.d.ts +129 -0
  149. package/dist/_types/contracts/speech.d.ts +50 -0
  150. package/dist/_types/contracts/transcription.d.ts +11 -0
  151. package/dist/_types/sdk/local-runtime/components.d.ts +6 -0
  152. package/dist/_types/sdk/local-runtime-client.d.ts +35 -23
  153. package/dist/entry.js +1 -1
  154. package/dist/local-management.js +1 -1
  155. package/dist/local-navigation.js +1 -1
  156. package/package.json +3 -2
  157. package/dist/_chunks/chunk-27KI24GK.js +0 -1
  158. package/dist/_chunks/chunk-2S7FI3HF.js +0 -1
  159. package/dist/_chunks/chunk-3RNDOAQI.js +0 -1
  160. package/dist/_chunks/chunk-3TOXIJ7K.js +0 -1
  161. package/dist/_chunks/chunk-4AD4PNUX.js +0 -1
  162. package/dist/_chunks/chunk-7I7ARCY7.js +0 -1
  163. package/dist/_chunks/chunk-7P2NA6TH.js +0 -1
  164. package/dist/_chunks/chunk-DMA53YVU.js +0 -1
  165. package/dist/_chunks/chunk-ETK7GYCB.js +0 -1
  166. package/dist/_chunks/chunk-FFXSXE3G.js +0 -1
  167. package/dist/_chunks/chunk-H4FH6STZ.js +0 -1
  168. package/dist/_chunks/chunk-LDBXGRCQ.js +0 -1
  169. package/dist/_chunks/chunk-PQCA4X5H.js +0 -1
  170. package/dist/_chunks/chunk-SM2I7TJ3.js +0 -1
  171. package/dist/_chunks/chunk-VXYZCCCQ.js +0 -1
  172. package/dist/_chunks/chunk-VYCNG6TR.js +0 -1
  173. package/dist/_chunks/chunk-WLQMICJN.js +0 -1
  174. package/dist/_chunks/chunk-WTJVS2VS.js +0 -1
  175. package/dist/_chunks/chunk-X5MVC46N.js +0 -1
  176. package/dist/_chunks/component-contract-2JHTRTOB.js +0 -1
  177. package/dist/_chunks/component-preflight-6OWDQAZT.js +0 -1
  178. package/dist/_chunks/connect-7TJDWXV4.js +0 -1
  179. package/dist/_chunks/device-management-JPS4HG34.js +0 -1
  180. package/dist/_chunks/device-preflight-GTQ67H7C.js +0 -1
  181. package/dist/_chunks/devices-inventory-E6ZLXCVR.js +0 -1
  182. package/dist/_chunks/devices-main-2BMCANKU.js +0 -1
  183. package/dist/_chunks/files-JJ6YOULB.js +0 -1
  184. package/dist/_chunks/host-component-ZYQ5ETVL.js +0 -1
  185. package/dist/_chunks/host-help-VNLA3YOV.js +0 -1
  186. package/dist/_chunks/host-main-KLWW7R47.js +0 -1
  187. package/dist/_chunks/http-profile-3VVSWYA5.js +0 -1
  188. package/dist/_chunks/library-main-3WWH7UYV.js +0 -1
  189. package/dist/_chunks/local-main-5BW63USP.js +0 -1
  190. package/dist/_chunks/local-mcp-AARKBDU5.js +0 -1
  191. package/dist/_chunks/main-LGYJ3ZCN.js +0 -2
  192. package/dist/_chunks/mcp-BLSK636Q.js +0 -1
  193. package/dist/_chunks/oauth-RPME2XYB.js +0 -1
  194. package/dist/_chunks/observe-entry-JVZAMB7N.js +0 -1
  195. package/dist/_chunks/remote-client-25Z65VJU.js +0 -1
  196. package/dist/_chunks/render-main-6Z3DKCWL.js +0 -1
  197. package/dist/_chunks/source-import-PNMCMTK7.js +0 -1
  198. package/dist/_chunks/src-7HSJFRVQ.js +0 -1
  199. package/dist/_chunks/stdio-main-HNLJCG45.js +0 -1
  200. package/dist/_chunks/workspace-main-QX5JGEMR.js +0 -1
@@ -1,4 +1,4 @@
1
- import { z } from "zod";
1
+ import { type LifecycleScope } from "./lifecycle-gates.js";
2
2
  import { type LocalUpdatePlan } from "../../sdk/local-runtime-client.js";
3
3
  import { InstallationLedger } from "./ledger.js";
4
4
  import { type ReleaseTrust } from "./releases.js";
@@ -10,6 +10,7 @@ export declare class LocalInstallationManager {
10
10
  static openExisting(root: string): Promise<LocalInstallationManager | null>;
11
11
  configure(raw: unknown, options?: {
12
12
  ifAbsent?: boolean;
13
+ lifecycleScope?: LifecycleScope;
13
14
  }): Promise<{
14
15
  configured: boolean;
15
16
  }>;
@@ -609,8 +610,9 @@ export declare class LocalInstallationManager {
609
610
  revision: number;
610
611
  version: string;
611
612
  }>;
613
+ private applyWithinGate;
612
614
  private startSlot;
613
- start(): Promise<{
615
+ start(scope?: LifecycleScope): Promise<{
614
616
  clients: {
615
617
  renewed: number;
616
618
  blocked: number;
@@ -642,1111 +644,10 @@ export declare class LocalInstallationManager {
642
644
  pendingExecutions: number;
643
645
  pendingRequests: number;
644
646
  pendingRenderers: string[];
647
+ pendingProviderWork?: number | undefined;
645
648
  }>;
646
- stop(): Promise<{
647
- plan: {
648
- protocol: "NVS_LOCAL_AGENT_REVIEW_V1" | "NVS_LOCAL_AGENT_REVIEW_V2";
649
- id: string;
650
- grantFingerprint: string;
651
- snapshot: {
652
- basis: {
653
- scope: {
654
- tenantId: string & z.core.$brand<"TenantId">;
655
- projectId: string & z.core.$brand<"ProjectId">;
656
- productionId: string & z.core.$brand<"ProductionId">;
657
- };
658
- target: {
659
- kind: "IMAGE";
660
- generationId: string;
661
- } | {
662
- kind: "VIDEO";
663
- generationId: string;
664
- } | {
665
- kind: "ROUGH_CUT";
666
- renderId: string;
667
- } | {
668
- kind: "PROGRAMMATIC";
669
- renderId: string;
670
- };
671
- contextFingerprint: string;
672
- };
673
- productionRevision: number;
674
- reviewVersion: number;
675
- executionClass: "LIVE" | "TEST_ONLY";
676
- media: {
677
- artifactId: string;
678
- representationId: string;
679
- checksumSha256: string;
680
- };
681
- requirements: ({
682
- key: string;
683
- dimension: "TRANSITION" | "STYLE" | "PRODUCT_PRESENTATION" | "CANONICAL_FACT" | "NARRATIVE" | "PACING" | "REPETITION" | "TECHNICAL";
684
- expected: string;
685
- enforcement: "LOCKED" | "REQUIRED" | "PREFERRED";
686
- scope: "PRODUCTION" | "TRANSITION";
687
- interval: {
688
- startMs: number;
689
- endMs: number;
690
- };
691
- shotIds: string[];
692
- voiceIdentity?: {
693
- qualified: boolean;
694
- evidenceFingerprint: string;
695
- listeningIntervals: {
696
- startMs: number;
697
- endMs: number;
698
- }[];
699
- sourceAudioVersionIds: string[];
700
- reasons: ("TEST_ONLY" | "NO_SOURCE" | "VOICE_UNAVAILABLE" | "REFERENCE_CHANGED" | "AUDIO_UNAVAILABLE" | "IDENTITY_MISMATCH" | "NO_COMPARISON" | "COMPARISON_NOT_MATCHED" | "COMPARISON_STALE")[];
701
- } | undefined;
702
- continuity?: {
703
- kind: "STATE";
704
- mode: "PRESERVE" | "PLANNED_TRANSITIONS";
705
- entry: string;
706
- exit: string;
707
- changes?: {
708
- atPermille: number;
709
- from: string;
710
- to: string;
711
- reason: string;
712
- }[] | undefined;
713
- } | {
714
- kind: "TIME";
715
- mode: "MONOTONIC" | "PLANNED_JUMPS";
716
- entryMs: number;
717
- exitMs: number;
718
- jumps?: {
719
- atPermille: number;
720
- fromMs: number;
721
- toMs: number;
722
- reason: string;
723
- }[] | undefined;
724
- } | undefined;
725
- consistencyScale?: "PRODUCTION" | "INTRA_SHOT" | "INTER_SHOT" | undefined;
726
- consistencyFamily?: "PRODUCT_IDENTITY" | "CHARACTER_IDENTITY" | "WARDROBE" | "LOCATION" | "STYLE" | "BOUNDARY_CONTINUITY" | "VOICE_IDENTITY" | undefined;
727
- consistencySubject?: {
728
- id: string;
729
- kind: "CHARACTER" | "VOICE";
730
- displayName: string;
731
- facts: {
732
- dimension: string;
733
- value: string;
734
- }[];
735
- master: {
736
- artifactId: string & z.core.$brand<"ArtifactId">;
737
- representationId: string & z.core.$brand<"ArtifactRepresentationId">;
738
- checksumSha256: string;
739
- artifactChecksumSha256: string;
740
- contentType: "image/png" | "image/jpeg" | "image/webp" | "audio/wav";
741
- };
742
- voiceExpectation?: {
743
- voiceProfile: {
744
- ownerSystem: string;
745
- ownerTenantRef: string;
746
- voiceProfileRef: string;
747
- version: number;
748
- digest: string;
749
- };
750
- referenceId: string;
751
- } | undefined;
752
- } | undefined;
753
- consistencyReference?: {
754
- artifactId: string & z.core.$brand<"ArtifactId">;
755
- representationId: string & z.core.$brand<"ArtifactRepresentationId">;
756
- checksumSha256: string;
757
- artifactChecksumSha256: string;
758
- contentType: "image/png" | "image/jpeg" | "image/webp" | "audio/wav";
759
- } | undefined;
760
- } | {
761
- key: string;
762
- family: "PRODUCT_IDENTITY" | "CHARACTER_IDENTITY" | "WARDROBE" | "LOCATION" | "STYLE" | "SHOT_INTENT" | "BOUNDARY_CONTINUITY" | "SOUND";
763
- expected: string;
764
- enforcement: "LOCKED" | "REQUIRED" | "PREFERRED";
765
- evidenceWindow: "START" | "END" | "WHOLE_VIDEO" | "TEMPORAL";
766
- intentPath?: string | undefined;
767
- continuity?: {
768
- kind: "STATE";
769
- mode: "PRESERVE" | "PLANNED_TRANSITIONS";
770
- entry: string;
771
- exit: string;
772
- changes?: {
773
- atPermille: number;
774
- from: string;
775
- to: string;
776
- reason: string;
777
- }[] | undefined;
778
- } | {
779
- kind: "TIME";
780
- mode: "MONOTONIC" | "PLANNED_JUMPS";
781
- entryMs: number;
782
- exitMs: number;
783
- jumps?: {
784
- atPermille: number;
785
- fromMs: number;
786
- toMs: number;
787
- reason: string;
788
- }[] | undefined;
789
- } | undefined;
790
- interval?: {
791
- startMs: number;
792
- endMs: number;
793
- } | undefined;
794
- } | {
795
- key: string;
796
- expected: string;
797
- enforcement: "LOCKED" | "REQUIRED" | "PREFERRED";
798
- intentPath?: string | undefined;
799
- })[];
800
- evidence?: {
801
- profile: "NVS_AGENT_DERIVED_EVIDENCE_V1";
802
- contentType: "image/png" | "image/jpeg" | "image/webp" | "video/mp4";
803
- byteSize: number;
804
- width: number;
805
- height: number;
806
- durationMs?: number | undefined;
807
- frameRate?: 30 | 24 | undefined;
808
- hasAudio?: boolean | undefined;
809
- } | undefined;
810
- image?: {
811
- contentType: "image/png";
812
- byteSize: number;
813
- width: number;
814
- height: number;
815
- } | undefined;
816
- };
817
- expiresAt: string;
818
- fingerprint: string;
819
- };
820
- revision: number;
821
- phase: "RUNNING" | "UNKNOWN" | "PREPARED" | "RESULT_PENDING";
822
- answer: {
823
- summary: string;
824
- observations: {
825
- key: string;
826
- observed: string;
827
- }[];
828
- } | {
829
- summary: string;
830
- imageReadback: string;
831
- observations: {
832
- status: "NOT_APPLICABLE" | "SATISFIED" | "VIOLATED" | "NOT_OBSERVABLE";
833
- confidence: "CLEAR" | "UNCERTAIN";
834
- observed: string;
835
- key: string;
836
- }[];
837
- } | null;
838
- provenance: {
839
- adapter: "CODEX_METADATA_V1" | "CODEX_MEDIA_V2";
840
- binaryDigest: string;
841
- version: "0.164.0" | "0.165.0";
842
- model: string;
843
- reviewerLabel: string;
844
- inference: "REMOTE_OPENAI";
845
- evidence: "IMAGE_PIXELS" | "VIDEO_FRAMES" | "METADATA_ONLY";
846
- reasoningEffort?: "medium" | "low" | "high" | "xhigh" | undefined;
847
- };
848
- imageReceipt?: {
849
- protocol: "NVS_LOCAL_AGENT_IMAGE_V1";
850
- draftId: string;
851
- media: {
852
- artifactId: string;
853
- representationId: string;
854
- checksumSha256: string;
855
- };
856
- byteSize: number;
857
- contentType: "image/png";
858
- width: number;
859
- height: number;
860
- } | undefined;
861
- evidenceReceipt?: {
862
- protocol: "NVS_AGENT_DERIVED_EVIDENCE_V1";
863
- draftId: string;
864
- media: {
865
- artifactId: string;
866
- representationId: string;
867
- checksumSha256: string;
868
- };
869
- ffmpegDigest: string;
870
- ffprobeDigest: string;
871
- attachment: {
872
- checksumSha256: string;
873
- byteSize: number;
874
- width: number;
875
- height: number;
876
- };
877
- timestampsMs: number[];
878
- audio: {
879
- sampleRateHz: 48000;
880
- channels: 1;
881
- samples: number;
882
- peak: number;
883
- rms: number;
884
- clippedSamples: number;
885
- } | null;
886
- limitations: ["SAMPLED_FRAMES_ARE_NOT_FULL_PLAYBACK", "AUDIO_STATISTICS_ARE_NOT_LISTENING_OR_TRANSCRIPTION"];
887
- } | undefined;
888
- } | {
889
- reference: {
890
- tenantId: string;
891
- projectId: string;
892
- fileId: string;
893
- versionId: string;
894
- checksumSha256: string;
895
- byteSize: number;
896
- contentType: "application/json" | "application/pdf" | "application/octet-stream" | "text/plain" | "image/png" | "image/jpeg" | "image/webp" | "audio/wav" | "video/mp4";
897
- deviceId: string;
898
- };
899
- ownerKey: string;
900
- title: string;
901
- createdAt: string;
902
- revision: number;
903
- access: {
904
- state: "REJECTED" | "UNKNOWN" | "PENDING" | "LOCAL_ONLY" | "SYNCED";
905
- desired: {
906
- reference: {
907
- tenantId: string;
908
- projectId: string;
909
- fileId: string;
910
- versionId: string;
911
- checksumSha256: string;
912
- byteSize: number;
913
- contentType: "application/json" | "application/pdf" | "application/octet-stream" | "text/plain" | "image/png" | "image/jpeg" | "image/webp" | "audio/wav" | "video/mp4";
914
- deviceId: string;
915
- };
916
- requestId: string;
917
- expectedRevision: number;
918
- metadata: {
919
- label: string;
920
- } | null;
921
- allowInspect: boolean;
922
- allowPublish: boolean;
923
- expiresAt: string;
924
- } | null;
925
- confirmed: {
926
- reference: {
927
- tenantId: string;
928
- projectId: string;
929
- fileId: string;
930
- versionId: string;
931
- checksumSha256: string;
932
- byteSize: number;
933
- contentType: "application/json" | "application/pdf" | "application/octet-stream" | "text/plain" | "image/png" | "image/jpeg" | "image/webp" | "audio/wav" | "video/mp4";
934
- deviceId: string;
935
- };
936
- requestId: string;
937
- expectedRevision: number;
938
- metadata: {
939
- label: string;
940
- } | null;
941
- allowInspect: boolean;
942
- allowPublish: boolean;
943
- expiresAt: string;
944
- revision: number;
945
- recordedAt: string;
946
- } | null;
947
- };
948
- } | {
949
- protocol: "NVS_LOCAL_CONNECTOR_V1";
950
- stateDirectory: string;
951
- credential: string;
952
- expiresAt: string;
953
- tenantId: string;
954
- deviceId: string;
955
- } | {
956
- protocol: "NVS_LOCAL_IPC_V1";
957
- runtimeRevision: number;
958
- state: "RECOVERY_REQUIRED" | "EXECUTING" | "DRAINING" | "IDLE";
959
- journalSchemaVersion: 1;
960
- workProtocols: ("NVS_LOCAL_WORK_V1" | "NVS_LOCAL_WORK_V2")[];
961
- versions: {
962
- component: "CLI" | "SDK" | "MCP" | "RUNTIME" | "MEDIA_TOOLS";
963
- installedVersion: string | null;
964
- runningVersion: string | null;
965
- availableVersion: string | null;
966
- executablePath: string | null;
967
- installOwner: "UNKNOWN" | "PROJECT" | "MANAGED" | "NPM_GLOBAL" | "NPX" | "TARBALL";
968
- }[];
969
- nextActions: {
970
- call: {
971
- operation: "library.capability";
972
- } | {
973
- operation: "library.call";
974
- input: {
975
- tenantId: string;
976
- after: string | null;
977
- limit: number;
978
- deviceId: string;
979
- action: "list";
980
- projectId?: string | undefined;
981
- ownerKey?: string | undefined;
982
- search?: string | undefined;
983
- mediaCategory?: "IMAGE" | "VIDEO" | "AUDIO" | "DOCUMENT" | undefined;
984
- } | {
985
- reference: {
986
- tenantId: string;
987
- projectId: string;
988
- fileId: string;
989
- versionId: string;
990
- checksumSha256: string;
991
- byteSize: number;
992
- contentType: "application/json" | "application/pdf" | "application/octet-stream" | "text/plain" | "image/png" | "image/jpeg" | "image/webp" | "audio/wav" | "video/mp4";
993
- deviceId: string;
994
- };
995
- action: "get";
996
- ownerKey?: string | undefined;
997
- } | {
998
- tenantId: string;
999
- limit: number;
1000
- after: string | null;
1001
- deviceId: string;
1002
- projectId: string;
1003
- action: "scoped-list";
1004
- search?: string | undefined;
1005
- mediaCategory?: "IMAGE" | "VIDEO" | "AUDIO" | "DOCUMENT" | undefined;
1006
- } | {
1007
- action: "scoped-get";
1008
- reference: {
1009
- tenantId: string;
1010
- projectId: string;
1011
- fileId: string;
1012
- versionId: string;
1013
- checksumSha256: string;
1014
- byteSize: number;
1015
- contentType: "application/json" | "application/pdf" | "application/octet-stream" | "text/plain" | "image/png" | "image/jpeg" | "image/webp" | "audio/wav" | "video/mp4";
1016
- deviceId: string;
1017
- };
1018
- } | {
1019
- action: "usage";
1020
- ownerKey?: string | undefined;
1021
- } | {
1022
- reference: {
1023
- tenantId: string;
1024
- projectId: string;
1025
- fileId: string;
1026
- versionId: string;
1027
- checksumSha256: string;
1028
- byteSize: number;
1029
- contentType: "application/json" | "application/pdf" | "application/octet-stream" | "text/plain" | "image/png" | "image/jpeg" | "image/webp" | "audio/wav" | "video/mp4";
1030
- deviceId: string;
1031
- };
1032
- offset: number;
1033
- length: number;
1034
- action: "read";
1035
- ownerKey?: string | undefined;
1036
- } | {
1037
- command: {
1038
- reference: {
1039
- tenantId: string;
1040
- projectId: string;
1041
- fileId: string;
1042
- versionId: string;
1043
- checksumSha256: string;
1044
- byteSize: number;
1045
- contentType: "application/json" | "application/pdf" | "application/octet-stream" | "text/plain" | "image/png" | "image/jpeg" | "image/webp" | "audio/wav" | "video/mp4";
1046
- deviceId: string;
1047
- };
1048
- requestId: string;
1049
- expectedRevision: number;
1050
- metadata: {
1051
- label: string;
1052
- } | null;
1053
- allowInspect: boolean;
1054
- allowPublish: boolean;
1055
- expiresAt: string;
1056
- };
1057
- expectedLocalRevision: number;
1058
- action: "access";
1059
- ownerKey?: string | undefined;
1060
- } | {
1061
- reference: {
1062
- tenantId: string;
1063
- projectId: string;
1064
- fileId: string;
1065
- versionId: string;
1066
- checksumSha256: string;
1067
- byteSize: number;
1068
- contentType: "application/json" | "application/pdf" | "application/octet-stream" | "text/plain" | "image/png" | "image/jpeg" | "image/webp" | "audio/wav" | "video/mp4";
1069
- deviceId: string;
1070
- };
1071
- requestId: string;
1072
- action: "sync";
1073
- ownerKey?: string | undefined;
1074
- } | {
1075
- reference: {
1076
- tenantId: string;
1077
- projectId: string;
1078
- fileId: string;
1079
- versionId: string;
1080
- checksumSha256: string;
1081
- byteSize: number;
1082
- contentType: "application/json" | "application/pdf" | "application/octet-stream" | "text/plain" | "image/png" | "image/jpeg" | "image/webp" | "audio/wav" | "video/mp4";
1083
- deviceId: string;
1084
- };
1085
- requestId: string;
1086
- action: "resume-access";
1087
- ownerKey?: string | undefined;
1088
- } | {
1089
- tenantId: string;
1090
- projectId: string;
1091
- deviceId: string;
1092
- requestId: string;
1093
- action: "import-receipt";
1094
- ownerKey?: string | undefined;
1095
- };
1096
- } | {
1097
- operation: "agent.discover";
1098
- binary?: string | undefined;
1099
- } | {
1100
- operation: "offline.workspace";
1101
- input: {
1102
- action: "list" | "forget";
1103
- key: string;
1104
- } | {
1105
- action: "retain";
1106
- key: string;
1107
- snapshot: {
1108
- projectId: string;
1109
- title: string;
1110
- savedAt: string;
1111
- expiresAt: string;
1112
- productions: {
1113
- id: string;
1114
- title: string;
1115
- }[];
1116
- possiblyTruncated: boolean;
1117
- };
1118
- } | {
1119
- action: "draft";
1120
- key: string;
1121
- projectId: string;
1122
- text: string;
1123
- expectedRevision: number;
1124
- };
1125
- } | {
1126
- operation: "workspace.inspect";
1127
- } | {
1128
- operation: "workspace.configure";
1129
- policy: {
1130
- acceptNewWork: boolean;
1131
- mode: "CONTINUOUS" | "IDLE_ONLY";
1132
- idleAfterSeconds: number;
1133
- maxConcurrentJobs: number;
1134
- cpuCores: 2 | 1;
1135
- memoryMiB: number;
1136
- cacheQuotaBytes: number;
1137
- };
1138
- expectedRevision: number;
1139
- } | {
1140
- operation: "workspace.activity";
1141
- idleSeconds: number;
1142
- observedAt: string;
1143
- } | {
1144
- operation: "storage.clean";
1145
- } | {
1146
- operation: "diagnostics.read";
1147
- } | {
1148
- operation: "agent.grant";
1149
- grant: {
1150
- protocol: "NVS_CODEX_REVIEW_GRANT_V1";
1151
- binary: string;
1152
- binaryDigest: string;
1153
- version: "0.164.0" | "0.165.0";
1154
- model: string;
1155
- reviewerLabel: string;
1156
- inference: "REMOTE_OPENAI";
1157
- remoteUseApproved: true;
1158
- projects: {
1159
- tenantId: string;
1160
- projectId: string;
1161
- }[];
1162
- expiresAt: string;
1163
- reasoningEffort?: "medium" | "low" | "high" | "xhigh" | undefined;
1164
- imageDisclosureApproved?: true | undefined;
1165
- mediaDisclosureApproved?: true | undefined;
1166
- };
1167
- approval: string;
1168
- } | {
1169
- operation: "agent.probe";
1170
- } | {
1171
- operation: "agent.revoke";
1172
- approval: string;
1173
- } | {
1174
- operation: "agent.prepare";
1175
- snapshot: {
1176
- basis: {
1177
- scope: {
1178
- tenantId: string & z.core.$brand<"TenantId">;
1179
- projectId: string & z.core.$brand<"ProjectId">;
1180
- productionId: string & z.core.$brand<"ProductionId">;
1181
- };
1182
- target: {
1183
- kind: "IMAGE";
1184
- generationId: string;
1185
- } | {
1186
- kind: "VIDEO";
1187
- generationId: string;
1188
- } | {
1189
- kind: "ROUGH_CUT";
1190
- renderId: string;
1191
- } | {
1192
- kind: "PROGRAMMATIC";
1193
- renderId: string;
1194
- };
1195
- contextFingerprint: string;
1196
- };
1197
- productionRevision: number;
1198
- reviewVersion: number;
1199
- executionClass: "LIVE" | "TEST_ONLY";
1200
- media: {
1201
- artifactId: string;
1202
- representationId: string;
1203
- checksumSha256: string;
1204
- };
1205
- requirements: ({
1206
- key: string;
1207
- dimension: "TRANSITION" | "STYLE" | "PRODUCT_PRESENTATION" | "CANONICAL_FACT" | "NARRATIVE" | "PACING" | "REPETITION" | "TECHNICAL";
1208
- expected: string;
1209
- enforcement: "LOCKED" | "REQUIRED" | "PREFERRED";
1210
- scope: "PRODUCTION" | "TRANSITION";
1211
- interval: {
1212
- startMs: number;
1213
- endMs: number;
1214
- };
1215
- shotIds: string[];
1216
- voiceIdentity?: {
1217
- qualified: boolean;
1218
- evidenceFingerprint: string;
1219
- listeningIntervals: {
1220
- startMs: number;
1221
- endMs: number;
1222
- }[];
1223
- sourceAudioVersionIds: string[];
1224
- reasons: ("TEST_ONLY" | "NO_SOURCE" | "VOICE_UNAVAILABLE" | "REFERENCE_CHANGED" | "AUDIO_UNAVAILABLE" | "IDENTITY_MISMATCH" | "NO_COMPARISON" | "COMPARISON_NOT_MATCHED" | "COMPARISON_STALE")[];
1225
- } | undefined;
1226
- continuity?: {
1227
- kind: "STATE";
1228
- mode: "PRESERVE" | "PLANNED_TRANSITIONS";
1229
- entry: string;
1230
- exit: string;
1231
- changes?: {
1232
- atPermille: number;
1233
- from: string;
1234
- to: string;
1235
- reason: string;
1236
- }[] | undefined;
1237
- } | {
1238
- kind: "TIME";
1239
- mode: "MONOTONIC" | "PLANNED_JUMPS";
1240
- entryMs: number;
1241
- exitMs: number;
1242
- jumps?: {
1243
- atPermille: number;
1244
- fromMs: number;
1245
- toMs: number;
1246
- reason: string;
1247
- }[] | undefined;
1248
- } | undefined;
1249
- consistencyScale?: "PRODUCTION" | "INTRA_SHOT" | "INTER_SHOT" | undefined;
1250
- consistencyFamily?: "PRODUCT_IDENTITY" | "CHARACTER_IDENTITY" | "WARDROBE" | "LOCATION" | "STYLE" | "BOUNDARY_CONTINUITY" | "VOICE_IDENTITY" | undefined;
1251
- consistencySubject?: {
1252
- id: string;
1253
- kind: "CHARACTER" | "VOICE";
1254
- displayName: string;
1255
- facts: {
1256
- dimension: string;
1257
- value: string;
1258
- }[];
1259
- master: {
1260
- artifactId: string & z.core.$brand<"ArtifactId">;
1261
- representationId: string & z.core.$brand<"ArtifactRepresentationId">;
1262
- checksumSha256: string;
1263
- artifactChecksumSha256: string;
1264
- contentType: "image/png" | "image/jpeg" | "image/webp" | "audio/wav";
1265
- };
1266
- voiceExpectation?: {
1267
- voiceProfile: {
1268
- ownerSystem: string;
1269
- ownerTenantRef: string;
1270
- voiceProfileRef: string;
1271
- version: number;
1272
- digest: string;
1273
- };
1274
- referenceId: string;
1275
- } | undefined;
1276
- } | undefined;
1277
- consistencyReference?: {
1278
- artifactId: string & z.core.$brand<"ArtifactId">;
1279
- representationId: string & z.core.$brand<"ArtifactRepresentationId">;
1280
- checksumSha256: string;
1281
- artifactChecksumSha256: string;
1282
- contentType: "image/png" | "image/jpeg" | "image/webp" | "audio/wav";
1283
- } | undefined;
1284
- } | {
1285
- key: string;
1286
- family: "PRODUCT_IDENTITY" | "CHARACTER_IDENTITY" | "WARDROBE" | "LOCATION" | "STYLE" | "SHOT_INTENT" | "BOUNDARY_CONTINUITY" | "SOUND";
1287
- expected: string;
1288
- enforcement: "LOCKED" | "REQUIRED" | "PREFERRED";
1289
- evidenceWindow: "START" | "END" | "WHOLE_VIDEO" | "TEMPORAL";
1290
- intentPath?: string | undefined;
1291
- continuity?: {
1292
- kind: "STATE";
1293
- mode: "PRESERVE" | "PLANNED_TRANSITIONS";
1294
- entry: string;
1295
- exit: string;
1296
- changes?: {
1297
- atPermille: number;
1298
- from: string;
1299
- to: string;
1300
- reason: string;
1301
- }[] | undefined;
1302
- } | {
1303
- kind: "TIME";
1304
- mode: "MONOTONIC" | "PLANNED_JUMPS";
1305
- entryMs: number;
1306
- exitMs: number;
1307
- jumps?: {
1308
- atPermille: number;
1309
- fromMs: number;
1310
- toMs: number;
1311
- reason: string;
1312
- }[] | undefined;
1313
- } | undefined;
1314
- interval?: {
1315
- startMs: number;
1316
- endMs: number;
1317
- } | undefined;
1318
- } | {
1319
- key: string;
1320
- expected: string;
1321
- enforcement: "LOCKED" | "REQUIRED" | "PREFERRED";
1322
- intentPath?: string | undefined;
1323
- })[];
1324
- evidence?: {
1325
- profile: "NVS_AGENT_DERIVED_EVIDENCE_V1";
1326
- contentType: "image/png" | "image/jpeg" | "image/webp" | "video/mp4";
1327
- byteSize: number;
1328
- width: number;
1329
- height: number;
1330
- durationMs?: number | undefined;
1331
- frameRate?: 30 | 24 | undefined;
1332
- hasAudio?: boolean | undefined;
1333
- } | undefined;
1334
- image?: {
1335
- contentType: "image/png";
1336
- byteSize: number;
1337
- width: number;
1338
- height: number;
1339
- } | undefined;
1340
- };
1341
- } | {
1342
- operation: "agent.start";
1343
- id: string;
1344
- expectedRevision: number;
1345
- approval: string;
1346
- } | {
1347
- operation: "agent.inspect";
1348
- id: string;
1349
- } | {
1350
- operation: "runtime.status";
1351
- includeDevice?: true | undefined;
1352
- } | {
1353
- operation: "runtime.doctor";
1354
- } | {
1355
- operation: "runtime.inventory";
1356
- } | {
1357
- operation: "session.issue";
1358
- tenantId: string;
1359
- deviceId: string;
1360
- expiresAt: string;
1361
- } | {
1362
- operation: "runtime.stop";
1363
- expectedRuntimeRevision: number;
1364
- } | {
1365
- operation: "execution.inspect";
1366
- input: {
1367
- tenantId: string;
1368
- projectId: string;
1369
- productionId: string;
1370
- runtimeJobId: string;
1371
- includeProgress?: boolean | undefined;
1372
- };
1373
- } | {
1374
- operation: "execution.list";
1375
- input: {
1376
- tenantId: string;
1377
- projectId: string;
1378
- after: string | null;
1379
- limit: number;
1380
- includeCompleted?: boolean | undefined;
1381
- includeProgress?: boolean | undefined;
1382
- };
1383
- } | {
1384
- operation: "update.check";
1385
- } | {
1386
- operation: "update.prepare";
1387
- targetVersion: string;
1388
- expectedRuntimeRevision: number;
1389
- } | {
1390
- operation: "update.apply";
1391
- planId: string;
1392
- targetVersion: string;
1393
- expectedRuntimeRevision: number;
1394
- };
1395
- availability: "AVAILABLE" | "BLOCKED";
1396
- reason: "READY" | "AUTHORIZATION_REQUIRED" | "INSTALL_REQUIRED" | "VERSION_INCOMPATIBLE" | "UPDATE_AVAILABLE" | "RECOVERY_REQUIRED";
1397
- }[];
1398
- deviceAuthority?: {
1399
- tenantId: string;
1400
- deviceId: string;
1401
- origin: string;
1402
- } | undefined;
1403
- capabilityMismatch?: {
1404
- kind: "CAPABILITY_DEFINITION" | "MEDIA_PROFILE" | "RENDERER" | "VALIDATION_PROFILE" | "PROCESSOR_PROFILE" | "LOCAL_LIBRARY_PROFILE";
1405
- expectedVersion: string;
1406
- actualVersion: string;
1407
- recovery: "REDISCOVER_CAPABILITY" | "CHECK_DEVICE_RELEASE";
1408
- } | undefined;
1409
- deviceCapabilities?: {
1410
- deviceRevision: number;
1411
- tenantMediaValidation: boolean;
1412
- tenantMediaProcessing: boolean;
1413
- processorCapabilities: ("KEYFRAME_GENERATE" | "VIDEO_GENERATE" | "SPEECH_SYNTHESIZE" | "SPEECH_EXTERNAL_QWEN" | "TEMPORAL_SAMPLE" | "DELIVERY_VALIDATE" | "COMPOSITION_RENDER" | "IMPORTED_VISUAL_NORMALIZE" | "SOURCE_SYNC_AUDIO" | "IMPORT_ORIGINAL" | "LOCAL_MEDIA_INSPECT" | "LOCAL_MEDIA_PUBLISH" | "IMPORT_PROJECT_SOURCE" | "REGISTER_VISUAL_SEQUENCE" | "REFERENCE_PREVIEW" | "SPEECH_SYNTHESIZE_CPU" | "TRANSCRIBE_AUDIO" | "TRANSCRIBE_EXTERNAL_QWEN")[];
1414
- } | undefined;
1415
- } | {
1416
- binding: {
1417
- tenantId: string;
1418
- projectId: string;
1419
- productionId: string;
1420
- runtimeJobId: string;
1421
- attemptId: string;
1422
- assignmentRevision: number;
1423
- workerId: string;
1424
- workFingerprint: string;
1425
- toolchainFingerprint: string;
1426
- };
1427
- revision: number;
1428
- phase: "RUNNING" | "FENCED" | "RECOVERY_REQUIRED" | "STAGED" | "OUTPUT_PENDING" | "RECEIPT_RECORDED";
1429
- checkpoint: "ADOPTED" | "SOURCES_READY" | "PROCESS_STARTED" | "OUTPUT_STAGED";
1430
- progress?: {
1431
- stage: "WAITING" | "COMPLETE" | "FENCED" | "RECOVERY_REQUIRED" | "DOWNLOADING" | "EXECUTING" | "UPLOADING" | "AWAITING_ACCEPTANCE";
1432
- downloadedBytes: number;
1433
- sourceBytes: number;
1434
- uploadedBytes: number;
1435
- outputBytes: number;
1436
- lastError: {
1437
- code: string;
1438
- observedAt: string;
1439
- } | null;
1440
- } | undefined;
1441
- } | {
1442
- items: {
1443
- reference: {
1444
- tenantId: string;
1445
- projectId: string;
1446
- fileId: string;
1447
- versionId: string;
1448
- checksumSha256: string;
1449
- byteSize: number;
1450
- contentType: "application/json" | "application/pdf" | "application/octet-stream" | "text/plain" | "image/png" | "image/jpeg" | "image/webp" | "audio/wav" | "video/mp4";
1451
- deviceId: string;
1452
- };
1453
- metadata: {
1454
- label: string;
1455
- } | null;
1456
- accessRevision: number;
1457
- allowInspect: boolean;
1458
- allowPublish: boolean;
1459
- expiresAt: string;
1460
- }[];
1461
- nextCursor: string | null;
1462
- } | {
1463
- candidate: {
1464
- binary: string;
1465
- binaryDigest: string;
1466
- version: string;
1467
- qualified: boolean;
1468
- } | null;
1469
- configured: {
1470
- protocol: "NVS_CODEX_REVIEW_GRANT_V1";
1471
- binary: string;
1472
- binaryDigest: string;
1473
- version: "0.164.0" | "0.165.0";
1474
- model: string;
1475
- reviewerLabel: string;
1476
- inference: "REMOTE_OPENAI";
1477
- remoteUseApproved: true;
1478
- projects: {
1479
- tenantId: string;
1480
- projectId: string;
1481
- }[];
1482
- expiresAt: string;
1483
- reasoningEffort?: "medium" | "low" | "high" | "xhigh" | undefined;
1484
- imageDisclosureApproved?: true | undefined;
1485
- mediaDisclosureApproved?: true | undefined;
1486
- } | null;
1487
- } | {
1488
- configured: boolean;
1489
- available: boolean;
1490
- reason: "READY" | "GRANT_EXPIRED" | "GRANT_REQUIRED" | "RUNTIME_UNAVAILABLE";
1491
- grantFingerprint: string | null;
1492
- inference: "REMOTE_OPENAI";
1493
- } | {
1494
- historical: true;
1495
- items: {
1496
- snapshot: {
1497
- projectId: string;
1498
- title: string;
1499
- savedAt: string;
1500
- expiresAt: string;
1501
- productions: {
1502
- id: string;
1503
- title: string;
1504
- }[];
1505
- possiblyTruncated: boolean;
1506
- };
1507
- draft: {
1508
- text: string;
1509
- revision: number;
1510
- };
1511
- }[];
1512
- } | {
1513
- items: {
1514
- reference: {
1515
- tenantId: string;
1516
- projectId: string;
1517
- fileId: string;
1518
- versionId: string;
1519
- checksumSha256: string;
1520
- byteSize: number;
1521
- contentType: "application/json" | "application/pdf" | "application/octet-stream" | "text/plain" | "image/png" | "image/jpeg" | "image/webp" | "audio/wav" | "video/mp4";
1522
- deviceId: string;
1523
- };
1524
- ownerKey: string;
1525
- title: string;
1526
- createdAt: string;
1527
- revision: number;
1528
- access: {
1529
- state: "REJECTED" | "UNKNOWN" | "PENDING" | "LOCAL_ONLY" | "SYNCED";
1530
- desired: {
1531
- reference: {
1532
- tenantId: string;
1533
- projectId: string;
1534
- fileId: string;
1535
- versionId: string;
1536
- checksumSha256: string;
1537
- byteSize: number;
1538
- contentType: "application/json" | "application/pdf" | "application/octet-stream" | "text/plain" | "image/png" | "image/jpeg" | "image/webp" | "audio/wav" | "video/mp4";
1539
- deviceId: string;
1540
- };
1541
- requestId: string;
1542
- expectedRevision: number;
1543
- metadata: {
1544
- label: string;
1545
- } | null;
1546
- allowInspect: boolean;
1547
- allowPublish: boolean;
1548
- expiresAt: string;
1549
- } | null;
1550
- confirmed: {
1551
- reference: {
1552
- tenantId: string;
1553
- projectId: string;
1554
- fileId: string;
1555
- versionId: string;
1556
- checksumSha256: string;
1557
- byteSize: number;
1558
- contentType: "application/json" | "application/pdf" | "application/octet-stream" | "text/plain" | "image/png" | "image/jpeg" | "image/webp" | "audio/wav" | "video/mp4";
1559
- deviceId: string;
1560
- };
1561
- requestId: string;
1562
- expectedRevision: number;
1563
- metadata: {
1564
- label: string;
1565
- } | null;
1566
- allowInspect: boolean;
1567
- allowPublish: boolean;
1568
- expiresAt: string;
1569
- revision: number;
1570
- recordedAt: string;
1571
- } | null;
1572
- };
1573
- }[];
1574
- nextCursor: string | null;
1575
- } | {
1576
- reference: {
1577
- tenantId: string;
1578
- projectId: string;
1579
- fileId: string;
1580
- versionId: string;
1581
- checksumSha256: string;
1582
- byteSize: number;
1583
- contentType: "application/json" | "application/pdf" | "application/octet-stream" | "text/plain" | "image/png" | "image/jpeg" | "image/webp" | "audio/wav" | "video/mp4";
1584
- deviceId: string;
1585
- };
1586
- metadata: {
1587
- label: string;
1588
- } | null;
1589
- accessRevision: number;
1590
- allowInspect: boolean;
1591
- allowPublish: boolean;
1592
- expiresAt: string;
1593
- } | {
1594
- reference: {
1595
- tenantId: string;
1596
- projectId: string;
1597
- fileId: string;
1598
- versionId: string;
1599
- checksumSha256: string;
1600
- byteSize: number;
1601
- contentType: "application/json" | "application/pdf" | "application/octet-stream" | "text/plain" | "image/png" | "image/jpeg" | "image/webp" | "audio/wav" | "video/mp4";
1602
- deviceId: string;
1603
- };
1604
- offset: number;
1605
- contentBase64: string;
1606
- complete: boolean;
1607
- } | {
1608
- protocol: "NVS_LOCAL_LIBRARY_V1";
1609
- available: boolean;
1610
- profileDigest: string;
1611
- } | {
1612
- fileCount: number;
1613
- totalBytes: number;
1614
- quotaBytes: number;
1615
- availableDiskBytes: number;
1616
- } | {
1617
- runtimeRevision: number;
1618
- descriptor: {
1619
- protocol: "NVS_RUNTIME_DESCRIPTOR_V1";
1620
- version: string;
1621
- node: {
1622
- major: 24;
1623
- minMinor: 12;
1624
- };
1625
- platform: {
1626
- os: "darwin" | "linux" | "win32";
1627
- architecture: "arm64" | "x64";
1628
- };
1629
- ipcProtocol: "NVS_LOCAL_IPC_V1";
1630
- workProtocol: "NVS_LOCAL_WORK_V1" | "NVS_LOCAL_WORK_V2";
1631
- journalSchema: 1;
1632
- rendererDigest: string;
1633
- profileDigest: string;
1634
- compatibleRenderers?: {
1635
- rendererDigest: string;
1636
- profileDigest: string;
1637
- }[] | undefined;
1638
- };
1639
- activeProcesses: number;
1640
- pendingExecutions: number;
1641
- pendingRequests: number;
1642
- pendingRenderers: string[];
1643
- } | {
1644
- settings: {
1645
- revision: number;
1646
- policy: {
1647
- acceptNewWork: boolean;
1648
- mode: "CONTINUOUS" | "IDLE_ONLY";
1649
- idleAfterSeconds: number;
1650
- maxConcurrentJobs: number;
1651
- cpuCores: 2 | 1;
1652
- memoryMiB: number;
1653
- cacheQuotaBytes: number;
1654
- };
1655
- };
1656
- storage: {
1657
- cacheBytes: number;
1658
- protectedBytes: number;
1659
- reclaimableBytes: number;
1660
- transferBytes: number;
1661
- journalBytes: number;
1662
- availableDiskBytes: number;
1663
- quotaBytes: number;
1664
- overQuota: boolean;
1665
- reviewBytes?: number | undefined;
1666
- ownerStagingBytes?: number | undefined;
1667
- };
1668
- scheduling: {
1669
- state: "PAUSED" | "READY" | "WAITING_FOR_IDLE" | "AT_CAPACITY" | "DRAINING";
1670
- activeJobs: number;
1671
- idleObservationCurrent: boolean;
1672
- };
1673
- } | {
1674
- protocol: "NVS_LOCAL_DIAGNOSTICS_V1";
1675
- createdAt: string;
1676
- runtimeVersion: string;
1677
- runtimeRevision: number;
1678
- settings: {
1679
- revision: number;
1680
- policy: {
1681
- acceptNewWork: boolean;
1682
- mode: "CONTINUOUS" | "IDLE_ONLY";
1683
- idleAfterSeconds: number;
1684
- maxConcurrentJobs: number;
1685
- cpuCores: 2 | 1;
1686
- memoryMiB: number;
1687
- cacheQuotaBytes: number;
1688
- };
1689
- };
1690
- storage: {
1691
- cacheBytes: number;
1692
- protectedBytes: number;
1693
- reclaimableBytes: number;
1694
- transferBytes: number;
1695
- journalBytes: number;
1696
- availableDiskBytes: number;
1697
- quotaBytes: number;
1698
- overQuota: boolean;
1699
- reviewBytes?: number | undefined;
1700
- ownerStagingBytes?: number | undefined;
1701
- };
1702
- recordCounts: Record<string, number>;
1703
- failures: {
1704
- taskFingerprint: string;
1705
- code: string;
1706
- observedAt: string;
1707
- }[];
1708
- } | {
1709
- mode: "INSTALLED" | "MANAGED";
1710
- availability: "UNAVAILABLE" | "AVAILABLE";
1711
- reason: "QUALIFIED_PROCESS_TOOLS" | "MANAGED_TOOLS_MISSING" | "TOOL_QUALIFICATION_FAILED";
1712
- nativeExecutionReady: boolean;
1713
- tools: {
1714
- name: "FFMPEG" | "FFPROBE";
1715
- path: string;
1716
- version: string;
1717
- digest: string;
1718
- }[];
1719
- executionProfiles?: ("ROUGH_CUT_PREVIEW_V1" | "STUDIO_MEDIA_V2" | "AUDIO_MEDIA_V1")[] | undefined;
1720
- } | {
1721
- items: {
1722
- binding: {
1723
- tenantId: string;
1724
- projectId: string;
1725
- productionId: string;
1726
- runtimeJobId: string;
1727
- attemptId: string;
1728
- assignmentRevision: number;
1729
- workerId: string;
1730
- workFingerprint: string;
1731
- toolchainFingerprint: string;
1732
- };
1733
- revision: number;
1734
- phase: "RUNNING" | "FENCED" | "RECOVERY_REQUIRED" | "STAGED" | "OUTPUT_PENDING" | "RECEIPT_RECORDED";
1735
- checkpoint: "ADOPTED" | "SOURCES_READY" | "PROCESS_STARTED" | "OUTPUT_STAGED";
1736
- progress?: {
1737
- stage: "WAITING" | "COMPLETE" | "FENCED" | "RECOVERY_REQUIRED" | "DOWNLOADING" | "EXECUTING" | "UPLOADING" | "AWAITING_ACCEPTANCE";
1738
- downloadedBytes: number;
1739
- sourceBytes: number;
1740
- uploadedBytes: number;
1741
- outputBytes: number;
1742
- lastError: {
1743
- code: string;
1744
- observedAt: string;
1745
- } | null;
1746
- } | undefined;
1747
- }[];
1748
- nextCursor: string | null;
1749
- } | {
649
+ private startWithinGate;
650
+ stop(scope?: LifecycleScope): Promise<{
1750
651
  state: "DRAINING";
1751
652
  inventory?: {
1752
653
  runtimeRevision: number;
@@ -1775,9 +676,11 @@ export declare class LocalInstallationManager {
1775
676
  pendingExecutions: number;
1776
677
  pendingRequests: number;
1777
678
  pendingRenderers: string[];
679
+ pendingProviderWork?: number | undefined;
1778
680
  } | undefined;
1779
681
  backupPath?: string | undefined;
1780
- } | null>;
682
+ }>;
683
+ private stopWithinGate;
1781
684
  reconcile(id: string, approval: string): Promise<{
1782
685
  rolledBack: boolean;
1783
686
  revision: number;
@@ -1789,6 +692,7 @@ export declare class LocalInstallationManager {
1789
692
  version: string;
1790
693
  rolledBack?: never;
1791
694
  }>;
695
+ private reconcileWithinGate;
1792
696
  grant(raw: unknown, output: string): Promise<{
1793
697
  granted: boolean;
1794
698
  tenantId: string;