@intentic/sandbox-contract 1.316.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 (132) hide show
  1. package/dist/contracts/agent.contract.d.ts +561 -0
  2. package/dist/contracts/agent.contract.d.ts.map +1 -1
  3. package/dist/contracts/agents.contract.d.ts +402 -0
  4. package/dist/contracts/agents.contract.d.ts.map +1 -1
  5. package/dist/contracts/capabilities.contract.d.ts +16 -0
  6. package/dist/contracts/capabilities.contract.d.ts.map +1 -1
  7. package/dist/contracts/capabilities.contract.js +10 -1
  8. package/dist/contracts/capabilities.contract.js.map +1 -1
  9. package/dist/contracts/device.contract.d.ts +1 -0
  10. package/dist/contracts/device.contract.d.ts.map +1 -1
  11. package/dist/contracts/needs.contract.d.ts +532 -0
  12. package/dist/contracts/needs.contract.d.ts.map +1 -0
  13. package/dist/contracts/needs.contract.js +80 -0
  14. package/dist/contracts/needs.contract.js.map +1 -0
  15. package/dist/contracts/runner.contract.d.ts +294 -122
  16. package/dist/contracts/runner.contract.d.ts.map +1 -1
  17. package/dist/contracts/secrets.contract.d.ts +16 -0
  18. package/dist/contracts/secrets.contract.d.ts.map +1 -1
  19. package/dist/contracts/secrets.contract.js +12 -2
  20. package/dist/contracts/secrets.contract.js.map +1 -1
  21. package/dist/contracts/sessions.contract.d.ts +79 -0
  22. package/dist/contracts/sessions.contract.d.ts.map +1 -1
  23. package/dist/contracts/settings.contract.d.ts +2 -0
  24. package/dist/contracts/settings.contract.d.ts.map +1 -1
  25. package/dist/contracts/system.contract.d.ts +160 -0
  26. package/dist/contracts/system.contract.d.ts.map +1 -1
  27. package/dist/contracts/system.contract.js +11 -0
  28. package/dist/contracts/system.contract.js.map +1 -1
  29. package/dist/events/agent-events.d.ts +309 -0
  30. package/dist/events/agent-events.d.ts.map +1 -1
  31. package/dist/events/agent-events.js +2 -0
  32. package/dist/events/agent-events.js.map +1 -1
  33. package/dist/events/agent-words.d.ts.map +1 -1
  34. package/dist/events/agent-words.js +2 -1
  35. package/dist/events/agent-words.js.map +1 -1
  36. package/dist/events/need-wake.d.ts +17 -0
  37. package/dist/events/need-wake.d.ts.map +1 -0
  38. package/dist/events/need-wake.js +34 -0
  39. package/dist/events/need-wake.js.map +1 -0
  40. package/dist/events/system-events.d.ts +38 -0
  41. package/dist/events/system-events.d.ts.map +1 -1
  42. package/dist/events/transcript.d.ts +484 -0
  43. package/dist/events/transcript.d.ts.map +1 -1
  44. package/dist/events/transcript.js +9 -0
  45. package/dist/events/transcript.js.map +1 -1
  46. package/dist/index.d.ts +1826 -55
  47. package/dist/index.d.ts.map +1 -1
  48. package/dist/index.js +6 -0
  49. package/dist/index.js.map +1 -1
  50. package/dist/protocol/raw-routes.d.ts +0 -5
  51. package/dist/protocol/raw-routes.d.ts.map +1 -1
  52. package/dist/protocol/raw-routes.js +0 -1
  53. package/dist/protocol/raw-routes.js.map +1 -1
  54. package/dist/schemas/agents.d.ts +58 -0
  55. package/dist/schemas/agents.d.ts.map +1 -1
  56. package/dist/schemas/agents.js +9 -0
  57. package/dist/schemas/agents.js.map +1 -1
  58. package/dist/schemas/automations.d.ts +19 -0
  59. package/dist/schemas/automations.d.ts.map +1 -1
  60. package/dist/schemas/capabilities.d.ts +19 -0
  61. package/dist/schemas/capabilities.d.ts.map +1 -1
  62. package/dist/schemas/capabilities.js +16 -0
  63. package/dist/schemas/capabilities.js.map +1 -1
  64. package/dist/schemas/devices.d.ts +68 -0
  65. package/dist/schemas/devices.d.ts.map +1 -1
  66. package/dist/schemas/devices.js +7 -0
  67. package/dist/schemas/devices.js.map +1 -1
  68. package/dist/schemas/hosts.d.ts +2 -0
  69. package/dist/schemas/hosts.d.ts.map +1 -1
  70. package/dist/schemas/hosts.js +2 -1
  71. package/dist/schemas/hosts.js.map +1 -1
  72. package/dist/schemas/needs.d.ts +661 -0
  73. package/dist/schemas/needs.d.ts.map +1 -0
  74. package/dist/schemas/needs.js +196 -0
  75. package/dist/schemas/needs.js.map +1 -0
  76. package/dist/schemas/secrets.d.ts +18 -0
  77. package/dist/schemas/secrets.d.ts.map +1 -1
  78. package/dist/schemas/secrets.js +20 -0
  79. package/dist/schemas/secrets.js.map +1 -1
  80. package/dist/schemas/settings.d.ts +2 -0
  81. package/dist/schemas/settings.d.ts.map +1 -1
  82. package/dist/schemas/settings.js +4 -0
  83. package/dist/schemas/settings.js.map +1 -1
  84. package/dist/schemas/state-plan.d.ts +1 -0
  85. package/dist/schemas/state-plan.d.ts.map +1 -1
  86. package/dist/schemas/state-plan.js +3 -1
  87. package/dist/schemas/state-plan.js.map +1 -1
  88. package/dist/schemas/system.d.ts +20 -0
  89. package/dist/schemas/system.d.ts.map +1 -1
  90. package/dist/schemas/system.js +7 -0
  91. package/dist/schemas/system.js.map +1 -1
  92. package/dist/schemas/updates.d.ts +39 -0
  93. package/dist/schemas/updates.d.ts.map +1 -0
  94. package/dist/schemas/updates.js +31 -0
  95. package/dist/schemas/updates.js.map +1 -0
  96. package/dist/state/definition.d.ts +16 -0
  97. package/dist/state/definition.d.ts.map +1 -1
  98. package/dist/state/history-state.d.ts.map +1 -1
  99. package/dist/state/history-state.js +3 -0
  100. package/dist/state/history-state.js.map +1 -1
  101. package/dist/state/workspace-state.d.ts +4 -0
  102. package/dist/state/workspace-state.d.ts.map +1 -1
  103. package/dist/state/workspace-state.js +1 -0
  104. package/dist/state/workspace-state.js.map +1 -1
  105. package/dist/text/transcript-fold.d.ts.map +1 -1
  106. package/dist/text/transcript-fold.js +3 -0
  107. package/dist/text/transcript-fold.js.map +1 -1
  108. package/package.json +5 -5
  109. package/src/contracts/capabilities.contract.ts +14 -1
  110. package/src/contracts/needs.contract.ts +103 -0
  111. package/src/contracts/secrets.contract.ts +17 -3
  112. package/src/contracts/system.contract.ts +14 -0
  113. package/src/events/agent-events.ts +4 -0
  114. package/src/events/agent-words.ts +2 -1
  115. package/src/events/need-wake.test.ts +55 -0
  116. package/src/events/need-wake.ts +71 -0
  117. package/src/events/transcript.ts +16 -0
  118. package/src/index.ts +6 -0
  119. package/src/protocol/raw-routes.ts +1 -2
  120. package/src/schemas/agents.ts +14 -1
  121. package/src/schemas/capabilities.ts +28 -0
  122. package/src/schemas/devices.ts +17 -0
  123. package/src/schemas/hosts.ts +4 -1
  124. package/src/schemas/needs.ts +292 -0
  125. package/src/schemas/secrets.ts +23 -0
  126. package/src/schemas/settings.ts +8 -0
  127. package/src/schemas/state-plan.ts +8 -1
  128. package/src/schemas/system.ts +15 -0
  129. package/src/schemas/updates.ts +56 -0
  130. package/src/state/history-state.ts +5 -0
  131. package/src/state/workspace-state.ts +4 -0
  132. package/src/text/transcript-fold.ts +4 -0
