nexus-agents 3.8.5 → 3.8.7

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 (122) hide show
  1. package/dist/{child-mcp-config-2PIBUQ2S.js → child-mcp-config-XIZWCWS3.js} +2 -2
  2. package/dist/{chunk-L3KUH66L.js → chunk-2CN7DD4C.js} +3 -3
  3. package/dist/{chunk-SBI7WTXE.js → chunk-3MUJKEAQ.js} +5 -5
  4. package/dist/{chunk-KDLFUQSW.js → chunk-3ZGYVPN3.js} +2 -2
  5. package/dist/{chunk-RWMQ3YJW.js → chunk-65WAPYJ6.js} +3 -3
  6. package/dist/{chunk-JD72GJWG.js → chunk-6YEAUZBF.js} +4 -4
  7. package/dist/{chunk-6GPA42ZT.js → chunk-7GA5V4L2.js} +2 -2
  8. package/dist/{chunk-S75ALOWG.js → chunk-7PBXPMKW.js} +2 -2
  9. package/dist/{chunk-7X4D7ANX.js → chunk-ACWU2RRK.js} +2 -2
  10. package/dist/{chunk-Y2RZWSBO.js → chunk-AENOTEID.js} +5 -5
  11. package/dist/{chunk-MUTPTBWG.js → chunk-AQBM5CAX.js} +2 -2
  12. package/dist/{chunk-IWVAUE6L.js → chunk-CVEW6IOK.js} +8 -8
  13. package/dist/{chunk-DHXLS4KC.js → chunk-DSP6PMDI.js} +3 -3
  14. package/dist/{chunk-UFG2PWHA.js → chunk-EGUKCGGM.js} +7 -7
  15. package/dist/{chunk-DBPXOHI5.js → chunk-EZXYOWCX.js} +2 -2
  16. package/dist/{chunk-NYEZJYLW.js → chunk-FZ5YJSM6.js} +4 -4
  17. package/dist/{chunk-U7RX45LD.js → chunk-KIE4R424.js} +2 -2
  18. package/dist/{chunk-VTYYI2W3.js → chunk-MUBJ4ROO.js} +2 -2
  19. package/dist/{chunk-A56RXUI6.js → chunk-NZCBB4SP.js} +2 -2
  20. package/dist/{chunk-I7NYAUZP.js → chunk-OJCIP6W5.js} +2 -2
  21. package/dist/{chunk-JDVNIRG5.js → chunk-OM5VAEYP.js} +2 -2
  22. package/dist/{chunk-TO32OEQJ.js → chunk-P5WOAEDY.js} +4 -4
  23. package/dist/{chunk-AL33VIXL.js → chunk-PBD5LS4B.js} +13 -9
  24. package/dist/chunk-PBD5LS4B.js.map +1 -0
  25. package/dist/{chunk-U56CQSQY.js → chunk-PFWKM4Q4.js} +5 -5
  26. package/dist/{chunk-7WPB57DI.js → chunk-Q2UUVPVY.js} +2 -2
  27. package/dist/{chunk-ND3CRWVF.js → chunk-QV2OZ3O3.js} +35 -35
  28. package/dist/{chunk-JDDNQU3Z.js → chunk-R43Y6TXS.js} +2 -2
  29. package/dist/{chunk-YPVLUX5D.js → chunk-SMBJQBEC.js} +3 -3
  30. package/dist/{chunk-IYCTEPKA.js → chunk-SXWUCWLR.js} +3 -3
  31. package/dist/{chunk-RMNQ5Y2Y.js → chunk-VCNOCG2J.js} +8 -8
  32. package/dist/{chunk-56AEAPBH.js → chunk-WVN62JSE.js} +2 -2
  33. package/dist/{chunk-HOCCD7UE.js → chunk-XYVYKPIB.js} +2 -2
  34. package/dist/{chunk-2OUSA6KC.js → chunk-YAZW2ANJ.js} +5 -5
  35. package/dist/{chunk-CJQUKCFX.js → chunk-YP25ZDI2.js} +2 -2
  36. package/dist/{cli-circuit-breaker-CN3TTRGA.js → cli-circuit-breaker-M5JY42QE.js} +3 -3
  37. package/dist/cli.js +41 -41
  38. package/dist/{composite-router-BKWI2DWU.js → composite-router-AU7QAE3Z.js} +2 -2
  39. package/dist/{consensus-vote-QK5TMW5O.js → consensus-vote-FUQNZAHI.js} +16 -16
  40. package/dist/{context-retriever-LICMS4FY.js → context-retriever-BJL3MZTY.js} +8 -8
  41. package/dist/{doctor-deep-JMUKTWXY.js → doctor-deep-CSIYPBWB.js} +3 -3
  42. package/dist/{doctor-live-VSSZGONL.js → doctor-live-Z3EUWDEM.js} +9 -9
  43. package/dist/{expert-bridge-GEK3O27T.js → expert-bridge-NI3ZJASZ.js} +4 -4
  44. package/dist/{factory-DTR6AHD7.js → factory-663E66YC.js} +9 -9
  45. package/dist/{factory-Y3ZH5SXY.js → factory-BQAVRQGT.js} +5 -5
  46. package/dist/{improvement-review-SRIDB3XF.js → improvement-review-J6TNYY37.js} +5 -5
  47. package/dist/index.d.ts +1 -1
  48. package/dist/index.js +30 -30
  49. package/dist/index.js.map +1 -1
  50. package/dist/{init-opencode-FZY5PH7I.js → init-opencode-EY7LKRNG.js} +6 -6
  51. package/dist/{issue-triage-4BCWSTD6.js → issue-triage-SVM7E5KL.js} +6 -6
  52. package/dist/{pr-reviewer-helpers-WZH6KPEW.js → pr-reviewer-helpers-545VXQVR.js} +4 -4
  53. package/dist/{registry-command-SVDXUNIR.js → registry-command-7YZHWM5F.js} +2 -2
  54. package/dist/{repo-security-plan-6KQVPGFQ.js → repo-security-plan-F32BFXAV.js} +3 -3
  55. package/dist/{research-helpers-synthesize-74CBM5N3.js → research-helpers-synthesize-DQXRIADN.js} +4 -4
  56. package/dist/{routing-memory-AKPBEY7V.js → routing-memory-MUUFFXDI.js} +2 -2
  57. package/dist/{session-memory-ZECEYOSG.js → session-memory-OPYU2ZX3.js} +3 -3
  58. package/dist/{setup-command-MRPKW5A6.js → setup-command-XDH7XGA5.js} +14 -14
  59. package/dist/{setup-config-F3WQWJHA.js → setup-config-EUBS3LFF.js} +3 -3
  60. package/dist/{setup-custom-api-SKD5MTOT.js → setup-custom-api-XT23L2NX.js} +4 -4
  61. package/dist/{tool-memory-PMLDOLWI.js → tool-memory-HEHBDQDP.js} +5 -5
  62. package/dist/{unified-registry-SGS73VVW.js → unified-registry-FYD2XQ43.js} +10 -10
  63. package/dist/{weather-report-4N4JYOM5.js → weather-report-ZG3JCRLK.js} +2 -2
  64. package/package.json +1 -1
  65. package/dist/chunk-AL33VIXL.js.map +0 -1
  66. /package/dist/{child-mcp-config-2PIBUQ2S.js.map → child-mcp-config-XIZWCWS3.js.map} +0 -0
  67. /package/dist/{chunk-L3KUH66L.js.map → chunk-2CN7DD4C.js.map} +0 -0
  68. /package/dist/{chunk-SBI7WTXE.js.map → chunk-3MUJKEAQ.js.map} +0 -0
  69. /package/dist/{chunk-KDLFUQSW.js.map → chunk-3ZGYVPN3.js.map} +0 -0
  70. /package/dist/{chunk-RWMQ3YJW.js.map → chunk-65WAPYJ6.js.map} +0 -0
  71. /package/dist/{chunk-JD72GJWG.js.map → chunk-6YEAUZBF.js.map} +0 -0
  72. /package/dist/{chunk-6GPA42ZT.js.map → chunk-7GA5V4L2.js.map} +0 -0
  73. /package/dist/{chunk-S75ALOWG.js.map → chunk-7PBXPMKW.js.map} +0 -0
  74. /package/dist/{chunk-7X4D7ANX.js.map → chunk-ACWU2RRK.js.map} +0 -0
  75. /package/dist/{chunk-Y2RZWSBO.js.map → chunk-AENOTEID.js.map} +0 -0
  76. /package/dist/{chunk-MUTPTBWG.js.map → chunk-AQBM5CAX.js.map} +0 -0
  77. /package/dist/{chunk-IWVAUE6L.js.map → chunk-CVEW6IOK.js.map} +0 -0
  78. /package/dist/{chunk-DHXLS4KC.js.map → chunk-DSP6PMDI.js.map} +0 -0
  79. /package/dist/{chunk-UFG2PWHA.js.map → chunk-EGUKCGGM.js.map} +0 -0
  80. /package/dist/{chunk-DBPXOHI5.js.map → chunk-EZXYOWCX.js.map} +0 -0
  81. /package/dist/{chunk-NYEZJYLW.js.map → chunk-FZ5YJSM6.js.map} +0 -0
  82. /package/dist/{chunk-U7RX45LD.js.map → chunk-KIE4R424.js.map} +0 -0
  83. /package/dist/{chunk-VTYYI2W3.js.map → chunk-MUBJ4ROO.js.map} +0 -0
  84. /package/dist/{chunk-A56RXUI6.js.map → chunk-NZCBB4SP.js.map} +0 -0
  85. /package/dist/{chunk-I7NYAUZP.js.map → chunk-OJCIP6W5.js.map} +0 -0
  86. /package/dist/{chunk-JDVNIRG5.js.map → chunk-OM5VAEYP.js.map} +0 -0
  87. /package/dist/{chunk-TO32OEQJ.js.map → chunk-P5WOAEDY.js.map} +0 -0
  88. /package/dist/{chunk-U56CQSQY.js.map → chunk-PFWKM4Q4.js.map} +0 -0
  89. /package/dist/{chunk-7WPB57DI.js.map → chunk-Q2UUVPVY.js.map} +0 -0
  90. /package/dist/{chunk-ND3CRWVF.js.map → chunk-QV2OZ3O3.js.map} +0 -0
  91. /package/dist/{chunk-JDDNQU3Z.js.map → chunk-R43Y6TXS.js.map} +0 -0
  92. /package/dist/{chunk-YPVLUX5D.js.map → chunk-SMBJQBEC.js.map} +0 -0
  93. /package/dist/{chunk-IYCTEPKA.js.map → chunk-SXWUCWLR.js.map} +0 -0
  94. /package/dist/{chunk-RMNQ5Y2Y.js.map → chunk-VCNOCG2J.js.map} +0 -0
  95. /package/dist/{chunk-56AEAPBH.js.map → chunk-WVN62JSE.js.map} +0 -0
  96. /package/dist/{chunk-HOCCD7UE.js.map → chunk-XYVYKPIB.js.map} +0 -0
  97. /package/dist/{chunk-2OUSA6KC.js.map → chunk-YAZW2ANJ.js.map} +0 -0
  98. /package/dist/{chunk-CJQUKCFX.js.map → chunk-YP25ZDI2.js.map} +0 -0
  99. /package/dist/{cli-circuit-breaker-CN3TTRGA.js.map → cli-circuit-breaker-M5JY42QE.js.map} +0 -0
  100. /package/dist/{composite-router-BKWI2DWU.js.map → composite-router-AU7QAE3Z.js.map} +0 -0
  101. /package/dist/{consensus-vote-QK5TMW5O.js.map → consensus-vote-FUQNZAHI.js.map} +0 -0
  102. /package/dist/{context-retriever-LICMS4FY.js.map → context-retriever-BJL3MZTY.js.map} +0 -0
  103. /package/dist/{doctor-deep-JMUKTWXY.js.map → doctor-deep-CSIYPBWB.js.map} +0 -0
  104. /package/dist/{doctor-live-VSSZGONL.js.map → doctor-live-Z3EUWDEM.js.map} +0 -0
  105. /package/dist/{expert-bridge-GEK3O27T.js.map → expert-bridge-NI3ZJASZ.js.map} +0 -0
  106. /package/dist/{factory-DTR6AHD7.js.map → factory-663E66YC.js.map} +0 -0
  107. /package/dist/{factory-Y3ZH5SXY.js.map → factory-BQAVRQGT.js.map} +0 -0
  108. /package/dist/{improvement-review-SRIDB3XF.js.map → improvement-review-J6TNYY37.js.map} +0 -0
  109. /package/dist/{init-opencode-FZY5PH7I.js.map → init-opencode-EY7LKRNG.js.map} +0 -0
  110. /package/dist/{issue-triage-4BCWSTD6.js.map → issue-triage-SVM7E5KL.js.map} +0 -0
  111. /package/dist/{pr-reviewer-helpers-WZH6KPEW.js.map → pr-reviewer-helpers-545VXQVR.js.map} +0 -0
  112. /package/dist/{registry-command-SVDXUNIR.js.map → registry-command-7YZHWM5F.js.map} +0 -0
  113. /package/dist/{repo-security-plan-6KQVPGFQ.js.map → repo-security-plan-F32BFXAV.js.map} +0 -0
  114. /package/dist/{research-helpers-synthesize-74CBM5N3.js.map → research-helpers-synthesize-DQXRIADN.js.map} +0 -0
  115. /package/dist/{routing-memory-AKPBEY7V.js.map → routing-memory-MUUFFXDI.js.map} +0 -0
  116. /package/dist/{session-memory-ZECEYOSG.js.map → session-memory-OPYU2ZX3.js.map} +0 -0
  117. /package/dist/{setup-command-MRPKW5A6.js.map → setup-command-XDH7XGA5.js.map} +0 -0
  118. /package/dist/{setup-config-F3WQWJHA.js.map → setup-config-EUBS3LFF.js.map} +0 -0
  119. /package/dist/{setup-custom-api-SKD5MTOT.js.map → setup-custom-api-XT23L2NX.js.map} +0 -0
  120. /package/dist/{tool-memory-PMLDOLWI.js.map → tool-memory-HEHBDQDP.js.map} +0 -0
  121. /package/dist/{unified-registry-SGS73VVW.js.map → unified-registry-FYD2XQ43.js.map} +0 -0
  122. /package/dist/{weather-report-4N4JYOM5.js.map → weather-report-ZG3JCRLK.js.map} +0 -0
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-SNJNRDKZ.js";
4
4
  import {
5
5
  createLogger
6
- } from "./chunk-RWMQ3YJW.js";
6
+ } from "./chunk-65WAPYJ6.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-2PIBUQ2S.js.map
65
+ //# sourceMappingURL=child-mcp-config-XIZWCWS3.js.map
@@ -12,11 +12,11 @@ import {
12
12
  gateWithReputation,
13
13
  resolveReputationGatingMode,
14
14
  sanitizeInput
15
- } from "./chunk-6GPA42ZT.js";
15
+ } from "./chunk-7GA5V4L2.js";
16
16
  import {
17
17
  createLogger,
18
18
  getTimeProvider
19
- } from "./chunk-RWMQ3YJW.js";
19
+ } from "./chunk-65WAPYJ6.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-L3KUH66L.js.map
294
+ //# sourceMappingURL=chunk-2CN7DD4C.js.map
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  GitHubProvider,
3
3
  ScmError
