nexus-agents 8.9.1 → 8.9.3
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-BEUFFQWL.js → ast-rule-runner-TWZ2RW5M.js} +3 -3
- package/dist/{child-mcp-config-QFPSL7Y2.js → child-mcp-config-24J5URLG.js} +2 -2
- package/dist/{chunk-DLVIES6W.js → chunk-33GXJ3BD.js} +2 -2
- package/dist/{chunk-AOBIUJX5.js → chunk-3576CTEM.js} +3 -6
- package/dist/chunk-3576CTEM.js.map +1 -0
- package/dist/{chunk-FMKEGR6N.js → chunk-47PHYHB6.js} +3 -3
- package/dist/{chunk-S2B4UBHK.js → chunk-5IKSN5ST.js} +5 -5
- package/dist/{chunk-HQ2A4DGU.js → chunk-6XOAEDH5.js} +2 -2
- package/dist/{chunk-D3TZZO6L.js → chunk-7DYMRQGR.js} +2 -2
- package/dist/{chunk-FPHFCZ2E.js → chunk-BXLIOFX4.js} +6 -6
- package/dist/{chunk-CMQO6WEQ.js → chunk-BYS7PWMU.js} +2 -2
- package/dist/{chunk-FOYSPWOA.js → chunk-C4PEWJWB.js} +2 -2
- package/dist/{chunk-WANBZFP2.js → chunk-CK6QMNTR.js} +2 -2
- package/dist/{chunk-WKYDGROH.js → chunk-CYQNTTB7.js} +2 -2
- package/dist/{chunk-V7PXKAZD.js → chunk-DU6P5JXZ.js} +2 -2
- package/dist/{chunk-4GSFZS6M.js → chunk-EXNRO3SH.js} +7 -7
- package/dist/{chunk-P64GQUQW.js → chunk-KGGXT3DG.js} +9 -9
- package/dist/{chunk-M33EQB7P.js → chunk-MFSUNQB6.js} +2 -2
- package/dist/{chunk-K2GDWPVK.js → chunk-OQLTEQOV.js} +2 -2
- package/dist/{chunk-SGOBMAZK.js → chunk-P7EBMC7O.js} +4 -4
- package/dist/{chunk-WFZARRYN.js → chunk-PCCKBDLY.js} +3 -3
- package/dist/{chunk-I3J7WUMV.js → chunk-PJ77YCAA.js} +2 -2
- package/dist/{chunk-MYERGZK3.js → chunk-PUZ2VWSR.js} +49 -60
- package/dist/chunk-PUZ2VWSR.js.map +1 -0
- package/dist/{chunk-FDZ3SLMV.js → chunk-RTFZVC5U.js} +2 -2
- package/dist/{chunk-VQRXDFVF.js → chunk-RUP5N62O.js} +2 -2
- package/dist/{chunk-BTPPGHG3.js → chunk-TF7U7OH4.js} +4 -4
- package/dist/{chunk-Q55JVMUD.js → chunk-TIGUKO3N.js} +2 -2
- package/dist/{chunk-36BA6D6J.js → chunk-TJIERMYC.js} +2 -2
- package/dist/{chunk-P2DV7PDG.js → chunk-TQWV7OW4.js} +4 -4
- package/dist/{chunk-MZUUIMRQ.js → chunk-TXJLJKFL.js} +5 -5
- package/dist/{chunk-OJSG734P.js → chunk-UDWGQFXG.js} +8 -8
- package/dist/{chunk-PCPQ75EC.js → chunk-UNWIW57R.js} +4 -4
- package/dist/{chunk-KE5IGD6G.js → chunk-X7FVLNJI.js} +7 -7
- package/dist/chunk-XPP6B5CS.js +7 -0
- package/dist/{chunk-UXCE2OBL.js → chunk-YNCTXH4U.js} +3 -3
- package/dist/{chunk-46YGVSBD.js → chunk-YVTDIMGU.js} +2 -2
- package/dist/{chunk-2RZWKIDU.js → chunk-ZW4SNPGB.js} +2 -2
- package/dist/{cli-circuit-breaker-BOZNYIZE.js → cli-circuit-breaker-DCMU3M3F.js} +3 -3
- package/dist/cli.js +43 -43
- package/dist/{composite-router-NG7BLVVR.js → composite-router-ENJIHHN6.js} +2 -2
- package/dist/{consensus-vote-3FCOFDON.js → consensus-vote-MLDCVB4P.js} +17 -17
- package/dist/{context-retriever-QKMSSV6W.js → context-retriever-QAEAPXHX.js} +8 -8
- package/dist/{doctor-deep-CPMR6TDF.js → doctor-deep-7YU3PZLB.js} +3 -3
- package/dist/{doctor-live-GWE5IA7D.js → doctor-live-XNYLPFNW.js} +9 -9
- package/dist/{expert-bridge-6WZ333NT.js → expert-bridge-EAJYA4R4.js} +4 -4
- package/dist/{factory-73WKMDVR.js → factory-2NU65DB7.js} +9 -9
- package/dist/{factory-2DD2YGBU.js → factory-4RVFKLVD.js} +5 -5
- package/dist/{improvement-review-RMDGMKIB.js → improvement-review-OYUKCJUY.js} +6 -6
- package/dist/index.d.ts +35 -15
- package/dist/index.js +32 -32
- package/dist/index.js.map +1 -1
- package/dist/{init-opencode-7PKVI3LD.js → init-opencode-B3NWRL5O.js} +6 -6
- package/dist/issue-triage-WL5OOXIM.js +17 -0
- package/dist/{pr-reviewer-helpers-7DSP3YTT.js → pr-reviewer-helpers-MSYQIXLD.js} +4 -4
- package/dist/{registry-command-YXFZ7LVE.js → registry-command-2WZZXTMW.js} +2 -2
- package/dist/{repo-security-plan-M36GODNF.js → repo-security-plan-IGHSJBWU.js} +3 -3
- package/dist/{research-helpers-synthesize-7CI4MFYP.js → research-helpers-synthesize-SBC5IICO.js} +4 -4
- package/dist/{routing-memory-MIK3LGDH.js → routing-memory-QT4QKYBO.js} +2 -2
- package/dist/{session-memory-T2X4BM33.js → session-memory-ZKORURX2.js} +3 -3
- package/dist/{setup-config-6JSBY6OG.js → setup-config-I4SN3N3W.js} +3 -3
- package/dist/{setup-custom-api-2OXG6ERI.js → setup-custom-api-CO47LRSF.js} +4 -4
- package/dist/setup-data-dir-HDSIMOQU.js +29 -0
- package/dist/{tool-memory-AL3RAR67.js → tool-memory-RNBO7UH7.js} +5 -5
- package/dist/{unified-registry-5YUSIEML.js → unified-registry-FVKBD7FZ.js} +10 -10
- package/dist/{weather-report-W34L4HW5.js → weather-report-I62Q3K6O.js} +2 -2
- package/package.json +1 -1
- package/dist/chunk-AOBIUJX5.js.map +0 -1
- package/dist/chunk-DJFYMDMD.js +0 -7
- package/dist/chunk-MYERGZK3.js.map +0 -1
- package/dist/issue-triage-MLBUABPA.js +0 -17
- package/dist/setup-data-dir-CWU367E6.js +0 -29
- /package/dist/{ast-rule-runner-BEUFFQWL.js.map → ast-rule-runner-TWZ2RW5M.js.map} +0 -0
- /package/dist/{child-mcp-config-QFPSL7Y2.js.map → child-mcp-config-24J5URLG.js.map} +0 -0
- /package/dist/{chunk-DLVIES6W.js.map → chunk-33GXJ3BD.js.map} +0 -0
- /package/dist/{chunk-FMKEGR6N.js.map → chunk-47PHYHB6.js.map} +0 -0
- /package/dist/{chunk-S2B4UBHK.js.map → chunk-5IKSN5ST.js.map} +0 -0
- /package/dist/{chunk-HQ2A4DGU.js.map → chunk-6XOAEDH5.js.map} +0 -0
- /package/dist/{chunk-D3TZZO6L.js.map → chunk-7DYMRQGR.js.map} +0 -0
- /package/dist/{chunk-FPHFCZ2E.js.map → chunk-BXLIOFX4.js.map} +0 -0
- /package/dist/{chunk-CMQO6WEQ.js.map → chunk-BYS7PWMU.js.map} +0 -0
- /package/dist/{chunk-FOYSPWOA.js.map → chunk-C4PEWJWB.js.map} +0 -0
- /package/dist/{chunk-WANBZFP2.js.map → chunk-CK6QMNTR.js.map} +0 -0
- /package/dist/{chunk-WKYDGROH.js.map → chunk-CYQNTTB7.js.map} +0 -0
- /package/dist/{chunk-V7PXKAZD.js.map → chunk-DU6P5JXZ.js.map} +0 -0
- /package/dist/{chunk-4GSFZS6M.js.map → chunk-EXNRO3SH.js.map} +0 -0
- /package/dist/{chunk-P64GQUQW.js.map → chunk-KGGXT3DG.js.map} +0 -0
- /package/dist/{chunk-M33EQB7P.js.map → chunk-MFSUNQB6.js.map} +0 -0
- /package/dist/{chunk-K2GDWPVK.js.map → chunk-OQLTEQOV.js.map} +0 -0
- /package/dist/{chunk-SGOBMAZK.js.map → chunk-P7EBMC7O.js.map} +0 -0
- /package/dist/{chunk-WFZARRYN.js.map → chunk-PCCKBDLY.js.map} +0 -0
- /package/dist/{chunk-I3J7WUMV.js.map → chunk-PJ77YCAA.js.map} +0 -0
- /package/dist/{chunk-FDZ3SLMV.js.map → chunk-RTFZVC5U.js.map} +0 -0
- /package/dist/{chunk-VQRXDFVF.js.map → chunk-RUP5N62O.js.map} +0 -0
- /package/dist/{chunk-BTPPGHG3.js.map → chunk-TF7U7OH4.js.map} +0 -0
- /package/dist/{chunk-Q55JVMUD.js.map → chunk-TIGUKO3N.js.map} +0 -0
- /package/dist/{chunk-36BA6D6J.js.map → chunk-TJIERMYC.js.map} +0 -0
- /package/dist/{chunk-P2DV7PDG.js.map → chunk-TQWV7OW4.js.map} +0 -0
- /package/dist/{chunk-MZUUIMRQ.js.map → chunk-TXJLJKFL.js.map} +0 -0
- /package/dist/{chunk-OJSG734P.js.map → chunk-UDWGQFXG.js.map} +0 -0
- /package/dist/{chunk-PCPQ75EC.js.map → chunk-UNWIW57R.js.map} +0 -0
- /package/dist/{chunk-KE5IGD6G.js.map → chunk-X7FVLNJI.js.map} +0 -0
- /package/dist/{chunk-DJFYMDMD.js.map → chunk-XPP6B5CS.js.map} +0 -0
- /package/dist/{chunk-UXCE2OBL.js.map → chunk-YNCTXH4U.js.map} +0 -0
- /package/dist/{chunk-46YGVSBD.js.map → chunk-YVTDIMGU.js.map} +0 -0
- /package/dist/{chunk-2RZWKIDU.js.map → chunk-ZW4SNPGB.js.map} +0 -0
- /package/dist/{cli-circuit-breaker-BOZNYIZE.js.map → cli-circuit-breaker-DCMU3M3F.js.map} +0 -0
- /package/dist/{composite-router-NG7BLVVR.js.map → composite-router-ENJIHHN6.js.map} +0 -0
- /package/dist/{consensus-vote-3FCOFDON.js.map → consensus-vote-MLDCVB4P.js.map} +0 -0
- /package/dist/{context-retriever-QKMSSV6W.js.map → context-retriever-QAEAPXHX.js.map} +0 -0
- /package/dist/{doctor-deep-CPMR6TDF.js.map → doctor-deep-7YU3PZLB.js.map} +0 -0
- /package/dist/{doctor-live-GWE5IA7D.js.map → doctor-live-XNYLPFNW.js.map} +0 -0
- /package/dist/{expert-bridge-6WZ333NT.js.map → expert-bridge-EAJYA4R4.js.map} +0 -0
- /package/dist/{factory-2DD2YGBU.js.map → factory-2NU65DB7.js.map} +0 -0
- /package/dist/{factory-73WKMDVR.js.map → factory-4RVFKLVD.js.map} +0 -0
- /package/dist/{improvement-review-RMDGMKIB.js.map → improvement-review-OYUKCJUY.js.map} +0 -0
- /package/dist/{init-opencode-7PKVI3LD.js.map → init-opencode-B3NWRL5O.js.map} +0 -0
- /package/dist/{issue-triage-MLBUABPA.js.map → issue-triage-WL5OOXIM.js.map} +0 -0
- /package/dist/{pr-reviewer-helpers-7DSP3YTT.js.map → pr-reviewer-helpers-MSYQIXLD.js.map} +0 -0
- /package/dist/{registry-command-YXFZ7LVE.js.map → registry-command-2WZZXTMW.js.map} +0 -0
- /package/dist/{repo-security-plan-M36GODNF.js.map → repo-security-plan-IGHSJBWU.js.map} +0 -0
- /package/dist/{research-helpers-synthesize-7CI4MFYP.js.map → research-helpers-synthesize-SBC5IICO.js.map} +0 -0
- /package/dist/{routing-memory-MIK3LGDH.js.map → routing-memory-QT4QKYBO.js.map} +0 -0
- /package/dist/{session-memory-T2X4BM33.js.map → session-memory-ZKORURX2.js.map} +0 -0
- /package/dist/{setup-config-6JSBY6OG.js.map → setup-config-I4SN3N3W.js.map} +0 -0
- /package/dist/{setup-custom-api-2OXG6ERI.js.map → setup-custom-api-CO47LRSF.js.map} +0 -0
- /package/dist/{setup-data-dir-CWU367E6.js.map → setup-data-dir-HDSIMOQU.js.map} +0 -0
- /package/dist/{tool-memory-AL3RAR67.js.map → tool-memory-RNBO7UH7.js.map} +0 -0
- /package/dist/{unified-registry-5YUSIEML.js.map → unified-registry-FVKBD7FZ.js.map} +0 -0
- /package/dist/{weather-report-W34L4HW5.js.map → weather-report-I62Q3K6O.js.map} +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
generateSecurityPlan
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-DU6P5JXZ.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-X7FVLNJI.js";
|
|
25
25
|
import {
|
|
26
26
|
executeExpert
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-EXNRO3SH.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-KGGXT3DG.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-PCCKBDLY.js";
|
|
59
59
|
import {
|
|
60
60
|
IssueTriage,
|
|
61
61
|
createDurableAuditSink,
|
|
62
62
|
createDurableAuditTrail
|
|
63
|
-
} from "./chunk-
|
|
63
|
+
} from "./chunk-BXLIOFX4.js";
|
|
64
64
|
import {
|
|
65
65
|
resolveEnvMode,
|
|
66
66
|
sanitizeInput
|
|
67
|
-
} from "./chunk-
|
|
67
|
+
} from "./chunk-MFSUNQB6.js";
|
|
68
68
|
import {
|
|
69
69
|
withPrerequisite
|
|
70
|
-
} from "./chunk-
|
|
70
|
+
} from "./chunk-47PHYHB6.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-TQWV7OW4.js";
|
|
96
96
|
import {
|
|
97
97
|
createAuditTrail,
|
|
98
98
|
createGraphAuditBridge,
|
|
99
99
|
emitPipelinePolicyEvent
|
|
100
|
-
} from "./chunk-
|
|
100
|
+
} from "./chunk-YVTDIMGU.js";
|
|
101
101
|
import {
|
|
102
102
|
EventTopics,
|
|
103
103
|
createEvent,
|
|
104
104
|
getGlobalEventBus,
|
|
105
105
|
getGlobalRegistry
|
|
106
|
-
} from "./chunk-
|
|
106
|
+
} from "./chunk-TF7U7OH4.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-5IKSN5ST.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-PJ77YCAA.js";
|
|
148
148
|
import {
|
|
149
149
|
getTokenEnvVars,
|
|
150
150
|
resolveToken
|
|
151
|
-
} from "./chunk-
|
|
151
|
+
} from "./chunk-BYS7PWMU.js";
|
|
152
152
|
import {
|
|
153
153
|
DEFAULT_RELEVANCE_CONFIG,
|
|
154
154
|
MemoryImportance,
|
|
155
155
|
calculateTextJaccardSimilarity,
|
|
156
156
|
getToolMemory
|
|
157
|
-
} from "./chunk-
|
|
157
|
+
} from "./chunk-P7EBMC7O.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-33GXJ3BD.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-UDWGQFXG.js";
|
|
183
183
|
import {
|
|
184
184
|
BaseAdapter,
|
|
185
185
|
createStream,
|
|
186
186
|
requireApiKey,
|
|
187
187
|
validateApiKeyPresence
|
|
188
|
-
} from "./chunk-
|
|
188
|
+
} from "./chunk-RUP5N62O.js";
|
|
189
189
|
import {
|
|
190
190
|
DEFAULTS
|
|
191
|
-
} from "./chunk-
|
|
191
|
+
} from "./chunk-TJIERMYC.js";
|
|
192
192
|
import {
|
|
193
193
|
getAvailabilityCache,
|
|
194
194
|
getCliForModelId,
|
|
195
195
|
resolveFallback
|
|
196
|
-
} from "./chunk-
|
|
196
|
+
} from "./chunk-6XOAEDH5.js";
|
|
197
197
|
import {
|
|
198
198
|
generateHyphenId,
|
|
199
199
|
generateUUID
|
|
200
|
-
} from "./chunk-
|
|
200
|
+
} from "./chunk-7DYMRQGR.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-3576CTEM.js";
|
|
307
307
|
import {
|
|
308
308
|
ensureLearningDir,
|
|
309
309
|
getMetaOutcomesFile,
|
|
@@ -977,7 +977,11 @@ var NexusEnvSchema = z10.object({
|
|
|
977
977
|
// Drives the auto-remediation cycle (resolveAutoRemediateMode); default audit
|
|
978
978
|
// (zero-write soak, #3769) when unset, explicit `off` disables.
|
|
979
979
|
NEXUS_AUTO_REMEDIATE: z10.enum(["off", "audit", "enforce"]).optional(),
|
|
980
|
-
// Stage-boundary policy gate enforcement mode (getGateEnforcementMode); warn by
|
|
980
|
+
// Stage-boundary policy gate enforcement mode (getGateEnforcementMode); warn by
|
|
981
|
+
// default. Read by dev-pipeline's consensus→execute gate, and by any compiled
|
|
982
|
+
// gate node whose caller supplies a `policyEnforcement` bundle without a mode
|
|
983
|
+
// (no in-tree caller supplies a bundle today). The V2 delegate graph declares
|
|
984
|
+
// no gate (#4657); v2-orchestrate's execute check reads the V2 policy-mode variable instead (its own entry below; see CONFIGURATION.md).
|
|
981
985
|
NEXUS_POLICY_GATE_MODE: z10.enum(["off", "warn", "block"]).optional(),
|
|
982
986
|
// Path to a model-registry overlay manifest (buildDefaultRegistry / #3185 hot-reload).
|
|
983
987
|
NEXUS_MODELS_OVERLAY_PATH: z10.string().optional(),
|
|
@@ -29643,7 +29647,6 @@ async function executeHook(base, run, onSuccess, onFailure) {
|
|
|
29643
29647
|
return withStep(
|
|
29644
29648
|
{
|
|
29645
29649
|
name: `hook:${base.hookPhase}:${base.nodeId}`,
|
|
29646
|
-
kind: "graph.hook",
|
|
29647
29650
|
attrs: { nodeId: base.nodeId, hookName: base.hookName, phase: base.hookPhase }
|
|
29648
29651
|
},
|
|
29649
29652
|
async (ctx) => {
|
|
@@ -29703,7 +29706,7 @@ function execIdFields(executionId) {
|
|
|
29703
29706
|
async function populateUnifiedContextOnState(state, options) {
|
|
29704
29707
|
const taskCandidate = state["task"];
|
|
29705
29708
|
if (typeof taskCandidate !== "string" || taskCandidate === "") return;
|
|
29706
|
-
const { getContextForTask: getContextForTask2, inferTaskCategory: inferTaskCategory2 } = await import("./context-retriever-
|
|
29709
|
+
const { getContextForTask: getContextForTask2, inferTaskCategory: inferTaskCategory2 } = await import("./context-retriever-QAEAPXHX.js");
|
|
29707
29710
|
const category = inferTaskCategory2(taskCandidate);
|
|
29708
29711
|
const executionId = options?.executionId;
|
|
29709
29712
|
const execFields = execIdFields(executionId);
|
|
@@ -31627,15 +31630,7 @@ var logger24 = createLogger({ component: "V2Delegate" });
|
|
|
31627
31630
|
function createDelegatePipeline(task) {
|
|
31628
31631
|
const plan = buildDelegatePlan(task);
|
|
31629
31632
|
const runner = new PipelineRunner();
|
|
31630
|
-
return runner.compile(plan
|
|
31631
|
-
}
|
|
31632
|
-
function buildWarnPolicyEnforcement(task, overrides = {}) {
|
|
31633
|
-
return {
|
|
31634
|
-
engine: overrides.engine ?? createDefaultPolicyEngine(),
|
|
31635
|
-
pipelineState: toPipelineStateSnapshot(task.metadata),
|
|
31636
|
-
eventBus: overrides.eventBus ?? getPipelineEventBus(),
|
|
31637
|
-
mode: getGateEnforcementMode()
|
|
31638
|
-
};
|
|
31633
|
+
return runner.compile(plan);
|
|
31639
31634
|
}
|
|
31640
31635
|
function delegateInputToTaskContract(input, opts = {}) {
|
|
31641
31636
|
const metadata = { source: "delegate_to_model" };
|
|
@@ -31721,12 +31716,6 @@ function formatViolation(v) {
|
|
|
31721
31716
|
return v.escalateTo !== void 0 ? `${base} [escalate: ${v.escalateTo}]` : base;
|
|
31722
31717
|
}
|
|
31723
31718
|
var ROUTE_STAGE_ID = "route-model";
|
|
31724
|
-
var ENTRY_GATE = {
|
|
31725
|
-
id: "gate-delegate-entry",
|
|
31726
|
-
afterStage: START,
|
|
31727
|
-
beforeStage: ROUTE_STAGE_ID,
|
|
31728
|
-
rules: ["trust-tier"]
|
|
31729
|
-
};
|
|
31730
31719
|
function buildDelegatePlan(task) {
|
|
31731
31720
|
return {
|
|
31732
31721
|
taskId: task.id,
|
|
@@ -31744,7 +31733,7 @@ function buildDelegatePlan(task) {
|
|
|
31744
31733
|
}
|
|
31745
31734
|
}
|
|
31746
31735
|
],
|
|
31747
|
-
policyGates: [
|
|
31736
|
+
policyGates: [],
|
|
31748
31737
|
estimatedCost: {
|
|
31749
31738
|
totalTokensIn: 0,
|
|
31750
31739
|
totalTokensOut: 0,
|
|
@@ -39559,7 +39548,7 @@ async function runExpertTask(deps, args, expert) {
|
|
|
39559
39548
|
if (fallback !== void 0) return fallback;
|
|
39560
39549
|
}
|
|
39561
39550
|
return withStep(
|
|
39562
|
-
{ name: `expert:${expert.role}`,
|
|
39551
|
+
{ name: `expert:${expert.role}`, attrs: { expertId, role: expert.role } },
|
|
39563
39552
|
async (ctx) => {
|
|
39564
39553
|
const startTime = getTimeProvider().now();
|
|
39565
39554
|
const result = await runExpertUnderHeartbeat(
|
|
@@ -45443,7 +45432,7 @@ async function tryIssueTriage(task) {
|
|
|
45443
45432
|
try {
|
|
45444
45433
|
const issueMatch = task.match(/github\.com\/([^/]+\/[^/]+)\/issues\/(\d+)/);
|
|
45445
45434
|
if (issueMatch === null) return null;
|
|
45446
|
-
const { createIssueTriage } = await import("./issue-triage-
|
|
45435
|
+
const { createIssueTriage } = await import("./issue-triage-WL5OOXIM.js");
|
|
45447
45436
|
const triage = createIssueTriage();
|
|
45448
45437
|
const owner = issueMatch[1] ?? "";
|
|
45449
45438
|
const num = issueMatch[2] ?? "";
|
|
@@ -45471,7 +45460,7 @@ var VALID_TEMPLATES = /* @__PURE__ */ new Set([
|
|
|
45471
45460
|
]);
|
|
45472
45461
|
async function classifyWithLLM(task) {
|
|
45473
45462
|
try {
|
|
45474
|
-
const { executeExpert: executeExpert2 } = await import("./expert-bridge-
|
|
45463
|
+
const { executeExpert: executeExpert2 } = await import("./expert-bridge-EAJYA4R4.js");
|
|
45475
45464
|
const prompt = [
|
|
45476
45465
|
"Classify this task into exactly one pipeline template.",
|
|
45477
45466
|
"Templates: dev (implementation/bug fix/refactor), research (investigate/evaluate/compare),",
|
|
@@ -46023,7 +46012,7 @@ async function resolveResearch(prior, task, stages, options) {
|
|
|
46023
46012
|
}
|
|
46024
46013
|
options?.untrustedInputGuard?.();
|
|
46025
46014
|
return withStep(
|
|
46026
|
-
{ name: "research",
|
|
46015
|
+
{ name: "research", attrs: { task: task.slice(0, 100) } },
|
|
46027
46016
|
async (ctx) => {
|
|
46028
46017
|
const rc = await stages.research(task);
|
|
46029
46018
|
ctx.setSummary(`${String(rc.text.length)} chars`);
|
|
@@ -46093,7 +46082,7 @@ async function runImplSecurityPhase(planResult, tasks, stages, run) {
|
|
|
46093
46082
|
};
|
|
46094
46083
|
}
|
|
46095
46084
|
const security = await withStep(
|
|
46096
|
-
{ name: "security-scan"
|
|
46085
|
+
{ name: "security-scan" },
|
|
46097
46086
|
async (ctx) => {
|
|
46098
46087
|
const r = await stages.securityScan();
|
|
46099
46088
|
ctx.setSummary(r.passed ? "passed" : "FAILED");
|
|
@@ -46120,7 +46109,7 @@ async function runQualityGateStage(stages, mode) {
|
|
|
46120
46109
|
}
|
|
46121
46110
|
const runGate = stages.qualityGate.bind(stages);
|
|
46122
46111
|
return withStep(
|
|
46123
|
-
{ name: "quality-gate",
|
|
46112
|
+
{ name: "quality-gate", attrs: { mode } },
|
|
46124
46113
|
async (ctx) => {
|
|
46125
46114
|
const r = await runGate();
|
|
46126
46115
|
const advisory = mode === "advisory" && !r.passed;
|
|
@@ -46153,7 +46142,7 @@ async function runOrResumeDecompose(prior, plan, stages, meta) {
|
|
|
46153
46142
|
logger41.info("Resuming from checkpoint", { stage: "decompose" });
|
|
46154
46143
|
return [...prior.tasks];
|
|
46155
46144
|
}
|
|
46156
|
-
const tasks = await withStep({ name: "decompose"
|
|
46145
|
+
const tasks = await withStep({ name: "decompose" }, async (ctx) => {
|
|
46157
46146
|
const r = await stages.decompose(plan);
|
|
46158
46147
|
ctx.setSummary(`${String(r.length)} tasks`);
|
|
46159
46148
|
return r;
|
|
@@ -46175,7 +46164,7 @@ async function planVoteLoop(task, research, stages, sessionId, limits) {
|
|
|
46175
46164
|
let plan = "";
|
|
46176
46165
|
for (let i = 1; i <= limits.vote; i++) {
|
|
46177
46166
|
plan = await withStep(
|
|
46178
|
-
{ name: `plan (i=${String(i)})`,
|
|
46167
|
+
{ name: `plan (i=${String(i)})`, attrs: { iteration: i } },
|
|
46179
46168
|
() => stages.plan(task, research, feedback)
|
|
46180
46169
|
);
|
|
46181
46170
|
if (plan.trim() === "") {
|
|
@@ -46183,7 +46172,7 @@ async function planVoteLoop(task, research, stages, sessionId, limits) {
|
|
|
46183
46172
|
return { plan: "", iterations: i, conditional: false, conditions: [], caveats: [] };
|
|
46184
46173
|
}
|
|
46185
46174
|
const vote = await withStep(
|
|
46186
|
-
{ name: `vote (i=${String(i)})`,
|
|
46175
|
+
{ name: `vote (i=${String(i)})`, attrs: { iteration: i } },
|
|
46187
46176
|
async (ctx) => {
|
|
46188
46177
|
const r = await stages.vote(plan, research);
|
|
46189
46178
|
ctx.setSummary(
|
|
@@ -47162,7 +47151,7 @@ var memoryInitPromise = null;
|
|
|
47162
47151
|
async function initPipelineMemory() {
|
|
47163
47152
|
if (cachedMemory !== null) return cachedMemory;
|
|
47164
47153
|
try {
|
|
47165
|
-
const { createSessionMemory: createSessionMemory2 } = await import("./session-memory-
|
|
47154
|
+
const { createSessionMemory: createSessionMemory2 } = await import("./session-memory-ZKORURX2.js");
|
|
47166
47155
|
const { getLearningDir } = await import("./learning-persistence-JK2FELZL.js");
|
|
47167
47156
|
const mem = createSessionMemory2(getLearningDir());
|
|
47168
47157
|
mem.startSession(`pipeline-${String(getTimeProvider().now())}`);
|
|
@@ -47224,7 +47213,7 @@ function recordRoutingExperience(category, success, durationMs, tokensUsed = 0,
|
|
|
47224
47213
|
callRecord(routingMemoryCache);
|
|
47225
47214
|
return;
|
|
47226
47215
|
}
|
|
47227
|
-
routingMemoryInitPromise ??= import("./routing-memory-
|
|
47216
|
+
routingMemoryInitPromise ??= import("./routing-memory-QT4QKYBO.js").then(({ createRoutingMemory }) => {
|
|
47228
47217
|
routingMemoryCache ??= createRoutingMemory();
|
|
47229
47218
|
return routingMemoryCache;
|
|
47230
47219
|
}).catch((error) => {
|
|
@@ -47258,7 +47247,7 @@ ${text}` : "";
|
|
|
47258
47247
|
}
|
|
47259
47248
|
async function getWeatherContext() {
|
|
47260
47249
|
try {
|
|
47261
|
-
const { generateWeatherReport: generateWeatherReport2 } = await import("./weather-report-
|
|
47250
|
+
const { generateWeatherReport: generateWeatherReport2 } = await import("./weather-report-I62Q3K6O.js");
|
|
47262
47251
|
const report = generateWeatherReport2({ includeAdaptive: true });
|
|
47263
47252
|
const mappings = "recommendedMappings" in report ? report.recommendedMappings : [];
|
|
47264
47253
|
if (!Array.isArray(mappings) || mappings.length === 0) return "";
|
|
@@ -47276,7 +47265,7 @@ ${lines}
|
|
|
47276
47265
|
}
|
|
47277
47266
|
async function getMemoryContext(task) {
|
|
47278
47267
|
try {
|
|
47279
|
-
const { createSessionMemory: createSessionMemory2 } = await import("./session-memory-
|
|
47268
|
+
const { createSessionMemory: createSessionMemory2 } = await import("./session-memory-ZKORURX2.js");
|
|
47280
47269
|
const { getLearningDir } = await import("./learning-persistence-JK2FELZL.js");
|
|
47281
47270
|
const memory = createSessionMemory2(getLearningDir(), { maxLearningsInContext: 10 });
|
|
47282
47271
|
const learnings = memory.searchLearnings(task.slice(0, 200));
|
|
@@ -47395,7 +47384,7 @@ ${contextBlock}`;
|
|
|
47395
47384
|
const strategy = config.votingStrategy ?? "higher_order";
|
|
47396
47385
|
await postProgress(config, "Vote", `Running consensus with ${strategy} strategy...`);
|
|
47397
47386
|
try {
|
|
47398
|
-
const { executeVoting } = await import("./consensus-vote-
|
|
47387
|
+
const { executeVoting } = await import("./consensus-vote-MLDCVB4P.js");
|
|
47399
47388
|
const votingResult = await executeVoting(
|
|
47400
47389
|
{
|
|
47401
47390
|
proposal: buildVoteProposal(plan, research),
|
|
@@ -47824,7 +47813,7 @@ async function searchCodebaseForTask(task) {
|
|
|
47824
47813
|
}
|
|
47825
47814
|
async function queryResearchRegistry(task) {
|
|
47826
47815
|
try {
|
|
47827
|
-
const { synthesizeResearch: synthesizeResearch2 } = await import("./research-helpers-synthesize-
|
|
47816
|
+
const { synthesizeResearch: synthesizeResearch2 } = await import("./research-helpers-synthesize-SBC5IICO.js");
|
|
47828
47817
|
const topic = task.split(/[.!?\n]/).filter((s) => s.trim().length > 10)[0]?.trim();
|
|
47829
47818
|
if (topic === void 0) return null;
|
|
47830
47819
|
const result = await synthesizeResearch2(topic.slice(0, 50));
|
|
@@ -47895,7 +47884,7 @@ function createScanStageWrapper() {
|
|
|
47895
47884
|
try {
|
|
47896
47885
|
const slug = ctx.task.match(/([a-zA-Z0-9._-]+\/[a-zA-Z0-9._-]+)/)?.[1];
|
|
47897
47886
|
if (slug !== void 0) {
|
|
47898
|
-
const { generateSecurityPlan: generateSecurityPlan2 } = await import("./repo-security-plan-
|
|
47887
|
+
const { generateSecurityPlan: generateSecurityPlan2 } = await import("./repo-security-plan-IGHSJBWU.js");
|
|
47899
47888
|
const plan = await generateSecurityPlan2({ repo: slug, maxScanners: 10 });
|
|
47900
47889
|
const recs = plan.recommendations.slice(0, 5).map((r) => `${r.priority}: ${r.displayName} (${r.category})`).join("; ");
|
|
47901
47890
|
return output(PIPELINE_STATE_KEYS.FINDINGS, recs, getTimeProvider().now() - start, true);
|
|
@@ -51066,7 +51055,7 @@ var GitHubTaskTracker = class {
|
|
|
51066
51055
|
cachedProvider = null;
|
|
51067
51056
|
async getProvider() {
|
|
51068
51057
|
if (this.cachedProvider !== null) return this.cachedProvider;
|
|
51069
|
-
const { createScmProvider } = await import("./factory-
|
|
51058
|
+
const { createScmProvider } = await import("./factory-4RVFKLVD.js");
|
|
51070
51059
|
const result = await createScmProvider({ repo: this.config.repo ?? "" });
|
|
51071
51060
|
if (!result.ok) throw new Error(`SCM provider error: ${result.error.message}`);
|
|
51072
51061
|
this.cachedProvider = result.value;
|
|
@@ -51981,7 +51970,7 @@ async function probeSource(source, includeModelIds) {
|
|
|
51981
51970
|
}
|
|
51982
51971
|
}
|
|
51983
51972
|
async function defaultSources(includeOpenRouter) {
|
|
51984
|
-
const { createAllAdapters: createAllAdapters2 } = await import("./factory-
|
|
51973
|
+
const { createAllAdapters: createAllAdapters2 } = await import("./factory-2NU65DB7.js");
|
|
51985
51974
|
const adapters = createAllAdapters2();
|
|
51986
51975
|
return buildDefaultModelSources(adapters, { includeOpenRouter });
|
|
51987
51976
|
}
|
|
@@ -56051,4 +56040,4 @@ export {
|
|
|
56051
56040
|
shutdownFeedbackSubscriber,
|
|
56052
56041
|
createEventBusBridge
|
|
56053
56042
|
};
|
|
56054
|
-
//# sourceMappingURL=chunk-
|
|
56043
|
+
//# sourceMappingURL=chunk-PUZ2VWSR.js.map
|