aiblueprint-cli 1.1.0 → 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.js +13 -4
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -33633,19 +33633,28 @@ The command will be available immediately in Claude Code.`));
|
|
|
33633
33633
|
}
|
|
33634
33634
|
|
|
33635
33635
|
// src/cli.ts
|
|
33636
|
+
import { readFileSync as readFileSync2 } from "fs";
|
|
33637
|
+
import { dirname as dirname4, join } from "path";
|
|
33638
|
+
import { fileURLToPath as fileURLToPath4 } from "url";
|
|
33639
|
+
var __dirname5 = dirname4(fileURLToPath4(import.meta.url));
|
|
33640
|
+
var packageJson = JSON.parse(readFileSync2(join(__dirname5, "../package.json"), "utf8"));
|
|
33636
33641
|
var program2 = new Command;
|
|
33637
|
-
program2.name("aiblueprint").description("AIBlueprint CLI for setting up Claude Code configurations").version(
|
|
33642
|
+
program2.name("aiblueprint").description("AIBlueprint CLI for setting up Claude Code configurations").version(packageJson.version);
|
|
33638
33643
|
var claudeCodeCmd = program2.command("claude-code").description("Claude Code configuration commands").option("-f, --folder <path>", "Specify custom folder path (default: ~/.claude)").option("-s, --skip", "Skip interactive prompts and install all features");
|
|
33639
33644
|
claudeCodeCmd.command("setup").description("Setup Claude Code configuration with AIBlueprint defaults").action((options, command) => {
|
|
33640
33645
|
const parentOptions = command.parent.opts();
|
|
33641
33646
|
setupCommand(parentOptions.folder, parentOptions.skip);
|
|
33642
33647
|
});
|
|
33643
|
-
var addCmd = claudeCodeCmd.command("add").description(
|
|
33644
|
-
|
|
33648
|
+
var addCmd = claudeCodeCmd.command("add").description(`Add components to your Claude Code configuration
|
|
33649
|
+
` + `Examples:
|
|
33650
|
+
` + ` aiblueprint claude-code add hook post-edit-typescript
|
|
33651
|
+
` + ` aiblueprint claude-code add commands
|
|
33652
|
+
` + " aiblueprint claude-code add commands commit");
|
|
33653
|
+
addCmd.command("hook <type>").description("Add a hook to your Claude Code configuration. Available types: post-edit-typescript").action((type, options, command) => {
|
|
33645
33654
|
const parentOptions = command.parent.parent.opts();
|
|
33646
33655
|
addHookCommand(type, { folder: parentOptions.folder });
|
|
33647
33656
|
});
|
|
33648
|
-
addCmd.command("commands [command-name]").description("
|
|
33657
|
+
addCmd.command("commands [command-name]").description("Install a Claude Code command or list all available commands (use without argument to list)").action((commandName, options, command) => {
|
|
33649
33658
|
const parentOptions = command.parent.parent.opts();
|
|
33650
33659
|
addCommandCommand(commandName, { folder: parentOptions.folder });
|
|
33651
33660
|
});
|