opencode-codebase-index 0.14.0 → 0.16.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/.claude-plugin/marketplace.json +1 -1
- package/.claude-plugin/plugin.json +1 -1
- package/.codex-plugin/plugin.json +2 -2
- package/README.md +73 -12
- package/dist/cli.cjs +1782 -607
- package/dist/cli.cjs.map +1 -1
- package/dist/cli.js +1781 -596
- package/dist/cli.js.map +1 -1
- package/dist/index.cjs +1610 -533
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +1606 -519
- package/dist/index.js.map +1 -1
- package/dist/pi-extension.cjs +1396 -311
- package/dist/pi-extension.cjs.map +1 -1
- package/dist/pi-extension.js +1395 -300
- package/dist/pi-extension.js.map +1 -1
- package/hooks/hooks.json +2 -2
- 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 +11 -8
- package/skills/codebase-search/SKILL.md +9 -7
package/hooks/hooks.json
CHANGED
|
@@ -6,8 +6,8 @@
|
|
|
6
6
|
"hooks": [
|
|
7
7
|
{
|
|
8
8
|
"type": "command",
|
|
9
|
-
"command": "printf '\
|
|
10
|
-
"commandWindows": "Write-Output '
|
|
9
|
+
"command": "printf '\nFor repository questions, use index_status when readiness is unknown, then call codebase_context before shell search, grep, or broad file reads. Pass symbol for definitions or from+to for dependency paths; use specialized lookup and graph tools afterward.\\n'",
|
|
10
|
+
"commandWindows": "Write-Output 'For repository questions, use index_status when readiness is unknown, then call codebase_context before shell search, grep, or broad file reads. Pass symbol for definitions or from+to for dependency paths; use specialized lookup and graph tools afterward.'",
|
|
11
11
|
"statusMessage": "Codebase Index ready"
|
|
12
12
|
}
|
|
13
13
|
]
|
|
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.16.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",
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"pi"
|
|
34
34
|
],
|
|
35
35
|
"engines": {
|
|
36
|
-
"node": ">=
|
|
36
|
+
"node": ">=20.0.0"
|
|
37
37
|
},
|
|
38
38
|
"scripts": {
|
|
39
39
|
"build": "npm run build:ts && npm run build:native",
|
|
@@ -91,28 +91,31 @@
|
|
|
91
91
|
"zod": "^4.4.3"
|
|
92
92
|
},
|
|
93
93
|
"devDependencies": {
|
|
94
|
-
"@earendil-works/pi-coding-agent": "^0.
|
|
94
|
+
"@earendil-works/pi-coding-agent": "^0.82.0",
|
|
95
95
|
"@eslint/js": "^9.39.4",
|
|
96
96
|
"@napi-rs/cli": "^3.6.0",
|
|
97
97
|
"@types/node": "^25.5.2",
|
|
98
98
|
"@vitest/coverage-v8": "^4.1.2",
|
|
99
99
|
"eslint": "^9.39.4",
|
|
100
100
|
"tsup": "^8.1.0",
|
|
101
|
+
"tsx": "^4.23.1",
|
|
101
102
|
"typescript": "^5.9.3",
|
|
102
103
|
"typescript-eslint": "^8.58.0",
|
|
103
104
|
"vitest": "^4.1.2"
|
|
104
105
|
},
|
|
105
106
|
"overrides": {
|
|
106
|
-
"@hono/node-server": "
|
|
107
|
-
"brace-expansion": "5.0.
|
|
107
|
+
"@hono/node-server": "2.0.10",
|
|
108
|
+
"brace-expansion": "5.0.7",
|
|
108
109
|
"express-rate-limit": "8.5.2",
|
|
109
|
-
"fast-uri": "3.1.
|
|
110
|
-
"hono": "4.12.
|
|
110
|
+
"fast-uri": "3.1.4",
|
|
111
|
+
"hono": "4.12.27",
|
|
111
112
|
"ip-address": "10.2.0",
|
|
112
113
|
"postcss": "8.5.15",
|
|
113
114
|
"qs": "6.15.2",
|
|
114
115
|
"vite": "8.0.16",
|
|
115
|
-
"esbuild": "0.28.1"
|
|
116
|
+
"esbuild": "0.28.1",
|
|
117
|
+
"body-parser": "2.3.0",
|
|
118
|
+
"js-yaml": "4.3.0"
|
|
116
119
|
},
|
|
117
120
|
"peerDependencies": {
|
|
118
121
|
"@earendil-works/pi-coding-agent": "*",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: codebase-search
|
|
3
|
-
description:
|
|
3
|
+
description: Preferred local codebase-understanding workflow for Pi and Codex. Start with codebase_context before shell search or broad reads, then use specialized semantic and graph tools.
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
# Codebase Search Skill
|
|
@@ -9,17 +9,19 @@ Use this skill when you need local repository knowledge before web lookup.
|
|
|
9
9
|
|
|
10
10
|
## Core workflow
|
|
11
11
|
|
|
12
|
-
1.
|
|
13
|
-
2. `
|
|
14
|
-
3. `
|
|
15
|
-
4. `
|
|
16
|
-
5. `implementation_lookup(query)`
|
|
12
|
+
1. Run `index_status` when index readiness or freshness is unknown.
|
|
13
|
+
2. Use `codebase_context(query, ...)` before shell search, grep, or broad file reads. Pass `symbol` for an authoritative definition or `from` + `to` for a dependency path.
|
|
14
|
+
3. Use `codebase_peek(query, ...)` for specialized metadata-only conceptual lookup.
|
|
15
|
+
4. Use `codebase_search(query, ...)` when you need full code context.
|
|
16
|
+
5. Use `implementation_lookup(query)` for known-symbol definitions and `call_graph` / `call_graph_path` for execution flow.
|
|
17
|
+
6. Use `find_similar(code)` for duplicate patterns and refactor planning.
|
|
17
18
|
|
|
18
19
|
If results are weak, run `index_status` (check readiness) and `index_codebase`.
|
|
19
20
|
|
|
20
21
|
## Tool Priority
|
|
21
22
|
|
|
22
|
-
- `
|
|
23
|
+
- `codebase_context` as the preferred first repository tool and unified router.
|
|
24
|
+
- `codebase_peek` for specialized discovery (fastest, cheap tokens).
|
|
23
25
|
- `codebase_search` for exact implementation review.
|
|
24
26
|
- `find_similar` for pattern matching and duplication.
|
|
25
27
|
- `call_graph` and `call_graph_path` for execution flow.
|