nexus-agents 4.8.0 → 4.9.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 (121) hide show
  1. package/dist/{child-mcp-config-7EMSHBAR.js → child-mcp-config-FOV6RGTI.js} +2 -2
  2. package/dist/{chunk-PBTWTF24.js → chunk-3HMVU6YV.js} +2 -2
  3. package/dist/{chunk-2HHQTXNM.js → chunk-46B6QM7X.js} +4 -4
  4. package/dist/{chunk-2IEKHIBA.js → chunk-5LGDHKAF.js} +2 -2
  5. package/dist/{chunk-EP3DR54Z.js → chunk-6YKJNMJB.js} +2 -2
  6. package/dist/{chunk-YWDM4NSG.js → chunk-BCBUMYNN.js} +2 -2
  7. package/dist/{chunk-6AG3OYAZ.js → chunk-BYL4FWRW.js} +7 -7
  8. package/dist/{chunk-BE256P4K.js → chunk-C7H2ZMTI.js} +6 -6
  9. package/dist/{chunk-IQ5HSF5T.js → chunk-CIYZLDFN.js} +2 -2
  10. package/dist/{chunk-HSXKPBIL.js → chunk-CRQMSTRD.js} +2 -2
  11. package/dist/{chunk-5MSYZOYQ.js → chunk-DBQGDWPQ.js} +2 -2
  12. package/dist/{chunk-DP7MSK65.js → chunk-DC5I6ZUU.js} +2 -2
  13. package/dist/{chunk-DQ3M2FOT.js → chunk-F4NZHKMX.js} +3 -3
  14. package/dist/{chunk-6MTWEBXE.js → chunk-G4CRSFQX.js} +2 -2
  15. package/dist/{chunk-3WCKPSX5.js → chunk-GBM7WDAN.js} +2 -2
  16. package/dist/{chunk-HC6PAAX6.js → chunk-GU5KSFJJ.js} +5 -5
  17. package/dist/{chunk-5WNGNIEI.js → chunk-GWTZWIVD.js} +3 -3
  18. package/dist/{chunk-RQDAZHIO.js → chunk-HDJFKJBN.js} +4 -4
  19. package/dist/{chunk-E55HKUGD.js → chunk-HICY7SWU.js} +22 -18
  20. package/dist/chunk-HICY7SWU.js.map +1 -0
  21. package/dist/{chunk-WD4PYSXP.js → chunk-HJA2IANK.js} +4 -4
  22. package/dist/{chunk-RAIVRA2P.js → chunk-HRJ3KFVF.js} +3 -3
  23. package/dist/{chunk-KQ57UMTL.js → chunk-IB3LXCCE.js} +2 -2
  24. package/dist/{chunk-7ZTPA3DA.js → chunk-JHIEVCKM.js} +8 -8
  25. package/dist/{chunk-QJ7DCRNA.js → chunk-LIXY6TA2.js} +3 -3
  26. package/dist/{chunk-JRIXLD4P.js → chunk-MAAMUATD.js} +2 -2
  27. package/dist/{chunk-BZAE4CSC.js → chunk-MQ4RXXO3.js} +2 -2
  28. package/dist/{chunk-LZQNX52I.js → chunk-NMJ5PA5E.js} +2 -2
  29. package/dist/{chunk-KNSXXGQO.js → chunk-OO7T76X7.js} +5 -5
  30. package/dist/{chunk-6JFY6VEF.js → chunk-QT4NXLGN.js} +2 -2
  31. package/dist/{chunk-IS4LVP6J.js → chunk-U6R2755D.js} +35 -35
  32. package/dist/{chunk-IORRDBLS.js → chunk-WBPABR75.js} +2 -2
  33. package/dist/{chunk-WSYJJRUG.js → chunk-XMODQQP2.js} +8 -8
  34. package/dist/{chunk-KFXGTYVY.js → chunk-Y5LJCBXT.js} +5 -5
  35. package/dist/{chunk-IM7N3F3Q.js → chunk-YM5CYOJD.js} +8 -8
  36. package/dist/{cli-circuit-breaker-FTBP6VL7.js → cli-circuit-breaker-BLFC7FR3.js} +3 -3
  37. package/dist/cli.js +41 -41
  38. package/dist/{composite-router-M4HWHAH2.js → composite-router-JMIGKGMD.js} +2 -2
  39. package/dist/{consensus-vote-FNKU6MOA.js → consensus-vote-F2G6NU52.js} +16 -16
  40. package/dist/{context-retriever-RZ6ES6UT.js → context-retriever-3LW47AYF.js} +8 -8
  41. package/dist/{doctor-deep-T6SANBEH.js → doctor-deep-SDKFSOBX.js} +3 -3
  42. package/dist/{doctor-live-7GJFIAZ3.js → doctor-live-KVH36QTN.js} +9 -9
  43. package/dist/{expert-bridge-KXTXS4WO.js → expert-bridge-PVLV7KO6.js} +4 -4
  44. package/dist/{factory-RPJYETAX.js → factory-4XLZ7TCO.js} +9 -9
  45. package/dist/{factory-ARF7IPRR.js → factory-VTOTK2GI.js} +5 -5
  46. package/dist/{improvement-review-VXPGIWDO.js → improvement-review-T6K4NMEU.js} +5 -5
  47. package/dist/index.js +30 -30
  48. package/dist/{init-opencode-YEEJEZ6X.js → init-opencode-Y55APFSM.js} +6 -6
  49. package/dist/issue-triage-3ZVKSWSN.js +17 -0
  50. package/dist/{pr-reviewer-helpers-UKY5W27A.js → pr-reviewer-helpers-JOKC7ZPC.js} +4 -4
  51. package/dist/{registry-command-36ODRNON.js → registry-command-PLYCOXYB.js} +2 -2
  52. package/dist/{repo-security-plan-4GYJGZNI.js → repo-security-plan-M3FZMFDC.js} +3 -3
  53. package/dist/{research-helpers-synthesize-EOL5JFU5.js → research-helpers-synthesize-5ZB7LHOS.js} +4 -4
  54. package/dist/{routing-memory-6CGLV4VC.js → routing-memory-4DUW3JYV.js} +2 -2
  55. package/dist/{session-memory-RW2IVSPA.js → session-memory-2ZNHHQMW.js} +3 -3
  56. package/dist/{setup-command-4WEZL6SC.js → setup-command-PSD252BC.js} +14 -14
  57. package/dist/{setup-config-BVH2PQJI.js → setup-config-ENGMSAGI.js} +3 -3
  58. package/dist/{setup-custom-api-2KPTNTPJ.js → setup-custom-api-JW4DUALL.js} +4 -4
  59. package/dist/{tool-memory-IX552UIJ.js → tool-memory-QZTOLSTC.js} +5 -5
  60. package/dist/{unified-registry-U25O2HBT.js → unified-registry-W7W3J2XB.js} +10 -10
  61. package/dist/{weather-report-GTMO64Y6.js → weather-report-KQ5AAWY3.js} +2 -2
  62. package/package.json +1 -1
  63. package/dist/chunk-E55HKUGD.js.map +0 -1
  64. package/dist/issue-triage-JL6OR4GW.js +0 -17
  65. /package/dist/{child-mcp-config-7EMSHBAR.js.map → child-mcp-config-FOV6RGTI.js.map} +0 -0
  66. /package/dist/{chunk-PBTWTF24.js.map → chunk-3HMVU6YV.js.map} +0 -0
  67. /package/dist/{chunk-2HHQTXNM.js.map → chunk-46B6QM7X.js.map} +0 -0
  68. /package/dist/{chunk-2IEKHIBA.js.map → chunk-5LGDHKAF.js.map} +0 -0
  69. /package/dist/{chunk-EP3DR54Z.js.map → chunk-6YKJNMJB.js.map} +0 -0
  70. /package/dist/{chunk-YWDM4NSG.js.map → chunk-BCBUMYNN.js.map} +0 -0
  71. /package/dist/{chunk-6AG3OYAZ.js.map → chunk-BYL4FWRW.js.map} +0 -0
  72. /package/dist/{chunk-BE256P4K.js.map → chunk-C7H2ZMTI.js.map} +0 -0
  73. /package/dist/{chunk-IQ5HSF5T.js.map → chunk-CIYZLDFN.js.map} +0 -0
  74. /package/dist/{chunk-HSXKPBIL.js.map → chunk-CRQMSTRD.js.map} +0 -0
  75. /package/dist/{chunk-5MSYZOYQ.js.map → chunk-DBQGDWPQ.js.map} +0 -0
  76. /package/dist/{chunk-DP7MSK65.js.map → chunk-DC5I6ZUU.js.map} +0 -0
  77. /package/dist/{chunk-DQ3M2FOT.js.map → chunk-F4NZHKMX.js.map} +0 -0
  78. /package/dist/{chunk-6MTWEBXE.js.map → chunk-G4CRSFQX.js.map} +0 -0
  79. /package/dist/{chunk-3WCKPSX5.js.map → chunk-GBM7WDAN.js.map} +0 -0
  80. /package/dist/{chunk-HC6PAAX6.js.map → chunk-GU5KSFJJ.js.map} +0 -0
  81. /package/dist/{chunk-5WNGNIEI.js.map → chunk-GWTZWIVD.js.map} +0 -0
  82. /package/dist/{chunk-RQDAZHIO.js.map → chunk-HDJFKJBN.js.map} +0 -0
  83. /package/dist/{chunk-WD4PYSXP.js.map → chunk-HJA2IANK.js.map} +0 -0
  84. /package/dist/{chunk-RAIVRA2P.js.map → chunk-HRJ3KFVF.js.map} +0 -0
  85. /package/dist/{chunk-KQ57UMTL.js.map → chunk-IB3LXCCE.js.map} +0 -0
  86. /package/dist/{chunk-7ZTPA3DA.js.map → chunk-JHIEVCKM.js.map} +0 -0
  87. /package/dist/{chunk-QJ7DCRNA.js.map → chunk-LIXY6TA2.js.map} +0 -0
  88. /package/dist/{chunk-JRIXLD4P.js.map → chunk-MAAMUATD.js.map} +0 -0
  89. /package/dist/{chunk-BZAE4CSC.js.map → chunk-MQ4RXXO3.js.map} +0 -0
  90. /package/dist/{chunk-LZQNX52I.js.map → chunk-NMJ5PA5E.js.map} +0 -0
  91. /package/dist/{chunk-KNSXXGQO.js.map → chunk-OO7T76X7.js.map} +0 -0
  92. /package/dist/{chunk-6JFY6VEF.js.map → chunk-QT4NXLGN.js.map} +0 -0
  93. /package/dist/{chunk-IS4LVP6J.js.map → chunk-U6R2755D.js.map} +0 -0
  94. /package/dist/{chunk-IORRDBLS.js.map → chunk-WBPABR75.js.map} +0 -0
  95. /package/dist/{chunk-WSYJJRUG.js.map → chunk-XMODQQP2.js.map} +0 -0
  96. /package/dist/{chunk-KFXGTYVY.js.map → chunk-Y5LJCBXT.js.map} +0 -0
  97. /package/dist/{chunk-IM7N3F3Q.js.map → chunk-YM5CYOJD.js.map} +0 -0
  98. /package/dist/{cli-circuit-breaker-FTBP6VL7.js.map → cli-circuit-breaker-BLFC7FR3.js.map} +0 -0
  99. /package/dist/{composite-router-M4HWHAH2.js.map → composite-router-JMIGKGMD.js.map} +0 -0
  100. /package/dist/{consensus-vote-FNKU6MOA.js.map → consensus-vote-F2G6NU52.js.map} +0 -0
  101. /package/dist/{context-retriever-RZ6ES6UT.js.map → context-retriever-3LW47AYF.js.map} +0 -0
  102. /package/dist/{doctor-deep-T6SANBEH.js.map → doctor-deep-SDKFSOBX.js.map} +0 -0
  103. /package/dist/{doctor-live-7GJFIAZ3.js.map → doctor-live-KVH36QTN.js.map} +0 -0
  104. /package/dist/{expert-bridge-KXTXS4WO.js.map → expert-bridge-PVLV7KO6.js.map} +0 -0
  105. /package/dist/{factory-ARF7IPRR.js.map → factory-4XLZ7TCO.js.map} +0 -0
  106. /package/dist/{factory-RPJYETAX.js.map → factory-VTOTK2GI.js.map} +0 -0
  107. /package/dist/{improvement-review-VXPGIWDO.js.map → improvement-review-T6K4NMEU.js.map} +0 -0
  108. /package/dist/{init-opencode-YEEJEZ6X.js.map → init-opencode-Y55APFSM.js.map} +0 -0
  109. /package/dist/{issue-triage-JL6OR4GW.js.map → issue-triage-3ZVKSWSN.js.map} +0 -0
  110. /package/dist/{pr-reviewer-helpers-UKY5W27A.js.map → pr-reviewer-helpers-JOKC7ZPC.js.map} +0 -0
  111. /package/dist/{registry-command-36ODRNON.js.map → registry-command-PLYCOXYB.js.map} +0 -0
  112. /package/dist/{repo-security-plan-4GYJGZNI.js.map → repo-security-plan-M3FZMFDC.js.map} +0 -0
  113. /package/dist/{research-helpers-synthesize-EOL5JFU5.js.map → research-helpers-synthesize-5ZB7LHOS.js.map} +0 -0
  114. /package/dist/{routing-memory-6CGLV4VC.js.map → routing-memory-4DUW3JYV.js.map} +0 -0
  115. /package/dist/{session-memory-RW2IVSPA.js.map → session-memory-2ZNHHQMW.js.map} +0 -0
  116. /package/dist/{setup-command-4WEZL6SC.js.map → setup-command-PSD252BC.js.map} +0 -0
  117. /package/dist/{setup-config-BVH2PQJI.js.map → setup-config-ENGMSAGI.js.map} +0 -0
  118. /package/dist/{setup-custom-api-2KPTNTPJ.js.map → setup-custom-api-JW4DUALL.js.map} +0 -0
  119. /package/dist/{tool-memory-IX552UIJ.js.map → tool-memory-QZTOLSTC.js.map} +0 -0
  120. /package/dist/{unified-registry-U25O2HBT.js.map → unified-registry-W7W3J2XB.js.map} +0 -0
  121. /package/dist/{weather-report-GTMO64Y6.js.map → weather-report-KQ5AAWY3.js.map} +0 -0
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-SNJNRDKZ.js";
4
4
  import {
5
5
  createLogger
6
- } from "./chunk-E55HKUGD.js";
6
+ } from "./chunk-HICY7SWU.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-7EMSHBAR.js.map
65
+ //# sourceMappingURL=child-mcp-config-FOV6RGTI.js.map
@@ -13,7 +13,7 @@ import {
13
13
  lookupInTreeCapability,
14
14
  ok,
15
15
  resolveRetryAfterMs
16
- } from "./chunk-E55HKUGD.js";
16
+ } from "./chunk-HICY7SWU.js";
17
17
 
