@ambystech/ambykit 1.3.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.
Files changed (116) hide show
  1. package/CHANGELOG.md +30 -0
  2. package/README.md +8 -4
  3. package/dist/cli/analyze.d.ts +1 -1
  4. package/dist/cli/analyze.js +18 -5
  5. package/dist/cli/analyze.js.map +1 -1
  6. package/dist/cli/base-command.js +6 -0
  7. package/dist/cli/base-command.js.map +1 -1
  8. package/dist/cli/check.js +19 -1
  9. package/dist/cli/check.js.map +1 -1
  10. package/dist/cli/index.js +2 -0
  11. package/dist/cli/index.js.map +1 -1
  12. package/dist/cli/io/fsops.d.ts +5 -0
  13. package/dist/cli/io/fsops.js +8 -1
  14. package/dist/cli/io/fsops.js.map +1 -1
  15. package/dist/cli/lane.d.ts +20 -0
  16. package/dist/cli/lane.js +396 -0
  17. package/dist/cli/lane.js.map +1 -0
  18. package/dist/cli/sync.d.ts +7 -1
  19. package/dist/cli/sync.js +30 -2
  20. package/dist/cli/sync.js.map +1 -1
  21. package/dist/cli/ui/dashboard/live-tokens.d.ts +221 -0
  22. package/dist/cli/ui/dashboard/live-tokens.js +221 -0
  23. package/dist/cli/ui/dashboard/live-tokens.js.map +1 -1
  24. package/dist/cli/ui/dashboard/worktrees-panel.js +21 -3
  25. package/dist/cli/ui/dashboard/worktrees-panel.js.map +1 -1
  26. package/dist/cli/ui/interactive/live.js +3 -0
  27. package/dist/cli/ui/interactive/live.js.map +1 -1
  28. package/dist/cli/ui/interactive/prompt.d.ts +17 -2
  29. package/dist/cli/ui/interactive/prompt.js +39 -9
  30. package/dist/cli/ui/interactive/prompt.js.map +1 -1
  31. package/dist/core/activity.d.ts +4 -0
  32. package/dist/core/activity.js +4 -3
  33. package/dist/core/activity.js.map +1 -1
  34. package/dist/core/agents.d.ts +1 -1
  35. package/dist/core/agents.js +9 -0
  36. package/dist/core/agents.js.map +1 -1
  37. package/dist/core/analyze.d.ts +6 -0
  38. package/dist/core/analyze.js +11 -2
  39. package/dist/core/analyze.js.map +1 -1
  40. package/dist/core/checkouts.d.ts +11 -0
  41. package/dist/core/checkouts.js +82 -10
  42. package/dist/core/checkouts.js.map +1 -1
  43. package/dist/core/dashboard.d.ts +13 -0
  44. package/dist/core/dashboard.js +26 -0
  45. package/dist/core/dashboard.js.map +1 -1
  46. package/dist/core/emit.d.ts +5 -0
  47. package/dist/core/emit.js +46 -1
  48. package/dist/core/emit.js.map +1 -1
  49. package/dist/core/lanes.d.ts +116 -0
  50. package/dist/core/lanes.js +225 -0
  51. package/dist/core/lanes.js.map +1 -0
  52. package/dist/core/legacy.d.ts +10 -0
  53. package/dist/core/legacy.js +35 -0
  54. package/dist/core/legacy.js.map +1 -0
  55. package/dist/core/overview-types.d.ts +15 -1
  56. package/dist/core/overview.js +2 -0
  57. package/dist/core/overview.js.map +1 -1
  58. package/dist/core/rules.js +2 -2
  59. package/dist/core/types.d.ts +5 -0
  60. package/dist/core/worktree.d.ts +8 -0
  61. package/dist/core/worktree.js +19 -1
  62. package/dist/core/worktree.js.map +1 -1
  63. package/dist/emitters/antigravity-cli.d.ts +3 -2
  64. package/dist/emitters/antigravity-cli.js +3 -2
  65. package/dist/emitters/antigravity-cli.js.map +1 -1
  66. package/dist/emitters/antigravity.d.ts +8 -9
  67. package/dist/emitters/antigravity.js +9 -11
  68. package/dist/emitters/antigravity.js.map +1 -1
  69. package/dist/emitters/augment.d.ts +14 -0
  70. package/dist/emitters/augment.js +20 -0
  71. package/dist/emitters/augment.js.map +1 -0
  72. package/dist/emitters/base-emitter.d.ts +6 -0
  73. package/dist/emitters/base-emitter.js +9 -2
  74. package/dist/emitters/base-emitter.js.map +1 -1
  75. package/dist/emitters/codex.d.ts +2 -9
  76. package/dist/emitters/codex.js +2 -19
  77. package/dist/emitters/codex.js.map +1 -1
  78. package/dist/emitters/copilot-cli.d.ts +0 -2
  79. package/dist/emitters/copilot-cli.js +4 -9
  80. package/dist/emitters/copilot-cli.js.map +1 -1
  81. package/dist/emitters/gemini.d.ts +14 -0
  82. package/dist/emitters/gemini.js +19 -0
  83. package/dist/emitters/gemini.js.map +1 -0
  84. package/dist/emitters/index.d.ts +19 -0
  85. package/dist/emitters/index.js +51 -0
  86. package/dist/emitters/index.js.map +1 -1
  87. package/dist/emitters/kilo.d.ts +14 -0
  88. package/dist/emitters/kilo.js +17 -0
  89. package/dist/emitters/kilo.js.map +1 -0
  90. package/dist/emitters/kiro.d.ts +12 -0
  91. package/dist/emitters/kiro.js +14 -0
  92. package/dist/emitters/kiro.js.map +1 -0
  93. package/dist/emitters/llxprt.d.ts +13 -0
  94. package/dist/emitters/llxprt.js +18 -0
  95. package/dist/emitters/llxprt.js.map +1 -0
  96. package/dist/emitters/qwen.d.ts +15 -0
  97. package/dist/emitters/qwen.js +23 -0
  98. package/dist/emitters/qwen.js.map +1 -0
  99. package/dist/emitters/skills-emitter.d.ts +21 -0
  100. package/dist/emitters/skills-emitter.js +39 -0
  101. package/dist/emitters/skills-emitter.js.map +1 -0
  102. package/dist/emitters/toml-command-emitter.d.ts +29 -0
  103. package/dist/emitters/toml-command-emitter.js +69 -0
  104. package/dist/emitters/toml-command-emitter.js.map +1 -0
  105. package/dist/emitters/windsurf.d.ts +16 -0
  106. package/dist/emitters/windsurf.js +21 -0
  107. package/dist/emitters/windsurf.js.map +1 -0
  108. package/docs/architecture.md +1 -1
  109. package/docs/cli-reference.md +46 -2
  110. package/docs/index.md +1 -1
  111. package/docs/tool-compatibility.md +101 -12
  112. package/docs/workflow.md +29 -0
  113. package/package.json +1 -1
  114. package/src/prompts/implement.md +2 -1
  115. package/src/prompts/tasks.md +3 -1
  116. package/src/templates/tasks.md +2 -1
