Skip to content

Commit b1aff3d

Browse files
authored
feat: release 1.0.0.160 version (#124)
1 parent c778607 commit b1aff3d

61 files changed

Lines changed: 2793 additions & 38 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

sdk/js/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@agent-infra/sandbox",
3-
"version": "1.0.6",
3+
"version": "1.0.7",
44
"description": "Node.js SDK for AIO Sandbox integration providing tools and interfaces",
55
"main": "./dist/cjs/index.js",
66
"module": "./dist/esm/index.mjs",

sdk/js/src/api/resources/code/client/requests/CodeExecuteRequest.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,8 @@ export interface CodeExecuteRequest {
1818
timeout?: number;
1919
/** Current working directory for code execution */
2020
cwd?: string;
21+
/** Enable stateful execution using Jupyter kernel. When True, variables and state persist across requests with the same session_id. */
22+
stateful?: boolean;
23+
/** Session ID for stateful execution. Required when stateful=True to maintain state across requests. Auto-generated if not provided. */
24+
session_id?: string;
2125
}

sdk/js/src/api/resources/jupyter/client/requests/JupyterCreateSessionRequest.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
export interface JupyterCreateSessionRequest {
88
/** Unique identifier for the session, auto-generated if not provided */
99
session_id?: string;
10-
/** Kernel name to use (e.g., 'python3', 'python3.11', 'python3.12'). Defaults to 'python3' */
10+
/** Kernel name: 'python3', 'python3.10', 'python3.11', 'python3.12'. Defaults to 'python3'. */
1111
kernel_name?: string;
1212
/** Current working directory for the session */
1313
cwd?: string;

sdk/js/src/api/resources/jupyter/client/requests/JupyterExecuteRequest.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export interface JupyterExecuteRequest {
1111
code: string;
1212
/** Execution timeout in seconds */
1313
timeout?: number;
14-
/** Kernel name to use (e.g., 'python3', 'python3.11', 'python3.12'). Defaults to 'python3' */
14+
/** Kernel name: 'python3', 'python3.10', 'python3.11', 'python3.12'. Defaults to 'python3'. */
1515
kernel_name?: string;
1616
/** Session ID to maintain kernel state across requests */
1717
session_id?: string;
Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
// This file was auto-generated by Fern from our API Definition.
2+
3+
import type * as core from "../../../../core/index.js";
4+
import type * as Sandbox from "../../../index.js";
5+
6+
export type Error =
7+
| Sandbox.nodejs.createSession.Error.UnprocessableEntityError
8+
| Sandbox.nodejs.createSession.Error._Unknown;
9+
10+
export namespace Error {
11+
export interface UnprocessableEntityError {
12+
statusCode: 422;
13+
content: Sandbox.HttpValidationError;
14+
}
15+
16+
export interface _Unknown {
17+
statusCode: void;
18+
content: core.Fetcher.Error;
19+
}
20+
21+
export interface _Visitor<_Result> {
22+
unprocessableEntityError: (value: Sandbox.HttpValidationError) => _Result;
23+
_other: (value: core.Fetcher.Error) => _Result;
24+
}
25+
}
26+
27+
export const Error = {
28+
unprocessableEntityError: (
29+
value: Sandbox.HttpValidationError,
30+
): Sandbox.nodejs.createSession.Error.UnprocessableEntityError => {
31+
return {
32+
content: value,
33+
statusCode: 422,
34+
};
35+
},
36+
37+
_unknown: (fetcherError: core.Fetcher.Error): Sandbox.nodejs.createSession.Error._Unknown => {
38+
return {
39+
statusCode: undefined,
40+
content: fetcherError,
41+
};
42+
},
43+
44+
_visit: <_Result>(
45+
value: Sandbox.nodejs.createSession.Error,
46+
visitor: Sandbox.nodejs.createSession.Error._Visitor<_Result>,
47+
): _Result => {
48+
switch (value.statusCode) {
49+
case 422:
50+
return visitor.unprocessableEntityError(value.content);
51+
default:
52+
return visitor._other(value as any);
53+
}
54+
},
55+
} as const;
Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
// This file was auto-generated by Fern from our API Definition.
2+
3+
import type * as core from "../../../../core/index.js";
4+
import type * as Sandbox from "../../../index.js";
5+
6+
export type Error =
7+
| Sandbox.nodejs.deleteSession.Error.UnprocessableEntityError
8+
| Sandbox.nodejs.deleteSession.Error._Unknown;
9+
10+
export namespace Error {
11+
export interface UnprocessableEntityError {
12+
statusCode: 422;
13+
content: Sandbox.HttpValidationError;
14+
}
15+
16+
export interface _Unknown {
17+
statusCode: void;
18+
content: core.Fetcher.Error;
19+
}
20+
21+
export interface _Visitor<_Result> {
22+
unprocessableEntityError: (value: Sandbox.HttpValidationError) => _Result;
23+
_other: (value: core.Fetcher.Error) => _Result;
24+
}
25+
}
26+
27+
export const Error = {
28+
unprocessableEntityError: (
29+
value: Sandbox.HttpValidationError,
30+
): Sandbox.nodejs.deleteSession.Error.UnprocessableEntityError => {
31+
return {
32+
content: value,
33+
statusCode: 422,
34+
};
35+
},
36+
37+
_unknown: (fetcherError: core.Fetcher.Error): Sandbox.nodejs.deleteSession.Error._Unknown => {
38+
return {
39+
statusCode: undefined,
40+
content: fetcherError,
41+
};
42+
},
43+
44+
_visit: <_Result>(
45+
value: Sandbox.nodejs.deleteSession.Error,
46+
visitor: Sandbox.nodejs.deleteSession.Error._Visitor<_Result>,
47+
): _Result => {
48+
switch (value.statusCode) {
49+
case 422:
50+
return visitor.unprocessableEntityError(value.content);
51+
default:
52+
return visitor._other(value as any);
53+
}
54+
},
55+
} as const;
Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
// This file was auto-generated by Fern from our API Definition.
2+
3+
import type * as core from "../../../../core/index.js";
4+
import type * as Sandbox from "../../../index.js";
5+
6+
export type Error = Sandbox.nodejs.getSession.Error.UnprocessableEntityError | Sandbox.nodejs.getSession.Error._Unknown;
7+
8+
export namespace Error {
9+
export interface UnprocessableEntityError {
10+
statusCode: 422;
11+
content: Sandbox.HttpValidationError;
12+
}
13+
14+
export interface _Unknown {
15+
statusCode: void;
16+
content: core.Fetcher.Error;
17+
}
18+
19+
export interface _Visitor<_Result> {
20+
unprocessableEntityError: (value: Sandbox.HttpValidationError) => _Result;
21+
_other: (value: core.Fetcher.Error) => _Result;
22+
}
23+
}
24+
25+
export const Error = {
26+
unprocessableEntityError: (
27+
value: Sandbox.HttpValidationError,
28+
): Sandbox.nodejs.getSession.Error.UnprocessableEntityError => {
29+
return {
30+
content: value,
31+
statusCode: 422,
32+
};
33+
},
34+
35+
_unknown: (fetcherError: core.Fetcher.Error): Sandbox.nodejs.getSession.Error._Unknown => {
36+
return {
37+
statusCode: undefined,
38+
content: fetcherError,
39+
};
40+
},
41+
42+
_visit: <_Result>(
43+
value: Sandbox.nodejs.getSession.Error,
44+
visitor: Sandbox.nodejs.getSession.Error._Visitor<_Result>,
45+
): _Result => {
46+
switch (value.statusCode) {
47+
case 422:
48+
return visitor.unprocessableEntityError(value.content);
49+
default:
50+
return visitor._other(value as any);
51+
}
52+
},
53+
} as const;
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
export * as createSession from "./createSession.js";
2+
export * as deleteSession from "./deleteSession.js";
13
export * as executeCode from "./executeCode.js";
24
export * as getInfo from "./getInfo.js";
5+
export * as getSession from "./getSession.js";
6+
export * as listSessions from "./listSessions.js";
37
export * from "./requests/index.js";
8+
export * as updateSession from "./updateSession.js";
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
// This file was auto-generated by Fern from our API Definition.
2+
3+
import type * as core from "../../../../core/index.js";
4+
import type * as Sandbox from "../../../index.js";
5+
6+
export type Error = Sandbox.nodejs.listSessions.Error._Unknown;
7+
8+
export namespace Error {
9+
export interface _Unknown {
10+
statusCode: void;
11+
content: core.Fetcher.Error;
12+
}
13+
14+
export interface _Visitor<_Result> {
15+
_other: (value: core.Fetcher.Error) => _Result;
16+
}
17+
}
18+
19+
export const Error = {
20+
_unknown: (fetcherError: core.Fetcher.Error): Sandbox.nodejs.listSessions.Error._Unknown => {
21+
return {
22+
statusCode: undefined,
23+
content: fetcherError,
24+
};
25+
},
26+
27+
_visit: <_Result>(
28+
value: Sandbox.nodejs.listSessions.Error,
29+
visitor: Sandbox.nodejs.listSessions.Error._Visitor<_Result>,
30+
): _Result => {
31+
switch (value.statusCode) {
32+
default:
33+
return visitor._other(value as any);
34+
}
35+
},
36+
} as const;
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
// This file was auto-generated by Fern from our API Definition.
2+
3+
/**
4+
* @example
5+
* {}
6+
*/
7+
export interface NodeJsCreateSessionRequest {
8+
/** Custom session ID (auto-generated if not provided) */
9+
session_id?: string;
10+
/** Working directory for the session */
11+
cwd?: string;
12+
/** Maximum idle time in seconds (default 24 hours) */
13+
max_idle_time?: number;
14+
}

0 commit comments

Comments
 (0)