nexus-agents 2.174.2 → 2.176.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 (145) hide show
  1. package/dist/{child-mcp-config-GWB7JLIS.js → child-mcp-config-HPWYQFLG.js} +9 -7
  2. package/dist/child-mcp-config-HPWYQFLG.js.map +1 -0
  3. package/dist/{chunk-E35RUETV.js → chunk-2DE5L734.js} +2 -2
  4. package/dist/{chunk-AXTD4TFK.js → chunk-2HUC6NZN.js} +2 -2
  5. package/dist/{chunk-DJZGCMNU.js → chunk-46XEDJRB.js} +2 -2
  6. package/dist/{chunk-OCTNNEXT.js → chunk-4OPEUDHY.js} +10 -10
  7. package/dist/{chunk-H5KLPUAL.js → chunk-4S6S6S2S.js} +3 -3
  8. package/dist/{chunk-Z77MIV3C.js → chunk-5ALUADB6.js} +2 -2
  9. package/dist/{chunk-YE2XMU3T.js → chunk-5LTRHNOI.js} +3 -3
  10. package/dist/{chunk-KWKGX7LC.js → chunk-5YXHHEAG.js} +5 -5
  11. package/dist/{chunk-JSIX5L3C.js → chunk-7TXEBDRM.js} +2 -2
  12. package/dist/{chunk-2CB6QMRX.js → chunk-AHXJCVMV.js} +39 -39
  13. package/dist/{chunk-YUCJ7VSJ.js → chunk-APXGDZV4.js} +13 -10
  14. package/dist/chunk-APXGDZV4.js.map +1 -0
  15. package/dist/{chunk-OGR5Q6QO.js → chunk-CGD63GSC.js} +7 -7
  16. package/dist/{chunk-Y5JA7XEO.js → chunk-CNHPSIHY.js} +21 -16
  17. package/dist/chunk-CNHPSIHY.js.map +1 -0
  18. package/dist/{chunk-PINS44XA.js → chunk-DVKS77O5.js} +2 -2
  19. package/dist/{chunk-OM2VVQKB.js → chunk-ECBV4JNL.js} +2 -2
  20. package/dist/{chunk-VSETLO4Q.js → chunk-G42V4A5Q.js} +2 -2
  21. package/dist/{chunk-PN43VH6Z.js → chunk-G5URP3V7.js} +7 -7
  22. package/dist/{chunk-ASJTVA7W.js → chunk-H4LZLG3P.js} +6 -6
  23. package/dist/{chunk-UB6APBIY.js → chunk-J4BGV5VE.js} +2 -2
  24. package/dist/{chunk-RAIFOYRM.js → chunk-J55NMZ7R.js} +2 -2
  25. package/dist/{chunk-3P7SMHBU.js → chunk-JGL5HYZL.js} +3 -3
  26. package/dist/{chunk-HUYP2XXH.js → chunk-JRKF4FYO.js} +2 -2
  27. package/dist/{chunk-K6NXLBHG.js → chunk-N3XDPW64.js} +13 -11
  28. package/dist/{chunk-K6NXLBHG.js.map → chunk-N3XDPW64.js.map} +1 -1
  29. package/dist/{chunk-EDWON3X5.js → chunk-NQU4LNN7.js} +6 -6
  30. package/dist/{chunk-DHVMSIT5.js → chunk-OQLFRJCW.js} +9 -1
  31. package/dist/chunk-OQLFRJCW.js.map +1 -0
  32. package/dist/{chunk-6RRAQFSX.js → chunk-QI5U2YUL.js} +2 -2
  33. package/dist/{chunk-MRRKFMYJ.js → chunk-QQ3CUUBU.js} +8 -216
  34. package/dist/chunk-QQ3CUUBU.js.map +1 -0
  35. package/dist/{chunk-IVINLVGP.js → chunk-U5CV76ZW.js} +2 -2
  36. package/dist/{chunk-DGR27REV.js → chunk-WMV2CXBB.js} +2 -2
  37. package/dist/{chunk-JVBI4WKP.js → chunk-WT4BJODZ.js} +5 -5
  38. package/dist/{chunk-5QVJCBM4.js → chunk-XAWRBQB7.js} +4 -4
  39. package/dist/{chunk-KYF4YAZO.js → chunk-XES5DPHV.js} +4 -4
  40. package/dist/{chunk-KU2HPCJG.js → chunk-XZJU6WLL.js} +4 -4
  41. package/dist/chunk-YAF73ZMR.js +38 -0
  42. package/dist/chunk-YAF73ZMR.js.map +1 -0
  43. package/dist/{chunk-SGIWJYLJ.js → chunk-YB4QE7MD.js} +2 -2
  44. package/dist/{chunk-KAL22DYO.js → chunk-YU2JCUM7.js} +2 -2
  45. package/dist/{chunk-4PTAG65V.js → chunk-Z55WHIRU.js} +2 -2
  46. package/dist/{cli-circuit-breaker-EINPV2CX.js → cli-circuit-breaker-PJOQTGFZ.js} +5 -5
  47. package/dist/cli.js +58 -48
  48. package/dist/cli.js.map +1 -1
  49. package/dist/{composite-router-CUJAG7O4.js → composite-router-IRXFQSB6.js} +4 -4
  50. package/dist/{consensus-vote-BLCQCWPV.js → consensus-vote-O6Q266QE.js} +20 -19
  51. package/dist/{context-retriever-MTJR3AQM.js → context-retriever-GO6ET3MF.js} +11 -11
  52. package/dist/doctor-deep-6HCHHMRP.js +13 -0
  53. package/dist/{expert-bridge-2W2JMFQW.js → expert-bridge-6OLG6THF.js} +6 -6
  54. package/dist/factory-7OM526WB.js +25 -0
  55. package/dist/factory-MJFGYMNE.js +15 -0
  56. package/dist/{improvement-review-ZMUJQSX3.js → improvement-review-PALAAG7V.js} +7 -7
  57. package/dist/index.d.ts +19 -137
  58. package/dist/index.js +36 -39
  59. package/dist/index.js.map +1 -1
  60. package/dist/{init-opencode-I5XSFY34.js → init-opencode-NUMHNVIF.js} +8 -8
  61. package/dist/issue-triage-N7GFXNPY.js +18 -0
  62. package/dist/{learning-persistence-6D5GGT7D.js → learning-persistence-EGY4VKKO.js} +3 -3
  63. package/dist/{pr-reviewer-helpers-CZDMP5UJ.js → pr-reviewer-helpers-6EIUJPXS.js} +6 -6
  64. package/dist/{registry-command-5J6RJZMS.js → registry-command-SVTX7FKB.js} +4 -4
  65. package/dist/{repo-security-plan-MKSCD567.js → repo-security-plan-AT7LOXLG.js} +5 -5
  66. package/dist/research-helpers-synthesize-R722YWRS.js +15 -0
  67. package/dist/{routing-memory-HAWL7RKO.js → routing-memory-4FXQT5H6.js} +4 -4
  68. package/dist/{session-memory-RPSM7Y4Q.js → session-memory-ZQJ6AUSQ.js} +5 -5
  69. package/dist/setup-command-VAAYESH5.js +43 -0
  70. package/dist/setup-config-MYLZ2UHR.js +11 -0
  71. package/dist/{setup-custom-api-BZSHB2M5.js → setup-custom-api-WZPLTGRQ.js} +6 -6
  72. package/dist/{tool-memory-FCEJMKEH.js → tool-memory-5REJXBCB.js} +8 -8
  73. package/dist/{tool-memory-registry-adapters-PMMKJQF5.js → tool-memory-registry-adapters-YQLOSV4S.js} +3 -3
  74. package/dist/unified-registry-FM3QB2VN.js +26 -0
  75. package/dist/{weather-report-VNABZRH7.js → weather-report-Y2GYJA6I.js} +4 -4
  76. package/package.json +1 -1
  77. package/dist/child-mcp-config-GWB7JLIS.js.map +0 -1
  78. package/dist/chunk-DHVMSIT5.js.map +0 -1
  79. package/dist/chunk-MRRKFMYJ.js.map +0 -1
  80. package/dist/chunk-Y5JA7XEO.js.map +0 -1
  81. package/dist/chunk-YUCJ7VSJ.js.map +0 -1
  82. package/dist/doctor-deep-X2KP2G4M.js +0 -13
  83. package/dist/factory-7UFJ6LXW.js +0 -24
  84. package/dist/factory-SC5D5P3C.js +0 -15
  85. package/dist/issue-triage-KOIPTNDH.js +0 -18
  86. package/dist/research-helpers-synthesize-TIT43XF4.js +0 -15
  87. package/dist/setup-command-SORJLYU3.js +0 -42
  88. package/dist/setup-config-YDA4MY4N.js +0 -11
  89. package/dist/unified-registry-JWPD2ES2.js +0 -27
  90. /package/dist/{chunk-E35RUETV.js.map → chunk-2DE5L734.js.map} +0 -0
  91. /package/dist/{chunk-AXTD4TFK.js.map → chunk-2HUC6NZN.js.map} +0 -0
  92. /package/dist/{chunk-DJZGCMNU.js.map → chunk-46XEDJRB.js.map} +0 -0
  93. /package/dist/{chunk-OCTNNEXT.js.map → chunk-4OPEUDHY.js.map} +0 -0
  94. /package/dist/{chunk-H5KLPUAL.js.map → chunk-4S6S6S2S.js.map} +0 -0
  95. /package/dist/{chunk-Z77MIV3C.js.map → chunk-5ALUADB6.js.map} +0 -0
  96. /package/dist/{chunk-YE2XMU3T.js.map → chunk-5LTRHNOI.js.map} +0 -0
  97. /package/dist/{chunk-KWKGX7LC.js.map → chunk-5YXHHEAG.js.map} +0 -0
  98. /package/dist/{chunk-JSIX5L3C.js.map → chunk-7TXEBDRM.js.map} +0 -0
  99. /package/dist/{chunk-2CB6QMRX.js.map → chunk-AHXJCVMV.js.map} +0 -0
  100. /package/dist/{chunk-OGR5Q6QO.js.map → chunk-CGD63GSC.js.map} +0 -0
  101. /package/dist/{chunk-PINS44XA.js.map → chunk-DVKS77O5.js.map} +0 -0
  102. /package/dist/{chunk-OM2VVQKB.js.map → chunk-ECBV4JNL.js.map} +0 -0
  103. /package/dist/{chunk-VSETLO4Q.js.map → chunk-G42V4A5Q.js.map} +0 -0
  104. /package/dist/{chunk-PN43VH6Z.js.map → chunk-G5URP3V7.js.map} +0 -0
  105. /package/dist/{chunk-ASJTVA7W.js.map → chunk-H4LZLG3P.js.map} +0 -0
  106. /package/dist/{chunk-UB6APBIY.js.map → chunk-J4BGV5VE.js.map} +0 -0
  107. /package/dist/{chunk-RAIFOYRM.js.map → chunk-J55NMZ7R.js.map} +0 -0
  108. /package/dist/{chunk-3P7SMHBU.js.map → chunk-JGL5HYZL.js.map} +0 -0
  109. /package/dist/{chunk-HUYP2XXH.js.map → chunk-JRKF4FYO.js.map} +0 -0
  110. /package/dist/{chunk-EDWON3X5.js.map → chunk-NQU4LNN7.js.map} +0 -0
  111. /package/dist/{chunk-6RRAQFSX.js.map → chunk-QI5U2YUL.js.map} +0 -0
  112. /package/dist/{chunk-IVINLVGP.js.map → chunk-U5CV76ZW.js.map} +0 -0
  113. /package/dist/{chunk-DGR27REV.js.map → chunk-WMV2CXBB.js.map} +0 -0
  114. /package/dist/{chunk-JVBI4WKP.js.map → chunk-WT4BJODZ.js.map} +0 -0
  115. /package/dist/{chunk-5QVJCBM4.js.map → chunk-XAWRBQB7.js.map} +0 -0
  116. /package/dist/{chunk-KYF4YAZO.js.map → chunk-XES5DPHV.js.map} +0 -0
  117. /package/dist/{chunk-KU2HPCJG.js.map → chunk-XZJU6WLL.js.map} +0 -0
  118. /package/dist/{chunk-SGIWJYLJ.js.map → chunk-YB4QE7MD.js.map} +0 -0
  119. /package/dist/{chunk-KAL22DYO.js.map → chunk-YU2JCUM7.js.map} +0 -0
  120. /package/dist/{chunk-4PTAG65V.js.map → chunk-Z55WHIRU.js.map} +0 -0
  121. /package/dist/{cli-circuit-breaker-EINPV2CX.js.map → cli-circuit-breaker-PJOQTGFZ.js.map} +0 -0
  122. /package/dist/{composite-router-CUJAG7O4.js.map → composite-router-IRXFQSB6.js.map} +0 -0
  123. /package/dist/{consensus-vote-BLCQCWPV.js.map → consensus-vote-O6Q266QE.js.map} +0 -0
  124. /package/dist/{context-retriever-MTJR3AQM.js.map → context-retriever-GO6ET3MF.js.map} +0 -0
  125. /package/dist/{doctor-deep-X2KP2G4M.js.map → doctor-deep-6HCHHMRP.js.map} +0 -0
  126. /package/dist/{expert-bridge-2W2JMFQW.js.map → expert-bridge-6OLG6THF.js.map} +0 -0
  127. /package/dist/{factory-7UFJ6LXW.js.map → factory-7OM526WB.js.map} +0 -0
  128. /package/dist/{factory-SC5D5P3C.js.map → factory-MJFGYMNE.js.map} +0 -0
  129. /package/dist/{improvement-review-ZMUJQSX3.js.map → improvement-review-PALAAG7V.js.map} +0 -0
  130. /package/dist/{init-opencode-I5XSFY34.js.map → init-opencode-NUMHNVIF.js.map} +0 -0
  131. /package/dist/{issue-triage-KOIPTNDH.js.map → issue-triage-N7GFXNPY.js.map} +0 -0
  132. /package/dist/{learning-persistence-6D5GGT7D.js.map → learning-persistence-EGY4VKKO.js.map} +0 -0
  133. /package/dist/{pr-reviewer-helpers-CZDMP5UJ.js.map → pr-reviewer-helpers-6EIUJPXS.js.map} +0 -0
  134. /package/dist/{registry-command-5J6RJZMS.js.map → registry-command-SVTX7FKB.js.map} +0 -0
  135. /package/dist/{repo-security-plan-MKSCD567.js.map → repo-security-plan-AT7LOXLG.js.map} +0 -0
  136. /package/dist/{research-helpers-synthesize-TIT43XF4.js.map → research-helpers-synthesize-R722YWRS.js.map} +0 -0
  137. /package/dist/{routing-memory-HAWL7RKO.js.map → routing-memory-4FXQT5H6.js.map} +0 -0
  138. /package/dist/{session-memory-RPSM7Y4Q.js.map → session-memory-ZQJ6AUSQ.js.map} +0 -0
  139. /package/dist/{setup-command-SORJLYU3.js.map → setup-command-VAAYESH5.js.map} +0 -0
  140. /package/dist/{setup-config-YDA4MY4N.js.map → setup-config-MYLZ2UHR.js.map} +0 -0
  141. /package/dist/{setup-custom-api-BZSHB2M5.js.map → setup-custom-api-WZPLTGRQ.js.map} +0 -0
  142. /package/dist/{tool-memory-FCEJMKEH.js.map → tool-memory-5REJXBCB.js.map} +0 -0
  143. /package/dist/{tool-memory-registry-adapters-PMMKJQF5.js.map → tool-memory-registry-adapters-YQLOSV4S.js.map} +0 -0
  144. /package/dist/{unified-registry-JWPD2ES2.js.map → unified-registry-FM3QB2VN.js.map} +0 -0
  145. /package/dist/{weather-report-VNABZRH7.js.map → weather-report-Y2GYJA6I.js.map} +0 -0
