nexus-agents 4.12.3 → 4.14.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-KCISGMLP.js → child-mcp-config-OULJI7VH.js} +2 -2
- package/dist/{chunk-7HIXCOF3.js → chunk-232RDSCM.js} +2 -2
- package/dist/{chunk-WF3JUKXF.js → chunk-4WVGF3SL.js} +3 -3
- package/dist/{chunk-WF3JUKXF.js.map → chunk-4WVGF3SL.js.map} +1 -1
- package/dist/{chunk-V2UK3JLW.js → chunk-56LJJOBN.js} +4 -4
- package/dist/{chunk-TSV3PKVG.js → chunk-5PCTGUMF.js} +3 -3
- package/dist/{chunk-UMVUMIYL.js → chunk-6454KSCM.js} +2 -2
- package/dist/{chunk-2B2D54DT.js → chunk-7STKQ3IH.js} +2 -2
- package/dist/{chunk-Y4HESICE.js → chunk-AH74OHVO.js} +5 -5
- package/dist/{chunk-DHBABM7H.js → chunk-ARTQO7XZ.js} +4 -4
- package/dist/{chunk-TAHEGPTP.js → chunk-B6C3JCQB.js} +2 -2
- package/dist/{chunk-PFZXV4BF.js → chunk-EHMMTCCS.js} +5 -5
- package/dist/{chunk-PHEB5LZ4.js → chunk-F6MUN523.js} +2 -2
- package/dist/{chunk-UJTDBI5A.js → chunk-F6SRPGDK.js} +28 -13
- package/dist/chunk-F6SRPGDK.js.map +1 -0
- package/dist/{chunk-XQQFK6W6.js → chunk-HBF7O6CN.js} +6 -6
- package/dist/{chunk-LO6AVP74.js → chunk-I6JMAM4J.js} +2 -2
- package/dist/{chunk-FAOEP2JU.js → chunk-IZUT5OHH.js} +2 -2
- package/dist/{chunk-GQGW22FJ.js → chunk-J6JEW4QZ.js} +7 -7
- package/dist/{chunk-3FPT5PZG.js → chunk-KUGBMQAP.js} +3 -3
- package/dist/{chunk-XEHAUJ2U.js → chunk-LUBCO6ZN.js} +2 -2
- package/dist/{chunk-ITKW25UM.js → chunk-NMNTYAV2.js} +2 -2
- package/dist/{chunk-GFZB7SXK.js → chunk-P45XNRHB.js} +2 -2
- package/dist/{chunk-PJOXJZ7A.js → chunk-PWSW5Z4L.js} +2 -2
- package/dist/{chunk-UOKQ7X43.js → chunk-TANMACVQ.js} +2 -2
- package/dist/{chunk-QOM2AAOC.js → chunk-TEWDRLCM.js} +52 -41
- package/dist/chunk-TEWDRLCM.js.map +1 -0
- package/dist/{chunk-3ESVUE6D.js → chunk-V253VL7S.js} +3 -3
- package/dist/{chunk-VZG2R6YA.js → chunk-VENIFAMX.js} +4 -4
- package/dist/{chunk-3RUGMY4C.js → chunk-VPTDFOAK.js} +3 -3
- package/dist/{chunk-ULYAKSKE.js → chunk-VZVGT4MN.js} +7 -5
- package/dist/chunk-VZVGT4MN.js.map +1 -0
- package/dist/{chunk-HL2RMRWZ.js → chunk-W6IZVEIM.js} +2 -2
- package/dist/{chunk-D6D4YNBK.js → chunk-WATNLQS7.js} +2 -2
- package/dist/{chunk-4YPTSBFR.js → chunk-XGCYJLTP.js} +8 -8
- package/dist/{chunk-WNIPOPQG.js → chunk-XOKWIL6I.js} +8 -8
- package/dist/{chunk-FWB5HN67.js → chunk-XWIFBBBH.js} +2 -2
- package/dist/{chunk-FLJC3H6L.js → chunk-YHY5AZL2.js} +2 -2
- package/dist/{cli-circuit-breaker-F3Y7IJ2C.js → cli-circuit-breaker-4AVWA333.js} +3 -3
- package/dist/cli.js +41 -41
- package/dist/{composite-router-QZ54YC52.js → composite-router-7OTZN7NS.js} +2 -2
- package/dist/{consensus-vote-N6W43BWV.js → consensus-vote-KFLDRUJJ.js} +16 -16
- package/dist/{context-retriever-YIJXDVXK.js → context-retriever-2NZWXF6Z.js} +8 -8
- package/dist/{doctor-deep-EWG7CL3Z.js → doctor-deep-MC2FGSAF.js} +3 -3
- package/dist/{doctor-live-UEIWZDS7.js → doctor-live-25LRXKBO.js} +9 -9
- package/dist/{expert-bridge-D7EGIAZ6.js → expert-bridge-2YLK3E6Q.js} +4 -4
- package/dist/{factory-U5SRKSIG.js → factory-G57M6CD4.js} +5 -5
- package/dist/{factory-HZNKXWVD.js → factory-T7KN4CKD.js} +9 -9
- package/dist/{improvement-review-Q5IUKD4L.js → improvement-review-FFADRM4I.js} +5 -5
- package/dist/index.d.ts +17 -0
- package/dist/index.js +30 -30
- package/dist/{init-opencode-6TBM2B2N.js → init-opencode-OSZF74AL.js} +6 -6
- package/dist/issue-triage-KVYM5FQ5.js +17 -0
- package/dist/{pr-reviewer-helpers-LC266S6C.js → pr-reviewer-helpers-E3QXOVMT.js} +4 -4
- package/dist/{registry-command-NEM25F6F.js → registry-command-ZMKZ5CRZ.js} +2 -2
- package/dist/{repo-security-plan-AL6NHO3L.js → repo-security-plan-BPET6KTP.js} +3 -3
- package/dist/{research-helpers-synthesize-UIFSH6FS.js → research-helpers-synthesize-M4SONOWL.js} +4 -4
- package/dist/{routing-memory-AE43UXHE.js → routing-memory-3UWP6NOX.js} +2 -2
- package/dist/{session-memory-QBOHCSHP.js → session-memory-N2ABITF7.js} +3 -3
- package/dist/{setup-command-323RK7XH.js → setup-command-LXMVWIKJ.js} +14 -14
- package/dist/{setup-config-7QZAT3PM.js → setup-config-PJNXP57G.js} +3 -3
- package/dist/{setup-custom-api-NNXJ3GQZ.js → setup-custom-api-PE2M5HWL.js} +4 -4
- package/dist/{tool-memory-H6ZXL3MH.js → tool-memory-CARCDHTN.js} +5 -5
- package/dist/{unified-registry-TEVQXOSC.js → unified-registry-HVALHHPY.js} +10 -10
- package/dist/{weather-report-FKXNWHLU.js → weather-report-ZA7DBOC3.js} +2 -2
- package/package.json +1 -1
- package/dist/chunk-QOM2AAOC.js.map +0 -1
- package/dist/chunk-UJTDBI5A.js.map +0 -1
- package/dist/chunk-ULYAKSKE.js.map +0 -1
- package/dist/issue-triage-AS5XMR5T.js +0 -17
- /package/dist/{child-mcp-config-KCISGMLP.js.map → child-mcp-config-OULJI7VH.js.map} +0 -0
- /package/dist/{chunk-7HIXCOF3.js.map → chunk-232RDSCM.js.map} +0 -0
- /package/dist/{chunk-V2UK3JLW.js.map → chunk-56LJJOBN.js.map} +0 -0
- /package/dist/{chunk-TSV3PKVG.js.map → chunk-5PCTGUMF.js.map} +0 -0
- /package/dist/{chunk-UMVUMIYL.js.map → chunk-6454KSCM.js.map} +0 -0
- /package/dist/{chunk-2B2D54DT.js.map → chunk-7STKQ3IH.js.map} +0 -0
- /package/dist/{chunk-Y4HESICE.js.map → chunk-AH74OHVO.js.map} +0 -0
- /package/dist/{chunk-DHBABM7H.js.map → chunk-ARTQO7XZ.js.map} +0 -0
- /package/dist/{chunk-TAHEGPTP.js.map → chunk-B6C3JCQB.js.map} +0 -0
- /package/dist/{chunk-PFZXV4BF.js.map → chunk-EHMMTCCS.js.map} +0 -0
- /package/dist/{chunk-PHEB5LZ4.js.map → chunk-F6MUN523.js.map} +0 -0
- /package/dist/{chunk-XQQFK6W6.js.map → chunk-HBF7O6CN.js.map} +0 -0
- /package/dist/{chunk-LO6AVP74.js.map → chunk-I6JMAM4J.js.map} +0 -0
- /package/dist/{chunk-FAOEP2JU.js.map → chunk-IZUT5OHH.js.map} +0 -0
- /package/dist/{chunk-GQGW22FJ.js.map → chunk-J6JEW4QZ.js.map} +0 -0
- /package/dist/{chunk-3FPT5PZG.js.map → chunk-KUGBMQAP.js.map} +0 -0
- /package/dist/{chunk-XEHAUJ2U.js.map → chunk-LUBCO6ZN.js.map} +0 -0
- /package/dist/{chunk-ITKW25UM.js.map → chunk-NMNTYAV2.js.map} +0 -0
- /package/dist/{chunk-GFZB7SXK.js.map → chunk-P45XNRHB.js.map} +0 -0
- /package/dist/{chunk-PJOXJZ7A.js.map → chunk-PWSW5Z4L.js.map} +0 -0
- /package/dist/{chunk-UOKQ7X43.js.map → chunk-TANMACVQ.js.map} +0 -0
- /package/dist/{chunk-3ESVUE6D.js.map → chunk-V253VL7S.js.map} +0 -0
- /package/dist/{chunk-VZG2R6YA.js.map → chunk-VENIFAMX.js.map} +0 -0
- /package/dist/{chunk-3RUGMY4C.js.map → chunk-VPTDFOAK.js.map} +0 -0
- /package/dist/{chunk-HL2RMRWZ.js.map → chunk-W6IZVEIM.js.map} +0 -0
- /package/dist/{chunk-D6D4YNBK.js.map → chunk-WATNLQS7.js.map} +0 -0
- /package/dist/{chunk-4YPTSBFR.js.map → chunk-XGCYJLTP.js.map} +0 -0
- /package/dist/{chunk-WNIPOPQG.js.map → chunk-XOKWIL6I.js.map} +0 -0
- /package/dist/{chunk-FWB5HN67.js.map → chunk-XWIFBBBH.js.map} +0 -0
- /package/dist/{chunk-FLJC3H6L.js.map → chunk-YHY5AZL2.js.map} +0 -0
- /package/dist/{cli-circuit-breaker-F3Y7IJ2C.js.map → cli-circuit-breaker-4AVWA333.js.map} +0 -0
- /package/dist/{composite-router-QZ54YC52.js.map → composite-router-7OTZN7NS.js.map} +0 -0
- /package/dist/{consensus-vote-N6W43BWV.js.map → consensus-vote-KFLDRUJJ.js.map} +0 -0
- /package/dist/{context-retriever-YIJXDVXK.js.map → context-retriever-2NZWXF6Z.js.map} +0 -0
- /package/dist/{doctor-deep-EWG7CL3Z.js.map → doctor-deep-MC2FGSAF.js.map} +0 -0
- /package/dist/{doctor-live-UEIWZDS7.js.map → doctor-live-25LRXKBO.js.map} +0 -0
- /package/dist/{expert-bridge-D7EGIAZ6.js.map → expert-bridge-2YLK3E6Q.js.map} +0 -0
- /package/dist/{factory-HZNKXWVD.js.map → factory-G57M6CD4.js.map} +0 -0
- /package/dist/{factory-U5SRKSIG.js.map → factory-T7KN4CKD.js.map} +0 -0
- /package/dist/{improvement-review-Q5IUKD4L.js.map → improvement-review-FFADRM4I.js.map} +0 -0
- /package/dist/{init-opencode-6TBM2B2N.js.map → init-opencode-OSZF74AL.js.map} +0 -0
- /package/dist/{issue-triage-AS5XMR5T.js.map → issue-triage-KVYM5FQ5.js.map} +0 -0
- /package/dist/{pr-reviewer-helpers-LC266S6C.js.map → pr-reviewer-helpers-E3QXOVMT.js.map} +0 -0
- /package/dist/{registry-command-NEM25F6F.js.map → registry-command-ZMKZ5CRZ.js.map} +0 -0
- /package/dist/{repo-security-plan-AL6NHO3L.js.map → repo-security-plan-BPET6KTP.js.map} +0 -0
- /package/dist/{research-helpers-synthesize-UIFSH6FS.js.map → research-helpers-synthesize-M4SONOWL.js.map} +0 -0
- /package/dist/{routing-memory-AE43UXHE.js.map → routing-memory-3UWP6NOX.js.map} +0 -0
- /package/dist/{session-memory-QBOHCSHP.js.map → session-memory-N2ABITF7.js.map} +0 -0
- /package/dist/{setup-command-323RK7XH.js.map → setup-command-LXMVWIKJ.js.map} +0 -0
- /package/dist/{setup-config-7QZAT3PM.js.map → setup-config-PJNXP57G.js.map} +0 -0
- /package/dist/{setup-custom-api-NNXJ3GQZ.js.map → setup-custom-api-PE2M5HWL.js.map} +0 -0
- /package/dist/{tool-memory-H6ZXL3MH.js.map → tool-memory-CARCDHTN.js.map} +0 -0
- /package/dist/{unified-registry-TEVQXOSC.js.map → unified-registry-HVALHHPY.js.map} +0 -0
- /package/dist/{weather-report-FKXNWHLU.js.map → weather-report-ZA7DBOC3.js.map} +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
GitHubProvider,
|
|
3
3
|
ScmError
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-YHY5AZL2.js";
|
|
5
5
|
import {
|
|
6
6
|
ROLE_DEFAULT_TRUST,
|
|
7
7
|
ReputationCache,
|
|
@@ -11,20 +11,20 @@ import {
|
|
|
11
11
|
gateWithReputation,
|
|
12
12
|
resolveReputationGatingMode,
|
|
13
13
|
sanitizeInput
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-F6MUN523.js";
|
|
15
15
|
import {
|
|
16
16
|
emitPolicyEvent
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-LUBCO6ZN.js";
|
|
18
18
|
import {
|
|
19
19
|
hasToken
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-P45XNRHB.js";
|
|
21
21
|
import {
|
|
22
22
|
CLI_SUBPROCESS_TIMEOUTS,
|
|
23
23
|
createLogger,
|
|
24
24
|
err,
|
|
25
25
|
getTimeProvider,
|
|
26
26
|
ok
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-4WVGF3SL.js";
|
|
28
28
|
|
|
29
29
|
// src/security/trust-classifier.ts
|
|
30
30
|
function mapAuthorAssociation(association) {
|
|
@@ -1247,4 +1247,4 @@ export {
|
|
|
1247
1247
|
IssueTriage,
|
|
1248
1248
|
createIssueTriage
|
|
1249
1249
|
};
|
|
1250
|
-
//# sourceMappingURL=chunk-
|
|
1250
|
+
//# sourceMappingURL=chunk-HBF7O6CN.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getRandomProvider,
|
|
3
3
|
getTimeProvider
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-4WVGF3SL.js";
|
|
5
5
|
|
|
6
6
|
// src/utils/id-utils.ts
|
|
7
7
|
import { randomUUID } from "crypto";
|
|
@@ -24,4 +24,4 @@ export {
|
|
|
24
24
|
generateHyphenId,
|
|
25
25
|
generateUUID
|
|
26
26
|
};
|
|
27
|
-
//# sourceMappingURL=chunk-
|
|
27
|
+
//# sourceMappingURL=chunk-I6JMAM4J.js.map
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
getTimeProvider,
|
|
9
9
|
isRateLimitText,
|
|
10
10
|
ok
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-4WVGF3SL.js";
|
|
12
12
|
|
|
13
13
|
// src/cli-adapters/circuit-breaker-types.ts
|
|
14
14
|
var CircuitErrorCode = {
|
|
@@ -540,4 +540,4 @@ export {
|
|
|
540
540
|
CliCircuitBreakerIntegration,
|
|
541
541
|
createCliCircuitBreakerIntegration
|
|
542
542
|
};
|
|
543
|
-
//# sourceMappingURL=chunk-
|
|
543
|
+
//# sourceMappingURL=chunk-IZUT5OHH.js.map
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
resolveCliSlot
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-W6IZVEIM.js";
|
|
4
4
|
import {
|
|
5
5
|
createLogger,
|
|
6
6
|
getTimeProvider,
|
|
7
7
|
isRateLimitText
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-4WVGF3SL.js";
|
|
9
9
|
|
|
10
10
|
// src/pipeline/expert-bridge.ts
|
|
11
11
|
function resolveCliFromModelString(model) {
|
|
@@ -21,7 +21,7 @@ async function getMcpConfigPath() {
|
|
|
21
21
|
if (cachedMcpConfigPath !== null) return cachedMcpConfigPath;
|
|
22
22
|
mcpConfigInitPromise ??= (async () => {
|
|
23
23
|
try {
|
|
24
|
-
const { generateMcpConfig } = await import("./child-mcp-config-
|
|
24
|
+
const { generateMcpConfig } = await import("./child-mcp-config-OULJI7VH.js");
|
|
25
25
|
const config = await generateMcpConfig();
|
|
26
26
|
cachedMcpConfigPath = config.configPath;
|
|
27
27
|
cachedMcpConfigCleanup = config.cleanup;
|
|
@@ -93,8 +93,8 @@ var routerInitPromise = null;
|
|
|
93
93
|
async function getRouter() {
|
|
94
94
|
if (cachedRouter !== null) return cachedRouter;
|
|
95
95
|
routerInitPromise ??= (async () => {
|
|
96
|
-
const { createAllAdapters } = await import("./factory-
|
|
97
|
-
const { createCompositeRouter } = await import("./composite-router-
|
|
96
|
+
const { createAllAdapters } = await import("./factory-T7KN4CKD.js");
|
|
97
|
+
const { createCompositeRouter } = await import("./composite-router-7OTZN7NS.js");
|
|
98
98
|
const adapters = createAllAdapters();
|
|
99
99
|
if (adapters.size === 0) {
|
|
100
100
|
routerInitPromise = null;
|
|
@@ -102,7 +102,7 @@ async function getRouter() {
|
|
|
102
102
|
}
|
|
103
103
|
cachedRouter = adaptCompositeRouter(createCompositeRouter(adapters));
|
|
104
104
|
try {
|
|
105
|
-
const { createCliCircuitBreakerIntegration } = await import("./cli-circuit-breaker-
|
|
105
|
+
const { createCliCircuitBreakerIntegration } = await import("./cli-circuit-breaker-4AVWA333.js");
|
|
106
106
|
cachedCircuitBreaker = createCliCircuitBreakerIntegration([...adapters.values()]);
|
|
107
107
|
} catch (error) {
|
|
108
108
|
const msg = error instanceof Error ? error.message : String(error);
|
|
@@ -213,4 +213,4 @@ export {
|
|
|
213
213
|
tokenSplitFromUsage,
|
|
214
214
|
executeExpert
|
|
215
215
|
};
|
|
216
|
-
//# sourceMappingURL=chunk-
|
|
216
|
+
//# sourceMappingURL=chunk-J6JEW4QZ.js.map
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
toolStructuredError,
|
|
8
8
|
toolSuccessStructured,
|
|
9
9
|
wrapToolWithTimeout
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-V253VL7S.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-4WVGF3SL.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-KUGBMQAP.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getTimeProvider
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-4WVGF3SL.js";
|
|
4
4
|
|
|
5
5
|
// src/security/audit-trail.ts
|
|
6
6
|
var MAX_EVENTS = 1e4;
|
|
@@ -205,4 +205,4 @@ export {
|
|
|
205
205
|
createGraphAuditBridge,
|
|
206
206
|
createAuditTrail
|
|
207
207
|
};
|
|
208
|
-
//# sourceMappingURL=chunk-
|
|
208
|
+
//# sourceMappingURL=chunk-LUBCO6ZN.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getDefaultRegistry
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-4WVGF3SL.js";
|
|
4
4
|
import {
|
|
5
5
|
getNexusDataDir
|
|
6
6
|
} from "./chunk-OQLFRJCW.js";
|
|
@@ -128,4 +128,4 @@ export {
|
|
|
128
128
|
loadUsageEvents,
|
|
129
129
|
rollupByModel
|
|
130
130
|
};
|
|
131
|
-
//# sourceMappingURL=chunk-
|
|
131
|
+
//# sourceMappingURL=chunk-NMNTYAV2.js.map
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
createLogger,
|
|
3
3
|
err,
|
|
4
4
|
ok
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-4WVGF3SL.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-P45XNRHB.js.map
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
getErrorMessage,
|
|
9
9
|
ok,
|
|
10
10
|
parseBoolEnv
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-4WVGF3SL.js";
|
|
12
12
|
|
|
13
13
|
// src/cli/research-helpers-io.ts
|
|
14
14
|
import * as fs2 from "fs/promises";
|
|
@@ -146,4 +146,4 @@ export {
|
|
|
146
146
|
loadPapersRegistry,
|
|
147
147
|
savePapersRegistry
|
|
148
148
|
};
|
|
149
|
-
//# sourceMappingURL=chunk-
|
|
149
|
+
//# sourceMappingURL=chunk-PWSW5Z4L.js.map
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
getErrorMessage,
|
|
5
5
|
getTimeProvider,
|
|
6
6
|
ok
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-4WVGF3SL.js";
|
|
8
8
|
|
|
9
9
|
// src/context/session-memory.ts
|
|
10
10
|
import * as fs from "fs";
|
|
@@ -352,4 +352,4 @@ export {
|
|
|
352
352
|
SessionMemory,
|
|
353
353
|
createSessionMemory
|
|
354
354
|
};
|
|
355
|
-
//# sourceMappingURL=chunk-
|
|
355
|
+
//# sourceMappingURL=chunk-TANMACVQ.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
generateSecurityPlan
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-XWIFBBBH.js";
|
|
4
4
|
import {
|
|
5
5
|
analyzeGitHubRepo
|
|
6
6
|
} from "./chunk-HFOQKCD2.js";
|
|
@@ -22,10 +22,10 @@ import {
|
|
|
22
22
|
DEFAULT_TASK_TTL_MS,
|
|
23
23
|
DEFAULT_TOOL_RATE_LIMITS,
|
|
24
24
|
clampTaskTtl
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-XOKWIL6I.js";
|
|
26
26
|
import {
|
|
27
27
|
executeExpert
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-J6JEW4QZ.js";
|
|
29
29
|
import {
|
|
30
30
|
JobStatusSchema,
|
|
31
31
|
abortJob,
|
|
@@ -46,24 +46,24 @@ import {
|
|
|
46
46
|
simulationDeniedResult,
|
|
47
47
|
toJobSummary,
|
|
48
48
|
writeJobCancelled
|
|
49
|
-
} from "./chunk-
|
|
49
|
+
} from "./chunk-XGCYJLTP.js";
|
|
50
50
|
import {
|
|
51
51
|
allOf
|
|
52
52
|
} from "./chunk-OQB3XC5O.js";
|
|
53
53
|
import {
|
|
54
54
|
normalizeTopicToCanonical,
|
|
55
55
|
synthesizeResearch
|
|
56
|
-
} from "./chunk-
|
|
56
|
+
} from "./chunk-5PCTGUMF.js";
|
|
57
57
|
import {
|
|
58
58
|
IssueTriage
|
|
59
|
-
} from "./chunk-
|
|
59
|
+
} from "./chunk-HBF7O6CN.js";
|
|
60
60
|
import {
|
|
61
61
|
resolveEnvMode,
|
|
62
62
|
sanitizeInput
|
|
63
|
-
} from "./chunk-
|
|
63
|
+
} from "./chunk-F6MUN523.js";
|
|
64
64
|
import {
|
|
65
65
|
withPrerequisite
|
|
66
|
-
} from "./chunk-
|
|
66
|
+
} from "./chunk-KUGBMQAP.js";
|
|
67
67
|
import {
|
|
68
68
|
NOOP_NOTIFIER,
|
|
69
69
|
RateLimiter,
|
|
@@ -87,18 +87,18 @@ import {
|
|
|
87
87
|
withAuditTrail,
|
|
88
88
|
withProgressHeartbeat,
|
|
89
89
|
wrapToolWithTimeout
|
|
90
|
-
} from "./chunk-
|
|
90
|
+
} from "./chunk-V253VL7S.js";
|
|
91
91
|
import {
|
|
92
92
|
createAuditTrail,
|
|
93
93
|
createGraphAuditBridge,
|
|
94
94
|
emitPipelinePolicyEvent
|
|
95
|
-
} from "./chunk-
|
|
95
|
+
} from "./chunk-LUBCO6ZN.js";
|
|
96
96
|
import {
|
|
97
97
|
EventTopics,
|
|
98
98
|
createEvent,
|
|
99
99
|
getGlobalEventBus,
|
|
100
100
|
getGlobalRegistry
|
|
101
|
-
} from "./chunk-
|
|
101
|
+
} from "./chunk-56LJJOBN.js";
|
|
102
102
|
import {
|
|
103
103
|
IDENTIFIER_RE,
|
|
104
104
|
LANG_VALUES,
|
|
@@ -131,31 +131,31 @@ import {
|
|
|
131
131
|
parseRegistry,
|
|
132
132
|
sourceExistsInRegistry,
|
|
133
133
|
summarizeContextForPrompt
|
|
134
|
-
} from "./chunk-
|
|
134
|
+
} from "./chunk-EHMMTCCS.js";
|
|
135
135
|
import {
|
|
136
136
|
loadPapersRegistry,
|
|
137
137
|
loadTechniquesRegistry
|
|
138
|
-
} from "./chunk-
|
|
138
|
+
} from "./chunk-PWSW5Z4L.js";
|
|
139
139
|
import {
|
|
140
140
|
resolveInsideRoot
|
|
141
141
|
} from "./chunk-NUBSJGQZ.js";
|
|
142
142
|
import {
|
|
143
143
|
getTokenEnvVars,
|
|
144
144
|
resolveToken
|
|
145
|
-
} from "./chunk-
|
|
145
|
+
} from "./chunk-P45XNRHB.js";
|
|
146
146
|
import {
|
|
147
147
|
DEFAULT_RELEVANCE_CONFIG,
|
|
148
148
|
MemoryImportance,
|
|
149
149
|
calculateTextJaccardSimilarity,
|
|
150
150
|
getToolMemory
|
|
151
|
-
} from "./chunk-
|
|
151
|
+
} from "./chunk-ARTQO7XZ.js";
|
|
152
152
|
import {
|
|
153
153
|
STOPWORDS,
|
|
154
154
|
truncateWithInfo
|
|
155
155
|
} from "./chunk-6T3EPABN.js";
|
|
156
156
|
import {
|
|
157
157
|
createSessionMemory
|
|
158
|
-
} from "./chunk-
|
|
158
|
+
} from "./chunk-TANMACVQ.js";
|
|
159
159
|
import {
|
|
160
160
|
BUILT_IN_EXPERTS,
|
|
161
161
|
BuiltInExpertTypeSchema,
|
|
@@ -173,25 +173,25 @@ import {
|
|
|
173
173
|
getAvailableClis,
|
|
174
174
|
sleep,
|
|
175
175
|
withTimeout
|
|
176
|
-
} from "./chunk-
|
|
176
|
+
} from "./chunk-F6SRPGDK.js";
|
|
177
177
|
import {
|
|
178
178
|
BaseAdapter,
|
|
179
179
|
createStream,
|
|
180
180
|
requireApiKey,
|
|
181
181
|
validateApiKeyPresence
|
|
182
|
-
} from "./chunk-
|
|
182
|
+
} from "./chunk-6454KSCM.js";
|
|
183
183
|
import {
|
|
184
184
|
DEFAULTS
|
|
185
|
-
} from "./chunk-
|
|
185
|
+
} from "./chunk-B6C3JCQB.js";
|
|
186
186
|
import {
|
|
187
187
|
getAvailabilityCache,
|
|
188
188
|
getCliForModelId,
|
|
189
189
|
resolveFallback
|
|
190
|
-
} from "./chunk-
|
|
190
|
+
} from "./chunk-W6IZVEIM.js";
|
|
191
191
|
import {
|
|
192
192
|
generateHyphenId,
|
|
193
193
|
generateUUID
|
|
194
|
-
} from "./chunk-
|
|
194
|
+
} from "./chunk-I6JMAM4J.js";
|
|
195
195
|
import {
|
|
196
196
|
AGENT_ROUTER_TIMEOUTS,
|
|
197
197
|
API_TIMEOUTS,
|
|
@@ -291,7 +291,7 @@ import {
|
|
|
291
291
|
selectStrategyByManifest,
|
|
292
292
|
toExpertTaskAnalysisResult,
|
|
293
293
|
withStep
|
|
294
|
-
} from "./chunk-
|
|
294
|
+
} from "./chunk-4WVGF3SL.js";
|
|
295
295
|
import {
|
|
296
296
|
ensureLearningDir,
|
|
297
297
|
getMetaOutcomesFile,
|
|
@@ -1379,8 +1379,10 @@ var GeminiAdapter = class extends BaseAdapter {
|
|
|
1379
1379
|
}
|
|
1380
1380
|
controller.push({
|
|
1381
1381
|
type: "message_delta",
|
|
1382
|
-
delta: { stop_reason: "end_turn" }
|
|
1383
|
-
|
|
1382
|
+
delta: { stop_reason: "end_turn" }
|
|
1383
|
+
// #4835: no usage is reported on this path, so none is emitted —
|
|
1384
|
+
// zero-filling all three made an unmeasured stream indistinguishable
|
|
1385
|
+
// from one that consumed nothing. `usage` is optional on the chunk.
|
|
1384
1386
|
});
|
|
1385
1387
|
controller.push({ type: "message_stop" });
|
|
1386
1388
|
controller.complete();
|
|
@@ -18569,10 +18571,12 @@ var StateManager = class {
|
|
|
18569
18571
|
const startTime = new Date(current.startedAt).getTime();
|
|
18570
18572
|
const elapsedMs = getTimeProvider().now() - startTime;
|
|
18571
18573
|
const costPerToken = 1e-5;
|
|
18574
|
+
const measured = output2.tokensMeasured !== false;
|
|
18572
18575
|
return {
|
|
18573
18576
|
progress: current.progress,
|
|
18574
|
-
totalCost: current.totalCost + output2.tokensUsed * costPerToken,
|
|
18575
|
-
totalTokens: current.totalTokens + output2.tokensUsed,
|
|
18577
|
+
totalCost: current.totalCost + (measured ? output2.tokensUsed * costPerToken : 0),
|
|
18578
|
+
totalTokens: current.totalTokens + (measured ? output2.tokensUsed : 0),
|
|
18579
|
+
unmeasuredSteps: (current.unmeasuredSteps ?? 0) + (measured ? 0 : 1),
|
|
18576
18580
|
elapsedMs,
|
|
18577
18581
|
startedAt: current.startedAt
|
|
18578
18582
|
};
|
|
@@ -19499,6 +19503,7 @@ var DEFAULT_REWARD_CONFIG = {
|
|
|
19499
19503
|
maxTime: 3e5
|
|
19500
19504
|
};
|
|
19501
19505
|
function computeStepReward(output2, progressDelta, config = DEFAULT_REWARD_CONFIG) {
|
|
19506
|
+
if (output2.tokensMeasured === false) return null;
|
|
19502
19507
|
const progressReward = progressDelta * config.progressWeight;
|
|
19503
19508
|
const costPenalty = output2.tokensUsed * 1e-5 / config.maxCost;
|
|
19504
19509
|
const timePenalty = output2.durationMs / config.maxTime;
|
|
@@ -19549,19 +19554,24 @@ function computeMetrics(trajectory, emergentPatterns, success) {
|
|
|
19549
19554
|
if (trajectory.length === 0) {
|
|
19550
19555
|
return {
|
|
19551
19556
|
avgReward: 0,
|
|
19557
|
+
scoredSteps: 0,
|
|
19552
19558
|
taskCompletionRate: success ? 1 : 0,
|
|
19553
19559
|
efficiencyScore: 0,
|
|
19554
19560
|
compactionScore: 0,
|
|
19555
19561
|
cyclicalityScore: 0
|
|
19556
19562
|
};
|
|
19557
19563
|
}
|
|
19558
|
-
const
|
|
19564
|
+
const scored = trajectory.filter(
|
|
19565
|
+
(step) => step.reward !== null
|
|
19566
|
+
);
|
|
19567
|
+
const avgReward = scored.length > 0 ? scored.reduce((sum, step) => sum + step.reward, 0) / scored.length : 0;
|
|
19559
19568
|
const totalTokens = trajectory.reduce((sum, s) => sum + s.agentOutput.tokensUsed, 0);
|
|
19560
19569
|
const totalTime = trajectory.reduce((sum, s) => sum + s.agentOutput.durationMs, 0);
|
|
19561
19570
|
const efficiencyScore = totalTokens / 1e4 + totalTime / 3e5 + trajectory.length / 10;
|
|
19562
19571
|
const compactionScore = calculateCompactionScore(emergentPatterns.hubAgents);
|
|
19563
19572
|
return {
|
|
19564
19573
|
avgReward: Math.round(avgReward * 1e3) / 1e3,
|
|
19574
|
+
scoredSteps: scored.length,
|
|
19565
19575
|
taskCompletionRate: success ? 1 : 0,
|
|
19566
19576
|
efficiencyScore: Math.round(efficiencyScore * 1e3) / 1e3,
|
|
19567
19577
|
compactionScore: Math.round(compactionScore * 100) / 100,
|
|
@@ -19597,6 +19607,7 @@ function buildAgentStepOutput(step, agentId, result) {
|
|
|
19597
19607
|
output: result.output,
|
|
19598
19608
|
durationMs: result.metadata.durationMs,
|
|
19599
19609
|
tokensUsed: result.metadata.tokensUsed,
|
|
19610
|
+
...result.metadata.tokensMeasured === void 0 ? {} : { tokensMeasured: result.metadata.tokensMeasured },
|
|
19600
19611
|
model: result.metadata.model
|
|
19601
19612
|
};
|
|
19602
19613
|
}
|
|
@@ -20157,7 +20168,7 @@ function extractLogProbability(distribution, selectedAgent) {
|
|
|
20157
20168
|
return Math.log(clampedProb);
|
|
20158
20169
|
}
|
|
20159
20170
|
function convertTrajectory(steps) {
|
|
20160
|
-
return steps.map((step) => {
|
|
20171
|
+
return steps.filter((step) => step.reward !== null).map((step) => {
|
|
20161
20172
|
const logProb = extractLogProbability(step.distribution, step.selectedAgent);
|
|
20162
20173
|
return {
|
|
20163
20174
|
state: step.newState,
|
|
@@ -28265,7 +28276,7 @@ function execIdFields(executionId) {
|
|
|
28265
28276
|
async function populateUnifiedContextOnState(state, options) {
|
|
28266
28277
|
const taskCandidate = state["task"];
|
|
28267
28278
|
if (typeof taskCandidate !== "string" || taskCandidate === "") return;
|
|
28268
|
-
const { getContextForTask: getContextForTask2, inferTaskCategory: inferTaskCategory2 } = await import("./context-retriever-
|
|
28279
|
+
const { getContextForTask: getContextForTask2, inferTaskCategory: inferTaskCategory2 } = await import("./context-retriever-2NZWXF6Z.js");
|
|
28269
28280
|
const category = inferTaskCategory2(taskCandidate);
|
|
28270
28281
|
const executionId = options?.executionId;
|
|
28271
28282
|
const execFields = execIdFields(executionId);
|
|
@@ -43964,7 +43975,7 @@ async function tryIssueTriage(task) {
|
|
|
43964
43975
|
try {
|
|
43965
43976
|
const issueMatch = task.match(/github\.com\/([^/]+\/[^/]+)\/issues\/(\d+)/);
|
|
43966
43977
|
if (issueMatch === null) return null;
|
|
43967
|
-
const { createIssueTriage } = await import("./issue-triage-
|
|
43978
|
+
const { createIssueTriage } = await import("./issue-triage-KVYM5FQ5.js");
|
|
43968
43979
|
const triage = createIssueTriage();
|
|
43969
43980
|
const owner = issueMatch[1] ?? "";
|
|
43970
43981
|
const num = issueMatch[2] ?? "";
|
|
@@ -43992,7 +44003,7 @@ var VALID_TEMPLATES = /* @__PURE__ */ new Set([
|
|
|
43992
44003
|
]);
|
|
43993
44004
|
async function classifyWithLLM(task) {
|
|
43994
44005
|
try {
|
|
43995
|
-
const { executeExpert: executeExpert2 } = await import("./expert-bridge-
|
|
44006
|
+
const { executeExpert: executeExpert2 } = await import("./expert-bridge-2YLK3E6Q.js");
|
|
43996
44007
|
const prompt = [
|
|
43997
44008
|
"Classify this task into exactly one pipeline template.",
|
|
43998
44009
|
"Templates: dev (implementation/bug fix/refactor), research (investigate/evaluate/compare),",
|
|
@@ -45733,7 +45744,7 @@ var memoryInitPromise = null;
|
|
|
45733
45744
|
async function initPipelineMemory() {
|
|
45734
45745
|
if (cachedMemory !== null) return cachedMemory;
|
|
45735
45746
|
try {
|
|
45736
|
-
const { createSessionMemory: createSessionMemory2 } = await import("./session-memory-
|
|
45747
|
+
const { createSessionMemory: createSessionMemory2 } = await import("./session-memory-N2ABITF7.js");
|
|
45737
45748
|
const { getLearningDir } = await import("./learning-persistence-EGY4VKKO.js");
|
|
45738
45749
|
const mem = createSessionMemory2(getLearningDir());
|
|
45739
45750
|
mem.startSession(`pipeline-${String(getTimeProvider().now())}`);
|
|
@@ -45795,7 +45806,7 @@ function recordRoutingExperience(category, success, durationMs, tokensUsed = 0,
|
|
|
45795
45806
|
callRecord(routingMemoryCache);
|
|
45796
45807
|
return;
|
|
45797
45808
|
}
|
|
45798
|
-
routingMemoryInitPromise ??= import("./routing-memory-
|
|
45809
|
+
routingMemoryInitPromise ??= import("./routing-memory-3UWP6NOX.js").then(({ createRoutingMemory }) => {
|
|
45799
45810
|
routingMemoryCache ??= createRoutingMemory();
|
|
45800
45811
|
return routingMemoryCache;
|
|
45801
45812
|
}).catch((error) => {
|
|
@@ -45829,7 +45840,7 @@ ${text}` : "";
|
|
|
45829
45840
|
}
|
|
45830
45841
|
async function getWeatherContext() {
|
|
45831
45842
|
try {
|
|
45832
|
-
const { generateWeatherReport: generateWeatherReport2 } = await import("./weather-report-
|
|
45843
|
+
const { generateWeatherReport: generateWeatherReport2 } = await import("./weather-report-ZA7DBOC3.js");
|
|
45833
45844
|
const report = generateWeatherReport2({ includeAdaptive: true });
|
|
45834
45845
|
const mappings = "recommendedMappings" in report ? report.recommendedMappings : [];
|
|
45835
45846
|
if (!Array.isArray(mappings) || mappings.length === 0) return "";
|
|
@@ -45847,7 +45858,7 @@ ${lines}
|
|
|
45847
45858
|
}
|
|
45848
45859
|
async function getMemoryContext(task) {
|
|
45849
45860
|
try {
|
|
45850
|
-
const { createSessionMemory: createSessionMemory2 } = await import("./session-memory-
|
|
45861
|
+
const { createSessionMemory: createSessionMemory2 } = await import("./session-memory-N2ABITF7.js");
|
|
45851
45862
|
const { getLearningDir } = await import("./learning-persistence-EGY4VKKO.js");
|
|
45852
45863
|
const memory = createSessionMemory2(getLearningDir(), { maxLearningsInContext: 10 });
|
|
45853
45864
|
const learnings = memory.searchLearnings(task.slice(0, 200));
|
|
@@ -45966,7 +45977,7 @@ ${contextBlock}`;
|
|
|
45966
45977
|
const strategy = config.votingStrategy ?? "higher_order";
|
|
45967
45978
|
await postProgress(config, "Vote", `Running consensus with ${strategy} strategy...`);
|
|
45968
45979
|
try {
|
|
45969
|
-
const { executeVoting } = await import("./consensus-vote-
|
|
45980
|
+
const { executeVoting } = await import("./consensus-vote-KFLDRUJJ.js");
|
|
45970
45981
|
const votingResult = await executeVoting(
|
|
45971
45982
|
{
|
|
45972
45983
|
proposal: buildVoteProposal(plan, research),
|
|
@@ -46405,7 +46416,7 @@ async function searchCodebaseForTask(task) {
|
|
|
46405
46416
|
}
|
|
46406
46417
|
async function queryResearchRegistry(task) {
|
|
46407
46418
|
try {
|
|
46408
|
-
const { synthesizeResearch: synthesizeResearch2 } = await import("./research-helpers-synthesize-
|
|
46419
|
+
const { synthesizeResearch: synthesizeResearch2 } = await import("./research-helpers-synthesize-M4SONOWL.js");
|
|
46409
46420
|
const topic = task.split(/[.!?\n]/).filter((s) => s.trim().length > 10)[0]?.trim();
|
|
46410
46421
|
if (topic === void 0) return null;
|
|
46411
46422
|
const result = await synthesizeResearch2(topic.slice(0, 50));
|
|
@@ -46476,7 +46487,7 @@ function createScanStageWrapper() {
|
|
|
46476
46487
|
try {
|
|
46477
46488
|
const slug = ctx.task.match(/([a-zA-Z0-9._-]+\/[a-zA-Z0-9._-]+)/)?.[1];
|
|
46478
46489
|
if (slug !== void 0) {
|
|
46479
|
-
const { generateSecurityPlan: generateSecurityPlan2 } = await import("./repo-security-plan-
|
|
46490
|
+
const { generateSecurityPlan: generateSecurityPlan2 } = await import("./repo-security-plan-BPET6KTP.js");
|
|
46480
46491
|
const plan = await generateSecurityPlan2({ repo: slug, maxScanners: 10 });
|
|
46481
46492
|
const recs = plan.recommendations.slice(0, 5).map((r) => `${r.priority}: ${r.displayName} (${r.category})`).join("; ");
|
|
46482
46493
|
return output(PIPELINE_STATE_KEYS.FINDINGS, recs, getTimeProvider().now() - start, true);
|
|
@@ -49601,7 +49612,7 @@ var GitHubTaskTracker = class {
|
|
|
49601
49612
|
cachedProvider = null;
|
|
49602
49613
|
async getProvider() {
|
|
49603
49614
|
if (this.cachedProvider !== null) return this.cachedProvider;
|
|
49604
|
-
const { createScmProvider } = await import("./factory-
|
|
49615
|
+
const { createScmProvider } = await import("./factory-G57M6CD4.js");
|
|
49605
49616
|
const result = await createScmProvider({ repo: this.config.repo ?? "" });
|
|
49606
49617
|
if (!result.ok) throw new Error(`SCM provider error: ${result.error.message}`);
|
|
49607
49618
|
this.cachedProvider = result.value;
|
|
@@ -50492,7 +50503,7 @@ async function probeSource(source, includeModelIds) {
|
|
|
50492
50503
|
}
|
|
50493
50504
|
}
|
|
50494
50505
|
async function defaultSources(includeOpenRouter) {
|
|
50495
|
-
const { createAllAdapters: createAllAdapters2 } = await import("./factory-
|
|
50506
|
+
const { createAllAdapters: createAllAdapters2 } = await import("./factory-T7KN4CKD.js");
|
|
50496
50507
|
const adapters = createAllAdapters2();
|
|
50497
50508
|
return buildDefaultModelSources(adapters, { includeOpenRouter });
|
|
50498
50509
|
}
|
|
@@ -54534,4 +54545,4 @@ export {
|
|
|
54534
54545
|
shutdownFeedbackSubscriber,
|
|
54535
54546
|
createEventBusBridge
|
|
54536
54547
|
};
|
|
54537
|
-
//# sourceMappingURL=chunk-
|
|
54548
|
+
//# sourceMappingURL=chunk-TEWDRLCM.js.map
|