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.
Files changed (245) hide show
  1. package/BACKLOG.md +16 -17
  2. package/CHANGELOG.md +34 -0
  3. package/README.md +419 -330
  4. package/README_FOR_AI.md +93 -56
  5. package/ROADMAP.md +22 -11
  6. package/docs/AI_CONTEXT.md.template +2 -0
  7. package/docs/AI_ONBOARDING_PROMPT.md.template +36 -19
  8. package/docs/COMMANDS.md.template +73 -1
  9. package/docs/CONTEXTO.md.template +2 -0
  10. package/docs/DECISIONS.md.template +1 -0
  11. package/docs/GITFLOW_PR_GUIDE.md.template +11 -0
  12. package/docs/INDEX.md.template +20 -18
  13. package/docs/STANDARD.md.template +1 -1
  14. package/docs/STATUS.md.template +1 -0
  15. package/docs/SUPPORT_MATRIX.md.template +6 -2
  16. package/docs/TROUBLESHOOTING.md.template +79 -1
  17. package/docs/WORKFLOW.md.template +26 -18
  18. package/package.json +24 -2
  19. package/package.template.json +24 -7
  20. package/scripts/check-pr-readiness.sh +1 -1
  21. package/scripts/check-scope.sh +0 -1
  22. package/scripts/check-slice-readiness.sh +3 -4
  23. package/scripts/init-docs.sh +53 -6
  24. package/scripts/package-quiver.sh +18 -2
  25. package/specs/quiver-v20-ai-cli-orchestration/EVIDENCE_REPORT.md +23 -0
  26. package/specs/quiver-v20-ai-cli-orchestration/EXECUTION_PLAN.md +57 -0
  27. package/specs/quiver-v20-ai-cli-orchestration/SPEC.md +202 -0
  28. package/specs/quiver-v20-ai-cli-orchestration/STATUS.md +35 -0
  29. package/specs/quiver-v20-ai-cli-orchestration/pr.md +100 -0
  30. package/specs/quiver-v20-ai-cli-orchestration/slices/slice-00-spec-foundation/CLOSURE_BRIEF.md +30 -0
  31. package/specs/quiver-v20-ai-cli-orchestration/slices/slice-00-spec-foundation/EXECUTION_BRIEF.md +61 -0
  32. package/specs/quiver-v20-ai-cli-orchestration/slices/slice-00-spec-foundation/slice.json +54 -0
  33. package/specs/quiver-v20-ai-cli-orchestration/slices/slice-01-ai-provider-runner/CLOSURE_BRIEF.md +39 -0
  34. package/specs/quiver-v20-ai-cli-orchestration/slices/slice-01-ai-provider-runner/EXECUTION_BRIEF.md +63 -0
  35. package/specs/quiver-v20-ai-cli-orchestration/slices/slice-01-ai-provider-runner/slice.json +55 -0
  36. package/specs/quiver-v20-ai-cli-orchestration/slices/slice-02-context-packs-token-budget/CLOSURE_BRIEF.md +40 -0
  37. package/specs/quiver-v20-ai-cli-orchestration/slices/slice-02-context-packs-token-budget/EXECUTION_BRIEF.md +60 -0
  38. package/specs/quiver-v20-ai-cli-orchestration/slices/slice-02-context-packs-token-budget/slice.json +54 -0
  39. package/specs/quiver-v20-ai-cli-orchestration/slices/slice-03-ai-phase-gated-planner/CLOSURE_BRIEF.md +43 -0
  40. package/specs/quiver-v20-ai-cli-orchestration/slices/slice-03-ai-phase-gated-planner/EXECUTION_BRIEF.md +62 -0
  41. package/specs/quiver-v20-ai-cli-orchestration/slices/slice-03-ai-phase-gated-planner/slice.json +62 -0
  42. package/specs/quiver-v20-ai-cli-orchestration/slices/slice-04-spec-slice-handoff-pr-generation/CLOSURE_BRIEF.md +36 -0
  43. package/specs/quiver-v20-ai-cli-orchestration/slices/slice-04-spec-slice-handoff-pr-generation/EXECUTION_BRIEF.md +63 -0
  44. package/specs/quiver-v20-ai-cli-orchestration/slices/slice-04-spec-slice-handoff-pr-generation/slice.json +59 -0
  45. package/specs/quiver-v20-ai-cli-orchestration/slices/slice-05-execution-plan-parallel-worktrees/CLOSURE_BRIEF.md +32 -0
  46. package/specs/quiver-v20-ai-cli-orchestration/slices/slice-05-execution-plan-parallel-worktrees/EXECUTION_BRIEF.md +61 -0
  47. package/specs/quiver-v20-ai-cli-orchestration/slices/slice-05-execution-plan-parallel-worktrees/slice.json +59 -0
  48. package/specs/quiver-v20-ai-cli-orchestration/slices/slice-06-ai-execute-slice-scope-enforcement/CLOSURE_BRIEF.md +36 -0
  49. package/specs/quiver-v20-ai-cli-orchestration/slices/slice-06-ai-execute-slice-scope-enforcement/EXECUTION_BRIEF.md +64 -0
  50. package/specs/quiver-v20-ai-cli-orchestration/slices/slice-06-ai-execute-slice-scope-enforcement/slice.json +65 -0
  51. package/specs/quiver-v20-ai-cli-orchestration/slices/slice-07-github-pr-preflight/CLOSURE_BRIEF.md +36 -0
  52. package/specs/quiver-v20-ai-cli-orchestration/slices/slice-07-github-pr-preflight/EXECUTION_BRIEF.md +66 -0
  53. package/specs/quiver-v20-ai-cli-orchestration/slices/slice-07-github-pr-preflight/slice.json +63 -0
  54. package/specs/quiver-v20-ai-cli-orchestration/slices/slice-08-docs-smokes-release-readiness/CLOSURE_BRIEF.md +35 -0
  55. package/specs/quiver-v20-ai-cli-orchestration/slices/slice-08-docs-smokes-release-readiness/EXECUTION_BRIEF.md +64 -0
  56. package/specs/quiver-v20-ai-cli-orchestration/slices/slice-08-docs-smokes-release-readiness/slice.json +77 -0
  57. package/specs/quiver-v21-ai-first-layout/EVIDENCE_REPORT.md +31 -0
  58. package/specs/quiver-v21-ai-first-layout/EXECUTION_PLAN.md +185 -0
  59. package/specs/quiver-v21-ai-first-layout/SPEC.md +212 -0
  60. package/specs/quiver-v21-ai-first-layout/STATUS.md +37 -0
  61. package/specs/quiver-v21-ai-first-layout/pr.md +110 -0
  62. package/specs/quiver-v21-ai-first-layout/slices/slice-00-spec-foundation/CLOSURE_BRIEF.md +30 -0
  63. package/specs/quiver-v21-ai-first-layout/slices/slice-00-spec-foundation/EXECUTION_BRIEF.md +63 -0
  64. package/specs/quiver-v21-ai-first-layout/slices/slice-00-spec-foundation/slice.json +45 -0
  65. package/specs/quiver-v21-ai-first-layout/slices/slice-01-init-profiles-dry-run/CLOSURE_BRIEF.md +31 -0
  66. package/specs/quiver-v21-ai-first-layout/slices/slice-01-init-profiles-dry-run/EXECUTION_BRIEF.md +59 -0
  67. package/specs/quiver-v21-ai-first-layout/slices/slice-01-init-profiles-dry-run/slice.json +57 -0
  68. package/specs/quiver-v21-ai-first-layout/slices/slice-02-internal-layout-template-resolver/CLOSURE_BRIEF.md +32 -0
  69. package/specs/quiver-v21-ai-first-layout/slices/slice-02-internal-layout-template-resolver/EXECUTION_BRIEF.md +60 -0
  70. package/specs/quiver-v21-ai-first-layout/slices/slice-02-internal-layout-template-resolver/slice.json +58 -0
  71. package/specs/quiver-v21-ai-first-layout/slices/slice-03-generation-profiles-visible-contract/CLOSURE_BRIEF.md +34 -0
  72. package/specs/quiver-v21-ai-first-layout/slices/slice-03-generation-profiles-visible-contract/EXECUTION_BRIEF.md +61 -0
  73. package/specs/quiver-v21-ai-first-layout/slices/slice-03-generation-profiles-visible-contract/slice.json +64 -0
  74. package/specs/quiver-v21-ai-first-layout/slices/slice-04-analyze-scan-relocation/CLOSURE_BRIEF.md +32 -0
  75. package/specs/quiver-v21-ai-first-layout/slices/slice-04-analyze-scan-relocation/EXECUTION_BRIEF.md +58 -0
  76. package/specs/quiver-v21-ai-first-layout/slices/slice-04-analyze-scan-relocation/slice.json +64 -0
  77. package/specs/quiver-v21-ai-first-layout/slices/slice-05-empty-specs-layout-doctor/CLOSURE_BRIEF.md +32 -0
  78. package/specs/quiver-v21-ai-first-layout/slices/slice-05-empty-specs-layout-doctor/EXECUTION_BRIEF.md +60 -0
  79. package/specs/quiver-v21-ai-first-layout/slices/slice-05-empty-specs-layout-doctor/slice.json +65 -0
  80. package/specs/quiver-v21-ai-first-layout/slices/slice-06-legacy-migration-optional-assets/CLOSURE_BRIEF.md +31 -0
  81. package/specs/quiver-v21-ai-first-layout/slices/slice-06-legacy-migration-optional-assets/EXECUTION_BRIEF.md +62 -0
  82. package/specs/quiver-v21-ai-first-layout/slices/slice-06-legacy-migration-optional-assets/slice.json +66 -0
  83. package/specs/quiver-v21-ai-first-layout/slices/slice-07-docs-guidance-alignment/CLOSURE_BRIEF.md +33 -0
  84. package/specs/quiver-v21-ai-first-layout/slices/slice-07-docs-guidance-alignment/EXECUTION_BRIEF.md +61 -0
  85. package/specs/quiver-v21-ai-first-layout/slices/slice-07-docs-guidance-alignment/slice.json +67 -0
  86. package/specs/quiver-v21-ai-first-layout/slices/slice-08-smokes-release-readiness/CLOSURE_BRIEF.md +35 -0
  87. package/specs/quiver-v21-ai-first-layout/slices/slice-08-smokes-release-readiness/EXECUTION_BRIEF.md +66 -0
  88. package/specs/quiver-v21-ai-first-layout/slices/slice-08-smokes-release-readiness/slice.json +62 -0
  89. package/specs/quiver-v22-guided-ai-workflow/EVIDENCE_REPORT.md +58 -0
  90. package/specs/quiver-v22-guided-ai-workflow/EXECUTION_PLAN.md +88 -0
  91. package/specs/quiver-v22-guided-ai-workflow/SPEC.md +228 -0
  92. package/specs/quiver-v22-guided-ai-workflow/STATUS.md +42 -0
  93. package/specs/quiver-v22-guided-ai-workflow/pr.md +104 -0
  94. package/specs/quiver-v22-guided-ai-workflow/slices/slice-00-spec-foundation/CLOSURE_BRIEF.md +35 -0
  95. package/specs/quiver-v22-guided-ai-workflow/slices/slice-00-spec-foundation/EXECUTION_BRIEF.md +61 -0
  96. package/specs/quiver-v22-guided-ai-workflow/slices/slice-00-spec-foundation/slice.json +51 -0
  97. package/specs/quiver-v22-guided-ai-workflow/slices/slice-01-docs-source-of-truth-sync/CLOSURE_BRIEF.md +31 -0
  98. package/specs/quiver-v22-guided-ai-workflow/slices/slice-01-docs-source-of-truth-sync/EXECUTION_BRIEF.md +58 -0
  99. package/specs/quiver-v22-guided-ai-workflow/slices/slice-01-docs-source-of-truth-sync/slice.json +55 -0
  100. package/specs/quiver-v22-guided-ai-workflow/slices/slice-02-prepare-command-diagnostics/CLOSURE_BRIEF.md +30 -0
  101. package/specs/quiver-v22-guided-ai-workflow/slices/slice-02-prepare-command-diagnostics/EXECUTION_BRIEF.md +57 -0
  102. package/specs/quiver-v22-guided-ai-workflow/slices/slice-02-prepare-command-diagnostics/slice.json +57 -0
  103. package/specs/quiver-v22-guided-ai-workflow/slices/slice-03-context-doc-refresh/CLOSURE_BRIEF.md +32 -0
  104. package/specs/quiver-v22-guided-ai-workflow/slices/slice-03-context-doc-refresh/EXECUTION_BRIEF.md +56 -0
  105. package/specs/quiver-v22-guided-ai-workflow/slices/slice-03-context-doc-refresh/slice.json +56 -0
  106. package/specs/quiver-v22-guided-ai-workflow/slices/slice-04-planner-approval-state/CLOSURE_BRIEF.md +33 -0
  107. package/specs/quiver-v22-guided-ai-workflow/slices/slice-04-planner-approval-state/EXECUTION_BRIEF.md +56 -0
  108. package/specs/quiver-v22-guided-ai-workflow/slices/slice-04-planner-approval-state/slice.json +58 -0
  109. package/specs/quiver-v22-guided-ai-workflow/slices/slice-05-spec-worktree-lifecycle/CLOSURE_BRIEF.md +32 -0
  110. package/specs/quiver-v22-guided-ai-workflow/slices/slice-05-spec-worktree-lifecycle/EXECUTION_BRIEF.md +56 -0
  111. package/specs/quiver-v22-guided-ai-workflow/slices/slice-05-spec-worktree-lifecycle/slice.json +54 -0
  112. package/specs/quiver-v22-guided-ai-workflow/slices/slice-06-executor-commit-recovery/CLOSURE_BRIEF.md +32 -0
  113. package/specs/quiver-v22-guided-ai-workflow/slices/slice-06-executor-commit-recovery/EXECUTION_BRIEF.md +58 -0
  114. package/specs/quiver-v22-guided-ai-workflow/slices/slice-06-executor-commit-recovery/slice.json +57 -0
  115. package/specs/quiver-v22-guided-ai-workflow/slices/slice-07-execution-waves-delegation/CLOSURE_BRIEF.md +32 -0
  116. package/specs/quiver-v22-guided-ai-workflow/slices/slice-07-execution-waves-delegation/EXECUTION_BRIEF.md +58 -0
  117. package/specs/quiver-v22-guided-ai-workflow/slices/slice-07-execution-waves-delegation/slice.json +55 -0
  118. package/specs/quiver-v22-guided-ai-workflow/slices/slice-08-pr-create-gh-ssh/CLOSURE_BRIEF.md +32 -0
  119. package/specs/quiver-v22-guided-ai-workflow/slices/slice-08-pr-create-gh-ssh/EXECUTION_BRIEF.md +58 -0
  120. package/specs/quiver-v22-guided-ai-workflow/slices/slice-08-pr-create-gh-ssh/slice.json +53 -0
  121. package/specs/quiver-v22-guided-ai-workflow/slices/slice-09-post-merge-cleanup-release-safety/CLOSURE_BRIEF.md +33 -0
  122. package/specs/quiver-v22-guided-ai-workflow/slices/slice-09-post-merge-cleanup-release-safety/EXECUTION_BRIEF.md +59 -0
  123. package/specs/quiver-v22-guided-ai-workflow/slices/slice-09-post-merge-cleanup-release-safety/slice.json +59 -0
  124. package/specs/quiver-v22-guided-ai-workflow/slices/slice-10-docs-smokes-release-readiness/CLOSURE_BRIEF.md +34 -0
  125. package/specs/quiver-v22-guided-ai-workflow/slices/slice-10-docs-smokes-release-readiness/EXECUTION_BRIEF.md +58 -0
  126. package/specs/quiver-v22-guided-ai-workflow/slices/slice-10-docs-smokes-release-readiness/slice.json +60 -0
  127. package/specs/quiver-v23-guided-flow-productization/EVIDENCE_REPORT.md +80 -0
  128. package/specs/quiver-v23-guided-flow-productization/EXECUTION_PLAN.md +80 -0
  129. package/specs/quiver-v23-guided-flow-productization/SPEC.md +203 -0
  130. package/specs/quiver-v23-guided-flow-productization/STATUS.md +39 -0
  131. package/specs/quiver-v23-guided-flow-productization/pr.md +119 -0
  132. package/specs/quiver-v23-guided-flow-productization/slices/slice-00-spec-foundation/CLOSURE_BRIEF.md +30 -0
  133. package/specs/quiver-v23-guided-flow-productization/slices/slice-00-spec-foundation/EXECUTION_BRIEF.md +61 -0
  134. package/specs/quiver-v23-guided-flow-productization/slices/slice-00-spec-foundation/slice.json +51 -0
  135. package/specs/quiver-v23-guided-flow-productization/slices/slice-01-short-command-and-flow-entrypoint/CLOSURE_BRIEF.md +33 -0
  136. package/specs/quiver-v23-guided-flow-productization/slices/slice-01-short-command-and-flow-entrypoint/EXECUTION_BRIEF.md +35 -0
  137. package/specs/quiver-v23-guided-flow-productization/slices/slice-01-short-command-and-flow-entrypoint/slice.json +56 -0
  138. package/specs/quiver-v23-guided-flow-productization/slices/slice-02-flow-status-wizard/CLOSURE_BRIEF.md +31 -0
  139. package/specs/quiver-v23-guided-flow-productization/slices/slice-02-flow-status-wizard/EXECUTION_BRIEF.md +29 -0
  140. package/specs/quiver-v23-guided-flow-productization/slices/slice-02-flow-status-wizard/slice.json +55 -0
  141. package/specs/quiver-v23-guided-flow-productization/slices/slice-03-agent-profiles/CLOSURE_BRIEF.md +33 -0
  142. package/specs/quiver-v23-guided-flow-productization/slices/slice-03-agent-profiles/EXECUTION_BRIEF.md +29 -0
  143. package/specs/quiver-v23-guided-flow-productization/slices/slice-03-agent-profiles/slice.json +54 -0
  144. package/specs/quiver-v23-guided-flow-productization/slices/slice-04-context-preparation-onboarding/CLOSURE_BRIEF.md +32 -0
  145. package/specs/quiver-v23-guided-flow-productization/slices/slice-04-context-preparation-onboarding/EXECUTION_BRIEF.md +30 -0
  146. package/specs/quiver-v23-guided-flow-productization/slices/slice-04-context-preparation-onboarding/slice.json +59 -0
  147. package/specs/quiver-v23-guided-flow-productization/slices/slice-05-planner-iteration-history/CLOSURE_BRIEF.md +31 -0
  148. package/specs/quiver-v23-guided-flow-productization/slices/slice-05-planner-iteration-history/EXECUTION_BRIEF.md +29 -0
  149. package/specs/quiver-v23-guided-flow-productization/slices/slice-05-planner-iteration-history/slice.json +53 -0
  150. package/specs/quiver-v23-guided-flow-productization/slices/slice-06-production-plan-review/CLOSURE_BRIEF.md +33 -0
  151. package/specs/quiver-v23-guided-flow-productization/slices/slice-06-production-plan-review/EXECUTION_BRIEF.md +30 -0
  152. package/specs/quiver-v23-guided-flow-productization/slices/slice-06-production-plan-review/slice.json +54 -0
  153. package/specs/quiver-v23-guided-flow-productization/slices/slice-07-spec-create-experience/CLOSURE_BRIEF.md +33 -0
  154. package/specs/quiver-v23-guided-flow-productization/slices/slice-07-spec-create-experience/EXECUTION_BRIEF.md +30 -0
  155. package/specs/quiver-v23-guided-flow-productization/slices/slice-07-spec-create-experience/slice.json +55 -0
  156. package/specs/quiver-v23-guided-flow-productization/slices/slice-08-executor-prompt-generation/CLOSURE_BRIEF.md +32 -0
  157. package/specs/quiver-v23-guided-flow-productization/slices/slice-08-executor-prompt-generation/EXECUTION_BRIEF.md +30 -0
  158. package/specs/quiver-v23-guided-flow-productization/slices/slice-08-executor-prompt-generation/slice.json +55 -0
  159. package/specs/quiver-v23-guided-flow-productization/slices/slice-09-delegated-slice-execution/CLOSURE_BRIEF.md +33 -0
  160. package/specs/quiver-v23-guided-flow-productization/slices/slice-09-delegated-slice-execution/EXECUTION_BRIEF.md +34 -0
  161. package/specs/quiver-v23-guided-flow-productization/slices/slice-09-delegated-slice-execution/slice.json +57 -0
  162. package/specs/quiver-v23-guided-flow-productization/slices/slice-10-docs-smokes-release-readiness/CLOSURE_BRIEF.md +33 -0
  163. package/specs/quiver-v23-guided-flow-productization/slices/slice-10-docs-smokes-release-readiness/EXECUTION_BRIEF.md +32 -0
  164. package/specs/quiver-v23-guided-flow-productization/slices/slice-10-docs-smokes-release-readiness/slice.json +63 -0
  165. package/specs/quiver-v24-dx-onboarding-hardening/EVIDENCE_REPORT.md +55 -0
  166. package/specs/quiver-v24-dx-onboarding-hardening/EXECUTION_PLAN.md +43 -0
  167. package/specs/quiver-v24-dx-onboarding-hardening/SPEC.md +149 -0
  168. package/specs/quiver-v24-dx-onboarding-hardening/STATUS.md +31 -0
  169. package/specs/quiver-v24-dx-onboarding-hardening/pr.md +76 -0
  170. package/specs/quiver-v24-dx-onboarding-hardening/slices/slice-00-spec-foundation/CLOSURE_BRIEF.md +31 -0
  171. package/specs/quiver-v24-dx-onboarding-hardening/slices/slice-00-spec-foundation/EXECUTION_BRIEF.md +52 -0
  172. package/specs/quiver-v24-dx-onboarding-hardening/slices/slice-00-spec-foundation/slice.json +51 -0
  173. package/specs/quiver-v24-dx-onboarding-hardening/slices/slice-01-init-template-hygiene/CLOSURE_BRIEF.md +38 -0
  174. package/specs/quiver-v24-dx-onboarding-hardening/slices/slice-01-init-template-hygiene/EXECUTION_BRIEF.md +53 -0
  175. package/specs/quiver-v24-dx-onboarding-hardening/slices/slice-01-init-template-hygiene/slice.json +55 -0
  176. package/specs/quiver-v24-dx-onboarding-hardening/slices/slice-02-cli-command-routing-version-errors/CLOSURE_BRIEF.md +33 -0
  177. package/specs/quiver-v24-dx-onboarding-hardening/slices/slice-02-cli-command-routing-version-errors/EXECUTION_BRIEF.md +50 -0
  178. package/specs/quiver-v24-dx-onboarding-hardening/slices/slice-02-cli-command-routing-version-errors/slice.json +52 -0
  179. package/specs/quiver-v24-dx-onboarding-hardening/slices/slice-03-doctor-fix-doc-link-checks/CLOSURE_BRIEF.md +33 -0
  180. package/specs/quiver-v24-dx-onboarding-hardening/slices/slice-03-doctor-fix-doc-link-checks/EXECUTION_BRIEF.md +50 -0
  181. package/specs/quiver-v24-dx-onboarding-hardening/slices/slice-03-doctor-fix-doc-link-checks/slice.json +53 -0
  182. package/specs/quiver-v24-dx-onboarding-hardening/slices/slice-04-prepare-output-ai-context-drafts/CLOSURE_BRIEF.md +33 -0
  183. package/specs/quiver-v24-dx-onboarding-hardening/slices/slice-04-prepare-output-ai-context-drafts/EXECUTION_BRIEF.md +50 -0
  184. package/specs/quiver-v24-dx-onboarding-hardening/slices/slice-04-prepare-output-ai-context-drafts/slice.json +70 -0
  185. package/specs/quiver-v24-dx-onboarding-hardening/slices/slice-05-local-slice-validation-base-guidance/CLOSURE_BRIEF.md +36 -0
  186. package/specs/quiver-v24-dx-onboarding-hardening/slices/slice-05-local-slice-validation-base-guidance/EXECUTION_BRIEF.md +49 -0
  187. package/specs/quiver-v24-dx-onboarding-hardening/slices/slice-05-local-slice-validation-base-guidance/slice.json +52 -0
  188. package/specs/quiver-v24-dx-onboarding-hardening/slices/slice-06-plan-graph-next-history-views/CLOSURE_BRIEF.md +43 -0
  189. package/specs/quiver-v24-dx-onboarding-hardening/slices/slice-06-plan-graph-next-history-views/EXECUTION_BRIEF.md +53 -0
  190. package/specs/quiver-v24-dx-onboarding-hardening/slices/slice-06-plan-graph-next-history-views/slice.json +60 -0
  191. package/specs/quiver-v24-dx-onboarding-hardening/slices/slice-07-analyzer-command-map-hardening/CLOSURE_BRIEF.md +32 -0
  192. package/specs/quiver-v24-dx-onboarding-hardening/slices/slice-07-analyzer-command-map-hardening/EXECUTION_BRIEF.md +50 -0
  193. package/specs/quiver-v24-dx-onboarding-hardening/slices/slice-07-analyzer-command-map-hardening/slice.json +51 -0
  194. package/specs/quiver-v24-dx-onboarding-hardening/slices/slice-08-evidence-run-command/CLOSURE_BRIEF.md +34 -0
  195. package/specs/quiver-v24-dx-onboarding-hardening/slices/slice-08-evidence-run-command/EXECUTION_BRIEF.md +52 -0
  196. package/specs/quiver-v24-dx-onboarding-hardening/slices/slice-08-evidence-run-command/slice.json +54 -0
  197. package/specs/quiver-v24-dx-onboarding-hardening/slices/slice-09-spec-viewer-demo-scaffolding/CLOSURE_BRIEF.md +34 -0
  198. package/specs/quiver-v24-dx-onboarding-hardening/slices/slice-09-spec-viewer-demo-scaffolding/EXECUTION_BRIEF.md +51 -0
  199. package/specs/quiver-v24-dx-onboarding-hardening/slices/slice-09-spec-viewer-demo-scaffolding/slice.json +59 -0
  200. package/specs/quiver-v24-dx-onboarding-hardening/slices/slice-10-docs-smokes-release-readiness/CLOSURE_BRIEF.md +33 -0
  201. package/specs/quiver-v24-dx-onboarding-hardening/slices/slice-10-docs-smokes-release-readiness/EXECUTION_BRIEF.md +54 -0
  202. package/specs/quiver-v24-dx-onboarding-hardening/slices/slice-10-docs-smokes-release-readiness/slice.json +76 -0
  203. package/src/create-quiver/commands/ai.js +915 -0
  204. package/src/create-quiver/commands/demo.js +22 -0
  205. package/src/create-quiver/commands/evidence.js +37 -0
  206. package/src/create-quiver/commands/flow.js +561 -0
  207. package/src/create-quiver/commands/graph.js +14 -1
  208. package/src/create-quiver/commands/next.js +28 -0
  209. package/src/create-quiver/commands/plan.js +6 -3
  210. package/src/create-quiver/commands/prepare.js +236 -0
  211. package/src/create-quiver/commands/spec.js +133 -0
  212. package/src/create-quiver/index.js +1096 -96
  213. package/src/create-quiver/lib/agent-profiles.js +148 -0
  214. package/src/create-quiver/lib/ai/context-packs.js +170 -0
  215. package/src/create-quiver/lib/ai/execution-plan.js +614 -0
  216. package/src/create-quiver/lib/ai/executor.js +682 -0
  217. package/src/create-quiver/lib/ai/github.js +525 -0
  218. package/src/create-quiver/lib/ai/onboarding-template.js +365 -0
  219. package/src/create-quiver/lib/ai/phase-gates.js +72 -0
  220. package/src/create-quiver/lib/ai/plan-review.js +283 -0
  221. package/src/create-quiver/lib/ai/preflight.js +58 -0
  222. package/src/create-quiver/lib/ai/prompt-transport.js +81 -0
  223. package/src/create-quiver/lib/ai/prompts.js +39 -0
  224. package/src/create-quiver/lib/ai/providers.js +315 -0
  225. package/src/create-quiver/lib/ai/safety.js +156 -0
  226. package/src/create-quiver/lib/ai/spec-generator.js +314 -0
  227. package/src/create-quiver/lib/ai/spec-templates.js +715 -0
  228. package/src/create-quiver/lib/approvals.js +350 -0
  229. package/src/create-quiver/lib/demo.js +657 -0
  230. package/src/create-quiver/lib/doctor.js +348 -0
  231. package/src/create-quiver/lib/evidence.js +115 -0
  232. package/src/create-quiver/lib/git.js +21 -0
  233. package/src/create-quiver/lib/init-docs.js +545 -23
  234. package/src/create-quiver/lib/init-layout.js +451 -0
  235. package/src/create-quiver/lib/lifecycle.js +8 -2
  236. package/src/create-quiver/lib/package-safety.js +117 -0
  237. package/src/create-quiver/lib/paths.js +63 -2
  238. package/src/create-quiver/lib/project-scan.js +66 -0
  239. package/src/create-quiver/lib/readiness.js +87 -18
  240. package/src/create-quiver/lib/scope.js +125 -0
  241. package/src/create-quiver/lib/slice-graph.js +7 -0
  242. package/src/create-quiver/lib/slice.js +59 -16
  243. package/src/create-quiver/lib/spec-worktrees.js +349 -0
  244. package/src/create-quiver/lib/state.js +18 -1
  245. package/src/create-quiver/lib/template-resolver.js +74 -0
