nexus-agents 9.1.0 → 9.2.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 (142) hide show
  1. package/dist/{ast-rule-runner-IROJO2LR.js → ast-rule-runner-DFEUIC2E.js} +3 -3
  2. package/dist/{child-mcp-config-SOEVU3N4.js → child-mcp-config-ALJL5I7K.js} +5 -5
  3. package/dist/child-mcp-config-ALJL5I7K.js.map +1 -0
  4. package/dist/{chunk-PF2TM7CW.js → chunk-3JRQWWBD.js} +2 -2
  5. package/dist/{chunk-FVYQWWPB.js → chunk-42TS2JOS.js} +5 -5
  6. package/dist/{chunk-MPAAWIDI.js → chunk-4ROIBRK5.js} +2 -2
  7. package/dist/{chunk-RJDZOOPA.js → chunk-5IMXQQQX.js} +4 -4
  8. package/dist/{chunk-D26ZNDI3.js → chunk-625YPLMG.js} +2 -2
  9. package/dist/{chunk-AJ37AWCG.js → chunk-A5D7666X.js} +2 -2
  10. package/dist/{chunk-NRB6TOUO.js → chunk-AWF35M67.js} +4 -4
  11. package/dist/{chunk-T5IBXFFY.js → chunk-DJ7QTY5J.js} +5 -5
  12. package/dist/{chunk-GTYGMOMW.js → chunk-DYVYV7NZ.js} +5 -5
  13. package/dist/{chunk-LLDIASHH.js → chunk-ETW6QNVI.js} +3 -3
  14. package/dist/{chunk-LM7NMCEE.js → chunk-GAJRBRED.js} +2 -2
  15. package/dist/{chunk-BQPQIOEB.js → chunk-GNGIZJAC.js} +3 -3
  16. package/dist/{chunk-KSY5LNO5.js → chunk-GNGKWFC3.js} +2 -2
  17. package/dist/{chunk-IHSX3WQN.js → chunk-GTWTVDLP.js} +13 -13
  18. package/dist/{chunk-7ZZHQ6H3.js → chunk-JZSKEIQF.js} +2 -2
  19. package/dist/{chunk-XEDWWMZ3.js → chunk-KJ46Q24G.js} +2 -2
  20. package/dist/{chunk-MGVYGV7P.js → chunk-KLDUWDNU.js} +17 -13
  21. package/dist/chunk-KLDUWDNU.js.map +1 -0
  22. package/dist/{chunk-SB3NEYNN.js → chunk-KWQ5IR2A.js} +2 -2
  23. package/dist/{chunk-WNVJQ5SC.js → chunk-M43A5MDJ.js} +4 -4
  24. package/dist/{chunk-JHLMYOPG.js → chunk-MXYKMQ53.js} +41 -41
  25. package/dist/{chunk-7JYW5F77.js → chunk-PDT6QYKY.js} +5 -5
  26. package/dist/{chunk-C5P5D45H.js → chunk-PSZQ657B.js} +3 -3
  27. package/dist/{chunk-NHNXANOF.js → chunk-SU47CN4Q.js} +45 -14
  28. package/dist/{chunk-NHNXANOF.js.map → chunk-SU47CN4Q.js.map} +1 -1
  29. package/dist/{chunk-HX2L3RU2.js → chunk-TGOZLRO7.js} +2 -2
  30. package/dist/{chunk-V362YGAV.js → chunk-TJ4VWR32.js} +6 -5
  31. package/dist/{chunk-4E72H7XZ.js → chunk-UNIRQWHT.js} +2 -2
  32. package/dist/{chunk-VL5XUWRA.js → chunk-VOJCSOVL.js} +2 -2
  33. package/dist/{chunk-V5CYHQ7H.js → chunk-VS3C3L63.js} +501 -337
  34. package/dist/chunk-VS3C3L63.js.map +1 -0
  35. package/dist/{chunk-AI4DWDDD.js → chunk-WDSRUC3H.js} +3 -3
  36. package/dist/{chunk-HABRCWMK.js → chunk-WDYK7OAI.js} +3 -3
  37. package/dist/{chunk-PYDOAA3J.js → chunk-XBWG4BJU.js} +2 -2
  38. package/dist/{chunk-DQ4PJVOC.js → chunk-XPQ2RDMV.js} +5 -5
  39. package/dist/{chunk-WQCYMWMF.js → chunk-ZC6QDPMA.js} +4 -4
  40. package/dist/{chunk-DIM3YNH4.js → chunk-ZNXWR6V6.js} +7 -7
  41. package/dist/{chunk-FBJ6D2GF.js → chunk-ZVSJPKEZ.js} +2 -2
  42. package/dist/{cli-circuit-breaker-CL333R6G.js → cli-circuit-breaker-OTFWY5A5.js} +3 -3
  43. package/dist/{cli-readiness-G3YIRQE7.js → cli-readiness-WFUMPJCU.js} +7 -7
  44. package/dist/cli.d.ts +1 -1
  45. package/dist/cli.js +44 -44
  46. package/dist/{composite-router-WRLV4FGT.js → composite-router-LE4SNM2X.js} +2 -2
  47. package/dist/{consensus-vote-4NUYMBIC.js → consensus-vote-2BEOCYGU.js} +17 -17
  48. package/dist/{consensus-vote-types-B001FCSw.d.ts → consensus-vote-types-q8io4acj.d.ts} +8 -4
  49. package/dist/{context-retriever-SNYHJYBW.js → context-retriever-NKP73OSE.js} +8 -8
  50. package/dist/{doctor-deep-Y7V22EON.js → doctor-deep-FQPLASUY.js} +3 -3
  51. package/dist/{doctor-gateway-report-AGFLKDJD.js → doctor-gateway-report-3I7KQVU3.js} +7 -7
  52. package/dist/{doctor-live-GVW7URQE.js → doctor-live-ZAMCNQGM.js} +11 -11
  53. package/dist/{expert-bridge-JEZYYPHE.js → expert-bridge-3WL6X37T.js} +4 -4
  54. package/dist/{factory-XANTK76M.js → factory-IAH3XPHY.js} +5 -5
  55. package/dist/{factory-YPM27Q4H.js → factory-X7XECZ3D.js} +10 -10
  56. package/dist/{improvement-review-J2DWPLWX.js → improvement-review-4VHBKOME.js} +6 -6
  57. package/dist/index.d.ts +7 -6
  58. package/dist/index.js +32 -32
  59. package/dist/{init-opencode-H2EKCKD2.js → init-opencode-YLKVZJJA.js} +6 -6
  60. package/dist/{issue-triage-2ONLBRFO.js → issue-triage-UUD53JH3.js} +6 -6
  61. package/dist/{model-config-helpers-L5QFCKPC.js → model-config-helpers-KRTQLJF4.js} +2 -2
  62. package/dist/{openai-compat-adapter-B2D7SS3W.js → openai-compat-adapter-YTSKOE4F.js} +6 -6
  63. package/dist/{outcome-store-adapter-VZ3GSHAC.js → outcome-store-adapter-PSVE6YAJ.js} +2 -2
  64. package/dist/{pr-reviewer-helpers-TBYZRGYD.js → pr-reviewer-helpers-VP4P23TI.js} +4 -4
  65. package/dist/{registry-command-5PJYDUEV.js → registry-command-S4GXEMQR.js} +2 -2
  66. package/dist/{repo-security-plan-Q4DPMXMI.js → repo-security-plan-66VLAFUR.js} +3 -3
  67. package/dist/{research-helpers-synthesize-JCZ4J4FU.js → research-helpers-synthesize-RFOFNS5W.js} +4 -4
  68. package/dist/{routing-memory-JQEYHJNM.js → routing-memory-KKBKCISC.js} +2 -2
  69. package/dist/{session-memory-ZIU2KLYZ.js → session-memory-6FGTXRCN.js} +3 -3
  70. package/dist/{setup-config-SFPGFQTG.js → setup-config-4NLQBTZH.js} +3 -3
  71. package/dist/{setup-custom-api-QXF5XLKP.js → setup-custom-api-FLGYMLGG.js} +3 -3
  72. package/dist/setup-data-dir-VBMDTRCF.js +36 -0
  73. package/dist/{tool-memory-WTOTIEHV.js → tool-memory-5DOAHII2.js} +5 -5
  74. package/dist/{unified-registry-2FWLKUKQ.js → unified-registry-I2BUGW6I.js} +11 -11
  75. package/dist/{weather-report-HVBREECQ.js → weather-report-CTT5O7MR.js} +2 -2
  76. package/package.json +3 -2
  77. package/dist/child-mcp-config-SOEVU3N4.js.map +0 -1
  78. package/dist/chunk-MGVYGV7P.js.map +0 -1
  79. package/dist/chunk-V5CYHQ7H.js.map +0 -1
  80. package/dist/setup-data-dir-CSNTWHYS.js +0 -36
  81. /package/dist/{ast-rule-runner-IROJO2LR.js.map → ast-rule-runner-DFEUIC2E.js.map} +0 -0
  82. /package/dist/{chunk-PF2TM7CW.js.map → chunk-3JRQWWBD.js.map} +0 -0
  83. /package/dist/{chunk-FVYQWWPB.js.map → chunk-42TS2JOS.js.map} +0 -0
  84. /package/dist/{chunk-MPAAWIDI.js.map → chunk-4ROIBRK5.js.map} +0 -0
  85. /package/dist/{chunk-RJDZOOPA.js.map → chunk-5IMXQQQX.js.map} +0 -0
  86. /package/dist/{chunk-D26ZNDI3.js.map → chunk-625YPLMG.js.map} +0 -0
  87. /package/dist/{chunk-AJ37AWCG.js.map → chunk-A5D7666X.js.map} +0 -0
  88. /package/dist/{chunk-NRB6TOUO.js.map → chunk-AWF35M67.js.map} +0 -0
  89. /package/dist/{chunk-T5IBXFFY.js.map → chunk-DJ7QTY5J.js.map} +0 -0
  90. /package/dist/{chunk-GTYGMOMW.js.map → chunk-DYVYV7NZ.js.map} +0 -0
  91. /package/dist/{chunk-LLDIASHH.js.map → chunk-ETW6QNVI.js.map} +0 -0
  92. /package/dist/{chunk-LM7NMCEE.js.map → chunk-GAJRBRED.js.map} +0 -0
  93. /package/dist/{chunk-BQPQIOEB.js.map → chunk-GNGIZJAC.js.map} +0 -0
  94. /package/dist/{chunk-KSY5LNO5.js.map → chunk-GNGKWFC3.js.map} +0 -0
  95. /package/dist/{chunk-IHSX3WQN.js.map → chunk-GTWTVDLP.js.map} +0 -0
  96. /package/dist/{chunk-7ZZHQ6H3.js.map → chunk-JZSKEIQF.js.map} +0 -0
  97. /package/dist/{chunk-XEDWWMZ3.js.map → chunk-KJ46Q24G.js.map} +0 -0
  98. /package/dist/{chunk-SB3NEYNN.js.map → chunk-KWQ5IR2A.js.map} +0 -0
  99. /package/dist/{chunk-WNVJQ5SC.js.map → chunk-M43A5MDJ.js.map} +0 -0
  100. /package/dist/{chunk-JHLMYOPG.js.map → chunk-MXYKMQ53.js.map} +0 -0
  101. /package/dist/{chunk-7JYW5F77.js.map → chunk-PDT6QYKY.js.map} +0 -0
  102. /package/dist/{chunk-C5P5D45H.js.map → chunk-PSZQ657B.js.map} +0 -0
  103. /package/dist/{chunk-HX2L3RU2.js.map → chunk-TGOZLRO7.js.map} +0 -0
  104. /package/dist/{chunk-V362YGAV.js.map → chunk-TJ4VWR32.js.map} +0 -0
  105. /package/dist/{chunk-4E72H7XZ.js.map → chunk-UNIRQWHT.js.map} +0 -0
  106. /package/dist/{chunk-VL5XUWRA.js.map → chunk-VOJCSOVL.js.map} +0 -0
  107. /package/dist/{chunk-AI4DWDDD.js.map → chunk-WDSRUC3H.js.map} +0 -0
  108. /package/dist/{chunk-HABRCWMK.js.map → chunk-WDYK7OAI.js.map} +0 -0
  109. /package/dist/{chunk-PYDOAA3J.js.map → chunk-XBWG4BJU.js.map} +0 -0
  110. /package/dist/{chunk-DQ4PJVOC.js.map → chunk-XPQ2RDMV.js.map} +0 -0
  111. /package/dist/{chunk-WQCYMWMF.js.map → chunk-ZC6QDPMA.js.map} +0 -0
  112. /package/dist/{chunk-DIM3YNH4.js.map → chunk-ZNXWR6V6.js.map} +0 -0
  113. /package/dist/{chunk-FBJ6D2GF.js.map → chunk-ZVSJPKEZ.js.map} +0 -0
  114. /package/dist/{cli-circuit-breaker-CL333R6G.js.map → cli-circuit-breaker-OTFWY5A5.js.map} +0 -0
  115. /package/dist/{cli-readiness-G3YIRQE7.js.map → cli-readiness-WFUMPJCU.js.map} +0 -0
  116. /package/dist/{composite-router-WRLV4FGT.js.map → composite-router-LE4SNM2X.js.map} +0 -0
  117. /package/dist/{consensus-vote-4NUYMBIC.js.map → consensus-vote-2BEOCYGU.js.map} +0 -0
  118. /package/dist/{context-retriever-SNYHJYBW.js.map → context-retriever-NKP73OSE.js.map} +0 -0
  119. /package/dist/{doctor-deep-Y7V22EON.js.map → doctor-deep-FQPLASUY.js.map} +0 -0
  120. /package/dist/{doctor-gateway-report-AGFLKDJD.js.map → doctor-gateway-report-3I7KQVU3.js.map} +0 -0
  121. /package/dist/{doctor-live-GVW7URQE.js.map → doctor-live-ZAMCNQGM.js.map} +0 -0
  122. /package/dist/{expert-bridge-JEZYYPHE.js.map → expert-bridge-3WL6X37T.js.map} +0 -0
  123. /package/dist/{factory-XANTK76M.js.map → factory-IAH3XPHY.js.map} +0 -0
  124. /package/dist/{factory-YPM27Q4H.js.map → factory-X7XECZ3D.js.map} +0 -0
  125. /package/dist/{improvement-review-J2DWPLWX.js.map → improvement-review-4VHBKOME.js.map} +0 -0
  126. /package/dist/{init-opencode-H2EKCKD2.js.map → init-opencode-YLKVZJJA.js.map} +0 -0
  127. /package/dist/{issue-triage-2ONLBRFO.js.map → issue-triage-UUD53JH3.js.map} +0 -0
  128. /package/dist/{model-config-helpers-L5QFCKPC.js.map → model-config-helpers-KRTQLJF4.js.map} +0 -0
  129. /package/dist/{openai-compat-adapter-B2D7SS3W.js.map → openai-compat-adapter-YTSKOE4F.js.map} +0 -0
  130. /package/dist/{outcome-store-adapter-VZ3GSHAC.js.map → outcome-store-adapter-PSVE6YAJ.js.map} +0 -0
  131. /package/dist/{pr-reviewer-helpers-TBYZRGYD.js.map → pr-reviewer-helpers-VP4P23TI.js.map} +0 -0
  132. /package/dist/{registry-command-5PJYDUEV.js.map → registry-command-S4GXEMQR.js.map} +0 -0
  133. /package/dist/{repo-security-plan-Q4DPMXMI.js.map → repo-security-plan-66VLAFUR.js.map} +0 -0
  134. /package/dist/{research-helpers-synthesize-JCZ4J4FU.js.map → research-helpers-synthesize-RFOFNS5W.js.map} +0 -0
  135. /package/dist/{routing-memory-JQEYHJNM.js.map → routing-memory-KKBKCISC.js.map} +0 -0
  136. /package/dist/{session-memory-ZIU2KLYZ.js.map → session-memory-6FGTXRCN.js.map} +0 -0
  137. /package/dist/{setup-config-SFPGFQTG.js.map → setup-config-4NLQBTZH.js.map} +0 -0
  138. /package/dist/{setup-custom-api-QXF5XLKP.js.map → setup-custom-api-FLGYMLGG.js.map} +0 -0
  139. /package/dist/{setup-data-dir-CSNTWHYS.js.map → setup-data-dir-VBMDTRCF.js.map} +0 -0
  140. /package/dist/{tool-memory-WTOTIEHV.js.map → tool-memory-5DOAHII2.js.map} +0 -0
  141. /package/dist/{unified-registry-2FWLKUKQ.js.map → unified-registry-I2BUGW6I.js.map} +0 -0
  142. /package/dist/{weather-report-HVBREECQ.js.map → weather-report-CTT5O7MR.js.map} +0 -0
