nexus-agents 4.9.0 → 4.11.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.
Files changed (120) hide show
  1. package/dist/{child-mcp-config-FOV6RGTI.js → child-mcp-config-TXGCJ52M.js} +2 -2
  2. package/dist/{chunk-MQ4RXXO3.js → chunk-2A664K4J.js} +2 -2
  3. package/dist/{chunk-46B6QM7X.js → chunk-2DOULPPA.js} +4 -4
  4. package/dist/{chunk-HDJFKJBN.js → chunk-4576IZUB.js} +4 -4
  5. package/dist/{chunk-DC5I6ZUU.js → chunk-46EQSU7N.js} +2 -2
  6. package/dist/{chunk-LIXY6TA2.js → chunk-4A47PQKV.js} +3 -3
  7. package/dist/{chunk-GWTZWIVD.js → chunk-5AYHIDVQ.js} +3 -3
  8. package/dist/{chunk-OO7T76X7.js → chunk-7ZYXZWAM.js} +5 -5
  9. package/dist/{chunk-JHIEVCKM.js → chunk-A2FENIHB.js} +8 -8
  10. package/dist/{chunk-C7H2ZMTI.js → chunk-BQWXGMZP.js} +6 -6
  11. package/dist/{chunk-HICY7SWU.js → chunk-D62GTDJR.js} +15 -8
  12. package/dist/{chunk-HICY7SWU.js.map → chunk-D62GTDJR.js.map} +1 -1
  13. package/dist/{chunk-BYL4FWRW.js → chunk-DG6P3UC5.js} +7 -7
  14. package/dist/{chunk-HJA2IANK.js → chunk-GRIOFYSO.js} +4 -4
  15. package/dist/{chunk-5LGDHKAF.js → chunk-H7C3YEVA.js} +2 -2
  16. package/dist/{chunk-HRJ3KFVF.js → chunk-HYE3V7VA.js} +3 -3
  17. package/dist/{chunk-XMODQQP2.js → chunk-IGKDZXNU.js} +8 -8
  18. package/dist/{chunk-XMODQQP2.js.map → chunk-IGKDZXNU.js.map} +1 -1
  19. package/dist/{chunk-6YKJNMJB.js → chunk-IW3G6WVW.js} +2 -2
  20. package/dist/{chunk-BCBUMYNN.js → chunk-JRRUY4BL.js} +2 -2
  21. package/dist/{chunk-MAAMUATD.js → chunk-LUL3Q5BT.js} +2 -2
  22. package/dist/{chunk-3HMVU6YV.js → chunk-MN34HTJP.js} +2 -2
  23. package/dist/{chunk-DBQGDWPQ.js → chunk-NBKJ7L2S.js} +2 -2
  24. package/dist/{chunk-U6R2755D.js → chunk-OBNQCC5R.js} +39 -37
  25. package/dist/{chunk-U6R2755D.js.map → chunk-OBNQCC5R.js.map} +1 -1
  26. package/dist/{chunk-YM5CYOJD.js → chunk-OIMKKI76.js} +8 -8
  27. package/dist/{chunk-GU5KSFJJ.js → chunk-PDAD3S2X.js} +5 -5
  28. package/dist/{chunk-CRQMSTRD.js → chunk-RSNG6RDI.js} +2 -2
  29. package/dist/{chunk-CIYZLDFN.js → chunk-SFKJXZMV.js} +2 -2
  30. package/dist/{chunk-NMJ5PA5E.js → chunk-TSEVXDKU.js} +2 -2
  31. package/dist/{chunk-GBM7WDAN.js → chunk-TWWWWWSG.js} +2 -2
  32. package/dist/{chunk-IB3LXCCE.js → chunk-US3LB5AL.js} +2 -2
  33. package/dist/{chunk-QT4NXLGN.js → chunk-W64J4UNG.js} +2 -2
  34. package/dist/{chunk-Y5LJCBXT.js → chunk-XOTWDMK3.js} +5 -5
  35. package/dist/{chunk-WBPABR75.js → chunk-YQAHWAVA.js} +2 -2
  36. package/dist/{chunk-F4NZHKMX.js → chunk-YSBADPHN.js} +3 -3
  37. package/dist/{chunk-G4CRSFQX.js → chunk-ZLSHDEFS.js} +2 -2
  38. package/dist/{cli-circuit-breaker-BLFC7FR3.js → cli-circuit-breaker-462DQCFX.js} +3 -3
  39. package/dist/cli.js +41 -41
  40. package/dist/{composite-router-JMIGKGMD.js → composite-router-5PY2BSX6.js} +2 -2
  41. package/dist/{consensus-vote-F2G6NU52.js → consensus-vote-4W5A6X7A.js} +16 -16
  42. package/dist/{context-retriever-3LW47AYF.js → context-retriever-P4WJDXNR.js} +8 -8
  43. package/dist/{doctor-deep-SDKFSOBX.js → doctor-deep-B5KM6DDQ.js} +3 -3
  44. package/dist/{doctor-live-KVH36QTN.js → doctor-live-2WD3BRLP.js} +9 -9
  45. package/dist/{expert-bridge-PVLV7KO6.js → expert-bridge-UP75M6M7.js} +4 -4
  46. package/dist/{factory-4XLZ7TCO.js → factory-6W6FGGOC.js} +9 -9
  47. package/dist/{factory-VTOTK2GI.js → factory-QD4SDWNF.js} +5 -5
  48. package/dist/{improvement-review-T6K4NMEU.js → improvement-review-GU6I62HS.js} +5 -5
  49. package/dist/index.js +30 -30
  50. package/dist/{init-opencode-Y55APFSM.js → init-opencode-RYCLBR3L.js} +6 -6
  51. package/dist/issue-triage-CMR6TQ6V.js +17 -0
  52. package/dist/{pr-reviewer-helpers-JOKC7ZPC.js → pr-reviewer-helpers-D6JW3343.js} +4 -4
  53. package/dist/{registry-command-PLYCOXYB.js → registry-command-634EYXX6.js} +2 -2
  54. package/dist/{repo-security-plan-M3FZMFDC.js → repo-security-plan-AMRKVESS.js} +3 -3
  55. package/dist/{research-helpers-synthesize-5ZB7LHOS.js → research-helpers-synthesize-HQVI46LI.js} +4 -4
  56. package/dist/{routing-memory-4DUW3JYV.js → routing-memory-CF6UFICB.js} +2 -2
  57. package/dist/{session-memory-2ZNHHQMW.js → session-memory-ZEM6EBBA.js} +3 -3
  58. package/dist/{setup-command-PSD252BC.js → setup-command-FVA3PYJQ.js} +14 -14
  59. package/dist/{setup-config-ENGMSAGI.js → setup-config-K5DG3KPR.js} +3 -3
  60. package/dist/{setup-custom-api-JW4DUALL.js → setup-custom-api-WCQTHVAW.js} +4 -4
  61. package/dist/{tool-memory-QZTOLSTC.js → tool-memory-TZE5ND7A.js} +5 -5
  62. package/dist/{unified-registry-W7W3J2XB.js → unified-registry-KXI3EMFF.js} +10 -10
  63. package/dist/{weather-report-KQ5AAWY3.js → weather-report-OBNLOQQX.js} +2 -2
  64. package/package.json +1 -1
  65. package/dist/issue-triage-3ZVKSWSN.js +0 -17
  66. /package/dist/{child-mcp-config-FOV6RGTI.js.map → child-mcp-config-TXGCJ52M.js.map} +0 -0
  67. /package/dist/{chunk-MQ4RXXO3.js.map → chunk-2A664K4J.js.map} +0 -0
  68. /package/dist/{chunk-46B6QM7X.js.map → chunk-2DOULPPA.js.map} +0 -0
  69. /package/dist/{chunk-HDJFKJBN.js.map → chunk-4576IZUB.js.map} +0 -0
  70. /package/dist/{chunk-DC5I6ZUU.js.map → chunk-46EQSU7N.js.map} +0 -0
  71. /package/dist/{chunk-LIXY6TA2.js.map → chunk-4A47PQKV.js.map} +0 -0
  72. /package/dist/{chunk-GWTZWIVD.js.map → chunk-5AYHIDVQ.js.map} +0 -0
  73. /package/dist/{chunk-OO7T76X7.js.map → chunk-7ZYXZWAM.js.map} +0 -0
  74. /package/dist/{chunk-JHIEVCKM.js.map → chunk-A2FENIHB.js.map} +0 -0
  75. /package/dist/{chunk-C7H2ZMTI.js.map → chunk-BQWXGMZP.js.map} +0 -0
  76. /package/dist/{chunk-BYL4FWRW.js.map → chunk-DG6P3UC5.js.map} +0 -0
  77. /package/dist/{chunk-HJA2IANK.js.map → chunk-GRIOFYSO.js.map} +0 -0
  78. /package/dist/{chunk-5LGDHKAF.js.map → chunk-H7C3YEVA.js.map} +0 -0
  79. /package/dist/{chunk-HRJ3KFVF.js.map → chunk-HYE3V7VA.js.map} +0 -0
  80. /package/dist/{chunk-6YKJNMJB.js.map → chunk-IW3G6WVW.js.map} +0 -0
  81. /package/dist/{chunk-BCBUMYNN.js.map → chunk-JRRUY4BL.js.map} +0 -0
  82. /package/dist/{chunk-MAAMUATD.js.map → chunk-LUL3Q5BT.js.map} +0 -0
  83. /package/dist/{chunk-3HMVU6YV.js.map → chunk-MN34HTJP.js.map} +0 -0
  84. /package/dist/{chunk-DBQGDWPQ.js.map → chunk-NBKJ7L2S.js.map} +0 -0
  85. /package/dist/{chunk-YM5CYOJD.js.map → chunk-OIMKKI76.js.map} +0 -0
  86. /package/dist/{chunk-GU5KSFJJ.js.map → chunk-PDAD3S2X.js.map} +0 -0
  87. /package/dist/{chunk-CRQMSTRD.js.map → chunk-RSNG6RDI.js.map} +0 -0
  88. /package/dist/{chunk-CIYZLDFN.js.map → chunk-SFKJXZMV.js.map} +0 -0
  89. /package/dist/{chunk-NMJ5PA5E.js.map → chunk-TSEVXDKU.js.map} +0 -0
  90. /package/dist/{chunk-GBM7WDAN.js.map → chunk-TWWWWWSG.js.map} +0 -0
  91. /package/dist/{chunk-IB3LXCCE.js.map → chunk-US3LB5AL.js.map} +0 -0
  92. /package/dist/{chunk-QT4NXLGN.js.map → chunk-W64J4UNG.js.map} +0 -0
  93. /package/dist/{chunk-Y5LJCBXT.js.map → chunk-XOTWDMK3.js.map} +0 -0
  94. /package/dist/{chunk-WBPABR75.js.map → chunk-YQAHWAVA.js.map} +0 -0
  95. /package/dist/{chunk-F4NZHKMX.js.map → chunk-YSBADPHN.js.map} +0 -0
  96. /package/dist/{chunk-G4CRSFQX.js.map → chunk-ZLSHDEFS.js.map} +0 -0
  97. /package/dist/{cli-circuit-breaker-BLFC7FR3.js.map → cli-circuit-breaker-462DQCFX.js.map} +0 -0
  98. /package/dist/{composite-router-JMIGKGMD.js.map → composite-router-5PY2BSX6.js.map} +0 -0
  99. /package/dist/{consensus-vote-F2G6NU52.js.map → consensus-vote-4W5A6X7A.js.map} +0 -0
  100. /package/dist/{context-retriever-3LW47AYF.js.map → context-retriever-P4WJDXNR.js.map} +0 -0
  101. /package/dist/{doctor-deep-SDKFSOBX.js.map → doctor-deep-B5KM6DDQ.js.map} +0 -0
  102. /package/dist/{doctor-live-KVH36QTN.js.map → doctor-live-2WD3BRLP.js.map} +0 -0
  103. /package/dist/{expert-bridge-PVLV7KO6.js.map → expert-bridge-UP75M6M7.js.map} +0 -0
  104. /package/dist/{factory-4XLZ7TCO.js.map → factory-6W6FGGOC.js.map} +0 -0
  105. /package/dist/{factory-VTOTK2GI.js.map → factory-QD4SDWNF.js.map} +0 -0
  106. /package/dist/{improvement-review-T6K4NMEU.js.map → improvement-review-GU6I62HS.js.map} +0 -0
  107. /package/dist/{init-opencode-Y55APFSM.js.map → init-opencode-RYCLBR3L.js.map} +0 -0
  108. /package/dist/{issue-triage-3ZVKSWSN.js.map → issue-triage-CMR6TQ6V.js.map} +0 -0
  109. /package/dist/{pr-reviewer-helpers-JOKC7ZPC.js.map → pr-reviewer-helpers-D6JW3343.js.map} +0 -0
  110. /package/dist/{registry-command-PLYCOXYB.js.map → registry-command-634EYXX6.js.map} +0 -0
  111. /package/dist/{repo-security-plan-M3FZMFDC.js.map → repo-security-plan-AMRKVESS.js.map} +0 -0
  112. /package/dist/{research-helpers-synthesize-5ZB7LHOS.js.map → research-helpers-synthesize-HQVI46LI.js.map} +0 -0
  113. /package/dist/{routing-memory-4DUW3JYV.js.map → routing-memory-CF6UFICB.js.map} +0 -0
  114. /package/dist/{session-memory-2ZNHHQMW.js.map → session-memory-ZEM6EBBA.js.map} +0 -0
  115. /package/dist/{setup-command-PSD252BC.js.map → setup-command-FVA3PYJQ.js.map} +0 -0
  116. /package/dist/{setup-config-ENGMSAGI.js.map → setup-config-K5DG3KPR.js.map} +0 -0
  117. /package/dist/{setup-custom-api-JW4DUALL.js.map → setup-custom-api-WCQTHVAW.js.map} +0 -0
  118. /package/dist/{tool-memory-QZTOLSTC.js.map → tool-memory-TZE5ND7A.js.map} +0 -0
  119. /package/dist/{unified-registry-W7W3J2XB.js.map → unified-registry-KXI3EMFF.js.map} +0 -0
  120. /package/dist/{weather-report-KQ5AAWY3.js.map → weather-report-OBNLOQQX.js.map} +0 -0
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-SNJNRDKZ.js";
4
4
  import {
5
5
  createLogger
6
- } from "./chunk-HICY7SWU.js";
6
+ } from "./chunk-D62GTDJR.js";
7
7
  import "./chunk-2HUC6NZN.js";
