@intentic/sandbox-contract 1.292.0 → 1.294.0

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 (36) hide show
  1. package/dist/contracts/automations.contract.d.ts +9 -0
  2. package/dist/contracts/automations.contract.d.ts.map +1 -1
  3. package/dist/contracts/capabilities.contract.d.ts +55 -0
  4. package/dist/contracts/capabilities.contract.d.ts.map +1 -1
  5. package/dist/contracts/netdisk.contract.d.ts +40 -0
  6. package/dist/contracts/netdisk.contract.d.ts.map +1 -0
  7. package/dist/contracts/netdisk.contract.js +33 -0
  8. package/dist/contracts/netdisk.contract.js.map +1 -0
  9. package/dist/contracts/runner.contract.d.ts +95 -95
  10. package/dist/contracts/system.contract.d.ts +30 -30
  11. package/dist/index.d.ts +105 -0
  12. package/dist/index.d.ts.map +1 -1
  13. package/dist/index.js +4 -0
  14. package/dist/index.js.map +1 -1
  15. package/dist/schemas/automations.d.ts +18 -0
  16. package/dist/schemas/automations.d.ts.map +1 -1
  17. package/dist/schemas/automations.js +8 -0
  18. package/dist/schemas/automations.js.map +1 -1
  19. package/dist/schemas/capabilities.d.ts +30 -0
  20. package/dist/schemas/capabilities.d.ts.map +1 -1
  21. package/dist/schemas/capabilities.js +3 -0
  22. package/dist/schemas/capabilities.js.map +1 -1
  23. package/dist/schemas/netdisk.d.ts +123 -0
  24. package/dist/schemas/netdisk.d.ts.map +1 -0
  25. package/dist/schemas/netdisk.js +50 -0
  26. package/dist/schemas/netdisk.js.map +1 -0
  27. package/dist/state/definition.d.ts +54 -0
  28. package/dist/state/definition.d.ts.map +1 -1
  29. package/package.json +5 -5
  30. package/src/contracts/netdisk.contract.ts +41 -0
  31. package/src/index.ts +4 -0
  32. package/src/protocol/routes.test.ts +3 -1
  33. package/src/schemas/automations.ts +13 -0
  34. package/src/schemas/capabilities.ts +4 -0
  35. package/src/schemas/netdisk.ts +77 -0
  36. package/src/schemas/version-seam.test.ts +19 -0
@@ -6,6 +6,9 @@ export declare const automationsContract: {
6
6
  kind: import("zod").ZodLiteral<"schedule">;
7
7
  cron: import("zod").ZodString;
8
8
  afterSessions: import("zod").ZodOptional<import("zod").ZodNumber>;
9
+ }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
10
+ kind: import("zod").ZodLiteral<"once">;
11
+ at: import("zod").ZodNumber;
9
12
  }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
10
13
  kind: import("zod").ZodLiteral<"event">;
11
14
  dailyMax: import("zod").ZodOptional<import("zod").ZodNumber>;
@@ -162,6 +165,9 @@ export declare const automationsContract: {
162
165
  kind: import("zod").ZodLiteral<"schedule">;
163
166
  cron: import("zod").ZodString;
164
167
  afterSessions: import("zod").ZodOptional<import("zod").ZodNumber>;
168
+ }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
169
+ kind: import("zod").ZodLiteral<"once">;
170
+ at: import("zod").ZodNumber;
165
171
  }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
166
172
  kind: import("zod").ZodLiteral<"event">;
167
173
  dailyMax: import("zod").ZodOptional<import("zod").ZodNumber>;
@@ -202,6 +208,9 @@ export declare const automationsContract: {
202
208
  kind: import("zod").ZodLiteral<"schedule">;
203
209
  cron: import("zod").ZodString;
204
210
  afterSessions: import("zod").ZodOptional<import("zod").ZodNumber>;
211
+ }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
212
+ kind: import("zod").ZodLiteral<"once">;
213
+ at: import("zod").ZodNumber;
205
214
  }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