@@ -9,8 +9,8 @@ import {
9
9
  getBuiltInAstRulesPath,
10
10
  loadRules,
11
11
  runAstQaRules
12
- } from "./chunk-D26ZNDI3.js";
13
- import "./chunk-NHNXANOF.js";
12
+ } from "./chunk-625YPLMG.js";
13
+ import "./chunk-SU47CN4Q.js";
14
14
  import "./chunk-XBEKMUTO.js";
15
15
  import "./chunk-UE7A2XHM.js";
16
16
  import "./chunk-LWOX65CP.js";
@@ -28,4 +28,4 @@ export {
28
28
  loadRules,
29
29
  runAstQaRules
30
30
  };
31
- //# sourceMappingURL=ast-rule-runner-IROJO2LR.js.map
31
+ //# sourceMappingURL=ast-rule-runner-DFEUIC2E.js.map
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-JPFRRNRR.js";
4
4
  import {
5
5
  createLogger
6
- } from "./chunk-NHNXANOF.js";
6
+ } from "./chunk-SU47CN4Q.js";
7
7
  import "./chunk-XBEKMUTO.js";
8
8
  import "./chunk-UE7A2XHM.js";
9
9
  import "./chunk-LWOX65CP.js";
@@ -11,8 +11,8 @@ import "./chunk-4PN3UVZV.js";
11
11
  import "./chunk-PX6F3LHL.js";