@@ -1,17 +1,17 @@
1
1
  import {
2
2
  computeCostDetail,
3
3
  recordUsageEvent
4
- } from "./chunk-H5KLPUAL.js";
4
+ } from "./chunk-4S6S6S2S.js";
5
5
  import {
6
6
  BaseAdapter,
7
7
  createStream,
8
8
  planOptionalParams,
9
9
  requireApiKey,
10
10
  validateApiKeyPresence
11
- } from "./chunk-6RRAQFSX.js";
11
+ } from "./chunk-QI5U2YUL.js";
12
12
  import {
13
13
  assertCustomApiHostResolvesPublic
14
- } from "./chunk-OM2VVQKB.js";
14
+ } from "./chunk-ECBV4JNL.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-Y5JA7XEO.js";
25
+ } from "./chunk-CNHPSIHY.js";
26
26
 
27
27
  // src/adapters/openai-types.ts
28
28
  var OPENAI_MODELS = {
@@ -825,4 +825,4 @@ export {
825
825
  discoverModels,
826
826
  buildOpenAICompatAdapters
827
827
  };
828
- //# sourceMappingURL=chunk-JVBI4WKP.js.map
828
+ //# sourceMappingURL=chunk-WT4BJODZ.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  emitClawGuardViolation
3
- } from "./chunk-VSETLO4Q.js";
3
+ } from "./chunk-G42V4A5Q.js";
4
4
  import {
5
5
  CACHE_TIMEOUTS,
6
6
  MCP_TIMEOUTS,
@@ -16,10 +16,10 @@ import {
16
16
  getTimeProvider,
17
17
  ok,
18
18
  resolveToolClassGuardMs
19
- } from "./chunk-Y5JA7XEO.js";
19
+ } from "./chunk-CNHPSIHY.js";
20
20
  import {
21
21
  getNexusDataDir
22
- } from "./chunk-DHVMSIT5.js";
22
+ } from "./chunk-OQLFRJCW.js";
23
23
 
