nexus-agents 2.89.0 → 2.89.2
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-AT2L3EAS.js → child-mcp-config-WUHKXBWX.js} +2 -2
- package/dist/{chunk-JHU27PB2.js → chunk-2SMTCNXP.js} +2 -2
- package/dist/{chunk-O5F6QAIG.js → chunk-3FVSYMHK.js} +2 -2
- package/dist/{chunk-SRTQUTCB.js → chunk-3HTUYAKS.js} +2 -2
- package/dist/{chunk-LENO7TKE.js → chunk-3LKW4IEW.js} +3 -3
- package/dist/{chunk-WOGMMJUI.js → chunk-44XYCZCU.js} +27 -27
- package/dist/{chunk-W7YR5SGV.js → chunk-4GOT42ZA.js} +3 -3
- package/dist/{chunk-QA6YV4YF.js → chunk-4N54BTZU.js} +19 -18
- package/dist/chunk-4N54BTZU.js.map +1 -0
- package/dist/{chunk-F5GVZBSH.js → chunk-52ACUN6T.js} +4 -4
- package/dist/{chunk-WF2YOYY7.js → chunk-57HMLBYN.js} +2 -2
- package/dist/{chunk-SCT26VWJ.js → chunk-5X7GAOVZ.js} +7 -7
- package/dist/{chunk-PS7WKRJN.js → chunk-6Q33PBXC.js} +2 -2
- package/dist/{chunk-SI7ZBCGU.js → chunk-7QXEK3O6.js} +56 -6
- package/dist/{chunk-SI7ZBCGU.js.map → chunk-7QXEK3O6.js.map} +1 -1
- package/dist/{chunk-LZECDSJY.js → chunk-AQTHLUCP.js} +2 -2
- package/dist/{chunk-KR6UR263.js → chunk-CGSVTROC.js} +2 -2
- package/dist/{chunk-3MYPFPYL.js → chunk-E6W4Z6GN.js} +3 -3
- package/dist/{chunk-QCZEC7H4.js → chunk-EAT4GTMT.js} +2 -2
- package/dist/{chunk-XV7V3B35.js → chunk-EFHZHCF2.js} +2 -2
- package/dist/{chunk-O5OJNB4C.js → chunk-IOXR6W24.js} +3 -3
- package/dist/{chunk-AKO5H63G.js → chunk-JYIKPBXW.js} +2 -2
- package/dist/{chunk-WWY6V4NK.js → chunk-PRGNJRID.js} +2 -2
- package/dist/{chunk-EUMVRLJL.js → chunk-S6FXRXYE.js} +7 -7
- package/dist/{chunk-46AUVU6N.js → chunk-SCZOD5XC.js} +5 -5
- package/dist/{chunk-MHPOJAPZ.js → chunk-SFZESA5O.js} +2 -2
- package/dist/{chunk-GRTSPRIJ.js → chunk-TWAH7VM2.js} +3 -3
- package/dist/{chunk-MVGFF4OY.js → chunk-W5I6L4UT.js} +7 -3
- package/dist/{chunk-MVGFF4OY.js.map → chunk-W5I6L4UT.js.map} +1 -1
- package/dist/{chunk-MKKQ3CQJ.js → chunk-X5BQF6HM.js} +4 -4
- package/dist/{chunk-TSHCHZ7R.js → chunk-Y7E5ZWRQ.js} +2 -2
- package/dist/{chunk-UISGEXHO.js → chunk-YEQE7WLP.js} +2 -2
- package/dist/{cli-circuit-breaker-4EBP4C4R.js → cli-circuit-breaker-4SWB6DEB.js} +4 -4
- package/dist/cli.js +33 -33
- package/dist/{composite-router-INIE4UYA.js → composite-router-NLVKSTA2.js} +2 -2
- package/dist/{consensus-vote-LB7GCDPG.js → consensus-vote-B6W7YQ6K.js} +12 -12
- package/dist/{context-retriever-OBGV7Y2U.js → context-retriever-C4CNVKR5.js} +6 -6
- package/dist/{doctor-deep-F24MXACR.js → doctor-deep-QSVGAHAO.js} +3 -3
- package/dist/{expert-bridge-6KWMO2HT.js → expert-bridge-VIWFPPGZ.js} +4 -4
- package/dist/{factory-4RSAV4FC.js → factory-NNSXCD25.js} +5 -5
- package/dist/{factory-TA7GM2O2.js → factory-T3SEZUGW.js} +5 -5
- package/dist/index.js +25 -25
- package/dist/{init-opencode-VQFYKCIT.js → init-opencode-WEKHD7YE.js} +5 -5
- package/dist/{issue-triage-U3PSWSCY.js → issue-triage-IJGC3VZJ.js} +4 -4
- package/dist/{registry-command-2D4RMNUX.js → registry-command-VNFULRTL.js} +2 -2
- package/dist/{repo-security-plan-WOUJAXSZ.js → repo-security-plan-5MFY7GGQ.js} +3 -3
- package/dist/{research-helpers-synthesize-IDK2V5JN.js → research-helpers-synthesize-CNZ4C3FN.js} +3 -3
- package/dist/{routing-memory-XBYTU4KZ.js → routing-memory-PYO46COZ.js} +2 -2
- package/dist/{session-memory-FSLRKYIC.js → session-memory-HGCDSZ5R.js} +3 -3
- package/dist/{setup-command-UMBPSFIJ.js → setup-command-MXUNSSNJ.js} +11 -11
- package/dist/{setup-config-7MK6PRX6.js → setup-config-QPS4K5QU.js} +3 -3
- package/dist/{setup-custom-api-W6FWQVAF.js → setup-custom-api-SP2ZAVGC.js} +4 -4
- package/dist/{tool-memory-VJZ233FE.js → tool-memory-SDPIAV2S.js} +5 -5
- package/dist/{weather-report-YLD3VXUC.js → weather-report-RWAMQHBL.js} +2 -2
- package/package.json +1 -1
- package/dist/chunk-QA6YV4YF.js.map +0 -1
- /package/dist/{child-mcp-config-AT2L3EAS.js.map → child-mcp-config-WUHKXBWX.js.map} +0 -0
- /package/dist/{chunk-JHU27PB2.js.map → chunk-2SMTCNXP.js.map} +0 -0
- /package/dist/{chunk-O5F6QAIG.js.map → chunk-3FVSYMHK.js.map} +0 -0
- /package/dist/{chunk-SRTQUTCB.js.map → chunk-3HTUYAKS.js.map} +0 -0
- /package/dist/{chunk-LENO7TKE.js.map → chunk-3LKW4IEW.js.map} +0 -0
- /package/dist/{chunk-WOGMMJUI.js.map → chunk-44XYCZCU.js.map} +0 -0
- /package/dist/{chunk-W7YR5SGV.js.map → chunk-4GOT42ZA.js.map} +0 -0
- /package/dist/{chunk-F5GVZBSH.js.map → chunk-52ACUN6T.js.map} +0 -0
- /package/dist/{chunk-WF2YOYY7.js.map → chunk-57HMLBYN.js.map} +0 -0
- /package/dist/{chunk-SCT26VWJ.js.map → chunk-5X7GAOVZ.js.map} +0 -0
- /package/dist/{chunk-PS7WKRJN.js.map → chunk-6Q33PBXC.js.map} +0 -0
- /package/dist/{chunk-LZECDSJY.js.map → chunk-AQTHLUCP.js.map} +0 -0
- /package/dist/{chunk-KR6UR263.js.map → chunk-CGSVTROC.js.map} +0 -0
- /package/dist/{chunk-3MYPFPYL.js.map → chunk-E6W4Z6GN.js.map} +0 -0
- /package/dist/{chunk-QCZEC7H4.js.map → chunk-EAT4GTMT.js.map} +0 -0
- /package/dist/{chunk-XV7V3B35.js.map → chunk-EFHZHCF2.js.map} +0 -0
- /package/dist/{chunk-O5OJNB4C.js.map → chunk-IOXR6W24.js.map} +0 -0
- /package/dist/{chunk-AKO5H63G.js.map → chunk-JYIKPBXW.js.map} +0 -0
- /package/dist/{chunk-WWY6V4NK.js.map → chunk-PRGNJRID.js.map} +0 -0
- /package/dist/{chunk-EUMVRLJL.js.map → chunk-S6FXRXYE.js.map} +0 -0
- /package/dist/{chunk-46AUVU6N.js.map → chunk-SCZOD5XC.js.map} +0 -0
- /package/dist/{chunk-MHPOJAPZ.js.map → chunk-SFZESA5O.js.map} +0 -0
- /package/dist/{chunk-GRTSPRIJ.js.map → chunk-TWAH7VM2.js.map} +0 -0
- /package/dist/{chunk-MKKQ3CQJ.js.map → chunk-X5BQF6HM.js.map} +0 -0
- /package/dist/{chunk-TSHCHZ7R.js.map → chunk-Y7E5ZWRQ.js.map} +0 -0
- /package/dist/{chunk-UISGEXHO.js.map → chunk-YEQE7WLP.js.map} +0 -0
- /package/dist/{cli-circuit-breaker-4EBP4C4R.js.map → cli-circuit-breaker-4SWB6DEB.js.map} +0 -0
- /package/dist/{composite-router-INIE4UYA.js.map → composite-router-NLVKSTA2.js.map} +0 -0
- /package/dist/{consensus-vote-LB7GCDPG.js.map → consensus-vote-B6W7YQ6K.js.map} +0 -0
- /package/dist/{context-retriever-OBGV7Y2U.js.map → context-retriever-C4CNVKR5.js.map} +0 -0
- /package/dist/{doctor-deep-F24MXACR.js.map → doctor-deep-QSVGAHAO.js.map} +0 -0
- /package/dist/{expert-bridge-6KWMO2HT.js.map → expert-bridge-VIWFPPGZ.js.map} +0 -0
- /package/dist/{factory-4RSAV4FC.js.map → factory-NNSXCD25.js.map} +0 -0
- /package/dist/{factory-TA7GM2O2.js.map → factory-T3SEZUGW.js.map} +0 -0
- /package/dist/{init-opencode-VQFYKCIT.js.map → init-opencode-WEKHD7YE.js.map} +0 -0
- /package/dist/{issue-triage-U3PSWSCY.js.map → issue-triage-IJGC3VZJ.js.map} +0 -0
- /package/dist/{registry-command-2D4RMNUX.js.map → registry-command-VNFULRTL.js.map} +0 -0
- /package/dist/{repo-security-plan-WOUJAXSZ.js.map → repo-security-plan-5MFY7GGQ.js.map} +0 -0
- /package/dist/{research-helpers-synthesize-IDK2V5JN.js.map → research-helpers-synthesize-CNZ4C3FN.js.map} +0 -0
- /package/dist/{routing-memory-XBYTU4KZ.js.map → routing-memory-PYO46COZ.js.map} +0 -0
- /package/dist/{session-memory-FSLRKYIC.js.map → session-memory-HGCDSZ5R.js.map} +0 -0
- /package/dist/{setup-command-UMBPSFIJ.js.map → setup-command-MXUNSSNJ.js.map} +0 -0
- /package/dist/{setup-config-7MK6PRX6.js.map → setup-config-QPS4K5QU.js.map} +0 -0
- /package/dist/{setup-custom-api-W6FWQVAF.js.map → setup-custom-api-SP2ZAVGC.js.map} +0 -0
- /package/dist/{tool-memory-VJZ233FE.js.map → tool-memory-SDPIAV2S.js.map} +0 -0
- /package/dist/{weather-report-YLD3VXUC.js.map → weather-report-RWAMQHBL.js.map} +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createLogger
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-W5I6L4UT.js";
|
|
4
4
|
import "./chunk-CH7QIDHQ.js";
|
|
5
5
|
import "./chunk-PR4QN5HX.js";
|
|
6
6
|
|
|
@@ -59,4 +59,4 @@ export {
|
|
|
59
59
|
generateMcpConfig,
|
|
60
60
|
getDefaultAllowedTools
|
|
61
61
|
};
|
|
62
|
-
//# sourceMappingURL=child-mcp-config-
|
|
62
|
+
//# sourceMappingURL=child-mcp-config-WUHKXBWX.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getErrorMessage
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-W5I6L4UT.js";
|
|
4
4
|
|
|
5
5
|
// src/cli/setup-config.ts
|
|
6
6
|
import { copyFileSync, existsSync, mkdirSync, writeFileSync } from "fs";
|
|
@@ -77,4 +77,4 @@ function ensureBackup(outputPath) {
|
|
|
77
77
|
export {
|
|
78
78
|
runConfigInitSync
|
|
79
79
|
};
|
|
80
|
-
//# sourceMappingURL=chunk-
|
|
80
|
+
//# sourceMappingURL=chunk-2SMTCNXP.js.map
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
getTokenEstimator,
|
|
11
11
|
isRateLimitLikeError,
|
|
12
12
|
ok
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-W5I6L4UT.js";
|
|
14
14
|
|
|
15
15
|
// src/adapters/base-adapter.ts
|
|
16
16
|
var AdapterModelError = class extends ModelError {
|
|
@@ -707,4 +707,4 @@ export {
|
|
|
707
707
|
DEFAULT_COLLECT_STREAM_MAX_CHUNKS,
|
|
708
708
|
collectStream
|
|
709
709
|
};
|
|
710
|
-
//# sourceMappingURL=chunk-
|
|
710
|
+
//# sourceMappingURL=chunk-3FVSYMHK.js.map
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
MCP_TIMEOUTS,
|
|
6
6
|
TEST_TIMEOUTS,
|
|
7
7
|
WORKFLOW_TIMEOUTS
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-W5I6L4UT.js";
|
|
9
9
|
|
|
10
10
|
// src/config/defaults-env.ts
|
|
11
11
|
function parseIntEnv(envKey, fallback) {
|
|
@@ -348,4 +348,4 @@ export {
|
|
|
348
348
|
CUSTOM_API_DEFAULT_MODEL,
|
|
349
349
|
DEFAULTS
|
|
350
350
|
};
|
|
351
|
-
//# sourceMappingURL=chunk-
|
|
351
|
+
//# sourceMappingURL=chunk-3HTUYAKS.js.map
|
|
@@ -2,14 +2,14 @@ import {
|
|
|
2
2
|
CircuitBreakerRegistry,
|
|
3
3
|
CircuitError,
|
|
4
4
|
mapCliErrorToCategory
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-JYIKPBXW.js";
|
|
6
6
|
import {
|
|
7
7
|
createLogger,
|
|
8
8
|
err,
|
|
9
9
|
getFallbackChainForCategory,
|
|
10
10
|
getTimeProvider,
|
|
11
11
|
ok
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-W5I6L4UT.js";
|
|
13
13
|
|
|
14
14
|
// src/cli-adapters/cli-circuit-breaker.ts
|
|
15
15
|
var CATEGORY_TO_FALLBACK = {
|
|
@@ -152,4 +152,4 @@ export {
|
|
|
152
152
|
CliCircuitBreakerIntegration,
|
|
153
153
|
createCliCircuitBreakerIntegration
|
|
154
154
|
};
|
|
155
|
-
//# sourceMappingURL=chunk-
|
|
155
|
+
//# sourceMappingURL=chunk-3LKW4IEW.js.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getTokenEnvVars,
|
|
3
3
|
resolveToken
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-EAT4GTMT.js";
|
|
5
5
|
import {
|
|
6
6
|
executeExpert
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-S6FXRXYE.js";
|
|
8
8
|
import {
|
|
9
9
|
EventTopics,
|
|
10
10
|
JobStatusSchema,
|
|
@@ -42,7 +42,7 @@ import {
|
|
|
42
42
|
writeJobComplete,
|
|
43
43
|
writeJobFailed,
|
|
44
44
|
writeJobPending
|
|
45
|
-
} from "./chunk-
|
|
45
|
+
} from "./chunk-4N54BTZU.js";
|
|
46
46
|
import {
|
|
47
47
|
REGISTRY_PATH,
|
|
48
48
|
getProjectRoot,
|
|
@@ -51,14 +51,14 @@ import {
|
|
|
51
51
|
normalizeTopicToCanonical,
|
|
52
52
|
savePapersRegistry,
|
|
53
53
|
synthesizeResearch
|
|
54
|
-
} from "./chunk-
|
|
54
|
+
} from "./chunk-CGSVTROC.js";
|
|
55
55
|
import {
|
|
56
56
|
IssueTriage,
|
|
57
57
|
sanitizeInput
|
|
58
|
-
} from "./chunk-
|
|
58
|
+
} from "./chunk-IOXR6W24.js";
|
|
59
59
|
import {
|
|
60
60
|
generateSecurityPlan
|
|
61
|
-
} from "./chunk-
|
|
61
|
+
} from "./chunk-57HMLBYN.js";
|
|
62
62
|
import {
|
|
63
63
|
analyzeGitHubRepo
|
|
64
64
|
} from "./chunk-HFOQKCD2.js";
|
|
@@ -71,25 +71,25 @@ import {
|
|
|
71
71
|
getContextForTask,
|
|
72
72
|
inferTaskCategory,
|
|
73
73
|
summarizeContextForPrompt
|
|
74
|
-
} from "./chunk-
|
|
74
|
+
} from "./chunk-4GOT42ZA.js";
|
|
75
75
|
import {
|
|
76
76
|
DEFAULT_RELEVANCE_CONFIG,
|
|
77
77
|
MemoryImportance,
|
|
78
78
|
calculateTextJaccardSimilarity,
|
|
79
79
|
getToolMemory
|
|
80
|
-
} from "./chunk-
|
|
80
|
+
} from "./chunk-7QXEK3O6.js";
|
|
81
81
|
import {
|
|
82
82
|
DEFAULT_TASK_TTL_MS,
|
|
83
83
|
DEFAULT_TOOL_RATE_LIMITS,
|
|
84
84
|
clampTaskTtl
|
|
85
|
-
} from "./chunk-
|
|
85
|
+
} from "./chunk-5X7GAOVZ.js";
|
|
86
86
|
import {
|
|
87
87
|
getAvailabilityCache,
|
|
88
88
|
resolveFallback
|
|
89
|
-
} from "./chunk-
|
|
89
|
+
} from "./chunk-SFZESA5O.js";
|
|
90
90
|
import {
|
|
91
91
|
DEFAULTS
|
|
92
|
-
} from "./chunk-
|
|
92
|
+
} from "./chunk-3HTUYAKS.js";
|
|
93
93
|
import {
|
|
94
94
|
resolveInsideRoot
|
|
95
95
|
} from "./chunk-NUBSJGQZ.js";
|
|
@@ -105,11 +105,11 @@ import {
|
|
|
105
105
|
getAvailableClis,
|
|
106
106
|
sleep,
|
|
107
107
|
withTimeout
|
|
108
|
-
} from "./chunk-
|
|
108
|
+
} from "./chunk-X5BQF6HM.js";
|
|
109
109
|
import {
|
|
110
110
|
generateHyphenId,
|
|
111
111
|
generateUUID
|
|
112
|
-
} from "./chunk-
|
|
112
|
+
} from "./chunk-PRGNJRID.js";
|
|
113
113
|
import {
|
|
114
114
|
BUILT_IN_EXPERTS,
|
|
115
115
|
BuiltInExpertTypeSchema,
|
|
@@ -121,7 +121,7 @@ import {
|
|
|
121
121
|
} from "./chunk-PQHVC4BD.js";
|
|
122
122
|
import {
|
|
123
123
|
createSessionMemory
|
|
124
|
-
} from "./chunk-
|
|
124
|
+
} from "./chunk-YEQE7WLP.js";
|
|
125
125
|
import {
|
|
126
126
|
AGENT_ROUTER_TIMEOUTS,
|
|
127
127
|
API_TIMEOUTS,
|
|
@@ -192,7 +192,7 @@ import {
|
|
|
192
192
|
resolveModelIdentitySync,
|
|
193
193
|
toExpertTaskAnalysisResult,
|
|
194
194
|
withStep
|
|
195
|
-
} from "./chunk-
|
|
195
|
+
} from "./chunk-W5I6L4UT.js";
|
|
196
196
|
import {
|
|
197
197
|
getNexusDataDir,
|
|
198
198
|
nexusDataPath,
|
|
@@ -26886,7 +26886,7 @@ async function populateUnifiedContextOnState(state) {
|
|
|
26886
26886
|
try {
|
|
26887
26887
|
const taskCandidate = state["task"];
|
|
26888
26888
|
if (typeof taskCandidate !== "string" || taskCandidate === "") return;
|
|
26889
|
-
const { getContextForTask: getContextForTask2, inferTaskCategory: inferTaskCategory2 } = await import("./context-retriever-
|
|
26889
|
+
const { getContextForTask: getContextForTask2, inferTaskCategory: inferTaskCategory2 } = await import("./context-retriever-C4CNVKR5.js");
|
|
26890
26890
|
const ctx = await getContextForTask2({
|
|
26891
26891
|
task: taskCandidate,
|
|
26892
26892
|
category: inferTaskCategory2(taskCandidate),
|
|
@@ -42521,7 +42521,7 @@ async function tryIssueTriage(task) {
|
|
|
42521
42521
|
try {
|
|
42522
42522
|
const issueMatch = task.match(/github\.com\/([^/]+\/[^/]+)\/issues\/(\d+)/);
|
|
42523
42523
|
if (issueMatch === null) return null;
|
|
42524
|
-
const { createIssueTriage } = await import("./issue-triage-
|
|
42524
|
+
const { createIssueTriage } = await import("./issue-triage-IJGC3VZJ.js");
|
|
42525
42525
|
const triage = createIssueTriage();
|
|
42526
42526
|
const owner = issueMatch[1] ?? "";
|
|
42527
42527
|
const num = issueMatch[2] ?? "";
|
|
@@ -42549,7 +42549,7 @@ var VALID_TEMPLATES = /* @__PURE__ */ new Set([
|
|
|
42549
42549
|
]);
|
|
42550
42550
|
async function classifyWithLLM(task) {
|
|
42551
42551
|
try {
|
|
42552
|
-
const { executeExpert: executeExpert2 } = await import("./expert-bridge-
|
|
42552
|
+
const { executeExpert: executeExpert2 } = await import("./expert-bridge-VIWFPPGZ.js");
|
|
42553
42553
|
const prompt = [
|
|
42554
42554
|
"Classify this task into exactly one pipeline template.",
|
|
42555
42555
|
"Templates: dev (implementation/bug fix/refactor), research (investigate/evaluate/compare),",
|
|
@@ -43331,7 +43331,7 @@ var memoryInitPromise = null;
|
|
|
43331
43331
|
async function initPipelineMemory() {
|
|
43332
43332
|
if (cachedMemory !== null) return cachedMemory;
|
|
43333
43333
|
try {
|
|
43334
|
-
const { createSessionMemory: createSessionMemory2 } = await import("./session-memory-
|
|
43334
|
+
const { createSessionMemory: createSessionMemory2 } = await import("./session-memory-HGCDSZ5R.js");
|
|
43335
43335
|
const { getLearningDir } = await import("./learning-persistence-UKPO7RYK.js");
|
|
43336
43336
|
const mem = createSessionMemory2(getLearningDir());
|
|
43337
43337
|
mem.startSession(`pipeline-${String(getTimeProvider().now())}`);
|
|
@@ -43388,7 +43388,7 @@ function recordRoutingExperience(category, success, durationMs) {
|
|
|
43388
43388
|
callRecord(routingMemoryCache);
|
|
43389
43389
|
return;
|
|
43390
43390
|
}
|
|
43391
|
-
routingMemoryInitPromise ??= import("./routing-memory-
|
|
43391
|
+
routingMemoryInitPromise ??= import("./routing-memory-PYO46COZ.js").then(({ createRoutingMemory }) => {
|
|
43392
43392
|
routingMemoryCache ??= createRoutingMemory();
|
|
43393
43393
|
return routingMemoryCache;
|
|
43394
43394
|
}).catch((error) => {
|
|
@@ -43422,7 +43422,7 @@ ${text}` : "";
|
|
|
43422
43422
|
}
|
|
43423
43423
|
async function getWeatherContext() {
|
|
43424
43424
|
try {
|
|
43425
|
-
const { generateWeatherReport: generateWeatherReport2 } = await import("./weather-report-
|
|
43425
|
+
const { generateWeatherReport: generateWeatherReport2 } = await import("./weather-report-RWAMQHBL.js");
|
|
43426
43426
|
const report = generateWeatherReport2({ includeAdaptive: true });
|
|
43427
43427
|
const mappings = "recommendedMappings" in report ? report.recommendedMappings : [];
|
|
43428
43428
|
if (!Array.isArray(mappings) || mappings.length === 0) return "";
|
|
@@ -43440,7 +43440,7 @@ ${lines}
|
|
|
43440
43440
|
}
|
|
43441
43441
|
async function getMemoryContext(task) {
|
|
43442
43442
|
try {
|
|
43443
|
-
const { createSessionMemory: createSessionMemory2 } = await import("./session-memory-
|
|
43443
|
+
const { createSessionMemory: createSessionMemory2 } = await import("./session-memory-HGCDSZ5R.js");
|
|
43444
43444
|
const { getLearningDir } = await import("./learning-persistence-UKPO7RYK.js");
|
|
43445
43445
|
const memory = createSessionMemory2(getLearningDir(), { maxLearningsInContext: 10 });
|
|
43446
43446
|
const learnings = memory.searchLearnings(task.slice(0, 200));
|
|
@@ -43546,7 +43546,7 @@ ${contextBlock}`;
|
|
|
43546
43546
|
const strategy = config.votingStrategy ?? "higher_order";
|
|
43547
43547
|
await postProgress(config, "Vote", `Running consensus with ${strategy} strategy...`);
|
|
43548
43548
|
try {
|
|
43549
|
-
const { executeVoting } = await import("./consensus-vote-
|
|
43549
|
+
const { executeVoting } = await import("./consensus-vote-B6W7YQ6K.js");
|
|
43550
43550
|
const votingResult = await executeVoting(
|
|
43551
43551
|
{
|
|
43552
43552
|
proposal: plan.slice(0, 4e3),
|
|
@@ -44473,7 +44473,7 @@ async function searchCodebaseForTask(task) {
|
|
|
44473
44473
|
}
|
|
44474
44474
|
async function queryResearchRegistry(task) {
|
|
44475
44475
|
try {
|
|
44476
|
-
const { synthesizeResearch: synthesizeResearch2 } = await import("./research-helpers-synthesize-
|
|
44476
|
+
const { synthesizeResearch: synthesizeResearch2 } = await import("./research-helpers-synthesize-CNZ4C3FN.js");
|
|
44477
44477
|
const topic = task.split(/[.!?\n]/).filter((s) => s.trim().length > 10)[0]?.trim();
|
|
44478
44478
|
if (topic === void 0) return null;
|
|
44479
44479
|
const result = await synthesizeResearch2(topic.slice(0, 50));
|
|
@@ -44544,7 +44544,7 @@ function createScanStageWrapper() {
|
|
|
44544
44544
|
try {
|
|
44545
44545
|
const slug = ctx.task.match(/([a-zA-Z0-9._-]+\/[a-zA-Z0-9._-]+)/)?.[1];
|
|
44546
44546
|
if (slug !== void 0) {
|
|
44547
|
-
const { generateSecurityPlan: generateSecurityPlan2 } = await import("./repo-security-plan-
|
|
44547
|
+
const { generateSecurityPlan: generateSecurityPlan2 } = await import("./repo-security-plan-5MFY7GGQ.js");
|
|
44548
44548
|
const plan = await generateSecurityPlan2({ repo: slug, maxScanners: 10 });
|
|
44549
44549
|
const recs = plan.recommendations.slice(0, 5).map((r) => `${r.priority}: ${r.displayName} (${r.category})`).join("; ");
|
|
44550
44550
|
return output(PIPELINE_STATE_KEYS.FINDINGS, recs, getTimeProvider().now() - start, true);
|
|
@@ -51160,7 +51160,7 @@ var GitHubTaskTracker = class {
|
|
|
51160
51160
|
cachedProvider = null;
|
|
51161
51161
|
async getProvider() {
|
|
51162
51162
|
if (this.cachedProvider !== null) return this.cachedProvider;
|
|
51163
|
-
const { createScmProvider } = await import("./factory-
|
|
51163
|
+
const { createScmProvider } = await import("./factory-NNSXCD25.js");
|
|
51164
51164
|
const result = await createScmProvider({ repo: this.config.repo ?? "" });
|
|
51165
51165
|
if (!result.ok) throw new Error(`SCM provider error: ${result.error.message}`);
|
|
51166
51166
|
this.cachedProvider = result.value;
|
|
@@ -51874,4 +51874,4 @@ export {
|
|
|
51874
51874
|
detectBackend,
|
|
51875
51875
|
createTaskTracker
|
|
51876
51876
|
};
|
|
51877
|
-
//# sourceMappingURL=chunk-
|
|
51877
|
+
//# sourceMappingURL=chunk-44XYCZCU.js.map
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getToolMemory
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-7QXEK3O6.js";
|
|
4
4
|
import {
|
|
5
5
|
CLI_NAMES,
|
|
6
6
|
StrategyDistiller,
|
|
7
7
|
createLogger,
|
|
8
8
|
getOutcomeStore,
|
|
9
9
|
registerPersistentDistillerFactory
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-W5I6L4UT.js";
|
|
11
11
|
import {
|
|
12
12
|
ensureLearningDir,
|
|
13
13
|
getRulesFile
|
|
@@ -273,4 +273,4 @@ export {
|
|
|
273
273
|
inferTaskCategory,
|
|
274
274
|
summarizeContextForPrompt
|
|
275
275
|
};
|
|
276
|
-
//# sourceMappingURL=chunk-
|
|
276
|
+
//# sourceMappingURL=chunk-4GOT42ZA.js.map
|
|
@@ -4,21 +4,21 @@ import {
|
|
|
4
4
|
createStream,
|
|
5
5
|
requireApiKey,
|
|
6
6
|
validateApiKeyPresence
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-3FVSYMHK.js";
|
|
8
8
|
import {
|
|
9
9
|
CUSTOM_API_BASE_URL_ENV,
|
|
10
10
|
PROVIDER_ENV_KEYS,
|
|
11
11
|
validateCustomApiBaseUrl
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-Y7E5ZWRQ.js";
|
|
13
13
|
import {
|
|
14
14
|
getToolMemory
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-7QXEK3O6.js";
|
|
16
16
|
import {
|
|
17
17
|
getDefaultAvailableModelsCache
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-6Q33PBXC.js";
|
|
19
19
|
import {
|
|
20
20
|
CUSTOM_API_DEFAULT_MODEL
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-3HTUYAKS.js";
|
|
22
22
|
import {
|
|
23
23
|
createCliAdapter,
|
|
24
24
|
createCliDetectionCache,
|
|
@@ -27,7 +27,7 @@ import {
|
|
|
27
27
|
isCliAvailable,
|
|
28
28
|
sanitizeOutput,
|
|
29
29
|
withTimeout
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-X5BQF6HM.js";
|
|
31
31
|
import {
|
|
32
32
|
AgentError,
|
|
33
33
|
CACHE_TIMEOUTS,
|
|
@@ -70,7 +70,7 @@ import {
|
|
|
70
70
|
resolveCliAlias,
|
|
71
71
|
resolveVoteTimeout,
|
|
72
72
|
toRateLimitError
|
|
73
|
-
} from "./chunk-
|
|
73
|
+
} from "./chunk-W5I6L4UT.js";
|
|
74
74
|
import {
|
|
75
75
|
ensureLearningDir,
|
|
76
76
|
getNexusDataDir,
|
|
@@ -1595,25 +1595,26 @@ function internalError(message, requestId) {
|
|
|
1595
1595
|
var MAX_INPUT_SIZE_BYTES = 10 * 1024 * 1024;
|
|
1596
1596
|
var SECRET_PATTERNS = [
|
|
1597
1597
|
// API keys with common prefixes
|
|
1598
|
-
/\b(sk-[a-zA-Z0-9]{20,})\b
|
|
1599
|
-
/\b(pk-[a-zA-Z0-9]{20,})\b
|
|
1598
|
+
/\b(sk-[a-zA-Z0-9]{20,})\b/g,
|
|
1599
|
+
/\b(pk-[a-zA-Z0-9]{20,})\b/g,
|
|
1600
1600
|
// AWS-style keys
|
|
1601
|
-
/\b(AKIA[A-Z0-9]{16})\b
|
|
1601
|
+
/\b(AKIA[A-Z0-9]{16})\b/g,
|
|
1602
1602
|
// Bearer tokens in output
|
|
1603
|
-
/Bearer\s+[a-zA-Z0-9_\-.~+/]
|
|
1603
|
+
/Bearer\s+[a-zA-Z0-9_\-.~+/]+=*/g,
|
|
1604
1604
|
// Generic long hex secrets (40+ chars)
|
|
1605
|
-
/\b[0-9a-f]{40,}\b/
|
|
1605
|
+
/\b[0-9a-f]{40,}\b/gi,
|
|
1606
1606
|
// password= or token= in output
|
|
1607
|
-
/(?:password|token|secret|apikey|api_key)\s*[=:]\s*\S{8,}/
|
|
1607
|
+
/(?:password|token|secret|apikey|api_key)\s*[=:]\s*\S{8,}/gi
|
|
1608
1608
|
];
|
|
1609
1609
|
function sanitizeOutput2(text, logger11) {
|
|
1610
1610
|
let sanitized = text;
|
|
1611
1611
|
for (const pattern of SECRET_PATTERNS) {
|
|
1612
|
-
|
|
1612
|
+
const before = sanitized;
|
|
1613
|
+
sanitized = sanitized.replace(pattern, "[REDACTED]");
|
|
1614
|
+
if (sanitized !== before) {
|
|
1613
1615
|
logger11.warn("Potential secret detected in tool output, redacting", {
|
|
1614
1616
|
pattern: pattern.source.slice(0, 30)
|
|
1615
1617
|
});
|
|
1616
|
-
sanitized = sanitized.replace(pattern, "[REDACTED]");
|
|
1617
1618
|
}
|
|
1618
1619
|
}
|
|
1619
1620
|
return sanitized;
|
|
@@ -3317,7 +3318,7 @@ var ResilientAdapter = class {
|
|
|
3317
3318
|
async *stream(request) {
|
|
3318
3319
|
const adapter = await this.ensureAdapter();
|
|
3319
3320
|
if (adapter === void 0) {
|
|
3320
|
-
|
|
3321
|
+
throw new ModelError("No model adapter available");
|
|
3321
3322
|
}
|
|
3322
3323
|
yield* adapter.stream(request);
|
|
3323
3324
|
}
|
|
@@ -9090,7 +9091,7 @@ async function processVotesWithCascade(engineVotes, opts) {
|
|
|
9090
9091
|
var CONTRARIAN_ESCALATION_THRESHOLD = 0.8;
|
|
9091
9092
|
async function runContrarianCheck(proposal, log) {
|
|
9092
9093
|
try {
|
|
9093
|
-
const { executeExpert } = await import("./expert-bridge-
|
|
9094
|
+
const { executeExpert } = await import("./expert-bridge-VIWFPPGZ.js");
|
|
9094
9095
|
const prompt = [
|
|
9095
9096
|
"You are a contrarian analyst. Your job is to find reasons this proposal should be REJECTED.",
|
|
9096
9097
|
"Look for: YAGNI (not needed), MISALIGNED (wrong tech/architecture), SECURITY_RISK, SCOPE_CREEP.",
|
|
@@ -9602,4 +9603,4 @@ export {
|
|
|
9602
9603
|
CONSENSUS_VOTE_OUTPUT_SCHEMA,
|
|
9603
9604
|
registerConsensusVoteTool
|
|
9604
9605
|
};
|
|
9605
|
-
//# sourceMappingURL=chunk-
|
|
9606
|
+
//# sourceMappingURL=chunk-4N54BTZU.js.map
|