@hegemonart/get-design-done 1.25.0 → 1.27.0

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 (58) hide show
  1. package/.claude-plugin/marketplace.json +2 -2
  2. package/.claude-plugin/plugin.json +1 -1
  3. package/CHANGELOG.md +96 -0
  4. package/README.md +12 -6
  5. package/SKILL.md +3 -0
  6. package/agents/README.md +89 -0
  7. package/agents/design-reflector.md +43 -0
  8. package/agents/gdd-intel-updater.md +34 -1
  9. package/hooks/budget-enforcer.ts +143 -4
  10. package/package.json +1 -1
  11. package/reference/model-prices.md +40 -19
  12. package/reference/peer-cli-capabilities.md +151 -0
  13. package/reference/peer-protocols.md +266 -0
  14. package/reference/prices/antigravity.md +21 -0
  15. package/reference/prices/augment.md +21 -0
  16. package/reference/prices/claude.md +42 -0
  17. package/reference/prices/cline.md +23 -0
  18. package/reference/prices/codebuddy.md +21 -0
  19. package/reference/prices/codex.md +25 -0
  20. package/reference/prices/copilot.md +21 -0
  21. package/reference/prices/cursor.md +21 -0
  22. package/reference/prices/gemini.md +25 -0
  23. package/reference/prices/kilo.md +21 -0
  24. package/reference/prices/opencode.md +23 -0
  25. package/reference/prices/qwen.md +25 -0
  26. package/reference/prices/trae.md +23 -0
  27. package/reference/prices/windsurf.md +21 -0
  28. package/reference/registry.json +121 -1
  29. package/reference/runtime-models.md +446 -0
  30. package/reference/schemas/runtime-models.schema.json +123 -0
  31. package/scripts/install.cjs +8 -0
  32. package/scripts/lib/bandit-router.cjs +214 -7
  33. package/scripts/lib/budget-enforcer.cjs +514 -0
  34. package/scripts/lib/cost-arbitrage.cjs +294 -0
  35. package/scripts/lib/event-stream/index.ts +14 -1
  36. package/scripts/lib/event-stream/types.ts +125 -1
  37. package/scripts/lib/install/installer.cjs +188 -11
  38. package/scripts/lib/install/parse-runtime-models.cjs +267 -0
  39. package/scripts/lib/install/runtimes.cjs +101 -0
  40. package/scripts/lib/peer-cli/acp-client.cjs +375 -0
  41. package/scripts/lib/peer-cli/adapters/codex.cjs +101 -0
  42. package/scripts/lib/peer-cli/adapters/copilot.cjs +79 -0
  43. package/scripts/lib/peer-cli/adapters/cursor.cjs +78 -0
  44. package/scripts/lib/peer-cli/adapters/gemini.cjs +81 -0
  45. package/scripts/lib/peer-cli/adapters/qwen.cjs +72 -0
  46. package/scripts/lib/peer-cli/asp-client.cjs +587 -0
  47. package/scripts/lib/peer-cli/broker-lifecycle.cjs +406 -0
  48. package/scripts/lib/peer-cli/registry.cjs +434 -0
  49. package/scripts/lib/peer-cli/spawn-cmd.cjs +149 -0
  50. package/scripts/lib/runtime-detect.cjs +96 -0
  51. package/scripts/lib/session-runner/index.ts +215 -0
  52. package/scripts/lib/session-runner/types.ts +60 -0
  53. package/scripts/lib/tier-resolver.cjs +311 -0
  54. package/scripts/validate-frontmatter.ts +297 -2
  55. package/skills/peer-cli-add/SKILL.md +170 -0
  56. package/skills/peer-cli-customize/SKILL.md +110 -0
  57. package/skills/peers/SKILL.md +101 -0
  58. package/skills/router/SKILL.md +51 -2
