@intentic/sandbox-contract 1.323.0 → 1.325.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 (110) hide show
  1. package/README.md +7 -0
  2. package/dist/contracts/agent.contract.d.ts +48 -0
  3. package/dist/contracts/agent.contract.d.ts.map +1 -1
  4. package/dist/contracts/agents.contract.d.ts +84 -0
  5. package/dist/contracts/agents.contract.d.ts.map +1 -1
  6. package/dist/contracts/approvals.contract.d.ts +31 -0
  7. package/dist/contracts/approvals.contract.d.ts.map +1 -1
  8. package/dist/contracts/approvals.contract.js +2 -2
  9. package/dist/contracts/approvals.contract.js.map +1 -1
  10. package/dist/contracts/capabilities.contract.d.ts +2 -0
  11. package/dist/contracts/capabilities.contract.d.ts.map +1 -1
  12. package/dist/contracts/runner.contract.d.ts +167 -133
  13. package/dist/contracts/runner.contract.d.ts.map +1 -1
  14. package/dist/contracts/sessions.contract.d.ts +8 -0
  15. package/dist/contracts/sessions.contract.d.ts.map +1 -1
  16. package/dist/contracts/settings.contract.d.ts +74 -0
  17. package/dist/contracts/settings.contract.d.ts.map +1 -1
  18. package/dist/contracts/system.contract.d.ts +54 -0
  19. package/dist/contracts/system.contract.d.ts.map +1 -1
  20. package/dist/contracts/system.contract.js +11 -1
  21. package/dist/contracts/system.contract.js.map +1 -1
  22. package/dist/events/agent-events.d.ts +39 -1
  23. package/dist/events/agent-events.d.ts.map +1 -1
  24. package/dist/events/agent-events.js +4 -0
  25. package/dist/events/agent-events.js.map +1 -1
  26. package/dist/events/agent-ui.d.ts +33 -0
  27. package/dist/events/agent-ui.d.ts.map +1 -0
  28. package/dist/events/agent-ui.js +24 -0
  29. package/dist/events/agent-ui.js.map +1 -0
  30. package/dist/events/system-events.d.ts +11 -0
  31. package/dist/events/system-events.d.ts.map +1 -1
  32. package/dist/events/system-events.js +1 -0
  33. package/dist/events/system-events.js.map +1 -1
  34. package/dist/events/transcript.d.ts +48 -0
  35. package/dist/events/transcript.d.ts.map +1 -1
  36. package/dist/events/transcript.js +2 -0
  37. package/dist/events/transcript.js.map +1 -1
  38. package/dist/index.d.ts +302 -0
  39. package/dist/index.d.ts.map +1 -1
  40. package/dist/index.js +1 -0
  41. package/dist/index.js.map +1 -1
  42. package/dist/schemas/agents.d.ts +12 -0
  43. package/dist/schemas/agents.d.ts.map +1 -1
  44. package/dist/schemas/agents.js +8 -1
  45. package/dist/schemas/agents.js.map +1 -1
  46. package/dist/schemas/approvals.d.ts +102 -0
  47. package/dist/schemas/approvals.d.ts.map +1 -1
  48. package/dist/schemas/approvals.js +45 -4
  49. package/dist/schemas/approvals.js.map +1 -1
  50. package/dist/schemas/automations.d.ts +4 -0
  51. package/dist/schemas/automations.d.ts.map +1 -1
  52. package/dist/schemas/capabilities.d.ts +2 -0
  53. package/dist/schemas/capabilities.d.ts.map +1 -1
  54. package/dist/schemas/capabilities.js +10 -1
  55. package/dist/schemas/capabilities.js.map +1 -1
  56. package/dist/schemas/logs.d.ts +1 -0
  57. package/dist/schemas/logs.d.ts.map +1 -1
  58. package/dist/schemas/logs.js +4 -0
  59. package/dist/schemas/logs.js.map +1 -1
  60. package/dist/schemas/providers/usage.d.ts +1 -0
  61. package/dist/schemas/providers/usage.d.ts.map +1 -1
  62. package/dist/schemas/providers/usage.js +1 -0
  63. package/dist/schemas/providers/usage.js.map +1 -1
  64. package/dist/schemas/settings.d.ts +80 -0
  65. package/dist/schemas/settings.d.ts.map +1 -1
  66. package/dist/schemas/settings.js +14 -3
  67. package/dist/schemas/settings.js.map +1 -1
  68. package/dist/schemas/system.d.ts +17 -0
  69. package/dist/schemas/system.d.ts.map +1 -1
  70. package/dist/schemas/system.js +2 -1
  71. package/dist/schemas/system.js.map +1 -1
  72. package/dist/schemas/updates.d.ts +30 -0
  73. package/dist/schemas/updates.d.ts.map +1 -1
  74. package/dist/schemas/updates.js +37 -0
  75. package/dist/schemas/updates.js.map +1 -1
  76. package/dist/state/definition.d.ts +10 -0
  77. package/dist/state/definition.d.ts.map +1 -1
  78. package/dist/state/history-state.d.ts.map +1 -1
  79. package/dist/state/history-state.js +1 -0
  80. package/dist/state/history-state.js.map +1 -1
  81. package/dist/state/runtime-state.d.ts +3 -0
  82. package/dist/state/runtime-state.d.ts.map +1 -1
  83. package/dist/state/runtime-state.js +1 -0
  84. package/dist/state/runtime-state.js.map +1 -1
  85. package/dist/text/transcript-fold.d.ts.map +1 -1
  86. package/dist/text/transcript-fold.js +9 -0
  87. package/dist/text/transcript-fold.js.map +1 -1
  88. package/package.json +5 -5
  89. package/src/contracts/approvals.contract.ts +2 -2
  90. package/src/contracts/system.contract.ts +14 -1
  91. package/src/events/agent-events.ts +6 -0
  92. package/src/events/agent-ui.ts +40 -0
  93. package/src/events/system-events.ts +2 -0
  94. package/src/events/transcript.ts +5 -0
  95. package/src/index.ts +1 -0
  96. package/src/schemas/agents.ts +16 -3
  97. package/src/schemas/approvals.ts +59 -4
  98. package/src/schemas/capabilities.ts +15 -2
  99. package/src/schemas/ci.ts +1 -1
  100. package/src/schemas/logs.ts +6 -0
  101. package/src/schemas/providers/usage.ts +3 -0
  102. package/src/schemas/settings-history.ts +3 -3
  103. package/src/schemas/settings.test.ts +5 -5
  104. package/src/schemas/settings.ts +47 -19
  105. package/src/schemas/system.ts +6 -1
  106. package/src/schemas/updates.ts +71 -0
  107. package/src/state/history-state.ts +3 -0
  108. package/src/state/runtime-state.ts +4 -0
  109. package/src/text/transcript-fold.test.ts +15 -0
  110. package/src/text/transcript-fold.ts +10 -0
