opencode-codebase-index 0.5.0 → 0.5.2

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opencode-codebase-index",
3
- "version": "0.5.0",
3
+ "version": "0.5.2",
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",
@@ -99,5 +99,4 @@
99
99
  "optional": true
100
100
  }
101
101
  }
102
-
103
- }
102
+ }
package/skill/SKILL.md CHANGED
@@ -12,6 +12,7 @@ description: Semantic code search by meaning. Use codebase_peek to find WHERE co
12
12
  | Just need file locations | `codebase_peek` | Metadata only, saves ~90% tokens |
13
13
  | Need to see actual code | `codebase_search` | Returns full code content |
14
14
  | Find duplicates/patterns | `find_similar` | Given code snippet → similar code |
15
+ | Understand code flow | `call_graph` | Find callers/callees of any function |
15
16
  | Don't know function/class names | `codebase_peek` or `codebase_search` | Natural language → code |
16
17
  | Know exact identifier names | `grep` | Faster, more precise |
17
18
  | Need ALL occurrences | `grep` | Semantic returns top N only |
@@ -45,8 +46,19 @@ Find code similar to a given snippet. Use for duplicate detection, pattern disco
45
46
  find_similar(code="function validate(input) { return input.length > 0; }", excludeFile="src/current.ts")
46
47
  ```
47
48
 
49
+ ### `call_graph`
50
+ Query callers or callees of a function/method. Built automatically during indexing for TypeScript, JavaScript, Python, Go, and Rust.
51
+
52
+ ```
53
+ call_graph(name="validateToken", direction="callers")
54
+ call_graph(name="validateToken", direction="callees", symbolId="src/auth.ts::validateToken")
55
+ ```
56
+
57
+ - `direction="callers"`: Who calls this function?
58
+ - `direction="callees"`: What does this function call? (requires `symbolId` from a prior callers query)
59
+
48
60
  ### `index_codebase`
49
- Create/update index. Required before first search. Incremental (~50ms when unchanged).
61
+ Manually trigger indexing. Required before first search. Incremental (~50ms when unchanged).
50
62
 
51
63
  ### `index_status`
52
64
  Check if indexed and ready.