@mutagent/sdk 0.3.41 → 0.3.42

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 (244) hide show
  1. package/README.md +14 -8
  2. package/dist/commonjs/funcs/sandbox-get-api-sandbox-by-id-checkpoints.d.ts +18 -0
  3. package/dist/commonjs/funcs/sandbox-get-api-sandbox-by-id-checkpoints.d.ts.map +1 -0
  4. package/dist/commonjs/funcs/sandbox-get-api-sandbox-by-id-checkpoints.js +124 -0
  5. package/dist/commonjs/funcs/sandbox-get-api-sandbox-by-id-checkpoints.js.map +1 -0
  6. package/dist/commonjs/funcs/sandbox-get-api-sandbox-by-id-stream.d.ts +1 -1
  7. package/dist/commonjs/funcs/sandbox-get-api-sandbox-by-id-stream.js +1 -1
  8. package/dist/commonjs/funcs/sandbox-post-api-sandbox-by-id-checkpoint.d.ts +18 -0
  9. package/dist/commonjs/funcs/sandbox-post-api-sandbox-by-id-checkpoint.d.ts.map +1 -0
  10. package/dist/commonjs/funcs/sandbox-post-api-sandbox-by-id-checkpoint.js +125 -0
  11. package/dist/commonjs/funcs/sandbox-post-api-sandbox-by-id-checkpoint.js.map +1 -0
  12. package/dist/commonjs/funcs/sandbox-post-api-sandbox-by-id-restore.d.ts +18 -0
  13. package/dist/commonjs/funcs/sandbox-post-api-sandbox-by-id-restore.d.ts.map +1 -0
  14. package/dist/commonjs/funcs/sandbox-post-api-sandbox-by-id-restore.js +125 -0
  15. package/dist/commonjs/funcs/sandbox-post-api-sandbox-by-id-restore.js.map +1 -0
  16. package/dist/commonjs/lib/config.d.ts +2 -2
  17. package/dist/commonjs/lib/config.js +2 -2
  18. package/dist/commonjs/models/definition-provider.d.ts +35 -0
  19. package/dist/commonjs/models/definition-provider.d.ts.map +1 -1
  20. package/dist/commonjs/models/definition-provider.js +21 -1
  21. package/dist/commonjs/models/definition-provider.js.map +1 -1
  22. package/dist/commonjs/models/index.d.ts +5 -3
  23. package/dist/commonjs/models/index.d.ts.map +1 -1
  24. package/dist/commonjs/models/index.js +5 -3
  25. package/dist/commonjs/models/index.js.map +1 -1
  26. package/dist/commonjs/models/mode-arm-args.d.ts +62 -0
  27. package/dist/commonjs/models/mode-arm-args.d.ts.map +1 -0
  28. package/dist/commonjs/models/mode-arm-args.js +64 -0
  29. package/dist/commonjs/models/mode-arm-args.js.map +1 -0
  30. package/dist/commonjs/models/name-image-arch.d.ts +35 -0
  31. package/dist/commonjs/models/name-image-arch.d.ts.map +1 -1
  32. package/dist/commonjs/models/name-image-arch.js +21 -1
  33. package/dist/commonjs/models/name-image-arch.js.map +1 -1
  34. package/dist/commonjs/models/operations/get-api-sandbox-by-id-checkpoints.d.ts +38 -0
  35. package/dist/commonjs/models/operations/get-api-sandbox-by-id-checkpoints.d.ts.map +1 -0
  36. package/dist/commonjs/models/operations/get-api-sandbox-by-id-checkpoints.js +74 -0
  37. package/dist/commonjs/models/operations/get-api-sandbox-by-id-checkpoints.js.map +1 -0
  38. package/dist/commonjs/models/operations/get-api-sandbox-by-id.d.ts +1 -1
  39. package/dist/commonjs/models/operations/get-api-sandbox-by-id.js +1 -1
  40. package/dist/commonjs/models/operations/get-api-sandbox.d.ts +1 -1
  41. package/dist/commonjs/models/operations/get-api-sandbox.js +1 -1
  42. package/dist/commonjs/models/operations/index.d.ts +3 -0
  43. package/dist/commonjs/models/operations/index.d.ts.map +1 -1
  44. package/dist/commonjs/models/operations/index.js +3 -0
  45. package/dist/commonjs/models/operations/index.js.map +1 -1
  46. package/dist/commonjs/models/operations/post-api-sandbox-by-id-checkpoint.d.ts +83 -0
  47. package/dist/commonjs/models/operations/post-api-sandbox-by-id-checkpoint.d.ts.map +1 -0
  48. package/dist/commonjs/models/operations/post-api-sandbox-by-id-checkpoint.js +77 -0
  49. package/dist/commonjs/models/operations/post-api-sandbox-by-id-checkpoint.js.map +1 -0
  50. package/dist/commonjs/models/operations/post-api-sandbox-by-id-restore.d.ts +151 -0
  51. package/dist/commonjs/models/operations/post-api-sandbox-by-id-restore.d.ts.map +1 -0
  52. package/dist/commonjs/models/operations/post-api-sandbox-by-id-restore.js +121 -0
  53. package/dist/commonjs/models/operations/post-api-sandbox-by-id-restore.js.map +1 -0
  54. package/dist/commonjs/models/operations/post-api-sandbox-by-id-session.d.ts +7 -3
  55. package/dist/commonjs/models/operations/post-api-sandbox-by-id-session.d.ts.map +1 -1
  56. package/dist/commonjs/models/operations/post-api-sandbox-by-id-session.js +3 -2
  57. package/dist/commonjs/models/operations/post-api-sandbox-by-id-session.js.map +1 -1
  58. package/dist/commonjs/models/operations/post-api-sandbox.d.ts +1 -1
  59. package/dist/commonjs/models/operations/post-api-sandbox.js +1 -1
  60. package/dist/commonjs/models/operations/update-organization-member.d.ts +1 -1
  61. package/dist/commonjs/models/operations/update-organization-member.js +1 -1
  62. package/dist/commonjs/models/operations/update-workspace-member.d.ts +1 -1
  63. package/dist/commonjs/models/operations/update-workspace-member.d.ts.map +1 -1
  64. package/dist/commonjs/models/operations/update-workspace-member.js +1 -1
  65. package/dist/commonjs/models/operations/update-workspace-member.js.map +1 -1
  66. package/dist/commonjs/models/preset-timeout-ms-keep2.d.ts +10 -0
  67. package/dist/commonjs/models/preset-timeout-ms-keep2.d.ts.map +1 -1
  68. package/dist/commonjs/models/preset-timeout-ms-keep2.js +2 -0
  69. package/dist/commonjs/models/preset-timeout-ms-keep2.js.map +1 -1
  70. package/dist/commonjs/models/schemadefaul11.d.ts +9 -0
  71. package/dist/commonjs/models/schemadefaul11.d.ts.map +1 -0
  72. package/dist/commonjs/models/{schemadefaul8.js → schemadefaul11.js} +9 -9
  73. package/dist/commonjs/models/schemadefaul11.js.map +1 -0
  74. package/dist/commonjs/models/schemadefaul5.d.ts +7 -4
  75. package/dist/commonjs/models/schemadefaul5.d.ts.map +1 -1
  76. package/dist/commonjs/models/schemadefaul5.js +8 -5
  77. package/dist/commonjs/models/schemadefaul5.js.map +1 -1
  78. package/dist/commonjs/models/schemadefaul6.d.ts +7 -5
  79. package/dist/commonjs/models/schemadefaul6.d.ts.map +1 -1
  80. package/dist/commonjs/models/schemadefaul6.js +7 -7
  81. package/dist/commonjs/models/schemadefaul6.js.map +1 -1
  82. package/dist/commonjs/models/schemadefaul7.d.ts +13 -0
  83. package/dist/commonjs/models/schemadefaul7.d.ts.map +1 -0
  84. package/dist/commonjs/models/{schemadefaul4.js → schemadefaul7.js} +11 -13
  85. package/dist/commonjs/models/schemadefaul7.js.map +1 -0
  86. package/dist/commonjs/models/schemadefaul9.d.ts +10 -0
  87. package/dist/commonjs/models/schemadefaul9.d.ts.map +1 -0
  88. package/dist/commonjs/models/{mode-args-env.js → schemadefaul9.js} +10 -13
  89. package/dist/commonjs/models/schemadefaul9.js.map +1 -0
  90. package/dist/commonjs/models/snapshot-id-definition-partial.d.ts +40 -0
  91. package/dist/commonjs/models/snapshot-id-definition-partial.d.ts.map +1 -0
  92. package/dist/commonjs/models/snapshot-id-definition-partial.js +63 -0
  93. package/dist/commonjs/models/snapshot-id-definition-partial.js.map +1 -0
  94. package/dist/commonjs/sdk/sandbox.d.ts +34 -13
  95. package/dist/commonjs/sdk/sandbox.d.ts.map +1 -1
  96. package/dist/commonjs/sdk/sandbox.js +47 -17
  97. package/dist/commonjs/sdk/sandbox.js.map +1 -1
  98. package/dist/esm/funcs/sandbox-get-api-sandbox-by-id-checkpoints.d.ts +18 -0
  99. package/dist/esm/funcs/sandbox-get-api-sandbox-by-id-checkpoints.d.ts.map +1 -0
  100. package/dist/esm/funcs/sandbox-get-api-sandbox-by-id-checkpoints.js +88 -0
  101. package/dist/esm/funcs/sandbox-get-api-sandbox-by-id-checkpoints.js.map +1 -0
  102. package/dist/esm/funcs/sandbox-get-api-sandbox-by-id-stream.d.ts +1 -1
  103. package/dist/esm/funcs/sandbox-get-api-sandbox-by-id-stream.js +1 -1
  104. package/dist/esm/funcs/sandbox-post-api-sandbox-by-id-checkpoint.d.ts +18 -0
  105. package/dist/esm/funcs/sandbox-post-api-sandbox-by-id-checkpoint.d.ts.map +1 -0
  106. package/dist/esm/funcs/sandbox-post-api-sandbox-by-id-checkpoint.js +89 -0
  107. package/dist/esm/funcs/sandbox-post-api-sandbox-by-id-checkpoint.js.map +1 -0
  108. package/dist/esm/funcs/sandbox-post-api-sandbox-by-id-restore.d.ts +18 -0
  109. package/dist/esm/funcs/sandbox-post-api-sandbox-by-id-restore.d.ts.map +1 -0
  110. package/dist/esm/funcs/sandbox-post-api-sandbox-by-id-restore.js +89 -0
  111. package/dist/esm/funcs/sandbox-post-api-sandbox-by-id-restore.js.map +1 -0
  112. package/dist/esm/lib/config.d.ts +2 -2
  113. package/dist/esm/lib/config.js +2 -2
  114. package/dist/esm/models/definition-provider.d.ts +35 -0
  115. package/dist/esm/models/definition-provider.d.ts.map +1 -1
  116. package/dist/esm/models/definition-provider.js +19 -0
  117. package/dist/esm/models/definition-provider.js.map +1 -1
  118. package/dist/esm/models/index.d.ts +5 -3
  119. package/dist/esm/models/index.d.ts.map +1 -1
  120. package/dist/esm/models/index.js +5 -3
  121. package/dist/esm/models/index.js.map +1 -1
  122. package/dist/esm/models/mode-arm-args.d.ts +62 -0
  123. package/dist/esm/models/mode-arm-args.d.ts.map +1 -0
  124. package/dist/esm/models/mode-arm-args.js +26 -0
  125. package/dist/esm/models/mode-arm-args.js.map +1 -0
  126. package/dist/esm/models/name-image-arch.d.ts +35 -0
  127. package/dist/esm/models/name-image-arch.d.ts.map +1 -1
  128. package/dist/esm/models/name-image-arch.js +19 -0
  129. package/dist/esm/models/name-image-arch.js.map +1 -1
  130. package/dist/esm/models/operations/get-api-sandbox-by-id-checkpoints.d.ts +38 -0
  131. package/dist/esm/models/operations/get-api-sandbox-by-id-checkpoints.d.ts.map +1 -0
  132. package/dist/esm/models/operations/get-api-sandbox-by-id-checkpoints.js +35 -0
  133. package/dist/esm/models/operations/get-api-sandbox-by-id-checkpoints.js.map +1 -0
  134. package/dist/esm/models/operations/get-api-sandbox-by-id.d.ts +1 -1
  135. package/dist/esm/models/operations/get-api-sandbox-by-id.js +1 -1
  136. package/dist/esm/models/operations/get-api-sandbox.d.ts +1 -1
  137. package/dist/esm/models/operations/get-api-sandbox.js +1 -1
  138. package/dist/esm/models/operations/index.d.ts +3 -0
  139. package/dist/esm/models/operations/index.d.ts.map +1 -1
  140. package/dist/esm/models/operations/index.js +3 -0
  141. package/dist/esm/models/operations/index.js.map +1 -1
  142. package/dist/esm/models/operations/post-api-sandbox-by-id-checkpoint.d.ts +83 -0
  143. package/dist/esm/models/operations/post-api-sandbox-by-id-checkpoint.d.ts.map +1 -0
  144. package/dist/esm/models/operations/post-api-sandbox-by-id-checkpoint.js +38 -0
  145. package/dist/esm/models/operations/post-api-sandbox-by-id-checkpoint.js.map +1 -0
  146. package/dist/esm/models/operations/post-api-sandbox-by-id-restore.d.ts +151 -0
  147. package/dist/esm/models/operations/post-api-sandbox-by-id-restore.d.ts.map +1 -0
  148. package/dist/esm/models/operations/post-api-sandbox-by-id-restore.js +80 -0
  149. package/dist/esm/models/operations/post-api-sandbox-by-id-restore.js.map +1 -0
  150. package/dist/esm/models/operations/post-api-sandbox-by-id-session.d.ts +7 -3
  151. package/dist/esm/models/operations/post-api-sandbox-by-id-session.d.ts.map +1 -1
  152. package/dist/esm/models/operations/post-api-sandbox-by-id-session.js +3 -2
  153. package/dist/esm/models/operations/post-api-sandbox-by-id-session.js.map +1 -1
  154. package/dist/esm/models/operations/post-api-sandbox.d.ts +1 -1
  155. package/dist/esm/models/operations/post-api-sandbox.js +1 -1
  156. package/dist/esm/models/operations/update-organization-member.d.ts +1 -1
  157. package/dist/esm/models/operations/update-organization-member.js +1 -1
  158. package/dist/esm/models/operations/update-workspace-member.d.ts +1 -1
  159. package/dist/esm/models/operations/update-workspace-member.d.ts.map +1 -1
  160. package/dist/esm/models/operations/update-workspace-member.js +1 -1
  161. package/dist/esm/models/operations/update-workspace-member.js.map +1 -1
  162. package/dist/esm/models/preset-timeout-ms-keep2.d.ts +10 -0
  163. package/dist/esm/models/preset-timeout-ms-keep2.d.ts.map +1 -1
  164. package/dist/esm/models/preset-timeout-ms-keep2.js +2 -0
  165. package/dist/esm/models/preset-timeout-ms-keep2.js.map +1 -1
  166. package/dist/esm/models/schemadefaul11.d.ts +9 -0
  167. package/dist/esm/models/schemadefaul11.d.ts.map +1 -0
  168. package/dist/esm/models/schemadefaul11.js +13 -0
  169. package/dist/esm/models/schemadefaul11.js.map +1 -0
  170. package/dist/esm/models/schemadefaul5.d.ts +7 -4
  171. package/dist/esm/models/schemadefaul5.d.ts.map +1 -1
  172. package/dist/esm/models/schemadefaul5.js +7 -4
  173. package/dist/esm/models/schemadefaul5.js.map +1 -1
  174. package/dist/esm/models/schemadefaul6.d.ts +7 -5
  175. package/dist/esm/models/schemadefaul6.d.ts.map +1 -1
  176. package/dist/esm/models/schemadefaul6.js +6 -6
  177. package/dist/esm/models/schemadefaul6.js.map +1 -1
  178. package/dist/esm/models/schemadefaul7.d.ts +13 -0
  179. package/dist/esm/models/schemadefaul7.d.ts.map +1 -0
  180. package/dist/esm/models/schemadefaul7.js +15 -0
  181. package/dist/esm/models/schemadefaul7.js.map +1 -0
  182. package/dist/esm/models/schemadefaul9.d.ts +10 -0
  183. package/dist/esm/models/schemadefaul9.d.ts.map +1 -0
  184. package/dist/esm/models/schemadefaul9.js +14 -0
  185. package/dist/esm/models/schemadefaul9.js.map +1 -0
  186. package/dist/esm/models/snapshot-id-definition-partial.d.ts +40 -0
  187. package/dist/esm/models/snapshot-id-definition-partial.d.ts.map +1 -0
  188. package/dist/esm/models/snapshot-id-definition-partial.js +26 -0
  189. package/dist/esm/models/snapshot-id-definition-partial.js.map +1 -0
  190. package/dist/esm/sdk/sandbox.d.ts +34 -13
  191. package/dist/esm/sdk/sandbox.d.ts.map +1 -1
  192. package/dist/esm/sdk/sandbox.js +47 -17
  193. package/dist/esm/sdk/sandbox.js.map +1 -1
  194. package/package.json +1 -1
  195. package/src/funcs/sandbox-get-api-sandbox-by-id-checkpoints.ts +184 -0
  196. package/src/funcs/sandbox-get-api-sandbox-by-id-stream.ts +1 -1
  197. package/src/funcs/sandbox-post-api-sandbox-by-id-checkpoint.ts +186 -0
  198. package/src/funcs/sandbox-post-api-sandbox-by-id-restore.ts +186 -0
  199. package/src/lib/config.ts +2 -2
  200. package/src/models/definition-provider.ts +59 -0
  201. package/src/models/index.ts +5 -3
  202. package/src/models/mode-arm-args.ts +100 -0
  203. package/src/models/name-image-arch.ts +59 -0
  204. package/src/models/operations/get-api-sandbox-by-id-checkpoints.ts +97 -0
  205. package/src/models/operations/get-api-sandbox-by-id.ts +3 -3
  206. package/src/models/operations/get-api-sandbox.ts +3 -3
  207. package/src/models/operations/index.ts +3 -0
  208. package/src/models/operations/post-api-sandbox-by-id-checkpoint.ts +151 -0
  209. package/src/models/operations/post-api-sandbox-by-id-restore.ts +263 -0
  210. package/src/models/operations/post-api-sandbox-by-id-session.ts +14 -6
  211. package/src/models/operations/post-api-sandbox.ts +3 -3
  212. package/src/models/operations/update-organization-member.ts +3 -3
  213. package/src/models/operations/update-workspace-member.ts +3 -3
  214. package/src/models/preset-timeout-ms-keep2.ts +12 -0
  215. package/src/models/{schemadefaul8.ts → schemadefaul11.ts} +4 -3
  216. package/src/models/schemadefaul5.ts +7 -7
  217. package/src/models/schemadefaul6.ts +14 -6
  218. package/src/models/schemadefaul7.ts +25 -0
  219. package/src/models/schemadefaul9.ts +16 -0
  220. package/src/models/snapshot-id-definition-partial.ts +70 -0
  221. package/src/sdk/sandbox.ts +82 -28
  222. package/dist/commonjs/models/mode-args-env.d.ts +0 -35
  223. package/dist/commonjs/models/mode-args-env.d.ts.map +0 -1
  224. package/dist/commonjs/models/mode-args-env.js.map +0 -1
  225. package/dist/commonjs/models/schemadefaul4.d.ts +0 -15
  226. package/dist/commonjs/models/schemadefaul4.d.ts.map +0 -1
  227. package/dist/commonjs/models/schemadefaul4.js.map +0 -1
  228. package/dist/commonjs/models/schemadefaul8.d.ts +0 -9
  229. package/dist/commonjs/models/schemadefaul8.d.ts.map +0 -1
  230. package/dist/commonjs/models/schemadefaul8.js.map +0 -1
  231. package/dist/esm/models/mode-args-env.d.ts +0 -35
  232. package/dist/esm/models/mode-args-env.d.ts.map +0 -1
  233. package/dist/esm/models/mode-args-env.js +0 -16
  234. package/dist/esm/models/mode-args-env.js.map +0 -1
  235. package/dist/esm/models/schemadefaul4.d.ts +0 -15
  236. package/dist/esm/models/schemadefaul4.d.ts.map +0 -1
  237. package/dist/esm/models/schemadefaul4.js +0 -17
  238. package/dist/esm/models/schemadefaul4.js.map +0 -1
  239. package/dist/esm/models/schemadefaul8.d.ts +0 -9
  240. package/dist/esm/models/schemadefaul8.d.ts.map +0 -1
  241. package/dist/esm/models/schemadefaul8.js +0 -13
  242. package/dist/esm/models/schemadefaul8.js.map +0 -1
  243. package/src/models/mode-args-env.ts +0 -52
  244. package/src/models/schemadefaul4.ts +0 -24
