nexus-agents 2.77.7 → 2.77.9

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,7 +8,7 @@ import {
8
8
  checkSqlite,
9
9
  defaultConfig,
10
10
  initDataDirectories
11
- } from "./chunk-SWHR4ELI.js";
11
+ } from "./chunk-OZLCOG3N.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-MZF4DKQJ.js.map
@@ -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.9" : "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-R3HO5FXE.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-OZLCOG3N.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-MZF4DKQJ.js";
26
26
  import "./chunk-CM3TORGV.js";
27
27
  import {
28
28
  AuthHandler,
@@ -33,6 +33,7 @@ import {
33
33
  ImprovementReviewInputSchema,
34
34
  Orchestrator,
35
35
  OrchestratorFactory,
36
+ PaperStatusSchema,
36
37
  PuppeteerOrchestrator,
37
38
  READONLY_POLICY,
38
39
  ResearchDiscoverInputSchema,
@@ -152,7 +153,7 @@ import {
152
153
  validateCommand,
153
154
  validateWorkflow,
154
155
  wrapInMarkdownFence
155
- } from "./chunk-5NYGTBGE.js";
156
+ } from "./chunk-M36XZWG2.js";
156
157
  import "./chunk-ED6VQWNG.js";
157
158
  import {
158
159
  resolveToken
@@ -215,7 +216,7 @@ import {
215
216
  loadConfig,
216
217
  runDoctor,
217
218
  validateNexusEnv
218
- } from "./chunk-SWHR4ELI.js";
219
+ } from "./chunk-OZLCOG3N.js";
219
220
  import "./chunk-5WHWKY32.js";
220
221
  import {
221
222
  DEFAULTS
@@ -1209,7 +1210,16 @@ function printWorkflowRunResult(result, options = {}) {
1209
1210
  }
1210
1211
  writeLine2("");
1211
1212
  }
1212
- function printWorkflowTemplateList(templates) {
1213
+ function groupTemplatesByCategory(templates) {
1214
+ const byCategory = /* @__PURE__ */ new Map();
1215
+ for (const template of templates) {
1216
+ const existing = byCategory.get(template.category) ?? [];
1217
+ existing.push(template);
1218
+ byCategory.set(template.category, existing);
1219
+ }
1220
+ return byCategory;
1221
+ }
1222
+ function printWorkflowTemplateTable(templates) {
1213
1223
  writeLine2("");
1214
1224
  writeLine2(`${colors.bold}Available Workflow Templates:${colors.reset}`);
1215
1225
  writeLine2("");
@@ -1217,26 +1227,28 @@ function printWorkflowTemplateList(templates) {
1217
1227
  writeLine2(` ${colors.dim}No templates found${colors.reset}`);
1218
1228
  return;
1219
1229
  }
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
- }
1230
+ const byCategory = groupTemplatesByCategory(templates);
1227
1231
  for (const [category, categoryTemplates] of byCategory) {
1228
1232
  writeLine2(` ${colors.cyan}${category}:${colors.reset}`);
1229
1233
  for (const template of categoryTemplates) {
1230
1234
  const builtInTag = template.builtIn ? ` ${colors.dim}(built-in)${colors.reset}` : "";
1231
1235
  writeLine2(` \u2022 ${template.name}${builtInTag}`);
1232
1236
  if (template.description !== void 0) {
1233
- const desc = template.description.split("\n")[0] ?? "";
1234
- writeLine2(` ${colors.dim}${desc.slice(0, 60)}${colors.reset}`);
1237
+ const firstLine = template.description.split("\n")[0] ?? "";
1238
+ const desc = firstLine.length > 60 ? `${firstLine.slice(0, 59)}\u2026` : firstLine;
1239
+ writeLine2(` ${colors.dim}${desc}${colors.reset}`);
1235
1240
  }
1236
1241
  }
1237
1242
  writeLine2("");
1238
1243
  }
1239
1244
  }
1245
+ function printWorkflowTemplateList(templates, options = {}) {
1246
+ if (options.format === "json") {
1247
+ writeLine2(JSON.stringify(templates, null, 2));
1248
+ return;
1249
+ }
1250
+ printWorkflowTemplateTable(templates);
1251
+ }
1240
1252
 
1241
1253
  // src/cli/workflow-run.ts
1242
1254
  function validateInputPath(userPath, allowedRoot) {
@@ -1405,9 +1417,9 @@ async function listWorkflowTemplates() {
1405
1417
  await registry.initialize?.();
1406
1418
  return registry.getAll();
1407
1419
  }
1408
- async function printWorkflowTemplates() {
1420
+ async function printWorkflowTemplates(options = {}) {
1409
1421
  const templates = await listWorkflowTemplates();
1410
- printWorkflowTemplateList(templates);
1422
+ printWorkflowTemplateList(templates, options);
1411
1423
  }
1412
1424
  async function workflowRunCommand(options) {
1413
1425
  const result = await runWorkflowRun(options);
@@ -7155,13 +7167,7 @@ var TechniqueStatusSchema = z2.enum([
7155
7167
  "not-started",
7156
7168
  "rejected"
7157
7169
  ]);
7158
- var PaperStatusSchema = z2.enum([
7159
- "implemented",
7160
- "planned",
7161
- "partial",
7162
- "not-started",
7163
- "rejected"
7164
- ]);
7170
+ var PaperStatusSchema2 = PaperStatusSchema;
7165
7171
  var TechniquePrioritySchema = z2.enum(["P1", "P2", "P3", "P4"]).nullable();
7166
7172
  var TechniqueComplexitySchema = z2.enum(["low", "medium", "high"]);
7167
7173
  var RelevanceSchema = z2.enum(["high", "medium", "low"]);
@@ -7209,7 +7215,7 @@ var ResearchPaperSchema = z2.object({
7209
7215
  /** Related GitHub issues */
7210
7216
  related_issues: z2.array(z2.number().int().positive()).optional().default([]),
7211
7217
  /** Implementation status */
7212
- implementation_status: PaperStatusSchema.optional().default("not-started"),
7218
+ implementation_status: PaperStatusSchema2.optional().default("not-started"),
7213
7219
  // ── Quality Assessment (Issue #1571) ──────────────────────────
7214
7220
  /** Citation count from Semantic Scholar (auto-fetched) */
7215
7221
  citation_count: z2.number().nonnegative().optional(),
@@ -19698,7 +19704,8 @@ function handleExpertCommand(args) {
19698
19704
  }
19699
19705
  async function handleWorkflowCommand(args) {
19700
19706
  if (args.subcommand === "list") {
19701
- await printWorkflowTemplates();
19707
+ const format = args.options.format === "json" ? "json" : "table";
19708
+ await printWorkflowTemplates({ format });
19702
19709
  process.exit(EXIT_CODES.SUCCESS);
19703
19710
  } else if (args.subcommand === "run") {
19704
19711
  const workflowName = args.positionals[2];