713 B
713 B
1. Implementation
- 1.1 Add shared prompt optimization service with scenario registry and Knowledge Base template loading/restoration.
- 1.2 Add shared prompt optimization button component.
- 1.3 Update prompt optimization dialog to consume scenario IDs and async prompt building.
- 1.4 Migrate AI input, image/video prompt input, PPT outline, and music create-song entrypoints.
- 1.5 Move legacy prompt optimization exports out of generation tool utilities.
2. Verification
- 2.1 Add/adjust unit tests for scenario registry, Knowledge Base fallback, variable rendering, and dialog scenario behavior.
- 2.2 Run OpenSpec validation.
- 2.3 Run targeted lint/type/test checks.