nexus-agents 4.15.6 → 4.17.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 (123) hide show
  1. package/dist/{child-mcp-config-WGS7EAV5.js → child-mcp-config-LFSKKKBM.js} +2 -2
  2. package/dist/{chunk-Q5FCGF3Z.js → chunk-52BIOPZB.js} +4 -4
  3. package/dist/{chunk-WNBBPPHR.js → chunk-74OZZCCN.js} +2 -2
  4. package/dist/{chunk-MNJCO2S7.js → chunk-7MK3CUEZ.js} +4 -4
  5. package/dist/{chunk-W4KF2GUO.js → chunk-7U24UIVM.js} +2 -2
  6. package/dist/{chunk-C6NRLEI7.js → chunk-7V22LMZV.js} +3 -3
  7. package/dist/{chunk-TTHC3C6V.js → chunk-AEUU73HH.js} +4 -4
  8. package/dist/{chunk-SEWVNOEM.js → chunk-AN4WYZ7B.js} +2 -2
  9. package/dist/{chunk-DQWU6U3V.js → chunk-CAOGZ3LX.js} +3 -3
  10. package/dist/{chunk-5HIEY5GV.js → chunk-CDVX3IJR.js} +3 -3
  11. package/dist/{chunk-2A4B2XAB.js → chunk-DWX7S2OP.js} +2 -2
  12. package/dist/{chunk-SV7RHVNA.js → chunk-ECX3NCE6.js} +2 -2
  13. package/dist/{chunk-SWCFHK54.js → chunk-EXFE6TG3.js} +2 -2
  14. package/dist/{chunk-XED5OLWO.js → chunk-F7F54NTS.js} +68 -56
  15. package/dist/{chunk-XED5OLWO.js.map → chunk-F7F54NTS.js.map} +1 -1
  16. package/dist/{chunk-BH5PWPKK.js → chunk-FSCMH2Y3.js} +7 -7
  17. package/dist/{chunk-53Z7HGIH.js → chunk-HC45BJCG.js} +8 -8
  18. package/dist/chunk-HC45BJCG.js.map +1 -0
  19. package/dist/{chunk-2BWRFAAG.js → chunk-JUGJLEHP.js} +5 -5
  20. package/dist/{chunk-PZJ4T7CY.js → chunk-KJVO5G4I.js} +3 -3
  21. package/dist/{chunk-EDZK52PE.js → chunk-KRTJILXV.js} +5 -5
  22. package/dist/{chunk-77XPSO4O.js → chunk-KXX4I7Z5.js} +2 -2
  23. package/dist/{chunk-HYQR2PSB.js → chunk-M23FK7TU.js} +2 -2
  24. package/dist/{chunk-QZAMRR2Q.js → chunk-M7UTZBNQ.js} +7 -7
  25. package/dist/{chunk-BJZGMJU7.js → chunk-OFADY2PG.js} +2 -2
  26. package/dist/{chunk-LN3RVOQA.js → chunk-OON52ULB.js} +2 -2
  27. package/dist/{chunk-TZYSY7QD.js → chunk-P6BMSGUH.js} +2 -2
  28. package/dist/{chunk-VVKZ5OT5.js → chunk-RIAHGG73.js} +2 -2
  29. package/dist/{chunk-M5MKUJ3F.js → chunk-RS4DYGW2.js} +2 -2
  30. package/dist/{chunk-LRAFP75Q.js → chunk-SSXQ2EIT.js} +3 -3
  31. package/dist/{chunk-7EIWV5IW.js → chunk-TWRQT33G.js} +8 -10
  32. package/dist/chunk-TWRQT33G.js.map +1 -0
  33. package/dist/{chunk-YYNJWKMN.js → chunk-TYT22OEG.js} +6 -6
  34. package/dist/{chunk-TNH4QEXR.js → chunk-VM2D3G44.js} +2 -2
  35. package/dist/{chunk-W7VA5TPI.js → chunk-VVNFBSFU.js} +2 -2
  36. package/dist/{chunk-HSS2FHTR.js → chunk-ZMFP7VUB.js} +2 -2
  37. package/dist/{cli-circuit-breaker-KCCEKKYY.js → cli-circuit-breaker-QKSNGGSQ.js} +3 -3
  38. package/dist/cli.js +54 -40
  39. package/dist/cli.js.map +1 -1
  40. package/dist/{composite-router-JAXKOWQL.js → composite-router-QRKGIZX2.js} +2 -2
  41. package/dist/{consensus-vote-445IDEM4.js → consensus-vote-ODNIYVTK.js} +16 -16
  42. package/dist/{context-retriever-GHOSKK7X.js → context-retriever-HWFWR4JM.js} +8 -8
  43. package/dist/{doctor-deep-ES64EJ3L.js → doctor-deep-FVIC4CDE.js} +3 -3
  44. package/dist/{doctor-live-FYBVYAVL.js → doctor-live-2A7KY6ZY.js} +9 -9
  45. package/dist/{expert-bridge-FWX3P4WM.js → expert-bridge-6JJGANAU.js} +4 -4
  46. package/dist/{factory-SQMVOFRQ.js → factory-AIRH7ZD5.js} +9 -9
  47. package/dist/{factory-G63HMXET.js → factory-MPMGNS74.js} +5 -5
  48. package/dist/{improvement-review-TDHG3UVQ.js → improvement-review-I5LCRL6U.js} +5 -5
  49. package/dist/index.d.ts +10 -1
  50. package/dist/index.js +30 -30
  51. package/dist/{init-opencode-KM2WSIIZ.js → init-opencode-F3KIB3GX.js} +6 -6
  52. package/dist/issue-triage-4ULNSYHX.js +17 -0
  53. package/dist/{pr-reviewer-helpers-LFNDF5UX.js → pr-reviewer-helpers-FPKTXNKO.js} +4 -4
  54. package/dist/{registry-command-ZU7OJ6K6.js → registry-command-U7POXDPR.js} +2 -2
  55. package/dist/{repo-security-plan-AF7CL7PT.js → repo-security-plan-IFYLW5W4.js} +3 -3
  56. package/dist/{research-helpers-synthesize-7B2HUWAO.js → research-helpers-synthesize-WPU7C7BI.js} +4 -4
  57. package/dist/{routing-memory-ZBRAWLWW.js → routing-memory-LQB6M55D.js} +2 -2
  58. package/dist/{session-memory-BFM6SH3T.js → session-memory-VPCABSBU.js} +3 -3
  59. package/dist/{setup-config-3Q4PIGXS.js → setup-config-WDJLLGK7.js} +3 -3
  60. package/dist/{setup-custom-api-UNTUUGHN.js → setup-custom-api-TQ6AP6XQ.js} +4 -4
  61. package/dist/setup-data-dir-NAHXPGOF.js +28 -0
  62. package/dist/{tool-memory-JSIFBM7S.js → tool-memory-YLLZ7FYD.js} +5 -5
  63. package/dist/{unified-registry-MUYGQNBH.js → unified-registry-D22L56RN.js} +10 -10
  64. package/dist/{weather-report-UEQM6BSC.js → weather-report-CWICZMNA.js} +2 -2
  65. package/package.json +1 -1
  66. package/dist/chunk-53Z7HGIH.js.map +0 -1
  67. package/dist/chunk-7EIWV5IW.js.map +0 -1
  68. package/dist/issue-triage-UHC6GZLS.js +0 -17
  69. package/dist/setup-data-dir-VLOT7GSQ.js +0 -28
  70. /package/dist/{child-mcp-config-WGS7EAV5.js.map → child-mcp-config-LFSKKKBM.js.map} +0 -0
  71. /package/dist/{chunk-Q5FCGF3Z.js.map → chunk-52BIOPZB.js.map} +0 -0
  72. /package/dist/{chunk-WNBBPPHR.js.map → chunk-74OZZCCN.js.map} +0 -0
  73. /package/dist/{chunk-MNJCO2S7.js.map → chunk-7MK3CUEZ.js.map} +0 -0
  74. /package/dist/{chunk-W4KF2GUO.js.map → chunk-7U24UIVM.js.map} +0 -0
  75. /package/dist/{chunk-C6NRLEI7.js.map → chunk-7V22LMZV.js.map} +0 -0
  76. /package/dist/{chunk-TTHC3C6V.js.map → chunk-AEUU73HH.js.map} +0 -0
  77. /package/dist/{chunk-SEWVNOEM.js.map → chunk-AN4WYZ7B.js.map} +0 -0
  78. /package/dist/{chunk-DQWU6U3V.js.map → chunk-CAOGZ3LX.js.map} +0 -0
  79. /package/dist/{chunk-5HIEY5GV.js.map → chunk-CDVX3IJR.js.map} +0 -0
  80. /package/dist/{chunk-2A4B2XAB.js.map → chunk-DWX7S2OP.js.map} +0 -0
  81. /package/dist/{chunk-SV7RHVNA.js.map → chunk-ECX3NCE6.js.map} +0 -0
  82. /package/dist/{chunk-SWCFHK54.js.map → chunk-EXFE6TG3.js.map} +0 -0
  83. /package/dist/{chunk-BH5PWPKK.js.map → chunk-FSCMH2Y3.js.map} +0 -0
  84. /package/dist/{chunk-2BWRFAAG.js.map → chunk-JUGJLEHP.js.map} +0 -0
  85. /package/dist/{chunk-PZJ4T7CY.js.map → chunk-KJVO5G4I.js.map} +0 -0
  86. /package/dist/{chunk-EDZK52PE.js.map → chunk-KRTJILXV.js.map} +0 -0
  87. /package/dist/{chunk-77XPSO4O.js.map → chunk-KXX4I7Z5.js.map} +0 -0
  88. /package/dist/{chunk-HYQR2PSB.js.map → chunk-M23FK7TU.js.map} +0 -0
  89. /package/dist/{chunk-QZAMRR2Q.js.map → chunk-M7UTZBNQ.js.map} +0 -0
  90. /package/dist/{chunk-BJZGMJU7.js.map → chunk-OFADY2PG.js.map} +0 -0
  91. /package/dist/{chunk-LN3RVOQA.js.map → chunk-OON52ULB.js.map} +0 -0
  92. /package/dist/{chunk-TZYSY7QD.js.map → chunk-P6BMSGUH.js.map} +0 -0
  93. /package/dist/{chunk-VVKZ5OT5.js.map → chunk-RIAHGG73.js.map} +0 -0
  94. /package/dist/{chunk-M5MKUJ3F.js.map → chunk-RS4DYGW2.js.map} +0 -0
  95. /package/dist/{chunk-LRAFP75Q.js.map → chunk-SSXQ2EIT.js.map} +0 -0
  96. /package/dist/{chunk-YYNJWKMN.js.map → chunk-TYT22OEG.js.map} +0 -0
  97. /package/dist/{chunk-TNH4QEXR.js.map → chunk-VM2D3G44.js.map} +0 -0
  98. /package/dist/{chunk-W7VA5TPI.js.map → chunk-VVNFBSFU.js.map} +0 -0
  99. /package/dist/{chunk-HSS2FHTR.js.map → chunk-ZMFP7VUB.js.map} +0 -0
  100. /package/dist/{cli-circuit-breaker-KCCEKKYY.js.map → cli-circuit-breaker-QKSNGGSQ.js.map} +0 -0
  101. /package/dist/{composite-router-JAXKOWQL.js.map → composite-router-QRKGIZX2.js.map} +0 -0
  102. /package/dist/{consensus-vote-445IDEM4.js.map → consensus-vote-ODNIYVTK.js.map} +0 -0
  103. /package/dist/{context-retriever-GHOSKK7X.js.map → context-retriever-HWFWR4JM.js.map} +0 -0
  104. /package/dist/{doctor-deep-ES64EJ3L.js.map → doctor-deep-FVIC4CDE.js.map} +0 -0
  105. /package/dist/{doctor-live-FYBVYAVL.js.map → doctor-live-2A7KY6ZY.js.map} +0 -0
  106. /package/dist/{expert-bridge-FWX3P4WM.js.map → expert-bridge-6JJGANAU.js.map} +0 -0
  107. /package/dist/{factory-G63HMXET.js.map → factory-AIRH7ZD5.js.map} +0 -0
  108. /package/dist/{factory-SQMVOFRQ.js.map → factory-MPMGNS74.js.map} +0 -0
  109. /package/dist/{improvement-review-TDHG3UVQ.js.map → improvement-review-I5LCRL6U.js.map} +0 -0
  110. /package/dist/{init-opencode-KM2WSIIZ.js.map → init-opencode-F3KIB3GX.js.map} +0 -0
  111. /package/dist/{issue-triage-UHC6GZLS.js.map → issue-triage-4ULNSYHX.js.map} +0 -0
  112. /package/dist/{pr-reviewer-helpers-LFNDF5UX.js.map → pr-reviewer-helpers-FPKTXNKO.js.map} +0 -0
  113. /package/dist/{registry-command-ZU7OJ6K6.js.map → registry-command-U7POXDPR.js.map} +0 -0
  114. /package/dist/{repo-security-plan-AF7CL7PT.js.map → repo-security-plan-IFYLW5W4.js.map} +0 -0
  115. /package/dist/{research-helpers-synthesize-7B2HUWAO.js.map → research-helpers-synthesize-WPU7C7BI.js.map} +0 -0
  116. /package/dist/{routing-memory-ZBRAWLWW.js.map → routing-memory-LQB6M55D.js.map} +0 -0
  117. /package/dist/{session-memory-BFM6SH3T.js.map → session-memory-VPCABSBU.js.map} +0 -0
  118. /package/dist/{setup-config-3Q4PIGXS.js.map → setup-config-WDJLLGK7.js.map} +0 -0
  119. /package/dist/{setup-custom-api-UNTUUGHN.js.map → setup-custom-api-TQ6AP6XQ.js.map} +0 -0
  120. /package/dist/{setup-data-dir-VLOT7GSQ.js.map → setup-data-dir-NAHXPGOF.js.map} +0 -0
  121. /package/dist/{tool-memory-JSIFBM7S.js.map → tool-memory-YLLZ7FYD.js.map} +0 -0
  122. /package/dist/{unified-registry-MUYGQNBH.js.map → unified-registry-D22L56RN.js.map} +0 -0
  123. /package/dist/{weather-report-UEQM6BSC.js.map → weather-report-CWICZMNA.js.map} +0 -0
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-RQV5ZUXT.js";
4
4
  import {
5
5
  createLogger
6
- } from "./chunk-PZJ4T7CY.js";
6
+ } from "./chunk-KJVO5G4I.js";
7
7
  import "./chunk-HHLCAWAV.js";
