nexus-agents 3.2.3 → 3.3.1

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 (123) hide show
  1. package/dist/{child-mcp-config-7TQDBSZF.js → child-mcp-config-EXZDHJBP.js} +3 -3
  2. package/dist/{chunk-OYPTT7VJ.js → chunk-26NSVQ65.js} +52 -17
  3. package/dist/chunk-26NSVQ65.js.map +1 -0
  4. package/dist/{chunk-UPRSJALQ.js → chunk-3T3TZZKG.js} +3 -3
  5. package/dist/{chunk-HC3WUMU5.js → chunk-5QAGT56O.js} +2 -2
  6. package/dist/{chunk-FCSXIDDQ.js → chunk-5ZSWBPUZ.js} +2 -2
  7. package/dist/{chunk-SVSZBXWM.js → chunk-63EFLUVS.js} +2 -2
  8. package/dist/{chunk-AJW6TWSE.js → chunk-7HDPHBKE.js} +4 -4
  9. package/dist/{chunk-SX3UV5B6.js → chunk-7L7CUYAY.js} +4 -4
  10. package/dist/{chunk-5PM7O2LO.js → chunk-7OVUQKM2.js} +2 -2
  11. package/dist/{chunk-VYYSOP24.js → chunk-AAS6KDAB.js} +73 -8
  12. package/dist/chunk-AAS6KDAB.js.map +1 -0
  13. package/dist/{chunk-FSLKQEK2.js → chunk-CYXQRAJ2.js} +5 -5
  14. package/dist/{chunk-DHNVGWZH.js → chunk-DGMNPTPG.js} +3 -3
  15. package/dist/{chunk-CAFO4H4L.js → chunk-E6YS4KOL.js} +2 -2
  16. package/dist/{chunk-5XPHOP2H.js → chunk-EV42DVHG.js} +2 -2
  17. package/dist/{chunk-5RNS353B.js → chunk-FSDHFY3C.js} +2 -2
  18. package/dist/{chunk-PN7GAIXB.js → chunk-G2C4WNK7.js} +2 -2
  19. package/dist/{chunk-I7D5Z72Y.js → chunk-H3B6BSBZ.js} +7 -7
  20. package/dist/{chunk-AFFUBHQE.js → chunk-HPQ6QOTI.js} +5 -5
  21. package/dist/{chunk-QFYATFSD.js → chunk-IHMUW7N5.js} +2 -2
  22. package/dist/{chunk-KEIPV6HI.js → chunk-M4IFLNLT.js} +2 -2
  23. package/dist/{chunk-2VKJO2UG.js → chunk-MRSTTALY.js} +3 -3
  24. package/dist/{chunk-ABA2463H.js → chunk-NNBX6YZI.js} +2 -2
  25. package/dist/{chunk-546OAGL3.js → chunk-OBHPF5KD.js} +35 -35
  26. package/dist/{chunk-ZNM4GOKK.js → chunk-QJPR3Y4E.js} +9 -9
  27. package/dist/{chunk-OQAV3JMV.js → chunk-QZDWVJN6.js} +2 -2
  28. package/dist/{chunk-VNPKYYVU.js → chunk-RAYKASM4.js} +8 -8
  29. package/dist/{chunk-KNIGWMED.js → chunk-SISWFC5K.js} +5 -5
  30. package/dist/{chunk-YAF73ZMR.js → chunk-SNJNRDKZ.js} +2 -1
  31. package/dist/{chunk-VPYHZVBH.js → chunk-U64WRZQ2.js} +2 -2
  32. package/dist/{chunk-WB2K3FHP.js → chunk-UNDYHLRR.js} +3 -3
  33. package/dist/{chunk-BJMSMXWF.js → chunk-UWVHFMU2.js} +4 -4
  34. package/dist/{chunk-YMXYMLBB.js → chunk-XNA7SLZK.js} +5 -5
  35. package/dist/{chunk-NLRQ2NL3.js → chunk-YC3RAOU5.js} +2 -2
  36. package/dist/{chunk-FP4C6QYQ.js → chunk-YWGMDZR4.js} +2 -2
  37. package/dist/{chunk-NF4P6SI6.js → chunk-ZP5QHPDX.js} +2 -2
  38. package/dist/{cli-circuit-breaker-7J6TXKTA.js → cli-circuit-breaker-76YQJDYE.js} +3 -3
  39. package/dist/cli.js +41 -41
  40. package/dist/{composite-router-TR75423X.js → composite-router-2SGU5BWW.js} +2 -2
  41. package/dist/{consensus-vote-QF4CQ52T.js → consensus-vote-UF73LBG6.js} +17 -17
  42. package/dist/{context-retriever-ACPRWATZ.js → context-retriever-MBGPFZA7.js} +8 -8
  43. package/dist/{doctor-deep-XFUXJS3C.js → doctor-deep-N7ZS6YNE.js} +3 -3
  44. package/dist/{expert-bridge-MIPRZ6DR.js → expert-bridge-GSDGOVQT.js} +4 -4
  45. package/dist/factory-6AR32KPC.js +25 -0
  46. package/dist/{factory-4HKCUP73.js → factory-KBKFR56R.js} +5 -5
  47. package/dist/{improvement-review-WAONMFQP.js → improvement-review-B7DR4Y3C.js} +5 -5
  48. package/dist/index.js +31 -31
  49. package/dist/{init-opencode-HUSDM6DM.js → init-opencode-QBHHYWWF.js} +6 -6
  50. package/dist/{issue-triage-3Z23LPE3.js → issue-triage-5JONYJ5X.js} +6 -6
  51. package/dist/{pr-reviewer-helpers-USGSMJNS.js → pr-reviewer-helpers-JMZOSZGY.js} +4 -4
  52. package/dist/{registry-command-TLFJFRIY.js → registry-command-ZN2N6NB6.js} +2 -2
  53. package/dist/{repo-security-plan-QQRQYZJC.js → repo-security-plan-LM6CQJDK.js} +3 -3
  54. package/dist/{research-helpers-synthesize-OOMIPCBC.js → research-helpers-synthesize-5T3WTCAR.js} +4 -4
  55. package/dist/{routing-memory-7IW2EQIY.js → routing-memory-WOYMTDXS.js} +2 -2
  56. package/dist/{session-memory-ESPPBMXS.js → session-memory-2E2RFJQO.js} +3 -3
  57. package/dist/{setup-command-VHA2K7XL.js → setup-command-QZC4IQCO.js} +15 -15
  58. package/dist/{setup-config-KCR2RA4L.js → setup-config-GKSERLN5.js} +3 -3
  59. package/dist/{setup-custom-api-SP2XP7GL.js → setup-custom-api-DWREDJNN.js} +4 -4
  60. package/dist/{tool-memory-TQGBXSGU.js → tool-memory-CHAKVXF5.js} +5 -5
  61. package/dist/unified-registry-7WZ2BLIC.js +26 -0
  62. package/dist/{weather-report-35DZVJ5Y.js → weather-report-UDBU5F52.js} +2 -2
  63. package/package.json +1 -1
  64. package/dist/chunk-OYPTT7VJ.js.map +0 -1
  65. package/dist/chunk-VYYSOP24.js.map +0 -1
  66. package/dist/factory-7Q67BLII.js +0 -25
  67. package/dist/unified-registry-P6DPCF4Z.js +0 -26
  68. /package/dist/{child-mcp-config-7TQDBSZF.js.map → child-mcp-config-EXZDHJBP.js.map} +0 -0
  69. /package/dist/{chunk-UPRSJALQ.js.map → chunk-3T3TZZKG.js.map} +0 -0
  70. /package/dist/{chunk-HC3WUMU5.js.map → chunk-5QAGT56O.js.map} +0 -0
  71. /package/dist/{chunk-FCSXIDDQ.js.map → chunk-5ZSWBPUZ.js.map} +0 -0
  72. /package/dist/{chunk-SVSZBXWM.js.map → chunk-63EFLUVS.js.map} +0 -0
  73. /package/dist/{chunk-AJW6TWSE.js.map → chunk-7HDPHBKE.js.map} +0 -0
  74. /package/dist/{chunk-SX3UV5B6.js.map → chunk-7L7CUYAY.js.map} +0 -0
  75. /package/dist/{chunk-5PM7O2LO.js.map → chunk-7OVUQKM2.js.map} +0 -0
  76. /package/dist/{chunk-FSLKQEK2.js.map → chunk-CYXQRAJ2.js.map} +0 -0
  77. /package/dist/{chunk-DHNVGWZH.js.map → chunk-DGMNPTPG.js.map} +0 -0
  78. /package/dist/{chunk-CAFO4H4L.js.map → chunk-E6YS4KOL.js.map} +0 -0
  79. /package/dist/{chunk-5XPHOP2H.js.map → chunk-EV42DVHG.js.map} +0 -0
  80. /package/dist/{chunk-5RNS353B.js.map → chunk-FSDHFY3C.js.map} +0 -0
  81. /package/dist/{chunk-PN7GAIXB.js.map → chunk-G2C4WNK7.js.map} +0 -0
  82. /package/dist/{chunk-I7D5Z72Y.js.map → chunk-H3B6BSBZ.js.map} +0 -0
  83. /package/dist/{chunk-AFFUBHQE.js.map → chunk-HPQ6QOTI.js.map} +0 -0
  84. /package/dist/{chunk-QFYATFSD.js.map → chunk-IHMUW7N5.js.map} +0 -0
  85. /package/dist/{chunk-KEIPV6HI.js.map → chunk-M4IFLNLT.js.map} +0 -0
  86. /package/dist/{chunk-2VKJO2UG.js.map → chunk-MRSTTALY.js.map} +0 -0
  87. /package/dist/{chunk-ABA2463H.js.map → chunk-NNBX6YZI.js.map} +0 -0
  88. /package/dist/{chunk-546OAGL3.js.map → chunk-OBHPF5KD.js.map} +0 -0
  89. /package/dist/{chunk-ZNM4GOKK.js.map → chunk-QJPR3Y4E.js.map} +0 -0
  90. /package/dist/{chunk-OQAV3JMV.js.map → chunk-QZDWVJN6.js.map} +0 -0
  91. /package/dist/{chunk-VNPKYYVU.js.map → chunk-RAYKASM4.js.map} +0 -0
  92. /package/dist/{chunk-KNIGWMED.js.map → chunk-SISWFC5K.js.map} +0 -0
  93. /package/dist/{chunk-YAF73ZMR.js.map → chunk-SNJNRDKZ.js.map} +0 -0
  94. /package/dist/{chunk-VPYHZVBH.js.map → chunk-U64WRZQ2.js.map} +0 -0
  95. /package/dist/{chunk-WB2K3FHP.js.map → chunk-UNDYHLRR.js.map} +0 -0
  96. /package/dist/{chunk-BJMSMXWF.js.map → chunk-UWVHFMU2.js.map} +0 -0
  97. /package/dist/{chunk-YMXYMLBB.js.map → chunk-XNA7SLZK.js.map} +0 -0
  98. /package/dist/{chunk-NLRQ2NL3.js.map → chunk-YC3RAOU5.js.map} +0 -0
  99. /package/dist/{chunk-FP4C6QYQ.js.map → chunk-YWGMDZR4.js.map} +0 -0
  100. /package/dist/{chunk-NF4P6SI6.js.map → chunk-ZP5QHPDX.js.map} +0 -0
  101. /package/dist/{cli-circuit-breaker-7J6TXKTA.js.map → cli-circuit-breaker-76YQJDYE.js.map} +0 -0
  102. /package/dist/{composite-router-TR75423X.js.map → composite-router-2SGU5BWW.js.map} +0 -0
  103. /package/dist/{consensus-vote-QF4CQ52T.js.map → consensus-vote-UF73LBG6.js.map} +0 -0
  104. /package/dist/{context-retriever-ACPRWATZ.js.map → context-retriever-MBGPFZA7.js.map} +0 -0
  105. /package/dist/{doctor-deep-XFUXJS3C.js.map → doctor-deep-N7ZS6YNE.js.map} +0 -0
  106. /package/dist/{expert-bridge-MIPRZ6DR.js.map → expert-bridge-GSDGOVQT.js.map} +0 -0
  107. /package/dist/{factory-4HKCUP73.js.map → factory-6AR32KPC.js.map} +0 -0
  108. /package/dist/{factory-7Q67BLII.js.map → factory-KBKFR56R.js.map} +0 -0
  109. /package/dist/{improvement-review-WAONMFQP.js.map → improvement-review-B7DR4Y3C.js.map} +0 -0
  110. /package/dist/{init-opencode-HUSDM6DM.js.map → init-opencode-QBHHYWWF.js.map} +0 -0
  111. /package/dist/{issue-triage-3Z23LPE3.js.map → issue-triage-5JONYJ5X.js.map} +0 -0
  112. /package/dist/{pr-reviewer-helpers-USGSMJNS.js.map → pr-reviewer-helpers-JMZOSZGY.js.map} +0 -0
  113. /package/dist/{registry-command-TLFJFRIY.js.map → registry-command-ZN2N6NB6.js.map} +0 -0
  114. /package/dist/{repo-security-plan-QQRQYZJC.js.map → repo-security-plan-LM6CQJDK.js.map} +0 -0
  115. /package/dist/{research-helpers-synthesize-OOMIPCBC.js.map → research-helpers-synthesize-5T3WTCAR.js.map} +0 -0
  116. /package/dist/{routing-memory-7IW2EQIY.js.map → routing-memory-WOYMTDXS.js.map} +0 -0
  117. /package/dist/{session-memory-ESPPBMXS.js.map → session-memory-2E2RFJQO.js.map} +0 -0
  118. /package/dist/{setup-command-VHA2K7XL.js.map → setup-command-QZC4IQCO.js.map} +0 -0
  119. /package/dist/{setup-config-KCR2RA4L.js.map → setup-config-GKSERLN5.js.map} +0 -0
  120. /package/dist/{setup-custom-api-SP2XP7GL.js.map → setup-custom-api-DWREDJNN.js.map} +0 -0
  121. /package/dist/{tool-memory-TQGBXSGU.js.map → tool-memory-CHAKVXF5.js.map} +0 -0
  122. /package/dist/{unified-registry-P6DPCF4Z.js.map → unified-registry-7WZ2BLIC.js.map} +0 -0
  123. /package/dist/{weather-report-35DZVJ5Y.js.map → weather-report-UDBU5F52.js.map} +0 -0
