@mutagent/sdk 0.3.45 → 0.3.47
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.
- package/dist/commonjs/funcs/sandbox-post-api-sandbox-agent-run.d.ts +1 -1
- package/dist/commonjs/funcs/sandbox-post-api-sandbox-agent-run.js +1 -1
- package/dist/commonjs/lib/config.d.ts +2 -2
- package/dist/commonjs/lib/config.js +2 -2
- package/dist/commonjs/models/preset-timeout-ms-keep2.d.ts +3 -3
- package/dist/commonjs/models/preset-timeout-ms-keep2.d.ts.map +1 -1
- package/dist/commonjs/models/preset-timeout-ms-keep2.js +1 -1
- package/dist/commonjs/models/preset-timeout-ms-keep2.js.map +1 -1
- package/dist/commonjs/sdk/sandbox.d.ts +1 -1
- package/dist/commonjs/sdk/sandbox.js +1 -1
- package/dist/esm/funcs/sandbox-post-api-sandbox-agent-run.d.ts +1 -1
- package/dist/esm/funcs/sandbox-post-api-sandbox-agent-run.js +1 -1
- package/dist/esm/lib/config.d.ts +2 -2
- package/dist/esm/lib/config.js +2 -2
- package/dist/esm/models/preset-timeout-ms-keep2.d.ts +3 -3
- package/dist/esm/models/preset-timeout-ms-keep2.d.ts.map +1 -1
- package/dist/esm/models/preset-timeout-ms-keep2.js +1 -1
- package/dist/esm/models/preset-timeout-ms-keep2.js.map +1 -1
- package/dist/esm/sdk/sandbox.d.ts +1 -1
- package/dist/esm/sdk/sandbox.js +1 -1
- package/package.json +1 -1
- package/src/funcs/sandbox-post-api-sandbox-agent-run.ts +1 -1
- package/src/lib/config.ts +2 -2
- package/src/models/preset-timeout-ms-keep2.ts +4 -4
- package/src/sdk/sandbox.ts +1 -1
|
@@ -12,7 +12,7 @@ import { Result } from "../types/fp.js";
|
|
|
12
12
|
* Run one agent turn in a fresh sandbox
|
|
13
13
|
*
|
|
14
14
|
* @remarks
|
|
15
|
-
* `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.
|
|
15
|
+
* `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. `prompt` may be omitted when `args` carries `--name <agent>` instead — the box's own helix then resolves the name against the image's bundled roster and its agent dirs; exactly one of the two is required (422 otherwise). 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.
|
|
16
16
|
*/
|
|
17
17
|
export declare function sandboxPostApiSandboxAgentRun(client: MutagentCore, request: operations.PostApiSandboxAgentRunRequest, options?: RequestOptions): APIPromise<Result<operations.PostApiSandboxAgentRunResponse, errors.ErrorMessage | errors.ErrorMessageStatusCode | MutagentError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>>;
|
|
18
18
|
//# sourceMappingURL=sandbox-post-api-sandbox-agent-run.d.ts.map
|
|
@@ -52,7 +52,7 @@ const async_js_1 = require("../types/async.js");
|
|
|
52
52
|
* Run one agent turn in a fresh sandbox
|
|
53
53
|
*
|
|
54
54
|
* @remarks
|
|
55
|
-
* `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.
|
|
55
|
+
* `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. `prompt` may be omitted when `args` carries `--name <agent>` instead — the box's own helix then resolves the name against the image's bundled roster and its agent dirs; exactly one of the two is required (422 otherwise). 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.
|
|
56
56
|
*/
|
|
57
57
|
function sandboxPostApiSandboxAgentRun(client, request, options) {
|
|
58
58
|
return new async_js_1.APIPromise($do(client, request, options));
|
|
@@ -35,8 +35,8 @@ export declare function serverURLFromOptions(options: SDKOptions): URL | null;
|
|
|
35
35
|
export declare const SDK_METADATA: {
|
|
36
36
|
readonly language: "typescript";
|
|
37
37
|
readonly openapiDocVersion: "2.0.0";
|
|
38
|
-
readonly sdkVersion: "0.3.
|
|
38
|
+
readonly sdkVersion: "0.3.47";
|
|
39
39
|
readonly genVersion: "2.935.1";
|
|
40
|
-
readonly userAgent: "speakeasy-sdk/typescript 0.3.
|
|
40
|
+
readonly userAgent: "speakeasy-sdk/typescript 0.3.47 2.935.1 2.0.0 @mutagent/sdk";
|
|
41
41
|
};
|
|
42
42
|
//# sourceMappingURL=config.d.ts.map
|
|
@@ -31,8 +31,8 @@ function serverURLFromOptions(options) {
|
|
|
31
31
|
exports.SDK_METADATA = {
|
|
32
32
|
language: "typescript",
|
|
33
33
|
openapiDocVersion: "2.0.0",
|
|
34
|
-
sdkVersion: "0.3.
|
|
34
|
+
sdkVersion: "0.3.47",
|
|
35
35
|
genVersion: "2.935.1",
|
|
36
|
-
userAgent: "speakeasy-sdk/typescript 0.3.
|
|
36
|
+
userAgent: "speakeasy-sdk/typescript 0.3.47 2.935.1 2.0.0 @mutagent/sdk",
|
|
37
37
|
};
|
|
38
38
|
//# sourceMappingURL=config.js.map
|
|
@@ -17,9 +17,9 @@ export type PresetTimeoutMsKeep2 = {
|
|
|
17
17
|
*/
|
|
18
18
|
runId?: string | undefined;
|
|
19
19
|
/**
|
|
20
|
-
* WHO the agent is — the agent definition, passed as `helix agent --prompt`.
|
|
20
|
+
* WHO the agent is — the agent definition, passed as `helix agent --prompt`. Omit it to name a definition the BOX resolves instead: `args` must then carry `--name <agent>` (the image’s bundled roster, then the box’s agent dirs). Exactly one of `prompt` or a `--name` in `args` is required.
|
|
21
21
|
*/
|
|
22
|
-
prompt
|
|
22
|
+
prompt?: string | undefined;
|
|
23
23
|
/**
|
|
24
24
|
* WHAT to do this turn — the task, passed as `-p`. A different prompt from `prompt`.
|
|
25
25
|
*/
|
|
@@ -43,7 +43,7 @@ export type PresetTimeoutMsKeep2$Outbound = {
|
|
|
43
43
|
timeoutMs?: number | undefined;
|
|
44
44
|
keep?: boolean | undefined;
|
|
45
45
|
runId?: string | undefined;
|
|
46
|
-
prompt
|
|
46
|
+
prompt?: string | undefined;
|
|
47
47
|
task: string;
|
|
48
48
|
prime?: boolean | undefined;
|
|
49
49
|
args?: Array<string> | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"preset-timeout-ms-keep2.d.ts","sourceRoot":"","sources":["../../../src/models/preset-timeout-ms-keep2.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AAEjC,MAAM,MAAM,oBAAoB,GAAG;IACjC;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC5B;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC/B;;OAEG;IACH,IAAI,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IAC3B;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC3B;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"preset-timeout-ms-keep2.d.ts","sourceRoot":"","sources":["../../../src/models/preset-timeout-ms-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6BAA6B,EAC7B,oBAAoB,CAWpB,CAAC;AAEH,wBAAgB,0BAA0B,CACxC,oBAAoB,EAAE,oBAAoB,GACzC,MAAM,CAIR"}
|
|
@@ -45,7 +45,7 @@ exports.PresetTimeoutMsKeep2$outboundSchema = z.object({
|
|
|
45
45
|
timeoutMs: z.optional(z.number()),
|
|
46
46
|
keep: z.optional(z.boolean()),
|
|
47
47
|
runId: z.optional(z.string()),
|
|
48
|
-
prompt: z.string(),
|
|
48
|
+
prompt: z.optional(z.string()),
|
|
49
49
|
task: z.string(),
|
|
50
50
|
prime: z.optional(z.boolean()),
|
|
51
51
|
args: z.optional(z.array(z.string())),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"preset-timeout-ms-keep2.js","sourceRoot":"","sources":["../../../src/models/preset-timeout-ms-keep2.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAwEH,gEAMC;AA5ED,+CAAiC;AAsDjC,gBAAgB;AACH,QAAA,mCAAmC,GAG5C,CAAC,CAAC,MAAM,CAAC;IACX,MAAM,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;IAC9B,SAAS,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;IACjC,IAAI,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,OAAO,EAAE,CAAC;IAC7B,KAAK,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;IAC7B,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE;
|
|
1
|
+
{"version":3,"file":"preset-timeout-ms-keep2.js","sourceRoot":"","sources":["../../../src/models/preset-timeout-ms-keep2.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAwEH,gEAMC;AA5ED,+CAAiC;AAsDjC,gBAAgB;AACH,QAAA,mCAAmC,GAG5C,CAAC,CAAC,MAAM,CAAC;IACX,MAAM,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;IAC9B,SAAS,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;IACjC,IAAI,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,OAAO,EAAE,CAAC;IAC7B,KAAK,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;IAC7B,MAAM,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;IAC9B,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,KAAK,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,OAAO,EAAE,CAAC;IAC9B,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,EAAE,CAAC;CAC5B,CAAC,CAAC;AAEH,SAAgB,0BAA0B,CACxC,oBAA0C;IAE1C,OAAO,IAAI,CAAC,SAAS,CACnB,2CAAmC,CAAC,KAAK,CAAC,oBAAoB,CAAC,CAChE,CAAC;AACJ,CAAC"}
|
|
@@ -133,7 +133,7 @@ export declare class Sandbox extends ClientSDK {
|
|
|
133
133
|
* Run one agent turn in a fresh sandbox
|
|
134
134
|
*
|
|
135
135
|
* @remarks
|
|
136
|
-
* `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.
|
|
136
|
+
* `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. `prompt` may be omitted when `args` carries `--name <agent>` instead — the box's own helix then resolves the name against the image's bundled roster and its agent dirs; exactly one of the two is required (422 otherwise). 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.
|
|
137
137
|
*/
|
|
138
138
|
postApiSandboxAgentRun(request: operations.PostApiSandboxAgentRunRequest, options?: RequestOptions): Promise<operations.PostApiSandboxAgentRunResponse>;
|
|
139
139
|
/**
|
|
@@ -197,7 +197,7 @@ class Sandbox extends sdks_js_1.ClientSDK {
|
|
|
197
197
|
* Run one agent turn in a fresh sandbox
|
|
198
198
|
*
|
|
199
199
|
* @remarks
|
|
200
|
-
* `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.
|
|
200
|
+
* `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. `prompt` may be omitted when `args` carries `--name <agent>` instead — the box's own helix then resolves the name against the image's bundled roster and its agent dirs; exactly one of the two is required (422 otherwise). 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.
|
|
201
201
|
*/
|
|
202
202
|
async postApiSandboxAgentRun(request, options) {
|
|
203
203
|
return (0, fp_js_1.unwrapAsync)((0, sandbox_post_api_sandbox_agent_run_js_1.sandboxPostApiSandboxAgentRun)(this, request, options));
|
|
@@ -12,7 +12,7 @@ import { Result } from "../types/fp.js";
|
|
|
12
12
|
* Run one agent turn in a fresh sandbox
|
|
13
13
|
*
|
|
14
14
|
* @remarks
|
|
15
|
-
* `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.
|
|
15
|
+
* `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. `prompt` may be omitted when `args` carries `--name <agent>` instead — the box's own helix then resolves the name against the image's bundled roster and its agent dirs; exactly one of the two is required (422 otherwise). 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.
|
|
16
16
|
*/
|
|
17
17
|
export declare function sandboxPostApiSandboxAgentRun(client: MutagentCore, request: operations.PostApiSandboxAgentRunRequest, options?: RequestOptions): APIPromise<Result<operations.PostApiSandboxAgentRunResponse, errors.ErrorMessage | errors.ErrorMessageStatusCode | MutagentError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>>;
|
|
18
18
|
//# sourceMappingURL=sandbox-post-api-sandbox-agent-run.d.ts.map
|
|
@@ -16,7 +16,7 @@ import { APIPromise } from "../types/async.js";
|
|
|
16
16
|
* Run one agent turn in a fresh sandbox
|
|
17
17
|
*
|
|
18
18
|
* @remarks
|
|
19
|
-
* `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.
|
|
19
|
+
* `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. `prompt` may be omitted when `args` carries `--name <agent>` instead — the box's own helix then resolves the name against the image's bundled roster and its agent dirs; exactly one of the two is required (422 otherwise). 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.
|
|
20
20
|
*/
|
|
21
21
|
export function sandboxPostApiSandboxAgentRun(client, request, options) {
|
|
22
22
|
return new APIPromise($do(client, request, options));
|
package/dist/esm/lib/config.d.ts
CHANGED
|
@@ -35,8 +35,8 @@ export declare function serverURLFromOptions(options: SDKOptions): URL | null;
|
|
|
35
35
|
export declare const SDK_METADATA: {
|
|
36
36
|
readonly language: "typescript";
|
|
37
37
|
readonly openapiDocVersion: "2.0.0";
|
|
38
|
-
readonly sdkVersion: "0.3.
|
|
38
|
+
readonly sdkVersion: "0.3.47";
|
|
39
39
|
readonly genVersion: "2.935.1";
|
|
40
|
-
readonly userAgent: "speakeasy-sdk/typescript 0.3.
|
|
40
|
+
readonly userAgent: "speakeasy-sdk/typescript 0.3.47 2.935.1 2.0.0 @mutagent/sdk";
|
|
41
41
|
};
|
|
42
42
|
//# sourceMappingURL=config.d.ts.map
|
package/dist/esm/lib/config.js
CHANGED
|
@@ -27,8 +27,8 @@ export function serverURLFromOptions(options) {
|
|
|
27
27
|
export const SDK_METADATA = {
|
|
28
28
|
language: "typescript",
|
|
29
29
|
openapiDocVersion: "2.0.0",
|
|
30
|
-
sdkVersion: "0.3.
|
|
30
|
+
sdkVersion: "0.3.47",
|
|
31
31
|
genVersion: "2.935.1",
|
|
32
|
-
userAgent: "speakeasy-sdk/typescript 0.3.
|
|
32
|
+
userAgent: "speakeasy-sdk/typescript 0.3.47 2.935.1 2.0.0 @mutagent/sdk",
|
|
33
33
|
};
|
|
34
34
|
//# sourceMappingURL=config.js.map
|
|
@@ -17,9 +17,9 @@ export type PresetTimeoutMsKeep2 = {
|
|
|
17
17
|
*/
|
|
18
18
|
runId?: string | undefined;
|
|
19
19
|
/**
|
|
20
|
-
* WHO the agent is — the agent definition, passed as `helix agent --prompt`.
|
|
20
|
+
* WHO the agent is — the agent definition, passed as `helix agent --prompt`. Omit it to name a definition the BOX resolves instead: `args` must then carry `--name <agent>` (the image’s bundled roster, then the box’s agent dirs). Exactly one of `prompt` or a `--name` in `args` is required.
|
|
21
21
|
*/
|
|
22
|
-
prompt
|
|
22
|
+
prompt?: string | undefined;
|
|
23
23
|
/**
|
|
24
24
|
* WHAT to do this turn — the task, passed as `-p`. A different prompt from `prompt`.
|
|
25
25
|
*/
|
|
@@ -43,7 +43,7 @@ export type PresetTimeoutMsKeep2$Outbound = {
|
|
|
43
43
|
timeoutMs?: number | undefined;
|
|
44
44
|
keep?: boolean | undefined;
|
|
45
45
|
runId?: string | undefined;
|
|
46
|
-
prompt
|
|
46
|
+
prompt?: string | undefined;
|
|
47
47
|
task: string;
|
|
48
48
|
prime?: boolean | undefined;
|
|
49
49
|
args?: Array<string> | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"preset-timeout-ms-keep2.d.ts","sourceRoot":"","sources":["../../../src/models/preset-timeout-ms-keep2.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AAEjC,MAAM,MAAM,oBAAoB,GAAG;IACjC;;OAEG;IACH,MAAM,C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GAAG,SAAS,CAAC;IAC3B,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC5B,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IAC5B,IAAI,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,GAAG,SAAS,CAAC;IACjC,GAAG,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC1B,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,mCAAmC,EAAE,CAAC,CAAC,WAAW,CAC7D,6BAA6B,EAC7B,oBAAoB,CAWpB,CAAC;AAEH,wBAAgB,0BAA0B,CACxC,oBAAoB,EAAE,oBAAoB,GACzC,MAAM,CAIR"}
|
|
@@ -8,7 +8,7 @@ export const PresetTimeoutMsKeep2$outboundSchema = z.object({
|
|
|
8
8
|
timeoutMs: z.optional(z.number()),
|
|
9
9
|
keep: z.optional(z.boolean()),
|
|
10
10
|
runId: z.optional(z.string()),
|
|
11
|
-
prompt: z.string(),
|
|
11
|
+
prompt: z.optional(z.string()),
|
|
12
12
|
task: z.string(),
|
|
13
13
|
prime: z.optional(z.boolean()),
|
|
14
14
|
args: z.optional(z.array(z.string())),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"preset-timeout-ms-keep2.js","sourceRoot":"","sources":["../../../src/models/preset-timeout-ms-keep2.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AAsDjC,gBAAgB;AAChB,MAAM,CAAC,MAAM,mCAAmC,GAG5C,CAAC,CAAC,MAAM,CAAC;IACX,MAAM,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;IAC9B,SAAS,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;IACjC,IAAI,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,OAAO,EAAE,CAAC;IAC7B,KAAK,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;IAC7B,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE;
|
|
1
|
+
{"version":3,"file":"preset-timeout-ms-keep2.js","sourceRoot":"","sources":["../../../src/models/preset-timeout-ms-keep2.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AAsDjC,gBAAgB;AAChB,MAAM,CAAC,MAAM,mCAAmC,GAG5C,CAAC,CAAC,MAAM,CAAC;IACX,MAAM,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;IAC9B,SAAS,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;IACjC,IAAI,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,OAAO,EAAE,CAAC;IAC7B,KAAK,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;IAC7B,MAAM,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;IAC9B,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,KAAK,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,OAAO,EAAE,CAAC;IAC9B,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,EAAE,CAAC;CAC5B,CAAC,CAAC;AAEH,MAAM,UAAU,0BAA0B,CACxC,oBAA0C;IAE1C,OAAO,IAAI,CAAC,SAAS,CACnB,mCAAmC,CAAC,KAAK,CAAC,oBAAoB,CAAC,CAChE,CAAC;AACJ,CAAC"}
|
|
@@ -133,7 +133,7 @@ export declare class Sandbox extends ClientSDK {
|
|
|
133
133
|
* Run one agent turn in a fresh sandbox
|
|
134
134
|
*
|
|
135
135
|
* @remarks
|
|
136
|
-
* `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.
|
|
136
|
+
* `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. `prompt` may be omitted when `args` carries `--name <agent>` instead — the box's own helix then resolves the name against the image's bundled roster and its agent dirs; exactly one of the two is required (422 otherwise). 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.
|
|
137
137
|
*/
|
|
138
138
|
postApiSandboxAgentRun(request: operations.PostApiSandboxAgentRunRequest, options?: RequestOptions): Promise<operations.PostApiSandboxAgentRunResponse>;
|
|
139
139
|
/**
|
package/dist/esm/sdk/sandbox.js
CHANGED
|
@@ -194,7 +194,7 @@ export class Sandbox extends ClientSDK {
|
|
|
194
194
|
* Run one agent turn in a fresh sandbox
|
|
195
195
|
*
|
|
196
196
|
* @remarks
|
|
197
|
-
* `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.
|
|
197
|
+
* `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. `prompt` may be omitted when `args` carries `--name <agent>` instead — the box's own helix then resolves the name against the image's bundled roster and its agent dirs; exactly one of the two is required (422 otherwise). 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.
|
|
198
198
|
*/
|
|
199
199
|
async postApiSandboxAgentRun(request, options) {
|
|
200
200
|
return unwrapAsync(sandboxPostApiSandboxAgentRun(this, request, options));
|
package/package.json
CHANGED
|
@@ -31,7 +31,7 @@ import { Result } from "../types/fp.js";
|
|
|
31
31
|
* Run one agent turn in a fresh sandbox
|
|
32
32
|
*
|
|
33
33
|
* @remarks
|
|
34
|
-
* `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.
|
|
34
|
+
* `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. `prompt` may be omitted when `args` carries `--name <agent>` instead — the box's own helix then resolves the name against the image's bundled roster and its agent dirs; exactly one of the two is required (422 otherwise). 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.
|
|
35
35
|
*/
|
|
36
36
|
export function sandboxPostApiSandboxAgentRun(
|
|
37
37
|
client: MutagentCore,
|
package/src/lib/config.ts
CHANGED
|
@@ -65,7 +65,7 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
|
|
|
65
65
|
export const SDK_METADATA = {
|
|
66
66
|
language: "typescript",
|
|
67
67
|
openapiDocVersion: "2.0.0",
|
|
68
|
-
sdkVersion: "0.3.
|
|
68
|
+
sdkVersion: "0.3.47",
|
|
69
69
|
genVersion: "2.935.1",
|
|
70
|
-
userAgent: "speakeasy-sdk/typescript 0.3.
|
|
70
|
+
userAgent: "speakeasy-sdk/typescript 0.3.47 2.935.1 2.0.0 @mutagent/sdk",
|
|
71
71
|
} as const;
|
|
@@ -22,9 +22,9 @@ export type PresetTimeoutMsKeep2 = {
|
|
|
22
22
|
*/
|
|
23
23
|
runId?: string | undefined;
|
|
24
24
|
/**
|
|
25
|
-
* WHO the agent is — the agent definition, passed as `helix agent --prompt`.
|
|
25
|
+
* WHO the agent is — the agent definition, passed as `helix agent --prompt`. Omit it to name a definition the BOX resolves instead: `args` must then carry `--name <agent>` (the image’s bundled roster, then the box’s agent dirs). Exactly one of `prompt` or a `--name` in `args` is required.
|
|
26
26
|
*/
|
|
27
|
-
prompt
|
|
27
|
+
prompt?: string | undefined;
|
|
28
28
|
/**
|
|
29
29
|
* WHAT to do this turn — the task, passed as `-p`. A different prompt from `prompt`.
|
|
30
30
|
*/
|
|
@@ -49,7 +49,7 @@ export type PresetTimeoutMsKeep2$Outbound = {
|
|
|
49
49
|
timeoutMs?: number | undefined;
|
|
50
50
|
keep?: boolean | undefined;
|
|
51
51
|
runId?: string | undefined;
|
|
52
|
-
prompt
|
|
52
|
+
prompt?: string | undefined;
|
|
53
53
|
task: string;
|
|
54
54
|
prime?: boolean | undefined;
|
|
55
55
|
args?: Array<string> | undefined;
|
|
@@ -65,7 +65,7 @@ export const PresetTimeoutMsKeep2$outboundSchema: z.ZodMiniType<
|
|
|
65
65
|
timeoutMs: z.optional(z.number()),
|
|
66
66
|
keep: z.optional(z.boolean()),
|
|
67
67
|
runId: z.optional(z.string()),
|
|
68
|
-
prompt: z.string(),
|
|
68
|
+
prompt: z.optional(z.string()),
|
|
69
69
|
task: z.string(),
|
|
70
70
|
prime: z.optional(z.boolean()),
|
|
71
71
|
args: z.optional(z.array(z.string())),
|
package/src/sdk/sandbox.ts
CHANGED
|
@@ -342,7 +342,7 @@ export class Sandbox extends ClientSDK {
|
|
|
342
342
|
* Run one agent turn in a fresh sandbox
|
|
343
343
|
*
|
|
344
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.
|
|
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. `prompt` may be omitted when `args` carries `--name <agent>` instead — the box's own helix then resolves the name against the image's bundled roster and its agent dirs; exactly one of the two is required (422 otherwise). 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
346
|
*/
|
|
347
347
|
async postApiSandboxAgentRun(
|
|
348
348
|
request: operations.PostApiSandboxAgentRunRequest,
|