create-quiver 0.9.1 → 0.12.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.
- package/BACKLOG.md +16 -17
- package/CHANGELOG.md +34 -0
- package/README.md +419 -330
- package/README_FOR_AI.md +93 -56
- package/ROADMAP.md +22 -11
- package/docs/AI_CONTEXT.md.template +2 -0
- package/docs/AI_ONBOARDING_PROMPT.md.template +36 -19
- package/docs/COMMANDS.md.template +73 -1
- package/docs/CONTEXTO.md.template +2 -0
- package/docs/DECISIONS.md.template +1 -0
- package/docs/GITFLOW_PR_GUIDE.md.template +11 -0
- package/docs/INDEX.md.template +20 -18
- package/docs/STANDARD.md.template +1 -1
- package/docs/STATUS.md.template +1 -0
- package/docs/SUPPORT_MATRIX.md.template +6 -2
- package/docs/TROUBLESHOOTING.md.template +79 -1
- package/docs/WORKFLOW.md.template +26 -18
- package/package.json +24 -2
- package/package.template.json +24 -7
- package/scripts/check-pr-readiness.sh +1 -1
- package/scripts/check-scope.sh +0 -1
- package/scripts/check-slice-readiness.sh +3 -4
- package/scripts/init-docs.sh +53 -6
- package/scripts/package-quiver.sh +18 -2
- package/specs/quiver-v20-ai-cli-orchestration/EVIDENCE_REPORT.md +23 -0
- package/specs/quiver-v20-ai-cli-orchestration/EXECUTION_PLAN.md +57 -0
- package/specs/quiver-v20-ai-cli-orchestration/SPEC.md +202 -0
- package/specs/quiver-v20-ai-cli-orchestration/STATUS.md +35 -0
- package/specs/quiver-v20-ai-cli-orchestration/pr.md +100 -0
- package/specs/quiver-v20-ai-cli-orchestration/slices/slice-00-spec-foundation/CLOSURE_BRIEF.md +30 -0
- package/specs/quiver-v20-ai-cli-orchestration/slices/slice-00-spec-foundation/EXECUTION_BRIEF.md +61 -0
- package/specs/quiver-v20-ai-cli-orchestration/slices/slice-00-spec-foundation/slice.json +54 -0
- package/specs/quiver-v20-ai-cli-orchestration/slices/slice-01-ai-provider-runner/CLOSURE_BRIEF.md +39 -0
- package/specs/quiver-v20-ai-cli-orchestration/slices/slice-01-ai-provider-runner/EXECUTION_BRIEF.md +63 -0
- package/specs/quiver-v20-ai-cli-orchestration/slices/slice-01-ai-provider-runner/slice.json +55 -0
- package/specs/quiver-v20-ai-cli-orchestration/slices/slice-02-context-packs-token-budget/CLOSURE_BRIEF.md +40 -0
- package/specs/quiver-v20-ai-cli-orchestration/slices/slice-02-context-packs-token-budget/EXECUTION_BRIEF.md +60 -0
- package/specs/quiver-v20-ai-cli-orchestration/slices/slice-02-context-packs-token-budget/slice.json +54 -0
- package/specs/quiver-v20-ai-cli-orchestration/slices/slice-03-ai-phase-gated-planner/CLOSURE_BRIEF.md +43 -0
- package/specs/quiver-v20-ai-cli-orchestration/slices/slice-03-ai-phase-gated-planner/EXECUTION_BRIEF.md +62 -0
- package/specs/quiver-v20-ai-cli-orchestration/slices/slice-03-ai-phase-gated-planner/slice.json +62 -0
- package/specs/quiver-v20-ai-cli-orchestration/slices/slice-04-spec-slice-handoff-pr-generation/CLOSURE_BRIEF.md +36 -0
- package/specs/quiver-v20-ai-cli-orchestration/slices/slice-04-spec-slice-handoff-pr-generation/EXECUTION_BRIEF.md +63 -0
- package/specs/quiver-v20-ai-cli-orchestration/slices/slice-04-spec-slice-handoff-pr-generation/slice.json +59 -0
- package/specs/quiver-v20-ai-cli-orchestration/slices/slice-05-execution-plan-parallel-worktrees/CLOSURE_BRIEF.md +32 -0
- package/specs/quiver-v20-ai-cli-orchestration/slices/slice-05-execution-plan-parallel-worktrees/EXECUTION_BRIEF.md +61 -0
- package/specs/quiver-v20-ai-cli-orchestration/slices/slice-05-execution-plan-parallel-worktrees/slice.json +59 -0
- package/specs/quiver-v20-ai-cli-orchestration/slices/slice-06-ai-execute-slice-scope-enforcement/CLOSURE_BRIEF.md +36 -0
- package/specs/quiver-v20-ai-cli-orchestration/slices/slice-06-ai-execute-slice-scope-enforcement/EXECUTION_BRIEF.md +64 -0
- package/specs/quiver-v20-ai-cli-orchestration/slices/slice-06-ai-execute-slice-scope-enforcement/slice.json +65 -0
- package/specs/quiver-v20-ai-cli-orchestration/slices/slice-07-github-pr-preflight/CLOSURE_BRIEF.md +36 -0
- package/specs/quiver-v20-ai-cli-orchestration/slices/slice-07-github-pr-preflight/EXECUTION_BRIEF.md +66 -0
- package/specs/quiver-v20-ai-cli-orchestration/slices/slice-07-github-pr-preflight/slice.json +63 -0
- package/specs/quiver-v20-ai-cli-orchestration/slices/slice-08-docs-smokes-release-readiness/CLOSURE_BRIEF.md +35 -0
- package/specs/quiver-v20-ai-cli-orchestration/slices/slice-08-docs-smokes-release-readiness/EXECUTION_BRIEF.md +64 -0
- package/specs/quiver-v20-ai-cli-orchestration/slices/slice-08-docs-smokes-release-readiness/slice.json +77 -0
- package/specs/quiver-v21-ai-first-layout/EVIDENCE_REPORT.md +31 -0
- package/specs/quiver-v21-ai-first-layout/EXECUTION_PLAN.md +185 -0
- package/specs/quiver-v21-ai-first-layout/SPEC.md +212 -0
- package/specs/quiver-v21-ai-first-layout/STATUS.md +37 -0
- package/specs/quiver-v21-ai-first-layout/pr.md +110 -0
- package/specs/quiver-v21-ai-first-layout/slices/slice-00-spec-foundation/CLOSURE_BRIEF.md +30 -0
- package/specs/quiver-v21-ai-first-layout/slices/slice-00-spec-foundation/EXECUTION_BRIEF.md +63 -0
- package/specs/quiver-v21-ai-first-layout/slices/slice-00-spec-foundation/slice.json +45 -0
- package/specs/quiver-v21-ai-first-layout/slices/slice-01-init-profiles-dry-run/CLOSURE_BRIEF.md +31 -0
- package/specs/quiver-v21-ai-first-layout/slices/slice-01-init-profiles-dry-run/EXECUTION_BRIEF.md +59 -0
- package/specs/quiver-v21-ai-first-layout/slices/slice-01-init-profiles-dry-run/slice.json +57 -0
- package/specs/quiver-v21-ai-first-layout/slices/slice-02-internal-layout-template-resolver/CLOSURE_BRIEF.md +32 -0
- package/specs/quiver-v21-ai-first-layout/slices/slice-02-internal-layout-template-resolver/EXECUTION_BRIEF.md +60 -0
- package/specs/quiver-v21-ai-first-layout/slices/slice-02-internal-layout-template-resolver/slice.json +58 -0
- package/specs/quiver-v21-ai-first-layout/slices/slice-03-generation-profiles-visible-contract/CLOSURE_BRIEF.md +34 -0
- package/specs/quiver-v21-ai-first-layout/slices/slice-03-generation-profiles-visible-contract/EXECUTION_BRIEF.md +61 -0
- package/specs/quiver-v21-ai-first-layout/slices/slice-03-generation-profiles-visible-contract/slice.json +64 -0
- package/specs/quiver-v21-ai-first-layout/slices/slice-04-analyze-scan-relocation/CLOSURE_BRIEF.md +32 -0
- package/specs/quiver-v21-ai-first-layout/slices/slice-04-analyze-scan-relocation/EXECUTION_BRIEF.md +58 -0
- package/specs/quiver-v21-ai-first-layout/slices/slice-04-analyze-scan-relocation/slice.json +64 -0
- package/specs/quiver-v21-ai-first-layout/slices/slice-05-empty-specs-layout-doctor/CLOSURE_BRIEF.md +32 -0
- package/specs/quiver-v21-ai-first-layout/slices/slice-05-empty-specs-layout-doctor/EXECUTION_BRIEF.md +60 -0
- package/specs/quiver-v21-ai-first-layout/slices/slice-05-empty-specs-layout-doctor/slice.json +65 -0
- package/specs/quiver-v21-ai-first-layout/slices/slice-06-legacy-migration-optional-assets/CLOSURE_BRIEF.md +31 -0
- package/specs/quiver-v21-ai-first-layout/slices/slice-06-legacy-migration-optional-assets/EXECUTION_BRIEF.md +62 -0
- package/specs/quiver-v21-ai-first-layout/slices/slice-06-legacy-migration-optional-assets/slice.json +66 -0
- package/specs/quiver-v21-ai-first-layout/slices/slice-07-docs-guidance-alignment/CLOSURE_BRIEF.md +33 -0
- package/specs/quiver-v21-ai-first-layout/slices/slice-07-docs-guidance-alignment/EXECUTION_BRIEF.md +61 -0
- package/specs/quiver-v21-ai-first-layout/slices/slice-07-docs-guidance-alignment/slice.json +67 -0
- package/specs/quiver-v21-ai-first-layout/slices/slice-08-smokes-release-readiness/CLOSURE_BRIEF.md +35 -0
- package/specs/quiver-v21-ai-first-layout/slices/slice-08-smokes-release-readiness/EXECUTION_BRIEF.md +66 -0
- package/specs/quiver-v21-ai-first-layout/slices/slice-08-smokes-release-readiness/slice.json +62 -0
- 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/src/create-quiver/commands/ai.js +915 -0
- 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 +561 -0
- package/src/create-quiver/commands/graph.js +14 -1
- package/src/create-quiver/commands/next.js +28 -0
- package/src/create-quiver/commands/plan.js +6 -3
- package/src/create-quiver/commands/prepare.js +236 -0
- package/src/create-quiver/commands/spec.js +133 -0
- package/src/create-quiver/index.js +1096 -96
- package/src/create-quiver/lib/agent-profiles.js +148 -0
- package/src/create-quiver/lib/ai/context-packs.js +170 -0
- package/src/create-quiver/lib/ai/execution-plan.js +614 -0
- package/src/create-quiver/lib/ai/executor.js +682 -0
- package/src/create-quiver/lib/ai/github.js +525 -0
- package/src/create-quiver/lib/ai/onboarding-template.js +365 -0
- package/src/create-quiver/lib/ai/phase-gates.js +72 -0
- package/src/create-quiver/lib/ai/plan-review.js +283 -0
- package/src/create-quiver/lib/ai/preflight.js +58 -0
- package/src/create-quiver/lib/ai/prompt-transport.js +81 -0
- package/src/create-quiver/lib/ai/prompts.js +39 -0
- package/src/create-quiver/lib/ai/providers.js +315 -0
- package/src/create-quiver/lib/ai/safety.js +156 -0
- package/src/create-quiver/lib/ai/spec-generator.js +314 -0
- package/src/create-quiver/lib/ai/spec-templates.js +715 -0
- package/src/create-quiver/lib/approvals.js +350 -0
- package/src/create-quiver/lib/demo.js +657 -0
- package/src/create-quiver/lib/doctor.js +348 -0
- package/src/create-quiver/lib/evidence.js +115 -0
- package/src/create-quiver/lib/git.js +21 -0
- package/src/create-quiver/lib/init-docs.js +545 -23
- package/src/create-quiver/lib/init-layout.js +451 -0
- package/src/create-quiver/lib/lifecycle.js +8 -2
- package/src/create-quiver/lib/package-safety.js +117 -0
- package/src/create-quiver/lib/paths.js +63 -2
- package/src/create-quiver/lib/project-scan.js +66 -0
- package/src/create-quiver/lib/readiness.js +87 -18
- package/src/create-quiver/lib/scope.js +125 -0
- package/src/create-quiver/lib/slice-graph.js +7 -0
- package/src/create-quiver/lib/slice.js +59 -16
- package/src/create-quiver/lib/spec-worktrees.js +349 -0
- package/src/create-quiver/lib/state.js +18 -1
- package/src/create-quiver/lib/template-resolver.js +74 -0
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
const fs = require('node:fs');
|
|
2
|
+
const path = require('node:path');
|
|
3
|
+
|
|
4
|
+
const { assertSupportedProvider, formatProviderList } = require('./ai/providers');
|
|
5
|
+
const { quiverInternalPaths } = require('./init-layout');
|
|
6
|
+
|
|
7
|
+
const AGENT_PROFILE_ROLES = Object.freeze(['planner', 'executor', 'reviewer', 'researcher']);
|
|
8
|
+
const PROFILE_STATE_VERSION = 1;
|
|
9
|
+
|
|
10
|
+
function formatError(message) {
|
|
11
|
+
return `create-quiver: ${message}`;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
function agentProfilesPath(projectRoot) {
|
|
15
|
+
return path.join(quiverInternalPaths(projectRoot).root, 'agents', 'profiles.json');
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
function normalizeAgentProfileRole(role) {
|
|
19
|
+
const normalized = String(role || '').trim().toLowerCase();
|
|
20
|
+
if (!AGENT_PROFILE_ROLES.includes(normalized)) {
|
|
21
|
+
throw new Error(formatError(`unsupported agent profile role '${role}'. Expected one of: ${AGENT_PROFILE_ROLES.join(', ')}`));
|
|
22
|
+
}
|
|
23
|
+
return normalized;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
function normalizeOptionalText(value, fieldName) {
|
|
27
|
+
if (value === undefined || value === null) {
|
|
28
|
+
return '';
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
const normalized = String(value).trim();
|
|
32
|
+
if (normalized.length > 160) {
|
|
33
|
+
throw new Error(formatError(`agent profile ${fieldName} is too long`));
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
assertNotSecretLike(normalized, fieldName);
|
|
37
|
+
return normalized;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
function assertNotSecretLike(value, fieldName) {
|
|
41
|
+
const text = String(value || '');
|
|
42
|
+
const secretPatterns = [
|
|
43
|
+
/-----BEGIN [A-Z ]*PRIVATE KEY-----/,
|
|
44
|
+
/\bsk-[A-Za-z0-9_-]{16,}\b/,
|
|
45
|
+
/\bghp_[A-Za-z0-9_]{16,}\b/,
|
|
46
|
+
/\bgithub_pat_[A-Za-z0-9_]{16,}\b/,
|
|
47
|
+
/\bxox[baprs]-[A-Za-z0-9-]{16,}\b/,
|
|
48
|
+
];
|
|
49
|
+
|
|
50
|
+
if (secretPatterns.some((pattern) => pattern.test(text))) {
|
|
51
|
+
throw new Error(formatError(`agent profile ${fieldName} looks like a secret; store provider credentials in the provider CLI, not in Quiver profiles`));
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
function emptyProfilesState() {
|
|
56
|
+
return {
|
|
57
|
+
version: PROFILE_STATE_VERSION,
|
|
58
|
+
profiles: {},
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
function readAgentProfiles(projectRoot) {
|
|
63
|
+
const filePath = agentProfilesPath(projectRoot);
|
|
64
|
+
if (!fs.existsSync(filePath)) {
|
|
65
|
+
return emptyProfilesState();
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
const state = JSON.parse(fs.readFileSync(filePath, 'utf8'));
|
|
69
|
+
return {
|
|
70
|
+
version: state.version || PROFILE_STATE_VERSION,
|
|
71
|
+
profiles: state.profiles && typeof state.profiles === 'object' ? state.profiles : {},
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
function writeAgentProfiles(projectRoot, state) {
|
|
76
|
+
const filePath = agentProfilesPath(projectRoot);
|
|
77
|
+
fs.mkdirSync(path.dirname(filePath), { recursive: true });
|
|
78
|
+
fs.writeFileSync(filePath, `${JSON.stringify(state, null, 2)}\n`);
|
|
79
|
+
return filePath;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
function getAgentProfile(projectRoot, role) {
|
|
83
|
+
const normalizedRole = normalizeAgentProfileRole(role);
|
|
84
|
+
const state = readAgentProfiles(projectRoot);
|
|
85
|
+
return state.profiles[normalizedRole] || null;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
function listAgentProfiles(projectRoot) {
|
|
89
|
+
const state = readAgentProfiles(projectRoot);
|
|
90
|
+
return AGENT_PROFILE_ROLES.map((role) => ({
|
|
91
|
+
role,
|
|
92
|
+
configured: Boolean(state.profiles[role]),
|
|
93
|
+
profile: state.profiles[role] || null,
|
|
94
|
+
}));
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
function setAgentProfile(projectRoot, role, options = {}) {
|
|
98
|
+
const normalizedRole = normalizeAgentProfileRole(role);
|
|
99
|
+
const provider = assertSupportedProvider(options.provider);
|
|
100
|
+
const model = normalizeOptionalText(options.model, 'model');
|
|
101
|
+
const label = normalizeOptionalText(options.label, 'label');
|
|
102
|
+
const context = normalizeOptionalText(options.context, 'context');
|
|
103
|
+
const state = readAgentProfiles(projectRoot);
|
|
104
|
+
const current = state.profiles[normalizedRole] || {};
|
|
105
|
+
const now = new Date().toISOString();
|
|
106
|
+
const profile = {
|
|
107
|
+
role: normalizedRole,
|
|
108
|
+
provider,
|
|
109
|
+
model: model || current.model || '',
|
|
110
|
+
label: label || current.label || '',
|
|
111
|
+
context: context || current.context || '',
|
|
112
|
+
updated_at: now,
|
|
113
|
+
};
|
|
114
|
+
|
|
115
|
+
state.version = PROFILE_STATE_VERSION;
|
|
116
|
+
state.profiles = {
|
|
117
|
+
...state.profiles,
|
|
118
|
+
[normalizedRole]: profile,
|
|
119
|
+
};
|
|
120
|
+
state.updated_at = now;
|
|
121
|
+
|
|
122
|
+
const filePath = writeAgentProfiles(projectRoot, state);
|
|
123
|
+
return {
|
|
124
|
+
filePath,
|
|
125
|
+
profile,
|
|
126
|
+
};
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
function resolveProfileProvider(projectRoot, role, fallbackProvider) {
|
|
130
|
+
const profile = getAgentProfile(projectRoot, role);
|
|
131
|
+
if (profile?.provider) {
|
|
132
|
+
return assertSupportedProvider(profile.provider);
|
|
133
|
+
}
|
|
134
|
+
return assertSupportedProvider(fallbackProvider);
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
module.exports = {
|
|
138
|
+
AGENT_PROFILE_ROLES,
|
|
139
|
+
PROFILE_STATE_VERSION,
|
|
140
|
+
agentProfilesPath,
|
|
141
|
+
formatProviderList,
|
|
142
|
+
getAgentProfile,
|
|
143
|
+
listAgentProfiles,
|
|
144
|
+
normalizeAgentProfileRole,
|
|
145
|
+
readAgentProfiles,
|
|
146
|
+
resolveProfileProvider,
|
|
147
|
+
setAgentProfile,
|
|
148
|
+
};
|
|
@@ -0,0 +1,170 @@
|
|
|
1
|
+
const { filterContextPaths, shouldExcludeContextPath } = require('./safety');
|
|
2
|
+
const { buildRolePrompt } = require('./prompts');
|
|
3
|
+
const { readProjectScanArtifact } = require('../project-scan');
|
|
4
|
+
|
|
5
|
+
const ROLES = Object.freeze({
|
|
6
|
+
PLANNER: 'planner',
|
|
7
|
+
EXECUTOR: 'executor',
|
|
8
|
+
});
|
|
9
|
+
|
|
10
|
+
const CONTEXT_PACKS = Object.freeze({
|
|
11
|
+
full: Object.freeze({
|
|
12
|
+
name: 'full',
|
|
13
|
+
description: 'Broad planner onboarding context.',
|
|
14
|
+
role: ROLES.PLANNER,
|
|
15
|
+
tokenBudgetHint: 14000,
|
|
16
|
+
roleGuidance: 'Use broad onboarding context, project map, workflow docs, and relevant specs.',
|
|
17
|
+
}),
|
|
18
|
+
planning: Object.freeze({
|
|
19
|
+
name: 'planning',
|
|
20
|
+
description: 'Focused planner context for acceptance criteria and technical planning.',
|
|
21
|
+
role: ROLES.PLANNER,
|
|
22
|
+
tokenBudgetHint: 8000,
|
|
23
|
+
roleGuidance: 'Use project map, workflow docs, and only the specs needed for the current planning step.',
|
|
24
|
+
}),
|
|
25
|
+
slice: Object.freeze({
|
|
26
|
+
name: 'slice',
|
|
27
|
+
description: 'Executor context for a single slice handoff.',
|
|
28
|
+
role: ROLES.EXECUTOR,
|
|
29
|
+
tokenBudgetHint: 3200,
|
|
30
|
+
roleGuidance: 'Use slice handoff, allowed files, acceptance criteria, and validation commands only.',
|
|
31
|
+
}),
|
|
32
|
+
minimal: Object.freeze({
|
|
33
|
+
name: 'minimal',
|
|
34
|
+
description: 'Smallest executor context for narrowly-scoped tasks.',
|
|
35
|
+
role: ROLES.EXECUTOR,
|
|
36
|
+
tokenBudgetHint: 1200,
|
|
37
|
+
roleGuidance: 'Use the smallest safe set of slice details and avoid onboarding context.',
|
|
38
|
+
}),
|
|
39
|
+
});
|
|
40
|
+
|
|
41
|
+
const DEFAULT_CONTEXT_PACK_BY_ROLE = Object.freeze({
|
|
42
|
+
[ROLES.PLANNER]: 'planning',
|
|
43
|
+
[ROLES.EXECUTOR]: 'slice',
|
|
44
|
+
});
|
|
45
|
+
|
|
46
|
+
const PACK_ORDER = ['full', 'planning', 'slice', 'minimal'];
|
|
47
|
+
const CONTEXT_PREPARED_DOC_PATHS = Object.freeze([
|
|
48
|
+
'docs/AI_CONTEXT.md',
|
|
49
|
+
'docs/AI_ONBOARDING_PROMPT.md',
|
|
50
|
+
'docs/CONTEXTO.md',
|
|
51
|
+
'docs/STATUS.md',
|
|
52
|
+
'docs/DECISIONS.md',
|
|
53
|
+
]);
|
|
54
|
+
|
|
55
|
+
function normalizeRole(role) {
|
|
56
|
+
const value = String(role || '').trim().toLowerCase();
|
|
57
|
+
if (value === ROLES.PLANNER || value === ROLES.EXECUTOR) {
|
|
58
|
+
return value;
|
|
59
|
+
}
|
|
60
|
+
throw new Error(`create-quiver: unsupported role '${role}'. Expected planner or executor.`);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
function normalizePackName(packName) {
|
|
64
|
+
const value = String(packName || '').trim().toLowerCase();
|
|
65
|
+
if (CONTEXT_PACKS[value]) {
|
|
66
|
+
return value;
|
|
67
|
+
}
|
|
68
|
+
throw new Error(`create-quiver: unsupported context pack '${packName}'. Expected one of: ${PACK_ORDER.join(', ')}`);
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
function getDefaultContextPack(role) {
|
|
72
|
+
const normalizedRole = normalizeRole(role);
|
|
73
|
+
return DEFAULT_CONTEXT_PACK_BY_ROLE[normalizedRole];
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
function getPreparedContextDocPaths() {
|
|
77
|
+
return CONTEXT_PREPARED_DOC_PATHS.slice();
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
function resolveContextPack({ role, packName } = {}) {
|
|
81
|
+
const normalizedRole = normalizeRole(role);
|
|
82
|
+
const defaultPack = getDefaultContextPack(normalizedRole);
|
|
83
|
+
const resolvedPackName = packName ? normalizePackName(packName) : defaultPack;
|
|
84
|
+
|
|
85
|
+
if (normalizedRole === ROLES.EXECUTOR && resolvedPackName === 'full') {
|
|
86
|
+
throw new Error('create-quiver: executor context cannot use the full pack by default.');
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
const pack = CONTEXT_PACKS[resolvedPackName];
|
|
90
|
+
if (pack.role !== normalizedRole && !(normalizedRole === ROLES.PLANNER && resolvedPackName === 'slice')) {
|
|
91
|
+
throw new Error(`create-quiver: context pack '${resolvedPackName}' is not valid for role '${normalizedRole}'.`);
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
return {
|
|
95
|
+
role: normalizedRole,
|
|
96
|
+
packName: resolvedPackName,
|
|
97
|
+
defaultPack,
|
|
98
|
+
isDefault: resolvedPackName === defaultPack,
|
|
99
|
+
tokenBudgetHint: pack.tokenBudgetHint,
|
|
100
|
+
pack,
|
|
101
|
+
};
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
function buildPackSelection({ role, packName, paths = [] } = {}) {
|
|
105
|
+
const resolved = resolveContextPack({ role, packName });
|
|
106
|
+
const { included, excluded } = filterContextPaths(paths);
|
|
107
|
+
|
|
108
|
+
return {
|
|
109
|
+
...resolved,
|
|
110
|
+
includedPaths: included,
|
|
111
|
+
excludedPaths: excluded,
|
|
112
|
+
};
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
function resolveScanArtifactMetadata(repoRoot) {
|
|
116
|
+
if (!repoRoot) {
|
|
117
|
+
return null;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
const artifact = readProjectScanArtifact(repoRoot);
|
|
121
|
+
if (!artifact) {
|
|
122
|
+
return null;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
return {
|
|
126
|
+
path: artifact.relativePath,
|
|
127
|
+
source: artifact.source,
|
|
128
|
+
};
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
function buildContextPackMetadata(options = {}) {
|
|
132
|
+
const selection = buildPackSelection(options);
|
|
133
|
+
|
|
134
|
+
return {
|
|
135
|
+
role: selection.role,
|
|
136
|
+
packName: selection.packName,
|
|
137
|
+
isDefault: selection.isDefault,
|
|
138
|
+
tokenBudgetHint: selection.tokenBudgetHint,
|
|
139
|
+
description: selection.pack.description,
|
|
140
|
+
includedPaths: selection.includedPaths,
|
|
141
|
+
excludedPaths: selection.excludedPaths,
|
|
142
|
+
scanArtifact: resolveScanArtifactMetadata(options.repoRoot),
|
|
143
|
+
prompt: buildRolePrompt(selection.role, selection.pack),
|
|
144
|
+
};
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
function selectSafePaths(paths, options = {}) {
|
|
148
|
+
const selection = buildPackSelection({ ...options, paths });
|
|
149
|
+
return {
|
|
150
|
+
included: selection.includedPaths,
|
|
151
|
+
excluded: selection.excludedPaths,
|
|
152
|
+
};
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
module.exports = {
|
|
156
|
+
CONTEXT_PACKS,
|
|
157
|
+
DEFAULT_CONTEXT_PACK_BY_ROLE,
|
|
158
|
+
PACK_ORDER,
|
|
159
|
+
ROLES,
|
|
160
|
+
buildContextPackMetadata,
|
|
161
|
+
buildPackSelection,
|
|
162
|
+
getPreparedContextDocPaths,
|
|
163
|
+
getDefaultContextPack,
|
|
164
|
+
normalizePackName,
|
|
165
|
+
normalizeRole,
|
|
166
|
+
resolveScanArtifactMetadata,
|
|
167
|
+
resolveContextPack,
|
|
168
|
+
selectSafePaths,
|
|
169
|
+
shouldExcludeContextPath,
|
|
170
|
+
};
|