nexus-agents 8.7.0 → 8.8.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 (133) hide show
  1. package/dist/{ast-rule-runner-M4CLGNNW.js → ast-rule-runner-IESI3WWR.js} +3 -3
  2. package/dist/{child-mcp-config-VH6TABE5.js → child-mcp-config-WQNW5YFO.js} +2 -2
  3. package/dist/{chunk-5Z47V7HE.js → chunk-36AR3GCF.js} +8 -8
  4. package/dist/chunk-36AR3GCF.js.map +1 -0
  5. package/dist/{chunk-C6FKNMUA.js → chunk-37ONEK7R.js} +42 -9
  6. package/dist/chunk-37ONEK7R.js.map +1 -0
  7. package/dist/{chunk-77UZFA6D.js → chunk-3SO5DMHS.js} +4 -4
  8. package/dist/{chunk-VS2AWCQY.js → chunk-4AE2QO7Q.js} +2 -2
  9. package/dist/{chunk-DWN7RUDI.js → chunk-4HZCKQ25.js} +2 -2
  10. package/dist/{chunk-ORO7GDOD.js → chunk-66GKBIY2.js} +7 -7
  11. package/dist/{chunk-IXY6ISXK.js → chunk-6AGNJBHE.js} +2 -2
  12. package/dist/{chunk-IFF4SSOE.js → chunk-7BNB4YVO.js} +3 -3
  13. package/dist/{chunk-IDIMGCEX.js → chunk-7BYI5CBK.js} +42 -42
  14. package/dist/chunk-7BYI5CBK.js.map +1 -0
  15. package/dist/{chunk-BHG6YOBE.js → chunk-BBMGN7FS.js} +3 -3
  16. package/dist/{chunk-RM6WWFAV.js → chunk-BIHRU7WA.js} +8 -8
  17. package/dist/{chunk-FR7JE23L.js → chunk-BNPXE7BD.js} +2 -2
  18. package/dist/{chunk-OGSSJAVW.js → chunk-CRKF5LUZ.js} +4 -4
  19. package/dist/{chunk-C64WPHLB.js → chunk-DEXENQXS.js} +2 -2
  20. package/dist/{chunk-URKAE64B.js → chunk-DY6DVTX2.js} +2 -2
  21. package/dist/{chunk-RSMO6HZS.js → chunk-DZ5V47RU.js} +6 -6
  22. package/dist/{chunk-EFKGUOJP.js → chunk-F26X4N73.js} +2 -2
  23. package/dist/{chunk-N4VHPPWC.js → chunk-GUOMNRXZ.js} +2 -2
  24. package/dist/{chunk-PSCRZOGQ.js → chunk-HEV2C6VS.js} +51 -4
  25. package/dist/chunk-HEV2C6VS.js.map +1 -0
  26. package/dist/{chunk-7G2HFETT.js → chunk-HQ6K7OYH.js} +7 -7
  27. package/dist/{chunk-GUNDWP6A.js → chunk-NSHGFRGF.js} +2 -2
  28. package/dist/{chunk-MDVKS5FU.js → chunk-OLR2RIN2.js} +2 -2
  29. package/dist/{chunk-GB5DYFCU.js → chunk-OPHI2RB6.js} +4 -4
  30. package/dist/{chunk-34ANG6LA.js → chunk-PX422NHD.js} +2 -2
  31. package/dist/{chunk-C3Y274GP.js → chunk-REY2B5LO.js} +2 -2
  32. package/dist/{chunk-3JWQHPGZ.js → chunk-RWZJ2D2N.js} +2 -2
  33. package/dist/chunk-SAKV5TSH.js +7 -0
  34. package/dist/{chunk-IOPJR7R6.js → chunk-SNEUKIBK.js} +5 -5
  35. package/dist/{chunk-I4PHLZQC.js → chunk-TQT2BIZ7.js} +7 -7
  36. package/dist/chunk-TQT2BIZ7.js.map +1 -0
  37. package/dist/{chunk-XIC7XHIV.js → chunk-W37HHXDL.js} +2 -2
  38. package/dist/{chunk-MG4LAYXC.js → chunk-W5VBFX65.js} +2 -2
  39. package/dist/{chunk-NFCIUQE5.js → chunk-YUMKCIEL.js} +2 -2
  40. package/dist/{chunk-LQOLKNYU.js → chunk-ZN6BTFLD.js} +2 -2
  41. package/dist/{chunk-SM7A3QRA.js → chunk-ZQD67JES.js} +3 -3
  42. package/dist/{cli-circuit-breaker-6IKFVHKP.js → cli-circuit-breaker-YAAGSJ5N.js} +3 -3
  43. package/dist/cli.js +43 -43
  44. package/dist/{composite-router-EYZQABJD.js → composite-router-TU6MVJBG.js} +2 -2
  45. package/dist/{consensus-vote-E5RA4DWL.js → consensus-vote-FJWLHMQL.js} +17 -17
  46. package/dist/{context-retriever-VKTD245W.js → context-retriever-A4BZMTWM.js} +8 -8
  47. package/dist/{doctor-deep-LZVCM73P.js → doctor-deep-N4IFVZLP.js} +3 -3
  48. package/dist/{doctor-live-X2T7CKBI.js → doctor-live-G3EO5LQD.js} +9 -9
  49. package/dist/{expert-bridge-EQVYE6WD.js → expert-bridge-IKY5TTAH.js} +4 -4
  50. package/dist/{factory-TOA2DAKX.js → factory-EJ2ZMEQ7.js} +5 -5
  51. package/dist/{factory-K2LHSYKK.js → factory-VGRG7M62.js} +9 -9
  52. package/dist/{improvement-review-LE6COYNO.js → improvement-review-JNHEZ2DJ.js} +6 -6
  53. package/dist/index.d.ts +73 -17
  54. package/dist/index.js +34 -32
  55. package/dist/index.js.map +1 -1
  56. package/dist/{init-opencode-I3DNRHYN.js → init-opencode-KENOM2HA.js} +6 -6
  57. package/dist/issue-triage-IWMHDNUY.js +17 -0
  58. package/dist/{pr-reviewer-helpers-MT3N536G.js → pr-reviewer-helpers-C72VNWXU.js} +4 -4
  59. package/dist/{registry-command-A2R7GMD4.js → registry-command-53E7LRNR.js} +2 -2
  60. package/dist/{repo-security-plan-NW46RZXZ.js → repo-security-plan-ZSXHLYMU.js} +3 -3
  61. package/dist/{research-helpers-synthesize-GK6JLPAY.js → research-helpers-synthesize-X4O3S4SH.js} +4 -4
  62. package/dist/{routing-memory-CGOORLEE.js → routing-memory-5RYZJE45.js} +2 -2
  63. package/dist/{session-memory-EVTFDL4P.js → session-memory-3GE74TXJ.js} +3 -3
  64. package/dist/{setup-config-KLHUBAZC.js → setup-config-YGTQJTTC.js} +3 -3
  65. package/dist/{setup-custom-api-XAJSDQHR.js → setup-custom-api-5ZZQJ5WX.js} +4 -4
  66. package/dist/setup-data-dir-NKG6L7FO.js +29 -0
  67. package/dist/{tool-memory-X5XDTZX6.js → tool-memory-ZW2J3PMR.js} +5 -5
  68. package/dist/{unified-registry-XICJQUNW.js → unified-registry-IH3UEZLZ.js} +10 -10
  69. package/dist/{weather-report-UJTYF5EI.js → weather-report-OQ2UA3DZ.js} +2 -2
  70. package/package.json +1 -1
  71. package/dist/chunk-5Z47V7HE.js.map +0 -1
  72. package/dist/chunk-7G4BNM7E.js +0 -7
  73. package/dist/chunk-C6FKNMUA.js.map +0 -1
  74. package/dist/chunk-I4PHLZQC.js.map +0 -1
  75. package/dist/chunk-IDIMGCEX.js.map +0 -1
  76. package/dist/chunk-PSCRZOGQ.js.map +0 -1
  77. package/dist/issue-triage-N6EMSPMR.js +0 -17
  78. package/dist/setup-data-dir-KY2YWWF4.js +0 -29
  79. /package/dist/{ast-rule-runner-M4CLGNNW.js.map → ast-rule-runner-IESI3WWR.js.map} +0 -0
  80. /package/dist/{child-mcp-config-VH6TABE5.js.map → child-mcp-config-WQNW5YFO.js.map} +0 -0
  81. /package/dist/{chunk-77UZFA6D.js.map → chunk-3SO5DMHS.js.map} +0 -0
  82. /package/dist/{chunk-VS2AWCQY.js.map → chunk-4AE2QO7Q.js.map} +0 -0
  83. /package/dist/{chunk-DWN7RUDI.js.map → chunk-4HZCKQ25.js.map} +0 -0
  84. /package/dist/{chunk-ORO7GDOD.js.map → chunk-66GKBIY2.js.map} +0 -0
  85. /package/dist/{chunk-IXY6ISXK.js.map → chunk-6AGNJBHE.js.map} +0 -0
  86. /package/dist/{chunk-IFF4SSOE.js.map → chunk-7BNB4YVO.js.map} +0 -0
  87. /package/dist/{chunk-BHG6YOBE.js.map → chunk-BBMGN7FS.js.map} +0 -0
  88. /package/dist/{chunk-RM6WWFAV.js.map → chunk-BIHRU7WA.js.map} +0 -0
  89. /package/dist/{chunk-FR7JE23L.js.map → chunk-BNPXE7BD.js.map} +0 -0
  90. /package/dist/{chunk-OGSSJAVW.js.map → chunk-CRKF5LUZ.js.map} +0 -0
  91. /package/dist/{chunk-C64WPHLB.js.map → chunk-DEXENQXS.js.map} +0 -0
  92. /package/dist/{chunk-URKAE64B.js.map → chunk-DY6DVTX2.js.map} +0 -0
  93. /package/dist/{chunk-RSMO6HZS.js.map → chunk-DZ5V47RU.js.map} +0 -0
  94. /package/dist/{chunk-EFKGUOJP.js.map → chunk-F26X4N73.js.map} +0 -0
  95. /package/dist/{chunk-N4VHPPWC.js.map → chunk-GUOMNRXZ.js.map} +0 -0
  96. /package/dist/{chunk-7G2HFETT.js.map → chunk-HQ6K7OYH.js.map} +0 -0
  97. /package/dist/{chunk-GUNDWP6A.js.map → chunk-NSHGFRGF.js.map} +0 -0
  98. /package/dist/{chunk-MDVKS5FU.js.map → chunk-OLR2RIN2.js.map} +0 -0
  99. /package/dist/{chunk-GB5DYFCU.js.map → chunk-OPHI2RB6.js.map} +0 -0
  100. /package/dist/{chunk-34ANG6LA.js.map → chunk-PX422NHD.js.map} +0 -0
  101. /package/dist/{chunk-C3Y274GP.js.map → chunk-REY2B5LO.js.map} +0 -0
  102. /package/dist/{chunk-3JWQHPGZ.js.map → chunk-RWZJ2D2N.js.map} +0 -0
  103. /package/dist/{chunk-7G4BNM7E.js.map → chunk-SAKV5TSH.js.map} +0 -0
  104. /package/dist/{chunk-IOPJR7R6.js.map → chunk-SNEUKIBK.js.map} +0 -0
  105. /package/dist/{chunk-XIC7XHIV.js.map → chunk-W37HHXDL.js.map} +0 -0
  106. /package/dist/{chunk-MG4LAYXC.js.map → chunk-W5VBFX65.js.map} +0 -0
  107. /package/dist/{chunk-NFCIUQE5.js.map → chunk-YUMKCIEL.js.map} +0 -0
  108. /package/dist/{chunk-LQOLKNYU.js.map → chunk-ZN6BTFLD.js.map} +0 -0
  109. /package/dist/{chunk-SM7A3QRA.js.map → chunk-ZQD67JES.js.map} +0 -0
  110. /package/dist/{cli-circuit-breaker-6IKFVHKP.js.map → cli-circuit-breaker-YAAGSJ5N.js.map} +0 -0
  111. /package/dist/{composite-router-EYZQABJD.js.map → composite-router-TU6MVJBG.js.map} +0 -0
  112. /package/dist/{consensus-vote-E5RA4DWL.js.map → consensus-vote-FJWLHMQL.js.map} +0 -0
  113. /package/dist/{context-retriever-VKTD245W.js.map → context-retriever-A4BZMTWM.js.map} +0 -0
  114. /package/dist/{doctor-deep-LZVCM73P.js.map → doctor-deep-N4IFVZLP.js.map} +0 -0
  115. /package/dist/{doctor-live-X2T7CKBI.js.map → doctor-live-G3EO5LQD.js.map} +0 -0
  116. /package/dist/{expert-bridge-EQVYE6WD.js.map → expert-bridge-IKY5TTAH.js.map} +0 -0
  117. /package/dist/{factory-K2LHSYKK.js.map → factory-EJ2ZMEQ7.js.map} +0 -0
  118. /package/dist/{factory-TOA2DAKX.js.map → factory-VGRG7M62.js.map} +0 -0
  119. /package/dist/{improvement-review-LE6COYNO.js.map → improvement-review-JNHEZ2DJ.js.map} +0 -0
  120. /package/dist/{init-opencode-I3DNRHYN.js.map → init-opencode-KENOM2HA.js.map} +0 -0
  121. /package/dist/{issue-triage-N6EMSPMR.js.map → issue-triage-IWMHDNUY.js.map} +0 -0
  122. /package/dist/{pr-reviewer-helpers-MT3N536G.js.map → pr-reviewer-helpers-C72VNWXU.js.map} +0 -0
  123. /package/dist/{registry-command-A2R7GMD4.js.map → registry-command-53E7LRNR.js.map} +0 -0
  124. /package/dist/{repo-security-plan-NW46RZXZ.js.map → repo-security-plan-ZSXHLYMU.js.map} +0 -0
  125. /package/dist/{research-helpers-synthesize-GK6JLPAY.js.map → research-helpers-synthesize-X4O3S4SH.js.map} +0 -0
  126. /package/dist/{routing-memory-CGOORLEE.js.map → routing-memory-5RYZJE45.js.map} +0 -0
  127. /package/dist/{session-memory-EVTFDL4P.js.map → session-memory-3GE74TXJ.js.map} +0 -0
  128. /package/dist/{setup-config-KLHUBAZC.js.map → setup-config-YGTQJTTC.js.map} +0 -0
  129. /package/dist/{setup-custom-api-XAJSDQHR.js.map → setup-custom-api-5ZZQJ5WX.js.map} +0 -0
  130. /package/dist/{setup-data-dir-KY2YWWF4.js.map → setup-data-dir-NKG6L7FO.js.map} +0 -0
  131. /package/dist/{tool-memory-X5XDTZX6.js.map → tool-memory-ZW2J3PMR.js.map} +0 -0
  132. /package/dist/{unified-registry-XICJQUNW.js.map → unified-registry-IH3UEZLZ.js.map} +0 -0
  133. /package/dist/{weather-report-UJTYF5EI.js.map → weather-report-OQ2UA3DZ.js.map} +0 -0
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  loadPapersRegistry
3
- } from "./chunk-C64WPHLB.js";
3
+ } from "./chunk-DEXENQXS.js";
4
4
  import {
5
5
  getErrorMessage
6
- } from "./chunk-PSCRZOGQ.js";
6
+ } from "./chunk-HEV2C6VS.js";
7
7
 
