@claudiolabs/claudin 0.6.4 → 0.6.6
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-0.6.6-bdcafcej.mjs +1 -0
- package/dist/chunks/App-0.6.6-k5gj5n4h.mjs +1 -0
- package/dist/chunks/ApproveApiKey-0.6.6-7fdtwksv.mjs +1 -0
- package/dist/chunks/AssistantSessionChooser-0.6.6-2j0e7ev9.mjs +1 -0
- package/dist/chunks/AutoModeOptInDialog-0.6.6-6yx84pzc.mjs +1 -0
- package/dist/chunks/BypassPermissionsModeDialog-0.6.6-vjc7apke.mjs +1 -0
- package/dist/chunks/ClaudeMdExternalIncludesDialog-0.6.6-td62cgn4.mjs +1 -0
- package/dist/chunks/ConsoleOAuthFlow-0.6.6-5aqhvkcg.mjs +1 -0
- package/dist/chunks/DiffDialog-0.6.6-d2jxy48y.mjs +11 -0
- package/dist/chunks/Doctor-0.6.6-me4wn4j5.mjs +1 -0
- package/dist/chunks/Grove-0.6.6-xfwy6rbw.mjs +1 -0
- package/dist/chunks/ITermBackend-0.6.6-qthf2vr3.mjs +1 -0
- package/dist/chunks/InvalidConfigDialog-0.6.6-mp5b6a5j.mjs +1 -0
- package/dist/chunks/InvalidSettingsDialog-0.6.6-awc54gyk.mjs +1 -0
- package/dist/chunks/MigrationDialog-0.6.6-4qg3bf91.mjs +1 -0
- package/dist/chunks/Onboarding-0.6.6-fewq1c0b.mjs +1 -0
- package/dist/chunks/ProviderManager-0.6.6-cx15mb4s.mjs +1 -0
- package/dist/chunks/REPL-0.6.6-ev64pese.mjs +1 -0
- package/dist/chunks/ResumeConversation-0.6.6-gkxw58n4.mjs +1 -0
- package/dist/chunks/SnapshotUpdateDialog-0.6.6-45f8nb47.mjs +1 -0
- package/dist/chunks/TeleportProgress-0.6.6-5314g8tw.mjs +1 -0
- package/dist/chunks/TeleportRepoMismatchDialog-0.6.6-w4svp0jn.mjs +1 -0
- package/dist/chunks/TeleportResumeWrapper-0.6.6-5vjtrnya.mjs +1 -0
- package/dist/chunks/TmuxBackend-0.6.6-rphhdvq8.mjs +9 -0
- package/dist/chunks/ToolSearchTool-0.6.6-s2f271df.mjs +1 -0
- package/dist/chunks/TrustDialog-0.6.6-s74swp6v.mjs +1 -0
- package/dist/chunks/activeProvider-0.6.6-r3wwyv1a.mjs +1 -0
- package/dist/chunks/add-dir-0.6.6-nm6s9jm3.mjs +1 -0
- package/dist/chunks/agents-0.6.6-yfx529qm.mjs +3 -0
- package/dist/chunks/agents-0.6.6-z45zpb7a.mjs +110 -0
- package/dist/chunks/api-0.6.6-rrs0y38h.mjs +1 -0
- package/dist/chunks/asciicast-0.6.6-qrz006k9.mjs +1 -0
- package/dist/chunks/assistant-0.6.6-tfmwrg23.mjs +1 -0
- package/dist/chunks/auth-0.6.6-61djjn63.mjs +1 -0
- package/dist/chunks/auth-0.6.6-8pgs8nej.mjs +1 -0
- package/dist/chunks/autoMode-0.6.6-d0vbqpdq.mjs +48 -0
- package/dist/chunks/autoUpdater-0.6.6-xacp5fck.mjs +1 -0
- package/dist/chunks/backgroundHousekeeping-0.6.6-dnhts5fj.mjs +1 -0
- package/dist/chunks/branch-0.6.6-84wkac2e.mjs +4 -0
- package/dist/chunks/bridge-0.6.6-p3dy64f9.mjs +2 -0
- package/dist/chunks/bridgeConfig-0.6.6-fvzjs1pa.mjs +1 -0
- package/dist/chunks/bridgeEnabled-0.6.6-ge15dg1p.mjs +1 -0
- package/dist/chunks/bridgeMain-0.6.6-w0xmef6b.mjs +88 -0
- package/dist/chunks/bridgePointer-0.6.6-cba0ahq2.mjs +1 -0
- package/dist/chunks/btw-0.6.6-46grbbjr.mjs +1 -0
- package/dist/chunks/buddy-0.6.6-90qdgfw4.mjs +3 -0
- package/dist/chunks/cacache-0.6.6-v19w3dxf.mjs +1 -0
- package/dist/chunks/cache-probe-0.6.6-k4ev06pn.mjs +21 -0
- package/dist/chunks/cacheStats-0.6.6-dehpnmz9.mjs +4 -0
- package/dist/chunks/caches-0.6.6-4a0mnm1h.mjs +1 -0
- package/dist/chunks/claudeDesktop-0.6.6-fhspw8yv.mjs +1 -0
- package/dist/chunks/claudemd-0.6.6-s2nktt1h.mjs +1 -0
- package/dist/chunks/clear-0.6.6-e06ssw4n.mjs +1 -0
- package/dist/chunks/clearTerminal-0.6.6-062bve0j.mjs +1 -0
- package/dist/chunks/cli-0.6.6-0ak8r49x.mjs +2 -0
- package/dist/chunks/cli-0.6.6-0j61q3w5.mjs +2 -0
- package/dist/chunks/cli-0.6.6-0pptmkkg.mjs +4 -0
- package/dist/chunks/cli-0.6.6-0w254y38.mjs +2 -0
- package/dist/chunks/cli-0.6.6-10re6ept.mjs +2 -0
- package/dist/chunks/cli-0.6.6-141tbvn2.mjs +2 -0
- package/dist/chunks/cli-0.6.6-1a0fnhh0.mjs +2 -0
- package/dist/chunks/cli-0.6.6-1dy4fd01.mjs +2 -0
- package/dist/chunks/cli-0.6.6-1jt6s6c8.mjs +2 -0
- package/dist/chunks/cli-0.6.6-23snct9d.mjs +5348 -0
- package/dist/chunks/cli-0.6.6-27tkk39p.mjs +2 -0
- package/dist/chunks/cli-0.6.6-2dtp6rc2.mjs +2 -0
- package/dist/chunks/cli-0.6.6-2fasp96a.mjs +2 -0
- package/dist/chunks/cli-0.6.6-2gjay42h.mjs +2 -0
- package/dist/chunks/cli-0.6.6-2mf6j1pf.mjs +4 -0
- package/dist/chunks/cli-0.6.6-36kc5vh1.mjs +3 -0
- package/dist/chunks/cli-0.6.6-37wcg59v.mjs +2 -0
- package/dist/chunks/cli-0.6.6-3agn70fr.mjs +50 -0
- package/dist/chunks/cli-0.6.6-3qbz76xq.mjs +2 -0
- package/dist/chunks/cli-0.6.6-3s3k6nsb.mjs +2 -0
- package/dist/chunks/cli-0.6.6-3t45jvj0.mjs +2 -0
- package/dist/chunks/cli-0.6.6-3t9gkjhn.mjs +8 -0
- package/dist/chunks/cli-0.6.6-3ykkcpjf.mjs +2 -0
- package/dist/chunks/cli-0.6.6-40n0q9g3.mjs +2 -0
- package/dist/chunks/cli-0.6.6-44bk8ev1.mjs +2 -0
- package/dist/chunks/cli-0.6.6-4d55s633.mjs +3 -0
- package/dist/chunks/cli-0.6.6-4jrf033h.mjs +12 -0
- package/dist/chunks/cli-0.6.6-4m7r4esm.mjs +4 -0
- package/dist/chunks/cli-0.6.6-4nxq7s1k.mjs +2 -0
- package/dist/chunks/cli-0.6.6-4qj9brbk.mjs +2 -0
- package/dist/chunks/cli-0.6.6-4qrnzmjb.mjs +2 -0
- package/dist/chunks/cli-0.6.6-4r50eqxg.mjs +2 -0
- package/dist/chunks/cli-0.6.6-4tp2yb2x.mjs +2 -0
- package/dist/chunks/cli-0.6.6-4tzkbyes.mjs +2 -0
- package/dist/chunks/cli-0.6.6-504vvx3q.mjs +2 -0
- package/dist/chunks/cli-0.6.6-5eww20j0.mjs +2 -0
- package/dist/chunks/cli-0.6.6-5p4qy3we.mjs +2 -0
- package/dist/chunks/cli-0.6.6-61wnn1as.mjs +3 -0
- package/dist/chunks/cli-0.6.6-6gzy2tvk.mjs +12 -0
- package/dist/chunks/cli-0.6.6-6p78renb.mjs +2 -0
- package/dist/chunks/cli-0.6.6-6zs5dyhh.mjs +20 -0
- package/dist/chunks/cli-0.6.6-731hhd3s.mjs +2 -0
- package/dist/chunks/cli-0.6.6-73eg8qn0.mjs +2 -0
- package/dist/chunks/cli-0.6.6-76rkjh7v.mjs +2 -0
- package/dist/chunks/cli-0.6.6-7bzhgmhp.mjs +2 -0
- package/dist/chunks/cli-0.6.6-7n7fwzth.mjs +2 -0
- package/dist/chunks/cli-0.6.6-7pfzbq40.mjs +2 -0
- package/dist/chunks/cli-0.6.6-7r4esgkf.mjs +2 -0
- package/dist/chunks/cli-0.6.6-7r817n5d.mjs +2 -0
- package/dist/chunks/cli-0.6.6-7s8bhv18.mjs +2 -0
- package/dist/chunks/cli-0.6.6-7tnsnb0c.mjs +2 -0
- package/dist/chunks/cli-0.6.6-816nja7p.mjs +2 -0
- package/dist/chunks/cli-0.6.6-85mqgh7w.mjs +133 -0
- package/dist/chunks/cli-0.6.6-8bvd4smw.mjs +3 -0
- package/dist/chunks/cli-0.6.6-8e7c224v.mjs +2 -0
- package/dist/chunks/cli-0.6.6-8gcxhg7t.mjs +3 -0
- package/dist/chunks/cli-0.6.6-8gmesggf.mjs +2 -0
- package/dist/chunks/cli-0.6.6-8hzhy95p.mjs +2 -0
- package/dist/chunks/cli-0.6.6-8s6h2xee.mjs +3 -0
- package/dist/chunks/cli-0.6.6-8vnkmjet.mjs +2 -0
- package/dist/chunks/cli-0.6.6-8wwb7c4z.mjs +10 -0
- package/dist/chunks/cli-0.6.6-8yvh28tb.mjs +16 -0
- package/dist/chunks/cli-0.6.6-92dvpnqv.mjs +3 -0
- package/dist/chunks/cli-0.6.6-962my51a.mjs +2 -0
- package/dist/chunks/cli-0.6.6-99e532z3.mjs +2 -0
- package/dist/chunks/cli-0.6.6-9r04g0xa.mjs +2 -0
- package/dist/chunks/cli-0.6.6-9rjdy05g.mjs +2 -0
- package/dist/chunks/cli-0.6.6-9tjtzwyt.mjs +2 -0
- package/dist/chunks/cli-0.6.6-a2e4eek5.mjs +2 -0
- package/dist/chunks/cli-0.6.6-a837m6n5.mjs +2 -0
- package/dist/chunks/cli-0.6.6-aep3cnz5.mjs +2 -0
- package/dist/chunks/cli-0.6.6-akjyt0hr.mjs +2 -0
- package/dist/chunks/cli-0.6.6-akqfmyeb.mjs +2 -0
- package/dist/chunks/cli-0.6.6-am3sz82d.mjs +58 -0
- package/dist/chunks/cli-0.6.6-ap1eg2xa.mjs +2 -0
- package/dist/chunks/cli-0.6.6-apq4h0nf.mjs +2 -0
- package/dist/chunks/cli-0.6.6-aq30fm8p.mjs +1 -0
- package/dist/chunks/cli-0.6.6-ar43nqjq.mjs +3 -0
- package/dist/chunks/cli-0.6.6-arvcw19g.mjs +2 -0
- package/dist/chunks/cli-0.6.6-as18fmg3.mjs +2 -0
- package/dist/chunks/cli-0.6.6-at7yytqj.mjs +2 -0
- package/dist/chunks/cli-0.6.6-axvjexmr.mjs +15 -0
- package/dist/chunks/cli-0.6.6-b1wqaqv9.mjs +4 -0
- package/dist/chunks/cli-0.6.6-bbv794xs.mjs +4 -0
- package/dist/chunks/cli-0.6.6-bn18ty4n.mjs +18 -0
- package/dist/chunks/cli-0.6.6-by1ngr5q.mjs +5 -0
- package/dist/chunks/cli-0.6.6-c267ckfv.mjs +2 -0
- package/dist/chunks/cli-0.6.6-c2xmgnfp.mjs +7 -0
- package/dist/chunks/cli-0.6.6-ct7zap14.mjs +2 -0
- package/dist/chunks/cli-0.6.6-czhez59x.mjs +2 -0
- package/dist/chunks/cli-0.6.6-d0qrt51j.mjs +2 -0
- package/dist/chunks/cli-0.6.6-d5dexg4d.mjs +2 -0
- package/dist/chunks/cli-0.6.6-dmd73xa3.mjs +2 -0
- package/dist/chunks/cli-0.6.6-dmtpt4r7.mjs +17 -0
- package/dist/chunks/cli-0.6.6-dnx45tc3.mjs +2 -0
- package/dist/chunks/cli-0.6.6-drg8zfkg.mjs +2 -0
- package/dist/chunks/cli-0.6.6-e4pcw0z3.mjs +3 -0
- package/dist/chunks/cli-0.6.6-eeaxd1dd.mjs +2 -0
- package/dist/chunks/cli-0.6.6-efkct3rx.mjs +2 -0
- package/dist/chunks/cli-0.6.6-ek8y79wd.mjs +2 -0
- package/dist/chunks/cli-0.6.6-en2sexw5.mjs +59 -0
- package/dist/chunks/cli-0.6.6-enc586ry.mjs +4 -0
- package/dist/chunks/cli-0.6.6-esnwdj9p.mjs +2 -0
- package/dist/chunks/cli-0.6.6-ezhp9zxv.mjs +2 -0
- package/dist/chunks/cli-0.6.6-f6wc5yc6.mjs +17 -0
- package/dist/chunks/cli-0.6.6-fep3xed7.mjs +2 -0
- package/dist/chunks/cli-0.6.6-fj9rpekf.mjs +2 -0
- package/dist/chunks/cli-0.6.6-g6ja9jcs.mjs +4 -0
- package/dist/chunks/cli-0.6.6-g9mdc3pd.mjs +2 -0
- package/dist/chunks/cli-0.6.6-gk8s7mch.mjs +67 -0
- package/dist/chunks/cli-0.6.6-gte1km05.mjs +2 -0
- package/dist/chunks/cli-0.6.6-h02v66zq.mjs +2 -0
- package/dist/chunks/cli-0.6.6-h12zw82h.mjs +3 -0
- package/dist/chunks/cli-0.6.6-h2aqs05m.mjs +2 -0
- package/dist/chunks/cli-0.6.6-h8d7s4qz.mjs +21 -0
- package/dist/chunks/cli-0.6.6-h8ew0rcw.mjs +24 -0
- package/dist/chunks/cli-0.6.6-hcajyfhg.mjs +6 -0
- package/dist/chunks/cli-0.6.6-hejk0ae6.mjs +5 -0
- package/dist/chunks/cli-0.6.6-hetrxwwb.mjs +2 -0
- package/dist/chunks/cli-0.6.6-heymhe69.mjs +24 -0
- package/dist/chunks/cli-0.6.6-hp08wrzx.mjs +15 -0
- package/dist/chunks/cli-0.6.6-hsgfy54f.mjs +2 -0
- package/dist/chunks/cli-0.6.6-hyqpcaay.mjs +2 -0
- package/dist/chunks/cli-0.6.6-j4j7a9y4.mjs +2 -0
- package/dist/chunks/cli-0.6.6-je6w2y3h.mjs +2 -0
- package/dist/chunks/cli-0.6.6-jh33fwqe.mjs +18 -0
- package/dist/chunks/cli-0.6.6-jjj2qt22.mjs +2 -0
- package/dist/chunks/cli-0.6.6-jqxfz350.mjs +2 -0
- package/dist/chunks/cli-0.6.6-jrpy2bkk.mjs +2 -0
- package/dist/chunks/cli-0.6.6-kca8bnv6.mjs +2 -0
- package/dist/chunks/cli-0.6.6-khr65dty.mjs +2 -0
- package/dist/chunks/cli-0.6.6-ktwh4wvp.mjs +6 -0
- package/dist/chunks/cli-0.6.6-mb1z3n48.mjs +2 -0
- package/dist/chunks/cli-0.6.6-mc9x1jry.mjs +28 -0
- package/dist/chunks/cli-0.6.6-mezb9tga.mjs +2 -0
- package/dist/chunks/cli-0.6.6-mfee7shn.mjs +2 -0
- package/dist/chunks/cli-0.6.6-mk746t95.mjs +2 -0
- package/dist/chunks/cli-0.6.6-mmgfr8v9.mjs +2 -0
- package/dist/chunks/cli-0.6.6-mrkkgjdh.mjs +2 -0
- package/dist/chunks/cli-0.6.6-mzjbzje2.mjs +2 -0
- package/dist/chunks/cli-0.6.6-nbrpn6xq.mjs +2 -0
- package/dist/chunks/cli-0.6.6-ncqg4xxp.mjs +2 -0
- package/dist/chunks/cli-0.6.6-ntyx46a7.mjs +2 -0
- package/dist/chunks/cli-0.6.6-nw0nh4e0.mjs +2 -0
- package/dist/chunks/cli-0.6.6-nymfz9tw.mjs +2 -0
- package/dist/chunks/cli-0.6.6-p3xdjh86.mjs +12 -0
- package/dist/chunks/cli-0.6.6-phfaae6k.mjs +2 -0
- package/dist/chunks/cli-0.6.6-q1j20ysc.mjs +193 -0
- package/dist/chunks/cli-0.6.6-q6pybpxh.mjs +2 -0
- package/dist/chunks/cli-0.6.6-qvmtyvz3.mjs +3 -0
- package/dist/chunks/cli-0.6.6-r5fnevcm.mjs +2 -0
- package/dist/chunks/cli-0.6.6-r6ph5dqe.mjs +2 -0
- package/dist/chunks/cli-0.6.6-rhcte81y.mjs +15 -0
- package/dist/chunks/cli-0.6.6-rqfeyzcp.mjs +2 -0
- package/dist/chunks/cli-0.6.6-rxhq7h6p.mjs +2 -0
- package/dist/chunks/cli-0.6.6-s3y8t7we.mjs +2 -0
- package/dist/chunks/cli-0.6.6-sc6nf44p.mjs +2 -0
- package/dist/chunks/cli-0.6.6-sh4pyhkw.mjs +2 -0
- package/dist/chunks/cli-0.6.6-sqvm4f1y.mjs +2 -0
- package/dist/chunks/cli-0.6.6-ssjjspdc.mjs +2 -0
- package/dist/chunks/cli-0.6.6-sxde5jj7.mjs +2 -0
- package/dist/chunks/cli-0.6.6-t3vvf5fy.mjs +2 -0
- package/dist/chunks/cli-0.6.6-t7p08nsw.mjs +2 -0
- package/dist/chunks/cli-0.6.6-tam4amwx.mjs +2 -0
- package/dist/chunks/cli-0.6.6-tg1e3sdx.mjs +2 -0
- package/dist/chunks/cli-0.6.6-tk00k0e1.mjs +34 -0
- package/dist/chunks/cli-0.6.6-v17a8yzy.mjs +2 -0
- package/dist/chunks/cli-0.6.6-vesqvt0y.mjs +2 -0
- package/dist/chunks/cli-0.6.6-vjj3g5dm.mjs +2 -0
- package/dist/chunks/cli-0.6.6-vt1181th.mjs +39 -0
- package/dist/chunks/cli-0.6.6-vvz9vw7f.mjs +5 -0
- package/dist/chunks/cli-0.6.6-vy3wa7f9.mjs +2 -0
- package/dist/chunks/cli-0.6.6-w687eya6.mjs +2 -0
- package/dist/chunks/cli-0.6.6-w6tqtrzg.mjs +4 -0
- package/dist/chunks/cli-0.6.6-wctj7gmc.mjs +6 -0
- package/dist/chunks/cli-0.6.6-ww6zy0p0.mjs +2 -0
- package/dist/chunks/cli-0.6.6-wxst92je.mjs +4 -0
- package/dist/chunks/cli-0.6.6-x1zrpt5g.mjs +45 -0
- package/dist/chunks/cli-0.6.6-x3tz7qvq.mjs +2 -0
- package/dist/chunks/cli-0.6.6-x88t5n54.mjs +133 -0
- package/dist/chunks/cli-0.6.6-xe6egv3r.mjs +25 -0
- package/dist/chunks/cli-0.6.6-xmd2zss3.mjs +2 -0
- package/dist/chunks/cli-0.6.6-xna6taqd.mjs +9 -0
- package/dist/chunks/cli-0.6.6-xnazk7t9.mjs +2 -0
- package/dist/chunks/cli-0.6.6-xq4cysdk.mjs +2 -0
- package/dist/chunks/cli-0.6.6-xt0p4ems.mjs +4 -0
- package/dist/chunks/cli-0.6.6-xtj65dsh.mjs +2 -0
- package/dist/chunks/cli-0.6.6-y305shhz.mjs +2 -0
- package/dist/chunks/cli-0.6.6-yakt9hjc.mjs +3 -0
- package/dist/chunks/cli-0.6.6-yj2tafrk.mjs +26 -0
- package/dist/chunks/cli-0.6.6-ymge82rt.mjs +2 -0
- package/dist/chunks/cli-0.6.6-ythetarc.mjs +3 -0
- package/dist/chunks/cli-0.6.6-ytskhcd3.mjs +42 -0
- package/dist/chunks/cli-0.6.6-ytws2j1w.mjs +2 -0
- package/dist/chunks/cli-0.6.6-yve3e654.mjs +2 -0
- package/dist/chunks/cli-0.6.6-yxd04fex.mjs +2 -0
- package/dist/chunks/cli-0.6.6-zb8ddz0k.mjs +2 -0
- package/dist/chunks/cli-0.6.6-ze6rx70y.mjs +2 -0
- package/dist/chunks/cli-0.6.6-zhky93y3.mjs +2 -0
- package/dist/chunks/cli-0.6.6-zk5p5pm9.mjs +3 -0
- package/dist/chunks/cli-0.6.6-zwk7a82m.mjs +2 -0
- package/dist/chunks/cli-0.6.6-zx0cgvxq.mjs +2 -0
- package/dist/chunks/client-0.6.6-epndq4qc.mjs +1 -0
- package/dist/chunks/color-0.6.6-8rzmvtwk.mjs +1 -0
- package/dist/chunks/compact-0.6.6-hx8hw1kn.mjs +3 -0
- package/dist/chunks/config-0.6.6-0j07cdc5.mjs +1 -0
- package/dist/chunks/config-0.6.6-2fm368ym.mjs +1 -0
- package/dist/chunks/constants-0.6.6-0yxw2f7y.mjs +1 -0
- package/dist/chunks/context-0.6.6-1ask7yck.mjs +1 -0
- package/dist/chunks/context-noninteractive-0.6.6-kk5a8p4w.mjs +1 -0
- package/dist/chunks/conversation-0.6.6-fetjq503.mjs +1 -0
- package/dist/chunks/copilotHeaders-0.6.6-fwqs850f.mjs +1 -0
- package/dist/chunks/copy-0.6.6-8j7h9rrr.mjs +9 -0
- package/dist/chunks/cost-0.6.6-1b4svxh2.mjs +1 -0
- package/dist/chunks/createSSHSession-0.6.6-nj5vfp9k.mjs +1 -0
- package/dist/chunks/createSession-0.6.6-mphh6gbj.mjs +1 -0
- package/dist/chunks/debug-0.6.6-ghaq68w2.mjs +1 -0
- package/dist/chunks/defaultActionDeps-0.6.6-t8g2hnht.mjs +1367 -0
- package/dist/chunks/desktop-0.6.6-a4mc0bda.mjs +1 -0
- package/dist/chunks/detectRepository-0.6.6-ncw5b2aj.mjs +1 -0
- package/dist/chunks/detection-0.6.6-214xzj0w.mjs +1 -0
- package/dist/chunks/diff-0.6.6-7nwejtje.mjs +1 -0
- package/dist/chunks/doctor-0.6.6-2wetaw67.mjs +1 -0
- package/dist/chunks/doctorDiagnostic-0.6.6-wvp7h2xr.mjs +1 -0
- package/dist/chunks/earlyInput-0.6.6-9jbsyrke.mjs +1 -0
- package/dist/chunks/effort-0.6.6-ncb29f3c.mjs +10 -0
- package/dist/chunks/envLessBridgeConfig-0.6.6-6pv90cvs.mjs +1 -0
- package/dist/chunks/envUtils-0.6.6-mwnbc88a.mjs +1 -0
- package/dist/chunks/environmentSelection-0.6.6-gac9h0m9.mjs +1 -0
- package/dist/chunks/environments-0.6.6-dyqm7563.mjs +1 -0
- package/dist/chunks/errors-0.6.6-q707mqqm.mjs +1 -0
- package/dist/chunks/exampleCommands-0.6.6-wd6w9zh5.mjs +1 -0
- package/dist/chunks/exit-0.6.6-8vj2yn2g.mjs +1 -0
- package/dist/chunks/export-0.6.6-ze9h049t.mjs +2 -0
- package/dist/chunks/extra-usage-0.6.6-mp9th9v6.mjs +1 -0
- package/dist/chunks/extra-usage-noninteractive-0.6.6-rmjhm3ng.mjs +1 -0
- package/dist/chunks/fast-0.6.6-764x92hh.mjs +1 -0
- package/dist/chunks/feedback-0.6.6-5x42sy6a.mjs +14 -0
- package/dist/chunks/firstPartyEventLogger-0.6.6-x2gcw7ns.mjs +1 -0
- package/dist/chunks/git-0.6.6-rw5vzxwm.mjs +1 -0
- package/dist/chunks/githubModelsCredentials-0.6.6-f2n56xmf.mjs +1 -0
- package/dist/chunks/goal-0.6.6-9rtva22g.mjs +4 -0
- package/dist/chunks/grove-0.6.6-97994twv.mjs +1 -0
- package/dist/chunks/growthbook-0.6.6-8reejkag.mjs +1 -0
- package/dist/chunks/headless-0.6.6-qgkvkz56.mjs +2 -0
- package/dist/chunks/heapdump-0.6.6-s68hkj7v.mjs +6 -0
- package/dist/chunks/help-0.6.6-a74x2714.mjs +1 -0
- package/dist/chunks/hookChains-0.6.6-wrp608b1.mjs +3 -0
- package/dist/chunks/hooks-0.6.6-skad5kp2.mjs +79 -0
- package/dist/chunks/hooks-0.6.6-zy3p5ymd.mjs +1 -0
- package/dist/chunks/ide-0.6.6-xpbxyf5x.mjs +3 -0
- package/dist/chunks/image-processor-napi-0.6.6-8ggh2rjn.mjs +1 -0
- package/dist/chunks/inboundAttachments-0.6.6-xfbtg9vz.mjs +1 -0
- package/dist/chunks/index-0.6.6-0g09kzhh.mjs +1 -0
- package/dist/chunks/index-0.6.6-1p1fy7cz.mjs +5 -0
- package/dist/chunks/index-0.6.6-27ems47g.mjs +9 -0
- package/dist/chunks/index-0.6.6-4v2spjs5.mjs +1 -0
- package/dist/chunks/index-0.6.6-5me3rm4s.mjs +9 -0
- package/dist/chunks/index-0.6.6-70tj26f9.mjs +1 -0
- package/dist/chunks/index-0.6.6-8zcthv4z.mjs +1 -0
- package/dist/chunks/index-0.6.6-aef14n9j.mjs +2 -0
- package/dist/chunks/index-0.6.6-apxc13te.mjs +1 -0
- package/dist/chunks/index-0.6.6-dq42pv3d.mjs +1 -0
- package/dist/chunks/index-0.6.6-ebp0mayr.mjs +1 -0
- package/dist/chunks/index-0.6.6-ejmkdrzm.mjs +1 -0
- package/dist/chunks/index-0.6.6-kqbyedrd.mjs +1 -0
- package/dist/chunks/index-0.6.6-m0dywyy2.mjs +30 -0
- package/dist/chunks/index-0.6.6-pjnpey6d.mjs +1 -0
- package/dist/chunks/index-0.6.6-pykm48ja.mjs +1 -0
- package/dist/chunks/index-0.6.6-pzvhyk3s.mjs +1 -0
- package/dist/chunks/index-0.6.6-rxae4gv4.mjs +1 -0
- package/dist/chunks/index-0.6.6-s4wsdcz8.mjs +2 -0
- package/dist/chunks/index-0.6.6-spnbnmsj.mjs +1 -0
- package/dist/chunks/index-0.6.6-sqygenvb.mjs +1 -0
- package/dist/chunks/index-0.6.6-t43srges.mjs +1 -0
- package/dist/chunks/index-0.6.6-zgh9z1rm.mjs +1 -0
- package/dist/chunks/init-0.6.6-6yxjq5pc.mjs +1 -0
- package/dist/chunks/initReplBridge-0.6.6-eeynkqk3.mjs +1 -0
- package/dist/chunks/ink-0.6.6-keyn52qn.mjs +1 -0
- package/dist/chunks/insights-0.6.6-2wjtvjnd.mjs +870 -0
- package/dist/chunks/install-0.6.6-vdpf15fp.mjs +1 -0
- package/dist/chunks/install-github-app-0.6.6-8zk1xfpw.mjs +149 -0
- package/dist/chunks/install-slack-app-0.6.6-j2a9c586.mjs +1 -0
- package/dist/chunks/instrumentation-0.6.6-35f0r0ts.mjs +1 -0
- package/dist/chunks/interactiveHelpers-0.6.6-18x9yezm.mjs +1 -0
- package/dist/chunks/keybindings-0.6.6-9r4m4jvq.mjs +2 -0
- package/dist/chunks/knowledge-0.6.6-1rjjrsqn.mjs +2 -0
- package/dist/chunks/latestVersionCache-0.6.6-32rrz0z9.mjs +1 -0
- package/dist/chunks/loadAgentsDir-0.6.6-tjygbn96.mjs +1 -0
- package/dist/chunks/loadPluginHooks-0.6.6-8xsdzy59.mjs +1 -0
- package/dist/chunks/loadPluginHooks-0.6.6-fr4gdkcy.mjs +1 -0
- package/dist/chunks/log-0.6.6-6nzgdpd0.mjs +1 -0
- package/dist/chunks/main-0.6.6-aq9jq72v.mjs +1 -0
- package/dist/chunks/managedEnv-0.6.6-6bth8e56.mjs +1 -0
- package/dist/chunks/mcp-0.6.6-4xb16x7y.mjs +1 -0
- package/dist/chunks/mcp-0.6.6-chps3y13.mjs +4 -0
- package/dist/chunks/mcp-0.6.6-fxy3qcdv.mjs +17 -0
- package/dist/chunks/mcpb-0.6.6-bhpebgzm.mjs +1 -0
- package/dist/chunks/memory-0.6.6-89t2e497.mjs +3 -0
- package/dist/chunks/model-0.6.6-8bpwy4gg.mjs +1 -0
- package/dist/chunks/model-0.6.6-m3x9crqt.mjs +2 -0
- package/dist/chunks/node-0.6.6-rm65t01m.mjs +12 -0
- package/dist/chunks/oauth-0.6.6-akp7n7mb.mjs +1 -0
- package/dist/chunks/openaiShim-0.6.6-ft40jfrp.mjs +14 -0
- package/dist/chunks/output-style-0.6.6-bvhtp4tc.mjs +1 -0
- package/dist/chunks/package-FMOR3ELU-0.6.6-0ykwzcyt.mjs +1 -0
- package/dist/chunks/parseConnectUrl-0.6.6-jve0dvpn.mjs +1 -0
- package/dist/chunks/parser-0.6.6-xa5qsjfh.mjs +1 -0
- package/dist/chunks/passes-0.6.6-tdv74eqj.mjs +1 -0
- package/dist/chunks/permissions-0.6.6-46df10nj.mjs +3 -0
- package/dist/chunks/permissions-0.6.6-8wcv4q7d.mjs +1 -0
- package/dist/chunks/plan-0.6.6-qw8t4gpk.mjs +1 -0
- package/dist/chunks/plist-0.6.6-5m3etrhq.mjs +1 -0
- package/dist/chunks/plugin-0.6.6-narwef70.mjs +29 -0
- package/dist/chunks/pluginStartupCheck-0.6.6-v7kxdq6w.mjs +1 -0
- package/dist/chunks/plugins-0.6.6-10y990d0.mjs +9 -0
- package/dist/chunks/preActionHook-0.6.6-0vkxazxv.mjs +2 -0
- package/dist/chunks/print-0.6.6-ym6tndvq.mjs +57 -0
- package/dist/chunks/privacy-settings-0.6.6-05da2gne.mjs +1 -0
- package/dist/chunks/process-0.6.6-da3h3zfe.mjs +1 -0
- package/dist/chunks/processBashCommand-0.6.6-m76r9et2.mjs +1 -0
- package/dist/chunks/processSlashCommand-0.6.6-xxwnh0cf.mjs +9 -0
- package/dist/chunks/prompt-0.6.6-60sg3pmt.mjs +1 -0
- package/dist/chunks/prompt-0.6.6-vfh4fr6f.mjs +1 -0
- package/dist/chunks/prompts-0.6.6-vbfva1a5.mjs +1 -0
- package/dist/chunks/protocolHandler-0.6.6-73vezfvr.mjs +13 -0
- package/dist/chunks/provider-0.6.6-ch5qq6n3.mjs +2 -0
- package/dist/chunks/providerProfiles-0.6.6-jtysbyrm.mjs +1 -0
- package/dist/chunks/providerValidation-0.6.6-5509e4cb.mjs +6 -0
- package/dist/chunks/rate-limit-options-0.6.6-cfm37mqk.mjs +1 -0
- package/dist/chunks/registerSubcommands-0.6.6-7p5mr9t1.mjs +34 -0
- package/dist/chunks/registry-0.6.6-z5cnbznq.mjs +1 -0
- package/dist/chunks/release-notes-0.6.6-90zjvqjx.mjs +5 -0
- package/dist/chunks/reload-plugins-0.6.6-jyxrw2jq.mjs +2 -0
- package/dist/chunks/remote-env-0.6.6-wyekcz2k.mjs +1 -0
- package/dist/chunks/remoteBridgeCore-0.6.6-favpnrd5.mjs +1 -0
- package/dist/chunks/remoteSession-0.6.6-snjkbaw2.mjs +1 -0
- package/dist/chunks/rename-0.6.6-3wang66e.mjs +1 -0
- package/dist/chunks/replBridgeHandle-0.6.6-dmxdjqjy.mjs +1 -0
- package/dist/chunks/replLauncher-0.6.6-bvhzfdx8.mjs +1 -0
- package/dist/chunks/resume-0.6.6-zqn712k4.mjs +2 -0
- package/dist/chunks/rewind-0.6.6-h8kc53mc.mjs +1 -0
- package/dist/chunks/rootOptions-0.6.6-wcam7tjd.mjs +1 -0
- package/dist/chunks/sandbox-adapter-0.6.6-qbm1rqdf.mjs +1 -0
- package/dist/chunks/sandbox-toggle-0.6.6-m882ckxv.mjs +1 -0
- package/dist/chunks/session-0.6.6-ezqqmxrd.mjs +2 -0
- package/dist/chunks/sessionDiscovery-0.6.6-0q34cmbe.mjs +1 -0
- package/dist/chunks/sessionFileAccessHooks-0.6.6-3tek8yje.mjs +1 -0
- package/dist/chunks/sessionStorage-0.6.6-pgfjqhdj.mjs +1 -0
- package/dist/chunks/settings-0.6.6-ms6t0ray.mjs +1 -0
- package/dist/chunks/setup-0.6.6-n2vjxxmx.mjs +5 -0
- package/dist/chunks/sinks-0.6.6-mq00wrfa.mjs +1 -0
- package/dist/chunks/skills-0.6.6-vgr1dpf7.mjs +1 -0
- package/dist/chunks/startupProfiler-0.6.6-5nbjv2gp.mjs +1 -0
- package/dist/chunks/startupUpdateCheck-0.6.6-z6adga96.mjs +1 -0
- package/dist/chunks/state-0.6.6-w2grqwqw.mjs +1 -0
- package/dist/chunks/stats-0.6.6-z11zcde6.mjs +6 -0
- package/dist/chunks/status-0.6.6-vbcqezgp.mjs +1 -0
- package/dist/chunks/stickers-0.6.6-c1pczjgd.mjs +1 -0
- package/dist/chunks/subprocessEnv-0.6.6-95tf6phx.mjs +1 -0
- package/dist/chunks/tasks-0.6.6-pm1cbtt0.mjs +1 -0
- package/dist/chunks/teamHelpers-0.6.6-ec57k1fn.mjs +1 -0
- package/dist/chunks/teammateModeSnapshot-0.6.6-964bq8fq.mjs +1 -0
- package/dist/chunks/teleport-0.6.6-ksymynm4.mjs +1 -0
- package/dist/chunks/terminalSetup-0.6.6-r5q2y7w0.mjs +1 -0
- package/dist/chunks/theme-0.6.6-y46frztn.mjs +1 -0
- package/dist/chunks/thinkback-0.6.6-3j0w6yjk.mjs +1 -0
- package/dist/chunks/thinkback-play-0.6.6-rrcqmyxk.mjs +1 -0
- package/dist/chunks/toolPool-0.6.6-2jmzd43n.mjs +1 -0
- package/dist/chunks/toolSearch-0.6.6-2rrd60cx.mjs +1 -0
- package/dist/chunks/tools-0.6.6-13yxm82t.mjs +1 -0
- package/dist/chunks/trustedDevice-0.6.6-yk1yrpb0.mjs +1 -0
- package/dist/chunks/turndown.cjs-0.6.6-nhq9m5br.mjs +69 -0
- package/dist/chunks/types-0.6.6-stnrzm1j.mjs +1 -0
- package/dist/chunks/ultrareviewCommand-0.6.6-7ytrj9jv.mjs +4 -0
- package/dist/chunks/update-0.6.6-5hf3mst5.mjs +86 -0
- package/dist/chunks/upgrade-0.6.6-y2gdvy9z.mjs +1 -0
- package/dist/chunks/upload-0.6.6-mwd7k6ym.mjs +7 -0
- package/dist/chunks/upstreamproxy-0.6.6-2fc9x5pq.mjs +14 -0
- package/dist/chunks/url-handler-napi-0.6.6-gbs8n3ne.mjs +1 -0
- package/dist/chunks/usage-0.6.6-8n0sxpw2.mjs +1 -0
- package/dist/chunks/util-0.6.6-hpjf8dnn.mjs +1 -0
- package/dist/chunks/utils-0.6.6-w937v7sr.mjs +1 -0
- package/dist/chunks/vim-0.6.6-b8g833z7.mjs +1 -0
- package/dist/chunks/watcher-0.6.6-bsqe9pa4.mjs +1 -0
- package/dist/chunks/wiki-0.6.6-2fstcx28.mjs +132 -0
- package/dist/chunks/worktree-0.6.6-yctkpbmx.mjs +1 -0
- package/dist/chunks/worktreeModeEnabled-0.6.6-yv2bvj70.mjs +1 -0
- package/dist/chunks/wrapper-0.6.6-02cwy0nm.mjs +7 -0
- package/dist/claudin-vscode.vsix +0 -0
- package/dist/cli.mjs +2 -2
- package/package.json +14 -14
- package/dist/chunks/AgentTool-0.6.4-rbaf1y65.mjs +0 -1
- package/dist/chunks/App-0.6.4-rq289jnp.mjs +0 -1
- package/dist/chunks/ApproveApiKey-0.6.4-7d5f28j9.mjs +0 -1
- package/dist/chunks/AssistantSessionChooser-0.6.4-phb69d3e.mjs +0 -1
- package/dist/chunks/AutoModeOptInDialog-0.6.4-9bf4j0dx.mjs +0 -1
- package/dist/chunks/BypassPermissionsModeDialog-0.6.4-62rbe590.mjs +0 -1
- package/dist/chunks/ClaudeMdExternalIncludesDialog-0.6.4-5xv95y7k.mjs +0 -1
- package/dist/chunks/ConsoleOAuthFlow-0.6.4-7ng7n8ac.mjs +0 -1
- package/dist/chunks/DiffDialog-0.6.4-ydwpx8jz.mjs +0 -3
- package/dist/chunks/Doctor-0.6.4-r3nh0zs5.mjs +0 -1
- package/dist/chunks/Grove-0.6.4-8mwvr7ha.mjs +0 -1
- package/dist/chunks/ITermBackend-0.6.4-w345qte9.mjs +0 -1
- package/dist/chunks/InvalidConfigDialog-0.6.4-e1xk1r00.mjs +0 -1
- package/dist/chunks/InvalidSettingsDialog-0.6.4-7pz7en7r.mjs +0 -1
- package/dist/chunks/MigrationDialog-0.6.4-xgqr16p1.mjs +0 -1
- package/dist/chunks/Onboarding-0.6.4-2735sbgf.mjs +0 -1
- package/dist/chunks/ProviderManager-0.6.4-q840wtmd.mjs +0 -1
- package/dist/chunks/REPL-0.6.4-k1gbkvvz.mjs +0 -1
- package/dist/chunks/ResumeConversation-0.6.4-mpzvada2.mjs +0 -1
- package/dist/chunks/SnapshotUpdateDialog-0.6.4-jctmc6zk.mjs +0 -1
- package/dist/chunks/TeleportProgress-0.6.4-gq0hnh6t.mjs +0 -1
- package/dist/chunks/TeleportRepoMismatchDialog-0.6.4-21sqsahr.mjs +0 -1
- package/dist/chunks/TeleportResumeWrapper-0.6.4-fjbh45wb.mjs +0 -1
- package/dist/chunks/TmuxBackend-0.6.4-5w2x0jdm.mjs +0 -9
- package/dist/chunks/ToolSearchTool-0.6.4-5qd1qqs9.mjs +0 -1
- package/dist/chunks/TrustDialog-0.6.4-rj702s6d.mjs +0 -1
- package/dist/chunks/activeProvider-0.6.4-wdg63cg4.mjs +0 -1
- package/dist/chunks/add-dir-0.6.4-kchsbt43.mjs +0 -1
- package/dist/chunks/agents-0.6.4-99qwf49d.mjs +0 -110
- package/dist/chunks/agents-0.6.4-rdvzbjcr.mjs +0 -3
- package/dist/chunks/api-0.6.4-9emwrek2.mjs +0 -1
- package/dist/chunks/asciicast-0.6.4-v9b43g5d.mjs +0 -1
- package/dist/chunks/assistant-0.6.4-f4m6fp3b.mjs +0 -1
- package/dist/chunks/auth-0.6.4-767mww9n.mjs +0 -1
- package/dist/chunks/auth-0.6.4-sgz2927j.mjs +0 -1
- package/dist/chunks/autoMode-0.6.4-n865xxhg.mjs +0 -48
- package/dist/chunks/autoUpdater-0.6.4-bvb6j5ck.mjs +0 -1
- package/dist/chunks/backgroundHousekeeping-0.6.4-fercqr2y.mjs +0 -1
- package/dist/chunks/branch-0.6.4-0hvhjqr5.mjs +0 -4
- package/dist/chunks/bridgePointer-0.6.4-dgames2b.mjs +0 -1
- package/dist/chunks/btw-0.6.4-fprrp4ch.mjs +0 -1
- package/dist/chunks/buddy-0.6.4-0d1rrwbv.mjs +0 -3
- package/dist/chunks/cacache-0.6.4-6yj2mrct.mjs +0 -1
- package/dist/chunks/cache-probe-0.6.4-x5tn2a2e.mjs +0 -21
- package/dist/chunks/cacheStats-0.6.4-ar55ww2f.mjs +0 -4
- package/dist/chunks/caches-0.6.4-54fb2qc2.mjs +0 -1
- package/dist/chunks/claudeDesktop-0.6.4-h06j868n.mjs +0 -1
- package/dist/chunks/claudemd-0.6.4-35r4255p.mjs +0 -1
- package/dist/chunks/clear-0.6.4-6chw4mjb.mjs +0 -1
- package/dist/chunks/clearTerminal-0.6.4-81zcpvka.mjs +0 -1
- package/dist/chunks/cli-0.6.4-00191v0e.mjs +0 -10
- package/dist/chunks/cli-0.6.4-02v7f4p3.mjs +0 -2
- package/dist/chunks/cli-0.6.4-0dsecg4e.mjs +0 -2
- package/dist/chunks/cli-0.6.4-0gnhakty.mjs +0 -42
- package/dist/chunks/cli-0.6.4-0m6t3msa.mjs +0 -2
- package/dist/chunks/cli-0.6.4-0ngrseg8.mjs +0 -15
- package/dist/chunks/cli-0.6.4-167h8t8x.mjs +0 -2
- package/dist/chunks/cli-0.6.4-1ery4vpn.mjs +0 -50
- package/dist/chunks/cli-0.6.4-1k1e5y32.mjs +0 -2
- package/dist/chunks/cli-0.6.4-1mgm8ymv.mjs +0 -3
- package/dist/chunks/cli-0.6.4-1nzpzrfm.mjs +0 -2
- package/dist/chunks/cli-0.6.4-1qryxm4s.mjs +0 -21
- package/dist/chunks/cli-0.6.4-1s60014f.mjs +0 -2
- package/dist/chunks/cli-0.6.4-28pnb4ka.mjs +0 -18
- package/dist/chunks/cli-0.6.4-29860mke.mjs +0 -2
- package/dist/chunks/cli-0.6.4-2d65trmc.mjs +0 -2
- package/dist/chunks/cli-0.6.4-2dm4scsb.mjs +0 -2
- package/dist/chunks/cli-0.6.4-2dwdm1v9.mjs +0 -2
- package/dist/chunks/cli-0.6.4-2fqxn556.mjs +0 -2
- package/dist/chunks/cli-0.6.4-2mytx51g.mjs +0 -16
- package/dist/chunks/cli-0.6.4-2q70rra3.mjs +0 -2
- package/dist/chunks/cli-0.6.4-2qaa0gp3.mjs +0 -2
- package/dist/chunks/cli-0.6.4-2sh53v7p.mjs +0 -7
- package/dist/chunks/cli-0.6.4-2y7ay1jf.mjs +0 -2
- package/dist/chunks/cli-0.6.4-3d8syj43.mjs +0 -15
- package/dist/chunks/cli-0.6.4-3rqg480e.mjs +0 -2
- package/dist/chunks/cli-0.6.4-43y102gt.mjs +0 -2
- package/dist/chunks/cli-0.6.4-48fcth51.mjs +0 -2
- package/dist/chunks/cli-0.6.4-4b3h6h1j.mjs +0 -2
- package/dist/chunks/cli-0.6.4-4dtvmfyr.mjs +0 -24
- package/dist/chunks/cli-0.6.4-4g9qybcx.mjs +0 -5324
- package/dist/chunks/cli-0.6.4-4jc68p21.mjs +0 -2
- package/dist/chunks/cli-0.6.4-4mfc5kte.mjs +0 -2
- package/dist/chunks/cli-0.6.4-4qg60938.mjs +0 -5
- package/dist/chunks/cli-0.6.4-4qyz0e3r.mjs +0 -2
- package/dist/chunks/cli-0.6.4-55a83gct.mjs +0 -2
- package/dist/chunks/cli-0.6.4-5eshcq2g.mjs +0 -2
- package/dist/chunks/cli-0.6.4-5j8b83wg.mjs +0 -2
- package/dist/chunks/cli-0.6.4-6czv84g6.mjs +0 -2
- package/dist/chunks/cli-0.6.4-771h1906.mjs +0 -2
- package/dist/chunks/cli-0.6.4-78evvtpq.mjs +0 -2
- package/dist/chunks/cli-0.6.4-7djzrbzn.mjs +0 -4
- package/dist/chunks/cli-0.6.4-7htjg50k.mjs +0 -2
- package/dist/chunks/cli-0.6.4-7jvtehkv.mjs +0 -2
- package/dist/chunks/cli-0.6.4-7keg9eew.mjs +0 -45
- package/dist/chunks/cli-0.6.4-7xp2yhpq.mjs +0 -2
- package/dist/chunks/cli-0.6.4-89pes3g1.mjs +0 -2
- package/dist/chunks/cli-0.6.4-8jwbt311.mjs +0 -4
- package/dist/chunks/cli-0.6.4-95vk17cy.mjs +0 -2
- package/dist/chunks/cli-0.6.4-96m5w0az.mjs +0 -2
- package/dist/chunks/cli-0.6.4-9ab34q29.mjs +0 -2
- package/dist/chunks/cli-0.6.4-9j2480tb.mjs +0 -3
- package/dist/chunks/cli-0.6.4-9k5r0pfb.mjs +0 -1
- package/dist/chunks/cli-0.6.4-9wdpd5tf.mjs +0 -2
- package/dist/chunks/cli-0.6.4-9ydhssth.mjs +0 -2
- package/dist/chunks/cli-0.6.4-9z6f4aka.mjs +0 -2
- package/dist/chunks/cli-0.6.4-a1der2pe.mjs +0 -2
- package/dist/chunks/cli-0.6.4-a4wjm2rf.mjs +0 -58
- package/dist/chunks/cli-0.6.4-a772rm3j.mjs +0 -3
- package/dist/chunks/cli-0.6.4-a7tb1zsc.mjs +0 -3
- package/dist/chunks/cli-0.6.4-aprgpdp6.mjs +0 -2
- package/dist/chunks/cli-0.6.4-bbsbw8kz.mjs +0 -2
- package/dist/chunks/cli-0.6.4-bgwzkgj9.mjs +0 -2
- package/dist/chunks/cli-0.6.4-btcax77x.mjs +0 -2
- package/dist/chunks/cli-0.6.4-bvrcy0gs.mjs +0 -2
- package/dist/chunks/cli-0.6.4-cgktpczq.mjs +0 -2
- package/dist/chunks/cli-0.6.4-cp53mw1m.mjs +0 -2
- package/dist/chunks/cli-0.6.4-cttwajrp.mjs +0 -2
- package/dist/chunks/cli-0.6.4-cxhs267r.mjs +0 -2
- package/dist/chunks/cli-0.6.4-cy7jqdcj.mjs +0 -2
- package/dist/chunks/cli-0.6.4-da88vvgh.mjs +0 -2
- package/dist/chunks/cli-0.6.4-dhyghbjg.mjs +0 -2
- package/dist/chunks/cli-0.6.4-dny0rntq.mjs +0 -2
- package/dist/chunks/cli-0.6.4-dtrjgbbz.mjs +0 -2
- package/dist/chunks/cli-0.6.4-dvh5yb9z.mjs +0 -2
- package/dist/chunks/cli-0.6.4-dz01y28k.mjs +0 -133
- package/dist/chunks/cli-0.6.4-dzer59m8.mjs +0 -2
- package/dist/chunks/cli-0.6.4-e0pqs0qg.mjs +0 -4
- package/dist/chunks/cli-0.6.4-e4nxzjbd.mjs +0 -3
- package/dist/chunks/cli-0.6.4-ehexec8h.mjs +0 -2
- package/dist/chunks/cli-0.6.4-ejrq8g7w.mjs +0 -2
- package/dist/chunks/cli-0.6.4-ekg42ba5.mjs +0 -2
- package/dist/chunks/cli-0.6.4-em2mfvpg.mjs +0 -193
- package/dist/chunks/cli-0.6.4-ex2d76ze.mjs +0 -4
- package/dist/chunks/cli-0.6.4-eykta4ak.mjs +0 -2
- package/dist/chunks/cli-0.6.4-f1ya630v.mjs +0 -39
- package/dist/chunks/cli-0.6.4-f51bqfv1.mjs +0 -4
- package/dist/chunks/cli-0.6.4-fg71wev8.mjs +0 -2
- package/dist/chunks/cli-0.6.4-fh1fzqd2.mjs +0 -133
- package/dist/chunks/cli-0.6.4-fhcsv0k7.mjs +0 -2
- package/dist/chunks/cli-0.6.4-fppw8yjy.mjs +0 -2
- package/dist/chunks/cli-0.6.4-g1kweb8j.mjs +0 -17
- package/dist/chunks/cli-0.6.4-g1qw18ad.mjs +0 -2
- package/dist/chunks/cli-0.6.4-g2a0w8wh.mjs +0 -3
- package/dist/chunks/cli-0.6.4-g37ywszt.mjs +0 -2
- package/dist/chunks/cli-0.6.4-gbc9szsq.mjs +0 -20
- package/dist/chunks/cli-0.6.4-gdvys9qy.mjs +0 -2
- package/dist/chunks/cli-0.6.4-ge6qg76s.mjs +0 -18
- package/dist/chunks/cli-0.6.4-ggxbtbd1.mjs +0 -2
- package/dist/chunks/cli-0.6.4-ghagvvva.mjs +0 -2
- package/dist/chunks/cli-0.6.4-gyb3cp0m.mjs +0 -15
- package/dist/chunks/cli-0.6.4-h2c5gxa3.mjs +0 -2
- package/dist/chunks/cli-0.6.4-h598qtx2.mjs +0 -2
- package/dist/chunks/cli-0.6.4-h9ncym59.mjs +0 -2
- package/dist/chunks/cli-0.6.4-hb3rny4x.mjs +0 -3
- package/dist/chunks/cli-0.6.4-hhaw00mw.mjs +0 -2
- package/dist/chunks/cli-0.6.4-hk0wy6ay.mjs +0 -2
- package/dist/chunks/cli-0.6.4-hrs590q0.mjs +0 -2
- package/dist/chunks/cli-0.6.4-hx250zvn.mjs +0 -2
- package/dist/chunks/cli-0.6.4-j61ta5y1.mjs +0 -2
- package/dist/chunks/cli-0.6.4-j7hr5rd4.mjs +0 -2
- package/dist/chunks/cli-0.6.4-jc2r75s6.mjs +0 -2
- package/dist/chunks/cli-0.6.4-jg4xm27s.mjs +0 -2
- package/dist/chunks/cli-0.6.4-jh0d8t91.mjs +0 -9
- package/dist/chunks/cli-0.6.4-jk0aqvhn.mjs +0 -2
- package/dist/chunks/cli-0.6.4-jmvxa7qj.mjs +0 -2
- package/dist/chunks/cli-0.6.4-jn11nc5a.mjs +0 -2
- package/dist/chunks/cli-0.6.4-jra8pavs.mjs +0 -2
- package/dist/chunks/cli-0.6.4-jrweqe5y.mjs +0 -2
- package/dist/chunks/cli-0.6.4-jvfz5yaf.mjs +0 -2
- package/dist/chunks/cli-0.6.4-k2azfhje.mjs +0 -12
- package/dist/chunks/cli-0.6.4-k498jsqp.mjs +0 -9
- package/dist/chunks/cli-0.6.4-k6a4gc0p.mjs +0 -3
- package/dist/chunks/cli-0.6.4-k76c1cdx.mjs +0 -2
- package/dist/chunks/cli-0.6.4-kkwh828j.mjs +0 -2
- package/dist/chunks/cli-0.6.4-ksf3bj49.mjs +0 -2
- package/dist/chunks/cli-0.6.4-kygb95p8.mjs +0 -2
- package/dist/chunks/cli-0.6.4-m0b0hm20.mjs +0 -2
- package/dist/chunks/cli-0.6.4-ms7sef7r.mjs +0 -2
- package/dist/chunks/cli-0.6.4-n3wmzz8w.mjs +0 -2
- package/dist/chunks/cli-0.6.4-n9mgjg26.mjs +0 -2
- package/dist/chunks/cli-0.6.4-nscxc6w9.mjs +0 -2
- package/dist/chunks/cli-0.6.4-p1yyrrqa.mjs +0 -2
- package/dist/chunks/cli-0.6.4-p56yx5pd.mjs +0 -3
- package/dist/chunks/cli-0.6.4-p7mvm2y6.mjs +0 -5
- package/dist/chunks/cli-0.6.4-p7q1dk2n.mjs +0 -2
- package/dist/chunks/cli-0.6.4-pd75v1wy.mjs +0 -6
- package/dist/chunks/cli-0.6.4-pdn08sja.mjs +0 -2
- package/dist/chunks/cli-0.6.4-pg577m2t.mjs +0 -18
- package/dist/chunks/cli-0.6.4-pjk8hxs1.mjs +0 -4
- package/dist/chunks/cli-0.6.4-pp4r33sa.mjs +0 -4
- package/dist/chunks/cli-0.6.4-pqdfmet2.mjs +0 -4
- package/dist/chunks/cli-0.6.4-prdj94yp.mjs +0 -4
- package/dist/chunks/cli-0.6.4-prv34fmj.mjs +0 -2
- package/dist/chunks/cli-0.6.4-q45r4rnd.mjs +0 -2
- package/dist/chunks/cli-0.6.4-qcpjz3yn.mjs +0 -2
- package/dist/chunks/cli-0.6.4-qxhfaxsk.mjs +0 -2
- package/dist/chunks/cli-0.6.4-rdtbn65d.mjs +0 -2
- package/dist/chunks/cli-0.6.4-rf4gtxa6.mjs +0 -2
- package/dist/chunks/cli-0.6.4-rqmfmwew.mjs +0 -4
- package/dist/chunks/cli-0.6.4-rw4dqk3e.mjs +0 -2
- package/dist/chunks/cli-0.6.4-s062axqp.mjs +0 -67
- package/dist/chunks/cli-0.6.4-sd36e6nd.mjs +0 -26
- package/dist/chunks/cli-0.6.4-sebyspe3.mjs +0 -2
- package/dist/chunks/cli-0.6.4-sg59x1y7.mjs +0 -2
- package/dist/chunks/cli-0.6.4-sk4r23n0.mjs +0 -2
- package/dist/chunks/cli-0.6.4-spysehd5.mjs +0 -2
- package/dist/chunks/cli-0.6.4-sz5jkrwv.mjs +0 -8
- package/dist/chunks/cli-0.6.4-t13eh9gb.mjs +0 -2
- package/dist/chunks/cli-0.6.4-t87tgqs2.mjs +0 -2
- package/dist/chunks/cli-0.6.4-tda6fzwk.mjs +0 -2
- package/dist/chunks/cli-0.6.4-tgtxrvzn.mjs +0 -3
- package/dist/chunks/cli-0.6.4-ttyv846t.mjs +0 -2
- package/dist/chunks/cli-0.6.4-v050kzdd.mjs +0 -2
- package/dist/chunks/cli-0.6.4-v2fsc12w.mjs +0 -2
- package/dist/chunks/cli-0.6.4-v3ym5bjk.mjs +0 -2
- package/dist/chunks/cli-0.6.4-vawbj80d.mjs +0 -5
- package/dist/chunks/cli-0.6.4-vekd5qeh.mjs +0 -3
- package/dist/chunks/cli-0.6.4-vg82smm8.mjs +0 -24
- package/dist/chunks/cli-0.6.4-vs7kwtc6.mjs +0 -2
- package/dist/chunks/cli-0.6.4-vyqg6c95.mjs +0 -3
- package/dist/chunks/cli-0.6.4-vyyncn9y.mjs +0 -34
- package/dist/chunks/cli-0.6.4-wpzc8xj5.mjs +0 -3
- package/dist/chunks/cli-0.6.4-x0pe866a.mjs +0 -2
- package/dist/chunks/cli-0.6.4-x3pc9zn1.mjs +0 -6
- package/dist/chunks/cli-0.6.4-x6d6qxpg.mjs +0 -2
- package/dist/chunks/cli-0.6.4-x6npewbm.mjs +0 -6
- package/dist/chunks/cli-0.6.4-x7ss8dse.mjs +0 -2
- package/dist/chunks/cli-0.6.4-x84dfqja.mjs +0 -2
- package/dist/chunks/cli-0.6.4-xf6vdp7p.mjs +0 -2
- package/dist/chunks/cli-0.6.4-xgmmcr56.mjs +0 -25
- package/dist/chunks/cli-0.6.4-xh0mhy0q.mjs +0 -2
- package/dist/chunks/cli-0.6.4-xj949nnt.mjs +0 -2
- package/dist/chunks/cli-0.6.4-xm44y40c.mjs +0 -2
- package/dist/chunks/cli-0.6.4-y9nrcnx6.mjs +0 -2
- package/dist/chunks/cli-0.6.4-yak49q2f.mjs +0 -12
- package/dist/chunks/cli-0.6.4-ymgdd6a7.mjs +0 -2
- package/dist/chunks/cli-0.6.4-ysvx8vre.mjs +0 -12
- package/dist/chunks/cli-0.6.4-yxqfeka0.mjs +0 -2
- package/dist/chunks/cli-0.6.4-z0j0rsqe.mjs +0 -2
- package/dist/chunks/cli-0.6.4-z3hp0qzv.mjs +0 -59
- package/dist/chunks/cli-0.6.4-z63xq66c.mjs +0 -2
- package/dist/chunks/cli-0.6.4-zgzya3hb.mjs +0 -17
- package/dist/chunks/cli-0.6.4-zkfpt86n.mjs +0 -2
- package/dist/chunks/cli-0.6.4-zss3bwjp.mjs +0 -2
- package/dist/chunks/cli-0.6.4-ztqssjbf.mjs +0 -2
- package/dist/chunks/client-0.6.4-ba2mtgjd.mjs +0 -1
- package/dist/chunks/color-0.6.4-2g7drx0s.mjs +0 -1
- package/dist/chunks/compact-0.6.4-tnqd9mmn.mjs +0 -3
- package/dist/chunks/config-0.6.4-3bhr23pq.mjs +0 -1
- package/dist/chunks/config-0.6.4-x56wgtde.mjs +0 -1
- package/dist/chunks/constants-0.6.4-cy9scgrh.mjs +0 -1
- package/dist/chunks/context-0.6.4-sjcg7yxa.mjs +0 -1
- package/dist/chunks/context-noninteractive-0.6.4-630bqrtn.mjs +0 -1
- package/dist/chunks/conversation-0.6.4-4wkb13gm.mjs +0 -1
- package/dist/chunks/copilotHeaders-0.6.4-6ygmq0rm.mjs +0 -1
- package/dist/chunks/copy-0.6.4-bgxrhckq.mjs +0 -9
- package/dist/chunks/cost-0.6.4-w83wc8ng.mjs +0 -1
- package/dist/chunks/createSSHSession-0.6.4-xcjsx731.mjs +0 -1
- package/dist/chunks/createSession-0.6.4-wsz3r56j.mjs +0 -1
- package/dist/chunks/debug-0.6.4-98yk6kds.mjs +0 -1
- package/dist/chunks/defaultActionDeps-0.6.4-gnr6f4bm.mjs +0 -1365
- package/dist/chunks/desktop-0.6.4-hpbrkj08.mjs +0 -1
- package/dist/chunks/detectRepository-0.6.4-jtg1wvsa.mjs +0 -1
- package/dist/chunks/detection-0.6.4-dqwz1bq1.mjs +0 -1
- package/dist/chunks/diff-0.6.4-6mtph9me.mjs +0 -1
- package/dist/chunks/doctor-0.6.4-rhc37adv.mjs +0 -1
- package/dist/chunks/doctorDiagnostic-0.6.4-dwt35xp9.mjs +0 -1
- package/dist/chunks/earlyInput-0.6.4-gwc98r30.mjs +0 -1
- package/dist/chunks/effort-0.6.4-gat4neps.mjs +0 -10
- package/dist/chunks/envUtils-0.6.4-y2b3abdc.mjs +0 -1
- package/dist/chunks/environmentSelection-0.6.4-xxrzk7m6.mjs +0 -1
- package/dist/chunks/environments-0.6.4-h1v61wzy.mjs +0 -1
- package/dist/chunks/errors-0.6.4-ca74wb6q.mjs +0 -1
- package/dist/chunks/exampleCommands-0.6.4-g36htc09.mjs +0 -1
- package/dist/chunks/exit-0.6.4-z7yj01cx.mjs +0 -1
- package/dist/chunks/export-0.6.4-ffzrse4n.mjs +0 -2
- package/dist/chunks/extra-usage-0.6.4-d23skk9c.mjs +0 -1
- package/dist/chunks/extra-usage-noninteractive-0.6.4-0akfkh19.mjs +0 -1
- package/dist/chunks/fast-0.6.4-dy9ew4g1.mjs +0 -1
- package/dist/chunks/feedback-0.6.4-5pw5kr6j.mjs +0 -14
- package/dist/chunks/firstPartyEventLogger-0.6.4-58n8gvjr.mjs +0 -1
- package/dist/chunks/git-0.6.4-5p9es5sh.mjs +0 -1
- package/dist/chunks/githubModelsCredentials-0.6.4-c75tjtm6.mjs +0 -1
- package/dist/chunks/goal-0.6.4-05yfbtf5.mjs +0 -4
- package/dist/chunks/grove-0.6.4-3mxw3jbp.mjs +0 -1
- package/dist/chunks/growthbook-0.6.4-w1a2ja8q.mjs +0 -1
- package/dist/chunks/headless-0.6.4-1b8pxyk6.mjs +0 -2
- package/dist/chunks/heapdump-0.6.4-ckft18df.mjs +0 -6
- package/dist/chunks/help-0.6.4-1qswzq2t.mjs +0 -1
- package/dist/chunks/hookChains-0.6.4-mc6w2yn4.mjs +0 -3
- package/dist/chunks/hooks-0.6.4-zqycdaww.mjs +0 -1
- package/dist/chunks/hooks-0.6.4-zw8ak2ae.mjs +0 -79
- package/dist/chunks/ide-0.6.4-kjaythhf.mjs +0 -3
- package/dist/chunks/image-processor-napi-0.6.4-9n32xq4y.mjs +0 -1
- package/dist/chunks/index-0.6.4-1eqjmyfc.mjs +0 -1
- package/dist/chunks/index-0.6.4-5x2zgy8s.mjs +0 -1
- package/dist/chunks/index-0.6.4-6er8ykqb.mjs +0 -1
- package/dist/chunks/index-0.6.4-6z8pdxeg.mjs +0 -1
- package/dist/chunks/index-0.6.4-8gxkz67a.mjs +0 -1
- package/dist/chunks/index-0.6.4-ay6td6v7.mjs +0 -1
- package/dist/chunks/index-0.6.4-bf4fb2rv.mjs +0 -1
- package/dist/chunks/index-0.6.4-cs4qnyse.mjs +0 -9
- package/dist/chunks/index-0.6.4-d8a7z3cd.mjs +0 -1
- package/dist/chunks/index-0.6.4-e1xb3q84.mjs +0 -1
- package/dist/chunks/index-0.6.4-fapqkd13.mjs +0 -30
- package/dist/chunks/index-0.6.4-fsypm1g5.mjs +0 -1
- package/dist/chunks/index-0.6.4-j1dpgmwz.mjs +0 -5
- package/dist/chunks/index-0.6.4-k5z3btpk.mjs +0 -1
- package/dist/chunks/index-0.6.4-kv8v270h.mjs +0 -1
- package/dist/chunks/index-0.6.4-nn5ynnfb.mjs +0 -2
- package/dist/chunks/index-0.6.4-np003dn4.mjs +0 -2
- package/dist/chunks/index-0.6.4-qtcndy07.mjs +0 -1
- package/dist/chunks/index-0.6.4-s0gg7sga.mjs +0 -1
- package/dist/chunks/index-0.6.4-scbwf11t.mjs +0 -9
- package/dist/chunks/index-0.6.4-sqrhv68x.mjs +0 -17
- package/dist/chunks/index-0.6.4-w93mdh3w.mjs +0 -1
- package/dist/chunks/init-0.6.4-ccs2p8cg.mjs +0 -1
- package/dist/chunks/initReplBridge-0.6.4-7cnffgw6.mjs +0 -1
- package/dist/chunks/ink-0.6.4-kv9v236j.mjs +0 -1
- package/dist/chunks/insights-0.6.4-v475bskf.mjs +0 -870
- package/dist/chunks/install-0.6.4-9x6x6d7w.mjs +0 -1
- package/dist/chunks/install-github-app-0.6.4-e0hnh1ac.mjs +0 -149
- package/dist/chunks/install-slack-app-0.6.4-5m1bq4zr.mjs +0 -1
- package/dist/chunks/instrumentation-0.6.4-j0dm5kvt.mjs +0 -1
- package/dist/chunks/interactiveHelpers-0.6.4-trjfh09v.mjs +0 -1
- package/dist/chunks/keybindings-0.6.4-52xyg2q7.mjs +0 -2
- package/dist/chunks/knowledge-0.6.4-3pd8yspr.mjs +0 -2
- package/dist/chunks/latestVersionCache-0.6.4-6nv1r43c.mjs +0 -1
- package/dist/chunks/loadAgentsDir-0.6.4-2f1egc65.mjs +0 -1
- package/dist/chunks/loadPluginHooks-0.6.4-6bdefjx0.mjs +0 -1
- package/dist/chunks/loadPluginHooks-0.6.4-jg6hn8q1.mjs +0 -1
- package/dist/chunks/log-0.6.4-byx1v0aw.mjs +0 -1
- package/dist/chunks/main-0.6.4-7kgs4wzg.mjs +0 -1
- package/dist/chunks/managedEnv-0.6.4-seg7a473.mjs +0 -1
- package/dist/chunks/mcp-0.6.4-fme3jax5.mjs +0 -17
- package/dist/chunks/mcp-0.6.4-gw2k9j0s.mjs +0 -4
- package/dist/chunks/mcp-0.6.4-hz4ymzf8.mjs +0 -1
- package/dist/chunks/mcpb-0.6.4-rm87xg1m.mjs +0 -1
- package/dist/chunks/memory-0.6.4-hdem4rfy.mjs +0 -3
- package/dist/chunks/mobile-0.6.4-xga427dx.mjs +0 -2
- package/dist/chunks/model-0.6.4-e7swq7hs.mjs +0 -1
- package/dist/chunks/model-0.6.4-raaz0pn8.mjs +0 -2
- package/dist/chunks/node-0.6.4-2mhf46p7.mjs +0 -12
- package/dist/chunks/oauth-0.6.4-de05kmr6.mjs +0 -1
- package/dist/chunks/openaiShim-0.6.4-shaa1wsv.mjs +0 -14
- package/dist/chunks/output-style-0.6.4-gfd6r8hz.mjs +0 -1
- package/dist/chunks/package-D6422PQU-0.6.4-syh17p64.mjs +0 -1
- package/dist/chunks/parseConnectUrl-0.6.4-k2eex22j.mjs +0 -1
- package/dist/chunks/parser-0.6.4-43t4x7r9.mjs +0 -1
- package/dist/chunks/passes-0.6.4-tbj019p0.mjs +0 -1
- package/dist/chunks/permissions-0.6.4-d0fw76d7.mjs +0 -3
- package/dist/chunks/plan-0.6.4-084fq0kq.mjs +0 -1
- package/dist/chunks/plist-0.6.4-439zn1sw.mjs +0 -1
- package/dist/chunks/plugin-0.6.4-mnsbmvwr.mjs +0 -29
- package/dist/chunks/pluginStartupCheck-0.6.4-t2kn51a4.mjs +0 -1
- package/dist/chunks/plugins-0.6.4-630t2jf7.mjs +0 -9
- package/dist/chunks/preActionHook-0.6.4-gfadf2sk.mjs +0 -2
- package/dist/chunks/print-0.6.4-pw4vrnzd.mjs +0 -57
- package/dist/chunks/privacy-settings-0.6.4-b97bep23.mjs +0 -1
- package/dist/chunks/process-0.6.4-yewqx1g2.mjs +0 -1
- package/dist/chunks/processBashCommand-0.6.4-64reh5jq.mjs +0 -1
- package/dist/chunks/processSlashCommand-0.6.4-46w7k3kw.mjs +0 -9
- package/dist/chunks/prompt-0.6.4-1dfbspxp.mjs +0 -1
- package/dist/chunks/prompt-0.6.4-ax8j0qse.mjs +0 -1
- package/dist/chunks/prompts-0.6.4-avjtc7j4.mjs +0 -1
- package/dist/chunks/protocolHandler-0.6.4-z0382sns.mjs +0 -13
- package/dist/chunks/provider-0.6.4-dww4c5j2.mjs +0 -2
- package/dist/chunks/providerProfiles-0.6.4-phwwz4cg.mjs +0 -1
- package/dist/chunks/providerValidation-0.6.4-zctdw7r7.mjs +0 -6
- package/dist/chunks/rate-limit-options-0.6.4-sydaxbv7.mjs +0 -1
- package/dist/chunks/registerSubcommands-0.6.4-ejhhvkd5.mjs +0 -34
- package/dist/chunks/registry-0.6.4-kb0x4rx3.mjs +0 -1
- package/dist/chunks/release-notes-0.6.4-es6sgycw.mjs +0 -5
- package/dist/chunks/reload-plugins-0.6.4-z5560vpf.mjs +0 -2
- package/dist/chunks/remote-env-0.6.4-6ypd7mgt.mjs +0 -1
- package/dist/chunks/remoteBridgeCore-0.6.4-r2nre1by.mjs +0 -1
- package/dist/chunks/remoteSession-0.6.4-jhazvxam.mjs +0 -1
- package/dist/chunks/rename-0.6.4-wnm225zc.mjs +0 -1
- package/dist/chunks/replBridgeHandle-0.6.4-90waxyt2.mjs +0 -1
- package/dist/chunks/replLauncher-0.6.4-fqvqymes.mjs +0 -1
- package/dist/chunks/resume-0.6.4-2edgjvxb.mjs +0 -2
- package/dist/chunks/rewind-0.6.4-43tzjabn.mjs +0 -1
- package/dist/chunks/rootOptions-0.6.4-efwh7nb7.mjs +0 -1
- package/dist/chunks/sandbox-adapter-0.6.4-7ccq9g0r.mjs +0 -1
- package/dist/chunks/sandbox-toggle-0.6.4-ca6p1txa.mjs +0 -1
- package/dist/chunks/session-0.6.4-xqz0b6bv.mjs +0 -2
- package/dist/chunks/sessionDiscovery-0.6.4-zhn2re2r.mjs +0 -1
- package/dist/chunks/sessionFileAccessHooks-0.6.4-0s8vv82b.mjs +0 -1
- package/dist/chunks/sessionStorage-0.6.4-k27431kx.mjs +0 -1
- package/dist/chunks/settings-0.6.4-xg6qae4k.mjs +0 -1
- package/dist/chunks/setup-0.6.4-zc0wstra.mjs +0 -5
- package/dist/chunks/sinks-0.6.4-3rycgm4d.mjs +0 -1
- package/dist/chunks/skills-0.6.4-jwf0fht6.mjs +0 -1
- package/dist/chunks/startupProfiler-0.6.4-6c1wp85a.mjs +0 -1
- package/dist/chunks/startupUpdateCheck-0.6.4-xqbvq5b5.mjs +0 -1
- package/dist/chunks/state-0.6.4-p0ddysh2.mjs +0 -1
- package/dist/chunks/stats-0.6.4-hys6q4f4.mjs +0 -6
- package/dist/chunks/status-0.6.4-5f8q60ey.mjs +0 -1
- package/dist/chunks/stickers-0.6.4-tftjq5eh.mjs +0 -1
- package/dist/chunks/subprocessEnv-0.6.4-gz5jdaaq.mjs +0 -1
- package/dist/chunks/tasks-0.6.4-s9qwaetv.mjs +0 -1
- package/dist/chunks/teamHelpers-0.6.4-h72qp38f.mjs +0 -1
- package/dist/chunks/teammateModeSnapshot-0.6.4-ezcvghhw.mjs +0 -1
- package/dist/chunks/teleport-0.6.4-e668czw7.mjs +0 -1
- package/dist/chunks/terminalSetup-0.6.4-53azbkac.mjs +0 -1
- package/dist/chunks/theme-0.6.4-zhw8bpdv.mjs +0 -1
- package/dist/chunks/thinkback-0.6.4-cpckywc7.mjs +0 -1
- package/dist/chunks/thinkback-play-0.6.4-ke47vrva.mjs +0 -1
- package/dist/chunks/toolPool-0.6.4-whn705s5.mjs +0 -1
- package/dist/chunks/toolSearch-0.6.4-80h4rrgj.mjs +0 -1
- package/dist/chunks/tools-0.6.4-4kf64373.mjs +0 -1
- package/dist/chunks/trustedDevice-0.6.4-zbvda07m.mjs +0 -1
- package/dist/chunks/turndown.cjs-0.6.4-ghgzppms.mjs +0 -69
- package/dist/chunks/ultrareviewCommand-0.6.4-r028gcax.mjs +0 -4
- package/dist/chunks/update-0.6.4-a233wpzj.mjs +0 -86
- package/dist/chunks/upgrade-0.6.4-mx4jnstf.mjs +0 -1
- package/dist/chunks/upstreamproxy-0.6.4-4cmr0qtj.mjs +0 -14
- package/dist/chunks/url-handler-napi-0.6.4-vt0a3wdc.mjs +0 -1
- package/dist/chunks/usage-0.6.4-8kncs1zq.mjs +0 -1
- package/dist/chunks/util-0.6.4-afjsm52j.mjs +0 -1
- package/dist/chunks/utils-0.6.4-r5qbctxg.mjs +0 -1
- package/dist/chunks/vim-0.6.4-qb1hpv1s.mjs +0 -1
- package/dist/chunks/watcher-0.6.4-w81paz2g.mjs +0 -1
- package/dist/chunks/wiki-0.6.4-3wc3s65f.mjs +0 -132
- package/dist/chunks/worktree-0.6.4-hy75224j.mjs +0 -1
- package/dist/chunks/worktreeModeEnabled-0.6.4-7wyg7p08.mjs +0 -1
- package/dist/chunks/wrapper-0.6.4-vqj09efm.mjs +0 -7
- /package/dist/chunks/{cli-0.6.4-yrfkm9my.mjs → cli-0.6.6-py5db2ds.mjs} +0 -0
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{wh as v,xh as jf}from"./cli-0.6.6-ymge82rt.mjs";import{Lh as c,Nh as bf}from"./cli-0.6.6-bn18ty4n.mjs";import{$B as _f,$i as W,$q as Qf,AR as qf,BR as p,Bl as N,CD as $f,GQ as g,Hl as Gf,Ir as h,Jr as Vf,Ll as L,Mt as C,Nt as Xf,Pk as ff,Qk as zf,Ql as Jf,RP as Uf,TQ as S,Wk as y,XA as T,YB as u,Zq as E,_Q as l,_q as P,gw as m,hw as Yf,kB as M,lB as Zf,mj as w,nj as e,pP as A,pl as Bf,vD as I}from"./cli-0.6.6-23snct9d.mjs";import{Qda as R,Yda as s}from"./cli-0.6.6-q1j20ysc.mjs";import{wga as O,zga as t}from"./cli-0.6.6-a837m6n5.mjs";import{Gma as H,Rna as a,Tka as F,Uja as U,Vja as q,_ja as x}from"./cli-0.6.6-ncqg4xxp.mjs";import{tpa as K,wpa as o}from"./cli-0.6.6-py5db2ds.mjs";import{randomUUID as Df}from"crypto";async function cf({setMessages:V,readFileState:k,discoveredSkillNames:d,loadedNestedMemoryPaths:i,getAppState:G,setAppState:J,setConversationId:X}){let Y=A();await T("clear",{getAppState:G,setAppState:J,signal:AbortSignal.timeout(Y),timeoutMs:Y});let Z=F();if(Z)O("tengu_cache_eviction_hint",{scope:"conversation_clear",last_request_id:Z});let Q=new Set,_=[],$=(f)=>("isBackgrounded"in f)&&f.isBackgrounded===!1;if(G)for(let f of Object.values(G().tasks)){if($(f))continue;if(I(f))Q.add(f.agentId),_.push(f);else if(m(f))Q.add(f.identity.agentId)}if(V(()=>[]),X)X(Df());if(v(Q),M(x()),k.clear(),d?.clear(),i?.clear(),J)J((f)=>{let B={};for(let[D,z]of Object.entries(f.tasks)){if(!$(z)){B[D]=z;continue}try{if(z.status==="running"){if(h(z)){if(z.shellCommand?.kill(),z.shellCommand?.cleanup(),z.cleanupTimeoutId)clearTimeout(z.cleanupTimeoutId)}if("abortController"in z)z.abortController?.abort();if("unregisterCleanup"in z)z.unregisterCleanup?.()}}catch(r){R(r)}E(D)}return{...f,tasks:B,attribution:C(),standaloneAgentContext:void 0,fileHistory:{snapshots:[],trackedFiles:new Set,snapshotSequence:0},mcp:{clients:[],tools:[],commands:[],resources:{},pluginReconnectKey:f.mcp.pluginReconnectKey}}});N(),S(),H(),c();let n=U();q({setCurrentAsParent:!0}),L(n),await g();for(let f of _){if(f.status!=="running")continue;P(f.id,W(w(f.agentId)))}{let{saveMode:f}=(p(),K(qf)),{isCoordinatorMode:B}=(zf(),K(ff));f(B()?"coordinator":"normal")}let b=y();if(b)l(b);let j=await u("clear");if(j.length>0)V(()=>j)}var Kf=o(()=>{a();t();Yf();$f();Vf();e();Xf();Uf();s();bf();Gf();Zf();_f();p();Qf();Jf();Bf();jf()});
|
|
2
|
+
export{cf as uh,Kf as vh};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{ipa as p,jpa as a}from"./cli-0.6.6-xna6taqd.mjs";import{upa as i}from"./cli-0.6.6-py5db2ds.mjs";var u=i((V)=>{var v=p(),T=a(),_="AWS_ACCESS_KEY_ID",N="AWS_SECRET_ACCESS_KEY",S="AWS_SESSION_TOKEN",C="AWS_CREDENTIAL_EXPIRATION",A="AWS_CREDENTIAL_SCOPE",I="AWS_ACCOUNT_ID",d=(e)=>async()=>{e?.logger?.debug("@aws-sdk/credential-provider-env - fromEnv");let r=process.env[_],s=process.env[N],E=process.env[S],o=process.env[C],n=process.env[A],t=process.env[I];if(r&&s){let c={accessKeyId:r,secretAccessKey:s,...E&&{sessionToken:E},...o&&{expiration:new Date(o)},...n&&{credentialScope:n},...t&&{accountId:t}};return v.setCredentialFeature(c,"CREDENTIALS_ENV_VARS","g"),c}throw new T.CredentialsProviderError("Unable to find environment variable credentials.",{logger:e?.logger})};V.ENV_ACCOUNT_ID=I;V.ENV_CREDENTIAL_SCOPE=A;V.ENV_EXPIRATION=C;V.ENV_KEY=_;V.ENV_SECRET=N;V.ENV_SESSION=S;V.fromEnv=d});
|
|
2
|
+
export{u as R6};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{Me as R,Oe as d}from"./cli-0.6.6-3t45jvj0.mjs";import{h0 as j,k0 as c}from"./cli-0.6.6-je6w2y3h.mjs";import{Cha as D,zha as K}from"./cli-0.6.6-hcajyfhg.mjs";import{Tha as C,_ha as h}from"./cli-0.6.6-g6ja9jcs.mjs";import{wpa as I,xpa as J}from"./cli-0.6.6-py5db2ds.mjs";async function i({environmentId:X,title:Q,events:q,gitRepoUrl:$,branch:Y,signal:z,baseUrl:G,getAccessToken:L,permissionMode:W}){let{getClaudeAIOAuthTokens:B}=await import("./auth-0.6.6-61djjn63.mjs"),{getOrganizationUUID:Z}=await import("./client-0.6.6-epndq4qc.mjs"),{getOauthConfig:V}=await import("./oauth-0.6.6-akp7n7mb.mjs"),{getOAuthHeaders:P}=await import("./api-0.6.6-rrs0y38h.mjs"),{parseGitHubRepository:N}=await import("./detectRepository-0.6.6-ncw5b2aj.mjs"),{getDefaultBranch:_}=await import("./git-0.6.6-rw5vzxwm.mjs"),{getMainLoopModel:M}=await import("./model-0.6.6-8bpwy4gg.mjs"),{default:T}=await import("./index-0.6.6-ejmkdrzm.mjs"),x=L?.()??B()?.accessToken;if(!x)return K("[bridge] No access token for session creation"),null;let k=await Z();if(!k)return K("[bridge] No org UUID for session creation"),null;let E=null,v=null;if($){let{parseGitRemote:y}=await import("./detectRepository-0.6.6-ncw5b2aj.mjs"),O=y($);if(O){let{host:A,owner:S,name:f}=O,F=Y||await _()||void 0;E={type:"git_repository",url:`https://${A}/${S}/${f}`,revision:F},v={type:"git_repository",git_info:{type:"github",repo:`${S}/${f}`,branches:[`claude/${Y||"task"}`]}}}else{let A=N($);if(A){let[S,f]=A.split("/");if(S&&f){let F=Y||await _()||void 0;E={type:"git_repository",url:`https://github.com/${S}/${f}`,revision:F},v={type:"git_repository",git_info:{type:"github",repo:`${S}/${f}`,branches:[`claude/${Y||"task"}`]}}}}}}let m={...Q!==void 0&&{title:Q},events:q,session_context:{sources:E?[E]:[],outcomes:v?[v]:[],model:M()},environment_id:X,source:"remote-control",...W&&{permission_mode:W}},U={...P(x),"anthropic-beta":"ccr-byoc-2025-07-29","x-organization-uuid":k},b=`${G??V().BASE_API_URL}/v1/sessions`,H;try{H=await T.post(b,m,{headers:U,signal:z,validateStatus:(y)=>y<500})}catch(y){return K(`[bridge] Session creation request failed: ${C(y)}`),null}if(!(H.status===200||H.status===201)){let y=R(H.data);return K(`[bridge] Session creation failed with status ${H.status}${y?`: ${y}`:""}`),null}let w=H.data;if(!w||typeof w!=="object"||!("id"in w)||typeof w.id!=="string")return K("[bridge] No session ID in response"),null;return w.id}async function r(X,Q){let{getClaudeAIOAuthTokens:q}=await import("./auth-0.6.6-61djjn63.mjs"),{getOrganizationUUID:$}=await import("./client-0.6.6-epndq4qc.mjs"),{getOauthConfig:Y}=await import("./oauth-0.6.6-akp7n7mb.mjs"),{getOAuthHeaders:z}=await import("./api-0.6.6-rrs0y38h.mjs"),{default:G}=await import("./index-0.6.6-ejmkdrzm.mjs"),L=Q?.getAccessToken?.()??q()?.accessToken;if(!L)return K("[bridge] No access token for session fetch"),null;let W=await $();if(!W)return K("[bridge] No org UUID for session fetch"),null;let B={...z(L),"anthropic-beta":"ccr-byoc-2025-07-29","x-organization-uuid":W},Z=`${Q?.baseUrl??Y().BASE_API_URL}/v1/sessions/${X}`,V=1e4;K(`[bridge] Fetching session ${X}`);let P;try{P=await G.get(Z,{headers:B,timeout:V,validateStatus:(N)=>N<500})}catch(N){if(G.isAxiosError(N)){let _=N.response?.status??"no-response",M=N.code??"unknown-code",T=N.config?.url??Z,x=N.config?.method?.toUpperCase()??"GET",k=N.message??C(N),E=N.config?.timeout??V;K(`[bridge] Session fetch request failed: status=${_} code=${M} method=${x} url=${T} timeout=${E} message=${k}`)}else K(`[bridge] Session fetch request failed: url=${Z} timeout=${V} message=${C(N)}`);return null}if(P.status!==200){let N=R(P.data);return K(`[bridge] Session fetch failed with status ${P.status} url=${Z}${N?`: ${N}`:""}`),null}return P.data}async function t(X,Q){let{getClaudeAIOAuthTokens:q}=await import("./auth-0.6.6-61djjn63.mjs"),{getOrganizationUUID:$}=await import("./client-0.6.6-epndq4qc.mjs"),{getOauthConfig:Y}=await import("./oauth-0.6.6-akp7n7mb.mjs"),{getOAuthHeaders:z}=await import("./api-0.6.6-rrs0y38h.mjs"),{default:G}=await import("./index-0.6.6-ejmkdrzm.mjs"),L=Q?.getAccessToken?.()??q()?.accessToken;if(!L){K("[bridge] No access token for session archive");return}let W=await $();if(!W){K("[bridge] No org UUID for session archive");return}let B={...z(L),"anthropic-beta":"ccr-byoc-2025-07-29","x-organization-uuid":W},Z=`${Q?.baseUrl??Y().BASE_API_URL}/v1/sessions/${X}/archive`;K(`[bridge] Archiving session ${X}`);let V=await G.post(Z,{},{headers:B,timeout:Q?.timeoutMs??1e4,validateStatus:(P)=>P<500});if(V.status===200)K(`[bridge] Session ${X} archived successfully`);else{let P=R(V.data);K(`[bridge] Session archive failed with status ${V.status}${P?`: ${P}`:""}`)}}async function o(X,Q,q){let{getClaudeAIOAuthTokens:$}=await import("./auth-0.6.6-61djjn63.mjs"),{getOrganizationUUID:Y}=await import("./client-0.6.6-epndq4qc.mjs"),{getOauthConfig:z}=await import("./oauth-0.6.6-akp7n7mb.mjs"),{getOAuthHeaders:G}=await import("./api-0.6.6-rrs0y38h.mjs"),{default:L}=await import("./index-0.6.6-ejmkdrzm.mjs"),W=q?.getAccessToken?.()??$()?.accessToken;if(!W){K("[bridge] No access token for session title update");return}let B=await Y();if(!B){K("[bridge] No org UUID for session title update");return}let Z={...G(W),"anthropic-beta":"ccr-byoc-2025-07-29","x-organization-uuid":B},V=j(X),P=`${q?.baseUrl??z().BASE_API_URL}/v1/sessions/${V}`;K(`[bridge] Updating session title: ${V} → ${Q}`);try{let N=await L.patch(P,{title:Q},{headers:Z,timeout:1e4,validateStatus:(_)=>_<500});if(N.status===200)K("[bridge] Session title updated successfully");else{let _=R(N.data);K(`[bridge] Session title update failed with status ${N.status}${_?`: ${_}`:""}`)}}catch(N){K(`[bridge] Session title update request failed: ${C(N)}`)}}var p=I(()=>{D();h();d();c()});
|
|
2
|
+
export{i as De,r as Ee,t as Fe,o as Ge,p as He};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{_Y as W,mZ as X,oX as f,oZ as k}from"./cli-0.6.6-en2sexw5.mjs";import{t1 as V,u1 as J,w1 as K}from"./cli-0.6.6-arvcw19g.mjs";import{x1 as P}from"./cli-0.6.6-c267ckfv.mjs";import{$da as U,aea as O}from"./cli-0.6.6-b1wqaqv9.mjs";import{spa as Q,wpa as L}from"./cli-0.6.6-py5db2ds.mjs";import{PassThrough as C}from"stream";function E(q){let b=Z.c(5),{children:w}=q,{exit:z}=W(),B,H;if(b[0]!==z)B=()=>{let D=setTimeout(z,0);return()=>clearTimeout(D)},H=[z],b[0]=z,b[1]=B,b[2]=H;else B=b[1],H=b[2];y.useLayoutEffect(B,H);let G;if(b[3]!==w)G=J(V,{children:w}),b[3]=w,b[4]=G;else G=b[4];return G}function Y(q){let b=q.indexOf(M);if(b===-1)return q;let w=b+M.length,z=q.indexOf(F,w);if(z===-1)return q;return q.slice(w,z)}function g(q,b){return new Promise(async(w)=>{let z="",B=new C;if(b!==void 0)B.columns=b;B.on("data",(G)=>{z+=G.toString()});let H=await X(J(E,{children:q}),{stdout:B,patchConsole:!1});await Promise.race([H.waitUntilExit(),new Promise((G)=>setTimeout(G,3000))]),await w(Y(z))})}async function N(q,b){let w=await g(q,b);return U(w)}var Z,y,M="\x1B[?2026h",F="\x1B[?2026l";var j=L(()=>{O();k();K();Z=Q(f(),1),y=Q(P(),1)});
|
|
2
|
+
export{g as Xd,N as Yd,j as Zd};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import{Nd as c,Td as Eq}from"./cli-0.6.6-vesqvt0y.mjs";import{Ao as A,Co as D,DJ as n,Do as Aq,Eo as h,Fo as S,Go as Fq,JJ as e,KJ as P,OJ as jq,PJ as O,QJ as qq,SJ as I,TJ as Gq,ZJ as Cq,aK as b,bK as Lq,ds as l,eK as Hq,es as wq,fK as Jq,hJ as v,hK as vq,iJ as m,iK as y,jK as Qq,kJ as Oq,kK as Xq,ko as s,lK as Yq,lo as Tq,mK as $q,nK as d,oo as t,qK as Dq,qo as Mq,uo as i,wo as Rq}from"./cli-0.6.6-23snct9d.mjs";import{Qda as a,Uaa as F,Waa as L,Yda as Bq,hba as _q,paa as V,xaa as Kq}from"./cli-0.6.6-q1j20ysc.mjs";import{lha as p,pha as Wq}from"./cli-0.6.6-hcajyfhg.mjs";import{Sha as o,Vha as N,_ha as Uq}from"./cli-0.6.6-g6ja9jcs.mjs";import{Rna as xq,_ja as f}from"./cli-0.6.6-ncqg4xxp.mjs";import{wpa as Zq}from"./cli-0.6.6-py5db2ds.mjs";import{dirname as Nq,join as u}from"path";function g(q){if(!k.includes(q))throw Error(`Invalid scope "${q}". Must be one of: ${k.join(", ")}`)}function JG(q){return k.includes(q)}function zq(q){return q==="project"||q==="local"?f():void 0}function QG(q){return F("projectSettings")?.enabledPlugins?.[q]===!0}function Vq(q){let H=q.includes("@"),G=["local","project","user"];for(let X of G){let J=F(D(X))?.enabledPlugins;if(!J)continue;for(let Y of Object.keys(J))if(H?Y===q:Y.startsWith(`${q}@`))return{pluginId:Y,scope:X}}return null}function bq(q,H){let{name:G,marketplace:X}=A(q);return H.find((J)=>{if(J.name===q||J.name===G)return!0;if(X&&J.source)return J.name===G&&J.source.includes(`@${X}`);return!1})}function yq(q){let{name:H}=A(q),G=O();if(G.plugins[q]?.length)return{pluginId:q,pluginName:H};let X=Object.keys(G.plugins).find((J)=>{let{name:Y}=A(J);return Y===H&&(G.plugins[J]?.length??0)>0});if(X)return{pluginId:X,pluginName:H};return null}function kq(q){let G=O().plugins[q];if(!G||G.length===0)return{scope:"user"};let X=f(),J=G.find((Z)=>Z.scope==="local"&&Z.projectPath===X);if(J)return{scope:J.scope,projectPath:J.projectPath};let Y=G.find((Z)=>Z.scope==="project"&&Z.projectPath===X);if(Y)return{scope:Y.scope,projectPath:Y.projectPath};let z=G.find((Z)=>Z.scope==="user");if(z)return{scope:z.scope};return{scope:G[0].scope,projectPath:G[0].projectPath}}async function XG(q,H="user"){g(H);let{name:G,marketplace:X}=A(q),J,Y,z;if(X){let $=await P(q);if($)J=$.entry,Y=X,z=$.marketplaceInstallLocation}else{let $=await n();for(let[B,K]of Object.entries($))try{let M=(await e(B)).plugins.find((R)=>R.name===G);if(M){J=M,Y=B,z=K.installLocation;break}}catch(x){a(o(x));continue}}if(!J||!Y){let $=X?`marketplace "${X}"`:"any configured marketplace";return{success:!1,message:`Plugin "${G}" not found in ${$}`}}let Z=J,W=`${Z.name}@${Y}`,Q=await Jq({pluginId:W,entry:Z,scope:H,marketplaceInstallLocation:z});if(!Q.ok)switch(Q.reason){case"local-source-no-location":return{success:!1,message:`Cannot install local plugin "${Q.pluginName}" without marketplace install location`};case"settings-write-failed":return{success:!1,message:`Failed to update settings: ${Q.message}`};case"resolution-failed":return{success:!1,message:Hq(Q.resolution)};case"blocked-by-policy":return{success:!1,message:`Plugin "${Q.pluginName}" is blocked by your organization's policy and cannot be installed`};case"dependency-blocked-by-policy":return{success:!1,message:`Plugin "${Q.pluginName}" depends on "${Q.blockedDependency}", which is blocked by your organization's policy`}}return{success:!0,message:`Successfully installed plugin: ${W} (scope: ${H})${Q.depNote}`,pluginId:W,pluginName:Z.name,scope:H}}async function YG(q,H="user",G=!0){g(H);let{enabled:X,disabled:J}=await d(),Y=[...X,...J],z=bq(q,Y),Z=D(H),W=F(Z),Q,$;if(z)Q=Object.keys(W?.enabledPlugins??{}).find((U)=>U===q||U===z.name||U.startsWith(`${z.name}@`))??(q.includes("@")?q:z.name),$=z.name;else{let U=yq(q);if(!U)return{success:!1,message:`Plugin "${q}" not found in installed plugins`};Q=U.pluginId,$=U.pluginName}let B=zq(H),x=O().plugins[Q],M=x?.find((U)=>U.scope===H&&U.projectPath===B);if(!M){let{scope:U}=kq(Q);if(U!==H&&x&&x.length>0){if(U==="project")return{success:!1,message:`Plugin "${q}" is enabled at project scope (.claudin/settings.json, shared with your team). To disable just for you: claudin plugin disable ${q} --scope local`};return{success:!1,message:`Plugin "${q}" is installed in ${U} scope, not ${H}. Use --scope ${U} to uninstall.`}}return{success:!1,message:`Plugin "${q}" is not installed in ${H} scope. Use --scope to specify the correct scope.`}}let R=M.installPath,_={...W?.enabledPlugins};_[Q]=void 0,L(Z,{enabledPlugins:_}),v(),qq(Q,H,B);let w=O().plugins[Q],j=!w||w.length===0;if(j&&R)await m(R);if(j){if(t(Q),G)await s(Q)}let C=h(Q,Y),E=S(C);return{success:!0,message:`Successfully uninstalled plugin: ${$} (scope: ${H})${E}`,pluginId:Q,pluginName:$,scope:H,reverseDependents:C.length>0?C:void 0}}async function r(q,H,G){let X=H?"enable":"disable";if(i(q)){let{error:_}=L("userSettings",{enabledPlugins:{...F("userSettings")?.enabledPlugins,[q]:H}});if(_)return{success:!1,message:`Failed to ${X} built-in plugin: ${_.message}`};v();let{name:T}=A(q);return{success:!0,message:`Successfully ${X}d built-in plugin: ${T}`,pluginId:q,pluginName:T,scope:"user"}}if(G)g(G);let J,Y,z=Vq(q);if(G)if(Y=G,z)J=z.pluginId;else if(q.includes("@"))J=q;else return{success:!1,message:`Plugin "${q}" not found in settings. Use plugin@marketplace format.`};else if(z)J=z.pluginId,Y=z.scope;else if(q.includes("@"))J=q,Y="user";else return{success:!1,message:`Plugin "${q}" not found in any editable settings scope. Use plugin@marketplace format.`};if(H&&l(J))return{success:!1,message:`Plugin "${J}" is blocked by your organization's policy and cannot be enabled`};let Z=D(Y),W=F(Z)?.enabledPlugins?.[J],Q={user:0,project:1,local:2},$=G&&z&&Q[G]>Q[z.scope];if(G&&W===void 0&&z&&z.scope!==G&&!$)return{success:!1,message:`Plugin "${q}" is installed at ${z.scope} scope, not ${G}. Use --scope ${z.scope} or omit --scope to auto-detect.`};let B=G&&!$?W===!0:c().has(J);if(H===B)return{success:!1,message:`Plugin "${q}" is already ${H?"enabled":"disabled"}${G?` at ${G} scope`:""}`};let K;if(!H){let{enabled:_,disabled:T}=await d(),w=h(J,[..._,...T]);if(w.length>0)K=w}let{error:x}=L(Z,{enabledPlugins:{...F(Z)?.enabledPlugins,[J]:H}});if(x)return{success:!1,message:`Failed to ${X} plugin: ${x.message}`};v();let{name:M}=A(J),R=S(K);return{success:!0,message:`Successfully ${X}d plugin: ${M} (scope: ${Y})${R}`,pluginId:J,pluginName:M,scope:Y,reverseDependents:K}}async function $G(q,H){return r(q,!0,H)}async function zG(q,H){return r(q,!1,H)}async function ZG(){let q=c();if(q.size===0)return{success:!0,message:"No enabled plugins to disable"};let H=[],G=[];for(let[X]of q){let J=await r(X,!1);if(J.success)H.push(X);else G.push(`${X}: ${J.message}`)}if(G.length>0)return{success:!1,message:`Disabled ${H.length} ${V(H.length,"plugin")}, ${G.length} failed:
|
|
2
|
+
${G.join(`
|
|
3
|
+
`)}`};return{success:!0,message:`Disabled ${H.length} ${V(H.length,"plugin")}`}}async function xG(q,H){let{name:G,marketplace:X}=A(q),J=X?`${G}@${X}`:q,Y=await P(q);if(!Y)return{success:!1,message:`Plugin "${G}" not found`,pluginId:J,scope:H};let{entry:z,marketplaceInstallLocation:Z}=Y,Q=I().plugins[J];if(!Q||Q.length===0)return{success:!1,message:`Plugin "${G}" is not installed`,pluginId:J,scope:H};let $=zq(H),B=Q.find((K)=>K.scope===H&&K.projectPath===$);if(!B){let K=$?`${H} (${$})`:H;return{success:!1,message:`Plugin "${G}" is not installed at scope ${K}`,pluginId:J,scope:H}}return fq({pluginId:J,pluginName:G,entry:z,marketplaceInstallLocation:Z,installation:B,scope:H,projectPath:$})}async function fq({pluginId:q,pluginName:H,entry:G,marketplaceInstallLocation:X,installation:J,scope:Y,projectPath:z}){let Z=p(),W=J.version,Q,$,B=!1,K;if(typeof G.source!=="string"){let x=await Yq(G.source,{manifest:{name:G.name}});Q=x.path,B=!0,K=x.gitCommitSha,$=await b(q,G.source,x.manifest,x.path,G.version,x.gitCommitSha)}else{let x;try{x=await Z.stat(X)}catch(T){if(N(T))return{success:!1,message:`Marketplace directory not found at ${X}`,pluginId:q,scope:Y};throw T}let M=x.isDirectory()?X:Nq(X);Q=u(M,G.source);try{await Z.stat(Q)}catch(T){if(N(T))return{success:!1,message:`Plugin source not found at ${Q}`,pluginId:q,scope:Y};throw T}let R,_=u(Q,".claude-plugin","plugin.json");try{R=await $q(_,G.name,G.source)}catch{}$=await b(q,G.source,R,Q,G.version)}try{let x=y(q,$),M=Qq(q,$);if(J.version===$||J.installPath===x||J.installPath===M)return{success:!0,message:`${H} is already at the latest version (${$}).`,pluginId:q,newVersion:$,oldVersion:W,alreadyUpToDate:!0,scope:Y};x=await Xq(Q,q,$,G);let _=J.installPath;if(Gq(q,Y,z,x,$,K),_&&_!==x){let j=I();if(!Object.values(j.plugins).some((E)=>E.some((U)=>U.installPath===_)))await m(_)}let T=z?`${Y} (${z})`:Y;return{success:!0,message:`Plugin "${H}" updated from ${W||"unknown"} to ${$} for scope ${T}. Restart to apply changes.`,pluginId:q,newVersion:$,oldVersion:W,scope:Y}}finally{if(B&&Q!==y(q,$))await Z.rm(Q,{recursive:!0,force:!0})}}var k,HG;var hq=Zq(()=>{xq();Rq();Uq();Wq();Bq();Oq();Fq();Cq();jq();Tq();Aq();vq();Dq();Mq();wq();Eq();Lq();_q();Kq();k=["user","project","local"],HG=["user","project","local","managed"]});
|
|
4
|
+
export{k as Ad,HG as Bd,JG as Cd,QG as Dd,kq as Ed,XG as Fd,YG as Gd,$G as Hd,zG as Id,ZG as Jd,xG as Kd,hq as Ld};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import{AR as Bf,BR as Hf,Cl as X,Hl as Af,NG as v,OG as zf,VP as n,Wk as m,XP as Xf,YE as S,ZE as qf,fl as R,il as N,jl as M,kB as Z,kn as c,lB as $f,ln as Yf,pl as yf}from"./cli-0.6.6-23snct9d.mjs";import{KS as a,LS as Jf}from"./cli-0.6.6-4qj9brbk.mjs";import{JY as T,LY as d,oX as If,oZ as _f}from"./cli-0.6.6-en2sexw5.mjs";import{u1 as Y,v1 as D,w1 as P}from"./cli-0.6.6-arvcw19g.mjs";import{x1 as Of}from"./cli-0.6.6-c267ckfv.mjs";import{_7 as b,a8 as Gf}from"./cli-0.6.6-q1j20ysc.mjs";import{wga as L,zga as e}from"./cli-0.6.6-a837m6n5.mjs";import{Cha as ff,zha as W}from"./cli-0.6.6-hcajyfhg.mjs";import{spa as g,tpa as s,wpa as k}from"./cli-0.6.6-py5db2ds.mjs";function E(){(Hf(),s(Bf)).saveWorktreeState(null)}function l({onDone:K,onCancel:_}){let[$,y]=q.useState("loading"),[O,I]=q.useState([]),[G,z]=q.useState(0),[p,A]=q.useState(),f=m();if(q.useEffect(()=>{async function B(){let J=[],H=await b("git",["status","--porcelain"]);if(H.stdout)J=H.stdout.split(`
|
|
2
|
+
`).filter((V)=>V.trim()!==""),I(J);if(f){let{stdout:V}=await b("git",["rev-list","--count",`${f.originalHeadCommit}..HEAD`]),w=parseInt(V.trim())||0;if(z(w),J.length===0&&w===0){y("removing"),M().then(()=>{process.chdir(f.originalCwd),Z(f.originalCwd),E(),X.cache.clear?.(),A("Worktree removed (no changes)")}).catch((t)=>{W(`Failed to clean up worktree: ${t}`,{level:"error"}),A("Worktree cleanup failed, exiting anyway")}).then(()=>{y("done")});return}else y("asking")}}B()},[f]),q.useEffect(()=>{if($==="done")K(p)},[$,K,p]),!f)return K("No active worktree session found",{display:"system"}),null;if($==="loading"||$==="done")return null;async function j(B){if(!f)return;let J=Boolean(f.tmuxSessionName);if(B==="keep"||B==="keep-with-tmux"){if(y("keeping"),L("tengu_worktree_kept",{commits:G,changed_files:O.length}),await N(),process.chdir(f.originalCwd),Z(f.originalCwd),E(),X.cache.clear?.(),J)A(`Worktree kept. Your work is saved at ${f.worktreePath} on branch ${f.worktreeBranch}. Reattach to tmux session with: tmux attach -t ${f.tmuxSessionName}`);else A(`Worktree kept. Your work is saved at ${f.worktreePath} on branch ${f.worktreeBranch}`);y("done")}else if(B==="keep-kill-tmux"){if(y("keeping"),L("tengu_worktree_kept",{commits:G,changed_files:O.length}),f.tmuxSessionName)await R(f.tmuxSessionName);await N(),process.chdir(f.originalCwd),Z(f.originalCwd),E(),X.cache.clear?.(),A(`Worktree kept at ${f.worktreePath} on branch ${f.worktreeBranch}. Tmux session terminated.`),y("done")}else if(B==="remove"||B==="remove-with-tmux"){if(y("removing"),L("tengu_worktree_removed",{commits:G,changed_files:O.length}),f.tmuxSessionName)await R(f.tmuxSessionName);try{await M(),process.chdir(f.originalCwd),Z(f.originalCwd),E(),X.cache.clear?.()}catch(V){W(`Failed to clean up worktree: ${V}`,{level:"error"}),A("Worktree cleanup failed, exiting anyway"),y("done");return}let H=J?" Tmux session terminated.":"";if(G>0&&O.length>0)A(`Worktree removed. ${G} ${G===1?"commit":"commits"} and uncommitted changes were discarded.${H}`);else if(G>0)A(`Worktree removed. ${G} ${G===1?"commit":"commits"} on ${f.worktreeBranch} ${G===1?"was":"were"} discarded.${H}`);else if(O.length>0)A(`Worktree removed. Uncommitted changes were discarded.${H}`);else A(`Worktree removed.${H}`);y("done")}}if($==="keeping")return D(T,{flexDirection:"row",marginY:1,children:[Y(v,{}),Y(d,{children:"Keeping worktree…"})]});if($==="removing")return D(T,{flexDirection:"row",marginY:1,children:[Y(v,{}),Y(d,{children:"Removing worktree…"})]});let x=f.worktreeBranch,U=O.length>0,F=G>0,Q="";if(U&&F)Q=`You have ${O.length} uncommitted ${O.length===1?"file":"files"} and ${G} ${G===1?"commit":"commits"} on ${x}. All will be lost if you remove.`;else if(U)Q=`You have ${O.length} uncommitted ${O.length===1?"file":"files"}. These will be lost if you remove the worktree.`;else if(F)Q=`You have ${G} ${G===1?"commit":"commits"} on ${x}. The branch will be deleted if you remove the worktree.`;else Q="You are working in a worktree. Keep it to continue working there, or remove it to clean up.";function r(){if(_){_();return}j("keep")}let h=U||F?"All changes and commits will be lost.":"Clean up the worktree directory.",C=Boolean(f.tmuxSessionName),o=C?[{label:"Keep worktree and tmux session",value:"keep-with-tmux",description:`Stays at ${f.worktreePath}. Reattach with: tmux attach -t ${f.tmuxSessionName}`},{label:"Keep worktree, kill tmux session",value:"keep-kill-tmux",description:`Keeps worktree at ${f.worktreePath}, terminates tmux session.`},{label:"Remove worktree and tmux session",value:"remove-with-tmux",description:h}]:[{label:"Keep worktree",value:"keep",description:`Stays at ${f.worktreePath}`},{label:"Remove worktree",value:"remove",description:h}];return Y(c,{title:"Exiting worktree session",subtitle:Q,onCancel:r,children:Y(S,{defaultFocusValue:C?"keep-with-tmux":"keep",options:o,onChange:j})})}var q;var u=k(()=>{e();ff();_f();Gf();Af();$f();yf();qf();Yf();zf();P();q=g(Of(),1)});function Qf(){return a(Kf)??"Goodbye!"}function xf(K){let _=i.c(5),{showWorktree:$,onDone:y,onCancel:O}=K,I;if(_[0]!==y)I=async function(p){y(p??Qf()),await n(0,"prompt_input_exit")},_[0]=y,_[1]=I;else I=_[1];let G=I;if($){let z;if(_[2]!==O||_[3]!==G)z=Y(l,{onDone:G,onCancel:O}),_[2]=O,_[3]=G,_[4]=z;else z=_[4];return z}return null}var i,Kf;var Vf=k(()=>{Jf();Xf();u();P();i=g(If(),1),Kf=["Goodbye!","See ya!","Bye!","Catch you later!"]});
|
|
3
|
+
export{xf as ac,Vf as bc};
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import{nc as Mc,oc as aa}from"./cli-0.6.6-h2aqs05m.mjs";import{pc as bn,qc as Zt,rc as Rt,sc as Nc,uc as ua}from"./cli-0.6.6-dmd73xa3.mjs";import{vc as Ct,yc as ca}from"./cli-0.6.6-xq4cysdk.mjs";import{$o as dc,$u as Du,Ap as xu,NG as Gn,OE as ot,OG as du,Ox as $c,PE as Qn,Px as Lc,QG as ta,Qx as ju,RG as na,Wo as ic,Xo as Qu,YE as Y,Yo as ec,ZE as mu,Zo as oc,Zu as Fc,_E as vu,_o as mc,ap as I,bp as rn,cp as Gu,dp as _c,fp as wc,gp as qc,ip as Oc,nF as xn,oF as qu,pF as Dn,qF as jn,rF as vn,sF as Su,zp as Sc}from"./cli-0.6.6-23snct9d.mjs";import{AW as kc,BW as Iu,mW as ct,oW as pu}from"./cli-0.6.6-1a0fnhh0.mjs";import{JY as g,LY as l,oZ as _n}from"./cli-0.6.6-en2sexw5.mjs";import{l0 as qn,m0 as Sn,n0 as Fn,o0 as $n,p0 as Ln,q0 as ou,t0 as Nn,x0 as Mn,y0 as Xc,z0 as Vn}from"./cli-0.6.6-vy3wa7f9.mjs";import{t1 as et,u1 as a,v1 as y,w1 as Nt}from"./cli-0.6.6-arvcw19g.mjs";import{x1 as Vt}from"./cli-0.6.6-c267ckfv.mjs";import{U1 as uc,V1 as Mu}from"./cli-0.6.6-ythetarc.mjs";import{j2 as Xn,l2 as eu}from"./cli-0.6.6-8yvh28tb.mjs";import{$ca as nn,Aca as Jt,Cca as ft,Dca as on,Eca as tt,Fca as Ot,J7 as dt,Jca as gt,K7 as Eu,Kca as mn,Mca as dn,Qca as kn,Vca as cn,Wca as En,Xca as Pn,Yca as Qt,Zca as un,_ca as Bn,ada as pn,bda as In,cda as _u,dda as yn,eda as nc,fda as Cn,hda as cc,jda as zc,kda as sn,tca as Rc,uca as yt,vca as Pu,wca as Kt,xca as v,yda as Bu,zca as T}from"./cli-0.6.6-q1j20ysc.mjs";import{gia as nt,oia as hn}from"./cli-0.6.6-nw0nh4e0.mjs";import{spa as Mt,tpa as Uu,wpa as p}from"./cli-0.6.6-py5db2ds.mjs";function Cu(t,n=Dt,u){let h=v().find((i)=>i.provider==="openai"&&i.extras?.githubToken!==void 0);if(h)return Ot(h.id,{provider:"openai",name:h.name,baseUrl:u||h.baseUrl,model:h.model||n,apiKey:t,extras:{...h.extras,githubToken:t}}),gt(h.id),{mode:"updated"};return tt({provider:"openai",name:"GitHub Copilot",baseUrl:u||yu,model:n,apiKey:t,extras:{githubToken:t}},{makeActive:!0}),{mode:"created"}}function Yn({onDone:t,onBack:n,onChangeAPIKey:u}){let h=Nn()?.trim()?"already-authed":"menu",[i,m]=E.useState(h),[A,w]=E.useState(null),[z,b]=E.useState(""),[R,q]=E.useState(0),[L,Z]=E.useState(null),V=E.useCallback(async(Q,_=Dt,x,S)=>{let W=Mn(Q,x,S?.enterpriseDomain);if(!W.success){w(W.warning??"Could not save token to secure storage."),m("error");return}Cu(Q,_,S?.baseUrl),Xn(),u?.(),t("GitHub Copilot onboard complete. Copilot token stored in secure storage and as the active /provider profile.",{display:"user"})},[u,t]),C=E.useCallback(async(Q)=>{m("device-busy"),w(null),Z(null);try{let _=await Sn({domain:Q});Z({user_code:_.user_code,verification_uri:_.verification_uri}),await $n(_.verification_uri);let x=await Fn(_.device_code,{initialInterval:_.interval,timeoutSeconds:_.expires_in,domain:Q}),S=await Ln(x,{domain:Q});await V(S.token,Dt,x,{baseUrl:S.endpoints.api?.replace(/\/+$/,"")||void 0,enterpriseDomain:Q})}catch(_){w(_ instanceof Error?_.message:String(_)),m("error")}},[V]);if(i==="already-authed")return y(g,{flexDirection:"column",gap:1,children:[a(l,{bold:!0,children:"GitHub Copilot"}),a(l,{children:"You are already signed in to GitHub Copilot."}),a(l,{dimColor:!0,children:'Choose "Sign in again" to refresh your token, or go back to the provider menu.'}),a(Y,{options:[{label:"Sign in again",value:"sign-in-again"},{label:"Sign in with GitHub Enterprise",value:"enterprise"},{label:n?"Back to /provider menu":"Cancel",value:"back"}],onChange:(_)=>{if(_==="sign-in-again"){C();return}if(_==="enterprise"){m("enterprise-domain");return}if(n){n();return}t("GitHub onboard cancelled",{display:"system"})}})]});if(i==="enterprise-domain")return y(g,{flexDirection:"column",gap:1,children:[a(l,{bold:!0,children:"GitHub Enterprise sign-in"}),a(l,{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:[a(l,{children:">"}),a(ot,{value:z,onChange:b,onSubmit:()=>{let _=qn(z);if(!_){C();return}C(_)},onExit:()=>m(h),focus:!0,showCursor:!0,placeholder:"github.acme.com",columns:80,cursorOffset:R,onChangeCursorOffset:q})]}),a(l,{dimColor:!0,children:"Press Enter to continue. Press Esc to go back."})]});if(i==="error"&&A)return y(g,{flexDirection:"column",gap:1,children:[a(l,{color:"red",children:A}),a(Y,{options:[{label:n?"Back to /provider menu":"Back to menu",value:"back"},{label:"Exit",value:"exit"}],onChange:(_)=>{if(_==="back"){if(n){n();return}m("menu"),w(null);return}t("GitHub onboard cancelled",{display:"system"})}})]});if(i==="device-busy")return y(g,{flexDirection:"column",gap:1,children:[a(l,{children:"GitHub Copilot sign-in"}),L?y(et,{children:[y(l,{children:["Enter code ",a(l,{bold:!0,children:L.user_code})," at"," ",L.verification_uri]}),a(l,{dimColor:!0,children:"A browser window may have opened. Waiting for authorization..."})]}):a(l,{dimColor:!0,children:"Requesting device code from GitHub..."}),a(Gn,{})]});return y(g,{flexDirection:"column",gap:1,children:[a(l,{bold:!0,children:"GitHub Copilot setup"}),a(l,{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."}),a(Y,{options:[{label:"Sign in with browser",value:"device"},{label:"Sign in with GitHub Enterprise",value:"enterprise"},{label:n?"Back to /provider menu":"Cancel",value:"cancel"}],onChange:(Q)=>{if(Q==="cancel"){if(n){n();return}t("GitHub onboard cancelled",{display:"system"});return}if(Q==="enterprise"){m("enterprise-domain");return}C()}})]})}var E,Dt="github:copilot",yu="https://api.githubcopilot.com";var Jn=p(()=>{mu();du();Qn();_n();ou();Vn();eu();kn();Nt();E=Mt(Vt(),1)});function Kn(t){return[t.name,t.family??"",...t.families??[],t.parameterSize??"",t.quantizationLevel??""].join(" ").toLowerCase()}function At(t,n){return n.some((u)=>t.includes(u))}function Ou(t){return!At(Kn(t),Zn)}function gu(t){return t.find(Ou)??null}function jt(t){let u=`${t.parameterSize??""} ${t.name}`.toLowerCase().match(/(\d+(?:\.\d+)?)\s*b\b/);if(u?.[1])return Number(u[1]);if(typeof t.sizeBytes==="number"&&t.sizeBytes>0)return Number((t.sizeBytes/1e9).toFixed(1));return null}function Au(t){return(t.quantizationLevel??t.name).toLowerCase()}function fu(t,n,u){if(t===null)return u.push("unknown size"),0;if(n==="latency"){if(t<=4)return u.push("tiny model for low latency"),32;if(t<=8)return u.push("small model for fast responses"),26;if(t<=14)return u.push("mid-sized model with acceptable latency"),16;if(t<=24)return u.push("larger model may be slower"),8;return u.push("large model likely slower locally"),t<=40?0:-8}if(n==="coding"){if(t>=7&&t<=14)return u.push("strong coding size tier"),24;if(t>14&&t<=34)return u.push("large coding-capable size tier"),28;if(t>34)return u.push("very large model with higher quality potential"),18;return u.push("compact model may trade off coding depth"),12}if(t>=7&&t<=14)return u.push("great balanced size tier"),26;if(t>=3&&t<7)return u.push("compact balanced size tier"),18;if(t>14&&t<=24)return u.push("high quality balanced size tier"),20;if(t>24)return u.push("large model for quality-first usage"),10;return u.push("very small model for general usage"),8}function Ru(t,n,u){let h=Au(t);if(h.includes("q4"))return u.push("efficient Q4 quantization"),n==="latency"?8:4;if(h.includes("q5"))return u.push("balanced Q5 quantization"),n==="latency"?6:5;if(h.includes("q8"))return u.push("higher quality Q8 quantization"),n==="latency"?2:5;return 0}function zu(t,n,u){if(n.score!==t.score)return n.score-t.score;let h=jt(t)??Number.POSITIVE_INFINITY,i=jt(n)??Number.POSITIVE_INFINITY;if(u==="latency")return h-i;if(u==="coding")return i-h;let m=14;return Math.abs(h-m)-Math.abs(i-m)}function vt(t,n){return t.map((u)=>{let h=Kn(u),i=[],m=0;if(At(h,Zn))m-=40,i.push("not a chat-first model");if(At(h,su))m+=n==="coding"?24:n==="balanced"?10:4,i.push("coding-oriented model family");if(At(h,bu))m+=n==="latency"?4:n==="coding"?6:8,i.push("strong general-purpose model family");if(At(h,wu))m+=n==="latency"?2:6,i.push("chat/instruct tuned");if(h.includes("vision")||h.includes("vl"))m-=2,i.push("vision model adds extra overhead");m+=fu(jt(u),n,i),m+=Ru(u,n,i);let A=i.slice(0,3).join(", ");return{...u,score:m,reasons:i,summary:A}}).sort((u,h)=>zu(u,h,n))}function Hn(t,n){return gu(vt(t,n))}var su,bu,wu,Zn;var Tn=p(()=>{su=["coder","codellama","codegemma","codestral","devstral","starcoder","deepseek-coder","qwen2.5-coder","qwen-coder"],bu=["llama","qwen","mistral","gemma","phi","deepseek"],wu=["instruct","chat","assistant"],Zn=["embed","embedding","rerank","bge","whisper"]});function Xu(t){let n=t.toLowerCase();return ku.some((u)=>n.includes(u))}function tn(t){try{let n=new URL(t);if(n.username)n.username="redacted";if(n.password)n.password="redacted";for(let u of n.searchParams.keys())if(Xu(u))n.searchParams.set(u,"redacted");return n.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 ku;var Wn=p(()=>{ku=["api_key","apikey","key","token","access_token","refresh_token","signature","sig","secret","password","passwd","pwd","auth","authorization"]});function Fu(t){let n=`http://localhost:${t.port}/auth/callback`,u=new URL(`${cn}/oauth/authorize`);return u.searchParams.append("response_type","code"),u.searchParams.append("client_id",un()),u.searchParams.append("redirect_uri",n),u.searchParams.append("scope",En),u.searchParams.append("code_challenge",t.codeChallenge),u.searchParams.append("code_challenge_method","S256"),u.searchParams.append("id_token_add_organizations","true"),u.searchParams.append("codex_cli_simplified_flow","true"),u.searchParams.append("state",t.state),u.searchParams.append("originator",Pn),u.toString()}function $u(){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 Lu(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>${pn(t)}</p>
|
|
31
|
+
<p>You can close this window and try again in Claudin.</p>
|
|
32
|
+
</body>
|
|
33
|
+
</html>`}function Un(){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 Nu(t){let n=`http://localhost:${t.port}/auth/callback`,u=new URLSearchParams({grant_type:"authorization_code",code:t.authorizationCode,redirect_uri:n,client_id:un(),code_verifier:t.codeVerifier}),h=await fetch(`${cn}/oauth/token`,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:u,signal:t.signal?AbortSignal.any([t.signal,AbortSignal.timeout(15000)]):AbortSignal.timeout(15000)});if(!h.ok){let b=await h.text().catch(()=>"");throw Error(b.trim()?`Codex OAuth token exchange failed (${h.status}): ${b.trim()}`:`Codex OAuth token exchange failed with status ${h.status}.`)}let i=await h.json(),m=Qt(i.access_token),A=Qt(i.refresh_token);if(!m||!A)throw Error("Codex OAuth completed, but the token response was missing credentials.");let w=Qt(i.id_token);return{apiKey:w?await In(w).catch(()=>{return}):void 0,accessToken:m,refreshToken:A,idToken:w,accountId:nn(w)??nn(m)}}class an{authCodeListener=null;port=null;tokenExchangeAbortController=null;buildCancellationError(){return Error("Codex OAuth flow was cancelled.")}async startOAuthFlow(t){let n=Dn(),u=Bn(),h=new xn("/auth/callback");this.authCodeListener=h,this.port=null;try{let i=await h.start(u);this.port=i;let m=vn(),A=await jn(n),w=Fu({port:i,codeChallenge:A,state:m});try{let z=await h.waitForAuthorization(m,async()=>{await t(w)}),b=new AbortController;this.tokenExchangeAbortController=b;let R;try{R=await Nu({authorizationCode:z,codeVerifier:n,port:i,signal:b.signal})}finally{if(this.tokenExchangeAbortController===b)this.tokenExchangeAbortController=null}if(this.authCodeListener!==h)throw this.buildCancellationError();return h.handleSuccessRedirect([],(q)=>{q.writeHead(200,{"Content-Type":"text/html; charset=utf-8"}),q.end($u())}),R}catch(z){let b=this.authCodeListener===h?z:this.buildCancellationError();if(h.hasPendingResponse()){let R=b instanceof Error&&b.message==="Codex OAuth flow was cancelled.";h.handleErrorRedirect((q)=>{q.writeHead(R?200:400,{"Content-Type":"text/html; charset=utf-8"}),q.end(R?Un():Lu(b instanceof Error?b.message:String(b)))})}throw b}finally{this.cleanup()}}catch(i){let m=i instanceof Error?i.message:String(i);if(m.includes("EADDRINUSE")||m.includes(String(u)))throw Error(`Codex OAuth needs localhost:${u} for its callback. Close any app already using that port and try again.`);throw i}}cleanup(){let t=this.buildCancellationError();if(this.tokenExchangeAbortController?.abort(t),this.tokenExchangeAbortController=null,this.authCodeListener?.hasPendingResponse())this.authCodeListener.handleErrorRedirect((n)=>{n.writeHead(200,{"Content-Type":"text/html; charset=utf-8"}),n.end(Un())});this.authCodeListener?.cancelPendingAuthorization(t),this.authCodeListener=null,this.port=null}}var tc=p(()=>{qu();Su();_u()});function Vu(){return new an}function ac(t){let{onAuthenticated:n}=t,u=t.deps?.createOAuthService??Vu,h=t.deps?.openBrowser??uc,i=t.deps?.saveCodexCredentials??nc,m=t.deps?.isBareMode??nt,[A,w]=Gt.useState({state:"starting"});return Gt.useEffect(()=>{if(m()){w({state:"error",message:"Codex OAuth is unavailable in --bare because secure storage is disabled."});return}let z=!1,b=u();return b.startOAuthFlow(async(R)=>{if(z)return;w({state:"waiting",authUrl:R,browserOpened:null});let q=await h(R);if(z)return;w({state:"waiting",authUrl:R,browserOpened:q})}).then(async(R)=>{if(z)return;await n(R,(L)=>{let Z=i({apiKey:R.apiKey,accessToken:R.accessToken,refreshToken:R.refreshToken,idToken:R.idToken,accountId:R.accountId,profileId:L?.profileId});if(!Z.success)throw Error(Z.warning??"Codex OAuth succeeded, but credentials could not be saved securely.")})}).catch((R)=>{if(z)return;w({state:"error",message:R instanceof Error?R.message:String(R)})}),()=>{z=!0,b.cleanup()}},[u,m,n,h,i]),A}var Gt;var hc=p(()=>{tc();Mu();cc();hn();Gt=Mt(Vt(),1)});function sc(){return{"Content-Type":"application/x-www-form-urlencoded",Accept:"application/json","User-Agent":ic()}}function lc(t,n){let u=Number(t);return Number.isFinite(u)&&u>0?u*1000:n}function Ku(t,n){if(n?.aborted)return Promise.resolve();return new Promise((u)=>{let h=setTimeout(()=>{n?.removeEventListener("abort",i),u()},t),i=()=>{clearTimeout(h),u()};n?.addEventListener("abort",i,{once:!0})})}async function Hu(t){let n=t?.fetchImpl??fetch,u=t?.signal?AbortSignal.any([t.signal,AbortSignal.timeout(15000)]):AbortSignal.timeout(15000),h=await n(oc,{method:"POST",headers:sc(),body:new URLSearchParams({client_id:rn(),scope:dc}).toString(),signal:u});if(!h.ok){let z=await h.text().catch(()=>"");throw Error(`xAI device code request failed (${h.status})${z?`: ${z.trim()}`:""}`)}let i=await h.json(),m=I(i.device_code),A=I(i.user_code),w=I(i.verification_uri);if(!m||!A||!w)throw Error("xAI device code response is missing device_code / user_code / verification_uri.");return{device_code:m,user_code:A,verification_uri:w,verification_uri_complete:I(i.verification_uri_complete),expires_in:typeof i.expires_in==="number"&&i.expires_in>0?i.expires_in:Cc/1000,interval:typeof i.interval==="number"&&i.interval>0?i.interval:yc/1000}}async function Tu(t,n){let u=n?.fetchImpl??fetch,h=n?.sleep??Ku,i=n?.now??(()=>Date.now()),m=lc(t.expires_in,Cc),A=i()+m,w=Math.max(lc(t.interval,yc),Yu);while(i()<A){if(n?.signal?.aborted)throw Error("xAI device authorization was cancelled.");let z=await u(ec,{method:"POST",headers:sc(),body:new URLSearchParams({grant_type:mc,client_id:rn(),device_code:t.device_code}).toString(),signal:n?.signal});if(z.ok){let L=await z.json(),Z=I(L.access_token),V=I(L.refresh_token);if(!Z||!V)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:V,idToken:I(L.id_token),expiresAt:i()+C*1000}}let b=await z.json().catch(()=>({})),R=Math.max(0,A-i());if(b.error==="authorization_pending"){await h(Math.min(w+rc,R),n?.signal);continue}if(b.error==="slow_down"){w=Math.min(w+Ju,Zu),await h(Math.min(w+rc,R),n?.signal);continue}if(b.error==="access_denied"||b.error==="authorization_denied")throw Error("xAI device authorization was denied.");if(b.error==="expired_token")throw Error("xAI device code expired - please re-run login.");let q=b.error_description??b.error??"";throw Error(`xAI device token exchange failed (${z.status})${q?`: ${q}`:""}`)}throw Error("xAI device authorization timed out.")}class ln{abortController=null;async startDeviceFlow(t){let n=new AbortController;this.abortController=n;try{let u=await Hu({signal:n.signal});return await t(u),await Tu(u,{signal:n.signal})}finally{if(this.abortController===n)this.abortController=null}}cleanup(){this.abortController?.abort(Error("xAI device authorization was cancelled.")),this.abortController=null}}var yc=5000,Yu=1000,Ju=5000,Zu=60000,Cc=300000,rc=3000;var bc=p(()=>{Qu();Gu()});function Wu(){return new ln}function gc(t){let{onAuthenticated:n}=t,u=t.deps?.createOAuthService??Wu,h=t.deps?.saveXaiCredentials??wc,i=t.deps?.isBareMode??nt,[m,A]=Yt.useState({state:"starting"});return Yt.useEffect(()=>{if(i()){A({state:"error",message:"xAI OAuth is unavailable in --bare because secure storage is disabled."});return}let w=!1,z=u();return z.startDeviceFlow(async(b)=>{if(w)return;A({state:"waiting",userCode:b.user_code,verificationUri:b.verification_uri,verificationUriComplete:b.verification_uri_complete})}).then(async(b)=>{if(w)return;await n(b,(q)=>{let L=h({accessToken:b.accessToken,refreshToken:b.refreshToken,idToken:b.idToken,expiresAt:b.expiresAt,profileId:q?.profileId});if(!L.success)throw Error(L.warning??"xAI OAuth succeeded, but credentials could not be saved securely.")})}).catch((b)=>{if(w)return;A({state:"error",message:b instanceof Error?b.message:String(b)})}),()=>{w=!0,z.cleanup()}},[u,i,n,h]),m}var Yt;var Ac=p(()=>{bc();hn();Oc();Yt=Mt(Vt(),1)});function ea(t){return{name:t.name,baseUrl:t.baseUrl,model:t.model,apiKey:t.apiKey??""}}function oa(t){let n=Kt(t);return{name:n.name,baseUrl:n.baseUrl,model:n.model,apiKey:n.apiKey??""}}function ma(t){let n={};for(let u of t.split(/\r?\n/)){let h=u.trim();if(!h)continue;let i=h.indexOf(":");if(i<=0)continue;let m=h.slice(0,i).trim(),A=h.slice(i+1).trim();if(m&&A)n[m]=A}return n}function da(t){if(!t)return"";return Object.entries(t).map(([n,u])=>`${n}: ${u}`).join(`
|
|
49
|
+
`)}function ya(t,n){let u={},h=t.awsRegion?.trim();if(h)u.awsRegion=h;let i=t.gcpProject?.trim();if(i)u.gcpProject=i;let m=t.gcpRegion?.trim();if(m)u.gcpRegion=m;let A=t.azureResource?.trim();if(A)u.azureResource=A;let w=ma(n);if(Object.keys(w).length>0)u.customHeaders=w;return Object.keys(u).length>0?u:void 0}function sa(t,n){let u=n?" (active)":"",h=t.apiKey?"key set":"no key",i=t.provider==="anthropic"?"anthropic":"openai-compatible",m=Rc(t.model),A=m.length<=3?m.join(", "):`${m[0]}, ${m[1]} + ${m.length-2} more`;return`${i} · ${t.baseUrl} · ${A} · ${h}${u}`}function ba(t,n){if(t.state==="unreachable")return`Could not reach Atomic Chat at ${tn(n)}. 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 wa(t,n){if(t.state==="unreachable")return`Could not reach Ollama at ${tn(n)}. 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 u=t.probeModel??"the selected model",h=t.detail?` Details: ${t.detail}.`:"";return`Ollama is reachable and models are installed, but a generation probe failed for ${u}.${h} Run "ollama run ${u}" once and retry, or enter details manually.`}return""}function en(t,n){if(!n)return;return t.find((u)=>u.id===n)}function fc(t,n){return Boolean(t&&n&&t.id===n)}function Oa({onBack:t,onConfigured:n}){let u=s.useCallback(async(i,m)=>{await n(i,m)},[n]);ct("confirm:no",t,[t]);let h=ac({onAuthenticated:u});if(h.state==="error")return y(g,{flexDirection:"column",gap:1,children:[a(l,{color:"error",bold:!0,children:"Codex OAuth failed"}),a(l,{children:h.message}),a(l,{dimColor:!0,children:"Press Enter or Esc to go back."}),a(Y,{options:[{value:"back",label:"Back",description:"Return to provider presets"}],onChange:t,onCancel:t,visibleOptionCount:1})]});return y(g,{flexDirection:"column",gap:1,children:[a(l,{color:"remember",bold:!0,children:"Codex OAuth"}),a(l,{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."}),h.state==="starting"?a(l,{dimColor:!0,children:"Starting local callback and preparing your browser..."}):h.browserOpened===!1?y(et,{children:[a(l,{color:"warning",children:"Browser did not open automatically. Visit this URL to continue:"}),a(l,{children:h.authUrl})]}):h.browserOpened===!0?y(et,{children:[a(l,{dimColor:!0,children:"Browser opened. Finish the ChatGPT sign-in there and this setup will complete automatically."}),a(l,{children:h.authUrl})]}):a(l,{dimColor:!0,children:"Opening your browser..."}),a(l,{dimColor:!0,children:"Press Esc to cancel and go back."})]})}function ga({onBack:t,onConfigured:n}){let u=s.useCallback(async(i,m)=>{await n(i,m)},[n]);ct("confirm:no",t,[t]);let h=gc({onAuthenticated:u});if(h.state==="error")return y(g,{flexDirection:"column",gap:1,children:[a(l,{color:"error",bold:!0,children:"xAI OAuth failed"}),a(l,{children:h.message}),a(l,{dimColor:!0,children:"Press Enter or Esc to go back."}),a(Y,{options:[{value:"back",label:"Back",description:"Return to provider presets"}],onChange:t,onCancel:t,visibleOptionCount:1})]});return y(g,{flexDirection:"column",gap:1,children:[a(l,{color:"remember",bold:!0,children:"xAI / Grok OAuth"}),h.state==="starting"?a(l,{dimColor:!0,children:"Requesting a device code from xAI..."}):y(et,{children:[y(l,{children:["Open this URL on any device:"," ",a(l,{bold:!0,children:h.verificationUri})]}),y(l,{children:["Enter code ",a(l,{bold:!0,children:h.userCode})]}),h.verificationUriComplete&&h.verificationUriComplete!==h.verificationUri?y(l,{dimColor:!0,children:["Or open this prefilled URL: ",h.verificationUriComplete]}):null,a(l,{dimColor:!0,children:"Waiting for you to authorize in the browser..."})]}),a(l,{dimColor:!0,children:"Press Esc to cancel and go back."})]})}function gh({mode:t,onDone:n}){let u=Fc(),[h,i]=s.useState([]),[m,A]=s.useState(),[w,z]=s.useState(),[b,R]=s.useState(!1),[q,L]=s.useState(),Z=s.useRef(0),[V,C]=s.useState(t==="first-run"?"select-preset":"menu"),[ut,Q]=s.useState(null),[_,x]=s.useState("openai"),[S,W]=s.useState(()=>oa("ollama")),[Ht,zt]=s.useState({}),[wn,Tt]=s.useState(""),[Vc,Qc]=s.useState(0),[Gc,Yc]=s.useState(0),[Wt,On]=s.useState(null),[at,st]=s.useState(0),[ht,D]=s.useState(0),[Jc,j]=s.useState(0),[gn,N]=s.useState(),[rt,f]=s.useState(),[Zc,Kc]=s.useState(),[An,kt]=s.useState(!1),[bt,wt]=s.useState(),[P,Xt]=s.useState({state:"idle"}),[B,_t]=s.useState({state:"idle"}),[Hc,Tc]=s.useState(!0),[Wc,H]=s.useState(!1),Ut=s.useRef(!1),[Et,Pt]=s.useState(()=>Rt()),[fn,Uc]=s.useState(()=>Nc());s.useEffect(()=>{queueMicrotask(()=>{let c=v(),r=T()?.id;i(c),A(r),z(Jt()),L(on()),R(ft()),Tc(!1)})},[]);let lt=mt[ht]??mt[0],qt=lt.key,Ec=S[qt],Bt=h.length>0,St=Bt,Rn=s.useMemo(()=>[{value:"add",label:"Add provider",description:"Create a new provider profile"},...Et?[{value:"import-legacy",label:"Import from Claude Code",description:"Copy ~/.claude/ tokens, settings, skills, agents, plugins."}]:[],{value:"activate",label:"Set active provider (Global)",description:q?`Currently: ${h.find((c)=>c.id===q)?.name??"unknown"}`:"Default profile for projects without an override",disabled:!St},{value:"activate-project",label:"Set active provider (Project)",description:w?`Currently: ${h.find((c)=>c.id===w)?.name??"unknown"} (this project)`:"Override the global default for this project only",disabled:!St},...b?[{value:"clear-project-override",label:"Clear project provider override",description:w?"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:!Bt},{value:"delete",label:"Delete provider",description:"Remove a provider profile",disabled:!St},...An?[{value:"logout-codex-oauth",label:"Log out Codex OAuth",description:"Clear securely stored Codex OAuth credentials"}]:[],{value:"done",label:"Done",description:"Return to chat"}],[St,Bt,An,Et,q,w,h]),pt=s.useCallback(()=>{if(nt()){Z.current+=1,kt(!1),wt(void 0);return}let c=++Z.current;(async()=>{let r=await yn();if(c!==Z.current)return;kt(Boolean(r?.apiKey||r?.accessToken||r?.refreshToken||r?.idToken)),wt(r?.profileId)})()},[]);s.useEffect(()=>{return pt(),()=>{Z.current+=1}},[pt]),s.useEffect(()=>{if(V!=="select-ollama-model")return;let c=!1;return Xt({state:"loading"}),(async()=>{let r=await Lc({baseUrl:S.baseUrl});if(r.state!=="ready"){if(!c)Xt({state:"unavailable",message:wa(r,S.baseUrl)});return}let o=vt(r.models,"balanced"),e=Hn(r.models,"balanced");if(!c)Xt({state:"ready",defaultValue:e?.name??o[0]?.name,options:o.map((d)=>({label:d.name,value:d.name,description:d.summary}))})})(),()=>{c=!0}},[S.baseUrl,V]),s.useEffect(()=>{if(V!=="select-atomic-chat-model")return;let c=!1;return _t({state:"loading"}),(async()=>{let r=await $c({baseUrl:S.baseUrl});if(r.state!=="ready"){if(!c)_t({state:"unavailable",message:ba(r,S.baseUrl)});return}if(!c)_t({state:"ready",defaultValue:r.models[0],options:r.models.map((o)=>({label:o,value:o}))})})(),()=>{c=!0}},[S.baseUrl,V]);function M(){if(Ut.current)return;Ut.current=!0,queueMicrotask(()=>{let c=v();i(c),A(T()?.id),z(Jt()),L(on()),R(ft()),pt(),Ut.current=!1})}function it(){return null}function It(c){if(c.activationWarning)return`${c.prefix}. Saved for next startup. Warning: ${c.warnings.join("; ")}.`;if(c.warnings.length>0)return`${c.prefix}. Claudin switched to it for this session with warnings: ${c.warnings.join("; ")}.`;return`${c.prefix}. Claudin switched to it for this session.`}async function xt(c){if(c?.accessToken&&c.accountId)return null;let r=await yn();if(!r)return"stored Codex OAuth credentials could not be loaded";if(!r.accountId)return"stored Codex OAuth credentials are missing a ChatGPT account id";return null}function zn(){Sc()}async function Pc(c){let r="provider";H(!0),N("Activating provider...");try{await new Promise((U)=>queueMicrotask(U));let o=ft(),e=gt(c);if(!e){f("Could not change active provider."),H(!1),k();return}let d=o?T()??e:e,O=yt(d.model);if(!o)u((U)=>({...U,mainLoopModel:O,mainLoopModelForSession:null}));r=e.name;let X=it(),J=fc(e,bt),$=J?await xt():null;M();let K=o&&d.id!==e.id?` (project override still active — this project keeps using ${d.name}; use "Clear project provider override" to apply the new default here)`:"",F=J?It({prefix:`Active provider: ${e.name}${K}`,activationWarning:$,warnings:[$,X?`could not clear startup provider override (${X})`:null].filter((U)=>Boolean(U))}):X?`Active provider: ${e.name}${K}. Warning: could not clear startup provider override (${X}).`:`Active provider: ${e.name}${K}`;N(F),H(!1),n({action:"activated",activeProfileId:e.id,activeProviderName:e.name,activeProviderModel:O,message:`Provider switched to ${e.name} (${O})`}),k()}catch(o){M(),N(void 0),H(!1);let e=o instanceof Error?o.message:String(o);f(`Could not finish activating ${r}: ${e}`),k()}}async function Bc(){H(!0),N("Clearing project provider override...");try{await new Promise((r)=>queueMicrotask(r)),mn(null),M();let c=T();if(c){let r=yt(c.model);Ct(),u((o)=>({...o,mainLoopModel:r,mainLoopModelForSession:null})),N(`Project override cleared. Using global default: ${c.name}.`),H(!1),n({action:"activated",activeProfileId:c.id,activeProviderName:c.name,activeProviderModel:r,message:`Project override cleared — using ${c.name} (${r})`}),k()}else N("Project provider override cleared. No global default set."),H(!1),n({action:"saved",message:"Project provider override cleared. No global default set."}),k()}catch(c){M(),N(void 0),H(!1);let r=c instanceof Error?c.message:String(c);f(`Could not clear project provider override: ${r}`),k()}}async function pc(c){let r="provider";H(!0),N("Setting provider for this project...");try{await new Promise((F)=>queueMicrotask(F));let o=Jt(),e=mn(c);if(!e){f("Could not set project provider override."),H(!1),k();return}let d=yt(e.model);if(o===e.id)Ct();u((F)=>({...F,mainLoopModel:d,mainLoopModelForSession:null})),r=e.name;let O=it(),X=fc(e,bt),J=X?await xt():null;M();let $=`Active provider for this project: ${e.name}. Other projects keep the global default.`,K=X?It({prefix:$,activationWarning:J,warnings:[J,O?`could not clear startup provider override (${O})`:null].filter((F)=>Boolean(F))}):O?`${$} Warning: could not clear startup provider override (${O}).`:$;N(K),H(!1),n({action:"activated",activeProfileId:e.id,activeProviderName:e.name,activeProviderModel:d,message:`Provider switched to ${e.name} (${d}) for this project`}),k()}catch(o){M(),N(void 0),H(!1);let e=o instanceof Error?o.message:String(o);f(`Could not finish setting ${r} for this project: ${e}`),k()}}function k(){Kc("done"),C("menu")}function Ft(c){n({action:"cancelled",message:c})}function Ic(c){let r=Kt(c),o={name:r.name,baseUrl:r.baseUrl,model:r.model,apiKey:r.apiKey??""};if(Q(null),x(r.provider??"openai"),W(o),zt({}),Tt(""),On(c),D(0),st(0),j(o.name.length),f(void 0),c==="ollama"){Xt({state:"loading"}),C("select-ollama-model");return}if(c==="atomic-chat"){_t({state:"loading"}),C("select-atomic-chat-model");return}if(c==="anthropic"){C("anthropic-auth-choice");return}if(c==="bedrock"||c==="vertex"||c==="foundry"){C("cloud-extras");return}C("form")}function xc(c){let r=h.find((e)=>e.id===c);if(!r)return;let o=ea(r);Q(c),x(r.provider??"openai"),W(o),zt({awsRegion:r.extras?.awsRegion,gcpProject:r.extras?.gcpProject,gcpRegion:r.extras?.gcpRegion,azureResource:r.extras?.azureResource}),Tt(da(r.extras?.customHeaders)),On(null),D(0),st(0),j(o.name.length),f(void 0),C("form")}function $t(c=S){let r=ya(Ht,wn),o={provider:_,name:c.name,baseUrl:c.baseUrl,model:c.model,apiKey:c.apiKey,extras:r},e=ut?Ot(ut,o):tt(o,{makeActive:!0});if(!e){f("Could not save provider. Fill all required fields.");return}let d=T()?.id===e.id;if(d)Ct(),u((K)=>({...K,mainLoopModel:yt(e.model),mainLoopModelForSession:null}));let O=d?it():null;M();let X=!ut&&ft()&&!d,J=X?T()?.name??"override target":null,$=ut?`Updated provider: ${e.name}`:X?`Added provider: ${e.name} (now global default — project keeps using ${J}; use "Clear project provider override" to apply here)`:`Added provider: ${e.name} (now active)`;if(N(O?`${$}. Warning: could not clear startup provider override (${O}).`:$),t==="first-run"){n({action:"saved",activeProfileId:e.id,message:`Provider configured: ${e.name}`});return}Q(null),D(0),f(void 0),k()}function Dc(){if(B.state==="loading"||B.state==="idle")return y(g,{flexDirection:"column",gap:1,children:[a(l,{color:"remember",bold:!0,children:"Checking Atomic Chat"}),a(l,{dimColor:!0,children:"Looking for loaded Atomic Chat models..."})]});if(B.state==="unavailable")return y(g,{flexDirection:"column",gap:1,children:[a(l,{color:"remember",bold:!0,children:"Atomic Chat setup"}),a(l,{dimColor:!0,children:B.message}),a(Y,{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:(c)=>{if(c==="manual"){D(0),j(S.name.length),C("form");return}C("select-preset")},onCancel:()=>C("select-preset"),visibleOptionCount:2})]});return y(g,{flexDirection:"column",gap:1,children:[a(l,{color:"remember",bold:!0,children:"Choose an Atomic Chat model"}),a(l,{dimColor:!0,children:"Pick one of the models loaded in Atomic Chat to save into a local provider profile."}),a(Y,{options:B.options,defaultValue:B.defaultValue,defaultFocusValue:B.defaultValue,inlineDescriptions:!0,visibleOptionCount:Math.min(8,B.options.length),onChange:(c)=>{let r={...S,model:c};W(r),$t(r)},onCancel:()=>C("select-preset")})]})}function jc(){if(P.state==="loading"||P.state==="idle")return y(g,{flexDirection:"column",gap:1,children:[a(l,{color:"remember",bold:!0,children:"Checking Ollama"}),a(l,{dimColor:!0,children:"Looking for installed Ollama models..."})]});if(P.state==="unavailable")return y(g,{flexDirection:"column",gap:1,children:[a(l,{color:"remember",bold:!0,children:"Ollama setup"}),a(l,{dimColor:!0,children:P.message}),a(Y,{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:(c)=>{if(c==="manual"){D(0),j(S.name.length),C("form");return}C("select-preset")},onCancel:()=>C("select-preset"),visibleOptionCount:2})]});return y(g,{flexDirection:"column",gap:1,children:[a(l,{color:"remember",bold:!0,children:"Choose an Ollama model"}),a(l,{dimColor:!0,children:"Pick one of the installed Ollama models to save into a local provider profile."}),a(Y,{options:P.options,defaultValue:P.defaultValue,defaultFocusValue:P.defaultValue,inlineDescriptions:!0,visibleOptionCount:Math.min(8,P.options.length),onChange:(c)=>{let r={...S,model:c};W(r),$t(r)},onCancel:()=>C("select-preset")})]})}function vc(c){let r=c.trim();if(!lt.optional&&r.length===0){f(`${lt.label} is required.`);return}let o={...S,[qt]:r};if(W(o),f(void 0),ht<mt.length-1){let e=ht+1,d=mt[e]?.key??"name";D(e),j(o[d].length);return}if((Wt==="anthropic"||Wt==="custom")&&V==="form"){W(o),C("custom-headers");return}$t(o)}function tu(){if(f(void 0),ht>0){let c=ht-1,r=mt[c]?.key??"name";D(c),j(S[r].length);return}if(t==="first-run"){C("select-preset");return}k()}ct("confirm:no",tu,{context:"Settings",isActive:V==="form"});function nu(){if(f(void 0),at>0){st(at-1);return}C("select-preset")}ct("confirm:no",nu,{context:"Settings",isActive:V==="cloud-extras"}),ct("confirm:no",()=>C("form"),{context:"Settings",isActive:V==="custom-headers"}),ct("confirm:no",()=>C("select-preset"),{context:"Settings",isActive:V==="anthropic-auth-choice"||V==="anthropic-oauth"});function cu(){let c=!nt(),r=[...Et?[{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)"},...c?[{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:"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:[a(l,{color:"remember",bold:!0,children:t==="first-run"?"Set up provider":"Choose provider preset"}),a(l,{dimColor:!0,children:"Pick a preset, then confirm base URL, model, and API key."}),a(Y,{options:r,onChange:(o)=>{if(o==="skip"){Ft("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 e=await bn({force:!0});Pt(Rt()),M();let d=Zt(e);if(e.errors.length>0){f(d);return}let O=T();if(t==="first-run"&&O){n({action:"saved",activeProfileId:O.id,activeProviderName:O.name,activeProviderModel:O.model,message:d});return}if(N(d),f(void 0),t==="manage")k()})();return}Ic(o)},onCancel:()=>{if(t==="first-run"){Ft("Provider setup skipped");return}k()},visibleOptionCount:Math.min(13,r.length)})]})}function uu(){return y(g,{flexDirection:"column",gap:1,children:[a(l,{color:"remember",bold:!0,children:"Anthropic — choose authentication"}),a(l,{dimColor:!0,children:"Sign in with your Anthropic account in the browser, or paste an API key."}),a(Y,{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:(c)=>{if(c==="oauth"){C("anthropic-oauth");return}if(c==="apiKey"){C("form");return}C("select-preset")},onCancel:()=>C("select-preset"),visibleOptionCount:3})]})}function au(){let c=(na(),Uu(ta)).ConsoleOAuthFlow;return a(g,{flexDirection:"column",gap:1,children:a(c,{mode:"login",onDone:()=>{let r=Kt("anthropic"),o={provider:"anthropic",name:r.name,baseUrl:r.baseUrl,model:r.model},e=tt(o,{makeActive:!0});if(!e){f("OAuth completed, but the Anthropic profile could not be saved."),C("select-preset");return}let d=`Anthropic OAuth configured: ${e.name}`;if(M(),t==="first-run"){n({action:"saved",activeProfileId:e.id,message:d});return}N(d),f(void 0),k()}})})}function hu(){let c=Wt;if(c!=="bedrock"&&c!=="vertex"&&c!=="foundry")return null;let r=Ca[c],o=r[at]??r[0],e=Ht[o.key]??"";function d(O){let X=O.trim();if(X.length===0){f(`${o.label} is required.`);return}let J={...Ht,[o.key]:X};if(zt(J),f(void 0),at<r.length-1){st(at+1);return}st(0),C("form")}return y(g,{flexDirection:"column",gap:1,children:[a(l,{color:"remember",bold:!0,children:`${c==="bedrock"?"AWS Bedrock":c==="vertex"?"Google Vertex AI":"Azure AI Foundry"} setup`}),a(l,{dimColor:!0,children:o.helpText}),y(l,{dimColor:!0,children:["Step ",at+1," of ",r.length,": ",o.label]}),y(g,{flexDirection:"row",gap:1,children:[a(l,{children:dt.pointer}),a(ot,{value:e,onChange:(O)=>zt((X)=>({...X,[o.key]:O})),onSubmit:d,focus:!0,showCursor:!0,placeholder:`${o.placeholder}${dt.ellipsis}`,columns:80,cursorOffset:Vc,onChangeCursorOffset:Qc})]}),rt&&a(l,{color:"error",children:rt}),a(l,{dimColor:!0,children:"Press Enter to continue. Press Esc to go back."})]})}function ru(){return y(g,{flexDirection:"column",gap:1,children:[a(l,{color:"remember",bold:!0,children:"Custom headers (optional)"}),y(l,{dimColor:!0,children:["Add HTTP headers sent on every request. One header per line as"," ",a(l,{children:"Header: Value"}),". Leave empty to skip."]}),y(g,{flexDirection:"row",gap:1,children:[a(l,{children:dt.pointer}),a(ot,{value:wn,onChange:Tt,onSubmit:()=>$t(S),focus:!0,showCursor:!0,placeholder:"X-Header: value",columns:80,multiline:!0,cursorOffset:Gc,onChangeCursorOffset:Yc})]}),rt&&a(l,{color:"error",children:rt}),a(l,{dimColor:!0,children:"Press Enter on a blank line to save. Press Esc to go back."})]})}function lu(){return y(g,{flexDirection:"column",gap:1,children:[a(l,{color:"remember",bold:!0,children:ut?"Edit provider profile":"Create provider profile"}),a(l,{dimColor:!0,children:lt.helpText}),y(l,{dimColor:!0,children:["Provider type:"," ",_==="anthropic"?"Anthropic native API":"OpenAI-compatible API"]}),y(l,{dimColor:!0,children:["Step ",ht+1," of ",mt.length,": ",lt.label]}),y(g,{flexDirection:"row",gap:1,children:[a(l,{children:dt.pointer}),a(ot,{value:Ec,onChange:(c)=>W((r)=>({...r,[qt]:c})),onSubmit:vc,focus:!0,showCursor:!0,placeholder:`${lt.placeholder}${dt.ellipsis}`,mask:qt==="apiKey"?"*":void 0,columns:80,cursorOffset:Jc,onChangeCursorOffset:j})]}),rt&&a(l,{color:"error",children:rt}),a(l,{dimColor:!0,children:"Press Enter to continue. Press Esc to go back."})]})}function iu(){let c=h.length>0,r=c;return y(g,{flexDirection:"column",gap:1,children:[a(l,{color:"remember",bold:!0,children:"Provider manager"}),a(l,{dimColor:!0,children:"Active profile controls base URL, model, and API key used by this session."}),gn&&a(l,{children:gn}),a(g,{flexDirection:"column",children:h.length===0?a(l,{dimColor:!0,children:"No provider profiles configured yet."}):h.map((o)=>y(l,{dimColor:!0,children:["- ",o.name,": ",sa(o,o.id===m)]},o.id))}),a(Y,{options:Rn,onChange:(o)=>{switch(f(void 0),o){case"add":C("select-preset");break;case"import-legacy":{(async()=>{let e=await bn({force:!0});if(Pt(Rt()),M(),e.errors.length>0)f(Zt(e));else N(Zt(e))})();break}case"activate":if(r)C("select-active");break;case"activate-project":if(r)C("select-active-project");break;case"clear-project-override":Bc();break;case"edit":if(c)C("select-edit");break;case"delete":if(r)C("select-delete");break;case"logout-codex-oauth":{let e=Cn();if(!e.success){f(e.warning??"Could not clear Codex OAuth credentials.");break}kt(!1),wt(void 0);let d=en(v(),bt),O=null;if(d){let X=dn(d.id);if(!X.removed){f("Codex OAuth credentials were cleared, but the Codex profile could not be removed."),M();break}zn(),O=X.activeProfileId?it():null}M(),N(O?`Codex OAuth logged out. Warning: could not clear startup provider override (${O}).`:"Codex OAuth logged out.");break}default:Ft("Provider manager closed");break}},onCancel:()=>Ft("Provider manager closed"),defaultFocusValue:Zc,visibleOptionCount:Rn.length})]})}function Lt(c,r,o){let e=h.map((d)=>{let O=[];if(d.id===m)O.push("active");if(w&&d.id===w)O.push("this project");if(q&&d.id===q)O.push("global default");let X=O.length>0?` (${O.join(", ")})`:"";return{value:d.id,label:`${d.name}${X}`,description:`${d.provider==="anthropic"?"anthropic":"openai-compatible"} · ${d.baseUrl} · ${d.model}`}});if(e.length===0)return y(g,{flexDirection:"column",gap:1,children:[a(l,{color:"remember",bold:!0,children:c}),a(l,{dimColor:!0,children:r}),a(Y,{options:[{value:"back",label:"Back",description:"Return to provider manager"}],onChange:()=>k(),onCancel:()=>k(),visibleOptionCount:1})]});return y(g,{flexDirection:"column",gap:1,children:[a(l,{color:"remember",bold:!0,children:c}),a(Y,{options:e,onChange:o,onCancel:()=>k(),visibleOptionCount:Math.min(10,Math.max(2,e.length))})]})}let G;switch(V){case"select-preset":G=cu();break;case"select-ollama-model":G=jc();break;case"select-atomic-chat-model":G=Dc();break;case"codex-oauth":G=a(Oa,{onBack:()=>C("select-preset"),onConfigured:async(c,r)=>{let o={provider:"openai",name:ha,baseUrl:zc,model:ra,apiKey:""},e=en(v(),bt),d=e?Ot(e.id,o):tt(o,{makeActive:!0});if(!d){f("Codex OAuth login finished, but the provider profile could not be saved."),k();return}let O=e&&m!==d.id?gt(d.id):d;if(!O){f("Codex OAuth login finished, but the provider could not be set as the startup provider."),k();return}r({profileId:d.id});let X=it(),J=await xt(c);kt(!0),wt(d.id),M();let $=[J,X?`could not clear startup provider override (${X})`:null].filter((F)=>Boolean(F)),K=It({prefix:"Codex OAuth configured",activationWarning:J,warnings:$});if(t==="first-run"){n({action:"saved",activeProfileId:O.id,message:K});return}N(K),f(void 0),k()}});break;case"xai-oauth":G=a(ga,{onBack:()=>C("select-preset"),onConfigured:async(c,r)=>{let e=tt({provider:"openai",name:la,baseUrl:sn,model:ia,apiKey:""},{makeActive:!0});if(!e){f("xAI OAuth login finished, but the provider profile could not be saved."),k();return}try{r({profileId:e.id})}catch(O){f(O instanceof Error?O.message:String(O)),k();return}M();let d="xAI / Grok configured. Claudin switched to it for this session.";if(t==="first-run"){n({action:"saved",activeProfileId:e.id,message:d});return}N(d),f(void 0),k()}});break;case"github-onboard":G=a(Yn,{onDone:(c)=>{if(c)N(c),f(void 0);M(),k()},onBack:()=>C("select-preset"),onChangeAPIKey:M});break;case"anthropic-auth-choice":G=uu();break;case"anthropic-oauth":G=au();break;case"cloud-extras":G=hu();break;case"custom-headers":G=ru();break;case"form":G=lu();break;case"select-active":G=Lt("Set active provider (Global)","No providers available. Add one first.",(c)=>{Pc(c)});break;case"select-active-project":G=Lt("Set active provider (Project)","No providers available. Add one first.",(c)=>{pc(c)});break;case"select-edit":G=Lt("Edit provider","No providers available. Add one first.",(c)=>{xc(c)});break;case"select-delete":G=Lt("Delete provider","No providers available. Add one first.",(c)=>{let r=h.find(($)=>$.id===c),o=r?.provider==="openai"&&r?.extras?.githubToken!==void 0,e=en(h,bt)?.id===c,d=_c()?.profileId,O=r?.provider==="openai"&&r.baseUrl===sn&&!r.apiKey&&d===c,X=T()?.id===c,J=dn(c);if(!J.removed)f("Could not delete provider.");else{let $=[];if(e){let F=Cn();if(!F.success)$.push(F.warning??"could not clear Codex OAuth credentials");else wt(void 0);zn()}if(o){let F=Xc();if(!F.success)$.push(F.warning??"could not clear GitHub Copilot token")}if(O){let F=qc();if(!F.success)$.push(F.warning??"could not clear xAI OAuth credentials")}let K=J.activeProfileId?it():null;if(K)$.push(`could not clear startup provider override (${K})`);if(M(),X){let F=T();if(F)Ct(),u((U)=>({...U,mainLoopModel:yt(F.model),mainLoopModelForSession:null}));else Ct(),u((U)=>({...U,mainLoopModel:null,mainLoopModelForSession:null}))}N($.length>0?`Provider deleted. Warning: ${$.join("; ")}.`:"Provider deleted")}k()});break;case"menu":default:G=iu();break}return y(kc,{color:"permission",children:[a(Mc,{enabled:fn,onDismiss:(c)=>{Pt(Rt()),Uc(!1),M();let r=T();if(c==="migrated"&&t==="first-run"&&r)n({action:"saved",activeProfileId:r.id,activeProviderName:r.name,activeProviderModel:r.model})}}),fn?null:Hc?y(g,{flexDirection:"column",gap:1,children:[a(l,{color:"remember",bold:!0,children:"Loading providers..."}),a(l,{dimColor:!0,children:"Reading provider profiles from disk."})]}):Wc?y(g,{flexDirection:"column",gap:1,children:[a(l,{color:"remember",bold:!0,children:"Activating provider..."}),a(l,{dimColor:!0,children:"Please wait while the provider is being configured."})]}):G]})}var s,mt,ha="Codex OAuth",ra="codexplan",la="xAI / Grok (OAuth)",ia="grok-4",Ca;var Aa=p(()=>{Eu();Jn();Bu();_n();pu();Du();ca();cc();hn();Pu();xu();kn();Vn();ju();Tn();Wn();vu();Iu();aa();Qn();hc();Ac();Oc();ua();Nt();s=Mt(Vt(),1),mt=[{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:"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.'},{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}];Ca={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{tn as ic,Wn as jc,ma as kc,gh as lc,Aa as mc};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{lh as v,mh as i}from"./cli-0.6.6-mzjbzje2.mjs";import{nh as E,oh as t}from"./cli-0.6.6-zb8ddz0k.mjs";import{$V as s,_V as b}from"./cli-0.6.6-1a0fnhh0.mjs";import{JY as L,LY as X,oZ as m}from"./cli-0.6.6-en2sexw5.mjs";import{u1 as $,w1 as F}from"./cli-0.6.6-arvcw19g.mjs";import{x1 as d}from"./cli-0.6.6-c267ckfv.mjs";import{J7 as C,K7 as n}from"./cli-0.6.6-q1j20ysc.mjs";import{bea as O,cea as l,dea as P,eea as k,tea as o}from"./cli-0.6.6-b1wqaqv9.mjs";import{spa as g,wpa as a}from"./cli-0.6.6-py5db2ds.mjs";function Kq(J,q,H){if(J.startsWith("file-"))return H?v(q):"+";if(J.startsWith("mcp-resource-"))return"◇";if(J.startsWith("agent-"))return"*";return"+"}function Oq(J){return J.startsWith("file-")||J.startsWith("mcp-resource-")||J.startsWith("agent-")}function Qq(J){let q=J.metadata?.type;return q==="directory"||q==="file"}function Zq({suggestions:J,selectedSuggestion:q,maxColumnWidth:H,overlay:K}){let{rows:A}=b(),Y=A-2,G=Y>=e?Math.min(qq,Y):Math.max(1,Y);if(J.length===0)return null;let w=H??Math.max(...J.map((Q)=>O(Q.displayText)))+5,V=Math.max(0,Math.min(q-Math.floor(G/2),J.length-G)),U=Math.min(V+G,J.length),Z=J.slice(V,U);return $(L,{flexDirection:"column",justifyContent:K?void 0:"flex-end",children:Z.map((Q)=>$(Yq,{item:Q,maxColumnWidth:w,isSelected:Q.id===J[q]?.id},`${Q.id}:${Q.id===J[q]?.id?"selected":"idle"}`))})}var _,e=8,qq=15,y,Jq=" ",B,j,Yq,Mq;var $q=a(()=>{n();s();l();m();i();o();t();F();_=g(d(),1),y=`${C.pointer} `,B=O(y),j=E();Yq=_.memo(function({item:q,maxColumnWidth:H,isSelected:K}){let A=b().columns,Y=K?y:Jq,G=K?"suggestion":void 0,w=K?"inverseText":void 0;if(Oq(q.id)){let D=Kq(q.id,q.displayText,j),I=!K,x=q.id.startsWith("file-"),c=q.id.startsWith("mcp-resource-"),Aq=2,Gq=4,R=q.description?3:0,z;if(x){let N=q.description?Math.min(20,O(q.description)):0,r=A-B-2-4-R-N;z=P(q.displayText,r)}else if(c)z=k(q.displayText,30);else z=q.displayText;let u=A-B-2-O(z)-R-4,M;if(q.description){let N=k(q.description.replace(/\s+/g," "),Math.max(0,u));M=`${Y}${D} ${z} - ${N}`}else M=`${Y}${D} ${z}`;return $(L,{width:"100%",opaque:!0,backgroundColor:G,children:$(X,{color:w,dimColor:I,bold:K,wrap:"truncate",children:M})})}let V=Math.floor(A*0.4),U=Math.min(H??O(q.displayText)+5,V),Z=q.displayText;if(O(Z)>U-2)Z=k(Z,U-2);let Q=Qq(q)?`${j?v(q.displayText):"+"} `:"",W=Y+Q+Z+" ".repeat(Math.max(0,U-O(Z))),f=q.tag?`[${q.tag}] `:"",S=O(f),h=Math.max(0,A-B-U-S-4),p=q.description?k(q.description.replace(/\s+/g," "),h):"",T=`${W}${f}${p}`;return $(L,{width:"100%",opaque:!0,backgroundColor:G,children:$(X,{color:w,dimColor:!K,bold:K,wrap:"truncate",children:T})})});Mq=_.memo(Zq)});
|
|
2
|
+
export{Zq as gh,Mq as hh,$q as ih};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{opa as n}from"./cli-0.6.6-dmtpt4r7.mjs";import{upa as r}from"./cli-0.6.6-py5db2ds.mjs";var i=r((e)=>{Object.defineProperty(e,"__esModule",{value:!0});e.readFile=e.externalDataInterceptor=e.parseKnownFiles=e.loadSsoSessionData=e.loadSharedConfigFiles=e.CONFIG_PREFIX_SEPARATOR=e.getSSOTokenFromFile=e.getSSOTokenFilepath=e.getProfileName=e.DEFAULT_PROFILE=e.ENV_PROFILE=e.getHomeDir=void 0;var t=n();Object.defineProperty(e,"getHomeDir",{enumerable:!0,get:function(){return t.getHomeDir}});Object.defineProperty(e,"ENV_PROFILE",{enumerable:!0,get:function(){return t.ENV_PROFILE}});Object.defineProperty(e,"DEFAULT_PROFILE",{enumerable:!0,get:function(){return t.DEFAULT_PROFILE}});Object.defineProperty(e,"getProfileName",{enumerable:!0,get:function(){return t.getProfileName}});Object.defineProperty(e,"getSSOTokenFilepath",{enumerable:!0,get:function(){return t.getSSOTokenFilepath}});Object.defineProperty(e,"getSSOTokenFromFile",{enumerable:!0,get:function(){return t.getSSOTokenFromFile}});Object.defineProperty(e,"CONFIG_PREFIX_SEPARATOR",{enumerable:!0,get:function(){return t.CONFIG_PREFIX_SEPARATOR}});Object.defineProperty(e,"loadSharedConfigFiles",{enumerable:!0,get:function(){return t.loadSharedConfigFiles}});Object.defineProperty(e,"loadSsoSessionData",{enumerable:!0,get:function(){return t.loadSsoSessionData}});Object.defineProperty(e,"parseKnownFiles",{enumerable:!0,get:function(){return t.parseKnownFiles}});Object.defineProperty(e,"externalDataInterceptor",{enumerable:!0,get:function(){return t.externalDataInterceptor}});Object.defineProperty(e,"readFile",{enumerable:!0,get:function(){return t.readFile}})});
|
|
2
|
+
export{i as t7};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{wga as X,zga as z}from"./cli-0.6.6-a837m6n5.mjs";import{Cha as P,cha as Z,hha as O,zha as $}from"./cli-0.6.6-hcajyfhg.mjs";import{Tha as Y,_ha as H}from"./cli-0.6.6-g6ja9jcs.mjs";import{wpa as x}from"./cli-0.6.6-py5db2ds.mjs";function h(q){return q.replace(w,(K,J,Q)=>{if(Q.length<F)return`"${J}":"[REDACTED]"`;let V=`${Q.slice(0,8)}...${Q.slice(-4)}`;return`"${J}":"${V}"`})}function N(q){let K=q.replace(/\n/g,"\\n");if(K.length<=W)return K;return K.slice(0,W)+`... (${K.length} chars)`}function R(q){let K=typeof q==="string"?q:Z(q),J=h(K);if(J.length<=W)return J;return J.slice(0,W)+`... (${J.length} chars)`}function U(q){let K=Y(q);if(q&&typeof q==="object"&&"response"in q){let J=q.response;if(J?.data&&typeof J.data==="object"){let Q=J.data,V=typeof Q.message==="string"?Q.message:typeof Q.error==="object"&&Q.error&&("message"in Q.error)&&typeof Q.error.message==="string"?Q.error.message:void 0;if(V)return`${K}: ${V}`}}return K}function j(q){if(q&&typeof q==="object"&&"response"in q&&q.response&&typeof q.response.status==="number")return q.response.status;return}function D(q){if(!q||typeof q!=="object")return;if("message"in q&&typeof q.message==="string")return q.message;if("error"in q&&q.error!==null&&typeof q.error==="object"&&"message"in q.error&&typeof q.error.message==="string")return q.error.message;return}function L(q,K,J){if(K)$(K);X("tengu_bridge_repl_skipped",{reason:q,...J!==void 0&&{v2:J}})}var W=2000,k,w,F=16;var m=x(()=>{z();P();H();O();k=["session_ingress_token","environment_secret","access_token","secret","token"],w=new RegExp(`"(${k.join("|")})"\\s*:\\s*"([^"]*)"`,"g")});
|
|
2
|
+
export{N as Ie,R as Je,U as Ke,j as Le,D as Me,L as Ne,m as Oe};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import{Ra as b}from"./cli-0.6.6-7bzhgmhp.mjs";import{Gf as zK,Lf as dK}from"./cli-0.6.6-e4pcw0z3.mjs";import{$J as pK,HI as wz,IN as FK,Nz as oz,PI as MK,Pz as sz,Qz as fK,RH as hK,SH as mK,Zv as Cz,_J as tz,_R as j,aS as uK,bm as rz,dm as bK,eo as M,ew as xK,fo as vK,ho as iz,lo as SK,oK as ez,qK as cK,zN as Ez}from"./cli-0.6.6-23snct9d.mjs";import{YW as Kz,bX as AK,cX as Qz,dX as GK}from"./cli-0.6.6-en2sexw5.mjs";import{F4 as nz,J4 as jK,P5 as Tz,R5 as Mz,T5 as R,b4 as Uz,b6 as xz,c4 as lz,i4 as Dz,m2 as U,n4 as I,p4 as _z,r2 as O,u4 as k}from"./cli-0.6.6-8yvh28tb.mjs";import{x6 as G,y6 as _K}from"./cli-0.6.6-wctj7gmc.mjs";import{B8 as cz,B_ as zz,D_ as DK,O7 as Zz,P7 as RK,Qba as gz,Qda as V,R8 as dz,Uaa as q,W7 as T,Waa as H,Wba as $,Y7 as CK,Y8 as EK,Yaa as uz,Yda as A,Zaa as S,Zba as W,_aa as kz,bba as Jz,dca as Wz,eca as Bz,f_ as t,fca as az,hba as _,k_ as LK,q_ as e,s8 as $z,sca as L,u8 as TK,u_ as UK}from"./cli-0.6.6-q1j20ysc.mjs";import{Dea as kK,yea as E}from"./cli-0.6.6-b1wqaqv9.mjs";import{Ifa as pz,Jfa as PK}from"./cli-0.6.6-d5dexg4d.mjs";import{wga as Z,zga as N}from"./cli-0.6.6-a837m6n5.mjs";import{fha as r,hha as WK,iha as i,lha as o,pha as BK}from"./cli-0.6.6-hcajyfhg.mjs";import{Hha as s,Iha as NK}from"./cli-0.6.6-t3vvf5fy.mjs";import{Tha as y,Vha as n,_ha as VK}from"./cli-0.6.6-g6ja9jcs.mjs";import{dia as C,eia as v,gia as hz,mia as mz,oia as yK}from"./cli-0.6.6-nw0nh4e0.mjs";import{Hla as Sz,Lja as F,Pja as JK,Rna as w,Tla as fz,_la as a,dla as Iz,ela as bz,fla as Oz,hla as vz,rma as l}from"./cli-0.6.6-ncqg4xxp.mjs";import{tpa as wK}from"./cli-0.6.6-py5db2ds.mjs";_K();AK();w();DK();VK();BK();LK();A();NK();UK();JK();WK();GK();import{readFileSync as IK}from"node:fs";var OK=/--inspect(-brk)?/,g=/--inspect(-brk)?|--debug(-brk)?/;function ZQ(){let z=zz()?OK:g,Q=process.execArgv.some((Y)=>z.test(Y)),X=!!process.env.NODE_OPTIONS&&g.test(process.env.NODE_OPTIONS);try{return!!global.require("inspector").url()||Q||X}catch{return Q||X}}function $Q(){(process.stderr.isTTY?process.stderr:process.stdout.isTTY?process.stdout:void 0)?.write(Kz)}function qQ(K){if(typeof K!=="object"||K===null)return{};let z=K,Q=z.teammateMode;return{agentId:typeof z.agentId==="string"?z.agentId:void 0,agentName:typeof z.agentName==="string"?z.agentName:void 0,teamName:typeof z.teamName==="string"?z.teamName:void 0,agentColor:typeof z.agentColor==="string"?z.agentColor:void 0,planModeRequired:typeof z.planModeRequired==="boolean"?z.planModeRequired:void 0,parentSessionId:typeof z.parentSessionId==="string"?z.parentSessionId:void 0,teammateMode:Q==="auto"||Q==="tmux"||Q==="in-process"?Q:void 0,agentType:typeof z.agentType==="string"?z.agentType:void 0}}function Xz(K){try{let z=K.trim(),Q=z.startsWith("{")&&z.endsWith("}"),X;if(Q){if(!t(z))process.stderr.write(G.red(`Error: Invalid JSON provided to --settings
|
|
2
|
+
`)),process.exit(1);X=Qz("claude-settings",".json",{contentHash:z}),r(X,z,"utf8")}else{let{resolvedPath:Y}=i(o(),K);try{IK(Y,"utf8")}catch(J){if(n(J))process.stderr.write(G.red(`Error: Settings file not found: ${Y}
|
|
3
|
+
`)),process.exit(1);throw J}X=Y}a(X),F()}catch(z){if(z instanceof Error)V(z);process.stderr.write(G.red(`Error processing settings: ${y(z)}
|
|
4
|
+
`)),process.exit(1)}}function Yz(K){try{let z=e(K);l(z),F()}catch(z){if(z instanceof Error)V(z);process.stderr.write(G.red(`Error processing --setting-sources: ${y(z)}
|
|
5
|
+
`)),process.exit(1)}}async function HQ(K,z){if(!process.stdin.isTTY&&!process.argv.includes("mcp")){if(z==="stream-json")return process.stdin;process.stdin.setEncoding("utf8");let Q="",X=(J)=>{Q+=J};process.stdin.on("data",X);let Y=await s(process.stdin,3000);if(process.stdin.off("data",X),Y)process.stderr.write(`Warning: no stdin data received in 3s, proceeding without it. If piping from a slow command, redirect stdin explicitly: < /dev/null to skip, or wait longer.
|
|
6
|
+
`);return[K,Q].filter(Boolean).join(`
|
|
7
|
+
`)}return K}kK();uK();N();bK();L();jK();CK();yK();EK();RK();TK();async function qz(){if(!await $z("gh"))return"not_installed";let{exitCode:z}=await Zz("gh",["auth","token"],{stdout:"ignore",stderr:"ignore",timeout:5000,reject:!1});return z===0?"authenticated":"not_authenticated"}A();k();pK();SK();cK();N();L();A();_();function Hz(){let K=W();if(K.autoUpdates!==!1||K.autoUpdatesProtectedForNative===!0)return;try{let z=q("userSettings")||{};H("userSettings",{...z,env:{...z.env,DISABLE_AUTOUPDATER:"1"}}),Z("tengu_migrate_autoupdates_to_settings",{was_user_preference:!0,already_had_env_var:!!z.env?.DISABLE_AUTOUPDATER}),process.env.DISABLE_AUTOUPDATER="1",$((Q)=>{let{autoUpdates:X,autoUpdatesProtectedForNative:Y,...J}=Q;return J})}catch(z){V(Error(`Failed to migrate auto-updates: ${z}`)),Z("tengu_migrate_autoupdates_error",{has_error:!0})}}N();L();A();_();function Vz(){if(!W().bypassPermissionsModeAccepted)return;try{if(!Jz())H("userSettings",{skipDangerousModePermissionPrompt:!0});Z("tengu_migrate_bypass_permissions_accepted",{}),$((z)=>{if(!("bypassPermissionsModeAccepted"in z))return z;let{bypassPermissionsModeAccepted:Q,...X}=z;return X})}catch(z){V(Error(`Failed to migrate bypass permissions accepted: ${z}`))}}N();L();A();_();function Nz(){let K=Wz(),z=K.enableAllProjectMcpServers!==void 0,Q=K.enabledMcpjsonServers&&K.enabledMcpjsonServers.length>0,X=K.disabledMcpjsonServers&&K.disabledMcpjsonServers.length>0;if(!z&&!Q&&!X)return;try{let Y=q("localSettings")||{},J={},B=[];if(z&&Y.enableAllProjectMcpServers===void 0)J.enableAllProjectMcpServers=K.enableAllProjectMcpServers,B.push("enableAllProjectMcpServers");else if(z)B.push("enableAllProjectMcpServers");if(Q&&K.enabledMcpjsonServers){let D=Y.enabledMcpjsonServers||[];J.enabledMcpjsonServers=[...new Set([...D,...K.enabledMcpjsonServers])],B.push("enabledMcpjsonServers")}if(X&&K.disabledMcpjsonServers){let D=Y.disabledMcpjsonServers||[];J.disabledMcpjsonServers=[...new Set([...D,...K.disabledMcpjsonServers])],B.push("disabledMcpjsonServers")}if(Object.keys(J).length>0)H("localSettings",J);if(B.includes("enableAllProjectMcpServers")||B.includes("enabledMcpjsonServers")||B.includes("disabledMcpjsonServers"))Bz((D)=>{let{enableAllProjectMcpServers:f,enabledMcpjsonServers:h,disabledMcpjsonServers:m,...x}=D;return x});Z("tengu_migrate_mcp_approval_fields_success",{migratedCount:B.length})}catch(Y){V(Y),Z("tengu_migrate_mcp_approval_fields_error",{})}}N();L();k();O();_();function Lz(){if(U()!=="firstParty")return;if(!_z())return;let K=q("userSettings")?.model;if(K!=="claude-opus-4-20250514"&&K!=="claude-opus-4-1-20250805"&&K!=="claude-opus-4-0"&&K!=="claude-opus-4-1")return;H("userSettings",{model:"opus"}),$((z)=>({...z,legacyOpusMigrationTimestamp:Date.now()})),Z("tengu_legacy_opus_migration",{from_model:K})}N();k();_();function Az(){if(!Dz())return;if(q("userSettings")?.model!=="opus")return;let z="opus[1m]",Q=I(z)===I(Uz())?void 0:z;H("userSettings",{model:Q}),Z("tengu_opus_to_opus1m_migration",{})}L();function Gz(){$((K)=>{let z=K.replBridgeEnabled;if(z===void 0)return K;if(K.remoteControlAtStartup!==void 0)return K;let Q={...K,remoteControlAtStartup:Boolean(z)};return delete Q.replBridgeEnabled,Q})}w();L();O();_();function Rz(){if(U()!=="firstParty")return;if(W().sonnet1m45MigrationComplete)return;if(q("userSettings")?.model==="sonnet[1m]")H("userSettings",{model:"sonnet-4-5-20250929[1m]"});if(Iz()==="sonnet[1m]")Oz("sonnet-4-5-20250929[1m]");$((X)=>({...X,sonnet1m45MigrationComplete:!0}))}N();xz();L();O();_();function Fz(){if(U()!=="firstParty")return;if(!R()&&!Tz()&&!Mz())return;let K=q("userSettings")?.model;if(K!=="claude-sonnet-4-5-20250929"&&K!=="claude-sonnet-4-5-20250929[1m]"&&K!=="sonnet-4-5-20250929"&&K!=="sonnet-4-5-20250929[1m]")return;let z=K.endsWith("[1m]");if(H("userSettings",{model:z?"sonnet[1m]":"sonnet"}),W().numStartups>1)$((X)=>({...X,sonnet45To46MigrationTimestamp:Date.now()}));Z("tengu_sonnet45_to_46_migration",{from_model:K,has_1m:z})}N();L();A();MK();_();function yz(){if(W().hasResetAutoModeOptInForDefaultOffer)return;if(wz()!=="enabled")return;try{let z=q("userSettings");if(z?.skipAutoPermissionPrompt&&z?.permissions?.defaultMode!=="auto")H("userSettings",{skipAutoPermissionPrompt:void 0}),Z("tengu_migrate_reset_auto_opt_in_for_default_offer",{});$((Q)=>{if(Q.hasResetAutoModeOptInForDefaultOffer)return Q;return{...Q,hasResetAutoModeOptInForDefaultOffer:!0}})}catch(z){V(Error(`Failed to reset auto mode opt-in: ${z}`))}}N();xz();L();O();_();function Pz(){if(W().opusProMigrationComplete)return;if(U()!=="firstParty"||!R()){$((X)=>({...X,opusProMigrationComplete:!0})),Z("tengu_reset_pro_to_opus_default",{skipped:!0});return}if(kz()?.model===void 0){let X=Date.now();$((Y)=>({...Y,opusProMigrationComplete:!0,opusProMigrationTimestamp:X})),Z("tengu_reset_pro_to_opus_default",{skipped:!1,had_custom_model:!1})}else $((X)=>({...X,opusProMigrationComplete:!0})),Z("tengu_reset_pro_to_opus_default",{skipped:!1,had_custom_model:!0})}dK();vK();w();PK();_();FK();N();xK();async function jz(K,z){let Q=await Ez(K),X=Cz(z);for(let Y of Q){if(Y.type!=="prompt")continue;Z("tengu_skill_loaded",{_PROTO_skill_name:Y.name,skill_source:Y.source,skill_loaded_from:Y.loadedFrom,skill_budget:X,...Y.kind&&{skill_kind:Y.kind}})}}fK();function nX(){try{let K=q("policySettings");if(K){let z=uz(K);Z("tengu_managed_settings_loaded",{keyCount:z.length,keys:z.join(",")})}}catch{}}function rX(){let K=I(bz()??lz());jz(pz(),nz(K,vz())),ez().then(({enabled:z,errors:Q})=>{let X=tz();oz(z,X,iz()),sz(Q,X)}).catch((z)=>V(z))}function gK(){let K={};if(process.env.NODE_EXTRA_CA_CERTS)K.has_node_extra_ca_certs=!0;if(process.env.CLAUDE_CODE_CLIENT_CERT)K.has_client_cert=!0;if(C("--use-system-ca"))K.has_use_system_ca=!0;if(C("--use-openssl-ca"))K.has_use_openssl_ca=!0;return K}async function iX(){if(rz())return;let[K,z,Q]=await Promise.all([cz(),dz(),qz()]);Z("tengu_startup_telemetry",{is_git:K,worktree_count:z,gh_auth_status:Q,sandbox_enabled:M.isSandboxingEnabled(),are_unsandboxed_commands_allowed:M.areUnsandboxedCommandsAllowed(),is_auto_bash_allowed_if_sandbox_enabled:M.isAutoAllowBashIfSandboxedEnabled(),auto_updater_disabled:az(),prefers_reduced_motion:S().prefersReducedMotion??!1,...gK()})}var P=11;function oX(){if(W().migrationVersion!==P)Hz(),Vz(),Nz(),Pz(),Rz(),Lz(),Fz(),Az(),Gz(),yz(),$((K)=>K.migrationVersion===P?K:{...K,migrationVersion:P});zK().catch(()=>{})}function sX(){if(Sz()){T("info","prefetch_system_context_non_interactive"),j();return}if(gz())T("info","prefetch_system_context_has_trust"),j();else T("info","prefetch_system_context_skipped_no_trust")}function tX(){E("eagerLoadSettings_start");let K=b("--settings");if(K)Xz(K);let z=b("--setting-sources");if(z!==void 0)Yz(z);E("eagerLoadSettings_end")}function eX(K){if(process.env.CLAUDE_CODE_ENTRYPOINT)return;let z=process.argv.slice(2),Q=z.indexOf("mcp");if(Q!==-1&&z[Q+1]==="serve"){process.env.CLAUDE_CODE_ENTRYPOINT="mcp";return}if(v(process.env.CLAUDE_CODE_ACTION)){process.env.CLAUDE_CODE_ENTRYPOINT="claude-code-github-action";return}process.env.CLAUDE_CODE_ENTRYPOINT=K?"sdk-cli":"cli"}async function zY({hasInitialPrompt:K,hasStdin:z,verbose:Q,debug:X,debugToStderr:Y,print:J,outputFormat:B,inputFormat:D,numAllowedTools:f,numDisallowedTools:h,mcpClientCount:m,worktreeEnabled:x,skipWebFetchPreflight:KK,githubActionInputs:p,dangerouslySkipPermissionsPassed:QK,permissionMode:XK,modeIsBypass:YK,allowDangerouslySkipPermissionsPassed:ZK,systemPromptFlag:c,appendSystemPromptFlag:d,thinkingConfig:$K,assistantActivationPath:u,isCoordinator:qK}){try{Z("tengu_init",{entrypoint:"claude",hasInitialPrompt:K,hasStdin:z,verbose:Q,debug:X,debugToStderr:Y,print:J,outputFormat:B,inputFormat:D,numAllowedTools:f,numDisallowedTools:h,mcpClientCount:m,worktree:x,skipWebFetchPreflight:KK,...p&&{githubActionInputs:p},dangerouslySkipPermissionsPassed:QK,permissionMode:XK,modeIsBypass:YK,inProtectedNamespace:mz(),allowDangerouslySkipPermissionsPassed:ZK,thinkingType:$K.type,...c&&{systemPromptFlag:c},...d&&{appendSystemPromptFlag:d},is_simple:hz()||void 0,is_coordinator:qK||void 0,...u&&{assistantActivationPath:u},autoUpdatesChannel:S().autoUpdatesChannel??"latest"})}catch(HK){V(HK)}}function KY(K){}function QY(K){return}
|
|
8
|
+
export{ZQ as u,$Q as v,qQ as w,HQ as x,nX as y,rX as z,iX as A,oX as B,sX as C,tX as D,eX as E,zY as F,KY as G,QY as H};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{YE as O,_E as j,kn as y,ln as p}from"./cli-0.6.6-23snct9d.mjs";import{JY as F,LY as I,PY as R,oX as S,oZ as v}from"./cli-0.6.6-en2sexw5.mjs";import{u1 as Z,v1 as N,w1 as U}from"./cli-0.6.6-arvcw19g.mjs";import{x1 as d}from"./cli-0.6.6-c267ckfv.mjs";import{Waa as M,hba as E}from"./cli-0.6.6-q1j20ysc.mjs";import{wga as H,zga as b}from"./cli-0.6.6-a837m6n5.mjs";import{spa as k}from"./cli-0.6.6-py5db2ds.mjs";b();v();E();j();p();U();var T=k(S(),1),h=k(d(),1),x="Auto mode lets Claude handle permission prompts automatically — Claude checks each tool call for risky actions and prompt injection before executing. Actions Claude identifies as safe are executed, while actions Claude identifies as risky are blocked and Claude may try a different approach. Ideal for long-running tasks. Sessions are slightly more expensive. Claude can make mistakes that allow harmful commands to run, it's recommended to only use in isolated environments. Shift+Tab to change mode.";function l(A){let f=T.c(18),{onAccept:J,onDecline:q,declineExits:C}=A,K;if(f[0]===Symbol.for("react.memo_cache_sentinel"))K=[],f[0]=K;else K=f[0];h.default.useEffect(_,K);let Q;if(f[1]!==J||f[2]!==q)Q=function(m){f:switch(m){case"accept":{H("tengu_auto_mode_opt_in_dialog_accept",{}),M("userSettings",{skipAutoPermissionPrompt:!0}),J();break f}case"accept-default":{H("tengu_auto_mode_opt_in_dialog_accept_default",{}),M("userSettings",{skipAutoPermissionPrompt:!0,permissions:{defaultMode:"auto"}}),J();break f}case"decline":H("tengu_auto_mode_opt_in_dialog_decline",{}),q()}},f[1]=J,f[2]=q,f[3]=Q;else Q=f[3];let B=Q,V;if(f[4]===Symbol.for("react.memo_cache_sentinel"))V=N(F,{flexDirection:"column",gap:1,children:[Z(I,{children:x}),Z(R,{url:"https://code.claude.com/docs/en/security"})]}),f[4]=V;else V=f[4];let W;if(f[5]===Symbol.for("react.memo_cache_sentinel"))W=[{label:"Yes, and make it my default mode",value:"accept-default"}],f[5]=W;else W=f[5];let X;if(f[6]===Symbol.for("react.memo_cache_sentinel"))X={label:"Yes, enable auto mode",value:"accept"},f[6]=X;else X=f[6];let L=C?"No, exit":"No, go back",w;if(f[7]!==L)w=[...W,X,{label:L,value:"decline"}],f[7]=L,f[8]=w;else w=f[8];let z;if(f[9]!==B)z=(P)=>B(P),f[9]=B,f[10]=z;else z=f[10];let G;if(f[11]!==q||f[12]!==w||f[13]!==z)G=Z(O,{options:w,onChange:z,onCancel:q}),f[11]=q,f[12]=w,f[13]=z,f[14]=G;else G=f[14];let Y;if(f[15]!==q||f[16]!==G)Y=N(y,{title:"Enable auto mode?",color:"warning",onCancel:q,children:[V,G]}),f[15]=q,f[16]=G,f[17]=Y;else Y=f[17];return Y}function _(){H("tengu_auto_mode_opt_in_dialog_shown",{})}
|
|
2
|
+
export{x as Ja,l as Ka};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{tf as N0,uf as U0,wf as VP}from"./cli-0.6.6-141tbvn2.mjs";import{$u as j0,BK as WP,DL as CP,KK as cP,LK as fP,NG as G0,NK as M0,OE as XP,OG as YP,OK as h0,PE as mP,PK as T0,QK as d0,TK as R0,UL as C0,YE as L0,YL as pP,Yu as J0,Zu as QP,_E as i0,_K as u0,cn as h,dn as c0,en as p,fn as w0,gn as r,hn as W0,kn as O0,ln as EP,vL as ZP,wL as m0,yL as qP}from"./cli-0.6.6-23snct9d.mjs";import{$V as hP,_V as JP,mW as z0,oW as TP,rW as D0,sW as LP}from"./cli-0.6.6-1a0fnhh0.mjs";import{HY as C,JY as X,LY as L,PY as F0,dZ as GP,iX as PP,nX as AP,oX as I0,oZ as q0,xX as k0}from"./cli-0.6.6-en2sexw5.mjs";import{t1 as n,u1 as J,v1 as Q,w1 as a}from"./cli-0.6.6-arvcw19g.mjs";import{x1 as $0}from"./cli-0.6.6-c267ckfv.mjs";import{U1 as A0,V1 as dP}from"./cli-0.6.6-ythetarc.mjs";import{L5 as e0,b6 as gP}from"./cli-0.6.6-8yvh28tb.mjs";import{J7 as _,K7 as r0,Vda as s0,Y$ as y0,Yda as SP,Z$ as B0,_$ as KP,oaa as H0,paa as zP,xaa as p0}from"./cli-0.6.6-q1j20ysc.mjs";import{uga as g0,vga as _P}from"./cli-0.6.6-7r4esgkf.mjs";import{wga as m,zga as IP}from"./cli-0.6.6-a837m6n5.mjs";import{Tha as f0,_ha as t0}from"./cli-0.6.6-g6ja9jcs.mjs";import{spa as e,wpa as P0}from"./cli-0.6.6-py5db2ds.mjs";function K0(G){let P=o0.c(9),{serverToolsCount:Y,serverPromptsCount:z,serverResourcesCount:Z}=G,f;if(P[0]!==z||P[1]!==Z||P[2]!==Y){if(f=[],Y>0)f.push("tools");if(Z>0)f.push("resources");if(z>0)f.push("prompts");P[0]=z,P[1]=Z,P[2]=Y,P[3]=f}else f=P[3];let H;if(P[4]===Symbol.for("react.memo_cache_sentinel"))H=J(L,{bold:!0,children:"Capabilities: "}),P[4]=H;else H=P[4];let W;if(P[5]!==f)W=f.length>0?J(r,{children:f}):"none",P[5]=f,P[6]=W;else W=P[6];let k;if(P[7]!==W)k=Q(X,{children:[H,J(L,{color:"text",children:W})]}),P[7]=W,P[8]=k;else k=P[8];return k}var o0;var _0=P0(()=>{q0();W0();a();o0=e(I0(),1)});function E0(G,P){switch(G.client.type){case"connected":return{message:`Reconnected to ${P}.`,success:!0};case"needs-auth":return{message:`${P} requires authentication. Use the 'Authenticate' option.`,success:!1};case"failed":return{message:`Failed to reconnect to ${P}.`,success:!1};default:return{message:`Unknown result when reconnecting to ${P}.`,success:!1}}}function V0(G,P){let Y=G instanceof Error?G.message:String(G);return`Error reconnecting to ${P}: ${Y}`}var S0=()=>{};function bG({server:G,serverToolsCount:P,onViewTools:Y,onCancel:z,onComplete:Z,borderless:f=!1}){let[H]=k0(),W=D0(),{columns:k}=JP(),[B,N]=E.default.useState(!1),[$,U]=E.default.useState(null),S=J0((q)=>q.mcp),M=QP(),[b,K]=E.default.useState(null),[V,D]=E.useState(!1),R=E.useRef(null),[g,c]=E.useState(!1),[j,T]=E.useState(null),[A,y]=E.useState(!1),[i,u]=E.useState(null),[l,v]=E.useState(!1),[o,s]=E.useState(!1),x=E.useRef(void 0),O=E.useRef(!1),[x0,Q0]=E.useState(""),[kP,DP]=E.useState(0),[a0,n0]=E.useState(null);E.useEffect(()=>()=>{if(O.current=!0,R.current?.abort(),x.current!==void 0)clearTimeout(x.current)},[]);let X0=G.isAuthenticated||G.client.type==="connected"&&P>0,Y0=N0(),wP=E.default.useCallback(async()=>{c(!1),T(null),D(!0);try{let q=await Y0(G.name),F=q.client.type==="connected";if(m("tengu_claudeai_mcp_auth_completed",{success:F}),F)Z?.(`Authentication successful. Connected to ${G.name}.`);else if(q.client.type==="needs-auth")Z?.("Authentication successful, but server still requires authentication. You may need to manually restart Claude Code.");else Z?.("Authentication successful, but server reconnection failed. You may need to manually restart Claude Code for the changes to take effect.")}catch(q){m("tengu_claudeai_mcp_auth_completed",{success:!1}),Z?.(V0(q,G.name))}finally{D(!1)}},[Y0,G.name,Z]),MP=E.default.useCallback(async()=>{await C0(G.name,{...G.config,scope:G.scope}),M((q)=>{let F=q.mcp.clients.map((t)=>t.name===G.name?{...t,type:"needs-auth"}:t),w=h0(q.mcp.tools,G.name),d=T0(q.mcp.commands,G.name),Z0=d0(q.mcp.resources,G.name);return{...q,mcp:{...q.mcp,clients:F,tools:w,commands:d,resources:Z0}}}),m("tengu_claudeai_mcp_clear_auth_completed",{}),Z?.(`Disconnected from ${G.name}.`),y(!1),u(null),v(!1)},[G.name,G.config,G.scope,M,Z]);z0("confirm:no",()=>{R.current?.abort(),R.current=null,N(!1),K(null)},{context:"Confirmation",isActive:B}),z0("confirm:no",()=>{c(!1),T(null)},{context:"Confirmation",isActive:g}),z0("confirm:no",()=>{y(!1),u(null),v(!1)},{context:"Confirmation",isActive:A}),GP((q,F)=>{if(F.return&&g)wP();if(F.return&&A)if(l)MP();else{let w=`${g0().CLAUDE_AI_ORIGIN}/settings/connectors`;u(w),v(!0),A0(w)}if(q==="c"&&!o){let w=b||j||i;if(w)PP(w).then((d)=>{if(O.current)return;if(d)process.stdout.write(d);if(s(!0),x.current!==void 0)clearTimeout(x.current);x.current=setTimeout(s,2000,!1)})}});let RP=H0(String(G.name)),NP=M0(S.commands,G.name).length,l0=U0(),UP=E.default.useCallback(async()=>{let q=g0().CLAUDE_AI_ORIGIN,w=e0()?.organizationUuid,d;if(w&&G.config.type==="claudeai-proxy"&&G.config.id){let Z0=G.config.id.startsWith("mcprs")?"mcpsrv"+G.config.id.slice(5):G.config.id,t=encodeURIComponent(process.env.CLAUDE_CODE_ENTRYPOINT||"cli");d=`${q}/api/organizations/${w}/mcp/start-auth/${Z0}?product_surface=${t}`}else d=`${q}/settings/connectors`;T(d),c(!0),m("tengu_claudeai_mcp_auth_started",{}),await A0(d)},[G.config]),bP=E.default.useCallback(()=>{y(!0),m("tengu_claudeai_mcp_clear_auth_started",{})},[]),yP=E.default.useCallback(async()=>{let q=G.client.type!=="disabled";try{if(await l0(G.name),G.config.type==="claudeai-proxy")m("tengu_claudeai_mcp_toggle",{new_state:q?"disabled":"enabled"});z()}catch(F){Z?.(`Failed to ${q?"disable":"enable"} MCP server '${G.name}': ${f0(F)}`)}},[G.client.type,G.config.type,G.name,l0,z,Z]),BP=E.default.useCallback(async()=>{if(G.config.type==="claudeai-proxy")return;N(!0),U(null);let q=new AbortController;R.current=q;try{if(G.isAuthenticated&&G.config)await m0(G.name,G.config,{preserveStepUpState:!0});if(G.config){await qP(G.name,G.config,K,q.signal,{onWaitingForCallback:(w)=>{n0(()=>w)}}),m("tengu_mcp_auth_config_authenticate",{wasAuthenticated:G.isAuthenticated});let F=await Y0(G.name);if(F.client.type==="connected"){let w=X0?`Authentication successful. Reconnected to ${G.name}.`:`Authentication successful. Connected to ${G.name}.`;Z?.(w)}else if(F.client.type==="needs-auth")Z?.("Authentication successful, but server still requires authentication. You may need to manually restart Claude Code.");else s0(G.name,"Reconnection failed after authentication"),Z?.("Authentication successful, but server reconnection failed. You may need to manually restart Claude Code for the changes to take effect.")}}catch(F){if(F instanceof Error&&!(F instanceof ZP))U(F.message)}finally{N(!1),R.current=null,n0(null),Q0("")}},[G.isAuthenticated,G.config,G.name,Z,Y0,X0]),OP=async()=>{if(G.config.type==="claudeai-proxy")return;if(G.config)await m0(G.name,G.config),m("tengu_mcp_auth_config_clear",{}),await C0(G.name,{...G.config,scope:G.scope}),M((q)=>{let F=q.mcp.clients.map((t)=>t.name===G.name?{...t,type:"failed"}:t),w=h0(q.mcp.tools,G.name),d=T0(q.mcp.commands,G.name),Z0=d0(q.mcp.resources,G.name);return{...q,mcp:{...q.mcp,clients:F,tools:w,commands:d,resources:Z0}}}),Z?.(`Authentication cleared for ${G.name}.`)};if(B){let q=G.config.type!=="claudeai-proxy"&&G.config.oauth?.xaa?" Authenticating via your identity provider":" A browser window will open for authentication";return Q(X,{flexDirection:"column",gap:1,padding:1,children:[Q(L,{color:"claude",children:["Authenticating with ",G.name,"…"]}),Q(X,{children:[J(G0,{}),J(L,{children:q})]}),b&&Q(X,{flexDirection:"column",children:[Q(X,{children:[Q(L,{dimColor:!0,children:["If your browser doesn't open automatically, copy this URL manually"," "]}),o?J(L,{color:"success",children:"(Copied!)"}):J(L,{dimColor:!0,children:J(h,{shortcut:"c",action:"copy",parens:!0})})]}),J(F0,{url:b})]}),B&&b&&a0&&Q(X,{flexDirection:"column",marginTop:1,children:[J(L,{dimColor:!0,children:"If the redirect page shows a connection error, paste the URL from your browser's address bar:"}),Q(X,{children:[Q(L,{dimColor:!0,children:["URL ",">"," "]}),J(XP,{value:x0,onChange:Q0,onSubmit:(F)=>{a0(F.trim()),Q0("")},cursorOffset:kP,onChangeCursorOffset:DP,columns:k-8})]})]}),J(X,{marginLeft:3,children:J(L,{dimColor:!0,children:"Return here after authenticating in your browser. Press Esc to go back."})})]})}if(g)return Q(X,{flexDirection:"column",gap:1,padding:1,children:[Q(L,{color:"claude",children:["Authenticating with ",G.name,"…"]}),Q(X,{children:[J(G0,{}),J(L,{children:" A browser window will open for authentication"})]}),j&&Q(X,{flexDirection:"column",children:[Q(X,{children:[Q(L,{dimColor:!0,children:["If your browser doesn't open automatically, copy this URL manually"," "]}),o?J(L,{color:"success",children:"(Copied!)"}):J(L,{dimColor:!0,children:J(h,{shortcut:"c",action:"copy",parens:!0})})]}),J(F0,{url:j})]}),Q(X,{marginLeft:3,flexDirection:"column",children:[Q(L,{color:"permission",children:["Press ",J(L,{bold:!0,children:"Enter"})," after authenticating in your browser."]}),J(L,{dimColor:!0,italic:!0,children:J(p,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"back"})})]})]});if(A)return Q(X,{flexDirection:"column",gap:1,padding:1,children:[Q(L,{color:"claude",children:["Clear authentication for ",G.name]}),l?Q(n,{children:[J(L,{children:'Find the MCP server in the browser and click "Disconnect".'}),i&&Q(X,{flexDirection:"column",children:[Q(X,{children:[Q(L,{dimColor:!0,children:["If your browser didn't open automatically, copy this URL manually"," "]}),o?J(L,{color:"success",children:"(Copied!)"}):J(L,{dimColor:!0,children:J(h,{shortcut:"c",action:"copy",parens:!0})})]}),J(F0,{url:i})]}),Q(X,{marginLeft:3,flexDirection:"column",children:[Q(L,{color:"permission",children:["Press ",J(L,{bold:!0,children:"Enter"})," when done."]}),J(L,{dimColor:!0,italic:!0,children:J(p,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"back"})})]})]}):Q(n,{children:[J(L,{children:'This will open claude.ai in the browser. Find the MCP server in the list and click "Disconnect".'}),Q(X,{marginLeft:3,flexDirection:"column",children:[Q(L,{color:"permission",children:["Press ",J(L,{bold:!0,children:"Enter"})," to open the browser."]}),J(L,{dimColor:!0,italic:!0,children:J(p,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"back"})})]})]})]});if(V)return Q(X,{flexDirection:"column",gap:1,padding:1,children:[Q(L,{color:"text",children:["Connecting to ",J(L,{bold:!0,children:G.name}),"…"]}),Q(X,{children:[J(G0,{}),J(L,{children:" Establishing connection to MCP server"})]}),J(L,{dimColor:!0,children:"This may take a few moments."})]});let I=[];if(G.client.type==="disabled")I.push({label:"Enable",value:"toggle-enabled"});if(G.client.type==="connected"&&P>0)I.push({label:"View tools",value:"tools"});if(G.config.type==="claudeai-proxy"){if(G.client.type==="connected")I.push({label:"Clear authentication",value:"claudeai-clear-auth"});else if(G.client.type!=="disabled")I.push({label:"Authenticate",value:"claudeai-auth"})}else{if(X0)I.push({label:"Re-authenticate",value:"reauth"}),I.push({label:"Clear authentication",value:"clear-auth"});if(!X0)I.push({label:"Authenticate",value:"auth"})}if(G.client.type!=="disabled"){if(G.client.type!=="needs-auth")I.push({label:"Reconnect",value:"reconnectMcpServer"});I.push({label:"Disable",value:"toggle-enabled"})}if(I.length===0)I.push({label:"Back",value:"back"});return Q(X,{flexDirection:"column",children:[Q(X,{flexDirection:"column",paddingX:1,borderStyle:f?void 0:"round",children:[J(X,{marginBottom:1,children:Q(L,{bold:!0,children:[RP," MCP Server"]})}),Q(X,{flexDirection:"column",gap:0,children:[Q(X,{children:[J(L,{bold:!0,children:"Status: "}),G.client.type==="disabled"?Q(L,{children:[C("inactive",H)(_.radioOff)," disabled"]}):G.client.type==="connected"?Q(L,{children:[C("success",H)(_.tick)," connected"]}):G.client.type==="pending"?Q(n,{children:[J(L,{dimColor:!0,children:_.radioOff}),J(L,{children:" connecting…"})]}):G.client.type==="needs-auth"?Q(L,{children:[C("warning",H)(_.triangleUpOutline)," needs authentication"]}):Q(L,{children:[C("error",H)(_.cross)," failed"]})]}),G.transport!=="claudeai-proxy"&&Q(X,{children:[J(L,{bold:!0,children:"Auth: "}),X0?Q(L,{children:[C("success",H)(_.tick)," authenticated"]}):Q(L,{children:[C("error",H)(_.cross)," not authenticated"]})]}),Q(X,{children:[J(L,{bold:!0,children:"URL: "}),J(L,{dimColor:!0,children:G.config.url})]}),Q(X,{children:[J(L,{bold:!0,children:"Config location: "}),J(L,{dimColor:!0,children:R0(G.scope)})]}),G.client.type==="connected"&&J(K0,{serverToolsCount:P,serverPromptsCount:NP,serverResourcesCount:S.resources[G.name]?.length||0}),G.client.type==="connected"&&P>0&&Q(X,{children:[J(L,{bold:!0,children:"Tools: "}),Q(L,{dimColor:!0,children:[P," tools"]})]})]}),$&&J(X,{marginTop:1,children:Q(L,{color:"error",children:["Error: ",$]})}),I.length>0&&J(X,{marginTop:1,children:J(L0,{options:I,onChange:async(q)=>{switch(q){case"tools":Y();break;case"auth":case"reauth":await BP();break;case"clear-auth":await OP();break;case"claudeai-auth":await UP();break;case"claudeai-clear-auth":bP();break;case"reconnectMcpServer":D(!0);try{let F=await Y0(G.name);if(G.config.type==="claudeai-proxy")m("tengu_claudeai_mcp_reconnect",{success:F.client.type==="connected"});let{message:w}=E0(F,G.name);Z?.(w)}catch(F){if(G.config.type==="claudeai-proxy")m("tengu_claudeai_mcp_reconnect",{success:!1});Z?.(V0(F,G.name))}finally{D(!1)}break;case"toggle-enabled":await yP();break;case"back":z();break}},onCancel:z})})]}),J(X,{marginTop:1,children:J(L,{dimColor:!0,italic:!0,children:W.pending?Q(n,{children:["Press ",W.keyName," again to exit"]}):Q(r,{children:[J(h,{shortcut:"↑↓",action:"navigate"}),J(h,{shortcut:"Enter",action:"select"}),J(p,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"back"})]})})})]})}var E;var $P=P0(()=>{r0();IP();_P();LP();hP();AP();q0();TP();CP();pP();VP();u0();j0();gP();dP();t0();SP();p0();w0();i0();W0();c0();YP();mP();_0();S0();a();E=e($0(),1)});function uG({server:G,serverToolsCount:P,onViewTools:Y,onCancel:z,onComplete:Z,borderless:f=!1}){let[H]=k0(),W=D0(),k=J0((V)=>V.mcp),B=N0(),N=U0(),[$,U]=b0.useState(!1),S=b0.default.useCallback(async()=>{let V=G.client.type!=="disabled";try{await N(G.name),z()}catch(D){Z(`Failed to ${V?"disable":"enable"} MCP server '${G.name}': ${f0(D)}`)}},[G.client.type,G.name,N,z,Z]),M=H0(String(G.name)),b=M0(k.commands,G.name).length,K=[];if(G.client.type!=="disabled"&&P>0)K.push({label:"View tools",value:"tools"});if(G.client.type!=="disabled")K.push({label:"Reconnect",value:"reconnectMcpServer"});if(K.push({label:G.client.type!=="disabled"?"Disable":"Enable",value:"toggle-enabled"}),K.length===0)K.push({label:"Back",value:"back"});if($)return Q(X,{flexDirection:"column",gap:1,padding:1,children:[Q(L,{color:"text",children:["Reconnecting to ",J(L,{bold:!0,children:G.name})]}),Q(X,{children:[J(G0,{}),J(L,{children:" Restarting MCP server process"})]}),J(L,{dimColor:!0,children:"This may take a few moments."})]});return Q(X,{flexDirection:"column",children:[Q(X,{flexDirection:"column",paddingX:1,borderStyle:f?void 0:"round",children:[J(X,{marginBottom:1,children:Q(L,{bold:!0,children:[M," MCP Server"]})}),Q(X,{flexDirection:"column",gap:0,children:[Q(X,{children:[J(L,{bold:!0,children:"Status: "}),G.client.type==="disabled"?Q(L,{children:[C("inactive",H)(_.radioOff)," disabled"]}):G.client.type==="connected"?Q(L,{children:[C("success",H)(_.tick)," connected"]}):G.client.type==="pending"?Q(n,{children:[J(L,{dimColor:!0,children:_.radioOff}),J(L,{children:" connecting…"})]}):Q(L,{children:[C("error",H)(_.cross)," failed"]})]}),Q(X,{children:[J(L,{bold:!0,children:"Command: "}),J(L,{dimColor:!0,children:G.config.command})]}),G.config.args&&G.config.args.length>0&&Q(X,{children:[J(L,{bold:!0,children:"Args: "}),J(L,{dimColor:!0,children:G.config.args.join(" ")})]}),Q(X,{children:[J(L,{bold:!0,children:"Config location: "}),J(L,{dimColor:!0,children:R0(WP(G.name)?.scope??"dynamic")})]}),G.client.type==="connected"&&J(K0,{serverToolsCount:P,serverPromptsCount:b,serverResourcesCount:k.resources[G.name]?.length||0}),G.client.type==="connected"&&P>0&&Q(X,{children:[J(L,{bold:!0,children:"Tools: "}),Q(L,{dimColor:!0,children:[P," tools"]})]})]}),K.length>0&&J(X,{marginTop:1,children:J(L0,{options:K,onChange:async(V)=>{if(V==="tools")Y();else if(V==="reconnectMcpServer"){U(!0);try{let D=await B(G.name),{message:R}=E0(D,G.name);Z?.(R)}catch(D){Z?.(V0(D,G.name))}finally{U(!1)}}else if(V==="toggle-enabled")await S();else if(V==="back")z()},onCancel:z})})]}),J(X,{marginTop:1,children:J(L,{dimColor:!0,italic:!0,children:W.pending?Q(n,{children:["Press ",W.keyName," again to exit"]}):Q(r,{children:[J(h,{shortcut:"↑↓",action:"navigate"}),J(h,{shortcut:"Enter",action:"select"}),J(p,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"back"})]})})})]})}var b0;var jP=P0(()=>{r0();LP();q0();cP();VP();u0();j0();t0();p0();w0();i0();W0();c0();YP();_0();S0();a();b0=e($0(),1)});function tG(G){let P=FP.c(44),{tool:Y,server:z,onBack:Z}=G,[f,H]=v0.default.useState(""),W,k;if(P[0]!==z.name||P[1]!==Y){k=y0(Y.name,z.name);let s=Y.userFacingName?Y.userFacingName({}):k;W=B0(s),P[0]=z.name,P[1]=Y,P[2]=W,P[3]=k}else W=P[2],k=P[3];let B=W,N;if(P[4]!==Y)N=Y.isReadOnly?.({})??!1,P[4]=Y,P[5]=N;else N=P[5];let $=N,U;if(P[6]!==Y)U=Y.isDestructive?.({})??!1,P[6]=Y,P[7]=U;else U=P[7];let S=U,M;if(P[8]!==Y)M=Y.isOpenWorld?.({})??!1,P[8]=Y,P[9]=M;else M=P[9];let b=M,K,V;if(P[10]!==Y)K=()=>{(async function(){try{let O=await Y.description({},{isNonInteractiveSession:!1,toolPermissionContext:{mode:"default",additionalWorkingDirectories:new Map,alwaysAllowRules:{},alwaysDenyRules:{},alwaysAskRules:{},isBypassPermissionsModeAvailable:!1},tools:[]});H(O)}catch{H("Failed to load description")}})()},V=[Y],P[10]=Y,P[11]=K,P[12]=V;else K=P[11],V=P[12];v0.default.useEffect(K,V);let D;if(P[13]!==$)D=$&&J(L,{color:"success",children:" [read-only]"}),P[13]=$,P[14]=D;else D=P[14];let R;if(P[15]!==S)R=S&&J(L,{color:"error",children:" [destructive]"}),P[15]=S,P[16]=R;else R=P[16];let g;if(P[17]!==b)g=b&&J(L,{dimColor:!0,children:" [open-world]"}),P[17]=b,P[18]=g;else g=P[18];let c;if(P[19]!==B||P[20]!==D||P[21]!==R||P[22]!==g)c=Q(n,{children:[B,D,R,g]}),P[19]=B,P[20]=D,P[21]=R,P[22]=g,P[23]=c;else c=P[23];let j=c,T;if(P[24]===Symbol.for("react.memo_cache_sentinel"))T=J(L,{bold:!0,children:"Tool name: "}),P[24]=T;else T=P[24];let A;if(P[25]!==k)A=Q(X,{children:[T,J(L,{dimColor:!0,children:k})]}),P[25]=k,P[26]=A;else A=P[26];let y;if(P[27]===Symbol.for("react.memo_cache_sentinel"))y=J(L,{bold:!0,children:"Full name: "}),P[27]=y;else y=P[27];let i;if(P[28]!==Y.name)i=Q(X,{children:[y,J(L,{dimColor:!0,children:Y.name})]}),P[28]=Y.name,P[29]=i;else i=P[29];let u;if(P[30]!==f)u=f&&Q(X,{flexDirection:"column",marginTop:1,children:[J(L,{bold:!0,children:"Description:"}),J(L,{wrap:"wrap",children:f})]}),P[30]=f,P[31]=u;else u=P[31];let l;if(P[32]!==Y.inputJSONSchema)l=Y.inputJSONSchema&&Y.inputJSONSchema.properties&&Object.keys(Y.inputJSONSchema.properties).length>0&&Q(X,{flexDirection:"column",marginTop:1,children:[J(L,{bold:!0,children:"Parameters:"}),J(X,{marginLeft:2,flexDirection:"column",children:Object.entries(Y.inputJSONSchema.properties).map((s)=>{let[x,O]=s,Q0=Y.inputJSONSchema?.required?.includes(x);return Q(L,{children:["• ",x,Q0&&J(L,{dimColor:!0,children:" (required)"}),":"," ",J(L,{dimColor:!0,children:typeof O==="object"&&O&&"type"in O?String(O.type):"unknown"}),typeof O==="object"&&O&&"description"in O&&Q(L,{dimColor:!0,children:[" - ",String(O.description)]})]},x)})})]}),P[32]=Y.inputJSONSchema,P[33]=l;else l=P[33];let v;if(P[34]!==A||P[35]!==i||P[36]!==u||P[37]!==l)v=Q(X,{flexDirection:"column",children:[A,i,u,l]}),P[34]=A,P[35]=i,P[36]=u,P[37]=l,P[38]=v;else v=P[38];let o;if(P[39]!==Z||P[40]!==z.name||P[41]!==v||P[42]!==j)o=J(O0,{title:j,subtitle:z.name,onCancel:Z,inputGuide:iP,children:v}),P[39]=Z,P[40]=z.name,P[41]=v,P[42]=j,P[43]=o;else o=P[43];return o}function iP(G){return G.pending?Q(L,{children:["Press ",G.keyName," again to exit"]}):J(p,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"go back"})}var FP,v0;var uP=P0(()=>{q0();KP();w0();EP();a();FP=e(I0(),1),v0=e($0(),1)});function VJ(G){let P=HP.c(21),{server:Y,onSelectTool:z,onBack:Z}=G,f=J0(xP),H;P:{if(Y.client.type!=="connected"){let V;if(P[0]===Symbol.for("react.memo_cache_sentinel"))V=[],P[0]=V;else V=P[0];H=V;break P}let K;if(P[1]!==f||P[2]!==Y.name)K=fP(f,Y.name),P[1]=f,P[2]=Y.name,P[3]=K;else K=P[3];H=K}let W=H,k;if(P[4]!==Y.name||P[5]!==W){let K;if(P[7]!==Y.name)K=(V,D)=>{let R=y0(V.name,Y.name),g=V.userFacingName?V.userFacingName({}):R,c=B0(g),j=V.isReadOnly?.({})??!1,T=V.isDestructive?.({})??!1,A=V.isOpenWorld?.({})??!1,y=[];if(j)y.push("read-only");if(T)y.push("destructive");if(A)y.push("open-world");return{label:c,value:D.toString(),description:y.length>0?y.join(", "):void 0,descriptionColor:T?"error":j?"success":void 0}},P[7]=Y.name,P[8]=K;else K=P[8];k=W.map(K),P[4]=Y.name,P[5]=W,P[6]=k}else k=P[6];let B=k,N=`Tools for ${Y.name}`,$=W.length,U;if(P[9]!==W.length)U=zP(W.length,"tool"),P[9]=W.length,P[10]=U;else U=P[10];let S=`${$} ${U}`,M;if(P[11]!==Z||P[12]!==z||P[13]!==W||P[14]!==B)M=W.length===0?J(L,{dimColor:!0,children:"No tools available"}):J(L0,{options:B,onChange:(K)=>{let V=parseInt(K),D=W[V];if(D)z(D,V)},onCancel:Z}),P[11]=Z,P[12]=z,P[13]=W,P[14]=B,P[15]=M;else M=P[15];let b;if(P[16]!==Z||P[17]!==N||P[18]!==S||P[19]!==M)b=J(O0,{title:N,subtitle:S,onCancel:Z,inputGuide:vP,children:M}),P[16]=Z,P[17]=N,P[18]=S,P[19]=M,P[20]=b;else b=P[20];return b}function vP(G){return G.pending?Q(L,{children:["Press ",G.keyName," again to exit"]}):Q(r,{children:[J(h,{shortcut:"↑↓",action:"navigate"}),J(h,{shortcut:"Enter",action:"select"}),J(p,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"back"})]})}function xP(G){return G.mcp.tools}var HP;var aP=P0(()=>{q0();KP();u0();j0();p0();w0();i0();W0();EP();c0();a();HP=e(I0(),1)});
|
|
2
|
+
export{bG as kf,$P as lf,uG as mf,jP as nf,tG as of,uP as pf,VJ as qf,aP as rf};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{$u as Wq,VP as a,XP as Uq,YE as h,Yu as u,Zu as g,_E as Fq,an as S,bn as Zq,cn as V,cv as c,dn as $q,ev as T,fv as _q,gn as p,gv as r,hn as zq,hv as Vq}from"./cli-0.6.6-23snct9d.mjs";import{$V as Nq,_V as w,kW as j,lW as Qq,mW as m,oW as Xq,rW as d,sW as Yq}from"./cli-0.6.6-1a0fnhh0.mjs";import{JY as J,LY as N,oZ as Lq,xX as v,yX as H,zX as y}from"./cli-0.6.6-en2sexw5.mjs";import{t1 as _,u1 as q,v1 as G,w1 as B}from"./cli-0.6.6-arvcw19g.mjs";import{x1 as Jq}from"./cli-0.6.6-c267ckfv.mjs";import{Waa as b,hba as Gq}from"./cli-0.6.6-q1j20ysc.mjs";import{spa as e,wpa as qq}from"./cli-0.6.6-py5db2ds.mjs";function mq({onThemeSelect:F,showIntroText:I=!1,helpText:X="",showHelpTextBelow:O=!1,hideEscToCancel:x=!1,skipExitHandling:$=!1,onCancel:A}){let[U]=v(),k=H(),{columns:l}=w(),Y=Q.useMemo(()=>c(),[]),Z=Y===null?T(U):null,{setPreviewTheme:K,savePreview:M,cancelPreview:R}=y(),z=u((L)=>L.settings.syntaxHighlightingDisabled??!1),E=g();j("ThemePicker",!0);let W=S("theme:toggleSyntaxHighlighting","ThemePicker","ctrl+t"),i=Q.useCallback(()=>{if(Y===null){let L=!z;b("userSettings",{syntaxHighlightingDisabled:L}),E((P)=>({...P,settings:{...P.settings,syntaxHighlightingDisabled:L}}))}},[Y,z,E]);m("theme:toggleSyntaxHighlighting",i,{context:"ThemePicker"});let f=d($?()=>{}:void 0),D=Q.useMemo(()=>[...[],{label:"Dark mode",value:"dark"},{label:"Light mode",value:"light"},{label:"Dark mode (colorblind-friendly)",value:"dark-daltonized"},{label:"Light mode (colorblind-friendly)",value:"light-daltonized"},{label:"Dark mode (ANSI colors only)",value:"dark-ansi"},{label:"Light mode (ANSI colors only)",value:"light-ansi"},{label:"Terminal default (inherit colors)",value:"terminal"},{label:"Dracula",value:"dracula"},{label:"Catppuccin Mocha (dark)",value:"catppuccin-mocha"},{label:"Catppuccin Latte (light)",value:"catppuccin-latte"},{label:"Tokyo Night",value:"tokyo-night"},{label:"Nord",value:"nord"},{label:"Gruvbox Dark",value:"gruvbox-dark"}],[]),o=Q.useCallback((L)=>{K(L)},[K]),n=Q.useCallback((L)=>{M(),F(L)},[M,F]),s=Q.useCallback(()=>{if(R(),$)A?.();else a(0)},[R,A,$]),t=Y==="env"?`Syntax highlighting disabled (via CLAUDE_CODE_SYNTAX_HIGHLIGHT=${process.env.CLAUDE_CODE_SYNTAX_HIGHLIGHT})`:z?`Syntax highlighting disabled (${W} to enable)`:Z?`Syntax theme: ${Z.theme}${Z.source?` (from ${Z.source})`:""} (${W} to disable)`:`Syntax highlighting enabled (${W} to disable)`,C=G(J,{flexDirection:"column",gap:1,children:[G(J,{flexDirection:"column",gap:1,children:[I?q(N,{children:"Let's get started."}):q(N,{bold:!0,color:"permission",children:"Theme"}),G(J,{flexDirection:"column",children:[q(N,{bold:!0,children:"Choose the text style that looks best with your terminal"}),X&&!O?q(N,{dimColor:!0,children:X}):null]}),q(h,{options:D,onFocus:o,onChange:n,onCancel:s,visibleOptionCount:D.length,defaultValue:k,defaultFocusValue:k})]}),G(J,{flexDirection:"column",width:"100%",children:[q(J,{flexDirection:"column",borderTop:!0,borderBottom:!0,borderLeft:!1,borderRight:!1,borderStyle:"dashed",borderColor:"subtle",children:q(Iq,{patch:Oq,dim:!1,filePath:"demo.js",firstLine:null,width:l})},U),G(N,{dimColor:!0,children:[" ",t]})]})]});if(!I)return G(_,{children:[q(J,{flexDirection:"column",children:C}),O&&X?q(J,{marginLeft:3,children:q(N,{dimColor:!0,children:X})}):null,!x?q(J,{marginTop:1,children:q(N,{dimColor:!0,italic:!0,children:f.pending?G(_,{children:["Press ",f.keyName," again to exit"]}):G(p,{children:[q(V,{shortcut:"Enter",action:"select"}),q(V,{shortcut:"Esc",action:"cancel"})]})})}):null]});return C}var Q,Iq,Oq;var Aq=qq(()=>{Yq();Nq();Lq();Qq();Xq();Zq();Wq();Uq();Gq();Fq();zq();$q();_q();Vq();B();Q=e(Jq(),1),Iq=r,Oq={oldStart:1,newStart:1,oldLines:3,newLines:3,lines:[" function greet() {",'- console.log("Hello, World!");','+ console.log("Hello, Claude!");'," }"]}});
|
|
2
|
+
export{mq as Mg,Aq as Ng};
|