4
- } from "./chunk-DBPXOHI5.js";
4
+ } from "./chunk-EZXYOWCX.js";
5
5
  import {
6
6
  ROLE_DEFAULT_TRUST,
7
7
  ReputationCache,
@@ -11,17 +11,17 @@ import {
11
11
  gateWithReputation,
12
12
  resolveReputationGatingMode,
13
13
  sanitizeInput
14
- } from "./chunk-6GPA42ZT.js";
14
+ } from "./chunk-7GA5V4L2.js";
15
15
  import {
16
16
  emitPolicyEvent
17
- } from "./chunk-KDLFUQSW.js";
17
+ } from "./chunk-3ZGYVPN3.js";
18
18
  import {
19
19
  CLI_SUBPROCESS_TIMEOUTS,
20
20
  createLogger,
21
21
  err,
22
22
  getTimeProvider,
23
23
  ok
24
- } from "./chunk-RWMQ3YJW.js";
24
+ } from "./chunk-65WAPYJ6.js";
25
25
 
26
26
  // src/security/trust-classifier.ts
27
27
  function mapAuthorAssociation(association) {
@@ -1219,4 +1219,4 @@ export {
1219
1219
  IssueTriage,
1220
1220
  createIssueTriage
1221
1221
  };
1222
- //# sourceMappingURL=chunk-SBI7WTXE.js.map
1222
+ //# sourceMappingURL=chunk-3MUJKEAQ.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  getTimeProvider
3
- } from "./chunk-RWMQ3YJW.js";
3
+ } from "./chunk-65WAPYJ6.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-KDLFUQSW.js.map
208
+ //# sourceMappingURL=chunk-3ZGYVPN3.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-SGS73VVW.js");
2626
+ const { resetGlobalRegistry } = await import("./unified-registry-FYD2XQ43.js");
2627
2627
  resetGlobalRegistry();
