Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
120 commits
Select commit Hold shift + click to select a range
bfb5d47
chore: yarn to pnpm
zhangmo8 Jun 3, 2025
ea7da03
fix: fix ci for pnpm
zhangmo8 Jun 3, 2025
d52b1a2
fix: fix ci for pnpm
zhangmo8 Jun 3, 2025
e46da0a
chore: only pnpm
zhangmo8 Jun 3, 2025
f4c5d44
Merge pull request #444 from zhangmo8/to-pnpm
zerob13 Jun 3, 2025
89fbeec
fix: fix sharp on mac arm build by x64
zhangmo8 Jun 3, 2025
6a373c2
Merge pull request #449 from zhangmo8/to-pnpm
zerob13 Jun 4, 2025
e3e8df3
togetherAI
Jun 11, 2025
291eb23
ci: change node options for runner
zerob13 Jun 12, 2025
8f5c6c3
fix: disable show hide window shortcut key for now
zerob13 Jun 12, 2025
a97279a
apitype
Jun 12, 2025
c53efa3
feat: show laste-version-dialog tips for user
zhangmo8 Jun 12, 2025
afd87f5
feat: tray menu check version
zhangmo8 Jun 12, 2025
4bee744
revert: revert i18n
zhangmo8 Jun 12, 2025
73acb0b
chore(lint): add oxlint support
zerob13 Jun 12, 2025
2fbfc40
ci: add lint to pr check
zerob13 Jun 12, 2025
972afda
Merge pull request #505 from zhangmo8/tray-check-version
zerob13 Jun 12, 2025
7609944
Merge pull request #506 from ThinkInAIXYZ/refactor/oxlint
zerob13 Jun 12, 2025
962d157
Merge branch 'dev' into laste-version-tips
zhangmo8 Jun 12, 2025
e38f81f
feat: make up local
zhangmo8 Jun 12, 2025
8466745
Merge pull request #504 from zhangmo8/laste-version-tips
zerob13 Jun 12, 2025
305086e
feat: setting show/hide key
zhangmo8 Jun 12, 2025
a1450a5
Merge pull request #497 from noQuli/provider/togetherAI
zerob13 Jun 12, 2025
fffaf6f
Update src/renderer/src/components/settings/ShortcutSettings.vue
zhangmo8 Jun 12, 2025
f6b8d1c
Merge pull request #507 from zhangmo8/shortcut-key
zerob13 Jun 12, 2025
03af3ea
wip: add vitest
zerob13 Jun 12, 2025
c98760f
ci: change pr checkto pnpm
zerob13 Jun 12, 2025
dd7e411
test: add llmprovider vitest file
zerob13 Jun 12, 2025
5d4e723
ci: fix pr check
zerob13 Jun 12, 2025
c2bc462
fix: typo and ai pr suggestion
zerob13 Jun 12, 2025
66c108b
test: add default test cli
zerob13 Jun 12, 2025
0bbb40f
Merge pull request #509 from ThinkInAIXYZ/refactor/add-test
zerob13 Jun 12, 2025
0fc01db
Merge branch 'dev' into refactor/migration-to-pnpm
zerob13 Jun 13, 2025
333be79
ci: try to support cross system build in pnpm
zerob13 Jun 13, 2025
3c205c2
fix: typo
zerob13 Jun 13, 2025
384aca6
fix: remove glibc
zerob13 Jun 13, 2025
f47907a
fix: fix script
zerob13 Jun 13, 2025
dd8b701
ci: fix cross build
zerob13 Jun 13, 2025
1e6e56e
chore: remove useless @type package
zerob13 Jun 13, 2025
2b0b430
doc: update readme and contributing
zerob13 Jun 13, 2025
06290d1
fix: close #494
zerob13 Jun 13, 2025
734fa3c
ci: update prcheck for pnpm
zerob13 Jun 13, 2025
0f0ca69
fix: resize with delay to fix some time WINDOW_MAXIMIZED not resize tab
zerob13 Jun 13, 2025
b1e1d2b
Update scripts/install-sharp-for-platform.js
zerob13 Jun 13, 2025
2ae25aa
fix: add current to linux arm
zerob13 Jun 13, 2025
b7da2f4
ci: change to yaml to parse yaml
zerob13 Jun 13, 2025
08e03dc
ci: need install yaml for edit script
zerob13 Jun 13, 2025
baf950a
ci: update prchck
zerob13 Jun 13, 2025
38ce0b8
Merge pull request #511 from ThinkInAIXYZ/refactor/migration-to-pnpm
zerob13 Jun 14, 2025
b1229cc
docs(README): add details about pnpm under win32
neoragex2002 Jun 14, 2025
cff1cab
Merge pull request #512 from neoragex2002/PR
zerob13 Jun 14, 2025
0ef7be9
wip: add modelconfig settings
zerob13 Jun 15, 2025
7fa23d5
feat: add vitest for modelconfig
zerob13 Jun 15, 2025
ffd92da
wip: remove outdated code
zerob13 Jun 15, 2025
0c1ce9a
fix(agent): fix inconsistent fc call record format in chained non-nat…
neoragex2002 Jun 15, 2025
d182048
feat: add model settings
zerob13 Jun 15, 2025
d6c168c
fix: fix coderabbit warnings
neoragex2002 Jun 15, 2025
530690a
feat: i18n support
zerob13 Jun 15, 2025
8e4807a
Merge pull request #515 from neoragex2002/PR
zerob13 Jun 15, 2025
0fa7eb1
refactor: batch get model status, less ipc calls when init
zerob13 Jun 15, 2025
312f3ee
fix: add ignore in prettier
zerob13 Jun 15, 2025
c6ce48a
fix: ignore shadcn in prettier
zerob13 Jun 15, 2025
c8ba221
fix: ignore config in prettier
zerob13 Jun 15, 2025
ba4e159
fix: ignore .github
zerob13 Jun 15, 2025
7970374
fix: ignore electron.vite.config.ts
zerob13 Jun 15, 2025
f4cc34b
chore: format code
zerob13 Jun 15, 2025
438fd3d
fix: CodeRabbit suggest
zerob13 Jun 15, 2025
ec4e900
Merge branch 'dev' into feature/custom-model-config
zerob13 Jun 15, 2025
90fc08d
Merge pull request #516 from ThinkInAIXYZ/feature/custom-model-config
zerob13 Jun 15, 2025
7b593f7
chore: support bun and uv
zerob13 Jun 16, 2025
efe124d
feat: mcpClient support bun and uv
zerob13 Jun 16, 2025
ab0e605
feat: fix powerserver
zerob13 Jun 16, 2025
61bbcb5
feat: add test for bun and uv
zerob13 Jun 16, 2025
51f2850
feat: support uvx and bun
zerob13 Jun 16, 2025
bad8bf4
chore: remove log
zerob13 Jun 16, 2025
fcf35cf
Merge pull request #519 from ThinkInAIXYZ/refactor/inject-bun-and-uv-…
zerob13 Jun 16, 2025
70dee84
fix: windows arm ship with node
zerob13 Jun 17, 2025
5cb1ab5
fix: update the default model selection logic to ensure that only the…
hllshiro Jun 17, 2025
5957096
fix: improve model selection logic to handle multiple providers
hllshiro Jun 17, 2025
a2ac58b
fix: enhance model selection to include provider IDs for better ident…
hllshiro Jun 17, 2025
f1d9706
fix: update model selection to include ImageGeneration type
hllshiro Jun 17, 2025
4513082
refactor: remove redundant server status sorting logic
hllshiro Jun 17, 2025
b6502f9
Merge pull request #520 from hllshiro/fix-default-enable-model
zerob13 Jun 17, 2025
f7fb641
Merge pull request #523 from hllshiro/perf-mcp-list-sort
zerob13 Jun 17, 2025
738bc39
chore: update minimax api
zerob13 Jun 17, 2025
ba91e0a
feat: support ppio model config api
zerob13 Jun 17, 2025
ec0d979
fix(agent): improve accuracy of semantic descriptions for non-native …
neoragex2002 Jun 17, 2025
007746c
feat: openrouter model config api
zerob13 Jun 17, 2025
3472359
chore: format code
zerob13 Jun 17, 2025
fa8a91a
Merge pull request #526 from neoragex2002/PR
zerob13 Jun 17, 2025
90fc790
docs: 将 "Model Controller Platform (MCP)" 修正为 "Model Context Protocol…
wushanchao Jun 17, 2025
139ae06
fix custom modle not show in the chat list
astaxie Jun 18, 2025
0125c0b
Merge pull request #528 from wushanchao/dev
zerob13 Jun 18, 2025
0ec3e75
Merge pull request #529 from ThinkInAIXYZ/fix-modules
zerob13 Jun 18, 2025
55f4de6
fix: code rabbit fix
zerob13 Jun 18, 2025
58da015
Merge pull request #527 from ThinkInAIXYZ/feature/enhance-provider-api
zerob13 Jun 18, 2025
f389214
feat: support e2b sandbox
zerob13 Jun 18, 2025
8384994
feat: add i18n support for e2b
zerob13 Jun 18, 2025
a8d6be0
fix: remove unuse code
zerob13 Jun 18, 2025
af77553
Merge pull request #531 from ThinkInAIXYZ/feature/add-e2b-support
zerob13 Jun 18, 2025
57ae5a8
feat: enhance model selection logic in common setting.
hllshiro Jun 18, 2025
124f0a1
fix: remove unused 'tag' prop from ModelSelect component
hllshiro Jun 18, 2025
36fa261
fix: improve prop type definition and default handling in ModelSelect…
hllshiro Jun 18, 2025
e6e6353
Merge pull request #533 from hllshiro/fix-model-select
zerob13 Jun 18, 2025
a57800c
fix: #530
zerob13 Jun 18, 2025
202e79c
chore: update gemini model list
zerob13 Jun 19, 2025
2892dfd
chore: update gemini config
zerob13 Jun 19, 2025
befa7f5
feat: support minimax and fix #538
zerob13 Jun 19, 2025
a6c9a3f
feat: support gemini list model api
zerob13 Jun 19, 2025
0c74a8b
fix: gemini auto enable
zerob13 Jun 19, 2025
8f17b58
fix: gemini image model
zerob13 Jun 19, 2025
b8f0f51
feat: add support for mcp http 400
zerob13 Jun 19, 2025
65a684d
Merge pull request #540 from ThinkInAIXYZ/feature/streamable-http-ses…
zerob13 Jun 19, 2025
390bc80
fix(markdown): initial style undefined
Simon-He95 Jun 19, 2025
828c354
Merge pull request #541 from Simon-He95/dev
zerob13 Jun 20, 2025
5b553c1
fix: custom models fix #544
zerob13 Jun 20, 2025
712c3e3
fix: remove unuse code
zerob13 Jun 20, 2025
7086292
fix: do not show update dialog when no need to update
zerob13 Jun 21, 2025
38516b2
chore: 0.2.4 ready to release
zerob13 Jun 21, 2025
2306f3a
fix: typo
zerob13 Jun 21, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions .cursor/rules/build-deploy.mdc

