nexus-agents 6.3.7 → 6.3.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (122) hide show
  1. package/dist/{child-mcp-config-LFYYHUGS.js → child-mcp-config-WW467CLM.js} +2 -2
  2. package/dist/{chunk-RJTESNRY.js → chunk-2R2YHWE7.js} +7 -7
  3. package/dist/chunk-3CEYGYW3.js +7 -0
  4. package/dist/{chunk-GDHGT5KD.js → chunk-4WW4VK2S.js} +4 -4
  5. package/dist/{chunk-RUR43YSR.js → chunk-5DABNRM3.js} +2 -2
  6. package/dist/{chunk-62AZXBVP.js → chunk-5YOEQ6IX.js} +2 -2
  7. package/dist/{chunk-KKU5WPDS.js → chunk-63MU4GPH.js} +2 -2
  8. package/dist/{chunk-O6RUN5DT.js → chunk-6RLHAZ2Z.js} +4 -4
  9. package/dist/{chunk-2XQWOM45.js → chunk-7B7JZWHX.js} +3 -3
  10. package/dist/{chunk-3GMPJYT4.js → chunk-ASDCSVIG.js} +2 -2
  11. package/dist/{chunk-DGR76SIA.js → chunk-CS3CTH6Z.js} +29 -19
  12. package/dist/{chunk-DGR76SIA.js.map → chunk-CS3CTH6Z.js.map} +1 -1
  13. package/dist/{chunk-FXIIOJVB.js → chunk-DUSWBAR3.js} +2 -2
  14. package/dist/{chunk-IJWT67PX.js → chunk-EXLZUQBM.js} +8 -8
  15. package/dist/{chunk-3FVDZVHH.js → chunk-GFYZ4CCY.js} +6 -6
  16. package/dist/{chunk-YA3P5PPJ.js → chunk-GJZRAD7V.js} +2 -2
  17. package/dist/{chunk-RTJ6SEII.js → chunk-JA4DHEZA.js} +7 -7
  18. package/dist/{chunk-G3WXFKYJ.js → chunk-JJAWYGXE.js} +2 -2
  19. package/dist/{chunk-7RDIWG36.js → chunk-K4NQ7WJK.js} +79 -57
  20. package/dist/{chunk-7RDIWG36.js.map → chunk-K4NQ7WJK.js.map} +1 -1
  21. package/dist/{chunk-NNDJMR4B.js → chunk-K57G35GD.js} +2 -2
  22. package/dist/{chunk-TYZGLBNL.js → chunk-KK4RYSKM.js} +2 -2
  23. package/dist/{chunk-GM2XCOCX.js → chunk-LBSGUT2I.js} +2 -2
  24. package/dist/{chunk-P5FDXBV5.js → chunk-M3OBVLTW.js} +5 -5
  25. package/dist/{chunk-MGFZE3G4.js → chunk-MCGNISFP.js} +8 -8
  26. package/dist/{chunk-UQO5CUBJ.js → chunk-NTG337S6.js} +3 -3
  27. package/dist/{chunk-HIEGEDIH.js → chunk-QLY24IMC.js} +2 -2
  28. package/dist/{chunk-GVB4SDMJ.js → chunk-TAZO6OGY.js} +4 -4
  29. package/dist/{chunk-VGE32VIA.js → chunk-TZKKIKCO.js} +2 -2
  30. package/dist/{chunk-5UAZH43I.js → chunk-U2LGNV3Y.js} +2 -2
  31. package/dist/{chunk-J3WENFBH.js → chunk-VQGF7OCB.js} +4 -4
  32. package/dist/{chunk-NNQ5UNVC.js → chunk-WCVQHC7E.js} +2 -2
  33. package/dist/{chunk-P4Q76KFZ.js → chunk-WTA7B64W.js} +2 -2
  34. package/dist/{chunk-GBRPYQPS.js → chunk-WZOLLGZ7.js} +3 -3
  35. package/dist/{chunk-AASDZAZV.js → chunk-X2RJGZJ7.js} +2 -2
  36. package/dist/{chunk-QZJBOADH.js → chunk-XV7EVAMN.js} +5 -5
  37. package/dist/{cli-circuit-breaker-HJF2QANR.js → cli-circuit-breaker-KEOY72R6.js} +3 -3
  38. package/dist/cli.js +41 -41
  39. package/dist/{composite-router-APL5XGOM.js → composite-router-WRPUSJIL.js} +2 -2
  40. package/dist/{consensus-vote-G27UOZWA.js → consensus-vote-YEM3AKUS.js} +17 -17
  41. package/dist/{context-retriever-M67ALRDI.js → context-retriever-VYXMBBYJ.js} +8 -8
  42. package/dist/{doctor-deep-M6DSVWW7.js → doctor-deep-IGXWR5ED.js} +3 -3
  43. package/dist/{doctor-live-GQVIXCOS.js → doctor-live-MRBJ2R3U.js} +9 -9
  44. package/dist/{expert-bridge-Z4BFSQHJ.js → expert-bridge-5FURMSX4.js} +4 -4
  45. package/dist/{factory-R7VN5762.js → factory-PDVZUWO2.js} +9 -9
  46. package/dist/{factory-YPOKS35N.js → factory-YEI7VFFB.js} +5 -5
  47. package/dist/{improvement-review-IEX32AA2.js → improvement-review-2AJ2EEVN.js} +6 -6
  48. package/dist/index.js +31 -31
  49. package/dist/{init-opencode-COFE4WZN.js → init-opencode-MQ7JWJSR.js} +6 -6
  50. package/dist/issue-triage-EG7CJFLL.js +17 -0
  51. package/dist/{pr-reviewer-helpers-UNMHQPNQ.js → pr-reviewer-helpers-R4OAIAIT.js} +4 -4
  52. package/dist/{registry-command-Y7V6IHGG.js → registry-command-LK4X5BE4.js} +2 -2
  53. package/dist/{repo-security-plan-CCQEA4VF.js → repo-security-plan-3TXL46ND.js} +3 -3
  54. package/dist/{research-helpers-synthesize-EOLHDADB.js → research-helpers-synthesize-2ACEYSZ5.js} +4 -4
  55. package/dist/{routing-memory-GR5AJJEM.js → routing-memory-QNFWRBSH.js} +2 -2
  56. package/dist/{session-memory-OGEHQE7S.js → session-memory-A6SCTXHY.js} +3 -3
  57. package/dist/{setup-config-AGFQLSYA.js → setup-config-UCCIFQWM.js} +3 -3
  58. package/dist/{setup-custom-api-F72MOZXT.js → setup-custom-api-H4I2E3BD.js} +4 -4
  59. package/dist/setup-data-dir-NO5T3ABI.js +29 -0
  60. package/dist/{tool-memory-XPHPN63A.js → tool-memory-2CVBZ5OQ.js} +5 -5
  61. package/dist/{unified-registry-CZRMOQEC.js → unified-registry-AMVPO6RR.js} +10 -10
  62. package/dist/{weather-report-7WIWX53H.js → weather-report-D25OVFUE.js} +2 -2
  63. package/package.json +1 -1
  64. package/dist/chunk-PQ7R2F4Y.js +0 -7
  65. package/dist/issue-triage-SQKNCOCG.js +0 -17
  66. package/dist/setup-data-dir-HJPS5BAF.js +0 -29
  67. /package/dist/{child-mcp-config-LFYYHUGS.js.map → child-mcp-config-WW467CLM.js.map} +0 -0
  68. /package/dist/{chunk-RJTESNRY.js.map → chunk-2R2YHWE7.js.map} +0 -0
  69. /package/dist/{chunk-PQ7R2F4Y.js.map → chunk-3CEYGYW3.js.map} +0 -0
  70. /package/dist/{chunk-GDHGT5KD.js.map → chunk-4WW4VK2S.js.map} +0 -0
  71. /package/dist/{chunk-RUR43YSR.js.map → chunk-5DABNRM3.js.map} +0 -0
  72. /package/dist/{chunk-62AZXBVP.js.map → chunk-5YOEQ6IX.js.map} +0 -0
  73. /package/dist/{chunk-KKU5WPDS.js.map → chunk-63MU4GPH.js.map} +0 -0
  74. /package/dist/{chunk-O6RUN5DT.js.map → chunk-6RLHAZ2Z.js.map} +0 -0
  75. /package/dist/{chunk-2XQWOM45.js.map → chunk-7B7JZWHX.js.map} +0 -0
  76. /package/dist/{chunk-3GMPJYT4.js.map → chunk-ASDCSVIG.js.map} +0 -0
  77. /package/dist/{chunk-FXIIOJVB.js.map → chunk-DUSWBAR3.js.map} +0 -0
  78. /package/dist/{chunk-IJWT67PX.js.map → chunk-EXLZUQBM.js.map} +0 -0
  79. /package/dist/{chunk-3FVDZVHH.js.map → chunk-GFYZ4CCY.js.map} +0 -0
  80. /package/dist/{chunk-YA3P5PPJ.js.map → chunk-GJZRAD7V.js.map} +0 -0
  81. /package/dist/{chunk-RTJ6SEII.js.map → chunk-JA4DHEZA.js.map} +0 -0
  82. /package/dist/{chunk-G3WXFKYJ.js.map → chunk-JJAWYGXE.js.map} +0 -0
  83. /package/dist/{chunk-NNDJMR4B.js.map → chunk-K57G35GD.js.map} +0 -0
  84. /package/dist/{chunk-TYZGLBNL.js.map → chunk-KK4RYSKM.js.map} +0 -0
  85. /package/dist/{chunk-GM2XCOCX.js.map → chunk-LBSGUT2I.js.map} +0 -0
  86. /package/dist/{chunk-P5FDXBV5.js.map → chunk-M3OBVLTW.js.map} +0 -0
  87. /package/dist/{chunk-MGFZE3G4.js.map → chunk-MCGNISFP.js.map} +0 -0
  88. /package/dist/{chunk-UQO5CUBJ.js.map → chunk-NTG337S6.js.map} +0 -0
  89. /package/dist/{chunk-HIEGEDIH.js.map → chunk-QLY24IMC.js.map} +0 -0
  90. /package/dist/{chunk-GVB4SDMJ.js.map → chunk-TAZO6OGY.js.map} +0 -0
  91. /package/dist/{chunk-VGE32VIA.js.map → chunk-TZKKIKCO.js.map} +0 -0
  92. /package/dist/{chunk-5UAZH43I.js.map → chunk-U2LGNV3Y.js.map} +0 -0
  93. /package/dist/{chunk-J3WENFBH.js.map → chunk-VQGF7OCB.js.map} +0 -0
  94. /package/dist/{chunk-NNQ5UNVC.js.map → chunk-WCVQHC7E.js.map} +0 -0
  95. /package/dist/{chunk-P4Q76KFZ.js.map → chunk-WTA7B64W.js.map} +0 -0
  96. /package/dist/{chunk-GBRPYQPS.js.map → chunk-WZOLLGZ7.js.map} +0 -0
  97. /package/dist/{chunk-AASDZAZV.js.map → chunk-X2RJGZJ7.js.map} +0 -0
  98. /package/dist/{chunk-QZJBOADH.js.map → chunk-XV7EVAMN.js.map} +0 -0
  99. /package/dist/{cli-circuit-breaker-HJF2QANR.js.map → cli-circuit-breaker-KEOY72R6.js.map} +0 -0
  100. /package/dist/{composite-router-APL5XGOM.js.map → composite-router-WRPUSJIL.js.map} +0 -0
  101. /package/dist/{consensus-vote-G27UOZWA.js.map → consensus-vote-YEM3AKUS.js.map} +0 -0
  102. /package/dist/{context-retriever-M67ALRDI.js.map → context-retriever-VYXMBBYJ.js.map} +0 -0
  103. /package/dist/{doctor-deep-M6DSVWW7.js.map → doctor-deep-IGXWR5ED.js.map} +0 -0
  104. /package/dist/{doctor-live-GQVIXCOS.js.map → doctor-live-MRBJ2R3U.js.map} +0 -0
  105. /package/dist/{expert-bridge-Z4BFSQHJ.js.map → expert-bridge-5FURMSX4.js.map} +0 -0
  106. /package/dist/{factory-R7VN5762.js.map → factory-PDVZUWO2.js.map} +0 -0
  107. /package/dist/{factory-YPOKS35N.js.map → factory-YEI7VFFB.js.map} +0 -0
  108. /package/dist/{improvement-review-IEX32AA2.js.map → improvement-review-2AJ2EEVN.js.map} +0 -0
  109. /package/dist/{init-opencode-COFE4WZN.js.map → init-opencode-MQ7JWJSR.js.map} +0 -0
  110. /package/dist/{issue-triage-SQKNCOCG.js.map → issue-triage-EG7CJFLL.js.map} +0 -0
  111. /package/dist/{pr-reviewer-helpers-UNMHQPNQ.js.map → pr-reviewer-helpers-R4OAIAIT.js.map} +0 -0
  112. /package/dist/{registry-command-Y7V6IHGG.js.map → registry-command-LK4X5BE4.js.map} +0 -0
  113. /package/dist/{repo-security-plan-CCQEA4VF.js.map → repo-security-plan-3TXL46ND.js.map} +0 -0
  114. /package/dist/{research-helpers-synthesize-EOLHDADB.js.map → research-helpers-synthesize-2ACEYSZ5.js.map} +0 -0
  115. /package/dist/{routing-memory-GR5AJJEM.js.map → routing-memory-QNFWRBSH.js.map} +0 -0
  116. /package/dist/{session-memory-OGEHQE7S.js.map → session-memory-A6SCTXHY.js.map} +0 -0
  117. /package/dist/{setup-config-AGFQLSYA.js.map → setup-config-UCCIFQWM.js.map} +0 -0
  118. /package/dist/{setup-custom-api-F72MOZXT.js.map → setup-custom-api-H4I2E3BD.js.map} +0 -0
  119. /package/dist/{setup-data-dir-HJPS5BAF.js.map → setup-data-dir-NO5T3ABI.js.map} +0 -0
  120. /package/dist/{tool-memory-XPHPN63A.js.map → tool-memory-2CVBZ5OQ.js.map} +0 -0
  121. /package/dist/{unified-registry-CZRMOQEC.js.map → unified-registry-AMVPO6RR.js.map} +0 -0
  122. /package/dist/{weather-report-7WIWX53H.js.map → weather-report-D25OVFUE.js.map} +0 -0
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  getTimeProvider
3
- } from "./chunk-DGR76SIA.js";
3
+ } from "./chunk-CS3CTH6Z.js";
4
4
 
