aiblueprint-cli 1.2.1 → 1.2.3
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 +70 -3
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -33532,6 +33532,31 @@ async function setupCommand(params = {}) {
|
|
|
33532
33532
|
}
|
|
33533
33533
|
s.stop("Agents installed");
|
|
33534
33534
|
}
|
|
33535
|
+
if (options.aiblueprintSkills) {
|
|
33536
|
+
s.start("Setting up AIBlueprint Skills");
|
|
33537
|
+
if (useGitHub) {
|
|
33538
|
+
const testSkillsUrl = `${GITHUB_RAW_BASE2}/skills/create-prompt/SKILL.md`;
|
|
33539
|
+
try {
|
|
33540
|
+
const testResponse = await fetch(testSkillsUrl);
|
|
33541
|
+
if (testResponse.ok) {
|
|
33542
|
+
await downloadDirectoryFromGitHub("skills", path7.join(claudeDir, "skills"));
|
|
33543
|
+
s.stop("Skills installed");
|
|
33544
|
+
} else {
|
|
33545
|
+
s.stop("Skills not available in repository");
|
|
33546
|
+
}
|
|
33547
|
+
} catch {
|
|
33548
|
+
s.stop("Skills not available in repository");
|
|
33549
|
+
}
|
|
33550
|
+
} else {
|
|
33551
|
+
const skillsSourcePath = path7.join(sourceDir, "skills");
|
|
33552
|
+
if (await import_fs_extra5.default.pathExists(skillsSourcePath)) {
|
|
33553
|
+
await import_fs_extra5.default.copy(skillsSourcePath, path7.join(claudeDir, "skills"), { overwrite: true });
|
|
33554
|
+
s.stop("Skills installed");
|
|
33555
|
+
} else {
|
|
33556
|
+
s.stop("Skills not available in local repository");
|
|
33557
|
+
}
|
|
33558
|
+
}
|
|
33559
|
+
}
|
|
33535
33560
|
if (options.notificationSounds) {
|
|
33536
33561
|
s.start("Setting up notification sounds");
|
|
33537
33562
|
if (useGitHub) {
|
|
@@ -34829,8 +34854,46 @@ function getTokenInfo() {
|
|
|
34829
34854
|
}
|
|
34830
34855
|
|
|
34831
34856
|
// src/commands/pro.ts
|
|
34857
|
+
var import_fs_extra15 = __toESM(require_lib4(), 1);
|
|
34858
|
+
import path17 from "path";
|
|
34832
34859
|
var API_URL = "https://codeline.app/api/products";
|
|
34833
34860
|
var PRODUCT_ID = "prd_XJVgxVPbGG";
|
|
34861
|
+
async function countInstalledItems(claudeDir) {
|
|
34862
|
+
const counts = {
|
|
34863
|
+
commands: 0,
|
|
34864
|
+
agents: 0,
|
|
34865
|
+
skills: 0
|
|
34866
|
+
};
|
|
34867
|
+
try {
|
|
34868
|
+
const commandsDir = path17.join(claudeDir, "commands");
|
|
34869
|
+
if (await import_fs_extra15.default.pathExists(commandsDir)) {
|
|
34870
|
+
const files = await import_fs_extra15.default.readdir(commandsDir);
|
|
34871
|
+
counts.commands = files.filter((f3) => f3.endsWith(".md")).length;
|
|
34872
|
+
}
|
|
34873
|
+
} catch {
|
|
34874
|
+
}
|
|
34875
|
+
try {
|
|
34876
|
+
const agentsDir = path17.join(claudeDir, "agents");
|
|
34877
|
+
if (await import_fs_extra15.default.pathExists(agentsDir)) {
|
|
34878
|
+
const files = await import_fs_extra15.default.readdir(agentsDir);
|
|
34879
|
+
counts.agents = files.filter((f3) => f3.endsWith(".md")).length;
|
|
34880
|
+
}
|
|
34881
|
+
} catch {
|
|
34882
|
+
}
|
|
34883
|
+
try {
|
|
34884
|
+
const skillsDir = path17.join(claudeDir, "skills");
|
|
34885
|
+
if (await import_fs_extra15.default.pathExists(skillsDir)) {
|
|
34886
|
+
const items = await import_fs_extra15.default.readdir(skillsDir);
|
|
34887
|
+
const dirs = await Promise.all(items.map(async (item) => {
|
|
34888
|
+
const stat = await import_fs_extra15.default.stat(path17.join(skillsDir, item));
|
|
34889
|
+
return stat.isDirectory();
|
|
34890
|
+
}));
|
|
34891
|
+
counts.skills = dirs.filter(Boolean).length;
|
|
34892
|
+
}
|
|
34893
|
+
} catch {
|
|
34894
|
+
}
|
|
34895
|
+
return counts;
|
|
34896
|
+
}
|
|
34834
34897
|
async function proActivateCommand(userToken) {
|
|
34835
34898
|
oe(source_default.blue("\uD83D\uDD11 Activate AIBlueprint CLI Premium"));
|
|
34836
34899
|
try {
|
|
@@ -34950,11 +35013,15 @@ async function proSetupCommand(options = {}) {
|
|
|
34950
35013
|
postEditTypeScript: true
|
|
34951
35014
|
}, claudeDir);
|
|
34952
35015
|
spinner.stop("Settings.json updated");
|
|
35016
|
+
spinner.start("Counting installed items...");
|
|
35017
|
+
const counts = await countInstalledItems(claudeDir);
|
|
35018
|
+
spinner.stop("Installation summary ready");
|
|
34953
35019
|
f2.success("✅ Setup complete!");
|
|
34954
35020
|
f2.info("Installed:");
|
|
34955
|
-
f2.info(
|
|
34956
|
-
f2.info(
|
|
34957
|
-
f2.info(
|
|
35021
|
+
f2.info(` • Commands (${counts.commands})`);
|
|
35022
|
+
f2.info(` • Agents (${counts.agents})`);
|
|
35023
|
+
f2.info(` • Premium Skills (${counts.skills})`);
|
|
35024
|
+
f2.info(" • Premium statusline (advanced)");
|
|
34958
35025
|
f2.info(" • Shell shortcuts (cc, ccc)");
|
|
34959
35026
|
f2.info(" • Settings.json with hooks and statusline");
|
|
34960
35027
|
$e(source_default.green("\uD83D\uDE80 Ready to use!"));
|