18
18
  // src/config/model-parameter-support.ts
19
19
  function parseClaudeMajorMinor(bareId) {
@@ -834,4 +834,4 @@ export {
834
834
  DEFAULT_COLLECT_STREAM_MAX_CHUNKS,
835
835
  collectStream
836
836
  };
837
- //# sourceMappingURL=chunk-PBTWTF24.js.map
837
+ //# sourceMappingURL=chunk-3HMVU6YV.js.map
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  createAutoAdapter
3
- } from "./chunk-IM7N3F3Q.js";
3
+ } from "./chunk-YM5CYOJD.js";
4
4
  import {
5
5
  getDefaultCliCircuitBreakerRegistry,
6
6
  mapModelErrorToCategory
7
- } from "./chunk-3WCKPSX5.js";
7
+ } from "./chunk-GBM7WDAN.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-E55HKUGD.js";
25
+ } from "./chunk-HICY7SWU.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-2HHQTXNM.js.map
866
+ //# sourceMappingURL=chunk-46B6QM7X.js.map
@@ -2,7 +2,7 @@ import {
2
2
  TASK_CATEGORIES,
3
3
  getAdaptiveBonus,
4
4
  getOutcomeStore
5
- } from "./chunk-E55HKUGD.js";
5
+ } from "./chunk-HICY7SWU.js";
6
6
 
