@agentick/sandbox 0.5.0 → 0.7.0
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 +26 -0
- package/dist/index.d.ts +4 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +12 -1
- package/dist/index.js.map +1 -1
- package/dist/tools.d.ts.map +1 -1
- package/dist/tools.js +34 -0
- package/dist/tools.js.map +1 -1
- package/package.json +5 -3
package/README.md
CHANGED
|
@@ -121,6 +121,32 @@ import { Shell, ReadFile, WriteFile, EditFile } from "@agentick/sandbox";
|
|
|
121
121
|
</Sandbox>
|
|
122
122
|
```
|
|
123
123
|
|
|
124
|
+
### Confirmation
|
|
125
|
+
|
|
126
|
+
`WriteFile` and `EditFile` require user confirmation before execution. The TUI
|
|
127
|
+
renders a colored unified diff so the user can review changes before approving.
|
|
128
|
+
|
|
129
|
+
```tsx
|
|
130
|
+
// Confirmation is on by default — disable per-instance if needed
|
|
131
|
+
<WriteFile requiresConfirmation={false} />
|
|
132
|
+
```
|
|
133
|
+
|
|
134
|
+
Custom tools can define `confirmationPreview` to compute preview metadata:
|
|
135
|
+
|
|
136
|
+
```tsx
|
|
137
|
+
const MyTool = createTool({
|
|
138
|
+
name: "my_tool",
|
|
139
|
+
requiresConfirmation: true,
|
|
140
|
+
confirmationPreview: async (input, deps) => ({
|
|
141
|
+
type: "diff",
|
|
142
|
+
filePath: input.path,
|
|
143
|
+
patch: computePatch(input),
|
|
144
|
+
isNewFile: false,
|
|
145
|
+
}),
|
|
146
|
+
// ...
|
|
147
|
+
});
|
|
148
|
+
```
|
|
149
|
+
|
|
124
150
|
### Tree Scoping
|
|
125
151
|
|
|
126
152
|
Multiple sandboxes in the same tree work naturally. Each tool accesses its nearest `<Sandbox>` provider:
|
package/dist/index.d.ts
CHANGED
|
@@ -3,11 +3,14 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Types, context, component, and pre-built tools for sandboxed execution.
|
|
5
5
|
*/
|
|
6
|
+
import React from "react";
|
|
6
7
|
export type { Sandbox as SandboxHandle, SandboxProvider, SandboxCreateOptions, SandboxConfig, SandboxSnapshot, ExecOptions, ExecResult, OutputChunk, Mount, Permissions, ResourceLimits, NetworkRule, ProxiedRequest, } from "./types";
|
|
7
8
|
export { applyEdits, editFile, EditError } from "./edit";
|
|
8
9
|
export type { Edit, EditResult, EditChange } from "./edit";
|
|
9
10
|
export { SandboxContext, useSandbox } from "./context";
|
|
10
11
|
export { Sandbox } from "./component";
|
|
11
12
|
export type { SandboxProps } from "./component";
|
|
12
|
-
|
|
13
|
+
import { Shell, ReadFile, WriteFile, EditFile } from "./tools";
|
|
14
|
+
export { Shell, ReadFile, WriteFile, EditFile };
|
|
15
|
+
export declare function SandboxTools(): React.FunctionComponentElement<{}>[];
|
|
13
16
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,YAAY,EACV,OAAO,IAAI,aAAa,EACxB,eAAe,EACf,oBAAoB,EACpB,aAAa,EACb,eAAe,EACf,WAAW,EACX,UAAU,EACV,WAAW,EACX,KAAK,EACL,WAAW,EACX,cAAc,EACd,WAAW,EACX,cAAc,GACf,MAAM,SAAS,CAAC;AAGjB,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAC;AACzD,YAAY,EAAE,IAAI,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAC;AAG3D,OAAO,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AAGvD,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AACtC,YAAY,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAGhD,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAC/D,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,SAAS,EAAE,QAAQ,EAAE,CAAC;AAQhD,wBAAgB,YAAY,yCAO3B"}
|
package/dist/index.js
CHANGED
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Types, context, component, and pre-built tools for sandboxed execution.
|
|
5
5
|
*/
|
|
6
|
+
import React from "react";
|
|
6
7
|
// ── Edit Types & Utilities ───────────────────────────────────────────────────
|
|
7
8
|
export { applyEdits, editFile, EditError } from "./edit";
|
|
8
9
|
// ── Context & Hook ───────────────────────────────────────────────────────────
|
|
@@ -10,8 +11,18 @@ export { SandboxContext, useSandbox } from "./context";
|
|
|
10
11
|
// ── Component ────────────────────────────────────────────────────────────────
|
|
11
12
|
export { Sandbox } from "./component";
|
|
12
13
|
// ── Tools ────────────────────────────────────────────────────────────────────
|
|
13
|
-
|
|
14
|
+
import { Shell, ReadFile, WriteFile, EditFile } from "./tools";
|
|
15
|
+
export { Shell, ReadFile, WriteFile, EditFile };
|
|
14
16
|
// ── Testing ──────────────────────────────────────────────────────────────────
|
|
15
17
|
// Import from "@agentick/sandbox/testing" — not re-exported here to avoid
|
|
16
18
|
// pulling vitest into production bundles.
|
|
19
|
+
const h = React.createElement;
|
|
20
|
+
export function SandboxTools() {
|
|
21
|
+
return [
|
|
22
|
+
h(Shell, { key: "shell" }),
|
|
23
|
+
h(ReadFile, { key: "read-file" }),
|
|
24
|
+
h(WriteFile, { key: "write-file" }),
|
|
25
|
+
h(EditFile, { key: "edit-file" }),
|
|
26
|
+
];
|
|
27
|
+
}
|
|
17
28
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;AAmB1B,gFAAgF;AAChF,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAC;AAGzD,gFAAgF;AAChF,OAAO,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AAEvD,gFAAgF;AAChF,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAGtC,gFAAgF;AAChF,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAC/D,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,SAAS,EAAE,QAAQ,EAAE,CAAC;AAEhD,gFAAgF;AAChF,0EAA0E;AAC1E,0CAA0C;AAE1C,MAAM,CAAC,GAAG,KAAK,CAAC,aAAa,CAAC;AAE9B,MAAM,UAAU,YAAY;IAC1B,OAAO;QACL,CAAC,CAAC,KAAK,EAAE,EAAE,GAAG,EAAE,OAAO,EAAE,CAAC;QAC1B,CAAC,CAAC,QAAQ,EAAE,EAAE,GAAG,EAAE,WAAW,EAAE,CAAC;QACjC,CAAC,CAAC,SAAS,EAAE,EAAE,GAAG,EAAE,YAAY,EAAE,CAAC;QACnC,CAAC,CAAC,QAAQ,EAAE,EAAE,GAAG,EAAE,WAAW,EAAE,CAAC;KAClC,CAAC;AACJ,CAAC"}
|
package/dist/tools.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tools.d.ts","sourceRoot":"","sources":["../src/tools.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;
|
|
1
|
+
{"version":3,"file":"tools.d.ts","sourceRoot":"","sources":["../src/tools.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAQH;;GAEG;AACH,eAAO,MAAM,KAAK;;EAgBhB,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,QAAQ;;EAYnB,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,SAAS;;;EA4BpB,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,QAAQ;;;;;;;;;;;;EAkGnB,CAAC"}
|
package/dist/tools.js
CHANGED
|
@@ -6,7 +6,9 @@
|
|
|
6
6
|
*/
|
|
7
7
|
import { createTool } from "@agentick/core";
|
|
8
8
|
import { z } from "zod";
|
|
9
|
+
import { createTwoFilesPatch } from "diff";
|
|
9
10
|
import { useSandbox } from "./context";
|
|
11
|
+
import { applyEdits } from "./edit";
|
|
10
12
|
/**
|
|
11
13
|
* Execute a shell command in the sandbox.
|
|
12
14
|
*/
|
|
@@ -16,6 +18,7 @@ export const Shell = createTool({
|
|
|
16
18
|
input: z.object({
|
|
17
19
|
command: z.string().describe("The shell command to execute."),
|
|
18
20
|
}),
|
|
21
|
+
displaySummary: (input) => input.command.split("\n")[0].slice(0, 80),
|
|
19
22
|
use: () => ({ sandbox: useSandbox() }),
|
|
20
23
|
handler: async ({ command }, deps) => {
|
|
21
24
|
const result = await deps.sandbox.exec(command);
|
|
@@ -38,6 +41,7 @@ export const ReadFile = createTool({
|
|
|
38
41
|
input: z.object({
|
|
39
42
|
path: z.string().describe("Path to the file to read."),
|
|
40
43
|
}),
|
|
44
|
+
displaySummary: (input) => input.path,
|
|
41
45
|
use: () => ({ sandbox: useSandbox() }),
|
|
42
46
|
handler: async ({ path }, deps) => {
|
|
43
47
|
const content = await deps.sandbox.readFile(path);
|
|
@@ -54,6 +58,23 @@ export const WriteFile = createTool({
|
|
|
54
58
|
path: z.string().describe("Path to the file to write."),
|
|
55
59
|
content: z.string().describe("Content to write to the file."),
|
|
56
60
|
}),
|
|
61
|
+
displaySummary: (input) => input.path,
|
|
62
|
+
requiresConfirmation: true,
|
|
63
|
+
confirmationPreview: async ({ path, content }, deps) => {
|
|
64
|
+
let original = "";
|
|
65
|
+
let isNewFile = true;
|
|
66
|
+
try {
|
|
67
|
+
original = await deps.sandbox.readFile(path);
|
|
68
|
+
isNewFile = false;
|
|
69
|
+
}
|
|
70
|
+
catch {
|
|
71
|
+
// New file
|
|
72
|
+
}
|
|
73
|
+
const patch = createTwoFilesPatch(`a/${path}`, `b/${path}`, original, content, "", "", {
|
|
74
|
+
context: 3,
|
|
75
|
+
});
|
|
76
|
+
return { type: "diff", filePath: path, patch, isNewFile };
|
|
77
|
+
},
|
|
57
78
|
use: () => ({ sandbox: useSandbox() }),
|
|
58
79
|
handler: async ({ path, content }, deps) => {
|
|
59
80
|
await deps.sandbox.writeFile(path, content);
|
|
@@ -65,6 +86,19 @@ export const WriteFile = createTool({
|
|
|
65
86
|
*/
|
|
66
87
|
export const EditFile = createTool({
|
|
67
88
|
name: "edit_file",
|
|
89
|
+
displaySummary: (input) => `${input.path} (${input.edits.length} edit(s))`,
|
|
90
|
+
requiresConfirmation: true,
|
|
91
|
+
// Preview reads the file and applies edits independently of the handler.
|
|
92
|
+
// Intentional: the file may change between preview and execution, so
|
|
93
|
+
// the preview must reflect state at preview-time, not handler-time.
|
|
94
|
+
confirmationPreview: async ({ path, edits }, deps) => {
|
|
95
|
+
const original = await deps.sandbox.readFile(path);
|
|
96
|
+
const result = applyEdits(original, edits);
|
|
97
|
+
const patch = createTwoFilesPatch(`a/${path}`, `b/${path}`, original, result.content, "", "", {
|
|
98
|
+
context: 3,
|
|
99
|
+
});
|
|
100
|
+
return { type: "diff", filePath: path, patch, isNewFile: false };
|
|
101
|
+
},
|
|
68
102
|
description: `Apply surgical text edits to a file. Supports replace, delete, insert, and range operations.
|
|
69
103
|
|
|
70
104
|
MODES:
|
package/dist/tools.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tools.js","sourceRoot":"","sources":["../src/tools.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OA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,EAAE,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE;aACpJ;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agentick/sandbox",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.7.0",
|
|
4
4
|
"description": "Sandbox primitive layer for Agentick — types, context, component, and pre-built tools",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"agent",
|
|
@@ -33,11 +33,13 @@
|
|
|
33
33
|
"access": "public"
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
|
+
"diff": "^8.0.3",
|
|
36
37
|
"react": "^19.0.0",
|
|
37
38
|
"zod": "^4.3.6",
|
|
38
|
-
"@agentick/core": "0.
|
|
39
|
+
"@agentick/core": "0.7.0"
|
|
39
40
|
},
|
|
40
41
|
"devDependencies": {
|
|
42
|
+
"@types/diff": "^8.0.0",
|
|
41
43
|
"@types/react": "^19.2.13",
|
|
42
44
|
"typescript": "^5.7.3",
|
|
43
45
|
"vitest": "^4.0.18"
|
|
@@ -47,7 +49,7 @@
|
|
|
47
49
|
"typecheck": "tsc -p tsconfig.build.json --noEmit",
|
|
48
50
|
"lint": "oxlint src/",
|
|
49
51
|
"format:check": "oxfmt --check src/",
|
|
50
|
-
"clean": "rm -rf dist",
|
|
52
|
+
"clean": "rm -rf dist tsconfig.build.tsbuildinfo",
|
|
51
53
|
"dev": "tsc --watch"
|
|
52
54
|
},
|
|
53
55
|
"types": "./dist/index.d.ts"
|