nexus-agents 4.3.6 → 4.5.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-6BPBGQB4.js → child-mcp-config-OBOA4PE2.js} +2 -2
  2. package/dist/{chunk-IXMTCWMN.js → chunk-34UKF4FB.js} +3 -3
  3. package/dist/{chunk-65DZ7WHY.js → chunk-5JRYCJ37.js} +2 -2
  4. package/dist/{chunk-LPUJG7C6.js → chunk-6HSDJ5H6.js} +2 -2
  5. package/dist/{chunk-CFEZ2DG6.js → chunk-75K4TN5H.js} +8 -8
  6. package/dist/{chunk-RUN6KRCP.js → chunk-7BMK5VEO.js} +8 -8
  7. package/dist/{chunk-Y3UJ3VLA.js → chunk-7Y7UFVQ5.js} +2 -2
  8. package/dist/{chunk-XJORRLQT.js → chunk-ANTZOHQ6.js} +24 -7
  9. package/dist/{chunk-XJORRLQT.js.map → chunk-ANTZOHQ6.js.map} +1 -1
  10. package/dist/{chunk-K2ZYZZNZ.js → chunk-ARTRA6YC.js} +3 -3
  11. package/dist/{chunk-UH4MK2N7.js → chunk-B6DNL7LG.js} +4 -4
  12. package/dist/{chunk-E6ET2WJI.js → chunk-BAWVMEXA.js} +4 -4
  13. package/dist/{chunk-SSPEB62Y.js → chunk-BLY3DXM2.js} +5 -5
  14. package/dist/{chunk-PZSPL5KN.js → chunk-BT6ONNFH.js} +2 -2
  15. package/dist/{chunk-SHG3MYMD.js → chunk-C6SAPXUV.js} +2 -2
  16. package/dist/{chunk-K6VI5GUF.js → chunk-CGJPW5BI.js} +55 -46
  17. package/dist/chunk-CGJPW5BI.js.map +1 -0
  18. package/dist/{chunk-PG563EVI.js → chunk-D7X2AMEB.js} +2 -2
  19. package/dist/{chunk-CDLXONR6.js → chunk-EPD5MGPB.js} +8 -8
  20. package/dist/{chunk-6DLKK5R2.js → chunk-ESWY4Y7S.js} +4 -4
  21. package/dist/{chunk-DFCJUKGD.js → chunk-EYZIMY6I.js} +2 -2
  22. package/dist/{chunk-TKFWYFBD.js → chunk-HBGA62JG.js} +2 -2
  23. package/dist/{chunk-OPH5S776.js → chunk-JDUTA6FI.js} +2 -2
  24. package/dist/{chunk-VWXQHGQ2.js → chunk-KMUOL3AL.js} +2 -2
  25. package/dist/{chunk-AVB5GOSW.js → chunk-LVE7MN2F.js} +6 -6
  26. package/dist/{chunk-U4LM5Q2L.js → chunk-NH3O2D5O.js} +3 -3
  27. package/dist/{chunk-4OSPP2KN.js → chunk-NMX7AYYB.js} +2 -2
  28. package/dist/{chunk-ZQWCL7YB.js → chunk-O32DMSG5.js} +3 -3
  29. package/dist/{chunk-NXGHNZJV.js → chunk-QNT5WS7E.js} +24 -24
  30. package/dist/{chunk-NXGHNZJV.js.map → chunk-QNT5WS7E.js.map} +1 -1
  31. package/dist/{chunk-UI3WYJSZ.js → chunk-SWUYPFXS.js} +2 -2
  32. package/dist/{chunk-SPZOZGBS.js → chunk-TD6I5UHY.js} +2 -2
  33. package/dist/{chunk-QGXA25PQ.js → chunk-TI65NJOM.js} +2 -2
  34. package/dist/{chunk-QTP4AIVR.js → chunk-VRJAJUUR.js} +7 -7
  35. package/dist/{chunk-EJLOD53Z.js → chunk-XCUO5YUJ.js} +2 -2
  36. package/dist/{chunk-YIV4GQHK.js → chunk-YLESXBB3.js} +2 -2
  37. package/dist/{chunk-NKTANKWH.js → chunk-YY67CP2U.js} +3 -3
  38. package/dist/{cli-circuit-breaker-3CH36TPE.js → cli-circuit-breaker-TJVDSJU5.js} +3 -3
  39. package/dist/cli.js +106 -77
  40. package/dist/cli.js.map +1 -1
  41. package/dist/{composite-router-QK4OPVDX.js → composite-router-CIC4BU6A.js} +2 -2
  42. package/dist/{consensus-vote-DL4XNR7M.js → consensus-vote-77UCSVGM.js} +16 -16
  43. package/dist/{context-retriever-UPHWSEXA.js → context-retriever-CP72SNYZ.js} +8 -8
  44. package/dist/{doctor-deep-UHFL3AE4.js → doctor-deep-WI2ZC7Z3.js} +3 -3
  45. package/dist/{doctor-live-2CGAFGFG.js → doctor-live-W2KY3OIA.js} +9 -9
  46. package/dist/{expert-bridge-KTKJTMMO.js → expert-bridge-HGBVHVJI.js} +4 -4
  47. package/dist/{factory-SC3N2RMX.js → factory-GEBBVQHZ.js} +9 -9
  48. package/dist/{factory-QQKY3UW4.js → factory-LEYEWZ4Y.js} +5 -5
  49. package/dist/{improvement-review-I4WFQK25.js → improvement-review-XN2GZX3V.js} +5 -5
  50. package/dist/index.d.ts +14 -0
  51. package/dist/index.js +30 -30
  52. package/dist/{init-opencode-HTSSQOLE.js → init-opencode-UPA3R362.js} +6 -6
  53. package/dist/issue-triage-QAI2FNMN.js +17 -0
  54. package/dist/{pr-reviewer-helpers-UOP4JVHI.js → pr-reviewer-helpers-KRKXKZIA.js} +4 -4
  55. package/dist/{registry-command-EPG2X2ZI.js → registry-command-2SCTKLEO.js} +2 -2
  56. package/dist/{repo-security-plan-QYSW4MKN.js → repo-security-plan-NFYC64IS.js} +3 -3
  57. package/dist/{research-helpers-synthesize-YSYYUW5H.js → research-helpers-synthesize-K5TX2WM3.js} +4 -4
  58. package/dist/{routing-memory-BZ6IGNXN.js → routing-memory-JPDPHK7P.js} +2 -2
  59. package/dist/{session-memory-GVOVQ3TV.js → session-memory-XIIEIJPT.js} +3 -3
  60. package/dist/{setup-command-TLIVUIVE.js → setup-command-DIL56GPR.js} +14 -14
  61. package/dist/{setup-config-Q2WGGIQT.js → setup-config-SUEPUZYL.js} +3 -3
  62. package/dist/{setup-custom-api-GXF5MFBG.js → setup-custom-api-5TTLIPV3.js} +4 -4
  63. package/dist/{tool-memory-MHP37ASX.js → tool-memory-ACUOYCYG.js} +5 -5
  64. package/dist/{unified-registry-WX3GDBCZ.js → unified-registry-P3PLOFBN.js} +10 -10
  65. package/dist/{weather-report-YY7BO744.js → weather-report-464SS6FY.js} +2 -2
  66. package/package.json +1 -1
  67. package/dist/chunk-K6VI5GUF.js.map +0 -1
  68. package/dist/issue-triage-SAS3D5K4.js +0 -17
  69. /package/dist/{child-mcp-config-6BPBGQB4.js.map → child-mcp-config-OBOA4PE2.js.map} +0 -0
  70. /package/dist/{chunk-IXMTCWMN.js.map → chunk-34UKF4FB.js.map} +0 -0
  71. /package/dist/{chunk-65DZ7WHY.js.map → chunk-5JRYCJ37.js.map} +0 -0
  72. /package/dist/{chunk-LPUJG7C6.js.map → chunk-6HSDJ5H6.js.map} +0 -0
  73. /package/dist/{chunk-CFEZ2DG6.js.map → chunk-75K4TN5H.js.map} +0 -0
  74. /package/dist/{chunk-RUN6KRCP.js.map → chunk-7BMK5VEO.js.map} +0 -0
  75. /package/dist/{chunk-Y3UJ3VLA.js.map → chunk-7Y7UFVQ5.js.map} +0 -0
  76. /package/dist/{chunk-K2ZYZZNZ.js.map → chunk-ARTRA6YC.js.map} +0 -0
  77. /package/dist/{chunk-UH4MK2N7.js.map → chunk-B6DNL7LG.js.map} +0 -0
  78. /package/dist/{chunk-E6ET2WJI.js.map → chunk-BAWVMEXA.js.map} +0 -0
  79. /package/dist/{chunk-SSPEB62Y.js.map → chunk-BLY3DXM2.js.map} +0 -0
  80. /package/dist/{chunk-PZSPL5KN.js.map → chunk-BT6ONNFH.js.map} +0 -0
  81. /package/dist/{chunk-SHG3MYMD.js.map → chunk-C6SAPXUV.js.map} +0 -0
  82. /package/dist/{chunk-PG563EVI.js.map → chunk-D7X2AMEB.js.map} +0 -0
  83. /package/dist/{chunk-CDLXONR6.js.map → chunk-EPD5MGPB.js.map} +0 -0
  84. /package/dist/{chunk-6DLKK5R2.js.map → chunk-ESWY4Y7S.js.map} +0 -0
  85. /package/dist/{chunk-DFCJUKGD.js.map → chunk-EYZIMY6I.js.map} +0 -0
  86. /package/dist/{chunk-TKFWYFBD.js.map → chunk-HBGA62JG.js.map} +0 -0
  87. /package/dist/{chunk-OPH5S776.js.map → chunk-JDUTA6FI.js.map} +0 -0
  88. /package/dist/{chunk-VWXQHGQ2.js.map → chunk-KMUOL3AL.js.map} +0 -0
  89. /package/dist/{chunk-AVB5GOSW.js.map → chunk-LVE7MN2F.js.map} +0 -0
  90. /package/dist/{chunk-U4LM5Q2L.js.map → chunk-NH3O2D5O.js.map} +0 -0
  91. /package/dist/{chunk-4OSPP2KN.js.map → chunk-NMX7AYYB.js.map} +0 -0
  92. /package/dist/{chunk-ZQWCL7YB.js.map → chunk-O32DMSG5.js.map} +0 -0
  93. /package/dist/{chunk-UI3WYJSZ.js.map → chunk-SWUYPFXS.js.map} +0 -0
  94. /package/dist/{chunk-SPZOZGBS.js.map → chunk-TD6I5UHY.js.map} +0 -0
  95. /package/dist/{chunk-QGXA25PQ.js.map → chunk-TI65NJOM.js.map} +0 -0
  96. /package/dist/{chunk-QTP4AIVR.js.map → chunk-VRJAJUUR.js.map} +0 -0
  97. /package/dist/{chunk-EJLOD53Z.js.map → chunk-XCUO5YUJ.js.map} +0 -0
  98. /package/dist/{chunk-YIV4GQHK.js.map → chunk-YLESXBB3.js.map} +0 -0
  99. /package/dist/{chunk-NKTANKWH.js.map → chunk-YY67CP2U.js.map} +0 -0
  100. /package/dist/{cli-circuit-breaker-3CH36TPE.js.map → cli-circuit-breaker-TJVDSJU5.js.map} +0 -0
  101. /package/dist/{composite-router-QK4OPVDX.js.map → composite-router-CIC4BU6A.js.map} +0 -0
  102. /package/dist/{consensus-vote-DL4XNR7M.js.map → consensus-vote-77UCSVGM.js.map} +0 -0
  103. /package/dist/{context-retriever-UPHWSEXA.js.map → context-retriever-CP72SNYZ.js.map} +0 -0
  104. /package/dist/{doctor-deep-UHFL3AE4.js.map → doctor-deep-WI2ZC7Z3.js.map} +0 -0
  105. /package/dist/{doctor-live-2CGAFGFG.js.map → doctor-live-W2KY3OIA.js.map} +0 -0
  106. /package/dist/{expert-bridge-KTKJTMMO.js.map → expert-bridge-HGBVHVJI.js.map} +0 -0
  107. /package/dist/{factory-QQKY3UW4.js.map → factory-GEBBVQHZ.js.map} +0 -0
  108. /package/dist/{factory-SC3N2RMX.js.map → factory-LEYEWZ4Y.js.map} +0 -0
  109. /package/dist/{improvement-review-I4WFQK25.js.map → improvement-review-XN2GZX3V.js.map} +0 -0
  110. /package/dist/{init-opencode-HTSSQOLE.js.map → init-opencode-UPA3R362.js.map} +0 -0
  111. /package/dist/{issue-triage-SAS3D5K4.js.map → issue-triage-QAI2FNMN.js.map} +0 -0
  112. /package/dist/{pr-reviewer-helpers-UOP4JVHI.js.map → pr-reviewer-helpers-KRKXKZIA.js.map} +0 -0
  113. /package/dist/{registry-command-EPG2X2ZI.js.map → registry-command-2SCTKLEO.js.map} +0 -0
  114. /package/dist/{repo-security-plan-QYSW4MKN.js.map → repo-security-plan-NFYC64IS.js.map} +0 -0
  115. /package/dist/{research-helpers-synthesize-YSYYUW5H.js.map → research-helpers-synthesize-K5TX2WM3.js.map} +0 -0
  116. /package/dist/{routing-memory-BZ6IGNXN.js.map → routing-memory-JPDPHK7P.js.map} +0 -0
  117. /package/dist/{session-memory-GVOVQ3TV.js.map → session-memory-XIIEIJPT.js.map} +0 -0
  118. /package/dist/{setup-command-TLIVUIVE.js.map → setup-command-DIL56GPR.js.map} +0 -0
  119. /package/dist/{setup-config-Q2WGGIQT.js.map → setup-config-SUEPUZYL.js.map} +0 -0
  120. /package/dist/{setup-custom-api-GXF5MFBG.js.map → setup-custom-api-5TTLIPV3.js.map} +0 -0
  121. /package/dist/{tool-memory-MHP37ASX.js.map → tool-memory-ACUOYCYG.js.map} +0 -0
  122. /package/dist/{unified-registry-WX3GDBCZ.js.map → unified-registry-P3PLOFBN.js.map} +0 -0
  123. /package/dist/{weather-report-YY7BO744.js.map → weather-report-464SS6FY.js.map} +0 -0
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  emitClawGuardViolation
3
- } from "./chunk-DFCJUKGD.js";
3
+ } from "./chunk-EYZIMY6I.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-U4LM5Q2L.js";
19
+ } from "./chunk-NH3O2D5O.js";
20
20
  import {
21
21
  getNexusDataDir
22
22
  } from "./chunk-OQLFRJCW.js";