12
12
 
13
13
  // src/cli-adapters/child-mcp-config.ts
14
- import { writeFile, rm } from "node:fs/promises";
15
- import { rmSync } from "node:fs";
14
+ import { rm } from "node:fs/promises";
15
+ import { rmSync, writeFileSync } from "node:fs";
16
16
  import { join } from "node:path";
17
17
  var logger = createLogger({ component: "swe-bench-mcp-config" });
18
18
  var activeMcpDirs = /* @__PURE__ */ new Set();
@@ -65,7 +65,7 @@ async function generateMcpConfig(options) {
65
65
  }
66
66
  };
67
67
  try {
68
- await writeFile(configPath, JSON.stringify(config, null, 2), "utf-8");
68
+ writeFileSync(configPath, JSON.stringify(config, null, 2), "utf-8");
69
69
  return { configPath, cleanup };
70
70
  } catch (error) {
71
71
  await cleanup();
@@ -75,4 +75,4 @@ async function generateMcpConfig(options) {
75
75
  export {
76
76
  generateMcpConfig
77
77
  };
78
- //# sourceMappingURL=child-mcp-config-SOEVU3N4.js.map
78
+ //# sourceMappingURL=child-mcp-config-ALJL5I7K.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/cli-adapters/child-mcp-config.ts"],"sourcesContent":["/**\n * nexus-agents/cli-adapters - Child CLI MCP Config Generator\n *\n * Generates MCP server configuration for child Claude CLI sessions so\n * spawned agents can call back into nexus-agents' MCP tools (memory,\n * research, etc.). Used by `pipeline/expert-bridge.ts` to give expert\n * agents tool access. Originally lived under `swe-bench/` (#1413);\n * relocated here in #2515 — the helper is generic CLI-spawn\n * infrastructure, not benchmark-specific.\n *\n * The generated config grants NO tool approvals. It only tells the child\n * where the nexus-agents MCP server is; whether an expert may actually call\n * one of its tools follows the host's Claude permission settings (for\n * example `defaultMode`). Measured 2026-09-24: in auto mode the calls run,\n * in default mode they are refused (#6784). An unused `allowedTools` list\n * that read like a guard but was never passed to the CLI was removed then.\n *\n * @module cli-adapters/child-mcp-config\n */\n\nimport { rm } from 'node:fs/promises';\nimport { rmSync, writeFileSync } from 'node:fs';\nimport { nexusMkdtempSync } from '../config/nexus-tmp-dir.js';\nimport { join } from 'node:path';\nimport { createLogger } from '../core/index.js';\n\nconst logger = createLogger({ component: 'swe-bench-mcp-config' });\n\n// Async finally blocks cannot run after process.exit (#4631). One listener\n// covers concurrent configs; SIGKILL cannot execute any in-process cleanup.\nconst activeMcpDirs = new Set<string>();\n\nfunction cleanupOnExit(): void {\n for (const dir of activeMcpDirs) {\n try {\n rmSync(dir, { recursive: true, force: true });\n } catch (error: unknown) {\n logger.debug('MCP-config exit cleanup failed', {\n error: error instanceof Error ? error.message : String(error),\n });\n }\n }\n}\n\n/**\n * MCP server entry in Claude CLI config format.\n */\ninterface McpServerEntry {\n readonly command: string;\n readonly args: readonly string[];\n readonly env?: Readonly<Record<string, string>>;\n}\n\n/**\n * MCP config file format for Claude CLI (--mcp-config).\n */\ninterface McpConfigFile {\n readonly mcpServers: Readonly<Record<string, McpServerEntry>>;\n}\n\n/**\n * Options for generating MCP config.\n */\nexport interface McpConfigOptions {\n /** Path to nexus-agents CLI entry point. */\n readonly cliPath?: string;\n /** Additional environment variables for the MCP server. */\n readonly env?: Readonly<Record<string, string>>;\n}\n\n/**\n * Resolves the nexus-agents CLI path.\n * Uses the built dist/cli.js relative to this package.\n */\nfunction resolveCliPath(override?: string): string {\n if (override !== undefined) return override;\n // Resolve relative to this file: src/swe-bench/ → dist/cli.js\n // At runtime we're in dist/swe-bench/, so go up one level\n const distDir = join(__dirname, '..');\n return join(distDir, 'cli.js');\n}\n\n/**\n * Env marker naming a child server (#6795). The child's stdio caller is an\n * expert CLI driven by a model, not the operator, so the child must not\n * measure it at tier 1; `connectTransport` reads this and records the caller\n * as unmeasured.\n */\nconst MCP_CHILD_ENV = 'NEXUS_MCP_CHILD';\n\n/**\n * Builds the MCP config object for a nexus-agents server.\n */\nfunction buildConfig(options?: McpConfigOptions): McpConfigFile {\n const cliPath = resolveCliPath(options?.cliPath);\n\n const entry: McpServerEntry = {\n command: 'node',\n args: [cliPath, '--mode=server'],\n // The child marker is applied LAST so caller-supplied env cannot unset it.\n env: { ...options?.env, [MCP_CHILD_ENV]: '1' },\n };\n\n return {\n mcpServers: {\n 'nexus-agents': entry,\n },\n };\n}\n\n/**\n * Generated MCP config with path and cleanup function.\n */\nexport interface GeneratedMcpConfig {\n /** Path to the generated config file. */\n readonly configPath: string;\n /** Cleanup function to remove temp files. */\n readonly cleanup: () => Promise<void>;\n}\n\n/**\n * Generates an MCP config file for Claude CLI child sessions.\n *\n * Creates a temporary JSON file that can be passed to `claude --mcp-config`.\n * Returns the file path and a cleanup function.\n */\nexport async function generateMcpConfig(options?: McpConfigOptions): Promise<GeneratedMcpConfig> {\n const config = buildConfig(options);\n\n // Creation and exit registration must occur in one turn: async mkdtemp\n // can finish in its worker before JS can register cleanup (#4631).\n const tempDir = nexusMkdtempSync('nexus-mcp-');\n const configPath = join(tempDir, 'mcp-config.json');\n\n if (activeMcpDirs.size === 0) process.on('exit', cleanupOnExit);\n activeMcpDirs.add(tempDir);\n\n const cleanup = async (): Promise<void> => {\n try {\n await rm(tempDir, { recursive: true, force: true });\n activeMcpDirs.delete(tempDir);\n if (activeMcpDirs.size === 0) process.removeListener('exit', cleanupOnExit);\n } catch (e: unknown) {\n logger.debug('Best-effort cleanup failed', {\n error: e instanceof Error ? e.message : String(e),\n });\n }\n };\n\n try {\n // An async open can create the file after exit cleanup lists an empty\n // directory, making its rmdir fail with ENOTEMPTY (#7121).\n writeFileSync(configPath, JSON.stringify(config, null, 2), 'utf-8');\n return { configPath, cleanup };\n } catch (error: unknown) {\n await cleanup();\n throw error;\n }\n}\n"],"mappings":";;;;;;;;;;;;;AAoBA,SAAS,UAAU;AACnB,SAAS,QAAQ,qBAAqB;AAEtC,SAAS,YAAY;AAGrB,IAAM,SAAS,aAAa,EAAE,WAAW,uBAAuB,CAAC;AAIjE,IAAM,gBAAgB,oBAAI,IAAY;AAEtC,SAAS,gBAAsB;AAC7B,aAAW,OAAO,eAAe;AAC/B,QAAI;AACF,aAAO,KAAK,EAAE,WAAW,MAAM,OAAO,KAAK,CAAC;AAAA,IAC9C,SAAS,OAAgB;AACvB,aAAO,MAAM,kCAAkC;AAAA,QAC7C,OAAO,iBAAiB,QAAQ,MAAM,UAAU,OAAO,KAAK;AAAA,MAC9D,CAAC;AAAA,IACH;AAAA,EACF;AACF;AAgCA,SAAS,eAAe,UAA2B;AACjD,MAAI,aAAa,OAAW,QAAO;AAGnC,QAAM,UAAU,KAAK,WAAW,IAAI;AACpC,SAAO,KAAK,SAAS,QAAQ;AAC/B;AAQA,IAAM,gBAAgB;AAKtB,SAAS,YAAY,SAA2C;AAC9D,QAAM,UAAU,eAAe,SAAS,OAAO;AAE/C,QAAM,QAAwB;AAAA,IAC5B,SAAS;AAAA,IACT,MAAM,CAAC,SAAS,eAAe;AAAA;AAAA,IAE/B,KAAK,EAAE,GAAG,SAAS,KAAK,CAAC,aAAa,GAAG,IAAI;AAAA,EAC/C;AAEA,SAAO;AAAA,IACL,YAAY;AAAA,MACV,gBAAgB;AAAA,IAClB;AAAA,EACF;AACF;AAkBA,eAAsB,kBAAkB,SAAyD;AAC/F,QAAM,SAAS,YAAY,OAAO;AAIlC,QAAM,UAAU,iBAAiB,YAAY;AAC7C,QAAM,aAAa,KAAK,SAAS,iBAAiB;AAElD,MAAI,cAAc,SAAS,EAAG,SAAQ,GAAG,QAAQ,aAAa;AAC9D,gBAAc,IAAI,OAAO;AAEzB,QAAM,UAAU,YAA2B;AACzC,QAAI;AACF,YAAM,GAAG,SAAS,EAAE,WAAW,MAAM,OAAO,KAAK,CAAC;AAClD,oBAAc,OAAO,OAAO;AAC5B,UAAI,cAAc,SAAS,EAAG,SAAQ,eAAe,QAAQ,aAAa;AAAA,IAC5E,SAAS,GAAY;AACnB,aAAO,MAAM,8BAA8B;AAAA,QACzC,OAAO,aAAa,QAAQ,EAAE,UAAU,OAAO,CAAC;AAAA,MAClD,CAAC;AAAA,IACH;AAAA,EACF;AAEA,MAAI;AAGF,kBAAc,YAAY,KAAK,UAAU,QAAQ,MAAM,CAAC,GAAG,OAAO;AAClE,WAAO,EAAE,YAAY,QAAQ;AAAA,EAC/B,SAAS,OAAgB;AACvB,UAAM,QAAQ;AACd,UAAM;AAAA,EACR;AACF;","names":[]}
@@ -6,7 +6,7 @@ import {
6
6
  import {
7
7
  createLogger,
8
8
  getTimeProvider
9
- } from "./chunk-NHNXANOF.js";
9
+ } from "./chunk-SU47CN4Q.js";
10
10
  import {
11
11
  CACHE_TIMEOUTS
12
12
  } from "./chunk-4PN3UVZV.js";
@@ -511,4 +511,4 @@ export {
511
511
  resolveReputationGatingMode,
512
512
  gateWithReputation
513
513
  };
514
- //# sourceMappingURL=chunk-PF2TM7CW.js.map
514
+ //# sourceMappingURL=chunk-3JRQWWBD.js.map
@@ -4,16 +4,16 @@ import {
4
4
  createOpenAICompatAdapter,
5
5
  discoverGatewayCatalog,
6
6
  readOpenAICompatEnv
7
- } from "./chunk-T5IBXFFY.js";
7
+ } from "./chunk-DJ7QTY5J.js";
8
8
  import {
9
9
  CUSTOM_API_DEFAULT_MODEL
10
10
  } from "./chunk-PRX4ERTK.js";
11
11
  import {
12
12
  gatewayProxyUrl
13
- } from "./chunk-LM7NMCEE.js";
13
+ } from "./chunk-GAJRBRED.js";
14
14
  import {
15
15
  redactGatewaySecrets
16
- } from "./chunk-FBJ6D2GF.js";
16
+ } from "./chunk-ZVSJPKEZ.js";
17
17
  import {
18
18
  DEFAULT_OPENAI_COMPAT_ENDPOINT,
19
19
  GATEWAY_COST_ENV,
@@ -31,7 +31,7 @@ import {
31
31
  isCliDisabled,
32
32
  symbols,
33
33
  writeLine
34
- } from "./chunk-NHNXANOF.js";
34
+ } from "./chunk-SU47CN4Q.js";
35
35
 
