@xenonbyte/da-vinci-workflow 0.1.26 → 0.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (45) hide show
  1. package/CHANGELOG.md +31 -0
  2. package/README.md +28 -65
  3. package/README.zh-CN.md +28 -65
  4. package/bin/da-vinci-tui.js +8 -0
  5. package/commands/claude/dv/continue.md +5 -0
  6. package/commands/codex/prompts/dv-continue.md +6 -1
  7. package/commands/gemini/dv/continue.toml +5 -0
  8. package/commands/templates/dv-continue.shared.md +33 -0
  9. package/docs/dv-command-reference.md +35 -0
  10. package/docs/execution-chain-migration.md +46 -0
  11. package/docs/execution-chain-plan.md +125 -0
  12. package/docs/prompt-entrypoints.md +8 -0
  13. package/docs/skill-usage.md +217 -0
  14. package/docs/workflow-examples.md +10 -0
  15. package/docs/workflow-overview.md +26 -0
  16. package/docs/zh-CN/dv-command-reference.md +35 -0
  17. package/docs/zh-CN/execution-chain-migration.md +46 -0
  18. package/docs/zh-CN/prompt-entrypoints.md +8 -0
  19. package/docs/zh-CN/skill-usage.md +217 -0
  20. package/docs/zh-CN/workflow-examples.md +10 -0
  21. package/docs/zh-CN/workflow-overview.md +26 -0
  22. package/lib/artifact-parsers.js +120 -0
  23. package/lib/audit.js +61 -0
  24. package/lib/cli.js +351 -13
  25. package/lib/diff-spec.js +242 -0
  26. package/lib/execution-signals.js +136 -0
  27. package/lib/lint-bindings.js +143 -0
  28. package/lib/lint-spec.js +408 -0
  29. package/lib/lint-tasks.js +176 -0
  30. package/lib/planning-parsers.js +567 -0
  31. package/lib/scaffold.js +193 -0
  32. package/lib/scope-check.js +603 -0
  33. package/lib/sidecars.js +369 -0
  34. package/lib/supervisor-review.js +28 -3
  35. package/lib/utils.js +10 -2
  36. package/lib/verify.js +652 -0
  37. package/lib/workflow-contract.js +107 -0
  38. package/lib/workflow-persisted-state.js +297 -0
  39. package/lib/workflow-state.js +785 -0
  40. package/package.json +13 -3
  41. package/references/artifact-templates.md +26 -0
  42. package/references/checkpoints.md +14 -0
  43. package/references/modes.md +10 -0
  44. package/tui/catalog.js +1190 -0
  45. package/tui/index.js +727 -0
package/package.json CHANGED
@@ -1,10 +1,11 @@
1
1
  {
2
2
  "name": "@xenonbyte/da-vinci-workflow",
3
- "version": "0.1.26",
3
+ "version": "0.2.2",
4
4
  "description": "Requirement-to-design-to-code workflow skill for Codex, Claude, and Gemini",
5
5
  "bin": {
6
6
  "da-vinci": "bin/da-vinci.js",
7
- "design-supervisor": "bin/design-supervisor.js"
7
+ "design-supervisor": "bin/design-supervisor.js",
8
+ "da-vinci-tui": "bin/da-vinci-tui.js"
8
9
  },
9
10
  "files": [
10
11
  "SKILL.md",
@@ -18,6 +19,7 @@
18
19
  "examples",
19
20
  "bin",
20
21
  "lib",
22
+ "tui",
21
23
  "scripts/postinstall.js",
22
24
  "scripts/validate-assets.js"
23
25
  ],
@@ -43,11 +45,19 @@
43
45
  "test:icon-aliases": "node scripts/test-icon-aliases.js",
44
46
  "test:supervisor-review-cli": "node scripts/test-supervisor-review-cli.js",
45
47
  "test:supervisor-review-integration": "node scripts/test-supervisor-review-integration.js",
48
+ "test:command-assets": "node scripts/test-command-asset-generation.js",
49
+ "test:lint-planning": "node scripts/test-lint-planning.js",
50
+ "test:sidecars-diff": "node scripts/test-sidecars-diff.js",
51
+ "test:verify-scaffold": "node scripts/test-verify-scaffold.js",
52
+ "test:audit-execution-signals": "node scripts/test-audit-execution-signals.js",
53
+ "test:workflow-persisted-state": "node scripts/test-workflow-persisted-state.js",
46
54
  "test:install": "node scripts/test-install.js",
47
55
  "test:package-contents": "node scripts/test-package-contents.js",
48
56
  "quality:ci:core": "npm run test",
57
+ "quality:ci:contracts": "npm run test:mode-consistency && npm run test:command-assets",
58
+ "quality:ci:e2e": "npm run test:lint-planning && npm run test:sidecars-diff && npm run test:verify-scaffold && npm run test:workflow-persisted-state && npm run test:audit-execution-signals",
49
59
  "quality:reviewer-bridge-smoke": "npm run test:supervisor-review-integration",
50
- "quality:ci": "npm run quality:ci:core"
60
+ "quality:ci": "npm run quality:ci:core && npm run quality:ci:contracts && npm run quality:ci:e2e"
51
61
  },