@@ -7,7 +7,7 @@ import {
7
7
  toolStructuredError,
8
8
  toolSuccessStructured,
9
9
  wrapToolWithTimeout
10
- } from "./chunk-WB2K3FHP.js";
10
+ } from "./chunk-UNDYHLRR.js";
11
11
  import {
12
12
  JsonlStore,
13
13
  SECURITY_KEYWORDS,
@@ -19,7 +19,7 @@ import {
19
19
  getPipelineEventBus,
20
20
  getTimeProvider,
21
21
  isDeclaredNeverDeprecate
22
- } from "./chunk-OYPTT7VJ.js";
22
+ } from "./chunk-26NSVQ65.js";
23
23
  import {
24
24
  getNexusDataDir,
25
25
  nexusDataPath
@@ -2132,4 +2132,4 @@ export {
2132
2132
  runImprovementReview,
2133
2133
  registerImprovementReviewTool
2134
2134
  };
2135
- //# sourceMappingURL=chunk-UPRSJALQ.js.map
2135
+ //# sourceMappingURL=chunk-3T3TZZKG.js.map
@@ -4,7 +4,7 @@ import {
4
4
  err,
5
5
  getErrorMessage,
6
6
  ok
7
- } from "./chunk-OYPTT7VJ.js";
7
+ } from "./chunk-26NSVQ65.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-HC3WUMU5.js.map
266
+ //# sourceMappingURL=chunk-5QAGT56O.js.map
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  getRandomProvider,
3
3
  getTimeProvider