36
36
  // src/cli/doctor-gateway-slots.ts
37
37
  var FAMILY_SLOTS = [
@@ -398,4 +398,4 @@ export {
398
398
  formatGatewayReport,
399
399
  formatGatewaySlotWarnings
400
400
  };
401
- //# sourceMappingURL=chunk-FVYQWWPB.js.map
401
+ //# sourceMappingURL=chunk-42TS2JOS.js.map
@@ -15,7 +15,7 @@ import {
15
15
  ok,
16
16
  resolveGatewayServedSlot,
17
17
  unenforcedAccessModeRefusal
18
- } from "./chunk-NHNXANOF.js";
18
+ } from "./chunk-SU47CN4Q.js";
19
19
 
20
20
  // src/cli-adapters/cli-circuit-breaker.ts
21
21
  var CATEGORY_TO_FALLBACK = {
@@ -224,4 +224,4 @@ export {
224
224
  CliCircuitBreakerIntegration,
225
225
  createCliCircuitBreakerIntegration
226
226
  };
227
- //# sourceMappingURL=chunk-MPAAWIDI.js.map
227
+ //# sourceMappingURL=chunk-4ROIBRK5.js.map
@@ -5,14 +5,14 @@ import {
5
5
  getCurrentRequestContext,
6
6
  runWithRequestContext,
7
7
  serverCallerInfo
8
- } from "./chunk-BQPQIOEB.js";
8
+ } from "./chunk-GNGIZJAC.js";
9
9
  import {
10
10
  DEFAULT_EXECUTION_MODE
11
11
  } from "./chunk-ECJ52NSK.js";
