ai-zero-token 1.0.9 → 2.0.0

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.
package/package.json CHANGED
@@ -1,8 +1,9 @@
1
1
  {
2
2
  "name": "ai-zero-token",
3
- "version": "1.0.9",
3
+ "version": "2.0.0",
4
4
  "description": "Local-first OpenAI-compatible AI CLI and gateway with Codex OAuth, multi-account management, and gpt-image-2 image generation/editing.",
5
5
  "license": "MIT",
6
+ "author": "AI Zero Token Contributors",
6
7
  "type": "module",
7
8
  "repository": {
8
9
  "type": "git",
@@ -16,6 +17,7 @@
16
17
  "azt": "dist/cli.js",
17
18
  "ai-zero-token": "dist/cli.js"
18
19
  },
20
+ "main": "dist/desktop/main.js",
19
21
  "keywords": [
20
22
  "ai",
21
23
  "cli",
@@ -40,8 +42,19 @@
40
42
  "ask": "bun src/cli.ts ask",
41
43
  "start": "bun src/cli.ts start",
42
44
  "serve": "bun src/cli.ts serve",
43
- "build": "tsup",
44
- "typecheck": "bunx tsc -p tsconfig.json --noEmit",
45
+ "dev": "node scripts/dev.mjs web",
46
+ "build": "npm run build:ui && npm run build:server",
47
+ "build:server": "tsup",
48
+ "build:ui": "vite build --config admin-ui/vite.config.ts",
49
+ "desktop": "npm run build && electron .",
50
+ "desktop:dev": "node scripts/dev.mjs desktop",
51
+ "dist": "npm run build && electron-builder",
52
+ "dist:dir": "npm run build && electron-builder --dir",
53
+ "dist:mac": "npm run build && electron-builder --mac",
54
+ "dist:win": "npm run build && electron-builder --win",
55
+ "typecheck": "npm run typecheck:server && npm run typecheck:ui",
56
+ "typecheck:server": "bunx tsc -p tsconfig.json --noEmit",
57
+ "typecheck:ui": "tsc -p admin-ui/tsconfig.json --noEmit",
45
58
  "prepack": "npm run build",
46
59
  "pack:dry": "npm pack --dry-run"
47
60
  },
@@ -52,13 +65,67 @@
52
65
  },
53
66
  "devDependencies": {
54
67
  "@types/node": "^25.5.0",
68
+ "@types/react": "^19.2.14",
69
+ "@types/react-dom": "^19.2.3",
70
+ "@vitejs/plugin-react": "^6.0.1",
71
+ "electron": "^41.3.0",
72
+ "electron-builder": "^26.8.1",
73
+ "lucide-react": "^1.14.0",
74
+ "react": "^19.2.5",
75
+ "react-dom": "^19.2.5",
55
76
  "tsup": "^8.5.1",
56
- "typescript": "^5.9.3"
77
+ "typescript": "^5.9.3",
78
+ "vite": "^8.0.10"
79
+ },
80
+ "build": {
81
+ "appId": "com.aizerotoken.desktop",
82
+ "productName": "AI Zero Token",
83
+ "directories": {
84
+ "output": "release"
85
+ },
86
+ "files": [
87
+ "dist/**/*",
88
+ "admin-ui/dist/**/*",
89
+ "build/icon.*",
90
+ "package.json",
91
+ "README.md",
92
+ "README.zh-CN.md",
93
+ "LICENSE"
94
+ ],
95
+ "extraMetadata": {
96
+ "main": "dist/desktop/main.js"
97
+ },
98
+ "asar": true,
99
+ "mac": {
100
+ "icon": "build/icon.icns",
101
+ "category": "public.app-category.developer-tools",
102
+ "target": [
103
+ "dmg",
104
+ "zip"
105
+ ]
106
+ },
107
+ "win": {
108
+ "icon": "build/icon.ico",
109
+ "target": [
110
+ "nsis",
111
+ "zip"
112
+ ]
113
+ },
114
+ "nsis": {
115
+ "oneClick": false,
116
+ "allowToChangeInstallationDirectory": true
117
+ }
57
118
  },
58
119
  "files": [
59
120
  "dist",
121
+ "admin-ui/dist",
122
+ "build/icon.png",
123
+ "build/icon.icns",
124
+ "build/icon.ico",
60
125
  "CHANGELOG.md",
61
126
  "docs/API_USAGE.md",
127
+ "docs/DESKTOP_RELEASE.md",
128
+ "docs/PRODUCT_UPDATE_DESKTOP_TOOLBOX.md",
62
129
  "README.md",
63
130
  "README.zh-CN.md",
64
131
  "package.json"