@nativestudio/cli 0.3.0-rc.1 → 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 (185) hide show
  1. package/COMPATIBILITY.json +33 -8
  2. package/LICENSE +201 -21
  3. package/components/runtime.json +29 -4
  4. package/components/runtime.tgz +0 -0
  5. package/dist/_chunks/chunk-37PAJCKA.js +1 -0
  6. package/dist/_chunks/{chunk-G42IS5JF.js → chunk-3AVC742O.js} +1 -1
  7. package/dist/_chunks/chunk-4U4Y2K73.js +1 -0
  8. package/dist/_chunks/chunk-65FQPXKC.js +1 -0
  9. package/dist/_chunks/chunk-6DVZBKNV.js +1 -0
  10. package/dist/_chunks/{chunk-25EDDZQA.js → chunk-6LU6GJKW.js} +1 -1
  11. package/dist/_chunks/chunk-6N433ZWR.js +1 -0
  12. package/dist/_chunks/chunk-EGUJ2YRX.js +1 -0
  13. package/dist/_chunks/{chunk-MSOMVWKN.js → chunk-FU3524Z6.js} +1 -1
  14. package/dist/_chunks/chunk-GZBWA4YN.js +1 -0
  15. package/dist/_chunks/chunk-HR34UMPP.js +1 -0
  16. package/dist/_chunks/chunk-HTUTYIRU.js +1 -0
  17. package/dist/_chunks/chunk-KB2GVAN7.js +1 -0
  18. package/dist/_chunks/chunk-L543FEDK.js +1 -0
  19. package/dist/_chunks/chunk-LISB5W7B.js +1 -0
  20. package/dist/_chunks/chunk-LUAH3KAS.js +1 -0
  21. package/dist/_chunks/chunk-M2KVQQ4X.js +1 -0
  22. package/dist/_chunks/chunk-ODGPV7MM.js +1 -0
  23. package/dist/_chunks/chunk-PUBMDP4E.js +1 -0
  24. package/dist/_chunks/chunk-Q57YFNK5.js +1 -0
  25. package/dist/_chunks/chunk-QAJH4RJQ.js +1 -0
  26. package/dist/_chunks/chunk-WFRRNWO5.js +1 -0
  27. package/dist/_chunks/connect-5YMO6MAR.js +1 -0
  28. package/dist/_chunks/device-management-2OTGEBJQ.js +1 -0
  29. package/dist/_chunks/device-preflight-XPHFZGLO.js +1 -0
  30. package/dist/_chunks/devices-inventory-VWNTU5TE.js +1 -0
  31. package/dist/_chunks/devices-main-VQ4APRVS.js +1 -0
  32. package/dist/_chunks/{files-TBJVDQWU.js → files-TTIQ7LYJ.js} +1 -1
  33. package/dist/_chunks/host-main-H7DPLV7B.js +1 -0
  34. package/dist/_chunks/http-profile-MNJX6OXO.js +1 -0
  35. package/dist/_chunks/library-main-SAC3V2ML.js +1 -0
  36. package/dist/_chunks/local-main-D6B3APK6.js +1 -0
  37. package/dist/_chunks/local-mcp-ONCANLPH.js +1 -0
  38. package/dist/_chunks/main-PW6HB3NC.js +2 -0
  39. package/dist/_chunks/mcp-ZIGBYFUW.js +1 -0
  40. package/dist/_chunks/oauth-HC6TI7HB.js +1 -0
  41. package/dist/_chunks/render-main-GYWKP72O.js +1 -0
  42. package/dist/_chunks/source-import-BC5GNCUZ.js +1 -0
  43. package/dist/_chunks/src-R6DNU336.js +1 -0
  44. package/dist/_chunks/{stdio-main-JEADWO7U.js → stdio-main-RIJS5REB.js} +1 -1
  45. package/dist/_chunks/workspace-main-GNSKHKBG.js +1 -0
  46. package/dist/_types/cli/local/desktop-contract.d.ts +1969 -1
  47. package/dist/_types/cli/local/desktop-device-contract.d.ts +779 -0
  48. package/dist/_types/cli/local/desktop-device-navigation.d.ts +3 -0
  49. package/dist/_types/cli/local/desktop-device-owner.d.ts +244 -0
  50. package/dist/_types/cli/local/desktop-device-state.d.ts +397 -0
  51. package/dist/_types/cli/local/desktop-library.d.ts +853 -0
  52. package/dist/_types/cli/local/desktop-owner.d.ts +735 -1
  53. package/dist/_types/cli/local/ledger.d.ts +64 -10
  54. package/dist/_types/cli/local/manager.d.ts +1146 -43
  55. package/dist/_types/cli/local/mcp-tools.d.ts +287 -46
  56. package/dist/_types/cli/local/releases.d.ts +28 -5
  57. package/dist/_types/cli/local-management.d.ts +5 -0
  58. package/dist/_types/cli/local-navigation.d.ts +1 -0
  59. package/dist/_types/contracts/artifact-discovery.d.ts +76 -4
  60. package/dist/_types/contracts/audio.d.ts +4 -0
  61. package/dist/_types/contracts/composition-authoring.d.ts +8 -8
  62. package/dist/_types/contracts/composition-frame-render.d.ts +4 -4
  63. package/dist/_types/contracts/composition-render-base.d.ts +5 -4
  64. package/dist/_types/contracts/composition-render.d.ts +8 -8
  65. package/dist/_types/contracts/composition-repair.d.ts +10 -10
  66. package/dist/_types/contracts/composition-source-review.d.ts +12 -12
  67. package/dist/_types/contracts/delivery-manifest.d.ts +25 -11729
  68. package/dist/_types/contracts/delivery-operations.d.ts +51 -3909
  69. package/dist/_types/contracts/delivery-summary.d.ts +2 -2
  70. package/dist/_types/contracts/delivery-validation.d.ts +23 -0
  71. package/dist/_types/contracts/device-render.d.ts +77 -0
  72. package/dist/_types/contracts/editor-intelligence.d.ts +114 -2491
  73. package/dist/_types/contracts/exploration-recommendation.d.ts +263 -11607
  74. package/dist/_types/contracts/external-agent-access.d.ts +4 -6
  75. package/dist/_types/contracts/final-ready.d.ts +22 -22
  76. package/dist/_types/contracts/final-render.d.ts +1569 -6940
  77. package/dist/_types/contracts/human-identity.d.ts +13 -0
  78. package/dist/_types/contracts/index.d.ts +4 -0
  79. package/dist/_types/contracts/interface/media-output.d.ts +28 -0
  80. package/dist/_types/contracts/interface/production-snapshot.d.ts +15 -193
  81. package/dist/_types/contracts/keyframe-generation.d.ts +29 -0
  82. package/dist/_types/contracts/local-execution/agent-context.d.ts +365 -0
  83. package/dist/_types/contracts/local-execution/agent-evidence.d.ts +79 -0
  84. package/dist/_types/contracts/local-execution/agent-grant.d.ts +31 -0
  85. package/dist/_types/contracts/local-execution/agent-review.d.ts +496 -64
  86. package/dist/_types/contracts/local-execution/common.d.ts +12 -11
  87. package/dist/_types/contracts/local-execution/completion.d.ts +41 -45
  88. package/dist/_types/contracts/local-execution/components.d.ts +45 -0
  89. package/dist/_types/contracts/local-execution/descriptor.d.ts +38 -0
  90. package/dist/_types/contracts/local-execution/device-authority.d.ts +31 -0
  91. package/dist/_types/contracts/local-execution/device-inventory.d.ts +76 -0
  92. package/dist/_types/contracts/local-execution/device-workspace.d.ts +11 -0
  93. package/dist/_types/contracts/local-execution/device.d.ts +19 -51
  94. package/dist/_types/contracts/local-execution/external-generation.d.ts +199 -0
  95. package/dist/_types/contracts/local-execution/index.d.ts +26 -0
  96. package/dist/_types/contracts/local-execution/ipc.d.ts +2756 -228
  97. package/dist/_types/contracts/local-execution/library-command.d.ts +620 -0
  98. package/dist/_types/contracts/local-execution/library-result.d.ts +408 -0
  99. package/dist/_types/contracts/local-execution/library.d.ts +873 -0
  100. package/dist/_types/contracts/local-execution/lifecycle.d.ts +242 -42
  101. package/dist/_types/contracts/local-execution/local-navigation.d.ts +275 -56
  102. package/dist/_types/contracts/local-execution/management.d.ts +400 -0
  103. package/dist/_types/contracts/local-execution/media-recipe.d.ts +207 -0
  104. package/dist/_types/contracts/local-execution/media-validation-request.d.ts +232 -0
  105. package/dist/_types/contracts/local-execution/media-validation.d.ts +262 -0
  106. package/dist/_types/contracts/local-execution/object-transfer.d.ts +155 -0
  107. package/dist/_types/contracts/local-execution/offline.d.ts +59 -0
  108. package/dist/_types/contracts/local-execution/preview.d.ts +144 -3564
  109. package/dist/_types/contracts/local-execution/processor-capability.d.ts +39 -0
  110. package/dist/_types/contracts/local-execution/processor-direct.d.ts +290 -0
  111. package/dist/_types/contracts/local-execution/processor-recipes.d.ts +1122 -0
  112. package/dist/_types/contracts/local-execution/processor.d.ts +6173 -0
  113. package/dist/_types/contracts/local-execution/project-source-direct.d.ts +201 -0
  114. package/dist/_types/contracts/local-execution/qwen-tts.d.ts +31 -0
  115. package/dist/_types/contracts/local-execution/recognition.d.ts +170 -0
  116. package/dist/_types/contracts/local-execution/speech.d.ts +95 -0
  117. package/dist/_types/contracts/local-execution/tool-selection.d.ts +45 -5
  118. package/dist/_types/contracts/local-execution/whisper.d.ts +24 -0
  119. package/dist/_types/contracts/local-execution/work.d.ts +111 -3403
  120. package/dist/_types/contracts/local-execution/workspace.d.ts +141 -0
  121. package/dist/_types/contracts/media-category.d.ts +11 -0
  122. package/dist/_types/contracts/media-observation.d.ts +929 -8
  123. package/dist/_types/contracts/navigation.d.ts +25 -15
  124. package/dist/_types/contracts/observation-profile.d.ts +3 -3
  125. package/dist/_types/contracts/programmatic-composition.d.ts +24 -24
  126. package/dist/_types/contracts/programmatic-exploration.d.ts +348 -5985
  127. package/dist/_types/contracts/provider-catalog.d.ts +3 -3
  128. package/dist/_types/contracts/provider-models.d.ts +16 -8
  129. package/dist/_types/contracts/provider.d.ts +66 -1
  130. package/dist/_types/contracts/reference-preview.d.ts +19 -0
  131. package/dist/_types/contracts/repair-lifecycle.d.ts +52 -384
  132. package/dist/_types/contracts/repair-plan.d.ts +16 -98
  133. package/dist/_types/contracts/repair-strategy.d.ts +162 -4481
  134. package/dist/_types/contracts/review-intelligence-final-output.d.ts +317 -8139
  135. package/dist/_types/contracts/review-intelligence.d.ts +450 -11420
  136. package/dist/_types/contracts/rough-cut-manifest.d.ts +8 -3
  137. package/dist/_types/contracts/rough-cut-profile.d.ts +12 -3
  138. package/dist/_types/contracts/rough-cut-review.d.ts +134 -12494
  139. package/dist/_types/contracts/rough-cut.d.ts +1073 -5675
  140. package/dist/_types/contracts/sound-making-plan.d.ts +3 -2
  141. package/dist/_types/contracts/speech-cost.d.ts +81 -0
  142. package/dist/_types/contracts/speech.d.ts +149 -0
  143. package/dist/_types/contracts/temporal-evidence-operation.d.ts +1 -0
  144. package/dist/_types/contracts/timeline-audio.d.ts +1 -0
  145. package/dist/_types/contracts/timeline-manifest.d.ts +2 -0
  146. package/dist/_types/contracts/timeline-source-sound.d.ts +1 -0
  147. package/dist/_types/contracts/timeline-v2.d.ts +4 -0
  148. package/dist/_types/contracts/timeline-version-reader.d.ts +10 -0
  149. package/dist/_types/contracts/timeline-visual-layers.d.ts +4 -0
  150. package/dist/_types/contracts/timeline.d.ts +50 -4850
  151. package/dist/_types/contracts/transcription.d.ts +1 -1
  152. package/dist/_types/contracts/video-generation.d.ts +33 -0
  153. package/dist/_types/contracts/visual-layer-render.d.ts +58 -15
  154. package/dist/_types/contracts/visual-sequence.d.ts +22 -0
  155. package/dist/_types/contracts/workspace.d.ts +32 -0
  156. package/dist/_types/sdk/errors.d.ts +8 -3
  157. package/dist/_types/sdk/local-runtime/components.d.ts +2 -0
  158. package/dist/_types/sdk/local-runtime/device-client.d.ts +127 -17
  159. package/dist/_types/sdk/local-runtime/library.d.ts +268 -0
  160. package/dist/_types/sdk/local-runtime/workspace.d.ts +186 -0
  161. package/dist/_types/sdk/local-runtime-client.d.ts +1773 -89
  162. package/dist/entry.js +1 -1
  163. package/dist/local-management.js +1 -1
  164. package/dist/local-navigation.js +1 -1
  165. package/dist/native/JobNative.cs +10 -0
  166. package/dist/native/JobRunner.cs +24 -3
  167. package/dist/native/NativeMain.cs +15 -0
  168. package/package.json +2 -8
  169. package/README.md +0 -78
  170. package/dist/_chunks/chunk-6NVIN2NI.js +0 -1
  171. package/dist/_chunks/chunk-E57YVMQ4.js +0 -1
  172. package/dist/_chunks/chunk-EAZKDCLD.js +0 -1
  173. package/dist/_chunks/chunk-GIEYSDCG.js +0 -1
  174. package/dist/_chunks/chunk-GJ7BZJLW.js +0 -1
  175. package/dist/_chunks/chunk-HLKERZIE.js +0 -1
  176. package/dist/_chunks/chunk-QC7RLTGU.js +0 -1
  177. package/dist/_chunks/chunk-RUMDDTON.js +0 -1
  178. package/dist/_chunks/chunk-U2UKGYGF.js +0 -1
  179. package/dist/_chunks/local-main-SOERK22D.js +0 -1
  180. package/dist/_chunks/local-mcp-JLPXXIDW.js +0 -1
  181. package/dist/_chunks/main-4SNF5EKE.js +0 -2
  182. package/dist/_chunks/mcp-EIMXNRH3.js +0 -1
  183. package/dist/_chunks/oauth-257CEUQH.js +0 -1
  184. package/dist/_chunks/project-connect-6MH2QG6G.js +0 -1
  185. package/dist/_chunks/src-7F6ZEU3U.js +0 -1