This file was deleted.

59 changes: 16 additions & 43 deletions .cursor/rules/development-setup.mdc
Original file line number Diff line number Diff line change
@@ -1,53 +1,26 @@
---
description:
globs:
alwaysApply: false
alwaysApply: true
---
# 开发环境设置指南
- 使用 OxLint 进行代码检查
- 使用 pnpm 包管理
- Log和注释使用英文书写
- Node.js >= 22
- pnpm >= 9

## 环境要求
- Node.js 16+
- npm 7+
- Git
# install
`pnpm install`

## 开发工具
- VS Code(推荐)
- Vue DevTools
- Electron DevTools
# lint
`pnpm run lint`

## 开发环境设置步骤
# format
`pnpm run format`

1. 安装依赖:
```bash
npm install
```
# dev
`pnpm run dev`

2. 开发模式启动:
```bash
npm run dev
```

3. 构建应用:
```bash
npm run build
```

## 开发规范

1. 代码风格
- 使用 ESLint 进行代码检查
- 使用 Prettier 进行代码格式化
- 遵循 [.eslintrc.cjs](mdc:.eslintrc.cjs) 中的规则
- 遵循 [.prettierrc.yaml](mdc:.prettierrc.yaml) 中的格式化规则

2. Git 提交规范
- 遵循 [CONTRIBUTING.md](mdc:CONTRIBUTING.md) 中的提交规范
- 使用语义化提交信息

