aiblueprint-cli 1.3.2 → 1.3.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.
Files changed (2) hide show
  1. package/dist/cli.js +49 -31
  2. package/package.json +1 -1
package/dist/cli.js CHANGED
@@ -32983,8 +32983,8 @@ var chalkStderr = createChalk({ level: stderrColor ? stderrColor.level : 0 });
32983
32983
  var source_default = chalk;
32984
32984
 
32985
32985
  // src/commands/setup.ts
32986
- import { fileURLToPath } from "url";
32987
- import { dirname } from "path";
32986
+ import { fileURLToPath as fileURLToPath2 } from "url";
32987
+ import { dirname as dirname2 } from "path";
32988
32988
 
32989
32989
  // src/commands/setup/shell-shortcuts.ts
32990
32990
  var import_fs_extra = __toESM(require_lib4(), 1);
@@ -33397,9 +33397,27 @@ async function downloadDirectoryFromGitHub(dirPath, targetDir) {
33397
33397
  }
33398
33398
  }
33399
33399
 
33400
+ // src/lib/version.ts
33401
+ import { readFileSync as readFileSync2 } from "fs";
33402
+ import { dirname, join } from "path";
33403
+ import { fileURLToPath } from "url";
33404
+ var __dirname2 = dirname(fileURLToPath(import.meta.url));
33405
+ var cachedVersion = null;
33406
+ function getVersion() {
33407
+ if (cachedVersion)
33408
+ return cachedVersion;
33409
+ try {
33410
+ const packageJson = JSON.parse(readFileSync2(join(__dirname2, "../../package.json"), "utf8"));
33411
+ cachedVersion = packageJson.version;
33412
+ return cachedVersion;
33413
+ } catch {
33414
+ return "unknown";
33415
+ }
33416
+ }
33417
+
33400
33418
  // src/commands/setup.ts
33401
- var __filename2 = fileURLToPath(import.meta.url);
33402
- var __dirname2 = dirname(__filename2);
33419
+ var __filename2 = fileURLToPath2(import.meta.url);
33420
+ var __dirname3 = dirname2(__filename2);
33403
33421
  var GITHUB_RAW_BASE2 = "https://raw.githubusercontent.com/Melvynx/aiblueprint-cli/main/claude-code-config";
