opencode-codebase-index 0.3.0 → 0.3.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/README.md +24 -0
- package/dist/index.cjs +573 -15
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +573 -15
- 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 +3 -1
- package/skill/SKILL.md +15 -0
|
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.
|
|
3
|
+
"version": "0.3.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",
|
|
@@ -38,6 +38,7 @@
|
|
|
38
38
|
"dev": "tsup --watch",
|
|
39
39
|
"test": "vitest",
|
|
40
40
|
"test:run": "vitest run",
|
|
41
|
+
"test:coverage": "vitest run --coverage",
|
|
41
42
|
"lint": "eslint src/",
|
|
42
43
|
"typecheck": "tsc --noEmit",
|
|
43
44
|
"prepublishOnly": "npm run build"
|
|
@@ -70,6 +71,7 @@
|
|
|
70
71
|
"@napi-rs/cli": "^3.5.1",
|
|
71
72
|
"@opencode-ai/plugin": "^1.1.21",
|
|
72
73
|
"@types/node": "^25.0.8",
|
|
74
|
+
"@vitest/coverage-v8": "^4.0.17",
|
|
73
75
|
"eslint": "^9.0.0",
|
|
74
76
|
"tsup": "^8.1.0",
|
|
75
77
|
"typescript": "^5.5.0",
|
package/skill/SKILL.md
CHANGED
|
@@ -55,6 +55,21 @@ Check if the codebase is indexed and ready for search.
|
|
|
55
55
|
### `index_health_check`
|
|
56
56
|
Remove stale entries from deleted files and orphaned embeddings.
|
|
57
57
|
|
|
58
|
+
### `index_metrics`
|
|
59
|
+
Get performance statistics for indexing and search operations.
|
|
60
|
+
Requires `debug.enabled` and `debug.metrics` to be `true` in config.
|
|
61
|
+
|
|
62
|
+
**Shows:** Files indexed, chunks created, cache hit rate, search timing breakdown, GC stats, embedding API call stats.
|
|
63
|
+
|
|
64
|
+
### `index_logs`
|
|
65
|
+
Get recent debug logs with optional filtering.
|
|
66
|
+
Requires `debug.enabled` to be `true` in config.
|
|
67
|
+
|
|
68
|
+
**Parameters:**
|
|
69
|
+
- `limit` (optional): Maximum log entries (default: 20)
|
|
70
|
+
- `category` (optional): Filter by `search`, `embedding`, `cache`, `gc`, `branch`, `general`
|
|
71
|
+
- `level` (optional): Filter by `error`, `warn`, `info`, `debug`
|
|
72
|
+
|
|
58
73
|
## Search Filters
|
|
59
74
|
|
|
60
75
|
### Filter by Chunk Type (`chunkType`)
|