aicodeswitch 6.0.1 → 6.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -4,7 +4,7 @@
4
4
  <meta charset="UTF-8" />
5
5
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
6
6
  <title>AI Code Switch</title>
7
- <script type="module" crossorigin src="./assets/index-BeM4AIzn.js"></script>
7
+ <script type="module" crossorigin src="./assets/index-BOeOgctP.js"></script>
8
8
  <link rel="modulepreload" crossorigin href="./assets/three-CFpmPosW.js">
9
9
  <link rel="stylesheet" crossorigin href="./assets/index-DqRzbMIU.css">
10
10
  </head>
package/package.json CHANGED
@@ -1,8 +1,11 @@
1
1
  {
2
2
  "name": "aicodeswitch",
3
- "version": "6.0.1",
3
+ "version": "6.0.3",
4
4
  "description": "A tool to help you manage AI programming tools to access large language models locally. It allows your Claude Code, Codex and other tools to no longer be limited to official models.",
5
- "author": "tangshuang",
5
+ "author": {
6
+ "name": "tangshuang",
7
+ "email": "mail@tangshuang.net"
8
+ },
6
9
  "license": "GPL-3.0",
7
10
  "homepage": "https://github.com/tangshuang/aicodeswitch",
8
11
  "repository": {
@@ -24,7 +27,8 @@
24
27
  "development",
25
28
  "typescript",
26
29
  "express",
27
- "react"
30
+ "react",
31
+ "electron"
28
32
  ],
29
33
  "engines": {
30
34
  "node": ">=18.0.0"
@@ -45,11 +49,10 @@
45
49
  "lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
46
50
  "prepublishOnly": "npm run build",
47
51
  "release": "standard-version --no-changelog",
48
- "tauri:dev": "tauri dev",
49
- "tauri:start": "yarn build && node tauri/prepare-resources.js && cd tauri && cargo run",
50
- "tauri:build": "tauri build && node tauri/move-bundle.js",
51
- "tauri:icon": "tauri icon src/ui/assets/logo.png",
52
- "version:sync": "node tauri/sync-version.js"
52
+ "electron:dev": "node scripts/electron-icon.js && node scripts/electron-dev.js",
53
+ "electron:start": "yarn electron:icon && yarn build && electron electron/main.js",
54
+ "electron:build": "yarn electron:icon && yarn build && electron-builder",
55
+ "electron:icon": "node scripts/electron-icon.js"
53
56
  },
54
57
  "standard-version": {
55
58
  "skip": {
@@ -72,7 +75,6 @@
72
75
  "ws": "^8.19.0"
73
76
  },
74
77
  "devDependencies": {
75
- "@tauri-apps/cli": "^2.0.0",
76
78
  "@types/cors": "^2.8.17",
77
79
  "@types/crypto-js": "^4.2.2",
78
80
  "@types/express": "^4.17.21",
@@ -87,6 +89,8 @@
87
89
  "concurrently": "^8.2.2",
88
90
  "cross-env": "^10.1.0",
89
91
  "dayjs": "^1.11.19",
92
+ "electron": "^33.0.0",
93
+ "electron-builder": "^25.1.8",
90
94
  "eslint": "^8.55.0",
91
95
  "eslint-plugin-react-hooks": "^4.6.0",
92
96
  "eslint-plugin-react-refresh": "^0.4.5",
@@ -101,5 +105,64 @@
101
105
  "tsx": "^4.7.0",
102
106
  "typescript": "^5.2.2",
103
107
  "vite": "^5.0.8"
108
+ },
109
+ "build": {
110
+ "appId": "net.tangshuang.aicodeswitch",
111
+ "productName": "AI Code Switch",
112
+ "copyright": "Copyright © 2026 tangshuang",
113
+ "directories": {
114
+ "output": "release",
115
+ "buildResources": "build"
116
+ },
117
+ "files": [
118
+ "dist/**/*",
119
+ "electron/**/*",
120
+ "package.json"
121
+ ],
122
+ "extraMetadata": {
123
+ "main": "electron/main.js"
124
+ },
125
+ "asar": false,
126
+ "icon": "build/icon.png",
127
+ "mac": {
128
+ "category": "public.app-category.developer-tools",
129
+ "target": [
130
+ {
131
+ "target": "dmg",
132
+ "arch": [
133
+ "x64",
134
+ "arm64"
135
+ ]
136
+ },
137
+ {
138
+ "target": "zip",
139
+ "arch": [
140
+ "x64",
141
+ "arm64"
142
+ ]
143
+ }
144
+ ],
145
+ "hardenedRuntime": false,
146
+ "gatekeeperAssess": false
147
+ },
148
+ "win": {
149
+ "target": [
150
+ "nsis"
151
+ ]
152
+ },
153
+ "nsis": {
154
+ "oneClick": false,
155
+ "perMachine": false,
156
+ "allowToChangeInstallationDirectory": true,
157
+ "createDesktopShortcut": true,
158
+ "createStartMenuShortcut": true
159
+ },
160
+ "linux": {
161
+ "category": "Development",
162
+ "target": [
163
+ "AppImage",
164
+ "deb"
165
+ ]
166
+ }
104
167
  }
105
168
  }