12
12
  import {
13
13
  sanitizeErrorDetails,
14
14
  sanitizeStringLeaves
15
- } from "./chunk-AJ37AWCG.js";
15
+ } from "./chunk-A5D7666X.js";
16
16
  import {
17
17
  SecurityError,
18
18
  TOOL_MANIFEST,
@@ -26,7 +26,7 @@ import {
26
26
  getTimeProvider,
27
27
  ok,
28
28
  resolveInsideRoot
29
- } from "./chunk-NHNXANOF.js";
29
+ } from "./chunk-SU47CN4Q.js";
30
30
  import {
31
31
  getNexusDataDir,
32
32
  parseBoolValue
@@ -2343,4 +2343,4 @@ export {
2343
2343
  DEFAULT_CONSENSUS_CONFIG,
2344
2344
  ConsensusMetricsSchema
2345
2345
  };
2346
- //# sourceMappingURL=chunk-RJDZOOPA.js.map
2346
+ //# sourceMappingURL=chunk-5IMXQQQX.js.map
@@ -4,7 +4,7 @@ import {
4
4
  createLogger,
5
5
  formatZodError,
6
6
  resolveInsideRoot
7
- } from "./chunk-NHNXANOF.js";
7
+ } from "./chunk-SU47CN4Q.js";
8
8
 
