@nativestudio/cli 0.0.0-stage → 0.3.0-rc.11

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 (266) hide show
  1. package/COMPATIBILITY.json +45 -0
  2. package/LICENSE +201 -0
  3. package/components/runtime.json +31 -0
  4. package/components/runtime.tgz +0 -0
  5. package/dist/BUNDLED_DEPENDENCIES.json +1 -0
  6. package/dist/_chunks/chunk-2UYKJ6YN.js +1 -0
  7. package/dist/_chunks/chunk-37PAJCKA.js +1 -0
  8. package/dist/_chunks/chunk-3AVC742O.js +1 -0
  9. package/dist/_chunks/chunk-4U4Y2K73.js +1 -0
  10. package/dist/_chunks/chunk-65FQPXKC.js +1 -0
  11. package/dist/_chunks/chunk-6DVZBKNV.js +1 -0
  12. package/dist/_chunks/chunk-6LU6GJKW.js +1 -0
  13. package/dist/_chunks/chunk-6N433ZWR.js +1 -0
  14. package/dist/_chunks/chunk-EGUJ2YRX.js +1 -0
  15. package/dist/_chunks/chunk-FU3524Z6.js +1 -0
  16. package/dist/_chunks/chunk-GZBWA4YN.js +1 -0
  17. package/dist/_chunks/chunk-HR34UMPP.js +1 -0
  18. package/dist/_chunks/chunk-HTUTYIRU.js +1 -0
  19. package/dist/_chunks/chunk-JFC6ZIGA.js +1 -0
  20. package/dist/_chunks/chunk-KB2GVAN7.js +1 -0
  21. package/dist/_chunks/chunk-L543FEDK.js +1 -0
  22. package/dist/_chunks/chunk-LISB5W7B.js +1 -0
  23. package/dist/_chunks/chunk-LUAH3KAS.js +1 -0
  24. package/dist/_chunks/chunk-M2KVQQ4X.js +1 -0
  25. package/dist/_chunks/chunk-ODGPV7MM.js +1 -0
  26. package/dist/_chunks/chunk-PUBMDP4E.js +1 -0
  27. package/dist/_chunks/chunk-PUNG4ND7.js +1 -0
  28. package/dist/_chunks/chunk-Q57YFNK5.js +1 -0
  29. package/dist/_chunks/chunk-QAJH4RJQ.js +1 -0
  30. package/dist/_chunks/chunk-VDNNFVTZ.js +3 -0
  31. package/dist/_chunks/chunk-VPYAXWXY.js +1 -0
  32. package/dist/_chunks/chunk-WFRRNWO5.js +1 -0
  33. package/dist/_chunks/connect-5YMO6MAR.js +1 -0
  34. package/dist/_chunks/device-management-2OTGEBJQ.js +1 -0
  35. package/dist/_chunks/device-preflight-XPHFZGLO.js +1 -0
  36. package/dist/_chunks/devices-inventory-VWNTU5TE.js +1 -0
  37. package/dist/_chunks/devices-main-VQ4APRVS.js +1 -0
  38. package/dist/_chunks/files-TTIQ7LYJ.js +1 -0
  39. package/dist/_chunks/host-main-H7DPLV7B.js +1 -0
  40. package/dist/_chunks/http-profile-MNJX6OXO.js +1 -0
  41. package/dist/_chunks/library-main-SAC3V2ML.js +1 -0
  42. package/dist/_chunks/local-main-D6B3APK6.js +1 -0
  43. package/dist/_chunks/local-mcp-ONCANLPH.js +1 -0
  44. package/dist/_chunks/main-PW6HB3NC.js +2 -0
  45. package/dist/_chunks/mcp-ZIGBYFUW.js +1 -0
  46. package/dist/_chunks/oauth-HC6TI7HB.js +1 -0
  47. package/dist/_chunks/render-main-GYWKP72O.js +1 -0
  48. package/dist/_chunks/source-import-BC5GNCUZ.js +1 -0
  49. package/dist/_chunks/src-R6DNU336.js +1 -0
  50. package/dist/_chunks/stdio-main-RIJS5REB.js +1 -0
  51. package/dist/_chunks/workspace-main-GNSKHKBG.js +1 -0
  52. package/dist/_types/cli/local/desktop-channel.d.ts +18 -0
  53. package/dist/_types/cli/local/desktop-contract.d.ts +2176 -0
  54. package/dist/_types/cli/local/desktop-device-contract.d.ts +779 -0
  55. package/dist/_types/cli/local/desktop-device-navigation.d.ts +3 -0
  56. package/dist/_types/cli/local/desktop-device-owner.d.ts +244 -0
  57. package/dist/_types/cli/local/desktop-device-state.d.ts +397 -0
  58. package/dist/_types/cli/local/desktop-library.d.ts +853 -0
  59. package/dist/_types/cli/local/desktop-node.d.ts +1 -0
  60. package/dist/_types/cli/local/desktop-owner.d.ts +766 -0
  61. package/dist/_types/cli/local/ledger.d.ts +363 -0
  62. package/dist/_types/cli/local/manager.d.ts +1695 -0
  63. package/dist/_types/cli/local/mcp-tools.d.ts +660 -0
  64. package/dist/_types/cli/local/releases.d.ts +123 -0
  65. package/dist/_types/cli/local-management.d.ts +16 -0
  66. package/dist/_types/cli/local-navigation.d.ts +4 -0
  67. package/dist/_types/contracts/accepted-shot.d.ts +27 -0
  68. package/dist/_types/contracts/accepted-visual-source.d.ts +120 -0
  69. package/dist/_types/contracts/agent-execution-lifecycle.d.ts +749 -0
  70. package/dist/_types/contracts/agent-execution-oauth.d.ts +71 -0
  71. package/dist/_types/contracts/agent-execution-registration.d.ts +240 -0
  72. package/dist/_types/contracts/agent-execution-selection.d.ts +107 -0
  73. package/dist/_types/contracts/agent-host-execution.d.ts +706 -0
  74. package/dist/_types/contracts/agent-host-generic-transport.d.ts +12 -0
  75. package/dist/_types/contracts/agent-host.d.ts +226 -0
  76. package/dist/_types/contracts/artifact-discovery.d.ts +242 -0
  77. package/dist/_types/contracts/artifact.d.ts +188 -0
  78. package/dist/_types/contracts/audio.d.ts +335 -0
  79. package/dist/_types/contracts/brief.d.ts +178 -0
  80. package/dist/_types/contracts/caption-render.d.ts +20 -0
  81. package/dist/_types/contracts/caption-transcript.d.ts +102 -0
  82. package/dist/_types/contracts/captions.d.ts +420 -0
  83. package/dist/_types/contracts/clip-framing.d.ts +14 -0
  84. package/dist/_types/contracts/clip-transition.d.ts +6 -0
  85. package/dist/_types/contracts/composition-authoring-guide.d.ts +160 -0
  86. package/dist/_types/contracts/composition-authoring.d.ts +744 -0
  87. package/dist/_types/contracts/composition-finding-locality.d.ts +24 -0
  88. package/dist/_types/contracts/composition-frame-render.d.ts +226 -0
  89. package/dist/_types/contracts/composition-making.d.ts +390 -0
  90. package/dist/_types/contracts/composition-observation.d.ts +239 -0
  91. package/dist/_types/contracts/composition-render-base.d.ts +293 -0
  92. package/dist/_types/contracts/composition-render-observation.d.ts +278 -0
  93. package/dist/_types/contracts/composition-render.d.ts +406 -0
  94. package/dist/_types/contracts/composition-repair.d.ts +451 -0
  95. package/dist/_types/contracts/composition-source-review.d.ts +1042 -0
  96. package/dist/_types/contracts/consistency-profile.d.ts +845 -0
  97. package/dist/_types/contracts/continuity-evaluation.d.ts +48 -0
  98. package/dist/_types/contracts/delivery-completion.d.ts +210 -0
  99. package/dist/_types/contracts/delivery-manifest.d.ts +72 -0
  100. package/dist/_types/contracts/delivery-operations.d.ts +1151 -0
  101. package/dist/_types/contracts/delivery-output-profile.d.ts +12 -0
  102. package/dist/_types/contracts/delivery-summary.d.ts +220 -0
  103. package/dist/_types/contracts/delivery-validation.d.ts +206 -0
  104. package/dist/_types/contracts/device-render.d.ts +77 -0
  105. package/dist/_types/contracts/director-proposal.d.ts +1067 -0
  106. package/dist/_types/contracts/editor-intelligence.d.ts +3374 -0
  107. package/dist/_types/contracts/exploration-recommendation.d.ts +519 -0
  108. package/dist/_types/contracts/external-agent-access.d.ts +93 -0
  109. package/dist/_types/contracts/final-ready.d.ts +301 -0
  110. package/dist/_types/contracts/final-render-profile.d.ts +59 -0
  111. package/dist/_types/contracts/final-render.d.ts +2810 -0
  112. package/dist/_types/contracts/foundation.d.ts +1 -0
  113. package/dist/_types/contracts/generation-contract.d.ts +268 -0
  114. package/dist/_types/contracts/generation-cost.d.ts +70 -0
  115. package/dist/_types/contracts/health.d.ts +6 -0
  116. package/dist/_types/contracts/human-identity.d.ts +162 -0
  117. package/dist/_types/contracts/hyperframe-profile.d.ts +5 -0
  118. package/dist/_types/contracts/ids.d.ts +41 -0
  119. package/dist/_types/contracts/index.d.ts +126 -0
  120. package/dist/_types/contracts/interface/common.d.ts +56 -0
  121. package/dist/_types/contracts/interface/execution-output.d.ts +99 -0
  122. package/dist/_types/contracts/interface/index.d.ts +7 -0
  123. package/dist/_types/contracts/interface/media-output.d.ts +90 -0
  124. package/dist/_types/contracts/interface/operation.d.ts +61 -0
  125. package/dist/_types/contracts/interface/output.d.ts +15 -0
  126. package/dist/_types/contracts/interface/production-snapshot.d.ts +654 -0
  127. package/dist/_types/contracts/interface/query.d.ts +315 -0
  128. package/dist/_types/contracts/keyframe-generation.d.ts +378 -0
  129. package/dist/_types/contracts/keyframe-reference.d.ts +31 -0
  130. package/dist/_types/contracts/keyframe-review.d.ts +753 -0
  131. package/dist/_types/contracts/lifecycle-event-projections.d.ts +191 -0
  132. package/dist/_types/contracts/lifecycle-events.d.ts +156 -0
  133. package/dist/_types/contracts/listening-evidence.d.ts +37 -0
  134. package/dist/_types/contracts/local-execution/agent-context.d.ts +365 -0
  135. package/dist/_types/contracts/local-execution/agent-evidence.d.ts +79 -0
  136. package/dist/_types/contracts/local-execution/agent-grant.d.ts +31 -0
  137. package/dist/_types/contracts/local-execution/agent-review.d.ts +992 -0
  138. package/dist/_types/contracts/local-execution/canonical.d.ts +2 -0
  139. package/dist/_types/contracts/local-execution/common.d.ts +49 -0
  140. package/dist/_types/contracts/local-execution/completion.d.ts +124 -0
  141. package/dist/_types/contracts/local-execution/components.d.ts +45 -0
  142. package/dist/_types/contracts/local-execution/descriptor.d.ts +38 -0
  143. package/dist/_types/contracts/local-execution/device-authority.d.ts +31 -0
  144. package/dist/_types/contracts/local-execution/device-inventory.d.ts +76 -0
  145. package/dist/_types/contracts/local-execution/device-workspace.d.ts +11 -0
  146. package/dist/_types/contracts/local-execution/device.d.ts +102 -0
  147. package/dist/_types/contracts/local-execution/external-generation.d.ts +199 -0
  148. package/dist/_types/contracts/local-execution/index.d.ts +37 -0
  149. package/dist/_types/contracts/local-execution/ipc.d.ts +3730 -0
  150. package/dist/_types/contracts/local-execution/library-command.d.ts +620 -0
  151. package/dist/_types/contracts/local-execution/library-result.d.ts +408 -0
  152. package/dist/_types/contracts/local-execution/library.d.ts +873 -0
  153. package/dist/_types/contracts/local-execution/lifecycle.d.ts +519 -0
  154. package/dist/_types/contracts/local-execution/local-navigation.d.ts +929 -0
  155. package/dist/_types/contracts/local-execution/management.d.ts +400 -0
  156. package/dist/_types/contracts/local-execution/media-recipe.d.ts +207 -0
  157. package/dist/_types/contracts/local-execution/media-validation-request.d.ts +232 -0
  158. package/dist/_types/contracts/local-execution/media-validation.d.ts +262 -0
  159. package/dist/_types/contracts/local-execution/object-transfer.d.ts +155 -0
  160. package/dist/_types/contracts/local-execution/offline.d.ts +59 -0
  161. package/dist/_types/contracts/local-execution/preview.d.ts +243 -0
  162. package/dist/_types/contracts/local-execution/processor-capability.d.ts +39 -0
  163. package/dist/_types/contracts/local-execution/processor-direct.d.ts +290 -0
  164. package/dist/_types/contracts/local-execution/processor-recipes.d.ts +1122 -0
  165. package/dist/_types/contracts/local-execution/processor.d.ts +6173 -0
  166. package/dist/_types/contracts/local-execution/project-source-direct.d.ts +201 -0
  167. package/dist/_types/contracts/local-execution/qwen-tts.d.ts +31 -0
  168. package/dist/_types/contracts/local-execution/recognition.d.ts +170 -0
  169. package/dist/_types/contracts/local-execution/speech.d.ts +95 -0
  170. package/dist/_types/contracts/local-execution/tool-selection.d.ts +55 -0
  171. package/dist/_types/contracts/local-execution/whisper.d.ts +24 -0
  172. package/dist/_types/contracts/local-execution/work.d.ts +149 -0
  173. package/dist/_types/contracts/local-execution/workspace.d.ts +141 -0
  174. package/dist/_types/contracts/matrix-parameter-rule.d.ts +23 -0
  175. package/dist/_types/contracts/media-category.d.ts +11 -0
  176. package/dist/_types/contracts/media-export.d.ts +23 -0
  177. package/dist/_types/contracts/media-observation.d.ts +2080 -0
  178. package/dist/_types/contracts/model-capability-matrix.d.ts +118 -0
  179. package/dist/_types/contracts/native-tool-authority-failure.d.ts +38 -0
  180. package/dist/_types/contracts/native-tool-authority.d.ts +110 -0
  181. package/dist/_types/contracts/native-tool-execution.d.ts +287 -0
  182. package/dist/_types/contracts/native-tool-gateway.d.ts +41 -0
  183. package/dist/_types/contracts/native-video-audio.d.ts +62 -0
  184. package/dist/_types/contracts/navigation-context.d.ts +253 -0
  185. package/dist/_types/contracts/navigation-groups.d.ts +51 -0
  186. package/dist/_types/contracts/navigation.d.ts +248 -0
  187. package/dist/_types/contracts/observation-profile.d.ts +99 -0
  188. package/dist/_types/contracts/planning-input.d.ts +177 -0
  189. package/dist/_types/contracts/principal.d.ts +26 -0
  190. package/dist/_types/contracts/production-creation.d.ts +66 -0
  191. package/dist/_types/contracts/production-termination.d.ts +51 -0
  192. package/dist/_types/contracts/production.d.ts +111 -0
  193. package/dist/_types/contracts/programmatic-composition.d.ts +762 -0
  194. package/dist/_types/contracts/programmatic-exploration.d.ts +1822 -0
  195. package/dist/_types/contracts/programmatic-video-review.d.ts +894 -0
  196. package/dist/_types/contracts/project-library.d.ts +173 -0
  197. package/dist/_types/contracts/project.d.ts +93 -0
  198. package/dist/_types/contracts/provider-catalog.d.ts +421 -0
  199. package/dist/_types/contracts/provider-models.d.ts +3388 -0
  200. package/dist/_types/contracts/provider.d.ts +207 -0
  201. package/dist/_types/contracts/reference-preview.d.ts +55 -0
  202. package/dist/_types/contracts/repair-lifecycle.d.ts +2564 -0
  203. package/dist/_types/contracts/repair-plan.d.ts +646 -0
  204. package/dist/_types/contracts/repair-strategy.d.ts +1432 -0
  205. package/dist/_types/contracts/review-intelligence-evidence.d.ts +136 -0
  206. package/dist/_types/contracts/review-intelligence-final-output.d.ts +883 -0
  207. package/dist/_types/contracts/review-intelligence.d.ts +573 -0
  208. package/dist/_types/contracts/review1-repair-source.d.ts +452 -0
  209. package/dist/_types/contracts/review1-repair-strategy.d.ts +491 -0
  210. package/dist/_types/contracts/review1-repair.d.ts +36 -0
  211. package/dist/_types/contracts/rough-cut-manifest.d.ts +352 -0
  212. package/dist/_types/contracts/rough-cut-profile.d.ts +46 -0
  213. package/dist/_types/contracts/rough-cut-review.d.ts +459 -0
  214. package/dist/_types/contracts/rough-cut.d.ts +1260 -0
  215. package/dist/_types/contracts/scene-shot-plan.d.ts +882 -0
  216. package/dist/_types/contracts/sdk-discovery.d.ts +66 -0
  217. package/dist/_types/contracts/shot-direction.d.ts +113 -0
  218. package/dist/_types/contracts/shot-preparation-basis.d.ts +356 -0
  219. package/dist/_types/contracts/shot-preparation.d.ts +2285 -0
  220. package/dist/_types/contracts/shot-sound-instruction.d.ts +58 -0
  221. package/dist/_types/contracts/sound-making-plan.d.ts +1586 -0
  222. package/dist/_types/contracts/source-sound-policy.d.ts +10 -0
  223. package/dist/_types/contracts/source-workspace.d.ts +62 -0
  224. package/dist/_types/contracts/speech-cost.d.ts +81 -0
  225. package/dist/_types/contracts/speech.d.ts +573 -0
  226. package/dist/_types/contracts/story.d.ts +98 -0
  227. package/dist/_types/contracts/temporal-evidence-operation.d.ts +380 -0
  228. package/dist/_types/contracts/temporal-evidence-reference.d.ts +18 -0
  229. package/dist/_types/contracts/temporal-evidence.d.ts +248 -0
  230. package/dist/_types/contracts/tenant.d.ts +7 -0
  231. package/dist/_types/contracts/timeline-audio.d.ts +98 -0
  232. package/dist/_types/contracts/timeline-graphics.d.ts +80 -0
  233. package/dist/_types/contracts/timeline-manifest.d.ts +704 -0
  234. package/dist/_types/contracts/timeline-source-sound.d.ts +353 -0
  235. package/dist/_types/contracts/timeline-v2.d.ts +1267 -0
  236. package/dist/_types/contracts/timeline-version-reader.d.ts +2955 -0
  237. package/dist/_types/contracts/timeline-visual-layers.d.ts +1249 -0
  238. package/dist/_types/contracts/timeline.d.ts +142 -0
  239. package/dist/_types/contracts/transcription.d.ts +80 -0
  240. package/dist/_types/contracts/video-generation.d.ts +676 -0
  241. package/dist/_types/contracts/video-review.d.ts +1871 -0
  242. package/dist/_types/contracts/visual-exploration.d.ts +1586 -0
  243. package/dist/_types/contracts/visual-layer-render.d.ts +2820 -0
  244. package/dist/_types/contracts/visual-layer.d.ts +112 -0
  245. package/dist/_types/contracts/visual-sequence.d.ts +143 -0
  246. package/dist/_types/contracts/workspace.d.ts +32 -0
  247. package/dist/_types/contracts/writer-proposal.d.ts +268 -0
  248. package/dist/_types/sdk/errors.d.ts +14 -0
  249. package/dist/_types/sdk/local-runtime/components.d.ts +2 -0
  250. package/dist/_types/sdk/local-runtime/device-client.d.ts +187 -0
  251. package/dist/_types/sdk/local-runtime/library.d.ts +268 -0
  252. package/dist/_types/sdk/local-runtime/workspace.d.ts +186 -0
  253. package/dist/_types/sdk/local-runtime-client.d.ts +2616 -0
  254. package/dist/entry.js +2 -0
  255. package/dist/local-management.d.ts +1 -0
  256. package/dist/local-management.js +1 -0
  257. package/dist/local-navigation.d.ts +1 -0
  258. package/dist/local-navigation.js +1 -0
  259. package/dist/native/Bootstrap.ps1 +90 -0
  260. package/dist/native/JobNative.cs +137 -0
  261. package/dist/native/JobRunner.cs +381 -0
  262. package/dist/native/NativeMain.cs +161 -0
  263. package/dist/native/PipeBridge.cs +260 -0
  264. package/dist/native/PrivateAccess.cs +152 -0
  265. package/package.json +27 -3
  266. package/README.md +0 -3
