vipcare 0.3.1 → 0.3.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/vip.js +18 -2
- package/package.json +1 -1
package/bin/vip.js
CHANGED
|
@@ -76,7 +76,7 @@ try {
|
|
|
76
76
|
} catch {}
|
|
77
77
|
|
|
78
78
|
const program = new Command();
|
|
79
|
-
program.name('vip').description('VIP Profile Builder - Auto-build VIP person profiles from public data').version('0.3.
|
|
79
|
+
program.name('vip').description('VIP Profile Builder - Auto-build VIP person profiles from public data').version('0.3.2');
|
|
80
80
|
|
|
81
81
|
// --- add ---
|
|
82
82
|
program.command('add')
|
|
@@ -798,7 +798,23 @@ program.command('init')
|
|
|
798
798
|
|
|
799
799
|
const { CONFIG_FILE: cfgPath } = await import('../lib/config.js');
|
|
800
800
|
console.log(c.green(`\nConfig saved to ${cfgPath}`));
|
|
801
|
-
|
|
801
|
+
|
|
802
|
+
// Install Claude Code skill
|
|
803
|
+
const skillSrc = new URL('../skill/vip.md', import.meta.url);
|
|
804
|
+
const skillDest = path.join(os.homedir(), '.claude', 'commands', 'vip.md');
|
|
805
|
+
|
|
806
|
+
if (fs.existsSync(new URL(skillSrc).pathname)) {
|
|
807
|
+
console.log(`\n${c.cyan('Claude Code /vip skill:')}`);
|
|
808
|
+
const installSkill = await rl.question(` Install /vip slash command for Claude Code? (Y/n) > `);
|
|
809
|
+
if (!installSkill.trim() || installSkill.trim().toLowerCase().startsWith('y')) {
|
|
810
|
+
fs.mkdirSync(path.dirname(skillDest), { recursive: true });
|
|
811
|
+
fs.copyFileSync(new URL(skillSrc).pathname, skillDest);
|
|
812
|
+
console.log(c.green(` Installed: ${skillDest}`));
|
|
813
|
+
console.log(c.dim(' Use /vip in Claude Code to manage profiles with natural language'));
|
|
814
|
+
}
|
|
815
|
+
}
|
|
816
|
+
|
|
817
|
+
console.log(`\nYou're ready! Try: ${c.cyan('vip add "Sam Altman" --company "OpenAI"')}\n`);
|
|
802
818
|
} finally {
|
|
803
819
|
rl.close();
|
|
804
820
|
}
|