8
8
  import "./chunk-NBMWONHE.js";
9
9
  import "./chunk-ZPWHCABL.js";
@@ -62,4 +62,4 @@ export {
62
62
  generateMcpConfig,
63
63
  getDefaultAllowedTools
64
64
  };
65
- //# sourceMappingURL=child-mcp-config-WGS7EAV5.js.map
65
+ //# sourceMappingURL=child-mcp-config-LFSKKKBM.js.map
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  createAutoAdapter
3
- } from "./chunk-7EIWV5IW.js";
3
+ } from "./chunk-TWRQT33G.js";
4
4
  import {
5
5
  getDefaultCliCircuitBreakerRegistry,
6
6
  mapModelErrorToCategory
7
- } from "./chunk-HSS2FHTR.js";
7
+ } from "./chunk-ZMFP7VUB.js";
8
8
  import {
9
9
  CLI_NAMES,
10
10
  CircularBuffer,
@@ -22,7 +22,7 @@ import {
22
22
  ok,
23
23
  recordRateLimitEvent,
24
24
  toRateLimitError
25
- } from "./chunk-PZJ4T7CY.js";
25
+ } from "./chunk-KJVO5G4I.js";
26
26
 
27
27
  // src/agents/collaboration/event-bus-helpers.ts
28
28
  import { randomUUID } from "crypto";