24
24
  // src/mcp/middleware/validation.ts
25
25
  function validateToolInput(schema, args) {
@@ -2023,4 +2023,4 @@ export {
2023
2023
  VOTING_THRESHOLDS,
2024
2024
  ConsensusMetricsSchema
2025
2025
  };
2026
- //# sourceMappingURL=chunk-5QVJCBM4.js.map
2026
+ //# sourceMappingURL=chunk-XAWRBQB7.js.map
@@ -7,7 +7,7 @@ import {
7
7
  toolStructuredError,
8
8
  toolSuccessStructured,
9
9
  wrapToolWithTimeout
10
- } from "./chunk-5QVJCBM4.js";
10
+ } from "./chunk-XAWRBQB7.js";
11
11
  import {
12
12
  JsonlStore,
13
13
  SECURITY_KEYWORDS,
@@ -19,11 +19,11 @@ import {
19
19
  getPipelineEventBus,
20
20
  getTimeProvider,
21
21
  isDeclaredNeverDeprecate
22
- } from "./chunk-Y5JA7XEO.js";
22
+ } from "./chunk-CNHPSIHY.js";
23
23
  import {
24
24
  getNexusDataDir,
25
25
  nexusDataPath
26
- } from "./chunk-DHVMSIT5.js";
26
+ } from "./chunk-OQLFRJCW.js";
27
27
 