8
8
  import "./chunk-OQLFRJCW.js";
9
9
  import "./chunk-ZPWHCABL.js";
@@ -62,4 +62,4 @@ export {
62
62
  generateMcpConfig,
63
63
  getDefaultAllowedTools
64
64
  };
65
- //# sourceMappingURL=child-mcp-config-FOV6RGTI.js.map
65
+ //# sourceMappingURL=child-mcp-config-TXGCJ52M.js.map
@@ -4,7 +4,7 @@ import {
4
4
  import {
5
5
  createLogger,
6
6
  getTimeProvider
7
- } from "./chunk-HICY7SWU.js";
7
+ } from "./chunk-D62GTDJR.js";
8
8
 
9
9
  // src/mcp/tools/scanner-registry-fetcher.ts
10
10
  import { z } from "zod";
@@ -721,4 +721,4 @@ export {
721
721
  generateSecurityPlan,
722
722
  buildPlanFromAnalysis
723
723
  };
724
- //# sourceMappingURL=chunk-MQ4RXXO3.js.map
724
+ //# sourceMappingURL=chunk-2A664K4J.js.map
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  createAutoAdapter
3
- } from "./chunk-YM5CYOJD.js";
3
+ } from "./chunk-OIMKKI76.js";
4
4
  import {
5
5
  getDefaultCliCircuitBreakerRegistry,
6
6
  mapModelErrorToCategory
7
- } from "./chunk-GBM7WDAN.js";
7
+ } from "./chunk-TWWWWWSG.js";
8
8
  import {
9
9
  CLI_NAMES,
10
10
  CircularBuffer,
@@ -22,7 +22,7 @@ import {
22
22
  ok,
23
23
  recordRateLimitEvent,
24
24
  toRateLimitError
25
- } from "./chunk-HICY7SWU.js";
25
+ } from "./chunk-D62GTDJR.js";
26
26
 
