create-quiver 0.14.0 → 0.15.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 (92) hide show
  1. package/CHANGELOG.md +27 -0
  2. package/README.md +187 -518
  3. package/README_FOR_AI.md +39 -27
  4. package/ROADMAP.md +11 -0
  5. package/assets/quiver-wordmark.svg +22 -0
  6. package/docs/AI_CONTEXT.md.template +2 -0
  7. package/docs/AI_ONBOARDING_PROMPT.md.template +9 -1
  8. package/docs/CLI_UX_GUIDE.md +185 -0
  9. package/docs/COMMANDS.md.template +22 -3
  10. package/docs/GITFLOW_PR_GUIDE.md +70 -0
  11. package/docs/getting-started/linux.md +84 -0
  12. package/docs/getting-started/macos.md +85 -0
  13. package/docs/getting-started/windows-git-bash-wsl.md +78 -0
  14. package/docs/getting-started/windows-powershell.md +96 -0
  15. package/docs/reference/commands.md +98 -0
  16. package/docs/workflows/existing-project.md +131 -0
  17. package/docs/workflows/full-ai-spec-to-pr.md +311 -0
  18. package/docs/workflows/legacy-quiver-project.md +102 -0
  19. package/docs/workflows/new-project.md +76 -0
  20. package/package.json +5 -1
  21. package/specs/quiver-v29-planner-prepare-context-cli-ux/EVIDENCE_REPORT.md +163 -0
  22. package/specs/quiver-v29-planner-prepare-context-cli-ux/EXECUTION_PLAN.md +72 -0
  23. package/specs/quiver-v29-planner-prepare-context-cli-ux/SPEC.md +173 -0
  24. package/specs/quiver-v29-planner-prepare-context-cli-ux/STATUS.md +34 -0
  25. package/specs/quiver-v29-planner-prepare-context-cli-ux/pr.md +95 -0
  26. package/specs/quiver-v29-planner-prepare-context-cli-ux/slices/slice-00-cli-ux-spec-foundation/CLOSURE_BRIEF.md +32 -0
  27. package/specs/quiver-v29-planner-prepare-context-cli-ux/slices/slice-00-cli-ux-spec-foundation/EXECUTION_BRIEF.md +45 -0
  28. package/specs/quiver-v29-planner-prepare-context-cli-ux/slices/slice-00-cli-ux-spec-foundation/slice.json +58 -0
  29. package/specs/quiver-v29-planner-prepare-context-cli-ux/slices/slice-01-cli-ux-primitives-theme/CLOSURE_BRIEF.md +33 -0
  30. package/specs/quiver-v29-planner-prepare-context-cli-ux/slices/slice-01-cli-ux-primitives-theme/EXECUTION_BRIEF.md +49 -0
  31. package/specs/quiver-v29-planner-prepare-context-cli-ux/slices/slice-01-cli-ux-primitives-theme/slice.json +75 -0
  32. package/specs/quiver-v29-planner-prepare-context-cli-ux/slices/slice-02-planner-context-proposal-contract/CLOSURE_BRIEF.md +32 -0
  33. package/specs/quiver-v29-planner-prepare-context-cli-ux/slices/slice-02-planner-context-proposal-contract/EXECUTION_BRIEF.md +47 -0
  34. package/specs/quiver-v29-planner-prepare-context-cli-ux/slices/slice-02-planner-context-proposal-contract/slice.json +71 -0
  35. package/specs/quiver-v29-planner-prepare-context-cli-ux/slices/slice-03-prepare-context-planner-review-flow/CLOSURE_BRIEF.md +33 -0
  36. package/specs/quiver-v29-planner-prepare-context-cli-ux/slices/slice-03-prepare-context-planner-review-flow/EXECUTION_BRIEF.md +52 -0
  37. package/specs/quiver-v29-planner-prepare-context-cli-ux/slices/slice-03-prepare-context-planner-review-flow/slice.json +82 -0
  38. package/specs/quiver-v29-planner-prepare-context-cli-ux/slices/slice-04-ux-flag-matrix-compatibility/CLOSURE_BRIEF.md +34 -0
  39. package/specs/quiver-v29-planner-prepare-context-cli-ux/slices/slice-04-ux-flag-matrix-compatibility/EXECUTION_BRIEF.md +46 -0
  40. package/specs/quiver-v29-planner-prepare-context-cli-ux/slices/slice-04-ux-flag-matrix-compatibility/slice.json +73 -0
  41. package/specs/quiver-v29-planner-prepare-context-cli-ux/slices/slice-05-progressive-command-adoption/CLOSURE_BRIEF.md +34 -0
  42. package/specs/quiver-v29-planner-prepare-context-cli-ux/slices/slice-05-progressive-command-adoption/EXECUTION_BRIEF.md +46 -0
  43. package/specs/quiver-v29-planner-prepare-context-cli-ux/slices/slice-05-progressive-command-adoption/slice.json +83 -0
  44. package/specs/quiver-v29-planner-prepare-context-cli-ux/slices/slice-06-docs-tests-smoke-readiness/CLOSURE_BRIEF.md +31 -0
  45. package/specs/quiver-v29-planner-prepare-context-cli-ux/slices/slice-06-docs-tests-smoke-readiness/EXECUTION_BRIEF.md +50 -0
  46. package/specs/quiver-v29-planner-prepare-context-cli-ux/slices/slice-06-docs-tests-smoke-readiness/slice.json +95 -0
  47. package/specs/quiver-v30-interactive-cli-ux-agent-selection/EVIDENCE_REPORT.md +213 -0
  48. package/specs/quiver-v30-interactive-cli-ux-agent-selection/EXECUTION_PLAN.md +85 -0
  49. package/specs/quiver-v30-interactive-cli-ux-agent-selection/SPEC.md +213 -0
  50. package/specs/quiver-v30-interactive-cli-ux-agent-selection/STATUS.md +31 -0
  51. package/specs/quiver-v30-interactive-cli-ux-agent-selection/pr.md +103 -0
  52. package/specs/quiver-v30-interactive-cli-ux-agent-selection/slices/slice-00-spec-foundation/CLOSURE_BRIEF.md +33 -0
  53. package/specs/quiver-v30-interactive-cli-ux-agent-selection/slices/slice-00-spec-foundation/EXECUTION_BRIEF.md +56 -0
  54. package/specs/quiver-v30-interactive-cli-ux-agent-selection/slices/slice-00-spec-foundation/slice.json +71 -0
  55. package/specs/quiver-v30-interactive-cli-ux-agent-selection/slices/slice-01-cli-ux-runtime-progress-engine/CLOSURE_BRIEF.md +31 -0
  56. package/specs/quiver-v30-interactive-cli-ux-agent-selection/slices/slice-01-cli-ux-runtime-progress-engine/EXECUTION_BRIEF.md +54 -0
  57. package/specs/quiver-v30-interactive-cli-ux-agent-selection/slices/slice-01-cli-ux-runtime-progress-engine/slice.json +69 -0
  58. package/specs/quiver-v30-interactive-cli-ux-agent-selection/slices/slice-02-agent-profile-selection-selectors/CLOSURE_BRIEF.md +33 -0
  59. package/specs/quiver-v30-interactive-cli-ux-agent-selection/slices/slice-02-agent-profile-selection-selectors/EXECUTION_BRIEF.md +56 -0
  60. package/specs/quiver-v30-interactive-cli-ux-agent-selection/slices/slice-02-agent-profile-selection-selectors/slice.json +81 -0
  61. package/specs/quiver-v30-interactive-cli-ux-agent-selection/slices/slice-03-provider-model-selection-contract/CLOSURE_BRIEF.md +32 -0
  62. package/specs/quiver-v30-interactive-cli-ux-agent-selection/slices/slice-03-provider-model-selection-contract/EXECUTION_BRIEF.md +54 -0
  63. package/specs/quiver-v30-interactive-cli-ux-agent-selection/slices/slice-03-provider-model-selection-contract/slice.json +75 -0
  64. package/specs/quiver-v30-interactive-cli-ux-agent-selection/slices/slice-04-planner-ia-progress-flows/CLOSURE_BRIEF.md +32 -0
  65. package/specs/quiver-v30-interactive-cli-ux-agent-selection/slices/slice-04-planner-ia-progress-flows/EXECUTION_BRIEF.md +57 -0
  66. package/specs/quiver-v30-interactive-cli-ux-agent-selection/slices/slice-04-planner-ia-progress-flows/slice.json +85 -0
  67. package/specs/quiver-v30-interactive-cli-ux-agent-selection/slices/slice-05-executor-pr-progress-flows/CLOSURE_BRIEF.md +33 -0
  68. package/specs/quiver-v30-interactive-cli-ux-agent-selection/slices/slice-05-executor-pr-progress-flows/EXECUTION_BRIEF.md +57 -0
  69. package/specs/quiver-v30-interactive-cli-ux-agent-selection/slices/slice-05-executor-pr-progress-flows/slice.json +85 -0
  70. package/specs/quiver-v30-interactive-cli-ux-agent-selection/slices/slice-06-doctor-visual-json-contract/CLOSURE_BRIEF.md +35 -0
  71. package/specs/quiver-v30-interactive-cli-ux-agent-selection/slices/slice-06-doctor-visual-json-contract/EXECUTION_BRIEF.md +55 -0
  72. package/specs/quiver-v30-interactive-cli-ux-agent-selection/slices/slice-06-doctor-visual-json-contract/slice.json +81 -0
  73. package/specs/quiver-v30-interactive-cli-ux-agent-selection/slices/slice-07-interactive-init-spec-create/CLOSURE_BRIEF.md +34 -0
  74. package/specs/quiver-v30-interactive-cli-ux-agent-selection/slices/slice-07-interactive-init-spec-create/EXECUTION_BRIEF.md +55 -0
  75. package/specs/quiver-v30-interactive-cli-ux-agent-selection/slices/slice-07-interactive-init-spec-create/slice.json +85 -0
  76. package/specs/quiver-v30-interactive-cli-ux-agent-selection/slices/slice-08-tests-docs-cross-platform-release/CLOSURE_BRIEF.md +34 -0
  77. package/specs/quiver-v30-interactive-cli-ux-agent-selection/slices/slice-08-tests-docs-cross-platform-release/EXECUTION_BRIEF.md +59 -0
  78. package/specs/quiver-v30-interactive-cli-ux-agent-selection/slices/slice-08-tests-docs-cross-platform-release/slice.json +95 -0
  79. package/src/create-quiver/commands/ai.js +809 -71
  80. package/src/create-quiver/commands/spec.js +167 -5
  81. package/src/create-quiver/index.js +582 -71
  82. package/src/create-quiver/lib/agent-profiles.js +111 -10
  83. package/src/create-quiver/lib/ai/context-proposal.js +389 -0
  84. package/src/create-quiver/lib/ai/context-proposal.schema.js +31 -0
  85. package/src/create-quiver/lib/ai/execution-plan.js +106 -8
  86. package/src/create-quiver/lib/ai/executor.js +284 -28
  87. package/src/create-quiver/lib/ai/providers.js +71 -1
  88. package/src/create-quiver/lib/cli/editor.js +118 -0
  89. package/src/create-quiver/lib/cli/selectors.js +107 -0
  90. package/src/create-quiver/lib/cli/theme.js +103 -0
  91. package/src/create-quiver/lib/cli/ux-flags.js +169 -0
  92. package/src/create-quiver/lib/cli/ux.js +225 -0
