nexus-agents 8.22.2 → 8.22.3

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 (130) hide show
  1. package/dist/{ast-rule-runner-UMOL7AO3.js → ast-rule-runner-G6IOGUCV.js} +3 -3
  2. package/dist/{child-mcp-config-7DNOX3U3.js → child-mcp-config-GDTLUXGR.js} +2 -2
  3. package/dist/{chunk-XS423Y73.js → chunk-22EEMQUS.js} +2 -2
  4. package/dist/{chunk-DW3RU6GC.js → chunk-3VBOYUPH.js} +2 -2
  5. package/dist/{chunk-P3WRF3A7.js → chunk-4E6T32D3.js} +2 -2
  6. package/dist/{chunk-JNCOVP77.js → chunk-4O7NQB46.js} +4 -4
  7. package/dist/{chunk-6IOI5SK3.js → chunk-4XBYQAED.js} +2 -2
  8. package/dist/{chunk-NG7T6DN5.js → chunk-5O5FKZUU.js} +3 -3
  9. package/dist/{chunk-OPWJJXZU.js → chunk-7LFNF4PD.js} +3 -3
  10. package/dist/{chunk-BAWRHK4W.js → chunk-BTZ7BKID.js} +2 -2
  11. package/dist/{chunk-R2CDVI4E.js → chunk-C2EZXKVE.js} +2 -2
  12. package/dist/{chunk-OFLMRACR.js → chunk-CHP7WNJS.js} +2 -2
  13. package/dist/{chunk-RZUYKWEY.js → chunk-CN3VAMQD.js} +7 -7
  14. package/dist/{chunk-2IJOZA75.js → chunk-GEKIA6CI.js} +2 -2
  15. package/dist/{chunk-CY6KGPAP.js → chunk-JC3O7WTI.js} +4 -4
  16. package/dist/{chunk-3J5WKA2S.js → chunk-JQS2A5MW.js} +4 -4
  17. package/dist/{chunk-ZWI54SPH.js → chunk-KAWGEKXW.js} +2 -2
  18. package/dist/{chunk-HZ3R63IV.js → chunk-KIAMP743.js} +3 -3
  19. package/dist/{chunk-GHBR6ZG3.js → chunk-M4DC2HYF.js} +4 -4
  20. package/dist/{chunk-2RUDLEIT.js → chunk-MGG466HO.js} +12 -14
  21. package/dist/chunk-MGG466HO.js.map +1 -0
  22. package/dist/{chunk-SX5EZNPS.js → chunk-NDWIQFXW.js} +36 -36
  23. package/dist/{chunk-QWYY5DD6.js → chunk-OUOBB5XR.js} +5 -5
  24. package/dist/{chunk-BU5LR2JJ.js → chunk-OYTRYITB.js} +2 -2
  25. package/dist/{chunk-FCIAKQNN.js → chunk-OZD3IGK6.js} +2 -2
  26. package/dist/{chunk-3R5TFUS5.js → chunk-PMO7TY2K.js} +5 -5
  27. package/dist/{chunk-HSOZPMQN.js → chunk-Q5J7PV3G.js} +2 -2
  28. package/dist/{chunk-P4QYPDTB.js → chunk-QEZGPM4S.js} +2 -2
  29. package/dist/{chunk-NNM6ZIXQ.js → chunk-QOKSFHWH.js} +3 -3
  30. package/dist/{chunk-BKE522YB.js → chunk-TB2USTOO.js} +9 -9
  31. package/dist/{chunk-52QVQASD.js → chunk-TPBPFBO3.js} +16 -8
  32. package/dist/{chunk-52QVQASD.js.map → chunk-TPBPFBO3.js.map} +1 -1
  33. package/dist/{chunk-HILA36W2.js → chunk-UOKUUBJP.js} +2 -2
  34. package/dist/{chunk-V2RNDE4R.js → chunk-UWE6AN65.js} +2 -2
  35. package/dist/{chunk-KCDE6VIZ.js → chunk-V52KBX67.js} +6 -6
  36. package/dist/{chunk-SRC2TLRU.js → chunk-W5WSXEAB.js} +2 -2
  37. package/dist/{chunk-3MSPZLGF.js → chunk-YOT4GWJV.js} +2 -2
  38. package/dist/chunk-Z7ORWDXO.js +14 -0
  39. package/dist/chunk-Z7ORWDXO.js.map +1 -0
  40. package/dist/{cli-circuit-breaker-CWQPO6SJ.js → cli-circuit-breaker-QV5J45LJ.js} +3 -3
  41. package/dist/cli.js +163 -114
  42. package/dist/cli.js.map +1 -1
  43. package/dist/{composite-router-EVIISDZX.js → composite-router-5AAXEJI3.js} +2 -2
  44. package/dist/{consensus-vote-4Q4ZT5U7.js → consensus-vote-NM44VYAZ.js} +17 -17
  45. package/dist/{context-retriever-7KBTMNCV.js → context-retriever-GB4EC3XI.js} +8 -8
  46. package/dist/{doctor-deep-WFHCOZJY.js → doctor-deep-FDASNUC6.js} +3 -3
  47. package/dist/{doctor-live-LR2TJT45.js → doctor-live-M2A46PS3.js} +9 -9
  48. package/dist/{expert-bridge-KWVJB63Y.js → expert-bridge-M6OU7IYP.js} +4 -4
  49. package/dist/{factory-XOSRNGBJ.js → factory-NR2H2QR4.js} +5 -5
  50. package/dist/{factory-MVWNG55G.js → factory-OPVHIZ3G.js} +9 -9
  51. package/dist/{improvement-review-F7CCW4HQ.js → improvement-review-BTH44AEV.js} +6 -6
  52. package/dist/index.d.ts +1 -1
  53. package/dist/index.js +31 -31
  54. package/dist/{init-opencode-EEOVDBRF.js → init-opencode-2PVLMIJK.js} +6 -6
  55. package/dist/issue-triage-FCFX56WQ.js +17 -0
  56. package/dist/{pr-reviewer-helpers-2ZSPMIG4.js → pr-reviewer-helpers-3VQNHIXI.js} +4 -4
  57. package/dist/{registry-command-SD3YGORZ.js → registry-command-GAL4MBUA.js} +2 -2
  58. package/dist/{repo-security-plan-Z3EHJNZA.js → repo-security-plan-ZUZJEUIS.js} +3 -3
  59. package/dist/{research-helpers-synthesize-KIZIELHL.js → research-helpers-synthesize-Z2PJPIJD.js} +4 -4
  60. package/dist/{routing-memory-RRMEGPQB.js → routing-memory-N7YBCDAV.js} +2 -2
  61. package/dist/{session-memory-MMRSHXSO.js → session-memory-PRSYLZO7.js} +3 -3
  62. package/dist/{setup-config-54QMOSKC.js → setup-config-KF2VUAFU.js} +3 -3
  63. package/dist/{setup-custom-api-7CCRA6AP.js → setup-custom-api-T47OPCDE.js} +4 -4
  64. package/dist/setup-data-dir-2LQSQCYM.js +29 -0
  65. package/dist/{tool-memory-YV64LYJ3.js → tool-memory-CLV7MXC4.js} +5 -5
  66. package/dist/{unified-registry-DRKRTGHZ.js → unified-registry-33QL65WE.js} +10 -10
  67. package/dist/{weather-report-PJBGR7WX.js → weather-report-VFWJVLP3.js} +2 -2
  68. package/package.json +1 -1
  69. package/dist/chunk-2RUDLEIT.js.map +0 -1
  70. package/dist/chunk-X76M44I2.js +0 -7
  71. package/dist/chunk-X76M44I2.js.map +0 -1
  72. package/dist/issue-triage-WVSJEHYI.js +0 -17
  73. package/dist/setup-data-dir-6OR7TLY6.js +0 -29
  74. /package/dist/{ast-rule-runner-UMOL7AO3.js.map → ast-rule-runner-G6IOGUCV.js.map} +0 -0
  75. /package/dist/{child-mcp-config-7DNOX3U3.js.map → child-mcp-config-GDTLUXGR.js.map} +0 -0
  76. /package/dist/{chunk-XS423Y73.js.map → chunk-22EEMQUS.js.map} +0 -0
  77. /package/dist/{chunk-DW3RU6GC.js.map → chunk-3VBOYUPH.js.map} +0 -0
  78. /package/dist/{chunk-P3WRF3A7.js.map → chunk-4E6T32D3.js.map} +0 -0
  79. /package/dist/{chunk-JNCOVP77.js.map → chunk-4O7NQB46.js.map} +0 -0
  80. /package/dist/{chunk-6IOI5SK3.js.map → chunk-4XBYQAED.js.map} +0 -0
  81. /package/dist/{chunk-NG7T6DN5.js.map → chunk-5O5FKZUU.js.map} +0 -0
  82. /package/dist/{chunk-OPWJJXZU.js.map → chunk-7LFNF4PD.js.map} +0 -0
  83. /package/dist/{chunk-BAWRHK4W.js.map → chunk-BTZ7BKID.js.map} +0 -0
  84. /package/dist/{chunk-R2CDVI4E.js.map → chunk-C2EZXKVE.js.map} +0 -0
  85. /package/dist/{chunk-OFLMRACR.js.map → chunk-CHP7WNJS.js.map} +0 -0
  86. /package/dist/{chunk-RZUYKWEY.js.map → chunk-CN3VAMQD.js.map} +0 -0
  87. /package/dist/{chunk-2IJOZA75.js.map → chunk-GEKIA6CI.js.map} +0 -0
  88. /package/dist/{chunk-CY6KGPAP.js.map → chunk-JC3O7WTI.js.map} +0 -0
  89. /package/dist/{chunk-3J5WKA2S.js.map → chunk-JQS2A5MW.js.map} +0 -0
  90. /package/dist/{chunk-ZWI54SPH.js.map → chunk-KAWGEKXW.js.map} +0 -0
  91. /package/dist/{chunk-HZ3R63IV.js.map → chunk-KIAMP743.js.map} +0 -0
  92. /package/dist/{chunk-GHBR6ZG3.js.map → chunk-M4DC2HYF.js.map} +0 -0
  93. /package/dist/{chunk-SX5EZNPS.js.map → chunk-NDWIQFXW.js.map} +0 -0
  94. /package/dist/{chunk-QWYY5DD6.js.map → chunk-OUOBB5XR.js.map} +0 -0
  95. /package/dist/{chunk-BU5LR2JJ.js.map → chunk-OYTRYITB.js.map} +0 -0
  96. /package/dist/{chunk-FCIAKQNN.js.map → chunk-OZD3IGK6.js.map} +0 -0
  97. /package/dist/{chunk-3R5TFUS5.js.map → chunk-PMO7TY2K.js.map} +0 -0
  98. /package/dist/{chunk-HSOZPMQN.js.map → chunk-Q5J7PV3G.js.map} +0 -0
  99. /package/dist/{chunk-P4QYPDTB.js.map → chunk-QEZGPM4S.js.map} +0 -0
  100. /package/dist/{chunk-NNM6ZIXQ.js.map → chunk-QOKSFHWH.js.map} +0 -0
  101. /package/dist/{chunk-BKE522YB.js.map → chunk-TB2USTOO.js.map} +0 -0
  102. /package/dist/{chunk-HILA36W2.js.map → chunk-UOKUUBJP.js.map} +0 -0
  103. /package/dist/{chunk-V2RNDE4R.js.map → chunk-UWE6AN65.js.map} +0 -0
  104. /package/dist/{chunk-KCDE6VIZ.js.map → chunk-V52KBX67.js.map} +0 -0
  105. /package/dist/{chunk-SRC2TLRU.js.map → chunk-W5WSXEAB.js.map} +0 -0
  106. /package/dist/{chunk-3MSPZLGF.js.map → chunk-YOT4GWJV.js.map} +0 -0
  107. /package/dist/{cli-circuit-breaker-CWQPO6SJ.js.map → cli-circuit-breaker-QV5J45LJ.js.map} +0 -0
  108. /package/dist/{composite-router-EVIISDZX.js.map → composite-router-5AAXEJI3.js.map} +0 -0
  109. /package/dist/{consensus-vote-4Q4ZT5U7.js.map → consensus-vote-NM44VYAZ.js.map} +0 -0
  110. /package/dist/{context-retriever-7KBTMNCV.js.map → context-retriever-GB4EC3XI.js.map} +0 -0
  111. /package/dist/{doctor-deep-WFHCOZJY.js.map → doctor-deep-FDASNUC6.js.map} +0 -0
  112. /package/dist/{doctor-live-LR2TJT45.js.map → doctor-live-M2A46PS3.js.map} +0 -0
  113. /package/dist/{expert-bridge-KWVJB63Y.js.map → expert-bridge-M6OU7IYP.js.map} +0 -0
  114. /package/dist/{factory-MVWNG55G.js.map → factory-NR2H2QR4.js.map} +0 -0
  115. /package/dist/{factory-XOSRNGBJ.js.map → factory-OPVHIZ3G.js.map} +0 -0
  116. /package/dist/{improvement-review-F7CCW4HQ.js.map → improvement-review-BTH44AEV.js.map} +0 -0
  117. /package/dist/{init-opencode-EEOVDBRF.js.map → init-opencode-2PVLMIJK.js.map} +0 -0
  118. /package/dist/{issue-triage-WVSJEHYI.js.map → issue-triage-FCFX56WQ.js.map} +0 -0
  119. /package/dist/{pr-reviewer-helpers-2ZSPMIG4.js.map → pr-reviewer-helpers-3VQNHIXI.js.map} +0 -0
  120. /package/dist/{registry-command-SD3YGORZ.js.map → registry-command-GAL4MBUA.js.map} +0 -0
  121. /package/dist/{repo-security-plan-Z3EHJNZA.js.map → repo-security-plan-ZUZJEUIS.js.map} +0 -0
  122. /package/dist/{research-helpers-synthesize-KIZIELHL.js.map → research-helpers-synthesize-Z2PJPIJD.js.map} +0 -0
  123. /package/dist/{routing-memory-RRMEGPQB.js.map → routing-memory-N7YBCDAV.js.map} +0 -0
  124. /package/dist/{session-memory-MMRSHXSO.js.map → session-memory-PRSYLZO7.js.map} +0 -0
  125. /package/dist/{setup-config-54QMOSKC.js.map → setup-config-KF2VUAFU.js.map} +0 -0
  126. /package/dist/{setup-custom-api-7CCRA6AP.js.map → setup-custom-api-T47OPCDE.js.map} +0 -0
  127. /package/dist/{setup-data-dir-6OR7TLY6.js.map → setup-data-dir-2LQSQCYM.js.map} +0 -0
  128. /package/dist/{tool-memory-YV64LYJ3.js.map → tool-memory-CLV7MXC4.js.map} +0 -0
  129. /package/dist/{unified-registry-DRKRTGHZ.js.map → unified-registry-33QL65WE.js.map} +0 -0
  130. /package/dist/{weather-report-PJBGR7WX.js.map → weather-report-VFWJVLP3.js.map} +0 -0