2628
2628
  return globalRegistry;
2629
2629
  }
@@ -14835,7 +14835,7 @@ var CompositeRouter = class _CompositeRouter {
14835
14835
  */
14836
14836
  async consultUnifiedContext(task) {
14837
14837
  try {
14838
- const { getContextForTask, inferTaskCategory } = await import("./context-retriever-LICMS4FY.js");
14838
+ const { getContextForTask, inferTaskCategory } = await import("./context-retriever-BJL3MZTY.js");
14839
14839
  const ctx = await getContextForTask({
14840
14840
  task: task.content,
14841
14841
  category: inferTaskCategory(task.content),
@@ -16424,4 +16424,4 @@ export {
16424
16424
  AgentCapability,
16425
16425
  OrchestratorError
16426
16426
  };
16427
- //# sourceMappingURL=chunk-RWMQ3YJW.js.map
16427
+ //# sourceMappingURL=chunk-65WAPYJ6.js.map
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  createAutoAdapter
3
- } from "./chunk-AL33VIXL.js";
3
+ } from "./chunk-PBD5LS4B.js";
4
4
  import {
5
5
  mapModelErrorToCategory
6
- } from "./chunk-JDDNQU3Z.js";
6
+ } from "./chunk-R43Y6TXS.js";
7
7
  import {
8
8
  CLI_NAMES,
9
9
  CircularBuffer,
@@ -21,7 +21,7 @@ import {
21
21
  ok,
22
22
  recordRateLimitEvent,
23
23
  toRateLimitError
24
- } from "./chunk-RWMQ3YJW.js";
24
+ } from "./chunk-65WAPYJ6.js";
25
25
 
26
26
  // src/agents/collaboration/event-bus-helpers.ts
27
27
  import { randomUUID } from "crypto";
@@ -833,4 +833,4 @@ export {
833
833
  getGlobalRegistry,
834
834
  resetGlobalRegistry
835
835
  };
836
- //# sourceMappingURL=chunk-JD72GJWG.js.map
836
+ //# sourceMappingURL=chunk-6YEAUZBF.js.map
@@ -2,7 +2,7 @@ import {
2
2
  CACHE_TIMEOUTS,
3
3
  createLogger,
4
4
  getTimeProvider
5
- } from "./chunk-RWMQ3YJW.js";
5
+ } from "./chunk-65WAPYJ6.js";
6
6
 
7
7
  // src/security/trust-types.ts
8
8
  import { z } from "zod";
@@ -560,4 +560,4 @@ export {
560
560
  resolveReputationGatingMode,
561
561
  gateWithReputation
562
562
  };
563
- //# sourceMappingURL=chunk-6GPA42ZT.js.map
563
+ //# sourceMappingURL=chunk-7GA5V4L2.js.map
@@ -11,7 +11,7 @@ import {
11
11
  createGetRetryConfig,
12
12
  createGetTimeout,
13
13
  createGetToolRateLimit
14
- } from "./chunk-RWMQ3YJW.js";
14
+ } from "./chunk-65WAPYJ6.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-S75ALOWG.js.map
233
+ //# sourceMappingURL=chunk-7PBXPMKW.js.map
@@ -8,7 +8,7 @@ import {
8
8
  getErrorMessage,
9
9
  ok,
10
10
  parseBoolEnv
11
- } from "./chunk-RWMQ3YJW.js";
11
+ } from "./chunk-65WAPYJ6.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-7X4D7ANX.js.map
149
+ //# sourceMappingURL=chunk-ACWU2RRK.js.map
@@ -1,17 +1,17 @@
1
1
  import {
2
2
  computeCostDetail,
3
3
  recordUsageEvent
4
- } from "./chunk-MUTPTBWG.js";
4
+ } from "./chunk-AQBM5CAX.js";
5
5
  import {
6
6
  BaseAdapter,
7
7
  createStream,
8
8
  planOptionalParams,
9
9
  requireApiKey,
10
10
  validateApiKeyPresence
11
- } from "./chunk-I7NYAUZP.js";
11
+ } from "./chunk-OJCIP6W5.js";
12
12
  import {
13
13
  assertCustomApiHostResolvesPublic
14
- } from "./chunk-U7RX45LD.js";
14
+ } from "./chunk-KIE4R424.js";
15
15
  import {
16
16
  ConfigError,
17
17
  ModelCapability,
@@ -22,7 +22,7 @@ import {
22
22
  getTimeProvider,
23
23
  getTokenEstimator,
24
24
  ok
25
- } from "./chunk-RWMQ3YJW.js";
25
+ } from "./chunk-65WAPYJ6.js";
26
26
 
