@vibgrate/cli 2026.803.1 → 2026.803.4
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/agent-WYBWUBCC.js +26 -0
- package/dist/{agent-HNV2VUCO.js.map → agent-WYBWUBCC.js.map} +1 -1
- package/dist/baseline-3HECX4Q6.js +9 -0
- package/dist/{baseline-6WTULHM5.js.map → baseline-3HECX4Q6.js.map} +1 -1
- package/dist/{chunk-FKFRASAB.js → chunk-23UPIFRU.js} +8 -8
- package/dist/{chunk-FKFRASAB.js.map → chunk-23UPIFRU.js.map} +1 -1
- package/dist/chunk-2A7XCANX.js +375 -0
- package/dist/chunk-2A7XCANX.js.map +1 -0
- package/dist/{chunk-AJ2KE3NT.js → chunk-4LGDQBYK.js} +14 -102
- package/dist/chunk-4LGDQBYK.js.map +1 -0
- package/dist/{chunk-B2KLJPFY.js → chunk-4ZMJKR74.js} +451 -22
- package/dist/chunk-4ZMJKR74.js.map +1 -0
- package/dist/{chunk-DIU3MXB3.js → chunk-537JBQVB.js} +4 -4
- package/dist/{chunk-DIU3MXB3.js.map → chunk-537JBQVB.js.map} +1 -1
- package/dist/{chunk-4HFSUIIN.js → chunk-5TS7N7J2.js} +59 -9
- package/dist/chunk-5TS7N7J2.js.map +1 -0
- package/dist/{chunk-BWMMR5XA.js → chunk-5WMFX7TY.js} +4 -4
- package/dist/{chunk-BWMMR5XA.js.map → chunk-5WMFX7TY.js.map} +1 -1
- package/dist/{chunk-SNKTD23L.js → chunk-66B4ZQA3.js} +9 -8
- package/dist/chunk-66B4ZQA3.js.map +1 -0
- package/dist/{chunk-536J6HUR.js → chunk-7BU7CWXC.js} +39 -12
- package/dist/chunk-7BU7CWXC.js.map +1 -0
- package/dist/{chunk-N4IDP2M2.js → chunk-7TOIESUT.js} +5 -4
- package/dist/chunk-7TOIESUT.js.map +1 -0
- package/dist/{chunk-CE45STY5.js → chunk-BRUMBQV7.js} +4 -4
- package/dist/{chunk-CE45STY5.js.map → chunk-BRUMBQV7.js.map} +1 -1
- package/dist/{chunk-CC6F75GI.js → chunk-BUCNKYTW.js} +5 -5
- package/dist/{chunk-CC6F75GI.js.map → chunk-BUCNKYTW.js.map} +1 -1
- package/dist/{chunk-2TLQDF6C.js → chunk-FAA7RBIG.js} +9 -9
- package/dist/{chunk-2TLQDF6C.js.map → chunk-FAA7RBIG.js.map} +1 -1
- package/dist/chunk-FZ5Y4KEI.js +6 -0
- package/dist/{chunk-QT2PMGN3.js.map → chunk-FZ5Y4KEI.js.map} +1 -1
- package/dist/{chunk-S4NSF5AZ.js → chunk-HBQC4XQJ.js} +6 -6
- package/dist/{chunk-S4NSF5AZ.js.map → chunk-HBQC4XQJ.js.map} +1 -1
- package/dist/{chunk-O7MTBC52.js → chunk-HVHCXM2E.js} +9 -9
- package/dist/{chunk-O7MTBC52.js.map → chunk-HVHCXM2E.js.map} +1 -1
- package/dist/{chunk-NJFQCDGA.js → chunk-INIULQEP.js} +3 -3
- package/dist/{chunk-NJFQCDGA.js.map → chunk-INIULQEP.js.map} +1 -1
- package/dist/{chunk-Y7YKUZ3T.js → chunk-JZGVUH57.js} +30 -10
- package/dist/chunk-JZGVUH57.js.map +1 -0
- package/dist/{chunk-JUSXLCSE.js → chunk-KFK7KCAH.js} +3 -3
- package/dist/{chunk-JUSXLCSE.js.map → chunk-KFK7KCAH.js.map} +1 -1
- package/dist/{chunk-6I4TXAI6.js → chunk-OVDL76LB.js} +3 -3
- package/dist/{chunk-6I4TXAI6.js.map → chunk-OVDL76LB.js.map} +1 -1
- package/dist/{chunk-SJFBXCII.js → chunk-QUI3E3TQ.js} +54 -9
- package/dist/chunk-QUI3E3TQ.js.map +1 -0
- package/dist/chunk-RBMKBYGV.js +102 -0
- package/dist/chunk-RBMKBYGV.js.map +1 -0
- package/dist/{chunk-5VH3Y4QC.js → chunk-TVRM57CE.js} +78 -381
- package/dist/chunk-TVRM57CE.js.map +1 -0
- package/dist/{chunk-BBFQZ7CA.js → chunk-UWVFLVZX.js} +4 -4
- package/dist/{chunk-BBFQZ7CA.js.map → chunk-UWVFLVZX.js.map} +1 -1
- package/dist/{chunk-6JP7HGIF.js → chunk-Y4JO6LYP.js} +3 -3
- package/dist/{chunk-6JP7HGIF.js.map → chunk-Y4JO6LYP.js.map} +1 -1
- package/dist/cli.js +555 -351
- package/dist/cli.js.map +1 -1
- package/dist/embed-worker-main.d.ts +2 -0
- package/dist/embed-worker-main.js +64 -0
- package/dist/embed-worker-main.js.map +1 -0
- package/dist/ensure-map-DZ53QXRT.js +31 -0
- package/dist/{ensure-map-5YEI7R7V.js.map → ensure-map-DZ53QXRT.js.map} +1 -1
- package/dist/graph-backend-3A2M22QN.js +13 -0
- package/dist/{graph-backend-CPHLUKUC.js.map → graph-backend-3A2M22QN.js.map} +1 -1
- package/dist/index.d.ts +27 -2
- package/dist/index.js +16 -14
- package/dist/index.js.map +1 -1
- package/dist/{interactive-TNRE4OEK.js → interactive-DB7IC3BL.js} +35 -29
- package/dist/interactive-DB7IC3BL.js.map +1 -0
- package/dist/load-6KVGUQMU.js +11 -0
- package/dist/{load-MWG6WZTK.js.map → load-6KVGUQMU.js.map} +1 -1
- package/dist/{run-outcome-375HMSQG.js → run-outcome-YOYRC32U.js} +7 -6
- package/dist/run-outcome-YOYRC32U.js.map +1 -0
- package/dist/runtime-session-XEP7IPGP.js +22 -0
- package/dist/{runtime-session-3MPWXNRL.js.map → runtime-session-XEP7IPGP.js.map} +1 -1
- package/dist/session-5WKEACIF.js +17 -0
- package/dist/{session-2NGJLI5Y.js.map → session-5WKEACIF.js.map} +1 -1
- package/dist/{stream-json-AUMU3NLV.js → stream-json-3OJCPBWY.js} +13 -11
- package/dist/stream-json-3OJCPBWY.js.map +1 -0
- package/dist/{vg-mcp-bridge-D463EHQI.js → vg-mcp-bridge-PM3C4FQL.js} +12 -10
- package/dist/vg-mcp-bridge-PM3C4FQL.js.map +1 -0
- package/dist/{vgd-Z23PXSP4.js → vgd-UTLMMPIZ.js} +12 -10
- package/dist/vgd-UTLMMPIZ.js.map +1 -0
- package/package.json +1 -1
- package/scripts/postinstall.mjs +22 -1
- package/dist/agent-HNV2VUCO.js +0 -24
- package/dist/baseline-6WTULHM5.js +0 -9
- package/dist/chunk-4HFSUIIN.js.map +0 -1
- package/dist/chunk-536J6HUR.js.map +0 -1
- package/dist/chunk-5VH3Y4QC.js.map +0 -1
- package/dist/chunk-AJ2KE3NT.js.map +0 -1
- package/dist/chunk-B2KLJPFY.js.map +0 -1
- package/dist/chunk-N4IDP2M2.js.map +0 -1
- package/dist/chunk-QT2PMGN3.js +0 -6
- package/dist/chunk-SJFBXCII.js.map +0 -1
- package/dist/chunk-SNKTD23L.js.map +0 -1
- package/dist/chunk-Y7YKUZ3T.js.map +0 -1
- package/dist/ensure-map-5YEI7R7V.js +0 -29
- package/dist/graph-backend-CPHLUKUC.js +0 -11
- package/dist/interactive-TNRE4OEK.js.map +0 -1
- package/dist/load-MWG6WZTK.js +0 -10
- package/dist/run-outcome-375HMSQG.js.map +0 -1
- package/dist/runtime-session-3MPWXNRL.js +0 -20
- package/dist/session-2NGJLI5Y.js +0 -15
- package/dist/stream-json-AUMU3NLV.js.map +0 -1
- package/dist/vg-mcp-bridge-D463EHQI.js.map +0 -1
- package/dist/vgd-Z23PXSP4.js.map +0 -1
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { secretEgressRefusal, isSecretPath, secretRefusal, redactText } from './chunk-543E6WDJ.js';
|
|
2
|
-
import { buildAgentMessages, redactSecrets, unifiedDiff, applyEdit } from './chunk-
|
|
3
|
-
import { localGraphBackend } from './chunk-
|
|
2
|
+
import { buildAgentMessages, redactSecrets, unifiedDiff, applyEdit } from './chunk-QUI3E3TQ.js';
|
|
3
|
+
import { localGraphBackend } from './chunk-KFK7KCAH.js';
|
|
4
4
|
import { buildIdentifierTrieFromGraph, KvBlockRegistry, graphDraftCandidates, extractIdentifiers, scanIdentifiersAgainstTrie } from './chunk-5HYCB55P.js';
|
|
5
|
-
import { summarizeCapsule, CAPSULE_RANKING_VERSION, buildCodeContext, buildTaskCapsule, capsuleToCodeContext, recordCliCall, CLI_TOOL_ALIASES } from './chunk-
|
|
5
|
+
import { summarizeCapsule, CAPSULE_RANKING_VERSION, buildCodeContext, buildTaskCapsule, capsuleToCodeContext, recordCliCall, CLI_TOOL_ALIASES } from './chunk-JZGVUH57.js';
|
|
6
6
|
import { resolve } from './chunk-VIWZ4QT7.js';
|
|
7
|
-
import { searchSymbols, resolveLib, loadCatalog, readDoc, localPackageDocs, resolveVersion } from './chunk-
|
|
7
|
+
import { searchSymbols, resolveLib, loadCatalog, readDoc, localPackageDocs, resolveVersion } from './chunk-5WMFX7TY.js';
|
|
8
8
|
import { resolveOne } from './chunk-J7LKEB2R.js';
|
|
9
|
-
import { isLocateOnlyInstruction, extractLiteralNeedles, impactOf } from './chunk-
|
|
9
|
+
import { isLocateOnlyInstruction, extractLiteralNeedles, impactOf } from './chunk-TVRM57CE.js';
|
|
10
10
|
import { parseSource, langForExtension } from './chunk-UTNNGKKX.js';
|
|
11
|
-
import { analyzeQuestion, loadTopicTags } from './chunk-
|
|
11
|
+
import { analyzeQuestion, loadTopicTags } from './chunk-7TOIESUT.js';
|
|
12
12
|
import { repositoryIdFromRoot } from './chunk-BWPBB45M.js';
|
|
13
13
|
import { hashString, canonicalize } from './chunk-JFGYT6BI.js';
|
|
14
14
|
import { spawnSync } from 'child_process';
|
|
@@ -2111,6 +2111,7 @@ var KEEP_ROUNDS = 8;
|
|
|
2111
2111
|
var NUDGE_AT = 3;
|
|
2112
2112
|
var STOP_AT = 5;
|
|
2113
2113
|
var EMPTY_REPLY_RETRIES = 2;
|
|
2114
|
+
var TRUNCATED_REPLY_CONTINUES = 2;
|
|
2114
2115
|
async function runAgent(options) {
|
|
2115
2116
|
const { root, instruction, providers } = options;
|
|
2116
2117
|
let graph = options.graph;
|
|
@@ -2185,6 +2186,8 @@ async function runAgent(options) {
|
|
|
2185
2186
|
const changes = [];
|
|
2186
2187
|
const repeats = /* @__PURE__ */ new Map();
|
|
2187
2188
|
let emptyReplies = 0;
|
|
2189
|
+
let truncatedContinues = 0;
|
|
2190
|
+
let truncatedPrefix = "";
|
|
2188
2191
|
let recordedSearch = false;
|
|
2189
2192
|
let commandCount = 0;
|
|
2190
2193
|
let verifyRounds = verifyConfig?.maxRounds ?? 2;
|
|
@@ -2307,6 +2310,7 @@ async function runAgent(options) {
|
|
|
2307
2310
|
files: options.files,
|
|
2308
2311
|
relevance,
|
|
2309
2312
|
topicTags,
|
|
2313
|
+
priorInstruction: options.priorInstruction,
|
|
2310
2314
|
readFile: (rel) => fsImpl.read(rel),
|
|
2311
2315
|
repositoryId: repositoryIdFromRoot(root),
|
|
2312
2316
|
provenance: {
|
|
@@ -2540,8 +2544,26 @@ Fix the failing tests, then call finish again.${verifyRounds === 0 ? " (last ver
|
|
|
2540
2544
|
const toolCalls = result.toolCalls ?? [];
|
|
2541
2545
|
if (toolCalls.length === 0) {
|
|
2542
2546
|
messages.push({ role: "assistant", content: result.text });
|
|
2543
|
-
if (
|
|
2544
|
-
|
|
2547
|
+
if (result.truncated && truncatedContinues < TRUNCATED_REPLY_CONTINUES && step < maxSteps) {
|
|
2548
|
+
truncatedContinues++;
|
|
2549
|
+
truncatedPrefix += result.text ?? "";
|
|
2550
|
+
messages.push({
|
|
2551
|
+
role: "user",
|
|
2552
|
+
content: "Your previous message was cut off at the output limit. Continue it from exactly where it stopped. Do not repeat what you already wrote and do not restart the answer."
|
|
2553
|
+
});
|
|
2554
|
+
continue;
|
|
2555
|
+
}
|
|
2556
|
+
const fullText = truncatedPrefix ? sanitizeAgentDisplayText(truncatedPrefix + (result.text ?? "")) : displayText;
|
|
2557
|
+
const stillTruncated = !!result.truncated;
|
|
2558
|
+
truncatedPrefix = "";
|
|
2559
|
+
if (isUserFacingProse(fullText)) {
|
|
2560
|
+
return finish(
|
|
2561
|
+
"finished",
|
|
2562
|
+
stillTruncated ? `${fullText}
|
|
2563
|
+
|
|
2564
|
+
_(Answer cut short at the model's output limit after ${truncatedContinues + 1} attempts \u2014 ask a narrower question, or raise the output cap, to see the rest.)_` : fullText,
|
|
2565
|
+
step
|
|
2566
|
+
);
|
|
2545
2567
|
}
|
|
2546
2568
|
emptyReplies++;
|
|
2547
2569
|
if (emptyReplies <= EMPTY_REPLY_RETRIES && step < maxSteps) {
|
|
@@ -2553,11 +2575,12 @@ Fix the failing tests, then call finish again.${verifyRounds === 0 ? " (last ver
|
|
|
2553
2575
|
}
|
|
2554
2576
|
return finish(
|
|
2555
2577
|
"no-tools",
|
|
2556
|
-
|
|
2578
|
+
fullText || `The model (${providerInfo.model}) returned no usable output after ${emptyReplies} attempt(s). Try a stronger model, or re-ask with a more specific instruction.`,
|
|
2557
2579
|
step
|
|
2558
2580
|
);
|
|
2559
2581
|
}
|
|
2560
2582
|
emptyReplies = 0;
|
|
2583
|
+
truncatedPrefix = "";
|
|
2561
2584
|
messages.push({ role: "assistant", content: result.text, toolCalls });
|
|
2562
2585
|
for (const call of toolCalls) {
|
|
2563
2586
|
onEvent({ type: "tool-call", name: call.name, args: call.arguments });
|
|
@@ -2734,13 +2757,17 @@ function buildAgentContext(graph, instruction, options) {
|
|
|
2734
2757
|
const relevance = options.relevance;
|
|
2735
2758
|
const topicTags = options.topicTags;
|
|
2736
2759
|
if (!options.capsule) {
|
|
2737
|
-
return {
|
|
2760
|
+
return {
|
|
2761
|
+
context: buildCodeContext(graph, instruction, { budget, files, relevance, topicTags, priorInstruction: options.priorInstruction }),
|
|
2762
|
+
capsule: null
|
|
2763
|
+
};
|
|
2738
2764
|
}
|
|
2739
2765
|
const capsule = buildTaskCapsule(graph, instruction, {
|
|
2740
2766
|
budget,
|
|
2741
2767
|
files,
|
|
2742
2768
|
relevance,
|
|
2743
2769
|
topicTags,
|
|
2770
|
+
priorInstruction: options.priorInstruction,
|
|
2744
2771
|
readFile: (rel) => options.fsImpl.read(rel),
|
|
2745
2772
|
repositoryId: repositoryIdFromRoot(options.root),
|
|
2746
2773
|
extraPinnedFacts: options.extraPinnedFacts,
|
|
@@ -2832,5 +2859,5 @@ function buildSpanIndex(graph) {
|
|
|
2832
2859
|
}
|
|
2833
2860
|
|
|
2834
2861
|
export { CONTEXT_POLICY_VERSION, DISCOVERY_TOOLS, MUTATION_TOOLS, compact, compactWithModel, computeFcsReport, createTrajectoryCollector, lookupModelCapabilities, renderFcsReportMarkdown, runAgent };
|
|
2835
|
-
//# sourceMappingURL=chunk-
|
|
2836
|
-
//# sourceMappingURL=chunk-
|
|
2862
|
+
//# sourceMappingURL=chunk-7BU7CWXC.js.map
|
|
2863
|
+
//# sourceMappingURL=chunk-7BU7CWXC.js.map
|