@@ -8,7 +8,7 @@ import {
8
8
  getTimeProvider,
9
9
  isRateLimitText,
10
10
  ok
11
- } from "./chunk-NNM6ZIXQ.js";
11
+ } from "./chunk-QOKSFHWH.js";
12
12
 
13
13
  // src/cli-adapters/circuit-breaker-types.ts
14
14
  var CircuitErrorCode = {
@@ -541,4 +541,4 @@ export {
541
541
  CliCircuitBreakerIntegration,
542
542
  createCliCircuitBreakerIntegration
543
543
  };
544
- //# sourceMappingURL=chunk-FCIAKQNN.js.map
544
+ //# sourceMappingURL=chunk-OZD3IGK6.js.map
@@ -5,13 +5,13 @@ import {
5
5
  loadTechniquesRegistry,
6
6
  resolveInsideRoot,
7
7
  savePapersRegistry
8
- } from "./chunk-R2CDVI4E.js";
8
+ } from "./chunk-C2EZXKVE.js";
9
9
  import {
10
10
  resolveToken
11
- } from "./chunk-HILA36W2.js";
11
+ } from "./chunk-UOKUUBJP.js";
12
12
  import {
13
13
  getToolMemory
14
- } from "./chunk-CY6KGPAP.js";
14
+ } from "./chunk-JC3O7WTI.js";
15
15
  import {
16
16
  capitalizeWords,
17
17
  tokenizeFiltered,
@@ -40,7 +40,7 @@ import {
40
40
  ok,
41
41
  registerPersistentDistillerFactory,
42
42
  sigmoidConfidence
43
- } from "./chunk-NNM6ZIXQ.js";
43
+ } from "./chunk-QOKSFHWH.js";
44
44
  import {
45
45
  ensureLearningDir,
46
46
  getRulesFile
@@ -4215,4 +4215,4 @@ export {
4215
4215
  DEFAULT_CONTEXT_BUDGET_TOKENS,
4216
4216
  getContextPromptPrefix
4217
4217
  };
4218
- //# sourceMappingURL=chunk-3R5TFUS5.js.map
4218
+ //# sourceMappingURL=chunk-PMO7TY2K.js.map
@@ -3,7 +3,7 @@ import {
3
3
  createLogger,
4
4
  err,
5
5
  ok
6
- } from "./chunk-NNM6ZIXQ.js";
6
+ } from "./chunk-QOKSFHWH.js";
7
7
 