@@ -0,0 +1,21 @@
1
+ # GitHub Copilot — Price Table (stub)
2
+
3
+ **Runtime:** `copilot` (GitHub Copilot CLI)
4
+ **Phase 26 D-08 sub-table — STUB.** Placeholder so the price-table router (`reference/model-prices.md`) has a complete link list for all 14 runtimes. Runtime adapter authors fill this in with provenance citations in a later cycle.
5
+
6
+ **Provenance:** `<TODO: confirm at https://docs.github.com/en/copilot/about-github-copilot/plans-for-github-copilot>` — pending.
7
+
8
+ ## Pricing (USD per 1M tokens)
9
+
10
+ | Model | Tier | input_per_1m | output_per_1m | cached_input_per_1m |
11
+ |-------|------|--------------|---------------|----------------------|
12
+ | _TBD_ | opus | <TODO> | <TODO> | <TODO> |
13
+ | _TBD_ | sonnet | <TODO> | <TODO> | <TODO> |
14
+ | _TBD_ | haiku | <TODO> | <TODO> | <TODO> |
15
+
16
+ The budget-enforcer treats unparseable rows as missing and falls back to `reference/prices/claude.md` per the D-08 fallback chain.
17
+
18
+ ## Update protocol
19
+
20
+ 1. Confirm authoritative numbers at the runtime author's pricing docs and update; remove `<TODO>` tags.
21
+ 2. Add provenance citation matching the `reference/runtime-models.md` row for `id: "copilot"`.
@@ -0,0 +1,21 @@
1
+ # Cursor — Price Table (stub)
2
+
3
+ **Runtime:** `cursor` (Cursor IDE / CLI)
4
+ **Phase 26 D-08 sub-table — STUB.** Placeholder so the price-table router (`reference/model-prices.md`) has a complete link list for all 14 runtimes. Runtime adapter authors fill this in with provenance citations in a later cycle.
5
+
6
+ **Provenance:** `<TODO: confirm at https://docs.cursor.com/account/pricing>` — pending.
7
+
8
+ ## Pricing (USD per 1M tokens)
9
+
10
+ | Model | Tier | input_per_1m | output_per_1m | cached_input_per_1m |
11
+ |-------|------|--------------|---------------|----------------------|
12
+ | _TBD_ | opus | <TODO> | <TODO> | <TODO> |
13
+ | _TBD_ | sonnet | <TODO> | <TODO> | <TODO> |
14
+ | _TBD_ | haiku | <TODO> | <TODO> | <TODO> |
15
+
16
+ The budget-enforcer treats unparseable rows as missing and falls back to `reference/prices/claude.md` per the D-08 fallback chain.
17
+
18
+ ## Update protocol
19
+
20
+ 1. Confirm authoritative numbers at the runtime author's pricing docs and update; remove `<TODO>` tags.
21
+ 2. Add provenance citation matching the `reference/runtime-models.md` row for `id: "cursor"`.
@@ -0,0 +1,25 @@
1
+ # Google — Gemini CLI Price Table
2
+
3
+ **Runtime:** `gemini` (Google Gemini CLI)
4
+ **Phase 26 D-08 sub-table.** Pricing for the Gemini 2.5 tier referenced in `reference/runtime-models.md` under `id: "gemini"`.
5
+
6
+ **Provenance:** `<TODO: confirm at https://ai.google.dev/pricing>` — retrieved 2026-04-29 (placeholder — v1.26.0 ships with seed numbers; runtime adapter authors confirm and PR before v1.27).
7
+
8
+ **Status:** placeholder values reflect public Gemini 2.5 tier positioning at v1.26.0 ship time. Cost-aggregator will surface drift if measured spend deviates from these figures by more than 20% after 10+ cycles.
9
+
10
+ ## Pricing (USD per 1M tokens)
11
+
12
+ | Model | Tier | input_per_1m | output_per_1m | cached_input_per_1m |
13
+ |-------|------|--------------|---------------|----------------------|
14
+ | gemini-2.5-pro | opus | 1.25 | 10.00 | 0.31 |
15
+ | gemini-2.5-flash | sonnet | 0.30 | 2.50 | 0.075 |
16
+ | gemini-2.5-flash-lite | haiku | 0.10 | 0.40 | 0.025 |
17
+
18
+ ## Estimator formula
19
+
20
+ Same shape as `reference/prices/claude.md`.
21
+
22
+ ## Update protocol
23
+
24
+ 1. Confirm authoritative numbers at https://ai.google.dev/pricing and update; remove `<TODO>` tag.
25
+ 2. New model added to `reference/runtime-models.md` under `id: "gemini"`: add a row here.
@@ -0,0 +1,21 @@
1
+ # Kilo Code — Price Table (stub)
2
+
3
+ **Runtime:** `kilo` (Kilo Code)
4
+ **Phase 26 D-08 sub-table — STUB.** Placeholder so the price-table router (`reference/model-prices.md`) has a complete link list for all 14 runtimes. Runtime adapter authors fill this in with provenance citations in a later cycle.
5
+
6
+ **Provenance:** `<TODO: confirm at https://kilocode.ai/docs>` — pending.
7
+
8
+ ## Pricing (USD per 1M tokens)
9
+
10
+ | Model | Tier | input_per_1m | output_per_1m | cached_input_per_1m |
11
+ |-------|------|--------------|---------------|----------------------|
12
+ | _TBD_ | opus | <TODO> | <TODO> | <TODO> |
13
+ | _TBD_ | sonnet | <TODO> | <TODO> | <TODO> |
14
+ | _TBD_ | haiku | <TODO> | <TODO> | <TODO> |
15
+
16
+ The budget-enforcer treats unparseable rows as missing and falls back to `reference/prices/claude.md` per the D-08 fallback chain.
17
+
18
+ ## Update protocol
19
+
20
+ 1. Confirm authoritative numbers at the runtime author's pricing docs and update; remove `<TODO>` tags.
21
+ 2. Add provenance citation matching the `reference/runtime-models.md` row for `id: "kilo"`.
@@ -0,0 +1,23 @@
1
+ # OpenCode — Price Table (stub)
2
+
3
+ **Runtime:** `opencode` (OpenCode)
4
+ **Phase 26 D-08 sub-table — STUB.** Placeholder so the price-table router (`reference/model-prices.md`) has a complete link list for all 14 runtimes. Runtime adapter authors fill this in with provenance citations in a later cycle.
5
+
6
+ **Provenance:** `<TODO: confirm at https://opencode.ai/docs>` — pending.
7
+
8
+ **Note:** OpenCode is a BYO-API-key runtime — actual pricing is determined by whichever provider key the user supplies. The `tier_to_model` row in `reference/runtime-models.md` chooses a default model per tier; this table prices that default. Users of other providers should override locally.
9
+
10
+ ## Pricing (USD per 1M tokens)
11
+
12
+ | Model | Tier | input_per_1m | output_per_1m | cached_input_per_1m |
13
+ |-------|------|--------------|---------------|----------------------|
14
+ | _TBD_ | opus | <TODO> | <TODO> | <TODO> |
15
+ | _TBD_ | sonnet | <TODO> | <TODO> | <TODO> |
16
+ | _TBD_ | haiku | <TODO> | <TODO> | <TODO> |
17
+
18
+ The budget-enforcer treats unparseable rows as missing and falls back to `reference/prices/claude.md` per the D-08 fallback chain.
19
+
20
+ ## Update protocol
21
+
22
+ 1. Confirm authoritative numbers at the runtime author's pricing docs and update; remove `<TODO>` tags.
23
+ 2. Add provenance citation matching the `reference/runtime-models.md` row for `id: "opencode"`.
@@ -0,0 +1,25 @@
1
+ # Alibaba — Qwen CLI Price Table
2
+
3
+ **Runtime:** `qwen` (Alibaba Qwen CLI)
4
+ **Phase 26 D-08 sub-table.** Pricing for the Qwen 3 tier referenced in `reference/runtime-models.md` under `id: "qwen"`.
5
+
6
+ **Provenance:** `<TODO: confirm at https://www.alibabacloud.com/help/en/model-studio/billing-for-models>` — retrieved 2026-04-29 (placeholder — v1.26.0 ships with seed numbers; runtime adapter authors confirm and PR before v1.27).
7
+
8
+ **Status:** placeholder values reflect public Model Studio tier positioning at v1.26.0 ship time. Cost-aggregator will surface drift if measured spend deviates from these figures by more than 20% after 10+ cycles.
9
+
10
+ ## Pricing (USD per 1M tokens)
11
+
12
+ | Model | Tier | input_per_1m | output_per_1m | cached_input_per_1m |
13
+ |-------|------|--------------|---------------|----------------------|
14
+ | qwen3-max | opus | 2.40 | 9.60 | 0.24 |
15
+ | qwen3-plus | sonnet | 0.40 | 1.20 | 0.04 |
16
+ | qwen3-flash | haiku | 0.05 | 0.40 | 0.005 |
17
+
18
+ ## Estimator formula
19
+
20
+ Same shape as `reference/prices/claude.md`.
21
+
22
+ ## Update protocol
23
+
24
+ 1. Confirm authoritative numbers at https://www.alibabacloud.com/help/en/model-studio/billing-for-models and update; remove `<TODO>` tag.
25
+ 2. New model added to `reference/runtime-models.md` under `id: "qwen"`: add a row here.
@@ -0,0 +1,23 @@
1
+ # Trae — Price Table (stub)
2
+
3
+ **Runtime:** `trae` (Trae)
4
+ **Phase 26 D-08 sub-table — STUB.** Placeholder so the price-table router (`reference/model-prices.md`) has a complete link list for all 14 runtimes. Runtime adapter authors fill this in with provenance citations in a later cycle.
5
+
6
+ **Provenance:** `<TODO: confirm at https://trae.ai/docs>` — pending.
7
+
8
+ **Note:** Trae may be a `single_tier` runtime (one model maps to all three tiers). When confirming pricing, populate all three rows with the same numbers and the same model name; mark `single_tier: true` in the corresponding `reference/runtime-models.md` row.
9
+
10
+ ## Pricing (USD per 1M tokens)
11
+
12
+ | Model | Tier | input_per_1m | output_per_1m | cached_input_per_1m |
13
+ |-------|------|--------------|---------------|----------------------|
14
+ | _TBD_ | opus | <TODO> | <TODO> | <TODO> |
15
+ | _TBD_ | sonnet | <TODO> | <TODO> | <TODO> |
16
+ | _TBD_ | haiku | <TODO> | <TODO> | <TODO> |
17
+
18
+ The budget-enforcer treats unparseable rows as missing and falls back to `reference/prices/claude.md` per the D-08 fallback chain.
19
+
20
+ ## Update protocol
21
+
22
+ 1. Confirm authoritative numbers at the runtime author's pricing docs and update; remove `<TODO>` tags.
23
+ 2. Add provenance citation matching the `reference/runtime-models.md` row for `id: "trae"`.
@@ -0,0 +1,21 @@
1
+ # Windsurf — Price Table (stub)
2
+
3
+ **Runtime:** `windsurf` (Windsurf / Codeium)
4
+ **Phase 26 D-08 sub-table — STUB.** Placeholder so the price-table router (`reference/model-prices.md`) has a complete link list for all 14 runtimes. Runtime adapter authors fill this in with provenance citations in a later cycle.
5
+
6
+ **Provenance:** `<TODO: confirm at https://docs.windsurf.com/windsurf/plans>` — pending.
7
+
8
+ ## Pricing (USD per 1M tokens)
9
+
10
+ | Model | Tier | input_per_1m | output_per_1m | cached_input_per_1m |
11
+ |-------|------|--------------|---------------|----------------------|
12
+ | _TBD_ | opus | <TODO> | <TODO> | <TODO> |
13
+ | _TBD_ | sonnet | <TODO> | <TODO> | <TODO> |
14
+ | _TBD_ | haiku | <TODO> | <TODO> | <TODO> |
15
+
16
+ The budget-enforcer treats unparseable rows as missing and falls back to `reference/prices/claude.md` per the D-08 fallback chain.
17
+
18
+ ## Update protocol
19
+
20
+ 1. Confirm authoritative numbers at the runtime author's pricing docs and update; remove `<TODO>` tags.
21
+ 2. Add provenance citation matching the `reference/runtime-models.md` row for `id: "windsurf"`.
@@ -45,6 +45,13 @@
45
45
  "phase": 19.6,