@@ -7,6 +7,13 @@ import { CursorCliEmitter } from "./cursor-cli.js";
7
7
  import { AntigravityEmitter } from "./antigravity.js";
8
8
  import { AntigravityCliEmitter } from "./antigravity-cli.js";
9
9
  import { CodexEmitter } from "./codex.js";
10
+ import { GeminiEmitter } from "./gemini.js";
11
+ import { LlxprtEmitter } from "./llxprt.js";
12
+ import { QwenEmitter } from "./qwen.js";
13
+ import { KiloEmitter } from "./kilo.js";
14
+ import { AugmentEmitter } from "./augment.js";
15
+ import { WindsurfEmitter } from "./windsurf.js";
16
+ import { KiroEmitter } from "./kiro.js";
10
17
  export { BaseEmitter } from "./base-emitter.js";
11
18
  export { ClaudeEmitter } from "./claude.js";
12
19
  export { CopilotEmitter } from "./copilot.js";
@@ -17,6 +24,15 @@ export { CursorCliEmitter } from "./cursor-cli.js";
17
24
  export { AntigravityEmitter } from "./antigravity.js";
18
25
  export { AntigravityCliEmitter } from "./antigravity-cli.js";
19
26
  export { CodexEmitter } from "./codex.js";
27
+ export { GeminiEmitter } from "./gemini.js";
28
+ export { LlxprtEmitter } from "./llxprt.js";
29
+ export { QwenEmitter } from "./qwen.js";
30
+ export { KiloEmitter } from "./kilo.js";
31
+ export { AugmentEmitter } from "./augment.js";
32
+ export { WindsurfEmitter } from "./windsurf.js";
33
+ export { KiroEmitter } from "./kiro.js";
34
+ export { TomlCommandEmitter } from "./toml-command-emitter.js";
35
+ export { SkillsEmitter } from "./skills-emitter.js";
20
36
  const claude = new ClaudeEmitter();
21
37
  const copilot = new CopilotEmitter();
22
38
  const copilotCli = new CopilotCliEmitter();
@@ -26,6 +42,13 @@ const cursorCli = new CursorCliEmitter();
26
42
  const antigravity = new AntigravityEmitter();
27
43
  const antigravityCli = new AntigravityCliEmitter();
28
44
  const codex = new CodexEmitter();
45
+ const gemini = new GeminiEmitter();
46
+ const llxprt = new LlxprtEmitter();
47
+ const qwen = new QwenEmitter();
48
+ const kilo = new KiloEmitter();
49
+ const augment = new AugmentEmitter();
50
+ const windsurf = new WindsurfEmitter();
51
+ const kiro = new KiroEmitter();
29
52
  /**
30
53
  * Registry of selectable targets → emitters. Several targets can share one emitter (VS Code
31
54
  * extensions, CLIs that reuse a sibling's output). Adding a tool is a new emitter + entries here.
@@ -41,10 +64,38 @@ export const TARGETS = [
41
64
  { id: "antigravity", displayName: "Antigravity (IDE)", emitter: antigravity },
42
65
  { id: "antigravity-cli", displayName: "Antigravity CLI", emitter: antigravityCli },
43
66
  { id: "codex", displayName: "Codex CLI", emitter: codex },
67
+ { id: "gemini", displayName: "Gemini CLI", emitter: gemini },
68
+ { id: "llxprt", displayName: "LLxprt Code", emitter: llxprt },
69
+ { id: "qwen", displayName: "Qwen Code", emitter: qwen },
70
+ { id: "kilo", displayName: "Kilo Code", emitter: kilo },
71
+ { id: "augment", displayName: "Augment Code", emitter: augment },
72
+ { id: "windsurf", displayName: "Windsurf", emitter: windsurf },
73
+ { id: "kiro", displayName: "Kiro", emitter: kiro },
74
+ { id: "pi", displayName: "Pi", emitter: codex, alias: true },
44
75
  ];
45
76
  export function getTarget(id) {
46
77
  return TARGETS.find((t) => t.id === id);
47
78
  }
79
+ /**
80
+ * Targets whose emitters write the same command directory share its output files (feature 016,
81
+ * FR-007; by directory since 018, so Antigravity and Codex, which are separate emitters, list as
82
+ * co-owners): one entry per directory with two or more configured owners, e.g. `pi` + `codex` +
83
+ * `antigravity` → `.agents/skills`. Files are written once; removing one owner leaves them for the rest.
84
+ */
85
+ export function sharedOutputs(ids) {
86
+ const byDir = new Map();
87
+ for (const id of ids) {
88
+ const target = getTarget(id);
89
+ if (!target || target.emitter.commandSurface === "none")
90
+ continue; // rules-only targets own no command dir
91
+ const dir = target.emitter.commandDir;
92
+ const entry = byDir.get(dir) ?? { dir, owners: [] };
93
+ if (!entry.owners.includes(id))
94
+ entry.owners.push(id);
95
+ byDir.set(dir, entry);
96
+ }
97
+ return [...byDir.values()].filter((e) => e.owners.length > 1);
98
+ }
48
99
  /** Distinct emitters for a set of target ids (deduped, so shared emitters emit once). */
