nexus-agents 8.47.7 → 8.47.9

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 (128) hide show
  1. package/dist/{ast-rule-runner-EHBBZKQ7.js → ast-rule-runner-74D2KNCC.js} +3 -3
  2. package/dist/{child-mcp-config-H7Q4VHVK.js → child-mcp-config-KTR6MPNZ.js} +2 -2
  3. package/dist/{chunk-KNGST6PU.js → chunk-2HRAO3DD.js} +3 -3
  4. package/dist/{chunk-REEQOJUH.js → chunk-4TE5DJHO.js} +2 -2
  5. package/dist/{chunk-ETTYFUV6.js → chunk-5ONSIV4D.js} +2 -2
  6. package/dist/{chunk-3QAL5UIY.js → chunk-62CSX5QU.js} +2 -2
  7. package/dist/{chunk-JOP5NFAQ.js → chunk-7I3LY4HJ.js} +2 -2
  8. package/dist/{chunk-RVPB3BHL.js → chunk-7QY3RIIY.js} +7 -7
  9. package/dist/{chunk-Q7O7SACB.js → chunk-7WZHA4DG.js} +24 -15
  10. package/dist/{chunk-Q7O7SACB.js.map → chunk-7WZHA4DG.js.map} +1 -1
  11. package/dist/{chunk-QYPDW4PU.js → chunk-7XT6WVSB.js} +2 -2
  12. package/dist/{chunk-U54ZN4E6.js → chunk-7YHOHQJR.js} +5 -5
  13. package/dist/{chunk-QURCW325.js → chunk-AZPM542H.js} +11 -7
  14. package/dist/{chunk-QURCW325.js.map → chunk-AZPM542H.js.map} +1 -1
  15. package/dist/{chunk-X3W235GA.js → chunk-CJ5FEUI2.js} +3 -3
  16. package/dist/{chunk-DN47AWK3.js → chunk-DF6M73XJ.js} +2 -2
  17. package/dist/{chunk-3KA4RFGM.js → chunk-DVBGHGU3.js} +2 -2
  18. package/dist/{chunk-LOU252L2.js → chunk-E4GEUHMH.js} +6 -6
  19. package/dist/{chunk-7PN6YCEA.js → chunk-F6HORFHH.js} +2 -2
  20. package/dist/{chunk-RWC5WRR3.js → chunk-GLDBWMOB.js} +5 -5
  21. package/dist/{chunk-UOYS6IQ4.js → chunk-J4WZDK2X.js} +8 -8
  22. package/dist/{chunk-MWQ2UYSX.js → chunk-JOVBHYWW.js} +2 -2
  23. package/dist/{chunk-6B7YJMG4.js → chunk-KQBS4UW5.js} +2 -2
  24. package/dist/{chunk-O72VDOFO.js → chunk-KRPSDJOP.js} +2 -2
  25. package/dist/{chunk-CXXQ36SZ.js → chunk-L7DROS6X.js} +2 -2
  26. package/dist/{chunk-JMUITMBB.js → chunk-ODPVHHUW.js} +2 -2
  27. package/dist/{chunk-XCKEQLRC.js → chunk-QOKB6MWY.js} +4 -4
  28. package/dist/{chunk-DYSJLP7T.js → chunk-R247RR7W.js} +2 -2
  29. package/dist/{chunk-FMTKKJP7.js → chunk-RBNJYWQ6.js} +4 -4
  30. package/dist/{chunk-7S4ZLD4G.js → chunk-SBCEQWUN.js} +8 -8
  31. package/dist/{chunk-BY6NRKVI.js → chunk-SBMYB6N3.js} +36 -17
  32. package/dist/chunk-SBMYB6N3.js.map +1 -0
  33. package/dist/{chunk-FTOJAN24.js → chunk-SNCZAGQZ.js} +4 -4
  34. package/dist/{chunk-JF74MIER.js → chunk-TE6UUPOA.js} +2 -2
  35. package/dist/{chunk-OKSGCMDV.js → chunk-UPOY72RW.js} +3 -3
  36. package/dist/{chunk-ZDUIEKVX.js → chunk-WID3S2DT.js} +2 -2
  37. package/dist/{chunk-AA5OUZR6.js → chunk-X7EXIH67.js} +4 -4
  38. package/dist/{chunk-KVWEVIPU.js → chunk-XF2MVUCH.js} +70 -48
  39. package/dist/{chunk-KVWEVIPU.js.map → chunk-XF2MVUCH.js.map} +1 -1
  40. package/dist/{chunk-KAGMXQMM.js → chunk-YPU4OHBU.js} +2 -2
  41. package/dist/{cli-circuit-breaker-TWGNVVI2.js → cli-circuit-breaker-QZLD2EOM.js} +3 -3
  42. package/dist/cli.js +55 -49
  43. package/dist/cli.js.map +1 -1
  44. package/dist/{composite-router-MKYW26IA.js → composite-router-JLXK7CPT.js} +2 -2
  45. package/dist/{consensus-vote-TAZ2YBDV.js → consensus-vote-MLBVGI2A.js} +17 -17
  46. package/dist/{context-retriever-SNA6CRKC.js → context-retriever-7RE3EZCH.js} +8 -8
  47. package/dist/{doctor-deep-LAWVMKF7.js → doctor-deep-LVNRCVLP.js} +3 -3
  48. package/dist/{doctor-live-IMA6R5JK.js → doctor-live-5JJSWTEW.js} +9 -9
  49. package/dist/{expert-bridge-HNVJWGFN.js → expert-bridge-VKTP3RAL.js} +4 -4
  50. package/dist/{factory-I3QFIRBK.js → factory-GESVEWDP.js} +9 -9
  51. package/dist/{factory-HDDNT4Y4.js → factory-XV6E75D7.js} +5 -5
  52. package/dist/{improvement-review-AKJN5RXY.js → improvement-review-CEX6ZSWA.js} +6 -6
  53. package/dist/index.d.ts +56 -3
  54. package/dist/index.js +31 -31
  55. package/dist/{init-opencode-O6YZ22XI.js → init-opencode-522IQ3OS.js} +6 -6
  56. package/dist/issue-triage-WCJZQONF.js +17 -0
  57. package/dist/{pr-reviewer-helpers-RWNTTUMR.js → pr-reviewer-helpers-UZVC2NQW.js} +4 -4
  58. package/dist/{registry-command-HFHNOECT.js → registry-command-257AWC4P.js} +2 -2
  59. package/dist/{repo-security-plan-4JKIYRQH.js → repo-security-plan-BF7VE3ML.js} +3 -3
  60. package/dist/{research-helpers-synthesize-4ZS432XJ.js → research-helpers-synthesize-RNF6Y7XV.js} +4 -4
  61. package/dist/{routing-memory-FJFDW2BK.js → routing-memory-RBKPFXHQ.js} +2 -2
  62. package/dist/{session-memory-QP7J6YYG.js → session-memory-BQVXGS2D.js} +3 -3
  63. package/dist/{setup-config-4UWNJ52I.js → setup-config-IXTT2I5T.js} +3 -3
  64. package/dist/{setup-custom-api-3G75IXNS.js → setup-custom-api-75HAWD5G.js} +4 -4
  65. package/dist/setup-data-dir-3TOTRWJ5.js +30 -0
  66. package/dist/{tool-memory-HWESCWZI.js → tool-memory-FU5M6HD5.js} +5 -5
  67. package/dist/{unified-registry-M4MWH6HK.js → unified-registry-YJ2Z43E2.js} +10 -10
  68. package/dist/{weather-report-SCNDWSA4.js → weather-report-ME2HVR3F.js} +2 -2
  69. package/package.json +1 -1
  70. package/dist/chunk-BY6NRKVI.js.map +0 -1
  71. package/dist/issue-triage-U4WOMZSI.js +0 -17
  72. package/dist/setup-data-dir-4ZJEO3GZ.js +0 -30
  73. /package/dist/{ast-rule-runner-EHBBZKQ7.js.map → ast-rule-runner-74D2KNCC.js.map} +0 -0
  74. /package/dist/{child-mcp-config-H7Q4VHVK.js.map → child-mcp-config-KTR6MPNZ.js.map} +0 -0
  75. /package/dist/{chunk-KNGST6PU.js.map → chunk-2HRAO3DD.js.map} +0 -0
  76. /package/dist/{chunk-REEQOJUH.js.map → chunk-4TE5DJHO.js.map} +0 -0
  77. /package/dist/{chunk-ETTYFUV6.js.map → chunk-5ONSIV4D.js.map} +0 -0
  78. /package/dist/{chunk-3QAL5UIY.js.map → chunk-62CSX5QU.js.map} +0 -0
  79. /package/dist/{chunk-JOP5NFAQ.js.map → chunk-7I3LY4HJ.js.map} +0 -0
  80. /package/dist/{chunk-RVPB3BHL.js.map → chunk-7QY3RIIY.js.map} +0 -0
  81. /package/dist/{chunk-QYPDW4PU.js.map → chunk-7XT6WVSB.js.map} +0 -0
  82. /package/dist/{chunk-U54ZN4E6.js.map → chunk-7YHOHQJR.js.map} +0 -0
  83. /package/dist/{chunk-X3W235GA.js.map → chunk-CJ5FEUI2.js.map} +0 -0
  84. /package/dist/{chunk-DN47AWK3.js.map → chunk-DF6M73XJ.js.map} +0 -0
  85. /package/dist/{chunk-3KA4RFGM.js.map → chunk-DVBGHGU3.js.map} +0 -0
  86. /package/dist/{chunk-LOU252L2.js.map → chunk-E4GEUHMH.js.map} +0 -0
  87. /package/dist/{chunk-7PN6YCEA.js.map → chunk-F6HORFHH.js.map} +0 -0
  88. /package/dist/{chunk-RWC5WRR3.js.map → chunk-GLDBWMOB.js.map} +0 -0
  89. /package/dist/{chunk-UOYS6IQ4.js.map → chunk-J4WZDK2X.js.map} +0 -0
  90. /package/dist/{chunk-MWQ2UYSX.js.map → chunk-JOVBHYWW.js.map} +0 -0
  91. /package/dist/{chunk-6B7YJMG4.js.map → chunk-KQBS4UW5.js.map} +0 -0
  92. /package/dist/{chunk-O72VDOFO.js.map → chunk-KRPSDJOP.js.map} +0 -0
  93. /package/dist/{chunk-CXXQ36SZ.js.map → chunk-L7DROS6X.js.map} +0 -0
  94. /package/dist/{chunk-JMUITMBB.js.map → chunk-ODPVHHUW.js.map} +0 -0
  95. /package/dist/{chunk-XCKEQLRC.js.map → chunk-QOKB6MWY.js.map} +0 -0
  96. /package/dist/{chunk-DYSJLP7T.js.map → chunk-R247RR7W.js.map} +0 -0
  97. /package/dist/{chunk-FMTKKJP7.js.map → chunk-RBNJYWQ6.js.map} +0 -0
  98. /package/dist/{chunk-7S4ZLD4G.js.map → chunk-SBCEQWUN.js.map} +0 -0
  99. /package/dist/{chunk-FTOJAN24.js.map → chunk-SNCZAGQZ.js.map} +0 -0
  100. /package/dist/{chunk-JF74MIER.js.map → chunk-TE6UUPOA.js.map} +0 -0
  101. /package/dist/{chunk-OKSGCMDV.js.map → chunk-UPOY72RW.js.map} +0 -0
  102. /package/dist/{chunk-ZDUIEKVX.js.map → chunk-WID3S2DT.js.map} +0 -0
  103. /package/dist/{chunk-AA5OUZR6.js.map → chunk-X7EXIH67.js.map} +0 -0
  104. /package/dist/{chunk-KAGMXQMM.js.map → chunk-YPU4OHBU.js.map} +0 -0
  105. /package/dist/{cli-circuit-breaker-TWGNVVI2.js.map → cli-circuit-breaker-QZLD2EOM.js.map} +0 -0
  106. /package/dist/{composite-router-MKYW26IA.js.map → composite-router-JLXK7CPT.js.map} +0 -0
  107. /package/dist/{consensus-vote-TAZ2YBDV.js.map → consensus-vote-MLBVGI2A.js.map} +0 -0
  108. /package/dist/{context-retriever-SNA6CRKC.js.map → context-retriever-7RE3EZCH.js.map} +0 -0
  109. /package/dist/{doctor-deep-LAWVMKF7.js.map → doctor-deep-LVNRCVLP.js.map} +0 -0
  110. /package/dist/{doctor-live-IMA6R5JK.js.map → doctor-live-5JJSWTEW.js.map} +0 -0
  111. /package/dist/{expert-bridge-HNVJWGFN.js.map → expert-bridge-VKTP3RAL.js.map} +0 -0
  112. /package/dist/{factory-HDDNT4Y4.js.map → factory-GESVEWDP.js.map} +0 -0
  113. /package/dist/{factory-I3QFIRBK.js.map → factory-XV6E75D7.js.map} +0 -0
  114. /package/dist/{improvement-review-AKJN5RXY.js.map → improvement-review-CEX6ZSWA.js.map} +0 -0
  115. /package/dist/{init-opencode-O6YZ22XI.js.map → init-opencode-522IQ3OS.js.map} +0 -0
  116. /package/dist/{issue-triage-U4WOMZSI.js.map → issue-triage-WCJZQONF.js.map} +0 -0
  117. /package/dist/{pr-reviewer-helpers-RWNTTUMR.js.map → pr-reviewer-helpers-UZVC2NQW.js.map} +0 -0
  118. /package/dist/{registry-command-HFHNOECT.js.map → registry-command-257AWC4P.js.map} +0 -0
  119. /package/dist/{repo-security-plan-4JKIYRQH.js.map → repo-security-plan-BF7VE3ML.js.map} +0 -0
  120. /package/dist/{research-helpers-synthesize-4ZS432XJ.js.map → research-helpers-synthesize-RNF6Y7XV.js.map} +0 -0
  121. /package/dist/{routing-memory-FJFDW2BK.js.map → routing-memory-RBKPFXHQ.js.map} +0 -0
  122. /package/dist/{session-memory-QP7J6YYG.js.map → session-memory-BQVXGS2D.js.map} +0 -0
  123. /package/dist/{setup-config-4UWNJ52I.js.map → setup-config-IXTT2I5T.js.map} +0 -0
  124. /package/dist/{setup-custom-api-3G75IXNS.js.map → setup-custom-api-75HAWD5G.js.map} +0 -0
  125. /package/dist/{setup-data-dir-4ZJEO3GZ.js.map → setup-data-dir-3TOTRWJ5.js.map} +0 -0
  126. /package/dist/{tool-memory-HWESCWZI.js.map → tool-memory-FU5M6HD5.js.map} +0 -0
  127. /package/dist/{unified-registry-M4MWH6HK.js.map → unified-registry-YJ2Z43E2.js.map} +0 -0
  128. /package/dist/{weather-report-SCNDWSA4.js.map → weather-report-ME2HVR3F.js.map} +0 -0