8
8
  // src/cli/research-helpers-synthesize.ts
9
9
  import { z } from "zod";
@@ -886,4 +886,4 @@ export {
886
886
  AttributedInsightSchema,
887
887
  synthesizeResearch
888
888
  };
889
- //# sourceMappingURL=chunk-BHG6YOBE.js.map
889
+ //# sourceMappingURL=chunk-BBMGN7FS.js.map
@@ -5,34 +5,34 @@ import {
5
5
  planOptionalParams,
6
6
  requireApiKey,
7
7
  validateApiKeyPresence
8
- } from "./chunk-MG4LAYXC.js";
8
+ } from "./chunk-W5VBFX65.js";
9
9
  import {
10
10
  CUSTOM_API_DEFAULT_MODEL
11
- } from "./chunk-GUNDWP6A.js";
11
+ } from "./chunk-NSHGFRGF.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-MDVKS5FU.js";
17
+ } from "./chunk-OLR2RIN2.js";
18
18
  import {
19
19
  nexusMkdtempSync
20
20
  } from "./chunk-4HXPNLZS.js";
21
21
  import {
22
22
  getAvailabilityCache
23
- } from "./chunk-N4VHPPWC.js";
23
+ } from "./chunk-GUOMNRXZ.js";
24
24
  import {
25
25
  extractSystemPrompt
26
26
  } from "./chunk-QZUG667L.js";
