nexus-agents 2.164.0 → 2.165.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/dist/{child-mcp-config-Q3XDLAVG.js → child-mcp-config-LQ4IKFSN.js} +2 -2
- package/dist/{chunk-NSZVUPZH.js → chunk-2255SARF.js} +2 -2
- package/dist/{chunk-SOWWAZ5C.js → chunk-2UMMVKUW.js} +3 -3
- package/dist/{chunk-4WZWUONK.js → chunk-33X5V4PL.js} +2 -2
- package/dist/{chunk-A57TGFAC.js → chunk-34XRZV2Q.js} +5 -5
- package/dist/{chunk-VGOPIPDV.js → chunk-3GYRM7D6.js} +5 -5
- package/dist/{chunk-2O4TMKUN.js → chunk-3HVF4BG4.js} +2 -2
- package/dist/{chunk-FTYO3F2S.js → chunk-3SMFRAX5.js} +3 -3
- package/dist/{chunk-GATA7PDR.js → chunk-55NRU7SV.js} +8 -8
- package/dist/{chunk-RYUMBYYR.js → chunk-6PYVTJZF.js} +2 -2
- package/dist/{chunk-M5LNQ6DM.js → chunk-CVLVWHXG.js} +5 -5
- package/dist/{chunk-UFWFHXDP.js → chunk-DUUMMELV.js} +3 -3
- package/dist/{chunk-BOE7RCND.js → chunk-FKOWIKR4.js} +3 -3
- package/dist/{chunk-IH7A6MNH.js → chunk-IXZXG2MY.js} +7 -7
- package/dist/{chunk-FQNXEOL3.js → chunk-JBZMUKT4.js} +2 -2
- package/dist/{chunk-JAGAZMUT.js → chunk-JV64QX3Y.js} +2 -2
- package/dist/{chunk-KWYMR424.js → chunk-LKSG75LC.js} +4 -4
- package/dist/{chunk-XYA7W5IQ.js → chunk-LQ2ABFLI.js} +2 -2
- package/dist/{chunk-YLA7NOSK.js → chunk-LUP26FMZ.js} +4 -4
- package/dist/{chunk-M2BRITA3.js → chunk-MQUSJVER.js} +4 -4
- package/dist/{chunk-GMLPL5P2.js → chunk-MYNI3CYT.js} +4 -4
- package/dist/{chunk-V2PFGYOM.js → chunk-NBPA4PQD.js} +2 -2
- package/dist/{chunk-K54QBTB6.js → chunk-NXJJZEUO.js} +2 -2
- package/dist/{chunk-UGNUHVZP.js → chunk-PKSBCVNJ.js} +34 -34
- package/dist/{chunk-N6WRMZYA.js → chunk-PZ3BB3PO.js} +137 -38
- package/dist/chunk-PZ3BB3PO.js.map +1 -0
- package/dist/{chunk-NWIN6KOK.js → chunk-RBN4WXOA.js} +2 -2
- package/dist/{chunk-5HLHFSTH.js → chunk-RXI5ONP7.js} +2 -2
- package/dist/{chunk-6RIGFUZF.js → chunk-SAXMQ7TE.js} +7 -7
- package/dist/{chunk-KCVJPSZF.js → chunk-SF2AK3JB.js} +2 -2
- package/dist/{chunk-K6II2MEP.js → chunk-TFYQRAWT.js} +3 -3
- package/dist/{chunk-WEIYBIV3.js → chunk-TZNJCTNQ.js} +2 -2
- package/dist/{chunk-HLP36YBZ.js → chunk-U43BUJSN.js} +7 -7
- package/dist/{chunk-P2BP7MJS.js → chunk-YOFRUVPJ.js} +2 -2
- package/dist/{chunk-P67JWFPG.js → chunk-YPPYRLDF.js} +2 -2
- package/dist/{chunk-BE7MNC7B.js → chunk-ZNY7MM2J.js} +3 -3
- package/dist/{cli-circuit-breaker-G2P42V3H.js → cli-circuit-breaker-5IGBBD7R.js} +4 -4
- package/dist/cli.js +41 -41
- package/dist/{composite-router-NZPVPGSN.js → composite-router-62KI56W6.js} +2 -2
- package/dist/{consensus-vote-BTN37MRV.js → consensus-vote-M4ZELBV4.js} +15 -15
- package/dist/{context-retriever-4SWGSINU.js → context-retriever-5UJC5KDZ.js} +8 -8
- package/dist/{doctor-deep-SYEDHAPX.js → doctor-deep-7OR5MYMI.js} +3 -3
- package/dist/{expert-bridge-6I34TGL7.js → expert-bridge-BNMCDENK.js} +4 -4
- package/dist/{factory-KKRPWZ2A.js → factory-77GX5DG4.js} +8 -8
- package/dist/{factory-2BGHWTMC.js → factory-QLW773DP.js} +5 -5
- package/dist/{improvement-review-4RX6YUVD.js → improvement-review-KDM6OL25.js} +5 -5
- package/dist/index.js +30 -30
- package/dist/{init-opencode-CXUIMAUP.js → init-opencode-FXKABSGS.js} +6 -6
- package/dist/{issue-triage-4VXHABBD.js → issue-triage-OVX4VSUN.js} +6 -6
- package/dist/{pr-reviewer-helpers-5BOB2KK4.js → pr-reviewer-helpers-VGIBNZBX.js} +4 -4
- package/dist/{registry-command-4PDAF4XP.js → registry-command-CGMRLZQ2.js} +2 -2
- package/dist/{repo-security-plan-UMNW5FP6.js → repo-security-plan-TBCMGL5Z.js} +3 -3
- package/dist/{research-helpers-synthesize-WYFSSCKX.js → research-helpers-synthesize-76ZZYWJ5.js} +4 -4
- package/dist/{routing-memory-IMJPZUKI.js → routing-memory-PZ4LTLXJ.js} +2 -2
- package/dist/{session-memory-XKJFKI6R.js → session-memory-C55R7LGY.js} +3 -3
- package/dist/{setup-command-BPNKRJB2.js → setup-command-LUYHP5UY.js} +11 -11
- package/dist/{setup-config-DHGAMWSI.js → setup-config-SMRMMT6Z.js} +3 -3
- package/dist/{setup-custom-api-ESPG7XTX.js → setup-custom-api-42JXTJHU.js} +3 -3
- package/dist/{tool-memory-VGEHRRGE.js → tool-memory-LCDNVPFI.js} +5 -5
- package/dist/{unified-registry-GLVZZGSC.js → unified-registry-XEXWGKV5.js} +9 -9
- package/dist/{weather-report-ITGCNNPJ.js → weather-report-DPADAXFN.js} +2 -2
- package/package.json +1 -1
- package/dist/chunk-N6WRMZYA.js.map +0 -1
- /package/dist/{child-mcp-config-Q3XDLAVG.js.map → child-mcp-config-LQ4IKFSN.js.map} +0 -0
- /package/dist/{chunk-NSZVUPZH.js.map → chunk-2255SARF.js.map} +0 -0
- /package/dist/{chunk-SOWWAZ5C.js.map → chunk-2UMMVKUW.js.map} +0 -0
- /package/dist/{chunk-4WZWUONK.js.map → chunk-33X5V4PL.js.map} +0 -0
- /package/dist/{chunk-A57TGFAC.js.map → chunk-34XRZV2Q.js.map} +0 -0
- /package/dist/{chunk-VGOPIPDV.js.map → chunk-3GYRM7D6.js.map} +0 -0
- /package/dist/{chunk-2O4TMKUN.js.map → chunk-3HVF4BG4.js.map} +0 -0
- /package/dist/{chunk-FTYO3F2S.js.map → chunk-3SMFRAX5.js.map} +0 -0
- /package/dist/{chunk-GATA7PDR.js.map → chunk-55NRU7SV.js.map} +0 -0
- /package/dist/{chunk-RYUMBYYR.js.map → chunk-6PYVTJZF.js.map} +0 -0
- /package/dist/{chunk-M5LNQ6DM.js.map → chunk-CVLVWHXG.js.map} +0 -0
- /package/dist/{chunk-UFWFHXDP.js.map → chunk-DUUMMELV.js.map} +0 -0
- /package/dist/{chunk-BOE7RCND.js.map → chunk-FKOWIKR4.js.map} +0 -0
- /package/dist/{chunk-IH7A6MNH.js.map → chunk-IXZXG2MY.js.map} +0 -0
- /package/dist/{chunk-FQNXEOL3.js.map → chunk-JBZMUKT4.js.map} +0 -0
- /package/dist/{chunk-JAGAZMUT.js.map → chunk-JV64QX3Y.js.map} +0 -0
- /package/dist/{chunk-KWYMR424.js.map → chunk-LKSG75LC.js.map} +0 -0
- /package/dist/{chunk-XYA7W5IQ.js.map → chunk-LQ2ABFLI.js.map} +0 -0
- /package/dist/{chunk-YLA7NOSK.js.map → chunk-LUP26FMZ.js.map} +0 -0
- /package/dist/{chunk-M2BRITA3.js.map → chunk-MQUSJVER.js.map} +0 -0
- /package/dist/{chunk-GMLPL5P2.js.map → chunk-MYNI3CYT.js.map} +0 -0
- /package/dist/{chunk-V2PFGYOM.js.map → chunk-NBPA4PQD.js.map} +0 -0
- /package/dist/{chunk-K54QBTB6.js.map → chunk-NXJJZEUO.js.map} +0 -0
- /package/dist/{chunk-UGNUHVZP.js.map → chunk-PKSBCVNJ.js.map} +0 -0
- /package/dist/{chunk-NWIN6KOK.js.map → chunk-RBN4WXOA.js.map} +0 -0
- /package/dist/{chunk-5HLHFSTH.js.map → chunk-RXI5ONP7.js.map} +0 -0
- /package/dist/{chunk-6RIGFUZF.js.map → chunk-SAXMQ7TE.js.map} +0 -0
- /package/dist/{chunk-KCVJPSZF.js.map → chunk-SF2AK3JB.js.map} +0 -0
- /package/dist/{chunk-K6II2MEP.js.map → chunk-TFYQRAWT.js.map} +0 -0
- /package/dist/{chunk-WEIYBIV3.js.map → chunk-TZNJCTNQ.js.map} +0 -0
- /package/dist/{chunk-HLP36YBZ.js.map → chunk-U43BUJSN.js.map} +0 -0
- /package/dist/{chunk-P2BP7MJS.js.map → chunk-YOFRUVPJ.js.map} +0 -0
- /package/dist/{chunk-P67JWFPG.js.map → chunk-YPPYRLDF.js.map} +0 -0
- /package/dist/{chunk-BE7MNC7B.js.map → chunk-ZNY7MM2J.js.map} +0 -0
- /package/dist/{cli-circuit-breaker-G2P42V3H.js.map → cli-circuit-breaker-5IGBBD7R.js.map} +0 -0
- /package/dist/{composite-router-NZPVPGSN.js.map → composite-router-62KI56W6.js.map} +0 -0
- /package/dist/{consensus-vote-BTN37MRV.js.map → consensus-vote-M4ZELBV4.js.map} +0 -0
- /package/dist/{context-retriever-4SWGSINU.js.map → context-retriever-5UJC5KDZ.js.map} +0 -0
- /package/dist/{doctor-deep-SYEDHAPX.js.map → doctor-deep-7OR5MYMI.js.map} +0 -0
- /package/dist/{expert-bridge-6I34TGL7.js.map → expert-bridge-BNMCDENK.js.map} +0 -0
- /package/dist/{factory-2BGHWTMC.js.map → factory-77GX5DG4.js.map} +0 -0
- /package/dist/{factory-KKRPWZ2A.js.map → factory-QLW773DP.js.map} +0 -0
- /package/dist/{improvement-review-4RX6YUVD.js.map → improvement-review-KDM6OL25.js.map} +0 -0
- /package/dist/{init-opencode-CXUIMAUP.js.map → init-opencode-FXKABSGS.js.map} +0 -0
- /package/dist/{issue-triage-4VXHABBD.js.map → issue-triage-OVX4VSUN.js.map} +0 -0
- /package/dist/{pr-reviewer-helpers-5BOB2KK4.js.map → pr-reviewer-helpers-VGIBNZBX.js.map} +0 -0
- /package/dist/{registry-command-4PDAF4XP.js.map → registry-command-CGMRLZQ2.js.map} +0 -0
- /package/dist/{repo-security-plan-UMNW5FP6.js.map → repo-security-plan-TBCMGL5Z.js.map} +0 -0
- /package/dist/{research-helpers-synthesize-WYFSSCKX.js.map → research-helpers-synthesize-76ZZYWJ5.js.map} +0 -0
- /package/dist/{routing-memory-IMJPZUKI.js.map → routing-memory-PZ4LTLXJ.js.map} +0 -0
- /package/dist/{session-memory-XKJFKI6R.js.map → session-memory-C55R7LGY.js.map} +0 -0
- /package/dist/{setup-command-BPNKRJB2.js.map → setup-command-LUYHP5UY.js.map} +0 -0
- /package/dist/{setup-config-DHGAMWSI.js.map → setup-config-SMRMMT6Z.js.map} +0 -0
- /package/dist/{setup-custom-api-ESPG7XTX.js.map → setup-custom-api-42JXTJHU.js.map} +0 -0
- /package/dist/{tool-memory-VGEHRRGE.js.map → tool-memory-LCDNVPFI.js.map} +0 -0
- /package/dist/{unified-registry-GLVZZGSC.js.map → unified-registry-XEXWGKV5.js.map} +0 -0
- /package/dist/{weather-report-ITGCNNPJ.js.map → weather-report-DPADAXFN.js.map} +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
generateSecurityPlan
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-YOFRUVPJ.js";
|
|
4
4
|
import {
|
|
5
5
|
analyzeGitHubRepo
|
|
6
6
|
} from "./chunk-HFOQKCD2.js";
|
|
@@ -18,10 +18,10 @@ import {
|
|
|
18
18
|
DEFAULT_TASK_TTL_MS,
|
|
19
19
|
DEFAULT_TOOL_RATE_LIMITS,
|
|
20
20
|
clampTaskTtl
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-SAXMQ7TE.js";
|
|
22
22
|
import {
|
|
23
23
|
executeExpert
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-U43BUJSN.js";
|
|
25
25
|
import {
|
|
26
26
|
JobStatusSchema,
|
|
27
27
|
abortJob,
|
|
@@ -42,21 +42,21 @@ import {
|
|
|
42
42
|
simulationDeniedResult,
|
|
43
43
|
toJobSummary,
|
|
44
44
|
writeJobCancelled
|
|
45
|
-
} from "./chunk-
|
|
45
|
+
} from "./chunk-55NRU7SV.js";
|
|
46
46
|
import {
|
|
47
47
|
normalizeTopicToCanonical,
|
|
48
48
|
synthesizeResearch
|
|
49
|
-
} from "./chunk-
|
|
49
|
+
} from "./chunk-TFYQRAWT.js";
|
|
50
50
|
import {
|
|
51
51
|
IssueTriage
|
|
52
|
-
} from "./chunk-
|
|
52
|
+
} from "./chunk-CVLVWHXG.js";
|
|
53
53
|
import {
|
|
54
54
|
resolveEnvMode,
|
|
55
55
|
sanitizeInput
|
|
56
|
-
} from "./chunk-
|
|
56
|
+
} from "./chunk-TZNJCTNQ.js";
|
|
57
57
|
import {
|
|
58
58
|
withPrerequisite
|
|
59
|
-
} from "./chunk-
|
|
59
|
+
} from "./chunk-DUUMMELV.js";
|
|
60
60
|
import {
|
|
61
61
|
NOOP_NOTIFIER,
|
|
62
62
|
RateLimiter,
|
|
@@ -79,12 +79,12 @@ import {
|
|
|
79
79
|
withAuditTrail,
|
|
80
80
|
withProgressHeartbeat,
|
|
81
81
|
wrapToolWithTimeout
|
|
82
|
-
} from "./chunk-
|
|
82
|
+
} from "./chunk-3SMFRAX5.js";
|
|
83
83
|
import {
|
|
84
84
|
createAuditTrail,
|
|
85
85
|
createGraphAuditBridge,
|
|
86
86
|
emitPipelinePolicyEvent
|
|
87
|
-
} from "./chunk-
|
|
87
|
+
} from "./chunk-NBPA4PQD.js";
|
|
88
88
|
import {
|
|
89
89
|
addResearchPaper,
|
|
90
90
|
addSourceToRegistry,
|
|
@@ -112,15 +112,15 @@ import {
|
|
|
112
112
|
parseRegistry,
|
|
113
113
|
sourceExistsInRegistry,
|
|
114
114
|
summarizeContextForPrompt
|
|
115
|
-
} from "./chunk-
|
|
115
|
+
} from "./chunk-3GYRM7D6.js";
|
|
116
116
|
import {
|
|
117
117
|
getTokenEnvVars,
|
|
118
118
|
resolveToken
|
|
119
|
-
} from "./chunk-
|
|
119
|
+
} from "./chunk-JV64QX3Y.js";
|
|
120
120
|
import {
|
|
121
121
|
loadPapersRegistry,
|
|
122
122
|
loadTechniquesRegistry
|
|
123
|
-
} from "./chunk-
|
|
123
|
+
} from "./chunk-YPPYRLDF.js";
|
|
124
124
|
import {
|
|
125
125
|
resolveInsideRoot
|
|
126
126
|
} from "./chunk-NUBSJGQZ.js";
|
|
@@ -129,14 +129,14 @@ import {
|
|
|
129
129
|
MemoryImportance,
|
|
130
130
|
calculateTextJaccardSimilarity,
|
|
131
131
|
getToolMemory
|
|
132
|
-
} from "./chunk-
|
|
132
|
+
} from "./chunk-MQUSJVER.js";
|
|
133
133
|
import {
|
|
134
134
|
STOPWORDS,
|
|
135
135
|
truncateWithInfo
|
|
136
136
|
} from "./chunk-6T3EPABN.js";
|
|
137
137
|
import {
|
|
138
138
|
createSessionMemory
|
|
139
|
-
} from "./chunk-
|
|
139
|
+
} from "./chunk-LQ2ABFLI.js";
|
|
140
140
|
import {
|
|
141
141
|
BUILT_IN_EXPERTS,
|
|
142
142
|
BuiltInExpertTypeSchema,
|
|
@@ -151,7 +151,7 @@ import {
|
|
|
151
151
|
createEvent,
|
|
152
152
|
getGlobalEventBus,
|
|
153
153
|
getGlobalRegistry
|
|
154
|
-
} from "./chunk-
|
|
154
|
+
} from "./chunk-MYNI3CYT.js";
|
|
155
155
|
import {
|
|
156
156
|
CliDetectionCache,
|
|
157
157
|
asRecord,
|
|
@@ -159,19 +159,19 @@ import {
|
|
|
159
159
|
getAvailableClis,
|
|
160
160
|
sleep,
|
|
161
161
|
withTimeout
|
|
162
|
-
} from "./chunk-
|
|
162
|
+
} from "./chunk-IXZXG2MY.js";
|
|
163
163
|
import {
|
|
164
164
|
DEFAULTS
|
|
165
|
-
} from "./chunk-
|
|
165
|
+
} from "./chunk-6PYVTJZF.js";
|
|
166
166
|
import {
|
|
167
167
|
getAvailabilityCache,
|
|
168
168
|
getCliForModelId,
|
|
169
169
|
resolveFallback
|
|
170
|
-
} from "./chunk-
|
|
170
|
+
} from "./chunk-3HVF4BG4.js";
|
|
171
171
|
import {
|
|
172
172
|
generateHyphenId,
|
|
173
173
|
generateUUID
|
|
174
|
-
} from "./chunk-
|
|
174
|
+
} from "./chunk-33X5V4PL.js";
|
|
175
175
|
import {
|
|
176
176
|
AGENT_ROUTER_TIMEOUTS,
|
|
177
177
|
API_TIMEOUTS,
|
|
@@ -263,7 +263,7 @@ import {
|
|
|
263
263
|
selectStrategyByManifest,
|
|
264
264
|
toExpertTaskAnalysisResult,
|
|
265
265
|
withStep
|
|
266
|
-
} from "./chunk-
|
|
266
|
+
} from "./chunk-PZ3BB3PO.js";
|
|
267
267
|
import {
|
|
268
268
|
ensureLearningDir,
|
|
269
269
|
getMetaOutcomesFile,
|
|
@@ -26298,7 +26298,7 @@ function execIdFields(executionId) {
|
|
|
26298
26298
|
async function populateUnifiedContextOnState(state, options) {
|
|
26299
26299
|
const taskCandidate = state["task"];
|
|
26300
26300
|
if (typeof taskCandidate !== "string" || taskCandidate === "") return;
|
|
26301
|
-
const { getContextForTask: getContextForTask2, inferTaskCategory: inferTaskCategory2 } = await import("./context-retriever-
|
|
26301
|
+
const { getContextForTask: getContextForTask2, inferTaskCategory: inferTaskCategory2 } = await import("./context-retriever-5UJC5KDZ.js");
|
|
26302
26302
|
const category = inferTaskCategory2(taskCandidate);
|
|
26303
26303
|
const executionId = options?.executionId;
|
|
26304
26304
|
const execFields = execIdFields(executionId);
|
|
@@ -41580,7 +41580,7 @@ async function tryIssueTriage(task) {
|
|
|
41580
41580
|
try {
|
|
41581
41581
|
const issueMatch = task.match(/github\.com\/([^/]+\/[^/]+)\/issues\/(\d+)/);
|
|
41582
41582
|
if (issueMatch === null) return null;
|
|
41583
|
-
const { createIssueTriage } = await import("./issue-triage-
|
|
41583
|
+
const { createIssueTriage } = await import("./issue-triage-OVX4VSUN.js");
|
|
41584
41584
|
const triage = createIssueTriage();
|
|
41585
41585
|
const owner = issueMatch[1] ?? "";
|
|
41586
41586
|
const num = issueMatch[2] ?? "";
|
|
@@ -41608,7 +41608,7 @@ var VALID_TEMPLATES = /* @__PURE__ */ new Set([
|
|
|
41608
41608
|
]);
|
|
41609
41609
|
async function classifyWithLLM(task) {
|
|
41610
41610
|
try {
|
|
41611
|
-
const { executeExpert: executeExpert2 } = await import("./expert-bridge-
|
|
41611
|
+
const { executeExpert: executeExpert2 } = await import("./expert-bridge-BNMCDENK.js");
|
|
41612
41612
|
const prompt = [
|
|
41613
41613
|
"Classify this task into exactly one pipeline template.",
|
|
41614
41614
|
"Templates: dev (implementation/bug fix/refactor), research (investigate/evaluate/compare),",
|
|
@@ -43249,7 +43249,7 @@ var memoryInitPromise = null;
|
|
|
43249
43249
|
async function initPipelineMemory() {
|
|
43250
43250
|
if (cachedMemory !== null) return cachedMemory;
|
|
43251
43251
|
try {
|
|
43252
|
-
const { createSessionMemory: createSessionMemory2 } = await import("./session-memory-
|
|
43252
|
+
const { createSessionMemory: createSessionMemory2 } = await import("./session-memory-C55R7LGY.js");
|
|
43253
43253
|
const { getLearningDir } = await import("./learning-persistence-6D5GGT7D.js");
|
|
43254
43254
|
const mem = createSessionMemory2(getLearningDir());
|
|
43255
43255
|
mem.startSession(`pipeline-${String(getTimeProvider().now())}`);
|
|
@@ -43311,7 +43311,7 @@ function recordRoutingExperience(category, success, durationMs, tokensUsed = 0,
|
|
|
43311
43311
|
callRecord(routingMemoryCache);
|
|
43312
43312
|
return;
|
|
43313
43313
|
}
|
|
43314
|
-
routingMemoryInitPromise ??= import("./routing-memory-
|
|
43314
|
+
routingMemoryInitPromise ??= import("./routing-memory-PZ4LTLXJ.js").then(({ createRoutingMemory }) => {
|
|
43315
43315
|
routingMemoryCache ??= createRoutingMemory();
|
|
43316
43316
|
return routingMemoryCache;
|
|
43317
43317
|
}).catch((error) => {
|
|
@@ -43345,7 +43345,7 @@ ${text}` : "";
|
|
|
43345
43345
|
}
|
|
43346
43346
|
async function getWeatherContext() {
|
|
43347
43347
|
try {
|
|
43348
|
-
const { generateWeatherReport: generateWeatherReport2 } = await import("./weather-report-
|
|
43348
|
+
const { generateWeatherReport: generateWeatherReport2 } = await import("./weather-report-DPADAXFN.js");
|
|
43349
43349
|
const report = generateWeatherReport2({ includeAdaptive: true });
|
|
43350
43350
|
const mappings = "recommendedMappings" in report ? report.recommendedMappings : [];
|
|
43351
43351
|
if (!Array.isArray(mappings) || mappings.length === 0) return "";
|
|
@@ -43363,7 +43363,7 @@ ${lines}
|
|
|
43363
43363
|
}
|
|
43364
43364
|
async function getMemoryContext(task) {
|
|
43365
43365
|
try {
|
|
43366
|
-
const { createSessionMemory: createSessionMemory2 } = await import("./session-memory-
|
|
43366
|
+
const { createSessionMemory: createSessionMemory2 } = await import("./session-memory-C55R7LGY.js");
|
|
43367
43367
|
const { getLearningDir } = await import("./learning-persistence-6D5GGT7D.js");
|
|
43368
43368
|
const memory = createSessionMemory2(getLearningDir(), { maxLearningsInContext: 10 });
|
|
43369
43369
|
const learnings = memory.searchLearnings(task.slice(0, 200));
|
|
@@ -43478,7 +43478,7 @@ ${contextBlock}`;
|
|
|
43478
43478
|
const strategy = config.votingStrategy ?? "higher_order";
|
|
43479
43479
|
await postProgress(config, "Vote", `Running consensus with ${strategy} strategy...`);
|
|
43480
43480
|
try {
|
|
43481
|
-
const { executeVoting } = await import("./consensus-vote-
|
|
43481
|
+
const { executeVoting } = await import("./consensus-vote-M4ZELBV4.js");
|
|
43482
43482
|
const votingResult = await executeVoting(
|
|
43483
43483
|
{
|
|
43484
43484
|
proposal: buildVoteProposal(plan, research),
|
|
@@ -43919,7 +43919,7 @@ async function searchCodebaseForTask(task) {
|
|
|
43919
43919
|
}
|
|
43920
43920
|
async function queryResearchRegistry(task) {
|
|
43921
43921
|
try {
|
|
43922
|
-
const { synthesizeResearch: synthesizeResearch2 } = await import("./research-helpers-synthesize-
|
|
43922
|
+
const { synthesizeResearch: synthesizeResearch2 } = await import("./research-helpers-synthesize-76ZZYWJ5.js");
|
|
43923
43923
|
const topic = task.split(/[.!?\n]/).filter((s) => s.trim().length > 10)[0]?.trim();
|
|
43924
43924
|
if (topic === void 0) return null;
|
|
43925
43925
|
const result = await synthesizeResearch2(topic.slice(0, 50));
|
|
@@ -43990,7 +43990,7 @@ function createScanStageWrapper() {
|
|
|
43990
43990
|
try {
|
|
43991
43991
|
const slug = ctx.task.match(/([a-zA-Z0-9._-]+\/[a-zA-Z0-9._-]+)/)?.[1];
|
|
43992
43992
|
if (slug !== void 0) {
|
|
43993
|
-
const { generateSecurityPlan: generateSecurityPlan2 } = await import("./repo-security-plan-
|
|
43993
|
+
const { generateSecurityPlan: generateSecurityPlan2 } = await import("./repo-security-plan-TBCMGL5Z.js");
|
|
43994
43994
|
const plan = await generateSecurityPlan2({ repo: slug, maxScanners: 10 });
|
|
43995
43995
|
const recs = plan.recommendations.slice(0, 5).map((r) => `${r.priority}: ${r.displayName} (${r.category})`).join("; ");
|
|
43996
43996
|
return output(PIPELINE_STATE_KEYS.FINDINGS, recs, getTimeProvider().now() - start, true);
|
|
@@ -46950,7 +46950,7 @@ var GitHubTaskTracker = class {
|
|
|
46950
46950
|
cachedProvider = null;
|
|
46951
46951
|
async getProvider() {
|
|
46952
46952
|
if (this.cachedProvider !== null) return this.cachedProvider;
|
|
46953
|
-
const { createScmProvider } = await import("./factory-
|
|
46953
|
+
const { createScmProvider } = await import("./factory-QLW773DP.js");
|
|
46954
46954
|
const result = await createScmProvider({ repo: this.config.repo ?? "" });
|
|
46955
46955
|
if (!result.ok) throw new Error(`SCM provider error: ${result.error.message}`);
|
|
46956
46956
|
this.cachedProvider = result.value;
|
|
@@ -47757,7 +47757,7 @@ async function probeSource(source, includeModelIds) {
|
|
|
47757
47757
|
}
|
|
47758
47758
|
}
|
|
47759
47759
|
async function defaultSources(includeOpenRouter) {
|
|
47760
|
-
const { createAllAdapters: createAllAdapters2 } = await import("./factory-
|
|
47760
|
+
const { createAllAdapters: createAllAdapters2 } = await import("./factory-77GX5DG4.js");
|
|
47761
47761
|
const adapters = createAllAdapters2();
|
|
47762
47762
|
return buildDefaultModelSources(adapters, { includeOpenRouter });
|
|
47763
47763
|
}
|
|
@@ -51826,4 +51826,4 @@ export {
|
|
|
51826
51826
|
shutdownFeedbackSubscriber,
|
|
51827
51827
|
createEventBusBridge
|
|
51828
51828
|
};
|
|
51829
|
-
//# sourceMappingURL=chunk-
|
|
51829
|
+
//# sourceMappingURL=chunk-PKSBCVNJ.js.map
|
|
@@ -2619,7 +2619,7 @@ function setDefaultRegistry(registry) {
|
|
|
2619
2619
|
}
|
|
2620
2620
|
async function reloadDefaultRegistry() {
|
|
2621
2621
|
globalRegistry = buildDefaultRegistry();
|
|
2622
|
-
const { resetGlobalRegistry } = await import("./unified-registry-
|
|
2622
|
+
const { resetGlobalRegistry } = await import("./unified-registry-XEXWGKV5.js");
|
|
2623
2623
|
resetGlobalRegistry();
|
|
2624
2624
|
return globalRegistry;
|
|
2625
2625
|
}
|
|
@@ -7143,6 +7143,133 @@ function createPreferenceRouter(config, dataStore) {
|
|
|
7143
7143
|
|
|
7144
7144
|
// src/cli-adapters/zero-router-types.ts
|
|
7145
7145
|
import { z as z7 } from "zod";
|
|
7146
|
+
|
|
7147
|
+
// src/cli-adapters/derive-tier-tables.ts
|
|
7148
|
+
var CLI_ORDER = CLI_NAMES;
|
|
7149
|
+
var EXPENSIVE_SENTINEL = Number.MAX_SAFE_INTEGER;
|
|
7150
|
+
var RANK_MAX = 3;
|
|
7151
|
+
var RANK_MIN = 1;
|
|
7152
|
+
function compositeQuality(reasoning, codeGeneration) {
|
|
7153
|
+
return (reasoning + codeGeneration) / 2;
|
|
7154
|
+
}
|
|
7155
|
+
function normalizeBlendedPrice(blended) {
|
|
7156
|
+
return blended > 0 ? blended : EXPENSIVE_SENTINEL;
|
|
7157
|
+
}
|
|
7158
|
+
function readCliModelData() {
|
|
7159
|
+
const byId = new Map(buildInTreeEntries().map((e) => [e.id, e]));
|
|
7160
|
+
const out = {};
|
|
7161
|
+
for (const cli of CLI_ORDER) {
|
|
7162
|
+
const entry = byId.get(DEFAULT_MODEL_PER_CLI[cli]);
|
|
7163
|
+
const q = entry?.qualityScores;
|
|
7164
|
+
const pricing = entry?.pricing;
|
|
7165
|
+
const blended = pricing !== void 0 ? pricing.inputPer1M + pricing.outputPer1M : STATIC_CLI_COST_PER_1M[cli].input + STATIC_CLI_COST_PER_1M[cli].output;
|
|
7166
|
+
out[cli] = {
|
|
7167
|
+
quality: q !== void 0 ? compositeQuality(q.reasoning, q.codeGeneration) : void 0,
|
|
7168
|
+
price: normalizeBlendedPrice(blended),
|
|
7169
|
+
speed: q?.speed
|
|
7170
|
+
};
|
|
7171
|
+
}
|
|
7172
|
+
return out;
|
|
7173
|
+
}
|
|
7174
|
+
function scaleRank(value, min, max, invert) {
|
|
7175
|
+
if (max === min) return RANK_MAX;
|
|
7176
|
+
const t = (value - min) / (max - min);
|
|
7177
|
+
const norm = invert ? 1 - t : t;
|
|
7178
|
+
return RANK_MIN + norm * (RANK_MAX - RANK_MIN);
|
|
7179
|
+
}
|
|
7180
|
+
function buildQualityRank(data2) {
|
|
7181
|
+
const scored = CLI_ORDER.map((c) => data2[c].quality).filter((q) => q !== void 0);
|
|
7182
|
+
const min = scored.length > 0 ? Math.min(...scored) : 0;
|
|
7183
|
+
const max = scored.length > 0 ? Math.max(...scored) : 0;
|
|
7184
|
+
const out = {};
|
|
7185
|
+
for (const cli of CLI_ORDER) {
|
|
7186
|
+
const q = data2[cli].quality;
|
|
7187
|
+
out[cli] = q === void 0 ? 0 : scaleRank(q, min, max, false);
|
|
7188
|
+
}
|
|
7189
|
+
return out;
|
|
7190
|
+
}
|
|
7191
|
+
function buildCostRank(data2) {
|
|
7192
|
+
const prices = CLI_ORDER.map((c) => data2[c].price);
|
|
7193
|
+
const min = Math.min(...prices);
|
|
7194
|
+
const max = Math.max(...prices);
|
|
7195
|
+
const out = {};
|
|
7196
|
+
for (const cli of CLI_ORDER) {
|
|
7197
|
+
out[cli] = scaleRank(data2[cli].price, min, max, true);
|
|
7198
|
+
}
|
|
7199
|
+
return out;
|
|
7200
|
+
}
|
|
7201
|
+
function byDescThen(primary, secondary) {
|
|
7202
|
+
return (a, b) => {
|
|
7203
|
+
const p = primary(b) - primary(a);
|
|
7204
|
+
if (p !== 0) return p;
|
|
7205
|
+
const s = secondary(b) - secondary(a);
|
|
7206
|
+
if (s !== 0) return s;
|
|
7207
|
+
return CLI_ORDER.indexOf(a) - CLI_ORDER.indexOf(b);
|
|
7208
|
+
};
|
|
7209
|
+
}
|
|
7210
|
+
function buildTierToClis(data2) {
|
|
7211
|
+
const quality = buildQualityRank(data2);
|
|
7212
|
+
const cost = buildCostRank(data2);
|
|
7213
|
+
const speed = (c) => data2[c].speed ?? 0;
|
|
7214
|
+
const powerful = CLI_ORDER.filter((c) => data2[c].quality !== void 0).sort(
|
|
7215
|
+
byDescThen(
|
|
7216
|
+
(c) => quality[c],
|
|
7217
|
+
(c) => data2[c].price
|
|
7218
|
+
)
|
|
7219
|
+
);
|
|
7220
|
+
const fast = [...CLI_ORDER].sort(byDescThen(speed, (c) => cost[c]));
|
|
7221
|
+
const balanced = [...CLI_ORDER].sort(
|
|
7222
|
+
byDescThen(
|
|
7223
|
+
(c) => (quality[c] + cost[c]) / 2,
|
|
7224
|
+
(c) => cost[c]
|
|
7225
|
+
)
|
|
7226
|
+
);
|
|
7227
|
+
return { powerful, balanced, fast };
|
|
7228
|
+
}
|
|
7229
|
+
function buildConfidenceProfiles(data2) {
|
|
7230
|
+
const out = {};
|
|
7231
|
+
for (const cli of CLI_ORDER) {
|
|
7232
|
+
const datum = data2[cli];
|
|
7233
|
+
out[cli] = {
|
|
7234
|
+
simpleScore: (datum.speed ?? 0) / 10,
|
|
7235
|
+
complexScore: (datum.quality ?? 0) / 10
|
|
7236
|
+
};
|
|
7237
|
+
}
|
|
7238
|
+
return out;
|
|
7239
|
+
}
|
|
7240
|
+
function buildPremiumClis(data2) {
|
|
7241
|
+
const eligible = CLI_ORDER.filter(
|
|
7242
|
+
(c) => data2[c].quality !== void 0 && data2[c].price !== EXPENSIVE_SENTINEL
|
|
7243
|
+
);
|
|
7244
|
+
if (eligible.length === 0) return [];
|
|
7245
|
+
const maxPrice = Math.max(...eligible.map((c) => data2[c].price));
|
|
7246
|
+
return eligible.filter((c) => data2[c].price === maxPrice);
|
|
7247
|
+
}
|
|
7248
|
+
var cachedData;
|
|
7249
|
+
function data() {
|
|
7250
|
+
return cachedData ??= readCliModelData();
|
|
7251
|
+
}
|
|
7252
|
+
function deriveCliQualityRank() {
|
|
7253
|
+
return buildQualityRank(data());
|
|
7254
|
+
}
|
|
7255
|
+
function deriveCliCostRank() {
|
|
7256
|
+
return buildCostRank(data());
|
|
7257
|
+
}
|
|
7258
|
+
function deriveTierToClis() {
|
|
7259
|
+
return buildTierToClis(data());
|
|
7260
|
+
}
|
|
7261
|
+
function deriveCliConfidenceProfiles() {
|
|
7262
|
+
return buildConfidenceProfiles(data());
|
|
7263
|
+
}
|
|
7264
|
+
function deriveStrongClis() {
|
|
7265
|
+
return buildPremiumClis(data());
|
|
7266
|
+
}
|
|
7267
|
+
function deriveWeakClis() {
|
|
7268
|
+
const strong = new Set(deriveStrongClis());
|
|
7269
|
+
return CLI_ORDER.filter((c) => !strong.has(c));
|
|
7270
|
+
}
|
|
7271
|
+
|
|
7272
|
+
// src/cli-adapters/zero-router-types.ts
|
|
7146
7273
|
var DifficultyDimensionSchema = z7.enum([
|
|
7147
7274
|
"reasoning",
|
|
7148
7275
|
"knowledge",
|
|
@@ -7178,11 +7305,7 @@ var DEFAULT_DIFFICULTY_TO_TIER = {
|
|
|
7178
7305
|
medium: "balanced",
|
|
7179
7306
|
hard: "powerful"
|
|
7180
7307
|
};
|
|
7181
|
-
var DEFAULT_TIER_TO_CLIS =
|
|
7182
|
-
fast: ["gemini", "codex", "opencode", "claude"],
|
|
7183
|
-
balanced: ["codex", "opencode", "gemini", "claude"],
|
|
7184
|
-
powerful: ["claude", "codex", "opencode", "gemini"]
|
|
7185
|
-
};
|
|
7308
|
+
var DEFAULT_TIER_TO_CLIS = deriveTierToClis();
|
|
7186
7309
|
var DifficultyWeightsSchema = z7.object({
|
|
7187
7310
|
reasoning: z7.number().min(0).max(1),
|
|
7188
7311
|
knowledge: z7.number().min(0).max(1),
|
|
@@ -8057,16 +8180,7 @@ var SIMPLE_TASK_INDICATORS = [
|
|
|
8057
8180
|
];
|
|
8058
8181
|
|
|
8059
8182
|
// src/cli-adapters/routing/stages/confidence-cascade-stage.ts
|
|
8060
|
-
var CLI_CONFIDENCE_PROFILES =
|
|
8061
|
-
claude: { simpleScore: 0.7, complexScore: 1 },
|
|
8062
|
-
// Best for complex reasoning
|
|
8063
|
-
gemini: { simpleScore: 1, complexScore: 0.6 },
|
|
8064
|
-
// Fast for simple tasks
|
|
8065
|
-
codex: { simpleScore: 0.8, complexScore: 0.9 },
|
|
8066
|
-
// Good for code tasks
|
|
8067
|
-
opencode: { simpleScore: 0.8, complexScore: 0.7 }
|
|
8068
|
-
// Multi-provider proxy
|
|
8069
|
-
};
|
|
8183
|
+
var CLI_CONFIDENCE_PROFILES = deriveCliConfidenceProfiles();
|
|
8070
8184
|
var DEFAULT_CONFIG = {
|
|
8071
8185
|
escalationThreshold: 0.7,
|
|
8072
8186
|
complexityWeight: 0.3,
|
|
@@ -8554,18 +8668,8 @@ var DEFAULT_CONFIG4 = {
|
|
|
8554
8668
|
conservativeBoost: 5,
|
|
8555
8669
|
criticalBoost: 8
|
|
8556
8670
|
};
|
|
8557
|
-
var CLI_QUALITY_RANK =
|
|
8558
|
-
|
|
8559
|
-
codex: 2,
|
|
8560
|
-
opencode: 1.5,
|
|
8561
|
-
gemini: 1
|
|
8562
|
-
};
|
|
8563
|
-
var CLI_COST_RANK = {
|
|
8564
|
-
gemini: 3,
|
|
8565
|
-
codex: 2,
|
|
8566
|
-
opencode: 2,
|
|
8567
|
-
claude: 1
|
|
8568
|
-
};
|
|
8671
|
+
var CLI_QUALITY_RANK = deriveCliQualityRank();
|
|
8672
|
+
var CLI_COST_RANK = deriveCliCostRank();
|
|
8569
8673
|
function computeResourceTier(resourceLevel, config = DEFAULT_CONFIG4) {
|
|
8570
8674
|
if (resourceLevel >= config.aggressiveThreshold) return "aggressive";
|
|
8571
8675
|
if (resourceLevel >= config.balancedThreshold) return "balanced";
|
|
@@ -10114,8 +10218,8 @@ function buildReason(options) {
|
|
|
10114
10218
|
return parts.join(", ");
|
|
10115
10219
|
}
|
|
10116
10220
|
function filterByPreferenceTier(candidates, tier) {
|
|
10117
|
-
const strongModels =
|
|
10118
|
-
const weakModels =
|
|
10221
|
+
const strongModels = deriveStrongClis();
|
|
10222
|
+
const weakModels = deriveWeakClis();
|
|
10119
10223
|
const preferred = tier === "strong" ? strongModels : weakModels;
|
|
10120
10224
|
const filtered = candidates.filter((c) => preferred.includes(routingArmDisplaySlot(c)));
|
|
10121
10225
|
return filtered.length > 0 ? filtered : candidates;
|
|
@@ -10239,12 +10343,7 @@ function defaultZeroRouterStageResult(candidates) {
|
|
|
10239
10343
|
};
|
|
10240
10344
|
}
|
|
10241
10345
|
function filterByDifficultyTier(candidates, tier) {
|
|
10242
|
-
const
|
|
10243
|
-
fast: ["gemini", "codex", "claude"],
|
|
10244
|
-
balanced: ["codex", "gemini", "claude"],
|
|
10245
|
-
powerful: ["claude", "codex", "gemini"]
|
|
10246
|
-
};
|
|
10247
|
-
const preferred = tierPreferences[tier];
|
|
10346
|
+
const preferred = deriveTierToClis()[tier];
|
|
10248
10347
|
const sortedCandidates = [...candidates].sort((a, b) => {
|
|
10249
10348
|
const aIndex = preferred.indexOf(routingArmDisplaySlot(a));
|
|
10250
10349
|
const bIndex = preferred.indexOf(routingArmDisplaySlot(b));
|
|
@@ -14258,7 +14357,7 @@ var CompositeRouter = class _CompositeRouter {
|
|
|
14258
14357
|
*/
|
|
14259
14358
|
async consultUnifiedContext(task) {
|
|
14260
14359
|
try {
|
|
14261
|
-
const { getContextForTask, inferTaskCategory } = await import("./context-retriever-
|
|
14360
|
+
const { getContextForTask, inferTaskCategory } = await import("./context-retriever-5UJC5KDZ.js");
|
|
14262
14361
|
const ctx = await getContextForTask({
|
|
14263
14362
|
task: task.content,
|
|
14264
14363
|
category: inferTaskCategory(task.content),
|
|
@@ -15847,4 +15946,4 @@ export {
|
|
|
15847
15946
|
AgentCapability,
|
|
15848
15947
|
OrchestratorError
|
|
15849
15948
|
};
|
|
15850
|
-
//# sourceMappingURL=chunk-
|
|
15949
|
+
//# sourceMappingURL=chunk-PZ3BB3PO.js.map
|