27
27
  // src/adapters/openai-types.ts
28
28
  var OPENAI_MODELS = {
@@ -831,4 +831,4 @@ export {
831
831
  discoverModels,
832
832
  buildOpenAICompatAdapters
833
833
  };
834
- //# sourceMappingURL=chunk-Y2RZWSBO.js.map
834
+ //# sourceMappingURL=chunk-AENOTEID.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  getDefaultRegistry
3
- } from "./chunk-RWMQ3YJW.js";
3
+ } from "./chunk-65WAPYJ6.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-MUTPTBWG.js.map
131
+ //# sourceMappingURL=chunk-AQBM5CAX.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  readOpenAICompatEnv
3
- } from "./chunk-Y2RZWSBO.js";
3
+ } from "./chunk-AENOTEID.js";
4
4
  import {
5
5
  allOf
6
6
  } from "./chunk-OQB3XC5O.js";
@@ -13,10 +13,10 @@ import {
13
13
  import {
14
14
  createAllAdapters,
15
15
  probeCli
16
- } from "./chunk-AL33VIXL.js";
16
+ } from "./chunk-PBD5LS4B.js";
17
17
  import {
18
18
  DEFAULTS
19
- } from "./chunk-S75ALOWG.js";
19
+ } from "./chunk-7PBXPMKW.js";
20
20
  import {
21
21
  getNexusTmpDir
22
22
  } from "./chunk-SNJNRDKZ.js";
