nexus-agents 3.4.4 → 3.4.6
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-EXZDHJBP.js → child-mcp-config-RPGCCPR7.js} +2 -2
- package/dist/{chunk-U64WRZQ2.js → chunk-2KOTMA3Y.js} +2 -2
- package/dist/{chunk-DGMNPTPG.js → chunk-5542NZXG.js} +3 -3
- package/dist/{chunk-IHMUW7N5.js → chunk-6DDKUQFD.js} +2 -2
- package/dist/{chunk-7OVUQKM2.js → chunk-7BBHGO7A.js} +2 -2
- package/dist/{chunk-CYXQRAJ2.js → chunk-CG5TS6GJ.js} +5 -5
- package/dist/{chunk-YC3RAOU5.js → chunk-DXORNOYR.js} +2 -2
- package/dist/{chunk-NNBX6YZI.js → chunk-F4SOZWM5.js} +2 -2
- package/dist/{chunk-26NSVQ65.js → chunk-FBTBH65X.js} +43 -11
- package/dist/chunk-FBTBH65X.js.map +1 -0
- package/dist/{chunk-E6YS4KOL.js → chunk-FTH6XZFA.js} +2 -2
- package/dist/{chunk-UWVHFMU2.js → chunk-GMJGQ2XO.js} +4 -4
- package/dist/{chunk-7L7CUYAY.js → chunk-H5BWZMLU.js} +4 -4
- package/dist/{chunk-H3B6BSBZ.js → chunk-JHIKOTSP.js} +7 -7
- package/dist/{chunk-SSSGFNPA.js → chunk-KED7JA7R.js} +5 -5
- package/dist/{chunk-5QAGT56O.js → chunk-KJ2M2L6J.js} +2 -2
- package/dist/{chunk-SISWFC5K.js → chunk-OR2CJF3R.js} +5 -5
- package/dist/{chunk-EV42DVHG.js → chunk-PHEB64A5.js} +2 -2
- package/dist/{chunk-USO4TH6J.js → chunk-QITBS6CA.js} +8 -8
- package/dist/{chunk-HPQ6QOTI.js → chunk-RGAC3SAM.js} +5 -5
- package/dist/{chunk-7HDPHBKE.js → chunk-RSUQCA2E.js} +4 -4
- package/dist/{chunk-JEV6RUUH.js → chunk-SC522IDR.js} +3 -3
- package/dist/{chunk-JEV6RUUH.js.map → chunk-SC522IDR.js.map} +1 -1
- package/dist/{chunk-QZDWVJN6.js → chunk-SC7OLO76.js} +2 -2
- package/dist/{chunk-EB3LXFDK.js → chunk-TH6S5NMU.js} +42 -45
- package/dist/{chunk-EB3LXFDK.js.map → chunk-TH6S5NMU.js.map} +1 -1
- package/dist/{chunk-YWGMDZR4.js → chunk-TU25EPBM.js} +2 -2
- package/dist/{chunk-5ZSWBPUZ.js → chunk-UAPIH3ZX.js} +2 -2
- package/dist/{chunk-2KVTXC7Y.js → chunk-UOG5ANHL.js} +3 -3
- package/dist/{chunk-63EFLUVS.js → chunk-W4GN7VPG.js} +2 -2
- package/dist/{chunk-ZP5QHPDX.js → chunk-WGBVREBV.js} +2 -2
- package/dist/{chunk-FSDHFY3C.js → chunk-XND2FD6I.js} +2 -2
- package/dist/{chunk-MRSTTALY.js → chunk-YHSWBCZJ.js} +3 -3
- package/dist/{chunk-M4IFLNLT.js → chunk-YO2OXOPU.js} +2 -2
- package/dist/{chunk-G2C4WNK7.js → chunk-Z53SVS5A.js} +2 -2
- package/dist/{chunk-MIXVGFPI.js → chunk-ZBHLRTPM.js} +8 -8
- package/dist/{chunk-QJPR3Y4E.js → chunk-ZFLZL6JL.js} +8 -8
- package/dist/{cli-circuit-breaker-76YQJDYE.js → cli-circuit-breaker-PETQMWAX.js} +3 -3
- package/dist/cli.js +40 -40
- package/dist/{composite-router-2SGU5BWW.js → composite-router-D36RXDEN.js} +2 -2
- package/dist/{consensus-vote-OOJ6OWO7.js → consensus-vote-CVXD54KV.js} +16 -16
- package/dist/{context-retriever-MBGPFZA7.js → context-retriever-TCS3ZCHM.js} +8 -8
- package/dist/{doctor-deep-N7ZS6YNE.js → doctor-deep-KCBA7PRP.js} +3 -3
- package/dist/{expert-bridge-GSDGOVQT.js → expert-bridge-4N5Q5T6J.js} +4 -4
- package/dist/{factory-6AR32KPC.js → factory-ASP7H2N6.js} +9 -9
- package/dist/{factory-KBKFR56R.js → factory-KDJP6PLO.js} +5 -5
- package/dist/{improvement-review-YYHQ2D5L.js → improvement-review-5SWVO5KR.js} +5 -5
- package/dist/index.js +30 -30
- package/dist/{init-opencode-QBHHYWWF.js → init-opencode-Q6YEYFJK.js} +6 -6
- package/dist/{issue-triage-5JONYJ5X.js → issue-triage-AOTQZ7RB.js} +6 -6
- package/dist/{pr-reviewer-helpers-JMZOSZGY.js → pr-reviewer-helpers-GAXKDXOB.js} +4 -4
- package/dist/{registry-command-ZN2N6NB6.js → registry-command-AUHXXQMZ.js} +2 -2
- package/dist/{repo-security-plan-LM6CQJDK.js → repo-security-plan-EGRREARY.js} +3 -3
- package/dist/{research-helpers-synthesize-5T3WTCAR.js → research-helpers-synthesize-HBR26XOL.js} +4 -4
- package/dist/{routing-memory-WOYMTDXS.js → routing-memory-UJ6EC6HP.js} +2 -2
- package/dist/{session-memory-2E2RFJQO.js → session-memory-J47B6D5W.js} +3 -3
- package/dist/{setup-command-XKDWXPUK.js → setup-command-5KHJHIFM.js} +14 -14
- package/dist/{setup-config-GKSERLN5.js → setup-config-FTSQUTS7.js} +3 -3
- package/dist/{setup-custom-api-DWREDJNN.js → setup-custom-api-7FACD7AZ.js} +4 -4
- package/dist/{tool-memory-CHAKVXF5.js → tool-memory-HDV46HBY.js} +5 -5
- package/dist/{unified-registry-7WZ2BLIC.js → unified-registry-OOS6RFJT.js} +10 -10
- package/dist/{weather-report-UDBU5F52.js → weather-report-SMQFSLI4.js} +2 -2
- package/package.json +1 -1
- package/dist/chunk-26NSVQ65.js.map +0 -1
- /package/dist/{child-mcp-config-EXZDHJBP.js.map → child-mcp-config-RPGCCPR7.js.map} +0 -0
- /package/dist/{chunk-U64WRZQ2.js.map → chunk-2KOTMA3Y.js.map} +0 -0
- /package/dist/{chunk-DGMNPTPG.js.map → chunk-5542NZXG.js.map} +0 -0
- /package/dist/{chunk-IHMUW7N5.js.map → chunk-6DDKUQFD.js.map} +0 -0
- /package/dist/{chunk-7OVUQKM2.js.map → chunk-7BBHGO7A.js.map} +0 -0
- /package/dist/{chunk-CYXQRAJ2.js.map → chunk-CG5TS6GJ.js.map} +0 -0
- /package/dist/{chunk-YC3RAOU5.js.map → chunk-DXORNOYR.js.map} +0 -0
- /package/dist/{chunk-NNBX6YZI.js.map → chunk-F4SOZWM5.js.map} +0 -0
- /package/dist/{chunk-E6YS4KOL.js.map → chunk-FTH6XZFA.js.map} +0 -0
- /package/dist/{chunk-UWVHFMU2.js.map → chunk-GMJGQ2XO.js.map} +0 -0
- /package/dist/{chunk-7L7CUYAY.js.map → chunk-H5BWZMLU.js.map} +0 -0
- /package/dist/{chunk-H3B6BSBZ.js.map → chunk-JHIKOTSP.js.map} +0 -0
- /package/dist/{chunk-SSSGFNPA.js.map → chunk-KED7JA7R.js.map} +0 -0
- /package/dist/{chunk-5QAGT56O.js.map → chunk-KJ2M2L6J.js.map} +0 -0
- /package/dist/{chunk-SISWFC5K.js.map → chunk-OR2CJF3R.js.map} +0 -0
- /package/dist/{chunk-EV42DVHG.js.map → chunk-PHEB64A5.js.map} +0 -0
- /package/dist/{chunk-USO4TH6J.js.map → chunk-QITBS6CA.js.map} +0 -0
- /package/dist/{chunk-HPQ6QOTI.js.map → chunk-RGAC3SAM.js.map} +0 -0
- /package/dist/{chunk-7HDPHBKE.js.map → chunk-RSUQCA2E.js.map} +0 -0
- /package/dist/{chunk-QZDWVJN6.js.map → chunk-SC7OLO76.js.map} +0 -0
- /package/dist/{chunk-YWGMDZR4.js.map → chunk-TU25EPBM.js.map} +0 -0
- /package/dist/{chunk-5ZSWBPUZ.js.map → chunk-UAPIH3ZX.js.map} +0 -0
- /package/dist/{chunk-2KVTXC7Y.js.map → chunk-UOG5ANHL.js.map} +0 -0
- /package/dist/{chunk-63EFLUVS.js.map → chunk-W4GN7VPG.js.map} +0 -0
- /package/dist/{chunk-ZP5QHPDX.js.map → chunk-WGBVREBV.js.map} +0 -0
- /package/dist/{chunk-FSDHFY3C.js.map → chunk-XND2FD6I.js.map} +0 -0
- /package/dist/{chunk-MRSTTALY.js.map → chunk-YHSWBCZJ.js.map} +0 -0
- /package/dist/{chunk-M4IFLNLT.js.map → chunk-YO2OXOPU.js.map} +0 -0
- /package/dist/{chunk-G2C4WNK7.js.map → chunk-Z53SVS5A.js.map} +0 -0
- /package/dist/{chunk-MIXVGFPI.js.map → chunk-ZBHLRTPM.js.map} +0 -0
- /package/dist/{chunk-QJPR3Y4E.js.map → chunk-ZFLZL6JL.js.map} +0 -0
- /package/dist/{cli-circuit-breaker-76YQJDYE.js.map → cli-circuit-breaker-PETQMWAX.js.map} +0 -0
- /package/dist/{composite-router-2SGU5BWW.js.map → composite-router-D36RXDEN.js.map} +0 -0
- /package/dist/{consensus-vote-OOJ6OWO7.js.map → consensus-vote-CVXD54KV.js.map} +0 -0
- /package/dist/{context-retriever-MBGPFZA7.js.map → context-retriever-TCS3ZCHM.js.map} +0 -0
- /package/dist/{doctor-deep-N7ZS6YNE.js.map → doctor-deep-KCBA7PRP.js.map} +0 -0
- /package/dist/{expert-bridge-GSDGOVQT.js.map → expert-bridge-4N5Q5T6J.js.map} +0 -0
- /package/dist/{factory-6AR32KPC.js.map → factory-ASP7H2N6.js.map} +0 -0
- /package/dist/{factory-KBKFR56R.js.map → factory-KDJP6PLO.js.map} +0 -0
- /package/dist/{improvement-review-YYHQ2D5L.js.map → improvement-review-5SWVO5KR.js.map} +0 -0
- /package/dist/{init-opencode-QBHHYWWF.js.map → init-opencode-Q6YEYFJK.js.map} +0 -0
- /package/dist/{issue-triage-5JONYJ5X.js.map → issue-triage-AOTQZ7RB.js.map} +0 -0
- /package/dist/{pr-reviewer-helpers-JMZOSZGY.js.map → pr-reviewer-helpers-GAXKDXOB.js.map} +0 -0
- /package/dist/{registry-command-ZN2N6NB6.js.map → registry-command-AUHXXQMZ.js.map} +0 -0
- /package/dist/{repo-security-plan-LM6CQJDK.js.map → repo-security-plan-EGRREARY.js.map} +0 -0
- /package/dist/{research-helpers-synthesize-5T3WTCAR.js.map → research-helpers-synthesize-HBR26XOL.js.map} +0 -0
- /package/dist/{routing-memory-WOYMTDXS.js.map → routing-memory-UJ6EC6HP.js.map} +0 -0
- /package/dist/{session-memory-2E2RFJQO.js.map → session-memory-J47B6D5W.js.map} +0 -0
- /package/dist/{setup-command-XKDWXPUK.js.map → setup-command-5KHJHIFM.js.map} +0 -0
- /package/dist/{setup-config-GKSERLN5.js.map → setup-config-FTSQUTS7.js.map} +0 -0
- /package/dist/{setup-custom-api-DWREDJNN.js.map → setup-custom-api-7FACD7AZ.js.map} +0 -0
- /package/dist/{tool-memory-CHAKVXF5.js.map → tool-memory-HDV46HBY.js.map} +0 -0
- /package/dist/{unified-registry-7WZ2BLIC.js.map → unified-registry-OOS6RFJT.js.map} +0 -0
- /package/dist/{weather-report-UDBU5F52.js.map → weather-report-SMQFSLI4.js.map} +0 -0
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
MODEL_IDS,
|
|
4
4
|
getTimeProvider,
|
|
5
5
|
resolveModelIdentitySync
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-FBTBH65X.js";
|
|
7
7
|
|
|
8
8
|
// src/config/model-availability.ts
|
|
9
9
|
var DEFAULT_TTL_MS = 6e4;
|
|
@@ -150,4 +150,4 @@ export {
|
|
|
150
150
|
resetAvailabilityCache,
|
|
151
151
|
filterAvailableModels
|
|
152
152
|
};
|
|
153
|
-
//# sourceMappingURL=chunk-
|
|
153
|
+
//# sourceMappingURL=chunk-SC7OLO76.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
generateSecurityPlan
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-WGBVREBV.js";
|
|
4
4
|
import {
|
|
5
5
|
analyzeGitHubRepo
|
|
6
6
|
} from "./chunk-HFOQKCD2.js";
|
|
@@ -21,10 +21,10 @@ import {
|
|
|
21
21
|
DEFAULT_TASK_TTL_MS,
|
|
22
22
|
DEFAULT_TOOL_RATE_LIMITS,
|
|
23
23
|
clampTaskTtl
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-ZBHLRTPM.js";
|
|
25
25
|
import {
|
|
26
26
|
executeExpert
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-JHIKOTSP.js";
|
|
28
28
|
import {
|
|
29
29
|
JobStatusSchema,
|
|
30
30
|
abortJob,
|
|
@@ -45,21 +45,21 @@ import {
|
|
|
45
45
|
simulationDeniedResult,
|
|
46
46
|
toJobSummary,
|
|
47
47
|
writeJobCancelled
|
|
48
|
-
} from "./chunk-
|
|
48
|
+
} from "./chunk-QITBS6CA.js";
|
|
49
49
|
import {
|
|
50
50
|
normalizeTopicToCanonical,
|
|
51
51
|
synthesizeResearch
|
|
52
|
-
} from "./chunk-
|
|
52
|
+
} from "./chunk-YHSWBCZJ.js";
|
|
53
53
|
import {
|
|
54
54
|
IssueTriage
|
|
55
|
-
} from "./chunk-
|
|
55
|
+
} from "./chunk-OR2CJF3R.js";
|
|
56
56
|
import {
|
|
57
57
|
resolveEnvMode,
|
|
58
58
|
sanitizeInput
|
|
59
|
-
} from "./chunk-
|
|
59
|
+
} from "./chunk-Z53SVS5A.js";
|
|
60
60
|
import {
|
|
61
61
|
withPrerequisite
|
|
62
|
-
} from "./chunk-
|
|
62
|
+
} from "./chunk-SC522IDR.js";
|
|
63
63
|
import {
|
|
64
64
|
NOOP_NOTIFIER,
|
|
65
65
|
RateLimiter,
|
|
@@ -82,18 +82,18 @@ import {
|
|
|
82
82
|
withAuditTrail,
|
|
83
83
|
withProgressHeartbeat,
|
|
84
84
|
wrapToolWithTimeout
|
|
85
|
-
} from "./chunk-
|
|
85
|
+
} from "./chunk-UOG5ANHL.js";
|
|
86
86
|
import {
|
|
87
87
|
createAuditTrail,
|
|
88
88
|
createGraphAuditBridge,
|
|
89
89
|
emitPipelinePolicyEvent
|
|
90
|
-
} from "./chunk-
|
|
90
|
+
} from "./chunk-W4GN7VPG.js";
|
|
91
91
|
import {
|
|
92
92
|
EventTopics,
|
|
93
93
|
createEvent,
|
|
94
94
|
getGlobalEventBus,
|
|
95
95
|
getGlobalRegistry
|
|
96
|
-
} from "./chunk-
|
|
96
|
+
} from "./chunk-H5BWZMLU.js";
|
|
97
97
|
import {
|
|
98
98
|
IDENTIFIER_RE,
|
|
99
99
|
LANG_VALUES,
|
|
@@ -126,15 +126,15 @@ import {
|
|
|
126
126
|
parseRegistry,
|
|
127
127
|
sourceExistsInRegistry,
|
|
128
128
|
summarizeContextForPrompt
|
|
129
|
-
} from "./chunk-
|
|
129
|
+
} from "./chunk-RGAC3SAM.js";
|
|
130
130
|
import {
|
|
131
131
|
getTokenEnvVars,
|
|
132
132
|
resolveToken
|
|
133
|
-
} from "./chunk-
|
|
133
|
+
} from "./chunk-6DDKUQFD.js";
|
|
134
134
|
import {
|
|
135
135
|
loadPapersRegistry,
|
|
136
136
|
loadTechniquesRegistry
|
|
137
|
-
} from "./chunk-
|
|
137
|
+
} from "./chunk-YO2OXOPU.js";
|
|
138
138
|
import {
|
|
139
139
|
resolveInsideRoot
|
|
140
140
|
} from "./chunk-NUBSJGQZ.js";
|
|
@@ -143,14 +143,14 @@ import {
|
|
|
143
143
|
MemoryImportance,
|
|
144
144
|
calculateTextJaccardSimilarity,
|
|
145
145
|
getToolMemory
|
|
146
|
-
} from "./chunk-
|
|
146
|
+
} from "./chunk-RSUQCA2E.js";
|
|
147
147
|
import {
|
|
148
148
|
STOPWORDS,
|
|
149
149
|
truncateWithInfo
|
|
150
150
|
} from "./chunk-6T3EPABN.js";
|
|
151
151
|
import {
|
|
152
152
|
createSessionMemory
|
|
153
|
-
} from "./chunk-
|
|
153
|
+
} from "./chunk-DXORNOYR.js";
|
|
154
154
|
import {
|
|
155
155
|
BUILT_IN_EXPERTS,
|
|
156
156
|
BuiltInExpertTypeSchema,
|
|
@@ -168,25 +168,25 @@ import {
|
|
|
168
168
|
getAvailableClis,
|
|
169
169
|
sleep,
|
|
170
170
|
withTimeout
|
|
171
|
-
} from "./chunk-
|
|
171
|
+
} from "./chunk-ZFLZL6JL.js";
|
|
172
172
|
import {
|
|
173
173
|
BaseAdapter,
|
|
174
174
|
createStream,
|
|
175
175
|
requireApiKey,
|
|
176
176
|
validateApiKeyPresence
|
|
177
|
-
} from "./chunk-
|
|
177
|
+
} from "./chunk-PHEB64A5.js";
|
|
178
178
|
import {
|
|
179
179
|
DEFAULTS
|
|
180
|
-
} from "./chunk-
|
|
180
|
+
} from "./chunk-2KOTMA3Y.js";
|
|
181
181
|
import {
|
|
182
182
|
getAvailabilityCache,
|
|
183
183
|
getCliForModelId,
|
|
184
184
|
resolveFallback
|
|
185
|
-
} from "./chunk-
|
|
185
|
+
} from "./chunk-SC7OLO76.js";
|
|
186
186
|
import {
|
|
187
187
|
generateHyphenId,
|
|
188
188
|
generateUUID
|
|
189
|
-
} from "./chunk-
|
|
189
|
+
} from "./chunk-UAPIH3ZX.js";
|
|
190
190
|
import {
|
|
191
191
|
AGENT_ROUTER_TIMEOUTS,
|
|
192
192
|
API_TIMEOUTS,
|
|
@@ -246,6 +246,7 @@ import {
|
|
|
246
246
|
extractJsonArray,
|
|
247
247
|
extractJsonObject,
|
|
248
248
|
findCanonicalModel,
|
|
249
|
+
findMatchingKeyword,
|
|
249
250
|
formatPercentage,
|
|
250
251
|
formatZodError,
|
|
251
252
|
generateWeatherReport,
|
|
@@ -272,6 +273,7 @@ import {
|
|
|
272
273
|
isErr,
|
|
273
274
|
isRateLimitLikeError,
|
|
274
275
|
lookupInTreeCapability,
|
|
276
|
+
matchesAnyKeyword,
|
|
275
277
|
modelSupportsAll,
|
|
276
278
|
ok,
|
|
277
279
|
rankStrategiesByManifest,
|
|
@@ -283,7 +285,7 @@ import {
|
|
|
283
285
|
selectStrategyByManifest,
|
|
284
286
|
toExpertTaskAnalysisResult,
|
|
285
287
|
withStep
|
|
286
|
-
} from "./chunk-
|
|
288
|
+
} from "./chunk-FBTBH65X.js";
|
|
287
289
|
import {
|
|
288
290
|
ensureLearningDir,
|
|
289
291
|
getMetaOutcomesFile,
|
|
@@ -28353,7 +28355,7 @@ function execIdFields(executionId) {
|
|
|
28353
28355
|
async function populateUnifiedContextOnState(state, options) {
|
|
28354
28356
|
const taskCandidate = state["task"];
|
|
28355
28357
|
if (typeof taskCandidate !== "string" || taskCandidate === "") return;
|
|
28356
|
-
const { getContextForTask: getContextForTask2, inferTaskCategory: inferTaskCategory2 } = await import("./context-retriever-
|
|
28358
|
+
const { getContextForTask: getContextForTask2, inferTaskCategory: inferTaskCategory2 } = await import("./context-retriever-TCS3ZCHM.js");
|
|
28357
28359
|
const category = inferTaskCategory2(taskCandidate);
|
|
28358
28360
|
const executionId = options?.executionId;
|
|
28359
28361
|
const execFields = execIdFields(executionId);
|
|
@@ -36516,9 +36518,8 @@ function detectGovernanceDomain(params) {
|
|
|
36516
36518
|
for (const field of textFields) {
|
|
36517
36519
|
const value = params[field];
|
|
36518
36520
|
if (typeof value !== "string") continue;
|
|
36519
|
-
|
|
36520
|
-
if (
|
|
36521
|
-
if (ARCHITECTURE_KEYWORDS.some((kw) => lower.includes(kw))) return "architecture";
|
|
36521
|
+
if (matchesAnyKeyword(value, SECURITY_KEYWORDS)) return "security";
|
|
36522
|
+
if (matchesAnyKeyword(value, ARCHITECTURE_KEYWORDS)) return "architecture";
|
|
36522
36523
|
}
|
|
36523
36524
|
return "none";
|
|
36524
36525
|
}
|
|
@@ -36531,20 +36532,16 @@ function buildPromotionReason(domain, params) {
|
|
|
36531
36532
|
for (const field of textFields) {
|
|
36532
36533
|
const value = params[field];
|
|
36533
36534
|
if (typeof value !== "string") continue;
|
|
36534
|
-
const keyword =
|
|
36535
|
+
const keyword = findMatchingKeyword2(value, domain);
|
|
36535
36536
|
if (keyword !== null) {
|
|
36536
36537
|
return `${domain} governance: keyword "${keyword}" detected, requires ${DOMAIN_THRESHOLDS[domain] ?? "majority"} voting`;
|
|
36537
36538
|
}
|
|
36538
36539
|
}
|
|
36539
36540
|
return `${domain} governance: requires ${DOMAIN_THRESHOLDS[domain] ?? "majority"} voting`;
|
|
36540
36541
|
}
|
|
36541
|
-
function
|
|
36542
|
-
const lower = text.toLowerCase();
|
|
36542
|
+
function findMatchingKeyword2(text, domain) {
|
|
36543
36543
|
const keywords = domain === "security" ? SECURITY_KEYWORDS : ARCHITECTURE_KEYWORDS;
|
|
36544
|
-
|
|
36545
|
-
if (lower.includes(kw)) return kw;
|
|
36546
|
-
}
|
|
36547
|
-
return null;
|
|
36544
|
+
return findMatchingKeyword(text, keywords) ?? null;
|
|
36548
36545
|
}
|
|
36549
36546
|
|
|
36550
36547
|
// src/mcp/tools/delegate-to-model.ts
|
|
@@ -43889,7 +43886,7 @@ async function tryIssueTriage(task) {
|
|
|
43889
43886
|
try {
|
|
43890
43887
|
const issueMatch = task.match(/github\.com\/([^/]+\/[^/]+)\/issues\/(\d+)/);
|
|
43891
43888
|
if (issueMatch === null) return null;
|
|
43892
|
-
const { createIssueTriage } = await import("./issue-triage-
|
|
43889
|
+
const { createIssueTriage } = await import("./issue-triage-AOTQZ7RB.js");
|
|
43893
43890
|
const triage = createIssueTriage();
|
|
43894
43891
|
const owner = issueMatch[1] ?? "";
|
|
43895
43892
|
const num = issueMatch[2] ?? "";
|
|
@@ -43917,7 +43914,7 @@ var VALID_TEMPLATES = /* @__PURE__ */ new Set([
|
|
|
43917
43914
|
]);
|
|
43918
43915
|
async function classifyWithLLM(task) {
|
|
43919
43916
|
try {
|
|
43920
|
-
const { executeExpert: executeExpert2 } = await import("./expert-bridge-
|
|
43917
|
+
const { executeExpert: executeExpert2 } = await import("./expert-bridge-4N5Q5T6J.js");
|
|
43921
43918
|
const prompt = [
|
|
43922
43919
|
"Classify this task into exactly one pipeline template.",
|
|
43923
43920
|
"Templates: dev (implementation/bug fix/refactor), research (investigate/evaluate/compare),",
|
|
@@ -45558,7 +45555,7 @@ var memoryInitPromise = null;
|
|
|
45558
45555
|
async function initPipelineMemory() {
|
|
45559
45556
|
if (cachedMemory !== null) return cachedMemory;
|
|
45560
45557
|
try {
|
|
45561
|
-
const { createSessionMemory: createSessionMemory2 } = await import("./session-memory-
|
|
45558
|
+
const { createSessionMemory: createSessionMemory2 } = await import("./session-memory-J47B6D5W.js");
|
|
45562
45559
|
const { getLearningDir } = await import("./learning-persistence-EGY4VKKO.js");
|
|
45563
45560
|
const mem = createSessionMemory2(getLearningDir());
|
|
45564
45561
|
mem.startSession(`pipeline-${String(getTimeProvider().now())}`);
|
|
@@ -45620,7 +45617,7 @@ function recordRoutingExperience(category, success, durationMs, tokensUsed = 0,
|
|
|
45620
45617
|
callRecord(routingMemoryCache);
|
|
45621
45618
|
return;
|
|
45622
45619
|
}
|
|
45623
|
-
routingMemoryInitPromise ??= import("./routing-memory-
|
|
45620
|
+
routingMemoryInitPromise ??= import("./routing-memory-UJ6EC6HP.js").then(({ createRoutingMemory }) => {
|
|
45624
45621
|
routingMemoryCache ??= createRoutingMemory();
|
|
45625
45622
|
return routingMemoryCache;
|
|
45626
45623
|
}).catch((error) => {
|
|
@@ -45654,7 +45651,7 @@ ${text}` : "";
|
|
|
45654
45651
|
}
|
|
45655
45652
|
async function getWeatherContext() {
|
|
45656
45653
|
try {
|
|
45657
|
-
const { generateWeatherReport: generateWeatherReport2 } = await import("./weather-report-
|
|
45654
|
+
const { generateWeatherReport: generateWeatherReport2 } = await import("./weather-report-SMQFSLI4.js");
|
|
45658
45655
|
const report = generateWeatherReport2({ includeAdaptive: true });
|
|
45659
45656
|
const mappings = "recommendedMappings" in report ? report.recommendedMappings : [];
|
|
45660
45657
|
if (!Array.isArray(mappings) || mappings.length === 0) return "";
|
|
@@ -45672,7 +45669,7 @@ ${lines}
|
|
|
45672
45669
|
}
|
|
45673
45670
|
async function getMemoryContext(task) {
|
|
45674
45671
|
try {
|
|
45675
|
-
const { createSessionMemory: createSessionMemory2 } = await import("./session-memory-
|
|
45672
|
+
const { createSessionMemory: createSessionMemory2 } = await import("./session-memory-J47B6D5W.js");
|
|
45676
45673
|
const { getLearningDir } = await import("./learning-persistence-EGY4VKKO.js");
|
|
45677
45674
|
const memory = createSessionMemory2(getLearningDir(), { maxLearningsInContext: 10 });
|
|
45678
45675
|
const learnings = memory.searchLearnings(task.slice(0, 200));
|
|
@@ -45787,7 +45784,7 @@ ${contextBlock}`;
|
|
|
45787
45784
|
const strategy = config.votingStrategy ?? "higher_order";
|
|
45788
45785
|
await postProgress(config, "Vote", `Running consensus with ${strategy} strategy...`);
|
|
45789
45786
|
try {
|
|
45790
|
-
const { executeVoting } = await import("./consensus-vote-
|
|
45787
|
+
const { executeVoting } = await import("./consensus-vote-CVXD54KV.js");
|
|
45791
45788
|
const votingResult = await executeVoting(
|
|
45792
45789
|
{
|
|
45793
45790
|
proposal: buildVoteProposal(plan, research),
|
|
@@ -46228,7 +46225,7 @@ async function searchCodebaseForTask(task) {
|
|
|
46228
46225
|
}
|
|
46229
46226
|
async function queryResearchRegistry(task) {
|
|
46230
46227
|
try {
|
|
46231
|
-
const { synthesizeResearch: synthesizeResearch2 } = await import("./research-helpers-synthesize-
|
|
46228
|
+
const { synthesizeResearch: synthesizeResearch2 } = await import("./research-helpers-synthesize-HBR26XOL.js");
|
|
46232
46229
|
const topic = task.split(/[.!?\n]/).filter((s) => s.trim().length > 10)[0]?.trim();
|
|
46233
46230
|
if (topic === void 0) return null;
|
|
46234
46231
|
const result = await synthesizeResearch2(topic.slice(0, 50));
|
|
@@ -46299,7 +46296,7 @@ function createScanStageWrapper() {
|
|
|
46299
46296
|
try {
|
|
46300
46297
|
const slug = ctx.task.match(/([a-zA-Z0-9._-]+\/[a-zA-Z0-9._-]+)/)?.[1];
|
|
46301
46298
|
if (slug !== void 0) {
|
|
46302
|
-
const { generateSecurityPlan: generateSecurityPlan2 } = await import("./repo-security-plan-
|
|
46299
|
+
const { generateSecurityPlan: generateSecurityPlan2 } = await import("./repo-security-plan-EGRREARY.js");
|
|
46303
46300
|
const plan = await generateSecurityPlan2({ repo: slug, maxScanners: 10 });
|
|
46304
46301
|
const recs = plan.recommendations.slice(0, 5).map((r) => `${r.priority}: ${r.displayName} (${r.category})`).join("; ");
|
|
46305
46302
|
return output(PIPELINE_STATE_KEYS.FINDINGS, recs, getTimeProvider().now() - start, true);
|
|
@@ -49304,7 +49301,7 @@ var GitHubTaskTracker = class {
|
|
|
49304
49301
|
cachedProvider = null;
|
|
49305
49302
|
async getProvider() {
|
|
49306
49303
|
if (this.cachedProvider !== null) return this.cachedProvider;
|
|
49307
|
-
const { createScmProvider } = await import("./factory-
|
|
49304
|
+
const { createScmProvider } = await import("./factory-KDJP6PLO.js");
|
|
49308
49305
|
const result = await createScmProvider({ repo: this.config.repo ?? "" });
|
|
49309
49306
|
if (!result.ok) throw new Error(`SCM provider error: ${result.error.message}`);
|
|
49310
49307
|
this.cachedProvider = result.value;
|
|
@@ -50146,7 +50143,7 @@ async function probeSource(source, includeModelIds) {
|
|
|
50146
50143
|
}
|
|
50147
50144
|
}
|
|
50148
50145
|
async function defaultSources(includeOpenRouter) {
|
|
50149
|
-
const { createAllAdapters: createAllAdapters2 } = await import("./factory-
|
|
50146
|
+
const { createAllAdapters: createAllAdapters2 } = await import("./factory-ASP7H2N6.js");
|
|
50150
50147
|
const adapters = createAllAdapters2();
|
|
50151
50148
|
return buildDefaultModelSources(adapters, { includeOpenRouter });
|
|
50152
50149
|
}
|
|
@@ -54166,4 +54163,4 @@ export {
|
|
|
54166
54163
|
shutdownFeedbackSubscriber,
|
|
54167
54164
|
createEventBusBridge
|
|
54168
54165
|
};
|
|
54169
|
-
//# sourceMappingURL=chunk-
|
|
54166
|
+
//# sourceMappingURL=chunk-TH6S5NMU.js.map
|