3. 测试规范
- 编写单元测试
- 运行测试:`npm run test`

4. 文档规范
- 更新相关文档
- 保持 README 文件的最新状态
# build
`pnpm run build`
91 changes: 69 additions & 22 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,25 +28,43 @@ jobs:
platform: win-arm64
steps:
- uses: actions/checkout@v4

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '22'
node-version: '22.13.1'

- name: Setup pnpm
uses: pnpm/action-setup@v2
with:
version: 10.12.1

- name: Install dependencies
run: npm install
run: pnpm install

- name: Configure pnpm workspace for Windows ${{ matrix.arch }}
run: pnpm run install:sharp
env:
TARGET_OS: win32
TARGET_ARCH: ${{ matrix.arch }}

- name: Install dependencies
run: pnpm install
env:
npm_config_build_from_source: true
npm_config_platform: win32
npm_config_arch: ${{ matrix.arch }}

- name: Install Node Runtime
run: npm run installRuntime:win:${{ matrix.arch }}
- name: Install Sharp
run: npm install sharp --build-from-source
run: pnpm run installRuntime:win:${{ matrix.arch }}

- name: Build Windows
run: npm run build:win:${{ matrix.arch }}
run: pnpm run build:win:${{ matrix.arch }}
env:
VITE_GITHUB_CLIENT_ID: ${{ secrets.DC_GITHUB_CLIENT_ID }}
VITE_GITHUB_CLIENT_SECRET: ${{ secrets.DC_GITHUB_CLIENT_SECRET }}
VITE_GITHUB_REDIRECT_URI: ${{ secrets.DC_GITHUB_REDIRECT_URI }}

- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
Expand All @@ -67,25 +85,39 @@ jobs:
platform: linux-x64
steps:
- uses: actions/checkout@v4

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '22'
node-version: '22.13.1'

- name: Setup pnpm
uses: pnpm/action-setup@v2
with:
version: 10.12.1

- name: Install dependencies
run: npm install
run: pnpm install

- name: Configure pnpm workspace for Linux ${{ matrix.arch }}
run: pnpm run install:sharp
env:
npm_config_platform: linux
npm_config_arch: ${{ matrix.arch }}
TARGET_OS: linux
TARGET_ARCH: ${{ matrix.arch }}

- name: Install dependencies
run: pnpm install

- name: Install Node Runtime
run: npm run installRuntime:linux:${{ matrix.arch }}
- name: Install Sharp
run: npm install --cpu=wasm32 sharp
run: pnpm run installRuntime:linux:${{ matrix.arch }}

- name: Build Linux
run: npm run build:linux:${{ matrix.arch }}
run: pnpm run build:linux:${{ matrix.arch }}
env:
VITE_GITHUB_CLIENT_ID: ${{ secrets.DC_GITHUB_CLIENT_ID }}
VITE_GITHUB_CLIENT_SECRET: ${{ secrets.DC_GITHUB_CLIENT_SECRET }}
VITE_GITHUB_REDIRECT_URI: ${{ secrets.DC_GITHUB_REDIRECT_URI }}

- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
Expand All @@ -107,21 +139,34 @@ jobs:
platform: mac-arm64
steps:
- uses: actions/checkout@v4

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '22'
node-version: '22.13.1'

- name: Setup pnpm
uses: pnpm/action-setup@v2
with:
version: 10.12.1

- name: Install dependencies
run: npm install
run: pnpm install

- name: Configure pnpm workspace for macOS ${{ matrix.arch }}
run: pnpm run install:sharp
env:
npm_config_platform: darwin
npm_config_arch: ${{ matrix.arch }}
TARGET_OS: darwin
TARGET_ARCH: ${{ matrix.arch }}

- name: Install dependencies
run: pnpm install

- name: Install Node Runtime
run: npm run installRuntime:mac:${{ matrix.arch }}
- name: Install Sharp
run: npm i --cpu=${{ matrix.arch }} --os=darwin sharp
run: pnpm run installRuntime:mac:${{ matrix.arch }}

- name: Build Mac
run: npm run build:mac:${{ matrix.arch }}
run: pnpm run build:mac:${{ matrix.arch }}
env:
CSC_LINK: ${{ secrets.DEEPCHAT_CSC_LINK }}
CSC_KEY_PASSWORD: ${{ secrets.DEEPCHAT_CSC_KEY_PASS }}
Expand All @@ -132,6 +177,8 @@ jobs:
VITE_GITHUB_CLIENT_ID: ${{ secrets.DC_GITHUB_CLIENT_ID }}
VITE_GITHUB_CLIENT_SECRET: ${{ secrets.DC_GITHUB_CLIENT_SECRET }}
VITE_GITHUB_REDIRECT_URI: ${{ secrets.DC_GITHUB_REDIRECT_URI }}
NODE_OPTIONS: '--max-old-space-size=4096'

- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
Expand Down
34 changes: 24 additions & 10 deletions .github/workflows/prcheck.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,22 +14,36 @@ jobs:
arch: [x64]
include:
- arch: x64
platform: win-x64
steps:
- uses: actions/checkout@v4

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '22'
node-version: '22.13.1'

- name: Setup pnpm
uses: pnpm/action-setup@v2
with:
version: 10.12.1

- name: Install dependencies
run: npm install
run: pnpm install

- name: Configure pnpm workspace for Linux ${{ matrix.arch }}
run: pnpm run install:sharp
env:
npm_config_platform: linux
npm_config_arch: ${{ matrix.arch }}
- name: Install Sharp
run: npm install --cpu=wasm32 sharp
- name: Build
run: npm run build
TARGET_OS: linux
TARGET_ARCH: ${{ matrix.arch }}

- name: Install dependencies
run: pnpm install

- name: Check Lint
run: pnpm run lint

- name: Check translations
run: npm run i18n && npm run i18n:en
run: pnpm run i18n

- name: Build
run: pnpm run build
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue

Fix missing newline at end of file.

The file is missing a newline character at the end, which violates YAML formatting standards.

-        run: pnpm run build
+        run: pnpm run build
+
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
run: pnpm run build
run: pnpm run build
🧰 Tools
🪛 YAMLlint (1.37.1)

[error] 49-49: no new line character at the end of file

(new-line-at-end-of-file)

🤖 Prompt for AI Agents
In .github/workflows/prcheck.yml at line 49, add a newline character at the end
of the file to comply with YAML formatting standards and avoid potential parsing
issues.

17 changes: 17 additions & 0 deletions .oxlintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"ignorePatterns": [
"**/node_modules",
"**/dist",
"**/out",
".gitignore",
".github",
".cursor",
".vscode",
"build",
"resources",
"scripts",
"runtime",
"docs",
"test"
]
}
15 changes: 15 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,18 @@ tsconfig.json
tsconfig.*.json
CONTRIBUTING*.md
README*.md
docs
resources
runtime
scripts
build
*.yaml
tailwind.config.js
vitest.config.*
Dockerfile*
.env*
src/renderer/src/components/ui/*
.github
.cursor
.vscode
electron.vite.config.ts
12 changes: 7 additions & 5 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ We use GitHub to host code, to track issues and feature requests, as well as acc
- Code submitted to the `dev` branch must ensure:
- Basic functionality works
- No compilation errors
- Project can start normally with `npm run dev`
- Project can start normally with `pnpm run dev`

#### Major Features or Refactoring

Expand Down Expand Up @@ -84,12 +84,13 @@ We use GitHub to host code, to track issues and feature requests, as well as acc
4. Install project dependencies:

```bash
npm install
pnpm install
pnpm run installRuntime
```

5. Start the development server:
```bash
npm run dev
pnpm run dev
```

## Project Structure
Expand All @@ -109,8 +110,9 @@ We use GitHub to host code, to track issues and feature requests, as well as acc
Please ensure your code follows our style guidelines by running:

```bash
npm run build
npm run i18n
pnpm run lint
pnpm run build
pnpm run i18n
```

## Pull Request Process
Expand Down
13 changes: 7 additions & 6 deletions CONTRIBUTING.zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
- 提交到 `dev` 分支的代码必须确保:
- 功能基本正常
- 无编译错误
- 至少能够 `npm run dev` 正常启动
- 至少能够 `pnpm run dev` 正常启动

#### 大型功能新增或重构

Expand Down Expand Up @@ -84,13 +84,13 @@
4. 安装项目依赖:

```bash
npm install
npm run installRuntime
pnpm install
pnpm run installRuntime
```

5. 启动开发服务器:
```bash
npm run dev
pnpm run dev
```

## 项目结构
Expand All @@ -110,8 +110,9 @@ npm run dev
请确保您的代码符合我们的代码风格指南,可以运行以下命令:

```bash
npm run build
npm run i18n
pnpm run lint
pnpm run i18n
pnpm run build
```

## Pull Request 流程
Expand Down
Loading