@@ -863,4 +863,4 @@ export {
863
863
  getGlobalRegistry,
864
864
  resetGlobalRegistry
865
865
  };
866
- //# sourceMappingURL=chunk-Q5FCGF3Z.js.map
866
+ //# sourceMappingURL=chunk-52BIOPZB.js.map
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  getRandomProvider,
3
3
  getTimeProvider
4
- } from "./chunk-PZJ4T7CY.js";
4
+ } from "./chunk-KJVO5G4I.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-WNBBPPHR.js.map
27
+ //# sourceMappingURL=chunk-74OZZCCN.js.map
@@ -1,14 +1,14 @@
1
1
  import {
2
2
  GitHubProvider,
3
3
  ScmError
4
- } from "./chunk-TNH4QEXR.js";
4
+ } from "./chunk-VM2D3G44.js";
5
5
  import {
6
6
  resolveToken
7
- } from "./chunk-SV7RHVNA.js";
7
+ } from "./chunk-ECX3NCE6.js";
8
8
  import {
9
9
  err,
10
10
  ok
11
- } from "./chunk-PZJ4T7CY.js";
11
+ } from "./chunk-KJVO5G4I.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-MNJCO2S7.js.map
44
+ //# sourceMappingURL=chunk-7MK3CUEZ.js.map
@@ -5,7 +5,7 @@ import {
5
5
  getErrorMessage,
6
6
  ok,
7
7
  parseBoolEnv
8
- } from "./chunk-PZJ4T7CY.js";
8
+ } from "./chunk-KJVO5G4I.js";
9
9
 
