@elizaos/plugin-shell 2.0.0-alpha.1 → 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 (38) 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 +5085 -418
  18. package/dist/index.js.map +26 -8
  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 +45 -12
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elizaos/plugin-shell",
3
- "version": "2.0.0-alpha.1",
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,16 +33,19 @@
33
33
  "author": "elizaOS",
34
34
  "license": "MIT",
35
35
  "dependencies": {
36
- "@elizaos/core": "workspace:*",
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": {
44
+ "@biomejs/biome": "^2.3.11",
41
45
  "@types/cross-spawn": "^6.0.6",
42
46
  "@types/node": "^25.0.3",
43
47
  "typescript": "^5.9.3",
44
- "vitest": "^4.0.0",
45
- "@biomejs/biome": "^2.3.11"
48
+ "vitest": "^4.0.0"
46
49
  },
47
50
  "scripts": {
48
51
  "build": "bun run build.ts",
@@ -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,7 +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
  }
116
+ },
117
+ "milaidy": {
118
+ "platforms": [
119
+ "node"
120
+ ],
121
+ "runtime": "node",
122
+ "platformDetails": {
123
+ "node": "Default export (Node.js)"
124
+ }
92
125
  }
93
126
  }