nexus-agents 2.170.0 → 2.171.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 (128) hide show
  1. package/dist/{child-mcp-config-3RYBPZNE.js → child-mcp-config-NW4JZFWC.js} +2 -2
  2. package/dist/{chunk-LYWNKEGM.js → chunk-25CWEJ2M.js} +4 -4
  3. package/dist/{chunk-JOYOOEPJ.js → chunk-4KVAHGMB.js} +2 -2
  4. package/dist/{chunk-SCHD7NZD.js → chunk-5UDKUPZB.js} +7 -7
  5. package/dist/{chunk-Z4AWOPXA.js → chunk-76Q63KJM.js} +2 -2
  6. package/dist/{chunk-NXSY4G4Y.js → chunk-7AJWIOMT.js} +2 -2
  7. package/dist/{chunk-OFVUBY6Z.js → chunk-AJIDYCQG.js} +3 -3
  8. package/dist/{chunk-JYDXHV4L.js → chunk-B4XT3B2E.js} +2 -2
  9. package/dist/{chunk-OYBAKU7N.js → chunk-BTH745HU.js} +2 -2
  10. package/dist/{chunk-DEE2UTYV.js → chunk-CEDSYAAI.js} +2 -2
  11. package/dist/{chunk-OIT75IRK.js → chunk-DLVDFJXU.js} +4 -4
  12. package/dist/{chunk-6TN2Z2AQ.js → chunk-DYFF72HX.js} +3 -3
  13. package/dist/{chunk-BGV3IF3G.js → chunk-E53VLN73.js} +8 -8
  14. package/dist/{chunk-LDZEYJP3.js → chunk-FU2FRL46.js} +2 -2
  15. package/dist/{chunk-75AUSQL4.js → chunk-GJRLIANS.js} +7 -7
  16. package/dist/{chunk-DCXCVEZP.js → chunk-IC3NZHPT.js} +2 -2
  17. package/dist/{chunk-57RYP435.js → chunk-IK7POCXO.js} +3 -3
  18. package/dist/{chunk-DDQXPARJ.js → chunk-KP4ZXW3B.js} +3 -3
  19. package/dist/{chunk-MG4JBADQ.js → chunk-LFKCJQ7G.js} +4 -4
  20. package/dist/{chunk-PIODB4SW.js → chunk-O4J34GZT.js} +2 -2
  21. package/dist/{chunk-P4PLZZCR.js → chunk-PP5QL4EJ.js} +5 -5
  22. package/dist/{chunk-GVTXP6F6.js → chunk-QBCWORAK.js} +3 -3
  23. package/dist/{chunk-URRNWRI4.js → chunk-QBOTSJ7S.js} +6 -5
  24. package/dist/{chunk-URRNWRI4.js.map → chunk-QBOTSJ7S.js.map} +1 -1
  25. package/dist/{chunk-JLG5AUZB.js → chunk-QFS5VOB6.js} +2 -2
  26. package/dist/{chunk-C6IAXFNC.js → chunk-RAK6PTNM.js} +2 -2
  27. package/dist/{chunk-WKW5SEP7.js → chunk-RQGORCFM.js} +5 -5
  28. package/dist/{chunk-HTM32H2E.js → chunk-S66XOAMZ.js} +2 -2
  29. package/dist/{chunk-ZW7544DX.js → chunk-SCHMBRK4.js} +3 -3
  30. package/dist/{chunk-UXXNNT5D.js → chunk-SUWN54CK.js} +2 -2
  31. package/dist/{chunk-LOKT6EW7.js → chunk-SZ3CRNPI.js} +8 -8
  32. package/dist/{chunk-5N5XURKV.js → chunk-Y7JDXVJA.js} +2 -2
  33. package/dist/{chunk-QMOJJ6A2.js → chunk-YIQ5Z7LV.js} +39 -34
  34. package/dist/chunk-YIQ5Z7LV.js.map +1 -0
  35. package/dist/{chunk-RJDJMOX6.js → chunk-Z5GJ4FXW.js} +4 -4
  36. package/dist/{chunk-RZJQZ5P3.js → chunk-ZSWXEDI6.js} +2 -2
  37. package/dist/{cli-circuit-breaker-4GJA2IXC.js → cli-circuit-breaker-UWJNXHLC.js} +4 -4
  38. package/dist/cli.js +40 -40
  39. package/dist/{composite-router-UBZO4YR7.js → composite-router-ULDZRQGO.js} +2 -2
  40. package/dist/{consensus-vote-USZFJO2K.js → consensus-vote-KF6M7NZJ.js} +15 -15
  41. package/dist/{context-retriever-C5C7RFQE.js → context-retriever-73PNAWES.js} +8 -8
  42. package/dist/{doctor-deep-2N3F7EV6.js → doctor-deep-LURSTTF7.js} +3 -3
  43. package/dist/{expert-bridge-B3EFTAID.js → expert-bridge-VWS3NBL3.js} +4 -4
  44. package/dist/{factory-SURRFPSV.js → factory-KPJ2EG63.js} +5 -5
  45. package/dist/{factory-LKQKU3SD.js → factory-MYJYONBQ.js} +8 -8
  46. package/dist/{improvement-review-75OCZ5K7.js → improvement-review-APOK4U3Z.js} +5 -5
  47. package/dist/index.d.ts +151 -1
  48. package/dist/index.js +389 -155
  49. package/dist/index.js.map +1 -1
  50. package/dist/{init-opencode-LDI5E5LW.js → init-opencode-Y7WPFCY7.js} +5 -5
  51. package/dist/{issue-triage-WWQEY7PL.js → issue-triage-4P3TDIJQ.js} +6 -6
  52. package/dist/{pr-reviewer-helpers-HDP24LGZ.js → pr-reviewer-helpers-4JX2LEVZ.js} +4 -4
  53. package/dist/{registry-command-PZY7HWKO.js → registry-command-CTYTYRXF.js} +2 -2
  54. package/dist/{repo-security-plan-IYKDY5PW.js → repo-security-plan-4CXBXLAY.js} +3 -3
  55. package/dist/{research-helpers-synthesize-XSOFXRFK.js → research-helpers-synthesize-23OXMV47.js} +4 -4
  56. package/dist/{routing-memory-JTNH2BXS.js → routing-memory-AWCOIW27.js} +2 -2
  57. package/dist/security/ast-rules/command-exec-go.yml +15 -0
  58. package/dist/security/ast-rules/dangerous-eval-python.yml +8 -0
  59. package/dist/security/ast-rules/shell-injection-python.yml +13 -0
  60. package/dist/{session-memory-RJZ447UX.js → session-memory-P53QXKGV.js} +3 -3
  61. package/dist/{setup-command-35MCRS33.js → setup-command-IRW76CNQ.js} +13 -13
  62. package/dist/{setup-config-JV23ZYPO.js → setup-config-B7WLUMUU.js} +3 -3
  63. package/dist/{setup-custom-api-LMA445OB.js → setup-custom-api-B6QGKSEY.js} +3 -3
  64. package/dist/{tool-memory-K6EYH3FQ.js → tool-memory-QUFVINHN.js} +5 -5
  65. package/dist/{unified-registry-MJA6IBDD.js → unified-registry-4NOWT2MU.js} +9 -9
  66. package/dist/{weather-report-ID4ZNUAF.js → weather-report-MCLS5MFZ.js} +2 -2
  67. package/package.json +4 -1
  68. package/src/security/ast-rules/command-exec-go.yml +15 -0
  69. package/src/security/ast-rules/dangerous-eval-python.yml +8 -0
  70. package/src/security/ast-rules/fixtures/sample.go +33 -0
  71. package/src/security/ast-rules/fixtures/sample.py +41 -0
  72. package/src/security/ast-rules/shell-injection-python.yml +13 -0
  73. package/dist/chunk-QMOJJ6A2.js.map +0 -1
  74. /package/dist/{child-mcp-config-3RYBPZNE.js.map → child-mcp-config-NW4JZFWC.js.map} +0 -0
  75. /package/dist/{chunk-LYWNKEGM.js.map → chunk-25CWEJ2M.js.map} +0 -0
  76. /package/dist/{chunk-JOYOOEPJ.js.map → chunk-4KVAHGMB.js.map} +0 -0
  77. /package/dist/{chunk-SCHD7NZD.js.map → chunk-5UDKUPZB.js.map} +0 -0
  78. /package/dist/{chunk-Z4AWOPXA.js.map → chunk-76Q63KJM.js.map} +0 -0
  79. /package/dist/{chunk-NXSY4G4Y.js.map → chunk-7AJWIOMT.js.map} +0 -0
  80. /package/dist/{chunk-OFVUBY6Z.js.map → chunk-AJIDYCQG.js.map} +0 -0
  81. /package/dist/{chunk-JYDXHV4L.js.map → chunk-B4XT3B2E.js.map} +0 -0
  82. /package/dist/{chunk-OYBAKU7N.js.map → chunk-BTH745HU.js.map} +0 -0
  83. /package/dist/{chunk-DEE2UTYV.js.map → chunk-CEDSYAAI.js.map} +0 -0
  84. /package/dist/{chunk-OIT75IRK.js.map → chunk-DLVDFJXU.js.map} +0 -0
  85. /package/dist/{chunk-6TN2Z2AQ.js.map → chunk-DYFF72HX.js.map} +0 -0
  86. /package/dist/{chunk-BGV3IF3G.js.map → chunk-E53VLN73.js.map} +0 -0
  87. /package/dist/{chunk-LDZEYJP3.js.map → chunk-FU2FRL46.js.map} +0 -0
  88. /package/dist/{chunk-75AUSQL4.js.map → chunk-GJRLIANS.js.map} +0 -0
  89. /package/dist/{chunk-DCXCVEZP.js.map → chunk-IC3NZHPT.js.map} +0 -0
  90. /package/dist/{chunk-57RYP435.js.map → chunk-IK7POCXO.js.map} +0 -0
  91. /package/dist/{chunk-DDQXPARJ.js.map → chunk-KP4ZXW3B.js.map} +0 -0
  92. /package/dist/{chunk-MG4JBADQ.js.map → chunk-LFKCJQ7G.js.map} +0 -0
  93. /package/dist/{chunk-PIODB4SW.js.map → chunk-O4J34GZT.js.map} +0 -0
  94. /package/dist/{chunk-P4PLZZCR.js.map → chunk-PP5QL4EJ.js.map} +0 -0
  95. /package/dist/{chunk-GVTXP6F6.js.map → chunk-QBCWORAK.js.map} +0 -0
  96. /package/dist/{chunk-JLG5AUZB.js.map → chunk-QFS5VOB6.js.map} +0 -0
  97. /package/dist/{chunk-C6IAXFNC.js.map → chunk-RAK6PTNM.js.map} +0 -0
  98. /package/dist/{chunk-WKW5SEP7.js.map → chunk-RQGORCFM.js.map} +0 -0
  99. /package/dist/{chunk-HTM32H2E.js.map → chunk-S66XOAMZ.js.map} +0 -0
  100. /package/dist/{chunk-ZW7544DX.js.map → chunk-SCHMBRK4.js.map} +0 -0
  101. /package/dist/{chunk-UXXNNT5D.js.map → chunk-SUWN54CK.js.map} +0 -0
  102. /package/dist/{chunk-LOKT6EW7.js.map → chunk-SZ3CRNPI.js.map} +0 -0
  103. /package/dist/{chunk-5N5XURKV.js.map → chunk-Y7JDXVJA.js.map} +0 -0
  104. /package/dist/{chunk-RJDJMOX6.js.map → chunk-Z5GJ4FXW.js.map} +0 -0
  105. /package/dist/{chunk-RZJQZ5P3.js.map → chunk-ZSWXEDI6.js.map} +0 -0
  106. /package/dist/{cli-circuit-breaker-4GJA2IXC.js.map → cli-circuit-breaker-UWJNXHLC.js.map} +0 -0
  107. /package/dist/{composite-router-UBZO4YR7.js.map → composite-router-ULDZRQGO.js.map} +0 -0
  108. /package/dist/{consensus-vote-USZFJO2K.js.map → consensus-vote-KF6M7NZJ.js.map} +0 -0
  109. /package/dist/{context-retriever-C5C7RFQE.js.map → context-retriever-73PNAWES.js.map} +0 -0
  110. /package/dist/{doctor-deep-2N3F7EV6.js.map → doctor-deep-LURSTTF7.js.map} +0 -0
  111. /package/dist/{expert-bridge-B3EFTAID.js.map → expert-bridge-VWS3NBL3.js.map} +0 -0
  112. /package/dist/{factory-LKQKU3SD.js.map → factory-KPJ2EG63.js.map} +0 -0
  113. /package/dist/{factory-SURRFPSV.js.map → factory-MYJYONBQ.js.map} +0 -0
  114. /package/dist/{improvement-review-75OCZ5K7.js.map → improvement-review-APOK4U3Z.js.map} +0 -0
  115. /package/dist/{init-opencode-LDI5E5LW.js.map → init-opencode-Y7WPFCY7.js.map} +0 -0
  116. /package/dist/{issue-triage-WWQEY7PL.js.map → issue-triage-4P3TDIJQ.js.map} +0 -0
  117. /package/dist/{pr-reviewer-helpers-HDP24LGZ.js.map → pr-reviewer-helpers-4JX2LEVZ.js.map} +0 -0
  118. /package/dist/{registry-command-PZY7HWKO.js.map → registry-command-CTYTYRXF.js.map} +0 -0
  119. /package/dist/{repo-security-plan-IYKDY5PW.js.map → repo-security-plan-4CXBXLAY.js.map} +0 -0
  120. /package/dist/{research-helpers-synthesize-XSOFXRFK.js.map → research-helpers-synthesize-23OXMV47.js.map} +0 -0
  121. /package/dist/{routing-memory-JTNH2BXS.js.map → routing-memory-AWCOIW27.js.map} +0 -0
  122. /package/dist/{session-memory-RJZ447UX.js.map → session-memory-P53QXKGV.js.map} +0 -0
  123. /package/dist/{setup-command-35MCRS33.js.map → setup-command-IRW76CNQ.js.map} +0 -0
  124. /package/dist/{setup-config-JV23ZYPO.js.map → setup-config-B7WLUMUU.js.map} +0 -0
  125. /package/dist/{setup-custom-api-LMA445OB.js.map → setup-custom-api-B6QGKSEY.js.map} +0 -0
  126. /package/dist/{tool-memory-K6EYH3FQ.js.map → tool-memory-QUFVINHN.js.map} +0 -0
  127. /package/dist/{unified-registry-MJA6IBDD.js.map → unified-registry-4NOWT2MU.js.map} +0 -0
  128. /package/dist/{weather-report-ID4ZNUAF.js.map → weather-report-MCLS5MFZ.js.map} +0 -0