@@ -0,0 +1,315 @@
1
+ const fs = require('node:fs');
2
+ const { spawn } = require('node:child_process');
3
+
4
+ const { finalizePromptTransport, preparePromptTransport, describePromptTransport } = require('./prompt-transport');
5
+
6
+ const SUPPORTED_PROVIDERS = ['codex', 'claude', 'gemini'];
7
+
8
+ const PROVIDERS = {
9
+ codex: {
10
+ id: 'codex',
11
+ command: 'codex',
12
+ args: ['exec'],
13
+ timeoutMs: 10 * 60 * 1000,
14
+ installHint: 'Install the Codex CLI and make sure it is available on PATH.',
15
+ },
16
+ claude: {
17
+ id: 'claude',
18
+ command: 'claude',
19
+ args: ['-p'],
20
+ timeoutMs: 10 * 60 * 1000,
21
+ installHint: 'Install the Claude CLI and make sure it is available on PATH.',
22
+ },
23
+ gemini: {
24
+ id: 'gemini',
25
+ command: 'gemini',
26
+ args: ['--prompt', ''],
27
+ timeoutMs: 10 * 60 * 1000,
28
+ installHint: 'Install the Gemini CLI and make sure it is available on PATH.',
29
+ },
30
+ };
31
+
32
+ class ProviderRunnerError extends Error {
33
+ constructor(code, message, details = {}) {
34
+ super(message);
35
+ this.name = 'ProviderRunnerError';
36
+ this.code = code;
37
+ this.details = details;
38
+ }
39
+ }
40
+
41
+ function formatProviderList() {
42
+ return SUPPORTED_PROVIDERS.join(', ');
43
+ }
44
+
45
+ function assertSupportedProvider(providerId) {
46
+ const normalized = String(providerId || '').trim().toLowerCase();
47
+ if (!normalized || !Object.prototype.hasOwnProperty.call(PROVIDERS, normalized)) {
48
+ throw new ProviderRunnerError(
49
+ 'UNSUPPORTED_PROVIDER',
50
+ `Unsupported provider '${providerId}'. Supported providers: ${formatProviderList()}.`,
51
+ { providerId, supportedProviders: SUPPORTED_PROVIDERS.slice() },
52
+ );
53
+ }
54
+
55
+ return normalized;
56
+ }
57
+
58
+ function getProviderDefinition(providerId) {
59
+ const normalized = assertSupportedProvider(providerId);
60
+ return PROVIDERS[normalized];
61
+ }
62
+
63
+ function buildProviderInvocation(providerId, options = {}) {
64
+ const provider = getProviderDefinition(providerId);
65
+ const extraArgs = Array.isArray(options.args) ? options.args.map((arg) => String(arg)) : [];
66
+ const prompt = String(options.prompt ?? '');
67
+ const timeoutMs = Number.isFinite(options.timeoutMs) ? Number(options.timeoutMs) : provider.timeoutMs;
68
+ const cwd = options.cwd ? String(options.cwd) : process.cwd();
69
+ const transportMode = options.transportMode || options.promptTransport || 'stdin';
70
+
71
+ return {
72
+ provider: provider.id,
73
+ command: provider.command,
74
+ args: provider.args.concat(extraArgs),
75
+ cwd,
76
+ timeoutMs,
77
+ promptLength: Buffer.byteLength(prompt, 'utf8'),
78
+ promptTransport: {
79
+ mode: transportMode,
80
+ promptLength: Buffer.byteLength(prompt, 'utf8'),
81
+ usesStdin: transportMode !== 'temp-file',
82
+ },
83
+ };
84
+ }
85
+
86
+ function createDryRunResult(invocation) {
87
+ return {
88
+ ok: true,
89
+ dryRun: true,
90
+ provider: invocation.provider,
91
+ command: invocation.command,
92
+ args: invocation.args.slice(),
93
+ cwd: invocation.cwd,
94
+ timeoutMs: invocation.timeoutMs,
95
+ promptTransport: invocation.promptTransport,
96
+ exitCode: 0,
97
+ stdout: '',
98
+ stderr: '',
99
+ error: null,
100
+ };
101
+ }
102
+
103
+ function serializeError(error, provider, invocation) {
104
+ if (!error) {
105
+ return null;
106
+ }
107
+
108
+ return {
109
+ code: error.code || 'PROVIDER_ERROR',
110
+ message: error.message || String(error),
111
+ provider,
112
+ command: invocation.command,
113
+ args: invocation.args.slice(),
114
+ syscall: error.syscall || null,
115
+ errno: typeof error.errno === 'number' ? error.errno : null,
116
+ };
117
+ }
118
+
119
+ function runSpawn(command, args, options = {}) {
120
+ const spawnImpl = options.spawn || spawn;
121
+
122
+ return new Promise((resolve) => {
123
+ let child;
124
+ try {
125
+ child = spawnImpl(command, args, {
126
+ cwd: options.cwd,
127
+ env: options.env,
128
+ shell: false,
129
+ stdio: ['pipe', 'pipe', 'pipe'],
130
+ });
131
+ } catch (error) {
132
+ resolve({
133
+ ok: false,
134
+ exitCode: null,
135
+ signal: null,
136
+ stdout: '',
137
+ stderr: '',
138
+ error: serializeError(error, options.provider, options.invocation),
139
+ });
140
+ return;
141
+ }
142
+
143
+ let stdout = '';
144
+ let stderr = '';
145
+ const cleanupFns = [];
146
+ let settled = false;
147
+
148
+ if (child.stdout) {
149
+ child.stdout.setEncoding('utf8');
150
+ child.stdout.on('data', (chunk) => {
151
+ stdout += chunk;
152
+ });
153
+ }
154
+
155
+ if (child.stderr) {
156
+ child.stderr.setEncoding('utf8');
157
+ child.stderr.on('data', (chunk) => {
158
+ stderr += chunk;
159
+ });
160
+ }
161
+
162
+ const finalize = (payload) => {
163
+ if (settled) {
164
+ return;
165
+ }
166
+ settled = true;
167
+
168
+ while (cleanupFns.length > 0) {
169
+ const fn = cleanupFns.pop();
170
+ try {
171
+ fn();
172
+ } catch {
173
+ // Ignore cleanup failures so execution results remain visible.
174
+ }
175
+ }
176
+
177
+ resolve({
178
+ ok: payload.exitCode === 0,
179
+ exitCode: payload.exitCode,
180
+ signal: payload.signal || null,
181
+ stdout,
182
+ stderr,
183
+ error: payload.error ? serializeError(payload.error, options.provider, options.invocation) : null,
184
+ });
185
+ };
186
+
187
+ if (options.transport && typeof options.transport.cleanup === 'function') {
188
+ cleanupFns.push(() => options.transport.cleanup());
189
+ }
190
+
191
+ const timeoutMs = Number.isFinite(options.timeoutMs) ? Number(options.timeoutMs) : 0;
192
+ if (timeoutMs > 0) {
193
+ const timer = setTimeout(() => {
194
+ if (child && typeof child.kill === 'function') {
195
+ child.kill('SIGTERM');
196
+ }
197
+ finalize({
198
+ exitCode: null,
199
+ signal: 'SIGTERM',
200
+ error: new ProviderRunnerError(
201
+ 'PROVIDER_TIMEOUT',
202
+ `Provider '${options.provider}' timed out after ${timeoutMs}ms.`,
203
+ { timeoutMs },
204
+ ),
205
+ });
206
+ }, timeoutMs);
207
+ cleanupFns.push(() => clearTimeout(timer));
208
+ }
209
+
210
+ child.on('error', (error) => {
211
+ finalize({
212
+ exitCode: null,
213
+ error,
214
+ });
215
+ });
216
+
217
+ child.on('close', (exitCode, signal) => {
218
+ finalize({
219
+ exitCode: typeof exitCode === 'number' ? exitCode : null,
220
+ signal,
221
+ });
222
+ });
223
+
224
+ if (options.transport && options.transport.mode === 'temp-file') {
225
+ if (child.stdin) {
226
+ const contents = fs.readFileSync(options.transport.filePath, 'utf8');
227
+ child.stdin.end(contents, 'utf8');
228
+ }
229
+ } else if (child.stdin) {
230
+ child.stdin.end(String(options.prompt ?? ''), 'utf8');
231
+ }
232
+ });
233
+ }
234
+
235
+ async function runProvider(providerId, options = {}) {
236
+ const invocation = buildProviderInvocation(providerId, options);
237
+
238
+ if (options.dryRun) {
239
+ return createDryRunResult(invocation);
240
+ }
241
+
242
+ let preflightResult;
243
+ try {
244
+ const { preflightProvider } = require('./preflight');
245
+ preflightResult = preflightProvider(providerId, {
246
+ probe: options.probe,
247
+ cwd: invocation.cwd,
248
+ });
249
+ } catch (error) {
250
+ return {
251
+ ok: false,
252
+ dryRun: false,
253
+ provider: invocation.provider,
254
+ command: invocation.command,
255
+ args: invocation.args.slice(),
256
+ cwd: invocation.cwd,
257
+ timeoutMs: invocation.timeoutMs,
258
+ promptTransport: invocation.promptTransport,
259
+ exitCode: null,
260
+ stdout: '',
261
+ stderr: '',
262
+ error: serializeError(error, invocation.provider, invocation),
263
+ preflight: null,
264
+ };
265
+ }
266
+
267
+ const transport = preparePromptTransport(String(options.prompt ?? ''), {
268
+ mode: invocation.promptTransport.mode,
269
+ tempRoot: options.tempRoot,
270
+ tempFileName: options.tempFileName,
271
+ tempFilePrefix: options.tempFilePrefix,
272
+ });
273
+
274
+ try {
275
+ const execution = await runSpawn(invocation.command, invocation.args, {
276
+ cwd: invocation.cwd,
277
+ env: options.env,
278
+ spawn: options.spawn,
279
+ transport,
280
+ prompt: options.prompt,
281
+ provider: invocation.provider,
282
+ invocation,
283
+ timeoutMs: invocation.timeoutMs,
284
+ });
285
+
286
+ return {
287
+ ok: execution.ok,
288
+ dryRun: false,
289
+ provider: invocation.provider,
290
+ command: invocation.command,
291
+ args: invocation.args.slice(),
292
+ cwd: invocation.cwd,
293
+ timeoutMs: invocation.timeoutMs,
294
+ promptTransport: describePromptTransport(transport),
295
+ exitCode: execution.exitCode,
296
+ signal: execution.signal,
297
+ stdout: execution.stdout,
298
+ stderr: execution.stderr,
299
+ error: execution.error,
300
+ preflight: preflightResult,
301
+ };
302
+ } finally {
303
+ finalizePromptTransport(transport);
304
+ }
305
+ }
306
+
307
+ module.exports = {
308
+ SUPPORTED_PROVIDERS,
309
+ ProviderRunnerError,
310
+ assertSupportedProvider,
311
+ buildProviderInvocation,
312
+ formatProviderList,
313
+ getProviderDefinition,
314
+ runProvider,
315
+ };
@@ -0,0 +1,156 @@
1
+ const path = require('node:path');
2
+
3
+ const SENSITIVE_SEGMENTS = [
4
+ '.ssh',
5
+ '.quiver',
6
+ 'node_modules',
7
+ 'dist',
8
+ 'build',
9
+ 'coverage',
10
+ 'out',
11
+ 'tmp',
12
+ 'temp',
13
+ 'cache',
14
+ '.cache',
15
+ '.turbo',
16
+ '.next',
17
+ '.nuxt',
18
+ '.parcel-cache',
19
+ '.pnpm-store',
20
+ '.npm',
21
+ '.yarn',
22
+ 'generated',
23
+ 'gen',
24
+ 'artifacts',
25
+ 'reports',
26
+ 'vendor',
27
+ 'target',
28
+ ];
29
+
30
+ const SENSITIVE_BASENAMES = [
31
+ '.env',
32
+ '.env.local',
33
+ '.env.development',
34
+ '.env.development.local',
35
+ '.env.production',
36
+ '.env.production.local',
37
+ '.env.test',
38
+ '.env.test.local',
39
+ '.npmrc',
40
+ '.yarnrc',
41
+ '.yarnrc.yml',
42
+ 'id_rsa',
43
+ 'id_dsa',
44
+ 'id_ecdsa',
45
+ 'id_ed25519',
46
+ 'authorized_keys',
47
+ 'known_hosts',
48
+ ];
49
+
50
+ const SENSITIVE_EXTENSIONS = [
51
+ '.key',
52
+ '.pem',
53
+ '.crt',
54
+ '.cer',
55
+ '.p12',
56
+ '.pfx',
57
+ '.der',
58
+ ];
59
+
60
+ function normalizeContextPath(filePath) {
61
+ return String(filePath || '')
62
+ .trim()
63
+ .replace(/\\/g, '/')
64
+ .replace(/^file:\/+/i, '')
65
+ .replace(/^([A-Za-z]):(?=\/)/, '$1:');
66
+ }
67
+
68
+ function getContextPathInfo(filePath) {
69
+ const normalized = normalizeContextPath(filePath);
70
+ const lower = normalized.toLowerCase();
71
+ const segments = lower.split('/').filter(Boolean);
72
+ const basename = segments[segments.length - 1] || '';
73
+ return { normalized, lower, segments, basename };
74
+ }
75
+
76
+ function isSensitiveBasename(basename) {
77
+ if (!basename) {
78
+ return false;
79
+ }
80
+
81
+ if (SENSITIVE_BASENAMES.includes(basename)) {
82
+ return true;
83
+ }
84
+
85
+ if (basename.startsWith('.env.')) {
86
+ return true;
87
+ }
88
+
89
+ return SENSITIVE_EXTENSIONS.some((extension) => basename.endsWith(extension));
90
+ }
91
+
92
+ function getContextPathExclusionReason(filePath) {
93
+ const { normalized, segments, basename } = getContextPathInfo(filePath);
94
+
95
+ if (!normalized) {
96
+ return 'empty-path';
97
+ }
98
+
99
+ if (normalized === '.quiver/scans/PROJECT_SCAN.json') {
100
+ return null;
101
+ }
102
+
103
+ if (segments.some((segment) => SENSITIVE_SEGMENTS.includes(segment))) {
104
+ const matchedSegment = segments.find((segment) => SENSITIVE_SEGMENTS.includes(segment));
105
+ return `unsafe-segment:${matchedSegment}`;
106
+ }
107
+
108
+ if (segments.includes('.git')) {
109
+ return 'git-metadata';
110
+ }
111
+
112
+ if (basename.startsWith('.env')) {
113
+ return 'env-file';
114
+ }
115
+
116
+ if (isSensitiveBasename(basename)) {
117
+ return `secret-file:${basename}`;
118
+ }
119
+
120
+ return null;
121
+ }
122
+
123
+ function shouldExcludeContextPath(filePath) {
124
+ return getContextPathExclusionReason(filePath) !== null;
125
+ }
126
+
127
+ function filterContextPaths(paths) {
128
+ const included = [];
129
+ const excluded = [];
130
+
131
+ for (const filePath of Array.isArray(paths) ? paths : []) {
132
+ const reason = getContextPathExclusionReason(filePath);
133
+ if (reason) {
134
+ excluded.push({
135
+ path: normalizeContextPath(filePath),
136
+ reason,
137
+ });
138
+ continue;
139
+ }
140
+
141
+ included.push(normalizeContextPath(filePath));
142
+ }
143
+
144
+ return { included, excluded };
145
+ }
146
+
147
+ module.exports = {
148
+ SENSITIVE_BASENAMES,
149
+ SENSITIVE_EXTENSIONS,
150
+ SENSITIVE_SEGMENTS,
151
+ filterContextPaths,
152
+ getContextPathExclusionReason,
153
+ getContextPathInfo,
154
+ normalizeContextPath,
155
+ shouldExcludeContextPath,
156
+ };