nexus-agents 2.77.7 → 2.77.8

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.
@@ -40,7 +40,7 @@ import {
40
40
  } from "./chunk-GOT7OAL5.js";
41
41
 
42
42
  // src/version.ts
43
- var VERSION = true ? "2.77.7" : "dev";
43
+ var VERSION = true ? "2.77.8" : "dev";
44
44
 
45
45
  // src/config/schemas-core.ts
46
46
  import { z } from "zod";
@@ -2121,7 +2121,7 @@ async function runDoctorFix(result) {
2121
2121
  writeLine2("\u2500".repeat(40));
2122
2122
  let fixCount = 0;
2123
2123
  if (!result.dataDirectory.rootExists || result.dataDirectory.subdirectories.some((d) => !d.exists || !d.writable)) {
2124
- const { runSetup } = await import("./setup-command-F747NURA.js");
2124
+ const { runSetup } = await import("./setup-command-AXJA4OGF.js");
2125
2125
  const setupResult = runSetup({
2126
2126
  skipMcp: true,
2127
2127
  skipRules: true,
@@ -2231,4 +2231,4 @@ export {
2231
2231
  startStdioServer,
2232
2232
  closeServer
2233
2233
  };
2234
- //# sourceMappingURL=chunk-SWHR4ELI.js.map
2234
+ //# sourceMappingURL=chunk-35C7VCMT.js.map
@@ -70,7 +70,7 @@ import {
70
70
  clampTaskTtl,
71
71
  getAvailabilityCache,
72
72
  resolveFallback
73
- } from "./chunk-SWHR4ELI.js";
73
+ } from "./chunk-35C7VCMT.js";
74
74
  import {
75
75
  DEFAULTS
76
76
  } from "./chunk-YQMQSJQK.js";
@@ -50023,4 +50023,4 @@ export {
50023
50023
  detectBackend,
50024
50024
  createTaskTracker
50025
50025
  };
50026
- //# sourceMappingURL=chunk-5NYGTBGE.js.map
50026
+ //# sourceMappingURL=chunk-M5NSVRK6.js.map
@@ -8,7 +8,7 @@ import {
8
8
  checkSqlite,
9
9
  defaultConfig,
10
10
  initDataDirectories
11
- } from "./chunk-SWHR4ELI.js";
11
+ } from "./chunk-35C7VCMT.js";
12
12
  import {
13
13
  probeAllClis
14
14
  } from "./chunk-MV4R2ZIJ.js";
@@ -1948,4 +1948,4 @@ export {
1948
1948
  setupCommand,
1949
1949
  setupCommandAsync
1950
1950
  };
1951
- //# sourceMappingURL=chunk-ECXDPT3L.js.map
1951
+ //# sourceMappingURL=chunk-ZHM23HEX.js.map
package/dist/cli.js CHANGED
@@ -22,7 +22,7 @@ import {
22
22
  import {
23
23
  setupCommandAsync,
24
24
  verifyCommand
25
- } from "./chunk-ECXDPT3L.js";
25
+ } from "./chunk-ZHM23HEX.js";
26
26
  import "./chunk-CM3TORGV.js";
27
27
  import {
28
28
  AuthHandler,
@@ -152,7 +152,7 @@ import {
152
152
  validateCommand,
153
153
  validateWorkflow,
154
154
  wrapInMarkdownFence
155
- } from "./chunk-5NYGTBGE.js";
155
+ } from "./chunk-M5NSVRK6.js";
156
156
  import "./chunk-ED6VQWNG.js";
157
157
  import {
158
158
  resolveToken
@@ -215,7 +215,7 @@ import {
215
215
  loadConfig,
216
216
  runDoctor,
217
217
  validateNexusEnv
218
- } from "./chunk-SWHR4ELI.js";
218
+ } from "./chunk-35C7VCMT.js";
219
219
  import "./chunk-5WHWKY32.js";
220
220
  import {
221
221
  DEFAULTS
@@ -1209,7 +1209,16 @@ function printWorkflowRunResult(result, options = {}) {
1209
1209
  }
1210
1210
  writeLine2("");
1211
1211
  }
1212
- function printWorkflowTemplateList(templates) {
1212
+ function groupTemplatesByCategory(templates) {
1213
+ const byCategory = /* @__PURE__ */ new Map();
1214
+ for (const template of templates) {
1215
+ const existing = byCategory.get(template.category) ?? [];
1216
+ existing.push(template);
1217
+ byCategory.set(template.category, existing);
1218
+ }
1219
+ return byCategory;
1220
+ }
1221
+ function printWorkflowTemplateTable(templates) {
1213
1222
  writeLine2("");
1214
1223
  writeLine2(`${colors.bold}Available Workflow Templates:${colors.reset}`);
1215
1224
  writeLine2("");
@@ -1217,26 +1226,28 @@ function printWorkflowTemplateList(templates) {
1217
1226
  writeLine2(` ${colors.dim}No templates found${colors.reset}`);
1218
1227
  return;
1219
1228
  }
1220
- const byCategory = /* @__PURE__ */ new Map();
1221
- for (const template of templates) {
1222
- const category = template.category;
1223
- const existing = byCategory.get(category) ?? [];
1224
- existing.push(template);
1225
- byCategory.set(category, existing);
1226
- }
1229
+ const byCategory = groupTemplatesByCategory(templates);
1227
1230
  for (const [category, categoryTemplates] of byCategory) {
1228
1231
  writeLine2(` ${colors.cyan}${category}:${colors.reset}`);
1229
1232
  for (const template of categoryTemplates) {
1230
1233
  const builtInTag = template.builtIn ? ` ${colors.dim}(built-in)${colors.reset}` : "";
1231
1234
  writeLine2(` \u2022 ${template.name}${builtInTag}`);
1232
1235
  if (template.description !== void 0) {
1233
- const desc = template.description.split("\n")[0] ?? "";
1234
- writeLine2(` ${colors.dim}${desc.slice(0, 60)}${colors.reset}`);
1236
+ const firstLine = template.description.split("\n")[0] ?? "";
1237
+ const desc = firstLine.length > 60 ? `${firstLine.slice(0, 59)}\u2026` : firstLine;
1238
+ writeLine2(` ${colors.dim}${desc}${colors.reset}`);
1235
1239
  }
1236
1240
  }
1237
1241
  writeLine2("");
1238
1242
  }
1239
1243
  }
1244
+ function printWorkflowTemplateList(templates, options = {}) {
1245
+ if (options.format === "json") {
1246
+ writeLine2(JSON.stringify(templates, null, 2));
1247
+ return;
1248
+ }
1249
+ printWorkflowTemplateTable(templates);
1250
+ }
1240
1251
 
1241
1252
  // src/cli/workflow-run.ts
1242
1253
  function validateInputPath(userPath, allowedRoot) {
@@ -1405,9 +1416,9 @@ async function listWorkflowTemplates() {
1405
1416
  await registry.initialize?.();
1406
1417
  return registry.getAll();
1407
1418
  }
1408
- async function printWorkflowTemplates() {
1419
+ async function printWorkflowTemplates(options = {}) {
1409
1420
  const templates = await listWorkflowTemplates();
1410
- printWorkflowTemplateList(templates);
1421
+ printWorkflowTemplateList(templates, options);
1411
1422
  }
1412
1423
  async function workflowRunCommand(options) {
1413
1424
  const result = await runWorkflowRun(options);
@@ -19698,7 +19709,8 @@ function handleExpertCommand(args) {
19698
19709
  }
19699
19710
  async function handleWorkflowCommand(args) {
19700
19711
  if (args.subcommand === "list") {
19701
- await printWorkflowTemplates();
19712
+ const format = args.options.format === "json" ? "json" : "table";
19713
+ await printWorkflowTemplates({ format });
19702
19714
  process.exit(EXIT_CODES.SUCCESS);
19703
19715
  } else if (args.subcommand === "run") {
19704
19716
  const workflowName = args.positionals[2];