27
27
  import {
28
28
  generateHyphenId
29
- } from "./chunk-XIC7XHIV.js";
29
+ } from "./chunk-W37HHXDL.js";
30
30
  import {
31
31
  CliCircuitBreaker,
32
32
  DEFAULT_CIRCUIT_BREAKER_CONFIG,
33
33
  getCliCircuitBreakerSnapshot,
34
34
  getDefaultCliCircuitBreakerRegistry
35
- } from "./chunk-34ANG6LA.js";
35
+ } from "./chunk-PX422NHD.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-PSCRZOGQ.js";
75
+ } from "./chunk-HEV2C6VS.js";
76
76
 
77
77
  // src/cli-adapters/cli-to-model-adapter.ts
78
78
  var CliToModelAdapter = class {
@@ -4946,4 +4946,4 @@ export {
4946
4946
  SdkAdapter,
4947
4947
  createAutoAdapter
4948
4948
  };
4949
- //# sourceMappingURL=chunk-RM6WWFAV.js.map
4949
+ //# sourceMappingURL=chunk-BIHRU7WA.js.map
@@ -4,7 +4,7 @@ import {
4
4
  import {
5
5
  createLogger,
6
6
  getTimeProvider
7
- } from "./chunk-PSCRZOGQ.js";
7
+ } from "./chunk-HEV2C6VS.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-FR7JE23L.js.map
724
+ //# sourceMappingURL=chunk-BNPXE7BD.js.map
@@ -5,7 +5,7 @@ import {
5
5
  } from "./chunk-6T3EPABN.js";
6
6
  import {
7
7
  SessionMemory
8
- } from "./chunk-EFKGUOJP.js";
8
+ } from "./chunk-F26X4N73.js";
9
9
  import {
10
10
  StatsOnlyAdapter,
11
11
  ensureSharedMemoryRegistry
@@ -15,7 +15,7 @@ import {
15
15
  } from "./chunk-YYJFZ7TO.js";
16
16
  import {
17
17
  generateId
18
- } from "./chunk-XIC7XHIV.js";
18
+ } from "./chunk-W37HHXDL.js";
19
19
  import {
20
20
  ErrorCode,
21
21
  NexusError,
@@ -29,7 +29,7 @@ import {
29
29
  ok,
30
30
  openSqliteDatabase,
31
31
  setSharedMobiMemDbPathResolver
32
- } from "./chunk-PSCRZOGQ.js";
32
+ } from "./chunk-HEV2C6VS.js";
33
33
  import {
34
34
  nexusDataPath
35
35
  } from "./chunk-MM223CVS.js";
