@comfanion/workflow 4.15.0 → 4.17.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/package.json
CHANGED
package/src/build-info.json
CHANGED
|
@@ -1,39 +1,32 @@
|
|
|
1
1
|
---
|
|
2
2
|
description: |
|
|
3
3
|
Codebase Crawler - Semantic search explorer.
|
|
4
|
+
grep and glob are DISABLED. Use search() instead!
|
|
4
5
|
|
|
5
|
-
|
|
6
|
+
WORKFLOW:
|
|
6
7
|
1. codeindex({ action: "list", index: "code" })
|
|
7
|
-
2.
|
|
8
|
+
2. search({ query: "your concept", index: "code" })
|
|
9
|
+
3. read the files from search results
|
|
8
10
|
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
DO NOT USE grep OR glob BEFORE codesearch!
|
|
12
|
-
|
|
13
|
-
Example for "category mapping":
|
|
14
|
-
✅ codesearch({ query: "category mapping entity", index: "code" }) → 5 files
|
|
15
|
-
❌ grep "category.*mapping" → 100 matches = WRONG!
|
|
11
|
+
Example:
|
|
12
|
+
search({ query: "category mapping entity repository", index: "code" })
|
|
16
13
|
mode: subagent
|
|
17
14
|
temperature: 0.1
|
|
18
15
|
|
|
19
16
|
# Tools - READ-ONLY exploration
|
|
20
|
-
#
|
|
17
|
+
# ⛔ grep/glob DISABLED - use search() instead!
|
|
21
18
|
tools:
|
|
22
|
-
#
|
|
23
|
-
|
|
24
|
-
codeindex: true # Check
|
|
25
|
-
read: true
|
|
26
|
-
|
|
27
|
-
# SECONDARY - Only after codesearch
|
|
28
|
-
grep: true # Only for EXACT string matches
|
|
29
|
-
glob: true # Only for file patterns
|
|
30
|
-
|
|
31
|
-
# OTHER
|
|
32
|
-
list: true
|
|
19
|
+
# ENABLED - Semantic search only
|
|
20
|
+
search: true # ⭐ USE THIS for finding code (renamed from codesearch)
|
|
21
|
+
codeindex: true # Check/manage indexes
|
|
22
|
+
read: true # Read files
|
|
23
|
+
list: true # List directories
|
|
33
24
|
lsp: true # Code intelligence
|
|
34
|
-
bash: true # Limited to read-only commands
|
|
35
25
|
|
|
36
|
-
# DISABLED
|
|
26
|
+
# ⛔ DISABLED - Forces use of codesearch
|
|
27
|
+
grep: false # DISABLED - use codesearch instead
|
|
28
|
+
glob: false # DISABLED - use codesearch instead
|
|
29
|
+
bash: false # DISABLED
|
|
37
30
|
write: false
|
|
38
31
|
edit: false
|
|
39
32
|
patch: false
|
|
@@ -43,23 +36,22 @@ tools:
|
|
|
43
36
|
todowrite: false
|
|
44
37
|
todoread: false
|
|
45
38
|
|
|
46
|
-
# Permissions - strict read-only
|
|
39
|
+
# Permissions - strict read-only, NO grep/rg
|
|
47
40
|
permission:
|
|
48
41
|
edit: deny
|
|
42
|
+
grep: deny # Use codesearch instead
|
|
43
|
+
glob: deny # Use codesearch instead
|
|
49
44
|
bash:
|
|
50
|
-
"*": deny
|
|
45
|
+
"*": deny
|
|
51
46
|
"ls *": allow
|
|
52
47
|
"tree *": allow
|
|
53
|
-
"find *": allow
|
|
54
48
|
"wc *": allow
|
|
55
49
|
"head *": allow
|
|
56
50
|
"tail *": allow
|
|
57
51
|
"cat *": allow
|
|
58
52
|
"file *": allow
|
|
59
53
|
"stat *": allow
|
|
60
|
-
|
|
61
|
-
"grep *": allow
|
|
62
|
-
"rg *": allow # ripgrep
|
|
54
|
+
# grep/rg/find DENIED - use codesearch!
|
|
63
55
|
---
|
|
64
56
|
|
|
65
57
|
# ⛔ STOP! MANDATORY SEARCH ORDER ⛔
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Simple test tool to verify OpenCode loads custom tools
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { tool } from "@opencode-ai/plugin"
|
|
6
|
+
|
|
7
|
+
export default tool({
|
|
8
|
+
description: "Test tool - just returns pong",
|
|
9
|
+
|
|
10
|
+
args: {
|
|
11
|
+
message: tool.schema.string().optional().default("ping").describe("Message to echo"),
|
|
12
|
+
},
|
|
13
|
+
|
|
14
|
+
async execute(args) {
|
|
15
|
+
return `pong: ${args.message}`
|
|
16
|
+
},
|
|
17
|
+
})
|
|
File without changes
|