nexus-agents 8.48.0 → 8.48.2

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 (126) hide show
  1. package/dist/{ast-rule-runner-74D2KNCC.js → ast-rule-runner-SUEOULTY.js} +3 -3
  2. package/dist/{child-mcp-config-KTR6MPNZ.js → child-mcp-config-Y3GST6L4.js} +2 -2
  3. package/dist/{chunk-7XT6WVSB.js → chunk-2CB4RKGK.js} +2 -2
  4. package/dist/{chunk-LO36HW55.js → chunk-2EH4T5I6.js} +2 -2
  5. package/dist/{chunk-7I3LY4HJ.js → chunk-4Y5TFSYP.js} +2 -2
  6. package/dist/{chunk-DVBGHGU3.js → chunk-53EL53NC.js} +2 -2
  7. package/dist/{chunk-2SINF73A.js → chunk-5IB64MNO.js} +4 -4
  8. package/dist/{chunk-CJ5FEUI2.js → chunk-6AX4544S.js} +3 -3
  9. package/dist/{chunk-QOKB6MWY.js → chunk-6GKP2RLC.js} +4 -4
  10. package/dist/{chunk-7YHOHQJR.js → chunk-A4WAADEC.js} +5 -5
  11. package/dist/{chunk-X7EXIH67.js → chunk-CE6OZA5X.js} +4 -4
  12. package/dist/{chunk-TRV4NNEE.js → chunk-DTUJCA6M.js} +54 -23
  13. package/dist/chunk-DTUJCA6M.js.map +1 -0
  14. package/dist/{chunk-RBNJYWQ6.js → chunk-F6LB2JEI.js} +4 -4
  15. package/dist/{chunk-GLDBWMOB.js → chunk-FASXNWT3.js} +5 -5
  16. package/dist/{chunk-JHDP6Z2M.js → chunk-G3KKGHWY.js} +8 -8
  17. package/dist/{chunk-SBCEQWUN.js → chunk-GFW5IMOF.js} +8 -8
  18. package/dist/{chunk-7QY3RIIY.js → chunk-GLDK3R2H.js} +7 -7
  19. package/dist/{chunk-F6HORFHH.js → chunk-GTCZLDKW.js} +2 -2
  20. package/dist/{chunk-USBSYHBT.js → chunk-HEVB6YLR.js} +3 -3
  21. package/dist/{chunk-CKG2K5WC.js → chunk-HHCWN5PM.js} +50 -42
  22. package/dist/{chunk-CKG2K5WC.js.map → chunk-HHCWN5PM.js.map} +1 -1
  23. package/dist/{chunk-4TE5DJHO.js → chunk-KITJQPDR.js} +2 -2
  24. package/dist/{chunk-JOVBHYWW.js → chunk-MOVW4ZFU.js} +2 -2
  25. package/dist/{chunk-2HRAO3DD.js → chunk-MPJILKDK.js} +3 -3
  26. package/dist/{chunk-DF6M73XJ.js → chunk-N56KU4KM.js} +2 -2
  27. package/dist/{chunk-KRPSDJOP.js → chunk-NEKNNWPU.js} +2 -2
  28. package/dist/{chunk-62CSX5QU.js → chunk-P6D43B4F.js} +2 -2
  29. package/dist/{chunk-TE6UUPOA.js → chunk-PJKJF6FQ.js} +2 -2
  30. package/dist/{chunk-5ONSIV4D.js → chunk-RCTVIHUT.js} +2 -2
  31. package/dist/{chunk-SBMYB6N3.js → chunk-RJSW5FD3.js} +2 -2
  32. package/dist/{chunk-YPU4OHBU.js → chunk-VDBBLFZR.js} +2 -2
  33. package/dist/{chunk-AZPM542H.js → chunk-VKBFV6OD.js} +8 -3
  34. package/dist/{chunk-AZPM542H.js.map → chunk-VKBFV6OD.js.map} +1 -1
  35. package/dist/{chunk-ODPVHHUW.js → chunk-WNEVQONR.js} +2 -2
  36. package/dist/{chunk-R247RR7W.js → chunk-YLTUPAKL.js} +2 -2
  37. package/dist/{chunk-WID3S2DT.js → chunk-YYQ6NX5R.js} +2 -2
  38. package/dist/{chunk-E4GEUHMH.js → chunk-ZQVU3NKP.js} +6 -6
  39. package/dist/{chunk-L7DROS6X.js → chunk-ZWJOB76B.js} +2 -2
  40. package/dist/{cli-circuit-breaker-QZLD2EOM.js → cli-circuit-breaker-BDQFZL7E.js} +3 -3
  41. package/dist/cli.js +43 -43
  42. package/dist/{composite-router-JLXK7CPT.js → composite-router-XPWI4EAG.js} +2 -2
  43. package/dist/{consensus-vote-MMWVMVH2.js → consensus-vote-M4EZ7UV4.js} +17 -17
  44. package/dist/{context-retriever-7RE3EZCH.js → context-retriever-JLTSIPDG.js} +8 -8
  45. package/dist/{doctor-deep-LVNRCVLP.js → doctor-deep-CGDO6NJC.js} +3 -3
  46. package/dist/{doctor-live-5JJSWTEW.js → doctor-live-A56SMTQ7.js} +9 -9
  47. package/dist/{expert-bridge-VKTP3RAL.js → expert-bridge-GK7M6JDD.js} +4 -4
  48. package/dist/{factory-XV6E75D7.js → factory-AX4DQMR4.js} +5 -5
  49. package/dist/{factory-GESVEWDP.js → factory-K6QWZRX3.js} +9 -9
  50. package/dist/{improvement-review-NX7446V6.js → improvement-review-PPA3G3XP.js} +6 -6
  51. package/dist/index.js +31 -31
  52. package/dist/{init-opencode-522IQ3OS.js → init-opencode-ED575MZA.js} +6 -6
  53. package/dist/issue-triage-7QOEFZP5.js +17 -0
  54. package/dist/{pr-reviewer-helpers-UZVC2NQW.js → pr-reviewer-helpers-FYY7JOX6.js} +4 -4
  55. package/dist/{registry-command-257AWC4P.js → registry-command-TKJBG3DI.js} +2 -2
  56. package/dist/{repo-security-plan-BF7VE3ML.js → repo-security-plan-MTS46MYL.js} +3 -3
  57. package/dist/{research-helpers-synthesize-RNF6Y7XV.js → research-helpers-synthesize-5LWQYXLC.js} +4 -4
  58. package/dist/{routing-memory-RBKPFXHQ.js → routing-memory-S3FP5MQY.js} +2 -2
  59. package/dist/{session-memory-BQVXGS2D.js → session-memory-JUYGIQI4.js} +3 -3
  60. package/dist/{setup-config-IXTT2I5T.js → setup-config-KIZ2V5PW.js} +3 -3
  61. package/dist/{setup-custom-api-75HAWD5G.js → setup-custom-api-DUEOVPOA.js} +4 -4
  62. package/dist/setup-data-dir-EGXVKKV2.js +30 -0
  63. package/dist/{tool-memory-FU5M6HD5.js → tool-memory-XD7YZBBU.js} +5 -5
  64. package/dist/{unified-registry-YJ2Z43E2.js → unified-registry-MUUCHM4T.js} +10 -10
  65. package/dist/{weather-report-ME2HVR3F.js → weather-report-7M3VSROJ.js} +2 -2
  66. package/package.json +1 -1
  67. package/dist/chunk-TRV4NNEE.js.map +0 -1
  68. package/dist/issue-triage-WCJZQONF.js +0 -17
  69. package/dist/setup-data-dir-O7Y4FGDJ.js +0 -30
  70. /package/dist/{ast-rule-runner-74D2KNCC.js.map → ast-rule-runner-SUEOULTY.js.map} +0 -0
  71. /package/dist/{child-mcp-config-KTR6MPNZ.js.map → child-mcp-config-Y3GST6L4.js.map} +0 -0
  72. /package/dist/{chunk-7XT6WVSB.js.map → chunk-2CB4RKGK.js.map} +0 -0
  73. /package/dist/{chunk-LO36HW55.js.map → chunk-2EH4T5I6.js.map} +0 -0
  74. /package/dist/{chunk-7I3LY4HJ.js.map → chunk-4Y5TFSYP.js.map} +0 -0
  75. /package/dist/{chunk-DVBGHGU3.js.map → chunk-53EL53NC.js.map} +0 -0
  76. /package/dist/{chunk-2SINF73A.js.map → chunk-5IB64MNO.js.map} +0 -0
  77. /package/dist/{chunk-CJ5FEUI2.js.map → chunk-6AX4544S.js.map} +0 -0
  78. /package/dist/{chunk-QOKB6MWY.js.map → chunk-6GKP2RLC.js.map} +0 -0
  79. /package/dist/{chunk-7YHOHQJR.js.map → chunk-A4WAADEC.js.map} +0 -0
  80. /package/dist/{chunk-X7EXIH67.js.map → chunk-CE6OZA5X.js.map} +0 -0
  81. /package/dist/{chunk-RBNJYWQ6.js.map → chunk-F6LB2JEI.js.map} +0 -0
  82. /package/dist/{chunk-GLDBWMOB.js.map → chunk-FASXNWT3.js.map} +0 -0
  83. /package/dist/{chunk-JHDP6Z2M.js.map → chunk-G3KKGHWY.js.map} +0 -0
  84. /package/dist/{chunk-SBCEQWUN.js.map → chunk-GFW5IMOF.js.map} +0 -0
  85. /package/dist/{chunk-7QY3RIIY.js.map → chunk-GLDK3R2H.js.map} +0 -0
  86. /package/dist/{chunk-F6HORFHH.js.map → chunk-GTCZLDKW.js.map} +0 -0
  87. /package/dist/{chunk-USBSYHBT.js.map → chunk-HEVB6YLR.js.map} +0 -0
  88. /package/dist/{chunk-4TE5DJHO.js.map → chunk-KITJQPDR.js.map} +0 -0
  89. /package/dist/{chunk-JOVBHYWW.js.map → chunk-MOVW4ZFU.js.map} +0 -0
  90. /package/dist/{chunk-2HRAO3DD.js.map → chunk-MPJILKDK.js.map} +0 -0
  91. /package/dist/{chunk-DF6M73XJ.js.map → chunk-N56KU4KM.js.map} +0 -0
  92. /package/dist/{chunk-KRPSDJOP.js.map → chunk-NEKNNWPU.js.map} +0 -0
  93. /package/dist/{chunk-62CSX5QU.js.map → chunk-P6D43B4F.js.map} +0 -0
  94. /package/dist/{chunk-TE6UUPOA.js.map → chunk-PJKJF6FQ.js.map} +0 -0
  95. /package/dist/{chunk-5ONSIV4D.js.map → chunk-RCTVIHUT.js.map} +0 -0
  96. /package/dist/{chunk-SBMYB6N3.js.map → chunk-RJSW5FD3.js.map} +0 -0
  97. /package/dist/{chunk-YPU4OHBU.js.map → chunk-VDBBLFZR.js.map} +0 -0
  98. /package/dist/{chunk-ODPVHHUW.js.map → chunk-WNEVQONR.js.map} +0 -0
  99. /package/dist/{chunk-R247RR7W.js.map → chunk-YLTUPAKL.js.map} +0 -0
  100. /package/dist/{chunk-WID3S2DT.js.map → chunk-YYQ6NX5R.js.map} +0 -0
  101. /package/dist/{chunk-E4GEUHMH.js.map → chunk-ZQVU3NKP.js.map} +0 -0
  102. /package/dist/{chunk-L7DROS6X.js.map → chunk-ZWJOB76B.js.map} +0 -0
  103. /package/dist/{cli-circuit-breaker-QZLD2EOM.js.map → cli-circuit-breaker-BDQFZL7E.js.map} +0 -0
  104. /package/dist/{composite-router-JLXK7CPT.js.map → composite-router-XPWI4EAG.js.map} +0 -0
  105. /package/dist/{consensus-vote-MMWVMVH2.js.map → consensus-vote-M4EZ7UV4.js.map} +0 -0
  106. /package/dist/{context-retriever-7RE3EZCH.js.map → context-retriever-JLTSIPDG.js.map} +0 -0
  107. /package/dist/{doctor-deep-LVNRCVLP.js.map → doctor-deep-CGDO6NJC.js.map} +0 -0
  108. /package/dist/{doctor-live-5JJSWTEW.js.map → doctor-live-A56SMTQ7.js.map} +0 -0
  109. /package/dist/{expert-bridge-VKTP3RAL.js.map → expert-bridge-GK7M6JDD.js.map} +0 -0
  110. /package/dist/{factory-GESVEWDP.js.map → factory-AX4DQMR4.js.map} +0 -0
  111. /package/dist/{factory-XV6E75D7.js.map → factory-K6QWZRX3.js.map} +0 -0
  112. /package/dist/{improvement-review-NX7446V6.js.map → improvement-review-PPA3G3XP.js.map} +0 -0
  113. /package/dist/{init-opencode-522IQ3OS.js.map → init-opencode-ED575MZA.js.map} +0 -0
  114. /package/dist/{issue-triage-WCJZQONF.js.map → issue-triage-7QOEFZP5.js.map} +0 -0
  115. /package/dist/{pr-reviewer-helpers-UZVC2NQW.js.map → pr-reviewer-helpers-FYY7JOX6.js.map} +0 -0
  116. /package/dist/{registry-command-257AWC4P.js.map → registry-command-TKJBG3DI.js.map} +0 -0
  117. /package/dist/{repo-security-plan-BF7VE3ML.js.map → repo-security-plan-MTS46MYL.js.map} +0 -0
  118. /package/dist/{research-helpers-synthesize-RNF6Y7XV.js.map → research-helpers-synthesize-5LWQYXLC.js.map} +0 -0
  119. /package/dist/{routing-memory-RBKPFXHQ.js.map → routing-memory-S3FP5MQY.js.map} +0 -0
  120. /package/dist/{session-memory-BQVXGS2D.js.map → session-memory-JUYGIQI4.js.map} +0 -0
  121. /package/dist/{setup-config-IXTT2I5T.js.map → setup-config-KIZ2V5PW.js.map} +0 -0
  122. /package/dist/{setup-custom-api-75HAWD5G.js.map → setup-custom-api-DUEOVPOA.js.map} +0 -0
  123. /package/dist/{setup-data-dir-O7Y4FGDJ.js.map → setup-data-dir-EGXVKKV2.js.map} +0 -0
  124. /package/dist/{tool-memory-FU5M6HD5.js.map → tool-memory-XD7YZBBU.js.map} +0 -0
  125. /package/dist/{unified-registry-YJ2Z43E2.js.map → unified-registry-MUUCHM4T.js.map} +0 -0
  126. /package/dist/{weather-report-ME2HVR3F.js.map → weather-report-7M3VSROJ.js.map} +0 -0
