nexus-agents 4.13.0 → 4.14.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-OULJI7VH.js → child-mcp-config-E5YGOYIM.js} +2 -2
- package/dist/{chunk-P45XNRHB.js → chunk-3U3AAMAU.js} +2 -2
- package/dist/{chunk-HBF7O6CN.js → chunk-45X7AGDF.js} +6 -6
- package/dist/{chunk-V253VL7S.js → chunk-6IDZUUC5.js} +3 -3
- package/dist/{chunk-J6JEW4QZ.js → chunk-6MSKPFFM.js} +7 -7
- package/dist/{chunk-6454KSCM.js → chunk-7ERIPG4P.js} +2 -2
- package/dist/{chunk-KUGBMQAP.js → chunk-CEHYUQTT.js} +3 -3
- package/dist/{chunk-PWSW5Z4L.js → chunk-DJ2NGRHS.js} +2 -2
- package/dist/{chunk-C7EXWOXQ.js → chunk-GLYII4EO.js} +5 -5
- package/dist/{chunk-VPTDFOAK.js → chunk-GRJC2F3P.js} +3 -3
- package/dist/{chunk-VENIFAMX.js → chunk-HGO7LVRL.js} +4 -4
- package/dist/{chunk-B6C3JCQB.js → chunk-HW3BCQKG.js} +2 -2
- package/dist/{chunk-F6MUN523.js → chunk-IMI6LRZ2.js} +2 -2
- package/dist/{chunk-EHMMTCCS.js → chunk-IOAG43ER.js} +5 -5
- package/dist/{chunk-WATNLQS7.js → chunk-KNDUA6HH.js} +2 -2
- package/dist/{chunk-LUBCO6ZN.js → chunk-KQU3HO7T.js} +2 -2
- package/dist/{chunk-232RDSCM.js → chunk-LRUPAIVW.js} +2 -2
- package/dist/{chunk-I6JMAM4J.js → chunk-LVA53Q4Y.js} +2 -2
- package/dist/{chunk-TANMACVQ.js → chunk-M5KWBRUY.js} +2 -2
- package/dist/{chunk-YHY5AZL2.js → chunk-OC5EBGLD.js} +2 -2
- package/dist/{chunk-W6IZVEIM.js → chunk-PWUPYWJE.js} +2 -2
- package/dist/{chunk-5PCTGUMF.js → chunk-Q2LABBI5.js} +3 -3
- package/dist/{chunk-7STKQ3IH.js → chunk-R4TX27OZ.js} +2 -2
- package/dist/{chunk-IZUT5OHH.js → chunk-RGX43IEW.js} +2 -2
- package/dist/{chunk-IZUT5OHH.js.map → chunk-RGX43IEW.js.map} +1 -1
- package/dist/{chunk-F6SRPGDK.js → chunk-SJMQFZCV.js} +8 -8
- package/dist/{chunk-NMNTYAV2.js → chunk-SMPLE7KA.js} +2 -2
- package/dist/{chunk-ARTQO7XZ.js → chunk-T25FZOJ3.js} +4 -4
- package/dist/{chunk-4WVGF3SL.js → chunk-TYNKSYWN.js} +3 -3
- package/dist/{chunk-XGCYJLTP.js → chunk-ULAF5ULM.js} +8 -8
- package/dist/{chunk-2OAOW7E2.js → chunk-UZTRCADY.js} +48 -39
- package/dist/{chunk-2OAOW7E2.js.map → chunk-UZTRCADY.js.map} +1 -1
- package/dist/{chunk-XWIFBBBH.js → chunk-XHDAHIAJ.js} +2 -2
- package/dist/{chunk-56LJJOBN.js → chunk-XSOMMTPM.js} +4 -4
- package/dist/{chunk-VZWNGPUH.js → chunk-Y24TNAK5.js} +8 -8
- package/dist/{chunk-VZVGT4MN.js → chunk-ZMFD77AY.js} +5 -5
- package/dist/{cli-circuit-breaker-4AVWA333.js → cli-circuit-breaker-D4LO2S5C.js} +3 -3
- package/dist/cli.js +41 -41
- package/dist/{composite-router-7OTZN7NS.js → composite-router-JFRT5WIU.js} +2 -2
- package/dist/{consensus-vote-KFLDRUJJ.js → consensus-vote-2WUR2MN5.js} +16 -16
- package/dist/{context-retriever-2NZWXF6Z.js → context-retriever-5S6NTZRG.js} +8 -8
- package/dist/{doctor-deep-MC2FGSAF.js → doctor-deep-FXQN3UQZ.js} +3 -3
- package/dist/{doctor-live-25LRXKBO.js → doctor-live-HE5WX4IJ.js} +9 -9
- package/dist/{expert-bridge-2YLK3E6Q.js → expert-bridge-46OBG3SJ.js} +4 -4
- package/dist/{factory-G57M6CD4.js → factory-S67EX46S.js} +5 -5
- package/dist/{factory-T7KN4CKD.js → factory-ZXDSU5MF.js} +9 -9
- package/dist/{improvement-review-FFADRM4I.js → improvement-review-CWQCW4QJ.js} +5 -5
- package/dist/index.js +30 -30
- package/dist/{init-opencode-OSZF74AL.js → init-opencode-UNWGZXLG.js} +6 -6
- package/dist/issue-triage-FA3I6DFO.js +17 -0
- package/dist/{pr-reviewer-helpers-E3QXOVMT.js → pr-reviewer-helpers-PFPZQCPY.js} +4 -4
- package/dist/{registry-command-ZMKZ5CRZ.js → registry-command-YANXNMSO.js} +2 -2
- package/dist/{repo-security-plan-BPET6KTP.js → repo-security-plan-EWNWYF3Y.js} +3 -3
- package/dist/{research-helpers-synthesize-M4SONOWL.js → research-helpers-synthesize-TMXQFCDY.js} +4 -4
- package/dist/{routing-memory-3UWP6NOX.js → routing-memory-OZVM7DA3.js} +2 -2
- package/dist/{session-memory-N2ABITF7.js → session-memory-KD5Y7TVD.js} +3 -3
- package/dist/{setup-command-BXIJOFRP.js → setup-command-FRMKDYMA.js} +14 -14
- package/dist/{setup-config-PJNXP57G.js → setup-config-X2UWR7X2.js} +3 -3
- package/dist/{setup-custom-api-PE2M5HWL.js → setup-custom-api-PEP4D5KN.js} +4 -4
- package/dist/{tool-memory-CARCDHTN.js → tool-memory-JRZFQ3PX.js} +5 -5
- package/dist/{unified-registry-HVALHHPY.js → unified-registry-H44QDVXY.js} +10 -10
- package/dist/{weather-report-ZA7DBOC3.js → weather-report-4TP5YCFG.js} +2 -2
- package/package.json +1 -1
- package/dist/issue-triage-KVYM5FQ5.js +0 -17
- /package/dist/{child-mcp-config-OULJI7VH.js.map → child-mcp-config-E5YGOYIM.js.map} +0 -0
- /package/dist/{chunk-P45XNRHB.js.map → chunk-3U3AAMAU.js.map} +0 -0
- /package/dist/{chunk-HBF7O6CN.js.map → chunk-45X7AGDF.js.map} +0 -0
- /package/dist/{chunk-V253VL7S.js.map → chunk-6IDZUUC5.js.map} +0 -0
- /package/dist/{chunk-J6JEW4QZ.js.map → chunk-6MSKPFFM.js.map} +0 -0
- /package/dist/{chunk-6454KSCM.js.map → chunk-7ERIPG4P.js.map} +0 -0
- /package/dist/{chunk-KUGBMQAP.js.map → chunk-CEHYUQTT.js.map} +0 -0
- /package/dist/{chunk-PWSW5Z4L.js.map → chunk-DJ2NGRHS.js.map} +0 -0
- /package/dist/{chunk-C7EXWOXQ.js.map → chunk-GLYII4EO.js.map} +0 -0
- /package/dist/{chunk-VPTDFOAK.js.map → chunk-GRJC2F3P.js.map} +0 -0
- /package/dist/{chunk-VENIFAMX.js.map → chunk-HGO7LVRL.js.map} +0 -0
- /package/dist/{chunk-B6C3JCQB.js.map → chunk-HW3BCQKG.js.map} +0 -0
- /package/dist/{chunk-F6MUN523.js.map → chunk-IMI6LRZ2.js.map} +0 -0
- /package/dist/{chunk-EHMMTCCS.js.map → chunk-IOAG43ER.js.map} +0 -0
- /package/dist/{chunk-WATNLQS7.js.map → chunk-KNDUA6HH.js.map} +0 -0
- /package/dist/{chunk-LUBCO6ZN.js.map → chunk-KQU3HO7T.js.map} +0 -0
- /package/dist/{chunk-232RDSCM.js.map → chunk-LRUPAIVW.js.map} +0 -0
- /package/dist/{chunk-I6JMAM4J.js.map → chunk-LVA53Q4Y.js.map} +0 -0
- /package/dist/{chunk-TANMACVQ.js.map → chunk-M5KWBRUY.js.map} +0 -0
- /package/dist/{chunk-YHY5AZL2.js.map → chunk-OC5EBGLD.js.map} +0 -0
- /package/dist/{chunk-W6IZVEIM.js.map → chunk-PWUPYWJE.js.map} +0 -0
- /package/dist/{chunk-5PCTGUMF.js.map → chunk-Q2LABBI5.js.map} +0 -0
- /package/dist/{chunk-7STKQ3IH.js.map → chunk-R4TX27OZ.js.map} +0 -0
- /package/dist/{chunk-F6SRPGDK.js.map → chunk-SJMQFZCV.js.map} +0 -0
- /package/dist/{chunk-NMNTYAV2.js.map → chunk-SMPLE7KA.js.map} +0 -0
- /package/dist/{chunk-ARTQO7XZ.js.map → chunk-T25FZOJ3.js.map} +0 -0
- /package/dist/{chunk-4WVGF3SL.js.map → chunk-TYNKSYWN.js.map} +0 -0
- /package/dist/{chunk-XGCYJLTP.js.map → chunk-ULAF5ULM.js.map} +0 -0
- /package/dist/{chunk-XWIFBBBH.js.map → chunk-XHDAHIAJ.js.map} +0 -0
- /package/dist/{chunk-56LJJOBN.js.map → chunk-XSOMMTPM.js.map} +0 -0
- /package/dist/{chunk-VZWNGPUH.js.map → chunk-Y24TNAK5.js.map} +0 -0
- /package/dist/{chunk-VZVGT4MN.js.map → chunk-ZMFD77AY.js.map} +0 -0
- /package/dist/{cli-circuit-breaker-4AVWA333.js.map → cli-circuit-breaker-D4LO2S5C.js.map} +0 -0
- /package/dist/{composite-router-7OTZN7NS.js.map → composite-router-JFRT5WIU.js.map} +0 -0
- /package/dist/{consensus-vote-KFLDRUJJ.js.map → consensus-vote-2WUR2MN5.js.map} +0 -0
- /package/dist/{context-retriever-2NZWXF6Z.js.map → context-retriever-5S6NTZRG.js.map} +0 -0
- /package/dist/{doctor-deep-MC2FGSAF.js.map → doctor-deep-FXQN3UQZ.js.map} +0 -0
- /package/dist/{doctor-live-25LRXKBO.js.map → doctor-live-HE5WX4IJ.js.map} +0 -0
- /package/dist/{expert-bridge-2YLK3E6Q.js.map → expert-bridge-46OBG3SJ.js.map} +0 -0
- /package/dist/{factory-G57M6CD4.js.map → factory-S67EX46S.js.map} +0 -0
- /package/dist/{factory-T7KN4CKD.js.map → factory-ZXDSU5MF.js.map} +0 -0
- /package/dist/{improvement-review-FFADRM4I.js.map → improvement-review-CWQCW4QJ.js.map} +0 -0
- /package/dist/{init-opencode-OSZF74AL.js.map → init-opencode-UNWGZXLG.js.map} +0 -0
- /package/dist/{issue-triage-KVYM5FQ5.js.map → issue-triage-FA3I6DFO.js.map} +0 -0
- /package/dist/{pr-reviewer-helpers-E3QXOVMT.js.map → pr-reviewer-helpers-PFPZQCPY.js.map} +0 -0
- /package/dist/{registry-command-ZMKZ5CRZ.js.map → registry-command-YANXNMSO.js.map} +0 -0
- /package/dist/{repo-security-plan-BPET6KTP.js.map → repo-security-plan-EWNWYF3Y.js.map} +0 -0
- /package/dist/{research-helpers-synthesize-M4SONOWL.js.map → research-helpers-synthesize-TMXQFCDY.js.map} +0 -0
- /package/dist/{routing-memory-3UWP6NOX.js.map → routing-memory-OZVM7DA3.js.map} +0 -0
- /package/dist/{session-memory-N2ABITF7.js.map → session-memory-KD5Y7TVD.js.map} +0 -0
- /package/dist/{setup-command-BXIJOFRP.js.map → setup-command-FRMKDYMA.js.map} +0 -0
- /package/dist/{setup-config-PJNXP57G.js.map → setup-config-X2UWR7X2.js.map} +0 -0
- /package/dist/{setup-custom-api-PE2M5HWL.js.map → setup-custom-api-PEP4D5KN.js.map} +0 -0
- /package/dist/{tool-memory-CARCDHTN.js.map → tool-memory-JRZFQ3PX.js.map} +0 -0
- /package/dist/{unified-registry-HVALHHPY.js.map → unified-registry-H44QDVXY.js.map} +0 -0
- /package/dist/{weather-report-ZA7DBOC3.js.map → weather-report-4TP5YCFG.js.map} +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
generateSecurityPlan
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-XHDAHIAJ.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-Y24TNAK5.js";
|
|
26
26
|
import {
|
|
27
27
|
executeExpert
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-6MSKPFFM.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-ULAF5ULM.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-Q2LABBI5.js";
|
|
57
57
|
import {
|
|
58
58
|
IssueTriage
|
|
59
|
-
} from "./chunk-
|
|
59
|
+
} from "./chunk-45X7AGDF.js";
|
|
60
60
|
import {
|
|
61
61
|
resolveEnvMode,
|
|
62
62
|
sanitizeInput
|
|
63
|
-
} from "./chunk-
|
|
63
|
+
} from "./chunk-IMI6LRZ2.js";
|
|
64
64
|
import {
|
|
65
65
|
withPrerequisite
|
|
66
|
-
} from "./chunk-
|
|
66
|
+
} from "./chunk-CEHYUQTT.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-6IDZUUC5.js";
|
|
91
91
|
import {
|
|
92
92
|
createAuditTrail,
|
|
93
93
|
createGraphAuditBridge,
|
|
94
94
|
emitPipelinePolicyEvent
|
|
95
|
-
} from "./chunk-
|
|
95
|
+
} from "./chunk-KQU3HO7T.js";
|
|
96
96
|
import {
|
|
97
97
|
EventTopics,
|
|
98
98
|
createEvent,
|
|
99
99
|
getGlobalEventBus,
|
|
100
100
|
getGlobalRegistry
|
|
101
|
-
} from "./chunk-
|
|
101
|
+
} from "./chunk-XSOMMTPM.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-IOAG43ER.js";
|
|
135
135
|
import {
|
|
136
136
|
loadPapersRegistry,
|
|
137
137
|
loadTechniquesRegistry
|
|
138
|
-
} from "./chunk-
|
|
138
|
+
} from "./chunk-DJ2NGRHS.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-3U3AAMAU.js";
|
|
146
146
|
import {
|
|
147
147
|
DEFAULT_RELEVANCE_CONFIG,
|
|
148
148
|
MemoryImportance,
|
|
149
149
|
calculateTextJaccardSimilarity,
|
|
150
150
|
getToolMemory
|
|
151
|
-
} from "./chunk-
|
|
151
|
+
} from "./chunk-T25FZOJ3.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-M5KWBRUY.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-SJMQFZCV.js";
|
|
177
177
|
import {
|
|
178
178
|
BaseAdapter,
|
|
179
179
|
createStream,
|
|
180
180
|
requireApiKey,
|
|
181
181
|
validateApiKeyPresence
|
|
182
|
-
} from "./chunk-
|
|
182
|
+
} from "./chunk-7ERIPG4P.js";
|
|
183
183
|
import {
|
|
184
184
|
DEFAULTS
|
|
185
|
-
} from "./chunk-
|
|
185
|
+
} from "./chunk-HW3BCQKG.js";
|
|
186
186
|
import {
|
|
187
187
|
getAvailabilityCache,
|
|
188
188
|
getCliForModelId,
|
|
189
189
|
resolveFallback
|
|
190
|
-
} from "./chunk-
|
|
190
|
+
} from "./chunk-PWUPYWJE.js";
|
|
191
191
|
import {
|
|
192
192
|
generateHyphenId,
|
|
193
193
|
generateUUID
|
|
194
|
-
} from "./chunk-
|
|
194
|
+
} from "./chunk-LVA53Q4Y.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-TYNKSYWN.js";
|
|
295
295
|
import {
|
|
296
296
|
ensureLearningDir,
|
|
297
297
|
getMetaOutcomesFile,
|
|
@@ -18571,10 +18571,12 @@ var StateManager = class {
|
|
|
18571
18571
|
const startTime = new Date(current.startedAt).getTime();
|
|
18572
18572
|
const elapsedMs = getTimeProvider().now() - startTime;
|
|
18573
18573
|
const costPerToken = 1e-5;
|
|
18574
|
+
const measured = output2.tokensMeasured !== false;
|
|
18574
18575
|
return {
|
|
18575
18576
|
progress: current.progress,
|
|
18576
|
-
totalCost: current.totalCost + output2.tokensUsed * costPerToken,
|
|
18577
|
-
totalTokens: current.totalTokens + output2.tokensUsed,
|
|
18577
|
+
totalCost: current.totalCost + (measured ? output2.tokensUsed * costPerToken : 0),
|
|
18578
|
+
totalTokens: current.totalTokens + (measured ? output2.tokensUsed : 0),
|
|
18579
|
+
unmeasuredSteps: (current.unmeasuredSteps ?? 0) + (measured ? 0 : 1),
|
|
18578
18580
|
elapsedMs,
|
|
18579
18581
|
startedAt: current.startedAt
|
|
18580
18582
|
};
|
|
@@ -19501,6 +19503,7 @@ var DEFAULT_REWARD_CONFIG = {
|
|
|
19501
19503
|
maxTime: 3e5
|
|
19502
19504
|
};
|
|
19503
19505
|
function computeStepReward(output2, progressDelta, config = DEFAULT_REWARD_CONFIG) {
|
|
19506
|
+
if (output2.tokensMeasured === false) return null;
|
|
19504
19507
|
const progressReward = progressDelta * config.progressWeight;
|
|
19505
19508
|
const costPenalty = output2.tokensUsed * 1e-5 / config.maxCost;
|
|
19506
19509
|
const timePenalty = output2.durationMs / config.maxTime;
|
|
@@ -19551,19 +19554,24 @@ function computeMetrics(trajectory, emergentPatterns, success) {
|
|
|
19551
19554
|
if (trajectory.length === 0) {
|
|
19552
19555
|
return {
|
|
19553
19556
|
avgReward: 0,
|
|
19557
|
+
scoredSteps: 0,
|
|
19554
19558
|
taskCompletionRate: success ? 1 : 0,
|
|
19555
19559
|
efficiencyScore: 0,
|
|
19556
19560
|
compactionScore: 0,
|
|
19557
19561
|
cyclicalityScore: 0
|
|
19558
19562
|
};
|
|
19559
19563
|
}
|
|
19560
|
-
const
|
|
19564
|
+
const scored = trajectory.filter(
|
|
19565
|
+
(step) => step.reward !== null
|
|
19566
|
+
);
|
|
19567
|
+
const avgReward = scored.length > 0 ? scored.reduce((sum, step) => sum + step.reward, 0) / scored.length : 0;
|
|
19561
19568
|
const totalTokens = trajectory.reduce((sum, s) => sum + s.agentOutput.tokensUsed, 0);
|
|
19562
19569
|
const totalTime = trajectory.reduce((sum, s) => sum + s.agentOutput.durationMs, 0);
|
|
19563
19570
|
const efficiencyScore = totalTokens / 1e4 + totalTime / 3e5 + trajectory.length / 10;
|
|
19564
19571
|
const compactionScore = calculateCompactionScore(emergentPatterns.hubAgents);
|
|
19565
19572
|
return {
|
|
19566
19573
|
avgReward: Math.round(avgReward * 1e3) / 1e3,
|
|
19574
|
+
scoredSteps: scored.length,
|
|
19567
19575
|
taskCompletionRate: success ? 1 : 0,
|
|
19568
19576
|
efficiencyScore: Math.round(efficiencyScore * 1e3) / 1e3,
|
|
19569
19577
|
compactionScore: Math.round(compactionScore * 100) / 100,
|
|
@@ -19599,6 +19607,7 @@ function buildAgentStepOutput(step, agentId, result) {
|
|
|
19599
19607
|
output: result.output,
|
|
19600
19608
|
durationMs: result.metadata.durationMs,
|
|
19601
19609
|
tokensUsed: result.metadata.tokensUsed,
|
|
19610
|
+
...result.metadata.tokensMeasured === void 0 ? {} : { tokensMeasured: result.metadata.tokensMeasured },
|
|
19602
19611
|
model: result.metadata.model
|
|
19603
19612
|
};
|
|
19604
19613
|
}
|
|
@@ -20159,7 +20168,7 @@ function extractLogProbability(distribution, selectedAgent) {
|
|
|
20159
20168
|
return Math.log(clampedProb);
|
|
20160
20169
|
}
|
|
20161
20170
|
function convertTrajectory(steps) {
|
|
20162
|
-
return steps.map((step) => {
|
|
20171
|
+
return steps.filter((step) => step.reward !== null).map((step) => {
|
|
20163
20172
|
const logProb = extractLogProbability(step.distribution, step.selectedAgent);
|
|
20164
20173
|
return {
|
|
20165
20174
|
state: step.newState,
|
|
@@ -28267,7 +28276,7 @@ function execIdFields(executionId) {
|
|
|
28267
28276
|
async function populateUnifiedContextOnState(state, options) {
|
|
28268
28277
|
const taskCandidate = state["task"];
|
|
28269
28278
|
if (typeof taskCandidate !== "string" || taskCandidate === "") return;
|
|
28270
|
-
const { getContextForTask: getContextForTask2, inferTaskCategory: inferTaskCategory2 } = await import("./context-retriever-
|
|
28279
|
+
const { getContextForTask: getContextForTask2, inferTaskCategory: inferTaskCategory2 } = await import("./context-retriever-5S6NTZRG.js");
|
|
28271
28280
|
const category = inferTaskCategory2(taskCandidate);
|
|
28272
28281
|
const executionId = options?.executionId;
|
|
28273
28282
|
const execFields = execIdFields(executionId);
|
|
@@ -43966,7 +43975,7 @@ async function tryIssueTriage(task) {
|
|
|
43966
43975
|
try {
|
|
43967
43976
|
const issueMatch = task.match(/github\.com\/([^/]+\/[^/]+)\/issues\/(\d+)/);
|
|
43968
43977
|
if (issueMatch === null) return null;
|
|
43969
|
-
const { createIssueTriage } = await import("./issue-triage-
|
|
43978
|
+
const { createIssueTriage } = await import("./issue-triage-FA3I6DFO.js");
|
|
43970
43979
|
const triage = createIssueTriage();
|
|
43971
43980
|
const owner = issueMatch[1] ?? "";
|
|
43972
43981
|
const num = issueMatch[2] ?? "";
|
|
@@ -43994,7 +44003,7 @@ var VALID_TEMPLATES = /* @__PURE__ */ new Set([
|
|
|
43994
44003
|
]);
|
|
43995
44004
|
async function classifyWithLLM(task) {
|
|
43996
44005
|
try {
|
|
43997
|
-
const { executeExpert: executeExpert2 } = await import("./expert-bridge-
|
|
44006
|
+
const { executeExpert: executeExpert2 } = await import("./expert-bridge-46OBG3SJ.js");
|
|
43998
44007
|
const prompt = [
|
|
43999
44008
|
"Classify this task into exactly one pipeline template.",
|
|
44000
44009
|
"Templates: dev (implementation/bug fix/refactor), research (investigate/evaluate/compare),",
|
|
@@ -45735,7 +45744,7 @@ var memoryInitPromise = null;
|
|
|
45735
45744
|
async function initPipelineMemory() {
|
|
45736
45745
|
if (cachedMemory !== null) return cachedMemory;
|
|
45737
45746
|
try {
|
|
45738
|
-
const { createSessionMemory: createSessionMemory2 } = await import("./session-memory-
|
|
45747
|
+
const { createSessionMemory: createSessionMemory2 } = await import("./session-memory-KD5Y7TVD.js");
|
|
45739
45748
|
const { getLearningDir } = await import("./learning-persistence-EGY4VKKO.js");
|
|
45740
45749
|
const mem = createSessionMemory2(getLearningDir());
|
|
45741
45750
|
mem.startSession(`pipeline-${String(getTimeProvider().now())}`);
|
|
@@ -45797,7 +45806,7 @@ function recordRoutingExperience(category, success, durationMs, tokensUsed = 0,
|
|
|
45797
45806
|
callRecord(routingMemoryCache);
|
|
45798
45807
|
return;
|
|
45799
45808
|
}
|
|
45800
|
-
routingMemoryInitPromise ??= import("./routing-memory-
|
|
45809
|
+
routingMemoryInitPromise ??= import("./routing-memory-OZVM7DA3.js").then(({ createRoutingMemory }) => {
|
|
45801
45810
|
routingMemoryCache ??= createRoutingMemory();
|
|
45802
45811
|
return routingMemoryCache;
|
|
45803
45812
|
}).catch((error) => {
|
|
@@ -45831,7 +45840,7 @@ ${text}` : "";
|
|
|
45831
45840
|
}
|
|
45832
45841
|
async function getWeatherContext() {
|
|
45833
45842
|
try {
|
|
45834
|
-
const { generateWeatherReport: generateWeatherReport2 } = await import("./weather-report-
|
|
45843
|
+
const { generateWeatherReport: generateWeatherReport2 } = await import("./weather-report-4TP5YCFG.js");
|
|
45835
45844
|
const report = generateWeatherReport2({ includeAdaptive: true });
|
|
45836
45845
|
const mappings = "recommendedMappings" in report ? report.recommendedMappings : [];
|
|
45837
45846
|
if (!Array.isArray(mappings) || mappings.length === 0) return "";
|
|
@@ -45849,7 +45858,7 @@ ${lines}
|
|
|
45849
45858
|
}
|
|
45850
45859
|
async function getMemoryContext(task) {
|
|
45851
45860
|
try {
|
|
45852
|
-
const { createSessionMemory: createSessionMemory2 } = await import("./session-memory-
|
|
45861
|
+
const { createSessionMemory: createSessionMemory2 } = await import("./session-memory-KD5Y7TVD.js");
|
|
45853
45862
|
const { getLearningDir } = await import("./learning-persistence-EGY4VKKO.js");
|
|
45854
45863
|
const memory = createSessionMemory2(getLearningDir(), { maxLearningsInContext: 10 });
|
|
45855
45864
|
const learnings = memory.searchLearnings(task.slice(0, 200));
|
|
@@ -45968,7 +45977,7 @@ ${contextBlock}`;
|
|
|
45968
45977
|
const strategy = config.votingStrategy ?? "higher_order";
|
|
45969
45978
|
await postProgress(config, "Vote", `Running consensus with ${strategy} strategy...`);
|
|
45970
45979
|
try {
|
|
45971
|
-
const { executeVoting } = await import("./consensus-vote-
|
|
45980
|
+
const { executeVoting } = await import("./consensus-vote-2WUR2MN5.js");
|
|
45972
45981
|
const votingResult = await executeVoting(
|
|
45973
45982
|
{
|
|
45974
45983
|
proposal: buildVoteProposal(plan, research),
|
|
@@ -46407,7 +46416,7 @@ async function searchCodebaseForTask(task) {
|
|
|
46407
46416
|
}
|
|
46408
46417
|
async function queryResearchRegistry(task) {
|
|
46409
46418
|
try {
|
|
46410
|
-
const { synthesizeResearch: synthesizeResearch2 } = await import("./research-helpers-synthesize-
|
|
46419
|
+
const { synthesizeResearch: synthesizeResearch2 } = await import("./research-helpers-synthesize-TMXQFCDY.js");
|
|
46411
46420
|
const topic = task.split(/[.!?\n]/).filter((s) => s.trim().length > 10)[0]?.trim();
|
|
46412
46421
|
if (topic === void 0) return null;
|
|
46413
46422
|
const result = await synthesizeResearch2(topic.slice(0, 50));
|
|
@@ -46478,7 +46487,7 @@ function createScanStageWrapper() {
|
|
|
46478
46487
|
try {
|
|
46479
46488
|
const slug = ctx.task.match(/([a-zA-Z0-9._-]+\/[a-zA-Z0-9._-]+)/)?.[1];
|
|
46480
46489
|
if (slug !== void 0) {
|
|
46481
|
-
const { generateSecurityPlan: generateSecurityPlan2 } = await import("./repo-security-plan-
|
|
46490
|
+
const { generateSecurityPlan: generateSecurityPlan2 } = await import("./repo-security-plan-EWNWYF3Y.js");
|
|
46482
46491
|
const plan = await generateSecurityPlan2({ repo: slug, maxScanners: 10 });
|
|
46483
46492
|
const recs = plan.recommendations.slice(0, 5).map((r) => `${r.priority}: ${r.displayName} (${r.category})`).join("; ");
|
|
46484
46493
|
return output(PIPELINE_STATE_KEYS.FINDINGS, recs, getTimeProvider().now() - start, true);
|
|
@@ -49603,7 +49612,7 @@ var GitHubTaskTracker = class {
|
|
|
49603
49612
|
cachedProvider = null;
|
|
49604
49613
|
async getProvider() {
|
|
49605
49614
|
if (this.cachedProvider !== null) return this.cachedProvider;
|
|
49606
|
-
const { createScmProvider } = await import("./factory-
|
|
49615
|
+
const { createScmProvider } = await import("./factory-S67EX46S.js");
|
|
49607
49616
|
const result = await createScmProvider({ repo: this.config.repo ?? "" });
|
|
49608
49617
|
if (!result.ok) throw new Error(`SCM provider error: ${result.error.message}`);
|
|
49609
49618
|
this.cachedProvider = result.value;
|
|
@@ -50494,7 +50503,7 @@ async function probeSource(source, includeModelIds) {
|
|
|
50494
50503
|
}
|
|
50495
50504
|
}
|
|
50496
50505
|
async function defaultSources(includeOpenRouter) {
|
|
50497
|
-
const { createAllAdapters: createAllAdapters2 } = await import("./factory-
|
|
50506
|
+
const { createAllAdapters: createAllAdapters2 } = await import("./factory-ZXDSU5MF.js");
|
|
50498
50507
|
const adapters = createAllAdapters2();
|
|
50499
50508
|
return buildDefaultModelSources(adapters, { includeOpenRouter });
|
|
50500
50509
|
}
|
|
@@ -54536,4 +54545,4 @@ export {
|
|
|
54536
54545
|
shutdownFeedbackSubscriber,
|
|
54537
54546
|
createEventBusBridge
|
|
54538
54547
|
};
|
|
54539
|
-
//# sourceMappingURL=chunk-
|
|
54548
|
+
//# sourceMappingURL=chunk-UZTRCADY.js.map
|