@intentic/sandbox-contract 1.290.0 → 1.291.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 (53) hide show
  1. package/dist/contracts/diff.contract.d.ts +49 -0
  2. package/dist/contracts/diff.contract.d.ts.map +1 -0
  3. package/dist/contracts/diff.contract.js +14 -0
  4. package/dist/contracts/diff.contract.js.map +1 -0
  5. package/dist/contracts/extensions.contract.d.ts +1 -0
  6. package/dist/contracts/extensions.contract.d.ts.map +1 -1
  7. package/dist/contracts/runner.contract.d.ts +95 -95
  8. package/dist/contracts/system.contract.d.ts +45 -30
  9. package/dist/contracts/system.contract.d.ts.map +1 -1
  10. package/dist/index.d.ts +66 -0
  11. package/dist/index.d.ts.map +1 -1
  12. package/dist/index.js +4 -0
  13. package/dist/index.js.map +1 -1
  14. package/dist/models/agent-catalog.d.ts +1 -0
  15. package/dist/models/agent-catalog.d.ts.map +1 -1
  16. package/dist/models/agent-catalog.js +1 -0
  17. package/dist/models/agent-catalog.js.map +1 -1
  18. package/dist/models/agent-runtimes.d.ts.map +1 -1
  19. package/dist/models/agent-runtimes.js +2 -2
  20. package/dist/models/agent-runtimes.js.map +1 -1
  21. package/dist/models/plan-pools.d.ts +13 -0
  22. package/dist/models/plan-pools.d.ts.map +1 -1
  23. package/dist/models/plan-pools.js +43 -0
  24. package/dist/models/plan-pools.js.map +1 -1
  25. package/dist/schemas/devices.d.ts +21 -0
  26. package/dist/schemas/devices.d.ts.map +1 -1
  27. package/dist/schemas/devices.js +7 -1
  28. package/dist/schemas/devices.js.map +1 -1
  29. package/dist/schemas/diff.d.ts +62 -0
  30. package/dist/schemas/diff.d.ts.map +1 -0
  31. package/dist/schemas/diff.js +59 -0
  32. package/dist/schemas/diff.js.map +1 -0
  33. package/dist/schemas/extension-updates.d.ts +2 -0
  34. package/dist/schemas/extension-updates.d.ts.map +1 -1
  35. package/dist/schemas/terminal.d.ts +22 -0
  36. package/dist/schemas/terminal.d.ts.map +1 -1
  37. package/dist/schemas/terminal.js +9 -0
  38. package/dist/schemas/terminal.js.map +1 -1
  39. package/dist/state/history-state.d.ts.map +1 -1
  40. package/dist/state/history-state.js +1 -0
  41. package/dist/state/history-state.js.map +1 -1
  42. package/package.json +5 -5
  43. package/src/contracts/diff.contract.ts +17 -0
  44. package/src/index.ts +4 -0
  45. package/src/models/agent-catalog.test.ts +6 -2
  46. package/src/models/agent-catalog.ts +5 -0
  47. package/src/models/agent-runtimes.ts +7 -4
  48. package/src/models/plan-pools.test.ts +40 -1
  49. package/src/models/plan-pools.ts +69 -0
  50. package/src/schemas/devices.ts +20 -1
  51. package/src/schemas/diff.ts +72 -0
  52. package/src/schemas/terminal.ts +11 -0
  53. package/src/state/history-state.ts +3 -0
