nexus-agents 4.31.0 → 4.31.2
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-7N77DSAE.js → child-mcp-config-J4KM2K5N.js} +2 -2
- package/dist/{chunk-4332HYJT.js → chunk-3AKKZW5C.js} +4 -4
- package/dist/{chunk-2CIBUCTU.js → chunk-4JZFO46L.js} +4 -4
- package/dist/{chunk-K2JTFQQ6.js → chunk-57KFZLMZ.js} +2 -2
- package/dist/{chunk-JF7LUTI6.js → chunk-7GRNWMUY.js} +2 -2
- package/dist/{chunk-2BVUHVP6.js → chunk-BEZN53N3.js} +3 -3
- package/dist/{chunk-UQCF3MLC.js → chunk-C3JP5XMQ.js} +7 -7
- package/dist/{chunk-54Q6XJCX.js → chunk-D4YBKFV6.js} +3 -3
- package/dist/chunk-D4YBKFV6.js.map +1 -0
- package/dist/chunk-DJAJAHZS.js +7 -0
- package/dist/{chunk-7ET5EYH5.js → chunk-ESCDKCQQ.js} +8 -8
- package/dist/{chunk-75EMMUUQ.js → chunk-G4WQ2NYC.js} +2 -2
- package/dist/{chunk-TV2GLWZ5.js → chunk-GGMCRF5L.js} +2 -2
- package/dist/{chunk-NUMAE43O.js → chunk-GMJK5K5C.js} +2 -2
- package/dist/{chunk-IMVFH4BO.js → chunk-GNX537SP.js} +40 -36
- package/dist/{chunk-IMVFH4BO.js.map → chunk-GNX537SP.js.map} +1 -1
- package/dist/{chunk-YXNH6SF5.js → chunk-HYHVC3C6.js} +2 -2
- package/dist/{chunk-3X24NGC3.js → chunk-IA6RXEBX.js} +4 -4
- package/dist/{chunk-RG5UOR5C.js → chunk-IWXAHIPD.js} +6 -6
- package/dist/{chunk-OJS5NGWF.js → chunk-JUNPVQ2K.js} +3 -3
- package/dist/{chunk-G4XEX6DY.js → chunk-KUJRMLNQ.js} +2 -2
- package/dist/{chunk-TUGN4IPL.js → chunk-LKPGWRGD.js} +4 -4
- package/dist/{chunk-ASRGWLV6.js → chunk-LTPCXE7O.js} +8 -8
- package/dist/{chunk-UCSPZ2IN.js → chunk-LXB6DFMG.js} +2 -2
- package/dist/{chunk-R2VI7R4E.js → chunk-N6A4B2EV.js} +2 -2
- package/dist/{chunk-QI3AIP5G.js → chunk-OZYVKNMO.js} +3 -3
- package/dist/{chunk-LCSTFM53.js → chunk-QDRI6D4R.js} +5 -5
- package/dist/{chunk-M7T7IH4R.js → chunk-RQUBCGDC.js} +2 -2
- package/dist/{chunk-POW3WZJ7.js → chunk-SBXFOZ4Q.js} +2 -2
- package/dist/{chunk-NRWATG7R.js → chunk-TBEQ3UIV.js} +2 -2
- package/dist/{chunk-2INDTKSF.js → chunk-TGQWXFCE.js} +2 -2
- package/dist/{chunk-NEF7BWPK.js → chunk-THHXKNRK.js} +7 -7
- package/dist/{chunk-U6ITIQUU.js → chunk-U6K7TSGW.js} +2 -2
- package/dist/{chunk-K7HPLHOC.js → chunk-VZBJYJU7.js} +2 -2
- package/dist/{chunk-22IWFL3D.js → chunk-XXKVHXKX.js} +2 -2
- package/dist/{chunk-ELTHJ64I.js → chunk-Y3UVTFA6.js} +5 -5
- package/dist/{cli-circuit-breaker-RA4T7QEB.js → cli-circuit-breaker-PTJNL27B.js} +3 -3
- package/dist/cli.js +41 -41
- package/dist/{composite-router-JU22TZE6.js → composite-router-GE37CAGQ.js} +2 -2
- package/dist/{consensus-vote-CFQLDSR5.js → consensus-vote-XXZM4SDD.js} +17 -17
- package/dist/{context-retriever-CVNSEJQW.js → context-retriever-MGEG2UQ2.js} +8 -8
- package/dist/{doctor-deep-SZBL3AJG.js → doctor-deep-73VCZQHJ.js} +3 -3
- package/dist/{doctor-live-LFDL66NM.js → doctor-live-OYPLPBWJ.js} +9 -9
- package/dist/{expert-bridge-EZD5Y57J.js → expert-bridge-25CSYKJE.js} +4 -4
- package/dist/{factory-NIXYBCCN.js → factory-B55CSWSP.js} +9 -9
- package/dist/{factory-DZCFGZIJ.js → factory-W53B3DHW.js} +5 -5
- package/dist/{improvement-review-MVJEKOJT.js → improvement-review-HF4WKKYB.js} +6 -6
- package/dist/index.js +31 -31
- package/dist/{init-opencode-RTNJ6MJD.js → init-opencode-V4NW2OBC.js} +6 -6
- package/dist/issue-triage-SH6AVIJ6.js +17 -0
- package/dist/{pr-reviewer-helpers-XRKHV7AE.js → pr-reviewer-helpers-KFR4B2BN.js} +4 -4
- package/dist/{registry-command-7E5Y73IU.js → registry-command-DDWRJBMA.js} +2 -2
- package/dist/{repo-security-plan-URGJOPGK.js → repo-security-plan-5E6DJOJR.js} +3 -3
- package/dist/{research-helpers-synthesize-XEQUEXBI.js → research-helpers-synthesize-3OWOR4QY.js} +4 -4
- package/dist/{routing-memory-XX3JAXF7.js → routing-memory-LSAOVXSG.js} +2 -2
- package/dist/{session-memory-PFM45JAC.js → session-memory-BUHRFELZ.js} +3 -3
- package/dist/{setup-config-ZAYR4DAS.js → setup-config-F6I43UM4.js} +3 -3
- package/dist/{setup-custom-api-LJDJKVFE.js → setup-custom-api-UHZLKUJX.js} +4 -4
- package/dist/setup-data-dir-UBDLV6PO.js +29 -0
- package/dist/{tool-memory-KDPJVWUY.js → tool-memory-X3MHHLDQ.js} +5 -5
- package/dist/{unified-registry-UDVQFYLR.js → unified-registry-KVE5J7TG.js} +10 -10
- package/dist/{weather-report-MXFHDB2U.js → weather-report-4EPQFNOA.js} +2 -2
- package/package.json +1 -1
- package/dist/chunk-4I73QDDC.js +0 -7
- package/dist/chunk-54Q6XJCX.js.map +0 -1
- package/dist/issue-triage-APDDHZQ7.js +0 -17
- package/dist/setup-data-dir-QBB23LVM.js +0 -29
- /package/dist/{child-mcp-config-7N77DSAE.js.map → child-mcp-config-J4KM2K5N.js.map} +0 -0
- /package/dist/{chunk-4332HYJT.js.map → chunk-3AKKZW5C.js.map} +0 -0
- /package/dist/{chunk-2CIBUCTU.js.map → chunk-4JZFO46L.js.map} +0 -0
- /package/dist/{chunk-K2JTFQQ6.js.map → chunk-57KFZLMZ.js.map} +0 -0
- /package/dist/{chunk-JF7LUTI6.js.map → chunk-7GRNWMUY.js.map} +0 -0
- /package/dist/{chunk-2BVUHVP6.js.map → chunk-BEZN53N3.js.map} +0 -0
- /package/dist/{chunk-UQCF3MLC.js.map → chunk-C3JP5XMQ.js.map} +0 -0
- /package/dist/{chunk-4I73QDDC.js.map → chunk-DJAJAHZS.js.map} +0 -0
- /package/dist/{chunk-7ET5EYH5.js.map → chunk-ESCDKCQQ.js.map} +0 -0
- /package/dist/{chunk-75EMMUUQ.js.map → chunk-G4WQ2NYC.js.map} +0 -0
- /package/dist/{chunk-TV2GLWZ5.js.map → chunk-GGMCRF5L.js.map} +0 -0
- /package/dist/{chunk-NUMAE43O.js.map → chunk-GMJK5K5C.js.map} +0 -0
- /package/dist/{chunk-YXNH6SF5.js.map → chunk-HYHVC3C6.js.map} +0 -0
- /package/dist/{chunk-3X24NGC3.js.map → chunk-IA6RXEBX.js.map} +0 -0
- /package/dist/{chunk-RG5UOR5C.js.map → chunk-IWXAHIPD.js.map} +0 -0
- /package/dist/{chunk-OJS5NGWF.js.map → chunk-JUNPVQ2K.js.map} +0 -0
- /package/dist/{chunk-G4XEX6DY.js.map → chunk-KUJRMLNQ.js.map} +0 -0
- /package/dist/{chunk-TUGN4IPL.js.map → chunk-LKPGWRGD.js.map} +0 -0
- /package/dist/{chunk-ASRGWLV6.js.map → chunk-LTPCXE7O.js.map} +0 -0
- /package/dist/{chunk-UCSPZ2IN.js.map → chunk-LXB6DFMG.js.map} +0 -0
- /package/dist/{chunk-R2VI7R4E.js.map → chunk-N6A4B2EV.js.map} +0 -0
- /package/dist/{chunk-QI3AIP5G.js.map → chunk-OZYVKNMO.js.map} +0 -0
- /package/dist/{chunk-LCSTFM53.js.map → chunk-QDRI6D4R.js.map} +0 -0
- /package/dist/{chunk-M7T7IH4R.js.map → chunk-RQUBCGDC.js.map} +0 -0
- /package/dist/{chunk-POW3WZJ7.js.map → chunk-SBXFOZ4Q.js.map} +0 -0
- /package/dist/{chunk-NRWATG7R.js.map → chunk-TBEQ3UIV.js.map} +0 -0
- /package/dist/{chunk-2INDTKSF.js.map → chunk-TGQWXFCE.js.map} +0 -0
- /package/dist/{chunk-NEF7BWPK.js.map → chunk-THHXKNRK.js.map} +0 -0
- /package/dist/{chunk-U6ITIQUU.js.map → chunk-U6K7TSGW.js.map} +0 -0
- /package/dist/{chunk-K7HPLHOC.js.map → chunk-VZBJYJU7.js.map} +0 -0
- /package/dist/{chunk-22IWFL3D.js.map → chunk-XXKVHXKX.js.map} +0 -0
- /package/dist/{chunk-ELTHJ64I.js.map → chunk-Y3UVTFA6.js.map} +0 -0
- /package/dist/{cli-circuit-breaker-RA4T7QEB.js.map → cli-circuit-breaker-PTJNL27B.js.map} +0 -0
- /package/dist/{composite-router-JU22TZE6.js.map → composite-router-GE37CAGQ.js.map} +0 -0
- /package/dist/{consensus-vote-CFQLDSR5.js.map → consensus-vote-XXZM4SDD.js.map} +0 -0
- /package/dist/{context-retriever-CVNSEJQW.js.map → context-retriever-MGEG2UQ2.js.map} +0 -0
- /package/dist/{doctor-deep-SZBL3AJG.js.map → doctor-deep-73VCZQHJ.js.map} +0 -0
- /package/dist/{doctor-live-LFDL66NM.js.map → doctor-live-OYPLPBWJ.js.map} +0 -0
- /package/dist/{expert-bridge-EZD5Y57J.js.map → expert-bridge-25CSYKJE.js.map} +0 -0
- /package/dist/{factory-DZCFGZIJ.js.map → factory-B55CSWSP.js.map} +0 -0
- /package/dist/{factory-NIXYBCCN.js.map → factory-W53B3DHW.js.map} +0 -0
- /package/dist/{improvement-review-MVJEKOJT.js.map → improvement-review-HF4WKKYB.js.map} +0 -0
- /package/dist/{init-opencode-RTNJ6MJD.js.map → init-opencode-V4NW2OBC.js.map} +0 -0
- /package/dist/{issue-triage-APDDHZQ7.js.map → issue-triage-SH6AVIJ6.js.map} +0 -0
- /package/dist/{pr-reviewer-helpers-XRKHV7AE.js.map → pr-reviewer-helpers-KFR4B2BN.js.map} +0 -0
- /package/dist/{registry-command-7E5Y73IU.js.map → registry-command-DDWRJBMA.js.map} +0 -0
- /package/dist/{repo-security-plan-URGJOPGK.js.map → repo-security-plan-5E6DJOJR.js.map} +0 -0
- /package/dist/{research-helpers-synthesize-XEQUEXBI.js.map → research-helpers-synthesize-3OWOR4QY.js.map} +0 -0
- /package/dist/{routing-memory-XX3JAXF7.js.map → routing-memory-LSAOVXSG.js.map} +0 -0
- /package/dist/{session-memory-PFM45JAC.js.map → session-memory-BUHRFELZ.js.map} +0 -0
- /package/dist/{setup-config-ZAYR4DAS.js.map → setup-config-F6I43UM4.js.map} +0 -0
- /package/dist/{setup-custom-api-LJDJKVFE.js.map → setup-custom-api-UHZLKUJX.js.map} +0 -0
- /package/dist/{setup-data-dir-QBB23LVM.js.map → setup-data-dir-UBDLV6PO.js.map} +0 -0
- /package/dist/{tool-memory-KDPJVWUY.js.map → tool-memory-X3MHHLDQ.js.map} +0 -0
- /package/dist/{unified-registry-UDVQFYLR.js.map → unified-registry-KVE5J7TG.js.map} +0 -0
- /package/dist/{weather-report-MXFHDB2U.js.map → weather-report-4EPQFNOA.js.map} +0 -0
|
@@ -5,34 +5,34 @@ import {
|
|
|
5
5
|
planOptionalParams,
|
|
6
6
|
requireApiKey,
|
|
7
7
|
validateApiKeyPresence
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-KUJRMLNQ.js";
|
|
9
9
|
import {
|
|
10
10
|
CUSTOM_API_DEFAULT_MODEL
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-LXB6DFMG.js";
|
|
12
12
|
import {
|
|
13
13
|
CUSTOM_API_BASE_URL_ENV,
|
|
14
14
|
PROVIDER_ENV_KEYS,
|
|
15
15
|
assertCustomApiHostResolvesPublic,
|
|
16
16
|
validateCustomApiBaseUrl
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-GGMCRF5L.js";
|
|
18
18
|
import {
|
|
19
19
|
nexusMkdtempSync
|
|
20
20
|
} from "./chunk-4OW67KT2.js";
|
|
21
21
|
import {
|
|
22
22
|
getAvailabilityCache
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-HYHVC3C6.js";
|
|
24
24
|
import {
|
|
25
25
|
extractSystemPrompt
|
|
26
26
|
} from "./chunk-QZUG667L.js";
|
|
27
27
|
import {
|
|
28
28
|
generateHyphenId
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-G4WQ2NYC.js";
|
|
30
30
|
import {
|
|
31
31
|
CliCircuitBreaker,
|
|
32
32
|
DEFAULT_CIRCUIT_BREAKER_CONFIG,
|
|
33
33
|
getCliCircuitBreakerSnapshot,
|
|
34
34
|
getDefaultCliCircuitBreakerRegistry
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-VZBJYJU7.js";
|
|
36
36
|
import {
|
|
37
37
|
CLI_SUBPROCESS_TIMEOUTS,
|
|
38
38
|
CLI_TIMEOUTS,
|
|
@@ -72,7 +72,7 @@ import {
|
|
|
72
72
|
resolveCliAlias,
|
|
73
73
|
resolveRetryAfterMs,
|
|
74
74
|
retryAfterMsFromContext
|
|
75
|
-
} from "./chunk-
|
|
75
|
+
} from "./chunk-D4YBKFV6.js";
|
|
76
76
|
|
|
77
77
|
// src/cli-adapters/cli-to-model-adapter.ts
|
|
78
78
|
var CliToModelAdapter = class {
|
|
@@ -4903,4 +4903,4 @@ export {
|
|
|
4903
4903
|
SdkAdapter,
|
|
4904
4904
|
createAutoAdapter
|
|
4905
4905
|
};
|
|
4906
|
-
//# sourceMappingURL=chunk-
|
|
4906
|
+
//# sourceMappingURL=chunk-ESCDKCQQ.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getRandomProvider,
|
|
3
3
|
getTimeProvider
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-D4YBKFV6.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-G4WQ2NYC.js.map
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
createLogger,
|
|
4
4
|
err,
|
|
5
5
|
ok
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-D4YBKFV6.js";
|
|
7
7
|
|
|
8
8
|
// src/adapters/sdk/types.ts
|
|
9
9
|
var PROVIDER_ENV_KEYS = {
|
|
@@ -260,4 +260,4 @@ export {
|
|
|
260
260
|
validateCustomApiBaseUrl,
|
|
261
261
|
assertCustomApiHostResolvesPublic
|
|
262
262
|
};
|
|
263
|
-
//# sourceMappingURL=chunk-
|
|
263
|
+
//# sourceMappingURL=chunk-GGMCRF5L.js.map
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
computeTokenCost,
|
|
3
3
|
getDefaultRegistry,
|
|
4
4
|
roundToMicroUsd
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-D4YBKFV6.js";
|
|
6
6
|
import {
|
|
7
7
|
getNexusDataDir
|
|
8
8
|
} from "./chunk-OGHEKPLD.js";
|
|
@@ -131,4 +131,4 @@ export {
|
|
|
131
131
|
loadUsageEvents,
|
|
132
132
|
rollupByModel
|
|
133
133
|
};
|
|
134
|
-
//# sourceMappingURL=chunk-
|
|
134
|
+
//# sourceMappingURL=chunk-GMJK5K5C.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
generateSecurityPlan
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-SBXFOZ4Q.js";
|
|
4
4
|
import {
|
|
5
5
|
analyzeGitHubRepo
|
|
6
6
|
} from "./chunk-HFOQKCD2.js";
|
|
@@ -21,10 +21,10 @@ import {
|
|
|
21
21
|
import {
|
|
22
22
|
DEFAULT_TASK_TTL_MS,
|
|
23
23
|
clampTaskTtl
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-THHXKNRK.js";
|
|
25
25
|
import {
|
|
26
26
|
executeExpert
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-C3JP5XMQ.js";
|
|
28
28
|
import {
|
|
29
29
|
JobStatusSchema,
|
|
30
30
|
VOTER_ROLES,
|
|
@@ -47,24 +47,24 @@ import {
|
|
|
47
47
|
simulationDeniedResult,
|
|
48
48
|
toJobSummary,
|
|
49
49
|
writeJobCancelled
|
|
50
|
-
} from "./chunk-
|
|
50
|
+
} from "./chunk-LTPCXE7O.js";
|
|
51
51
|
import {
|
|
52
52
|
allOf
|
|
53
53
|
} from "./chunk-OQB3XC5O.js";
|
|
54
54
|
import {
|
|
55
55
|
normalizeTopicToCanonical,
|
|
56
56
|
synthesizeResearch
|
|
57
|
-
} from "./chunk-
|
|
57
|
+
} from "./chunk-OZYVKNMO.js";
|
|
58
58
|
import {
|
|
59
59
|
IssueTriage
|
|
60
|
-
} from "./chunk-
|
|
60
|
+
} from "./chunk-IWXAHIPD.js";
|
|
61
61
|
import {
|
|
62
62
|
resolveEnvMode,
|
|
63
63
|
sanitizeInput
|
|
64
|
-
} from "./chunk-
|
|
64
|
+
} from "./chunk-U6K7TSGW.js";
|
|
65
65
|
import {
|
|
66
66
|
withPrerequisite
|
|
67
|
-
} from "./chunk-
|
|
67
|
+
} from "./chunk-JUNPVQ2K.js";
|
|
68
68
|
import {
|
|
69
69
|
NOOP_NOTIFIER,
|
|
70
70
|
RateLimiter,
|
|
@@ -88,18 +88,18 @@ import {
|
|
|
88
88
|
withAuditTrail,
|
|
89
89
|
withProgressHeartbeat,
|
|
90
90
|
wrapToolWithTimeout
|
|
91
|
-
} from "./chunk-
|
|
91
|
+
} from "./chunk-IA6RXEBX.js";
|
|
92
92
|
import {
|
|
93
93
|
createAuditTrail,
|
|
94
94
|
createGraphAuditBridge,
|
|
95
95
|
emitPipelinePolicyEvent
|
|
96
|
-
} from "./chunk-
|
|
96
|
+
} from "./chunk-N6A4B2EV.js";
|
|
97
97
|
import {
|
|
98
98
|
EventTopics,
|
|
99
99
|
createEvent,
|
|
100
100
|
getGlobalEventBus,
|
|
101
101
|
getGlobalRegistry
|
|
102
|
-
} from "./chunk-
|
|
102
|
+
} from "./chunk-4JZFO46L.js";
|
|
103
103
|
import {
|
|
104
104
|
IDENTIFIER_RE,
|
|
105
105
|
LANG_VALUES,
|
|
@@ -132,29 +132,29 @@ import {
|
|
|
132
132
|
parseRegistry,
|
|
133
133
|
sourceExistsInRegistry,
|
|
134
134
|
summarizeContextForPrompt
|
|
135
|
-
} from "./chunk-
|
|
135
|
+
} from "./chunk-QDRI6D4R.js";
|
|
136
136
|
import {
|
|
137
137
|
loadPapersRegistry,
|
|
138
138
|
loadTechniquesRegistry,
|
|
139
139
|
resolveInsideRoot
|
|
140
|
-
} from "./chunk-
|
|
140
|
+
} from "./chunk-TBEQ3UIV.js";
|
|
141
141
|
import {
|
|
142
142
|
getTokenEnvVars,
|
|
143
143
|
resolveToken
|
|
144
|
-
} from "./chunk-
|
|
144
|
+
} from "./chunk-RQUBCGDC.js";
|
|
145
145
|
import {
|
|
146
146
|
DEFAULT_RELEVANCE_CONFIG,
|
|
147
147
|
MemoryImportance,
|
|
148
148
|
calculateTextJaccardSimilarity,
|
|
149
149
|
getToolMemory
|
|
150
|
-
} from "./chunk-
|
|
150
|
+
} from "./chunk-LKPGWRGD.js";
|
|
151
151
|
import {
|
|
152
152
|
STOPWORDS,
|
|
153
153
|
truncateWithInfo
|
|
154
154
|
} from "./chunk-6T3EPABN.js";
|
|
155
155
|
import {
|
|
156
156
|
createSessionMemory
|
|
157
|
-
} from "./chunk-
|
|
157
|
+
} from "./chunk-XXKVHXKX.js";
|
|
158
158
|
import {
|
|
159
159
|
BUILT_IN_EXPERTS,
|
|
160
160
|
BuiltInExpertTypeSchema,
|
|
@@ -172,25 +172,25 @@ import {
|
|
|
172
172
|
getAvailableClis,
|
|
173
173
|
sleep,
|
|
174
174
|
withTimeout
|
|
175
|
-
} from "./chunk-
|
|
175
|
+
} from "./chunk-ESCDKCQQ.js";
|
|
176
176
|
import {
|
|
177
177
|
BaseAdapter,
|
|
178
178
|
createStream,
|
|
179
179
|
requireApiKey,
|
|
180
180
|
validateApiKeyPresence
|
|
181
|
-
} from "./chunk-
|
|
181
|
+
} from "./chunk-KUJRMLNQ.js";
|
|
182
182
|
import {
|
|
183
183
|
DEFAULTS
|
|
184
|
-
} from "./chunk-
|
|
184
|
+
} from "./chunk-LXB6DFMG.js";
|
|
185
185
|
import {
|
|
186
186
|
getAvailabilityCache,
|
|
187
187
|
getCliForModelId,
|
|
188
188
|
resolveFallback
|
|
189
|
-
} from "./chunk-
|
|
189
|
+
} from "./chunk-HYHVC3C6.js";
|
|
190
190
|
import {
|
|
191
191
|
generateHyphenId,
|
|
192
192
|
generateUUID
|
|
193
|
-
} from "./chunk-
|
|
193
|
+
} from "./chunk-G4WQ2NYC.js";
|
|
194
194
|
import {
|
|
195
195
|
AGENT_ROUTER_TIMEOUTS,
|
|
196
196
|
API_TIMEOUTS,
|
|
@@ -241,6 +241,7 @@ import {
|
|
|
241
241
|
clamp,
|
|
242
242
|
clamp01,
|
|
243
243
|
classifyRequestTier,
|
|
244
|
+
computeTokenCost,
|
|
244
245
|
createLogger,
|
|
245
246
|
createSharedTaskAnalyzer,
|
|
246
247
|
deriveEntry,
|
|
@@ -294,7 +295,7 @@ import {
|
|
|
294
295
|
selectStrategyByManifest,
|
|
295
296
|
toExpertTaskAnalysisResult,
|
|
296
297
|
withStep
|
|
297
|
-
} from "./chunk-
|
|
298
|
+
} from "./chunk-D4YBKFV6.js";
|
|
298
299
|
import {
|
|
299
300
|
ensureLearningDir,
|
|
300
301
|
getMetaOutcomesFile,
|
|
@@ -19617,7 +19618,10 @@ var capabilityRegistry = new Map(Object.entries(MODEL_CAPABILITIES));
|
|
|
19617
19618
|
// src/agents/orchestration/puppeteer-config-types.ts
|
|
19618
19619
|
var DEFAULT_COST_PER_1K_TOKENS = 0.01;
|
|
19619
19620
|
function tokensToCostUsd(tokens, costPer1KTokens) {
|
|
19620
|
-
return
|
|
19621
|
+
return computeTokenCost(
|
|
19622
|
+
{ input: 0, output: 0, blended: tokens },
|
|
19623
|
+
{ inputPer1M: 0, outputPer1M: 0, blendedPer1M: costPer1KTokens * 1e3 }
|
|
19624
|
+
).costUsd;
|
|
19621
19625
|
}
|
|
19622
19626
|
var DEFAULT_PUPPETEER_CONFIG = {
|
|
19623
19627
|
maxSteps: 10,
|
|
@@ -29698,7 +29702,7 @@ function execIdFields(executionId) {
|
|
|
29698
29702
|
async function populateUnifiedContextOnState(state, options) {
|
|
29699
29703
|
const taskCandidate = state["task"];
|
|
29700
29704
|
if (typeof taskCandidate !== "string" || taskCandidate === "") return;
|
|
29701
|
-
const { getContextForTask: getContextForTask2, inferTaskCategory: inferTaskCategory2 } = await import("./context-retriever-
|
|
29705
|
+
const { getContextForTask: getContextForTask2, inferTaskCategory: inferTaskCategory2 } = await import("./context-retriever-MGEG2UQ2.js");
|
|
29702
29706
|
const category = inferTaskCategory2(taskCandidate);
|
|
29703
29707
|
const executionId = options?.executionId;
|
|
29704
29708
|
const execFields = execIdFields(executionId);
|
|
@@ -45495,7 +45499,7 @@ async function tryIssueTriage(task) {
|
|
|
45495
45499
|
try {
|
|
45496
45500
|
const issueMatch = task.match(/github\.com\/([^/]+\/[^/]+)\/issues\/(\d+)/);
|
|
45497
45501
|
if (issueMatch === null) return null;
|
|
45498
|
-
const { createIssueTriage } = await import("./issue-triage-
|
|
45502
|
+
const { createIssueTriage } = await import("./issue-triage-SH6AVIJ6.js");
|
|
45499
45503
|
const triage = createIssueTriage();
|
|
45500
45504
|
const owner = issueMatch[1] ?? "";
|
|
45501
45505
|
const num = issueMatch[2] ?? "";
|
|
@@ -45523,7 +45527,7 @@ var VALID_TEMPLATES = /* @__PURE__ */ new Set([
|
|
|
45523
45527
|
]);
|
|
45524
45528
|
async function classifyWithLLM(task) {
|
|
45525
45529
|
try {
|
|
45526
|
-
const { executeExpert: executeExpert2 } = await import("./expert-bridge-
|
|
45530
|
+
const { executeExpert: executeExpert2 } = await import("./expert-bridge-25CSYKJE.js");
|
|
45527
45531
|
const prompt = [
|
|
45528
45532
|
"Classify this task into exactly one pipeline template.",
|
|
45529
45533
|
"Templates: dev (implementation/bug fix/refactor), research (investigate/evaluate/compare),",
|
|
@@ -47304,7 +47308,7 @@ var memoryInitPromise = null;
|
|
|
47304
47308
|
async function initPipelineMemory() {
|
|
47305
47309
|
if (cachedMemory !== null) return cachedMemory;
|
|
47306
47310
|
try {
|
|
47307
|
-
const { createSessionMemory: createSessionMemory2 } = await import("./session-memory-
|
|
47311
|
+
const { createSessionMemory: createSessionMemory2 } = await import("./session-memory-BUHRFELZ.js");
|
|
47308
47312
|
const { getLearningDir } = await import("./learning-persistence-7O5QYDM7.js");
|
|
47309
47313
|
const mem = createSessionMemory2(getLearningDir());
|
|
47310
47314
|
mem.startSession(`pipeline-${String(getTimeProvider().now())}`);
|
|
@@ -47366,7 +47370,7 @@ function recordRoutingExperience(category, success, durationMs, tokensUsed = 0,
|
|
|
47366
47370
|
callRecord(routingMemoryCache);
|
|
47367
47371
|
return;
|
|
47368
47372
|
}
|
|
47369
|
-
routingMemoryInitPromise ??= import("./routing-memory-
|
|
47373
|
+
routingMemoryInitPromise ??= import("./routing-memory-LSAOVXSG.js").then(({ createRoutingMemory }) => {
|
|
47370
47374
|
routingMemoryCache ??= createRoutingMemory();
|
|
47371
47375
|
return routingMemoryCache;
|
|
47372
47376
|
}).catch((error) => {
|
|
@@ -47400,7 +47404,7 @@ ${text}` : "";
|
|
|
47400
47404
|
}
|
|
47401
47405
|
async function getWeatherContext() {
|
|
47402
47406
|
try {
|
|
47403
|
-
const { generateWeatherReport: generateWeatherReport2 } = await import("./weather-report-
|
|
47407
|
+
const { generateWeatherReport: generateWeatherReport2 } = await import("./weather-report-4EPQFNOA.js");
|
|
47404
47408
|
const report = generateWeatherReport2({ includeAdaptive: true });
|
|
47405
47409
|
const mappings = "recommendedMappings" in report ? report.recommendedMappings : [];
|
|
47406
47410
|
if (!Array.isArray(mappings) || mappings.length === 0) return "";
|
|
@@ -47418,7 +47422,7 @@ ${lines}
|
|
|
47418
47422
|
}
|
|
47419
47423
|
async function getMemoryContext(task) {
|
|
47420
47424
|
try {
|
|
47421
|
-
const { createSessionMemory: createSessionMemory2 } = await import("./session-memory-
|
|
47425
|
+
const { createSessionMemory: createSessionMemory2 } = await import("./session-memory-BUHRFELZ.js");
|
|
47422
47426
|
const { getLearningDir } = await import("./learning-persistence-7O5QYDM7.js");
|
|
47423
47427
|
const memory = createSessionMemory2(getLearningDir(), { maxLearningsInContext: 10 });
|
|
47424
47428
|
const learnings = memory.searchLearnings(task.slice(0, 200));
|
|
@@ -47537,7 +47541,7 @@ ${contextBlock}`;
|
|
|
47537
47541
|
const strategy = config.votingStrategy ?? "higher_order";
|
|
47538
47542
|
await postProgress(config, "Vote", `Running consensus with ${strategy} strategy...`);
|
|
47539
47543
|
try {
|
|
47540
|
-
const { executeVoting } = await import("./consensus-vote-
|
|
47544
|
+
const { executeVoting } = await import("./consensus-vote-XXZM4SDD.js");
|
|
47541
47545
|
const votingResult = await executeVoting(
|
|
47542
47546
|
{
|
|
47543
47547
|
proposal: buildVoteProposal(plan, research),
|
|
@@ -47976,7 +47980,7 @@ async function searchCodebaseForTask(task) {
|
|
|
47976
47980
|
}
|
|
47977
47981
|
async function queryResearchRegistry(task) {
|
|
47978
47982
|
try {
|
|
47979
|
-
const { synthesizeResearch: synthesizeResearch2 } = await import("./research-helpers-synthesize-
|
|
47983
|
+
const { synthesizeResearch: synthesizeResearch2 } = await import("./research-helpers-synthesize-3OWOR4QY.js");
|
|
47980
47984
|
const topic = task.split(/[.!?\n]/).filter((s) => s.trim().length > 10)[0]?.trim();
|
|
47981
47985
|
if (topic === void 0) return null;
|
|
47982
47986
|
const result = await synthesizeResearch2(topic.slice(0, 50));
|
|
@@ -48047,7 +48051,7 @@ function createScanStageWrapper() {
|
|
|
48047
48051
|
try {
|
|
48048
48052
|
const slug = ctx.task.match(/([a-zA-Z0-9._-]+\/[a-zA-Z0-9._-]+)/)?.[1];
|
|
48049
48053
|
if (slug !== void 0) {
|
|
48050
|
-
const { generateSecurityPlan: generateSecurityPlan2 } = await import("./repo-security-plan-
|
|
48054
|
+
const { generateSecurityPlan: generateSecurityPlan2 } = await import("./repo-security-plan-5E6DJOJR.js");
|
|
48051
48055
|
const plan = await generateSecurityPlan2({ repo: slug, maxScanners: 10 });
|
|
48052
48056
|
const recs = plan.recommendations.slice(0, 5).map((r) => `${r.priority}: ${r.displayName} (${r.category})`).join("; ");
|
|
48053
48057
|
return output(PIPELINE_STATE_KEYS.FINDINGS, recs, getTimeProvider().now() - start, true);
|
|
@@ -51178,7 +51182,7 @@ var GitHubTaskTracker = class {
|
|
|
51178
51182
|
cachedProvider = null;
|
|
51179
51183
|
async getProvider() {
|
|
51180
51184
|
if (this.cachedProvider !== null) return this.cachedProvider;
|
|
51181
|
-
const { createScmProvider } = await import("./factory-
|
|
51185
|
+
const { createScmProvider } = await import("./factory-W53B3DHW.js");
|
|
51182
51186
|
const result = await createScmProvider({ repo: this.config.repo ?? "" });
|
|
51183
51187
|
if (!result.ok) throw new Error(`SCM provider error: ${result.error.message}`);
|
|
51184
51188
|
this.cachedProvider = result.value;
|
|
@@ -52093,7 +52097,7 @@ async function probeSource(source, includeModelIds) {
|
|
|
52093
52097
|
}
|
|
52094
52098
|
}
|
|
52095
52099
|
async function defaultSources(includeOpenRouter) {
|
|
52096
|
-
const { createAllAdapters: createAllAdapters2 } = await import("./factory-
|
|
52100
|
+
const { createAllAdapters: createAllAdapters2 } = await import("./factory-B55CSWSP.js");
|
|
52097
52101
|
const adapters = createAllAdapters2();
|
|
52098
52102
|
return buildDefaultModelSources(adapters, { includeOpenRouter });
|
|
52099
52103
|
}
|
|
@@ -56165,4 +56169,4 @@ export {
|
|
|
56165
56169
|
shutdownFeedbackSubscriber,
|
|
56166
56170
|
createEventBusBridge
|
|
56167
56171
|
};
|
|
56168
|
-
//# sourceMappingURL=chunk-
|
|
56172
|
+
//# sourceMappingURL=chunk-GNX537SP.js.map
|