package/dist/index.d.ts CHANGED
@@ -50,6 +50,7 @@ export { vpnContract } from "./contracts/vpn.contract.js";
50
50
  export { workflowsContract } from "./contracts/workflows.contract.js";
51
51
  export { workspaceContract } from "./contracts/workspace.contract.js";
52
52
  export * from "./events/agent-events.js";
53
+ export * from "./events/agent-ui.js";
53
54
  export * from "./events/agent-words.js";
54
55
  export * from "./events/requests.js";
55
56
  export * from "./events/resume.js";
@@ -740,6 +741,10 @@ export declare const sandboxContract: {
740
741
  code: string;
741
742
  params?: Record<string, string | number | boolean> | undefined;
742
743
  } | undefined;
744
+ agentNotice?: {
745
+ level: "error" | "info" | "warning";
746
+ source?: string | undefined;
747
+ } | undefined;
743
748
  plan?: {
744
749
  requestId: string;
745
750
  text: string;
@@ -1015,6 +1020,10 @@ export declare const sandboxContract: {
1015
1020
  code: string;
1016
1021
  params?: Record<string, string | number | boolean> | undefined;
1017
1022
  } | undefined;
1023
+ agentNotice?: {
1024
+ level: "error" | "info" | "warning";
1025
+ source?: string | undefined;
1026
+ } | undefined;
1018
1027
  plan?: {
1019
1028
  requestId: string;
1020
1029
  text: string;
@@ -1288,6 +1297,10 @@ export declare const sandboxContract: {
1288
1297
  code: string;
1289
1298
  params?: Record<string, string | number | boolean> | undefined;
1290
1299
  } | undefined;
1300
+ agentNotice?: {
1301
+ level: "error" | "info" | "warning";
1302
+ source?: string | undefined;
1303
+ } | undefined;
1291
1304
  plan?: {
1292
1305
  requestId: string;
1293
1306
  text: string;
@@ -1591,6 +1604,10 @@ export declare const sandboxContract: {
1591
1604
  code: string;
1592
1605
  params?: Record<string, string | number | boolean> | undefined;
1593
1606
  } | undefined;
1607
+ agentNotice?: {
1608
+ level: "error" | "info" | "warning";
1609
+ source?: string | undefined;
1610
+ } | undefined;
1594
1611
  plan?: {
1595
1612
  requestId: string;
1596
1613
  text: string;
@@ -1866,6 +1883,10 @@ export declare const sandboxContract: {
1866
1883
  code: string;
1867
1884
  params?: Record<string, string | number | boolean> | undefined;
1868
1885
  } | undefined;
1886
+ agentNotice?: {
1887
+ level: "error" | "info" | "warning";
1888
+ source?: string | undefined;
1889
+ } | undefined;
1869
1890
  plan?: {
1870
1891
  requestId: string;
1871
1892
  text: string;
@@ -2139,6 +2160,10 @@ export declare const sandboxContract: {
2139
2160
  code: string;
2140
2161
  params?: Record<string, string | number | boolean> | undefined;
2141
2162
  } | undefined;
2163
+ agentNotice?: {
2164
+ level: "error" | "info" | "warning";
2165
+ source?: string | undefined;
2166
+ } | undefined;
2142
2167
  plan?: {
2143
2168
  requestId: string;
2144
2169
  text: string;
@@ -2473,6 +2498,14 @@ export declare const sandboxContract: {
2473
2498
  code: z.ZodString;
2474
2499
  params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
2475
2500
  }, z.core.$strip>>;
2501
+ agentNotice: z.ZodOptional<z.ZodObject<{
2502
+ level: z.ZodEnum<{
2503
+ error: "error";
2504
+ info: "info";
2505
+ warning: "warning";
2506
+ }>;
2507
+ source: z.ZodOptional<z.ZodString>;
2508
+ }, z.core.$strip>>;
2476
2509
  plan: z.ZodOptional<z.ZodObject<{
2477
2510
  requestId: z.ZodString;
2478
2511
  text: z.ZodString;
@@ -2886,6 +2919,14 @@ export declare const sandboxContract: {
2886
2919
  code: z.ZodString;
2887
2920
  params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
2888
2921
  }, z.core.$strip>>;
2922
+ agentNotice: z.ZodOptional<z.ZodObject<{
2923
+ level: z.ZodEnum<{
2924
+ error: "error";
2925
+ info: "info";
2926
+ warning: "warning";
2927
+ }>;
2928
+ source: z.ZodOptional<z.ZodString>;
2929
+ }, z.core.$strip>>;
2889
2930
  plan: z.ZodOptional<z.ZodObject<{
2890
2931
  requestId: z.ZodString;
2891
2932
  text: z.ZodString;
@@ -3297,6 +3338,14 @@ export declare const sandboxContract: {
3297
3338
  code: z.ZodString;
3298
3339
  params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
3299
3340
  }, z.core.$strip>>;
3341
+ agentNotice: z.ZodOptional<z.ZodObject<{
3342
+ level: z.ZodEnum<{
3343
+ error: "error";
3344
+ info: "info";
3345
+ warning: "warning";
3346
+ }>;
3347
+ source: z.ZodOptional<z.ZodString>;
3348
+ }, z.core.$strip>>;
3300
3349
  plan: z.ZodOptional<z.ZodObject<{
3301
3350
  requestId: z.ZodString;
3302
3351
  text: z.ZodString;
@@ -4255,6 +4304,10 @@ export declare const sandboxContract: {
4255
4304
  person: "person";
4256
4305
  turn: "turn";
4257
4306
  }>>;
4307
+ inputWait: z.ZodOptional<z.ZodObject<{
4308
+ since: z.ZodNumber;
4309
+ program: z.ZodString;
4310
+ }, z.core.$strip>>;
4258
4311
  }, z.core.$strip>>>;
4259
4312
  archivedAt: z.ZodOptional<z.ZodNumber>;
4260
4313
  }, z.core.$strip>>;
@@ -4591,6 +4644,10 @@ export declare const sandboxContract: {
4591
4644
  person: "person";
4592
4645
  turn: "turn";
4593
4646
  }>>;
4647
+ inputWait: z.ZodOptional<z.ZodObject<{
4648
+ since: z.ZodNumber;
4649
+ program: z.ZodString;
4650
+ }, z.core.$strip>>;
4594
4651
  }, z.core.$strip>>>;
4595
4652
  archivedAt: z.ZodOptional<z.ZodNumber>;
4596
4653
  }, z.core.$strip>>;
@@ -4945,6 +5002,10 @@ export declare const sandboxContract: {
4945
5002
  person: "person";
4946
5003
  turn: "turn";
4947
5004
  }>>;
5005
+ inputWait: z.ZodOptional<z.ZodObject<{
5006
+ since: z.ZodNumber;
5007
+ program: z.ZodString;
5008
+ }, z.core.$strip>>;
4948
5009
  }, z.core.$strip>>>;
4949
5010
  archivedAt: z.ZodOptional<z.ZodNumber>;
4950
5011
  }, z.core.$strip>, Record<never, never>, import("./protocol/route-meta.js").RouteMeta & Record<never, never>>;
@@ -5034,6 +5095,14 @@ export declare const sandboxContract: {
5034
5095
  code: z.ZodString;
5035
5096
  params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
5036
5097
  }, z.core.$strip>>;
5098
+ agentNotice: z.ZodOptional<z.ZodObject<{
5099
+ level: z.ZodEnum<{
5100
+ error: "error";
5101
+ info: "info";
5102
+ warning: "warning";
5103
+ }>;
5104
+ source: z.ZodOptional<z.ZodString>;
5105
+ }, z.core.$strip>>;
5037
5106
  plan: z.ZodOptional<z.ZodObject<{
5038
5107
  requestId: z.ZodString;
5039
5108
  text: z.ZodString;
@@ -5517,6 +5586,14 @@ export declare const sandboxContract: {
5517
5586
  code: z.ZodString;
5518
5587
  params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
5519
5588
  }, z.core.$strip>>;
5589
+ agentNotice: z.ZodOptional<z.ZodObject<{
5590
+ level: z.ZodEnum<{
5591
+ error: "error";
5592
+ info: "info";
5593
+ warning: "warning";
5594
+ }>;
5595
+ source: z.ZodOptional<z.ZodString>;
5596
+ }, z.core.$strip>>;
5520
5597
  plan: z.ZodOptional<z.ZodObject<{
5521
5598
  requestId: z.ZodString;
5522
5599
  text: z.ZodString;
@@ -6166,6 +6243,10 @@ export declare const sandboxContract: {
6166
6243
  person: "person";
6167
6244
  turn: "turn";
6168
6245
  }>>;
6246
+ inputWait: z.ZodOptional<z.ZodObject<{
6247
+ since: z.ZodNumber;
6248
+ program: z.ZodString;
6249
+ }, z.core.$strip>>;
6169
6250
  }, z.core.$strip>>>;
6170
6251
  archivedAt: z.ZodOptional<z.ZodNumber>;
6171
6252
  }, z.core.$strip>, Record<never, never>, import("./protocol/route-meta.js").RouteMeta & Record<never, never>>;
@@ -6484,6 +6565,10 @@ export declare const sandboxContract: {
6484
6565
  person: "person";
6485
6566
  turn: "turn";
6486
6567
  }>>;
6568
+ inputWait: z.ZodOptional<z.ZodObject<{
6569
+ since: z.ZodNumber;
6570
+ program: z.ZodString;
6571
+ }, z.core.$strip>>;
6487
6572
  }, z.core.$strip>>>;
6488
6573
  archivedAt: z.ZodOptional<z.ZodNumber>;
6489
6574
  }, z.core.$strip>, Record<never, never>, import("./protocol/route-meta.js").RouteMeta & Record<never, never>>;
@@ -6812,6 +6897,10 @@ export declare const sandboxContract: {
6812
6897
  person: "person";
6813
6898
  turn: "turn";
6814
6899
  }>>;
6900
+ inputWait: z.ZodOptional<z.ZodObject<{
6901
+ since: z.ZodNumber;
6902
+ program: z.ZodString;
6903
+ }, z.core.$strip>>;
6815
6904
  }, z.core.$strip>>>;