@@ -2042,4 +2042,4 @@ export {
2042
2042
  VOTING_THRESHOLDS,
2043
2043
  ConsensusMetricsSchema
2044
2044
  };
2045
- //# sourceMappingURL=chunk-K2ZYZZNZ.js.map
2045
+ //# sourceMappingURL=chunk-ARTRA6YC.js.map
@@ -5,7 +5,7 @@ import {
5
5
  } from "./chunk-6T3EPABN.js";
6
6
  import {
7
7
  SessionMemory
8
- } from "./chunk-PG563EVI.js";
8
+ } from "./chunk-D7X2AMEB.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-PZSPL5KN.js";
18
+ } from "./chunk-BT6ONNFH.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-U4LM5Q2L.js";
31
+ } from "./chunk-NH3O2D5O.js";
32
32
  import {
33
33
  nexusDataPath
34
34
  } from "./chunk-OQLFRJCW.js";
@@ -5550,4 +5550,4 @@ export {
5550
5550
  reinitializeMemoryBackends,
5551
5551
  ToolMemoryManager
5552
5552
  };
5553
- //# sourceMappingURL=chunk-UH4MK2N7.js.map
5553
+ //# sourceMappingURL=chunk-B6DNL7LG.js.map
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  createAutoAdapter
3
- } from "./chunk-RUN6KRCP.js";
3
+ } from "./chunk-7BMK5VEO.js";
4
4
  import {
5
5
  getDefaultCliCircuitBreakerRegistry,
6
6
  mapModelErrorToCategory
7
- } from "./chunk-4OSPP2KN.js";
7
+ } from "./chunk-NMX7AYYB.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-U4LM5Q2L.js";
25
+ } from "./chunk-NH3O2D5O.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-E6ET2WJI.js.map
866
+ //# sourceMappingURL=chunk-BAWVMEXA.js.map
@@ -1,17 +1,17 @@
1
1
  import {
2
2
  computeCostDetail,
3
3
  recordUsageEvent
4
- } from "./chunk-Y3UJ3VLA.js";
4
+ } from "./chunk-7Y7UFVQ5.js";
5
5
  import {
6
6
  BaseAdapter,
7
7
  createStream,
8
8
  planOptionalParams,
9
9
  requireApiKey,
10
10
  validateApiKeyPresence
11
- } from "./chunk-QGXA25PQ.js";
11
+ } from "./chunk-TI65NJOM.js";
12
12
  import {
13
13
  assertCustomApiHostResolvesPublic
14
- } from "./chunk-OPH5S776.js";
14
+ } from "./chunk-JDUTA6FI.js";
15
15
  import {
16
16
  ConfigError,
17
17
  ModelCapability,
@@ -22,7 +22,7 @@ import {
22
22
  getTimeProvider,
23
23
  getTokenEstimator,
24
24
  ok
25
- } from "./chunk-U4LM5Q2L.js";
25
+ } from "./chunk-NH3O2D5O.js";
26
26
 