@@ -0,0 +1,49 @@
1
+ export declare const diffContract: {
2
+ derived: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodDiscriminatedUnion<[import("zod").ZodObject<{
3
+ source: import("zod").ZodLiteral<"working">;
4
+ repo: import("zod").ZodString;
5
+ side: import("zod").ZodEnum<{
6
+ conflicted: "conflicted";
7
+ staged: "staged";
8
+ unstaged: "unstaged";
9
+ }>;
10
+ path: import("zod").ZodString;
11
+ }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
12
+ source: import("zod").ZodLiteral<"agent">;
13
+ agent: import("zod").ZodString;
14
+ repo: import("zod").ZodString;
15
+ path: import("zod").ZodString;
16
+ }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
17
+ source: import("zod").ZodLiteral<"commit">;
18
+ repo: import("zod").ZodString;
19
+ sha: import("zod").ZodString;
20
+ path: import("zod").ZodString;
21
+ }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
22
+ source: import("zod").ZodLiteral<"checkpoint">;
23
+ snapshot: import("zod").ZodString;
24
+ scope: import("zod").ZodString;
25
+ path: import("zod").ZodString;
26
+ }, import("zod/v4/core").$strip>], "source">, import("zod").ZodObject<{
27
+ before: import("zod").ZodOptional<import("zod").ZodDiscriminatedUnion<[import("zod").ZodObject<{
28
+ present: import("zod").ZodLiteral<true>;
29
+ content: import("zod").ZodString;
30
+ deriver: import("zod").ZodString;
31
+ notes: import("zod").ZodArray<import("zod").ZodString>;
32
+ truncated: import("zod").ZodBoolean;
33
+ }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
34
+ present: import("zod").ZodLiteral<false>;
35
+ reason: import("zod").ZodString;
36
+ }, import("zod/v4/core").$strip>], "present">>;
37
+ after: import("zod").ZodOptional<import("zod").ZodDiscriminatedUnion<[import("zod").ZodObject<{
38
+ present: import("zod").ZodLiteral<true>;
39
+ content: import("zod").ZodString;
40
+ deriver: import("zod").ZodString;
41
+ notes: import("zod").ZodArray<import("zod").ZodString>;
42
+ truncated: import("zod").ZodBoolean;
43
+ }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
44
+ present: import("zod").ZodLiteral<false>;
45
+ reason: import("zod").ZodString;
46
+ }, import("zod/v4/core").$strip>], "present">>;
47
+ }, import("zod/v4/core").$strip>, Record<never, never>, Record<never, never>>;
48
+ };
49
+ //# sourceMappingURL=diff.contract.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"diff.contract.d.ts","sourceRoot":"","sources":["../../src/contracts/diff.contract.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,YAAY;IACrB,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAUV,CAAC"}
@@ -0,0 +1,14 @@
1
+ import { oc } from "@orpc/contract";
2
+ import { DerivedDiffSchema, DiffSourceQuerySchema } from "../schemas/diff.js";
3
+ export const diffContract = {
4
+ derived: oc
5
+ .route({
6
+ method: "GET",
7
+ path: "/diff/derived",
8
+ summary: "Both sides of a document's diff, as text",
9
+ description: "A document, spreadsheet, presentation or notebook that changed, both versions rendered to markdown the way an agent reads them, so the change can be shown as tracked changes instead of two downloads. The side on disk reuses the shadow the sandbox already keeps; a past version is rendered from its bytes and kept by content hash, so the same version is never rendered twice. A side nothing can read says why.",
10
+ })
11
+ .input(DiffSourceQuerySchema)
12
+ .output(DerivedDiffSchema),
13
+ };
14
+ //# sourceMappingURL=diff.contract.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"diff.contract.js","sourceRoot":"","sources":["../../src/contracts/diff.contract.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAE,MAAM,gBAAgB,CAAC;AACpC,OAAO,EAAE,iBAAiB,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;AAI9E,MAAM,CAAC,MAAM,YAAY,GAAG;IACxB,OAAO,EAAE,EAAE;SACN,KAAK,CAAC;QACH,MAAM,EAAE,KAAK;QACb,IAAI,EAAE,eAAe;QACrB,OAAO,EAAE,0CAA0C;QACnD,WAAW,EACP,0ZAA0Z;KACja,CAAC;SACD,KAAK,CAAC,qBAAqB,CAAC;SAC5B,MAAM,CAAC,iBAAiB,CAAC;CACjC,CAAC"}
@@ -361,6 +361,7 @@ export declare const extensionsContract: {
361
361
  url: "url";
362
362
  }>;
363
363
  edit: import("zod").ZodOptional<import("zod").ZodBoolean>;
364
+ compare: import("zod").ZodOptional<import("zod").ZodBoolean>;
364
365
  }, import("zod/v4/core").$strip>>>;
365
366
  views: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
366
367
  id: import("zod").ZodString;