@@ -0,0 +1,268 @@
1
+ import { Readable } from "node:stream";
2
+ import type { NativeStudioLocalRuntimeClient } from "../local-runtime-client.js";
3
+ /** Owner 与受限调用使用同一 Runtime 接口,最终权限由 Runtime 逐次校验。 */
4
+ export declare class NativeStudioLocalLibraryClient {
5
+ private readonly client;
6
+ constructor(client: NativeStudioLocalRuntimeClient);
7
+ capability(signal?: AbortSignal): Promise<{
8
+ protocol: "NVS_LOCAL_LIBRARY_V1";
9
+ available: boolean;
10
+ profileDigest: string;
11
+ }>;
12
+ call(raw: unknown, signal?: AbortSignal): Promise<{
13
+ reference: {
14
+ tenantId: string;
15
+ projectId: string;
16
+ fileId: string;
17
+ versionId: string;
18
+ checksumSha256: string;
19
+ byteSize: number;
20
+ contentType: "application/json" | "application/pdf" | "application/octet-stream" | "text/plain" | "image/png" | "image/jpeg" | "image/webp" | "audio/wav" | "video/mp4";
21
+ deviceId: string;
22
+ };
23
+ ownerKey: string;
24
+ title: string;
25
+ createdAt: string;
26
+ revision: number;
27
+ access: {
28
+ state: "REJECTED" | "UNKNOWN" | "PENDING" | "LOCAL_ONLY" | "SYNCED";
29
+ desired: {
30
+ reference: {
31
+ tenantId: string;
32
+ projectId: string;
33
+ fileId: string;
34
+ versionId: string;
35
+ checksumSha256: string;
36
+ byteSize: number;
37
+ contentType: "application/json" | "application/pdf" | "application/octet-stream" | "text/plain" | "image/png" | "image/jpeg" | "image/webp" | "audio/wav" | "video/mp4";
38
+ deviceId: string;
39
+ };
40
+ requestId: string;
41
+ expectedRevision: number;
42
+ metadata: {
43
+ label: string;
44
+ } | null;
45
+ allowInspect: boolean;
46
+ allowPublish: boolean;
47
+ expiresAt: string;
48
+ } | null;
49
+ confirmed: {
50
+ reference: {
51
+ tenantId: string;
52
+ projectId: string;
53
+ fileId: string;
54
+ versionId: string;
55
+ checksumSha256: string;
56
+ byteSize: number;
57
+ contentType: "application/json" | "application/pdf" | "application/octet-stream" | "text/plain" | "image/png" | "image/jpeg" | "image/webp" | "audio/wav" | "video/mp4";
58
+ deviceId: string;
59
+ };
60
+ requestId: string;
61
+ expectedRevision: number;
62
+ metadata: {
63
+ label: string;
64
+ } | null;
65
+ allowInspect: boolean;
66
+ allowPublish: boolean;
67
+ expiresAt: string;
68
+ revision: number;
69
+ recordedAt: string;
70
+ } | null;
71
+ };
72
+ } | {
73
+ items: {
74
+ reference: {
75
+ tenantId: string;
76
+ projectId: string;
77
+ fileId: string;
78
+ versionId: string;
79
+ checksumSha256: string;
80
+ byteSize: number;
81
+ contentType: "application/json" | "application/pdf" | "application/octet-stream" | "text/plain" | "image/png" | "image/jpeg" | "image/webp" | "audio/wav" | "video/mp4";
82
+ deviceId: string;
83
+ };
84
+ metadata: {
85
+ label: string;
86
+ } | null;
87
+ accessRevision: number;
88
+ allowInspect: boolean;
89
+ allowPublish: boolean;
90
+ expiresAt: string;
91
+ }[];
92
+ nextCursor: string | null;
93
+ } | {
94
+ items: {
95
+ reference: {
96
+ tenantId: string;
97
+ projectId: string;
98
+ fileId: string;
99
+ versionId: string;
100
+ checksumSha256: string;
101
+ byteSize: number;
102
+ contentType: "application/json" | "application/pdf" | "application/octet-stream" | "text/plain" | "image/png" | "image/jpeg" | "image/webp" | "audio/wav" | "video/mp4";
103
+ deviceId: string;
104
+ };
105
+ ownerKey: string;
106
+ title: string;
107
+ createdAt: string;
108
+ revision: number;
109
+ access: {
110
+ state: "REJECTED" | "UNKNOWN" | "PENDING" | "LOCAL_ONLY" | "SYNCED";
111
+ desired: {
112
+ reference: {
113
+ tenantId: string;
114
+ projectId: string;
115
+ fileId: string;
116
+ versionId: string;
117
+ checksumSha256: string;
118
+ byteSize: number;
119
+ contentType: "application/json" | "application/pdf" | "application/octet-stream" | "text/plain" | "image/png" | "image/jpeg" | "image/webp" | "audio/wav" | "video/mp4";
120
+ deviceId: string;
121
+ };
122
+ requestId: string;
123
+ expectedRevision: number;
124
+ metadata: {
125
+ label: string;
126
+ } | null;
127
+ allowInspect: boolean;
128
+ allowPublish: boolean;
129
+ expiresAt: string;
130
+ } | null;
131
+ confirmed: {
132
+ reference: {
133
+ tenantId: string;
134
+ projectId: string;
135
+ fileId: string;
136
+ versionId: string;
137
+ checksumSha256: string;
138
+ byteSize: number;
139
+ contentType: "application/json" | "application/pdf" | "application/octet-stream" | "text/plain" | "image/png" | "image/jpeg" | "image/webp" | "audio/wav" | "video/mp4";
140
+ deviceId: string;
141
+ };
142
+ requestId: string;
143
+ expectedRevision: number;
144
+ metadata: {
145
+ label: string;
146
+ } | null;
147
+ allowInspect: boolean;
148
+ allowPublish: boolean;
149
+ expiresAt: string;
150
+ revision: number;
151
+ recordedAt: string;
152
+ } | null;
153
+ };
154
+ }[];
155
+ nextCursor: string | null;
156
+ } | {
157
+ reference: {
158
+ tenantId: string;
159
+ projectId: string;
160
+ fileId: string;
161
+ versionId: string;
162
+ checksumSha256: string;
163
+ byteSize: number;
164
+ contentType: "application/json" | "application/pdf" | "application/octet-stream" | "text/plain" | "image/png" | "image/jpeg" | "image/webp" | "audio/wav" | "video/mp4";
165
+ deviceId: string;
166
+ };
167
+ metadata: {
168
+ label: string;
169
+ } | null;
170
+ accessRevision: number;
171
+ allowInspect: boolean;
172
+ allowPublish: boolean;
173
+ expiresAt: string;
174
+ } | {
175
+ reference: {
176
+ tenantId: string;
177
+ projectId: string;
178
+ fileId: string;
179
+ versionId: string;
180
+ checksumSha256: string;
181
+ byteSize: number;
182
+ contentType: "application/json" | "application/pdf" | "application/octet-stream" | "text/plain" | "image/png" | "image/jpeg" | "image/webp" | "audio/wav" | "video/mp4";
183
+ deviceId: string;
184
+ };
185
+ offset: number;
186
+ contentBase64: string;
187
+ complete: boolean;
188
+ } | {
189
+ fileCount: number;
190
+ totalBytes: number;
191
+ quotaBytes: number;
192
+ availableDiskBytes: number;
193
+ } | null>;
194
+ import(raw: unknown, bytes: Readable, signal?: AbortSignal): Promise<{
195
+ reference: {
196
+ tenantId: string;
197
+ projectId: string;
198
+ fileId: string;
199
+ versionId: string;
200
+ checksumSha256: string;
201
+ byteSize: number;
202
+ contentType: "application/json" | "application/pdf" | "application/octet-stream" | "text/plain" | "image/png" | "image/jpeg" | "image/webp" | "audio/wav" | "video/mp4";
203
+ deviceId: string;
204
+ };
205
+ ownerKey: string;
206
+ title: string;
207
+ createdAt: string;
208
+ revision: number;
209
+ access: {
210
+ state: "REJECTED" | "UNKNOWN" | "PENDING" | "LOCAL_ONLY" | "SYNCED";
211
+ desired: {
212
+ reference: {
213
+ tenantId: string;
214
+ projectId: string;
215
+ fileId: string;
216
+ versionId: string;
217
+ checksumSha256: string;
218
+ byteSize: number;
219
+ contentType: "application/json" | "application/pdf" | "application/octet-stream" | "text/plain" | "image/png" | "image/jpeg" | "image/webp" | "audio/wav" | "video/mp4";
220
+ deviceId: string;
221
+ };
222
+ requestId: string;
223
+ expectedRevision: number;
224
+ metadata: {
225
+ label: string;
226
+ } | null;
227
+ allowInspect: boolean;
228
+ allowPublish: boolean;
229
+ expiresAt: string;
230
+ } | null;
231
+ confirmed: {
232
+ reference: {
233
+ tenantId: string;
234
+ projectId: string;
235
+ fileId: string;
236
+ versionId: string;
237
+ checksumSha256: string;
238
+ byteSize: number;
239
+ contentType: "application/json" | "application/pdf" | "application/octet-stream" | "text/plain" | "image/png" | "image/jpeg" | "image/webp" | "audio/wav" | "video/mp4";
240
+ deviceId: string;
241
+ };
242
+ requestId: string;
243
+ expectedRevision: number;
244
+ metadata: {
245
+ label: string;
246
+ } | null;
247
+ allowInspect: boolean;
248
+ allowPublish: boolean;
249
+ expiresAt: string;
250
+ revision: number;
251
+ recordedAt: string;
252
+ } | null;
253
+ };
254
+ }>;
255
+ media(raw: unknown, input?: {
256
+ method?: "GET" | "HEAD";
257
+ range?: string;
258
+ }, signal?: AbortSignal): Promise<{
259
+ contentRange?: string;
260
+ stream: Readable;
261
+ contentType: "application/json" | "application/pdf" | "application/octet-stream" | "text/plain" | "image/png" | "image/jpeg" | "image/webp" | "audio/wav" | "video/mp4";
262
+ byteSize: number;
263
+ contentLength: number;
264
+ httpStatus: 200 | 206;
265
+ }>;
266
+ }
267
+ export { LocalLibraryCallSchema, LocalLibraryCapabilitySchema, LocalLibraryImportSchema, LocalLibraryItemSchema, LocalLibraryPageSchema, LocalLibraryProjectionPageSchema, LocalLibraryProjectionSchema, LocalLibraryReadReplySchema, LocalLibraryUsageSchema, LocalLibraryGetSchema, LocalLibraryQuerySchema, LocalLibraryProjectionQuerySchema, LocalLibraryReferenceSchema, LocalLibraryImportReceiptQuerySchema, LocalLibraryContentTypeSchema, } from "../../contracts/local-execution/index.js";
268
+ export { localLibraryProfile } from "../../contracts/local-execution/index.js";
@@ -0,0 +1,186 @@
1
+ import type { NativeStudioLocalRuntimeClient } from "../local-runtime-client.js";
2
+ /** Owner-only mechanics. Scoped connectors are still denied by the Runtime. */
3
+ export declare class NativeStudioLocalWorkspaceClient {
4
+ private readonly client;
5
+ constructor(client: Pick<NativeStudioLocalRuntimeClient, "call">);
6
+ offline(raw: unknown, signal?: AbortSignal): Promise<{
7
+ historical: true;
8
+ items: {
9
+ snapshot: {
10
+ projectId: string;
11
+ title: string;
12
+ savedAt: string;
13
+ expiresAt: string;
14
+ productions: {
15
+ id: string;
16
+ title: string;
17
+ }[];
18
+ possiblyTruncated: boolean;
19
+ };
20
+ draft: {
21
+ text: string;
22
+ revision: number;
23
+ };
24
+ }[];
25
+ }>;
26
+ inspect(signal?: AbortSignal): Promise<{
27
+ settings: {
28
+ revision: number;
29
+ policy: {
30
+ acceptNewWork: boolean;
31
+ mode: "CONTINUOUS" | "IDLE_ONLY";
32
+ idleAfterSeconds: number;
33
+ maxConcurrentJobs: number;
34
+ cpuCores: 2 | 1;
35
+ memoryMiB: number;
36
+ cacheQuotaBytes: number;
37
+ };
38
+ };
39
+ storage: {
40
+ cacheBytes: number;
41
+ protectedBytes: number;
42
+ reclaimableBytes: number;
43
+ transferBytes: number;
44
+ journalBytes: number;
45
+ availableDiskBytes: number;
46
+ quotaBytes: number;
47
+ overQuota: boolean;
48
+ reviewBytes?: number | undefined;
49
+ ownerStagingBytes?: number | undefined;
50
+ };
51
+ scheduling: {
52
+ state: "READY" | "PAUSED" | "WAITING_FOR_IDLE" | "AT_CAPACITY" | "DRAINING";
53
+ activeJobs: number;
54
+ idleObservationCurrent: boolean;
55
+ };
56
+ }>;
57
+ configure(raw: unknown, expectedRevision: number, signal?: AbortSignal): Promise<{
58
+ settings: {
59
+ revision: number;
60
+ policy: {
61
+ acceptNewWork: boolean;
62
+ mode: "CONTINUOUS" | "IDLE_ONLY";
63
+ idleAfterSeconds: number;
64
+ maxConcurrentJobs: number;
65
+ cpuCores: 2 | 1;
66
+ memoryMiB: number;
67
+ cacheQuotaBytes: number;
68
+ };
69
+ };
70
+ storage: {
71
+ cacheBytes: number;
72
+ protectedBytes: number;
73
+ reclaimableBytes: number;
74
+ transferBytes: number;
75
+ journalBytes: number;
76
+ availableDiskBytes: number;
77
+ quotaBytes: number;
78
+ overQuota: boolean;
79
+ reviewBytes?: number | undefined;
80
+ ownerStagingBytes?: number | undefined;
81
+ };
82
+ scheduling: {
83
+ state: "READY" | "PAUSED" | "WAITING_FOR_IDLE" | "AT_CAPACITY" | "DRAINING";
84
+ activeJobs: number;
85
+ idleObservationCurrent: boolean;
86
+ };
87
+ }>;
88
+ observeActivity(idleSeconds: number, observedAt: string, signal?: AbortSignal): Promise<{
89
+ settings: {
90
+ revision: number;
91
+ policy: {
92
+ acceptNewWork: boolean;
93
+ mode: "CONTINUOUS" | "IDLE_ONLY";
94
+ idleAfterSeconds: number;
95
+ maxConcurrentJobs: number;
96
+ cpuCores: 2 | 1;
97
+ memoryMiB: number;
98
+ cacheQuotaBytes: number;
99
+ };
100
+ };
101
+ storage: {
102
+ cacheBytes: number;
103
+ protectedBytes: number;
104
+ reclaimableBytes: number;
105
+ transferBytes: number;
106
+ journalBytes: number;
107
+ availableDiskBytes: number;
108
+ quotaBytes: number;
109
+ overQuota: boolean;
110
+ reviewBytes?: number | undefined;
111
+ ownerStagingBytes?: number | undefined;
112
+ };
113
+ scheduling: {
114
+ state: "READY" | "PAUSED" | "WAITING_FOR_IDLE" | "AT_CAPACITY" | "DRAINING";
115
+ activeJobs: number;
116
+ idleObservationCurrent: boolean;
117
+ };
118
+ }>;
119
+ clean(signal?: AbortSignal): Promise<{
120
+ settings: {
121
+ revision: number;
122
+ policy: {
123
+ acceptNewWork: boolean;
124
+ mode: "CONTINUOUS" | "IDLE_ONLY";
125
+ idleAfterSeconds: number;
126
+ maxConcurrentJobs: number;
127
+ cpuCores: 2 | 1;
128
+ memoryMiB: number;
129
+ cacheQuotaBytes: number;
130
+ };
131
+ };
132
+ storage: {
133
+ cacheBytes: number;
134
+ protectedBytes: number;
135
+ reclaimableBytes: number;
136
+ transferBytes: number;
137
+ journalBytes: number;
138
+ availableDiskBytes: number;
139
+ quotaBytes: number;
140
+ overQuota: boolean;
141
+ reviewBytes?: number | undefined;
142
+ ownerStagingBytes?: number | undefined;
143
+ };
144
+ scheduling: {
145
+ state: "READY" | "PAUSED" | "WAITING_FOR_IDLE" | "AT_CAPACITY" | "DRAINING";
146
+ activeJobs: number;
147
+ idleObservationCurrent: boolean;
148
+ };
149
+ }>;
150
+ diagnostics(signal?: AbortSignal): Promise<{
151
+ protocol: "NVS_LOCAL_DIAGNOSTICS_V1";
152
+ createdAt: string;
153
+ runtimeVersion: string;
154
+ runtimeRevision: number;
155
+ settings: {
156
+ revision: number;
157
+ policy: {
158
+ acceptNewWork: boolean;
159
+ mode: "CONTINUOUS" | "IDLE_ONLY";
160
+ idleAfterSeconds: number;
161
+ maxConcurrentJobs: number;
162
+ cpuCores: 2 | 1;
163
+ memoryMiB: number;
164
+ cacheQuotaBytes: number;
165
+ };
166
+ };
167
+ storage: {
168
+ cacheBytes: number;
169
+ protectedBytes: number;
170
+ reclaimableBytes: number;
171
+ transferBytes: number;
172
+ journalBytes: number;
173
+ availableDiskBytes: number;
174
+ quotaBytes: number;
175
+ overQuota: boolean;
176
+ reviewBytes?: number | undefined;
177
+ ownerStagingBytes?: number | undefined;
178
+ };
179
+ recordCounts: Record<string, number>;
180
+ failures: {
181
+ taskFingerprint: string;
182
+ code: string;
183
+ observedAt: string;
184
+ }[];
185
+ }>;
186
+ }