7
7
  // src/cli/doctor-deep.ts
8
8
  var CLI_NAMES = ["claude", "gemini", "codex", "opencode"];
@@ -106,4 +106,4 @@ export {
106
106
  runDeepDiagnostics,
107
107
  formatDeepDiagnostics
108
108
  };
109
- //# sourceMappingURL=chunk-2IEKHIBA.js.map
109
+ //# sourceMappingURL=chunk-5LGDHKAF.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  getErrorMessage
3
- } from "./chunk-E55HKUGD.js";
3
+ } from "./chunk-HICY7SWU.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-EP3DR54Z.js.map
80
+ //# sourceMappingURL=chunk-6YKJNMJB.js.map
@@ -11,7 +11,7 @@ import {
11
11
  createGetRetryConfig,
12
12
  createGetTimeout,
13
13
  createGetToolRateLimit
14
- } from "./chunk-E55HKUGD.js";
14
+ } from "./chunk-HICY7SWU.js";
15
15
 
16
16
  // src/config/defaults.ts
17
17
  var CUSTOM_API_DEFAULT_MODEL = "gpt-5.5";
@@ -230,4 +230,4 @@ export {
230
230
  CUSTOM_API_DEFAULT_MODEL,
231
231
  DEFAULTS
232
232
  };
233
- //# sourceMappingURL=chunk-YWDM4NSG.js.map
233
+ //# sourceMappingURL=chunk-BCBUMYNN.js.map
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  resolveCliSlot
3
- } from "./chunk-LZQNX52I.js";
3
+ } from "./chunk-NMJ5PA5E.js";
4
4
  import {
5
5
  createLogger,
6
6
  getTimeProvider,
7
7
  isRateLimitText
8
- } from "./chunk-E55HKUGD.js";
8
+ } from "./chunk-HICY7SWU.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-7EMSHBAR.js");
24
+ const { generateMcpConfig } = await import("./child-mcp-config-FOV6RGTI.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-RPJYETAX.js");
97
- const { createCompositeRouter } = await import("./composite-router-M4HWHAH2.js");
96
+ const { createAllAdapters } = await import("./factory-4XLZ7TCO.js");
97
+ const { createCompositeRouter } = await import("./composite-router-JMIGKGMD.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-FTBP6VL7.js");
105
+ const { createCliCircuitBreakerIntegration } = await import("./cli-circuit-breaker-BLFC7FR3.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-6AG3OYAZ.js.map
216
+ //# sourceMappingURL=chunk-BYL4FWRW.js.map
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  GitHubProvider,
3
3
  ScmError
4
- } from "./chunk-IORRDBLS.js";
4
+ } from "./chunk-WBPABR75.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-KQ57UMTL.js";
14
+ } from "./chunk-IB3LXCCE.js";
15
15
  import {
16
16
  emitPolicyEvent
17
- } from "./chunk-DP7MSK65.js";
17
+ } from "./chunk-DC5I6ZUU.js";
18
18
  import {
19
19
  hasToken
20
- } from "./chunk-HSXKPBIL.js";
20
+ } from "./chunk-CRQMSTRD.js";
21
21
  import {
22
22
  CLI_SUBPROCESS_TIMEOUTS,
23
23
  createLogger,
24
24
  err,
25
25
  getTimeProvider,
26
26
  ok
27
- } from "./chunk-E55HKUGD.js";
27
+ } from "./chunk-HICY7SWU.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-BE256P4K.js.map
1250
+ //# sourceMappingURL=chunk-C7H2ZMTI.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  getDefaultRegistry
3
- } from "./chunk-E55HKUGD.js";
3
+ } from "./chunk-HICY7SWU.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-IQ5HSF5T.js.map
131
+ //# sourceMappingURL=chunk-CIYZLDFN.js.map
@@ -2,7 +2,7 @@ import {
2
2
  createLogger,
3
3
  err,
4
4
  ok
5
- } from "./chunk-E55HKUGD.js";
5
+ } from "./chunk-HICY7SWU.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-HSXKPBIL.js.map
90
+ //# sourceMappingURL=chunk-CRQMSTRD.js.map
@@ -8,7 +8,7 @@ import {
8
8
  getErrorMessage,
9
9
  ok,
10
10
  parseBoolEnv
11
- } from "./chunk-E55HKUGD.js";
11
+ } from "./chunk-HICY7SWU.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-5MSYZOYQ.js.map
149
+ //# sourceMappingURL=chunk-DBQGDWPQ.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  getTimeProvider
3
- } from "./chunk-E55HKUGD.js";
3
+ } from "./chunk-HICY7SWU.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-DP7MSK65.js.map
208
+ //# sourceMappingURL=chunk-DC5I6ZUU.js.map
@@ -7,7 +7,7 @@ import {
7
7
  toolStructuredError,
8
8
  toolSuccessStructured,
9
9
  wrapToolWithTimeout
10
- } from "./chunk-QJ7DCRNA.js";
10
+ } from "./chunk-LIXY6TA2.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-E55HKUGD.js";
22
+ } from "./chunk-HICY7SWU.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-DQ3M2FOT.js.map
2135
+ //# sourceMappingURL=chunk-F4NZHKMX.js.map
@@ -3,7 +3,7 @@ import {
3
3
  createLogger,
4
4
  err,
5
5
  ok
6
- } from "./chunk-E55HKUGD.js";
6
+ } from "./chunk-HICY7SWU.js";
7
7
 