28
28
  // src/mcp/tools/improvement-review.ts
29
29
  import { execFile as execFile2 } from "child_process";
@@ -2132,4 +2132,4 @@ export {
2132
2132
  runImprovementReview,
2133
2133
  registerImprovementReviewTool
2134
2134
  };
2135
- //# sourceMappingURL=chunk-KYF4YAZO.js.map
2135
+ //# sourceMappingURL=chunk-XES5DPHV.js.map
@@ -1,14 +1,14 @@
1
1
  import {
2
2
  GitHubProvider,
3
3
  ScmError
4
- } from "./chunk-E35RUETV.js";
4
+ } from "./chunk-2DE5L734.js";
5
5
  import {
6
6
  resolveToken
7
- } from "./chunk-HUYP2XXH.js";
7
+ } from "./chunk-JRKF4FYO.js";
8
8
  import {
9
9
  err,
10
10
  ok
11
- } from "./chunk-Y5JA7XEO.js";
11
+ } from "./chunk-CNHPSIHY.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-KU2HPCJG.js.map
44
+ //# sourceMappingURL=chunk-XZJU6WLL.js.map
@@ -0,0 +1,38 @@
1
+ import {
2
+ nexusDataPathEnsure
3
+ } from "./chunk-OQLFRJCW.js";
4
+
5
+ // src/config/nexus-tmp-dir.ts
6
+ import { mkdirSync, mkdtempSync } from "fs";
7
+ import { mkdtemp } from "fs/promises";
8
+ import { tmpdir } from "os";
9
+ import { join, resolve } from "path";
10
+ function getNexusTmpDir() {
11
+ const fromEnv = process.env["NEXUS_TMPDIR"]?.trim();
12
+ if (fromEnv !== void 0 && fromEnv !== "") {
13
+ const dir = resolve(fromEnv);
14
+ try {
15
+ mkdirSync(dir, { recursive: true });
16
+ return dir;
17
+ } catch {
18
+ return tmpdir();
19
+ }
20
+ }
21
+ try {
22
+ return nexusDataPathEnsure("tmp");
23
+ } catch {
24
+ return tmpdir();
25
+ }
26
+ }
27
+ function nexusMkdtempSync(prefix) {
28
+ return mkdtempSync(join(getNexusTmpDir(), prefix));
29
+ }
30
+ async function nexusMkdtemp(prefix) {
31
+ return mkdtemp(join(getNexusTmpDir(), prefix));
32
+ }
33
+
34
+ export {
35
+ nexusMkdtempSync,
36
+ nexusMkdtemp
37
+ };
38
+ //# sourceMappingURL=chunk-YAF73ZMR.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/config/nexus-tmp-dir.ts"],"sourcesContent":["/**\n * Repo-scoped scratch directory (#4412).\n *\n * Short-lived working files — throwaway git worktrees, system-prompt files,\n * generated MCP configs — used to be built directly into `os.tmpdir()`. That\n * is a shared space with no owner and no budget: anything else on the machine\n * can fill it, and when it fills, the failure surfaces as unrelated nonsense.\n * On this repo it manifested as ~1,100 test files failing to *collect* with\n * zero assertion failures, which reads like a code fault and is not one.\n *\n * Scratch now lands under the data dir we already own and already gitignore,\n * in its own `tmp/` subdir so it can be reaped without touching sessions,\n * traces, or the audit chain. Resolution order:\n *\n * 1. `NEXUS_TMPDIR` — explicit operator override, wins outright.\n * 2. `<dataDir>/tmp` via {@link nexusDataPathEnsure} — inherits the existing\n * per-repo / sandbox / writability logic rather than re-deriving it.\n * 3. `os.tmpdir()` — fail-open when neither can be created.\n *\n * Step 3 is deliberate. Scratch space is a convenience, not an invariant: a\n * read-only checkout should degrade to `/tmp`, not take down every adapter\n * that needs to write a prompt file.\n *\n * @module config/nexus-tmp-dir\n */\n\nimport { mkdirSync, mkdtempSync } from 'node:fs';\nimport { mkdtemp } from 'node:fs/promises';\nimport { tmpdir } from 'node:os';\nimport { join, resolve } from 'node:path';\nimport { nexusDataPathEnsure } from './nexus-data-dir.js';\n\n/**\n * Returns an existing directory suitable for short-lived working files.\n *\n * Always returns a path that exists — callers may `mkdtemp` into it directly\n * without a preceding `mkdirSync`.\n */\nexport function getNexusTmpDir(): string {\n const fromEnv = process.env['NEXUS_TMPDIR']?.trim();\n if (fromEnv !== undefined && fromEnv !== '') {\n const dir = resolve(fromEnv);\n try {\n mkdirSync(dir, { recursive: true });\n return dir;\n } catch {\n // An override that cannot be created is an operator mistake, but not a\n // reason to fail the caller's actual work. Fall through.\n return tmpdir();\n }\n }\n\n try {\n return nexusDataPathEnsure('tmp');\n } catch {\n return tmpdir();\n }\n}\n\n/**\n * `fs.mkdtempSync` against the scratch root.\n *\n * Keep the caller's prefix descriptive — it is the only thing that makes a\n * leaked directory attributable to the code that made it.\n */\nexport function nexusMkdtempSync(prefix: string): string {\n return mkdtempSync(join(getNexusTmpDir(), prefix));\n}\n\n/** Promise-returning counterpart to {@link nexusMkdtempSync}. */\nexport async function nexusMkdtemp(prefix: string): Promise<string> {\n return mkdtemp(join(getNexusTmpDir(), prefix));\n}\n"],"mappings":";;;;;AA0BA,SAAS,WAAW,mBAAmB;AACvC,SAAS,eAAe;AACxB,SAAS,cAAc;AACvB,SAAS,MAAM,eAAe;AASvB,SAAS,iBAAyB;AACvC,QAAM,UAAU,QAAQ,IAAI,cAAc,GAAG,KAAK;AAClD,MAAI,YAAY,UAAa,YAAY,IAAI;AAC3C,UAAM,MAAM,QAAQ,OAAO;AAC3B,QAAI;AACF,gBAAU,KAAK,EAAE,WAAW,KAAK,CAAC;AAClC,aAAO;AAAA,IACT,QAAQ;AAGN,aAAO,OAAO;AAAA,IAChB;AAAA,EACF;AAEA,MAAI;AACF,WAAO,oBAAoB,KAAK;AAAA,EAClC,QAAQ;AACN,WAAO,OAAO;AAAA,EAChB;AACF;AAQO,SAAS,iBAAiB,QAAwB;AACvD,SAAO,YAAY,KAAK,eAAe,GAAG,MAAM,CAAC;AACnD;AAGA,eAAsB,aAAa,QAAiC;AAClE,SAAO,QAAQ,KAAK,eAAe,GAAG,MAAM,CAAC;AAC/C;","names":[]}
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  getRandomProvider,
3
3
  getTimeProvider