@@ -0,0 +1,70 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v4-mini";
6
+
7
+ /**
8
+ * What to do when the transcript references files the receiving box does not have. A checkpoint moves the session file ONLY — the workspace does not travel — so a restore into a fresh box normally finds them missing. `warn` (default) restores and reports them in `workspaceDrift`. `refuse` fails with 409 BEFORE switching the session; use it when the box is meant to already hold the work. `skip` does not probe at all, and reports status `unchecked`.
9
+ */
10
+ export enum OnWorkspaceDrift {
11
+ Warn = "warn",
12
+ Refuse = "refuse",
13
+ Skip = "skip",
14
+ }
15
+
16
+ export type SnapshotIdDefinitionPartial = {
17
+ /**
18
+ * Which checkpoint to restore. Defaults to the NEWEST one captured from this sandbox. Only consistency points are listed, so a default restore can never land on a mid-turn prefix.
19
+ */
20
+ snapshotId?: string | undefined;
21
+ /**
22
+ * The sandbox definition to rebuild from, when the original was not a registered preset. The stored record keeps a definition NAME, not the image/arch/network it stood for, so a sandbox spawned from an ad-hoc definition must be handed one back. Omit for preset-spawned sandboxes.
23
+ */
24
+ definition?: any | undefined;
25
+ /**
26
+ * Restore the INCREMENTAL transcript prefix when it is newer than the checkpoint row — the bytes a mid-turn kill would otherwise lose — together with the checkpoint's own workspace archive. Default false. ACCEPTED RISK: the prefix is cut at its last complete line and may end on a tool call whose result never landed; the harness answers such a call with a synthetic error result on the next turn, so the agent sees a failed call and may redo it — any side effect the original call had is not undone. Falls back to the checkpoint row, with the reason in `notRestored`, when no prefix exists, when it is not beyond the row, or when it does not extend the row's bytes (a compaction rewrote the file). `partial` on the response says which happened.
27
+ */
28
+ partial?: boolean | undefined;
29
+ /**
30
+ * What to do when the transcript references files the receiving box does not have. A checkpoint moves the session file ONLY — the workspace does not travel — so a restore into a fresh box normally finds them missing. `warn` (default) restores and reports them in `workspaceDrift`. `refuse` fails with 409 BEFORE switching the session; use it when the box is meant to already hold the work. `skip` does not probe at all, and reports status `unchecked`.
31
+ */
32
+ onWorkspaceDrift?: OnWorkspaceDrift | undefined;
33
+ };
34
+
35
+ /** @internal */
36
+ export const OnWorkspaceDrift$outboundSchema: z.ZodMiniEnum<
37
+ typeof OnWorkspaceDrift
38
+ > = z.enum(OnWorkspaceDrift);
39
+
40
+ /** @internal */
41
+ export type SnapshotIdDefinitionPartial$Outbound = {
42
+ snapshotId?: string | undefined;
43
+ definition?: any | undefined;
44
+ partial?: boolean | undefined;
45
+ onWorkspaceDrift: string;
46
+ };
47
+
48
+ /** @internal */
49
+ export const SnapshotIdDefinitionPartial$outboundSchema: z.ZodMiniType<
50
+ SnapshotIdDefinitionPartial$Outbound,
51
+ SnapshotIdDefinitionPartial
52
+ > = z.object({
53
+ snapshotId: z.optional(z.string()),
54
+ definition: z.optional(z.any()),
55
+ partial: z.optional(z.boolean()),
56
+ onWorkspaceDrift: z._default(
57
+ OnWorkspaceDrift$outboundSchema,
58
+ OnWorkspaceDrift.Warn,
59
+ ),
60
+ });
61
+
62
+ export function snapshotIdDefinitionPartialToJSON(
63
+ snapshotIdDefinitionPartial: SnapshotIdDefinitionPartial,
64
+ ): string {
65
+ return JSON.stringify(
66
+ SnapshotIdDefinitionPartial$outboundSchema.parse(
67
+ snapshotIdDefinitionPartial,
68
+ ),
69
+ );
70
+ }
@@ -3,6 +3,7 @@
3
3
  */