5
5
  // src/security/audit-trail.ts
6
6
  var MAX_EVENTS = 1e4;
@@ -205,4 +205,4 @@ export {
205
205
  createGraphAuditBridge,
206
206
  createAuditTrail
207
207
  };
208
- //# sourceMappingURL=chunk-FXIIOJVB.js.map
208
+ //# sourceMappingURL=chunk-DUSWBAR3.js.map
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  computeCostDetail,
3
3
  priceBasisOf
4
- } from "./chunk-HIEGEDIH.js";
4
+ } from "./chunk-QLY24IMC.js";
5
5
  import {
6
6
  allOf
7
7
  } from "./chunk-OQB3XC5O.js";
@@ -23,22 +23,22 @@ import {
23
23
  toolSuccessStructured,
24
24
  withProgressHeartbeat,
25
25
  wrapToolWithTimeout
26
- } from "./chunk-J3WENFBH.js";
26
+ } from "./chunk-VQGF7OCB.js";
27
27
  import {
28
28
  assessPanelIndependence,
29
29
  countDistinctModels,
30
30
  createEvent,
31
31
  getGlobalRegistry
32
- } from "./chunk-O6RUN5DT.js";
32
+ } from "./chunk-6RLHAZ2Z.js";
33
33
  import {
34
34
  getToolMemory
35
- } from "./chunk-GVB4SDMJ.js";
35
+ } from "./chunk-TAZO6OGY.js";
36
36
  import {
37
37
  authRemediation,
38
38
  delay,
39
39
  getAvailableClis,
40
40
  withTimeout
41
- } from "./chunk-MGFZE3G4.js";
41
+ } from "./chunk-MCGNISFP.js";
42
42
  import {
43
43
  AgentError,
44
44
  CLI_NAMES,
@@ -66,7 +66,7 @@ import {
66
66
  registerPersistentOutcomeStoreFactory,
67
67
  resolveClassGuardMs,
68
68
  resolveVoteTimeout
69
- } from "./chunk-DGR76SIA.js";
69
+ } from "./chunk-CS3CTH6Z.js";
70
70
  import {
71
71
  ensureLearningDir,
72
72
  getOutcomesFile
@@ -6300,7 +6300,7 @@ function logPartialProposal(bounded, log) {
6300
6300
  }
6301
6301
  async function runContrarianCheck(proposal, log) {
6302
6302
  try {
6303
- const { executeExpert } = await import("./expert-bridge-Z4BFSQHJ.js");
6303
+ const { executeExpert } = await import("./expert-bridge-5FURMSX4.js");
6304
6304
  const bounded = boundArtifactForReview(proposal, CONTRARIAN_PROPOSAL_BUDGET, "proposal");
6305
6305
  logPartialProposal(bounded, log);
6306
6306
  const result = await executeExpert("architecture", buildContrarianPrompt(bounded));
@@ -6878,4 +6878,4 @@ export {
6878
6878
  CONSENSUS_VOTE_TOOL_SCHEMA,
6879
6879
  registerConsensusVoteTool
6880
6880
  };
6881
- //# sourceMappingURL=chunk-IJWT67PX.js.map
6881
+ //# sourceMappingURL=chunk-EXLZUQBM.js.map
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  GitHubProvider,
3
3
  ScmError
4
- } from "./chunk-GM2XCOCX.js";
4
+ } from "./chunk-LBSGUT2I.js";
5
5
  import {
6
6
  ROLE_DEFAULT_TRUST,
7
7
  ReputationCache,
@@ -11,20 +11,20 @@ import {
11
11
  gateWithReputation,
12
12
  resolveReputationGatingMode,
13
13
  sanitizeInput
14
- } from "./chunk-RUR43YSR.js";
14
+ } from "./chunk-5DABNRM3.js";
15
15
  import {
16
16
  emitPolicyEvent
17
- } from "./chunk-FXIIOJVB.js";
17
+ } from "./chunk-DUSWBAR3.js";
18
18
  import {
19
19
  hasToken
20
- } from "./chunk-VGE32VIA.js";
20
+ } from "./chunk-TZKKIKCO.js";
21
21
  import {
22
22
  CLI_SUBPROCESS_TIMEOUTS,
23
23
  createLogger,
24
24
  err,
25
25
  getTimeProvider,
26
26
  ok
27
- } from "./chunk-DGR76SIA.js";
27
+ } from "./chunk-CS3CTH6Z.js";
28
28
 