6816
6905
  archivedAt: z.ZodOptional<z.ZodNumber>;
6817
6906
  }, z.core.$strip>, Record<never, never>, import("./protocol/route-meta.js").RouteMeta & Record<never, never>>;
@@ -7130,6 +7219,10 @@ export declare const sandboxContract: {
7130
7219
  person: "person";
7131
7220
  turn: "turn";
7132
7221
  }>>;
7222
+ inputWait: z.ZodOptional<z.ZodObject<{
7223
+ since: z.ZodNumber;
7224
+ program: z.ZodString;
7225
+ }, z.core.$strip>>;
7133
7226
  }, z.core.$strip>>>;
7134
7227
  archivedAt: z.ZodOptional<z.ZodNumber>;
7135
7228
  }, z.core.$strip>, Record<never, never>, import("./protocol/route-meta.js").RouteMeta & Record<never, never>>;
@@ -7447,6 +7540,10 @@ export declare const sandboxContract: {
7447
7540
  person: "person";
7448
7541
  turn: "turn";
7449
7542
  }>>;
7543
+ inputWait: z.ZodOptional<z.ZodObject<{
7544
+ since: z.ZodNumber;
7545
+ program: z.ZodString;
7546
+ }, z.core.$strip>>;
7450
7547
  }, z.core.$strip>>>;
