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=`Inspect configuration file status`;static description=`
    Display information about the configuration file, including:
    - File path
    - Existence status
    - File size
    - Last modified date
    - File contents (if exists)
  `;static examples=[`<%= config.bin %> <%= command.id %> --tool claude --scope user`,`<%= config.bin %> <%= command.id %> --tool codex --json`];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`}),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:`inspect`});if(n.json){this.log(e(r));return}let i=r.data;this.log(`Path: ${i.path}`),this.log(`Exists: ${i.exists?`Yes`:`No`}`),i.exists&&(i.size!==void 0&&this.log(`Size: ${i.size} bytes`),i.lastModified&&this.log(`Last Modified: ${i.lastModified.toISOString()}`),i.content&&(this.log(`
Contents:`),this.log(i.content)))}catch(e){this.error(e.message,{exit:1})}}};export{i as default};