nexus-agents 2.170.0 → 2.171.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/{child-mcp-config-3RYBPZNE.js → child-mcp-config-NW4JZFWC.js} +2 -2
- package/dist/{chunk-LYWNKEGM.js → chunk-25CWEJ2M.js} +4 -4
- package/dist/{chunk-JOYOOEPJ.js → chunk-4KVAHGMB.js} +2 -2
- package/dist/{chunk-SCHD7NZD.js → chunk-5UDKUPZB.js} +7 -7
- package/dist/{chunk-Z4AWOPXA.js → chunk-76Q63KJM.js} +2 -2
- package/dist/{chunk-NXSY4G4Y.js → chunk-7AJWIOMT.js} +2 -2
- package/dist/{chunk-OFVUBY6Z.js → chunk-AJIDYCQG.js} +3 -3
- package/dist/{chunk-JYDXHV4L.js → chunk-B4XT3B2E.js} +2 -2
- package/dist/{chunk-OYBAKU7N.js → chunk-BTH745HU.js} +2 -2
- package/dist/{chunk-DEE2UTYV.js → chunk-CEDSYAAI.js} +2 -2
- package/dist/{chunk-OIT75IRK.js → chunk-DLVDFJXU.js} +4 -4
- package/dist/{chunk-6TN2Z2AQ.js → chunk-DYFF72HX.js} +3 -3
- package/dist/{chunk-BGV3IF3G.js → chunk-E53VLN73.js} +8 -8
- package/dist/{chunk-LDZEYJP3.js → chunk-FU2FRL46.js} +2 -2
- package/dist/{chunk-75AUSQL4.js → chunk-GJRLIANS.js} +7 -7
- package/dist/{chunk-DCXCVEZP.js → chunk-IC3NZHPT.js} +2 -2
- package/dist/{chunk-57RYP435.js → chunk-IK7POCXO.js} +3 -3
- package/dist/{chunk-DDQXPARJ.js → chunk-KP4ZXW3B.js} +3 -3
- package/dist/{chunk-MG4JBADQ.js → chunk-LFKCJQ7G.js} +4 -4
- package/dist/{chunk-PIODB4SW.js → chunk-O4J34GZT.js} +2 -2
- package/dist/{chunk-P4PLZZCR.js → chunk-PP5QL4EJ.js} +5 -5
- package/dist/{chunk-GVTXP6F6.js → chunk-QBCWORAK.js} +3 -3
- package/dist/{chunk-URRNWRI4.js → chunk-QBOTSJ7S.js} +6 -5
- package/dist/{chunk-URRNWRI4.js.map → chunk-QBOTSJ7S.js.map} +1 -1
- package/dist/{chunk-JLG5AUZB.js → chunk-QFS5VOB6.js} +2 -2
- package/dist/{chunk-C6IAXFNC.js → chunk-RAK6PTNM.js} +2 -2
- package/dist/{chunk-WKW5SEP7.js → chunk-RQGORCFM.js} +5 -5
- package/dist/{chunk-HTM32H2E.js → chunk-S66XOAMZ.js} +2 -2
- package/dist/{chunk-ZW7544DX.js → chunk-SCHMBRK4.js} +3 -3
- package/dist/{chunk-UXXNNT5D.js → chunk-SUWN54CK.js} +2 -2
- package/dist/{chunk-LOKT6EW7.js → chunk-SZ3CRNPI.js} +8 -8
- package/dist/{chunk-5N5XURKV.js → chunk-Y7JDXVJA.js} +2 -2
- package/dist/{chunk-QMOJJ6A2.js → chunk-YIQ5Z7LV.js} +39 -34
- package/dist/chunk-YIQ5Z7LV.js.map +1 -0
- package/dist/{chunk-RJDJMOX6.js → chunk-Z5GJ4FXW.js} +4 -4
- package/dist/{chunk-RZJQZ5P3.js → chunk-ZSWXEDI6.js} +2 -2
- package/dist/{cli-circuit-breaker-4GJA2IXC.js → cli-circuit-breaker-UWJNXHLC.js} +4 -4
- package/dist/cli.js +40 -40
- package/dist/{composite-router-UBZO4YR7.js → composite-router-ULDZRQGO.js} +2 -2
- package/dist/{consensus-vote-USZFJO2K.js → consensus-vote-KF6M7NZJ.js} +15 -15
- package/dist/{context-retriever-C5C7RFQE.js → context-retriever-73PNAWES.js} +8 -8
- package/dist/{doctor-deep-2N3F7EV6.js → doctor-deep-LURSTTF7.js} +3 -3
- package/dist/{expert-bridge-B3EFTAID.js → expert-bridge-VWS3NBL3.js} +4 -4
- package/dist/{factory-SURRFPSV.js → factory-KPJ2EG63.js} +5 -5
- package/dist/{factory-LKQKU3SD.js → factory-MYJYONBQ.js} +8 -8
- package/dist/{improvement-review-75OCZ5K7.js → improvement-review-APOK4U3Z.js} +5 -5
- package/dist/index.d.ts +151 -1
- package/dist/index.js +389 -155
- package/dist/index.js.map +1 -1
- package/dist/{init-opencode-LDI5E5LW.js → init-opencode-Y7WPFCY7.js} +5 -5
- package/dist/{issue-triage-WWQEY7PL.js → issue-triage-4P3TDIJQ.js} +6 -6
- package/dist/{pr-reviewer-helpers-HDP24LGZ.js → pr-reviewer-helpers-4JX2LEVZ.js} +4 -4
- package/dist/{registry-command-PZY7HWKO.js → registry-command-CTYTYRXF.js} +2 -2
- package/dist/{repo-security-plan-IYKDY5PW.js → repo-security-plan-4CXBXLAY.js} +3 -3
- package/dist/{research-helpers-synthesize-XSOFXRFK.js → research-helpers-synthesize-23OXMV47.js} +4 -4
- package/dist/{routing-memory-JTNH2BXS.js → routing-memory-AWCOIW27.js} +2 -2
- package/dist/security/ast-rules/command-exec-go.yml +15 -0
- package/dist/security/ast-rules/dangerous-eval-python.yml +8 -0
- package/dist/security/ast-rules/shell-injection-python.yml +13 -0
- package/dist/{session-memory-RJZ447UX.js → session-memory-P53QXKGV.js} +3 -3
- package/dist/{setup-command-35MCRS33.js → setup-command-IRW76CNQ.js} +13 -13
- package/dist/{setup-config-JV23ZYPO.js → setup-config-B7WLUMUU.js} +3 -3
- package/dist/{setup-custom-api-LMA445OB.js → setup-custom-api-B6QGKSEY.js} +3 -3
- package/dist/{tool-memory-K6EYH3FQ.js → tool-memory-QUFVINHN.js} +5 -5
- package/dist/{unified-registry-MJA6IBDD.js → unified-registry-4NOWT2MU.js} +9 -9
- package/dist/{weather-report-ID4ZNUAF.js → weather-report-MCLS5MFZ.js} +2 -2
- package/package.json +4 -1
- package/src/security/ast-rules/command-exec-go.yml +15 -0
- package/src/security/ast-rules/dangerous-eval-python.yml +8 -0
- package/src/security/ast-rules/fixtures/sample.go +33 -0
- package/src/security/ast-rules/fixtures/sample.py +41 -0
- package/src/security/ast-rules/shell-injection-python.yml +13 -0
- package/dist/chunk-QMOJJ6A2.js.map +0 -1
- /package/dist/{child-mcp-config-3RYBPZNE.js.map → child-mcp-config-NW4JZFWC.js.map} +0 -0
- /package/dist/{chunk-LYWNKEGM.js.map → chunk-25CWEJ2M.js.map} +0 -0
- /package/dist/{chunk-JOYOOEPJ.js.map → chunk-4KVAHGMB.js.map} +0 -0
- /package/dist/{chunk-SCHD7NZD.js.map → chunk-5UDKUPZB.js.map} +0 -0
- /package/dist/{chunk-Z4AWOPXA.js.map → chunk-76Q63KJM.js.map} +0 -0
- /package/dist/{chunk-NXSY4G4Y.js.map → chunk-7AJWIOMT.js.map} +0 -0
- /package/dist/{chunk-OFVUBY6Z.js.map → chunk-AJIDYCQG.js.map} +0 -0
- /package/dist/{chunk-JYDXHV4L.js.map → chunk-B4XT3B2E.js.map} +0 -0
- /package/dist/{chunk-OYBAKU7N.js.map → chunk-BTH745HU.js.map} +0 -0
- /package/dist/{chunk-DEE2UTYV.js.map → chunk-CEDSYAAI.js.map} +0 -0
- /package/dist/{chunk-OIT75IRK.js.map → chunk-DLVDFJXU.js.map} +0 -0
- /package/dist/{chunk-6TN2Z2AQ.js.map → chunk-DYFF72HX.js.map} +0 -0
- /package/dist/{chunk-BGV3IF3G.js.map → chunk-E53VLN73.js.map} +0 -0
- /package/dist/{chunk-LDZEYJP3.js.map → chunk-FU2FRL46.js.map} +0 -0
- /package/dist/{chunk-75AUSQL4.js.map → chunk-GJRLIANS.js.map} +0 -0
- /package/dist/{chunk-DCXCVEZP.js.map → chunk-IC3NZHPT.js.map} +0 -0
- /package/dist/{chunk-57RYP435.js.map → chunk-IK7POCXO.js.map} +0 -0
- /package/dist/{chunk-DDQXPARJ.js.map → chunk-KP4ZXW3B.js.map} +0 -0
- /package/dist/{chunk-MG4JBADQ.js.map → chunk-LFKCJQ7G.js.map} +0 -0
- /package/dist/{chunk-PIODB4SW.js.map → chunk-O4J34GZT.js.map} +0 -0
- /package/dist/{chunk-P4PLZZCR.js.map → chunk-PP5QL4EJ.js.map} +0 -0
- /package/dist/{chunk-GVTXP6F6.js.map → chunk-QBCWORAK.js.map} +0 -0
- /package/dist/{chunk-JLG5AUZB.js.map → chunk-QFS5VOB6.js.map} +0 -0
- /package/dist/{chunk-C6IAXFNC.js.map → chunk-RAK6PTNM.js.map} +0 -0
- /package/dist/{chunk-WKW5SEP7.js.map → chunk-RQGORCFM.js.map} +0 -0
- /package/dist/{chunk-HTM32H2E.js.map → chunk-S66XOAMZ.js.map} +0 -0
- /package/dist/{chunk-ZW7544DX.js.map → chunk-SCHMBRK4.js.map} +0 -0
- /package/dist/{chunk-UXXNNT5D.js.map → chunk-SUWN54CK.js.map} +0 -0
- /package/dist/{chunk-LOKT6EW7.js.map → chunk-SZ3CRNPI.js.map} +0 -0
- /package/dist/{chunk-5N5XURKV.js.map → chunk-Y7JDXVJA.js.map} +0 -0
- /package/dist/{chunk-RJDJMOX6.js.map → chunk-Z5GJ4FXW.js.map} +0 -0
- /package/dist/{chunk-RZJQZ5P3.js.map → chunk-ZSWXEDI6.js.map} +0 -0
- /package/dist/{cli-circuit-breaker-4GJA2IXC.js.map → cli-circuit-breaker-UWJNXHLC.js.map} +0 -0
- /package/dist/{composite-router-UBZO4YR7.js.map → composite-router-ULDZRQGO.js.map} +0 -0
- /package/dist/{consensus-vote-USZFJO2K.js.map → consensus-vote-KF6M7NZJ.js.map} +0 -0
- /package/dist/{context-retriever-C5C7RFQE.js.map → context-retriever-73PNAWES.js.map} +0 -0
- /package/dist/{doctor-deep-2N3F7EV6.js.map → doctor-deep-LURSTTF7.js.map} +0 -0
- /package/dist/{expert-bridge-B3EFTAID.js.map → expert-bridge-VWS3NBL3.js.map} +0 -0
- /package/dist/{factory-LKQKU3SD.js.map → factory-KPJ2EG63.js.map} +0 -0
- /package/dist/{factory-SURRFPSV.js.map → factory-MYJYONBQ.js.map} +0 -0
- /package/dist/{improvement-review-75OCZ5K7.js.map → improvement-review-APOK4U3Z.js.map} +0 -0
- /package/dist/{init-opencode-LDI5E5LW.js.map → init-opencode-Y7WPFCY7.js.map} +0 -0
- /package/dist/{issue-triage-WWQEY7PL.js.map → issue-triage-4P3TDIJQ.js.map} +0 -0
- /package/dist/{pr-reviewer-helpers-HDP24LGZ.js.map → pr-reviewer-helpers-4JX2LEVZ.js.map} +0 -0
- /package/dist/{registry-command-PZY7HWKO.js.map → registry-command-CTYTYRXF.js.map} +0 -0
- /package/dist/{repo-security-plan-IYKDY5PW.js.map → repo-security-plan-4CXBXLAY.js.map} +0 -0
- /package/dist/{research-helpers-synthesize-XSOFXRFK.js.map → research-helpers-synthesize-23OXMV47.js.map} +0 -0
- /package/dist/{routing-memory-JTNH2BXS.js.map → routing-memory-AWCOIW27.js.map} +0 -0
- /package/dist/{session-memory-RJZ447UX.js.map → session-memory-P53QXKGV.js.map} +0 -0
- /package/dist/{setup-command-35MCRS33.js.map → setup-command-IRW76CNQ.js.map} +0 -0
- /package/dist/{setup-config-JV23ZYPO.js.map → setup-config-B7WLUMUU.js.map} +0 -0
- /package/dist/{setup-custom-api-LMA445OB.js.map → setup-custom-api-B6QGKSEY.js.map} +0 -0
- /package/dist/{tool-memory-K6EYH3FQ.js.map → tool-memory-QUFVINHN.js.map} +0 -0
- /package/dist/{unified-registry-MJA6IBDD.js.map → unified-registry-4NOWT2MU.js.map} +0 -0
- /package/dist/{weather-report-ID4ZNUAF.js.map → weather-report-MCLS5MFZ.js.map} +0 -0
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
createLogger,
|
|
16
16
|
err,
|
|
17
17
|
ok
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-QBCWORAK.js";
|
|
19
19
|
|
|
20
20
|
// src/adapters/sdk/types.ts
|
|
21
21
|
var PROVIDER_ENV_KEYS = {
|
|
@@ -396,4 +396,4 @@ export {
|
|
|
396
396
|
CUSTOM_API_DEFAULT_MODEL,
|
|
397
397
|
DEFAULTS
|
|
398
398
|
};
|
|
399
|
-
//# sourceMappingURL=chunk-
|
|
399
|
+
//# sourceMappingURL=chunk-QFS5VOB6.js.map
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
err,
|
|
5
5
|
getErrorMessage,
|
|
6
6
|
ok
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-QBCWORAK.js";
|
|
8
8
|
|
|
9
9
|
// src/scm/types.ts
|
|
10
10
|
var ScmError = class extends Error {
|
|
@@ -263,4 +263,4 @@ export {
|
|
|
263
263
|
ScmError,
|
|
264
264
|
GitHubProvider
|
|
265
265
|
};
|
|
266
|
-
//# sourceMappingURL=chunk-
|
|
266
|
+
//# sourceMappingURL=chunk-RAK6PTNM.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
GitHubProvider,
|
|
3
3
|
ScmError
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-RAK6PTNM.js";
|
|
5
5
|
import {
|
|
6
6
|
ROLE_DEFAULT_TRUST,
|
|
7
7
|
ReputationCache,
|
|
@@ -11,17 +11,17 @@ import {
|
|
|
11
11
|
gateWithReputation,
|
|
12
12
|
resolveReputationGatingMode,
|
|
13
13
|
sanitizeInput
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-CEDSYAAI.js";
|
|
15
15
|
import {
|
|
16
16
|
emitPolicyEvent
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-BTH745HU.js";
|
|
18
18
|
import {
|
|
19
19
|
CLI_SUBPROCESS_TIMEOUTS,
|
|
20
20
|
createLogger,
|
|
21
21
|
err,
|
|
22
22
|
getTimeProvider,
|
|
23
23
|
ok
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-QBCWORAK.js";
|
|
25
25
|
|
|
26
26
|
// src/security/trust-classifier.ts
|
|
27
27
|
function mapAuthorAssociation(association) {
|
|
@@ -1211,4 +1211,4 @@ export {
|
|
|
1211
1211
|
IssueTriage,
|
|
1212
1212
|
createIssueTriage
|
|
1213
1213
|
};
|
|
1214
|
-
//# sourceMappingURL=chunk-
|
|
1214
|
+
//# sourceMappingURL=chunk-RQGORCFM.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getErrorMessage
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-QBCWORAK.js";
|
|
4
4
|
|
|
5
5
|
// src/cli/setup-config.ts
|
|
6
6
|
import { copyFileSync, existsSync, mkdirSync, writeFileSync } from "fs";
|
|
@@ -77,4 +77,4 @@ function ensureBackup(outputPath) {
|
|
|
77
77
|
export {
|
|
78
78
|
runConfigInitSync
|
|
79
79
|
};
|
|
80
|
-
//# sourceMappingURL=chunk-
|
|
80
|
+
//# sourceMappingURL=chunk-S66XOAMZ.js.map
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
toolStructuredError,
|
|
8
8
|
toolSuccessStructured,
|
|
9
9
|
wrapToolWithTimeout
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-KP4ZXW3B.js";
|
|
11
11
|
import {
|
|
12
12
|
JsonlStore,
|
|
13
13
|
SECURITY_KEYWORDS,
|
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
getPipelineEventBus,
|
|
20
20
|
getTimeProvider,
|
|
21
21
|
isDeclaredNeverDeprecate
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-QBCWORAK.js";
|
|
23
23
|
import {
|
|
24
24
|
getNexusDataDir,
|
|
25
25
|
nexusDataPath
|
|
@@ -2132,4 +2132,4 @@ export {
|
|
|
2132
2132
|
runImprovementReview,
|
|
2133
2133
|
registerImprovementReviewTool
|
|
2134
2134
|
};
|
|
2135
|
-
//# sourceMappingURL=chunk-
|
|
2135
|
+
//# sourceMappingURL=chunk-SCHMBRK4.js.map
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
MODEL_IDS,
|
|
4
4
|
getTimeProvider,
|
|
5
5
|
resolveModelIdentitySync
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-QBCWORAK.js";
|
|
7
7
|
|
|
8
8
|
// src/config/model-availability.ts
|
|
9
9
|
var DEFAULT_TTL_MS = 6e4;
|
|
@@ -150,4 +150,4 @@ export {
|
|
|
150
150
|
resetAvailabilityCache,
|
|
151
151
|
filterAvailableModels
|
|
152
152
|
};
|
|
153
|
-
//# sourceMappingURL=chunk-
|
|
153
|
+
//# sourceMappingURL=chunk-SUWN54CK.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
computeCostDetail
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-7AJWIOMT.js";
|
|
4
4
|
import {
|
|
5
5
|
DEFAULT_CONSENSUS_CONFIG,
|
|
6
6
|
DEFAULT_INCREMENTAL_QUORUM_CONFIG,
|
|
@@ -18,20 +18,20 @@ import {
|
|
|
18
18
|
toolSuccess,
|
|
19
19
|
withProgressHeartbeat,
|
|
20
20
|
wrapToolWithTimeout
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-KP4ZXW3B.js";
|
|
22
22
|
import {
|
|
23
23
|
getToolMemory
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-LFKCJQ7G.js";
|
|
25
25
|
import {
|
|
26
26
|
createEvent,
|
|
27
27
|
getGlobalRegistry
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-Z5GJ4FXW.js";
|
|
29
29
|
import {
|
|
30
30
|
authRemediation,
|
|
31
31
|
delay,
|
|
32
32
|
getAvailableClis,
|
|
33
33
|
withTimeout
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-5UDKUPZB.js";
|
|
35
35
|
import {
|
|
36
36
|
AgentError,
|
|
37
37
|
CLI_NAMES,
|
|
@@ -59,7 +59,7 @@ import {
|
|
|
59
59
|
registerPersistentOutcomeStoreFactory,
|
|
60
60
|
resolveClassGuardMs,
|
|
61
61
|
resolveVoteTimeout
|
|
62
|
-
} from "./chunk-
|
|
62
|
+
} from "./chunk-QBCWORAK.js";
|
|
63
63
|
import {
|
|
64
64
|
ensureLearningDir,
|
|
65
65
|
getOutcomesFile
|
|
@@ -5866,7 +5866,7 @@ async function processVotesWithCascade(engineVotes, opts) {
|
|
|
5866
5866
|
var CONTRARIAN_ESCALATION_THRESHOLD = 0.8;
|
|
5867
5867
|
async function runContrarianCheck(proposal, log) {
|
|
5868
5868
|
try {
|
|
5869
|
-
const { executeExpert } = await import("./expert-bridge-
|
|
5869
|
+
const { executeExpert } = await import("./expert-bridge-VWS3NBL3.js");
|
|
5870
5870
|
const prompt = [
|
|
5871
5871
|
"You are a contrarian analyst. Your job is to find reasons this proposal should be REJECTED.",
|
|
5872
5872
|
"Look for: YAGNI (not needed), MISALIGNED (wrong tech/architecture), SECURITY_RISK, SCOPE_CREEP.",
|
|
@@ -6382,4 +6382,4 @@ export {
|
|
|
6382
6382
|
CONSENSUS_VOTE_OUTPUT_SCHEMA,
|
|
6383
6383
|
registerConsensusVoteTool
|
|
6384
6384
|
};
|
|
6385
|
-
//# sourceMappingURL=chunk-
|
|
6385
|
+
//# sourceMappingURL=chunk-SZ3CRNPI.js.map
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
createLogger,
|
|
3
3
|
err,
|
|
4
4
|
ok
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-QBCWORAK.js";
|
|
6
6
|
|
|
7
7
|
// src/scm/token-resolver.ts
|
|
8
8
|
import { execFile } from "child_process";
|
|
@@ -87,4 +87,4 @@ export {
|
|
|
87
87
|
hasToken,
|
|
88
88
|
getTokenEnvVars
|
|
89
89
|
};
|
|
90
|
-
//# sourceMappingURL=chunk-
|
|
90
|
+
//# sourceMappingURL=chunk-Y7JDXVJA.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
generateSecurityPlan
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-B4XT3B2E.js";
|
|
4
4
|
import {
|
|
5
5
|
analyzeGitHubRepo
|
|
6
6
|
} from "./chunk-HFOQKCD2.js";
|
|
@@ -21,10 +21,10 @@ import {
|
|
|
21
21
|
DEFAULT_TASK_TTL_MS,
|
|
22
22
|
DEFAULT_TOOL_RATE_LIMITS,
|
|
23
23
|
clampTaskTtl
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-E53VLN73.js";
|
|
25
25
|
import {
|
|
26
26
|
executeExpert
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-GJRLIANS.js";
|
|
28
28
|
import {
|
|
29
29
|
JobStatusSchema,
|
|
30
30
|
abortJob,
|
|
@@ -45,21 +45,21 @@ import {
|
|
|
45
45
|
simulationDeniedResult,
|
|
46
46
|
toJobSummary,
|
|
47
47
|
writeJobCancelled
|
|
48
|
-
} from "./chunk-
|
|
48
|
+
} from "./chunk-SZ3CRNPI.js";
|
|
49
49
|
import {
|
|
50
50
|
normalizeTopicToCanonical,
|
|
51
51
|
synthesizeResearch
|
|
52
|
-
} from "./chunk-
|
|
52
|
+
} from "./chunk-DYFF72HX.js";
|
|
53
53
|
import {
|
|
54
54
|
IssueTriage
|
|
55
|
-
} from "./chunk-
|
|
55
|
+
} from "./chunk-RQGORCFM.js";
|
|
56
56
|
import {
|
|
57
57
|
resolveEnvMode,
|
|
58
58
|
sanitizeInput
|
|
59
|
-
} from "./chunk-
|
|
59
|
+
} from "./chunk-CEDSYAAI.js";
|
|
60
60
|
import {
|
|
61
61
|
withPrerequisite
|
|
62
|
-
} from "./chunk-
|
|
62
|
+
} from "./chunk-SCHMBRK4.js";
|
|
63
63
|
import {
|
|
64
64
|
NOOP_NOTIFIER,
|
|
65
65
|
RateLimiter,
|
|
@@ -82,12 +82,12 @@ import {
|
|
|
82
82
|
withAuditTrail,
|
|
83
83
|
withProgressHeartbeat,
|
|
84
84
|
wrapToolWithTimeout
|
|
85
|
-
} from "./chunk-
|
|
85
|
+
} from "./chunk-KP4ZXW3B.js";
|
|
86
86
|
import {
|
|
87
87
|
createAuditTrail,
|
|
88
88
|
createGraphAuditBridge,
|
|
89
89
|
emitPipelinePolicyEvent
|
|
90
|
-
} from "./chunk-
|
|
90
|
+
} from "./chunk-BTH745HU.js";
|
|
91
91
|
import {
|
|
92
92
|
IDENTIFIER_RE,
|
|
93
93
|
LANG_VALUES,
|
|
@@ -115,19 +115,20 @@ import {
|
|
|
115
115
|
getResearchStatus,
|
|
116
116
|
inferLang,
|
|
117
117
|
inferTaskCategory,
|
|
118
|
+
langToNapi,
|
|
118
119
|
paperExists,
|
|
119
120
|
parseRegistry,
|
|
120
121
|
sourceExistsInRegistry,
|
|
121
122
|
summarizeContextForPrompt
|
|
122
|
-
} from "./chunk-
|
|
123
|
+
} from "./chunk-QBOTSJ7S.js";
|
|
123
124
|
import {
|
|
124
125
|
getTokenEnvVars,
|
|
125
126
|
resolveToken
|
|
126
|
-
} from "./chunk-
|
|
127
|
+
} from "./chunk-Y7JDXVJA.js";
|
|
127
128
|
import {
|
|
128
129
|
loadPapersRegistry,
|
|
129
130
|
loadTechniquesRegistry
|
|
130
|
-
} from "./chunk-
|
|
131
|
+
} from "./chunk-ZSWXEDI6.js";
|
|
131
132
|
import {
|
|
132
133
|
resolveInsideRoot
|
|
133
134
|
} from "./chunk-NUBSJGQZ.js";
|
|
@@ -136,14 +137,14 @@ import {
|
|
|
136
137
|
MemoryImportance,
|
|
137
138
|
calculateTextJaccardSimilarity,
|
|
138
139
|
getToolMemory
|
|
139
|
-
} from "./chunk-
|
|
140
|
+
} from "./chunk-LFKCJQ7G.js";
|
|
140
141
|
import {
|
|
141
142
|
STOPWORDS,
|
|
142
143
|
truncateWithInfo
|
|
143
144
|
} from "./chunk-6T3EPABN.js";
|
|
144
145
|
import {
|
|
145
146
|
createSessionMemory
|
|
146
|
-
} from "./chunk-
|
|
147
|
+
} from "./chunk-O4J34GZT.js";
|
|
147
148
|
import {
|
|
148
149
|
BUILT_IN_EXPERTS,
|
|
149
150
|
BuiltInExpertTypeSchema,
|
|
@@ -158,7 +159,7 @@ import {
|
|
|
158
159
|
createEvent,
|
|
159
160
|
getGlobalEventBus,
|
|
160
161
|
getGlobalRegistry
|
|
161
|
-
} from "./chunk-
|
|
162
|
+
} from "./chunk-Z5GJ4FXW.js";
|
|
162
163
|
import {
|
|
163
164
|
CliDetectionCache,
|
|
164
165
|
asRecord,
|
|
@@ -166,19 +167,19 @@ import {
|
|
|
166
167
|
getAvailableClis,
|
|
167
168
|
sleep,
|
|
168
169
|
withTimeout
|
|
169
|
-
} from "./chunk-
|
|
170
|
+
} from "./chunk-5UDKUPZB.js";
|
|
170
171
|
import {
|
|
171
172
|
DEFAULTS
|
|
172
|
-
} from "./chunk-
|
|
173
|
+
} from "./chunk-QFS5VOB6.js";
|
|
173
174
|
import {
|
|
174
175
|
getAvailabilityCache,
|
|
175
176
|
getCliForModelId,
|
|
176
177
|
resolveFallback
|
|
177
|
-
} from "./chunk-
|
|
178
|
+
} from "./chunk-SUWN54CK.js";
|
|
178
179
|
import {
|
|
179
180
|
generateHyphenId,
|
|
180
181
|
generateUUID
|
|
181
|
-
} from "./chunk-
|
|
182
|
+
} from "./chunk-IC3NZHPT.js";
|
|
182
183
|
import {
|
|
183
184
|
AGENT_ROUTER_TIMEOUTS,
|
|
184
185
|
API_TIMEOUTS,
|
|
@@ -270,7 +271,7 @@ import {
|
|
|
270
271
|
selectStrategyByManifest,
|
|
271
272
|
toExpertTaskAnalysisResult,
|
|
272
273
|
withStep
|
|
273
|
-
} from "./chunk-
|
|
274
|
+
} from "./chunk-QBCWORAK.js";
|
|
274
275
|
import {
|
|
275
276
|
ensureLearningDir,
|
|
276
277
|
getMetaOutcomesFile,
|
|
@@ -12404,6 +12405,10 @@ var logger4 = createLogger({ component: "self-debug-protocol" });
|
|
|
12404
12405
|
// src/agents/collaboration/ast-fixer.ts
|
|
12405
12406
|
import { Project, SyntaxKind, Node } from "ts-morph";
|
|
12406
12407
|
|
|
12408
|
+
// src/agents/collaboration/ast-rewrites.ts
|
|
12409
|
+
import { parse } from "@ast-grep/napi";
|
|
12410
|
+
var FIXER_LANG = langToNapi("typescript");
|
|
12411
|
+
|
|
12407
12412
|
// src/agents/collaboration/agent-message-router-types.ts
|
|
12408
12413
|
var DEFAULT_ROUTER_CONFIG = {
|
|
12409
12414
|
timeoutMs: AGENT_ROUTER_TIMEOUTS.defaultMs,
|
|
@@ -26305,7 +26310,7 @@ function execIdFields(executionId) {
|
|
|
26305
26310
|
async function populateUnifiedContextOnState(state, options) {
|
|
26306
26311
|
const taskCandidate = state["task"];
|
|
26307
26312
|
if (typeof taskCandidate !== "string" || taskCandidate === "") return;
|
|
26308
|
-
const { getContextForTask: getContextForTask2, inferTaskCategory: inferTaskCategory2 } = await import("./context-retriever-
|
|
26313
|
+
const { getContextForTask: getContextForTask2, inferTaskCategory: inferTaskCategory2 } = await import("./context-retriever-73PNAWES.js");
|
|
26309
26314
|
const category = inferTaskCategory2(taskCandidate);
|
|
26310
26315
|
const executionId = options?.executionId;
|
|
26311
26316
|
const execFields = execIdFields(executionId);
|
|
@@ -41806,7 +41811,7 @@ async function tryIssueTriage(task) {
|
|
|
41806
41811
|
try {
|
|
41807
41812
|
const issueMatch = task.match(/github\.com\/([^/]+\/[^/]+)\/issues\/(\d+)/);
|
|
41808
41813
|
if (issueMatch === null) return null;
|
|
41809
|
-
const { createIssueTriage } = await import("./issue-triage-
|
|
41814
|
+
const { createIssueTriage } = await import("./issue-triage-4P3TDIJQ.js");
|
|
41810
41815
|
const triage = createIssueTriage();
|
|
41811
41816
|
const owner = issueMatch[1] ?? "";
|
|
41812
41817
|
const num = issueMatch[2] ?? "";
|
|
@@ -41834,7 +41839,7 @@ var VALID_TEMPLATES = /* @__PURE__ */ new Set([
|
|
|
41834
41839
|
]);
|
|
41835
41840
|
async function classifyWithLLM(task) {
|
|
41836
41841
|
try {
|
|
41837
|
-
const { executeExpert: executeExpert2 } = await import("./expert-bridge-
|
|
41842
|
+
const { executeExpert: executeExpert2 } = await import("./expert-bridge-VWS3NBL3.js");
|
|
41838
41843
|
const prompt = [
|
|
41839
41844
|
"Classify this task into exactly one pipeline template.",
|
|
41840
41845
|
"Templates: dev (implementation/bug fix/refactor), research (investigate/evaluate/compare),",
|
|
@@ -43475,7 +43480,7 @@ var memoryInitPromise = null;
|
|
|
43475
43480
|
async function initPipelineMemory() {
|
|
43476
43481
|
if (cachedMemory !== null) return cachedMemory;
|
|
43477
43482
|
try {
|
|
43478
|
-
const { createSessionMemory: createSessionMemory2 } = await import("./session-memory-
|
|
43483
|
+
const { createSessionMemory: createSessionMemory2 } = await import("./session-memory-P53QXKGV.js");
|
|
43479
43484
|
const { getLearningDir } = await import("./learning-persistence-6D5GGT7D.js");
|
|
43480
43485
|
const mem = createSessionMemory2(getLearningDir());
|
|
43481
43486
|
mem.startSession(`pipeline-${String(getTimeProvider().now())}`);
|
|
@@ -43537,7 +43542,7 @@ function recordRoutingExperience(category, success, durationMs, tokensUsed = 0,
|
|
|
43537
43542
|
callRecord(routingMemoryCache);
|
|
43538
43543
|
return;
|
|
43539
43544
|
}
|
|
43540
|
-
routingMemoryInitPromise ??= import("./routing-memory-
|
|
43545
|
+
routingMemoryInitPromise ??= import("./routing-memory-AWCOIW27.js").then(({ createRoutingMemory }) => {
|
|
43541
43546
|
routingMemoryCache ??= createRoutingMemory();
|
|
43542
43547
|
return routingMemoryCache;
|
|
43543
43548
|
}).catch((error) => {
|
|
@@ -43571,7 +43576,7 @@ ${text}` : "";
|
|
|
43571
43576
|
}
|
|
43572
43577
|
async function getWeatherContext() {
|
|
43573
43578
|
try {
|
|
43574
|
-
const { generateWeatherReport: generateWeatherReport2 } = await import("./weather-report-
|
|
43579
|
+
const { generateWeatherReport: generateWeatherReport2 } = await import("./weather-report-MCLS5MFZ.js");
|
|
43575
43580
|
const report = generateWeatherReport2({ includeAdaptive: true });
|
|
43576
43581
|
const mappings = "recommendedMappings" in report ? report.recommendedMappings : [];
|
|
43577
43582
|
if (!Array.isArray(mappings) || mappings.length === 0) return "";
|
|
@@ -43589,7 +43594,7 @@ ${lines}
|
|
|
43589
43594
|
}
|
|
43590
43595
|
async function getMemoryContext(task) {
|
|
43591
43596
|
try {
|
|
43592
|
-
const { createSessionMemory: createSessionMemory2 } = await import("./session-memory-
|
|
43597
|
+
const { createSessionMemory: createSessionMemory2 } = await import("./session-memory-P53QXKGV.js");
|
|
43593
43598
|
const { getLearningDir } = await import("./learning-persistence-6D5GGT7D.js");
|
|
43594
43599
|
const memory = createSessionMemory2(getLearningDir(), { maxLearningsInContext: 10 });
|
|
43595
43600
|
const learnings = memory.searchLearnings(task.slice(0, 200));
|
|
@@ -43704,7 +43709,7 @@ ${contextBlock}`;
|
|
|
43704
43709
|
const strategy = config.votingStrategy ?? "higher_order";
|
|
43705
43710
|
await postProgress(config, "Vote", `Running consensus with ${strategy} strategy...`);
|
|
43706
43711
|
try {
|
|
43707
|
-
const { executeVoting } = await import("./consensus-vote-
|
|
43712
|
+
const { executeVoting } = await import("./consensus-vote-KF6M7NZJ.js");
|
|
43708
43713
|
const votingResult = await executeVoting(
|
|
43709
43714
|
{
|
|
43710
43715
|
proposal: buildVoteProposal(plan, research),
|
|
@@ -44145,7 +44150,7 @@ async function searchCodebaseForTask(task) {
|
|
|
44145
44150
|
}
|
|
44146
44151
|
async function queryResearchRegistry(task) {
|
|
44147
44152
|
try {
|
|
44148
|
-
const { synthesizeResearch: synthesizeResearch2 } = await import("./research-helpers-synthesize-
|
|
44153
|
+
const { synthesizeResearch: synthesizeResearch2 } = await import("./research-helpers-synthesize-23OXMV47.js");
|
|
44149
44154
|
const topic = task.split(/[.!?\n]/).filter((s) => s.trim().length > 10)[0]?.trim();
|
|
44150
44155
|
if (topic === void 0) return null;
|
|
44151
44156
|
const result = await synthesizeResearch2(topic.slice(0, 50));
|
|
@@ -44216,7 +44221,7 @@ function createScanStageWrapper() {
|
|
|
44216
44221
|
try {
|
|
44217
44222
|
const slug = ctx.task.match(/([a-zA-Z0-9._-]+\/[a-zA-Z0-9._-]+)/)?.[1];
|
|
44218
44223
|
if (slug !== void 0) {
|
|
44219
|
-
const { generateSecurityPlan: generateSecurityPlan2 } = await import("./repo-security-plan-
|
|
44224
|
+
const { generateSecurityPlan: generateSecurityPlan2 } = await import("./repo-security-plan-4CXBXLAY.js");
|
|
44220
44225
|
const plan = await generateSecurityPlan2({ repo: slug, maxScanners: 10 });
|
|
44221
44226
|
const recs = plan.recommendations.slice(0, 5).map((r) => `${r.priority}: ${r.displayName} (${r.category})`).join("; ");
|
|
44222
44227
|
return output(PIPELINE_STATE_KEYS.FINDINGS, recs, getTimeProvider().now() - start, true);
|
|
@@ -47176,7 +47181,7 @@ var GitHubTaskTracker = class {
|
|
|
47176
47181
|
cachedProvider = null;
|
|
47177
47182
|
async getProvider() {
|
|
47178
47183
|
if (this.cachedProvider !== null) return this.cachedProvider;
|
|
47179
|
-
const { createScmProvider } = await import("./factory-
|
|
47184
|
+
const { createScmProvider } = await import("./factory-KPJ2EG63.js");
|
|
47180
47185
|
const result = await createScmProvider({ repo: this.config.repo ?? "" });
|
|
47181
47186
|
if (!result.ok) throw new Error(`SCM provider error: ${result.error.message}`);
|
|
47182
47187
|
this.cachedProvider = result.value;
|
|
@@ -47983,7 +47988,7 @@ async function probeSource(source, includeModelIds) {
|
|
|
47983
47988
|
}
|
|
47984
47989
|
}
|
|
47985
47990
|
async function defaultSources(includeOpenRouter) {
|
|
47986
|
-
const { createAllAdapters: createAllAdapters2 } = await import("./factory-
|
|
47991
|
+
const { createAllAdapters: createAllAdapters2 } = await import("./factory-MYJYONBQ.js");
|
|
47987
47992
|
const adapters = createAllAdapters2();
|
|
47988
47993
|
return buildDefaultModelSources(adapters, { includeOpenRouter });
|
|
47989
47994
|
}
|
|
@@ -52054,4 +52059,4 @@ export {
|
|
|
52054
52059
|
shutdownFeedbackSubscriber,
|
|
52055
52060
|
createEventBusBridge
|
|
52056
52061
|
};
|
|
52057
|
-
//# sourceMappingURL=chunk-
|
|
52062
|
+
//# sourceMappingURL=chunk-YIQ5Z7LV.js.map
|