@@ -5,7 +5,7 @@ import {
5
5
  } from "./chunk-7LP6VJRP.js";
6
6
  import {
7
7
  SessionMemory
8
- } from "./chunk-7XT6WVSB.js";
8
+ } from "./chunk-2CB4RKGK.js";
9
9
  import {
10
10
  StatsOnlyAdapter,
11
11
  ensureSharedMemoryRegistry
@@ -15,7 +15,7 @@ import {
15
15
  } from "./chunk-MUJCGBZW.js";
16
16
  import {
17
17
  generateId
18
- } from "./chunk-62CSX5QU.js";
18
+ } from "./chunk-P6D43B4F.js";
19
19
  import {
20
20
  ErrorCode,
21
21
  NexusError,
@@ -29,7 +29,7 @@ import {
29
29
  ok,
30
30
  openSqliteDatabase,
31
31
  setSharedMobiMemDbPathResolver
32
- } from "./chunk-AZPM542H.js";
32
+ } from "./chunk-VKBFV6OD.js";
33
33
  import {
34
34
  nexusDataPath
35
35
  } from "./chunk-BTYRPZON.js";
@@ -5825,4 +5825,4 @@ export {
5825
5825
  reinitializeMemoryBackends,
5826
5826
  ToolMemoryManager
5827
5827
  };
