opencode-codebase-index 0.9.0 → 0.10.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/README.md +4 -2
- package/dist/cli.cjs +6 -5
- package/dist/cli.cjs.map +1 -1
- package/dist/cli.js +6 -5
- package/dist/cli.js.map +1 -1
- package/dist/index.cjs +171 -90
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +171 -90
- 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.win32-x64-msvc.node +0 -0
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -794,7 +794,8 @@ function getDefaultSearchConfig() {
|
|
|
794
794
|
rrfK: 60,
|
|
795
795
|
rerankTopN: 20,
|
|
796
796
|
contextLines: 0,
|
|
797
|
-
routingHints: true
|
|
797
|
+
routingHints: true,
|
|
798
|
+
routingHintRole: "system"
|
|
798
799
|
};
|
|
799
800
|
}
|
|
800
801
|
function getDefaultRerankerBaseUrl(provider) {
|
|
@@ -915,7 +916,8 @@ function parseConfig(raw) {
|
|
|
915
916
|
rrfK: typeof rawSearch.rrfK === "number" ? Math.max(1, Math.floor(rawSearch.rrfK)) : defaultSearch.rrfK,
|
|
916
917
|
rerankTopN: typeof rawSearch.rerankTopN === "number" ? Math.min(200, Math.max(0, Math.floor(rawSearch.rerankTopN))) : defaultSearch.rerankTopN,
|
|
917
918
|
contextLines: typeof rawSearch.contextLines === "number" ? Math.min(50, Math.max(0, rawSearch.contextLines)) : defaultSearch.contextLines,
|
|
918
|
-
routingHints: typeof rawSearch.routingHints === "boolean" ? rawSearch.routingHints : defaultSearch.routingHints
|
|
919
|
+
routingHints: typeof rawSearch.routingHints === "boolean" ? rawSearch.routingHints : defaultSearch.routingHints,
|
|
920
|
+
routingHintRole: rawSearch.routingHintRole === "developer" || rawSearch.routingHintRole === "system" ? rawSearch.routingHintRole : defaultSearch.routingHintRole
|
|
919
921
|
};
|
|
920
922
|
const rawDebug = input.debug && typeof input.debug === "object" ? input.debug : {};
|
|
921
923
|
const debug = {
|
|
@@ -10087,9 +10089,8 @@ async function main() {
|
|
|
10087
10089
|
process.on("SIGINT", shutdown);
|
|
10088
10090
|
process.on("SIGTERM", shutdown);
|
|
10089
10091
|
}
|
|
10090
|
-
main().catch((
|
|
10091
|
-
|
|
10092
|
-
console.error(`Fatal: ${message}`);
|
|
10092
|
+
main().catch((_error) => {
|
|
10093
|
+
console.error("Fatal: failed to start MCP server (check config and network)");
|
|
10093
10094
|
process.exit(1);
|
|
10094
10095
|
});
|
|
10095
10096
|
//# sourceMappingURL=cli.js.map
|