@nativestudio/cli 0.3.0-rc.6 → 0.3.0-rc.7

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 (162) hide show
  1. package/COMPATIBILITY.json +7 -7
  2. package/LICENSE +201 -21
  3. package/components/runtime.json +3 -3
  4. package/components/runtime.tgz +0 -0
  5. package/dist/_chunks/{chunk-CA54SKBO.js → chunk-6SYHA2B4.js} +1 -1
  6. package/dist/_chunks/{chunk-GJ7BZJLW.js → chunk-A7EUJNCL.js} +1 -1
  7. package/dist/_chunks/chunk-AJ7S73M4.js +1 -0
  8. package/dist/_chunks/chunk-DRHPICBU.js +1 -0
  9. package/dist/_chunks/chunk-FCHO4AVP.js +1 -0
  10. package/dist/_chunks/chunk-JH5QP6PC.js +1 -0
  11. package/dist/_chunks/chunk-LF442QV6.js +1 -0
  12. package/dist/_chunks/chunk-LUBHPAPW.js +1 -0
  13. package/dist/_chunks/chunk-OZ5KZSTM.js +1 -0
  14. package/dist/_chunks/chunk-RJ4QQF7E.js +1 -0
  15. package/dist/_chunks/chunk-RT5PFKYS.js +1 -0
  16. package/dist/_chunks/chunk-SIJPJIBO.js +1 -0
  17. package/dist/_chunks/{chunk-KNFUMWDY.js → chunk-TCZJLYSR.js} +1 -1
  18. package/dist/_chunks/chunk-TTFDNLQE.js +1 -0
  19. package/dist/_chunks/chunk-URKX77KR.js +1 -0
  20. package/dist/_chunks/chunk-XRYARPEL.js +1 -0
  21. package/dist/_chunks/device-management-4XIITODX.js +1 -0
  22. package/dist/_chunks/device-preflight-SDA7Q3LH.js +1 -0
  23. package/dist/_chunks/devices-inventory-RVHGI2YW.js +1 -0
  24. package/dist/_chunks/devices-main-WOILNAGY.js +1 -0
  25. package/dist/_chunks/http-profile-XCHTSJV4.js +1 -0
  26. package/dist/_chunks/library-main-ZQKJQNHE.js +1 -0
  27. package/dist/_chunks/local-main-DX47PKHX.js +1 -0
  28. package/dist/_chunks/local-mcp-HMS5ODZN.js +1 -0
  29. package/dist/_chunks/main-HQGVZ2O2.js +2 -0
  30. package/dist/_chunks/mcp-6Q4ALHN6.js +1 -0
  31. package/dist/_chunks/project-connect-U2IHGC5W.js +1 -0
  32. package/dist/_chunks/render-main-A2AABFAG.js +1 -0
  33. package/dist/_chunks/source-import-5N4KZMTC.js +1 -0
  34. package/dist/_chunks/src-NIMTPR5W.js +1 -0
  35. package/dist/_chunks/{stdio-main-4Z2JVCMO.js → stdio-main-JJCNIY4H.js} +1 -1
  36. package/dist/_chunks/workspace-main-ZIZO4WRI.js +1 -0
  37. package/dist/_types/cli/local/desktop-contract.d.ts +1077 -564
  38. package/dist/_types/cli/local/desktop-device-contract.d.ts +170 -556
  39. package/dist/_types/cli/local/desktop-device-owner.d.ts +16 -50
  40. package/dist/_types/cli/local/desktop-device-state.d.ts +198 -31
  41. package/dist/_types/cli/local/desktop-library.d.ts +853 -0
  42. package/dist/_types/cli/local/desktop-owner.d.ts +220 -39
  43. package/dist/_types/cli/local/ledger.d.ts +2 -0
  44. package/dist/_types/cli/local/manager.d.ts +352 -22
  45. package/dist/_types/cli/local/mcp-tools.d.ts +218 -39
  46. package/dist/_types/cli/local/project-render-tools.d.ts +8742 -77
  47. package/dist/_types/cli/local-management.d.ts +2 -1
  48. package/dist/_types/contracts/artifact-discovery.d.ts +76 -4
  49. package/dist/_types/contracts/audio.d.ts +4 -0
  50. package/dist/_types/contracts/composition-authoring.d.ts +8 -8
  51. package/dist/_types/contracts/composition-frame-render.d.ts +4 -4
  52. package/dist/_types/contracts/composition-render-base.d.ts +5 -4
  53. package/dist/_types/contracts/composition-render.d.ts +8 -8
  54. package/dist/_types/contracts/composition-repair.d.ts +10 -10
  55. package/dist/_types/contracts/composition-source-review.d.ts +12 -12
  56. package/dist/_types/contracts/delivery-manifest.d.ts +25 -11765
  57. package/dist/_types/contracts/delivery-operations.d.ts +51 -3921
  58. package/dist/_types/contracts/delivery-summary.d.ts +2 -2
  59. package/dist/_types/contracts/delivery-validation.d.ts +23 -0
  60. package/dist/_types/contracts/device-render.d.ts +67 -0
  61. package/dist/_types/contracts/editor-intelligence.d.ts +114 -2491
  62. package/dist/_types/contracts/exploration-recommendation.d.ts +263 -11655
  63. package/dist/_types/contracts/external-agent-access.d.ts +9 -3
  64. package/dist/_types/contracts/final-ready.d.ts +22 -22
  65. package/dist/_types/contracts/final-render.d.ts +1569 -6949
  66. package/dist/_types/contracts/human-identity.d.ts +13 -0
  67. package/dist/_types/contracts/index.d.ts +3 -0
  68. package/dist/_types/contracts/interface/media-output.d.ts +28 -0
  69. package/dist/_types/contracts/interface/production-snapshot.d.ts +15 -193
  70. package/dist/_types/contracts/keyframe-generation.d.ts +29 -0
  71. package/dist/_types/contracts/local-execution/agent-evidence.d.ts +2 -2
  72. package/dist/_types/contracts/local-execution/agent-grant.d.ts +2 -2
  73. package/dist/_types/contracts/local-execution/agent-review.d.ts +30 -285
  74. package/dist/_types/contracts/local-execution/common.d.ts +12 -11
  75. package/dist/_types/contracts/local-execution/completion.d.ts +41 -45
  76. package/dist/_types/contracts/local-execution/device-authority.d.ts +31 -0
  77. package/dist/_types/contracts/local-execution/device-inventory.d.ts +76 -0
  78. package/dist/_types/contracts/local-execution/device-workspace.d.ts +11 -0
  79. package/dist/_types/contracts/local-execution/device.d.ts +19 -59
  80. package/dist/_types/contracts/local-execution/external-generation.d.ts +199 -0
  81. package/dist/_types/contracts/local-execution/index.d.ts +19 -0
  82. package/dist/_types/contracts/local-execution/ipc.d.ts +1517 -711
  83. package/dist/_types/contracts/local-execution/library-command.d.ts +620 -0
  84. package/dist/_types/contracts/local-execution/library-result.d.ts +408 -0
  85. package/dist/_types/contracts/local-execution/library.d.ts +873 -0
  86. package/dist/_types/contracts/local-execution/lifecycle.d.ts +21 -5
  87. package/dist/_types/contracts/local-execution/local-navigation.d.ts +161 -44
  88. package/dist/_types/contracts/local-execution/management.d.ts +214 -208
  89. package/dist/_types/contracts/local-execution/media-recipe.d.ts +5 -1
  90. package/dist/_types/contracts/local-execution/media-validation-request.d.ts +232 -0
  91. package/dist/_types/contracts/local-execution/media-validation.d.ts +262 -0
  92. package/dist/_types/contracts/local-execution/object-transfer.d.ts +155 -0
  93. package/dist/_types/contracts/local-execution/preview.d.ts +120 -10988
  94. package/dist/_types/contracts/local-execution/processor-capability.d.ts +39 -0
  95. package/dist/_types/contracts/local-execution/processor-direct.d.ts +290 -0
  96. package/dist/_types/contracts/local-execution/processor-recipes.d.ts +1122 -0
  97. package/dist/_types/contracts/local-execution/processor.d.ts +6173 -0
  98. package/dist/_types/contracts/local-execution/project-source-direct.d.ts +201 -0
  99. package/dist/_types/contracts/local-execution/qwen-tts.d.ts +31 -0
  100. package/dist/_types/contracts/local-execution/recognition.d.ts +170 -0
  101. package/dist/_types/contracts/local-execution/speech.d.ts +95 -0
  102. package/dist/_types/contracts/local-execution/tool-selection.d.ts +45 -5
  103. package/dist/_types/contracts/local-execution/whisper.d.ts +24 -0
  104. package/dist/_types/contracts/local-execution/work.d.ts +69 -10741
  105. package/dist/_types/contracts/local-execution/workspace.d.ts +5 -0
  106. package/dist/_types/contracts/media-category.d.ts +11 -0
  107. package/dist/_types/contracts/media-observation.d.ts +929 -8
  108. package/dist/_types/contracts/observation-profile.d.ts +3 -3
  109. package/dist/_types/contracts/programmatic-composition.d.ts +24 -24
  110. package/dist/_types/contracts/programmatic-exploration.d.ts +348 -6009
  111. package/dist/_types/contracts/provider-catalog.d.ts +3 -3
  112. package/dist/_types/contracts/provider-models.d.ts +16 -8
  113. package/dist/_types/contracts/provider.d.ts +66 -1
  114. package/dist/_types/contracts/reference-preview.d.ts +19 -0
  115. package/dist/_types/contracts/repair-lifecycle.d.ts +52 -384
  116. package/dist/_types/contracts/repair-plan.d.ts +16 -98
  117. package/dist/_types/contracts/repair-strategy.d.ts +162 -4505
  118. package/dist/_types/contracts/review-intelligence-final-output.d.ts +317 -8163
  119. package/dist/_types/contracts/review-intelligence.d.ts +450 -11468
  120. package/dist/_types/contracts/rough-cut-manifest.d.ts +1 -0
  121. package/dist/_types/contracts/rough-cut-review.d.ts +134 -12566
  122. package/dist/_types/contracts/rough-cut.d.ts +1076 -5731
  123. package/dist/_types/contracts/sound-making-plan.d.ts +3 -2
  124. package/dist/_types/contracts/speech-cost.d.ts +81 -0
  125. package/dist/_types/contracts/speech.d.ts +149 -0
  126. package/dist/_types/contracts/temporal-evidence-operation.d.ts +1 -0
  127. package/dist/_types/contracts/timeline-audio.d.ts +1 -0
  128. package/dist/_types/contracts/timeline-manifest.d.ts +2 -0
  129. package/dist/_types/contracts/timeline-source-sound.d.ts +1 -0
  130. package/dist/_types/contracts/timeline-v2.d.ts +4 -0
  131. package/dist/_types/contracts/timeline-version-reader.d.ts +10 -0
  132. package/dist/_types/contracts/timeline-visual-layers.d.ts +4 -0
  133. package/dist/_types/contracts/timeline.d.ts +50 -4850
  134. package/dist/_types/contracts/transcription.d.ts +1 -1
  135. package/dist/_types/contracts/video-generation.d.ts +33 -0
  136. package/dist/_types/contracts/visual-layer-render.d.ts +37 -6
  137. package/dist/_types/contracts/visual-sequence.d.ts +22 -0
  138. package/dist/_types/contracts/workspace.d.ts +22 -0
  139. package/dist/_types/sdk/errors.d.ts +1 -1
  140. package/dist/_types/sdk/local-runtime/device-client.d.ts +7 -33
  141. package/dist/_types/sdk/local-runtime/library.d.ts +268 -0
  142. package/dist/_types/sdk/local-runtime/workspace.d.ts +9 -4
  143. package/dist/_types/sdk/local-runtime-client.d.ts +477 -32
  144. package/dist/entry.js +1 -1
  145. package/dist/local-management.js +1 -1
  146. package/dist/local-navigation.js +1 -1
  147. package/package.json +2 -8
  148. package/README.md +0 -119
  149. package/dist/_chunks/chunk-D533YC7J.js +0 -1
  150. package/dist/_chunks/chunk-HKD6F6M6.js +0 -1
  151. package/dist/_chunks/chunk-INLSOHAK.js +0 -1
  152. package/dist/_chunks/chunk-N6S6HCWE.js +0 -1
  153. package/dist/_chunks/chunk-PBEHCYR7.js +0 -1
  154. package/dist/_chunks/chunk-RVGDXRPK.js +0 -1
  155. package/dist/_chunks/chunk-YKOJPJZR.js +0 -1
  156. package/dist/_chunks/local-main-J2G7OU5E.js +0 -1
  157. package/dist/_chunks/local-mcp-LCHXL2IE.js +0 -1
  158. package/dist/_chunks/main-PPA76ARV.js +0 -2
  159. package/dist/_chunks/mcp-P7W623FE.js +0 -1
  160. package/dist/_chunks/project-connect-7L2HRJUN.js +0 -1
  161. package/dist/_chunks/render-main-ZW6UJHGN.js +0 -1
  162. package/dist/_chunks/src-BXLFLNRG.js +0 -1