5828
- //# sourceMappingURL=chunk-RBNJYWQ6.js.map
5828
+ //# sourceMappingURL=chunk-F6LB2JEI.js.map
@@ -5,13 +5,13 @@ import {
5
5
  loadTechniquesRegistry,
6
6
  resolveInsideRoot,
7
7
  savePapersRegistry
8
- } from "./chunk-ODPVHHUW.js";
8
+ } from "./chunk-WNEVQONR.js";
9
9
  import {
10
10
  resolveToken
11
- } from "./chunk-DVBGHGU3.js";
11
+ } from "./chunk-53EL53NC.js";
12
12
  import {
13
13
  getToolMemory
14
- } from "./chunk-RBNJYWQ6.js";
14
+ } from "./chunk-F6LB2JEI.js";
15
15
  import {
16
16
  capitalizeWords,
17
17
  tokenizeFiltered,
@@ -40,7 +40,7 @@ import {
40
40
  ok,
41
41
  registerPersistentDistillerFactory,
42
42
  sigmoidConfidence
43
- } from "./chunk-AZPM542H.js";
43
+ } from "./chunk-VKBFV6OD.js";
44
44
  import {
45
45
  ensureLearningDir,
46
46
  getRulesFile
@@ -4238,4 +4238,4 @@ export {
4238
4238
  DEFAULT_CONTEXT_BUDGET_TOKENS,
4239
4239
  getContextPromptPrefix
4240
4240
  };
4241
- //# sourceMappingURL=chunk-GLDBWMOB.js.map
4241
+ //# sourceMappingURL=chunk-FASXNWT3.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  readOpenAICompatEnv
3
- } from "./chunk-7YHOHQJR.js";
3
+ } from "./chunk-A4WAADEC.js";
4
4
  import {
5
5
  allOf
6
6
  } from "./chunk-OQB3XC5O.js";