8
8
  // src/adapters/sdk/types.ts
9
9
  var PROVIDER_ENV_KEYS = {
@@ -169,4 +169,4 @@ export {
169
169
  validateCustomApiBaseUrl,
170
170
  assertCustomApiHostResolvesPublic
171
171
  };
172
- //# sourceMappingURL=chunk-6MTWEBXE.js.map
172
+ //# sourceMappingURL=chunk-G4CRSFQX.js.map
@@ -8,7 +8,7 @@ import {
8
8
  getTimeProvider,
9
9
  isRateLimitText,
10
10
  ok
11
- } from "./chunk-E55HKUGD.js";
11
+ } from "./chunk-HICY7SWU.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-3WCKPSX5.js.map
543
+ //# sourceMappingURL=chunk-GBM7WDAN.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  runConfigInitSync
3
- } from "./chunk-EP3DR54Z.js";
3
+ } from "./chunk-6YKJNMJB.js";
4
4
  import {
5
5
  VERSION,
6
6
  checkApiKeys,
@@ -9,13 +9,13 @@ import {
9
9
  defaultConfig,
10
10
  initDataDirectories,
11
11
  loadConfig
12
- } from "./chunk-WSYJJRUG.js";
12
+ } from "./chunk-XMODQQP2.js";
13
13
  import {
14
14
  BUILT_IN_EXPERTS
15
15
  } from "./chunk-YPNQPT2F.js";