@@ -5617,4 +5617,4 @@ export {
5617
5617
  reinitializeMemoryBackends,
5618
5618
  ToolMemoryManager
5619
5619
  };
5620
- //# sourceMappingURL=chunk-OGSSJAVW.js.map
5620
+ //# sourceMappingURL=chunk-CRKF5LUZ.js.map
@@ -5,7 +5,7 @@ import {
5
5
  getErrorMessage,
6
6
  ok,
7
7
  parseBoolEnv
8
- } from "./chunk-PSCRZOGQ.js";
8
+ } from "./chunk-HEV2C6VS.js";
9
9
 
10
10
  // src/cli/research-helpers-io.ts
11
11
  import * as fs2 from "node:fs/promises";
@@ -156,4 +156,4 @@ export {
156
156
  loadPapersRegistry,
157
157
  savePapersRegistry
158
158
  };
159
- //# sourceMappingURL=chunk-C64WPHLB.js.map
159
+ //# sourceMappingURL=chunk-DEXENQXS.js.map
@@ -3,7 +3,7 @@ import {
3
3
  createLogger,
4
4
  getDefaultRegistry,
5
5
  roundToMicroUsd
6
- } from "./chunk-PSCRZOGQ.js";
6
+ } from "./chunk-HEV2C6VS.js";
7
7
  import {
8
8
  getNexusDataDir
9
9
  } from "./chunk-MM223CVS.js";
