svamp-cli 0.2.162 → 0.2.163
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/cli.mjs
CHANGED
|
@@ -375,7 +375,7 @@ async function main() {
|
|
|
375
375
|
}), machineId);
|
|
376
376
|
process.exit(0);
|
|
377
377
|
} else if (subcommand === "issue" || subcommand === "issues") {
|
|
378
|
-
const { issueCommand } = await import('./commands-
|
|
378
|
+
const { issueCommand } = await import('./commands-C8uqsoRM.mjs');
|
|
379
379
|
await issueCommand(args.slice(1));
|
|
380
380
|
process.exit(0);
|
|
381
381
|
} else if (subcommand === "workflow" || subcommand === "workflows") {
|
|
@@ -398,7 +398,7 @@ async function main() {
|
|
|
398
398
|
} else if (!subcommand || subcommand === "start") {
|
|
399
399
|
await handleInteractiveCommand();
|
|
400
400
|
} else if (subcommand === "--version" || subcommand === "-v") {
|
|
401
|
-
const pkg = await import('./package-
|
|
401
|
+
const pkg = await import('./package-Dwhojj-r.mjs').catch(() => ({ default: { version: "unknown" } }));
|
|
402
402
|
console.log(`svamp version: ${pkg.default.version}`);
|
|
403
403
|
} else {
|
|
404
404
|
console.error(`Unknown command: ${subcommand}`);
|
|
@@ -240,7 +240,7 @@ ${issue.body}`);
|
|
|
240
240
|
break;
|
|
241
241
|
}
|
|
242
242
|
case "pending": {
|
|
243
|
-
const pending = listIssues(root).filter((i) => i.status === "ready" || i.status === "in_progress");
|
|
243
|
+
const pending = listIssues(root).filter((i) => i.status === "ready" || i.status === "in_progress" || i.status === "backlog" && !i.triaged);
|
|
244
244
|
if (json) console.log(JSON.stringify(pending));
|
|
245
245
|
else out(pending.length ? `${pending.length} pending: ${pending.map((i) => "#" + i.id).join(" ")}` : "No pending issues.");
|
|
246
246
|
process.exit(pending.length ? 1 : 0);
|
|
@@ -275,7 +275,7 @@ ${issue.body}`);
|
|
|
275
275
|
" work <id> [--branch <name>] # mark in-progress (optionally on a branch; merge to main before close)",
|
|
276
276
|
" edit <id> [--title \u2026] [--label x] [--verify-cmd \u2026] [--no-verify] [--status \u2026] [--body \u2026]",
|
|
277
277
|
' comment <id> "<text>" # append a follow-up to the issue',
|
|
278
|
-
" pending # exit 0 if no
|
|
278
|
+
" pending # exit 0 if no actionable issues: ready, in_progress, or untriaged backlog (loop oracle)",
|
|
279
279
|
' search "<query>" [--json]'
|
|
280
280
|
].join("\n"));
|
|
281
281
|
break;
|