aiblueprint-cli 1.3.3 → 1.3.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 +11 -11
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -33401,13 +33401,13 @@ async function downloadDirectoryFromGitHub(dirPath, targetDir) {
|
|
|
33401
33401
|
import { readFileSync as readFileSync2 } from "fs";
|
|
33402
33402
|
import { dirname, join } from "path";
|
|
33403
33403
|
import { fileURLToPath } from "url";
|
|
33404
|
-
var __dirname2 = dirname(fileURLToPath(import.meta.url));
|
|
33405
33404
|
var cachedVersion = null;
|
|
33406
33405
|
function getVersion() {
|
|
33407
33406
|
if (cachedVersion)
|
|
33408
33407
|
return cachedVersion;
|
|
33409
33408
|
try {
|
|
33410
|
-
const
|
|
33409
|
+
const __dirname2 = dirname(fileURLToPath(import.meta.url));
|
|
33410
|
+
const packageJson = JSON.parse(readFileSync2(join(__dirname2, "../package.json"), "utf8"));
|
|
33411
33411
|
cachedVersion = packageJson.version;
|
|
33412
33412
|
return cachedVersion;
|
|
33413
33413
|
} catch {
|
|
@@ -33417,7 +33417,7 @@ function getVersion() {
|
|
|
33417
33417
|
|
|
33418
33418
|
// src/commands/setup.ts
|
|
33419
33419
|
var __filename2 = fileURLToPath2(import.meta.url);
|
|
33420
|
-
var
|
|
33420
|
+
var __dirname2 = dirname2(__filename2);
|
|
33421
33421
|
var GITHUB_RAW_BASE2 = "https://raw.githubusercontent.com/Melvynx/aiblueprint-cli/main/claude-code-config";
|
|
33422
33422
|
async function setupCommand(params = {}) {
|
|
33423
33423
|
const {
|
|
@@ -33534,8 +33534,8 @@ async function setupCommand(params = {}) {
|
|
|
33534
33534
|
const currentDir = process.cwd();
|
|
33535
33535
|
const possiblePaths = [
|
|
33536
33536
|
path7.join(currentDir, "claude-code-config"),
|
|
33537
|
-
path7.join(
|
|
33538
|
-
path7.join(
|
|
33537
|
+
path7.join(__dirname2, "../../claude-code-config"),
|
|
33538
|
+
path7.join(__dirname2, "../claude-code-config"),
|
|
33539
33539
|
path7.join(path7.dirname(process.argv[1]), "../claude-code-config")
|
|
33540
33540
|
];
|
|
33541
33541
|
sourceDir = possiblePaths.find((p) => {
|
|
@@ -33705,7 +33705,7 @@ import path8 from "path";
|
|
|
33705
33705
|
import { fileURLToPath as fileURLToPath3 } from "url";
|
|
33706
33706
|
import { dirname as dirname3 } from "path";
|
|
33707
33707
|
var __filename3 = fileURLToPath3(import.meta.url);
|
|
33708
|
-
var
|
|
33708
|
+
var __dirname3 = dirname3(__filename3);
|
|
33709
33709
|
function parseYamlFrontmatter(content) {
|
|
33710
33710
|
const lines = content.split(`
|
|
33711
33711
|
`);
|
|
@@ -33732,8 +33732,8 @@ function parseYamlFrontmatter(content) {
|
|
|
33732
33732
|
}
|
|
33733
33733
|
function getLocalConfigPaths(subDir) {
|
|
33734
33734
|
return [
|
|
33735
|
-
path8.join(
|
|
33736
|
-
path8.join(
|
|
33735
|
+
path8.join(__dirname3, `../claude-code-config/${subDir}`),
|
|
33736
|
+
path8.join(__dirname3, `../../claude-code-config/${subDir}`)
|
|
33737
33737
|
];
|
|
33738
33738
|
}
|
|
33739
33739
|
async function findLocalConfigDir(subDir) {
|
|
@@ -33865,7 +33865,7 @@ async function getFileContentWithGitHubFallback(sourceDir, fileName) {
|
|
|
33865
33865
|
|
|
33866
33866
|
// src/commands/addHook.ts
|
|
33867
33867
|
var __filename4 = fileURLToPath4(import.meta.url);
|
|
33868
|
-
var
|
|
33868
|
+
var __dirname4 = dirname4(__filename4);
|
|
33869
33869
|
|
|
33870
33870
|
class SimpleSpinner2 {
|
|
33871
33871
|
message = "";
|
|
@@ -35636,8 +35636,8 @@ async function proSyncCommand(options = {}) {
|
|
|
35636
35636
|
import { readFileSync as readFileSync3 } from "fs";
|
|
35637
35637
|
import { dirname as dirname5, join as join2 } from "path";
|
|
35638
35638
|
import { fileURLToPath as fileURLToPath5 } from "url";
|
|
35639
|
-
var
|
|
35640
|
-
var packageJson = JSON.parse(readFileSync3(join2(
|
|
35639
|
+
var __dirname5 = dirname5(fileURLToPath5(import.meta.url));
|
|
35640
|
+
var packageJson = JSON.parse(readFileSync3(join2(__dirname5, "../package.json"), "utf8"));
|
|
35641
35641
|
var program2 = new Command;
|
|
35642
35642
|
program2.name("aiblueprint").description("AIBlueprint CLI for setting up Claude Code configurations").version(packageJson.version);
|
|
35643
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");
|