prizmkit 1.1.100 → 1.1.101
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 +345 -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 +147 -0
- package/bundled/dev-pipeline/prizmkit_runtime/runners.py +422 -0
- package/bundled/dev-pipeline/prizmkit_runtime/sessions.py +552 -0
- package/bundled/dev-pipeline/prizmkit_runtime/status.py +71 -0
- package/bundled/dev-pipeline/scripts/generate-bootstrap-prompt.py +38 -23
- 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 +7 -1
- package/bundled/dev-pipeline/templates/bootstrap-prompt.md +4 -0
- package/bundled/dev-pipeline/templates/bootstrap-tier1.md +12 -3
- package/bundled/dev-pipeline/templates/bootstrap-tier2.md +13 -3
- package/bundled/dev-pipeline/templates/bootstrap-tier3.md +13 -3
- 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/test-failure-recovery-agent.md +4 -0
- package/bundled/dev-pipeline/templates/sections/test-failure-recovery-lite.md +4 -0
- package/bundled/dev-pipeline/tests/test_auto_skip.py +436 -14
- package/bundled/dev-pipeline/tests/test_generate_bootstrap_prompt.py +104 -0
- package/bundled/dev-pipeline/tests/test_generate_bugfix_prompt.py +40 -0
- package/bundled/dev-pipeline/tests/test_python_runner_parity.py +1138 -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 +33 -12
- package/src/index.js +3 -6
- package/src/manifest.js +3 -2
- package/src/metadata.js +7 -18
- package/src/prompts.js +0 -12
- package/src/runtimes.js +18 -11
- package/src/scaffold.js +133 -116
- package/src/upgrade.js +1 -1
- 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
package/bin/create-prizmkit.js
CHANGED
|
@@ -5,10 +5,10 @@
|
|
|
5
5
|
*
|
|
6
6
|
* Usage:
|
|
7
7
|
* npx prizmkit install .
|
|
8
|
-
* npx prizmkit install my-project --platform claude --runtime
|
|
8
|
+
* npx prizmkit install my-project --platform claude --runtime python --non-interactive
|
|
9
9
|
* npx prizmkit uninstall . --dry-run
|
|
10
10
|
* npx prizmkit upgrade .
|
|
11
|
-
* npx prizmkit config . --platform codebuddy --runtime
|
|
11
|
+
* npx prizmkit config . --platform codebuddy --runtime auto
|
|
12
12
|
*/
|
|
13
13
|
|
|
14
14
|
import { readFileSync } from 'fs';
|
|
@@ -32,7 +32,7 @@ program
|
|
|
32
32
|
.command('install [directory]')
|
|
33
33
|
.description('Install PrizmKit into a project directory')
|
|
34
34
|
.option('--platform <platform>', 'Target platform: codebuddy, claude, codex, or all')
|
|
35
|
-
.option('--runtime <runtime>', 'Runtime assets: unix
|
|
35
|
+
.option('--runtime <runtime>', 'Runtime assets: python or auto; unix/windows are accepted as legacy aliases for python')
|
|
36
36
|
.option('--skills <suite>', 'Skill suite: core, minimal, or recommended:<type> (frontend/backend/fullstack/library)', 'core')
|
|
37
37
|
.option('--team', 'Enable multi-agent team mode (default: true)')
|
|
38
38
|
.option('--no-team', 'Disable multi-agent team mode')
|
|
@@ -91,7 +91,7 @@ program
|
|
|
91
91
|
.command('config [directory]')
|
|
92
92
|
.description('Reconfigure existing PrizmKit installation (change platform, skills, rules, options)')
|
|
93
93
|
.option('--platform <platform>', 'Target platform: codebuddy, claude, codex, or all')
|
|
94
|
-
.option('--runtime <runtime>', 'Runtime assets: unix
|
|
94
|
+
.option('--runtime <runtime>', 'Runtime assets: python or auto; unix/windows are accepted as legacy aliases for python')
|
|
95
95
|
.option('--skills <suite>', 'Skill suite: core, minimal, or recommended:<type>')
|
|
96
96
|
.option('--rules <preset>', 'Rules preset: recommended, minimal, or none')
|
|
97
97
|
.option('--ai-cli <command>', 'AI CLI executable command (e.g. cbc, claude, codex)')
|
package/bundled/VERSION.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
# PrizmKit Dev-Pipeline Environment Configuration
|
|
2
2
|
# ================================================
|
|
3
3
|
# Copy this file to .prizmkit/.env and uncomment the variables you want to set.
|
|
4
|
-
#
|
|
5
|
-
# load .prizmkit/.env via
|
|
4
|
+
# The Python runtime CLI (cli.py feature, cli.py bugfix, etc.) automatically
|
|
5
|
+
# load .prizmkit/.env via prizmkit_runtime/config.py.
|
|
6
6
|
#
|
|
7
7
|
# Priority: Environment variables set before script execution ALWAYS take
|
|
8
8
|
# precedence over values in .prizmkit/.env. This means you can still do:
|
|
9
|
-
# MODEL=claude-opus-4 ./.prizmkit/dev-pipeline/
|
|
9
|
+
# MODEL=claude-opus-4 python3 ./.prizmkit/dev-pipeline/cli.py feature run
|
|
10
10
|
# and it will override the .prizmkit/.env value.
|
|
11
11
|
#
|
|
12
12
|
# If .prizmkit/.env does not exist, all defaults apply — no error is raised.
|
|
@@ -4,12 +4,32 @@ Autonomous development pipeline that drives the `prizm-dev-team` multi-agent tea
|
|
|
4
4
|
|
|
5
5
|
## Prerequisites
|
|
6
6
|
|
|
7
|
+
### Python runtime prerequisites
|
|
8
|
+
|
|
7
9
|
- Python 3.8+
|
|
8
10
|
- [jq](https://jqlang.github.io/jq/) (`brew install jq`)
|
|
9
11
|
- AI CLI in PATH: CodeBuddy (`cbc`), Claude Code (`claude`), or Codex (`codex`)
|
|
10
12
|
- `.prizmkit/plans/feature-list.json` generated by the `feature-planner` skill (for feature pipeline)
|
|
11
13
|
- `.prizmkit/plans/bug-fix-list.json` generated by the `bug-planner` skill (for bug pipeline)
|
|
12
14
|
|
|
15
|
+
### Unified Python CLI prerequisites
|
|
16
|
+
|
|
17
|
+
- Python 3.10+ for the unified Python CLI skeleton under `dev-pipeline/cli.py`
|
|
18
|
+
- No third-party Python runtime packages are required by the CLI skeleton
|
|
19
|
+
- The existing Python runtime is canonical for behavior while parity-based Python porting proceeds
|
|
20
|
+
|
|
21
|
+
Inspect the transition command surface without invoking legacy shell wrappers:
|
|
22
|
+
|
|
23
|
+
```bash
|
|
24
|
+
python3 dev-pipeline/cli.py --help
|
|
25
|
+
python3 dev-pipeline/cli.py diagnostics paths
|
|
26
|
+
python3 dev-pipeline/cli.py diagnostics entrypoints
|
|
27
|
+
python3 dev-pipeline/cli.py feature describe
|
|
28
|
+
python3 dev-pipeline/cli.py daemon feature describe
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
The unified CLI currently describes command contracts for feature, bugfix, refactor, recovery, reset, daemon, status, and diagnostics flows. It is an architecture skeleton and transition layer; it does not yet replace the shell implementation for runtime behavior.
|
|
32
|
+
|
|
13
33
|
## Quick Start
|
|
14
34
|
|
|
15
35
|
```bash
|
|
@@ -22,30 +42,30 @@ python3 .prizmkit/dev-pipeline/scripts/init-pipeline.py \
|
|
|
22
42
|
--state-dir .prizmkit/state/features
|
|
23
43
|
|
|
24
44
|
# 3. Run the pipeline (foreground, Ctrl+C to pause, re-run to resume)
|
|
25
|
-
./.prizmkit/dev-pipeline/
|
|
45
|
+
python3 ./.prizmkit/dev-pipeline/cli.py feature run .prizmkit/plans/feature-list.json
|
|
26
46
|
|
|
27
47
|
# 4. Check progress at any time (from another terminal)
|
|
28
|
-
./.prizmkit/dev-pipeline/
|
|
48
|
+
python3 ./.prizmkit/dev-pipeline/cli.py feature status .prizmkit/plans/feature-list.json
|
|
29
49
|
|
|
30
50
|
# 5. Or run as a background daemon
|
|
31
|
-
./.prizmkit/dev-pipeline/
|
|
51
|
+
python3 ./.prizmkit/dev-pipeline/cli.py daemon feature start .prizmkit/plans/feature-list.json
|
|
32
52
|
```
|
|
33
53
|
|
|
34
54
|
---
|
|
35
55
|
|
|
36
|
-
##
|
|
56
|
+
## Python Runtime CLI Reference
|
|
37
57
|
|
|
38
|
-
### `
|
|
58
|
+
### `cli.py feature` — Feature Pipeline Runner
|
|
39
59
|
|
|
40
60
|
Main entry point. Drives the full feature development pipeline.
|
|
41
61
|
|
|
42
62
|
```bash
|
|
43
|
-
./
|
|
44
|
-
./
|
|
45
|
-
./
|
|
46
|
-
./
|
|
47
|
-
./
|
|
48
|
-
./
|
|
63
|
+
python3 ./cli.py feature run [.prizmkit/plans/feature-list.json] # Run all features
|
|
64
|
+
python3 ./cli.py feature run <feature-id> [options] # Run a single feature (F-NNN)
|
|
65
|
+
python3 ./cli.py feature status [.prizmkit/plans/feature-list.json] # Show pipeline status
|
|
66
|
+
python3 ./cli.py reset feature # Clear all state in state/
|
|
67
|
+
python3 ./cli.py feature test-cli # Test AI CLI detection
|
|
68
|
+
python3 ./cli.py feature help # Show usage help
|
|
49
69
|
```
|
|
50
70
|
|
|
51
71
|
**Single-feature options:**
|
|
@@ -60,28 +80,28 @@ Main entry point. Drives the full feature development pipeline.
|
|
|
60
80
|
|
|
61
81
|
```bash
|
|
62
82
|
# Run all features
|
|
63
|
-
./.prizmkit/dev-pipeline/
|
|
83
|
+
python3 ./.prizmkit/dev-pipeline/cli.py feature run .prizmkit/plans/feature-list.json
|
|
64
84
|
|
|
65
85
|
# Run a single feature
|
|
66
|
-
./.prizmkit/dev-pipeline/
|
|
86
|
+
python3 ./.prizmkit/dev-pipeline/cli.py feature run F-007
|
|
67
87
|
|
|
68
88
|
# Dry run — inspect the generated prompt without spawning a session
|
|
69
|
-
./.prizmkit/dev-pipeline/
|
|
89
|
+
python3 ./.prizmkit/dev-pipeline/cli.py feature run F-007 --dry-run
|
|
70
90
|
|
|
71
91
|
# Resume from Phase 6 (implementation)
|
|
72
|
-
./.prizmkit/dev-pipeline/
|
|
92
|
+
python3 ./.prizmkit/dev-pipeline/cli.py feature run .prizmkit/plans/feature-list.json --resume-phase 6
|
|
73
93
|
```
|
|
74
94
|
|
|
75
95
|
If `.prizmkit/plans/feature-list.json` path is omitted, defaults to `.prizmkit/plans/feature-list.json` in the project root.
|
|
76
96
|
|
|
77
97
|
---
|
|
78
98
|
|
|
79
|
-
### `reset
|
|
99
|
+
### `cli.py reset feature` — Reset & Retry Failed/Stuck Feature
|
|
80
100
|
|
|
81
101
|
Resets a feature's state so it can be re-executed from scratch.
|
|
82
102
|
|
|
83
103
|
```bash
|
|
84
|
-
./reset
|
|
104
|
+
python3 ./cli.py reset feature <feature-id> [--clean] [--run] [.prizmkit/plans/feature-list.json]
|
|
85
105
|
```
|
|
86
106
|
|
|
87
107
|
| Flag | Description |
|
|
@@ -100,25 +120,25 @@ Resets a feature's state so it can be re-executed from scratch.
|
|
|
100
120
|
**Examples:**
|
|
101
121
|
|
|
102
122
|
```bash
|
|
103
|
-
./.prizmkit/dev-pipeline/reset
|
|
104
|
-
./.prizmkit/dev-pipeline/reset
|
|
105
|
-
./.prizmkit/dev-pipeline/reset
|
|
106
|
-
./.prizmkit/dev-pipeline/reset
|
|
123
|
+
python3 ./.prizmkit/dev-pipeline/cli.py reset feature F-007 # Reset status only
|
|
124
|
+
python3 ./.prizmkit/dev-pipeline/cli.py reset feature F-007 --clean # Reset + delete artifacts
|
|
125
|
+
python3 ./.prizmkit/dev-pipeline/cli.py reset feature F-007 --clean --run # Reset + clean + retry
|
|
126
|
+
python3 ./.prizmkit/dev-pipeline/cli.py reset feature F-007 --clean my-features.json
|
|
107
127
|
```
|
|
108
128
|
|
|
109
129
|
---
|
|
110
130
|
|
|
111
|
-
### `
|
|
131
|
+
### `cli.py daemon feature` — Feature Pipeline Daemon
|
|
112
132
|
|
|
113
|
-
Manages `
|
|
133
|
+
Manages `cli.py feature` as a background daemon process with PID tracking and log consolidation. Designed for invocation from AI skill sessions.
|
|
114
134
|
|
|
115
135
|
```bash
|
|
116
|
-
./
|
|
117
|
-
./
|
|
118
|
-
./
|
|
119
|
-
./
|
|
120
|
-
./
|
|
121
|
-
./
|
|
136
|
+
python3 ./cli.py daemon feature start [.prizmkit/plans/feature-list.json] [--mode <mode>] [--env "KEY=VAL ..."]
|
|
137
|
+
python3 ./cli.py daemon feature stop
|
|
138
|
+
python3 ./cli.py daemon feature status
|
|
139
|
+
python3 ./cli.py daemon feature logs [--lines N] [--follow]
|
|
140
|
+
python3 ./cli.py daemon feature restart [.prizmkit/plans/feature-list.json] [--mode <mode>] [--env "KEY=VAL ..."]
|
|
141
|
+
python3 ./cli.py daemon feature help
|
|
122
142
|
```
|
|
123
143
|
|
|
124
144
|
| Subcommand | Description |
|
|
@@ -134,7 +154,7 @@ Manages `run-feature.sh` as a background daemon process with PID tracking and lo
|
|
|
134
154
|
**`--env` format:** Pass environment variables as a quoted string:
|
|
135
155
|
|
|
136
156
|
```bash
|
|
137
|
-
./.prizmkit/dev-pipeline/
|
|
157
|
+
python3 ./.prizmkit/dev-pipeline/cli.py daemon feature start .prizmkit/plans/feature-list.json \
|
|
138
158
|
--mode standard \
|
|
139
159
|
--env "MAX_RETRIES=5 MODEL=claude-sonnet-4.6"
|
|
140
160
|
```
|
|
@@ -161,34 +181,34 @@ Manages `run-feature.sh` as a background daemon process with PID tracking and lo
|
|
|
161
181
|
|
|
162
182
|
---
|
|
163
183
|
|
|
164
|
-
### `
|
|
184
|
+
### `cli.py bugfix` — Bug-Fix Pipeline Runner
|
|
165
185
|
|
|
166
|
-
Equivalent to `
|
|
186
|
+
Equivalent to `cli.py feature` but for the bug-fix pipeline.
|
|
167
187
|
|
|
168
188
|
```bash
|
|
169
|
-
./
|
|
170
|
-
./
|
|
171
|
-
./
|
|
172
|
-
./
|
|
173
|
-
./
|
|
189
|
+
python3 ./cli.py bugfix run [.prizmkit/plans/bug-fix-list.json] # Run all bugs
|
|
190
|
+
python3 ./cli.py bugfix run <bug-id> [options] # Run single bug (B-NNN)
|
|
191
|
+
python3 ./cli.py bugfix status [.prizmkit/plans/bug-fix-list.json] # Show status
|
|
192
|
+
python3 ./cli.py reset bugfix # Clear all bugfix state
|
|
193
|
+
python3 ./cli.py bugfix help
|
|
174
194
|
```
|
|
175
195
|
|
|
176
|
-
**Single-bug options:** `--dry-run` (same as `
|
|
196
|
+
**Single-bug options:** `--dry-run` (same as `cli.py feature`)
|
|
177
197
|
|
|
178
198
|
Processes bugs by: **severity** (critical > high > medium > low) then **priority** (high > medium > low).
|
|
179
199
|
|
|
180
200
|
---
|
|
181
201
|
|
|
182
|
-
### `
|
|
202
|
+
### `cli.py daemon bugfix` — Bug-Fix Pipeline Daemon
|
|
183
203
|
|
|
184
|
-
Identical interface to `
|
|
204
|
+
Identical interface to `cli.py daemon feature` but manages `cli.py bugfix` in background.
|
|
185
205
|
|
|
186
206
|
```bash
|
|
187
|
-
./
|
|
188
|
-
./
|
|
189
|
-
./
|
|
190
|
-
./
|
|
191
|
-
./
|
|
207
|
+
python3 ./cli.py daemon bugfix start [.prizmkit/plans/bug-fix-list.json] [--env "KEY=VAL ..."]
|
|
208
|
+
python3 ./cli.py daemon bugfix stop
|
|
209
|
+
python3 ./cli.py daemon bugfix status
|
|
210
|
+
python3 ./cli.py daemon bugfix logs [--lines N] [--follow]
|
|
211
|
+
python3 ./cli.py daemon bugfix restart [.prizmkit/plans/bug-fix-list.json] [--env "KEY=VAL ..."]
|
|
192
212
|
```
|
|
193
213
|
|
|
194
214
|
Uses `.prizmkit/state/bugfix/` instead of `.prizmkit/state/features/`.
|
|
@@ -285,7 +305,7 @@ python3 scripts/generate-bootstrap-prompt.py \
|
|
|
285
305
|
{ "success": true, "output_path": "/absolute/path/prompt.md", "model": "claude-sonnet-4.6" }
|
|
286
306
|
```
|
|
287
307
|
|
|
288
|
-
The `model` field is extracted from the feature's `"model"` field in .prizmkit/plans/feature-list.json (empty string if not specified). Used by `
|
|
308
|
+
The `model` field is extracted from the feature's `"model"` field in .prizmkit/plans/feature-list.json (empty string if not specified). Used by `cli.py feature` to set `--model` on the AI CLI.
|
|
289
309
|
|
|
290
310
|
**Conditional blocks resolved:**
|
|
291
311
|
- `{{IF_RESUME}}` / `{{IF_FRESH_START}}` — Resume vs fresh start
|
|
@@ -435,7 +455,7 @@ python3 scripts/parse-stream-progress.py \
|
|
|
435
455
|
--progress-file <path>
|
|
436
456
|
```
|
|
437
457
|
|
|
438
|
-
**Runs as a background process** (spawned by `
|
|
458
|
+
**Runs as a background process** (spawned by `prizmkit_runtime/heartbeat.py`). Reads JSONL from session log, writes progress to `progress.json` (atomic writes).
|
|
439
459
|
|
|
440
460
|
**Phase detection (monotonic):** specify → plan → analyze → implement → code-review → retrospective → commit
|
|
441
461
|
|
|
@@ -470,9 +490,9 @@ Imported by all Python scripts. Provides:
|
|
|
470
490
|
|
|
471
491
|
---
|
|
472
492
|
|
|
473
|
-
##
|
|
493
|
+
## Python Runtime Modules
|
|
474
494
|
|
|
475
|
-
### `
|
|
495
|
+
### `prizmkit_runtime/config.py` — CLI Detection & Shared Helpers
|
|
476
496
|
|
|
477
497
|
Sourced by daemon and runner scripts. Provides:
|
|
478
498
|
|
|
@@ -483,14 +503,14 @@ Sourced by daemon and runner scripts. Provides:
|
|
|
483
503
|
|
|
484
504
|
Also exports: `log_info`, `log_warn`, `log_error`, `log_success` (with timestamps), and color constants.
|
|
485
505
|
|
|
486
|
-
### `
|
|
506
|
+
### `prizmkit_runtime/gitops.py` — Git Branch Lifecycle
|
|
487
507
|
|
|
488
508
|
| Function | Description |
|
|
489
509
|
|----------|-------------|
|
|
490
510
|
| `branch_create(project_root, branch_name, source_branch)` | Create & checkout feature branch. Reuses if exists. Returns 0/1. |
|
|
491
511
|
| `branch_return(project_root, original_branch)` | Checkout back to original branch |
|
|
492
512
|
|
|
493
|
-
### `
|
|
513
|
+
### `prizmkit_runtime/heartbeat.py` — Heartbeat & Progress Monitoring
|
|
494
514
|
|
|
495
515
|
| Function | Description |
|
|
496
516
|
|----------|-------------|
|
|
@@ -508,38 +528,38 @@ Also exports: `log_info`, `log_warn`, `log_error`, `log_success` (with timestamp
|
|
|
508
528
|
|
|
509
529
|
| Variable | Default | Used By | Description |
|
|
510
530
|
|----------|---------|---------|-------------|
|
|
511
|
-
| `MAX_RETRIES` | `3` |
|
|
512
|
-
| `PIPELINE_MODE` | (auto) |
|
|
513
|
-
| `ENABLE_CRITIC` | `false` |
|
|
514
|
-
| `DEV_BRANCH` | auto-generated |
|
|
515
|
-
| `AUTO_PUSH` | `0` |
|
|
531
|
+
| `MAX_RETRIES` | `3` | cli.py feature | Max retry attempts per feature before marking as failed |
|
|
532
|
+
| `PIPELINE_MODE` | (auto) | cli.py feature, cli.py daemon feature | Override mode for all features: `lite\|standard\|full` |
|
|
533
|
+
| `ENABLE_CRITIC` | `false` | cli.py feature, cli.py daemon feature | Enable adversarial critic review: `true\|false` |
|
|
534
|
+
| `DEV_BRANCH` | auto-generated | cli.py feature | Custom git branch name (default: `dev/{feature-id}-{timestamp}`) |
|
|
535
|
+
| `AUTO_PUSH` | `0` | cli.py feature | Set to `1` to auto-push branch to remote after successful session |
|
|
516
536
|
|
|
517
537
|
### AI CLI Configuration
|
|
518
538
|
|
|
519
539
|
| Variable | Default | Used By | Description |
|
|
520
540
|
|----------|---------|---------|-------------|
|
|
521
|
-
| `AI_CLI` | auto-detect |
|
|
522
|
-
| `PRIZMKIT_PLATFORM` | auto-detect |
|
|
523
|
-
| `MODEL` | (none) |
|
|
524
|
-
| `CODEBUDDY_CLI` | (deprecated) |
|
|
525
|
-
| `VERBOSE` | `0` |
|
|
541
|
+
| `AI_CLI` | auto-detect | Python runtime | AI CLI command name. Auto-detects `cbc`, `claude`, or `codex` |
|
|
542
|
+
| `PRIZMKIT_PLATFORM` | auto-detect | Python runtime | Platform hint for custom/wrapped AI CLI commands: `codebuddy`, `claude`, or `codex` |
|
|
543
|
+
| `MODEL` | (none) | cli.py feature, cli.py bugfix | AI model fallback. Overridden by per-feature `model` field. See [Model Selection](#model-selection) |
|
|
544
|
+
| `CODEBUDDY_CLI` | (deprecated) | Python runtime | Legacy alias for `AI_CLI`. Prefer `AI_CLI` |
|
|
545
|
+
| `VERBOSE` | `0` | cli.py feature | Set to `1` to enable `--verbose` on AI CLI |
|
|
526
546
|
|
|
527
547
|
### Monitoring & Logging
|
|
528
548
|
|
|
529
549
|
| Variable | Default | Used By | Description |
|
|
530
550
|
|----------|---------|---------|-------------|
|
|
531
|
-
| `HEARTBEAT_INTERVAL` | `30` |
|
|
532
|
-
| `HEARTBEAT_STALE_THRESHOLD` | `600` |
|
|
551
|
+
| `HEARTBEAT_INTERVAL` | `30` | cli.py feature | Seconds between heartbeat log output |
|
|
552
|
+
| `HEARTBEAT_STALE_THRESHOLD` | `600` | cli.py feature | Seconds before a session is considered stale/stuck |
|
|
533
553
|
|
|
534
554
|
**Examples:**
|
|
535
555
|
|
|
536
556
|
```bash
|
|
537
557
|
# All env vars in one invocation
|
|
538
558
|
MAX_RETRIES=5 MODEL=claude-sonnet-4.6 VERBOSE=1 \
|
|
539
|
-
./.prizmkit/dev-pipeline/
|
|
559
|
+
python3 ./.prizmkit/dev-pipeline/cli.py feature run .prizmkit/plans/feature-list.json
|
|
540
560
|
|
|
541
561
|
# Via daemon with --env
|
|
542
|
-
./.prizmkit/dev-pipeline/
|
|
562
|
+
python3 ./.prizmkit/dev-pipeline/cli.py daemon feature start .prizmkit/plans/feature-list.json \
|
|
543
563
|
--mode standard \
|
|
544
564
|
--env "MAX_RETRIES=5 AUTO_PUSH=1"
|
|
545
565
|
```
|
|
@@ -576,13 +596,13 @@ Specify a model for individual features in `.prizmkit/plans/feature-list.json`:
|
|
|
576
596
|
|
|
577
597
|
```bash
|
|
578
598
|
# All features without a per-feature model use Sonnet
|
|
579
|
-
MODEL=claude-sonnet-4.6 ./.prizmkit/dev-pipeline/
|
|
599
|
+
MODEL=claude-sonnet-4.6 python3 ./.prizmkit/dev-pipeline/cli.py feature run .prizmkit/plans/feature-list.json
|
|
580
600
|
|
|
581
601
|
# Retry with Opus
|
|
582
|
-
MODEL=claude-opus-4.6 ./.prizmkit/dev-pipeline/reset
|
|
602
|
+
MODEL=claude-opus-4.6 python3 ./.prizmkit/dev-pipeline/cli.py reset feature F-007 --clean --run
|
|
583
603
|
|
|
584
604
|
# Test which model the CLI is using
|
|
585
|
-
MODEL=claude-sonnet-4.6 ./.prizmkit/dev-pipeline/
|
|
605
|
+
MODEL=claude-sonnet-4.6 python3 ./.prizmkit/dev-pipeline/cli.py feature test-cli
|
|
586
606
|
```
|
|
587
607
|
|
|
588
608
|
### Dry-Run Model Verification
|
|
@@ -590,7 +610,7 @@ MODEL=claude-sonnet-4.6 ./.prizmkit/dev-pipeline/run-feature.sh test-cli
|
|
|
590
610
|
Use `--dry-run` to verify which model will be used without spawning a session:
|
|
591
611
|
|
|
592
612
|
```bash
|
|
593
|
-
./.prizmkit/dev-pipeline/
|
|
613
|
+
python3 ./.prizmkit/dev-pipeline/cli.py feature run F-017 --dry-run
|
|
594
614
|
# Output includes: "Feature Model: claude-opus-4.6"
|
|
595
615
|
```
|
|
596
616
|
|
|
@@ -629,15 +649,15 @@ To permanently configure, create `.prizmkit/config.json`:
|
|
|
629
649
|
Or override per-invocation:
|
|
630
650
|
|
|
631
651
|
```bash
|
|
632
|
-
AI_CLI=claude ./.prizmkit/dev-pipeline/
|
|
652
|
+
AI_CLI=claude python3 ./.prizmkit/dev-pipeline/cli.py feature run .prizmkit/plans/feature-list.json
|
|
633
653
|
```
|
|
634
654
|
|
|
635
655
|
### Testing AI CLI (`test-cli`)
|
|
636
656
|
|
|
637
657
|
```bash
|
|
638
|
-
./.prizmkit/dev-pipeline/
|
|
639
|
-
MODEL=claude-sonnet-4.6 ./.prizmkit/dev-pipeline/
|
|
640
|
-
AI_CLI=cbc ./.prizmkit/dev-pipeline/
|
|
658
|
+
python3 ./.prizmkit/dev-pipeline/cli.py feature test-cli
|
|
659
|
+
MODEL=claude-sonnet-4.6 python3 ./.prizmkit/dev-pipeline/cli.py feature test-cli
|
|
660
|
+
AI_CLI=cbc python3 ./.prizmkit/dev-pipeline/cli.py feature test-cli
|
|
641
661
|
```
|
|
642
662
|
|
|
643
663
|
---
|
|
@@ -647,7 +667,7 @@ AI_CLI=cbc ./.prizmkit/dev-pipeline/run-feature.sh test-cli
|
|
|
647
667
|
### Feature Pipeline Execution Flow
|
|
648
668
|
|
|
649
669
|
```
|
|
650
|
-
|
|
670
|
+
cli.py feature run command
|
|
651
671
|
|
|
|
652
672
|
+- detect-stuck.py # Check for stale/stuck sessions
|
|
653
673
|
+- update-feature-status.py # get_next: find next runnable feature
|
|
@@ -725,14 +745,14 @@ cat .prizmkit/state/features/F-003/sessions/F-003-*/logs/session.log | less
|
|
|
725
745
|
### Pause & Resume
|
|
726
746
|
|
|
727
747
|
- **Ctrl+C** triggers graceful shutdown — current state is saved
|
|
728
|
-
- **Re-running**
|
|
729
|
-
- Force resume from a phase:
|
|
748
|
+
- **Re-running** `python3 ./cli.py feature run` resumes from where it left off (completed features skipped)
|
|
749
|
+
- Force resume from a phase: `python3 ./cli.py feature run .prizmkit/plans/feature-list.json --resume-phase 6`
|
|
730
750
|
|
|
731
751
|
### Manual Intervention
|
|
732
752
|
|
|
733
753
|
```bash
|
|
734
754
|
# Check what failed
|
|
735
|
-
./.prizmkit/dev-pipeline/
|
|
755
|
+
python3 ./.prizmkit/dev-pipeline/cli.py feature status .prizmkit/plans/feature-list.json
|
|
736
756
|
|
|
737
757
|
# Review session logs
|
|
738
758
|
cat .prizmkit/state/features/F-XXX/sessions/*/logs/session.log
|
|
@@ -750,7 +770,7 @@ python3 .prizmkit/dev-pipeline/scripts/update-feature-status.py \
|
|
|
750
770
|
--feature-id F-XXX --action reset
|
|
751
771
|
|
|
752
772
|
# Resume
|
|
753
|
-
./.prizmkit/dev-pipeline/
|
|
773
|
+
python3 ./.prizmkit/dev-pipeline/cli.py feature run .prizmkit/plans/feature-list.json
|
|
754
774
|
```
|
|
755
775
|
|
|
756
776
|
---
|
|
@@ -764,17 +784,17 @@ The bug fix pipeline provides the same autonomous outer-loop as the feature pipe
|
|
|
764
784
|
```bash
|
|
765
785
|
# 1. Generate bug fix list (via bug-planner skill)
|
|
766
786
|
# 2. Run foreground
|
|
767
|
-
./.prizmkit/dev-pipeline/
|
|
787
|
+
python3 ./.prizmkit/dev-pipeline/cli.py bugfix run .prizmkit/plans/bug-fix-list.json
|
|
768
788
|
# 3. Or as daemon
|
|
769
|
-
./.prizmkit/dev-pipeline/
|
|
789
|
+
python3 ./.prizmkit/dev-pipeline/cli.py daemon bugfix start .prizmkit/plans/bug-fix-list.json
|
|
770
790
|
# 4. Check progress
|
|
771
|
-
./.prizmkit/dev-pipeline/
|
|
791
|
+
python3 ./.prizmkit/dev-pipeline/cli.py bugfix status .prizmkit/plans/bug-fix-list.json
|
|
772
792
|
```
|
|
773
793
|
|
|
774
794
|
### Bug Fix Execution Flow
|
|
775
795
|
|
|
776
796
|
```
|
|
777
|
-
|
|
797
|
+
cli.py bugfix run command
|
|
778
798
|
|
|
|
779
799
|
+- update-bug-status.py # get_next (severity -> priority order)
|
|
780
800
|
+- generate-bugfix-prompt.py # Build prompt from template
|
|
@@ -827,13 +847,13 @@ run-bugfix.sh main loop
|
|
|
827
847
|
|
|
828
848
|
```
|
|
829
849
|
.prizmkit/dev-pipeline/
|
|
830
|
-
+--
|
|
831
|
-
+-- reset
|
|
832
|
-
+-- reset
|
|
833
|
-
+--
|
|
834
|
-
+--
|
|
835
|
-
+-- reset
|
|
836
|
-
+--
|
|
850
|
+
+-- cli.py feature # Main pipeline runner (features)
|
|
851
|
+
+-- cli.py reset feature # Reset & retry failed feature
|
|
852
|
+
+-- cli.py reset feature # Reset/clean feature for re-execution
|
|
853
|
+
+-- cli.py daemon feature # Background daemon for feature pipeline
|
|
854
|
+
+-- cli.py bugfix # Bug-fix pipeline runner
|
|
855
|
+
+-- cli.py reset bugfix # Reset & retry failed bug
|
|
856
|
+
+-- cli.py daemon bugfix # Background daemon for bugfix pipeline
|
|
837
857
|
+-- README.md # This file
|
|
838
858
|
+-- .gitignore # Ignores .prizmkit/state/, __pycache__/
|
|
839
859
|
|
|
|
@@ -922,7 +942,7 @@ Check `set -e` interactions. All python invocations in the main loop should have
|
|
|
922
942
|
Verify CLI is functional: `claude -p "test" --dangerously-skip-permissions`, `echo "test" | cbc --print -y`, or `echo "test" | codex --ask-for-approval never --sandbox danger-full-access exec --skip-git-repo-check -`
|
|
923
943
|
|
|
924
944
|
### "PIPELINE_BLOCKED" loops
|
|
925
|
-
All remaining features have unmet dependencies. Use
|
|
945
|
+
All remaining features have unmet dependencies. Use `python3 ./cli.py feature status` to find the blocking feature, then reset or manually complete it.
|
|
926
946
|
|
|
927
947
|
### Feature marked as "crashed"
|
|
928
948
|
Session exited without `session-status.json`. Pipeline retries up to `MAX_RETRIES` times automatically.
|
|
@@ -9,7 +9,7 @@ dev-pipeline drives the prizm-dev-team multi-agent team through an outer shell l
|
|
|
9
9
|
```
|
|
10
10
|
dev-pipeline (outer loop)
|
|
11
11
|
│
|
|
12
|
-
├──
|
|
12
|
+
├── cli.py feature Python runtime CLI — picks next feature, spawns CLI
|
|
13
13
|
├── scripts/ Python state management scripts
|
|
14
14
|
├── templates/bootstrap-prompt.md Session prompt template
|
|
15
15
|
│
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
#!/usr/bin/env python3
|
|
2
|
+
"""Thin entrypoint for the PrizmKit unified Python runtime CLI."""
|
|
3
|
+
|
|
4
|
+
from __future__ import annotations
|
|
5
|
+
|
|
6
|
+
import sys
|
|
7
|
+
from pathlib import Path
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
def _bootstrap_import_path() -> None:
|
|
11
|
+
"""Ensure direct script execution can import the runtime package."""
|
|
12
|
+
pipeline_root = Path(__file__).resolve().parent
|
|
13
|
+
pipeline_root_text = str(pipeline_root)
|
|
14
|
+
if pipeline_root_text not in sys.path:
|
|
15
|
+
sys.path.insert(0, pipeline_root_text)
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
def main(argv: list[str] | None = None) -> int:
|
|
19
|
+
"""Run the unified runtime CLI and return its process exit code."""
|
|
20
|
+
_bootstrap_import_path()
|
|
21
|
+
from prizmkit_runtime.cli import main as runtime_main
|
|
22
|
+
|
|
23
|
+
return runtime_main(argv)
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
if __name__ == "__main__":
|
|
27
|
+
raise SystemExit(main())
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"""Public contracts for the canonical PrizmKit Python runtime."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
__version__ = "0.1.0"
|
|
6
|
+
__runtime_contract__ = "canonical-python-cli"
|
|
7
|
+
__runtime_status__ = "python-runtime-canonical"
|
|
8
|
+
|
|
9
|
+
__all__ = [
|
|
10
|
+
"__runtime_contract__",
|
|
11
|
+
"__runtime_status__",
|
|
12
|
+
"__version__",
|
|
13
|
+
]
|