49
100
  export function emittersForTargets(ids) {
50
101
  const seen = new Set();
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/emitters/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AA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AC,OAAO,CAAC,MAAM,CAAC;YAAE,SAAS;QAC9C,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC;QAChC,GAAG,CAAC,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;IAC3B,CAAC;IACD,OAAO,GAAG,CAAC;AACb,CAAC"}
@@ -0,0 +1,14 @@
1
+ import type { CommandSpec, CommandSurface } from "../core/types.js";
2
+ import { BaseEmitter } from "./base-emitter.js";
3
+ /**
4
+ * Kilo Code emitter. Commands are Markdown + YAML at `.kilo/commands/*.md`; `description` is the
5
+ * only key we emit, and `$ARGUMENTS` is supported natively, so bodies are emitted verbatim. Kilo
6
+ * reads AGENTS.md, so no tool-specific rules file is emitted.
7
+ */
8
+ export declare class KiloEmitter extends BaseEmitter {
9
+ readonly toolId = "kilo";
10
+ readonly displayName = "Kilo Code";
11
+ readonly commandSurface: CommandSurface;
12
+ readonly commandDir: string;
13
+ protected commandFrontmatter(spec: CommandSpec): Array<[string, string]>;
14
+ }
@@ -0,0 +1,17 @@
1
+ import { join } from "node:path/posix";
2
+ import { BaseEmitter } from "./base-emitter.js";
3
+ /**
4
+ * Kilo Code emitter. Commands are Markdown + YAML at `.kilo/commands/*.md`; `description` is the
5
+ * only key we emit, and `$ARGUMENTS` is supported natively, so bodies are emitted verbatim. Kilo
6
+ * reads AGENTS.md, so no tool-specific rules file is emitted.
7
+ */
8
+ export class KiloEmitter extends BaseEmitter {
9
+ toolId = "kilo";
10
+ displayName = "Kilo Code";
11
+ commandSurface = "commands";
12
+ commandDir = join(".kilo", "commands");
13
+ commandFrontmatter(spec) {
14
+ return [["description", this.yamlQuote(spec.description)]];
15
+ }
16
+ }
17
+ //# sourceMappingURL=kilo.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"kilo.js","sourceRoot":"","sources":["../../src/emitters/kilo.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAC;AAEvC,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAEhD;;;;GAIG;AACH,MAAM,OAAO,WAAY,SAAQ,WAAW;IACjC,MAAM,GAAG,MAAM,CAAC;IAChB,WAAW,GAAG,WAAW,CAAC;IAC1B,cAAc,GAAmB,UAAU,CAAC;IAC5C,UAAU,GAAG,IAAI,CAAC,OAAO,EAAE,UAAU,CAAC,CAAC;IAE7B,kBAAkB,CAAC,IAAiB;QACrD,OAAO,CAAC,CAAC,aAAa,EAAE,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC;IAC7D,CAAC;CACF"}
@@ -0,0 +1,12 @@
1
+ import { SkillsEmitter } from "./skills-emitter.js";
2
+ /**
3
+ * Kiro (IDE and `kiro-cli`) emitter. Commands are skills at `.kiro/skills/<name>/SKILL.md`; `name`
4
+ * must equal the directory and use only lowercase letters, digits and hyphens (so `amby-specify`,
5
+ * never `amby.specify`). `$ARGUMENTS` is substituted by the CLI only, so the shared skills rewording
6
+ * to prose is used. Kiro reads AGENTS.md, so no tool-specific rules file is emitted.
7
+ */
8
+ export declare class KiroEmitter extends SkillsEmitter {
9
+ readonly toolId = "kiro";
10
+ readonly displayName = "Kiro";
11
+ readonly commandDir: string;
12
+ }
@@ -0,0 +1,14 @@
1
+ import { join } from "node:path/posix";
2
+ import { SkillsEmitter } from "./skills-emitter.js";
3
+ /**
4
+ * Kiro (IDE and `kiro-cli`) emitter. Commands are skills at `.kiro/skills/<name>/SKILL.md`; `name`
5
+ * must equal the directory and use only lowercase letters, digits and hyphens (so `amby-specify`,
6
+ * never `amby.specify`). `$ARGUMENTS` is substituted by the CLI only, so the shared skills rewording
7
+ * to prose is used. Kiro reads AGENTS.md, so no tool-specific rules file is emitted.
8
+ */
9
+ export class KiroEmitter extends SkillsEmitter {
10
+ toolId = "kiro";
11
+ displayName = "Kiro";
12
+ commandDir = join(".kiro", "skills");
13
+ }
14
+ //# sourceMappingURL=kiro.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"kiro.js","sourceRoot":"","sources":["../../src/emitters/kiro.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAC;AACvC,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAEpD;;;;;GAKG;AACH,MAAM,OAAO,WAAY,SAAQ,aAAa;IACnC,MAAM,GAAG,MAAM,CAAC;IAChB,WAAW,GAAG,MAAM,CAAC;IACrB,UAAU,GAAG,IAAI,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAC;CAC/C"}
@@ -0,0 +1,13 @@
1
+ import type { EmittedFile, RulesContext } from "../core/types.js";
2
+ import { TomlCommandEmitter } from "./toml-command-emitter.js";
3
+ /**
4
+ * LLxprt Code emitter (a Gemini CLI fork). Commands are TOML at `.llxprt/commands/amby.<phase>.toml`
5
+ * with the same shape as Gemini's; the loader globs `**\/*.toml`. It reads `LLXPRT.md`, not AGENTS.md,
6
+ * so a pointer region carries the rules.
7
+ */
8
+ export declare class LlxprtEmitter extends TomlCommandEmitter {
9
+ readonly toolId = "llxprt";
10
+ readonly displayName = "LLxprt Code";
11
+ readonly commandDir: string;
12
+ protected rulesFiles(_ctx: RulesContext): EmittedFile[];
13
+ }
@@ -0,0 +1,18 @@
1
+ import { join } from "node:path/posix";
2
+ import { buildPointerRegion } from "../core/rules.js";
3
+ import { TomlCommandEmitter } from "./toml-command-emitter.js";
4
+ /**
5
+ * LLxprt Code emitter (a Gemini CLI fork). Commands are TOML at `.llxprt/commands/amby.<phase>.toml`
6
+ * with the same shape as Gemini's; the loader globs `**\/*.toml`. It reads `LLXPRT.md`, not AGENTS.md,
7
+ * so a pointer region carries the rules.
8
+ */
9
+ export class LlxprtEmitter extends TomlCommandEmitter {
10
+ toolId = "llxprt";
11
+ displayName = "LLxprt Code";
12
+ commandDir = join(".llxprt", "commands");
13
+ rulesFiles(_ctx) {
14
+ const region = buildPointerRegion("The `/amby.*` commands under `.llxprt/commands/` drive the phases.");
15
+ return [{ path: "LLXPRT.md", contents: `# LLxprt Code instructions\n\n${region}`, scope: "project", merge: "region" }];
16
+ }
17
+ }
18
+ //# sourceMappingURL=llxprt.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"llxprt.js","sourceRoot":"","sources":["../../src/emitters/llxprt.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAC;AACvC,OAAO,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAEtD,OAAO,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AAE/D;;;;GAIG;AACH,MAAM,OAAO,aAAc,SAAQ,kBAAkB;IAC1C,MAAM,GAAG,QAAQ,CAAC;IAClB,WAAW,GAAG,aAAa,CAAC;IAC5B,UAAU,GAAG,IAAI,CAAC,SAAS,EAAE,UAAU,CAAC,CAAC;IAE/B,UAAU,CAAC,IAAkB;QAC9C,MAAM,MAAM,GAAG,kBAAkB,CAAC,oEAAoE,CAAC,CAAC;QACxG,OAAO,CAAC,EAAE,IAAI,EAAE,WAAW,EAAE,QAAQ,EAAE,iCAAiC,MAAM,EAAE,EAAE,KAAK,EAAE,SAAS,EAAE,KAAK,EAAE,QAAQ,EAAE,CAAC,CAAC;IACzH,CAAC;CACF"}
@@ -0,0 +1,15 @@
1
+ import type { CommandSpec, CommandSurface } from "../core/types.js";
2
+ import { BaseEmitter } from "./base-emitter.js";
3
+ /**
4
+ * Qwen Code emitter. Commands are Markdown + YAML at `.qwen/commands/*.md` (TOML is deprecated);
5
+ * documented keys are `description` and `argument-hint`, and the argument placeholder is `{{args}}`.
6
+ * Qwen reads AGENTS.md (per its source; see research R3), so no tool-specific rules file is emitted.
7
+ */
8
+ export declare class QwenEmitter extends BaseEmitter {
9
+ readonly toolId = "qwen";
10
+ readonly displayName = "Qwen Code";
11
+ readonly commandSurface: CommandSurface;
12
+ readonly commandDir: string;
13
+ protected commandFrontmatter(spec: CommandSpec): Array<[string, string]>;
14
+ protected transformBody(spec: CommandSpec): string;
15
+ }
@@ -0,0 +1,23 @@
1
+ import { join } from "node:path/posix";
2
+ import { BaseEmitter } from "./base-emitter.js";
3
+ /**
4
+ * Qwen Code emitter. Commands are Markdown + YAML at `.qwen/commands/*.md` (TOML is deprecated);
5
+ * documented keys are `description` and `argument-hint`, and the argument placeholder is `{{args}}`.
6
+ * Qwen reads AGENTS.md (per its source; see research R3), so no tool-specific rules file is emitted.
7
+ */
8
+ export class QwenEmitter extends BaseEmitter {
9
+ toolId = "qwen";
10
+ displayName = "Qwen Code";
11
+ commandSurface = "commands";
12
+ commandDir = join(".qwen", "commands");
13
+ commandFrontmatter(spec) {
14
+ return [
15
+ ["description", this.yamlQuote(spec.description)],
16
+ ["argument-hint", this.yamlQuote(spec.argumentHint)],
17
+ ];
18
+ }
19
+ transformBody(spec) {
20
+ return spec.body.replaceAll("$ARGUMENTS", "{{args}}");
21
+ }
22
+ }
23
+ //# sourceMappingURL=qwen.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"qwen.js","sourceRoot":"","sources":["../../src/emitters/qwen.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAC;AAEvC,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAEhD;;;;GAIG;AACH,MAAM,OAAO,WAAY,SAAQ,WAAW;IACjC,MAAM,GAAG,MAAM,CAAC;IAChB,WAAW,GAAG,WAAW,CAAC;IAC1B,cAAc,GAAmB,UAAU,CAAC;IAC5C,UAAU,GAAG,IAAI,CAAC,OAAO,EAAE,UAAU,CAAC,CAAC;IAE7B,kBAAkB,CAAC,IAAiB;QACrD,OAAO;YACL,CAAC,aAAa,EAAE,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;YACjD,CAAC,eAAe,EAAE,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;SACrD,CAAC;IACJ,CAAC;IAEkB,aAAa,CAAC,IAAiB;QAChD,OAAO,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,YAAY,EAAE,UAAU,CAAC,CAAC;IACxD,CAAC;CACF"}
@@ -0,0 +1,21 @@
1
+ import type { CommandSpec, EmittedFile, RulesContext } from "../core/types.js";
2
+ import { BaseEmitter } from "./base-emitter.js";
3
+ /** Skill id: lowercase-hyphen, e.g. `amby.specify` → `amby-specify` (dots are not valid in every host). */
4
+ export declare function skillName(spec: CommandSpec): string;
5
+ /** `<dir>/<skill name>/SKILL.md` — the skills layout shared by Codex, Copilot CLI and Kiro. */
6
+ export declare function skillPath(dir: string, spec: CommandSpec): string;
7
+ /** Documented skill frontmatter: just `name` and `description`. */
8
+ export declare function skillFrontmatter(spec: CommandSpec, quote: (value: string) => string): Array<[string, string]>;
9
+ /**
10
+ * Base for hosts whose file-based command surface is **skills** (feature 016): one directory per
11
+ * phase holding `SKILL.md` with `name` + `description`. Skills have no `$ARGUMENTS` substitution, so
12
+ * the token becomes an instruction. A target that must inherit from another emitter (Copilot CLI)
13
+ * reuses the exported helpers instead of this class.
14
+ */
15
+ export declare abstract class SkillsEmitter extends BaseEmitter {
16
+ readonly commandSurface: "skills";
17
+ protected commandFilePath(spec: CommandSpec): string;
18
+ protected commandFrontmatter(spec: CommandSpec): Array<[string, string]>;
19
+ protected commandFile(spec: CommandSpec, ctx?: RulesContext): EmittedFile;
20
+ protected transformBody(spec: CommandSpec): string;
21
+ }
@@ -0,0 +1,39 @@
1
+ import { join } from "node:path/posix";
2
+ import { BaseEmitter } from "./base-emitter.js";
3
+ /** Skill id: lowercase-hyphen, e.g. `amby.specify` → `amby-specify` (dots are not valid in every host). */
4
+ export function skillName(spec) {
5
+ return spec.name.replace(/\./g, "-").toLowerCase();
6
+ }
7
+ /** `<dir>/<skill name>/SKILL.md` — the skills layout shared by Codex, Copilot CLI and Kiro. */
8
+ export function skillPath(dir, spec) {
9
+ return join(dir, skillName(spec), "SKILL.md");
10
+ }
11
+ /** Documented skill frontmatter: just `name` and `description`. */
12
+ export function skillFrontmatter(spec, quote) {
13
+ return [
14
+ ["name", skillName(spec)],
15
+ ["description", quote(spec.description)],
16
+ ];
17
+ }
18
+ /**
19
+ * Base for hosts whose file-based command surface is **skills** (feature 016): one directory per
20
+ * phase holding `SKILL.md` with `name` + `description`. Skills have no `$ARGUMENTS` substitution, so
21
+ * the token becomes an instruction. A target that must inherit from another emitter (Copilot CLI)
22
+ * reuses the exported helpers instead of this class.
23
+ */
24
+ export class SkillsEmitter extends BaseEmitter {
25
+ commandSurface = "skills";
26
+ commandFilePath(spec) {
27
+ return skillPath(this.commandDir, spec);
28
+ }
29
+ commandFrontmatter(spec) {
30
+ return skillFrontmatter(spec, (v) => this.yamlQuote(v));
31
+ }
32
+ commandFile(spec, ctx) {
33
+ return { ...super.commandFile(spec, ctx), protectForeign: true };
34
+ }
35
+ transformBody(spec) {
36
+ return spec.body.replaceAll("$ARGUMENTS", "the user's request that followed this skill invocation");
37
+ }
38
+ }
39
+ //# sourceMappingURL=skills-emitter.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"skills-emitter.js","sourceRoot":"","sources":["../../src/emitters/skills-emitter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAC;AAEvC,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAEhD,2GAA2G;AAC3G,MAAM,UAAU,SAAS,CAAC,IAAiB;IACzC,OAAO,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC,WAAW,EAAE,CAAC;AACrD,CAAC;AAED,+FAA+F;AAC/F,MAAM,UAAU,SAAS,CAAC,GAAW,EAAE,IAAiB;IACtD,OAAO,IAAI,CAAC,GAAG,EAAE,SAAS,CAAC,IAAI,CAAC,EAAE,UAAU,CAAC,CAAC;AAChD,CAAC;AAED,mEAAmE;AACnE,MAAM,UAAU,gBAAgB,CAAC,IAAiB,EAAE,KAAgC;IAClF,OAAO;QACL,CAAC,MAAM,EAAE,SAAS,CAAC,IAAI,CAAC,CAAC;QACzB,CAAC,aAAa,EAAE,KAAK,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;KACzC,CAAC;AACJ,CAAC;AAED;;;;;GAKG;AACH,MAAM,OAAgB,aAAc,SAAQ,WAAW;IAC5C,cAAc,GAAG,QAAiB,CAAC;IAEzB,eAAe,CAAC,IAAiB;QAClD,OAAO,SAAS,CAAC,IAAI,CAAC,UAAU,EAAE,IAAI,CAAC,CAAC;IAC1C,CAAC;IAEkB,kBAAkB,CAAC,IAAiB;QACrD,OAAO,gBAAgB,CAAC,IAAI,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC;IAC1D,CAAC;IAEkB,WAAW,CAAC,IAAiB,EAAE,GAAkB;QAClE,OAAO,EAAE,GAAG,KAAK,CAAC,WAAW,CAAC,IAAI,EAAE,GAAG,CAAC,EAAE,cAAc,EAAE,IAAI,EAAE,CAAC;IACnE,CAAC;IAEkB,aAAa,CAAC,IAAiB;QAChD,OAAO,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,YAAY,EAAE,wDAAwD,CAAC,CAAC;IACtG,CAAC;CACF"}
@@ -0,0 +1,29 @@
1
+ import type { CommandSpec, CommandSurface } from "../core/types.js";
2
+ import { BaseEmitter } from "./base-emitter.js";
3
+ /**
4
+ * Base for tools whose custom commands are TOML files (Gemini CLI, LLxprt Code; feature 016, R1):
5
+ *
6
+ * # <generated notice>
7
+ * description = "<basic-escaped>"
8
+ * prompt = '''
9
+ * <body>
10
+ * '''
11
+ *
12
+ * The prompt is a TOML *literal* multi-line string, so backslashes and quotes in the neutral body
13
+ * need no escaping. A body containing `'''` falls back to a basic `"""` string with `\` and `"`
14
+ * escaped. The generated notice is a `#` comment, so it costs no prompt tokens. `$ARGUMENTS` becomes
15
+ * `{{args}}`. Only two string keys are written and AmbyKit never parses TOML, hence no dependency.
16
+ */
17
+ export declare abstract class TomlCommandEmitter extends BaseEmitter {
18
+ readonly commandSurface: CommandSurface;
19
+ /** Commands live in `<dir>/amby.<phase>.toml`; dots are kept (the command name is the file path). */
20
+ protected commandFileName(spec: CommandSpec): string;
21
+ protected commandFrontmatter(spec: CommandSpec): Array<[string, string]>;
22
+ protected generatedNotice(spec: CommandSpec): string;
23
+ protected transformBody(spec: CommandSpec): string;
24
+ protected renderCommand(pairs: Array<[string, string]>, notice: string, body: string): string;
25
+ }
26
+ /** TOML basic string (`"…"`) with the required escapes. */
27
+ export declare function tomlBasic(value: string): string;
28
+ /** The `prompt` value: a literal `'''` block, or a basic `"""` block when the body contains `'''`. */
29
+ export declare function tomlPrompt(body: string): string;
@@ -0,0 +1,69 @@
1
+ import { BaseEmitter } from "./base-emitter.js";
2
+ /**
3
+ * Base for tools whose custom commands are TOML files (Gemini CLI, LLxprt Code; feature 016, R1):
4
+ *
5
+ * # <generated notice>
6
+ * description = "<basic-escaped>"
7
+ * prompt = '''
8
+ * <body>
9
+ * '''
10
+ *
11
+ * The prompt is a TOML *literal* multi-line string, so backslashes and quotes in the neutral body
12
+ * need no escaping. A body containing `'''` falls back to a basic `"""` string with `\` and `"`
13
+ * escaped. The generated notice is a `#` comment, so it costs no prompt tokens. `$ARGUMENTS` becomes
14
+ * `{{args}}`. Only two string keys are written and AmbyKit never parses TOML, hence no dependency.
15
+ */
16
+ export class TomlCommandEmitter extends BaseEmitter {
17
+ commandSurface = "commands";
18
+ /** Commands live in `<dir>/amby.<phase>.toml`; dots are kept (the command name is the file path). */
19
+ commandFileName(spec) {
20
+ return `${spec.name}.toml`;
21
+ }
22
+ commandFrontmatter(spec) {
23
+ return [["description", tomlBasic(spec.description)]];
24
+ }
25
+ generatedNotice(spec) {
26
+ return `# GENERATED by AmbyKit from src/prompts/${spec.id}.md — do not edit by hand; run \`ambykit sync\`.`;
27
+ }
28
+ transformBody(spec) {
29
+ return spec.body.replaceAll("$ARGUMENTS", "{{args}}");
30
+ }
31
+ renderCommand(pairs, notice, body) {
32
+ const keys = pairs.map(([k, v]) => `${k} = ${v}`).join("\n");
33
+ return `${notice}\n${keys}\nprompt = ${tomlPrompt(body)}\n`;
34
+ }
35
+ }
36
+ /** TOML basic string (`"…"`) with the required escapes. */
37
+ export function tomlBasic(value) {
38
+ return `"${escapeBasic(value)}"`;
39
+ }
40
+ function escapeBasic(value) {
41
+ let out = "";
42
+ for (const ch of value) {
43
+ const code = ch.codePointAt(0);
44
+ if (ch === "\\")
45
+ out += "\\\\";
46
+ else if (ch === '"')
47
+ out += '\\"';
48
+ else if (ch === "\n")
49
+ out += "\\n";
50
+ else if (ch === "\t")
51
+ out += "\\t";
52
+ else if (ch === "\r")
53
+ out += "\\r";
54
+ else if (code < 0x20 || code === 0x7f)
55
+ out += `\\u${code.toString(16).toUpperCase().padStart(4, "0")}`;
56
+ else
57
+ out += ch;
58
+ }
59
+ return out;
60
+ }
61
+ /** The `prompt` value: a literal `'''` block, or a basic `"""` block when the body contains `'''`. */
62
+ export function tomlPrompt(body) {
63
+ if (!body.includes("'''") && !/[\u0000-\u0008\u000b-\u001f\u007f]/.test(body))
64
+ return `'''\n${body}\n'''`;
65
+ // Multi-line basic string: keep real newlines (a leading one is trimmed by TOML), escape the rest.
66
+ const escaped = body.split("\n").map(escapeBasic).join("\n");
67
+ return `"""\n${escaped}\n"""`;
68
+ }
69
+ //# sourceMappingURL=toml-command-emitter.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"toml-command-emitter.js","sourceRoot":"","sources":["../../src/emitters/toml-command-emitter.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAEhD;;;;;;;;;;;;;GAaG;AACH,MAAM,OAAgB,kBAAmB,SAAQ,WAAW;IACjD,cAAc,GAAmB,UAAU,CAAC;IAErD,qGAAqG;IAClF,eAAe,CAAC,IAAiB;QAClD,OAAO,G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,IAAI,KAAK,CAAC;aAC9B,IAAI,EAAE,KAAK,IAAI;YAAE,GAAG,IAAI,KAAK,CAAC;aAC9B,IAAI,IAAI,GAAG,IAAI,IAAI,IAAI,KAAK,IAAI;YAAE,GAAG,IAAI,MAAM,IAAI,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC,WAAW,EAAE,CAAC,QAAQ,CAAC,CAAC,EAAE,GAAG,CAAC,EAAE,CAAC;;YAClG,GAAG,IAAI,EAAE,CAAC;IACjB,CAAC;IACD,OAAO,GAAG,CAAC;AACb,CAAC;AAED,sGAAsG;AACtG,MAAM,UAAU,UAAU,CAAC,IAAY;IACrC,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,oCAAoC,CAAC,IAAI,CAAC,IAAI,CAAC;QAAE,OAAO,QAAQ,IAAI,OAAO,CAAC;IAC1G,mGAAmG;IACnG,MAAM,OAAO,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC,WAAW,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAC7D,OAAO,QAAQ,OAAO,OAAO,CAAC;AAChC,CAAC"}
@@ -0,0 +1,16 @@
1
+ import type { CommandSpec, CommandSurface } from "../core/types.js";
2
+ import { BaseEmitter } from "./base-emitter.js";
3
+ /**
4
+ * Windsurf emitter. Workflows are Markdown at `.windsurf/workflows/*.md` with no documented
5
+ * frontmatter and a 12,000-character limit per file; the filename is the slash command. There is no
6
+ * argument placeholder, so `$ARGUMENTS` becomes an instruction (the Codex wording). Windsurf reads
7
+ * AGENTS.md, so no tool-specific rules file is emitted.
8
+ */
9
+ export declare class WindsurfEmitter extends BaseEmitter {
10
+ readonly toolId = "windsurf";
11
+ readonly displayName = "Windsurf";
12
+ readonly commandSurface: CommandSurface;
13
+ readonly commandDir: string;
14
+ protected commandFrontmatter(_spec: CommandSpec): Array<[string, string]>;
15
+ protected transformBody(spec: CommandSpec): string;
16
+ }
@@ -0,0 +1,21 @@
1
+ import { join } from "node:path/posix";
2
+ import { BaseEmitter } from "./base-emitter.js";
3
+ /**
4
+ * Windsurf emitter. Workflows are Markdown at `.windsurf/workflows/*.md` with no documented
5
+ * frontmatter and a 12,000-character limit per file; the filename is the slash command. There is no
6
+ * argument placeholder, so `$ARGUMENTS` becomes an instruction (the Codex wording). Windsurf reads
7
+ * AGENTS.md, so no tool-specific rules file is emitted.
8
+ */
9
+ export class WindsurfEmitter extends BaseEmitter {
10
+ toolId = "windsurf";
11
+ displayName = "Windsurf";
12
+ commandSurface = "workflows";
13
+ commandDir = join(".windsurf", "workflows");
14
+ commandFrontmatter(_spec) {
15
+ return [];
16
+ }
17
+ transformBody(spec) {
18
+ return spec.body.replaceAll("$ARGUMENTS", "the user's request that followed this workflow invocation");
19
+ }
20
+ }
21
+ //# sourceMappingURL=windsurf.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"windsurf.js","sourceRoot":"","sources":["../../src/emitters/windsurf.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAC;AAEvC,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAEhD;;;;;GAKG;AACH,MAAM,OAAO,eAAgB,SAAQ,WAAW;IACrC,MAAM,GAAG,UAAU,CAAC;IACpB,WAAW,GAAG,UAAU,CAAC;IACzB,cAAc,GAAmB,WAAW,CAAC;IAC7C,UAAU,GAAG,IAAI,CAAC,WAAW,EAAE,WAAW,CAAC,CAAC;IAElC,kBAAkB,CAAC,KAAkB;QACtD,OAAO,EAAE,CAAC;IACZ,CAAC;IAEkB,aAAa,CAAC,IAAiB;QAChD,OAAO,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,YAAY,EAAE,2DAA2D,CAAC,CAAC;IACzG,CAAC;CACF"}
@@ -21,7 +21,7 @@ src/prompts/ ── neutral phase CommandSpecs (constitution → implement)
21
21
  ├── .github/skills/amby-*/SKILL.md (CopilotCliEmitter)
22
22
  ├── .opencode/commands/*.md (OpenCodeEmitter)
23
23
  ├── .cursor/commands/*.md + rules (CursorEmitter / CursorCliEmitter)
24
- ├── .agents/workflows/*.md (AntigravityEmitter / AntigravityCliEmitter)
24
+ ├── .agents/skills/amby-*/SKILL.md (CodexEmitter, AntigravityEmitter / AntigravityCliEmitter)
25
25
  └── AGENTS.md (+ CLAUDE.md bridge) (shared rules layer)
26
26
  ```
27
27
 
@@ -52,7 +52,13 @@ npx @ambystech/ambykit init --dry-run # preview merges, write nothing
52
52
  Add or refresh integration for one or more targets (see [tool compatibility](./tool-compatibility.md)
53
53
  for target names). On an interactive terminal, running it with **no target** opens a multi-select
54
54
  prompt (`space` toggle, `enter` confirm, `esc` cancel); non-interactively it errors with the list of
55
- available targets instead of blocking. `init` behaves the same when `--tools` is omitted.
55
+ available targets instead of blocking. `init` behaves the same when `--tools` is omitted. The
56
+ selector scrolls when the list is taller than the terminal (`↑ n more` / `↓ n more`).
57
+
58
+ Target ids: `claude`, `claude-vscode`, `copilot`, `copilot-cli`, `opencode`, `cursor`, `cursor-cli`,
59
+ `antigravity`, `antigravity-cli`, `codex`, `gemini`, `llxprt`, `qwen`, `kilo`, `augment`, `windsurf`,
60
+ `kiro`, `pi`. Targets that share an emitter (for example `codex` and `pi`) write their files once;
61
+ `ambykit check` names the owners of each shared output.
56
62
 
57
63
  ```bash
58
64
  ambykit add cursor claude
@@ -71,8 +77,18 @@ running it keeps your agent docs current without a full re-init.
71
77
  ```bash
72
78
  ambykit sync
73
79
  ambykit sync --dry-run
80
+ ambykit sync --prune-legacy
74
81
  ```
75
82
 
83
+ **Antigravity migration.** Antigravity retired workflows on 2026-10-19; the `antigravity` and
84
+ `antigravity-cli` targets now write skills (`.agents/skills/amby-*/SKILL.md`, the same files Codex and Pi
85
+ write). Workflow files that an earlier release generated at `.agents/workflows/amby.<phase>.md` are left
86
+ in place and reported; `--prune-legacy` backs each up under `.amby/backups/` and removes only the ones
87
+ that carry AmbyKit's generated notice (your own workflows are never touched; `ambykit restore <file>`
88
+ brings one back). `sync` never overwrites an existing skill file that AmbyKit did not generate. When
89
+ several targets write one skill file it is written once and reports one assistant id (`codex`, then
90
+ `antigravity`, then `antigravity-cli`).
91
+
76
92
  Also installs any newly shipped templates, reference docs, and **roles** into `.amby/` (write-if-absent —
77
93
  your edits are kept), warns when a role in `.amby/roles/` exceeds 150 words, and refuses to emit