10
10
  // src/cli/research-helpers-io.ts
11
11
  import * as fs2 from "fs/promises";
@@ -156,4 +156,4 @@ export {
156
156
  loadPapersRegistry,
157
157
  savePapersRegistry
158
158
  };
159
- //# sourceMappingURL=chunk-W4KF2GUO.js.map
159
+ //# sourceMappingURL=chunk-7U24UIVM.js.map
@@ -12,11 +12,11 @@ import {
12
12
  gateWithReputation,
13
13
  resolveReputationGatingMode,
14
14
  sanitizeInput
15
- } from "./chunk-SEWVNOEM.js";
15
+ } from "./chunk-AN4WYZ7B.js";
16
16
  import {
17
17
  createLogger,
18
18
  getTimeProvider
19
- } from "./chunk-PZJ4T7CY.js";
19
+ } from "./chunk-KJVO5G4I.js";
20
20
 
21
21
  // src/dogfooding/pr-reviewer-helpers.ts
22
22
  import { randomUUID } from "crypto";
@@ -291,4 +291,4 @@ export {
291
291
  formatReviewComment,
292
292
  createFailedReview
293
293
  };
294
- //# sourceMappingURL=chunk-C6NRLEI7.js.map
294
+ //# sourceMappingURL=chunk-7V22LMZV.js.map
@@ -5,7 +5,7 @@ import {
5
5
  } from "./chunk-6T3EPABN.js";
6
6
  import {
7
7
  SessionMemory
8
- } from "./chunk-HYQR2PSB.js";
8
+ } from "./chunk-M23FK7TU.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-WNBBPPHR.js";
18
+ } from "./chunk-74OZZCCN.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-PZJ4T7CY.js";
31
+ } from "./chunk-KJVO5G4I.js";
32
32
  import {
33
33
  nexusDataPath
34
34
  } from "./chunk-NBMWONHE.js";
@@ -5550,4 +5550,4 @@ export {
5550
5550
  reinitializeMemoryBackends,
5551
5551
  ToolMemoryManager
5552
5552
  };
5553
- //# sourceMappingURL=chunk-TTHC3C6V.js.map
5553
+ //# sourceMappingURL=chunk-AEUU73HH.js.map
@@ -2,7 +2,7 @@ import {
2
2
  CACHE_TIMEOUTS,
3
3
  createLogger,
4
4
  getTimeProvider
5
- } from "./chunk-PZJ4T7CY.js";
5
+ } from "./chunk-KJVO5G4I.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-SEWVNOEM.js.map
563
+ //# sourceMappingURL=chunk-AN4WYZ7B.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  emitClawGuardViolation
3
- } from "./chunk-W7VA5TPI.js";
3
+ } from "./chunk-VVNFBSFU.js";
4
4
  import {
5
5
  CACHE_TIMEOUTS,
6
6
  MCP_TIMEOUTS,
@@ -16,7 +16,7 @@ import {
16
16
  getTimeProvider,
17
17
  ok,
18
18
  resolveToolClassGuardMs
19
- } from "./chunk-PZJ4T7CY.js";
19
+ } from "./chunk-KJVO5G4I.js";
20
20
  import {
21
21
  getNexusDataDir
22
22
  } from "./chunk-NBMWONHE.js";
@@ -2042,4 +2042,4 @@ export {
2042
2042
  VOTING_THRESHOLDS,
2043
2043
  ConsensusMetricsSchema
2044
2044
  };
2045
- //# sourceMappingURL=chunk-DQWU6U3V.js.map
2045
+ //# sourceMappingURL=chunk-CAOGZ3LX.js.map
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  loadPapersRegistry
3
- } from "./chunk-W4KF2GUO.js";
3
+ } from "./chunk-7U24UIVM.js";
4
4
  import {
5
5
  getErrorMessage
6
- } from "./chunk-PZJ4T7CY.js";
6
+ } from "./chunk-KJVO5G4I.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-5HIEY5GV.js.map
879
+ //# sourceMappingURL=chunk-CDVX3IJR.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  getErrorMessage
3
- } from "./chunk-PZJ4T7CY.js";
3
+ } from "./chunk-KJVO5G4I.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-2A4B2XAB.js.map
80
+ //# sourceMappingURL=chunk-DWX7S2OP.js.map
@@ -2,7 +2,7 @@ import {
2
2
  createLogger,
3
3
  err,
4
4
  ok
5
- } from "./chunk-PZJ4T7CY.js";
5
+ } from "./chunk-KJVO5G4I.js";
6
6
 
7
7
  // src/scm/token-resolver.ts
8
8
  import { execFile } from "child_process";
@@ -87,4 +87,4 @@ export {
87
87
  hasToken,
88
88
  getTokenEnvVars
89
89
  };
90
- //# sourceMappingURL=chunk-SV7RHVNA.js.map
90
+ //# sourceMappingURL=chunk-ECX3NCE6.js.map
@@ -3,7 +3,7 @@ import {
3
3
  createLogger,
4
4
  err,
5
5
  ok
6
- } from "./chunk-PZJ4T7CY.js";
6
+ } from "./chunk-KJVO5G4I.js";
7
7
 
8
8
  // src/adapters/sdk/types.ts
9
9
  var PROVIDER_ENV_KEYS = {
@@ -260,4 +260,4 @@ export {
260
260
  validateCustomApiBaseUrl,
261
261
  assertCustomApiHostResolvesPublic
262
262
  };
263
- //# sourceMappingURL=chunk-SWCFHK54.js.map
263
+ //# sourceMappingURL=chunk-EXFE6TG3.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  generateSecurityPlan
3
- } from "./chunk-77XPSO4O.js";
3
+ } from "./chunk-KXX4I7Z5.js";
4
4
  import {
5
5
  analyzeGitHubRepo
6
6
  } from "./chunk-HFOQKCD2.js";
