@xenonbyte/da-vinci-workflow 0.2.4 → 0.2.6
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/CHANGELOG.md +35 -0
- package/README.md +15 -9
- package/README.zh-CN.md +16 -9
- package/SKILL.md +45 -704
- package/docs/dv-command-reference.md +33 -5
- package/docs/execution-chain-migration.md +14 -3
- package/docs/maintainer-bootstrap.md +102 -0
- package/docs/pencil-rendering-workflow.md +1 -1
- package/docs/prompt-entrypoints.md +1 -0
- package/docs/skill-contract-maintenance.md +14 -0
- package/docs/skill-usage.md +31 -0
- package/docs/workflow-overview.md +40 -5
- package/docs/zh-CN/dv-command-reference.md +31 -5
- package/docs/zh-CN/maintainer-bootstrap.md +101 -0
- package/docs/zh-CN/pencil-rendering-workflow.md +1 -1
- package/docs/zh-CN/prompt-entrypoints.md +1 -0
- package/docs/zh-CN/skill-usage.md +30 -0
- package/docs/zh-CN/workflow-overview.md +38 -5
- package/lib/audit.js +19 -0
- package/lib/cli/helpers.js +104 -0
- package/lib/cli/lint-family.js +56 -0
- package/lib/cli/verify-family.js +79 -0
- package/lib/cli.js +143 -172
- package/lib/gate-utils.js +56 -0
- package/lib/install.js +134 -6
- package/lib/lint-bindings.js +41 -28
- package/lib/lint-spec.js +403 -109
- package/lib/lint-tasks.js +571 -21
- package/lib/maintainer-readiness.js +317 -0
- package/lib/planning-parsers.js +198 -2
- package/lib/planning-quality-utils.js +81 -0
- package/lib/planning-signal-freshness.js +205 -0
- package/lib/scaffold.js +454 -23
- package/lib/scope-check.js +751 -82
- package/lib/sidecars.js +396 -1
- package/lib/task-review.js +2 -1
- package/lib/utils.js +34 -0
- package/lib/verify.js +1160 -88
- package/lib/workflow-persisted-state.js +52 -32
- package/lib/workflow-state.js +1187 -249
- package/package.json +1 -1
- package/references/skill-workflow-detail.md +66 -0
package/package.json
CHANGED
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
# Skill Workflow Detail (Stage-Specific)
|
|
2
|
+
|
|
3
|
+
This file owns stage-specific operational detail moved out of core `SKILL.md`.
|
|
4
|
+
Core `SKILL.md` remains the invariant contract and routing index.
|
|
5
|
+
|
|
6
|
+
## Split Non-Goals
|
|
7
|
+
|
|
8
|
+
- Do not change route truth (`requirements -> design -> tasks -> build -> verify`) by moving prose.
|
|
9
|
+
- Do not weaken autonomous-by-default policy.
|
|
10
|
+
- Do not redefine checkpoints or acceptance semantics implicitly through wording changes.
|
|
11
|
+
- Do not duplicate moved sections back into `SKILL.md`, command assets, and references simultaneously.
|
|
12
|
+
|
|
13
|
+
## Move Map
|
|
14
|
+
|
|
15
|
+
The following sections were moved from core `SKILL.md` into owned references:
|
|
16
|
+
|
|
17
|
+
- `Design Input Collection` -> `references/design-inputs.md`
|
|
18
|
+
- `Default Workflow` -> `references/checkpoints.md` and `references/artifact-templates.md`
|
|
19
|
+
- `Pencil Generation Rules` -> `references/pencil-design-to-code.md` and `references/layout-hygiene.md`
|
|
20
|
+
- `Default Artifacts` -> `references/artifact-templates.md`
|
|
21
|
+
- `Prompt Entry Route Recipes` (detailed variants) -> `references/prompt-recipes.md`
|
|
22
|
+
- `Mode-specific elaboration` -> `references/modes.md`
|
|
23
|
+
- `Platform adapter elaboration` -> `references/platform-adapters.md`
|
|
24
|
+
|
|
25
|
+
## Stage Detail Ownership
|
|
26
|
+
|
|
27
|
+
Use this section when the current stage needs tactical instructions beyond core contract.
|
|
28
|
+
|
|
29
|
+
### 1. Discovery & Planning
|
|
30
|
+
|
|
31
|
+
- Ensure change root exists and active change id is unambiguous.
|
|
32
|
+
- Keep proposal/spec/design/tasks artifacts synchronized with the selected mode.
|
|
33
|
+
- Treat artifact drift as a blocker for execution confidence.
|
|
34
|
+
|
|
35
|
+
### 2. Design Inputs & Page Mapping
|
|
36
|
+
|
|
37
|
+
- Collect/confirm form factor, visual direction, and constraints from existing project truth first.
|
|
38
|
+
- Resolve project page map and implementation-to-design bindings before design expansion.
|
|
39
|
+
- Keep binding records explicit and parseable for downstream verification/scaffold commands.
|
|
40
|
+
|
|
41
|
+
### 3. Pencil Design Execution
|
|
42
|
+
|
|
43
|
+
- Keep `.da-vinci/designs/` reserved for project-local `.pen` sources.
|
|
44
|
+
- Use Pencil session wrapper commands for autonomous runs:
|
|
45
|
+
- `da-vinci pencil-session begin --project <project-path> --pen <path>`
|
|
46
|
+
- `da-vinci pencil-session persist --project <project-path> --pen <path> --nodes-file <batch-get-json> --variables-file <get-variables-json> --version <version>`
|
|
47
|
+
- `da-vinci pencil-session end --project <project-path> --pen <path> --nodes-file <batch-get-json> --variables-file <get-variables-json> --version <version>`
|
|
48
|
+
- Keep screenshot review and supervisor review records explicit when required.
|
|
49
|
+
|
|
50
|
+
### 4. Build & Verification
|
|
51
|
+
|
|
52
|
+
- `tasks.md` PASS/accepted WARN is the handoff into implementation, not completion.
|
|
53
|
+
- During build, persist task execution and task review evidence with CLI envelopes.
|
|
54
|
+
- Before completion-facing wording, require fresh verification evidence and completion audit pass.
|
|
55
|
+
|
|
56
|
+
### 5. Scaffold Guidance
|
|
57
|
+
|
|
58
|
+
- Scaffold output is reviewable TODO skeleton only, never final production code.
|
|
59
|
+
- Keep traversal and output-root safety guarantees intact.
|
|
60
|
+
- Preserve known implementation landing shape when available.
|
|
61
|
+
|
|
62
|
+
## Maintainer Guidance
|
|
63
|
+
|
|
64
|
+
- New invariant policy belongs in core `SKILL.md`.
|
|
65
|
+
- New stage-specific procedure belongs in one owned reference file, then linked from core `Load References On Demand`.
|
|
66
|
+
- When moving text, update this move map in the same patch.
|