@@ -15,7 +15,7 @@ import {
15
15
  createLogger,
16
16
  err,
17
17
  ok
18
- } from "./chunk-GVTXP6F6.js";
18
+ } from "./chunk-QBCWORAK.js";
19
19
 
20
20
  // src/adapters/sdk/types.ts
21
21
  var PROVIDER_ENV_KEYS = {
@@ -396,4 +396,4 @@ export {
396
396
  CUSTOM_API_DEFAULT_MODEL,
397
397
  DEFAULTS
398
398
  };
399
- //# sourceMappingURL=chunk-JLG5AUZB.js.map
399
+ //# sourceMappingURL=chunk-QFS5VOB6.js.map
@@ -4,7 +4,7 @@ import {
4
4
  err,
5
5
  getErrorMessage,
6
6
  ok
7
- } from "./chunk-GVTXP6F6.js";
7
+ } from "./chunk-QBCWORAK.js";
8
8
 
9
9
  // src/scm/types.ts
10
10
  var ScmError = class extends Error {
@@ -263,4 +263,4 @@ export {
263
263
  ScmError,
264
264
  GitHubProvider
265
265
  };
266
- //# sourceMappingURL=chunk-C6IAXFNC.js.map
266
+ //# sourceMappingURL=chunk-RAK6PTNM.js.map
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  GitHubProvider,
3
3
  ScmError
4
- } from "./chunk-C6IAXFNC.js";
4
+ } from "./chunk-RAK6PTNM.js";
5
5
  import {
6
6
  ROLE_DEFAULT_TRUST,
7
7
  ReputationCache,
@@ -11,17 +11,17 @@ import {
11
11
  gateWithReputation,
12
12
  resolveReputationGatingMode,
13
13
  sanitizeInput
14
- } from "./chunk-DEE2UTYV.js";
14
+ } from "./chunk-CEDSYAAI.js";
15
15
  import {
16
16
  emitPolicyEvent
17
- } from "./chunk-OYBAKU7N.js";
17
+ } from "./chunk-BTH745HU.js";
18
18
  import {
19
19
  CLI_SUBPROCESS_TIMEOUTS,
20
20
  createLogger,
21
21
  err,
22
22
  getTimeProvider,
23
23
  ok
24
- } from "./chunk-GVTXP6F6.js";
24
+ } from "./chunk-QBCWORAK.js";
25
25
 