206
215
  kind: import("zod").ZodLiteral<"event">;
207
216
  dailyMax: import("zod").ZodOptional<import("zod").ZodNumber>;
@@ -1 +1 @@
1
- {"version":3,"file":"automations.contract.d.ts","sourceRoot":"","sources":["../../src/contracts/automations.contract.ts"],"names":[],"mappings":"AAgBA,eAAO,MAAM,mBAAmB;IAC5B,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAQJ,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IASP,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IASN,UAAU;;;;;;IASV,MAAM;;;;;IASN,WAAW;;;;;IAWX,GAAG;;;;;IAUH,OAAO;;;;;;;;;;;;IAUP,WAAW;;;;;;;;;;;;;;;;;;;;IAQX,OAAO;;;;;IASP,MAAM;;;;;CAST,CAAC"}
1
+ {"version":3,"file":"automations.contract.d.ts","sourceRoot":"","sources":["../../src/contracts/automations.contract.ts"],"names":[],"mappings":"AAgBA,eAAO,MAAM,mBAAmB;IAC5B,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAQJ,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IASP,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IASN,UAAU;;;;;;IASV,MAAM;;;;;IASN,WAAW;;;;;IAWX,GAAG;;;;;IAUH,OAAO;;;;;;;;;;;;IAUP,WAAW;;;;;;;;;;;;;;;;;;;;IAQX,OAAO;;;;;IASP,MAAM;;;;;CAST,CAAC"}
@@ -17,6 +17,7 @@ export declare const capabilitiesContract: {
17
17
  localmodel: "localmodel";
18
18
  mcp: "mcp";
19
19
  monorepo: "monorepo";
20
+ netdisk: "netdisk";
20
21
  plugin: "plugin";
21
22
  service: "service";
22
23
  ssh: "ssh";
@@ -205,6 +206,33 @@ export declare const capabilitiesContract: {
205
206
  on: "on";
206
207
  }>>;
207
208
  }, import("zod/v4/core").$strip>], "provider">;
209
+ }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
210
+ id: import("zod").ZodString;
211
+ kind: import("zod").ZodLiteral<"netdisk">;
212
+ config: import("zod").ZodDiscriminatedUnion<[import("zod").ZodObject<{
213
+ provider: import("zod").ZodLiteral<"smb">;
214
+ server: import("zod").ZodString;
215
+ share: import("zod").ZodString;
216
+ path: import("zod").ZodOptional<import("zod").ZodString>;
217
+ username: import("zod").ZodString;
218
+ password: import("zod").ZodOptional<import("zod").ZodString>;
219
+ domain: import("zod").ZodOptional<import("zod").ZodString>;
220
+ access: import("zod").ZodDefault<import("zod").ZodEnum<{
221
+ read: "read";
222
+ readwrite: "readwrite";
223
+ }>>;
224
+ version: import("zod").ZodDefault<import("zod").ZodEnum<{
225
+ "1.0": "1.0";
226
+ 2.1: "2.1";
227
+ "3.0": "3.0";
228
+ "3.1.1": "3.1.1";
229
+ auto: "auto";
230
+ }>>;
231
+ autoMount: import("zod").ZodDefault<import("zod").ZodEnum<{
232
+ off: "off";
233
+ on: "on";
234
+ }>>;
235
+ }, import("zod/v4/core").$strip>], "provider">;
208
236
  }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
209
237
  id: import("zod").ZodString;
210
238
  kind: import("zod").ZodLiteral<"docker">;
@@ -523,6 +551,33 @@ export declare const capabilitiesContract: {
523
551
  on: "on";
524
552
  }>>;
525
553
  }, import("zod/v4/core").$strip>], "provider">;