@@ -1,4 +1,5 @@
1
1
  import { NativeStudioLocalWorkspaceClient } from "./local-runtime/workspace.js";
2
+ import { NativeStudioLocalLibraryClient } from "./local-runtime/library.js";
2
3
  import { type LocalIpcRequest, type LocalWorkScope } from "../contracts/local-execution/index.js";
3
4
  import { type LocalAgentSnapshot } from "../contracts/local-execution/index.js";
4
5
  export declare class NativeStudioLocalRuntimeClient {
@@ -6,20 +7,21 @@ export declare class NativeStudioLocalRuntimeClient {
6
7
  stateDirectory: string;
7
8
  authorization: () => Promise<string> | string;
8
9
  timeoutMs?: number;
9
- projects?: {
10
+ device?: {
10
11
  tenantId: string;
11
- projectId: string;
12
- }[];
12
+ deviceId: string;
13
+ };
13
14
  };
14
15
  readonly workspace: NativeStudioLocalWorkspaceClient;
16
+ readonly library: NativeStudioLocalLibraryClient;
15
17
  constructor(options: {
16
18
  stateDirectory: string;
17
19
  authorization: () => Promise<string> | string;
18
20
  timeoutMs?: number;
19
- projects?: {
21
+ device?: {
20
22
  tenantId: string;
21
- projectId: string;
22
- }[];
23
+ deviceId: string;
24
+ };
23
25
  });
24
26
  static fromConnector(path: string): Promise<NativeStudioLocalRuntimeClient>;
25
27
  call(call: LocalIpcRequest["call"], signal?: AbortSignal): Promise<{
@@ -244,15 +246,73 @@ export declare class NativeStudioLocalRuntimeClient {
244
246
  } | null;
245
247
  limitations: ["SAMPLED_FRAMES_ARE_NOT_FULL_PLAYBACK", "AUDIO_STATISTICS_ARE_NOT_LISTENING_OR_TRANSCRIPTION"];
246
248
  } | undefined;
249
+ } | {
250
+ reference: {
251
+ tenantId: string;
252
+ projectId: string;
253
+ fileId: string;
254
+ versionId: string;
255
+ checksumSha256: string;
256
+ byteSize: number;
257
+ contentType: "application/json" | "application/pdf" | "application/octet-stream" | "text/plain" | "image/png" | "image/jpeg" | "image/webp" | "audio/wav" | "video/mp4";
258
+ deviceId: string;
259
+ };
260
+ ownerKey: string;
261
+ title: string;
262
+ createdAt: string;
263
+ revision: number;
264
+ access: {
265
+ state: "REJECTED" | "UNKNOWN" | "PENDING" | "LOCAL_ONLY" | "SYNCED";
266
+ desired: {
267
+ reference: {
268
+ tenantId: string;
269
+ projectId: string;
270
+ fileId: string;
271
+ versionId: string;
272
+ checksumSha256: string;
273
+ byteSize: number;
274
+ contentType: "application/json" | "application/pdf" | "application/octet-stream" | "text/plain" | "image/png" | "image/jpeg" | "image/webp" | "audio/wav" | "video/mp4";
275
+ deviceId: string;
276
+ };
277
+ requestId: string;
278
+ expectedRevision: number;
279
+ metadata: {
280
+ label: string;
281
+ } | null;
282
+ allowInspect: boolean;
283
+ allowPublish: boolean;
284
+ expiresAt: string;
285
+ } | null;
286
+ confirmed: {
287
+ reference: {
288
+ tenantId: string;
289
+ projectId: string;
290
+ fileId: string;
291
+ versionId: string;
292
+ checksumSha256: string;
293
+ byteSize: number;
294
+ contentType: "application/json" | "application/pdf" | "application/octet-stream" | "text/plain" | "image/png" | "image/jpeg" | "image/webp" | "audio/wav" | "video/mp4";
295
+ deviceId: string;
296
+ };
297
+ requestId: string;
298
+ expectedRevision: number;
299
+ metadata: {
300
+ label: string;
301
+ } | null;
302
+ allowInspect: boolean;
303
+ allowPublish: boolean;
304
+ expiresAt: string;
305
+ revision: number;
306
+ recordedAt: string;
307
+ } | null;
308
+ };
247
309
  } | {
248
310
  protocol: "NVS_LOCAL_CONNECTOR_V1";
249
311
  stateDirectory: string;
250
312
  credential: string;
251
313
  expiresAt: string;
252
- projects: {
253
- tenantId: string;
254
- projectId: string;
255
- }[];
314
+ tenantId: string;
315
+ deviceId: string;
256
316
  } | {
257
317
  protocol: "NVS_LOCAL_IPC_V1";
258
318
  runtimeRevision: number;
@@ -267,12 +327,134 @@ export declare class NativeStudioLocalRuntimeClient {
267
327
  executablePath: string | null;
268
328
  installOwner: "UNKNOWN" | "PROJECT" | "MANAGED" | "NPM_GLOBAL" | "NPX" | "TARBALL";
269
329
  }[];
270
- authorizedProjects: {
271
- tenantId: string;
272
- projectId: string;
273
- }[];
274
330
  nextActions: {
275
331
  call: {
332
+ operation: "library.capability";
333
+ } | {
334
+ operation: "library.call";
335
+ input: {
336
+ tenantId: string;
337
+ after: string | null;
338
+ limit: number;
339
+ deviceId: string;
340
+ action: "list";
341
+ projectId?: string | undefined;
342
+ ownerKey?: string | undefined;
343
+ search?: string | undefined;
344
+ mediaCategory?: "IMAGE" | "VIDEO" | "AUDIO" | "DOCUMENT" | undefined;
345
+ } | {
346
+ reference: {
347
+ tenantId: string;
348
+ projectId: string;
349
+ fileId: string;
350
+ versionId: string;
351
+ checksumSha256: string;
352
+ byteSize: number;
353
+ contentType: "application/json" | "application/pdf" | "application/octet-stream" | "text/plain" | "image/png" | "image/jpeg" | "image/webp" | "audio/wav" | "video/mp4";
354
+ deviceId: string;
355
+ };
356
+ action: "get";
357
+ ownerKey?: string | undefined;
358
+ } | {
359
+ tenantId: string;
360
+ limit: number;
361
+ deviceId: string;
362
+ after: string | null;
363
+ projectId: string;
364
+ action: "scoped-list";
365
+ search?: string | undefined;
366
+ mediaCategory?: "IMAGE" | "VIDEO" | "AUDIO" | "DOCUMENT" | undefined;
367
+ } | {
368
+ action: "scoped-get";
369
+ reference: {
370
+ tenantId: string;
371
+ projectId: string;
372
+ fileId: string;
373
+ versionId: string;
374
+ checksumSha256: string;
375
+ byteSize: number;
376
+ contentType: "application/json" | "application/pdf" | "application/octet-stream" | "text/plain" | "image/png" | "image/jpeg" | "image/webp" | "audio/wav" | "video/mp4";
377
+ deviceId: string;
378
+ };
379
+ } | {
380
+ action: "usage";
381
+ ownerKey?: string | undefined;
382
+ } | {
383
+ reference: {
384
+ tenantId: string;
385
+ projectId: string;
386
+ fileId: string;
387
+ versionId: string;
388
+ checksumSha256: string;
389
+ byteSize: number;
390
+ contentType: "application/json" | "application/pdf" | "application/octet-stream" | "text/plain" | "image/png" | "image/jpeg" | "image/webp" | "audio/wav" | "video/mp4";
391
+ deviceId: string;
392
+ };
393
+ offset: number;
394
+ length: number;
395
+ action: "read";
396
+ ownerKey?: string | undefined;
397
+ } | {
398
+ command: {
399
+ reference: {
400
+ tenantId: string;
401
+ projectId: string;
402
+ fileId: string;
403
+ versionId: string;
404
+ checksumSha256: string;
405
+ byteSize: number;
406
+ contentType: "application/json" | "application/pdf" | "application/octet-stream" | "text/plain" | "image/png" | "image/jpeg" | "image/webp" | "audio/wav" | "video/mp4";
407
+ deviceId: string;
408
+ };
409
+ requestId: string;
410
+ expectedRevision: number;
411
+ metadata: {
412
+ label: string;
413
+ } | null;
414
+ allowInspect: boolean;
415
+ allowPublish: boolean;
416
+ expiresAt: string;
417
+ };
418
+ expectedLocalRevision: number;
419
+ action: "access";
420
+ ownerKey?: string | undefined;
421
+ } | {
422
+ reference: {
423
+ tenantId: string;
424
+ projectId: string;
425
+ fileId: string;
426
+ versionId: string;
427
+ checksumSha256: string;
428
+ byteSize: number;
429
+ contentType: "application/json" | "application/pdf" | "application/octet-stream" | "text/plain" | "image/png" | "image/jpeg" | "image/webp" | "audio/wav" | "video/mp4";
430
+ deviceId: string;
431
+ };
432
+ requestId: string;
433
+ action: "sync";
434
+ ownerKey?: string | undefined;
435
+ } | {
436
+ reference: {
437
+ tenantId: string;
438
+ projectId: string;
439
+ fileId: string;
440
+ versionId: string;
441
+ checksumSha256: string;
442
+ byteSize: number;
443
+ contentType: "application/json" | "application/pdf" | "application/octet-stream" | "text/plain" | "image/png" | "image/jpeg" | "image/webp" | "audio/wav" | "video/mp4";
444
+ deviceId: string;
445
+ };
446
+ requestId: string;
447
+ action: "resume-access";
448
+ ownerKey?: string | undefined;
449
+ } | {
450
+ tenantId: string;
451
+ projectId: string;
452
+ deviceId: string;
453
+ requestId: string;
454
+ action: "import-receipt";
455
+ ownerKey?: string | undefined;
456
+ };
457
+ } | {
276
458
  operation: "agent.discover";
277
459
  binary?: string | undefined;
278
460
  } | {
@@ -306,6 +488,7 @@ export declare class NativeStudioLocalRuntimeClient {
306
488
  } | {
307
489
  operation: "workspace.configure";
308
490
  policy: {
491
+ acceptNewWork: boolean;
309
492
  mode: "CONTINUOUS" | "IDLE_ONLY";
310
493
  idleAfterSeconds: number;
311
494
  maxConcurrentJobs: number;
@@ -513,10 +696,8 @@ export declare class NativeStudioLocalRuntimeClient {
513
696
  operation: "runtime.inventory";
514
697
  } | {
515
698
  operation: "session.issue";
516
- projects: {
517
- tenantId: string;
518
- projectId: string;
519
- }[];
699
+ tenantId: string;
700
+ deviceId: string;
520
701
  expiresAt: string;
521
702
  } | {
522
703
  operation: "runtime.stop";
@@ -560,6 +741,12 @@ export declare class NativeStudioLocalRuntimeClient {
560
741
  deviceId: string;
561
742
  origin: string;
562
743
  } | undefined;
744
+ deviceCapabilities?: {
745
+ deviceRevision: number;
746
+ tenantMediaValidation: boolean;
747
+ tenantMediaProcessing: boolean;
748
+ 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")[];
749
+ } | undefined;
563
750
  } | {
564
751
  binding: {
565
752
  tenantId: string;
@@ -586,6 +773,27 @@ export declare class NativeStudioLocalRuntimeClient {
586
773
  observedAt: string;
587
774
  } | null;
588
775
  } | undefined;
776
+ } | {
777
+ items: {
778
+ reference: {
779
+ tenantId: string;
780
+ projectId: string;
781
+ fileId: string;
782
+ versionId: string;
783
+ checksumSha256: string;
784
+ byteSize: number;
785
+ contentType: "application/json" | "application/pdf" | "application/octet-stream" | "text/plain" | "image/png" | "image/jpeg" | "image/webp" | "audio/wav" | "video/mp4";
786
+ deviceId: string;
787
+ };
788
+ metadata: {
789
+ label: string;
790
+ } | null;
791
+ accessRevision: number;
792
+ allowInspect: boolean;
793
+ allowPublish: boolean;
794
+ expiresAt: string;
795
+ }[];
796
+ nextCursor: string | null;
589
797
  } | {
590
798
  candidate: {
591
799
  binary: string;
@@ -636,6 +844,110 @@ export declare class NativeStudioLocalRuntimeClient {
636
844
  revision: number;
637
845
  };
638
846
  }[];
847
+ } | {
848
+ items: {
849
+ reference: {
850
+ tenantId: string;
851
+ projectId: string;
852
+ fileId: string;
853
+ versionId: string;
854
+ checksumSha256: string;
855
+ byteSize: number;
856
+ contentType: "application/json" | "application/pdf" | "application/octet-stream" | "text/plain" | "image/png" | "image/jpeg" | "image/webp" | "audio/wav" | "video/mp4";
857
+ deviceId: string;
858
+ };
859
+ ownerKey: string;
860
+ title: string;
861
+ createdAt: string;
862
+ revision: number;
863
+ access: {
864
+ state: "REJECTED" | "UNKNOWN" | "PENDING" | "LOCAL_ONLY" | "SYNCED";
865
+ desired: {
866
+ reference: {
867
+ tenantId: string;
868
+ projectId: string;
869
+ fileId: string;
870
+ versionId: string;
871
+ checksumSha256: string;
872
+ byteSize: number;
873
+ contentType: "application/json" | "application/pdf" | "application/octet-stream" | "text/plain" | "image/png" | "image/jpeg" | "image/webp" | "audio/wav" | "video/mp4";
874
+ deviceId: string;
875
+ };
876
+ requestId: string;
877
+ expectedRevision: number;
878
+ metadata: {
879
+ label: string;
880
+ } | null;
881
+ allowInspect: boolean;
882
+ allowPublish: boolean;
883
+ expiresAt: string;
884
+ } | null;
885
+ confirmed: {
886
+ reference: {
887
+ tenantId: string;
888
+ projectId: string;
889
+ fileId: string;
890
+ versionId: string;
891
+ checksumSha256: string;
892
+ byteSize: number;
893
+ contentType: "application/json" | "application/pdf" | "application/octet-stream" | "text/plain" | "image/png" | "image/jpeg" | "image/webp" | "audio/wav" | "video/mp4";
894
+ deviceId: string;
895
+ };
896
+ requestId: string;
897
+ expectedRevision: number;
898
+ metadata: {
899
+ label: string;
900
+ } | null;
901
+ allowInspect: boolean;
902
+ allowPublish: boolean;
903
+ expiresAt: string;
904
+ revision: number;
905
+ recordedAt: string;
906
+ } | null;
907
+ };
908
+ }[];
909
+ nextCursor: string | null;
910
+ } | {
911
+ reference: {
912
+ tenantId: string;
913
+ projectId: string;
914
+ fileId: string;
915
+ versionId: string;
916
+ checksumSha256: string;
917
+ byteSize: number;
918
+ contentType: "application/json" | "application/pdf" | "application/octet-stream" | "text/plain" | "image/png" | "image/jpeg" | "image/webp" | "audio/wav" | "video/mp4";
919
+ deviceId: string;
920
+ };
921
+ metadata: {
922
+ label: string;
923
+ } | null;
924
+ accessRevision: number;
925
+ allowInspect: boolean;
926
+ allowPublish: boolean;
927
+ expiresAt: string;
928
+ } | {
929
+ reference: {
930
+ tenantId: string;
931
+ projectId: string;
932
+ fileId: string;
933
+ versionId: string;
934
+ checksumSha256: string;
935
+ byteSize: number;
936
+ contentType: "application/json" | "application/pdf" | "application/octet-stream" | "text/plain" | "image/png" | "image/jpeg" | "image/webp" | "audio/wav" | "video/mp4";
937
+ deviceId: string;
938
+ };
939
+ offset: number;
940
+ contentBase64: string;
941
+ complete: boolean;
942
+ } | {
943
+ protocol: "NVS_LOCAL_LIBRARY_V1";
944
+ available: boolean;
945
+ profileDigest: string;
946
+ } | {
947
+ fileCount: number;
948
+ totalBytes: number;
949
+ quotaBytes: number;
950
+ availableDiskBytes: number;
639
951
  } | {
640
952
  runtimeRevision: number;
641
953
  descriptor: {
@@ -667,6 +979,7 @@ export declare class NativeStudioLocalRuntimeClient {
667
979
  settings: {
668
980
  revision: number;
669
981
  policy: {
982
+ acceptNewWork: boolean;
670
983
  mode: "CONTINUOUS" | "IDLE_ONLY";
671
984
  idleAfterSeconds: number;
672
985
  maxConcurrentJobs: number;
@@ -688,7 +1001,7 @@ export declare class NativeStudioLocalRuntimeClient {
688
1001
  ownerStagingBytes?: number | undefined;
689
1002
  };
690
1003
  scheduling: {
691
- state: "READY" | "WAITING_FOR_IDLE" | "AT_CAPACITY" | "DRAINING";
1004
+ state: "READY" | "PAUSED" | "WAITING_FOR_IDLE" | "AT_CAPACITY" | "DRAINING";
692
1005
  activeJobs: number;
693
1006
  idleObservationCurrent: boolean;
694
1007
  };
@@ -700,6 +1013,7 @@ export declare class NativeStudioLocalRuntimeClient {
700
1013
  settings: {
701
1014
  revision: number;
702
1015
  policy: {
1016
+ acceptNewWork: boolean;
703
1017
  mode: "CONTINUOUS" | "IDLE_ONLY";
704
1018
  idleAfterSeconds: number;
705
1019
  maxConcurrentJobs: number;
@@ -727,7 +1041,7 @@ export declare class NativeStudioLocalRuntimeClient {
727
1041
  observedAt: string;
728
1042
  }[];
729
1043
  } | {
730
- mode: "MANAGED" | "INSTALLED";
1044
+ mode: "INSTALLED" | "MANAGED";
731
1045
  availability: "UNAVAILABLE" | "AVAILABLE";
732
1046
  reason: "QUALIFIED_PROCESS_TOOLS" | "MANAGED_TOOLS_MISSING" | "TOOL_QUALIFICATION_FAILED";
733
1047
  nativeExecutionReady: boolean;
@@ -814,12 +1128,134 @@ export declare class NativeStudioLocalRuntimeClient {
814
1128
  executablePath: string | null;
815
1129
  installOwner: "UNKNOWN" | "PROJECT" | "MANAGED" | "NPM_GLOBAL" | "NPX" | "TARBALL";
816
1130
  }[];
817
- authorizedProjects: {
818
- tenantId: string;
819
- projectId: string;
820
- }[];
821
1131
  nextActions: {
822
1132
  call: {
1133
+ operation: "library.capability";
1134
+ } | {
1135
+ operation: "library.call";
1136
+ input: {
1137
+ tenantId: string;
1138
+ after: string | null;
1139
+ limit: number;
1140
+ deviceId: string;
1141
+ action: "list";
1142
+ projectId?: string | undefined;
1143
+ ownerKey?: string | undefined;
1144
+ search?: string | undefined;
1145
+ mediaCategory?: "IMAGE" | "VIDEO" | "AUDIO" | "DOCUMENT" | undefined;
1146
+ } | {
1147
+ reference: {
1148
+ tenantId: string;
1149
+ projectId: string;
1150
+ fileId: string;
1151
+ versionId: string;
1152
+ checksumSha256: string;
1153
+ byteSize: number;
1154
+ contentType: "application/json" | "application/pdf" | "application/octet-stream" | "text/plain" | "image/png" | "image/jpeg" | "image/webp" | "audio/wav" | "video/mp4";
1155
+ deviceId: string;
1156
+ };
1157
+ action: "get";
1158
+ ownerKey?: string | undefined;
1159
+ } | {
1160
+ tenantId: string;
1161
+ limit: number;
1162
+ deviceId: string;
1163
+ after: string | null;
1164
+ projectId: string;
1165
+ action: "scoped-list";
1166
+ search?: string | undefined;
1167
+ mediaCategory?: "IMAGE" | "VIDEO" | "AUDIO" | "DOCUMENT" | undefined;
1168
+ } | {
1169
+ action: "scoped-get";
1170
+ reference: {
1171
+ tenantId: string;
1172
+ projectId: string;
1173
+ fileId: string;
1174
+ versionId: string;
1175
+ checksumSha256: string;
1176
+ byteSize: number;
1177
+ contentType: "application/json" | "application/pdf" | "application/octet-stream" | "text/plain" | "image/png" | "image/jpeg" | "image/webp" | "audio/wav" | "video/mp4";
1178
+ deviceId: string;
1179
+ };
1180
+ } | {
1181
+ action: "usage";
1182
+ ownerKey?: string | undefined;
1183
+ } | {
1184
+ reference: {
1185
+ tenantId: string;
1186
+ projectId: string;
1187
+ fileId: string;
1188
+ versionId: string;
1189
+ checksumSha256: string;
1190
+ byteSize: number;
1191
+ contentType: "application/json" | "application/pdf" | "application/octet-stream" | "text/plain" | "image/png" | "image/jpeg" | "image/webp" | "audio/wav" | "video/mp4";
1192
+ deviceId: string;
1193
+ };
1194
+ offset: number;
1195
+ length: number;
1196
+ action: "read";
1197
+ ownerKey?: string | undefined;
1198
+ } | {
1199
+ command: {
1200
+ reference: {
1201
+ tenantId: string;
1202
+ projectId: string;
1203
+ fileId: string;
1204
+ versionId: string;
1205
+ checksumSha256: string;
1206
+ byteSize: number;
1207
+ contentType: "application/json" | "application/pdf" | "application/octet-stream" | "text/plain" | "image/png" | "image/jpeg" | "image/webp" | "audio/wav" | "video/mp4";
1208
+ deviceId: string;
1209
+ };
1210
+ requestId: string;
1211
+ expectedRevision: number;
1212
+ metadata: {
1213
+ label: string;
1214
+ } | null;
1215
+ allowInspect: boolean;
1216
+ allowPublish: boolean;
1217
+ expiresAt: string;
1218
+ };
1219
+ expectedLocalRevision: number;
1220
+ action: "access";
1221
+ ownerKey?: string | undefined;
1222
+ } | {
1223
+ reference: {
1224
+ tenantId: string;
1225
+ projectId: string;
1226
+ fileId: string;
1227
+ versionId: string;
1228
+ checksumSha256: string;
1229
+ byteSize: number;
1230
+ contentType: "application/json" | "application/pdf" | "application/octet-stream" | "text/plain" | "image/png" | "image/jpeg" | "image/webp" | "audio/wav" | "video/mp4";
1231
+ deviceId: string;
1232
+ };
1233
+ requestId: string;
1234
+ action: "sync";
1235
+ ownerKey?: string | undefined;
1236
+ } | {
1237
+ reference: {
1238
+ tenantId: string;
1239
+ projectId: string;
1240
+ fileId: string;
1241
+ versionId: string;
1242
+ checksumSha256: string;
1243
+ byteSize: number;
1244
+ contentType: "application/json" | "application/pdf" | "application/octet-stream" | "text/plain" | "image/png" | "image/jpeg" | "image/webp" | "audio/wav" | "video/mp4";
1245
+ deviceId: string;
1246
+ };
1247
+ requestId: string;
1248
+ action: "resume-access";
1249
+ ownerKey?: string | undefined;
1250
+ } | {
1251
+ tenantId: string;
1252
+ projectId: string;
1253
+ deviceId: string;
1254
+ requestId: string;
1255
+ action: "import-receipt";
1256
+ ownerKey?: string | undefined;
1257
+ };
1258
+ } | {
823
1259
  operation: "agent.discover";
824
1260
  binary?: string | undefined;
825
1261
  } | {
@@ -853,6 +1289,7 @@ export declare class NativeStudioLocalRuntimeClient {
853
1289
  } | {
854
1290
  operation: "workspace.configure";
855
1291
  policy: {
1292
+ acceptNewWork: boolean;
856
1293
  mode: "CONTINUOUS" | "IDLE_ONLY";
857
1294
  idleAfterSeconds: number;
858
1295
  maxConcurrentJobs: number;
@@ -1060,10 +1497,8 @@ export declare class NativeStudioLocalRuntimeClient {
1060
1497
  operation: "runtime.inventory";
1061
1498
  } | {
1062
1499
  operation: "session.issue";
1063
- projects: {
1064
- tenantId: string;
1065
- projectId: string;
1066
- }[];
1500
+ tenantId: string;
1501
+ deviceId: string;
1067
1502
  expiresAt: string;
1068
1503
  } | {
1069
1504
  operation: "runtime.stop";
@@ -1107,9 +1542,15 @@ export declare class NativeStudioLocalRuntimeClient {
1107
1542
  deviceId: string;
1108
1543
  origin: string;
1109
1544
  } | undefined;
1545
+ deviceCapabilities?: {
1546
+ deviceRevision: number;
1547
+ tenantMediaValidation: boolean;
1548
+ tenantMediaProcessing: boolean;
1549
+ 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")[];
1550
+ } | undefined;
1110
1551
  }>;
1111
1552
  doctor(signal?: AbortSignal): Promise<{
1112
- mode: "MANAGED" | "INSTALLED";
1553
+ mode: "INSTALLED" | "MANAGED";
1113
1554
  availability: "UNAVAILABLE" | "AVAILABLE";
1114
1555
  reason: "QUALIFIED_PROCESS_TOOLS" | "MANAGED_TOOLS_MISSING" | "TOOL_QUALIFICATION_FAILED";
1115
1556
  nativeExecutionReady: boolean;
@@ -2158,13 +2599,17 @@ export { NativeStudioSdkError } from "./errors.js";
2158
2599
  export { LocalRuntimeDescriptorSchema, LocalManagementInventorySchema, LocalSignedCatalogueSchema, LocalReleaseSchema, LocalUpdatePlanSchema, LocalToolChoiceSchema, LocalClientNextActionSchema, canonicalLocalJson, LocalSessionConnectorSchema as LocalConnectorSchema, } from "../contracts/local-execution/index.js";
2159
2600
  export type { LocalRelease, LocalSignedCatalogue, LocalUpdatePlan, LocalToolChoice, LocalRuntimeDescriptor, LocalSessionConnector, } from "../contracts/local-execution/index.js";
2160
2601
  export { NativeStudioLocalDeviceClient } from "./local-runtime/device-client.js";
2161
- export { EnrollLocalDeviceSchema, GrantLocalDeviceSchema, RevokeLocalDeviceSchema, RevokeLocalDeviceGrantSchema, StartLocalPreviewSchema, StartLocalFinalRenderSchema, LocalDeviceTransportConfigurationSchema, } from "../contracts/local-execution/index.js";
2162
- export { LocalToolSelectionSchema, LocalWorkScopeSchema, } from "../contracts/local-execution/index.js";
2602
+ export { EnrollLocalDeviceSchema, RevokeLocalDeviceSchema, StartLocalPreviewSchema, StartLocalFinalRenderSchema, LocalDeviceTransportConfigurationSchema, } from "../contracts/local-execution/index.js";
2603
+ export { LocalCompositionBrowserSelectionSchema, LocalToolSelectionSchema, LocalWorkScopeSchema, } from "../contracts/local-execution/index.js";
2163
2604
  export { LocalExecutionListInputSchema, LocalExecutionPageSchema, } from "../contracts/local-execution/index.js";
2164
2605
  export { LocalMcpOutputSchemas, LocalMcpFailureSchema, } from "../contracts/local-execution/index.js";
2165
2606
  export { LocalDoctorReportSchema } from "../contracts/local-execution/index.js";
2166
- export { LocalManagementCommandSchema, LocalManagementResultSchema, LocalManagementReceiptSchema, localManagementRoutes, LocalDeviceViewSchema, LocalDeviceGrantSchema, LocalPreviewAdmissionSchema, LocalFinalRenderAdmissionSchema, LocalDeviceChallengeSchema, LocalDeviceSessionSchema, } from "../contracts/local-execution/index.js";
2607
+ export { LocalManagementCommandSchema, LocalDeviceManagementCommandSchema, LocalManagementResultSchema, LocalManagementReceiptSchema, localManagementRoutes, LocalDeviceViewSchema, LocalPreviewAdmissionSchema, LocalFinalRenderAdmissionSchema, LocalDeviceChallengeSchema, LocalDeviceSessionSchema, } from "../contracts/local-execution/index.js";
2167
2608
  export { LocalAgentGrantSchema, LocalAgentSnapshotSchema, localAgentSnapshotFromContext, localAgentNativeProposal, localAgentMediaSnapshot, localAgentMediaProposal, LocalAgentReviewViewSchema, LocalAgentProbeSchema, LocalAgentDiscoverySchema, } from "../contracts/local-execution/index.js";
2168
2609
  export { NativeStudioLocalWorkspaceClient } from "./local-runtime/workspace.js";
2610
+ export * from "./local-runtime/library.js";
2169
2611
  export { LocalOfflineCallSchema, LocalOfflinePageSchema, } from "../contracts/local-execution/index.js";
2170
2612
  export { LocalResourcePolicySchema, LocalResourceSettingsSchema, LocalWorkspaceInspectionSchema, LocalStorageInspectionSchema, LocalExecutionProgressSchema, LocalExecutionInspectInputSchema, LocalDiagnosticsSchema, } from "../contracts/local-execution/index.js";
2613
+ export { importedNormalizationValidationProfile, tenantRenderValidationProfile, whisperCppRecognitionProfile, } from "../contracts/local-execution/index.js";
2614
+ export { processorFamilies } from "../contracts/local-execution/index.js";
2615
+ export type { TenantProcessorKind } from "../contracts/local-execution/index.js";
package/dist/entry.js CHANGED
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- if(process.argv[2]==="local"){if(process.argv[3]==="mcp"){const{runLocalMcp}=await import("./_chunks/local-mcp-LCHXL2IE.js");process.exitCode=await runLocalMcp(process.argv.slice(4))}else{const{runLocalCli}=await import("./_chunks/local-main-J2G7OU5E.js");const result=await runLocalCli(process.argv.slice(3));process.stdout.write(JSON.stringify(result.output)+"\n");process.exitCode=result.exitCode}}else if(process.argv[2]==="mcp"){const{runMcpStdio}=await import("./_chunks/stdio-main-4Z2JVCMO.js");process.exitCode=await runMcpStdio(process.argv.slice(3),process.env)}else{const{runRemoteCli}=await import("./_chunks/main-PPA76ARV.js");const result=await runRemoteCli(process.argv.slice(2));process.stdout.write(JSON.stringify(result.output)+"\n");process.exitCode=result.exitCode}
2
+ if(process.argv[2]==="local"){if(process.argv[3]==="mcp"){const{runLocalMcp}=await import("./_chunks/local-mcp-HMS5ODZN.js");process.exitCode=await runLocalMcp(process.argv.slice(4))}else{const{runLocalCli}=await import("./_chunks/local-main-DX47PKHX.js");const result=await runLocalCli(process.argv.slice(3));process.stdout.write(JSON.stringify(result.output)+"\n");process.exitCode=result.exitCode}}else if(process.argv[2]==="mcp"){const{runMcpStdio}=await import("./_chunks/stdio-main-JJCNIY4H.js");process.exitCode=await runMcpStdio(process.argv.slice(3),process.env)}else{const{runRemoteCli}=await import("./_chunks/main-HQGVZ2O2.js");const result=await runRemoteCli(process.argv.slice(2));process.stdout.write(JSON.stringify(result.output)+"\n");process.exitCode=result.exitCode}