@88code/byebyecode 1.1.15 → 1.1.16

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/bin/byebyecode.js CHANGED
@@ -196,6 +196,7 @@ function checkVersionAndNotify() {
196
196
  const currentVersion = require(packageJsonPath).version;
197
197
 
198
198
  // 从 npm registry 获取最新版本
199
+ // console.error('Checking for updates...'); // Optional: verbose feedback
199
200
  const latestVersion = execSync('npm view @88code/byebyecode version', {
200
201
  encoding: 'utf8',
201
202
  timeout: 5000,
@@ -213,14 +214,14 @@ function checkVersionAndNotify() {
213
214
 
214
215
  // 创建提示信息
215
216
  const notice = `
216
- ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
217
- 📦 发现 byebyecode 新版本!
218
- 当前版本: v${currentVersion}
219
- 最新版本: v${latestVersion}
217
+ \x1b[36m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\x1b[0m
218
+ \x1b[1m📦 发现 byebyecode 新版本!\x1b[0m
219
+ 当前版本: \x1b[33mv${currentVersion}\x1b[0m
220
+ 最新版本: \x1b[32mv${latestVersion}\x1b[0m
220
221
 
221
- 💡 更新将在您下次启动 Claude Code 时自动进行
222
+ \x1b[36m💡 更新将在您启动 Claude Code 时自动进行\x1b[0m
222
223
  (或手动运行: npm update -g @88code/byebyecode)
223
- ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
224
+ \x1b[36m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\x1b[0m
224
225
  `.trim();
225
226
 
226
227
  fs.writeFileSync(noticeFile, notice);
@@ -383,6 +384,7 @@ const result = spawnSync(binaryPath, process.argv.slice(2), {
383
384
  });
384
385
 
385
386
  // 步骤 4: 执行完毕后,异步检查版本
386
- setImmediate(() => checkVersionAndNotify());
387
+ // 步骤 4: 执行完毕后,同步检查版本 (为了确保在进程退出前执行)
388
+ checkVersionAndNotify();
387
389
 
388
390
  process.exitCode = result.status || 0;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@88code/byebyecode",
3
- "version": "1.1.15",
3
+ "version": "1.1.16",
4
4
  "description": "CCometixLine - High-performance Claude Code StatusLine tool",
5
5
  "bin": {
6
6
  "byebyecode": "./bin/byebyecode.js"
@@ -9,11 +9,11 @@
9
9
  "postinstall": "node scripts/postinstall.js"
10
10
  },
11
11
  "optionalDependencies": {
12
- "@88code/byebyecode-darwin-x64": "1.1.15",
13
- "@88code/byebyecode-darwin-arm64": "1.1.15",
14
- "@88code/byebyecode-linux-x64": "1.1.15",
15
- "@88code/byebyecode-linux-x64-musl": "1.1.15",
16
- "@88code/byebyecode-win32-x64": "1.1.15"
12
+ "@88code/byebyecode-darwin-x64": "1.1.16",
13
+ "@88code/byebyecode-darwin-arm64": "1.1.16",
14
+ "@88code/byebyecode-linux-x64": "1.1.16",
15
+ "@88code/byebyecode-linux-x64-musl": "1.1.16",
16
+ "@88code/byebyecode-win32-x64": "1.1.16"
17
17
  },
18
18
  "repository": {
19
19
  "type": "git",