@kaitranntt/ccs 5.9.0-dev.4 → 5.9.0-dev.5

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/VERSION CHANGED
@@ -1 +1 @@
1
- 5.9.0-dev.4
1
+ 5.9.0-dev.5
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kaitranntt/ccs",
3
- "version": "5.9.0-dev.4",
3
+ "version": "5.9.0-dev.5",
4
4
  "description": "Claude Code Switch - Instant profile switching between Claude Sonnet 4.5 and GLM 4.6",
5
5
  "keywords": [
6
6
  "cli",
@@ -73,8 +73,8 @@
73
73
  "ui:build": "cd ui && bun run build",
74
74
  "ui:preview": "cd ui && bun run preview",
75
75
  "ui:validate": "cd ui && bun run validate",
76
- "prepublishOnly": "bun run validate && node scripts/sync-version.js",
77
- "prepack": "bun run validate && node scripts/sync-version.js",
76
+ "prepublishOnly": "bun run build:all && bun run validate && node scripts/sync-version.js",
77
+ "prepack": "bun run build:all && bun run validate && node scripts/sync-version.js",
78
78
  "prepare": "husky",
79
79
  "postinstall": "node scripts/postinstall.js"
80
80
  },
@@ -1,7 +1,8 @@
1
1
  #!/usr/bin/env node
2
2
 
3
3
  /**
4
- * Verify UI bundle size is under 500KB gzipped
4
+ * Verify UI bundle size is under 1MB gzipped
5
+ * React + shadcn/ui dashboard typically ranges 600-900KB
5
6
  */
6
7
 
7
8
  const fs = require('fs');
@@ -9,7 +10,7 @@ const path = require('path');
9
10
  const zlib = require('zlib');
10
11
 
11
12
  const UI_DIR = path.join(__dirname, '../dist/ui');
12
- const MAX_SIZE = 500 * 1024; // 500KB
13
+ const MAX_SIZE = 1024 * 1024; // 1MB
13
14
 
14
15
  function getGzipSize(filePath) {
15
16
  const content = fs.readFileSync(filePath);
@@ -41,7 +42,7 @@ const totalSize = walkDir(UI_DIR);
41
42
  const sizeKB = (totalSize / 1024).toFixed(1);
42
43
 
43
44
  if (totalSize > MAX_SIZE) {
44
- console.log(`[X] Bundle too large: ${sizeKB}KB gzipped (max: 500KB)`);
45
+ console.log(`[X] Bundle too large: ${sizeKB}KB gzipped (max: 1024KB)`);
45
46
  process.exit(1);
46
47
  } else {
47
48
  console.log(`[OK] Bundle size: ${sizeKB}KB gzipped`);