nexus-agents 3.5.0 → 3.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.
@@ -8,10 +8,11 @@ import {
8
8
  CodebaseIndex,
9
9
  DEFAULT_INDEX_MAX_DEPTH,
10
10
  MAX_INDEX_MAX_DEPTH,
11
- extractSymbolIndex,
11
+ SUPPORTED_EXTENSIONS,
12
+ extractSymbolIndexResult,
12
13
  extractSymbols,
13
14
  findSourceFiles
14
- } from "./chunk-YF35FKKD.js";
15
+ } from "./chunk-BQTMMLQQ.js";
15
16
  import {
16
17
  FINDING_SEVERITY_LEVELS,
17
18
  SARIF_LEVEL_MAP,
@@ -21,7 +22,7 @@ import {
21
22
  DEFAULT_TASK_TTL_MS,
22
23
  DEFAULT_TOOL_RATE_LIMITS,
23
24
  clampTaskTtl
24
- } from "./chunk-3EIACKNR.js";
25
+ } from "./chunk-6ZOZYECZ.js";
25
26
  import {
26
27
  executeExpert
27
28
  } from "./chunk-GVLDWGSK.js";
@@ -20780,7 +20781,7 @@ import * as fs2 from "fs/promises";
20780
20781
  import * as path2 from "path";
20781
20782
  import * as yaml from "yaml";
20782
20783
  var MAX_FILE_SIZE_BYTES = 1024 * 1024;
20783
- var SUPPORTED_EXTENSIONS = [".yaml", ".yml", ".json"];
20784
+ var SUPPORTED_EXTENSIONS2 = [".yaml", ".yml", ".json"];
20784
20785
  function validatePath(userPath, allowedRoot) {
20785
20786
  const resolved = resolveInsideRoot(userPath, allowedRoot);
20786
20787
  if (resolved === null) {
@@ -20912,10 +20913,10 @@ async function loadWorkflowFile(filePath, allowedRoot = process.cwd()) {
20912
20913
  }
20913
20914
  const validatedPath = pathValidation.value;
20914
20915
  const ext = path2.extname(validatedPath).toLowerCase();
20915
- if (!SUPPORTED_EXTENSIONS.includes(ext)) {
20916
+ if (!SUPPORTED_EXTENSIONS2.includes(ext)) {
20916
20917
  return err(
20917
20918
  new ParseError(
20918
- `Unsupported file extension: ${ext}. Supported: ${SUPPORTED_EXTENSIONS.join(", ")}`
20919
+ `Unsupported file extension: ${ext}. Supported: ${SUPPORTED_EXTENSIONS2.join(", ")}`
20919
20920
  )
20920
20921
  );
20921
20922
  }
@@ -41741,7 +41742,7 @@ function registerSearchCodebaseTool(server, deps) {
41741
41742
  }
41742
41743
 
41743
41744
  // src/mcp/tools/extract-symbols-tool.ts
41744
- import { resolve as resolve8, sep as sep4 } from "path";
41745
+ import { extname as extname3, resolve as resolve8, sep as sep4 } from "path";
41745
41746
  import { z as z81 } from "zod";
41746
41747
  var DEFAULT_EXTRACT_MAX_CHARS = 2e4;
41747
41748
  var DEFAULT_EXTRACT_MAX_SYMBOLS = 200;
@@ -41857,11 +41858,11 @@ async function extractSymbolsHandler(args, ctx) {
41857
41858
  );
41858
41859
  return toolSuccess(output2);
41859
41860
  }
41860
- const index = await extractSymbolIndex(resolvedPath);
41861
- if (index === "") {
41862
- return toolSuccess("No symbols found (file may not be TypeScript/JavaScript)");
41861
+ const result = await extractSymbolIndexResult(resolvedPath);
41862
+ if (result.kind === "empty") {
41863
+ return toolSuccess(emptyIndexMessage(result.reason, resolvedPath));
41863
41864
  }
41864
- return toolSuccess(index);
41865
+ return toolSuccess(result.index);
41865
41866
  } catch (caught) {
41866
41867
  const e = caught instanceof Error ? caught : new Error(String(caught));
41867
41868
  ctx.logger.error("Symbol extraction failed", e);
@@ -41871,6 +41872,14 @@ async function extractSymbolsHandler(args, ctx) {
41871
41872
  });
41872
41873
  }
41873
41874
  }
41875
+ function emptyIndexMessage(reason, filePath) {
41876
+ if (reason === "unsupported") {
41877
+ const ext = extname3(filePath).toLowerCase();
41878
+ const shown = ext === "" ? "(no extension)" : ext;
41879
+ return `Not parsed: extract_symbols cannot read ${shown} files. Supported: ${SUPPORTED_EXTENSIONS.join(", ")}. This says nothing about whether the file contains symbols.`;
41880
+ }
41881
+ return "Parsed successfully; no local declarations found. A re-export barrel (`export { X } from ...`) reports zero symbols because re-exports declare nothing locally.";
41882
+ }
41874
41883
  function registerExtractSymbolsTool(server, deps) {
41875
41884
  const logger58 = deps.logger ?? createLogger({ tool: "extract_symbols" });
41876
41885
  const toolSchema = {
@@ -46210,7 +46219,7 @@ function createScaffoldStageWrapper() {
46210
46219
  }
46211
46220
  async function searchCodebaseForTask(task) {
46212
46221
  try {
46213
- const { CodebaseIndex: CodebaseIndex2 } = await import("./codebase-search-LUF5YJLQ.js");
46222
+ const { CodebaseIndex: CodebaseIndex2 } = await import("./codebase-search-AATGEN2H.js");
46214
46223
  const index = new CodebaseIndex2(process.cwd());
46215
46224
  const terms = task.toLowerCase().split(/\s+/).filter((w) => w.length > 4).slice(0, 3);
46216
46225
  if (terms.length === 0) return null;
@@ -54163,4 +54172,4 @@ export {
54163
54172
  shutdownFeedbackSubscriber,
54164
54173
  createEventBusBridge
54165
54174
  };
54166
- //# sourceMappingURL=chunk-DDY7JDTZ.js.map
54175
+ //# sourceMappingURL=chunk-6H5AM5SG.js.map