@@ -21,10 +21,10 @@ import {
21
21
  import {
22
22
  DEFAULT_TASK_TTL_MS,
23
23
  clampTaskTtl
24
- } from "./chunk-QZAMRR2Q.js";
24
+ } from "./chunk-M7UTZBNQ.js";
25
25
  import {
26
26
  executeExpert
27
- } from "./chunk-BH5PWPKK.js";
27
+ } from "./chunk-FSCMH2Y3.js";
28
28
  import {
29
29
  JobStatusSchema,
30
30
  abortJob,
@@ -45,24 +45,24 @@ import {
45
45
  simulationDeniedResult,
46
46
  toJobSummary,
47
47
  writeJobCancelled
48
- } from "./chunk-53Z7HGIH.js";
48
+ } from "./chunk-HC45BJCG.js";
49
49
  import {
50
50
  allOf
51
51
  } from "./chunk-OQB3XC5O.js";
52
52
  import {
53
53
  normalizeTopicToCanonical,
54
54
  synthesizeResearch
55
- } from "./chunk-5HIEY5GV.js";
55
+ } from "./chunk-CDVX3IJR.js";
56
56
  import {
57
57
  IssueTriage
58
- } from "./chunk-YYNJWKMN.js";
58
+ } from "./chunk-TYT22OEG.js";
59
59
  import {
60
60
  resolveEnvMode,
61
61
  sanitizeInput
62
- } from "./chunk-SEWVNOEM.js";
62
+ } from "./chunk-AN4WYZ7B.js";
63
63
  import {
64
64
  withPrerequisite
65
- } from "./chunk-LRAFP75Q.js";
65
+ } from "./chunk-SSXQ2EIT.js";
66
66
  import {
67
67
  NOOP_NOTIFIER,
68
68
  RateLimiter,
@@ -86,18 +86,18 @@ import {
86
86
  withAuditTrail,
87
87
  withProgressHeartbeat,
88
88
  wrapToolWithTimeout
89
- } from "./chunk-DQWU6U3V.js";
89
+ } from "./chunk-CAOGZ3LX.js";
90
90
  import {
91
91
  createAuditTrail,
92
92
  createGraphAuditBridge,
93
93
  emitPipelinePolicyEvent
94
- } from "./chunk-W7VA5TPI.js";
94
+ } from "./chunk-VVNFBSFU.js";
95
95
  import {
96
96
  EventTopics,
97
97
  createEvent,
98
98
  getGlobalEventBus,
99
99
  getGlobalRegistry
100
- } from "./chunk-Q5FCGF3Z.js";
100
+ } from "./chunk-52BIOPZB.js";
101
101
  import {
102
102
  IDENTIFIER_RE,
103
103
  LANG_VALUES,
@@ -130,29 +130,29 @@ import {
130
130
  parseRegistry,
131
131
  sourceExistsInRegistry,
132
132
  summarizeContextForPrompt
133
- } from "./chunk-EDZK52PE.js";
133
+ } from "./chunk-KRTJILXV.js";
134
134
  import {
135
135
  loadPapersRegistry,
136
136
  loadTechniquesRegistry,
137
137
  resolveInsideRoot
138
- } from "./chunk-W4KF2GUO.js";
138
+ } from "./chunk-7U24UIVM.js";
139
139
  import {
140
140
  getTokenEnvVars,
141
141
  resolveToken
142
- } from "./chunk-SV7RHVNA.js";
142
+ } from "./chunk-ECX3NCE6.js";
143
143
  import {
144
144
  DEFAULT_RELEVANCE_CONFIG,
145
145
  MemoryImportance,
146
146
  calculateTextJaccardSimilarity,
147
147
  getToolMemory
148
- } from "./chunk-TTHC3C6V.js";
148
+ } from "./chunk-AEUU73HH.js";
149
149
  import {
150
150
  STOPWORDS,
151
151
  truncateWithInfo
152
152
  } from "./chunk-6T3EPABN.js";