554
+ }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
555
+ id: import("zod").ZodString;
556
+ kind: import("zod").ZodLiteral<"netdisk">;
557
+ config: import("zod").ZodDiscriminatedUnion<[import("zod").ZodObject<{
558
+ provider: import("zod").ZodLiteral<"smb">;
559
+ server: import("zod").ZodString;
560
+ share: import("zod").ZodString;
561
+ path: import("zod").ZodOptional<import("zod").ZodString>;
562
+ username: import("zod").ZodString;
563
+ password: import("zod").ZodOptional<import("zod").ZodString>;
564
+ domain: import("zod").ZodOptional<import("zod").ZodString>;
565
+ access: import("zod").ZodDefault<import("zod").ZodEnum<{
566
+ read: "read";
567
+ readwrite: "readwrite";
568
+ }>>;
569
+ version: import("zod").ZodDefault<import("zod").ZodEnum<{
570
+ "1.0": "1.0";
571
+ 2.1: "2.1";
572
+ "3.0": "3.0";
573
+ "3.1.1": "3.1.1";
574
+ auto: "auto";
575
+ }>>;
576
+ autoMount: import("zod").ZodDefault<import("zod").ZodEnum<{
577
+ off: "off";
578
+ on: "on";
579
+ }>>;
580
+ }, import("zod/v4/core").$strip>], "provider">;
526
581
  }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
527
582
  id: import("zod").ZodString;
528
583
  kind: import("zod").ZodLiteral<"docker">;