@@ -9,8 +9,8 @@ import {
9
9
  getBuiltInAstRulesPath,
10
10
  loadRules,
11
11
  runAstQaRules
12
- } from "./chunk-O72VDOFO.js";
13
- import "./chunk-QURCW325.js";
12
+ } from "./chunk-KRPSDJOP.js";
13
+ import "./chunk-AZPM542H.js";
14
14
  import "./chunk-MTYJPPIG.js";
15
15
  import "./chunk-BTYRPZON.js";
16
16
  import "./chunk-ZPWHCABL.js";
@@ -26,4 +26,4 @@ export {
26
26
  loadRules,
27
27
  runAstQaRules
28
28
  };
29
- //# sourceMappingURL=ast-rule-runner-EHBBZKQ7.js.map
29
+ //# sourceMappingURL=ast-rule-runner-74D2KNCC.js.map
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-T46RV7Y7.js";
4
4
  import {
5
5
  createLogger
6
- } from "./chunk-QURCW325.js";
6
+ } from "./chunk-AZPM542H.js";
7
7
  import "./chunk-MTYJPPIG.js";
8
8
  import "./chunk-BTYRPZON.js";
9
9
  import "./chunk-ZPWHCABL.js";
@@ -60,4 +60,4 @@ export {
60
60
  generateMcpConfig,
61
61
  getDefaultAllowedTools
62
62
  };