29
29
  // src/security/trust-classifier.ts
30
30
  function mapAuthorAssociation(association) {
@@ -1247,4 +1247,4 @@ export {
1247
1247
  IssueTriage,
1248
1248
  createIssueTriage
1249
1249
  };
1250
- //# sourceMappingURL=chunk-3FVDZVHH.js.map
1250
+ //# sourceMappingURL=chunk-GFYZ4CCY.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  getErrorMessage
3
- } from "./chunk-DGR76SIA.js";
3
+ } from "./chunk-CS3CTH6Z.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-YA3P5PPJ.js.map
80
+ //# sourceMappingURL=chunk-GJZRAD7V.js.map
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  resolveCliSlot
3
- } from "./chunk-TYZGLBNL.js";
3
+ } from "./chunk-KK4RYSKM.js";
4
4
  import {
5
5
  createLogger,
6
6
  getTimeProvider,
7
7
  isRateLimitText
8
- } from "./chunk-DGR76SIA.js";
8
+ } from "./chunk-CS3CTH6Z.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-LFYYHUGS.js");
24
+ const { generateMcpConfig } = await import("./child-mcp-config-WW467CLM.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-R7VN5762.js");
97
- const { createCompositeRouter } = await import("./composite-router-APL5XGOM.js");
96
+ const { createAllAdapters } = await import("./factory-PDVZUWO2.js");
97
+ const { createCompositeRouter } = await import("./composite-router-WRPUSJIL.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-HJF2QANR.js");
105
+ const { createCliCircuitBreakerIntegration } = await import("./cli-circuit-breaker-KEOY72R6.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-RTJ6SEII.js.map
216
+ //# sourceMappingURL=chunk-JA4DHEZA.js.map
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  getRandomProvider,
3
3
  getTimeProvider
4
- } from "./chunk-DGR76SIA.js";
4
+ } from "./chunk-CS3CTH6Z.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-G3WXFKYJ.js.map
27
+ //# sourceMappingURL=chunk-JJAWYGXE.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  generateSecurityPlan
3
- } from "./chunk-5UAZH43I.js";
3
+ } from "./chunk-U2LGNV3Y.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-RJTESNRY.js";
24
+ } from "./chunk-2R2YHWE7.js";
25
25
  import {
26
26
  executeExpert
27
- } from "./chunk-RTJ6SEII.js";
27
+ } from "./chunk-JA4DHEZA.js";
28
28
  import {
29
29
  JobStatusSchema,
30
30
  VOTER_ROLES,
@@ -47,24 +47,24 @@ import {
47
47
  simulationDeniedResult,
48
48
  toJobSummary,
49
49
  writeJobCancelled
50
- } from "./chunk-IJWT67PX.js";
50
+ } from "./chunk-EXLZUQBM.js";
51
51
  import {
52
52
  allOf
53
53
  } from "./chunk-OQB3XC5O.js";