8
8
  // src/adapters/sdk/types.ts
9
9
  var PROVIDER_ENV_KEYS = {
@@ -260,4 +260,4 @@ export {
260
260
  validateCustomApiBaseUrl,
261
261
  assertCustomApiHostResolvesPublic
262
262
  };
263
- //# sourceMappingURL=chunk-HSOZPMQN.js.map
263
+ //# sourceMappingURL=chunk-Q5J7PV3G.js.map
@@ -3,7 +3,7 @@ import {
3
3
  createLogger,
4
4
  getDefaultRegistry,
5
5
  roundToMicroUsd
6
- } from "./chunk-NNM6ZIXQ.js";
6
+ } from "./chunk-QOKSFHWH.js";
7
7
  import {
8
8
  getNexusDataDir
9
9
  } from "./chunk-J7QCZRVK.js";
@@ -196,4 +196,4 @@ export {
196
196
  loadUsageEvents,
197
197
  rollupByModel
198
198
  };
199
- //# sourceMappingURL=chunk-P4QYPDTB.js.map
199
+ //# sourceMappingURL=chunk-QEZGPM4S.js.map
@@ -2650,7 +2650,7 @@ function setDefaultRegistry(registry) {
2650
2650
  }
2651
2651
  async function reloadDefaultRegistry() {
2652
2652
  globalRegistry = buildDefaultRegistry();
2653
- const { resetGlobalRegistry } = await import("./unified-registry-DRKRTGHZ.js");
2653
+ const { resetGlobalRegistry } = await import("./unified-registry-33QL65WE.js");
2654
2654
  resetGlobalRegistry();
2655
2655
  return globalRegistry;
2656
2656
  }
