(job)
| 618 | } |
| 619 | |
| 620 | function presetDefaults(name, args) { |
| 621 | const [maybeDuration, rest] = splitFirst(args) |
| 622 | const parsed = parseDuration(maybeDuration) |
| 623 | const intervalMs = parsed === null ? 0 : parsed |
| 624 | const extra = parsed === null ? String(args || "").trim() : rest |
| 625 | if (name === "loop-compact") return { intervalMs: intervalMs || parseDuration("200m"), action: extra || "/compact", kind: "compact", name: "compact", immediate: false } |
| 626 | if (name === "loop-command" || name === "loop-cmd") return { intervalMs, action: extra, kind: "command", name: "command", immediate: false } |
| 627 | if (name === "loop-prompt") return { intervalMs, action: extra, kind: "prompt", name: "prompt", immediate: true } |
| 628 | if (name === "loop-ask") return { intervalMs, action: extra, kind: "prompt", name: "ask", immediate: false } |
| 629 | if (name === "loop-shell") return { intervalMs, action: extra, kind: "shell", name: "shell", immediate: false } |
| 630 | if (name === "loop-testfix") return { intervalMs, name: "testfix", safe: true, askNever: true, verifyCommand: extra || "npm test", action: `Run the project tests. Fix failures. Re-run the tests. Test command hint: ${extra || "npm test"}` } |
no test coverage detected