54
54
  import {
55
55
  normalizeTopicToCanonical,
56
56
  synthesizeResearch
57
- } from "./chunk-GBRPYQPS.js";
57
+ } from "./chunk-WZOLLGZ7.js";
58
58
  import {
59
59
  IssueTriage
60
- } from "./chunk-3FVDZVHH.js";
60
+ } from "./chunk-GFYZ4CCY.js";
61
61
  import {
62
62
  resolveEnvMode,
63
63
  sanitizeInput
64
- } from "./chunk-RUR43YSR.js";
64
+ } from "./chunk-5DABNRM3.js";
65
65
  import {
66
66
  withPrerequisite
67
- } from "./chunk-2XQWOM45.js";
67
+ } from "./chunk-7B7JZWHX.js";
68
68
  import {
69
69
  NOOP_NOTIFIER,
70
70
  RateLimiter,
@@ -88,18 +88,18 @@ import {
88
88
  withAuditTrail,
89
89
  withProgressHeartbeat,
90
90
  wrapToolWithTimeout
91
- } from "./chunk-J3WENFBH.js";
91
+ } from "./chunk-VQGF7OCB.js";
92
92
  import {
93
93
  createAuditTrail,
94
94
  createGraphAuditBridge,
95
95
  emitPipelinePolicyEvent
96
- } from "./chunk-FXIIOJVB.js";
96
+ } from "./chunk-DUSWBAR3.js";
97
97
  import {
98
98
  EventTopics,
99
99
  createEvent,
100
100
  getGlobalEventBus,
101
101
  getGlobalRegistry
102
- } from "./chunk-O6RUN5DT.js";
102
+ } from "./chunk-6RLHAZ2Z.js";
103
103
  import {
104
104
  IDENTIFIER_RE,
105
105
  LANG_VALUES,
@@ -132,29 +132,29 @@ import {
132
132
  parseRegistry,
133
133
  sourceExistsInRegistry,
134
134
  summarizeContextForPrompt
135
- } from "./chunk-P5FDXBV5.js";
135
+ } from "./chunk-M3OBVLTW.js";
136
136
  import {
137
137
  loadPapersRegistry,
138
138
  loadTechniquesRegistry,
139
139
  resolveInsideRoot
140
- } from "./chunk-3GMPJYT4.js";
140
+ } from "./chunk-ASDCSVIG.js";
141
141
  import {
142
142
  getTokenEnvVars,
143
143
  resolveToken
144
- } from "./chunk-VGE32VIA.js";
144
+ } from "./chunk-TZKKIKCO.js";
145
145
  import {
146
146
  DEFAULT_RELEVANCE_CONFIG,
147
147
  MemoryImportance,
148
148
  calculateTextJaccardSimilarity,
149
149
  getToolMemory
150
- } from "./chunk-GVB4SDMJ.js";
150
+ } from "./chunk-TAZO6OGY.js";
151
151
  import {
152
152
  STOPWORDS,
153
153
  truncateWithInfo
154
154
  } from "./chunk-6T3EPABN.js";