7451
7548
  archivedAt: z.ZodOptional<z.ZodNumber>;
7452
7549
  }, z.core.$strip>, Record<never, never>, import("./protocol/route-meta.js").RouteMeta & Record<never, never>>;
@@ -7765,6 +7862,10 @@ export declare const sandboxContract: {
7765
7862
  person: "person";
7766
7863
  turn: "turn";
7767
7864
  }>>;
7865
+ inputWait: z.ZodOptional<z.ZodObject<{
7866
+ since: z.ZodNumber;
7867
+ program: z.ZodString;
7868
+ }, z.core.$strip>>;
7768
7869
  }, z.core.$strip>>>;
7769
7870
  archivedAt: z.ZodOptional<z.ZodNumber>;
7770
7871
  }, z.core.$strip>, Record<never, never>, import("./protocol/route-meta.js").RouteMeta & Record<never, never>>;
@@ -8083,6 +8184,10 @@ export declare const sandboxContract: {
8083
8184
  person: "person";
8084
8185
  turn: "turn";
8085
8186
  }>>;
8187
+ inputWait: z.ZodOptional<z.ZodObject<{
8188
+ since: z.ZodNumber;
8189
+ program: z.ZodString;
8190
+ }, z.core.$strip>>;
8086
8191
  }, z.core.$strip>>>;
8087
8192
  archivedAt: z.ZodOptional<z.ZodNumber>;
8088
8193
  }, z.core.$strip>, Record<never, never>, import("./protocol/route-meta.js").RouteMeta & Record<never, never>>;
@@ -8401,6 +8506,10 @@ export declare const sandboxContract: {
8401
8506
  person: "person";
8402
8507
  turn: "turn";
8403
8508
  }>>;
8509
+ inputWait: z.ZodOptional<z.ZodObject<{
8510
+ since: z.ZodNumber;
8511
+ program: z.ZodString;
8512
+ }, z.core.$strip>>;
8404
8513
  }, z.core.$strip>>>;
8405
8514
  archivedAt: z.ZodOptional<z.ZodNumber>;
8406
8515
  }, z.core.$strip>, Record<never, never>, import("./protocol/route-meta.js").RouteMeta & Record<never, never>>;
@@ -8717,6 +8826,10 @@ export declare const sandboxContract: {
8717
8826
  person: "person";
8718
8827
  turn: "turn";
8719
8828
  }>>;
8829
+ inputWait: z.ZodOptional<z.ZodObject<{
8830
+ since: z.ZodNumber;
8831
+ program: z.ZodString;
8832
+ }, z.core.$strip>>;
8720
8833
  }, z.core.$strip>>>;
8721
8834
  archivedAt: z.ZodOptional<z.ZodNumber>;
8722
8835
  }, z.core.$strip>>;
@@ -9241,6 +9354,10 @@ export declare const sandboxContract: {
9241
9354
  person: "person";
9242
9355
  turn: "turn";
9243
9356
  }>>;
9357
+ inputWait: z.ZodOptional<z.ZodObject<{
9358
+ since: z.ZodNumber;
9359
+ program: z.ZodString;
9360
+ }, z.core.$strip>>;
9244
9361
  }, z.core.$strip>>>;
9245
9362
  archivedAt: z.ZodOptional<z.ZodNumber>;
9246
9363
  }, z.core.$strip>, Record<never, never>, import("./protocol/route-meta.js").RouteMeta & Record<never, never>>;
@@ -9559,6 +9676,10 @@ export declare const sandboxContract: {
9559
9676
  person: "person";
9560
9677
  turn: "turn";
9561
9678
  }>>;
9679
+ inputWait: z.ZodOptional<z.ZodObject<{
9680
+ since: z.ZodNumber;
9681
+ program: z.ZodString;
9682
+ }, z.core.$strip>>;
9562
9683
  }, z.core.$strip>>>;
9563
9684
  archivedAt: z.ZodOptional<z.ZodNumber>;
9564
9685
  }, z.core.$strip>, Record<never, never>, import("./protocol/route-meta.js").RouteMeta & Record<never, never>>;
