nexus-agents 2.32.0 → 2.33.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/LICENSE +0 -6
- package/dist/{adaptive-memory-SGWA4UIG.js → adaptive-memory-CHKKA4DI.js} +3 -3
- package/dist/{chunk-HWSX4JI5.js → chunk-3PNNEWR6.js} +3 -3
- package/dist/{chunk-TP5QQACR.js → chunk-3RSILLFN.js} +2 -2
- package/dist/{chunk-JXSEDHLR.js → chunk-72OMG44X.js} +2 -2
- package/dist/{chunk-QP7Y53HR.js → chunk-7GKB7LPG.js} +2 -2
- package/dist/{chunk-EIWGEXVL.js → chunk-BIZLM4CK.js} +6 -6
- package/dist/{chunk-2GOZHACL.js → chunk-DWZZZGZD.js} +2 -1
- package/dist/{chunk-3JVBRJWT.js → chunk-F3ZEU2IK.js} +6 -6
- package/dist/{chunk-YH3FMMIF.js → chunk-FBS5MCJL.js} +2 -2
- package/dist/{chunk-TBLQF7SE.js → chunk-ICFGV3HB.js} +61 -4
- package/dist/chunk-ICFGV3HB.js.map +1 -0
- package/dist/{chunk-UNUWCCIY.js → chunk-KDY5C63A.js} +2 -2
- package/dist/{chunk-OK5FZBMH.js → chunk-MI2RHGLU.js} +2 -2
- package/dist/{chunk-W3JN2MZP.js → chunk-NOITIOCN.js} +2 -2
- package/dist/{chunk-N5ENCRQR.js → chunk-SKUW2NOC.js} +2 -2
- package/dist/{chunk-LK4SJOSQ.js → chunk-SOW2AJPT.js} +26 -26
- package/dist/{chunk-YITIZY3U.js → chunk-WBMWVYOM.js} +4 -4
- package/dist/{chunk-JSW3W7XZ.js → chunk-WDNE6K4W.js} +7 -6
- package/dist/{chunk-ZIWKAQWW.js → chunk-WKBCTGLE.js} +3 -3
- package/dist/{chunk-R6OZYHZZ.js → chunk-XH6CQMDU.js} +2 -2
- package/dist/{chunk-3ADR6O6J.js → chunk-YT7REHTV.js} +2 -2
- package/dist/{chunk-U5KHQTS2.js → chunk-YYPA3CBH.js} +3 -3
- package/dist/{cli-circuit-breaker-XQGQ7FCY.js → cli-circuit-breaker-VRR5DKH3.js} +4 -4
- package/dist/cli.js +101 -20
- package/dist/cli.js.map +1 -1
- package/dist/{composite-router-LKMRPPIU.js → composite-router-E3BGQGLP.js} +2 -2
- package/dist/{consensus-vote-4BDZRQ4H.js → consensus-vote-PP4WBNZV.js} +7 -7
- package/dist/{doctor-deep-4HJAHMKX.js → doctor-deep-MVG45YNL.js} +3 -3
- package/dist/{expert-bridge-S4ZYI2RY.js → expert-bridge-SHKCEXGU.js} +3 -3
- package/dist/{factory-RYNDDZBZ.js → factory-EISLNRL5.js} +4 -4
- package/dist/{factory-WF5XJ5ID.js → factory-VJLXQYUO.js} +5 -5
- package/dist/index.d.ts +7 -1
- package/dist/index.js +20 -18
- package/dist/index.js.map +1 -1
- package/dist/{issue-triage-XW2JTD7Y.js → issue-triage-OOKMZAPK.js} +4 -4
- package/dist/{mcp-config-M6OMXTO5.js → mcp-config-4B54K5RR.js} +3 -3
- package/dist/{mobimem-J42ZSXPX.js → mobimem-OWZTGHYA.js} +2 -2
- package/dist/{repo-security-plan-7MERQOMP.js → repo-security-plan-ORAZDJYH.js} +3 -3
- package/dist/research-helpers-synthesize-EAJDTBFK.js +10 -0
- package/dist/{routing-memory-MVBPOHIV.js → routing-memory-HLNGW4BW.js} +2 -2
- package/dist/{session-memory-5PQONKGF.js → session-memory-YQPEWDFR.js} +3 -3
- package/dist/{setup-command-5SXN2V6R.js → setup-command-V5DTJMBS.js} +7 -7
- package/dist/{setup-config-N2RSHLAR.js → setup-config-FSMXLJ37.js} +3 -3
- package/dist/{weather-report-Y5KAWS5M.js → weather-report-J5EIDKVM.js} +2 -2
- package/package.json +2 -1
- package/dist/chunk-TBLQF7SE.js.map +0 -1
- package/dist/research-helpers-synthesize-6NLYMDP3.js +0 -10
- /package/dist/{adaptive-memory-SGWA4UIG.js.map → adaptive-memory-CHKKA4DI.js.map} +0 -0
- /package/dist/{chunk-HWSX4JI5.js.map → chunk-3PNNEWR6.js.map} +0 -0
- /package/dist/{chunk-TP5QQACR.js.map → chunk-3RSILLFN.js.map} +0 -0
- /package/dist/{chunk-JXSEDHLR.js.map → chunk-72OMG44X.js.map} +0 -0
- /package/dist/{chunk-QP7Y53HR.js.map → chunk-7GKB7LPG.js.map} +0 -0
- /package/dist/{chunk-EIWGEXVL.js.map → chunk-BIZLM4CK.js.map} +0 -0
- /package/dist/{chunk-2GOZHACL.js.map → chunk-DWZZZGZD.js.map} +0 -0
- /package/dist/{chunk-3JVBRJWT.js.map → chunk-F3ZEU2IK.js.map} +0 -0
- /package/dist/{chunk-YH3FMMIF.js.map → chunk-FBS5MCJL.js.map} +0 -0
- /package/dist/{chunk-UNUWCCIY.js.map → chunk-KDY5C63A.js.map} +0 -0
- /package/dist/{chunk-OK5FZBMH.js.map → chunk-MI2RHGLU.js.map} +0 -0
- /package/dist/{chunk-W3JN2MZP.js.map → chunk-NOITIOCN.js.map} +0 -0
- /package/dist/{chunk-N5ENCRQR.js.map → chunk-SKUW2NOC.js.map} +0 -0
- /package/dist/{chunk-LK4SJOSQ.js.map → chunk-SOW2AJPT.js.map} +0 -0
- /package/dist/{chunk-YITIZY3U.js.map → chunk-WBMWVYOM.js.map} +0 -0
- /package/dist/{chunk-JSW3W7XZ.js.map → chunk-WDNE6K4W.js.map} +0 -0
- /package/dist/{chunk-ZIWKAQWW.js.map → chunk-WKBCTGLE.js.map} +0 -0
- /package/dist/{chunk-R6OZYHZZ.js.map → chunk-XH6CQMDU.js.map} +0 -0
- /package/dist/{chunk-3ADR6O6J.js.map → chunk-YT7REHTV.js.map} +0 -0
- /package/dist/{chunk-U5KHQTS2.js.map → chunk-YYPA3CBH.js.map} +0 -0
- /package/dist/{cli-circuit-breaker-XQGQ7FCY.js.map → cli-circuit-breaker-VRR5DKH3.js.map} +0 -0
- /package/dist/{composite-router-LKMRPPIU.js.map → composite-router-E3BGQGLP.js.map} +0 -0
- /package/dist/{consensus-vote-4BDZRQ4H.js.map → consensus-vote-PP4WBNZV.js.map} +0 -0
- /package/dist/{doctor-deep-4HJAHMKX.js.map → doctor-deep-MVG45YNL.js.map} +0 -0
- /package/dist/{expert-bridge-S4ZYI2RY.js.map → expert-bridge-SHKCEXGU.js.map} +0 -0
- /package/dist/{factory-RYNDDZBZ.js.map → factory-EISLNRL5.js.map} +0 -0
- /package/dist/{factory-WF5XJ5ID.js.map → factory-VJLXQYUO.js.map} +0 -0
- /package/dist/{issue-triage-XW2JTD7Y.js.map → issue-triage-OOKMZAPK.js.map} +0 -0
- /package/dist/{mcp-config-M6OMXTO5.js.map → mcp-config-4B54K5RR.js.map} +0 -0
- /package/dist/{mobimem-J42ZSXPX.js.map → mobimem-OWZTGHYA.js.map} +0 -0
- /package/dist/{repo-security-plan-7MERQOMP.js.map → repo-security-plan-ORAZDJYH.js.map} +0 -0
- /package/dist/{research-helpers-synthesize-6NLYMDP3.js.map → research-helpers-synthesize-EAJDTBFK.js.map} +0 -0
- /package/dist/{routing-memory-MVBPOHIV.js.map → routing-memory-HLNGW4BW.js.map} +0 -0
- /package/dist/{session-memory-5PQONKGF.js.map → session-memory-YQPEWDFR.js.map} +0 -0
- /package/dist/{setup-command-5SXN2V6R.js.map → setup-command-V5DTJMBS.js.map} +0 -0
- /package/dist/{setup-config-N2RSHLAR.js.map → setup-config-FSMXLJ37.js.map} +0 -0
- /package/dist/{weather-report-Y5KAWS5M.js.map → weather-report-J5EIDKVM.js.map} +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getErrorMessage
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-DWZZZGZD.js";
|
|
4
4
|
|
|
5
5
|
// src/cli/setup-config.ts
|
|
6
6
|
import { existsSync, writeFileSync } from "fs";
|
|
@@ -59,4 +59,4 @@ function runConfigInitSync(projectRoot, force, dryRun) {
|
|
|
59
59
|
export {
|
|
60
60
|
runConfigInitSync
|
|
61
61
|
};
|
|
62
|
-
//# sourceMappingURL=chunk-
|
|
62
|
+
//# sourceMappingURL=chunk-NOITIOCN.js.map
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
createLogger,
|
|
3
3
|
err,
|
|
4
4
|
ok
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-DWZZZGZD.js";
|
|
6
6
|
|
|
7
7
|
// src/scm/token-resolver.ts
|
|
8
8
|
import { execFile } from "child_process";
|
|
@@ -87,4 +87,4 @@ export {
|
|
|
87
87
|
hasToken,
|
|
88
88
|
getTokenEnvVars
|
|
89
89
|
};
|
|
90
|
-
//# sourceMappingURL=chunk-
|
|
90
|
+
//# sourceMappingURL=chunk-SKUW2NOC.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getTokenEnvVars,
|
|
3
3
|
resolveToken
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-SKUW2NOC.js";
|
|
5
5
|
import {
|
|
6
6
|
ClaudeAdapter,
|
|
7
7
|
DEFAULT_RELEVANCE_CONFIG,
|
|
@@ -25,7 +25,7 @@ import {
|
|
|
25
25
|
toolSuccessStructured,
|
|
26
26
|
withProgressHeartbeat,
|
|
27
27
|
wrapToolWithTimeout
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-WDNE6K4W.js";
|
|
29
29
|
import {
|
|
30
30
|
REGISTRY_PATH,
|
|
31
31
|
getProjectRoot,
|
|
@@ -35,14 +35,14 @@ import {
|
|
|
35
35
|
resolveInsideRoot,
|
|
36
36
|
savePapersRegistry,
|
|
37
37
|
synthesizeResearch
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-7GKB7LPG.js";
|
|
39
39
|
import {
|
|
40
40
|
IssueTriage,
|
|
41
41
|
sanitizeInput
|
|
42
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-YYPA3CBH.js";
|
|
43
43
|
import {
|
|
44
44
|
generateSecurityPlan
|
|
45
|
-
} from "./chunk-
|
|
45
|
+
} from "./chunk-FBS5MCJL.js";
|
|
46
46
|
import {
|
|
47
47
|
analyzeGitHubRepo
|
|
48
48
|
} from "./chunk-BC3M4VLP.js";
|
|
@@ -65,14 +65,14 @@ import {
|
|
|
65
65
|
import {
|
|
66
66
|
DEFAULT_TASK_TTL_MS,
|
|
67
67
|
clampTaskTtl
|
|
68
|
-
} from "./chunk-
|
|
68
|
+
} from "./chunk-F3ZEU2IK.js";
|
|
69
69
|
import {
|
|
70
70
|
createSessionMemory
|
|
71
|
-
} from "./chunk-
|
|
71
|
+
} from "./chunk-XH6CQMDU.js";
|
|
72
72
|
import {
|
|
73
73
|
MemoryImportance,
|
|
74
74
|
calculateTextJaccardSimilarity
|
|
75
|
-
} from "./chunk-
|
|
75
|
+
} from "./chunk-72OMG44X.js";
|
|
76
76
|
import {
|
|
77
77
|
STOPWORDS,
|
|
78
78
|
capitalize,
|
|
@@ -81,13 +81,13 @@ import {
|
|
|
81
81
|
} from "./chunk-633WH2ML.js";
|
|
82
82
|
import {
|
|
83
83
|
generateMcpConfig
|
|
84
|
-
} from "./chunk-
|
|
84
|
+
} from "./chunk-KDY5C63A.js";
|
|
85
85
|
import {
|
|
86
86
|
getFallbackChainForCategory
|
|
87
|
-
} from "./chunk-
|
|
87
|
+
} from "./chunk-WKBCTGLE.js";
|
|
88
88
|
import {
|
|
89
89
|
executeExpert
|
|
90
|
-
} from "./chunk-
|
|
90
|
+
} from "./chunk-BIZLM4CK.js";
|
|
91
91
|
import {
|
|
92
92
|
ClaudeCliAdapter,
|
|
93
93
|
CliDetectionCache,
|
|
@@ -96,7 +96,7 @@ import {
|
|
|
96
96
|
getAvailableClis,
|
|
97
97
|
sleep,
|
|
98
98
|
withTimeout
|
|
99
|
-
} from "./chunk-
|
|
99
|
+
} from "./chunk-3PNNEWR6.js";
|
|
100
100
|
import {
|
|
101
101
|
AGENT_ROUTER_TIMEOUTS,
|
|
102
102
|
API_TIMEOUTS,
|
|
@@ -167,7 +167,7 @@ import {
|
|
|
167
167
|
ok,
|
|
168
168
|
toExpertTaskAnalysisResult,
|
|
169
169
|
withStep
|
|
170
|
-
} from "./chunk-
|
|
170
|
+
} from "./chunk-DWZZZGZD.js";
|
|
171
171
|
import {
|
|
172
172
|
isPersistenceEnabled
|
|
173
173
|
} from "./chunk-CLYZ7FWP.js";
|
|
@@ -40997,7 +40997,7 @@ async function tryIssueTriage(task) {
|
|
|
40997
40997
|
try {
|
|
40998
40998
|
const issueMatch = task.match(/github\.com\/([^/]+\/[^/]+)\/issues\/(\d+)/);
|
|
40999
40999
|
if (issueMatch === null) return null;
|
|
41000
|
-
const { createIssueTriage } = await import("./issue-triage-
|
|
41000
|
+
const { createIssueTriage } = await import("./issue-triage-OOKMZAPK.js");
|
|
41001
41001
|
const triage = createIssueTriage();
|
|
41002
41002
|
const owner = issueMatch[1] ?? "";
|
|
41003
41003
|
const num = issueMatch[2] ?? "";
|
|
@@ -41025,7 +41025,7 @@ var VALID_TEMPLATES = /* @__PURE__ */ new Set([
|
|
|
41025
41025
|
]);
|
|
41026
41026
|
async function classifyWithLLM(task) {
|
|
41027
41027
|
try {
|
|
41028
|
-
const { executeExpert: executeExpert2 } = await import("./expert-bridge-
|
|
41028
|
+
const { executeExpert: executeExpert2 } = await import("./expert-bridge-SHKCEXGU.js");
|
|
41029
41029
|
const prompt = [
|
|
41030
41030
|
"Classify this task into exactly one pipeline template.",
|
|
41031
41031
|
"Templates: dev (implementation/bug fix/refactor), research (investigate/evaluate/compare),",
|
|
@@ -41819,7 +41819,7 @@ var memoryInitPromise = null;
|
|
|
41819
41819
|
async function initPipelineMemory() {
|
|
41820
41820
|
if (cachedMemory !== null) return cachedMemory;
|
|
41821
41821
|
try {
|
|
41822
|
-
const { createSessionMemory: createSessionMemory2 } = await import("./session-memory-
|
|
41822
|
+
const { createSessionMemory: createSessionMemory2 } = await import("./session-memory-YQPEWDFR.js");
|
|
41823
41823
|
const { LEARNING_DIR } = await import("./learning-persistence-WMWZJZ35.js");
|
|
41824
41824
|
const mem = createSessionMemory2(LEARNING_DIR);
|
|
41825
41825
|
mem.startSession(`pipeline-${String(Date.now())}`);
|
|
@@ -41872,7 +41872,7 @@ async function persistMobiMemState() {
|
|
|
41872
41872
|
if (!isPersistenceEnabled2()) return;
|
|
41873
41873
|
const os5 = await import("os");
|
|
41874
41874
|
const path19 = await import("path");
|
|
41875
|
-
const { createMobiMem } = await import("./mobimem-
|
|
41875
|
+
const { createMobiMem } = await import("./mobimem-OWZTGHYA.js");
|
|
41876
41876
|
const mobimem = createMobiMem();
|
|
41877
41877
|
const savePath = path19.join(os5.homedir(), ".nexus-agents", "memory", "mobimem-state.json");
|
|
41878
41878
|
await mobimem.save(savePath);
|
|
@@ -41889,7 +41889,7 @@ function recordRoutingExperience(category, success, durationMs) {
|
|
|
41889
41889
|
callRecord(routingMemoryCache);
|
|
41890
41890
|
return;
|
|
41891
41891
|
}
|
|
41892
|
-
void import("./routing-memory-
|
|
41892
|
+
void import("./routing-memory-HLNGW4BW.js").then(({ createRoutingMemory }) => {
|
|
41893
41893
|
routingMemoryCache = createRoutingMemory();
|
|
41894
41894
|
callRecord(routingMemoryCache);
|
|
41895
41895
|
}).catch((error) => {
|
|
@@ -41918,7 +41918,7 @@ ${text}` : "";
|
|
|
41918
41918
|
}
|
|
41919
41919
|
async function getWeatherContext() {
|
|
41920
41920
|
try {
|
|
41921
|
-
const { generateWeatherReport: generateWeatherReport2 } = await import("./weather-report-
|
|
41921
|
+
const { generateWeatherReport: generateWeatherReport2 } = await import("./weather-report-J5EIDKVM.js");
|
|
41922
41922
|
const report = generateWeatherReport2({ includeAdaptive: true });
|
|
41923
41923
|
const mappings = "recommendedMappings" in report ? report.recommendedMappings : [];
|
|
41924
41924
|
if (!Array.isArray(mappings) || mappings.length === 0) return "";
|
|
@@ -41935,7 +41935,7 @@ ${lines}
|
|
|
41935
41935
|
}
|
|
41936
41936
|
async function getMemoryContext(task) {
|
|
41937
41937
|
try {
|
|
41938
|
-
const { createSessionMemory: createSessionMemory2 } = await import("./session-memory-
|
|
41938
|
+
const { createSessionMemory: createSessionMemory2 } = await import("./session-memory-YQPEWDFR.js");
|
|
41939
41939
|
const { LEARNING_DIR } = await import("./learning-persistence-WMWZJZ35.js");
|
|
41940
41940
|
const memory = createSessionMemory2(LEARNING_DIR, { maxLearningsInContext: 10 });
|
|
41941
41941
|
const learnings = memory.searchLearnings(task.slice(0, 200));
|
|
@@ -42028,7 +42028,7 @@ ${contextBlock}`;
|
|
|
42028
42028
|
const strategy = config.votingStrategy ?? "higher_order";
|
|
42029
42029
|
await postProgress(config, "Vote", `Running consensus with ${strategy} strategy...`);
|
|
42030
42030
|
try {
|
|
42031
|
-
const { executeVoting } = await import("./consensus-vote-
|
|
42031
|
+
const { executeVoting } = await import("./consensus-vote-PP4WBNZV.js");
|
|
42032
42032
|
const votingResult = await executeVoting(
|
|
42033
42033
|
{
|
|
42034
42034
|
proposal: plan.slice(0, 4e3),
|
|
@@ -42897,7 +42897,7 @@ async function extractSymbolsForTask(task) {
|
|
|
42897
42897
|
}
|
|
42898
42898
|
async function retrieveAdaptiveMemory(task) {
|
|
42899
42899
|
try {
|
|
42900
|
-
const { AdaptiveMemoryBackend } = await import("./adaptive-memory-
|
|
42900
|
+
const { AdaptiveMemoryBackend } = await import("./adaptive-memory-CHKKA4DI.js");
|
|
42901
42901
|
const os5 = await import("os");
|
|
42902
42902
|
const path19 = await import("path");
|
|
42903
42903
|
const baseDir = path19.join(os5.homedir(), ".nexus-agents", "memory");
|
|
@@ -42916,7 +42916,7 @@ async function retrieveAdaptiveMemory(task) {
|
|
|
42916
42916
|
}
|
|
42917
42917
|
async function queryResearchRegistry(task) {
|
|
42918
42918
|
try {
|
|
42919
|
-
const { synthesizeResearch: synthesizeResearch2 } = await import("./research-helpers-synthesize-
|
|
42919
|
+
const { synthesizeResearch: synthesizeResearch2 } = await import("./research-helpers-synthesize-EAJDTBFK.js");
|
|
42920
42920
|
const topic = task.split(/[.!?\n]/).filter((s) => s.trim().length > 10)[0]?.trim();
|
|
42921
42921
|
if (topic === void 0) return null;
|
|
42922
42922
|
const result = await synthesizeResearch2(topic.slice(0, 50));
|
|
@@ -43001,7 +43001,7 @@ function createScanStageWrapper() {
|
|
|
43001
43001
|
try {
|
|
43002
43002
|
const slug = ctx.task.match(/([a-zA-Z0-9._-]+\/[a-zA-Z0-9._-]+)/)?.[1];
|
|
43003
43003
|
if (slug !== void 0) {
|
|
43004
|
-
const { generateSecurityPlan: generateSecurityPlan2 } = await import("./repo-security-plan-
|
|
43004
|
+
const { generateSecurityPlan: generateSecurityPlan2 } = await import("./repo-security-plan-ORAZDJYH.js");
|
|
43005
43005
|
const plan = await generateSecurityPlan2({ repo: slug, maxScanners: 10 });
|
|
43006
43006
|
const recs = plan.recommendations.slice(0, 5).map((r) => `${r.priority}: ${r.displayName} (${r.category})`).join("; ");
|
|
43007
43007
|
ctx.sharedMemory.write("scan", "decision", { recommendations: recs });
|
|
@@ -52420,7 +52420,7 @@ var GitHubTaskTracker = class {
|
|
|
52420
52420
|
cachedProvider = null;
|
|
52421
52421
|
async getProvider() {
|
|
52422
52422
|
if (this.cachedProvider !== null) return this.cachedProvider;
|
|
52423
|
-
const { createScmProvider } = await import("./factory-
|
|
52423
|
+
const { createScmProvider } = await import("./factory-VJLXQYUO.js");
|
|
52424
52424
|
const result = await createScmProvider({ repo: this.config.repo ?? "" });
|
|
52425
52425
|
if (!result.ok) throw new Error(`SCM provider error: ${result.error.message}`);
|
|
52426
52426
|
this.cachedProvider = result.value;
|
|
@@ -53259,4 +53259,4 @@ export {
|
|
|
53259
53259
|
detectBackend,
|
|
53260
53260
|
createTaskTracker
|
|
53261
53261
|
};
|
|
53262
|
-
//# sourceMappingURL=chunk-
|
|
53262
|
+
//# sourceMappingURL=chunk-SOW2AJPT.js.map
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
resolveToken
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-SKUW2NOC.js";
|
|
4
4
|
import {
|
|
5
5
|
GitHubProvider,
|
|
6
6
|
ScmError
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-MI2RHGLU.js";
|
|
8
8
|
import {
|
|
9
9
|
err,
|
|
10
10
|
ok
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-DWZZZGZD.js";
|
|
12
12
|
|
|
13
13
|
// src/scm/factory.ts
|
|
14
14
|
async function createScmProvider(config) {
|
|
@@ -41,4 +41,4 @@ export {
|
|
|
41
41
|
createScmProvider,
|
|
42
42
|
createGitHubProvider
|
|
43
43
|
};
|
|
44
|
-
//# sourceMappingURL=chunk-
|
|
44
|
+
//# sourceMappingURL=chunk-WBMWVYOM.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SessionMemory
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-XH6CQMDU.js";
|
|
4
4
|
import {
|
|
5
5
|
AdaptiveMemoryBackend,
|
|
6
6
|
HybridMemoryBackend,
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
getMemoryEntry,
|
|
10
10
|
memoryExists,
|
|
11
11
|
memoryRowToEntry
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-72OMG44X.js";
|
|
13
13
|
import {
|
|
14
14
|
stringifyValue,
|
|
15
15
|
tokenizeFiltered
|
|
@@ -21,7 +21,7 @@ import {
|
|
|
21
21
|
getAvailableClis,
|
|
22
22
|
isCliAvailable,
|
|
23
23
|
withTimeout
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-3PNNEWR6.js";
|
|
25
25
|
import {
|
|
26
26
|
AgentError,
|
|
27
27
|
CACHE_TIMEOUTS,
|
|
@@ -66,7 +66,7 @@ import {
|
|
|
66
66
|
resolveVoteTimeout,
|
|
67
67
|
toRateLimitError,
|
|
68
68
|
validateTimeout
|
|
69
|
-
} from "./chunk-
|
|
69
|
+
} from "./chunk-DWZZZGZD.js";
|
|
70
70
|
import {
|
|
71
71
|
OUTCOMES_FILE,
|
|
72
72
|
ensureLearningDir
|
|
@@ -12347,7 +12347,7 @@ async function processVotesWithCascade(votes, opts) {
|
|
|
12347
12347
|
var CONTRARIAN_ESCALATION_THRESHOLD = 0.8;
|
|
12348
12348
|
async function runContrarianCheck(proposal, log) {
|
|
12349
12349
|
try {
|
|
12350
|
-
const { executeExpert } = await import("./expert-bridge-
|
|
12350
|
+
const { executeExpert } = await import("./expert-bridge-SHKCEXGU.js");
|
|
12351
12351
|
const prompt = [
|
|
12352
12352
|
"You are a contrarian analyst. Your job is to find reasons this proposal should be REJECTED.",
|
|
12353
12353
|
"Look for: YAGNI (not needed), MISALIGNED (wrong tech/architecture), SECURITY_RISK, SCOPE_CREEP.",
|
|
@@ -12603,6 +12603,7 @@ export {
|
|
|
12603
12603
|
filterStream,
|
|
12604
12604
|
withTimeout2 as withTimeout,
|
|
12605
12605
|
bufferStream,
|
|
12606
|
+
DEFAULT_COLLECT_STREAM_MAX_CHUNKS,
|
|
12606
12607
|
collectStream,
|
|
12607
12608
|
CLAUDE_MODELS,
|
|
12608
12609
|
CLAUDE_MODEL_ALIASES,
|
|
@@ -12717,4 +12718,4 @@ export {
|
|
|
12717
12718
|
CONSENSUS_VOTE_OUTPUT_SCHEMA,
|
|
12718
12719
|
registerConsensusVoteTool
|
|
12719
12720
|
};
|
|
12720
|
-
//# sourceMappingURL=chunk-
|
|
12721
|
+
//# sourceMappingURL=chunk-WDNE6K4W.js.map
|
|
@@ -2,13 +2,13 @@ import {
|
|
|
2
2
|
CircuitBreakerRegistry,
|
|
3
3
|
CircuitError,
|
|
4
4
|
mapCliErrorToCategory
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-YT7REHTV.js";
|
|
6
6
|
import {
|
|
7
7
|
createLogger,
|
|
8
8
|
err,
|
|
9
9
|
getTimeProvider,
|
|
10
10
|
ok
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-DWZZZGZD.js";
|
|
12
12
|
|
|
13
13
|
// src/cli-adapters/fallback-chains.ts
|
|
14
14
|
import { z } from "zod";
|
|
@@ -192,4 +192,4 @@ export {
|
|
|
192
192
|
CliCircuitBreakerIntegration,
|
|
193
193
|
createCliCircuitBreakerIntegration
|
|
194
194
|
};
|
|
195
|
-
//# sourceMappingURL=chunk-
|
|
195
|
+
//# sourceMappingURL=chunk-WKBCTGLE.js.map
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
getErrorMessage,
|
|
5
5
|
getTimeProvider,
|
|
6
6
|
ok
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-DWZZZGZD.js";
|
|
8
8
|
|
|
9
9
|
// src/context/session-memory.ts
|
|
10
10
|
import * as fs from "fs";
|
|
@@ -351,4 +351,4 @@ export {
|
|
|
351
351
|
SessionMemory,
|
|
352
352
|
createSessionMemory
|
|
353
353
|
};
|
|
354
|
-
//# sourceMappingURL=chunk-
|
|
354
|
+
//# sourceMappingURL=chunk-XH6CQMDU.js.map
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
getErrorMessage,
|
|
6
6
|
getTimeProvider,
|
|
7
7
|
ok
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-DWZZZGZD.js";
|
|
9
9
|
|
|
10
10
|
// src/cli-adapters/circuit-breaker-types.ts
|
|
11
11
|
var CircuitErrorCode = {
|
|
@@ -353,4 +353,4 @@ export {
|
|
|
353
353
|
CircuitBreakerRegistry,
|
|
354
354
|
mapCliErrorToCategory
|
|
355
355
|
};
|
|
356
|
-
//# sourceMappingURL=chunk-
|
|
356
|
+
//# sourceMappingURL=chunk-YT7REHTV.js.map
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
GitHubProvider,
|
|
3
3
|
ScmError
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-MI2RHGLU.js";
|
|
5
5
|
import {
|
|
6
6
|
CACHE_TIMEOUTS,
|
|
7
7
|
createLogger,
|
|
8
8
|
err,
|
|
9
9
|
getTimeProvider,
|
|
10
10
|
ok
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-DWZZZGZD.js";
|
|
12
12
|
|
|
13
13
|
// src/security/trust-types.ts
|
|
14
14
|
import { z } from "zod";
|
|
@@ -1582,4 +1582,4 @@ export {
|
|
|
1582
1582
|
IssueTriage,
|
|
1583
1583
|
createIssueTriage
|
|
1584
1584
|
};
|
|
1585
|
-
//# sourceMappingURL=chunk-
|
|
1585
|
+
//# sourceMappingURL=chunk-YYPA3CBH.js.map
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
CliCircuitBreakerIntegration,
|
|
3
3
|
createCliCircuitBreakerIntegration
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import "./chunk-
|
|
6
|
-
import "./chunk-
|
|
4
|
+
} from "./chunk-WKBCTGLE.js";
|
|
5
|
+
import "./chunk-YT7REHTV.js";
|
|
6
|
+
import "./chunk-DWZZZGZD.js";
|
|
7
7
|
import "./chunk-CLYZ7FWP.js";
|
|
8
8
|
import "./chunk-UP2VWCW5.js";
|
|
9
9
|
export {
|
|
10
10
|
CliCircuitBreakerIntegration,
|
|
11
11
|
createCliCircuitBreakerIntegration
|
|
12
12
|
};
|
|
13
|
-
//# sourceMappingURL=cli-circuit-breaker-
|
|
13
|
+
//# sourceMappingURL=cli-circuit-breaker-VRR5DKH3.js.map
|
package/dist/cli.js
CHANGED
|
@@ -12,11 +12,11 @@ import {
|
|
|
12
12
|
parseFindings,
|
|
13
13
|
sumFindings
|
|
14
14
|
} from "./chunk-6E3NMMEY.js";
|
|
15
|
-
import "./chunk-
|
|
15
|
+
import "./chunk-3RSILLFN.js";
|
|
16
16
|
import {
|
|
17
17
|
setupCommandAsync
|
|
18
|
-
} from "./chunk-
|
|
19
|
-
import "./chunk-
|
|
18
|
+
} from "./chunk-ICFGV3HB.js";
|
|
19
|
+
import "./chunk-NOITIOCN.js";
|
|
20
20
|
import {
|
|
21
21
|
AuthHandler,
|
|
22
22
|
CustomExpertDefinitionSchema,
|
|
@@ -150,10 +150,10 @@ import {
|
|
|
150
150
|
validateNexusEnv,
|
|
151
151
|
validateWorkflow,
|
|
152
152
|
wrapInMarkdownFence
|
|
153
|
-
} from "./chunk-
|
|
153
|
+
} from "./chunk-SOW2AJPT.js";
|
|
154
154
|
import {
|
|
155
155
|
resolveToken
|
|
156
|
-
} from "./chunk-
|
|
156
|
+
} from "./chunk-SKUW2NOC.js";
|
|
157
157
|
import {
|
|
158
158
|
CATEGORY_DISPLAY_NAMES,
|
|
159
159
|
DEFAULT_PR_REVIEW_CONFIG
|
|
@@ -169,22 +169,22 @@ import {
|
|
|
169
169
|
registerConsensusVoteTool,
|
|
170
170
|
shutdownToolMemory,
|
|
171
171
|
validateTimeout
|
|
172
|
-
} from "./chunk-
|
|
172
|
+
} from "./chunk-WDNE6K4W.js";
|
|
173
173
|
import {
|
|
174
174
|
loadPapersRegistry,
|
|
175
175
|
loadTechniquesRegistry,
|
|
176
176
|
savePapersRegistry,
|
|
177
177
|
synthesizeResearch
|
|
178
|
-
} from "./chunk-
|
|
178
|
+
} from "./chunk-7GKB7LPG.js";
|
|
179
179
|
import {
|
|
180
180
|
classifyTrust,
|
|
181
181
|
createFullGitHubProvider,
|
|
182
182
|
evaluatePolicy,
|
|
183
183
|
parsePRUrl,
|
|
184
184
|
sanitizeInput
|
|
185
|
-
} from "./chunk-
|
|
186
|
-
import "./chunk-
|
|
187
|
-
import "./chunk-
|
|
185
|
+
} from "./chunk-YYPA3CBH.js";
|
|
186
|
+
import "./chunk-MI2RHGLU.js";
|
|
187
|
+
import "./chunk-FBS5MCJL.js";
|
|
188
188
|
import "./chunk-BC3M4VLP.js";
|
|
189
189
|
import "./chunk-AP2FD37C.js";
|
|
190
190
|
import "./chunk-BQ4YXGGQ.js";
|
|
@@ -200,25 +200,25 @@ import {
|
|
|
200
200
|
doctorCommand,
|
|
201
201
|
initDataDirectories,
|
|
202
202
|
runDoctor
|
|
203
|
-
} from "./chunk-
|
|
204
|
-
import "./chunk-
|
|
203
|
+
} from "./chunk-F3ZEU2IK.js";
|
|
204
|
+
import "./chunk-XH6CQMDU.js";
|
|
205
205
|
import {
|
|
206
206
|
MemoryError
|
|
207
|
-
} from "./chunk-
|
|
207
|
+
} from "./chunk-72OMG44X.js";
|
|
208
208
|
import {
|
|
209
209
|
capitalize,
|
|
210
210
|
capitalizeKebab,
|
|
211
211
|
truncateSentence
|
|
212
212
|
} from "./chunk-633WH2ML.js";
|
|
213
|
-
import "./chunk-
|
|
214
|
-
import "./chunk-
|
|
215
|
-
import "./chunk-
|
|
213
|
+
import "./chunk-KDY5C63A.js";
|
|
214
|
+
import "./chunk-WKBCTGLE.js";
|
|
215
|
+
import "./chunk-BIZLM4CK.js";
|
|
216
216
|
import {
|
|
217
217
|
createAllAdapters,
|
|
218
218
|
getAvailableClis,
|
|
219
219
|
isRecord
|
|
220
|
-
} from "./chunk-
|
|
221
|
-
import "./chunk-
|
|
220
|
+
} from "./chunk-3PNNEWR6.js";
|
|
221
|
+
import "./chunk-YT7REHTV.js";
|
|
222
222
|
import {
|
|
223
223
|
API_TIMEOUTS,
|
|
224
224
|
AgentCapability,
|
|
@@ -242,6 +242,7 @@ import {
|
|
|
242
242
|
TopsisRouter,
|
|
243
243
|
ValidationError,
|
|
244
244
|
bootstrapStepNotifications,
|
|
245
|
+
calculateCost,
|
|
245
246
|
clamp,
|
|
246
247
|
clamp01,
|
|
247
248
|
color,
|
|
@@ -261,6 +262,8 @@ import {
|
|
|
261
262
|
formatZodError,
|
|
262
263
|
generateWeatherReport,
|
|
263
264
|
getAdaptiveBonus,
|
|
265
|
+
getCliModelName,
|
|
266
|
+
getDefaultModelForCli,
|
|
264
267
|
getErrorMessage,
|
|
265
268
|
getModelCapabilities,
|
|
266
269
|
getOutcomeStore,
|
|
@@ -280,7 +283,7 @@ import {
|
|
|
280
283
|
toError,
|
|
281
284
|
writeEmptyLine,
|
|
282
285
|
writeLine
|
|
283
|
-
} from "./chunk-
|
|
286
|
+
} from "./chunk-DWZZZGZD.js";
|
|
284
287
|
import "./chunk-CLYZ7FWP.js";
|
|
285
288
|
import "./chunk-UP2VWCW5.js";
|
|
286
289
|
|
|
@@ -4094,6 +4097,79 @@ async function executeWithPuppeteer(taskContent, adapters, options, logger17) {
|
|
|
4094
4097
|
return buildPuppeteerResult(puppeteerResult, startTime, policyEngine, useLearnable);
|
|
4095
4098
|
}
|
|
4096
4099
|
|
|
4100
|
+
// src/cli/orchestrate-dry-run.ts
|
|
4101
|
+
var DEFAULT_OUTPUT_RATIO = 0.6;
|
|
4102
|
+
function buildDryRunReport(task, decision) {
|
|
4103
|
+
const analyzer = createSharedTaskAnalyzer();
|
|
4104
|
+
const analysis = analyzer.analyze(task.content);
|
|
4105
|
+
const estimatedInputTokens = analyzer.estimateTokens(task.content);
|
|
4106
|
+
const estimatedOutputTokens = Math.round(estimatedInputTokens * DEFAULT_OUTPUT_RATIO);
|
|
4107
|
+
const modelId = getCliModelName(getDefaultModelForCli(decision.cliName));
|
|
4108
|
+
const costUsd = calculateCost(modelId, estimatedInputTokens, estimatedOutputTokens);
|
|
4109
|
+
const inputCostUsd = calculateCost(modelId, estimatedInputTokens, 0);
|
|
4110
|
+
const outputCostUsd = calculateCost(modelId, 0, estimatedOutputTokens);
|
|
4111
|
+
return {
|
|
4112
|
+
analysis: {
|
|
4113
|
+
taskType: analysis.taskType,
|
|
4114
|
+
taskTypeConfidence: analysis.taskTypeConfidence,
|
|
4115
|
+
reasoningType: analysis.reasoningType,
|
|
4116
|
+
reasoningConfidence: analysis.reasoningConfidence,
|
|
4117
|
+
complexity: analysis.complexity,
|
|
4118
|
+
complexityScore: analysis.complexityScore,
|
|
4119
|
+
estimatedInputTokens,
|
|
4120
|
+
estimatedOutputTokens
|
|
4121
|
+
},
|
|
4122
|
+
costEstimate: costUsd !== void 0 && inputCostUsd !== void 0 && outputCostUsd !== void 0 ? {
|
|
4123
|
+
model: modelId,
|
|
4124
|
+
inputUsd: inputCostUsd,
|
|
4125
|
+
outputUsd: outputCostUsd,
|
|
4126
|
+
totalUsd: costUsd
|
|
4127
|
+
} : void 0,
|
|
4128
|
+
routing: {
|
|
4129
|
+
selectedCli: decision.cliName,
|
|
4130
|
+
modelId,
|
|
4131
|
+
reason: decision.reason,
|
|
4132
|
+
confidence: decision.confidence
|
|
4133
|
+
}
|
|
4134
|
+
};
|
|
4135
|
+
}
|
|
4136
|
+
function renderDryRunText(report) {
|
|
4137
|
+
const lines = ["[DRY RUN] Task would execute with the following plan:", ""];
|
|
4138
|
+
lines.push("Task Analysis:");
|
|
4139
|
+
lines.push(
|
|
4140
|
+
` Category: ${report.analysis.taskType} (confidence: ${formatPct(report.analysis.taskTypeConfidence)})`
|
|
4141
|
+
);
|
|
4142
|
+
lines.push(
|
|
4143
|
+
` Reasoning type: ${report.analysis.reasoningType} (confidence: ${formatPct(report.analysis.reasoningConfidence)})`
|
|
4144
|
+
);
|
|
4145
|
+
lines.push(
|
|
4146
|
+
` Complexity: ${report.analysis.complexity} (score: ${report.analysis.complexityScore.toFixed(2)})`
|
|
4147
|
+
);
|
|
4148
|
+
lines.push(
|
|
4149
|
+
` Est. tokens: ~${String(report.analysis.estimatedInputTokens)} input / ~${String(report.analysis.estimatedOutputTokens)} output`
|
|
4150
|
+
);
|
|
4151
|
+
if (report.costEstimate !== void 0) {
|
|
4152
|
+
lines.push("");
|
|
4153
|
+
lines.push("Cost Estimate:");
|
|
4154
|
+
lines.push(` Model: ${report.costEstimate.model}`);
|
|
4155
|
+
lines.push(
|
|
4156
|
+
` Input: $${report.costEstimate.inputUsd.toFixed(6)} \xB7 Output: $${report.costEstimate.outputUsd.toFixed(6)}`
|
|
4157
|
+
);
|
|
4158
|
+
lines.push(` Total: $${report.costEstimate.totalUsd.toFixed(6)}`);
|
|
4159
|
+
}
|
|
4160
|
+
lines.push("");
|
|
4161
|
+
lines.push("Routing:");
|
|
4162
|
+
lines.push(` Selected: ${report.routing.selectedCli} (${report.routing.modelId})`);
|
|
4163
|
+
lines.push(` Reason: ${report.routing.reason}`);
|
|
4164
|
+
lines.push(` Confidence: ${formatPct(report.routing.confidence)}`);
|
|
4165
|
+
lines.push("");
|
|
4166
|
+
lines.push("Run without --dry-run to execute.");
|
|
4167
|
+
return lines.join("\n");
|
|
4168
|
+
}
|
|
4169
|
+
function formatPct(value) {
|
|
4170
|
+
return `${(value * 100).toFixed(1)}%`;
|
|
4171
|
+
}
|
|
4172
|
+
|
|
4097
4173
|
// src/cli/orchestrate-command.ts
|
|
4098
4174
|
async function runWithAdapter(task, decision, logger17, startTime) {
|
|
4099
4175
|
const time = getTimeProvider();
|
|
@@ -4146,6 +4222,7 @@ async function executeWithRouting(task, adapters, options, logger17) {
|
|
|
4146
4222
|
success: true,
|
|
4147
4223
|
model: decision.cliName,
|
|
4148
4224
|
routing: decision,
|
|
4225
|
+
dryRun: buildDryRunReport(task, decision),
|
|
4149
4226
|
durationMs: time.now() - startTime
|
|
4150
4227
|
};
|
|
4151
4228
|
}
|
|
@@ -4226,6 +4303,10 @@ function formatPuppeteerStats(puppeteer) {
|
|
|
4226
4303
|
function formatResultText(result) {
|
|
4227
4304
|
const lines = [];
|
|
4228
4305
|
const puppeteerResult = result;
|
|
4306
|
+
const resultWithDryRun = result;
|
|
4307
|
+
if (resultWithDryRun.dryRun !== void 0) {
|
|
4308
|
+
return renderDryRunText(resultWithDryRun.dryRun);
|
|
4309
|
+
}
|
|
4229
4310
|
if (result.success) {
|
|
4230
4311
|
lines.push(`Task completed using ${result.model} (${String(result.durationMs)}ms)`);
|
|
4231
4312
|
if (result.routing !== void 0) {
|
|
@@ -19864,7 +19945,7 @@ async function handleVerifyCommand(args) {
|
|
|
19864
19945
|
async function handleDoctorCommand(args) {
|
|
19865
19946
|
const exitCode = await doctorCommand({ fix: args.options.fix });
|
|
19866
19947
|
if (args.options.deep) {
|
|
19867
|
-
const { runDeepDiagnostics: runDeepDiagnostics2, formatDeepDiagnostics: formatDeepDiagnostics2 } = await import("./doctor-deep-
|
|
19948
|
+
const { runDeepDiagnostics: runDeepDiagnostics2, formatDeepDiagnostics: formatDeepDiagnostics2 } = await import("./doctor-deep-MVG45YNL.js");
|
|
19868
19949
|
const diag = runDeepDiagnostics2();
|
|
19869
19950
|
process.stdout.write(formatDeepDiagnostics2(diag) + "\n");
|
|
19870
19951
|
}
|