xling 0.9.6 → 0.9.7
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/{backend-router-Bn5Ji9HX.js → backend-router-C_Pyt-UU.js} +1 -1
- package/dist/{base-CEyMUsWC.js → base-BUo37ebo.js} +1 -1
- package/dist/{base-DKG6yInS.d.ts → base-ByMpRYJ8.d.ts} +2 -2
- package/dist/{base-CneQT9mQ.d.ts → base-DqlrBr6C.d.ts} +2 -2
- package/dist/{base-B5TGOQag.js → base-sBAL-g57.js} +1 -1
- package/dist/{claude-Kw20tq-I.js → claude-Bbd3pVuH.js} +1 -1
- package/dist/{claude-D9MrNBhj.js → claude-C3HxRfuM.js} +1 -1
- package/dist/{cli-mode-Bf47_bgy.js → cli-mode-BAKzBdi-.js} +1 -1
- package/dist/{codex-46ULt8KZ.js → codex-Db_IraH3.js} +1 -1
- package/dist/{codex-D6DXh3qW.js → codex-Dy_gUG6Z.js} +1 -1
- package/dist/commands/council/index.js +11 -1
- package/dist/commands/discuss/index.js +8 -1
- package/dist/commands/git/prc.js +1 -1
- package/dist/commands/git/prr.js +1 -1
- package/dist/commands/git/prv.js +1 -1
- package/dist/commands/git/worktree.js +1 -1
- package/dist/commands/git/wta.js +1 -1
- package/dist/commands/git/wtl.js +1 -1
- package/dist/commands/git/wtp.js +1 -1
- package/dist/commands/git/wtr.js +1 -1
- package/dist/commands/git/wts.js +1 -1
- package/dist/commands/p/index.d.ts +1 -0
- package/dist/commands/p/index.js +9 -1
- package/dist/commands/proxy/index.js +5 -2
- package/dist/commands/settings/auth.js +1 -1
- package/dist/commands/settings/get.js +2 -2
- package/dist/commands/settings/index.d.ts +12 -0
- package/dist/commands/settings/index.js +11 -0
- package/dist/commands/settings/inspect.js +1 -1
- package/dist/commands/settings/list.js +1 -1
- package/dist/commands/settings/set.js +1 -1
- package/dist/commands/settings/switch.js +1 -1
- package/dist/commands/settings/sync.js +1 -1
- package/dist/commands/sx/index.js +1 -1
- package/dist/commands/version/index.js +1 -1
- package/dist/commands/x/index.js +1 -1
- package/dist/{create-DCRzCnyk.js → create-CffFD_Yh.js} +1 -1
- package/dist/{dispatcher-kc9FxvGN.js → dispatcher-BE4ieOei.js} +1 -1
- package/dist/{dispatcher-o1x1DtvC.js → dispatcher-BLDVBwMH.js} +1 -1
- package/dist/{dispatcher-Dpcz8jAO.js → dispatcher-DBedC9_T.js} +1 -1
- package/dist/domain/git.d.ts +1 -1
- package/dist/domain/git.js +1 -1
- package/dist/domain/interfaces.d.ts +2 -2
- package/dist/domain/types.d.ts +1 -1
- package/dist/domain/validators.d.ts +1 -1
- package/dist/domain/validators.js +1 -1
- package/dist/domain/xling/config.d.ts +1 -1
- package/dist/domain/xling/config.js +1 -1
- package/dist/domain/xling/template.d.ts +1 -1
- package/dist/domain/xling/template.js +1 -1
- package/dist/{editor-BfE8c36f.js → editor-6Nht_jnv.js} +1 -1
- package/dist/{engine-C35P2p3k.d.ts → engine-Ct7cPezf.d.ts} +1 -1
- package/dist/{errorClassifier-BGYR4YzP.d.ts → errorClassifier-9x1_QQWd.d.ts} +1 -1
- package/dist/{fsStore-DVJLVT4G.js → fsStore-CwAffYMN.js} +1 -1
- package/dist/{gemini-4dzAg7tf.js → gemini-CedK05G6.js} +1 -1
- package/dist/{gemini-BmchXrb1.js → gemini-DmKcVP7x.js} +1 -1
- package/dist/{interfaces-BSSW-1OR.d.ts → interfaces-DY2ES_Kh.d.ts} +1 -1
- package/dist/{loadBalancer-CvpnwHns.d.ts → loadBalancer-C2W1fsXN.d.ts} +2 -2
- package/dist/{pr-BbiioEzE.js → pr-DYOhlKHw.js} +1 -1
- package/dist/{providerRegistry-DG8Nc-Jc.d.ts → providerRegistry-CYzkQsVn.d.ts} +1 -1
- package/dist/{providerRegistry-C_6DDXNa.js → providerRegistry-Dl_IFKMc.js} +1 -1
- package/dist/{router-C6XdK2_5.d.ts → router-CjYYSU1_.d.ts} +3 -3
- package/dist/{router-XRA1VbiH.js → router-gcWKPkkX.js} +1 -1
- package/dist/{runner-DKqtR8qk.js → runner-Bpbzwyfd.js} +1 -1
- package/dist/{runner-BRn80E55.js → runner-CZA7oPjO.js} +1 -1
- package/dist/{server-CWmflSUF.d.ts → server-Ba3J3MnR.d.ts} +3 -3
- package/dist/{server-DtVPi9M6.js → server-Dag3i5Zg.js} +1 -1
- package/dist/{server-BDFIbkqt.js → server-iGv0zRYN.js} +1 -1
- package/dist/services/council/runner.d.ts +4 -4
- package/dist/services/council/runner.js +1 -1
- package/dist/services/discuss/cli-mode.d.ts +4 -4
- package/dist/services/discuss/cli-mode.js +1 -1
- package/dist/services/discuss/engine.d.ts +5 -5
- package/dist/services/discuss/engine.js +1 -1
- package/dist/services/discuss/interactive-selector.js +1 -1
- package/dist/services/discuss/room.d.ts +4 -4
- package/dist/services/discuss/server.js +1 -1
- package/dist/services/discuss/ui-mode.js +1 -1
- package/dist/services/git/create.d.ts +1 -1
- package/dist/services/git/create.js +1 -1
- package/dist/services/git/dispatcher.d.ts +1 -1
- package/dist/services/git/dispatcher.js +1 -1
- package/dist/services/git/pr.d.ts +1 -1
- package/dist/services/git/pr.js +1 -1
- package/dist/services/git/utils.js +1 -1
- package/dist/services/git/view.d.ts +1 -1
- package/dist/services/git/view.js +1 -1
- package/dist/services/git/worktree.d.ts +1 -1
- package/dist/services/git/worktree.js +1 -1
- package/dist/services/launch/adapters/base.d.ts +3 -3
- package/dist/services/launch/adapters/base.js +1 -1
- package/dist/services/launch/adapters/claude.d.ts +3 -3
- package/dist/services/launch/adapters/claude.js +1 -1
- package/dist/services/launch/adapters/codex.d.ts +3 -3
- package/dist/services/launch/adapters/codex.js +1 -1
- package/dist/services/launch/adapters/gemini.d.ts +3 -3
- package/dist/services/launch/adapters/gemini.js +1 -1
- package/dist/services/launch/dispatcher.d.ts +2 -2
- package/dist/services/launch/dispatcher.js +1 -1
- package/dist/services/p/backend-router.d.ts +1 -1
- package/dist/services/p/backend-router.js +1 -1
- package/dist/services/p/interactive-mode.d.ts +4 -4
- package/dist/services/p/interactive-mode.js +1 -1
- package/dist/services/p/prompt-builder.js +1 -1
- package/dist/services/prompt/client.d.ts +2 -2
- package/dist/services/prompt/client.js +1 -1
- package/dist/services/prompt/providerRegistry.d.ts +2 -2
- package/dist/services/prompt/providerRegistry.js +1 -1
- package/dist/services/prompt/router.d.ts +4 -4
- package/dist/services/prompt/router.js +1 -1
- package/dist/services/prompt/types.d.ts +1 -1
- package/dist/services/prompt/types.js +1 -1
- package/dist/services/proxy/errorClassifier.d.ts +3 -3
- package/dist/services/proxy/errorClassifier.js +1 -1
- package/dist/services/proxy/index.d.ts +5 -5
- package/dist/services/proxy/index.js +1 -1
- package/dist/services/proxy/loadBalancer.d.ts +3 -3
- package/dist/services/proxy/loadBalancer.js +1 -1
- package/dist/services/proxy/server.d.ts +4 -4
- package/dist/services/proxy/server.js +1 -1
- package/dist/services/proxy/transformer.js +1 -1
- package/dist/services/proxy/types.d.ts +2 -2
- package/dist/services/settings/adapters/base.d.ts +3 -3
- package/dist/services/settings/adapters/base.js +1 -1
- package/dist/services/settings/adapters/claude.d.ts +3 -3
- package/dist/services/settings/adapters/claude.js +1 -1
- package/dist/services/settings/adapters/codex.d.ts +3 -3
- package/dist/services/settings/adapters/codex.js +1 -1
- package/dist/services/settings/adapters/gemini.d.ts +3 -3
- package/dist/services/settings/adapters/gemini.js +1 -1
- package/dist/services/settings/adapters/xling.d.ts +4 -4
- package/dist/services/settings/adapters/xling.js +1 -1
- package/dist/services/settings/dispatcher.d.ts +2 -2
- package/dist/services/settings/dispatcher.js +1 -1
- package/dist/services/settings/fsStore.d.ts +1 -1
- package/dist/services/settings/fsStore.js +1 -1
- package/dist/services/settings/sync.d.ts +1 -1
- package/dist/services/settings/sync.js +1 -1
- package/dist/services/settings/templates/claudeDefault.d.ts +1 -1
- package/dist/services/settings/templates/claudeDefault.js +1 -1
- package/dist/services/shortcuts/runner.d.ts +2 -2
- package/dist/services/shortcuts/runner.js +1 -1
- package/dist/services/shortcuts/types.d.ts +2 -2
- package/dist/services/shortcuts/types.js +1 -1
- package/dist/{sync-BVGUwK0U.js → sync-LkiPbSTH.js} +1 -1
- package/dist/{types-DSkij3xY.d.ts → types-C4lfsI_q.d.ts} +1 -1
- package/dist/{types-BUZTxIIw.d.ts → types-Dbw0iBKj.d.ts} +1 -1
- package/dist/ui/assets/{StreamdownWrapper-DWffBHOG.js → StreamdownWrapper-DD8GEORm.js} +3 -3
- package/dist/ui/assets/{code-block-JS6V4U2P-BItqi03x.js → code-block-JS6V4U2P-rLaKVw8X.js} +1 -1
- package/dist/ui/assets/{index-CLBPU8NI.js → index-t5qog9CR.js} +4 -4
- package/dist/ui/assets/mermaid-ZSTFYFNX-INIPY0sQ.js +1 -0
- package/dist/ui/assets/{vendor-react-OvXVS5lI.js → vendor-react-DlBnNAMw.js} +1 -1
- package/dist/ui/assets/{vendor-ui-bs9CQPvP.js → vendor-ui-DfWMXmcH.js} +1 -1
- package/dist/ui/index.html +3 -3
- package/dist/{ui-mode-xR6MIPNF.js → ui-mode-DeQ0RdzZ.js} +1 -1
- package/dist/utils/cli.js +1 -1
- package/dist/utils/editor.js +1 -1
- package/dist/utils/errors.js +1 -1
- package/dist/utils/format.d.ts +1 -1
- package/dist/utils/format.js +1 -1
- package/dist/utils/logger.js +1 -1
- package/dist/utils/runner.d.ts +1 -1
- package/dist/utils/runner.js +1 -1
- package/dist/{utils-C_M78-mm.js → utils-CCoDGqk7.js} +1 -1
- package/dist/{view-7FWP6c6N.js → view-4iWEelup.js} +1 -1
- package/dist/{worktree-y8aBlgNK.js → worktree-CFMEZX8U.js} +1 -1
- package/dist/{xling-BReZTlb3.js → xling-CMIOhJ6S.js} +1 -1
- package/package.json +13 -5
- package/dist/ui/assets/mermaid-ZSTFYFNX-BK4R0Mb9.js +0 -1
- /package/dist/{claudeDefault-DlA26Mhl.js → claudeDefault-D35i6PTj.js} +0 -0
- /package/dist/{cli-Bd-KxHjq.js → cli-BQnaBwZZ.js} +0 -0
- /package/dist/{client-CnYKnDo_.js → client-BbukhYrN.js} +0 -0
- /package/dist/{config-FuKh2Fd0.js → config-Bf-EeKY5.js} +0 -0
- /package/dist/{config-CZ03ghwF.d.ts → config-C87nCAHS.d.ts} +0 -0
- /package/dist/{engine-BcmRqbIP.js → engine-C0--Is1U.js} +0 -0
- /package/dist/{errorClassifier-CXL0O9lB.js → errorClassifier-B-lYIh-6.js} +0 -0
- /package/dist/{errors-Bjek6jHm.js → errors-BzZfdKtJ.js} +0 -0
- /package/dist/{format-Banh09CC.js → format-q5VlTrky.js} +0 -0
- /package/dist/{git-BE5TmoR5.d.ts → git-CRkoXk-6.d.ts} +0 -0
- /package/dist/{git-Dp7K__5K.js → git-CvgdaUQP.js} +0 -0
- /package/dist/{interactive-mode-Dw0oBqXz.js → interactive-mode-DG1vxROG.js} +0 -0
- /package/dist/{interactive-selector-Ca4qOz6C.js → interactive-selector-CrQv5JEK.js} +0 -0
- /package/dist/{loadBalancer-DUCjd5HG.js → loadBalancer-BUZZKUIh.js} +0 -0
- /package/dist/{logger-Bqbeu_se.js → logger-CTwnEBEm.js} +0 -0
- /package/dist/{prompt-builder-dkjHNFY9.js → prompt-builder-nnOfD-XX.js} +0 -0
- /package/dist/{runner-CrS2GC-S.js → runner-CCy2YdOv.js} +0 -0
- /package/dist/{template-DD8Cc4Zo.js → template-zeZsnoLb.js} +0 -0
- /package/dist/{transformer-CzbwQ7xm.js → transformer-DTxdVklF.js} +0 -0
- /package/dist/{types-DBjEVl4B.d.ts → types-B_I-vpIy.d.ts} +0 -0
- /package/dist/{types-Bm8dDXdD.d.ts → types-BzkIf_zy.d.ts} +0 -0
- /package/dist/{types-SSw7TyFZ.js → types-DEWc4NEP.js} +0 -0
- /package/dist/{types-BeDX5iUe.js → types-Df-xXIah.js} +0 -0
- /package/dist/{validators-C8tI-QBw.js → validators-CzOBqk3u.js} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
import{i as e,t}from"./runner-
|
|
1
|
+
import{i as e,t}from"./runner-CCy2YdOv.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 +1 @@
|
|
|
1
|
-
import{m as e,u as t}from"./errors-
|
|
1
|
+
import{m as e,u as t}from"./errors-BzZfdKtJ.js";import{c as n,f as r,h as i,o as a}from"./fsStore-CwAffYMN.js";var o=class{validateAndResolvePath(e){if(!this.validateScope(e))throw new t(e);return this.resolvePath(e)}async list(e){let t=this.validateAndResolvePath(e);return{type:`entries`,entries:this.readConfig(t),filePath:t}}async switchProfile(t,n,r){throw new e(`switch-profile`,this.toolId)}async inspect(e,t){let r=this.validateAndResolvePath(e);if(!a(r))return{path:r,exists:!1};let i=n(r),o=this.readConfig(r);return{path:r,exists:!0,content:JSON.stringify(o,null,2),size:i?.size,lastModified:i?.lastModified}}async edit(t,n){throw new e(`edit`,this.toolId)}readConfig(e){return r(e)}writeConfig(e,t,n=!0){i(e,t,n)}};export{o as t};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { _ as ToolId, a as InspectResult, g as SwitchOptions, h as SettingsResult, i as EditOptions, n as ConfigObject, p as SettingsListData, u as Scope } from "./types-
|
|
2
|
-
import { n as SettingsAdapter } from "./interfaces-
|
|
1
|
+
import { _ as ToolId, a as InspectResult, g as SwitchOptions, h as SettingsResult, i as EditOptions, n as ConfigObject, p as SettingsListData, u as Scope } from "./types-BzkIf_zy.js";
|
|
2
|
+
import { n as SettingsAdapter } from "./interfaces-DY2ES_Kh.js";
|
|
3
3
|
|
|
4
4
|
//#region src/services/settings/adapters/base.d.ts
|
|
5
5
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { _ as ToolId, o as LaunchCommandSpec } from "./types-
|
|
2
|
-
import { t as LaunchAdapter } from "./interfaces-
|
|
1
|
+
import { _ as ToolId, o as LaunchCommandSpec } from "./types-BzkIf_zy.js";
|
|
2
|
+
import { t as LaunchAdapter } from "./interfaces-DY2ES_Kh.js";
|
|
3
3
|
|
|
4
4
|
//#region src/services/launch/adapters/base.d.ts
|
|
5
5
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{n as e,t}from"./runner-
|
|
1
|
+
import{n as e,t}from"./runner-CCy2YdOv.js";var n=class{async validateAvailability(){return t(this.executable)}async getVersion(){try{return await e(this.executable)}catch{return`unknown`}}};export{n as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as e}from"./base-
|
|
1
|
+
import{t as e}from"./base-sBAL-g57.js";import*as t from"node:fs";import*as n from"node:path";import*as r from"node:os";var i=class extends e{toolId=`claude`;executable=`claude`;buildCommandSpec(e){let t=[];if(e.continue?t.push(`-c`):e.resume&&t.push(`-r`),e.settings){let n=this.#e(e.settings);t.push(`--settings`,n)}return{executable:this.executable,baseArgs:t,yoloArgs:e.yolo?[`--dangerously-skip-permissions`]:void 0}}#e(e){if(e.trim().startsWith(`{`)||n.isAbsolute(e)||e.endsWith(`.json`))return e;let i=n.join(r.homedir(),`.claude`),a=n.join(i,`settings.${e}.json`);if(t.existsSync(a))return a;let o=n.join(i,`settings-${e}.json`);return t.existsSync(o)?o:a}};export{i as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as e}from"./errors-
|
|
1
|
+
import{p as e}from"./errors-BzZfdKtJ.js";import{n as t,t as n}from"./editor-6Nht_jnv.js";import{t as r}from"./format-q5VlTrky.js";import{a as i,c as a,h as o,m as s,s as c}from"./fsStore-CwAffYMN.js";import{t as l}from"./base-BUo37ebo.js";import{t as u}from"./claudeDefault-D35i6PTj.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.#i(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)}#i(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,4 +1,4 @@
|
|
|
1
|
-
import{i as e,t}from"./cli-
|
|
1
|
+
import{i as e,t}from"./cli-BQnaBwZZ.js";import{t as n}from"./engine-C0--Is1U.js";import{t as r}from"./interactive-selector-CrQv5JEK.js";import*as i from"node:readline";async function a(t,i,a,c){let l=i.getRegistry(),u=l.getAllModels(),d=t.topic,f=t.models?t.models.split(`,`).map(e=>e.trim()).filter(Boolean):[];d||=await e(`Enter topic: `),f.length===0&&(f=await r(u));let p=f.filter(e=>!l.isModelSupported(e));p.length>0&&c(`Unsupported model(s): ${p.join(`, `)}. Available: ${u.join(`, `)}`),f.length<2&&c(`At least 2 models are required for a discussion.`);let m=new n(i,{topic:d,strategy:t.strategy,timeoutMs:t.timeout*1e3});return f.forEach((e,t)=>{m.addParticipant({id:`model-${t}`,name:e,model:e,type:`ai`})}),m.addParticipant({id:`user`,name:`User`,type:`human`}),a(`\nStarting discussion on "${d}" with: ${f.join(`, `)}\n`),a(`Controls:`),a(` [Space] Pause/Resume`),a(` [m] Toggle Auto/Manual Mode`),a(` [n] Next Turn (Manual Mode)`),a(` [i] Interrupt / Speak`),a(` [s] Summarize & Stop`),a(` [q] Quit`),a(`
|
|
2
2
|
--------------------------------------------------
|
|
3
3
|
`),o(m,a),m.start(),s(m,a),new Promise(()=>{})}function o(e,t){e.on(`turn-start`,t=>{let n=e.participants.find(e=>e.id===t);process.stdout.write(`\n\n[${n?.name}]: `)}),e.on(`message-chunk`,({delta:e})=>{process.stdout.write(e)}),e.on(`error`,({participantId:t,error:n})=>{let r=e.participants.find(e=>e.id===t);console.error(`\n[Error] ${r?.name}: ${n.message}`)}),e.on(`participant-dropped`,t=>{let n=e.participants.find(e=>e.id===t);console.error(`\n[System] ${n?.name} has left the chat (too many errors).`)})}function s(e,n){i.emitKeypressEvents(process.stdin),process.stdin.isTTY&&(process.stdin.setRawMode(!0),process.stdin.resume()),process.on(`SIGINT`,()=>{e.stop(),process.exit()}),process.stdin.on(`keypress`,(r,i)=>{(async()=>{if(i.ctrl&&i.name===`c`&&process.exit(),i.name===`q`&&(e.stop(),process.exit()),i.name===`space`&&(e.status===`paused`?e.resume():e.pause(),n(`\n[System] Discussion ${e.status}`)),i.name===`m`){let t=e.mode===`auto`?`manual`:`auto`;e.setMode(t),n(`\n[System] Mode switched to ${t.toUpperCase()}`)}if(i.name===`n`)if(e.mode===`manual`){if(e.status===`discussing`||e.status===`paused`){let t=e.participants.filter(e=>e.type===`ai`),n=t[Math.floor(Math.random()*t.length)];e.setNextSpeaker(n.id)}}else n(`
|
|
4
4
|
[System] Switch to Manual mode [m] to use Next [n]`);if(i.name===`i`){e.pause(),process.stdin.setRawMode(!1),process.stdout.write(`
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as e}from"./base-
|
|
1
|
+
import{t as e}from"./base-sBAL-g57.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};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as e}from"./errors-
|
|
1
|
+
import{t as e}from"./errors-BzZfdKtJ.js";import{n as t,t as n}from"./editor-6Nht_jnv.js";import{a as r,c as i,d as a,f as o,g as s,l as c,m as l,o as u,p as d,r as f,t as p}from"./fsStore-CwAffYMN.js";import{t as m}from"./base-BUo37ebo.js";import*as h from"node:path";const g=`~/.codex/auth-profiles`,_=`~/.codex/auth.json`;var v=class extends m{toolId=`codex`;async list(e){let t=this.validateAndResolvePath(e),n=this.readConfig(t),r=this.#c(n),i=this.listAuthProfiles(),a=u(_),o=typeof n.current_auth_profile==`string`?n.current_auth_profile:a||i.length>0?this.#d():null;return{type:`entries`,entries:{current_provider:typeof n.model_provider==`string`?n.model_provider:null,current_profile:typeof n.current_profile==`string`?n.current_profile:null,current_auth_profile:o,providers:r,auth_profiles:i},filePath:t}}async inspect(e,t){let n=this.validateAndResolvePath(e),r=l(n),a=u(n),o=a?this.#s(n):{},s=a?i(n):null,c=t?.trim();if(c){if(this.isAuthProfile(c)){let e=`${g}/${c}.json`,t=this.#u(e),n=i(e);return{path:l(e),exists:u(e),content:JSON.stringify({mode:`auth`,authProfile:c,authFile:l(e),configFile:r,authData:t},null,2),size:n?.size,lastModified:n?.lastModified}}let e=y(o.model_providers)?o.model_providers:{};if(e[c])return{path:r,exists:a,content:JSON.stringify({mode:`provider`,currentProvider:c,config:e[c]??{}},null,2),size:s?.size,lastModified:s?.lastModified};let t=y(o.profiles)?o.profiles:{};return t[c]?{path:r,exists:a,content:JSON.stringify({mode:`profile`,currentProfile:c,config:t[c]??{}},null,2),size:s?.size,lastModified:s?.lastModified}:{path:r,exists:a,content:JSON.stringify({mode:`not_found`,requested:c,availableProviders:Object.keys(e),availableProfiles:Object.keys(t),availableAuthProfiles:this.listAuthProfiles()},null,2),size:s?.size,lastModified:s?.lastModified}}if(!a)return this.#e(r);if(o.current_profile&&typeof o.current_profile==`string`)return this.#t(o,r,s);if(o.model_provider&&typeof o.model_provider==`string`)return this.#n(o,r,s);let d=typeof o.current_auth_profile==`string`?o.current_auth_profile:null;return d||u(_)?this.#r(d,r,s):this.#i(r,s)}#e(e){if(u(_)){let e=this.#l(),t=this.#d();return{path:l(_),exists:!0,content:JSON.stringify({mode:`auth`,currentAuthProfile:t,authFile:l(_),authData:e},null,2)}}return{path:e,exists:!1}}#t(e,t,n){let r=e.current_profile,i=(y(e.profiles)?e.profiles:{})[r];return{path:t,exists:!0,content:JSON.stringify({mode:`profile`,currentProfile:r,config:y(i)?i:{}},null,2),size:n?.size,lastModified:n?.lastModified}}#n(e,t,n){let r=e.model_provider,i=(y(e.model_providers)?e.model_providers:{})[r];return{path:t,exists:!0,content:JSON.stringify({mode:`provider`,currentProvider:r,config:y(i)?i:{}},null,2),size:n?.size,lastModified:n?.lastModified}}#r(e,t,n){let r=this.#l(),i=e||this.#d();return{path:l(_),exists:!0,content:JSON.stringify({mode:`auth`,currentAuthProfile:i,authFile:l(_),configFile:t,authData:r},null,2),size:n?.size,lastModified:n?.lastModified}}#i(e,t){return{path:e,exists:!0,content:JSON.stringify({mode:`none`,message:`No active provider or auth configured. Run 'codex login' or configure a model_provider.`,configFile:e},null,2),size:t?.size,lastModified:t?.lastModified}}resolvePath(e){switch(e){case`user`:return`~/.codex/config.toml`;default:throw Error(`Unsupported scope for Codex: ${e}`)}}validateScope(e){return e===`user`}async switchProfile(e,t,n){return this.validateAndResolvePath(e),this.isAuthProfile(t)?this.#a(t):this.#o(e,t)}async edit(e,i){let a=this.validateAndResolvePath(e);if(!i.provider){let e=l(a);r(h.dirname(e)),u(a)||this.writeConfig(a,{});let o=t(i.ide);return await n(o,e),{success:!0,message:`Opened Codex config in ${o}`,filePath:e}}let o=i.provider.id?.trim()||i.provider.name?.trim();if(!o)throw Error(`Provider name cannot be empty`);let s=i.provider.base_url?.trim();if(!s)throw Error(`Base URL is required for Codex providers`);let c=i.provider.name?.trim()||o,d=i.provider.experimental_bearer_token?.trim();if(!d)throw Error(`Experimental bearer token is required for Codex providers`);let f=this.#s(a),p=y(f.model_providers)?{...f.model_providers}:{};p[o]={name:c,base_url:s,wire_api:`responses`,experimental_bearer_token:d};let m={...f,model_providers:p};return this.writeConfig(a,m),{success:!0,message:`Added model_providers.${o}`,filePath:l(a),data:p[o]}}listAuthProfiles(){return c(g).filter(e=>e.endsWith(`.json`)).map(e=>e.replace(`.json`,``))}isAuthProfile(e){return u(`${g}/${e}.json`)}saveAuthProfile(e,t=!1){let n=`${g}/${e}.json`;return u(_)?!t&&u(n)?{success:!1,message:`Profile "${e}" already exists. Use --force to overwrite.`}:(r(g),p(_,n),f(_),{success:!0,message:`Saved current auth as profile: ${e}\nauth.json has been removed. You can now login with another account.`,filePath:l(n)}):{success:!1,message:`No auth.json found. Please run 'codex login' first.`}}deleteAuthProfile(e){let t=`${g}/${e}.json`;return u(t)?(f(t),{success:!0,message:`Deleted auth profile: ${e}`}):{success:!1,message:`Auth profile "${e}" not found.`}}getAllSwitchableProfiles(e){let t=this.resolvePath(e),n=[];try{let e=this.readConfig(t),r=e.model_providers;y(r)&&(n=Object.keys(r));let i=e.profiles;y(i)&&(n=[...new Set([...n,...Object.keys(i)])])}catch{}let r=this.listAuthProfiles();return{providers:n,authProfiles:r}}#a(e){let t=`${g}/${e}.json`,n=`~/.codex/config.toml`;if(!u(t))return{success:!1,message:`Auth profile "${e}" not found.`};p(t,_);try{let t=this.#s(n);delete t.model_provider,delete t.current_profile,t.current_auth_profile=e,this.writeConfig(n,t)}catch{this.writeConfig(n,{current_auth_profile:e})}return{success:!0,message:`Switched to auth profile: ${e}`,filePath:l(_)}}#o(e,t){let n=this.resolvePath(e);u(_)&&f(_);let r=this.#s(n);delete r.current_auth_profile;let i=r.profiles,a=(y(i)?i:void 0)?.[t];if(y(a)){let e={...r};for(let[t,n]of Object.entries(a))e[t]=n;return e.current_profile=t,delete e.model_provider,this.writeConfig(n,e),{success:!0,message:`Switched to profile: ${t}`,filePath:l(n)}}delete r.current_profile;let o={...r,model_provider:t};return this.writeConfig(n,o),{success:!0,message:`Switched to provider: ${t}`,filePath:l(n)}}readConfig(e){return d(e)}writeConfig(e,t){s(e,t,!1)}#s(t){try{return this.readConfig(t)}catch(t){if(t instanceof e)return{};throw t}}#c(e){let t=e.model_providers;return y(t)?t:{}}#l(){if(!u(_))return null;try{return o(_)}catch{return null}}#u(e){if(!u(e))return null;try{return o(e)}catch{return null}}#d(){if(!u(_))return`default`;let e;try{e=a(_)}catch{return`default`}let t=this.listAuthProfiles();for(let n of t){let t=`${g}/${n}.json`;try{let r=a(t);if(e===r)return n}catch{continue}}return`default`}};const y=e=>typeof e==`object`&&!!e&&!Array.isArray(e)&&!(e instanceof Date);export{y as n,v as t};
|
|
@@ -1,4 +1,14 @@
|
|
|
1
|
-
import{i as e}from"../../cli-
|
|
1
|
+
import{i as e}from"../../cli-BQnaBwZZ.js";import"../../errors-BzZfdKtJ.js";import"../../editor-6Nht_jnv.js";import"../../logger-CTwnEBEm.js";import{t}from"../../runner-CZA7oPjO.js";import"../../config-Bf-EeKY5.js";import"../../fsStore-CwAffYMN.js";import"../../base-BUo37ebo.js";import"../../template-zeZsnoLb.js";import"../../xling-CMIOhJ6S.js";import"../../providerRegistry-Dl_IFKMc.js";import"../../client-BbukhYrN.js";import"../../types-DEWc4NEP.js";import"../../loadBalancer-BUZZKUIh.js";import"../../errorClassifier-B-lYIh-6.js";import{n}from"../../router-gcWKPkkX.js";import{t as r}from"../../server-iGv0zRYN.js";import"../../engine-C0--Is1U.js";import{Command as i,Flags as a}from"@oclif/core";import*as o from"open";var s=class s extends i{static summary=`Multi-model council with peer judging and synthesis`;static description=`
|
|
2
|
+
Run a council: ask multiple models the same question, have them judge
|
|
3
|
+
each other's answers anonymously, and synthesize the best response.
|
|
4
|
+
|
|
5
|
+
Process:
|
|
6
|
+
1. All models answer the question independently
|
|
7
|
+
2. Each model judges other models' answers (anonymized)
|
|
8
|
+
3. A final model synthesizes the best response based on scores
|
|
9
|
+
|
|
10
|
+
Models are configured via ~/.claude/xling.json providers.
|
|
11
|
+
`;static examples=[{description:`CLI mode with explicit models`,command:`<%= config.bin %> <%= command.id %> --question "How to cache HTTP responses?" --models "gpt-4o,claude-3.5-sonnet"`},{description:`Provide separate judge set and final model`,command:`<%= config.bin %> <%= command.id %> --question "PostgreSQL tuning" --models "gpt-4o,claude-3.5-sonnet" --judges "gemini-2.0-pro-exp,claude-3.5-sonnet" --final-model "gpt-4o"`},{description:`Launch the Web UI`,command:`<%= config.bin %> <%= command.id %> --ui`}];static flags={ui:a.boolean({description:`Launch Web UI for council mode`,default:!1}),question:a.string({char:`q`,description:`Question to ask every model`}),models:a.string({char:`m`,description:`Comma-separated list of models to answer`}),judges:a.string({char:`j`,description:`Comma-separated list of judge models (defaults to models)`}),"final-model":a.string({description:`Model used to write the final synthesis (defaults to first judge)`}),json:a.boolean({description:`Print full JSON result`,default:!1})};async run(){let{flags:r}=await this.parse(s);if(r.ui){await this.#e();return}let i=r.question??await e(`Question: `),a=c(r.models);a.length<2&&this.error(`Provide at least two models via --models`);let o=c(r.judges),l=r[`final-model`],u=await t(await n(),{question:i,models:a,judgeModels:o.length>0?o:void 0,finalModel:l});if(r.json){this.log(JSON.stringify(u,null,2));return}this.#t(u)}async#e(){this.log(`Starting Web UI...`);let e=3e3,t=(await r(e)).address(),n=`http://localhost:${typeof t==`object`&&t?t.port:e}`;return this.log(`Server running at ${n}`),await o.default(n),this.log(`Press Ctrl+C to stop`),new Promise(()=>{})}#t(e){this.log(`\nQuestion: ${e.question}`),this.log(`
|
|
2
12
|
Stage 1: Candidate responses`),e.stage1.forEach(e=>{this.log(`- ${e.label} (${e.model})`),this.log(l(e.content))}),e.aggregates.length>0&&(this.log(`
|
|
3
13
|
Leaderboard:`),e.aggregates.forEach((e,t)=>{this.log(`${t+1}. ${e.label} (${e.model}) — avg ${e.average} from ${e.votes} votes`)})),e.final&&this.log(`\nFinal (${e.final.model}):\n${l(e.final.content)}`)}};function c(e){return e?e.split(`,`).map(e=>e.trim()).filter(Boolean):[]}function l(e){return e.split(`
|
|
4
14
|
`).map(e=>` ${e}`).join(`
|
|
@@ -1 +1,8 @@
|
|
|
1
|
-
import"../../cli-
|
|
1
|
+
import"../../cli-BQnaBwZZ.js";import"../../errors-BzZfdKtJ.js";import"../../editor-6Nht_jnv.js";import"../../logger-CTwnEBEm.js";import"../../runner-CZA7oPjO.js";import"../../config-Bf-EeKY5.js";import"../../fsStore-CwAffYMN.js";import"../../base-BUo37ebo.js";import"../../template-zeZsnoLb.js";import"../../xling-CMIOhJ6S.js";import"../../providerRegistry-Dl_IFKMc.js";import"../../client-BbukhYrN.js";import"../../types-DEWc4NEP.js";import"../../loadBalancer-BUZZKUIh.js";import"../../errorClassifier-B-lYIh-6.js";import{n as e}from"../../router-gcWKPkkX.js";import"../../server-iGv0zRYN.js";import"../../engine-C0--Is1U.js";import{t}from"../../ui-mode-DeQ0RdzZ.js";import"../../interactive-selector-CrQv5JEK.js";import{t as n}from"../../cli-mode-BAKzBdi-.js";import{Command as r,Flags as i}from"@oclif/core";var a=class a extends r{static summary=`Run a roundtable between multiple AI models via CLI or Web UI`;static description=`
|
|
2
|
+
Start a discussion between multiple AI models.
|
|
3
|
+
|
|
4
|
+
In CLI mode, models take turns responding to each other's messages.
|
|
5
|
+
In Web UI mode, a browser-based interface provides real-time visualization.
|
|
6
|
+
|
|
7
|
+
Models are configured via ~/.claude/xling.json providers.
|
|
8
|
+
`;static examples=[{description:`CLI mode, pick topic/models interactively`,command:`<%= config.bin %> <%= command.id %>`},{description:`Provide topic and models up front (comma-separated)`,command:`<%= config.bin %> <%= command.id %> --topic "Rust vs Go" --models "gpt-4o,claude-3.5-sonnet"`},{description:`Round-robin turns with shorter per-turn timeout`,command:`<%= config.bin %> <%= command.id %> --strategy round-robin --timeout 10`},{description:`Launch the web UI`,command:`<%= config.bin %> <%= command.id %> --ui`}];static flags={ui:i.boolean({description:`Launch Web UI`,default:!1}),topic:i.string({char:`t`,description:`Topic to discuss`}),models:i.string({char:`m`,description:`Comma-separated list of models to participate`}),strategy:i.string({char:`s`,description:`Turn-taking strategy (random, round-robin)`,options:[`random`,`round-robin`],default:`random`}),timeout:i.integer({description:`Timeout per turn in seconds`,default:30})};async run(){let{flags:r}=await this.parse(a);if(r.ui){await t(e=>this.log(e));return}let i=await e();await n({topic:r.topic,models:r.models,strategy:r.strategy,timeout:r.timeout},i,e=>this.log(e),e=>this.error(e))}};export{a as default};
|
package/dist/commands/git/prc.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{t as e}from"../../git-
|
|
1
|
+
import{t as e}from"../../git-CvgdaUQP.js";import"../../validators-CzOBqk3u.js";import"../../errors-BzZfdKtJ.js";import"../../runner-CCy2YdOv.js";import"../../utils-CCoDGqk7.js";import"../../pr-DYOhlKHw.js";import"../../view-4iWEelup.js";import"../../worktree-CFMEZX8U.js";import"../../create-CffFD_Yh.js";import{t}from"../../dispatcher-BLDVBwMH.js";import{Command as n,Flags as r}from"@oclif/core";var i=class i extends n{static summary=`Create a pull request (PR Create)`;static description=`
|
|
2
2
|
Create a pull request using GitHub CLI.
|
|
3
3
|
Supports automatic browser preview with customizable browser selection.
|
|
4
4
|
`;static examples=[{description:`Create PR interactively`,command:`<%= config.bin %> <%= command.id %>`},{description:`Create PR with title and body`,command:`<%= config.bin %> <%= command.id %> --title "Feature X" --body "Implements feature X"`},{description:`Create PR and open in browser`,command:`<%= config.bin %> <%= command.id %> --web`},{description:`Create PR and preview in Safari`,command:`<%= config.bin %> <%= command.id %> --web --browser safari`},{description:`Create draft PR`,command:`<%= config.bin %> <%= command.id %> --draft --title "WIP: Feature X"`},{description:`Create PR with reviewers and labels`,command:`<%= config.bin %> <%= command.id %> --reviewer user1 --reviewer user2 --label bug --label urgent`}];static flags={title:r.string({char:`t`,description:`PR title`}),body:r.string({char:`b`,description:`PR body/description`}),base:r.string({description:`Base branch (default: repository default branch)`}),head:r.string({description:`Head branch (default: current branch)`}),draft:r.boolean({char:`d`,description:`Create as draft PR`,default:!1}),web:r.boolean({char:`w`,description:`Open PR in browser after creation`,default:!1}),browser:r.string({description:`Browser to use when --web is enabled`,options:[...e],default:`chrome`}),assignee:r.string({char:`a`,description:`Assign user(s) (can be used multiple times)`,multiple:!0}),reviewer:r.string({char:`r`,description:`Request reviewer(s) (can be used multiple times)`,multiple:!0}),label:r.string({char:`l`,description:`Add label(s) (can be used multiple times)`,multiple:!0})};async run(){let{flags:e}=await this.parse(i),n=new t,r={title:e.title,body:e.body,base:e.base,head:e.head,draft:e.draft,web:e.web,browser:e.browser,assignee:e.assignee,reviewer:e.reviewer,label:e.label};try{let e=await n.execute({command:`prc`,cwd:process.cwd(),data:r});this.log(`✓ ${e.message}`),e.details?.draft&&this.log(` Type: Draft PR`),e.details?.base&&this.log(` Base: ${e.details.base}`),e.details?.head&&this.log(` Head: ${e.details.head}`)}catch(e){this.error(e.message,{exit:1})}}};export{i as default};
|
package/dist/commands/git/prr.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import"../../validators-
|
|
1
|
+
import"../../validators-CzOBqk3u.js";import"../../errors-BzZfdKtJ.js";import"../../runner-CCy2YdOv.js";import"../../utils-CCoDGqk7.js";import"../../pr-DYOhlKHw.js";import"../../view-4iWEelup.js";import"../../worktree-CFMEZX8U.js";import"../../create-CffFD_Yh.js";import{t as e}from"../../dispatcher-BLDVBwMH.js";import{Args as t,Command as n,Flags as r}from"@oclif/core";var i=class i extends n{static summary=`Checkout a PR branch (PR Read/Retrieve)`;static description=`
|
|
2
2
|
Checkout a pull request branch using GitHub CLI (gh) or git fallback.
|
|
3
3
|
Automatically detects gh availability and falls back to git fetch if needed.
|
|
4
4
|
`;static examples=[{description:`Checkout PR using gh or git fallback`,command:`<%= config.bin %> <%= command.id %> 123`},{description:`Checkout PR to specific branch`,command:`<%= config.bin %> <%= command.id %> 456 --branch my-pr-branch`},{description:`Force git fallback with custom remote`,command:`<%= config.bin %> <%= command.id %> 789 --no-gh --remote upstream`},{description:`Checkout a PR from another repo (owner:repo#id)`,command:`<%= config.bin %> <%= command.id %> octo/demo-repo#321 --branch demo-pr`}];static args={id:t.string({description:`PR number or owner:repo#123 format`,required:!0})};static flags={branch:r.string({char:`b`,description:`Branch name (default: pr/<id>)`}),remote:r.string({char:`r`,description:`Remote name`,default:`origin`}),"no-gh":r.boolean({description:`Skip GitHub CLI, use git directly`,default:!1})};async run(){let{args:t,flags:n}=await this.parse(i),r=new e,a={id:t.id,branch:n.branch,strategy:n[`no-gh`]?`git`:`gh`,remote:n.remote};try{let e=await r.execute({command:`prr`,cwd:process.cwd(),data:a});this.log(`✓ ${e.message}`),e.details&&(this.log(` Strategy: ${e.details.strategy}`),this.log(` Branch: ${e.details.branch}`))}catch(e){this.error(e.message,{exit:1})}}};export{i as default};
|
package/dist/commands/git/prv.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{t as e}from"../../git-
|
|
1
|
+
import{t as e}from"../../git-CvgdaUQP.js";import"../../validators-CzOBqk3u.js";import"../../errors-BzZfdKtJ.js";import"../../runner-CCy2YdOv.js";import"../../utils-CCoDGqk7.js";import"../../pr-DYOhlKHw.js";import"../../view-4iWEelup.js";import"../../worktree-CFMEZX8U.js";import"../../create-CffFD_Yh.js";import{t}from"../../dispatcher-BLDVBwMH.js";import{Args as n,Command as r,Flags as i}from"@oclif/core";var a=class a extends r{static summary=`Open PR in web browser (PR View)`;static description=`
|
|
2
2
|
Open a pull request in your web browser using GitHub CLI.
|
|
3
3
|
Supports multiple browsers: Chrome (default), Safari, Firefox, Arc, Edge, Dia.
|
|
4
4
|
`;static examples=[{description:`Open PR in Chrome (default)`,command:`<%= config.bin %> <%= command.id %> 123`},{description:`Open PR in Safari`,command:`<%= config.bin %> <%= command.id %> 456 --browser safari`},{description:`Open PR in Firefox`,command:`<%= config.bin %> <%= command.id %> 789 --browser firefox`},{description:`Open PR in Arc`,command:`<%= config.bin %> <%= command.id %> 999 --browser arc`},{description:`Open a PR from another repo in Edge`,command:`<%= config.bin %> <%= command.id %> octo/demo-repo#42 --browser edge`}];static args={id:n.string({description:`PR number`,required:!0})};static flags={browser:i.string({char:`b`,description:`Browser to use`,options:[...e],default:`chrome`})};async run(){let{args:e,flags:n}=await this.parse(a),r=new t,i={id:e.id,browser:n.browser};try{let e=await r.execute({command:`prv`,cwd:process.cwd(),data:i});this.log(`✓ ${e.message}`)}catch(e){this.error(e.message,{exit:1})}}};export{a as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import"../../validators-
|
|
1
|
+
import"../../validators-CzOBqk3u.js";import"../../errors-BzZfdKtJ.js";import"../../runner-CCy2YdOv.js";import"../../utils-CCoDGqk7.js";import"../../pr-DYOhlKHw.js";import"../../view-4iWEelup.js";import"../../worktree-CFMEZX8U.js";import"../../create-CffFD_Yh.js";import{t as e}from"../../dispatcher-BLDVBwMH.js";import{Command as t,Flags as n}from"@oclif/core";var r=class r extends t{static summary=`Manage git worktrees`;static description=`
|
|
2
2
|
Manage git worktrees: list existing worktrees, add new ones, remove, or prune stale entries.
|
|
3
3
|
Git worktrees allow multiple working directories from a single repository.
|
|
4
4
|
`;static examples=[{description:`List all worktrees in friendly format`,command:`<%= config.bin %> <%= command.id %> --list`},{description:`Add new worktree with auto-generated path`,command:`<%= config.bin %> <%= command.id %> --add --branch feature/login`},{description:`Add worktree with custom path`,command:`<%= config.bin %> <%= command.id %> -a -p ../repo-feature -b feature/login`},{description:`Switch to main worktree (outputs path for cd)`,command:`cd $(<%= config.bin %> <%= command.id %> -s)`},{description:`Switch to specific worktree by branch name`,command:`cd $(<%= config.bin %> <%= command.id %> -s -b feature/login)`},{description:`Remove worktree by branch name`,command:`<%= config.bin %> <%= command.id %> -r -b main`},{description:`Remove worktree by directory name`,command:`<%= config.bin %> <%= command.id %> -r -b xling-feature`},{description:`Remove worktree by path`,command:`<%= config.bin %> <%= command.id %> -r -p ../repo-feature`},{description:`Prune stale worktrees`,command:`<%= config.bin %> <%= command.id %> --prune`}];static flags={list:n.boolean({char:`l`,description:`List worktrees (default)`,default:!1}),add:n.boolean({char:`a`,description:`Add new worktree (auto-generates path if not specified)`,default:!1}),switch:n.boolean({char:`s`,description:`Get worktree path (outputs path only, use with: cd $(xling git:worktree -s -b <branch>))`,default:!1}),remove:n.boolean({char:`r`,description:`Remove worktree`,default:!1}),prune:n.boolean({description:`Prune stale worktrees`,default:!1}),path:n.string({char:`p`,description:`Worktree path (e.g., '../repo-feature' or absolute path). Auto-generated if not specified with --add.`}),branch:n.string({char:`b`,description:`Branch or worktree name. Defaults to main for --add and --switch. For --remove, intelligently matches branch or directory name.`}),force:n.boolean({char:`f`,description:`Force operation`,default:!1}),detach:n.boolean({description:`Detach HEAD in new worktree`,default:!1})};async run(){let{flags:t}=await this.parse(r),n=`list`;t.add?n=`add`:t.switch?n=`switch`:t.remove?n=`remove`:t.prune&&(n=`prune`);let i=new e,a={action:n,path:t.path,branch:t.branch,force:t.force,detach:t.detach};try{let e=await i.execute({command:`worktree`,cwd:process.cwd(),data:a});if(n===`switch`){this.log(e.message);return}this.log(`✓ ${e.message}`),e.details?.output&&this.log(`
|
package/dist/commands/git/wta.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import"../../validators-
|
|
1
|
+
import"../../validators-CzOBqk3u.js";import"../../errors-BzZfdKtJ.js";import"../../runner-CCy2YdOv.js";import"../../utils-CCoDGqk7.js";import"../../pr-DYOhlKHw.js";import"../../view-4iWEelup.js";import"../../worktree-CFMEZX8U.js";import"../../create-CffFD_Yh.js";import{t as e}from"../../dispatcher-BLDVBwMH.js";import{Command as t,Flags as n}from"@oclif/core";var r=class r extends t{static summary=`Add a new git worktree`;static description=`
|
|
2
2
|
Create a new git worktree with automatic path generation.
|
|
3
3
|
Defaults to main branch if not specified.
|
|
4
4
|
Use --select to choose a branch from an interactive list.
|
package/dist/commands/git/wtl.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import"../../validators-
|
|
1
|
+
import"../../validators-CzOBqk3u.js";import"../../errors-BzZfdKtJ.js";import"../../runner-CCy2YdOv.js";import"../../utils-CCoDGqk7.js";import"../../pr-DYOhlKHw.js";import"../../view-4iWEelup.js";import"../../worktree-CFMEZX8U.js";import"../../create-CffFD_Yh.js";import{t as e}from"../../dispatcher-BLDVBwMH.js";import{Command as t}from"@oclif/core";var n=class extends t{static summary=`List git worktrees`;static description=`
|
|
2
2
|
List all git worktrees in a friendly format.
|
|
3
3
|
Shows the path and branch for each worktree.
|
|
4
4
|
`;static examples=[{description:`List all worktrees`,command:`<%= config.bin %> <%= command.id %>`},{description:`List worktrees and filter for feature branches`,command:`<%= config.bin %> <%= command.id %> | grep feature/`},{description:`List worktrees from another repo directory`,command:`cd ~/projects/my-repo && <%= config.bin %> <%= command.id %>`}];async run(){let t=new e,n={action:`list`};try{let e=await t.execute({command:`worktree`,cwd:process.cwd(),data:n});this.log(`✓ ${e.message}`),e.details?.output&&this.log(`
|
package/dist/commands/git/wtp.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import"../../validators-
|
|
1
|
+
import"../../validators-CzOBqk3u.js";import"../../errors-BzZfdKtJ.js";import"../../runner-CCy2YdOv.js";import"../../utils-CCoDGqk7.js";import"../../pr-DYOhlKHw.js";import"../../view-4iWEelup.js";import"../../worktree-CFMEZX8U.js";import"../../create-CffFD_Yh.js";import{t as e}from"../../dispatcher-BLDVBwMH.js";import{Command as t}from"@oclif/core";var n=class extends t{static summary=`Prune stale git worktrees`;static description=`
|
|
2
2
|
Remove stale worktree administrative files.
|
|
3
3
|
This cleans up worktrees that have been manually deleted from the filesystem.
|
|
4
4
|
`;static examples=[{description:`Prune stale worktrees`,command:`<%= config.bin %> <%= command.id %>`},{description:`Clean up after manually deleting a worktree folder`,command:`cd ~/repo && <%= config.bin %> <%= command.id %>`},{description:`Prune then list worktrees to verify`,command:`<%= config.bin %> <%= command.id %> && <%= config.bin %> git:wtl`}];async run(){let t=new e,n={action:`prune`};try{let e=await t.execute({command:`worktree`,cwd:process.cwd(),data:n});this.log(`✓ ${e.message}`),e.details?.output&&this.log(`
|
package/dist/commands/git/wtr.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import"../../validators-
|
|
1
|
+
import"../../validators-CzOBqk3u.js";import"../../errors-BzZfdKtJ.js";import"../../runner-CCy2YdOv.js";import"../../utils-CCoDGqk7.js";import"../../pr-DYOhlKHw.js";import"../../view-4iWEelup.js";import"../../worktree-CFMEZX8U.js";import"../../create-CffFD_Yh.js";import{t as e}from"../../dispatcher-BLDVBwMH.js";import{Command as t,Flags as n}from"@oclif/core";var r=class r extends t{static summary=`Remove a git worktree`;static description=`
|
|
2
2
|
Remove a git worktree by branch name, directory name, or path.
|
|
3
3
|
Intelligently matches branch or directory names.
|
|
4
4
|
Use --select to pick which worktree to remove from an interactive list.
|
package/dist/commands/git/wts.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import"../../validators-
|
|
1
|
+
import"../../validators-CzOBqk3u.js";import"../../errors-BzZfdKtJ.js";import"../../runner-CCy2YdOv.js";import"../../utils-CCoDGqk7.js";import"../../pr-DYOhlKHw.js";import"../../view-4iWEelup.js";import"../../worktree-CFMEZX8U.js";import"../../create-CffFD_Yh.js";import{t as e}from"../../dispatcher-BLDVBwMH.js";import{Command as t,Flags as n}from"@oclif/core";import{spawn as r}from"node:child_process";var i=class i extends t{static summary=`Switch to a git worktree (opens subshell by default)`;static description=`
|
|
2
2
|
Find a matching worktree, then start a subshell rooted there.
|
|
3
3
|
Defaults to the main branch if no branch/directory is provided.
|
|
4
4
|
Use --path-only for scripting (outputs the path for cd $(...)).
|
package/dist/commands/p/index.js
CHANGED
|
@@ -1,2 +1,10 @@
|
|
|
1
|
-
import"../../errors-
|
|
1
|
+
import"../../errors-BzZfdKtJ.js";import"../../editor-6Nht_jnv.js";import"../../runner-CCy2YdOv.js";import"../../config-Bf-EeKY5.js";import"../../fsStore-CwAffYMN.js";import"../../base-BUo37ebo.js";import"../../template-zeZsnoLb.js";import{t as e}from"../../xling-CMIOhJ6S.js";import"../../providerRegistry-Dl_IFKMc.js";import"../../client-BbukhYrN.js";import{n as t,t as n}from"../../types-DEWc4NEP.js";import"../../loadBalancer-BUZZKUIh.js";import"../../errorClassifier-B-lYIh-6.js";import{n as r}from"../../router-gcWKPkkX.js";import{t as i}from"../../prompt-builder-nnOfD-XX.js";import{i as a,n as o,r as s}from"../../backend-router-C_Pyt-UU.js";import{n as c,r as l,t as u}from"../../interactive-mode-DG1vxROG.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
|
+
Send prompts to AI models using xling's built-in router (default) or
|
|
3
|
+
delegate to CLI tools like codex exec, claude -p, or gemini.
|
|
4
|
+
|
|
5
|
+
The xling router uses configured providers in ~/.claude/xling.json
|
|
6
|
+
with automatic failover and model routing.
|
|
7
|
+
|
|
8
|
+
Use --tool to bypass the router and call CLI tools directly.
|
|
9
|
+
`;static examples=[{description:`Simple prompt`,command:`<%= config.bin %> <%= command.id %> "Explain quantum computing"`},{description:`Specify model`,command:`<%= config.bin %> <%= command.id %> --model gpt-4-turbo "Write a poem"`},{description:`Read from file`,command:`<%= config.bin %> <%= command.id %> -f README.md "Summarize this"`},{description:`Read from stdin`,command:`git diff | <%= config.bin %> <%= command.id %> --stdin "Review this diff"`},{description:`JSON output`,command:`<%= config.bin %> <%= command.id %> --json "What is 2+2?"`},{description:`Directly run codex exec (bypass xling providers)`,command:`<%= config.bin %> <%= command.id %> --tool codex "Summarize this repo"`},{description:`Use Claude Code CLI with yolo by default`,command:`<%= config.bin %> <%= command.id %> --tool claude "Review this diff"`},{description:`Shorthand for Codex backend (matches x command flag)`,command:`<%= config.bin %> <%= command.id %> -t codex "Hello"`},{description:`Use Gemini CLI headless prompt`,command:`<%= config.bin %> <%= command.id %> -t gemini "Summarize this diff"`}];static flags={tool:p.string({description:`Choose backend: xling router (default) or call codex/claude/gemini CLI directly`,options:[`xling`,`codex`,`claude`,`gemini`],required:!1,default:`xling`,char:`t`}),yolo:p.boolean({description:`Use yolo flags when calling codex/claude/gemini directly (skip permission prompts)`,required:!1,default:!0,allowNo:!0}),model:p.string({char:`m`,description:`Model to use (defaults to configured defaultModel)`,required:!1}),prompt:p.string({char:`p`,description:`Prompt text (alternative to positional arg)`,required:!1}),system:p.string({char:`s`,description:`System prompt`,required:!1}),file:p.string({char:`f`,description:`Read additional context from file`,required:!1,multiple:!0}),stdin:p.boolean({description:`Read prompt from stdin`,required:!1,default:!1}),temperature:p.string({char:`T`,description:`Temperature (0.0-2.0)`,required:!1}),"max-tokens":p.integer({description:`Maximum tokens to generate`,required:!1}),json:p.boolean({description:`Output as JSON`,required:!1,default:!1}),stream:p.boolean({description:`Stream output (default: true)`,required:!1,default:!0,allowNo:!0}),interactive:p.boolean({char:`i`,description:`Enter interactive chat mode after first response`,required:!1,default:!1})};static args={prompt:d.string({description:`The prompt text`,required:!1})};async run(){let{args:e,flags:r}=await this.parse(h),a=r.tool??`xling`,o=r.yolo!==!1;try{let t=await i({positionalArg:e.prompt,flagPrompt:r.prompt,files:r.file,stdin:r.stdin,warn:e=>this.warn(e)});if(t.trim()||this.error(`No prompt provided. Use argument, --prompt, --file, or --stdin`),a!==`xling`){await this.#e(a,t,o,r);return}await this.#t(t,r)}catch(e){e instanceof t?this.error(e.message):e instanceof n?this.error(`All providers failed:\n${e.errors.map(e=>` ${e.provider}: ${e.error.message}`).join(`
|
|
2
10
|
`)}`):this.error(e.message)}}async#e(e,t,n,r){this.#r(e,r),await o(e)||this.error(`Tool "${a(e)}" is not installed or not found in PATH. Please install it before using --tool ${e}.`),this.log(`[backend: ${e}] ${n?`yolo on`:`yolo off`} — handing output to ${a(e)}`),await s(e,t,{yolo:n,model:r.model})}async#t(e,t){this.#n();let n={prompt:e,model:t.model,system:t.system,temperature:t.temperature?parseFloat(t.temperature):void 0,maxTokens:t[`max-tokens`],stream:t.stream},i=await r(),a,o,s;if(t.stream&&!t.json){let e=await i.executeStream(n);a=await c(e);let r=await e.usage;o=r?{promptTokens:r.inputTokens??0,completionTokens:r.outputTokens??0,totalTokens:r.totalTokens??0}:void 0,s={provider:`streaming`,model:t.model||`default`}}else{let e=await i.execute(n);a=e.content,o=e.usage,s={provider:e.provider,model:e.model},t.json?this.log(JSON.stringify(e,null,2)):this.log(e.content)}!t.json&&o&&s&&this.log(`\n[${s.provider}/${s.model}] ${o.totalTokens} tokens (${o.promptTokens} prompt + ${o.completionTokens} completion)`);let d=t.interactive||!1,f=d;!d&&!t.json&&process.stdout.isTTY&&(f=await u(e=>this.log(e))),f&&await l({initialPrompt:e,initialResponse:a,system:t.system,model:t.model,temperature:t.temperature?parseFloat(t.temperature):void 0,maxTokens:t[`max-tokens`]},i,e=>this.log(e),e=>this.error(e))}#n(){let t=new e().resolvePath(`user`);m.existsSync(t.replace(`~`,process.env.HOME||``))||this.error(`Configuration not found at ${t}\n\nPlease create a configuration file with at least one provider.\nExample:\n{\n "prompt": {\n "providers": [\n {\n "name": "openai",\n "baseUrl": "https://api.openai.com/v1",\n "apiKey": "sk-...",\n "models": ["gpt-4", "gpt-4-turbo"]\n }\n ],\n "defaultModel": "gpt-4"\n }\n}`)}#r(e,t){t.interactive&&this.error(`Interactive mode is not supported when using --tool codex/claude/gemini. Remove --interactive or use the default xling router.`);let n=[];t.json&&n.push(`--json`),t.model&&e!==`gemini`&&n.push(`--model`),t.system&&n.push(`--system`),t.temperature!==void 0&&n.push(`--temperature`),t[`max-tokens`]!==void 0&&n.push(`--max-tokens`),t.stream===!1&&n.push(`--no-stream`),n.length>0&&this.warn(`Ignoring ${n.join(`, `)} when using direct CLI backend; codex/claude will apply their own defaults.`)}};export{h as default};
|
|
@@ -1,10 +1,13 @@
|
|
|
1
|
-
import{c as e,u as t}from"../../validators-
|
|
1
|
+
import{c as e,u as t}from"../../validators-CzOBqk3u.js";import"../../errors-BzZfdKtJ.js";import"../../editor-6Nht_jnv.js";import"../../config-Bf-EeKY5.js";import"../../fsStore-CwAffYMN.js";import"../../base-BUo37ebo.js";import"../../template-zeZsnoLb.js";import"../../xling-CMIOhJ6S.js";import"../../loadBalancer-BUZZKUIh.js";import"../../errorClassifier-B-lYIh-6.js";import"../../transformer-DTxdVklF.js";import{a as n,t as r}from"../../server-Dag3i5Zg.js";import{Command as i,Flags as a}from"@oclif/core";var o=class o extends i{static summary=`Start an OpenAI-compatible proxy server with load balancing and key rotation`;static description=`Boot a local proxy server that forwards requests to configured upstream AI providers.
|
|
2
2
|
|
|
3
3
|
Features:
|
|
4
|
-
- OpenAI
|
|
4
|
+
- OpenAI Chat Completions API (/v1/chat/completions)
|
|
5
|
+
- Anthropic Messages API (/v1/messages) with automatic format conversion
|
|
6
|
+
- OpenAI Responses API (/responses) for Codex CLI compatibility
|
|
5
7
|
- Multiple upstream providers with automatic failover
|
|
6
8
|
- Load balancing strategies: round-robin, random, weighted, failover
|
|
7
9
|
- API key rotation with automatic cooldown on errors
|
|
10
|
+
- Model mapping and aliasing
|
|
8
11
|
- Optional access key protection
|
|
9
12
|
|
|
10
13
|
Configuration is read from ~/.claude/xling.json under the 'proxy' section.`;static examples=[{description:`Start proxy server on default port (4320)`,command:`<%= config.bin %> <%= command.id %>`},{description:`Start on custom port with access key protection`,command:`<%= config.bin %> <%= command.id %> --port 8080 --access-key my-secret-key`},{description:`Bind to all interfaces for external access`,command:`<%= config.bin %> <%= command.id %> --host 0.0.0.0`},{description:`Start with verbose logging disabled`,command:`<%= config.bin %> <%= command.id %> --no-logger`}];static flags={port:a.integer({char:`p`,description:`Port for the proxy server`,default:r}),host:a.string({description:`Host/interface to bind`,default:`127.0.0.1`}),"access-key":a.string({char:`k`,description:`Access key for proxy authentication (overrides config file)`}),logger:a.boolean({description:`Enable request logging`,default:!0,allowNo:!0})};async run(){let{flags:r}=await this.parse(o);try{let i=t(r.port),a=await n({host:e(r.host),port:i,accessKey:r[`access-key`],logger:r.logger});this.#e(a,r[`access-key`]),this.log(`
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import"../../errors-
|
|
1
|
+
import"../../errors-BzZfdKtJ.js";import"../../editor-6Nht_jnv.js";import{r as e}from"../../format-q5VlTrky.js";import"../../fsStore-CwAffYMN.js";import"../../base-BUo37ebo.js";import{t}from"../../codex-Dy_gUG6Z.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-
|
|
1
|
+
import"../../errors-BzZfdKtJ.js";import"../../editor-6Nht_jnv.js";import{r as e}from"../../format-q5VlTrky.js";import"../../config-Bf-EeKY5.js";import{m as t,s as n}from"../../fsStore-CwAffYMN.js";import"../../base-BUo37ebo.js";import"../../template-zeZsnoLb.js";import"../../xling-CMIOhJ6S.js";import"../../codex-Dy_gUG6Z.js";import"../../claudeDefault-D35i6PTj.js";import{t as r}from"../../claude-C3HxRfuM.js";import"../../gemini-CedK05G6.js";import{t as i}from"../../dispatcher-DBedC9_T.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};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Command } from "@oclif/core";
|
|
2
|
+
|
|
3
|
+
//#region src/commands/settings/index.d.ts
|
|
4
|
+
|
|
5
|
+
declare class Settings extends Command {
|
|
6
|
+
static summary: string;
|
|
7
|
+
static description: string;
|
|
8
|
+
static examples: Command.Example[];
|
|
9
|
+
run(): Promise<void>;
|
|
10
|
+
}
|
|
11
|
+
//#endregion
|
|
12
|
+
export { Settings as default };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import{Command as e}from"@oclif/core";var t=class t extends e{static summary=`Manage AI tool settings (Claude, Codex, Gemini, xling)`;static description=`
|
|
2
|
+
Unified settings management for multiple AI CLI tools.
|
|
3
|
+
|
|
4
|
+
Supported tools:
|
|
5
|
+
- Claude Code: Manage user, project, and local settings
|
|
6
|
+
- Codex: Manage model providers, auth profiles, and settings
|
|
7
|
+
- Gemini CLI: Manage user, project, and system settings
|
|
8
|
+
- xling: Manage shortcuts and proxy configuration
|
|
9
|
+
|
|
10
|
+
Use subcommands to list, view, edit, switch, and sync configurations.
|
|
11
|
+
`;static examples=[{description:`List Claude user settings`,command:`<%= config.bin %> <%= command.id %>:list --tool claude`},{description:`List Codex providers and auth profiles`,command:`<%= config.bin %> <%= command.id %>:list --tool codex`},{description:`View full Gemini configuration`,command:`<%= config.bin %> <%= command.id %>:get --tool gemini`},{description:`Switch Codex profile`,command:`<%= config.bin %> <%= command.id %>:switch oss --tool codex`},{description:`Edit Claude settings`,command:`<%= config.bin %> <%= command.id %>:set --tool claude`},{description:`Sync config between Claude and Codex`,command:`<%= config.bin %> <%= command.id %>:sync`}];async run(){await this.parse(t),await this.config.runCommand(`help`,[`settings`])}};export{t as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import"../../errors-
|
|
1
|
+
import"../../errors-BzZfdKtJ.js";import"../../editor-6Nht_jnv.js";import{r as e}from"../../format-q5VlTrky.js";import"../../config-Bf-EeKY5.js";import"../../fsStore-CwAffYMN.js";import"../../base-BUo37ebo.js";import"../../template-zeZsnoLb.js";import"../../xling-CMIOhJ6S.js";import"../../codex-Dy_gUG6Z.js";import"../../claudeDefault-D35i6PTj.js";import"../../claude-C3HxRfuM.js";import"../../gemini-CedK05G6.js";import{t}from"../../dispatcher-DBedC9_T.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-
|
|
1
|
+
import"../../errors-BzZfdKtJ.js";import"../../editor-6Nht_jnv.js";import{i as e,n as t,r as n}from"../../format-q5VlTrky.js";import"../../config-Bf-EeKY5.js";import"../../fsStore-CwAffYMN.js";import"../../base-BUo37ebo.js";import"../../template-zeZsnoLb.js";import"../../xling-CMIOhJ6S.js";import"../../codex-Dy_gUG6Z.js";import"../../claudeDefault-D35i6PTj.js";import"../../claude-C3HxRfuM.js";import"../../gemini-CedK05G6.js";import{t as r}from"../../dispatcher-DBedC9_T.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-
|
|
1
|
+
import"../../errors-BzZfdKtJ.js";import"../../editor-6Nht_jnv.js";import{r as e}from"../../format-q5VlTrky.js";import"../../config-Bf-EeKY5.js";import"../../fsStore-CwAffYMN.js";import"../../base-BUo37ebo.js";import"../../template-zeZsnoLb.js";import"../../xling-CMIOhJ6S.js";import"../../codex-Dy_gUG6Z.js";import"../../claudeDefault-D35i6PTj.js";import"../../claude-C3HxRfuM.js";import"../../gemini-CedK05G6.js";import{t}from"../../dispatcher-DBedC9_T.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-
|
|
1
|
+
import"../../errors-BzZfdKtJ.js";import"../../editor-6Nht_jnv.js";import{r as e}from"../../format-q5VlTrky.js";import"../../config-Bf-EeKY5.js";import"../../fsStore-CwAffYMN.js";import"../../base-BUo37ebo.js";import"../../template-zeZsnoLb.js";import"../../xling-CMIOhJ6S.js";import{t}from"../../codex-Dy_gUG6Z.js";import"../../claudeDefault-D35i6PTj.js";import"../../claude-C3HxRfuM.js";import"../../gemini-CedK05G6.js";import{t as n}from"../../dispatcher-DBedC9_T.js";import{Args as r,Command as i,Flags as a}from"@oclif/core";import o from"node:readline/promises";import{stdin as s,stdout as c}from"node:process";var l=class l extends i{static summary=`Switch between profiles or settings variants`;static description=`
|
|
2
2
|
Switch to a different profile configuration for Codex
|
|
3
3
|
or activate a specific settings.<variant>.json for Claude.
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import"../../errors-
|
|
1
|
+
import"../../errors-BzZfdKtJ.js";import{r as e}from"../../format-q5VlTrky.js";import"../../fsStore-CwAffYMN.js";import{i as t,n,r,t as i}from"../../sync-LkiPbSTH.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-
|
|
1
|
+
import{n as e}from"../../cli-BQnaBwZZ.js";import"../../errors-BzZfdKtJ.js";import"../../editor-6Nht_jnv.js";import"../../config-Bf-EeKY5.js";import"../../fsStore-CwAffYMN.js";import"../../base-BUo37ebo.js";import"../../template-zeZsnoLb.js";import"../../xling-CMIOhJ6S.js";import{n as t,t as n}from"../../types-Df-xXIah.js";import{t as r}from"../../runner-Bpbzwyfd.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.9.
|
|
1
|
+
import{Command as e}from"@oclif/core";var t=`0.9.7`,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};
|
package/dist/commands/x/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{n as e}from"../../cli-
|
|
1
|
+
import{n as e}from"../../cli-BQnaBwZZ.js";import"../../errors-BzZfdKtJ.js";import"../../runner-CCy2YdOv.js";import"../../base-sBAL-g57.js";import"../../claude-Bbd3pVuH.js";import"../../codex-Db_IraH3.js";import"../../gemini-DmKcVP7x.js";import{t}from"../../dispatcher-BE4ieOei.js";import{Command as n,Flags as r}from"@oclif/core";var i=class i extends n{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!
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as e}from"./errors-
|
|
1
|
+
import{a as e}from"./errors-BzZfdKtJ.js";import{r as t}from"./runner-CCy2YdOv.js";import{t as n}from"./utils-CCoDGqk7.js";const r={chrome:{darwin:`Google Chrome`,linux:`google-chrome`,win32:`chrome`},safari:{darwin:`Safari`},firefox:{darwin:`Firefox`,linux:`firefox`,win32:`firefox`},arc:{darwin:`Arc`,win32:`Arc`},edge:{darwin:`Microsoft Edge`,linux:`microsoft-edge`,win32:`msedge`},dia:{darwin:`Dia`,linux:`dia`,win32:`dia`}};function i(e){let t=process.platform,n=r[e]?.[t];return n?t===`darwin`?`open -a "${n}"`:n:null}async function a(r,a){let{title:o,body:s,base:c,head:l,draft:u=!1,web:d=!1,browser:f=`chrome`,assignee:p=[],reviewer:m=[],label:h=[]}=r;if(!await n())throw new e(`gh`,`Install GitHub CLI: https://cli.github.com/`);let g=[`pr`,`create`];o&&g.push(`--title`,o),s&&g.push(`--body`,s),c&&g.push(`--base`,c),l&&g.push(`--head`,l),u&&g.push(`--draft`);for(let e of p)g.push(`--assignee`,e);for(let e of m)g.push(`--reviewer`,e);for(let e of h)g.push(`--label`,e);let _;if(d){g.push(`--web`);let e=i(f);if(!e)throw Error(`Browser "${f}" is not available on ${process.platform}. Supported browsers: chrome, safari (macOS only), firefox, arc, edge, dia`);_={GH_BROWSER:e}}let v=await t(`gh`,g,{cwd:a,env:_,throwOnError:!1});if(!v.success)throw Error(`Failed to create PR: ${v.stderr}`);return{success:!0,message:d?`Created PR and opened in ${f}`:`Created PR successfully`,details:{title:o,base:c,head:l,draft:u,web:d,browser:d?f:void 0,platform:process.platform}}}export{a as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{h as e}from"./errors-
|
|
1
|
+
import{h as e}from"./errors-BzZfdKtJ.js";import{i as t}from"./runner-CCy2YdOv.js";import{t as n}from"./claude-Bbd3pVuH.js";import{t as r}from"./codex-Db_IraH3.js";import{t as i}from"./gemini-DmKcVP7x.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{n as e}from"./utils-
|
|
1
|
+
import{n as e}from"./utils-CCoDGqk7.js";import{t}from"./pr-DYOhlKHw.js";import{t as n}from"./view-4iWEelup.js";import{t as r}from"./worktree-CFMEZX8U.js";import{t as i}from"./create-CffFD_Yh.js";var a=class{async execute(a){if(a.command!==`prv`&&await e(a.cwd),a.command===`worktree`)return r(a.data,a.cwd);if(a.command===`prr`)return t(a.data,a.cwd);if(a.command===`prv`)return n(a.data,a.cwd);if(a.command===`prc`)return i(a.data,a.cwd);throw Error(`Unknown git command: ${a.command}`)}};export{a as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{h as e,l as t,m as n}from"./errors-
|
|
1
|
+
import{h as e,l as t,m as n}from"./errors-BzZfdKtJ.js";import{t as r}from"./xling-CMIOhJ6S.js";import{t as i}from"./codex-Dy_gUG6Z.js";import{t as a}from"./claude-C3HxRfuM.js";import{t as o}from"./gemini-CedK05G6.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};
|
package/dist/domain/git.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as GitPrRequest, c as GitWorktreeRequest, d as WorktreeStatus, i as GitCreatePrRequest, l as SUPPORTED_BROWSERS, n as GitCommandPayload, o as GitViewRequest, r as GitCommandResult, s as GitWorktreeAction, t as GitCommandDetails, u as SupportedBrowser } from "../git-
|
|
1
|
+
import { a as GitPrRequest, c as GitWorktreeRequest, d as WorktreeStatus, i as GitCreatePrRequest, l as SUPPORTED_BROWSERS, n as GitCommandPayload, o as GitViewRequest, r as GitCommandResult, s as GitWorktreeAction, t as GitCommandDetails, u as SupportedBrowser } from "../git-CRkoXk-6.js";
|
|
2
2
|
export { GitCommandDetails, GitCommandPayload, GitCommandResult, GitCreatePrRequest, GitPrRequest, GitViewRequest, GitWorktreeAction, GitWorktreeRequest, SUPPORTED_BROWSERS, SupportedBrowser, WorktreeStatus };
|
package/dist/domain/git.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as e}from"../git-
|
|
1
|
+
import{t as e}from"../git-CvgdaUQP.js";export{e as SUPPORTED_BROWSERS};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import "../types-
|
|
2
|
-
import { n as SettingsAdapter, t as LaunchAdapter } from "../interfaces-
|
|
1
|
+
import "../types-BzkIf_zy.js";
|
|
2
|
+
import { n as SettingsAdapter, t as LaunchAdapter } from "../interfaces-DY2ES_Kh.js";
|
|
3
3
|
export { LaunchAdapter, SettingsAdapter };
|
package/dist/domain/types.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { _ as ToolId, a as InspectResult, c as LaunchResult, d as SettingAction, f as SettingsFileEntry, g as SwitchOptions, h as SettingsResult, i as EditOptions, l as OutputFormat, m as SettingsPayload, n as ConfigObject, o as LaunchCommandSpec, p as SettingsListData, r as ConfigValue, s as LaunchPayload, t as CodexProviderInput, u as Scope } from "../types-
|
|
1
|
+
import { _ as ToolId, a as InspectResult, c as LaunchResult, d as SettingAction, f as SettingsFileEntry, g as SwitchOptions, h as SettingsResult, i as EditOptions, l as OutputFormat, m as SettingsPayload, n as ConfigObject, o as LaunchCommandSpec, p as SettingsListData, r as ConfigValue, s as LaunchPayload, t as CodexProviderInput, u as Scope } from "../types-BzkIf_zy.js";
|
|
2
2
|
export { CodexProviderInput, ConfigObject, ConfigValue, EditOptions, InspectResult, LaunchCommandSpec, LaunchPayload, LaunchResult, OutputFormat, Scope, SettingAction, SettingsFileEntry, SettingsListData, SettingsPayload, SettingsResult, SwitchOptions, ToolId };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as ToolId, d as SettingAction, m as SettingsPayload, r as ConfigValue, u as Scope } from "../types-
|
|
1
|
+
import { _ as ToolId, d as SettingAction, m as SettingsPayload, r as ConfigValue, u as Scope } from "../types-BzkIf_zy.js";
|
|
2
2
|
import { ZodType, z } from "zod";
|
|
3
3
|
|
|
4
4
|
//#region src/domain/validators.d.ts
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as e,c as t,d as n,i as r,l as i,n as a,o,r as s,s as c,t as l,u}from"../validators-
|
|
1
|
+
import{a as e,c as t,d as n,i as r,l as i,n as a,o,r as s,s as c,t as l,u}from"../validators-CzOBqk3u.js";export{l as HostSchema,a as PortSchema,s as PrIdSchema,r as ScopeSchema,e as SettingActionSchema,o as SettingsPayloadSchema,c as ToolIdSchema,t as validateHost,i as validatePayload,u as validatePort,n as validatePrId};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { C as XlingConfig, D as validateXlingConfig, E as getProviderApiKeys, S as ShortcutConfigSchema, T as getNormalizedPriority, _ as ProxyConfigSchema, a as PlatformArgs, b as RetryPolicySchema, c as PlatformCommandSchema, d as PlatformShell, f as PlatformShellSchema, g as ProxyConfig, h as ProviderConfigSchema, i as PipelineStepSchema, l as PlatformPipeline, m as ProviderConfig, n as LoadBalanceStrategySchema, o as PlatformArgsSchema, p as PromptConfig, r as PipelineStep, s as PlatformCommand, t as LoadBalanceStrategy, u as PlatformPipelineSchema, v as ProxyProviderConfig, w as XlingConfigSchema, x as ShortcutConfig, y as RetryPolicy } from "../../config-
|
|
1
|
+
import { C as XlingConfig, D as validateXlingConfig, E as getProviderApiKeys, S as ShortcutConfigSchema, T as getNormalizedPriority, _ as ProxyConfigSchema, a as PlatformArgs, b as RetryPolicySchema, c as PlatformCommandSchema, d as PlatformShell, f as PlatformShellSchema, g as ProxyConfig, h as ProviderConfigSchema, i as PipelineStepSchema, l as PlatformPipeline, m as ProviderConfig, n as LoadBalanceStrategySchema, o as PlatformArgsSchema, p as PromptConfig, r as PipelineStep, s as PlatformCommand, t as LoadBalanceStrategy, u as PlatformPipelineSchema, v as ProxyProviderConfig, w as XlingConfigSchema, x as ShortcutConfig, y as RetryPolicy } from "../../config-C87nCAHS.js";
|
|
2
2
|
export { LoadBalanceStrategy, LoadBalanceStrategySchema, PipelineStep, PipelineStepSchema, PlatformArgs, PlatformArgsSchema, PlatformCommand, PlatformCommandSchema, PlatformPipeline, PlatformPipelineSchema, PlatformShell, PlatformShellSchema, PromptConfig, ProviderConfig, ProviderConfigSchema, ProxyConfig, ProxyConfigSchema, ProxyProviderConfig, RetryPolicy, RetryPolicySchema, ShortcutConfig, ShortcutConfigSchema, XlingConfig, XlingConfigSchema, getNormalizedPriority, getProviderApiKeys, validateXlingConfig };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as e,c as t,d as n,f as r,i,l as a,m as o,n as s,o as c,p as l,r as u,s as d,t as f,u as p}from"../../config-
|
|
1
|
+
import{a as e,c as t,d as n,f as r,i,l as a,m as o,n as s,o as c,p as l,r as u,s as d,t as f,u as p}from"../../config-Bf-EeKY5.js";export{f as LoadBalanceStrategySchema,s as PipelineStepSchema,u as PlatformArgsSchema,i as PlatformCommandSchema,e as PlatformPipelineSchema,c as PlatformShellSchema,d as ProviderConfigSchema,t as ProxyConfigSchema,a as RetryPolicySchema,p as ShortcutConfigSchema,n as XlingConfigSchema,r as getNormalizedPriority,l as getProviderApiKeys,o as validateXlingConfig};
|