63
- //# sourceMappingURL=child-mcp-config-H7Q4VHVK.js.map
63
+ //# sourceMappingURL=child-mcp-config-KTR6MPNZ.js.map
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  loadPapersRegistry
3
- } from "./chunk-JMUITMBB.js";
3
+ } from "./chunk-ODPVHHUW.js";
4
4
  import {
5
5
  getErrorMessage
6
- } from "./chunk-QURCW325.js";
6
+ } from "./chunk-AZPM542H.js";
7
7
 
8
8
  // src/cli/research-helpers-synthesize.ts
9
9
  import { z } from "zod";
@@ -876,4 +876,4 @@ export {
876
876
  AttributedInsightSchema,
877
877
  synthesizeResearch
878
878
  };
879
- //# sourceMappingURL=chunk-KNGST6PU.js.map
879
+ //# sourceMappingURL=chunk-2HRAO3DD.js.map
@@ -3,7 +3,7 @@ import {
3
3
  MODEL_IDS,
4
4
  getTimeProvider,
5
5
  resolveModelIdentitySync
6
- } from "./chunk-QURCW325.js";
6
+ } from "./chunk-AZPM542H.js";
7
7
 
8
8
  // src/config/model-availability.ts
9
9
  var DEFAULT_TTL_MS = 6e4;
