@elizaos/plugin-shell 2.0.0-alpha.2 → 2.0.0-alpha.3
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/actions/index.d.ts +1 -0
- package/dist/actions/index.d.ts.map +1 -1
- package/dist/actions/processAction.d.ts +7 -0
- package/dist/actions/processAction.d.ts.map +1 -0
- package/dist/approvals/allowlist.d.ts +76 -0
- package/dist/approvals/allowlist.d.ts.map +1 -0
- package/dist/approvals/analysis.d.ts +76 -0
- package/dist/approvals/analysis.d.ts.map +1 -0
- package/dist/approvals/index.d.ts +12 -0
- package/dist/approvals/index.d.ts.map +1 -0
- package/dist/approvals/service.d.ts +121 -0
- package/dist/approvals/service.d.ts.map +1 -0
- package/dist/approvals/types.d.ts +219 -0
- package/dist/approvals/types.d.ts.map +1 -0
- package/dist/index.d.ts +6 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +5084 -417
- package/dist/index.js.map +24 -6
- package/dist/services/index.d.ts +1 -0
- package/dist/services/index.d.ts.map +1 -1
- package/dist/services/processRegistry.d.ts +25 -0
- package/dist/services/processRegistry.d.ts.map +1 -0
- package/dist/services/shellService.d.ts +73 -6
- package/dist/services/shellService.d.ts.map +1 -1
- package/dist/types/index.d.ts +114 -0
- package/dist/types/index.d.ts.map +1 -1
- package/dist/utils/config.d.ts.map +1 -1
- package/dist/utils/index.d.ts +4 -0
- package/dist/utils/index.d.ts.map +1 -1
- package/dist/utils/processQueue.d.ts +136 -0
- package/dist/utils/processQueue.d.ts.map +1 -0
- package/dist/utils/ptyKeys.d.ts +23 -0
- package/dist/utils/ptyKeys.d.ts.map +1 -0
- package/dist/utils/shellArgv.d.ts +37 -0
- package/dist/utils/shellArgv.d.ts.map +1 -0
- package/dist/utils/shellUtils.d.ts +103 -0
- package/dist/utils/shellUtils.d.ts.map +1 -0
- package/package.json +43 -11
- package/LICENSE +0 -21
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elizaos/plugin-shell",
|
|
3
|
-
"version": "2.0.0-alpha.
|
|
3
|
+
"version": "2.0.0-alpha.3",
|
|
4
4
|
"description": "Shell command execution plugin for ElizaOS with directory restrictions and history tracking",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -33,9 +33,12 @@
|
|
|
33
33
|
"author": "elizaOS",
|
|
34
34
|
"license": "MIT",
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@elizaos/core": "2.0.0-alpha.
|
|
36
|
+
"@elizaos/core": "2.0.0-alpha.3",
|
|
37
37
|
"cross-spawn": "^7.0.6",
|
|
38
|
-
"zod": "^4.3.
|
|
38
|
+
"zod": "^4.3.6"
|
|
39
|
+
},
|
|
40
|
+
"optionalDependencies": {
|
|
41
|
+
"@lydell/node-pty": "^1.1.0"
|
|
39
42
|
},
|
|
40
43
|
"devDependencies": {
|
|
41
44
|
"@biomejs/biome": "^2.3.11",
|
|
@@ -62,13 +65,6 @@
|
|
|
62
65
|
"agentConfig": {
|
|
63
66
|
"pluginType": "elizaos:plugin:1.0.0",
|
|
64
67
|
"pluginParameters": {
|
|
65
|
-
"SHELL_ENABLED": {
|
|
66
|
-
"type": "boolean",
|
|
67
|
-
"description": "Enable or disable the shell plugin (disabled by default for safety)",
|
|
68
|
-
"required": false,
|
|
69
|
-
"default": false,
|
|
70
|
-
"sensitive": false
|
|
71
|
-
},
|
|
72
68
|
"SHELL_ALLOWED_DIRECTORY": {
|
|
73
69
|
"type": "string",
|
|
74
70
|
"description": "The directory that shell commands are restricted to. Commands cannot execute outside this directory.",
|
|
@@ -87,8 +83,44 @@
|
|
|
87
83
|
"description": "Comma-separated list of additional forbidden commands",
|
|
88
84
|
"required": false,
|
|
89
85
|
"sensitive": false
|
|
86
|
+
},
|
|
87
|
+
"SHELL_MAX_OUTPUT_CHARS": {
|
|
88
|
+
"type": "number",
|
|
89
|
+
"description": "Maximum output characters to capture from commands",
|
|
90
|
+
"required": false,
|
|
91
|
+
"default": 200000,
|
|
92
|
+
"sensitive": false
|
|
93
|
+
},
|
|
94
|
+
"SHELL_BACKGROUND_MS": {
|
|
95
|
+
"type": "number",
|
|
96
|
+
"description": "Default milliseconds to wait before backgrounding commands",
|
|
97
|
+
"required": false,
|
|
98
|
+
"default": 10000,
|
|
99
|
+
"sensitive": false
|
|
100
|
+
},
|
|
101
|
+
"SHELL_ALLOW_BACKGROUND": {
|
|
102
|
+
"type": "boolean",
|
|
103
|
+
"description": "Whether to allow background command execution",
|
|
104
|
+
"required": false,
|
|
105
|
+
"default": true,
|
|
106
|
+
"sensitive": false
|
|
107
|
+
},
|
|
108
|
+
"SHELL_JOB_TTL_MS": {
|
|
109
|
+
"type": "number",
|
|
110
|
+
"description": "Time-to-live for finished session records in milliseconds",
|
|
111
|
+
"required": false,
|
|
112
|
+
"default": 1800000,
|
|
113
|
+
"sensitive": false
|
|
90
114
|
}
|
|
91
115
|
}
|
|
92
116
|
},
|
|
93
|
-
"
|
|
117
|
+
"milaidy": {
|
|
118
|
+
"platforms": [
|
|
119
|
+
"node"
|
|
120
|
+
],
|
|
121
|
+
"runtime": "node",
|
|
122
|
+
"platformDetails": {
|
|
123
|
+
"node": "Default export (Node.js)"
|
|
124
|
+
}
|
|
125
|
+
}
|
|
94
126
|
}
|
package/LICENSE
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2026 Shaw Walters and elizaOS Contributors
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|