9
9
  // src/security/ast-rule-runner.ts
10
10
  import { existsSync } from "node:fs";
@@ -241,4 +241,4 @@ export {
241
241
  collectAstQaFindings,
242
242
  runAstQaRules
243
243
  };
244
- //# sourceMappingURL=chunk-D26ZNDI3.js.map
244
+ //# sourceMappingURL=chunk-625YPLMG.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  redactCredentialShapes
3
- } from "./chunk-NHNXANOF.js";
3
+ } from "./chunk-SU47CN4Q.js";
4
4
 
5
5
  // src/security/output-sanitizer.ts
6
6
  var REDACTED_KEY_PLACEHOLDER = "[REDACTED_KEY]";
@@ -54,4 +54,4 @@ export {
54
54
  sanitizeErrorDetails,
55
55
  sanitizeStringLeaves
56
56
  };
57
- //# sourceMappingURL=chunk-AJ37AWCG.js.map
57
+ //# sourceMappingURL=chunk-A5D7666X.js.map
@@ -1,14 +1,14 @@
1
1
  import {
2
2
  GitHubProvider,
3
3
  ScmError
4
- } from "./chunk-VL5XUWRA.js";
4
+ } from "./chunk-VOJCSOVL.js";
5
5
  import {
6
6
  resolveToken
7
- } from "./chunk-4E72H7XZ.js";
7
+ } from "./chunk-UNIRQWHT.js";
8
8
  import {
9
9
  err,
10
10
  ok
11
- } from "./chunk-NHNXANOF.js";
11
+ } from "./chunk-SU47CN4Q.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-NRB6TOUO.js.map
44
+ //# sourceMappingURL=chunk-AWF35M67.js.map
@@ -8,16 +8,16 @@ import {
8
8
  requireApiKey,
9
9
  validateApiKeyPresence,
10
10
  withGatewayUsageRecording
11
- } from "./chunk-LM7NMCEE.js";
11
+ } from "./chunk-GAJRBRED.js";
12
12
  import {
13
13
  assertCustomApiHostResolvesPublic,
14
14
  hostnameOf,
15
15
  redactGatewaySecrets
16
- } from "./chunk-FBJ6D2GF.js";
16
+ } from "./chunk-ZVSJPKEZ.js";
17
17
  import {
18
18
  REDACTED_KEY_PLACEHOLDER,
19
19
  sanitizeErrorDetails
20
- } from "./chunk-AJ37AWCG.js";
20
+ } from "./chunk-A5D7666X.js";
21
21
  import {
22
22
  CUSTOM_API_ALLOW_PRIVATE_ENV,
23
23
  ConfigError,
@@ -39,7 +39,7 @@ import {
39
39
  ok,
40
40
  readModelAllowlist,
41
41
  refineGatewayCatalog
42
- } from "./chunk-NHNXANOF.js";
42
+ } from "./chunk-SU47CN4Q.js";
43
43
 
44
44
  // src/adapters/openai-compat-adapter.ts
45
45
  import OpenAI2 from "openai";
@@ -992,4 +992,4 @@ export {
992
992
  createOpenAICompatAdapter,
993
993
  buildOpenAICompatAdapters
994
994
  };
995
- //# sourceMappingURL=chunk-T5IBXFFY.js.map
995
+ //# sourceMappingURL=chunk-DJ7QTY5J.js.map
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  GitHubProvider,
3
3
  ScmError
4
- } from "./chunk-VL5XUWRA.js";
4
+ } from "./chunk-VOJCSOVL.js";
5
5
  import {
6
6
  ReputationCache,
7
7
  assessReputation,
@@ -9,10 +9,10 @@ import {
9
9
  resolveEnvMode,
10
10
  resolveReputationGatingMode,
11
11
  sanitizeInput
12
- } from "./chunk-PF2TM7CW.js";
12
+ } from "./chunk-3JRQWWBD.js";
13
13
  import {
14
14
  hasToken
15
- } from "./chunk-4E72H7XZ.js";
15
+ } from "./chunk-UNIRQWHT.js";
16
16
  import {
17
17
  toContentTrustProvenanceRecord
18
18
  } from "./chunk-ZO6ZKR7L.js";
@@ -27,7 +27,7 @@ import {
27
27
  getErrorMessage,
28
28
  getTimeProvider,
29
29
  ok
30
- } from "./chunk-NHNXANOF.js";
30
+ } from "./chunk-SU47CN4Q.js";
31
31
  import {
32
32
  CLI_SUBPROCESS_TIMEOUTS
33
33
  } from "./chunk-4PN3UVZV.js";
@@ -2645,4 +2645,4 @@ export {
2645
2645
  IssueTriage,
2646
2646
  createIssueTriage
2647
2647
  };
2648
- //# sourceMappingURL=chunk-GTYGMOMW.js.map
2648
+ //# sourceMappingURL=chunk-DYVYV7NZ.js.map
@@ -7,7 +7,7 @@ import {
7
7
  logGatewaySlotMapping,
8
8
  resolveOwnerCli,
9
9
  setGatewaySlotCatalog
10
- } from "./chunk-NHNXANOF.js";
10
+ } from "./chunk-SU47CN4Q.js";
11
11
 
12
12
  // src/config/model-availability.ts
13
13
  var DEFAULT_TTL_MS = 6e4;
@@ -139,7 +139,7 @@ function discoverGatewayOnce(logger = defaultLogger) {
139
139
  }
