brainbank 0.1.5 → 0.1.6
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/dist/{chunk-3UIWA32X.js → chunk-I46ALO53.js} +3 -2
- package/dist/chunk-I46ALO53.js.map +1 -0
- package/dist/cli.js +2 -2
- package/dist/index.js +1 -1
- package/dist/mcp.js +1 -1
- package/dist/{stats-tui-AD3AMYGV.js → stats-tui-RI42XJZ5.js} +2 -2
- package/package.json +1 -1
- package/src/search/context-builder.ts +5 -2
- package/dist/chunk-3UIWA32X.js.map +0 -1
- /package/dist/{stats-tui-AD3AMYGV.js.map → stats-tui-RI42XJZ5.js.map} +0 -0
|
@@ -700,7 +700,8 @@ var ContextBuilder = class {
|
|
|
700
700
|
if (pruner && results.length > 1) {
|
|
701
701
|
dbg(`[pruner] Running ${_prunerName(pruner)} on ${results.length} results...`);
|
|
702
702
|
const pruneT0 = Date.now();
|
|
703
|
-
const
|
|
703
|
+
const explicitDesc = [options.context, options.prunerContext].filter(Boolean).join("\n\n");
|
|
704
|
+
const prunerDesc = explicitDesc || "Auto-mode: aggressively drop files that are not directly related to the query. Keep only core implementation, types, and orchestration files. Drop infrastructure, config, unrelated services, and boilerplate.";
|
|
704
705
|
results = await pruneResults(task, results, pruner, prunerDesc);
|
|
705
706
|
const pruneMs = Date.now() - pruneT0;
|
|
706
707
|
const dropped = beforePrune.filter((r) => !results.includes(r));
|
|
@@ -3338,4 +3339,4 @@ export {
|
|
|
3338
3339
|
resetFactoryCache,
|
|
3339
3340
|
createBrain
|
|
3340
3341
|
};
|
|
3341
|
-
//# sourceMappingURL=chunk-
|
|
3342
|
+
//# sourceMappingURL=chunk-I46ALO53.js.map
|