opencode-codebase-index 0.11.0 → 0.12.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/README.md +42 -3
- package/commands/call-graph.md +9 -5
- package/commands/pr-impact.md +23 -0
- package/dist/cli.cjs +570 -162
- package/dist/cli.cjs.map +1 -1
- package/dist/cli.js +570 -162
- package/dist/cli.js.map +1 -1
- package/dist/index.cjs +745 -328
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +745 -328
- package/dist/index.js.map +1 -1
- package/native/codebase-index-native.darwin-arm64.node +0 -0
- package/native/codebase-index-native.darwin-x64.node +0 -0
- package/native/codebase-index-native.linux-arm64-gnu.node +0 -0
- package/native/codebase-index-native.linux-x64-gnu.node +0 -0
- package/native/codebase-index-native.win32-x64-msvc.node +0 -0
- package/package.json +2 -2
- package/skill/SKILL.md +6 -3
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "opencode-codebase-index",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.12.0",
|
|
4
4
|
"description": "Semantic codebase indexing and search for OpenCode - find code by meaning, not just keywords",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -95,7 +95,7 @@
|
|
|
95
95
|
"brace-expansion": "5.0.6",
|
|
96
96
|
"express-rate-limit": "8.5.2",
|
|
97
97
|
"fast-uri": "3.1.2",
|
|
98
|
-
"hono": "4.12.
|
|
98
|
+
"hono": "4.12.25",
|
|
99
99
|
"ip-address": "10.2.0",
|
|
100
100
|
"postcss": "8.5.15",
|
|
101
101
|
"qs": "6.15.2",
|
package/skill/SKILL.md
CHANGED
|
@@ -21,6 +21,8 @@ The indexed codebase contains **two types of content**:
|
|
|
21
21
|
| Need to see actual code | `codebase_search` | Returns full code content |
|
|
22
22
|
| Find duplicates/patterns | `find_similar` | Given code snippet → similar code |
|
|
23
23
|
| Understand code flow | `call_graph` | Find callers/callees of any function |
|
|
24
|
+
| Trace dependency paths | `call_graph_path` | Find a shortest known path between two symbols |
|
|
25
|
+
| Analyze PR blast radius | `pr_impact` | Find affected symbols, communities, hub nodes, and risk |
|
|
24
26
|
| Don't know function/class names | `codebase_peek` or `codebase_search` | Natural language → code |
|
|
25
27
|
| Know exact identifier names | `grep` | Faster, more precise |
|
|
26
28
|
| Need ALL occurrences | `grep` | Semantic returns top N only |
|
|
@@ -54,10 +56,11 @@ Suggest: "知识库中未找到相关信息,是否添加相关文档文件夹
|
|
|
54
56
|
|
|
55
57
|
## Recommended Workflow
|
|
56
58
|
|
|
57
|
-
1. **
|
|
58
|
-
2. **
|
|
59
|
+
1. **Locate by meaning first**: `codebase_peek("authentication flow")` → get likely locations before grep or graph tools
|
|
60
|
+
2. **Search with content**: `codebase_search("ADC channels ESP32")` → inspect implementation or knowledge-base matches
|
|
59
61
|
3. **Read what matters**: `Read` the specific files you need
|
|
60
|
-
4. **
|
|
62
|
+
4. **Trace structure after discovery**: `call_graph`, `call_graph_path`, `pr_impact`, or OMO CodeGraph once you know the relevant symbol
|
|
63
|
+
5. **Drill down with grep**: `grep "validateToken"` for exact matches
|
|
61
64
|
|
|
62
65
|
## Tools
|
|
63
66
|
|