@@ -36,7 +36,7 @@ import {
36
36
  ok,
37
37
  symbols,
38
38
  writeLine
39
- } from "./chunk-RWMQ3YJW.js";
39
+ } from "./chunk-65WAPYJ6.js";
40
40
  import {
41
41
  getLearningDir,
42
42
  getOutcomesFile,
@@ -52,7 +52,7 @@ import {
52
52
  } from "./chunk-OQLFRJCW.js";
53
53
 
54
54
  // src/version.ts
55
- var VERSION = true ? "3.8.5" : "dev";
55
+ var VERSION = true ? "3.8.7" : "dev";
56
56
 
57
57
  // src/config/schemas-core.ts
58
58
  import { z } from "zod";
@@ -2324,7 +2324,7 @@ async function runDoctorFix(result) {
2324
2324
  writeLine2("\u2500".repeat(40));
2325
2325
  let fixCount = 0;
2326
2326
  if (!result.dataDirectory.rootExists || result.dataDirectory.subdirectories.some((d) => !d.exists || !d.writable)) {
2327
- const { runSetup } = await import("./setup-command-MRPKW5A6.js");
2327
+ const { runSetup } = await import("./setup-command-XDH7XGA5.js");
2328
2328
  const setupResult = runSetup({
2329
2329
  skipMcp: true,
2330
2330
  skipRules: true,
@@ -2338,7 +2338,7 @@ async function runDoctorFix(result) {
2338
2338
  }
2339
2339
  }
2340
2340
  if (!result.configFile.found) {
2341
- const { runConfigInitSync } = await import("./setup-config-F3WQWJHA.js");
2341
+ const { runConfigInitSync } = await import("./setup-config-EUBS3LFF.js");
2342
2342
  const configResult = runConfigInitSync(process.cwd(), false, false);
2343
2343
  if (configResult.success && configResult.created) {
2344
2344
  writeLine2(`\u2713 Generated config: ${configResult.path}`);
@@ -2437,4 +2437,4 @@ export {
2437
2437
  startStdioServer,
2438
2438
  closeServer
2439
2439
  };
2440
- //# sourceMappingURL=chunk-IWVAUE6L.js.map
2440
+ //# sourceMappingURL=chunk-CVEW6IOK.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  emitClawGuardViolation
3
- } from "./chunk-KDLFUQSW.js";
3
+ } from "./chunk-3ZGYVPN3.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-RWMQ3YJW.js";
19
+ } from "./chunk-65WAPYJ6.js";
20
20
  import {
21
21
  getNexusDataDir
22
22
  } from "./chunk-OQLFRJCW.js";
@@ -2028,4 +2028,4 @@ export {
2028
2028
  VOTING_THRESHOLDS,
2029
2029
  ConsensusMetricsSchema
2030
2030
  };
2031
- //# sourceMappingURL=chunk-DHXLS4KC.js.map
2031
+ //# sourceMappingURL=chunk-DSP6PMDI.js.map
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  resolveCliSlot
3
- } from "./chunk-7WPB57DI.js";
3
+ } from "./chunk-Q2UUVPVY.js";
4
4
  import {
5
5
  createLogger,
6
6
  getTimeProvider,
7
7
  isRateLimitText
8
- } from "./chunk-RWMQ3YJW.js";
8
+ } from "./chunk-65WAPYJ6.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-2PIBUQ2S.js");
24
+ const { generateMcpConfig } = await import("./child-mcp-config-XIZWCWS3.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-DTR6AHD7.js");
97
- const { createCompositeRouter } = await import("./composite-router-BKWI2DWU.js");
96
+ const { createAllAdapters } = await import("./factory-663E66YC.js");
97
+ const { createCompositeRouter } = await import("./composite-router-AU7QAE3Z.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-CN3TTRGA.js");
105
+ const { createCliCircuitBreakerIntegration } = await import("./cli-circuit-breaker-M5JY42QE.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-UFG2PWHA.js.map
216
+ //# sourceMappingURL=chunk-EGUKCGGM.js.map
@@ -4,7 +4,7 @@ import {
4
4
  err,
5
5
  getErrorMessage,
6
6
  ok
7
- } from "./chunk-RWMQ3YJW.js";
7
+ } from "./chunk-65WAPYJ6.js";
8
8
 
