openpencil/crates
Fini 1e4a7d1c54 feat(ai): inject selected style-guide palette into sub-agent prompts
Port of buildSubAgentStyleGuideInstruction (orchestrator-sub-agent-compact.ts):
look up the planner-selected guide by name (select_style_guide + the registry),
extract its palette/fonts/radius (extract_style_guide_values), and append a
tier-aware "follow these specs" block to the sub-agent system prompt so the
model uses the selected aesthetic instead of inventing a conflicting palette.

RUST ADAPTATION: TS emits $color-* refs (which it seeds into doc.variables);
Rust does not seed style-guide vars, so refs wouldn't resolve — we emit the
guide's CONCRETE HEX values instead. Same effect, correct for the Rust path.

This also CLOSES the design-system gap the earlier fix left open: when the
style-guide block is injected it REPLACES design-system, so design_system_covered
now also includes style_guide_instruction.is_some() — a named guide no longer
falls back to the generic (and conflicting) design-system skill.

Tests: a named style guide injects "VISUAL STYLE GUIDE" + drops design-system;
the no-style-guide path still drops design-system via style-defaults.
2026-06-06 23:58:03 +08:00
..
op-acp style: clear clippy lints for the workspace -D warnings gate 2026-05-17 23:12:16 +08:00
op-ai feat(ai): chat image attachments + per-provider thinking/effort 2026-05-17 22:44:28 +08:00
op-ai-skills fix(ai): align subagent format contract on flat _parent 2026-06-06 15:44:02 +08:00
op-app feat(mcp): expand rust editor mcp surface 2026-06-05 22:19:08 +08:00
op-cli fix(ci): handle windows cli paths 2026-06-06 14:26:55 +08:00
op-codegen feat(editor): add Design-MD panel and complete i18n coverage 2026-05-19 22:29:22 +08:00
op-design-lint Merge branch 'v0.8.0-new' of github.com:ZSeven-W/openpencil into v0.8.0-new 2026-05-24 13:03:26 +08:00
op-editor-core fix(canvas): keep auto-layout children in flow 2026-06-06 12:16:12 +08:00
op-editor-ui fix(ci): isolate deep layer fixture stack 2026-06-06 14:16:13 +08:00
op-figma fix(ai): read frame image search queries 2026-05-31 00:25:52 +08:00
op-git feat(panels): git-panel commit-detail diff, overflow menu, signature form 2026-06-02 09:42:03 +08:00
op-host-desktop fix(mcp): exclude debug tools from release builds 2026-06-06 23:16:26 +08:00
op-host-native fix(ci): isolate deep layer fixture stack 2026-06-06 14:16:13 +08:00
op-host-web fix(canvas): keep auto-layout children in flow 2026-06-06 12:16:12 +08:00
op-i18n feat(editor): add boolean exclude operation 2026-06-02 09:41:38 +08:00
op-mcp fix(mcp): exclude debug tools from release builds 2026-06-06 23:16:26 +08:00
op-opmerge Merge branch 's3a-orchestrator' into v0.8.0-new 2026-05-23 01:27:30 +08:00
op-orchestrator feat(ai): inject selected style-guide palette into sub-agent prompts 2026-06-06 23:58:03 +08:00
op-pen-loader fix(mcp): resolve fit-content text bounds 2026-06-06 11:32:10 +08:00
op-smoke test(ai): add direct-client headless benchmark harness to op-smoke 2026-06-06 15:45:37 +08:00
wasm-libc-shim feat(mcp): expand rust editor mcp surface 2026-06-05 22:19:08 +08:00
CLAUDE.md docs: fix stale i18n + renderer paths flagged by Codex review 2026-05-16 15:45:54 +08:00