52
62
  "engines": {
53
63
  "node": ">=18"
@@ -678,6 +678,12 @@ Use this structure:
678
678
  - [ ] Check requirement coverage
679
679
  - [ ] Check Pencil coverage
680
680
 
681
+ ## Metadata Hints (Machine-readable)
682
+ - Spec slice: `<slice-id>`
683
+ - Binding links: `<implementation-page> -> <pencil-page>`
684
+ - Code areas: `<repo path or module>`
685
+ - Verification intent: `<verify-bindings|verify-implementation|verify-structure|verify-coverage>`
686
+
681
687
  ## Context Delta
682
688
  - Add concise checkpoint-adjacent entries when `task checkpoint` or execution planning decisions change
683
689
  - Required fields: `time`, `checkpoint_type`, `goal`, `decision`, `constraints`, `impact`, `status`, `next_action`
@@ -690,6 +696,12 @@ Use this structure:
690
696
 
691
697
  Prefer top-level task groups. They are required for execution checkpoints.
692
698
 
699
+ Additional guidance:
700
+
701
+ - keep top-level task groups in `X. Title` form to support task-group execution metadata
702
+ - include explicit verification actions so `lint-tasks` and `verify-coverage` can consume intent deterministically
703
+ - keep task text concrete enough that coverage tools can map behavior and state work
704
+
693
705
  Recommended path:
694
706
 
695
707
  - `.da-vinci/changes/<change-id>/tasks.md`
@@ -712,6 +724,12 @@ Use this structure:
712
724
  ## Shared Bindings
713
725
  - shared layout or component -> Pencil region
714
726
 
727
+ ## Machine-readable Hints
728
+ - source path: `.da-vinci/designs/<name>.pen`
729
+ - binding row shape: `<implementation> -> <source> -> <pencil page> (<screen-id>)`
730
+ - missing implementation state: annotate in `## Notes` with `missing implementation`
731
+ - missing design-source state: annotate in `## Notes` with `missing design source`
732
+
715
733
  ## Notes
716
734
  - intentional deviations
717
735
  - pages without Pencil coverage yet
@@ -754,6 +772,14 @@ Use this structure:
754
772
  - PASS / WARN / BLOCK
755
773
  - Next action
756
774
 
775
+ ## Structure Coverage
776
+ - mapped design hierarchy evidence
777
+ - heuristic fallback flag and confidence
778
+
779
+ ## Test Coverage
780
+ - explicit test evidence summary
781
+ - open gaps
782
+
757
783
  ## Context Delta
758
784
  - Add concise entries after each `execution checkpoint`
759
785
  - Required fields: `time`, `checkpoint_type`, `goal`, `decision`, `constraints`, `impact`, `status`, `next_action`
@@ -32,6 +32,20 @@ Context-delta rule:
32
32
  - when an artifact should opt in without those headings, add `- Context Delta Required: true` (accepted truthy values: `true`, `yes`, `on`, `1`)
33
33
  - when `supersedes` references parseable timestamps in different textual formats, treat them as the same point-in-time reference
34
34
 
35
+ Execution-chain enforcement defaults:
36
+
37
+ - planning lint surfaces (`lint-spec`, `scope-check`, `lint-tasks`, `lint-bindings`) are advisory by default
38
+ - explicit `--strict` upgrades planning warnings to blocking command exits
39
+ - verification surfaces (`verify-bindings`, `verify-implementation`, `verify-structure`, `verify-coverage`) are completion-critical; blocking findings should prevent completion
40
+ - integrity audit consumes planning-signal `BLOCK` as warning-level advisory evidence
41
+ - completion audit consumes verification-signal `BLOCK` as failure-level evidence
42
+
43
+ Persisted-state fallback rule:
44
+
45
+ - `workflow-status` may consume persisted `.da-vinci/state/workflow.json` only when fingerprint and freshness checks pass
46
+ - when persisted state conflicts with artifact truth, fallback to derived state and record reconciliation notes
47
+ - task-group execution metadata should be derived from `tasks.md` and refreshed into `.da-vinci/state/task-groups/<change-id>.json`
48
+
35
49
  ## Visual Contract Rule
36
50
 
37
51
  Before broad Pencil page generation:
@@ -123,3 +123,13 @@ Best for:
123
123
  - new feature pages
124
124
  - changing existing pages
125
125
  - scoped UX or workflow changes
126
+
127
+ ## Execution-Chain Tooling Across Modes
128
+
129
+ For all modes, use the same planning/verification surfaces:
130
+
131
+ - planning lint: `lint-spec`, `scope-check`, `lint-tasks`, `lint-bindings`
132
+ - deterministic sidecars: `generate-sidecars` (`spec.index.json`, `tasks.index.json`, `page-map.index.json`, `bindings.index.json`)
133
+ - verification: `verify-bindings`, `verify-implementation`, `verify-structure`, `verify-coverage`
134
+ - planning diff: `diff-spec`
135
+ - workflow routing: `workflow-status`, `next-step` (prompt-first `continue` consumes these first)