@ambystech/ambykit 1.2.0 → 1.3.1
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/CHANGELOG.md +66 -1
- package/README.md +9 -4
- package/dist/cli/activity.d.ts +16 -0
- package/dist/cli/activity.js +47 -0
- package/dist/cli/activity.js.map +1 -0
- package/dist/cli/analyze.d.ts +1 -1
- package/dist/cli/analyze.js +18 -5
- package/dist/cli/analyze.js.map +1 -1
- package/dist/cli/base-command.js +6 -0
- package/dist/cli/base-command.js.map +1 -1
- package/dist/cli/check.js +19 -1
- package/dist/cli/check.js.map +1 -1
- package/dist/cli/dashboard.d.ts +14 -3
- package/dist/cli/dashboard.js +189 -31
- package/dist/cli/dashboard.js.map +1 -1
- package/dist/cli/index.js +4 -0
- package/dist/cli/index.js.map +1 -1
- package/dist/cli/io/fsops.d.ts +5 -0
- package/dist/cli/io/fsops.js +8 -1
- package/dist/cli/io/fsops.js.map +1 -1
- package/dist/cli/io/version-check.js.map +1 -1
- package/dist/cli/lane.d.ts +20 -0
- package/dist/cli/lane.js +396 -0
- package/dist/cli/lane.js.map +1 -0
- package/dist/cli/sync.d.ts +7 -1
- package/dist/cli/sync.js +30 -2
- package/dist/cli/sync.js.map +1 -1
- package/dist/cli/ui/banner.js.map +1 -1
- package/dist/cli/ui/capabilities.d.ts +2 -0
- package/dist/cli/ui/capabilities.js +9 -0
- package/dist/cli/ui/capabilities.js.map +1 -1
- package/dist/cli/ui/dashboard/agent-badge.d.ts +25 -0
- package/dist/cli/ui/dashboard/agent-badge.js +95 -0
- package/dist/cli/ui/dashboard/agent-badge.js.map +1 -0
- package/dist/cli/ui/dashboard/attention.js.map +1 -1
- package/dist/cli/ui/dashboard/cards.d.ts +2 -0
- package/dist/cli/ui/dashboard/cards.js +7 -4
- package/dist/cli/ui/dashboard/cards.js.map +1 -1
- package/dist/cli/ui/dashboard/empty-state.d.ts +12 -0
- package/dist/cli/ui/dashboard/empty-state.js +22 -0
- package/dist/cli/ui/dashboard/empty-state.js.map +1 -0
- package/dist/cli/ui/dashboard/feature-chart.d.ts +11 -2
- package/dist/cli/ui/dashboard/feature-chart.js +26 -8
- package/dist/cli/ui/dashboard/feature-chart.js.map +1 -1
- package/dist/cli/ui/dashboard/feature-view.d.ts +13 -2
- package/dist/cli/ui/dashboard/feature-view.js +50 -2
- package/dist/cli/ui/dashboard/feature-view.js.map +1 -1
- package/dist/cli/ui/dashboard/help-overlay.d.ts +12 -0
- package/dist/cli/ui/dashboard/help-overlay.js +97 -0
- package/dist/cli/ui/dashboard/help-overlay.js.map +1 -0
- package/dist/cli/ui/dashboard/live-indicator.d.ts +12 -0
- package/dist/cli/ui/dashboard/live-indicator.js +24 -0
- package/dist/cli/ui/dashboard/live-indicator.js.map +1 -0
- package/dist/cli/ui/dashboard/live-tokens.d.ts +866 -0
- package/dist/cli/ui/dashboard/live-tokens.js +867 -0
- package/dist/cli/ui/dashboard/live-tokens.js.map +1 -0
- package/dist/cli/ui/dashboard/render-overview.d.ts +19 -1
- package/dist/cli/ui/dashboard/render-overview.js +46 -11
- package/dist/cli/ui/dashboard/render-overview.js.map +1 -1
- package/dist/cli/ui/dashboard/story-detail.d.ts +31 -0
- package/dist/cli/ui/dashboard/story-detail.js +109 -0
- package/dist/cli/ui/dashboard/story-detail.js.map +1 -0
- package/dist/cli/ui/dashboard/up-next.js.map +1 -1
- package/dist/cli/ui/dashboard/worktrees-panel.d.ts +31 -0
- package/dist/cli/ui/dashboard/worktrees-panel.js +118 -0
- package/dist/cli/ui/dashboard/worktrees-panel.js.map +1 -0
- package/dist/cli/ui/interactive/agent-scan.d.ts +25 -0
- package/dist/cli/ui/interactive/agent-scan.js +85 -0
- package/dist/cli/ui/interactive/agent-scan.js.map +1 -0
- package/dist/cli/ui/interactive/fullscreen.d.ts +12 -0
- package/dist/cli/ui/interactive/fullscreen.js +22 -2
- package/dist/cli/ui/interactive/fullscreen.js.map +1 -1
- package/dist/cli/ui/interactive/live.d.ts +55 -0
- package/dist/cli/ui/interactive/live.js +166 -0
- package/dist/cli/ui/interactive/live.js.map +1 -0
- package/dist/cli/ui/interactive/overview.d.ts +44 -9
- package/dist/cli/ui/interactive/overview.js +199 -30
- package/dist/cli/ui/interactive/overview.js.map +1 -1
- package/dist/cli/ui/interactive/prompt.d.ts +17 -2
- package/dist/cli/ui/interactive/prompt.js +39 -9
- package/dist/cli/ui/interactive/prompt.js.map +1 -1
- package/dist/cli/ui/progress.js.map +1 -1
- package/dist/cli/ui/types.d.ts +5 -0
- package/dist/core/activity.d.ts +102 -0
- package/dist/core/activity.js +166 -0
- package/dist/core/activity.js.map +1 -0
- package/dist/core/agents.d.ts +45 -0
- package/dist/core/agents.js +78 -0
- package/dist/core/agents.js.map +1 -0
- package/dist/core/analyze.d.ts +6 -0
- package/dist/core/analyze.js +11 -2
- package/dist/core/analyze.js.map +1 -1
- package/dist/core/checkouts.d.ts +54 -0
- package/dist/core/checkouts.js +200 -0
- package/dist/core/checkouts.js.map +1 -0
- package/dist/core/command-spec.js.map +1 -1
- package/dist/core/config.js +6 -0
- package/dist/core/config.js.map +1 -1
- package/dist/core/dashboard.d.ts +13 -0
- package/dist/core/dashboard.js +26 -0
- package/dist/core/dashboard.js.map +1 -1
- package/dist/core/emit.d.ts +5 -0
- package/dist/core/emit.js +46 -1
- package/dist/core/emit.js.map +1 -1
- package/dist/core/features.d.ts +5 -1
- package/dist/core/features.js +8 -6
- package/dist/core/features.js.map +1 -1
- package/dist/core/git.d.ts +7 -2
- package/dist/core/git.js +15 -1
- package/dist/core/git.js.map +1 -1
- package/dist/core/lanes.d.ts +116 -0
- package/dist/core/lanes.js +225 -0
- package/dist/core/lanes.js.map +1 -0
- package/dist/core/legacy.d.ts +10 -0
- package/dist/core/legacy.js +35 -0
- package/dist/core/legacy.js.map +1 -0
- package/dist/core/merge.js.map +1 -1
- package/dist/core/overview-types.d.ts +29 -0
- package/dist/core/overview.js +7 -1
- package/dist/core/overview.js.map +1 -1
- package/dist/core/paths.js.map +1 -1
- package/dist/core/rules.js +2 -2
- package/dist/core/types.d.ts +10 -0
- package/dist/core/worktree.d.ts +8 -0
- package/dist/core/worktree.js +19 -1
- package/dist/core/worktree.js.map +1 -1
- package/dist/emitters/antigravity-cli.d.ts +3 -2
- package/dist/emitters/antigravity-cli.js +3 -2
- package/dist/emitters/antigravity-cli.js.map +1 -1
- package/dist/emitters/antigravity.d.ts +8 -9
- package/dist/emitters/antigravity.js +9 -11
- package/dist/emitters/antigravity.js.map +1 -1
- package/dist/emitters/augment.d.ts +14 -0
- package/dist/emitters/augment.js +20 -0
- package/dist/emitters/augment.js.map +1 -0
- package/dist/emitters/base-emitter.d.ts +6 -0
- package/dist/emitters/base-emitter.js +12 -3
- package/dist/emitters/base-emitter.js.map +1 -1
- package/dist/emitters/claude.d.ts +5 -0
- package/dist/emitters/claude.js +9 -0
- package/dist/emitters/claude.js.map +1 -1
- package/dist/emitters/codex.d.ts +2 -9
- package/dist/emitters/codex.js +2 -19
- package/dist/emitters/codex.js.map +1 -1
- package/dist/emitters/copilot-cli.d.ts +0 -2
- package/dist/emitters/copilot-cli.js +4 -9
- package/dist/emitters/copilot-cli.js.map +1 -1
- package/dist/emitters/gemini.d.ts +14 -0
- package/dist/emitters/gemini.js +19 -0
- package/dist/emitters/gemini.js.map +1 -0
- package/dist/emitters/index.d.ts +19 -0
- package/dist/emitters/index.js +51 -0
- package/dist/emitters/index.js.map +1 -1
- package/dist/emitters/kilo.d.ts +14 -0
- package/dist/emitters/kilo.js +17 -0
- package/dist/emitters/kilo.js.map +1 -0
- package/dist/emitters/kiro.d.ts +12 -0
- package/dist/emitters/kiro.js +14 -0
- package/dist/emitters/kiro.js.map +1 -0
- package/dist/emitters/llxprt.d.ts +13 -0
- package/dist/emitters/llxprt.js +18 -0
- package/dist/emitters/llxprt.js.map +1 -0
- package/dist/emitters/qwen.d.ts +15 -0
- package/dist/emitters/qwen.js +23 -0
- package/dist/emitters/qwen.js.map +1 -0
- package/dist/emitters/skills-emitter.d.ts +21 -0
- package/dist/emitters/skills-emitter.js +39 -0
- package/dist/emitters/skills-emitter.js.map +1 -0
- package/dist/emitters/toml-command-emitter.d.ts +29 -0
- package/dist/emitters/toml-command-emitter.js +69 -0
- package/dist/emitters/toml-command-emitter.js.map +1 -0
- package/dist/emitters/windsurf.d.ts +16 -0
- package/dist/emitters/windsurf.js +21 -0
- package/dist/emitters/windsurf.js.map +1 -0
- package/docs/architecture.md +1 -1
- package/docs/cli-reference.md +87 -5
- package/docs/index.md +1 -1
- package/docs/tool-compatibility.md +131 -9
- package/docs/workflow.md +29 -0
- package/package.json +4 -4
- package/src/prompts/converge.md +2 -0
- package/src/prompts/design.md +2 -0
- package/src/prompts/implement.md +6 -2
- package/src/prompts/plan.md +2 -0
- package/src/prompts/specify.md +2 -1
- package/src/prompts/tasks.md +5 -1
- package/src/templates/tasks.md +2 -1
- package/dist/cli/ui/interactive/dashboard.d.ts +0 -20
- package/dist/cli/ui/interactive/dashboard.js +0 -96
- package/dist/cli/ui/interactive/dashboard.js.map +0 -1
|
@@ -17,25 +17,100 @@ Several targets share one emitter's output (why `BaseEmitter` + thin subclasses
|
|
|
17
17
|
| OpenCode | `OpenCodeEmitter` | `commands` |
|
|
18
18
|
| Cursor | `CursorEmitter` | `commands` |
|
|
19
19
|
| Cursor CLI (`cursor-agent`) | `CursorCliEmitter` | `none` (rules-only) |
|
|
20
|
-
| Antigravity (IDE) | `AntigravityEmitter` | `
|
|
21
|
-
| Antigravity CLI (`agy`) | `AntigravityCliEmitter` | reuses Antigravity |
|
|
20
|
+
| Antigravity (IDE) | `AntigravityEmitter` | `skills` (workflows retired 2026-10-19) |
|
|
21
|
+
| Antigravity CLI (`agy`) | `AntigravityCliEmitter` | `skills` (reuses Antigravity) |
|
|
22
22
|
| Codex CLI (`codex`) | `CodexEmitter` | `skills` |
|
|
23
|
+
| Gemini CLI (`gemini`) | `GeminiEmitter` | `commands` (TOML) |
|
|
24
|
+
| LLxprt Code (`llxprt`) | `LlxprtEmitter` | `commands` (TOML) |
|
|
25
|
+
| Qwen Code (`qwen`) | `QwenEmitter` | `commands` |
|
|
26
|
+
| Kilo Code (`kilo`) | `KiloEmitter` | `commands` |
|
|
27
|
+
| Augment Code (`auggie`) | `AugmentEmitter` | `commands` |
|
|
28
|
+
| Windsurf | `WindsurfEmitter` | `workflows` |
|
|
29
|
+
| Kiro (IDE + `kiro-cli`) | `KiroEmitter` | `skills` |
|
|
30
|
+
| Pi (`pi`) | `CodexEmitter` (alias) | `skills`, identical to Codex |
|
|
23
31
|
|
|
24
32
|
## Matrix
|
|
25
33
|
|
|
26
34
|
| Concern | Claude Code | OpenCode | Copilot (VS Code) | Copilot CLI | Cursor | Cursor CLI | Antigravity | Codex CLI |
|
|
27
35
|
|---|---|---|---|---|---|---|---|---|
|
|
28
36
|
| Rules file | `CLAUDE.md` (+`@AGENTS.md` bridge) | `AGENTS.md` | `.github/copilot-instructions.md` + `AGENTS.md` | same as Copilot VS Code | `.cursor/rules/*.mdc` + `AGENTS.md` | Cursor config + `AGENTS.md` | `AGENTS.md` (+`GEMINI.md`) + `.agents/rules/*.md` | `AGENTS.md` |
|
|
29
|
-
| Commands/prompts | `.claude/commands/amby/*.md` | `.opencode/commands/*.md` | `.github/prompts/*.prompt.md` | **none** → skills | `.cursor/commands/*.md` | none | `.agents/
|
|
30
|
-
| Command frontmatter | `description`, `argument-hint`, `allowed-tools`, `model` | `description`, `agent`, `model`, `subtask` | `description`, `name`, `agent`, `model`, `tools` | (skills) `name`, `description`, `allowed-tools` | plain body | — | `description`
|
|
37
|
+
| Commands/prompts | `.claude/commands/amby/*.md` | `.opencode/commands/*.md` | `.github/prompts/*.prompt.md` | **none** → skills | `.cursor/commands/*.md` | none | `.agents/skills/<name>/SKILL.md` (shared with Codex) | `.agents/skills/*/SKILL.md` |
|
|
38
|
+
| Command frontmatter | `description`, `argument-hint`, `allowed-tools`, `model` | `description`, `agent`, `model`, `subtask` | `description`, `name`, `agent`, `model`, `tools` | (skills) `name`, `description`, `allowed-tools` | plain body | — | `name`, `description` | `name`, `description` |
|
|
31
39
|
| Scoped instructions | `.claude/rules/*.md` (`paths:`) | `instructions[]` in `opencode.json` | `.github/instructions/*.instructions.md` (`applyTo`) | same (`applyTo`, `excludeAgent`) | `.mdc` `globs`/`alwaysApply` | via `.mdc` | `.agents/rules/*.md` | nested `AGENTS.md`/`AGENTS.override.md` per directory (no glob key) |
|
|
32
|
-
| Args placeholder | `$ARGUMENTS`, `$N`, `$name` | `$ARGUMENTS`, `$1` | `${input:x}` | — | prompt text | — |
|
|
40
|
+
| Args placeholder | `$ARGUMENTS`, `$N`, `$name` | `$ARGUMENTS`, `$1` | `${input:x}` | — | prompt text | — | none — reworded as prose (as Codex) | none — trailing free text only (AmbyKit reworks `$ARGUMENTS` into prose) |
|
|
33
41
|
| Agents | `.claude/agents/*.md` | `.opencode/agents/*.md` | `.github/agents/*.agent.md` | `.github/agents/*.agent.md` | UI modes (no file) | — | none (SDK only) | none (skills only) |
|
|
34
42
|
| Agent frontmatter | `name`*, `description`*, `tools`, `model` (body = system prompt) | `description`* (+`mode`, `permission`; filename = id) | `description`*, `name`, `tools` | same as Copilot VS Code | — | — | — | — |
|
|
35
43
|
| MCP file | `.mcp.json` | `opencode.json` → `mcp` | `.vscode/mcp.json` | `~/.copilot/mcp-config.json` (user) | `.cursor/mcp.json` | reads `.cursor/mcp.json` | `mcp_config.json` (user) | `.codex/config.toml` (TOML) — **out of scope**, AmbyKit does not write it |
|
|
36
44
|
| MCP top-level key | (per-server `type`) | `mcp` | `servers` | `mcpServers` | `mcpServers` | — | `mcpServers` | `mcp_servers.<id>` (not written) |
|
|
37
45
|
| AGENTS.md native | No (bridge) | Yes | Yes (opt-in) | Yes | Yes | Yes | Yes | Yes |
|
|
38
46
|
|
|
47
|
+
## Matrix — additional targets (feature 016)
|
|
48
|
+
|
|
49
|
+
Checked 2026-10-26 against vendor docs or the product's own repository (docs or loader source). Only
|
|
50
|
+
documented surfaces are emitted (Principle 4).
|
|
51
|
+
|
|
52
|
+
| Concern | Gemini CLI | LLxprt Code | Qwen Code | Kilo Code | Augment Code | Windsurf | Kiro | Pi |
|
|
53
|
+
|---|---|---|---|---|---|---|---|---|
|
|
54
|
+
| Rules file | `GEMINI.md` (pointer region) | `LLXPRT.md` (pointer region) | `AGENTS.md` (see below) | `AGENTS.md` | `AGENTS.md` (+`.augment/rules/`) | `AGENTS.md` (+`.windsurf/rules/`) | `AGENTS.md` (+`.kiro/steering/`) | `AGENTS.md` |
|
|
55
|
+
| Commands/prompts | `.gemini/commands/*.toml` | `.llxprt/commands/*.toml` | `.qwen/commands/*.md` | `.kilo/commands/*.md` | `.augment/commands/*.md` | `.windsurf/workflows/*.md` | `.kiro/skills/<name>/SKILL.md` | `.agents/skills/<name>/SKILL.md` (as Codex) |
|
|
56
|
+
| Command format | TOML: `prompt` (required), `description` | TOML: `prompt` (required), `description` | Markdown + YAML: `description`, `argument-hint` | Markdown + YAML: `description` | Markdown + YAML: `description`, `argument-hint` | Markdown, no frontmatter; 12,000-character limit | `name` (must equal the dir; lowercase, digits, `-`; ≤ 64), `description` | `name`, `description` |
|
|
57
|
+
| Args placeholder | `{{args}}` | `{{args}}` | `{{args}}` | `$ARGUMENTS`, `$N` | `$ARGUMENTS` | none — reworded as prose | `$ARGUMENTS` in the CLI only — reworded as prose | n/a for skills — reworded as prose |
|
|
58
|
+
| Command name | path under the dir, `/` ⇒ `:`; dots kept | as Gemini | as Gemini; dots kept | filename | filename; subdir ⇒ `:` | filename | directory name | invoked `/skill:<name>` |
|
|
59
|
+
| AGENTS.md native | No (opt-in via `context.fileName`) | No (`contextFileName`) | Yes per source; the docs page still says `QWEN.md` only | Yes | Yes | Yes | Yes | Yes (also `CLAUDE.md`) |
|
|
60
|
+
| Agents/personas | not emitted | not emitted | not emitted | not emitted | not emitted | not emitted | not emitted | not emitted |
|
|
61
|
+
| Sources | github.com/google-gemini/gemini-cli (docs/cli/custom-commands.md, gemini-md.md) | github.com/vybestack/llxprt-code (docs/cli/commands.md, configuration.md) | qwenlm.github.io/qwen-code-docs (features/commands); github.com/QwenLM/qwen-code | kilo.ai/docs (customize/workflows, agents-md) | docs.augmentcode.com/cli (custom-commands, rules) | docs.devin.ai/desktop/cascade (workflows, memories) | kiro.dev/docs (skills, steering) | github.com/earendil-works/pi (packages/coding-agent/docs/skills.md) |
|
|
62
|
+
|
|
63
|
+
**Gemini and LLxprt (TOML).** The prompt is a TOML literal multi-line string (`'''…'''`), so
|
|
64
|
+
backslashes and quotes need no escaping; a body containing `'''` falls back to a basic `"""` string.
|
|
65
|
+
The generated notice is a `#` comment. Gemini treats `!{…}` and `@{…}` as shell/file injection, so a
|
|
66
|
+
test forbids both in the neutral prompts. AmbyKit adds a `GEMINI.md` / `LLXPRT.md` pointer region and
|
|
67
|
+
never edits `.gemini/settings.json`.
|
|
68
|
+
|
|
69
|
+
**Windsurf.** `.windsurf/workflows/` is read by older Windsurf builds and by Devin Desktop (which
|
|
70
|
+
calls it legacy); `.devin/workflows/` works only on the newest builds. The trade-off is recorded
|
|
71
|
+
here, and switching is one emitter field.
|
|
72
|
+
|
|
73
|
+
**Pi** is an alias of the Codex emitter: it reads `.agents/skills/` natively, so the files are
|
|
74
|
+
identical and written once. Its activity self-report says `codex`.
|
|
75
|
+
|
|
76
|
+
**The `.agents/skills/` overlap.** Gemini, Qwen, LLxprt, Kilo, Augment, Windsurf and Pi also read
|
|
77
|
+
`.agents/skills/`. With Codex selected they can see each phase twice (once as a command, once as a
|
|
78
|
+
skill). This is documented, not suppressed. Augment also reads `.claude/commands/`; the names are
|
|
79
|
+
identical and `.augment/` takes precedence, so Claude plus Augment yields no duplicates.
|
|
80
|
+
|
|
81
|
+
### Status notes (checked 2026-11-04)
|
|
82
|
+
|
|
83
|
+
- **Gemini CLI** is being transitioned to Antigravity CLI. Since 2026-06-18 it no longer serves free
|
|
84
|
+
individual or Google AI Pro/Ultra users; it remains for Gemini Code Assist Standard/Enterprise
|
|
85
|
+
licences and paid Gemini/Vertex API keys. The target stays for those users.
|
|
86
|
+
- **Antigravity CLI** reads `GEMINI.md` and `AGENTS.md`, and treats skills in `.agents/skills/` as
|
|
87
|
+
slash commands. It does not document `.gemini/commands/*.toml` (it converts them with
|
|
88
|
+
`agy plugin import gemini`).
|
|
89
|
+
- **Antigravity workflows are retired.** `.agents/workflows/*.md` stopped being indexed or run on
|
|
90
|
+
2026-10-19; skills at `.agents/skills/<name>/SKILL.md` replace them. The `antigravity` and
|
|
91
|
+
`antigravity-cli` targets now emit skills instead (feature 018), the same files as `codex` and `pi`.
|
|
92
|
+
- **Antigravity skills** (antigravity.google/docs/skills/): frontmatter is `name` (optional, lowercase
|
|
93
|
+
and hyphens, defaults to the folder) and `description` (required). The CLI turns a skill into a slash
|
|
94
|
+
command named after the skill (the page's example: `deploy-staging` → `/deploy-staging`), so AmbyKit's
|
|
95
|
+
phases appear as `/amby-specify` etc. (dots become hyphens), not `/amby.specify`. The IDE lists skills
|
|
96
|
+
in the agent panel's Customizations menu and picks them by description. The migration guide states the
|
|
97
|
+
cutoff for the IDE and App and does not say whether the CLI is affected; both targets moved.
|
|
98
|
+
- **Shared skill files.** Codex, Pi and both Antigravity targets write one file set under
|
|
99
|
+
`.agents/skills/`, differing only in the `--agent=<id>` the prompt reports. It is written once and
|
|
100
|
+
carries the highest-ranked id: `codex`, then `antigravity`, then `antigravity-cli`. `ambykit check`
|
|
101
|
+
names every owner. A skill file without AmbyKit's generated notice is never overwritten.
|
|
102
|
+
- **Stale workflows.** Files from earlier releases at `.agents/workflows/amby.<phase>.md` are left in
|
|
103
|
+
place; `ambykit sync --prune-legacy` backs them up under `.amby/backups/` and removes only those
|
|
104
|
+
that carry the generated notice (`ambykit restore <file>` brings one back).
|
|
105
|
+
|
|
106
|
+
### Out of scope (FR-002)
|
|
107
|
+
|
|
108
|
+
- **Amazon Q Developer CLI** is now Kiro CLI (docs.aws.amazon.com/amazonq/latest/qdeveloper-ug/upgrade-to-kiro.html), which the Kiro target covers.
|
|
109
|
+
- **Kiro CLI prompt files** (`.kiro/prompts/`): file format undocumented.
|
|
110
|
+
- **Pi prompt templates** with dotted names: undocumented.
|
|
111
|
+
- **LLxprt sub-agents:** there is no file format, only `/subagent save`.
|
|
112
|
+
- **Agent/persona files** for every new target: not emitted until the format is verified (feature 013).
|
|
113
|
+
|
|
39
114
|
## Gotchas the emitters encode
|
|
40
115
|
|
|
41
116
|
- **Claude Code does not read `AGENTS.md`.** Emit a `CLAUDE.md` whose first line is `@AGENTS.md` (or a
|
|
@@ -50,11 +125,12 @@ Several targets share one emitter's output (why `BaseEmitter` + thin subclasses
|
|
|
50
125
|
writes these only with explicit consent and excludes them from the "repo in sync" check.
|
|
51
126
|
- **Scoped-instruction key differs**: Copilot `applyTo` vs Cursor `globs` (+ `alwaysApply`).
|
|
52
127
|
- **Command surface differs**: Copilot CLI has no `.prompt.md`; phases map to `SKILL.md`. Antigravity
|
|
53
|
-
uses `.agents/workflows/*.md
|
|
128
|
+
now uses skills (`.agents/skills/<name>/SKILL.md`); workflows (`.agents/workflows/*.md`, with a
|
|
129
|
+
`// turbo` line) are retired and only Windsurf still emits `workflows`. Cursor CLI is rules-only.
|
|
54
130
|
- **OpenCode** uses plural dirs (`agents/`, `commands/`) and `provider/model-id` model strings.
|
|
55
131
|
- **Antigravity** dir is `.agents/` (plural); `.agent/` is legacy read-compat.
|
|
56
|
-
- **Codex** shares
|
|
57
|
-
|
|
132
|
+
- **Codex** shares `.agents/skills/` with Antigravity — the files are identical apart from the
|
|
133
|
+
self-report id and are written once (see the shared-file note above). Codex's skills
|
|
58
134
|
frontmatter has no argument-placeholder key, so AmbyKit rewrites the neutral `$ARGUMENTS` token into
|
|
59
135
|
prose rather than leaving a literal, un-substituted placeholder in the emitted `SKILL.md`. Codex's
|
|
60
136
|
deprecated, user-level custom-prompts mechanism (`~/.codex/prompts/`, which does support
|
|
@@ -63,16 +139,62 @@ Several targets share one emitter's output (why `BaseEmitter` + thin subclasses
|
|
|
63
139
|
wins) with a 32 KiB combined-size cap; AmbyKit does not special-case this, consistent with every
|
|
64
140
|
other `AGENTS.md`-native tool.
|
|
65
141
|
|
|
142
|
+
## Agent detection (dashboard, feature 017)
|
|
143
|
+
|
|
144
|
+
The interactive dashboard shows which assistant works on which feature. Two signals, keyed by the
|
|
145
|
+
target ids above (`src/core/agents.ts`; a test keeps it in step with `TARGETS`):
|
|
146
|
+
|
|
147
|
+
- **Self-report (primary, every tool).** The specify, design, plan, tasks, implement and converge
|
|
148
|
+
prompts run `ambykit activity <feature> --agent=$AGENT --phase=<phase>`. `BaseEmitter` replaces
|
|
149
|
+
`$AGENT` with the emitter's `toolId`, so aliases report their emitter's id (`claude-vscode` →
|
|
150
|
+
`claude`). The marker lands in `<checkout>/.amby/activity/` with a self-ignoring `.gitignore`.
|
|
151
|
+
Claude Code restricts command tools through `allowed-tools`, so phases without `bash` get only
|
|
152
|
+
`Bash(ambykit activity:*)` (Claude's documented prefix rule). No other tool emits a tool allowlist.
|
|
153
|
+
- **Process detection (fallback, CLI agents only; `--interactive` only).** Executables checked
|
|
154
|
+
2026-10-26 (spec C-2):
|
|
155
|
+
|
|
156
|
+
| Target | Executable | Source |
|
|
157
|
+
|---|---|---|
|
|
158
|
+
| `claude` | `claude` (native and npm installs) | code.claude.com/docs/en/setup |
|
|
159
|
+
| `codex` | `codex` | learn.chatgpt.com/docs/codex/cli |
|
|
160
|
+
| `opencode` | `opencode`, or node running `opencode-ai` | opencode.ai/docs |
|
|
161
|
+
| `copilot-cli` | `copilot`, or node running `@github/copilot` | docs.github.com (Copilot CLI command reference) |
|
|
162
|
+
| `cursor-cli` | `cursor-agent`, or `agent` only when its path contains `cursor` | cursor.com/docs/cli/installation |
|
|
163
|
+
| `gemini` | `gemini`, or node running `@google/gemini-cli` | github.com/google-gemini/gemini-cli |
|
|
164
|
+
| `qwen` | `qwen`, or node running `@qwen-code/qwen-code` | github.com/QwenLM/qwen-code |
|
|
165
|
+
| `llxprt` | `llxprt`, or node running `@vybestack/llxprt-code` | github.com/vybestack/llxprt-code |
|
|
166
|
+
| `kiro` | `kiro-cli` | kiro.dev/docs/cli/ |
|
|
167
|
+
| `kilo` | `kilo`, or node running `@kilocode/cli` | kilo.ai/docs/cli |
|
|
168
|
+
| `augment` | `auggie`, or node running `@augmentcode/auggie` | docs.augmentcode.com/cli/overview |
|
|
169
|
+
|
|
170
|
+
IDE-hosted agents (`claude-vscode`, `copilot`, `cursor`, `antigravity`, `windsurf`) run inside the editor
|
|
171
|
+
process and can't be told apart, so they are self-report only. `pi` reports as `codex` (it shares the
|
|
172
|
+
Codex emitter) and its executable, `pi`, is too short to match by name. `antigravity-cli` has no documented executable
|
|
173
|
+
name yet, so it is also self-report only. Working directories come from `lsof` (macOS) or
|
|
174
|
+
`/proc/<pid>/cwd` (Linux). Windows exposes no cwd through CIM, so Windows detections are shown as
|
|
175
|
+
"unknown location", never tied to a feature.
|
|
176
|
+
|
|
177
|
+
**Icons (spec C-3).** Nerd Font glyphs are opt-in (`AMBYKIT_ICONS=nerd` or `--icons=nerd`) and
|
|
178
|
+
currently affect only the worktree tag, which uses Octicons `oct-git_branch` U+F418. Agent icons stay
|
|
179
|
+
Unicode in every mode: the brand glyphs (`cod-claude` U+EC82, `cod-openai` U+EC81) only arrived in
|
|
180
|
+
recent Nerd Fonts (present in v3.5.1), and older installs render them as empty boxes.
|
|
181
|
+
|
|
66
182
|
## To verify against a live install
|
|
67
183
|
|
|
68
184
|
Docs conflicted on a couple of points; confirm before shipping those emitters:
|
|
69
185
|
|
|
70
186
|
- Antigravity `.agents/` vs `.agent/` default on the targeted version.
|
|
71
187
|
- Whether the `agy` CLI's `--output-format json` exists.
|
|
188
|
+
- Qwen Code reads `AGENTS.md` (true per its source, `memory-constants.ts`; its docs page says `QWEN.md`
|
|
189
|
+
only). If a live install ignores it, add a `QWEN.md` pointer region (a one-override change).
|
|
190
|
+
- Gemini CLI loads `/amby.specify` from the emitted `.gemini/commands/amby.specify.toml` (SC-006).
|
|
191
|
+
Waived: the CLI is now enterprise/API-key only (see the status notes above).
|
|
192
|
+
- Windsurf still reads `.windsurf/workflows/` on the current Devin Desktop build.
|
|
72
193
|
|
|
73
194
|
## Sources
|
|
74
195
|
|
|
75
196
|
Claude Code: code.claude.com/docs · OpenCode: opencode.ai/docs · Copilot: code.visualstudio.com/docs
|
|
76
197
|
and docs.github.com/copilot · Cursor: cursor.com/docs · Antigravity: antigravity.google/docs and
|
|
77
198
|
Google Cloud blog. Codex CLI: developers.openai.com/codex (skills, custom prompts, config reference,
|
|
78
|
-
AGENTS.md guide).
|
|
199
|
+
AGENTS.md guide). Gemini CLI, LLxprt, Qwen Code, Kilo, Augment, Windsurf, Kiro and Pi: see the
|
|
200
|
+
"Sources" row of the additional-targets matrix. AGENTS.md standard: agents.md.
|
package/docs/workflow.md
CHANGED
|
@@ -101,6 +101,35 @@ name. Opt in at `ambykit init` (or `"worktrees": true` in `.amby/config.json`) a
|
|
|
101
101
|
creates the worktree for each new feature; `ambykit worktree list|remove` and `ambykit check` keep
|
|
102
102
|
them tidy.
|
|
103
103
|
|
|
104
|
+
## Parallel lanes
|
|
105
|
+
|
|
106
|
+
Worktrees isolate *features*; **lanes** isolate *tasks within one feature*. Every task line ends with
|
|
107
|
+
the files it owns, as its last parenthesized group:
|
|
108
|
+
|
|
109
|
+
```text
|
|
110
|
+
- [ ] [T031] [P] [US2] Conflict tests (test/core/lane-conflicts.test.ts, test/helpers/)
|
|
111
|
+
```
|
|
112
|
+
|
|
113
|
+
Paths are repo-relative and comma-separated, directories end in `/`, and globs are not allowed. Two
|
|
114
|
+
open tasks in the same phase **conflict** when their paths overlap (a directory overlaps every file
|
|
115
|
+
beneath it) and at least one is marked `[P]`; `ambykit analyze` reports them and exits non-zero, so
|
|
116
|
+
CI can gate on it. Fix a conflict by dropping `[P]` or moving one task to a later phase.
|
|
117
|
+
|
|
118
|
+
When a phase is clean, `ambykit lane <feature>` creates one worktree per lane, each with only its own
|
|
119
|
+
tasks in a manifest, and `/amby.implement` run inside a lane works only those task ids. Lane progress
|
|
120
|
+
shows in the dashboard's WORKTREES & AGENTS panel and counts toward the feature. When the lanes are
|
|
121
|
+
done, `ambykit lane merge <feature>` merges them back, resolving check-off-only `tasks.md`
|
|
122
|
+
differences automatically.
|
|
123
|
+
|
|
124
|
+
## Supported assistants
|
|
125
|
+
|
|
126
|
+
The same neutral prompts are emitted for eighteen targets: Claude Code (CLI + VS Code), GitHub Copilot
|
|
127
|
+
(VS Code + CLI), OpenCode, Cursor (+ CLI), Antigravity (IDE + CLI), Codex CLI, Gemini CLI, LLxprt
|
|
128
|
+
Code, Qwen Code, Kilo Code, Augment Code, Windsurf, Kiro and Pi. Each gets its native command format
|
|
129
|
+
(Markdown, TOML, workflows or skills; Antigravity uses skills, since its workflows were retired on
|
|
130
|
+
2026-10-19, and its CLI lists them as `/amby-specify` and so on); see [tool compatibility](./tool-compatibility.md). Editing a
|
|
131
|
+
prompt once and running `ambykit sync` updates all of them.
|
|
132
|
+
|
|
104
133
|
## Dependencies & prioritization
|
|
105
134
|
|
|
106
135
|
Stories and features carry `priority` (P1/P2/P3) and `depends-on`/`blocked-by` references by stable
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ambystech/ambykit",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.3.1",
|
|
4
4
|
"description": "Spec-Driven Development framework that helps AI coding assistants build better software — author your specs, user stories, UI design, plans and tasks once, and emit native config for Claude Code, OpenCode, GitHub Copilot, Cursor, Antigravity and more.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"spec-driven-development",
|
|
@@ -67,9 +67,9 @@
|
|
|
67
67
|
"access": "public"
|
|
68
68
|
},
|
|
69
69
|
"devDependencies": {
|
|
70
|
-
"typescript": "^
|
|
71
|
-
"vitest": "^
|
|
72
|
-
"@types/node": "^
|
|
70
|
+
"typescript": "^7.0.2",
|
|
71
|
+
"vitest": "^5.0.0",
|
|
72
|
+
"@types/node": "^26.5.1"
|
|
73
73
|
},
|
|
74
74
|
"dependencies": {
|
|
75
75
|
"gray-matter": "^4.0.3",
|
package/src/prompts/converge.md
CHANGED
|
@@ -13,6 +13,8 @@ allowedTools: [read, edit]
|
|
|
13
13
|
Converge feature `$ARGUMENTS` (default: the current feature): does the code satisfy its artifacts?
|
|
14
14
|
Never edit source code — only that feature's `tasks.md` and `spec.md` are writable.
|
|
15
15
|
|
|
16
|
+
Run `ambykit activity <feature> --agent=$AGENT --phase=converge` first, with that feature's number; ignore any error.
|
|
17
|
+
|
|
16
18
|
1. No `tasks.md` → stop, say to run `/amby.tasks`. No `plan.md` → converge on spec + tasks and say so.
|
|
17
19
|
2. For every `FR-###`/`SC-###`, plan decision (incl. `data-model.md`/`contracts/`), and checked
|
|
18
20
|
`T###`: look for evidence only in files the plan/tasks name. Classify **covered**, **gap**
|
package/src/prompts/design.md
CHANGED
|
@@ -16,6 +16,8 @@ Context: read that feature's `spec.md`, the templates `@.amby/templates/ui.md` +
|
|
|
16
16
|
`@.amby/templates/design-tokens.json`, and — for detailed rules — `@.amby/reference/design-conventions.md`.
|
|
17
17
|
Design for the spec's user stories.
|
|
18
18
|
|
|
19
|
+
Run `ambykit activity <feature> --agent=$AGENT --phase=design` first, with that feature's number; ignore any error.
|
|
20
|
+
|
|
19
21
|
1. Write `ui.md` following the template: per story, a layout/wireframe (ASCII or embedded SVG), a
|
|
20
22
|
component inventory (props + full state set + token names), interaction criteria in
|
|
21
23
|
Given/When/Then tied to the `US-#`, and content/accessibility notes (WCAG AA).
|
package/src/prompts/implement.md
CHANGED
|
@@ -12,7 +12,10 @@ allowedTools: [read, write, edit, bash]
|
|
|
12
12
|
|
|
13
13
|
Implement work for `$ARGUMENTS` (default: the next unblocked task in priority order).
|
|
14
14
|
|
|
15
|
-
|
|
15
|
+
Run `ambykit activity <feature> --agent=$AGENT --phase=implement` first, with that feature's number; ignore any error.
|
|
16
|
+
|
|
17
|
+
1. From `tasks.md`, pick the target task(s). If `.amby/lane/lane.json` exists you are in a lane: work
|
|
18
|
+
only the task ids it lists. Respect the Foundational-before-features gate and the
|
|
16
19
|
story dependency graph — never start a task whose story is `blocked-by` unfinished work.
|
|
17
20
|
2. Load **only** the slice you need: the task line, the relevant `plan.md` section, and the specific
|
|
18
21
|
files named. Don't read the whole spec tree (token-frugal).
|
|
@@ -20,5 +23,6 @@ Implement work for `$ARGUMENTS` (default: the next unblocked task in priority or
|
|
|
20
23
|
tests for the acceptance criteria.
|
|
21
24
|
4. **Patch in place:** flip the completed task's checkbox to `- [x]` in `tasks.md`; when all of a
|
|
22
25
|
story's tasks are done, set that story's `status: done` in `spec.md` (or `in-progress` while
|
|
23
|
-
partway). Don't rewrite untouched sections.
|
|
26
|
+
partway). Don't rewrite untouched sections. After each checked task, run
|
|
27
|
+
`ambykit activity <feature> --agent=$AGENT --phase=implement --task=T###` (ignore errors).
|
|
24
28
|
5. Report what you did and the next unblocked task. Stop at a story checkpoint for review.
|
package/src/prompts/plan.md
CHANGED
|
@@ -14,6 +14,8 @@ Write the implementation plan for feature `$ARGUMENTS` (default: the current fea
|
|
|
14
14
|
|
|
15
15
|
Context: read that feature's `spec.md` and `ui.md`, plus `@.amby/constitution.md`.
|
|
16
16
|
|
|
17
|
+
Run `ambykit activity <feature> --agent=$AGENT --phase=plan` first, with that feature's number; ignore any error.
|
|
18
|
+
|
|
17
19
|
1. Write `plan.md` following `@.amby/templates/plan.md`: technical context (stack, libraries,
|
|
18
20
|
constraints), architecture, and a phased approach (Phase 0 research → Phase 1 foundation → feature phases).
|
|
19
21
|
2. This is the **first artifact with technology decisions.** Ensure every choice honors the
|
package/src/prompts/specify.md
CHANGED
|
@@ -16,7 +16,8 @@ Context: read `@.amby/constitution.md` and the structure of `@.amby/templates/sp
|
|
|
16
16
|
read other specs.
|
|
17
17
|
|
|
18
18
|
1. Create the feature dir `specs/NNN-slug/` (next number, kebab-slug from the title) and write
|
|
19
|
-
`spec.md` following `@.amby/templates/spec.md`.
|
|
19
|
+
`spec.md` following `@.amby/templates/spec.md`. Then run
|
|
20
|
+
`ambykit activity <feature> --agent=$AGENT --phase=specify` with the new number; ignore any error.
|
|
20
21
|
2. Define **user stories** (`US-#`): role / capability / benefit, a priority (P1/P2/P3), why that
|
|
21
22
|
priority, an independent-test statement, and `depends-on`/`blocked-by` if any. Set `status: draft`.
|
|
22
23
|
3. Write **acceptance criteria** in Given/When/Then per story.
|
package/src/prompts/tasks.md
CHANGED
|
@@ -14,12 +14,16 @@ Generate `tasks.md` for feature `$ARGUMENTS` (default: the current feature).
|
|
|
14
14
|
|
|
15
15
|
Context: read that feature's `plan.md` (and `spec.md` for story IDs/priorities/dependencies).
|
|
16
16
|
|
|
17
|
+
Run `ambykit activity <feature> --agent=$AGENT --phase=tasks` first, with that feature's number; ignore any error.
|
|
18
|
+
|
|
17
19
|
1. Write tasks following `@.amby/templates/tasks.md` as checkbox lines:
|
|
18
20
|
`- [ ] [T###] [P?] [US#] description (file/path)`.
|
|
19
21
|
2. Group into phases: **Setup → Foundational → User stories (by priority) → Polish**. Enforce the
|
|
20
22
|
gate: no user-story task before Foundational completes.
|
|
21
23
|
3. Order tasks by the story **dependency graph** (`depends-on`/`blocked-by`) and priority. Mark
|
|
22
24
|
independent tasks `[P]`. Tag each task with its `[US#]`. End each story group with a checkpoint.
|
|
23
|
-
4. Give every task a stable `T###` id and
|
|
25
|
+
4. Give every task a stable `T###` id and its file paths as the line's last parenthesized group:
|
|
26
|
+
comma-separated, repo-relative, dirs end `/`, no globs. Mark `[P]` only when no other task in the
|
|
27
|
+
same phase shares or nests a path.
|
|
24
28
|
|
|
25
29
|
Do not start implementing. Keep descriptions to one line each.
|
package/src/templates/tasks.md
CHANGED
|
@@ -5,8 +5,9 @@ created: {{DATE}}
|
|
|
5
5
|
|
|
6
6
|
# Tasks — {{FEATURE_TITLE}}
|
|
7
7
|
|
|
8
|
-
> Line format: `- [ ] [T###] [P?] [US#] description (file/path)`
|
|
8
|
+
> Line format: `- [ ] [T###] [P?] [US#] description (file/path, other/path)`
|
|
9
9
|
> `[x]` = done (source of truth for `ambykit dashboard`). `[P]` = parallelizable. `[US#]` = story tag.
|
|
10
|
+
> Paths: repo-relative, comma-separated, dirs end `/`, no globs. `[P]` tasks in a phase must not share or nest paths.
|
|
10
11
|
> Gate: no user-story task starts until Foundational completes.
|
|
11
12
|
|
|
12
13
|
## Phase 1 — Setup
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import type { Capabilities } from "../types.js";
|
|
2
|
-
import type { KeyEvent } from "./fullscreen.js";
|
|
3
|
-
import type { StoryProgress, TaskLine } from "../../../core/dashboard.js";
|
|
4
|
-
/**
|
|
5
|
-
* Interactive dashboard view (US-6). Pure reducer + renderer; the fullscreen host owns IO. Navigate
|
|
6
|
-
* the story list, open one to see its tasks, and quit — restoring the terminal (FR-013).
|
|
7
|
-
*/
|
|
8
|
-
export interface DashboardTuiState {
|
|
9
|
-
stories: StoryProgress[];
|
|
10
|
-
cursor: number;
|
|
11
|
-
mode: "list" | "detail" | "done";
|
|
12
|
-
}
|
|
13
|
-
/** Lookup for a story's tasks, injected by the command (keeps the reducer/renderer pure). */
|
|
14
|
-
export type TasksFor = (story: StoryProgress) => TaskLine[];
|
|
15
|
-
export declare function initDashboardTui(stories: StoryProgress[]): DashboardTuiState;
|
|
16
|
-
export declare function isDashboardDone(state: DashboardTuiState): boolean;
|
|
17
|
-
/** Pure `(state, key) → state` navigation. */
|
|
18
|
-
export declare function reduceDashboard(state: DashboardTuiState, key: KeyEvent): DashboardTuiState;
|
|
19
|
-
/** Render the current frame. */
|
|
20
|
-
export declare function renderDashboardTui(caps: Capabilities, state: DashboardTuiState, tasksFor: TasksFor): string;
|
|
@@ -1,96 +0,0 @@
|
|
|
1
|
-
import { paint, symbols } from "../theme.js";
|
|
2
|
-
const BAR_WIDTH = 10;
|
|
3
|
-
const RULE_MAX = 60;
|
|
4
|
-
export function initDashboardTui(stories) {
|
|
5
|
-
return { stories, cursor: 0, mode: stories.length > 0 ? "list" : "done" };
|
|
6
|
-
}
|
|
7
|
-
export function isDashboardDone(state) {
|
|
8
|
-
return state.mode === "done";
|
|
9
|
-
}
|
|
10
|
-
/** Pure `(state, key) → state` navigation. */
|
|
11
|
-
export function reduceDashboard(state, key) {
|
|
12
|
-
const n = state.stories.length;
|
|
13
|
-
if (n === 0)
|
|
14
|
-
return { ...state, mode: "done" };
|
|
15
|
-
if (key.name === "q")
|
|
16
|
-
return { ...state, mode: "done" };
|
|
17
|
-
if (state.mode === "list") {
|
|
18
|
-
switch (key.name) {
|
|
19
|
-
case "up":
|
|
20
|
-
return { ...state, cursor: (state.cursor - 1 + n) % n };
|
|
21
|
-
case "down":
|
|
22
|
-
return { ...state, cursor: (state.cursor + 1) % n };
|
|
23
|
-
case "return":
|
|
24
|
-
case "enter":
|
|
25
|
-
return { ...state, mode: "detail" };
|
|
26
|
-
default:
|
|
27
|
-
return state;
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
// detail mode
|
|
31
|
-
switch (key.name) {
|
|
32
|
-
case "left":
|
|
33
|
-
case "escape":
|
|
34
|
-
case "backspace":
|
|
35
|
-
return { ...state, mode: "list" };
|
|
36
|
-
default:
|
|
37
|
-
return state;
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
/** Render the current frame. */
|
|
41
|
-
export function renderDashboardTui(caps, state, tasksFor) {
|
|
42
|
-
return state.mode === "detail" ? detailView(caps, state, tasksFor) : listView(caps, state);
|
|
43
|
-
}
|
|
44
|
-
function listView(caps, state) {
|
|
45
|
-
const sym = symbols(caps);
|
|
46
|
-
const rule = paint(caps, "muted", ruleChar(caps).repeat(ruleWidth(caps)));
|
|
47
|
-
const rows = state.stories.map((s, i) => {
|
|
48
|
-
const cursor = i === state.cursor ? paint(caps, "accent", sym.cursor) : " ";
|
|
49
|
-
const id = `${s.featureRef} ${s.displayId}`.padEnd(10);
|
|
50
|
-
const title = truncate(s.title, 24).padEnd(24);
|
|
51
|
-
return `${cursor} ${id} ${title} ${bar(caps, s.tasksDone, s.tasksTotal)} ${s.priority || "-"}`;
|
|
52
|
-
});
|
|
53
|
-
const hint = paint(caps, "muted", "↑/↓ move enter open q quit");
|
|
54
|
-
return [title(caps, "AmbyKit · dashboard"), rule, ...rows, rule, hint].join("\n");
|
|
55
|
-
}
|
|
56
|
-
function detailView(caps, state, tasksFor) {
|
|
57
|
-
const s = state.stories[state.cursor];
|
|
58
|
-
const rule = paint(caps, "muted", ruleChar(caps).repeat(ruleWidth(caps)));
|
|
59
|
-
const meta = paint(caps, "muted", `${s.status || "-"} · ${s.priority || "-"} · ${s.percent}%`);
|
|
60
|
-
const lines = [
|
|
61
|
-
title(caps, `AmbyKit · ${s.featureRef} ${s.displayId}`),
|
|
62
|
-
rule,
|
|
63
|
-
`${s.title} ${meta}`,
|
|
64
|
-
paint(caps, "muted", `depends-on: ${s.dependsOn.join(", ") || "-"} blocked-by: ${s.blockedBy.join(", ") || "-"}`),
|
|
65
|
-
"tasks:",
|
|
66
|
-
];
|
|
67
|
-
const tasks = tasksFor(s);
|
|
68
|
-
if (tasks.length === 0)
|
|
69
|
-
lines.push(paint(caps, "muted", " (none)"));
|
|
70
|
-
for (const t of tasks)
|
|
71
|
-
lines.push(` [${t.done ? "x" : " "}] ${t.id} ${t.description}`);
|
|
72
|
-
lines.push(rule, paint(caps, "muted", "←/esc back q quit"));
|
|
73
|
-
return lines.join("\n");
|
|
74
|
-
}
|
|
75
|
-
function title(caps, text) {
|
|
76
|
-
return paint(caps, "heading", text);
|
|
77
|
-
}
|
|
78
|
-
function bar(caps, done, total) {
|
|
79
|
-
const ratio = total > 0 ? done / total : 0;
|
|
80
|
-
const pct = Math.round(ratio * 100);
|
|
81
|
-
const filled = Math.round(ratio * BAR_WIDTH);
|
|
82
|
-
const sym = symbols(caps);
|
|
83
|
-
const style = pct >= 100 ? "success" : pct <= 0 ? "muted" : "accent";
|
|
84
|
-
const b = sym.barFill.repeat(filled) + sym.barEmpty.repeat(BAR_WIDTH - filled);
|
|
85
|
-
return `${paint(caps, style, b)} ${String(pct).padStart(3)}%`;
|
|
86
|
-
}
|
|
87
|
-
function ruleChar(caps) {
|
|
88
|
-
return caps.unicode ? "─" : "-";
|
|
89
|
-
}
|
|
90
|
-
function ruleWidth(caps) {
|
|
91
|
-
return Math.min(RULE_MAX, Math.max(20, caps.columns - 1));
|
|
92
|
-
}
|
|
93
|
-
function truncate(s, n) {
|
|
94
|
-
return s.length <= n ? s : s.slice(0, n - 1) + "…";
|
|
95
|
-
}
|
|
96
|
-
//# sourceMappingURL=dashboard.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"dashboard.js","sourceRoot":"","sources":["../../../../src/cli/ui/interactive/dashboard.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAkB7C,MAAM,SAAS,GAAG,EAAE,CAAC;AACrB,MAAM,QAAQ,GAAG,EAAE,CAAC;AAEpB,MAAM,UAAU,gBAAgB,CAAC,OAAwB;IACvD,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,CAAC,EAAE,IAAI,EAAE,OAAO,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;AAC5E,CAAC;AAED,MAAM,UAAU,eAAe,CAAC,KAAwB;IACtD,OAAO,KAAK,CAAC,IAAI,KAAK,MAAM,CAAC;AAC/B,CAAC;AAED,8CAA8C;AAC9C,MAAM,UAAU,eAAe,CAAC,KAAwB,EAAE,GAAa;IACrE,MAAM,CAAC,GAAG,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC;IAC/B,IAAI,CAAC,KAAK,CAAC;QAAE,OAAO,EAAE,GAAG,KAAK,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;IAC/C,IAAI,GAAG,CAAC,IAAI,KAAK,GAAG;QAAE,OAAO,EAAE,GAAG,K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