@@ -150,4 +150,4 @@ export {
150
150
  resetAvailabilityCache,
151
151
  filterAvailableModels
152
152
  };
153
- //# sourceMappingURL=chunk-REEQOJUH.js.map
153
+ //# sourceMappingURL=chunk-4TE5DJHO.js.map
@@ -4,7 +4,7 @@ import {
4
4
  err,
5
5
  getErrorMessage,
6
6
  ok
7
- } from "./chunk-QURCW325.js";
7
+ } from "./chunk-AZPM542H.js";
8
8
 
9
9
  // src/scm/types.ts
10
10
  var ScmError = class extends Error {
@@ -281,4 +281,4 @@ export {
281
281
  ScmError,
282
282
  GitHubProvider
283
283
  };
284
- //# sourceMappingURL=chunk-ETTYFUV6.js.map
284
+ //# sourceMappingURL=chunk-5ONSIV4D.js.map
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  getRandomProvider,
3
3
  getTimeProvider
4
- } from "./chunk-QURCW325.js";
4
+ } from "./chunk-AZPM542H.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-3QAL5UIY.js.map
27
+ //# sourceMappingURL=chunk-62CSX5QU.js.map
@@ -2,7 +2,7 @@ import {
2
2
  CACHE_TIMEOUTS,
3
3
  createLogger,
4
4
  getTimeProvider
5
- } from "./chunk-QURCW325.js";
5
+ } from "./chunk-AZPM542H.js";
6
6
 
