code-abyss 1.6.2 → 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.
- package/bin/install.js +7 -4
- 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.
|
|
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:
|
|
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
|
|
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 未检测到,正在安装...');
|