27
27
  // src/agents/collaboration/event-bus-helpers.ts
28
28
  import { randomUUID } from "crypto";
@@ -863,4 +863,4 @@ export {
863
863
  getGlobalRegistry,
864
864
  resetGlobalRegistry
865
865
  };
866
- //# sourceMappingURL=chunk-46B6QM7X.js.map
866
+ //# sourceMappingURL=chunk-2DOULPPA.js.map
@@ -1,14 +1,14 @@
1
1
  import {
2
2
  GitHubProvider,
3
3
  ScmError
4
- } from "./chunk-WBPABR75.js";
4
+ } from "./chunk-YQAHWAVA.js";
5
5
  import {
6
6
  resolveToken
7
- } from "./chunk-CRQMSTRD.js";
7
+ } from "./chunk-RSNG6RDI.js";
8
8
  import {
9
9
  err,
10
10
  ok
11
- } from "./chunk-HICY7SWU.js";
11
+ } from "./chunk-D62GTDJR.js";
12
12
 
13
13
  // src/scm/factory.ts
14
14
  async function createScmProvider(config) {
@@ -41,4 +41,4 @@ export {
41
41
  createScmProvider,
42
42
  createGitHubProvider
43
43
  };
44
- //# sourceMappingURL=chunk-HDJFKJBN.js.map
44
+ //# sourceMappingURL=chunk-4576IZUB.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  getTimeProvider
3
- } from "./chunk-HICY7SWU.js";
3
+ } from "./chunk-D62GTDJR.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-DC5I6ZUU.js.map
208
+ //# sourceMappingURL=chunk-46EQSU7N.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  emitClawGuardViolation
3
- } from "./chunk-DC5I6ZUU.js";
3
+ } from "./chunk-46EQSU7N.js";
4
4
  import {
5
5
  CACHE_TIMEOUTS,
6
6
  MCP_TIMEOUTS,
@@ -16,7 +16,7 @@ import {
16
16
  getTimeProvider,
17
17
  ok,
18
18
  resolveToolClassGuardMs
19
- } from "./chunk-HICY7SWU.js";
19
+ } from "./chunk-D62GTDJR.js";
20
20
  import {
21
21
  getNexusDataDir
22
22
  } from "./chunk-OQLFRJCW.js";