@@ -8,17 +8,17 @@ import {
8
8
  NODE_ENGINE_RANGE,
9
9
  VERSION,
10
10
  isNodeVersionSupported
11
- } from "./chunk-LO36HW55.js";
11
+ } from "./chunk-2EH4T5I6.js";
12
12
  import {
13
13
  claimGlobalRegistry
14
- } from "./chunk-QOKB6MWY.js";
14
+ } from "./chunk-6GKP2RLC.js";
15
15
  import {
16
16
  capitalize
17
17
  } from "./chunk-7LP6VJRP.js";
18
18
  import {
19
19
  createAllAdapters,
20
20
  probeCli
21
- } from "./chunk-SBCEQWUN.js";
21
+ } from "./chunk-GFW5IMOF.js";
22
22
  import {
23
23
  getNexusTmpDir
24
24
  } from "./chunk-T46RV7Y7.js";
@@ -33,7 +33,7 @@ import {
33
33
  ok,
34
34
  symbols,
35
35
  writeLine
36
- } from "./chunk-AZPM542H.js";
36
+ } from "./chunk-VKBFV6OD.js";
37
37
  import {
38
38
  getLearningDir,
39
39
  getOutcomesFile,
@@ -1247,13 +1247,13 @@ async function runDoctorFix(result) {
1247
1247
  writeLine2("\u2500".repeat(40));
1248
1248
  let fixCount = 0;
1249
1249
  if (!result.dataDirectory.rootExists || result.dataDirectory.subdirectories.some((d) => !d.exists || !d.writable)) {
1250
- const { initDataDirectories: initDataDirectories2, describeDataDirFix: describeDataDirFix2 } = await import("./setup-data-dir-O7Y4FGDJ.js");
1250
+ const { initDataDirectories: initDataDirectories2, describeDataDirFix: describeDataDirFix2 } = await import("./setup-data-dir-EGXVKKV2.js");
1251
1251
  const outcome = describeDataDirFix2(initDataDirectories2());
1252
1252
  writeLine2(outcome.line);
1253
1253
  if (outcome.counted) fixCount++;
1254
1254
  }
1255
1255
  if (!result.configFile.found) {
1256
- const { runConfigInitSync } = await import("./setup-config-IXTT2I5T.js");
1256
+ const { runConfigInitSync } = await import("./setup-config-KIZ2V5PW.js");
1257
1257
  const configResult = runConfigInitSync(process.cwd(), false, false);
1258
1258
  if (configResult.success && configResult.created) {
1259
1259
  writeLine2(`\u2713 Generated config: ${configResult.path}`);
@@ -1349,4 +1349,4 @@ export {
1349
1349
  startStdioServer,
1350
1350
  closeServer
1351
1351
  };
1352
- //# sourceMappingURL=chunk-JHDP6Z2M.js.map
1352
+ //# sourceMappingURL=chunk-G3KKGHWY.js.map
@@ -5,34 +5,34 @@ import {
5
5
  planOptionalParams,
6
6
  requireApiKey,
7
7
  validateApiKeyPresence
8
- } from "./chunk-R247RR7W.js";
8
+ } from "./chunk-YLTUPAKL.js";
9
9
  import {
10
10
  CUSTOM_API_DEFAULT_MODEL
11
- } from "./chunk-L7DROS6X.js";
11
+ } from "./chunk-ZWJOB76B.js";
12
12
  import {
13
13
  CUSTOM_API_BASE_URL_ENV,
14
14
  PROVIDER_ENV_KEYS,
15
15
  assertCustomApiHostResolvesPublic,
16
16
  validateCustomApiBaseUrl
17
- } from "./chunk-YPU4OHBU.js";
17
+ } from "./chunk-VDBBLFZR.js";
18
18
  import {
19
19
  nexusMkdtempSync
20
20
  } from "./chunk-T46RV7Y7.js";
21
21
  import {
22
22
  getAvailabilityCache
23
- } from "./chunk-4TE5DJHO.js";
23
+ } from "./chunk-KITJQPDR.js";
24
24
  import {
25
25
  extractSystemPrompt
26
26
  } from "./chunk-QZUG667L.js";
