@sisu-ai/tool-terminal 1.2.0 → 2.0.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 +6 -2
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
# @sisu-ai/tool-terminal
|
|
2
2
|
|
|
3
|
+
A secure terminal execution tool for Sisu agents. Provides sandboxed command execution with session support, a strict allow list, realpath-based path scoping, timeouts and basic file helpers. Commands run without a shell and reject control operators by default; optional shell-free pipelines (`|`) and sequences (`;`, `&&`, `||`) can be enabled via config.
|
|
4
|
+
|
|
3
5
|
[](https://github.com/finger-gun/sisu/actions/workflows/tests.yml)
|
|
4
6
|
[](https://github.com/finger-gun/sisu/blob/main/LICENSE)
|
|
5
7
|
[](https://www.npmjs.com/package/@sisu-ai/tool-terminal)
|
|
6
8
|
[](https://github.com/finger-gun/sisu/blob/main/CONTRIBUTING.md)
|
|
7
9
|
|
|
8
|
-
A secure terminal execution tool for Sisu agents. Provides sandboxed command execution with session support, a strict allow list, realpath-based path scoping, timeouts and basic file helpers. Commands run without a shell and reject control operators by default; optional shell-free pipelines (`|`) and sequences (`;`, `&&`, `||`) can be enabled via config.
|
|
9
|
-
|
|
10
10
|
## API
|
|
11
11
|
|
|
12
12
|
- `createTerminalTool(config?)` → returns an instance with:
|
|
@@ -143,6 +143,10 @@ const file = await term.read_file({ sessionId, path: 'README.md' });
|
|
|
143
143
|
- Commands run without an intermediate shell; tokens like `&&`, `|`, `;`, `$()` and redirections are rejected.
|
|
144
144
|
|
|
145
145
|
# Community & Support
|
|
146
|
+
|
|
147
|
+
Discover what you can do through examples or documentation. Check it out at https://github.com/finger-gun/sisu. Example projects live under [`examples/`](https://github.com/finger-gun/sisu/tree/main/examples) in the repo.
|
|
148
|
+
|
|
149
|
+
|
|
146
150
|
- [Code of Conduct](https://github.com/finger-gun/sisu/blob/main/CODE_OF_CONDUCT.md)
|
|
147
151
|
- [Contributing Guide](https://github.com/finger-gun/sisu/blob/main/CONTRIBUTING.md)
|
|
148
152
|
- [License](https://github.com/finger-gun/sisu/blob/main/LICENSE)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sisu-ai/tool-terminal",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"zod": "^3.23.8"
|
|
16
16
|
},
|
|
17
17
|
"peerDependencies": {
|
|
18
|
-
"@sisu-ai/core": "1.0
|
|
18
|
+
"@sisu-ai/core": "1.1.0"
|
|
19
19
|
},
|
|
20
20
|
"repository": {
|
|
21
21
|
"type": "git",
|