@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
@@ -269,6 +269,291 @@ export declare class InstallationLedger {
269
269
  };
270
270
  digest: string | null;
271
271
  }>;
272
+ atRevision(revision: number): Promise<{
273
+ revision: number;
274
+ active: {
275
+ id: string;
276
+ descriptor: {
277
+ protocol: "NVS_RUNTIME_DESCRIPTOR_V1";
278
+ version: string;
279
+ node: {
280
+ major: 24;
281
+ minMinor: 12;
282
+ };
283
+ platform: {
284
+ os: "darwin" | "linux" | "win32";
285
+ architecture: "arm64" | "x64";
286
+ };
287
+ ipcProtocol: "NVS_LOCAL_IPC_V1";
288
+ workProtocol: "NVS_LOCAL_WORK_V1" | "NVS_LOCAL_WORK_V2";
289
+ journalSchema: 1;
290
+ rendererDigest: string;
291
+ profileDigest: string;
292
+ compatibleRenderers?: {
293
+ rendererDigest: string;
294
+ profileDigest: string;
295
+ }[] | undefined;
296
+ };
297
+ toolsConfigPath: string | null;
298
+ files: Record<string, string>;
299
+ } | null;
300
+ transition: {
301
+ id: string;
302
+ planId: string;
303
+ fingerprint: string;
304
+ phase: "DRAINING" | "STAGED" | "STAGING" | "ACTIVATING" | "VERIFYING" | "ROLLBACK_REQUIRED";
305
+ previous: {
306
+ id: string;
307
+ descriptor: {
308
+ protocol: "NVS_RUNTIME_DESCRIPTOR_V1";
309
+ version: string;
310
+ node: {
311
+ major: 24;
312
+ minMinor: 12;
313
+ };
314
+ platform: {
315
+ os: "darwin" | "linux" | "win32";
316
+ architecture: "arm64" | "x64";
317
+ };
318
+ ipcProtocol: "NVS_LOCAL_IPC_V1";
319
+ workProtocol: "NVS_LOCAL_WORK_V1" | "NVS_LOCAL_WORK_V2";
320
+ journalSchema: 1;
321
+ rendererDigest: string;
322
+ profileDigest: string;
323
+ compatibleRenderers?: {
324
+ rendererDigest: string;
325
+ profileDigest: string;
326
+ }[] | undefined;
327
+ };
328
+ toolsConfigPath: string | null;
329
+ files: Record<string, string>;
330
+ } | null;
331
+ candidate: {
332
+ id: string;
333
+ descriptor: {
334
+ protocol: "NVS_RUNTIME_DESCRIPTOR_V1";
335
+ version: string;
336
+ node: {
337
+ major: 24;
338
+ minMinor: 12;
339
+ };
340
+ platform: {
341
+ os: "darwin" | "linux" | "win32";
342
+ architecture: "arm64" | "x64";
343
+ };
344
+ ipcProtocol: "NVS_LOCAL_IPC_V1";
345
+ workProtocol: "NVS_LOCAL_WORK_V1" | "NVS_LOCAL_WORK_V2";
346
+ journalSchema: 1;
347
+ rendererDigest: string;
348
+ profileDigest: string;
349
+ compatibleRenderers?: {
350
+ rendererDigest: string;
351
+ profileDigest: string;
352
+ }[] | undefined;
353
+ };
354
+ toolsConfigPath: string | null;
355
+ files: Record<string, string>;
356
+ } | null;
357
+ backupPath: string | null;
358
+ failedPhase: "DRAINING" | "STAGED" | "STAGING" | "ACTIVATING" | "VERIFYING" | "ROLLBACK_REQUIRED" | null;
359
+ } | null;
360
+ } | null>;
361
+ /** 读取同一不可变账本的历史引用,不创建新的模型权威或改写旧安装槽。 */
362
+ toolSelectionHistory(): Promise<{
363
+ value: {
364
+ revision: number;
365
+ active: {
366
+ id: string;
367
+ descriptor: {
368
+ protocol: "NVS_RUNTIME_DESCRIPTOR_V1";
369
+ version: string;
370
+ node: {
371
+ major: 24;
372
+ minMinor: 12;
373
+ };
374
+ platform: {
375
+ os: "darwin" | "linux" | "win32";
376
+ architecture: "arm64" | "x64";
377
+ };
378
+ ipcProtocol: "NVS_LOCAL_IPC_V1";
379
+ workProtocol: "NVS_LOCAL_WORK_V1" | "NVS_LOCAL_WORK_V2";
380
+ journalSchema: 1;
381
+ rendererDigest: string;
382
+ profileDigest: string;
383
+ compatibleRenderers?: {
384
+ rendererDigest: string;
385
+ profileDigest: string;
386
+ }[] | undefined;
387
+ };
388
+ toolsConfigPath: string | null;
389
+ files: Record<string, string>;
390
+ } | null;
391
+ transition: {
392
+ id: string;
393
+ planId: string;
394
+ fingerprint: string;
395
+ phase: "DRAINING" | "STAGED" | "STAGING" | "ACTIVATING" | "VERIFYING" | "ROLLBACK_REQUIRED";
396
+ previous: {
397
+ id: string;
398
+ descriptor: {
399
+ protocol: "NVS_RUNTIME_DESCRIPTOR_V1";
400
+ version: string;
401
+ node: {
402
+ major: 24;
403
+ minMinor: 12;
404
+ };
405
+ platform: {
406
+ os: "darwin" | "linux" | "win32";
407
+ architecture: "arm64" | "x64";
408
+ };
409
+ ipcProtocol: "NVS_LOCAL_IPC_V1";
410
+ workProtocol: "NVS_LOCAL_WORK_V1" | "NVS_LOCAL_WORK_V2";
411
+ journalSchema: 1;
412
+ rendererDigest: string;
413
+ profileDigest: string;
414
+ compatibleRenderers?: {
415
+ rendererDigest: string;
416
+ profileDigest: string;
417
+ }[] | undefined;
418
+ };
419
+ toolsConfigPath: string | null;
420
+ files: Record<string, string>;
421
+ } | null;
422
+ candidate: {
423
+ id: string;
424
+ descriptor: {
425
+ protocol: "NVS_RUNTIME_DESCRIPTOR_V1";
426
+ version: string;
427
+ node: {
428
+ major: 24;
429
+ minMinor: 12;
430
+ };
431
+ platform: {
432
+ os: "darwin" | "linux" | "win32";
433
+ architecture: "arm64" | "x64";
434
+ };
435
+ ipcProtocol: "NVS_LOCAL_IPC_V1";
436
+ workProtocol: "NVS_LOCAL_WORK_V1" | "NVS_LOCAL_WORK_V2";
437
+ journalSchema: 1;
438
+ rendererDigest: string;
439
+ profileDigest: string;
440
+ compatibleRenderers?: {
441
+ rendererDigest: string;
442
+ profileDigest: string;
443
+ }[] | undefined;
444
+ };
445
+ toolsConfigPath: string | null;
446
+ files: Record<string, string>;
447
+ } | null;
448
+ backupPath: string | null;
449
+ failedPhase: "DRAINING" | "STAGED" | "STAGING" | "ACTIVATING" | "VERIFYING" | "ROLLBACK_REQUIRED" | null;
450
+ } | null;
451
+ };
452
+ historical: string[];
453
+ revisionDigests: Map<number, string>;
454
+ slots: {
455
+ id: string;
456
+ versions: {
457
+ slot: Slot;
458
+ lastReferencedRevision: number;
459
+ lastReferencedDigest: string;
460
+ }[];
461
+ lastReferencedRevision: number;
462
+ }[];
463
+ }>;
464
+ recoveryBackupReferences(): Promise<{
465
+ paths: Set<string>;
466
+ value: {
467
+ revision: number;
468
+ active: {
469
+ id: string;
470
+ descriptor: {
471
+ protocol: "NVS_RUNTIME_DESCRIPTOR_V1";
472
+ version: string;
473
+ node: {
474
+ major: 24;
475
+ minMinor: 12;
476
+ };
477
+ platform: {
478
+ os: "darwin" | "linux" | "win32";
479
+ architecture: "arm64" | "x64";
480
+ };
481
+ ipcProtocol: "NVS_LOCAL_IPC_V1";
482
+ workProtocol: "NVS_LOCAL_WORK_V1" | "NVS_LOCAL_WORK_V2";
483
+ journalSchema: 1;
484
+ rendererDigest: string;
485
+ profileDigest: string;
486
+ compatibleRenderers?: {
487
+ rendererDigest: string;
488
+ profileDigest: string;
489
+ }[] | undefined;
490
+ };
491
+ toolsConfigPath: string | null;
492
+ files: Record<string, string>;
493
+ } | null;
494
+ transition: {
495
+ id: string;
496
+ planId: string;
497
+ fingerprint: string;
498
+ phase: "DRAINING" | "STAGED" | "STAGING" | "ACTIVATING" | "VERIFYING" | "ROLLBACK_REQUIRED";
499
+ previous: {
500
+ id: string;
501
+ descriptor: {
502
+ protocol: "NVS_RUNTIME_DESCRIPTOR_V1";
503
+ version: string;
504
+ node: {
505
+ major: 24;
506
+ minMinor: 12;
507
+ };
508
+ platform: {
509
+ os: "darwin" | "linux" | "win32";
510
+ architecture: "arm64" | "x64";
511
+ };
512
+ ipcProtocol: "NVS_LOCAL_IPC_V1";
513
+ workProtocol: "NVS_LOCAL_WORK_V1" | "NVS_LOCAL_WORK_V2";
514
+ journalSchema: 1;
515
+ rendererDigest: string;
516
+ profileDigest: string;
517
+ compatibleRenderers?: {
518
+ rendererDigest: string;
519
+ profileDigest: string;
520
+ }[] | undefined;
521
+ };
522
+ toolsConfigPath: string | null;
523
+ files: Record<string, string>;
524
+ } | null;
525
+ candidate: {
526
+ id: string;
527
+ descriptor: {
528
+ protocol: "NVS_RUNTIME_DESCRIPTOR_V1";
529
+ version: string;
530
+ node: {
531
+ major: 24;
532
+ minMinor: 12;
533
+ };
534
+ platform: {
535
+ os: "darwin" | "linux" | "win32";
536
+ architecture: "arm64" | "x64";
537
+ };
538
+ ipcProtocol: "NVS_LOCAL_IPC_V1";
539
+ workProtocol: "NVS_LOCAL_WORK_V1" | "NVS_LOCAL_WORK_V2";
540
+ journalSchema: 1;
541
+ rendererDigest: string;
542
+ profileDigest: string;
543
+ compatibleRenderers?: {
544
+ rendererDigest: string;
545
+ profileDigest: string;
546
+ }[] | undefined;
547
+ };
548
+ toolsConfigPath: string | null;
549
+ files: Record<string, string>;
550
+ } | null;
551
+ backupPath: string | null;
552
+ failedPhase: "DRAINING" | "STAGED" | "STAGING" | "ACTIVATING" | "VERIFYING" | "ROLLBACK_REQUIRED" | null;
553
+ } | null;
554
+ };
555
+ digest: string | null;
556
+ }>;
272
557
  hadCompletedVersion(version: string): Promise<boolean>;
273
558
  private load;
274
559
  commit(expected: Installation, next: Omit<Installation, "revision">): Promise<{
@@ -0,0 +1,8 @@
1
+ import type { LocalInstallationManager } from "./manager.js";
2
+ /** Only a live internal scope may reuse a gate, never an input flag from CLI/IPC. */
3
+ export type LifecycleScope = {
4
+ readonly stateDirectories: readonly string[];
5
+ };
6
+ export declare function withResourceLifecycleGates<T>(stateDirectories: readonly string[], work: (scope: LifecycleScope) => Promise<T>, held?: LifecycleScope): Promise<T>;
7
+ /** A configuration-root switch between observation and acquisition must not escape the gate. */
8
+ export declare function withConfiguredLifecycle<T>(manager: Pick<LocalInstallationManager, "configuration">, work: (scope: LifecycleScope) => Promise<T>, held?: LifecycleScope, additionalDirectories?: readonly string[]): Promise<T>;