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
package/dist/cli.js
CHANGED
|
@@ -653,10 +653,10 @@ var require_ignore = __commonJS({
|
|
|
653
653
|
|
|
654
654
|
// src/cli.ts
|
|
655
655
|
import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js";
|
|
656
|
-
import { writeFileSync as writeFileSync6 } from "fs";
|
|
656
|
+
import { realpathSync as realpathSync2, writeFileSync as writeFileSync6 } from "fs";
|
|
657
657
|
import * as os5 from "os";
|
|
658
658
|
import * as path24 from "path";
|
|
659
|
-
import {
|
|
659
|
+
import { fileURLToPath as fileURLToPath2 } from "url";
|
|
660
660
|
|
|
661
661
|
// src/config/constants.ts
|
|
662
662
|
var DEFAULT_INCLUDE = [
|
|
@@ -13754,6 +13754,9 @@ function parseArgs(argv) {
|
|
|
13754
13754
|
function loadCliRawConfig(args) {
|
|
13755
13755
|
return args.config ? loadConfigFile(args.config) : loadMergedConfig(args.project, args.host);
|
|
13756
13756
|
}
|
|
13757
|
+
function isCliEntrypoint(moduleUrl, argvPath) {
|
|
13758
|
+
return argvPath !== void 0 && realpathSync2(fileURLToPath2(moduleUrl)) === realpathSync2(argvPath);
|
|
13759
|
+
}
|
|
13757
13760
|
function parseVisualizeArgs(argv, cwd) {
|
|
13758
13761
|
let project = cwd;
|
|
13759
13762
|
let directory;
|
|
@@ -13865,10 +13868,11 @@ function handleMainError(error) {
|
|
|
13865
13868
|
console.error("Fatal: failed to start MCP server");
|
|
13866
13869
|
process.exit(1);
|
|
13867
13870
|
}
|
|
13868
|
-
if (
|
|
13871
|
+
if (isCliEntrypoint(import.meta.url, process.argv[1])) {
|
|
13869
13872
|
main().catch(handleMainError);
|
|
13870
13873
|
}
|
|
13871
13874
|
export {
|
|
13875
|
+
isCliEntrypoint,
|
|
13872
13876
|
loadCliRawConfig,
|
|
13873
13877
|
parseArgs
|
|
13874
13878
|
};
|