500 Commits

Author SHA1 Message Date
linshen
ecbe788909 fix(evaluation): format provider error details 2026-06-07 10:28:39 +08:00
linshen
e039257871 fix(ui): allow unicode variable names in manager 2026-06-06 15:42:17 +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
c718d78ed4 fix(provider): pass Chrome Prompt API language options 2026-05-16 22:00:33 +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
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
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
f7a8c36303 test(e2e): stabilize image text2image vcr gate 2026-05-13 22:20:26 +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
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
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
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
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
1390a24e13 fix(ui): honor optional prompt asset variables 2026-05-05 21:20:00 +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
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
linshen
2d8720247f fix(electron): serialize IPC payloads safely
Sanitize Electron IPC payloads for data, image, and Garden favorite import paths so reactive objects do not cross the process boundary.
2026-05-03 13:15:17 +08:00
linshen
6d75528793 feat(prompt-garden): integrate import and favorite flow
Wire Prompt Garden imports into workspace and favorite flows, add the import dialog/panel affordances, persist Garden metadata/media into favorites, and document the external import contract.
2026-05-03 13:15:16 +08:00
linshen
98c85c64bc fix(favorites): refine detail panel layout and sections
Rework favorite detail layout for text and image variants, keep reproducibility/version/extra sections expanded consistently, and update the detail-panel tests around the refined section behavior.
2026-05-03 13:15:15 +08:00
linshen
0129ba4c7d feat(ui): compact data manager layout 2026-05-03 13:15:14 +08:00
linshen
70bfbeac72 refactor(ui): clarify favorite example save flow 2026-05-03 13:15:14 +08:00
linshen
4accdf1417 feat(prompt-garden): add discovery import entry
- Add environment defaults and Vite proxy configuration for Prompt Garden discovery
- Expose discovery import controls from workspace utility surfaces
- Wire image text-to-image import affordances and localized copy
- Document configuration and cover environment/UI behavior with tests
2026-05-02 22:20:01 +08:00
linshen
743e622f6c feat(ui): use filled variables as generation context
- Pass existing filled variable values into smart value generation
- Update generation templates and service contracts for context-aware output
- Cover service runtime and UI composable behavior with targeted tests
2026-05-02 22:20:00 +08:00
linshen
11a817f833 feat(favorites): manage prompt asset versions
- Store and expose prompt-asset version history through core and desktop bridges
- Add version browsing and preview surfaces to the favorite editor/detail UI
- Simplify version navigation around a dedicated preview modal
- Cover version persistence and UI behavior with focused regressions
2026-05-01 19:18:33 +08:00
linshen
4bd19a76b9 feat(data): support resource-complete backup imports
- Export favorite and data-manager backup packages with referenced resources
- Normalize backup resource metadata during package creation and import
- Add selective package import controls in the data manager UI
- Cover package normalization and selective import behavior with focused tests
2026-05-01 16:22:41 +08:00
linshen
23848a840d feat(favorites): refine prompt asset workspace flows
- Bind favorites to source assets and save targets throughout workspace actions
- Share the favorite editor/detail surfaces across dialogs and workspace panels
- Add provenance badges, utility-menu apply actions, and themed favorite panels
- Expand unit and integration coverage for favorite source and editor flows
2026-05-01 14:36:12 +08:00
linshen
93377e1b70 feat(favorites): standardize prompt asset sessions
- Add prompt-model services for content, examples, modes, sessions, and history
- Persist richer favorite prompt-asset metadata and session projections
- Wire favorite save/apply paths across supported workspaces
- Cover the new prompt-asset contract with core and UI regressions
2026-05-01 10:24:18 +08:00
linshen
81674ea9ce fix(ui): update favorite use assertions for optional options param 2026-04-27 22:00:27 +08:00
linshen
f034bde2d4 feat(ui): enhance favorites with example editing, media management, and workspace apply
- Add reproducibility example editing with media support in favorite editor
- Add example apply to workspace sessions (pro-variable, image modes)
- Harden favorites page routing, guards, and garden deduplication
- Consolidate FavoriteCard into editor form with full test coverage
2026-04-27 21:28:00 +08:00
linshen
d7b35709a7 test(ui): update favorite editor guard targets 2026-04-26 23:24:38 +08:00
linshen
51df8086bf feat(ui): expose favorite variables and examples 2026-04-26 23:20:30 +08:00
linshen
4910e03d1f fix(ui): clarify minimax api endpoint guidance 2026-04-26 23:06:50 +08:00