4
- } from "./chunk-Y5JA7XEO.js";
4
+ } from "./chunk-CNHPSIHY.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-SGIWJYLJ.js.map
27
+ //# sourceMappingURL=chunk-YB4QE7MD.js.map
@@ -2,7 +2,7 @@ import {
2
2
  CACHE_TIMEOUTS,
3
3
  createLogger,
4
4
  getTimeProvider
5
- } from "./chunk-Y5JA7XEO.js";
5
+ } from "./chunk-CNHPSIHY.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-KAL22DYO.js.map
563
+ //# sourceMappingURL=chunk-YU2JCUM7.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  getErrorMessage
3
- } from "./chunk-Y5JA7XEO.js";
3
+ } from "./chunk-CNHPSIHY.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-4PTAG65V.js.map
80
+ //# sourceMappingURL=chunk-Z55WHIRU.js.map
@@ -3,10 +3,10 @@ import {
3
3
  createCliCircuitBreakerIntegration,
4
4
  getCliCircuitBreakerSnapshot,
5
5
  getDefaultCliCircuitBreakerRegistry
6
- } from "./chunk-Z77MIV3C.js";
7
- import "./chunk-Y5JA7XEO.js";
8
- import "./chunk-AXTD4TFK.js";
9
- import "./chunk-DHVMSIT5.js";
6
+ } from "./chunk-5ALUADB6.js";
7
+ import "./chunk-CNHPSIHY.js";
8
+ import "./chunk-2HUC6NZN.js";
9
+ import "./chunk-OQLFRJCW.js";
10
10
  import "./chunk-ZPWHCABL.js";
