@claudiolabs/claudin 1.0.3 → 1.0.4
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/chunks/AgentTool-1.0.4-hb5yf83k.mjs +1 -0
- package/dist/chunks/App-1.0.4-ee5phav9.mjs +1 -0
- package/dist/chunks/ApproveApiKey-1.0.4-cc8qfn6m.mjs +1 -0
- package/dist/chunks/AssistantSessionChooser-1.0.4-k5b5pnrd.mjs +1 -0
- package/dist/chunks/AutoModeOptInDialog-1.0.4-jhajeb8a.mjs +1 -0
- package/dist/chunks/BypassPermissionsModeDialog-1.0.4-9hz5azec.mjs +1 -0
- package/dist/chunks/ClaudeMdExternalIncludesDialog-1.0.4-g51kch7p.mjs +1 -0
- package/dist/chunks/ConsoleOAuthFlow-1.0.4-29trpvey.mjs +1 -0
- package/dist/chunks/DiffDialog-1.0.4-j8p9yt42.mjs +7 -0
- package/dist/chunks/Doctor-1.0.4-wzrsp6wf.mjs +1 -0
- package/dist/chunks/ExplorerDialog-1.0.4-nestptq4.mjs +6 -0
- package/dist/chunks/Grove-1.0.4-7b2m2711.mjs +1 -0
- package/dist/chunks/ITermBackend-1.0.4-hqbevsrb.mjs +1 -0
- package/dist/chunks/InvalidConfigDialog-1.0.4-vtmbvxxd.mjs +1 -0
- package/dist/chunks/InvalidSettingsDialog-1.0.4-zreb0vxk.mjs +1 -0
- package/dist/chunks/MigrationDialog-1.0.4-ed1k11kd.mjs +1 -0
- package/dist/chunks/Onboarding-1.0.4-nq3j2bap.mjs +1 -0
- package/dist/chunks/ProviderManager-1.0.4-g7qy6jg1.mjs +1 -0
- package/dist/chunks/REPL-1.0.4-ne32y8dw.mjs +1 -0
- package/dist/chunks/ResumeConversation-1.0.4-fedwb24z.mjs +1 -0
- package/dist/chunks/SnapshotUpdateDialog-1.0.4-w95m7f1z.mjs +1 -0
- package/dist/chunks/TeleportProgress-1.0.4-ck0a2cmq.mjs +1 -0
- package/dist/chunks/TeleportRepoMismatchDialog-1.0.4-w37g1ssr.mjs +1 -0
- package/dist/chunks/TeleportResumeWrapper-1.0.4-tk09ztje.mjs +1 -0
- package/dist/chunks/TmuxBackend-1.0.4-a4nja4px.mjs +9 -0
- package/dist/chunks/ToolSearchTool-1.0.4-q00g76m2.mjs +1 -0
- package/dist/chunks/TrustDialog-1.0.4-xce6cp69.mjs +1 -0
- package/dist/chunks/activeProvider-1.0.4-w4scey43.mjs +1 -0
- package/dist/chunks/add-dir-1.0.4-xm5qwknc.mjs +1 -0
- package/dist/chunks/agentTypes-1.0.4-he8e2qfd.mjs +1 -0
- package/dist/chunks/agents-1.0.4-k2bdfryr.mjs +110 -0
- package/dist/chunks/agents-1.0.4-mt84dfn1.mjs +3 -0
- package/dist/chunks/api-1.0.4-h4pnj11w.mjs +1 -0
- package/dist/chunks/asciicast-1.0.4-cafbqek9.mjs +1 -0
- package/dist/chunks/assistant-1.0.4-cezj138d.mjs +1 -0
- package/dist/chunks/auth-1.0.4-0t5pss7v.mjs +1 -0
- package/dist/chunks/auth-1.0.4-3y0wgt5g.mjs +1 -0
- package/dist/chunks/autoMode-1.0.4-vssxz3fz.mjs +48 -0
- package/dist/chunks/autoUpdater-1.0.4-drwc61h2.mjs +1 -0
- package/dist/chunks/backgroundHousekeeping-1.0.4-dn72g8zg.mjs +1 -0
- package/dist/chunks/branch-1.0.4-4gv6bbzr.mjs +4 -0
- package/dist/chunks/bridge-1.0.4-fs3148xw.mjs +2 -0
- package/dist/chunks/bridgeConfig-1.0.4-tj7j77dy.mjs +1 -0
- package/dist/chunks/bridgeEnabled-1.0.4-g5j98pxj.mjs +1 -0
- package/dist/chunks/bridgeMain-1.0.4-47dp2cx1.mjs +88 -0
- package/dist/chunks/bridgePointer-1.0.4-rz3s97zd.mjs +1 -0
- package/dist/chunks/btw-1.0.4-q0v29hp5.mjs +1 -0
- package/dist/chunks/buddy-1.0.4-f6rknpnr.mjs +3 -0
- package/dist/chunks/cacache-1.0.4-zqddgev2.mjs +1 -0
- package/dist/chunks/cache-probe-1.0.4-qx7ym4r0.mjs +21 -0
- package/dist/chunks/cacheStats-1.0.4-q2mcbsr3.mjs +4 -0
- package/dist/chunks/caches-1.0.4-bsgbkzpc.mjs +1 -0
- package/dist/chunks/claudeDesktop-1.0.4-17ztwd14.mjs +1 -0
- package/dist/chunks/claudemd-1.0.4-zdd5de85.mjs +1 -0
- package/dist/chunks/clear-1.0.4-g3cfj02y.mjs +1 -0
- package/dist/chunks/clearTerminal-1.0.4-xz0azar2.mjs +1 -0
- package/dist/chunks/cli-1.0.4-08e3sn18.mjs +2 -0
- package/dist/chunks/cli-1.0.4-092qjm5g.mjs +25 -0
- package/dist/chunks/cli-1.0.4-09fgpcwb.mjs +2 -0
- package/dist/chunks/cli-1.0.4-0gpk6g88.mjs +2 -0
- package/dist/chunks/cli-1.0.4-0pqf799x.mjs +2 -0
- package/dist/chunks/cli-1.0.4-0vwtrvvh.mjs +16 -0
- package/dist/chunks/cli-1.0.4-0wp27vrg.mjs +67 -0
- package/dist/chunks/cli-1.0.4-1bg07n68.mjs +4 -0
- package/dist/chunks/cli-1.0.4-1ddc8bnh.mjs +2 -0
- package/dist/chunks/cli-1.0.4-1j122zyj.mjs +2 -0
- package/dist/chunks/cli-1.0.4-1xkgwtah.mjs +20 -0
- package/dist/chunks/cli-1.0.4-1ymz8m3g.mjs +2 -0
- package/dist/chunks/cli-1.0.4-23n5aaxp.mjs +2 -0
- package/dist/chunks/cli-1.0.4-2g15f7sw.mjs +2 -0
- package/dist/chunks/cli-1.0.4-2je9hpfv.mjs +50 -0
- package/dist/chunks/cli-1.0.4-2m2spkt1.mjs +2 -0
- package/dist/chunks/cli-1.0.4-2mqbwapd.mjs +2 -0
- package/dist/chunks/cli-1.0.4-2pfh6nzj.mjs +2 -0
- package/dist/chunks/cli-1.0.4-2vrfse65.mjs +2 -0
- package/dist/chunks/cli-1.0.4-2wh24aeg.mjs +24 -0
- package/dist/chunks/cli-1.0.4-3289hbrr.mjs +6 -0
- package/dist/chunks/cli-1.0.4-34jdejmp.mjs +2 -0
- package/dist/chunks/cli-1.0.4-36qx2z1d.mjs +2 -0
- package/dist/chunks/cli-1.0.4-3b0061a4.mjs +2 -0
- package/dist/chunks/cli-1.0.4-3gmj1s7h.mjs +3 -0
- package/dist/chunks/cli-1.0.4-3k3cpavm.mjs +3 -0
- package/dist/chunks/cli-1.0.4-4m4pwdge.mjs +2 -0
- package/dist/chunks/cli-1.0.4-4sfp975c.mjs +2 -0
- package/dist/chunks/cli-1.0.4-4wmw1p17.mjs +24 -0
- package/dist/chunks/cli-1.0.4-54j7kz1n.mjs +2 -0
- package/dist/chunks/cli-1.0.4-5663sqrh.mjs +2 -0
- package/dist/chunks/cli-1.0.4-5c4tptcb.mjs +2 -0
- package/dist/chunks/cli-1.0.4-5e2v63sy.mjs +2 -0
- package/dist/chunks/cli-1.0.4-5e9fa04w.mjs +2 -0
- package/dist/chunks/cli-1.0.4-618n4yb3.mjs +2 -0
- package/dist/chunks/cli-1.0.4-61v9tj7g.mjs +2 -0
- package/dist/chunks/cli-1.0.4-75pszwff.mjs +12 -0
- package/dist/chunks/cli-1.0.4-7b7qaegg.mjs +2 -0
- package/dist/chunks/cli-1.0.4-7hvk5sex.mjs +39 -0
- package/dist/chunks/cli-1.0.4-7jd24agk.mjs +2 -0
- package/dist/chunks/cli-1.0.4-7pxrd0w5.mjs +4 -0
- package/dist/chunks/cli-1.0.4-80hrkybp.mjs +2 -0
- package/dist/chunks/cli-1.0.4-85cb91sn.mjs +4 -0
- package/dist/chunks/cli-1.0.4-8bmfjgvt.mjs +2 -0
- package/dist/chunks/cli-1.0.4-8ed4gxkm.mjs +3 -0
- package/dist/chunks/cli-1.0.4-8gkb1zg5.mjs +8 -0
- package/dist/chunks/cli-1.0.4-8jya5ew3.mjs +2 -0
- package/dist/chunks/cli-1.0.4-8ws7nhff.mjs +2 -0
- package/dist/chunks/cli-1.0.4-8x3m3esm.mjs +2 -0
- package/dist/chunks/cli-1.0.4-95nw81kz.mjs +2 -0
- package/dist/chunks/cli-1.0.4-982xabhy.mjs +2 -0
- package/dist/chunks/cli-1.0.4-9ber6pxx.mjs +2 -0
- package/dist/chunks/cli-1.0.4-9ra8j4rt.mjs +59 -0
- package/dist/chunks/cli-1.0.4-9re52te8.mjs +2 -0
- package/dist/chunks/cli-1.0.4-9w88pg39.mjs +12 -0
- package/dist/chunks/cli-1.0.4-9ysbahqq.mjs +2 -0
- package/dist/chunks/cli-1.0.4-a14svdr8.mjs +1 -0
- package/dist/chunks/cli-1.0.4-avmcefxg.mjs +10 -0
- package/dist/chunks/cli-1.0.4-azntz5z2.mjs +2 -0
- package/dist/chunks/cli-1.0.4-bg0v2cnc.mjs +133 -0
- package/dist/chunks/cli-1.0.4-bn5k1yhp.mjs +2 -0
- package/dist/chunks/cli-1.0.4-bneycyws.mjs +2 -0
- package/dist/chunks/cli-1.0.4-bnsdazas.mjs +3 -0
- package/dist/chunks/cli-1.0.4-c9sh44ne.mjs +2 -0
- package/dist/chunks/cli-1.0.4-cavq6b0d.mjs +2 -0
- package/dist/chunks/cli-1.0.4-cj3nrnbs.mjs +58 -0
- package/dist/chunks/cli-1.0.4-ctmzb5aw.mjs +2 -0
- package/dist/chunks/cli-1.0.4-cwjz9xzp.mjs +2 -0
- package/dist/chunks/cli-1.0.4-d4gb1vbz.mjs +2 -0
- package/dist/chunks/cli-1.0.4-d8bjdz7n.mjs +2 -0
- package/dist/chunks/cli-1.0.4-dj36xg0v.mjs +2 -0
- package/dist/chunks/cli-1.0.4-e26gm32b.mjs +2 -0
- package/dist/chunks/cli-1.0.4-e2mkdvw8.mjs +2 -0
- package/dist/chunks/cli-1.0.4-e76jy4xn.mjs +2 -0
- package/dist/chunks/cli-1.0.4-e86sgy00.mjs +3 -0
- package/dist/chunks/cli-1.0.4-ec3dh8bt.mjs +2 -0
- package/dist/chunks/cli-1.0.4-edbk5qx2.mjs +5 -0
- package/dist/chunks/cli-1.0.4-ef5asahs.mjs +4 -0
- package/dist/chunks/cli-1.0.4-emp66cxw.mjs +2 -0
- package/dist/chunks/cli-1.0.4-eny7y9k8.mjs +6 -0
- package/dist/chunks/cli-1.0.4-ex22h376.mjs +2 -0
- package/dist/chunks/cli-1.0.4-f0t68sye.mjs +2 -0
- package/dist/chunks/cli-1.0.4-f20q38cw.mjs +2 -0
- package/dist/chunks/cli-1.0.4-f2cmhz31.mjs +15 -0
- package/dist/chunks/cli-1.0.4-f62zwjj2.mjs +2 -0
- package/dist/chunks/cli-1.0.4-f8dd3sqs.mjs +2 -0
- package/dist/chunks/cli-1.0.4-f8eaamkf.mjs +2 -0
- package/dist/chunks/cli-1.0.4-f965h6gd.mjs +7 -0
- package/dist/chunks/cli-1.0.4-fbhgecgx.mjs +2 -0
- package/dist/chunks/cli-1.0.4-fc0bzryc.mjs +3 -0
- package/dist/chunks/cli-1.0.4-fcswm1md.mjs +2 -0
- package/dist/chunks/cli-1.0.4-ffvpb7fz.mjs +2 -0
- package/dist/chunks/cli-1.0.4-fsf2c4j5.mjs +2 -0
- package/dist/chunks/cli-1.0.4-fv9x8ks1.mjs +2 -0
- package/dist/chunks/cli-1.0.4-g3vvvtwh.mjs +2 -0
- package/dist/chunks/cli-1.0.4-g9kftkyg.mjs +2 -0
- package/dist/chunks/cli-1.0.4-genhzh1b.mjs +2 -0
- package/dist/chunks/cli-1.0.4-gf8tchp1.mjs +5 -0
- package/dist/chunks/cli-1.0.4-ghv1wb08.mjs +2 -0
- package/dist/chunks/cli-1.0.4-ghzbww61.mjs +34 -0
- package/dist/chunks/cli-1.0.4-gqc15qng.mjs +6 -0
- package/dist/chunks/cli-1.0.4-gssg75hx.mjs +2 -0
- package/dist/chunks/cli-1.0.4-gyjecspm.mjs +2 -0
- package/dist/chunks/cli-1.0.4-hfn9tnb6.mjs +2 -0
- package/dist/chunks/cli-1.0.4-hnrps9q2.mjs +2 -0
- package/dist/chunks/cli-1.0.4-hrw2yb74.mjs +2 -0
- package/dist/chunks/cli-1.0.4-ht7fqqqw.mjs +2 -0
- package/dist/chunks/cli-1.0.4-htrx7sdv.mjs +2 -0
- package/dist/chunks/cli-1.0.4-hvgsrtj6.mjs +3 -0
- package/dist/chunks/cli-1.0.4-hwje79ka.mjs +2 -0
- package/dist/chunks/cli-1.0.4-hyj1dzkq.mjs +3 -0
- package/dist/chunks/cli-1.0.4-j17mhs88.mjs +18 -0
- package/dist/chunks/cli-1.0.4-jvp0mp87.mjs +5471 -0
- package/dist/chunks/cli-1.0.4-jxsb0m86.mjs +2 -0
- package/dist/chunks/cli-1.0.4-jy8qt85n.mjs +2 -0
- package/dist/chunks/cli-1.0.4-k16cwcs0.mjs +2 -0
- package/dist/chunks/cli-1.0.4-k20sr786.mjs +3 -0
- package/dist/chunks/cli-1.0.4-k6gh1b1a.mjs +2 -0
- package/dist/chunks/cli-1.0.4-kbfs3rn2.mjs +3 -0
- package/dist/chunks/cli-1.0.4-kc0ty8k1.mjs +2 -0
- package/dist/chunks/cli-1.0.4-kv0e5nm5.mjs +2 -0
- package/dist/chunks/cli-1.0.4-m240wvtt.mjs +9 -0
- package/dist/chunks/cli-1.0.4-n5mydt2f.mjs +2 -0
- package/dist/chunks/cli-1.0.4-ndy339bx.mjs +2 -0
- package/dist/chunks/cli-1.0.4-nfpfve45.mjs +2 -0
- package/dist/chunks/cli-1.0.4-ng8nc24b.mjs +2 -0
- package/dist/chunks/cli-1.0.4-nws4fp34.mjs +2 -0
- package/dist/chunks/cli-1.0.4-nz4ff6hn.mjs +18 -0
- package/dist/chunks/cli-1.0.4-p618f4eb.mjs +2 -0
- package/dist/chunks/cli-1.0.4-pae9c0v0.mjs +18 -0
- package/dist/chunks/cli-1.0.4-pxqvx117.mjs +3 -0
- package/dist/chunks/cli-1.0.4-q00a51mt.mjs +4 -0
- package/dist/chunks/cli-1.0.4-q0rnwhn4.mjs +199 -0
- package/dist/chunks/cli-1.0.4-q97cke3f.mjs +2 -0
- package/dist/chunks/cli-1.0.4-qdsf8s2n.mjs +5 -0
- package/dist/chunks/cli-1.0.4-qka1j546.mjs +4 -0
- package/dist/chunks/cli-1.0.4-qng8dpqh.mjs +2 -0
- package/dist/chunks/cli-1.0.4-qpymvg0c.mjs +25 -0
- package/dist/chunks/cli-1.0.4-r4h3tk3k.mjs +17 -0
- package/dist/chunks/cli-1.0.4-r8mtbv7z.mjs +42 -0
- package/dist/chunks/cli-1.0.4-r8x4yv46.mjs +2 -0
- package/dist/chunks/cli-1.0.4-rf2k7z5d.mjs +2 -0
- package/dist/chunks/cli-1.0.4-rjgeb0fh.mjs +12 -0
- package/dist/chunks/cli-1.0.4-rkb3rkfa.mjs +2 -0
- package/dist/chunks/cli-1.0.4-rkhq9n0r.mjs +12 -0
- package/dist/chunks/cli-1.0.4-rkw1vtxv.mjs +2 -0
- package/dist/chunks/cli-1.0.4-rmrpsgq6.mjs +24 -0
- package/dist/chunks/cli-1.0.4-rntkbdpm.mjs +2 -0
- package/dist/chunks/cli-1.0.4-rsdrrjzt.mjs +4 -0
- package/dist/chunks/cli-1.0.4-rtwmycp0.mjs +2 -0
- package/dist/chunks/cli-1.0.4-s4sdhvre.mjs +2 -0
- package/dist/chunks/cli-1.0.4-s6m720bj.mjs +2 -0
- package/dist/chunks/cli-1.0.4-s8qwtd3t.mjs +2 -0
- package/dist/chunks/cli-1.0.4-scpa8zjb.mjs +2 -0
- package/dist/chunks/cli-1.0.4-sm5wfdec.mjs +2 -0
- package/dist/chunks/cli-1.0.4-t0zs4sf6.mjs +2 -0
- package/dist/chunks/cli-1.0.4-t915kvpv.mjs +2 -0
- package/dist/chunks/cli-1.0.4-th3f10e2.mjs +2 -0
- package/dist/chunks/cli-1.0.4-tt7ejrct.mjs +2 -0
- package/dist/chunks/cli-1.0.4-ttn7e3zf.mjs +3 -0
- package/dist/chunks/cli-1.0.4-v2973j5k.mjs +15 -0
- package/dist/chunks/cli-1.0.4-vckzcaj2.mjs +2 -0
- package/dist/chunks/cli-1.0.4-vde8kvg5.mjs +4 -0
- package/dist/chunks/cli-1.0.4-vdykgt7q.mjs +2 -0
- package/dist/chunks/cli-1.0.4-vnf5ysx9.mjs +3 -0
- package/dist/chunks/cli-1.0.4-vpcfce7x.mjs +6 -0
- package/dist/chunks/cli-1.0.4-vrfgjvj8.mjs +15 -0
- package/dist/chunks/cli-1.0.4-vwwq0bh3.mjs +2 -0
- package/dist/chunks/cli-1.0.4-vxb33mtd.mjs +4 -0
- package/dist/chunks/cli-1.0.4-w6bsa7jc.mjs +2 -0
- package/dist/chunks/cli-1.0.4-wb91dheq.mjs +2 -0
- package/dist/chunks/cli-1.0.4-wfx4vdv5.mjs +2 -0
- package/dist/chunks/cli-1.0.4-wryebn9y.mjs +2 -0
- package/dist/chunks/cli-1.0.4-x4szzhgq.mjs +2 -0
- package/dist/chunks/cli-1.0.4-x8jnn75c.mjs +2 -0
- package/dist/chunks/cli-1.0.4-xcegbj23.mjs +21 -0
- package/dist/chunks/cli-1.0.4-xjef6vra.mjs +2 -0
- package/dist/chunks/cli-1.0.4-xwh8sxe6.mjs +45 -0
- package/dist/chunks/cli-1.0.4-xwwr77p3.mjs +2 -0
- package/dist/chunks/cli-1.0.4-xxktmt2a.mjs +2 -0
- package/dist/chunks/cli-1.0.4-y1kvcxph.mjs +2 -0
- package/dist/chunks/cli-1.0.4-y8a3yd57.mjs +2 -0
- package/dist/chunks/cli-1.0.4-y9e53xfp.mjs +2 -0
- package/dist/chunks/cli-1.0.4-ya22eazw.mjs +2 -0
- package/dist/chunks/cli-1.0.4-ya3aqyvx.mjs +2 -0
- package/dist/chunks/cli-1.0.4-ygedgw05.mjs +2 -0
- package/dist/chunks/cli-1.0.4-yp6300fv.mjs +2 -0
- package/dist/chunks/cli-1.0.4-yq119gwk.mjs +2 -0
- package/dist/chunks/cli-1.0.4-yq19e16e.mjs +4 -0
- package/dist/chunks/cli-1.0.4-yq6mh0a1.mjs +2 -0
- package/dist/chunks/cli-1.0.4-yrgjsn2v.mjs +17 -0
- package/dist/chunks/cli-1.0.4-ywnv6aw8.mjs +2 -0
- package/dist/chunks/cli-1.0.4-z10ppvxj.mjs +133 -0
- package/dist/chunks/cli-1.0.4-z5zmw573.mjs +2 -0
- package/dist/chunks/cli-1.0.4-zcjfmcay.mjs +2 -0
- package/dist/chunks/cli-1.0.4-zka0z8g9.mjs +2 -0
- package/dist/chunks/cli-1.0.4-znj63zs7.mjs +2 -0
- package/dist/chunks/cli-1.0.4-znmw4kr8.mjs +2 -0
- package/dist/chunks/cli-1.0.4-zpvxzd77.mjs +2 -0
- package/dist/chunks/cli-1.0.4-ztznpg9h.mjs +2 -0
- package/dist/chunks/client-1.0.4-tejrj09r.mjs +1 -0
- package/dist/chunks/color-1.0.4-148b97be.mjs +1 -0
- package/dist/chunks/compact-1.0.4-ky0tgnkb.mjs +3 -0
- package/dist/chunks/config-1.0.4-a5enjc0b.mjs +1 -0
- package/dist/chunks/config-1.0.4-q23nqw9d.mjs +1 -0
- package/dist/chunks/constants-1.0.4-635bzfez.mjs +1 -0
- package/dist/chunks/context-1.0.4-fmdfyxfk.mjs +1 -0
- package/dist/chunks/context-noninteractive-1.0.4-j208qvff.mjs +1 -0
- package/dist/chunks/conversation-1.0.4-mjwd6es3.mjs +1 -0
- package/dist/chunks/copilotHeaders-1.0.4-w8cpfvcn.mjs +1 -0
- package/dist/chunks/copy-1.0.4-3zg2v8v9.mjs +9 -0
- package/dist/chunks/cost-1.0.4-qbz07cgt.mjs +1 -0
- package/dist/chunks/createSSHSession-1.0.4-ck0pjj64.mjs +1 -0
- package/dist/chunks/createSession-1.0.4-zn5jgf43.mjs +1 -0
- package/dist/chunks/debug-1.0.4-dym46dbc.mjs +1 -0
- package/dist/chunks/defaultActionDeps-1.0.4-7b6ynz02.mjs +1446 -0
- package/dist/chunks/desktop-1.0.4-b1awqagy.mjs +1 -0
- package/dist/chunks/detectRepository-1.0.4-5ce0vhvf.mjs +1 -0
- package/dist/chunks/detection-1.0.4-02gwawhp.mjs +1 -0
- package/dist/chunks/diff-1.0.4-pn4a7wgt.mjs +1 -0
- package/dist/chunks/doctor-1.0.4-79m6h5bd.mjs +1 -0
- package/dist/chunks/doctorDiagnostic-1.0.4-kxmkxpsz.mjs +1 -0
- package/dist/chunks/earlyInput-1.0.4-xg5zcr37.mjs +1 -0
- package/dist/chunks/effort-1.0.4-8sdpyadq.mjs +10 -0
- package/dist/chunks/engine-1.0.4-wrn82cfg.mjs +1 -0
- package/dist/chunks/envLessBridgeConfig-1.0.4-x998nrnt.mjs +1 -0
- package/dist/chunks/envUtils-1.0.4-957dzgjm.mjs +1 -0
- package/dist/chunks/environmentSelection-1.0.4-06vjqsxt.mjs +1 -0
- package/dist/chunks/environments-1.0.4-4tzw2x67.mjs +1 -0
- package/dist/chunks/errors-1.0.4-tb1hnmsh.mjs +1 -0
- package/dist/chunks/exampleCommands-1.0.4-hp5tyv1s.mjs +1 -0
- package/dist/chunks/exit-1.0.4-0e0pjfe4.mjs +1 -0
- package/dist/chunks/explorer-1.0.4-kzv9mf71.mjs +1 -0
- package/dist/chunks/export-1.0.4-8yb3xjhz.mjs +2 -0
- package/dist/chunks/extra-usage-1.0.4-ren9nv10.mjs +1 -0
- package/dist/chunks/extra-usage-noninteractive-1.0.4-s9hgaf3d.mjs +1 -0
- package/dist/chunks/fast-1.0.4-qb539j3d.mjs +1 -0
- package/dist/chunks/feedback-1.0.4-99yaf8cc.mjs +14 -0
- package/dist/chunks/firstPartyEventLogger-1.0.4-qj82we89.mjs +1 -0
- package/dist/chunks/git-1.0.4-ag4cdf47.mjs +1 -0
- package/dist/chunks/githubModelsCredentials-1.0.4-62p8s6py.mjs +1 -0
- package/dist/chunks/goal-1.0.4-w76hde3j.mjs +4 -0
- package/dist/chunks/grove-1.0.4-d8k5pbpk.mjs +1 -0
- package/dist/chunks/growthbook-1.0.4-qkc749a9.mjs +1 -0
- package/dist/chunks/headless-1.0.4-4htsajcx.mjs +2 -0
- package/dist/chunks/heapdump-1.0.4-g2n5m54n.mjs +6 -0
- package/dist/chunks/help-1.0.4-mb80yzdd.mjs +1 -0
- package/dist/chunks/hookChains-1.0.4-bhpn5t16.mjs +3 -0
- package/dist/chunks/hooks-1.0.4-3m8at5nd.mjs +1 -0
- package/dist/chunks/hooks-1.0.4-vqe5g9z0.mjs +79 -0
- package/dist/chunks/ide-1.0.4-8w5pj0k7.mjs +3 -0
- package/dist/chunks/image-processor-napi-1.0.4-tn6ykvgm.mjs +1 -0
- package/dist/chunks/inboundAttachments-1.0.4-gs14tq2d.mjs +1 -0
- package/dist/chunks/index-1.0.4-0ds0yar8.mjs +2 -0
- package/dist/chunks/index-1.0.4-0swpjsxv.mjs +1 -0
- package/dist/chunks/index-1.0.4-1adr1cev.mjs +1 -0
- package/dist/chunks/index-1.0.4-2cqwak8f.mjs +1 -0
- package/dist/chunks/index-1.0.4-45r2p2fr.mjs +1 -0
- package/dist/chunks/index-1.0.4-578fqjbt.mjs +5 -0
- package/dist/chunks/index-1.0.4-ak4tdd7x.mjs +1 -0
- package/dist/chunks/index-1.0.4-bq00jtej.mjs +1 -0
- package/dist/chunks/index-1.0.4-d3963jrf.mjs +1 -0
- package/dist/chunks/index-1.0.4-db6y9w6p.mjs +9 -0
- package/dist/chunks/index-1.0.4-eqa6324a.mjs +30 -0
- package/dist/chunks/index-1.0.4-fgtct7wa.mjs +1 -0
- package/dist/chunks/index-1.0.4-fpxnv2m3.mjs +1 -0
- package/dist/chunks/index-1.0.4-kkxqenx5.mjs +17 -0
- package/dist/chunks/index-1.0.4-m48vcxbj.mjs +2 -0
- package/dist/chunks/index-1.0.4-nb8rr4xb.mjs +9 -0
- package/dist/chunks/index-1.0.4-q4bjsgf0.mjs +1 -0
- package/dist/chunks/index-1.0.4-qj0raz1t.mjs +1 -0
- package/dist/chunks/index-1.0.4-rb8h15jh.mjs +1 -0
- package/dist/chunks/index-1.0.4-vhzdmbc5.mjs +1 -0
- package/dist/chunks/index-1.0.4-xadhy3m9.mjs +1 -0
- package/dist/chunks/index-1.0.4-ynqjejnh.mjs +1 -0
- package/dist/chunks/index-1.0.4-zw32d5rq.mjs +1 -0
- package/dist/chunks/init-1.0.4-tdv5z99g.mjs +1 -0
- package/dist/chunks/initReplBridge-1.0.4-rg2exhh0.mjs +1 -0
- package/dist/chunks/ink-1.0.4-w371tr8m.mjs +1 -0
- package/dist/chunks/insights-1.0.4-26m6wmhe.mjs +870 -0
- package/dist/chunks/install-1.0.4-k86wrfgy.mjs +1 -0
- package/dist/chunks/install-github-app-1.0.4-kztkmzd8.mjs +149 -0
- package/dist/chunks/install-slack-app-1.0.4-jr818vd2.mjs +1 -0
- package/dist/chunks/instrumentation-1.0.4-07hsrhzg.mjs +1 -0
- package/dist/chunks/interactiveHelpers-1.0.4-s8cew0a4.mjs +1 -0
- package/dist/chunks/keybindings-1.0.4-swcsebxv.mjs +2 -0
- package/dist/chunks/knowledge-1.0.4-fmpjrqf4.mjs +2 -0
- package/dist/chunks/latestVersionCache-1.0.4-q89arrb0.mjs +1 -0
- package/dist/chunks/loadAgentsDir-1.0.4-7pg9fk0z.mjs +1 -0
- package/dist/chunks/loadPluginHooks-1.0.4-djam30bs.mjs +1 -0
- package/dist/chunks/loadPluginHooks-1.0.4-nntzjww6.mjs +1 -0
- package/dist/chunks/log-1.0.4-q4mkknks.mjs +1 -0
- package/dist/chunks/main-1.0.4-fpq69x53.mjs +1 -0
- package/dist/chunks/managedEnv-1.0.4-50dv7phy.mjs +1 -0
- package/dist/chunks/mcp-1.0.4-3fp6t13e.mjs +1 -0
- package/dist/chunks/mcp-1.0.4-5g0fetmg.mjs +17 -0
- package/dist/chunks/mcp-1.0.4-v67mxtdh.mjs +4 -0
- package/dist/chunks/mcpb-1.0.4-bg0cf4nd.mjs +1 -0
- package/dist/chunks/memory-1.0.4-a5sjkye9.mjs +3 -0
- package/dist/chunks/model-1.0.4-7q33dte0.mjs +2 -0
- package/dist/chunks/model-1.0.4-ffc1hzwk.mjs +1 -0
- package/dist/chunks/node-1.0.4-t61fwtvv.mjs +12 -0
- package/dist/chunks/oauth-1.0.4-wa2f4qb5.mjs +1 -0
- package/dist/chunks/openaiShim-1.0.4-j74991mr.mjs +14 -0
- package/dist/chunks/output-style-1.0.4-rrajfa4e.mjs +1 -0
- package/dist/chunks/package-ZZWOLTXM-1.0.4-y2hbwj02.mjs +1 -0
- package/dist/chunks/parseConnectUrl-1.0.4-1krmb0p7.mjs +1 -0
- package/dist/chunks/parser-1.0.4-e0yxtz1k.mjs +1 -0
- package/dist/chunks/passes-1.0.4-kvwashgz.mjs +1 -0
- package/dist/chunks/permissions-1.0.4-apdtqjy6.mjs +3 -0
- package/dist/chunks/permissions-1.0.4-pmabr578.mjs +1 -0
- package/dist/chunks/plan-1.0.4-fsnspnpd.mjs +1 -0
- package/dist/chunks/plist-1.0.4-de9w52d2.mjs +1 -0
- package/dist/chunks/plugin-1.0.4-kaxanxvg.mjs +29 -0
- package/dist/chunks/pluginStartupCheck-1.0.4-avqbmty1.mjs +1 -0
- package/dist/chunks/plugins-1.0.4-h4238mxy.mjs +9 -0
- package/dist/chunks/preActionHook-1.0.4-hkk5ypj1.mjs +2 -0
- package/dist/chunks/print-1.0.4-zg0pxx71.mjs +57 -0
- package/dist/chunks/privacy-settings-1.0.4-7td5d9xf.mjs +1 -0
- package/dist/chunks/process-1.0.4-trh5g80m.mjs +1 -0
- package/dist/chunks/processBashCommand-1.0.4-vhq5y4b0.mjs +1 -0
- package/dist/chunks/processSlashCommand-1.0.4-27w0dvzd.mjs +9 -0
- package/dist/chunks/prompt-1.0.4-1j8n4q6b.mjs +1 -0
- package/dist/chunks/prompt-1.0.4-p1dmdqgx.mjs +1 -0
- package/dist/chunks/prompts-1.0.4-an41ccab.mjs +1 -0
- package/dist/chunks/protocolHandler-1.0.4-6pyn2eqy.mjs +13 -0
- package/dist/chunks/provider-1.0.4-xz9x5xsf.mjs +2 -0
- package/dist/chunks/providerProfiles-1.0.4-qmtqnwxj.mjs +1 -0
- package/dist/chunks/providerValidation-1.0.4-5yhz71te.mjs +6 -0
- package/dist/chunks/rate-limit-options-1.0.4-71w1mhp8.mjs +1 -0
- package/dist/chunks/registerSubcommands-1.0.4-k68vcvz1.mjs +34 -0
- package/dist/chunks/registry-1.0.4-5am2gh2r.mjs +1 -0
- package/dist/chunks/release-notes-1.0.4-72dkmwym.mjs +5 -0
- package/dist/chunks/reload-plugins-1.0.4-6eyjpyz7.mjs +2 -0
- package/dist/chunks/remote-env-1.0.4-6a8j2qxd.mjs +1 -0
- package/dist/chunks/remoteBridgeCore-1.0.4-ddgvhxxp.mjs +1 -0
- package/dist/chunks/remoteSession-1.0.4-3eztyv3e.mjs +1 -0
- package/dist/chunks/rename-1.0.4-te7rrrfc.mjs +1 -0
- package/dist/chunks/replBridgeHandle-1.0.4-16sm66q5.mjs +1 -0
- package/dist/chunks/replLauncher-1.0.4-mt8zvgft.mjs +1 -0
- package/dist/chunks/resume-1.0.4-sya6c2c8.mjs +2 -0
- package/dist/chunks/rewind-1.0.4-v0yww1mv.mjs +1 -0
- package/dist/chunks/rootOptions-1.0.4-t1drtsae.mjs +1 -0
- package/dist/chunks/sandbox-adapter-1.0.4-q641tp0g.mjs +1 -0
- package/dist/chunks/sandbox-toggle-1.0.4-c1033f07.mjs +1 -0
- package/dist/chunks/session-1.0.4-4fb52nd1.mjs +2 -0
- package/dist/chunks/sessionDiscovery-1.0.4-0e0rnehv.mjs +1 -0
- package/dist/chunks/sessionFileAccessHooks-1.0.4-vk3q8gh9.mjs +1 -0
- package/dist/chunks/sessionStorage-1.0.4-eh1zevz7.mjs +1 -0
- package/dist/chunks/settings-1.0.4-0jpahg4j.mjs +1 -0
- package/dist/chunks/setup-1.0.4-p9hdn98q.mjs +5 -0
- package/dist/chunks/sinks-1.0.4-hs2rw9fa.mjs +1 -0
- package/dist/chunks/skills-1.0.4-www28gn6.mjs +1 -0
- package/dist/chunks/startupProfiler-1.0.4-tngewr6e.mjs +1 -0
- package/dist/chunks/startupUpdateCheck-1.0.4-w114jwx9.mjs +1 -0
- package/dist/chunks/state-1.0.4-w3xv2kmh.mjs +1 -0
- package/dist/chunks/stats-1.0.4-3vm0apd0.mjs +6 -0
- package/dist/chunks/status-1.0.4-zymfx8mp.mjs +1 -0
- package/dist/chunks/stickers-1.0.4-jwgnam2a.mjs +1 -0
- package/dist/chunks/subprocessEnv-1.0.4-3vgqj8gm.mjs +1 -0
- package/dist/chunks/tasks-1.0.4-hy7y09mg.mjs +1 -0
- package/dist/chunks/teamHelpers-1.0.4-53nq46v0.mjs +1 -0
- package/dist/chunks/teammateModeSnapshot-1.0.4-3wmvsb1r.mjs +1 -0
- package/dist/chunks/teleport-1.0.4-x93h61td.mjs +1 -0
- package/dist/chunks/terminalSetup-1.0.4-fh0en1t5.mjs +1 -0
- package/dist/chunks/theme-1.0.4-wr0m9bga.mjs +1 -0
- package/dist/chunks/thinkback-1.0.4-75kht0mq.mjs +1 -0
- package/dist/chunks/thinkback-play-1.0.4-1b1645q9.mjs +1 -0
- package/dist/chunks/toolPool-1.0.4-q895eqqt.mjs +1 -0
- package/dist/chunks/toolSearch-1.0.4-3247wmxa.mjs +1 -0
- package/dist/chunks/tools-1.0.4-606qnn5t.mjs +1 -0
- package/dist/chunks/trustedDevice-1.0.4-c2380whv.mjs +1 -0
- package/dist/chunks/turndown.cjs-1.0.4-43jppw9w.mjs +69 -0
- package/dist/chunks/types-1.0.4-1kpkjthf.mjs +1 -0
- package/dist/chunks/ultrareviewCommand-1.0.4-5v4tpqbq.mjs +4 -0
- package/dist/chunks/update-1.0.4-0hj0c9x8.mjs +86 -0
- package/dist/chunks/upgrade-1.0.4-sfxyr5z4.mjs +1 -0
- package/dist/chunks/upload-1.0.4-bcjf0cbz.mjs +7 -0
- package/dist/chunks/upstreamproxy-1.0.4-t76haqj3.mjs +14 -0
- package/dist/chunks/url-handler-napi-1.0.4-nn0e71sf.mjs +1 -0
- package/dist/chunks/usage-1.0.4-hh2n5we9.mjs +1 -0
- package/dist/chunks/util-1.0.4-3cjy2f82.mjs +1 -0
- package/dist/chunks/utils-1.0.4-3cv1bh5y.mjs +1 -0
- package/dist/chunks/vim-1.0.4-26wbsc0p.mjs +1 -0
- package/dist/chunks/watcher-1.0.4-ygqk3k29.mjs +1 -0
- package/dist/chunks/wiki-1.0.4-jdevf4fv.mjs +132 -0
- package/dist/chunks/workflows-1.0.4-mg9ts0qs.mjs +1 -0
- package/dist/chunks/worktree-1.0.4-6849hcw1.mjs +1 -0
- package/dist/chunks/worktreeModeEnabled-1.0.4-3m5c48st.mjs +1 -0
- package/dist/chunks/wrapper-1.0.4-4czm72m1.mjs +7 -0
- package/dist/cli.mjs +2 -2
- package/package.json +9 -9
- package/dist/chunks/AgentTool-1.0.3-7mvf1vaw.mjs +0 -1
- package/dist/chunks/App-1.0.3-rd1a3qee.mjs +0 -1
- package/dist/chunks/ApproveApiKey-1.0.3-1kr4x8qz.mjs +0 -1
- package/dist/chunks/AssistantSessionChooser-1.0.3-6cmgq2a9.mjs +0 -1
- package/dist/chunks/AutoModeOptInDialog-1.0.3-jezz3mfx.mjs +0 -1
- package/dist/chunks/BypassPermissionsModeDialog-1.0.3-y7vw80jm.mjs +0 -1
- package/dist/chunks/ClaudeMdExternalIncludesDialog-1.0.3-rs8yq1c5.mjs +0 -1
- package/dist/chunks/ConsoleOAuthFlow-1.0.3-55e4vff7.mjs +0 -1
- package/dist/chunks/DiffDialog-1.0.3-2b6eqw5g.mjs +0 -7
- package/dist/chunks/Doctor-1.0.3-6vjhs9b3.mjs +0 -1
- package/dist/chunks/ExplorerDialog-1.0.3-me5rpqw8.mjs +0 -6
- package/dist/chunks/Grove-1.0.3-axq3s1g5.mjs +0 -1
- package/dist/chunks/ITermBackend-1.0.3-6w5z9f9y.mjs +0 -1
- package/dist/chunks/InvalidConfigDialog-1.0.3-q3qy4tjv.mjs +0 -1
- package/dist/chunks/InvalidSettingsDialog-1.0.3-7bnq71sp.mjs +0 -1
- package/dist/chunks/MigrationDialog-1.0.3-xjk5h2s1.mjs +0 -1
- package/dist/chunks/Onboarding-1.0.3-93mejgdx.mjs +0 -1
- package/dist/chunks/ProviderManager-1.0.3-gstyvce6.mjs +0 -1
- package/dist/chunks/REPL-1.0.3-h7gm3vzm.mjs +0 -1
- package/dist/chunks/ResumeConversation-1.0.3-q1sb18zb.mjs +0 -1
- package/dist/chunks/SnapshotUpdateDialog-1.0.3-ng8qnwzb.mjs +0 -1
- package/dist/chunks/TeleportProgress-1.0.3-5p8450wg.mjs +0 -1
- package/dist/chunks/TeleportRepoMismatchDialog-1.0.3-emssa846.mjs +0 -1
- package/dist/chunks/TeleportResumeWrapper-1.0.3-pdnj8z74.mjs +0 -1
- package/dist/chunks/TmuxBackend-1.0.3-qw12jfae.mjs +0 -9
- package/dist/chunks/ToolSearchTool-1.0.3-p2fdhkr4.mjs +0 -1
- package/dist/chunks/TrustDialog-1.0.3-w1yd56gg.mjs +0 -1
- package/dist/chunks/activeProvider-1.0.3-hcr43mtn.mjs +0 -1
- package/dist/chunks/add-dir-1.0.3-cfd5fdz5.mjs +0 -1
- package/dist/chunks/agentTypes-1.0.3-rhr2n817.mjs +0 -1
- package/dist/chunks/agents-1.0.3-00vpd5nr.mjs +0 -110
- package/dist/chunks/agents-1.0.3-0qny02r7.mjs +0 -3
- package/dist/chunks/api-1.0.3-j9q39zt3.mjs +0 -1
- package/dist/chunks/asciicast-1.0.3-4rdpqkbh.mjs +0 -1
- package/dist/chunks/assistant-1.0.3-8swg0237.mjs +0 -1
- package/dist/chunks/auth-1.0.3-4d3vbcf3.mjs +0 -1
- package/dist/chunks/auth-1.0.3-se4vwfcj.mjs +0 -1
- package/dist/chunks/autoMode-1.0.3-32zd86wp.mjs +0 -48
- package/dist/chunks/autoUpdater-1.0.3-nda09wdz.mjs +0 -1
- package/dist/chunks/backgroundHousekeeping-1.0.3-rwrt9v08.mjs +0 -1
- package/dist/chunks/branch-1.0.3-tzbvkn13.mjs +0 -4
- package/dist/chunks/bridge-1.0.3-fsq0q4x5.mjs +0 -2
- package/dist/chunks/bridgeConfig-1.0.3-16bw4j5m.mjs +0 -1
- package/dist/chunks/bridgeEnabled-1.0.3-2md5ck83.mjs +0 -1
- package/dist/chunks/bridgeMain-1.0.3-betf2hdx.mjs +0 -88
- package/dist/chunks/bridgePointer-1.0.3-mtfty38e.mjs +0 -1
- package/dist/chunks/btw-1.0.3-7vqng7en.mjs +0 -1
- package/dist/chunks/buddy-1.0.3-k48yw852.mjs +0 -3
- package/dist/chunks/cacache-1.0.3-y014wcx7.mjs +0 -1
- package/dist/chunks/cache-probe-1.0.3-vw577099.mjs +0 -21
- package/dist/chunks/cacheStats-1.0.3-2dj0n9cy.mjs +0 -4
- package/dist/chunks/caches-1.0.3-syrefgh1.mjs +0 -1
- package/dist/chunks/claudeDesktop-1.0.3-1k9dgm8c.mjs +0 -1
- package/dist/chunks/claudemd-1.0.3-902h9g16.mjs +0 -1
- package/dist/chunks/clear-1.0.3-yfnxvynd.mjs +0 -1
- package/dist/chunks/clearTerminal-1.0.3-kxq1nevx.mjs +0 -1
- package/dist/chunks/cli-1.0.3-02ax2rf7.mjs +0 -2
- package/dist/chunks/cli-1.0.3-087x46pf.mjs +0 -2
- package/dist/chunks/cli-1.0.3-0e99ksxk.mjs +0 -2
- package/dist/chunks/cli-1.0.3-0tgbymg8.mjs +0 -2
- package/dist/chunks/cli-1.0.3-0x26wvgj.mjs +0 -1
- package/dist/chunks/cli-1.0.3-0x2am4t7.mjs +0 -2
- package/dist/chunks/cli-1.0.3-10cqqc79.mjs +0 -2
- package/dist/chunks/cli-1.0.3-13m8868e.mjs +0 -2
- package/dist/chunks/cli-1.0.3-13wf4a0v.mjs +0 -2
- package/dist/chunks/cli-1.0.3-1462khnb.mjs +0 -3
- package/dist/chunks/cli-1.0.3-17cer107.mjs +0 -2
- package/dist/chunks/cli-1.0.3-19d1ckqm.mjs +0 -4
- package/dist/chunks/cli-1.0.3-1f00zm8y.mjs +0 -2
- package/dist/chunks/cli-1.0.3-1grrrgvh.mjs +0 -4
- package/dist/chunks/cli-1.0.3-1h08z2rm.mjs +0 -2
- package/dist/chunks/cli-1.0.3-1m413b59.mjs +0 -2
- package/dist/chunks/cli-1.0.3-1psnx21q.mjs +0 -2
- package/dist/chunks/cli-1.0.3-1v65dc93.mjs +0 -2
- package/dist/chunks/cli-1.0.3-1w2x2m43.mjs +0 -2
- package/dist/chunks/cli-1.0.3-24y7s5hp.mjs +0 -2
- package/dist/chunks/cli-1.0.3-2aw6f2z9.mjs +0 -2
- package/dist/chunks/cli-1.0.3-2h7k9bdx.mjs +0 -2
- package/dist/chunks/cli-1.0.3-2wzvc8te.mjs +0 -5471
- package/dist/chunks/cli-1.0.3-2zpv5t2p.mjs +0 -2
- package/dist/chunks/cli-1.0.3-3gkwhy62.mjs +0 -2
- package/dist/chunks/cli-1.0.3-3gtteknj.mjs +0 -2
- package/dist/chunks/cli-1.0.3-3j050hfw.mjs +0 -3
- package/dist/chunks/cli-1.0.3-3qfh5ykd.mjs +0 -2
- package/dist/chunks/cli-1.0.3-3wcccg4j.mjs +0 -2
- package/dist/chunks/cli-1.0.3-3wpp9k2f.mjs +0 -3
- package/dist/chunks/cli-1.0.3-3y945bqk.mjs +0 -2
- package/dist/chunks/cli-1.0.3-4eym93f1.mjs +0 -2
- package/dist/chunks/cli-1.0.3-4m0kzrq4.mjs +0 -199
- package/dist/chunks/cli-1.0.3-4qaa3xp4.mjs +0 -2
- package/dist/chunks/cli-1.0.3-4s8hd1qa.mjs +0 -12
- package/dist/chunks/cli-1.0.3-4x2bjq7b.mjs +0 -2
- package/dist/chunks/cli-1.0.3-5hpdm52h.mjs +0 -4
- package/dist/chunks/cli-1.0.3-5j5mv1qy.mjs +0 -2
- package/dist/chunks/cli-1.0.3-5kneybr4.mjs +0 -2
- package/dist/chunks/cli-1.0.3-5psnr7wf.mjs +0 -16
- package/dist/chunks/cli-1.0.3-5rg4rmk2.mjs +0 -6
- package/dist/chunks/cli-1.0.3-5w74xeth.mjs +0 -3
- package/dist/chunks/cli-1.0.3-607t5t97.mjs +0 -2
- package/dist/chunks/cli-1.0.3-627y4tma.mjs +0 -2
- package/dist/chunks/cli-1.0.3-63tn3q21.mjs +0 -2
- package/dist/chunks/cli-1.0.3-63xjee3t.mjs +0 -3
- package/dist/chunks/cli-1.0.3-6sgbgf1x.mjs +0 -4
- package/dist/chunks/cli-1.0.3-6x84yw4b.mjs +0 -21
- package/dist/chunks/cli-1.0.3-7ecz7qjw.mjs +0 -2
- package/dist/chunks/cli-1.0.3-7m0nfffq.mjs +0 -2
- package/dist/chunks/cli-1.0.3-7m2f8bwk.mjs +0 -2
- package/dist/chunks/cli-1.0.3-7p7gfek3.mjs +0 -3
- package/dist/chunks/cli-1.0.3-82ky54w7.mjs +0 -15
- package/dist/chunks/cli-1.0.3-87me6r9c.mjs +0 -2
- package/dist/chunks/cli-1.0.3-8a694ts0.mjs +0 -6
- package/dist/chunks/cli-1.0.3-8bz64j3f.mjs +0 -2
- package/dist/chunks/cli-1.0.3-8hw15ers.mjs +0 -2
- package/dist/chunks/cli-1.0.3-8rjp7dng.mjs +0 -2
- package/dist/chunks/cli-1.0.3-960aw98y.mjs +0 -2
- package/dist/chunks/cli-1.0.3-9xcgbd0g.mjs +0 -2
- package/dist/chunks/cli-1.0.3-9z1asbvz.mjs +0 -3
- package/dist/chunks/cli-1.0.3-a3rf1bbw.mjs +0 -2
- package/dist/chunks/cli-1.0.3-a630qcdb.mjs +0 -2
- package/dist/chunks/cli-1.0.3-ancybhm3.mjs +0 -2
- package/dist/chunks/cli-1.0.3-apbdyngz.mjs +0 -2
- package/dist/chunks/cli-1.0.3-ar488ss1.mjs +0 -2
- package/dist/chunks/cli-1.0.3-ar8bq7h9.mjs +0 -4
- package/dist/chunks/cli-1.0.3-ax2geagm.mjs +0 -18
- package/dist/chunks/cli-1.0.3-axzmfbvp.mjs +0 -2
- package/dist/chunks/cli-1.0.3-ay89chqh.mjs +0 -2
- package/dist/chunks/cli-1.0.3-b14b158b.mjs +0 -2
- package/dist/chunks/cli-1.0.3-b6f61s9v.mjs +0 -2
- package/dist/chunks/cli-1.0.3-b72086ew.mjs +0 -2
- package/dist/chunks/cli-1.0.3-b7n67qhm.mjs +0 -24
- package/dist/chunks/cli-1.0.3-bct9r8s9.mjs +0 -25
- package/dist/chunks/cli-1.0.3-bg3frggm.mjs +0 -5
- package/dist/chunks/cli-1.0.3-bkdmbm3w.mjs +0 -2
- package/dist/chunks/cli-1.0.3-bnd3wvym.mjs +0 -2
- package/dist/chunks/cli-1.0.3-bqdxh2fe.mjs +0 -2
- package/dist/chunks/cli-1.0.3-bte3v6bp.mjs +0 -3
- package/dist/chunks/cli-1.0.3-c38hr99q.mjs +0 -2
- package/dist/chunks/cli-1.0.3-c4trbm3y.mjs +0 -2
- package/dist/chunks/cli-1.0.3-c570dde7.mjs +0 -24
- package/dist/chunks/cli-1.0.3-ca8qx0d6.mjs +0 -2
- package/dist/chunks/cli-1.0.3-cnb1yved.mjs +0 -2
- package/dist/chunks/cli-1.0.3-cs5pqncv.mjs +0 -2
- package/dist/chunks/cli-1.0.3-cty1pfv3.mjs +0 -2
- package/dist/chunks/cli-1.0.3-d7597p9k.mjs +0 -133
- package/dist/chunks/cli-1.0.3-d8zhnzt9.mjs +0 -2
- package/dist/chunks/cli-1.0.3-djd4asp9.mjs +0 -25
- package/dist/chunks/cli-1.0.3-dyh4d1gw.mjs +0 -2
- package/dist/chunks/cli-1.0.3-e0s97hx3.mjs +0 -20
- package/dist/chunks/cli-1.0.3-e1qcabjm.mjs +0 -2
- package/dist/chunks/cli-1.0.3-e26nnnjx.mjs +0 -2
- package/dist/chunks/cli-1.0.3-e315jy0y.mjs +0 -2
- package/dist/chunks/cli-1.0.3-ejb4xe2y.mjs +0 -2
- package/dist/chunks/cli-1.0.3-em2a0n4h.mjs +0 -2
- package/dist/chunks/cli-1.0.3-emmwm5h6.mjs +0 -2
- package/dist/chunks/cli-1.0.3-epk9wqmc.mjs +0 -2
- package/dist/chunks/cli-1.0.3-eqxge5cb.mjs +0 -45
- package/dist/chunks/cli-1.0.3-eta6q17m.mjs +0 -2
- package/dist/chunks/cli-1.0.3-exj8yag8.mjs +0 -2
- package/dist/chunks/cli-1.0.3-f2qcezq1.mjs +0 -2
- package/dist/chunks/cli-1.0.3-f8ekk6mr.mjs +0 -2
- package/dist/chunks/cli-1.0.3-fdd1g4sk.mjs +0 -2
- package/dist/chunks/cli-1.0.3-fdye5tvt.mjs +0 -2
- package/dist/chunks/cli-1.0.3-g5w729g4.mjs +0 -2
- package/dist/chunks/cli-1.0.3-gbhfrtsf.mjs +0 -2
- package/dist/chunks/cli-1.0.3-gjvc6q8v.mjs +0 -2
- package/dist/chunks/cli-1.0.3-gpjv1akn.mjs +0 -12
- package/dist/chunks/cli-1.0.3-gthgjdv8.mjs +0 -2
- package/dist/chunks/cli-1.0.3-gwdntjh3.mjs +0 -2
- package/dist/chunks/cli-1.0.3-h2pjt4e4.mjs +0 -4
- package/dist/chunks/cli-1.0.3-hg04k516.mjs +0 -3
- package/dist/chunks/cli-1.0.3-hgghr2w8.mjs +0 -2
- package/dist/chunks/cli-1.0.3-htx4273d.mjs +0 -39
- package/dist/chunks/cli-1.0.3-hyc32vmv.mjs +0 -2
- package/dist/chunks/cli-1.0.3-hz5a6e6w.mjs +0 -2
- package/dist/chunks/cli-1.0.3-j62yk6x8.mjs +0 -2
- package/dist/chunks/cli-1.0.3-j72ztden.mjs +0 -2
- package/dist/chunks/cli-1.0.3-j99s8jgs.mjs +0 -2
- package/dist/chunks/cli-1.0.3-jmvq43wb.mjs +0 -6
- package/dist/chunks/cli-1.0.3-jr2ya39g.mjs +0 -2
- package/dist/chunks/cli-1.0.3-k99msp02.mjs +0 -17
- package/dist/chunks/cli-1.0.3-kesrsh8z.mjs +0 -59
- package/dist/chunks/cli-1.0.3-khw95075.mjs +0 -2
- package/dist/chunks/cli-1.0.3-km8m7h3t.mjs +0 -2
- package/dist/chunks/cli-1.0.3-kwe8av2x.mjs +0 -2
- package/dist/chunks/cli-1.0.3-m45p13pd.mjs +0 -2
- package/dist/chunks/cli-1.0.3-mkse8qp1.mjs +0 -3
- package/dist/chunks/cli-1.0.3-mv5a0w14.mjs +0 -12
- package/dist/chunks/cli-1.0.3-n0jxa1cv.mjs +0 -4
- package/dist/chunks/cli-1.0.3-n28tqrv0.mjs +0 -2
- package/dist/chunks/cli-1.0.3-n2h9jvgm.mjs +0 -2
- package/dist/chunks/cli-1.0.3-n99q1npz.mjs +0 -2
- package/dist/chunks/cli-1.0.3-n9tzv3mz.mjs +0 -2
- package/dist/chunks/cli-1.0.3-nama3pwj.mjs +0 -7
- package/dist/chunks/cli-1.0.3-nm63mrtv.mjs +0 -2
- package/dist/chunks/cli-1.0.3-nr5rgce9.mjs +0 -2
- package/dist/chunks/cli-1.0.3-ntywpqre.mjs +0 -2
- package/dist/chunks/cli-1.0.3-nw89kd8a.mjs +0 -2
- package/dist/chunks/cli-1.0.3-p7nbs20a.mjs +0 -24
- package/dist/chunks/cli-1.0.3-pc93arct.mjs +0 -10
- package/dist/chunks/cli-1.0.3-pf8dk52a.mjs +0 -67
- package/dist/chunks/cli-1.0.3-phh30dq0.mjs +0 -4
- package/dist/chunks/cli-1.0.3-pxw9n4f7.mjs +0 -5
- package/dist/chunks/cli-1.0.3-q4vc2dm9.mjs +0 -3
- package/dist/chunks/cli-1.0.3-q6m5azm3.mjs +0 -2
- package/dist/chunks/cli-1.0.3-q9hw6148.mjs +0 -2
- package/dist/chunks/cli-1.0.3-qd5c6ph5.mjs +0 -34
- package/dist/chunks/cli-1.0.3-qkkqjcsh.mjs +0 -2
- package/dist/chunks/cli-1.0.3-r274tqxg.mjs +0 -2
- package/dist/chunks/cli-1.0.3-r2amtv3x.mjs +0 -3
- package/dist/chunks/cli-1.0.3-ra9brq66.mjs +0 -2
- package/dist/chunks/cli-1.0.3-rapppvd0.mjs +0 -2
- package/dist/chunks/cli-1.0.3-rc9yjwv4.mjs +0 -15
- package/dist/chunks/cli-1.0.3-rfvvw9yn.mjs +0 -58
- package/dist/chunks/cli-1.0.3-rhaqdnqw.mjs +0 -2
- package/dist/chunks/cli-1.0.3-rpry44n3.mjs +0 -2
- package/dist/chunks/cli-1.0.3-rxtfhp4n.mjs +0 -2
- package/dist/chunks/cli-1.0.3-ryfy7hya.mjs +0 -2
- package/dist/chunks/cli-1.0.3-s6n9xdgm.mjs +0 -5
- package/dist/chunks/cli-1.0.3-sb9pchh2.mjs +0 -6
- package/dist/chunks/cli-1.0.3-sz2d376e.mjs +0 -2
- package/dist/chunks/cli-1.0.3-t52dqqw2.mjs +0 -2
- package/dist/chunks/cli-1.0.3-t7mfsbh1.mjs +0 -133
- package/dist/chunks/cli-1.0.3-t7p3714v.mjs +0 -2
- package/dist/chunks/cli-1.0.3-tjewxa84.mjs +0 -2
- package/dist/chunks/cli-1.0.3-v0jtfqtw.mjs +0 -9
- package/dist/chunks/cli-1.0.3-v658mswv.mjs +0 -12
- package/dist/chunks/cli-1.0.3-vnwqmpyv.mjs +0 -2
- package/dist/chunks/cli-1.0.3-vqm63ckk.mjs +0 -2
- package/dist/chunks/cli-1.0.3-vr8tazcf.mjs +0 -2
- package/dist/chunks/cli-1.0.3-vw5m6hn3.mjs +0 -3
- package/dist/chunks/cli-1.0.3-w3a4tnk3.mjs +0 -2
- package/dist/chunks/cli-1.0.3-w72bc0zg.mjs +0 -2
- package/dist/chunks/cli-1.0.3-w9dcn8sx.mjs +0 -2
- package/dist/chunks/cli-1.0.3-wf8jkyyp.mjs +0 -15
- package/dist/chunks/cli-1.0.3-wmtj5kj7.mjs +0 -2
- package/dist/chunks/cli-1.0.3-wpb05eg5.mjs +0 -50
- package/dist/chunks/cli-1.0.3-wv4vx65k.mjs +0 -2
- package/dist/chunks/cli-1.0.3-x1ngfkk5.mjs +0 -42
- package/dist/chunks/cli-1.0.3-xarnzm58.mjs +0 -2
- package/dist/chunks/cli-1.0.3-xf2r8496.mjs +0 -2
- package/dist/chunks/cli-1.0.3-xqmjjmss.mjs +0 -4
- package/dist/chunks/cli-1.0.3-xsmba4r1.mjs +0 -17
- package/dist/chunks/cli-1.0.3-xw1fyqpe.mjs +0 -2
- package/dist/chunks/cli-1.0.3-y0fz9qyb.mjs +0 -4
- package/dist/chunks/cli-1.0.3-yb5yjqa8.mjs +0 -2
- package/dist/chunks/cli-1.0.3-ycvmgeh4.mjs +0 -2
- package/dist/chunks/cli-1.0.3-ykkvdac6.mjs +0 -2
- package/dist/chunks/cli-1.0.3-ynf2sj5r.mjs +0 -2
- package/dist/chunks/cli-1.0.3-z3c0nwg5.mjs +0 -2
- package/dist/chunks/cli-1.0.3-z3f4pmp1.mjs +0 -2
- package/dist/chunks/cli-1.0.3-zan6y0m1.mjs +0 -18
- package/dist/chunks/cli-1.0.3-zfe21fjj.mjs +0 -2
- package/dist/chunks/cli-1.0.3-znxwm9ta.mjs +0 -2
- package/dist/chunks/cli-1.0.3-zqp5x3gh.mjs +0 -18
- package/dist/chunks/cli-1.0.3-ztgxqn0g.mjs +0 -8
- package/dist/chunks/cli-1.0.3-zzg0y9xx.mjs +0 -2
- package/dist/chunks/client-1.0.3-qkqk8q23.mjs +0 -1
- package/dist/chunks/color-1.0.3-x0qygswm.mjs +0 -1
- package/dist/chunks/compact-1.0.3-kyfmj07z.mjs +0 -3
- package/dist/chunks/config-1.0.3-0b1mgzs5.mjs +0 -1
- package/dist/chunks/config-1.0.3-nmpdbdfy.mjs +0 -1
- package/dist/chunks/constants-1.0.3-wk9v349h.mjs +0 -1
- package/dist/chunks/context-1.0.3-6sarjqp3.mjs +0 -1
- package/dist/chunks/context-noninteractive-1.0.3-vs9yx061.mjs +0 -1
- package/dist/chunks/conversation-1.0.3-v4s0g3dx.mjs +0 -1
- package/dist/chunks/copilotHeaders-1.0.3-5vdf973f.mjs +0 -1
- package/dist/chunks/copy-1.0.3-575pc6gc.mjs +0 -9
- package/dist/chunks/cost-1.0.3-gkgmq84a.mjs +0 -1
- package/dist/chunks/createSSHSession-1.0.3-bsdf1x69.mjs +0 -1
- package/dist/chunks/createSession-1.0.3-q2t2afxn.mjs +0 -1
- package/dist/chunks/debug-1.0.3-q3y4bbdd.mjs +0 -1
- package/dist/chunks/defaultActionDeps-1.0.3-kxgwjas7.mjs +0 -1446
- package/dist/chunks/desktop-1.0.3-v790cfzv.mjs +0 -1
- package/dist/chunks/detectRepository-1.0.3-t6x6ycq0.mjs +0 -1
- package/dist/chunks/detection-1.0.3-3r29qbs1.mjs +0 -1
- package/dist/chunks/diff-1.0.3-43a1txqm.mjs +0 -1
- package/dist/chunks/doctor-1.0.3-ywj8c1z9.mjs +0 -1
- package/dist/chunks/doctorDiagnostic-1.0.3-c3f3hz3m.mjs +0 -1
- package/dist/chunks/earlyInput-1.0.3-0qxwnkvm.mjs +0 -1
- package/dist/chunks/effort-1.0.3-28cxc122.mjs +0 -10
- package/dist/chunks/engine-1.0.3-y0pybv8z.mjs +0 -1
- package/dist/chunks/envLessBridgeConfig-1.0.3-gv54g11x.mjs +0 -1
- package/dist/chunks/envUtils-1.0.3-cjfgncek.mjs +0 -1
- package/dist/chunks/environmentSelection-1.0.3-c2qe9j1s.mjs +0 -1
- package/dist/chunks/environments-1.0.3-cvrm8nvn.mjs +0 -1
- package/dist/chunks/errors-1.0.3-jzcpdeb5.mjs +0 -1
- package/dist/chunks/exampleCommands-1.0.3-kjfprmrt.mjs +0 -1
- package/dist/chunks/exit-1.0.3-fbms8wkm.mjs +0 -1
- package/dist/chunks/explorer-1.0.3-8k5jhgjf.mjs +0 -1
- package/dist/chunks/export-1.0.3-4r98t7vv.mjs +0 -2
- package/dist/chunks/extra-usage-1.0.3-m17gcwmh.mjs +0 -1
- package/dist/chunks/extra-usage-noninteractive-1.0.3-papt6k1h.mjs +0 -1
- package/dist/chunks/fast-1.0.3-4atx5cja.mjs +0 -1
- package/dist/chunks/feedback-1.0.3-n2sjaka5.mjs +0 -14
- package/dist/chunks/firstPartyEventLogger-1.0.3-3ew36pwn.mjs +0 -1
- package/dist/chunks/git-1.0.3-tpyzsser.mjs +0 -1
- package/dist/chunks/githubModelsCredentials-1.0.3-a3scfsy1.mjs +0 -1
- package/dist/chunks/goal-1.0.3-rd7mxw5e.mjs +0 -4
- package/dist/chunks/grove-1.0.3-bwz91hx8.mjs +0 -1
- package/dist/chunks/growthbook-1.0.3-nr5dtynh.mjs +0 -1
- package/dist/chunks/headless-1.0.3-9kzxdtz3.mjs +0 -2
- package/dist/chunks/heapdump-1.0.3-hj74he6b.mjs +0 -6
- package/dist/chunks/help-1.0.3-e1qcej38.mjs +0 -1
- package/dist/chunks/hookChains-1.0.3-xtvdrx5t.mjs +0 -3
- package/dist/chunks/hooks-1.0.3-gfndfx5p.mjs +0 -79
- package/dist/chunks/hooks-1.0.3-mhatacpg.mjs +0 -1
- package/dist/chunks/ide-1.0.3-f60d1x9s.mjs +0 -3
- package/dist/chunks/image-processor-napi-1.0.3-crxm4gpq.mjs +0 -1
- package/dist/chunks/inboundAttachments-1.0.3-3b75nzd7.mjs +0 -1
- package/dist/chunks/index-1.0.3-15ym353c.mjs +0 -1
- package/dist/chunks/index-1.0.3-1tyen96a.mjs +0 -1
- package/dist/chunks/index-1.0.3-22c46a9g.mjs +0 -1
- package/dist/chunks/index-1.0.3-293khy5y.mjs +0 -1
- package/dist/chunks/index-1.0.3-3zrx6rcy.mjs +0 -1
- package/dist/chunks/index-1.0.3-4g5be32x.mjs +0 -5
- package/dist/chunks/index-1.0.3-5h227bav.mjs +0 -17
- package/dist/chunks/index-1.0.3-83nb50h7.mjs +0 -1
- package/dist/chunks/index-1.0.3-f3xy16k0.mjs +0 -1
- package/dist/chunks/index-1.0.3-fp6xhcab.mjs +0 -2
- package/dist/chunks/index-1.0.3-gecs01pd.mjs +0 -1
- package/dist/chunks/index-1.0.3-gwt3epj3.mjs +0 -30
- package/dist/chunks/index-1.0.3-gyr3x3wv.mjs +0 -9
- package/dist/chunks/index-1.0.3-j1rfqkax.mjs +0 -1
- package/dist/chunks/index-1.0.3-k6ze856z.mjs +0 -1
- package/dist/chunks/index-1.0.3-n8qxa0er.mjs +0 -1
- package/dist/chunks/index-1.0.3-pa0eqyya.mjs +0 -1
- package/dist/chunks/index-1.0.3-qacj9f9z.mjs +0 -1
- package/dist/chunks/index-1.0.3-tvpvnw2t.mjs +0 -1
- package/dist/chunks/index-1.0.3-w0d2skgw.mjs +0 -2
- package/dist/chunks/index-1.0.3-w6sndqyw.mjs +0 -9
- package/dist/chunks/index-1.0.3-z42381sj.mjs +0 -1
- package/dist/chunks/index-1.0.3-zfk75xdr.mjs +0 -1
- package/dist/chunks/init-1.0.3-1756vwh2.mjs +0 -1
- package/dist/chunks/initReplBridge-1.0.3-a00zpxtn.mjs +0 -1
- package/dist/chunks/ink-1.0.3-yq6e6m8b.mjs +0 -1
- package/dist/chunks/insights-1.0.3-4s3xgv9x.mjs +0 -870
- package/dist/chunks/install-1.0.3-zttqn1ez.mjs +0 -1
- package/dist/chunks/install-github-app-1.0.3-f0rmxqcw.mjs +0 -149
- package/dist/chunks/install-slack-app-1.0.3-sbd9833d.mjs +0 -1
- package/dist/chunks/instrumentation-1.0.3-hnskcn2k.mjs +0 -1
- package/dist/chunks/interactiveHelpers-1.0.3-t12dtkh1.mjs +0 -1
- package/dist/chunks/keybindings-1.0.3-retrpee2.mjs +0 -2
- package/dist/chunks/knowledge-1.0.3-gdpwz5kr.mjs +0 -2
- package/dist/chunks/latestVersionCache-1.0.3-kas0b0h1.mjs +0 -1
- package/dist/chunks/loadAgentsDir-1.0.3-wsevcydg.mjs +0 -1
- package/dist/chunks/loadPluginHooks-1.0.3-18zgr57f.mjs +0 -1
- package/dist/chunks/loadPluginHooks-1.0.3-2t4gydwe.mjs +0 -1
- package/dist/chunks/log-1.0.3-wzytzthn.mjs +0 -1
- package/dist/chunks/main-1.0.3-jzwehebm.mjs +0 -1
- package/dist/chunks/managedEnv-1.0.3-b8asa751.mjs +0 -1
- package/dist/chunks/mcp-1.0.3-aff6b6ct.mjs +0 -1
- package/dist/chunks/mcp-1.0.3-pjr3rvfk.mjs +0 -4
- package/dist/chunks/mcp-1.0.3-wfak1jpw.mjs +0 -17
- package/dist/chunks/mcpb-1.0.3-0s8ak7b1.mjs +0 -1
- package/dist/chunks/memory-1.0.3-esv79kf8.mjs +0 -3
- package/dist/chunks/model-1.0.3-9b4d36sd.mjs +0 -1
- package/dist/chunks/model-1.0.3-bh1t2s45.mjs +0 -2
- package/dist/chunks/node-1.0.3-gj4wsp3b.mjs +0 -12
- package/dist/chunks/oauth-1.0.3-q2zcdghm.mjs +0 -1
- package/dist/chunks/openaiShim-1.0.3-k03vgybb.mjs +0 -14
- package/dist/chunks/output-style-1.0.3-2vknbjw5.mjs +0 -1
- package/dist/chunks/package-ZZWOLTXM-1.0.3-g12q6fnk.mjs +0 -1
- package/dist/chunks/parseConnectUrl-1.0.3-7vrzj6hy.mjs +0 -1
- package/dist/chunks/parser-1.0.3-avw926ew.mjs +0 -1
- package/dist/chunks/passes-1.0.3-bgjyqscj.mjs +0 -1
- package/dist/chunks/permissions-1.0.3-8fj46mx3.mjs +0 -3
- package/dist/chunks/permissions-1.0.3-qpmk7fsa.mjs +0 -1
- package/dist/chunks/plan-1.0.3-emxq5t72.mjs +0 -1
- package/dist/chunks/plist-1.0.3-33z3k5gn.mjs +0 -1
- package/dist/chunks/plugin-1.0.3-eqxkeh3r.mjs +0 -29
- package/dist/chunks/pluginStartupCheck-1.0.3-3hbbay3q.mjs +0 -1
- package/dist/chunks/plugins-1.0.3-x021vefh.mjs +0 -9
- package/dist/chunks/preActionHook-1.0.3-5yyvhhra.mjs +0 -2
- package/dist/chunks/print-1.0.3-w721s1pr.mjs +0 -57
- package/dist/chunks/privacy-settings-1.0.3-v2vqkwdn.mjs +0 -1
- package/dist/chunks/process-1.0.3-xedhq816.mjs +0 -1
- package/dist/chunks/processBashCommand-1.0.3-mtgqq8k6.mjs +0 -1
- package/dist/chunks/processSlashCommand-1.0.3-2qxyq7z2.mjs +0 -9
- package/dist/chunks/prompt-1.0.3-3n87zkg4.mjs +0 -1
- package/dist/chunks/prompt-1.0.3-rt6xvwpb.mjs +0 -1
- package/dist/chunks/prompts-1.0.3-q1yewrxr.mjs +0 -1
- package/dist/chunks/protocolHandler-1.0.3-bsnsh8x6.mjs +0 -13
- package/dist/chunks/provider-1.0.3-gm23bmqy.mjs +0 -2
- package/dist/chunks/providerProfiles-1.0.3-cg05fwn8.mjs +0 -1
- package/dist/chunks/providerValidation-1.0.3-vma7539c.mjs +0 -6
- package/dist/chunks/rate-limit-options-1.0.3-q65cq335.mjs +0 -1
- package/dist/chunks/registerSubcommands-1.0.3-xv60j2ty.mjs +0 -34
- package/dist/chunks/registry-1.0.3-9n67m1rh.mjs +0 -1
- package/dist/chunks/release-notes-1.0.3-ves4zn7s.mjs +0 -5
- package/dist/chunks/reload-plugins-1.0.3-nj3rm6xw.mjs +0 -2
- package/dist/chunks/remote-env-1.0.3-ygbzc1qs.mjs +0 -1
- package/dist/chunks/remoteBridgeCore-1.0.3-z9c657ax.mjs +0 -1
- package/dist/chunks/remoteSession-1.0.3-7em2b627.mjs +0 -1
- package/dist/chunks/rename-1.0.3-090y3y3t.mjs +0 -1
- package/dist/chunks/replBridgeHandle-1.0.3-j72w7cv1.mjs +0 -1
- package/dist/chunks/replLauncher-1.0.3-jae5j1mr.mjs +0 -1
- package/dist/chunks/resume-1.0.3-b3yd0r0t.mjs +0 -2
- package/dist/chunks/rewind-1.0.3-qbxx991g.mjs +0 -1
- package/dist/chunks/rootOptions-1.0.3-5pvysebe.mjs +0 -1
- package/dist/chunks/sandbox-adapter-1.0.3-kzem4pfm.mjs +0 -1
- package/dist/chunks/sandbox-toggle-1.0.3-r0qyz4ph.mjs +0 -1
- package/dist/chunks/session-1.0.3-26qz9f9c.mjs +0 -2
- package/dist/chunks/sessionDiscovery-1.0.3-98fyhqzq.mjs +0 -1
- package/dist/chunks/sessionFileAccessHooks-1.0.3-g99vbb96.mjs +0 -1
- package/dist/chunks/sessionStorage-1.0.3-jbkq2y35.mjs +0 -1
- package/dist/chunks/settings-1.0.3-6hq9y9yg.mjs +0 -1
- package/dist/chunks/setup-1.0.3-8fxs3q79.mjs +0 -5
- package/dist/chunks/sinks-1.0.3-wjm4jwph.mjs +0 -1
- package/dist/chunks/skills-1.0.3-es2gwcs0.mjs +0 -1
- package/dist/chunks/startupProfiler-1.0.3-0zgy31z8.mjs +0 -1
- package/dist/chunks/startupUpdateCheck-1.0.3-17h3qh51.mjs +0 -1
- package/dist/chunks/state-1.0.3-7hxpebf0.mjs +0 -1
- package/dist/chunks/stats-1.0.3-mpa5ehmt.mjs +0 -6
- package/dist/chunks/status-1.0.3-3z7dn1ax.mjs +0 -1
- package/dist/chunks/stickers-1.0.3-mqdqscgw.mjs +0 -1
- package/dist/chunks/subprocessEnv-1.0.3-3zwx5k40.mjs +0 -1
- package/dist/chunks/tasks-1.0.3-fqyr9vwc.mjs +0 -1
- package/dist/chunks/teamHelpers-1.0.3-5rsk5yqn.mjs +0 -1
- package/dist/chunks/teammateModeSnapshot-1.0.3-v1270wf3.mjs +0 -1
- package/dist/chunks/teleport-1.0.3-4h0ww2kz.mjs +0 -1
- package/dist/chunks/terminalSetup-1.0.3-ern1ss4f.mjs +0 -1
- package/dist/chunks/theme-1.0.3-2zckbr2z.mjs +0 -1
- package/dist/chunks/thinkback-1.0.3-ckd0bxaf.mjs +0 -1
- package/dist/chunks/thinkback-play-1.0.3-6a53gc4n.mjs +0 -1
- package/dist/chunks/toolPool-1.0.3-w2xh8dvp.mjs +0 -1
- package/dist/chunks/toolSearch-1.0.3-w1f68ss0.mjs +0 -1
- package/dist/chunks/tools-1.0.3-7dyfg9gn.mjs +0 -1
- package/dist/chunks/trustedDevice-1.0.3-a34x8ydx.mjs +0 -1
- package/dist/chunks/turndown.cjs-1.0.3-jvqgvj65.mjs +0 -69
- package/dist/chunks/types-1.0.3-hrfpk0vp.mjs +0 -1
- package/dist/chunks/ultrareviewCommand-1.0.3-731x0mwt.mjs +0 -4
- package/dist/chunks/update-1.0.3-kxwpbp8h.mjs +0 -86
- package/dist/chunks/upgrade-1.0.3-0p7p2zsn.mjs +0 -1
- package/dist/chunks/upload-1.0.3-1fek6fh7.mjs +0 -7
- package/dist/chunks/upstreamproxy-1.0.3-g566qagg.mjs +0 -14
- package/dist/chunks/url-handler-napi-1.0.3-na9t0zcw.mjs +0 -1
- package/dist/chunks/usage-1.0.3-xdj3rkft.mjs +0 -1
- package/dist/chunks/util-1.0.3-5gfrxrz4.mjs +0 -1
- package/dist/chunks/utils-1.0.3-2mzjq8fj.mjs +0 -1
- package/dist/chunks/vim-1.0.3-9ckf66ks.mjs +0 -1
- package/dist/chunks/watcher-1.0.3-8pgwgknj.mjs +0 -1
- package/dist/chunks/wiki-1.0.3-hy2ve502.mjs +0 -132
- package/dist/chunks/workflows-1.0.3-phe0mv82.mjs +0 -1
- package/dist/chunks/worktree-1.0.3-pnma10rk.mjs +0 -1
- package/dist/chunks/worktreeModeEnabled-1.0.3-0hhtbd8p.mjs +0 -1
- package/dist/chunks/wrapper-1.0.3-jrm58k5e.mjs +0 -7
- /package/dist/chunks/{cli-1.0.3-43683395.mjs → cli-1.0.4-1eb2472e.mjs} +0 -0
- /package/dist/chunks/{cli-1.0.3-qf5pjy0v.mjs → cli-1.0.4-a2brsa8c.mjs} +0 -0
- /package/dist/chunks/{cli-1.0.3-adgwsvq3.mjs → cli-1.0.4-fyekx70j.mjs} +0 -0
- /package/dist/chunks/{cli-1.0.3-hn2qw1pk.mjs → cli-1.0.4-jrvveh6t.mjs} +0 -0
- /package/dist/chunks/{cli-1.0.3-25zd2770.mjs → cli-1.0.4-rh4j3s0t.mjs} +0 -0
- /package/dist/chunks/{cli-1.0.3-vzm5gxzn.mjs → cli-1.0.4-rhq4w2pj.mjs} +0 -0
- /package/dist/chunks/{cli-1.0.3-77dec30x.mjs → cli-1.0.4-sx5bf3zy.mjs} +0 -0
- /package/dist/chunks/{cli-1.0.3-cf280jvq.mjs → cli-1.0.4-zjh4h68p.mjs} +0 -0
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{LZ as v,MZ as Z,NZ as D,tZ as T,uZ as X,vZ as I,xZ as Y,yZ as p}from"./cli-1.0.3-kesrsh8z.mjs";import{O2 as P,Q2 as V}from"./cli-1.0.3-wv4vx65k.mjs";import{R2 as H}from"./cli-1.0.3-n9tzv3mz.mjs";import{mpa as F,vma as W}from"./cli-1.0.3-5kneybr4.mjs";import{Tqa as A,Xqa as C}from"./cli-1.0.3-vzm5gxzn.mjs";function B({children:_,ref:$,stickyScroll:g,...K}){let E=J.useRef(null),[,w]=J.useState(0),L=J.useRef(new Set),N=J.useRef(!1),U=()=>{for(let q of L.current)q()};function O(q){if(W(),T(q),Y(),U(),N.current)return;N.current=!0,queueMicrotask(()=>{N.current=!1,X(q)})}return J.useImperativeHandle($,()=>({scrollTo(q){let z=E.current;if(!z)return;z.stickyScroll=!1,z.pendingScrollDelta=void 0,z.scrollAnchor=void 0,z.scrollTop=Math.max(0,Math.floor(q)),O(z)},scrollToElement(q,z=0){let G=E.current;if(!G)return;G.stickyScroll=!1,G.pendingScrollDelta=void 0,G.scrollAnchor={el:q,offset:z},O(G)},scrollBy(q){let z=E.current;if(!z)return;z.stickyScroll=!1,z.scrollAnchor=void 0,z.pendingScrollDelta=(z.pendingScrollDelta??0)+Math.floor(q),O(z)},scrollToBottom(){let q=E.current;if(!q)return;q.pendingScrollDelta=void 0,q.stickyScroll=!0,T(q),U(),w((z)=>z+1)},getScrollTop(){return E.current?.scrollTop??0},getPendingDelta(){return E.current?.pendingScrollDelta??0},getScrollHeight(){return E.current?.scrollHeight??0},getFreshScrollHeight(){return E.current?.childNodes[0]?.yogaNode?.getComputedHeight()??E.current?.scrollHeight??0},getViewportHeight(){return E.current?.scrollViewportHeight??0},getViewportTop(){return E.current?.scrollViewportTop??0},isSticky(){let q=E.current;if(!q)return!1;return q.stickyScroll??Boolean(q.attributes.stickyScroll)},subscribe(q){return L.current.add(q),()=>L.current.delete(q)},setClampBounds(q,z){let G=E.current;if(!G)return;G.scrollClampMin=q,G.scrollClampMax=z}}),[]),P("ink-box",{ref:(q)=>{if(E.current=q,q)q.scrollTop??=0},style:{flexWrap:"nowrap",flexDirection:K.flexDirection??"row",flexGrow:K.flexGrow??0,flexShrink:K.flexShrink??1,...K,overflowX:"scroll",overflowY:"scroll"},...g?{stickyScroll:!0}:{},children:P(Z,{flexDirection:"column",flexGrow:1,flexShrink:0,width:"100%",children:_})})}var J,u;var M=C(()=>{F();I();p();v();D();V();J=A(H(),1);u=B});
|
|
2
|
-
export{u as Nh,M as Oh};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{Ei as a,Fi as l}from"./cli-1.0.3-epk9wqmc.mjs";import{Gi as m,Hi as c}from"./cli-1.0.3-0e99ksxk.mjs";import{O2 as e,Q2 as n}from"./cli-1.0.3-wv4vx65k.mjs";import{Xqa as s}from"./cli-1.0.3-vzm5gxzn.mjs";async function f(o,r){let t=await m();if(t.type==="message")return o(t.value),null;return e(a,{startingMessage:"Starting new login following /extra-usage. Exit with Ctrl-C to use existing account.",onDone:(i)=>{r.onChangeAPIKey(),o(i?"Login successful":"Login interrupted")}})}var g=s(()=>{l();c();n()});
|
|
2
|
-
export{f as Ci,g as Di};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import{Oqa as V_,Pqa as su,Rqa as K_,Sqa as f_}from"./cli-1.0.3-k99msp02.mjs";import{Vqa as H,Yqa as $_}from"./cli-1.0.3-vzm5gxzn.mjs";var W_=H((k_)=>{var z_=$_("node:stream"),v=V_(),K=f_(),q=K_(),m=(_)=>_?.body instanceof z_.Readable||typeof ReadableStream<"u"&&_?.body instanceof ReadableStream,G_=["AuthFailure","InvalidSignatureException","RequestExpired","RequestInTheFuture","RequestTimeTooSkewed","SignatureDoesNotMatch"],J_=["BandwidthLimitExceeded","EC2ThrottledException","LimitExceededException","PriorRequestNotComplete","ProvisionedThroughputExceededException","RequestLimitExceeded","RequestThrottled","RequestThrottledException","SlowDown","ThrottledException","Throttling","ThrottlingException","TooManyRequestsException","TransactionInProgressException"],X_=["TimeoutError","RequestTimeout","RequestTimeoutException"],C_=[500,502,503,504],d_=["ECONNRESET","ECONNREFUSED","EPIPE","ETIMEDOUT"],Z_=["EHOSTUNREACH","ENETUNREACH","ENOTFOUND"],A=(_)=>_?.$retryable!==void 0,p=(_)=>G_.includes(_.name),y=(_)=>_.$metadata?.clockSkewCorrected,s=(_)=>{let u=new Set(["Failed to fetch","NetworkError when attempting to fetch resource","The Internet connection appears to be offline","Load failed","Network request failed"]);if(!(_&&_ instanceof TypeError))return!1;return u.has(_.message)},J=(_)=>_.$metadata?.httpStatusCode===429||J_.includes(_.name)||_.$retryable?.throttling==!0,X=(_,u=0)=>A(_)||y(_)||_.name==="InvalidSignatureException"&&_.message?.includes("Signature expired")||X_.includes(_.name)||d_.includes(_?.code||"")||Z_.includes(_?.code||"")||C_.includes(_.$metadata?.httpStatusCode||0)||s(_)||o(_)||_.cause!==void 0&&u<=10&&X(_.cause,u+1),a=(_)=>{if(_.$metadata?.httpStatusCode!==void 0){let u=_.$metadata.httpStatusCode;if(500<=u&&u<=599&&!X(_))return!0;return!1}return!1};function o(_){return _.code==="ERR_HTTP2_STREAM_ERROR"&&_.message.includes("NGHTTP2_REFUSED_STREAM")}var e=100,Q=20000,t=500,Z=500,r=5,__=10,g=1,c="amz-sdk-invocation-id",w="amz-sdk-request";function u_(_,u){if(!K.HttpResponse.isInstance(_))return;for(let E of Object.keys(_.headers)){let O=E.toLowerCase();if(O==="retry-after"){let T=_.headers[E],b=NaN;if(T.endsWith("GMT"))try{b=(q.parseRfc7231DateTime(T).getTime()-Date.now())/1000}catch(L){u?.trace?.("Failed to parse retry-after header"),u?.trace?.(L)}else if(T.match(/ GMT, ((\d+)|(\d+\.\d+))$/))b=Number(T.match(/ GMT, ([\d.]+)$/)?.[1]);else if(T.match(/^((\d+)|(\d+\.\d+))$/))b=Number(T);else if(Date.parse(T)>=Date.now())b=(Date.parse(T)-Date.now())/1000;if(isNaN(b))return;return new Date(Date.now()+b*1000)}else if(O==="x-amz-retry-after"){let T=_.headers[E],b=Number(T);if(isNaN(b)){u?.trace?.(`Failed to parse x-amz-retry-after=${T}`);return}return new Date(Date.now()+b)}}}function H_(_,u){return u_(_,u)}var E_=(_)=>{if(_ instanceof Error)return _;if(_ instanceof Object)return Object.assign(Error(),_);if(typeof _==="string")return Error(_);return Error(`AWS SDK error wrapper for ${_}`)};function O_(_){return(u)=>(E,O)=>async(T)=>{let b=await u.retryStrategy(),L=await u.maxAttempts();if(Q_(b)){b=b;let N=await b.acquireInitialRetryToken((O.partition_id??"")+(O.__retryLongPoll?":longpoll":"")),j=Error(),Y=0,F=0,{request:I}=T,R=K.HttpRequest.isInstance(I);if(R)I.headers[c]=q.v4();while(!0)try{if(R)I.headers[w]=`attempt=${Y+1}; max=${L}`;let{response:V,output:z}=await E(T);return b.recordSuccess(N),z.$metadata.attempts=Y+1,z.$metadata.totalRetryDelay=F,{response:V,output:z}}catch(V){let z=c_(V,u.logger);if(j=E_(V),R&&_(I))throw(O.logger instanceof v.NoOpLogger?console:O.logger)?.warn("An error was encountered in a non-retryable streaming request."),j;try{N=await b.refreshRetryTokenForRetry(N,z)}catch(x){if(typeof x.$backoff==="number")await l(x.$backoff);if(!j.$metadata)j.$metadata={};throw j.$metadata.attempts=Y+1,j.$metadata.totalRetryDelay=F,j}Y=N.getRetryCount();let k=N.getRetryDelay();F+=k,await l(k)}}else{if(b=b,b?.mode)O.userAgent=[...O.userAgent||[],["cfg/retry-mode",b.mode]];return b.retry(E,T)}}}var l=(_)=>new Promise((u)=>setTimeout(u,_)),Q_=(_)=>typeof _.acquireInitialRetryToken<"u"&&typeof _.refreshRetryTokenForRetry<"u"&&typeof _.recordSuccess<"u",c_=(_,u)=>{let E={error:_,errorType:w_(_)},O=u_(_.$response,u);if(O)E.retryAfterHint=O;return E},w_=(_)=>{if(J(_))return"THROTTLING";if(X(_))return"TRANSIENT";if(a(_))return"SERVER_ERROR";return"CLIENT_ERROR"},b_={name:"retryMiddleware",tags:["RETRY"],step:"finalizeRequest",priority:"high",override:!0};function B_(_){let u=O_(_);return(E)=>({applyToStack:(O)=>{O.add(u(E),b_)}})}class C{static setTimeoutFn=setTimeout;beta;minCapacity;minFillRate;scaleConstant;smooth;enabled=!1;availableTokens=0;lastMaxRate=0;measuredTxRate=0;requestCount=0;fillRate;lastThrottleTime;lastTimestamp=0;lastTxRateBucket;maxCapacity;timeWindow=0;constructor(_){this.beta=_?.beta??0.7,this.minCapacity=_?.minCapacity??1,this.minFillRate=_?.minFillRate??0.5,this.scaleConstant=_?.scaleConstant??0.4,this.smooth=_?.smooth??0.8,this.lastThrottleTime=this.getCurrentTimeInSeconds(),this.lastTxRateBucket=Math.floor(this.getCurrentTimeInSeconds()),this.fillRate=this.minFillRate,this.maxCapacity=this.minCapacity}async getSendToken(){return this.acquireTokenBucket(1)}updateClientSendingRate(_){let u;this.updateMeasuredRate();let E=_;if(E?.errorType==="THROTTLING"||J(E?.error??_)){let b=!this.enabled?this.measuredTxRate:Math.min(this.measuredTxRate,this.fillRate);this.lastMaxRate=b,this.calculateTimeWindow(),this.lastThrottleTime=this.getCurrentTimeInSeconds(),u=this.cubicThrottle(b),this.enableTokenBucket()}else this.calculateTimeWindow(),u=this.cubicSuccess(this.getCurrentTimeInSeconds());let T=Math.min(u,2*this.measuredTxRate);this.updateTokenBucketRate(T)}getCurrentTimeInSeconds(){return Date.now()/1000}async acquireTokenBucket(_){if(!this.enabled)return;this.refillTokenBucket();while(_>this.availableTokens){let u=(_-this.availableTokens)/this.fillRate*1000;await new Promise((E)=>C.setTimeoutFn(E,u)),this.refillTokenBucket()}this.availableTokens=this.availableTokens-_}refillTokenBucket(){let _=this.getCurrentTimeInSeconds();if(!this.lastTimestamp){this.lastTimestamp=_;return}let u=(_-this.lastTimestamp)*this.fillRate;this.availableTokens=Math.min(this.maxCapacity,this.availableTokens+u),this.lastTimestamp=_}calculateTimeWindow(){this.timeWindow=this.getPrecise(Math.pow(this.lastMaxRate*(1-this.beta)/this.scaleConstant,0.3333333333333333))}cubicThrottle(_){return this.getPrecise(_*this.beta)}cubicSuccess(_){return this.getPrecise(this.scaleConstant*Math.pow(_-this.lastThrottleTime-this.timeWindow,3)+this.lastMaxRate)}enableTokenBucket(){this.enabled=!0}updateTokenBucketRate(_){this.refillTokenBucket(),this.fillRate=Math.max(_,this.minFillRate),this.maxCapacity=Math.max(_,this.minCapacity),this.availableTokens=Math.min(this.availableTokens,this.maxCapacity)}updateMeasuredRate(){let _=this.getCurrentTimeInSeconds(),u=Math.floor(_*2)/2;if(this.requestCount++,u>this.lastTxRateBucket){let E=this.requestCount/(u-this.lastTxRateBucket);this.measuredTxRate=this.getPrecise(E*this.smooth+this.measuredTxRate*(1-this.smooth)),this.requestCount=0,this.lastTxRateBucket=u}}getPrecise(_){return parseFloat(_.toFixed(8))}}class M{static v2026=typeof process<"u"&&process.env?.SMITHY_NEW_RETRIES_2026==="true";static delay(){return M.v2026?50:100}static throttlingDelay(){return M.v2026?1000:500}static cost(){return M.v2026?14:5}static throttlingCost(){return M.v2026?5:10}static modifiedCostType(){return M.v2026?"THROTTLING":"TRANSIENT"}}class T_{x=M.delay();computeNextBackoffDelay(_){let u=Math.random(),E=2,O=u*Math.min(this.x*2**_,Q);return Math.floor(O)}setDelayBase(_){this.x=_}}class h{delay;count;cost;longPoll;constructor(_,u,E,O){this.delay=_,this.count=u,this.cost=E,this.longPoll=O}getRetryCount(){return this.count}getRetryDelay(){return Math.min(Q,this.delay)}getRetryCost(){return this.cost}isLongPoll(){return this.longPoll}}k_.RETRY_MODES=void 0;(function(_){_.STANDARD="standard",_.ADAPTIVE="adaptive"})(k_.RETRY_MODES||(k_.RETRY_MODES={}));var $=3,Y_=k_.RETRY_MODES.STANDARD,d={incompatible:1,attempts:2,capacity:3},G=class{mode=k_.RETRY_MODES.STANDARD;capacity=Z;retryBackoffStrategy;maxAttemptsProvider;baseDelay;constructor(u){if(typeof u==="number")this.maxAttemptsProvider=async()=>u;else if(typeof u==="function")this.maxAttemptsProvider=u;else if(u&&typeof u==="object")this.maxAttemptsProvider=async()=>u.maxAttempts,this.baseDelay=u.baseDelay,this.retryBackoffStrategy=u.backoff;this.maxAttemptsProvider??=async()=>$,this.baseDelay??=M.delay(),this.retryBackoffStrategy??=new T_}async acquireInitialRetryToken(u){return new h(M.delay(),0,void 0,M.v2026&&u.includes(":longpoll"))}async refreshRetryTokenForRetry(u,E){let O=await this.getMaxAttempts(),T=this.retryCode(u,E,O),b=T===0,L=u.isLongPoll?.();if(b||L){let N=E.errorType;this.retryBackoffStrategy.setDelayBase(N==="THROTTLING"?M.throttlingDelay():this.baseDelay);let j=this.retryBackoffStrategy.computeNextBackoffDelay(u.getRetryCount()),Y=j;if(E.retryAfterHint instanceof Date)Y=Math.max(j,Math.min(E.retryAfterHint.getTime()-Date.now(),j+5000));if(!b)throw Object.assign(Error("No retry token available"),{$backoff:M.v2026&&T===d.capacity&&L?Y:0});else{let F=this.getCapacityCost(N);return this.capacity-=F,new h(Y,u.getRetryCount()+1,F,u.isLongPoll?.()??!1)}}throw Error("No retry token available")}recordSuccess(u){this.capacity=Math.min(Z,this.capacity+(u.getRetryCost()??g))}getCapacity(){return this.capacity}async maxAttempts(){return this.maxAttemptsProvider()}async getMaxAttempts(){try{return await this.maxAttemptsProvider()}catch(u){return console.warn(`Max attempts provider could not resolve. Using default of ${$}`),$}}retryCode(u,E,O){let T=u.getRetryCount()+1,b=this.isRetryableError(E.errorType)?0:d.incompatible,L=T<O?0:d.attempts,N=this.capacity>=this.getCapacityCost(E.errorType)?0:d.capacity;return b||L||N}getCapacityCost(u){return u===M.modifiedCostType()?M.throttlingCost():M.cost()}isRetryableError(u){return u==="THROTTLING"||u==="TRANSIENT"}},j_=class{mode=k_.RETRY_MODES.ADAPTIVE;rateLimiter;standardRetryStrategy;constructor(u,E){let{rateLimiter:O}=E??{};this.rateLimiter=O??new C,this.standardRetryStrategy=E?new G({maxAttempts:typeof u==="number"?u:3,...E}):new G(u)}async acquireInitialRetryToken(u){let E=await this.standardRetryStrategy.acquireInitialRetryToken(u);return await this.rateLimiter.getSendToken(),E}async refreshRetryTokenForRetry(u,E){this.rateLimiter.updateClientSendingRate(E);let O=await this.standardRetryStrategy.refreshRetryTokenForRetry(u,E);return await this.rateLimiter.getSendToken(),O}recordSuccess(u){this.rateLimiter.updateClientSendingRate({}),this.standardRetryStrategy.recordSuccess(u)}async maxAttemptsProvider(){return this.standardRetryStrategy.maxAttempts()}};class P_ extends G{computeNextBackoffDelay;constructor(_,u=M.delay()){super(typeof _==="function"?_:async()=>_);if(typeof u==="number")this.computeNextBackoffDelay=()=>u;else this.computeNextBackoffDelay=u}async refreshRetryTokenForRetry(_,u){let E=await super.refreshRetryTokenForRetry(_,u);return E.getRetryDelay=()=>this.computeNextBackoffDelay(E.getRetryCount()),E}}var v_=(_,u)=>{let E=_,O=g,T=r,b=__,L=_,N=(I)=>I.name==="TimeoutError"?b:T,j=(I)=>N(I)<=L;return Object.freeze({hasRetryTokens:j,retrieveRetryTokens:(I)=>{if(!j(I))throw Error("No retry token available");let R=N(I);return L-=R,R},releaseRetryTokens:(I)=>{L+=I??O,L=Math.min(L,E)}})},L_=(_,u)=>Math.floor(Math.min(Q,Math.random()*2**u*_)),N_=(_)=>{if(!_)return!1;return A(_)||p(_)||J(_)||X(_)};class n{maxAttemptsProvider;retryDecider;delayDecider;retryQuota;mode=k_.RETRY_MODES.STANDARD;constructor(_,u){this.maxAttemptsProvider=_,this.retryDecider=u?.retryDecider??N_,this.delayDecider=u?.delayDecider??L_,this.retryQuota=u?.retryQuota??v_(Z)}shouldRetry(_,u,E){return u<E&&this.retryDecider(_)&&this.retryQuota.hasRetryTokens(_)}async getMaxAttempts(){let _;try{_=await this.maxAttemptsProvider()}catch(u){_=$}return _}async retry(_,u,E){let O,T=0,b=0,L=await this.getMaxAttempts(),{request:N}=u;if(K.HttpRequest.isInstance(N))N.headers[c]=q.v4();while(!0)try{if(K.HttpRequest.isInstance(N))N.headers[w]=`attempt=${T+1}; max=${L}`;if(E?.beforeRequest)await E.beforeRequest();let{response:j,output:Y}=await _(u);if(E?.afterRequest)E.afterRequest(j);return this.retryQuota.releaseRetryTokens(O),Y.$metadata.attempts=T+1,Y.$metadata.totalRetryDelay=b,{response:j,output:Y}}catch(j){let Y=E_(j);if(T++,this.shouldRetry(Y,T,L)){O=this.retryQuota.retrieveRetryTokens(Y);let F=this.delayDecider(J(Y)?t:e,T),I=h_(Y.$response),R=Math.max(I||0,F);b+=R,await new Promise((V)=>setTimeout(V,R));continue}if(!Y.$metadata)Y.$metadata={};throw Y.$metadata.attempts=T,Y.$metadata.totalRetryDelay=b,Y}}}var h_=(_)=>{if(!K.HttpResponse.isInstance(_))return;let u=Object.keys(_.headers).find((b)=>b.toLowerCase()==="retry-after");if(!u)return;let E=_.headers[u],O=Number(E);if(!Number.isNaN(O))return O*1000;return new Date(E).getTime()-Date.now()};class M_ extends n{rateLimiter;constructor(_,u){let{rateLimiter:E,...O}=u??{};super(_,O);this.rateLimiter=E??new C,this.mode=k_.RETRY_MODES.ADAPTIVE}async retry(_,u){return super.retry(_,u,{beforeRequest:async()=>{return this.rateLimiter.getSendToken()},afterRequest:(E)=>{this.rateLimiter.updateClientSendingRate(E)}})}}var S="AWS_MAX_ATTEMPTS",i="max_attempts",S_={environmentVariableSelector:(_)=>{let u=_[S];if(!u)return;let E=parseInt(u);if(Number.isNaN(E))throw Error(`Environment variable ${S} mast be a number, got "${u}"`);return E},configFileSelector:(_)=>{let u=_[i];if(!u)return;let E=parseInt(u);if(Number.isNaN(E))throw Error(`Shared config file entry ${i} mast be a number, got "${u}"`);return E},default:$},i_=(_)=>{let{retryStrategy:u,retryMode:E}=_,O=v.normalizeProvider(_.maxAttempts??$),T=u?Promise.resolve(u):void 0,b=async()=>await v.normalizeProvider(E)()===k_.RETRY_MODES.ADAPTIVE?new j_(O):new G(O);return Object.assign(_,{maxAttempts:O,retryStrategy:()=>T??=b()})},U_="AWS_RETRY_MODE",I_="retry_mode",q_={environmentVariableSelector:(_)=>_[U_],configFileSelector:(_)=>_[I_],default:Y_},F_=()=>(_)=>async(u)=>{let{request:E}=u;if(K.HttpRequest.isInstance(E))delete E.headers[c],delete E.headers[w];return _(u)},R_={name:"omitRetryHeadersMiddleware",tags:["RETRY","HEADERS","OMIT_RETRY_HEADERS"],relation:"before",toMiddleware:"awsAuthMiddleware",override:!0},A_=(_)=>({applyToStack:(u)=>{u.addRelativeTo(F_(),R_)}}),g_=O_(m),n_=B_(m);k_.AdaptiveRetryStrategy=j_;k_.CONFIG_MAX_ATTEMPTS=i;k_.CONFIG_RETRY_MODE=I_;k_.ConfiguredRetryStrategy=P_;k_.DEFAULT_MAX_ATTEMPTS=$;k_.DEFAULT_RETRY_DELAY_BASE=e;k_.DEFAULT_RETRY_MODE=Y_;k_.DefaultRateLimiter=C;k_.DeprecatedAdaptiveRetryStrategy=M_;k_.DeprecatedStandardRetryStrategy=n;k_.ENV_MAX_ATTEMPTS=S;k_.ENV_RETRY_MODE=U_;k_.INITIAL_RETRY_TOKENS=Z;k_.INVOCATION_ID_HEADER=c;k_.MAXIMUM_RETRY_DELAY=Q;k_.NODE_MAX_ATTEMPT_CONFIG_OPTIONS=S_;k_.NODE_RETRY_MODE_CONFIG_OPTIONS=q_;k_.NO_RETRY_INCREMENT=g;k_.REQUEST_HEADER=w;k_.RETRY_COST=r;k_.Retry=M;k_.StandardRetryStrategy=G;k_.THROTTLING_RETRY_DELAY_BASE=t;k_.TIMEOUT_RETRY_COST=__;k_.defaultDelayDecider=L_;k_.defaultRetryDecider=N_;k_.getOmitRetryHeadersPlugin=A_;k_.getRetryAfterHint=H_;k_.getRetryPlugin=n_;k_.isBrowserNetworkError=s;k_.isClockSkewCorrectedError=y;k_.isClockSkewError=p;k_.isNodeJsHttp2TransientError=o;k_.isRetryableByTrait=A;k_.isServerError=a;k_.isThrottlingError=J;k_.isTransientError=X;k_.omitRetryHeadersMiddleware=F_;k_.omitRetryHeadersMiddlewareOptions=R_;k_.resolveRetryConfig=i_;k_.retryMiddleware=g_;k_.retryMiddlewareOptions=b_});var D_=H((P)=>{Object.defineProperty(P,"__esModule",{value:!0});P.TIMEOUT_RETRY_COST=P.THROTTLING_RETRY_DELAY_BASE=P.Retry=P.RETRY_MODES=P.RETRY_COST=P.NO_RETRY_INCREMENT=P.REQUEST_HEADER=P.MAXIMUM_RETRY_DELAY=P.INVOCATION_ID_HEADER=P.INITIAL_RETRY_TOKENS=P.DEFAULT_RETRY_MODE=P.DEFAULT_RETRY_DELAY_BASE=P.DEFAULT_MAX_ATTEMPTS=P.StandardRetryStrategy=P.DefaultRateLimiter=P.ConfiguredRetryStrategy=P.AdaptiveRetryStrategy=void 0;var U=W_();Object.defineProperty(P,"AdaptiveRetryStrategy",{enumerable:!0,get:function(){return U.AdaptiveRetryStrategy}});Object.defineProperty(P,"ConfiguredRetryStrategy",{enumerable:!0,get:function(){return U.ConfiguredRetryStrategy}});Object.defineProperty(P,"DefaultRateLimiter",{enumerable:!0,get:function(){return U.DefaultRateLimiter}});Object.defineProperty(P,"StandardRetryStrategy",{enumerable:!0,get:function(){return U.StandardRetryStrategy}});Object.defineProperty(P,"DEFAULT_MAX_ATTEMPTS",{enumerable:!0,get:function(){return U.DEFAULT_MAX_ATTEMPTS}});Object.defineProperty(P,"DEFAULT_RETRY_DELAY_BASE",{enumerable:!0,get:function(){return U.DEFAULT_RETRY_DELAY_BASE}});Object.defineProperty(P,"DEFAULT_RETRY_MODE",{enumerable:!0,get:function(){return U.DEFAULT_RETRY_MODE}});Object.defineProperty(P,"INITIAL_RETRY_TOKENS",{enumerable:!0,get:function(){return U.INITIAL_RETRY_TOKENS}});Object.defineProperty(P,"INVOCATION_ID_HEADER",{enumerable:!0,get:function(){return U.INVOCATION_ID_HEADER}});Object.defineProperty(P,"MAXIMUM_RETRY_DELAY",{enumerable:!0,get:function(){return U.MAXIMUM_RETRY_DELAY}});Object.defineProperty(P,"REQUEST_HEADER",{enumerable:!0,get:function(){return U.REQUEST_HEADER}});Object.defineProperty(P,"NO_RETRY_INCREMENT",{enumerable:!0,get:function(){return U.NO_RETRY_INCREMENT}});Object.defineProperty(P,"RETRY_COST",{enumerable:!0,get:function(){return U.RETRY_COST}});Object.defineProperty(P,"RETRY_MODES",{enumerable:!0,get:function(){return U.RETRY_MODES}});Object.defineProperty(P,"Retry",{enumerable:!0,get:function(){return U.Retry}});Object.defineProperty(P,"THROTTLING_RETRY_DELAY_BASE",{enumerable:!0,get:function(){return U.THROTTLING_RETRY_DELAY_BASE}});Object.defineProperty(P,"TIMEOUT_RETRY_COST",{enumerable:!0,get:function(){return U.TIMEOUT_RETRY_COST}})});var yu=H((gu)=>{var wu=D_(),B={warningEmitted:!1},Bu=(_)=>{if(_&&!B.warningEmitted){if(process.env.AWS_SDK_JS_NODE_VERSION_SUPPORT_WARNING_DISABLED==="true"){B.warningEmitted=!0;return}let u=parseInt(_.substring(1,_.indexOf("."))),E=22;if(u<E)B.warningEmitted=!0,process.emitWarning(`NodeVersionSupportWarning: The AWS SDK for JavaScript (v3)
|
|
2
|
-
versions published after the first week of January 2027
|
|
3
|
-
will require node >=${E}. You are running node ${_}.
|
|
4
|
-
|
|
5
|
-
To continue receiving updates to AWS services, bug fixes,
|
|
6
|
-
and security updates please upgrade to node >=${E}.
|
|
7
|
-
|
|
8
|
-
More information can be found at: https://a.co/c895JFp`)}},vu=()=>(_,u)=>async(E)=>{return u.__retryLongPoll=!0,_(E)},hu={name:"longPollMiddleware",tags:["RETRY"],step:"initialize",override:!0},Su=(_)=>({applyToStack:(u)=>{u.add(vu(),hu)}});function iu(_,u,E){if(!_.$source)_.$source={};return _.$source[u]=E,_}wu.Retry.v2026||=typeof process==="object"&&process.env?.AWS_NEW_RETRIES_2026==="true";function qu(_,u,E){if(!_.__aws_sdk_context)_.__aws_sdk_context={features:{}};else if(!_.__aws_sdk_context.features)_.__aws_sdk_context.features={};_.__aws_sdk_context.features[u]=E}function Au(_,u,E){if(!_.$source)_.$source={};return _.$source[u]=E,_}gu.emitWarningIfUnsupportedVersion=Bu;gu.getLongPollPlugin=Su;gu.setCredentialFeature=iu;gu.setFeature=qu;gu.setTokenFeature=Au;gu.state=B});var ou=H((D)=>{Object.defineProperty(D,"__esModule",{value:!0});D.memoize=D.fromStatic=D.chain=D.TokenProviderError=D.CredentialsProviderError=D.ProviderError=void 0;var f=su();Object.defineProperty(D,"ProviderError",{enumerable:!0,get:function(){return f.ProviderError}});Object.defineProperty(D,"CredentialsProviderError",{enumerable:!0,get:function(){return f.CredentialsProviderError}});Object.defineProperty(D,"TokenProviderError",{enumerable:!0,get:function(){return f.TokenProviderError}});Object.defineProperty(D,"chain",{enumerable:!0,get:function(){return f.chain}});Object.defineProperty(D,"fromStatic",{enumerable:!0,get:function(){return f.fromValue}});Object.defineProperty(D,"memoize",{enumerable:!0,get:function(){return f.memoize}})});
|
|
9
|
-
export{W_ as Hqa,D_ as Iqa,yu as Jqa,ou as Kqa};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import{T7 as D}from"./cli-1.0.3-d7597p9k.mjs";import{Cia as L,Gia as JG,Qia as W,Tia as a}from"./cli-1.0.3-jmvq43wb.mjs";import{Aja as c,Bja as jG,Lja as GG}from"./cli-1.0.3-1f00zm8y.mjs";import{Lpa as U,Mpa as g}from"./cli-1.0.3-dyh4d1gw.mjs";import{gqa as H,yqa as RG}from"./cli-1.0.3-zan6y0m1.mjs";import{Cqa as wG}from"./cli-1.0.3-gpjv1akn.mjs";import{Tqa as WG,Xqa as j,Yqa as e}from"./cli-1.0.3-vzm5gxzn.mjs";function hG(){_.cache.clear?.(),W("Cleared CA certificates cache")}var _;var p=j(()=>{g();a();GG();JG();_=U(()=>{let G=c("--use-system-ca")||c("--use-openssl-ca"),J=process.env.NODE_EXTRA_CA_CERTS;if(W(`CA certs: useSystemCA=${G}, extraCertsPath=${J}`),!G&&!J)return;let Q=e("tls"),K=[];if(G){let Y=Q.getCACertificates,Z=Y?.("system");if(Z&&Z.length>0)K.push(...Z),W(`CA certs: Loaded ${K.length} system CA certificates (--use-system-ca)`);else if(!Y&&!J){W("CA certs: --use-system-ca set but system CA API unavailable, deferring to runtime");return}else K.push(...Q.rootCertificates),W(`CA certs: Loaded ${K.length} bundled root certificates as base (--use-system-ca fallback)`)}else K.push(...Q.rootCertificates),W(`CA certs: Loaded ${K.length} bundled root certificates as base`);if(J)try{let Y=L().readFileSync(J,{encoding:"utf8"});K.push(Y),W(`CA certs: Appended extra certificates from NODE_EXTRA_CA_CERTS (${J})`)}catch(Y){W(`CA certs: Failed to read NODE_EXTRA_CA_CERTS file (${J}): ${Y}`,{level:"error"})}return K.length>0?K:void 0})});import{Agent as EG}from"https";function gG(){let G=F(),J=_();if(!G&&!J)return;return{...G,...J&&{ca:J}}}function v(){let G=F(),J=_();if(!G&&!J)return{};let Q={...G,...J&&{ca:J}};if(typeof Bun<"u")return{tls:Q};return W("TLS: Created undici agent with custom certificates"),{dispatcher:new(D()).Agent({connect:{cert:Q.cert,key:Q.key,passphrase:Q.passphrase,...Q.ca&&{ca:Q.ca}},pipelining:1})}}function aG(){F.cache.clear?.(),P.cache.clear?.(),W("Cleared mTLS configuration cache")}function pG(){if(!F())return;if(process.env.NODE_EXTRA_CA_CERTS)W("NODE_EXTRA_CA_CERTS detected - Node.js will automatically append to built-in CAs")}var F,P;var KG=j(()=>{g();p();a();JG();F=U(()=>{let G={};if(process.env.CLAUDE_CODE_CLIENT_CERT)try{G.cert=L().readFileSync(process.env.CLAUDE_CODE_CLIENT_CERT,{encoding:"utf8"}),W("mTLS: Loaded client certificate from CLAUDE_CODE_CLIENT_CERT")}catch(J){W(`mTLS: Failed to load client certificate: ${J}`,{level:"error"})}if(process.env.CLAUDE_CODE_CLIENT_KEY)try{G.key=L().readFileSync(process.env.CLAUDE_CODE_CLIENT_KEY,{encoding:"utf8"}),W("mTLS: Loaded client key from CLAUDE_CODE_CLIENT_KEY")}catch(J){W(`mTLS: Failed to load client key: ${J}`,{level:"error"})}if(process.env.CLAUDE_CODE_CLIENT_KEY_PASSPHRASE)G.passphrase=process.env.CLAUDE_CODE_CLIENT_KEY_PASSPHRASE,W("mTLS: Using client key passphrase");if(Object.keys(G).length===0)return;return G}),P=U(()=>{let G=F(),J=_();if(!G&&!J)return;let Q={...G,...J&&{ca:J},keepAlive:!0};return W("mTLS: Creating HTTPS agent with custom certificates"),new EG(Q)})});var QG=()=>{};import*as YG from"net";import*as ZG from"http";import{Agent as SG}from"https";var B,i;var $G=j(()=>{QG();B=Symbol("AgentBaseInternalState");i=class i extends ZG.Agent{constructor(G){super(G);this[B]={}}isSecureEndpoint(G){if(G){if(typeof G.secureEndpoint==="boolean")return G.secureEndpoint;if(typeof G.protocol==="string")return G.protocol==="https:"}let{stack:J}=Error();if(typeof J!=="string")return!1;return J.split(`
|
|
2
|
-
`).some((Q)=>Q.indexOf("(https.js:")!==-1||Q.indexOf("node:https:")!==-1)}incrementSockets(G){if(this.maxSockets===1/0&&this.maxTotalSockets===1/0)return null;if(!this.sockets[G])this.sockets[G]=[];let J=new YG.Socket({writable:!1});return this.sockets[G].push(J),this.totalSocketCount++,J}decrementSockets(G,J){if(!this.sockets[G]||J===null)return;let Q=this.sockets[G],K=Q.indexOf(J);if(K!==-1){if(Q.splice(K,1),this.totalSocketCount--,Q.length===0)delete this.sockets[G]}}getName(G){if(this.isSecureEndpoint(G))return SG.prototype.getName.call(this,G);return super.getName(G)}createSocket(G,J,Q){let K={...J,secureEndpoint:this.isSecureEndpoint(J)},Y=this.getName(K),Z=this.incrementSockets(Y);Promise.resolve().then(()=>this.connect(G,K)).then((w)=>{if(this.decrementSockets(Y,Z),typeof w.addRequest==="function")try{return w.addRequest(G,K)}catch($){return Q($)}this[B].currentSocket=w,super.createSocket(G,J,Q)},(w)=>{this.decrementSockets(Y,Z),Q(w)})}createConnection(){let G=this[B].currentSocket;if(this[B].currentSocket=void 0,!G)throw Error("No socket was returned in the `connect()` function");return G}get defaultPort(){return this[B].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(G){if(this[B])this[B].defaultPort=G}get protocol(){return this[B].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(G){if(this[B])this[B].protocol=G}}});function n(G){return new Promise((J,Q)=>{let K=0,Y=[];function Z(){let X=G.read();if(X)q(X);else G.once("readable",Z)}function w(){G.removeListener("end",$),G.removeListener("error",V),G.removeListener("readable",Z)}function $(){w(),C("onend"),Q(Error("Proxy connection ended before receiving CONNECT response"))}function V(X){w(),C("onerror %o",X),Q(X)}function q(X){Y.push(X),K+=X.length;let z=Buffer.concat(Y,K),O=z.indexOf(`\r
|
|
3
|
-
\r
|
|
4
|
-
`);if(O===-1){C("have not received end of HTTP headers yet..."),Z();return}let b=z.slice(0,O).toString("ascii").split(`\r
|
|
5
|
-
`),f=b.shift();if(!f)return G.destroy(),Q(Error("No header received from proxy CONNECT response"));let t=f.split(" "),TG=+t[1],IG=t.slice(2).join(" "),E={};for(let S of b){if(!S)continue;let u=S.indexOf(":");if(u===-1)return G.destroy(),Q(Error(`Invalid header from proxy CONNECT response: "${S}"`));let d=S.slice(0,u).toLowerCase(),l=S.slice(u+1).trimStart(),A=E[d];if(typeof A==="string")E[d]=[A,l];else if(Array.isArray(A))A.push(l);else E[d]=l}C("got proxy server response: %o %o",f,E),w(),J({connect:{statusCode:TG,statusText:IG,headers:E},buffered:z})}G.on("error",V),G.on("end",$),Z()})}var XG,C;var zG=j(()=>{XG=WG(wG(),1),C=XG.default("https-proxy-agent:parse-proxy-response")});function VG(){return async({response:G,scheme:J})=>{if(J.toLowerCase()!=="negotiate")throw Error(`Expected Negotiate scheme but got "${J}"`);let Q;try{Q=await import("kerberos")}catch{throw Error('The "kerberos" package is required for Negotiate proxy authentication. Install it with: npm install kerberos')}let K=G.headers["proxy-authenticate"]||"",Y=Array.isArray(K)?K[0]:K,Z=typeof Y==="string"&&Y.includes(" ")?Y.split(" ").slice(1).join(" "):void 0,$=await(await Q.initializeClient("HTTP@proxy",{mechOID:Q.GSS_MECH_OID_SPNEGO})).step(Z||"");if(!$)throw Error("Kerberos client.step() returned no token");return{headers:{"Proxy-Authorization":`Negotiate ${$}`}}}}var BG=()=>{};import*as M from"net";import*as R from"tls";import LG from"assert";import{URL as DG}from"url";function MG(G){setImmediate(()=>{G.resume()})}function s(G,...J){let Q={},K;for(K in G)if(!J.includes(K))Q[K]=G[K];return Q}var HG,T,k=(G)=>{if(G.servername===void 0&&G.host&&!M.isIP(G.host))return{...G,servername:G.host};return G},x;var qG=j(()=>{$G();zG();BG();HG=WG(wG(),1),T=HG.default("https-proxy-agent");x=class x extends i{constructor(G,J){super(J);if(this.options={path:void 0},this.proxy=typeof G==="string"?new DG(G):G,this.proxyHeaders=J?.headers??{},T("Creating new HttpsProxyAgent instance: %o",this.proxy.href),J?.negotiate)this.onProxyAuth=VG();else if(J?.onProxyAuth)this.onProxyAuth=J.onProxyAuth;let Q=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,""),K=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={ALPNProtocols:["http/1.1"],...J?s(J,"headers","onProxyAuth","negotiate"):null,host:Q,port:K}}async connect(G,J){let{proxy:Q}=this;if(!J.host)throw TypeError('No "host" provided');let K;if(Q.protocol==="https:")T("Creating `tls.Socket`: %o",this.connectOpts),K=R.connect(k(this.connectOpts));else T("Creating `net.Socket`: %o",this.connectOpts),K=M.connect(this.connectOpts);let Y=typeof this.proxyHeaders==="function"?this.proxyHeaders():{...this.proxyHeaders},Z=M.isIPv6(J.host)?`[${J.host}]`:J.host,w=`CONNECT ${Z}:${J.port} HTTP/1.1\r
|
|
6
|
-
`;if(Q.username||Q.password){let z=`${decodeURIComponent(Q.username)}:${decodeURIComponent(Q.password)}`;Y["Proxy-Authorization"]=`Basic ${Buffer.from(z).toString("base64")}`}if(Y.Host=`${Z}:${J.port}`,!Y["Proxy-Connection"])Y["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close";for(let z of Object.keys(Y))w+=`${z}: ${Y[z]}\r
|
|
7
|
-
`;let $=n(K);K.write(`${w}\r
|
|
8
|
-
`);let{connect:V,buffered:q}=await $;if(G.emit("proxyConnect",V),this.emit("proxyConnect",V,G),G.emit("proxy",{proxy:this.proxy.href,socket:K}),V.statusCode===200){if(G.once("socket",MG),J.secureEndpoint)return T("Upgrading socket connection to TLS"),R.connect({...s(k(J),"host","path","port"),socket:K});return K}if(V.statusCode===407&&this.onProxyAuth){T("Got 407 response, invoking onProxyAuth callback"),K.destroy();let z=V.headers["proxy-authenticate"]||"",O=Array.isArray(z)?z[0].split(/\s/)[0]:z.split(/\s/)[0],b=await this.onProxyAuth({response:V,scheme:O});return this._connectWithAuth(G,J,b.headers)}K.destroy();let X=new M.Socket({writable:!1});return X.readable=!0,G.once("socket",(z)=>{T("Replaying proxy buffer for failed request"),LG(z.listenerCount("data")>0),z.push(q),z.push(null)}),X}async _connectWithAuth(G,J,Q){let{proxy:K}=this,Y;if(K.protocol==="https:")Y=R.connect(k(this.connectOpts));else Y=M.connect(this.connectOpts);let Z=typeof this.proxyHeaders==="function"?this.proxyHeaders():{...this.proxyHeaders},w=M.isIPv6(J.host)?`[${J.host}]`:J.host,$=`CONNECT ${w}:${J.port} HTTP/1.1\r
|
|
9
|
-
`;if(K.username||K.password){let X=`${decodeURIComponent(K.username)}:${decodeURIComponent(K.password)}`;Z["Proxy-Authorization"]=`Basic ${Buffer.from(X).toString("base64")}`}if(Object.assign(Z,Q),Z.Host=`${w}:${J.port}`,!Z["Proxy-Connection"])Z["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close";for(let X of Object.keys(Z))$+=`${X}: ${Z[X]}\r
|
|
10
|
-
`;let V=n(Y);Y.write(`${$}\r
|
|
11
|
-
`);let{connect:q}=await V;if(G.emit("proxyConnect",q),this.emit("proxyConnect",q,G),q.statusCode===200){if(G.once("socket",MG),J.secureEndpoint)return T("Upgrading socket connection to TLS"),R.connect({...s(k(J),"host","path","port"),socket:Y});return Y}throw Y.destroy(),Error(`Proxy authentication failed with status ${q.statusCode} after retry`)}};x.protocols=["http","https"]});function MJ(G){r.set(G,!0),UG(G)}function UG(G){NG.cache.delete?.(G)}function HJ(G){_G.set(G,!0),UG(G)}function OG(G){return _G.get(G)===!0}function bG(G){switch(G.family){case 0:case 4:case 6:return G.family;case"IPv6":return 6;case"IPv4":case void 0:return 4;default:throw Error(`Unsupported address family: ${G.family}`)}}function I(G=process.env){return G.https_proxy||G.HTTPS_PROXY||G.http_proxy||G.HTTP_PROXY}function AG(G=process.env){return G.no_proxy||G.NO_PROXY}function h(G,J=AG()){if(!J)return!1;if(J==="*")return!0;try{let Q=new URL(G),K=Q.hostname.toLowerCase(),Y=Q.port||(Q.protocol==="https:"||Q.protocol==="wss:"?"443":"80"),Z=`${K}:${Y}`;return J.split(/[,\s]+/).filter(Boolean).some(($)=>{if($=$.toLowerCase().trim(),$.includes(":"))return Z===$;if($.startsWith(".")){let V=$;return K===$.substring(1)||K.endsWith(V)}return K===$||K.endsWith("."+$)})}catch{return!1}}function y(G,J={}){let Q=F(),K=_(),Y={...Q&&{cert:Q.cert,key:Q.key,passphrase:Q.passphrase},...K&&{ca:K}};if(jG(process.env.CLAUDE_CODE_PROXY_RESOLVES_HOSTS))Y.lookup=(Z,w,$)=>{$(null,Z,bG(w))};return new x(G,{...Y,...J})}function qJ(G={}){let J=I(),Q=P(),K=H.create({proxy:!1});if(!J){if(Q)K.defaults.httpsAgent=Q;return K}let Y=y(J,G);return K.interceptors.request.use((Z)=>{if(Z.url&&h(Z.url))Z.httpsAgent=Q,Z.httpAgent=Q;else Z.httpsAgent=Y,Z.httpAgent=Y;return Z}),K}function jJ(G){let J=I();if(!J)return;if(h(G))return;return y(J)}function UJ(G){let J=I();if(!J)return;if(h(G))return;return J}function _J(G){let J=G?.provider&&r.get(G.provider)?{keepalive:!1}:{};if(G?.forAnthropicAPI){let Y=process.env.ANTHROPIC_UNIX_SOCKET;if(Y&&typeof Bun<"u")return{...J,unix:Y}}let Q=I();if(Q){if(typeof Bun<"u")return{...J,proxy:Q,...v()};return{...J,dispatcher:o(Q)}}let K=v();if(G?.provider&&!K.dispatcher)return{...J,...K,dispatcher:NG(G.provider)};return{...J,...K}}function FJ(){let G=I(),J=P();if(m!==void 0)H.interceptors.request.eject(m),m=void 0;if(H.defaults.proxy=void 0,H.defaults.httpAgent=void 0,H.defaults.httpsAgent=void 0,G){H.defaults.proxy=!1;let Q=y(G);m=H.interceptors.request.use((K)=>{if(K.url&&h(K.url))if(J)K.httpsAgent=J,K.httpAgent=J;else delete K.httpsAgent,delete K.httpAgent;else K.httpsAgent=Q,K.httpAgent=Q;return K}),D().setGlobalDispatcher(o(G))}else if(J){H.defaults.httpsAgent=J;let Q=v();if(Q.dispatcher)D().setGlobalDispatcher(Q.dispatcher)}}async function NJ(){let G=I();if(!G)return{};let[{NodeHttpHandler:J},{defaultProvider:Q}]=await Promise.all([import("./index-1.0.3-zfk75xdr.mjs"),import("./index-1.0.3-gyr3x3wv.mjs")]),K=y(G),Y=new J({httpAgent:K,httpsAgent:K});return{requestHandler:Y,credentials:Q({clientConfig:{requestHandler:Y}})}}function TJ(){o.cache.clear?.(),W("Cleared proxy agent cache")}var r,_G,o,N,FG,PG,NG,m;var vG=j(()=>{RG();qG();g();p();a();GG();KG();r=new Map;_G=new Map;o=U((G)=>{let J=D(),Q=F(),K=_(),Y={httpProxy:G,httpsProxy:G,noProxy:process.env.NO_PROXY||process.env.no_proxy};if(Q||K){let Z={...Q&&{cert:Q.cert,key:Q.key,passphrase:Q.passphrase},...K&&{ca:K}};Y.connect=Z,Y.requestTls=Z}return new J.EnvHttpProxyAgent(Y)}),N={connections:12,keepAliveTimeout:30000,pipelining:1},FG={firstParty:{...N,allowH2:!0},openai:{...N,allowH2:!0},gemini:{...N,allowH2:!0},mistral:{...N,allowH2:!0},github:{...N,allowH2:!0},codex:{...N,allowH2:!0},"nvidia-nim":{...N,allowH2:!0},minimax:{...N,allowH2:!0}},PG=FG.openai,NG=U((G)=>{let J=D(),Q=FG[G]??PG,K={...Q,allowH2:Q.allowH2&&!OG(G),keepAliveTimeout:r.get(G)?100:Q.keepAliveTimeout};return new J.Agent(K)})});
|
|
12
|
-
export{hG as w7,p as x7,F as y7,gG as z7,aG as A7,pG as B7,KG as C7,MJ as D7,HJ as E7,OG as F7,I as G7,h as H7,qJ as I7,jJ as J7,UJ as K7,_J as L7,FJ as M7,NJ as N7,TJ as O7,vG as P7};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{UP as x,XP as B}from"./cli-1.0.3-2wzvc8te.mjs";import{Xqa as z}from"./cli-1.0.3-vzm5gxzn.mjs";function H(q){if(!q)return 0;return q.activeAgents.filter((b)=>b.source!=="built-in").reduce((b,w)=>{let y=`${w.agentType}: ${w.whenToUse}`;return b+x(y)},0)}var G=15000;var A=z(()=>{B()});
|
|
2
|
-
export{G as ug,H as vg,A as wg};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{vd as XJ,wd as mJ}from"./cli-1.0.3-ryfy7hya.mjs";import{$h as dJ,_h as JJ}from"./cli-1.0.3-rfvvw9yn.mjs";import{$E as vJ,Aj as g,CD as e,Cm as OJ,DD as pJ,DG as o,EG as s,FG as FJ,IQ as P,Jk as BJ,Jn as h,ON as I,Qy as i,Ry as TJ,VS as bJ,Wl as c,Zl as HJ,_E as n,_w as x,gD as LJ,km as a,pm as RJ,wD as yJ,wm as l,xD as DJ,zG as T}from"./cli-1.0.3-2wzvc8te.mjs";import{O5 as WJ}from"./cli-1.0.3-5psnr7wf.mjs";import{Jca as MJ,U_ as VJ,Zea as O,_ea as AJ,gfa as B,ofa as H,pca as f,xca as u,yca as _J}from"./cli-1.0.3-4m0kzrq4.mjs";import{Aga as YJ}from"./cli-1.0.3-kwe8av2x.mjs";import{$ga as zJ}from"./cli-1.0.3-n2h9jvgm.mjs";import{Nha as R,Qha as y}from"./cli-1.0.3-ynf2sj5r.mjs";import{Cia as V,Gia as UJ,Qia as m,Tia as NJ,yia as QJ}from"./cli-1.0.3-jmvq43wb.mjs";import{vja as C}from"./cli-1.0.3-5hpdm52h.mjs";import{Lja as wJ,yja as U}from"./cli-1.0.3-1f00zm8y.mjs";import{dna as b,mpa as j,uma as F}from"./cli-1.0.3-5kneybr4.mjs";import{Uqa as jJ}from"./cli-1.0.3-vzm5gxzn.mjs";pJ();dJ();j();YJ();y();I();BJ();h();VJ();zJ();C();H();P();WJ();QJ();x();I();h();H();C();P();x();LJ();function D(){}j();y();AJ();NJ();wJ();UJ();TJ();MJ();H();o();vJ();RJ();bJ();FJ();_J();OJ();HJ();import{join as Q}from"path";var SJ=30;function L(){let K=((f()||{}).cleanupPeriodDays??SJ)*24*60*60*1000;return new Date(Date.now()-K)}function r(X,J){return{messages:X.messages+J.messages,errors:X.errors+J.errors}}function kJ(X){let J=X.split(".")[0].replace(/T(\d{2})-(\d{2})-(\d{2})-(\d{3})Z/,"T$1:$2:$3.$4Z");return new Date(J)}async function p(X,J,K){let $={messages:0,errors:0};try{let G=await V().readdir(X);for(let Z of G)try{if(kJ(Z.name)<J)if(await V().unlink(Q(X,Z.name)),K)$.messages++;else $.errors++}catch(Y){B(Y)}}catch(G){if(G instanceof Error&&"code"in G&&G.code!=="ENOENT")B(G)}return $}async function EJ(){let X=V(),J=L(),K=O.errors(),$=O.baseLogs(),G=await p(K,J,!1);try{let Z;try{Z=await X.readdir($)}catch{return G}let Y=Z.filter((q)=>q.isDirectory()&&q.name.startsWith("mcp-logs-")).map((q)=>Q($,q.name));for(let q of Y)G=r(G,await p(q,J,!0)),await z(q,X)}catch(Z){if(Z instanceof Error&&"code"in Z&&Z.code!=="ENOENT")B(Z)}return G}async function w(X,J,K){if((await K.stat(X)).mtime<J)return await K.unlink(X),!0;return!1}async function z(X,J){try{await J.rmdir(X)}catch{}}async function CJ(){let X=L(),J={messages:0,errors:0},K=g(),$=V(),G;try{G=await $.readdir(K)}catch{return J}for(let Z of G){if(!Z.isDirectory())continue;let Y=Q(K,Z.name),q;try{q=await $.readdir(Y)}catch{J.errors++;continue}for(let W of q)if(W.isFile()){if(!W.name.endsWith(".jsonl")&&!W.name.endsWith(".cast"))continue;try{if(await w(Q(Y,W.name),X,$))J.messages++}catch{J.errors++}}else if(W.isDirectory()){let M=Q(Y,W.name),N=Q(M,l),S;try{S=await $.readdir(N)}catch{await z(M,$);continue}for(let _ of S)if(_.isFile())try{if(await w(Q(N,_.name),X,$))J.messages++}catch{J.errors++}else if(_.isDirectory()){let A=Q(N,_.name),k;try{k=await $.readdir(A)}catch{continue}for(let E of k){if(!E.isFile())continue;try{if(await w(Q(A,E.name),X,$))J.messages++}catch{J.errors++}}await z(A,$)}await z(N,$),await z(M,$)}await z(Y,$)}return J}async function d(X,J,K=!0){let $=L(),G={messages:0,errors:0},Z=V(),Y;try{Y=await Z.readdir(X)}catch{return G}for(let q of Y){if(!q.isFile()||!q.name.endsWith(J))continue;try{if(await w(Q(X,q.name),$,Z))G.messages++}catch{G.errors++}}if(K)await z(X,Z);return G}async function hJ(){let X=a(),J=await d(X,".md"),K=Q(U(),"plans");if(K!==X){let $=await d(K,".md");return r(J,$)}return J}async function xJ(){let X=L(),J={messages:0,errors:0},K=V();try{let $=U(),G=Q($,"file-history"),Z;try{Z=await K.readdir(G)}catch{return J}let Y=Z.filter((q)=>q.isDirectory()).map((q)=>Q(G,q.name));await Promise.all(Y.map(async(q)=>{try{if((await K.stat(q)).mtime<X)await K.rm(q,{recursive:!0,force:!0}),J.messages++}catch{J.errors++}})),await z(G,K)}catch($){B($)}return J}async function IJ(){let X=L(),J={messages:0,errors:0},K=V();try{let $=U(),G=Q($,"session-env"),Z;try{Z=await K.readdir(G)}catch{return J}let Y=Z.filter((q)=>q.isDirectory()).map((q)=>Q(G,q.name));for(let q of Y)try{if((await K.stat(q)).mtime<X)await K.rm(q,{recursive:!0,force:!0}),J.messages++}catch{J.errors++}await z(G,K)}catch($){B($)}return J}async function PJ(){let X=L(),J={messages:0,errors:0},K=V(),$=Q(U(),"debug"),G;try{G=await K.readdir($)}catch{return J}for(let Z of G){if(!Z.isFile()||!Z.name.endsWith(".txt")||Z.name==="latest")continue;try{if(await w(Q($,Z.name),X,K))J.messages++}catch{J.errors++}}return J}async function t(){let{errors:X}=s();if(X.length>0&&u("cleanupPeriodDays")){m("Skipping cleanup: settings have validation errors but cleanupPeriodDays was explicitly set. Fix settings errors to enable cleanup.");return}await EJ(),await CJ(),await hJ(),await xJ(),await IJ(),await PJ(),await i(),await n(L());let J=await c(L());if(J>0)R("tengu_worktree_cleanup",{removed:J})}o();mJ();var fJ=(DJ(),jJ(yJ));var v=600000;function sX(){JJ(),D(),fJ.initExtractMemories(),e(),XJ();let X=!0;async function J(){if(b()&&F()>Date.now()-60000){setTimeout(J,v).unref();return}if(X)X=!1,await t();if(b()&&F()>Date.now()-60000){setTimeout(J,v).unref();return}await T()}setTimeout(J,v).unref()}
|
|
2
|
-
export{sX as La};
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import{D1 as k,F1 as w}from"./cli-1.0.3-087x46pf.mjs";import{b7 as j,v7 as v}from"./cli-1.0.3-5psnr7wf.mjs";import{Aga as s,oga as d,zga as h}from"./cli-1.0.3-kwe8av2x.mjs";import{Lja as q}from"./cli-1.0.3-1f00zm8y.mjs";import{Xqa as p}from"./cli-1.0.3-vzm5gxzn.mjs";function m(){return y()||!!process.env.CLAUDE_BRIDGE_OAUTH_TOKEN}function x(){return m()}async function O(){return x()}async function P(){if(!m())return"Remote Control needs an Anthropic web login (a claude.ai OAuth token with the user:profile scope). Run `/provider` and sign in with your claude.ai account. Note: an inference API key alone is not enough — the bridge token is separate.";return null}function y(){try{return j()}catch{return!1}}function Q(){return d("tengu_bridge_repl_v2",!1)}function R(){return d("tengu_bridge_repl_v2_cse_shim_enabled",!0)}function U(){{let b=h("tengu_bridge_min_version",{minVersion:"0.0.0"});if(b.minVersion&&k("99.0.0",b.minVersion))return`Your version of Claudin (99.0.0) is too old for Remote Control.
|
|
2
|
-
Version ${b.minVersion} or higher is required. Run \`claudin update\` to update.`}return null}function W(){return!1}function X(){return!1}var z=p(()=>{s();v();q();w()});
|
|
3
|
-
export{x as dW,O as eW,P as fW,Q as gW,R as hW,U as iW,W as jW,X as kW,z as lW};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{Kw as I,Lw as P,Pw as t,wp as W,xp as n}from"./cli-1.0.3-2wzvc8te.mjs";import{W2 as H,X2 as p}from"./cli-1.0.3-q6m5azm3.mjs";import{Y2 as C,_2 as i}from"./cli-1.0.3-1w2x2m43.mjs";import{G3 as S,L3 as c,X6 as R,b7 as V,v7 as l,w6 as v}from"./cli-1.0.3-5psnr7wf.mjs";import{Jea as T,Kca as q,Kda as O,Kea as Y,Lca as u,Qea as y,Tea as k,Wea as g,gfa as D,mda as E,ofa as m,pda as X}from"./cli-1.0.3-4m0kzrq4.mjs";import{Tga as G,Vga as f,Wga as $,Xga as h}from"./cli-1.0.3-pf8dk52a.mjs";import{Gha as Z,Lha as _,Mha as M}from"./cli-1.0.3-n99q1npz.mjs";import{Qia as x,Tia as b}from"./cli-1.0.3-jmvq43wb.mjs";import{gqa as Q,yqa as A}from"./cli-1.0.3-zan6y0m1.mjs";import{Xqa as U}from"./cli-1.0.3-vzm5gxzn.mjs";async function s(){if(q())return x("[Bootstrap] Skipped: Nonessential traffic disabled"),null;if(S()!=="firstParty")return x("[Bootstrap] Skipped: 3P provider"),null;let w=v();if(!(R()?.accessToken&&V())&&!w)return x("[Bootstrap] Skipped: no usable OAuth or API key"),null;let J=`${_().BASE_API_URL}/api/claude_cli/bootstrap`;try{return await H(async()=>{let j=R()?.accessToken,z;if(j&&V())z={Authorization:`Bearer ${j}`,"anthropic-beta":Z};else if(w)z={"x-api-key":w};else return x("[Bootstrap] No auth available on retry, aborting"),null;x("[Bootstrap] Fetching");let N=await Q.get(J,{headers:{"Content-Type":"application/json","User-Agent":C(),...z},timeout:5000}),B=d().safeParse(N.data);if(!B.success)return x(`[Bootstrap] Response failed validation: ${B.error.message}`),null;return x("[Bootstrap] Fetch ok"),B.data})}catch(j){if(Q.isAxiosError(j)){let z=j.response?.status??"no-response",N=j.code??"unknown-code",B=j.config?.method?.toUpperCase()??"UNKNOWN",K=j.config?.url??"unknown-url",L=j.message??"unknown axios error";x(`[Bootstrap] Fetch failed: status=${z} code=${N} method=${B} url=${K} message=${L}`)}else{let z=j instanceof Error?j.message:String(j);x(`[Bootstrap] Fetch failed: ${z}`)}throw j}}async function a(){let w=Y();if(!w?.startsWith("openai:"))return null;let{baseUrl:F}=T(),J=await P({baseUrl:F,apiKey:k()?.apiKey});if(J===null)return x("[Bootstrap] Local OpenAI model discovery failed"),null;let j=I(F);return{clientData:X().clientDataCache??null,additionalModelOptionsScope:w,additionalModelOptions:J.map((z)=>({value:z,label:z,description:`Detected from ${j}`}))}}async function Yj(){try{let w=Y(),F=null;if(w==="firstParty"){let B=await s();if(!B)return;F={clientData:B.client_data??null,additionalModelOptions:B.additional_model_options??[],additionalModelOptionsScope:w}}else if(w?.startsWith("openai:")){if(F=await a(),!F)return}else{x("[Bootstrap] Skipped: no additional model source");return}let{clientData:J,additionalModelOptions:j,additionalModelOptionsScope:z}=F,N=X();if(W(N.clientDataCache,J)&&W(N.additionalModelOptionsCache,j)&&N.additionalModelOptionsCacheScope===z){x("[Bootstrap] Cache unchanged, skipping write");return}x("[Bootstrap] Cache updated, persisting to disk"),E((B)=>({...B,clientDataCache:J,additionalModelOptionsCache:j,additionalModelOptionsCacheScope:z}))}catch(w){D(w)}}var d;var r=U(()=>{A();n();l();f();M();O();b();p();h();m();c();u();t();i();g();y();d=$(()=>G.object({client_data:G.record(G.string(),G.unknown()).nullish(),additional_model_options:G.array(G.object({model:G.string(),name:G.string(),description:G.string()}).transform(({model:w,name:F,description:J})=>({value:w,label:F,description:J}))).nullish()}))});
|
|
2
|
-
export{Yj as qc,r as rc};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{A9 as K,B9 as E,gfa as U,ofa as m,u_ as F,y_ as f}from"./cli-1.0.3-4m0kzrq4.mjs";import{$ga as x,_ga as v}from"./cli-1.0.3-n2h9jvgm.mjs";import{Cia as D,Gia as g}from"./cli-1.0.3-jmvq43wb.mjs";import{Xqa as S}from"./cli-1.0.3-vzm5gxzn.mjs";import{basename as H,dirname as b,join as I,sep as O}from"path";function _(q,B){if(!q)return{directory:B||v(),prefix:""};let G=F(q,B);if(q.endsWith("/")||q.endsWith(O))return{directory:G,prefix:""};let N=b(G),J=H(q);return{directory:N,prefix:J}}async function k(q){let B=Z.get(q);if(B)return B;try{let J=(await D().readdir(q)).filter((M)=>M.isDirectory()&&!M.name.startsWith(".")).map((M)=>({name:M.name,path:I(q,M.name),type:"directory"})).slice(0,100);return Z.set(q,J),J}catch(G){return U(G),[]}}async function P(q,B={}){let{basePath:G=v(),maxResults:N=10}=B,{directory:J,prefix:M}=_(q,G),V=await k(J),z=M.toLowerCase();return V.filter((X)=>X.name.toLowerCase().startsWith(z)).slice(0,N).map((X)=>({id:X.path,displayText:X.name+"/",description:"directory",metadata:{type:"directory"}}))}function o(q){return q.startsWith("~/")||q.startsWith("/")||q.startsWith("./")||q.startsWith("../")||q==="~"||q==="."||q===".."}async function u(q,B=!1){let G=`${q}:${B}`,N=A.get(G);if(N)return N;try{let V=(await D().readdir(q)).filter((z)=>B||!z.name.startsWith(".")).map((z)=>({name:z.name,path:I(q,z.name),type:z.isDirectory()?"directory":"file"})).sort((z,W)=>{if(z.type==="directory"&&W.type!=="directory")return-1;if(z.type!=="directory"&&W.type==="directory")return 1;return z.name.localeCompare(W.name)}).slice(0,100);return A.set(G,V),V}catch(J){return U(J),[]}}async function h(q,B={}){let{basePath:G=v(),maxResults:N=10,includeFiles:J=!0,includeHidden:M=!1}=B,{directory:V,prefix:z}=_(q,G),W=await u(V,M),X=z.toLowerCase(),j=W.filter((Q)=>{if(!J&&Q.type==="file")return!1;return Q.name.toLowerCase().startsWith(X)}).slice(0,N),w=q.includes("/")||q.includes(O),Y="";if(w){let Q=q.lastIndexOf("/"),$=q.lastIndexOf(O),L=Math.max(Q,$);Y=q.substring(0,L+1)}if(Y.startsWith("./")||Y.startsWith("."+O))Y=Y.slice(2);return j.map((Q)=>{let $=Y+Q.name;return{id:$,displayText:Q.type==="directory"?$+"/":$,metadata:{type:Q.type}}})}var R=500,T=300000,Z,A;var C=S(()=>{E();x();g();m();f();Z=new K({max:R,ttl:T}),A=new K({max:R,ttl:T})});
|
|
2
|
-
export{P as xh,o as yh,h as zh,C as Ah};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{se as V,ue as B}from"./cli-1.0.3-82ky54w7.mjs";import{IQ as F,MN as U,ON as w,Zw as Q,_w as q,fk as L}from"./cli-1.0.3-2wzvc8te.mjs";import{B$ as k,w$ as K}from"./cli-1.0.3-4m0kzrq4.mjs";import{Qia as I,Tia as $}from"./cli-1.0.3-jmvq43wb.mjs";import{oja as G,vja as _}from"./cli-1.0.3-5hpdm52h.mjs";import{Xqa as Z}from"./cli-1.0.3-vzm5gxzn.mjs";async function h(W,X){let E=V(W);if(!E)return null;try{let A=await U({systemPrompt:Q(['Generate a short kebab-case name (2-4 words) that captures the main topic of this conversation. Use lowercase words separated by hyphens. Examples: "fix-login-bug", "add-auth-feature", "refactor-api-client", "debug-test-failures". Return JSON with a "name" field.']),userPrompt:E,outputFormat:{type:"json_schema",schema:{type:"object",properties:{name:{type:"string"}},required:["name"],additionalProperties:!1}},signal:X,options:{querySource:"rename_generate_name",agents:[],isNonInteractiveSession:!1,hasAppendSystemPrompt:!1,mcpTools:[]}}),Y=L(A.message.content),z=K(Y);if(z&&typeof z==="object"&&"name"in z&&typeof z.name==="string")return z.name;return null}catch(A){return I(`generateSessionName failed: ${G(A)}`,{level:"error"}),null}}var D=Z(()=>{w();$();_();k();F();B();q()});
|
|
2
|
-
export{h as qe,D as re};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import{C1 as o,F1 as OJ}from"./cli-1.0.3-087x46pf.mjs";import{$$ as BJ,Kda as D,Z$ as G,gfa as q,mda as v,o9 as K,oca as i,ofa as E,p9 as I,yca as HJ}from"./cli-1.0.3-4m0kzrq4.mjs";import{Nha as A,Qha as XJ}from"./cli-1.0.3-ynf2sj5r.mjs";import{Cia as y,Gia as F,Qia as W,Tia as zJ,tia as k,uia as j,yia as C}from"./cli-1.0.3-jmvq43wb.mjs";import{_ia as l,pja as O,qja as w,tja as p,vja as R}from"./cli-1.0.3-5hpdm52h.mjs";import{Lja as b,yja as H}from"./cli-1.0.3-1f00zm8y.mjs";import{Xqa as M}from"./cli-1.0.3-vzm5gxzn.mjs";import{access as P,chmod as JJ,writeFile as QJ}from"fs/promises";import{homedir as f}from"os";import{join as B}from"path";function S(){return B(H(),"local")}function YJ(J=f()){return B(J,".claude","local")}function m(J){let Q=J?.homeDir??f(),Y=J?.configHomeDir??H();return Array.from(new Set([B(Y,"local"),YJ(Q)]))}function d(J){return[B(J,"node_modules",".bin","claudin"),B(J,"node_modules",".bin","claude")]}function ZJ(J){let Q=J.replace(/\\+/g,"/");return Q.includes("/.claudin/local/node_modules/")||Q.includes("/.claude/local/node_modules/")}function T(){return B(S(),"claudin")}function DJ(){return ZJ(process.argv[1]||"")}async function L(J,Q,Y){try{return await QJ(J,Q,{encoding:"utf8",flag:"wx",mode:Y}),!0}catch(Z){if(O(Z)==="EEXIST")return!1;throw Z}}async function $J(){try{let J=S();await y().mkdir(J),await L(B(J,"package.json"),k({name:"claudin-local",version:"0.0.1",private:!0},null,2));let Q=T();if(await L(Q,`#!/bin/sh
|
|
2
|
-
exec "${J}/node_modules/.bin/claudin" "$@"`,493))await JJ(Q,493);return!0}catch(J){return q(J),!1}}async function EJ(J,Q){try{if(!await $J())return"install_failed";let Z=await K("npm",["install",`@claudiolabs/claudin@${Q?Q:J==="stable"?"stable":"latest"}`],{cwd:S(),maxBuffer:1e6});if(Z.code!==0){let $=Error(`Failed to install Claude CLI package: ${Z.stderr}`);return q($),Z.code===190?"in_progress":"install_failed"}return v(($)=>({...$,installMethod:"local"})),"success"}catch(Y){return q(Y),"install_failed"}}async function PJ(){for(let J of m())for(let Q of d(J))try{return await P(Q),!0}catch{}return!1}async function fJ(){for(let J of m())for(let Q of d(J))try{return await P(Q),J}catch{}return null}function mJ(){let J=process.env.SHELL||"";if(J.includes("zsh"))return"zsh";if(J.includes("bash"))return"bash";if(J.includes("fish"))return"fish";return"unknown"}var u=M(()=>{D();b();R();I();F();E();C()});import{open as qJ,readFile as WJ,stat as KJ}from"fs/promises";import{homedir as h}from"os";import{join as U}from"path";function V(J){let Q=J?.homedir??h(),Z=(J?.env??process.env).ZDOTDIR||Q;return{zsh:U(Z,".zshrc"),bash:U(Q,".bashrc"),fish:U(Q,".config/fish/config.fish")}}function g(J){let Q=!1;return{filtered:J.filter((Z)=>{if(c.test(Z)){let $=Z.match(/alias\s+claude\s*=\s*["']([^"']+)["']/);if(!$)$=Z.match(/alias\s+claude\s*=\s*([^#\n]+)/);if($&&$[1]){if($[1].trim()===T())return Q=!0,!1}}return!0}),hadAlias:Q}}async function x(J){try{return(await WJ(J,{encoding:"utf8"})).split(`
|
|
3
|
-
`)}catch(Q){if(p(Q))return null;throw Q}}async function n(J,Q){let Y=await qJ(J,"w");try{await Y.writeFile(Q.join(`
|
|
4
|
-
`),{encoding:"utf8"}),await Y.datasync()}finally{await Y.close()}}async function NJ(J){let Q=V(J);for(let Y of Object.values(Q)){let Z=await x(Y);if(!Z)continue;for(let $ of Z)if(c.test($)){let N=$.match(/alias\s+claude=["']?([^"'\s]+)/);if(N&&N[1])return N[1]}}return null}async function nJ(J){let Q=await NJ(J);if(!Q)return null;let Y=J?.homedir??h(),Z=Q.startsWith("~")?Q.replace("~",Y):Q;try{let $=await KJ(Z);if($.isFile()||$.isSymbolicLink())return Q}catch{}return null}var c;var s=M(()=>{R();u();c=/^\s*alias\s+claude\s*=/});import{constants as yJ}from"fs";import{access as GJ,writeFile as a}from"fs/promises";import{homedir as X}from"os";import{join as _J}from"path";function r(){let J=process.argv[1]||"";if(J.includes("/.bun/install/global/"))return!0;let Q=process.env.BUN_INSTALL;if(Q&&J.startsWith(Q))return!0;return!1}async function vJ(){let J=await K("bun",["pm","ls","-g"],{cwd:X()});if(J.code!==0)return!1;return J.stdout.includes("@claudiolabs/claudin")}async function zQ(){}async function BQ(){return}async function HQ(){return}function OQ(J){let Y=i()?.minimumVersion;if(!Y)return!1;let Z=!o(J,Y);if(Z)W(`Skipping update to ${J} - below minimumVersion ${Y}`);return Z}function e(){return _J(H(),".update.lock")}async function wJ(){let J=y(),Q=e();try{let Y=await J.stat(Q);if(Date.now()-Y.mtimeMs<t)return!1;try{let $=await J.stat(Q);if(Date.now()-$.mtimeMs<t)return!1;await J.unlink(Q)}catch($){if(!w($))return q($),!1}}catch(Y){if(!w(Y))return q(Y),!1}try{return await a(Q,`${process.pid}`,{encoding:"utf8",flag:"wx"}),!0}catch(Y){let Z=O(Y);if(Z==="EEXIST")return!1;if(Z==="ENOENT")try{return await J.mkdir(H()),await a(Q,`${process.pid}`,{encoding:"utf8",flag:"wx"}),!0}catch($){if(O($)==="EEXIST")return!1;return q($),!1}return q(Y),!1}}async function MJ(){let J=y(),Q=e();try{if(await J.readFile(Q,{encoding:"utf8"})===`${process.pid}`)await J.unlink(Q)}catch(Y){if(w(Y))return;q(Y)}}async function RJ(){let J=G.isRunningWithBun()||r(),Q=null;if(J)Q=await K("bun",["pm","bin","-g"],{cwd:X()});else Q=await K("npm",["-g","config","get","prefix"],{cwd:X()});if(Q.code!==0)return q(Error(`Failed to check ${J?"bun":"npm"} permissions`)),null;return Q.stdout.trim()}async function SJ(){try{let J=await RJ();if(!J)return{hasPermissions:!1,npmPrefix:null};try{return await GJ(J,yJ.W_OK),{hasPermissions:!0,npmPrefix:J}}catch{return q(new _("Insufficient permissions for global npm install.")),{hasPermissions:!1,npmPrefix:J}}}catch(J){return q(J),{hasPermissions:!1,npmPrefix:null}}}async function yQ(J,Q={}){let Y=J==="stable"?"stable":"latest",Z=Q.timeoutMs??5000,$=await K("npm",["view",`@claudiolabs/claudin@${Y}`,"version","--prefer-online"],{abortSignal:AbortSignal.timeout(Z),cwd:X()});if($.code!==0){if(W(`npm view failed with code ${$.code}`),$.stderr)W(`npm stderr: ${$.stderr.trim()}`);else W("npm stderr: (empty)");if($.stdout)W(`npm stdout: ${$.stdout.trim()}`);return null}return $.stdout.trim()}async function GQ(){let J=await K("npm",["view","@claudiolabs/claudin","dist-tags","--json","--prefer-online"],{abortSignal:AbortSignal.timeout(5000),cwd:X()});if(J.code!==0)return W(`npm view dist-tags failed with code ${J.code}`),{latest:null,stable:null};try{let Q=j(J.stdout.trim());return{latest:typeof Q.latest==="string"?Q.latest:null,stable:typeof Q.stable==="string"?Q.stable:null}}catch(Q){return W(`Failed to parse dist-tags: ${Q}`),{latest:null,stable:null}}}async function _Q(J){return null}async function vQ(){return{latest:null,stable:null}}async function wQ(J){let Y=await K("npm",["view","@claudiolabs/claudin","versions","--json","--prefer-online"],{abortSignal:AbortSignal.timeout(30000),cwd:X()});if(Y.code!==0){if(W(`npm view versions failed with code ${Y.code}`),Y.stderr)W(`npm stderr: ${Y.stderr.trim()}`);return[]}try{return j(Y.stdout.trim()).slice(-J).reverse()}catch(Z){return W(`Failed to parse version history: ${Z}`),[]}}async function MQ(J){if(!await wJ())return q(new _("Another process is currently installing an update")),A("tengu_auto_updater_lock_contention",{pid:process.pid,currentVersion:"99.0.0"}),"in_progress";try{if(await TJ(),!G.isRunningWithBun()&&G.isNpmFromWindowsPath())return q(Error("Windows NPM detected in WSL environment")),A("tengu_auto_updater_windows_npm_in_wsl",{currentVersion:"99.0.0"}),console.error(`
|
|
5
|
-
Error: Windows NPM detected in WSL
|
|
6
|
-
|
|
7
|
-
You're running Claude Code in WSL but using the Windows NPM installation from /mnt/c/.
|
|
8
|
-
This configuration is not supported for updates.
|
|
9
|
-
|
|
10
|
-
To fix this issue:
|
|
11
|
-
1. Install Node.js within your Linux distribution: e.g. sudo apt install nodejs npm
|
|
12
|
-
2. Make sure Linux NPM is in your PATH before the Windows version
|
|
13
|
-
3. Try updating again with 'claude update'
|
|
14
|
-
`),"install_failed";let{hasPermissions:Q}=await SJ();if(!Q)return"no_permissions";let Y=J?`@claudiolabs/claudin@${J}`:"@claudiolabs/claudin",Z=G.isRunningWithBun()||r()?"bun":"npm",N=await K(Z,Z==="npm"?["install","-g","--force",Y]:["install","-g",Y],{cwd:X()});if(N.code!==0){let z=new _(`Failed to install new version of claude: ${N.stdout} ${N.stderr}`);return q(z),"install_failed"}if(Z==="npm"&&await vJ()){let z=await K("bun",["install","-g",Y],{cwd:X()});if(z.code!==0)q(new _(`Failed to update bun global install: ${z.stdout} ${z.stderr}`))}return v((z)=>({...z,installMethod:"global"})),"success"}finally{await MJ()}}async function TJ(){let J=V();for(let[,Q]of Object.entries(J))try{let Y=await x(Q);if(!Y)continue;let{filtered:Z,hadAlias:$}=g(Y);if($)await n(Q,Z),W(`Removed claude alias from ${Q}`)}catch(Y){W(`Failed to remove alias from ${Q}: ${Y}`,{level:"error"})}}var _,t=300000;var UJ=M(()=>{XJ();D();zJ();BJ();b();R();I();F();E();OJ();HJ();s();C();_=class _ extends l{}});
|
|
15
|
-
export{DJ as ET,EJ as FT,PJ as GT,fJ as HT,mJ as IT,u as JT,V as KT,g as LT,x as MT,n as NT,NJ as OT,nJ as PT,s as QT,zQ as RT,BQ as ST,HQ as TT,OQ as UT,e as VT,SJ as WT,yQ as XT,GQ as YT,_Q as ZT,vQ as _T,wQ as $T,MQ as aU,UJ as bU};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{DH as U,EH as w}from"./cli-1.0.3-2wzvc8te.mjs";import{I0 as k,IY as f,b0 as N,d0 as O}from"./cli-1.0.3-kesrsh8z.mjs";import{O2 as M,P2 as H,Q2 as R}from"./cli-1.0.3-wv4vx65k.mjs";import{Tqa as Y,Xqa as Z}from"./cli-1.0.3-vzm5gxzn.mjs";function _(X){let q=V.c(10),{message:I,bold:P,dimColor:Q,subtitle:D}=X,J=P===void 0?!1:P,K=Q===void 0?!1:Q,E;if(q[0]===Symbol.for("react.memo_cache_sentinel"))E=M(U,{}),q[0]=E;else E=q[0];let v;if(q[1]!==J||q[2]!==K||q[3]!==I)v=H(N,{flexDirection:"row",children:[E,H(O,{bold:J,dimColor:K,children:[" ",I]})]}),q[1]=J,q[2]=K,q[3]=I,q[4]=v;else v=q[4];let z;if(q[5]!==D)z=D&&M(O,{dimColor:!0,children:D}),q[5]=D,q[6]=z;else z=q[6];let G;if(q[7]!==v||q[8]!==z)G=H(N,{flexDirection:"column",children:[v,z]}),q[7]=v,q[8]=z,q[9]=G;else G=q[9];return G}var V;var A=Z(()=>{k();w();R();V=Y(f(),1)});
|
|
2
|
-
export{_ as Hg,A as Ig};
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import{Ac as Kc,Bc as da}from"./cli-1.0.3-emmwm5h6.mjs";import{Cc as An,Dc as Ht,Ec as Xt,Fc as Zc,Hc as ea}from"./cli-1.0.3-j72ztden.mjs";import{Ic as wt,Lc as ma}from"./cli-1.0.3-zzg0y9xx.mjs";import{Cx as Jc,DH as Hn,EF as yt,EH as Au,Ex as ra,FF as Kn,GH as la,HH as oa,Kp as yc,Lp as Wu,Lw as Qc,Mp as Cc,Mw as Gc,Np as bc,Nw as Vc,OF as V,Op as wc,Ow as Yc,PF as gu,Pp as Oc,Pw as ha,QF as ia,Qp as D,Rp as mn,Sp as Uu,Tp as Lc,Vp as zc,Wp as Nc,Yp as fc,dG as nc,eG as Gu,fG as cc,gG as uc,hG as ac,iG as Vu,nq as Mc,oq as aa}from"./cli-1.0.3-2wzvc8te.mjs";import{GX as v,IX as ca,UX as Fc,VX as ua}from"./cli-1.0.3-hz5a6e6w.mjs";import{I0 as Ln,b0 as g,d0 as i}from"./cli-1.0.3-kesrsh8z.mjs";import{L1 as Nn,M1 as Mn,N1 as Qn,O1 as Gn,P1 as Vn,Q1 as su,T1 as Yn,X1 as Jn,Y1 as $c,Z1 as Zn}from"./cli-1.0.3-r274tqxg.mjs";import{N2 as dt,O2 as u,P2 as y,Q2 as Qt}from"./cli-1.0.3-wv4vx65k.mjs";import{R2 as Vt}from"./cli-1.0.3-n9tzv3mz.mjs";import{m3 as lc,n3 as Hu}from"./cli-1.0.3-r2amtv3x.mjs";import{D3 as $n,F3 as Ou}from"./cli-1.0.3-5psnr7wf.mjs";import{$da as Rt,Bea as Sc,Cea as gn,Lda as qc,Mda as bt,Nda as ta,Oda as Tt,Pda as nt,Qea as na,Rda as W,Sda as Kt,Uda as ft,Vda as Cn,Wda as ct,Xda as At,Y8 as Ct,Z8 as vu,aea as bn,cea as wn,gea as Fn,lea as hn,mea as xn,nea as jn,oea as Yt,pea as rn,qea as Dn,rea as an,sea as vn,tea as tc,uea as Qu,vea as On,wea as rc,xea as sn,zea as ic}from"./cli-1.0.3-4m0kzrq4.mjs";import{Dja as ut,Lja as on}from"./cli-1.0.3-1f00zm8y.mjs";import{Tqa as Gt,Uqa as Du,Xqa as j}from"./cli-1.0.3-vzm5gxzn.mjs";function zu(t,c=tn,a){let r=nt().find((m)=>m.provider==="openai"&&m.extras?.githubToken!==void 0);if(r)return At(r.id,{provider:"openai",name:r.name,baseUrl:a||r.baseUrl,model:r.model||c,apiKey:t,extras:{...r.extras,githubToken:t}}),Rt(r.id),{mode:"updated"};return ct({provider:"openai",name:"GitHub Copilot",baseUrl:a||Ru,model:c,apiKey:t,extras:{githubToken:t}},{makeActive:!0}),{mode:"created"}}function Tn({onDone:t,onBack:c,onChangeAPIKey:a}){let r=Yn()?.trim()?"already-authed":"menu",[m,e]=E.useState(r),[A,O]=E.useState(null),[X,w]=E.useState(""),[z,S]=E.useState(0),[L,Z]=E.useState(null),N=E.useCallback(async(Y,q=tn,tt,f)=>{let T=Jn(Y,tt,f?.enterpriseDomain);if(!T.success){O(T.warning??"Could not save token to secure storage."),e("error");return}zu(Y,q,f?.baseUrl),$n(),a?.(),t("GitHub Copilot onboard complete. Copilot token stored in secure storage and as the active /provider profile.",{display:"user"})},[a,t]),C=E.useCallback(async(Y)=>{e("device-busy"),O(null),Z(null);try{let q=await Mn({domain:Y});Z({user_code:q.user_code,verification_uri:q.verification_uri}),await Gn(q.verification_uri);let tt=await Qn(q.device_code,{initialInterval:q.interval,timeoutSeconds:q.expires_in,domain:Y}),f=await Vn(tt,{domain:Y});await N(f.token,tn,tt,{baseUrl:f.endpoints.api?.replace(/\/+$/,"")||void 0,enterpriseDomain:Y})}catch(q){O(q instanceof Error?q.message:String(q)),e("error")}},[N]);if(m==="already-authed")return y(g,{flexDirection:"column",gap:1,children:[u(i,{bold:!0,children:"GitHub Copilot"}),u(i,{children:"You are already signed in to GitHub Copilot."}),u(i,{dimColor:!0,children:'Choose "Sign in again" to refresh your token, or go back to the provider menu.'}),u(V,{options:[{label:"Sign in again",value:"sign-in-again"},{label:"Sign in with GitHub Enterprise",value:"enterprise"},{label:c?"Back to /provider menu":"Cancel",value:"back"}],onChange:(q)=>{if(q==="sign-in-again"){C();return}if(q==="enterprise"){e("enterprise-domain");return}if(c){c();return}t("GitHub onboard cancelled",{display:"system"})}})]});if(m==="enterprise-domain")return y(g,{flexDirection:"column",gap:1,children:[u(i,{bold:!0,children:"GitHub Enterprise sign-in"}),u(i,{dimColor:!0,children:"Enter your GitHub Enterprise domain (e.g. github.acme.com). Leave empty for github.com."}),y(g,{flexDirection:"row",gap:1,children:[u(i,{children:">"}),u(yt,{value:X,onChange:w,onSubmit:()=>{let q=Nn(X);if(!q){C();return}C(q)},onExit:()=>e(r),focus:!0,showCursor:!0,placeholder:"github.acme.com",columns:80,cursorOffset:z,onChangeCursorOffset:S})]}),u(i,{dimColor:!0,children:"Press Enter to continue. Press Esc to go back."})]});if(m==="error"&&A)return y(g,{flexDirection:"column",gap:1,children:[u(i,{color:"red",children:A}),u(V,{options:[{label:c?"Back to /provider menu":"Back to menu",value:"back"},{label:"Exit",value:"exit"}],onChange:(q)=>{if(q==="back"){if(c){c();return}e("menu"),O(null);return}t("GitHub onboard cancelled",{display:"system"})}})]});if(m==="device-busy")return y(g,{flexDirection:"column",gap:1,children:[u(i,{children:"GitHub Copilot sign-in"}),L?y(dt,{children:[y(i,{children:["Enter code ",u(i,{bold:!0,children:L.user_code})," at"," ",L.verification_uri]}),u(i,{dimColor:!0,children:"A browser window may have opened. Waiting for authorization..."})]}):u(i,{dimColor:!0,children:"Requesting device code from GitHub..."}),u(Hn,{})]});return y(g,{flexDirection:"column",gap:1,children:[u(i,{bold:!0,children:"GitHub Copilot setup"}),u(i,{dimColor:!0,children:"Stores your token in the OS credential store (macOS Keychain when available) and creates a /provider profile so Copilot is the active provider — no manual env exports required."}),u(V,{options:[{label:"Sign in with browser",value:"device"},{label:"Sign in with GitHub Enterprise",value:"enterprise"},{label:c?"Back to /provider menu":"Cancel",value:"cancel"}],onChange:(Y)=>{if(Y==="cancel"){if(c){c();return}t("GitHub onboard cancelled",{display:"system"});return}if(Y==="enterprise"){e("enterprise-domain");return}C()}})]})}var E,tn="github:copilot",Ru="https://api.githubcopilot.com";var Wn=j(()=>{gu();Au();Kn();Ln();su();Zn();Ou();Fn();Qt();E=Gt(Vt(),1)});function En(t){return[t.name,t.family??"",...t.families??[],t.parameterSize??"",t.quantizationLevel??""].join(" ").toLowerCase()}function zt(t,c){return c.some((a)=>t.includes(a))}function _u(t){return!zt(En(t),Un)}function qu(t){return t.find(_u)??null}function nn(t){let a=`${t.parameterSize??""} ${t.name}`.toLowerCase().match(/(\d+(?:\.\d+)?)\s*b\b/);if(a?.[1])return Number(a[1]);if(typeof t.sizeBytes==="number"&&t.sizeBytes>0)return Number((t.sizeBytes/1e9).toFixed(1));return null}function Su(t){return(t.quantizationLevel??t.name).toLowerCase()}function Fu(t,c,a){if(t===null)return a.push("unknown size"),0;if(c==="latency"){if(t<=4)return a.push("tiny model for low latency"),32;if(t<=8)return a.push("small model for fast responses"),26;if(t<=14)return a.push("mid-sized model with acceptable latency"),16;if(t<=24)return a.push("larger model may be slower"),8;return a.push("large model likely slower locally"),t<=40?0:-8}if(c==="coding"){if(t>=7&&t<=14)return a.push("strong coding size tier"),24;if(t>14&&t<=34)return a.push("large coding-capable size tier"),28;if(t>34)return a.push("very large model with higher quality potential"),18;return a.push("compact model may trade off coding depth"),12}if(t>=7&&t<=14)return a.push("great balanced size tier"),26;if(t>=3&&t<7)return a.push("compact balanced size tier"),18;if(t>14&&t<=24)return a.push("high quality balanced size tier"),20;if(t>24)return a.push("large model for quality-first usage"),10;return a.push("very small model for general usage"),8}function $u(t,c,a){let r=Su(t);if(r.includes("q4"))return a.push("efficient Q4 quantization"),c==="latency"?8:4;if(r.includes("q5"))return a.push("balanced Q5 quantization"),c==="latency"?6:5;if(r.includes("q8"))return a.push("higher quality Q8 quantization"),c==="latency"?2:5;return 0}function Lu(t,c,a){if(c.score!==t.score)return c.score-t.score;let r=nn(t)??Number.POSITIVE_INFINITY,m=nn(c)??Number.POSITIVE_INFINITY;if(a==="latency")return r-m;if(a==="coding")return m-r;let e=14;return Math.abs(r-e)-Math.abs(m-e)}function cn(t,c){return t.map((a)=>{let r=En(a),m=[],e=0;if(zt(r,Un))e-=40,m.push("not a chat-first model");if(zt(r,fu))e+=c==="coding"?24:c==="balanced"?10:4,m.push("coding-oriented model family");if(zt(r,Xu))e+=c==="latency"?4:c==="coding"?6:8,m.push("strong general-purpose model family");if(zt(r,ku))e+=c==="latency"?2:6,m.push("chat/instruct tuned");if(r.includes("vision")||r.includes("vl"))e-=2,m.push("vision model adds extra overhead");e+=Fu(nn(a),c,m),e+=$u(a,c,m);let A=m.slice(0,3).join(", ");return{...a,score:e,reasons:m,summary:A}}).sort((a,r)=>Lu(a,r,c))}function Pn(t,c){return qu(cn(t,c))}var fu,Xu,ku,Un;var Bn=j(()=>{fu=["coder","codellama","codegemma","codestral","devstral","starcoder","deepseek-coder","qwen2.5-coder","qwen-coder"],Xu=["llama","qwen","mistral","gemma","phi","deepseek"],ku=["instruct","chat","assistant"],Un=["embed","embedding","rerank","bge","whisper"]});function Mu(t){let c=t.toLowerCase();return Nu.some((a)=>c.includes(a))}function un(t){try{let c=new URL(t);if(c.username)c.username="redacted";if(c.password)c.password="redacted";for(let a of c.searchParams.keys())if(Mu(a))c.searchParams.set(a,"redacted");return c.toString()}catch{return t.replace(/\/\/[^/@\s]+(?::[^/@\s]*)?@/g,"//redacted@").replace(/([?&](?:token|access_token|refresh_token|api_key|apikey|key|password|passwd|pwd|auth|authorization|signature|sig|secret)=)[^&#]*/gi,"$1redacted")}}var Nu;var In=j(()=>{Nu=["api_key","apikey","key","token","access_token","refresh_token","signature","sig","secret","password","passwd","pwd","auth","authorization"]});function Yu(t){let c=`http://localhost:${t.port}/auth/callback`,a=new URL(`${hn}/oauth/authorize`);return a.searchParams.append("response_type","code"),a.searchParams.append("client_id",rn()),a.searchParams.append("redirect_uri",c),a.searchParams.append("scope",xn),a.searchParams.append("code_challenge",t.codeChallenge),a.searchParams.append("code_challenge_method","S256"),a.searchParams.append("id_token_add_organizations","true"),a.searchParams.append("codex_cli_simplified_flow","true"),a.searchParams.append("state",t.state),a.searchParams.append("originator",jn),a.toString()}function Ju(){return`<!doctype html>
|
|
2
|
-
<html lang="en">
|
|
3
|
-
<head>
|
|
4
|
-
<meta charset="utf-8" />
|
|
5
|
-
<title>Codex Login Complete</title>
|
|
6
|
-
<style>
|
|
7
|
-
body { font-family: sans-serif; padding: 32px; line-height: 1.5; color: #111827; }
|
|
8
|
-
h1 { margin: 0 0 12px; font-size: 22px; }
|
|
9
|
-
p { margin: 0 0 10px; }
|
|
10
|
-
</style>
|
|
11
|
-
</head>
|
|
12
|
-
<body>
|
|
13
|
-
<h1>Codex login complete</h1>
|
|
14
|
-
<p>You can return to Claudin now.</p>
|
|
15
|
-
<p>Claudin will finish activating your new Codex OAuth login.</p>
|
|
16
|
-
</body>
|
|
17
|
-
</html>`}function Zu(t){return`<!doctype html>
|
|
18
|
-
<html lang="en">
|
|
19
|
-
<head>
|
|
20
|
-
<meta charset="utf-8" />
|
|
21
|
-
<title>Codex Login Failed</title>
|
|
22
|
-
<style>
|
|
23
|
-
body { font-family: sans-serif; padding: 32px; line-height: 1.5; color: #111827; }
|
|
24
|
-
h1 { margin: 0 0 12px; font-size: 22px; color: #991b1b; }
|
|
25
|
-
p { margin: 0 0 10px; }
|
|
26
|
-
</style>
|
|
27
|
-
</head>
|
|
28
|
-
<body>
|
|
29
|
-
<h1>Codex login failed</h1>
|
|
30
|
-
<p>${vn(t)}</p>
|
|
31
|
-
<p>You can close this window and try again in Claudin.</p>
|
|
32
|
-
</body>
|
|
33
|
-
</html>`}function pn(){return`<!doctype html>
|
|
34
|
-
<html lang="en">
|
|
35
|
-
<head>
|
|
36
|
-
<meta charset="utf-8" />
|
|
37
|
-
<title>Codex Login Cancelled</title>
|
|
38
|
-
<style>
|
|
39
|
-
body { font-family: sans-serif; padding: 32px; line-height: 1.5; color: #111827; }
|
|
40
|
-
h1 { margin: 0 0 12px; font-size: 22px; }
|
|
41
|
-
p { margin: 0 0 10px; }
|
|
42
|
-
</style>
|
|
43
|
-
</head>
|
|
44
|
-
<body>
|
|
45
|
-
<h1>Codex login cancelled</h1>
|
|
46
|
-
<p>You can close this window and retry in Claudin.</p>
|
|
47
|
-
</body>
|
|
48
|
-
</html>`}async function Ku(t){let c=`http://localhost:${t.port}/auth/callback`,a=new URLSearchParams({grant_type:"authorization_code",code:t.authorizationCode,redirect_uri:c,client_id:rn(),code_verifier:t.codeVerifier}),r=await fetch(`${hn}/oauth/token`,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:a,signal:t.signal?AbortSignal.any([t.signal,AbortSignal.timeout(15000)]):AbortSignal.timeout(15000)});if(!r.ok){let w=await r.text().catch(()=>"");throw Error(w.trim()?`Codex OAuth token exchange failed (${r.status}): ${w.trim()}`:`Codex OAuth token exchange failed with status ${r.status}.`)}let m=await r.json(),e=Yt(m.access_token),A=Yt(m.refresh_token);if(!e||!A)throw Error("Codex OAuth completed, but the token response was missing credentials.");let O=Yt(m.id_token);return{apiKey:O?await tc(O).catch(()=>{return}):void 0,accessToken:e,refreshToken:A,idToken:O,accountId:an(O)??an(e)}}class ln{authCodeListener=null;port=null;tokenExchangeAbortController=null;buildCancellationError(){return Error("Codex OAuth flow was cancelled.")}async startOAuthFlow(t){let c=cc(),a=Dn(),r=new nc("/auth/callback");this.authCodeListener=r,this.port=null;try{let m=await r.start(a);this.port=m;let e=ac(),A=await uc(c),O=Yu({port:m,codeChallenge:A,state:e});try{let X=await r.waitForAuthorization(e,async()=>{await t(O)}),w=new AbortController;this.tokenExchangeAbortController=w;let z;try{z=await Ku({authorizationCode:X,codeVerifier:c,port:m,signal:w.signal})}finally{if(this.tokenExchangeAbortController===w)this.tokenExchangeAbortController=null}if(this.authCodeListener!==r)throw this.buildCancellationError();return r.handleSuccessRedirect([],(S)=>{S.writeHead(200,{"Content-Type":"text/html; charset=utf-8"}),S.end(Ju())}),z}catch(X){let w=this.authCodeListener===r?X:this.buildCancellationError();if(r.hasPendingResponse()){let z=w instanceof Error&&w.message==="Codex OAuth flow was cancelled.";r.handleErrorRedirect((S)=>{S.writeHead(z?200:400,{"Content-Type":"text/html; charset=utf-8"}),S.end(z?pn():Zu(w instanceof Error?w.message:String(w)))})}throw w}finally{this.cleanup()}}catch(m){let e=m instanceof Error?m.message:String(m);if(e.includes("EADDRINUSE")||e.includes(String(a)))throw Error(`Codex OAuth needs localhost:${a} for its callback. Close any app already using that port and try again.`);throw m}}cleanup(){let t=this.buildCancellationError();if(this.tokenExchangeAbortController?.abort(t),this.tokenExchangeAbortController=null,this.authCodeListener?.hasPendingResponse())this.authCodeListener.handleErrorRedirect((c)=>{c.writeHead(200,{"Content-Type":"text/html; charset=utf-8"}),c.end(pn())});this.authCodeListener?.cancelPendingAuthorization(t),this.authCodeListener=null,this.port=null}}var hc=j(()=>{Gu();Vu();Qu()});function Tu(){return new ln}function oc(t){let{onAuthenticated:c}=t,a=t.deps?.createOAuthService??Tu,r=t.deps?.openBrowser??lc,m=t.deps?.saveCodexCredentials??rc,e=t.deps?.isBareMode??ut,[A,O]=Jt.useState({state:"starting"});return Jt.useEffect(()=>{if(e()){O({state:"error",message:"Codex OAuth is unavailable in --bare because secure storage is disabled."});return}let X=!1,w=a();return w.startOAuthFlow(async(z)=>{if(X)return;O({state:"waiting",authUrl:z,browserOpened:null});let S=await r(z);if(X)return;O({state:"waiting",authUrl:z,browserOpened:S})}).then(async(z)=>{if(X)return;await c(z,(L)=>{let Z=m({apiKey:z.apiKey,accessToken:z.accessToken,refreshToken:z.refreshToken,idToken:z.idToken,accountId:z.accountId,profileId:L?.profileId});if(!Z.success)throw Error(Z.warning??"Codex OAuth succeeded, but credentials could not be saved securely.")})}).catch((z)=>{if(X)return;O({state:"error",message:z instanceof Error?z.message:String(z)})}),()=>{X=!0,w.cleanup()}},[a,e,c,r,m]),A}var Jt;var mc=j(()=>{hc();Hu();ic();on();Jt=Gt(Vt(),1)});function Ac(){return{"Content-Type":"application/x-www-form-urlencoded",Accept:"application/json","User-Agent":yc()}}function dc(t,c){let a=Number(t);return Number.isFinite(a)&&a>0?a*1000:c}function Iu(t,c){if(c?.aborted)return Promise.resolve();return new Promise((a)=>{let r=setTimeout(()=>{c?.removeEventListener("abort",m),a()},t),m=()=>{clearTimeout(r),a()};c?.addEventListener("abort",m,{once:!0})})}async function pu(t){let c=t?.fetchImpl??fetch,a=t?.signal?AbortSignal.any([t.signal,AbortSignal.timeout(15000)]):AbortSignal.timeout(15000),r=await c(bc,{method:"POST",headers:Ac(),body:new URLSearchParams({client_id:mn(),scope:Oc}).toString(),signal:a});if(!r.ok){let X=await r.text().catch(()=>"");throw Error(`xAI device code request failed (${r.status})${X?`: ${X.trim()}`:""}`)}let m=await r.json(),e=D(m.device_code),A=D(m.user_code),O=D(m.verification_uri);if(!e||!A||!O)throw Error("xAI device code response is missing device_code / user_code / verification_uri.");return{device_code:e,user_code:A,verification_uri:O,verification_uri_complete:D(m.verification_uri_complete),expires_in:typeof m.expires_in==="number"&&m.expires_in>0?m.expires_in:gc/1000,interval:typeof m.interval==="number"&&m.interval>0?m.interval:sc/1000}}async function xu(t,c){let a=c?.fetchImpl??fetch,r=c?.sleep??Iu,m=c?.now??(()=>Date.now()),e=dc(t.expires_in,gc),A=m()+e,O=Math.max(dc(t.interval,sc),Eu);while(m()<A){if(c?.signal?.aborted)throw Error("xAI device authorization was cancelled.");let X=await a(Cc,{method:"POST",headers:Ac(),body:new URLSearchParams({grant_type:wc,client_id:mn(),device_code:t.device_code}).toString(),signal:c?.signal});if(X.ok){let L=await X.json(),Z=D(L.access_token),N=D(L.refresh_token);if(!Z||!N)throw Error("xAI OAuth completed, but the token response was missing credentials.");let C=typeof L.expires_in==="number"&&Number.isFinite(L.expires_in)&&L.expires_in>0?L.expires_in:3600;return{accessToken:Z,refreshToken:N,idToken:D(L.id_token),expiresAt:m()+C*1000}}let w=await X.json().catch(()=>({})),z=Math.max(0,A-m());if(w.error==="authorization_pending"){await r(Math.min(O+ec,z),c?.signal);continue}if(w.error==="slow_down"){O=Math.min(O+Pu,Bu),await r(Math.min(O+ec,z),c?.signal);continue}if(w.error==="access_denied"||w.error==="authorization_denied")throw Error("xAI device authorization was denied.");if(w.error==="expired_token")throw Error("xAI device code expired - please re-run login.");let S=w.error_description??w.error??"";throw Error(`xAI device token exchange failed (${X.status})${S?`: ${S}`:""}`)}throw Error("xAI device authorization timed out.")}class en{abortController=null;async startDeviceFlow(t){let c=new AbortController;this.abortController=c;try{let a=await pu({signal:c.signal});return await t(a),await xu(a,{signal:c.signal})}finally{if(this.abortController===c)this.abortController=null}}cleanup(){this.abortController?.abort(Error("xAI device authorization was cancelled.")),this.abortController=null}}var sc=5000,Eu=1000,Pu=5000,Bu=60000,gc=300000,ec=3000;var Rc=j(()=>{Wu();Uu()});function ju(){return new en}function Xc(t){let{onAuthenticated:c}=t,a=t.deps?.createOAuthService??ju,r=t.deps?.saveXaiCredentials??zc,m=t.deps?.isBareMode??ut,[e,A]=Zt.useState({state:"starting"});return Zt.useEffect(()=>{if(m()){A({state:"error",message:"xAI OAuth is unavailable in --bare because secure storage is disabled."});return}let O=!1,X=a();return X.startDeviceFlow(async(w)=>{if(O)return;A({state:"waiting",userCode:w.user_code,verificationUri:w.verification_uri,verificationUriComplete:w.verification_uri_complete})}).then(async(w)=>{if(O)return;await c(w,(S)=>{let L=r({accessToken:w.accessToken,refreshToken:w.refreshToken,idToken:w.idToken,expiresAt:w.expiresAt,profileId:S?.profileId});if(!L.success)throw Error(L.warning??"xAI OAuth succeeded, but credentials could not be saved securely.")})}).catch((w)=>{if(O)return;A({state:"error",message:w instanceof Error?w.message:String(w)})}),()=>{O=!0,X.cleanup()}},[a,m,c,r]),e}var Zt;var kc=j(()=>{Rc();on();fc();Zt=Gt(Vt(),1)});function sa(t){return{name:t.name,baseUrl:t.baseUrl,model:t.model,apiKey:t.apiKey??""}}function ga(t){let c=Tt(t);return{name:c.name,baseUrl:c.baseUrl,model:c.model,apiKey:c.apiKey??""}}function Aa(t){let c={};for(let a of t.split(/\r?\n/)){let r=a.trim();if(!r)continue;let m=r.indexOf(":");if(m<=0)continue;let e=r.slice(0,m).trim(),A=r.slice(m+1).trim();if(e&&A)c[e]=A}return c}function Ra(t){if(!t)return"";return Object.entries(t).map(([c,a])=>`${c}: ${a}`).join(`
|
|
49
|
-
`)}function za(t,c){let a={},r=t.awsRegion?.trim();if(r)a.awsRegion=r;let m=t.gcpProject?.trim();if(m)a.gcpProject=m;let e=t.gcpRegion?.trim();if(e)a.gcpRegion=e;let A=t.azureResource?.trim();if(A)a.azureResource=A;let O=Aa(c);if(Object.keys(O).length>0)a.customHeaders=O;return Object.keys(a).length>0?a:void 0}function Xa(t,c){let a=c?" (active)":"",r=t.apiKey?"key set":"no key",m=t.provider==="anthropic"?"anthropic":"openai-compatible",e=qc(t.model),A=e.length<=3?e.join(", "):`${e[0]}, ${e[1]} + ${e.length-2} more`;return`${m} · ${t.baseUrl} · ${A} · ${r}${a}`}function ka(t,c){if(t.state==="unreachable")return`Could not reach Atomic Chat at ${un(c)}. Start the Atomic Chat app first, or enter the endpoint manually.`;if(t.state==="no_models")return"Atomic Chat is running, but no models are loaded. Download and load a model inside the Atomic Chat app first, or enter details manually.";return""}function _a(t,c){if(t.state==="unreachable")return`Could not reach Ollama at ${un(c)}. Start Ollama first, or enter the endpoint manually.`;if(t.state==="no_models")return"Ollama is running, but no installed models were found. Pull a chat model such as qwen2.5-coder:7b or llama3.1:8b first, or enter details manually.";if(t.state==="generation_failed"){let a=t.probeModel??"the selected model",r=t.detail?` Details: ${t.detail}.`:"";return`Ollama is reachable and models are installed, but a generation probe failed for ${a}.${r} Run "ollama run ${a}" once and retry, or enter details manually.`}return""}function yn(t,c){if(!c)return;return t.find((a)=>a.id===c)}function _c(t,c){return Boolean(t&&c&&t.id===c)}function qa({onBack:t,onConfigured:c}){let a=b.useCallback(async(m,e)=>{await c(m,e)},[c]);v("confirm:no",t,[t]);let r=oc({onAuthenticated:a});if(r.state==="error")return y(g,{flexDirection:"column",gap:1,children:[u(i,{color:"error",bold:!0,children:"Codex OAuth failed"}),u(i,{children:r.message}),u(i,{dimColor:!0,children:"Press Enter or Esc to go back."}),u(V,{options:[{value:"back",label:"Back",description:"Return to provider presets"}],onChange:t,onCancel:t,visibleOptionCount:1})]});return y(g,{flexDirection:"column",gap:1,children:[u(i,{color:"remember",bold:!0,children:"Codex OAuth"}),u(i,{children:"Sign in with your ChatGPT account in the browser. Claudin will store the resulting Codex credentials securely and switch this session to the new Codex login when setup completes."}),r.state==="starting"?u(i,{dimColor:!0,children:"Starting local callback and preparing your browser..."}):r.browserOpened===!1?y(dt,{children:[u(i,{color:"warning",children:"Browser did not open automatically. Visit this URL to continue:"}),u(i,{children:r.authUrl})]}):r.browserOpened===!0?y(dt,{children:[u(i,{dimColor:!0,children:"Browser opened. Finish the ChatGPT sign-in there and this setup will complete automatically."}),u(i,{children:r.authUrl})]}):u(i,{dimColor:!0,children:"Opening your browser..."}),u(i,{dimColor:!0,children:"Press Esc to cancel and go back."})]})}function Sa({onBack:t,onConfigured:c}){let a=b.useCallback(async(m,e)=>{await c(m,e)},[c]);v("confirm:no",t,[t]);let r=Xc({onAuthenticated:a});if(r.state==="error")return y(g,{flexDirection:"column",gap:1,children:[u(i,{color:"error",bold:!0,children:"xAI OAuth failed"}),u(i,{children:r.message}),u(i,{dimColor:!0,children:"Press Enter or Esc to go back."}),u(V,{options:[{value:"back",label:"Back",description:"Return to provider presets"}],onChange:t,onCancel:t,visibleOptionCount:1})]});return y(g,{flexDirection:"column",gap:1,children:[u(i,{color:"remember",bold:!0,children:"xAI / Grok OAuth"}),r.state==="starting"?u(i,{dimColor:!0,children:"Requesting a device code from xAI..."}):y(dt,{children:[y(i,{children:["Open this URL on any device:"," ",u(i,{bold:!0,children:r.verificationUri})]}),y(i,{children:["Enter code ",u(i,{bold:!0,children:r.userCode})]}),r.verificationUriComplete&&r.verificationUriComplete!==r.verificationUri?y(i,{dimColor:!0,children:["Or open this prefilled URL: ",r.verificationUriComplete]}):null,u(i,{dimColor:!0,children:"Waiting for you to authorize in the browser..."})]}),u(i,{dimColor:!0,children:"Press Esc to cancel and go back."})]})}function Sh({mode:t,onDone:c}){let a=Jc(),[r,m]=b.useState([]),[e,A]=b.useState(),[O,X]=b.useState(),[w,z]=b.useState(!1),[S,L]=b.useState(),Z=b.useRef(0),[N,C]=b.useState(t==="first-run"?"select-preset":"menu"),[ht,Y]=b.useState(null),[q,tt]=b.useState("openai"),[f,T]=b.useState(()=>ga("ollama")),[Wt,kt]=b.useState({}),[Rn,Ut]=b.useState(""),[Hc,Tc]=b.useState(0),[Wc,Uc]=b.useState(0),[Et,zn]=b.useState(null),[rt,Ot]=b.useState(0),[it,P]=b.useState(0),[Ec,B]=b.useState(0),[fn,M]=b.useState(),[lt,R]=b.useState(),[Pc,Bc]=b.useState(),[Xn,_t]=b.useState(!1),[st,gt]=b.useState(),[I,qt]=b.useState({state:"idle"}),[p,St]=b.useState({state:"idle"}),[x,Pt]=b.useState({state:"idle"}),[Ic,pc]=b.useState(!0),[xc,H]=b.useState(!1),Bt=b.useRef(!1),[It,pt]=b.useState(()=>Xt()),[kn,jc]=b.useState(()=>Zc());b.useEffect(()=>{queueMicrotask(()=>{let n=nt(),h=W()?.id;m(n),A(h),X(Kt()),L(Cn()),z(ft()),pc(!1)})},[]);let ot=at[it]??at[0],Ft=ot.key,Dc=f[Ft],xt=r.length>0,$t=xt,_n=b.useMemo(()=>[{value:"add",label:"Add provider",description:"Create a new provider profile"},...It?[{value:"import-legacy",label:"Import from Claude Code",description:"Copy ~/.claude/ tokens, settings, skills, agents, plugins."}]:[],{value:"activate",label:"Set active provider (Global)",description:S?`Currently: ${r.find((n)=>n.id===S)?.name??"unknown"}`:"Default profile for projects without an override",disabled:!$t},{value:"activate-project",label:"Set active provider (Project)",description:O?`Currently: ${r.find((n)=>n.id===O)?.name??"unknown"} (this project)`:"Override the global default for this project only",disabled:!$t},...w?[{value:"clear-project-override",label:"Clear project provider override",description:O?"Stop overriding for this project; fall back to global":"Project override points to a missing profile; clear it"}]:[],{value:"edit",label:"Edit provider",description:"Update URL, model, or key",disabled:!xt},{value:"delete",label:"Delete provider",description:"Remove a provider profile",disabled:!$t},...Xn?[{value:"logout-codex-oauth",label:"Log out Codex OAuth",description:"Clear securely stored Codex OAuth credentials"}]:[],{value:"done",label:"Done",description:"Return to chat"}],[$t,xt,Xn,It,S,O,r]),jt=b.useCallback(()=>{if(ut()){Z.current+=1,_t(!1),gt(void 0);return}let n=++Z.current;(async()=>{let h=await On();if(n!==Z.current)return;_t(Boolean(h?.apiKey||h?.accessToken||h?.refreshToken||h?.idToken)),gt(h?.profileId)})()},[]);b.useEffect(()=>{return jt(),()=>{Z.current+=1}},[jt]),b.useEffect(()=>{if(N!=="select-ollama-model")return;let n=!1;return qt({state:"loading"}),(async()=>{let h=await Yc({baseUrl:f.baseUrl});if(h.state!=="ready"){if(!n)qt({state:"unavailable",message:_a(h,f.baseUrl)});return}let o=cn(h.models,"balanced"),l=Pn(h.models,"balanced");if(!n)qt({state:"ready",defaultValue:l?.name??o[0]?.name,options:o.map((d)=>({label:d.name,value:d.name,description:d.summary}))})})(),()=>{n=!0}},[f.baseUrl,N]),b.useEffect(()=>{if(N!=="select-atomic-chat-model")return;let n=!1;return St({state:"loading"}),(async()=>{let h=await Vc({baseUrl:f.baseUrl});if(h.state!=="ready"){if(!n)St({state:"unavailable",message:ka(h,f.baseUrl)});return}if(!n)St({state:"ready",defaultValue:h.models[0],options:h.models.map((o)=>({label:o,value:o}))})})(),()=>{n=!0}},[f.baseUrl,N]),b.useEffect(()=>{if(N!=="select-openai-model")return;let n=!1;return Pt({state:"loading"}),(async()=>{let h=await Qc({baseUrl:f.baseUrl,apiKey:f.apiKey||void 0});if(n)return;if(!h||h.length===0){Pt({state:"unavailable",message:"Couldn't list models from this provider. Enter the model id manually, or go back to check the base URL and API key."});return}let{options:o,defaultValue:l}=Gc(h,f.model);Pt({state:"ready",options:o,defaultValue:l})})(),()=>{n=!0}},[f.baseUrl,f.apiKey,N]);function Q(){if(Bt.current)return;Bt.current=!0,queueMicrotask(()=>{let n=nt();m(n),A(W()?.id),X(Kt()),L(Cn()),z(ft()),jt(),Bt.current=!1})}function mt(){return null}function Dt(n){if(n.activationWarning)return`${n.prefix}. Saved for next startup. Warning: ${n.warnings.join("; ")}.`;if(n.warnings.length>0)return`${n.prefix}. Claudin switched to it for this session with warnings: ${n.warnings.join("; ")}.`;return`${n.prefix}. Claudin switched to it for this session.`}async function vt(n){if(n?.accessToken&&n.accountId)return null;let h=await On();if(!h)return"stored Codex OAuth credentials could not be loaded";if(!h.accountId)return"stored Codex OAuth credentials are missing a ChatGPT account id";return null}function qn(){Mc()}async function vc(n){let h="provider";H(!0),M("Activating provider...");try{await new Promise((U)=>queueMicrotask(U));let o=ft(),l=Rt(n);if(!l){R("Could not change active provider."),H(!1),k();return}let d=o?W()??l:l,s=bt(d.model);if(!o)a((U)=>({...U,mainLoopModel:s,mainLoopModelForSession:null}));h=l.name;let _=mt(),J=_c(l,st),$=J?await vt():null;Q();let K=o&&d.id!==l.id?` (project override still active — this project keeps using ${d.name}; use "Clear project provider override" to apply the new default here)`:"",F=J?Dt({prefix:`Active provider: ${l.name}${K}`,activationWarning:$,warnings:[$,_?`could not clear startup provider override (${_})`:null].filter((U)=>Boolean(U))}):_?`Active provider: ${l.name}${K}. Warning: could not clear startup provider override (${_}).`:`Active provider: ${l.name}${K}`;M(F),H(!1),c({action:"activated",activeProfileId:l.id,activeProviderName:l.name,activeProviderModel:s,message:`Provider switched to ${l.name} (${s})`}),k()}catch(o){Q(),M(void 0),H(!1);let l=o instanceof Error?o.message:String(o);R(`Could not finish activating ${h}: ${l}`),k()}}async function tu(){H(!0),M("Clearing project provider override...");try{await new Promise((h)=>queueMicrotask(h)),bn(null),Q();let n=W();if(n){let h=bt(n.model);wt(),a((o)=>({...o,mainLoopModel:h,mainLoopModelForSession:null})),M(`Project override cleared. Using global default: ${n.name}.`),H(!1),c({action:"activated",activeProfileId:n.id,activeProviderName:n.name,activeProviderModel:h,message:`Project override cleared — using ${n.name} (${h})`}),k()}else M("Project provider override cleared. No global default set."),H(!1),c({action:"saved",message:"Project provider override cleared. No global default set."}),k()}catch(n){Q(),M(void 0),H(!1);let h=n instanceof Error?n.message:String(n);R(`Could not clear project provider override: ${h}`),k()}}async function nu(n){let h="provider";H(!0),M("Setting provider for this project...");try{await new Promise((F)=>queueMicrotask(F));let o=Kt(),l=bn(n);if(!l){R("Could not set project provider override."),H(!1),k();return}let d=bt(l.model);if(o===l.id)wt();a((F)=>({...F,mainLoopModel:d,mainLoopModelForSession:null})),h=l.name;let s=mt(),_=_c(l,st),J=_?await vt():null;Q();let $=`Active provider for this project: ${l.name}. Other projects keep the global default.`,K=_?Dt({prefix:$,activationWarning:J,warnings:[J,s?`could not clear startup provider override (${s})`:null].filter((F)=>Boolean(F))}):s?`${$} Warning: could not clear startup provider override (${s}).`:$;M(K),H(!1),c({action:"activated",activeProfileId:l.id,activeProviderName:l.name,activeProviderModel:d,message:`Provider switched to ${l.name} (${d}) for this project`}),k()}catch(o){Q(),M(void 0),H(!1);let l=o instanceof Error?o.message:String(o);R(`Could not finish setting ${h} for this project: ${l}`),k()}}function k(){Bc("done"),C("menu")}function Lt(n){c({action:"cancelled",message:n})}function cu(n){let h=Tt(n),o={name:h.name,baseUrl:h.baseUrl,model:h.model,apiKey:h.apiKey??""};if(Y(null),tt(h.provider??"openai"),T(o),kt({}),Ut(""),zn(n),P(0),Ot(0),B(o.name.length),R(void 0),n==="ollama"){qt({state:"loading"}),C("select-ollama-model");return}if(n==="atomic-chat"){St({state:"loading"}),C("select-atomic-chat-model");return}if(n==="anthropic"){C("anthropic-auth-choice");return}if(n==="bedrock"||n==="vertex"||n==="foundry"){C("cloud-extras");return}C("form")}function uu(n){let h=r.find((l)=>l.id===n);if(!h)return;let o=sa(h);Y(n),tt(h.provider??"openai"),T(o),kt({awsRegion:h.extras?.awsRegion,gcpProject:h.extras?.gcpProject,gcpRegion:h.extras?.gcpRegion,azureResource:h.extras?.azureResource}),Ut(Ra(h.extras?.customHeaders)),zn(null),P(0),Ot(0),B(o.name.length),R(void 0),C("form")}function Nt(n=f){let h=za(Wt,Rn),o={provider:q,name:n.name,baseUrl:n.baseUrl,model:n.model,apiKey:n.apiKey,extras:h},l=ht?At(ht,o):ct(o,{makeActive:!0});if(!l){R("Could not save provider. Fill all required fields.");return}let d=W()?.id===l.id;if(d)wt(),a((K)=>({...K,mainLoopModel:bt(l.model),mainLoopModelForSession:null}));let s=d?mt():null;Q();let _=!ht&&ft()&&!d,J=_?W()?.name??"override target":null,$=ht?`Updated provider: ${l.name}`:_?`Added provider: ${l.name} (now global default — project keeps using ${J}; use "Clear project provider override" to apply here)`:`Added provider: ${l.name} (now active)`;if(M(s?`${$}. Warning: could not clear startup provider override (${s}).`:$),t==="first-run"){c({action:"saved",activeProfileId:l.id,message:`Provider configured: ${l.name}`});return}Y(null),P(0),R(void 0),k()}function au(){if(p.state==="loading"||p.state==="idle")return y(g,{flexDirection:"column",gap:1,children:[u(i,{color:"remember",bold:!0,children:"Checking Atomic Chat"}),u(i,{dimColor:!0,children:"Looking for loaded Atomic Chat models..."})]});if(p.state==="unavailable")return y(g,{flexDirection:"column",gap:1,children:[u(i,{color:"remember",bold:!0,children:"Atomic Chat setup"}),u(i,{dimColor:!0,children:p.message}),u(V,{options:[{value:"manual",label:"Enter manually",description:"Fill in the base URL and model yourself"},{value:"back",label:"Back",description:"Choose another provider preset"}],onChange:(n)=>{if(n==="manual"){P(0),B(f.name.length),C("form");return}C("select-preset")},onCancel:()=>C("select-preset"),visibleOptionCount:2})]});return y(g,{flexDirection:"column",gap:1,children:[u(i,{color:"remember",bold:!0,children:"Choose an Atomic Chat model"}),u(i,{dimColor:!0,children:"Pick one of the models loaded in Atomic Chat to save into a local provider profile."}),u(V,{options:p.options,defaultValue:p.defaultValue,defaultFocusValue:p.defaultValue,inlineDescriptions:!0,visibleOptionCount:Math.min(8,p.options.length),onChange:(n)=>{let h={...f,model:n};T(h),Nt(h)},onCancel:()=>C("select-preset")})]})}function hu(){if(I.state==="loading"||I.state==="idle")return y(g,{flexDirection:"column",gap:1,children:[u(i,{color:"remember",bold:!0,children:"Checking Ollama"}),u(i,{dimColor:!0,children:"Looking for installed Ollama models..."})]});if(I.state==="unavailable")return y(g,{flexDirection:"column",gap:1,children:[u(i,{color:"remember",bold:!0,children:"Ollama setup"}),u(i,{dimColor:!0,children:I.message}),u(V,{options:[{value:"manual",label:"Enter manually",description:"Fill in the base URL and model yourself"},{value:"back",label:"Back",description:"Choose another provider preset"}],onChange:(n)=>{if(n==="manual"){P(0),B(f.name.length),C("form");return}C("select-preset")},onCancel:()=>C("select-preset"),visibleOptionCount:2})]});return y(g,{flexDirection:"column",gap:1,children:[u(i,{color:"remember",bold:!0,children:"Choose an Ollama model"}),u(i,{dimColor:!0,children:"Pick one of the installed Ollama models to save into a local provider profile."}),u(V,{options:I.options,defaultValue:I.defaultValue,defaultFocusValue:I.defaultValue,inlineDescriptions:!0,visibleOptionCount:Math.min(8,I.options.length),onChange:(n)=>{let h={...f,model:n};T(h),Nt(h)},onCancel:()=>C("select-preset")})]})}function et(n){let h=at.findIndex((o)=>o.key===n);P(h<0?0:h),B(f[n].length),R(void 0),C("form")}function ru(){if(x.state==="loading"||x.state==="idle")return y(g,{flexDirection:"column",gap:1,children:[u(i,{color:"remember",bold:!0,children:"Fetching models"}),u(i,{dimColor:!0,children:"Looking for models on your OpenAI-compatible provider…"}),u(i,{dimColor:!0,children:"Press Esc to enter the model manually."})]});if(x.state==="unavailable")return y(g,{flexDirection:"column",gap:1,children:[u(i,{color:"remember",bold:!0,children:"Choose a model"}),u(i,{dimColor:!0,children:x.message}),u(V,{options:[{value:"manual",label:"Enter manually",description:"Type the model id yourself"},{value:"back",label:"Back",description:"Return to the API key step"}],onChange:(o)=>{if(o==="manual"){et("model");return}et("apiKey")},onCancel:()=>et("apiKey"),visibleOptionCount:2})]});let n=[...x.options,{value:dn,label:"Enter a model id manually",description:"Type an id the provider did not list"}],h=x.defaultValue??dn;return y(g,{flexDirection:"column",gap:1,children:[u(i,{color:"remember",bold:!0,children:"Choose a model"}),u(i,{dimColor:!0,children:"Models from your OpenAI-compatible provider."}),u(V,{options:n,defaultValue:h,defaultFocusValue:h,inlineDescriptions:!0,visibleOptionCount:Math.min(8,n.length),onChange:(o)=>{if(o===dn){et("model");return}let l={...f,model:o};T(l),Sn(l)},onCancel:()=>et("apiKey")}),u(i,{dimColor:!0,children:"Enter to select · Esc to go back"})]})}function Sn(n){if(Et==="anthropic"||Et==="custom"){T(n),C("custom-headers");return}Nt(n)}function iu(n){let h=n.trim();if(!ot.optional&&h.length===0){R(`${ot.label} is required.`);return}let o={...f,[Ft]:h};if(T(o),R(void 0),it<at.length-1){let l=it+1,d=at[l]?.key??"name";if(d==="model"&&!ya.has(q)&&o.baseUrl.trim().length>0){C("select-openai-model");return}P(l),B(o[d].length);return}Sn(o)}function lu(){if(R(void 0),it>0){let n=it-1,h=at[n]?.key??"name";P(n),B(f[h].length);return}if(t==="first-run"){C("select-preset");return}k()}v("confirm:no",lu,{context:"Settings",isActive:N==="form"}),v("confirm:no",()=>et("model"),{context:"Settings",isActive:N==="select-openai-model"&&(x.state==="loading"||x.state==="idle")});function ou(){if(R(void 0),rt>0){Ot(rt-1);return}C("select-preset")}v("confirm:no",ou,{context:"Settings",isActive:N==="cloud-extras"}),v("confirm:no",()=>C("form"),{context:"Settings",isActive:N==="custom-headers"}),v("confirm:no",()=>C("select-preset"),{context:"Settings",isActive:N==="anthropic-auth-choice"||N==="anthropic-oauth"});function mu(){let n=!ut(),h=[...It?[{value:"import-legacy",label:"Import from Claude Code",description:"Reuse ~/.claude/ tokens, settings, theme, MCP, skills, agents, plugins."}]:[],{value:"dashscope-intl",label:"Alibaba Coding Plan",description:"Alibaba DashScope International endpoint"},{value:"dashscope-cn",label:"Alibaba Coding Plan (China)",description:"Alibaba DashScope China endpoint"},{value:"anthropic",label:"Anthropic",description:"Native Claude API (x-api-key auth)"},{value:"atomic-chat",label:"Atomic Chat",description:"Local Model Provider"},{value:"azure-openai",label:"Azure OpenAI",description:"Azure OpenAI endpoint (model=deployment name)"},{value:"foundry",label:"Azure AI Foundry",description:"Anthropic models hosted on Azure AI Foundry (resource-scoped)"},{value:"bedrock",label:"AWS Bedrock",description:"Anthropic models on AWS Bedrock (region-scoped, AWS creds)"},{value:"bankr",label:"Bankr",description:"Bankr LLM Gateway (OpenAI-compatible)"},{value:"cloudflare-workers-ai",label:"Cloudflare Workers AI",description:"Cloudflare Workers AI (OpenAI-compatible); set your account ID in the base URL"},{value:"cloudflare-ai-gateway",label:"Cloudflare AI Gateway",description:"Cloudflare AI Gateway unified endpoint; set your account ID in the base URL"},...n?[{value:"codex-oauth",label:"Codex OAuth",description:"Sign in with ChatGPT in your browser and store Codex credentials securely"},{value:"xai-oauth",label:"xAI / Grok (OAuth)",description:"Sign in with xAI in your browser and store Grok credentials securely"}]:[],{value:"github-onboard",label:"GitHub Copilot",description:"Sign in with GitHub in your browser to use Copilot models"},{value:"deepseek",label:"DeepSeek",description:"DeepSeek OpenAI-compatible endpoint"},{value:"gemini",label:"Google Gemini",description:"Gemini OpenAI-compatible endpoint"},{value:"vertex",label:"Google Vertex AI",description:"Anthropic models on Vertex AI (project + region, ADC)"},{value:"groq",label:"Groq",description:"Groq OpenAI-compatible endpoint"},{value:"lmstudio",label:"LM Studio",description:"Local LM Studio endpoint"},{value:"minimax",label:"MiniMax",description:"MiniMax API endpoint"},{value:"mistral",label:"Mistral",description:"Mistral OpenAI-compatible endpoint"},{value:"moonshotai",label:"Moonshot AI - API",description:"Moonshot AI - API endpoint"},{value:"kimi-code",label:"Moonshot AI - Kimi Code",description:"Moonshot AI - Kimi Code Subscription endpoint"},{value:"nvidia-nim",label:"NVIDIA NIM",description:"NVIDIA NIM endpoint"},{value:"opencode-go",label:"OpenCode GO",description:"OpenCode GO OpenAI-compatible endpoint"},{value:"opencode-zen",label:"OpenCode Zen",description:"OpenCode Zen OpenAI-compatible endpoint"},{value:"ollama",label:"Ollama",description:"Local or remote Ollama endpoint"},{value:"openai",label:"OpenAI",description:"OpenAI API with API key"},{value:"openrouter",label:"OpenRouter",description:"OpenRouter OpenAI-compatible endpoint"},{value:"together",label:"Together AI",description:"Together chat/completions endpoint"},{value:"zai",label:"Z.AI (GLM Coding Plan)",description:"Z.AI GLM Coding Plan (OpenAI-compatible)"},{value:"custom",label:"Custom",description:"Any OpenAI-compatible provider"},...t==="first-run"?[{value:"skip",label:"Skip for now",description:"Continue with current defaults"}]:[]];return y(g,{flexDirection:"column",gap:1,children:[u(i,{color:"remember",bold:!0,children:t==="first-run"?"Set up provider":"Choose provider preset"}),u(i,{dimColor:!0,children:"Pick a preset, then confirm base URL, model, and API key."}),u(V,{options:h,onChange:(o)=>{if(o==="skip"){Lt("Provider setup skipped");return}if(o==="codex-oauth"){C("codex-oauth");return}if(o==="xai-oauth"){C("xai-oauth");return}if(o==="github-onboard"){C("github-onboard");return}if(o==="import-legacy"){(async()=>{let l=await An({force:!0});pt(Xt()),Q();let d=Ht(l);if(l.errors.length>0){R(d);return}let s=W();if(t==="first-run"&&s){c({action:"saved",activeProfileId:s.id,activeProviderName:s.name,activeProviderModel:s.model,message:d});return}if(M(d),R(void 0),t==="manage")k()})();return}cu(o)},onCancel:()=>{if(t==="first-run"){Lt("Provider setup skipped");return}k()},visibleOptionCount:Math.min(13,h.length)})]})}function eu(){return y(g,{flexDirection:"column",gap:1,children:[u(i,{color:"remember",bold:!0,children:"Anthropic — choose authentication"}),u(i,{dimColor:!0,children:"Sign in with your Anthropic account in the browser, or paste an API key."}),u(V,{options:[{value:"oauth",label:"Sign in with web (OAuth)",description:"Open a browser, sign in to Claude, and store tokens in ~/.claudin/.credentials.json"},{value:"apiKey",label:"Use API key",description:"Paste an x-api-key value (sk-ant-…)"},{value:"back",label:"Back",description:"Choose a different provider"}],onChange:(n)=>{if(n==="oauth"){C("anthropic-oauth");return}if(n==="apiKey"){C("form");return}C("select-preset")},onCancel:()=>C("select-preset"),visibleOptionCount:3})]})}function du(){let n=(oa(),Du(la)).ConsoleOAuthFlow;return u(g,{flexDirection:"column",gap:1,children:u(n,{mode:"login",onDone:()=>{let h=Tt("anthropic"),o={provider:"anthropic",name:h.name,baseUrl:h.baseUrl,model:h.model},l=ct(o,{makeActive:!0});if(!l){R("OAuth completed, but the Anthropic profile could not be saved."),C("select-preset");return}let d=`Anthropic OAuth configured: ${l.name}`;if(Q(),t==="first-run"){c({action:"saved",activeProfileId:l.id,message:d});return}M(d),R(void 0),k()}})})}function yu(){let n=Et;if(n!=="bedrock"&&n!=="vertex"&&n!=="foundry")return null;let h=fa[n],o=h[rt]??h[0],l=Wt[o.key]??"";function d(s){let _=s.trim();if(_.length===0){R(`${o.label} is required.`);return}let J={...Wt,[o.key]:_};if(kt(J),R(void 0),rt<h.length-1){Ot(rt+1);return}Ot(0),C("form")}return y(g,{flexDirection:"column",gap:1,children:[u(i,{color:"remember",bold:!0,children:`${n==="bedrock"?"AWS Bedrock":n==="vertex"?"Google Vertex AI":"Azure AI Foundry"} setup`}),u(i,{dimColor:!0,children:o.helpText}),y(i,{dimColor:!0,children:["Step ",rt+1," of ",h.length,": ",o.label]}),y(g,{flexDirection:"row",gap:1,children:[u(i,{children:Ct.pointer}),u(yt,{value:l,onChange:(s)=>kt((_)=>({..._,[o.key]:s})),onSubmit:d,focus:!0,showCursor:!0,placeholder:`${o.placeholder}${Ct.ellipsis}`,columns:80,cursorOffset:Hc,onChangeCursorOffset:Tc})]}),lt&&u(i,{color:"error",children:lt}),u(i,{dimColor:!0,children:"Press Enter to continue. Press Esc to go back."})]})}function Cu(){return y(g,{flexDirection:"column",gap:1,children:[u(i,{color:"remember",bold:!0,children:"Custom headers (optional)"}),y(i,{dimColor:!0,children:["Add HTTP headers sent on every request. One header per line as"," ",u(i,{children:"Header: Value"}),". Leave empty to skip."]}),y(g,{flexDirection:"row",gap:1,children:[u(i,{children:Ct.pointer}),u(yt,{value:Rn,onChange:Ut,onSubmit:()=>Nt(f),focus:!0,showCursor:!0,placeholder:"X-Header: value",columns:80,multiline:!0,cursorOffset:Wc,onChangeCursorOffset:Uc})]}),lt&&u(i,{color:"error",children:lt}),u(i,{dimColor:!0,children:"Press Enter on a blank line to save. Press Esc to go back."})]})}function bu(){return y(g,{flexDirection:"column",gap:1,children:[u(i,{color:"remember",bold:!0,children:ht?"Edit provider profile":"Create provider profile"}),u(i,{dimColor:!0,children:ot.helpText}),y(i,{dimColor:!0,children:["Provider type:"," ",q==="anthropic"?"Anthropic native API":"OpenAI-compatible API"]}),y(i,{dimColor:!0,children:["Step ",it+1," of ",at.length,": ",ot.label]}),y(g,{flexDirection:"row",gap:1,children:[u(i,{children:Ct.pointer}),u(yt,{value:Dc,onChange:(n)=>T((h)=>({...h,[Ft]:n})),onSubmit:iu,focus:!0,showCursor:!0,placeholder:`${ot.placeholder}${Ct.ellipsis}`,mask:Ft==="apiKey"?"*":void 0,columns:80,cursorOffset:Ec,onChangeCursorOffset:B})]}),lt&&u(i,{color:"error",children:lt}),u(i,{dimColor:!0,children:"Press Enter to continue. Press Esc to go back."})]})}function wu(){let n=r.length>0,h=n;return y(g,{flexDirection:"column",gap:1,children:[u(i,{color:"remember",bold:!0,children:"Provider manager"}),u(i,{dimColor:!0,children:"Active profile controls base URL, model, and API key used by this session."}),fn&&u(i,{children:fn}),u(g,{flexDirection:"column",children:r.length===0?u(i,{dimColor:!0,children:"No provider profiles configured yet."}):r.map((o)=>y(i,{dimColor:!0,children:["- ",o.name,": ",Xa(o,o.id===e)]},o.id))}),u(V,{options:_n,onChange:(o)=>{switch(R(void 0),o){case"add":C("select-preset");break;case"import-legacy":{(async()=>{let l=await An({force:!0});if(pt(Xt()),Q(),l.errors.length>0)R(Ht(l));else M(Ht(l))})();break}case"activate":if(h)C("select-active");break;case"activate-project":if(h)C("select-active-project");break;case"clear-project-override":tu();break;case"edit":if(n)C("select-edit");break;case"delete":if(h)C("select-delete");break;case"logout-codex-oauth":{let l=sn();if(!l.success){R(l.warning??"Could not clear Codex OAuth credentials.");break}_t(!1),gt(void 0);let d=yn(nt(),st),s=null;if(d){let _=wn(d.id);if(!_.removed){R("Codex OAuth credentials were cleared, but the Codex profile could not be removed."),Q();break}qn(),s=_.activeProfileId?mt():null}Q(),M(s?`Codex OAuth logged out. Warning: could not clear startup provider override (${s}).`:"Codex OAuth logged out.");break}default:Lt("Provider manager closed");break}},onCancel:()=>Lt("Provider manager closed"),defaultFocusValue:Pc,visibleOptionCount:_n.length})]})}function Mt(n,h,o){let l=r.map((d)=>{let s=[];if(d.id===e)s.push("active");if(O&&d.id===O)s.push("this project");if(S&&d.id===S)s.push("global default");let _=s.length>0?` (${s.join(", ")})`:"";return{value:d.id,label:`${d.name}${_}`,description:`${d.provider==="anthropic"?"anthropic":"openai-compatible"} · ${d.baseUrl} · ${d.model}`}});if(l.length===0)return y(g,{flexDirection:"column",gap:1,children:[u(i,{color:"remember",bold:!0,children:n}),u(i,{dimColor:!0,children:h}),u(V,{options:[{value:"back",label:"Back",description:"Return to provider manager"}],onChange:()=>k(),onCancel:()=>k(),visibleOptionCount:1})]});return y(g,{flexDirection:"column",gap:1,children:[u(i,{color:"remember",bold:!0,children:n}),u(V,{options:l,onChange:o,onCancel:()=>k(),visibleOptionCount:Math.min(10,Math.max(2,l.length))})]})}let G;switch(N){case"select-preset":G=mu();break;case"select-ollama-model":G=hu();break;case"select-openai-model":G=ru();break;case"select-atomic-chat-model":G=au();break;case"codex-oauth":G=u(qa,{onBack:()=>C("select-preset"),onConfigured:async(n,h)=>{let o={provider:"openai",name:Ca,baseUrl:Sc,model:ba,apiKey:""},l=yn(nt(),st),d=l?At(l.id,o):ct(o,{makeActive:!0});if(!d){R("Codex OAuth login finished, but the provider profile could not be saved."),k();return}let s=l&&e!==d.id?Rt(d.id):d;if(!s){R("Codex OAuth login finished, but the provider could not be set as the startup provider."),k();return}h({profileId:d.id});let _=mt(),J=await vt(n);_t(!0),gt(d.id),Q();let $=[J,_?`could not clear startup provider override (${_})`:null].filter((F)=>Boolean(F)),K=Dt({prefix:"Codex OAuth configured",activationWarning:J,warnings:$});if(t==="first-run"){c({action:"saved",activeProfileId:s.id,message:K});return}M(K),R(void 0),k()}});break;case"xai-oauth":G=u(Sa,{onBack:()=>C("select-preset"),onConfigured:async(n,h)=>{let l=ct({provider:"openai",name:wa,baseUrl:gn,model:Oa,apiKey:""},{makeActive:!0});if(!l){R("xAI OAuth login finished, but the provider profile could not be saved."),k();return}try{h({profileId:l.id})}catch(s){R(s instanceof Error?s.message:String(s)),k();return}Q();let d="xAI / Grok configured. Claudin switched to it for this session.";if(t==="first-run"){c({action:"saved",activeProfileId:l.id,message:d});return}M(d),R(void 0),k()}});break;case"github-onboard":G=u(Tn,{onDone:(n)=>{if(n)M(n),R(void 0);Q(),k()},onBack:()=>C("select-preset"),onChangeAPIKey:Q});break;case"anthropic-auth-choice":G=eu();break;case"anthropic-oauth":G=du();break;case"cloud-extras":G=yu();break;case"custom-headers":G=Cu();break;case"form":G=bu();break;case"select-active":G=Mt("Set active provider (Global)","No providers available. Add one first.",(n)=>{vc(n)});break;case"select-active-project":G=Mt("Set active provider (Project)","No providers available. Add one first.",(n)=>{nu(n)});break;case"select-edit":G=Mt("Edit provider","No providers available. Add one first.",(n)=>{uu(n)});break;case"select-delete":G=Mt("Delete provider","No providers available. Add one first.",(n)=>{let h=r.find(($)=>$.id===n),o=h?.provider==="openai"&&h?.extras?.githubToken!==void 0,l=yn(r,st)?.id===n,d=Lc()?.profileId,s=h?.provider==="openai"&&h.baseUrl===gn&&!h.apiKey&&d===n,_=W()?.id===n,J=wn(n);if(!J.removed)R("Could not delete provider.");else{let $=[];if(l){let F=sn();if(!F.success)$.push(F.warning??"could not clear Codex OAuth credentials");else gt(void 0);qn()}if(o){let F=$c();if(!F.success)$.push(F.warning??"could not clear GitHub Copilot token")}if(s){let F=Nc();if(!F.success)$.push(F.warning??"could not clear xAI OAuth credentials")}let K=J.activeProfileId?mt():null;if(K)$.push(`could not clear startup provider override (${K})`);if(Q(),_){let F=W();if(F)wt(),a((U)=>({...U,mainLoopModel:bt(F.model),mainLoopModelForSession:null}));else wt(),a((U)=>({...U,mainLoopModel:null,mainLoopModelForSession:null}))}M($.length>0?`Provider deleted. Warning: ${$.join("; ")}.`:"Provider deleted")}k()});break;case"menu":default:G=wu();break}return y(Fc,{color:"permission",children:[u(Kc,{enabled:kn,onDismiss:(n)=>{pt(Xt()),jc(!1),Q();let h=W();if(n==="migrated"&&t==="first-run"&&h)c({action:"saved",activeProfileId:h.id,activeProviderName:h.name,activeProviderModel:h.model})}}),kn?null:Ic?y(g,{flexDirection:"column",gap:1,children:[u(i,{color:"remember",bold:!0,children:"Loading providers..."}),u(i,{dimColor:!0,children:"Reading provider profiles from disk."})]}):xc?y(g,{flexDirection:"column",gap:1,children:[u(i,{color:"remember",bold:!0,children:"Activating provider..."}),u(i,{dimColor:!0,children:"Please wait while the provider is being configured."})]}):G]})}var b,at,dn="\x00__manual__",ya,Ca="Codex OAuth",ba="codexplan",wa="xAI / Grok (OAuth)",Oa="grok-4",fa;var Fa=j(()=>{vu();Wn();na();Ln();ca();ra();ma();ic();on();ta();aa();Fn();Zn();ha();Bn();In();ia();ua();da();Kn();mc();kc();fc();ea();Qt();b=Gt(Vt(),1),at=[{key:"name",label:"Provider name",placeholder:"e.g. Ollama Home, OpenAI Work",helpText:"A short label shown in /provider and startup setup."},{key:"baseUrl",label:"Base URL",placeholder:"e.g. http://localhost:11434/v1",helpText:"API base URL used for this provider profile."},{key:"apiKey",label:"API key",placeholder:"Leave empty if your provider does not require one",helpText:"Optional. Press Enter with empty value to skip.",optional:!0},{key:"model",label:"Default model",placeholder:"e.g. llama3.1:8b or glm-4.7; glm-4.7-flash",helpText:'Model name(s) to use. Separate multiple with ";" or ","; first is default.'}],ya=new Set(["anthropic","bedrock","vertex","foundry"]);fa={bedrock:[{key:"awsRegion",label:"AWS region",placeholder:"e.g. us-east-1",helpText:"Region of your Bedrock-enabled AWS account. Credentials are picked up from the AWS SDK chain."}],vertex:[{key:"gcpProject",label:"GCP project ID",placeholder:"e.g. my-project-123456",helpText:"Google Cloud project where Vertex AI is enabled. Credentials are picked up from ADC."},{key:"gcpRegion",label:"GCP region",placeholder:"e.g. us-central1",helpText:"Vertex AI region for the model."}],foundry:[{key:"azureResource",label:"Azure resource",placeholder:"e.g. my-foundry-resource",helpText:"Name of your Azure AI Foundry resource. Credentials are picked up from DefaultAzureCredential."}]}});
|
|
50
|
-
export{un as vc,In as wc,Aa as xc,Sh as yc,Fa as zc};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{Xqa as l}from"./cli-1.0.3-vzm5gxzn.mjs";function o(i,e,r){var t=null;if(r!==void 0&&(t=""+r),e.key!==void 0&&(t=""+e.key),"key"in e){r={};for(var s in e)s!=="key"&&(r[s]=e[s])}else r=e;return e=r.ref,{$$typeof:n,type:i,key:t,ref:e!==void 0?e:null,props:r}}var n,d,u,E,a;var c=l(()=>{n=Symbol.for("react.transitional.element"),d=Symbol.for("react.fragment");u=d,E=o,a=o});
|
|
2
|
-
export{u as N2,E as O2,a as P2,c as Q2};
|