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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user