699 Commits

Author SHA1 Message Date
linshen
d0f97e9463 chore(release): prepare v2.11.5 2026-05-27 23:48:29 +08:00
linshen
9119876b3e feat: add Xiaomi MiMo Token Plan provider 2026-05-27 21:28:37 +08:00
linshen
5d3b7ada92 fix(model): tolerate malformed stored text configs 2026-05-18 21:38:27 +08:00
linshen
74c229a8f5 refactor(model): normalize model config identity 2026-05-16 16:47:18 +08:00
linshen
72b253565b chore(release): prepare v2.11.4 2026-05-16 23:23:39 +08:00
linshen
c718d78ed4 fix(provider): pass Chrome Prompt API language options 2026-05-16 22:00:33 +08:00
linshen
75aeb5ba66 fix(web): restore root env loading
- Restore root .env loading for web Vite builds.
- Keep extension release env isolation intact.
- Cover package script behavior with node tests.
2026-05-16 13:31:18 +08:00
linshen
4340f1bf28 feat(provider): add Chrome built-in AI support
- Register Chrome built-in AI as a local text provider with availability checks.
- Add explicit setup/download gating and auto-enable safeguards.
- Preserve structured prompt roles through initialPrompts and stream tests.
2026-05-16 11:29:46 +08:00
linshen
b691f4f2c1 fix(core): keep local providers disabled by default
- Keep no-key and local model sources disabled until explicit user configuration exists.
- Tighten default text and image model enablement checks.
- Cover environment-driven defaults for local providers.
2026-05-16 09:47:21 +08:00
linshen
269df1dcf7 fix(release): isolate extension build env
- Split extension release builds from web env loading.
- Add a release secret guard for extension packaging.
- Keep web and extension Vite configs from leaking incompatible env.
2026-05-15 23:38:52 +08:00
linshen
7f04dcc52c fix(ui): soften themed tooltip surfaces
- Lighten themed tooltip backgrounds and borders.
- Add reusable theme composable coverage for readable contrast.
- Keep short tooltip styling aligned with UI theme tokens.
2026-05-15 22:14:33 +08:00
linshen
684a7bf4c1 feat(provider): add Grok text and image support
- Add first-class xAI/Grok text and image adapters with dynamic model fallback.
- Register defaults, env mapping, docs, locale labels, and legacy converter handling.
- Cover Grok request payloads, image defaults, registry behavior, and input image limit checks.
2026-05-15 20:43:18 +08:00
linshen
0fbc25a6eb chore(release): prepare v2.11.3 2026-05-14 21:39:46 +08:00
linshen
5e942ca945 feat: polish provider controls and themed UI
- Add provider pill selection and normalized provider display copy

- Adopt themed tooltips, confirmation dialogs, and Naive UI surface styles

- Enable Prompt Garden thumbnail previews through shared image preview components
2026-05-14 21:18:43 +08:00
linshen
d08494f6b6 refactor: clarify built-in template labels 2026-05-13 21:37:24 +08:00
linshen
b252168e04 chore(release): prepare v2.11.2 2026-05-13 23:07:36 +08:00
linshen
f7a8c36303 test(e2e): stabilize image text2image vcr gate 2026-05-13 22:20:26 +08:00
linshen
95a030ebe0 fix(model): preserve literal strings in Python JSON normalization
Normalize Python-style JSON literals only outside quoted strings.

Preserve values like "False" and escaped literal words inside JSON strings.

Cover mixed string and unquoted literal custom parameter values.
2026-05-13 21:05:46 +08:00
SamCheng0717
1df08bc2e5 fix(model): support JSON custom parameter values
- Parse Python-style JSON literals for custom model parameters

- Add JSON/string format controls for custom parameter inputs

- Add model parameter docs and locale strings
2026-05-13 21:03:26 +08:00
linshen
ce26772cad fix(template): preserve variables in prompt templates
- Instruct default templates to keep variable placeholders intact

- Apply the guardrail across text, context, image, and iteration templates

- Extend preservation coverage for JSON-structure image prompts
2026-05-13 19:47:33 +08:00
linshen
5c111d0d86 fix(session): persist optimization sessions reliably
- Commit basic and context optimization session updates

- Persist image and pro conversation optimization results

- Restore sessions safely after history reload
2026-05-12 22:58:09 +08:00
linshen
f25837b6cb feat(ui): polish workspace controls and source cues
- Link test source cues back to prompt panel areas

- Add source-linked cards, variant tags, and feedback composables

- Add image model quick switching and workspace control polish
2026-05-12 21:36:52 +08:00
linshen
69db225a1a feat(model): support headers and text quick switching
- Add custom request header parsing and provider metadata resolution

- Add quick switching controls for text model workspaces

- Keep model UI labels and custom header output tidy
2026-05-10 23:08:14 +08:00
linshen
3f6c460154 feat(garden): add inspiration and import polish
- Add prompt garden inspiration suggestions for image workspaces

- Use public API paths and locale-aware suggestion loading