@@ -0,0 +1,1695 @@
1
+ import { z } from "zod";
2
+ import { type LocalUpdatePlan } from "../../sdk/local-runtime-client.js";
3
+ import { InstallationLedger } from "./ledger.js";
4
+ import { type ReleaseTrust } from "./releases.js";
5
+ export declare class LocalInstallationManager {
6
+ readonly ledger: InstallationLedger;
7
+ private constructor();
8
+ static open(root: string): Promise<LocalInstallationManager>;
9
+ /** 为只读诊断打开已有安装,不初始化任何安装资源。 */
10
+ static openExisting(root: string): Promise<LocalInstallationManager | null>;
11
+ configure(raw: unknown, options?: {
12
+ ifAbsent?: boolean;
13
+ }): Promise<{
14
+ configured: boolean;
15
+ }>;
16
+ configuration(): Promise<{
17
+ stateDirectory: string;
18
+ catalogueUrl: string | null;
19
+ publicKeyFile: string | null;
20
+ cloudConfigFile: string | null;
21
+ notifications: boolean;
22
+ rejectedVersions: string[];
23
+ }>;
24
+ status(): Promise<{
25
+ protocol: string;
26
+ revision: number;
27
+ activeVersion: string | null;
28
+ running: null;
29
+ phase: string;
30
+ nextActions: {
31
+ surface: string;
32
+ operation: string;
33
+ availability: string;
34
+ reason: string;
35
+ }[];
36
+ entryPath?: never;
37
+ installOwner?: never;
38
+ } | {
39
+ protocol: string;
40
+ revision: number;
41
+ activeVersion: string | null;
42
+ entryPath: string | null;
43
+ installOwner: string;
44
+ phase: string;
45
+ running: unknown;
46
+ nextActions: {
47
+ surface: string;
48
+ operation: string;
49
+ availability: string;
50
+ reason: string;
51
+ }[];
52
+ }>;
53
+ reject(version: string): Promise<{
54
+ rejected: boolean;
55
+ version: string;
56
+ selectedVersion: string | null;
57
+ }>;
58
+ check(): Promise<{
59
+ installation: {
60
+ protocol: string;
61
+ revision: number;
62
+ activeVersion: string | null;
63
+ running: null;
64
+ phase: string;
65
+ nextActions: {
66
+ surface: string;
67
+ operation: string;
68
+ availability: string;
69
+ reason: string;
70
+ }[];
71
+ entryPath?: never;
72
+ installOwner?: never;
73
+ } | {
74
+ protocol: string;
75
+ revision: number;
76
+ activeVersion: string | null;
77
+ entryPath: string | null;
78
+ installOwner: string;
79
+ phase: string;
80
+ running: unknown;
81
+ nextActions: {
82
+ surface: string;
83
+ operation: string;
84
+ availability: string;
85
+ reason: string;
86
+ }[];
87
+ };
88
+ channel: string;
89
+ available: never[];
90
+ notifications: boolean;
91
+ rejectedVersions: string[];
92
+ catalogueFingerprint?: never;
93
+ } | {
94
+ installation: {
95
+ protocol: string;
96
+ revision: number;
97
+ activeVersion: string | null;
98
+ running: null;
99
+ phase: string;
100
+ nextActions: {
101
+ surface: string;
102
+ operation: string;
103
+ availability: string;
104
+ reason: string;
105
+ }[];
106
+ entryPath?: never;
107
+ installOwner?: never;
108
+ } | {
109
+ protocol: string;
110
+ revision: number;
111
+ activeVersion: string | null;
112
+ entryPath: string | null;
113
+ installOwner: string;
114
+ phase: string;
115
+ running: unknown;
116
+ nextActions: {
117
+ surface: string;
118
+ operation: string;
119
+ availability: string;
120
+ reason: string;
121
+ }[];
122
+ };
123
+ catalogueFingerprint: string;
124
+ available: {
125
+ protocol: "NVS_RUNTIME_DESCRIPTOR_V1";
126
+ version: string;
127
+ node: {
128
+ major: 24;
129
+ minMinor: 12;
130
+ };
131
+ platform: {
132
+ os: "darwin" | "linux" | "win32";
133
+ architecture: "x64" | "arm64";
134
+ };
135
+ ipcProtocol: "NVS_LOCAL_IPC_V1";
136
+ workProtocol: "NVS_LOCAL_WORK_V1" | "NVS_LOCAL_WORK_V2";
137
+ journalSchema: 1;
138
+ rendererDigest: string;
139
+ profileDigest: string;
140
+ compatibleRenderers?: {
141
+ rendererDigest: string;
142
+ profileDigest: string;
143
+ }[] | undefined;
144
+ }[];
145
+ notifications: boolean;
146
+ rejectedVersions: string[];
147
+ channel?: never;
148
+ }>;
149
+ prepare(version: string, choice?: unknown): Promise<{
150
+ protocol: "NVS_LOCAL_UPDATE_PLAN_V1";
151
+ planId: string;
152
+ installationRevision: number;
153
+ runtimeRevision: number | null;
154
+ catalogueFingerprint: string | null;
155
+ release: {
156
+ descriptor: {
157
+ protocol: "NVS_RUNTIME_DESCRIPTOR_V1";
158
+ version: string;
159
+ node: {
160
+ major: 24;
161
+ minMinor: 12;
162
+ };
163
+ platform: {
164
+ os: "darwin" | "linux" | "win32";
165
+ architecture: "x64" | "arm64";
166
+ };
167
+ ipcProtocol: "NVS_LOCAL_IPC_V1";
168
+ workProtocol: "NVS_LOCAL_WORK_V1" | "NVS_LOCAL_WORK_V2";
169
+ journalSchema: 1;
170
+ rendererDigest: string;
171
+ profileDigest: string;
172
+ compatibleRenderers?: {
173
+ rendererDigest: string;
174
+ profileDigest: string;
175
+ }[] | undefined;
176
+ };
177
+ package: {
178
+ url: string;
179
+ byteSize: number;
180
+ sha512: string;
181
+ };
182
+ tools: {
183
+ ffmpeg: {
184
+ url: string;
185
+ byteSize: number;
186
+ sha512: string;
187
+ sha256: string;
188
+ };
189
+ ffprobe: {
190
+ url: string;
191
+ byteSize: number;
192
+ sha512: string;
193
+ sha256: string;
194
+ };
195
+ } | null;
196
+ resources?: {
197
+ captions: {
198
+ url: string;
199
+ sha512: string;
200
+ byteSize: number;
201
+ };
202
+ } | undefined;
203
+ } | {
204
+ descriptor: {
205
+ protocol: "NVS_RUNTIME_DESCRIPTOR_V1";
206
+ version: string;
207
+ node: {
208
+ major: 24;
209
+ minMinor: 12;
210
+ };
211
+ platform: {
212
+ os: "darwin" | "linux" | "win32";
213
+ architecture: "x64" | "arm64";
214
+ };
215
+ ipcProtocol: "NVS_LOCAL_IPC_V1";
216
+ workProtocol: "NVS_LOCAL_WORK_V1" | "NVS_LOCAL_WORK_V2";
217
+ journalSchema: 1;
218
+ rendererDigest: string;
219
+ profileDigest: string;
220
+ compatibleRenderers?: {
221
+ rendererDigest: string;
222
+ profileDigest: string;
223
+ }[] | undefined;
224
+ };
225
+ tools: {
226
+ ffmpeg: {
227
+ url: string;
228
+ byteSize: number;
229
+ sha512: string;
230
+ sha256: string;
231
+ };
232
+ ffprobe: {
233
+ url: string;
234
+ byteSize: number;
235
+ sha512: string;
236
+ sha256: string;
237
+ };
238
+ } | null;
239
+ package: {
240
+ byteSize: number;
241
+ sha512: string;
242
+ source: "CLI";
243
+ };
244
+ resources?: {
245
+ captions: {
246
+ url: string;
247
+ sha512: string;
248
+ byteSize: number;
249
+ };
250
+ } | undefined;
251
+ };
252
+ fingerprint: string;
253
+ createdAt: string;
254
+ expiresAt: string;
255
+ trustFingerprint?: string | undefined;
256
+ toolSelection?: {
257
+ mode: "MANAGED";
258
+ } | {
259
+ ffmpeg: {
260
+ path: string;
261
+ digest: string;
262
+ };
263
+ ffprobe: {
264
+ path: string;
265
+ digest: string;
266
+ };
267
+ mode: "INSTALLED";
268
+ compositionBrowser?: {
269
+ path: string;
270
+ digest: string;
271
+ } | undefined;
272
+ whisper?: {
273
+ binaryPath: string;
274
+ binarySha256: string;
275
+ modelPath: string;
276
+ } | undefined;
277
+ captionAssetsDirectory?: string | undefined;
278
+ } | undefined;
279
+ }>;
280
+ /** CLI 自带代码进入同一安装账本,不要求单独执行代码渠道。 */
281
+ prepareBundled(version: string, choice?: unknown): Promise<{
282
+ protocol: "NVS_LOCAL_UPDATE_PLAN_V1";
283
+ planId: string;
284
+ installationRevision: number;
285
+ runtimeRevision: number | null;
286
+ catalogueFingerprint: string | null;
287
+ release: {
288
+ descriptor: {
289
+ protocol: "NVS_RUNTIME_DESCRIPTOR_V1";
290
+ version: string;
291
+ node: {
292
+ major: 24;
293
+ minMinor: 12;
294
+ };
295
+ platform: {
296
+ os: "darwin" | "linux" | "win32";
297
+ architecture: "x64" | "arm64";
298
+ };
299
+ ipcProtocol: "NVS_LOCAL_IPC_V1";
300
+ workProtocol: "NVS_LOCAL_WORK_V1" | "NVS_LOCAL_WORK_V2";
301
+ journalSchema: 1;
302
+ rendererDigest: string;
303
+ profileDigest: string;
304
+ compatibleRenderers?: {
305
+ rendererDigest: string;
306
+ profileDigest: string;
307
+ }[] | undefined;
308
+ };
309
+ package: {
310
+ url: string;
311
+ byteSize: number;
312
+ sha512: string;
313
+ };
314
+ tools: {
315
+ ffmpeg: {
316
+ url: string;
317
+ byteSize: number;
318
+ sha512: string;
319
+ sha256: string;
320
+ };
321
+ ffprobe: {
322
+ url: string;
323
+ byteSize: number;
324
+ sha512: string;
325
+ sha256: string;
326
+ };
327
+ } | null;
328
+ resources?: {
329
+ captions: {
330
+ url: string;
331
+ sha512: string;
332
+ byteSize: number;
333
+ };
334
+ } | undefined;
335
+ } | {
336
+ descriptor: {
337
+ protocol: "NVS_RUNTIME_DESCRIPTOR_V1";
338
+ version: string;
339
+ node: {
340
+ major: 24;
341
+ minMinor: 12;
342
+ };
343
+ platform: {
344
+ os: "darwin" | "linux" | "win32";
345
+ architecture: "x64" | "arm64";
346
+ };
347
+ ipcProtocol: "NVS_LOCAL_IPC_V1";
348
+ workProtocol: "NVS_LOCAL_WORK_V1" | "NVS_LOCAL_WORK_V2";
349
+ journalSchema: 1;
350
+ rendererDigest: string;
351
+ profileDigest: string;
352
+ compatibleRenderers?: {
353
+ rendererDigest: string;
354
+ profileDigest: string;
355
+ }[] | undefined;
356
+ };
357
+ tools: {
358
+ ffmpeg: {
359
+ url: string;
360
+ byteSize: number;
361
+ sha512: string;
362
+ sha256: string;
363
+ };
364
+ ffprobe: {
365
+ url: string;
366
+ byteSize: number;
367
+ sha512: string;
368
+ sha256: string;
369
+ };
370
+ } | null;
371
+ package: {
372
+ byteSize: number;
373
+ sha512: string;
374
+ source: "CLI";
375
+ };
376
+ resources?: {
377
+ captions: {
378
+ url: string;
379
+ sha512: string;
380
+ byteSize: number;
381
+ };
382
+ } | undefined;
383
+ };
384
+ fingerprint: string;
385
+ createdAt: string;
386
+ expiresAt: string;
387
+ trustFingerprint?: string | undefined;
388
+ toolSelection?: {
389
+ mode: "MANAGED";
390
+ } | {
391
+ ffmpeg: {
392
+ path: string;
393
+ digest: string;
394
+ };
395
+ ffprobe: {
396
+ path: string;
397
+ digest: string;
398
+ };
399
+ mode: "INSTALLED";
400
+ compositionBrowser?: {
401
+ path: string;
402
+ digest: string;
403
+ } | undefined;
404
+ whisper?: {
405
+ binaryPath: string;
406
+ binarySha256: string;
407
+ modelPath: string;
408
+ } | undefined;
409
+ captionAssetsDirectory?: string | undefined;
410
+ } | undefined;
411
+ }>;
412
+ plan(id: string): Promise<{
413
+ protocol: "NVS_LOCAL_UPDATE_PLAN_V1";
414
+ planId: string;
415
+ installationRevision: number;
416
+ runtimeRevision: number | null;
417
+ catalogueFingerprint: string | null;
418
+ release: {
419
+ descriptor: {
420
+ protocol: "NVS_RUNTIME_DESCRIPTOR_V1";
421
+ version: string;
422
+ node: {
423
+ major: 24;
424
+ minMinor: 12;
425
+ };
426
+ platform: {
427
+ os: "darwin" | "linux" | "win32";
428
+ architecture: "x64" | "arm64";
429
+ };
430
+ ipcProtocol: "NVS_LOCAL_IPC_V1";
431
+ workProtocol: "NVS_LOCAL_WORK_V1" | "NVS_LOCAL_WORK_V2";
432
+ journalSchema: 1;
433
+ rendererDigest: string;
434
+ profileDigest: string;
435
+ compatibleRenderers?: {
436
+ rendererDigest: string;
437
+ profileDigest: string;
438
+ }[] | undefined;
439
+ };
440
+ package: {
441
+ url: string;
442
+ byteSize: number;
443
+ sha512: string;
444
+ };
445
+ tools: {
446
+ ffmpeg: {
447
+ url: string;
448
+ byteSize: number;
449
+ sha512: string;
450
+ sha256: string;
451
+ };
452
+ ffprobe: {
453
+ url: string;
454
+ byteSize: number;
455
+ sha512: string;
456
+ sha256: string;
457
+ };
458
+ } | null;
459
+ resources?: {
460
+ captions: {
461
+ url: string;
462
+ sha512: string;
463
+ byteSize: number;
464
+ };
465
+ } | undefined;
466
+ } | {
467
+ descriptor: {
468
+ protocol: "NVS_RUNTIME_DESCRIPTOR_V1";
469
+ version: string;
470
+ node: {
471
+ major: 24;
472
+ minMinor: 12;
473
+ };
474
+ platform: {
475
+ os: "darwin" | "linux" | "win32";
476
+ architecture: "x64" | "arm64";
477
+ };
478
+ ipcProtocol: "NVS_LOCAL_IPC_V1";
479
+ workProtocol: "NVS_LOCAL_WORK_V1" | "NVS_LOCAL_WORK_V2";
480
+ journalSchema: 1;
481
+ rendererDigest: string;
482
+ profileDigest: string;
483
+ compatibleRenderers?: {
484
+ rendererDigest: string;
485
+ profileDigest: string;
486
+ }[] | undefined;
487
+ };
488
+ tools: {
489
+ ffmpeg: {
490
+ url: string;
491
+ byteSize: number;
492
+ sha512: string;
493
+ sha256: string;
494
+ };
495
+ ffprobe: {
496
+ url: string;
497
+ byteSize: number;
498
+ sha512: string;
499
+ sha256: string;
500
+ };
501
+ } | null;
502
+ package: {
503
+ byteSize: number;
504
+ sha512: string;
505
+ source: "CLI";
506
+ };
507
+ resources?: {
508
+ captions: {
509
+ url: string;
510
+ sha512: string;
511
+ byteSize: number;
512
+ };
513
+ } | undefined;
514
+ };
515
+ fingerprint: string;
516
+ createdAt: string;
517
+ expiresAt: string;
518
+ trustFingerprint?: string | undefined;
519
+ toolSelection?: {
520
+ mode: "MANAGED";
521
+ } | {
522
+ ffmpeg: {
523
+ path: string;
524
+ digest: string;
525
+ };
526
+ ffprobe: {
527
+ path: string;
528
+ digest: string;
529
+ };
530
+ mode: "INSTALLED";
531
+ compositionBrowser?: {
532
+ path: string;
533
+ digest: string;
534
+ } | undefined;
535
+ whisper?: {
536
+ binaryPath: string;
537
+ binarySha256: string;
538
+ modelPath: string;
539
+ } | undefined;
540
+ captionAssetsDirectory?: string | undefined;
541
+ } | undefined;
542
+ }>;
543
+ private transition;
544
+ apply(id: string, approval: string): Promise<{
545
+ activated: boolean;
546
+ revision: number;
547
+ version: string;
548
+ }>;
549
+ private startSlot;
550
+ start(): Promise<{
551
+ clients: {
552
+ renewed: number;
553
+ blocked: number;
554
+ };
555
+ updateNotice: unknown;
556
+ runtimeRevision: number;
557
+ descriptor: {
558
+ protocol: "NVS_RUNTIME_DESCRIPTOR_V1";
559
+ version: string;
560
+ node: {
561
+ major: 24;
562
+ minMinor: 12;
563
+ };
564
+ platform: {
565
+ os: "darwin" | "linux" | "win32";
566
+ architecture: "x64" | "arm64";
567
+ };
568
+ ipcProtocol: "NVS_LOCAL_IPC_V1";
569
+ workProtocol: "NVS_LOCAL_WORK_V1" | "NVS_LOCAL_WORK_V2";
570
+ journalSchema: 1;
571
+ rendererDigest: string;
572
+ profileDigest: string;
573
+ compatibleRenderers?: {
574
+ rendererDigest: string;
575
+ profileDigest: string;
576
+ }[] | undefined;
577
+ };
578
+ activeProcesses: number;
579
+ pendingExecutions: number;
580
+ pendingRequests: number;
581
+ pendingRenderers: string[];
582
+ }>;
583
+ stop(): Promise<{
584
+ plan: {
585
+ protocol: "NVS_LOCAL_AGENT_REVIEW_V1" | "NVS_LOCAL_AGENT_REVIEW_V2";
586
+ id: string;
587
+ grantFingerprint: string;
588
+ snapshot: {
589
+ basis: {
590
+ scope: {
591
+ tenantId: string & z.core.$brand<"TenantId">;
592
+ projectId: string & z.core.$brand<"ProjectId">;
593
+ productionId: string & z.core.$brand<"ProductionId">;
594
+ };
595
+ target: {
596
+ kind: "IMAGE";
597
+ generationId: string;
598
+ } | {
599
+ kind: "VIDEO";
600
+ generationId: string;
601
+ } | {
602
+ kind: "ROUGH_CUT";
603
+ renderId: string;
604
+ } | {
605
+ kind: "PROGRAMMATIC";
606
+ renderId: string;
607
+ };
608
+ contextFingerprint: string;
609
+ };
610
+ productionRevision: number;
611
+ reviewVersion: number;
612
+ executionClass: "LIVE" | "TEST_ONLY";
613
+ media: {
614
+ artifactId: string;
615
+ representationId: string;
616
+ checksumSha256: string;
617
+ };
618
+ requirements: ({
619
+ key: string;
620
+ dimension: "TRANSITION" | "STYLE" | "PRODUCT_PRESENTATION" | "CANONICAL_FACT" | "NARRATIVE" | "PACING" | "REPETITION" | "TECHNICAL";
621
+ expected: string;
622
+ enforcement: "LOCKED" | "REQUIRED" | "PREFERRED";
623
+ scope: "TRANSITION" | "PRODUCTION";
624
+ interval: {
625
+ startMs: number;
626
+ endMs: number;
627
+ };
628
+ shotIds: string[];
629
+ continuity?: {
630
+ kind: "STATE";
631
+ mode: "PRESERVE" | "PLANNED_TRANSITIONS";
632
+ entry: string;
633
+ exit: string;
634
+ changes?: {
635
+ atPermille: number;
636
+ from: string;
637
+ to: string;
638
+ reason: string;
639
+ }[] | undefined;
640
+ } | {
641
+ kind: "TIME";
642
+ mode: "MONOTONIC" | "PLANNED_JUMPS";
643
+ entryMs: number;
644
+ exitMs: number;
645
+ jumps?: {
646
+ atPermille: number;
647
+ fromMs: number;
648
+ toMs: number;
649
+ reason: string;
650
+ }[] | undefined;
651
+ } | undefined;
652
+ consistencyScale?: "INTRA_SHOT" | "INTER_SHOT" | "PRODUCTION" | undefined;
653
+ consistencyFamily?: "PRODUCT_IDENTITY" | "CHARACTER_IDENTITY" | "WARDROBE" | "LOCATION" | "STYLE" | "BOUNDARY_CONTINUITY" | undefined;
654
+ consistencySubject?: {
655
+ id: string;
656
+ kind: "CHARACTER" | "VOICE";
657
+ displayName: string;
658
+ facts: {
659
+ dimension: string;
660
+ value: string;
661
+ }[];
662
+ master: {
663
+ artifactId: string & z.core.$brand<"ArtifactId">;
664
+ representationId: string & z.core.$brand<"ArtifactRepresentationId">;
665
+ checksumSha256: string;
666
+ artifactChecksumSha256: string;
667
+ contentType: "image/png" | "image/jpeg" | "image/webp" | "audio/wav";
668
+ };
669
+ } | undefined;
670
+ consistencyReference?: {
671
+ artifactId: string & z.core.$brand<"ArtifactId">;
672
+ representationId: string & z.core.$brand<"ArtifactRepresentationId">;
673
+ checksumSha256: string;
674
+ artifactChecksumSha256: string;
675
+ contentType: "image/png" | "image/jpeg" | "image/webp" | "audio/wav";
676
+ } | undefined;
677
+ } | {
678
+ key: string;
679
+ family: "PRODUCT_IDENTITY" | "CHARACTER_IDENTITY" | "WARDROBE" | "LOCATION" | "STYLE" | "SHOT_INTENT" | "BOUNDARY_CONTINUITY" | "SOUND";
680
+ expected: string;
681
+ enforcement: "LOCKED" | "REQUIRED" | "PREFERRED";
682
+ evidenceWindow: "START" | "END" | "WHOLE_VIDEO" | "TEMPORAL";
683
+ intentPath?: string | undefined;
684
+ continuity?: {
685
+ kind: "STATE";
686
+ mode: "PRESERVE" | "PLANNED_TRANSITIONS";
687
+ entry: string;
688
+ exit: string;
689
+ changes?: {
690
+ atPermille: number;
691
+ from: string;
692
+ to: string;
693
+ reason: string;
694
+ }[] | undefined;
695
+ } | {
696
+ kind: "TIME";
697
+ mode: "MONOTONIC" | "PLANNED_JUMPS";
698
+ entryMs: number;
699
+ exitMs: number;
700
+ jumps?: {
701
+ atPermille: number;
702
+ fromMs: number;
703
+ toMs: number;
704
+ reason: string;
705
+ }[] | undefined;
706
+ } | undefined;
707
+ interval?: {
708
+ startMs: number;
709
+ endMs: number;
710
+ } | undefined;
711
+ } | {
712
+ key: string;
713
+ expected: string;
714
+ enforcement: "LOCKED" | "REQUIRED" | "PREFERRED";
715
+ intentPath?: string | undefined;
716
+ })[];
717
+ evidence?: {
718
+ profile: "NVS_AGENT_DERIVED_EVIDENCE_V1";
719
+ contentType: "image/png" | "image/jpeg" | "image/webp" | "video/mp4";
720
+ byteSize: number;
721
+ width: number;
722
+ height: number;
723
+ durationMs?: number | undefined;
724
+ frameRate?: 30 | 24 | undefined;
725
+ hasAudio?: boolean | undefined;
726
+ } | undefined;
727
+ image?: {
728
+ contentType: "image/png";
729
+ byteSize: number;
730
+ width: number;
731
+ height: number;
732
+ } | undefined;
733
+ };
734
+ expiresAt: string;
735
+ fingerprint: string;
736
+ };
737
+ revision: number;
738
+ phase: "RUNNING" | "UNKNOWN" | "PREPARED" | "RESULT_PENDING";
739
+ answer: {
740
+ summary: string;
741
+ observations: {
742
+ key: string;
743
+ observed: string;
744
+ }[];
745
+ } | {
746
+ summary: string;
747
+ imageReadback: string;
748
+ observations: {
749
+ status: "SATISFIED" | "VIOLATED" | "NOT_OBSERVABLE" | "NOT_APPLICABLE";
750
+ confidence: "CLEAR" | "UNCERTAIN";
751
+ observed: string;
752
+ key: string;
753
+ }[];
754
+ } | null;
755
+ provenance: {
756
+ adapter: "CODEX_METADATA_V1" | "CODEX_MEDIA_V2";
757
+ binaryDigest: string;
758
+ version: "0.164.0" | "0.165.0";
759
+ model: string;
760
+ reviewerLabel: string;
761
+ inference: "REMOTE_OPENAI";
762
+ evidence: "IMAGE_PIXELS" | "VIDEO_FRAMES" | "METADATA_ONLY";
763
+ reasoningEffort?: "medium" | "low" | "high" | "xhigh" | undefined;
764
+ };
765
+ imageReceipt?: {
766
+ protocol: "NVS_LOCAL_AGENT_IMAGE_V1";
767
+ draftId: string;
768
+ media: {
769
+ artifactId: string;
770
+ representationId: string;
771
+ checksumSha256: string;
772
+ };
773
+ byteSize: number;
774
+ contentType: "image/png";
775
+ width: number;
776
+ height: number;
777
+ } | undefined;
778
+ evidenceReceipt?: {
779
+ protocol: "NVS_AGENT_DERIVED_EVIDENCE_V1";
780
+ draftId: string;
781
+ media: {
782
+ artifactId: string;
783
+ representationId: string;
784
+ checksumSha256: string;
785
+ };
786
+ ffmpegDigest: string;
787
+ ffprobeDigest: string;
788
+ attachment: {
789
+ checksumSha256: string;
790
+ byteSize: number;
791
+ width: number;
792
+ height: number;
793
+ };
794
+ timestampsMs: number[];
795
+ audio: {
796
+ sampleRateHz: 48000;
797
+ channels: 1;
798
+ samples: number;
799
+ peak: number;
800
+ rms: number;
801
+ clippedSamples: number;
802
+ } | null;
803
+ limitations: ["SAMPLED_FRAMES_ARE_NOT_FULL_PLAYBACK", "AUDIO_STATISTICS_ARE_NOT_LISTENING_OR_TRANSCRIPTION"];
804
+ } | undefined;
805
+ } | {
806
+ reference: {
807
+ tenantId: string;
808
+ projectId: string;
809
+ fileId: string;
810
+ versionId: string;
811
+ checksumSha256: string;
812
+ byteSize: number;
813
+ contentType: "application/json" | "application/pdf" | "application/octet-stream" | "text/plain" | "image/png" | "image/jpeg" | "image/webp" | "audio/wav" | "video/mp4";
814
+ deviceId: string;
815
+ };
816
+ ownerKey: string;
817
+ title: string;
818
+ createdAt: string;
819
+ revision: number;
820
+ access: {
821
+ state: "REJECTED" | "UNKNOWN" | "PENDING" | "LOCAL_ONLY" | "SYNCED";
822
+ desired: {
823
+ reference: {
824
+ tenantId: string;
825
+ projectId: string;
826
+ fileId: string;
827
+ versionId: string;
828
+ checksumSha256: string;
829
+ byteSize: number;
830
+ contentType: "application/json" | "application/pdf" | "application/octet-stream" | "text/plain" | "image/png" | "image/jpeg" | "image/webp" | "audio/wav" | "video/mp4";
831
+ deviceId: string;
832
+ };
833
+ requestId: string;
834
+ expectedRevision: number;
835
+ metadata: {
836
+ label: string;
837
+ } | null;
838
+ allowInspect: boolean;
839
+ allowPublish: boolean;
840
+ expiresAt: string;
841
+ } | null;
842
+ confirmed: {
843
+ reference: {
844
+ tenantId: string;
845
+ projectId: string;
846
+ fileId: string;
847
+ versionId: string;
848
+ checksumSha256: string;
849
+ byteSize: number;
850
+ contentType: "application/json" | "application/pdf" | "application/octet-stream" | "text/plain" | "image/png" | "image/jpeg" | "image/webp" | "audio/wav" | "video/mp4";
851
+ deviceId: string;
852
+ };
853
+ requestId: string;
854
+ expectedRevision: number;
855
+ metadata: {
856
+ label: string;
857
+ } | null;
858
+ allowInspect: boolean;
859
+ allowPublish: boolean;
860
+ expiresAt: string;
861
+ revision: number;
862
+ recordedAt: string;
863
+ } | null;
864
+ };
865
+ } | {
866
+ protocol: "NVS_LOCAL_CONNECTOR_V1";
867
+ stateDirectory: string;
868
+ credential: string;
869
+ expiresAt: string;
870
+ tenantId: string;
871
+ deviceId: string;
872
+ } | {
873
+ protocol: "NVS_LOCAL_IPC_V1";
874
+ runtimeRevision: number;
875
+ state: "RECOVERY_REQUIRED" | "EXECUTING" | "DRAINING" | "IDLE";
876
+ journalSchemaVersion: 1;
877
+ workProtocols: ("NVS_LOCAL_WORK_V1" | "NVS_LOCAL_WORK_V2")[];
878
+ versions: {
879
+ component: "CLI" | "SDK" | "MCP" | "RUNTIME" | "MEDIA_TOOLS";
880
+ installedVersion: string | null;
881
+ runningVersion: string | null;
882
+ availableVersion: string | null;
883
+ executablePath: string | null;
884
+ installOwner: "UNKNOWN" | "PROJECT" | "MANAGED" | "NPM_GLOBAL" | "NPX" | "TARBALL";
885
+ }[];
886
+ nextActions: {
887
+ call: {
888
+ operation: "library.capability";
889
+ } | {
890
+ operation: "library.call";
891
+ input: {
892
+ tenantId: string;
893
+ after: string | null;
894
+ limit: number;
895
+ deviceId: string;
896
+ action: "list";
897
+ projectId?: string | undefined;
898
+ ownerKey?: string | undefined;
899
+ search?: string | undefined;
900
+ mediaCategory?: "IMAGE" | "VIDEO" | "AUDIO" | "DOCUMENT" | undefined;
901
+ } | {
902
+ reference: {
903
+ tenantId: string;
904
+ projectId: string;
905
+ fileId: string;
906
+ versionId: string;
907
+ checksumSha256: string;
908
+ byteSize: number;
909
+ contentType: "application/json" | "application/pdf" | "application/octet-stream" | "text/plain" | "image/png" | "image/jpeg" | "image/webp" | "audio/wav" | "video/mp4";
910
+ deviceId: string;
911
+ };
912
+ action: "get";
913
+ ownerKey?: string | undefined;
914
+ } | {
915
+ tenantId: string;
916
+ limit: number;
917
+ deviceId: string;
918
+ after: string | null;
919
+ projectId: string;
920
+ action: "scoped-list";
921
+ search?: string | undefined;
922
+ mediaCategory?: "IMAGE" | "VIDEO" | "AUDIO" | "DOCUMENT" | undefined;
923
+ } | {
924
+ action: "scoped-get";
925
+ reference: {
926
+ tenantId: string;
927
+ projectId: string;
928
+ fileId: string;
929
+ versionId: string;
930
+ checksumSha256: string;
931
+ byteSize: number;
932
+ contentType: "application/json" | "application/pdf" | "application/octet-stream" | "text/plain" | "image/png" | "image/jpeg" | "image/webp" | "audio/wav" | "video/mp4";
933
+ deviceId: string;
934
+ };
935
+ } | {
936
+ action: "usage";
937
+ ownerKey?: string | undefined;
938
+ } | {
939
+ reference: {
940
+ tenantId: string;
941
+ projectId: string;
942
+ fileId: string;
943
+ versionId: string;
944
+ checksumSha256: string;
945
+ byteSize: number;
946
+ contentType: "application/json" | "application/pdf" | "application/octet-stream" | "text/plain" | "image/png" | "image/jpeg" | "image/webp" | "audio/wav" | "video/mp4";
947
+ deviceId: string;
948
+ };
949
+ offset: number;
950
+ length: number;
951
+ action: "read";
952
+ ownerKey?: string | undefined;
953
+ } | {
954
+ command: {
955
+ reference: {
956
+ tenantId: string;
957
+ projectId: string;
958
+ fileId: string;
959
+ versionId: string;
960
+ checksumSha256: string;
961
+ byteSize: number;
962
+ contentType: "application/json" | "application/pdf" | "application/octet-stream" | "text/plain" | "image/png" | "image/jpeg" | "image/webp" | "audio/wav" | "video/mp4";
963
+ deviceId: string;
964
+ };
965
+ requestId: string;
966
+ expectedRevision: number;
967
+ metadata: {
968
+ label: string;
969
+ } | null;
970
+ allowInspect: boolean;
971
+ allowPublish: boolean;
972
+ expiresAt: string;
973
+ };
974
+ expectedLocalRevision: number;
975
+ action: "access";
976
+ ownerKey?: string | undefined;
977
+ } | {
978
+ reference: {
979
+ tenantId: string;
980
+ projectId: string;
981
+ fileId: string;
982
+ versionId: string;
983
+ checksumSha256: string;
984
+ byteSize: number;
985
+ contentType: "application/json" | "application/pdf" | "application/octet-stream" | "text/plain" | "image/png" | "image/jpeg" | "image/webp" | "audio/wav" | "video/mp4";
986
+ deviceId: string;
987
+ };
988
+ requestId: string;
989
+ action: "sync";
990
+ ownerKey?: string | undefined;
991
+ } | {
992
+ reference: {
993
+ tenantId: string;
994
+ projectId: string;
995
+ fileId: string;
996
+ versionId: string;
997
+ checksumSha256: string;
998
+ byteSize: number;
999
+ contentType: "application/json" | "application/pdf" | "application/octet-stream" | "text/plain" | "image/png" | "image/jpeg" | "image/webp" | "audio/wav" | "video/mp4";
1000
+ deviceId: string;
1001
+ };
1002
+ requestId: string;
1003
+ action: "resume-access";
1004
+ ownerKey?: string | undefined;
1005
+ } | {
1006
+ tenantId: string;
1007
+ projectId: string;
1008
+ deviceId: string;
1009
+ requestId: string;
1010
+ action: "import-receipt";
1011
+ ownerKey?: string | undefined;
1012
+ };
1013
+ } | {
1014
+ operation: "agent.discover";
1015
+ binary?: string | undefined;
1016
+ } | {
1017
+ operation: "offline.workspace";
1018
+ input: {
1019
+ action: "list" | "forget";
1020
+ key: string;
1021
+ } | {
1022
+ action: "retain";
1023
+ key: string;
1024
+ snapshot: {
1025
+ projectId: string;
1026
+ title: string;
1027
+ savedAt: string;
1028
+ expiresAt: string;
1029
+ productions: {
1030
+ id: string;
1031
+ title: string;
1032
+ }[];
1033
+ possiblyTruncated: boolean;
1034
+ };
1035
+ } | {
1036
+ action: "draft";
1037
+ key: string;
1038
+ projectId: string;
1039
+ text: string;
1040
+ expectedRevision: number;
1041
+ };
1042
+ } | {
1043
+ operation: "workspace.inspect";
1044
+ } | {
1045
+ operation: "workspace.configure";
1046
+ policy: {
1047
+ acceptNewWork: boolean;
1048
+ mode: "CONTINUOUS" | "IDLE_ONLY";
1049
+ idleAfterSeconds: number;
1050
+ maxConcurrentJobs: number;
1051
+ cpuCores: 2 | 1;
1052
+ memoryMiB: number;
1053
+ cacheQuotaBytes: number;
1054
+ };
1055
+ expectedRevision: number;
1056
+ } | {
1057
+ operation: "workspace.activity";
1058
+ idleSeconds: number;
1059
+ observedAt: string;
1060
+ } | {
1061
+ operation: "storage.clean";
1062
+ } | {
1063
+ operation: "diagnostics.read";
1064
+ } | {
1065
+ operation: "agent.grant";
1066
+ grant: {
1067
+ protocol: "NVS_CODEX_REVIEW_GRANT_V1";
1068
+ binary: string;
1069
+ binaryDigest: string;
1070
+ version: "0.164.0" | "0.165.0";
1071
+ model: string;
1072
+ reviewerLabel: string;
1073
+ inference: "REMOTE_OPENAI";
1074
+ remoteUseApproved: true;
1075
+ projects: {
1076
+ tenantId: string;
1077
+ projectId: string;
1078
+ }[];
1079
+ expiresAt: string;
1080
+ reasoningEffort?: "medium" | "low" | "high" | "xhigh" | undefined;
1081
+ imageDisclosureApproved?: true | undefined;
1082
+ mediaDisclosureApproved?: true | undefined;
1083
+ };
1084
+ approval: string;
1085
+ } | {
1086
+ operation: "agent.probe";
1087
+ } | {
1088
+ operation: "agent.revoke";
1089
+ approval: string;
1090
+ } | {
1091
+ operation: "agent.prepare";
1092
+ snapshot: {
1093
+ basis: {
1094
+ scope: {
1095
+ tenantId: string & z.core.$brand<"TenantId">;
1096
+ projectId: string & z.core.$brand<"ProjectId">;
1097
+ productionId: string & z.core.$brand<"ProductionId">;
1098
+ };
1099
+ target: {
1100
+ kind: "IMAGE";
1101
+ generationId: string;
1102
+ } | {
1103
+ kind: "VIDEO";
1104
+ generationId: string;
1105
+ } | {
1106
+ kind: "ROUGH_CUT";
1107
+ renderId: string;
1108
+ } | {
1109
+ kind: "PROGRAMMATIC";
1110
+ renderId: string;
1111
+ };
1112
+ contextFingerprint: string;
1113
+ };
1114
+ productionRevision: number;
1115
+ reviewVersion: number;
1116
+ executionClass: "LIVE" | "TEST_ONLY";
1117
+ media: {
1118
+ artifactId: string;
1119
+ representationId: string;
1120
+ checksumSha256: string;
1121
+ };
1122
+ requirements: ({
1123
+ key: string;
1124
+ dimension: "TRANSITION" | "STYLE" | "PRODUCT_PRESENTATION" | "CANONICAL_FACT" | "NARRATIVE" | "PACING" | "REPETITION" | "TECHNICAL";
1125
+ expected: string;
1126
+ enforcement: "LOCKED" | "REQUIRED" | "PREFERRED";
1127
+ scope: "TRANSITION" | "PRODUCTION";
1128
+ interval: {
1129
+ startMs: number;
1130
+ endMs: number;
1131
+ };
1132
+ shotIds: string[];
1133
+ continuity?: {
1134
+ kind: "STATE";
1135
+ mode: "PRESERVE" | "PLANNED_TRANSITIONS";
1136
+ entry: string;
1137
+ exit: string;
1138
+ changes?: {
1139
+ atPermille: number;
1140
+ from: string;
1141
+ to: string;
1142
+ reason: string;
1143
+ }[] | undefined;
1144
+ } | {
1145
+ kind: "TIME";
1146
+ mode: "MONOTONIC" | "PLANNED_JUMPS";
1147
+ entryMs: number;
1148
+ exitMs: number;
1149
+ jumps?: {
1150
+ atPermille: number;
1151
+ fromMs: number;
1152
+ toMs: number;
1153
+ reason: string;
1154
+ }[] | undefined;
1155
+ } | undefined;
1156
+ consistencyScale?: "INTRA_SHOT" | "INTER_SHOT" | "PRODUCTION" | undefined;
1157
+ consistencyFamily?: "PRODUCT_IDENTITY" | "CHARACTER_IDENTITY" | "WARDROBE" | "LOCATION" | "STYLE" | "BOUNDARY_CONTINUITY" | undefined;
1158
+ consistencySubject?: {
1159
+ id: string;
1160
+ kind: "CHARACTER" | "VOICE";
1161
+ displayName: string;
1162
+ facts: {
1163
+ dimension: string;
1164
+ value: string;
1165
+ }[];
1166
+ master: {
1167
+ artifactId: string & z.core.$brand<"ArtifactId">;
1168
+ representationId: string & z.core.$brand<"ArtifactRepresentationId">;
1169
+ checksumSha256: string;
1170
+ artifactChecksumSha256: string;
1171
+ contentType: "image/png" | "image/jpeg" | "image/webp" | "audio/wav";
1172
+ };
1173
+ } | undefined;
1174
+ consistencyReference?: {
1175
+ artifactId: string & z.core.$brand<"ArtifactId">;
1176
+ representationId: string & z.core.$brand<"ArtifactRepresentationId">;
1177
+ checksumSha256: string;
1178
+ artifactChecksumSha256: string;
1179
+ contentType: "image/png" | "image/jpeg" | "image/webp" | "audio/wav";
1180
+ } | undefined;
1181
+ } | {
1182
+ key: string;
1183
+ family: "PRODUCT_IDENTITY" | "CHARACTER_IDENTITY" | "WARDROBE" | "LOCATION" | "STYLE" | "SHOT_INTENT" | "BOUNDARY_CONTINUITY" | "SOUND";
1184
+ expected: string;
1185
+ enforcement: "LOCKED" | "REQUIRED" | "PREFERRED";
1186
+ evidenceWindow: "START" | "END" | "WHOLE_VIDEO" | "TEMPORAL";
1187
+ intentPath?: string | undefined;
1188
+ continuity?: {
1189
+ kind: "STATE";
1190
+ mode: "PRESERVE" | "PLANNED_TRANSITIONS";
1191
+ entry: string;
1192
+ exit: string;
1193
+ changes?: {
1194
+ atPermille: number;
1195
+ from: string;
1196
+ to: string;
1197
+ reason: string;
1198
+ }[] | undefined;
1199
+ } | {
1200
+ kind: "TIME";
1201
+ mode: "MONOTONIC" | "PLANNED_JUMPS";
1202
+ entryMs: number;
1203
+ exitMs: number;
1204
+ jumps?: {
1205
+ atPermille: number;
1206
+ fromMs: number;
1207
+ toMs: number;
1208
+ reason: string;
1209
+ }[] | undefined;
1210
+ } | undefined;
1211
+ interval?: {
1212
+ startMs: number;
1213
+ endMs: number;
1214
+ } | undefined;
1215
+ } | {
1216
+ key: string;
1217
+ expected: string;
1218
+ enforcement: "LOCKED" | "REQUIRED" | "PREFERRED";
1219
+ intentPath?: string | undefined;
1220
+ })[];
1221
+ evidence?: {
1222
+ profile: "NVS_AGENT_DERIVED_EVIDENCE_V1";
1223
+ contentType: "image/png" | "image/jpeg" | "image/webp" | "video/mp4";
1224
+ byteSize: number;
1225
+ width: number;
1226
+ height: number;
1227
+ durationMs?: number | undefined;
1228
+ frameRate?: 30 | 24 | undefined;
1229
+ hasAudio?: boolean | undefined;
1230
+ } | undefined;
1231
+ image?: {
1232
+ contentType: "image/png";
1233
+ byteSize: number;
1234
+ width: number;
1235
+ height: number;
1236
+ } | undefined;
1237
+ };
1238
+ } | {
1239
+ operation: "agent.start";
1240
+ id: string;
1241
+ expectedRevision: number;
1242
+ approval: string;
1243
+ } | {
1244
+ operation: "agent.inspect";
1245
+ id: string;
1246
+ } | {
1247
+ operation: "runtime.status";
1248
+ includeDevice?: true | undefined;
1249
+ } | {
1250
+ operation: "runtime.doctor";
1251
+ } | {
1252
+ operation: "runtime.inventory";
1253
+ } | {
1254
+ operation: "session.issue";
1255
+ tenantId: string;
1256
+ deviceId: string;
1257
+ expiresAt: string;
1258
+ } | {
1259
+ operation: "runtime.stop";
1260
+ expectedRuntimeRevision: number;
1261
+ } | {
1262
+ operation: "execution.inspect";
1263
+ input: {
1264
+ tenantId: string;
1265
+ projectId: string;
1266
+ productionId: string;
1267
+ runtimeJobId: string;
1268
+ includeProgress?: boolean | undefined;
1269
+ };
1270
+ } | {
1271
+ operation: "execution.list";
1272
+ input: {
1273
+ tenantId: string;
1274
+ projectId: string;
1275
+ after: string | null;
1276
+ limit: number;
1277
+ includeCompleted?: boolean | undefined;
1278
+ includeProgress?: boolean | undefined;
1279
+ };
1280
+ } | {
1281
+ operation: "update.check";
1282
+ } | {
1283
+ operation: "update.prepare";
1284
+ targetVersion: string;
1285
+ expectedRuntimeRevision: number;
1286
+ } | {
1287
+ operation: "update.apply";
1288
+ planId: string;
1289
+ targetVersion: string;
1290
+ expectedRuntimeRevision: number;
1291
+ };
1292
+ availability: "AVAILABLE" | "BLOCKED";
1293
+ reason: "READY" | "INSTALL_REQUIRED" | "AUTHORIZATION_REQUIRED" | "VERSION_INCOMPATIBLE" | "UPDATE_AVAILABLE" | "RECOVERY_REQUIRED";
1294
+ }[];
1295
+ deviceAuthority?: {
1296
+ tenantId: string;
1297
+ deviceId: string;
1298
+ origin: string;
1299
+ } | undefined;
1300
+ deviceCapabilities?: {
1301
+ deviceRevision: number;
1302
+ tenantMediaValidation: boolean;
1303
+ tenantMediaProcessing: boolean;
1304
+ 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" | "TRANSCRIBE_AUDIO" | "TRANSCRIBE_EXTERNAL_QWEN")[];
1305
+ } | undefined;
1306
+ } | {
1307
+ binding: {
1308
+ tenantId: string;
1309
+ projectId: string;
1310
+ productionId: string;
1311
+ runtimeJobId: string;
1312
+ attemptId: string;
1313
+ assignmentRevision: number;
1314
+ workerId: string;
1315
+ workFingerprint: string;
1316
+ toolchainFingerprint: string;
1317
+ };
1318
+ revision: number;
1319
+ phase: "RUNNING" | "RECOVERY_REQUIRED" | "FENCED" | "STAGED" | "OUTPUT_PENDING" | "RECEIPT_RECORDED";
1320
+ checkpoint: "ADOPTED" | "SOURCES_READY" | "PROCESS_STARTED" | "OUTPUT_STAGED";
1321
+ progress?: {
1322
+ stage: "WAITING" | "COMPLETE" | "RECOVERY_REQUIRED" | "DOWNLOADING" | "EXECUTING" | "UPLOADING" | "AWAITING_ACCEPTANCE" | "FENCED";
1323
+ downloadedBytes: number;
1324
+ sourceBytes: number;
1325
+ uploadedBytes: number;
1326
+ outputBytes: number;
1327
+ lastError: {
1328
+ code: string;
1329
+ observedAt: string;
1330
+ } | null;
1331
+ } | undefined;
1332
+ } | {
1333
+ items: {
1334
+ reference: {
1335
+ tenantId: string;
1336
+ projectId: string;
1337
+ fileId: string;
1338
+ versionId: string;
1339
+ checksumSha256: string;
1340
+ byteSize: number;
1341
+ contentType: "application/json" | "application/pdf" | "application/octet-stream" | "text/plain" | "image/png" | "image/jpeg" | "image/webp" | "audio/wav" | "video/mp4";
1342
+ deviceId: string;
1343
+ };
1344
+ metadata: {
1345
+ label: string;
1346
+ } | null;
1347
+ accessRevision: number;
1348
+ allowInspect: boolean;
1349
+ allowPublish: boolean;
1350
+ expiresAt: string;
1351
+ }[];
1352
+ nextCursor: string | null;
1353
+ } | {
1354
+ candidate: {
1355
+ binary: string;
1356
+ binaryDigest: string;
1357
+ version: string;
1358
+ qualified: boolean;
1359
+ } | null;
1360
+ configured: {
1361
+ protocol: "NVS_CODEX_REVIEW_GRANT_V1";
1362
+ binary: string;
1363
+ binaryDigest: string;
1364
+ version: "0.164.0" | "0.165.0";
1365
+ model: string;
1366
+ reviewerLabel: string;
1367
+ inference: "REMOTE_OPENAI";
1368
+ remoteUseApproved: true;
1369
+ projects: {
1370
+ tenantId: string;
1371
+ projectId: string;
1372
+ }[];
1373
+ expiresAt: string;
1374
+ reasoningEffort?: "medium" | "low" | "high" | "xhigh" | undefined;
1375
+ imageDisclosureApproved?: true | undefined;
1376
+ mediaDisclosureApproved?: true | undefined;
1377
+ } | null;
1378
+ } | {
1379
+ configured: boolean;
1380
+ available: boolean;
1381
+ reason: "READY" | "GRANT_EXPIRED" | "GRANT_REQUIRED" | "RUNTIME_UNAVAILABLE";
1382
+ grantFingerprint: string | null;
1383
+ inference: "REMOTE_OPENAI";
1384
+ } | {
1385
+ historical: true;
1386
+ items: {
1387
+ snapshot: {
1388
+ projectId: string;
1389
+ title: string;
1390
+ savedAt: string;
1391
+ expiresAt: string;
1392
+ productions: {
1393
+ id: string;
1394
+ title: string;
1395
+ }[];
1396
+ possiblyTruncated: boolean;
1397
+ };
1398
+ draft: {
1399
+ text: string;
1400
+ revision: number;
1401
+ };
1402
+ }[];
1403
+ } | {
1404
+ items: {
1405
+ reference: {
1406
+ tenantId: string;
1407
+ projectId: string;
1408
+ fileId: string;
1409
+ versionId: string;
1410
+ checksumSha256: string;
1411
+ byteSize: number;
1412
+ contentType: "application/json" | "application/pdf" | "application/octet-stream" | "text/plain" | "image/png" | "image/jpeg" | "image/webp" | "audio/wav" | "video/mp4";
1413
+ deviceId: string;
1414
+ };
1415
+ ownerKey: string;
1416
+ title: string;
1417
+ createdAt: string;
1418
+ revision: number;
1419
+ access: {
1420
+ state: "REJECTED" | "UNKNOWN" | "PENDING" | "LOCAL_ONLY" | "SYNCED";
1421
+ desired: {
1422
+ reference: {
1423
+ tenantId: string;
1424
+ projectId: string;
1425
+ fileId: string;
1426
+ versionId: string;
1427
+ checksumSha256: string;
1428
+ byteSize: number;
1429
+ contentType: "application/json" | "application/pdf" | "application/octet-stream" | "text/plain" | "image/png" | "image/jpeg" | "image/webp" | "audio/wav" | "video/mp4";
1430
+ deviceId: string;
1431
+ };
1432
+ requestId: string;
1433
+ expectedRevision: number;
1434
+ metadata: {
1435
+ label: string;
1436
+ } | null;
1437
+ allowInspect: boolean;
1438
+ allowPublish: boolean;
1439
+ expiresAt: string;
1440
+ } | null;
1441
+ confirmed: {
1442
+ reference: {
1443
+ tenantId: string;
1444
+ projectId: string;
1445
+ fileId: string;
1446
+ versionId: string;
1447
+ checksumSha256: string;
1448
+ byteSize: number;
1449
+ contentType: "application/json" | "application/pdf" | "application/octet-stream" | "text/plain" | "image/png" | "image/jpeg" | "image/webp" | "audio/wav" | "video/mp4";
1450
+ deviceId: string;
1451
+ };
1452
+ requestId: string;
1453
+ expectedRevision: number;
1454
+ metadata: {
1455
+ label: string;
1456
+ } | null;
1457
+ allowInspect: boolean;
1458
+ allowPublish: boolean;
1459
+ expiresAt: string;
1460
+ revision: number;
1461
+ recordedAt: string;
1462
+ } | null;
1463
+ };
1464
+ }[];
1465
+ nextCursor: string | null;
1466
+ } | {
1467
+ reference: {
1468
+ tenantId: string;
1469
+ projectId: string;
1470
+ fileId: string;
1471
+ versionId: string;
1472
+ checksumSha256: string;
1473
+ byteSize: number;
1474
+ contentType: "application/json" | "application/pdf" | "application/octet-stream" | "text/plain" | "image/png" | "image/jpeg" | "image/webp" | "audio/wav" | "video/mp4";
1475
+ deviceId: string;
1476
+ };
1477
+ metadata: {
1478
+ label: string;
1479
+ } | null;
1480
+ accessRevision: number;
1481
+ allowInspect: boolean;
1482
+ allowPublish: boolean;
1483
+ expiresAt: string;
1484
+ } | {
1485
+ reference: {
1486
+ tenantId: string;
1487
+ projectId: string;
1488
+ fileId: string;
1489
+ versionId: string;
1490
+ checksumSha256: string;
1491
+ byteSize: number;
1492
+ contentType: "application/json" | "application/pdf" | "application/octet-stream" | "text/plain" | "image/png" | "image/jpeg" | "image/webp" | "audio/wav" | "video/mp4";
1493
+ deviceId: string;
1494
+ };
1495
+ offset: number;
1496
+ contentBase64: string;
1497
+ complete: boolean;
1498
+ } | {
1499
+ protocol: "NVS_LOCAL_LIBRARY_V1";
1500
+ available: boolean;
1501
+ profileDigest: string;
1502
+ } | {
1503
+ fileCount: number;
1504
+ totalBytes: number;
1505
+ quotaBytes: number;
1506
+ availableDiskBytes: number;
1507
+ } | {
1508
+ runtimeRevision: number;
1509
+ descriptor: {
1510
+ protocol: "NVS_RUNTIME_DESCRIPTOR_V1";
1511
+ version: string;
1512
+ node: {
1513
+ major: 24;
1514
+ minMinor: 12;
1515
+ };
1516
+ platform: {
1517
+ os: "darwin" | "linux" | "win32";
1518
+ architecture: "x64" | "arm64";
1519
+ };
1520
+ ipcProtocol: "NVS_LOCAL_IPC_V1";
1521
+ workProtocol: "NVS_LOCAL_WORK_V1" | "NVS_LOCAL_WORK_V2";
1522
+ journalSchema: 1;
1523
+ rendererDigest: string;
1524
+ profileDigest: string;
1525
+ compatibleRenderers?: {
1526
+ rendererDigest: string;
1527
+ profileDigest: string;
1528
+ }[] | undefined;
1529
+ };
1530
+ activeProcesses: number;
1531
+ pendingExecutions: number;
1532
+ pendingRequests: number;
1533
+ pendingRenderers: string[];
1534
+ } | {
1535
+ settings: {
1536
+ revision: number;
1537
+ policy: {
1538
+ acceptNewWork: boolean;
1539
+ mode: "CONTINUOUS" | "IDLE_ONLY";
1540
+ idleAfterSeconds: number;
1541
+ maxConcurrentJobs: number;
1542
+ cpuCores: 2 | 1;
1543
+ memoryMiB: number;
1544
+ cacheQuotaBytes: number;
1545
+ };
1546
+ };
1547
+ storage: {
1548
+ cacheBytes: number;
1549
+ protectedBytes: number;
1550
+ reclaimableBytes: number;
1551
+ transferBytes: number;
1552
+ journalBytes: number;
1553
+ availableDiskBytes: number;
1554
+ quotaBytes: number;
1555
+ overQuota: boolean;
1556
+ reviewBytes?: number | undefined;
1557
+ ownerStagingBytes?: number | undefined;
1558
+ };
1559
+ scheduling: {
1560
+ state: "READY" | "PAUSED" | "WAITING_FOR_IDLE" | "AT_CAPACITY" | "DRAINING";
1561
+ activeJobs: number;
1562
+ idleObservationCurrent: boolean;
1563
+ };
1564
+ } | {
1565
+ protocol: "NVS_LOCAL_DIAGNOSTICS_V1";
1566
+ createdAt: string;
1567
+ runtimeVersion: string;
1568
+ runtimeRevision: number;
1569
+ settings: {
1570
+ revision: number;
1571
+ policy: {
1572
+ acceptNewWork: boolean;
1573
+ mode: "CONTINUOUS" | "IDLE_ONLY";
1574
+ idleAfterSeconds: number;
1575
+ maxConcurrentJobs: number;
1576
+ cpuCores: 2 | 1;
1577
+ memoryMiB: number;
1578
+ cacheQuotaBytes: number;
1579
+ };
1580
+ };
1581
+ storage: {
1582
+ cacheBytes: number;
1583
+ protectedBytes: number;
1584
+ reclaimableBytes: number;
1585
+ transferBytes: number;
1586
+ journalBytes: number;
1587
+ availableDiskBytes: number;
1588
+ quotaBytes: number;
1589
+ overQuota: boolean;
1590
+ reviewBytes?: number | undefined;
1591
+ ownerStagingBytes?: number | undefined;
1592
+ };
1593
+ recordCounts: Record<string, number>;
1594
+ failures: {
1595
+ taskFingerprint: string;
1596
+ code: string;
1597
+ observedAt: string;
1598
+ }[];
1599
+ } | {
1600
+ mode: "INSTALLED" | "MANAGED";
1601
+ availability: "UNAVAILABLE" | "AVAILABLE";
1602
+ reason: "QUALIFIED_PROCESS_TOOLS" | "MANAGED_TOOLS_MISSING" | "TOOL_QUALIFICATION_FAILED";
1603
+ nativeExecutionReady: boolean;
1604
+ tools: {
1605
+ name: "FFMPEG" | "FFPROBE";
1606
+ path: string;
1607
+ version: string;
1608
+ digest: string;
1609
+ }[];
1610
+ executionProfiles?: ("ROUGH_CUT_PREVIEW_V1" | "STUDIO_MEDIA_V2")[] | undefined;
1611
+ } | {
1612
+ items: {
1613
+ binding: {
1614
+ tenantId: string;
1615
+ projectId: string;
1616
+ productionId: string;
1617
+ runtimeJobId: string;
1618
+ attemptId: string;
1619
+ assignmentRevision: number;
1620
+ workerId: string;
1621
+ workFingerprint: string;
1622
+ toolchainFingerprint: string;
1623
+ };
1624
+ revision: number;
1625
+ phase: "RUNNING" | "RECOVERY_REQUIRED" | "FENCED" | "STAGED" | "OUTPUT_PENDING" | "RECEIPT_RECORDED";
1626
+ checkpoint: "ADOPTED" | "SOURCES_READY" | "PROCESS_STARTED" | "OUTPUT_STAGED";
1627
+ progress?: {
1628
+ stage: "WAITING" | "COMPLETE" | "RECOVERY_REQUIRED" | "DOWNLOADING" | "EXECUTING" | "UPLOADING" | "AWAITING_ACCEPTANCE" | "FENCED";
1629
+ downloadedBytes: number;
1630
+ sourceBytes: number;
1631
+ uploadedBytes: number;
1632
+ outputBytes: number;
1633
+ lastError: {
1634
+ code: string;
1635
+ observedAt: string;
1636
+ } | null;
1637
+ } | undefined;
1638
+ }[];
1639
+ nextCursor: string | null;
1640
+ } | {
1641
+ state: "DRAINING";
1642
+ inventory?: {
1643
+ runtimeRevision: number;
1644
+ descriptor: {
1645
+ protocol: "NVS_RUNTIME_DESCRIPTOR_V1";
1646
+ version: string;
1647
+ node: {
1648
+ major: 24;
1649
+ minMinor: 12;
1650
+ };
1651
+ platform: {
1652
+ os: "darwin" | "linux" | "win32";
1653
+ architecture: "x64" | "arm64";
1654
+ };
1655
+ ipcProtocol: "NVS_LOCAL_IPC_V1";
1656
+ workProtocol: "NVS_LOCAL_WORK_V1" | "NVS_LOCAL_WORK_V2";
1657
+ journalSchema: 1;
1658
+ rendererDigest: string;
1659
+ profileDigest: string;
1660
+ compatibleRenderers?: {
1661
+ rendererDigest: string;
1662
+ profileDigest: string;
1663
+ }[] | undefined;
1664
+ };
1665
+ activeProcesses: number;
1666
+ pendingExecutions: number;
1667
+ pendingRequests: number;
1668
+ pendingRenderers: string[];
1669
+ } | undefined;
1670
+ backupPath?: string | undefined;
1671
+ } | null>;
1672
+ reconcile(id: string, approval: string): Promise<{
1673
+ rolledBack: boolean;
1674
+ revision: number;
1675
+ version: string | null;
1676
+ recovered?: never;
1677
+ } | {
1678
+ recovered: boolean;
1679
+ revision: number;
1680
+ version: string;
1681
+ rolledBack?: never;
1682
+ }>;
1683
+ grant(raw: unknown, output: string): Promise<{
1684
+ granted: boolean;
1685
+ tenantId: string;
1686
+ deviceId: string;
1687
+ expiresAt: string;
1688
+ }>;
1689
+ reconnect(): Promise<{
1690
+ renewed: number;
1691
+ blocked: number;
1692
+ }>;
1693
+ }
1694
+ export type LocalManagerTrust = ReleaseTrust;
1695
+ export type LocalManagerPlan = LocalUpdatePlan;