@mutagent/sdk 0.3.44 → 0.3.46
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/README.md +2 -1
- package/dist/commonjs/funcs/sandbox-get-api-sandbox-by-id.d.ts +1 -1
- package/dist/commonjs/funcs/sandbox-get-api-sandbox-by-id.d.ts.map +1 -1
- package/dist/commonjs/funcs/sandbox-get-api-sandbox-by-id.js +1 -1
- package/dist/commonjs/funcs/sandbox-get-api-sandbox-by-id.js.map +1 -1
- 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/errors/get-api-sandbox-by-id.d.ts +27 -0
- package/dist/commonjs/models/errors/get-api-sandbox-by-id.d.ts.map +1 -0
- package/dist/commonjs/models/errors/get-api-sandbox-by-id.js +72 -0
- package/dist/commonjs/models/errors/get-api-sandbox-by-id.js.map +1 -0
- package/dist/commonjs/models/errors/index.d.ts +1 -0
- package/dist/commonjs/models/errors/index.d.ts.map +1 -1
- package/dist/commonjs/models/errors/index.js +1 -0
- package/dist/commonjs/models/errors/index.js.map +1 -1
- 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-get-api-sandbox-by-id.d.ts +1 -1
- package/dist/esm/funcs/sandbox-get-api-sandbox-by-id.d.ts.map +1 -1
- package/dist/esm/funcs/sandbox-get-api-sandbox-by-id.js +1 -1
- package/dist/esm/funcs/sandbox-get-api-sandbox-by-id.js.map +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/errors/get-api-sandbox-by-id.d.ts +27 -0
- package/dist/esm/models/errors/get-api-sandbox-by-id.d.ts.map +1 -0
- package/dist/esm/models/errors/get-api-sandbox-by-id.js +35 -0
- package/dist/esm/models/errors/get-api-sandbox-by-id.js.map +1 -0
- package/dist/esm/models/errors/index.d.ts +1 -0
- package/dist/esm/models/errors/index.d.ts.map +1 -1
- package/dist/esm/models/errors/index.js +1 -0
- package/dist/esm/models/errors/index.js.map +1 -1
- 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-get-api-sandbox-by-id.ts +4 -0
- package/src/funcs/sandbox-post-api-sandbox-agent-run.ts +1 -1
- package/src/lib/config.ts +2 -2
- package/src/models/errors/get-api-sandbox-by-id.ts +62 -0
- package/src/models/errors/index.ts +1 -0
- package/src/models/preset-timeout-ms-keep2.ts +4 -4
- package/src/sdk/sandbox.ts +1 -1
package/README.md
CHANGED
|
@@ -1066,7 +1066,7 @@ run();
|
|
|
1066
1066
|
* [`MutagentError`](./src/models/errors/mutagent-error.ts): The base class for HTTP error responses.
|
|
1067
1067
|
* [`ErrorMessage`](./src/models/errors/error-message.ts): *
|
|
1068
1068
|
|
|
1069
|
-
<details><summary>Less common errors (
|
|
1069
|
+
<details><summary>Less common errors (12)</summary>
|
|
1070
1070
|
|
|
1071
1071
|
<br />
|
|
1072
1072
|
|
|
@@ -1084,6 +1084,7 @@ run();
|
|
|
1084
1084
|
* [`WsError`](./src/models/errors/ws-error.ts): Standard error response. Applicable to 6 of 74 methods.*
|
|
1085
1085
|
* [`TestConnectionResultError`](./src/models/errors/test-connection-result-error.ts): Provider connection test result. Applicable to 1 of 74 methods.*
|
|
1086
1086
|
* [`WorkspaceModelListingError`](./src/models/errors/workspace-model-listing-error.ts): A provider configuration's models, with this workspace's enablement applied. Applicable to 1 of 74 methods.*
|
|
1087
|
+
* [`ServiceUnavailableError`](./src/models/errors/service-unavailable-error.ts): Response for status 503. Status code `503`. Applicable to 1 of 74 methods.*
|
|
1087
1088
|
* [`ResponseValidationError`](./src/models/errors/response-validation-error.ts): Type mismatch between the data returned from the server and the structure expected by the SDK. See `error.rawValue` for the raw value and `error.pretty()` for a nicely formatted multi-line string.
|
|
1088
1089
|
|
|
1089
1090
|
</details>
|
|
@@ -11,5 +11,5 @@ import { Result } from "../types/fp.js";
|
|
|
11
11
|
/**
|
|
12
12
|
* Get sandbox status
|
|
13
13
|
*/
|
|
14
|
-
export declare function sandboxGetApiSandboxById(client: MutagentCore, request: operations.GetApiSandboxByIdRequest, options?: RequestOptions): APIPromise<Result<operations.GetApiSandboxByIdResponse, errors.ErrorMessage | errors.ErrorMessageStatusCode | MutagentError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>>;
|
|
14
|
+
export declare function sandboxGetApiSandboxById(client: MutagentCore, request: operations.GetApiSandboxByIdRequest, options?: RequestOptions): APIPromise<Result<operations.GetApiSandboxByIdResponse, errors.ErrorMessage | errors.ErrorMessageStatusCode | errors.ServiceUnavailableError | MutagentError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>>;
|
|
15
15
|
//# sourceMappingURL=sandbox-get-api-sandbox-by-id.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sandbox-get-api-sandbox-by-id.d.ts","sourceRoot":"","sources":["../../../src/funcs/sandbox-get-api-sandbox-by-id.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAM1C,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAGhD,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACtB,MAAM,wCAAwC,CAAC;AAChD,OAAO,KAAK,MAAM,MAAM,2BAA2B,CAAC;AACpD,OAAO,EAAE,aAAa,EAAE,MAAM,oCAAoC,CAAC;AACnE,OAAO,EAAE,uBAAuB,EAAE,MAAM,+CAA+C,CAAC;AACxF,OAAO,EAAE,kBAAkB,EAAE,MAAM,0CAA0C,CAAC;AAC9E,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,EAAW,UAAU,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAExC;;GAEG;AACH,wBAAgB,wBAAwB,CACtC,MAAM,EAAE,YAAY,EACpB,OAAO,EAAE,UAAU,CAAC,wBAAwB,EAC5C,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CACX,MAAM,CACJ,UAAU,CAAC,yBAAyB,EAClC,MAAM,CAAC,YAAY,GACnB,MAAM,CAAC,sBAAsB,GAC7B,aAAa,GACb,uBAAuB,GACvB,eAAe,GACf,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,qBAAqB,GACrB,kBAAkB,CACrB,CACF,CAMA"}
|
|
1
|
+
{"version":3,"file":"sandbox-get-api-sandbox-by-id.d.ts","sourceRoot":"","sources":["../../../src/funcs/sandbox-get-api-sandbox-by-id.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAM1C,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAGhD,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACtB,MAAM,wCAAwC,CAAC;AAChD,OAAO,KAAK,MAAM,MAAM,2BAA2B,CAAC;AACpD,OAAO,EAAE,aAAa,EAAE,MAAM,oCAAoC,CAAC;AACnE,OAAO,EAAE,uBAAuB,EAAE,MAAM,+CAA+C,CAAC;AACxF,OAAO,EAAE,kBAAkB,EAAE,MAAM,0CAA0C,CAAC;AAC9E,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,EAAW,UAAU,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAExC;;GAEG;AACH,wBAAgB,wBAAwB,CACtC,MAAM,EAAE,YAAY,EACpB,OAAO,EAAE,UAAU,CAAC,wBAAwB,EAC5C,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CACX,MAAM,CACJ,UAAU,CAAC,yBAAyB,EAClC,MAAM,CAAC,YAAY,GACnB,MAAM,CAAC,sBAAsB,GAC7B,MAAM,CAAC,uBAAuB,GAC9B,aAAa,GACb,uBAAuB,GACvB,eAAe,GACf,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,qBAAqB,GACrB,kBAAkB,CACrB,CACF,CAMA"}
|
|
@@ -112,7 +112,7 @@ async function $do(client, request, options) {
|
|
|
112
112
|
const responseFields = {
|
|
113
113
|
HttpMeta: { Response: response, Request: req },
|
|
114
114
|
};
|
|
115
|
-
const [result] = await M.match(M.json(200, operations.GetApiSandboxByIdResponse$inboundSchema), M.jsonErr([400, 401, 403, 404], errors.ErrorMessage$inboundSchema), M.jsonErr(500, errors.ErrorMessageStatusCode$inboundSchema), M.fail("4XX"), M.fail("5XX"))(response, req, { extraFields: responseFields });
|
|
115
|
+
const [result] = await M.match(M.json(200, operations.GetApiSandboxByIdResponse$inboundSchema), M.jsonErr([400, 401, 403, 404], errors.ErrorMessage$inboundSchema), M.jsonErr(500, errors.ErrorMessageStatusCode$inboundSchema), M.jsonErr(503, errors.ServiceUnavailableError$inboundSchema), M.fail("4XX"), M.fail("5XX"))(response, req, { extraFields: responseFields });
|
|
116
116
|
if (!result.ok) {
|
|
117
117
|
return [result, { status: "complete", request: req, response }];
|
|
118
118
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sandbox-get-api-sandbox-by-id.js","sourceRoot":"","sources":["../../../src/funcs/sandbox-get-api-sandbox-by-id.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA8BH,
|
|
1
|
+
{"version":3,"file":"sandbox-get-api-sandbox-by-id.js","sourceRoot":"","sources":["../../../src/funcs/sandbox-get-api-sandbox-by-id.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA8BH,4DAyBC;AArDD,+CAAiC;AAEjC,sDAAmD;AACnD,4CAAiD;AACjD,sDAAwC;AACxC,wDAAkD;AAClD,kDAA8C;AAE9C,oDAA4E;AAC5E,0CAA2C;AAQ3C,kEAAoD;AAIpD,0EAA4D;AAC5D,gDAAwD;AAGxD;;GAEG;AACH,SAAgB,wBAAwB,CACtC,MAAoB,EACpB,OAA4C,EAC5C,OAAwB;IAiBxB,OAAO,IAAI,qBAAU,CAAC,GAAG,CACvB,MAAM,EACN,OAAO,EACP,OAAO,CACR,CAAC,CAAC;AACL,CAAC;AAED,KAAK,UAAU,GAAG,CAChB,MAAoB,EACpB,OAA4C,EAC5C,OAAwB;IAoBxB,MAAM,MAAM,GAAG,IAAA,sBAAS,EACtB,OAAO,EACP,CAAC,KAAK,EAAE,EAAE,CACR,CAAC,CAAC,KAAK,CAAC,UAAU,CAAC,uCAAuC,EAAE,KAAK,CAAC,EACpE,yBAAyB,CAC1B,CAAC;IACF,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE,CAAC;QACf,OAAO,CAAC,MAAM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AE,UAAU,CAAC,uCAAuC,CAAC,EAC/D,CAAC,CAAC,OAAO,CAAC,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC,EAAE,MAAM,CAAC,0BAA0B,CAAC,EAClE,CAAC,CAAC,OAAO,CAAC,GAAG,EAAE,MAAM,CAAC,oCAAoC,CAAC,EAC3D,CAAC,CAAC,OAAO,CAAC,GAAG,EAAE,MAAM,CAAC,qCAAqC,CAAC,EAC5D,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,EACb,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CACd,CAAC,QAAQ,EAAE,GAAG,EAAE,EAAE,WAAW,EAAE,cAAc,EAAE,CAAC,CAAC;IAClD,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE,CAAC;QACf,OAAO,CAAC,MAAM,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,GAAG,EAAE,QAAQ,EAAE,CAAC,CAAC;IAClE,CAAC;IAED,OAAO,CAAC,MAAM,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,GAAG,EAAE,QAAQ,EAAE,CAAC,CAAC;AAClE,CAAC"}
|
|
@@ -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.46";
|
|
39
39
|
readonly genVersion: "2.935.1";
|
|
40
|
-
readonly userAgent: "speakeasy-sdk/typescript 0.3.
|
|
40
|
+
readonly userAgent: "speakeasy-sdk/typescript 0.3.46 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.46",
|
|
35
35
|
genVersion: "2.935.1",
|
|
36
|
-
userAgent: "speakeasy-sdk/typescript 0.3.
|
|
36
|
+
userAgent: "speakeasy-sdk/typescript 0.3.46 2.935.1 2.0.0 @mutagent/sdk",
|
|
37
37
|
};
|
|
38
38
|
//# sourceMappingURL=config.js.map
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import * as z from "zod/v4-mini";
|
|
2
|
+
import { MutagentError } from "./mutagent-error.js";
|
|
3
|
+
/**
|
|
4
|
+
* Response for status 503
|
|
5
|
+
*/
|
|
6
|
+
export type ServiceUnavailableErrorData = {
|
|
7
|
+
error: string;
|
|
8
|
+
message: string;
|
|
9
|
+
provider: string;
|
|
10
|
+
};
|
|
11
|
+
/**
|
|
12
|
+
* Response for status 503
|
|
13
|
+
*/
|
|
14
|
+
export declare class ServiceUnavailableError extends MutagentError {
|
|
15
|
+
error: string;
|
|
16
|
+
provider: string;
|
|
17
|
+
/** The original data that was passed to this error instance. */
|
|
18
|
+
data$: ServiceUnavailableErrorData;
|
|
19
|
+
constructor(err: ServiceUnavailableErrorData, httpMeta: {
|
|
20
|
+
response: Response;
|
|
21
|
+
request: Request;
|
|
22
|
+
body: string;
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
/** @internal */
|
|
26
|
+
export declare const ServiceUnavailableError$inboundSchema: z.ZodMiniType<ServiceUnavailableError, unknown>;
|
|
27
|
+
//# sourceMappingURL=get-api-sandbox-by-id.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-api-sandbox-by-id.d.ts","sourceRoot":"","sources":["../../../../src/models/errors/get-api-sandbox-by-id.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AAEjC,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAEpD;;GAEG;AACH,MAAM,MAAM,2BAA2B,GAAG;IACxC,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF;;GAEG;AACH,qBAAa,uBAAwB,SAAQ,aAAa;IACxD,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;IAEjB,gEAAgE;IAChE,KAAK,EAAE,2BAA2B,CAAC;gBAGjC,GAAG,EAAE,2BAA2B,EAChC,QAAQ,EAAE;QAAE,QAAQ,EAAE,QAAQ,CAAC;QAAC,OAAO,EAAE,OAAO,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE;CAUnE;AAED,gBAAgB;AAChB,eAAO,MAAM,qCAAqC,EAAE,CAAC,CAAC,WAAW,CAC/D,uBAAuB,EACvB,OAAO,CAiBR,CAAC"}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.ServiceUnavailableError$inboundSchema = exports.ServiceUnavailableError = void 0;
|
|
40
|
+
const z = __importStar(require("zod/v4-mini"));
|
|
41
|
+
const types = __importStar(require("../../types/primitives.js"));
|
|
42
|
+
const mutagent_error_js_1 = require("./mutagent-error.js");
|
|
43
|
+
/**
|
|
44
|
+
* Response for status 503
|
|
45
|
+
*/
|
|
46
|
+
class ServiceUnavailableError extends mutagent_error_js_1.MutagentError {
|
|
47
|
+
constructor(err, httpMeta) {
|
|
48
|
+
const message = err.message || `API error occurred: ${JSON.stringify(err)}`;
|
|
49
|
+
super(message, httpMeta);
|
|
50
|
+
this.data$ = err;
|
|
51
|
+
this.error = err.error;
|
|
52
|
+
this.provider = err.provider;
|
|
53
|
+
this.name = "ServiceUnavailableError";
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
exports.ServiceUnavailableError = ServiceUnavailableError;
|
|
57
|
+
/** @internal */
|
|
58
|
+
exports.ServiceUnavailableError$inboundSchema = z.pipe(z.object({
|
|
59
|
+
error: types.string(),
|
|
60
|
+
message: types.string(),
|
|
61
|
+
provider: types.string(),
|
|
62
|
+
request$: z.custom(x => x instanceof Request),
|
|
63
|
+
response$: z.custom(x => x instanceof Response),
|
|
64
|
+
body$: z.string(),
|
|
65
|
+
}), z.transform((v) => {
|
|
66
|
+
return new ServiceUnavailableError(v, {
|
|
67
|
+
request: v.request$,
|
|
68
|
+
response: v.response$,
|
|
69
|
+
body: v.body$,
|
|
70
|
+
});
|
|
71
|
+
}));
|
|
72
|
+
//# sourceMappingURL=get-api-sandbox-by-id.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-api-sandbox-by-id.js","sourceRoot":"","sources":["../../../../src/models/errors/get-api-sandbox-by-id.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,+CAAiC;AACjC,iEAAmD;AACnD,2DAAoD;AAWpD;;GAEG;AACH,MAAa,uBAAwB,SAAQ,iCAAa;IAOxD,YACE,GAAgC,EAChC,Q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/C,cAAc,oBAAoB,CAAC;AACnC,cAAc,yBAAyB,CAAC;AACxC,cAAc,qBAAqB,CAAC;AACpC,cAAc,qBAAqB,CAAC;AACpC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,gBAAgB,CAAC;AAC/B,cAAc,2BAA2B,CAAC;AAC1C,cAAc,mCAAmC,CAAC;AAClD,cAAc,oCAAoC,CAAC;AACnD,cAAc,eAAe,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/models/errors/index.ts"],"names":[],"mappings":"AAIA,cAAc,gCAAgC,CAAC;AAC/C,cAAc,oBAAoB,CAAC;AACnC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,yBAAyB,CAAC;AACxC,cAAc,qBAAqB,CAAC;AACpC,cAAc,qBAAqB,CAAC;AACpC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,gBAAgB,CAAC;AAC/B,cAAc,2BAA2B,CAAC;AAC1C,cAAc,mCAAmC,CAAC;AAClD,cAAc,oCAAoC,CAAC;AACnD,cAAc,eAAe,CAAC"}
|
|
@@ -19,6 +19,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
19
19
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
20
20
|
__exportStar(require("./error-message-status-code.js"), exports);
|
|
21
21
|
__exportStar(require("./error-message.js"), exports);
|
|
22
|
+
__exportStar(require("./get-api-sandbox-by-id.js"), exports);
|
|
22
23
|
__exportStar(require("./http-client-errors.js"), exports);
|
|
23
24
|
__exportStar(require("./mutagent-error.js"), exports);
|
|
24
25
|
__exportStar(require("./provider-error.js"), exports);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/models/errors/index.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;AAEH,iEAA+C;AAC/C,qDAAmC;AACnC,0DAAwC;AACxC,sDAAoC;AACpC,sDAAoC;AACpC,iEAA+C;AAC/C,iDAA+B;AAC/B,4DAA0C;AAC1C,oEAAkD;AAClD,qEAAmD;AACnD,gDAA8B"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/models/errors/index.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;AAEH,iEAA+C;AAC/C,qDAAmC;AACnC,6DAA2C;AAC3C,0DAAwC;AACxC,sDAAoC;AACpC,sDAAoC;AACpC,iEAA+C;AAC/C,iDAA+B;AAC/B,4DAA0C;AAC1C,oEAAkD;AAClD,qEAAmD;AACnD,gDAA8B"}
|
|
@@ -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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AAC,EAAE,OAAO,GAAG,SAAS,CAAC;IAC3B,KAAK,CAAC,EAAE,MAAM,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"}
|
|
@@ -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,EA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K,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));
|
|
@@ -11,5 +11,5 @@ import { Result } from "../types/fp.js";
|
|
|
11
11
|
/**
|
|
12
12
|
* Get sandbox status
|
|
13
13
|
*/
|
|
14
|
-
export declare function sandboxGetApiSandboxById(client: MutagentCore, request: operations.GetApiSandboxByIdRequest, options?: RequestOptions): APIPromise<Result<operations.GetApiSandboxByIdResponse, errors.ErrorMessage | errors.ErrorMessageStatusCode | MutagentError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>>;
|
|
14
|
+
export declare function sandboxGetApiSandboxById(client: MutagentCore, request: operations.GetApiSandboxByIdRequest, options?: RequestOptions): APIPromise<Result<operations.GetApiSandboxByIdResponse, errors.ErrorMessage | errors.ErrorMessageStatusCode | errors.ServiceUnavailableError | MutagentError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>>;
|
|
15
15
|
//# sourceMappingURL=sandbox-get-api-sandbox-by-id.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sandbox-get-api-sandbox-by-id.d.ts","sourceRoot":"","sources":["../../../src/funcs/sandbox-get-api-sandbox-by-id.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAM1C,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAGhD,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACtB,MAAM,wCAAwC,CAAC;AAChD,OAAO,KAAK,MAAM,MAAM,2BAA2B,CAAC;AACpD,OAAO,EAAE,aAAa,EAAE,MAAM,oCAAoC,CAAC;AACnE,OAAO,EAAE,uBAAuB,EAAE,MAAM,+CAA+C,CAAC;AACxF,OAAO,EAAE,kBAAkB,EAAE,MAAM,0CAA0C,CAAC;AAC9E,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,EAAW,UAAU,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAExC;;GAEG;AACH,wBAAgB,wBAAwB,CACtC,MAAM,EAAE,YAAY,EACpB,OAAO,EAAE,UAAU,CAAC,wBAAwB,EAC5C,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CACX,MAAM,CACJ,UAAU,CAAC,yBAAyB,EAClC,MAAM,CAAC,YAAY,GACnB,MAAM,CAAC,sBAAsB,GAC7B,aAAa,GACb,uBAAuB,GACvB,eAAe,GACf,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,qBAAqB,GACrB,kBAAkB,CACrB,CACF,CAMA"}
|
|
1
|
+
{"version":3,"file":"sandbox-get-api-sandbox-by-id.d.ts","sourceRoot":"","sources":["../../../src/funcs/sandbox-get-api-sandbox-by-id.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAM1C,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAGhD,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACtB,MAAM,wCAAwC,CAAC;AAChD,OAAO,KAAK,MAAM,MAAM,2BAA2B,CAAC;AACpD,OAAO,EAAE,aAAa,EAAE,MAAM,oCAAoC,CAAC;AACnE,OAAO,EAAE,uBAAuB,EAAE,MAAM,+CAA+C,CAAC;AACxF,OAAO,EAAE,kBAAkB,EAAE,MAAM,0CAA0C,CAAC;AAC9E,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,EAAW,UAAU,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAExC;;GAEG;AACH,wBAAgB,wBAAwB,CACtC,MAAM,EAAE,YAAY,EACpB,OAAO,EAAE,UAAU,CAAC,wBAAwB,EAC5C,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CACX,MAAM,CACJ,UAAU,CAAC,yBAAyB,EAClC,MAAM,CAAC,YAAY,GACnB,MAAM,CAAC,sBAAsB,GAC7B,MAAM,CAAC,uBAAuB,GAC9B,aAAa,GACb,uBAAuB,GACvB,eAAe,GACf,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,qBAAqB,GACrB,kBAAkB,CACrB,CACF,CAMA"}
|
|
@@ -76,7 +76,7 @@ async function $do(client, request, options) {
|
|
|
76
76
|
const responseFields = {
|
|
77
77
|
HttpMeta: { Response: response, Request: req },
|
|
78
78
|
};
|
|
79
|
-
const [result] = await M.match(M.json(200, operations.GetApiSandboxByIdResponse$inboundSchema), M.jsonErr([400, 401, 403, 404], errors.ErrorMessage$inboundSchema), M.jsonErr(500, errors.ErrorMessageStatusCode$inboundSchema), M.fail("4XX"), M.fail("5XX"))(response, req, { extraFields: responseFields });
|
|
79
|
+
const [result] = await M.match(M.json(200, operations.GetApiSandboxByIdResponse$inboundSchema), M.jsonErr([400, 401, 403, 404], errors.ErrorMessage$inboundSchema), M.jsonErr(500, errors.ErrorMessageStatusCode$inboundSchema), M.jsonErr(503, errors.ServiceUnavailableError$inboundSchema), M.fail("4XX"), M.fail("5XX"))(response, req, { extraFields: responseFields });
|
|
80
80
|
if (!result.ok) {
|
|
81
81
|
return [result, { status: "complete", request: req, response }];
|
|
82
82
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sandbox-get-api-sandbox-by-id.js","sourceRoot":"","sources":["../../../src/funcs/sandbox-get-api-sandbox-by-id.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AAEjC,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACnD,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AACjD,OAAO,KAAK,CAAC,MAAM,oBAAoB,CAAC;AACxC,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAE9C,OAAO,EAAE,eAAe,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;AAC5E,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAQ3C,OAAO,KAAK,MAAM,MAAM,2BAA2B,CAAC;AAIpD,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,EAAW,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAGxD;;GAEG;AACH,MAAM,UAAU,wBAAwB,CACtC,MAAoB,EACpB,OAA4C,EAC5C,OAAwB;
|
|
1
|
+
{"version":3,"file":"sandbox-get-api-sandbox-by-id.js","sourceRoot":"","sources":["../../../src/funcs/sandbox-get-api-sandbox-by-id.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AAEjC,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACnD,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AACjD,OAA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AG,EAAE,EAAE,WAAW,EAAE,cAAc,EAAE,CAAC,CAAC;IAClD,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE,CAAC;QACf,OAAO,CAAC,MAAM,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,GAAG,EAAE,QAAQ,EAAE,CAAC,CAAC;IAClE,CAAC;IAED,OAAO,CAAC,MAAM,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,GAAG,EAAE,QAAQ,EAAE,CAAC,CAAC;AAClE,CAAC"}
|
|
@@ -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.46";
|
|
39
39
|
readonly genVersion: "2.935.1";
|
|
40
|
-
readonly userAgent: "speakeasy-sdk/typescript 0.3.
|
|
40
|
+
readonly userAgent: "speakeasy-sdk/typescript 0.3.46 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.46",
|
|
31
31
|
genVersion: "2.935.1",
|
|
32
|
-
userAgent: "speakeasy-sdk/typescript 0.3.
|
|
32
|
+
userAgent: "speakeasy-sdk/typescript 0.3.46 2.935.1 2.0.0 @mutagent/sdk",
|
|
33
33
|
};
|
|
34
34
|
//# sourceMappingURL=config.js.map
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import * as z from "zod/v4-mini";
|
|
2
|
+
import { MutagentError } from "./mutagent-error.js";
|
|
3
|
+
/**
|
|
4
|
+
* Response for status 503
|
|
5
|
+
*/
|
|
6
|
+
export type ServiceUnavailableErrorData = {
|
|
7
|
+
error: string;
|
|
8
|
+
message: string;
|
|
9
|
+
provider: string;
|
|
10
|
+
};
|
|
11
|
+
/**
|
|
12
|
+
* Response for status 503
|
|
13
|
+
*/
|
|
14
|
+
export declare class ServiceUnavailableError extends MutagentError {
|
|
15
|
+
error: string;
|
|
16
|
+
provider: string;
|
|
17
|
+
/** The original data that was passed to this error instance. */
|
|
18
|
+
data$: ServiceUnavailableErrorData;
|
|
19
|
+
constructor(err: ServiceUnavailableErrorData, httpMeta: {
|
|
20
|
+
response: Response;
|
|
21
|
+
request: Request;
|
|
22
|
+
body: string;
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
/** @internal */
|
|
26
|
+
export declare const ServiceUnavailableError$inboundSchema: z.ZodMiniType<ServiceUnavailableError, unknown>;
|
|
27
|
+
//# sourceMappingURL=get-api-sandbox-by-id.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-api-sandbox-by-id.d.ts","sourceRoot":"","sources":["../../../../src/models/errors/get-api-sandbox-by-id.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AAEjC,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAEpD;;GAEG;AACH,MAAM,MAAM,2BAA2B,GAAG;IACxC,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF;;GAEG;AACH,qBAAa,uBAAwB,SAAQ,aAAa;IACxD,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;IAEjB,gEAAgE;IAChE,KAAK,EAAE,2BAA2B,CAAC;gBAGjC,GAAG,EAAE,2BAA2B,EAChC,QAAQ,EAAE;QAAE,QAAQ,EAAE,QAAQ,CAAC;QAAC,OAAO,EAAE,OAAO,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE;CAUnE;AAED,gBAAgB;AAChB,eAAO,MAAM,qCAAqC,EAAE,CAAC,CAAC,WAAW,CAC/D,uBAAuB,EACvB,OAAO,CAiBR,CAAC"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
import * as z from "zod/v4-mini";
|
|
5
|
+
import * as types from "../../types/primitives.js";
|
|
6
|
+
import { MutagentError } from "./mutagent-error.js";
|
|
7
|
+
/**
|
|
8
|
+
* Response for status 503
|
|
9
|
+
*/
|
|
10
|
+
export class ServiceUnavailableError extends MutagentError {
|
|
11
|
+
constructor(err, httpMeta) {
|
|
12
|
+
const message = err.message || `API error occurred: ${JSON.stringify(err)}`;
|
|
13
|
+
super(message, httpMeta);
|
|
14
|
+
this.data$ = err;
|
|
15
|
+
this.error = err.error;
|
|
16
|
+
this.provider = err.provider;
|
|
17
|
+
this.name = "ServiceUnavailableError";
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
/** @internal */
|
|
21
|
+
export const ServiceUnavailableError$inboundSchema = z.pipe(z.object({
|
|
22
|
+
error: types.string(),
|
|
23
|
+
message: types.string(),
|
|
24
|
+
provider: types.string(),
|
|
25
|
+
request$: z.custom(x => x instanceof Request),
|
|
26
|
+
response$: z.custom(x => x instanceof Response),
|
|
27
|
+
body$: z.string(),
|
|
28
|
+
}), z.transform((v) => {
|
|
29
|
+
return new ServiceUnavailableError(v, {
|
|
30
|
+
request: v.request$,
|
|
31
|
+
response: v.response$,
|
|
32
|
+
body: v.body$,
|
|
33
|
+
});
|
|
34
|
+
}));
|
|
35
|
+
//# sourceMappingURL=get-api-sandbox-by-id.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-api-sandbox-by-id.js","sourceRoot":"","sources":["../../../../src/models/errors/get-api-sandbox-by-id.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AACjC,OAAO,KAAK,KAAK,MAAM,2BAA2B,CAAC;AACnD,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAWpD;;GAEG;AACH,MAAM,OAAO,uBAAwB,SAAQ,aAAa;IAOxD,YACE,GAAgC,EAChC,QAAgE;QAEhE,MAAM,OAAO,GAAG,GAAG,CAAC,OAAO,IAAI,uBAAuB,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,EAAE,CAAC;QAC5E,KAAK,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAC;QACzB,IAAI,CAAC,KAAK,GAAG,GAAG,CAAC;QACjB,IAAI,CAAC,KAAK,GAAG,GAAG,CAAC,KAAK,CAAC;QACvB,IAAI,CAAC,QAAQ,GAAG,GAAG,CAAC,QAAQ,CAAC;QAE7B,IAAI,CAAC,IAAI,GAAG,yBAAyB,CAAC;IACxC,CAAC;CACF;AAED,gBAAgB;AAChB,MAAM,CAAC,MAAM,qCAAqC,GAG9C,CAAC,CAAC,IAAI,CACR,CAAC,CAAC,MAAM,CAAC;IACP,KAAK,EAAE,KAAK,CAAC,MAAM,EAAE;IACrB,OAAO,EAAE,KAAK,CAAC,MAAM,EAAE;IACvB,QAAQ,EAAE,KAAK,CAAC,MAAM,EAAE;IACxB,QAAQ,EAAE,CAAC,CAAC,MAAM,CAAU,CAAC,CAAC,EAAE,CAAC,CAAC,YAAY,OAAO,CAAC;IACtD,SAAS,EAAE,CAAC,CAAC,MAAM,CAAW,CAAC,CAAC,EAAE,CAAC,CAAC,YAAY,QAAQ,CAAC;IACzD,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE;CAClB,CAAC,EACF,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IAChB,OAAO,IAAI,uBAAuB,CAAC,CAAC,EAAE;QACpC,OAAO,EAAE,CAAC,CAAC,QAAQ;QACnB,QAAQ,EAAE,CAAC,CAAC,SAAS;QACrB,IAAI,EAAE,CAAC,CAAC,KAAK;KACd,CAAC,CAAC;AACL,CAAC,CAAC,CACH,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/models/errors/index.ts"],"names":[],"mappings":"AAIA,cAAc,gCAAgC,CAAC;AAC/C,cAAc,oBAAoB,CAAC;AACnC,cAAc,yBAAyB,CAAC;AACxC,cAAc,qBAAqB,CAAC;AACpC,cAAc,qBAAqB,CAAC;AACpC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,gBAAgB,CAAC;AAC/B,cAAc,2BAA2B,CAAC;AAC1C,cAAc,mCAAmC,CAAC;AAClD,cAAc,oCAAoC,CAAC;AACnD,cAAc,eAAe,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/models/errors/index.ts"],"names":[],"mappings":"AAIA,cAAc,gCAAgC,CAAC;AAC/C,cAAc,oBAAoB,CAAC;AACnC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,yBAAyB,CAAC;AACxC,cAAc,qBAAqB,CAAC;AACpC,cAAc,qBAAqB,CAAC;AACpC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,gBAAgB,CAAC;AAC/B,cAAc,2BAA2B,CAAC;AAC1C,cAAc,mCAAmC,CAAC;AAClD,cAAc,oCAAoC,CAAC;AACnD,cAAc,eAAe,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/models/errors/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,cAAc,gCAAgC,CAAC;AAC/C,cAAc,oBAAoB,CAAC;AACnC,cAAc,yBAAyB,CAAC;AACxC,cAAc,qBAAqB,CAAC;AACpC,cAAc,qBAAqB,CAAC;AACpC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,gBAAgB,CAAC;AAC/B,cAAc,2BAA2B,CAAC;AAC1C,cAAc,mCAAmC,CAAC;AAClD,cAAc,oCAAoC,CAAC;AACnD,cAAc,eAAe,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/models/errors/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,cAAc,gCAAgC,CAAC;AAC/C,cAAc,oBAAoB,CAAC;AACnC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,yBAAyB,CAAC;AACxC,cAAc,qBAAqB,CAAC;AACpC,cAAc,qBAAqB,CAAC;AACpC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,gBAAgB,CAAC;AAC/B,cAAc,2BAA2B,CAAC;AAC1C,cAAc,mCAAmC,CAAC;AAClD,cAAc,oCAAoC,CAAC;AACnD,cAAc,eAAe,CAAC"}
|
|
@@ -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-keep2.ts"],"names":[],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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
|
@@ -39,6 +39,7 @@ export function sandboxGetApiSandboxById(
|
|
|
39
39
|
operations.GetApiSandboxByIdResponse,
|
|
40
40
|
| errors.ErrorMessage
|
|
41
41
|
| errors.ErrorMessageStatusCode
|
|
42
|
+
| errors.ServiceUnavailableError
|
|
42
43
|
| MutagentError
|
|
43
44
|
| ResponseValidationError
|
|
44
45
|
| ConnectionError
|
|
@@ -66,6 +67,7 @@ async function $do(
|
|
|
66
67
|
operations.GetApiSandboxByIdResponse,
|
|
67
68
|
| errors.ErrorMessage
|
|
68
69
|
| errors.ErrorMessageStatusCode
|
|
70
|
+
| errors.ServiceUnavailableError
|
|
69
71
|
| MutagentError
|
|
70
72
|
| ResponseValidationError
|
|
71
73
|
| ConnectionError
|
|
@@ -155,6 +157,7 @@ async function $do(
|
|
|
155
157
|
operations.GetApiSandboxByIdResponse,
|
|
156
158
|
| errors.ErrorMessage
|
|
157
159
|
| errors.ErrorMessageStatusCode
|
|
160
|
+
| errors.ServiceUnavailableError
|
|
158
161
|
| MutagentError
|
|
159
162
|
| ResponseValidationError
|
|
160
163
|
| ConnectionError
|
|
@@ -167,6 +170,7 @@ async function $do(
|
|
|
167
170
|
M.json(200, operations.GetApiSandboxByIdResponse$inboundSchema),
|
|
168
171
|
M.jsonErr([400, 401, 403, 404], errors.ErrorMessage$inboundSchema),
|
|
169
172
|
M.jsonErr(500, errors.ErrorMessageStatusCode$inboundSchema),
|
|
173
|
+
M.jsonErr(503, errors.ServiceUnavailableError$inboundSchema),
|
|
170
174
|
M.fail("4XX"),
|
|
171
175
|
M.fail("5XX"),
|
|
172
176
|
)(response, req, { extraFields: responseFields });
|
|
@@ -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.46",
|
|
69
69
|
genVersion: "2.935.1",
|
|
70
|
-
userAgent: "speakeasy-sdk/typescript 0.3.
|
|
70
|
+
userAgent: "speakeasy-sdk/typescript 0.3.46 2.935.1 2.0.0 @mutagent/sdk",
|
|
71
71
|
} as const;
|
|
@@ -0,0 +1,62 @@
|
|
|
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 types from "../../types/primitives.js";
|
|
7
|
+
import { MutagentError } from "./mutagent-error.js";
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* Response for status 503
|
|
11
|
+
*/
|
|
12
|
+
export type ServiceUnavailableErrorData = {
|
|
13
|
+
error: string;
|
|
14
|
+
message: string;
|
|
15
|
+
provider: string;
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* Response for status 503
|
|
20
|
+
*/
|
|
21
|
+
export class ServiceUnavailableError extends MutagentError {
|
|
22
|
+
error: string;
|
|
23
|
+
provider: string;
|
|
24
|
+
|
|
25
|
+
/** The original data that was passed to this error instance. */
|
|
26
|
+
data$: ServiceUnavailableErrorData;
|
|
27
|
+
|
|
28
|
+
constructor(
|
|
29
|
+
err: ServiceUnavailableErrorData,
|
|
30
|
+
httpMeta: { response: Response; request: Request; body: string },
|
|
31
|
+
) {
|
|
32
|
+
const message = err.message || `API error occurred: ${JSON.stringify(err)}`;
|
|
33
|
+
super(message, httpMeta);
|
|
34
|
+
this.data$ = err;
|
|
35
|
+
this.error = err.error;
|
|
36
|
+
this.provider = err.provider;
|
|
37
|
+
|
|
38
|
+
this.name = "ServiceUnavailableError";
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/** @internal */
|
|
43
|
+
export const ServiceUnavailableError$inboundSchema: z.ZodMiniType<
|
|
44
|
+
ServiceUnavailableError,
|
|
45
|
+
unknown
|
|
46
|
+
> = z.pipe(
|
|
47
|
+
z.object({
|
|
48
|
+
error: types.string(),
|
|
49
|
+
message: types.string(),
|
|
50
|
+
provider: types.string(),
|
|
51
|
+
request$: z.custom<Request>(x => x instanceof Request),
|
|
52
|
+
response$: z.custom<Response>(x => x instanceof Response),
|
|
53
|
+
body$: z.string(),
|
|
54
|
+
}),
|
|
55
|
+
z.transform((v) => {
|
|
56
|
+
return new ServiceUnavailableError(v, {
|
|
57
|
+
request: v.request$,
|
|
58
|
+
response: v.response$,
|
|
59
|
+
body: v.body$,
|
|
60
|
+
});
|
|
61
|
+
}),
|
|
62
|
+
);
|
|
@@ -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,
|