opencode-codebase-index 0.22.1 → 0.22.3
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 +2 -2
- package/.claude-plugin/plugin.json +12 -5
- package/.codex-plugin/plugin.json +7 -7
- package/.mcp.json +8 -1
- package/README.md +1 -1
- package/dist/cli.cjs +22 -3
- package/dist/cli.cjs.map +1 -1
- package/dist/cli.js +22 -3
- package/dist/cli.js.map +1 -1
- package/dist/index.cjs +22 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +22 -3
- package/dist/index.js.map +1 -1
- package/dist/pi-extension.cjs +2 -2
- package/dist/pi-extension.cjs.map +1 -1
- package/dist/pi-extension.js +2 -2
- 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 +2 -2
|
@@ -3,14 +3,14 @@
|
|
|
3
3
|
"owner": {
|
|
4
4
|
"name": "Kenneth",
|
|
5
5
|
"email": "kenneth@example.com",
|
|
6
|
-
"url": "https://github.com/Helweg/
|
|
6
|
+
"url": "https://github.com/Helweg/open-codebase-index"
|
|
7
7
|
},
|
|
8
8
|
"plugins": [
|
|
9
9
|
{
|
|
10
10
|
"name": "codebase-index",
|
|
11
11
|
"description": "Semantic code search and codebase graph tools for Claude Code",
|
|
12
12
|
"source": "./",
|
|
13
|
-
"version": "0.22.
|
|
13
|
+
"version": "0.22.3"
|
|
14
14
|
}
|
|
15
15
|
]
|
|
16
16
|
}
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "codebase-index",
|
|
3
|
-
"version": "0.22.
|
|
3
|
+
"version": "0.22.3",
|
|
4
4
|
"description": "Semantic code search and codebase graph tools for Claude Code",
|
|
5
5
|
"displayName": "Codebase Index",
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "Kenneth",
|
|
8
8
|
"email": "kenneth@example.com",
|
|
9
|
-
"url": "https://github.com/Helweg/
|
|
9
|
+
"url": "https://github.com/Helweg/open-codebase-index"
|
|
10
10
|
},
|
|
11
|
-
"homepage": "https://github.com/Helweg/
|
|
12
|
-
"repository": "https://github.com/Helweg/
|
|
11
|
+
"homepage": "https://github.com/Helweg/open-codebase-index",
|
|
12
|
+
"repository": "https://github.com/Helweg/open-codebase-index",
|
|
13
13
|
"license": "MIT",
|
|
14
14
|
"keywords": [
|
|
15
15
|
"codebase-index",
|
|
@@ -22,7 +22,14 @@
|
|
|
22
22
|
"mcpServers": {
|
|
23
23
|
"codebase-index": {
|
|
24
24
|
"command": "npx",
|
|
25
|
-
"args": [
|
|
25
|
+
"args": [
|
|
26
|
+
"-y",
|
|
27
|
+
"--package",
|
|
28
|
+
"opencode-codebase-index",
|
|
29
|
+
"opencode-codebase-index-mcp",
|
|
30
|
+
"--host",
|
|
31
|
+
"claude"
|
|
32
|
+
]
|
|
26
33
|
}
|
|
27
34
|
}
|
|
28
35
|
}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "codebase-index",
|
|
3
|
-
"version": "0.22.
|
|
3
|
+
"version": "0.22.3",
|
|
4
4
|
"description": "Semantic code search and codebase graph tools for Codex",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Kenneth",
|
|
7
7
|
"email": "kenneth@example.com",
|
|
8
|
-
"url": "https://github.com/Helweg/
|
|
8
|
+
"url": "https://github.com/Helweg/open-codebase-index"
|
|
9
9
|
},
|
|
10
|
-
"homepage": "https://github.com/Helweg/
|
|
11
|
-
"repository": "https://github.com/Helweg/
|
|
10
|
+
"homepage": "https://github.com/Helweg/open-codebase-index",
|
|
11
|
+
"repository": "https://github.com/Helweg/open-codebase-index",
|
|
12
12
|
"license": "MIT",
|
|
13
13
|
"keywords": [
|
|
14
14
|
"codebase-index",
|
|
@@ -32,9 +32,9 @@
|
|
|
32
32
|
"MCP Tools",
|
|
33
33
|
"Search"
|
|
34
34
|
],
|
|
35
|
-
"websiteURL": "https://github.com/Helweg/
|
|
36
|
-
"privacyPolicyURL": "https://github.com/Helweg/
|
|
37
|
-
"termsOfServiceURL": "https://github.com/Helweg/
|
|
35
|
+
"websiteURL": "https://github.com/Helweg/open-codebase-index",
|
|
36
|
+
"privacyPolicyURL": "https://github.com/Helweg/open-codebase-index/blob/main/SECURITY.md",
|
|
37
|
+
"termsOfServiceURL": "https://github.com/Helweg/open-codebase-index/blob/main/LICENSE",
|
|
38
38
|
"brandColor": "#3B82F6",
|
|
39
39
|
"defaultPrompt": [
|
|
40
40
|
"For repository questions, use index_status when readiness is unknown, then call codebase_context before shell search or broad file reads."
|
package/.mcp.json
CHANGED
|
@@ -2,7 +2,14 @@
|
|
|
2
2
|
"mcpServers": {
|
|
3
3
|
"codebase-index": {
|
|
4
4
|
"command": "npx",
|
|
5
|
-
"args": [
|
|
5
|
+
"args": [
|
|
6
|
+
"-y",
|
|
7
|
+
"--package",
|
|
8
|
+
"opencode-codebase-index",
|
|
9
|
+
"opencode-codebase-index-mcp",
|
|
10
|
+
"--host",
|
|
11
|
+
"codex"
|
|
12
|
+
]
|
|
6
13
|
}
|
|
7
14
|
}
|
|
8
15
|
}
|
package/README.md
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
[](https://www.npmjs.com/package/open-codebase-index)
|
|
4
4
|
[](https://opensource.org/licenses/MIT)
|
|
5
5
|
[](https://www.npmjs.com/package/open-codebase-index)
|
|
6
|
-
[](https://github.com/Helweg/open-codebase-index/actions)
|
|
7
7
|
[](https://nodejs.org/)
|
|
8
8
|
|
|
9
9
|
> Search a codebase by meaning, then follow the result into definitions, callers, and dependency paths.
|
package/dist/cli.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
//
|
|
2
|
+
// open-codebase-index - Semantic codebase indexing and search
|
|
3
3
|
"use strict";
|
|
4
4
|
var __create = Object.create;
|
|
5
5
|
var __defProp = Object.defineProperty;
|
|
@@ -4163,7 +4163,7 @@ var identity_catalog_default = {
|
|
|
4163
4163
|
current: {
|
|
4164
4164
|
productName: "opencode-codebase-index",
|
|
4165
4165
|
packageName: "opencode-codebase-index",
|
|
4166
|
-
repository: "https://github.com/Helweg/
|
|
4166
|
+
repository: "https://github.com/Helweg/open-codebase-index",
|
|
4167
4167
|
mcpBinary: "opencode-codebase-index-mcp",
|
|
4168
4168
|
mcpServerName: "opencode-codebase-index"
|
|
4169
4169
|
},
|
|
@@ -19598,6 +19598,8 @@ var GitHeadWatcher = class {
|
|
|
19598
19598
|
debounceTimer = null;
|
|
19599
19599
|
debounceMs = 100;
|
|
19600
19600
|
// Short debounce for git operations
|
|
19601
|
+
readyPromise = Promise.resolve();
|
|
19602
|
+
resolveReady = null;
|
|
19601
19603
|
constructor(projectRoot) {
|
|
19602
19604
|
this.projectRoot = projectRoot;
|
|
19603
19605
|
}
|
|
@@ -19606,8 +19608,12 @@ var GitHeadWatcher = class {
|
|
|
19606
19608
|
return;
|
|
19607
19609
|
}
|
|
19608
19610
|
if (!isGitRepo(this.projectRoot)) {
|
|
19611
|
+
this.readyPromise = Promise.resolve();
|
|
19609
19612
|
return;
|
|
19610
19613
|
}
|
|
19614
|
+
this.readyPromise = new Promise((resolve18) => {
|
|
19615
|
+
this.resolveReady = resolve18;
|
|
19616
|
+
});
|
|
19611
19617
|
this.onBranchChange = handler;
|
|
19612
19618
|
this.currentBranch = getCurrentBranch(this.projectRoot);
|
|
19613
19619
|
const headPath = getHeadPath(this.projectRoot);
|
|
@@ -19622,6 +19628,10 @@ var GitHeadWatcher = class {
|
|
|
19622
19628
|
});
|
|
19623
19629
|
this.watcher.on("change", () => this.handleHeadChange());
|
|
19624
19630
|
this.watcher.on("add", () => this.handleHeadChange());
|
|
19631
|
+
this.watcher.once("ready", () => {
|
|
19632
|
+
this.resolveReady?.();
|
|
19633
|
+
this.resolveReady = null;
|
|
19634
|
+
});
|
|
19625
19635
|
}
|
|
19626
19636
|
handleHeadChange() {
|
|
19627
19637
|
if (this.debounceTimer) {
|
|
@@ -19659,10 +19669,16 @@ var GitHeadWatcher = class {
|
|
|
19659
19669
|
await watcher.close();
|
|
19660
19670
|
}
|
|
19661
19671
|
this.onBranchChange = null;
|
|
19672
|
+
this.resolveReady?.();
|
|
19673
|
+
this.resolveReady = null;
|
|
19674
|
+
this.readyPromise = Promise.resolve();
|
|
19662
19675
|
}
|
|
19663
19676
|
isRunning() {
|
|
19664
19677
|
return this.watcher !== null;
|
|
19665
19678
|
}
|
|
19679
|
+
async waitUntilReady() {
|
|
19680
|
+
await this.readyPromise;
|
|
19681
|
+
}
|
|
19666
19682
|
};
|
|
19667
19683
|
|
|
19668
19684
|
// src/watcher/index.ts
|
|
@@ -19712,7 +19728,10 @@ function createWatcherWithIndexer(getIndexer, projectRoot, config, host, options
|
|
|
19712
19728
|
fileWatcher,
|
|
19713
19729
|
gitWatcher,
|
|
19714
19730
|
whenReady() {
|
|
19715
|
-
return
|
|
19731
|
+
return Promise.all([
|
|
19732
|
+
fileWatcher.waitUntilReady(),
|
|
19733
|
+
gitWatcher?.waitUntilReady()
|
|
19734
|
+
]).then(() => void 0);
|
|
19716
19735
|
},
|
|
19717
19736
|
async stop() {
|
|
19718
19737
|
stopped = true;
|