11
11
  export {
12
12
  CliCircuitBreakerIntegration,
@@ -14,4 +14,4 @@ export {
14
14
  getCliCircuitBreakerSnapshot,
15
15
  getDefaultCliCircuitBreakerRegistry
16
16
  };
17
- //# sourceMappingURL=cli-circuit-breaker-EINPV2CX.js.map
17
+ //# sourceMappingURL=cli-circuit-breaker-PJOQTGFZ.js.map
package/dist/cli.js CHANGED
@@ -13,13 +13,13 @@ import {
13
13
  generateSummary,
14
14
  parseFindings,
15
15
  sumFindings
16
- } from "./chunk-YE2XMU3T.js";
17
- import "./chunk-JSIX5L3C.js";
16
+ } from "./chunk-5LTRHNOI.js";
17
+ import "./chunk-7TXEBDRM.js";
18
18
  import {
19
19
  setupCommandAsync,
20
20
  verifyCommand
21
- } from "./chunk-ASJTVA7W.js";
22
- import "./chunk-4PTAG65V.js";
21
+ } from "./chunk-H4LZLG3P.js";
22
+ import "./chunk-Z55WHIRU.js";
23
23
  import {
24
24
  AuthHandler,
25
25
  DEFAULT_EXPERTS,
@@ -139,8 +139,8 @@ import {
139
139
  validateCommand,
140
140
  validateWorkflow,
141
141
  wrapInMarkdownFence
142
- } from "./chunk-2CB6QMRX.js";
143
- import "./chunk-UB6APBIY.js";
142
+ } from "./chunk-AHXJCVMV.js";
143
+ import "./chunk-J4BGV5VE.js";
144
144
  import "./chunk-HFOQKCD2.js";
145
145
  import "./chunk-YF35FKKD.js";
146
146
  import {
@@ -166,14 +166,14 @@ import {
166
166
  loadConfig,
167
167
  runDoctor,
168
168
  validateNexusEnv
169
- } from "./chunk-YUCJ7VSJ.js";
169
+ } from "./chunk-APXGDZV4.js";
170
170
  import {
171
171
  buildOpenAICompatAdapters,
172
172
  readOpenAICompatEnv
173
- } from "./chunk-JVBI4WKP.js";
173
+ } from "./chunk-WT4BJODZ.js";
174
174
  import {
175
175
  shutdownExpertBridge
176
- } from "./chunk-PN43VH6Z.js";
176
+ } from "./chunk-G5URP3V7.js";
177
177
  import {
178
178
  ConsensusVoteInputSchema,
179
179
  DEFAULT_VOTE_TIMEOUT_MS,
@@ -183,25 +183,25 @@ import {
183
183
  executeVoting,
184
184
  mapOutcomeToDecision,
185
185
  registerConsensusVoteTool
186
- } from "./chunk-OCTNNEXT.js";
186
+ } from "./chunk-4OPEUDHY.js";
187
187
  import {
188
188
  loadUsageEvents,
189
189
  rollupByModel
190
- } from "./chunk-H5KLPUAL.js";
190
+ } from "./chunk-4S6S6S2S.js";
191
191
  import {
192
192
  synthesizeResearch
193
- } from "./chunk-3P7SMHBU.js";
193
+ } from "./chunk-JGL5HYZL.js";
194
194
  import {
195
195
  classifyTrust,
196
196
  createFullGitHubProvider,
197
197
  evaluatePolicy,
198
198
  parsePRUrl
199
- } from "./chunk-KWKGX7LC.js";
200
- import "./chunk-E35RUETV.js";
199
+ } from "./chunk-5YXHHEAG.js";
200
+ import "./chunk-2DE5L734.js";
201
201
  import {
202
202
  ReputationCache,
203
203
  sanitizeInput
204
- } from "./chunk-KAL22DYO.js";
204
+ } from "./chunk-YU2JCUM7.js";
205
205
  import {
206
206
  ImprovementReviewInputSchema,
207
207
  calculateFitnessScore,
@@ -215,15 +215,15 @@ import {
215
215
  registerImprovementReviewTool,
216
216
  runImprovementReview,
217
217
  scanForSecrets
218
- } from "./chunk-KYF4YAZO.js";
218
+ } from "./chunk-XES5DPHV.js";
219
219
  import {
220
220
  createDefaultPolicyFirewall
221
- } from "./chunk-5QVJCBM4.js";
222
- import "./chunk-VSETLO4Q.js";
221
+ } from "./chunk-XAWRBQB7.js";
222
+ import "./chunk-G42V4A5Q.js";
223
223
  import {
224
224
  createUnifiedRegistry,
225
225
  getGlobalRegistry
226
- } from "./chunk-MRRKFMYJ.js";
226
+ } from "./chunk-QQ3CUUBU.js";
227
227
  import {
228
228
  CodebaseIndexSchema,
229
229
  PaperStatusSchema,
@@ -249,27 +249,27 @@ import {
249
249
  loadSourcesRegistry,
250
250
  rankDiscoveredItems,
251
251
  saveSourcesRegistry
252
- } from "./chunk-OGR5Q6QO.js";
252
+ } from "./chunk-CGD63GSC.js";
253
253
  import {
254
254
  resolveToken
255
- } from "./chunk-HUYP2XXH.js";
255
+ } from "./chunk-JRKF4FYO.js";
256
256
  import {
257
257
  loadPapersRegistry,
258
258
  loadTechniquesRegistry,
259
259
  savePapersRegistry
260
- } from "./chunk-DJZGCMNU.js";
260
+ } from "./chunk-46XEDJRB.js";
261
261
  import "./chunk-NUBSJGQZ.js";