@@ -176,4 +176,4 @@ export {
176
176
  loadUsageEvents,
177
177
  rollupByModel
178
178
  };
179
- //# sourceMappingURL=chunk-URKAE64B.js.map
179
+ //# sourceMappingURL=chunk-DY6DVTX2.js.map
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  GitHubProvider,
3
3
  ScmError
4
- } from "./chunk-C3Y274GP.js";
4
+ } from "./chunk-REY2B5LO.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-VS2AWCQY.js";
14
+ } from "./chunk-4AE2QO7Q.js";
15
15
  import {
16
16
  emitPolicyEvent
17
- } from "./chunk-IXY6ISXK.js";
17
+ } from "./chunk-6AGNJBHE.js";
18
18
  import {
19
19
  hasToken
20
- } from "./chunk-3JWQHPGZ.js";
20
+ } from "./chunk-RWZJ2D2N.js";
21
21
  import {
22
22
  CLI_SUBPROCESS_TIMEOUTS,
23
23
  createLogger,
24
24
  err,
25
25
  getTimeProvider,
26
26
  ok
27
- } from "./chunk-PSCRZOGQ.js";
27
+ } from "./chunk-HEV2C6VS.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-RSMO6HZS.js.map
1250
+ //# sourceMappingURL=chunk-DZ5V47RU.js.map
@@ -4,7 +4,7 @@ import {
4
4
  getErrorMessage,
5
5
  getTimeProvider,
6
6
  ok
7
- } from "./chunk-PSCRZOGQ.js";
7
+ } from "./chunk-HEV2C6VS.js";
8
8
 