@@ -15360,7 +15360,7 @@ var CompositeRouter = class _CompositeRouter {
15360
15360
  */
15361
15361
  async consultUnifiedContext(task) {
15362
15362
  try {
15363
- const { getContextForTask, inferTaskCategory } = await import("./context-retriever-7KBTMNCV.js");
15363
+ const { getContextForTask, inferTaskCategory } = await import("./context-retriever-GB4EC3XI.js");
15364
15364
  const ctx = await getContextForTask({
15365
15365
  task: task.content,
15366
15366
  category: inferTaskCategory(task.content),
@@ -17041,4 +17041,4 @@ export {
17041
17041
  AgentCapability,
17042
17042
  OrchestratorError
17043
17043
  };
17044
- //# sourceMappingURL=chunk-NNM6ZIXQ.js.map
17044
+ //# sourceMappingURL=chunk-QOKSFHWH.js.map
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  computeCostDetail,
3
3
  priceBasisOf
4
- } from "./chunk-P4QYPDTB.js";
4
+ } from "./chunk-QEZGPM4S.js";
5
5
  import {
6
6
  allOf
7
7
  } from "./chunk-OQB3XC5O.js";
@@ -23,25 +23,25 @@ import {
23
23
  toolSuccessStructured,
24
24
  withProgressHeartbeat,
25
25
  wrapToolWithTimeout
26
- } from "./chunk-GHBR6ZG3.js";
26
+ } from "./chunk-M4DC2HYF.js";
27
27
  import {
28
28
  VERSION
29
- } from "./chunk-X76M44I2.js";
29
+ } from "./chunk-Z7ORWDXO.js";
30
30
  import {
31
31
  assessPanelIndependence,
32
32
  countDistinctModels,
33
33
  createEvent,
34
34
  getGlobalRegistry
35
- } from "./chunk-JNCOVP77.js";
35
+ } from "./chunk-4O7NQB46.js";
36
36
  import {
37
37
  getToolMemory
38
- } from "./chunk-CY6KGPAP.js";
38
+ } from "./chunk-JC3O7WTI.js";
39
39
  import {
40
40
  authRemediation,
41
41
  delay,
42
42
  getAvailableClis,
43
43
  withTimeout
44
- } from "./chunk-52QVQASD.js";
44
+ } from "./chunk-TPBPFBO3.js";
45
45
  import {
46
46
  AgentError,
47
47
  CLI_NAMES,
@@ -69,7 +69,7 @@ import {
69
69
  registerPersistentOutcomeStoreFactory,
70
70
  resolveClassGuardMs,
71
71
  resolveVoteTimeout
72
- } from "./chunk-NNM6ZIXQ.js";
72
+ } from "./chunk-QOKSFHWH.js";
73
73
  import {
74
74
  ensureLearningDir,
75
75
  getOutcomesFile
@@ -6615,7 +6615,7 @@ function logPartialProposal(bounded, log) {
6615
6615
  }
6616
6616
  async function runContrarianCheck(proposal, log) {
6617
6617
  try {
6618
- const { executeExpert } = await import("./expert-bridge-KWVJB63Y.js");
6618
+ const { executeExpert } = await import("./expert-bridge-M6OU7IYP.js");
6619
6619
  const bounded = boundArtifactForReview(proposal, CONTRARIAN_PROPOSAL_BUDGET, "proposal");
6620
6620
  logPartialProposal(bounded, log);
6621
6621
  const result = await executeExpert("architecture", buildContrarianPrompt(bounded));
@@ -7205,4 +7205,4 @@ export {
7205
7205
  CONSENSUS_VOTE_TOOL_SCHEMA,
7206
7206
  registerConsensusVoteTool
7207
7207
  };
7208
- //# sourceMappingURL=chunk-BKE522YB.js.map
7208
+ //# sourceMappingURL=chunk-TB2USTOO.js.map
@@ -5,34 +5,34 @@ import {
5
5
  planOptionalParams,
6
6
  requireApiKey,
7
7
  validateApiKeyPresence
8
- } from "./chunk-DW3RU6GC.js";
8
+ } from "./chunk-3VBOYUPH.js";
9
9
  import {
10
10
  CUSTOM_API_DEFAULT_MODEL
11
- } from "./chunk-2IJOZA75.js";
11
+ } from "./chunk-GEKIA6CI.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-HSOZPMQN.js";
17
+ } from "./chunk-Q5J7PV3G.js";
18
18
  import {
19
19
  nexusMkdtempSync
20
20
  } from "./chunk-DKHBIJO4.js";