@@ -2042,4 +2042,4 @@ export {
2042
2042
  VOTING_THRESHOLDS,
2043
2043
  ConsensusMetricsSchema
2044
2044
  };
2045
- //# sourceMappingURL=chunk-LIXY6TA2.js.map
2045
+ //# sourceMappingURL=chunk-4A47PQKV.js.map
@@ -12,11 +12,11 @@ import {
12
12
  gateWithReputation,
13
13
  resolveReputationGatingMode,
14
14
  sanitizeInput
15
- } from "./chunk-IB3LXCCE.js";
15
+ } from "./chunk-US3LB5AL.js";
16
16
  import {
17
17
  createLogger,
18
18
  getTimeProvider
19
- } from "./chunk-HICY7SWU.js";
19
+ } from "./chunk-D62GTDJR.js";
20
20
 
21
21
  // src/dogfooding/pr-reviewer-helpers.ts
22
22
  import { randomUUID } from "crypto";
@@ -291,4 +291,4 @@ export {
291
291
  formatReviewComment,
292
292
  createFailedReview
293
293
  };
294
- //# sourceMappingURL=chunk-GWTZWIVD.js.map
294
+ //# sourceMappingURL=chunk-5AYHIDVQ.js.map
@@ -4,16 +4,16 @@ import {
4
4
  loadPapersRegistry,
5
5
  loadTechniquesRegistry,
6
6
  savePapersRegistry
7
- } from "./chunk-DBQGDWPQ.js";
7
+ } from "./chunk-NBKJ7L2S.js";
8
8
  import {
9
9
  resolveInsideRoot
10
10
  } from "./chunk-NUBSJGQZ.js";