9
9
  // src/context/session-memory.ts
10
10
  import * as fs from "node:fs";
@@ -366,4 +366,4 @@ export {
366
366
  SessionMemory,
367
367
  createSessionMemory
368
368
  };
369
- //# sourceMappingURL=chunk-EFKGUOJP.js.map
369
+ //# sourceMappingURL=chunk-F26X4N73.js.map
@@ -3,7 +3,7 @@ import {
3
3
  MODEL_IDS,
4
4
  getTimeProvider,
5
5
  resolveModelIdentitySync
6
- } from "./chunk-PSCRZOGQ.js";
6
+ } from "./chunk-HEV2C6VS.js";
7
7
 
8
8
  // src/config/model-availability.ts
9
9
  var DEFAULT_TTL_MS = 6e4;
@@ -150,4 +150,4 @@ export {
150
150
  resetAvailabilityCache,
151
151
  filterAvailableModels
152
152
  };
153
- //# sourceMappingURL=chunk-N4VHPPWC.js.map
153
+ //# sourceMappingURL=chunk-GUOMNRXZ.js.map
@@ -2653,7 +2653,7 @@ function setDefaultRegistry(registry) {
2653
2653
  }
2654
2654
  async function reloadDefaultRegistry() {
2655
2655
  globalRegistry = buildDefaultRegistry();
2656
- const { resetGlobalRegistry } = await import("./unified-registry-XICJQUNW.js");
2656
+ const { resetGlobalRegistry } = await import("./unified-registry-IH3UEZLZ.js");
2657
2657
  resetGlobalRegistry();
2658
2658
  return globalRegistry;
2659
2659
  }
@@ -9218,6 +9218,18 @@ var DistilledRuleStage = class {
9218
9218
  (r) => r.cli === cli && (category === void 0 || r.category === category)
9219
9219
  );
9220
9220
  }