46
46
  "description": "3-invariant framework (body/attention/memory) with grep-able principle→code pairs and reducibility test; wired into design-discussant brief stage"
47
47
  },
48
+ {
49
+ "name": "peer-protocols",
50
+ "path": "reference/peer-protocols.md",
51
+ "type": "meta-rules",
52
+ "phase": 27,
53
+ "description": "Phase 27 ACP + ASP protocol cheat sheet for peer-CLI delegation — line-delimited JSON-RPC framing, initialize/prompt/threadStart/turn lifecycle, per-peer ACP entry points, error-path resolution semantics"
54
+ },
48
55
  {
49
56
  "name": "DEPRECATIONS",
50
57
  "path": "reference/DEPRECATIONS.md",
@@ -452,7 +459,106 @@
452
459
  "name": "model-prices",
453
460
  "path": "reference/model-prices.md",
454
461
  "type": "data",
455
- "description": "Anthropic model pricing table used by the telemetry aggregator"
462
+ "phase": 26,
463
+ "description": "Phase 26 D-08 router — links to per-runtime price sub-tables under reference/prices/<runtime>.md (claude/codex/gemini/qwen canonical, 10 stubs); read by scripts/lib/budget-enforcer.cjs"
464
+ },
465
+ {
466
+ "name": "prices-claude",
467
+ "path": "reference/prices/claude.md",
468
+ "type": "data",
469
+ "phase": 26,
470
+ "description": "Phase 26 D-08 sub-table — Anthropic Claude Code pricing (canonical Anthropic table preserved from v1.25 model-prices.md; haiku/sonnet/opus rows + size_budget token ranges)"
471
+ },
472
+ {
473
+ "name": "prices-codex",
474
+ "path": "reference/prices/codex.md",
475
+ "type": "data",
476
+ "phase": 26,
477
+ "description": "Phase 26 D-08 sub-table — OpenAI Codex CLI pricing (gpt-5/gpt-5-mini/gpt-5-nano seed; provenance <TODO> at https://openai.com/api/pricing/)"
478
+ },
479
+ {
480
+ "name": "prices-gemini",
481
+ "path": "reference/prices/gemini.md",
482
+ "type": "data",
483
+ "phase": 26,
484
+ "description": "Phase 26 D-08 sub-table — Google Gemini CLI pricing (gemini-2.5-pro/flash/flash-lite seed; provenance <TODO> at https://ai.google.dev/pricing)"
485
+ },
486
+ {
487
+ "name": "prices-qwen",
488
+ "path": "reference/prices/qwen.md",
489
+ "type": "data",
490
+ "phase": 26,
491
+ "description": "Phase 26 D-08 sub-table — Alibaba Qwen CLI pricing (qwen3-max/plus/flash seed; provenance <TODO> at https://www.alibabacloud.com/help/en/model-studio/billing-for-models)"
492
+ },
493
+ {
494
+ "name": "prices-kilo",
495
+ "path": "reference/prices/kilo.md",
496
+ "type": "data",
497
+ "phase": 26,
498
+ "description": "Phase 26 D-08 sub-table — Kilo Code pricing (stub; runtime adapter authors fill with provenance citation in a later cycle)"
499
+ },
500
+ {
501
+ "name": "prices-copilot",
502
+ "path": "reference/prices/copilot.md",
503
+ "type": "data",
504
+ "phase": 26,
505
+ "description": "Phase 26 D-08 sub-table — GitHub Copilot CLI pricing (stub; runtime adapter authors fill with provenance citation in a later cycle)"
506
+ },
507
+ {
508
+ "name": "prices-cursor",
509
+ "path": "reference/prices/cursor.md",
510
+ "type": "data",
511
+ "phase": 26,
512
+ "description": "Phase 26 D-08 sub-table — Cursor pricing (stub; runtime adapter authors fill with provenance citation in a later cycle)"
513
+ },
514
+ {
515
+ "name": "prices-windsurf",
516
+ "path": "reference/prices/windsurf.md",
517
+ "type": "data",
518
+ "phase": 26,
519
+ "description": "Phase 26 D-08 sub-table — Windsurf pricing (stub; runtime adapter authors fill with provenance citation in a later cycle)"
520
+ },
521
+ {
522
+ "name": "prices-antigravity",
523
+ "path": "reference/prices/antigravity.md",
524
+ "type": "data",
525
+ "phase": 26,
526
+ "description": "Phase 26 D-08 sub-table — Antigravity pricing (stub; runtime adapter authors fill with provenance citation in a later cycle)"
527
+ },
528
+ {
529
+ "name": "prices-augment",
530
+ "path": "reference/prices/augment.md",
531
+ "type": "data",
532
+ "phase": 26,
533
+ "description": "Phase 26 D-08 sub-table — Augment Code pricing (stub; runtime adapter authors fill with provenance citation in a later cycle)"
534
+ },
535
+ {
536
+ "name": "prices-trae",
537
+ "path": "reference/prices/trae.md",
538
+ "type": "data",
539
+ "phase": 26,
540
+ "description": "Phase 26 D-08 sub-table — Trae pricing (stub; possibly single_tier runtime; runtime adapter authors fill with provenance citation in a later cycle)"
541
+ },
542
+ {
543
+ "name": "prices-codebuddy",
544
+ "path": "reference/prices/codebuddy.md",
545
+ "type": "data",
546
+ "phase": 26,
547
+ "description": "Phase 26 D-08 sub-table — Tencent CodeBuddy pricing (stub; runtime adapter authors fill with provenance citation in a later cycle)"
548
+ },
549
+ {
550
+ "name": "prices-cline",
551
+ "path": "reference/prices/cline.md",
552
+ "type": "data",
553
+ "phase": 26,
554
+ "description": "Phase 26 D-08 sub-table — Cline pricing (stub; BYO-API-key runtime, default model pricing only)"
555
+ },
556
+ {
557
+ "name": "prices-opencode",
558
+ "path": "reference/prices/opencode.md",
559
+ "type": "data",
560
+ "phase": 26,
561
+ "description": "Phase 26 D-08 sub-table — OpenCode pricing (stub; BYO-API-key runtime, default model pricing only)"
456
562
  },