27
27
  import {
28
28
  generateHyphenId
29
- } from "./chunk-62CSX5QU.js";
29
+ } from "./chunk-P6D43B4F.js";
30
30
  import {
31
31
  CliCircuitBreaker,
32
32
  DEFAULT_CIRCUIT_BREAKER_CONFIG,
33
33
  getCliCircuitBreakerSnapshot,
34
34
  getDefaultCliCircuitBreakerRegistry
35
- } from "./chunk-DF6M73XJ.js";
35
+ } from "./chunk-N56KU4KM.js";
36
36
  import {
37
37
  CLI_SUBPROCESS_TIMEOUTS,
38
38
  CLI_TIMEOUTS,
@@ -73,7 +73,7 @@ import {
73
73
  resolveCliModelName,
74
74
  resolveRetryAfterMs,
75
75
  retryAfterMsFromContext
76
- } from "./chunk-AZPM542H.js";
76
+ } from "./chunk-VKBFV6OD.js";
77
77
  import {
78
78
  parseBoolValue
79
79
  } from "./chunk-BTYRPZON.js";
@@ -4992,4 +4992,4 @@ export {
4992
4992
  SdkAdapter,
4993
4993
  createAutoAdapter
4994
4994
  };
4995
- //# sourceMappingURL=chunk-SBCEQWUN.js.map
4995
+ //# sourceMappingURL=chunk-GFW5IMOF.js.map
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  resolveCliSlot
3
- } from "./chunk-4TE5DJHO.js";
3
+ } from "./chunk-KITJQPDR.js";
4
4
  import {
5
5
  createLogger,
6
6
  getTimeProvider,
7
7
  isRateLimitText
8
- } from "./chunk-AZPM542H.js";
8
+ } from "./chunk-VKBFV6OD.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-KTR6MPNZ.js");
24
+ const { generateMcpConfig } = await import("./child-mcp-config-Y3GST6L4.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-GESVEWDP.js");
97
- const { createCompositeRouter } = await import("./composite-router-JLXK7CPT.js");
96
+ const { createAllAdapters } = await import("./factory-K6QWZRX3.js");
97
+ const { createCompositeRouter } = await import("./composite-router-XPWI4EAG.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-QZLD2EOM.js");
105
+ const { createCliCircuitBreakerIntegration } = await import("./cli-circuit-breaker-BDQFZL7E.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-7QY3RIIY.js.map
216
+ //# sourceMappingURL=chunk-GLDK3R2H.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  getErrorMessage
3
- } from "./chunk-AZPM542H.js";
3
+ } from "./chunk-VKBFV6OD.js";
4
4
 
5
5
  // src/cli/setup-config.ts
6
6
  import { copyFileSync, existsSync, mkdirSync, writeFileSync } from "node:fs";
@@ -77,4 +77,4 @@ function ensureBackup(outputPath) {
77
77
  export {
78
78
  runConfigInitSync
79
79
  };
80
- //# sourceMappingURL=chunk-F6HORFHH.js.map
80
+ //# sourceMappingURL=chunk-GTCZLDKW.js.map
@@ -7,7 +7,7 @@ import {
7
7
  toolStructuredError,
8
8
  toolSuccessStructured,
9
9
  wrapToolWithTimeout
10
- } from "./chunk-2SINF73A.js";
10
+ } from "./chunk-5IB64MNO.js";
11
11
  import {
12
12
  JsonlStore,
13
13
  SECURITY_KEYWORDS,
@@ -20,7 +20,7 @@ import {
20
20
  getTimeProvider,
21
21
  isDeclaredNeverDeprecate,
22
22
  isRegisteredToolName
23
- } from "./chunk-AZPM542H.js";
23
+ } from "./chunk-VKBFV6OD.js";
24
24
  import {
25
25
  getNexusDataDir,
26
26
  nexusDataPath
@@ -2173,4 +2173,4 @@ export {
2173
2173
  runImprovementReview,
2174
2174
  registerImprovementReviewTool
2175
2175
  };
2176
- //# sourceMappingURL=chunk-USBSYHBT.js.map
2176
+ //# sourceMappingURL=chunk-HEVB6YLR.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  generateSecurityPlan
3
- } from "./chunk-SBMYB6N3.js";
3
+ } from "./chunk-RJSW5FD3.js";
4
4
  import {
5
5
  analyzeGitHubRepo
6
6
  } from "./chunk-4GDMHCKX.js";