4
4
 
5
5
  import { sandboxDeleteApiSandboxById } from "../funcs/sandbox-delete-api-sandbox-by-id.js";
6
+ import { sandboxGetApiSandboxByIdCheckpoints } from "../funcs/sandbox-get-api-sandbox-by-id-checkpoints.js";
6
7
  import { sandboxGetApiSandboxByIdSessions } from "../funcs/sandbox-get-api-sandbox-by-id-sessions.js";
7
8
  import { sandboxGetApiSandboxByIdStream } from "../funcs/sandbox-get-api-sandbox-by-id-stream.js";
8
9
  import { sandboxGetApiSandboxByIdTraces } from "../funcs/sandbox-get-api-sandbox-by-id-traces.js";
@@ -11,8 +12,10 @@ import { sandboxGetApiSandboxPresets } from "../funcs/sandbox-get-api-sandbox-pr
11
12
  import { sandboxGetApiSandboxProviders } from "../funcs/sandbox-get-api-sandbox-providers.js";
12
13
  import { sandboxGetApiSandbox } from "../funcs/sandbox-get-api-sandbox.js";
13
14
  import { sandboxPostApiSandboxAgentRun } from "../funcs/sandbox-post-api-sandbox-agent-run.js";
15
+ import { sandboxPostApiSandboxByIdCheckpoint } from "../funcs/sandbox-post-api-sandbox-by-id-checkpoint.js";
14
16
  import { sandboxPostApiSandboxByIdExec } from "../funcs/sandbox-post-api-sandbox-by-id-exec.js";
