Initial TrueGrowth source import

This commit is contained in:
2026-07-07 09:36:36 +08:00
commit 3b6781d695
2283 changed files with 691996 additions and 0 deletions

View File

@@ -0,0 +1,14 @@
# Change: Refactor Prompt Optimization Public Capability
## Why
Prompt optimization is now embedded in several UI entrypoints with shared behavior but coarse scene prompts. Each scene needs a different optimization direction, and users should be able to tune those directions without changing code.
## What Changes
- Extract prompt optimization scenario registry, prompt building, and result normalization into a shared service.
- Add a shared prompt optimization button component for common icon, tooltip, dialog, and fill-back behavior.
- Store scenario-specific optimization templates as editable Knowledge Base notes under a "提示词优化" directory.
- Keep built-in templates as fallback and automatically restore missing or empty template notes.
## Impact
- Affected specs: prompt-optimization
- Affected code: shared prompt optimization dialog/button, AI input bar, image/video prompt input, PPT outline prompts, music analyzer create page, Knowledge Base note access.