import"../../errors-pXKbCKbL.js";import"../../editor-BmJI32_P.js";import{r as e}from"../../format-a_tYXjv9.js";import"../../fsStore-BzLA1cBc.js";import"../../base-xqced3zT.js";import"../../config-Bphz_1Sc.js";import"../../template-Cpbt9qy8.js";import"../../xling-DyktHkvX.js";import"../../claudeDefault-B8XYzR_k.js";import"../../claude-F-aLoUUK.js";import"../../codex-BDB0z8Gw.js";import"../../gemini-CPA89gOH.js";import{t}from"../../dispatcher-1aCGdFHn.js";import{Command as n,Flags as r}from"@oclif/core";var i=class i extends n{static summary=`Open settings files in your IDE`;static description=`
    Create or open settings files for AI CLI tools in your preferred editor.
    For Claude: provide --name to edit settings.<name>.json (default: settings.json).
    For Xling: edits ~/.claude/xling.json configuration.
  `;static examples=[`<%= config.bin %> <%= command.id %> --tool claude --scope user --name hxi`,`<%= config.bin %> <%= command.id %> --tool claude --scope project --name default --ide cursor`,`<%= config.bin %> <%= command.id %> --tool xling --scope user --ide cursor`];static args={};static flags={tool:r.string({char:`t`,description:`AI CLI tool to manage`,options:[`claude`,`codex`,`gemini`,`xling`],default:`claude`}),scope:r.string({char:`s`,description:`Configuration scope`,options:[`user`,`project`,`local`,`system`],default:`user`}),name:r.string({description:`Claude variant name (e.g., hxi). Creates settings.<name>.json if missing and opens it in the IDE.`}),ide:r.string({description:`Editor command or alias (default: code for VS Code)`,default:`code`}),json:r.boolean({description:`Output JSON (default)`,default:!0,allowNo:!0})};async run(){let{flags:n}=await this.parse(i);try{let r=await new t().execute({tool:n.tool,scope:n.scope,action:`edit`,name:n.name,ide:n.ide});n.json?this.log(e(r)):(this.log(r.message??`Opened settings file`),r.filePath&&this.log(`File: ${r.filePath}`))}catch(e){this.error(e.message,{exit:1})}}};export{i as default};