155
155
  import {
156
156
  createSessionMemory
157
- } from "./chunk-P4Q76KFZ.js";
157
+ } from "./chunk-WTA7B64W.js";
158
158
  import {
159
159
  BUILT_IN_EXPERTS,
160
160
  BuiltInExpertTypeSchema,
@@ -172,25 +172,25 @@ import {
172
172
  getAvailableClis,
173
173
  sleep,
174
174
  withTimeout
175
- } from "./chunk-MGFZE3G4.js";
175
+ } from "./chunk-MCGNISFP.js";
176
176
  import {
177
177
  BaseAdapter,
178
178
  createStream,
179
179
  requireApiKey,
180
180
  validateApiKeyPresence
181
- } from "./chunk-AASDZAZV.js";
181
+ } from "./chunk-X2RJGZJ7.js";
182
182
  import {
183
183
  DEFAULTS
184
- } from "./chunk-NNDJMR4B.js";
184
+ } from "./chunk-K57G35GD.js";
185
185
  import {
186
186
  getAvailabilityCache,
187
187
  getCliForModelId,
188
188
  resolveFallback
189
- } from "./chunk-TYZGLBNL.js";
189
+ } from "./chunk-KK4RYSKM.js";
190
190
  import {
191
191
  generateHyphenId,
192
192
  generateUUID
193
- } from "./chunk-G3WXFKYJ.js";
193
+ } from "./chunk-JJAWYGXE.js";
194
194
  import {
195
195
  AGENT_ROUTER_TIMEOUTS,
196
196
  API_TIMEOUTS,
@@ -296,7 +296,7 @@ import {
296
296
  selectStrategyByManifest,
297
297
  toExpertTaskAnalysisResult,
298
298
  withStep
299
- } from "./chunk-DGR76SIA.js";
299
+ } from "./chunk-CS3CTH6Z.js";
300
300
  import {
301
301
  ensureLearningDir,
302
302
  getMetaOutcomesFile,
@@ -29692,7 +29692,7 @@ function execIdFields(executionId) {
29692
29692
  async function populateUnifiedContextOnState(state, options) {
29693
29693
  const taskCandidate = state["task"];
29694
29694
  if (typeof taskCandidate !== "string" || taskCandidate === "") return;
29695
- const { getContextForTask: getContextForTask2, inferTaskCategory: inferTaskCategory2 } = await import("./context-retriever-M67ALRDI.js");
29695
+ const { getContextForTask: getContextForTask2, inferTaskCategory: inferTaskCategory2 } = await import("./context-retriever-VYXMBBYJ.js");
29696
29696
  const category = inferTaskCategory2(taskCandidate);
29697
29697
  const executionId = options?.executionId;
29698
29698
  const execFields = execIdFields(executionId);
@@ -45529,7 +45529,7 @@ async function tryIssueTriage(task) {
45529
45529
  try {
45530
45530
  const issueMatch = task.match(/github\.com\/([^/]+\/[^/]+)\/issues\/(\d+)/);
45531
45531
  if (issueMatch === null) return null;
45532
- const { createIssueTriage } = await import("./issue-triage-SQKNCOCG.js");
45532
+ const { createIssueTriage } = await import("./issue-triage-EG7CJFLL.js");
45533
45533
  const triage = createIssueTriage();
45534
45534
  const owner = issueMatch[1] ?? "";
45535
45535
  const num = issueMatch[2] ?? "";
@@ -45557,7 +45557,7 @@ var VALID_TEMPLATES = /* @__PURE__ */ new Set([
45557
45557
  ]);
45558
45558
  async function classifyWithLLM(task) {
45559
45559
  try {
45560
- const { executeExpert: executeExpert2 } = await import("./expert-bridge-Z4BFSQHJ.js");
45560
+ const { executeExpert: executeExpert2 } = await import("./expert-bridge-5FURMSX4.js");
45561
45561
  const prompt = [
45562
45562
  "Classify this task into exactly one pipeline template.",
45563
45563
  "Templates: dev (implementation/bug fix/refactor), research (investigate/evaluate/compare),",
@@ -46410,11 +46410,11 @@ Verdict: PASS/NEEDS_WORK/REJECT`;
46410
46410
  import { z as z99 } from "zod";
46411
46411
  var SarifLocationSchema = z99.object({
46412
46412
  physicalLocation: z99.object({
46413
- artifactLocation: z99.object({ uri: z99.string().min(1).optional() }).optional(),
46413
+ artifactLocation: z99.object({ uri: z99.string().optional().catch(void 0) }).optional(),
46414
46414
  region: z99.object({
46415
- startLine: z99.number().int().min(1).optional(),
46416
- endLine: z99.number().int().min(1).optional(),
46417
- snippet: z99.object({ text: z99.string().optional() }).optional()
46415
+ startLine: z99.number().optional().catch(void 0),
46416
+ endLine: z99.number().int().min(1).optional().catch(void 0),
46417
+ snippet: z99.object({ text: z99.string().optional().catch(void 0) }).optional().catch(void 0)
46418
46418
  }).optional()
46419
46419
  }).optional()
46420
46420
  });
@@ -46426,15 +46426,17 @@ var SarifResultSchema = z99.object({
46426
46426
  });
46427
46427
  var SarifRuleSchema = z99.object({
46428
46428
  id: z99.string(),
46429
- shortDescription: z99.object({ text: z99.string().optional() }).optional(),
46430
- defaultConfiguration: z99.object({ level: z99.string().optional() }).optional(),
46429
+ shortDescription: z99.object({ text: z99.string().optional().catch(void 0) }).optional(),
46430
+ defaultConfiguration: z99.object({ level: z99.string().optional().catch(void 0) }).optional(),
46431
46431
  properties: z99.object({
46432
- precision: z99.string().optional(),
46433
- tags: z99.array(z99.string()).optional(),
46434
- "security-severity": z99.string().optional()
46435
- }).optional(),
46436
- helpUri: z99.string().optional(),
46437
- help: z99.object({ markdown: z99.string().optional() }).optional()
46432
+ precision: z99.string().optional().catch(void 0),
46433
+ tags: z99.array(z99.string()).optional().catch(void 0),
46434
+ // Accept the number form and normalize; `resolveSeverityFromScore`
46435
+ // parses it either way.
46436
+ "security-severity": z99.union([z99.string(), z99.number()]).optional().catch(void 0)
46437
+ }).optional().catch(void 0),
46438
+ helpUri: z99.string().optional().catch(void 0),
46439
+ help: z99.object({ markdown: z99.string().optional().catch(void 0) }).optional()
46438
46440
  });
46439
46441
  var SarifRunSchema = z99.object({
46440
46442
  tool: z99.object({
@@ -46543,14 +46545,27 @@ function buildLocation(file, startLine, phys) {
46543
46545
  if (snippetText !== void 0) loc.snippet = snippetText.slice(0, 500);
46544
46546
  return loc;
46545
46547
  }
46546
- function extractLocation(result) {
46548
+ function extractLocation(result, ruleId, errors) {
46547
46549
  const phys = getFirstPhysicalLocation(result);
46548
46550
  if (phys === null) return null;
46549
46551
  const file = phys.artifactLocation?.uri;
46550
- const startLine = phys.region?.startLine;
46551
- if (file === void 0 || file === "" || startLine === void 0) return null;
46552
+ const rawStartLine = phys.region?.startLine;
46553
+ if (file === void 0 || file === "" || rawStartLine === void 0) return null;
46554
+ const startLine = usableStartLine(rawStartLine);
46555
+ if (startLine !== rawStartLine) {
46556
+ errors.push(
46557
+ `Finding ${ruleId}: startLine ${String(rawStartLine)} is not a valid 1-based line; recorded as ${String(startLine)} \u2014 the location is unknown, not measured`
46558
+ );
46559
+ }
46552
46560
  return buildLocation(file, startLine, phys);
46553
46561
  }
46562
+ function firstNonEmpty(value) {
46563
+ if (value === null || value === void 0) return void 0;
46564
+ return value.length > 0 ? value : void 0;
46565
+ }
46566
+ function usableStartLine(line) {
46567
+ return Number.isInteger(line) && line >= 1 ? line : 1;
46568
+ }
46554
46569
  function severityWithDisclosure(result, rule, ruleId, errors) {
46555
46570
  const { severity, unmappedLevel } = resolveSeverity(result.level ?? void 0, rule);
46556
46571
  if (unmappedLevel !== void 0) {
@@ -46561,14 +46576,14 @@ function severityWithDisclosure(result, rule, ruleId, errors) {
46561
46576
  return severity;
46562
46577
  }
46563
46578
  function parseResult(result, scanner, ruleMap, errors) {
46564
- const ruleId = result.ruleId ?? "unknown";
46579
+ const ruleId = firstNonEmpty(result.ruleId) ?? "unknown";
46565
46580
  const rule = ruleMap.get(ruleId);
46566
- const loc = extractLocation(result);
46581
+ const loc = extractLocation(result, ruleId, errors);
46567
46582
  if (loc === null) {
46568
46583
  errors.push(`Skipped finding ${ruleId}: missing location`);
46569
46584
  return null;
46570
46585
  }
46571
- const rawMessage = result.message?.text ?? rule?.shortDescription?.text ?? ruleId;
46586
+ const rawMessage = firstNonEmpty(result.message?.text) ?? firstNonEmpty(rule?.shortDescription?.text) ?? ruleId;
46572
46587
  const message = rawMessage.slice(0, MAX_MESSAGE_LENGTH);
46573
46588
  const severity = severityWithDisclosure(result, rule, ruleId, errors);
46574
46589
  return {
@@ -46611,7 +46626,7 @@ function resolveSeverityFromScore(rule) {
46611
46626
  if (props === void 0) return null;
46612
46627
  const secSeverity = props["security-severity"];
46613
46628
  if (secSeverity === void 0) return null;
46614
- const score = parseFloat(secSeverity);
46629
+ const score = typeof secSeverity === "number" ? secSeverity : parseFloat(secSeverity);
46615
46630
  if (isNaN(score)) return null;
46616
46631
  return scoreToSeverity(score);
46617
46632
  }
@@ -46832,13 +46847,15 @@ async function runSecurityPipeline(sarifResult, targetDir, config, start) {
46832
46847
  sarifResult.totalFindings,
46833
46848
  blocking.length,
46834
46849
  osvVulns.length,
46835
- osv
46850
+ osv,
46851
+ sarifResult.errors.length
46836
46852
  );
46837
46853
  logger45.info("Security gate complete", {
46838
46854
  total: sarifResult.totalFindings,
46839
46855
  blocking: blocking.length,
46840
46856
  osvVulns: osvVulns.length,
46841
- osvFailedLookups: osv.failedLookups
46857
+ osvFailedLookups: osv.failedLookups,
46858
+ sarifParseErrors: sarifResult.errors.length
46842
46859
  });
46843
46860
  const failed = blocking.length > 0 || osvVulns.some((v) => v.severity === "CRITICAL");
46844
46861
  return {
@@ -46901,8 +46918,13 @@ function osvCoverageNote(blocking, osvCount, osv) {
46901
46918
  if (blocking === 0 && osvCount === 0) return "none blocking";
46902
46919
  return "";
46903
46920
  }
46904
- function buildScanSummary(total, blocking, osvCount, osv) {
46921
+ function buildScanSummary(total, blocking, osvCount, osv, sarifParseErrors = 0) {
46905
46922
  const parts = [`${String(total)} SAST findings`];
46923
+ if (sarifParseErrors > 0) {
46924
+ parts.push(
46925
+ `${String(sarifParseErrors)} scanner output line(s) unreadable \u2014 SAST coverage is partial`
46926
+ );
46927
+ }
46906
46928
  if (blocking > 0) parts.push(`${String(blocking)} blocking`);
46907
46929
  if (osvCount > 0) parts.push(`${String(osvCount)} OSV dependency vulnerabilities`);
46908
46930
  parts.push(osvCoverageNote(blocking, osvCount, osv));
@@ -47226,7 +47248,7 @@ var memoryInitPromise = null;
47226
47248
  async function initPipelineMemory() {
47227
47249
  if (cachedMemory !== null) return cachedMemory;
47228
47250
  try {
47229
- const { createSessionMemory: createSessionMemory2 } = await import("./session-memory-OGEHQE7S.js");
47251
+ const { createSessionMemory: createSessionMemory2 } = await import("./session-memory-A6SCTXHY.js");
47230
47252
  const { getLearningDir } = await import("./learning-persistence-7O5QYDM7.js");
47231
47253
  const mem = createSessionMemory2(getLearningDir());
47232
47254
  mem.startSession(`pipeline-${String(getTimeProvider().now())}`);
@@ -47288,7 +47310,7 @@ function recordRoutingExperience(category, success, durationMs, tokensUsed = 0,
47288
47310
  callRecord(routingMemoryCache);
47289
47311
  return;
47290
47312
  }
47291
- routingMemoryInitPromise ??= import("./routing-memory-GR5AJJEM.js").then(({ createRoutingMemory }) => {
47313
+ routingMemoryInitPromise ??= import("./routing-memory-QNFWRBSH.js").then(({ createRoutingMemory }) => {
47292
47314
  routingMemoryCache ??= createRoutingMemory();
47293
47315
  return routingMemoryCache;
47294
47316
  }).catch((error) => {
@@ -47322,7 +47344,7 @@ ${text}` : "";
47322
47344
  }
47323
47345
  async function getWeatherContext() {
47324
47346
  try {
47325
- const { generateWeatherReport: generateWeatherReport2 } = await import("./weather-report-7WIWX53H.js");
47347
+ const { generateWeatherReport: generateWeatherReport2 } = await import("./weather-report-D25OVFUE.js");
47326
47348
  const report = generateWeatherReport2({ includeAdaptive: true });
47327
47349
  const mappings = "recommendedMappings" in report ? report.recommendedMappings : [];
47328
47350
  if (!Array.isArray(mappings) || mappings.length === 0) return "";
@@ -47340,7 +47362,7 @@ ${lines}
47340
47362
  }
47341
47363
  async function getMemoryContext(task) {
47342
47364
  try {
47343
- const { createSessionMemory: createSessionMemory2 } = await import("./session-memory-OGEHQE7S.js");
47365
+ const { createSessionMemory: createSessionMemory2 } = await import("./session-memory-A6SCTXHY.js");
47344
47366
  const { getLearningDir } = await import("./learning-persistence-7O5QYDM7.js");
47345
47367
  const memory = createSessionMemory2(getLearningDir(), { maxLearningsInContext: 10 });
47346
47368
  const learnings = memory.searchLearnings(task.slice(0, 200));
@@ -47459,7 +47481,7 @@ ${contextBlock}`;
47459
47481
  const strategy = config.votingStrategy ?? "higher_order";
47460
47482
  await postProgress(config, "Vote", `Running consensus with ${strategy} strategy...`);
47461
47483
  try {
47462
- const { executeVoting } = await import("./consensus-vote-G27UOZWA.js");
47484
+ const { executeVoting } = await import("./consensus-vote-YEM3AKUS.js");
47463
47485
  const votingResult = await executeVoting(
47464
47486
  {
47465
47487
  proposal: buildVoteProposal(plan, research),
@@ -47888,7 +47910,7 @@ async function searchCodebaseForTask(task) {
47888
47910
  }
47889
47911
  async function queryResearchRegistry(task) {
47890
47912
  try {
47891
- const { synthesizeResearch: synthesizeResearch2 } = await import("./research-helpers-synthesize-EOLHDADB.js");
47913
+ const { synthesizeResearch: synthesizeResearch2 } = await import("./research-helpers-synthesize-2ACEYSZ5.js");
47892
47914
  const topic = task.split(/[.!?\n]/).filter((s) => s.trim().length > 10)[0]?.trim();
47893
47915
  if (topic === void 0) return null;
47894
47916
  const result = await synthesizeResearch2(topic.slice(0, 50));
@@ -47959,7 +47981,7 @@ function createScanStageWrapper() {
47959
47981
  try {
47960
47982
  const slug = ctx.task.match(/([a-zA-Z0-9._-]+\/[a-zA-Z0-9._-]+)/)?.[1];
47961
47983
  if (slug !== void 0) {
47962
- const { generateSecurityPlan: generateSecurityPlan2 } = await import("./repo-security-plan-CCQEA4VF.js");
47984
+ const { generateSecurityPlan: generateSecurityPlan2 } = await import("./repo-security-plan-3TXL46ND.js");
47963
47985
  const plan = await generateSecurityPlan2({ repo: slug, maxScanners: 10 });
47964
47986
  const recs = plan.recommendations.slice(0, 5).map((r) => `${r.priority}: ${r.displayName} (${r.category})`).join("; ");
47965
47987
  return output(PIPELINE_STATE_KEYS.FINDINGS, recs, getTimeProvider().now() - start, true);
@@ -51103,7 +51125,7 @@ var GitHubTaskTracker = class {
51103
51125
  cachedProvider = null;
51104
51126
  async getProvider() {
51105
51127
  if (this.cachedProvider !== null) return this.cachedProvider;
51106
- const { createScmProvider } = await import("./factory-YPOKS35N.js");
51128
+ const { createScmProvider } = await import("./factory-YEI7VFFB.js");
51107
51129
  const result = await createScmProvider({ repo: this.config.repo ?? "" });
51108
51130
  if (!result.ok) throw new Error(`SCM provider error: ${result.error.message}`);
51109
51131
  this.cachedProvider = result.value;
@@ -52018,7 +52040,7 @@ async function probeSource(source, includeModelIds) {
52018
52040
  }
52019
52041
  }
52020
52042
  async function defaultSources(includeOpenRouter) {
52021
- const { createAllAdapters: createAllAdapters2 } = await import("./factory-R7VN5762.js");
52043
+ const { createAllAdapters: createAllAdapters2 } = await import("./factory-PDVZUWO2.js");
52022
52044
  const adapters = createAllAdapters2();
52023
52045
  return buildDefaultModelSources(adapters, { includeOpenRouter });
52024
52046
  }
@@ -56090,4 +56112,4 @@ export {
56090
56112
  shutdownFeedbackSubscriber,
56091
56113
  createEventBusBridge
56092
56114
  };
56093
- //# sourceMappingURL=chunk-7RDIWG36.js.map
56115
+ //# sourceMappingURL=chunk-K4NQ7WJK.js.map