@@ -1 +1 @@
1
- {"version":3,"file":"capabilities.contract.d.ts","sourceRoot":"","sources":["../../src/contracts/capabilities.contract.ts"],"names":[],"mappings":"AAqBA,eAAO,MAAM,oBAAoB;IAC7B,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IASJ,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAWH,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAUL,MAAM;;;;;IAUN,MAAM;;;;;;IAWN,SAAS;;;;;;IAST,MAAM;;;;;;;;;;;;IAUN,UAAU;;;;;;;IAUV,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAUX,IAAI;;;;;;;;;;;;;;;IAUJ,OAAO;;;;;IAWP,KAAK;;;;;IAWL,GAAG;;;;;;CAUN,CAAC"}
1
+ {"version":3,"file":"capabilities.contract.d.ts","sourceRoot":"","sources":["../../src/contracts/capabilities.contract.ts"],"names":[],"mappings":"AAqBA,eAAO,MAAM,oBAAoB;IAC7B,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IASJ,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAWH,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAUL,MAAM;;;;;IAUN,MAAM;;;;;;IAWN,SAAS;;;;;;IAST,MAAM;;;;;;;;;;;;IAUN,UAAU;;;;;;;IAUV,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAUX,IAAI;;;;;;;;;;;;;;;IAUJ,OAAO;;;;;IAWP,KAAK;;;;;IAWL,GAAG;;;;;;CAUN,CAAC"}
@@ -0,0 +1,40 @@
1
+ export declare const netdiskContract: {
2
+ list: import("@orpc/contract").ContractProcedureBuilderWithOutput<import("@orpc/contract").Schema<unknown, unknown>, import("zod").ZodObject<{
3
+ links: import("zod").ZodArray<import("zod").ZodObject<{
4
+ id: import("zod").ZodString;
5
+ provider: import("zod").ZodEnum<{
6
+ smb: "smb";
7
+ }>;
8
+ state: import("zod").ZodEnum<{
9
+ mounted: "mounted";
10
+ unavailable: "unavailable";
11
+ unmounted: "unmounted";
12
+ }>;
13
+ target: import("zod").ZodString;
14
+ mountPoint: import("zod").ZodString;
15
+ access: import("zod").ZodEnum<{
16
+ read: "read";
17
+ readwrite: "readwrite";
18
+ }>;
19
+ writable: import("zod").ZodOptional<import("zod").ZodBoolean>;
20
+ since: import("zod").ZodOptional<import("zod").ZodNumber>;
21
+ autoMount: import("zod").ZodBoolean;
22
+ detail: import("zod").ZodOptional<import("zod").ZodString>;
23
+ }, import("zod/v4/core").$strip>>;
24
+ }, import("zod/v4/core").$strip>, Record<never, never>, Record<never, never>>;
25
+ mount: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
26
+ id: import("zod").ZodString;
27
+ }, import("zod/v4/core").$strip>, import("@orpc/contract").Schema<AsyncIteratorObject<{
28
+ [x: string]: unknown;
29
+ kind: string;
30
+ }, unknown, void>, import("@orpc/contract").AsyncIteratorClass<{
31
+ [x: string]: unknown;
32
+ kind: string;
33
+ }, unknown, void>>, Record<never, never>, Record<never, never>>;
34
+ unmount: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
35
+ id: import("zod").ZodString;
36
+ }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
37
+ ok: import("zod").ZodLiteral<true>;
38
+ }, import("zod/v4/core").$strip>, Record<never, never>, Record<never, never>>;
39
+ };
40
+ //# sourceMappingURL=netdisk.contract.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"netdisk.contract.d.ts","sourceRoot":"","sources":["../../src/contracts/netdisk.contract.ts"],"names":[],"mappings":"AASA,eAAO,MAAM,eAAe;IACxB,IAAI;;;;;;;;;;;;;;;;;;;;;;;IAWJ,KAAK;;;;;;;;;IAUL,OAAO;;;;;CASV,CAAC"}
@@ -0,0 +1,33 @@
1
+ import { eventIterator, oc } from "@orpc/contract";
2
+ import { IntenticLineSchema } from "../events/system-events.js";
3
+ import { NetdiskIdParamSchema, NetdiskListSchema } from "../schemas/netdisk.js";
4
+ import { OkSchema } from "../schemas/shared.js";
5
+ export const netdiskContract = {
6
+ list: oc
7
+ .route({
8
+ method: "GET",
9
+ path: "/netdisk",
10
+ summary: "Configured disks and which are mounted",
11
+ description: "Every stored network disk with its live mount state, read back from the kernel's mount table rather than from memory, so a disk unmounted from a shell and one unmounted from a screen look the same here.",
12
+ })
13
+ .output(NetdiskListSchema),
14
+ mount: oc
15
+ .route({
16
+ method: "POST",
17
+ path: "/netdisk/{id}/mount",
18
+ summary: "Mount a disk",
19
+ description: "Mounts a stored disk at its place under /mnt/netdisk, streaming progress. Mounting one that is already mounted simply says so. A read-only disk is mounted read-only; the kernel refuses writes to it.",
20
+ })
21
+ .input(NetdiskIdParamSchema)
22
+ .output(eventIterator(IntenticLineSchema)),
23
+ unmount: oc
24
+ .route({
25
+ method: "POST",
26
+ path: "/netdisk/{id}/unmount",
27
+ summary: "Unmount a disk",
28
+ description: "Takes the disk down. One that was already unmounted is fine: the promise is that it is not mounted afterwards.",
29
+ })
30
+ .input(NetdiskIdParamSchema)
31
+ .output(OkSchema),
32
+ };
33
+ //# sourceMappingURL=netdisk.contract.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"netdisk.contract.js","sourceRoot":"","sources":["../../src/contracts/netdisk.contract.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,EAAE,EAAE,MAAM,gBAAgB,CAAC;AACnD,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAChE,OAAO,EAAE,oBAAoB,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAChF,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAMhD,MAAM,CAAC,MAAM,eAAe,GAAG;IAC3B,IAAI,EAAE,EAAE;SACH,KAAK,CAAC;QACH,MAAM,EAAE,KAAK;QACb,IAAI,EAAE,UAAU;QAChB,OAAO,EAAE,wCAAwC;QACjD,WAAW,EACP,4MAA4M;KACnN,CAAC;SACD,MAAM,CAAC,iBAAiB,CAAC;IAG9B,KAAK,EAAE,EAAE;SACJ,KAAK,CAAC;QACH,MAAM,EAAE,MAAM;QACd,IAAI,EAAE,qBAAqB;QAC3B,OAAO,EAAE,cAAc;QACvB,WAAW,EACP,wMAAwM;KAC/M,CAAC;SACD,KAAK,CAAC,oBAAoB,CAAC;SAC3B,MAAM,CAAC,aAAa,CAAC,kBAAkB,CAAC,CAAC;IAC9C,OAAO,EAAE,EAAE;SACN,KAAK,CAAC;QACH,MAAM,EAAE,MAAM;QACd,IAAI,EAAE,uBAAuB;QAC7B,OAAO,EAAE,gBAAgB;QACzB,WAAW,EAAE,gHAAgH;KAChI,CAAC;SACD,KAAK,CAAC,oBAAoB,CAAC;SAC3B,MAAM,CAAC,QAAQ,CAAC;CACxB,CAAC"}
@@ -50,37 +50,6 @@ export declare const runnerContract: {
50
50
  bytesBase64: z.ZodString;
51
51
  }, z.core.$strip>>>;