9
9
  // src/scm/types.ts
10
10
  var ScmError = class extends Error {
@@ -263,4 +263,4 @@ export {
263
263
  ScmError,
264
264
  GitHubProvider
265
265
  };
266
- //# sourceMappingURL=chunk-DBPXOHI5.js.map
266
+ //# sourceMappingURL=chunk-EZXYOWCX.js.map
@@ -5,7 +5,7 @@ import {
5
5
  } from "./chunk-6T3EPABN.js";
6
6
  import {
7
7
  SessionMemory
8
- } from "./chunk-VTYYI2W3.js";
8
+ } from "./chunk-MUBJ4ROO.js";
9
9
  import {
10
10
  StatsOnlyAdapter,
11
11
  ensureSharedMemoryRegistry
@@ -15,7 +15,7 @@ import {
15
15
  } from "./chunk-KSQSWEFH.js";
16
16
  import {
17
17
  generateId
18
- } from "./chunk-A56RXUI6.js";
18
+ } from "./chunk-NZCBB4SP.js";
19
19
  import {
20
20
  ErrorCode,
21
21
  NexusError,
@@ -28,7 +28,7 @@ import {
28
28
  getTimeProvider,
29
29
  ok,
30
30
  setSharedMobiMemDbPathResolver
31
- } from "./chunk-RWMQ3YJW.js";
31
+ } from "./chunk-65WAPYJ6.js";
32
32
  import {
33
33
  nexusDataPath
34
34
  } from "./chunk-OQLFRJCW.js";