@@ -9878,6 +9999,10 @@ export declare const sandboxContract: {
9878
9999
  person: "person";
9879
10000
  turn: "turn";
9880
10001
  }>>;
10002
+ inputWait: z.ZodOptional<z.ZodObject<{
10003
+ since: z.ZodNumber;
10004
+ program: z.ZodString;
10005
+ }, z.core.$strip>>;
9881
10006
  }, z.core.$strip>>>;
9882
10007
  archivedAt: z.ZodOptional<z.ZodNumber>;
9883
10008
  }, z.core.$strip>, Record<never, never>, import("./protocol/route-meta.js").RouteMeta & Record<never, never>>;
@@ -10201,6 +10326,10 @@ export declare const sandboxContract: {
10201
10326
  person: "person";
10202
10327
  turn: "turn";
10203
10328
  }>>;
10329
+ inputWait: z.ZodOptional<z.ZodObject<{
10330
+ since: z.ZodNumber;
10331
+ program: z.ZodString;
10332
+ }, z.core.$strip>>;
10204
10333
  }, z.core.$strip>>>;
10205
10334
  archivedAt: z.ZodOptional<z.ZodNumber>;
10206
10335
  }, z.core.$strip>>;
@@ -10525,6 +10654,10 @@ export declare const sandboxContract: {
10525
10654
  person: "person";
10526
10655
  turn: "turn";
10527
10656
  }>>;
10657
+ inputWait: z.ZodOptional<z.ZodObject<{
10658
+ since: z.ZodNumber;
10659
+ program: z.ZodString;
10660
+ }, z.core.$strip>>;
10528
10661
  }, z.core.$strip>>>;
10529
10662
  archivedAt: z.ZodOptional<z.ZodNumber>;
10530
10663
  }, z.core.$strip>>;
