prizmkit 1.1.100 → 1.1.102
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/bin/create-prizmkit.js +4 -4
- package/bundled/VERSION.json +3 -3
- package/bundled/dev-pipeline/.env.example +3 -3
- package/bundled/dev-pipeline/README.md +110 -90
- package/bundled/dev-pipeline/assets/prizm-dev-team-integration.md +1 -1
- package/bundled/dev-pipeline/cli.py +27 -0
- package/bundled/dev-pipeline/prizmkit_runtime/__init__.py +13 -0
- package/bundled/dev-pipeline/prizmkit_runtime/__main__.py +9 -0
- package/bundled/dev-pipeline/prizmkit_runtime/cli.py +193 -0
- package/bundled/dev-pipeline/prizmkit_runtime/commands.py +313 -0
- package/bundled/dev-pipeline/prizmkit_runtime/compat.py +32 -0
- package/bundled/dev-pipeline/prizmkit_runtime/config.py +410 -0
- package/bundled/dev-pipeline/prizmkit_runtime/daemon.py +478 -0
- package/bundled/dev-pipeline/prizmkit_runtime/gitops.py +734 -0
- package/bundled/dev-pipeline/prizmkit_runtime/heartbeat.py +256 -0
- package/bundled/dev-pipeline/prizmkit_runtime/interoperability.py +109 -0
- package/bundled/dev-pipeline/prizmkit_runtime/paths.py +110 -0
- package/bundled/dev-pipeline/prizmkit_runtime/processes.py +373 -0
- package/bundled/dev-pipeline/prizmkit_runtime/reset.py +389 -0
- package/bundled/dev-pipeline/prizmkit_runtime/runner_bookkeeping.py +51 -0
- package/bundled/dev-pipeline/prizmkit_runtime/runner_classification.py +179 -0
- package/bundled/dev-pipeline/prizmkit_runtime/runner_models.py +355 -0
- package/bundled/dev-pipeline/prizmkit_runtime/runner_prompts.py +118 -0
- package/bundled/dev-pipeline/prizmkit_runtime/runner_recovery.py +187 -0
- package/bundled/dev-pipeline/prizmkit_runtime/runner_status.py +153 -0
- package/bundled/dev-pipeline/prizmkit_runtime/runners.py +425 -0
- package/bundled/dev-pipeline/prizmkit_runtime/sessions.py +560 -0
- package/bundled/dev-pipeline/prizmkit_runtime/status.py +71 -0
- package/bundled/dev-pipeline/scripts/generate-bootstrap-prompt.py +51 -36
- package/bundled/dev-pipeline/scripts/generate-bugfix-prompt.py +20 -5
- package/bundled/dev-pipeline/scripts/generate-recovery-prompt.py +2 -2
- package/bundled/dev-pipeline/scripts/parse-stream-progress.py +39 -0
- package/bundled/dev-pipeline/templates/agent-prompts/dev-implement.md +8 -2
- package/bundled/dev-pipeline/templates/agent-prompts/reviewer-review.md +1 -1
- package/bundled/dev-pipeline/templates/bootstrap-prompt.md +6 -2
- package/bundled/dev-pipeline/templates/bootstrap-tier1.md +14 -6
- package/bundled/dev-pipeline/templates/bootstrap-tier2.md +14 -4
- package/bundled/dev-pipeline/templates/bootstrap-tier3.md +14 -4
- package/bundled/dev-pipeline/templates/sections/context-budget-rules.md +2 -0
- package/bundled/dev-pipeline/templates/sections/log-size-awareness.md +9 -30
- package/bundled/dev-pipeline/templates/sections/phase-context-snapshot-agent-suffix.md +15 -7
- package/bundled/dev-pipeline/templates/sections/phase-implement-agent.md +42 -29
- package/bundled/dev-pipeline/templates/sections/phase-implement-full.md +41 -39
- package/bundled/dev-pipeline/templates/sections/phase-implement-lite.md +8 -17
- package/bundled/dev-pipeline/templates/sections/phase-prizmkit-test.md +2 -2
- package/bundled/dev-pipeline/templates/sections/phase-review-agent.md +1 -3
- package/bundled/dev-pipeline/templates/sections/phase-review-full.md +1 -3
- package/bundled/dev-pipeline/templates/sections/phase0-test-baseline.md +3 -8
- package/bundled/dev-pipeline/templates/sections/test-failure-recovery-agent.md +6 -2
- package/bundled/dev-pipeline/templates/sections/test-failure-recovery-lite.md +5 -1
- package/bundled/dev-pipeline/tests/test_auto_skip.py +436 -14
- package/bundled/dev-pipeline/tests/test_generate_bootstrap_prompt.py +115 -7
- package/bundled/dev-pipeline/tests/test_generate_bugfix_prompt.py +40 -0
- package/bundled/dev-pipeline/tests/test_python_runner_parity.py +1226 -0
- package/bundled/dev-pipeline/tests/test_unified_cli.py +1045 -0
- package/bundled/skills/_metadata.json +1 -1
- package/bundled/skills/bugfix-pipeline-launcher/SKILL.md +29 -34
- package/bundled/skills/bugfix-pipeline-launcher/references/configuration.md +6 -5
- package/bundled/skills/feature-pipeline-launcher/SKILL.md +29 -35
- package/bundled/skills/feature-pipeline-launcher/references/configuration.md +7 -6
- package/bundled/skills/feature-workflow/SKILL.md +3 -6
- package/bundled/skills/recovery-workflow/SKILL.md +23 -32
- package/bundled/skills/refactor-pipeline-launcher/SKILL.md +29 -35
- package/bundled/skills/refactor-pipeline-launcher/references/configuration.md +7 -6
- package/bundled/skills/refactor-workflow/SKILL.md +3 -6
- package/bundled/templates/hooks/commit-intent.json +2 -2
- package/bundled/templates/hooks/diff-prizm-docs.py +226 -0
- package/bundled/templates/hooks/prizm-pre-commit.py +45 -0
- package/bundled/templates/hooks/validate-prizm-docs.py +240 -0
- package/package.json +1 -1
- package/src/config.js +42 -19
- package/src/external-skills.js +14 -14
- package/src/index.js +3 -6
- package/src/manifest.js +11 -5
- package/src/metadata.js +7 -18
- package/src/platforms.js +25 -0
- package/src/prompts.js +0 -12
- package/src/runtimes.js +18 -11
- package/src/scaffold.js +144 -122
- package/src/upgrade.js +12 -3
- package/bundled/dev-pipeline/launch-bugfix-daemon.sh +0 -500
- package/bundled/dev-pipeline/launch-feature-daemon.sh +0 -657
- package/bundled/dev-pipeline/launch-refactor-daemon.sh +0 -502
- package/bundled/dev-pipeline/lib/branch.sh +0 -326
- package/bundled/dev-pipeline/lib/common.sh +0 -1476
- package/bundled/dev-pipeline/lib/heartbeat.sh +0 -469
- package/bundled/dev-pipeline/reset-bug.sh +0 -425
- package/bundled/dev-pipeline/reset-feature.sh +0 -436
- package/bundled/dev-pipeline/reset-refactor.sh +0 -423
- package/bundled/dev-pipeline/run-bugfix.sh +0 -1430
- package/bundled/dev-pipeline/run-feature.sh +0 -1718
- package/bundled/dev-pipeline/run-recovery.sh +0 -648
- package/bundled/dev-pipeline/run-refactor.sh +0 -1463
- package/bundled/dev-pipeline/tests/test-path-resolution.sh +0 -100
- package/bundled/dev-pipeline-windows/.env.example +0 -36
- package/bundled/dev-pipeline-windows/README.md +0 -30
- package/bundled/dev-pipeline-windows/SCHEMA_ANALYSIS.md +0 -533
- package/bundled/dev-pipeline-windows/assets/feature-list-example.json +0 -146
- package/bundled/dev-pipeline-windows/assets/prizm-dev-team-integration.md +0 -137
- package/bundled/dev-pipeline-windows/launch-bugfix-daemon.ps1 +0 -9
- package/bundled/dev-pipeline-windows/launch-feature-daemon.ps1 +0 -9
- package/bundled/dev-pipeline-windows/launch-refactor-daemon.ps1 +0 -9
- package/bundled/dev-pipeline-windows/lib/branch.ps1 +0 -235
- package/bundled/dev-pipeline-windows/lib/common.ps1 +0 -991
- package/bundled/dev-pipeline-windows/lib/daemon.ps1 +0 -140
- package/bundled/dev-pipeline-windows/lib/pipeline.ps1 +0 -1051
- package/bundled/dev-pipeline-windows/lib/reset.ps1 +0 -121
- package/bundled/dev-pipeline-windows/reset-bug.ps1 +0 -10
- package/bundled/dev-pipeline-windows/reset-feature.ps1 +0 -10
- package/bundled/dev-pipeline-windows/reset-refactor.ps1 +0 -10
- package/bundled/dev-pipeline-windows/run-bugfix.ps1 +0 -9
- package/bundled/dev-pipeline-windows/run-feature.ps1 +0 -9
- package/bundled/dev-pipeline-windows/run-recovery.ps1 +0 -179
- package/bundled/dev-pipeline-windows/run-refactor.ps1 +0 -9
- package/bundled/dev-pipeline-windows/scripts/check-session-status.py +0 -301
- package/bundled/dev-pipeline-windows/scripts/continuation.py +0 -374
- package/bundled/dev-pipeline-windows/scripts/detect-stuck.py +0 -530
- package/bundled/dev-pipeline-windows/scripts/generate-bootstrap-prompt.py +0 -2279
- package/bundled/dev-pipeline-windows/scripts/generate-bugfix-prompt.py +0 -763
- package/bundled/dev-pipeline-windows/scripts/generate-recovery-prompt.py +0 -805
- package/bundled/dev-pipeline-windows/scripts/generate-refactor-prompt.py +0 -841
- package/bundled/dev-pipeline-windows/scripts/init-bugfix-pipeline.py +0 -316
- package/bundled/dev-pipeline-windows/scripts/init-dev-team.py +0 -134
- package/bundled/dev-pipeline-windows/scripts/init-pipeline.py +0 -382
- package/bundled/dev-pipeline-windows/scripts/init-refactor-pipeline.py +0 -399
- package/bundled/dev-pipeline-windows/scripts/parse-stream-progress.py +0 -1362
- package/bundled/dev-pipeline-windows/scripts/patch-completion-notes.py +0 -191
- package/bundled/dev-pipeline-windows/scripts/prizmkit-test-gate.py +0 -446
- package/bundled/dev-pipeline-windows/scripts/update-bug-status.py +0 -1121
- package/bundled/dev-pipeline-windows/scripts/update-checkpoint.py +0 -173
- package/bundled/dev-pipeline-windows/scripts/update-feature-status.py +0 -1789
- package/bundled/dev-pipeline-windows/scripts/update-refactor-status.py +0 -1327
- package/bundled/dev-pipeline-windows/scripts/utils.py +0 -542
- package/bundled/dev-pipeline-windows/templates/agent-prompts/critic-plan-challenge.md +0 -7
- package/bundled/dev-pipeline-windows/templates/agent-prompts/dev-fix.md +0 -7
- package/bundled/dev-pipeline-windows/templates/agent-prompts/dev-implement.md +0 -65
- package/bundled/dev-pipeline-windows/templates/agent-prompts/dev-resume.md +0 -5
- package/bundled/dev-pipeline-windows/templates/agent-prompts/reviewer-review.md +0 -7
- package/bundled/dev-pipeline-windows/templates/bootstrap-prompt.md +0 -73
- package/bundled/dev-pipeline-windows/templates/bootstrap-tier1.md +0 -589
- package/bundled/dev-pipeline-windows/templates/bootstrap-tier2.md +0 -710
- package/bundled/dev-pipeline-windows/templates/bootstrap-tier3.md +0 -791
- package/bundled/dev-pipeline-windows/templates/bug-fix-list-schema.json +0 -263
- package/bundled/dev-pipeline-windows/templates/bugfix-bootstrap-prompt.md +0 -326
- package/bundled/dev-pipeline-windows/templates/feature-list-schema.json +0 -237
- package/bundled/dev-pipeline-windows/templates/refactor-bootstrap-prompt.md +0 -340
- package/bundled/dev-pipeline-windows/templates/refactor-list-schema.json +0 -270
- package/bundled/dev-pipeline-windows/templates/sections/ac-verification-checklist.md +0 -7
- package/bundled/dev-pipeline-windows/templates/sections/checkpoint-system.md +0 -91
- package/bundled/dev-pipeline-windows/templates/sections/context-budget-rules.md +0 -34
- package/bundled/dev-pipeline-windows/templates/sections/critical-paths-agent.md +0 -10
- package/bundled/dev-pipeline-windows/templates/sections/critical-paths-full.md +0 -12
- package/bundled/dev-pipeline-windows/templates/sections/critical-paths-lite.md +0 -7
- package/bundled/dev-pipeline-windows/templates/sections/directory-convention-agent.md +0 -8
- package/bundled/dev-pipeline-windows/templates/sections/directory-convention-full.md +0 -9
- package/bundled/dev-pipeline-windows/templates/sections/directory-convention-lite.md +0 -6
- package/bundled/dev-pipeline-windows/templates/sections/failure-capture.md +0 -21
- package/bundled/dev-pipeline-windows/templates/sections/feature-context.md +0 -21
- package/bundled/dev-pipeline-windows/templates/sections/log-size-awareness.md +0 -41
- package/bundled/dev-pipeline-windows/templates/sections/phase-browser-verification-auto.md +0 -283
- package/bundled/dev-pipeline-windows/templates/sections/phase-browser-verification-opencli.md +0 -112
- package/bundled/dev-pipeline-windows/templates/sections/phase-browser-verification.md +0 -168
- package/bundled/dev-pipeline-windows/templates/sections/phase-commit-full.md +0 -82
- package/bundled/dev-pipeline-windows/templates/sections/phase-commit.md +0 -75
- package/bundled/dev-pipeline-windows/templates/sections/phase-context-snapshot-agent-suffix.md +0 -23
- package/bundled/dev-pipeline-windows/templates/sections/phase-context-snapshot-base.md +0 -14
- package/bundled/dev-pipeline-windows/templates/sections/phase-context-snapshot-lite-suffix.md +0 -19
- package/bundled/dev-pipeline-windows/templates/sections/phase-critic-plan-full.md +0 -63
- package/bundled/dev-pipeline-windows/templates/sections/phase-critic-plan.md +0 -42
- package/bundled/dev-pipeline-windows/templates/sections/phase-implement-agent.md +0 -44
- package/bundled/dev-pipeline-windows/templates/sections/phase-implement-full.md +0 -59
- package/bundled/dev-pipeline-windows/templates/sections/phase-implement-lite.md +0 -39
- package/bundled/dev-pipeline-windows/templates/sections/phase-plan-agent.md +0 -27
- package/bundled/dev-pipeline-windows/templates/sections/phase-plan-lite.md +0 -27
- package/bundled/dev-pipeline-windows/templates/sections/phase-prizmkit-test.md +0 -39
- package/bundled/dev-pipeline-windows/templates/sections/phase-review-agent.md +0 -35
- package/bundled/dev-pipeline-windows/templates/sections/phase-review-full.md +0 -35
- package/bundled/dev-pipeline-windows/templates/sections/phase-specify-plan-full.md +0 -73
- package/bundled/dev-pipeline-windows/templates/sections/phase0-init.md +0 -13
- package/bundled/dev-pipeline-windows/templates/sections/phase0-test-baseline.md +0 -21
- package/bundled/dev-pipeline-windows/templates/sections/session-context.md +0 -5
- package/bundled/dev-pipeline-windows/templates/sections/subagent-timeout-recovery.md +0 -6
- package/bundled/dev-pipeline-windows/templates/sections/task-contract.md +0 -34
- package/bundled/dev-pipeline-windows/templates/sections/test-failure-recovery-agent.md +0 -48
- package/bundled/dev-pipeline-windows/templates/sections/test-failure-recovery-lite.md +0 -48
- package/bundled/dev-pipeline-windows/templates/session-status-schema.json +0 -83
- package/bundled/skills-windows/app-planner/SKILL.md +0 -296
- package/bundled/skills-windows/app-planner/assets/app-design-guide.md +0 -101
- package/bundled/skills-windows/app-planner/references/architecture-decisions.md +0 -52
- package/bundled/skills-windows/app-planner/references/brainstorm-guide.md +0 -101
- package/bundled/skills-windows/app-planner/references/frontend-design-guide.md +0 -71
- package/bundled/skills-windows/app-planner/references/infrastructure-convention-discovery.md +0 -108
- package/bundled/skills-windows/app-planner/references/project-brief-guide.md +0 -82
- package/bundled/skills-windows/app-planner/references/project-conventions-discovery.md +0 -59
- package/bundled/skills-windows/app-planner/references/project-state-detection.md +0 -90
- package/bundled/skills-windows/app-planner/references/red-team-checklist.md +0 -40
- package/bundled/skills-windows/app-planner/references/rules/backend/derivation-rules.md +0 -619
- package/bundled/skills-windows/app-planner/references/rules/backend/fixed-rules.md +0 -285
- package/bundled/skills-windows/app-planner/references/rules/backend/question-bank.md +0 -249
- package/bundled/skills-windows/app-planner/references/rules/backend/question-manifest.json +0 -46
- package/bundled/skills-windows/app-planner/references/rules/backend/template.md +0 -173
- package/bundled/skills-windows/app-planner/references/rules/database/derivation-rules.md +0 -382
- package/bundled/skills-windows/app-planner/references/rules/database/fixed-rules.md +0 -211
- package/bundled/skills-windows/app-planner/references/rules/database/question-bank.md +0 -184
- package/bundled/skills-windows/app-planner/references/rules/database/question-manifest.json +0 -39
- package/bundled/skills-windows/app-planner/references/rules/database/template.md +0 -158
- package/bundled/skills-windows/app-planner/references/rules/frontend/derivation-rules.md +0 -820
- package/bundled/skills-windows/app-planner/references/rules/frontend/fixed-rules.md +0 -188
- package/bundled/skills-windows/app-planner/references/rules/frontend/question-bank.md +0 -319
- package/bundled/skills-windows/app-planner/references/rules/frontend/question-manifest.json +0 -51
- package/bundled/skills-windows/app-planner/references/rules/frontend/template.md +0 -339
- package/bundled/skills-windows/app-planner/references/rules/mobile/derivation-rules.md +0 -649
- package/bundled/skills-windows/app-planner/references/rules/mobile/fixed-rules.md +0 -290
- package/bundled/skills-windows/app-planner/references/rules/mobile/question-bank.md +0 -232
- package/bundled/skills-windows/app-planner/references/rules/mobile/question-manifest.json +0 -47
- package/bundled/skills-windows/app-planner/references/rules/mobile/template.md +0 -175
- package/bundled/skills-windows/app-planner/references/rules-configuration.md +0 -46
- package/bundled/skills-windows/bug-fix-workflow/SKILL.md +0 -379
- package/bundled/skills-windows/bug-fix-workflow/references/bug-diagnosis.md +0 -41
- package/bundled/skills-windows/bug-planner/SKILL.md +0 -402
- package/bundled/skills-windows/bug-planner/assets/bug-confirmation-template.md +0 -43
- package/bundled/skills-windows/bug-planner/references/critic-and-verification.md +0 -44
- package/bundled/skills-windows/bug-planner/references/error-recovery.md +0 -73
- package/bundled/skills-windows/bug-planner/references/input-formats.md +0 -53
- package/bundled/skills-windows/bug-planner/references/schema-validation.md +0 -25
- package/bundled/skills-windows/bug-planner/references/severity-rules.md +0 -16
- package/bundled/skills-windows/bug-planner/scripts/validate-bug-list.py +0 -322
- package/bundled/skills-windows/bugfix-pipeline-launcher/SKILL.md +0 -304
- package/bundled/skills-windows/bugfix-pipeline-launcher/references/configuration.md +0 -84
- package/bundled/skills-windows/feature-pipeline-launcher/SKILL.md +0 -381
- package/bundled/skills-windows/feature-pipeline-launcher/references/configuration.md +0 -67
- package/bundled/skills-windows/feature-pipeline-launcher/scripts/preflight-check.py +0 -462
- package/bundled/skills-windows/feature-planner/SKILL.md +0 -397
- package/bundled/skills-windows/feature-planner/assets/evaluation-guide.md +0 -64
- package/bundled/skills-windows/feature-planner/assets/planning-guide.md +0 -214
- package/bundled/skills-windows/feature-planner/references/browser-interaction.md +0 -59
- package/bundled/skills-windows/feature-planner/references/completeness-review.md +0 -57
- package/bundled/skills-windows/feature-planner/references/decomposition-patterns.md +0 -75
- package/bundled/skills-windows/feature-planner/references/error-recovery.md +0 -90
- package/bundled/skills-windows/feature-planner/references/incremental-feature-planning.md +0 -112
- package/bundled/skills-windows/feature-planner/references/new-project-planning.md +0 -85
- package/bundled/skills-windows/feature-planner/scripts/validate-and-generate.py +0 -1020
- package/bundled/skills-windows/feature-workflow/SKILL.md +0 -374
- package/bundled/skills-windows/feature-workflow/references/brainstorm-guide.md +0 -137
- package/bundled/skills-windows/prizm-kit/SKILL.md +0 -93
- package/bundled/skills-windows/prizmkit-code-review/SKILL.md +0 -161
- package/bundled/skills-windows/prizmkit-code-review/references/dev-agent-prompt.md +0 -30
- package/bundled/skills-windows/prizmkit-code-review/references/review-report-template.md +0 -31
- package/bundled/skills-windows/prizmkit-code-review/references/reviewer-agent-prompt.md +0 -66
- package/bundled/skills-windows/prizmkit-code-review/scripts/check_loop.py +0 -186
- package/bundled/skills-windows/prizmkit-committer/SKILL.md +0 -89
- package/bundled/skills-windows/prizmkit-deploy/SKILL.md +0 -444
- package/bundled/skills-windows/prizmkit-deploy/references/ci-cd-workflows.md +0 -115
- package/bundled/skills-windows/prizmkit-deploy/references/cloud-platform-deploy.md +0 -93
- package/bundled/skills-windows/prizmkit-deploy/references/data-safety-examples.md +0 -120
- package/bundled/skills-windows/prizmkit-deploy/references/database-setup.md +0 -46
- package/bundled/skills-windows/prizmkit-deploy/references/deploy-config-schema.md +0 -148
- package/bundled/skills-windows/prizmkit-deploy/references/deploy-history-schema.md +0 -62
- package/bundled/skills-windows/prizmkit-deploy/references/deployment-modes.md +0 -50
- package/bundled/skills-windows/prizmkit-deploy/references/direct-upload.md +0 -26
- package/bundled/skills-windows/prizmkit-deploy/references/dns-setup.md +0 -42
- package/bundled/skills-windows/prizmkit-deploy/references/docker-deploy.md +0 -31
- package/bundled/skills-windows/prizmkit-deploy/references/firewall-setup.md +0 -37
- package/bundled/skills-windows/prizmkit-deploy/references/live-validation-notes.md +0 -21
- package/bundled/skills-windows/prizmkit-deploy/references/nginx-blue-green.md +0 -59
- package/bundled/skills-windows/prizmkit-deploy/references/ssh-bootstrap-flow.md +0 -49
- package/bundled/skills-windows/prizmkit-deploy/references/ssh-execution-flow.md +0 -41
- package/bundled/skills-windows/prizmkit-deploy/references/ssh-takeover.md +0 -20
- package/bundled/skills-windows/prizmkit-deploy/references/ssl-setup.md +0 -56
- package/bundled/skills-windows/prizmkit-implement/SKILL.md +0 -71
- package/bundled/skills-windows/prizmkit-init/SKILL.md +0 -356
- package/bundled/skills-windows/prizmkit-init/assets/project-brief-template.md +0 -82
- package/bundled/skills-windows/prizmkit-init/references/config-schema.md +0 -70
- package/bundled/skills-windows/prizmkit-init/references/rules/layer-detection.md +0 -41
- package/bundled/skills-windows/prizmkit-init/references/tech-stack-catalog.md +0 -13
- package/bundled/skills-windows/prizmkit-init/references/update-supplement.md +0 -9
- package/bundled/skills-windows/prizmkit-plan/SKILL.md +0 -102
- package/bundled/skills-windows/prizmkit-plan/assets/plan-template.md +0 -115
- package/bundled/skills-windows/prizmkit-plan/assets/spec-template.md +0 -73
- package/bundled/skills-windows/prizmkit-plan/references/clarify-guide.md +0 -67
- package/bundled/skills-windows/prizmkit-plan/references/examples.md +0 -85
- package/bundled/skills-windows/prizmkit-plan/references/verification-checklist.md +0 -60
- package/bundled/skills-windows/prizmkit-prizm-docs/SKILL.md +0 -129
- package/bundled/skills-windows/prizmkit-prizm-docs/assets/prizm-docs-format.md +0 -613
- package/bundled/skills-windows/prizmkit-prizm-docs/references/op-init.md +0 -45
- package/bundled/skills-windows/prizmkit-prizm-docs/references/op-rebuild.md +0 -15
- package/bundled/skills-windows/prizmkit-prizm-docs/references/op-status.md +0 -14
- package/bundled/skills-windows/prizmkit-prizm-docs/references/op-update.md +0 -19
- package/bundled/skills-windows/prizmkit-prizm-docs/references/op-validate.md +0 -17
- package/bundled/skills-windows/prizmkit-retrospective/SKILL.md +0 -87
- package/bundled/skills-windows/prizmkit-retrospective/references/knowledge-injection-steps.md +0 -50
- package/bundled/skills-windows/prizmkit-retrospective/references/structural-sync-steps.md +0 -43
- package/bundled/skills-windows/prizmkit-test/SKILL.md +0 -227
- package/bundled/skills-windows/prizmkit-test/references/boundary-coverage-protocol.md +0 -220
- package/bundled/skills-windows/prizmkit-test/references/examples.md +0 -143
- package/bundled/skills-windows/prizmkit-test/references/service-boundary-test-catalog.md +0 -225
- package/bundled/skills-windows/prizmkit-test/references/test-generation-steps.md +0 -109
- package/bundled/skills-windows/prizmkit-test/references/test-report-template.md +0 -111
- package/bundled/skills-windows/prizmkit-test/scripts/validate_boundary_report.py +0 -347
- package/bundled/skills-windows/recovery-workflow/SKILL.md +0 -355
- package/bundled/skills-windows/recovery-workflow/evals/evals.json +0 -46
- package/bundled/skills-windows/recovery-workflow/references/detection.md +0 -58
- package/bundled/skills-windows/recovery-workflow/scripts/detect-recovery-state.py +0 -544
- package/bundled/skills-windows/refactor-pipeline-launcher/SKILL.md +0 -346
- package/bundled/skills-windows/refactor-pipeline-launcher/references/configuration.md +0 -72
- package/bundled/skills-windows/refactor-planner/SKILL.md +0 -398
- package/bundled/skills-windows/refactor-planner/assets/planning-guide.md +0 -292
- package/bundled/skills-windows/refactor-planner/references/behavior-preservation.md +0 -301
- package/bundled/skills-windows/refactor-planner/references/fast-path.md +0 -59
- package/bundled/skills-windows/refactor-planner/references/planning-phases.md +0 -135
- package/bundled/skills-windows/refactor-planner/references/refactor-scoping-guide.md +0 -221
- package/bundled/skills-windows/refactor-planner/scripts/validate-and-generate-refactor.py +0 -858
- package/bundled/skills-windows/refactor-workflow/SKILL.md +0 -343
- package/bundled/skills-windows/refactor-workflow/references/brainstorm-guide.md +0 -116
- package/bundled/templates/hooks/diff-prizm-docs.sh +0 -158
- package/bundled/templates/hooks/prizm-pre-commit.sh +0 -108
- package/bundled/templates/hooks/validate-prizm-docs.sh +0 -139
|
@@ -1,326 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env bash
|
|
2
|
-
# ============================================================
|
|
3
|
-
# dev-pipeline/lib/branch.sh - Git Branch Lifecycle Library
|
|
4
|
-
#
|
|
5
|
-
# Shared by run-feature.sh, run-bugfix.sh, and run-refactor.sh
|
|
6
|
-
# for branch-based serial development. Each pipeline run creates
|
|
7
|
-
# a dev branch and all features/bugs/refactors commit on it.
|
|
8
|
-
#
|
|
9
|
-
# Functions:
|
|
10
|
-
# branch_create — Create and checkout a new branch
|
|
11
|
-
# branch_return — Checkout back to original branch
|
|
12
|
-
# branch_merge — Merge dev branch into original and optionally push
|
|
13
|
-
# branch_ensure_return — Guaranteed return to original branch (try/finally)
|
|
14
|
-
#
|
|
15
|
-
# Environment:
|
|
16
|
-
# _ORIGINAL_BRANCH Set by caller before branch_create
|
|
17
|
-
# _DEV_BRANCH_NAME Set by caller after branch_create
|
|
18
|
-
# DEV_BRANCH Optional custom branch name override
|
|
19
|
-
# AUTO_PUSH Set to 1 to auto-push after successful feature
|
|
20
|
-
# ============================================================
|
|
21
|
-
|
|
22
|
-
# branch_create <project_root> <branch_name> <source_branch>
|
|
23
|
-
#
|
|
24
|
-
# Creates a new branch from source_branch and checks it out.
|
|
25
|
-
# If the branch already exists, checks it out instead.
|
|
26
|
-
#
|
|
27
|
-
# Returns 0 on success, 1 on failure.
|
|
28
|
-
branch_create() {
|
|
29
|
-
local project_root="$1"
|
|
30
|
-
local branch_name="$2"
|
|
31
|
-
local source_branch="$3"
|
|
32
|
-
|
|
33
|
-
# Check if branch already exists
|
|
34
|
-
if git -C "$project_root" rev-parse --verify "$branch_name" >/dev/null 2>&1; then
|
|
35
|
-
log_info "Branch already exists: $branch_name — checking out"
|
|
36
|
-
if ! git -C "$project_root" checkout "$branch_name" 2>/dev/null; then
|
|
37
|
-
log_error "Failed to checkout existing branch: $branch_name"
|
|
38
|
-
return 1
|
|
39
|
-
fi
|
|
40
|
-
return 0
|
|
41
|
-
fi
|
|
42
|
-
|
|
43
|
-
# Create and checkout new branch
|
|
44
|
-
if ! git -C "$project_root" checkout -b "$branch_name" "$source_branch" 2>/dev/null; then
|
|
45
|
-
log_warn "Failed to create branch: $branch_name from $source_branch"
|
|
46
|
-
return 1
|
|
47
|
-
fi
|
|
48
|
-
|
|
49
|
-
log_info "Created and checked out branch: $branch_name (from $source_branch)"
|
|
50
|
-
return 0
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
# branch_return <project_root> <original_branch>
|
|
54
|
-
#
|
|
55
|
-
# Checks out the original branch after pipeline completes.
|
|
56
|
-
# Safe to call even if already on the original branch.
|
|
57
|
-
#
|
|
58
|
-
# Returns 0 on success, 1 on failure.
|
|
59
|
-
branch_return() {
|
|
60
|
-
local project_root="$1"
|
|
61
|
-
local original_branch="$2"
|
|
62
|
-
|
|
63
|
-
local current_branch
|
|
64
|
-
current_branch=$(git -C "$project_root" rev-parse --abbrev-ref HEAD 2>/dev/null) || {
|
|
65
|
-
log_error "Failed to determine current branch"
|
|
66
|
-
return 1
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
if [[ "$current_branch" == "$original_branch" ]]; then
|
|
70
|
-
return 0
|
|
71
|
-
fi
|
|
72
|
-
|
|
73
|
-
if ! git -C "$project_root" checkout "$original_branch" 2>/dev/null; then
|
|
74
|
-
log_error "Failed to checkout original branch: $original_branch"
|
|
75
|
-
return 1
|
|
76
|
-
fi
|
|
77
|
-
|
|
78
|
-
log_info "Returned to branch: $original_branch"
|
|
79
|
-
return 0
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
# branch_merge <project_root> <dev_branch> <original_branch> [auto_push]
|
|
83
|
-
#
|
|
84
|
-
# Merges dev_branch into original_branch, then optionally pushes.
|
|
85
|
-
# Steps:
|
|
86
|
-
# 1. Stash tracked dirty files (NOT untracked — .prizmkit/state/ is gitignored)
|
|
87
|
-
# 2. Rebase dev_branch onto original_branch (handles diverged main)
|
|
88
|
-
# 3. Fast-forward merge original_branch to rebased dev tip
|
|
89
|
-
# 4. Push to remote if auto_push == "1"
|
|
90
|
-
# 5. Delete dev_branch (local only, it's been merged)
|
|
91
|
-
# 6. Restore stashed files
|
|
92
|
-
#
|
|
93
|
-
# IMPORTANT: On failure, caller MUST still call branch_ensure_return()
|
|
94
|
-
# to guarantee return to the original branch.
|
|
95
|
-
#
|
|
96
|
-
# Returns 0 on success, 1 on failure.
|
|
97
|
-
branch_merge() {
|
|
98
|
-
local project_root="$1"
|
|
99
|
-
local dev_branch="$2"
|
|
100
|
-
local original_branch="$3"
|
|
101
|
-
local auto_push="${4:-0}"
|
|
102
|
-
|
|
103
|
-
# Step 1: Stash any tracked uncommitted changes so checkout is not blocked.
|
|
104
|
-
# Only stash tracked changes (not untracked). Untracked files like
|
|
105
|
-
# .prizmkit/state/ are gitignored and survive checkout without issue.
|
|
106
|
-
# Using --include-untracked causes stash pop conflicts and can lose
|
|
107
|
-
# state/ files that are needed for pipeline status tracking.
|
|
108
|
-
local had_stash=false
|
|
109
|
-
local tracked_dirty
|
|
110
|
-
tracked_dirty=$(git -C "$project_root" diff --name-only 2>/dev/null || true)
|
|
111
|
-
local staged_dirty
|
|
112
|
-
staged_dirty=$(git -C "$project_root" diff --cached --name-only 2>/dev/null || true)
|
|
113
|
-
if [[ -n "$tracked_dirty" || -n "$staged_dirty" ]]; then
|
|
114
|
-
if git -C "$project_root" stash push -m "pipeline-merge-stash" 2>/dev/null; then
|
|
115
|
-
had_stash=true
|
|
116
|
-
else
|
|
117
|
-
log_warn "git stash failed — uncommitted tracked changes may not be preserved during merge"
|
|
118
|
-
had_stash=false
|
|
119
|
-
fi
|
|
120
|
-
fi
|
|
121
|
-
|
|
122
|
-
# Step 2: Rebase dev branch onto original to make it fast-forwardable.
|
|
123
|
-
# This handles the case where original_branch has diverged
|
|
124
|
-
# (e.g. commits were made on main while the pipeline was running).
|
|
125
|
-
# "git rebase A B" is equivalent to: git checkout B && git rebase A
|
|
126
|
-
log_info "Merging $dev_branch into $original_branch..."
|
|
127
|
-
if ! git -C "$project_root" rebase "$original_branch" "$dev_branch" 2>&1; then
|
|
128
|
-
log_error "Rebase of $dev_branch onto $original_branch failed — resolve manually:"
|
|
129
|
-
log_error " git rebase --abort # then resolve conflicts and retry"
|
|
130
|
-
git -C "$project_root" rebase --abort 2>/dev/null || true
|
|
131
|
-
if [[ "$had_stash" == true ]]; then
|
|
132
|
-
if ! git -C "$project_root" stash pop 2>/dev/null; then
|
|
133
|
-
log_warn "git stash pop failed after rebase abort — run 'git stash list' to check"
|
|
134
|
-
fi
|
|
135
|
-
fi
|
|
136
|
-
return 1
|
|
137
|
-
fi
|
|
138
|
-
# After the rebase we are on dev_branch — checkout original for the fast-forward
|
|
139
|
-
if ! git -C "$project_root" checkout "$original_branch" 2>/dev/null; then
|
|
140
|
-
log_error "Failed to checkout $original_branch for merge"
|
|
141
|
-
if [[ "$had_stash" == true ]]; then
|
|
142
|
-
if ! git -C "$project_root" stash pop 2>/dev/null; then
|
|
143
|
-
log_warn "git stash pop failed after checkout failure — run 'git stash list' to check"
|
|
144
|
-
fi
|
|
145
|
-
fi
|
|
146
|
-
return 1
|
|
147
|
-
fi
|
|
148
|
-
|
|
149
|
-
# Step 3: Fast-forward original_branch to the rebased dev tip
|
|
150
|
-
if ! git -C "$project_root" merge --ff-only "$dev_branch" 2>&1; then
|
|
151
|
-
log_error "Merge failed after rebase — this should not happen, resolve manually:"
|
|
152
|
-
log_error " git checkout $original_branch && git rebase $dev_branch"
|
|
153
|
-
if [[ "$had_stash" == true ]]; then
|
|
154
|
-
if ! git -C "$project_root" stash pop 2>/dev/null; then
|
|
155
|
-
log_warn "git stash pop failed after merge failure — run 'git stash list' to check"
|
|
156
|
-
fi
|
|
157
|
-
fi
|
|
158
|
-
return 1
|
|
159
|
-
fi
|
|
160
|
-
|
|
161
|
-
log_success "Merged $dev_branch into $original_branch"
|
|
162
|
-
|
|
163
|
-
# Step 4: Push if AUTO_PUSH enabled
|
|
164
|
-
if [[ "$auto_push" == "1" ]]; then
|
|
165
|
-
log_info "Pushing $original_branch to remote..."
|
|
166
|
-
if git -C "$project_root" push 2>/dev/null; then
|
|
167
|
-
log_success "Pushed $original_branch to remote"
|
|
168
|
-
else
|
|
169
|
-
log_warn "Push failed — run 'git push' manually"
|
|
170
|
-
fi
|
|
171
|
-
fi
|
|
172
|
-
|
|
173
|
-
# Step 5: Delete merged dev branch
|
|
174
|
-
git -C "$project_root" branch -d "$dev_branch" 2>/dev/null && \
|
|
175
|
-
log_info "Deleted merged branch: $dev_branch" || true
|
|
176
|
-
|
|
177
|
-
# Step 6: Restore stashed files
|
|
178
|
-
if [[ "$had_stash" == true ]]; then
|
|
179
|
-
if ! git -C "$project_root" stash pop 2>/dev/null; then
|
|
180
|
-
log_warn "git stash pop failed after merge — stashed changes may be lost. Run 'git stash list' to check."
|
|
181
|
-
fi
|
|
182
|
-
fi
|
|
183
|
-
|
|
184
|
-
return 0
|
|
185
|
-
}
|
|
186
|
-
|
|
187
|
-
# branch_save_wip <project_root> <dev_branch>
|
|
188
|
-
#
|
|
189
|
-
# Saves any uncommitted work-in-progress on the dev branch before returning
|
|
190
|
-
# to the original branch. Called during interrupt/crash cleanup to preserve
|
|
191
|
-
# partially completed AI work that hasn't been committed yet.
|
|
192
|
-
#
|
|
193
|
-
# Commits ALL changes (tracked + untracked, excluding gitignored) with a
|
|
194
|
-
# "wip:" prefix message so it's easy to identify and squash later.
|
|
195
|
-
#
|
|
196
|
-
# Safe to call when the working tree is clean — it simply does nothing.
|
|
197
|
-
# Never fails — errors are logged but the function always returns 0.
|
|
198
|
-
branch_save_wip() {
|
|
199
|
-
local project_root="$1"
|
|
200
|
-
local dev_branch="$2"
|
|
201
|
-
|
|
202
|
-
# Nothing to save if dev_branch is empty
|
|
203
|
-
if [[ -z "$dev_branch" ]]; then
|
|
204
|
-
return 0
|
|
205
|
-
fi
|
|
206
|
-
|
|
207
|
-
# Verify we're actually on the dev branch
|
|
208
|
-
local current_branch
|
|
209
|
-
current_branch=$(git -C "$project_root" rev-parse --abbrev-ref HEAD 2>/dev/null || echo "")
|
|
210
|
-
if [[ "$current_branch" != "$dev_branch" ]]; then
|
|
211
|
-
return 0
|
|
212
|
-
fi
|
|
213
|
-
|
|
214
|
-
# Check if there are any uncommitted changes (tracked or untracked,
|
|
215
|
-
# excluding gitignored and root-level hidden tool temporary worktrees)
|
|
216
|
-
local has_changes
|
|
217
|
-
has_changes=$(prizm_git_status_safe "$project_root" || true)
|
|
218
|
-
if [[ -z "$has_changes" ]]; then
|
|
219
|
-
return 0
|
|
220
|
-
fi
|
|
221
|
-
|
|
222
|
-
log_warn "Saving uncommitted work-in-progress on branch: $dev_branch"
|
|
223
|
-
|
|
224
|
-
# Stage all changes (tracked + untracked, respects .gitignore), excluding
|
|
225
|
-
# root-level hidden tool temporary worktrees so nested agent repos are not
|
|
226
|
-
# recorded as accidental gitlinks in the user's project.
|
|
227
|
-
if ! prizm_git_add_all_safe "$project_root"; then
|
|
228
|
-
log_warn "git add failed — uncommitted work may be lost on branch switch"
|
|
229
|
-
return 0
|
|
230
|
-
fi
|
|
231
|
-
|
|
232
|
-
# Commit with WIP marker
|
|
233
|
-
if git -C "$project_root" commit --no-verify \
|
|
234
|
-
-m "wip($dev_branch): interrupted — uncommitted work saved" \
|
|
235
|
-
-m "Pipeline was interrupted by signal. This commit preserves work-in-progress." \
|
|
236
|
-
-m "To resume: git checkout $dev_branch" 2>/dev/null; then
|
|
237
|
-
log_info "Saved uncommitted work on branch $dev_branch"
|
|
238
|
-
else
|
|
239
|
-
log_warn "git commit failed — uncommitted work may be lost on branch switch"
|
|
240
|
-
fi
|
|
241
|
-
|
|
242
|
-
return 0
|
|
243
|
-
}
|
|
244
|
-
|
|
245
|
-
# branch_ensure_return <project_root> <original_branch> [dev_branch]
|
|
246
|
-
#
|
|
247
|
-
# GUARANTEED return to the original branch. Like a try/finally block.
|
|
248
|
-
# Must be called in EVERY exit path: success, failure, interrupt, crash.
|
|
249
|
-
# This is the single point of truth for "always go back to original branch".
|
|
250
|
-
#
|
|
251
|
-
# If dev_branch is provided and we're currently on it, any uncommitted
|
|
252
|
-
# work is saved as a WIP commit before switching (via branch_save_wip).
|
|
253
|
-
#
|
|
254
|
-
# Handles:
|
|
255
|
-
# - Saving uncommitted WIP on dev branch (if dev_branch provided)
|
|
256
|
-
# - Aborting any in-progress rebase (leftover from branch_merge failure)
|
|
257
|
-
# - Stashing any tracked dirty files that block checkout
|
|
258
|
-
# - Checking out original_branch
|
|
259
|
-
# - Restoring stashed files
|
|
260
|
-
# - Logging for diagnostics
|
|
261
|
-
#
|
|
262
|
-
# Never fails — errors are logged but the function always returns 0
|
|
263
|
-
# so it can be used in cleanup traps without breaking error handling.
|
|
264
|
-
branch_ensure_return() {
|
|
265
|
-
local project_root="$1"
|
|
266
|
-
local original_branch="$2"
|
|
267
|
-
local dev_branch="${3:-}"
|
|
268
|
-
|
|
269
|
-
# If original_branch is empty or unset, nothing to return to
|
|
270
|
-
if [[ -z "$original_branch" ]]; then
|
|
271
|
-
return 0
|
|
272
|
-
fi
|
|
273
|
-
|
|
274
|
-
# Abort any in-progress rebase (can happen if branch_merge failed mid-way)
|
|
275
|
-
if git -C "$project_root" rebase --show-current-patch >/dev/null 2>&1; then
|
|
276
|
-
log_warn "Aborting in-progress rebase..."
|
|
277
|
-
git -C "$project_root" rebase --abort 2>/dev/null || true
|
|
278
|
-
fi
|
|
279
|
-
|
|
280
|
-
# Check current branch
|
|
281
|
-
local current_branch
|
|
282
|
-
current_branch=$(git -C "$project_root" rev-parse --abbrev-ref HEAD 2>/dev/null || echo "")
|
|
283
|
-
|
|
284
|
-
if [[ "$current_branch" == "$original_branch" ]]; then
|
|
285
|
-
return 0
|
|
286
|
-
fi
|
|
287
|
-
|
|
288
|
-
# Save any uncommitted WIP on dev branch before switching away
|
|
289
|
-
# Use dev_branch if provided; otherwise infer from current_branch
|
|
290
|
-
local _wip_branch="${dev_branch:-$current_branch}"
|
|
291
|
-
if [[ -n "$_wip_branch" && "$_wip_branch" != "$original_branch" ]]; then
|
|
292
|
-
branch_save_wip "$project_root" "$_wip_branch"
|
|
293
|
-
fi
|
|
294
|
-
|
|
295
|
-
log_info "Ensuring return to original branch: $original_branch (currently on: ${current_branch:-unknown})"
|
|
296
|
-
|
|
297
|
-
# Stash any tracked dirty files that would block checkout
|
|
298
|
-
# (branch_save_wip should have committed everything, but this is a safety net
|
|
299
|
-
# in case the commit failed or new files appeared)
|
|
300
|
-
local had_stash=false
|
|
301
|
-
local tracked_dirty
|
|
302
|
-
tracked_dirty=$(git -C "$project_root" diff --name-only 2>/dev/null || true)
|
|
303
|
-
local staged_dirty
|
|
304
|
-
staged_dirty=$(git -C "$project_root" diff --cached --name-only 2>/dev/null || true)
|
|
305
|
-
if [[ -n "$tracked_dirty" || -n "$staged_dirty" ]]; then
|
|
306
|
-
if git -C "$project_root" stash push -m "pipeline-ensure-return-stash" 2>/dev/null; then
|
|
307
|
-
had_stash=true
|
|
308
|
-
fi
|
|
309
|
-
fi
|
|
310
|
-
|
|
311
|
-
# Checkout original branch
|
|
312
|
-
if git -C "$project_root" checkout "$original_branch" 2>/dev/null; then
|
|
313
|
-
log_info "Returned to branch: $original_branch"
|
|
314
|
-
else
|
|
315
|
-
log_error "Failed to checkout $original_branch — manual recovery needed"
|
|
316
|
-
fi
|
|
317
|
-
|
|
318
|
-
# Restore stashed files
|
|
319
|
-
if [[ "$had_stash" == true ]]; then
|
|
320
|
-
if ! git -C "$project_root" stash pop 2>/dev/null; then
|
|
321
|
-
log_warn "git stash pop failed during branch return — stashed changes may be lost. Run 'git stash list' to check."
|
|
322
|
-
fi
|
|
323
|
-
fi
|
|
324
|
-
|
|
325
|
-
return 0
|
|
326
|
-
}
|