11
11
  import {
12
12
  resolveToken
13
- } from "./chunk-CRQMSTRD.js";
13
+ } from "./chunk-RSNG6RDI.js";
14
14
  import {
15
15
  getToolMemory
16
- } from "./chunk-HJA2IANK.js";
16
+ } from "./chunk-GRIOFYSO.js";
17
17
  import {
18
18
  capitalizeWords,
19
19
  tokenizeFiltered,
@@ -39,7 +39,7 @@ import {
39
39
  getTimeProvider,
40
40
  ok,
41
41
  registerPersistentDistillerFactory
42
- } from "./chunk-HICY7SWU.js";
42
+ } from "./chunk-D62GTDJR.js";
43
43
  import {
44
44
  ensureLearningDir,
45
45
  getRulesFile
@@ -4107,4 +4107,4 @@ export {
4107
4107
  DEFAULT_CONTEXT_BUDGET_TOKENS,
4108
4108
  getContextPromptPrefix
4109
4109
  };
4110
- //# sourceMappingURL=chunk-OO7T76X7.js.map
4110
+ //# sourceMappingURL=chunk-7ZYXZWAM.js.map
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  computeCostDetail,
3
3
  priceBasisOf
4
- } from "./chunk-CIYZLDFN.js";
4
+ } from "./chunk-SFKJXZMV.js";
5
5
  import {
6
6
  allOf
7
7
  } from "./chunk-OQB3XC5O.js";
