skillvault 0.7.2 → 0.7.4
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/dist/cli.js +14 -7
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
import { existsSync, readFileSync, writeFileSync, mkdirSync, readdirSync, rmSync } from 'node:fs';
|
|
21
21
|
import { join } from 'node:path';
|
|
22
22
|
import { createDecipheriv, createHmac, createPublicKey, diffieHellman, hkdfSync, generateKeyPairSync, } from 'node:crypto';
|
|
23
|
-
const VERSION = '0.7.
|
|
23
|
+
const VERSION = '0.7.4';
|
|
24
24
|
const HOME = process.env.HOME || process.env.USERPROFILE || '~';
|
|
25
25
|
const API_URL = process.env.SKILLVAULT_API_URL || 'https://api.getskillvault.com';
|
|
26
26
|
const CONFIG_DIR = join(HOME, '.skillvault');
|
|
@@ -108,16 +108,17 @@ async function setup(code) {
|
|
|
108
108
|
const err = await response.json().catch(() => ({ message: response.statusText }));
|
|
109
109
|
console.error(` ❌ Failed: ${err.message}`);
|
|
110
110
|
console.error('');
|
|
111
|
-
if (err.message.includes('
|
|
111
|
+
if (response.status === 404 || err.message.toLowerCase().includes('not found') || err.message.toLowerCase().includes('invalid')) {
|
|
112
112
|
console.error(' The invite code was not found. Check that you entered it correctly.');
|
|
113
|
-
console.error(' Invite codes are 8 characters (e.g. A1B2C3D4).');
|
|
113
|
+
console.error(' Invite codes are 8 characters, letters and numbers (e.g. A1B2C3D4).');
|
|
114
|
+
console.error(' Ask the skill publisher if you need a new code.');
|
|
114
115
|
}
|
|
115
|
-
else if (err.message.includes('
|
|
116
|
+
else if (response.status === 400 || err.message.toLowerCase().includes('expired') || err.message.toLowerCase().includes('redeemed')) {
|
|
116
117
|
console.error(' This invite code has already been used or has expired.');
|
|
117
118
|
console.error(' Ask the publisher for a new invite code.');
|
|
118
119
|
}
|
|
119
120
|
else {
|
|
120
|
-
console.error(' Could not reach the SkillVault server
|
|
121
|
+
console.error(' Could not reach the SkillVault server or an unexpected error occurred.');
|
|
121
122
|
console.error(` Server: ${API_URL}`);
|
|
122
123
|
}
|
|
123
124
|
process.exit(1);
|
|
@@ -1015,15 +1016,21 @@ async function main() {
|
|
|
1015
1016
|
process.exit(0);
|
|
1016
1017
|
}
|
|
1017
1018
|
// Default: show help
|
|
1018
|
-
console.log(`🔐 SkillVault v${VERSION}\n`);
|
|
1019
|
+
console.log(`🔐 SkillVault v${VERSION} — Encrypted skill distribution for Claude Code\n`);
|
|
1019
1020
|
const config = loadConfig();
|
|
1020
1021
|
if (config) {
|
|
1021
1022
|
console.log(` ${config.publishers.length} publisher${config.publishers.length !== 1 ? 's' : ''} configured`);
|
|
1022
1023
|
console.log(' Run --status for details, --sync to update skills\n');
|
|
1023
1024
|
}
|
|
1024
1025
|
else {
|
|
1025
|
-
console.log('
|
|
1026
|
+
console.log(' SkillVault delivers encrypted AI skills to your Claude Code agent.');
|
|
1027
|
+
console.log(' Skills are published by providers and installed via invite codes.\n');
|
|
1028
|
+
console.log(' To get started, you need an invite code from a skill publisher.');
|
|
1029
|
+
console.log(' Once you have one, run:\n');
|
|
1026
1030
|
console.log(' npx skillvault --invite YOUR_CODE\n');
|
|
1031
|
+
console.log(' This will download your skills and install them into Claude Code.');
|
|
1032
|
+
console.log(' After setup, restart Claude Code and your skills will be available.\n');
|
|
1033
|
+
console.log(' Learn more: https://app.getskillvault.com\n');
|
|
1027
1034
|
}
|
|
1028
1035
|
}
|
|
1029
1036
|
main().catch((err) => {
|