@comfanion/workflow 4.16.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,23 +1,23 @@
|
|
|
1
1
|
---
|
|
2
2
|
description: |
|
|
3
3
|
Codebase Crawler - Semantic search explorer.
|
|
4
|
-
grep and glob are DISABLED. Use
|
|
4
|
+
grep and glob are DISABLED. Use search() instead!
|
|
5
5
|
|
|
6
6
|
WORKFLOW:
|
|
7
7
|
1. codeindex({ action: "list", index: "code" })
|
|
8
|
-
2.
|
|
9
|
-
3. read the files from
|
|
8
|
+
2. search({ query: "your concept", index: "code" })
|
|
9
|
+
3. read the files from search results
|
|
10
10
|
|
|
11
11
|
Example:
|
|
12
|
-
|
|
12
|
+
search({ query: "category mapping entity repository", index: "code" })
|
|
13
13
|
mode: subagent
|
|
14
14
|
temperature: 0.1
|
|
15
15
|
|
|
16
16
|
# Tools - READ-ONLY exploration
|
|
17
|
-
# ⛔ grep/glob DISABLED - use
|
|
17
|
+
# ⛔ grep/glob DISABLED - use search() instead!
|
|
18
18
|
tools:
|
|
19
19
|
# ENABLED - Semantic search only
|
|
20
|
-
|
|
20
|
+
search: true # ⭐ USE THIS for finding code (renamed from codesearch)
|
|
21
21
|
codeindex: true # Check/manage indexes
|
|
22
22
|
read: true # Read files
|
|
23
23
|
list: true # List directories
|
|
@@ -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
|