15
17
  import { sandboxPostApiSandboxByIdInput } from "../funcs/sandbox-post-api-sandbox-by-id-input.js";
18
+ import { sandboxPostApiSandboxByIdRestore } from "../funcs/sandbox-post-api-sandbox-by-id-restore.js";
16
19
  import { sandboxPostApiSandboxByIdSession } from "../funcs/sandbox-post-api-sandbox-by-id-session.js";
17
20
  import { sandboxPostApiSandboxByIdSignal } from "../funcs/sandbox-post-api-sandbox-by-id-signal.js";
18
21
  import { sandboxPostApiSandboxPreflight } from "../funcs/sandbox-post-api-sandbox-preflight.js";
@@ -90,23 +93,6 @@ export class Sandbox extends ClientSDK {
90
93
  ));
91
94
  }
92
95
 
93
- /**
94
- * Run one agent turn in a fresh sandbox
95
- *
96
- * @remarks
97
- * `prompt` is WHO the agent is (the agent definition) and `task` is WHAT to do this turn. They are two different prompts and are never concatenated. The turn's output comes back on stdout with the agent's real exit code. With `?stream=1` the same turn is delivered as it happens, in the event framing of `GET /:id/stream`: a `sandbox` event naming the box, then `stdout`/`stderr` as the agent produces them, then a `result` event carrying the exit code and whether the sandbox was torn down, then the terminal `status`. Disconnecting mid-stream releases the sandbox.
98
- */
99
- async postApiSandboxAgentRun(
100
- request: operations.PostApiSandboxAgentRunRequest,
101
- options?: RequestOptions,
102
- ): Promise<operations.PostApiSandboxAgentRunResponse> {
103
- return unwrapAsync(sandboxPostApiSandboxAgentRun(
104
- this,
105
- request,
106
- options,
107
- ));
108
- }
109
-
110
96
  /**
111
97
  * Spawn a sandbox
112
98
  *
@@ -174,7 +160,7 @@ export class Sandbox extends ClientSDK {
174
160
  * Watch a sandbox's output live
175
161
  *
176
162
  * @remarks
177
- * Server-sent events: `stdout`, `stderr`, `rpc`, `unrecognised`, `status`, `ping` (every 15s), `error`. `rpc` carries one complete NDJSON frame from a Helix session running in RPC mode, verbatim — parse it client-side. `unrecognised` carries a line the backend could not classify; receiving one means this server and the sandbox image disagree about the protocol, and it is forwarded rather than dropped so that drift is visible instead of silent. All four output events share the `{seq, ts, text}` shape and one sequence counter, so their interleaving is the order the box produced them. `seq` is monotonic per sandbox and starts at 1; pass the last one seen as `?since=` to resume. If the buffer has already rolled past `since`, an `error` event names the lost range rather than skipping it silently. Disconnecting tears down the upstream.
163
+ * Server-sent events: `stdout`, `stderr`, `rpc`, `unrecognised`, `session`, `live`, `status`, `ping` (every 15s), `error`. `rpc` carries one complete NDJSON frame from a Helix session running in RPC mode, verbatim — parse it client-side. `unrecognised` carries a line the backend could not classify; receiving one means this server and the sandbox image disagree about the protocol, and it is forwarded rather than dropped so that drift is visible instead of silent. Those four output events share the `{seq, ts, text}` shape and one sequence counter, so their interleaving is the order the box produced them. `session` shares that counter too but carries flat fields instead of `text` — `{sessionId, status: "started"|"exited", exitCode, lastSeq, generation}` — and is how a client learns a Helix session began or ended; it is persisted and replayed like any output event, and `exitCode` is the session's real code (the terminal `status` event describes the SANDBOX and reports null by contract). `live` is emitted at most once, before the opening `status`, and only when this instance cannot follow the sandbox: it replays the log and ends rather than tailing. `seq` is monotonic per sandbox and starts at 1, and every seq-bearing event also carries it as the SSE `id:` field; pass the last one seen as `?since=` to resume. A resume is served from the persisted event log first and the live buffer only for the tail, so it survives a restart and can be answered by an instance that never spawned the box. If the requested range has been TRIMMED from that log, an `error` event names the lost range rather than skipping it silently — it carries `code: 'gap'` with the inclusive `from`/`to` wire seqs, and the stream continues past the gap; a source failure instead carries `code: 'upstream'` and is the end of the stream. Branch on `code`, never on `message`. Disconnecting tears down the upstream.
178
164
  */