21
21
  import {
22
22
  getAvailabilityCache
23
- } from "./chunk-V2RNDE4R.js";
23
+ } from "./chunk-UWE6AN65.js";
24
24
  import {
25
25
  extractSystemPrompt
26
26
  } from "./chunk-QZUG667L.js";
27
27
  import {
28
28
  generateHyphenId
29
- } from "./chunk-OFLMRACR.js";
29
+ } from "./chunk-CHP7WNJS.js";
30
30
  import {
31
31
  CliCircuitBreaker,
32
32
  DEFAULT_CIRCUIT_BREAKER_CONFIG,
33
33
  getCliCircuitBreakerSnapshot,
34
34
  getDefaultCliCircuitBreakerRegistry
35
- } from "./chunk-FCIAKQNN.js";
35
+ } from "./chunk-OZD3IGK6.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-NNM6ZIXQ.js";
75
+ } from "./chunk-QOKSFHWH.js";
76
76
 
77
77
  // src/cli-adapters/cli-to-model-adapter.ts
78
78
  var CliToModelAdapter = class {
@@ -3024,6 +3024,13 @@ function extractNumberField(record, key) {
3024
3024
  const value = record[key];
3025
3025
  return typeof value === "number" && Number.isFinite(value) ? value : null;
3026
3026
  }
3027
+ function safeJsonParse(raw) {
3028
+ try {
3029
+ return JSON.parse(raw);
3030
+ } catch {
3031
+ return null;
3032
+ }
3033
+ }
3027
3034
 
3028
3035
  // src/cli-adapters/parsers/claude-parser.ts
3029
3036
  var logger = createLogger({ component: "claude-parser" });
@@ -4923,6 +4930,7 @@ export {
4923
4930
  asRecord,
4924
4931
  isRecord,
4925
4932
  extractNumberField,
4933
+ safeJsonParse,
4926
4934
  ClaudeResponseParser,
4927
4935
  ClaudeCliAdapter,
4928
4936
  GeminiCliAdapter,
@@ -4948,4 +4956,4 @@ export {
4948
4956
  SdkAdapter,
4949
4957
  createAutoAdapter
4950
4958
  };
4951
- //# sourceMappingURL=chunk-52QVQASD.js.map
4959
+ //# sourceMappingURL=chunk-TPBPFBO3.js.map