code-abyss 1.6.1 → 1.6.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.
Files changed (2) hide show
  1. package/bin/install.js +9 -7
  2. package/package.json +1 -1
package/bin/install.js CHANGED
@@ -4,7 +4,7 @@ const fs = require('fs');
4
4
  const path = require('path');
5
5
  const os = require('os');
6
6
 
7
- const VERSION = '1.6.1';
7
+ const VERSION = '1.6.3';
8
8
  const HOME = os.homedir();
9
9
  const SKIP = ['__pycache__', '.pyc', '.pyo', '.egg-info', '.DS_Store', 'Thumbs.db', '.git'];
10
10
  const PKG_ROOT = path.join(__dirname, '..');
@@ -160,10 +160,11 @@ const SETTINGS_TEMPLATE = {
160
160
  }
161
161
  };
162
162
 
163
+ const CCLINE_CMD = process.platform === 'win32' ? 'ccline' : '~/.claude/ccline/ccline';
163
164
  const CCLINE_STATUS_LINE = {
164
165
  statusLine: {
165
166
  type: 'command',
166
- command: path.join(HOME, '.claude', 'ccline', 'ccline'),
167
+ command: CCLINE_CMD,
167
168
  padding: 0
168
169
  }
169
170
  };
@@ -342,11 +343,13 @@ async function installCcline(ctx) {
342
343
  console.log('');
343
344
  info('安装 ccline 状态栏...');
344
345
  const { execSync } = require('child_process');
345
- const cclineBin = path.join(HOME, '.claude', 'ccline', 'ccline');
346
346
 
347
347
  let installed = false;
348
348
  try { execSync('ccline --version', { stdio: 'pipe' }); installed = true; } catch (e) {}
349
- if (!installed && fs.existsSync(cclineBin)) installed = true;
349
+ if (!installed) {
350
+ const cclineBin = path.join(HOME, '.claude', 'ccline', 'ccline');
351
+ if (fs.existsSync(cclineBin)) installed = true;
352
+ }
350
353
 
351
354
  if (!installed) {
352
355
  info('ccline 未检测到,正在安装...');
@@ -370,9 +373,8 @@ async function installCcline(ctx) {
370
373
  ok('ccline/config.toml (已存在)');
371
374
  }
372
375
 
373
- const log = [];
374
- deepMergeNew(ctx.settings, CCLINE_STATUS_LINE, '', log);
375
- printMergeLog(log);
376
+ ctx.settings.statusLine = CCLINE_STATUS_LINE.statusLine;
377
+ ok(`statusLine → ${c.cyn(CCLINE_STATUS_LINE.statusLine.command)}`);
376
378
  fs.writeFileSync(ctx.settingsPath, JSON.stringify(ctx.settings, null, 2) + '\n');
377
379
 
378
380
  console.log('');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "code-abyss",
3
- "version": "1.6.1",
3
+ "version": "1.6.3",
4
4
  "description": "邪修红尘仙·宿命深渊 - 一键为 Claude Code / Codex CLI 注入邪修人格与安全工程知识体系",
5
5
  "keywords": [
6
6
  "claude",