179
165
  async getApiSandboxByIdStream(
180
166
  request: operations.GetApiSandboxByIdStreamRequest,
@@ -204,6 +190,35 @@ export class Sandbox extends ClientSDK {
204
190
  ));
205
191
  }
206
192
 
193
+ /**
194
+ * Ingest OTLP spans from inside a sandbox
195
+ *
196
+ * @remarks
197
+ * OTLP/HTTP JSON. Requires a task token; spans are attributed to the sandbox the token is bound to, never to the sandbox named in the payload.
198
+ */
199
+ async postApiSandboxTelemetryV1Traces(
200
+ options?: RequestOptions,
201
+ ): Promise<operations.PostApiSandboxTelemetryV1TracesResponse> {
202
+ return unwrapAsync(sandboxPostApiSandboxTelemetryV1Traces(
203
+ this,
204
+ options,
205
+ ));
206
+ }
207
+
208
+ /**
209
+ * Read a sandbox's captured spans
210
+ */
211
+ async getApiSandboxByIdTraces(
212
+ request: operations.GetApiSandboxByIdTracesRequest,
213
+ options?: RequestOptions,
214
+ ): Promise<operations.GetApiSandboxByIdTracesResponse> {
215
+ return unwrapAsync(sandboxGetApiSandboxByIdTraces(
216
+ this,
217
+ request,
218
+ options,
219
+ ));
220
+ }
221
+
207
222
  /**
208
223
  * Start a Helix session in a sandbox
209
224
  *
@@ -273,28 +288,67 @@ export class Sandbox extends ClientSDK {
273
288
  }
274
289
 
275
290
  /**
276
- * Ingest OTLP spans from inside a sandbox
291
+ * Capture a Helix session's own transcript
277
292
  *
278
293
  * @remarks
279
- * OTLP/HTTP JSON. Requires a task token; spans are attributed to the sandbox the token is bound to, never to the sandbox named in the payload.
294
+ * Copies the HARNESS's session file off the box, verbatim, and stores it. This is what a NEW box needs to CONTINUE the conversation — distinct from `GET /:id/stream?since=`, which replays what the client observed and restores no agent state at all. 409 when the session has not completed a turn: the harness writes its file lazily, so there is genuinely nothing to capture yet, and storing an empty snapshot would produce a restore that succeeds and restores nothing. 503 when the deployment has no snapshot store.
280
295
  */