@@ -0,0 +1,31 @@
1
+ # CLOSURE_BRIEF - slice-06 Docs, tests, smoke, and release readiness
2
+
3
+ ## Summary
4
+
5
+ Completed final documentation, template, workflow, test, smoke, package, and tarball readiness for Quiver v29.
6
+
7
+ ## Validation Against Acceptance Criteria
8
+
9
+ - Documentation now covers deterministic and planner-assisted `ai prepare-context`, guarded UX flags, review/interactive flows, color tokens, JSON/CI/no-TTY behavior, and command applicability.
10
+ - `README_FOR_AI.md` is synchronized with implemented behavior and records v29 as implemented but pending package publication.
11
+ - Generated templates now include planner-assisted context guidance and UX flag rules.
12
+ - Full tests, focused tests, smoke commands, package validation, tarball dry-run, spec validation, handoff validation, JSON validation, and diff check passed.
13
+
14
+ ## Relevant Changes
15
+
16
+ - Added `docs/CLI_UX_GUIDE.md`.
17
+ - Updated `README.md`, `README_FOR_AI.md`, `docs/reference/commands.md`, generated templates, workflow guides, `CHANGELOG.md`, and `ROADMAP.md`.
18
+ - Updated spec status, evidence, and slice metadata.
19
+
20
+ ## Pending Work
21
+
22
+ - Npm publication and PR creation are outside this slice unless explicitly requested later.
23
+
24
+ ## Remaining Risks
25
+
26
+ - Package version remains `0.14.0`; publication/version bump is intentionally outside this slice.
27
+ - The npm CLI printed an update notice for npm `11.12.1 -> 11.15.0`; it did not block validation.
28
+
29
+ ## Future Recommendations
30
+
31
+ - Use dogfooding findings from the first planner-assisted projects to scope the next UX adoption batch.
@@ -0,0 +1,50 @@
1
+ # EXECUTION_BRIEF - slice-06 Docs, tests, smoke, and release readiness
2
+
3
+ ## Context
4
+
5
+ This is the final Quiver v29 slice. It must reconcile implementation, documentation, generated templates, tests, and package safety.
6
+
7
+ ## Objective
8
+
9
+ Close the spec with complete documentation and validation evidence.
10
+
11
+ ## Scope
12
+
13
+ - Update public and AI-facing docs.
14
+ - Add or update `docs/CLI_UX_GUIDE.md`.
15
+ - Update command references and templates.
16
+ - Run full tests and smoke commands.
17
+ - Update spec status, evidence, and closure briefs.
18
+
19
+ ## Acceptance Criteria
20
+
21
+ - Documentation matches implemented behavior.
22
+ - README_FOR_AI.md remains source-of-truth aligned.
23
+ - Tests and package smoke pass.
24
+ - Any blocker is explicitly documented.
25
+
26
+ ## Suggested Steps
27
+
28
+ 1. Compare implementation against `SPEC.md`.
29
+ 2. Update docs and templates.
30
+ 3. Run focused tests, then full test suite.
31
+ 4. Run smoke/package commands.
32
+ 5. Update status/evidence/closure docs.
33
+
34
+ ## Restrictions
35
+
36
+ - Do not add new behavior in this slice unless required to fix a validation failure from prior slices.
37
+ - Do not publish npm.
38
+ - Do not open PR.
39
+
40
+ ## Risks
41
+
42
+ - Docs can easily drift from real behavior. Verify against `node bin/create-quiver.js --help`.
43
+
44
+ ## Completion Checklist
45
+
46
+ - [ ] Docs synchronized.
47
+ - [ ] Full tests run.
48
+ - [ ] Smoke/package validation run.
49
+ - [ ] Spec status updated.
50
+ - [ ] Final risks recorded.
@@ -0,0 +1,95 @@
1
+ {
2
+ "slice_id": "slice-06-docs-tests-smoke-readiness",
3
+ "ticket": "QUIVER-29-06",
4
+ "type": "docs",
5
+ "title": "Docs, tests, smoke, and release readiness",
6
+ "objective": "Close the spec by synchronizing documentation, templates, tests, package safety, and release evidence.",
7
+ "description": "Ensures the implemented CLI UX standard and planner-assisted prepare-context flow are documented, tested, and package-ready.",
8
+ "git": {
9
+ "branch_type": "feature",
10
+ "base_branch": "main",
11
+ "branch_slug": "v29-docs-tests-smoke-readiness",
12
+ "branch_name": "feature/QUIVER-29-06-v29-docs-tests-smoke-readiness"
13
+ },
14
+ "files": [
15
+ "README.md",
16
+ "README_FOR_AI.md",
17
+ "CHANGELOG.md",
18
+ "ROADMAP.md",
19
+ "docs/COMMANDS.md.template",
20
+ "docs/AI_CONTEXT.md.template",
21
+ "docs/AI_ONBOARDING_PROMPT.md.template",
22
+ "docs/CLI_UX_GUIDE.md",
23
+ "docs/reference/commands.md",
24
+ "docs/workflows/*.md",
25
+ "tests/**",
26
+ "specs/quiver-v29-planner-prepare-context-cli-ux/**"
27
+ ],
28
+ "expected_read_paths": [
29
+ "README.md",
30
+ "README_FOR_AI.md",
31
+ "docs/**",
32
+ "tests/**",
33
+ "scripts/package-quiver.sh",
34
+ "scripts/ci/**"
35
+ ],
36
+ "allowed_write_paths": [
37
+ "README.md",
38
+ "README_FOR_AI.md",
39
+ "CHANGELOG.md",
40
+ "ROADMAP.md",
41
+ "docs/COMMANDS.md.template",
42
+ "docs/AI_CONTEXT.md.template",
43
+ "docs/AI_ONBOARDING_PROMPT.md.template",
44
+ "docs/CLI_UX_GUIDE.md",
45
+ "docs/reference/commands.md",
46
+ "docs/workflows/*.md",
47
+ "tests/**",
48
+ "specs/quiver-v29-planner-prepare-context-cli-ux/**"
49
+ ],
50
+ "depends_on": [
51
+ "slice-02-planner-context-proposal-contract",
52
+ "slice-03-prepare-context-planner-review-flow",
53
+ "slice-04-ux-flag-matrix-compatibility",
54
+ "slice-05-progressive-command-adoption"
55
+ ],
56
+ "parallel_safe": "no",
57
+ "parallel_safe_reason": "Final validation and docs sync must run after all behavior slices.",
58
+ "must": [
59
+ "Document the UX standard, color tokens, and flag matrix.",
60
+ "Document deterministic and planner-assisted prepare-context flows.",
61
+ "Update generated templates where needed.",
62
+ "Run full test and smoke suite.",
63
+ "Record validation evidence in the spec.",
64
+ "Keep README_FOR_AI.md synchronized with implemented behavior."
65
+ ],
66
+ "not_included": [
67
+ "Publishing npm.",
68
+ "Opening the final PR.",
69
+ "Adding new behavior beyond closing docs/tests."
70
+ ],
71
+ "acceptance": [
72
+ "Docs do not contradict implemented command behavior.",
73
+ "Generated docs/templates include the new UX and planner guidance.",
74
+ "Full tests and smoke commands pass or documented blockers are explicit.",
75
+ "Package/tarball dry-run is clean.",
76
+ "Spec status and closure briefs reflect final implementation state."
77
+ ],
78
+ "tests": [
79
+ "node --test tests/**/*.test.js",
80
+ "npm run smoke:create-quiver",
81
+ "npm run smoke:doctor-fixtures",
82
+ "npm run smoke:guided-workflow",
83
+ "npm run package:quiver",
84
+ "npm pack --dry-run",
85
+ "git diff --check"
86
+ ],
87
+ "validation_hints": [
88
+ "Run this slice last.",
89
+ "Check README_FOR_AI.md against actual CLI behavior before closing."
90
+ ],
91
+ "estimated_hours": 6,
92
+ "actual_hours": 4,
93
+ "status": "completed",
94
+ "completed_at": "2026-05-26"
95
+ }
@@ -0,0 +1,213 @@
1
+ # Evidence Report - Quiver v30 Interactive CLI UX and Agent Selection
2
+
3
+ ## Summary
4
+
5
+ This report records the evidence for every v30 slice, from the documentation foundation through final release readiness.
6
+
7
+ ## slice-00 - Spec foundation
8
+
9
+ ### Completed
10
+
11
+ - Create v30 spec folder.
12
+ - Create `SPEC.md`, `STATUS.md`, `EVIDENCE_REPORT.md`, `EXECUTION_PLAN.md`, and `pr.md`.
13
+ - Create every slice folder with `slice.json`, `EXECUTION_BRIEF.md`, and `CLOSURE_BRIEF.md`.
14
+ - Sync source-of-truth planning docs with v29 release status and v30 planned scope.
15
+
16
+ ### Validation
17
+
18
+ - `find specs/quiver-v30-interactive-cli-ux-agent-selection -name 'slice.json' -print -exec node -e "JSON.parse(require('fs').readFileSync(process.argv[1], 'utf8')); console.log('ok', process.argv[1])" {} \;` passed for 9 slice files.
19
+ - `git diff --check` passed.
20
+ - `node bin/create-quiver.js spec validate specs/quiver-v30-interactive-cli-ux-agent-selection` passed and reported 9 slices.
21
+
22
+ ### Risks Observed During Validation
23
+
24
+ - None for the documentation package.
25
+
26
+ ## Later Slices
27
+
28
+ Each implementation slice appended:
29
+
30
+ - commands executed;
31
+ - tests or smokes run;
32
+ - files changed;
33
+ - validation result;
34
+ - UX/machine-output evidence;
35
+ - remaining risks;
36
+ - evidence location.
37
+
38
+ ## slice-01 - CLI UX runtime and progress engine
39
+
40
+ ### Completed
41
+
42
+ - Extended `src/create-quiver/lib/cli/theme.js` with section, success, warning, and error semantics while keeping the approved Quiver palette centralized.
43
+ - Extended `src/create-quiver/lib/cli/ux.js` with helpers for sections, checks, warnings, errors, summaries, next steps, and task groups.
44
+ - Hardened spinner stop behavior so a spinner is stopped once on success or failure.
45
+ - Added tests for branded human hierarchy, plain no-TTY fallback, JSON suppression, and real stage execution through `taskGroup`.
46
+
47
+ ### Validation
48
+
49
+ - `node --test tests/lib/cli-theme.test.js tests/lib/cli-ux.test.js` passed: 15 tests.
50
+ - `git diff --check` passed.
51
+
52
+ ### Risks
53
+
54
+ - Command adoption is intentionally deferred to later slices; this slice only adds the runtime.
55
+
56
+ ## slice-02 - Agent profile selection and selectors
57
+
58
+ ### Completed
59
+
60
+ - Added backward-compatible multiple named agent profiles per role.
61
+ - Kept legacy single-profile behavior by preserving the default profile under `profiles.<role>`.
62
+ - Added profile sets under `profile_sets.<role>s`.
63
+ - Added display-name resolution order for profile output.
64
+ - Added CLI flags for profile identity and future selectors: `--id`, `--display-name`, `--default`, `--planner`, `--executor`, `--reviewer`, `--doctor`, and `--methodology`.
65
+ - Added `src/create-quiver/lib/cli/selectors.js` for reusable interactive/non-interactive selection.
66
+ - Extended `ai agent set/list/show` for named profiles.
67
+
68
+ ### Validation
69
+
70
+ - `node --test tests/lib/agent-profiles.test.js tests/lib/cli-selectors.test.js tests/commands/ai-agent.test.js` passed: 16 tests.
71
+ - `git diff --check` passed.
72
+ - `node bin/create-quiver.js spec validate specs/quiver-v30-interactive-cli-ux-agent-selection` passed.
73
+
74
+ ### Risks
75
+
76
+ - Command flows do not yet consume the new profile selector flags; that adoption belongs to later slices.
77
+ - Provider model correctness is not enforced until slice-03.
78
+
79
+ ## slice-03 - Provider model selection contract
80
+
81
+ ### Completed
82
+
83
+ - Added provider adapter metadata for model selection support and model argument construction.
84
+ - Added model-selection metadata to provider invocations and dry-run results.
85
+ - Added live execution enforcement so selected models are passed to provider adapters or block with actionable guidance when unsupported.
86
+ - Wired planner/reviewer profile model selection into `ai onboard`, `ai prepare-context --with-planner`, `ai plan`, `ai review-plan`, `ai repair-plan`, and `ai revise`.
87
+ - Added command flag propagation for `--model`, `--planner`, and `--reviewer` in planner/reviewer flows.
88
+ - Documented the model-selection contract in `docs/CLI_UX_GUIDE.md` and synchronized `README_FOR_AI.md`.
89
+
90
+ ### Validation
91
+
92
+ - `node --test tests/lib/ai-providers.test.js tests/commands/ai-agent.test.js tests/commands/ai-onboard.test.js tests/commands/ai-plan.test.js tests/commands/ai-review-plan.test.js tests/commands/ai-prepare-context-planner.test.js` passed: 72 tests.
93
+ - `git diff --check` passed.
94
+ - `node bin/create-quiver.js spec validate specs/quiver-v30-interactive-cli-ux-agent-selection` passed.
95
+
96
+ ### Risks
97
+
98
+ - Provider model flags are implemented through the current adapter contract. Installed provider CLIs can still vary by version, so later release validation should dogfood dry-run and live commands with available local CLIs.
99
+ - Executor provider/model propagation remains for slice-05.
100
+
101
+ ## slice-04 - Planner IA progress flows
102
+
103
+ ### Completed
104
+
105
+ - Added a shared command UX bridge for planner-oriented IA commands.
106
+ - Added visible TTY progress for `ai onboard`, `ai prepare-context --with-planner`, `ai plan`, `ai review-plan`, `ai repair-plan`, and `ai revise`.
107
+ - Progress headings use the selected profile/model display name when available.
108
+ - Provider execution now runs inside a spinner in human TTY mode and stops on both success and provider failure.
109
+ - `--dry-run`, `--print-prompt`, CI, and non-TTY output remain free of progress noise.
110
+ - Updated `docs/CLI_UX_GUIDE.md` and `README_FOR_AI.md` with the progress-output standard.
111
+
112
+ ### Validation
113
+
114
+ - `node --test tests/commands/ai-prepare-context-planner.test.js tests/commands/ai-onboard.test.js tests/commands/ai-plan.test.js tests/commands/ai-review-plan.test.js tests/lib/cli-ux.test.js` passed: 65 tests.
115
+ - `git diff --check` passed.
116
+
117
+ ### Risks
118
+
119
+ - Some direct unit tests run with a TTY can display clack spinner artifacts in the test log, although captured no-TTY output remains clean. Slice-08 should include a final full-suite check and adjust test harness mode if needed.
120
+ - Executor and PR command progress remains for slice-05.
121
+
122
+ ## slice-05 - Executor, execution-plan, and PR progress flows
123
+
124
+ ### Completed
125
+
126
+ - Added executor runtime profile/model resolution and provider model enforcement to `ai execute-slice`.
127
+ - Added interactive ready-slice selection for `ai execute-slice --interactive` when `--slice` is omitted.
128
+ - Added interactive executor profile selection when multiple executor profiles are configured.
129
+ - Added TTY progress for executor provider execution, validation commands, slice commits, execution-plan waves, GitHub preflight, and PR creation.
130
+ - Added model visibility to execute-slice and execute-plan dry-runs.
131
+ - Extended UX flag support to `ai execute-slice` and `ai execute-plan` for `--interactive`.
132
+ - Preserved clean JSON/no-TTY behavior and existing PR/gh error propagation.
133
+
134
+ ### Validation
135
+
136
+ - `node --test tests/lib/ai-executor.test.js tests/commands/ai-execute-slice.test.js tests/lib/ai-execution-plan.test.js tests/commands/ai-execute-plan.test.js tests/commands/ai-pr.test.js tests/commands/ux-flags.test.js` passed: 54 tests.
137
+ - `git diff --check` passed.
138
+
139
+ ### Risks
140
+
141
+ - `ai execute-plan --interactive` is now accepted for strategy UX consistency, but this slice does not yet add a full strategy selector. Future UX work can add it without changing the safety contract.
142
+ - Direct TTY unit runs can still show spinner artifacts in logs; final suite validation should decide whether to force test I/O to no-TTY.
143
+
144
+ ## slice-06 - Doctor visual and JSON contract
145
+
146
+ ### Completed
147
+
148
+ - Added a shared Doctor command report with stable fields for `schema_version`, `status`, `exit_code`, `checks`, `suggested_fixes`, `warnings`, and `errors`.
149
+ - Rendered human Doctor output with the required `Quiver Doctor`, `Checks`, and `Suggested fixes` hierarchy.
150
+ - Added `doctor --json` output that is parseable, machine-clean, and backed by the same checks as human output.
151
+ - Preserved deterministic exit-code behavior: warnings remain exit code 0 and blocking layout errors set exit code 1.
152
+ - Kept `doctor --fix --dry-run` behavior and added clean JSON behavior for `doctor --fix --dry-run --json`.
153
+ - Updated Doctor documentation in `docs/CLI_UX_GUIDE.md`, `docs/reference/commands.md`, and `README_FOR_AI.md`.
154
+
155
+ ### Validation
156
+
157
+ - `node --test tests/commands/doctor.test.js tests/lib/doctor.test.js tests/lib/cli-ux.test.js` passed: 29 tests.
158
+ - `npm run smoke:doctor-fixtures` passed: 13 fixture states.
159
+ - `git diff --check` passed.
160
+
161
+ ### Risks
162
+
163
+ - Local environment checks can still add host-dependent warnings, for example `gh auth` status. That behavior existed before this slice and remains visible through the shared check model.
164
+ - Downstream JSON consumers should pin to `schema_version: 1` and avoid parsing human text.
165
+
166
+ ## slice-07 - Interactive init and spec create flows
167
+
168
+ ### Completed
169
+
170
+ - Added guarded `init --interactive` flow for project mode, methodology, init profile, and optional agent-profile guidance.
171
+ - Added `--methodology wdd-sdd` validation and documented that no other methodology is currently supported.
172
+ - Added `spec create --interactive` selectors for methodology, approved plan input, and direct-vs-review mode.
173
+ - Added summaries before persistent writes for interactive init/spec-create flows.
174
+ - Added explicit no-TTY failure for interactive init/spec-create so CI and scripts do not hang.
175
+ - Extended UX flag support to `init --interactive`.
176
+ - Updated help text, CLI UX guide, command reference, and `README_FOR_AI.md`.
177
+
178
+ ### Validation
179
+
180
+ - `node --test tests/commands/init-profiles.test.js tests/commands/spec-create.test.js tests/commands/ux-flags.test.js tests/commands/cli-contract.test.js` passed: 39 tests.
181
+ - `node bin/create-quiver.js --help` showed the updated interactive init example and methodology flag.
182
+ - `git diff --check` passed.
183
+
184
+ ### Risks
185
+
186
+ - The `init --interactive` validation-only path delegates to `doctor`, which still requires Quiver initialization evidence in the target project.
187
+ - The spec-create approved-input selector currently exposes the resolved approved technical-plan input. Wider selection across historical approved inputs is intentionally deferred until the approval store defines that as a stable contract.
188
+
189
+ ## slice-08 - Tests, docs, cross-platform smokes, and release readiness
190
+
191
+ ### Completed
192
+
193
+ - Synchronized release-facing documentation for the v30 CLI UX behavior.
194
+ - Updated command templates with `init --interactive`, `doctor --json`, `spec create --interactive`, `--methodology wdd-sdd`, and interactive human-output guidance.
195
+ - Updated `README.md`, `README_FOR_AI.md`, `ROADMAP.md`, and `CHANGELOG.md` with the implemented v30 behavior.
196
+ - Closed the v30 spec metadata and PR body with final validation evidence.
197
+ - Confirmed release readiness without publishing to npm.
198
+
199
+ ### Validation
200
+
201
+ - `node --test tests/**/*.test.js` passed: 449 tests.
202
+ - `npm run smoke:create-quiver` passed.
203
+ - `npm run smoke:guided-workflow` passed.
204
+ - `npm run smoke:doctor-fixtures` passed: 13 fixture states.
205
+ - `npm run package:quiver` passed and produced package-smoke evidence for `create-quiver-0.14.1.tgz`.
206
+ - `npm pack --dry-run` passed.
207
+ - `git diff --check` passed.
208
+ - `node bin/create-quiver.js spec validate specs/quiver-v30-interactive-cli-ux-agent-selection` passed.
209
+
210
+ ### Risks
211
+
212
+ - Live provider smoke tests were not executed against every external IA CLI because those checks depend on local provider installation and authentication.
213
+ - Cross-platform behavior is covered by documented script-safe modes and automated command contracts, but final human terminal rendering should still be dogfooded on Windows PowerShell, Git Bash, WSL, macOS, and Linux before broad announcement.
@@ -0,0 +1,85 @@
1
+ # Execution Plan - Quiver v30 Interactive CLI UX and Agent Selection
2
+
3
+ ## Execution Order
4
+
5
+ ```mermaid
6
+ flowchart TD
7
+ S00[slice-00: Spec foundation and source-of-truth sync]
8
+ S01[slice-01: CLI UX runtime and progress engine]
9
+ S02[slice-02: Agent profile selection and selectors]
10
+ S03[slice-03: Provider model selection contract]
11
+ S04[slice-04: Planner IA progress flows]
12
+ S05[slice-05: Executor, execution-plan, and PR progress flows]
13
+ S06[slice-06: Doctor visual and JSON contract]
14
+ S07[slice-07: Interactive init and spec create flows]
15
+ S08[slice-08: Tests, docs, cross-platform smokes, and release readiness]
16
+
17
+ S00 --> S01
18
+ S01 --> S02
19
+ S02 --> S03
20
+ S01 --> S06
21
+ S01 --> S07
22
+ S02 --> S07
23
+ S03 --> S04
24
+ S03 --> S05
25
+ S04 --> S08
26
+ S05 --> S08
27
+ S06 --> S08
28
+ S07 --> S08
29
+ ```
30
+
31
+ ## Waves
32
+
33
+ ### Wave 0 - Sequential
34
+
35
+ 1. `slice-00-spec-foundation`
36
+
37
+ This slice must run first. It commits the approved spec, all slices, handoffs, execution plan, PR body, and source-of-truth documentation sync.
38
+
39
+ ### Wave 1 - Sequential
40
+
41
+ 1. `slice-01-cli-ux-runtime-progress-engine`
42
+
43
+ Shared UX runtime and progress lifecycle must exist before command adoption.
44
+
45
+ ### Wave 2 - Sequential Core Selection
46
+
47
+ 1. `slice-02-agent-profile-selection-selectors`
48
+ 2. `slice-03-provider-model-selection-contract`
49
+
50
+ Profile selectors must land before provider model execution semantics so selected models and display names map to real provider invocations.
51
+
52
+ ### Wave 3 - Parallel after slice-03
53
+
54
+ - `slice-04-planner-ia-progress-flows`
55
+ - `slice-05-executor-pr-progress-flows`
56
+ - `slice-06-doctor-visual-json-contract`
57
+ - `slice-07-interactive-init-spec-create`
58
+
59
+ These can run in parallel if their write scopes stay separated. Resolve conflicts in `src/create-quiver/commands/ai.js` by landing planner flows before executor/PR flows if needed.
60
+
61
+ ### Wave 4 - Sequential Close
62
+
63
+ 1. `slice-08-tests-docs-cross-platform-release`
64
+
65
+ This slice validates all previous work, updates final docs/templates, and prepares package release evidence.
66
+
67
+ ## Parallel Safety Notes
68
+
69
+ - Do not run any implementation slice before `slice-00`.
70
+ - Do not adopt command progress before `slice-01`.
71
+ - Do not show profile/model display names in live IA flows before `slice-03` proves selected models map to real provider invocations.
72
+ - `slice-04` and `slice-05` may both touch `commands/ai.js`; if conflicts are likely, run `slice-04` first.
73
+ - `slice-08` is never parallel-safe because it closes docs, tests, smokes, and release readiness.
74
+
75
+ ## Recommended Commit Order
76
+
77
+ 1. `docs: add v30 interactive cli ux spec`
78
+ 2. `feat: add cli ux progress runtime`
79
+ 3. `feat: add agent profile selectors`
80
+ 4. `feat: add provider model selection contract`
81
+ 5. `feat: add planner progress flows`
82
+ 6. `feat: add executor and pr progress flows`
83
+ 7. `feat: add doctor visual json contract`
84
+ 8. `feat: add interactive init and spec create`
85
+ 9. `docs: close v30 cli ux release readiness`