@xenonbyte/da-vinci-workflow 0.2.2 → 0.2.3
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 +15 -0
- package/README.md +24 -14
- package/README.zh-CN.md +25 -14
- package/commands/claude/dv/breakdown.md +8 -0
- package/commands/claude/dv/build.md +11 -0
- package/commands/claude/dv/design.md +5 -2
- package/commands/claude/dv/tasks.md +8 -0
- package/commands/claude/dv/verify.md +9 -0
- package/commands/codex/prompts/dv-breakdown.md +8 -0
- package/commands/codex/prompts/dv-build.md +11 -0
- package/commands/codex/prompts/dv-design.md +5 -2
- package/commands/codex/prompts/dv-tasks.md +8 -0
- package/commands/codex/prompts/dv-verify.md +8 -0
- package/commands/gemini/dv/breakdown.toml +8 -0
- package/commands/gemini/dv/build.toml +11 -0
- package/commands/gemini/dv/design.toml +5 -2
- package/commands/gemini/dv/tasks.toml +8 -0
- package/commands/gemini/dv/verify.toml +8 -0
- package/docs/dv-command-reference.md +43 -0
- package/docs/execution-chain-plan.md +10 -3
- package/docs/mode-use-cases.md +2 -1
- package/docs/pencil-rendering-workflow.md +15 -12
- package/docs/prompt-presets/README.md +1 -1
- package/docs/prompt-presets/desktop-app.md +3 -3
- package/docs/prompt-presets/mobile-app.md +3 -3
- package/docs/prompt-presets/tablet-app.md +3 -3
- package/docs/prompt-presets/web-app.md +3 -3
- package/docs/skill-usage.md +45 -38
- package/docs/workflow-examples.md +16 -13
- package/docs/workflow-overview.md +2 -0
- package/docs/zh-CN/dv-command-reference.md +43 -0
- package/docs/zh-CN/mode-use-cases.md +2 -1
- package/docs/zh-CN/pencil-rendering-workflow.md +15 -12
- package/docs/zh-CN/prompt-presets/README.md +1 -1
- package/docs/zh-CN/prompt-presets/desktop-app.md +3 -3
- package/docs/zh-CN/prompt-presets/mobile-app.md +3 -3
- package/docs/zh-CN/prompt-presets/tablet-app.md +3 -3
- package/docs/zh-CN/prompt-presets/web-app.md +3 -3
- package/docs/zh-CN/skill-usage.md +45 -38
- package/docs/zh-CN/workflow-examples.md +15 -13
- package/docs/zh-CN/workflow-overview.md +2 -0
- package/examples/greenfield-spec-markupflow/.da-vinci/state/execution-signals/demo__lint-tasks.json +16 -0
- package/lib/audit-parsers.js +18 -9
- package/lib/audit.js +3 -26
- package/lib/cli.js +50 -1
- package/lib/design-source-registry.js +146 -0
- package/lib/save-current-design.js +790 -0
- package/lib/supervisor-review.js +1 -1
- package/lib/workflow-bootstrap.js +2 -13
- package/lib/workflow-persisted-state.js +3 -1
- package/lib/workflow-state.js +51 -3
- package/package.json +1 -1
- package/tui/catalog.js +103 -0
- package/tui/index.js +2274 -418
|
@@ -21,7 +21,7 @@ Recommended flow:
|
|
|
21
21
|
4. copy both into your workflow setup
|
|
22
22
|
5. tighten the prompt further only when the project has unusual truth sources or platform constraints
|
|
23
23
|
6. when Pencil MCP is active, prefer the redesign prompts that explicitly require an MCP runtime gate plus a completion audit before terminal completion claims
|
|
24
|
-
7. for project-local `.pen` persistence on autonomous runs, require prompts that drive `da-vinci pencil-session begin /
|
|
24
|
+
7. for project-local `.pen` persistence on autonomous runs, require prompts that drive `da-vinci pencil-session begin / save-current-design / end`; treat `saved`, `blocked`, and `unavailable` as distinct outcomes, and only fall back to lower-level payload persistence when high-level save is unavailable
|
|
25
25
|
|
|
26
26
|
Available presets:
|
|
27
27
|
|
|
@@ -120,7 +120,7 @@ Before non-trivial `batch_design` calls, preflight the Pencil operations when sh
|
|
|
120
120
|
If the same anchor surface rolls back twice, switch to micro-batches of 6 or fewer operations until a clean schema-safe pass succeeds.
|
|
121
121
|
Run `da-vinci audit --mode integrity <project-path>` after the first successful Pencil write before broad expansion continues.
|
|
122
122
|
If Pencil MCP is active, run the MCP runtime gate after the first successful Pencil write and record it in `pencil-design.md`.
|
|
123
|
-
Require `da-vinci pencil-session begin --project <project-path> --pen <path>` before the first Pencil edit, then use `da-vinci
|
|
123
|
+
Require `da-vinci pencil-session begin --project <project-path> --pen <path>` before the first Pencil edit, then use `da-vinci save-current-design --project <project-path>` after material live edits. Treat `saved`, `blocked`, and `unavailable` as distinct outcomes; fall back to `pencil-session persist --nodes-file/--variables-file` only when the high-level save bridge is unavailable.
|
|
124
124
|
Write exported screenshots under `.da-vinci/changes/<change-id>/exports/` only.
|
|
125
125
|
Record screenshot review with explicit `PASS` / `WARN` / `BLOCK`, issue list, and revision outcome; "looks good" is not enough.
|
|
126
126
|
If `DA-VINCI.md` configures `Design-supervisor reviewers`, run `design-supervisor review` after screenshot review, layout hygiene, and design checkpoint, using screenshots plus Pencil variables and the design theses as inputs. If `Require Supervisor Review: true`, treat missing, blocked, or unaccepted review results as blocking before broad expansion or terminal completion.
|
|
@@ -156,7 +156,7 @@ Design 1-3 anchor surfaces first, review screenshots, then expand.
|
|
|
156
156
|
For each anchor surface, explain how the new composition differs structurally from the current layout and whether it is primarily HTML-referenced, partially HTML-referenced, or inferred.
|
|
157
157
|
|
|
158
158
|
Before non-trivial `batch_design` calls, preflight the Pencil operations when shell access is available.
|
|
159
|
-
Require `da-vinci pencil-session begin --project <project-path> --pen <path>` before the first Pencil edit, then use `da-vinci
|
|
159
|
+
Require `da-vinci pencil-session begin --project <project-path> --pen <path>` before the first Pencil edit, then use `da-vinci save-current-design --project <project-path>` after material live edits. Treat `saved`, `blocked`, and `unavailable` as distinct outcomes.
|
|
160
160
|
Run the MCP runtime gate after the first successful Pencil write and record it in `pencil-design.md`.
|
|
161
161
|
Before reporting `design complete` or `workflow complete`, require both the MCP runtime gate and `da-vinci audit --mode completion --change <change-id> <project-path>` to pass.
|
|
162
162
|
Persist project-local Pencil files under .da-vinci/designs/.
|
|
@@ -191,7 +191,7 @@ Use the existing Da Vinci artifacts in this project.
|
|
|
191
191
|
Do not restart discovery unless an artifact is missing or clearly wrong.
|
|
192
192
|
Determine continuation routing from current artifact and checkpoint truth first, then use contextual checkpoint deltas only as auxiliary recovery notes.
|
|
193
193
|
If a contextual delta conflicts with current artifacts, ignore that delta and record the conflict before continuing.
|
|
194
|
-
Keep the registered project-local Pencil source under .da-vinci/designs/ as the design source of truth. If the resumed session will perform Pencil edits, require `da-vinci pencil-session begin --project <project-path> --pen <path>`, then use `da-vinci
|
|
194
|
+
Keep the registered project-local Pencil source under .da-vinci/designs/ as the design source of truth. If the resumed session will perform Pencil edits, require `da-vinci pencil-session begin --project <project-path> --pen <path>`, then use `da-vinci save-current-design --project <project-path>` after material live edits. Treat `saved`, `blocked`, and `unavailable` as distinct outcomes; only fall back to lower-level payload persistence when the high-level save bridge is unavailable.
|
|
195
195
|
If the redesign is complex, continue from the approved anchor surfaces instead of restarting broad scaffolding.
|
|
196
196
|
If Pencil MCP is active and this session performs new Pencil writes, rerun the MCP runtime gate and record the refreshed result in `pencil-design.md`.
|
|
197
197
|
Before reporting `design complete` or `workflow complete`, require both the MCP runtime gate and `da-vinci audit --mode completion --change <change-id> <project-path>` to pass.
|
|
@@ -126,7 +126,7 @@ Use only Pencil-supported properties; do not use web-only props like flex or mar
|
|
|
126
126
|
Verify the registered project-local `.pen` file exists as a shell-visible file after the first Pencil write.
|
|
127
127
|
Run `da-vinci audit --mode integrity <project-path>` after that first successful Pencil write before broad expansion continues.
|
|
128
128
|
If Pencil MCP is active, run the MCP runtime gate after the first successful Pencil write and record it in `pencil-design.md`.
|
|
129
|
-
Require `da-vinci pencil-session begin --project <project-path> --pen <path>` before the first Pencil edit, then use `da-vinci
|
|
129
|
+
Require `da-vinci pencil-session begin --project <project-path> --pen <path>` before the first Pencil edit, then use `da-vinci save-current-design --project <project-path>` after material live edits. Treat `saved`, `blocked`, and `unavailable` as distinct outcomes; fall back to `pencil-session persist --nodes-file/--variables-file` only when the high-level save bridge is unavailable.
|
|
130
130
|
Keep non-`.pen` workflow artifacts out of `.da-vinci/designs/`.
|
|
131
131
|
Write exported screenshots under `.da-vinci/changes/<change-id>/exports/` only.
|
|
132
132
|
Record screenshot review with explicit `PASS` / `WARN` / `BLOCK`, issue list, and revision outcome; "looks good" is not enough.
|
|
@@ -164,7 +164,7 @@ Design 1-3 anchor surfaces first, review screenshots, then expand.
|
|
|
164
164
|
For each anchor surface, explain how the new composition differs structurally from the current layout and whether it is primarily HTML-referenced, partially HTML-referenced, or inferred.
|
|
165
165
|
|
|
166
166
|
Before non-trivial `batch_design` calls, preflight the Pencil operations when shell access is available.
|
|
167
|
-
Require `da-vinci pencil-session begin --project <project-path> --pen <path>` before the first Pencil edit, then use `da-vinci
|
|
167
|
+
Require `da-vinci pencil-session begin --project <project-path> --pen <path>` before the first Pencil edit, then use `da-vinci save-current-design --project <project-path>` after material live edits. Treat `saved`, `blocked`, and `unavailable` as distinct outcomes.
|
|
168
168
|
Run the MCP runtime gate after the first successful Pencil write and record it in `pencil-design.md`.
|
|
169
169
|
Before reporting `design complete` or `workflow complete`, require both the MCP runtime gate and `da-vinci audit --mode completion --change <change-id> <project-path>` to pass.
|
|
170
170
|
Persist project-local Pencil files under .da-vinci/designs/.
|
|
@@ -199,7 +199,7 @@ Use the existing Da Vinci artifacts in this project.
|
|
|
199
199
|
Do not restart discovery unless an artifact is missing or clearly wrong.
|
|
200
200
|
Determine continuation routing from current artifact and checkpoint truth first, then use contextual checkpoint deltas only as auxiliary recovery notes.
|
|
201
201
|
If a contextual delta conflicts with current artifacts, ignore that delta and record the conflict before continuing.
|
|
202
|
-
Keep the registered project-local Pencil source under .da-vinci/designs/ as the design source of truth. If the resumed session will perform Pencil edits, require `da-vinci pencil-session begin --project <project-path> --pen <path>`, then use `da-vinci
|
|
202
|
+
Keep the registered project-local Pencil source under .da-vinci/designs/ as the design source of truth. If the resumed session will perform Pencil edits, require `da-vinci pencil-session begin --project <project-path> --pen <path>`, then use `da-vinci save-current-design --project <project-path>` after material live edits. Treat `saved`, `blocked`, and `unavailable` as distinct outcomes; only fall back to lower-level payload persistence when the high-level save bridge is unavailable.
|
|
203
203
|
If the redesign is complex, keep the anchor-first flow until the design checkpoint passes.
|
|
204
204
|
If Pencil MCP is active and this session performs new Pencil writes, rerun the MCP runtime gate and record the refreshed result in `pencil-design.md`.
|
|
205
205
|
Before reporting `design complete` or `workflow complete`, require both the MCP runtime gate and `da-vinci audit --mode completion --change <change-id> <project-path>` to pass.
|
|
@@ -120,7 +120,7 @@ Before non-trivial `batch_design` calls, preflight the Pencil operations when sh
|
|
|
120
120
|
If the same anchor surface rolls back twice, switch to micro-batches of 6 or fewer operations until a clean schema-safe pass succeeds.
|
|
121
121
|
Run `da-vinci audit --mode integrity <project-path>` after the first successful Pencil write before broad expansion continues.
|
|
122
122
|
If Pencil MCP is active, run the MCP runtime gate after the first successful Pencil write and record it in `pencil-design.md`.
|
|
123
|
-
Require `da-vinci pencil-session begin --project <project-path> --pen <path>` before the first Pencil edit, then use `da-vinci
|
|
123
|
+
Require `da-vinci pencil-session begin --project <project-path> --pen <path>` before the first Pencil edit, then use `da-vinci save-current-design --project <project-path>` after material live edits. Treat `saved`, `blocked`, and `unavailable` as distinct outcomes; fall back to `pencil-session persist --nodes-file/--variables-file` only when the high-level save bridge is unavailable.
|
|
124
124
|
Write exported screenshots under `.da-vinci/changes/<change-id>/exports/` only.
|
|
125
125
|
Record screenshot review with explicit `PASS` / `WARN` / `BLOCK`, issue list, and revision outcome; "looks good" is not enough.
|
|
126
126
|
If `DA-VINCI.md` configures `Design-supervisor reviewers`, run `design-supervisor review` after screenshot review, layout hygiene, and design checkpoint, using screenshots plus Pencil variables and the design theses as inputs. If `Require Supervisor Review: true`, treat missing, blocked, or unaccepted review results as blocking before broad expansion or terminal completion.
|
|
@@ -156,7 +156,7 @@ Design 1-3 anchor surfaces first, review screenshots, then expand.
|
|
|
156
156
|
For each anchor surface, explain how the new composition differs structurally from the current layout and whether it is primarily HTML-referenced, partially HTML-referenced, or inferred.
|
|
157
157
|
|
|
158
158
|
Before non-trivial `batch_design` calls, preflight the Pencil operations when shell access is available.
|
|
159
|
-
Require `da-vinci pencil-session begin --project <project-path> --pen <path>` before the first Pencil edit, then use `da-vinci
|
|
159
|
+
Require `da-vinci pencil-session begin --project <project-path> --pen <path>` before the first Pencil edit, then use `da-vinci save-current-design --project <project-path>` after material live edits. Treat `saved`, `blocked`, and `unavailable` as distinct outcomes.
|
|
160
160
|
Run the MCP runtime gate after the first successful Pencil write and record it in `pencil-design.md`.
|
|
161
161
|
Before reporting `design complete` or `workflow complete`, require both the MCP runtime gate and `da-vinci audit --mode completion --change <change-id> <project-path>` to pass.
|
|
162
162
|
Persist project-local Pencil files under .da-vinci/designs/.
|
|
@@ -191,7 +191,7 @@ Use the existing Da Vinci artifacts in this project.
|
|
|
191
191
|
Do not restart discovery unless an artifact is missing or clearly wrong.
|
|
192
192
|
Determine continuation routing from current artifact and checkpoint truth first, then use contextual checkpoint deltas only as auxiliary recovery notes.
|
|
193
193
|
If a contextual delta conflicts with current artifacts, ignore that delta and record the conflict before continuing.
|
|
194
|
-
Keep the registered project-local Pencil source under .da-vinci/designs/ as the design source of truth. If the resumed session will perform Pencil edits, require `da-vinci pencil-session begin --project <project-path> --pen <path>`, then use `da-vinci
|
|
194
|
+
Keep the registered project-local Pencil source under .da-vinci/designs/ as the design source of truth. If the resumed session will perform Pencil edits, require `da-vinci pencil-session begin --project <project-path> --pen <path>`, then use `da-vinci save-current-design --project <project-path>` after material live edits. Treat `saved`, `blocked`, and `unavailable` as distinct outcomes; only fall back to lower-level payload persistence when the high-level save bridge is unavailable.
|
|
195
195
|
If the redesign is complex, continue from the approved anchor surfaces instead of restarting broad scaffolding.
|
|
196
196
|
If Pencil MCP is active and this session performs new Pencil writes, rerun the MCP runtime gate and record the refreshed result in `pencil-design.md`.
|
|
197
197
|
Before reporting `design complete` or `workflow complete`, require both the MCP runtime gate and `da-vinci audit --mode completion --change <change-id> <project-path>` to pass.
|
|
@@ -121,7 +121,7 @@ Before non-trivial `batch_design` calls, preflight the Pencil operations when sh
|
|
|
121
121
|
If the same anchor surface rolls back twice, switch to micro-batches of 6 or fewer operations until a clean schema-safe pass succeeds.
|
|
122
122
|
Run `da-vinci audit --mode integrity <project-path>` after the first successful Pencil write before broad expansion continues.
|
|
123
123
|
If Pencil MCP is active, run the MCP runtime gate after the first successful Pencil write and record it in `pencil-design.md`.
|
|
124
|
-
Require `da-vinci pencil-session begin --project <project-path> --pen <path>` before the first Pencil edit, then use `da-vinci
|
|
124
|
+
Require `da-vinci pencil-session begin --project <project-path> --pen <path>` before the first Pencil edit, then use `da-vinci save-current-design --project <project-path>` after material live edits. Treat `saved`, `blocked`, and `unavailable` as distinct outcomes; fall back to `pencil-session persist --nodes-file/--variables-file` only when the high-level save bridge is unavailable.
|
|
125
125
|
Write exported screenshots under `.da-vinci/changes/<change-id>/exports/` only.
|
|
126
126
|
Record screenshot review with explicit `PASS` / `WARN` / `BLOCK`, issue list, and revision outcome; "looks good" is not enough.
|
|
127
127
|
If `DA-VINCI.md` configures `Design-supervisor reviewers`, run `design-supervisor review` after screenshot review, layout hygiene, and design checkpoint, using screenshots plus Pencil variables and the design theses as inputs. If `Require Supervisor Review: true`, treat missing, blocked, or unaccepted review results as blocking before broad expansion or terminal completion.
|
|
@@ -157,7 +157,7 @@ Design 1-3 anchor surfaces first, review screenshots, then expand.
|
|
|
157
157
|
For each anchor surface, explain how the new composition differs structurally from the current layout and whether it is primarily HTML-referenced, partially HTML-referenced, or inferred.
|
|
158
158
|
|
|
159
159
|
Before non-trivial `batch_design` calls, preflight the Pencil operations when shell access is available.
|
|
160
|
-
Require `da-vinci pencil-session begin --project <project-path> --pen <path>` before the first Pencil edit, then use `da-vinci
|
|
160
|
+
Require `da-vinci pencil-session begin --project <project-path> --pen <path>` before the first Pencil edit, then use `da-vinci save-current-design --project <project-path>` after material live edits. Treat `saved`, `blocked`, and `unavailable` as distinct outcomes.
|
|
161
161
|
Run the MCP runtime gate after the first successful Pencil write and record it in `pencil-design.md`.
|
|
162
162
|
Before reporting `design complete` or `workflow complete`, require both the MCP runtime gate and `da-vinci audit --mode completion --change <change-id> <project-path>` to pass.
|
|
163
163
|
Persist project-local Pencil files under .da-vinci/designs/.
|
|
@@ -192,7 +192,7 @@ Use the existing Da Vinci artifacts in this project.
|
|
|
192
192
|
Do not restart discovery unless an artifact is missing or clearly wrong.
|
|
193
193
|
Determine continuation routing from current artifact and checkpoint truth first, then use contextual checkpoint deltas only as auxiliary recovery notes.
|
|
194
194
|
If a contextual delta conflicts with current artifacts, ignore that delta and record the conflict before continuing.
|
|
195
|
-
Keep the registered project-local Pencil source under .da-vinci/designs/ as the design source of truth. If the resumed session will perform Pencil edits, require `da-vinci pencil-session begin --project <project-path> --pen <path>`, then use `da-vinci
|
|
195
|
+
Keep the registered project-local Pencil source under .da-vinci/designs/ as the design source of truth. If the resumed session will perform Pencil edits, require `da-vinci pencil-session begin --project <project-path> --pen <path>`, then use `da-vinci save-current-design --project <project-path>` after material live edits. Treat `saved`, `blocked`, and `unavailable` as distinct outcomes; only fall back to lower-level payload persistence when the high-level save bridge is unavailable.
|
|
196
196
|
If the redesign is complex, continue from the approved anchor surfaces instead of restarting broad scaffolding.
|
|
197
197
|
If Pencil MCP is active and this session performs new Pencil writes, rerun the MCP runtime gate and record the refreshed result in `pencil-design.md`.
|
|
198
198
|
Before reporting `design complete` or `workflow complete`, require both the MCP runtime gate and `da-vinci audit --mode completion --change <change-id> <project-path>` to pass.
|
package/docs/skill-usage.md
CHANGED
|
@@ -146,67 +146,74 @@ npx -p @xenonbyte/da-vinci-workflow da-vinci-tui
|
|
|
146
146
|
|
|
147
147
|
The TUI provides:
|
|
148
148
|
|
|
149
|
-
-
|
|
150
|
-
-
|
|
151
|
-
-
|
|
152
|
-
-
|
|
153
|
-
-
|
|
154
|
-
-
|
|
149
|
+
- a scene-first landing screen with `Install & Uninstall`, `Current Status`, `Switch Work Item`, `Design Ops`, `Pre-Implementation Checks`, `Pre-Acceptance Checks`, and `Settings`
|
|
150
|
+
- guided compound flows for resume, implementation readiness, and completion validation
|
|
151
|
+
- `Design Ops` focuses on practical design operations (`Save Current Design`, `Sync Icon Library`, and `Visual Assist Preset`)
|
|
152
|
+
- `Install & Uninstall` provides three actions: `Status` (show `da-vinci status`), `Install` (install all supported platforms), and `Uninstall` (uninstall all supported platforms)
|
|
153
|
+
- English and Chinese chrome while keeping emitted Visual Assist content in canonical English
|
|
154
|
+
- project/change context in the header with minimal persistent chrome
|
|
155
|
+
- `Settings` keeps only `Language` and `Logs`
|
|
156
|
+
- project-local daily diagnostics under `Settings > Logs` (`.da-vinci/logs/YYYY-MM-DD.ndjson`)
|
|
155
157
|
|
|
156
|
-
### TUI
|
|
158
|
+
### TUI Scene Map
|
|
157
159
|
|
|
158
160
|
```mermaid
|
|
159
161
|
flowchart TD
|
|
160
|
-
A[Launch da-vinci tui] --> B[Set project path and change
|
|
161
|
-
B --> C[
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
D --> I[Verification & Completion<br/>verify-bindings / verify-implementation / verify-structure / verify-coverage / audit]
|
|
169
|
-
D --> J[Setup & Tooling<br/>install / uninstall / status / validate-assets / bootstrap-project]
|
|
170
|
-
|
|
171
|
-
E --> I
|
|
172
|
-
F --> G
|
|
173
|
-
G --> H
|
|
174
|
-
H --> E
|
|
175
|
-
I --> K{Ready to finish?}
|
|
176
|
-
K -->|No| C
|
|
177
|
-
K -->|Yes| L[Completion audit and terminal claim]
|
|
162
|
+
A[Launch da-vinci tui] --> B[Set project path and change context]
|
|
163
|
+
B --> C[Install & Uninstall<br/>status + install-all + uninstall-all]
|
|
164
|
+
B --> D[Current Status<br/>workflow-status + next-step summary]
|
|
165
|
+
B --> E[Switch Work Item<br/>pick an existing change]
|
|
166
|
+
B --> F[Design Ops<br/>icon sync + visual assist preset]
|
|
167
|
+
B --> G[Pre-Implementation Checks<br/>implementation readiness gate]
|
|
168
|
+
B --> H[Pre-Acceptance Checks<br/>verify-* chain]
|
|
169
|
+
B --> I[Settings<br/>language + logs]
|
|
178
170
|
```
|
|
179
171
|
|
|
180
172
|
Use this as the quick mental model:
|
|
181
173
|
|
|
182
|
-
- start from
|
|
183
|
-
-
|
|
184
|
-
-
|
|
185
|
-
- only
|
|
174
|
+
- start from the scene that matches the current operator moment
|
|
175
|
+
- let the scene entrypoints orchestrate the common checks first
|
|
176
|
+
- use `Current Status` when a workflow pauses or the next route is unclear
|
|
177
|
+
- finish only after `Pre-Acceptance Checks` is clear
|
|
178
|
+
|
|
179
|
+
Visual Assist Preset mapping (`Design Ops > Visual Assist Preset`):
|
|
180
|
+
|
|
181
|
+
- `Masterpiece` => `required reviewer signoff`
|
|
182
|
+
- `High Quality` => `advisory reviewer`
|
|
183
|
+
- `Normal` => `adapter-only`
|
|
184
|
+
|
|
185
|
+
Managed Visual Assist behavior:
|
|
186
|
+
|
|
187
|
+
- select platform first, then select one of 3 quality levels
|
|
188
|
+
- write canonical English output from `docs/visual-assist-presets/`
|
|
189
|
+
- replace only `## Visual Assist` in project-root `DA-VINCI.md`
|
|
190
|
+
- preserve unrelated sections and avoid duplicate `## Visual Assist` blocks
|
|
186
191
|
|
|
187
192
|
Main keys:
|
|
188
193
|
|
|
189
194
|
- `Up/Down` or `j/k`: move selection
|
|
190
|
-
- `Enter` or `r`:
|
|
191
|
-
- `
|
|
192
|
-
- `
|
|
195
|
+
- `Enter` or `r`: open selected scene / action
|
|
196
|
+
- `u/d`: page up / page down in long content views
|
|
197
|
+
- `g/G`: jump to top / bottom in long content views
|
|
193
198
|
- `p`: change project path context
|
|
194
199
|
- `c`: change or clear change-id context
|
|
195
200
|
- `l`: toggle English / Chinese
|
|
201
|
+
- `t`: cycle between theme modes when auto-detection is wrong
|
|
196
202
|
- `s`: toggle `--strict`
|
|
197
203
|
- `J`: toggle `--json`
|
|
198
204
|
- `e`: toggle `--continue-on-error`
|
|
199
205
|
- `?`: open help
|
|
200
|
-
- `
|
|
206
|
+
- `Ctrl-C`: emergency exit
|
|
201
207
|
|
|
202
208
|
Recommended TUI usage:
|
|
203
209
|
|
|
204
210
|
1. launch the TUI from the project root
|
|
205
|
-
2.
|
|
206
|
-
3.
|
|
207
|
-
4.
|
|
208
|
-
5.
|
|
209
|
-
6.
|
|
211
|
+
2. pick the workflow scene that matches your current moment
|
|
212
|
+
3. set or confirm project path and change-id in the header
|
|
213
|
+
4. use the scene entrypoints first (`Switch Work Item`, `Pre-Implementation Checks`, `Install & Uninstall`, `Pre-Acceptance Checks`) and use `Current Status` as the direct re-entry summary
|
|
214
|
+
5. use `Design Ops > Visual Assist Preset` to select platform + quality and write managed `Visual Assist` blocks
|
|
215
|
+
6. use `Install & Uninstall > Status` to inspect installation state, or run `Install`/`Uninstall` for all supported platforms in one step
|
|
216
|
+
7. inspect/copy diagnostics from `Settings > Logs` when troubleshooting; keep logs as evidence only, not routing truth
|
|
210
217
|
|
|
211
218
|
## Practical Shortcuts
|
|
212
219
|
|
|
@@ -99,17 +99,19 @@ Expected flow:
|
|
|
99
99
|
11. if the same anchor surface rolls back twice, switch to micro-batches of 6 or fewer operations until a clean schema-safe pass succeeds
|
|
100
100
|
12. require `da-vinci pencil-session begin --project <project-path> --pen <path>` before the first Pencil edit so the registered `.pen` is seeded and the global Pencil lock is held
|
|
101
101
|
13. when external or secondary `.pen` sources exist, run `da-vinci check-pen-baseline --pen <project-pen> --baseline <other-pen>` before the new session write phase; if diverged, sync the chosen source into `<project-pen>` first
|
|
102
|
-
14. during live design work, use `da-vinci
|
|
103
|
-
15.
|
|
104
|
-
16.
|
|
105
|
-
17.
|
|
106
|
-
18. run `
|
|
107
|
-
19.
|
|
108
|
-
20.
|
|
109
|
-
21.
|
|
110
|
-
22.
|
|
111
|
-
23.
|
|
112
|
-
24.
|
|
102
|
+
14. during live design work, use `da-vinci save-current-design --project <project-path>` after material edits, then end with `da-vinci pencil-session end ...`
|
|
103
|
+
15. treat `saved`, `blocked`, and `unavailable` as distinct outcomes; only `saved` means the design source was persisted
|
|
104
|
+
16. if save returns `unavailable`, do not claim success; use the lower-level `pencil-session persist --nodes-file/--variables-file` path only when the high-level bridge is unavailable
|
|
105
|
+
17. verify the registered project-local `.pen` path becomes shell-visible immediately after the first successful Pencil write
|
|
106
|
+
18. run `da-vinci audit --mode integrity <project-path>` immediately after that first successful write
|
|
107
|
+
19. if Pencil MCP is active, run the MCP runtime gate and record it in `pencil-design.md`
|
|
108
|
+
20. run `design-source checkpoint` to confirm the registered project-local `.pen` path, the active Pencil source, and the shell-visible file all agree
|
|
109
|
+
21. export screenshots only under `.da-vinci/changes/<change-id>/exports/`, never into `.da-vinci/designs/`
|
|
110
|
+
22. record screenshot review with explicit `PASS` / `WARN` / `BLOCK`, issue list, and revision outcome before broad expansion
|
|
111
|
+
23. bind routes and pages to Pencil screens
|
|
112
|
+
24. generate tasks aligned to the redesign slices
|
|
113
|
+
25. run `da-vinci audit --mode completion --change <change-id> <project-path>` before any terminal completion claim
|
|
114
|
+
26. build and verify only after the completion gate can eventually pass
|
|
113
115
|
|
|
114
116
|
### Complex Android example
|
|
115
117
|
|
|
@@ -134,7 +136,8 @@ If the same anchor surface rolls back twice, switch to micro-batches of 6 or few
|
|
|
134
136
|
Use only Pencil-supported properties; do not use web-only props like flex or margin.
|
|
135
137
|
Require `da-vinci pencil-session begin --project <project-path> --pen <path>` before the first Pencil edit.
|
|
136
138
|
When external or secondary `.pen` files exist, run `da-vinci check-pen-baseline --pen <project-pen> --baseline <other-pen>` first; if hashes diverge, sync the preferred source into `<project-pen>` before editing.
|
|
137
|
-
If a registered project-local `.pen` already exists, reopen it for continuity
|
|
139
|
+
If a registered project-local `.pen` already exists, reopen it for continuity and save through `da-vinci save-current-design --project <project-path>`.
|
|
140
|
+
Treat `saved`, `blocked`, and `unavailable` as distinct outcomes. If `unavailable`, do not claim success and only then fall back to the lower-level `pencil-session persist` payload path.
|
|
138
141
|
Verify the registered project-local `.pen` file exists as a shell-visible file after the first Pencil write.
|
|
139
142
|
Run `da-vinci audit --mode integrity <project-path>` after that first successful Pencil write before broad expansion continues.
|
|
140
143
|
Keep `.da-vinci/designs/` reserved for `.pen` files only.
|
|
@@ -201,7 +204,7 @@ If frontend-skill is available, use it as the primary visual adapter.
|
|
|
201
204
|
If it is unavailable, fall back to native Da Vinci design rules and continue.
|
|
202
205
|
Persist project-local Pencil files under .da-vinci/designs/.
|
|
203
206
|
If no registered project-local `.pen` exists yet, seed it there before the first Pencil edit and keep subsequent live edits bound to that exact path.
|
|
204
|
-
If a registered project-local `.pen` already exists, reopen it for continuity
|
|
207
|
+
If a registered project-local `.pen` already exists, reopen it for continuity and persist after material live edits through `da-vinci save-current-design --project <project-path>`.
|
|
205
208
|
```
|
|
206
209
|
|
|
207
210
|
## Icon-library helper example
|
|
@@ -157,6 +157,7 @@ Before mapping or implementation are treated as safe, Da Vinci runs:
|
|
|
157
157
|
|
|
158
158
|
- `design-source checkpoint`
|
|
159
159
|
- `MCP runtime gate` when Pencil MCP is active
|
|
160
|
+
- `da-vinci save-current-design --project <project-path>` after material live edits (high-level bound-source save path)
|
|
160
161
|
- `da-vinci audit --mode integrity <project-path>` during active work
|
|
161
162
|
- checkpoint-adjacent `Context Delta` notes in existing change artifacts
|
|
162
163
|
|
|
@@ -166,6 +167,7 @@ These checks verify that:
|
|
|
166
167
|
- the active editor is the correct source
|
|
167
168
|
- the shell-visible `.pen` exists
|
|
168
169
|
- live snapshot and persisted snapshot are in sync
|
|
170
|
+
- high-level save outcomes are handled honestly (`saved` / `blocked` / `unavailable`)
|
|
169
171
|
- recent execution context is recoverable without replacing artifact truth as the routing authority
|
|
170
172
|
|
|
171
173
|
### 6. Mapping
|
|
@@ -101,6 +101,11 @@ Da Vinci 期望它们遵循工作流状态。
|
|
|
101
101
|
- `da-vinci sync-pen-source --from <preferred-source> --to <project-pen>`
|
|
102
102
|
- 把被选中的最新 `.pen` 来源同步到项目内 `.pen` 路径,并刷新 Da Vinci state 元数据
|
|
103
103
|
- 当外部备份是最新基线时,在 `pencil-session begin` 前先执行
|
|
104
|
+
- `da-vinci save-current-design --project <path> [--json] [--continue-on-error]`
|
|
105
|
+
- 运行高层绑定源保存流程,作为 guided 设计持久化主路径
|
|
106
|
+
- 持久化前必须确认 registered `.pen`、session `penPath`、active editor path 收敛到同一来源
|
|
107
|
+
- 统一返回 `saved` / `blocked` / `unavailable`
|
|
108
|
+
- `blocked` 表示保存契约失败(来源/锁/载荷);`unavailable` 表示 MCP bridge 或 runtime 抓取不可达
|
|
104
109
|
|
|
105
110
|
建议在 `/dv:design` 阶段使用,尤其是在 anchor surface 的图标定稿前。
|
|
106
111
|
|
|
@@ -174,6 +179,14 @@ Da Vinci 期望它们遵循工作流状态。
|
|
|
174
179
|
|
|
175
180
|
这一层负责塑造行为真相。
|
|
176
181
|
|
|
182
|
+
需求拆解阶段自检:
|
|
183
|
+
|
|
184
|
+
- 在把 requirements 交给设计前,先跑 `da-vinci workflow-status --project <path> [--change <id>] --json`
|
|
185
|
+
- 再跑 `da-vinci next-step --project <path> [--change <id>]`
|
|
186
|
+
- 跑 `da-vinci lint-spec --project <path> [--change <id>] --strict`
|
|
187
|
+
- 把命令结果当成门禁,不要把 `BLOCK` 或非零退出码解释成软建议
|
|
188
|
+
- 如果主推荐路由仍然是 `/dv:breakdown`,就继续修 `proposal.md` 和 specs,不要硬推进到 `/dv:design`
|
|
189
|
+
|
|
177
190
|
### `/dv:design`
|
|
178
191
|
|
|
179
192
|
适合:
|
|
@@ -210,6 +223,14 @@ Da Vinci 期望它们遵循工作流状态。
|
|
|
210
223
|
|
|
211
224
|
这一层只做实现拆解,不写代码。
|
|
212
225
|
|
|
226
|
+
任务阶段自检:
|
|
227
|
+
|
|
228
|
+
- 在把工作移交给实现前,先跑 `task checkpoint`
|
|
229
|
+
- 有 shell 能力时,跑 `da-vinci lint-tasks --project <path> [--change <id>]`
|
|
230
|
+
- 如果 `pencil-design.md` 和 `pencil-bindings.md` 都存在,再跑 `da-vinci lint-bindings --project <path> [--change <id>]`
|
|
231
|
+
- 把命令结果当成门禁,不要把 `BLOCK` 或非零退出码降级成软提示
|
|
232
|
+
- 只要任务覆盖或 bindings 就绪度仍然阻塞,就不要推进到 `/dv:build`
|
|
233
|
+
|
|
213
234
|
### `/dv:build`
|
|
214
235
|
|
|
215
236
|
适合:
|
|
@@ -225,6 +246,18 @@ Da Vinci 期望它们遵循工作流状态。
|
|
|
225
246
|
|
|
226
247
|
这一层才是真正的执行阶段。
|
|
227
248
|
|
|
249
|
+
实现阶段自检:
|
|
250
|
+
|
|
251
|
+
- 在大范围实现前,先跑 `da-vinci workflow-status --project <path> [--change <id>] --json`
|
|
252
|
+
- 再跑 `da-vinci next-step --project <path> [--change <id>]`
|
|
253
|
+
- 如果主推荐路由不是 `/dv:build`,就停止并回到那个路由,而不是硬做实现
|
|
254
|
+
- 跑 `da-vinci lint-spec --project <path> [--change <id>]`
|
|
255
|
+
- 跑 `da-vinci scope-check --project <path> [--change <id>]`
|
|
256
|
+
- 如果 `tasks.md` 已存在,跑 `da-vinci lint-tasks --project <path> [--change <id>]`
|
|
257
|
+
- 如果 `pencil-design.md` 和 `pencil-bindings.md` 都存在,跑 `da-vinci lint-bindings --project <path> [--change <id>]`
|
|
258
|
+
- 把命令结果当成门禁,不要把 `BLOCK` 或非零退出码降级成软提示
|
|
259
|
+
- 只要还有 `BLOCK` 或缺少必要 planning/design 工件,就不要进入大范围实现
|
|
260
|
+
|
|
228
261
|
完成判定规则:
|
|
229
262
|
|
|
230
263
|
- `BUILD SUCCESSFUL` 只代表可编译,不代表 workflow 完成
|
|
@@ -245,6 +278,16 @@ Da Vinci 期望它们遵循工作流状态。
|
|
|
245
278
|
|
|
246
279
|
这一层是 truth reconciliation 阶段。
|
|
247
280
|
|
|
281
|
+
验证阶段自检:
|
|
282
|
+
|
|
283
|
+
- 有 shell 能力时,跑 `da-vinci verify-bindings --project <path> [--change <id>]`
|
|
284
|
+
- 跑 `da-vinci verify-implementation --project <path> [--change <id>]`
|
|
285
|
+
- 跑 `da-vinci verify-structure --project <path> [--change <id>]`
|
|
286
|
+
- 跑 `da-vinci verify-coverage --project <path> [--change <id>]`
|
|
287
|
+
- 把命令结果当成门禁,不要把 `BLOCK` 或 `FAIL` 降级成软提示
|
|
288
|
+
- 只要任何验证面仍然是 `BLOCK` 或 `FAIL`,就继续停留在验证阶段并记录 drift,而不是宣称成功
|
|
289
|
+
- 如果要声称终态完成,先要求 `da-vinci audit --mode completion --change <change-id> <project-path>` 通过
|
|
290
|
+
|
|
248
291
|
## 基于状态的下一步规则
|
|
249
292
|
|
|
250
293
|
这就是当前应该给用户的推荐逻辑。
|
|
@@ -239,7 +239,8 @@ Da Vinci 应该:
|
|
|
239
239
|
- 如果已有项目内 `.pen` 文件,优先登记 `.da-vinci/designs/` 下的路径
|
|
240
240
|
5. 生成 `pencil-design.md` 增量
|
|
241
241
|
- 必须通过 `da-vinci pencil-session begin` 开始这轮设计,让登记路径先 seed 好并拿到锁
|
|
242
|
-
- 如果项目里原本已有 `.pen`,继续设计时先打开它,但发生实质性 live edit
|
|
242
|
+
- 如果项目里原本已有 `.pen`,继续设计时先打开它,但发生实质性 live edit 后优先执行 `da-vinci save-current-design --project <project-path>`
|
|
243
|
+
- 必须区分 `saved`、`blocked`、`unavailable` 三类结果;只有高层桥接 `unavailable` 时,才退回 `pencil-session persist --nodes-file/--variables-file` 的底层链路
|
|
243
244
|
6. 更新 `pencil-bindings.md`
|
|
244
245
|
7. 生成 `tasks.md`
|
|
245
246
|
8. 进入实现
|
|
@@ -31,7 +31,7 @@ PNG 只是审查产物,不是设计真相源。
|
|
|
31
31
|
Da Vinci 现在要求自治运行使用这组 session wrapper:
|
|
32
32
|
|
|
33
33
|
- `da-vinci pencil-session begin`
|
|
34
|
-
- `da-vinci
|
|
34
|
+
- `da-vinci save-current-design`
|
|
35
35
|
- `da-vinci pencil-session end`
|
|
36
36
|
|
|
37
37
|
这组 wrapper 的作用,是把下面三件事变成强制步骤:
|
|
@@ -77,18 +77,21 @@ Da Vinci 不会假设 live MCP 编辑已经被自动刷盘。
|
|
|
77
77
|
|
|
78
78
|
Da Vinci 不把 headless interactive `save()` 当作权威持久化真相。
|
|
79
79
|
|
|
80
|
-
|
|
80
|
+
主路径持久化步骤是:
|
|
81
81
|
|
|
82
|
-
1.
|
|
83
|
-
2.
|
|
84
|
-
3.
|
|
85
|
-
4.
|
|
86
|
-
5.
|
|
82
|
+
1. 执行 `da-vinci save-current-design --project <project-path>`
|
|
83
|
+
2. 明确读取结果包:`saved` / `blocked` / `unavailable`
|
|
84
|
+
3. 只有 `saved` 才表示持久化成功
|
|
85
|
+
4. `blocked` 表示保存时的来源/锁/载荷契约失败
|
|
86
|
+
5. `unavailable` 表示 MCP bridge 或 runtime 抓取不可达,不能当成“已保存”
|
|
87
87
|
|
|
88
88
|
相关命令:
|
|
89
89
|
|
|
90
|
-
-
|
|
91
|
-
-
|
|
90
|
+
- 高层主路径:`da-vinci save-current-design`
|
|
91
|
+
- 底层回退路径:`da-vinci pencil-session persist`、`da-vinci write-pen`、`da-vinci check-pen-sync`
|
|
92
|
+
|
|
93
|
+
MVP 安全保证仅覆盖“来源路径收敛”:registered `.pen`、session `penPath`、active editor path 必须收敛到同一文件。
|
|
94
|
+
在 MCP 暴露稳定 window/editor 标识前,精确窗口实例绑定仍是非目标。
|
|
92
95
|
|
|
93
96
|
`da-vinci snapshot-pen` 只用于 disk-to-disk,不是 live 编辑持久化路径。
|
|
94
97
|
|
|
@@ -253,7 +256,7 @@ Context Delta 相关审计期望都是告警级:
|
|
|
253
256
|
1. `da-vinci pencil-session begin --project <project-path> --pen <path>`
|
|
254
257
|
2. 如果存在外部/次要 `.pen`,在编辑前先运行 `da-vinci check-pen-baseline --pen <project-pen> --baseline <other-pen>`;若分叉,先把优先来源同步回 `<project-pen>`
|
|
255
258
|
3. Pencil MCP 编辑
|
|
256
|
-
4. `da-vinci
|
|
259
|
+
4. `da-vinci save-current-design --project <project-path>`
|
|
257
260
|
5. screenshot review + layout hygiene
|
|
258
261
|
6. design checkpoint
|
|
259
262
|
7. 如果配置了,就执行 design-supervisor review
|
|
@@ -280,13 +283,13 @@ flowchart TD
|
|
|
280
283
|
K -- 否 --> F
|
|
281
284
|
K -- 是 --> L{是否配置了 design-supervisor review?}
|
|
282
285
|
L -- 是 --> M[执行 design-supervisor review,结合 screenshots 与 theme inputs]
|
|
283
|
-
L -- 否 --> N[
|
|
286
|
+
L -- 否 --> N[save-current-design 把绑定的 live 快照写回 .pen]
|
|
284
287
|
M --> O{是否要求 Supervisor Review?}
|
|
285
288
|
O -- 否 --> N
|
|
286
289
|
O -- 是 --> P{review 为 PASS 或已接受 WARN?}
|
|
287
290
|
P -- 否 --> F
|
|
288
291
|
P -- 是 --> N
|
|
289
|
-
N --> Q[
|
|
292
|
+
N --> Q[save-current-design 返回 saved 或终态 blocked/unavailable]
|
|
290
293
|
Q --> R{design-source checkpoint 和 runtime gate 通过?}
|
|
291
294
|
R -- 否 --> F
|
|
292
295
|
R -- 是 --> S{是否还要继续设计?}
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
4. 两者一起放进工作流设置
|
|
22
22
|
5. 只有在项目存在特殊真相源或平台约束时,再继续收紧提示词
|
|
23
23
|
6. 如果 Pencil MCP 可用,优先使用已经明确要求 MCP runtime gate 和 completion audit 的那版 redesign 提示词
|
|
24
|
-
7. 如果项目要在自治运行里把 `.pen` 真正持久化到本地,必须使用要求 `da-vinci pencil-session begin /
|
|
24
|
+
7. 如果项目要在自治运行里把 `.pen` 真正持久化到本地,必须使用要求 `da-vinci pencil-session begin / save-current-design / end` 的提示词;并明确区分 `saved` / `blocked` / `unavailable`,只有高层保存不可用时才回退到底层 payload 持久化链路
|
|
25
25
|
|
|
26
26
|
可用模板:
|
|
27
27
|
|
|
@@ -120,7 +120,7 @@ Design 1-3 anchor surfaces first, review screenshots, then expand.
|
|
|
120
120
|
如果同一个 anchor surface 连续两次回滚,就切到每批不超过 6 个操作的微批次,直到拿到干净的 schema-safe pass。
|
|
121
121
|
在第一次成功写入 Pencil 后、继续大范围扩展前,先运行 `da-vinci audit --mode integrity <project-path>`。
|
|
122
122
|
如果 Pencil MCP 可用,在第一次成功写入 Pencil 后运行 MCP runtime gate,并把结果记录到 `pencil-design.md`。
|
|
123
|
-
在第一次 Pencil 编辑前,必须执行 `da-vinci pencil-session begin --project <project-path> --pen <path>`;发生实质性 live edit
|
|
123
|
+
在第一次 Pencil 编辑前,必须执行 `da-vinci pencil-session begin --project <project-path> --pen <path>`;发生实质性 live edit 后,优先执行 `da-vinci save-current-design --project <project-path>`。必须区分 `saved`、`blocked`、`unavailable` 三类结果;只有高层桥接返回 `unavailable` 时,才退回 `pencil-session persist --nodes-file/--variables-file` 这条底层链路。
|
|
124
124
|
截图导出只能写到 `.da-vinci/changes/<change-id>/exports/`,不能写进 `.da-vinci/designs/`。
|
|
125
125
|
截图审查必须记录明确的 `PASS` / `WARN` / `BLOCK`、问题列表和是否回改;“看起来很好”不算审查记录。
|
|
126
126
|
如果 `DA-VINCI.md` 配置了 `Design-supervisor reviewers`,就在 screenshot review、layout hygiene 和 design checkpoint 之后再做 `design-supervisor review`,输入要同时包含 screenshots、Pencil variables 和设计 thesis。若 `Require Supervisor Review: true`,那么缺失、`BLOCK`、或未被接受的 review 结果都要视为阻断。
|
|
@@ -156,7 +156,7 @@ Design 1-3 anchor surfaces first, review screenshots, then expand.
|
|
|
156
156
|
For each anchor surface, explain how the new composition differs structurally from the current layout and whether it is primarily HTML-referenced, partially HTML-referenced, or inferred.
|
|
157
157
|
|
|
158
158
|
Before non-trivial `batch_design` calls, preflight the Pencil operations when shell access is available.
|
|
159
|
-
Require `da-vinci pencil-session begin --project <project-path> --pen <path>` before the first Pencil edit, then use `da-vinci
|
|
159
|
+
Require `da-vinci pencil-session begin --project <project-path> --pen <path>` before the first Pencil edit, then use `da-vinci save-current-design --project <project-path>` after material live edits. Treat `saved`, `blocked`, and `unavailable` as distinct outcomes.
|
|
160
160
|
Run the MCP runtime gate after the first successful Pencil write and record it in `pencil-design.md`.
|
|
161
161
|
Before reporting `design complete` or `workflow complete`, require both the MCP runtime gate and `da-vinci audit --mode completion --change <change-id> <project-path>` to pass.
|
|
162
162
|
Persist project-local Pencil files under .da-vinci/designs/.
|
|
@@ -190,7 +190,7 @@ $da-vinci use continue for this existing desktop-product redesign workflow.
|
|
|
190
190
|
Use the existing Da Vinci artifacts in this project.
|
|
191
191
|
Do not restart discovery unless an artifact is missing or clearly wrong.
|
|
192
192
|
选路先以当前工件和 checkpoint 真相为准,再把 Context Delta 作为辅助恢复信息;如果 Context Delta 与工件冲突,忽略冲突条目并记录冲突后继续。
|
|
193
|
-
把登记的项目内 Pencil 源保持在 `.da-vinci/designs/` 下,作为设计真相源。如果继续这一轮会做 Pencil 编辑,必须先执行 `da-vinci pencil-session begin --project <project-path> --pen <path>`,发生实质性 live edit
|
|
193
|
+
把登记的项目内 Pencil 源保持在 `.da-vinci/designs/` 下,作为设计真相源。如果继续这一轮会做 Pencil 编辑,必须先执行 `da-vinci pencil-session begin --project <project-path> --pen <path>`,发生实质性 live edit 后优先执行 `da-vinci save-current-design --project <project-path>`。必须区分 `saved`、`blocked`、`unavailable`;只有高层桥接返回 `unavailable` 时,才回退到底层 payload 持久化链路。
|
|
194
194
|
If the redesign is complex, continue from the approved anchor surfaces instead of restarting broad scaffolding.
|
|
195
195
|
如果 Pencil MCP 可用,且这一轮继续做了新的 Pencil 写入,就重新运行 MCP runtime gate,并把最新结果记录到 `pencil-design.md`。
|
|
196
196
|
在声明 `design complete` 或 `workflow complete` 之前,必须同时通过 MCP runtime gate 和 `da-vinci audit --mode completion --change <change-id> <project-path>`。
|
|
@@ -126,7 +126,7 @@ Use only Pencil-supported properties; do not use web-only props like flex or mar
|
|
|
126
126
|
Verify the registered project-local `.pen` file exists as a shell-visible file after the first Pencil write.
|
|
127
127
|
在第一次成功写入 Pencil 后、继续大范围扩展前,先运行 `da-vinci audit --mode integrity <project-path>`。
|
|
128
128
|
如果 Pencil MCP 可用,在第一次成功写入 Pencil 后运行 MCP runtime gate,并把结果记录到 `pencil-design.md`。
|
|
129
|
-
在第一次 Pencil 编辑前,必须执行 `da-vinci pencil-session begin --project <project-path> --pen <path>`;发生实质性 live edit
|
|
129
|
+
在第一次 Pencil 编辑前,必须执行 `da-vinci pencil-session begin --project <project-path> --pen <path>`;发生实质性 live edit 后,优先执行 `da-vinci save-current-design --project <project-path>`。必须区分 `saved`、`blocked`、`unavailable` 三类结果;只有高层桥接返回 `unavailable` 时,才退回 `pencil-session persist --nodes-file/--variables-file` 这条底层链路。
|
|
130
130
|
Keep non-`.pen` workflow artifacts out of `.da-vinci/designs/`.
|
|
131
131
|
截图导出只能写到 `.da-vinci/changes/<change-id>/exports/`,不能写进 `.da-vinci/designs/`。
|
|
132
132
|
截图审查必须记录明确的 `PASS` / `WARN` / `BLOCK`、问题列表和是否回改;“看起来很好”不算审查记录。
|
|
@@ -164,7 +164,7 @@ Design 1-3 anchor surfaces first, review screenshots, then expand.
|
|
|
164
164
|
For each anchor surface, explain how the new composition differs structurally from the current layout and whether it is primarily HTML-referenced, partially HTML-referenced, or inferred.
|
|
165
165
|
|
|
166
166
|
Before non-trivial `batch_design` calls, preflight the Pencil operations when shell access is available.
|
|
167
|
-
Require `da-vinci pencil-session begin --project <project-path> --pen <path>` before the first Pencil edit, then use `da-vinci
|
|
167
|
+
Require `da-vinci pencil-session begin --project <project-path> --pen <path>` before the first Pencil edit, then use `da-vinci save-current-design --project <project-path>` after material live edits. Treat `saved`, `blocked`, and `unavailable` as distinct outcomes.
|
|
168
168
|
Run the MCP runtime gate after the first successful Pencil write and record it in `pencil-design.md`.
|
|
169
169
|
Before reporting `design complete` or `workflow complete`, require both the MCP runtime gate and `da-vinci audit --mode completion --change <change-id> <project-path>` to pass.
|
|
170
170
|
Persist project-local Pencil files under .da-vinci/designs/.
|
|
@@ -198,7 +198,7 @@ $da-vinci use continue for this existing mobile-app redesign workflow.
|
|
|
198
198
|
Use the existing Da Vinci artifacts in this project.
|
|
199
199
|
Do not restart discovery unless an artifact is missing or clearly wrong.
|
|
200
200
|
选路先以当前工件和 checkpoint 真相为准,再把 Context Delta 作为辅助恢复信息;如果 Context Delta 与工件冲突,忽略冲突条目并记录冲突后继续。
|
|
201
|
-
把登记的项目内 Pencil 源保持在 `.da-vinci/designs/` 下,作为设计真相源。如果继续这一轮会做 Pencil 编辑,必须先执行 `da-vinci pencil-session begin --project <project-path> --pen <path>`,发生实质性 live edit
|
|
201
|
+
把登记的项目内 Pencil 源保持在 `.da-vinci/designs/` 下,作为设计真相源。如果继续这一轮会做 Pencil 编辑,必须先执行 `da-vinci pencil-session begin --project <project-path> --pen <path>`,发生实质性 live edit 后优先执行 `da-vinci save-current-design --project <project-path>`。必须区分 `saved`、`blocked`、`unavailable`;只有高层桥接返回 `unavailable` 时,才回退到底层 payload 持久化链路。
|
|
202
202
|
If the redesign is complex, keep the anchor-first flow until the design checkpoint passes.
|
|
203
203
|
如果 Pencil MCP 可用,且这一轮继续做了新的 Pencil 写入,就重新运行 MCP runtime gate,并把最新结果记录到 `pencil-design.md`。
|
|
204
204
|
在声明 `design complete` 或 `workflow complete` 之前,必须同时通过 MCP runtime gate 和 `da-vinci audit --mode completion --change <change-id> <project-path>`。
|
|
@@ -120,7 +120,7 @@ Design 1-3 anchor surfaces first, review screenshots, then expand.
|
|
|
120
120
|
如果同一个 anchor surface 连续两次回滚,就切到每批不超过 6 个操作的微批次,直到拿到干净的 schema-safe pass。
|
|
121
121
|
在第一次成功写入 Pencil 后、继续大范围扩展前,先运行 `da-vinci audit --mode integrity <project-path>`。
|
|
122
122
|
如果 Pencil MCP 可用,在第一次成功写入 Pencil 后运行 MCP runtime gate,并把结果记录到 `pencil-design.md`。
|
|
123
|
-
在第一次 Pencil 编辑前,必须执行 `da-vinci pencil-session begin --project <project-path> --pen <path>`;发生实质性 live edit
|
|
123
|
+
在第一次 Pencil 编辑前,必须执行 `da-vinci pencil-session begin --project <project-path> --pen <path>`;发生实质性 live edit 后,优先执行 `da-vinci save-current-design --project <project-path>`。必须区分 `saved`、`blocked`、`unavailable` 三类结果;只有高层桥接返回 `unavailable` 时,才退回 `pencil-session persist --nodes-file/--variables-file` 这条底层链路。
|
|
124
124
|
截图导出只能写到 `.da-vinci/changes/<change-id>/exports/`,不能写进 `.da-vinci/designs/`。
|
|
125
125
|
截图审查必须记录明确的 `PASS` / `WARN` / `BLOCK`、问题列表和是否回改;“看起来很好”不算审查记录。
|
|
126
126
|
如果 `DA-VINCI.md` 配置了 `Design-supervisor reviewers`,就在 screenshot review、layout hygiene 和 design checkpoint 之后再做 `design-supervisor review`,输入要同时包含 screenshots、Pencil variables 和设计 thesis。若 `Require Supervisor Review: true`,那么缺失、`BLOCK`、或未被接受的 review 结果都要视为阻断。
|
|
@@ -156,7 +156,7 @@ Design 1-3 anchor surfaces first, review screenshots, then expand.
|
|
|
156
156
|
For each anchor surface, explain how the new composition differs structurally from the current layout and whether it is primarily HTML-referenced, partially HTML-referenced, or inferred.
|
|
157
157
|
|
|
158
158
|
Before non-trivial `batch_design` calls, preflight the Pencil operations when shell access is available.
|
|
159
|
-
Require `da-vinci pencil-session begin --project <project-path> --pen <path>` before the first Pencil edit, then use `da-vinci
|
|
159
|
+
Require `da-vinci pencil-session begin --project <project-path> --pen <path>` before the first Pencil edit, then use `da-vinci save-current-design --project <project-path>` after material live edits. Treat `saved`, `blocked`, and `unavailable` as distinct outcomes.
|
|
160
160
|
Run the MCP runtime gate after the first successful Pencil write and record it in `pencil-design.md`.
|
|
161
161
|
Before reporting `design complete` or `workflow complete`, require both the MCP runtime gate and `da-vinci audit --mode completion --change <change-id> <project-path>` to pass.
|
|
162
162
|
Persist project-local Pencil files under .da-vinci/designs/.
|
|
@@ -190,7 +190,7 @@ $da-vinci use continue for this existing tablet-product redesign workflow.
|
|
|
190
190
|
Use the existing Da Vinci artifacts in this project.
|
|
191
191
|
Do not restart discovery unless an artifact is missing or clearly wrong.
|
|
192
192
|
选路先以当前工件和 checkpoint 真相为准,再把 Context Delta 作为辅助恢复信息;如果 Context Delta 与工件冲突,忽略冲突条目并记录冲突后继续。
|
|
193
|
-
把登记的项目内 Pencil 源保持在 `.da-vinci/designs/` 下,作为设计真相源。如果继续这一轮会做 Pencil 编辑,必须先执行 `da-vinci pencil-session begin --project <project-path> --pen <path>`,发生实质性 live edit
|
|
193
|
+
把登记的项目内 Pencil 源保持在 `.da-vinci/designs/` 下,作为设计真相源。如果继续这一轮会做 Pencil 编辑,必须先执行 `da-vinci pencil-session begin --project <project-path> --pen <path>`,发生实质性 live edit 后优先执行 `da-vinci save-current-design --project <project-path>`。必须区分 `saved`、`blocked`、`unavailable`;只有高层桥接返回 `unavailable` 时,才回退到底层 payload 持久化链路。
|
|
194
194
|
If the redesign is complex, continue from the approved anchor surfaces instead of restarting broad scaffolding.
|
|
195
195
|
如果 Pencil MCP 可用,且这一轮继续做了新的 Pencil 写入,就重新运行 MCP runtime gate,并把最新结果记录到 `pencil-design.md`。
|
|
196
196
|
在声明 `design complete` 或 `workflow complete` 之前,必须同时通过 MCP runtime gate 和 `da-vinci audit --mode completion --change <change-id> <project-path>`。
|