nexus-agents 2.165.0 → 2.165.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.
@@ -18,7 +18,7 @@ import {
18
18
  DEFAULT_TASK_TTL_MS,
19
19
  DEFAULT_TOOL_RATE_LIMITS,
20
20
  clampTaskTtl
21
- } from "./chunk-SAXMQ7TE.js";
21
+ } from "./chunk-S6QSNP67.js";
22
22
  import {
23
23
  executeExpert
24
24
  } from "./chunk-U43BUJSN.js";
@@ -51826,4 +51826,4 @@ export {
51826
51826
  shutdownFeedbackSubscriber,
51827
51827
  createEventBusBridge
51828
51828
  };
51829
- //# sourceMappingURL=chunk-PKSBCVNJ.js.map
51829
+ //# sourceMappingURL=chunk-DPV7TCNP.js.map
@@ -8,7 +8,7 @@ import {
8
8
  checkSqlite,
9
9
  defaultConfig,
10
10
  initDataDirectories
11
- } from "./chunk-SAXMQ7TE.js";
11
+ } from "./chunk-S6QSNP67.js";
12
12
  import {
13
13
  BUILT_IN_EXPERTS
14
14
  } from "./chunk-ZM4O442V.js";
@@ -2001,4 +2001,4 @@ export {
2001
2001
  setupCommand,
2002
2002
  setupCommandAsync
2003
2003
  };
2004
- //# sourceMappingURL=chunk-34XRZV2Q.js.map
2004
+ //# sourceMappingURL=chunk-FFPFN4W2.js.map
@@ -43,7 +43,7 @@ import {
43
43
  } from "./chunk-DHVMSIT5.js";
44
44
 
45
45
  // src/version.ts
46
- var VERSION = true ? "2.165.0" : "dev";
46
+ var VERSION = true ? "2.165.1" : "dev";
47
47
 
48
48
  // src/config/schemas-core.ts
49
49
  import { z } from "zod";