153
153
  import {
154
154
  createSessionMemory
155
- } from "./chunk-HYQR2PSB.js";
155
+ } from "./chunk-M23FK7TU.js";
156
156
  import {
157
157
  BUILT_IN_EXPERTS,
158
158
  BuiltInExpertTypeSchema,
@@ -170,25 +170,25 @@ import {
170
170
  getAvailableClis,
171
171
  sleep,
172
172
  withTimeout
173
- } from "./chunk-7EIWV5IW.js";
173
+ } from "./chunk-TWRQT33G.js";
174
174
  import {
175
175
  BaseAdapter,
176
176
  createStream,
177
177
  requireApiKey,
178
178
  validateApiKeyPresence
179
- } from "./chunk-VVKZ5OT5.js";
179
+ } from "./chunk-RIAHGG73.js";
180
180
  import {
181
181
  DEFAULTS
182
- } from "./chunk-M5MKUJ3F.js";
182
+ } from "./chunk-RS4DYGW2.js";
183
183
  import {
184
184
  getAvailabilityCache,
185
185
  getCliForModelId,
186
186
  resolveFallback
187
- } from "./chunk-BJZGMJU7.js";
187
+ } from "./chunk-OFADY2PG.js";
188
188
  import {
189
189
  generateHyphenId,
190
190
  generateUUID
191
- } from "./chunk-WNBBPPHR.js";
191
+ } from "./chunk-74OZZCCN.js";
192
192
  import {
193
193
  AGENT_ROUTER_TIMEOUTS,
194
194
  API_TIMEOUTS,
@@ -292,7 +292,7 @@ import {
292
292
  selectStrategyByManifest,
293
293
  toExpertTaskAnalysisResult,
294
294
  withStep
295
- } from "./chunk-PZJ4T7CY.js";
295
+ } from "./chunk-KJVO5G4I.js";
296
296
  import {
297
297
  ensureLearningDir,
298
298
  getMetaOutcomesFile,
@@ -29556,7 +29556,7 @@ function execIdFields(executionId) {
29556
29556
  async function populateUnifiedContextOnState(state, options) {
29557
29557
  const taskCandidate = state["task"];
29558
29558
  if (typeof taskCandidate !== "string" || taskCandidate === "") return;
29559
- const { getContextForTask: getContextForTask2, inferTaskCategory: inferTaskCategory2 } = await import("./context-retriever-GHOSKK7X.js");
29559
+ const { getContextForTask: getContextForTask2, inferTaskCategory: inferTaskCategory2 } = await import("./context-retriever-HWFWR4JM.js");
29560
29560
  const category = inferTaskCategory2(taskCandidate);
29561
29561
  const executionId = options?.executionId;
29562
29562
  const execFields = execIdFields(executionId);
@@ -45255,7 +45255,7 @@ async function tryIssueTriage(task) {
45255
45255
  try {
45256
45256
  const issueMatch = task.match(/github\.com\/([^/]+\/[^/]+)\/issues\/(\d+)/);
45257
45257
  if (issueMatch === null) return null;
45258
- const { createIssueTriage } = await import("./issue-triage-UHC6GZLS.js");
45258
+ const { createIssueTriage } = await import("./issue-triage-4ULNSYHX.js");
45259
45259
  const triage = createIssueTriage();
45260
45260
  const owner = issueMatch[1] ?? "";
45261
45261
  const num = issueMatch[2] ?? "";
@@ -45283,7 +45283,7 @@ var VALID_TEMPLATES = /* @__PURE__ */ new Set([
45283
45283
  ]);
45284
45284
  async function classifyWithLLM(task) {
45285
45285
  try {
45286
- const { executeExpert: executeExpert2 } = await import("./expert-bridge-FWX3P4WM.js");
45286
+ const { executeExpert: executeExpert2 } = await import("./expert-bridge-6JJGANAU.js");
45287
45287
  const prompt = [
45288
45288
  "Classify this task into exactly one pipeline template.",
45289
45289
  "Templates: dev (implementation/bug fix/refactor), research (investigate/evaluate/compare),",
@@ -45597,6 +45597,12 @@ function getVoteFeedback(result) {
45597
45597
  }
45598
45598
  var MAX_VOTE_ITERATIONS = 3;
45599
45599
  var MAX_QA_ITERATIONS = 3;
45600
+ function resolveIterationLimits(options) {
45601
+ return {
45602
+ vote: options?.maxVoteIterations ?? MAX_VOTE_ITERATIONS,
45603
+ qa: options?.maxQaIterations ?? MAX_QA_ITERATIONS
45604
+ };
45605
+ }
45600
45606
  async function runDevPipeline(task, stages, options) {
45601
45607
  const sid = options?.sessionId;
45602
45608
  const prior = sid !== void 0 ? loadCheckpointState(sid) : null;
@@ -45626,13 +45632,11 @@ async function runDevPipelineInner(task, stages, options, sid, prior) {
45626
45632
  logger42.info("Harness mode \u2014 returning tasks for external implementation");
45627
45633
  return buildHarnessResult(planResult, tasks);
45628
45634
  }
45629
- const result = await runImplSecurityPhase(
45630
- planResult,
45631
- tasks,
45632
- stages,
45635
+ const result = await runImplSecurityPhase(planResult, tasks, stages, {
45633
45636
  sid,
45634
- options?.qualityGate ?? "off"
45635
- );
45637
+ qualityGateMode: options?.qualityGate ?? "off",
45638
+ limits: resolveIterationLimits(options)
45639
+ });
45636
45640
  applyPipelineHindsight(bm, task, sid, result);
45637
45641
  return result;
45638
45642
  }
@@ -45846,7 +45850,10 @@ async function runPlanningPhase(task, stages, prior, options) {
45846
45850
  saveStageCheckpoint(sid, "research", { type: "research", text: research.text });
45847
45851
  }
45848
45852
  const planContext = await assemblePlanContext(research.text, task, sid, bm);
45849
- const planResult = await runPlanOrResume(prior, task, planContext, stages, sid);
45853
+ const planResult = await runPlanOrResume(prior, task, planContext, stages, {
45854
+ sid,
45855
+ limits: resolveIterationLimits(options)
45856
+ });
45850
45857
  if (sid !== void 0) {
45851
45858
  saveStageCheckpoint(sid, "plan", {
45852
45859
  type: "plan",
@@ -45877,8 +45884,9 @@ function buildHarnessResult(planResult, tasks) {
45877
45884
  securityRan: false
45878
45885
  };
45879
45886
  }
45880
- async function runImplSecurityPhase(planResult, tasks, stages, sid, qualityGateMode) {
45881
- const implResult = await implementQaLoop(tasks, stages);
45887
+ async function runImplSecurityPhase(planResult, tasks, stages, run) {
45888
+ const { sid, qualityGateMode, limits } = run;
45889
+ const implResult = await implementQaLoop(tasks, stages, limits);
45882
45890
  if (sid !== void 0)
45883
45891
  saveStageCheckpoint(sid, "implement", { type: "implement", tasks: implResult.completedTasks });
45884
45892
  const qaGate = await runQualityGateStage(stages, qualityGateMode);
@@ -45936,7 +45944,8 @@ async function runQualityGateStage(stages, mode) {
45936
45944
  }
45937
45945
  );
45938
45946
  }
45939
- async function runPlanOrResume(prior, task, research, stages, sessionId) {
45947
+ async function runPlanOrResume(prior, task, research, stages, run) {
45948
+ const { sid: sessionId, limits } = run;
45940
45949
  if (prior?.plan !== void 0) {
45941
45950
  logger42.info("Resuming from checkpoint", { stage: "plan", sessionId });
45942
45951
  return {
@@ -45947,7 +45956,7 @@ async function runPlanOrResume(prior, task, research, stages, sessionId) {
45947
45956
  caveats: prior.voteCaveats ?? []
45948
45957
  };
45949
45958
  }
45950
- return planVoteLoop(task, research, stages, sessionId);
45959
+ return planVoteLoop(task, research, stages, sessionId, limits);
45951
45960
  }
45952
45961
  async function runOrResumeDecompose(prior, plan, stages, meta) {
45953
45962
  if (prior?.tasks !== void 0) {
@@ -45971,10 +45980,10 @@ function extractConditionalMeta(vote) {
45971
45980
  }
45972
45981
  return { conditional: false, conditions: [], caveats: [] };
45973
45982
  }
45974
- async function planVoteLoop(task, research, stages, sessionId) {
45983
+ async function planVoteLoop(task, research, stages, sessionId, limits) {
45975
45984
  let feedback;
45976
45985
  let plan = "";
45977
- for (let i = 1; i <= MAX_VOTE_ITERATIONS; i++) {
45986
+ for (let i = 1; i <= limits.vote; i++) {
45978
45987
  plan = await withStep(
45979
45988
  { name: `plan (i=${String(i)})`, kind: "pipeline.stage", attrs: { iteration: i } },
45980
45989
  () => stages.plan(task, research, feedback)
@@ -46011,9 +46020,9 @@ async function planVoteLoop(task, research, stages, sessionId) {
46011
46020
  });
46012
46021
  }
46013
46022
  logger42.warn("Max vote iterations reached, proceeding with last plan", { sessionId });
46014
- return { plan, iterations: MAX_VOTE_ITERATIONS, conditional: false, conditions: [], caveats: [] };
46023
+ return { plan, iterations: limits.vote, conditional: false, conditions: [], caveats: [] };
46015
46024
  }
46016
- async function implementSingleTask(task, stages) {
46025
+ async function implementSingleTask(task, stages, limits) {
46017
46026
  let currentTask = { ...task, status: "in_progress" };
46018
46027
  const qaResult = await runQaLoop(
46019
46028
  async (feedback) => {
@@ -46035,7 +46044,7 @@ async function implementSingleTask(task, stages) {
46035
46044
  const review = await stages.qaReview(currentTask, impl);
46036
46045
  return { verdict: review.verdict, feedback: review.feedback, issues: review.issues };
46037
46046
  },
46038
- MAX_QA_ITERATIONS
46047
+ limits.qa
46039
46048
  );
46040
46049
  const finalTask = {
46041
46050
  id: task.id,
@@ -46051,15 +46060,15 @@ async function implementSingleTask(task, stages) {
46051
46060
  return { iterations: qaResult.iterations, task: finalTask };
46052
46061
  }
46053
46062
  var MAX_IMPL_CONCURRENCY = 4;
46054
- async function implementQaLoop(tasks, stages) {
46063
+ async function implementQaLoop(tasks, stages, limits) {
46055
46064
  if (tasks.length === 0) return { totalIterations: 0, completedTasks: [] };
46056
- const taskFns = tasks.map((task) => () => implementSingleTaskSafe(task, stages));
46065
+ const taskFns = tasks.map((task) => () => implementSingleTaskSafe(task, stages, limits));
46057
46066
  const results = await executeWithConcurrency(taskFns, MAX_IMPL_CONCURRENCY);
46058
46067
  return aggregateImplResults(results);
46059
46068
  }
46060
- async function implementSingleTaskSafe(task, stages) {
46069
+ async function implementSingleTaskSafe(task, stages, limits) {
46061
46070
  try {
46062
- return await implementSingleTask(task, stages);
46071
+ return await implementSingleTask(task, stages, limits);
46063
46072
  } catch (error) {
46064
46073
  const reason = error instanceof Error ? error : new Error(String(error));
46065
46074
  logger42.error("Task implementation failed", reason, {});
@@ -47024,7 +47033,7 @@ var memoryInitPromise = null;
47024
47033
  async function initPipelineMemory() {
47025
47034
  if (cachedMemory !== null) return cachedMemory;
47026
47035
  try {
47027
- const { createSessionMemory: createSessionMemory2 } = await import("./session-memory-BFM6SH3T.js");
47036
+ const { createSessionMemory: createSessionMemory2 } = await import("./session-memory-VPCABSBU.js");
47028
47037
  const { getLearningDir } = await import("./learning-persistence-SR5F4DSY.js");
47029
47038
  const mem = createSessionMemory2(getLearningDir());
47030
47039
  mem.startSession(`pipeline-${String(getTimeProvider().now())}`);
@@ -47086,7 +47095,7 @@ function recordRoutingExperience(category, success, durationMs, tokensUsed = 0,
47086
47095
  callRecord(routingMemoryCache);
47087
47096
  return;
47088
47097
  }
47089
- routingMemoryInitPromise ??= import("./routing-memory-ZBRAWLWW.js").then(({ createRoutingMemory }) => {
47098
+ routingMemoryInitPromise ??= import("./routing-memory-LQB6M55D.js").then(({ createRoutingMemory }) => {
47090
47099
  routingMemoryCache ??= createRoutingMemory();
47091
47100
  return routingMemoryCache;
47092
47101
  }).catch((error) => {
@@ -47120,7 +47129,7 @@ ${text}` : "";
47120
47129
  }
47121
47130
  async function getWeatherContext() {
47122
47131
  try {
47123
- const { generateWeatherReport: generateWeatherReport2 } = await import("./weather-report-UEQM6BSC.js");
47132
+ const { generateWeatherReport: generateWeatherReport2 } = await import("./weather-report-CWICZMNA.js");
47124
47133
  const report = generateWeatherReport2({ includeAdaptive: true });
47125
47134
  const mappings = "recommendedMappings" in report ? report.recommendedMappings : [];
47126
47135
  if (!Array.isArray(mappings) || mappings.length === 0) return "";
@@ -47138,7 +47147,7 @@ ${lines}
47138
47147
  }
47139
47148
  async function getMemoryContext(task) {
47140
47149
  try {
47141
- const { createSessionMemory: createSessionMemory2 } = await import("./session-memory-BFM6SH3T.js");
47150
+ const { createSessionMemory: createSessionMemory2 } = await import("./session-memory-VPCABSBU.js");
47142
47151
  const { getLearningDir } = await import("./learning-persistence-SR5F4DSY.js");
47143
47152
  const memory = createSessionMemory2(getLearningDir(), { maxLearningsInContext: 10 });
47144
47153
  const learnings = memory.searchLearnings(task.slice(0, 200));
@@ -47257,7 +47266,7 @@ ${contextBlock}`;
47257
47266
  const strategy = config.votingStrategy ?? "higher_order";
47258
47267
  await postProgress(config, "Vote", `Running consensus with ${strategy} strategy...`);
47259
47268
  try {
47260
- const { executeVoting } = await import("./consensus-vote-445IDEM4.js");
47269
+ const { executeVoting } = await import("./consensus-vote-ODNIYVTK.js");
47261
47270
  const votingResult = await executeVoting(
47262
47271
  {
47263
47272
  proposal: buildVoteProposal(plan, research),
@@ -47696,7 +47705,7 @@ async function searchCodebaseForTask(task) {
47696
47705
  }
47697
47706
  async function queryResearchRegistry(task) {
47698
47707
  try {
47699
- const { synthesizeResearch: synthesizeResearch2 } = await import("./research-helpers-synthesize-7B2HUWAO.js");
47708
+ const { synthesizeResearch: synthesizeResearch2 } = await import("./research-helpers-synthesize-WPU7C7BI.js");
47700
47709
  const topic = task.split(/[.!?\n]/).filter((s) => s.trim().length > 10)[0]?.trim();
47701
47710
  if (topic === void 0) return null;
47702
47711
  const result = await synthesizeResearch2(topic.slice(0, 50));
@@ -47767,7 +47776,7 @@ function createScanStageWrapper() {
47767
47776
  try {
47768
47777
  const slug = ctx.task.match(/([a-zA-Z0-9._-]+\/[a-zA-Z0-9._-]+)/)?.[1];
47769
47778
  if (slug !== void 0) {
47770
- const { generateSecurityPlan: generateSecurityPlan2 } = await import("./repo-security-plan-AF7CL7PT.js");
47779
+ const { generateSecurityPlan: generateSecurityPlan2 } = await import("./repo-security-plan-IFYLW5W4.js");
47771
47780
  const plan = await generateSecurityPlan2({ repo: slug, maxScanners: 10 });
47772
47781
  const recs = plan.recommendations.slice(0, 5).map((r) => `${r.priority}: ${r.displayName} (${r.category})`).join("; ");
47773
47782
  return output(PIPELINE_STATE_KEYS.FINDINGS, recs, getTimeProvider().now() - start, true);
@@ -50892,7 +50901,7 @@ var GitHubTaskTracker = class {
50892
50901
  cachedProvider = null;
50893
50902
  async getProvider() {
50894
50903
  if (this.cachedProvider !== null) return this.cachedProvider;
50895
- const { createScmProvider } = await import("./factory-G63HMXET.js");
50904
+ const { createScmProvider } = await import("./factory-MPMGNS74.js");
50896
50905
  const result = await createScmProvider({ repo: this.config.repo ?? "" });
50897
50906
  if (!result.ok) throw new Error(`SCM provider error: ${result.error.message}`);
50898
50907
  this.cachedProvider = result.value;
@@ -51167,6 +51176,10 @@ function buildPipelineOptions(input, trustTier, auditLogger) {
51167
51176
  ...input.dryRun ? { dryRun: true } : {},
51168
51177
  ...input.mode === "harness" ? { mode: "harness" } : {},
51169
51178
  ...input.qualityGate !== "off" ? { qualityGate: input.qualityGate } : {},
51179
+ // #4939: both were advertised, bounds-checked and defaulted since the tool
51180
+ // shipped, and neither was ever read off `parsed.data`.
51181
+ maxVoteIterations: input.maxVoteIterations,
51182
+ maxQaIterations: input.maxQaIterations,
51170
51183
  ...trustTier !== void 0 ? { trustTier } : {},
51171
51184
  // #3710: thread the server's durable audit logger so the consensus→execute
51172
51185
  // policy gate persists decisions to the shared hash chain.
@@ -51787,7 +51800,7 @@ async function probeSource(source, includeModelIds) {
51787
51800
  }
51788
51801
  }
51789
51802
  async function defaultSources(includeOpenRouter) {
51790
- const { createAllAdapters: createAllAdapters2 } = await import("./factory-SQMVOFRQ.js");
51803
+ const { createAllAdapters: createAllAdapters2 } = await import("./factory-AIRH7ZD5.js");
51791
51804
  const adapters = createAllAdapters2();
51792
51805
  return buildDefaultModelSources(adapters, { includeOpenRouter });
51793
51806
  }
@@ -53585,7 +53598,6 @@ var GeminiResponseParser = class {
53585
53598
  // src/cli-adapters/router-types.ts
53586
53599
  import { z as z123 } from "zod";
53587
53600
  var RouterConfigSchema = z123.object({
53588
- minCapacityThreshold: z123.number().min(0).max(1).default(0.1),
53589
53601
  preferCostEfficient: z123.boolean().default(false),
53590
53602
  maxDecisionTimeMs: z123.number().min(1).max(1e3).default(100)
53591
53603
  });
@@ -55850,4 +55862,4 @@ export {
55850
55862
  shutdownFeedbackSubscriber,
55851
55863
  createEventBusBridge
55852
55864
  };
55853
- //# sourceMappingURL=chunk-XED5OLWO.js.map
55865
+ //# sourceMappingURL=chunk-F7F54NTS.js.map