@orquentra/codebuddy 2.15.1 → 2.15.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/ARCHITECTURE.md +11 -6
- package/dist/{chunk-VBDM7HC5.js → chunk-3L5IR6OW.js} +2 -2
- package/dist/{chunk-VBDM7HC5.js.map → chunk-3L5IR6OW.js.map} +1 -1
- package/dist/{chunk-AFXWCSQ4.js → chunk-3TZNQJTH.js} +3 -3
- package/dist/{chunk-RKF4HBBQ.js → chunk-4LMBZWIF.js} +47 -12
- package/dist/chunk-4LMBZWIF.js.map +1 -0
- package/dist/{chunk-RGIVHKBH.js → chunk-4TKKLQLH.js} +2 -2
- package/dist/{chunk-OO7Q7XZF.js → chunk-5ZLNHYJH.js} +30 -14
- package/dist/chunk-5ZLNHYJH.js.map +1 -0
- package/dist/{chunk-VF7DKRIU.js → chunk-6KSSJJZO.js} +8 -7
- package/dist/chunk-6KSSJJZO.js.map +1 -0
- package/dist/{chunk-MNSMW4MZ.js → chunk-7IXPARDM.js} +3 -3
- package/dist/{chunk-K4XNTYV7.js → chunk-FEFOZ2ZW.js} +14 -3
- package/dist/chunk-FEFOZ2ZW.js.map +1 -0
- package/dist/{chunk-7JPUMXFE.js → chunk-FGJ2KPPN.js} +53 -26
- package/dist/chunk-FGJ2KPPN.js.map +1 -0
- package/dist/{chunk-GNV4X67F.js → chunk-KGDRGA2L.js} +10 -10
- package/dist/{chunk-4DTO2E4Y.js → chunk-LZTYPJ5I.js} +35 -17
- package/dist/chunk-LZTYPJ5I.js.map +1 -0
- package/dist/{chunk-BNZDEU5K.js → chunk-R5E2YGLE.js} +13 -7
- package/dist/chunk-R5E2YGLE.js.map +1 -0
- package/dist/{chunk-6OQKL35B.js → chunk-R5JRKMEP.js} +1 -1
- package/dist/chunk-R5JRKMEP.js.map +1 -0
- package/dist/{chunk-PZ4EBFIA.js → chunk-SPQU2422.js} +4 -4
- package/dist/{chunk-NNJSAYHY.js → chunk-SXVH74NE.js} +36 -6
- package/dist/chunk-SXVH74NE.js.map +1 -0
- package/dist/{chunk-IM5RFEW4.js → chunk-TIMS3PB7.js} +2 -2
- package/dist/cli/index.js +4 -4
- package/dist/{config-S2BDMT4B.js → config-32X53LWY.js} +3 -3
- package/dist/{expand-TONFVT5D.js → expand-VFYOWNZS.js} +4 -4
- package/dist/{file-vectors-VREL75MA.js → file-vectors-UBOKGYXX.js} +3 -2
- package/dist/{index-facts-MBJKBYA3.js → index-facts-ZTUANWBF.js} +6 -6
- package/dist/{index-pass-RP23G2CR.js → index-pass-S6NC25P5.js} +5 -5
- package/dist/index.js +8 -7
- package/dist/{install-MCJIJMFF.js → install-ZTE3H7QM.js} +7 -6
- package/dist/{lean-CBHVW6JM.js → lean-5N6BOONS.js} +4 -3
- package/dist/{local-TH5XCLVJ.js → local-5EYLEBEP.js} +4 -2
- package/dist/{local-llm-GZREB5DF.js → local-llm-ESMVP5LE.js} +3 -3
- package/dist/{main-QF6Z552J.js → main-B3HZCGVE.js} +45 -31
- package/dist/main-B3HZCGVE.js.map +1 -0
- package/dist/{memory-LSZKSF53.js → memory-CI7HIGHN.js} +4 -4
- package/dist/{operations-BPI633VN.js → operations-MW52HIQ3.js} +3 -3
- package/dist/{rerank-EPCTSEVP.js → rerank-O4S5BC45.js} +4 -4
- package/dist/{runtime-W5ACTDFS.js → runtime-SZAWIXEB.js} +5 -4
- package/dist/{summaries-W2J5FCLG.js → summaries-GCHZGIIA.js} +10 -8
- package/dist/{zvec-LSA2IRAU.js → zvec-V34P24WF.js} +10 -5
- package/package.json +1 -1
- package/dist/chunk-4DTO2E4Y.js.map +0 -1
- package/dist/chunk-6OQKL35B.js.map +0 -1
- package/dist/chunk-7JPUMXFE.js.map +0 -1
- package/dist/chunk-BNZDEU5K.js.map +0 -1
- package/dist/chunk-K4XNTYV7.js.map +0 -1
- package/dist/chunk-NNJSAYHY.js.map +0 -1
- package/dist/chunk-OO7Q7XZF.js.map +0 -1
- package/dist/chunk-RKF4HBBQ.js.map +0 -1
- package/dist/chunk-VF7DKRIU.js.map +0 -1
- package/dist/main-QF6Z552J.js.map +0 -1
- /package/dist/{chunk-AFXWCSQ4.js.map → chunk-3TZNQJTH.js.map} +0 -0
- /package/dist/{chunk-RGIVHKBH.js.map → chunk-4TKKLQLH.js.map} +0 -0
- /package/dist/{chunk-MNSMW4MZ.js.map → chunk-7IXPARDM.js.map} +0 -0
- /package/dist/{chunk-GNV4X67F.js.map → chunk-KGDRGA2L.js.map} +0 -0
- /package/dist/{chunk-PZ4EBFIA.js.map → chunk-SPQU2422.js.map} +0 -0
- /package/dist/{chunk-IM5RFEW4.js.map → chunk-TIMS3PB7.js.map} +0 -0
- /package/dist/{config-S2BDMT4B.js.map → config-32X53LWY.js.map} +0 -0
- /package/dist/{expand-TONFVT5D.js.map → expand-VFYOWNZS.js.map} +0 -0
- /package/dist/{file-vectors-VREL75MA.js.map → file-vectors-UBOKGYXX.js.map} +0 -0
- /package/dist/{index-facts-MBJKBYA3.js.map → index-facts-ZTUANWBF.js.map} +0 -0
- /package/dist/{index-pass-RP23G2CR.js.map → index-pass-S6NC25P5.js.map} +0 -0
- /package/dist/{install-MCJIJMFF.js.map → install-ZTE3H7QM.js.map} +0 -0
- /package/dist/{lean-CBHVW6JM.js.map → lean-5N6BOONS.js.map} +0 -0
- /package/dist/{local-TH5XCLVJ.js.map → local-5EYLEBEP.js.map} +0 -0
- /package/dist/{local-llm-GZREB5DF.js.map → local-llm-ESMVP5LE.js.map} +0 -0
- /package/dist/{memory-LSZKSF53.js.map → memory-CI7HIGHN.js.map} +0 -0
- /package/dist/{operations-BPI633VN.js.map → operations-MW52HIQ3.js.map} +0 -0
- /package/dist/{rerank-EPCTSEVP.js.map → rerank-O4S5BC45.js.map} +0 -0
- /package/dist/{runtime-W5ACTDFS.js.map → runtime-SZAWIXEB.js.map} +0 -0
- /package/dist/{summaries-W2J5FCLG.js.map → summaries-GCHZGIIA.js.map} +0 -0
- /package/dist/{zvec-LSA2IRAU.js.map → zvec-V34P24WF.js.map} +0 -0
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
addLocalLlm,
|
|
7
7
|
printLocalLlmStatus,
|
|
8
8
|
removeLocalLlm
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-FEFOZ2ZW.js";
|
|
10
10
|
import {
|
|
11
11
|
WORKFLOW_CLIENTS,
|
|
12
12
|
clientDisplayName,
|
|
@@ -32,11 +32,11 @@ import {
|
|
|
32
32
|
setHooks,
|
|
33
33
|
uninstallClient,
|
|
34
34
|
writeProjectMcpConfig
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-SPQU2422.js";
|
|
36
36
|
import {
|
|
37
37
|
renderLeanBlock,
|
|
38
38
|
runLeanHook
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-3TZNQJTH.js";
|
|
40
40
|
import {
|
|
41
41
|
isDockerDaemonRunning,
|
|
42
42
|
tryStartDockerDesktop,
|
|
@@ -55,20 +55,19 @@ import {
|
|
|
55
55
|
import {
|
|
56
56
|
loadLlmSummaries,
|
|
57
57
|
summarizeRepository
|
|
58
|
-
} from "./chunk-
|
|
58
|
+
} from "./chunk-FGJ2KPPN.js";
|
|
59
59
|
import {
|
|
60
60
|
listIndexFacts,
|
|
61
61
|
pruneIndexFacts
|
|
62
|
-
} from "./chunk-
|
|
62
|
+
} from "./chunk-R5E2YGLE.js";
|
|
63
63
|
import {
|
|
64
64
|
chatJson,
|
|
65
65
|
coolingDown,
|
|
66
66
|
usageToday
|
|
67
|
-
} from "./chunk-
|
|
67
|
+
} from "./chunk-7IXPARDM.js";
|
|
68
68
|
import {
|
|
69
69
|
runIndexModelPass
|
|
70
|
-
} from "./chunk-
|
|
71
|
-
import "./chunk-6OQKL35B.js";
|
|
70
|
+
} from "./chunk-6KSSJJZO.js";
|
|
72
71
|
import {
|
|
73
72
|
AUTOMATION_MODES,
|
|
74
73
|
CLIENT_ADAPTERS,
|
|
@@ -95,7 +94,7 @@ import {
|
|
|
95
94
|
traceCliCommand,
|
|
96
95
|
watchRepository,
|
|
97
96
|
writeTelemetryState
|
|
98
|
-
} from "./chunk-
|
|
97
|
+
} from "./chunk-KGDRGA2L.js";
|
|
99
98
|
import {
|
|
100
99
|
HookStagingStore,
|
|
101
100
|
PlanFileStore,
|
|
@@ -125,7 +124,7 @@ import {
|
|
|
125
124
|
runStageHook,
|
|
126
125
|
runSyncHook,
|
|
127
126
|
syncReuseVectors
|
|
128
|
-
} from "./chunk-
|
|
127
|
+
} from "./chunk-5ZLNHYJH.js";
|
|
129
128
|
import {
|
|
130
129
|
parseTraceLines,
|
|
131
130
|
readTraces,
|
|
@@ -145,7 +144,7 @@ import {
|
|
|
145
144
|
DEFAULT_ZVEC_MODEL,
|
|
146
145
|
buildZvecIndex,
|
|
147
146
|
zvecStatus
|
|
148
|
-
} from "./chunk-
|
|
147
|
+
} from "./chunk-4LMBZWIF.js";
|
|
149
148
|
import {
|
|
150
149
|
buildArchitectureMap,
|
|
151
150
|
generateGraphifyGraph,
|
|
@@ -157,11 +156,12 @@ import {
|
|
|
157
156
|
queryMap,
|
|
158
157
|
setupGraphify,
|
|
159
158
|
syncFileVectors
|
|
160
|
-
} from "./chunk-
|
|
159
|
+
} from "./chunk-LZTYPJ5I.js";
|
|
161
160
|
import {
|
|
162
161
|
extractSymbolTable,
|
|
163
162
|
supportsSymbols
|
|
164
163
|
} from "./chunk-Y7D7PUBE.js";
|
|
164
|
+
import "./chunk-R5JRKMEP.js";
|
|
165
165
|
import {
|
|
166
166
|
bootstrapDatabase,
|
|
167
167
|
buildProviderFromConfig,
|
|
@@ -173,12 +173,12 @@ import {
|
|
|
173
173
|
pingDatabase,
|
|
174
174
|
runDoctor,
|
|
175
175
|
runMigrations
|
|
176
|
-
} from "./chunk-
|
|
176
|
+
} from "./chunk-TIMS3PB7.js";
|
|
177
177
|
import "./chunk-57642NGU.js";
|
|
178
178
|
import {
|
|
179
179
|
MemoryFileStore,
|
|
180
180
|
VERSION
|
|
181
|
-
} from "./chunk-
|
|
181
|
+
} from "./chunk-3L5IR6OW.js";
|
|
182
182
|
import {
|
|
183
183
|
computeFactHash,
|
|
184
184
|
generateEntityId
|
|
@@ -191,7 +191,7 @@ import {
|
|
|
191
191
|
mergeGlobalConfig,
|
|
192
192
|
readGlobalConfig,
|
|
193
193
|
resolveLlmConfig
|
|
194
|
-
} from "./chunk-
|
|
194
|
+
} from "./chunk-4TKKLQLH.js";
|
|
195
195
|
import {
|
|
196
196
|
PLAN_POLICIES,
|
|
197
197
|
configPath,
|
|
@@ -213,7 +213,7 @@ import {
|
|
|
213
213
|
import {
|
|
214
214
|
writeAtomic
|
|
215
215
|
} from "./chunk-CG5B3LYG.js";
|
|
216
|
-
import "./chunk-
|
|
216
|
+
import "./chunk-SXVH74NE.js";
|
|
217
217
|
import {
|
|
218
218
|
localRuntimeInstalled,
|
|
219
219
|
modelCacheDir
|
|
@@ -2149,7 +2149,13 @@ function registerIndexCommands(program, runSafely2) {
|
|
|
2149
2149
|
return;
|
|
2150
2150
|
}
|
|
2151
2151
|
printResult(result);
|
|
2152
|
-
if (vectors) {
|
|
2152
|
+
if (vectors?.lockedBy !== void 0) {
|
|
2153
|
+
console.log(
|
|
2154
|
+
pc9.yellow(
|
|
2155
|
+
` file vectors: already being built by pid ${vectors.lockedBy ?? "unknown"}`
|
|
2156
|
+
)
|
|
2157
|
+
);
|
|
2158
|
+
} else if (vectors) {
|
|
2153
2159
|
console.log(
|
|
2154
2160
|
pc9.dim(
|
|
2155
2161
|
` file vectors: ${vectors.embedded} embedded, ${vectors.files} current` + (vectors.pending > 0 ? `, ${vectors.pending} left for the next run` : "")
|
|
@@ -2199,7 +2205,7 @@ function printModelPass(model, ms) {
|
|
|
2199
2205
|
if (model.cards) {
|
|
2200
2206
|
console.log(
|
|
2201
2207
|
pc9.dim(
|
|
2202
|
-
` cards: ${model.cards.summarized} written, ${model.cards.timedOut ? `${model.cards.timedOut} timed out, ` : ""}${model.cards.remaining} left (${model.cards.stoppedBy}), ${model.cardVectors} embedded, ${Math.round(ms / 1e3)} s`
|
|
2208
|
+
` cards: ${model.cards.summarized} written, ${model.cards.timedOut ? `${model.cards.timedOut} timed out, ` : ""}${model.cards.remaining} left (${model.cards.reason ? `${model.cards.stoppedBy}: ${model.cards.reason}` : model.cards.stoppedBy}), ${model.cardVectors} embedded, ${Math.round(ms / 1e3)} s`
|
|
2203
2209
|
)
|
|
2204
2210
|
);
|
|
2205
2211
|
}
|
|
@@ -3032,7 +3038,7 @@ async function printStatus() {
|
|
|
3032
3038
|
}
|
|
3033
3039
|
}
|
|
3034
3040
|
{
|
|
3035
|
-
const { cardProgress } = await import("./summaries-
|
|
3041
|
+
const { cardProgress } = await import("./summaries-GCHZGIIA.js");
|
|
3036
3042
|
await printLocalLlmStatus(await cardProgress(process.cwd()).catch(() => null));
|
|
3037
3043
|
}
|
|
3038
3044
|
console.log(pc14.bold("Memory index"));
|
|
@@ -5094,7 +5100,7 @@ async function setupLocalLlm(choice, interactive) {
|
|
|
5094
5100
|
log2.info(`Local LLM: skipped (add later with ${pc22.cyan("codebuddy models add local-llm")}).`);
|
|
5095
5101
|
return false;
|
|
5096
5102
|
}
|
|
5097
|
-
const { installedLocalModel, machineCanCard } = await import("./local-
|
|
5103
|
+
const { installedLocalModel, machineCanCard } = await import("./local-5EYLEBEP.js");
|
|
5098
5104
|
let installed = await installedLocalModel() !== null;
|
|
5099
5105
|
const machine = machineCanCard();
|
|
5100
5106
|
if (!installed && !machine.ok) {
|
|
@@ -5102,7 +5108,7 @@ async function setupLocalLlm(choice, interactive) {
|
|
|
5102
5108
|
installed = true;
|
|
5103
5109
|
}
|
|
5104
5110
|
if (!installed) {
|
|
5105
|
-
const { addLocalLlm: addLocalLlm2 } = await import("./local-llm-
|
|
5111
|
+
const { addLocalLlm: addLocalLlm2 } = await import("./local-llm-ESMVP5LE.js");
|
|
5106
5112
|
installed = await addLocalLlm2({ yes: true, interactive });
|
|
5107
5113
|
if (!installed) {
|
|
5108
5114
|
log2.warn(
|
|
@@ -5155,17 +5161,18 @@ async function runUseCommand(options = {}) {
|
|
|
5155
5161
|
const sigintHandler = () => bail2();
|
|
5156
5162
|
process.on("SIGINT", sigintHandler);
|
|
5157
5163
|
try {
|
|
5158
|
-
const
|
|
5164
|
+
const attended = options.interactive ?? process.stdin.isTTY === true;
|
|
5165
|
+
const interactive = attended && options.ask === true;
|
|
5159
5166
|
const folderName = basename2(process.cwd());
|
|
5160
5167
|
const namespace = sanitizeNamespace(options.namespace ?? folderName);
|
|
5161
5168
|
await initProjectScaffold();
|
|
5162
5169
|
if (options.namespace === void 0) await migrateLegacyNamespace();
|
|
5163
|
-
const graphifyEnabled = options.graphify ?? (interactive
|
|
5170
|
+
const graphifyEnabled = options.graphify ?? (interactive ? unwrap2(
|
|
5164
5171
|
await confirm2({
|
|
5165
5172
|
message: "Set up Graphify for richer architecture context?",
|
|
5166
5173
|
initialValue: true
|
|
5167
5174
|
})
|
|
5168
|
-
));
|
|
5175
|
+
) : attended);
|
|
5169
5176
|
note2(
|
|
5170
5177
|
`Project folder: ${pc22.bold(process.cwd())}
|
|
5171
5178
|
Namespace: ${pc22.bold(namespace)}`,
|
|
@@ -5244,12 +5251,12 @@ Namespace: ${pc22.bold(namespace)}`,
|
|
|
5244
5251
|
if (!connected && databaseUrl === DEFAULT_DB_URL) {
|
|
5245
5252
|
dbSpinner.stop("Postgres unreachable on the default local URL.");
|
|
5246
5253
|
}
|
|
5247
|
-
const shouldUseDocker = !connected && databaseUrl === DEFAULT_DB_URL && (options.useDocker ?? (interactive
|
|
5254
|
+
const shouldUseDocker = !connected && databaseUrl === DEFAULT_DB_URL && (options.useDocker ?? (interactive ? unwrap2(
|
|
5248
5255
|
await confirm2({
|
|
5249
5256
|
message: "Postgres is unavailable. Start the bundled Docker database now?",
|
|
5250
5257
|
initialValue: true
|
|
5251
5258
|
})
|
|
5252
|
-
)));
|
|
5259
|
+
) : attended));
|
|
5253
5260
|
if (shouldUseDocker) {
|
|
5254
5261
|
if (!await isDockerDaemonRunning()) {
|
|
5255
5262
|
const dockerSpinner = spinner3();
|
|
@@ -5475,6 +5482,9 @@ function registerZvecCommands(program, runSafely2) {
|
|
|
5475
5482
|
`version: ${report.version ?? pc24.yellow("not found")}${report.version && !report.supported ? pc24.yellow(" (unsupported; need 0.2.x)") : ""}`
|
|
5476
5483
|
);
|
|
5477
5484
|
console.log(`index ready: ${mark(report.indexReady)}`);
|
|
5485
|
+
console.log(
|
|
5486
|
+
`card index: ${report.cardIndex} ${pc24.dim("(intent cards; built by card passes)")}`
|
|
5487
|
+
);
|
|
5478
5488
|
console.log(
|
|
5479
5489
|
`zg server: ${report.server} ${pc24.dim("(running = faster queries; optional)")}`
|
|
5480
5490
|
);
|
|
@@ -5521,7 +5531,10 @@ function createCli() {
|
|
|
5521
5531
|
program.enablePositionalOptions().option("--namespace <name>", "Override the namespace (defaults to current folder name).").option("--postgres-url <url>", "Postgres URL to use for this project.").option("--skip-claude", "Do not register with Claude Desktop.").option("--skip-codex", "Do not register with Codex.").option("--graphify", "Enable Graphify setup without prompting.").option("--no-graphify", "Skip Graphify setup without prompting.").option(
|
|
5522
5532
|
"--docker",
|
|
5523
5533
|
"Start CodeBuddy's bundled Postgres container when the default DB is unavailable."
|
|
5524
|
-
).option("--no-docker", "Do not offer to start CodeBuddy's bundled Postgres container.").option("--no-local-llm", "Skip installing the local LLM (Qwen3-0.6B, ~400 MB).").option(
|
|
5534
|
+
).option("--no-docker", "Do not offer to start CodeBuddy's bundled Postgres container.").option("--no-local-llm", "Skip installing the local LLM (Qwen3-0.6B, ~400 MB).").option(
|
|
5535
|
+
"--ask",
|
|
5536
|
+
"Ask before each choice (Graphify, embeddings, Postgres URL, Docker) instead of using the recommended defaults."
|
|
5537
|
+
).option("-y, --yes", "Script mode: no Graphify or Docker unless their flags are given.").option("--non-interactive", "Same as --yes.").action(
|
|
5525
5538
|
async (opts) => {
|
|
5526
5539
|
await runSafely(async () => {
|
|
5527
5540
|
await runUseCommand({
|
|
@@ -5532,7 +5545,8 @@ function createCli() {
|
|
|
5532
5545
|
...opts.graphify !== void 0 ? { graphify: opts.graphify } : {},
|
|
5533
5546
|
...opts.docker !== void 0 ? { useDocker: opts.docker } : {},
|
|
5534
5547
|
...opts.localLlm !== void 0 ? { localLlm: opts.localLlm } : {},
|
|
5535
|
-
...opts.yes || opts.nonInteractive ? { interactive: false } : {}
|
|
5548
|
+
...opts.yes || opts.nonInteractive ? { interactive: false } : {},
|
|
5549
|
+
...opts.ask ? { ask: true } : {}
|
|
5536
5550
|
});
|
|
5537
5551
|
});
|
|
5538
5552
|
}
|
|
@@ -5927,8 +5941,8 @@ Quick start:
|
|
|
5927
5941
|
);
|
|
5928
5942
|
}
|
|
5929
5943
|
async function indexModelStats(root) {
|
|
5930
|
-
const { cardProgress } = await import("./summaries-
|
|
5931
|
-
const { listIndexFacts: listIndexFacts2 } = await import("./index-facts-
|
|
5944
|
+
const { cardProgress } = await import("./summaries-GCHZGIIA.js");
|
|
5945
|
+
const { listIndexFacts: listIndexFacts2 } = await import("./index-facts-ZTUANWBF.js");
|
|
5932
5946
|
return {
|
|
5933
5947
|
cards: await cardProgress(root).catch(() => ({ carded: 0, eligible: 0 })),
|
|
5934
5948
|
indexFacts: (await listIndexFacts2(root).catch(() => [])).length
|
|
@@ -6053,4 +6067,4 @@ function printStorage(database, capture2) {
|
|
|
6053
6067
|
export {
|
|
6054
6068
|
createCli
|
|
6055
6069
|
};
|
|
6056
|
-
//# sourceMappingURL=main-
|
|
6070
|
+
//# sourceMappingURL=main-B3HZCGVE.js.map
|