27
27
  // src/adapters/openai-types.ts
28
28
  var OPENAI_MODELS = {
@@ -831,4 +831,4 @@ export {
831
831
  discoverModels,
832
832
  buildOpenAICompatAdapters
833
833
  };
834
- //# sourceMappingURL=chunk-SSPEB62Y.js.map
834
+ //# sourceMappingURL=chunk-BLY3DXM2.js.map
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  getRandomProvider,
3
3
  getTimeProvider
4
- } from "./chunk-U4LM5Q2L.js";
4
+ } from "./chunk-NH3O2D5O.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-PZSPL5KN.js.map
27
+ //# sourceMappingURL=chunk-BT6ONNFH.js.map
@@ -4,7 +4,7 @@ import {
4
4
  import {
5
5
  createLogger,
6
6
  getTimeProvider
7
- } from "./chunk-U4LM5Q2L.js";
7
+ } from "./chunk-NH3O2D5O.js";
8
8
 
9
9
  // src/mcp/tools/scanner-registry-fetcher.ts
10
10
  import { z } from "zod";
@@ -721,4 +721,4 @@ export {
721
721
  generateSecurityPlan,
722
722
  buildPlanFromAnalysis
723
723
  };
724
- //# sourceMappingURL=chunk-SHG3MYMD.js.map
724
+ //# sourceMappingURL=chunk-C6SAPXUV.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  generateSecurityPlan
3
- } from "./chunk-SHG3MYMD.js";
3
+ } from "./chunk-C6SAPXUV.js";
4
4
  import {
5
5
  analyzeGitHubRepo
6
6
  } from "./chunk-HFOQKCD2.js";