- Preserve category paths when importing favorites from Prompt Garden
2026-05-10 21:23:37 +08:00
linshen
54cffb301c fix(ui): store favorite share PNG metadata as iTXt 2026-05-10 15:49:37 +08:00
linshen
b73454a613 test(ui): update text2image analysis guard 2026-05-10 15:45:00 +08:00
linshen
e5414d7b7a chore(release): bump version to 2.11.1 2026-05-10 15:40:00 +08:00
linshen
afba143962 feat(ui): support favorite share HTML and PNG files 2026-05-10 15:30:00 +08:00
linshen
efda7828b8 fix(ui): wire image workspace analysis actions 2026-05-10 15:20:00 +08:00
linshen
3bb36df21e chore: bump version to 2.11.0 2026-05-10 13:08:47 +08:00
linshen
bf675c3cdd feat(ui): add prompt garden guide for image-to-image 2026-05-10 12:58:33 +08:00
linshen
e1e9e9a8d4 fix(ui): harden remote backup restore settings
- Auto-connect saved remote backup settings in the data manager
- Add WebDAV restore safety integration coverage
- Expand snapshot restore assertions around remote backup resources
- Keep remote backup metadata handling covered by unit tests
2026-05-10 10:36:27 +08:00
linshen
8e337b28c6 fix(ui): surface copy open failures 2026-05-09 23:41:52 +08:00
linshen
8d2c024794 fix(ui): harden resource restore and links
- Restore image resources when metadata exists but bytes are missing
- Limit remote restore scope and sanitize external link handling
- Reuse image resource backup helpers across restore packages
- Extend restore safety coverage for data manager and snapshots
2026-05-09 22:16:11 +08:00
linshen
9711acb424 feat(image): support OpenAI multi-image edits 2026-05-09 20:47:39 +08:00
linshen
be5bffa582 fix(ui): harden backup asset restore safety 2026-05-09 19:18:24 +08:00
linshen
f765a4fd39 feat(ui): improve output actions and link handling
- Clear stale history chain metadata when workspace state changes
- Centralize external URL opening behind a shared helper
- Add copy-and-open AI platform actions with localized labels
- Cover workspace and output action behavior with unit tests
2026-05-08 22:46:41 +08:00
linshen
b0680cda7e feat: add deployment-aware remote backups 2026-05-08 21:17:23 +08:00
linshen
b8de75b46c build(release): prepare v2.10.3 2026-05-06 23:39:49 +08:00
linshen
50b05a0868 fix: normalize LLM image inputs 2026-05-06 23:37:23 +08:00
linshen
d2d48fb328 build(release): prepare v2.10.2 2026-05-05 21:35:00 +08:00
linshen
1390a24e13 fix(ui): honor optional prompt asset variables 2026-05-05 21:20:00 +08:00
linshen
13c903df45 build(release): bump version to 2.10.1 2026-05-04 21:29:45 +08:00
linshen
d92ec4483b fix(ui): restore variable manager event and update site copy
Add @open-variable-manager handler via provide/inject in ContextUserWorkspace.

Update landing page copy: 5 scenarios -> 4 workspace types, remove standalone Prompt Garden and Smart Favorites scenario cards.
2026-05-04 21:24:38 +08:00
linshen
1187716942 fix: resolve review findings (P1/P2/P3)
P1: Remove unused injects and functions
- Remove unused appOpenPromptPreview inject from ContextSystemWorkspace
- Remove unused appOpenPromptPreview inject from ContextUserWorkspace
- Remove unused handleOpenToolManager/handleOpenVariableManager from ContextUserWorkspace

P2: Fix saveToGlobal bypassing persistence
- Use variableManager.addVariable() instead of direct customVariables.value assignment
- This ensures proper validation and saveToStorage() is called

P3: Fix trailing whitespace in docs
- Remove trailing whitespace from replicate.md
- Remove trailing whitespace from style-learn.md
2026-05-04 16:41:16 +08:00
linshen
78398eba4b fix(pro-workspace): restore tool/variable/favorite actions via provide/inject
Migrate Pro workspace event handlers from emit to provide/inject pattern
to fix broken event chain introduced by RouterView refactoring (2b669b9d).

Fixed actions:
- openToolManager: tool management modal not opening (#293)
- openVariableManager: variable manager not accessible
- handleSaveFavorite: save-to-favorite not working in Pro mode
- saveToGlobal: save temporary variable to global failing
- openPromptPreview: prompt preview panel not opening

Pattern: provide('key', handler) in PromptOptimizerApp, inject with
emit fallback in ContextSystemWorkspace and ContextUserWorkspace.
2026-05-04 13:35:06 +08:00
linshen
e40fc249ff build(release): prepare v2.10.0 2026-05-03 14:42:38 +08:00
linshen
b1ac36e962 fix(prompt-garden): improve import link handling 2026-05-03 13:46:39 +08:00
linshen
61f4fe4af2 fix(desktop): register preference IPC handlers
Register the desktop preference IPC bridge, add coverage for preload/main handler parity, and keep the favorite preview extension host props aligned.
2026-05-03 13:15:19 +08:00
linshen
0c9ddd5063 fix(data): include image model configs in backups
Include image model configuration data in app-wide export/import flows and initialize the image model manager before wiring backup services.
2026-05-03 13:15:18 +08:00