16
16
  import {
17
17
  probeAllClis
18
- } from "./chunk-IM7N3F3Q.js";
18
+ } from "./chunk-YM5CYOJD.js";
19
19
  import {
20
20
  CLI_SUBPROCESS_TIMEOUTS,
21
21
  colors,
@@ -26,7 +26,7 @@ import {
26
26
  getErrorMessage,
27
27
  getTimeProvider,
28
28
  symbols
29
- } from "./chunk-E55HKUGD.js";
29
+ } from "./chunk-HICY7SWU.js";
30
30
  import {
31
31
  ensureGitignored,
32
32
  findRepoRoot
@@ -2001,4 +2001,4 @@ export {
2001
2001
  setupCommand,
2002
2002
  setupCommandAsync
2003
2003
  };
2004
- //# sourceMappingURL=chunk-HC6PAAX6.js.map
2004
+ //# sourceMappingURL=chunk-GU5KSFJJ.js.map
@@ -12,11 +12,11 @@ import {
12
12
  gateWithReputation,
13
13
  resolveReputationGatingMode,
14
14
  sanitizeInput
15
- } from "./chunk-KQ57UMTL.js";
15
+ } from "./chunk-IB3LXCCE.js";
16
16
  import {
17
17
  createLogger,
18
18
  getTimeProvider
19
- } from "./chunk-E55HKUGD.js";
19
+ } from "./chunk-HICY7SWU.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-5WNGNIEI.js.map
294
+ //# sourceMappingURL=chunk-GWTZWIVD.js.map
@@ -1,14 +1,14 @@
1
1
  import {
2
2
  GitHubProvider,
3
3
  ScmError
4
- } from "./chunk-IORRDBLS.js";
4
+ } from "./chunk-WBPABR75.js";
5
5
  import {
6
6
  resolveToken
7
- } from "./chunk-HSXKPBIL.js";
7
+ } from "./chunk-CRQMSTRD.js";
8
8
  import {
9
9
  err,
10
10
  ok
11
- } from "./chunk-E55HKUGD.js";
11
+ } from "./chunk-HICY7SWU.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-RQDAZHIO.js.map
44
+ //# sourceMappingURL=chunk-HDJFKJBN.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-U25O2HBT.js");
2626
+ const { resetGlobalRegistry } = await import("./unified-registry-W7W3J2XB.js");
2627
2627
  resetGlobalRegistry();
