nexus-agents 4.2.1 → 4.3.1
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-BV3OSP24.js → child-mcp-config-JTLIU3JR.js} +2 -2
- package/dist/{chunk-KVHA4AEF.js → chunk-2QYJ7IE2.js} +4 -4
- package/dist/{chunk-JRU5G6VW.js → chunk-3K3VGOY4.js} +2 -2
- package/dist/{chunk-BYDUN7A5.js → chunk-3P6N3XZF.js} +2 -2
- package/dist/{chunk-4O7TU6R3.js → chunk-4JKO5B7A.js} +2 -2
- package/dist/{chunk-JJEOBIOI.js → chunk-55XLIDEN.js} +2 -2
- package/dist/{chunk-ADIMVMAB.js → chunk-5GUP54YH.js} +2 -2
- package/dist/{chunk-6SBSQDCX.js → chunk-73U6W5ZU.js} +2 -2
- package/dist/{chunk-BMEJLPAE.js → chunk-A7DEF2I6.js} +3 -3
- package/dist/{chunk-5HPJB35V.js → chunk-AQAGVYWS.js} +2 -2
- package/dist/{chunk-VKLMXCI2.js → chunk-B6JICUQ6.js} +17 -4
- package/dist/chunk-B6JICUQ6.js.map +1 -0
- package/dist/{chunk-FRTNZUUF.js → chunk-CYCXJNPA.js} +2 -2
- package/dist/{chunk-HNC2G7AS.js → chunk-DL5RN53R.js} +2 -2
- package/dist/{chunk-FD3I5B4X.js → chunk-FHXDRCIW.js} +2 -2
- package/dist/{chunk-N7YLNXHT.js → chunk-H64DUJSZ.js} +6 -6
- package/dist/{chunk-EXX6WINJ.js → chunk-JV5HRP3S.js} +2 -2
- package/dist/{chunk-C3KZXEBR.js → chunk-KIWPXWL7.js} +4 -4
- package/dist/{chunk-O3AZI3X2.js → chunk-L7Z7ZLM5.js} +5 -5
- package/dist/{chunk-CNB4PA7Q.js → chunk-LGTY3B3Q.js} +5 -5
- package/dist/{chunk-AY6EN765.js → chunk-LSQ6TVSS.js} +35 -35
- package/dist/{chunk-PAGVGHWL.js → chunk-LWB4RR47.js} +14 -78
- package/dist/chunk-LWB4RR47.js.map +1 -0
- package/dist/{chunk-KLN7TJLT.js → chunk-MLR4PF64.js} +2 -2
- package/dist/{chunk-AMEVOGE7.js → chunk-MPCBYY4J.js} +8 -8
- package/dist/{chunk-CIQJIBGF.js → chunk-MPEQHP4D.js} +3 -3
- package/dist/{chunk-4Z2Z52C7.js → chunk-OYNZ6FCZ.js} +7 -7
- package/dist/{chunk-NZHI7FHX.js → chunk-ROAVF3S5.js} +5 -5
- package/dist/{chunk-4XWRSCZ2.js → chunk-SF6KSPBW.js} +3 -3
- package/dist/{chunk-S645LGB6.js → chunk-TKA6653I.js} +2 -2
- package/dist/{chunk-TN7HF2SQ.js → chunk-TMYLHKLJ.js} +12 -12
- package/dist/{chunk-U53YMCSE.js → chunk-UZUECKIV.js} +8 -8
- package/dist/{chunk-5DED5UHM.js → chunk-WX5TASVN.js} +3 -3
- package/dist/{chunk-2HCONJES.js → chunk-X57EI3U6.js} +2 -2
- package/dist/{chunk-3OM2W7H7.js → chunk-XABDFFQV.js} +2 -2
- package/dist/{chunk-UM376MEM.js → chunk-Y3WYSLFZ.js} +2 -2
- package/dist/{cli-circuit-breaker-NRGM3VBL.js → cli-circuit-breaker-DG2L4C3C.js} +3 -3
- package/dist/cli.js +41 -41
- package/dist/{composite-router-TSPOS57H.js → composite-router-X5QU6XNZ.js} +2 -2
- package/dist/{consensus-vote-ULN3XOCN.js → consensus-vote-3IHQNBNY.js} +16 -16
- package/dist/{context-retriever-SGJTQUCI.js → context-retriever-CIFLPUJA.js} +8 -8
- package/dist/{doctor-deep-33C5GGB3.js → doctor-deep-FZGNQXDZ.js} +3 -3
- package/dist/{doctor-live-XRIVOJLP.js → doctor-live-KGQWMYJY.js} +9 -9
- package/dist/{expert-bridge-UH44L5CN.js → expert-bridge-B6ZTEZNH.js} +4 -4
- package/dist/{factory-GUDAJED7.js → factory-5BEGXJVB.js} +9 -9
- package/dist/{factory-HYFTOF35.js → factory-RLGGFLYD.js} +5 -5
- package/dist/{improvement-review-HU7P73SL.js → improvement-review-52J36YLJ.js} +5 -5
- package/dist/index.d.ts +133 -56
- package/dist/index.js +30 -30
- package/dist/{init-opencode-PXLOY7XY.js → init-opencode-JAJXMGOI.js} +6 -6
- package/dist/issue-triage-APE6L5YP.js +17 -0
- package/dist/{pr-reviewer-helpers-QU4F2A3X.js → pr-reviewer-helpers-KZ4MNSUT.js} +4 -4
- package/dist/{registry-command-2LQLUUXG.js → registry-command-AHGSBCNL.js} +2 -2
- package/dist/{repo-security-plan-E2MTJPSC.js → repo-security-plan-C4ZSWVY7.js} +3 -3
- package/dist/{research-helpers-synthesize-4YBZF2LZ.js → research-helpers-synthesize-C4GK3GU4.js} +4 -4
- package/dist/{routing-memory-EIF5XALW.js → routing-memory-WU4C63BA.js} +2 -2
- package/dist/{session-memory-5GVHJR26.js → session-memory-LYX5N2IP.js} +3 -3
- package/dist/{setup-command-RS4NCQIB.js → setup-command-H4XOEBF5.js} +14 -14
- package/dist/{setup-config-PMGHQJ6O.js → setup-config-P722TC57.js} +3 -3
- package/dist/{setup-custom-api-JXXGF5QD.js → setup-custom-api-P7T5YKIK.js} +4 -4
- package/dist/{tool-memory-YFXJCJFI.js → tool-memory-AL5PXKB4.js} +5 -5
- package/dist/{unified-registry-OGXE4772.js → unified-registry-UM4GSYMB.js} +10 -10
- package/dist/{weather-report-FV6YYGT4.js → weather-report-QLHSZQOT.js} +2 -2
- package/package.json +1 -1
- package/dist/chunk-PAGVGHWL.js.map +0 -1
- package/dist/chunk-VKLMXCI2.js.map +0 -1
- package/dist/issue-triage-B3KU37U3.js +0 -17
- /package/dist/{child-mcp-config-BV3OSP24.js.map → child-mcp-config-JTLIU3JR.js.map} +0 -0
- /package/dist/{chunk-KVHA4AEF.js.map → chunk-2QYJ7IE2.js.map} +0 -0
- /package/dist/{chunk-JRU5G6VW.js.map → chunk-3K3VGOY4.js.map} +0 -0
- /package/dist/{chunk-BYDUN7A5.js.map → chunk-3P6N3XZF.js.map} +0 -0
- /package/dist/{chunk-4O7TU6R3.js.map → chunk-4JKO5B7A.js.map} +0 -0
- /package/dist/{chunk-JJEOBIOI.js.map → chunk-55XLIDEN.js.map} +0 -0
- /package/dist/{chunk-ADIMVMAB.js.map → chunk-5GUP54YH.js.map} +0 -0
- /package/dist/{chunk-6SBSQDCX.js.map → chunk-73U6W5ZU.js.map} +0 -0
- /package/dist/{chunk-BMEJLPAE.js.map → chunk-A7DEF2I6.js.map} +0 -0
- /package/dist/{chunk-5HPJB35V.js.map → chunk-AQAGVYWS.js.map} +0 -0
- /package/dist/{chunk-FRTNZUUF.js.map → chunk-CYCXJNPA.js.map} +0 -0
- /package/dist/{chunk-HNC2G7AS.js.map → chunk-DL5RN53R.js.map} +0 -0
- /package/dist/{chunk-FD3I5B4X.js.map → chunk-FHXDRCIW.js.map} +0 -0
- /package/dist/{chunk-N7YLNXHT.js.map → chunk-H64DUJSZ.js.map} +0 -0
- /package/dist/{chunk-EXX6WINJ.js.map → chunk-JV5HRP3S.js.map} +0 -0
- /package/dist/{chunk-C3KZXEBR.js.map → chunk-KIWPXWL7.js.map} +0 -0
- /package/dist/{chunk-O3AZI3X2.js.map → chunk-L7Z7ZLM5.js.map} +0 -0
- /package/dist/{chunk-CNB4PA7Q.js.map → chunk-LGTY3B3Q.js.map} +0 -0
- /package/dist/{chunk-AY6EN765.js.map → chunk-LSQ6TVSS.js.map} +0 -0
- /package/dist/{chunk-KLN7TJLT.js.map → chunk-MLR4PF64.js.map} +0 -0
- /package/dist/{chunk-AMEVOGE7.js.map → chunk-MPCBYY4J.js.map} +0 -0
- /package/dist/{chunk-CIQJIBGF.js.map → chunk-MPEQHP4D.js.map} +0 -0
- /package/dist/{chunk-4Z2Z52C7.js.map → chunk-OYNZ6FCZ.js.map} +0 -0
- /package/dist/{chunk-NZHI7FHX.js.map → chunk-ROAVF3S5.js.map} +0 -0
- /package/dist/{chunk-4XWRSCZ2.js.map → chunk-SF6KSPBW.js.map} +0 -0
- /package/dist/{chunk-S645LGB6.js.map → chunk-TKA6653I.js.map} +0 -0
- /package/dist/{chunk-TN7HF2SQ.js.map → chunk-TMYLHKLJ.js.map} +0 -0
- /package/dist/{chunk-U53YMCSE.js.map → chunk-UZUECKIV.js.map} +0 -0
- /package/dist/{chunk-5DED5UHM.js.map → chunk-WX5TASVN.js.map} +0 -0
- /package/dist/{chunk-2HCONJES.js.map → chunk-X57EI3U6.js.map} +0 -0
- /package/dist/{chunk-3OM2W7H7.js.map → chunk-XABDFFQV.js.map} +0 -0
- /package/dist/{chunk-UM376MEM.js.map → chunk-Y3WYSLFZ.js.map} +0 -0
- /package/dist/{cli-circuit-breaker-NRGM3VBL.js.map → cli-circuit-breaker-DG2L4C3C.js.map} +0 -0
- /package/dist/{composite-router-TSPOS57H.js.map → composite-router-X5QU6XNZ.js.map} +0 -0
- /package/dist/{consensus-vote-ULN3XOCN.js.map → consensus-vote-3IHQNBNY.js.map} +0 -0
- /package/dist/{context-retriever-SGJTQUCI.js.map → context-retriever-CIFLPUJA.js.map} +0 -0
- /package/dist/{doctor-deep-33C5GGB3.js.map → doctor-deep-FZGNQXDZ.js.map} +0 -0
- /package/dist/{doctor-live-XRIVOJLP.js.map → doctor-live-KGQWMYJY.js.map} +0 -0
- /package/dist/{expert-bridge-UH44L5CN.js.map → expert-bridge-B6ZTEZNH.js.map} +0 -0
- /package/dist/{factory-GUDAJED7.js.map → factory-5BEGXJVB.js.map} +0 -0
- /package/dist/{factory-HYFTOF35.js.map → factory-RLGGFLYD.js.map} +0 -0
- /package/dist/{improvement-review-HU7P73SL.js.map → improvement-review-52J36YLJ.js.map} +0 -0
- /package/dist/{init-opencode-PXLOY7XY.js.map → init-opencode-JAJXMGOI.js.map} +0 -0
- /package/dist/{issue-triage-B3KU37U3.js.map → issue-triage-APE6L5YP.js.map} +0 -0
- /package/dist/{pr-reviewer-helpers-QU4F2A3X.js.map → pr-reviewer-helpers-KZ4MNSUT.js.map} +0 -0
- /package/dist/{registry-command-2LQLUUXG.js.map → registry-command-AHGSBCNL.js.map} +0 -0
- /package/dist/{repo-security-plan-E2MTJPSC.js.map → repo-security-plan-C4ZSWVY7.js.map} +0 -0
- /package/dist/{research-helpers-synthesize-4YBZF2LZ.js.map → research-helpers-synthesize-C4GK3GU4.js.map} +0 -0
- /package/dist/{routing-memory-EIF5XALW.js.map → routing-memory-WU4C63BA.js.map} +0 -0
- /package/dist/{session-memory-5GVHJR26.js.map → session-memory-LYX5N2IP.js.map} +0 -0
- /package/dist/{setup-command-RS4NCQIB.js.map → setup-command-H4XOEBF5.js.map} +0 -0
- /package/dist/{setup-config-PMGHQJ6O.js.map → setup-config-P722TC57.js.map} +0 -0
- /package/dist/{setup-custom-api-JXXGF5QD.js.map → setup-custom-api-P7T5YKIK.js.map} +0 -0
- /package/dist/{tool-memory-YFXJCJFI.js.map → tool-memory-AL5PXKB4.js.map} +0 -0
- /package/dist/{unified-registry-OGXE4772.js.map → unified-registry-UM4GSYMB.js.map} +0 -0
- /package/dist/{weather-report-FV6YYGT4.js.map → weather-report-QLHSZQOT.js.map} +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
generateSecurityPlan
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-FHXDRCIW.js";
|
|
4
4
|
import {
|
|
5
5
|
analyzeGitHubRepo
|
|
6
6
|
} from "./chunk-HFOQKCD2.js";
|
|
@@ -22,10 +22,10 @@ import {
|
|
|
22
22
|
DEFAULT_TASK_TTL_MS,
|
|
23
23
|
DEFAULT_TOOL_RATE_LIMITS,
|
|
24
24
|
clampTaskTtl
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-UZUECKIV.js";
|
|
26
26
|
import {
|
|
27
27
|
executeExpert
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-OYNZ6FCZ.js";
|
|
29
29
|
import {
|
|
30
30
|
JobStatusSchema,
|
|
31
31
|
abortJob,
|
|
@@ -46,24 +46,24 @@ import {
|
|
|
46
46
|
simulationDeniedResult,
|
|
47
47
|
toJobSummary,
|
|
48
48
|
writeJobCancelled
|
|
49
|
-
} from "./chunk-
|
|
49
|
+
} from "./chunk-LWB4RR47.js";
|
|
50
50
|
import {
|
|
51
51
|
allOf
|
|
52
52
|
} from "./chunk-OQB3XC5O.js";
|
|
53
53
|
import {
|
|
54
54
|
normalizeTopicToCanonical,
|
|
55
55
|
synthesizeResearch
|
|
56
|
-
} from "./chunk-
|
|
56
|
+
} from "./chunk-A7DEF2I6.js";
|
|
57
57
|
import {
|
|
58
58
|
IssueTriage
|
|
59
|
-
} from "./chunk-
|
|
59
|
+
} from "./chunk-H64DUJSZ.js";
|
|
60
60
|
import {
|
|
61
61
|
resolveEnvMode,
|
|
62
62
|
sanitizeInput
|
|
63
|
-
} from "./chunk-
|
|
63
|
+
} from "./chunk-AQAGVYWS.js";
|
|
64
64
|
import {
|
|
65
65
|
withPrerequisite
|
|
66
|
-
} from "./chunk-
|
|
66
|
+
} from "./chunk-MPEQHP4D.js";
|
|
67
67
|
import {
|
|
68
68
|
NOOP_NOTIFIER,
|
|
69
69
|
RateLimiter,
|
|
@@ -87,18 +87,18 @@ import {
|
|
|
87
87
|
withAuditTrail,
|
|
88
88
|
withProgressHeartbeat,
|
|
89
89
|
wrapToolWithTimeout
|
|
90
|
-
} from "./chunk-
|
|
90
|
+
} from "./chunk-WX5TASVN.js";
|
|
91
91
|
import {
|
|
92
92
|
createAuditTrail,
|
|
93
93
|
createGraphAuditBridge,
|
|
94
94
|
emitPipelinePolicyEvent
|
|
95
|
-
} from "./chunk-
|
|
95
|
+
} from "./chunk-5GUP54YH.js";
|
|
96
96
|
import {
|
|
97
97
|
EventTopics,
|
|
98
98
|
createEvent,
|
|
99
99
|
getGlobalEventBus,
|
|
100
100
|
getGlobalRegistry
|
|
101
|
-
} from "./chunk-
|
|
101
|
+
} from "./chunk-B6JICUQ6.js";
|
|
102
102
|
import {
|
|
103
103
|
IDENTIFIER_RE,
|
|
104
104
|
LANG_VALUES,
|
|
@@ -131,31 +131,31 @@ import {
|
|
|
131
131
|
parseRegistry,
|
|
132
132
|
sourceExistsInRegistry,
|
|
133
133
|
summarizeContextForPrompt
|
|
134
|
-
} from "./chunk-
|
|
134
|
+
} from "./chunk-LGTY3B3Q.js";
|
|
135
135
|
import {
|
|
136
136
|
loadPapersRegistry,
|
|
137
137
|
loadTechniquesRegistry
|
|
138
|
-
} from "./chunk-
|
|
138
|
+
} from "./chunk-Y3WYSLFZ.js";
|
|
139
139
|
import {
|
|
140
140
|
resolveInsideRoot
|
|
141
141
|
} from "./chunk-NUBSJGQZ.js";
|
|
142
142
|
import {
|
|
143
143
|
getTokenEnvVars,
|
|
144
144
|
resolveToken
|
|
145
|
-
} from "./chunk-
|
|
145
|
+
} from "./chunk-XABDFFQV.js";
|
|
146
146
|
import {
|
|
147
147
|
DEFAULT_RELEVANCE_CONFIG,
|
|
148
148
|
MemoryImportance,
|
|
149
149
|
calculateTextJaccardSimilarity,
|
|
150
150
|
getToolMemory
|
|
151
|
-
} from "./chunk-
|
|
151
|
+
} from "./chunk-2QYJ7IE2.js";
|
|
152
152
|
import {
|
|
153
153
|
STOPWORDS,
|
|
154
154
|
truncateWithInfo
|
|
155
155
|
} from "./chunk-6T3EPABN.js";
|
|
156
156
|
import {
|
|
157
157
|
createSessionMemory
|
|
158
|
-
} from "./chunk-
|
|
158
|
+
} from "./chunk-3K3VGOY4.js";
|
|
159
159
|
import {
|
|
160
160
|
BUILT_IN_EXPERTS,
|
|
161
161
|
BuiltInExpertTypeSchema,
|
|
@@ -173,25 +173,25 @@ import {
|
|
|
173
173
|
getAvailableClis,
|
|
174
174
|
sleep,
|
|
175
175
|
withTimeout
|
|
176
|
-
} from "./chunk-
|
|
176
|
+
} from "./chunk-MPCBYY4J.js";
|
|
177
177
|
import {
|
|
178
178
|
BaseAdapter,
|
|
179
179
|
createStream,
|
|
180
180
|
requireApiKey,
|
|
181
181
|
validateApiKeyPresence
|
|
182
|
-
} from "./chunk-
|
|
182
|
+
} from "./chunk-MLR4PF64.js";
|
|
183
183
|
import {
|
|
184
184
|
DEFAULTS
|
|
185
|
-
} from "./chunk-
|
|
185
|
+
} from "./chunk-DL5RN53R.js";
|
|
186
186
|
import {
|
|
187
187
|
getAvailabilityCache,
|
|
188
188
|
getCliForModelId,
|
|
189
189
|
resolveFallback
|
|
190
|
-
} from "./chunk-
|
|
190
|
+
} from "./chunk-TKA6653I.js";
|
|
191
191
|
import {
|
|
192
192
|
generateHyphenId,
|
|
193
193
|
generateUUID
|
|
194
|
-
} from "./chunk-
|
|
194
|
+
} from "./chunk-CYCXJNPA.js";
|
|
195
195
|
import {
|
|
196
196
|
AGENT_ROUTER_TIMEOUTS,
|
|
197
197
|
API_TIMEOUTS,
|
|
@@ -291,7 +291,7 @@ import {
|
|
|
291
291
|
selectStrategyByManifest,
|
|
292
292
|
toExpertTaskAnalysisResult,
|
|
293
293
|
withStep
|
|
294
|
-
} from "./chunk-
|
|
294
|
+
} from "./chunk-TMYLHKLJ.js";
|
|
295
295
|
import {
|
|
296
296
|
ensureLearningDir,
|
|
297
297
|
getMetaOutcomesFile,
|
|
@@ -28244,7 +28244,7 @@ function execIdFields(executionId) {
|
|
|
28244
28244
|
async function populateUnifiedContextOnState(state, options) {
|
|
28245
28245
|
const taskCandidate = state["task"];
|
|
28246
28246
|
if (typeof taskCandidate !== "string" || taskCandidate === "") return;
|
|
28247
|
-
const { getContextForTask: getContextForTask2, inferTaskCategory: inferTaskCategory2 } = await import("./context-retriever-
|
|
28247
|
+
const { getContextForTask: getContextForTask2, inferTaskCategory: inferTaskCategory2 } = await import("./context-retriever-CIFLPUJA.js");
|
|
28248
28248
|
const category = inferTaskCategory2(taskCandidate);
|
|
28249
28249
|
const executionId = options?.executionId;
|
|
28250
28250
|
const execFields = execIdFields(executionId);
|
|
@@ -43929,7 +43929,7 @@ async function tryIssueTriage(task) {
|
|
|
43929
43929
|
try {
|
|
43930
43930
|
const issueMatch = task.match(/github\.com\/([^/]+\/[^/]+)\/issues\/(\d+)/);
|
|
43931
43931
|
if (issueMatch === null) return null;
|
|
43932
|
-
const { createIssueTriage } = await import("./issue-triage-
|
|
43932
|
+
const { createIssueTriage } = await import("./issue-triage-APE6L5YP.js");
|
|
43933
43933
|
const triage = createIssueTriage();
|
|
43934
43934
|
const owner = issueMatch[1] ?? "";
|
|
43935
43935
|
const num = issueMatch[2] ?? "";
|
|
@@ -43957,7 +43957,7 @@ var VALID_TEMPLATES = /* @__PURE__ */ new Set([
|
|
|
43957
43957
|
]);
|
|
43958
43958
|
async function classifyWithLLM(task) {
|
|
43959
43959
|
try {
|
|
43960
|
-
const { executeExpert: executeExpert2 } = await import("./expert-bridge-
|
|
43960
|
+
const { executeExpert: executeExpert2 } = await import("./expert-bridge-B6ZTEZNH.js");
|
|
43961
43961
|
const prompt = [
|
|
43962
43962
|
"Classify this task into exactly one pipeline template.",
|
|
43963
43963
|
"Templates: dev (implementation/bug fix/refactor), research (investigate/evaluate/compare),",
|
|
@@ -45698,7 +45698,7 @@ var memoryInitPromise = null;
|
|
|
45698
45698
|
async function initPipelineMemory() {
|
|
45699
45699
|
if (cachedMemory !== null) return cachedMemory;
|
|
45700
45700
|
try {
|
|
45701
|
-
const { createSessionMemory: createSessionMemory2 } = await import("./session-memory-
|
|
45701
|
+
const { createSessionMemory: createSessionMemory2 } = await import("./session-memory-LYX5N2IP.js");
|
|
45702
45702
|
const { getLearningDir } = await import("./learning-persistence-EGY4VKKO.js");
|
|
45703
45703
|
const mem = createSessionMemory2(getLearningDir());
|
|
45704
45704
|
mem.startSession(`pipeline-${String(getTimeProvider().now())}`);
|
|
@@ -45760,7 +45760,7 @@ function recordRoutingExperience(category, success, durationMs, tokensUsed = 0,
|
|
|
45760
45760
|
callRecord(routingMemoryCache);
|
|
45761
45761
|
return;
|
|
45762
45762
|
}
|
|
45763
|
-
routingMemoryInitPromise ??= import("./routing-memory-
|
|
45763
|
+
routingMemoryInitPromise ??= import("./routing-memory-WU4C63BA.js").then(({ createRoutingMemory }) => {
|
|
45764
45764
|
routingMemoryCache ??= createRoutingMemory();
|
|
45765
45765
|
return routingMemoryCache;
|
|
45766
45766
|
}).catch((error) => {
|
|
@@ -45794,7 +45794,7 @@ ${text}` : "";
|
|
|
45794
45794
|
}
|
|
45795
45795
|
async function getWeatherContext() {
|
|
45796
45796
|
try {
|
|
45797
|
-
const { generateWeatherReport: generateWeatherReport2 } = await import("./weather-report-
|
|
45797
|
+
const { generateWeatherReport: generateWeatherReport2 } = await import("./weather-report-QLHSZQOT.js");
|
|
45798
45798
|
const report = generateWeatherReport2({ includeAdaptive: true });
|
|
45799
45799
|
const mappings = "recommendedMappings" in report ? report.recommendedMappings : [];
|
|
45800
45800
|
if (!Array.isArray(mappings) || mappings.length === 0) return "";
|
|
@@ -45812,7 +45812,7 @@ ${lines}
|
|
|
45812
45812
|
}
|
|
45813
45813
|
async function getMemoryContext(task) {
|
|
45814
45814
|
try {
|
|
45815
|
-
const { createSessionMemory: createSessionMemory2 } = await import("./session-memory-
|
|
45815
|
+
const { createSessionMemory: createSessionMemory2 } = await import("./session-memory-LYX5N2IP.js");
|
|
45816
45816
|
const { getLearningDir } = await import("./learning-persistence-EGY4VKKO.js");
|
|
45817
45817
|
const memory = createSessionMemory2(getLearningDir(), { maxLearningsInContext: 10 });
|
|
45818
45818
|
const learnings = memory.searchLearnings(task.slice(0, 200));
|
|
@@ -45931,7 +45931,7 @@ ${contextBlock}`;
|
|
|
45931
45931
|
const strategy = config.votingStrategy ?? "higher_order";
|
|
45932
45932
|
await postProgress(config, "Vote", `Running consensus with ${strategy} strategy...`);
|
|
45933
45933
|
try {
|
|
45934
|
-
const { executeVoting } = await import("./consensus-vote-
|
|
45934
|
+
const { executeVoting } = await import("./consensus-vote-3IHQNBNY.js");
|
|
45935
45935
|
const votingResult = await executeVoting(
|
|
45936
45936
|
{
|
|
45937
45937
|
proposal: buildVoteProposal(plan, research),
|
|
@@ -46370,7 +46370,7 @@ async function searchCodebaseForTask(task) {
|
|
|
46370
46370
|
}
|
|
46371
46371
|
async function queryResearchRegistry(task) {
|
|
46372
46372
|
try {
|
|
46373
|
-
const { synthesizeResearch: synthesizeResearch2 } = await import("./research-helpers-synthesize-
|
|
46373
|
+
const { synthesizeResearch: synthesizeResearch2 } = await import("./research-helpers-synthesize-C4GK3GU4.js");
|
|
46374
46374
|
const topic = task.split(/[.!?\n]/).filter((s) => s.trim().length > 10)[0]?.trim();
|
|
46375
46375
|
if (topic === void 0) return null;
|
|
46376
46376
|
const result = await synthesizeResearch2(topic.slice(0, 50));
|
|
@@ -46441,7 +46441,7 @@ function createScanStageWrapper() {
|
|
|
46441
46441
|
try {
|
|
46442
46442
|
const slug = ctx.task.match(/([a-zA-Z0-9._-]+\/[a-zA-Z0-9._-]+)/)?.[1];
|
|
46443
46443
|
if (slug !== void 0) {
|
|
46444
|
-
const { generateSecurityPlan: generateSecurityPlan2 } = await import("./repo-security-plan-
|
|
46444
|
+
const { generateSecurityPlan: generateSecurityPlan2 } = await import("./repo-security-plan-C4ZSWVY7.js");
|
|
46445
46445
|
const plan = await generateSecurityPlan2({ repo: slug, maxScanners: 10 });
|
|
46446
46446
|
const recs = plan.recommendations.slice(0, 5).map((r) => `${r.priority}: ${r.displayName} (${r.category})`).join("; ");
|
|
46447
46447
|
return output(PIPELINE_STATE_KEYS.FINDINGS, recs, getTimeProvider().now() - start, true);
|
|
@@ -49564,7 +49564,7 @@ var GitHubTaskTracker = class {
|
|
|
49564
49564
|
cachedProvider = null;
|
|
49565
49565
|
async getProvider() {
|
|
49566
49566
|
if (this.cachedProvider !== null) return this.cachedProvider;
|
|
49567
|
-
const { createScmProvider } = await import("./factory-
|
|
49567
|
+
const { createScmProvider } = await import("./factory-RLGGFLYD.js");
|
|
49568
49568
|
const result = await createScmProvider({ repo: this.config.repo ?? "" });
|
|
49569
49569
|
if (!result.ok) throw new Error(`SCM provider error: ${result.error.message}`);
|
|
49570
49570
|
this.cachedProvider = result.value;
|
|
@@ -50455,7 +50455,7 @@ async function probeSource(source, includeModelIds) {
|
|
|
50455
50455
|
}
|
|
50456
50456
|
}
|
|
50457
50457
|
async function defaultSources(includeOpenRouter) {
|
|
50458
|
-
const { createAllAdapters: createAllAdapters2 } = await import("./factory-
|
|
50458
|
+
const { createAllAdapters: createAllAdapters2 } = await import("./factory-5BEGXJVB.js");
|
|
50459
50459
|
const adapters = createAllAdapters2();
|
|
50460
50460
|
return buildDefaultModelSources(adapters, { includeOpenRouter });
|
|
50461
50461
|
}
|
|
@@ -54497,4 +54497,4 @@ export {
|
|
|
54497
54497
|
shutdownFeedbackSubscriber,
|
|
54498
54498
|
createEventBusBridge
|
|
54499
54499
|
};
|
|
54500
|
-
//# sourceMappingURL=chunk-
|
|
54500
|
+
//# sourceMappingURL=chunk-LSQ6TVSS.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
computeCostDetail,
|
|
3
3
|
priceBasisOf
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-3P6N3XZF.js";
|
|
5
5
|
import {
|
|
6
6
|
allOf
|
|
7
7
|
} from "./chunk-OQB3XC5O.js";
|
|
@@ -22,20 +22,20 @@ import {
|
|
|
22
22
|
toolSuccess,
|
|
23
23
|
withProgressHeartbeat,
|
|
24
24
|
wrapToolWithTimeout
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-WX5TASVN.js";
|
|
26
26
|
import {
|
|
27
27
|
createEvent,
|
|
28
28
|
getGlobalRegistry
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-B6JICUQ6.js";
|
|
30
30
|
import {
|
|
31
31
|
getToolMemory
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-2QYJ7IE2.js";
|
|
33
33
|
import {
|
|
34
34
|
authRemediation,
|
|
35
35
|
delay,
|
|
36
36
|
getAvailableClis,
|
|
37
37
|
withTimeout
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-MPCBYY4J.js";
|
|
39
39
|
import {
|
|
40
40
|
AgentError,
|
|
41
41
|
CLI_NAMES,
|
|
@@ -64,7 +64,7 @@ import {
|
|
|
64
64
|
resolveClassGuardMs,
|
|
65
65
|
resolveModelIdentitySync,
|
|
66
66
|
resolveVoteTimeout
|
|
67
|
-
} from "./chunk-
|
|
67
|
+
} from "./chunk-TMYLHKLJ.js";
|
|
68
68
|
import {
|
|
69
69
|
ensureLearningDir,
|
|
70
70
|
getOutcomesFile
|
|
@@ -2657,8 +2657,6 @@ function createConsensusEngine(config, logger10) {
|
|
|
2657
2657
|
}
|
|
2658
2658
|
|
|
2659
2659
|
// src/consensus/quorum-validator.ts
|
|
2660
|
-
var DEFAULT_MIN_TRUST = 0.3;
|
|
2661
|
-
var DEFAULT_MIN_WEIGHT = 0.1;
|
|
2662
2660
|
var QuorumValidator = class {
|
|
2663
2661
|
logger;
|
|
2664
2662
|
constructor(logger10) {
|
|
@@ -2676,15 +2674,9 @@ var QuorumValidator = class {
|
|
|
2676
2674
|
return this.buildReachedResult(breakdown);
|
|
2677
2675
|
}
|
|
2678
2676
|
getQuorumBreakdown(input) {
|
|
2679
|
-
const { votes, agentWeights, config,
|
|
2677
|
+
const { votes, agentWeights, config, requiredParticipants } = input;
|
|
2680
2678
|
const voteCounts = this.countVotes(votes);
|
|
2681
|
-
const
|
|
2682
|
-
const { totalWeight, weightedCounts } = this.calculateWeights(
|
|
2683
|
-
votes,
|
|
2684
|
-
agentWeights,
|
|
2685
|
-
agentRecords,
|
|
2686
|
-
config
|
|
2687
|
-
);
|
|
2679
|
+
const { totalWeight, weightedCounts } = this.calculateWeights(votes, agentWeights, config);
|
|
2688
2680
|
const { threshold, actualQuorum, quorumReached, reasoning } = this.calculateQuorumStatus(
|
|
2689
2681
|
voteCounts,
|
|
2690
2682
|
weightedCounts,
|
|
@@ -2700,54 +2692,9 @@ var QuorumValidator = class {
|
|
|
2700
2692
|
threshold,
|
|
2701
2693
|
actualQuorum,
|
|
2702
2694
|
quorumReached,
|
|
2703
|
-
eligibleAgents,
|
|
2704
2695
|
reasoning
|
|
2705
2696
|
};
|
|
2706
2697
|
}
|
|
2707
|
-
/**
|
|
2708
|
-
* Decides whether an agent's vote counts, and with what weight.
|
|
2709
|
-
*
|
|
2710
|
-
* WIRING (#4666): this works and is tested, but **nothing in production can
|
|
2711
|
-
* reach an exclusion**. The three exclusion branches all require an
|
|
2712
|
-
* `AgentRecord`, and `getQuorumBreakdown`'s only production caller
|
|
2713
|
-
* (`voting-protocol-helpers`) passes `{ votes, config }` with no
|
|
2714
|
-
* `agentRecords` — `grep -rn agentRecords src --include=*.ts`, excluding
|
|
2715
|
-
* tests and this file, returns nothing. With no record the method returns
|
|
2716
|
-
* `{ eligible: true, weight: 1.0 }` on the first line.
|
|
2717
|
-
*
|
|
2718
|
-
* `enableByzantineDetection` additionally has zero writers anywhere in
|
|
2719
|
-
* `src/`: only this read and its declaration.
|
|
2720
|
-
*
|
|
2721
|
-
* So `eligibleAgents` is every voter, always. Do NOT read a full eligible
|
|
2722
|
-
* list as evidence that trust or Byzantine screening ran — nothing screened.
|
|
2723
|
-
* Wiring it needs a producer for `AgentRecord` (trust scores, Byzantine
|
|
2724
|
-
* flags), which the engine does not currently maintain.
|
|
2725
|
-
*
|
|
2726
|
-
* Kept rather than deleted: the behaviour is correct and covered by tests, so
|
|
2727
|
-
* this is unwired capability, not dead code. Removing a working trust model
|
|
2728
|
-
* is a decision about the resilience posture, not a cleanup — see #4666.
|
|
2729
|
-
*/
|
|
2730
|
-
isAgentEligible(agentId, record, config) {
|
|
2731
|
-
if (record === void 0) {
|
|
2732
|
-
return { eligible: true, weight: 1 };
|
|
2733
|
-
}
|
|
2734
|
-
if (config.enableByzantineDetection === true && (record.byzantineFlags ?? 0) > 0) {
|
|
2735
|
-
this.logger.debug("Agent flagged as Byzantine", { agentId, flags: record.byzantineFlags });
|
|
2736
|
-
return { eligible: false, reason: "byzantine_flagged", weight: record.weight };
|
|
2737
|
-
}
|
|
2738
|
-
if (record.trustScore < DEFAULT_MIN_TRUST) {
|
|
2739
|
-
this.logger.debug("Agent trust score below threshold", {
|
|
2740
|
-
agentId,
|
|
2741
|
-
trustScore: record.trustScore
|
|
2742
|
-
});
|
|
2743
|
-
return { eligible: false, reason: "low_trust", weight: record.weight };
|
|
2744
|
-
}
|
|
2745
|
-
if (record.weight < DEFAULT_MIN_WEIGHT) {
|
|
2746
|
-
this.logger.debug("Agent weight below threshold", { agentId, weight: record.weight });
|
|
2747
|
-
return { eligible: false, reason: "insufficient_weight", weight: record.weight };
|
|
2748
|
-
}
|
|
2749
|
-
return { eligible: true, weight: record.weight };
|
|
2750
|
-
}
|
|
2751
2698
|
countVotes(votes) {
|
|
2752
2699
|
let approve = 0;
|
|
2753
2700
|
let reject = 0;
|
|
@@ -2767,24 +2714,13 @@ var QuorumValidator = class {
|
|
|
2767
2714
|
}
|
|
2768
2715
|
return { approve, reject, abstain, total: votes.size };
|
|
2769
2716
|
}
|
|
2770
|
-
|
|
2771
|
-
const eligible = [];
|
|
2772
|
-
for (const agentId of votes.keys()) {
|
|
2773
|
-
const record = agentRecords?.get(agentId);
|
|
2774
|
-
const result = this.isAgentEligible(agentId, record, config);
|
|
2775
|
-
if (result.eligible) {
|
|
2776
|
-
eligible.push(agentId);
|
|
2777
|
-
}
|
|
2778
|
-
}
|
|
2779
|
-
return eligible;
|
|
2780
|
-
}
|
|
2781
|
-
calculateWeights(votes, agentWeights, agentRecords, config) {
|
|
2717
|
+
calculateWeights(votes, agentWeights, config) {
|
|
2782
2718
|
if (config.algorithm === "simple_majority" || config.algorithm === "unanimous") {
|
|
2783
2719
|
return { totalWeight: void 0, weightedCounts: void 0 };
|
|
2784
2720
|
}
|
|
2785
2721
|
const counts = { totalWeight: 0, approve: 0, reject: 0, abstain: 0 };
|
|
2786
2722
|
for (const [agentId, vote] of votes.entries()) {
|
|
2787
|
-
const weight = this.getVoteWeight(agentId, vote, agentWeights,
|
|
2723
|
+
const weight = this.getVoteWeight(agentId, vote, agentWeights, config);
|
|
2788
2724
|
counts.totalWeight += weight;
|
|
2789
2725
|
this.addWeightToDecision(counts, vote.decision, weight);
|
|
2790
2726
|
}
|
|
@@ -2798,8 +2734,8 @@ var QuorumValidator = class {
|
|
|
2798
2734
|
}
|
|
2799
2735
|
};
|
|
2800
2736
|
}
|
|
2801
|
-
getVoteWeight(agentId, vote, agentWeights,
|
|
2802
|
-
let weight = agentWeights?.get(agentId) ??
|
|
2737
|
+
getVoteWeight(agentId, vote, agentWeights, config) {
|
|
2738
|
+
let weight = agentWeights?.get(agentId) ?? 1;
|
|
2803
2739
|
if (config.confidenceMultiplier === true) {
|
|
2804
2740
|
weight *= vote.confidence;
|
|
2805
2741
|
}
|
|
@@ -6226,7 +6162,7 @@ async function processVotesWithCascade(engineVotes, opts) {
|
|
|
6226
6162
|
var CONTRARIAN_ESCALATION_THRESHOLD = 0.8;
|
|
6227
6163
|
async function runContrarianCheck(proposal, log) {
|
|
6228
6164
|
try {
|
|
6229
|
-
const { executeExpert } = await import("./expert-bridge-
|
|
6165
|
+
const { executeExpert } = await import("./expert-bridge-B6ZTEZNH.js");
|
|
6230
6166
|
const prompt = [
|
|
6231
6167
|
"You are a contrarian analyst. Your job is to find reasons this proposal should be REJECTED.",
|
|
6232
6168
|
"Look for: YAGNI (not needed), MISALIGNED (wrong tech/architecture), SECURITY_RISK, SCOPE_CREEP.",
|
|
@@ -6792,4 +6728,4 @@ export {
|
|
|
6792
6728
|
CONSENSUS_VOTE_TOOL_SCHEMA,
|
|
6793
6729
|
registerConsensusVoteTool
|
|
6794
6730
|
};
|
|
6795
|
-
//# sourceMappingURL=chunk-
|
|
6731
|
+
//# sourceMappingURL=chunk-LWB4RR47.js.map
|