14 Commits
Author SHA1 Message Date
linshen 5b995b94ea fix(security): update Vite and patch esbuild 2026-09-10 20:09:56 +08:00
linshen e5bab3a6a3 fix: restore model tabs and adopt Node 24 2026-09-10 19:31:41 +08:00
linshen e4a281f42d fix: restore model setup access and update dependencies 2026-09-10 15:49:53 +08:00
linshen 54fbd76685 fix(i18n): restore locale defaults and localized feedback
- restore locale bootstrap defaults across UI and MCP startup paths
- localize template, context editor, favorites, Prompt Garden, and history feedback toasts
- isolate UI consumer typechecks needed by the localization rollout
- add regression tests covering english-first runtime behavior and localized fallbacks
2026-04-09 22:17:34 +08:00
linshen 37d6fa564c build(deps): prune redundant deps and fix ui type outputs
- remove redundant direct dependencies that are no longer used
- restore UI library type build outputs after the dependency cleanup
- keep Tailwind/PostCSS-related package config aligned with actual usage
2026-03-27 21:26:43 +08:00
linshen e69086f075 build(deps): refresh workspace dependency baselines
- refresh direct dependency baselines across workspace packages
- require Node 22 consistently in docs, Docker, and package engines
- update lint/build tooling configs to match the new workspace baseline
- keep package manifests and lockfile aligned after the dependency refresh
2026-03-27 20:41:18 +08:00
linshen c3c46b6e83 fix(deps): 升级 vitest 和 tsup 修复 vite 漏洞
- vitest: 3.2.4 → 4.0.15 (vite-node 不再依赖旧版 vite)
- tsup: 8.5.0 → 8.5.1

修复 Dependabot 警报:
- #21 vite server.fs.deny bypass
- #18 vite public directory 文件泄露
- #17 vite HTML 文件未应用 server.fs 设置
2025-12-07 16:30:05 +08:00
linshen fe961eb4f5 fix(deps): 修复多个安全漏洞
升级直接依赖:
- @google/genai: 1.19.0 → 1.32.0 (修复 jws HMAC 签名验证漏洞)
- vite: 6.x → 7.2.7 (修复 3 个安全漏洞)
- electron: 37.1.0 → 39.2.6 (修复 ASAR 完整性绕过)
- electron-builder: 24.13.3 → 26.0.12
- electron-builder-squirrel-windows: 新增 26.0.12
- electron-updater: 6.3.9 → 6.6.2
- vue-i18n: 10.0.6 → 11.2.2 (修复 XSS 漏洞)
- @modelcontextprotocol/sdk: 1.16.0 → 1.24.3 (修复 DNS 重绑定)
- element-plus: 2.10.2 → 2.12.0 (修复 el-link href 验证)
- @typescript-eslint/*: 6.21.0 → 8.49.0 (支持 TypeScript 5.8.3)

自动修复的传递依赖:
- jws: 4.0.1, form-data: 4.0.5, tmp: 0.2.5
- body-parser: 2.2.1, @eslint/plugin-kit: 0.3.5

其他:
- 修复 lint 错误 (未使用的 catch 变量添加 _ 前缀)
2025-12-07 15:59:24 +08:00
linshen bd1dab6761 build(dependencies): 更新依赖项并调整项目结构
- 更新项目版本至 1.0.3- 移动 dotenv 和 js-yaml 依赖至 devDependencies
- 更新 @intlify/message-compiler 和 @intlify/shared 版本- 调整 pnpm-lock.yaml 中的依赖项版本
2025-03-22 14:39:22 +08:00
linshen 22638cbde0 refactor: Migrate from LangChain to native SDKs for LLM services
- Replace LangChain dependencies with native OpenAI and Google Generative AI SDKs
- Rewrite LLMService to use direct API calls for OpenAI and Gemini
- Update core package dependencies to remove LangChain-related packages
- Modify message handling and streaming logic to work with new SDK implementations
- Simplify model configuration and instance management
- Update integration and unit tests to support new SDK approach
- Remove LangChain-specific message conversion and streaming methods
2025-02-23 09:12:00 +08:00
linshen 9902d7b0d8 refactor: Modularize UI package and improve type safety in extension and web apps
- Extract common composables and services in UI package
- Implement useServiceInitializer, useModelManager, and useHistoryManager
- Enhance type safety with TypeScript configuration updates
- Simplify App.vue in extension and web packages
- Remove redundant code and improve component modularity
- Update package dependencies and lock files
2025-02-18 21:03:41 +08:00
linshen 04dccf3e38 refactor: Migrate extension package components to UI package
- Move all Vue components from extension package to @prompt-optimizer/ui
- Remove local component implementations in extension package
- Update import statements to use UI package components
- Add necessary dependencies for component migration
- Simplify extension package structure and improve code modularity
- Prepare for unified component management across packages
2025-02-15 19:28:14 +08:00
linshen 5e42a81aa4 refactor: Extract UI components to separate package
- Move common Vue components from web package to new @prompt-optimizer/ui package
- Update import statements in web package to use @prompt-optimizer/ui
- Add necessary dependencies for UI package
- Simplify component imports and improve code modularity
- Update package.json files to include new UI package dependency
2025-02-15 15:18:59 +08:00
linshen 89f82da862 chore: Update pnpm-lock.yaml with extension package dependencies
- Add LangChain and related dependencies for the extension package
- Update package versions for core libraries like Vue, Element Plus, and LangChain
- Include development dependencies for Tailwind CSS and Vite
2025-02-15 12:43:11 +08:00