@hmj-ai/cflow 1.3.3 → 1.3.4

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.
@@ -16,7 +16,10 @@ export class RuntimeExecutionException extends Error {
16
16
  }
17
17
  }
18
18
  export function isAcpToolAllowed(tool, effects, root, cwd, analysis = false) {
19
- const kind = String(tool.kind ?? tool.name ?? tool.title ?? '').toLowerCase();
19
+ const kind = [tool.kind, tool.name, tool.title]
20
+ .filter((value) => value !== undefined && value !== null)
21
+ .map((value) => String(value).toLowerCase())
22
+ .join(' ');
20
23
  const effectType = kind.includes('read') || kind.includes('search')
21
24
  ? 'file-read'
22
25
  : kind.includes('edit') ||
@@ -24,7 +27,14 @@ export function isAcpToolAllowed(tool, effects, root, cwd, analysis = false) {
24
27
  kind.includes('delete') ||
25
28
  kind.includes('move')
26
29
  ? 'file-write'
27
- : kind.includes('exec') || kind.includes('command') || kind.includes('terminal')
30
+ : kind.includes('exec') ||
31
+ kind.includes('command') ||
32
+ kind.includes('terminal') ||
33
+ kind.includes('bash') ||
34
+ kind.includes('shell') ||
35
+ kind.includes('powershell') ||
36
+ kind.includes('cmd') ||
37
+ kind.includes('run')
28
38
  ? 'command'
29
39
  : undefined;
30
40
  const declared = effectType
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hmj-ai/cflow",
3
- "version": "1.3.3",
3
+ "version": "1.3.4",
4
4
  "description": "以 Flow 为核心的本机多 Agent 编排工作台",
5
5
  "main": "dist/src/server.js",
6
6
  "bin": {