bf-skills 1.1.1 → 1.1.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/dist/cli.mjs +31 -21
- package/package.json +1 -1
package/dist/cli.mjs
CHANGED
|
@@ -174,20 +174,29 @@ var R = "\x1B[0m";
|
|
|
174
174
|
var COLORS = {
|
|
175
175
|
reset: R,
|
|
176
176
|
bold: "\x1B[1m",
|
|
177
|
-
dim: "\x1B[
|
|
178
|
-
|
|
177
|
+
dim: "\x1B[2m",
|
|
178
|
+
// Text hierarchy (matches bf-scripts)
|
|
179
|
+
text: "\x1B[38;5;255m",
|
|
180
|
+
// bright white — primary labels
|
|
181
|
+
muted: "\x1B[38;5;240m",
|
|
182
|
+
// gray — secondary / metadata
|
|
183
|
+
// Branding
|
|
184
|
+
yellow: "\x1B[38;5;220m",
|
|
185
|
+
// gold yellow — title + tagline
|
|
179
186
|
blue: "\x1B[38;5;39m",
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
187
|
+
// electric blue — option labels
|
|
188
|
+
// Semantic
|
|
189
|
+
green: "\x1B[38;5;114m",
|
|
190
|
+
red: "\x1B[38;5;203m",
|
|
191
|
+
warn: "\x1B[38;5;221m"
|
|
183
192
|
};
|
|
184
|
-
var
|
|
185
|
-
"\x1B[38;5;
|
|
186
|
-
"\x1B[38;5;
|
|
187
|
-
"\x1B[38;5;
|
|
188
|
-
"\x1B[38;5;
|
|
189
|
-
"\x1B[38;5;
|
|
190
|
-
"\x1B[38;5;
|
|
193
|
+
var LOGO_GRADIENT = [
|
|
194
|
+
"\x1B[38;5;250m",
|
|
195
|
+
"\x1B[38;5;248m",
|
|
196
|
+
"\x1B[38;5;245m",
|
|
197
|
+
"\x1B[38;5;243m",
|
|
198
|
+
"\x1B[38;5;240m",
|
|
199
|
+
"\x1B[38;5;238m"
|
|
191
200
|
];
|
|
192
201
|
var LOGO_LINES = [
|
|
193
202
|
"\u2588\u2588\u2588\u2588\u2588\u2588\u2557 \u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2557 \u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2557\u2588\u2588\u2557 \u2588\u2588\u2557\u2588\u2588\u2557\u2588\u2588\u2557 \u2588\u2588\u2557 \u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2557",
|
|
@@ -200,15 +209,16 @@ var LOGO_LINES = [
|
|
|
200
209
|
function showLogo() {
|
|
201
210
|
console.log("");
|
|
202
211
|
LOGO_LINES.forEach((line, i) => {
|
|
203
|
-
console.log(`${
|
|
212
|
+
console.log(`${LOGO_GRADIENT[i]} ${line}${R}`);
|
|
204
213
|
});
|
|
205
214
|
console.log("");
|
|
206
|
-
console.log(
|
|
215
|
+
console.log(` ${COLORS.yellow}${COLORS.bold}BF SKILLS${R}`);
|
|
216
|
+
console.log(` ${COLORS.yellow}${COLORS.dim}Building the Future of Business with AI${R}`);
|
|
207
217
|
console.log("");
|
|
208
218
|
}
|
|
209
219
|
function showFooter() {
|
|
210
220
|
console.log("");
|
|
211
|
-
console.log(
|
|
221
|
+
console.log(` ${COLORS.muted}buildingthefuture.ai${R}`);
|
|
212
222
|
console.log("");
|
|
213
223
|
}
|
|
214
224
|
|
|
@@ -242,7 +252,7 @@ async function runInstall(source, opts) {
|
|
|
242
252
|
message: "Where do you want to install skills?",
|
|
243
253
|
options: AGENTS.map((a) => ({
|
|
244
254
|
value: a.id,
|
|
245
|
-
label: a.label,
|
|
255
|
+
label: pc.blue(a.label),
|
|
246
256
|
hint: opts.global ? a.globalPath : `./${a.projectPath}`
|
|
247
257
|
})),
|
|
248
258
|
initialValues: DEFAULT_AGENT_IDS,
|
|
@@ -299,7 +309,7 @@ async function runInstall(source, opts) {
|
|
|
299
309
|
message: `Pick skills to install (${allSkills.length} available \u2014 type to search)`,
|
|
300
310
|
options: allSkills.map((s) => ({
|
|
301
311
|
value: s.name,
|
|
302
|
-
label: s.name,
|
|
312
|
+
label: pc.blue(s.name),
|
|
303
313
|
hint: s.description
|
|
304
314
|
})),
|
|
305
315
|
required: true
|
|
@@ -419,10 +429,10 @@ function printHelp() {
|
|
|
419
429
|
showLogo();
|
|
420
430
|
console.log(`${COLORS.bold} Usage${COLORS.reset}`);
|
|
421
431
|
console.log("");
|
|
422
|
-
console.log(` ${COLORS.
|
|
423
|
-
console.log(` ${COLORS.
|
|
424
|
-
console.log(` ${COLORS.
|
|
425
|
-
console.log(` ${COLORS.
|
|
432
|
+
console.log(` ${COLORS.yellow}npx bf-skills${COLORS.reset} <url> Browse & install from a repo`);
|
|
433
|
+
console.log(` ${COLORS.yellow}npx bf-skills${COLORS.reset} <url> --skill <name...> Install specific skill(s)`);
|
|
434
|
+
console.log(` ${COLORS.yellow}npx bf-skills${COLORS.reset} list List installed skills`);
|
|
435
|
+
console.log(` ${COLORS.yellow}npx bf-skills${COLORS.reset} remove <name> Remove a skill`);
|
|
426
436
|
console.log("");
|
|
427
437
|
console.log(`${COLORS.bold} Flags${COLORS.reset}`);
|
|
428
438
|
console.log("");
|