@@ -5552,4 +5552,4 @@ export {
5552
5552
  reinitializeMemoryBackends,
5553
5553
  ToolMemoryManager
5554
5554
  };
5555
- //# sourceMappingURL=chunk-NYEZJYLW.js.map
5555
+ //# sourceMappingURL=chunk-FZ5YJSM6.js.map
@@ -3,7 +3,7 @@ import {
3
3
  createLogger,
4
4
  err,
5
5
  ok
6
- } from "./chunk-RWMQ3YJW.js";
6
+ } from "./chunk-65WAPYJ6.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-U7RX45LD.js.map
172
+ //# sourceMappingURL=chunk-KIE4R424.js.map
@@ -4,7 +4,7 @@ import {
4
4
  getErrorMessage,
5
5
  getTimeProvider,
6
6
  ok
7
- } from "./chunk-RWMQ3YJW.js";
7
+ } from "./chunk-65WAPYJ6.js";
8
8
 
9
9
  // src/context/session-memory.ts
10
10
  import * as fs from "fs";
@@ -352,4 +352,4 @@ export {
352
352
  SessionMemory,
353
353
  createSessionMemory
354
354
  };
355
- //# sourceMappingURL=chunk-VTYYI2W3.js.map
355
+ //# sourceMappingURL=chunk-MUBJ4ROO.js.map
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  getRandomProvider,
3
3
  getTimeProvider
