@intentic/sandbox-contract 1.315.0 → 1.317.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 (214) hide show
  1. package/README.md +5 -5
  2. package/dist/contracts/agent.contract.d.ts +562 -0
  3. package/dist/contracts/agent.contract.d.ts.map +1 -1
  4. package/dist/contracts/agents.contract.d.ts +402 -0
  5. package/dist/contracts/agents.contract.d.ts.map +1 -1
  6. package/dist/contracts/agents.contract.js +3 -3
  7. package/dist/contracts/agents.contract.js.map +1 -1
  8. package/dist/contracts/capabilities.contract.d.ts +16 -0
  9. package/dist/contracts/capabilities.contract.d.ts.map +1 -1
  10. package/dist/contracts/capabilities.contract.js +10 -1
  11. package/dist/contracts/capabilities.contract.js.map +1 -1
  12. package/dist/contracts/ci.contract.d.ts +22 -0
  13. package/dist/contracts/ci.contract.d.ts.map +1 -1
  14. package/dist/contracts/device.contract.d.ts +1 -0
  15. package/dist/contracts/device.contract.d.ts.map +1 -1
  16. package/dist/contracts/needs.contract.d.ts +532 -0
  17. package/dist/contracts/needs.contract.d.ts.map +1 -0
  18. package/dist/contracts/needs.contract.js +80 -0
  19. package/dist/contracts/needs.contract.js.map +1 -0
  20. package/dist/contracts/runner.contract.d.ts +294 -122
  21. package/dist/contracts/runner.contract.d.ts.map +1 -1
  22. package/dist/contracts/secrets.contract.d.ts +16 -0
  23. package/dist/contracts/secrets.contract.d.ts.map +1 -1
  24. package/dist/contracts/secrets.contract.js +12 -2
  25. package/dist/contracts/secrets.contract.js.map +1 -1
  26. package/dist/contracts/sessions.contract.d.ts +79 -0
  27. package/dist/contracts/sessions.contract.d.ts.map +1 -1
  28. package/dist/contracts/settings.contract.d.ts +2 -3
  29. package/dist/contracts/settings.contract.d.ts.map +1 -1
  30. package/dist/contracts/system.contract.d.ts +163 -0
  31. package/dist/contracts/system.contract.d.ts.map +1 -1
  32. package/dist/contracts/system.contract.js +11 -0
  33. package/dist/contracts/system.contract.js.map +1 -1
  34. package/dist/contracts/workspace.contract.d.ts +15 -137
  35. package/dist/contracts/workspace.contract.d.ts.map +1 -1
  36. package/dist/contracts/workspace.contract.js +25 -15
  37. package/dist/contracts/workspace.contract.js.map +1 -1
  38. package/dist/events/agent-events.d.ts +309 -0
  39. package/dist/events/agent-events.d.ts.map +1 -1
  40. package/dist/events/agent-events.js +2 -0
  41. package/dist/events/agent-events.js.map +1 -1
  42. package/dist/events/agent-words.d.ts.map +1 -1
  43. package/dist/events/agent-words.js +2 -1
  44. package/dist/events/agent-words.js.map +1 -1
  45. package/dist/events/land-breakage.d.ts +0 -2
  46. package/dist/events/land-breakage.d.ts.map +1 -1
  47. package/dist/events/land-breakage.js +0 -2
  48. package/dist/events/land-breakage.js.map +1 -1
  49. package/dist/events/need-wake.d.ts +17 -0
  50. package/dist/events/need-wake.d.ts.map +1 -0
  51. package/dist/events/need-wake.js +34 -0
  52. package/dist/events/need-wake.js.map +1 -0
  53. package/dist/events/system-events.d.ts +40 -0
  54. package/dist/events/system-events.d.ts.map +1 -1
  55. package/dist/events/transcript.d.ts +484 -0
  56. package/dist/events/transcript.d.ts.map +1 -1
  57. package/dist/events/transcript.js +9 -0
  58. package/dist/events/transcript.js.map +1 -1
  59. package/dist/index.d.ts +1956 -284
  60. package/dist/index.d.ts.map +1 -1
  61. package/dist/index.js +8 -2
  62. package/dist/index.js.map +1 -1
  63. package/dist/models/agent-runtimes.d.ts.map +1 -1
  64. package/dist/models/agent-runtimes.js +1 -1
  65. package/dist/models/agent-runtimes.js.map +1 -1
  66. package/dist/models/plan-pools.d.ts +2 -1
  67. package/dist/models/plan-pools.d.ts.map +1 -1
  68. package/dist/models/plan-pools.js +8 -4
  69. package/dist/models/plan-pools.js.map +1 -1
  70. package/dist/protocol/raw-routes.d.ts +9 -5
  71. package/dist/protocol/raw-routes.d.ts.map +1 -1
  72. package/dist/protocol/raw-routes.js +2 -1
  73. package/dist/protocol/raw-routes.js.map +1 -1
  74. package/dist/protocol/request-id.d.ts +0 -1
  75. package/dist/protocol/request-id.d.ts.map +1 -1
  76. package/dist/protocol/request-id.js +0 -1
  77. package/dist/protocol/request-id.js.map +1 -1
  78. package/dist/schemas/agent.js +1 -1
  79. package/dist/schemas/agent.js.map +1 -1
  80. package/dist/schemas/agents.d.ts +58 -1
  81. package/dist/schemas/agents.d.ts.map +1 -1
  82. package/dist/schemas/agents.js +11 -2
  83. package/dist/schemas/agents.js.map +1 -1
  84. package/dist/schemas/automations.d.ts +19 -0
  85. package/dist/schemas/automations.d.ts.map +1 -1
  86. package/dist/schemas/capabilities.d.ts +19 -0
  87. package/dist/schemas/capabilities.d.ts.map +1 -1
  88. package/dist/schemas/capabilities.js +16 -0
  89. package/dist/schemas/capabilities.js.map +1 -1
  90. package/dist/schemas/ci.d.ts +45 -0
  91. package/dist/schemas/ci.d.ts.map +1 -1
  92. package/dist/schemas/ci.js +18 -0
  93. package/dist/schemas/ci.js.map +1 -1
  94. package/dist/schemas/devices.d.ts +68 -1
  95. package/dist/schemas/devices.d.ts.map +1 -1
  96. package/dist/schemas/devices.js +10 -4
  97. package/dist/schemas/devices.js.map +1 -1
  98. package/dist/schemas/hosts.d.ts +2 -0
  99. package/dist/schemas/hosts.d.ts.map +1 -1
  100. package/dist/schemas/hosts.js +2 -1
  101. package/dist/schemas/hosts.js.map +1 -1
  102. package/dist/schemas/needs.d.ts +661 -0
  103. package/dist/schemas/needs.d.ts.map +1 -0
  104. package/dist/schemas/needs.js +196 -0
  105. package/dist/schemas/needs.js.map +1 -0
  106. package/dist/schemas/personas.js +2 -2
  107. package/dist/schemas/personas.js.map +1 -1
  108. package/dist/schemas/providers/plan-limits.d.ts +2 -0
  109. package/dist/schemas/providers/plan-limits.d.ts.map +1 -1
  110. package/dist/schemas/providers/plan-limits.js +4 -0
  111. package/dist/schemas/providers/plan-limits.js.map +1 -1
  112. package/dist/schemas/secrets.d.ts +18 -0
  113. package/dist/schemas/secrets.d.ts.map +1 -1
  114. package/dist/schemas/secrets.js +20 -0
  115. package/dist/schemas/secrets.js.map +1 -1
  116. package/dist/schemas/settings-history.d.ts +1 -1
  117. package/dist/schemas/settings-history.d.ts.map +1 -1
  118. package/dist/schemas/settings-history.js +2 -1
  119. package/dist/schemas/settings-history.js.map +1 -1
  120. package/dist/schemas/settings.d.ts +2 -4
  121. package/dist/schemas/settings.d.ts.map +1 -1
  122. package/dist/schemas/settings.js +10 -13
  123. package/dist/schemas/settings.js.map +1 -1
  124. package/dist/schemas/state-plan.d.ts +1 -0
  125. package/dist/schemas/state-plan.d.ts.map +1 -1
  126. package/dist/schemas/state-plan.js +3 -1
  127. package/dist/schemas/state-plan.js.map +1 -1
  128. package/dist/schemas/system.d.ts +20 -0
  129. package/dist/schemas/system.d.ts.map +1 -1
  130. package/dist/schemas/system.js +7 -0
  131. package/dist/schemas/system.js.map +1 -1
  132. package/dist/schemas/updates.d.ts +39 -0
  133. package/dist/schemas/updates.d.ts.map +1 -0
  134. package/dist/schemas/updates.js +31 -0
  135. package/dist/schemas/updates.js.map +1 -0
  136. package/dist/schemas/workspace/push-checks.d.ts +222 -0
  137. package/dist/schemas/workspace/push-checks.d.ts.map +1 -0
  138. package/dist/schemas/workspace/push-checks.js +97 -0
  139. package/dist/schemas/workspace/push-checks.js.map +1 -0
  140. package/dist/schemas/workspace/workspace-tree.d.ts +9 -0
  141. package/dist/schemas/workspace/workspace-tree.d.ts.map +1 -1
  142. package/dist/schemas/workspace/workspace-tree.js +12 -0
  143. package/dist/schemas/workspace/workspace-tree.js.map +1 -1
  144. package/dist/state/definition.d.ts +16 -4
  145. package/dist/state/definition.d.ts.map +1 -1
  146. package/dist/state/history-state.d.ts.map +1 -1
  147. package/dist/state/history-state.js +3 -0
  148. package/dist/state/history-state.js.map +1 -1
  149. package/dist/state/runtime-state.d.ts +2 -2
  150. package/dist/state/runtime-state.d.ts.map +1 -1
  151. package/dist/state/runtime-state.js +1 -1
  152. package/dist/state/runtime-state.js.map +1 -1
  153. package/dist/state/workspace-state.d.ts +5 -11
  154. package/dist/state/workspace-state.d.ts.map +1 -1
  155. package/dist/state/workspace-state.js +2 -13
  156. package/dist/state/workspace-state.js.map +1 -1
  157. package/dist/text/transcript-fold.d.ts.map +1 -1
  158. package/dist/text/transcript-fold.js +3 -0
  159. package/dist/text/transcript-fold.js.map +1 -1
  160. package/package.json +5 -5
  161. package/src/contracts/agents.contract.ts +3 -3
  162. package/src/contracts/capabilities.contract.ts +14 -1
  163. package/src/contracts/needs.contract.ts +103 -0
  164. package/src/contracts/secrets.contract.ts +17 -3
  165. package/src/contracts/system.contract.ts +14 -0
  166. package/src/contracts/workspace.contract.ts +35 -21
  167. package/src/events/agent-events.ts +4 -0
  168. package/src/events/agent-words.ts +2 -1
  169. package/src/events/errands.test.ts +4 -4
  170. package/src/events/land-breakage.ts +5 -9
  171. package/src/events/need-wake.test.ts +55 -0
  172. package/src/events/need-wake.ts +71 -0
  173. package/src/events/transcript.ts +16 -0
  174. package/src/events/verify-nudge.ts +3 -3
  175. package/src/index.ts +8 -2
  176. package/src/models/agent-runtimes.ts +5 -4
  177. package/src/models/plan-pools.test.ts +15 -0
  178. package/src/models/plan-pools.ts +20 -4
  179. package/src/protocol/ingress-contract.fixture.json +2 -0
  180. package/src/protocol/raw-routes.ts +5 -3
  181. package/src/protocol/request-id.ts +0 -3
  182. package/src/schemas/agent.ts +1 -1
  183. package/src/schemas/agents.ts +19 -8
  184. package/src/schemas/automations.ts +2 -2
  185. package/src/schemas/capabilities.ts +28 -0
  186. package/src/schemas/ci.ts +25 -0
  187. package/src/schemas/devices.ts +25 -12
  188. package/src/schemas/hosts.ts +4 -1
  189. package/src/schemas/needs.ts +292 -0
  190. package/src/schemas/personas.ts +2 -2
  191. package/src/schemas/providers/plan-limits.ts +8 -0
  192. package/src/schemas/secrets.ts +23 -0
  193. package/src/schemas/settings-history.ts +3 -1
  194. package/src/schemas/settings.test.ts +4 -3
  195. package/src/schemas/settings.ts +25 -31
  196. package/src/schemas/speaker.ts +4 -4
  197. package/src/schemas/state-plan.ts +8 -1
  198. package/src/schemas/system.ts +15 -0
  199. package/src/schemas/updates.ts +56 -0
  200. package/src/schemas/workspace/{mainline.test.ts → push-checks.test.ts} +5 -5
  201. package/src/schemas/workspace/push-checks.ts +155 -0
  202. package/src/schemas/workspace/workspace-tree.ts +15 -0
  203. package/src/state/fix-stance.test.ts +2 -1
  204. package/src/state/history-state.ts +5 -0
  205. package/src/state/landed-commit.ts +1 -1
  206. package/src/state/red-streak.ts +4 -4
  207. package/src/state/runtime-state.ts +2 -3
  208. package/src/state/workspace-state.ts +5 -13
  209. package/src/text/transcript-fold.ts +4 -0
  210. package/dist/schemas/workspace/mainline.d.ts +0 -513
  211. package/dist/schemas/workspace/mainline.d.ts.map +0 -1
  212. package/dist/schemas/workspace/mainline.js +0 -182
  213. package/dist/schemas/workspace/mainline.js.map +0 -1
  214. package/src/schemas/workspace/mainline.ts +0 -268
package/dist/index.d.ts CHANGED
@@ -24,7 +24,7 @@ export { intenticContract } from "./contracts/intentic.contract.js";
24
24
  export { inventoryContract } from "./contracts/inventory.contract.js";
25
25
  export { issuesContract } from "./contracts/issues.contract.js";
26
26
  export { logsContract } from "./contracts/logs.contract.js";
27
- export { REQUEST_ID_EVIDENCE_ROUTE, REQUEST_ID_HEADER } from "./protocol/request-id.js";
27
+ export { REQUEST_ID_HEADER } from "./protocol/request-id.js";
28
28
  export * from "./protocol/edge-verdict.js";
29
29
  export { loopsContract } from "./contracts/loops.contract.js";
30
30
  export { panelsContract } from "./contracts/panels.contract.js";
@@ -33,6 +33,7 @@ export { publicContract } from "./contracts/public.contract.js";
33
33
  export { providersContract, type RunnableProviders, RunnableProvidersSchema } from "./contracts/providers.contract.js";
34
34
  export { pushContract } from "./contracts/push.contract.js";
35
35
  export { safetyContract } from "./contracts/safety.contract.js";
36
+ export { needsContract } from "./contracts/needs.contract.js";
36
37
  export { secretsContract } from "./contracts/secrets.contract.js";
37
38
  export { sessionsContract } from "./contracts/sessions.contract.js";
38
39
  export { settingsContract } from "./contracts/settings.contract.js";
@@ -56,6 +57,7 @@ export * from "./events/land-breakage.js";
56
57
  export * from "./events/land-conflict.js";
57
58
  export * from "./events/verify-nudge.js";
58
59
  export * from "./events/errands.js";
60
+ export * from "./events/need-wake.js";
59
61
  export * from "./events/watch-wake.js";
60
62
  export * from "./policy/request-status.js";
61
63
  export * from "./events/child-run.js";
@@ -150,6 +152,7 @@ export * from "./schemas/providers/provider-subscriptions.js";
150
152
  export * from "./schemas/public.js";
151
153
  export * from "./schemas/push.js";
152
154
  export * from "./schemas/git/remote-refs.js";
155
+ export * from "./schemas/needs.js";
153
156
  export * from "./schemas/secrets.js";
154
157
  export * from "./schemas/netdisk.js";
155
158
  export * from "./schemas/sessions.js";
@@ -160,6 +163,7 @@ export * from "./schemas/shared.js";
160
163
  export * from "./schemas/system-prompt.js";
161
164
  export * from "./schemas/system.js";
162
165
  export * from "./schemas/state-plan.js";
166
+ export * from "./schemas/updates.js";
163
167
  export * from "./schemas/terminal.js";
164
168
  export * from "./schemas/turn-break.js";
165
169
  export * from "./schemas/keep-warm.js";
@@ -170,7 +174,7 @@ export * from "./schemas/webext.js";
170
174
  export * from "./schemas/workflows.js";
171
175
  export * from "./schemas/workspace/workspace-repos.js";
172
176
  export * from "./schemas/workspace/workspace-search.js";
173
- export * from "./schemas/workspace/mainline.js";
177
+ export * from "./schemas/workspace/push-checks.js";
174
178
  export * from "./schemas/workspace/workspace-setup.js";
175
179
  export * from "./schemas/workspace/workspace-tree.js";
176
180
  export * from "./state/arrival.js";
@@ -780,6 +784,60 @@ export declare const sandboxContract: {
780
784
  elapsed: string;
781
785
  sent: string;
782
786
  } | undefined;