9221
+ /**
9222
+ * Score delta for one rule: the action's base delta scaled by
9223
+ * `rule.confidence`, which is `support × effect` (#5004 finding 3).
9224
+ *
9225
+ * `support` is the sigmoid over observations; `effect` is how far the
9226
+ * metric sits past its detector threshold, in [0, 1]. So a 100% failure
9227
+ * rate over 40 tasks moves the score by the full `support`, a 62.5% rate
9228
+ * over the same 40 tasks moves it by a sixteenth of that, a 6/6 failure
9229
+ * stays small because support bounds it, and a rule exactly at threshold
9230
+ * contributes 0. Before #5004 confidence was sample support alone and the
9231
+ * penalty tracked traffic volume rather than performance.
9232
+ */
9221
9233
  computeDelta(rule) {
9222
9234
  const baseDelta = rule.action === "penalize" ? this.config.penaltyDelta : rule.action === "boost" ? this.config.boostDelta : this.config.avoidDelta;
9223
9235
  return baseDelta * rule.confidence;
@@ -9665,6 +9677,26 @@ function sigmoidConfidence(observations, center = 30) {
9665
9677
  const raw = 1 / (1 + Math.exp(-(observations - center) / 5));
9666
9678
  return Math.max(0, Math.min(1, raw));
9667
9679
  }
9680
+ function clampUnit(value) {
9681
+ if (!Number.isFinite(value)) return 0;
9682
+ return Math.max(0, Math.min(1, value));
9683
+ }
9684
+ function effectFor(patternType, metric, thresholds) {
9685
+ switch (patternType) {
9686
+ case "failure-rate":
9687
+ return clampUnit(
9688
+ (metric - thresholds.failureRateThreshold) / (1 - thresholds.failureRateThreshold)
9689
+ );
9690
+ case "success-rate":
9691
+ return clampUnit(
9692
+ (metric - thresholds.successRateThreshold) / (1 - thresholds.successRateThreshold)
9693
+ );
9694
+ case "latency-spike":
9695
+ return clampUnit(
9696
+ (metric - thresholds.latencyRatioThreshold) / thresholds.latencyRatioThreshold
9697
+ );
9698
+ }
9699
+ }
9668
9700
  function ruleFingerprint(patternType, cli, category) {
9669
9701
  return `${patternType}:${cli}:${category}`;
9670
9702
  }
@@ -9750,6 +9782,7 @@ function detectLatencyPatterns(groups, threshold) {
9750
9782
  return patterns;
9751
9783
  }
9752
9784
  var StrategyDistiller = class {
9785
+ /** Protected so `PersistentStrategyDistiller` hydrates legacy rules under the live thresholds. */
9753
9786
  config;
9754
9787
  outcomeStore;
9755
9788
  logger;
@@ -9817,6 +9850,13 @@ var StrategyDistiller = class {
9817
9850
  /**
9818
9851
  * Promote high-confidence rules to RoutingMemory.
9819
9852
  * Rules must be active, non-tainted, with sufficient observations and confidence.
9853
+ *
9854
+ * @deprecated No production caller (#5004 finding 4). `DistilledRuleStage`
9855
+ * is the single channel by which distilled rules reach routing; this
9856
+ * second channel into `RoutingMemory` is kept only so the deprecation is
9857
+ * non-breaking. Removal is tracked in #5467. Note the gate now compares
9858
+ * `confidence = support × effect` against `promotionConfidence`, so a rule
9859
+ * that would have promoted on sample size alone may no longer clear it.
9820
9860
  */
9821
9861
  promote(routingMemory) {
9822
9862
  let promoted = 0;
@@ -9856,13 +9896,17 @@ var StrategyDistiller = class {
9856
9896
  if (existing === void 0 && pattern.observationCount < this.config.minObservationsForDraft) {
9857
9897
  return;
9858
9898
  }
9859
- const confidence = sigmoidConfidence(pattern.observationCount);
9899
+ const support = sigmoidConfidence(pattern.observationCount);
9900
+ const effect = effectFor(pattern.patternType, pattern.metric, this.config);
9901
+ const confidence = support * effect;
9860
9902
  const status = this.computeStatus(pattern.observationCount, existing?.status);
9861
9903
  if (existing !== void 0) {
9862
9904
  this.rules.set(id, {
9863
9905
  ...existing,
9864
9906
  action: pattern.action,
9865
9907
  confidence,
9908
+ support,
9909
+ effect,
9866
9910
  observationCount: pattern.observationCount,
9867
9911
  metric: pattern.metric,
9868
9912
  status,
@@ -9876,6 +9920,8 @@ var StrategyDistiller = class {
9876
9920
  category: pattern.category,
9877
9921
  action: pattern.action,
9878
9922
  confidence,
9923
+ support,
9924
+ effect,
9879
9925
  observationCount: pattern.observationCount,
9880
9926
  metric: pattern.metric,
9881
9927
  status,
@@ -15327,7 +15373,7 @@ var CompositeRouter = class _CompositeRouter {
15327
15373
  */
15328
15374
  async consultUnifiedContext(task) {
15329
15375
  try {
15330
- const { getContextForTask, inferTaskCategory } = await import("./context-retriever-VKTD245W.js");
15376
+ const { getContextForTask, inferTaskCategory } = await import("./context-retriever-A4BZMTWM.js");
15331
15377
  const ctx = await getContextForTask({
15332
15378
  task: task.content,
15333
15379
  category: inferTaskCategory(task.content),
@@ -16927,6 +16973,7 @@ export {
16927
16973
  createRoutingMemory,
16928
16974
  DEFAULT_DISTILLER_CONFIG,
16929
16975
  sigmoidConfidence,
16976
+ effectFor,
16930
16977
  detectFailurePatterns,
16931
16978
  detectSuccessPatterns,
16932
16979
  detectLatencyPatterns,
@@ -16977,4 +17024,4 @@ export {
16977
17024
  AgentCapability,
16978
17025
  OrchestratorError
16979
17026
  };
16980
- //# sourceMappingURL=chunk-PSCRZOGQ.js.map
17027
+ //# sourceMappingURL=chunk-HEV2C6VS.js.map