xling 0.11.1 → 0.11.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.
Files changed (36) hide show
  1. package/dist/{backend-router-BVglKdTL.js → backend-router-BDDojDYB.js} +1 -1
  2. package/dist/{claude-BqDhM0_U.js → claude-Fcll-DX1.js} +1 -1
  3. package/dist/codex-BNK3gljF.js +1 -0
  4. package/dist/commands/p/index.js +1 -1
  5. package/dist/commands/settings/auth.js +1 -1
  6. package/dist/commands/settings/get.js +1 -1
  7. package/dist/commands/settings/inspect.js +1 -1
  8. package/dist/commands/settings/list.js +1 -1
  9. package/dist/commands/settings/set.js +1 -1
  10. package/dist/commands/settings/switch.js +1 -1
  11. package/dist/commands/settings/sync.js +1 -1
  12. package/dist/commands/sx/index.js +1 -1
  13. package/dist/commands/version/index.js +1 -1
  14. package/dist/commands/x/index.js +2 -2
  15. package/dist/{dispatcher-CrrrsRFX.js → dispatcher-0SxYaMPH.js} +1 -1
  16. package/dist/{dispatcher-DOZzJY8q.js → dispatcher-BH3J7LPC.js} +1 -1
  17. package/dist/{runner-BDDl4-Yr.js → runner-BEeIEt9y.js} +1 -1
  18. package/dist/services/launch/adapters/codex.d.ts +1 -1
  19. package/dist/services/launch/adapters/codex.js +1 -1
  20. package/dist/services/launch/dispatcher.js +1 -1
  21. package/dist/services/p/backend-router.js +1 -1
  22. package/dist/services/settings/adapters/claude.js +1 -1
  23. package/dist/services/settings/adapters/codex.js +1 -1
  24. package/dist/services/settings/adapters/gemini.js +1 -1
  25. package/dist/services/settings/dispatcher.js +1 -1
  26. package/dist/services/settings/sync.js +1 -1
  27. package/dist/services/settings/templates/claudeDefault.js +1 -1
  28. package/dist/services/shortcuts/runner.js +1 -1
  29. package/dist/services/shortcuts/types.js +1 -1
  30. package/package.json +1 -1
  31. package/dist/codex-DO3xGhyb.js +0 -1
  32. /package/dist/{claudeDefault-BP2oPKZC.js → claudeDefault-B1OdW_1X.js} +0 -0
  33. /package/dist/{codex-Kk3Sv7uC.js → codex-BS4wfOmD.js} +0 -0
  34. /package/dist/{gemini-2eTblTJ_.js → gemini-Cc8MC-Lf.js} +0 -0
  35. /package/dist/{sync-B6uHJ3Je.js → sync-BfqO3fnF.js} +0 -0
  36. /package/dist/{types-BDgDAGpu.js → types-BIWFx0bF.js} +0 -0