@@ -22,20 +22,20 @@ import {
22
22
  toolSuccess,
23
23
  withProgressHeartbeat,
24
24
  wrapToolWithTimeout
25
- } from "./chunk-LIXY6TA2.js";
25
+ } from "./chunk-4A47PQKV.js";
26
26
  import {
27
27
  createEvent,
28
28
  getGlobalRegistry
29
- } from "./chunk-46B6QM7X.js";
29
+ } from "./chunk-2DOULPPA.js";
30
30
  import {
31
31
  getToolMemory
32
- } from "./chunk-HJA2IANK.js";
32
+ } from "./chunk-GRIOFYSO.js";
33
33
  import {
34
34
  authRemediation,
35
35
  delay,
36
36
  getAvailableClis,
37
37
  withTimeout
38
- } from "./chunk-YM5CYOJD.js";
38
+ } from "./chunk-OIMKKI76.js";
39
39
  import {
40
40
  AgentError,
41
41
  CLI_NAMES,
@@ -64,7 +64,7 @@ import {
64
64
  resolveClassGuardMs,
65
65
  resolveModelIdentitySync,
66
66
  resolveVoteTimeout
67
- } from "./chunk-HICY7SWU.js";
67
+ } from "./chunk-D62GTDJR.js";
68
68
  import {
69
69
  ensureLearningDir,
70
70
  getOutcomesFile
@@ -6162,7 +6162,7 @@ async function processVotesWithCascade(engineVotes, opts) {
6162
6162
  var CONTRARIAN_ESCALATION_THRESHOLD = 0.8;
6163
6163
  async function runContrarianCheck(proposal, log) {
6164
6164
  try {
6165
- const { executeExpert } = await import("./expert-bridge-PVLV7KO6.js");
6165
+ const { executeExpert } = await import("./expert-bridge-UP75M6M7.js");
6166
6166
  const prompt = [
6167
6167
  "You are a contrarian analyst. Your job is to find reasons this proposal should be REJECTED.",
6168
6168
  "Look for: YAGNI (not needed), MISALIGNED (wrong tech/architecture), SECURITY_RISK, SCOPE_CREEP.",
@@ -6728,4 +6728,4 @@ export {
6728
6728
  CONSENSUS_VOTE_TOOL_SCHEMA,
6729
6729
  registerConsensusVoteTool
6730
6730
  };
6731
- //# sourceMappingURL=chunk-JHIEVCKM.js.map
6731
+ //# sourceMappingURL=chunk-A2FENIHB.js.map
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  GitHubProvider,
3
3
  ScmError
4
- } from "./chunk-WBPABR75.js";
4
+ } from "./chunk-YQAHWAVA.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-IB3LXCCE.js";
14
+ } from "./chunk-US3LB5AL.js";
15
15
  import {
16
16
  emitPolicyEvent
17
- } from "./chunk-DC5I6ZUU.js";
17
+ } from "./chunk-46EQSU7N.js";
18
18
  import {
19
19
  hasToken
20
- } from "./chunk-CRQMSTRD.js";
20
+ } from "./chunk-RSNG6RDI.js";
21
21
  import {
22
22
  CLI_SUBPROCESS_TIMEOUTS,
23
23
  createLogger,
24
24
  err,
25
25
  getTimeProvider,
26
26
  ok
27
- } from "./chunk-HICY7SWU.js";
27
+ } from "./chunk-D62GTDJR.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-C7H2ZMTI.js.map
1250
+ //# sourceMappingURL=chunk-BQWXGMZP.js.map
@@ -2623,7 +2623,7 @@ function setDefaultRegistry(registry) {
2623
2623
  }
