eve 0.36.0 → 0.37.1

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 (277) hide show
  1. package/CHANGELOG.md +29 -0
  2. package/README.md +1 -0
  3. package/dist/src/channel/routes.d.ts +13 -3
  4. package/dist/src/channel/routes.js +1 -1
  5. package/dist/src/channel/session-callback.js +1 -1
  6. package/dist/src/channel/session.d.ts +2 -1
  7. package/dist/src/channel/session.js +1 -1
  8. package/dist/src/channel/types.d.ts +41 -0
  9. package/dist/src/chunks/{use-eve-agent-CnppTEFk.js → use-eve-agent-Bi5fRxcZ.js} +9 -1
  10. package/dist/src/chunks/{use-eve-agent-COmP-H8R.js → use-eve-agent-DbKUBhl-.js} +9 -1
  11. package/dist/src/cli/commands/agent-instructions.d.ts +4 -4
  12. package/dist/src/cli/commands/init-confirm.d.ts +12 -0
  13. package/dist/src/cli/commands/init-confirm.js +1 -0
  14. package/dist/src/cli/commands/init-git.js +1 -1
  15. package/dist/src/cli/commands/init-recovery.d.ts +3 -0
  16. package/dist/src/cli/commands/init-recovery.js +3 -0
  17. package/dist/src/cli/commands/init-target.d.ts +21 -0
  18. package/dist/src/cli/commands/init-target.js +1 -0
  19. package/dist/src/cli/commands/init.d.ts +6 -5
  20. package/dist/src/cli/commands/init.js +1 -1
  21. package/dist/src/cli/dev/tui/runner.d.ts +8 -0
  22. package/dist/src/cli/dev/tui/runner.js +1 -1
  23. package/dist/src/cli/dev/tui/subagent-pump.d.ts +27 -22
  24. package/dist/src/cli/dev/tui/subagent-pump.js +1 -1
  25. package/dist/src/cli/dev/tui/terminal-renderer.d.ts +16 -0
  26. package/dist/src/cli/dev/tui/terminal-renderer.js +12 -12
  27. package/dist/src/cli/dev/tui/tool-presentation.js +1 -1
  28. package/dist/src/cli/run.d.ts +1 -0
  29. package/dist/src/cli/run.js +3 -3
  30. package/dist/src/client/open-stream.d.ts +2 -0
  31. package/dist/src/client/open-stream.js +1 -1
  32. package/dist/src/client/session.js +1 -1
  33. package/dist/src/compiled/.vendor-stamp.json +3 -1
  34. package/dist/src/compiled/@modelcontextprotocol/server/LICENSE +216 -0
  35. package/dist/src/compiled/@modelcontextprotocol/server/index.d.ts +98 -0
  36. package/dist/src/compiled/@modelcontextprotocol/server/index.js +80 -0
  37. package/dist/src/compiled/@vercel/sandbox/api-client/api-client.d.ts +339 -0
  38. package/dist/src/compiled/@vercel/sandbox/api-client/index.d.ts +1 -1
  39. package/dist/src/compiled/@vercel/sandbox/api-client/validators.d.ts +25 -1
  40. package/dist/src/compiled/@vercel/sandbox/drive.d.ts +140 -0
  41. package/dist/src/compiled/@vercel/sandbox/index.d.ts +3 -2
  42. package/dist/src/compiled/@vercel/sandbox/index.js +13 -13
  43. package/dist/src/compiled/@vercel/sandbox/sandbox.d.ts +55 -18
  44. package/dist/src/compiled/@vercel/sandbox-stable/LICENSE +201 -0
  45. package/dist/src/compiled/@vercel/sandbox-stable/_async-retry.d.ts +8 -0
  46. package/dist/src/compiled/@vercel/sandbox-stable/_workflow-serde.d.ts +5 -0
  47. package/dist/src/compiled/@vercel/sandbox-stable/api-client/api-client.d.ts +1456 -0
  48. package/dist/src/compiled/@vercel/sandbox-stable/api-client/api-error.d.ts +29 -0
  49. package/dist/src/compiled/@vercel/sandbox-stable/api-client/base-client.d.ts +39 -0
  50. package/dist/src/compiled/@vercel/sandbox-stable/api-client/file-writer.d.ts +66 -0
  51. package/dist/src/compiled/@vercel/sandbox-stable/api-client/index.d.ts +2 -0
  52. package/dist/src/compiled/@vercel/sandbox-stable/api-client/validators.d.ts +899 -0
  53. package/dist/src/compiled/@vercel/sandbox-stable/api-client/with-retry.d.ts +10 -0
  54. package/dist/src/compiled/@vercel/sandbox-stable/auth/error.d.ts +15 -0
  55. package/dist/src/compiled/@vercel/sandbox-stable/auth/file.d.ts +18 -0
  56. package/dist/src/compiled/@vercel/sandbox-stable/auth/index.d.ts +6 -0
  57. package/dist/src/compiled/@vercel/sandbox-stable/auth/oauth.d.ts +111 -0
  58. package/dist/src/compiled/@vercel/sandbox-stable/auth/poll-for-token.d.ts +28 -0
  59. package/dist/src/compiled/@vercel/sandbox-stable/auth/project.d.ts +40 -0
  60. package/dist/src/compiled/@vercel/sandbox-stable/command.d.ts +292 -0
  61. package/dist/src/compiled/@vercel/sandbox-stable/constants.d.ts +5 -0
  62. package/dist/src/compiled/@vercel/sandbox-stable/execution-context.d.ts +116 -0
  63. package/dist/src/compiled/@vercel/sandbox-stable/filesystem.d.ts +258 -0
  64. package/dist/src/compiled/@vercel/sandbox-stable/index.d.ts +12 -0
  65. package/dist/src/compiled/@vercel/sandbox-stable/index.js +1 -0
  66. package/dist/src/compiled/@vercel/sandbox-stable/network-policy.d.ts +169 -0
  67. package/dist/src/compiled/@vercel/sandbox-stable/proxy.d.ts +55 -0
  68. package/dist/src/compiled/@vercel/sandbox-stable/sandbox-user.d.ts +212 -0
  69. package/dist/src/compiled/@vercel/sandbox-stable/sandbox.d.ts +1216 -0
  70. package/dist/src/compiled/@vercel/sandbox-stable/session.d.ts +433 -0
  71. package/dist/src/compiled/@vercel/sandbox-stable/snapshot.d.ts +229 -0
  72. package/dist/src/compiled/@vercel/sandbox-stable/utils/get-credentials.d.ts +21 -0
  73. package/dist/src/compiled/@vercel/sandbox-stable/utils/paginator.d.ts +16 -0
  74. package/dist/src/compiled/@vercel/sandbox-stable/utils/resolveSignal.d.ts +15 -0
  75. package/dist/src/compiled/@vercel/sandbox-stable/utils/sandbox-snapshot.d.ts +11 -0
  76. package/dist/src/compiled/@vercel/sandbox-stable/utils/types.d.ts +11 -0
  77. package/dist/src/compiled/_chunks/node/{auth-BS3UoyvT.js → auth-BaNbsImr.js} +1 -1
  78. package/dist/src/compiled/_chunks/node/version-BYHw-SDY.js +1 -0
  79. package/dist/src/compiler/extension-compatibility.d.ts +10 -10
  80. package/dist/src/compiler/extension-compatibility.js +1 -1
  81. package/dist/src/compiler/manifest.js +1 -1
  82. package/dist/src/compiler/normalize-agent-config.js +1 -1
  83. package/dist/src/compiler/normalize-manifest.js +1 -1
  84. package/dist/src/compiler/normalize-subagent.d.ts +1 -1
  85. package/dist/src/compiler/normalize-subagent.js +1 -1
  86. package/dist/src/context/serialized-dynamic-model-selection.d.ts +2 -0
  87. package/dist/src/context/serialized-dynamic-model-selection.js +1 -0
  88. package/dist/src/execution/agent-handle-dispatch.d.ts +15 -1
  89. package/dist/src/execution/agent-handle-dispatch.js +1 -1
  90. package/dist/src/execution/cancel-descendant-turns-step.js +1 -1
  91. package/dist/src/execution/delegated-parent-notification.d.ts +17 -0
  92. package/dist/src/execution/delegated-parent-notification.js +1 -1
  93. package/dist/src/execution/deliver-payloads.js +1 -1
  94. package/dist/src/execution/dispatch-runtime-actions-shared.d.ts +155 -0
  95. package/dist/src/execution/dispatch-runtime-actions-shared.js +1 -0
  96. package/dist/src/execution/dispatch-runtime-actions-step.d.ts +18 -14
  97. package/dist/src/execution/dispatch-runtime-actions-step.js +1 -1
  98. package/dist/src/execution/dispatch-workflow-runtime-actions-step.d.ts +7 -2
  99. package/dist/src/execution/dispatch-workflow-runtime-actions-step.js +1 -1
  100. package/dist/src/execution/effective-output-schema.d.ts +21 -0
  101. package/dist/src/execution/effective-output-schema.js +1 -0
  102. package/dist/src/execution/eve-workflow-attributes.d.ts +2 -0
  103. package/dist/src/execution/node-step.js +1 -1
  104. package/dist/src/execution/parked-delivery-wait.d.ts +8 -12
  105. package/dist/src/execution/parked-delivery-wait.js +1 -1
  106. package/dist/src/execution/{route-proxied-deliver-step.d.ts → proxied-deliver-step.d.ts} +7 -4
  107. package/dist/src/execution/proxied-deliver-step.js +1 -0
  108. package/dist/src/execution/remote-agent-dispatch.d.ts +32 -0
  109. package/dist/src/execution/remote-agent-dispatch.js +1 -1
  110. package/dist/src/execution/remote-agent-route-url.d.ts +2 -0
  111. package/dist/src/execution/remote-agent-route-url.js +1 -0
  112. package/dist/src/execution/route-child-delivery.d.ts +2 -1
  113. package/dist/src/execution/route-child-delivery.js +1 -1
  114. package/dist/src/execution/sandbox/bindings/vercel.d.ts +2 -1
  115. package/dist/src/execution/sandbox/bindings/vercel.js +1 -1
  116. package/dist/src/execution/session-callback-step.d.ts +11 -0
  117. package/dist/src/execution/session-callback-step.js +1 -1
  118. package/dist/src/execution/session-command-wire.js +1 -1
  119. package/dist/src/execution/session-state-cursor.d.ts +25 -0
  120. package/dist/src/execution/session-state-cursor.js +1 -0
  121. package/dist/src/execution/settle-cancelled-turn-step.d.ts +2 -0
  122. package/dist/src/execution/settle-cancelled-turn-step.js +1 -1
  123. package/dist/src/execution/subagent-event-proxy-step.d.ts +15 -0
  124. package/dist/src/execution/subagent-event-proxy-step.js +1 -1
  125. package/dist/src/execution/subagent-hitl-proxy.d.ts +14 -7
  126. package/dist/src/execution/subagent-hitl-proxy.js +1 -1
  127. package/dist/src/execution/subagent-start-local.d.ts +29 -0
  128. package/dist/src/execution/subagent-start-local.js +1 -0
  129. package/dist/src/execution/subagent-start-remote.d.ts +23 -0
  130. package/dist/src/execution/subagent-start-remote.js +1 -0
  131. package/dist/src/execution/task-event-callback.d.ts +13 -0
  132. package/dist/src/execution/task-event-callback.js +1 -0
  133. package/dist/src/execution/task-input-capability.d.ts +4 -0
  134. package/dist/src/execution/task-input-capability.js +1 -0
  135. package/dist/src/execution/tasks/child/steps.d.ts +46 -0
  136. package/dist/src/execution/tasks/child/steps.js +1 -0
  137. package/dist/src/execution/tasks/child/workflow.d.ts +31 -0
  138. package/dist/src/execution/tasks/child/workflow.js +1 -0
  139. package/dist/src/execution/tasks/parent/agent-identity.d.ts +13 -0
  140. package/dist/src/execution/tasks/parent/agent-identity.js +1 -0
  141. package/dist/src/execution/tasks/parent/agent-views.d.ts +6 -0
  142. package/dist/src/execution/tasks/parent/agent-views.js +1 -0
  143. package/dist/src/execution/tasks/parent/continuation-dispatch.d.ts +37 -0
  144. package/dist/src/execution/tasks/parent/continuation-dispatch.js +1 -0
  145. package/dist/src/execution/tasks/parent/control-shared.d.ts +36 -0
  146. package/dist/src/execution/tasks/parent/control-shared.js +1 -0
  147. package/dist/src/execution/tasks/parent/delegate.d.ts +70 -0
  148. package/dist/src/execution/tasks/parent/delegate.js +1 -0
  149. package/dist/src/execution/tasks/parent/dispatch-task-step.d.ts +19 -0
  150. package/dist/src/execution/tasks/parent/dispatch-task-step.js +1 -0
  151. package/dist/src/execution/tasks/parent/dispatch.d.ts +33 -0
  152. package/dist/src/execution/tasks/parent/dispatch.js +1 -0
  153. package/dist/src/execution/tasks/parent/hitl-proxy-steps.d.ts +29 -0
  154. package/dist/src/execution/tasks/parent/hitl-proxy-steps.js +1 -0
  155. package/dist/src/execution/tasks/parent/run-parent.d.ts +72 -0
  156. package/dist/src/execution/tasks/parent/run-parent.js +1 -0
  157. package/dist/src/execution/tasks/parent/send.d.ts +25 -0
  158. package/dist/src/execution/tasks/parent/send.js +1 -0
  159. package/dist/src/execution/tasks/workflow-target.d.ts +2 -0
  160. package/dist/src/execution/tasks/workflow-target.js +1 -0
  161. package/dist/src/execution/terminate-child-sessions-step.d.ts +1 -0
  162. package/dist/src/execution/terminate-child-sessions-step.js +1 -1
  163. package/dist/src/execution/turn-control-receiver.d.ts +10 -0
  164. package/dist/src/execution/turn-control-receiver.js +1 -1
  165. package/dist/src/execution/turn-dispatch.d.ts +2 -0
  166. package/dist/src/execution/turn-dispatch.js +1 -1
  167. package/dist/src/execution/turn-execution-cursor.d.ts +2 -8
  168. package/dist/src/execution/turn-execution-cursor.js +1 -1
  169. package/dist/src/execution/turn-workflow.js +1 -1
  170. package/dist/src/execution/workflow-callback-url.d.ts +5 -0
  171. package/dist/src/execution/workflow-callback-url.js +1 -1
  172. package/dist/src/execution/workflow-entry.js +1 -1
  173. package/dist/src/execution/workflow-runtime.d.ts +9 -0
  174. package/dist/src/execution/workflow-runtime.js +1 -1
  175. package/dist/src/execution/workflow-steps.d.ts +7 -21
  176. package/dist/src/execution/workflow-steps.js +1 -1
  177. package/dist/src/harness/advertised-tools.js +1 -1
  178. package/dist/src/harness/authorization.js +1 -1
  179. package/dist/src/harness/execute-tool.d.ts +7 -0
  180. package/dist/src/harness/handles/prompt.d.ts +12 -0
  181. package/dist/src/harness/handles/prompt.js +2 -1
  182. package/dist/src/harness/handles/query.js +1 -1
  183. package/dist/src/harness/handles/store.d.ts +9 -2
  184. package/dist/src/harness/handles/store.js +1 -1
  185. package/dist/src/harness/handles/transitions.d.ts +10 -1
  186. package/dist/src/harness/handles/transitions.js +1 -1
  187. package/dist/src/harness/proxy-input-requests.d.ts +21 -4
  188. package/dist/src/harness/proxy-input-requests.js +1 -1
  189. package/dist/src/harness/runtime-actions.d.ts +2 -0
  190. package/dist/src/harness/runtime-actions.js +1 -1
  191. package/dist/src/harness/session-limit-enforcement.js +1 -1
  192. package/dist/src/harness/tool-loop.js +2 -2
  193. package/dist/src/harness/workflow-runtime-action-state.js +1 -1
  194. package/dist/src/internal/application/package.js +1 -1
  195. package/dist/src/internal/authored-definition/core.js +1 -1
  196. package/dist/src/internal/invocation/agent-invocation.d.ts +54 -0
  197. package/dist/src/internal/invocation/agent-invocation.js +1 -0
  198. package/dist/src/internal/invocation/attributes.d.ts +2 -0
  199. package/dist/src/internal/invocation/attributes.js +1 -0
  200. package/dist/src/internal/invocation/metadata.d.ts +9 -0
  201. package/dist/src/internal/invocation/metadata.js +1 -0
  202. package/dist/src/internal/invocation/workflow-execution.d.ts +32 -0
  203. package/dist/src/internal/invocation/workflow-execution.js +1 -0
  204. package/dist/src/internal/mcp/http-security.d.ts +12 -0
  205. package/dist/src/internal/mcp/http-security.js +1 -0
  206. package/dist/src/internal/mcp/protected-resource.d.ts +9 -0
  207. package/dist/src/internal/mcp/protected-resource.js +1 -0
  208. package/dist/src/internal/mcp/streamable-http-server.d.ts +51 -0
  209. package/dist/src/internal/mcp/streamable-http-server.js +1 -0
  210. package/dist/src/internal/nitro/routes/channel-dispatch.js +1 -1
  211. package/dist/src/internal/nitro/routes/channel-route-context.d.ts +14 -0
  212. package/dist/src/internal/nitro/routes/channel-route-context.js +1 -1
  213. package/dist/src/internal/nitro/routes/runtime-stack.d.ts +2 -0
  214. package/dist/src/internal/nitro/routes/runtime-stack.js +1 -1
  215. package/dist/src/internal/vercel-agent-summary.d.ts +1 -1
  216. package/dist/src/packages/eve-catalog/src/index.js +1 -1
  217. package/dist/src/protocol/message.d.ts +28 -0
  218. package/dist/src/protocol/message.js +2 -2
  219. package/dist/src/protocol/routes.d.ts +14 -0
  220. package/dist/src/protocol/routes.js +1 -1
  221. package/dist/src/public/channels/auth.d.ts +36 -0
  222. package/dist/src/public/channels/auth.js +1 -1
  223. package/dist/src/public/channels/eve.js +1 -1
  224. package/dist/src/public/channels/mcp.d.ts +19 -0
  225. package/dist/src/public/channels/mcp.js +1 -0
  226. package/dist/src/public/definitions/channel.d.ts +2 -2
  227. package/dist/src/public/definitions/channel.js +1 -1
  228. package/dist/src/public/sandbox/backends/vercel.d.ts +5 -4
  229. package/dist/src/public/sandbox/backends/vercel.js +1 -1
  230. package/dist/src/public/sandbox/vercel-sandbox.d.ts +25 -1
  231. package/dist/src/public/sandbox/vercel.d.ts +2 -1
  232. package/dist/src/public/sandbox/vercel.js +1 -1
  233. package/dist/src/react/use-eve-agent.js +1 -1
  234. package/dist/src/runtime/actions/types.d.ts +9 -0
  235. package/dist/src/runtime/actions/types.js +1 -1
  236. package/dist/src/runtime/agent/bootstrap.js +1 -1
  237. package/dist/src/runtime/connections/authorization-complete-page.js +70 -28
  238. package/dist/src/runtime/framework-channels/index.js +1 -1
  239. package/dist/src/runtime/framework-tools/index.js +1 -1
  240. package/dist/src/runtime/framework-tools/tasks.d.ts +95 -0
  241. package/dist/src/runtime/framework-tools/tasks.js +1 -0
  242. package/dist/src/runtime/prompt/compose.d.ts +1 -0
  243. package/dist/src/runtime/prompt/compose.js +1 -1
  244. package/dist/src/runtime/resolve-agent-graph.js +1 -1
  245. package/dist/src/runtime/resolve-agent.js +1 -1
  246. package/dist/src/runtime/session-callback-route.js +1 -1
  247. package/dist/src/runtime/task-input-response-route.d.ts +5 -0
  248. package/dist/src/runtime/task-input-response-route.js +1 -0
  249. package/dist/src/setup/scaffold/create/add-to-project.js +1 -1
  250. package/dist/src/setup/scaffold/create/project.js +1 -1
  251. package/dist/src/setup/scaffold/create/web-template.d.ts +1 -1
  252. package/dist/src/setup/scaffold/create/web-template.js +0 -1
  253. package/dist/src/shared/agent-definition.d.ts +7 -0
  254. package/dist/src/shared/sandbox-network-policy.d.ts +1 -1
  255. package/dist/src/svelte/index.js +1 -1
  256. package/dist/src/svelte/use-eve-agent.js +1 -1
  257. package/dist/src/tasks/json.d.ts +88 -0
  258. package/dist/src/tasks/json.js +1 -0
  259. package/dist/src/tasks/session-index.d.ts +48 -0
  260. package/dist/src/tasks/session-index.js +1 -0
  261. package/dist/src/tasks/task-id.d.ts +34 -0
  262. package/dist/src/tasks/task-id.js +1 -0
  263. package/dist/src/tasks/transitions.d.ts +23 -0
  264. package/dist/src/tasks/transitions.js +1 -0
  265. package/dist/src/tasks/types.d.ts +295 -0
  266. package/dist/src/tasks/types.js +1 -0
  267. package/dist/src/tasks/wire.d.ts +26 -0
  268. package/dist/src/tasks/wire.js +1 -0
  269. package/dist/src/vue/index.js +1 -1
  270. package/dist/src/vue/use-eve-agent.js +1 -1
  271. package/docs/channels/eve.mdx +14 -0
  272. package/docs/guides/client/streaming.mdx +1 -1
  273. package/docs/reference/cli.md +10 -6
  274. package/docs/tools/human-in-the-loop.md +3 -1
  275. package/package.json +8 -1
  276. package/dist/src/compiled/_chunks/node/version-Cztrk7z6.js +0 -1
  277. package/dist/src/execution/route-proxied-deliver-step.js +0 -1