4
- } from "./chunk-OYPTT7VJ.js";
4
+ } from "./chunk-26NSVQ65.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-FCSXIDDQ.js.map
27
+ //# sourceMappingURL=chunk-5ZSWBPUZ.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  getTimeProvider
3
- } from "./chunk-OYPTT7VJ.js";
3
+ } from "./chunk-26NSVQ65.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-SVSZBXWM.js.map
208
+ //# sourceMappingURL=chunk-63EFLUVS.js.map
@@ -5,7 +5,7 @@ import {
5
5
  } from "./chunk-6T3EPABN.js";
6
6
  import {
7
7
  SessionMemory
8
- } from "./chunk-NLRQ2NL3.js";
8
+ } from "./chunk-YC3RAOU5.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-FCSXIDDQ.js";
18
+ } from "./chunk-5ZSWBPUZ.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-OYPTT7VJ.js";
31
+ } from "./chunk-26NSVQ65.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-AJW6TWSE.js.map
5555
+ //# sourceMappingURL=chunk-7HDPHBKE.js.map
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  createAutoAdapter
3
- } from "./chunk-ZNM4GOKK.js";
3
+ } from "./chunk-QJPR3Y4E.js";
4
4
  import {
5
5
  mapModelErrorToCategory
6
- } from "./chunk-5PM7O2LO.js";
6
+ } from "./chunk-7OVUQKM2.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-OYPTT7VJ.js";
24
+ } from "./chunk-26NSVQ65.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-SX3UV5B6.js.map
836
+ //# sourceMappingURL=chunk-7L7CUYAY.js.map
@@ -8,7 +8,7 @@ import {
8
8
  getTimeProvider,
9
9
  isRateLimitText,
10
10
  ok
11
- } from "./chunk-OYPTT7VJ.js";
11
+ } from "./chunk-26NSVQ65.js";
12
12
 