@@ -21,10 +21,10 @@ import {
21
21
  import {
22
22
  DEFAULT_TASK_TTL_MS,
23
23
  clampTaskTtl
24
- } from "./chunk-JHDP6Z2M.js";
24
+ } from "./chunk-G3KKGHWY.js";
25
25
  import {
26
26
  executeExpert
27
- } from "./chunk-7QY3RIIY.js";
27
+ } from "./chunk-GLDK3R2H.js";
28
28
  import {
29
29
  JobStatusSchema,
30
30
  VOTER_ROLES,
@@ -51,11 +51,12 @@ import {
51
51
  resolveIdempotency,
52
52
  runAsJob,
53
53
  runConsensusForGoal,
54
+ serializeValidatedRecord,
54
55
  simulationDeniedResult,
55
56
  toJobSummary,
56
57
  updateStage,
57
58
  writeJobCancelled
58
- } from "./chunk-TRV4NNEE.js";
59
+ } from "./chunk-DTUJCA6M.js";
59
60
  import {
60
61
  allOf,
61
62
  anyOf
@@ -63,19 +64,19 @@ import {
63
64
  import {
64
65
  normalizeTopicToCanonical,
65
66
  synthesizeResearch
66
- } from "./chunk-2HRAO3DD.js";
67
+ } from "./chunk-MPJILKDK.js";
67
68
  import {
68
69
  IssueTriage,
69
70
  createDurableAuditSink,
70
71
  createDurableAuditTrail
71
- } from "./chunk-E4GEUHMH.js";
72
+ } from "./chunk-ZQVU3NKP.js";
72
73
  import {
73
74
  resolveEnvMode,
74
75
  sanitizeInput
75
- } from "./chunk-7I3LY4HJ.js";
76
+ } from "./chunk-4Y5TFSYP.js";
76
77
  import {
77
78
  withPrerequisite
78
- } from "./chunk-USBSYHBT.js";
79
+ } from "./chunk-HEVB6YLR.js";
79
80
  import {
80
81
  NOOP_NOTIFIER,
81
82
  RateLimiter,
@@ -100,18 +101,18 @@ import {
100
101
  withAuditTrail,
101
102
  withProgressHeartbeat,
102
103
  wrapToolWithTimeout
103
- } from "./chunk-2SINF73A.js";
104
+ } from "./chunk-5IB64MNO.js";
104
105
  import {
105
106
  createAuditTrail,
106
107
  createGraphAuditBridge,
107
108
  emitPipelinePolicyEvent
108
- } from "./chunk-JOVBHYWW.js";
109
+ } from "./chunk-MOVW4ZFU.js";
109
110
  import {
110
111
  EventTopics,
111
112
  createEvent,
112
113
  getGlobalEventBus,
113
114
  getGlobalRegistry
114
- } from "./chunk-QOKB6MWY.js";
115
+ } from "./chunk-6GKP2RLC.js";
115
116
  import {
116
117
  IDENTIFIER_RE,
117
118
  LANG_VALUES,
@@ -144,7 +145,7 @@ import {
144
145
  parseRegistry,
145
146
  sourceExistsInRegistry,
146
147
  summarizeContextForPrompt
147
- } from "./chunk-GLDBWMOB.js";
148
+ } from "./chunk-FASXNWT3.js";
148
149
  import {
149
150
  REGISTRY_PATH,
150
151
  getProjectRoot,
@@ -152,25 +153,25 @@ import {
152
153
  loadTechniquesRegistry,
153
154
  resolveInsideRoot,
154
155
  resolveRegistryRoot
155
- } from "./chunk-ODPVHHUW.js";
156
+ } from "./chunk-WNEVQONR.js";
156
157
  import {
157
158
  getTokenEnvVars,
158
159
  resolveToken
159
- } from "./chunk-DVBGHGU3.js";
160
+ } from "./chunk-53EL53NC.js";
160
161
  import {
161
162
  DEFAULT_RELEVANCE_CONFIG,
162
163
  MemoryImportance,
163
164
  MemoryType,
164
165
  calculateTextJaccardSimilarity,
165
166
  getToolMemory
166
- } from "./chunk-RBNJYWQ6.js";
167
+ } from "./chunk-F6LB2JEI.js";
167
168
  import {
168
169
  STOPWORDS,
169
170
  truncateWithInfo
170
171
  } from "./chunk-7LP6VJRP.js";
