@nativestudio/cli 0.3.0-rc.2 → 0.3.0-rc.4
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.
- package/COMPATIBILITY.json +7 -7
- package/README.md +27 -3
- package/components/runtime.json +3 -3
- package/components/runtime.tgz +0 -0
- package/dist/_chunks/{chunk-BVSTJQJI.js → chunk-6LU6GJKW.js} +1 -1
- package/dist/_chunks/chunk-CA54SKBO.js +1 -0
- package/dist/_chunks/chunk-D533YC7J.js +1 -0
- package/dist/_chunks/{chunk-C33A2DW4.js → chunk-DXJQWTLG.js} +1 -1
- package/dist/_chunks/{chunk-7S3DJ2QE.js → chunk-FU3524Z6.js} +1 -1
- package/dist/_chunks/chunk-JLOHTDP6.js +1 -0
- package/dist/_chunks/chunk-KB2GVAN7.js +1 -0
- package/dist/_chunks/{chunk-C753RRRA.js → chunk-KNFUMWDY.js} +1 -1
- package/dist/_chunks/chunk-PBEHCYR7.js +1 -0
- package/dist/_chunks/chunk-RNOIRNC3.js +1 -0
- package/dist/_chunks/chunk-VDQOSVZY.js +1 -0
- package/dist/_chunks/chunk-XZP6RNGC.js +1 -0
- package/dist/_chunks/chunk-YKOJPJZR.js +1 -0
- package/dist/_chunks/{files-FZEK2ZZJ.js → files-TTIQ7LYJ.js} +1 -1
- package/dist/_chunks/local-main-GSL2FQOG.js +1 -0
- package/dist/_chunks/local-mcp-VYHO4ZE3.js +1 -0
- package/dist/_chunks/{main-VRIQTI6R.js → main-KLXOK7QK.js} +2 -2
- package/dist/_chunks/mcp-P7W623FE.js +1 -0
- package/dist/_chunks/oauth-WJ36KWAC.js +1 -0
- package/dist/_chunks/project-connect-W7V3OALV.js +1 -0
- package/dist/_chunks/render-main-ZW6UJHGN.js +1 -0
- package/dist/_chunks/src-BXLFLNRG.js +1 -0
- package/dist/_chunks/{stdio-main-KOGQ5OWF.js → stdio-main-4Z2JVCMO.js} +1 -1
- package/dist/_types/cli/local/desktop-contract.d.ts +1382 -0
- package/dist/_types/cli/local/desktop-device-contract.d.ts +1165 -0
- package/dist/_types/cli/local/desktop-device-navigation.d.ts +3 -0
- package/dist/_types/cli/local/desktop-device-owner.d.ts +275 -0
- package/dist/_types/cli/local/desktop-device-state.d.ts +230 -0
- package/dist/_types/cli/local/desktop-owner.d.ts +552 -1
- package/dist/_types/cli/local/ledger.d.ts +62 -10
- package/dist/_types/cli/local/manager.d.ts +485 -20
- package/dist/_types/cli/local/mcp-tools.d.ts +75 -12
- package/dist/_types/cli/local/project-render-tools.d.ts +522 -0
- package/dist/_types/cli/local/releases.d.ts +10 -2
- package/dist/_types/cli/local-management.d.ts +3 -0
- package/dist/_types/cli/local-navigation.d.ts +1 -0
- package/dist/_types/contracts/delivery-manifest.d.ts +63 -27
- package/dist/_types/contracts/delivery-operations.d.ts +21 -9
- package/dist/_types/contracts/device-render.d.ts +10 -0
- package/dist/_types/contracts/exploration-recommendation.d.ts +84 -36
- package/dist/_types/contracts/final-render.d.ts +9 -0
- package/dist/_types/contracts/index.d.ts +1 -0
- package/dist/_types/contracts/local-execution/agent-context.d.ts +365 -0
- package/dist/_types/contracts/local-execution/agent-evidence.d.ts +79 -0
- package/dist/_types/contracts/local-execution/agent-grant.d.ts +31 -0
- package/dist/_types/contracts/local-execution/agent-review.d.ts +733 -46
- package/dist/_types/contracts/local-execution/device.d.ts +10 -2
- package/dist/_types/contracts/local-execution/index.d.ts +6 -0
- package/dist/_types/contracts/local-execution/ipc.d.ts +1759 -37
- package/dist/_types/contracts/local-execution/lifecycle.d.ts +48 -6
- package/dist/_types/contracts/local-execution/local-navigation.d.ts +112 -10
- package/dist/_types/contracts/local-execution/management.d.ts +394 -0
- package/dist/_types/contracts/local-execution/media-recipe.d.ts +203 -0
- package/dist/_types/contracts/local-execution/offline.d.ts +59 -0
- package/dist/_types/contracts/local-execution/preview.d.ts +7607 -159
- package/dist/_types/contracts/local-execution/work.d.ts +7674 -294
- package/dist/_types/contracts/local-execution/workspace.d.ts +136 -0
- package/dist/_types/contracts/programmatic-exploration.d.ts +42 -18
- package/dist/_types/contracts/repair-strategy.d.ts +42 -18
- package/dist/_types/contracts/review-intelligence-final-output.d.ts +42 -18
- package/dist/_types/contracts/review-intelligence.d.ts +84 -36
- package/dist/_types/contracts/rough-cut-manifest.d.ts +7 -3
- package/dist/_types/contracts/rough-cut-profile.d.ts +12 -3
- package/dist/_types/contracts/rough-cut-review.d.ts +126 -54
- package/dist/_types/contracts/rough-cut.d.ts +85 -32
- package/dist/_types/contracts/visual-layer-render.d.ts +21 -9
- package/dist/_types/sdk/local-runtime/device-client.d.ts +138 -2
- package/dist/_types/sdk/local-runtime/workspace.d.ts +181 -0
- package/dist/_types/sdk/local-runtime-client.d.ts +1294 -56
- package/dist/entry.js +1 -1
- package/dist/local-management.js +1 -1
- package/dist/local-navigation.js +1 -1
- package/dist/native/JobNative.cs +10 -0
- package/dist/native/JobRunner.cs +24 -3
- package/dist/native/NativeMain.cs +15 -0
- package/package.json +1 -1
- package/dist/_chunks/chunk-66CUOZVI.js +0 -1
- package/dist/_chunks/chunk-E57YVMQ4.js +0 -1
- package/dist/_chunks/chunk-HLKERZIE.js +0 -1
- package/dist/_chunks/chunk-K6LVS2IN.js +0 -1
- package/dist/_chunks/chunk-KHKUJXQX.js +0 -1
- package/dist/_chunks/chunk-VC3ODN3M.js +0 -1
- package/dist/_chunks/local-main-NLFS74Q4.js +0 -1
- package/dist/_chunks/local-mcp-OLHBBVNN.js +0 -1
- package/dist/_chunks/mcp-EIMXNRH3.js +0 -1
- package/dist/_chunks/oauth-F7EZGVME.js +0 -1
- package/dist/_chunks/project-connect-MXM7IY55.js +0 -1
- package/dist/_chunks/src-7F6ZEU3U.js +0 -1
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import type { ProjectRenderTools } from "./project-render-tools.js";
|
|
1
2
|
import { z } from "zod";
|
|
2
|
-
import { LocalMcpOutputSchemas } from "../../sdk/local-runtime-client.js";
|
|
3
|
+
import { NativeStudioLocalRuntimeClient, LocalMcpOutputSchemas } from "../../sdk/local-runtime-client.js";
|
|
3
4
|
export declare const localTools: {
|
|
4
5
|
readonly local_navigate: {
|
|
5
6
|
readonly description: "Local execution entry. Discover Project-scoped Runtime progress, recovery and updates. Native writes remain with the cloud owner.";
|
|
@@ -29,6 +30,8 @@ export declare const localTools: {
|
|
|
29
30
|
projectId: z.ZodPipe<z.ZodUUID, z.ZodTransform<string, string>>;
|
|
30
31
|
after: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
31
32
|
limit: z.ZodDefault<z.ZodInt>;
|
|
33
|
+
includeCompleted: z.ZodOptional<z.ZodBoolean>;
|
|
34
|
+
includeProgress: z.ZodOptional<z.ZodBoolean>;
|
|
32
35
|
}, z.core.$strict>;
|
|
33
36
|
};
|
|
34
37
|
readonly local_execution_inspect: {
|
|
@@ -38,6 +41,7 @@ export declare const localTools: {
|
|
|
38
41
|
projectId: z.ZodPipe<z.ZodUUID, z.ZodTransform<string, string>>;
|
|
39
42
|
productionId: z.ZodPipe<z.ZodUUID, z.ZodTransform<string, string>>;
|
|
40
43
|
runtimeJobId: z.ZodPipe<z.ZodUUID, z.ZodTransform<string, string>>;
|
|
44
|
+
includeProgress: z.ZodOptional<z.ZodBoolean>;
|
|
41
45
|
}, z.core.$strict>;
|
|
42
46
|
};
|
|
43
47
|
readonly local_update_check: {
|
|
@@ -49,21 +53,25 @@ export type LocalToolName = keyof typeof localTools;
|
|
|
49
53
|
export declare class LocalMcpTools {
|
|
50
54
|
private readonly client;
|
|
51
55
|
private readonly home;
|
|
56
|
+
readonly renders?: ProjectRenderTools | undefined;
|
|
52
57
|
private constructor();
|
|
53
|
-
static open(connector: string, home: string): Promise<LocalMcpTools>;
|
|
58
|
+
static open(connector: string, home: string, renderTools?: (client: NativeStudioLocalRuntimeClient) => Promise<ProjectRenderTools>): Promise<LocalMcpTools>;
|
|
54
59
|
schema(name: LocalToolName): {
|
|
55
60
|
name: "local_navigate" | "local_capability_describe" | "local_runtime_status" | "local_execution_list" | "local_execution_inspect" | "local_update_check";
|
|
56
61
|
description: "Local execution entry. Discover Project-scoped Runtime progress, recovery and updates. Native writes remain with the cloud owner." | "Inspect the exact public schema for a local capability. Standard discovery stays stable; each call validates current Runtime authority." | "Read current authorized local Runtime status. Does not start, stop or mutate native work." | "List a bounded page of pending local execution identities in one authorized Project, then inspect an exact native Job." | "Inspect one exact native Job in the authorized Project. Native Job/Attempt identity remains authoritative." | "Read signed compatible release metadata only. No executable download, approval, installation or restart.";
|
|
57
62
|
inputSchema: z.core.ZodStandardJSONSchemaPayload<z.ZodObject<{
|
|
58
63
|
tenantId: z.ZodPipe<z.ZodUUID, z.ZodTransform<string, string>>;
|
|
59
64
|
projectId: z.ZodPipe<z.ZodUUID, z.ZodTransform<string, string>>;
|
|
60
|
-
|
|
61
|
-
|
|
65
|
+
after: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
66
|
+
limit: z.ZodDefault<z.ZodInt>;
|
|
67
|
+
includeCompleted: z.ZodOptional<z.ZodBoolean>;
|
|
68
|
+
includeProgress: z.ZodOptional<z.ZodBoolean>;
|
|
62
69
|
}, z.core.$strict> | z.ZodObject<{
|
|
63
70
|
tenantId: z.ZodPipe<z.ZodUUID, z.ZodTransform<string, string>>;
|
|
64
71
|
projectId: z.ZodPipe<z.ZodUUID, z.ZodTransform<string, string>>;
|
|
65
|
-
|
|
66
|
-
|
|
72
|
+
productionId: z.ZodPipe<z.ZodUUID, z.ZodTransform<string, string>>;
|
|
73
|
+
runtimeJobId: z.ZodPipe<z.ZodUUID, z.ZodTransform<string, string>>;
|
|
74
|
+
includeProgress: z.ZodOptional<z.ZodBoolean>;
|
|
67
75
|
}, z.core.$strict> | z.ZodObject<{
|
|
68
76
|
intent: z.ZodOptional<z.ZodString>;
|
|
69
77
|
}, z.core.$strict> | z.ZodObject<{
|
|
@@ -79,9 +87,9 @@ export declare class LocalMcpTools {
|
|
|
79
87
|
state: z.ZodEnum<{
|
|
80
88
|
UNAVAILABLE: "UNAVAILABLE";
|
|
81
89
|
RECOVERY_REQUIRED: "RECOVERY_REQUIRED";
|
|
82
|
-
IDLE: "IDLE";
|
|
83
90
|
EXECUTING: "EXECUTING";
|
|
84
91
|
DRAINING: "DRAINING";
|
|
92
|
+
IDLE: "IDLE";
|
|
85
93
|
}>;
|
|
86
94
|
authorizedProjects: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
87
95
|
tenantId: z.ZodPipe<z.ZodUUID, z.ZodTransform<string, string>>;
|
|
@@ -171,10 +179,10 @@ export declare class LocalMcpTools {
|
|
|
171
179
|
phase: z.ZodEnum<{
|
|
172
180
|
RUNNING: "RUNNING";
|
|
173
181
|
RECOVERY_REQUIRED: "RECOVERY_REQUIRED";
|
|
182
|
+
FENCED: "FENCED";
|
|
174
183
|
STAGED: "STAGED";
|
|
175
184
|
OUTPUT_PENDING: "OUTPUT_PENDING";
|
|
176
185
|
RECEIPT_RECORDED: "RECEIPT_RECORDED";
|
|
177
|
-
FENCED: "FENCED";
|
|
178
186
|
}>;
|
|
179
187
|
checkpoint: z.ZodEnum<{
|
|
180
188
|
ADOPTED: "ADOPTED";
|
|
@@ -182,6 +190,26 @@ export declare class LocalMcpTools {
|
|
|
182
190
|
PROCESS_STARTED: "PROCESS_STARTED";
|
|
183
191
|
OUTPUT_STAGED: "OUTPUT_STAGED";
|
|
184
192
|
}>;
|
|
193
|
+
progress: z.ZodOptional<z.ZodObject<{
|
|
194
|
+
stage: z.ZodEnum<{
|
|
195
|
+
WAITING: "WAITING";
|
|
196
|
+
COMPLETE: "COMPLETE";
|
|
197
|
+
RECOVERY_REQUIRED: "RECOVERY_REQUIRED";
|
|
198
|
+
DOWNLOADING: "DOWNLOADING";
|
|
199
|
+
EXECUTING: "EXECUTING";
|
|
200
|
+
UPLOADING: "UPLOADING";
|
|
201
|
+
AWAITING_ACCEPTANCE: "AWAITING_ACCEPTANCE";
|
|
202
|
+
FENCED: "FENCED";
|
|
203
|
+
}>;
|
|
204
|
+
downloadedBytes: z.ZodInt;
|
|
205
|
+
sourceBytes: z.ZodInt;
|
|
206
|
+
uploadedBytes: z.ZodInt;
|
|
207
|
+
outputBytes: z.ZodInt;
|
|
208
|
+
lastError: z.ZodNullable<z.ZodObject<{
|
|
209
|
+
code: z.ZodString;
|
|
210
|
+
observedAt: z.ZodISODateTime;
|
|
211
|
+
}, z.core.$strict>>;
|
|
212
|
+
}, z.core.$strict>>;
|
|
185
213
|
}, z.core.$strict>>;
|
|
186
214
|
nextCursor: z.ZodNullable<z.ZodString>;
|
|
187
215
|
nextActions: z.ZodArray<z.ZodObject<{
|
|
@@ -218,10 +246,10 @@ export declare class LocalMcpTools {
|
|
|
218
246
|
phase: z.ZodEnum<{
|
|
219
247
|
RUNNING: "RUNNING";
|
|
220
248
|
RECOVERY_REQUIRED: "RECOVERY_REQUIRED";
|
|
249
|
+
FENCED: "FENCED";
|
|
221
250
|
STAGED: "STAGED";
|
|
222
251
|
OUTPUT_PENDING: "OUTPUT_PENDING";
|
|
223
252
|
RECEIPT_RECORDED: "RECEIPT_RECORDED";
|
|
224
|
-
FENCED: "FENCED";
|
|
225
253
|
}>;
|
|
226
254
|
checkpoint: z.ZodEnum<{
|
|
227
255
|
ADOPTED: "ADOPTED";
|
|
@@ -229,6 +257,26 @@ export declare class LocalMcpTools {
|
|
|
229
257
|
PROCESS_STARTED: "PROCESS_STARTED";
|
|
230
258
|
OUTPUT_STAGED: "OUTPUT_STAGED";
|
|
231
259
|
}>;
|
|
260
|
+
progress: z.ZodOptional<z.ZodObject<{
|
|
261
|
+
stage: z.ZodEnum<{
|
|
262
|
+
WAITING: "WAITING";
|
|
263
|
+
COMPLETE: "COMPLETE";
|
|
264
|
+
RECOVERY_REQUIRED: "RECOVERY_REQUIRED";
|
|
265
|
+
DOWNLOADING: "DOWNLOADING";
|
|
266
|
+
EXECUTING: "EXECUTING";
|
|
267
|
+
UPLOADING: "UPLOADING";
|
|
268
|
+
AWAITING_ACCEPTANCE: "AWAITING_ACCEPTANCE";
|
|
269
|
+
FENCED: "FENCED";
|
|
270
|
+
}>;
|
|
271
|
+
downloadedBytes: z.ZodInt;
|
|
272
|
+
sourceBytes: z.ZodInt;
|
|
273
|
+
uploadedBytes: z.ZodInt;
|
|
274
|
+
outputBytes: z.ZodInt;
|
|
275
|
+
lastError: z.ZodNullable<z.ZodObject<{
|
|
276
|
+
code: z.ZodString;
|
|
277
|
+
observedAt: z.ZodISODateTime;
|
|
278
|
+
}, z.core.$strict>>;
|
|
279
|
+
}, z.core.$strict>>;
|
|
232
280
|
}, z.core.$strict>>;
|
|
233
281
|
nextActions: z.ZodArray<z.ZodObject<{
|
|
234
282
|
tool: z.ZodEnum<{
|
|
@@ -288,10 +336,17 @@ export declare class LocalMcpTools {
|
|
|
288
336
|
}>;
|
|
289
337
|
}, z.core.$strict>;
|
|
290
338
|
ipcProtocol: z.ZodLiteral<"NVS_LOCAL_IPC_V1">;
|
|
291
|
-
workProtocol: z.
|
|
339
|
+
workProtocol: z.ZodEnum<{
|
|
340
|
+
NVS_LOCAL_WORK_V1: "NVS_LOCAL_WORK_V1";
|
|
341
|
+
NVS_LOCAL_WORK_V2: "NVS_LOCAL_WORK_V2";
|
|
342
|
+
}>;
|
|
292
343
|
journalSchema: z.ZodLiteral<1>;
|
|
293
344
|
rendererDigest: z.ZodString;
|
|
294
345
|
profileDigest: z.ZodString;
|
|
346
|
+
compatibleRenderers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
347
|
+
rendererDigest: z.ZodString;
|
|
348
|
+
profileDigest: z.ZodString;
|
|
349
|
+
}, z.core.$strict>>>;
|
|
295
350
|
}, z.core.$strict>>;
|
|
296
351
|
nextActions: z.ZodArray<z.ZodObject<{
|
|
297
352
|
surface: z.ZodEnum<{
|
|
@@ -359,13 +414,16 @@ export declare class LocalMcpTools {
|
|
|
359
414
|
protocol: z.ZodLiteral<"NVS_LOCAL_IPC_V1">;
|
|
360
415
|
state: z.ZodEnum<{
|
|
361
416
|
RECOVERY_REQUIRED: "RECOVERY_REQUIRED";
|
|
362
|
-
IDLE: "IDLE";
|
|
363
417
|
EXECUTING: "EXECUTING";
|
|
364
418
|
DRAINING: "DRAINING";
|
|
419
|
+
IDLE: "IDLE";
|
|
365
420
|
}>;
|
|
366
421
|
runtimeRevision: z.ZodInt;
|
|
367
422
|
journalSchemaVersion: z.ZodLiteral<1>;
|
|
368
|
-
workProtocols: z.ZodArray<z.
|
|
423
|
+
workProtocols: z.ZodArray<z.ZodEnum<{
|
|
424
|
+
NVS_LOCAL_WORK_V1: "NVS_LOCAL_WORK_V1";
|
|
425
|
+
NVS_LOCAL_WORK_V2: "NVS_LOCAL_WORK_V2";
|
|
426
|
+
}>>;
|
|
369
427
|
versions: z.ZodArray<z.ZodObject<{
|
|
370
428
|
component: z.ZodEnum<{
|
|
371
429
|
CLI: "CLI";
|
|
@@ -391,6 +449,11 @@ export declare class LocalMcpTools {
|
|
|
391
449
|
tenantId: z.ZodPipe<z.ZodUUID, z.ZodTransform<string, string>>;
|
|
392
450
|
projectId: z.ZodPipe<z.ZodUUID, z.ZodTransform<string, string>>;
|
|
393
451
|
}, z.core.$strict>>;
|
|
452
|
+
deviceAuthority: z.ZodOptional<z.ZodObject<{
|
|
453
|
+
tenantId: z.ZodUUID;
|
|
454
|
+
deviceId: z.ZodUUID;
|
|
455
|
+
origin: z.ZodURL;
|
|
456
|
+
}, z.core.$strict>>;
|
|
394
457
|
nextActions: z.ZodArray<z.ZodObject<{
|
|
395
458
|
tool: z.ZodEnum<{
|
|
396
459
|
local_navigate: "local_navigate";
|