vipcare 0.3.4 → 0.3.6
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/vip.js +6 -9
- package/package.json +1 -1
package/bin/vip.js
CHANGED
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
import { Command } from 'commander';
|
|
4
4
|
import fs from 'fs';
|
|
5
5
|
import os from 'os';
|
|
6
|
+
import path from 'path';
|
|
6
7
|
import readline from 'readline/promises';
|
|
7
8
|
import { execFileSync } from 'child_process';
|
|
8
9
|
import { checkTool, getProfilesDir, loadConfig, saveConfig } from '../lib/config.js';
|
|
@@ -800,19 +801,15 @@ program.command('init')
|
|
|
800
801
|
const { CONFIG_FILE: cfgPath } = await import('../lib/config.js');
|
|
801
802
|
console.log(c.green(`\nConfig saved to ${cfgPath}`));
|
|
802
803
|
|
|
803
|
-
// Install Claude Code skill
|
|
804
|
+
// Install Claude Code skill by default
|
|
804
805
|
const skillSrc = new URL('../skill/vip.md', import.meta.url);
|
|
805
806
|
const skillDest = path.join(os.homedir(), '.claude', 'commands', 'vip.md');
|
|
806
807
|
|
|
807
808
|
if (fs.existsSync(new URL(skillSrc).pathname)) {
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
fs.copyFileSync(new URL(skillSrc).pathname, skillDest);
|
|
813
|
-
console.log(c.green(` Installed: ${skillDest}`));
|
|
814
|
-
console.log(c.dim(' Use /vip in Claude Code to manage profiles with natural language'));
|
|
815
|
-
}
|
|
809
|
+
fs.mkdirSync(path.dirname(skillDest), { recursive: true });
|
|
810
|
+
fs.copyFileSync(new URL(skillSrc).pathname, skillDest);
|
|
811
|
+
console.log(c.green(`\n/vip skill installed: ${skillDest}`));
|
|
812
|
+
console.log(c.dim(' Use /vip in Claude Code to manage profiles with natural language'));
|
|
816
813
|
}
|
|
817
814
|
|
|
818
815
|
console.log(`\nYou're ready! Try: ${c.cyan('vip add "Sam Altman" --company "OpenAI"')}\n`);
|