nexus-agents 2.77.6 → 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.
- package/dist/{chunk-MX3NIZGV.js → chunk-35C7VCMT.js} +3 -3
- package/dist/{chunk-RBZKUFNT.js → chunk-M5NSVRK6.js} +35 -2
- package/dist/{chunk-RBZKUFNT.js.map → chunk-M5NSVRK6.js.map} +1 -1
- package/dist/{chunk-ZV4WIG7V.js → chunk-ZHM23HEX.js} +2 -2
- package/dist/cli.js +28 -16
- package/dist/cli.js.map +1 -1
- package/dist/index.js +2 -2
- package/dist/{setup-command-DTJJ73RB.js → setup-command-AXJA4OGF.js} +3 -3
- package/package.json +1 -1
- /package/dist/{chunk-MX3NIZGV.js.map → chunk-35C7VCMT.js.map} +0 -0
- /package/dist/{chunk-ZV4WIG7V.js.map → chunk-ZHM23HEX.js.map} +0 -0
- /package/dist/{setup-command-DTJJ73RB.js.map → setup-command-AXJA4OGF.js.map} +0 -0
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
checkSqlite,
|
|
9
9
|
defaultConfig,
|
|
10
10
|
initDataDirectories
|
|
11
|
-
} from "./chunk-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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
|
|
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 =
|
|
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
|
|
1234
|
-
|
|
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
|
-
|
|
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];
|