prizmkit 1.1.190 → 1.1.192
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/adapters/antigravity/assets/prizmkit-hook.cjs +150 -0
- package/bundled/adapters/antigravity/hooks-adapter.js +195 -0
- package/bundled/adapters/antigravity/paths.js +14 -0
- package/bundled/adapters/antigravity/rules-adapter.js +54 -0
- package/bundled/adapters/antigravity/skill-adapter.js +38 -0
- package/bundled/adapters/codex/skill-adapter.js +28 -8
- package/bundled/adapters/cursor/skill-adapter.js +13 -4
- package/bundled/adapters/pi/skill-adapter.js +28 -7
- package/bundled/dev-pipeline/.env.example +4 -12
- package/bundled/dev-pipeline/README.md +21 -15
- package/bundled/dev-pipeline/assets/skill-subagent-integration.md +3 -6
- package/bundled/dev-pipeline/prizmkit_runtime/atomic_io.py +48 -0
- package/bundled/dev-pipeline/prizmkit_runtime/checkpoint_state.py +66 -23
- package/bundled/dev-pipeline/prizmkit_runtime/cli.py +10 -7
- package/bundled/dev-pipeline/prizmkit_runtime/commands.py +2 -21
- package/bundled/dev-pipeline/prizmkit_runtime/config.py +29 -70
- package/bundled/dev-pipeline/prizmkit_runtime/daemon.py +125 -67
- package/bundled/dev-pipeline/prizmkit_runtime/gitops.py +89 -442
- package/bundled/dev-pipeline/prizmkit_runtime/heartbeat.py +93 -49
- package/bundled/dev-pipeline/prizmkit_runtime/interoperability.py +1 -3
- package/bundled/dev-pipeline/prizmkit_runtime/paths.py +0 -6
- package/bundled/dev-pipeline/prizmkit_runtime/platform_detection.py +49 -18
- package/bundled/dev-pipeline/prizmkit_runtime/processes.py +206 -151
- package/bundled/dev-pipeline/prizmkit_runtime/reset.py +2 -23
- package/bundled/dev-pipeline/prizmkit_runtime/reset_preserve.py +15 -134
- package/bundled/dev-pipeline/prizmkit_runtime/results.py +25 -0
- package/bundled/dev-pipeline/prizmkit_runtime/runner_bookkeeping.py +68 -83
- package/bundled/dev-pipeline/prizmkit_runtime/runner_classification.py +15 -5
- package/bundled/dev-pipeline/prizmkit_runtime/runner_models.py +1 -29
- package/bundled/dev-pipeline/prizmkit_runtime/runner_prompts.py +0 -2
- package/bundled/dev-pipeline/prizmkit_runtime/runner_status.py +7 -2
- package/bundled/dev-pipeline/prizmkit_runtime/runners.py +282 -217
- package/bundled/dev-pipeline/prizmkit_runtime/runtime_commit.py +124 -122
- package/bundled/dev-pipeline/prizmkit_runtime/runtime_helper.py +90 -9
- package/bundled/dev-pipeline/prizmkit_runtime/sessions.py +369 -154
- package/bundled/dev-pipeline/prizmkit_runtime/status.py +3 -3
- package/bundled/dev-pipeline/prizmkit_runtime/stream_progress.py +2780 -0
- package/bundled/dev-pipeline/prizmkit_runtime/task_checkout.py +27 -101
- package/bundled/dev-pipeline/prizmkit_runtime/test_result.py +58 -4
- package/bundled/dev-pipeline/scripts/check-session-status.py +43 -19
- package/bundled/dev-pipeline/scripts/continuation.py +6 -4
- package/bundled/dev-pipeline/scripts/detect-stuck.py +28 -28
- package/bundled/dev-pipeline/scripts/generate-bootstrap-prompt.py +7 -2
- package/bundled/dev-pipeline/scripts/generate-bugfix-prompt.py +7 -2
- package/bundled/dev-pipeline/scripts/init-bugfix-pipeline.py +10 -7
- package/bundled/dev-pipeline/scripts/init-change-artifact.py +8 -2
- package/bundled/dev-pipeline/scripts/init-pipeline.py +14 -69
- package/bundled/dev-pipeline/scripts/parse-stream-progress.py +31 -2328
- package/bundled/dev-pipeline/scripts/patch-completion-notes.py +4 -24
- package/bundled/dev-pipeline/scripts/prompt_framework.py +56 -9
- package/bundled/dev-pipeline/scripts/status_common.py +591 -0
- package/bundled/dev-pipeline/scripts/update-bug-status.py +85 -463
- package/bundled/dev-pipeline/scripts/update-checkpoint.py +227 -65
- package/bundled/dev-pipeline/scripts/update-feature-status.py +76 -509
- package/bundled/dev-pipeline/scripts/utils.py +10 -15
- package/bundled/dev-pipeline/templates/bootstrap-tier3.md +4 -4
- package/bundled/dev-pipeline/templates/bug-fix-list-schema.json +7 -0
- package/bundled/dev-pipeline/templates/bugfix-bootstrap-prompt.md +1 -1
- package/bundled/dev-pipeline/templates/sections/artifact-manifest.md +1 -1
- package/bundled/dev-pipeline/templates/sections/bugfix-phase-manual-verification.md +1 -1
- package/bundled/dev-pipeline/templates/sections/bugfix-phase-review.md +1 -1
- package/bundled/dev-pipeline/templates/sections/bugfix-phase-test.md +2 -1
- package/bundled/dev-pipeline/templates/sections/checkpoint-system.md +1 -1
- package/bundled/dev-pipeline/templates/sections/phase-browser-verification-auto.md +1 -1
- package/bundled/dev-pipeline/templates/sections/phase-browser-verification-opencli.md +2 -2
- package/bundled/dev-pipeline/templates/sections/phase-browser-verification.md +2 -2
- package/bundled/dev-pipeline/templates/sections/phase-prizmkit-test.md +2 -1
- package/bundled/dev-pipeline/templates/sections/phase-review-full.md +1 -1
- package/bundled/dev-pipeline/templates/sections/phase-specify-plan-full.md +3 -6
- package/bundled/dev-pipeline/templates/session-status-schema.json +2 -5
- package/bundled/dev-pipeline/tests/_helpers.py +418 -0
- package/bundled/dev-pipeline/tests/conftest.py +45 -1
- package/bundled/dev-pipeline/tests/live_ai_cli_log_smoke.py +1 -0
- package/bundled/dev-pipeline/tests/test_auto_skip.py +4 -69
- package/bundled/dev-pipeline/tests/test_checkpoint_state.py +126 -1
- package/bundled/dev-pipeline/tests/test_daemon_and_scripts.py +257 -0
- package/bundled/dev-pipeline/tests/test_e2e_pipeline_run.py +500 -0
- package/bundled/dev-pipeline/tests/test_generate_bootstrap_prompt.py +59 -117
- package/bundled/dev-pipeline/tests/test_generate_bugfix_prompt.py +12 -10
- package/bundled/dev-pipeline/tests/test_python_runner_parity.py +561 -3094
- package/bundled/dev-pipeline/tests/test_recovery_workflow.py +7 -8
- package/bundled/dev-pipeline/tests/test_repository_bootstrap.py +0 -1
- package/bundled/dev-pipeline/tests/test_reset_modes.py +15 -27
- package/bundled/dev-pipeline/tests/test_reset_preserve.py +54 -139
- package/bundled/dev-pipeline/tests/test_runner_bookkeeping.py +766 -0
- package/bundled/dev-pipeline/tests/test_runner_lifecycle.py +1257 -0
- package/bundled/dev-pipeline/tests/test_runtime_helper.py +97 -20
- package/bundled/dev-pipeline/tests/test_session_launch.py +1101 -0
- package/bundled/dev-pipeline/tests/test_stream_progress.py +585 -0
- package/bundled/dev-pipeline/tests/test_unified_cli.py +490 -2006
- package/bundled/dev-pipeline/tests/test_utils.py +3 -3
- package/bundled/rules/USAGE.md +1 -0
- package/bundled/skills/_metadata.json +9 -63
- package/bundled/skills/app-planner/SKILL.md +32 -303
- package/bundled/skills/app-planner/references/app-design-guide.md +0 -4
- package/bundled/skills/app-planner/references/generated-plan-review.md +2 -1
- package/bundled/skills/app-planner/references/project-brief-guide.md +14 -0
- package/bundled/skills/app-planner/references/project-conventions-discovery.md +4 -6
- package/bundled/skills/app-planner/references/project-state-detection.md +2 -3
- package/bundled/skills/bug-fix-workflow/SKILL.md +1 -2
- package/bundled/skills/bug-fix-workflow/references/bug-diagnosis.md +4 -7
- package/bundled/skills/bug-planner/SKILL.md +54 -435
- package/bundled/skills/bug-planner/references/generated-plan-review.md +3 -2
- package/bundled/skills/bug-planner/references/input-formats.md +32 -0
- package/bundled/skills/bugfix-pipeline-launcher/SKILL.md +4 -6
- package/bundled/skills/bugfix-pipeline-launcher/references/configuration.md +4 -28
- package/bundled/skills/feature-pipeline-launcher/SKILL.md +4 -6
- package/bundled/skills/feature-pipeline-launcher/references/configuration.md +4 -28
- package/bundled/skills/feature-planner/SKILL.md +60 -439
- package/bundled/skills/feature-planner/assets/planning-guide.md +1 -1
- package/bundled/skills/feature-planner/references/completeness-review.md +34 -0
- package/bundled/skills/feature-planner/references/decomposition-patterns.md +2 -2
- package/bundled/skills/feature-planner/references/error-recovery.md +1 -1
- package/bundled/skills/feature-planner/references/generated-plan-review.md +3 -2
- package/bundled/skills/feature-planner/references/incremental-feature-planning.md +3 -1
- package/bundled/skills/feature-workflow/SKILL.md +1 -2
- package/bundled/skills/prizmkit/SKILL.md +7 -1
- package/bundled/skills/prizmkit-code-review/SKILL.md +14 -6
- package/bundled/skills/prizmkit-code-review/references/independent-code-review.md +7 -4
- package/bundled/skills/prizmkit-code-review/references/review-report-template.md +16 -0
- package/bundled/skills/prizmkit-code-review/scripts/render_review_report.py +58 -20
- package/bundled/skills/prizmkit-implement/SKILL.md +1 -1
- package/bundled/skills/prizmkit-init/SKILL.md +25 -128
- package/bundled/skills/prizmkit-init/assets/project-brief-template.md +3 -3
- package/bundled/skills/prizmkit-init/references/config-schema.md +2 -2
- package/bundled/skills/prizmkit-plan/SKILL.md +6 -8
- package/bundled/skills/prizmkit-plan/references/clarify-guide.md +1 -1
- package/bundled/skills/prizmkit-plan/references/independent-plan-review.md +5 -2
- package/bundled/skills/prizmkit-plan/references/review-plan-spec-loop.md +6 -5
- package/bundled/skills/prizmkit-prizm-docs/SKILL.md +1 -13
- package/bundled/skills/prizmkit-prizm-docs/assets/prizm-docs-format.md +1 -1
- package/bundled/skills/prizmkit-prizm-docs/references/op-init.md +1 -1
- package/bundled/skills/prizmkit-prizm-docs/references/op-update.md +1 -1
- package/bundled/skills/prizmkit-retrospective/SKILL.md +6 -4
- package/bundled/skills/prizmkit-test/SKILL.md +25 -133
- package/bundled/skills/prizmkit-test/references/independent-test-review.md +5 -2
- package/bundled/skills/prizmkit-test/references/test-coverage-model.md +6 -0
- package/bundled/skills/prizmkit-workflow/SKILL.md +2 -3
- package/bundled/skills/prizmkit-workflow/references/workflow-state-protocol.md +4 -3
- package/bundled/skills/recovery-workflow/SKILL.md +7 -7
- package/bundled/skills/recovery-workflow/evals/evals.json +1 -1
- package/bundled/skills/recovery-workflow/references/detection.md +1 -3
- package/bundled/skills/recovery-workflow/scripts/detect-recovery-state.py +0 -6
- package/bundled/templates/project-memory-template.md +1 -2
- package/package.json +1 -1
- package/src/ai-cli-launch.js +1 -1
- package/src/clean.js +40 -4
- package/src/config.js +64 -4
- package/src/detect-platform.js +10 -6
- package/src/external-skills.js +2 -2
- package/src/index.js +1 -0
- package/src/manifest.js +1 -1
- package/src/platforms.js +6 -2
- package/src/prompts.js +11 -3
- package/src/scaffold.js +87 -11
- package/src/upgrade.js +9 -3
- package/bundled/dev-pipeline/SCHEMA_ANALYSIS.md +0 -53
- package/bundled/dev-pipeline/scripts/generate-refactor-prompt.py +0 -649
- package/bundled/dev-pipeline/scripts/init-refactor-pipeline.py +0 -463
- package/bundled/dev-pipeline/scripts/update-refactor-status.py +0 -1512
- package/bundled/dev-pipeline/templates/refactor-bootstrap-prompt.md +0 -240
- package/bundled/dev-pipeline/templates/refactor-list-schema.json +0 -266
- package/bundled/dev-pipeline/templates/sections/refactor-critical-paths.md +0 -15
- package/bundled/dev-pipeline/templates/sections/refactor-mission.md +0 -9
- package/bundled/dev-pipeline/templates/sections/refactor-phase-commit-report.md +0 -24
- package/bundled/dev-pipeline/templates/sections/refactor-phase-implement.md +0 -16
- package/bundled/dev-pipeline/templates/sections/refactor-phase-init.md +0 -9
- package/bundled/dev-pipeline/templates/sections/refactor-phase-plan.md +0 -22
- package/bundled/dev-pipeline/templates/sections/refactor-phase-review.md +0 -19
- package/bundled/dev-pipeline/templates/sections/refactor-phase-test.md +0 -24
- package/bundled/dev-pipeline/templates/sections/refactor-reminders.md +0 -12
- package/bundled/dev-pipeline/templates/sections/refactor-session-context.md +0 -6
- package/bundled/dev-pipeline/templates/sections/refactor-task-contract.md +0 -52
- package/bundled/dev-pipeline/tests/test_generate_refactor_prompt.py +0 -478
- package/bundled/skills/feature-planner/assets/evaluation-guide.md +0 -44
- package/bundled/skills/refactor-pipeline-launcher/SKILL.md +0 -219
- package/bundled/skills/refactor-pipeline-launcher/references/configuration.md +0 -78
- package/bundled/skills/refactor-planner/SKILL.md +0 -467
- package/bundled/skills/refactor-planner/assets/planning-guide.md +0 -291
- package/bundled/skills/refactor-planner/references/behavior-preservation.md +0 -187
- package/bundled/skills/refactor-planner/references/error-recovery.md +0 -45
- package/bundled/skills/refactor-planner/references/fast-path.md +0 -59
- package/bundled/skills/refactor-planner/references/generated-plan-review.md +0 -107
- package/bundled/skills/refactor-planner/references/planning-phases.md +0 -172
- package/bundled/skills/refactor-planner/references/refactor-scoping-guide.md +0 -230
- package/bundled/skills/refactor-planner/scripts/validate-and-generate-refactor.py +0 -1120
- package/bundled/skills/refactor-workflow/SKILL.md +0 -205
|
@@ -103,3 +103,17 @@ Once all criteria are met:
|
|
|
103
103
|
- Bad: `[ ] 首期采用通用电商方图;.agents/brainstorm/design.md — inspect accepted risks` because the brief breaks when the planning note is deleted.
|
|
104
104
|
- Good: state the accepted dimensions, deferred platform templates, and accepted risks directly in the brief, with no brainstorm-file path.
|
|
105
105
|
|
|
106
|
+
## Durable App Context Contract Reference
|
|
107
|
+
|
|
108
|
+
Every new or changed project brief line, convention, infrastructure decision, architecture decision, and rule must be understandable by a fresh AI session that has never seen the planning conversation. Record the actual selected product or technical decision, not conversational answer tokens.
|
|
109
|
+
|
|
110
|
+
### Artifact-Wide AI Readability & Normalization
|
|
111
|
+
|
|
112
|
+
- Every generated natural-language value (briefs/drafts, resolved project instruction files, conventions, infrastructure, architecture decisions, generated layer rules, appendices, comments, brainstorm summaries, quoted evidence, parentheticals) must be a standalone domain statement (machine IDs/enums/timestamps exempt).
|
|
113
|
+
- Never emit dialogue-role or chronology labels (`user said`, `user answered`, `original request`, `this round`, `previous discussion`, `as discussed earlier`, `用户本轮回答`, `如前面讨论`), planning question IDs, answer tokens, recommendation markers, checkpoint provenance, or raw internal answer-map entries. Quotes are allowed only as independently intelligible source evidence.
|
|
114
|
+
- Never persist standalone option labels (`A`, `B`, `C`, `方案A`, `方案B`) or transcript annotations (`(original response: "...")`). Expand selected options into complete decision meaning at matching detail, and retain an exact excerpt only when wording is independently intelligible and materially useful.
|
|
115
|
+
- Resolve `上面`, `这个`, `按推荐走`, `同前`, `继续这样`, `用刚才的方案`, `same as above`, `go with your recommendation` only when there is one provable antecedent; otherwise ask the user for clarification rather than guessing.
|
|
116
|
+
- Treat `所有问题都按你的推荐处理`, `全部按照推荐`, `use all recommendations`, and equivalent blanket recommendation approval as conversational authorization: apply concrete accepted defaults and omit the blanket approval. Preserve rejected alternatives only as necessary non-goals or compatibility boundaries.
|
|
117
|
+
- Purpose-tag every retained stable code/config/interface/URL reference (`src/auth/ — inspect identity-provider and session ownership`; this applies to paths and URLs in all app-planning artifacts). Never retain transient non-code planning paths (`.agents/brainstorm/*.md`, uploads, screenshots, ad-hoc logs) — copy or normalize the task-relevant content inline so the artifact must not depend on that source file still existing. For large materials, record purpose, preserve only task-relevant exact excerpts, and embed complete large materials only when the execution session cannot access the source and all content is genuinely required; preserve detailed user requirements at matching detail.
|
|
118
|
+
- Bad: `方案B`, `(original response: "方案B")`, `全部按照推荐`, `follow this`. Good: `Authentication uses organization-scoped OAuth with server-side sessions`, `Deployment target: managed container service with PostgreSQL in the same region`.
|
|
119
|
+
|
|
@@ -35,23 +35,21 @@ First, show "Already decided" conventions as text:
|
|
|
35
35
|
> - [convention]: [value] (source: [where you found it])
|
|
36
36
|
> - [convention]: [value] (source: [where you found it])
|
|
37
37
|
|
|
38
|
-
Then use `AskUserQuestion` for conventions
|
|
38
|
+
Then use `AskUserQuestion` for consequential project-level conventions not already established by the codebase (up to 4 questions per call, focusing on choices that materially affect consistency, compatibility, safety, or multi-contributor conventions). Record low-risk, local, reversible defaults as disclosed assumptions instead of interrogating every detail. Each question:
|
|
39
39
|
- Question text includes the convention name AND why it matters for this project
|
|
40
40
|
- Options are the reasonable choices (2-4 per question)
|
|
41
41
|
- Mark the recommended option first with "(Recommended)" in its label
|
|
42
42
|
- Use `description` field to explain trade-offs
|
|
43
43
|
|
|
44
|
-
After each batch of `AskUserQuestion` calls, reassess
|
|
45
|
-
|
|
46
|
-
Then ask in text: "Anything I missed that you'd like to standardize?" — if the user adds more, continue the discovery loop.
|
|
44
|
+
After each batch of `AskUserQuestion` calls, reassess whether any consequential project-level convention remains unresolved. Stop once consequential conventions are settled and ask one final check in text: `"Anything I missed that you'd like to standardize?"` — if the user adds more, clarify only those additions and proceed.
|
|
47
45
|
|
|
48
46
|
## Rules
|
|
49
47
|
|
|
50
|
-
- **
|
|
48
|
+
- **Clarify by impact**: keep asking until consequential project-level conventions are resolved, but do not invent unnecessary questions when codebase evidence or safe reversible defaults suffice.
|
|
51
49
|
- Every proposed convention must be justified by something you observed in the project — explain WHY it matters
|
|
52
50
|
- Auto-confirm anything already evident from the codebase (show as "detected", let user override)
|
|
53
51
|
- Propose as many conventions as the project genuinely needs, but don't pad with irrelevant ones
|
|
54
|
-
-
|
|
52
|
+
- If the user adds items after `"Anything I missed that you'd like to standardize?"`, ask focused `AskUserQuestion` calls to clarify those additions before writing
|
|
55
53
|
|
|
56
54
|
## After Discovery
|
|
57
55
|
|
|
@@ -45,9 +45,8 @@ Before ANY planning work, check if AI-essential project context files exist:
|
|
|
45
45
|
Do NOT ask the user to describe their project — read it yourself first:
|
|
46
46
|
|
|
47
47
|
1. **Scan project structure** to understand the codebase layout:
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
```
|
|
48
|
+
- Use the current host's available directory-listing or file-search capability to inspect at most two directory levels under the project root.
|
|
49
|
+
- Exclude `.git/`, `node_modules/`, `dist/`, `build/`, `__pycache__/`, `vendor/`, `.prizmkit/`, and installed platform directories (`.claude/`, `.agents/`, `.codebuddy/`, `.codex/`, `.cursor/`, `.pi/`) before analysis, while preserving parent/child directory relationships without requiring a POSIX shell pipeline.
|
|
51
50
|
|
|
52
51
|
2. **Read existing project metadata** to infer tech stack and purpose:
|
|
53
52
|
- `package.json` -> name, description, dependencies, scripts
|
|
@@ -45,8 +45,7 @@ Do not use this workflow when:
|
|
|
45
45
|
- The user already chose the direct single-requirement lifecycle -> enter it independently.
|
|
46
46
|
- The user only wants to collect, append, validate, or summarize bugs -> use `bug-planner`.
|
|
47
47
|
- The user only wants a runtime command for an existing bug list -> use `bugfix-pipeline-launcher`.
|
|
48
|
-
- The user wants feature development -> use `feature-workflow`.
|
|
49
|
-
- The user wants behavior-preserving restructuring -> use `refactor-workflow`.
|
|
48
|
+
- The user wants feature development or refactoring -> use `feature-workflow`.
|
|
50
49
|
|
|
51
50
|
## Input Sources
|
|
52
51
|
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
# Bug Diagnosis — Question Framework
|
|
2
2
|
|
|
3
|
-
Procedural details for
|
|
3
|
+
Procedural details for lightweight bug clarification in `bug-fix-workflow` (`## Route Selection` → `### Step 1: Diagnose enough to classify`).
|
|
4
4
|
|
|
5
|
-
##
|
|
5
|
+
## Lightweight Bug Clarification
|
|
6
6
|
|
|
7
|
-
Ask questions across these dimensions
|
|
7
|
+
Ask only the missing route-relevant questions across these dimensions, and stop once a route can be chosen. **Adapt to what the user has already provided** — skip questions that are already answered or belong to downstream deep planning/root-cause proof.
|
|
8
8
|
|
|
9
9
|
### Reproduction Conditions
|
|
10
10
|
- What exact steps trigger the bug? (step-by-step)
|
|
@@ -35,7 +35,4 @@ Ask questions across these dimensions until every aspect is clear. **Adapt to wh
|
|
|
35
35
|
- Server-side logs?
|
|
36
36
|
- Network request/response details?
|
|
37
37
|
|
|
38
|
-
>
|
|
39
|
-
> background pipeline live in the skill body (§Step 1.4 and §Comparison with
|
|
40
|
-
> Pipeline Bug Fix) — they are flow-control decisions, kept here only by pointer
|
|
41
|
-
> to avoid drift.
|
|
38
|
+
> Route selection (Direct Path vs Pipeline Path) and the two independent execution paths live in the skill body (`## Route Selection` and `## Execution Topology`) — they are flow-control decisions, kept here only by pointer to avoid drift.
|