@orquentra/codebuddy 2.14.0 → 2.15.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/ARCHITECTURE.md +98 -0
- package/README.md +87 -6
- package/dist/{chunk-LW75SKZR.js → chunk-4BSO3HST.js} +126 -18
- package/dist/chunk-4BSO3HST.js.map +1 -0
- package/dist/{chunk-CAEPHLHC.js → chunk-57642NGU.js} +2 -44
- package/dist/chunk-57642NGU.js.map +1 -0
- package/dist/{chunk-ESZXCZIN.js → chunk-6YI2D5F5.js} +33 -5
- package/dist/chunk-6YI2D5F5.js.map +1 -0
- package/dist/{chunk-4DKYKDHI.js → chunk-7IPSDDO5.js} +5 -3
- package/dist/{chunk-4DKYKDHI.js.map → chunk-7IPSDDO5.js.map} +1 -1
- package/dist/chunk-BTTQWSDS.js +372 -0
- package/dist/chunk-BTTQWSDS.js.map +1 -0
- package/dist/{chunk-YJPCS2GP.js → chunk-D5E7SGI5.js} +57 -18
- package/dist/chunk-D5E7SGI5.js.map +1 -0
- package/dist/chunk-EMWGLKPR.js +45 -0
- package/dist/chunk-EMWGLKPR.js.map +1 -0
- package/dist/chunk-ITXE27SZ.js +358 -0
- package/dist/chunk-ITXE27SZ.js.map +1 -0
- package/dist/{chunk-LRQNPYCK.js → chunk-JJQDVGF7.js} +13 -7
- package/dist/chunk-JJQDVGF7.js.map +1 -0
- package/dist/{chunk-XSNW6Y3X.js → chunk-KQCP3ZYH.js} +28 -24
- package/dist/chunk-KQCP3ZYH.js.map +1 -0
- package/dist/{chunk-YWDH6DQ6.js → chunk-KYRM3HPP.js} +21 -19
- package/dist/{chunk-YWDH6DQ6.js.map → chunk-KYRM3HPP.js.map} +1 -1
- package/dist/{chunk-KNR2P2UY.js → chunk-M75SN4D4.js} +19 -4
- package/dist/chunk-M75SN4D4.js.map +1 -0
- package/dist/{chunk-L6BRYZ6G.js → chunk-RZ266NHE.js} +7 -7
- package/dist/chunk-U7KDM62P.js +43 -0
- package/dist/chunk-U7KDM62P.js.map +1 -0
- package/dist/chunk-UATJCD2T.js +368 -0
- package/dist/chunk-UATJCD2T.js.map +1 -0
- package/dist/{chunk-YNSTIMCF.js → chunk-UR3DF74I.js} +352 -157
- package/dist/chunk-UR3DF74I.js.map +1 -0
- package/dist/chunk-UTPC66MV.js +128 -0
- package/dist/chunk-UTPC66MV.js.map +1 -0
- package/dist/chunk-WHKXUXHE.js +156 -0
- package/dist/chunk-WHKXUXHE.js.map +1 -0
- package/dist/{chunk-7QMHIJBA.js → chunk-YMXFSHXT.js} +969 -968
- package/dist/chunk-YMXFSHXT.js.map +1 -0
- package/dist/cli/index.js +4 -4
- package/dist/config-TXQJCCVI.js +15 -0
- package/dist/expand-KWYGNCKZ.js +98 -0
- package/dist/expand-KWYGNCKZ.js.map +1 -0
- package/dist/file-vectors-MKXTSGGH.js +19 -0
- package/dist/index-facts-4MTEHKMN.js +38 -0
- package/dist/index-pass-TBDUEZCB.js +14 -0
- package/dist/index.js +24 -22
- package/dist/{install-EU35ERK5.js → install-E3JWINTN.js} +11 -10
- package/dist/{lean-43ADYTBW.js → lean-MLTAFS5L.js} +8 -7
- package/dist/local-75DJECVR.js +48 -0
- package/dist/local-llm-MECVJTVU.js +19 -0
- package/dist/local-llm-MECVJTVU.js.map +1 -0
- package/dist/{main-SFC5LV4E.js → main-RLMKQZW4.js} +332 -123
- package/dist/main-RLMKQZW4.js.map +1 -0
- package/dist/{memory-TGHVTBME.js → memory-PFFVMTCH.js} +9 -6
- package/dist/{memory-TGHVTBME.js.map → memory-PFFVMTCH.js.map} +1 -1
- package/dist/{operations-6Z6ZDVBP.js → operations-STR7S5UO.js} +8 -7
- package/dist/operations-STR7S5UO.js.map +1 -0
- package/dist/{rerank-IQAEWLQR.js → rerank-XXKWDI5Q.js} +7 -4
- package/dist/{rerank-IQAEWLQR.js.map → rerank-XXKWDI5Q.js.map} +1 -1
- package/dist/{runtime-W5AW32SD.js → runtime-SWFWGTQ4.js} +9 -8
- package/dist/runtime-SWFWGTQ4.js.map +1 -0
- package/dist/summaries-QXWFFDUZ.js +31 -0
- package/dist/summaries-QXWFFDUZ.js.map +1 -0
- package/dist/{zvec-24HLAFGN.js → zvec-F73IBWO5.js} +13 -5
- package/dist/zvec-F73IBWO5.js.map +1 -0
- package/package.json +3 -2
- package/dist/chunk-7QMHIJBA.js.map +0 -1
- package/dist/chunk-CAEPHLHC.js.map +0 -1
- package/dist/chunk-ESC4Y3L7.js +0 -204
- package/dist/chunk-ESC4Y3L7.js.map +0 -1
- package/dist/chunk-ESZXCZIN.js.map +0 -1
- package/dist/chunk-KNR2P2UY.js.map +0 -1
- package/dist/chunk-LRQNPYCK.js.map +0 -1
- package/dist/chunk-LW75SKZR.js.map +0 -1
- package/dist/chunk-SFMIMLXR.js +0 -63
- package/dist/chunk-SFMIMLXR.js.map +0 -1
- package/dist/chunk-XSNW6Y3X.js.map +0 -1
- package/dist/chunk-YJPCS2GP.js.map +0 -1
- package/dist/chunk-YNSTIMCF.js.map +0 -1
- package/dist/config-GEZFLXK6.js +0 -12
- package/dist/main-SFC5LV4E.js.map +0 -1
- package/dist/summaries-32PHOB6L.js +0 -20
- /package/dist/{chunk-L6BRYZ6G.js.map → chunk-RZ266NHE.js.map} +0 -0
- /package/dist/{config-GEZFLXK6.js.map → config-TXQJCCVI.js.map} +0 -0
- /package/dist/{install-EU35ERK5.js.map → file-vectors-MKXTSGGH.js.map} +0 -0
- /package/dist/{lean-43ADYTBW.js.map → index-facts-4MTEHKMN.js.map} +0 -0
- /package/dist/{operations-6Z6ZDVBP.js.map → index-pass-TBDUEZCB.js.map} +0 -0
- /package/dist/{runtime-W5AW32SD.js.map → install-E3JWINTN.js.map} +0 -0
- /package/dist/{summaries-32PHOB6L.js.map → lean-MLTAFS5L.js.map} +0 -0
- /package/dist/{zvec-24HLAFGN.js.map → local-75DJECVR.js.map} +0 -0
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
detectTestCommand,
|
|
7
7
|
estimateTokens,
|
|
8
8
|
findCoveringTest
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-7IPSDDO5.js";
|
|
10
10
|
import {
|
|
11
11
|
hookRoot
|
|
12
12
|
} from "./chunk-TGFTKWOR.js";
|
|
@@ -17,17 +17,6 @@ import {
|
|
|
17
17
|
MEMORY_CLASSES,
|
|
18
18
|
memoryCandidateSchema
|
|
19
19
|
} from "./chunk-DFV2SK6C.js";
|
|
20
|
-
import {
|
|
21
|
-
INCIDENT_SEVERITIES,
|
|
22
|
-
MemoryFileStore,
|
|
23
|
-
admitsLexically,
|
|
24
|
-
isEligibleMemory,
|
|
25
|
-
lexicalTerms,
|
|
26
|
-
termOverlap
|
|
27
|
-
} from "./chunk-7QMHIJBA.js";
|
|
28
|
-
import {
|
|
29
|
-
generateEntityId
|
|
30
|
-
} from "./chunk-CAEPHLHC.js";
|
|
31
20
|
import {
|
|
32
21
|
NON_SOURCE_PATH,
|
|
33
22
|
TASK_PATH_LIMIT,
|
|
@@ -42,11 +31,22 @@ import {
|
|
|
42
31
|
readBoundedSource,
|
|
43
32
|
syncFileVectors,
|
|
44
33
|
taskTerms
|
|
45
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-UR3DF74I.js";
|
|
46
35
|
import {
|
|
47
36
|
extractSymbolTable,
|
|
48
37
|
supportsSymbols
|
|
49
38
|
} from "./chunk-Y7D7PUBE.js";
|
|
39
|
+
import {
|
|
40
|
+
INCIDENT_SEVERITIES,
|
|
41
|
+
MemoryFileStore,
|
|
42
|
+
admitsLexically,
|
|
43
|
+
isEligibleMemory,
|
|
44
|
+
lexicalTerms,
|
|
45
|
+
termOverlap
|
|
46
|
+
} from "./chunk-YMXFSHXT.js";
|
|
47
|
+
import {
|
|
48
|
+
generateEntityId
|
|
49
|
+
} from "./chunk-EMWGLKPR.js";
|
|
50
50
|
import {
|
|
51
51
|
REDACTED_LINE,
|
|
52
52
|
claimText,
|
|
@@ -58,21 +58,21 @@ import {
|
|
|
58
58
|
scanFields,
|
|
59
59
|
scanSensitive
|
|
60
60
|
} from "./chunk-AL6VBTNA.js";
|
|
61
|
-
import {
|
|
62
|
-
DEFAULT_RERANK_MODELS,
|
|
63
|
-
LOCAL_EMBEDDING_MODEL
|
|
64
|
-
} from "./chunk-HPOR6YXA.js";
|
|
65
61
|
import {
|
|
66
62
|
loadPlanPolicy,
|
|
67
63
|
loadRuntimeConfig,
|
|
68
64
|
readConfigFile
|
|
69
|
-
} from "./chunk-
|
|
65
|
+
} from "./chunk-M75SN4D4.js";
|
|
70
66
|
import {
|
|
71
67
|
assertNoSymlinkBetween,
|
|
72
68
|
composeMarkdown,
|
|
73
69
|
parseFrontMatter,
|
|
74
70
|
writeAtomic
|
|
75
71
|
} from "./chunk-CG5B3LYG.js";
|
|
72
|
+
import {
|
|
73
|
+
DEFAULT_RERANK_MODELS,
|
|
74
|
+
LOCAL_EMBEDDING_MODEL
|
|
75
|
+
} from "./chunk-HPOR6YXA.js";
|
|
76
76
|
|
|
77
77
|
// src/hooks/runtime.ts
|
|
78
78
|
import { mkdir as mkdir7, readFile as readFile10, rm as rm5, stat as stat4, writeFile } from "fs/promises";
|
|
@@ -1474,7 +1474,7 @@ async function buildBeforeEditContext(input) {
|
|
|
1474
1474
|
...hasExplicitTargets ? { useGit: false } : input.useGit !== void 0 ? { useGit: input.useGit } : {}
|
|
1475
1475
|
});
|
|
1476
1476
|
const mapPromise = loadProjectArchitectureMap(repositoryRoot, manifest);
|
|
1477
|
-
const discovery = !hasExplicitTargets && input.task ? await discoverTaskPaths(repositoryRoot, input.task, manifest, mapPromise) : { paths: [], hits: [], explain: [] };
|
|
1477
|
+
const discovery = !hasExplicitTargets && input.task ? await discoverTaskPaths(repositoryRoot, input.task, manifest, mapPromise) : { paths: [], hits: [], explain: [], confidence: void 0 };
|
|
1478
1478
|
const taskPaths = discovery.paths;
|
|
1479
1479
|
const askedTask = Boolean(input.task?.trim());
|
|
1480
1480
|
const targetPaths = hasExplicitTargets ? resolvedPaths : taskPaths.length > 0 ? taskPaths : askedTask && input.useGit !== true ? [] : resolvedPaths;
|
|
@@ -1592,11 +1592,15 @@ async function buildBeforeEditContext(input) {
|
|
|
1592
1592
|
tests,
|
|
1593
1593
|
testCommand,
|
|
1594
1594
|
diffs,
|
|
1595
|
-
explain
|
|
1595
|
+
explain,
|
|
1596
|
+
...discovery.confidence && !hasExplicitTargets ? { confidence: discovery.confidence } : {},
|
|
1597
|
+
// A plain abstention: no guessed files, and the agent is told to search itself.
|
|
1598
|
+
...askedTask && !hasExplicitTargets && targetPaths.length === 0 ? { note: NO_MATCH_NOTE } : {}
|
|
1596
1599
|
};
|
|
1597
1600
|
const tokens = buildTokenStats(assembled, input.tokenBudget);
|
|
1598
1601
|
return enforceContextBudget({ ...assembled, tokens });
|
|
1599
1602
|
}
|
|
1603
|
+
var NO_MATCH_NOTE = "No confident file match for this task; search the repository normally (grep/glob) instead of relying on CodeBuddy targets.";
|
|
1600
1604
|
async function recallHandoffs(repositoryRoot, input) {
|
|
1601
1605
|
try {
|
|
1602
1606
|
return await new WorklogStore(repositoryRoot).recall(input);
|
|
@@ -3846,7 +3850,7 @@ async function openHookSemantics(repositoryRoot) {
|
|
|
3846
3850
|
const connect = async () => {
|
|
3847
3851
|
const config = await loadRuntimeConfig(repositoryRoot, { requireDatabase: false });
|
|
3848
3852
|
if (!config.postgresUrl) return null;
|
|
3849
|
-
const { createRuntime } = await import("./operations-
|
|
3853
|
+
const { createRuntime } = await import("./operations-STR7S5UO.js");
|
|
3850
3854
|
const opening = createRuntime(config, {
|
|
3851
3855
|
repositoryRoot,
|
|
3852
3856
|
startWorker: false,
|
|
@@ -4176,7 +4180,7 @@ async function runStageHook(input) {
|
|
|
4176
4180
|
}
|
|
4177
4181
|
async function llmMemoryOptions(repositoryRoot) {
|
|
4178
4182
|
try {
|
|
4179
|
-
return await (await import("./memory-
|
|
4183
|
+
return await (await import("./memory-PFFVMTCH.js")).llmCaptureOptions(repositoryRoot);
|
|
4180
4184
|
} catch {
|
|
4181
4185
|
return {};
|
|
4182
4186
|
}
|
|
@@ -4271,7 +4275,7 @@ async function runSyncHook(repositoryRoot, options = {}) {
|
|
|
4271
4275
|
await writeFile(dirty, "").catch(() => void 0);
|
|
4272
4276
|
return null;
|
|
4273
4277
|
}
|
|
4274
|
-
const { createRuntime } = await import("./operations-
|
|
4278
|
+
const { createRuntime } = await import("./operations-STR7S5UO.js");
|
|
4275
4279
|
const runtime = await createRuntime(config, { repositoryRoot }).catch(async (error) => {
|
|
4276
4280
|
await rm5(lock, { recursive: true, force: true });
|
|
4277
4281
|
throw error;
|
|
@@ -4729,4 +4733,4 @@ export {
|
|
|
4729
4733
|
readCaptureTurn,
|
|
4730
4734
|
renderContextBlock
|
|
4731
4735
|
};
|
|
4732
|
-
//# sourceMappingURL=chunk-
|
|
4736
|
+
//# sourceMappingURL=chunk-KQCP3ZYH.js.map
|