skill-statusline 2.2.1 → 2.2.2
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/cli.js +15 -7
- package/package.json +1 -1
package/bin/cli.js
CHANGED
|
@@ -9,7 +9,7 @@ const readline = require('readline');
|
|
|
9
9
|
const args = process.argv.slice(2);
|
|
10
10
|
const command = args[0];
|
|
11
11
|
const subcommand = args[1];
|
|
12
|
-
const VERSION = '2.2.
|
|
12
|
+
const VERSION = '2.2.2';
|
|
13
13
|
|
|
14
14
|
const PKG_DIR = path.resolve(__dirname, '..');
|
|
15
15
|
const HOME = os.homedir();
|
|
@@ -352,13 +352,21 @@ async function install() {
|
|
|
352
352
|
writeConfig(config);
|
|
353
353
|
success(`Config: theme=${CYN}${config.theme}${R}, layout=${CYN}${config.layout}${R}`);
|
|
354
354
|
|
|
355
|
-
// Update settings.json
|
|
355
|
+
// Update settings.json — use absolute paths on Windows to avoid WSL bash conflict
|
|
356
356
|
const settings = readSettings();
|
|
357
|
-
if (!settings.statusLine) {
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
357
|
+
if (!settings.statusLine || settings.statusLine.command === 'bash ~/.claude/statusline-command.sh') {
|
|
358
|
+
const isWin = process.platform === 'win32';
|
|
359
|
+
let cmd;
|
|
360
|
+
if (isWin) {
|
|
361
|
+
// Windows has WSL bash at C:\Windows\System32\bash.exe which resolves ~ to /root/
|
|
362
|
+
// Must use Git Bash explicitly with absolute Windows paths
|
|
363
|
+
const gitBash = 'C:\\\\Program Files\\\\Git\\\\usr\\\\bin\\\\bash.exe';
|
|
364
|
+
const script = SCRIPT_DEST.replace(/\//g, '\\\\');
|
|
365
|
+
cmd = `"${gitBash}" "${script}"`;
|
|
366
|
+
} else {
|
|
367
|
+
cmd = 'bash ~/.claude/statusline-command.sh';
|
|
368
|
+
}
|
|
369
|
+
settings.statusLine = { type: 'command', command: cmd };
|
|
362
370
|
writeSettings(settings);
|
|
363
371
|
success(`${B}statusLine${R} config added to settings.json`);
|
|
364
372
|
} else {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "skill-statusline",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.2",
|
|
4
4
|
"description": "Rich, themeable statusline for Claude Code — accurate context tracking, 5 themes, 3 layouts, token/cost/GitHub/skill display. Pure bash, zero deps.",
|
|
5
5
|
"bin": {
|
|
6
6
|
"skill-statusline": "bin/cli.js",
|