@@ -1 +1 @@
1
- import{a as e,t}from"./runner-DfsWnEWI.js";async function n(e){return t(r(e))}function r(e){return e===`codex`?`codex`:e===`gemini`?`gemini`:`claude`}function i(e,t,n){let i=r(e),o=e===`codex`?[`exec`,t]:[`-p`,t];return e===`gemini`&&n.model&&o.unshift(`-m`,n.model),{executable:i,baseArgs:o,yoloArgs:a(e,n.yolo)}}function a(e,t){if(t)switch(e){case`codex`:return[`--dangerously-bypass-approvals-and-sandbox`];case`gemini`:return[`-y`];case`claude`:return[`--dangerously-skip-permissions`]}}async function o(t,n,r){await e(i(t,n,r))}export{r as i,n,o as r,i as t};
1
+ import{a as e,t}from"./runner-DfsWnEWI.js";async function n(e){return t(r(e))}function r(e){return e===`codex`?`codex`:e===`gemini`?`gemini`:`claude`}function i(e,t,n){let i=r(e),o=e===`codex`?[`exec`,t]:[`-p`,t];return e===`gemini`&&n.model&&o.unshift(`-m`,n.model),{executable:i,baseArgs:o,yoloArgs:a(e,n.yolo)}}function a(e,t){if(t)switch(e){case`codex`:return[`--yolo`];case`gemini`:return[`-y`];case`claude`:return[`--dangerously-skip-permissions`]}}async function o(t,n,r){await e(i(t,n,r))}export{r as i,n,o as r,i as t};
@@ -1 +1 @@
1
- import{p as e}from"./errors-x3Es7YJ3.js";import{n as t,t as n}from"./editor-DUx1Sby2.js";import{t as r}from"./format-CZL0rRQR.js";import{a as i,c as a,h as o,m as s,s as c}from"./fsStore-D1omjK0d.js";import{t as l}from"./base-Dv8Ajp1w.js";import{t as u}from"./claudeDefault-BP2oPKZC.js";import*as d from"node:fs";import*as f from"node:path";var p=class extends l{toolId=`claude`;async list(e){let t=s(this.validateAndResolvePath(e)),n=f.dirname(t),r=f.basename(t),i=[this.#e(t,e,!0)];if(d.existsSync(n)){let t=d.readdirSync(n,{withFileTypes:!0});for(let a of t){if(!a.isFile()||a.name===r||!this.#r(a.name))continue;let t=f.join(n,a.name);i.push(this.#e(t,e,!1))}}return{type:`files`,files:this.#o(i)}}resolvePath(e){switch(e){case`user`:return`~/.claude/settings.json`;case`project`:return`.claude/settings.json`;case`local`:return`.claude/settings.local.json`;default:throw Error(`Unsupported scope for Claude: ${e}`)}}validateScope(e){return[`user`,`project`,`local`].includes(e)}async switchProfile(t,n,i){let a=s(this.validateAndResolvePath(t)),o=n.trim();if(!o)throw Error(`Variant name cannot be empty`);let l=c(f.dirname(a),o,a);if(!l)throw new e(o);let u=this.readConfig(l),d={};try{d=this.readConfig(a)}catch{d={}}let p=r(d,u);if(i?.preview)return{success:!0,preview:!0,filePath:a,diff:p??void 0,data:{from:l,to:a,hasChanges:!!p},message:p?`Preview generated. Review diff before applying.`:`Current settings already match the selected variant.`};if(!p)return{success:!0,message:`Current settings already match the selected variant.`,filePath:a};let m=i?.backup??!1;return this.writeConfig(a,u,m),{success:!0,message:`Switched to ${f.basename(l)}`,filePath:a,data:{from:l,to:a}}}async edit(e,r){let a=s(this.validateAndResolvePath(e)),l=f.dirname(a),u=r.name?.trim(),p=t(r.ide);i(l);let m=a,h=`default`;if(u&&u!==``&&u!==`default`){let e=c(l,u,a);if(e)m=e;else if(m=f.join(l,`settings.${u}.json`),!d.existsSync(m)){let e=this.#n(a);o(m,e,!1)}h=u}else if(!d.existsSync(m)){let e=this.#n(a);o(m,e,!1)}return await n(p,m),{success:!0,message:`Opened ${h} settings in ${p}`,filePath:m,data:{variant:h,ide:p}}}#e(e,t,n){let r=a(e);return{filename:f.basename(e),variant:this.#t(e),path:e,scope:t,active:n,exists:!!r,size:r?.size,lastModified:r?.lastModified}}#t(e){let t=f.basename(e),n=t.match(/^settings(?:[._-](.+))?\.json$/);return n?n[1]??`default`:t.replace(/\.json$/,``)}#n(e){try{if(d.existsSync(e)){let t=d.readFileSync(e,`utf-8`);return JSON.parse(t)}}catch{}return{...u}}#r(e){return/^settings[._-].+\.json$/.test(e)}getCurrentVariant(e){let t=s(this.validateAndResolvePath(e)),n=f.dirname(t);if(!d.existsSync(t)||!d.existsSync(n))return null;let r;try{r=this.readConfig(t)}catch{return null}let i=d.readdirSync(n,{withFileTypes:!0});for(let e of i){if(!e.isFile()||!this.#r(e.name))continue;let t=f.join(n,e.name);try{let e=this.readConfig(t);if(this.#i(r,e))return this.#t(t)}catch{continue}}return null}#i(e,t){return this.#a(e)===this.#a(t)}#a(e){return typeof e!=`object`||!e?JSON.stringify(e):Array.isArray(e)?`[`+e.map(e=>this.#a(e)).join(`,`)+`]`:`{`+Object.keys(e).sort().map(t=>JSON.stringify(t)+`:`+this.#a(e[t])).join(`,`)+`}`}#o(e){return e.sort((e,t)=>e.active&&!t.active?-1:!e.active&&t.active?1:e.variant.localeCompare(t.variant))}};export{p as t};
1
+ import{p as e}from"./errors-x3Es7YJ3.js";import{n as t,t as n}from"./editor-DUx1Sby2.js";import{t as r}from"./format-CZL0rRQR.js";import{a as i,c as a,h as o,m as s,s as c}from"./fsStore-D1omjK0d.js";import{t as l}from"./base-Dv8Ajp1w.js";import{t as u}from"./claudeDefault-B1OdW_1X.js";import*as d from"node:fs";import*as f from"node:path";var p=class extends l{toolId=`claude`;async list(e){let t=s(this.validateAndResolvePath(e)),n=f.dirname(t),r=f.basename(t),i=[this.#e(t,e,!0)];if(d.existsSync(n)){let t=d.readdirSync(n,{withFileTypes:!0});for(let a of t){if(!a.isFile()||a.name===r||!this.#r(a.name))continue;let t=f.join(n,a.name);i.push(this.#e(t,e,!1))}}return{type:`files`,files:this.#o(i)}}resolvePath(e){switch(e){case`user`:return`~/.claude/settings.json`;case`project`:return`.claude/settings.json`;case`local`:return`.claude/settings.local.json`;default:throw Error(`Unsupported scope for Claude: ${e}`)}}validateScope(e){return[`user`,`project`,`local`].includes(e)}async switchProfile(t,n,i){let a=s(this.validateAndResolvePath(t)),o=n.trim();if(!o)throw Error(`Variant name cannot be empty`);let l=c(f.dirname(a),o,a);if(!l)throw new e(o);let u=this.readConfig(l),d={};try{d=this.readConfig(a)}catch{d={}}let p=r(d,u);if(i?.preview)return{success:!0,preview:!0,filePath:a,diff:p??void 0,data:{from:l,to:a,hasChanges:!!p},message:p?`Preview generated. Review diff before applying.`:`Current settings already match the selected variant.`};if(!p)return{success:!0,message:`Current settings already match the selected variant.`,filePath:a};let m=i?.backup??!1;return this.writeConfig(a,u,m),{success:!0,message:`Switched to ${f.basename(l)}`,filePath:a,data:{from:l,to:a}}}async edit(e,r){let a=s(this.validateAndResolvePath(e)),l=f.dirname(a),u=r.name?.trim(),p=t(r.ide);i(l);let m=a,h=`default`;if(u&&u!==``&&u!==`default`){let e=c(l,u,a);if(e)m=e;else if(m=f.join(l,`settings.${u}.json`),!d.existsSync(m)){let e=this.#n(a);o(m,e,!1)}h=u}else if(!d.existsSync(m)){let e=this.#n(a);o(m,e,!1)}return await n(p,m),{success:!0,message:`Opened ${h} settings in ${p}`,filePath:m,data:{variant:h,ide:p}}}#e(e,t,n){let r=a(e);return{filename:f.basename(e),variant:this.#t(e),path:e,scope:t,active:n,exists:!!r,size:r?.size,lastModified:r?.lastModified}}#t(e){let t=f.basename(e),n=t.match(/^settings(?:[._-](.+))?\.json$/);return n?n[1]??`default`:t.replace(/\.json$/,``)}#n(e){try{if(d.existsSync(e)){let t=d.readFileSync(e,`utf-8`);return JSON.parse(t)}}catch{}return{...u}}#r(e){return/^settings[._-].+\.json$/.test(e)}getCurrentVariant(e){let t=s(this.validateAndResolvePath(e)),n=f.dirname(t);if(!d.existsSync(t)||!d.existsSync(n))return null;let r;try{r=this.readConfig(t)}catch{return null}let i=d.readdirSync(n,{withFileTypes:!0});for(let e of i){if(!e.isFile()||!this.#r(e.name))continue;let t=f.join(n,e.name);try{let e=this.readConfig(t);if(this.#i(r,e))return this.#t(t)}catch{continue}}return null}#i(e,t){return this.#a(e)===this.#a(t)}#a(e){return typeof e!=`object`||!e?JSON.stringify(e):Array.isArray(e)?`[`+e.map(e=>this.#a(e)).join(`,`)+`]`:`{`+Object.keys(e).sort().map(t=>JSON.stringify(t)+`:`+this.#a(e[t])).join(`,`)+`}`}#o(e){return e.sort((e,t)=>e.active&&!t.active?-1:!e.active&&t.active?1:e.variant.localeCompare(t.variant))}};export{p as t};
@@ -0,0 +1 @@
1
+ import{t as e}from"./base-ES3hc6uu.js";var t=class extends e{toolId=`codex`;executable=`codex`;buildCommandSpec(e){let t=[];if(e.settings){let n=this.#e(e.settings);t.push(...n)}return e.continue?t.push(`resume`,`--last`):e.resume&&t.push(`resume`),{executable:this.executable,baseArgs:t,yoloArgs:e.yolo?[`--yolo`]:void 0}}#e(e){let t=[];if(e.includes(`=`)){let n=e.split(`;`).map(e=>e.trim());for(let e of n)e&&t.push(`-c`,e)}else t.push(`-c`,`model=${e}`);return t}};export{t};
@@ -1,4 +1,4 @@
1
- import"../../errors-x3Es7YJ3.js";import"../../editor-DUx1Sby2.js";import"../../runner-DfsWnEWI.js";import"../../config-D0b5Ceh4.js";import"../../fsStore-D1omjK0d.js";import"../../base-Dv8Ajp1w.js";import"../../template-DtJFiC8I.js";import{t as e}from"../../xling-DxPgM9hF.js";import"../../providerRegistry-Cioo_VTs.js";import"../../client-BklkqGNW.js";import{n as t,t as n}from"../../types-CDh8FKyF.js";import"../../loadBalancer-DNwUsuJG.js";import"../../errorClassifier-mZXKjKvv.js";import{n as r}from"../../router-DfJrwCH_.js";import{t as i}from"../../prompt-builder-CPDeJ-iv.js";import{i as a,n as o,r as s}from"../../backend-router-BVglKdTL.js";import{n as c,r as l,t as u}from"../../interactive-mode-CeP7yLWk.js";import{Args as d,Command as f,Flags as p}from"@oclif/core";import*as m from"node:fs";var h=class h extends f{static summary=`Execute prompts via xling router or AI CLI tools`;static description=`
1
+ import"../../errors-x3Es7YJ3.js";import"../../editor-DUx1Sby2.js";import"../../runner-DfsWnEWI.js";import"../../config-D0b5Ceh4.js";import"../../fsStore-D1omjK0d.js";import"../../base-Dv8Ajp1w.js";import"../../template-DtJFiC8I.js";import{t as e}from"../../xling-DxPgM9hF.js";import"../../providerRegistry-Cioo_VTs.js";import"../../client-BklkqGNW.js";import{n as t,t as n}from"../../types-CDh8FKyF.js";import"../../loadBalancer-DNwUsuJG.js";import"../../errorClassifier-mZXKjKvv.js";import{n as r}from"../../router-DfJrwCH_.js";import{t as i}from"../../prompt-builder-CPDeJ-iv.js";import{i as a,n as o,r as s}from"../../backend-router-BDDojDYB.js";import{n as c,r as l,t as u}from"../../interactive-mode-CeP7yLWk.js";import{Args as d,Command as f,Flags as p}from"@oclif/core";import*as m from"node:fs";var h=class h extends f{static summary=`Execute prompts via xling router or AI CLI tools`;static description=`
2
2
  Send prompts to AI models using xling's built-in router (default) or
3
3
  delegate to CLI tools like codex exec, claude -p, or gemini.
4
4
 
@@ -1,4 +1,4 @@
1
- import"../../errors-x3Es7YJ3.js";import"../../editor-DUx1Sby2.js";import{r as e}from"../../format-CZL0rRQR.js";import"../../fsStore-D1omjK0d.js";import"../../base-Dv8Ajp1w.js";import{t}from"../../codex-Kk3Sv7uC.js";import{Command as n,Flags as r}from"@oclif/core";var i=class i extends n{static summary=`Manage saved auth profiles`;static description=`
1
+ import"../../errors-x3Es7YJ3.js";import"../../editor-DUx1Sby2.js";import{r as e}from"../../format-CZL0rRQR.js";import"../../fsStore-D1omjK0d.js";import"../../base-Dv8Ajp1w.js";import{t}from"../../codex-BS4wfOmD.js";import{Command as n,Flags as r}from"@oclif/core";var i=class i extends n{static summary=`Manage saved auth profiles`;static description=`
2
2
  Save, list, and delete auth profiles for Codex.
3
3
  Use settings:switch to switch between auth profiles and providers.
4
4
 
@@ -1,4 +1,4 @@
1
- import"../../errors-x3Es7YJ3.js";import"../../editor-DUx1Sby2.js";import{r as e}from"../../format-CZL0rRQR.js";import"../../config-D0b5Ceh4.js";import{m as t,s as n}from"../../fsStore-D1omjK0d.js";import"../../base-Dv8Ajp1w.js";import"../../template-DtJFiC8I.js";import"../../xling-DxPgM9hF.js";import"../../codex-Kk3Sv7uC.js";import"../../claudeDefault-BP2oPKZC.js";import{t as r}from"../../claude-BqDhM0_U.js";import"../../gemini-2eTblTJ_.js";import{t as i}from"../../dispatcher-DOZzJY8q.js";import{Args as a,Command as o,Flags as s}from"@oclif/core";import c from"node:fs";import l from"node:path";var u=class u extends o{static summary=`View configuration file contents`;static description=`
1
+ import"../../errors-x3Es7YJ3.js";import"../../editor-DUx1Sby2.js";import{r as e}from"../../format-CZL0rRQR.js";import"../../config-D0b5Ceh4.js";import{m as t,s as n}from"../../fsStore-D1omjK0d.js";import"../../base-Dv8Ajp1w.js";import"../../template-DtJFiC8I.js";import"../../xling-DxPgM9hF.js";import"../../codex-BS4wfOmD.js";import"../../claudeDefault-B1OdW_1X.js";import{t as r}from"../../claude-Fcll-DX1.js";import"../../gemini-Cc8MC-Lf.js";import{t as i}from"../../dispatcher-BH3J7LPC.js";import{Args as a,Command as o,Flags as s}from"@oclif/core";import c from"node:fs";import l from"node:path";var u=class u extends o{static summary=`View configuration file contents`;static description=`
2
2
  Print the entire configuration file for the selected tool/scope.
3
3
  Output format depends on the file type (JSON, TOML, etc.).
4
4
  `;static examples=[{description:`Print Claude user settings (raw file)`,command:`<%= config.bin %> <%= command.id %> --tool claude --scope user`},{description:`Inspect a Claude variant by name`,command:`<%= config.bin %> <%= command.id %> hxi --tool claude --scope user`},{description:`Dump Codex config as JSON for scripting`,command:`<%= config.bin %> <%= command.id %> --tool codex --json`},{description:`View xling prompt router config (if present)`,command:`<%= config.bin %> <%= command.id %> --tool xling --scope user`}];static args={name:a.string({description:`Claude variant name (optional). Example: settings:get hxi`,required:!1})};static flags={tool:s.string({char:`t`,description:`AI CLI tool to manage`,options:[`claude`,`codex`,`gemini`,`xling`],default:`claude`}),scope:s.string({char:`s`,description:`Configuration scope`,options:[`user`,`project`,`local`,`system`],default:`user`})};async run(){let{args:t,flags:n}=await this.parse(u);try{let r=n.tool,i=n.scope,a=r===`claude`&&t.name?await this.#t(i,t.name):await this.#e(r,i,t.name);if(n.json){this.log(e({success:!0,data:a}));return}if(!a.exists){this.warn(`Config file not found: ${a.path}`);return}a.content?this.log(a.content):this.log(`File is empty.`)}catch(e){this.error(e.message,{exit:1})}}async#e(e,t,n){return(await new i().execute({tool:e,scope:t,action:`inspect`,name:n})).data}async#t(e,i){let a=new r;if(!a.validateScope(e))throw Error(`Invalid scope for Claude: ${e}`);let o=i.trim();if(!o||o===`default`)return this.#e(`claude`,e);let s=t(a.resolvePath(e)),u=l.dirname(s),d=n(u,o)??l.join(u,`settings.${o}.json`);if(!c.existsSync(d))return{path:d,exists:!1};let f=c.statSync(d);return{path:d,exists:!0,content:c.readFileSync(d,`utf-8`),size:f.size,lastModified:f.mtime}}};export{u as default};
@@ -1,4 +1,4 @@
1
- import"../../errors-x3Es7YJ3.js";import"../../editor-DUx1Sby2.js";import{r as e}from"../../format-CZL0rRQR.js";import"../../config-D0b5Ceh4.js";import"../../fsStore-D1omjK0d.js";import"../../base-Dv8Ajp1w.js";import"../../template-DtJFiC8I.js";import"../../xling-DxPgM9hF.js";import"../../codex-Kk3Sv7uC.js";import"../../claudeDefault-BP2oPKZC.js";import"../../claude-BqDhM0_U.js";import"../../gemini-2eTblTJ_.js";import{t}from"../../dispatcher-DOZzJY8q.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=`
1
+ import"../../errors-x3Es7YJ3.js";import"../../editor-DUx1Sby2.js";import{r as e}from"../../format-CZL0rRQR.js";import"../../config-D0b5Ceh4.js";import"../../fsStore-D1omjK0d.js";import"../../base-Dv8Ajp1w.js";import"../../template-DtJFiC8I.js";import"../../xling-DxPgM9hF.js";import"../../codex-BS4wfOmD.js";import"../../claudeDefault-B1OdW_1X.js";import"../../claude-Fcll-DX1.js";import"../../gemini-Cc8MC-Lf.js";import{t}from"../../dispatcher-BH3J7LPC.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=`
2
2
  Display information about the configuration file, including:
3
3
  - File path
4
4
  - Existence status
@@ -1,4 +1,4 @@
1
- import"../../errors-x3Es7YJ3.js";import"../../editor-DUx1Sby2.js";import{i as e,n as t,r as n}from"../../format-CZL0rRQR.js";import"../../config-D0b5Ceh4.js";import"../../fsStore-D1omjK0d.js";import"../../base-Dv8Ajp1w.js";import"../../template-DtJFiC8I.js";import"../../xling-DxPgM9hF.js";import"../../codex-Kk3Sv7uC.js";import"../../claudeDefault-BP2oPKZC.js";import"../../claude-BqDhM0_U.js";import"../../gemini-2eTblTJ_.js";import{t as r}from"../../dispatcher-DOZzJY8q.js";import{Command as i,Flags as a}from"@oclif/core";var o=class o extends i{static summary=`List all settings for a tool`;static description=`
1
+ import"../../errors-x3Es7YJ3.js";import"../../editor-DUx1Sby2.js";import{i as e,n as t,r as n}from"../../format-CZL0rRQR.js";import"../../config-D0b5Ceh4.js";import"../../fsStore-D1omjK0d.js";import"../../base-Dv8Ajp1w.js";import"../../template-DtJFiC8I.js";import"../../xling-DxPgM9hF.js";import"../../codex-BS4wfOmD.js";import"../../claudeDefault-B1OdW_1X.js";import"../../claude-Fcll-DX1.js";import"../../gemini-Cc8MC-Lf.js";import{t as r}from"../../dispatcher-BH3J7LPC.js";import{Command as i,Flags as a}from"@oclif/core";var o=class o extends i{static summary=`List all settings for a tool`;static description=`
2
2
  Display all configuration settings for the specified AI CLI tool.
3
3
  Supports multiple scopes (user, project, local, system).
4
4
  For Codex, output includes model providers and saved auth profiles.
@@ -1,4 +1,4 @@
1
- import"../../errors-x3Es7YJ3.js";import"../../editor-DUx1Sby2.js";import{r as e}from"../../format-CZL0rRQR.js";import"../../config-D0b5Ceh4.js";import"../../fsStore-D1omjK0d.js";import"../../base-Dv8Ajp1w.js";import"../../template-DtJFiC8I.js";import"../../xling-DxPgM9hF.js";import"../../codex-Kk3Sv7uC.js";import"../../claudeDefault-BP2oPKZC.js";import"../../claude-BqDhM0_U.js";import"../../gemini-2eTblTJ_.js";import{t}from"../../dispatcher-DOZzJY8q.js";import{Command as n,Flags as r}from"@oclif/core";import i from"node:readline/promises";import{stdin as a,stdout as o}from"node:process";var s=class s extends n{static summary=`Edit settings or add model providers`;static description=`
1
+ import"../../errors-x3Es7YJ3.js";import"../../editor-DUx1Sby2.js";import{r as e}from"../../format-CZL0rRQR.js";import"../../config-D0b5Ceh4.js";import"../../fsStore-D1omjK0d.js";import"../../base-Dv8Ajp1w.js";import"../../template-DtJFiC8I.js";import"../../xling-DxPgM9hF.js";import"../../codex-BS4wfOmD.js";import"../../claudeDefault-B1OdW_1X.js";import"../../claude-Fcll-DX1.js";import"../../gemini-Cc8MC-Lf.js";import{t}from"../../dispatcher-BH3J7LPC.js";import{Command as n,Flags as r}from"@oclif/core";import i from"node:readline/promises";import{stdin as a,stdout as o}from"node:process";var s=class s extends n{static summary=`Edit settings or add model providers`;static description=`
2
2
  Create or open settings files for AI CLI tools in your preferred editor,
3
3
  or interactively add Codex model providers.
4
4
 
@@ -1,4 +1,4 @@
1
- import"../../errors-x3Es7YJ3.js";import"../../editor-DUx1Sby2.js";import{r as e}from"../../format-CZL0rRQR.js";import"../../config-D0b5Ceh4.js";import"../../fsStore-D1omjK0d.js";import"../../base-Dv8Ajp1w.js";import"../../template-DtJFiC8I.js";import{t}from"../../xling-DxPgM9hF.js";import{t as n}from"../../codex-Kk3Sv7uC.js";import"../../claudeDefault-BP2oPKZC.js";import{t as r}from"../../claude-BqDhM0_U.js";import"../../gemini-2eTblTJ_.js";import{t as i}from"../../dispatcher-DOZzJY8q.js";import{Args as a,Command as o,Flags as s}from"@oclif/core";import c from"node:readline/promises";import{stdin as l,stdout as u}from"node:process";var d=class d extends o{static summary=`Switch between profiles or settings variants`;static description=`
1
+ import"../../errors-x3Es7YJ3.js";import"../../editor-DUx1Sby2.js";import{r as e}from"../../format-CZL0rRQR.js";import"../../config-D0b5Ceh4.js";import"../../fsStore-D1omjK0d.js";import"../../base-Dv8Ajp1w.js";import"../../template-DtJFiC8I.js";import{t}from"../../xling-DxPgM9hF.js";import{t as n}from"../../codex-BS4wfOmD.js";import"../../claudeDefault-B1OdW_1X.js";import{t as r}from"../../claude-Fcll-DX1.js";import"../../gemini-Cc8MC-Lf.js";import{t as i}from"../../dispatcher-BH3J7LPC.js";import{Args as a,Command as o,Flags as s}from"@oclif/core";import c from"node:readline/promises";import{stdin as l,stdout as u}from"node:process";var d=class d extends o{static summary=`Switch between profiles or settings variants`;static description=`
2
2
  Switch to a different profile configuration for Codex,
3
3
  activate a specific settings.<variant>.json for Claude,
4
4
  or switch the default model for Xling prompt router.
@@ -1,4 +1,4 @@
1
- import"../../errors-x3Es7YJ3.js";import{r as e}from"../../format-CZL0rRQR.js";import"../../fsStore-D1omjK0d.js";import{i as t,n,r,t as i}from"../../sync-B6uHJ3Je.js";import{Command as a,Flags as o}from"@oclif/core";import s from"node:readline/promises";import{stdin as c,stdout as l}from"node:process";var u=class u extends a{static summary=`Sync config.toml between Claude Code and Codex`;static description=`
1
+ import"../../errors-x3Es7YJ3.js";import{r as e}from"../../format-CZL0rRQR.js";import"../../fsStore-D1omjK0d.js";import{i as t,n,r,t as i}from"../../sync-BfqO3fnF.js";import{Command as a,Flags as o}from"@oclif/core";import s from"node:readline/promises";import{stdin as c,stdout as l}from"node:process";var u=class u extends a{static summary=`Sync config.toml between Claude Code and Codex`;static description=`
2
2
  Copy Claude Code config.toml into Codex (default) or reverse the direction
3
3
  with --reverse. Shows a diff first, then lets you choose overwrite,
4
4
  backup+overwrite, or cancel (similar to settings:switch).
@@ -1,4 +1,4 @@
1
- import{n as e}from"../../cli-BevqZj-b.js";import"../../errors-x3Es7YJ3.js";import"../../editor-DUx1Sby2.js";import"../../config-D0b5Ceh4.js";import"../../fsStore-D1omjK0d.js";import"../../base-Dv8Ajp1w.js";import"../../template-DtJFiC8I.js";import"../../xling-DxPgM9hF.js";import{n as t,t as n}from"../../types-BDgDAGpu.js";import{t as r}from"../../runner-BDDl4-Yr.js";import{Args as i,Command as a,Flags as o}from"@oclif/core";import s from"cli-table3";var c=class c extends a{static summary=`Shortcut eXecute - run predefined command shortcuts`;static description=`
1
+ import{n as e}from"../../cli-BevqZj-b.js";import"../../errors-x3Es7YJ3.js";import"../../editor-DUx1Sby2.js";import"../../config-D0b5Ceh4.js";import"../../fsStore-D1omjK0d.js";import"../../base-Dv8Ajp1w.js";import"../../template-DtJFiC8I.js";import"../../xling-DxPgM9hF.js";import{n as t,t as n}from"../../types-BIWFx0bF.js";import{t as r}from"../../runner-BEeIEt9y.js";import{Args as i,Command as a,Flags as o}from"@oclif/core";import s from"cli-table3";var c=class c extends a{static summary=`Shortcut eXecute - run predefined command shortcuts`;static description=`
2
2
  Execute predefined command shortcuts configured in ~/.claude/xling.json.
3
3
 
4
4
  Shortcuts allow you to create custom aliases for frequently used xling commands
@@ -1 +1 @@
1
- import{Command as e}from"@oclif/core";var t=`0.11.1`,n=class extends e{static summary=`Show the current xling version`;static description=`Displays the version from package.json.`;static examples=[{description:`Print the installed CLI version`,command:`<%= config.bin %> <%= command.id %>`},{description:`Shortcut using the built-in flag`,command:`<%= config.bin %> --version`}];async run(){this.log(t??`unknown`)}};export{n as default};
1
+ import{Command as e}from"@oclif/core";var t=`0.11.2`,n=class extends e{static summary=`Show the current xling version`;static description=`Displays the version from package.json.`;static examples=[{description:`Print the installed CLI version`,command:`<%= config.bin %> <%= command.id %>`},{description:`Shortcut using the built-in flag`,command:`<%= config.bin %> --version`}];async run(){this.log(t??`unknown`)}};export{n as default};
@@ -1,4 +1,4 @@
1
- import"../../errors-x3Es7YJ3.js";import"../../runner-DfsWnEWI.js";import"../../base-ES3hc6uu.js";import"../../claude-BJ1kVclm.js";import"../../codex-DO3xGhyb.js";import"../../gemini-DjOdjVmz.js";import{t as e}from"../../dispatcher-CrrrsRFX.js";import{Command as t,Flags as n}from"@oclif/core";var r=class r extends t{static summary=`eXecute AI CLI tools (defaults to Claude Code with yolo)`;static description=`
1
+ import"../../errors-x3Es7YJ3.js";import"../../runner-DfsWnEWI.js";import"../../base-ES3hc6uu.js";import"../../claude-BJ1kVclm.js";import"../../codex-BNK3gljF.js";import"../../gemini-DjOdjVmz.js";import{t as e}from"../../dispatcher-0SxYaMPH.js";import{Command as t,Flags as n}from"@oclif/core";var r=class r extends t{static summary=`eXecute AI CLI tools (defaults to Claude Code with yolo)`;static description=`
2
2
  Quick launcher for Claude Code, Codex, or Gemini CLI with yolo mode enabled by default.
3
3
 
4
4
  Just run "xling x" to start Claude Code instantly!
@@ -7,7 +7,7 @@ import"../../errors-x3Es7YJ3.js";import"../../runner-DfsWnEWI.js";import"../../b
7
7
 
8
8
  Yolo mode is ENABLED by default, which skips permission prompts:
9
9
  - Claude Code: --dangerously-skip-permissions
10
- - Codex: --dangerously-bypass-approvals-and-sandbox
10
+ - Codex: --yolo
11
11
  - Gemini CLI: -y
12
12
 
13
13
  Resume options:
@@ -1 +1 @@
1
- import{h as e}from"./errors-x3Es7YJ3.js";import{a as t}from"./runner-DfsWnEWI.js";import{t as n}from"./claude-BJ1kVclm.js";import{t as r}from"./codex-DO3xGhyb.js";import{t as i}from"./gemini-DjOdjVmz.js";var a=class{#e;constructor(){this.#e=new Map,this.#e.set(`claude`,new n),this.#e.set(`codex`,new r),this.#e.set(`gemini`,new i)}async execute(e){let n=this.#t(e.tool);if(!await n.validateAvailability())return{success:!1,message:`Tool "${e.tool}" is not installed or not found in PATH`};let r=e.yolo??!0,i=n.buildCommandSpec({yolo:r,resume:e.resume,continue:e.continue,settings:e.settings});try{let{pid:n,command:a}=await t(i,{cwd:e.cwd,args:e.args}),o={tool:e.tool,yolo:r,args:e.args??[]};return e.resume!==void 0&&(o.resume=e.resume),e.continue!==void 0&&(o.continue=e.continue),e.cwd&&(o.cwd=e.cwd),{success:!0,pid:n,command:a,message:`Launched ${e.tool} successfully (PID: ${n})`,data:o}}catch(t){return{success:!1,message:`Failed to launch ${e.tool}: ${t.message}`}}}#t(t){let n=this.#e.get(t);if(!n)throw new e(t);return n}registerAdapter(e){this.#e.set(e.toolId,e)}getSupportedTools(){return Array.from(this.#e.keys())}};export{a as t};
1
+ import{h as e}from"./errors-x3Es7YJ3.js";import{a as t}from"./runner-DfsWnEWI.js";import{t as n}from"./claude-BJ1kVclm.js";import{t as r}from"./codex-BNK3gljF.js";import{t as i}from"./gemini-DjOdjVmz.js";var a=class{#e;constructor(){this.#e=new Map,this.#e.set(`claude`,new n),this.#e.set(`codex`,new r),this.#e.set(`gemini`,new i)}async execute(e){let n=this.#t(e.tool);if(!await n.validateAvailability())return{success:!1,message:`Tool "${e.tool}" is not installed or not found in PATH`};let r=e.yolo??!0,i=n.buildCommandSpec({yolo:r,resume:e.resume,continue:e.continue,settings:e.settings});try{let{pid:n,command:a}=await t(i,{cwd:e.cwd,args:e.args}),o={tool:e.tool,yolo:r,args:e.args??[]};return e.resume!==void 0&&(o.resume=e.resume),e.continue!==void 0&&(o.continue=e.continue),e.cwd&&(o.cwd=e.cwd),{success:!0,pid:n,command:a,message:`Launched ${e.tool} successfully (PID: ${n})`,data:o}}catch(t){return{success:!1,message:`Failed to launch ${e.tool}: ${t.message}`}}}#t(t){let n=this.#e.get(t);if(!n)throw new e(t);return n}registerAdapter(e){this.#e.set(e.toolId,e)}getSupportedTools(){return Array.from(this.#e.keys())}};export{a as t};
@@ -1 +1 @@
1
- import{h as e,l as t,m as n}from"./errors-x3Es7YJ3.js";import{t as r}from"./xling-DxPgM9hF.js";import{t as i}from"./codex-Kk3Sv7uC.js";import{t as a}from"./claude-BqDhM0_U.js";import{t as o}from"./gemini-2eTblTJ_.js";var s=class{#e;constructor(){this.#e=new Map,this.#e.set(`claude`,new a),this.#e.set(`codex`,new i),this.#e.set(`gemini`,new o),this.#e.set(`xling`,new r)}async execute(e){let r=this.#t(e.tool);switch(e.action){case`list`:return{success:!0,data:await r.list(e.scope)};case`switch-profile`:if(!e.profile)throw new t(`Profile is required for switch-profile action`);if(!r.switchProfile)throw new n(`switch-profile`,e.tool);return await r.switchProfile(e.scope,e.profile,e.switchOptions);case`edit`:if(!r.edit)throw new n(`edit`,e.tool);return await r.edit(e.scope,{name:e.name,ide:e.ide,provider:e.provider});case`inspect`:if(!r.inspect)throw new n(`inspect`,e.tool);return{success:!0,data:await r.inspect(e.scope,e.name)};default:throw new n(e.action)}}#t(t){let n=this.#e.get(t);if(!n)throw new e(t);return n}registerAdapter(e){this.#e.set(e.toolId,e)}getSupportedTools(){return Array.from(this.#e.keys())}};export{s as t};
1
+ import{h as e,l as t,m as n}from"./errors-x3Es7YJ3.js";import{t as r}from"./xling-DxPgM9hF.js";import{t as i}from"./codex-BS4wfOmD.js";import{t as a}from"./claude-Fcll-DX1.js";import{t as o}from"./gemini-Cc8MC-Lf.js";var s=class{#e;constructor(){this.#e=new Map,this.#e.set(`claude`,new a),this.#e.set(`codex`,new i),this.#e.set(`gemini`,new o),this.#e.set(`xling`,new r)}async execute(e){let r=this.#t(e.tool);switch(e.action){case`list`:return{success:!0,data:await r.list(e.scope)};case`switch-profile`:if(!e.profile)throw new t(`Profile is required for switch-profile action`);if(!r.switchProfile)throw new n(`switch-profile`,e.tool);return await r.switchProfile(e.scope,e.profile,e.switchOptions);case`edit`:if(!r.edit)throw new n(`edit`,e.tool);return await r.edit(e.scope,{name:e.name,ide:e.ide,provider:e.provider});case`inspect`:if(!r.inspect)throw new n(`inspect`,e.tool);return{success:!0,data:await r.inspect(e.scope,e.name)};default:throw new n(e.action)}}#t(t){let n=this.#e.get(t);if(!n)throw new e(t);return n}registerAdapter(e){this.#e.set(e.toolId,e)}getSupportedTools(){return Array.from(this.#e.keys())}};export{s as t};
@@ -1 +1 @@
1
- import{t as e}from"./xling-DxPgM9hF.js";import{n as t,t as n}from"./types-BDgDAGpu.js";import{spawn as r}from"node:child_process";var i=class{#e;#t;constructor(t){this.#t=t,this.#e=new e}async load(){return this.#e.getShortcuts(`user`)}async list(){let e=await this.load();return Object.entries(e).map(([e,t])=>{let n,r;if(t.command)n=`command`,r=t.command;else if(t.shell){n=`shell`;let e=this.#i(t.shell);r=e.length>50?e.substring(0,47)+`...`:e}else t.pipeline?(n=`pipeline`,r=this.#s(t.pipeline).map(e=>e.command).join(` | `)):(n=`command`,r=`unknown`);return{name:e,type:n,command:r,args:t.args||[],description:t.description}})}async run(e,n){let r=await this.load(),i=r[e];if(!i)throw new t(e,Object.keys(r));this.#d(e,i),i.command?await this.#n(i,n):i.shell?await this.#r(i.shell):i.pipeline&&await this.#o(i.pipeline)}async#n(e,t){let n=[...e.args||[],...t];await this.#t.runCommand(e.command,n)}async#r(e){return new Promise((t,n)=>{let i=this.#a(),a=r(this.#i(e),{shell:i,stdio:`inherit`});a.on(`error`,e=>{n(Error(`Failed to execute shell command: ${e.message}`))}),a.on(`exit`,e=>{e===0?t():n(Error(`Shell command exited with code ${e}`))})})}#i(e){return typeof e==`string`?e:this.#l(e)}#a(){return process.platform===`win32`?`pwsh`:!0}async#o(e){return new Promise((t,n)=>{let i=this.#s(e),a=[];for(let e=0;e<i.length;e++){let t=i[e],o=e===0,s=e===i.length-1,c=t.command,l=t.args||[],u=c===`pwsh`||c===`powershell`||c===`cmd`||c.includes(`\\`)||c.includes(`/`),d=process.platform===`win32`&&!u,f=r(c,l,{stdio:[o?`inherit`:`pipe`,s?`inherit`:`pipe`,`inherit`],shell:d,cwd:process.cwd(),env:process.env});!o&&a[e-1]&&a[e-1].stdout?.pipe(f.stdin),a.push(f),f.on(`error`,e=>{n(Error(`Failed to execute pipeline step "${t.command}": ${e.message}`))})}a[a.length-1].on(`exit`,e=>{e===0?t():n(Error(`Pipeline exited with code ${e}`))})})}#s(e){return(Array.isArray(e)?e:this.#c(e)).map(e=>({command:this.#l(e.command),args:e.args?this.#l(e.args):void 0}))}#c(e){let t=process.platform;return t===`win32`&&e.win32?e.win32:t===`darwin`&&e.darwin?e.darwin:t===`linux`&&e.linux?e.linux:e.default}#l(e){if(!this.#u(e))return e;let t=process.platform;return t===`win32`&&e.win32!==void 0?e.win32:t===`darwin`&&e.darwin!==void 0?e.darwin:t===`linux`&&e.linux!==void 0?e.linux:e.default}#u(e){return typeof e==`object`&&!!e&&!Array.isArray(e)&&`default`in e}#d(e,t){if(t.command===`sx`)throw new n(e);if(t.pipeline){let r=this.#s(t.pipeline);for(let t of r)if(t.command===`xling`&&t.args?.includes(`sx`))throw new n(e)}if(t.shell&&this.#i(t.shell).includes(`xling sx`))throw new n(e)}};export{i as t};
1
+ import{t as e}from"./xling-DxPgM9hF.js";import{n as t,t as n}from"./types-BIWFx0bF.js";import{spawn as r}from"node:child_process";var i=class{#e;#t;constructor(t){this.#t=t,this.#e=new e}async load(){return this.#e.getShortcuts(`user`)}async list(){let e=await this.load();return Object.entries(e).map(([e,t])=>{let n,r;if(t.command)n=`command`,r=t.command;else if(t.shell){n=`shell`;let e=this.#i(t.shell);r=e.length>50?e.substring(0,47)+`...`:e}else t.pipeline?(n=`pipeline`,r=this.#s(t.pipeline).map(e=>e.command).join(` | `)):(n=`command`,r=`unknown`);return{name:e,type:n,command:r,args:t.args||[],description:t.description}})}async run(e,n){let r=await this.load(),i=r[e];if(!i)throw new t(e,Object.keys(r));this.#d(e,i),i.command?await this.#n(i,n):i.shell?await this.#r(i.shell):i.pipeline&&await this.#o(i.pipeline)}async#n(e,t){let n=[...e.args||[],...t];await this.#t.runCommand(e.command,n)}async#r(e){return new Promise((t,n)=>{let i=this.#a(),a=r(this.#i(e),{shell:i,stdio:`inherit`});a.on(`error`,e=>{n(Error(`Failed to execute shell command: ${e.message}`))}),a.on(`exit`,e=>{e===0?t():n(Error(`Shell command exited with code ${e}`))})})}#i(e){return typeof e==`string`?e:this.#l(e)}#a(){return process.platform===`win32`?`pwsh`:!0}async#o(e){return new Promise((t,n)=>{let i=this.#s(e),a=[];for(let e=0;e<i.length;e++){let t=i[e],o=e===0,s=e===i.length-1,c=t.command,l=t.args||[],u=c===`pwsh`||c===`powershell`||c===`cmd`||c.includes(`\\`)||c.includes(`/`),d=process.platform===`win32`&&!u,f=r(c,l,{stdio:[o?`inherit`:`pipe`,s?`inherit`:`pipe`,`inherit`],shell:d,cwd:process.cwd(),env:process.env});!o&&a[e-1]&&a[e-1].stdout?.pipe(f.stdin),a.push(f),f.on(`error`,e=>{n(Error(`Failed to execute pipeline step "${t.command}": ${e.message}`))})}a[a.length-1].on(`exit`,e=>{e===0?t():n(Error(`Pipeline exited with code ${e}`))})})}#s(e){return(Array.isArray(e)?e:this.#c(e)).map(e=>({command:this.#l(e.command),args:e.args?this.#l(e.args):void 0}))}#c(e){let t=process.platform;return t===`win32`&&e.win32?e.win32:t===`darwin`&&e.darwin?e.darwin:t===`linux`&&e.linux?e.linux:e.default}#l(e){if(!this.#u(e))return e;let t=process.platform;return t===`win32`&&e.win32!==void 0?e.win32:t===`darwin`&&e.darwin!==void 0?e.darwin:t===`linux`&&e.linux!==void 0?e.linux:e.default}#u(e){return typeof e==`object`&&!!e&&!Array.isArray(e)&&`default`in e}#d(e,t){if(t.command===`sx`)throw new n(e);if(t.pipeline){let r=this.#s(t.pipeline);for(let t of r)if(t.command===`xling`&&t.args?.includes(`sx`))throw new n(e)}if(t.shell&&this.#i(t.shell).includes(`xling sx`))throw new n(e)}};export{i as t};
@@ -6,7 +6,7 @@ import { t as BaseLaunchAdapter } from "../../../base-DtqFhVhJ.js";
6
6
 
7
7
  /**
8
8
  * Applies Codex-specific behavior:
9
- * - Yolo mode: --dangerously-bypass-approvals-and-sandbox
9
+ * - Yolo mode: --yolo
10
10
  * - Resume picker: `codex resume`
11
11
  * - Continue last session: `codex resume --last`
12
12
  * - Settings: -c key=value (can be repeated)
@@ -1 +1 @@
1
- import"../../../runner-DfsWnEWI.js";import"../../../base-ES3hc6uu.js";import{t as e}from"../../../codex-DO3xGhyb.js";export{e as CodexLaunchAdapter};
1
+ import"../../../runner-DfsWnEWI.js";import"../../../base-ES3hc6uu.js";import{t as e}from"../../../codex-BNK3gljF.js";export{e as CodexLaunchAdapter};
@@ -1 +1 @@
1
- import"../../errors-x3Es7YJ3.js";import"../../runner-DfsWnEWI.js";import"../../base-ES3hc6uu.js";import"../../claude-BJ1kVclm.js";import"../../codex-DO3xGhyb.js";import"../../gemini-DjOdjVmz.js";import{t as e}from"../../dispatcher-CrrrsRFX.js";export{e as LaunchDispatcher};
1
+ import"../../errors-x3Es7YJ3.js";import"../../runner-DfsWnEWI.js";import"../../base-ES3hc6uu.js";import"../../claude-BJ1kVclm.js";import"../../codex-BNK3gljF.js";import"../../gemini-DjOdjVmz.js";import{t as e}from"../../dispatcher-0SxYaMPH.js";export{e as LaunchDispatcher};
@@ -1 +1 @@
1
- import"../../runner-DfsWnEWI.js";import{i as e,n as t,r as n,t as r}from"../../backend-router-BVglKdTL.js";export{r as buildCommandSpec,t as checkBackendAvailable,n as executeViaCli,e as getExecutable};
1
+ import"../../runner-DfsWnEWI.js";import{i as e,n as t,r as n,t as r}from"../../backend-router-BDDojDYB.js";export{r as buildCommandSpec,t as checkBackendAvailable,n as executeViaCli,e as getExecutable};
@@ -1 +1 @@
1
- import"../../../errors-x3Es7YJ3.js";import"../../../editor-DUx1Sby2.js";import"../../../format-CZL0rRQR.js";import"../../../fsStore-D1omjK0d.js";import"../../../base-Dv8Ajp1w.js";import"../../../claudeDefault-BP2oPKZC.js";import{t as e}from"../../../claude-BqDhM0_U.js";export{e as ClaudeAdapter};
1
+ import"../../../errors-x3Es7YJ3.js";import"../../../editor-DUx1Sby2.js";import"../../../format-CZL0rRQR.js";import"../../../fsStore-D1omjK0d.js";import"../../../base-Dv8Ajp1w.js";import"../../../claudeDefault-B1OdW_1X.js";import{t as e}from"../../../claude-Fcll-DX1.js";export{e as ClaudeAdapter};
@@ -1 +1 @@
1
- import"../../../errors-x3Es7YJ3.js";import"../../../editor-DUx1Sby2.js";import"../../../fsStore-D1omjK0d.js";import"../../../base-Dv8Ajp1w.js";import{n as e,t}from"../../../codex-Kk3Sv7uC.js";export{t as CodexAdapter,e as isConfigObject};
1
+ import"../../../errors-x3Es7YJ3.js";import"../../../editor-DUx1Sby2.js";import"../../../fsStore-D1omjK0d.js";import"../../../base-Dv8Ajp1w.js";import{n as e,t}from"../../../codex-BS4wfOmD.js";export{t as CodexAdapter,e as isConfigObject};
@@ -1 +1 @@
1
- import"../../../errors-x3Es7YJ3.js";import"../../../fsStore-D1omjK0d.js";import"../../../base-Dv8Ajp1w.js";import{t as e}from"../../../gemini-2eTblTJ_.js";export{e as GeminiAdapter};
1
+ import"../../../errors-x3Es7YJ3.js";import"../../../fsStore-D1omjK0d.js";import"../../../base-Dv8Ajp1w.js";import{t as e}from"../../../gemini-Cc8MC-Lf.js";export{e as GeminiAdapter};
@@ -1 +1 @@
1
- import"../../errors-x3Es7YJ3.js";import"../../editor-DUx1Sby2.js";import"../../format-CZL0rRQR.js";import"../../config-D0b5Ceh4.js";import"../../fsStore-D1omjK0d.js";import"../../base-Dv8Ajp1w.js";import"../../template-DtJFiC8I.js";import"../../xling-DxPgM9hF.js";import"../../codex-Kk3Sv7uC.js";import"../../claudeDefault-BP2oPKZC.js";import"../../claude-BqDhM0_U.js";import"../../gemini-2eTblTJ_.js";import{t as e}from"../../dispatcher-DOZzJY8q.js";export{e as SettingsDispatcher};
1
+ import"../../errors-x3Es7YJ3.js";import"../../editor-DUx1Sby2.js";import"../../format-CZL0rRQR.js";import"../../config-D0b5Ceh4.js";import"../../fsStore-D1omjK0d.js";import"../../base-Dv8Ajp1w.js";import"../../template-DtJFiC8I.js";import"../../xling-DxPgM9hF.js";import"../../codex-BS4wfOmD.js";import"../../claudeDefault-B1OdW_1X.js";import"../../claude-Fcll-DX1.js";import"../../gemini-Cc8MC-Lf.js";import{t as e}from"../../dispatcher-BH3J7LPC.js";export{e as SettingsDispatcher};
@@ -1 +1 @@
1
- import"../../errors-x3Es7YJ3.js";import"../../format-CZL0rRQR.js";import"../../fsStore-D1omjK0d.js";import{i as e,n as t,r as n,t as r}from"../../sync-B6uHJ3Je.js";export{r as DEFAULT_CLAUDE_CODE_TOML_PATH,t as DEFAULT_CODEX_CONFIG_PATH,n as syncClaudeTomlToCodex,e as syncCodexTomlToClaude};
1
+ import"../../errors-x3Es7YJ3.js";import"../../format-CZL0rRQR.js";import"../../fsStore-D1omjK0d.js";import{i as e,n as t,r as n,t as r}from"../../sync-BfqO3fnF.js";export{r as DEFAULT_CLAUDE_CODE_TOML_PATH,t as DEFAULT_CODEX_CONFIG_PATH,n as syncClaudeTomlToCodex,e as syncCodexTomlToClaude};
@@ -1 +1 @@
1
- import{t as e}from"../../../claudeDefault-BP2oPKZC.js";export{e as CLAUDE_SETTINGS_TEMPLATE};
1
+ import{t as e}from"../../../claudeDefault-B1OdW_1X.js";export{e as CLAUDE_SETTINGS_TEMPLATE};
@@ -1 +1 @@
1
- import"../../errors-x3Es7YJ3.js";import"../../editor-DUx1Sby2.js";import"../../config-D0b5Ceh4.js";import"../../fsStore-D1omjK0d.js";import"../../base-Dv8Ajp1w.js";import"../../template-DtJFiC8I.js";import"../../xling-DxPgM9hF.js";import"../../types-BDgDAGpu.js";import{t as e}from"../../runner-BDDl4-Yr.js";export{e as ShortcutRunner};
1
+ import"../../errors-x3Es7YJ3.js";import"../../editor-DUx1Sby2.js";import"../../config-D0b5Ceh4.js";import"../../fsStore-D1omjK0d.js";import"../../base-Dv8Ajp1w.js";import"../../template-DtJFiC8I.js";import"../../xling-DxPgM9hF.js";import"../../types-BIWFx0bF.js";import{t as e}from"../../runner-BEeIEt9y.js";export{e as ShortcutRunner};
@@ -1 +1 @@
1
- import{n as e,t}from"../../types-BDgDAGpu.js";export{t as CircularShortcutError,e as ShortcutNotFoundError};
1
+ import{n as e,t}from"../../types-BIWFx0bF.js";export{t as CircularShortcutError,e as ShortcutNotFoundError};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "xling",
3
- "version": "0.11.1",
3
+ "version": "0.11.2",
4
4
  "description": "Unified CLI for AI tools: settings management, API proxy with load balancing, multi-model discussions",
5
5
  "homepage": "https://github.com/kingsword09/xling/tree/main#readme",
6
6
  "bugs": {
@@ -1 +0,0 @@
1
- import{t as e}from"./base-ES3hc6uu.js";var t=class extends e{toolId=`codex`;executable=`codex`;buildCommandSpec(e){let t=[];if(e.settings){let n=this.#e(e.settings);t.push(...n)}return e.continue?t.push(`resume`,`--last`):e.resume&&t.push(`resume`),{executable:this.executable,baseArgs:t,yoloArgs:e.yolo?[`--dangerously-bypass-approvals-and-sandbox`]:void 0}}#e(e){let t=[];if(e.includes(`=`)){let n=e.split(`;`).map(e=>e.trim());for(let e of n)e&&t.push(`-c`,e)}else t.push(`-c`,`model=${e}`);return t}};export{t};
File without changes
File without changes
File without changes
File without changes