787
+ need?: {
788
+ id: string;
789
+ conversationId: string;
790
+ subject: {
791
+ kind: "capability";
792
+ entry: string;
793
+ name: string;
794
+ mode: "change" | "connect" | "reconnect";
795
+ instance?: string | undefined;
796
+ target?: string | undefined;
797
+ prefill?: Record<string, string> | undefined;
798
+ changes?: Record<string, string> | undefined;
799
+ reason?: string | undefined;
800
+ reported?: boolean | undefined;
801
+ } | {
802
+ kind: "secret";
803
+ name: string;
804
+ where?: string | undefined;
805
+ link?: string | undefined;
806
+ hint?: string | undefined;
807
+ replace?: boolean | undefined;
808
+ } | {
809
+ kind: "grant";
810
+ subject: "capability" | "folder" | "shelf" | "site";
811
+ what: string;
812
+ label: string;
813
+ persona?: string | undefined;
814
+ scope?: "conversation" | "persona" | undefined;
815
+ } | {
816
+ kind: "release";
817
+ subject: string;
818
+ approvers: string[];
819
+ } | {
820
+ kind: "environment";
821
+ tool: string;
822
+ steps: string;
823
+ approvedHash?: string | undefined;
824
+ };
825
+ title: string;
826
+ why?: string | undefined;
827
+ status: "cancelled" | "declined" | "met" | "open" | "working";
828
+ createdAt: number;
829
+ updatedAt: number;
830
+ answeredBy?: string | undefined;
831
+ outcome?: string | undefined;
832
+ told?: "call" | "queued" | "turn" | undefined;
833
+ unattended?: boolean | undefined;
834
+ } | undefined;
835
+ needWake?: {
836
+ outcome: "declined" | "met";
837
+ title: string;
838
+ id: string;
839
+ sent: string;
840
+ } | undefined;
783
841
  agentWords?: {
784
842
  kind: "child" | "peer";
785
843
  from: string;
@@ -995,6 +1053,60 @@ export declare const sandboxContract: {
995
1053
  elapsed: string;
996
1054
  sent: string;
997
1055
  } | undefined;
1056
+ need?: {
1057
+ id: string;
1058
+ conversationId: string;
1059
+ subject: {
1060
+ kind: "capability";
1061
+ entry: string;
1062
+ name: string;
1063
+ mode: "change" | "connect" | "reconnect";
1064
+ instance?: string | undefined;
1065
+ target?: string | undefined;
1066
+ prefill?: Record<string, string> | undefined;
1067
+ changes?: Record<string, string> | undefined;
1068
+ reason?: string | undefined;
1069
+ reported?: boolean | undefined;
1070
+ } | {
1071
+ kind: "secret";
1072
+ name: string;
1073
+ where?: string | undefined;
1074
+ link?: string | undefined;
1075
+ hint?: string | undefined;
1076
+ replace?: boolean | undefined;
1077
+ } | {
1078
+ kind: "grant";
1079
+ subject: "capability" | "folder" | "shelf" | "site";
1080
+ what: string;
1081
+ label: string;
1082
+ persona?: string | undefined;
1083
+ scope?: "conversation" | "persona" | undefined;
1084
+ } | {
1085
+ kind: "release";
1086
+ subject: string;
1087
+ approvers: string[];
1088
+ } | {
1089
+ kind: "environment";
1090
+ tool: string;
1091
+ steps: string;
1092
+ approvedHash?: string | undefined;
1093
+ };
1094
+ title: string;
1095
+ why?: string | undefined;
1096
+ status: "cancelled" | "declined" | "met" | "open" | "working";
1097
+ createdAt: number;
1098
+ updatedAt: number;
1099
+ answeredBy?: string | undefined;
1100
+ outcome?: string | undefined;
1101
+ told?: "call" | "queued" | "turn" | undefined;
1102
+ unattended?: boolean | undefined;
1103
+ } | undefined;
1104
+ needWake?: {
1105
+ outcome: "declined" | "met";
1106
+ title: string;
1107
+ id: string;
1108
+ sent: string;
1109
+ } | undefined;
998
1110
  agentWords?: {
999
1111
  kind: "child" | "peer";
1000
1112
  from: string;
@@ -1208,6 +1320,60 @@ export declare const sandboxContract: {
1208
1320
  elapsed: string;
1209
1321
  sent: string;
1210
1322
  } | undefined;
1323
+ need?: {
1324
+ id: string;
1325
+ conversationId: string;
1326
+ subject: {
1327
+ kind: "capability";
1328
+ entry: string;
1329
+ name: string;
1330
+ mode: "change" | "connect" | "reconnect";
1331
+ instance?: string | undefined;
1332
+ target?: string | undefined;
1333
+ prefill?: Record<string, string> | undefined;
1334
+ changes?: Record<string, string> | undefined;
1335
+ reason?: string | undefined;
1336
+ reported?: boolean | undefined;
1337
+ } | {
1338
+ kind: "secret";
1339
+ name: string;
1340
+ where?: string | undefined;
1341
+ link?: string | undefined;
1342
+ hint?: string | undefined;
1343
+ replace?: boolean | undefined;
1344
+ } | {
1345
+ kind: "grant";
1346
+ subject: "capability" | "folder" | "shelf" | "site";
1347
+ what: string;
1348
+ label: string;
1349
+ persona?: string | undefined;
1350
+ scope?: "conversation" | "persona" | undefined;
1351
+ } | {
1352
+ kind: "release";
1353
+ subject: string;
1354
+ approvers: string[];
1355
+ } | {
1356
+ kind: "environment";
1357
+ tool: string;
1358
+ steps: string;
1359
+ approvedHash?: string | undefined;
1360
+ };
1361
+ title: string;
1362
+ why?: string | undefined;
1363
+ status: "cancelled" | "declined" | "met" | "open" | "working";
1364
+ createdAt: number;
1365
+ updatedAt: number;
1366
+ answeredBy?: string | undefined;
1367
+ outcome?: string | undefined;
1368
+ told?: "call" | "queued" | "turn" | undefined;
1369
+ unattended?: boolean | undefined;
1370
+ } | undefined;
1371
+ needWake?: {
1372
+ outcome: "declined" | "met";
1373
+ title: string;
1374
+ id: string;
1375
+ sent: string;
1376
+ } | undefined;
1211
1377
  agentWords?: {
1212
1378
  kind: "child" | "peer";
1213
1379
  from: string;
@@ -1451,6 +1617,60 @@ export declare const sandboxContract: {
1451
1617
  elapsed: string;
1452
1618
  sent: string;
1453
1619
  } | undefined;
1620
+ need?: {
1621
+ id: string;
1622
+ conversationId: string;
1623
+ subject: {
1624
+ kind: "capability";
1625
+ entry: string;
1626
+ name: string;
1627
+ mode: "change" | "connect" | "reconnect";
1628
+ instance?: string | undefined;
1629
+ target?: string | undefined;
1630
+ prefill?: Record<string, string> | undefined;
1631
+ changes?: Record<string, string> | undefined;
1632
+ reason?: string | undefined;
1633
+ reported?: boolean | undefined;
1634
+ } | {
1635
+ kind: "secret";
1636
+ name: string;
1637
+ where?: string | undefined;
1638
+ link?: string | undefined;
1639
+ hint?: string | undefined;
1640
+ replace?: boolean | undefined;
1641
+ } | {
1642
+ kind: "grant";
1643
+ subject: "capability" | "folder" | "shelf" | "site";
1644
+ what: string;
1645
+ label: string;
1646
+ persona?: string | undefined;
1647
+ scope?: "conversation" | "persona" | undefined;
1648
+ } | {
1649
+ kind: "release";
1650
+ subject: string;
1651
+ approvers: string[];
1652
+ } | {
1653
+ kind: "environment";
1654
+ tool: string;
1655
+ steps: string;
1656
+ approvedHash?: string | undefined;
1657
+ };
1658
+ title: string;
1659
+ why?: string | undefined;
1660
+ status: "cancelled" | "declined" | "met" | "open" | "working";
1661
+ createdAt: number;
1662
+ updatedAt: number;
1663
+ answeredBy?: string | undefined;
1664
+ outcome?: string | undefined;
1665
+ told?: "call" | "queued" | "turn" | undefined;
1666
+ unattended?: boolean | undefined;
1667
+ } | undefined;
1668
+ needWake?: {
1669
+ outcome: "declined" | "met";
1670
+ title: string;
1671
+ id: string;
1672
+ sent: string;
1673
+ } | undefined;
1454
1674
  agentWords?: {
1455
1675
  kind: "child" | "peer";
1456
1676
  from: string;
@@ -1666,6 +1886,60 @@ export declare const sandboxContract: {
1666
1886
  elapsed: string;
1667
1887
  sent: string;
1668
1888
  } | undefined;
1889
+ need?: {
1890
+ id: string;
1891
+ conversationId: string;
1892
+ subject: {
1893
+ kind: "capability";
1894
+ entry: string;
1895
+ name: string;
1896
+ mode: "change" | "connect" | "reconnect";
1897
+ instance?: string | undefined;
1898
+ target?: string | undefined;
1899
+ prefill?: Record<string, string> | undefined;
1900
+ changes?: Record<string, string> | undefined;
1901
+ reason?: string | undefined;
1902
+ reported?: boolean | undefined;
1903
+ } | {
1904
+ kind: "secret";
1905
+ name: string;
1906
+ where?: string | undefined;
1907
+ link?: string | undefined;
1908
+ hint?: string | undefined;
1909
+ replace?: boolean | undefined;
1910
+ } | {
1911
+ kind: "grant";
1912
+ subject: "capability" | "folder" | "shelf" | "site";
1913
+ what: string;
1914
+ label: string;
1915
+ persona?: string | undefined;
1916
+ scope?: "conversation" | "persona" | undefined;
1917
+ } | {
1918
+ kind: "release";
1919
+ subject: string;
1920
+ approvers: string[];
1921
+ } | {
1922
+ kind: "environment";
1923
+ tool: string;
1924
+ steps: string;
1925
+ approvedHash?: string | undefined;
1926
+ };
1927
+ title: string;
1928
+ why?: string | undefined;
1929
+ status: "cancelled" | "declined" | "met" | "open" | "working";
1930
+ createdAt: number;
1931
+ updatedAt: number;
1932
+ answeredBy?: string | undefined;
1933
+ outcome?: string | undefined;
1934
+ told?: "call" | "queued" | "turn" | undefined;
1935
+ unattended?: boolean | undefined;
1936
+ } | undefined;
1937
+ needWake?: {
1938
+ outcome: "declined" | "met";
1939
+ title: string;
1940
+ id: string;
1941
+ sent: string;
1942
+ } | undefined;
1669
1943
  agentWords?: {
1670
1944
  kind: "child" | "peer";
1671
1945
  from: string;
@@ -1879,6 +2153,60 @@ export declare const sandboxContract: {
1879
2153
  elapsed: string;
1880
2154
  sent: string;
1881
2155
  } | undefined;
2156
+ need?: {
2157
+ id: string;
2158
+ conversationId: string;
2159
+ subject: {
2160
+ kind: "capability";
2161
+ entry: string;
2162
+ name: string;
2163
+ mode: "change" | "connect" | "reconnect";
2164
+ instance?: string | undefined;
2165
+ target?: string | undefined;
2166
+ prefill?: Record<string, string> | undefined;
2167
+ changes?: Record<string, string> | undefined;
2168
+ reason?: string | undefined;
2169
+ reported?: boolean | undefined;
2170
+ } | {
2171
+ kind: "secret";
2172
+ name: string;
2173
+ where?: string | undefined;
2174
+ link?: string | undefined;
2175
+ hint?: string | undefined;
2176
+ replace?: boolean | undefined;
2177
+ } | {
2178
+ kind: "grant";
2179
+ subject: "capability" | "folder" | "shelf" | "site";
2180
+ what: string;
2181
+ label: string;
2182
+ persona?: string | undefined;
2183
+ scope?: "conversation" | "persona" | undefined;
2184
+ } | {
2185
+ kind: "release";
2186
+ subject: string;
2187
+ approvers: string[];
2188
+ } | {
2189
+ kind: "environment";
2190
+ tool: string;
2191
+ steps: string;
2192
+ approvedHash?: string | undefined;
2193
+ };
2194
+ title: string;
2195
+ why?: string | undefined;
2196
+ status: "cancelled" | "declined" | "met" | "open" | "working";
2197
+ createdAt: number;
2198
+ updatedAt: number;
2199
+ answeredBy?: string | undefined;
2200
+ outcome?: string | undefined;
2201
+ told?: "call" | "queued" | "turn" | undefined;
2202
+ unattended?: boolean | undefined;
2203
+ } | undefined;
2204
+ needWake?: {
2205
+ outcome: "declined" | "met";
2206
+ title: string;
2207
+ id: string;
2208
+ sent: string;
2209
+ } | undefined;
1882
2210
  agentWords?: {
1883
2211
  kind: "child" | "peer";
1884
2212
  from: string;
@@ -2212,6 +2540,85 @@ export declare const sandboxContract: {
2212
2540
  elapsed: z.ZodString;
2213
2541
  sent: z.ZodString;
2214
2542
  }, z.core.$strip>>;
2543
+ need: z.ZodOptional<z.ZodObject<{
2544
+ id: z.ZodString;
2545
+ conversationId: z.ZodString;
2546
+ subject: z.ZodDiscriminatedUnion<[z.ZodObject<{
2547
+ kind: z.ZodLiteral<"capability">;
2548
+ entry: z.ZodString;
2549
+ name: z.ZodString;
2550
+ mode: z.ZodEnum<{
2551
+ change: "change";
2552
+ connect: "connect";
2553
+ reconnect: "reconnect";
2554
+ }>;
2555
+ instance: z.ZodOptional<z.ZodString>;
2556
+ target: z.ZodOptional<z.ZodString>;
2557
+ prefill: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2558
+ changes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2559
+ reason: z.ZodOptional<z.ZodString>;
2560
+ reported: z.ZodOptional<z.ZodBoolean>;
2561
+ }, z.core.$strip>, z.ZodObject<{
2562
+ kind: z.ZodLiteral<"secret">;
2563
+ name: z.ZodString;
2564
+ where: z.ZodOptional<z.ZodString>;
2565
+ link: z.ZodOptional<z.ZodString>;
2566
+ hint: z.ZodOptional<z.ZodString>;
2567
+ replace: z.ZodOptional<z.ZodBoolean>;
2568
+ }, z.core.$strip>, z.ZodObject<{
2569
+ kind: z.ZodLiteral<"grant">;
2570
+ subject: z.ZodEnum<{
2571
+ capability: "capability";
2572
+ folder: "folder";
2573
+ shelf: "shelf";
2574
+ site: "site";
2575
+ }>;
2576
+ what: z.ZodString;
2577
+ label: z.ZodString;
2578
+ persona: z.ZodOptional<z.ZodString>;
2579
+ scope: z.ZodOptional<z.ZodEnum<{
2580
+ conversation: "conversation";
2581
+ persona: "persona";
2582
+ }>>;
2583
+ }, z.core.$strip>, z.ZodObject<{
2584
+ kind: z.ZodLiteral<"release">;
2585
+ subject: z.ZodString;
2586
+ approvers: z.ZodArray<z.ZodString>;
2587
+ }, z.core.$strip>, z.ZodObject<{
2588
+ kind: z.ZodLiteral<"environment">;
2589
+ tool: z.ZodString;
2590
+ steps: z.ZodString;
2591
+ approvedHash: z.ZodOptional<z.ZodString>;
2592
+ }, z.core.$strip>], "kind">;
2593
+ title: z.ZodString;
2594
+ why: z.ZodOptional<z.ZodString>;
2595
+ status: z.ZodEnum<{
2596
+ cancelled: "cancelled";
2597
+ declined: "declined";
2598
+ met: "met";
2599
+ open: "open";
2600
+ working: "working";
2601
+ }>;
2602
+ createdAt: z.ZodNumber;
2603
+ updatedAt: z.ZodNumber;
2604
+ answeredBy: z.ZodOptional<z.ZodString>;
2605
+ outcome: z.ZodOptional<z.ZodString>;
2606
+ told: z.ZodOptional<z.ZodEnum<{
2607
+ call: "call";
2608
+ queued: "queued";
2609
+ turn: "turn";
2610
+ }>>;
2611
+ unattended: z.ZodOptional<z.ZodBoolean>;
2612
+ }, z.core.$strip>>;
2613
+ needWake: z.ZodOptional<z.ZodObject<{
2614
+ outcome: z.ZodEnum<{
2615
+ declined: "declined";
2616
+ met: "met";
2617
+ }>;
2618
+ title: z.ZodString;
2619
+ id: z.ZodString;
2620
+ sent: z.ZodString;
2621
+ }, z.core.$strip>>;
2215
2622
  agentWords: z.ZodOptional<z.ZodObject<{
2216
2623
  kind: z.ZodEnum<{
2217
2624
  child: "child";
@@ -2539,6 +2946,85 @@ export declare const sandboxContract: {
2539
2946
  elapsed: z.ZodString;
2540
2947
  sent: z.ZodString;
2541
2948
  }, z.core.$strip>>;
2949
+ need: z.ZodOptional<z.ZodObject<{
2950
+ id: z.ZodString;
2951
+ conversationId: z.ZodString;
2952
+ subject: z.ZodDiscriminatedUnion<[z.ZodObject<{
2953
+ kind: z.ZodLiteral<"capability">;
2954
+ entry: z.ZodString;
2955
+ name: z.ZodString;
2956
+ mode: z.ZodEnum<{
2957
+ change: "change";
2958
+ connect: "connect";
2959
+ reconnect: "reconnect";
2960
+ }>;
2961
+ instance: z.ZodOptional<z.ZodString>;
2962
+ target: z.ZodOptional<z.ZodString>;
2963
+ prefill: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2964
+ changes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2965
+ reason: z.ZodOptional<z.ZodString>;
2966
+ reported: z.ZodOptional<z.ZodBoolean>;
2967
+ }, z.core.$strip>, z.ZodObject<{
2968
+ kind: z.ZodLiteral<"secret">;
2969
+ name: z.ZodString;
2970
+ where: z.ZodOptional<z.ZodString>;
2971
+ link: z.ZodOptional<z.ZodString>;
2972
+ hint: z.ZodOptional<z.ZodString>;
2973
+ replace: z.ZodOptional<z.ZodBoolean>;
2974
+ }, z.core.$strip>, z.ZodObject<{
2975
+ kind: z.ZodLiteral<"grant">;
2976
+ subject: z.ZodEnum<{
2977
+ capability: "capability";
2978
+ folder: "folder";
2979
+ shelf: "shelf";
2980
+ site: "site";
2981
+ }>;
2982
+ what: z.ZodString;
2983
+ label: z.ZodString;
2984
+ persona: z.ZodOptional<z.ZodString>;
2985
+ scope: z.ZodOptional<z.ZodEnum<{
2986
+ conversation: "conversation";
2987
+ persona: "persona";
2988
+ }>>;
2989
+ }, z.core.$strip>, z.ZodObject<{
2990
+ kind: z.ZodLiteral<"release">;
2991
+ subject: z.ZodString;
2992
+ approvers: z.ZodArray<z.ZodString>;
2993
+ }, z.core.$strip>, z.ZodObject<{
2994
+ kind: z.ZodLiteral<"environment">;
2995
+ tool: z.ZodString;
2996
+ steps: z.ZodString;
2997
+ approvedHash: z.ZodOptional<z.ZodString>;
2998
+ }, z.core.$strip>], "kind">;
2999
+ title: z.ZodString;
3000
+ why: z.ZodOptional<z.ZodString>;
3001
+ status: z.ZodEnum<{
3002
+ cancelled: "cancelled";
3003
+ declined: "declined";
3004
+ met: "met";
3005
+ open: "open";
3006
+ working: "working";
3007
+ }>;
3008
+ createdAt: z.ZodNumber;
3009
+ updatedAt: z.ZodNumber;
3010
+ answeredBy: z.ZodOptional<z.ZodString>;
3011
+ outcome: z.ZodOptional<z.ZodString>;
3012
+ told: z.ZodOptional<z.ZodEnum<{
3013
+ call: "call";
3014
+ queued: "queued";
3015
+ turn: "turn";
3016
+ }>>;
3017
+ unattended: z.ZodOptional<z.ZodBoolean>;
3018
+ }, z.core.$strip>>;
3019
+ needWake: z.ZodOptional<z.ZodObject<{
3020
+ outcome: z.ZodEnum<{
3021
+ declined: "declined";
3022
+ met: "met";
3023
+ }>;
3024
+ title: z.ZodString;
3025
+ id: z.ZodString;
3026
+ sent: z.ZodString;
3027
+ }, z.core.$strip>>;
2542
3028
  agentWords: z.ZodOptional<z.ZodObject<{
2543
3029
  kind: z.ZodEnum<{
2544
3030
  child: "child";
@@ -2864,6 +3350,85 @@ export declare const sandboxContract: {
2864
3350
  elapsed: z.ZodString;
2865
3351
  sent: z.ZodString;
2866
3352
  }, z.core.$strip>>;
3353
+ need: z.ZodOptional<z.ZodObject<{
3354
+ id: z.ZodString;
3355
+ conversationId: z.ZodString;
3356
+ subject: z.ZodDiscriminatedUnion<[z.ZodObject<{
3357
+ kind: z.ZodLiteral<"capability">;
3358
+ entry: z.ZodString;
3359
+ name: z.ZodString;
3360
+ mode: z.ZodEnum<{
3361
+ change: "change";
3362
+ connect: "connect";
3363
+ reconnect: "reconnect";
3364
+ }>;
3365
+ instance: z.ZodOptional<z.ZodString>;
3366
+ target: z.ZodOptional<z.ZodString>;
3367
+ prefill: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
3368
+ changes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
3369
+ reason: z.ZodOptional<z.ZodString>;
3370
+ reported: z.ZodOptional<z.ZodBoolean>;
3371
+ }, z.core.$strip>, z.ZodObject<{
3372
+ kind: z.ZodLiteral<"secret">;
3373
+ name: z.ZodString;
3374
+ where: z.ZodOptional<z.ZodString>;
3375
+ link: z.ZodOptional<z.ZodString>;
3376
+ hint: z.ZodOptional<z.ZodString>;
3377
+ replace: z.ZodOptional<z.ZodBoolean>;
3378
+ }, z.core.$strip>, z.ZodObject<{
3379
+ kind: z.ZodLiteral<"grant">;
3380
+ subject: z.ZodEnum<{
3381
+ capability: "capability";
3382
+ folder: "folder";
3383
+ shelf: "shelf";
3384
+ site: "site";
3385
+ }>;
3386
+ what: z.ZodString;
3387
+ label: z.ZodString;
3388
+ persona: z.ZodOptional<z.ZodString>;
3389
+ scope: z.ZodOptional<z.ZodEnum<{
3390
+ conversation: "conversation";
3391
+ persona: "persona";
3392
+ }>>;
3393
+ }, z.core.$strip>, z.ZodObject<{
3394
+ kind: z.ZodLiteral<"release">;
3395
+ subject: z.ZodString;
3396
+ approvers: z.ZodArray<z.ZodString>;
3397
+ }, z.core.$strip>, z.ZodObject<{
3398
+ kind: z.ZodLiteral<"environment">;
3399
+ tool: z.ZodString;
3400
+ steps: z.ZodString;
3401
+ approvedHash: z.ZodOptional<z.ZodString>;
3402
+ }, z.core.$strip>], "kind">;
3403
+ title: z.ZodString;
3404
+ why: z.ZodOptional<z.ZodString>;
3405
+ status: z.ZodEnum<{
3406
+ cancelled: "cancelled";
3407
+ declined: "declined";
3408
+ met: "met";
3409
+ open: "open";
3410
+ working: "working";
3411
+ }>;
3412
+ createdAt: z.ZodNumber;
3413
+ updatedAt: z.ZodNumber;
3414
+ answeredBy: z.ZodOptional<z.ZodString>;
3415
+ outcome: z.ZodOptional<z.ZodString>;
3416
+ told: z.ZodOptional<z.ZodEnum<{
3417
+ call: "call";
3418
+ queued: "queued";
3419
+ turn: "turn";
3420
+ }>>;
3421
+ unattended: z.ZodOptional<z.ZodBoolean>;
3422
+ }, z.core.$strip>>;
3423
+ needWake: z.ZodOptional<z.ZodObject<{
3424
+ outcome: z.ZodEnum<{
3425
+ declined: "declined";
3426
+ met: "met";
3427
+ }>;
3428
+ title: z.ZodString;
3429
+ id: z.ZodString;
3430
+ sent: z.ZodString;
3431
+ }, z.core.$strip>>;
2867
3432
  agentWords: z.ZodOptional<z.ZodObject<{
2868
3433
  kind: z.ZodEnum<{
2869
3434
  child: "child";
@@ -3175,6 +3740,7 @@ export declare const sandboxContract: {
3175
3740
  message: z.ZodString;
3176
3741
  account: z.ZodOptional<z.ZodString>;
3177
3742
  model: z.ZodOptional<z.ZodString>;
3743
+ resetsAt: z.ZodOptional<z.ZodNumber>;
3178
3744
  }, z.core.$strip>>;
3179
3745
  }, z.core.$strip>, Record<never, never>, import("./protocol/route-meta.js").RouteMeta & Record<never, never>>;
3180
3746
  };
@@ -3367,6 +3933,7 @@ export declare const sandboxContract: {
3367
3933
  capability: z.ZodBoolean;
3368
3934
  credential: z.ZodBoolean;
3369
3935
  conflict: z.ZodBoolean;
3936
+ need: z.ZodOptional<z.ZodBoolean>;
3370
3937
  }, z.core.$strip>;
3371
3938
  conflictCauses: z.ZodOptional<z.ZodArray<z.ZodEnum<{
3372
3939
  binary: "binary";
@@ -3436,6 +4003,24 @@ export declare const sandboxContract: {
3436
4003
  intervalSeconds: z.ZodNumber;
3437
4004
  deadlineAt: z.ZodNumber;
3438
4005
  }, z.core.$strip>>>;
4006
+ needs: z.ZodOptional<z.ZodArray<z.ZodObject<{
4007
+ id: z.ZodString;
4008
+ kind: z.ZodEnum<{
4009
+ capability: "capability";
4010
+ environment: "environment";
4011
+ grant: "grant";
4012
+ release: "release";
4013
+ secret: "secret";
4014
+ }>;
4015
+ title: z.ZodString;
4016
+ status: z.ZodEnum<{
4017
+ cancelled: "cancelled";
4018
+ declined: "declined";
4019
+ met: "met";
4020
+ open: "open";
4021
+ working: "working";
4022
+ }>;
4023
+ }, z.core.$strip>>>;
3439
4024
  jobs: z.ZodOptional<z.ZodArray<z.ZodObject<{
3440
4025
  id: z.ZodString;
3441
4026
  label: z.ZodString;
@@ -3662,6 +4247,7 @@ export declare const sandboxContract: {
3662
4247
  capability: z.ZodBoolean;
3663
4248
  credential: z.ZodBoolean;
3664
4249
  conflict: z.ZodBoolean;
4250
+ need: z.ZodOptional<z.ZodBoolean>;
3665
4251
  }, z.core.$strip>;
3666
4252
  conflictCauses: z.ZodOptional<z.ZodArray<z.ZodEnum<{
3667
4253
  binary: "binary";
@@ -3731,6 +4317,24 @@ export declare const sandboxContract: {
3731
4317
  intervalSeconds: z.ZodNumber;
3732
4318
  deadlineAt: z.ZodNumber;
3733
4319
  }, z.core.$strip>>>;
4320
+ needs: z.ZodOptional<z.ZodArray<z.ZodObject<{
4321
+ id: z.ZodString;
4322
+ kind: z.ZodEnum<{
4323
+ capability: "capability";
4324
+ environment: "environment";
4325
+ grant: "grant";
4326
+ release: "release";
4327
+ secret: "secret";
4328
+ }>;
4329
+ title: z.ZodString;
4330
+ status: z.ZodEnum<{
4331
+ cancelled: "cancelled";
4332
+ declined: "declined";
4333
+ met: "met";
4334
+ open: "open";
4335
+ working: "working";
4336
+ }>;
4337
+ }, z.core.$strip>>>;
3734
4338
  jobs: z.ZodOptional<z.ZodArray<z.ZodObject<{
3735
4339
  id: z.ZodString;
3736
4340
  label: z.ZodString;
@@ -3975,6 +4579,7 @@ export declare const sandboxContract: {
3975
4579
  capability: z.ZodBoolean;
3976
4580
  credential: z.ZodBoolean;
3977
4581
  conflict: z.ZodBoolean;
4582
+ need: z.ZodOptional<z.ZodBoolean>;
3978
4583
  }, z.core.$strip>;
3979
4584
  conflictCauses: z.ZodOptional<z.ZodArray<z.ZodEnum<{
3980
4585
  binary: "binary";
@@ -4044,6 +4649,24 @@ export declare const sandboxContract: {
4044
4649
  intervalSeconds: z.ZodNumber;
4045
4650
  deadlineAt: z.ZodNumber;
4046
4651
  }, z.core.$strip>>>;
4652
+ needs: z.ZodOptional<z.ZodArray<z.ZodObject<{
4653
+ id: z.ZodString;
4654
+ kind: z.ZodEnum<{
4655
+ capability: "capability";
4656
+ environment: "environment";
4657
+ grant: "grant";
4658
+ release: "release";
4659
+ secret: "secret";
4660
+ }>;
4661
+ title: z.ZodString;
4662
+ status: z.ZodEnum<{
4663
+ cancelled: "cancelled";
4664
+ declined: "declined";
4665
+ met: "met";
4666
+ open: "open";
4667
+ working: "working";
4668
+ }>;
4669
+ }, z.core.$strip>>>;
4047
4670
  jobs: z.ZodOptional<z.ZodArray<z.ZodObject<{
4048
4671
  id: z.ZodString;
4049
4672
  label: z.ZodString;
@@ -4335,17 +4958,96 @@ export declare const sandboxContract: {
4335
4958
  elapsed: z.ZodString;
4336
4959
  sent: z.ZodString;
4337
4960
  }, z.core.$strip>>;
4338
- agentWords: z.ZodOptional<z.ZodObject<{
4339
- kind: z.ZodEnum<{
4340
- child: "child";
4341
- peer: "peer";
4342
- }>;
4343
- from: z.ZodString;
4344
- title: z.ZodOptional<z.ZodString>;
4345
- failed: z.ZodOptional<z.ZodBoolean>;
4346
- sent: z.ZodString;
4347
- }, z.core.$strip>>;
4348
- backgroundJob: z.ZodOptional<z.ZodObject<{
4961
+ need: z.ZodOptional<z.ZodObject<{
4962
+ id: z.ZodString;
4963
+ conversationId: z.ZodString;
4964
+ subject: z.ZodDiscriminatedUnion<[z.ZodObject<{
4965
+ kind: z.ZodLiteral<"capability">;
4966
+ entry: z.ZodString;
4967
+ name: z.ZodString;
4968
+ mode: z.ZodEnum<{
4969
+ change: "change";
4970
+ connect: "connect";
4971
+ reconnect: "reconnect";
4972
+ }>;
4973
+ instance: z.ZodOptional<z.ZodString>;
4974
+ target: z.ZodOptional<z.ZodString>;
4975
+ prefill: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
4976
+ changes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
4977
+ reason: z.ZodOptional<z.ZodString>;
4978
+ reported: z.ZodOptional<z.ZodBoolean>;
4979
+ }, z.core.$strip>, z.ZodObject<{
4980
+ kind: z.ZodLiteral<"secret">;
4981
+ name: z.ZodString;
4982
+ where: z.ZodOptional<z.ZodString>;
4983
+ link: z.ZodOptional<z.ZodString>;
4984
+ hint: z.ZodOptional<z.ZodString>;
4985
+ replace: z.ZodOptional<z.ZodBoolean>;
4986
+ }, z.core.$strip>, z.ZodObject<{
4987
+ kind: z.ZodLiteral<"grant">;
4988
+ subject: z.ZodEnum<{
4989
+ capability: "capability";
4990
+ folder: "folder";
4991
+ shelf: "shelf";
4992
+ site: "site";
4993
+ }>;
4994
+ what: z.ZodString;
4995
+ label: z.ZodString;
4996
+ persona: z.ZodOptional<z.ZodString>;
4997
+ scope: z.ZodOptional<z.ZodEnum<{
4998
+ conversation: "conversation";
4999
+ persona: "persona";
5000
+ }>>;
5001
+ }, z.core.$strip>, z.ZodObject<{
5002
+ kind: z.ZodLiteral<"release">;
5003
+ subject: z.ZodString;
5004
+ approvers: z.ZodArray<z.ZodString>;
5005
+ }, z.core.$strip>, z.ZodObject<{
5006
+ kind: z.ZodLiteral<"environment">;
5007
+ tool: z.ZodString;
5008
+ steps: z.ZodString;
5009
+ approvedHash: z.ZodOptional<z.ZodString>;
5010
+ }, z.core.$strip>], "kind">;
5011
+ title: z.ZodString;
5012
+ why: z.ZodOptional<z.ZodString>;
5013
+ status: z.ZodEnum<{
5014
+ cancelled: "cancelled";
5015
+ declined: "declined";
5016
+ met: "met";
5017
+ open: "open";
5018
+ working: "working";
5019
+ }>;
5020
+ createdAt: z.ZodNumber;
5021
+ updatedAt: z.ZodNumber;
5022
+ answeredBy: z.ZodOptional<z.ZodString>;
5023
+ outcome: z.ZodOptional<z.ZodString>;
5024
+ told: z.ZodOptional<z.ZodEnum<{
5025
+ call: "call";
5026
+ queued: "queued";
5027
+ turn: "turn";
5028
+ }>>;
5029
+ unattended: z.ZodOptional<z.ZodBoolean>;
5030
+ }, z.core.$strip>>;
5031
+ needWake: z.ZodOptional<z.ZodObject<{
5032
+ outcome: z.ZodEnum<{
5033
+ declined: "declined";
5034
+ met: "met";
5035
+ }>;
5036
+ title: z.ZodString;
5037
+ id: z.ZodString;
5038
+ sent: z.ZodString;
5039
+ }, z.core.$strip>>;
5040
+ agentWords: z.ZodOptional<z.ZodObject<{
5041
+ kind: z.ZodEnum<{
5042
+ child: "child";
5043
+ peer: "peer";
5044
+ }>;
5045
+ from: z.ZodString;
5046
+ title: z.ZodOptional<z.ZodString>;
5047
+ failed: z.ZodOptional<z.ZodBoolean>;
5048
+ sent: z.ZodString;
5049
+ }, z.core.$strip>>;
5050
+ backgroundJob: z.ZodOptional<z.ZodObject<{
4349
5051
  id: z.ZodString;
4350
5052
  label: z.ZodString;
4351
5053
  command: z.ZodString;
@@ -4655,6 +5357,7 @@ export declare const sandboxContract: {
4655
5357
  capability: z.ZodBoolean;
4656
5358
  credential: z.ZodBoolean;
4657
5359
  conflict: z.ZodBoolean;
5360
+ need: z.ZodOptional<z.ZodBoolean>;
4658
5361
  }, z.core.$strip>;
4659
5362
  conflictCauses: z.ZodOptional<z.ZodArray<z.ZodEnum<{
4660
5363
  binary: "binary";
@@ -4724,6 +5427,24 @@ export declare const sandboxContract: {
4724
5427
  intervalSeconds: z.ZodNumber;
4725
5428
  deadlineAt: z.ZodNumber;
4726
5429
  }, z.core.$strip>>>;
5430
+ needs: z.ZodOptional<z.ZodArray<z.ZodObject<{
5431
+ id: z.ZodString;
5432
+ kind: z.ZodEnum<{
5433
+ capability: "capability";
5434
+ environment: "environment";
5435
+ grant: "grant";
5436
+ release: "release";
5437
+ secret: "secret";
5438
+ }>;
5439
+ title: z.ZodString;
5440
+ status: z.ZodEnum<{
5441
+ cancelled: "cancelled";
5442
+ declined: "declined";
5443
+ met: "met";
5444
+ open: "open";
5445
+ working: "working";
5446
+ }>;
5447
+ }, z.core.$strip>>>;
4727
5448
  jobs: z.ZodOptional<z.ZodArray<z.ZodObject<{
4728
5449
  id: z.ZodString;
4729
5450
  label: z.ZodString;
@@ -4932,6 +5653,7 @@ export declare const sandboxContract: {
4932
5653
  capability: z.ZodBoolean;
4933
5654
  credential: z.ZodBoolean;
4934
5655
  conflict: z.ZodBoolean;
5656
+ need: z.ZodOptional<z.ZodBoolean>;
4935
5657
  }, z.core.$strip>;
4936
5658
  conflictCauses: z.ZodOptional<z.ZodArray<z.ZodEnum<{
4937
5659
  binary: "binary";
@@ -5001,6 +5723,24 @@ export declare const sandboxContract: {
5001
5723
  intervalSeconds: z.ZodNumber;
5002
5724
  deadlineAt: z.ZodNumber;
5003
5725
  }, z.core.$strip>>>;
5726
+ needs: z.ZodOptional<z.ZodArray<z.ZodObject<{
5727
+ id: z.ZodString;
5728
+ kind: z.ZodEnum<{
5729
+ capability: "capability";
5730
+ environment: "environment";
5731
+ grant: "grant";
5732
+ release: "release";
5733
+ secret: "secret";
5734
+ }>;
5735
+ title: z.ZodString;
5736
+ status: z.ZodEnum<{
5737
+ cancelled: "cancelled";
5738
+ declined: "declined";
5739
+ met: "met";
5740
+ open: "open";
5741
+ working: "working";
5742
+ }>;
5743
+ }, z.core.$strip>>>;
5004
5744
  jobs: z.ZodOptional<z.ZodArray<z.ZodObject<{
5005
5745
  id: z.ZodString;
5006
5746
  label: z.ZodString;
@@ -5219,6 +5959,7 @@ export declare const sandboxContract: {
5219
5959
  capability: z.ZodBoolean;
5220
5960
  credential: z.ZodBoolean;
5221
5961
  conflict: z.ZodBoolean;
5962
+ need: z.ZodOptional<z.ZodBoolean>;
5222
5963
  }, z.core.$strip>;
5223
5964
  conflictCauses: z.ZodOptional<z.ZodArray<z.ZodEnum<{
5224
5965
  binary: "binary";
@@ -5288,6 +6029,24 @@ export declare const sandboxContract: {
5288
6029
  intervalSeconds: z.ZodNumber;
5289
6030
  deadlineAt: z.ZodNumber;
5290
6031
  }, z.core.$strip>>>;
6032
+ needs: z.ZodOptional<z.ZodArray<z.ZodObject<{
6033
+ id: z.ZodString;
6034
+ kind: z.ZodEnum<{
6035
+ capability: "capability";
6036
+ environment: "environment";
6037
+ grant: "grant";
6038
+ release: "release";
6039
+ secret: "secret";
6040
+ }>;
6041
+ title: z.ZodString;
6042
+ status: z.ZodEnum<{
6043
+ cancelled: "cancelled";
6044
+ declined: "declined";
6045
+ met: "met";
6046
+ open: "open";
6047
+ working: "working";
6048
+ }>;
6049
+ }, z.core.$strip>>>;
5291
6050
  jobs: z.ZodOptional<z.ZodArray<z.ZodObject<{
5292
6051
  id: z.ZodString;
5293
6052
  label: z.ZodString;
@@ -5496,6 +6255,7 @@ export declare const sandboxContract: {
5496
6255
  capability: z.ZodBoolean;
5497
6256
  credential: z.ZodBoolean;
5498
6257
  conflict: z.ZodBoolean;
6258
+ need: z.ZodOptional<z.ZodBoolean>;
5499
6259
  }, z.core.$strip>;
5500
6260
  conflictCauses: z.ZodOptional<z.ZodArray<z.ZodEnum<{
5501
6261
  binary: "binary";
@@ -5565,6 +6325,24 @@ export declare const sandboxContract: {
5565
6325
  intervalSeconds: z.ZodNumber;
5566
6326
  deadlineAt: z.ZodNumber;
5567
6327
  }, z.core.$strip>>>;
6328
+ needs: z.ZodOptional<z.ZodArray<z.ZodObject<{
6329
+ id: z.ZodString;
6330
+ kind: z.ZodEnum<{
6331
+ capability: "capability";
6332
+ environment: "environment";
6333
+ grant: "grant";
6334
+ release: "release";
6335
+ secret: "secret";
6336
+ }>;
6337
+ title: z.ZodString;
6338
+ status: z.ZodEnum<{
6339
+ cancelled: "cancelled";
6340
+ declined: "declined";
6341
+ met: "met";
6342
+ open: "open";
6343
+ working: "working";
6344
+ }>;
6345
+ }, z.core.$strip>>>;
5568
6346
  jobs: z.ZodOptional<z.ZodArray<z.ZodObject<{
5569
6347
  id: z.ZodString;
5570
6348
  label: z.ZodString;
@@ -5772,6 +6550,7 @@ export declare const sandboxContract: {
5772
6550
  capability: z.ZodBoolean;
5773
6551
  credential: z.ZodBoolean;
5774
6552
  conflict: z.ZodBoolean;
6553
+ need: z.ZodOptional<z.ZodBoolean>;
5775
6554
  }, z.core.$strip>;
5776
6555
  conflictCauses: z.ZodOptional<z.ZodArray<z.ZodEnum<{
5777
6556
  binary: "binary";
@@ -5841,6 +6620,24 @@ export declare const sandboxContract: {
5841
6620
  intervalSeconds: z.ZodNumber;
5842
6621
  deadlineAt: z.ZodNumber;
5843
6622
  }, z.core.$strip>>>;
6623
+ needs: z.ZodOptional<z.ZodArray<z.ZodObject<{
6624
+ id: z.ZodString;
6625
+ kind: z.ZodEnum<{
6626
+ capability: "capability";
6627
+ environment: "environment";
6628
+ grant: "grant";
6629
+ release: "release";
6630
+ secret: "secret";
6631
+ }>;
6632
+ title: z.ZodString;
6633
+ status: z.ZodEnum<{
6634
+ cancelled: "cancelled";
6635
+ declined: "declined";
6636
+ met: "met";
6637
+ open: "open";
6638
+ working: "working";
6639
+ }>;
6640
+ }, z.core.$strip>>>;
5844
6641
  jobs: z.ZodOptional<z.ZodArray<z.ZodObject<{
5845
6642
  id: z.ZodString;
5846
6643
  label: z.ZodString;
@@ -6049,6 +6846,7 @@ export declare const sandboxContract: {
6049
6846
  capability: z.ZodBoolean;
6050
6847
  credential: z.ZodBoolean;
6051
6848
  conflict: z.ZodBoolean;
6849
+ need: z.ZodOptional<z.ZodBoolean>;
6052
6850
  }, z.core.$strip>;
6053
6851
  conflictCauses: z.ZodOptional<z.ZodArray<z.ZodEnum<{
6054
6852
  binary: "binary";
@@ -6118,6 +6916,24 @@ export declare const sandboxContract: {
6118
6916
  intervalSeconds: z.ZodNumber;
6119
6917
  deadlineAt: z.ZodNumber;
6120
6918
  }, z.core.$strip>>>;
6919
+ needs: z.ZodOptional<z.ZodArray<z.ZodObject<{
6920
+ id: z.ZodString;
6921
+ kind: z.ZodEnum<{
6922
+ capability: "capability";
6923
+ environment: "environment";
6924
+ grant: "grant";
6925
+ release: "release";
6926
+ secret: "secret";
6927
+ }>;
6928
+ title: z.ZodString;
6929
+ status: z.ZodEnum<{
6930
+ cancelled: "cancelled";
6931
+ declined: "declined";
6932
+ met: "met";
6933
+ open: "open";
6934
+ working: "working";
6935
+ }>;
6936
+ }, z.core.$strip>>>;
6121
6937
  jobs: z.ZodOptional<z.ZodArray<z.ZodObject<{
6122
6938
  id: z.ZodString;
6123
6939
  label: z.ZodString;
@@ -6326,6 +7142,7 @@ export declare const sandboxContract: {
6326
7142
  capability: z.ZodBoolean;
6327
7143
  credential: z.ZodBoolean;
6328
7144
  conflict: z.ZodBoolean;
7145
+ need: z.ZodOptional<z.ZodBoolean>;
6329
7146
  }, z.core.$strip>;
6330
7147
  conflictCauses: z.ZodOptional<z.ZodArray<z.ZodEnum<{
6331
7148
  binary: "binary";
@@ -6395,6 +7212,24 @@ export declare const sandboxContract: {
6395
7212
  intervalSeconds: z.ZodNumber;
6396
7213
  deadlineAt: z.ZodNumber;
6397
7214
  }, z.core.$strip>>>;
7215
+ needs: z.ZodOptional<z.ZodArray<z.ZodObject<{
7216
+ id: z.ZodString;
7217
+ kind: z.ZodEnum<{
7218
+ capability: "capability";
7219
+ environment: "environment";
7220
+ grant: "grant";
7221
+ release: "release";
7222
+ secret: "secret";
7223
+ }>;
7224
+ title: z.ZodString;
7225
+ status: z.ZodEnum<{
7226
+ cancelled: "cancelled";
7227
+ declined: "declined";
7228
+ met: "met";
7229
+ open: "open";
7230
+ working: "working";
7231
+ }>;
7232
+ }, z.core.$strip>>>;
6398
7233
  jobs: z.ZodOptional<z.ZodArray<z.ZodObject<{
6399
7234
  id: z.ZodString;
6400
7235
  label: z.ZodString;
@@ -6603,6 +7438,7 @@ export declare const sandboxContract: {
6603
7438
  capability: z.ZodBoolean;
6604
7439
  credential: z.ZodBoolean;
6605
7440
  conflict: z.ZodBoolean;
7441
+ need: z.ZodOptional<z.ZodBoolean>;
6606
7442
  }, z.core.$strip>;
6607
7443
  conflictCauses: z.ZodOptional<z.ZodArray<z.ZodEnum<{
6608
7444
  binary: "binary";
@@ -6672,6 +7508,24 @@ export declare const sandboxContract: {
6672
7508
  intervalSeconds: z.ZodNumber;
6673
7509
  deadlineAt: z.ZodNumber;
6674
7510
  }, z.core.$strip>>>;
7511
+ needs: z.ZodOptional<z.ZodArray<z.ZodObject<{
7512
+ id: z.ZodString;
7513
+ kind: z.ZodEnum<{
7514
+ capability: "capability";
7515
+ environment: "environment";
7516
+ grant: "grant";
7517
+ release: "release";
7518
+ secret: "secret";
7519
+ }>;
7520
+ title: z.ZodString;
7521
+ status: z.ZodEnum<{
7522
+ cancelled: "cancelled";
7523
+ declined: "declined";
7524
+ met: "met";
7525
+ open: "open";
7526
+ working: "working";
7527
+ }>;
7528
+ }, z.core.$strip>>>;
6675
7529
  jobs: z.ZodOptional<z.ZodArray<z.ZodObject<{
6676
7530
  id: z.ZodString;
6677
7531
  label: z.ZodString;
@@ -6878,6 +7732,7 @@ export declare const sandboxContract: {
6878
7732
  capability: z.ZodBoolean;
6879
7733
  credential: z.ZodBoolean;
6880
7734
  conflict: z.ZodBoolean;
7735
+ need: z.ZodOptional<z.ZodBoolean>;
6881
7736
  }, z.core.$strip>;
6882
7737
  conflictCauses: z.ZodOptional<z.ZodArray<z.ZodEnum<{
6883
7738
  binary: "binary";
@@ -6947,6 +7802,24 @@ export declare const sandboxContract: {
6947
7802
  intervalSeconds: z.ZodNumber;
6948
7803
  deadlineAt: z.ZodNumber;
6949
7804
  }, z.core.$strip>>>;
7805
+ needs: z.ZodOptional<z.ZodArray<z.ZodObject<{
7806
+ id: z.ZodString;
7807
+ kind: z.ZodEnum<{
7808
+ capability: "capability";
7809
+ environment: "environment";
7810
+ grant: "grant";
7811
+ release: "release";
7812
+ secret: "secret";
7813
+ }>;
7814
+ title: z.ZodString;
7815
+ status: z.ZodEnum<{
7816
+ cancelled: "cancelled";
7817
+ declined: "declined";
7818
+ met: "met";
7819
+ open: "open";
7820
+ working: "working";
7821
+ }>;
7822
+ }, z.core.$strip>>>;
6950
7823
  jobs: z.ZodOptional<z.ZodArray<z.ZodObject<{
6951
7824
  id: z.ZodString;
6952
7825
  label: z.ZodString;
@@ -7376,6 +8249,7 @@ export declare const sandboxContract: {
7376
8249
  capability: z.ZodBoolean;
7377
8250
  credential: z.ZodBoolean;
7378
8251
  conflict: z.ZodBoolean;
8252
+ need: z.ZodOptional<z.ZodBoolean>;
7379
8253
  }, z.core.$strip>;
7380
8254
  conflictCauses: z.ZodOptional<z.ZodArray<z.ZodEnum<{
7381
8255
  binary: "binary";
@@ -7445,6 +8319,24 @@ export declare const sandboxContract: {
7445
8319
  intervalSeconds: z.ZodNumber;
7446
8320
  deadlineAt: z.ZodNumber;
7447
8321
  }, z.core.$strip>>>;
8322
+ needs: z.ZodOptional<z.ZodArray<z.ZodObject<{
8323
+ id: z.ZodString;
8324
+ kind: z.ZodEnum<{
8325
+ capability: "capability";
8326
+ environment: "environment";
8327
+ grant: "grant";
8328
+ release: "release";
8329
+ secret: "secret";
8330
+ }>;
8331
+ title: z.ZodString;
8332
+ status: z.ZodEnum<{
8333
+ cancelled: "cancelled";
8334
+ declined: "declined";
8335
+ met: "met";
8336
+ open: "open";
8337
+ working: "working";
8338
+ }>;
8339
+ }, z.core.$strip>>>;
7448
8340
  jobs: z.ZodOptional<z.ZodArray<z.ZodObject<{
7449
8341
  id: z.ZodString;
7450
8342
  label: z.ZodString;
@@ -7653,6 +8545,7 @@ export declare const sandboxContract: {
7653
8545
  capability: z.ZodBoolean;
7654
8546
  credential: z.ZodBoolean;
7655
8547
  conflict: z.ZodBoolean;
8548
+ need: z.ZodOptional<z.ZodBoolean>;
7656
8549
  }, z.core.$strip>;
7657
8550
  conflictCauses: z.ZodOptional<z.ZodArray<z.ZodEnum<{
7658
8551
  binary: "binary";
@@ -7722,6 +8615,24 @@ export declare const sandboxContract: {
7722
8615
  intervalSeconds: z.ZodNumber;
7723
8616
  deadlineAt: z.ZodNumber;
7724
8617
  }, z.core.$strip>>>;
8618
+ needs: z.ZodOptional<z.ZodArray<z.ZodObject<{
8619
+ id: z.ZodString;
8620
+ kind: z.ZodEnum<{
8621
+ capability: "capability";
8622
+ environment: "environment";
8623
+ grant: "grant";
8624
+ release: "release";
8625
+ secret: "secret";
8626
+ }>;
8627
+ title: z.ZodString;
8628
+ status: z.ZodEnum<{
8629
+ cancelled: "cancelled";
8630
+ declined: "declined";
8631
+ met: "met";
8632
+ open: "open";
8633
+ working: "working";
8634
+ }>;
8635
+ }, z.core.$strip>>>;
7725
8636
  jobs: z.ZodOptional<z.ZodArray<z.ZodObject<{
7726
8637
  id: z.ZodString;
7727
8638
  label: z.ZodString;
@@ -7931,6 +8842,7 @@ export declare const sandboxContract: {
7931
8842
  capability: z.ZodBoolean;
7932
8843
  credential: z.ZodBoolean;
7933
8844
  conflict: z.ZodBoolean;
8845
+ need: z.ZodOptional<z.ZodBoolean>;
7934
8846
  }, z.core.$strip>;
7935
8847
  conflictCauses: z.ZodOptional<z.ZodArray<z.ZodEnum<{
7936
8848
  binary: "binary";
@@ -8000,6 +8912,24 @@ export declare const sandboxContract: {
8000
8912
  intervalSeconds: z.ZodNumber;
8001
8913
  deadlineAt: z.ZodNumber;
8002
8914
  }, z.core.$strip>>>;
8915
+ needs: z.ZodOptional<z.ZodArray<z.ZodObject<{
8916
+ id: z.ZodString;
8917
+ kind: z.ZodEnum<{
8918
+ capability: "capability";
8919
+ environment: "environment";
8920
+ grant: "grant";
8921
+ release: "release";
8922
+ secret: "secret";
8923
+ }>;
8924
+ title: z.ZodString;
8925
+ status: z.ZodEnum<{
8926
+ cancelled: "cancelled";
8927
+ declined: "declined";
8928
+ met: "met";
8929
+ open: "open";
8930
+ working: "working";
8931
+ }>;
8932
+ }, z.core.$strip>>>;
8003
8933
  jobs: z.ZodOptional<z.ZodArray<z.ZodObject<{
8004
8934
  id: z.ZodString;
8005
8935
  label: z.ZodString;
@@ -8213,6 +9143,7 @@ export declare const sandboxContract: {
8213
9143
  capability: z.ZodBoolean;
8214
9144
  credential: z.ZodBoolean;
8215
9145
  conflict: z.ZodBoolean;
9146
+ need: z.ZodOptional<z.ZodBoolean>;
8216
9147
  }, z.core.$strip>;
8217
9148
  conflictCauses: z.ZodOptional<z.ZodArray<z.ZodEnum<{
8218
9149
  binary: "binary";
@@ -8282,6 +9213,24 @@ export declare const sandboxContract: {
8282
9213
  intervalSeconds: z.ZodNumber;
8283
9214
  deadlineAt: z.ZodNumber;
8284
9215
  }, z.core.$strip>>>;
9216
+ needs: z.ZodOptional<z.ZodArray<z.ZodObject<{
9217
+ id: z.ZodString;
9218
+ kind: z.ZodEnum<{
9219
+ capability: "capability";
9220
+ environment: "environment";
9221
+ grant: "grant";
9222
+ release: "release";
9223
+ secret: "secret";
9224
+ }>;
9225
+ title: z.ZodString;
9226
+ status: z.ZodEnum<{
9227
+ cancelled: "cancelled";
9228
+ declined: "declined";
9229
+ met: "met";
9230
+ open: "open";
9231
+ working: "working";
9232
+ }>;
9233
+ }, z.core.$strip>>>;
8285
9234
  jobs: z.ZodOptional<z.ZodArray<z.ZodObject<{
8286
9235
  id: z.ZodString;
8287
9236
  label: z.ZodString;
@@ -8496,6 +9445,7 @@ export declare const sandboxContract: {
8496
9445
  capability: z.ZodBoolean;
8497
9446
  credential: z.ZodBoolean;
8498
9447
  conflict: z.ZodBoolean;
9448
+ need: z.ZodOptional<z.ZodBoolean>;
8499
9449
  }, z.core.$strip>;
8500
9450
  conflictCauses: z.ZodOptional<z.ZodArray<z.ZodEnum<{
8501
9451
  binary: "binary";
@@ -8565,6 +9515,24 @@ export declare const sandboxContract: {
8565
9515
  intervalSeconds: z.ZodNumber;
8566
9516
  deadlineAt: z.ZodNumber;
8567
9517
  }, z.core.$strip>>>;
9518
+ needs: z.ZodOptional<z.ZodArray<z.ZodObject<{
9519
+ id: z.ZodString;
9520
+ kind: z.ZodEnum<{
9521
+ capability: "capability";
9522
+ environment: "environment";
9523
+ grant: "grant";
9524
+ release: "release";
9525
+ secret: "secret";
9526
+ }>;
9527
+ title: z.ZodString;
9528
+ status: z.ZodEnum<{
9529
+ cancelled: "cancelled";
9530
+ declined: "declined";
9531
+ met: "met";
9532
+ open: "open";
9533
+ working: "working";
9534
+ }>;
9535
+ }, z.core.$strip>>>;
8568
9536
  jobs: z.ZodOptional<z.ZodArray<z.ZodObject<{
8569
9537
  id: z.ZodString;
8570
9538
  label: z.ZodString;
@@ -9218,6 +10186,12 @@ export declare const sandboxContract: {
9218
10186
  port: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
9219
10187
  user: z.ZodString;
9220
10188
  privateKey: z.ZodString;
10189
+ }, z.core.$strip>, z.ZodObject<{
10190
+ auth: z.ZodLiteral<"generated">;
10191
+ host: z.ZodString;
10192
+ port: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
10193
+ user: z.ZodString;
10194
+ privateKey: z.ZodString;
9221
10195
  }, z.core.$strip>, z.ZodObject<{
9222
10196
  auth: z.ZodLiteral<"password">;
9223
10197
  host: z.ZodString;
@@ -9551,6 +10525,12 @@ export declare const sandboxContract: {
9551
10525
  port: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
9552
10526
  user: z.ZodString;
9553
10527
  privateKey: z.ZodString;
10528
+ }, z.core.$strip>, z.ZodObject<{
10529
+ auth: z.ZodLiteral<"generated">;
10530
+ host: z.ZodString;
10531
+ port: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
10532
+ user: z.ZodString;
10533
+ privateKey: z.ZodString;
9554
10534
  }, z.core.$strip>, z.ZodObject<{
9555
10535
  auth: z.ZodLiteral<"password">;
9556
10536
  host: z.ZodString;
@@ -9830,6 +10810,10 @@ export declare const sandboxContract: {
9830
10810
  message: z.ZodString;
9831
10811
  who: z.ZodOptional<z.ZodString>;
9832
10812
  }, z.core.$strip>, Record<never, never>, import("./protocol/route-meta.js").RouteMeta & Record<never, never>>;
10813
+ sshKey: import("@orpc/contract").ContractProcedureBuilderWithOutput<import("@orpc/contract").Schema<unknown, unknown>, z.ZodObject<{
10814
+ publicKey: z.ZodString;
10815
+ token: z.ZodString;
10816
+ }, z.core.$strip>, Record<never, never>, import("./protocol/route-meta.js").RouteMeta & Record<never, never>>;
9833
10817
  remove: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
9834
10818
  id: z.ZodString;
9835
10819
  }, z.core.$strip>, z.ZodObject<{
@@ -10190,6 +11174,7 @@ export declare const sandboxContract: {
10190
11174
  authorName: z.ZodOptional<z.ZodString>;
10191
11175
  authorAvatarUrl: z.ZodOptional<z.ZodString>;
10192
11176
  trigger: z.ZodOptional<z.ZodString>;
11177
+ workflow: z.ZodOptional<z.ZodString>;
10193
11178
  branch: z.ZodString;
10194
11179
  sha: z.ZodString;
10195
11180
  status: z.ZodEnum<{
@@ -10205,6 +11190,27 @@ export declare const sandboxContract: {
10205
11190
  durationSeconds: z.ZodOptional<z.ZodNumber>;
10206
11191
  failedJobs: z.ZodOptional<z.ZodArray<z.ZodString>>;
10207
11192
  }, z.core.$strip>>;
11193
+ reds: z.ZodOptional<z.ZodArray<z.ZodObject<{
11194
+ repo: z.ZodString;
11195
+ branch: z.ZodString;
11196
+ since: z.ZodNumber;
11197
+ runId: z.ZodNumber;
11198
+ jobs: z.ZodArray<z.ZodString>;
11199
+ fixer: z.ZodOptional<z.ZodString>;
11200
+ decision: z.ZodOptional<z.ZodObject<{
11201
+ kind: z.ZodEnum<{
11202
+ dismissed: "dismissed";
11203
+ "fix-up": "fix-up";
11204
+ reported: "reported";
11205
+ resolved: "resolved";
11206
+ spent: "spent";
11207
+ }>;
11208
+ conversationId: z.ZodOptional<z.ZodString>;
11209
+ at: z.ZodNumber;
11210
+ detail: z.ZodOptional<z.ZodString>;
11211
+ findings: z.ZodOptional<z.ZodArray<z.ZodString>>;
11212
+ }, z.core.$strip>>;
11213
+ }, z.core.$strip>>>;
10208
11214
  }, z.core.$strip>, Record<never, never>, import("./protocol/route-meta.js").RouteMeta & Record<never, never>>;
10209
11215
  rerun: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
10210
11216
  repo: z.ZodString;
@@ -11914,34 +12920,113 @@ export declare const sandboxContract: {
11914
12920
  elapsed: z.ZodString;
11915
12921
  sent: z.ZodString;
11916
12922
  }, z.core.$strip>>;
11917
- agentWords: z.ZodOptional<z.ZodObject<{
11918
- kind: z.ZodEnum<{
11919
- child: "child";
11920
- peer: "peer";
11921
- }>;
11922
- from: z.ZodString;
11923
- title: z.ZodOptional<z.ZodString>;
11924
- failed: z.ZodOptional<z.ZodBoolean>;
11925
- sent: z.ZodString;
11926
- }, z.core.$strip>>;
11927
- backgroundJob: z.ZodOptional<z.ZodObject<{
12923
+ need: z.ZodOptional<z.ZodObject<{
11928
12924
  id: z.ZodString;
11929
- label: z.ZodString;
11930
- command: z.ZodString;
11931
- startedAt: z.ZodNumber;
11932
- }, z.core.$strip>>;
11933
- credentialOffer: z.ZodOptional<z.ZodObject<{
11934
- requestId: z.ZodString;
11935
- offer: z.ZodObject<{
11936
- subject: z.ZodString;
11937
- kind: z.ZodEnum<{
12925
+ conversationId: z.ZodString;
12926
+ subject: z.ZodDiscriminatedUnion<[z.ZodObject<{
12927
+ kind: z.ZodLiteral<"capability">;
12928
+ entry: z.ZodString;
12929
+ name: z.ZodString;
12930
+ mode: z.ZodEnum<{
12931
+ change: "change";
12932
+ connect: "connect";
12933
+ reconnect: "reconnect";
12934
+ }>;
12935
+ instance: z.ZodOptional<z.ZodString>;
12936
+ target: z.ZodOptional<z.ZodString>;
12937
+ prefill: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
12938
+ changes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
12939
+ reason: z.ZodOptional<z.ZodString>;
12940
+ reported: z.ZodOptional<z.ZodBoolean>;
12941
+ }, z.core.$strip>, z.ZodObject<{
12942
+ kind: z.ZodLiteral<"secret">;
12943
+ name: z.ZodString;
12944
+ where: z.ZodOptional<z.ZodString>;
12945
+ link: z.ZodOptional<z.ZodString>;
12946
+ hint: z.ZodOptional<z.ZodString>;
12947
+ replace: z.ZodOptional<z.ZodBoolean>;
12948
+ }, z.core.$strip>, z.ZodObject<{
12949
+ kind: z.ZodLiteral<"grant">;
12950
+ subject: z.ZodEnum<{
11938
12951
  capability: "capability";
11939
- secret: "secret";
12952
+ folder: "folder";
12953
+ shelf: "shelf";
12954
+ site: "site";
11940
12955
  }>;
11941
- lane: z.ZodEnum<{
11942
- browser: "browser";
11943
- code: "code";
11944
- otp: "otp";
12956
+ what: z.ZodString;
12957
+ label: z.ZodString;
12958
+ persona: z.ZodOptional<z.ZodString>;
12959
+ scope: z.ZodOptional<z.ZodEnum<{
12960
+ conversation: "conversation";
12961
+ persona: "persona";
12962
+ }>>;
12963
+ }, z.core.$strip>, z.ZodObject<{
12964
+ kind: z.ZodLiteral<"release">;
12965
+ subject: z.ZodString;
12966
+ approvers: z.ZodArray<z.ZodString>;
12967
+ }, z.core.$strip>, z.ZodObject<{
12968
+ kind: z.ZodLiteral<"environment">;
12969
+ tool: z.ZodString;
12970
+ steps: z.ZodString;
12971
+ approvedHash: z.ZodOptional<z.ZodString>;
12972
+ }, z.core.$strip>], "kind">;
12973
+ title: z.ZodString;
12974
+ why: z.ZodOptional<z.ZodString>;
12975
+ status: z.ZodEnum<{
12976
+ cancelled: "cancelled";
12977
+ declined: "declined";
12978
+ met: "met";
12979
+ open: "open";
12980
+ working: "working";
12981
+ }>;
12982
+ createdAt: z.ZodNumber;
12983
+ updatedAt: z.ZodNumber;
12984
+ answeredBy: z.ZodOptional<z.ZodString>;
12985
+ outcome: z.ZodOptional<z.ZodString>;
12986
+ told: z.ZodOptional<z.ZodEnum<{
12987
+ call: "call";
12988
+ queued: "queued";
12989
+ turn: "turn";
12990
+ }>>;
12991
+ unattended: z.ZodOptional<z.ZodBoolean>;
12992
+ }, z.core.$strip>>;
12993
+ needWake: z.ZodOptional<z.ZodObject<{
12994
+ outcome: z.ZodEnum<{
12995
+ declined: "declined";
12996
+ met: "met";
12997
+ }>;
12998
+ title: z.ZodString;
12999
+ id: z.ZodString;
13000
+ sent: z.ZodString;
13001
+ }, z.core.$strip>>;
13002
+ agentWords: z.ZodOptional<z.ZodObject<{
13003
+ kind: z.ZodEnum<{
13004
+ child: "child";
13005
+ peer: "peer";
13006
+ }>;
13007
+ from: z.ZodString;
13008
+ title: z.ZodOptional<z.ZodString>;
13009
+ failed: z.ZodOptional<z.ZodBoolean>;
13010
+ sent: z.ZodString;
13011
+ }, z.core.$strip>>;
13012
+ backgroundJob: z.ZodOptional<z.ZodObject<{
13013
+ id: z.ZodString;
13014
+ label: z.ZodString;
13015
+ command: z.ZodString;
13016
+ startedAt: z.ZodNumber;
13017
+ }, z.core.$strip>>;
13018
+ credentialOffer: z.ZodOptional<z.ZodObject<{
13019
+ requestId: z.ZodString;
13020
+ offer: z.ZodObject<{
13021
+ subject: z.ZodString;
13022
+ kind: z.ZodEnum<{
13023
+ capability: "capability";
13024
+ secret: "secret";
13025
+ }>;
13026
+ lane: z.ZodEnum<{
13027
+ browser: "browser";
13028
+ code: "code";
13029
+ otp: "otp";
11945
13030
  session: "session";
11946
13031
  shell: "shell";
11947
13032
  }>;
@@ -12047,8 +13132,8 @@ export declare const sandboxContract: {
12047
13132
  autoRepair: z.ZodDefault<z.ZodBoolean>;
12048
13133
  offload: z.ZodDefault<z.ZodObject<{
12049
13134
  commands: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
12050
- landCheck: z.ZodOptional<z.ZodString>;
12051
13135
  }, z.core.$strip>>;
13136
+ continueWhenNeedMet: z.ZodDefault<z.ZodBoolean>;
12052
13137
  autoResumeOnRestart: z.ZodDefault<z.ZodBoolean>;
12053
13138
  adoptedChecks: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
12054
13139
  rules: z.ZodDefault<z.ZodArray<z.ZodObject<{
@@ -12217,8 +13302,8 @@ export declare const sandboxContract: {
12217
13302
  autoRepair: z.ZodDefault<z.ZodBoolean>;
12218
13303
  offload: z.ZodDefault<z.ZodObject<{
12219
13304
  commands: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
12220
- landCheck: z.ZodOptional<z.ZodString>;
12221
13305
  }, z.core.$strip>>;
13306
+ continueWhenNeedMet: z.ZodDefault<z.ZodBoolean>;
12222
13307
  autoResumeOnRestart: z.ZodDefault<z.ZodBoolean>;
12223
13308
  adoptedChecks: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
12224
13309
  rules: z.ZodDefault<z.ZodArray<z.ZodObject<{
@@ -12569,7 +13654,6 @@ export declare const sandboxContract: {
12569
13654
  adopted: z.ZodBoolean;
12570
13655
  changed: z.ZodBoolean;
12571
13656
  error: z.ZodOptional<z.ZodString>;
12572
- landDefault: z.ZodOptional<z.ZodString>;
12573
13657
  }, z.core.$strip>>;
12574
13658
  }, z.core.$strip>, Record<never, never>, import("./protocol/route-meta.js").RouteMeta & Record<never, never>>;
12575
13659
  fieldNotes: import("@orpc/contract").ContractProcedureBuilderWithOutput<import("@orpc/contract").Schema<unknown, unknown>, z.ZodObject<{
@@ -13609,6 +14693,14 @@ export declare const sandboxContract: {
13609
14693
  ticket: z.ZodString;
13610
14694
  expiresAt: z.ZodNumber;
13611
14695
  }, z.core.$strip>, Record<never, never>, import("./protocol/route-meta.js").RouteMeta & Record<never, never>>;
14696
+ downloadTicket: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
14697
+ agent: z.ZodOptional<z.ZodString>;
14698
+ paths: z.ZodArray<z.ZodString>;
14699
+ }, z.core.$strip>, z.ZodObject<{
14700
+ ticket: z.ZodString;
14701
+ expiresAt: z.ZodNumber;
14702
+ filename: z.ZodString;
14703
+ }, z.core.$strip>, Record<never, never>, import("./protocol/route-meta.js").RouteMeta & Record<never, never>>;
13612
14704
  resolve: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
13613
14705
  agent: z.ZodOptional<z.ZodString>;
13614
14706
  path: z.ZodString;
@@ -13796,132 +14888,8 @@ export declare const sandboxContract: {
13796
14888
  }, z.core.$strip>, z.ZodObject<{
13797
14889
  queued: z.ZodArray<z.ZodString>;
13798
14890
  }, z.core.$strip>, Record<never, never>, import("./protocol/route-meta.js").RouteMeta & Record<never, never>>;
13799
- mainline: import("@orpc/contract").ContractProcedureBuilderWithOutput<import("@orpc/contract").Schema<unknown, unknown>, z.ZodObject<{
13800
- projects: z.ZodArray<z.ZodObject<{
13801
- project: z.ZodString;
13802
- running: z.ZodOptional<z.ZodObject<{
13803
- command: z.ZodString;
13804
- startedAt: z.ZodNumber;
13805
- lands: z.ZodArray<z.ZodObject<{
13806
- conversationId: z.ZodString;
13807
- title: z.ZodOptional<z.ZodString>;
13808
- at: z.ZodNumber;
13809
- }, z.core.$strip>>;
13810
- on: z.ZodOptional<z.ZodString>;
13811
- }, z.core.$strip>>;
13812
- session: z.ZodOptional<z.ZodString>;
13813
- queued: z.ZodArray<z.ZodObject<{
13814
- conversationId: z.ZodString;
13815
- title: z.ZodOptional<z.ZodString>;
13816
- at: z.ZodNumber;
13817
- }, z.core.$strip>>;
13818
- last: z.ZodOptional<z.ZodObject<{
13819
- project: z.ZodString;
13820
- command: z.ZodString;
13821
- status: z.ZodEnum<{
13822
- green: "green";
13823
- red: "red";
13824
- }>;
13825
- startedAt: z.ZodNumber;
13826
- at: z.ZodNumber;
13827
- lands: z.ZodArray<z.ZodObject<{
13828
- conversationId: z.ZodString;
13829
- title: z.ZodOptional<z.ZodString>;
13830
- at: z.ZodNumber;
13831
- }, z.core.$strip>>;
13832
- failures: z.ZodArray<z.ZodString>;
13833
- failureCount: z.ZodNumber;
13834
- attempt: z.ZodNumber;
13835
- suspects: z.ZodOptional<z.ZodArray<z.ZodString>>;
13836
- named: z.ZodOptional<z.ZodBoolean>;
13837
- units: z.ZodOptional<z.ZodArray<z.ZodObject<{
13838
- name: z.ZodString;
13839
- path: z.ZodOptional<z.ZodString>;
13840
- }, z.core.$strip>>>;
13841
- routing: z.ZodOptional<z.ZodObject<{
13842
- kind: z.ZodEnum<{
13843
- dismissed: "dismissed";
13844
- "fix-up": "fix-up";
13845
- held: "held";
13846
- original: "original";
13847
- reported: "reported";
13848
- resolved: "resolved";
13849
- spent: "spent";
13850
- waiting: "waiting";
13851
- }>;
13852
- conversationId: z.ZodOptional<z.ZodString>;
13853
- at: z.ZodNumber;
13854
- detail: z.ZodOptional<z.ZodString>;
13855
- findings: z.ZodOptional<z.ZodArray<z.ZodString>>;
13856
- }, z.core.$strip>>;
13857
- }, z.core.$strip>>;
13858
- redSince: z.ZodOptional<z.ZodNumber>;
13859
- red: z.ZodOptional<z.ZodObject<{
13860
- since: z.ZodNumber;
13861
- cause: z.ZodArray<z.ZodObject<{
13862
- conversationId: z.ZodString;
13863
- title: z.ZodOptional<z.ZodString>;
13864
- }, z.core.$strip>>;
13865
- named: z.ZodBoolean;
13866
- fixer: z.ZodOptional<z.ZodObject<{
13867
- kind: z.ZodEnum<{
13868
- dismissed: "dismissed";
13869
- "fix-up": "fix-up";
13870
- held: "held";
13871
- original: "original";
13872
- reported: "reported";
13873
- resolved: "resolved";
13874
- spent: "spent";
13875
- waiting: "waiting";
13876
- }>;
13877
- conversationId: z.ZodOptional<z.ZodString>;
13878
- at: z.ZodNumber;
13879
- detail: z.ZodOptional<z.ZodString>;
13880
- findings: z.ZodOptional<z.ZodArray<z.ZodString>>;
13881
- }, z.core.$strip>>;
13882
- }, z.core.$strip>>;
13883
- }, z.core.$strip>>;
13884
- recent: z.ZodArray<z.ZodObject<{
13885
- project: z.ZodString;
13886
- command: z.ZodString;
13887
- status: z.ZodEnum<{
13888
- green: "green";
13889
- red: "red";
13890
- }>;
13891
- startedAt: z.ZodNumber;
13892
- at: z.ZodNumber;
13893
- lands: z.ZodArray<z.ZodObject<{
13894
- conversationId: z.ZodString;
13895
- title: z.ZodOptional<z.ZodString>;
13896
- at: z.ZodNumber;
13897
- }, z.core.$strip>>;
13898
- failures: z.ZodArray<z.ZodString>;
13899
- failureCount: z.ZodNumber;
13900
- attempt: z.ZodNumber;
13901
- suspects: z.ZodOptional<z.ZodArray<z.ZodString>>;
13902
- named: z.ZodOptional<z.ZodBoolean>;
13903
- units: z.ZodOptional<z.ZodArray<z.ZodObject<{
13904
- name: z.ZodString;
13905
- path: z.ZodOptional<z.ZodString>;
13906
- }, z.core.$strip>>>;
13907
- routing: z.ZodOptional<z.ZodObject<{
13908
- kind: z.ZodEnum<{
13909
- dismissed: "dismissed";
13910
- "fix-up": "fix-up";
13911
- held: "held";
13912
- original: "original";
13913
- reported: "reported";
13914
- resolved: "resolved";
13915
- spent: "spent";
13916
- waiting: "waiting";
13917
- }>;
13918
- conversationId: z.ZodOptional<z.ZodString>;
13919
- at: z.ZodNumber;
13920
- detail: z.ZodOptional<z.ZodString>;
13921
- findings: z.ZodOptional<z.ZodArray<z.ZodString>>;
13922
- }, z.core.$strip>>;
13923
- }, z.core.$strip>>;
13924
- pushed: z.ZodOptional<z.ZodArray<z.ZodObject<{
14891
+ pushChecks: import("@orpc/contract").ContractProcedureBuilderWithOutput<import("@orpc/contract").Schema<unknown, unknown>, z.ZodObject<{
14892
+ pushed: z.ZodArray<z.ZodObject<{
13925
14893
  project: z.ZodString;
13926
14894
  id: z.ZodString;
13927
14895
  at: z.ZodNumber;
@@ -13947,11 +14915,10 @@ export declare const sandboxContract: {
13947
14915
  }, z.core.$strip>>;
13948
14916
  }, z.core.$strip>>;
13949
14917
  refused: z.ZodOptional<z.ZodBoolean>;
13950
- }, z.core.$strip>>>;
13951
- reds: z.ZodOptional<z.ZodArray<z.ZodObject<{
14918
+ }, z.core.$strip>>;
14919
+ reds: z.ZodArray<z.ZodObject<{
13952
14920
  source: z.ZodEnum<{
13953
14921
  ci: "ci";
13954
- land: "land";
13955
14922
  push: "push";
13956
14923
  }>;
13957
14924
  scope: z.ZodString;
@@ -13972,34 +14939,29 @@ export declare const sandboxContract: {
13972
14939
  subject: z.ZodString;
13973
14940
  }, z.core.$strip>>;
13974
14941
  }, z.core.$strip>>>;
13975
- suspects: z.ZodDefault<z.ZodArray<z.ZodString>>;
13976
- named: z.ZodDefault<z.ZodBoolean>;
13977
14942
  decisions: z.ZodDefault<z.ZodArray<z.ZodObject<{
13978
14943
  kind: z.ZodEnum<{
13979
14944
  dismissed: "dismissed";
13980
14945
  "fix-up": "fix-up";
13981
- held: "held";
13982
- original: "original";
13983
14946
  reported: "reported";
13984
14947
  resolved: "resolved";
13985
14948
  spent: "spent";
13986
- waiting: "waiting";
13987
14949
  }>;
13988
14950
  conversationId: z.ZodOptional<z.ZodString>;
13989
14951
  at: z.ZodNumber;
13990
14952
  detail: z.ZodOptional<z.ZodString>;
13991
14953
  findings: z.ZodOptional<z.ZodArray<z.ZodString>>;
13992
14954
  }, z.core.$strip>>>;
13993
- }, z.core.$strip>>>;
14955
+ }, z.core.$strip>>;
13994
14956
  }, z.core.$strip>, Record<never, never>, import("./protocol/route-meta.js").RouteMeta & Record<never, never>>;
13995
- mainlinePushDismiss: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
14957
+ pushDismiss: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
13996
14958
  project: z.ZodString;
13997
14959
  ids: z.ZodOptional<z.ZodArray<z.ZodString>>;
13998
14960
  restore: z.ZodOptional<z.ZodBoolean>;
13999
14961
  }, z.core.$strip>, z.ZodObject<{
14000
14962
  changed: z.ZodNumber;
14001
14963
  }, z.core.$strip>, Record<never, never>, import("./protocol/route-meta.js").RouteMeta & Record<never, never>>;
14002
- mainlinePushRecheck: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
14964
+ pushRecheck: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
14003
14965
  project: z.ZodString;
14004
14966
  }, z.core.$strip>, z.ZodObject<{
14005
14967
  measured: z.ZodBoolean;
@@ -14925,89 +15887,636 @@ export declare const sandboxContract: {
14925
15887
  delivered: z.ZodNumber;
14926
15888
  }, z.core.$strip>, Record<never, never>, import("./protocol/route-meta.js").RouteMeta & Record<never, never>>;
14927
15889
  };
14928
- secrets: {
14929
- set: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
14930
- key: z.ZodString;
14931
- value: z.ZodString;
14932
- }, z.core.$strip>, z.ZodObject<{
14933
- ok: z.ZodLiteral<true>;
14934
- }, z.core.$strip>, Record<never, never>, import("./protocol/route-meta.js").RouteMeta & Record<never, never>>;
14935
- list: import("@orpc/contract").ContractProcedureBuilderWithOutput<import("@orpc/contract").Schema<unknown, unknown>, z.ZodObject<{
14936
- keys: z.ZodArray<z.ZodString>;
14937
- }, z.core.$strip>, Record<never, never>, import("./protocol/route-meta.js").RouteMeta & Record<never, never>>;
14938
- remove: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
14939
- key: z.ZodString;
14940
- }, z.core.$strip>, z.ZodObject<{
14941
- ok: z.ZodLiteral<true>;
14942
- }, z.core.$strip>, Record<never, never>, import("./protocol/route-meta.js").RouteMeta & Record<never, never>>;
14943
- inventory: import("@orpc/contract").ContractProcedureBuilderWithOutput<import("@orpc/contract").Schema<unknown, unknown>, z.ZodObject<{
14944
- entries: z.ZodArray<z.ZodObject<{
14945
- key: z.ZodString;
14946
- kind: z.ZodEnum<{
15890
+ needs: {
15891
+ ask: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
15892
+ ask: z.ZodDiscriminatedUnion<[z.ZodObject<{
15893
+ kind: z.ZodLiteral<"capability">;
15894
+ entry: z.ZodString;
15895
+ target: z.ZodOptional<z.ZodString>;
15896
+ set: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
15897
+ reconnect: z.ZodOptional<z.ZodBoolean>;
15898
+ }, z.core.$strip>, z.ZodObject<{
15899
+ kind: z.ZodLiteral<"secret">;
15900
+ name: z.ZodString;
15901
+ where: z.ZodOptional<z.ZodString>;
15902
+ link: z.ZodOptional<z.ZodString>;
15903
+ hint: z.ZodOptional<z.ZodString>;
15904
+ replace: z.ZodOptional<z.ZodBoolean>;
15905
+ }, z.core.$strip>, z.ZodObject<{
15906
+ kind: z.ZodLiteral<"grant">;
15907
+ subject: z.ZodEnum<{
14947
15908
  capability: "capability";
14948
- env: "env";
14949
- generated: "generated";
14950
- provider: "provider";
14951
- }>;
14952
- label: z.ZodOptional<z.ZodString>;
14953
- status: z.ZodEnum<{
14954
- connected: "connected";
14955
- missing: "missing";
14956
- set: "set";
15909
+ folder: "folder";
15910
+ shelf: "shelf";
15911
+ site: "site";
14957
15912
  }>;
14958
- requiredBy: z.ZodArray<z.ZodObject<{
14959
- resourceId: z.ZodString;
14960
- type: z.ZodString;
14961
- }, z.core.$strip>>;
14962
- storedAt: z.ZodString;
14963
- revealable: z.ZodBoolean;
14964
- ci: z.ZodOptional<z.ZodObject<{
14965
- synced: z.ZodBoolean;
14966
- pushedAt: z.ZodOptional<z.ZodString>;
14967
- }, z.core.$strip>>;
14968
- lastUse: z.ZodOptional<z.ZodObject<{
14969
- at: z.ZodNumber;
14970
- lane: z.ZodEnum<{
14971
- browser: "browser";
14972
- code: "code";
14973
- shell: "shell";
15913
+ what: z.ZodString;
15914
+ }, z.core.$strip>, z.ZodObject<{
15915
+ kind: z.ZodLiteral<"release">;
15916
+ subject: z.ZodString;
15917
+ }, z.core.$strip>, z.ZodObject<{
15918
+ kind: z.ZodLiteral<"environment">;
15919
+ tool: z.ZodString;
15920
+ steps: z.ZodString;
15921
+ }, z.core.$strip>], "kind">;
15922
+ why: z.ZodOptional<z.ZodString>;
15923
+ wait: z.ZodOptional<z.ZodNumber>;
15924
+ }, z.core.$strip>, z.ZodObject<{
15925
+ state: z.ZodEnum<{
15926
+ met: "met";
15927
+ open: "open";
15928
+ refused: "refused";
15929
+ }>;
15930
+ message: z.ZodString;
15931
+ need: z.ZodOptional<z.ZodObject<{
15932
+ id: z.ZodString;
15933
+ conversationId: z.ZodString;
15934
+ subject: z.ZodDiscriminatedUnion<[z.ZodObject<{
15935
+ kind: z.ZodLiteral<"capability">;
15936
+ entry: z.ZodString;
15937
+ name: z.ZodString;
15938
+ mode: z.ZodEnum<{
15939
+ change: "change";
15940
+ connect: "connect";
15941
+ reconnect: "reconnect";
14974
15942
  }>;
14975
- detail: z.ZodOptional<z.ZodString>;
14976
- approvedBy: z.ZodOptional<z.ZodString>;
14977
- }, z.core.$strip>>;
14978
- gate: z.ZodOptional<z.ZodObject<{
14979
- approvers: z.ZodArray<z.ZodString>;
14980
- scope: z.ZodEnum<{
14981
- conversation: "conversation";
14982
- use: "use";
15943
+ instance: z.ZodOptional<z.ZodString>;
15944
+ target: z.ZodOptional<z.ZodString>;
15945
+ prefill: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
15946
+ changes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
15947
+ reason: z.ZodOptional<z.ZodString>;
15948
+ reported: z.ZodOptional<z.ZodBoolean>;
15949
+ }, z.core.$strip>, z.ZodObject<{
15950
+ kind: z.ZodLiteral<"secret">;
15951
+ name: z.ZodString;
15952
+ where: z.ZodOptional<z.ZodString>;
15953
+ link: z.ZodOptional<z.ZodString>;
15954
+ hint: z.ZodOptional<z.ZodString>;
15955
+ replace: z.ZodOptional<z.ZodBoolean>;
15956
+ }, z.core.$strip>, z.ZodObject<{
15957
+ kind: z.ZodLiteral<"grant">;
15958
+ subject: z.ZodEnum<{
15959
+ capability: "capability";
15960
+ folder: "folder";
15961
+ shelf: "shelf";
15962
+ site: "site";
14983
15963
  }>;
14984
- }, z.core.$strip>>;
14985
- }, z.core.$strip>>;
14986
- }, z.core.$strip>, Record<never, never>, import("./protocol/route-meta.js").RouteMeta & Record<never, never>>;
14987
- reveal: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
14988
- key: z.ZodString;
14989
- }, z.core.$strip>, z.ZodObject<{
14990
- value: z.ZodString;
14991
- }, z.core.$strip>, Record<never, never>, import("./protocol/route-meta.js").RouteMeta & Record<never, never>>;
14992
- gates: import("@orpc/contract").ContractProcedureBuilderWithOutput<import("@orpc/contract").Schema<unknown, unknown>, z.ZodObject<{
14993
- gates: z.ZodArray<z.ZodObject<{
14994
- subject: z.ZodString;
14995
- kind: z.ZodEnum<{
14996
- capability: "capability";
14997
- secret: "secret";
14998
- }>;
14999
- approvers: z.ZodArray<z.ZodString>;
15000
- scope: z.ZodEnum<{
15001
- conversation: "conversation";
15002
- use: "use";
15964
+ what: z.ZodString;
15965
+ label: z.ZodString;
15966
+ persona: z.ZodOptional<z.ZodString>;
15967
+ scope: z.ZodOptional<z.ZodEnum<{
15968
+ conversation: "conversation";
15969
+ persona: "persona";
15970
+ }>>;
15971
+ }, z.core.$strip>, z.ZodObject<{
15972
+ kind: z.ZodLiteral<"release">;
15973
+ subject: z.ZodString;
15974
+ approvers: z.ZodArray<z.ZodString>;
15975
+ }, z.core.$strip>, z.ZodObject<{
15976
+ kind: z.ZodLiteral<"environment">;
15977
+ tool: z.ZodString;
15978
+ steps: z.ZodString;
15979
+ approvedHash: z.ZodOptional<z.ZodString>;
15980
+ }, z.core.$strip>], "kind">;
15981
+ title: z.ZodString;
15982
+ why: z.ZodOptional<z.ZodString>;
15983
+ status: z.ZodEnum<{
15984
+ cancelled: "cancelled";
15985
+ declined: "declined";
15986
+ met: "met";
15987
+ open: "open";
15988
+ working: "working";
15003
15989
  }>;
15990
+ createdAt: z.ZodNumber;
15991
+ updatedAt: z.ZodNumber;
15992
+ answeredBy: z.ZodOptional<z.ZodString>;
15993
+ outcome: z.ZodOptional<z.ZodString>;
15994
+ told: z.ZodOptional<z.ZodEnum<{
15995
+ call: "call";
15996
+ queued: "queued";
15997
+ turn: "turn";
15998
+ }>>;
15999
+ unattended: z.ZodOptional<z.ZodBoolean>;
15004
16000
  }, z.core.$strip>>;
16001
+ code: z.ZodOptional<z.ZodString>;
15005
16002
  }, z.core.$strip>, Record<never, never>, import("./protocol/route-meta.js").RouteMeta & Record<never, never>>;
15006
- setGate: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
15007
- subject: z.ZodString;
15008
- kind: z.ZodEnum<{
15009
- capability: "capability";
15010
- secret: "secret";
16003
+ mine: import("@orpc/contract").ContractProcedureBuilderWithOutput<import("@orpc/contract").Schema<unknown, unknown>, z.ZodObject<{
16004
+ needs: z.ZodArray<z.ZodObject<{
16005
+ id: z.ZodString;
16006
+ conversationId: z.ZodString;
16007
+ subject: z.ZodDiscriminatedUnion<[z.ZodObject<{
16008
+ kind: z.ZodLiteral<"capability">;
16009
+ entry: z.ZodString;
16010
+ name: z.ZodString;
16011
+ mode: z.ZodEnum<{
16012
+ change: "change";
16013
+ connect: "connect";
16014
+ reconnect: "reconnect";
16015
+ }>;
16016
+ instance: z.ZodOptional<z.ZodString>;
16017
+ target: z.ZodOptional<z.ZodString>;
16018
+ prefill: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
16019
+ changes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
16020
+ reason: z.ZodOptional<z.ZodString>;
16021
+ reported: z.ZodOptional<z.ZodBoolean>;
16022
+ }, z.core.$strip>, z.ZodObject<{
16023
+ kind: z.ZodLiteral<"secret">;
16024
+ name: z.ZodString;
16025
+ where: z.ZodOptional<z.ZodString>;
16026
+ link: z.ZodOptional<z.ZodString>;
16027
+ hint: z.ZodOptional<z.ZodString>;
16028
+ replace: z.ZodOptional<z.ZodBoolean>;
16029
+ }, z.core.$strip>, z.ZodObject<{
16030
+ kind: z.ZodLiteral<"grant">;
16031
+ subject: z.ZodEnum<{
16032
+ capability: "capability";
16033
+ folder: "folder";
16034
+ shelf: "shelf";
16035
+ site: "site";
16036
+ }>;
16037
+ what: z.ZodString;
16038
+ label: z.ZodString;
16039
+ persona: z.ZodOptional<z.ZodString>;
16040
+ scope: z.ZodOptional<z.ZodEnum<{
16041
+ conversation: "conversation";
16042
+ persona: "persona";
16043
+ }>>;
16044
+ }, z.core.$strip>, z.ZodObject<{
16045
+ kind: z.ZodLiteral<"release">;
16046
+ subject: z.ZodString;
16047
+ approvers: z.ZodArray<z.ZodString>;
16048
+ }, z.core.$strip>, z.ZodObject<{
16049
+ kind: z.ZodLiteral<"environment">;
16050
+ tool: z.ZodString;
16051
+ steps: z.ZodString;
16052
+ approvedHash: z.ZodOptional<z.ZodString>;
16053
+ }, z.core.$strip>], "kind">;
16054
+ title: z.ZodString;
16055
+ why: z.ZodOptional<z.ZodString>;
16056
+ status: z.ZodEnum<{
16057
+ cancelled: "cancelled";
16058
+ declined: "declined";
16059
+ met: "met";
16060
+ open: "open";
16061
+ working: "working";
16062
+ }>;
16063
+ createdAt: z.ZodNumber;
16064
+ updatedAt: z.ZodNumber;
16065
+ answeredBy: z.ZodOptional<z.ZodString>;
16066
+ outcome: z.ZodOptional<z.ZodString>;
16067
+ told: z.ZodOptional<z.ZodEnum<{
16068
+ call: "call";
16069
+ queued: "queued";
16070
+ turn: "turn";
16071
+ }>>;
16072
+ unattended: z.ZodOptional<z.ZodBoolean>;
16073
+ }, z.core.$strip>>;
16074
+ }, z.core.$strip>, Record<never, never>, import("./protocol/route-meta.js").RouteMeta & Record<never, never>>;
16075
+ withdraw: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
16076
+ id: z.ZodString;
16077
+ }, z.core.$strip>, z.ZodObject<{
16078
+ id: z.ZodString;
16079
+ conversationId: z.ZodString;
16080
+ subject: z.ZodDiscriminatedUnion<[z.ZodObject<{
16081
+ kind: z.ZodLiteral<"capability">;
16082
+ entry: z.ZodString;
16083
+ name: z.ZodString;
16084
+ mode: z.ZodEnum<{
16085
+ change: "change";
16086
+ connect: "connect";
16087
+ reconnect: "reconnect";
16088
+ }>;
16089
+ instance: z.ZodOptional<z.ZodString>;
16090
+ target: z.ZodOptional<z.ZodString>;
16091
+ prefill: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
16092
+ changes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
16093
+ reason: z.ZodOptional<z.ZodString>;
16094
+ reported: z.ZodOptional<z.ZodBoolean>;
16095
+ }, z.core.$strip>, z.ZodObject<{
16096
+ kind: z.ZodLiteral<"secret">;
16097
+ name: z.ZodString;
16098
+ where: z.ZodOptional<z.ZodString>;
16099
+ link: z.ZodOptional<z.ZodString>;
16100
+ hint: z.ZodOptional<z.ZodString>;
16101
+ replace: z.ZodOptional<z.ZodBoolean>;
16102
+ }, z.core.$strip>, z.ZodObject<{
16103
+ kind: z.ZodLiteral<"grant">;
16104
+ subject: z.ZodEnum<{
16105
+ capability: "capability";
16106
+ folder: "folder";
16107
+ shelf: "shelf";
16108
+ site: "site";
16109
+ }>;
16110
+ what: z.ZodString;
16111
+ label: z.ZodString;
16112
+ persona: z.ZodOptional<z.ZodString>;
16113
+ scope: z.ZodOptional<z.ZodEnum<{
16114
+ conversation: "conversation";
16115
+ persona: "persona";
16116
+ }>>;
16117
+ }, z.core.$strip>, z.ZodObject<{
16118
+ kind: z.ZodLiteral<"release">;
16119
+ subject: z.ZodString;
16120
+ approvers: z.ZodArray<z.ZodString>;
16121
+ }, z.core.$strip>, z.ZodObject<{
16122
+ kind: z.ZodLiteral<"environment">;
16123
+ tool: z.ZodString;
16124
+ steps: z.ZodString;
16125
+ approvedHash: z.ZodOptional<z.ZodString>;
16126
+ }, z.core.$strip>], "kind">;
16127
+ title: z.ZodString;
16128
+ why: z.ZodOptional<z.ZodString>;
16129
+ status: z.ZodEnum<{
16130
+ cancelled: "cancelled";
16131
+ declined: "declined";
16132
+ met: "met";
16133
+ open: "open";
16134
+ working: "working";
16135
+ }>;
16136
+ createdAt: z.ZodNumber;
16137
+ updatedAt: z.ZodNumber;
16138
+ answeredBy: z.ZodOptional<z.ZodString>;
16139
+ outcome: z.ZodOptional<z.ZodString>;
16140
+ told: z.ZodOptional<z.ZodEnum<{
16141
+ call: "call";
16142
+ queued: "queued";
16143
+ turn: "turn";
16144
+ }>>;
16145
+ unattended: z.ZodOptional<z.ZodBoolean>;
16146
+ }, z.core.$strip>, Record<never, never>, import("./protocol/route-meta.js").RouteMeta & Record<never, never>>;
16147
+ list: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
16148
+ conversationId: z.ZodOptional<z.ZodString>;
16149
+ open: z.ZodOptional<z.ZodBoolean>;
16150
+ }, z.core.$strip>, z.ZodObject<{
16151
+ needs: z.ZodArray<z.ZodObject<{
16152
+ id: z.ZodString;
16153
+ conversationId: z.ZodString;
16154
+ subject: z.ZodDiscriminatedUnion<[z.ZodObject<{
16155
+ kind: z.ZodLiteral<"capability">;
16156
+ entry: z.ZodString;
16157
+ name: z.ZodString;
16158
+ mode: z.ZodEnum<{
16159
+ change: "change";
16160
+ connect: "connect";
16161
+ reconnect: "reconnect";
16162
+ }>;
16163
+ instance: z.ZodOptional<z.ZodString>;
16164
+ target: z.ZodOptional<z.ZodString>;
16165
+ prefill: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
16166
+ changes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
16167
+ reason: z.ZodOptional<z.ZodString>;
16168
+ reported: z.ZodOptional<z.ZodBoolean>;
16169
+ }, z.core.$strip>, z.ZodObject<{
16170
+ kind: z.ZodLiteral<"secret">;
16171
+ name: z.ZodString;
16172
+ where: z.ZodOptional<z.ZodString>;
16173
+ link: z.ZodOptional<z.ZodString>;
16174
+ hint: z.ZodOptional<z.ZodString>;
16175
+ replace: z.ZodOptional<z.ZodBoolean>;
16176
+ }, z.core.$strip>, z.ZodObject<{
16177
+ kind: z.ZodLiteral<"grant">;
16178
+ subject: z.ZodEnum<{
16179
+ capability: "capability";
16180
+ folder: "folder";
16181
+ shelf: "shelf";
16182
+ site: "site";
16183
+ }>;
16184
+ what: z.ZodString;
16185
+ label: z.ZodString;
16186
+ persona: z.ZodOptional<z.ZodString>;
16187
+ scope: z.ZodOptional<z.ZodEnum<{
16188
+ conversation: "conversation";
16189
+ persona: "persona";
16190
+ }>>;
16191
+ }, z.core.$strip>, z.ZodObject<{
16192
+ kind: z.ZodLiteral<"release">;
16193
+ subject: z.ZodString;
16194
+ approvers: z.ZodArray<z.ZodString>;
16195
+ }, z.core.$strip>, z.ZodObject<{
16196
+ kind: z.ZodLiteral<"environment">;
16197
+ tool: z.ZodString;
16198
+ steps: z.ZodString;
16199
+ approvedHash: z.ZodOptional<z.ZodString>;
16200
+ }, z.core.$strip>], "kind">;
16201
+ title: z.ZodString;
16202
+ why: z.ZodOptional<z.ZodString>;
16203
+ status: z.ZodEnum<{
16204
+ cancelled: "cancelled";
16205
+ declined: "declined";
16206
+ met: "met";
16207
+ open: "open";
16208
+ working: "working";
16209
+ }>;
16210
+ createdAt: z.ZodNumber;
16211
+ updatedAt: z.ZodNumber;
16212
+ answeredBy: z.ZodOptional<z.ZodString>;
16213
+ outcome: z.ZodOptional<z.ZodString>;
16214
+ told: z.ZodOptional<z.ZodEnum<{
16215
+ call: "call";
16216
+ queued: "queued";
16217
+ turn: "turn";
16218
+ }>>;
16219
+ unattended: z.ZodOptional<z.ZodBoolean>;
16220
+ }, z.core.$strip>>;
16221
+ }, z.core.$strip>, Record<never, never>, import("./protocol/route-meta.js").RouteMeta & Record<never, never>>;
16222
+ answer: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
16223
+ id: z.ZodString;
16224
+ answer: z.ZodDiscriminatedUnion<[z.ZodObject<{
16225
+ kind: z.ZodLiteral<"decline">;
16226
+ note: z.ZodOptional<z.ZodString>;
16227
+ }, z.core.$strip>, z.ZodObject<{
16228
+ kind: z.ZodLiteral<"accept">;
16229
+ }, z.core.$strip>, z.ZodObject<{
16230
+ kind: z.ZodLiteral<"apply">;
16231
+ }, z.core.$strip>, z.ZodObject<{
16232
+ kind: z.ZodLiteral<"grant">;
16233
+ scope: z.ZodEnum<{
16234
+ conversation: "conversation";
16235
+ persona: "persona";
16236
+ }>;
16237
+ }, z.core.$strip>, z.ZodObject<{
16238
+ kind: z.ZodLiteral<"release">;
16239
+ }, z.core.$strip>, z.ZodObject<{
16240
+ kind: z.ZodLiteral<"approve">;
16241
+ }, z.core.$strip>], "kind">;
16242
+ }, z.core.$strip>, z.ZodObject<{
16243
+ id: z.ZodString;
16244
+ conversationId: z.ZodString;
16245
+ subject: z.ZodDiscriminatedUnion<[z.ZodObject<{
16246
+ kind: z.ZodLiteral<"capability">;
16247
+ entry: z.ZodString;
16248
+ name: z.ZodString;
16249
+ mode: z.ZodEnum<{
16250
+ change: "change";
16251
+ connect: "connect";
16252
+ reconnect: "reconnect";
16253
+ }>;
16254
+ instance: z.ZodOptional<z.ZodString>;
16255
+ target: z.ZodOptional<z.ZodString>;
16256
+ prefill: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
16257
+ changes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
16258
+ reason: z.ZodOptional<z.ZodString>;
16259
+ reported: z.ZodOptional<z.ZodBoolean>;
16260
+ }, z.core.$strip>, z.ZodObject<{
16261
+ kind: z.ZodLiteral<"secret">;
16262
+ name: z.ZodString;
16263
+ where: z.ZodOptional<z.ZodString>;
16264
+ link: z.ZodOptional<z.ZodString>;
16265
+ hint: z.ZodOptional<z.ZodString>;
16266
+ replace: z.ZodOptional<z.ZodBoolean>;
16267
+ }, z.core.$strip>, z.ZodObject<{
16268
+ kind: z.ZodLiteral<"grant">;
16269
+ subject: z.ZodEnum<{
16270
+ capability: "capability";
16271
+ folder: "folder";
16272
+ shelf: "shelf";
16273
+ site: "site";
16274
+ }>;
16275
+ what: z.ZodString;
16276
+ label: z.ZodString;
16277
+ persona: z.ZodOptional<z.ZodString>;
16278
+ scope: z.ZodOptional<z.ZodEnum<{
16279
+ conversation: "conversation";
16280
+ persona: "persona";
16281
+ }>>;
16282
+ }, z.core.$strip>, z.ZodObject<{
16283
+ kind: z.ZodLiteral<"release">;
16284
+ subject: z.ZodString;
16285
+ approvers: z.ZodArray<z.ZodString>;
16286
+ }, z.core.$strip>, z.ZodObject<{
16287
+ kind: z.ZodLiteral<"environment">;
16288
+ tool: z.ZodString;
16289
+ steps: z.ZodString;
16290
+ approvedHash: z.ZodOptional<z.ZodString>;
16291
+ }, z.core.$strip>], "kind">;
16292
+ title: z.ZodString;
16293
+ why: z.ZodOptional<z.ZodString>;
16294
+ status: z.ZodEnum<{
16295
+ cancelled: "cancelled";
16296
+ declined: "declined";
16297
+ met: "met";
16298
+ open: "open";
16299
+ working: "working";
16300
+ }>;
16301
+ createdAt: z.ZodNumber;
16302
+ updatedAt: z.ZodNumber;
16303
+ answeredBy: z.ZodOptional<z.ZodString>;
16304
+ outcome: z.ZodOptional<z.ZodString>;
16305
+ told: z.ZodOptional<z.ZodEnum<{
16306
+ call: "call";
16307
+ queued: "queued";
16308
+ turn: "turn";
16309
+ }>>;
16310
+ unattended: z.ZodOptional<z.ZodBoolean>;
16311
+ }, z.core.$strip>, Record<never, never>, import("./protocol/route-meta.js").RouteMeta & Record<never, never>>;
16312
+ provideSecret: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
16313
+ id: z.ZodString;
16314
+ value: z.ZodString;
16315
+ }, z.core.$strip>, z.ZodObject<{
16316
+ id: z.ZodString;
16317
+ conversationId: z.ZodString;
16318
+ subject: z.ZodDiscriminatedUnion<[z.ZodObject<{
16319
+ kind: z.ZodLiteral<"capability">;
16320
+ entry: z.ZodString;
16321
+ name: z.ZodString;
16322
+ mode: z.ZodEnum<{
16323
+ change: "change";
16324
+ connect: "connect";
16325
+ reconnect: "reconnect";
16326
+ }>;
16327
+ instance: z.ZodOptional<z.ZodString>;
16328
+ target: z.ZodOptional<z.ZodString>;
16329
+ prefill: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
16330
+ changes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
16331
+ reason: z.ZodOptional<z.ZodString>;
16332
+ reported: z.ZodOptional<z.ZodBoolean>;
16333
+ }, z.core.$strip>, z.ZodObject<{
16334
+ kind: z.ZodLiteral<"secret">;
16335
+ name: z.ZodString;
16336
+ where: z.ZodOptional<z.ZodString>;
16337
+ link: z.ZodOptional<z.ZodString>;
16338
+ hint: z.ZodOptional<z.ZodString>;
16339
+ replace: z.ZodOptional<z.ZodBoolean>;
16340
+ }, z.core.$strip>, z.ZodObject<{
16341
+ kind: z.ZodLiteral<"grant">;
16342
+ subject: z.ZodEnum<{
16343
+ capability: "capability";
16344
+ folder: "folder";
16345
+ shelf: "shelf";
16346
+ site: "site";
16347
+ }>;
16348
+ what: z.ZodString;
16349
+ label: z.ZodString;
16350
+ persona: z.ZodOptional<z.ZodString>;
16351
+ scope: z.ZodOptional<z.ZodEnum<{
16352
+ conversation: "conversation";
16353
+ persona: "persona";
16354
+ }>>;
16355
+ }, z.core.$strip>, z.ZodObject<{
16356
+ kind: z.ZodLiteral<"release">;
16357
+ subject: z.ZodString;
16358
+ approvers: z.ZodArray<z.ZodString>;
16359
+ }, z.core.$strip>, z.ZodObject<{
16360
+ kind: z.ZodLiteral<"environment">;
16361
+ tool: z.ZodString;
16362
+ steps: z.ZodString;
16363
+ approvedHash: z.ZodOptional<z.ZodString>;
16364
+ }, z.core.$strip>], "kind">;
16365
+ title: z.ZodString;
16366
+ why: z.ZodOptional<z.ZodString>;
16367
+ status: z.ZodEnum<{
16368
+ cancelled: "cancelled";
16369
+ declined: "declined";
16370
+ met: "met";
16371
+ open: "open";
16372
+ working: "working";
16373
+ }>;
16374
+ createdAt: z.ZodNumber;
16375
+ updatedAt: z.ZodNumber;
16376
+ answeredBy: z.ZodOptional<z.ZodString>;
16377
+ outcome: z.ZodOptional<z.ZodString>;
16378
+ told: z.ZodOptional<z.ZodEnum<{
16379
+ call: "call";
16380
+ queued: "queued";
16381
+ turn: "turn";
16382
+ }>>;
16383
+ unattended: z.ZodOptional<z.ZodBoolean>;
16384
+ }, z.core.$strip>, Record<never, never>, import("./protocol/route-meta.js").RouteMeta & Record<never, never>>;
16385
+ grants: import("@orpc/contract").ContractProcedureBuilderWithOutput<import("@orpc/contract").Schema<unknown, unknown>, z.ZodObject<{
16386
+ conversations: z.ZodArray<z.ZodObject<{
16387
+ conversationId: z.ZodString;
16388
+ capabilities: z.ZodArray<z.ZodString>;
16389
+ folders: z.ZodArray<z.ZodString>;
16390
+ shelves: z.ZodArray<z.ZodEnum<{
16391
+ browser: "browser";
16392
+ code: "code";
16393
+ delegate: "delegate";
16394
+ files: "files";
16395
+ sandbox: "sandbox";
16396
+ shell: "shell";
16397
+ web: "web";
16398
+ }>>;
16399
+ by: z.ZodOptional<z.ZodString>;
16400
+ updatedAt: z.ZodOptional<z.ZodNumber>;
16401
+ releases: z.ZodArray<z.ZodObject<{
16402
+ subject: z.ZodString;
16403
+ approvedBy: z.ZodString;
16404
+ at: z.ZodNumber;
16405
+ }, z.core.$strip>>;
16406
+ }, z.core.$strip>>;
16407
+ }, z.core.$strip>, Record<never, never>, import("./protocol/route-meta.js").RouteMeta & Record<never, never>>;
16408
+ revokeGrant: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
16409
+ conversationId: z.ZodString;
16410
+ kind: z.ZodEnum<{
16411
+ capability: "capability";
16412
+ folder: "folder";
16413
+ release: "release";
16414
+ shelf: "shelf";
16415
+ }>;
16416
+ what: z.ZodString;
16417
+ }, z.core.$strip>, z.ZodObject<{
16418
+ ok: z.ZodLiteral<true>;
16419
+ }, z.core.$strip>, Record<never, never>, import("./protocol/route-meta.js").RouteMeta & Record<never, never>>;
16420
+ };
16421
+ secrets: {
16422
+ set: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
16423
+ key: z.ZodString;
16424
+ value: z.ZodString;
16425
+ }, z.core.$strip>, z.ZodObject<{
16426
+ ok: z.ZodLiteral<true>;
16427
+ }, z.core.$strip>, Record<never, never>, import("./protocol/route-meta.js").RouteMeta & Record<never, never>>;
16428
+ generate: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
16429
+ key: z.ZodString;
16430
+ bytes: z.ZodDefault<z.ZodNumber>;
16431
+ format: z.ZodDefault<z.ZodEnum<{
16432
+ alnum: "alnum";
16433
+ base64url: "base64url";
16434
+ hex: "hex";
16435
+ }>>;
16436
+ }, z.core.$strip>, z.ZodObject<{
16437
+ key: z.ZodString;
16438
+ length: z.ZodNumber;
16439
+ stored: z.ZodEnum<{
16440
+ env: "env";
16441
+ sandbox: "sandbox";
16442
+ }>;
16443
+ }, z.core.$strip>, Record<never, never>, import("./protocol/route-meta.js").RouteMeta & Record<never, never>>;
16444
+ list: import("@orpc/contract").ContractProcedureBuilderWithOutput<import("@orpc/contract").Schema<unknown, unknown>, z.ZodObject<{
16445
+ keys: z.ZodArray<z.ZodString>;
16446
+ }, z.core.$strip>, Record<never, never>, import("./protocol/route-meta.js").RouteMeta & Record<never, never>>;
16447
+ remove: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
16448
+ key: z.ZodString;
16449
+ }, z.core.$strip>, z.ZodObject<{
16450
+ ok: z.ZodLiteral<true>;
16451
+ }, z.core.$strip>, Record<never, never>, import("./protocol/route-meta.js").RouteMeta & Record<never, never>>;
16452
+ inventory: import("@orpc/contract").ContractProcedureBuilderWithOutput<import("@orpc/contract").Schema<unknown, unknown>, z.ZodObject<{
16453
+ entries: z.ZodArray<z.ZodObject<{
16454
+ key: z.ZodString;
16455
+ kind: z.ZodEnum<{
16456
+ capability: "capability";
16457
+ env: "env";
16458
+ generated: "generated";
16459
+ provider: "provider";
16460
+ }>;
16461
+ label: z.ZodOptional<z.ZodString>;
16462
+ status: z.ZodEnum<{
16463
+ connected: "connected";
16464
+ missing: "missing";
16465
+ set: "set";
16466
+ }>;
16467
+ requiredBy: z.ZodArray<z.ZodObject<{
16468
+ resourceId: z.ZodString;
16469
+ type: z.ZodString;
16470
+ }, z.core.$strip>>;
16471
+ storedAt: z.ZodString;
16472
+ revealable: z.ZodBoolean;
16473
+ ci: z.ZodOptional<z.ZodObject<{
16474
+ synced: z.ZodBoolean;
16475
+ pushedAt: z.ZodOptional<z.ZodString>;
16476
+ }, z.core.$strip>>;
16477
+ lastUse: z.ZodOptional<z.ZodObject<{
16478
+ at: z.ZodNumber;
16479
+ lane: z.ZodEnum<{
16480
+ browser: "browser";
16481
+ code: "code";
16482
+ shell: "shell";
16483
+ }>;
16484
+ detail: z.ZodOptional<z.ZodString>;
16485
+ approvedBy: z.ZodOptional<z.ZodString>;
16486
+ }, z.core.$strip>>;
16487
+ gate: z.ZodOptional<z.ZodObject<{
16488
+ approvers: z.ZodArray<z.ZodString>;
16489
+ scope: z.ZodEnum<{
16490
+ conversation: "conversation";
16491
+ use: "use";
16492
+ }>;
16493
+ }, z.core.$strip>>;
16494
+ }, z.core.$strip>>;
16495
+ }, z.core.$strip>, Record<never, never>, import("./protocol/route-meta.js").RouteMeta & Record<never, never>>;
16496
+ reveal: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
16497
+ key: z.ZodString;
16498
+ }, z.core.$strip>, z.ZodObject<{
16499
+ value: z.ZodString;
16500
+ }, z.core.$strip>, Record<never, never>, import("./protocol/route-meta.js").RouteMeta & Record<never, never>>;
16501
+ gates: import("@orpc/contract").ContractProcedureBuilderWithOutput<import("@orpc/contract").Schema<unknown, unknown>, z.ZodObject<{
16502
+ gates: z.ZodArray<z.ZodObject<{
16503
+ subject: z.ZodString;
16504
+ kind: z.ZodEnum<{
16505
+ capability: "capability";
16506
+ secret: "secret";
16507
+ }>;
16508
+ approvers: z.ZodArray<z.ZodString>;
16509
+ scope: z.ZodEnum<{
16510
+ conversation: "conversation";
16511
+ use: "use";
16512
+ }>;
16513
+ }, z.core.$strip>>;
16514
+ }, z.core.$strip>, Record<never, never>, import("./protocol/route-meta.js").RouteMeta & Record<never, never>>;
16515
+ setGate: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
16516
+ subject: z.ZodString;
16517
+ kind: z.ZodEnum<{
16518
+ capability: "capability";
16519
+ secret: "secret";
15011
16520
  }>;
15012
16521
  approvers: z.ZodArray<z.ZodString>;
15013
16522
  scope: z.ZodEnum<{
@@ -15081,6 +16590,31 @@ export declare const sandboxContract: {
15081
16590
  ok: z.ZodBoolean;
15082
16591
  }, z.core.$strip>>;
15083
16592
  }, z.core.$strip>>;
16593
+ lastUpdate: z.ZodOptional<z.ZodObject<{
16594
+ result: z.ZodEnum<{
16595
+ kept: "kept";
16596
+ restored: "restored";
16597
+ "rolled-back": "rolled-back";
16598
+ updated: "updated";
16599
+ }>;
16600
+ verb: z.ZodOptional<z.ZodString>;
16601
+ at: z.ZodNumber;
16602
+ from: z.ZodOptional<z.ZodString>;
16603
+ to: z.ZodOptional<z.ZodString>;
16604
+ reason: z.ZodOptional<z.ZodString>;
16605
+ log: z.ZodOptional<z.ZodString>;
16606
+ keepUntil: z.ZodOptional<z.ZodNumber>;
16607
+ }, z.core.$strip>>;
16608
+ withdrawn: z.ZodOptional<z.ZodObject<{
16609
+ version: z.ZodString;
16610
+ reason: z.ZodOptional<z.ZodString>;
16611
+ }, z.core.$strip>>;
16612
+ skippedVersion: z.ZodOptional<z.ZodString>;
16613
+ }, z.core.$strip>, Record<never, never>, import("./protocol/route-meta.js").RouteMeta & Record<never, never>>;
16614
+ skipUpdate: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
16615
+ version: z.ZodNullable<z.ZodString>;
16616
+ }, z.core.$strip>, z.ZodObject<{
16617
+ ok: z.ZodLiteral<true>;
15084
16618
  }, z.core.$strip>, Record<never, never>, import("./protocol/route-meta.js").RouteMeta & Record<never, never>>;
15085
16619
  manifestProblems: import("@orpc/contract").ContractProcedureBuilderWithOutput<import("@orpc/contract").Schema<unknown, unknown>, z.ZodArray<z.ZodObject<{
15086
16620
  path: z.ZodString;
@@ -15116,19 +16650,6 @@ export declare const sandboxContract: {
15116
16650
  events: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
15117
16651
  clientId: z.ZodOptional<z.ZodString>;
15118
16652
  }, z.core.$strip>, import("@orpc/contract").Schema<AsyncIteratorObject<{
15119
- kind: "heartbeat";
15120
- rev: number;
15121
- } | {
15122
- ready: boolean;
15123
- startedAt: number;
15124
- steps: {
15125
- key: string;
15126
- label: string;
15127
- state: "done" | "failed" | "pending" | "running";
15128
- ms?: number | undefined;
15129
- }[];
15130
- kind: "boot";
15131
- } | {
15132
16653
  kind: "hello";
15133
16654
  workspaceId: string;
15134
16655
  routes?: string[] | undefined;
@@ -15145,8 +16666,18 @@ export declare const sandboxContract: {
15145
16666
  }[];
15146
16667
  } | undefined;
15147
16668
  } | {
15148
- kind: "reposChanged";
15149
- repos: string[];
16669
+ kind: "heartbeat";
16670
+ rev: number;
16671
+ } | {
16672
+ ready: boolean;
16673
+ startedAt: number;
16674
+ steps: {
16675
+ key: string;
16676
+ label: string;
16677
+ state: "done" | "failed" | "pending" | "running";
16678
+ ms?: number | undefined;
16679
+ }[];
16680
+ kind: "boot";
15150
16681
  } | {
15151
16682
  kind: "workspaceChanged";
15152
16683
  paths: string[];
@@ -15162,6 +16693,9 @@ export declare const sandboxContract: {
15162
16693
  shadows?: number | undefined;
15163
16694
  sweptAt?: string | undefined;
15164
16695
  };
16696
+ } | {
16697
+ kind: "reposChanged";
16698
+ repos: string[];
15165
16699
  } | {
15166
16700
  kind: "refsChanged";
15167
16701
  repos: string[];
@@ -15319,6 +16853,7 @@ export declare const sandboxContract: {
15319
16853
  capability: boolean;
15320
16854
  credential: boolean;
15321
16855
  conflict: boolean;
16856
+ need?: boolean | undefined;
15322
16857
  };
15323
16858
  conflictCauses?: ("binary" | "diverged" | "workspace")[] | undefined;
15324
16859
  unfinished?: {
@@ -15371,6 +16906,12 @@ export declare const sandboxContract: {
15371
16906
  intervalSeconds: number;
15372
16907
  deadlineAt: number;
15373
16908
  }[] | undefined;
16909
+ needs?: {
16910
+ id: string;
16911
+ kind: "capability" | "environment" | "grant" | "release" | "secret";
16912
+ title: string;
16913
+ status: "cancelled" | "declined" | "met" | "open" | "working";
16914
+ }[] | undefined;
15374
16915
  jobs?: {
15375
16916
  id: string;
15376
16917
  label: string;
@@ -15415,6 +16956,7 @@ export declare const sandboxContract: {
15415
16956
  message: string;
15416
16957
  account?: string | undefined;
15417
16958
  model?: string | undefined;
16959
+ resetsAt?: number | undefined;
15418
16960
  } | undefined;
15419
16961
  } | {
15420
16962
  from: number;
@@ -15426,19 +16968,6 @@ export declare const sandboxContract: {
15426
16968
  barren?: string[] | undefined;
15427
16969
  kind: "treeChanged";
15428
16970
  }, unknown, void>, import("@orpc/contract").AsyncIteratorClass<{
15429
- kind: "heartbeat";
15430
- rev: number;
15431
- } | {
15432
- ready: boolean;
15433
- startedAt: number;
15434
- steps: {
15435
- key: string;
15436
- label: string;
15437
- state: "done" | "failed" | "pending" | "running";
15438
- ms?: number | undefined;
15439
- }[];
15440
- kind: "boot";
15441
- } | {
15442
16971
  kind: "hello";
15443
16972
  workspaceId: string;
15444
16973
  routes?: string[] | undefined;
@@ -15455,8 +16984,18 @@ export declare const sandboxContract: {
15455
16984
  }[];
15456
16985
  } | undefined;
15457
16986
  } | {
15458
- kind: "reposChanged";
15459
- repos: string[];
16987
+ kind: "heartbeat";
16988
+ rev: number;
16989
+ } | {
16990
+ ready: boolean;
16991
+ startedAt: number;
16992
+ steps: {
16993
+ key: string;
16994
+ label: string;
16995
+ state: "done" | "failed" | "pending" | "running";
16996
+ ms?: number | undefined;
16997
+ }[];
16998
+ kind: "boot";
15460
16999
  } | {
15461
17000
  kind: "workspaceChanged";
15462
17001
  paths: string[];
@@ -15472,6 +17011,9 @@ export declare const sandboxContract: {
15472
17011
  shadows?: number | undefined;
15473
17012
  sweptAt?: string | undefined;
15474
17013
  };
17014
+ } | {
17015
+ kind: "reposChanged";
17016
+ repos: string[];
15475
17017
  } | {
15476
17018
  kind: "refsChanged";
15477
17019
  repos: string[];
@@ -15629,6 +17171,7 @@ export declare const sandboxContract: {
15629
17171
  capability: boolean;
15630
17172
  credential: boolean;
15631
17173
  conflict: boolean;
17174
+ need?: boolean | undefined;
15632
17175
  };
15633
17176
  conflictCauses?: ("binary" | "diverged" | "workspace")[] | undefined;
15634
17177
  unfinished?: {
@@ -15681,6 +17224,12 @@ export declare const sandboxContract: {
15681
17224
  intervalSeconds: number;
15682
17225
  deadlineAt: number;
15683
17226
  }[] | undefined;
17227
+ needs?: {
17228
+ id: string;
17229
+ kind: "capability" | "environment" | "grant" | "release" | "secret";
17230
+ title: string;
17231
+ status: "cancelled" | "declined" | "met" | "open" | "working";
17232
+ }[] | undefined;
15684
17233
  jobs?: {
15685
17234
  id: string;
15686
17235
  label: string;
@@ -15725,6 +17274,7 @@ export declare const sandboxContract: {
15725
17274
  message: string;
15726
17275
  account?: string | undefined;
15727
17276
  model?: string | undefined;
17277
+ resetsAt?: number | undefined;
15728
17278
  } | undefined;
15729
17279
  } | {
15730
17280
  from: number;
@@ -16017,6 +17567,7 @@ export declare const sandboxContract: {
16017
17567
  capability: z.ZodBoolean;
16018
17568
  credential: z.ZodBoolean;
16019
17569
  conflict: z.ZodBoolean;
17570
+ need: z.ZodOptional<z.ZodBoolean>;
16020
17571
  }, z.core.$strip>;
16021
17572
  conflictCauses: z.ZodOptional<z.ZodArray<z.ZodEnum<{
16022
17573
  binary: "binary";
@@ -16086,6 +17637,24 @@ export declare const sandboxContract: {
16086
17637
  intervalSeconds: z.ZodNumber;
16087
17638
  deadlineAt: z.ZodNumber;
16088
17639
  }, z.core.$strip>>>;
17640
+ needs: z.ZodOptional<z.ZodArray<z.ZodObject<{
17641
+ id: z.ZodString;
17642
+ kind: z.ZodEnum<{
17643
+ capability: "capability";
17644
+ environment: "environment";
17645
+ grant: "grant";
17646
+ release: "release";
17647
+ secret: "secret";
17648
+ }>;
17649
+ title: z.ZodString;
17650
+ status: z.ZodEnum<{
17651
+ cancelled: "cancelled";
17652
+ declined: "declined";
17653
+ met: "met";
17654
+ open: "open";
17655
+ working: "working";
17656
+ }>;
17657
+ }, z.core.$strip>>>;
16089
17658
  jobs: z.ZodOptional<z.ZodArray<z.ZodObject<{
16090
17659
  id: z.ZodString;
16091
17660
  label: z.ZodString;
@@ -16138,6 +17707,7 @@ export declare const sandboxContract: {
16138
17707
  message: z.ZodString;
16139
17708
  account: z.ZodOptional<z.ZodString>;
16140
17709
  model: z.ZodOptional<z.ZodString>;
17710
+ resetsAt: z.ZodOptional<z.ZodNumber>;
16141
17711
  }, z.core.$strip>>;
16142
17712
  }, z.core.$strip>], "kind">;
16143
17713
  }, Record<never, never>, import("./protocol/route-meta.js").RouteMeta & Record<never, never>>;
@@ -16773,6 +18343,85 @@ export declare const sandboxContract: {
16773
18343
  elapsed: z.ZodString;
16774
18344
  sent: z.ZodString;
16775
18345
  }, z.core.$strip>>;
18346
+ need: z.ZodOptional<z.ZodObject<{
18347
+ id: z.ZodString;
18348
+ conversationId: z.ZodString;
18349
+ subject: z.ZodDiscriminatedUnion<[z.ZodObject<{
18350
+ kind: z.ZodLiteral<"capability">;
18351
+ entry: z.ZodString;
18352
+ name: z.ZodString;
18353
+ mode: z.ZodEnum<{
18354
+ change: "change";
18355
+ connect: "connect";
18356
+ reconnect: "reconnect";
18357
+ }>;
18358
+ instance: z.ZodOptional<z.ZodString>;
18359
+ target: z.ZodOptional<z.ZodString>;
18360
+ prefill: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
18361
+ changes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
18362
+ reason: z.ZodOptional<z.ZodString>;
18363
+ reported: z.ZodOptional<z.ZodBoolean>;
18364
+ }, z.core.$strip>, z.ZodObject<{
18365
+ kind: z.ZodLiteral<"secret">;
18366
+ name: z.ZodString;
18367
+ where: z.ZodOptional<z.ZodString>;
18368
+ link: z.ZodOptional<z.ZodString>;
18369
+ hint: z.ZodOptional<z.ZodString>;
18370
+ replace: z.ZodOptional<z.ZodBoolean>;
18371
+ }, z.core.$strip>, z.ZodObject<{
18372
+ kind: z.ZodLiteral<"grant">;
18373
+ subject: z.ZodEnum<{
18374
+ capability: "capability";
18375
+ folder: "folder";
18376
+ shelf: "shelf";
18377
+ site: "site";
18378
+ }>;
18379
+ what: z.ZodString;
18380
+ label: z.ZodString;
18381
+ persona: z.ZodOptional<z.ZodString>;
18382
+ scope: z.ZodOptional<z.ZodEnum<{
18383
+ conversation: "conversation";
18384
+ persona: "persona";
18385
+ }>>;
18386
+ }, z.core.$strip>, z.ZodObject<{
18387
+ kind: z.ZodLiteral<"release">;
18388
+ subject: z.ZodString;
18389
+ approvers: z.ZodArray<z.ZodString>;
18390
+ }, z.core.$strip>, z.ZodObject<{
18391
+ kind: z.ZodLiteral<"environment">;
18392
+ tool: z.ZodString;
18393
+ steps: z.ZodString;
18394
+ approvedHash: z.ZodOptional<z.ZodString>;
18395
+ }, z.core.$strip>], "kind">;
18396
+ title: z.ZodString;
18397
+ why: z.ZodOptional<z.ZodString>;
18398
+ status: z.ZodEnum<{
18399
+ cancelled: "cancelled";
18400
+ declined: "declined";
18401
+ met: "met";
18402
+ open: "open";
18403
+ working: "working";
18404
+ }>;
18405
+ createdAt: z.ZodNumber;
18406
+ updatedAt: z.ZodNumber;
18407
+ answeredBy: z.ZodOptional<z.ZodString>;
18408
+ outcome: z.ZodOptional<z.ZodString>;
18409
+ told: z.ZodOptional<z.ZodEnum<{
18410
+ call: "call";
18411
+ queued: "queued";
18412
+ turn: "turn";
18413
+ }>>;
18414
+ unattended: z.ZodOptional<z.ZodBoolean>;
18415
+ }, z.core.$strip>>;
18416
+ needWake: z.ZodOptional<z.ZodObject<{
18417
+ outcome: z.ZodEnum<{
18418
+ declined: "declined";
18419
+ met: "met";
18420
+ }>;
18421
+ title: z.ZodString;
18422
+ id: z.ZodString;
18423
+ sent: z.ZodString;
18424
+ }, z.core.$strip>>;
16776
18425
  agentWords: z.ZodOptional<z.ZodObject<{
16777
18426
  kind: z.ZodEnum<{
16778
18427
  child: "child";
@@ -16978,6 +18627,28 @@ export declare const sandboxContract: {
16978
18627
  version: z.ZodOptional<z.ZodString>;
16979
18628
  channel: z.ZodOptional<z.ZodString>;
16980
18629
  }, z.core.$strip>>;
18630
+ version: z.ZodOptional<z.ZodString>;
18631
+ parked: z.ZodOptional<z.ZodBoolean>;
18632
+ probationUntil: z.ZodOptional<z.ZodNumber>;
18633
+ lastUpdate: z.ZodOptional<z.ZodObject<{
18634
+ result: z.ZodEnum<{
18635
+ kept: "kept";
18636
+ restored: "restored";
18637
+ "rolled-back": "rolled-back";
18638
+ updated: "updated";
18639
+ }>;
18640
+ verb: z.ZodOptional<z.ZodString>;
18641
+ at: z.ZodNumber;
18642
+ from: z.ZodOptional<z.ZodString>;
18643
+ to: z.ZodOptional<z.ZodString>;
18644
+ reason: z.ZodOptional<z.ZodString>;
18645
+ log: z.ZodOptional<z.ZodString>;
18646
+ keepUntil: z.ZodOptional<z.ZodNumber>;
18647
+ }, z.core.$strip>>;
18648
+ rollbackTargets: z.ZodOptional<z.ZodArray<z.ZodObject<{
18649
+ image: z.ZodString;
18650
+ version: z.ZodOptional<z.ZodString>;
18651
+ }, z.core.$strip>>>;
16981
18652
  }, z.core.$strip>>>;
16982
18653
  gap: z.ZodOptional<z.ZodEnum<{
16983
18654
  offline: "offline";
@@ -17007,6 +18678,7 @@ export declare const sandboxContract: {
17007
18678
  }>;
17008
18679
  slug: z.ZodString;
17009
18680
  hash: z.ZodOptional<z.ZodString>;
18681
+ to: z.ZodOptional<z.ZodString>;
17010
18682
  shape: z.ZodOptional<z.ZodObject<{
17011
18683
  memoryGib: z.ZodNullable<z.ZodInt>;
17012
18684
  cpus: z.ZodNullable<z.ZodInt>;