2624
2624
  async function reloadDefaultRegistry() {
2625
2625
  globalRegistry = buildDefaultRegistry();
2626
- const { resetGlobalRegistry } = await import("./unified-registry-W7W3J2XB.js");
2626
+ const { resetGlobalRegistry } = await import("./unified-registry-KXI3EMFF.js");
2627
2627
  resetGlobalRegistry();
2628
2628
  return globalRegistry;
2629
2629
  }
@@ -10581,13 +10581,14 @@ function adjustProfileForTask(profile, taskProfile) {
10581
10581
  }
10582
10582
  return profile;
10583
10583
  }
10584
- function taskProfileToBanditContext(profile) {
10584
+ var NEUTRAL_FEATURE = 0.5;
10585
+ function taskProfileToBanditContext(profile, budgetUtilization) {
10585
10586
  return {
10586
10587
  taskComplexity: profile.reasoningComplexity / 10,
10587
10588
  contextLengthNormalized: Math.min(profile.contextRequired / 1e5, 1),
10588
10589
  isCodeTask: profile.codeGeneration ? 1 : 0,
10589
10590
  isReasoningTask: profile.taskType === "architecture" || profile.reasoningComplexity > 5 ? 1 : 0,
10590
- budgetUtilization: 0.5,
10591
+ budgetUtilization: budgetUtilization ?? NEUTRAL_FEATURE,
10591
10592
  timePressure: 0.3
10592
10593
  };
10593
10594
  }
@@ -13881,11 +13882,11 @@ function runTopsisStage(taskProfile, candidates, stagesExecuted, deps, options)
13881
13882
  stagesExecuted.push("topsis-ranking");
13882
13883
  return { ranking: result.ranking, score: result.topScore };
13883
13884
  }
13884
- function runLinUCBStage(taskProfile, topsisRanking, stagesExecuted, deps) {
13885
+ function runLinUCBStage(taskProfile, topsisRanking, stagesExecuted, deps, budgetUtilization) {
13885
13886
  if (!deps.config.enableLinUCBSelection || deps.linucbBandit === void 0) {
13886
13887
  return { selectedCli: topsisRanking[0], ucbScore: void 0 };
13887
13888
  }
13888
- const banditContext = taskProfileToBanditContext(taskProfile);
13889
+ const banditContext = taskProfileToBanditContext(taskProfile, budgetUtilization);
13889
13890
  const selection = deps.linucbBandit.select(banditContext);
13890
13891
  stagesExecuted.push("linucb-selection");
13891
13892
  const picked = selection.armName;
@@ -14136,7 +14137,13 @@ async function runPipeline(task, taskProfile, stagesExecuted, cliNames, deps) {
14136
14137
  };
14137
14138
  if (stageScores.size > 0) topsisOpts.stageScores = stageScores;
14138
14139
  const topsisResult = runTopsisStage(taskProfile, candidates, stagesExecuted, deps, topsisOpts);
14139
- const linucbResult = runLinUCBStage(taskProfile, topsisResult.ranking, stagesExecuted, deps);
14140
+ const linucbResult = runLinUCBStage(
14141
+ taskProfile,
14142
+ topsisResult.ranking,
14143
+ stagesExecuted,
14144
+ deps,
14145
+ budgetResult.value.budgetUtilization
14146
+ );
14140
14147
  if (linucbResult.selectedCli === void 0) {
14141
14148
  return err(new CompositeRoutingError("No candidates available", "selection"));
14142
14149
  }
@@ -15072,7 +15079,7 @@ var CompositeRouter = class _CompositeRouter {
15072
15079
  */
15073
15080
  async consultUnifiedContext(task) {
15074
15081
  try {
15075
- const { getContextForTask, inferTaskCategory } = await import("./context-retriever-3LW47AYF.js");
15082
+ const { getContextForTask, inferTaskCategory } = await import("./context-retriever-P4WJDXNR.js");
15076
15083
  const ctx = await getContextForTask({
15077
15084
  task: task.content,
15078
15085
  category: inferTaskCategory(task.content),
@@ -16662,4 +16669,4 @@ export {
16662
16669
  AgentCapability,
16663
16670
  OrchestratorError
16664
16671
  };
16665
- //# sourceMappingURL=chunk-HICY7SWU.js.map
16672
+ //# sourceMappingURL=chunk-D62GTDJR.js.map