52
52
  }, z.core.$strip>, import("@orpc/contract").Schema<AsyncIteratorObject<{
53
- requestId: string;
54
- text: string;
55
- document?: {
56
- path: string;
57
- title: string;
58
- markdown: string;
59
- truncated?: boolean | undefined;
60
- plan?: boolean | undefined;
61
- } | undefined;
62
- kind: "plan";
63
- } | {
64
- requestId: string;
65
- questions: {
66
- question: string;
67
- header: string;
68
- multiSelect: boolean;
69
- options: {
70
- label: string;
71
- description: string;
72
- preview?: string | undefined;
73
- }[];
74
- }[];
75
- document?: {
76
- path: string;
77
- title: string;
78
- markdown: string;
79
- truncated?: boolean | undefined;
80
- plan?: boolean | undefined;
81
- } | undefined;
82
- kind: "question";
83
- } | {
84
53
  kind: "session";
85
54
  sessionId: string;
86
55
  account?: string | undefined;
@@ -275,6 +244,37 @@ export declare const runnerContract: {
275
244
  trigger: string;
276
245
  preTokens?: number | undefined;
277
246
  postTokens?: number | undefined;
247
+ } | {
248
+ requestId: string;
249
+ text: string;
250
+ document?: {
251
+ path: string;
252
+ title: string;
253
+ markdown: string;
254
+ truncated?: boolean | undefined;
255
+ plan?: boolean | undefined;
256
+ } | undefined;
257
+ kind: "plan";
258
+ } | {
259
+ requestId: string;
260
+ questions: {
261
+ question: string;
262
+ header: string;
263
+ multiSelect: boolean;
264
+ options: {
265
+ label: string;
266
+ description: string;
267
+ preview?: string | undefined;
268
+ }[];
269
+ }[];
270
+ document?: {
271
+ path: string;
272
+ title: string;
273
+ markdown: string;
274
+ truncated?: boolean | undefined;
275
+ plan?: boolean | undefined;
276
+ } | undefined;
277
+ kind: "question";
278
278
  } | {
279
279
  requestId: string;
280
280
  session: string;
@@ -389,6 +389,19 @@ export declare const runnerContract: {
389
389
  } | undefined;
390
390
  } | {
391
391
  kind: "done";
392
+ } | {
393
+ status: "allowed" | "allowed_warning" | "rejected";
394
+ resetsAt?: number | undefined;
395
+ rateLimitType?: string | undefined;
396
+ utilization?: number | undefined;
397
+ kind: "rate_limit_info";
398
+ account?: string | undefined;
399
+ } | {
400
+ tokens: number;
401
+ contextWindow: number;
402
+ cachedAt?: number | undefined;
403
+ cacheTtlMs?: number | undefined;
404
+ kind: "context_usage";
392
405
  } | {
393
406
  toolName: string;
394
407
  title?: string | undefined;
@@ -409,19 +422,6 @@ export declare const runnerContract: {
409
422
  explain?: string | undefined;
410
423
  requestId: string;
411
424
  kind: "permission";
412
- } | {
413
- status: "allowed" | "allowed_warning" | "rejected";
414
- resetsAt?: number | undefined;
415
- rateLimitType?: string | undefined;
416
- utilization?: number | undefined;
417
- kind: "rate_limit_info";
418
- account?: string | undefined;
419
- } | {
420
- tokens: number;
421
- contextWindow: number;
422
- cachedAt?: number | undefined;
423
- cacheTtlMs?: number | undefined;
424
- kind: "context_usage";
425
425
  } | {
426
426
  outcome: "connected" | "unfinished";
427
427
  id?: string | undefined;
@@ -440,57 +440,6 @@ export declare const runnerContract: {
440
440
  kind: "credential_receipt";
441
441
  requestId: string;
442
442
  }, unknown, void>, import("@orpc/contract").AsyncIteratorClass<{
443
- requestId: string;
444
- text: string;
445
- document?: {
446
- path: string;
447
- title: string;
448
- markdown: string;
449
- truncated?: boolean | undefined;
450
- plan?: boolean | undefined;
451
- } | undefined;
452
- kind: "plan";
453
- } | {
454
- requestId: string;
455
- questions: {
456
- question: string;
457
- header: string;
458
- multiSelect: boolean;
459
- options: {
460
- label: string;
461
- description: string;
462
- preview?: string | undefined;
463
- }[];
464
- }[];
465
- document?: {
466
- path: string;
467
- title: string;
468
- markdown: string;
469
- truncated?: boolean | undefined;
470
- plan?: boolean | undefined;
471
- } | undefined;
472
- kind: "question";
473
- } | {
474
- toolName: string;
475
- title?: string | undefined;
476
- displayName?: string | undefined;
477
- description?: string | undefined;
478
- reason?: string | undefined;
479
- path?: string | undefined;
480
- alwaysLabel?: string | undefined;
481
- program?: {
482
- text: string;
483
- language: "bash" | "javascript";
484
- truncated: boolean;
485
- spans: {
486
- start: number;
487
- end: number;
488
- }[];
489
- } | undefined;
490
- explain?: string | undefined;
491
- requestId: string;
492
- kind: "permission";
493
- } | {
494
443
  kind: "session";
495
444
  sessionId: string;
496
445
  account?: string | undefined;
@@ -685,6 +634,37 @@ export declare const runnerContract: {
685
634
  trigger: string;
686
635
  preTokens?: number | undefined;
687
636
  postTokens?: number | undefined;
637
+ } | {
638
+ requestId: string;
639
+ text: string;
640
+ document?: {
641
+ path: string;
642
+ title: string;
643
+ markdown: string;
644
+ truncated?: boolean | undefined;
645
+ plan?: boolean | undefined;
646
+ } | undefined;
647
+ kind: "plan";
648
+ } | {
649
+ requestId: string;
650
+ questions: {
651
+ question: string;
652
+ header: string;
653
+ multiSelect: boolean;
654
+ options: {
655
+ label: string;
656
+ description: string;
657
+ preview?: string | undefined;
658
+ }[];
659
+ }[];
660
+ document?: {
661
+ path: string;
662
+ title: string;
663
+ markdown: string;
664
+ truncated?: boolean | undefined;
665
+ plan?: boolean | undefined;
666
+ } | undefined;
667
+ kind: "question";
688
668
  } | {
689
669
  requestId: string;
690
670
  session: string;
@@ -812,6 +792,26 @@ export declare const runnerContract: {
812
792
  cachedAt?: number | undefined;
813
793
  cacheTtlMs?: number | undefined;
814
794
  kind: "context_usage";
795
+ } | {
796
+ toolName: string;
797
+ title?: string | undefined;
798
+ displayName?: string | undefined;
799
+ description?: string | undefined;
800
+ reason?: string | undefined;
801
+ path?: string | undefined;
802
+ alwaysLabel?: string | undefined;
803
+ program?: {
804
+ text: string;
805
+ language: "bash" | "javascript";
806
+ truncated: boolean;
807
+ spans: {
808
+ start: number;
809
+ end: number;
810
+ }[];
811
+ } | undefined;
812
+ explain?: string | undefined;
813
+ requestId: string;
814
+ kind: "permission";
815
815
  } | {
816
816
  outcome: "connected" | "unfinished";
817
817
  id?: string | undefined;
@@ -54,19 +54,6 @@ export declare const systemContract: {
54
54
  events: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
55
55
  clientId: z.ZodOptional<z.ZodString>;
56
56
  }, z.core.$strip>, import("@orpc/contract").Schema<AsyncIteratorObject<{
57
- kind: "heartbeat";
58
- rev: number;
59
- } | {
60
- ready: boolean;
61
- startedAt: number;
62
- steps: {
63
- key: string;
64
- label: string;
65
- state: "done" | "failed" | "pending" | "running";
66
- ms?: number | undefined;
67
- }[];
68
- kind: "boot";
69
- } | {
70
57
  kind: "hello";
71
58
  workspaceId: string;
72
59
  routes?: string[] | undefined;
@@ -83,8 +70,18 @@ export declare const systemContract: {
83
70
  }[];
84
71
  } | undefined;
85
72
  } | {
86
- kind: "reposChanged";
87
- repos: string[];
73
+ kind: "heartbeat";
74
+ rev: number;
75
+ } | {
76
+ ready: boolean;
77
+ startedAt: number;
78
+ steps: {
79
+ key: string;
80
+ label: string;
81
+ state: "done" | "failed" | "pending" | "running";
82
+ ms?: number | undefined;
83
+ }[];
84
+ kind: "boot";
88
85
  } | {
89
86
  kind: "workspaceChanged";
90
87
  paths: string[];
@@ -100,6 +97,9 @@ export declare const systemContract: {
100
97
  shadows?: number | undefined;
101
98
  sweptAt?: string | undefined;
102
99
  };
100
+ } | {
101
+ kind: "reposChanged";
102
+ repos: string[];
103
103
  } | {
104
104
  kind: "refsChanged";
105
105
  repos: string[];
@@ -290,19 +290,6 @@ export declare const systemContract: {
290
290
  model?: string | undefined;
291
291
  } | undefined;
292
292
  }, unknown, void>, import("@orpc/contract").AsyncIteratorClass<{
293
- kind: "heartbeat";
294
- rev: number;
295
- } | {
296
- ready: boolean;
297
- startedAt: number;
298
- steps: {
299
- key: string;
300
- label: string;
301
- state: "done" | "failed" | "pending" | "running";
302
- ms?: number | undefined;
303
- }[];
304
- kind: "boot";
305
- } | {
306
293
  kind: "hello";
307
294
  workspaceId: string;
308
295
  routes?: string[] | undefined;
@@ -319,8 +306,18 @@ export declare const systemContract: {
319
306
  }[];
320
307
  } | undefined;
321
308
  } | {
322
- kind: "reposChanged";
323
- repos: string[];
309
+ kind: "heartbeat";
310
+ rev: number;
311
+ } | {
312
+ ready: boolean;
313
+ startedAt: number;
314
+ steps: {
315
+ key: string;
316
+ label: string;
317
+ state: "done" | "failed" | "pending" | "running";
318
+ ms?: number | undefined;
319
+ }[];
320
+ kind: "boot";
324
321
  } | {
325
322
  kind: "workspaceChanged";
326
323
  paths: string[];
@@ -336,6 +333,9 @@ export declare const systemContract: {
336
333
  shadows?: number | undefined;
337
334
  sweptAt?: string | undefined;
338
335
  };
336
+ } | {
337
+ kind: "reposChanged";
338
+ repos: string[];
339
339
  } | {
340
340
  kind: "refsChanged";
341
341
  repos: string[];