140
140
  async function runProbe(logger) {
141
141
  try {
142
- const { buildOpenAICompatAdapters: build } = await import("./openai-compat-adapter-B2D7SS3W.js");
142
+ const { buildOpenAICompatAdapters: build } = await import("./openai-compat-adapter-YTSKOE4F.js");
143
143
  return await build(logger);
144
144
  } catch (error) {
145
145
  return err(new ConfigError(`Gateway discovery threw: ${getErrorMessage(error)}`));
@@ -269,4 +269,4 @@ export {
269
269
  setGatewayRediscovery,
270
270
  ensureGatewayDiscovered
271
271
  };
272
- //# sourceMappingURL=chunk-LLDIASHH.js.map
272
+ //# sourceMappingURL=chunk-ETW6QNVI.js.map
@@ -16,7 +16,7 @@ import {
16
16
  ok,
17
17
  recordUsageEvent,
18
18
  resolveRetryAfterMs
19
- } from "./chunk-NHNXANOF.js";
19
+ } from "./chunk-SU47CN4Q.js";
20
20
 
21
21
  // src/adapters/base-adapter.ts
22
22
  var AdapterModelError = class extends ModelError {
@@ -1113,4 +1113,4 @@ export {
1113
1113
  gatewayAiSdkOptions,
1114
1114
  withGatewayUsageRecording
1115
1115
  };
1116
- //# sourceMappingURL=chunk-LM7NMCEE.js.map
1116
+ //# sourceMappingURL=chunk-GAJRBRED.js.map
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  getTimeProvider
3
- } from "./chunk-NHNXANOF.js";
3
+ } from "./chunk-SU47CN4Q.js";
4
4
 
5
5
  // src/version.ts
6
6
  import semver from "semver";
7
- var VERSION = true ? "9.1.0" : "dev";
7
+ var VERSION = true ? "9.2.0" : "dev";
8
8
  var NODE_ENGINE_RANGE = ">=24";
9
9
  function isNodeVersionSupported(version) {
10
10
  return semver.satisfies(version, NODE_ENGINE_RANGE);
@@ -106,4 +106,4 @@ export {
106
106
  contextForLogging,
107
107
  measuredTrustTier
108
108
  };
109
- //# sourceMappingURL=chunk-BQPQIOEB.js.map
109
+ //# sourceMappingURL=chunk-GNGIZJAC.js.map
@@ -6,7 +6,7 @@ import {
6
6
  getErrorMessage,
7
7
  ok,
8
8
  resolveInsideRoot
9
- } from "./chunk-NHNXANOF.js";
9
+ } from "./chunk-SU47CN4Q.js";
10
10
  import {
11
11
  findRepoRoot,
12
12
  getActiveWorkspaceRoot,
@@ -211,4 +211,4 @@ export {
211
211
  loadPapersRegistry,
212
212
  savePapersRegistry
213
213
  };
214
- //# sourceMappingURL=chunk-KSY5LNO5.js.map
214
+ //# sourceMappingURL=chunk-GNGKWFC3.js.map
@@ -7,7 +7,7 @@ import {
7
7
  VERSION,
8
8
  isNodeVersionSupported,
9
9
  recordServerTransport
10
- } from "./chunk-BQPQIOEB.js";
10
+ } from "./chunk-GNGIZJAC.js";
11
11
  import {
12
12
  checkGatewayHealth,
13
13
  cliFailsVerdict,
@@ -17,14 +17,14 @@ import {
17
17
  gatewaySlotServing,
18
18
  gatewayVerdict,
19
19
  printVoterTransportCheck
20
- } from "./chunk-FVYQWWPB.js";
20
+ } from "./chunk-42TS2JOS.js";
21
21
  import {
22
22
  readOpenAICompatEndpoint,
23
23
  readOpenAICompatEnv
24
- } from "./chunk-T5IBXFFY.js";
24
+ } from "./chunk-DJ7QTY5J.js";
25
25
  import {
26
26
  claimGlobalRegistry
27
- } from "./chunk-7JYW5F77.js";
27
+ } from "./chunk-PDT6QYKY.js";
28
28
  import {
29
29
  CODEX_LEGACY_LANDLOCK_CONFIG,
30
30
  CODEX_MCP_SERVER_UNAVAILABLE_REASON,
@@ -32,23 +32,23 @@ import {
32
32
  codexSandboxPreflight,
33
33
  createAllAdapters,
34
34
  createCliAdapter
35
- } from "./chunk-MGVYGV7P.js";
35
+ } from "./chunk-KLDUWDNU.js";
36
36
  import {
37
37
  getNexusTmpDir
38
38
  } from "./chunk-JPFRRNRR.js";
39
39
  import {
40
40
  resolveGatewayEnv
41
- } from "./chunk-FBJ6D2GF.js";
41
+ } from "./chunk-ZVSJPKEZ.js";
42
42
  import {
43
43
  probeCli
44
44
  } from "./chunk-TW6PJYTP.js";