78
94
  when two roles share an id. Projects with roles get one native sub-agent per role for Claude Code,
@@ -109,6 +125,29 @@ branch is already merged. Opt in to automatic creation from `/amby.specify` by a
109
125
  `ambykit init`, or set `"worktrees": true` in `.amby/config.json`. Inside a worktree, phases resolve
110
126
  "the current feature" from the directory name.
111
127
 
128
+ ## `ambykit lane <feature> | list | remove <feature> [<lane>] | merge <feature> [<lane>]`
129
+
130
+ **Parallel lanes**: split one phase's `[P]` tasks into isolated worktrees that cannot touch the same
131
+ files, then merge them back. Lane `k` of phase `p` is the worktree and branch
132
+ `.worktrees/<feature>.lane-<p>-<k>`, created from the feature branch. Each lane holds a manifest
133
+ (`.amby/lane/lane.json`, self-ignoring) listing only its tasks. Zero model tokens. Requires
134
+ `"worktrees": true` in `.amby/config.json`.
135
+
136
+ ```bash
137
+ ambykit lane 015-slug # 2 lanes from the first phase with open [P] tasks
138
+ ambykit lane 015-slug --phase=3 --lanes=3 # choose the phase and lane count
139
+ ambykit lane list [015-slug] # tasks, done/total, clean/dirty/merged, drift
140
+ ambykit lane merge 015-slug [3-1] # merge finished lanes into the feature branch
141
+ ambykit lane remove 015-slug [3-1] [--force] # remove working copies (branches are kept)
142
+ ```
143
+
144
+ Tasks are dealt round-robin in task order. Creating is refused when the phase has path conflicts
145
+ (see `ambykit analyze`) and is a no-op when the lanes already exist. `merge` runs in the feature's
146
+ checkout, which must be clean. Check-offs that land on adjacent `tasks.md` lines are resolved
147
+ automatically (a box is ticked if either side ticked it); any other conflict aborts that lane's merge
148
+ and leaves the checkout clean. `list` reports **drift** when a lane task is missing from, or has
149
+ different paths in, the feature's current `tasks.md`.
150
+
112
151
  ## `ambykit dashboard [story-id]`