33404
33422
  async function setupCommand(params = {}) {
33405
33423
  const {
@@ -33410,7 +33428,7 @@ async function setupCommand(params = {}) {
33410
33428
  } = params;
33411
33429
  try {
33412
33430
  console.log(source_default.blue.bold(`
33413
- \uD83D\uDE80 AIBlueprint Claude Code Setup
33431
+ \uD83D\uDE80 AIBlueprint Claude Code Setup ${source_default.gray(`v${getVersion()}`)}
33414
33432
  `));
33415
33433
  console.log(source_default.bgBlue(" Setting up your Claude Code environment "));
33416
33434
  let features;
@@ -33516,8 +33534,8 @@ async function setupCommand(params = {}) {
33516
33534
  const currentDir = process.cwd();
33517
33535
  const possiblePaths = [
33518
33536
  path7.join(currentDir, "claude-code-config"),
33519
- path7.join(__dirname2, "../../claude-code-config"),
33520
- path7.join(__dirname2, "../claude-code-config"),
33537
+ path7.join(__dirname3, "../../claude-code-config"),
33538
+ path7.join(__dirname3, "../claude-code-config"),
33521
33539
  path7.join(path7.dirname(process.argv[1]), "../claude-code-config")
33522
33540
  ];
33523
33541
  sourceDir = possiblePaths.find((p) => {
@@ -33678,16 +33696,16 @@ Next steps:`));
33678
33696
  // src/commands/addHook.ts
33679
33697
  var import_fs_extra9 = __toESM(require_lib4(), 1);
33680
33698
  import path11 from "path";
33681
- import { fileURLToPath as fileURLToPath3 } from "url";
33682
- import { dirname as dirname3 } from "path";
33699
+ import { fileURLToPath as fileURLToPath4 } from "url";
33700
+ import { dirname as dirname4 } from "path";
33683
33701
 
33684
33702
  // src/utils/claude-config.ts
33685
33703
  var import_fs_extra6 = __toESM(require_lib4(), 1);
33686
33704
  import path8 from "path";
33687
- import { fileURLToPath as fileURLToPath2 } from "url";
33688
- import { dirname as dirname2 } from "path";
33689
- var __filename3 = fileURLToPath2(import.meta.url);
33690
- var __dirname3 = dirname2(__filename3);
33705
+ import { fileURLToPath as fileURLToPath3 } from "url";
33706
+ import { dirname as dirname3 } from "path";
33707
+ var __filename3 = fileURLToPath3(import.meta.url);
33708
+ var __dirname4 = dirname3(__filename3);
33691
33709
  function parseYamlFrontmatter(content) {
33692
33710
  const lines = content.split(`
33693
33711
  `);
@@ -33714,8 +33732,8 @@ function parseYamlFrontmatter(content) {
33714
33732
  }
33715
33733
  function getLocalConfigPaths(subDir) {
33716
33734
  return [
33717
- path8.join(__dirname3, `../claude-code-config/${subDir}`),
33718
- path8.join(__dirname3, `../../claude-code-config/${subDir}`)
33735
+ path8.join(__dirname4, `../claude-code-config/${subDir}`),
33736
+ path8.join(__dirname4, `../../claude-code-config/${subDir}`)
33719
33737
  ];
33720
33738
  }
33721
33739
  async function findLocalConfigDir(subDir) {
@@ -33846,8 +33864,8 @@ async function getFileContentWithGitHubFallback(sourceDir, fileName) {
33846
33864
  }
33847
33865
 
33848
33866
  // src/commands/addHook.ts
33849
- var __filename4 = fileURLToPath3(import.meta.url);
33850
- var __dirname4 = dirname3(__filename4);
33867
+ var __filename4 = fileURLToPath4(import.meta.url);
33868
+ var __dirname5 = dirname4(__filename4);
33851
33869
 
33852
33870
  class SimpleSpinner2 {
33853
33871
  message = "";
@@ -33871,7 +33889,7 @@ var supportedHooks = {
33871
33889
  }
33872
33890
  };
33873
33891
  async function addHookCommand(hookType, options) {
33874
- console.log(source_default.bgBlue(" aiblueprint-cli "));
33892
+ console.log(source_default.bgBlue(` aiblueprint-cli v${getVersion()} `));
33875
33893
  if (!supportedHooks[hookType]) {
33876
33894
  console.log(source_default.red(`❌ Unsupported hook type: ${hookType}`));
33877
33895
  console.log(source_default.gray("Available hooks:"));
@@ -34045,7 +34063,7 @@ function displayAvailableCommands(commands) {
34045
34063
  console.log(source_default.gray(" aiblueprint claude-code add commands # Show this list"));
34046
34064
  }
34047
34065
  async function addCommandCommand(commandName, options = {}) {
34048
- console.log(source_default.bgBlue(" aiblueprint-cli "));
34066
+ console.log(source_default.bgBlue(` aiblueprint-cli v${getVersion()} `));
34049
34067
  const availableCommands = await discoverAvailableCommands();
34050
34068
  if (!commandName) {
34051
34069
  displayAvailableCommands(availableCommands);
@@ -34137,7 +34155,7 @@ var TOOLS = [
34137
34155
  async function symlinkCommand(params = {}) {
34138
34156
  try {
34139
34157
  console.log(source_default.blue.bold(`
34140
- \uD83D\uDD17 Symlink Manager
34158
+ \uD83D\uDD17 Symlink Manager ${source_default.gray(`v${getVersion()}`)}
34141
34159
  `));
34142
34160
  console.log(source_default.gray("Create symlinks between different CLI tool configurations"));
34143
34161
  const sourceAnswer = await lib_default.prompt([
@@ -34279,7 +34297,7 @@ import path13 from "path";
34279
34297
  import { homedir } from "os";
34280
34298
  async function statuslineCommand(options) {
34281
34299
  const claudeDir = options.folder ? path13.resolve(options.folder) : path13.join(homedir(), ".claude");
34282
- console.log(source_default.blue("\uD83D\uDE80 Setting up AIBlueprint Statusline..."));
34300
+ console.log(source_default.blue(`\uD83D\uDE80 Setting up AIBlueprint Statusline ${source_default.gray(`v${getVersion()}`)}...`));
34283
34301
  console.log(source_default.gray(` Target: ${claudeDir}
34284
34302
  `));
34285
34303
  await import_fs_extra11.default.ensureDir(claudeDir);
@@ -35093,7 +35111,7 @@ async function countInstalledItems(claudeDir) {
35093
35111
  return counts;
35094
35112
  }
35095
35113
  async function proActivateCommand(userToken) {
35096
- oe(source_default.blue("\uD83D\uDD11 Activate AIBlueprint CLI Premium"));
35114
+ oe(source_default.blue(`\uD83D\uDD11 Activate AIBlueprint CLI Premium ${source_default.gray(`v${getVersion()}`)}`));
35097
35115
  try {
35098
35116
  if (!userToken) {
35099
35117
  const result = await te({
@@ -35157,7 +35175,7 @@ async function proActivateCommand(userToken) {
35157
35175
  }
35158
35176
  }
35159
35177
  async function proStatusCommand() {
35160
- oe(source_default.blue("\uD83D\uDCCA Premium Token Status"));
35178
+ oe(source_default.blue(`\uD83D\uDCCA Premium Token Status ${source_default.gray(`v${getVersion()}`)}`));
35161
35179
  try {
35162
35180
  const token = await getToken();
35163
35181
  if (!token) {
@@ -35181,7 +35199,7 @@ async function proStatusCommand() {
35181
35199
  }
35182
35200
  }
35183
35201
  async function proSetupCommand(options = {}) {
35184
- oe(source_default.blue("⚙️ Setup AIBlueprint CLI Premium"));
35202
+ oe(source_default.blue(`⚙️ Setup AIBlueprint CLI Premium ${source_default.gray(`v${getVersion()}`)}`));
35185
35203
  try {
35186
35204
  const githubToken = await getToken();
35187
35205
  if (!githubToken) {
@@ -35240,7 +35258,7 @@ async function proSetupCommand(options = {}) {
35240
35258
  }
35241
35259
  }
35242
35260
  async function proUpdateCommand(options = {}) {
35243
- oe(source_default.blue("\uD83D\uDD04 Update Premium Configs"));
35261
+ oe(source_default.blue(`\uD83D\uDD04 Update Premium Configs ${source_default.gray(`v${getVersion()}`)}`));
35244
35262
  try {
35245
35263
  const githubToken = await getToken();
35246
35264
  if (!githubToken) {
@@ -35511,7 +35529,7 @@ function groupByCategory(items) {
35511
35529
  return grouped;
35512
35530
  }
35513
35531
  async function proSyncCommand(options = {}) {
35514
- oe(source_default.blue("\uD83D\uDD04 Sync Premium Configurations"));
35532
+ oe(source_default.blue(`\uD83D\uDD04 Sync Premium Configurations ${source_default.gray(`v${getVersion()}`)}`));
35515
35533
  try {
35516
35534
  const githubToken = await getToken();
35517
35535
  if (!githubToken) {
@@ -35615,11 +35633,11 @@ async function proSyncCommand(options = {}) {
35615
35633
  }
35616
35634
 
35617
35635
  // src/cli.ts
35618
- import { readFileSync as readFileSync2 } from "fs";
35619
- import { dirname as dirname4, join } from "path";
35620
- import { fileURLToPath as fileURLToPath4 } from "url";
35621
- var __dirname5 = dirname4(fileURLToPath4(import.meta.url));
35622
- var packageJson = JSON.parse(readFileSync2(join(__dirname5, "../package.json"), "utf8"));
35636
+ import { readFileSync as readFileSync3 } from "fs";
35637
+ import { dirname as dirname5, join as join2 } from "path";
35638
+ import { fileURLToPath as fileURLToPath5 } from "url";
35639
+ var __dirname6 = dirname5(fileURLToPath5(import.meta.url));
35640
+ var packageJson = JSON.parse(readFileSync3(join2(__dirname6, "../package.json"), "utf8"));
35623
35641
  var program2 = new Command;
35624
35642
  program2.name("aiblueprint").description("AIBlueprint CLI for setting up Claude Code configurations").version(packageJson.version);
35625
35643
  var claudeCodeCmd = program2.command("claude-code").description("Claude Code configuration commands").option("-f, --folder <path>", "Specify custom Claude Code folder path (default: ~/.claude) - alias for --claudeCodeFolder").option("--claudeCodeFolder <path>", "Specify custom Claude Code folder path (default: ~/.claude)").option("--codexFolder <path>", "Specify custom Codex folder path (default: ~/.codex)").option("--openCodeFolder <path>", "Specify custom OpenCode folder path (default: ~/.config/opencode)").option("--factoryAiFolder <path>", "Specify custom FactoryAI folder path (default: ~/.factory)").option("-s, --skip", "Skip interactive prompts and install all features");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aiblueprint-cli",
3
- "version": "1.3.2",
3
+ "version": "1.3.3",
4
4
  "description": "AIBlueprint CLI for setting up Claude Code configurations",
5
5
  "author": "AIBlueprint",
6
6
  "license": "MIT",