@tdsoft-tech/aikit 0.1.33 → 0.1.34

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 CHANGED
@@ -9724,7 +9724,7 @@ function getPlatformConfig(choice) {
9724
9724
  }
9725
9725
  }
9726
9726
  function registerInitCommand(program2) {
9727
- program2.command("init [platform]").description("Initialize AIKit configuration for a specific platform").option("-g, --global", "Initialize global configuration").option("-p, --project", "Initialize project-level configuration").option("--opencode", "Use OpenCode only").option("--claude", "Use Claude Code only").option("--both", "Use both OpenCode and Claude Code").action(async (platformArg, options) => {
9727
+ program2.command("init [platform]").description("Initialize AIKit configuration for a specific platform").option("-g, --global", "Initialize global configuration").option("-p, --project", "Initialize project-level configuration").option("--opencode", "Use OpenCode only").option("--claude", "Use Claude Code only").option("--cursor", "Use Cursor only").option("--both", "Use both OpenCode and Claude Code").action(async (platformArg, options) => {
9728
9728
  const configDir = options.global ? paths.globalConfig() : paths.projectConfig();
9729
9729
  console.log(chalk3.bold("\n\u{1F680} AIKit Setup\n"));
9730
9730
  logger.info(`Initializing AIKit in ${configDir}...`);
@@ -9734,11 +9734,19 @@ function registerInitCommand(program2) {
9734
9734
  platformChoice = "opencode";
9735
9735
  } else if (options.claude) {
9736
9736
  platformChoice = "claude";
9737
+ } else if (options.cursor) {
9738
+ platformChoice = "cursor";
9737
9739
  } else if (options.both) {
9738
9740
  platformChoice = "both";
9739
9741
  } else if (platformArg) {
9740
9742
  const mapped = CliDetector.matchPlatform(platformArg);
9741
- platformChoice = mapped === "claude" /* CLAUDE */ ? "claude" : "opencode";
9743
+ if (mapped === "cursor" /* CURSOR */) {
9744
+ platformChoice = "cursor";
9745
+ } else if (mapped === "claude" /* CLAUDE */) {
9746
+ platformChoice = "claude";
9747
+ } else {
9748
+ platformChoice = "opencode";
9749
+ }
9742
9750
  } else {
9743
9751
  console.log(chalk3.bold("\n\u{1F4E6} Select Your AI Coding Platform\n"));
9744
9752
  const { choice } = await inquirer.prompt([
@@ -9755,6 +9763,10 @@ function registerInitCommand(program2) {
9755
9763
  name: `${chalk3.yellow("\u25CF")} Claude Code ${chalk3.yellow("(Beta)")}`,
9756
9764
  value: "claude"
9757
9765
  },
9766
+ {
9767
+ name: `${chalk3.magenta("\u25CF")} Cursor ${chalk3.magenta("(Beta)")}`,
9768
+ value: "cursor"
9769
+ },
9758
9770
  {
9759
9771
  name: `${chalk3.cyan("\u25CF")} Both Platforms ${chalk3.gray("(OpenCode + Claude Code)")}`,
9760
9772
  value: "both"
@@ -9768,6 +9780,10 @@ function registerInitCommand(program2) {
9768
9780
  console.log(chalk3.yellow("\n\u26A0\uFE0F Claude Code support is in Beta"));
9769
9781
  console.log(chalk3.gray(" Some features may be limited or experimental.\n"));
9770
9782
  }
9783
+ if (platformChoice === "cursor") {
9784
+ console.log(chalk3.magenta("\n\u26A0\uFE0F Cursor support is in Beta"));
9785
+ console.log(chalk3.gray(" Some features may be limited or experimental.\n"));
9786
+ }
9771
9787
  }
9772
9788
  const platformConfig = getPlatformConfig(platformChoice);
9773
9789
  await initializeConfig(configDir, options.global, platformConfig);
@@ -9775,6 +9791,7 @@ function registerInitCommand(program2) {
9775
9791
  console.log(chalk3.bold("\n\u{1F4CB} Platform Configuration:"));
9776
9792
  console.log(` OpenCode: ${platformConfig.opencode ? chalk3.green("enabled") : chalk3.gray("disabled")}`);
9777
9793
  console.log(` Claude Code: ${platformConfig.claude ? chalk3.yellow("enabled (Beta)") : chalk3.gray("disabled")}`);
9794
+ console.log(` Cursor: ${platformConfig.cursor ? chalk3.magenta("enabled (Beta)") : chalk3.gray("disabled")}`);
9778
9795
  console.log(` Primary: ${chalk3.cyan(platformConfig.primary)}
9779
9796
  `);
9780
9797
  if (!options.global) {