nexus-agents 9.4.1 → 10.0.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-5U6TE6YJ.js → ast-rule-runner-AAOBENF2.js} +3 -3
- package/dist/{child-mcp-config-IR7LRMIK.js → child-mcp-config-FRWGQIHP.js} +2 -2
- package/dist/{chunk-DG2UY5QU.js → chunk-2VD5OQQR.js} +2 -2
- package/dist/{chunk-FTUBCD52.js → chunk-52Q72CPP.js} +3 -3
- package/dist/{chunk-B5YROFD2.js → chunk-BDAR2UPN.js} +57 -151
- package/dist/chunk-BDAR2UPN.js.map +1 -0
- package/dist/{chunk-Q7RFJSR5.js → chunk-BJLP4E6Q.js} +3 -3
- package/dist/{chunk-Q5F4OBOK.js → chunk-BK6Q3VQK.js} +6 -42
- package/dist/chunk-BK6Q3VQK.js.map +1 -0
- package/dist/{chunk-IU7CN5UQ.js → chunk-CYROSFMW.js} +5 -5
- package/dist/{chunk-FWSAYHGV.js → chunk-EGUISJBB.js} +4 -4
- package/dist/{chunk-PFGLZZ7E.js → chunk-HBJ3CVDB.js} +13 -13
- package/dist/{chunk-XJ65J3O5.js → chunk-HVZVVDFN.js} +10 -6
- package/dist/chunk-HVZVVDFN.js.map +1 -0
- package/dist/{chunk-2AW2VHMK.js → chunk-IRFKJ2KR.js} +2 -2
- package/dist/{chunk-HK4LBUYY.js → chunk-K6M2ZWX5.js} +2 -2
- package/dist/{chunk-RI4IXOZT.js → chunk-KPGWNBDA.js} +2 -2
- package/dist/{chunk-6WPXQTQY.js → chunk-L4P4A7Z2.js} +2 -2
- package/dist/{chunk-P7327767.js → chunk-M4IJ3H6M.js} +2 -2
- package/dist/{chunk-FKMBZ53Y.js → chunk-MCWIMVG2.js} +2 -2
- package/dist/{chunk-JNRDNE26.js → chunk-MYM2TPNL.js} +2 -2
- package/dist/{chunk-TMHCN5EY.js → chunk-NUXSGWDS.js} +5 -5
- package/dist/{chunk-ONYCBTOH.js → chunk-O3VPGING.js} +11 -15
- package/dist/chunk-O3VPGING.js.map +1 -0
- package/dist/{chunk-AFAM6GK3.js → chunk-O46IOND3.js} +7 -7
- package/dist/{chunk-DYTB2XW2.js → chunk-O5OUJ3PX.js} +5 -5
- package/dist/{chunk-VQGHQVD2.js → chunk-QPU7QKPT.js} +3 -3
- package/dist/{chunk-DEQRRCHK.js → chunk-RBFHY2LF.js} +2 -2
- package/dist/{chunk-H4ACPMJS.js → chunk-SCQ5YAYO.js} +4 -4
- package/dist/{chunk-L34WFGDZ.js → chunk-TQZSPGAZ.js} +3 -3
- package/dist/{chunk-L34WFGDZ.js.map → chunk-TQZSPGAZ.js.map} +1 -1
- package/dist/{chunk-ECJ52NSK.js → chunk-TYLE7Z2S.js} +5 -3
- package/dist/{chunk-ECJ52NSK.js.map → chunk-TYLE7Z2S.js.map} +1 -1
- package/dist/{chunk-TFQMVUWQ.js → chunk-V5FGXVSX.js} +5 -7
- package/dist/{chunk-TFQMVUWQ.js.map → chunk-V5FGXVSX.js.map} +1 -1
- package/dist/{chunk-2AN5NGCQ.js → chunk-VGCRYAEH.js} +4 -4
- package/dist/{chunk-AYBOQE2Y.js → chunk-VHOOJ4FG.js} +3 -3
- package/dist/{chunk-AYBOQE2Y.js.map → chunk-VHOOJ4FG.js.map} +1 -1
- package/dist/{chunk-OCKU3I4A.js → chunk-W2XP4MEN.js} +14 -20
- package/dist/{chunk-OCKU3I4A.js.map → chunk-W2XP4MEN.js.map} +1 -1
- package/dist/{chunk-6H4NUU7G.js → chunk-WCHN7B2Q.js} +6 -20
- package/dist/{chunk-6H4NUU7G.js.map → chunk-WCHN7B2Q.js.map} +1 -1
- package/dist/{chunk-7XJZTSHW.js → chunk-WI73OZAU.js} +22 -125
- package/dist/chunk-WI73OZAU.js.map +1 -0
- package/dist/{chunk-EPCR2GOE.js → chunk-XFTTKOHK.js} +2 -2
- package/dist/{chunk-C5WECFBR.js → chunk-XQMQGUJT.js} +5 -5
- package/dist/{chunk-PRX4ERTK.js → chunk-XSAUVC6D.js} +2 -2
- package/dist/{chunk-72IBCL2X.js → chunk-XTL45OBN.js} +3 -3
- package/dist/{chunk-6Z3MAHAC.js → chunk-XYYXVJSO.js} +2 -2
- package/dist/{chunk-HESQ746B.js → chunk-YHY7GMAL.js} +2 -2
- package/dist/{cli-circuit-breaker-AZHN2TMH.js → cli-circuit-breaker-AM425BRL.js} +3 -3
- package/dist/{cli-readiness-H4JTTKKU.js → cli-readiness-LWOMHZ34.js} +7 -7
- package/dist/cli.d.ts +1 -1
- package/dist/cli.js +47 -49
- package/dist/cli.js.map +1 -1
- package/dist/{composite-router-WCTNVMSX.js → composite-router-VXQFXNET.js} +2 -2
- package/dist/{consensus-vote-5PNCR3FT.js → consensus-vote-IUXJHSSQ.js} +19 -19
- package/dist/{consensus-vote-types-G7Lnj3B3.d.ts → consensus-vote-types-DexdhOdB.d.ts} +9 -15
- package/dist/{context-retriever-YM2PPNSY.js → context-retriever-GEQIPCVL.js} +8 -8
- package/dist/{doctor-deep-6P23G7PN.js → doctor-deep-DSOZGB5J.js} +3 -3
- package/dist/doctor-gateway-report-RJOSOHGA.js +21 -0
- package/dist/{doctor-live-MYXZCBSP.js → doctor-live-7LVRGOS5.js} +13 -13
- package/dist/{expert-bridge-CXHYMQRL.js → expert-bridge-5A4ADUBO.js} +4 -4
- package/dist/{factory-KH2MJQ5U.js → factory-4RZLP7QV.js} +5 -5
- package/dist/{factory-3Z46455N.js → factory-UBAUIA2M.js} +12 -12
- package/dist/{improvement-review-SRQQBAGG.js → improvement-review-KBMTSFYT.js} +7 -7
- package/dist/index.d.ts +40 -559
- package/dist/index.js +35 -83
- package/dist/index.js.map +1 -1
- package/dist/{init-opencode-WXRTDPFP.js → init-opencode-WUN3CTBM.js} +6 -6
- package/dist/{issue-triage-KF47ZHU7.js → issue-triage-VKEHVHO4.js} +6 -6
- package/dist/{model-config-helpers-ZH2QAFVR.js → model-config-helpers-GYPIIXOP.js} +2 -2
- package/dist/{openai-compat-adapter-PQ3JKWPZ.js → openai-compat-adapter-GSDOJ7TQ.js} +6 -6
- package/dist/{outcome-store-adapter-NTYEZXLH.js → outcome-store-adapter-PXT7AL6T.js} +2 -2
- package/dist/{pr-reviewer-helpers-AQNGDRQT.js → pr-reviewer-helpers-GUUT7G43.js} +4 -4
- package/dist/{registry-command-6EHIJ3PJ.js → registry-command-4G3WGKS5.js} +2 -2
- package/dist/{repo-security-plan-AP3QEWJ5.js → repo-security-plan-QO6ACTPZ.js} +3 -3
- package/dist/{research-helpers-synthesize-XE3RMFQT.js → research-helpers-synthesize-MPEJHPYR.js} +4 -4
- package/dist/{routing-memory-PBZIE5NX.js → routing-memory-VHQDJ6XZ.js} +2 -2
- package/dist/{session-memory-6NUK6ZAG.js → session-memory-M3CQFFL6.js} +3 -3
- package/dist/{setup-config-KEPU4NTT.js → setup-config-VGEBCEKX.js} +3 -3
- package/dist/{setup-custom-api-XY455LVS.js → setup-custom-api-DX7CNYKT.js} +5 -5
- package/dist/{setup-custom-api-XY455LVS.js.map → setup-custom-api-DX7CNYKT.js.map} +1 -1
- package/dist/setup-data-dir-JQGH2JCH.js +36 -0
- package/dist/{tool-memory-MO2KOJJ7.js → tool-memory-7QUPGCWV.js} +5 -5
- package/dist/{unified-registry-JE22THXP.js → unified-registry-CLZK3H64.js} +13 -13
- package/dist/{weather-report-TQ6KM2F2.js → weather-report-OKMXF73V.js} +2 -2
- package/package.json +3 -2
- package/dist/chunk-7XJZTSHW.js.map +0 -1
- package/dist/chunk-B5YROFD2.js.map +0 -1
- package/dist/chunk-ONYCBTOH.js.map +0 -1
- package/dist/chunk-Q5F4OBOK.js.map +0 -1
- package/dist/chunk-XJ65J3O5.js.map +0 -1
- package/dist/doctor-gateway-report-4TXHTWUM.js +0 -21
- package/dist/setup-data-dir-B6URVYUD.js +0 -36
- /package/dist/{ast-rule-runner-5U6TE6YJ.js.map → ast-rule-runner-AAOBENF2.js.map} +0 -0
- /package/dist/{child-mcp-config-IR7LRMIK.js.map → child-mcp-config-FRWGQIHP.js.map} +0 -0
- /package/dist/{chunk-DG2UY5QU.js.map → chunk-2VD5OQQR.js.map} +0 -0
- /package/dist/{chunk-FTUBCD52.js.map → chunk-52Q72CPP.js.map} +0 -0
- /package/dist/{chunk-Q7RFJSR5.js.map → chunk-BJLP4E6Q.js.map} +0 -0
- /package/dist/{chunk-IU7CN5UQ.js.map → chunk-CYROSFMW.js.map} +0 -0
- /package/dist/{chunk-FWSAYHGV.js.map → chunk-EGUISJBB.js.map} +0 -0
- /package/dist/{chunk-PFGLZZ7E.js.map → chunk-HBJ3CVDB.js.map} +0 -0
- /package/dist/{chunk-2AW2VHMK.js.map → chunk-IRFKJ2KR.js.map} +0 -0
- /package/dist/{chunk-HK4LBUYY.js.map → chunk-K6M2ZWX5.js.map} +0 -0
- /package/dist/{chunk-RI4IXOZT.js.map → chunk-KPGWNBDA.js.map} +0 -0
- /package/dist/{chunk-6WPXQTQY.js.map → chunk-L4P4A7Z2.js.map} +0 -0
- /package/dist/{chunk-P7327767.js.map → chunk-M4IJ3H6M.js.map} +0 -0
- /package/dist/{chunk-FKMBZ53Y.js.map → chunk-MCWIMVG2.js.map} +0 -0
- /package/dist/{chunk-JNRDNE26.js.map → chunk-MYM2TPNL.js.map} +0 -0
- /package/dist/{chunk-TMHCN5EY.js.map → chunk-NUXSGWDS.js.map} +0 -0
- /package/dist/{chunk-AFAM6GK3.js.map → chunk-O46IOND3.js.map} +0 -0
- /package/dist/{chunk-DYTB2XW2.js.map → chunk-O5OUJ3PX.js.map} +0 -0
- /package/dist/{chunk-VQGHQVD2.js.map → chunk-QPU7QKPT.js.map} +0 -0
- /package/dist/{chunk-DEQRRCHK.js.map → chunk-RBFHY2LF.js.map} +0 -0
- /package/dist/{chunk-H4ACPMJS.js.map → chunk-SCQ5YAYO.js.map} +0 -0
- /package/dist/{chunk-2AN5NGCQ.js.map → chunk-VGCRYAEH.js.map} +0 -0
- /package/dist/{chunk-EPCR2GOE.js.map → chunk-XFTTKOHK.js.map} +0 -0
- /package/dist/{chunk-C5WECFBR.js.map → chunk-XQMQGUJT.js.map} +0 -0
- /package/dist/{chunk-PRX4ERTK.js.map → chunk-XSAUVC6D.js.map} +0 -0
- /package/dist/{chunk-72IBCL2X.js.map → chunk-XTL45OBN.js.map} +0 -0
- /package/dist/{chunk-6Z3MAHAC.js.map → chunk-XYYXVJSO.js.map} +0 -0
- /package/dist/{chunk-HESQ746B.js.map → chunk-YHY7GMAL.js.map} +0 -0
- /package/dist/{cli-circuit-breaker-AZHN2TMH.js.map → cli-circuit-breaker-AM425BRL.js.map} +0 -0
- /package/dist/{cli-readiness-H4JTTKKU.js.map → cli-readiness-LWOMHZ34.js.map} +0 -0
- /package/dist/{composite-router-WCTNVMSX.js.map → composite-router-VXQFXNET.js.map} +0 -0
- /package/dist/{consensus-vote-5PNCR3FT.js.map → consensus-vote-IUXJHSSQ.js.map} +0 -0
- /package/dist/{context-retriever-YM2PPNSY.js.map → context-retriever-GEQIPCVL.js.map} +0 -0
- /package/dist/{doctor-deep-6P23G7PN.js.map → doctor-deep-DSOZGB5J.js.map} +0 -0
- /package/dist/{doctor-gateway-report-4TXHTWUM.js.map → doctor-gateway-report-RJOSOHGA.js.map} +0 -0
- /package/dist/{doctor-live-MYXZCBSP.js.map → doctor-live-7LVRGOS5.js.map} +0 -0
- /package/dist/{expert-bridge-CXHYMQRL.js.map → expert-bridge-5A4ADUBO.js.map} +0 -0
- /package/dist/{factory-3Z46455N.js.map → factory-4RZLP7QV.js.map} +0 -0
- /package/dist/{factory-KH2MJQ5U.js.map → factory-UBAUIA2M.js.map} +0 -0
- /package/dist/{improvement-review-SRQQBAGG.js.map → improvement-review-KBMTSFYT.js.map} +0 -0
- /package/dist/{init-opencode-WXRTDPFP.js.map → init-opencode-WUN3CTBM.js.map} +0 -0
- /package/dist/{issue-triage-KF47ZHU7.js.map → issue-triage-VKEHVHO4.js.map} +0 -0
- /package/dist/{model-config-helpers-ZH2QAFVR.js.map → model-config-helpers-GYPIIXOP.js.map} +0 -0
- /package/dist/{openai-compat-adapter-PQ3JKWPZ.js.map → openai-compat-adapter-GSDOJ7TQ.js.map} +0 -0
- /package/dist/{outcome-store-adapter-NTYEZXLH.js.map → outcome-store-adapter-PXT7AL6T.js.map} +0 -0
- /package/dist/{pr-reviewer-helpers-AQNGDRQT.js.map → pr-reviewer-helpers-GUUT7G43.js.map} +0 -0
- /package/dist/{registry-command-6EHIJ3PJ.js.map → registry-command-4G3WGKS5.js.map} +0 -0
- /package/dist/{repo-security-plan-AP3QEWJ5.js.map → repo-security-plan-QO6ACTPZ.js.map} +0 -0
- /package/dist/{research-helpers-synthesize-XE3RMFQT.js.map → research-helpers-synthesize-MPEJHPYR.js.map} +0 -0
- /package/dist/{routing-memory-PBZIE5NX.js.map → routing-memory-VHQDJ6XZ.js.map} +0 -0
- /package/dist/{session-memory-6NUK6ZAG.js.map → session-memory-M3CQFFL6.js.map} +0 -0
- /package/dist/{setup-config-KEPU4NTT.js.map → setup-config-VGEBCEKX.js.map} +0 -0
- /package/dist/{setup-data-dir-B6URVYUD.js.map → setup-data-dir-JQGH2JCH.js.map} +0 -0
- /package/dist/{tool-memory-MO2KOJJ7.js.map → tool-memory-7QUPGCWV.js.map} +0 -0
- /package/dist/{unified-registry-JE22THXP.js.map → unified-registry-CLZK3H64.js.map} +0 -0
- /package/dist/{weather-report-TQ6KM2F2.js.map → weather-report-OKMXF73V.js.map} +0 -0
|
@@ -9,8 +9,8 @@ import {
|
|
|
9
9
|
getBuiltInAstRulesPath,
|
|
10
10
|
loadRules,
|
|
11
11
|
runAstQaRules
|
|
12
|
-
} from "./chunk-
|
|
13
|
-
import "./chunk-
|
|
12
|
+
} from "./chunk-XYYXVJSO.js";
|
|
13
|
+
import "./chunk-WI73OZAU.js";
|
|
14
14
|
import "./chunk-XBEKMUTO.js";
|
|
15
15
|
import "./chunk-UE7A2XHM.js";
|
|
16
16
|
import "./chunk-LWOX65CP.js";
|
|
@@ -28,4 +28,4 @@ export {
|
|
|
28
28
|
loadRules,
|
|
29
29
|
runAstQaRules
|
|
30
30
|
};
|
|
31
|
-
//# sourceMappingURL=ast-rule-runner-
|
|
31
|
+
//# sourceMappingURL=ast-rule-runner-AAOBENF2.js.map
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
} from "./chunk-JPFRRNRR.js";
|
|
4
4
|
import {
|
|
5
5
|
createLogger
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-WI73OZAU.js";
|
|
7
7
|
import "./chunk-XBEKMUTO.js";
|
|
8
8
|
import "./chunk-UE7A2XHM.js";
|
|
9
9
|
import "./chunk-LWOX65CP.js";
|
|
@@ -75,4 +75,4 @@ async function generateMcpConfig(options) {
|
|
|
75
75
|
export {
|
|
76
76
|
generateMcpConfig
|
|
77
77
|
};
|
|
78
|
-
//# sourceMappingURL=child-mcp-config-
|
|
78
|
+
//# sourceMappingURL=child-mcp-config-FRWGQIHP.js.map
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
getAdaptiveBonus,
|
|
8
8
|
getOutcomeStore,
|
|
9
9
|
hasMeasuredCategory
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-WI73OZAU.js";
|
|
11
11
|
import {
|
|
12
12
|
TASK_CATEGORIES
|
|
13
13
|
} from "./chunk-4PN3UVZV.js";
|
|
@@ -150,4 +150,4 @@ export {
|
|
|
150
150
|
runDeepDiagnostics,
|
|
151
151
|
formatDeepDiagnostics
|
|
152
152
|
};
|
|
153
|
-
//# sourceMappingURL=chunk-
|
|
153
|
+
//# sourceMappingURL=chunk-2VD5OQQR.js.map
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
import {
|
|
5
5
|
assessReputation,
|
|
6
6
|
sanitizeInput
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-MYM2TPNL.js";
|
|
8
8
|
import {
|
|
9
9
|
allOf
|
|
10
10
|
} from "./chunk-EZNIYU5T.js";
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
err,
|
|
14
14
|
getTimeProvider,
|
|
15
15
|
ok
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-WI73OZAU.js";
|
|
17
17
|
|
|
18
18
|
// src/dogfooding/pr-reviewer-helpers.ts
|
|
19
19
|
import { randomUUID } from "node:crypto";
|
|
@@ -477,4 +477,4 @@ export {
|
|
|
477
477
|
createFailedReview,
|
|
478
478
|
reviewPostingBlock
|
|
479
479
|
};
|
|
480
|
-
//# sourceMappingURL=chunk-
|
|
480
|
+
//# sourceMappingURL=chunk-52Q72CPP.js.map
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
} from "./chunk-WDAND5YU.js";
|
|
6
6
|
import {
|
|
7
7
|
executeExpert
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-O46IOND3.js";
|
|
9
9
|
import {
|
|
10
10
|
JobStatusSchema,
|
|
11
11
|
RawFindingSchema,
|
|
@@ -58,11 +58,11 @@ import {
|
|
|
58
58
|
updateStage,
|
|
59
59
|
withFileLock,
|
|
60
60
|
writeJobCancelled
|
|
61
|
-
} from "./chunk-
|
|
61
|
+
} from "./chunk-HBJ3CVDB.js";
|
|
62
62
|
import {
|
|
63
63
|
normalizeTopicToCanonical,
|
|
64
64
|
synthesizeResearch
|
|
65
|
-
} from "./chunk-
|
|
65
|
+
} from "./chunk-BJLP4E6Q.js";
|
|
66
66
|
import {
|
|
67
67
|
IssueTriage,
|
|
68
68
|
createAuditTrail,
|
|
@@ -71,13 +71,13 @@ import {
|
|
|
71
71
|
createGraphAuditBridge,
|
|
72
72
|
emitPipelinePolicyEvent,
|
|
73
73
|
readActionRefusal
|
|
74
|
-
} from "./chunk-
|
|
74
|
+
} from "./chunk-O5OUJ3PX.js";
|
|
75
75
|
import {
|
|
76
76
|
sanitizeInput
|
|
77
|
-
} from "./chunk-
|
|
77
|
+
} from "./chunk-MYM2TPNL.js";
|
|
78
78
|
import {
|
|
79
79
|
withPrerequisite
|
|
80
|
-
} from "./chunk-
|
|
80
|
+
} from "./chunk-XTL45OBN.js";
|
|
81
81
|
import {
|
|
82
82
|
NOOP_NOTIFIER,
|
|
83
83
|
RateLimiter,
|
|
@@ -105,10 +105,10 @@ import {
|
|
|
105
105
|
toolSuccess,
|
|
106
106
|
withProgressHeartbeat,
|
|
107
107
|
wrapToolWithTimeout
|
|
108
|
-
} from "./chunk-
|
|
108
|
+
} from "./chunk-CYROSFMW.js";
|
|
109
109
|
import {
|
|
110
110
|
generateSecurityPlan
|
|
111
|
-
} from "./chunk-
|
|
111
|
+
} from "./chunk-L4P4A7Z2.js";
|
|
112
112
|
import {
|
|
113
113
|
analyzeGitHubRepo
|
|
114
114
|
} from "./chunk-4GDMHCKX.js";
|
|
@@ -152,18 +152,18 @@ import {
|
|
|
152
152
|
parseRegistry,
|
|
153
153
|
sourceExistsInRegistry,
|
|
154
154
|
summarizeContextForPrompt
|
|
155
|
-
} from "./chunk-
|
|
155
|
+
} from "./chunk-HVZVVDFN.js";
|
|
156
156
|
import {
|
|
157
157
|
REGISTRY_PATH,
|
|
158
158
|
getProjectRoot,
|
|
159
159
|
loadPapersRegistry,
|
|
160
160
|
loadTechniquesRegistry,
|
|
161
161
|
resolveRegistryRoot
|
|
162
|
-
} from "./chunk-
|
|
162
|
+
} from "./chunk-YHY7GMAL.js";
|
|
163
163
|
import {
|
|
164
164
|
getTokenEnvVars,
|
|
165
165
|
resolveToken
|
|
166
|
-
} from "./chunk-
|
|
166
|
+
} from "./chunk-KPGWNBDA.js";
|
|
167
167
|
import {
|
|
168
168
|
DEFAULT_RELEVANCE_CONFIG,
|
|
169
169
|
MemoryImportance,
|
|
@@ -171,7 +171,7 @@ import {
|
|
|
171
171
|
calculateTextJaccardSimilarity,
|
|
172
172
|
getToolMemory,
|
|
173
173
|
memoryTrustTierTag
|
|
174
|
-
} from "./chunk-
|
|
174
|
+
} from "./chunk-VGCRYAEH.js";
|
|
175
175
|
import {
|
|
176
176
|
EXTERNAL_CONTENT_TRUST_TIER,
|
|
177
177
|
resolveContentTrustProvenance,
|
|
@@ -187,7 +187,7 @@ import {
|
|
|
187
187
|
import {
|
|
188
188
|
DEFAULT_TASK_TTL_MS,
|
|
189
189
|
clampTaskTtl
|
|
190
|
-
} from "./chunk-
|
|
190
|
+
} from "./chunk-W2XP4MEN.js";
|
|
191
191
|
import {
|
|
192
192
|
allOf,
|
|
193
193
|
anyOf
|
|
@@ -196,16 +196,16 @@ import {
|
|
|
196
196
|
VERSION,
|
|
197
197
|
createRequestContext,
|
|
198
198
|
measuredTrustTier
|
|
199
|
-
} from "./chunk-
|
|
199
|
+
} from "./chunk-TQZSPGAZ.js";
|
|
200
200
|
import {
|
|
201
201
|
isGatewayModelAdapter
|
|
202
|
-
} from "./chunk-
|
|
202
|
+
} from "./chunk-XQMQGUJT.js";
|
|
203
203
|
import {
|
|
204
204
|
EventTopics,
|
|
205
205
|
createEvent,
|
|
206
206
|
getGlobalEventBus,
|
|
207
207
|
getGlobalRegistry
|
|
208
|
-
} from "./chunk-
|
|
208
|
+
} from "./chunk-V5FGXVSX.js";
|
|
209
209
|
import {
|
|
210
210
|
BWRAP_READ_ONLY_ARGS,
|
|
211
211
|
CliDetectionCache,
|
|
@@ -213,21 +213,21 @@ import {
|
|
|
213
213
|
extractRequestSystemPrompt,
|
|
214
214
|
getAvailableClis,
|
|
215
215
|
isAbsentSeat
|
|
216
|
-
} from "./chunk-
|
|
216
|
+
} from "./chunk-O3VPGING.js";
|
|
217
217
|
import {
|
|
218
218
|
ensureGatewayDiscovered,
|
|
219
219
|
getAvailabilityCache,
|
|
220
220
|
getCliForModelId,
|
|
221
221
|
resolveFallback
|
|
222
|
-
} from "./chunk-
|
|
222
|
+
} from "./chunk-QPU7QKPT.js";
|
|
223
223
|
import {
|
|
224
224
|
DEFAULTS
|
|
225
|
-
} from "./chunk-
|
|
225
|
+
} from "./chunk-XSAUVC6D.js";
|
|
226
226
|
import {
|
|
227
227
|
DEFAULT_EXECUTION_MODE,
|
|
228
228
|
DEFAULT_TOOL_RATE_LIMITS,
|
|
229
229
|
SecurityConfigSchema
|
|
230
|
-
} from "./chunk-
|
|
230
|
+
} from "./chunk-TYLE7Z2S.js";
|
|
231
231
|
import {
|
|
232
232
|
getNexusTmpDir
|
|
233
233
|
} from "./chunk-JPFRRNRR.js";
|
|
@@ -237,13 +237,10 @@ import {
|
|
|
237
237
|
parseGatewayExtraHeaders,
|
|
238
238
|
requireApiKey,
|
|
239
239
|
validateApiKeyPresence
|
|
240
|
-
} from "./chunk-
|
|
241
|
-
import {
|
|
242
|
-
resolveGatewayEnv
|
|
243
|
-
} from "./chunk-Q5F4OBOK.js";
|
|
240
|
+
} from "./chunk-K6M2ZWX5.js";
|
|
244
241
|
import {
|
|
245
242
|
createSessionMemory
|
|
246
|
-
} from "./chunk-
|
|
243
|
+
} from "./chunk-MCWIMVG2.js";
|
|
247
244
|
import {
|
|
248
245
|
TrustTierSchema
|
|
249
246
|
} from "./chunk-CJKHQ6MV.js";
|
|
@@ -257,17 +254,17 @@ import {
|
|
|
257
254
|
terminateProcessTree,
|
|
258
255
|
trackProcessTree,
|
|
259
256
|
withTimeout
|
|
260
|
-
} from "./chunk-
|
|
257
|
+
} from "./chunk-NUXSGWDS.js";
|
|
261
258
|
import {
|
|
262
259
|
generateHyphenId,
|
|
263
260
|
generateUUID
|
|
264
|
-
} from "./chunk-
|
|
261
|
+
} from "./chunk-RBFHY2LF.js";
|
|
265
262
|
import {
|
|
266
263
|
getDefaultCliCircuitBreakerRegistry
|
|
267
|
-
} from "./chunk-
|
|
264
|
+
} from "./chunk-VHOOJ4FG.js";
|
|
268
265
|
import {
|
|
269
266
|
sanitizeErrorDetails
|
|
270
|
-
} from "./chunk-
|
|
267
|
+
} from "./chunk-IRFKJ2KR.js";
|
|
271
268
|
import {
|
|
272
269
|
ARCHITECTURE_KEYWORDS,
|
|
273
270
|
AUTHORITY_TIERS,
|
|
@@ -387,7 +384,7 @@ import {
|
|
|
387
384
|
toExpertTaskAnalysisResult,
|
|
388
385
|
truncateWithInfo,
|
|
389
386
|
withStep
|
|
390
|
-
} from "./chunk-
|
|
387
|
+
} from "./chunk-WI73OZAU.js";
|
|
391
388
|
import {
|
|
392
389
|
SUPPORTED_EXTENSIONS
|
|
393
390
|
} from "./chunk-XBEKMUTO.js";
|
|
@@ -1089,16 +1086,6 @@ var NexusEnvSchema = z10.object({
|
|
|
1089
1086
|
// Paths, URLs, tokens and term lists: any non-empty string is legal, so
|
|
1090
1087
|
// z.string() is the accurate type rather than a permissive stand-in.
|
|
1091
1088
|
NEXUS_CODEPR_TOKEN: z10.string().optional(),
|
|
1092
|
-
// #4392 increment 3: deprecated aliases of NEXUS_OPENAI_COMPAT_URL / _KEY
|
|
1093
|
-
// for the single-model custom-openai path, dropped in the next major
|
|
1094
|
-
// (#6291). Kept registered so a correctly spelled alias is not reported as
|
|
1095
|
-
// a typo; their use is reported in `deprecatedVars` instead.
|
|
1096
|
-
NEXUS_CUSTOM_API_BASE_URL: z10.string().optional(),
|
|
1097
|
-
NEXUS_CUSTOM_API_KEY: z10.string().optional(),
|
|
1098
|
-
// Deprecated no-op since #6321 removed the ClawGuard deriver. Keep the
|
|
1099
|
-
// accept-set and registration for compatibility with the AGENTS.md table
|
|
1100
|
-
// (#4722); report its use in deprecatedVars until removal in 10.0 (#6319).
|
|
1101
|
-
NEXUS_ACCESS_POLICY_MODE: z10.enum(["off", "audit", "confirm_risky", "enforce"]).optional(),
|
|
1102
1089
|
NEXUS_CUSTOM_MODEL: z10.string().optional(),
|
|
1103
1090
|
// #6645: the OpenAI API surface the single-model custom-openai adapter calls.
|
|
1104
1091
|
// Default `chat` (/chat/completions); `responses` opts into /responses. The
|
|
@@ -1292,7 +1279,7 @@ function classifyEnvKeys(nexusKeys, env) {
|
|
|
1292
1279
|
}
|
|
1293
1280
|
return { knownRecord, unknownVars };
|
|
1294
1281
|
}
|
|
1295
|
-
function logValidationWarnings(logger58, unknownVars, invalidVars, ineffectiveVars
|
|
1282
|
+
function logValidationWarnings(logger58, unknownVars, invalidVars, ineffectiveVars) {
|
|
1296
1283
|
for (const u of unknownVars) {
|
|
1297
1284
|
const hint = u.suggestion !== null ? ` (did you mean ${u.suggestion}?)` : "";
|
|
1298
1285
|
logger58.warn(`Unknown environment variable: ${u.name}${hint}`);
|
|
@@ -1306,21 +1293,6 @@ function logValidationWarnings(logger58, unknownVars, invalidVars, ineffectiveVa
|
|
|
1306
1293
|
`Environment variable ${ineff.name} had no effect: requested ${String(ineff.requestedMs)}ms, using ${String(ineff.effectiveMs)}ms. ${ineff.reason}`
|
|
1307
1294
|
);
|
|
1308
1295
|
}
|
|
1309
|
-
for (const deprecated of deprecatedVars) {
|
|
1310
|
-
if (deprecated.notice !== void 0) logger58.warn(deprecated.notice);
|
|
1311
|
-
}
|
|
1312
|
-
}
|
|
1313
|
-
function findDeprecatedVars() {
|
|
1314
|
-
const deprecatedVars = [...resolveGatewayEnv(process.env).deprecated];
|
|
1315
|
-
if (process.env["NEXUS_ACCESS_POLICY_MODE"] !== void 0) {
|
|
1316
|
-
deprecatedVars.push({
|
|
1317
|
-
name: "NEXUS_ACCESS_POLICY_MODE",
|
|
1318
|
-
replacement: "",
|
|
1319
|
-
shadowed: false,
|
|
1320
|
-
notice: "NEXUS_ACCESS_POLICY_MODE is deprecated, has no effect, and will be removed in 10.0. Remove it from your environment."
|
|
1321
|
-
});
|
|
1322
|
-
}
|
|
1323
|
-
return deprecatedVars;
|
|
1324
1296
|
}
|
|
1325
1297
|
function findIneffectiveVars() {
|
|
1326
1298
|
const classNames = Object.keys(OPERATION_CLASSES);
|
|
@@ -1362,11 +1334,10 @@ function validateNexusEnv(logger58) {
|
|
|
1362
1334
|
}
|
|
1363
1335
|
}
|
|
1364
1336
|
const ineffectiveVars = findIneffectiveVars();
|
|
1365
|
-
const deprecatedVars = findDeprecatedVars();
|
|
1366
1337
|
if (logger58 !== void 0) {
|
|
1367
|
-
logValidationWarnings(logger58, unknownVars, invalidVars, ineffectiveVars
|
|
1338
|
+
logValidationWarnings(logger58, unknownVars, invalidVars, ineffectiveVars);
|
|
1368
1339
|
}
|
|
1369
|
-
return { unknownVars, invalidVars, ineffectiveVars
|
|
1340
|
+
return { unknownVars, invalidVars, ineffectiveVars };
|
|
1370
1341
|
}
|
|
1371
1342
|
function getKnownNexusVarNames() {
|
|
1372
1343
|
return KNOWN_NAMES;
|
|
@@ -25810,11 +25781,6 @@ var AuthHandler = class {
|
|
|
25810
25781
|
constructor(config, logger58) {
|
|
25811
25782
|
this.config = resolveAuthConfig(config);
|
|
25812
25783
|
this.logger = logger58 ?? createLogger({ component: "AuthHandler" });
|
|
25813
|
-
if (this.config.method === "oauth2") {
|
|
25814
|
-
this.logger.warn(
|
|
25815
|
-
"security.auth.method 'oauth2' is not implemented and behaves as 'token' (bearer-token checks only). It will be rejected at the next major (#5681)."
|
|
25816
|
-
);
|
|
25817
|
-
}
|
|
25818
25784
|
if (this.config.enabled) this.loadToken();
|
|
25819
25785
|
}
|
|
25820
25786
|
/**
|
|
@@ -30447,7 +30413,7 @@ function execIdFields(executionId) {
|
|
|
30447
30413
|
async function populateUnifiedContextOnState(state, options) {
|
|
30448
30414
|
const taskCandidate = state["task"];
|
|
30449
30415
|
if (typeof taskCandidate !== "string" || taskCandidate === "") return;
|
|
30450
|
-
const { getContextForTask: getContextForTask2, inferTaskCategory: inferTaskCategory2 } = await import("./context-retriever-
|
|
30416
|
+
const { getContextForTask: getContextForTask2, inferTaskCategory: inferTaskCategory2 } = await import("./context-retriever-GEQIPCVL.js");
|
|
30451
30417
|
const category = inferTaskCategory2(taskCandidate);
|
|
30452
30418
|
const executionId = options?.executionId;
|
|
30453
30419
|
const execFields = execIdFields(executionId);
|
|
@@ -31718,10 +31684,9 @@ var StageResultSchema = z59.object({
|
|
|
31718
31684
|
var logger20 = createLogger({ component: "PluginRegistry" });
|
|
31719
31685
|
var PluginRegistry = class {
|
|
31720
31686
|
plugins = /* @__PURE__ */ new Map();
|
|
31721
|
-
options;
|
|
31722
31687
|
isFrozen = false;
|
|
31723
|
-
constructor(
|
|
31724
|
-
|
|
31688
|
+
// eslint-disable-next-line @typescript-eslint/no-useless-constructor -- retain the public optional options argument for API compatibility (#5496)
|
|
31689
|
+
constructor(_options) {
|
|
31725
31690
|
}
|
|
31726
31691
|
get frozen() {
|
|
31727
31692
|
return this.isFrozen;
|
|
@@ -31734,8 +31699,6 @@ var PluginRegistry = class {
|
|
|
31734
31699
|
if (idCheck !== void 0) return idCheck;
|
|
31735
31700
|
const manifestCheck = this.validateManifest(plugin.manifest);
|
|
31736
31701
|
if (manifestCheck !== void 0) return manifestCheck;
|
|
31737
|
-
const gateCheck = this.checkExperimentalGate(plugin.manifest);
|
|
31738
|
-
if (gateCheck !== void 0) return gateCheck;
|
|
31739
31702
|
const configResult = plugin.validateConfig(void 0);
|
|
31740
31703
|
if (!configResult.ok) {
|
|
31741
31704
|
return {
|
|
@@ -31794,29 +31757,6 @@ var PluginRegistry = class {
|
|
|
31794
31757
|
}
|
|
31795
31758
|
return void 0;
|
|
31796
31759
|
}
|
|
31797
|
-
checkExperimentalGate(manifest) {
|
|
31798
|
-
if (!manifest.experimental) return void 0;
|
|
31799
|
-
if (this.options.experimentalEnabled !== true) {
|
|
31800
|
-
return {
|
|
31801
|
-
ok: false,
|
|
31802
|
-
error: {
|
|
31803
|
-
type: "missing_capability",
|
|
31804
|
-
capability: "experimental-plugins"
|
|
31805
|
-
}
|
|
31806
|
-
};
|
|
31807
|
-
}
|
|
31808
|
-
const allow = this.options.experimentalAllow;
|
|
31809
|
-
if (allow !== void 0 && !allow.includes(manifest.id)) {
|
|
31810
|
-
return {
|
|
31811
|
-
ok: false,
|
|
31812
|
-
error: {
|
|
31813
|
-
type: "missing_capability",
|
|
31814
|
-
capability: `allowlist:${manifest.id}`
|
|
31815
|
-
}
|
|
31816
|
-
};
|
|
31817
|
-
}
|
|
31818
|
-
return void 0;
|
|
31819
|
-
}
|
|
31820
31760
|
};
|
|
31821
31761
|
|
|
31822
31762
|
// src/pipeline/core-plugins.ts
|
|
@@ -46918,7 +46858,7 @@ async function tryIssueTriage(task) {
|
|
|
46918
46858
|
try {
|
|
46919
46859
|
const issueMatch = task.match(/github\.com\/([^/]+\/[^/]+)\/issues\/(\d+)/);
|
|
46920
46860
|
if (issueMatch === null) return null;
|
|
46921
|
-
const { createIssueTriage } = await import("./issue-triage-
|
|
46861
|
+
const { createIssueTriage } = await import("./issue-triage-VKEHVHO4.js");
|
|
46922
46862
|
const triage = createIssueTriage();
|
|
46923
46863
|
const owner = issueMatch[1] ?? "";
|
|
46924
46864
|
const num2 = issueMatch[2] ?? "";
|
|
@@ -46946,7 +46886,7 @@ var VALID_TEMPLATES = /* @__PURE__ */ new Set([
|
|
|
46946
46886
|
]);
|
|
46947
46887
|
async function classifyWithLLM(task) {
|
|
46948
46888
|
try {
|
|
46949
|
-
const { executeExpert: executeExpert2 } = await import("./expert-bridge-
|
|
46889
|
+
const { executeExpert: executeExpert2 } = await import("./expert-bridge-5A4ADUBO.js");
|
|
46950
46890
|
const prompt = [
|
|
46951
46891
|
"Classify this task into exactly one pipeline template.",
|
|
46952
46892
|
"Templates: dev (implementation/bug fix/refactor), research (investigate/evaluate/compare),",
|
|
@@ -47113,12 +47053,10 @@ var PipelineStageSchema = z100.enum([
|
|
|
47113
47053
|
var PipelineStageDataSchema = z100.discriminatedUnion("type", [
|
|
47114
47054
|
z100.object({ type: z100.literal("research"), text: z100.string() }),
|
|
47115
47055
|
z100.object({ type: z100.literal("plan"), text: z100.string(), iterations: z100.number() }),
|
|
47056
|
+
// Unknown keys are stripped: 9.x conditional vote metadata remains loadable (#5969).
|
|
47116
47057
|
z100.object({
|
|
47117
47058
|
type: z100.literal("vote"),
|
|
47118
47059
|
approved: z100.boolean(),
|
|
47119
|
-
conditional: z100.boolean(),
|
|
47120
|
-
conditions: z100.array(z100.string()).optional(),
|
|
47121
|
-
caveats: z100.array(z100.string()).optional(),
|
|
47122
47060
|
iterations: z100.number()
|
|
47123
47061
|
}),
|
|
47124
47062
|
// PipelineTask shape is loose at the persistence layer — capture as
|
|
@@ -47183,9 +47121,6 @@ function applyPlan(state, d) {
|
|
|
47183
47121
|
}
|
|
47184
47122
|
function applyVote(state, d) {
|
|
47185
47123
|
state["voteIterations"] = d.iterations;
|
|
47186
|
-
state["voteConditional"] = d.conditional;
|
|
47187
|
-
if (d.conditions !== void 0) state["voteConditions"] = d.conditions;
|
|
47188
|
-
if (d.caveats !== void 0) state["voteCaveats"] = d.caveats;
|
|
47189
47124
|
}
|
|
47190
47125
|
function cleanupCheckpoint2(sessionId, customDir) {
|
|
47191
47126
|
if (!validateSessionId(sessionId)) return false;
|
|
@@ -47286,7 +47221,7 @@ async function runConsensusLoop(state, maxIter, revisePlan) {
|
|
|
47286
47221
|
return buildExhaustedResult(state, maxIter);
|
|
47287
47222
|
}
|
|
47288
47223
|
function isVoteAccepted(vote) {
|
|
47289
|
-
return vote.kind === "approved"
|
|
47224
|
+
return vote.kind === "approved";
|
|
47290
47225
|
}
|
|
47291
47226
|
function extractFeedback2(vote) {
|
|
47292
47227
|
if (vote === void 0) return "";
|
|
@@ -47320,7 +47255,7 @@ function buildVotingInput(plan, config) {
|
|
|
47320
47255
|
}
|
|
47321
47256
|
async function executeSingleVote(plan, config, log) {
|
|
47322
47257
|
try {
|
|
47323
|
-
const { executeVoting } = await import("./consensus-vote-
|
|
47258
|
+
const { executeVoting } = await import("./consensus-vote-IUXJHSSQ.js");
|
|
47324
47259
|
const input = buildVotingInput(plan, config);
|
|
47325
47260
|
const result = await executeVoting(input, log);
|
|
47326
47261
|
return parseVotingResult(result);
|
|
@@ -48279,7 +48214,7 @@ async function withDevPipelineWorkspace(stages, run, install = installDependenci
|
|
|
48279
48214
|
// src/pipeline/dev-pipeline.ts
|
|
48280
48215
|
var logger43 = createLogger({ component: "dev-pipeline" });
|
|
48281
48216
|
function isApproved(result) {
|
|
48282
|
-
return result.kind === "approved"
|
|
48217
|
+
return result.kind === "approved";
|
|
48283
48218
|
}
|
|
48284
48219
|
function getVoteFeedback(result) {
|
|
48285
48220
|
if (result.kind === "rejected") return result.feedback;
|
|
@@ -48327,12 +48262,7 @@ async function runDevPipelineInner(task, stages, options, sid, prior) {
|
|
|
48327
48262
|
const provenance = resolveContentTrustProvenance(trustTier, researchSourceTiers, sourceTrustTier);
|
|
48328
48263
|
logger43.debug("Consensus\u2192execute content trust tier", { ...provenance });
|
|
48329
48264
|
enforceConsensusExecutePolicy(sid, provenance, auditLogger);
|
|
48330
|
-
const tasks = await runOrResumeDecompose(prior, planResult.plan, stages,
|
|
48331
|
-
conditional: planResult.conditional,
|
|
48332
|
-
conditions: planResult.conditions,
|
|
48333
|
-
caveats: planResult.caveats,
|
|
48334
|
-
researchMaturity
|
|
48335
|
-
});
|
|
48265
|
+
const tasks = await runOrResumeDecompose(prior, planResult.plan, stages, researchMaturity);
|
|
48336
48266
|
if (sid !== void 0) saveStageCheckpoint(sid, "decompose", { type: "decompose", tasks });
|
|
48337
48267
|
if (options?.mode === "harness") {
|
|
48338
48268
|
logger43.info("Harness mode \u2014 returning tasks for external implementation");
|
|
@@ -48490,9 +48420,6 @@ async function runPlanningPhase(task, stages, prior, options) {
|
|
|
48490
48420
|
saveStageCheckpoint(sid, "vote", {
|
|
48491
48421
|
type: "vote",
|
|
48492
48422
|
approved: true,
|
|
48493
|
-
conditional: planResult.conditional,
|
|
48494
|
-
conditions: planResult.conditions,
|
|
48495
|
-
caveats: planResult.caveats,
|
|
48496
48423
|
iterations: planResult.iterations
|
|
48497
48424
|
});
|
|
48498
48425
|
}
|
|
@@ -48642,15 +48569,12 @@ async function runPlanOrResume(prior, task, research, stages, run) {
|
|
|
48642
48569
|
logger43.info("Resuming from checkpoint", { stage: "plan", sessionId });
|
|
48643
48570
|
return {
|
|
48644
48571
|
plan: prior.plan,
|
|
48645
|
-
iterations: prior.voteIterations ?? 0
|
|
48646
|
-
conditional: prior.voteConditional ?? false,
|
|
48647
|
-
conditions: prior.voteConditions ?? [],
|
|
48648
|
-
caveats: prior.voteCaveats ?? []
|
|
48572
|
+
iterations: prior.voteIterations ?? 0
|
|
48649
48573
|
};
|
|
48650
48574
|
}
|
|
48651
48575
|
return planVoteLoop(task, research, stages, sessionId, limits);
|
|
48652
48576
|
}
|
|
48653
|
-
async function runOrResumeDecompose(prior, plan, stages,
|
|
48577
|
+
async function runOrResumeDecompose(prior, plan, stages, researchMaturity) {
|
|
48654
48578
|
if (prior?.tasks !== void 0) {
|
|
48655
48579
|
logger43.info("Resuming from checkpoint", { stage: "decompose" });
|
|
48656
48580
|
return [...prior.tasks];
|
|
@@ -48662,16 +48586,9 @@ async function runOrResumeDecompose(prior, plan, stages, meta) {
|
|
|
48662
48586
|
});
|
|
48663
48587
|
return tasks.map((t) => ({
|
|
48664
48588
|
...t,
|
|
48665
|
-
...
|
|
48666
|
-
...meta.researchMaturity !== void 0 ? { researchMaturity: meta.researchMaturity } : {}
|
|
48589
|
+
...researchMaturity !== void 0 ? { researchMaturity } : {}
|
|
48667
48590
|
}));
|
|
48668
48591
|
}
|
|
48669
|
-
function extractConditionalMeta(vote) {
|
|
48670
|
-
if (vote.kind === "conditional_go") {
|
|
48671
|
-
return { conditional: true, conditions: vote.conditions, caveats: vote.caveats };
|
|
48672
|
-
}
|
|
48673
|
-
return { conditional: false, conditions: [], caveats: [] };
|
|
48674
|
-
}
|
|
48675
48592
|
async function planVoteLoop(task, research, stages, sessionId, limits) {
|
|
48676
48593
|
let feedback;
|
|
48677
48594
|
let plan = "";
|
|
@@ -48686,9 +48603,6 @@ async function planVoteLoop(task, research, stages, sessionId, limits) {
|
|
|
48686
48603
|
return {
|
|
48687
48604
|
plan: "",
|
|
48688
48605
|
iterations: i,
|
|
48689
|
-
conditional: false,
|
|
48690
|
-
conditions: [],
|
|
48691
|
-
caveats: [],
|
|
48692
48606
|
planStatus: "empty"
|
|
48693
48607
|
};
|
|
48694
48608
|
}
|
|
@@ -48700,7 +48614,7 @@ async function planVoteLoop(task, research, stages, sessionId, limits) {
|
|
|
48700
48614
|
}
|
|
48701
48615
|
);
|
|
48702
48616
|
const vote = voteOutcome.vote;
|
|
48703
|
-
if (vote.kind === "approved"
|
|
48617
|
+
if (vote.kind === "approved") {
|
|
48704
48618
|
return buildApprovedPlanResult(plan, i, vote, sessionId);
|
|
48705
48619
|
}
|
|
48706
48620
|
if (vote.kind === "no_quorum") {
|
|
@@ -48717,14 +48631,12 @@ async function planVoteLoop(task, research, stages, sessionId, limits) {
|
|
|
48717
48631
|
return buildUnapprovedPlanResult(plan, limits.vote, lastRejected, sessionId);
|
|
48718
48632
|
}
|
|
48719
48633
|
function buildApprovedPlanResult(plan, iterations, vote, sessionId) {
|
|
48720
|
-
const meta = extractConditionalMeta(vote);
|
|
48721
48634
|
logger43.info("Plan approved", {
|
|
48722
48635
|
iteration: iterations,
|
|
48723
48636
|
approval: vote.approvalPercentage,
|
|
48724
|
-
sessionId
|
|
48725
|
-
...meta
|
|
48637
|
+
sessionId
|
|
48726
48638
|
});
|
|
48727
|
-
return { plan, iterations
|
|
48639
|
+
return { plan, iterations };
|
|
48728
48640
|
}
|
|
48729
48641
|
async function runPlanVote(plan, research, stages, iteration) {
|
|
48730
48642
|
return withStep({ name: `vote (i=${String(iteration)})`, attrs: { iteration } }, async (ctx) => {
|
|
@@ -48750,9 +48662,6 @@ function buildNoQuorumPlanResult(plan, iterations, vote, retries) {
|
|
|
48750
48662
|
return {
|
|
48751
48663
|
plan,
|
|
48752
48664
|
iterations,
|
|
48753
|
-
conditional: false,
|
|
48754
|
-
conditions: [],
|
|
48755
|
-
caveats: [],
|
|
48756
48665
|
planStatus: "no_quorum",
|
|
48757
48666
|
planVoteReason: vote.reason,
|
|
48758
48667
|
planVoteApprovalPercentage: vote.approvalPercentage
|
|
@@ -48770,9 +48679,6 @@ function buildUnapprovedPlanResult(plan, iterations, vote, sessionId) {
|
|
|
48770
48679
|
return {
|
|
48771
48680
|
plan,
|
|
48772
48681
|
iterations,
|
|
48773
|
-
conditional: false,
|
|
48774
|
-
conditions: [],
|
|
48775
|
-
caveats: [],
|
|
48776
48682
|
planStatus: "unapproved",
|
|
48777
48683
|
planVoteApprovalPercentage: approvalPercentage,
|
|
48778
48684
|
planVoteFeedback: feedback
|
|
@@ -48868,7 +48774,7 @@ var memoryInitPromise = null;
|
|
|
48868
48774
|
async function initPipelineMemory() {
|
|
48869
48775
|
if (cachedMemory !== null) return cachedMemory;
|
|
48870
48776
|
try {
|
|
48871
|
-
const { createSessionMemory: createSessionMemory2 } = await import("./session-memory-
|
|
48777
|
+
const { createSessionMemory: createSessionMemory2 } = await import("./session-memory-M3CQFFL6.js");
|
|
48872
48778
|
const { getLearningDir } = await import("./learning-persistence-FB4U5AX2.js");
|
|
48873
48779
|
const mem = createSessionMemory2(getLearningDir());
|
|
48874
48780
|
mem.startSession(`pipeline-${String(getTimeProvider().now())}`);
|
|
@@ -48930,7 +48836,7 @@ function recordRoutingExperience(category, success, durationMs, tokensUsed = 0,
|
|
|
48930
48836
|
callRecord(routingMemoryCache);
|
|
48931
48837
|
return;
|
|
48932
48838
|
}
|
|
48933
|
-
routingMemoryInitPromise ??= import("./routing-memory-
|
|
48839
|
+
routingMemoryInitPromise ??= import("./routing-memory-VHQDJ6XZ.js").then(({ createRoutingMemory }) => {
|
|
48934
48840
|
routingMemoryCache ??= createRoutingMemory();
|
|
48935
48841
|
return routingMemoryCache;
|
|
48936
48842
|
}).catch((error) => {
|
|
@@ -49149,7 +49055,7 @@ function createVoteStage({ config, startStage }) {
|
|
|
49149
49055
|
const strategy = config.votingStrategy ?? "higher_order";
|
|
49150
49056
|
await postProgress(config, "Vote", `Running consensus with ${strategy} strategy...`);
|
|
49151
49057
|
try {
|
|
49152
|
-
const { executeVoting } = await import("./consensus-vote-
|
|
49058
|
+
const { executeVoting } = await import("./consensus-vote-IUXJHSSQ.js");
|
|
49153
49059
|
const proposal = buildVoteProposal(plan, research);
|
|
49154
49060
|
const votingResult = await executeVoting(
|
|
49155
49061
|
{
|
|
@@ -49956,7 +49862,7 @@ ${text}` : "";
|
|
|
49956
49862
|
}
|
|
49957
49863
|
async function getWeatherContext() {
|
|
49958
49864
|
try {
|
|
49959
|
-
const { generateWeatherReport: generateWeatherReport2 } = await import("./weather-report-
|
|
49865
|
+
const { generateWeatherReport: generateWeatherReport2 } = await import("./weather-report-OKMXF73V.js");
|
|
49960
49866
|
const report = generateWeatherReport2({ includeAdaptive: true });
|
|
49961
49867
|
const mappings = "recommendedMappings" in report ? report.recommendedMappings : [];
|
|
49962
49868
|
if (!Array.isArray(mappings) || mappings.length === 0) return "";
|
|
@@ -49974,7 +49880,7 @@ ${lines}
|
|
|
49974
49880
|
}
|
|
49975
49881
|
async function getMemoryContext(task) {
|
|
49976
49882
|
try {
|
|
49977
|
-
const { createSessionMemory: createSessionMemory2 } = await import("./session-memory-
|
|
49883
|
+
const { createSessionMemory: createSessionMemory2 } = await import("./session-memory-M3CQFFL6.js");
|
|
49978
49884
|
const { getLearningDir } = await import("./learning-persistence-FB4U5AX2.js");
|
|
49979
49885
|
const memory = createSessionMemory2(getLearningDir(), { maxLearningsInContext: 10 });
|
|
49980
49886
|
const learnings = memory.searchLearnings(task.slice(0, 200));
|
|
@@ -50691,7 +50597,7 @@ async function searchCodebaseForTask(task) {
|
|
|
50691
50597
|
}
|
|
50692
50598
|
async function queryResearchRegistry(task) {
|
|
50693
50599
|
try {
|
|
50694
|
-
const { synthesizeResearch: synthesizeResearch2 } = await import("./research-helpers-synthesize-
|
|
50600
|
+
const { synthesizeResearch: synthesizeResearch2 } = await import("./research-helpers-synthesize-MPEJHPYR.js");
|
|
50695
50601
|
const topic = task.split(/[.!?\n]/).filter((s) => s.trim().length > 10)[0]?.trim();
|
|
50696
50602
|
if (topic === void 0) return null;
|
|
50697
50603
|
const result = await synthesizeResearch2(topic.slice(0, 50));
|
|
@@ -50762,7 +50668,7 @@ function createScanStageWrapper() {
|
|
|
50762
50668
|
try {
|
|
50763
50669
|
const slug = ctx.task.match(/([a-zA-Z0-9._-]+\/[a-zA-Z0-9._-]+)/)?.[1];
|
|
50764
50670
|
if (slug !== void 0) {
|
|
50765
|
-
const { generateSecurityPlan: generateSecurityPlan2 } = await import("./repo-security-plan-
|
|
50671
|
+
const { generateSecurityPlan: generateSecurityPlan2 } = await import("./repo-security-plan-QO6ACTPZ.js");
|
|
50766
50672
|
const plan = await generateSecurityPlan2({ repo: slug, maxScanners: 10 });
|
|
50767
50673
|
const recs = plan.recommendations.slice(0, 5).map((r) => `${r.priority}: ${r.displayName} (${r.category})`).join("; ");
|
|
50768
50674
|
return output(PIPELINE_STATE_KEYS.FINDINGS, recs, getTimeProvider().now() - start, true);
|
|
@@ -54688,7 +54594,7 @@ var GitHubTaskTracker = class {
|
|
|
54688
54594
|
cachedProvider = null;
|
|
54689
54595
|
async getProvider() {
|
|
54690
54596
|
if (this.cachedProvider !== null) return this.cachedProvider;
|
|
54691
|
-
const { createScmProvider } = await import("./factory-
|
|
54597
|
+
const { createScmProvider } = await import("./factory-4RZLP7QV.js");
|
|
54692
54598
|
const result = await createScmProvider({ repo: this.config.repo ?? "" });
|
|
54693
54599
|
if (!result.ok) throw new Error(`SCM provider error: ${result.error.message}`);
|
|
54694
54600
|
this.cachedProvider = result.value;
|
|
@@ -55735,7 +55641,7 @@ function withCatalogueCaveat(report) {
|
|
|
55735
55641
|
var GATEWAY_TRANSPORT = "gateway";
|
|
55736
55642
|
var GATEWAY_API_ARM = "api:custom-openai";
|
|
55737
55643
|
async function gatewaySource(apiArm) {
|
|
55738
|
-
const { discoverModels, readOpenAICompatEnv } = await import("./openai-compat-adapter-
|
|
55644
|
+
const { discoverModels, readOpenAICompatEnv } = await import("./openai-compat-adapter-GSDOJ7TQ.js");
|
|
55739
55645
|
const config = readOpenAICompatEnv();
|
|
55740
55646
|
if (config !== null) {
|
|
55741
55647
|
return {
|
|
@@ -55754,7 +55660,7 @@ async function gatewaySource(apiArm) {
|
|
|
55754
55660
|
}
|
|
55755
55661
|
async function defaultSources(includeOpenRouter, adaptersFactory) {
|
|
55756
55662
|
const adapters = new Map(
|
|
55757
|
-
adaptersFactory !== void 0 ? adaptersFactory() : (await import("./factory-
|
|
55663
|
+
adaptersFactory !== void 0 ? adaptersFactory() : (await import("./factory-UBAUIA2M.js")).createAllAdapters()
|
|
55758
55664
|
);
|
|
55759
55665
|
const apiArm = adapters.get(GATEWAY_API_ARM);
|
|
55760
55666
|
adapters.delete(GATEWAY_API_ARM);
|
|
@@ -59126,4 +59032,4 @@ export {
|
|
|
59126
59032
|
initializeSandbox,
|
|
59127
59033
|
getSandboxMode
|
|
59128
59034
|
};
|
|
59129
|
-
//# sourceMappingURL=chunk-
|
|
59035
|
+
//# sourceMappingURL=chunk-BDAR2UPN.js.map
|