@@ -1 +1 @@
1
- {"version":3,"file":"extensions.contract.d.ts","sourceRoot":"","sources":["../../src/contracts/extensions.contract.ts"],"names":[],"mappings":"AAyBA,eAAO,MAAM,kBAAkB;IAC3B,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAUJ,MAAM;;;;;;;IAYN,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAUX,MAAM;;;;;;;IAUN,QAAQ;;;;;;IASR,WAAW;;;;;;IAWX,UAAU;;;;;;IAWV,WAAW;;;;;IAUX,SAAS;;;;;;;;;;;;;;IAYT,YAAY;;;;IASZ,aAAa;;;;;;;;;;;;;;;IAUb,WAAW;;;;;;;;IAUX,MAAM;;;;;;;IASN,eAAe;;;;;;;;;;;;;;IAWf,aAAa;;;;;;;;;;;IASb,YAAY;;;;;;IASZ,WAAW;;;;;;CASd,CAAC"}
@@ -50,6 +50,37 @@ 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
+ } | {
53
84
  kind: "session";
54
85
  sessionId: string;
55
86
  account?: string | undefined;
@@ -244,37 +275,6 @@ export declare const runnerContract: {
244
275
  trigger: string;
245
276
  preTokens?: number | undefined;
246
277
  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,19 +389,6 @@ 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";
405
392
  } | {
406
393
  toolName: string;
407
394
  title?: string | undefined;
@@ -422,6 +409,19 @@ export declare const runnerContract: {
422
409
  explain?: string | undefined;
423
410
  requestId: string;
424
411
  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,6 +440,57 @@ 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
+ } | {
443
494
  kind: "session";
444
495
  sessionId: string;
445
496
  account?: string | undefined;
@@ -634,37 +685,6 @@ export declare const runnerContract: {
634
685
  trigger: string;
635
686
  preTokens?: number | undefined;
636
687
  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";
668
688
  } | {
669
689
  requestId: string;
670
690
  session: string;
@@ -792,26 +812,6 @@ export declare const runnerContract: {
792
812
  cachedAt?: number | undefined;
793
813
  cacheTtlMs?: number | undefined;
794
814
  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,6 +54,19 @@ 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
+ } | {
57
70
  kind: "hello";
58
71
  workspaceId: string;
59
72
  routes?: string[] | undefined;
@@ -70,18 +83,8 @@ export declare const systemContract: {
70
83
  }[];
71
84
  } | undefined;
72
85
  } | {
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";
86
+ kind: "reposChanged";
87
+ repos: string[];
85
88
  } | {
86
89
  kind: "workspaceChanged";
87
90
  paths: string[];
@@ -97,9 +100,6 @@ export declare const systemContract: {
97
100
  shadows?: number | undefined;
98
101
  sweptAt?: string | undefined;
99
102
  };
100
- } | {
101
- kind: "reposChanged";
102
- repos: string[];
103
103
  } | {
104
104
  kind: "refsChanged";
105
105
  repos: string[];
@@ -290,6 +290,19 @@ 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
+ } | {
293
306
  kind: "hello";
294
307
  workspaceId: string;
295
308
  routes?: string[] | undefined;
@@ -306,18 +319,8 @@ export declare const systemContract: {
306
319
  }[];
307
320
  } | undefined;
308
321
  } | {
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";
322
+ kind: "reposChanged";
323
+ repos: string[];
321
324
  } | {
322
325
  kind: "workspaceChanged";
323
326
  paths: string[];
@@ -333,9 +336,6 @@ export declare const systemContract: {
333
336
  shadows?: number | undefined;
334
337
  sweptAt?: string | undefined;
335
338
  };
336
- } | {
337
- kind: "reposChanged";
338
- repos: string[];
339
339
  } | {
340
340
  kind: "refsChanged";
341
341
  repos: string[];
@@ -598,6 +598,17 @@ export declare const systemContract: {
598
598
  message: z.ZodString;
599
599
  requestedAt: z.ZodNumber;
600
600
  }, z.core.$strip>>;
601
+ dialog: z.ZodOptional<z.ZodObject<{
602
+ pageId: z.ZodString;
603
+ kind: z.ZodEnum<{
604
+ alert: "alert";
605
+ beforeunload: "beforeunload";
606
+ confirm: "confirm";
607
+ prompt: "prompt";
608
+ }>;
609
+ message: z.ZodString;
610
+ defaultValue: z.ZodOptional<z.ZodString>;
611
+ }, z.core.$strip>>;
601
612
  pages: z.ZodArray<z.ZodObject<{
602
613
  id: z.ZodString;
603
614
  title: z.ZodOptional<z.ZodString>;
@@ -984,6 +995,7 @@ export declare const systemContract: {
984
995
  state: z.ZodEnum<{
985
996
  busy: "busy";
986
997
  "held-by-sandbox": "held-by-sandbox";
998
+ ignored: "ignored";
987
999
  mirrored: "mirrored";
988
1000
  }>;
989
1001
  heldBy: z.ZodOptional<z.ZodString>;
@@ -1078,8 +1090,10 @@ export declare const systemContract: {
1078
1090
  "dev-rebuild": "dev-rebuild";
1079
1091
  "dev-rebuild-log": "dev-rebuild-log";
1080
1092
  "dev-reload": "dev-reload";
1093
+ "mirror-ignore": "mirror-ignore";
1081
1094
  "mirror-off": "mirror-off";
1082
1095
  "mirror-on": "mirror-on";
1096
+ "mirror-unignore": "mirror-unignore";
1083
1097
  "sync-clean": "sync-clean";
1084
1098
  "sync-install": "sync-install";
1085
1099
  "sync-pause": "sync-pause";
@@ -1092,6 +1106,7 @@ export declare const systemContract: {
1092
1106
  sync: "sync";
1093
1107
  }>>;
1094
1108
  localDir: z.ZodOptional<z.ZodString>;
1109
+ port: z.ZodOptional<z.ZodNumber>;
1095
1110
  }, z.core.$strip>, z.ZodObject<{
1096
1111
  ok: z.ZodBoolean;
1097
1112
  message: z.ZodString;
@@ -1 +1 @@
1
- {"version":3,"file":"system.contract.d.ts","sourceRoot":"","sources":["../../src/contracts/system.contract.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AA6BxB,eAAO,MAAM,cAAc;IACvB,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;IAUJ,gBAAgB;;;;;;;;;;;;;IAUhB,cAAc;;;;;;;IAWd,OAAO;;;;;IASP,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAalB,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAUP,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAWnB,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAWhB,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;CAUrB,CAAC"}
package/dist/index.d.ts CHANGED
@@ -12,6 +12,7 @@ export { endpointsContract, type TrialHealth, TrialStatusSchema, type TrialStatu
12
12
  export { exitContract } from "./contracts/exit.contract.js";
13
13
  export { extensionsContract } from "./contracts/extensions.contract.js";
14
14
  export { personasContract } from "./contracts/personas.contract.js";
15
+ export { diffContract } from "./contracts/diff.contract.js";
15
16
  export { gitContract } from "./contracts/git.contract.js";
16
17
  export { historyContract } from "./contracts/history.contract.js";
17
18
  export { hostContract } from "./contracts/host.contract.js";
@@ -105,6 +106,7 @@ export * from "./schemas/environment.js";
105
106
  export * from "./schemas/exit.js";
106
107
  export * from "./schemas/extension-updates.js";
107
108
  export * from "./schemas/providers/fast-mode.js";
109
+ export * from "./schemas/diff.js";
108
110
  export * from "./schemas/git/git.js";
109
111
  export * from "./schemas/git/git-history.js";
110
112
  export * from "./schemas/history.js";
@@ -6268,6 +6270,54 @@ export declare const sandboxContract: {
6268
6270
  conversationId: import("zod").ZodString;
6269
6271
  }, import("zod/v4/core").$strip>, Record<never, never>, Record<never, never>>;
6270
6272
  };
6273
+ diff: {
6274
+ derived: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodDiscriminatedUnion<[import("zod").ZodObject<{
6275
+ source: import("zod").ZodLiteral<"working">;
6276
+ repo: import("zod").ZodString;
6277
+ side: import("zod").ZodEnum<{
6278
+ conflicted: "conflicted";
6279
+ staged: "staged";
6280
+ unstaged: "unstaged";
6281
+ }>;
6282
+ path: import("zod").ZodString;
6283
+ }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
6284
+ source: import("zod").ZodLiteral<"agent">;
6285
+ agent: import("zod").ZodString;
6286
+ repo: import("zod").ZodString;
6287
+ path: import("zod").ZodString;
6288
+ }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
6289
+ source: import("zod").ZodLiteral<"commit">;
6290
+ repo: import("zod").ZodString;
6291
+ sha: import("zod").ZodString;
6292
+ path: import("zod").ZodString;
6293
+ }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
6294
+ source: import("zod").ZodLiteral<"checkpoint">;
6295
+ snapshot: import("zod").ZodString;
6296
+ scope: import("zod").ZodString;
6297
+ path: import("zod").ZodString;
6298
+ }, import("zod/v4/core").$strip>], "source">, import("zod").ZodObject<{
6299
+ before: import("zod").ZodOptional<import("zod").ZodDiscriminatedUnion<[import("zod").ZodObject<{
6300
+ present: import("zod").ZodLiteral<true>;
6301
+ content: import("zod").ZodString;
6302
+ deriver: import("zod").ZodString;
6303
+ notes: import("zod").ZodArray<import("zod").ZodString>;
6304
+ truncated: import("zod").ZodBoolean;
6305
+ }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
6306
+ present: import("zod").ZodLiteral<false>;
6307
+ reason: import("zod").ZodString;
6308
+ }, import("zod/v4/core").$strip>], "present">>;
6309
+ after: import("zod").ZodOptional<import("zod").ZodDiscriminatedUnion<[import("zod").ZodObject<{
6310
+ present: import("zod").ZodLiteral<true>;
6311
+ content: import("zod").ZodString;
6312
+ deriver: import("zod").ZodString;
6313
+ notes: import("zod").ZodArray<import("zod").ZodString>;
6314
+ truncated: import("zod").ZodBoolean;
6315
+ }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
6316
+ present: import("zod").ZodLiteral<false>;
6317
+ reason: import("zod").ZodString;
6318
+ }, import("zod/v4/core").$strip>], "present">>;
6319
+ }, import("zod/v4/core").$strip>, Record<never, never>, Record<never, never>>;
6320
+ };
6271
6321
  endpoints: {
6272
6322
  models: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
6273
6323
  id: import("zod").ZodString;
@@ -6664,6 +6714,7 @@ export declare const sandboxContract: {
6664
6714
  url: "url";
6665
6715
  }>;
6666
6716
  edit: import("zod").ZodOptional<import("zod").ZodBoolean>;
6717
+ compare: import("zod").ZodOptional<import("zod").ZodBoolean>;
6667
6718
  }, import("zod/v4/core").$strip>>>;
6668
6719
  views: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
6669
6720
  id: import("zod").ZodString;
@@ -10686,6 +10737,17 @@ export declare const sandboxContract: {
10686
10737
  message: import("zod").ZodString;
10687
10738
  requestedAt: import("zod").ZodNumber;
10688
10739
  }, import("zod/v4/core").$strip>>;
10740
+ dialog: import("zod").ZodOptional<import("zod").ZodObject<{
10741
+ pageId: import("zod").ZodString;
10742
+ kind: import("zod").ZodEnum<{
10743
+ alert: "alert";
10744
+ beforeunload: "beforeunload";
10745
+ confirm: "confirm";
10746
+ prompt: "prompt";
10747
+ }>;
10748
+ message: import("zod").ZodString;
10749
+ defaultValue: import("zod").ZodOptional<import("zod").ZodString>;
10750
+ }, import("zod/v4/core").$strip>>;
10689
10751
  pages: import("zod").ZodArray<import("zod").ZodObject<{
10690
10752
  id: import("zod").ZodString;
10691
10753
  title: import("zod").ZodOptional<import("zod").ZodString>;
@@ -11072,6 +11134,7 @@ export declare const sandboxContract: {
11072
11134
  state: import("zod").ZodEnum<{
11073
11135
  busy: "busy";
11074
11136
  "held-by-sandbox": "held-by-sandbox";
11137
+ ignored: "ignored";
11075
11138
  mirrored: "mirrored";
11076
11139
  }>;
11077
11140
  heldBy: import("zod").ZodOptional<import("zod").ZodString>;
@@ -11166,8 +11229,10 @@ export declare const sandboxContract: {
11166
11229
  "dev-rebuild": "dev-rebuild";
11167
11230
  "dev-rebuild-log": "dev-rebuild-log";
11168
11231
  "dev-reload": "dev-reload";
11232
+ "mirror-ignore": "mirror-ignore";
11169
11233
  "mirror-off": "mirror-off";
11170
11234
  "mirror-on": "mirror-on";
11235
+ "mirror-unignore": "mirror-unignore";
11171
11236
  "sync-clean": "sync-clean";
11172
11237
  "sync-install": "sync-install";
11173
11238
  "sync-pause": "sync-pause";
@@ -11180,6 +11245,7 @@ export declare const sandboxContract: {
11180
11245
  sync: "sync";
11181
11246
  }>>;
11182
11247
  localDir: import("zod").ZodOptional<import("zod").ZodString>;
11248
+ port: import("zod").ZodOptional<import("zod").ZodNumber>;
11183
11249
  }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
11184
11250
  ok: import("zod").ZodBoolean;
11185
11251
  message: import("zod").ZodString;