diff --git a/crates/miyabi-cli/src/main.rs b/crates/miyabi-cli/src/main.rs index 3279d2d..9c9c103 100644 --- a/crates/miyabi-cli/src/main.rs +++ b/crates/miyabi-cli/src/main.rs @@ -2132,6 +2132,132 @@ miyabi-gate gate dream # Extract learnings from event log miyabi-gate gate dream --auto # Also write High learnings to docs/ and update SKILL.md miyabi-gate gate serve # Web dashboard at localhost:4848 ``` + +## Command Reference + +### init + Initialize project memory in the current repo. + miyabi-gate gate init + +### register + Register a new task. Creates an entry in tasks.json. + miyabi-gate gate register --issue --title "Title" + miyabi-gate gate register --issue --title "Title" --completion-mode manual + miyabi-gate gate register --issue --title "Title" --dependencies dep-1,dep-2 + miyabi-gate gate register --issue --title "Title" --no-bus + Options: + --issue GitHub issue number (required, 0 = auto-create) + --title Task title (required) + --task-id Explicit ID (default: issue-N) + --dependencies Comma-separated hard dependency task IDs + --soft-dependencies Comma-separated soft dependency task IDs + --priority Priority score (default: 0) + --completion-mode github-pr (default) | manual | external-op + --no-bus Skip skill-bus auto-enqueue + +### impact + Record impact analysis for a task. + miyabi-gate gate impact --risk low --symbols 3 + miyabi-gate gate impact --risk high --symbols 12 --approve + miyabi-gate gate impact --risk medium --symbols 5 --depth1 "src/a.rs,src/b.rs" + Options: + --risk low | medium | high | critical + --symbols Number of affected symbols + --approve Required for high/critical risk + --depth1 Comma-separated depth-1 impact files + --analyzed-commit Git commit used for analysis + --input-hash Hash of analysis input + +### assign + Acquire file locks and start implementation. + miyabi-gate gate assign --agent codex --node macbook --files "src/main.rs,src/lib.rs" + Options: + --agent Agent name (required) + --node Machine name (required) + --files Comma-separated file paths to lock (required) + +### branch + Record branch creation. + miyabi-gate gate branch feature/issue-45-auth + +### pr + Record PR creation. + miyabi-gate gate pr 88 + +### merge + Record merge verification. Releases locks and unblocks dependents. + miyabi-gate gate merge <40-char-SHA> + +### status + Show task status. + miyabi-gate gate status # All tasks + miyabi-gate gate status # One task + miyabi-gate gate status --format json + +### locks + List active file locks. + miyabi-gate gate locks + miyabi-gate gate locks --format json + +### dag + Show DAG dependency levels. + miyabi-gate gate dag + +### dispatchable + Show tasks ready to be worked on (dependencies resolved, no lock). + miyabi-gate gate dispatchable + miyabi-gate gate dispatchable --format json + +### attach + View context attachments for a task. + miyabi-gate gate attach + miyabi-gate gate attach --format json + +### refresh + Force-refresh context attachments (clears cache). + miyabi-gate gate refresh + +### verify-merge + Verify merge state via GitHub API. + miyabi-gate gate verify-merge --repo owner/repo + +### force-unlock + Emergency: release a lock without completing the task. + miyabi-gate gate force-unlock --reason "why" --operator "name" + +### manual-complete + Complete a task without merge verification (for doc/ops tasks). + miyabi-gate gate manual-complete --reason "why" --operator "name" + +### dream + Analyze event logs and extract learnings. + miyabi-gate gate dream + miyabi-gate gate dream --since 24h + miyabi-gate gate dream --auto + miyabi-gate gate dream --auto --vault-path /path/to/obsidian + Options: + --since Filter events (e.g. 24h, 7d, 30m) + --auto Write High learnings to docs/ + update SKILL.md + --vault-path Obsidian vault for exported learnings + +### heartbeat + Renew lock lease heartbeats. + miyabi-gate gate heartbeat --all + +### serve + Start web dashboard. + miyabi-gate gate serve + miyabi-gate gate serve --port 8080 + Options: + --port Port number (default: 4848) + +### guide + Print this guide. + miyabi-gate gate guide + +### Global options (apply to all gate commands) + --format Output format (default: text) + --store-path Path to tasks.json (default: project_memory/tasks.json) "#; const POLARIS_DASHBOARD_HTML: &str = r##"