13
13
  // src/cli-adapters/circuit-breaker-types.ts
14
14
  var CircuitErrorCode = {
@@ -540,4 +540,4 @@ export {
540
540
  CliCircuitBreakerIntegration,
541
541
  createCliCircuitBreakerIntegration
542
542
  };
543
- //# sourceMappingURL=chunk-5PM7O2LO.js.map
543
+ //# sourceMappingURL=chunk-7OVUQKM2.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  readOpenAICompatEnv
3
- } from "./chunk-FSLKQEK2.js";
3
+ } from "./chunk-CYXQRAJ2.js";
4
4
  import {
5
5
  resolveInsideRoot
6
6
  } from "./chunk-NUBSJGQZ.js";
@@ -10,10 +10,13 @@ import {
10
10
  import {
11
11
  createAllAdapters,
12
12
  probeCli
13
- } from "./chunk-ZNM4GOKK.js";
13
+ } from "./chunk-QJPR3Y4E.js";
14
14
  import {
15
15
  DEFAULTS
16
- } from "./chunk-VPYHZVBH.js";
16
+ } from "./chunk-U64WRZQ2.js";
17
+ import {
18
+ getNexusTmpDir
19
+ } from "./chunk-SNJNRDKZ.js";
17
20
  import {
18
21
  CliNameSchema,
19
22
  DEFAULT_CAPABILITIES,
@@ -30,7 +33,7 @@ import {
30
33
  ok,
31
34
  symbols,
32
35
  writeLine
33
- } from "./chunk-OYPTT7VJ.js";
36
+ } from "./chunk-26NSVQ65.js";
34
37
  import {
35
38
  getLearningDir,
36
39
  getOutcomesFile,
@@ -46,7 +49,7 @@ import {
46
49
  } from "./chunk-OQLFRJCW.js";
47
50
 
48
51
  // src/version.ts
49
- var VERSION = true ? "3.2.3" : "dev";
52
+ var VERSION = true ? "3.3.1" : "dev";
50
53
 
51
54
  // src/config/schemas-core.ts
52
55
  import { z } from "zod";
@@ -1250,6 +1253,65 @@ import {
1250
1253
  constants as fsConstants
1251
1254
  } from "fs";
1252
1255
 
1256
+ // src/cli/doctor-scratch-space.ts
1257
+ import { statfsSync } from "fs";
1258
+ var MIB = 1024 * 1024;
1259
+ var GIB = 1024 * 1024 * 1024;
1260
+ var CRITICAL_FREE_BYTES = 512 * MIB;
1261
+ var WARN_FREE_BYTES = 2 * GIB;
1262
+ function formatBytes(bytes) {
1263
+ if (bytes >= GIB) return `${(bytes / GIB).toFixed(1)} GiB`;
1264
+ return `${(bytes / MIB).toFixed(0)} MiB`;
1265
+ }
1266
+ function grade(freeBytes) {
1267
+ if (freeBytes < CRITICAL_FREE_BYTES) return "critical";
1268
+ if (freeBytes < WARN_FREE_BYTES) return "warn";
1269
+ return "ok";
1270
+ }
1271
+ function checkScratchSpace(root = getNexusTmpDir(), statfs = statfsSync) {
1272
+ let reading;
1273
+ try {
1274
+ reading = statfs(root);
1275
+ } catch {
1276
+ return {
1277
+ root,
1278
+ available: false,
1279
+ freeBytes: 0,
1280
+ totalBytes: 0,
1281
+ percentUsed: 0,
1282
+ severity: "ok",
1283
+ message: `Scratch filesystem at ${root} could not be read (statfs unavailable)`
1284
+ };
1285
+ }
1286
+ const totalBytes = reading.blocks * reading.bsize;
1287
+ const freeBytes = reading.bavail * reading.bsize;
1288
+ const percentUsed = totalBytes > 0 ? Math.round((totalBytes - freeBytes) / totalBytes * 100) : 100;
1289
+ const severity = grade(freeBytes);
1290
+ return {
1291
+ root,
1292
+ available: true,
1293
+ freeBytes,
1294
+ totalBytes,
1295
+ percentUsed,
1296
+ severity,
1297
+ message: `${formatBytes(freeBytes)} free of ${formatBytes(totalBytes)} (${String(percentUsed)}% used)`
1298
+ };
1299
+ }
1300
+ function formatScratchSpace(check) {
1301
+ if (!check.available) {
1302
+ return ` \u26A0 Scratch space: ${check.message}`;
1303
+ }
1304
+ const icon = check.severity === "ok" ? "\u2713" : check.severity === "warn" ? "\u26A0" : "\u2717";
1305
+ const line = ` ${icon} Scratch space (${check.root}): ${check.message}`;
1306
+ if (check.severity === "ok") return line;
1307
+ return [
1308
+ line,
1309
+ " A full scratch filesystem fails subprocesses at the write step, after",
1310
+ " they have done their work, so output is lost rather than refused.",
1311
+ " Free space, or point NEXUS_TMPDIR at a roomier filesystem."
1312
+ ].join("\n");
1313
+ }
1314
+
1253
1315
  // src/mcp/server.ts
1254
1316
  import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
1255
1317
  import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js";
@@ -1724,6 +1786,7 @@ function printDoctorResults(result) {
1724
1786
  writeLine("");
1725
1787
  printSqliteCheck(result.sqliteCheck);
1726
1788
  printDataDirectory(result.dataDirectory);
1789
+ writeLine(formatScratchSpace(result.scratchSpace));
1727
1790
  writeLine("");
1728
1791
  printSandbox(result.sandbox);
1729
1792
  printHarnessAlignment(result.harnessAlignment);
@@ -2151,6 +2214,7 @@ async function runDoctor() {
2151
2214
  const sandbox = checkSandbox();
2152
2215
  const harnessAlignment = checkHarnessAlignment();
2153
2216
  const voterTransport = checkVoterTransport();
2217
+ const scratchSpace = checkScratchSpace();
2154
2218
  const hasAuthMethod = apiKeys.some((k) => k.configured) || clis.some((c) => c.installed && c.authenticated);
2155
2219
  const allHealthy = nodeVersion.supported && hasAuthMethod && mcpServerReady && clis.every((c) => c.installed && c.authenticated && c.versionStatus !== "unsupported");
2156
2220
  return {
@@ -2167,6 +2231,7 @@ async function runDoctor() {
2167
2231
  sandbox,
2168
2232
  harnessAlignment,
2169
2233
  voterTransport,
2234
+ scratchSpace,
2170
2235
  allHealthy,
2171
2236
  timestamp: new Date(getTimeProvider().now())
2172
2237
  };
@@ -2188,7 +2253,7 @@ async function runDoctorFix(result) {
2188
2253
  writeLine2("\u2500".repeat(40));
2189
2254
  let fixCount = 0;
2190
2255
  if (!result.dataDirectory.rootExists || result.dataDirectory.subdirectories.some((d) => !d.exists || !d.writable)) {
2191
- const { runSetup } = await import("./setup-command-VHA2K7XL.js");
2256
+ const { runSetup } = await import("./setup-command-QZC4IQCO.js");
2192
2257
  const setupResult = runSetup({
2193
2258
  skipMcp: true,
2194
2259
  skipRules: true,
@@ -2202,7 +2267,7 @@ async function runDoctorFix(result) {
2202
2267
  }
2203
2268
  }
2204
2269
  if (!result.configFile.found) {
2205
- const { runConfigInitSync } = await import("./setup-config-KCR2RA4L.js");
2270
+ const { runConfigInitSync } = await import("./setup-config-GKSERLN5.js");
2206
2271
  const configResult = runConfigInitSync(process.cwd(), false, false);
2207
2272
  if (configResult.success && configResult.created) {
2208
2273
  writeLine2(`\u2713 Generated config: ${configResult.path}`);
@@ -2301,4 +2366,4 @@ export {
2301
2366
  startStdioServer,
2302
2367
  closeServer
2303
2368
  };
2304
- //# sourceMappingURL=chunk-VYYSOP24.js.map
2369
+ //# sourceMappingURL=chunk-AAS6KDAB.js.map