113
152
 
114
153
  Progress view over the story/task graph, computed locally from `specs/*/` files and, for the
@@ -204,9 +243,14 @@ Validate the story dependency graph, computed locally from `specs/` (no model to
204
243
  stories and **orphans** (stories with no tasks). Exits non-zero on structural errors, so it can gate
205
244
  CI. Complements the generative `/amby.analyze` phase.
206
245
 
246
+ Also checks **lane ownership**: open tasks in the same phase that declare overlapping file paths,
247
+ where at least one is `[P]`, are reported as **Lane conflicts** (by task id and path) and exit
248
+ non-zero. Open tasks with no usable path, or a glob, are listed as warnings and do not affect the
249
+ exit code.
250
+
207
251
  ```bash
208
252
  ambykit analyze
209
- ambykit analyze --json
253
+ ambykit analyze --json # includes lanes.conflicts and lanes.declarations
210
254
  ```
211
255
 
212
256
  ## `ambykit check`
package/docs/index.md CHANGED
@@ -20,7 +20,7 @@ tools omit.
20
20
 
21
21
  You write the workflow and artifacts once. AmbyKit's **emitters** compile them into each assistant's
22
22
  native format — Claude Code, OpenCode, GitHub Copilot (VS Code + CLI), Cursor (+ CLI), Antigravity
23
- (IDE + CLI). One source of truth, no per-tool drift. See [architecture](./architecture.md).
23
+ (IDE + CLI), Codex CLI, Gemini CLI, Windsurf, Qwen Code, Kiro, Kilo Code, Augment Code, LLxprt Code and Pi. One source of truth, no per-tool drift. See [architecture](./architecture.md).
24
24
 
25
25
  ## Read next
26
26