457
563
  {
458
564
  "name": "model-tiers",
@@ -460,6 +566,13 @@
460
566
  "type": "data",
461
567
  "description": "Per-agent default tier map and rationale"
462
568
  },
569
+ {
570
+ "name": "runtime-models",
571
+ "path": "reference/runtime-models.md",
572
+ "type": "data",
573
+ "phase": 26,
574
+ "description": "Phase 26 per-runtime tier→model adapter source-of-truth (D-01) — 14 runtimes (claude/codex/gemini/qwen/kilo/copilot/cursor/windsurf/antigravity/augment/trae/codebuddy/cline/opencode), each row carries opus|sonnet|haiku tier map, high|medium|low reasoning-class alias, and provenance (URL + retrieval timestamp + last-validated cycle); validated against reference/schemas/runtime-models.schema.json"
575
+ },
463
576
  {
464
577
  "name": "motion",
465
578
  "path": "reference/motion.md",
@@ -532,6 +645,13 @@
532
645
  "type": "heuristic",
533
646
  "description": "Rules for serial/parallel agent dispatch and Touches conflict detection"
534
647
  },
648
+ {
649
+ "name": "peer-cli-capabilities",
650
+ "path": "reference/peer-cli-capabilities.md",
651
+ "type": "meta-rules",
652
+ "phase": 27,
653
+ "description": "Phase 27 peer-CLI delegation capability matrix — which peer (codex/copilot/cursor/gemini/qwen) claims which agent role, protocol (ACP/ASP), tie-break order, and opt-in gating semantics"
654
+ },
535
655
  {
536
656
  "name": "performance",
537
657
  "path": "reference/performance.md",