262
262
  import {
263
263
  MemoryError,
264
264
  shutdownToolMemory
265
- } from "./chunk-EDWON3X5.js";
265
+ } from "./chunk-NQU4LNN7.js";
266
266
  import {
267
267
  capitalize,
268
268
  capitalizeKebab
269
269
  } from "./chunk-6T3EPABN.js";
270
- import "./chunk-IVINLVGP.js";
270
+ import "./chunk-U5CV76ZW.js";
271
271
  import "./chunk-YPNQPT2F.js";
272
- import "./chunk-PINS44XA.js";
272
+ import "./chunk-DVKS77O5.js";
273
273
  import "./chunk-KSQSWEFH.js";
274
274
  import {
275
275
  NEXUS_SUBPROCESS_DEPTH_ENV,
@@ -278,16 +278,19 @@ import {
278
278
  isRecord,
279
279
  probeAllClis,
280
280
  readSubprocessDepth
281
- } from "./chunk-K6NXLBHG.js";
282
- import "./chunk-6RRAQFSX.js";
281
+ } from "./chunk-N3XDPW64.js";
282
+ import "./chunk-QI5U2YUL.js";
283
283
  import {
284
284
  DEFAULTS
285
- } from "./chunk-DGR27REV.js";
286
- import "./chunk-OM2VVQKB.js";
287
- import "./chunk-RAIFOYRM.js";
285
+ } from "./chunk-WMV2CXBB.js";
286
+ import "./chunk-ECBV4JNL.js";
287
+ import {
288
+ nexusMkdtempSync
289
+ } from "./chunk-YAF73ZMR.js";
290
+ import "./chunk-J55NMZ7R.js";
288
291
  import "./chunk-QZUG667L.js";
289
- import "./chunk-SGIWJYLJ.js";
290
- import "./chunk-Z77MIV3C.js";
292
+ import "./chunk-YB4QE7MD.js";
293
+ import "./chunk-5ALUADB6.js";
291
294
  import {
292
295
  API_TIMEOUTS,
293
296
  AgentCapability,
@@ -361,8 +364,8 @@ import {
361
364
  validateTimeout,
362
365
  writeEmptyLine,
363
366
  writeLine
364
- } from "./chunk-Y5JA7XEO.js";
365
- import "./chunk-AXTD4TFK.js";
367
+ } from "./chunk-CNHPSIHY.js";
368
+ import "./chunk-2HUC6NZN.js";
366
369
  import {
367
370
  applyPortableMode,
368
371
  detectSandbox,
@@ -372,7 +375,7 @@ import {
372
375
  nexusSharedPath,
373
376
  sessionsDbPath,
374
377
  setActiveWorkspaceRoot
375
- } from "./chunk-DHVMSIT5.js";
378
+ } from "./chunk-OQLFRJCW.js";
376
379
  import "./chunk-ZPWHCABL.js";
377
380
 
378
381
  // src/cli/cli-log-bootstrap.ts
@@ -4068,7 +4071,7 @@ ${file.patch}
4068
4071
  violations: policyResult.violations
4069
4072
  });
4070
4073
  }
4071
- const { formatReviewComment: formatReviewComment2 } = await import("./pr-reviewer-helpers-CZDMP5UJ.js");
4074
+ const { formatReviewComment: formatReviewComment2 } = await import("./pr-reviewer-helpers-6EIUJPXS.js");
4072
4075
  const body = formatReviewComment2(result);
4073
4076
  const postResult = await provider.createReview(pr.prNumber, body, result.decision);
