@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.
Files changed (39) hide show
  1. package/dist/actions/index.d.ts +1 -0
  2. package/dist/actions/index.d.ts.map +1 -1
  3. package/dist/actions/processAction.d.ts +7 -0
  4. package/dist/actions/processAction.d.ts.map +1 -0
  5. package/dist/approvals/allowlist.d.ts +76 -0
  6. package/dist/approvals/allowlist.d.ts.map +1 -0
  7. package/dist/approvals/analysis.d.ts +76 -0
  8. package/dist/approvals/analysis.d.ts.map +1 -0
  9. package/dist/approvals/index.d.ts +12 -0
  10. package/dist/approvals/index.d.ts.map +1 -0
  11. package/dist/approvals/service.d.ts +121 -0
  12. package/dist/approvals/service.d.ts.map +1 -0
  13. package/dist/approvals/types.d.ts +219 -0
  14. package/dist/approvals/types.d.ts.map +1 -0
  15. package/dist/index.d.ts +6 -1
  16. package/dist/index.d.ts.map +1 -1
  17. package/dist/index.js +5084 -417
  18. package/dist/index.js.map +24 -6
  19. package/dist/services/index.d.ts +1 -0
  20. package/dist/services/index.d.ts.map +1 -1
  21. package/dist/services/processRegistry.d.ts +25 -0
  22. package/dist/services/processRegistry.d.ts.map +1 -0
  23. package/dist/services/shellService.d.ts +73 -6
  24. package/dist/services/shellService.d.ts.map +1 -1
  25. package/dist/types/index.d.ts +114 -0
  26. package/dist/types/index.d.ts.map +1 -1
  27. package/dist/utils/config.d.ts.map +1 -1
  28. package/dist/utils/index.d.ts +4 -0
  29. package/dist/utils/index.d.ts.map +1 -1
  30. package/dist/utils/processQueue.d.ts +136 -0
  31. package/dist/utils/processQueue.d.ts.map +1 -0
  32. package/dist/utils/ptyKeys.d.ts +23 -0
  33. package/dist/utils/ptyKeys.d.ts.map +1 -0
  34. package/dist/utils/shellArgv.d.ts +37 -0
  35. package/dist/utils/shellArgv.d.ts.map +1 -0
  36. package/dist/utils/shellUtils.d.ts +103 -0
  37. package/dist/utils/shellUtils.d.ts.map +1 -0
  38. package/package.json +43 -11
  39. 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.2",
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.2",
36
+ "@elizaos/core": "2.0.0-alpha.3",
37
37
  "cross-spawn": "^7.0.6",
38
- "zod": "^4.3.5"
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
- "gitHead": "bc6cac8d36845d7cbde51a64307c6a57c16378ad"
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.