create-quiver 0.10.0 → 0.12.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/BACKLOG.md +16 -17
- package/CHANGELOG.md +78 -0
- package/README.md +208 -41
- package/README_FOR_AI.md +50 -24
- package/ROADMAP.md +34 -11
- package/docs/AI_CONTEXT.md.template +2 -0
- package/docs/AI_ONBOARDING_PROMPT.md.template +31 -18
- package/docs/COMMANDS.md.template +90 -16
- package/docs/CONTEXTO.md.template +2 -0
- package/docs/DECISIONS.md.template +1 -0
- package/docs/INDEX.md.template +20 -18
- package/docs/STATUS.md.template +6 -1
- package/docs/SUPPORT_MATRIX.md.template +2 -2
- package/docs/TROUBLESHOOTING.md.template +50 -0
- package/docs/WORKFLOW.md.template +27 -17
- package/package.json +27 -4
- package/package.template.json +13 -1
- package/scripts/init-docs.sh +11 -4
- package/scripts/package-quiver.sh +18 -2
- package/specs/quiver-v22-guided-ai-workflow/EVIDENCE_REPORT.md +58 -0
- package/specs/quiver-v22-guided-ai-workflow/EXECUTION_PLAN.md +88 -0
- package/specs/quiver-v22-guided-ai-workflow/SPEC.md +228 -0
- package/specs/quiver-v22-guided-ai-workflow/STATUS.md +42 -0
- package/specs/quiver-v22-guided-ai-workflow/pr.md +104 -0
- package/specs/quiver-v22-guided-ai-workflow/slices/slice-00-spec-foundation/CLOSURE_BRIEF.md +35 -0
- package/specs/quiver-v22-guided-ai-workflow/slices/slice-00-spec-foundation/EXECUTION_BRIEF.md +61 -0
- package/specs/quiver-v22-guided-ai-workflow/slices/slice-00-spec-foundation/slice.json +51 -0
- package/specs/quiver-v22-guided-ai-workflow/slices/slice-01-docs-source-of-truth-sync/CLOSURE_BRIEF.md +31 -0
- package/specs/quiver-v22-guided-ai-workflow/slices/slice-01-docs-source-of-truth-sync/EXECUTION_BRIEF.md +58 -0
- package/specs/quiver-v22-guided-ai-workflow/slices/slice-01-docs-source-of-truth-sync/slice.json +55 -0
- package/specs/quiver-v22-guided-ai-workflow/slices/slice-02-prepare-command-diagnostics/CLOSURE_BRIEF.md +30 -0
- package/specs/quiver-v22-guided-ai-workflow/slices/slice-02-prepare-command-diagnostics/EXECUTION_BRIEF.md +57 -0
- package/specs/quiver-v22-guided-ai-workflow/slices/slice-02-prepare-command-diagnostics/slice.json +57 -0
- package/specs/quiver-v22-guided-ai-workflow/slices/slice-03-context-doc-refresh/CLOSURE_BRIEF.md +32 -0
- package/specs/quiver-v22-guided-ai-workflow/slices/slice-03-context-doc-refresh/EXECUTION_BRIEF.md +56 -0
- package/specs/quiver-v22-guided-ai-workflow/slices/slice-03-context-doc-refresh/slice.json +56 -0
- package/specs/quiver-v22-guided-ai-workflow/slices/slice-04-planner-approval-state/CLOSURE_BRIEF.md +33 -0
- package/specs/quiver-v22-guided-ai-workflow/slices/slice-04-planner-approval-state/EXECUTION_BRIEF.md +56 -0
- package/specs/quiver-v22-guided-ai-workflow/slices/slice-04-planner-approval-state/slice.json +58 -0
- package/specs/quiver-v22-guided-ai-workflow/slices/slice-05-spec-worktree-lifecycle/CLOSURE_BRIEF.md +32 -0
- package/specs/quiver-v22-guided-ai-workflow/slices/slice-05-spec-worktree-lifecycle/EXECUTION_BRIEF.md +56 -0
- package/specs/quiver-v22-guided-ai-workflow/slices/slice-05-spec-worktree-lifecycle/slice.json +54 -0
- package/specs/quiver-v22-guided-ai-workflow/slices/slice-06-executor-commit-recovery/CLOSURE_BRIEF.md +32 -0
- package/specs/quiver-v22-guided-ai-workflow/slices/slice-06-executor-commit-recovery/EXECUTION_BRIEF.md +58 -0
- package/specs/quiver-v22-guided-ai-workflow/slices/slice-06-executor-commit-recovery/slice.json +57 -0
- package/specs/quiver-v22-guided-ai-workflow/slices/slice-07-execution-waves-delegation/CLOSURE_BRIEF.md +32 -0
- package/specs/quiver-v22-guided-ai-workflow/slices/slice-07-execution-waves-delegation/EXECUTION_BRIEF.md +58 -0
- package/specs/quiver-v22-guided-ai-workflow/slices/slice-07-execution-waves-delegation/slice.json +55 -0
- package/specs/quiver-v22-guided-ai-workflow/slices/slice-08-pr-create-gh-ssh/CLOSURE_BRIEF.md +32 -0
- package/specs/quiver-v22-guided-ai-workflow/slices/slice-08-pr-create-gh-ssh/EXECUTION_BRIEF.md +58 -0
- package/specs/quiver-v22-guided-ai-workflow/slices/slice-08-pr-create-gh-ssh/slice.json +53 -0
- package/specs/quiver-v22-guided-ai-workflow/slices/slice-09-post-merge-cleanup-release-safety/CLOSURE_BRIEF.md +33 -0
- package/specs/quiver-v22-guided-ai-workflow/slices/slice-09-post-merge-cleanup-release-safety/EXECUTION_BRIEF.md +59 -0
- package/specs/quiver-v22-guided-ai-workflow/slices/slice-09-post-merge-cleanup-release-safety/slice.json +59 -0
- package/specs/quiver-v22-guided-ai-workflow/slices/slice-10-docs-smokes-release-readiness/CLOSURE_BRIEF.md +34 -0
- package/specs/quiver-v22-guided-ai-workflow/slices/slice-10-docs-smokes-release-readiness/EXECUTION_BRIEF.md +58 -0
- package/specs/quiver-v22-guided-ai-workflow/slices/slice-10-docs-smokes-release-readiness/slice.json +60 -0
- package/specs/quiver-v23-guided-flow-productization/EVIDENCE_REPORT.md +80 -0
- package/specs/quiver-v23-guided-flow-productization/EXECUTION_PLAN.md +80 -0
- package/specs/quiver-v23-guided-flow-productization/SPEC.md +203 -0
- package/specs/quiver-v23-guided-flow-productization/STATUS.md +39 -0
- package/specs/quiver-v23-guided-flow-productization/pr.md +119 -0
- package/specs/quiver-v23-guided-flow-productization/slices/slice-00-spec-foundation/CLOSURE_BRIEF.md +30 -0
- package/specs/quiver-v23-guided-flow-productization/slices/slice-00-spec-foundation/EXECUTION_BRIEF.md +61 -0
- package/specs/quiver-v23-guided-flow-productization/slices/slice-00-spec-foundation/slice.json +51 -0
- package/specs/quiver-v23-guided-flow-productization/slices/slice-01-short-command-and-flow-entrypoint/CLOSURE_BRIEF.md +33 -0
- package/specs/quiver-v23-guided-flow-productization/slices/slice-01-short-command-and-flow-entrypoint/EXECUTION_BRIEF.md +35 -0
- package/specs/quiver-v23-guided-flow-productization/slices/slice-01-short-command-and-flow-entrypoint/slice.json +56 -0
- package/specs/quiver-v23-guided-flow-productization/slices/slice-02-flow-status-wizard/CLOSURE_BRIEF.md +31 -0
- package/specs/quiver-v23-guided-flow-productization/slices/slice-02-flow-status-wizard/EXECUTION_BRIEF.md +29 -0
- package/specs/quiver-v23-guided-flow-productization/slices/slice-02-flow-status-wizard/slice.json +55 -0
- package/specs/quiver-v23-guided-flow-productization/slices/slice-03-agent-profiles/CLOSURE_BRIEF.md +33 -0
- package/specs/quiver-v23-guided-flow-productization/slices/slice-03-agent-profiles/EXECUTION_BRIEF.md +29 -0
- package/specs/quiver-v23-guided-flow-productization/slices/slice-03-agent-profiles/slice.json +54 -0
- package/specs/quiver-v23-guided-flow-productization/slices/slice-04-context-preparation-onboarding/CLOSURE_BRIEF.md +32 -0
- package/specs/quiver-v23-guided-flow-productization/slices/slice-04-context-preparation-onboarding/EXECUTION_BRIEF.md +30 -0
- package/specs/quiver-v23-guided-flow-productization/slices/slice-04-context-preparation-onboarding/slice.json +59 -0
- package/specs/quiver-v23-guided-flow-productization/slices/slice-05-planner-iteration-history/CLOSURE_BRIEF.md +31 -0
- package/specs/quiver-v23-guided-flow-productization/slices/slice-05-planner-iteration-history/EXECUTION_BRIEF.md +29 -0
- package/specs/quiver-v23-guided-flow-productization/slices/slice-05-planner-iteration-history/slice.json +53 -0
- package/specs/quiver-v23-guided-flow-productization/slices/slice-06-production-plan-review/CLOSURE_BRIEF.md +33 -0
- package/specs/quiver-v23-guided-flow-productization/slices/slice-06-production-plan-review/EXECUTION_BRIEF.md +30 -0
- package/specs/quiver-v23-guided-flow-productization/slices/slice-06-production-plan-review/slice.json +54 -0
- package/specs/quiver-v23-guided-flow-productization/slices/slice-07-spec-create-experience/CLOSURE_BRIEF.md +33 -0
- package/specs/quiver-v23-guided-flow-productization/slices/slice-07-spec-create-experience/EXECUTION_BRIEF.md +30 -0
- package/specs/quiver-v23-guided-flow-productization/slices/slice-07-spec-create-experience/slice.json +55 -0
- package/specs/quiver-v23-guided-flow-productization/slices/slice-08-executor-prompt-generation/CLOSURE_BRIEF.md +32 -0
- package/specs/quiver-v23-guided-flow-productization/slices/slice-08-executor-prompt-generation/EXECUTION_BRIEF.md +30 -0
- package/specs/quiver-v23-guided-flow-productization/slices/slice-08-executor-prompt-generation/slice.json +55 -0
- package/specs/quiver-v23-guided-flow-productization/slices/slice-09-delegated-slice-execution/CLOSURE_BRIEF.md +33 -0
- package/specs/quiver-v23-guided-flow-productization/slices/slice-09-delegated-slice-execution/EXECUTION_BRIEF.md +34 -0
- package/specs/quiver-v23-guided-flow-productization/slices/slice-09-delegated-slice-execution/slice.json +57 -0
- package/specs/quiver-v23-guided-flow-productization/slices/slice-10-docs-smokes-release-readiness/CLOSURE_BRIEF.md +33 -0
- package/specs/quiver-v23-guided-flow-productization/slices/slice-10-docs-smokes-release-readiness/EXECUTION_BRIEF.md +32 -0
- package/specs/quiver-v23-guided-flow-productization/slices/slice-10-docs-smokes-release-readiness/slice.json +63 -0
- package/specs/quiver-v24-dx-onboarding-hardening/EVIDENCE_REPORT.md +55 -0
- package/specs/quiver-v24-dx-onboarding-hardening/EXECUTION_PLAN.md +43 -0
- package/specs/quiver-v24-dx-onboarding-hardening/SPEC.md +149 -0
- package/specs/quiver-v24-dx-onboarding-hardening/STATUS.md +31 -0
- package/specs/quiver-v24-dx-onboarding-hardening/pr.md +76 -0
- package/specs/quiver-v24-dx-onboarding-hardening/slices/slice-00-spec-foundation/CLOSURE_BRIEF.md +31 -0
- package/specs/quiver-v24-dx-onboarding-hardening/slices/slice-00-spec-foundation/EXECUTION_BRIEF.md +52 -0
- package/specs/quiver-v24-dx-onboarding-hardening/slices/slice-00-spec-foundation/slice.json +51 -0
- package/specs/quiver-v24-dx-onboarding-hardening/slices/slice-01-init-template-hygiene/CLOSURE_BRIEF.md +38 -0
- package/specs/quiver-v24-dx-onboarding-hardening/slices/slice-01-init-template-hygiene/EXECUTION_BRIEF.md +53 -0
- package/specs/quiver-v24-dx-onboarding-hardening/slices/slice-01-init-template-hygiene/slice.json +55 -0
- package/specs/quiver-v24-dx-onboarding-hardening/slices/slice-02-cli-command-routing-version-errors/CLOSURE_BRIEF.md +33 -0
- package/specs/quiver-v24-dx-onboarding-hardening/slices/slice-02-cli-command-routing-version-errors/EXECUTION_BRIEF.md +50 -0
- package/specs/quiver-v24-dx-onboarding-hardening/slices/slice-02-cli-command-routing-version-errors/slice.json +52 -0
- package/specs/quiver-v24-dx-onboarding-hardening/slices/slice-03-doctor-fix-doc-link-checks/CLOSURE_BRIEF.md +33 -0
- package/specs/quiver-v24-dx-onboarding-hardening/slices/slice-03-doctor-fix-doc-link-checks/EXECUTION_BRIEF.md +50 -0
- package/specs/quiver-v24-dx-onboarding-hardening/slices/slice-03-doctor-fix-doc-link-checks/slice.json +53 -0
- package/specs/quiver-v24-dx-onboarding-hardening/slices/slice-04-prepare-output-ai-context-drafts/CLOSURE_BRIEF.md +33 -0
- package/specs/quiver-v24-dx-onboarding-hardening/slices/slice-04-prepare-output-ai-context-drafts/EXECUTION_BRIEF.md +50 -0
- package/specs/quiver-v24-dx-onboarding-hardening/slices/slice-04-prepare-output-ai-context-drafts/slice.json +70 -0
- package/specs/quiver-v24-dx-onboarding-hardening/slices/slice-05-local-slice-validation-base-guidance/CLOSURE_BRIEF.md +36 -0
- package/specs/quiver-v24-dx-onboarding-hardening/slices/slice-05-local-slice-validation-base-guidance/EXECUTION_BRIEF.md +49 -0
- package/specs/quiver-v24-dx-onboarding-hardening/slices/slice-05-local-slice-validation-base-guidance/slice.json +52 -0
- package/specs/quiver-v24-dx-onboarding-hardening/slices/slice-06-plan-graph-next-history-views/CLOSURE_BRIEF.md +43 -0
- package/specs/quiver-v24-dx-onboarding-hardening/slices/slice-06-plan-graph-next-history-views/EXECUTION_BRIEF.md +53 -0
- package/specs/quiver-v24-dx-onboarding-hardening/slices/slice-06-plan-graph-next-history-views/slice.json +60 -0
- package/specs/quiver-v24-dx-onboarding-hardening/slices/slice-07-analyzer-command-map-hardening/CLOSURE_BRIEF.md +32 -0
- package/specs/quiver-v24-dx-onboarding-hardening/slices/slice-07-analyzer-command-map-hardening/EXECUTION_BRIEF.md +50 -0
- package/specs/quiver-v24-dx-onboarding-hardening/slices/slice-07-analyzer-command-map-hardening/slice.json +51 -0
- package/specs/quiver-v24-dx-onboarding-hardening/slices/slice-08-evidence-run-command/CLOSURE_BRIEF.md +34 -0
- package/specs/quiver-v24-dx-onboarding-hardening/slices/slice-08-evidence-run-command/EXECUTION_BRIEF.md +52 -0
- package/specs/quiver-v24-dx-onboarding-hardening/slices/slice-08-evidence-run-command/slice.json +54 -0
- package/specs/quiver-v24-dx-onboarding-hardening/slices/slice-09-spec-viewer-demo-scaffolding/CLOSURE_BRIEF.md +34 -0
- package/specs/quiver-v24-dx-onboarding-hardening/slices/slice-09-spec-viewer-demo-scaffolding/EXECUTION_BRIEF.md +51 -0
- package/specs/quiver-v24-dx-onboarding-hardening/slices/slice-09-spec-viewer-demo-scaffolding/slice.json +59 -0
- package/specs/quiver-v24-dx-onboarding-hardening/slices/slice-10-docs-smokes-release-readiness/CLOSURE_BRIEF.md +33 -0
- package/specs/quiver-v24-dx-onboarding-hardening/slices/slice-10-docs-smokes-release-readiness/EXECUTION_BRIEF.md +54 -0
- package/specs/quiver-v24-dx-onboarding-hardening/slices/slice-10-docs-smokes-release-readiness/slice.json +76 -0
- package/specs/quiver-v25-ai-first-lifecycle-orchestrator/EVIDENCE_REPORT.md +293 -0
- package/specs/quiver-v25-ai-first-lifecycle-orchestrator/EXECUTION_PLAN.md +58 -0
- package/specs/quiver-v25-ai-first-lifecycle-orchestrator/SPEC.md +242 -0
- package/specs/quiver-v25-ai-first-lifecycle-orchestrator/STATUS.md +35 -0
- package/specs/quiver-v25-ai-first-lifecycle-orchestrator/pr.md +77 -0
- package/specs/quiver-v25-ai-first-lifecycle-orchestrator/slices/slice-00-spec-foundation/CLOSURE_BRIEF.md +34 -0
- package/specs/quiver-v25-ai-first-lifecycle-orchestrator/slices/slice-00-spec-foundation/EXECUTION_BRIEF.md +52 -0
- package/specs/quiver-v25-ai-first-lifecycle-orchestrator/slices/slice-00-spec-foundation/slice.json +52 -0
- package/specs/quiver-v25-ai-first-lifecycle-orchestrator/slices/slice-01-cli-contract-compatibility/CLOSURE_BRIEF.md +36 -0
- package/specs/quiver-v25-ai-first-lifecycle-orchestrator/slices/slice-01-cli-contract-compatibility/EXECUTION_BRIEF.md +52 -0
- package/specs/quiver-v25-ai-first-lifecycle-orchestrator/slices/slice-01-cli-contract-compatibility/slice.json +56 -0
- package/specs/quiver-v25-ai-first-lifecycle-orchestrator/slices/slice-02-run-state-phase-locks/CLOSURE_BRIEF.md +43 -0
- package/specs/quiver-v25-ai-first-lifecycle-orchestrator/slices/slice-02-run-state-phase-locks/EXECUTION_BRIEF.md +54 -0
- package/specs/quiver-v25-ai-first-lifecycle-orchestrator/slices/slice-02-run-state-phase-locks/slice.json +52 -0
- package/specs/quiver-v25-ai-first-lifecycle-orchestrator/slices/slice-03-safe-ai-onboarding-docs/CLOSURE_BRIEF.md +35 -0
- package/specs/quiver-v25-ai-first-lifecycle-orchestrator/slices/slice-03-safe-ai-onboarding-docs/EXECUTION_BRIEF.md +53 -0
- package/specs/quiver-v25-ai-first-lifecycle-orchestrator/slices/slice-03-safe-ai-onboarding-docs/slice.json +54 -0
- package/specs/quiver-v25-ai-first-lifecycle-orchestrator/slices/slice-04-agent-profiles-adapters/CLOSURE_BRIEF.md +34 -0
- package/specs/quiver-v25-ai-first-lifecycle-orchestrator/slices/slice-04-agent-profiles-adapters/EXECUTION_BRIEF.md +54 -0
- package/specs/quiver-v25-ai-first-lifecycle-orchestrator/slices/slice-04-agent-profiles-adapters/slice.json +52 -0
- package/specs/quiver-v25-ai-first-lifecycle-orchestrator/slices/slice-05-approval-gates/CLOSURE_BRIEF.md +34 -0
- package/specs/quiver-v25-ai-first-lifecycle-orchestrator/slices/slice-05-approval-gates/EXECUTION_BRIEF.md +54 -0
- package/specs/quiver-v25-ai-first-lifecycle-orchestrator/slices/slice-05-approval-gates/slice.json +53 -0
- package/specs/quiver-v25-ai-first-lifecycle-orchestrator/slices/slice-06-spec-slice-generator/CLOSURE_BRIEF.md +33 -0
- package/specs/quiver-v25-ai-first-lifecycle-orchestrator/slices/slice-06-spec-slice-generator/EXECUTION_BRIEF.md +56 -0
- package/specs/quiver-v25-ai-first-lifecycle-orchestrator/slices/slice-06-spec-slice-generator/slice.json +55 -0
- package/specs/quiver-v25-ai-first-lifecycle-orchestrator/slices/slice-07-slice-execution-planner/CLOSURE_BRIEF.md +33 -0
- package/specs/quiver-v25-ai-first-lifecycle-orchestrator/slices/slice-07-slice-execution-planner/EXECUTION_BRIEF.md +54 -0
- package/specs/quiver-v25-ai-first-lifecycle-orchestrator/slices/slice-07-slice-execution-planner/slice.json +52 -0
- package/specs/quiver-v25-ai-first-lifecycle-orchestrator/slices/slice-08-controlled-slice-execution/CLOSURE_BRIEF.md +39 -0
- package/specs/quiver-v25-ai-first-lifecycle-orchestrator/slices/slice-08-controlled-slice-execution/EXECUTION_BRIEF.md +56 -0
- package/specs/quiver-v25-ai-first-lifecycle-orchestrator/slices/slice-08-controlled-slice-execution/slice.json +53 -0
- package/specs/quiver-v25-ai-first-lifecycle-orchestrator/slices/slice-09-git-worktree-pr-lifecycle/CLOSURE_BRIEF.md +38 -0
- package/specs/quiver-v25-ai-first-lifecycle-orchestrator/slices/slice-09-git-worktree-pr-lifecycle/EXECUTION_BRIEF.md +57 -0
- package/specs/quiver-v25-ai-first-lifecycle-orchestrator/slices/slice-09-git-worktree-pr-lifecycle/slice.json +52 -0
- package/specs/quiver-v25-ai-first-lifecycle-orchestrator/slices/slice-10-validation-errors-fixtures/CLOSURE_BRIEF.md +39 -0
- package/specs/quiver-v25-ai-first-lifecycle-orchestrator/slices/slice-10-validation-errors-fixtures/EXECUTION_BRIEF.md +55 -0
- package/specs/quiver-v25-ai-first-lifecycle-orchestrator/slices/slice-10-validation-errors-fixtures/slice.json +56 -0
- package/specs/quiver-v25-ai-first-lifecycle-orchestrator/slices/slice-11-export-dashboard-migration/CLOSURE_BRIEF.md +36 -0
- package/specs/quiver-v25-ai-first-lifecycle-orchestrator/slices/slice-11-export-dashboard-migration/EXECUTION_BRIEF.md +54 -0
- package/specs/quiver-v25-ai-first-lifecycle-orchestrator/slices/slice-11-export-dashboard-migration/slice.json +53 -0
- package/specs/quiver-v26-0121-smoke-hardening/EVIDENCE_REPORT.md +208 -0
- package/specs/quiver-v26-0121-smoke-hardening/EXECUTION_PLAN.md +57 -0
- package/specs/quiver-v26-0121-smoke-hardening/SPEC.md +137 -0
- package/specs/quiver-v26-0121-smoke-hardening/STATUS.md +32 -0
- package/specs/quiver-v26-0121-smoke-hardening/pr.md +96 -0
- package/specs/quiver-v26-0121-smoke-hardening/slices/slice-00-docs-foundation/CLOSURE_BRIEF.md +35 -0
- package/specs/quiver-v26-0121-smoke-hardening/slices/slice-00-docs-foundation/EXECUTION_BRIEF.md +55 -0
- package/specs/quiver-v26-0121-smoke-hardening/slices/slice-00-docs-foundation/slice.json +73 -0
- package/specs/quiver-v26-0121-smoke-hardening/slices/slice-01-cli-help-version-contract/CLOSURE_BRIEF.md +38 -0
- package/specs/quiver-v26-0121-smoke-hardening/slices/slice-01-cli-help-version-contract/EXECUTION_BRIEF.md +51 -0
- package/specs/quiver-v26-0121-smoke-hardening/slices/slice-01-cli-help-version-contract/slice.json +76 -0
- package/specs/quiver-v26-0121-smoke-hardening/slices/slice-02-init-doc-links-and-flow-guidance/CLOSURE_BRIEF.md +37 -0
- package/specs/quiver-v26-0121-smoke-hardening/slices/slice-02-init-doc-links-and-flow-guidance/EXECUTION_BRIEF.md +52 -0
- package/specs/quiver-v26-0121-smoke-hardening/slices/slice-02-init-doc-links-and-flow-guidance/slice.json +75 -0
- package/specs/quiver-v26-0121-smoke-hardening/slices/slice-03-ai-approval-review-consistency/CLOSURE_BRIEF.md +37 -0
- package/specs/quiver-v26-0121-smoke-hardening/slices/slice-03-ai-approval-review-consistency/EXECUTION_BRIEF.md +53 -0
- package/specs/quiver-v26-0121-smoke-hardening/slices/slice-03-ai-approval-review-consistency/slice.json +77 -0
- package/specs/quiver-v26-0121-smoke-hardening/slices/slice-04-local-validation-brief-contracts/CLOSURE_BRIEF.md +35 -0
- package/specs/quiver-v26-0121-smoke-hardening/slices/slice-04-local-validation-brief-contracts/EXECUTION_BRIEF.md +52 -0
- package/specs/quiver-v26-0121-smoke-hardening/slices/slice-04-local-validation-brief-contracts/slice.json +77 -0
- package/specs/quiver-v26-0121-smoke-hardening/slices/slice-05-demo-scaffold-readiness/CLOSURE_BRIEF.md +34 -0
- package/specs/quiver-v26-0121-smoke-hardening/slices/slice-05-demo-scaffold-readiness/EXECUTION_BRIEF.md +54 -0
- package/specs/quiver-v26-0121-smoke-hardening/slices/slice-05-demo-scaffold-readiness/slice.json +84 -0
- package/specs/quiver-v26-0121-smoke-hardening/slices/slice-06-plan-graph-scope-performance/CLOSURE_BRIEF.md +35 -0
- package/specs/quiver-v26-0121-smoke-hardening/slices/slice-06-plan-graph-scope-performance/EXECUTION_BRIEF.md +53 -0
- package/specs/quiver-v26-0121-smoke-hardening/slices/slice-06-plan-graph-scope-performance/slice.json +82 -0
- package/specs/quiver-v26-0121-smoke-hardening/slices/slice-07-smoke-release-readiness/CLOSURE_BRIEF.md +35 -0
- package/specs/quiver-v26-0121-smoke-hardening/slices/slice-07-smoke-release-readiness/EXECUTION_BRIEF.md +55 -0
- package/specs/quiver-v26-0121-smoke-hardening/slices/slice-07-smoke-release-readiness/slice.json +92 -0
- package/src/create-quiver/commands/ai.js +1060 -37
- package/src/create-quiver/commands/demo.js +22 -0
- package/src/create-quiver/commands/evidence.js +37 -0
- package/src/create-quiver/commands/flow.js +562 -0
- package/src/create-quiver/commands/graph.js +19 -4
- package/src/create-quiver/commands/next.js +28 -0
- package/src/create-quiver/commands/plan.js +9 -6
- package/src/create-quiver/commands/prepare.js +236 -0
- package/src/create-quiver/commands/spec.js +133 -0
- package/src/create-quiver/index.js +1010 -31
- package/src/create-quiver/lib/actionable-error.js +27 -0
- package/src/create-quiver/lib/agent-profiles.js +148 -0
- package/src/create-quiver/lib/ai/context-packs.js +16 -0
- package/src/create-quiver/lib/ai/execution-plan.js +377 -11
- package/src/create-quiver/lib/ai/executor.js +633 -24
- package/src/create-quiver/lib/ai/export-state.js +534 -0
- package/src/create-quiver/lib/ai/github.js +279 -0
- package/src/create-quiver/lib/ai/onboarding-template.js +578 -0
- package/src/create-quiver/lib/ai/plan-review.js +286 -0
- package/src/create-quiver/lib/ai/providers.js +5 -3
- package/src/create-quiver/lib/ai/run-state.js +414 -0
- package/src/create-quiver/lib/ai/safety.js +5 -0
- package/src/create-quiver/lib/ai/spec-generator.js +12 -0
- package/src/create-quiver/lib/ai/spec-templates.js +80 -11
- package/src/create-quiver/lib/approvals.js +369 -0
- package/src/create-quiver/lib/demo.js +832 -0
- package/src/create-quiver/lib/doctor.js +309 -0
- package/src/create-quiver/lib/evidence.js +115 -0
- package/src/create-quiver/lib/handoff.js +81 -12
- package/src/create-quiver/lib/init-docs.js +302 -17
- package/src/create-quiver/lib/init-layout.js +34 -1
- package/src/create-quiver/lib/json.js +53 -3
- package/src/create-quiver/lib/lifecycle.js +6 -0
- package/src/create-quiver/lib/package-safety.js +117 -0
- package/src/create-quiver/lib/readiness.js +103 -21
- package/src/create-quiver/lib/scope.js +50 -7
- package/src/create-quiver/lib/slice-graph.js +138 -37
- package/src/create-quiver/lib/slice.js +14 -9
- package/src/create-quiver/lib/spec-worktrees.js +363 -0
|
@@ -4,6 +4,8 @@ const path = require('node:path');
|
|
|
4
4
|
const { spawnSync } = require('node:child_process');
|
|
5
5
|
|
|
6
6
|
const { currentBranch, hasRemote, isCleanWorktree } = require('../git');
|
|
7
|
+
const { parseJsonWithComments } = require('../json');
|
|
8
|
+
const { formatActionableError } = require('../actionable-error');
|
|
7
9
|
|
|
8
10
|
const DEFAULT_GH_COMMAND = 'gh';
|
|
9
11
|
const DEFAULT_REMOTE = 'origin';
|
|
@@ -249,6 +251,234 @@ function ensureIdentityFile(repoRoot, identityFile) {
|
|
|
249
251
|
return resolved;
|
|
250
252
|
}
|
|
251
253
|
|
|
254
|
+
function ensureSshHostAlias(sshHostAlias) {
|
|
255
|
+
const value = String(sshHostAlias || '').trim();
|
|
256
|
+
if (!value) {
|
|
257
|
+
throw createError(
|
|
258
|
+
'MISSING_SSH_HOST_ALIAS',
|
|
259
|
+
formatActionableError({
|
|
260
|
+
failure: 'missing SSH host alias. Pass --ssh-host-alias <alias> before opening the PR.',
|
|
261
|
+
impact: 'Quiver cannot verify which GitHub SSH identity should be used for this PR flow.',
|
|
262
|
+
fix: 'macOS/Linux: add a Host entry in ~/.ssh/config, for example `Host github-work`. Windows: add the Host entry in %USERPROFILE%\\.ssh\\config.',
|
|
263
|
+
nextCommand: 'ssh -T <alias>',
|
|
264
|
+
}),
|
|
265
|
+
);
|
|
266
|
+
}
|
|
267
|
+
return value;
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
function prBodySpecDir(repoRoot, prBodyPath) {
|
|
271
|
+
const relative = path.relative(repoRoot, prBodyPath).split(path.sep).join('/');
|
|
272
|
+
const parts = relative.split('/');
|
|
273
|
+
if (parts[0] !== 'specs' || parts.length !== 3 || parts[2] !== 'pr.md') {
|
|
274
|
+
return '';
|
|
275
|
+
}
|
|
276
|
+
return path.join(repoRoot, parts[0], parts[1]);
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
function listOpenSlicesForSpec(specDir) {
|
|
280
|
+
const slicesDir = path.join(specDir, 'slices');
|
|
281
|
+
if (!fs.existsSync(slicesDir)) {
|
|
282
|
+
return [];
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
return fs.readdirSync(slicesDir, { withFileTypes: true })
|
|
286
|
+
.filter((entry) => entry.isDirectory())
|
|
287
|
+
.map((entry) => {
|
|
288
|
+
const slicePath = path.join(slicesDir, entry.name, 'slice.json');
|
|
289
|
+
if (!fs.existsSync(slicePath)) {
|
|
290
|
+
return null;
|
|
291
|
+
}
|
|
292
|
+
const json = parseJsonWithComments(fs.readFileSync(slicePath, 'utf8'));
|
|
293
|
+
const status = String(json.status || 'draft').trim() || 'draft';
|
|
294
|
+
return {
|
|
295
|
+
id: json.slice_id || entry.name,
|
|
296
|
+
status,
|
|
297
|
+
};
|
|
298
|
+
})
|
|
299
|
+
.filter(Boolean)
|
|
300
|
+
.filter((slice) => slice.status !== 'completed')
|
|
301
|
+
.sort((left, right) => left.id.localeCompare(right.id));
|
|
302
|
+
}
|
|
303
|
+
|
|
304
|
+
function ensureNoOpenSlicesForPrBody(repoRoot, prBodyPath) {
|
|
305
|
+
const specDir = prBodySpecDir(repoRoot, prBodyPath);
|
|
306
|
+
if (!specDir) {
|
|
307
|
+
return [];
|
|
308
|
+
}
|
|
309
|
+
|
|
310
|
+
const openSlices = listOpenSlicesForSpec(specDir);
|
|
311
|
+
if (openSlices.length > 0) {
|
|
312
|
+
throw createError(
|
|
313
|
+
'OPEN_SLICES',
|
|
314
|
+
formatActionableError({
|
|
315
|
+
failure: `cannot create PR while spec slices are still open: ${openSlices.map((slice) => `${slice.id} (${slice.status})`).join(', ')}.`,
|
|
316
|
+
impact: 'The PR would not represent a closed spec and could miss required slice commits or evidence.',
|
|
317
|
+
fix: 'Finish, validate, and close every slice in the spec before creating the PR.',
|
|
318
|
+
nextCommand: 'npx create-quiver ai execute-plan --dry-run --commit',
|
|
319
|
+
}),
|
|
320
|
+
{
|
|
321
|
+
openSlices,
|
|
322
|
+
specDir,
|
|
323
|
+
},
|
|
324
|
+
);
|
|
325
|
+
}
|
|
326
|
+
|
|
327
|
+
return openSlices;
|
|
328
|
+
}
|
|
329
|
+
|
|
330
|
+
function findPrBodyCandidates(repoRoot) {
|
|
331
|
+
const candidates = [];
|
|
332
|
+
const rootPr = path.join(repoRoot, 'pr.md');
|
|
333
|
+
if (fs.existsSync(rootPr)) {
|
|
334
|
+
candidates.push(rootPr);
|
|
335
|
+
}
|
|
336
|
+
|
|
337
|
+
const specsDir = path.join(repoRoot, 'specs');
|
|
338
|
+
if (fs.existsSync(specsDir)) {
|
|
339
|
+
for (const entry of fs.readdirSync(specsDir, { withFileTypes: true })) {
|
|
340
|
+
if (!entry.isDirectory()) {
|
|
341
|
+
continue;
|
|
342
|
+
}
|
|
343
|
+
const candidate = path.join(specsDir, entry.name, 'pr.md');
|
|
344
|
+
if (fs.existsSync(candidate)) {
|
|
345
|
+
candidates.push(candidate);
|
|
346
|
+
}
|
|
347
|
+
}
|
|
348
|
+
}
|
|
349
|
+
|
|
350
|
+
return candidates.sort((left, right) => left.localeCompare(right));
|
|
351
|
+
}
|
|
352
|
+
|
|
353
|
+
function resolvePrBodyPath(repoRoot, prBodyPath) {
|
|
354
|
+
const configured = String(prBodyPath || '').trim();
|
|
355
|
+
if (configured) {
|
|
356
|
+
const resolved = resolveConfiguredPath(repoRoot, configured);
|
|
357
|
+
if (!fs.existsSync(resolved)) {
|
|
358
|
+
throw createError('MISSING_PR_BODY', formatError(`missing PR body file at ${resolved}. Pass --input specs/<spec-slug>/pr.md or generate pr.md first.`), {
|
|
359
|
+
prBodyPath: configured,
|
|
360
|
+
resolvedPrBodyPath: resolved,
|
|
361
|
+
});
|
|
362
|
+
}
|
|
363
|
+
return resolved;
|
|
364
|
+
}
|
|
365
|
+
|
|
366
|
+
const candidates = findPrBodyCandidates(repoRoot);
|
|
367
|
+
if (candidates.length === 1) {
|
|
368
|
+
return candidates[0];
|
|
369
|
+
}
|
|
370
|
+
if (candidates.length === 0) {
|
|
371
|
+
throw createError('MISSING_PR_BODY', formatError('missing PR body file. Pass --input specs/<spec-slug>/pr.md or generate pr.md first.'), {
|
|
372
|
+
candidates,
|
|
373
|
+
});
|
|
374
|
+
}
|
|
375
|
+
|
|
376
|
+
throw createError('AMBIGUOUS_PR_BODY', formatError(`multiple pr.md files found: ${candidates.map((item) => path.relative(repoRoot, item).split(path.sep).join('/')).join(', ')}. Pass --input with the intended PR body.`), {
|
|
377
|
+
candidates,
|
|
378
|
+
});
|
|
379
|
+
}
|
|
380
|
+
|
|
381
|
+
function readPrBody(repoRoot, prBodyPath) {
|
|
382
|
+
const resolved = resolvePrBodyPath(repoRoot, prBodyPath);
|
|
383
|
+
const body = fs.readFileSync(resolved, 'utf8');
|
|
384
|
+
if (!body.trim()) {
|
|
385
|
+
throw createError('EMPTY_PR_BODY', formatError(`PR body file is empty: ${path.relative(repoRoot, resolved).split(path.sep).join('/')}`), {
|
|
386
|
+
prBodyPath: resolved,
|
|
387
|
+
});
|
|
388
|
+
}
|
|
389
|
+
return {
|
|
390
|
+
body,
|
|
391
|
+
path: resolved,
|
|
392
|
+
};
|
|
393
|
+
}
|
|
394
|
+
|
|
395
|
+
function extractPrTitle(prBody, fallbackTitle) {
|
|
396
|
+
const lines = String(prBody || '').split(/\r?\n/);
|
|
397
|
+
const titleIndex = lines.findIndex((line) => /^##\s+Title\s*$/i.test(line.trim()));
|
|
398
|
+
if (titleIndex !== -1) {
|
|
399
|
+
for (const line of lines.slice(titleIndex + 1)) {
|
|
400
|
+
const value = line.trim().replace(/^#+\s*/, '');
|
|
401
|
+
if (value) {
|
|
402
|
+
return value;
|
|
403
|
+
}
|
|
404
|
+
}
|
|
405
|
+
}
|
|
406
|
+
|
|
407
|
+
const firstHeading = lines.find((line) => /^#\s+\S/.test(line.trim()));
|
|
408
|
+
if (firstHeading) {
|
|
409
|
+
return firstHeading.trim().replace(/^#\s+/, '');
|
|
410
|
+
}
|
|
411
|
+
|
|
412
|
+
return fallbackTitle || 'Quiver PR';
|
|
413
|
+
}
|
|
414
|
+
|
|
415
|
+
function buildPrCreateArgs(plan) {
|
|
416
|
+
const args = [
|
|
417
|
+
'pr',
|
|
418
|
+
'create',
|
|
419
|
+
'--base',
|
|
420
|
+
plan.baseBranch,
|
|
421
|
+
'--head',
|
|
422
|
+
plan.branchName,
|
|
423
|
+
'--title',
|
|
424
|
+
plan.title,
|
|
425
|
+
'--body-file',
|
|
426
|
+
plan.prBodyPath,
|
|
427
|
+
];
|
|
428
|
+
return args;
|
|
429
|
+
}
|
|
430
|
+
|
|
431
|
+
function buildPrCreatePlan(repoRoot, preflightReport, options = {}) {
|
|
432
|
+
const prBody = readPrBody(repoRoot, options.prBodyPath || options.input);
|
|
433
|
+
ensureNoOpenSlicesForPrBody(repoRoot, prBody.path);
|
|
434
|
+
const baseBranch = String(options.baseBranch || 'main').trim() || 'main';
|
|
435
|
+
const title = String(options.title || '').trim() || extractPrTitle(prBody.body, preflightReport.branchName);
|
|
436
|
+
const plan = {
|
|
437
|
+
baseBranch,
|
|
438
|
+
branchName: preflightReport.branchName,
|
|
439
|
+
ghCommand: options.ghCommand || DEFAULT_GH_COMMAND,
|
|
440
|
+
prBodyPath: prBody.path,
|
|
441
|
+
prBodyRelativePath: path.relative(repoRoot, prBody.path).split(path.sep).join('/'),
|
|
442
|
+
remote: preflightReport.remote,
|
|
443
|
+
repoRoot,
|
|
444
|
+
title,
|
|
445
|
+
};
|
|
446
|
+
plan.args = buildPrCreateArgs(plan);
|
|
447
|
+
return plan;
|
|
448
|
+
}
|
|
449
|
+
|
|
450
|
+
function runGhPrCreate(plan, options = {}) {
|
|
451
|
+
const result = runCommand(plan.ghCommand, plan.args, {
|
|
452
|
+
cwd: plan.repoRoot,
|
|
453
|
+
runner: options.runner || options.ghCreateRunner || spawnSync,
|
|
454
|
+
});
|
|
455
|
+
|
|
456
|
+
if (result && result.error) {
|
|
457
|
+
throw createError('GH_PR_CREATE_FAILED', formatError(`gh pr create could not be executed. ${result.error.message}`), {
|
|
458
|
+
args: plan.args,
|
|
459
|
+
errorCode: result.error.code,
|
|
460
|
+
errorMessage: result.error.message,
|
|
461
|
+
});
|
|
462
|
+
}
|
|
463
|
+
|
|
464
|
+
if (!result || typeof result.status !== 'number' || result.status !== 0) {
|
|
465
|
+
const stderr = result && typeof result.stderr === 'string' ? result.stderr.trim() : '';
|
|
466
|
+
const stdout = result && typeof result.stdout === 'string' ? result.stdout.trim() : '';
|
|
467
|
+
throw createError('GH_PR_CREATE_FAILED', `${formatError('gh pr create failed.')}${[stderr, stdout].filter(Boolean).length > 0 ? `\n${[stderr, stdout].filter(Boolean).join('\n')}` : ''}`, {
|
|
468
|
+
args: plan.args,
|
|
469
|
+
status: result && result.status,
|
|
470
|
+
stderr,
|
|
471
|
+
stdout,
|
|
472
|
+
});
|
|
473
|
+
}
|
|
474
|
+
|
|
475
|
+
return {
|
|
476
|
+
status: result.status,
|
|
477
|
+
stdout: typeof result.stdout === 'string' ? result.stdout : '',
|
|
478
|
+
stderr: typeof result.stderr === 'string' ? result.stderr : '',
|
|
479
|
+
};
|
|
480
|
+
}
|
|
481
|
+
|
|
252
482
|
function buildPreflightReport(repoRoot, options = {}, checks = {}) {
|
|
253
483
|
return {
|
|
254
484
|
ok: true,
|
|
@@ -269,6 +499,7 @@ function preflightGitHubPr(repoRoot, options = {}) {
|
|
|
269
499
|
const guidePath = ensureGitFlowGuide(repoRoot, options.gitFlowGuidePath);
|
|
270
500
|
const remote = ensureRemote(repoRoot, options.remote || DEFAULT_REMOTE);
|
|
271
501
|
const branchName = ensureWorktreeReady(repoRoot, options);
|
|
502
|
+
const sshHostAlias = ensureSshHostAlias(options.sshHostAlias);
|
|
272
503
|
const identityFile = ensureIdentityFile(repoRoot, options.identityFile);
|
|
273
504
|
|
|
274
505
|
return buildPreflightReport(repoRoot, options, {
|
|
@@ -277,6 +508,7 @@ function preflightGitHubPr(repoRoot, options = {}) {
|
|
|
277
508
|
guidePath,
|
|
278
509
|
remote,
|
|
279
510
|
branchName,
|
|
511
|
+
sshHostAlias,
|
|
280
512
|
identityFile,
|
|
281
513
|
});
|
|
282
514
|
}
|
|
@@ -310,20 +542,67 @@ function formatPreflightReport(report, options = {}) {
|
|
|
310
542
|
return `${lines.join('\n')}\n`;
|
|
311
543
|
}
|
|
312
544
|
|
|
545
|
+
function quoteCommandArg(arg) {
|
|
546
|
+
const value = String(arg);
|
|
547
|
+
return /^[A-Za-z0-9_./:=@-]+$/.test(value) ? value : JSON.stringify(value);
|
|
548
|
+
}
|
|
549
|
+
|
|
550
|
+
function formatPrCreateReport({ preflight, plan, result }, options = {}) {
|
|
551
|
+
const dryRun = options.dryRun === true;
|
|
552
|
+
const create = options.create === true;
|
|
553
|
+
const lines = [
|
|
554
|
+
`GitHub pr ${dryRun ? 'dry-run' : create ? 'created' : 'preflight'}`,
|
|
555
|
+
`Remote: ${preflight.remote}`,
|
|
556
|
+
`Branch: ${preflight.branchName}`,
|
|
557
|
+
`Base: ${plan.baseBranch}`,
|
|
558
|
+
`PR body: ${plan.prBodyRelativePath}`,
|
|
559
|
+
`Title: ${plan.title}`,
|
|
560
|
+
`Command: ${plan.ghCommand} ${plan.args.map(quoteCommandArg).join(' ')}`,
|
|
561
|
+
];
|
|
562
|
+
|
|
563
|
+
if (preflight.sshHostAlias) {
|
|
564
|
+
lines.push(`SSH host alias: ${preflight.sshHostAlias}`);
|
|
565
|
+
}
|
|
566
|
+
|
|
567
|
+
if (preflight.identityFile) {
|
|
568
|
+
lines.push(`Identity file: ${preflight.identityFile}`);
|
|
569
|
+
}
|
|
570
|
+
|
|
571
|
+
if (dryRun) {
|
|
572
|
+
lines.push('No PR will be created in dry-run mode.');
|
|
573
|
+
} else if (!create) {
|
|
574
|
+
lines.push('No PR was created. Re-run with --create after reviewing the plan.');
|
|
575
|
+
} else if (result && result.stdout) {
|
|
576
|
+
lines.push(result.stdout.trimEnd());
|
|
577
|
+
}
|
|
578
|
+
|
|
579
|
+
return `${lines.join('\n')}\n`;
|
|
580
|
+
}
|
|
581
|
+
|
|
313
582
|
module.exports = {
|
|
314
583
|
DEFAULT_GH_COMMAND,
|
|
315
584
|
DEFAULT_GITFLOW_GUIDE_PATH,
|
|
316
585
|
DEFAULT_REMOTE,
|
|
317
586
|
GitHubPreflightError,
|
|
587
|
+
buildPrCreateArgs,
|
|
588
|
+
buildPrCreatePlan,
|
|
318
589
|
buildPreflightReport,
|
|
590
|
+
extractPrTitle,
|
|
319
591
|
ensureGhAuthenticated,
|
|
320
592
|
ensureGhInstalled,
|
|
321
593
|
ensureGitFlowGuide,
|
|
322
594
|
ensureIdentityFile,
|
|
595
|
+
ensureNoOpenSlicesForPrBody,
|
|
323
596
|
ensureRemote,
|
|
597
|
+
ensureSshHostAlias,
|
|
324
598
|
ensureWorktreeReady,
|
|
599
|
+
findPrBodyCandidates,
|
|
325
600
|
formatGhInstallGuidance,
|
|
326
601
|
formatPreflightReport,
|
|
602
|
+
formatPrCreateReport,
|
|
327
603
|
preflightGitHubPr,
|
|
604
|
+
readPrBody,
|
|
328
605
|
resolveConfiguredPath,
|
|
606
|
+
resolvePrBodyPath,
|
|
607
|
+
runGhPrCreate,
|
|
329
608
|
};
|