nexus-agents 8.15.2 → 8.16.0
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/{ast-rule-runner-T3REZDT7.js → ast-rule-runner-AJAWZQNS.js} +3 -3
- package/dist/{child-mcp-config-CLACXGLL.js → child-mcp-config-JQCVNB3Y.js} +2 -2
- package/dist/{chunk-EVBYS5PY.js → chunk-2LQAHGNZ.js} +7 -7
- package/dist/{chunk-JMKRLWED.js → chunk-46V3G76B.js} +4 -4
- package/dist/{chunk-DG2AWTET.js → chunk-5OTOOVOF.js} +4 -4
- package/dist/{chunk-CYRPFUM5.js → chunk-6ZU3FUAX.js} +2 -2
- package/dist/{chunk-7NE6ERWJ.js → chunk-7JPBVZXW.js} +3 -3
- package/dist/{chunk-EH7BVUH5.js → chunk-A62DB47B.js} +8 -8
- package/dist/{chunk-P7E5EBZC.js → chunk-BYKZ4FMO.js} +7 -7
- package/dist/{chunk-YJQMBTRO.js → chunk-CQK5SIEX.js} +3 -3
- package/dist/{chunk-LZ65QEVJ.js → chunk-CV4BKEFW.js} +4 -4
- package/dist/{chunk-Y47JLN3E.js → chunk-D7WQNTAK.js} +2 -2
- package/dist/{chunk-TDYSYKVH.js → chunk-DBGIP6GK.js} +2 -2
- package/dist/{chunk-4AAIUCZF.js → chunk-ETMIOP3R.js} +2 -2
- package/dist/{chunk-PYIVLWVO.js → chunk-F5L6XR7O.js} +28 -11
- package/dist/chunk-F5L6XR7O.js.map +1 -0
- package/dist/{chunk-B7OYAWOE.js → chunk-FZFSJPGP.js} +87 -48
- package/dist/chunk-FZFSJPGP.js.map +1 -0
- package/dist/{chunk-JJEMPUTM.js → chunk-GWQE5MBQ.js} +2 -2
- package/dist/{chunk-UJBQAWAN.js → chunk-HUKQIOQJ.js} +3 -3
- package/dist/{chunk-UZPSVN36.js → chunk-IJH2U2QL.js} +2 -2
- package/dist/{chunk-5X67Q3D2.js → chunk-IVGQWADP.js} +2 -2
- package/dist/{chunk-YIKZVQ2G.js → chunk-JEOQY42Z.js} +5 -5
- package/dist/{chunk-2E36UWL7.js → chunk-JYMFL4M6.js} +2 -2
- package/dist/{chunk-MBXLGNKF.js → chunk-KJFX7JUP.js} +33 -12
- package/dist/chunk-KJFX7JUP.js.map +1 -0
- package/dist/{chunk-ZZ57L2XX.js → chunk-KQRF4ZHX.js} +2 -2
- package/dist/{chunk-4X6OQY7X.js → chunk-KUKQ7UHD.js} +4 -4
- package/dist/{chunk-BOKIPN5F.js → chunk-LMJ7BKIL.js} +2 -2
- package/dist/{chunk-LAQI75I6.js → chunk-NBXYA5O6.js} +3 -3
- package/dist/{chunk-LAQI75I6.js.map → chunk-NBXYA5O6.js.map} +1 -1
- package/dist/{chunk-SPWGAWE7.js → chunk-PBVNGI67.js} +2 -2
- package/dist/{chunk-LG6226RT.js → chunk-QBU2RG7U.js} +2 -2
- package/dist/{chunk-FIRMC57S.js → chunk-R2VSXNGB.js} +6 -6
- package/dist/{chunk-PBVKU72T.js → chunk-R3QNEXOU.js} +2 -2
- package/dist/{chunk-MM6NZTDW.js → chunk-R7V4C5UL.js} +2 -2
- package/dist/{chunk-M4PYLLYN.js → chunk-RJO6I6JV.js} +2 -2
- package/dist/chunk-W3TYQ4CB.js +7 -0
- package/dist/{chunk-55WGNJRG.js → chunk-ZB7XPHFZ.js} +2 -2
- package/dist/{chunk-5QOJAEGM.js → chunk-ZXLF3NDV.js} +2 -2
- package/dist/{cli-circuit-breaker-PLGPPDBH.js → cli-circuit-breaker-2LQZLFVP.js} +3 -3
- package/dist/cli.js +43 -43
- package/dist/{composite-router-HLAZHG3C.js → composite-router-XNVULYDV.js} +2 -2
- package/dist/{consensus-vote-ZPD6EGE7.js → consensus-vote-HIWPU4AA.js} +17 -17
- package/dist/{context-retriever-WR3WXM53.js → context-retriever-GWAJG6XT.js} +8 -8
- package/dist/{doctor-deep-VN6F7IRM.js → doctor-deep-ZATGXGNC.js} +3 -3
- package/dist/{doctor-live-76EBRB57.js → doctor-live-L264NFJO.js} +9 -9
- package/dist/{expert-bridge-Z5AB5X5H.js → expert-bridge-KCQ457YZ.js} +4 -4
- package/dist/{factory-4GAB7J3C.js → factory-FFKHIV6Q.js} +5 -5
- package/dist/{factory-7DHP2SB5.js → factory-S2SVFA6W.js} +9 -9
- package/dist/{improvement-review-XWZY5HJM.js → improvement-review-TYR5BN75.js} +6 -6
- package/dist/index.d.ts +13 -0
- package/dist/index.js +32 -32
- package/dist/{init-opencode-EZIST672.js → init-opencode-CDW4DAWF.js} +6 -6
- package/dist/issue-triage-MGKLKK43.js +17 -0
- package/dist/{pr-reviewer-helpers-3NMGM46D.js → pr-reviewer-helpers-6TRRYFHP.js} +4 -4
- package/dist/{registry-command-ZPQX324A.js → registry-command-4Y7RJH47.js} +2 -2
- package/dist/{repo-security-plan-JYXBWJ5K.js → repo-security-plan-XZ6YBLUE.js} +3 -3
- package/dist/{research-helpers-synthesize-EZPG6ZGS.js → research-helpers-synthesize-OKCOMCE2.js} +4 -4
- package/dist/{routing-memory-S537TMB4.js → routing-memory-QUA5ORUA.js} +2 -2
- package/dist/{session-memory-UBBYMYO4.js → session-memory-XKHKWRP3.js} +3 -3
- package/dist/{setup-config-LFHGW5O7.js → setup-config-NMVR2OBN.js} +3 -3
- package/dist/{setup-custom-api-KS3WSTFD.js → setup-custom-api-VV3FT66F.js} +4 -4
- package/dist/setup-data-dir-MCRACRZA.js +29 -0
- package/dist/{tool-memory-LSIG7GD4.js → tool-memory-MCIIYDQR.js} +5 -5
- package/dist/{unified-registry-63264J7Q.js → unified-registry-LPSJ2KMV.js} +10 -10
- package/dist/{weather-report-3B7CQC3N.js → weather-report-KHFJ756C.js} +2 -2
- package/package.json +1 -1
- package/dist/chunk-B7OYAWOE.js.map +0 -1
- package/dist/chunk-BSMWRMH2.js +0 -7
- package/dist/chunk-MBXLGNKF.js.map +0 -1
- package/dist/chunk-PYIVLWVO.js.map +0 -1
- package/dist/issue-triage-HDNDWDPO.js +0 -17
- package/dist/setup-data-dir-BUW4LREF.js +0 -29
- /package/dist/{ast-rule-runner-T3REZDT7.js.map → ast-rule-runner-AJAWZQNS.js.map} +0 -0
- /package/dist/{child-mcp-config-CLACXGLL.js.map → child-mcp-config-JQCVNB3Y.js.map} +0 -0
- /package/dist/{chunk-EVBYS5PY.js.map → chunk-2LQAHGNZ.js.map} +0 -0
- /package/dist/{chunk-JMKRLWED.js.map → chunk-46V3G76B.js.map} +0 -0
- /package/dist/{chunk-DG2AWTET.js.map → chunk-5OTOOVOF.js.map} +0 -0
- /package/dist/{chunk-CYRPFUM5.js.map → chunk-6ZU3FUAX.js.map} +0 -0
- /package/dist/{chunk-7NE6ERWJ.js.map → chunk-7JPBVZXW.js.map} +0 -0
- /package/dist/{chunk-EH7BVUH5.js.map → chunk-A62DB47B.js.map} +0 -0
- /package/dist/{chunk-P7E5EBZC.js.map → chunk-BYKZ4FMO.js.map} +0 -0
- /package/dist/{chunk-YJQMBTRO.js.map → chunk-CQK5SIEX.js.map} +0 -0
- /package/dist/{chunk-LZ65QEVJ.js.map → chunk-CV4BKEFW.js.map} +0 -0
- /package/dist/{chunk-Y47JLN3E.js.map → chunk-D7WQNTAK.js.map} +0 -0
- /package/dist/{chunk-TDYSYKVH.js.map → chunk-DBGIP6GK.js.map} +0 -0
- /package/dist/{chunk-4AAIUCZF.js.map → chunk-ETMIOP3R.js.map} +0 -0
- /package/dist/{chunk-JJEMPUTM.js.map → chunk-GWQE5MBQ.js.map} +0 -0
- /package/dist/{chunk-UJBQAWAN.js.map → chunk-HUKQIOQJ.js.map} +0 -0
- /package/dist/{chunk-UZPSVN36.js.map → chunk-IJH2U2QL.js.map} +0 -0
- /package/dist/{chunk-5X67Q3D2.js.map → chunk-IVGQWADP.js.map} +0 -0
- /package/dist/{chunk-YIKZVQ2G.js.map → chunk-JEOQY42Z.js.map} +0 -0
- /package/dist/{chunk-2E36UWL7.js.map → chunk-JYMFL4M6.js.map} +0 -0
- /package/dist/{chunk-ZZ57L2XX.js.map → chunk-KQRF4ZHX.js.map} +0 -0
- /package/dist/{chunk-4X6OQY7X.js.map → chunk-KUKQ7UHD.js.map} +0 -0
- /package/dist/{chunk-BOKIPN5F.js.map → chunk-LMJ7BKIL.js.map} +0 -0
- /package/dist/{chunk-SPWGAWE7.js.map → chunk-PBVNGI67.js.map} +0 -0
- /package/dist/{chunk-LG6226RT.js.map → chunk-QBU2RG7U.js.map} +0 -0
- /package/dist/{chunk-FIRMC57S.js.map → chunk-R2VSXNGB.js.map} +0 -0
- /package/dist/{chunk-PBVKU72T.js.map → chunk-R3QNEXOU.js.map} +0 -0
- /package/dist/{chunk-MM6NZTDW.js.map → chunk-R7V4C5UL.js.map} +0 -0
- /package/dist/{chunk-M4PYLLYN.js.map → chunk-RJO6I6JV.js.map} +0 -0
- /package/dist/{chunk-BSMWRMH2.js.map → chunk-W3TYQ4CB.js.map} +0 -0
- /package/dist/{chunk-55WGNJRG.js.map → chunk-ZB7XPHFZ.js.map} +0 -0
- /package/dist/{chunk-5QOJAEGM.js.map → chunk-ZXLF3NDV.js.map} +0 -0
- /package/dist/{cli-circuit-breaker-PLGPPDBH.js.map → cli-circuit-breaker-2LQZLFVP.js.map} +0 -0
- /package/dist/{composite-router-HLAZHG3C.js.map → composite-router-XNVULYDV.js.map} +0 -0
- /package/dist/{consensus-vote-ZPD6EGE7.js.map → consensus-vote-HIWPU4AA.js.map} +0 -0
- /package/dist/{context-retriever-WR3WXM53.js.map → context-retriever-GWAJG6XT.js.map} +0 -0
- /package/dist/{doctor-deep-VN6F7IRM.js.map → doctor-deep-ZATGXGNC.js.map} +0 -0
- /package/dist/{doctor-live-76EBRB57.js.map → doctor-live-L264NFJO.js.map} +0 -0
- /package/dist/{expert-bridge-Z5AB5X5H.js.map → expert-bridge-KCQ457YZ.js.map} +0 -0
- /package/dist/{factory-4GAB7J3C.js.map → factory-FFKHIV6Q.js.map} +0 -0
- /package/dist/{factory-7DHP2SB5.js.map → factory-S2SVFA6W.js.map} +0 -0
- /package/dist/{improvement-review-XWZY5HJM.js.map → improvement-review-TYR5BN75.js.map} +0 -0
- /package/dist/{init-opencode-EZIST672.js.map → init-opencode-CDW4DAWF.js.map} +0 -0
- /package/dist/{issue-triage-HDNDWDPO.js.map → issue-triage-MGKLKK43.js.map} +0 -0
- /package/dist/{pr-reviewer-helpers-3NMGM46D.js.map → pr-reviewer-helpers-6TRRYFHP.js.map} +0 -0
- /package/dist/{registry-command-ZPQX324A.js.map → registry-command-4Y7RJH47.js.map} +0 -0
- /package/dist/{repo-security-plan-JYXBWJ5K.js.map → repo-security-plan-XZ6YBLUE.js.map} +0 -0
- /package/dist/{research-helpers-synthesize-EZPG6ZGS.js.map → research-helpers-synthesize-OKCOMCE2.js.map} +0 -0
- /package/dist/{routing-memory-S537TMB4.js.map → routing-memory-QUA5ORUA.js.map} +0 -0
- /package/dist/{session-memory-UBBYMYO4.js.map → session-memory-XKHKWRP3.js.map} +0 -0
- /package/dist/{setup-config-LFHGW5O7.js.map → setup-config-NMVR2OBN.js.map} +0 -0
- /package/dist/{setup-custom-api-KS3WSTFD.js.map → setup-custom-api-VV3FT66F.js.map} +0 -0
- /package/dist/{setup-data-dir-BUW4LREF.js.map → setup-data-dir-MCRACRZA.js.map} +0 -0
- /package/dist/{tool-memory-LSIG7GD4.js.map → tool-memory-MCIIYDQR.js.map} +0 -0
- /package/dist/{unified-registry-63264J7Q.js.map → unified-registry-LPSJ2KMV.js.map} +0 -0
- /package/dist/{weather-report-3B7CQC3N.js.map → weather-report-KHFJ756C.js.map} +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
generateSecurityPlan
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-DBGIP6GK.js";
|
|
4
4
|
import {
|
|
5
5
|
analyzeGitHubRepo
|
|
6
6
|
} from "./chunk-DGWT7DXX.js";
|
|
@@ -21,10 +21,10 @@ import {
|
|
|
21
21
|
import {
|
|
22
22
|
DEFAULT_TASK_TTL_MS,
|
|
23
23
|
clampTaskTtl
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-BYKZ4FMO.js";
|
|
25
25
|
import {
|
|
26
26
|
executeExpert
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-2LQAHGNZ.js";
|
|
28
28
|
import {
|
|
29
29
|
JobStatusSchema,
|
|
30
30
|
VOTER_ROLES,
|
|
@@ -48,26 +48,26 @@ import {
|
|
|
48
48
|
simulationDeniedResult,
|
|
49
49
|
toJobSummary,
|
|
50
50
|
writeJobCancelled
|
|
51
|
-
} from "./chunk-
|
|
51
|
+
} from "./chunk-F5L6XR7O.js";
|
|
52
52
|
import {
|
|
53
53
|
allOf
|
|
54
54
|
} from "./chunk-OQB3XC5O.js";
|
|
55
55
|
import {
|
|
56
56
|
normalizeTopicToCanonical,
|
|
57
57
|
synthesizeResearch
|
|
58
|
-
} from "./chunk-
|
|
58
|
+
} from "./chunk-CQK5SIEX.js";
|
|
59
59
|
import {
|
|
60
60
|
IssueTriage,
|
|
61
61
|
createDurableAuditSink,
|
|
62
62
|
createDurableAuditTrail
|
|
63
|
-
} from "./chunk-
|
|
63
|
+
} from "./chunk-R2VSXNGB.js";
|
|
64
64
|
import {
|
|
65
65
|
resolveEnvMode,
|
|
66
66
|
sanitizeInput
|
|
67
|
-
} from "./chunk-
|
|
67
|
+
} from "./chunk-RJO6I6JV.js";
|
|
68
68
|
import {
|
|
69
69
|
withPrerequisite
|
|
70
|
-
} from "./chunk-
|
|
70
|
+
} from "./chunk-7JPBVZXW.js";
|
|
71
71
|
import {
|
|
72
72
|
NOOP_NOTIFIER,
|
|
73
73
|
RateLimiter,
|
|
@@ -92,18 +92,18 @@ import {
|
|
|
92
92
|
withAuditTrail,
|
|
93
93
|
withProgressHeartbeat,
|
|
94
94
|
wrapToolWithTimeout
|
|
95
|
-
} from "./chunk-
|
|
95
|
+
} from "./chunk-CV4BKEFW.js";
|
|
96
96
|
import {
|
|
97
97
|
createAuditTrail,
|
|
98
98
|
createGraphAuditBridge,
|
|
99
99
|
emitPipelinePolicyEvent
|
|
100
|
-
} from "./chunk-
|
|
100
|
+
} from "./chunk-IVGQWADP.js";
|
|
101
101
|
import {
|
|
102
102
|
EventTopics,
|
|
103
103
|
createEvent,
|
|
104
104
|
getGlobalEventBus,
|
|
105
105
|
getGlobalRegistry
|
|
106
|
-
} from "./chunk-
|
|
106
|
+
} from "./chunk-46V3G76B.js";
|
|
107
107
|
import {
|
|
108
108
|
IDENTIFIER_RE,
|
|
109
109
|
LANG_VALUES,
|
|
@@ -136,7 +136,7 @@ import {
|
|
|
136
136
|
parseRegistry,
|
|
137
137
|
sourceExistsInRegistry,
|
|
138
138
|
summarizeContextForPrompt
|
|
139
|
-
} from "./chunk-
|
|
139
|
+
} from "./chunk-KJFX7JUP.js";
|
|
140
140
|
import {
|
|
141
141
|
REGISTRY_PATH,
|
|
142
142
|
getProjectRoot,
|
|
@@ -144,24 +144,24 @@ import {
|
|
|
144
144
|
loadTechniquesRegistry,
|
|
145
145
|
resolveInsideRoot,
|
|
146
146
|
resolveRegistryRoot
|
|
147
|
-
} from "./chunk-
|
|
147
|
+
} from "./chunk-GWQE5MBQ.js";
|
|
148
148
|
import {
|
|
149
149
|
getTokenEnvVars,
|
|
150
150
|
resolveToken
|
|
151
|
-
} from "./chunk-
|
|
151
|
+
} from "./chunk-JYMFL4M6.js";
|
|
152
152
|
import {
|
|
153
153
|
DEFAULT_RELEVANCE_CONFIG,
|
|
154
154
|
MemoryImportance,
|
|
155
155
|
calculateTextJaccardSimilarity,
|
|
156
156
|
getToolMemory
|
|
157
|
-
} from "./chunk-
|
|
157
|
+
} from "./chunk-5OTOOVOF.js";
|
|
158
158
|
import {
|
|
159
159
|
STOPWORDS,
|
|
160
160
|
truncateWithInfo
|
|
161
161
|
} from "./chunk-6T3EPABN.js";
|
|
162
162
|
import {
|
|
163
163
|
createSessionMemory
|
|
164
|
-
} from "./chunk-
|
|
164
|
+
} from "./chunk-LMJ7BKIL.js";
|
|
165
165
|
import {
|
|
166
166
|
BUILT_IN_EXPERTS,
|
|
167
167
|
BuiltInExpertTypeSchema,
|
|
@@ -179,25 +179,25 @@ import {
|
|
|
179
179
|
getAvailableClis,
|
|
180
180
|
sleep,
|
|
181
181
|
withTimeout
|
|
182
|
-
} from "./chunk-
|
|
182
|
+
} from "./chunk-A62DB47B.js";
|
|
183
183
|
import {
|
|
184
184
|
BaseAdapter,
|
|
185
185
|
createStream,
|
|
186
186
|
requireApiKey,
|
|
187
187
|
validateApiKeyPresence
|
|
188
|
-
} from "./chunk-
|
|
188
|
+
} from "./chunk-R7V4C5UL.js";
|
|
189
189
|
import {
|
|
190
190
|
DEFAULTS
|
|
191
|
-
} from "./chunk-
|
|
191
|
+
} from "./chunk-R3QNEXOU.js";
|
|
192
192
|
import {
|
|
193
193
|
getAvailabilityCache,
|
|
194
194
|
getCliForModelId,
|
|
195
195
|
resolveFallback
|
|
196
|
-
} from "./chunk-
|
|
196
|
+
} from "./chunk-IJH2U2QL.js";
|
|
197
197
|
import {
|
|
198
198
|
generateHyphenId,
|
|
199
199
|
generateUUID
|
|
200
|
-
} from "./chunk-
|
|
200
|
+
} from "./chunk-KQRF4ZHX.js";
|
|
201
201
|
import {
|
|
202
202
|
AGENT_ROUTER_TIMEOUTS,
|
|
203
203
|
API_TIMEOUTS,
|
|
@@ -303,7 +303,7 @@ import {
|
|
|
303
303
|
selectStrategyByManifest,
|
|
304
304
|
toExpertTaskAnalysisResult,
|
|
305
305
|
withStep
|
|
306
|
-
} from "./chunk-
|
|
306
|
+
} from "./chunk-NBXYA5O6.js";
|
|
307
307
|
import {
|
|
308
308
|
ensureLearningDir,
|
|
309
309
|
getMetaOutcomesFile,
|
|
@@ -10209,6 +10209,11 @@ var DEFAULT_OPTIONS = {
|
|
|
10209
10209
|
enableParallelHints: true,
|
|
10210
10210
|
expertWeights: {}
|
|
10211
10211
|
};
|
|
10212
|
+
function executedCliFromProviderId(providerId) {
|
|
10213
|
+
if (providerId?.startsWith("cli-") !== true) return void 0;
|
|
10214
|
+
const parsed = CliNameSchema.safeParse(providerId.slice("cli-".length));
|
|
10215
|
+
return parsed.success ? parsed.data : void 0;
|
|
10216
|
+
}
|
|
10212
10217
|
var ANALYSIS_PROMPT = `You are an orchestrator analyzing a software development task.
|
|
10213
10218
|
|
|
10214
10219
|
Before decomposing or dispatching, commit to a direction. Emit a \`commitment\` object
|
|
@@ -10314,6 +10319,7 @@ var Orchestrator = class extends BaseAgent {
|
|
|
10314
10319
|
const baseAssignments = this.selectExperts(subtasks);
|
|
10315
10320
|
const { assignments } = enrichAssignmentsWithICTM(baseAssignments, subtasks, analysis);
|
|
10316
10321
|
const output2 = this.buildExecutionPlan(task, analysis, subtasks, assignments);
|
|
10322
|
+
const executedCli = executedCliFromProviderId(this.adapter?.providerId);
|
|
10317
10323
|
return ok({
|
|
10318
10324
|
taskId: task.id,
|
|
10319
10325
|
output: output2,
|
|
@@ -10321,7 +10327,8 @@ var Orchestrator = class extends BaseAgent {
|
|
|
10321
10327
|
durationMs: getTimeProvider().now() - startTime,
|
|
10322
10328
|
tokensUsed: 0,
|
|
10323
10329
|
toolsUsed: [],
|
|
10324
|
-
model: "tech-lead-orchestration"
|
|
10330
|
+
model: "tech-lead-orchestration",
|
|
10331
|
+
...executedCli === void 0 ? { executedCliSource: "unknown" } : { executedCli, executedCliSource: "executed" }
|
|
10325
10332
|
}
|
|
10326
10333
|
});
|
|
10327
10334
|
}
|
|
@@ -19350,7 +19357,13 @@ var SicaAgent = class {
|
|
|
19350
19357
|
output: result.value.output,
|
|
19351
19358
|
versionId: version.id,
|
|
19352
19359
|
metrics,
|
|
19353
|
-
triggeredImprovement: shouldImprove
|
|
19360
|
+
triggeredImprovement: shouldImprove,
|
|
19361
|
+
...result.value.metadata.executedCli !== void 0 && {
|
|
19362
|
+
executedCli: result.value.metadata.executedCli
|
|
19363
|
+
},
|
|
19364
|
+
...result.value.metadata.executedCliSource !== void 0 && {
|
|
19365
|
+
executedCliSource: result.value.metadata.executedCliSource
|
|
19366
|
+
}
|
|
19354
19367
|
});
|
|
19355
19368
|
}
|
|
19356
19369
|
/**
|
|
@@ -29742,7 +29755,7 @@ function execIdFields(executionId) {
|
|
|
29742
29755
|
async function populateUnifiedContextOnState(state, options) {
|
|
29743
29756
|
const taskCandidate = state["task"];
|
|
29744
29757
|
if (typeof taskCandidate !== "string" || taskCandidate === "") return;
|
|
29745
|
-
const { getContextForTask: getContextForTask2, inferTaskCategory: inferTaskCategory2 } = await import("./context-retriever-
|
|
29758
|
+
const { getContextForTask: getContextForTask2, inferTaskCategory: inferTaskCategory2 } = await import("./context-retriever-GWAJG6XT.js");
|
|
29746
29759
|
const category = inferTaskCategory2(taskCandidate);
|
|
29747
29760
|
const executionId = options?.executionId;
|
|
29748
29761
|
const execFields = execIdFields(executionId);
|
|
@@ -31818,6 +31831,17 @@ import { randomUUID as randomUUID10 } from "node:crypto";
|
|
|
31818
31831
|
function generateId2(prefix) {
|
|
31819
31832
|
return generateHyphenId(prefix, 6);
|
|
31820
31833
|
}
|
|
31834
|
+
function getExecutionAttribution(output2) {
|
|
31835
|
+
if (typeof output2 !== "object" || output2 === null) return { executedCliSource: "unknown" };
|
|
31836
|
+
const metadata = output2["metadata"];
|
|
31837
|
+
if (typeof metadata !== "object" || metadata === null) return { executedCliSource: "unknown" };
|
|
31838
|
+
const fields = metadata;
|
|
31839
|
+
const parsedCli = CliNameSchema.safeParse(fields["executedCli"]);
|
|
31840
|
+
if (!parsedCli.success || fields["executedCliSource"] !== "executed") {
|
|
31841
|
+
return { executedCliSource: "unknown" };
|
|
31842
|
+
}
|
|
31843
|
+
return { executedCli: parsedCli.data, executedCliSource: "executed" };
|
|
31844
|
+
}
|
|
31821
31845
|
function createStep(id, action, output2, durationMs) {
|
|
31822
31846
|
return {
|
|
31823
31847
|
id,
|
|
@@ -31845,7 +31869,8 @@ function createResult(execId, type, steps, output2, durationMs) {
|
|
|
31845
31869
|
// Every step is unmeasured (see createStep), so the total is too (#4829).
|
|
31846
31870
|
totalTokensUsed: 0,
|
|
31847
31871
|
tokensMeasured: steps.every((s) => s.tokensMeasured !== false),
|
|
31848
|
-
agentsUsed: steps.map((s) => s.agentId)
|
|
31872
|
+
agentsUsed: steps.map((s) => s.agentId),
|
|
31873
|
+
executedCliSource: "unknown"
|
|
31849
31874
|
};
|
|
31850
31875
|
}
|
|
31851
31876
|
var MAX_HISTORY = 100;
|
|
@@ -31901,13 +31926,10 @@ var OrchestratorAdapter = class {
|
|
|
31901
31926
|
output2,
|
|
31902
31927
|
getTimeProvider().now() - start
|
|
31903
31928
|
);
|
|
31904
|
-
const result =
|
|
31905
|
-
execId,
|
|
31906
|
-
|
|
31907
|
-
|
|
31908
|
-
output2,
|
|
31909
|
-
getTimeProvider().now() - start
|
|
31910
|
-
);
|
|
31929
|
+
const result = {
|
|
31930
|
+
...createResult(execId, "orchestrator", [step], output2, getTimeProvider().now() - start),
|
|
31931
|
+
...getExecutionAttribution(output2)
|
|
31932
|
+
};
|
|
31911
31933
|
this.executions.set(execId, COMPLETED_STATUS);
|
|
31912
31934
|
this.history.push(result);
|
|
31913
31935
|
trimArray(this.history, MAX_HISTORY);
|
|
@@ -32789,6 +32811,12 @@ function createSicaOrchestratorAdapter(sicaAgent, _logger) {
|
|
|
32789
32811
|
tokensUsed: sicaResult.metrics.tokensUsed,
|
|
32790
32812
|
toolsUsed: [],
|
|
32791
32813
|
model: "sica-orchestrator",
|
|
32814
|
+
...sicaResult.executedCli !== void 0 && {
|
|
32815
|
+
executedCli: sicaResult.executedCli
|
|
32816
|
+
},
|
|
32817
|
+
...sicaResult.executedCliSource !== void 0 && {
|
|
32818
|
+
executedCliSource: sicaResult.executedCliSource
|
|
32819
|
+
},
|
|
32792
32820
|
// SICA-specific metadata
|
|
32793
32821
|
sicaVersionId: sicaResult.versionId,
|
|
32794
32822
|
sicaTriggeredImprovement: sicaResult.triggeredImprovement,
|
|
@@ -36611,7 +36639,7 @@ function recordToOutcomeStore(taskDescription, success, durationMs, opts) {
|
|
|
36611
36639
|
});
|
|
36612
36640
|
}
|
|
36613
36641
|
}
|
|
36614
|
-
function recordOrchestrationSuccess(taskId, taskDescription, stepsCompleted, durationMs) {
|
|
36642
|
+
function recordOrchestrationSuccess(taskId, taskDescription, stepsCompleted, durationMs, actualCli) {
|
|
36615
36643
|
try {
|
|
36616
36644
|
const memory = getToolMemory();
|
|
36617
36645
|
memory.recordTask({
|
|
@@ -36644,7 +36672,12 @@ function recordOrchestrationSuccess(taskId, taskDescription, stepsCompleted, dur
|
|
|
36644
36672
|
error: getErrorMessage(error)
|
|
36645
36673
|
});
|
|
36646
36674
|
}
|
|
36647
|
-
recordToOutcomeStore(
|
|
36675
|
+
recordToOutcomeStore(
|
|
36676
|
+
taskDescription,
|
|
36677
|
+
true,
|
|
36678
|
+
durationMs,
|
|
36679
|
+
actualCli === void 0 ? void 0 : { actualCli }
|
|
36680
|
+
);
|
|
36648
36681
|
triggerPromotionPipeline("orchestrate");
|
|
36649
36682
|
}
|
|
36650
36683
|
function recordOrchestrationError(errorMessage2, taskDescription, durationMs) {
|
|
@@ -36795,7 +36828,13 @@ function handleOrchestratorSuccess(ctx) {
|
|
|
36795
36828
|
durationMs,
|
|
36796
36829
|
buildRoutingInfo(ctx.decision)
|
|
36797
36830
|
);
|
|
36798
|
-
recordOrchestrationSuccess(
|
|
36831
|
+
recordOrchestrationSuccess(
|
|
36832
|
+
ctx.taskId,
|
|
36833
|
+
ctx.taskDescription,
|
|
36834
|
+
output2.stepsCompleted,
|
|
36835
|
+
durationMs,
|
|
36836
|
+
ctx.orchResult.executedCli
|
|
36837
|
+
);
|
|
36799
36838
|
recordRouterOutcome(ctx.workflowRouter, ctx.decision, true, durationMs);
|
|
36800
36839
|
ctx.logger.info("Orchestration completed", {
|
|
36801
36840
|
taskId: ctx.taskId,
|
|
@@ -45478,7 +45517,7 @@ async function tryIssueTriage(task) {
|
|
|
45478
45517
|
try {
|
|
45479
45518
|
const issueMatch = task.match(/github\.com\/([^/]+\/[^/]+)\/issues\/(\d+)/);
|
|
45480
45519
|
if (issueMatch === null) return null;
|
|
45481
|
-
const { createIssueTriage } = await import("./issue-triage-
|
|
45520
|
+
const { createIssueTriage } = await import("./issue-triage-MGKLKK43.js");
|
|
45482
45521
|
const triage = createIssueTriage();
|
|
45483
45522
|
const owner = issueMatch[1] ?? "";
|
|
45484
45523
|
const num = issueMatch[2] ?? "";
|
|
@@ -45506,7 +45545,7 @@ var VALID_TEMPLATES = /* @__PURE__ */ new Set([
|
|
|
45506
45545
|
]);
|
|
45507
45546
|
async function classifyWithLLM(task) {
|
|
45508
45547
|
try {
|
|
45509
|
-
const { executeExpert: executeExpert2 } = await import("./expert-bridge-
|
|
45548
|
+
const { executeExpert: executeExpert2 } = await import("./expert-bridge-KCQ457YZ.js");
|
|
45510
45549
|
const prompt = [
|
|
45511
45550
|
"Classify this task into exactly one pipeline template.",
|
|
45512
45551
|
"Templates: dev (implementation/bug fix/refactor), research (investigate/evaluate/compare),",
|
|
@@ -47189,7 +47228,7 @@ var memoryInitPromise = null;
|
|
|
47189
47228
|
async function initPipelineMemory() {
|
|
47190
47229
|
if (cachedMemory !== null) return cachedMemory;
|
|
47191
47230
|
try {
|
|
47192
|
-
const { createSessionMemory: createSessionMemory2 } = await import("./session-memory-
|
|
47231
|
+
const { createSessionMemory: createSessionMemory2 } = await import("./session-memory-XKHKWRP3.js");
|
|
47193
47232
|
const { getLearningDir } = await import("./learning-persistence-JK2FELZL.js");
|
|
47194
47233
|
const mem = createSessionMemory2(getLearningDir());
|
|
47195
47234
|
mem.startSession(`pipeline-${String(getTimeProvider().now())}`);
|
|
@@ -47251,7 +47290,7 @@ function recordRoutingExperience(category, success, durationMs, tokensUsed = 0,
|
|
|
47251
47290
|
callRecord(routingMemoryCache);
|
|
47252
47291
|
return;
|
|
47253
47292
|
}
|
|
47254
|
-
routingMemoryInitPromise ??= import("./routing-memory-
|
|
47293
|
+
routingMemoryInitPromise ??= import("./routing-memory-QUA5ORUA.js").then(({ createRoutingMemory }) => {
|
|
47255
47294
|
routingMemoryCache ??= createRoutingMemory();
|
|
47256
47295
|
return routingMemoryCache;
|
|
47257
47296
|
}).catch((error) => {
|
|
@@ -47285,7 +47324,7 @@ ${text}` : "";
|
|
|
47285
47324
|
}
|
|
47286
47325
|
async function getWeatherContext() {
|
|
47287
47326
|
try {
|
|
47288
|
-
const { generateWeatherReport: generateWeatherReport2 } = await import("./weather-report-
|
|
47327
|
+
const { generateWeatherReport: generateWeatherReport2 } = await import("./weather-report-KHFJ756C.js");
|
|
47289
47328
|
const report = generateWeatherReport2({ includeAdaptive: true });
|
|
47290
47329
|
const mappings = "recommendedMappings" in report ? report.recommendedMappings : [];
|
|
47291
47330
|
if (!Array.isArray(mappings) || mappings.length === 0) return "";
|
|
@@ -47303,7 +47342,7 @@ ${lines}
|
|
|
47303
47342
|
}
|
|
47304
47343
|
async function getMemoryContext(task) {
|
|
47305
47344
|
try {
|
|
47306
|
-
const { createSessionMemory: createSessionMemory2 } = await import("./session-memory-
|
|
47345
|
+
const { createSessionMemory: createSessionMemory2 } = await import("./session-memory-XKHKWRP3.js");
|
|
47307
47346
|
const { getLearningDir } = await import("./learning-persistence-JK2FELZL.js");
|
|
47308
47347
|
const memory = createSessionMemory2(getLearningDir(), { maxLearningsInContext: 10 });
|
|
47309
47348
|
const learnings = memory.searchLearnings(task.slice(0, 200));
|
|
@@ -47422,7 +47461,7 @@ ${contextBlock}`;
|
|
|
47422
47461
|
const strategy = config.votingStrategy ?? "higher_order";
|
|
47423
47462
|
await postProgress(config, "Vote", `Running consensus with ${strategy} strategy...`);
|
|
47424
47463
|
try {
|
|
47425
|
-
const { executeVoting } = await import("./consensus-vote-
|
|
47464
|
+
const { executeVoting } = await import("./consensus-vote-HIWPU4AA.js");
|
|
47426
47465
|
const votingResult = await executeVoting(
|
|
47427
47466
|
{
|
|
47428
47467
|
proposal: buildVoteProposal(plan, research),
|
|
@@ -47851,7 +47890,7 @@ async function searchCodebaseForTask(task) {
|
|
|
47851
47890
|
}
|
|
47852
47891
|
async function queryResearchRegistry(task) {
|
|
47853
47892
|
try {
|
|
47854
|
-
const { synthesizeResearch: synthesizeResearch2 } = await import("./research-helpers-synthesize-
|
|
47893
|
+
const { synthesizeResearch: synthesizeResearch2 } = await import("./research-helpers-synthesize-OKCOMCE2.js");
|
|
47855
47894
|
const topic = task.split(/[.!?\n]/).filter((s) => s.trim().length > 10)[0]?.trim();
|
|
47856
47895
|
if (topic === void 0) return null;
|
|
47857
47896
|
const result = await synthesizeResearch2(topic.slice(0, 50));
|
|
@@ -47922,7 +47961,7 @@ function createScanStageWrapper() {
|
|
|
47922
47961
|
try {
|
|
47923
47962
|
const slug = ctx.task.match(/([a-zA-Z0-9._-]+\/[a-zA-Z0-9._-]+)/)?.[1];
|
|
47924
47963
|
if (slug !== void 0) {
|
|
47925
|
-
const { generateSecurityPlan: generateSecurityPlan2 } = await import("./repo-security-plan-
|
|
47964
|
+
const { generateSecurityPlan: generateSecurityPlan2 } = await import("./repo-security-plan-XZ6YBLUE.js");
|
|
47926
47965
|
const plan = await generateSecurityPlan2({ repo: slug, maxScanners: 10 });
|
|
47927
47966
|
const recs = plan.recommendations.slice(0, 5).map((r) => `${r.priority}: ${r.displayName} (${r.category})`).join("; ");
|
|
47928
47967
|
return output(PIPELINE_STATE_KEYS.FINDINGS, recs, getTimeProvider().now() - start, true);
|
|
@@ -51093,7 +51132,7 @@ var GitHubTaskTracker = class {
|
|
|
51093
51132
|
cachedProvider = null;
|
|
51094
51133
|
async getProvider() {
|
|
51095
51134
|
if (this.cachedProvider !== null) return this.cachedProvider;
|
|
51096
|
-
const { createScmProvider } = await import("./factory-
|
|
51135
|
+
const { createScmProvider } = await import("./factory-FFKHIV6Q.js");
|
|
51097
51136
|
const result = await createScmProvider({ repo: this.config.repo ?? "" });
|
|
51098
51137
|
if (!result.ok) throw new Error(`SCM provider error: ${result.error.message}`);
|
|
51099
51138
|
this.cachedProvider = result.value;
|
|
@@ -52011,7 +52050,7 @@ async function probeSource(source, includeModelIds) {
|
|
|
52011
52050
|
}
|
|
52012
52051
|
}
|
|
52013
52052
|
async function defaultSources(includeOpenRouter) {
|
|
52014
|
-
const { createAllAdapters: createAllAdapters2 } = await import("./factory-
|
|
52053
|
+
const { createAllAdapters: createAllAdapters2 } = await import("./factory-S2SVFA6W.js");
|
|
52015
52054
|
const adapters = createAllAdapters2();
|
|
52016
52055
|
return buildDefaultModelSources(adapters, { includeOpenRouter });
|
|
52017
52056
|
}
|
|
@@ -56086,4 +56125,4 @@ export {
|
|
|
56086
56125
|
shutdownFeedbackSubscriber,
|
|
56087
56126
|
createEventBusBridge
|
|
56088
56127
|
};
|
|
56089
|
-
//# sourceMappingURL=chunk-
|
|
56128
|
+
//# sourceMappingURL=chunk-FZFSJPGP.js.map
|