281
- async postApiSandboxTelemetryV1Traces(
296
+ async postApiSandboxByIdCheckpoint(
297
+ request: operations.PostApiSandboxByIdCheckpointRequest,
282
298
  options?: RequestOptions,
283
- ): Promise<operations.PostApiSandboxTelemetryV1TracesResponse> {
284
- return unwrapAsync(sandboxPostApiSandboxTelemetryV1Traces(
299
+ ): Promise<operations.PostApiSandboxByIdCheckpointResponse> {
300
+ return unwrapAsync(sandboxPostApiSandboxByIdCheckpoint(
285
301
  this,
302
+ request,
286
303
  options,
287
304
  ));
288
305
  }
289
306
 
290
307
  /**
291
- * Read a sandbox's captured spans
308
+ * List checkpoints captured from this sandbox
309
+ *
310
+ * @remarks
311
+ * Newest first, tenant-scoped, WITHOUT the stored bytes. `messageCount` is how much conversation each one holds.
292
312
  */
293
- async getApiSandboxByIdTraces(
294
- request: operations.GetApiSandboxByIdTracesRequest,
313
+ async getApiSandboxByIdCheckpoints(
314
+ request: operations.GetApiSandboxByIdCheckpointsRequest,
295
315
  options?: RequestOptions,
296
- ): Promise<operations.GetApiSandboxByIdTracesResponse> {
297
- return unwrapAsync(sandboxGetApiSandboxByIdTraces(
316
+ ): Promise<operations.GetApiSandboxByIdCheckpointsResponse> {
317
+ return unwrapAsync(sandboxGetApiSandboxByIdCheckpoints(
318
+ this,
319
+ request,
320
+ options,
321
+ ));
322
+ }
323
+
324
+ /**
325
+ * Rebuild this sandbox from a checkpoint, with full state
326
+ *
327
+ * @remarks
328
+ * A cloud equivalent of a local `/resume`, and it does NOT require the old box to still exist — a reaped or torn-down sandbox is the ordinary input. In order: a fresh box is spawned for the SAME sandbox id at generation+1 with the same secret NAMES (values are re-minted, never stored); the relay's seq counter is seeded from the persisted high-water mark so a client's `?since=` cursor stays valid; the workspace and `$HOME/.mutagent` are extracted BEFORE Helix starts; a session is started in the checkpoint's cwd; the conversation is written in, its sha256 compared against the box's own, and only then switched onto; the runtime settings and pending queue are replayed; and a `session {status:"restored"}` frame is appended to the stream with a real seq. A digest mismatch is a 422 and the session is NOT switched. 404 if the snapshot is not in this workspace. Read `notRestored` — a restore that carried only the conversation is legitimate and says so there. A DEFAULTED restore uses the newest checkpoint that has a manifest and lists newer rows it passed over in `skippedSnapshots`. `partial: true` restores the incremental transcript prefix beyond the checkpoint when one exists (the frame then carries `partial: true`); its tail may end on a tool call with no result, which the harness answers with a synthetic error on the next turn — the accepted risk of asking for it.
329
+ */
330
+ async postApiSandboxByIdRestore(
331
+ request: operations.PostApiSandboxByIdRestoreRequest,
332
+ options?: RequestOptions,
333
+ ): Promise<operations.PostApiSandboxByIdRestoreResponse> {
334
+ return unwrapAsync(sandboxPostApiSandboxByIdRestore(
335
+ this,
336
+ request,
337
+ options,
338
+ ));
339
+ }
340
+
341
+ /**
342
+ * Run one agent turn in a fresh sandbox
343
+ *
344
+ * @remarks
345
+ * `prompt` is WHO the agent is (the agent definition) and `task` is WHAT to do this turn. They are two different prompts and are never concatenated. The turn's output comes back on stdout with the agent's real exit code. With `?stream=1` the same turn is delivered as it happens, in the event framing of `GET /:id/stream`: a `sandbox` event naming the box, then `stdout`/`stderr` as the agent produces them, then a `result` event carrying the exit code and whether the sandbox was torn down, then the terminal `status`. Disconnecting mid-stream releases the sandbox.
346
+ */
347
+ async postApiSandboxAgentRun(
348
+ request: operations.PostApiSandboxAgentRunRequest,
349
+ options?: RequestOptions,
350
+ ): Promise<operations.PostApiSandboxAgentRunResponse> {
351
+ return unwrapAsync(sandboxPostApiSandboxAgentRun(
298
352
  this,
299
353
  request,
300
354
  options,
@@ -1,35 +0,0 @@
1
- import * as z from "zod/v4-mini";
2
- import { Schemadefaul5Open } from "./schemadefaul5.js";
3
- export type ModeArgsEnv = {
4
- /**
5
- * Defaults to `oneshot` — the pre-existing behaviour. `rpc` starts a duplex session that emits `rpc` events on the stream and accepts `POST /:id/input`.
6
- */
7
- mode?: Schemadefaul5Open | undefined;
8
- /**
9
- * Arguments for the Helix binary. Omitted starts it with none.
10
- */
11
- args?: Array<string> | undefined;
12
- /**
13
- * Per-call environment, merged OVER the sandbox's own scoped material. Rides the invocation payload, so it does not mint a new Runtime.
14
- */
15
- env?: {
16
- [k: string]: string;
17
- } | undefined;
18
- /**
19
- * Working directory for the agent. Omitted, an `rpc` session runs in `$HOME` (writable by construction); `oneshot` inherits the server cwd exactly as it always has.
20
- */
21
- cwd?: string | undefined;
22
- };
23
- /** @internal */
24
- export type ModeArgsEnv$Outbound = {
25
- mode: string;
26
- args?: Array<string> | undefined;
27
- env?: {
28
- [k: string]: string;
29
- } | undefined;
30
- cwd?: string | undefined;
31
- };
32
- /** @internal */
33
- export declare const ModeArgsEnv$outboundSchema: z.ZodMiniType<ModeArgsEnv$Outbound, ModeArgsEnv>;
34
- export declare function modeArgsEnvToJSON(modeArgsEnv: ModeArgsEnv): string;
35
- //# sourceMappingURL=mode-args-env.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"mode-args-env.d.ts","sourceRoot":"","sources":["../../../src/models/mode-args-env.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AACjC,OAAO,EAGL,iBAAiB,EAClB,MAAM,oBAAoB,CAAC;AAE5B,MAAM,MAAM,WAAW,GAAG;IACxB;;OAEG;IACH,IAAI,CAAC,EAAE,iBAAiB,GAAG,SAAS,CAAC;IACrC;;OAEG;IACH,IAAI,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,GAAG,SAAS,CAAC;IACjC;;OAEG;IACH,GAAG,CAAC,EAAE;QAAE,CAAC,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,GAAG,SAAS,CAAC;IAC1C;;OAEG;IACH,GAAG,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC1B,CAAC;AAEF,gBAAgB;AAChB,MAAM,MAAM,oBAAoB,GAAG;IACjC,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,GAAG,SAAS,CAAC;IACjC,GAAG,CAAC,EAAE;QAAE,CAAC,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,GAAG,SAAS,CAAC;IAC1C,GAAG,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC1B,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,0BAA0B,EAAE,CAAC,CAAC,WAAW,CACpD,oBAAoB,EACpB,WAAW,CAMX,CAAC;AAEH,wBAAgB,iBAAiB,CAAC,WAAW,EAAE,WAAW,GAAG,MAAM,CAElE"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"mode-args-env.js","sourceRoot":"","sources":["../../../src/models/mode-args-env.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA+CH,8CAEC;AA/CD,+CAAiC;AACjC,yDAI4B;AA6B5B,gBAAgB;AACH,QAAA,0BAA0B,GAGnC,CAAC,CAAC,MAAM,CAAC;IACX,IAAI,EAAE,CAAC,CAAC,QAAQ,CAAC,+CAA4B,EAAE,gCAAa,CAAC,OAAO,CAAC;IACrE,IAAI,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC;IACrC,GAAG,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC;IACjD,GAAG,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;CAC5B,CAAC,CAAC;AAEH,SAAgB,iBAAiB,CAAC,WAAwB;IACxD,OAAO,IAAI,CAAC,SAAS,CAAC,kCAA0B,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC,CAAC;AACvE,CAAC"}
@@ -1,15 +0,0 @@
1
- import * as z from "zod/v4-mini";
2
- import { OpenEnum } from "../types/enums.js";
3
- export declare enum Schemadefaul4 {
4
- Pending = "pending",
5
- Starting = "starting",
6
- Running = "running",
7
- Paused = "paused",
8
- Stopping = "stopping",
9
- Stopped = "stopped",
10
- Failed = "failed"
11
- }
12
- export type Schemadefaul4Open = OpenEnum<typeof Schemadefaul4>;
13
- /** @internal */
14
- export declare const Schemadefaul4$inboundSchema: z.ZodMiniType<Schemadefaul4Open, unknown>;
15
- //# sourceMappingURL=schemadefaul4.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"schemadefaul4.d.ts","sourceRoot":"","sources":["../../../src/models/schemadefaul4.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AAEjC,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAE7C,oBAAY,aAAa;IACvB,OAAO,YAAY;IACnB,QAAQ,aAAa;IACrB,OAAO,YAAY;IACnB,MAAM,WAAW;IACjB,QAAQ,aAAa;IACrB,OAAO,YAAY;IACnB,MAAM,WAAW;CAClB;AACD,MAAM,MAAM,iBAAiB,GAAG,QAAQ,CAAC,OAAO,aAAa,CAAC,CAAC;AAE/D,gBAAgB;AAChB,eAAO,MAAM,2BAA2B,EAAE,CAAC,CAAC,WAAW,CACrD,iBAAiB,EACjB,OAAO,CACiC,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"schemadefaul4.js","sourceRoot":"","sources":["../../../src/models/schemadefaul4.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGH,6DAA+C;AAG/C,IAAY,aAQX;AARD,WAAY,aAAa;IACvB,oCAAmB,CAAA;IACnB,sCAAqB,CAAA;IACrB,oCAAmB,CAAA;IACnB,kCAAiB,CAAA;IACjB,sCAAqB,CAAA;IACrB,oCAAmB,CAAA;IACnB,kCAAiB,CAAA;AACnB,CAAC,EARW,aAAa,6BAAb,aAAa,QAQxB;AAGD,gBAAgB;AACH,QAAA,2BAA2B,GAGpC,SAAS,CAAC,aAAa,CAAC,aAAa,CAAC,CAAC"}
@@ -1,9 +0,0 @@
1
- import * as z from "zod/v4-mini";
2
- export declare enum Schemadefaul8 {
3
- Admin = "admin",
4
- Editor = "editor",
5
- Viewer = "viewer"
6
- }
7
- /** @internal */
8
- export declare const Schemadefaul8$outboundSchema: z.ZodMiniEnum<typeof Schemadefaul8>;
9
- //# sourceMappingURL=schemadefaul8.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"schemadefaul8.d.ts","sourceRoot":"","sources":["../../../src/models/schemadefaul8.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AAEjC,oBAAY,aAAa;IACvB,KAAK,UAAU;IACf,MAAM,WAAW;IACjB,MAAM,WAAW;CAClB;AAED,gBAAgB;AAChB,eAAO,MAAM,4BAA4B,EAAE,CAAC,CAAC,WAAW,CAAC,OAAO,aAAa,CACtD,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"schemadefaul8.js","sourceRoot":"","sources":["../../../src/models/schemadefaul8.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,+CAAiC;AAEjC,IAAY,aAIX;AAJD,WAAY,aAAa;IACvB,gCAAe,CAAA;IACf,kCAAiB,CAAA;IACjB,kCAAiB,CAAA;AACnB,CAAC,EAJW,aAAa,6BAAb,aAAa,QAIxB;AAED,gBAAgB;AACH,QAAA,4BAA4B,GACvC,CAAC,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC"}
@@ -1,35 +0,0 @@
1
- import * as z from "zod/v4-mini";
2
- import { Schemadefaul5Open } from "./schemadefaul5.js";
3
- export type ModeArgsEnv = {
4
- /**
5
- * Defaults to `oneshot` — the pre-existing behaviour. `rpc` starts a duplex session that emits `rpc` events on the stream and accepts `POST /:id/input`.
6
- */
7
- mode?: Schemadefaul5Open | undefined;
8
- /**
9
- * Arguments for the Helix binary. Omitted starts it with none.
10
- */
11
- args?: Array<string> | undefined;
12
- /**
13
- * Per-call environment, merged OVER the sandbox's own scoped material. Rides the invocation payload, so it does not mint a new Runtime.
14
- */
15
- env?: {
16
- [k: string]: string;
17
- } | undefined;
18
- /**
19
- * Working directory for the agent. Omitted, an `rpc` session runs in `$HOME` (writable by construction); `oneshot` inherits the server cwd exactly as it always has.
20
- */
21
- cwd?: string | undefined;
22
- };
23
- /** @internal */
24
- export type ModeArgsEnv$Outbound = {
25
- mode: string;
26
- args?: Array<string> | undefined;
27
- env?: {
28
- [k: string]: string;
29
- } | undefined;
30
- cwd?: string | undefined;
31
- };
32
- /** @internal */
33
- export declare const ModeArgsEnv$outboundSchema: z.ZodMiniType<ModeArgsEnv$Outbound, ModeArgsEnv>;
34
- export declare function modeArgsEnvToJSON(modeArgsEnv: ModeArgsEnv): string;
35
- //# sourceMappingURL=mode-args-env.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"mode-args-env.d.ts","sourceRoot":"","sources":["../../../src/models/mode-args-env.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AACjC,OAAO,EAGL,iBAAiB,EAClB,MAAM,oBAAoB,CAAC;AAE5B,MAAM,MAAM,WAAW,GAAG;IACxB;;OAEG;IACH,IAAI,CAAC,EAAE,iBAAiB,GAAG,SAAS,CAAC;IACrC;;OAEG;IACH,IAAI,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,GAAG,SAAS,CAAC;IACjC;;OAEG;IACH,GAAG,CAAC,EAAE;QAAE,CAAC,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,GAAG,SAAS,CAAC;IAC1C;;OAEG;IACH,GAAG,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC1B,CAAC;AAEF,gBAAgB;AAChB,MAAM,MAAM,oBAAoB,GAAG;IACjC,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,GAAG,SAAS,CAAC;IACjC,GAAG,CAAC,EAAE;QAAE,CAAC,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,GAAG,SAAS,CAAC;IAC1C,GAAG,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC1B,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,0BAA0B,EAAE,CAAC,CAAC,WAAW,CACpD,oBAAoB,EACpB,WAAW,CAMX,CAAC;AAEH,wBAAgB,iBAAiB,CAAC,WAAW,EAAE,WAAW,GAAG,MAAM,CAElE"}
@@ -1,16 +0,0 @@
1
- /*
2
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
- */
4
- import * as z from "zod/v4-mini";
5
- import { Schemadefaul5, Schemadefaul5$outboundSchema, } from "./schemadefaul5.js";
6
- /** @internal */
7
- export const ModeArgsEnv$outboundSchema = z.object({
8
- mode: z._default(Schemadefaul5$outboundSchema, Schemadefaul5.Oneshot),
9
- args: z.optional(z.array(z.string())),
10
- env: z.optional(z.record(z.string(), z.string())),
11
- cwd: z.optional(z.string()),
12
- });
13
- export function modeArgsEnvToJSON(modeArgsEnv) {
14
- return JSON.stringify(ModeArgsEnv$outboundSchema.parse(modeArgsEnv));
15
- }
16
- //# sourceMappingURL=mode-args-env.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"mode-args-env.js","sourceRoot":"","sources":["../../../src/models/mode-args-env.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AACjC,OAAO,EACL,aAAa,EACb,4BAA4B,GAE7B,MAAM,oBAAoB,CAAC;AA6B5B,gBAAgB;AAChB,MAAM,CAAC,MAAM,0BAA0B,GAGnC,CAAC,CAAC,MAAM,CAAC;IACX,IAAI,EAAE,CAAC,CAAC,QAAQ,CAAC,4BAA4B,EAAE,aAAa,CAAC,OAAO,CAAC;IACrE,IAAI,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC;IACrC,GAAG,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC;IACjD,GAAG,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;CAC5B,CAAC,CAAC;AAEH,MAAM,UAAU,iBAAiB,CAAC,WAAwB;IACxD,OAAO,IAAI,CAAC,SAAS,CAAC,0BAA0B,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC,CAAC;AACvE,CAAC"}
@@ -1,15 +0,0 @@
1
- import * as z from "zod/v4-mini";
2
- import { OpenEnum } from "../types/enums.js";
3
- export declare enum Schemadefaul4 {
4
- Pending = "pending",
5
- Starting = "starting",
6
- Running = "running",
7
- Paused = "paused",
8
- Stopping = "stopping",
9
- Stopped = "stopped",
10
- Failed = "failed"
11
- }
12
- export type Schemadefaul4Open = OpenEnum<typeof Schemadefaul4>;
13
- /** @internal */
14
- export declare const Schemadefaul4$inboundSchema: z.ZodMiniType<Schemadefaul4Open, unknown>;
15
- //# sourceMappingURL=schemadefaul4.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"schemadefaul4.d.ts","sourceRoot":"","sources":["../../../src/models/schemadefaul4.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AAEjC,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAE7C,oBAAY,aAAa;IACvB,OAAO,YAAY;IACnB,QAAQ,aAAa;IACrB,OAAO,YAAY;IACnB,MAAM,WAAW;IACjB,QAAQ,aAAa;IACrB,OAAO,YAAY;IACnB,MAAM,WAAW;CAClB;AACD,MAAM,MAAM,iBAAiB,GAAG,QAAQ,CAAC,OAAO,aAAa,CAAC,CAAC;AAE/D,gBAAgB;AAChB,eAAO,MAAM,2BAA2B,EAAE,CAAC,CAAC,WAAW,CACrD,iBAAiB,EACjB,OAAO,CACiC,CAAC"}
@@ -1,17 +0,0 @@
1
- /*
2
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
- */
4
- import * as openEnums from "../types/enums.js";
5
- export var Schemadefaul4;
6
- (function (Schemadefaul4) {
7
- Schemadefaul4["Pending"] = "pending";
8
- Schemadefaul4["Starting"] = "starting";
9
- Schemadefaul4["Running"] = "running";
10
- Schemadefaul4["Paused"] = "paused";
11
- Schemadefaul4["Stopping"] = "stopping";
12
- Schemadefaul4["Stopped"] = "stopped";
13
- Schemadefaul4["Failed"] = "failed";
14
- })(Schemadefaul4 || (Schemadefaul4 = {}));
15
- /** @internal */
16
- export const Schemadefaul4$inboundSchema = openEnums.inboundSchema(Schemadefaul4);
17
- //# sourceMappingURL=schemadefaul4.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"schemadefaul4.js","sourceRoot":"","sources":["../../../src/models/schemadefaul4.ts"],"names":[],"mappings":"AAAA;;GAEG;AAGH,OAAO,KAAK,SAAS,MAAM,mBAAmB,CAAC;AAG/C,MAAM,CAAN,IAAY,aAQX;AARD,WAAY,aAAa;IACvB,oCAAmB,CAAA;IACnB,sCAAqB,CAAA;IACrB,oCAAmB,CAAA;IACnB,kCAAiB,CAAA;IACjB,sCAAqB,CAAA;IACrB,oCAAmB,CAAA;IACnB,kCAAiB,CAAA;AACnB,CAAC,EARW,aAAa,KAAb,aAAa,QAQxB;AAGD,gBAAgB;AAChB,MAAM,CAAC,MAAM,2BAA2B,GAGpC,SAAS,CAAC,aAAa,CAAC,aAAa,CAAC,CAAC"}
@@ -1,9 +0,0 @@
1
- import * as z from "zod/v4-mini";
2
- export declare enum Schemadefaul8 {
3
- Admin = "admin",
4
- Editor = "editor",
5
- Viewer = "viewer"
6
- }
7
- /** @internal */
8
- export declare const Schemadefaul8$outboundSchema: z.ZodMiniEnum<typeof Schemadefaul8>;
9
- //# sourceMappingURL=schemadefaul8.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"schemadefaul8.d.ts","sourceRoot":"","sources":["../../../src/models/schemadefaul8.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AAEjC,oBAAY,aAAa;IACvB,KAAK,UAAU;IACf,MAAM,WAAW;IACjB,MAAM,WAAW;CAClB;AAED,gBAAgB;AAChB,eAAO,MAAM,4BAA4B,EAAE,CAAC,CAAC,WAAW,CAAC,OAAO,aAAa,CACtD,CAAC"}
@@ -1,13 +0,0 @@
1
- /*
2
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
- */
4
- import * as z from "zod/v4-mini";
5
- export var Schemadefaul8;
6
- (function (Schemadefaul8) {
7
- Schemadefaul8["Admin"] = "admin";
8
- Schemadefaul8["Editor"] = "editor";
9
- Schemadefaul8["Viewer"] = "viewer";
10
- })(Schemadefaul8 || (Schemadefaul8 = {}));
11
- /** @internal */
12
- export const Schemadefaul8$outboundSchema = z.enum(Schemadefaul8);
13
- //# sourceMappingURL=schemadefaul8.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"schemadefaul8.js","sourceRoot":"","sources":["../../../src/models/schemadefaul8.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AAEjC,MAAM,CAAN,IAAY,aAIX;AAJD,WAAY,aAAa;IACvB,gCAAe,CAAA;IACf,kCAAiB,CAAA;IACjB,kCAAiB,CAAA;AACnB,CAAC,EAJW,aAAa,KAAb,aAAa,QAIxB;AAED,gBAAgB;AAChB,MAAM,CAAC,MAAM,4BAA4B,GACvC,CAAC,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC"}
@@ -1,52 +0,0 @@
1
- /*
2
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
- */
4
-
5
- import * as z from "zod/v4-mini";
6
- import {
7
- Schemadefaul5,
8
- Schemadefaul5$outboundSchema,
9
- Schemadefaul5Open,
10
- } from "./schemadefaul5.js";
11
-
12
- export type ModeArgsEnv = {
13
- /**
14
- * Defaults to `oneshot` — the pre-existing behaviour. `rpc` starts a duplex session that emits `rpc` events on the stream and accepts `POST /:id/input`.
15
- */
16
- mode?: Schemadefaul5Open | undefined;
17
- /**
18
- * Arguments for the Helix binary. Omitted starts it with none.
19
- */
20
- args?: Array<string> | undefined;
21
- /**
22
- * Per-call environment, merged OVER the sandbox's own scoped material. Rides the invocation payload, so it does not mint a new Runtime.
23
- */
24
- env?: { [k: string]: string } | undefined;
25
- /**
26
- * Working directory for the agent. Omitted, an `rpc` session runs in `$HOME` (writable by construction); `oneshot` inherits the server cwd exactly as it always has.
27
- */
28
- cwd?: string | undefined;
29
- };
30
-
31
- /** @internal */
32
- export type ModeArgsEnv$Outbound = {
33
- mode: string;
34
- args?: Array<string> | undefined;
35
- env?: { [k: string]: string } | undefined;
36
- cwd?: string | undefined;
37
- };
38
-
39
- /** @internal */
40
- export const ModeArgsEnv$outboundSchema: z.ZodMiniType<
41
- ModeArgsEnv$Outbound,
42
- ModeArgsEnv
43
- > = z.object({
44
- mode: z._default(Schemadefaul5$outboundSchema, Schemadefaul5.Oneshot),
45
- args: z.optional(z.array(z.string())),
46
- env: z.optional(z.record(z.string(), z.string())),
47
- cwd: z.optional(z.string()),
48
- });
49
-
50
- export function modeArgsEnvToJSON(modeArgsEnv: ModeArgsEnv): string {
51
- return JSON.stringify(ModeArgsEnv$outboundSchema.parse(modeArgsEnv));
52
- }
@@ -1,24 +0,0 @@
1
- /*
2
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
- */
4
-
5
- import * as z from "zod/v4-mini";
6
- import * as openEnums from "../types/enums.js";
7
- import { OpenEnum } from "../types/enums.js";
8
-
9
- export enum Schemadefaul4 {
10
- Pending = "pending",
11
- Starting = "starting",
12
- Running = "running",
13
- Paused = "paused",
14
- Stopping = "stopping",
15
- Stopped = "stopped",
16
- Failed = "failed",
17
- }
18
- export type Schemadefaul4Open = OpenEnum<typeof Schemadefaul4>;
19
-
20
- /** @internal */
21
- export const Schemadefaul4$inboundSchema: z.ZodMiniType<
22
- Schemadefaul4Open,
23
- unknown
24
- > = openEnums.inboundSchema(Schemadefaul4);