nexus-agents 2.169.0 → 2.170.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 (118) hide show
  1. package/dist/{child-mcp-config-FJRGAMUU.js → child-mcp-config-3RYBPZNE.js} +2 -2
  2. package/dist/{chunk-PZF67XDY.js → chunk-57RYP435.js} +3 -3
  3. package/dist/{chunk-3JH3FMEJ.js → chunk-5N5XURKV.js} +2 -2
  4. package/dist/{chunk-7S43YASS.js → chunk-6TN2Z2AQ.js} +3 -3
  5. package/dist/{chunk-4G5W5EPU.js → chunk-75AUSQL4.js} +7 -7
  6. package/dist/{chunk-ROCNXZBC.js → chunk-BGV3IF3G.js} +8 -8
  7. package/dist/{chunk-RO23OT47.js → chunk-C6IAXFNC.js} +2 -2
  8. package/dist/{chunk-OOFPDA3B.js → chunk-DCXCVEZP.js} +2 -2
  9. package/dist/{chunk-IQC2K3KY.js → chunk-DDQXPARJ.js} +3 -3
  10. package/dist/{chunk-SX4E2W3Z.js → chunk-DEE2UTYV.js} +2 -2
  11. package/dist/{chunk-QXSR5KPG.js → chunk-GVTXP6F6.js} +3 -3
  12. package/dist/{chunk-CD2NZFAI.js → chunk-HTM32H2E.js} +2 -2
  13. package/dist/{chunk-JCJHQSAY.js → chunk-JLG5AUZB.js} +2 -2
  14. package/dist/{chunk-MCT7JJF6.js → chunk-JOYOOEPJ.js} +2 -2
  15. package/dist/{chunk-HNNSCTOI.js → chunk-JYDXHV4L.js} +2 -2
  16. package/dist/{chunk-5O4JRXNQ.js → chunk-LDZEYJP3.js} +2 -2
  17. package/dist/{chunk-F6HJJG3E.js → chunk-LOKT6EW7.js} +8 -8
  18. package/dist/{chunk-CHF63T3L.js → chunk-LYWNKEGM.js} +4 -4
  19. package/dist/{chunk-Q3UMNYV2.js → chunk-MG4JBADQ.js} +4 -4
  20. package/dist/{chunk-TB26XNJH.js → chunk-NXSY4G4Y.js} +2 -2
  21. package/dist/{chunk-ZXFIBDT3.js → chunk-OFVUBY6Z.js} +3 -3
  22. package/dist/{chunk-3ON2P4WL.js → chunk-OIT75IRK.js} +4 -4
  23. package/dist/{chunk-BWG54OJS.js → chunk-OYBAKU7N.js} +2 -2
  24. package/dist/{chunk-WB33EPTV.js → chunk-P4PLZZCR.js} +5 -5
  25. package/dist/{chunk-W76DOL27.js → chunk-PIODB4SW.js} +2 -2
  26. package/dist/{chunk-N7FIUFQL.js → chunk-QMOJJ6A2.js} +39 -118
  27. package/dist/{chunk-N7FIUFQL.js.map → chunk-QMOJJ6A2.js.map} +1 -1
  28. package/dist/{chunk-P7MYTCE6.js → chunk-RJDJMOX6.js} +4 -4
  29. package/dist/{chunk-HAVBBSYN.js → chunk-RZJQZ5P3.js} +2 -2
  30. package/dist/{chunk-NT3KCLT6.js → chunk-SCHD7NZD.js} +7 -7
  31. package/dist/{chunk-XGNB7LQB.js → chunk-URRNWRI4.js} +234 -20
  32. package/dist/chunk-URRNWRI4.js.map +1 -0
  33. package/dist/{chunk-T3VD32JY.js → chunk-UXXNNT5D.js} +2 -2
  34. package/dist/{chunk-R46SBPLH.js → chunk-WKW5SEP7.js} +5 -5
  35. package/dist/{chunk-DSMSYENI.js → chunk-Z4AWOPXA.js} +2 -2
  36. package/dist/{chunk-EQRN5FRZ.js → chunk-ZW7544DX.js} +3 -3
  37. package/dist/{cli-circuit-breaker-FJQXDC5M.js → cli-circuit-breaker-4GJA2IXC.js} +4 -4
  38. package/dist/cli.js +40 -40
  39. package/dist/{composite-router-UQTCPADM.js → composite-router-UBZO4YR7.js} +2 -2
  40. package/dist/{consensus-vote-FEDF24T5.js → consensus-vote-USZFJO2K.js} +15 -15
  41. package/dist/{context-retriever-TIJGFLGO.js → context-retriever-C5C7RFQE.js} +8 -8
  42. package/dist/{doctor-deep-EULAHWTK.js → doctor-deep-2N3F7EV6.js} +3 -3
  43. package/dist/{expert-bridge-7HQ54XYU.js → expert-bridge-B3EFTAID.js} +4 -4
  44. package/dist/{factory-QZZQVDGQ.js → factory-LKQKU3SD.js} +8 -8
  45. package/dist/{factory-RW2ROEDS.js → factory-SURRFPSV.js} +5 -5
  46. package/dist/{improvement-review-DGQPADKS.js → improvement-review-75OCZ5K7.js} +5 -5
  47. package/dist/index.js +30 -30
  48. package/dist/{init-opencode-MK2NUEWH.js → init-opencode-LDI5E5LW.js} +5 -5
  49. package/dist/{issue-triage-RVDZEM53.js → issue-triage-WWQEY7PL.js} +6 -6
  50. package/dist/{pr-reviewer-helpers-TKXJBDT6.js → pr-reviewer-helpers-HDP24LGZ.js} +4 -4
  51. package/dist/{registry-command-VXXKVZ3H.js → registry-command-PZY7HWKO.js} +2 -2
  52. package/dist/{repo-security-plan-YCTKRAGA.js → repo-security-plan-IYKDY5PW.js} +3 -3
  53. package/dist/{research-helpers-synthesize-4L6SXYQU.js → research-helpers-synthesize-XSOFXRFK.js} +4 -4
  54. package/dist/{routing-memory-INY5DC2P.js → routing-memory-JTNH2BXS.js} +2 -2
  55. package/dist/{session-memory-TQMLN67N.js → session-memory-RJZ447UX.js} +3 -3
  56. package/dist/{setup-command-FT5LBTSR.js → setup-command-35MCRS33.js} +13 -13
  57. package/dist/{setup-config-U3WLC5OO.js → setup-config-JV23ZYPO.js} +3 -3
  58. package/dist/{setup-custom-api-2E4MZ5MF.js → setup-custom-api-LMA445OB.js} +3 -3
  59. package/dist/{tool-memory-IV5BVIV4.js → tool-memory-K6EYH3FQ.js} +5 -5
  60. package/dist/{unified-registry-6LFTI4MG.js → unified-registry-MJA6IBDD.js} +9 -9
  61. package/dist/{weather-report-7NZ6D4C7.js → weather-report-ID4ZNUAF.js} +2 -2
  62. package/package.json +1 -1
  63. package/dist/chunk-XGNB7LQB.js.map +0 -1
  64. /package/dist/{child-mcp-config-FJRGAMUU.js.map → child-mcp-config-3RYBPZNE.js.map} +0 -0
  65. /package/dist/{chunk-PZF67XDY.js.map → chunk-57RYP435.js.map} +0 -0
  66. /package/dist/{chunk-3JH3FMEJ.js.map → chunk-5N5XURKV.js.map} +0 -0
  67. /package/dist/{chunk-7S43YASS.js.map → chunk-6TN2Z2AQ.js.map} +0 -0
  68. /package/dist/{chunk-4G5W5EPU.js.map → chunk-75AUSQL4.js.map} +0 -0
  69. /package/dist/{chunk-ROCNXZBC.js.map → chunk-BGV3IF3G.js.map} +0 -0
  70. /package/dist/{chunk-RO23OT47.js.map → chunk-C6IAXFNC.js.map} +0 -0
  71. /package/dist/{chunk-OOFPDA3B.js.map → chunk-DCXCVEZP.js.map} +0 -0
  72. /package/dist/{chunk-IQC2K3KY.js.map → chunk-DDQXPARJ.js.map} +0 -0
  73. /package/dist/{chunk-SX4E2W3Z.js.map → chunk-DEE2UTYV.js.map} +0 -0
  74. /package/dist/{chunk-QXSR5KPG.js.map → chunk-GVTXP6F6.js.map} +0 -0
  75. /package/dist/{chunk-CD2NZFAI.js.map → chunk-HTM32H2E.js.map} +0 -0
  76. /package/dist/{chunk-JCJHQSAY.js.map → chunk-JLG5AUZB.js.map} +0 -0
  77. /package/dist/{chunk-MCT7JJF6.js.map → chunk-JOYOOEPJ.js.map} +0 -0
  78. /package/dist/{chunk-HNNSCTOI.js.map → chunk-JYDXHV4L.js.map} +0 -0
  79. /package/dist/{chunk-5O4JRXNQ.js.map → chunk-LDZEYJP3.js.map} +0 -0
  80. /package/dist/{chunk-F6HJJG3E.js.map → chunk-LOKT6EW7.js.map} +0 -0
  81. /package/dist/{chunk-CHF63T3L.js.map → chunk-LYWNKEGM.js.map} +0 -0
  82. /package/dist/{chunk-Q3UMNYV2.js.map → chunk-MG4JBADQ.js.map} +0 -0
  83. /package/dist/{chunk-TB26XNJH.js.map → chunk-NXSY4G4Y.js.map} +0 -0
  84. /package/dist/{chunk-ZXFIBDT3.js.map → chunk-OFVUBY6Z.js.map} +0 -0
  85. /package/dist/{chunk-3ON2P4WL.js.map → chunk-OIT75IRK.js.map} +0 -0
  86. /package/dist/{chunk-BWG54OJS.js.map → chunk-OYBAKU7N.js.map} +0 -0
  87. /package/dist/{chunk-WB33EPTV.js.map → chunk-P4PLZZCR.js.map} +0 -0
  88. /package/dist/{chunk-W76DOL27.js.map → chunk-PIODB4SW.js.map} +0 -0
  89. /package/dist/{chunk-P7MYTCE6.js.map → chunk-RJDJMOX6.js.map} +0 -0
  90. /package/dist/{chunk-HAVBBSYN.js.map → chunk-RZJQZ5P3.js.map} +0 -0
  91. /package/dist/{chunk-NT3KCLT6.js.map → chunk-SCHD7NZD.js.map} +0 -0
  92. /package/dist/{chunk-T3VD32JY.js.map → chunk-UXXNNT5D.js.map} +0 -0
  93. /package/dist/{chunk-R46SBPLH.js.map → chunk-WKW5SEP7.js.map} +0 -0
  94. /package/dist/{chunk-DSMSYENI.js.map → chunk-Z4AWOPXA.js.map} +0 -0
  95. /package/dist/{chunk-EQRN5FRZ.js.map → chunk-ZW7544DX.js.map} +0 -0
  96. /package/dist/{cli-circuit-breaker-FJQXDC5M.js.map → cli-circuit-breaker-4GJA2IXC.js.map} +0 -0
  97. /package/dist/{composite-router-UQTCPADM.js.map → composite-router-UBZO4YR7.js.map} +0 -0
  98. /package/dist/{consensus-vote-FEDF24T5.js.map → consensus-vote-USZFJO2K.js.map} +0 -0
  99. /package/dist/{context-retriever-TIJGFLGO.js.map → context-retriever-C5C7RFQE.js.map} +0 -0
  100. /package/dist/{doctor-deep-EULAHWTK.js.map → doctor-deep-2N3F7EV6.js.map} +0 -0
  101. /package/dist/{expert-bridge-7HQ54XYU.js.map → expert-bridge-B3EFTAID.js.map} +0 -0
  102. /package/dist/{factory-QZZQVDGQ.js.map → factory-LKQKU3SD.js.map} +0 -0
  103. /package/dist/{factory-RW2ROEDS.js.map → factory-SURRFPSV.js.map} +0 -0
  104. /package/dist/{improvement-review-DGQPADKS.js.map → improvement-review-75OCZ5K7.js.map} +0 -0
  105. /package/dist/{init-opencode-MK2NUEWH.js.map → init-opencode-LDI5E5LW.js.map} +0 -0
  106. /package/dist/{issue-triage-RVDZEM53.js.map → issue-triage-WWQEY7PL.js.map} +0 -0
  107. /package/dist/{pr-reviewer-helpers-TKXJBDT6.js.map → pr-reviewer-helpers-HDP24LGZ.js.map} +0 -0
  108. /package/dist/{registry-command-VXXKVZ3H.js.map → registry-command-PZY7HWKO.js.map} +0 -0
  109. /package/dist/{repo-security-plan-YCTKRAGA.js.map → repo-security-plan-IYKDY5PW.js.map} +0 -0
  110. /package/dist/{research-helpers-synthesize-4L6SXYQU.js.map → research-helpers-synthesize-XSOFXRFK.js.map} +0 -0
  111. /package/dist/{routing-memory-INY5DC2P.js.map → routing-memory-JTNH2BXS.js.map} +0 -0
  112. /package/dist/{session-memory-TQMLN67N.js.map → session-memory-RJZ447UX.js.map} +0 -0
  113. /package/dist/{setup-command-FT5LBTSR.js.map → setup-command-35MCRS33.js.map} +0 -0
  114. /package/dist/{setup-config-U3WLC5OO.js.map → setup-config-JV23ZYPO.js.map} +0 -0
  115. /package/dist/{setup-custom-api-2E4MZ5MF.js.map → setup-custom-api-LMA445OB.js.map} +0 -0
  116. /package/dist/{tool-memory-IV5BVIV4.js.map → tool-memory-K6EYH3FQ.js.map} +0 -0
  117. /package/dist/{unified-registry-6LFTI4MG.js.map → unified-registry-MJA6IBDD.js.map} +0 -0
  118. /package/dist/{weather-report-7NZ6D4C7.js.map → weather-report-ID4ZNUAF.js.map} +0 -0
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  generateSecurityPlan
3
- } from "./chunk-HNNSCTOI.js";
3
+ } from "./chunk-JYDXHV4L.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-ROCNXZBC.js";
24
+ } from "./chunk-BGV3IF3G.js";
25
25
  import {
26
26
  executeExpert
27
- } from "./chunk-4G5W5EPU.js";
27
+ } from "./chunk-75AUSQL4.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-F6HJJG3E.js";
48
+ } from "./chunk-LOKT6EW7.js";
49
49
  import {
50
50
  normalizeTopicToCanonical,
51
51
  synthesizeResearch
52
- } from "./chunk-7S43YASS.js";
52
+ } from "./chunk-6TN2Z2AQ.js";
53
53
  import {
54
54
  IssueTriage
55
- } from "./chunk-R46SBPLH.js";
55
+ } from "./chunk-WKW5SEP7.js";
56
56
  import {
57
57
  resolveEnvMode,
58
58
  sanitizeInput
59
- } from "./chunk-SX4E2W3Z.js";
59
+ } from "./chunk-DEE2UTYV.js";
60
60
  import {
61
61
  withPrerequisite
62
- } from "./chunk-EQRN5FRZ.js";
62
+ } from "./chunk-ZW7544DX.js";
63
63
  import {
64
64
  NOOP_NOTIFIER,
65
65
  RateLimiter,
@@ -82,13 +82,15 @@ import {
82
82
  withAuditTrail,
83
83
  withProgressHeartbeat,
84
84
  wrapToolWithTimeout
85
- } from "./chunk-IQC2K3KY.js";
85
+ } from "./chunk-DDQXPARJ.js";
86
86
  import {
87
87
  createAuditTrail,
88
88
  createGraphAuditBridge,
89
89
  emitPipelinePolicyEvent
90
- } from "./chunk-BWG54OJS.js";
90
+ } from "./chunk-OYBAKU7N.js";
91
91
  import {
92
+ IDENTIFIER_RE,
93
+ LANG_VALUES,
92
94
  addResearchPaper,
93
95
  addSourceToRegistry,
94
96
  computeSourceQualityScore,
@@ -104,26 +106,28 @@ import {
104
106
  discoverSemanticScholar,
105
107
  fetchSource,
106
108
  findOverlaps,
109
+ findUsagesInSource,
107
110
  formatResearchIssueBody,
108
111
  generateStatsJson,
109
112
  getContextForTask,
110
113
  getContextPromptPrefix,
111
114
  getResearchInsightsForTask,
112
115
  getResearchStatus,
116
+ inferLang,
113
117
  inferTaskCategory,
114
118
  paperExists,
115
119
  parseRegistry,
116
120
  sourceExistsInRegistry,
117
121
  summarizeContextForPrompt
118
- } from "./chunk-XGNB7LQB.js";
122
+ } from "./chunk-URRNWRI4.js";
119
123
  import {
120
124
  getTokenEnvVars,
121
125
  resolveToken
122
- } from "./chunk-3JH3FMEJ.js";
126
+ } from "./chunk-5N5XURKV.js";
123
127
  import {
124
128
  loadPapersRegistry,
125
129
  loadTechniquesRegistry
126
- } from "./chunk-HAVBBSYN.js";
130
+ } from "./chunk-RZJQZ5P3.js";
127
131
  import {
128
132
  resolveInsideRoot
129
133
  } from "./chunk-NUBSJGQZ.js";
