opencode-codebase-index 0.23.0 → 0.25.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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opencode-codebase-index",
3
- "version": "0.23.0",
3
+ "version": "0.25.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",
@@ -13,7 +13,8 @@
13
13
  }
14
14
  },
15
15
  "bin": {
16
- "opencode-codebase-index-mcp": "dist/cli.js"
16
+ "opencode-codebase-index-mcp": "dist/cli.js",
17
+ "cbi": "dist/cbi.js"
17
18
  },
18
19
  "license": "MIT",
19
20
  "author": "Kenneth",
@@ -47,6 +48,7 @@
47
48
  "eval:agent": "npx tsx src/cli.ts eval run --dataset benchmarks/golden/agent-context.json",
48
49
  "eval:pre-edit": "npx tsx src/cli.ts eval run --dataset benchmarks/golden/pre-edit-context.json",
49
50
  "eval:representative": "npx tsx src/cli.ts eval run --dataset benchmarks/golden/representative.json",
51
+ "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
52
  "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
53
  "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
54
  "eval:smoke": "npx tsx src/cli.ts eval run --config .github/eval-config.json --reindex --dataset benchmarks/golden/small.json",
@@ -57,6 +59,7 @@
57
59
  "benchmark:indexing-memory": "npx tsx benchmarks/indexing-memory.ts",
58
60
  "benchmark:watcher": "npx tsx benchmarks/watcher.ts",
59
61
  "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",
62
+ "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
63
  "dev:link-mcp": "node scripts/link-local-mcp-bin.mjs",
61
64
  "test": "vitest",
62
65
  "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
- ### `add_knowledge_base`
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
- add_knowledge_base(path="/path/to/docs")
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
- ### `remove_knowledge_base`
114
- Remove a knowledge base folder from the index.
109
+ ### Pi knowledge-base tools
115
110
 
116
- ```
117
- remove_knowledge_base(path="/path/to/docs")
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"` |