26
26
  // src/security/trust-classifier.ts
27
27
  function mapAuthorAssociation(association) {
@@ -1211,4 +1211,4 @@ export {
1211
1211
  IssueTriage,
1212
1212
  createIssueTriage
1213
1213
  };
1214
- //# sourceMappingURL=chunk-WKW5SEP7.js.map
1214
+ //# sourceMappingURL=chunk-RQGORCFM.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  getErrorMessage
3
- } from "./chunk-GVTXP6F6.js";
3
+ } from "./chunk-QBCWORAK.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-HTM32H2E.js.map
80
+ //# sourceMappingURL=chunk-S66XOAMZ.js.map
@@ -7,7 +7,7 @@ import {
7
7
  toolStructuredError,
8
8
  toolSuccessStructured,
9
9
  wrapToolWithTimeout
10
- } from "./chunk-DDQXPARJ.js";
10
+ } from "./chunk-KP4ZXW3B.js";
11
11
  import {
12
12
  JsonlStore,
13
13
  SECURITY_KEYWORDS,
@@ -19,7 +19,7 @@ import {
19
19
  getPipelineEventBus,
20
20
  getTimeProvider,
21
21
  isDeclaredNeverDeprecate
22
- } from "./chunk-GVTXP6F6.js";
22
+ } from "./chunk-QBCWORAK.js";
23
23
  import {
24
24
  getNexusDataDir,
25
25
  nexusDataPath
@@ -2132,4 +2132,4 @@ export {
2132
2132
  runImprovementReview,
2133
2133
  registerImprovementReviewTool
2134
2134
  };
2135
- //# sourceMappingURL=chunk-ZW7544DX.js.map
2135
+ //# sourceMappingURL=chunk-SCHMBRK4.js.map
@@ -3,7 +3,7 @@ import {
3
3
  MODEL_IDS,
4
4
  getTimeProvider,
5
5
  resolveModelIdentitySync
6
- } from "./chunk-GVTXP6F6.js";
6
+ } from "./chunk-QBCWORAK.js";
7
7
 