45
45
  import {
46
46
  SERVES_PROBE_PROMPT
47
- } from "./chunk-WQCYMWMF.js";
47
+ } from "./chunk-ZC6QDPMA.js";
48
48
  import {
49
49
  ClaudeCliAdapter,
50
50
  IN_FAMILY_FALLBACK_OPTION
51
- } from "./chunk-V362YGAV.js";
51
+ } from "./chunk-TJ4VWR32.js";
52
52
  import {
53
53
  DEFAULT_CAPABILITIES,
54
54
  capitalize,
@@ -73,7 +73,7 @@ import {
73
73
  resolveGatewayCostDeclaration,
74
74
  symbols,
75
75
  writeLine
76
- } from "./chunk-NHNXANOF.js";
76
+ } from "./chunk-SU47CN4Q.js";
77
77
  import {
78
78
  getLearningDir,
79
79
  getOutcomesFile,
@@ -1556,7 +1556,7 @@ async function doctorCommand(options = {}) {
1556
1556
  options.onResult?.(result);
1557
1557
  printDoctorResults(result, void 0, options.deferSummary === true);
1558
1558
  if (options.gateway === true || options.probe === true) {
1559
- const { formatGatewayReport } = await import("./doctor-gateway-report-AGFLKDJD.js");
1559
+ const { formatGatewayReport } = await import("./doctor-gateway-report-3I7KQVU3.js");
1560
1560
  for (const line of formatGatewayReport(result.gateway, result.clis)) {
1561
1561
  process.stdout.write(line + "\n");
1562
1562
  }
@@ -1575,13 +1575,13 @@ async function runDoctorFix(result) {
1575
1575
  writeLine2("\u2500".repeat(40));
1576
1576
  let fixCount = 0;
1577
1577
  if (!result.dataDirectory.rootExists || result.dataDirectory.subdirectories.some((d) => !d.exists || !d.writable)) {
1578
- const { initDataDirectories: initDataDirectories2, describeDataDirFix: describeDataDirFix2 } = await import("./setup-data-dir-CSNTWHYS.js");
1578
+ const { initDataDirectories: initDataDirectories2, describeDataDirFix: describeDataDirFix2 } = await import("./setup-data-dir-VBMDTRCF.js");
1579
1579
  const outcome = describeDataDirFix2(initDataDirectories2());
1580
1580
  writeLine2(outcome.line);
1581
1581
  if (outcome.counted) fixCount++;
1582
1582
  }
1583
1583
  if (!result.configFile.found) {
1584
- const { runConfigInitSync } = await import("./setup-config-SFPGFQTG.js");
1584
+ const { runConfigInitSync } = await import("./setup-config-4NLQBTZH.js");
1585
1585
  const configResult = runConfigInitSync(process.cwd(), false, false);
1586
1586
  if (configResult.success && configResult.created) {
1587
1587
  writeLine2(`\u2713 Generated config: ${configResult.path}`);
@@ -1680,4 +1680,4 @@ export {
1680
1680
  startStdioServer,
1681
1681
  closeServer
1682
1682
  };
1683
- //# sourceMappingURL=chunk-IHSX3WQN.js.map
1683
+ //# sourceMappingURL=chunk-GTWTVDLP.js.map
@@ -4,7 +4,7 @@ import {
4
4
  import {
5
5
  createLogger,
6
6
  getTimeProvider
7
- } from "./chunk-NHNXANOF.js";
7
+ } from "./chunk-SU47CN4Q.js";
8
8
 
9
9
  // src/mcp/tools/scanner-registry-fetcher.ts
10
10
  import { z } from "zod";
@@ -740,4 +740,4 @@ export {
740
740
  generateSecurityPlan,
741
741
  buildPlanFromAnalysis
742
742
  };
743
- //# sourceMappingURL=chunk-7ZZHQ6H3.js.map
743
+ //# sourceMappingURL=chunk-JZSKEIQF.js.map
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  getRandomProvider,
3
3
  getTimeProvider
4
- } from "./chunk-NHNXANOF.js";
4
+ } from "./chunk-SU47CN4Q.js";
5
5
 
6
6
  // src/utils/id-utils.ts
7
7
  import { randomUUID } from "node:crypto";
@@ -24,4 +24,4 @@ export {
24
24
  generateHyphenId,
25
25
  generateUUID
26
26
  };
27
- //# sourceMappingURL=chunk-XEDWWMZ3.js.map
27
+ //# sourceMappingURL=chunk-KJ46Q24G.js.map
@@ -2,7 +2,7 @@ import {
2
2
  ensureGatewayDiscovered,
3
3
  gatewayDiscoveryStatus,
4
4
  getAvailabilityCache
5
- } from "./chunk-LLDIASHH.js";
5
+ } from "./chunk-ETW6QNVI.js";
6
6
  import {
7
7
  extractSystemPrompt
8
8
  } from "./chunk-QZUG667L.js";
@@ -22,7 +22,7 @@ import {
22
22
  requireApiKey,
23
23
  validateApiKeyPresence,
24
24
  withGatewayUsageRecording
25
- } from "./chunk-LM7NMCEE.js";
25
+ } from "./chunk-GAJRBRED.js";
26
26
  import {
27
27
  assertCustomApiHostResolvesPublic,
28
28
  hostnameOf,
@@ -31,7 +31,7 @@ import {
31
31
  readGatewayEnv,
32
32
  redactApiKey,
33
33
  validateCustomApiBaseUrl
34
- } from "./chunk-FBJ6D2GF.js";
34
+ } from "./chunk-ZVSJPKEZ.js";
35
35
  import {
36
36
  probeCli
37
37
  } from "./chunk-TW6PJYTP.js";
@@ -46,13 +46,13 @@ import {
46
46
  getTimeoutForTask,
47
47
  listModelsForCli,
48
48
  spawnCwd
49
- } from "./chunk-V362YGAV.js";
49
+ } from "./chunk-TJ4VWR32.js";
50
50
  import {
51
51
  getCliCircuitBreakerSnapshot
52
- } from "./chunk-MPAAWIDI.js";
52
+ } from "./chunk-4ROIBRK5.js";
53
53
  import {
54
54
  sanitizeOutput
55
- } from "./chunk-AJ37AWCG.js";
55
+ } from "./chunk-A5D7666X.js";
56
56
  import {
57
57
  CliCircuitBreaker,
58
58
  DEFAULT_CIRCUIT_BREAKER_CONFIG,
@@ -106,7 +106,7 @@ import {
106
106
  unenforcedAccessModeRefusal,
107
107
  warnIfGatewayCostUndeclared,
108
108
  withEnforcedAccessMode
109
- } from "./chunk-NHNXANOF.js";
109
+ } from "./chunk-SU47CN4Q.js";
110
110
  import {
111
111
  CLI_NAMES,
112
112
  CLI_SUBPROCESS_TIMEOUTS,
@@ -1934,8 +1934,7 @@ var GeminiCliAdapter = class extends SubprocessCliAdapter {
1934
1934
  const content = task.systemPrompt !== void 0 && task.systemPrompt !== "" ? `${task.systemPrompt}
1935
1935
 
1936
1936
  ${task.content}` : task.content;
1937
- args.push("--print", content);
1938
- return { command: this.binaryName, args };
1937
+ return { command: this.binaryName, args, stdin: content };
1939
1938
  }
1940
1939
  checkCircuitBreaker() {
1941
1940
  if (this.circuitBreaker === null) {
@@ -2891,7 +2890,7 @@ var CodexCliAdapter = class extends SubprocessCliAdapter {
2891
2890
  }
2892
2891
  /**
2893
2892
  * Gets CLI command and arguments for execution.
2894
- * Task content is passed as a positional argument (not via stdin).
2893
+ * Task content is read from stdin via `codex exec -` to avoid argv size limits.
2895
2894
  */
2896
2895
  getCommand(task) {
2897
2896
  const args = ["exec"];
@@ -2915,8 +2914,13 @@ var CodexCliAdapter = class extends SubprocessCliAdapter {
2915
2914
  }
2916
2915
  };
2917
2916
  }
2918
- args.push(task.content);
2919
- return cleanup === void 0 ? { command: "codex", args } : { command: "codex", args, cleanup };
2917
+ args.push("-");
2918
+ return {
2919
+ command: "codex",
2920
+ args,
2921
+ stdin: task.content,
2922
+ ...cleanup === void 0 ? {} : { cleanup }
2923
+ };
2920
2924
  }
2921
2925
  };
2922
2926
 
@@ -4126,4 +4130,4 @@ export {
4126
4130
  SdkAdapter,
4127
4131
  createAutoAdapter
4128
4132
  };
4129
- //# sourceMappingURL=chunk-MGVYGV7P.js.map
4133
+ //# sourceMappingURL=chunk-KLDUWDNU.js.map