@@ -132,14 +136,14 @@ import {
132
136
  MemoryImportance,
133
137
  calculateTextJaccardSimilarity,
134
138
  getToolMemory
135
- } from "./chunk-Q3UMNYV2.js";
139
+ } from "./chunk-MG4JBADQ.js";
136
140
  import {
137
141
  STOPWORDS,
138
142
  truncateWithInfo
139
143
  } from "./chunk-6T3EPABN.js";
140
144
  import {
141
145
  createSessionMemory
142
- } from "./chunk-W76DOL27.js";
146
+ } from "./chunk-PIODB4SW.js";
143
147
  import {
144
148
  BUILT_IN_EXPERTS,
145
149
  BuiltInExpertTypeSchema,
@@ -154,7 +158,7 @@ import {
154
158
  createEvent,
155
159
  getGlobalEventBus,
156
160
  getGlobalRegistry
157
- } from "./chunk-P7MYTCE6.js";
161
+ } from "./chunk-RJDJMOX6.js";
158
162
  import {
159
163
  CliDetectionCache,
160
164
  asRecord,
@@ -162,19 +166,19 @@ import {
162
166
  getAvailableClis,
163
167
  sleep,
164
168
  withTimeout
165
- } from "./chunk-NT3KCLT6.js";
169
+ } from "./chunk-SCHD7NZD.js";
166
170
  import {
167
171
  DEFAULTS
168
- } from "./chunk-JCJHQSAY.js";
172
+ } from "./chunk-JLG5AUZB.js";
169
173
  import {
170
174
  getAvailabilityCache,
171
175
  getCliForModelId,
172
176
  resolveFallback
173
- } from "./chunk-T3VD32JY.js";
177
+ } from "./chunk-UXXNNT5D.js";
174
178
  import {
175
179
  generateHyphenId,
176
180
  generateUUID
177
- } from "./chunk-OOFPDA3B.js";
181
+ } from "./chunk-DCXCVEZP.js";
178
182
  import {
179
183
  AGENT_ROUTER_TIMEOUTS,
180
184
  API_TIMEOUTS,
@@ -266,7 +270,7 @@ import {
266
270
  selectStrategyByManifest,
267
271
  toExpertTaskAnalysisResult,
268
272
  withStep
269
- } from "./chunk-QXSR5KPG.js";
273
+ } from "./chunk-GVTXP6F6.js";
270
274
  import {
271
275
  ensureLearningDir,
272
276
  getMetaOutcomesFile,
@@ -26301,7 +26305,7 @@ function execIdFields(executionId) {
26301
26305
  async function populateUnifiedContextOnState(state, options) {
26302
26306
  const taskCandidate = state["task"];
26303
26307
  if (typeof taskCandidate !== "string" || taskCandidate === "") return;
26304
- const { getContextForTask: getContextForTask2, inferTaskCategory: inferTaskCategory2 } = await import("./context-retriever-TIJGFLGO.js");
26308
+ const { getContextForTask: getContextForTask2, inferTaskCategory: inferTaskCategory2 } = await import("./context-retriever-C5C7RFQE.js");
26305
26309
  const category = inferTaskCategory2(taskCandidate);
26306
26310
  const executionId = options?.executionId;
26307
26311
  const execFields = execIdFields(executionId);
@@ -39851,17 +39855,13 @@ function registerExtractSymbolsTool(server, deps) {
39851
39855
 
39852
39856
  // src/mcp/tools/search-usages-tool.ts
39853
39857
  import { readFile as readFile3 } from "fs/promises";
39854
- import { extname as extname3, relative, resolve as resolve9, sep as sep5 } from "path";
39858
+ import { relative, resolve as resolve9, sep as sep5 } from "path";
39855
39859
  import { z as z81 } from "zod";
39856
- import { Lang, parse as parse2 } from "@ast-grep/napi";
39857
39860
  var DEFAULT_USAGES_LIMIT = 50;
39858
39861
  var MAX_USAGES_LIMIT = 500;
39859
39862
  var DEFAULT_USAGES_MAX_DEPTH = 24;
39860
39863
  var MAX_USAGES_MAX_DEPTH = 64;
39861
39864
  var MAX_FILES_SCANNED = 5e3;
39862
- var MAX_SNIPPET_CHARS = 200;
39863
- var IDENTIFIER_RE = /^[A-Za-z_$][A-Za-z0-9_$]*$/;
39864
- var LANG_VALUES = ["typescript", "tsx", "javascript"];
39865
39865
  var SearchUsagesInputSchema = z81.object({
39866
39866
  symbol: z81.string().min(1).max(200).regex(IDENTIFIER_RE, "symbol must be a single JS identifier (letters, digits, _ or $)").describe("Identifier to find usages/call-sites of (a single JS identifier)"),
39867
39867
  path: z81.string().min(1).max(500).optional().describe("Restrict to a single source file (takes precedence over dir)"),
@@ -39874,85 +39874,6 @@ var SearchUsagesInputSchema = z81.object({
39874
39874
  ),
39875
39875
  maxDepth: z81.number().int().min(1).max(MAX_USAGES_MAX_DEPTH).optional().describe(`Directory walk depth for dir scope (default ${String(DEFAULT_USAGES_MAX_DEPTH)}).`)
39876
39876
  });
39877
- var DECLARATION_PARENT_KINDS = /* @__PURE__ */ new Set([
39878
- "function_declaration",
39879
- "generator_function_declaration",
39880
- "class_declaration",
39881
- "interface_declaration",
39882
- "type_alias_declaration",
39883
- "enum_declaration",
39884
- "function_signature",
39885
- "method_definition",
39886
- "abstract_method_signature"
39887
- ]);
39888
- var IMPORT_PARENT_KINDS = /* @__PURE__ */ new Set([
39889
- "import_specifier",
39890
- "namespace_import",
39891
- "import_clause"
39892
- ]);
39893
- function langToNapi(lang) {
39894
- if (lang === "tsx") return Lang.Tsx;
39895
- if (lang === "javascript") return Lang.JavaScript;
39896
- return Lang.TypeScript;
39897
- }
39898
- function escapeRegex2(value) {
39899
- return value.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
39900
- }
39901
- function isDeclaredName(declarator, node) {
39902
- const name = declarator.field("name");
39903
- return name !== null && name.id() === node.id();
39904
- }
39905
- function classifyIdentifier(node) {
39906
- const parent = node.parent();
39907
- if (parent === null) return "reference";
39908
- const pk = String(parent.kind());
39909
- if (DECLARATION_PARENT_KINDS.has(pk)) return null;
39910
- if (pk === "variable_declarator") return isDeclaredName(parent, node) ? null : "reference";
39911
- if (IMPORT_PARENT_KINDS.has(pk)) return "import";
39912
- if (pk === "call_expression") return "call";
39913
- if (pk === "new_expression") return "new";
39914
- return "reference";
39915
- }
39916
- function classifyProperty(node) {
39917
- const member = node.parent();
39918
- const grandparent = member === null ? null : member.parent();
39919
- if (grandparent !== null && String(grandparent.kind()) === "call_expression")
39920
- return "method-call";
39921
- return "reference";
39922
- }
39923
- function toMatch(node, kind, lines) {
39924
- const { start } = node.range();
39925
- const rawLine = lines[start.line] ?? node.text();
39926
- return {
39927
- line: start.line + 1,
39928
- column: start.column + 1,
39929
- kind,
39930
- snippet: rawLine.trim().slice(0, MAX_SNIPPET_CHARS)
39931
- };
39932
- }
39933
- function findUsagesInSource(symbol, src, lang) {
39934
- if (!IDENTIFIER_RE.test(symbol)) return [];
39935
- const root = parse2(langToNapi(lang), src).root();
39936
- const lines = src.split("\n");
39937
- const out = [];
39938
- for (const node of root.findAll(symbol)) {
39939
- const kind = classifyIdentifier(node);
39940
- if (kind !== null) out.push(toMatch(node, kind, lines));
39941
- }
39942
- const propRule = {
39943
- rule: { kind: "property_identifier", regex: `^${escapeRegex2(symbol)}$` }
39944
- };
39945
- for (const node of root.findAll(propRule)) {
39946
- out.push(toMatch(node, classifyProperty(node), lines));
39947
- }
39948
- return out.sort((a, b) => a.line - b.line || a.column - b.column);
39949
- }
39950
- function inferLang(file) {
39951
- const ext = extname3(file).toLowerCase();
39952
- if (ext === ".tsx" || ext === ".jsx") return "tsx";
39953
- if (ext === ".js" || ext === ".mjs" || ext === ".cjs") return "javascript";
39954
- return "typescript";
39955
- }
39956
39877
  function resolveWithinCwd(target) {
39957
39878
  const resolved = resolve9(target);
39958
39879
  const cwdRoot = resolve9(".");
@@ -41885,7 +41806,7 @@ async function tryIssueTriage(task) {
41885
41806
  try {
41886
41807
  const issueMatch = task.match(/github\.com\/([^/]+\/[^/]+)\/issues\/(\d+)/);
41887
41808
  if (issueMatch === null) return null;
41888
- const { createIssueTriage } = await import("./issue-triage-RVDZEM53.js");
41809
+ const { createIssueTriage } = await import("./issue-triage-WWQEY7PL.js");
41889
41810
  const triage = createIssueTriage();
41890
41811
  const owner = issueMatch[1] ?? "";
41891
41812
  const num = issueMatch[2] ?? "";
@@ -41913,7 +41834,7 @@ var VALID_TEMPLATES = /* @__PURE__ */ new Set([
41913
41834
  ]);
41914
41835
  async function classifyWithLLM(task) {
41915
41836
  try {
41916
- const { executeExpert: executeExpert2 } = await import("./expert-bridge-7HQ54XYU.js");
41837
+ const { executeExpert: executeExpert2 } = await import("./expert-bridge-B3EFTAID.js");
41917
41838
  const prompt = [
41918
41839
  "Classify this task into exactly one pipeline template.",
41919
41840
  "Templates: dev (implementation/bug fix/refactor), research (investigate/evaluate/compare),",
@@ -43554,7 +43475,7 @@ var memoryInitPromise = null;
43554
43475
  async function initPipelineMemory() {
43555
43476
  if (cachedMemory !== null) return cachedMemory;
43556
43477
  try {
43557
- const { createSessionMemory: createSessionMemory2 } = await import("./session-memory-TQMLN67N.js");
43478
+ const { createSessionMemory: createSessionMemory2 } = await import("./session-memory-RJZ447UX.js");
43558
43479
  const { getLearningDir } = await import("./learning-persistence-6D5GGT7D.js");
43559
43480
  const mem = createSessionMemory2(getLearningDir());
43560
43481
  mem.startSession(`pipeline-${String(getTimeProvider().now())}`);
@@ -43616,7 +43537,7 @@ function recordRoutingExperience(category, success, durationMs, tokensUsed = 0,
43616
43537
  callRecord(routingMemoryCache);
43617
43538
  return;
43618
43539
  }
43619
- routingMemoryInitPromise ??= import("./routing-memory-INY5DC2P.js").then(({ createRoutingMemory }) => {
43540
+ routingMemoryInitPromise ??= import("./routing-memory-JTNH2BXS.js").then(({ createRoutingMemory }) => {
43620
43541
  routingMemoryCache ??= createRoutingMemory();
43621
43542
  return routingMemoryCache;
43622
43543
  }).catch((error) => {
@@ -43650,7 +43571,7 @@ ${text}` : "";
43650
43571
  }
43651
43572
  async function getWeatherContext() {
43652
43573
  try {
43653
- const { generateWeatherReport: generateWeatherReport2 } = await import("./weather-report-7NZ6D4C7.js");
43574
+ const { generateWeatherReport: generateWeatherReport2 } = await import("./weather-report-ID4ZNUAF.js");
43654
43575
  const report = generateWeatherReport2({ includeAdaptive: true });
43655
43576
  const mappings = "recommendedMappings" in report ? report.recommendedMappings : [];
43656
43577
  if (!Array.isArray(mappings) || mappings.length === 0) return "";
@@ -43668,7 +43589,7 @@ ${lines}
43668
43589
  }
43669
43590
  async function getMemoryContext(task) {
43670
43591
  try {
43671
- const { createSessionMemory: createSessionMemory2 } = await import("./session-memory-TQMLN67N.js");
43592
+ const { createSessionMemory: createSessionMemory2 } = await import("./session-memory-RJZ447UX.js");
43672
43593
  const { getLearningDir } = await import("./learning-persistence-6D5GGT7D.js");
43673
43594
  const memory = createSessionMemory2(getLearningDir(), { maxLearningsInContext: 10 });
43674
43595
  const learnings = memory.searchLearnings(task.slice(0, 200));
@@ -43783,7 +43704,7 @@ ${contextBlock}`;
43783
43704
  const strategy = config.votingStrategy ?? "higher_order";
43784
43705
  await postProgress(config, "Vote", `Running consensus with ${strategy} strategy...`);
43785
43706
  try {
43786
- const { executeVoting } = await import("./consensus-vote-FEDF24T5.js");
43707
+ const { executeVoting } = await import("./consensus-vote-USZFJO2K.js");
43787
43708
  const votingResult = await executeVoting(
43788
43709
  {
43789
43710
  proposal: buildVoteProposal(plan, research),
@@ -44224,7 +44145,7 @@ async function searchCodebaseForTask(task) {
44224
44145
  }
44225
44146
  async function queryResearchRegistry(task) {
44226
44147
  try {
44227
- const { synthesizeResearch: synthesizeResearch2 } = await import("./research-helpers-synthesize-4L6SXYQU.js");
44148
+ const { synthesizeResearch: synthesizeResearch2 } = await import("./research-helpers-synthesize-XSOFXRFK.js");
44228
44149
  const topic = task.split(/[.!?\n]/).filter((s) => s.trim().length > 10)[0]?.trim();
44229
44150
  if (topic === void 0) return null;
44230
44151
  const result = await synthesizeResearch2(topic.slice(0, 50));
@@ -44295,7 +44216,7 @@ function createScanStageWrapper() {
44295
44216
  try {
44296
44217
  const slug = ctx.task.match(/([a-zA-Z0-9._-]+\/[a-zA-Z0-9._-]+)/)?.[1];
44297
44218
  if (slug !== void 0) {
44298
- const { generateSecurityPlan: generateSecurityPlan2 } = await import("./repo-security-plan-YCTKRAGA.js");
44219
+ const { generateSecurityPlan: generateSecurityPlan2 } = await import("./repo-security-plan-IYKDY5PW.js");
44299
44220
  const plan = await generateSecurityPlan2({ repo: slug, maxScanners: 10 });
44300
44221
  const recs = plan.recommendations.slice(0, 5).map((r) => `${r.priority}: ${r.displayName} (${r.category})`).join("; ");
44301
44222
  return output(PIPELINE_STATE_KEYS.FINDINGS, recs, getTimeProvider().now() - start, true);
@@ -47255,7 +47176,7 @@ var GitHubTaskTracker = class {
47255
47176
  cachedProvider = null;
47256
47177
  async getProvider() {
47257
47178
  if (this.cachedProvider !== null) return this.cachedProvider;
47258
- const { createScmProvider } = await import("./factory-RW2ROEDS.js");
47179
+ const { createScmProvider } = await import("./factory-SURRFPSV.js");
47259
47180
  const result = await createScmProvider({ repo: this.config.repo ?? "" });
47260
47181
  if (!result.ok) throw new Error(`SCM provider error: ${result.error.message}`);
47261
47182
  this.cachedProvider = result.value;
@@ -48062,7 +47983,7 @@ async function probeSource(source, includeModelIds) {
48062
47983
  }
48063
47984
  }
48064
47985
  async function defaultSources(includeOpenRouter) {
48065
- const { createAllAdapters: createAllAdapters2 } = await import("./factory-QZZQVDGQ.js");
47986
+ const { createAllAdapters: createAllAdapters2 } = await import("./factory-LKQKU3SD.js");
48066
47987
  const adapters = createAllAdapters2();
48067
47988
  return buildDefaultModelSources(adapters, { includeOpenRouter });
48068
47989
  }
@@ -52133,4 +52054,4 @@ export {
52133
52054
  shutdownFeedbackSubscriber,
52134
52055
  createEventBusBridge
52135
52056
  };
52136
- //# sourceMappingURL=chunk-N7FIUFQL.js.map
52057
+ //# sourceMappingURL=chunk-QMOJJ6A2.js.map