2628
2628
  return globalRegistry;
2629
2629
  }
@@ -8994,8 +8994,11 @@ var DistilledRuleStage = class {
8994
8994
  const updated2 = addTrace(ctx, this.name, elapsed2, "skip", "no active rules");
8995
8995
  return ok({ context: updated2, continuesPipeline: true });
8996
8996
  }
8997
- const category = this.extractCategory(ctx);
8997
+ const category = readTaskCategory(ctx);
8998
8998
  let updated = ctx;
8999
+ if (category === void 0) {
9000
+ updated = { ...updated, signals: [...updated.signals, "distilled-rule:category-unknown"] };
9001
+ }
8999
9002
  let applied = 0;
9000
9003
  for (const cli of candidates) {
9001
9004
  const matchingRules = this.findMatchingRules(activeRules, cli, category);
@@ -9030,18 +9033,11 @@ var DistilledRuleStage = class {
9030
9033
  const baseDelta = rule.action === "penalize" ? this.config.penaltyDelta : rule.action === "boost" ? this.config.boostDelta : this.config.avoidDelta;
9031
9034
  return baseDelta * rule.confidence;
9032
9035
  }
9033
- extractCategory(ctx) {
9034
- for (const signal of ctx.signals) {
9035
- if (signal.startsWith("task-category:")) {
9036
- return signal.slice("task-category:".length);
9037
- }
9038
- if (signal.startsWith("capability:type=")) {
9039
- return signal.slice("capability:type=".length);
9040
- }
9041
- }
9042
- return void 0;
9043
- }
9044
9036
  };