7
7
  // src/security/trust-types.ts
8
8
  import { z } from "zod";
@@ -610,4 +610,4 @@ export {
610
610
  resolveReputationGatingMode,
611
611
  gateWithReputation
612
612
  };
613
- //# sourceMappingURL=chunk-JOP5NFAQ.js.map
613
+ //# sourceMappingURL=chunk-7I3LY4HJ.js.map
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  resolveCliSlot
3
- } from "./chunk-REEQOJUH.js";
3
+ } from "./chunk-4TE5DJHO.js";
4
4
  import {
5
5
  createLogger,
6
6
  getTimeProvider,
7
7
  isRateLimitText
8
- } from "./chunk-QURCW325.js";
8
+ } from "./chunk-AZPM542H.js";
9
9
 
10
10
  // src/pipeline/expert-bridge.ts
11
11
  function resolveCliFromModelString(model) {
@@ -21,7 +21,7 @@ async function getMcpConfigPath() {
21
21
  if (cachedMcpConfigPath !== null) return cachedMcpConfigPath;
22
22
  mcpConfigInitPromise ??= (async () => {
23
23
  try {
24
- const { generateMcpConfig } = await import("./child-mcp-config-H7Q4VHVK.js");
24
+ const { generateMcpConfig } = await import("./child-mcp-config-KTR6MPNZ.js");
25
25
  const config = await generateMcpConfig();
26
26
  cachedMcpConfigPath = config.configPath;
27
27
  cachedMcpConfigCleanup = config.cleanup;
@@ -93,8 +93,8 @@ var routerInitPromise = null;
93
93
  async function getRouter() {
94
94
  if (cachedRouter !== null) return cachedRouter;
95
95
  routerInitPromise ??= (async () => {
96
- const { createAllAdapters } = await import("./factory-I3QFIRBK.js");
97
- const { createCompositeRouter } = await import("./composite-router-MKYW26IA.js");
96
+ const { createAllAdapters } = await import("./factory-GESVEWDP.js");
97
+ const { createCompositeRouter } = await import("./composite-router-JLXK7CPT.js");
98
98
  const adapters = createAllAdapters();
99
99
  if (adapters.size === 0) {
100
100
  routerInitPromise = null;
@@ -102,7 +102,7 @@ async function getRouter() {
102
102
  }
103
103
  cachedRouter = adaptCompositeRouter(createCompositeRouter(adapters));
104
104
  try {
105
- const { createCliCircuitBreakerIntegration } = await import("./cli-circuit-breaker-TWGNVVI2.js");
105
+ const { createCliCircuitBreakerIntegration } = await import("./cli-circuit-breaker-QZLD2EOM.js");
106
106
  cachedCircuitBreaker = createCliCircuitBreakerIntegration([...adapters.values()]);
107
107
  } catch (error) {
108
108
  const msg = error instanceof Error ? error.message : String(error);
@@ -213,4 +213,4 @@ export {
213
213
  tokenSplitFromUsage,
214
214
  executeExpert
215
215
  };
216
- //# sourceMappingURL=chunk-RVPB3BHL.js.map
216
+ //# sourceMappingURL=chunk-7QY3RIIY.js.map
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  computeCostDetail,
3
3
  priceBasisOf
4
- } from "./chunk-JF74MIER.js";
4
+ } from "./chunk-TE6UUPOA.js";
5
5
  import {
6
6
  allOf
7
7
  } from "./chunk-OQB3XC5O.js";
@@ -23,26 +23,26 @@ import {
23
23
  toolSuccessStructured,
24
24
  withProgressHeartbeat,
25
25
  wrapToolWithTimeout
26
- } from "./chunk-FTOJAN24.js";
26
+ } from "./chunk-SNCZAGQZ.js";
27
27
  import {
28
28
  VERSION
29
- } from "./chunk-6B7YJMG4.js";
29
+ } from "./chunk-KQBS4UW5.js";
30
30
  import {
31
31
  assessPanelIndependence,
32
32
  countDistinctModels,
33
33
  createEvent,
34
34
  getGlobalRegistry
35
- } from "./chunk-XCKEQLRC.js";
35
+ } from "./chunk-QOKB6MWY.js";
36
36
  import {
37
37
  getToolMemory
38
- } from "./chunk-FMTKKJP7.js";
38
+ } from "./chunk-RBNJYWQ6.js";
39
39
  import {
40
40
  authRemediation,
41
41
  delay,
42
42
  getAvailableClis,
43
43
  sleep,
44
44
  withTimeout
45
- } from "./chunk-7S4ZLD4G.js";
45
+ } from "./chunk-SBCEQWUN.js";
46
46
  import {
47
47
  AgentError,
48
48
  CLI_NAMES,
@@ -70,7 +70,7 @@ import {
70
70
  registerPersistentOutcomeStoreFactory,
71
71
  resolveClassGuardMs,
72
72
  resolveVoteTimeout
73
- } from "./chunk-QURCW325.js";
73
+ } from "./chunk-AZPM542H.js";
74
74
  import {
75
75
  ensureLearningDir,
76
76
  getOutcomesFile
@@ -6160,9 +6160,11 @@ function toJobSummary(record) {
6160
6160
  ...record.completedAt !== void 0 ? { completedAt: record.completedAt } : {}
6161
6161
  };
6162
6162
  }
6163
- function listJobs() {
6163
+ function listJobsWithDiagnostics() {
6164
6164
  const dir = nexusDataPath("jobs");
6165
- if (!existsSync4(dir)) return [];
6165
+ if (!existsSync4(dir)) {
6166
+ return { jobs: [], diagnostics: { dirUnreadable: false, unparseableRecords: 0 } };
6167
+ }
6166
6168
  let entries;
6167
6169
  try {
6168
6170
  entries = readdirSync(dir);
@@ -6171,19 +6173,26 @@ function listJobs() {
6171
6173
  dir,
6172
6174
  error: err2 instanceof Error ? err2.message : String(err2)
6173
6175
  });
6174
- return [];
6176
+ return { jobs: [], diagnostics: { dirUnreadable: true, unparseableRecords: 0 } };
6175
6177
  }
6176
6178
  const summaries = [];
6179
+ let unparseableRecords = 0;
6177
6180
  for (const entry of entries) {
6178
6181
  const match = /^result-(.+)\.json$/.exec(entry);
6179
6182
  if (match === null) continue;
6180
6183
  const jobId = match[1];
6181
6184
  if (jobId === void 0) continue;
6182
6185
  const record = readJobResult(jobId);
6183
- if (record === null) continue;
6186
+ if (record === null) {
6187
+ unparseableRecords += 1;
6188
+ continue;
6189
+ }
6184
6190
  summaries.push(toJobSummary(record));
6185
6191
  }
6186
- return summaries.sort((a, b) => b.createdAt.localeCompare(a.createdAt));
6192
+ return {
6193
+ jobs: summaries.sort((a, b) => b.createdAt.localeCompare(a.createdAt)),
6194
+ diagnostics: { dirUnreadable: false, unparseableRecords }
6195
+ };
6187
6196
  }
6188
6197
 
6189
6198
  // src/mcp/jobs/job-abort-registry.ts
@@ -7254,7 +7263,7 @@ function logPartialProposal(bounded, log) {
7254
7263
  }
7255
7264
  async function runContrarianCheck(proposal, log) {
7256
7265
  try {
7257
- const { executeExpert } = await import("./expert-bridge-HNVJWGFN.js");
7266
+ const { executeExpert } = await import("./expert-bridge-VKTP3RAL.js");
7258
7267
  const bounded = boundArtifactForReview(proposal, CONTRARIAN_PROPOSAL_BUDGET, "proposal");
7259
7268
  logPartialProposal(bounded, log);
7260
7269
  const result = await executeExpert("architecture", buildContrarianPrompt(bounded));
@@ -7767,7 +7776,7 @@ export {
7767
7776
  writeJobCancelled,
7768
7777
  readJobResult,
7769
7778
  toJobSummary,
7770
- listJobs,
7779
+ listJobsWithDiagnostics,
7771
7780
  abortJob,
7772
7781
  resolveIdempotency,
7773
7782
  registerIdempotentJob,
@@ -7851,4 +7860,4 @@ export {
7851
7860
  CONSENSUS_VOTE_TOOL_SCHEMA,
7852
7861
  registerConsensusVoteTool
7853
7862
  };
7854
- //# sourceMappingURL=chunk-Q7O7SACB.js.map
7863
+ //# sourceMappingURL=chunk-7WZHA4DG.js.map