8
8
  // src/config/model-availability.ts
9
9
  var DEFAULT_TTL_MS = 6e4;
@@ -150,4 +150,4 @@ export {
150
150
  resetAvailabilityCache,
151
151
  filterAvailableModels
152
152
  };
153
- //# sourceMappingURL=chunk-UXXNNT5D.js.map
153
+ //# sourceMappingURL=chunk-SUWN54CK.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  computeCostDetail
3
- } from "./chunk-NXSY4G4Y.js";
3
+ } from "./chunk-7AJWIOMT.js";
4
4
  import {
5
5
  DEFAULT_CONSENSUS_CONFIG,
6
6
  DEFAULT_INCREMENTAL_QUORUM_CONFIG,
@@ -18,20 +18,20 @@ import {
18
18
  toolSuccess,
19
19
  withProgressHeartbeat,
20
20
  wrapToolWithTimeout
21
- } from "./chunk-DDQXPARJ.js";
21
+ } from "./chunk-KP4ZXW3B.js";
22
22
  import {
23
23
  getToolMemory
24
- } from "./chunk-MG4JBADQ.js";
24
+ } from "./chunk-LFKCJQ7G.js";
25
25
  import {
26
26
  createEvent,
27
27
  getGlobalRegistry
28
- } from "./chunk-RJDJMOX6.js";
28
+ } from "./chunk-Z5GJ4FXW.js";
29
29
  import {
30
30
  authRemediation,
31
31
  delay,
32
32
  getAvailableClis,
33
33
  withTimeout
34
- } from "./chunk-SCHD7NZD.js";
34
+ } from "./chunk-5UDKUPZB.js";
35
35
  import {
36
36
  AgentError,
37
37
  CLI_NAMES,
@@ -59,7 +59,7 @@ import {
59
59
  registerPersistentOutcomeStoreFactory,
60
60
  resolveClassGuardMs,
61
61
  resolveVoteTimeout
62
- } from "./chunk-GVTXP6F6.js";
62
+ } from "./chunk-QBCWORAK.js";
63
63
  import {
64
64
  ensureLearningDir,
65
65
  getOutcomesFile
@@ -5866,7 +5866,7 @@ async function processVotesWithCascade(engineVotes, opts) {
5866
5866
  var CONTRARIAN_ESCALATION_THRESHOLD = 0.8;
5867
5867
  async function runContrarianCheck(proposal, log) {
5868
5868
  try {
5869
- const { executeExpert } = await import("./expert-bridge-B3EFTAID.js");
5869
+ const { executeExpert } = await import("./expert-bridge-VWS3NBL3.js");
5870
5870
  const prompt = [
5871
5871
  "You are a contrarian analyst. Your job is to find reasons this proposal should be REJECTED.",
5872
5872
  "Look for: YAGNI (not needed), MISALIGNED (wrong tech/architecture), SECURITY_RISK, SCOPE_CREEP.",
@@ -6382,4 +6382,4 @@ export {
6382
6382
  CONSENSUS_VOTE_OUTPUT_SCHEMA,
6383
6383
  registerConsensusVoteTool
6384
6384
  };
6385
- //# sourceMappingURL=chunk-LOKT6EW7.js.map
6385
+ //# sourceMappingURL=chunk-SZ3CRNPI.js.map
@@ -2,7 +2,7 @@ import {
2
2
  createLogger,
3
3
  err,
4
4
  ok
5
- } from "./chunk-GVTXP6F6.js";
5
+ } from "./chunk-QBCWORAK.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-5N5XURKV.js.map
90
+ //# sourceMappingURL=chunk-Y7JDXVJA.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  generateSecurityPlan
3
- } from "./chunk-JYDXHV4L.js";
3
+ } from "./chunk-B4XT3B2E.js";
4
4
  import {
5
5
  analyzeGitHubRepo
6
6
  } from "./chunk-HFOQKCD2.js";
@@ -21,10 +21,10 @@ import {
21
21
  DEFAULT_TASK_TTL_MS,
22
22
  DEFAULT_TOOL_RATE_LIMITS,
23
23
  clampTaskTtl
24
- } from "./chunk-BGV3IF3G.js";
24
+ } from "./chunk-E53VLN73.js";
25
25
  import {
26
26
  executeExpert
27
- } from "./chunk-75AUSQL4.js";
27
+ } from "./chunk-GJRLIANS.js";
28
28
  import {
29
29
  JobStatusSchema,
30
30
  abortJob,
@@ -45,21 +45,21 @@ import {
45
45
  simulationDeniedResult,
46
46
  toJobSummary,
47
47
  writeJobCancelled
48
- } from "./chunk-LOKT6EW7.js";
48
+ } from "./chunk-SZ3CRNPI.js";
49
49
  import {
50
50
  normalizeTopicToCanonical,
51
51
  synthesizeResearch
52
- } from "./chunk-6TN2Z2AQ.js";
52
+ } from "./chunk-DYFF72HX.js";
53
53
  import {
54
54
  IssueTriage
55
- } from "./chunk-WKW5SEP7.js";
55
+ } from "./chunk-RQGORCFM.js";
56
56
  import {
57
57
  resolveEnvMode,
58
58
  sanitizeInput
59
- } from "./chunk-DEE2UTYV.js";
59
+ } from "./chunk-CEDSYAAI.js";
60
60
  import {
61
61
  withPrerequisite
62
- } from "./chunk-ZW7544DX.js";
62
+ } from "./chunk-SCHMBRK4.js";
63
63
  import {
64
64
  NOOP_NOTIFIER,
65
65
  RateLimiter,
@@ -82,12 +82,12 @@ import {
82
82
  withAuditTrail,
83
83
  withProgressHeartbeat,
84
84
  wrapToolWithTimeout
85
- } from "./chunk-DDQXPARJ.js";
85
+ } from "./chunk-KP4ZXW3B.js";
86
86
  import {
87
87
  createAuditTrail,
88
88
  createGraphAuditBridge,
89
89
  emitPipelinePolicyEvent
90
- } from "./chunk-OYBAKU7N.js";
90
+ } from "./chunk-BTH745HU.js";
91
91
  import {
92
92
  IDENTIFIER_RE,
93
93
  LANG_VALUES,
@@ -115,19 +115,20 @@ import {
115
115
  getResearchStatus,
116
116
  inferLang,
117
117
  inferTaskCategory,
118
+ langToNapi,
118
119
  paperExists,
119
120
  parseRegistry,
120
121
  sourceExistsInRegistry,
121
122
  summarizeContextForPrompt
122
- } from "./chunk-URRNWRI4.js";
123
+ } from "./chunk-QBOTSJ7S.js";
123
124
  import {
124
125
  getTokenEnvVars,
125
126
  resolveToken
126
- } from "./chunk-5N5XURKV.js";
127
+ } from "./chunk-Y7JDXVJA.js";
127
128
  import {
128
129
  loadPapersRegistry,
129
130
  loadTechniquesRegistry
130
- } from "./chunk-RZJQZ5P3.js";
131
+ } from "./chunk-ZSWXEDI6.js";
131
132
  import {
132
133
  resolveInsideRoot
133
134
  } from "./chunk-NUBSJGQZ.js";