@@ -22,10 +22,10 @@ import {
22
22
  DEFAULT_TASK_TTL_MS,
23
23
  DEFAULT_TOOL_RATE_LIMITS,
24
24
  clampTaskTtl
25
- } from "./chunk-CDLXONR6.js";
25
+ } from "./chunk-EPD5MGPB.js";
26
26
  import {
27
27
  executeExpert
28
- } from "./chunk-QTP4AIVR.js";
28
+ } from "./chunk-VRJAJUUR.js";
29
29
  import {
30
30
  JobStatusSchema,
31
31
  abortJob,
@@ -46,24 +46,24 @@ import {
46
46
  simulationDeniedResult,
47
47
  toJobSummary,
48
48
  writeJobCancelled
49
- } from "./chunk-CFEZ2DG6.js";
49
+ } from "./chunk-75K4TN5H.js";
50
50
  import {
51
51
  allOf
52
52
  } from "./chunk-OQB3XC5O.js";
53
53
  import {
54
54
  normalizeTopicToCanonical,
55
55
  synthesizeResearch
56
- } from "./chunk-ZQWCL7YB.js";
56
+ } from "./chunk-O32DMSG5.js";
57
57
  import {
58
58
  IssueTriage
59
- } from "./chunk-AVB5GOSW.js";
59
+ } from "./chunk-LVE7MN2F.js";
60
60
  import {
61
61
  resolveEnvMode,
62
62
  sanitizeInput
63
- } from "./chunk-EJLOD53Z.js";
63
+ } from "./chunk-XCUO5YUJ.js";
64
64
  import {
65
65
  withPrerequisite
66
- } from "./chunk-IXMTCWMN.js";
66
+ } from "./chunk-34UKF4FB.js";
67
67
  import {
68
68
  NOOP_NOTIFIER,
69
69
  RateLimiter,
@@ -87,18 +87,18 @@ import {
87
87
  withAuditTrail,
88
88
  withProgressHeartbeat,
89
89
  wrapToolWithTimeout
90
- } from "./chunk-K2ZYZZNZ.js";
90
+ } from "./chunk-ARTRA6YC.js";
91
91
  import {
92
92
  createAuditTrail,
93
93
  createGraphAuditBridge,
94
94
  emitPipelinePolicyEvent
95
- } from "./chunk-DFCJUKGD.js";
95
+ } from "./chunk-EYZIMY6I.js";
96
96
  import {
97
97
  EventTopics,
98
98
  createEvent,
99
99
  getGlobalEventBus,
100
100
  getGlobalRegistry
101
- } from "./chunk-E6ET2WJI.js";
101
+ } from "./chunk-BAWVMEXA.js";
102
102
  import {
103
103
  IDENTIFIER_RE,
104
104
  LANG_VALUES,
@@ -131,31 +131,31 @@ import {
131
131
  parseRegistry,
132
132
  sourceExistsInRegistry,
133
133
  summarizeContextForPrompt
134
- } from "./chunk-XJORRLQT.js";
134
+ } from "./chunk-ANTZOHQ6.js";
135
135
  import {
136
136
  loadPapersRegistry,
137
137
  loadTechniquesRegistry
138
- } from "./chunk-VWXQHGQ2.js";
138
+ } from "./chunk-KMUOL3AL.js";
139
139
  import {
140
140
  resolveInsideRoot
141
141
  } from "./chunk-NUBSJGQZ.js";
