Add stroke script document automation

This commit is contained in:
2026-06-02 11:31:08 +02:00
parent 0eded78c4c
commit 2b50c2157f
6 changed files with 394 additions and 5 deletions

View File

@@ -371,9 +371,12 @@ PPI and verifies it through inspect/load smoke coverage.
`pano_cli simulate-stroke` exercises the pure stroke sampler for
scripted-stroke automation. `pano_cli simulate-stroke-script`
loads stroke script fixtures, parses them through `pp_paint`, and samples every
stroke. `pano_cli parse-layout` exercises the XML layout path. Continue
expanding document behavior toward legacy Canvas parity and then port OpenGL
classes behind the renderer boundary.
stroke. `pano_cli apply-stroke-script` maps sampled script points into a
bounded `pp_document` RGBA8 face payload, writes a PPI file, and verifies that
the applied stroke payload survives inspect/load round-trip automation.
`pano_cli parse-layout` exercises the XML layout path. Continue expanding
document behavior toward legacy Canvas parity and then port OpenGL classes
behind the renderer boundary.
Implementation tasks:
@@ -753,6 +756,10 @@ Results:
- `pano_cli_save_document_project_roundtrip_smoke` passed and proves a pure
`pp_document` export can be written to a PPI file, inspected for layer/frame
dirty-face descriptors, and loaded back through the PPI import path.
- `pano_cli_apply_stroke_script_roundtrip_smoke` passed and proves a checked-in
stroke script can be parsed, sampled, applied to a pure `pp_document` face
payload, written to PPI, inspected for the expected dirty-face box, and loaded
back as decoded document pixel data.
- `pano_cli_parse_layout_smoke` passed.
- `pano_cli_simulate_stroke_smoke` passed and reports deterministic stroke
sample counts/distances.
@@ -833,6 +840,9 @@ Results:
automation for agents.
- `pano_cli save-document-project` exposes file-writing document export
automation for inspect/load round trips.
- `pano_cli apply-stroke-script` exposes file-driven stroke-script application
to a pure document face payload and writes a PPI artifact for inspect/load
round-trip automation.
- Snapshot creation now rejects invalid embedded RGBA8 face payloads before
document export or history can persist malformed state.
- PowerShell package-smoke wrapper validates the Windows CMake app executable