@@ -0,0 +1,29 @@
1
+ //#region src/api-client/api-error.d.ts
2
+ interface Options<ErrorData> {
3
+ message?: string;
4
+ json?: ErrorData;
5
+ text?: string;
6
+ sandboxName?: string;
7
+ sessionId?: string;
8
+ }
9
+ declare class APIError<ErrorData> extends Error {
10
+ response: Response;
11
+ message: string;
12
+ json?: ErrorData;
13
+ text?: string;
14
+ sandboxName?: string;
15
+ sessionId?: string;
16
+ constructor(response: Response, options?: Options<ErrorData>);
17
+ }
18
+ /**
19
+ * Error thrown when a stream error is received streaming.
20
+ * This typically occurs when the sandbox is stopped while streaming.
21
+ */
22
+ declare class StreamError extends Error {
23
+ code: string;
24
+ sessionId: string;
25
+ constructor(code: string, message: string, sessionId: string);
26
+ }
27
+ //#endregion
28
+ export { APIError, StreamError };
29
+ //# sourceMappingURL=api-error.d.ts.map
@@ -0,0 +1,39 @@
1
+ import { RequestOptions } from "./with-retry.js";
2
+ import { Options } from "../_async-retry.js";
3
+ import "#compiled/zod/index.js";
4
+
5
+ //#region src/api-client/base-client.d.ts
6
+ interface RequestParams extends RequestInit {
7
+ headers?: Record<string, string>;
8
+ method?: string;
9
+ onRetry?(error: any, options: RequestOptions): void;
10
+ query?: Record<string, number | string | null | undefined | string[]>;
11
+ retry?: Partial<Options>;
12
+ }
13
+ /**
14
+ * A base API client that provides a convenience wrapper for fetching where
15
+ * we can pass query parameters as an object, support retries, debugging
16
+ * and automatic authorization.
17
+ */
18
+ declare class BaseClient {
19
+ protected token?: string;
20
+ private fetch;
21
+ private debug;
22
+ private baseUrl;
23
+ private agent;
24
+ constructor(params: {
25
+ debug?: boolean;
26
+ baseUrl: string;
27
+ token?: string;
28
+ fetch?: typeof globalThis.fetch;
29
+ });
30
+ protected request(path: string, opts?: RequestParams): Promise<Response>;
31
+ }
32
+ interface Parsed<Data> {
33
+ response: Response;
34
+ text: string;
35
+ json: Data;
36
+ }
37
+ //#endregion
38
+ export { BaseClient, Parsed, RequestParams };
39
+ //# sourceMappingURL=base-client.d.ts.map
@@ -0,0 +1,66 @@
1
+ import { Readable } from "stream";
2
+
3
+ //#region src/api-client/file-writer.d.ts
4
+ interface FileData {
5
+ /**
6
+ * The name (path) of the file to write.
7
+ */
8
+ name: string;
9
+ /**
10
+ * The content of the file.
11
+ */
12
+ content: string | Uint8Array;
13
+ /**
14
+ * The file mode (permissions) to set on the file.
15
+ * For example, 0o755 for executable files.
16
+ */
17
+ mode?: number;
18
+ }
19
+ interface FileStream {
20
+ /**
21
+ * The name (path) of the file to write.
22
+ */
23
+ name: string;
24
+ /**
25
+ * A Readable stream to consume the content of the file.
26
+ */
27
+ content: Readable;
28
+ /**
29
+ * The expected size of the file. This is required to write
30
+ * the header of the compressed file.
31
+ */
32
+ size: number;
33
+ /**
34
+ * The file mode (permissions) to set on the file.
35
+ * For example, 0o755 for executable files.
36
+ */
37
+ mode?: number;
38
+ }
39
+ /**
40
+ * Allows to create a Readable stream with methods to write files
41
+ * to it and to finish it. Files written are compressed together
42
+ * and gzipped in the stream.
43
+ */
44
+ declare class FileWriter {
45
+ readable: Readable;
46
+ private pack;
47
+ constructor();
48
+ /**
49
+ * Allows to add a file to the stream. Size is required to write
50
+ * the tarball header so when content is a stream it must be
51
+ * provided.
52
+ *
53
+ * Returns a Promise resolved once the file is written in the
54
+ * stream.
55
+ */
56
+ addFile(file: FileData | FileStream): Promise<void>;
57
+ /**
58
+ * Allows to finish the stream returning a Promise that will
59
+ * resolve once the readable is effectively closed or
60
+ * errored.
61
+ */
62
+ end(): Promise<void>;
63
+ }
64
+ //#endregion
65
+ export { FileWriter };
66
+ //# sourceMappingURL=file-writer.d.ts.map
@@ -0,0 +1,2 @@
1
+ import { Command, CommandData, CommandFinishedData, CommandFinishedResponse, CommandResponse, CreateSnapshotResponse, InteractiveSessionResponse, LogError, LogLine, LogLineData, LogOutputLine, Sandbox, SandboxMetaData, SandboxRoute, SandboxRouteData, Session, SessionMetaData, SessionResponse, Snapshot, SnapshotMetadata, SnapshotResponse, SnapshotTreeNode, SnapshotTreeNodeData, StopSessionResponse } from "./validators.js";
2
+ import { APIClient } from "./api-client.js";