"use strict";
var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __export = (target, all) => {
  for (var name in all)
    __defProp(target, name, { get: all[name], enumerable: true });
};
var __copyProps = (to, from, except, desc) => {
  if (from && typeof from === "object" || typeof from === "function") {
    for (let key of __getOwnPropNames(from))
      if (!__hasOwnProp.call(to, key) && key !== except)
        __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
  }
  return to;
};
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
var install_exports = {};
__export(install_exports, {
  register: () => register
});
module.exports = __toCommonJS(install_exports);
const INSTALL_TARGETS = ["kiro", "claude", "codex"];
function register(program) {
  program.command("install").description("Configure KiroGraph for an agent workspace").option("--target <target>", "Integration target: kiro, claude, or codex", "kiro").action(async (opts) => {
    const target = opts.target.toLowerCase();
    if (!INSTALL_TARGETS.includes(target)) {
      console.error(`Unknown install target: ${opts.target}. Choose from: kiro, claude, codex`);
      process.exit(1);
    }
    const { runInstaller } = await Promise.resolve().then(() => require("../installer/index.js"));
    await runInstaller(target);
  });
}
// Annotate the CommonJS export names for ESM import in node:
0 && (module.exports = {
  register
});
//# sourceMappingURL=install.js.map
