opencode-codebase-index 0.13.0 → 0.13.1
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 -2
- package/.codex-plugin/plugin.json +1 -1
- package/README.md +0 -1
- package/dist/cli.cjs +6 -1
- package/dist/cli.cjs.map +1 -1
- package/dist/cli.js +7 -3
- package/dist/cli.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.win32-x64-msvc.node +0 -0
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "codebase-index",
|
|
3
|
-
"version": "0.13.
|
|
3
|
+
"version": "0.13.1",
|
|
4
4
|
"description": "Semantic code search and codebase graph tools for Claude Code",
|
|
5
5
|
"displayName": "Codebase Index",
|
|
6
6
|
"author": {
|
|
@@ -19,7 +19,6 @@
|
|
|
19
19
|
"mcp"
|
|
20
20
|
],
|
|
21
21
|
"skills": "./skills/",
|
|
22
|
-
"hooks": "./hooks/hooks.json",
|
|
23
22
|
"mcpServers": {
|
|
24
23
|
"codebase-index": {
|
|
25
24
|
"command": "npx",
|
package/README.md
CHANGED
|
@@ -115,7 +115,6 @@ Install once for Claude Code sessions and get skill guidance plus MCP tools in o
|
|
|
115
115
|
|
|
116
116
|
The plugin includes:
|
|
117
117
|
- `skills/` guidance for local workflows
|
|
118
|
-
- `hooks/hooks.json` lightweight session-start guidance
|
|
119
118
|
- inline `mcpServers` (in `.claude-plugin/plugin.json`) running the published `opencode-codebase-index` CLI via `npx … --host claude`, so a git marketplace install works without a local build
|
|
120
119
|
- `.claude-plugin/marketplace.json` so this repo can act as a Claude Code marketplace source
|
|
121
120
|
|
package/dist/cli.cjs
CHANGED
|
@@ -659,6 +659,7 @@ var require_ignore = __commonJS({
|
|
|
659
659
|
// src/cli.ts
|
|
660
660
|
var cli_exports = {};
|
|
661
661
|
__export(cli_exports, {
|
|
662
|
+
isCliEntrypoint: () => isCliEntrypoint,
|
|
662
663
|
loadCliRawConfig: () => loadCliRawConfig,
|
|
663
664
|
parseArgs: () => parseArgs
|
|
664
665
|
});
|
|
@@ -13768,6 +13769,9 @@ function parseArgs(argv) {
|
|
|
13768
13769
|
function loadCliRawConfig(args) {
|
|
13769
13770
|
return args.config ? loadConfigFile(args.config) : loadMergedConfig(args.project, args.host);
|
|
13770
13771
|
}
|
|
13772
|
+
function isCliEntrypoint(moduleUrl, argvPath) {
|
|
13773
|
+
return argvPath !== void 0 && (0, import_fs15.realpathSync)((0, import_url2.fileURLToPath)(moduleUrl)) === (0, import_fs15.realpathSync)(argvPath);
|
|
13774
|
+
}
|
|
13771
13775
|
function parseVisualizeArgs(argv, cwd) {
|
|
13772
13776
|
let project = cwd;
|
|
13773
13777
|
let directory;
|
|
@@ -13879,11 +13883,12 @@ function handleMainError(error) {
|
|
|
13879
13883
|
console.error("Fatal: failed to start MCP server");
|
|
13880
13884
|
process.exit(1);
|
|
13881
13885
|
}
|
|
13882
|
-
if (
|
|
13886
|
+
if (isCliEntrypoint(import_meta3.url, process.argv[1])) {
|
|
13883
13887
|
main().catch(handleMainError);
|
|
13884
13888
|
}
|
|
13885
13889
|
// Annotate the CommonJS export names for ESM import in node:
|
|
13886
13890
|
0 && (module.exports = {
|
|
13891
|
+
isCliEntrypoint,
|
|
13887
13892
|
loadCliRawConfig,
|
|
13888
13893
|
parseArgs
|
|
13889
13894
|
});
|