@@ -10638,9 +10771,11 @@ export declare const sandboxContract: {
10638
10771
  conversationId: z.ZodOptional<z.ZodString>;
10639
10772
  hooks: z.ZodArray<z.ZodObject<{
10640
10773
  source: z.ZodEnum<{
10774
+ plugin: "plugin";
10641
10775
  project: "project";
10642
10776
  user: "user";
10643
10777
  }>;
10778
+ plugin: z.ZodOptional<z.ZodString>;
10644
10779
  declaredIn: z.ZodOptional<z.ZodString>;
10645
10780
  event: z.ZodString;
10646
10781
  matcher: z.ZodOptional<z.ZodString>;
@@ -10651,6 +10786,35 @@ export declare const sandboxContract: {
10651
10786
  path: z.ZodString;
10652
10787
  sha256: z.ZodString;
10653
10788
  }, z.core.$strip>>;
10789
+ plugins: z.ZodOptional<z.ZodArray<z.ZodObject<{
10790
+ name: z.ZodString;
10791
+ from: z.ZodEnum<{
10792
+ extension: "extension";
10793
+ persona: "persona";
10794
+ plugin: "plugin";
10795
+ settings: "settings";
10796
+ skills: "skills";
10797
+ }>;
10798
+ source: z.ZodOptional<z.ZodEnum<{
10799
+ project: "project";
10800
+ user: "user";
10801
+ }>>;
10802
+ dir: z.ZodOptional<z.ZodString>;
10803
+ module: z.ZodOptional<z.ZodObject<{
10804
+ path: z.ZodString;
10805
+ hooks: z.ZodArray<z.ZodString>;
10806
+ calls: z.ZodArray<z.ZodString>;
10807
+ unreadable: z.ZodOptional<z.ZodString>;
10808
+ }, z.core.$strip>>;
10809
+ }, z.core.$strip>>>;
10810
+ marketplaces: z.ZodOptional<z.ZodArray<z.ZodObject<{
10811
+ source: z.ZodEnum<{
10812
+ project: "project";
10813
+ user: "user";
10814
+ }>;
10815
+ name: z.ZodString;
10816
+ location: z.ZodString;
10817
+ }, z.core.$strip>>>;
10654
10818
  dismissed: z.ZodOptional<z.ZodBoolean>;
10655
10819
  }, z.core.$strip>>;
10656
10820
  ledgerUnreadable: z.ZodOptional<z.ZodBoolean>;
@@ -11143,6 +11307,7 @@ export declare const sandboxContract: {
11143
11307
  ref: z.ZodOptional<z.ZodString>;
11144
11308
  path: z.ZodOptional<z.ZodString>;
11145
11309
  token: z.ZodOptional<z.ZodString>;
11310
+ commit: z.ZodOptional<z.ZodString>;
11146
11311
  }, z.core.$strip>;
11147
11312
  }, z.core.$strip>, z.ZodObject<{
11148
11313
  id: z.ZodString;
@@ -11482,6 +11647,7 @@ export declare const sandboxContract: {
11482
11647
  ref: z.ZodOptional<z.ZodString>;
11483
11648
  path: z.ZodOptional<z.ZodString>;
11484
11649
  token: z.ZodOptional<z.ZodString>;
11650
+ commit: z.ZodOptional<z.ZodString>;
11485
11651
  }, z.core.$strip>;
11486
11652
  }, z.core.$strip>, z.ZodObject<{
11487
11653
  id: z.ZodString;
@@ -13936,6 +14102,14 @@ export declare const sandboxContract: {
13936
14102
  code: z.ZodString;
13937
14103
  params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
13938
14104
  }, z.core.$strip>>;
14105
+ agentNotice: z.ZodOptional<z.ZodObject<{
14106
+ level: z.ZodEnum<{
14107
+ error: "error";
14108
+ info: "info";
14109
+ warning: "warning";
14110
+ }>;
14111
+ source: z.ZodOptional<z.ZodString>;
14112
+ }, z.core.$strip>>;
13939
14113
  plan: z.ZodOptional<z.ZodObject<{
13940
14114
  requestId: z.ZodString;
13941
14115
  text: z.ZodString;
@@ -14280,6 +14454,8 @@ export declare const sandboxContract: {
14280
14454
  systemPrompt: z.ZodDefault<z.ZodString>;
14281
14455
  leanGuidance: z.ZodDefault<z.ZodBoolean>;
14282
14456
  leanGuidanceHoldout: z.ZodDefault<z.ZodNumber>;
14457
+ toolResultClearing: z.ZodDefault<z.ZodBoolean>;
14458
+ toolResultClearingHoldout: z.ZodDefault<z.ZodNumber>;
14283
14459
  iqSearch: z.ZodDefault<z.ZodBoolean>;
14284
14460
  iqSearchHoldout: z.ZodDefault<z.ZodNumber>;
14285
14461
  workspaceMap: z.ZodDefault<z.ZodBoolean>;
@@ -14454,6 +14630,8 @@ export declare const sandboxContract: {
14454
14630
  systemPrompt: z.ZodDefault<z.ZodString>;
14455
14631
  leanGuidance: z.ZodDefault<z.ZodBoolean>;
14456
14632
  leanGuidanceHoldout: z.ZodDefault<z.ZodNumber>;
14633
+ toolResultClearing: z.ZodDefault<z.ZodBoolean>;
14634
+ toolResultClearingHoldout: z.ZodDefault<z.ZodNumber>;
14457
14635
  iqSearch: z.ZodDefault<z.ZodBoolean>;
14458
14636
  iqSearchHoldout: z.ZodDefault<z.ZodNumber>;
14459
14637
  workspaceMap: z.ZodDefault<z.ZodBoolean>;
@@ -14646,9 +14824,11 @@ export declare const sandboxContract: {
14646
14824
  metrics: z.ZodTuple<[z.ZodObject<{
14647
14825
  metric: z.ZodEnum<{
14648
14826
  callsBeforeTarget: "callsBeforeTarget";
14827
+ contextPerCall: "contextPerCall";
14649
14828
  failedCalls: "failedCalls";
14650
14829
  openingListings: "openingListings";
14651
14830
  openingSearches: "openingSearches";
14831
+ roundTrips: "roundTrips";
14652
14832
  searchCalls: "searchCalls";
14653
14833
  }>;
14654
14834
  on: z.ZodObject<{
@@ -14666,9 +14846,11 @@ export declare const sandboxContract: {
14666
14846
  }, z.core.$strip>], z.ZodObject<{
14667
14847
  metric: z.ZodEnum<{
14668
14848
  callsBeforeTarget: "callsBeforeTarget";
14849
+ contextPerCall: "contextPerCall";
14669
14850
  failedCalls: "failedCalls";
14670
14851
  openingListings: "openingListings";
14671
14852
  openingSearches: "openingSearches";
14853
+ roundTrips: "roundTrips";
14672
14854
  searchCalls: "searchCalls";
14673
14855
  }>;
14674
14856
  on: z.ZodObject<{
@@ -14696,9 +14878,11 @@ export declare const sandboxContract: {
14696
14878
  metrics: z.ZodTuple<[z.ZodObject<{
14697
14879
  metric: z.ZodEnum<{
14698
14880
  callsBeforeTarget: "callsBeforeTarget";
14881
+ contextPerCall: "contextPerCall";
14699
14882
  failedCalls: "failedCalls";
14700
14883
  openingListings: "openingListings";
14701
14884
  openingSearches: "openingSearches";
14885
+ roundTrips: "roundTrips";
14702
14886
  searchCalls: "searchCalls";
14703
14887
  }>;
14704
14888
  on: z.ZodObject<{
@@ -14716,9 +14900,11 @@ export declare const sandboxContract: {
14716
14900
  }, z.core.$strip>], z.ZodObject<{
14717
14901
  metric: z.ZodEnum<{
14718
14902
  callsBeforeTarget: "callsBeforeTarget";
14903
+ contextPerCall: "contextPerCall";
14719
14904
  failedCalls: "failedCalls";
14720
14905
  openingListings: "openingListings";
14721
14906
  openingSearches: "openingSearches";
14907
+ roundTrips: "roundTrips";
14722
14908
  searchCalls: "searchCalls";
14723
14909
  }>;
14724
14910
  on: z.ZodObject<{
@@ -14746,9 +14932,11 @@ export declare const sandboxContract: {
14746
14932
  metrics: z.ZodTuple<[z.ZodObject<{
14747
14933
  metric: z.ZodEnum<{
14748
14934
  callsBeforeTarget: "callsBeforeTarget";
14935
+ contextPerCall: "contextPerCall";
14749
14936
  failedCalls: "failedCalls";
14750
14937
  openingListings: "openingListings";
14751
14938
  openingSearches: "openingSearches";
14939
+ roundTrips: "roundTrips";
14752
14940
  searchCalls: "searchCalls";
14753
14941
  }>;
14754
14942
  on: z.ZodObject<{
@@ -14766,9 +14954,11 @@ export declare const sandboxContract: {
14766
14954
  }, z.core.$strip>], z.ZodObject<{
14767
14955
  metric: z.ZodEnum<{
14768
14956
  callsBeforeTarget: "callsBeforeTarget";
14957
+ contextPerCall: "contextPerCall";
14769
14958
  failedCalls: "failedCalls";
14770
14959
  openingListings: "openingListings";
14771
14960
  openingSearches: "openingSearches";
14961
+ roundTrips: "roundTrips";
14772
14962
  searchCalls: "searchCalls";
14773
14963
  }>;
14774
14964
  on: z.ZodObject<{
@@ -14796,9 +14986,65 @@ export declare const sandboxContract: {
14796
14986
  metrics: z.ZodTuple<[z.ZodObject<{
14797
14987
  metric: z.ZodEnum<{
14798
14988
  callsBeforeTarget: "callsBeforeTarget";
14989
+ contextPerCall: "contextPerCall";
14990
+ failedCalls: "failedCalls";
14991
+ openingListings: "openingListings";
14992
+ openingSearches: "openingSearches";
14993
+ roundTrips: "roundTrips";
14994
+ searchCalls: "searchCalls";
14995
+ }>;
14996
+ on: z.ZodObject<{
14997
+ turns: z.ZodNumber;
14998
+ mean: z.ZodNumber;
14999
+ }, z.core.$strip>;
15000
+ off: z.ZodObject<{
15001
+ turns: z.ZodNumber;
15002
+ mean: z.ZodNumber;
15003
+ }, z.core.$strip>;
15004
+ controlTurnsNeeded: z.ZodOptional<z.ZodNumber>;
15005
+ marginPct: z.ZodOptional<z.ZodNumber>;
15006
+ deltaPct: z.ZodOptional<z.ZodNumber>;
15007
+ saved: z.ZodOptional<z.ZodNumber>;
15008
+ }, z.core.$strip>], z.ZodObject<{
15009
+ metric: z.ZodEnum<{
15010
+ callsBeforeTarget: "callsBeforeTarget";
15011
+ contextPerCall: "contextPerCall";
15012
+ failedCalls: "failedCalls";
15013
+ openingListings: "openingListings";
15014
+ openingSearches: "openingSearches";
15015
+ roundTrips: "roundTrips";
15016
+ searchCalls: "searchCalls";
15017
+ }>;
15018
+ on: z.ZodObject<{
15019
+ turns: z.ZodNumber;
15020
+ mean: z.ZodNumber;
15021
+ }, z.core.$strip>;
15022
+ off: z.ZodObject<{
15023
+ turns: z.ZodNumber;
15024
+ mean: z.ZodNumber;
15025
+ }, z.core.$strip>;
15026
+ controlTurnsNeeded: z.ZodOptional<z.ZodNumber>;
15027
+ marginPct: z.ZodOptional<z.ZodNumber>;
15028
+ deltaPct: z.ZodOptional<z.ZodNumber>;
15029
+ saved: z.ZodOptional<z.ZodNumber>;
15030
+ }, z.core.$strip>>;
15031
+ minTurns: z.ZodNumber;
15032
+ sampleUnit: z.ZodOptional<z.ZodEnum<{
15033
+ conversations: "conversations";
15034
+ "opening turns": "opening turns";
15035
+ turns: "turns";
15036
+ }>>;
15037
+ cohort: z.ZodOptional<z.ZodString>;
15038
+ }, z.core.$strip>>;
15039
+ clearing: z.ZodOptional<z.ZodObject<{
15040
+ metrics: z.ZodTuple<[z.ZodObject<{
15041
+ metric: z.ZodEnum<{
15042
+ callsBeforeTarget: "callsBeforeTarget";
15043
+ contextPerCall: "contextPerCall";
14799
15044
  failedCalls: "failedCalls";
14800
15045
  openingListings: "openingListings";
14801
15046
  openingSearches: "openingSearches";
15047
+ roundTrips: "roundTrips";
14802
15048
  searchCalls: "searchCalls";
14803
15049
  }>;
14804
15050
  on: z.ZodObject<{
@@ -14816,9 +15062,11 @@ export declare const sandboxContract: {
14816
15062
  }, z.core.$strip>], z.ZodObject<{
14817
15063
  metric: z.ZodEnum<{
14818
15064
  callsBeforeTarget: "callsBeforeTarget";
15065
+ contextPerCall: "contextPerCall";
14819
15066
  failedCalls: "failedCalls";
14820
15067
  openingListings: "openingListings";
14821
15068
  openingSearches: "openingSearches";
15069
+ roundTrips: "roundTrips";
14822
15070
  searchCalls: "searchCalls";
14823
15071
  }>;
14824
15072
  on: z.ZodObject<{
@@ -17771,12 +18019,50 @@ export declare const sandboxContract: {
17771
18019
  reason: z.ZodOptional<z.ZodString>;
17772
18020
  }, z.core.$strip>>;
17773
18021
  skippedVersion: z.ZodOptional<z.ZodString>;
18022
+ autoUpdate: z.ZodOptional<z.ZodObject<{
18023
+ enabled: z.ZodBoolean;
18024
+ phase: z.ZodString;
18025
+ version: z.ZodOptional<z.ZodString>;
18026
+ holds: z.ZodArray<z.ZodObject<{
18027
+ kind: z.ZodString;
18028
+ names: z.ZodOptional<z.ZodArray<z.ZodString>>;
18029
+ until: z.ZodOptional<z.ZodNumber>;
18030
+ }, z.core.$strip>>;
18031
+ startsAt: z.ZodOptional<z.ZodNumber>;
18032
+ pausedUntil: z.ZodOptional<z.ZodNumber>;
18033
+ failure: z.ZodOptional<z.ZodString>;
18034
+ lastApplied: z.ZodOptional<z.ZodObject<{
18035
+ at: z.ZodNumber;
18036
+ to: z.ZodOptional<z.ZodString>;
18037
+ }, z.core.$strip>>;
18038
+ }, z.core.$strip>>;
17774
18039
  }, z.core.$strip>, Record<never, never>, import("./protocol/route-meta.js").RouteMeta & Record<never, never>>;
17775
18040
  skipUpdate: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
17776
18041
  version: z.ZodNullable<z.ZodString>;
17777
18042
  }, z.core.$strip>, z.ZodObject<{
17778
18043
  ok: z.ZodLiteral<true>;
17779
18044
  }, z.core.$strip>, Record<never, never>, import("./protocol/route-meta.js").RouteMeta & Record<never, never>>;
18045
+ autoUpdate: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
18046
+ enabled: z.ZodOptional<z.ZodBoolean>;
18047
+ pausedUntil: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
18048
+ applyNow: z.ZodOptional<z.ZodLiteral<true>>;
18049
+ }, z.core.$strip>, z.ZodObject<{
18050
+ enabled: z.ZodBoolean;
18051
+ phase: z.ZodString;
18052
+ version: z.ZodOptional<z.ZodString>;
18053
+ holds: z.ZodArray<z.ZodObject<{
18054
+ kind: z.ZodString;
18055
+ names: z.ZodOptional<z.ZodArray<z.ZodString>>;
18056
+ until: z.ZodOptional<z.ZodNumber>;
18057
+ }, z.core.$strip>>;
18058
+ startsAt: z.ZodOptional<z.ZodNumber>;
18059
+ pausedUntil: z.ZodOptional<z.ZodNumber>;
18060
+ failure: z.ZodOptional<z.ZodString>;
18061
+ lastApplied: z.ZodOptional<z.ZodObject<{
18062
+ at: z.ZodNumber;
18063
+ to: z.ZodOptional<z.ZodString>;
18064
+ }, z.core.$strip>>;
18065
+ }, z.core.$strip>, Record<never, never>, import("./protocol/route-meta.js").RouteMeta & Record<never, never>>;
17780
18066
  manifestProblems: import("@orpc/contract").ContractProcedureBuilderWithOutput<import("@orpc/contract").Schema<unknown, unknown>, z.ZodArray<z.ZodObject<{
17781
18067
  path: z.ZodString;
17782
18068
  problems: z.ZodArray<z.ZodObject<{
@@ -17865,6 +18151,7 @@ export declare const sandboxContract: {
17865
18151
  picture?: string | undefined;
17866
18152
  role: "collaborator" | "guest" | "maintainer" | "owner" | "viewer" | "writer";
17867
18153
  idle: boolean;
18154
+ away?: boolean | undefined;
17868
18155
  view?: string | undefined;
17869
18156
  sessionId?: string | undefined;
17870
18157
  path?: string | undefined;
@@ -18097,6 +18384,10 @@ export declare const sandboxContract: {
18097
18384
  handed?: boolean | undefined;
18098
18385
  ports?: number[] | undefined;
18099
18386
  stoppedBy?: "agent" | "person" | "turn" | undefined;
18387
+ inputWait?: {
18388
+ since: number;
18389
+ program: string;
18390
+ } | undefined;
18100
18391
  }[] | undefined;
18101
18392
  archivedAt?: number | undefined;
18102
18393
  }[];
@@ -18196,6 +18487,7 @@ export declare const sandboxContract: {
18196
18487
  picture?: string | undefined;
18197
18488
  role: "collaborator" | "guest" | "maintainer" | "owner" | "viewer" | "writer";
18198
18489
  idle: boolean;
18490
+ away?: boolean | undefined;
18199
18491
  view?: string | undefined;
18200
18492
  sessionId?: string | undefined;
18201
18493
  path?: string | undefined;
@@ -18428,6 +18720,10 @@ export declare const sandboxContract: {
18428
18720
  handed?: boolean | undefined;
18429
18721
  ports?: number[] | undefined;
18430
18722
  stoppedBy?: "agent" | "person" | "turn" | undefined;
18723
+ inputWait?: {
18724
+ since: number;
18725
+ program: string;
18726
+ } | undefined;
18431
18727
  }[] | undefined;
18432
18728
  archivedAt?: number | undefined;
18433
18729
  }[];
@@ -18557,6 +18853,7 @@ export declare const sandboxContract: {
18557
18853
  writer: "writer";
18558
18854
  }>;
18559
18855
  idle: z.ZodBoolean;
18856
+ away: z.ZodOptional<z.ZodBoolean>;
18560
18857
  view: z.ZodOptional<z.ZodString>;
18561
18858
  sessionId: z.ZodOptional<z.ZodString>;
18562
18859
  path: z.ZodOptional<z.ZodString>;
@@ -18875,6 +19172,10 @@ export declare const sandboxContract: {
18875
19172
  person: "person";
18876
19173
  turn: "turn";
18877
19174
  }>>;
19175
+ inputWait: z.ZodOptional<z.ZodObject<{
19176
+ since: z.ZodNumber;
19177
+ program: z.ZodString;
19178
+ }, z.core.$strip>>;
18878
19179
  }, z.core.$strip>>>;
18879
19180
  archivedAt: z.ZodOptional<z.ZodNumber>;
18880
19181
  }, z.core.$strip>>;
@@ -18919,6 +19220,7 @@ export declare const sandboxContract: {
18919
19220
  presence: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
18920
19221
  clientId: z.ZodString;
18921
19222
  idle: z.ZodBoolean;
19223
+ away: z.ZodOptional<z.ZodBoolean>;
18922
19224
  view: z.ZodOptional<z.ZodString>;
18923
19225
  sessionId: z.ZodOptional<z.ZodString>;
18924
19226
  path: z.ZodOptional<z.ZodString>;