nexus-agents 5.0.1 → 5.0.4
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-2EXF74GZ.js → child-mcp-config-PIZSE56V.js} +2 -2
- package/dist/{chunk-KYOVZ2QZ.js → chunk-2I5BBD6U.js} +5 -5
- package/dist/{chunk-WTQEMR7D.js → chunk-5MQPSHIG.js} +7 -7
- package/dist/{chunk-SOKS6XK2.js → chunk-5VP6WPEI.js} +2 -2
- package/dist/{chunk-AVYTX7JQ.js → chunk-6OPLDOJG.js} +3 -3
- package/dist/chunk-7VPZ26NW.js +7 -0
- package/dist/{chunk-SZ6J4YY7.js → chunk-AS4B7KCT.js} +2 -2
- package/dist/{chunk-BZRUZSJ6.js → chunk-BD6S7IQ3.js} +27 -22
- package/dist/chunk-BD6S7IQ3.js.map +1 -0
- package/dist/{chunk-7TXO7LYE.js → chunk-BGGS3PH2.js} +2 -2
- package/dist/{chunk-DDUZI6OD.js → chunk-BSWCYRYH.js} +8 -8
- package/dist/{chunk-LFAIB5MG.js → chunk-CVDQYONC.js} +47 -42
- package/dist/{chunk-LFAIB5MG.js.map → chunk-CVDQYONC.js.map} +1 -1
- package/dist/{chunk-Y4XI4RIB.js → chunk-F67CLL5B.js} +2 -2
- package/dist/{chunk-KG752W6G.js → chunk-FDWB4PUV.js} +2 -2
- package/dist/{chunk-C2LEM7RD.js → chunk-FU45UMX5.js} +2 -2
- package/dist/{chunk-3IDYJL2Y.js → chunk-FWBR6DZO.js} +2 -2
- package/dist/{chunk-77VDRUFK.js → chunk-GFDE5IAZ.js} +3 -3
- package/dist/{chunk-VRJJGXUE.js → chunk-GSK2JRVW.js} +8 -8
- package/dist/{chunk-KQPEECXT.js → chunk-GTMJPNPR.js} +2 -2
- package/dist/{chunk-W7ITYRY2.js → chunk-JOY5IRVR.js} +2 -2
- package/dist/{chunk-AKOBOCUB.js → chunk-K4OBRS4D.js} +2 -2
- package/dist/{chunk-FWP5FZ7V.js → chunk-NDVKXAK5.js} +2 -2
- package/dist/{chunk-Q225TVYP.js → chunk-OCFY37TZ.js} +16 -2
- package/dist/chunk-OCFY37TZ.js.map +1 -0
- package/dist/{chunk-ZSNWRX2B.js → chunk-OOGKQTDN.js} +2 -2
- package/dist/{chunk-VS2DUTJ5.js → chunk-P7IHQSCC.js} +18 -4
- package/dist/chunk-P7IHQSCC.js.map +1 -0
- package/dist/{chunk-WIYDV6ZY.js → chunk-Q36RQS7J.js} +3 -3
- package/dist/{chunk-VZM7YQZL.js → chunk-R66FJKP4.js} +5 -5
- package/dist/{chunk-2P6GBKUN.js → chunk-ROCFIXAK.js} +2 -2
- package/dist/{chunk-EQRCOUJJ.js → chunk-SY54YKTT.js} +2 -2
- package/dist/{chunk-OKS6I7T7.js → chunk-TC2QG4U3.js} +4 -4
- package/dist/{chunk-VHB3L7H7.js → chunk-TIOXRJK3.js} +2 -2
- package/dist/{chunk-XIWGJBVE.js → chunk-VX6VNBCU.js} +4 -4
- package/dist/{chunk-AYJNW7JN.js → chunk-ZAIZCK2H.js} +7 -7
- package/dist/{chunk-GQXDNAMB.js → chunk-ZKX6VVH2.js} +3 -3
- package/dist/{chunk-QNF6NAQ3.js → chunk-ZXTOZ7B3.js} +6 -6
- package/dist/{cli-circuit-breaker-UFQZZVAB.js → cli-circuit-breaker-YEQKBXCN.js} +3 -3
- package/dist/cli.js +41 -41
- package/dist/{composite-router-KL7ZLCJY.js → composite-router-7D45ZSSG.js} +2 -2
- package/dist/{consensus-vote-X2EF47XM.js → consensus-vote-2TE2APCF.js} +17 -17
- package/dist/{context-retriever-GJL6HFJK.js → context-retriever-3R3BWMEW.js} +8 -8
- package/dist/{doctor-deep-XEJ7JXQI.js → doctor-deep-ECI74ALB.js} +3 -3
- package/dist/{doctor-live-4VAU6HLF.js → doctor-live-OBEZKBNU.js} +9 -9
- package/dist/{expert-bridge-VYB4C7C5.js → expert-bridge-XIFIEXQM.js} +4 -4
- package/dist/{factory-YYGHDTUN.js → factory-2TN6OVWR.js} +5 -5
- package/dist/{factory-S5K2EIKH.js → factory-3T6NTUDH.js} +9 -9
- package/dist/{improvement-review-VBLDRXFP.js → improvement-review-OFMMBZPS.js} +6 -6
- package/dist/index.js +31 -31
- package/dist/{init-opencode-5PUDYNKQ.js → init-opencode-SIT4DIQ4.js} +6 -6
- package/dist/issue-triage-42TGOOZX.js +17 -0
- package/dist/{pr-reviewer-helpers-4YANH63K.js → pr-reviewer-helpers-NL7YXDAO.js} +4 -4
- package/dist/{registry-command-KZDEZNUE.js → registry-command-UBUAESO2.js} +2 -2
- package/dist/{repo-security-plan-7N2BVFFF.js → repo-security-plan-MK3OFGIC.js} +3 -3
- package/dist/{research-helpers-synthesize-FCXEDCUC.js → research-helpers-synthesize-UZGA2H5E.js} +4 -4
- package/dist/{routing-memory-NZZHHDN6.js → routing-memory-GSOJXKYR.js} +2 -2
- package/dist/{session-memory-OV55DW3U.js → session-memory-QK544BZF.js} +3 -3
- package/dist/{setup-config-WFHZTYAU.js → setup-config-AXDZQQZD.js} +3 -3
- package/dist/{setup-custom-api-5V5IQUMA.js → setup-custom-api-JNLX5DPO.js} +4 -4
- package/dist/setup-data-dir-7H26F7FW.js +29 -0
- package/dist/{tool-memory-NJ5B3U27.js → tool-memory-DYW3QKJZ.js} +5 -5
- package/dist/{unified-registry-YBGPLXH3.js → unified-registry-ZRG3SO3X.js} +10 -10
- package/dist/{weather-report-U626M3HS.js → weather-report-JQGPC6ZC.js} +2 -2
- package/package.json +1 -1
- package/dist/chunk-7A63AX2A.js +0 -7
- package/dist/chunk-BZRUZSJ6.js.map +0 -1
- package/dist/chunk-Q225TVYP.js.map +0 -1
- package/dist/chunk-VS2DUTJ5.js.map +0 -1
- package/dist/issue-triage-5ZFQWQ3W.js +0 -17
- package/dist/setup-data-dir-RQCYL3D3.js +0 -29
- /package/dist/{child-mcp-config-2EXF74GZ.js.map → child-mcp-config-PIZSE56V.js.map} +0 -0
- /package/dist/{chunk-KYOVZ2QZ.js.map → chunk-2I5BBD6U.js.map} +0 -0
- /package/dist/{chunk-WTQEMR7D.js.map → chunk-5MQPSHIG.js.map} +0 -0
- /package/dist/{chunk-SOKS6XK2.js.map → chunk-5VP6WPEI.js.map} +0 -0
- /package/dist/{chunk-AVYTX7JQ.js.map → chunk-6OPLDOJG.js.map} +0 -0
- /package/dist/{chunk-7A63AX2A.js.map → chunk-7VPZ26NW.js.map} +0 -0
- /package/dist/{chunk-SZ6J4YY7.js.map → chunk-AS4B7KCT.js.map} +0 -0
- /package/dist/{chunk-7TXO7LYE.js.map → chunk-BGGS3PH2.js.map} +0 -0
- /package/dist/{chunk-DDUZI6OD.js.map → chunk-BSWCYRYH.js.map} +0 -0
- /package/dist/{chunk-Y4XI4RIB.js.map → chunk-F67CLL5B.js.map} +0 -0
- /package/dist/{chunk-KG752W6G.js.map → chunk-FDWB4PUV.js.map} +0 -0
- /package/dist/{chunk-C2LEM7RD.js.map → chunk-FU45UMX5.js.map} +0 -0
- /package/dist/{chunk-3IDYJL2Y.js.map → chunk-FWBR6DZO.js.map} +0 -0
- /package/dist/{chunk-77VDRUFK.js.map → chunk-GFDE5IAZ.js.map} +0 -0
- /package/dist/{chunk-VRJJGXUE.js.map → chunk-GSK2JRVW.js.map} +0 -0
- /package/dist/{chunk-KQPEECXT.js.map → chunk-GTMJPNPR.js.map} +0 -0
- /package/dist/{chunk-W7ITYRY2.js.map → chunk-JOY5IRVR.js.map} +0 -0
- /package/dist/{chunk-AKOBOCUB.js.map → chunk-K4OBRS4D.js.map} +0 -0
- /package/dist/{chunk-FWP5FZ7V.js.map → chunk-NDVKXAK5.js.map} +0 -0
- /package/dist/{chunk-ZSNWRX2B.js.map → chunk-OOGKQTDN.js.map} +0 -0
- /package/dist/{chunk-WIYDV6ZY.js.map → chunk-Q36RQS7J.js.map} +0 -0
- /package/dist/{chunk-VZM7YQZL.js.map → chunk-R66FJKP4.js.map} +0 -0
- /package/dist/{chunk-2P6GBKUN.js.map → chunk-ROCFIXAK.js.map} +0 -0
- /package/dist/{chunk-EQRCOUJJ.js.map → chunk-SY54YKTT.js.map} +0 -0
- /package/dist/{chunk-OKS6I7T7.js.map → chunk-TC2QG4U3.js.map} +0 -0
- /package/dist/{chunk-VHB3L7H7.js.map → chunk-TIOXRJK3.js.map} +0 -0
- /package/dist/{chunk-XIWGJBVE.js.map → chunk-VX6VNBCU.js.map} +0 -0
- /package/dist/{chunk-AYJNW7JN.js.map → chunk-ZAIZCK2H.js.map} +0 -0
- /package/dist/{chunk-GQXDNAMB.js.map → chunk-ZKX6VVH2.js.map} +0 -0
- /package/dist/{chunk-QNF6NAQ3.js.map → chunk-ZXTOZ7B3.js.map} +0 -0
- /package/dist/{cli-circuit-breaker-UFQZZVAB.js.map → cli-circuit-breaker-YEQKBXCN.js.map} +0 -0
- /package/dist/{composite-router-KL7ZLCJY.js.map → composite-router-7D45ZSSG.js.map} +0 -0
- /package/dist/{consensus-vote-X2EF47XM.js.map → consensus-vote-2TE2APCF.js.map} +0 -0
- /package/dist/{context-retriever-GJL6HFJK.js.map → context-retriever-3R3BWMEW.js.map} +0 -0
- /package/dist/{doctor-deep-XEJ7JXQI.js.map → doctor-deep-ECI74ALB.js.map} +0 -0
- /package/dist/{doctor-live-4VAU6HLF.js.map → doctor-live-OBEZKBNU.js.map} +0 -0
- /package/dist/{expert-bridge-VYB4C7C5.js.map → expert-bridge-XIFIEXQM.js.map} +0 -0
- /package/dist/{factory-S5K2EIKH.js.map → factory-2TN6OVWR.js.map} +0 -0
- /package/dist/{factory-YYGHDTUN.js.map → factory-3T6NTUDH.js.map} +0 -0
- /package/dist/{improvement-review-VBLDRXFP.js.map → improvement-review-OFMMBZPS.js.map} +0 -0
- /package/dist/{init-opencode-5PUDYNKQ.js.map → init-opencode-SIT4DIQ4.js.map} +0 -0
- /package/dist/{issue-triage-5ZFQWQ3W.js.map → issue-triage-42TGOOZX.js.map} +0 -0
- /package/dist/{pr-reviewer-helpers-4YANH63K.js.map → pr-reviewer-helpers-NL7YXDAO.js.map} +0 -0
- /package/dist/{registry-command-KZDEZNUE.js.map → registry-command-UBUAESO2.js.map} +0 -0
- /package/dist/{repo-security-plan-7N2BVFFF.js.map → repo-security-plan-MK3OFGIC.js.map} +0 -0
- /package/dist/{research-helpers-synthesize-FCXEDCUC.js.map → research-helpers-synthesize-UZGA2H5E.js.map} +0 -0
- /package/dist/{routing-memory-NZZHHDN6.js.map → routing-memory-GSOJXKYR.js.map} +0 -0
- /package/dist/{session-memory-OV55DW3U.js.map → session-memory-QK544BZF.js.map} +0 -0
- /package/dist/{setup-config-WFHZTYAU.js.map → setup-config-AXDZQQZD.js.map} +0 -0
- /package/dist/{setup-custom-api-5V5IQUMA.js.map → setup-custom-api-JNLX5DPO.js.map} +0 -0
- /package/dist/{setup-data-dir-RQCYL3D3.js.map → setup-data-dir-7H26F7FW.js.map} +0 -0
- /package/dist/{tool-memory-NJ5B3U27.js.map → tool-memory-DYW3QKJZ.js.map} +0 -0
- /package/dist/{unified-registry-YBGPLXH3.js.map → unified-registry-ZRG3SO3X.js.map} +0 -0
- /package/dist/{weather-report-U626M3HS.js.map → weather-report-JQGPC6ZC.js.map} +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
computeCostDetail,
|
|
3
3
|
priceBasisOf
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-5VP6WPEI.js";
|
|
5
5
|
import {
|
|
6
6
|
allOf
|
|
7
7
|
} from "./chunk-OQB3XC5O.js";
|
|
@@ -23,22 +23,22 @@ import {
|
|
|
23
23
|
toolSuccessStructured,
|
|
24
24
|
withProgressHeartbeat,
|
|
25
25
|
wrapToolWithTimeout
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-BD6S7IQ3.js";
|
|
27
27
|
import {
|
|
28
28
|
assessPanelIndependence,
|
|
29
29
|
countDistinctModels,
|
|
30
30
|
createEvent,
|
|
31
31
|
getGlobalRegistry
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-TC2QG4U3.js";
|
|
33
33
|
import {
|
|
34
34
|
getToolMemory
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-P7IHQSCC.js";
|
|
36
36
|
import {
|
|
37
37
|
authRemediation,
|
|
38
38
|
delay,
|
|
39
39
|
getAvailableClis,
|
|
40
40
|
withTimeout
|
|
41
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-GSK2JRVW.js";
|
|
42
42
|
import {
|
|
43
43
|
AgentError,
|
|
44
44
|
CLI_NAMES,
|
|
@@ -66,7 +66,7 @@ import {
|
|
|
66
66
|
registerPersistentOutcomeStoreFactory,
|
|
67
67
|
resolveClassGuardMs,
|
|
68
68
|
resolveVoteTimeout
|
|
69
|
-
} from "./chunk-
|
|
69
|
+
} from "./chunk-6OPLDOJG.js";
|
|
70
70
|
import {
|
|
71
71
|
ensureLearningDir,
|
|
72
72
|
getOutcomesFile
|
|
@@ -6261,7 +6261,7 @@ async function processVotesWithCascade(engineVotes, opts) {
|
|
|
6261
6261
|
var CONTRARIAN_ESCALATION_THRESHOLD = 0.8;
|
|
6262
6262
|
async function runContrarianCheck(proposal, log) {
|
|
6263
6263
|
try {
|
|
6264
|
-
const { executeExpert } = await import("./expert-bridge-
|
|
6264
|
+
const { executeExpert } = await import("./expert-bridge-XIFIEXQM.js");
|
|
6265
6265
|
const prompt = [
|
|
6266
6266
|
"You are a contrarian analyst. Your job is to find reasons this proposal should be REJECTED.",
|
|
6267
6267
|
"Look for: YAGNI (not needed), MISALIGNED (wrong tech/architecture), SECURITY_RISK, SCOPE_CREEP.",
|
|
@@ -6848,4 +6848,4 @@ export {
|
|
|
6848
6848
|
CONSENSUS_VOTE_TOOL_SCHEMA,
|
|
6849
6849
|
registerConsensusVoteTool
|
|
6850
6850
|
};
|
|
6851
|
-
//# sourceMappingURL=chunk-
|
|
6851
|
+
//# sourceMappingURL=chunk-BSWCYRYH.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
generateSecurityPlan
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-JOY5IRVR.js";
|
|
4
4
|
import {
|
|
5
5
|
analyzeGitHubRepo
|
|
6
6
|
} from "./chunk-HFOQKCD2.js";
|
|
@@ -21,10 +21,10 @@ import {
|
|
|
21
21
|
import {
|
|
22
22
|
DEFAULT_TASK_TTL_MS,
|
|
23
23
|
clampTaskTtl
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-ZAIZCK2H.js";
|
|
25
25
|
import {
|
|
26
26
|
executeExpert
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-5MQPSHIG.js";
|
|
28
28
|
import {
|
|
29
29
|
JobStatusSchema,
|
|
30
30
|
VOTER_ROLES,
|
|
@@ -47,24 +47,24 @@ import {
|
|
|
47
47
|
simulationDeniedResult,
|
|
48
48
|
toJobSummary,
|
|
49
49
|
writeJobCancelled
|
|
50
|
-
} from "./chunk-
|
|
50
|
+
} from "./chunk-BSWCYRYH.js";
|
|
51
51
|
import {
|
|
52
52
|
allOf
|
|
53
53
|
} from "./chunk-OQB3XC5O.js";
|
|
54
54
|
import {
|
|
55
55
|
normalizeTopicToCanonical,
|
|
56
56
|
synthesizeResearch
|
|
57
|
-
} from "./chunk-
|
|
57
|
+
} from "./chunk-GFDE5IAZ.js";
|
|
58
58
|
import {
|
|
59
59
|
IssueTriage
|
|
60
|
-
} from "./chunk-
|
|
60
|
+
} from "./chunk-ZXTOZ7B3.js";
|
|
61
61
|
import {
|
|
62
62
|
resolveEnvMode,
|
|
63
63
|
sanitizeInput
|
|
64
|
-
} from "./chunk-
|
|
64
|
+
} from "./chunk-FU45UMX5.js";
|
|
65
65
|
import {
|
|
66
66
|
withPrerequisite
|
|
67
|
-
} from "./chunk-
|
|
67
|
+
} from "./chunk-ZKX6VVH2.js";
|
|
68
68
|
import {
|
|
69
69
|
NOOP_NOTIFIER,
|
|
70
70
|
RateLimiter,
|
|
@@ -88,18 +88,18 @@ import {
|
|
|
88
88
|
withAuditTrail,
|
|
89
89
|
withProgressHeartbeat,
|
|
90
90
|
wrapToolWithTimeout
|
|
91
|
-
} from "./chunk-
|
|
91
|
+
} from "./chunk-BD6S7IQ3.js";
|
|
92
92
|
import {
|
|
93
93
|
createAuditTrail,
|
|
94
94
|
createGraphAuditBridge,
|
|
95
95
|
emitPipelinePolicyEvent
|
|
96
|
-
} from "./chunk-
|
|
96
|
+
} from "./chunk-OOGKQTDN.js";
|
|
97
97
|
import {
|
|
98
98
|
EventTopics,
|
|
99
99
|
createEvent,
|
|
100
100
|
getGlobalEventBus,
|
|
101
101
|
getGlobalRegistry
|
|
102
|
-
} from "./chunk-
|
|
102
|
+
} from "./chunk-TC2QG4U3.js";
|
|
103
103
|
import {
|
|
104
104
|
IDENTIFIER_RE,
|
|
105
105
|
LANG_VALUES,
|
|
@@ -132,29 +132,29 @@ import {
|
|
|
132
132
|
parseRegistry,
|
|
133
133
|
sourceExistsInRegistry,
|
|
134
134
|
summarizeContextForPrompt
|
|
135
|
-
} from "./chunk-
|
|
135
|
+
} from "./chunk-2I5BBD6U.js";
|
|
136
136
|
import {
|
|
137
137
|
loadPapersRegistry,
|
|
138
138
|
loadTechniquesRegistry,
|
|
139
139
|
resolveInsideRoot
|
|
140
|
-
} from "./chunk-
|
|
140
|
+
} from "./chunk-F67CLL5B.js";
|
|
141
141
|
import {
|
|
142
142
|
getTokenEnvVars,
|
|
143
143
|
resolveToken
|
|
144
|
-
} from "./chunk-
|
|
144
|
+
} from "./chunk-FWBR6DZO.js";
|
|
145
145
|
import {
|
|
146
146
|
DEFAULT_RELEVANCE_CONFIG,
|
|
147
147
|
MemoryImportance,
|
|
148
148
|
calculateTextJaccardSimilarity,
|
|
149
149
|
getToolMemory
|
|
150
|
-
} from "./chunk-
|
|
150
|
+
} from "./chunk-P7IHQSCC.js";
|
|
151
151
|
import {
|
|
152
152
|
STOPWORDS,
|
|
153
153
|
truncateWithInfo
|
|
154
154
|
} from "./chunk-6T3EPABN.js";
|
|
155
155
|
import {
|
|
156
156
|
createSessionMemory
|
|
157
|
-
} from "./chunk-
|
|
157
|
+
} from "./chunk-OCFY37TZ.js";
|
|
158
158
|
import {
|
|
159
159
|
BUILT_IN_EXPERTS,
|
|
160
160
|
BuiltInExpertTypeSchema,
|
|
@@ -172,25 +172,25 @@ import {
|
|
|
172
172
|
getAvailableClis,
|
|
173
173
|
sleep,
|
|
174
174
|
withTimeout
|
|
175
|
-
} from "./chunk-
|
|
175
|
+
} from "./chunk-GSK2JRVW.js";
|
|
176
176
|
import {
|
|
177
177
|
BaseAdapter,
|
|
178
178
|
createStream,
|
|
179
179
|
requireApiKey,
|
|
180
180
|
validateApiKeyPresence
|
|
181
|
-
} from "./chunk-
|
|
181
|
+
} from "./chunk-ROCFIXAK.js";
|
|
182
182
|
import {
|
|
183
183
|
DEFAULTS
|
|
184
|
-
} from "./chunk-
|
|
184
|
+
} from "./chunk-SY54YKTT.js";
|
|
185
185
|
import {
|
|
186
186
|
getAvailabilityCache,
|
|
187
187
|
getCliForModelId,
|
|
188
188
|
resolveFallback
|
|
189
|
-
} from "./chunk-
|
|
189
|
+
} from "./chunk-NDVKXAK5.js";
|
|
190
190
|
import {
|
|
191
191
|
generateHyphenId,
|
|
192
192
|
generateUUID
|
|
193
|
-
} from "./chunk-
|
|
193
|
+
} from "./chunk-AS4B7KCT.js";
|
|
194
194
|
import {
|
|
195
195
|
AGENT_ROUTER_TIMEOUTS,
|
|
196
196
|
API_TIMEOUTS,
|
|
@@ -294,7 +294,7 @@ import {
|
|
|
294
294
|
selectStrategyByManifest,
|
|
295
295
|
toExpertTaskAnalysisResult,
|
|
296
296
|
withStep
|
|
297
|
-
} from "./chunk-
|
|
297
|
+
} from "./chunk-6OPLDOJG.js";
|
|
298
298
|
import {
|
|
299
299
|
ensureLearningDir,
|
|
300
300
|
getMetaOutcomesFile,
|
|
@@ -27471,7 +27471,7 @@ function calculateConvergenceScore(featureWeights) {
|
|
|
27471
27471
|
const variance = recent.reduce((s, w) => s + (w - mean) ** 2, 0) / recent.length;
|
|
27472
27472
|
variances.push(variance);
|
|
27473
27473
|
}
|
|
27474
|
-
if (variances.length === 0) return
|
|
27474
|
+
if (variances.length === 0) return null;
|
|
27475
27475
|
const avgVariance = variances.reduce((s, v) => s + v, 0) / variances.length;
|
|
27476
27476
|
return Math.exp(-avgVariance);
|
|
27477
27477
|
}
|
|
@@ -29713,7 +29713,7 @@ function execIdFields(executionId) {
|
|
|
29713
29713
|
async function populateUnifiedContextOnState(state, options) {
|
|
29714
29714
|
const taskCandidate = state["task"];
|
|
29715
29715
|
if (typeof taskCandidate !== "string" || taskCandidate === "") return;
|
|
29716
|
-
const { getContextForTask: getContextForTask2, inferTaskCategory: inferTaskCategory2 } = await import("./context-retriever-
|
|
29716
|
+
const { getContextForTask: getContextForTask2, inferTaskCategory: inferTaskCategory2 } = await import("./context-retriever-3R3BWMEW.js");
|
|
29717
29717
|
const category = inferTaskCategory2(taskCandidate);
|
|
29718
29718
|
const executionId = options?.executionId;
|
|
29719
29719
|
const execFields = execIdFields(executionId);
|
|
@@ -42475,17 +42475,22 @@ import { z as z81 } from "zod";
|
|
|
42475
42475
|
var MemoryStatsInputSchema = z81.object({
|
|
42476
42476
|
includeDecay: z81.boolean().optional().default(true).describe("Include decay statistics (default: true)")
|
|
42477
42477
|
});
|
|
42478
|
-
|
|
42479
|
-
const
|
|
42480
|
-
const
|
|
42478
|
+
function collectSessionStats(toolMemory) {
|
|
42479
|
+
const counts = toolMemory.getSessionCounts();
|
|
42480
|
+
const stats = {
|
|
42481
42481
|
learningsCount: 0,
|
|
42482
|
-
tasksCount:
|
|
42483
|
-
errorsCount:
|
|
42482
|
+
tasksCount: counts.tasksCount,
|
|
42483
|
+
errorsCount: counts.errorsCount
|
|
42484
42484
|
};
|
|
42485
42485
|
const learnings = toolMemory.getRelevantLearnings("", 1e3);
|
|
42486
42486
|
if (learnings !== void 0) {
|
|
42487
|
-
|
|
42487
|
+
stats.learningsCount = learnings.split("\n").filter((l) => l.trim() !== "").length;
|
|
42488
42488
|
}
|
|
42489
|
+
return stats;
|
|
42490
|
+
}
|
|
42491
|
+
async function collectMemoryStats(input, logger58) {
|
|
42492
|
+
const toolMemory = getToolMemory();
|
|
42493
|
+
const sessionStats = collectSessionStats(toolMemory);
|
|
42489
42494
|
const beliefStats = {
|
|
42490
42495
|
beliefsCount: toolMemory.getBeliefCount(),
|
|
42491
42496
|
available: true
|
|
@@ -45516,7 +45521,7 @@ async function tryIssueTriage(task) {
|
|
|
45516
45521
|
try {
|
|
45517
45522
|
const issueMatch = task.match(/github\.com\/([^/]+\/[^/]+)\/issues\/(\d+)/);
|
|
45518
45523
|
if (issueMatch === null) return null;
|
|
45519
|
-
const { createIssueTriage } = await import("./issue-triage-
|
|
45524
|
+
const { createIssueTriage } = await import("./issue-triage-42TGOOZX.js");
|
|
45520
45525
|
const triage = createIssueTriage();
|
|
45521
45526
|
const owner = issueMatch[1] ?? "";
|
|
45522
45527
|
const num = issueMatch[2] ?? "";
|
|
@@ -45544,7 +45549,7 @@ var VALID_TEMPLATES = /* @__PURE__ */ new Set([
|
|
|
45544
45549
|
]);
|
|
45545
45550
|
async function classifyWithLLM(task) {
|
|
45546
45551
|
try {
|
|
45547
|
-
const { executeExpert: executeExpert2 } = await import("./expert-bridge-
|
|
45552
|
+
const { executeExpert: executeExpert2 } = await import("./expert-bridge-XIFIEXQM.js");
|
|
45548
45553
|
const prompt = [
|
|
45549
45554
|
"Classify this task into exactly one pipeline template.",
|
|
45550
45555
|
"Templates: dev (implementation/bug fix/refactor), research (investigate/evaluate/compare),",
|
|
@@ -47084,7 +47089,7 @@ var memoryInitPromise = null;
|
|
|
47084
47089
|
async function initPipelineMemory() {
|
|
47085
47090
|
if (cachedMemory !== null) return cachedMemory;
|
|
47086
47091
|
try {
|
|
47087
|
-
const { createSessionMemory: createSessionMemory2 } = await import("./session-memory-
|
|
47092
|
+
const { createSessionMemory: createSessionMemory2 } = await import("./session-memory-QK544BZF.js");
|
|
47088
47093
|
const { getLearningDir } = await import("./learning-persistence-7O5QYDM7.js");
|
|
47089
47094
|
const mem = createSessionMemory2(getLearningDir());
|
|
47090
47095
|
mem.startSession(`pipeline-${String(getTimeProvider().now())}`);
|
|
@@ -47146,7 +47151,7 @@ function recordRoutingExperience(category, success, durationMs, tokensUsed = 0,
|
|
|
47146
47151
|
callRecord(routingMemoryCache);
|
|
47147
47152
|
return;
|
|
47148
47153
|
}
|
|
47149
|
-
routingMemoryInitPromise ??= import("./routing-memory-
|
|
47154
|
+
routingMemoryInitPromise ??= import("./routing-memory-GSOJXKYR.js").then(({ createRoutingMemory }) => {
|
|
47150
47155
|
routingMemoryCache ??= createRoutingMemory();
|
|
47151
47156
|
return routingMemoryCache;
|
|
47152
47157
|
}).catch((error) => {
|
|
@@ -47180,7 +47185,7 @@ ${text}` : "";
|
|
|
47180
47185
|
}
|
|
47181
47186
|
async function getWeatherContext() {
|
|
47182
47187
|
try {
|
|
47183
|
-
const { generateWeatherReport: generateWeatherReport2 } = await import("./weather-report-
|
|
47188
|
+
const { generateWeatherReport: generateWeatherReport2 } = await import("./weather-report-JQGPC6ZC.js");
|
|
47184
47189
|
const report = generateWeatherReport2({ includeAdaptive: true });
|
|
47185
47190
|
const mappings = "recommendedMappings" in report ? report.recommendedMappings : [];
|
|
47186
47191
|
if (!Array.isArray(mappings) || mappings.length === 0) return "";
|
|
@@ -47198,7 +47203,7 @@ ${lines}
|
|
|
47198
47203
|
}
|
|
47199
47204
|
async function getMemoryContext(task) {
|
|
47200
47205
|
try {
|
|
47201
|
-
const { createSessionMemory: createSessionMemory2 } = await import("./session-memory-
|
|
47206
|
+
const { createSessionMemory: createSessionMemory2 } = await import("./session-memory-QK544BZF.js");
|
|
47202
47207
|
const { getLearningDir } = await import("./learning-persistence-7O5QYDM7.js");
|
|
47203
47208
|
const memory = createSessionMemory2(getLearningDir(), { maxLearningsInContext: 10 });
|
|
47204
47209
|
const learnings = memory.searchLearnings(task.slice(0, 200));
|
|
@@ -47317,7 +47322,7 @@ ${contextBlock}`;
|
|
|
47317
47322
|
const strategy = config.votingStrategy ?? "higher_order";
|
|
47318
47323
|
await postProgress(config, "Vote", `Running consensus with ${strategy} strategy...`);
|
|
47319
47324
|
try {
|
|
47320
|
-
const { executeVoting } = await import("./consensus-vote-
|
|
47325
|
+
const { executeVoting } = await import("./consensus-vote-2TE2APCF.js");
|
|
47321
47326
|
const votingResult = await executeVoting(
|
|
47322
47327
|
{
|
|
47323
47328
|
proposal: buildVoteProposal(plan, research),
|
|
@@ -47756,7 +47761,7 @@ async function searchCodebaseForTask(task) {
|
|
|
47756
47761
|
}
|
|
47757
47762
|
async function queryResearchRegistry(task) {
|
|
47758
47763
|
try {
|
|
47759
|
-
const { synthesizeResearch: synthesizeResearch2 } = await import("./research-helpers-synthesize-
|
|
47764
|
+
const { synthesizeResearch: synthesizeResearch2 } = await import("./research-helpers-synthesize-UZGA2H5E.js");
|
|
47760
47765
|
const topic = task.split(/[.!?\n]/).filter((s) => s.trim().length > 10)[0]?.trim();
|
|
47761
47766
|
if (topic === void 0) return null;
|
|
47762
47767
|
const result = await synthesizeResearch2(topic.slice(0, 50));
|
|
@@ -47827,7 +47832,7 @@ function createScanStageWrapper() {
|
|
|
47827
47832
|
try {
|
|
47828
47833
|
const slug = ctx.task.match(/([a-zA-Z0-9._-]+\/[a-zA-Z0-9._-]+)/)?.[1];
|
|
47829
47834
|
if (slug !== void 0) {
|
|
47830
|
-
const { generateSecurityPlan: generateSecurityPlan2 } = await import("./repo-security-plan-
|
|
47835
|
+
const { generateSecurityPlan: generateSecurityPlan2 } = await import("./repo-security-plan-MK3OFGIC.js");
|
|
47831
47836
|
const plan = await generateSecurityPlan2({ repo: slug, maxScanners: 10 });
|
|
47832
47837
|
const recs = plan.recommendations.slice(0, 5).map((r) => `${r.priority}: ${r.displayName} (${r.category})`).join("; ");
|
|
47833
47838
|
return output(PIPELINE_STATE_KEYS.FINDINGS, recs, getTimeProvider().now() - start, true);
|
|
@@ -50966,7 +50971,7 @@ var GitHubTaskTracker = class {
|
|
|
50966
50971
|
cachedProvider = null;
|
|
50967
50972
|
async getProvider() {
|
|
50968
50973
|
if (this.cachedProvider !== null) return this.cachedProvider;
|
|
50969
|
-
const { createScmProvider } = await import("./factory-
|
|
50974
|
+
const { createScmProvider } = await import("./factory-2TN6OVWR.js");
|
|
50970
50975
|
const result = await createScmProvider({ repo: this.config.repo ?? "" });
|
|
50971
50976
|
if (!result.ok) throw new Error(`SCM provider error: ${result.error.message}`);
|
|
50972
50977
|
this.cachedProvider = result.value;
|
|
@@ -51881,7 +51886,7 @@ async function probeSource(source, includeModelIds) {
|
|
|
51881
51886
|
}
|
|
51882
51887
|
}
|
|
51883
51888
|
async function defaultSources(includeOpenRouter) {
|
|
51884
|
-
const { createAllAdapters: createAllAdapters2 } = await import("./factory-
|
|
51889
|
+
const { createAllAdapters: createAllAdapters2 } = await import("./factory-3T6NTUDH.js");
|
|
51885
51890
|
const adapters = createAllAdapters2();
|
|
51886
51891
|
return buildDefaultModelSources(adapters, { includeOpenRouter });
|
|
51887
51892
|
}
|
|
@@ -55953,4 +55958,4 @@ export {
|
|
|
55953
55958
|
shutdownFeedbackSubscriber,
|
|
55954
55959
|
createEventBusBridge
|
|
55955
55960
|
};
|
|
55956
|
-
//# sourceMappingURL=chunk-
|
|
55961
|
+
//# sourceMappingURL=chunk-CVDQYONC.js.map
|