package/dist/index.d.ts CHANGED
@@ -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";
@@ -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";
@@ -3368,6 +3933,7 @@ export declare const sandboxContract: {
3368
3933
  capability: z.ZodBoolean;
3369
3934
  credential: z.ZodBoolean;
3370
3935
  conflict: z.ZodBoolean;
3936
+ need: z.ZodOptional<z.ZodBoolean>;
3371
3937
  }, z.core.$strip>;
3372
3938
  conflictCauses: z.ZodOptional<z.ZodArray<z.ZodEnum<{
3373
3939
  binary: "binary";
@@ -3437,6 +4003,24 @@ export declare const sandboxContract: {
3437
4003
  intervalSeconds: z.ZodNumber;
3438
4004
  deadlineAt: z.ZodNumber;
3439
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>>>;
3440
4024
  jobs: z.ZodOptional<z.ZodArray<z.ZodObject<{
3441
4025
  id: z.ZodString;
3442
4026
  label: z.ZodString;
@@ -3663,6 +4247,7 @@ export declare const sandboxContract: {
3663
4247
  capability: z.ZodBoolean;
3664
4248
  credential: z.ZodBoolean;
3665
4249
  conflict: z.ZodBoolean;
4250
+ need: z.ZodOptional<z.ZodBoolean>;
3666
4251
  }, z.core.$strip>;
3667
4252
  conflictCauses: z.ZodOptional<z.ZodArray<z.ZodEnum<{
3668
4253
  binary: "binary";
@@ -3732,6 +4317,24 @@ export declare const sandboxContract: {
3732
4317
  intervalSeconds: z.ZodNumber;
3733
4318
  deadlineAt: z.ZodNumber;
3734
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>>>;
3735
4338
  jobs: z.ZodOptional<z.ZodArray<z.ZodObject<{
3736
4339
  id: z.ZodString;
3737
4340
  label: z.ZodString;
@@ -3976,6 +4579,7 @@ export declare const sandboxContract: {
3976
4579
  capability: z.ZodBoolean;
3977
4580
  credential: z.ZodBoolean;
3978
4581
  conflict: z.ZodBoolean;
4582
+ need: z.ZodOptional<z.ZodBoolean>;
3979
4583
  }, z.core.$strip>;
3980
4584
  conflictCauses: z.ZodOptional<z.ZodArray<z.ZodEnum<{
3981
4585
  binary: "binary";
@@ -4045,6 +4649,24 @@ export declare const sandboxContract: {
4045
4649
  intervalSeconds: z.ZodNumber;
4046
4650
  deadlineAt: z.ZodNumber;
4047
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>>>;
4048
4670
  jobs: z.ZodOptional<z.ZodArray<z.ZodObject<{
4049
4671
  id: z.ZodString;
4050
4672
  label: z.ZodString;
@@ -4336,19 +4958,98 @@ export declare const sandboxContract: {
4336
4958
  elapsed: z.ZodString;
4337
4959
  sent: z.ZodString;
4338
4960
  }, z.core.$strip>>;
4339
- agentWords: z.ZodOptional<z.ZodObject<{
4340
- kind: z.ZodEnum<{
4341
- child: "child";
4342
- peer: "peer";
4343
- }>;
4344
- from: z.ZodString;
4345
- title: z.ZodOptional<z.ZodString>;
4346
- failed: z.ZodOptional<z.ZodBoolean>;
4347
- sent: z.ZodString;
4348
- }, z.core.$strip>>;
4349
- backgroundJob: z.ZodOptional<z.ZodObject<{
4961
+ need: z.ZodOptional<z.ZodObject<{
4350
4962
  id: z.ZodString;
4351
- label: 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<{
5051
+ id: z.ZodString;
5052
+ label: z.ZodString;
4352
5053
  command: z.ZodString;
4353
5054
  startedAt: z.ZodNumber;
4354
5055
  }, z.core.$strip>>;
@@ -4656,6 +5357,7 @@ export declare const sandboxContract: {
4656
5357
  capability: z.ZodBoolean;
4657
5358
  credential: z.ZodBoolean;
4658
5359
  conflict: z.ZodBoolean;
5360
+ need: z.ZodOptional<z.ZodBoolean>;
4659
5361
  }, z.core.$strip>;
4660
5362
  conflictCauses: z.ZodOptional<z.ZodArray<z.ZodEnum<{
4661
5363
  binary: "binary";
@@ -4725,6 +5427,24 @@ export declare const sandboxContract: {
4725
5427
  intervalSeconds: z.ZodNumber;
4726
5428
  deadlineAt: z.ZodNumber;
4727
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>>>;
4728
5448
  jobs: z.ZodOptional<z.ZodArray<z.ZodObject<{
4729
5449
  id: z.ZodString;
4730
5450
  label: z.ZodString;
@@ -4933,6 +5653,7 @@ export declare const sandboxContract: {
4933
5653
  capability: z.ZodBoolean;
4934
5654
  credential: z.ZodBoolean;
4935
5655
  conflict: z.ZodBoolean;
5656
+ need: z.ZodOptional<z.ZodBoolean>;
4936
5657
  }, z.core.$strip>;
4937
5658
  conflictCauses: z.ZodOptional<z.ZodArray<z.ZodEnum<{
4938
5659
  binary: "binary";
@@ -5002,6 +5723,24 @@ export declare const sandboxContract: {
5002
5723
  intervalSeconds: z.ZodNumber;
5003
5724
  deadlineAt: z.ZodNumber;
5004
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>>>;
5005
5744
  jobs: z.ZodOptional<z.ZodArray<z.ZodObject<{
5006
5745
  id: z.ZodString;
5007
5746
  label: z.ZodString;
@@ -5220,6 +5959,7 @@ export declare const sandboxContract: {
5220
5959
  capability: z.ZodBoolean;
5221
5960
  credential: z.ZodBoolean;
5222
5961
  conflict: z.ZodBoolean;
5962
+ need: z.ZodOptional<z.ZodBoolean>;
5223
5963
  }, z.core.$strip>;
5224
5964
  conflictCauses: z.ZodOptional<z.ZodArray<z.ZodEnum<{
5225
5965
  binary: "binary";
@@ -5289,6 +6029,24 @@ export declare const sandboxContract: {
5289
6029
  intervalSeconds: z.ZodNumber;
5290
6030
  deadlineAt: z.ZodNumber;
5291
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>>>;
5292
6050
  jobs: z.ZodOptional<z.ZodArray<z.ZodObject<{
5293
6051
  id: z.ZodString;
5294
6052
  label: z.ZodString;
@@ -5497,6 +6255,7 @@ export declare const sandboxContract: {
5497
6255
  capability: z.ZodBoolean;
5498
6256
  credential: z.ZodBoolean;
5499
6257
  conflict: z.ZodBoolean;
6258
+ need: z.ZodOptional<z.ZodBoolean>;
5500
6259
  }, z.core.$strip>;
5501
6260
  conflictCauses: z.ZodOptional<z.ZodArray<z.ZodEnum<{
5502
6261
  binary: "binary";
@@ -5566,6 +6325,24 @@ export declare const sandboxContract: {
5566
6325
  intervalSeconds: z.ZodNumber;
5567
6326
  deadlineAt: z.ZodNumber;
5568
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>>>;
5569
6346
  jobs: z.ZodOptional<z.ZodArray<z.ZodObject<{
5570
6347
  id: z.ZodString;
5571
6348
  label: z.ZodString;
@@ -5773,6 +6550,7 @@ export declare const sandboxContract: {
5773
6550
  capability: z.ZodBoolean;
5774
6551
  credential: z.ZodBoolean;
5775
6552
  conflict: z.ZodBoolean;
6553
+ need: z.ZodOptional<z.ZodBoolean>;
5776
6554
  }, z.core.$strip>;
5777
6555
  conflictCauses: z.ZodOptional<z.ZodArray<z.ZodEnum<{
5778
6556
  binary: "binary";
@@ -5842,6 +6620,24 @@ export declare const sandboxContract: {
5842
6620
  intervalSeconds: z.ZodNumber;
5843
6621
  deadlineAt: z.ZodNumber;
5844
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>>>;
5845
6641
  jobs: z.ZodOptional<z.ZodArray<z.ZodObject<{
5846
6642
  id: z.ZodString;
5847
6643
  label: z.ZodString;
@@ -6050,6 +6846,7 @@ export declare const sandboxContract: {
6050
6846
  capability: z.ZodBoolean;
6051
6847
  credential: z.ZodBoolean;
6052
6848
  conflict: z.ZodBoolean;
6849
+ need: z.ZodOptional<z.ZodBoolean>;
6053
6850
  }, z.core.$strip>;
6054
6851
  conflictCauses: z.ZodOptional<z.ZodArray<z.ZodEnum<{
6055
6852
  binary: "binary";
@@ -6119,6 +6916,24 @@ export declare const sandboxContract: {
6119
6916
  intervalSeconds: z.ZodNumber;
6120
6917
  deadlineAt: z.ZodNumber;
6121
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>>>;
6122
6937
  jobs: z.ZodOptional<z.ZodArray<z.ZodObject<{
6123
6938
  id: z.ZodString;
6124
6939
  label: z.ZodString;
@@ -6327,6 +7142,7 @@ export declare const sandboxContract: {
6327
7142
  capability: z.ZodBoolean;
6328
7143
  credential: z.ZodBoolean;
6329
7144
  conflict: z.ZodBoolean;
7145
+ need: z.ZodOptional<z.ZodBoolean>;
6330
7146
  }, z.core.$strip>;
6331
7147
  conflictCauses: z.ZodOptional<z.ZodArray<z.ZodEnum<{
6332
7148
  binary: "binary";
@@ -6396,6 +7212,24 @@ export declare const sandboxContract: {
6396
7212
  intervalSeconds: z.ZodNumber;
6397
7213
  deadlineAt: z.ZodNumber;
6398
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>>>;
6399
7233
  jobs: z.ZodOptional<z.ZodArray<z.ZodObject<{
6400
7234
  id: z.ZodString;
6401
7235
  label: z.ZodString;
@@ -6604,6 +7438,7 @@ export declare const sandboxContract: {
6604
7438
  capability: z.ZodBoolean;
6605
7439
  credential: z.ZodBoolean;
6606
7440
  conflict: z.ZodBoolean;
7441
+ need: z.ZodOptional<z.ZodBoolean>;
6607
7442
  }, z.core.$strip>;
6608
7443
  conflictCauses: z.ZodOptional<z.ZodArray<z.ZodEnum<{
6609
7444
  binary: "binary";
@@ -6673,6 +7508,24 @@ export declare const sandboxContract: {
6673
7508
  intervalSeconds: z.ZodNumber;
6674
7509
  deadlineAt: z.ZodNumber;
6675
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>>>;
6676
7529
  jobs: z.ZodOptional<z.ZodArray<z.ZodObject<{
6677
7530
  id: z.ZodString;
6678
7531
  label: z.ZodString;
@@ -6879,6 +7732,7 @@ export declare const sandboxContract: {
6879
7732
  capability: z.ZodBoolean;
6880
7733
  credential: z.ZodBoolean;
6881
7734
  conflict: z.ZodBoolean;
7735
+ need: z.ZodOptional<z.ZodBoolean>;
6882
7736
  }, z.core.$strip>;
6883
7737
  conflictCauses: z.ZodOptional<z.ZodArray<z.ZodEnum<{
6884
7738
  binary: "binary";
@@ -6948,6 +7802,24 @@ export declare const sandboxContract: {
6948
7802
  intervalSeconds: z.ZodNumber;
6949
7803
  deadlineAt: z.ZodNumber;
6950
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>>>;
6951
7823
  jobs: z.ZodOptional<z.ZodArray<z.ZodObject<{
6952
7824
  id: z.ZodString;
6953
7825
  label: z.ZodString;
@@ -7377,6 +8249,7 @@ export declare const sandboxContract: {
7377
8249
  capability: z.ZodBoolean;
7378
8250
  credential: z.ZodBoolean;
7379
8251
  conflict: z.ZodBoolean;
8252
+ need: z.ZodOptional<z.ZodBoolean>;
7380
8253
  }, z.core.$strip>;
7381
8254
  conflictCauses: z.ZodOptional<z.ZodArray<z.ZodEnum<{
7382
8255
  binary: "binary";
@@ -7446,6 +8319,24 @@ export declare const sandboxContract: {
7446
8319
  intervalSeconds: z.ZodNumber;
7447
8320
  deadlineAt: z.ZodNumber;
7448
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>>>;
7449
8340
  jobs: z.ZodOptional<z.ZodArray<z.ZodObject<{
7450
8341
  id: z.ZodString;
7451
8342
  label: z.ZodString;
@@ -7654,6 +8545,7 @@ export declare const sandboxContract: {
7654
8545
  capability: z.ZodBoolean;
7655
8546
  credential: z.ZodBoolean;
7656
8547
  conflict: z.ZodBoolean;
8548
+ need: z.ZodOptional<z.ZodBoolean>;
7657
8549
  }, z.core.$strip>;
7658
8550
  conflictCauses: z.ZodOptional<z.ZodArray<z.ZodEnum<{
7659
8551
  binary: "binary";
@@ -7723,6 +8615,24 @@ export declare const sandboxContract: {
7723
8615
  intervalSeconds: z.ZodNumber;
7724
8616
  deadlineAt: z.ZodNumber;
7725
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>>>;
7726
8636
  jobs: z.ZodOptional<z.ZodArray<z.ZodObject<{
7727
8637
  id: z.ZodString;
7728
8638
  label: z.ZodString;
@@ -7932,6 +8842,7 @@ export declare const sandboxContract: {
7932
8842
  capability: z.ZodBoolean;
7933
8843
  credential: z.ZodBoolean;
7934
8844
  conflict: z.ZodBoolean;
8845
+ need: z.ZodOptional<z.ZodBoolean>;
7935
8846
  }, z.core.$strip>;
7936
8847
  conflictCauses: z.ZodOptional<z.ZodArray<z.ZodEnum<{
7937
8848
  binary: "binary";
@@ -8001,6 +8912,24 @@ export declare const sandboxContract: {
8001
8912
  intervalSeconds: z.ZodNumber;
8002
8913
  deadlineAt: z.ZodNumber;
8003
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>>>;
8004
8933
  jobs: z.ZodOptional<z.ZodArray<z.ZodObject<{
8005
8934
  id: z.ZodString;
8006
8935
  label: z.ZodString;
@@ -8214,6 +9143,7 @@ export declare const sandboxContract: {
8214
9143
  capability: z.ZodBoolean;
8215
9144
  credential: z.ZodBoolean;
8216
9145
  conflict: z.ZodBoolean;
9146
+ need: z.ZodOptional<z.ZodBoolean>;
8217
9147
  }, z.core.$strip>;
8218
9148
  conflictCauses: z.ZodOptional<z.ZodArray<z.ZodEnum<{
8219
9149
  binary: "binary";
@@ -8283,6 +9213,24 @@ export declare const sandboxContract: {
8283
9213
  intervalSeconds: z.ZodNumber;
8284
9214
  deadlineAt: z.ZodNumber;
8285
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>>>;
8286
9234
  jobs: z.ZodOptional<z.ZodArray<z.ZodObject<{
8287
9235
  id: z.ZodString;
8288
9236
  label: z.ZodString;
@@ -8497,6 +9445,7 @@ export declare const sandboxContract: {
8497
9445
  capability: z.ZodBoolean;
8498
9446
  credential: z.ZodBoolean;
8499
9447
  conflict: z.ZodBoolean;
9448
+ need: z.ZodOptional<z.ZodBoolean>;
8500
9449
  }, z.core.$strip>;
8501
9450
  conflictCauses: z.ZodOptional<z.ZodArray<z.ZodEnum<{
8502
9451
  binary: "binary";
@@ -8566,6 +9515,24 @@ export declare const sandboxContract: {
8566
9515
  intervalSeconds: z.ZodNumber;
8567
9516
  deadlineAt: z.ZodNumber;
8568
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>>>;
8569
9536
  jobs: z.ZodOptional<z.ZodArray<z.ZodObject<{
8570
9537
  id: z.ZodString;
8571
9538
  label: z.ZodString;
@@ -9219,6 +10186,12 @@ export declare const sandboxContract: {
9219
10186
  port: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
9220
10187
  user: z.ZodString;
9221
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;
9222
10195
  }, z.core.$strip>, z.ZodObject<{
9223
10196
  auth: z.ZodLiteral<"password">;
9224
10197
  host: z.ZodString;
@@ -9552,6 +10525,12 @@ export declare const sandboxContract: {
9552
10525
  port: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
9553
10526
  user: z.ZodString;
9554
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;
9555
10534
  }, z.core.$strip>, z.ZodObject<{
9556
10535
  auth: z.ZodLiteral<"password">;
9557
10536
  host: z.ZodString;
@@ -9831,6 +10810,10 @@ export declare const sandboxContract: {
9831
10810
  message: z.ZodString;
9832
10811
  who: z.ZodOptional<z.ZodString>;
9833
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>>;
9834
10817
  remove: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
9835
10818
  id: z.ZodString;
9836
10819
  }, z.core.$strip>, z.ZodObject<{
@@ -11937,6 +12920,85 @@ export declare const sandboxContract: {
11937
12920
  elapsed: z.ZodString;
11938
12921
  sent: z.ZodString;
11939
12922
  }, z.core.$strip>>;
12923
+ need: z.ZodOptional<z.ZodObject<{
12924
+ id: z.ZodString;
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<{
12951
+ capability: "capability";
12952
+ folder: "folder";
12953
+ shelf: "shelf";
12954
+ site: "site";
12955
+ }>;
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>>;
11940
13002
  agentWords: z.ZodOptional<z.ZodObject<{
11941
13003
  kind: z.ZodEnum<{
11942
13004
  child: "child";
@@ -12071,6 +13133,7 @@ export declare const sandboxContract: {
12071
13133
  offload: z.ZodDefault<z.ZodObject<{
12072
13134
  commands: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
12073
13135
  }, z.core.$strip>>;
13136
+ continueWhenNeedMet: z.ZodDefault<z.ZodBoolean>;
12074
13137
  autoResumeOnRestart: z.ZodDefault<z.ZodBoolean>;
12075
13138
  adoptedChecks: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
12076
13139
  rules: z.ZodDefault<z.ZodArray<z.ZodObject<{
@@ -12240,6 +13303,7 @@ export declare const sandboxContract: {
12240
13303
  offload: z.ZodDefault<z.ZodObject<{
12241
13304
  commands: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
12242
13305
  }, z.core.$strip>>;
13306
+ continueWhenNeedMet: z.ZodDefault<z.ZodBoolean>;
12243
13307
  autoResumeOnRestart: z.ZodDefault<z.ZodBoolean>;
12244
13308
  adoptedChecks: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
12245
13309
  rules: z.ZodDefault<z.ZodArray<z.ZodObject<{
@@ -14823,19 +15887,566 @@ export declare const sandboxContract: {
14823
15887
  delivered: z.ZodNumber;
14824
15888
  }, z.core.$strip>, Record<never, never>, import("./protocol/route-meta.js").RouteMeta & Record<never, never>>;
14825
15889
  };
14826
- secrets: {
14827
- set: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
14828
- key: z.ZodString;
14829
- value: z.ZodString;
14830
- }, z.core.$strip>, z.ZodObject<{
14831
- ok: z.ZodLiteral<true>;
14832
- }, z.core.$strip>, Record<never, never>, import("./protocol/route-meta.js").RouteMeta & Record<never, never>>;
14833
- list: import("@orpc/contract").ContractProcedureBuilderWithOutput<import("@orpc/contract").Schema<unknown, unknown>, z.ZodObject<{
14834
- keys: z.ZodArray<z.ZodString>;
14835
- }, z.core.$strip>, Record<never, never>, import("./protocol/route-meta.js").RouteMeta & Record<never, never>>;
14836
- remove: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
14837
- key: z.ZodString;
14838
- }, z.core.$strip>, z.ZodObject<{
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<{
15908
+ capability: "capability";
15909
+ folder: "folder";
15910
+ shelf: "shelf";
15911
+ site: "site";
15912
+ }>;
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";
15942
+ }>;
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";
15963
+ }>;
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";
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>;
16000
+ }, z.core.$strip>>;
16001
+ code: z.ZodOptional<z.ZodString>;
16002
+ }, z.core.$strip>, Record<never, never>, import("./protocol/route-meta.js").RouteMeta & Record<never, never>>;
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<{
14839
16450
  ok: z.ZodLiteral<true>;
14840
16451
  }, z.core.$strip>, Record<never, never>, import("./protocol/route-meta.js").RouteMeta & Record<never, never>>;
14841
16452
  inventory: import("@orpc/contract").ContractProcedureBuilderWithOutput<import("@orpc/contract").Schema<unknown, unknown>, z.ZodObject<{
@@ -14979,6 +16590,31 @@ export declare const sandboxContract: {
14979
16590
  ok: z.ZodBoolean;
14980
16591
  }, z.core.$strip>>;
14981
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>;
14982
16618
  }, z.core.$strip>, Record<never, never>, import("./protocol/route-meta.js").RouteMeta & Record<never, never>>;
14983
16619
  manifestProblems: import("@orpc/contract").ContractProcedureBuilderWithOutput<import("@orpc/contract").Schema<unknown, unknown>, z.ZodArray<z.ZodObject<{
14984
16620
  path: z.ZodString;
@@ -15014,19 +16650,6 @@ export declare const sandboxContract: {
15014
16650
  events: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
15015
16651
  clientId: z.ZodOptional<z.ZodString>;
15016
16652
  }, z.core.$strip>, import("@orpc/contract").Schema<AsyncIteratorObject<{
15017
- kind: "heartbeat";
15018
- rev: number;
15019
- } | {
15020
- ready: boolean;
15021
- startedAt: number;
15022
- steps: {
15023
- key: string;
15024
- label: string;
15025
- state: "done" | "failed" | "pending" | "running";
15026
- ms?: number | undefined;
15027
- }[];
15028
- kind: "boot";
15029
- } | {
15030
16653
  kind: "hello";
15031
16654
  workspaceId: string;
15032
16655
  routes?: string[] | undefined;
@@ -15043,8 +16666,18 @@ export declare const sandboxContract: {
15043
16666
  }[];
15044
16667
  } | undefined;
15045
16668
  } | {
15046
- kind: "reposChanged";
15047
- 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";
15048
16681
  } | {
15049
16682
  kind: "workspaceChanged";
15050
16683
  paths: string[];
@@ -15060,6 +16693,9 @@ export declare const sandboxContract: {
15060
16693
  shadows?: number | undefined;
15061
16694
  sweptAt?: string | undefined;
15062
16695
  };
16696
+ } | {
16697
+ kind: "reposChanged";
16698
+ repos: string[];
15063
16699
  } | {
15064
16700
  kind: "refsChanged";
15065
16701
  repos: string[];
@@ -15217,6 +16853,7 @@ export declare const sandboxContract: {
15217
16853
  capability: boolean;
15218
16854
  credential: boolean;
15219
16855
  conflict: boolean;
16856
+ need?: boolean | undefined;
15220
16857
  };
15221
16858
  conflictCauses?: ("binary" | "diverged" | "workspace")[] | undefined;
15222
16859
  unfinished?: {
@@ -15269,6 +16906,12 @@ export declare const sandboxContract: {
15269
16906
  intervalSeconds: number;
15270
16907
  deadlineAt: number;
15271
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;
15272
16915
  jobs?: {
15273
16916
  id: string;
15274
16917
  label: string;
@@ -15325,19 +16968,6 @@ export declare const sandboxContract: {
15325
16968
  barren?: string[] | undefined;
15326
16969
  kind: "treeChanged";
15327
16970
  }, unknown, void>, import("@orpc/contract").AsyncIteratorClass<{
15328
- kind: "heartbeat";
15329
- rev: number;
15330
- } | {
15331
- ready: boolean;
15332
- startedAt: number;
15333
- steps: {
15334
- key: string;
15335
- label: string;
15336
- state: "done" | "failed" | "pending" | "running";
15337
- ms?: number | undefined;
15338
- }[];
15339
- kind: "boot";
15340
- } | {
15341
16971
  kind: "hello";
15342
16972
  workspaceId: string;
15343
16973
  routes?: string[] | undefined;
@@ -15354,8 +16984,18 @@ export declare const sandboxContract: {
15354
16984
  }[];
15355
16985
  } | undefined;
15356
16986
  } | {
15357
- kind: "reposChanged";
15358
- 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";
15359
16999
  } | {
15360
17000
  kind: "workspaceChanged";
15361
17001
  paths: string[];
@@ -15371,6 +17011,9 @@ export declare const sandboxContract: {
15371
17011
  shadows?: number | undefined;
15372
17012
  sweptAt?: string | undefined;
15373
17013
  };
17014
+ } | {
17015
+ kind: "reposChanged";
17016
+ repos: string[];
15374
17017
  } | {
15375
17018
  kind: "refsChanged";
15376
17019
  repos: string[];
@@ -15528,6 +17171,7 @@ export declare const sandboxContract: {
15528
17171
  capability: boolean;
15529
17172
  credential: boolean;
15530
17173
  conflict: boolean;
17174
+ need?: boolean | undefined;
15531
17175
  };
15532
17176
  conflictCauses?: ("binary" | "diverged" | "workspace")[] | undefined;
15533
17177
  unfinished?: {
@@ -15580,6 +17224,12 @@ export declare const sandboxContract: {
15580
17224
  intervalSeconds: number;
15581
17225
  deadlineAt: number;
15582
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;
15583
17233
  jobs?: {
15584
17234
  id: string;
15585
17235
  label: string;
@@ -15917,6 +17567,7 @@ export declare const sandboxContract: {
15917
17567
  capability: z.ZodBoolean;
15918
17568
  credential: z.ZodBoolean;
15919
17569
  conflict: z.ZodBoolean;
17570
+ need: z.ZodOptional<z.ZodBoolean>;
15920
17571
  }, z.core.$strip>;
15921
17572
  conflictCauses: z.ZodOptional<z.ZodArray<z.ZodEnum<{
15922
17573
  binary: "binary";
@@ -15986,6 +17637,24 @@ export declare const sandboxContract: {
15986
17637
  intervalSeconds: z.ZodNumber;
15987
17638
  deadlineAt: z.ZodNumber;
15988
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>>>;
15989
17658
  jobs: z.ZodOptional<z.ZodArray<z.ZodObject<{
15990
17659
  id: z.ZodString;
15991
17660
  label: z.ZodString;
@@ -16674,6 +18343,85 @@ export declare const sandboxContract: {
16674
18343
  elapsed: z.ZodString;
16675
18344
  sent: z.ZodString;
16676
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>>;
16677
18425
  agentWords: z.ZodOptional<z.ZodObject<{
16678
18426
  kind: z.ZodEnum<{
16679
18427
  child: "child";
@@ -16879,6 +18627,28 @@ export declare const sandboxContract: {
16879
18627
  version: z.ZodOptional<z.ZodString>;
16880
18628
  channel: z.ZodOptional<z.ZodString>;
16881
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>>>;
16882
18652
  }, z.core.$strip>>>;
16883
18653
  gap: z.ZodOptional<z.ZodEnum<{
16884
18654
  offline: "offline";
@@ -16908,6 +18678,7 @@ export declare const sandboxContract: {
16908
18678
  }>;
16909
18679
  slug: z.ZodString;
16910
18680
  hash: z.ZodOptional<z.ZodString>;
18681
+ to: z.ZodOptional<z.ZodString>;
16911
18682
  shape: z.ZodOptional<z.ZodObject<{
16912
18683
  memoryGib: z.ZodNullable<z.ZodInt>;
16913
18684
  cpus: z.ZodNullable<z.ZodInt>;