9037
+ function readTaskCategory(ctx) {
9038
+ const parsed = TaskCategorySchema.safeParse(ctx.metadata?.["taskCategory"]);
9039
+ return parsed.success ? parsed.data : void 0;
9040
+ }
9045
9041
 
9046
9042
  // src/cli-adapters/routing/stages/knn-routing-stage.ts
9047
9043
  var DEFAULT_K = 5;
@@ -13801,11 +13797,15 @@ async function runResourceStrategyStage(task, candidates, stagesExecuted, deps,
13801
13797
  tierMeasured
13802
13798
  };
13803
13799
  }
13804
- async function runDistilledRuleStage(task, candidates, stagesExecuted, deps) {
13800
+ async function runDistilledRuleStage(task, candidates, stagesExecuted, deps, taskCategory) {
13805
13801
  if (!deps.config.enableStrategyDistillation || deps.distilledRuleStage === void 0) {
13806
13802
  return { scores: /* @__PURE__ */ new Map(), rulesApplied: 0 };
13807
13803
  }
13808
- const ctx = createRoutingContext(task.content, armsToSlots(candidates));
13804
+ const ctx = createRoutingContext(
13805
+ task.content,
13806
+ armsToSlots(candidates),
13807
+ taskCategory === void 0 ? void 0 : { taskCategory }
13808
+ );
13809
13809
  const result = await deps.distilledRuleStage.route(ctx);
13810
13810
  stagesExecuted.push("distilled-rule");
13811
13811
  if (!result.ok) {
@@ -13985,6 +13985,9 @@ function mergeScoreMaps(...maps) {
13985
13985
  }
13986
13986
  return merged;
13987
13987
  }
13988
+ function detectedCategory(task) {
13989
+ return detectTaskCategory(task.content)?.category;
13990
+ }
13988
13991
  async function runScoringStages(task, candidates, stagesExecuted, deps, budgetUtilization) {
13989
13992
  const cascadeResult = await runConfidenceCascadeStage(task, candidates, stagesExecuted, deps);
13990
13993
  const memoryResult = runRoutingMemoryStage(task, candidates, stagesExecuted, deps);
@@ -13992,7 +13995,8 @@ async function runScoringStages(task, candidates, stagesExecuted, deps, budgetUt
13992
13995
  const knnResult = await runKnnRoutingStage(task, candidates, stagesExecuted, deps);
13993
13996
  const zeroResult = runZeroRouterStage(task, candidates, stagesExecuted, deps);
13994
13997
  let filtered = zeroResult.filteredCandidates;
13995
- const distilledResult = await runDistilledRuleStage(task, filtered, stagesExecuted, deps);
13998
+ const cat = detectedCategory(task);
13999
+ const distilledResult = await runDistilledRuleStage(task, filtered, stagesExecuted, deps, cat);
13996
14000
  const prefResult = runPreferenceStage(task, filtered, stagesExecuted, deps);
13997
14001
  filtered = prefResult.preferredCandidates;
13998
14002
  const resourceResult = await runResourceStrategyStage(
@@ -15068,7 +15072,7 @@ var CompositeRouter = class _CompositeRouter {
15068
15072
  */
15069
15073
  async consultUnifiedContext(task) {
15070
15074
  try {
15071
- const { getContextForTask, inferTaskCategory } = await import("./context-retriever-RZ6ES6UT.js");
15075
+ const { getContextForTask, inferTaskCategory } = await import("./context-retriever-3LW47AYF.js");
15072
15076
  const ctx = await getContextForTask({
15073
15077
  task: task.content,
15074
15078
  category: inferTaskCategory(task.content),
@@ -16658,4 +16662,4 @@ export {
16658
16662
  AgentCapability,
16659
16663
  OrchestratorError
16660
16664
  };
16661
- //# sourceMappingURL=chunk-E55HKUGD.js.map
16665
+ //# sourceMappingURL=chunk-HICY7SWU.js.map