4074
4077
  if (!postResult.ok) {
@@ -17458,7 +17461,7 @@ function startImprovementReviewScheduler(options) {
17458
17461
  let running = false;
17459
17462
  const runOnce = async () => {
17460
17463
  try {
17461
- const { runImprovementReview: runImprovementReview2, ImprovementReviewInputSchema: ImprovementReviewInputSchema2 } = await import("./improvement-review-ZMUJQSX3.js");
17464
+ const { runImprovementReview: runImprovementReview2, ImprovementReviewInputSchema: ImprovementReviewInputSchema2 } = await import("./improvement-review-PALAAG7V.js");
17462
17465
  const input = ImprovementReviewInputSchema2.parse({ fileIssues });
17463
17466
  const result = await runImprovementReview2(input, { logger: logger19 });
17464
17467
  logger19.info("Scheduled improvement_review complete", {
@@ -19512,7 +19515,7 @@ function adaptConfigToLibrary(config) {
19512
19515
  }
19513
19516
  function createBeliefPromoter() {
19514
19517
  return async (event) => {
19515
- const { getToolMemory } = await import("./tool-memory-FCEJMKEH.js");
19518
+ const { getToolMemory } = await import("./tool-memory-5REJXBCB.js");
19516
19519
  const tm = getToolMemory();
19517
19520
  await tm.recordBelief(
19518
19521
  `skill:${event.name}`,
@@ -20688,7 +20691,7 @@ async function handleResearchCommand(args) {
20688
20691
  }
20689
20692
  }
20690
20693
  async function handleRegistryCommand(args) {
20691
- const { registryCommand, isValidRegistrySubcommand, formatRegistryUsage } = await import("./registry-command-5J6RJZMS.js");
20694
+ const { registryCommand, isValidRegistrySubcommand, formatRegistryUsage } = await import("./registry-command-SVTX7FKB.js");
20692
20695
  const subcommand = args.subcommand;
20693
20696
  if (!isValidRegistrySubcommand(subcommand)) {
20694
20697
  process.stdout.write(`${formatRegistryUsage()}
@@ -20736,7 +20739,7 @@ async function handleVerifyCommand(args) {
20736
20739
  async function handleDoctorCommand(args) {
20737
20740
  const exitCode = await doctorCommand({ fix: args.options.fix });
20738
20741
  if (args.options.deep) {
20739
- const { runDeepDiagnostics: runDeepDiagnostics2, formatDeepDiagnostics: formatDeepDiagnostics2 } = await import("./doctor-deep-X2KP2G4M.js");
20742
+ const { runDeepDiagnostics: runDeepDiagnostics2, formatDeepDiagnostics: formatDeepDiagnostics2 } = await import("./doctor-deep-6HCHHMRP.js");
20740
20743
  const diag = runDeepDiagnostics2();
20741
20744
  process.stdout.write(formatDeepDiagnostics2(diag) + "\n");
20742
20745
  }
@@ -20786,7 +20789,7 @@ async function runInitPortableFlow(args) {
20786
20789
  return cliExit(result.success ? EXIT_CODES.SUCCESS : EXIT_CODES.SERVER_START_FAILED);
20787
20790
  }
20788
20791
  async function runInitOpencodeFlow(args) {
20789
- const { runInitOpencode } = await import("./init-opencode-I5XSFY34.js");
20792
+ const { runInitOpencode } = await import("./init-opencode-NUMHNVIF.js");
20790
20793
  const opencodePath = args.options.opencode;
20791
20794
  if (opencodePath === void 0 || opencodePath === "") {
20792
20795
  process.stderr.write("Error: --opencode requires a path argument.\n");
@@ -20812,7 +20815,7 @@ async function runInitOpencodeFlow(args) {
20812
20815
  return cliExit(EXIT_CODES.SUCCESS);
20813
20816
  }
20814
20817
  async function renderOpencodeValidate(opencodePath) {
20815
- const { runOpencodeValidate } = await import("./init-opencode-I5XSFY34.js");
20818
+ const { runOpencodeValidate } = await import("./init-opencode-NUMHNVIF.js");
20816
20819
  const result = await runOpencodeValidate(opencodePath);
20817
20820
  if (!result.ok) {
20818
20821
  process.stderr.write(`init --opencode --validate: ${result.reason ?? "failed"}
@@ -20851,7 +20854,7 @@ async function handleSetupCommandAsync(args) {
20851
20854
  return cliExitFromStatus(exitCode);
20852
20855
  }
20853
20856
  async function runCustomApiSetup(args) {
20854
- const { configureCustomApi } = await import("./setup-custom-api-BZSHB2M5.js");
20857
+ const { configureCustomApi } = await import("./setup-custom-api-WZPLTGRQ.js");
20855
20858
  const baseUrl = args.options.customApi;
20856
20859
  if (baseUrl === void 0) return EXIT_CODES.SERVER_START_FAILED;
20857
20860
  const input = {
@@ -23717,8 +23720,7 @@ import { createHash as createHash4 } from "crypto";
23717
23720
 
23718
23721
  // src/mcp/tools/codepr-orchestrator.ts
23719
23722
  import { createHash as createHash3 } from "crypto";
23720
- import { mkdtempSync, mkdirSync as mkdirSync6, writeFileSync as writeFileSync8, rmSync as rmSync2, realpathSync as realpathSync2 } from "fs";
23721
- import { tmpdir } from "os";
23723
+ import { mkdirSync as mkdirSync6, writeFileSync as writeFileSync8, rmSync as rmSync2, realpathSync as realpathSync2 } from "fs";
23722
23724
  import { dirname as dirname11, join as join19 } from "path";
23723
23725
  import { execFileSync as execFileSync3 } from "child_process";
23724
23726
  import { z as z11 } from "zod";
@@ -24039,7 +24041,11 @@ function sha256(s) {
24039
24041
  return createHash3("sha256").update(s).digest("hex");
24040
24042
  }
24041
24043
  function git(cwd, args) {
24042
- return execFileSync3("git", [...args], { cwd, encoding: "utf8", stdio: ["ignore", "pipe", "pipe"] });
24044
+ return execFileSync3("git", [...args], {
24045
+ cwd,
24046
+ encoding: "utf8",
24047
+ stdio: ["ignore", "pipe", "pipe"]
24048
+ });
24043
24049
  }
24044
24050
  function parseNumstat(numstat) {
24045
24051
  const files = [];
@@ -24097,7 +24103,11 @@ function precheckChanges(worktreeRoot, run, logger19) {
24097
24103
  filesTouched: 0,
24098
24104
  linesTouched: 0
24099
24105
  });
24100
- return denied("sensitive_path", `sensitive path (${cls.category}): ${change.relPath}`, recorded);
24106
+ return denied(
24107
+ "sensitive_path",
24108
+ `sensitive path (${cls.category}): ${change.relPath}`,
24109
+ recorded
24110
+ );
24101
24111
  }
24102
24112
  }
24103
24113
  return void 0;
@@ -24168,7 +24178,7 @@ function runGuardsAndPlan(args, logger19) {
24168
24178
  function runInWorktree(run, logger19, options, handle) {
24169
24179
  const fault = options.faultInjector;
24170
24180
  const repoRoot = options.repoRoot ?? process.cwd();
24171
- handle.tempParent = realpathSync2(mkdtempSync(join19(tmpdir(), "codepr-orchestrator-")));
24181
+ handle.tempParent = realpathSync2(nexusMkdtempSync("codepr-orchestrator-"));
24172
24182
  handle.worktreeRoot = join19(handle.tempParent, "wt");
24173
24183
  git(repoRoot, ["worktree", "add", "--detach", handle.worktreeRoot]);
24174
24184
  fault?.("after-worktree");