4
- } from "./chunk-RWMQ3YJW.js";
4
+ } from "./chunk-65WAPYJ6.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-A56RXUI6.js.map
27
+ //# sourceMappingURL=chunk-NZCBB4SP.js.map
@@ -13,7 +13,7 @@ import {
13
13
  lookupInTreeCapability,
14
14
  ok,
15
15
  resolveRetryAfterMs
16
- } from "./chunk-RWMQ3YJW.js";
16
+ } from "./chunk-65WAPYJ6.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-I7NYAUZP.js.map
837
+ //# sourceMappingURL=chunk-OJCIP6W5.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  getErrorMessage
3
- } from "./chunk-RWMQ3YJW.js";
3
+ } from "./chunk-65WAPYJ6.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-JDVNIRG5.js.map
80
+ //# sourceMappingURL=chunk-OM5VAEYP.js.map
@@ -1,14 +1,14 @@
1
1
  import {
2
2
  GitHubProvider,
3
3
  ScmError
4
- } from "./chunk-DBPXOHI5.js";
4
+ } from "./chunk-EZXYOWCX.js";
5
5
  import {
6
6
  resolveToken
7
- } from "./chunk-HOCCD7UE.js";
7
+ } from "./chunk-XYVYKPIB.js";
8
8
  import {
9
9
  err,
10
10
  ok
11
- } from "./chunk-RWMQ3YJW.js";
11
+ } from "./chunk-65WAPYJ6.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-TO32OEQJ.js.map
44
+ //# sourceMappingURL=chunk-P5WOAEDY.js.map
@@ -5,34 +5,34 @@ import {
5
5
  planOptionalParams,
6
6
  requireApiKey,
7
7
  validateApiKeyPresence
8
- } from "./chunk-I7NYAUZP.js";
8
+ } from "./chunk-OJCIP6W5.js";
9
9
  import {
10
10
  CUSTOM_API_DEFAULT_MODEL
11
- } from "./chunk-S75ALOWG.js";
11
+ } from "./chunk-7PBXPMKW.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-U7RX45LD.js";
17
+ } from "./chunk-KIE4R424.js";
18
18
  import {
19
19
  nexusMkdtempSync
20
20
  } from "./chunk-SNJNRDKZ.js";
21
21
  import {
22
22
  getAvailabilityCache
23
- } from "./chunk-7WPB57DI.js";
23
+ } from "./chunk-Q2UUVPVY.js";
24
24
  import {
25
25
  extractSystemPrompt
26
26
  } from "./chunk-QZUG667L.js";
27
27
  import {
28
28
  generateHyphenId
29
- } from "./chunk-A56RXUI6.js";
29
+ } from "./chunk-NZCBB4SP.js";
30
30
  import {
31
31
  CliCircuitBreaker,
32
32
  DEFAULT_CIRCUIT_BREAKER_CONFIG,
33
33
  getCliCircuitBreakerSnapshot,
34
34
  getDefaultCliCircuitBreakerRegistry
35
- } from "./chunk-JDDNQU3Z.js";
35
+ } from "./chunk-R43Y6TXS.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-RWMQ3YJW.js";
75
+ } from "./chunk-65WAPYJ6.js";
76
76
 
77
77
  // src/cli-adapters/cli-to-model-adapter.ts
78
78
  var CliToModelAdapter = class {
@@ -912,10 +912,14 @@ var ClaudeAdapter = class extends BaseAdapter {
912
912
  */
913
913
  mapResponse(response, surfaceRespondTool = false, dropped = []) {
914
914
  const content = surfaceRespondTool ? mapResponseWithRespondTool(response.content) : response.content.map(mapContentBlock);
915
+ const cachedInputTokens = response.usage.cache_read_input_tokens;
916
+ const cacheCreationInputTokens = response.usage.cache_creation_input_tokens;
915
917
  const usage = {
916
918
  inputTokens: response.usage.input_tokens,
917
919
  outputTokens: response.usage.output_tokens,
918
- totalTokens: response.usage.input_tokens + response.usage.output_tokens
920
+ totalTokens: response.usage.input_tokens + response.usage.output_tokens,
921
+ ...cachedInputTokens !== null && { cachedInputTokens },
922
+ ...cacheCreationInputTokens !== null && { cacheCreationInputTokens }
919
923
  };
920
924
  return {
921
925
  content,
@@ -4866,4 +4870,4 @@ export {
4866
4870
  SdkAdapter,
4867
4871
  createAutoAdapter
4868
4872
  };
4869
- //# sourceMappingURL=chunk-AL33VIXL.js.map
4873
+ //# sourceMappingURL=chunk-PBD5LS4B.js.map