@@ -2159,7 +2159,7 @@ async function runDoctorFix(result) {
2159
2159
  writeLine2("\u2500".repeat(40));
2160
2160
  let fixCount = 0;
2161
2161
  if (!result.dataDirectory.rootExists || result.dataDirectory.subdirectories.some((d) => !d.exists || !d.writable)) {
2162
- const { runSetup } = await import("./setup-command-LUYHP5UY.js");
2162
+ const { runSetup } = await import("./setup-command-3SVR247D.js");
2163
2163
  const setupResult = runSetup({
2164
2164
  skipMcp: true,
2165
2165
  skipRules: true,
@@ -2272,4 +2272,4 @@ export {
2272
2272
  startStdioServer,
2273
2273
  closeServer
2274
2274
  };
2275
- //# sourceMappingURL=chunk-SAXMQ7TE.js.map
2275
+ //# sourceMappingURL=chunk-S6QSNP67.js.map
package/dist/cli.js CHANGED
@@ -22,7 +22,7 @@ import "./chunk-SF2AK3JB.js";
22
22
  import {
23
23
  setupCommandAsync,
24
24
  verifyCommand
25
- } from "./chunk-34XRZV2Q.js";
25
+ } from "./chunk-FFPFN4W2.js";
26
26
  import "./chunk-2255SARF.js";
27
27
  import {
28
28
  AuthHandler,
@@ -142,7 +142,7 @@ import {
142
142
  validateCommand,
143
143
  validateWorkflow,
144
144
  wrapInMarkdownFence
145
- } from "./chunk-PKSBCVNJ.js";
145
+ } from "./chunk-DPV7TCNP.js";
146
146
  import "./chunk-2UMMVKUW.js";
147
147
  import "./chunk-YOFRUVPJ.js";
148
148
  import "./chunk-HFOQKCD2.js";
@@ -170,7 +170,7 @@ import {
170
170
  loadConfig,
171
171
  runDoctor,
172
172
  validateNexusEnv
173
- } from "./chunk-SAXMQ7TE.js";
173
+ } from "./chunk-S6QSNP67.js";
174
174
  import "./chunk-FKOWIKR4.js";
175
175
  import {
176
176
  shutdownExpertBridge
@@ -20749,6 +20749,50 @@ function printResearchUsage() {
20749
20749
  process.stdout.write(" prioritize Rank actionable techniques by priority\n");
20750
20750
  }
20751
20751
 
20752
+ // src/cli-command-suggester.ts
20753
+ var MAX_SUGGESTIONS = 3;
20754
+ var MAX_ABSOLUTE_DISTANCE = 2;
20755
+ var RELATIVE_DISTANCE_RATIO = 0.4;
20756
+ function suggestCommand(input, names) {
20757
+ const needle = input.trim().toLowerCase();
20758
+ if (needle.length === 0) return [];
20759
+ const ceiling = Math.min(
20760
+ MAX_ABSOLUTE_DISTANCE,
20761
+ Math.floor(needle.length * RELATIVE_DISTANCE_RATIO)
20762
+ );
20763
+ if (ceiling < 1) return [];
20764
+ const scored = [];
20765
+ for (const name of names) {
20766
+ const distance = levenshtein(needle, name.toLowerCase());
20767
+ if (distance === 0) continue;
20768
+ if (distance <= ceiling) {
20769
+ scored.push({ name, distance });
20770
+ }
20771
+ }
20772
+ scored.sort((a, b) => a.distance - b.distance || a.name.localeCompare(b.name));
20773
+ const seen = /* @__PURE__ */ new Set();
20774
+ const result = [];
20775
+ for (const candidate of scored) {
20776
+ if (seen.has(candidate.name)) continue;
20777
+ seen.add(candidate.name);
20778
+ result.push(candidate.name);
20779
+ if (result.length >= MAX_SUGGESTIONS) break;
20780
+ }
20781
+ return result;
20782
+ }
20783
+ function catalogCommandNames() {
20784
+ return COMMAND_CATALOG.map((e) => e.command).filter((c) => c !== "(default)");
20785
+ }
20786
+ function formatUnknownCommandMessage(input, names) {
20787
+ const suggestions = suggestCommand(input, names);
20788
+ const lines = [`Unknown command '${input}'.`];
20789
+ if (suggestions.length > 0) {
20790
+ lines.push(`Did you mean: ${suggestions.join(", ")}?`);
20791
+ }
20792
+ lines.push('Run "nexus-agents --help" for usage information.');
20793
+ return lines.join("\n");
20794
+ }
20795
+
20752
20796
  // src/cli-commands-handlers-complex.ts
20753
20797
  async function handleConfigInit(args) {
20754
20798
  const configOpts = {
@@ -20846,6 +20890,23 @@ var MCP_EQUIVALENTS = {
20846
20890
  "expert create": "create_expert",
20847
20891
  "expert execute": "execute_expert"
20848
20892
  };
20893
+ var IMPLEMENTED_SUBCOMMANDS = {
20894
+ expert: ["list"],
20895
+ workflow: ["list", "run"]
20896
+ };
20897
+ var TRACKING_ISSUES_URL = "https://github.com/nexus-substrate/nexus-agents/issues";
20898
+ function writeSubcommandSuggestion(command) {
20899
+ const [topLevel, ...subParts] = command.split(" ");
20900
+ const subcommand = subParts.join(" ");
20901
+ if (topLevel === void 0 || subcommand.length === 0) return;
20902
+ const validSubcommands = IMPLEMENTED_SUBCOMMANDS[topLevel];
20903
+ if (validSubcommands === void 0) return;
20904
+ const suggestions = suggestCommand(subcommand, validSubcommands);
20905
+ if (suggestions.length === 0) return;
20906
+ const rendered = suggestions.map((sub) => `${topLevel} ${sub}`).join(", ");
20907
+ process.stderr.write(`Did you mean: ${rendered}?
20908
+ `);
20909
+ }
20849
20910
  function handleUnimplementedCommand(command) {
20850
20911
  const equiv = MCP_EQUIVALENTS[command];
20851
20912
  process.stderr.write(`The '${command}' CLI subcommand is not yet implemented.
@@ -20856,6 +20917,9 @@ function handleUnimplementedCommand(command) {
20856
20917
  `
20857
20918
  );
20858
20919
  }
20920
+ writeSubcommandSuggestion(command);
20921
+ process.stderr.write(`Track or request this command: ${TRACKING_ISSUES_URL}
20922
+ `);
20859
20923
  process.stderr.write('Run "nexus-agents --help" for available options.\n');
20860
20924
  }
20861
20925
  function handleExpertCommand(args) {
@@ -25636,50 +25700,6 @@ async function dispatchCommand(args) {
25636
25700
  }
25637
25701
  }
25638
25702
 
25639
- // src/cli-command-suggester.ts
25640
- var MAX_SUGGESTIONS = 3;
25641
- var MAX_ABSOLUTE_DISTANCE = 2;
25642
- var RELATIVE_DISTANCE_RATIO = 0.4;
25643
- function suggestCommand(input, names) {
25644
- const needle = input.trim().toLowerCase();
25645
- if (needle.length === 0) return [];
25646
- const ceiling = Math.min(
25647
- MAX_ABSOLUTE_DISTANCE,
25648
- Math.floor(needle.length * RELATIVE_DISTANCE_RATIO)
25649
- );
25650
- if (ceiling < 1) return [];
25651
- const scored = [];
25652
- for (const name of names) {
25653
- const distance = levenshtein(needle, name.toLowerCase());
25654
- if (distance === 0) continue;
25655
- if (distance <= ceiling) {
25656
- scored.push({ name, distance });
25657
- }
25658
- }
25659
- scored.sort((a, b) => a.distance - b.distance || a.name.localeCompare(b.name));
25660
- const seen = /* @__PURE__ */ new Set();
25661
- const result = [];
25662
- for (const candidate of scored) {
25663
- if (seen.has(candidate.name)) continue;
25664
- seen.add(candidate.name);
25665
- result.push(candidate.name);
25666
- if (result.length >= MAX_SUGGESTIONS) break;
25667
- }
25668
- return result;
25669
- }
25670
- function catalogCommandNames() {
25671
- return COMMAND_CATALOG.map((e) => e.command).filter((c) => c !== "(default)");
25672
- }
25673
- function formatUnknownCommandMessage(input, names) {
25674
- const suggestions = suggestCommand(input, names);
25675
- const lines = [`Unknown command '${input}'.`];
25676
- if (suggestions.length > 0) {
25677
- lines.push(`Did you mean: ${suggestions.join(", ")}?`);
25678
- }
25679
- lines.push('Run "nexus-agents --help" for usage information.');
25680
- return lines.join("\n");
25681
- }
25682
-
25683
25703
  // src/cli.ts
25684
25704
  function determineCommand(options, positionals) {
25685
25705
  const firstArg = positionals[0];