feat(KB-012): add --paused flag to dashboard command

- Add --paused CLI flag to start dashboard in paused mode
- Update runDashboard to accept paused option
- Add comprehensive tests for --paused flag behavior
- Update STANDALONE.md documentation with new flag
- Add changeset for patch release
This commit is contained in:
gsxdsm
2026-03-29 17:48:14 -07:00
parent b1f550ed49
commit d50ee2d98a
5 changed files with 130 additions and 2 deletions

View File

@@ -13,12 +13,18 @@ function openBrowser(url: string): void {
exec(cmd, () => {});
}
export async function runDashboard(port: number, opts: { open?: boolean } = {}) {
export async function runDashboard(port: number, opts: { open?: boolean; paused?: boolean } = {}) {
const cwd = process.cwd();
const store = new TaskStore(cwd);
await store.init();
await store.watch();
// Set enginePaused if starting in paused mode
if (opts.paused) {
await store.updateSettings({ enginePaused: true });
console.log("[engine] Starting in paused mode — automation disabled");
}
// ── Shared concurrency semaphore ──────────────────────────────────
//
// Gates all agentic activities (triage, execution, merge) behind a