opencode-codebase-index 0.23.0 → 0.24.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 +1 -1
- package/README.md +6 -5
- package/commands/peek.md +2 -1
- package/commands/search.md +2 -1
- package/dist/cli.cjs +1020 -260
- package/dist/cli.cjs.map +1 -1
- package/dist/cli.js +1020 -260
- package/dist/cli.js.map +1 -1
- package/dist/index.cjs +788 -256
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +788 -256
- package/dist/index.js.map +1 -1
- package/dist/pi-extension.cjs +5440 -2157
- package/dist/pi-extension.cjs.map +1 -1
- package/dist/pi-extension.js +5429 -2146
- package/dist/pi-extension.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 +3 -1
- package/skill/SKILL.md +12 -16
|
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.24.0",
|
|
4
4
|
"description": "Host-neutral semantic codebase search with embeddings, symbol discovery, and call-graph tooling",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -47,6 +47,7 @@
|
|
|
47
47
|
"eval:agent": "npx tsx src/cli.ts eval run --dataset benchmarks/golden/agent-context.json",
|
|
48
48
|
"eval:pre-edit": "npx tsx src/cli.ts eval run --dataset benchmarks/golden/pre-edit-context.json",
|
|
49
49
|
"eval:representative": "npx tsx src/cli.ts eval run --dataset benchmarks/golden/representative.json",
|
|
50
|
+
"eval:representative:ollama": "npx tsx src/cli.ts eval run --config .github/eval-ollama-full-config.json --reindex --dataset benchmarks/golden/representative.json --budget benchmarks/budgets/representative.json",
|
|
50
51
|
"eval:agent:ci": "npx tsx src/cli.ts eval run --dataset benchmarks/golden/agent-context.json --reindex --ci --budget benchmarks/budgets/agent-context.json",
|
|
51
52
|
"eval:pre-edit:ci": "npx tsx src/cli.ts eval run --config .github/eval-config.json --reindex --dataset benchmarks/golden/pre-edit-context.json --ci --budget benchmarks/budgets/pre-edit.json",
|
|
52
53
|
"eval:smoke": "npx tsx src/cli.ts eval run --config .github/eval-config.json --reindex --dataset benchmarks/golden/small.json",
|
|
@@ -57,6 +58,7 @@
|
|
|
57
58
|
"benchmark:indexing-memory": "npx tsx benchmarks/indexing-memory.ts",
|
|
58
59
|
"benchmark:watcher": "npx tsx benchmarks/watcher.ts",
|
|
59
60
|
"benchmark:cross-repo:check": "npx vitest run tests/cross-repo-benchmark-dataset-dir.test.ts tests/cross-repo-codegraph.test.ts tests/cross-repo-codebase-memory.test.ts",
|
|
61
|
+
"benchmark:cross-repo:sources:check": "npx tsx scripts/validate-cross-repo-cohort.ts --cohort-dir benchmarks/golden/expanded-cross-repo --work-dir ./.tmp/cross-repo-sources",
|
|
60
62
|
"dev:link-mcp": "node scripts/link-local-mcp-bin.mjs",
|
|
61
63
|
"test": "vitest",
|
|
62
64
|
"pretest:run": "node scripts/run-build-native-with-rustflags.mjs && npm run build:ts",
|
package/skill/SKILL.md
CHANGED
|
@@ -10,7 +10,7 @@ description: Semantic code and documentation search by meaning. Use codebase_pee
|
|
|
10
10
|
The indexed codebase contains **two types of content**:
|
|
11
11
|
|
|
12
12
|
1. **Project Source Code** — all code files in the current workspace
|
|
13
|
-
2. **Knowledge Base Documentation** — external documentation, usage guides, API references, and example programs added via `add_knowledge_base`
|
|
13
|
+
2. **Knowledge Base Documentation** — external documentation, usage guides, API references, and example programs added via `add_knowledge_base` (MCP/OpenCode) or `knowledge_base_add` (Pi).
|
|
14
14
|
|
|
15
15
|
## When to Use What
|
|
16
16
|
|
|
@@ -77,14 +77,14 @@ Find code with full content. Use when you need to see implementation.
|
|
|
77
77
|
|
|
78
78
|
```
|
|
79
79
|
codebase_search(query="error handling middleware", fileType="ts", contextLines=2)
|
|
80
|
-
codebase_search(query="rate limiter", blameSince="2025-01-01")
|
|
80
|
+
codebase_search(query="rate limiter", blameSince="2025-01-01", blameUntil="2025-01-31")
|
|
81
81
|
```
|
|
82
82
|
|
|
83
83
|
### `find_similar`
|
|
84
84
|
Find code similar to a given snippet. Use for duplicate detection, pattern discovery, refactoring.
|
|
85
85
|
|
|
86
86
|
```
|
|
87
|
-
find_similar(code="function validate(input) { return input.length > 0; }", excludeFile="src/current.ts")
|
|
87
|
+
find_similar(code="function validate(input) { return input.length > 0; }", excludeFile="src/current.ts", blameSince="2025-01-01")
|
|
88
88
|
```
|
|
89
89
|
|
|
90
90
|
### `call_graph`
|
|
@@ -100,22 +100,17 @@ Manually trigger indexing. Required before first search.
|
|
|
100
100
|
### `index_status`
|
|
101
101
|
Check if indexed and ready.
|
|
102
102
|
|
|
103
|
-
###
|
|
104
|
-
Add a folder as a knowledge base. The folder will be indexed alongside project code.
|
|
103
|
+
### MCP/OpenCode knowledge-base tools
|
|
105
104
|
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
### `list_knowledge_bases`
|
|
111
|
-
List all configured knowledge base folders.
|
|
105
|
+
- `add_knowledge_base(path="/path/to/docs")`
|
|
106
|
+
- `list_knowledge_bases`
|
|
107
|
+
- `remove_knowledge_base(path="/path/to/docs")`
|
|
112
108
|
|
|
113
|
-
###
|
|
114
|
-
Remove a knowledge base folder from the index.
|
|
109
|
+
### Pi knowledge-base tools
|
|
115
110
|
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
111
|
+
- `knowledge_base_add(path="/path/to/docs")`
|
|
112
|
+
- `knowledge_base_list`
|
|
113
|
+
- `knowledge_base_remove(path="/path/to/docs")`
|
|
119
114
|
|
|
120
115
|
## Query Tips
|
|
121
116
|
|
|
@@ -137,3 +132,4 @@ remove_knowledge_base(path="/path/to/docs")
|
|
|
137
132
|
| `blameAuthor` | `"jane@example.com"` or `"Jane Doe"` |
|
|
138
133
|
| `blameSha` | `"abc1234"` |
|
|
139
134
|
| `blameSince` | `"2025-01-01"` |
|
|
135
|
+
| `blameUntil` | `"2025-01-31"` |
|