171
172
  import {
172
173
  createSessionMemory
173
- } from "./chunk-7XT6WVSB.js";
174
+ } from "./chunk-2CB4RKGK.js";
174
175
  import {
175
176
  BUILT_IN_EXPERTS,
176
177
  BuiltInExpertTypeSchema,
@@ -188,25 +189,25 @@ import {
188
189
  getAvailableClis,
189
190
  sleep,
190
191
  withTimeout
191
- } from "./chunk-SBCEQWUN.js";
192
+ } from "./chunk-GFW5IMOF.js";
192
193
  import {
193
194
  BaseAdapter,
194
195
  createStream,
195
196
  requireApiKey,
196
197
  validateApiKeyPresence
197
- } from "./chunk-R247RR7W.js";
198
+ } from "./chunk-YLTUPAKL.js";
198
199
  import {
199
200
  DEFAULTS
200
- } from "./chunk-L7DROS6X.js";
201
+ } from "./chunk-ZWJOB76B.js";
201
202
  import {
202
203
  getAvailabilityCache,
203
204
  getCliForModelId,
204
205
  resolveFallback
205
- } from "./chunk-4TE5DJHO.js";
206
+ } from "./chunk-KITJQPDR.js";
206
207
  import {
207
208
  generateHyphenId,
208
209
  generateUUID
209
- } from "./chunk-62CSX5QU.js";
210
+ } from "./chunk-P6D43B4F.js";
210
211
  import {
211
212
  AGENT_ROUTER_TIMEOUTS,
212
213
  API_TIMEOUTS,
@@ -318,7 +319,7 @@ import {
318
319
  selectStrategyByManifest,
319
320
  toExpertTaskAnalysisResult,
320
321
  withStep
321
- } from "./chunk-AZPM542H.js";
322
+ } from "./chunk-VKBFV6OD.js";
322
323
  import {
323
324
  ensureLearningDir,
324
325
  getMetaOutcomesFile,
@@ -30027,7 +30028,7 @@ function execIdFields(executionId) {
30027
30028
  async function populateUnifiedContextOnState(state, options) {
30028
30029
  const taskCandidate = state["task"];
30029
30030
  if (typeof taskCandidate !== "string" || taskCandidate === "") return;
30030
- const { getContextForTask: getContextForTask2, inferTaskCategory: inferTaskCategory2 } = await import("./context-retriever-7RE3EZCH.js");
30031
+ const { getContextForTask: getContextForTask2, inferTaskCategory: inferTaskCategory2 } = await import("./context-retriever-JLTSIPDG.js");
30031
30032
  const category = inferTaskCategory2(taskCandidate);
30032
30033
  const executionId = options?.executionId;
30033
30034
  const execFields = execIdFields(executionId);
@@ -45760,7 +45761,7 @@ async function tryIssueTriage(task) {
45760
45761
  try {
45761
45762
  const issueMatch = task.match(/github\.com\/([^/]+\/[^/]+)\/issues\/(\d+)/);
45762
45763
  if (issueMatch === null) return null;
45763
- const { createIssueTriage } = await import("./issue-triage-WCJZQONF.js");
45764
+ const { createIssueTriage } = await import("./issue-triage-7QOEFZP5.js");
45764
45765
  const triage = createIssueTriage();
45765
45766
  const owner = issueMatch[1] ?? "";
45766
45767
  const num = issueMatch[2] ?? "";
@@ -45788,7 +45789,7 @@ var VALID_TEMPLATES = /* @__PURE__ */ new Set([
45788
45789
  ]);
45789
45790
  async function classifyWithLLM(task) {
45790
45791
  try {
45791
- const { executeExpert: executeExpert2 } = await import("./expert-bridge-VKTP3RAL.js");
45792
+ const { executeExpert: executeExpert2 } = await import("./expert-bridge-GK7M6JDD.js");
45792
45793
  const prompt = [
45793
45794
  "Classify this task into exactly one pipeline template.",
45794
45795
  "Templates: dev (implementation/bug fix/refactor), research (investigate/evaluate/compare),",
@@ -46162,7 +46163,7 @@ function buildVotingInput(plan, config) {
46162
46163
  }
46163
46164
  async function executeSingleVote(plan, config, log) {
46164
46165
  try {
46165
- const { executeVoting } = await import("./consensus-vote-MMWVMVH2.js");
46166
+ const { executeVoting } = await import("./consensus-vote-M4EZ7UV4.js");
46166
46167
  const input = buildVotingInput(plan, config);
46167
46168
  const result = await executeVoting(input, log);
46168
46169
  return parseVotingResult(result);
@@ -47724,7 +47725,7 @@ var memoryInitPromise = null;
47724
47725
  async function initPipelineMemory() {
47725
47726
  if (cachedMemory !== null) return cachedMemory;
47726
47727
  try {
47727
- const { createSessionMemory: createSessionMemory2 } = await import("./session-memory-BQVXGS2D.js");
47728
+ const { createSessionMemory: createSessionMemory2 } = await import("./session-memory-JUYGIQI4.js");
47728
47729
  const { getLearningDir } = await import("./learning-persistence-TQJVPLDN.js");
47729
47730
  const mem = createSessionMemory2(getLearningDir());
47730
47731
  mem.startSession(`pipeline-${String(getTimeProvider().now())}`);
@@ -47786,7 +47787,7 @@ function recordRoutingExperience(category, success, durationMs, tokensUsed = 0,
47786
47787
  callRecord(routingMemoryCache);
47787
47788
  return;
47788
47789
  }
47789
- routingMemoryInitPromise ??= import("./routing-memory-RBKPFXHQ.js").then(({ createRoutingMemory }) => {
47790
+ routingMemoryInitPromise ??= import("./routing-memory-S3FP5MQY.js").then(({ createRoutingMemory }) => {
47790
47791
  routingMemoryCache ??= createRoutingMemory();
47791
47792
  return routingMemoryCache;
47792
47793
  }).catch((error) => {
@@ -47820,7 +47821,7 @@ ${text}` : "";
47820
47821
  }
47821
47822
  async function getWeatherContext() {
47822
47823
  try {
47823
- const { generateWeatherReport: generateWeatherReport2 } = await import("./weather-report-ME2HVR3F.js");
47824
+ const { generateWeatherReport: generateWeatherReport2 } = await import("./weather-report-7M3VSROJ.js");
47824
47825
  const report = generateWeatherReport2({ includeAdaptive: true });
47825
47826
  const mappings = "recommendedMappings" in report ? report.recommendedMappings : [];
47826
47827
  if (!Array.isArray(mappings) || mappings.length === 0) return "";
@@ -47838,7 +47839,7 @@ ${lines}
47838
47839
  }
47839
47840
  async function getMemoryContext(task) {
47840
47841
  try {
47841
- const { createSessionMemory: createSessionMemory2 } = await import("./session-memory-BQVXGS2D.js");
47842
+ const { createSessionMemory: createSessionMemory2 } = await import("./session-memory-JUYGIQI4.js");
47842
47843
  const { getLearningDir } = await import("./learning-persistence-TQJVPLDN.js");
47843
47844
  const memory = createSessionMemory2(getLearningDir(), { maxLearningsInContext: 10 });
47844
47845
  const learnings = memory.searchLearnings(task.slice(0, 200));
@@ -47957,7 +47958,7 @@ ${contextBlock}`;
47957
47958
  const strategy = config.votingStrategy ?? "higher_order";
47958
47959
  await postProgress(config, "Vote", `Running consensus with ${strategy} strategy...`);
47959
47960
  try {
47960
- const { executeVoting } = await import("./consensus-vote-MMWVMVH2.js");
47961
+ const { executeVoting } = await import("./consensus-vote-M4EZ7UV4.js");
47961
47962
  const votingResult = await executeVoting(
47962
47963
  {
47963
47964
  proposal: buildVoteProposal(plan, research),
@@ -48388,7 +48389,7 @@ async function searchCodebaseForTask(task) {
48388
48389
  }
48389
48390
  async function queryResearchRegistry(task) {
48390
48391
  try {
48391
- const { synthesizeResearch: synthesizeResearch2 } = await import("./research-helpers-synthesize-RNF6Y7XV.js");
48392
+ const { synthesizeResearch: synthesizeResearch2 } = await import("./research-helpers-synthesize-5LWQYXLC.js");
48392
48393
  const topic = task.split(/[.!?\n]/).filter((s) => s.trim().length > 10)[0]?.trim();
48393
48394
  if (topic === void 0) return null;
48394
48395
  const result = await synthesizeResearch2(topic.slice(0, 50));
@@ -48459,7 +48460,7 @@ function createScanStageWrapper() {
48459
48460
  try {
48460
48461
  const slug = ctx.task.match(/([a-zA-Z0-9._-]+\/[a-zA-Z0-9._-]+)/)?.[1];
48461
48462
  if (slug !== void 0) {
48462
- const { generateSecurityPlan: generateSecurityPlan2 } = await import("./repo-security-plan-BF7VE3ML.js");
48463
+ const { generateSecurityPlan: generateSecurityPlan2 } = await import("./repo-security-plan-MTS46MYL.js");
48463
48464
  const plan = await generateSecurityPlan2({ repo: slug, maxScanners: 10 });
48464
48465
  const recs = plan.recommendations.slice(0, 5).map((r) => `${r.priority}: ${r.displayName} (${r.category})`).join("; ");
48465
48466
  return output(PIPELINE_STATE_KEYS.FINDINGS, recs, getTimeProvider().now() - start, true);
@@ -49024,7 +49025,11 @@ function persistPrReviewRecord(opts) {
49024
49025
  sequence: maxSequence + 1,
49025
49026
  previousHash: lastHash
49026
49027
  });
49027
- appendFileSync3(filePath, JSON.stringify(record) + "\n", "utf-8");
49028
+ appendFileSync3(
49029
+ filePath,
49030
+ serializeValidatedRecord(PrReviewRecordSchema, record, "pr-review"),
49031
+ "utf-8"
49032
+ );
49028
49033
  logger56.info("Persisted authentic pr-review record", {
49029
49034
  prNumber: record.prNumber,
49030
49035
  verdict: record.verdict,
@@ -49204,6 +49209,13 @@ function sanitizationDisclosureOf(sanitization, prDiff) {
49204
49209
  tagsRemoved: sanitization.tagsRemoved
49205
49210
  };
49206
49211
  }
49212
+ function writeFailedOutcome() {
49213
+ return {
49214
+ persisted: false,
49215
+ reason: "write-failed",
49216
+ detail: 'Audit record NOT written: either the records path was unresolved / the append failed, or the record was refused because the read schema would reject it (#6054). The server log line "Failed to persist authentic pr-review record" carries the cause \u2014 a filesystem error, or the offending field.'
49217
+ };
49218
+ }
49207
49219
  function buildAndPersist(prNumber, baseSha, args) {
49208
49220
  const { input, aggregate, counts, reviewCount, logger: logger56, coverage, diffSource, sanitization } = args;
49209
49221
  const coverageSuffix = coverage?.partial === true ? ` [partial coverage: ${String(coverage.reviewedFiles)}/${String(coverage.totalFiles)} files reviewed, dropped: ${coverage.droppedFiles.join(", ")}]` : "";
@@ -49236,11 +49248,7 @@ function buildAndPersist(prNumber, baseSha, args) {
49236
49248
  logger: logger56
49237
49249
  });
49238
49250
  if (record === void 0) {
49239
- return {
49240
- persisted: false,
49241
- reason: "write-failed",
49242
- detail: "Audit record could not be written: the records path was unresolved or the append failed (see server logs for the underlying cause)."
49243
- };
49251
+ return writeFailedOutcome();
49244
49252
  }
49245
49253
  return {
49246
49254
  persisted: true,
@@ -51869,7 +51877,7 @@ var GitHubTaskTracker = class {
51869
51877
  cachedProvider = null;
51870
51878
  async getProvider() {
51871
51879
  if (this.cachedProvider !== null) return this.cachedProvider;
51872
- const { createScmProvider } = await import("./factory-XV6E75D7.js");
51880
+ const { createScmProvider } = await import("./factory-AX4DQMR4.js");
51873
51881
  const result = await createScmProvider({ repo: this.config.repo ?? "" });
51874
51882
  if (!result.ok) throw new Error(`SCM provider error: ${result.error.message}`);
51875
51883
  this.cachedProvider = result.value;
@@ -52800,7 +52808,7 @@ async function probeSource(source, includeModelIds) {
52800
52808
  }
52801
52809
  }
52802
52810
  async function defaultSources(includeOpenRouter) {
52803
- const { createAllAdapters: createAllAdapters2 } = await import("./factory-GESVEWDP.js");
52811
+ const { createAllAdapters: createAllAdapters2 } = await import("./factory-K6QWZRX3.js");
52804
52812
  const adapters = createAllAdapters2();
52805
52813
  return buildDefaultModelSources(adapters, { includeOpenRouter });
52806
52814
  }
@@ -56868,4 +56876,4 @@ export {
56868
56876
  startPipelineEventBridge,
56869
56877
  shutdownPipelineEventBridge
56870
56878
  };
56871
- //# sourceMappingURL=chunk-CKG2K5WC.js.map
56879
+ //# sourceMappingURL=chunk-HHCWN5PM.js.map