svamp-cli 0.2.188 → 0.2.192
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-Cr7u14UX.mjs');
|
|
379
379
|
await issueCommand(args.slice(1));
|
|
380
380
|
process.exit(0);
|
|
381
381
|
} else if (subcommand === "workflow" || subcommand === "workflows") {
|
|
@@ -394,7 +394,7 @@ async function main() {
|
|
|
394
394
|
} else if (!subcommand || subcommand === "start") {
|
|
395
395
|
await handleInteractiveCommand();
|
|
396
396
|
} else if (subcommand === "--version" || subcommand === "-v") {
|
|
397
|
-
const pkg = await import('./package-
|
|
397
|
+
const pkg = await import('./package-C37JCX0V.mjs').catch(() => ({ default: { version: "unknown" } }));
|
|
398
398
|
console.log(`svamp version: ${pkg.default.version}`);
|
|
399
399
|
} else {
|
|
400
400
|
console.error(`Unknown command: ${subcommand}`);
|
|
@@ -312,18 +312,33 @@ ${tail}
|
|
|
312
312
|
const topic = positional(rest)[0];
|
|
313
313
|
if (topic === "triage") {
|
|
314
314
|
out([
|
|
315
|
-
"TRIAGE
|
|
316
|
-
"
|
|
317
|
-
"
|
|
315
|
+
"TRIAGE like a thoughtful human reviewer \u2014 turn a raw user post into the RIGHT outcome, which is",
|
|
316
|
+
'not always "a ready inline issue". First READ it (svamp issue show <id> \u2014 the original text is',
|
|
317
|
+
"preserved separately), then DECIDE THE DISPOSITION:",
|
|
318
|
+
"",
|
|
319
|
+
" A. NOT-AN-ISSUE? Resolve directly instead of leaving a stale item:",
|
|
320
|
+
" - Already done / duplicate / obsolete \u2192 `svamp issue close <id>` with a one-line why (cite the",
|
|
321
|
+
" commit/PR or the issue it duplicates).",
|
|
322
|
+
" - A question you can just answer \u2192 reply, then close.",
|
|
323
|
+
" - Belongs to another session/repo \u2192 say where it should go (and route it), then close/redirect.",
|
|
324
|
+
" B. UNDERSPECIFIED? Do not guess. Enrich from the codebase where you can, and CONFIRM with the user",
|
|
325
|
+
" for anything genuinely ambiguous (ask 1-2 sharp questions) BEFORE marking it ready.",
|
|
326
|
+
" C. SPLIT if the post bundles several independent asks: `svamp issue add` one per piece (carry the",
|
|
327
|
+
" relevant context), triage each, keep the original as the primary.",
|
|
328
|
+
" D. AUTOMATION: if it implies running on a schedule/event, `svamp workflow add` it (instead of / in",
|
|
329
|
+
" addition to an issue).",
|
|
330
|
+
"",
|
|
331
|
+
" Once it IS a real, actionable issue, set crew-vs-inline by SIZE + INTERFERENCE:",
|
|
332
|
+
" - --inline \u2192 small, low-risk, self-contained: work it in THIS session.",
|
|
333
|
+
" - --crew \u2192 substantial, OR likely to interfere with this session's working tree / long-running",
|
|
334
|
+
" work, OR the user asked for a separate branch: an isolated worktree child does it.",
|
|
335
|
+
" Rule of thumb: if you would not want it half-done in your working tree mid-review, use --crew.",
|
|
336
|
+
" Then specify it:",
|
|
318
337
|
' svamp issue triage <id> --title "<concise title>" [--label <tag>]... \\',
|
|
319
338
|
` [--inline | --crew] [--verify-cmd "<pass/fail cmd>" | --verify "<how we know it's done>"] \\`,
|
|
320
339
|
' [--body "<expanded description>"]',
|
|
321
|
-
" - inline = work it in this session; crew = isolated worktree child.",
|
|
322
340
|
" - verify-cmd = a real pass/fail command (oracle); --verify = an agent/human criterion.",
|
|
323
|
-
"
|
|
324
|
-
" each extra piece (carry over the relevant context) and triage each; keep the original as the primary.",
|
|
325
|
-
" 4. If it implies running on a schedule/event, also `svamp workflow add` it.",
|
|
326
|
-
" Then reply with a one-line summary."
|
|
341
|
+
" Be smart and helpful \u2014 match the disposition to what the user actually needs. Reply with a one-line summary."
|
|
327
342
|
].join("\n"));
|
|
328
343
|
} else if (topic === "work") {
|
|
329
344
|
out([
|