@@ -136,14 +137,14 @@ import {
136
137
  MemoryImportance,
137
138
  calculateTextJaccardSimilarity,
138
139
  getToolMemory
139
- } from "./chunk-MG4JBADQ.js";
140
+ } from "./chunk-LFKCJQ7G.js";
140
141
  import {
141
142
  STOPWORDS,
142
143
  truncateWithInfo
143
144
  } from "./chunk-6T3EPABN.js";
144
145
  import {
145
146
  createSessionMemory
146
- } from "./chunk-PIODB4SW.js";
147
+ } from "./chunk-O4J34GZT.js";
147
148
  import {
148
149
  BUILT_IN_EXPERTS,
149
150
  BuiltInExpertTypeSchema,
@@ -158,7 +159,7 @@ import {
158
159
  createEvent,
159
160
  getGlobalEventBus,
160
161
  getGlobalRegistry
161
- } from "./chunk-RJDJMOX6.js";
162
+ } from "./chunk-Z5GJ4FXW.js";
162
163
  import {
163
164
  CliDetectionCache,
164
165
  asRecord,
@@ -166,19 +167,19 @@ import {
166
167
  getAvailableClis,
167
168
  sleep,
168
169
  withTimeout
169
- } from "./chunk-SCHD7NZD.js";
170
+ } from "./chunk-5UDKUPZB.js";
170
171
  import {
171
172
  DEFAULTS
172
- } from "./chunk-JLG5AUZB.js";
173
+ } from "./chunk-QFS5VOB6.js";
173
174
  import {
174
175
  getAvailabilityCache,
175
176
  getCliForModelId,
176
177
  resolveFallback
177
- } from "./chunk-UXXNNT5D.js";
178
+ } from "./chunk-SUWN54CK.js";
178
179
  import {
179
180
  generateHyphenId,
180
181
  generateUUID
181
- } from "./chunk-DCXCVEZP.js";
182
+ } from "./chunk-IC3NZHPT.js";
182
183
  import {
183
184
  AGENT_ROUTER_TIMEOUTS,
184
185
  API_TIMEOUTS,
@@ -270,7 +271,7 @@ import {
270
271
  selectStrategyByManifest,
271
272
  toExpertTaskAnalysisResult,
272
273
  withStep
273
- } from "./chunk-GVTXP6F6.js";
274
+ } from "./chunk-QBCWORAK.js";
274
275
  import {
275
276
  ensureLearningDir,
276
277
  getMetaOutcomesFile,
@@ -12404,6 +12405,10 @@ var logger4 = createLogger({ component: "self-debug-protocol" });
12404
12405
  // src/agents/collaboration/ast-fixer.ts
12405
12406
  import { Project, SyntaxKind, Node } from "ts-morph";
12406
12407
 
12408
+ // src/agents/collaboration/ast-rewrites.ts
12409
+ import { parse } from "@ast-grep/napi";
12410
+ var FIXER_LANG = langToNapi("typescript");
12411
+
12407
12412
  // src/agents/collaboration/agent-message-router-types.ts
12408
12413
  var DEFAULT_ROUTER_CONFIG = {
12409
12414
  timeoutMs: AGENT_ROUTER_TIMEOUTS.defaultMs,
@@ -26305,7 +26310,7 @@ function execIdFields(executionId) {
26305
26310
  async function populateUnifiedContextOnState(state, options) {
26306
26311
  const taskCandidate = state["task"];
26307
26312
  if (typeof taskCandidate !== "string" || taskCandidate === "") return;
26308
- const { getContextForTask: getContextForTask2, inferTaskCategory: inferTaskCategory2 } = await import("./context-retriever-C5C7RFQE.js");
26313
+ const { getContextForTask: getContextForTask2, inferTaskCategory: inferTaskCategory2 } = await import("./context-retriever-73PNAWES.js");
26309
26314
  const category = inferTaskCategory2(taskCandidate);
26310
26315
  const executionId = options?.executionId;
26311
26316
  const execFields = execIdFields(executionId);
@@ -41806,7 +41811,7 @@ async function tryIssueTriage(task) {
41806
41811
  try {
41807
41812
  const issueMatch = task.match(/github\.com\/([^/]+\/[^/]+)\/issues\/(\d+)/);
41808
41813
  if (issueMatch === null) return null;
41809
- const { createIssueTriage } = await import("./issue-triage-WWQEY7PL.js");
41814
+ const { createIssueTriage } = await import("./issue-triage-4P3TDIJQ.js");
41810
41815
  const triage = createIssueTriage();
41811
41816
  const owner = issueMatch[1] ?? "";
41812
41817
  const num = issueMatch[2] ?? "";
@@ -41834,7 +41839,7 @@ var VALID_TEMPLATES = /* @__PURE__ */ new Set([
41834
41839
  ]);
41835
41840
  async function classifyWithLLM(task) {
41836
41841
  try {
41837
- const { executeExpert: executeExpert2 } = await import("./expert-bridge-B3EFTAID.js");
41842
+ const { executeExpert: executeExpert2 } = await import("./expert-bridge-VWS3NBL3.js");
41838
41843
  const prompt = [
41839
41844
  "Classify this task into exactly one pipeline template.",
41840
41845
  "Templates: dev (implementation/bug fix/refactor), research (investigate/evaluate/compare),",
@@ -43475,7 +43480,7 @@ var memoryInitPromise = null;
43475
43480
  async function initPipelineMemory() {
43476
43481
  if (cachedMemory !== null) return cachedMemory;
43477
43482
  try {
43478
- const { createSessionMemory: createSessionMemory2 } = await import("./session-memory-RJZ447UX.js");
43483
+ const { createSessionMemory: createSessionMemory2 } = await import("./session-memory-P53QXKGV.js");
43479
43484
  const { getLearningDir } = await import("./learning-persistence-6D5GGT7D.js");
43480
43485
  const mem = createSessionMemory2(getLearningDir());
43481
43486
  mem.startSession(`pipeline-${String(getTimeProvider().now())}`);
@@ -43537,7 +43542,7 @@ function recordRoutingExperience(category, success, durationMs, tokensUsed = 0,
43537
43542
  callRecord(routingMemoryCache);
43538
43543
  return;
43539
43544
  }
43540
- routingMemoryInitPromise ??= import("./routing-memory-JTNH2BXS.js").then(({ createRoutingMemory }) => {
43545
+ routingMemoryInitPromise ??= import("./routing-memory-AWCOIW27.js").then(({ createRoutingMemory }) => {
43541
43546
  routingMemoryCache ??= createRoutingMemory();
43542
43547
  return routingMemoryCache;
43543
43548
  }).catch((error) => {
@@ -43571,7 +43576,7 @@ ${text}` : "";
43571
43576
  }
43572
43577
  async function getWeatherContext() {
43573
43578
  try {
43574
- const { generateWeatherReport: generateWeatherReport2 } = await import("./weather-report-ID4ZNUAF.js");
43579
+ const { generateWeatherReport: generateWeatherReport2 } = await import("./weather-report-MCLS5MFZ.js");
43575
43580
  const report = generateWeatherReport2({ includeAdaptive: true });
43576
43581
  const mappings = "recommendedMappings" in report ? report.recommendedMappings : [];
43577
43582
  if (!Array.isArray(mappings) || mappings.length === 0) return "";
@@ -43589,7 +43594,7 @@ ${lines}
43589
43594
  }
43590
43595
  async function getMemoryContext(task) {
43591
43596
  try {
43592
- const { createSessionMemory: createSessionMemory2 } = await import("./session-memory-RJZ447UX.js");
43597
+ const { createSessionMemory: createSessionMemory2 } = await import("./session-memory-P53QXKGV.js");
43593
43598
  const { getLearningDir } = await import("./learning-persistence-6D5GGT7D.js");
43594
43599
  const memory = createSessionMemory2(getLearningDir(), { maxLearningsInContext: 10 });
43595
43600
  const learnings = memory.searchLearnings(task.slice(0, 200));
@@ -43704,7 +43709,7 @@ ${contextBlock}`;
43704
43709
  const strategy = config.votingStrategy ?? "higher_order";
43705
43710
  await postProgress(config, "Vote", `Running consensus with ${strategy} strategy...`);
43706
43711
  try {
43707
- const { executeVoting } = await import("./consensus-vote-USZFJO2K.js");
43712
+ const { executeVoting } = await import("./consensus-vote-KF6M7NZJ.js");
43708
43713
  const votingResult = await executeVoting(
43709
43714
  {
43710
43715
  proposal: buildVoteProposal(plan, research),
@@ -44145,7 +44150,7 @@ async function searchCodebaseForTask(task) {
44145
44150
  }
44146
44151
  async function queryResearchRegistry(task) {
44147
44152
  try {
44148
- const { synthesizeResearch: synthesizeResearch2 } = await import("./research-helpers-synthesize-XSOFXRFK.js");
44153
+ const { synthesizeResearch: synthesizeResearch2 } = await import("./research-helpers-synthesize-23OXMV47.js");
44149
44154
  const topic = task.split(/[.!?\n]/).filter((s) => s.trim().length > 10)[0]?.trim();
44150
44155
  if (topic === void 0) return null;
44151
44156
  const result = await synthesizeResearch2(topic.slice(0, 50));
@@ -44216,7 +44221,7 @@ function createScanStageWrapper() {
44216
44221
  try {
44217
44222
  const slug = ctx.task.match(/([a-zA-Z0-9._-]+\/[a-zA-Z0-9._-]+)/)?.[1];
44218
44223
  if (slug !== void 0) {
44219
- const { generateSecurityPlan: generateSecurityPlan2 } = await import("./repo-security-plan-IYKDY5PW.js");
44224
+ const { generateSecurityPlan: generateSecurityPlan2 } = await import("./repo-security-plan-4CXBXLAY.js");
44220
44225
  const plan = await generateSecurityPlan2({ repo: slug, maxScanners: 10 });
44221
44226
  const recs = plan.recommendations.slice(0, 5).map((r) => `${r.priority}: ${r.displayName} (${r.category})`).join("; ");
44222
44227
  return output(PIPELINE_STATE_KEYS.FINDINGS, recs, getTimeProvider().now() - start, true);
@@ -47176,7 +47181,7 @@ var GitHubTaskTracker = class {
47176
47181
  cachedProvider = null;
47177
47182
  async getProvider() {
47178
47183
  if (this.cachedProvider !== null) return this.cachedProvider;
47179
- const { createScmProvider } = await import("./factory-SURRFPSV.js");
47184
+ const { createScmProvider } = await import("./factory-KPJ2EG63.js");
47180
47185
  const result = await createScmProvider({ repo: this.config.repo ?? "" });
47181
47186
  if (!result.ok) throw new Error(`SCM provider error: ${result.error.message}`);
47182
47187
  this.cachedProvider = result.value;
@@ -47983,7 +47988,7 @@ async function probeSource(source, includeModelIds) {
47983
47988
  }
47984
47989
  }
47985
47990
  async function defaultSources(includeOpenRouter) {
47986
- const { createAllAdapters: createAllAdapters2 } = await import("./factory-LKQKU3SD.js");
47991
+ const { createAllAdapters: createAllAdapters2 } = await import("./factory-MYJYONBQ.js");
47987
47992
  const adapters = createAllAdapters2();
47988
47993
  return buildDefaultModelSources(adapters, { includeOpenRouter });
47989
47994
  }
@@ -52054,4 +52059,4 @@ export {
52054
52059
  shutdownFeedbackSubscriber,
52055
52060
  createEventBusBridge
52056
52061
  };
52057
- //# sourceMappingURL=chunk-QMOJJ6A2.js.map
52062
+ //# sourceMappingURL=chunk-YIQ5Z7LV.js.map