142
142
  import {
143
143
  getTokenEnvVars,
144
144
  resolveToken
145
- } from "./chunk-UI3WYJSZ.js";
145
+ } from "./chunk-SWUYPFXS.js";
146
146
  import {
147
147
  DEFAULT_RELEVANCE_CONFIG,
148
148
  MemoryImportance,
149
149
  calculateTextJaccardSimilarity,
150
150
  getToolMemory
151
- } from "./chunk-UH4MK2N7.js";
151
+ } from "./chunk-B6DNL7LG.js";
152
152
  import {
153
153
  STOPWORDS,
154
154
  truncateWithInfo
155
155
  } from "./chunk-6T3EPABN.js";
156
156
  import {
157
157
  createSessionMemory
158
- } from "./chunk-PG563EVI.js";
158
+ } from "./chunk-D7X2AMEB.js";
159
159
  import {
160
160
  BUILT_IN_EXPERTS,
161
161
  BuiltInExpertTypeSchema,
@@ -173,25 +173,25 @@ import {
173
173
  getAvailableClis,
174
174
  sleep,
175
175
  withTimeout
176
- } from "./chunk-RUN6KRCP.js";
176
+ } from "./chunk-7BMK5VEO.js";
177
177
  import {
178
178
  BaseAdapter,
179
179
  createStream,
180
180
  requireApiKey,
181
181
  validateApiKeyPresence
182
- } from "./chunk-QGXA25PQ.js";
182
+ } from "./chunk-TI65NJOM.js";
183
183
  import {
184
184
  DEFAULTS
185
- } from "./chunk-65DZ7WHY.js";
185
+ } from "./chunk-5JRYCJ37.js";
186
186
  import {
187
187
  getAvailabilityCache,
188
188
  getCliForModelId,
189
189
  resolveFallback
190
- } from "./chunk-SPZOZGBS.js";
190
+ } from "./chunk-TD6I5UHY.js";
191
191
  import {
192
192
  generateHyphenId,
193
193
  generateUUID
194
- } from "./chunk-PZSPL5KN.js";
194
+ } from "./chunk-BT6ONNFH.js";
195
195
  import {
196
196
  AGENT_ROUTER_TIMEOUTS,
197
197
  API_TIMEOUTS,
@@ -291,7 +291,7 @@ import {
291
291
  selectStrategyByManifest,
292
292
  toExpertTaskAnalysisResult,
293
293
  withStep
294
- } from "./chunk-U4LM5Q2L.js";
294
+ } from "./chunk-NH3O2D5O.js";
295
295
  import {
296
296
  ensureLearningDir,
297
297
  getMetaOutcomesFile,
@@ -5369,15 +5369,22 @@ function buildExpertResults(participants, results) {
5369
5369
  }
5370
5370
  function buildAggregatedResult(input) {
5371
5371
  const { pattern, results, participants, votes, reviews, endTime } = input;
5372
+ const conflicts = [];
5372
5373
  return {
5373
5374
  output: aggregateOutputs(results),
5374
5375
  strategy: getAggregationStrategy(pattern),
5375
5376
  qualityScore: calculateQualityScore(pattern, participants, votes, reviews),
5376
- conflicts: [],
5377
+ conflicts,
5377
5378
  metadata: {
5378
5379
  resultCount: results.length,
5379
- conflictCount: 0,
5380
- averageConfidence: 1,
5380
+ conflictCount: conflicts.length,
5381
+ // Nothing reaching this builder carries a confidence signal: neither
5382
+ // TaskResult, ResultMetadata, VoteMessage nor ExpertParticipation has
5383
+ // the field. This reported 1.0 — a perfect score — for a session whose
5384
+ // confidence was never assessed (#4831). The placeholder now fails in
5385
+ // the safe direction and says it is a placeholder.
5386
+ averageConfidence: 0,
5387
+ confidenceMeasured: false,
5381
5388
  // #4743: shared with result-aggregator so the two cannot drift — they
5382
5389
  // were duplicate expressions computing the same thing.
5383
5390
  ...summarizeTokenUsage(results.map((r) => r.metadata)),
@@ -13866,6 +13873,9 @@ var ResultAggregator = class {
13866
13873
  resultCount: results.length,
13867
13874
  conflictCount: conflicts.length,
13868
13875
  averageConfidence: Math.round(avgConfidence * 100) / 100,
13876
+ // Measured: ExpertResult carries confidence, and `aggregate` rejects
13877
+ // an empty result list before reaching here (#4831).
13878
+ confidenceMeasured: true,
13869
13879
  ...usage,
13870
13880
  aggregatedAt: getTimeProvider().nowIso()
13871
13881
  }
@@ -28244,7 +28254,7 @@ function execIdFields(executionId) {
28244
28254
  async function populateUnifiedContextOnState(state, options) {
28245
28255
  const taskCandidate = state["task"];
28246
28256
  if (typeof taskCandidate !== "string" || taskCandidate === "") return;
28247
- const { getContextForTask: getContextForTask2, inferTaskCategory: inferTaskCategory2 } = await import("./context-retriever-UPHWSEXA.js");
28257
+ const { getContextForTask: getContextForTask2, inferTaskCategory: inferTaskCategory2 } = await import("./context-retriever-CP72SNYZ.js");
28248
28258
  const category = inferTaskCategory2(taskCandidate);
28249
28259
  const executionId = options?.executionId;
28250
28260
  const execFields = execIdFields(executionId);
@@ -40540,13 +40550,6 @@ function matchesKeywords(result, keywords) {
40540
40550
  }
40541
40551
 
40542
40552
  // src/orchestration/spec-executor.ts
40543
- var NO_CRITERIA_VALIDATION = {
40544
- satisfaction: 1,
40545
- totalCriteria: 0,
40546
- metCount: 0,
40547
- criteria: [],
40548
- allMet: true
40549
- };
40550
40553
  async function executeSpec(markdown, options) {
40551
40554
  const startTime = getTimeProvider().now();
40552
40555
  const parseResult2 = parseSpec(markdown);
@@ -40559,7 +40562,13 @@ async function executeSpec(markdown, options) {
40559
40562
  const execResult = await executeGraph(compileResult.value, { results: [] });
40560
40563
  if (!execResult.ok) return err({ message: execResult.error.message, stage: "execute" });
40561
40564
  const outputs = extractOutputs(execResult.value.finalState);
40562
- const validation = spec.acceptanceCriteria.length === 0 ? NO_CRITERIA_VALIDATION : validateOrErr(spec, outputs);
40565
+ if (spec.acceptanceCriteria.length === 0) {
40566
+ return err({
40567
+ message: 'Spec has no acceptance criteria, so the execution cannot be validated. Add an "## Acceptance Criteria" section.',
40568
+ stage: "validate"
40569
+ });
40570
+ }
40571
+ const validation = validateOrErr(spec, outputs);
40563
40572
  if (validation === null) {
40564
40573
  return err({ message: "Scenario validation failed", stage: "validate" });
40565
40574
  }
@@ -43929,7 +43938,7 @@ async function tryIssueTriage(task) {
43929
43938
  try {
43930
43939
  const issueMatch = task.match(/github\.com\/([^/]+\/[^/]+)\/issues\/(\d+)/);
43931
43940
  if (issueMatch === null) return null;
43932
- const { createIssueTriage } = await import("./issue-triage-SAS3D5K4.js");
43941
+ const { createIssueTriage } = await import("./issue-triage-QAI2FNMN.js");
43933
43942
  const triage = createIssueTriage();
43934
43943
  const owner = issueMatch[1] ?? "";
43935
43944
  const num = issueMatch[2] ?? "";
@@ -43957,7 +43966,7 @@ var VALID_TEMPLATES = /* @__PURE__ */ new Set([
43957
43966
  ]);
43958
43967
  async function classifyWithLLM(task) {
43959
43968
  try {
43960
- const { executeExpert: executeExpert2 } = await import("./expert-bridge-KTKJTMMO.js");
43969
+ const { executeExpert: executeExpert2 } = await import("./expert-bridge-HGBVHVJI.js");
43961
43970
  const prompt = [
43962
43971
  "Classify this task into exactly one pipeline template.",
43963
43972
  "Templates: dev (implementation/bug fix/refactor), research (investigate/evaluate/compare),",
@@ -45698,7 +45707,7 @@ var memoryInitPromise = null;
45698
45707
  async function initPipelineMemory() {
45699
45708
  if (cachedMemory !== null) return cachedMemory;
45700
45709
  try {
45701
- const { createSessionMemory: createSessionMemory2 } = await import("./session-memory-GVOVQ3TV.js");
45710
+ const { createSessionMemory: createSessionMemory2 } = await import("./session-memory-XIIEIJPT.js");
45702
45711
  const { getLearningDir } = await import("./learning-persistence-EGY4VKKO.js");
45703
45712
  const mem = createSessionMemory2(getLearningDir());
45704
45713
  mem.startSession(`pipeline-${String(getTimeProvider().now())}`);
@@ -45760,7 +45769,7 @@ function recordRoutingExperience(category, success, durationMs, tokensUsed = 0,
45760
45769
  callRecord(routingMemoryCache);
45761
45770
  return;
45762
45771
  }
45763
- routingMemoryInitPromise ??= import("./routing-memory-BZ6IGNXN.js").then(({ createRoutingMemory }) => {
45772
+ routingMemoryInitPromise ??= import("./routing-memory-JPDPHK7P.js").then(({ createRoutingMemory }) => {
45764
45773
  routingMemoryCache ??= createRoutingMemory();
45765
45774
  return routingMemoryCache;
45766
45775
  }).catch((error) => {
@@ -45794,7 +45803,7 @@ ${text}` : "";
45794
45803
  }
45795
45804
  async function getWeatherContext() {
45796
45805
  try {
45797
- const { generateWeatherReport: generateWeatherReport2 } = await import("./weather-report-YY7BO744.js");
45806
+ const { generateWeatherReport: generateWeatherReport2 } = await import("./weather-report-464SS6FY.js");
45798
45807
  const report = generateWeatherReport2({ includeAdaptive: true });
45799
45808
  const mappings = "recommendedMappings" in report ? report.recommendedMappings : [];
45800
45809
  if (!Array.isArray(mappings) || mappings.length === 0) return "";
@@ -45812,7 +45821,7 @@ ${lines}
45812
45821
  }
45813
45822
  async function getMemoryContext(task) {
45814
45823
  try {
45815
- const { createSessionMemory: createSessionMemory2 } = await import("./session-memory-GVOVQ3TV.js");
45824
+ const { createSessionMemory: createSessionMemory2 } = await import("./session-memory-XIIEIJPT.js");
45816
45825
  const { getLearningDir } = await import("./learning-persistence-EGY4VKKO.js");
45817
45826
  const memory = createSessionMemory2(getLearningDir(), { maxLearningsInContext: 10 });
45818
45827
  const learnings = memory.searchLearnings(task.slice(0, 200));
@@ -45931,7 +45940,7 @@ ${contextBlock}`;
45931
45940
  const strategy = config.votingStrategy ?? "higher_order";
45932
45941
  await postProgress(config, "Vote", `Running consensus with ${strategy} strategy...`);
45933
45942
  try {
45934
- const { executeVoting } = await import("./consensus-vote-DL4XNR7M.js");
45943
+ const { executeVoting } = await import("./consensus-vote-77UCSVGM.js");
45935
45944
  const votingResult = await executeVoting(
45936
45945
  {
45937
45946
  proposal: buildVoteProposal(plan, research),
@@ -46370,7 +46379,7 @@ async function searchCodebaseForTask(task) {
46370
46379
  }
46371
46380
  async function queryResearchRegistry(task) {
46372
46381
  try {
46373
- const { synthesizeResearch: synthesizeResearch2 } = await import("./research-helpers-synthesize-YSYYUW5H.js");
46382
+ const { synthesizeResearch: synthesizeResearch2 } = await import("./research-helpers-synthesize-K5TX2WM3.js");
46374
46383
  const topic = task.split(/[.!?\n]/).filter((s) => s.trim().length > 10)[0]?.trim();
46375
46384
  if (topic === void 0) return null;
46376
46385
  const result = await synthesizeResearch2(topic.slice(0, 50));
@@ -46441,7 +46450,7 @@ function createScanStageWrapper() {
46441
46450
  try {
46442
46451
  const slug = ctx.task.match(/([a-zA-Z0-9._-]+\/[a-zA-Z0-9._-]+)/)?.[1];
46443
46452
  if (slug !== void 0) {
46444
- const { generateSecurityPlan: generateSecurityPlan2 } = await import("./repo-security-plan-QYSW4MKN.js");
46453
+ const { generateSecurityPlan: generateSecurityPlan2 } = await import("./repo-security-plan-NFYC64IS.js");
46445
46454
  const plan = await generateSecurityPlan2({ repo: slug, maxScanners: 10 });
46446
46455
  const recs = plan.recommendations.slice(0, 5).map((r) => `${r.priority}: ${r.displayName} (${r.category})`).join("; ");
46447
46456
  return output(PIPELINE_STATE_KEYS.FINDINGS, recs, getTimeProvider().now() - start, true);
@@ -49564,7 +49573,7 @@ var GitHubTaskTracker = class {
49564
49573
  cachedProvider = null;
49565
49574
  async getProvider() {
49566
49575
  if (this.cachedProvider !== null) return this.cachedProvider;
49567
- const { createScmProvider } = await import("./factory-QQKY3UW4.js");
49576
+ const { createScmProvider } = await import("./factory-LEYEWZ4Y.js");
49568
49577
  const result = await createScmProvider({ repo: this.config.repo ?? "" });
49569
49578
  if (!result.ok) throw new Error(`SCM provider error: ${result.error.message}`);
49570
49579
  this.cachedProvider = result.value;
@@ -50455,7 +50464,7 @@ async function probeSource(source, includeModelIds) {
50455
50464
  }
50456
50465
  }
50457
50466
  async function defaultSources(includeOpenRouter) {
50458
- const { createAllAdapters: createAllAdapters2 } = await import("./factory-SC3N2RMX.js");
50467
+ const { createAllAdapters: createAllAdapters2 } = await import("./factory-GEBBVQHZ.js");
50459
50468
  const adapters = createAllAdapters2();
50460
50469
  return buildDefaultModelSources(adapters, { includeOpenRouter });
50461
50470
  }
@@ -54497,4 +54506,4 @@ export {
54497
54506
  shutdownFeedbackSubscriber,
54498
54507
  createEventBusBridge
54499
54508
  };
54500
- //# sourceMappingURL=chunk-K6VI5GUF.js.map
54509
+ //# sourceMappingURL=chunk-CGJPW5BI.js.map