@claudiolabs/claudin 1.1.22 → 1.1.24
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunks/AgentTool-1.1.24-qv4fnna8.mjs +1 -0
- package/dist/chunks/App-1.1.24-say2rpmy.mjs +1 -0
- package/dist/chunks/ApproveApiKey-1.1.24-gm23618e.mjs +1 -0
- package/dist/chunks/AssistantSessionChooser-1.1.24-86rnm17k.mjs +1 -0
- package/dist/chunks/AutoModeOptInDialog-1.1.24-xpvbmbs3.mjs +1 -0
- package/dist/chunks/BypassPermissionsModeDialog-1.1.24-er5kqrm5.mjs +1 -0
- package/dist/chunks/ClaudeMdExternalIncludesDialog-1.1.24-vqcj9ryy.mjs +1 -0
- package/dist/chunks/ConsoleOAuthFlow-1.1.24-nxtt3gvy.mjs +1 -0
- package/dist/chunks/DiffDialog-1.1.24-cn4z7xcf.mjs +6 -0
- package/dist/chunks/Doctor-1.1.24-nq687w3y.mjs +1 -0
- package/dist/chunks/ExplorerDialog-1.1.24-aajhejtf.mjs +6 -0
- package/dist/chunks/ITermBackend-1.1.24-t998qy29.mjs +1 -0
- package/dist/chunks/InvalidConfigDialog-1.1.24-r5a5gmqd.mjs +1 -0
- package/dist/chunks/InvalidSettingsDialog-1.1.24-pfhn03af.mjs +1 -0
- package/dist/chunks/MigrationDialog-1.1.24-bdj4skrs.mjs +1 -0
- package/dist/chunks/Onboarding-1.1.24-2fjwdtrt.mjs +1 -0
- package/dist/chunks/ProviderManager-1.1.24-hk5fjxsy.mjs +1 -0
- package/dist/chunks/REPL-1.1.24-c424ewnm.mjs +1 -0
- package/dist/chunks/ResumeConversation-1.1.24-6vrvymt3.mjs +1 -0
- package/dist/chunks/SnapshotUpdateDialog-1.1.24-4bnhs3c5.mjs +1 -0
- package/dist/chunks/TeleportProgress-1.1.24-2my71fq7.mjs +1 -0
- package/dist/chunks/TeleportRepoMismatchDialog-1.1.24-jk3wwkbf.mjs +1 -0
- package/dist/chunks/TeleportResumeWrapper-1.1.24-j2b1t7n2.mjs +1 -0
- package/dist/chunks/TmuxBackend-1.1.24-xtsgfdrz.mjs +9 -0
- package/dist/chunks/ToolSearchTool-1.1.24-v916xcsm.mjs +1 -0
- package/dist/chunks/TrustDialog-1.1.24-334mbya2.mjs +1 -0
- package/dist/chunks/activeProvider-1.1.24-ha5w75qf.mjs +1 -0
- package/dist/chunks/add-dir-1.1.24-5ddz7jxk.mjs +1 -0
- package/dist/chunks/agentTypes-1.1.24-zyfmeacn.mjs +1 -0
- package/dist/chunks/agents-1.1.24-3nesz6hb.mjs +110 -0
- package/dist/chunks/agents-1.1.24-7vbfmsmd.mjs +3 -0
- package/dist/chunks/api-1.1.24-dkqpat59.mjs +1 -0
- package/dist/chunks/asciicast-1.1.24-d40wfrpr.mjs +1 -0
- package/dist/chunks/assistant-1.1.24-jj35h9kw.mjs +1 -0
- package/dist/chunks/auth-1.1.24-e4nfc4rk.mjs +1 -0
- package/dist/chunks/auth-1.1.24-fjhrv05m.mjs +1 -0
- package/dist/chunks/autoMode-1.1.24-tdgcdezx.mjs +52 -0
- package/dist/chunks/autoModeSetup-1.1.24-qdp17k5x.mjs +44 -0
- package/dist/chunks/autoUpdater-1.1.24-zp05t0xp.mjs +1 -0
- package/dist/chunks/backgroundHousekeeping-1.1.24-hcarqdg1.mjs +1 -0
- package/dist/chunks/branch-1.1.24-3df7e69c.mjs +4 -0
- package/dist/chunks/bridge-1.1.24-2ybb995s.mjs +2 -0
- package/dist/chunks/bridgeConfig-1.1.24-7y8hnb44.mjs +1 -0
- package/dist/chunks/bridgeEnabled-1.1.24-4z88m0dk.mjs +1 -0
- package/dist/chunks/bridgeMain-1.1.24-5vh38zjk.mjs +88 -0
- package/dist/chunks/bridgePointer-1.1.24-e431wg6e.mjs +1 -0
- package/dist/chunks/btw-1.1.24-c9cx5x03.mjs +1 -0
- package/dist/chunks/buddy-1.1.24-sbda0mvf.mjs +3 -0
- package/dist/chunks/cache-probe-1.1.24-qxe2hv8y.mjs +21 -0
- package/dist/chunks/cacheStats-1.1.24-8rgatdb3.mjs +4 -0
- package/dist/chunks/caches-1.1.24-zj2axnpf.mjs +1 -0
- package/dist/chunks/cd-1.1.24-f7dgvfpq.mjs +3 -0
- package/dist/chunks/claudeDesktop-1.1.24-7ws7tbt6.mjs +1 -0
- package/dist/chunks/claudemd-1.1.24-71y4hxrm.mjs +1 -0
- package/dist/chunks/clear-1.1.24-njwpqwdd.mjs +1 -0
- package/dist/chunks/clearTerminal-1.1.24-f6wcsvqq.mjs +1 -0
- package/dist/chunks/cli-1.1.24-0jwj33ps.mjs +2 -0
- package/dist/chunks/cli-1.1.24-0qefwnmv.mjs +2 -0
- package/dist/chunks/cli-1.1.24-0zt6ghdg.mjs +2 -0
- package/dist/chunks/cli-1.1.24-12hfxy63.mjs +12 -0
- package/dist/chunks/cli-1.1.24-14842nvc.mjs +2 -0
- package/dist/chunks/cli-1.1.24-190psky8.mjs +2 -0
- package/dist/chunks/cli-1.1.24-1kpad5gy.mjs +2 -0
- package/dist/chunks/cli-1.1.24-1m0md9q7.mjs +2 -0
- package/dist/chunks/cli-1.1.24-1mx8wjec.mjs +2 -0
- package/dist/chunks/cli-1.1.24-228jgyfg.mjs +2 -0
- package/dist/chunks/cli-1.1.24-241znxsf.mjs +2 -0
- package/dist/chunks/cli-1.1.24-25bjk4fa.mjs +2 -0
- package/dist/chunks/cli-1.1.24-2d5h000x.mjs +2 -0
- package/dist/chunks/cli-1.1.24-2g0372f8.mjs +2 -0
- package/dist/chunks/cli-1.1.24-2md121ma.mjs +2 -0
- package/dist/chunks/cli-1.1.24-2qkkzsk3.mjs +5456 -0
- package/dist/chunks/cli-1.1.24-2yjpqx2j.mjs +2 -0
- package/dist/chunks/cli-1.1.24-308y9m4j.mjs +2 -0
- package/dist/chunks/cli-1.1.24-32h2wd2e.mjs +3 -0
- package/dist/chunks/cli-1.1.24-36c9cxby.mjs +25 -0
- package/dist/chunks/cli-1.1.24-3cgaxth4.mjs +2 -0
- package/dist/chunks/cli-1.1.24-3n53gv32.mjs +2 -0
- package/dist/chunks/cli-1.1.24-3n6e2e3w.mjs +12 -0
- package/dist/chunks/cli-1.1.24-3w12t3c9.mjs +2 -0
- package/dist/chunks/cli-1.1.24-47657dtc.mjs +2 -0
- package/dist/chunks/cli-1.1.24-4cre60p8.mjs +2 -0
- package/dist/chunks/cli-1.1.24-4p3bjzm5.mjs +2 -0
- package/dist/chunks/cli-1.1.24-4t3rdp3k.mjs +2 -0
- package/dist/chunks/cli-1.1.24-4wpk3xd9.mjs +2 -0
- package/dist/chunks/cli-1.1.24-58gfq4p1.mjs +2 -0
- package/dist/chunks/cli-1.1.24-5jpkct15.mjs +2 -0
- package/dist/chunks/cli-1.1.24-5pkkmh85.mjs +2 -0
- package/dist/chunks/cli-1.1.24-5r5ayhj5.mjs +2 -0
- package/dist/chunks/cli-1.1.24-5vw5z579.mjs +2 -0
- package/dist/chunks/cli-1.1.24-64d8tfjb.mjs +2 -0
- package/dist/chunks/cli-1.1.24-6gj496xe.mjs +4 -0
- package/dist/chunks/cli-1.1.24-6hqn628p.mjs +2 -0
- package/dist/chunks/cli-1.1.24-6mm894jd.mjs +5 -0
- package/dist/chunks/cli-1.1.24-6pgc4c5x.mjs +2 -0
- package/dist/chunks/cli-1.1.24-6ptbgma9.mjs +6 -0
- package/dist/chunks/cli-1.1.24-6rneem3p.mjs +2 -0
- package/dist/chunks/cli-1.1.24-6tjp5zv1.mjs +2 -0
- package/dist/chunks/cli-1.1.24-707k0kc7.mjs +133 -0
- package/dist/chunks/cli-1.1.24-7ae9t2qz.mjs +2 -0
- package/dist/chunks/cli-1.1.24-7ahqssha.mjs +2 -0
- package/dist/chunks/cli-1.1.24-7ax9c4aj.mjs +2 -0
- package/dist/chunks/cli-1.1.24-7ga8r482.mjs +2 -0
- package/dist/chunks/cli-1.1.24-7ht46b9h.mjs +4 -0
- package/dist/chunks/cli-1.1.24-7m3kth8w.mjs +2 -0
- package/dist/chunks/cli-1.1.24-7qe2p4yb.mjs +2 -0
- package/dist/chunks/cli-1.1.24-7ymj1nkq.mjs +2 -0
- package/dist/chunks/cli-1.1.24-8d439hr1.mjs +2 -0
- package/dist/chunks/cli-1.1.24-8fbhkz2k.mjs +7 -0
- package/dist/chunks/cli-1.1.24-8n6b217h.mjs +50 -0
- package/dist/chunks/cli-1.1.24-8nrya8sx.mjs +2 -0
- package/dist/chunks/cli-1.1.24-8s7nf1y6.mjs +2 -0
- package/dist/chunks/cli-1.1.24-8xvf355a.mjs +2 -0
- package/dist/chunks/cli-1.1.24-8yspjjkp.mjs +2 -0
- package/dist/chunks/cli-1.1.24-8zb03vbp.mjs +2 -0
- package/dist/chunks/cli-1.1.24-92s2r0nt.mjs +2 -0
- package/dist/chunks/cli-1.1.24-93bhcjrs.mjs +2 -0
- package/dist/chunks/cli-1.1.24-9414cm38.mjs +2 -0
- package/dist/chunks/cli-1.1.24-985tmwb6.mjs +2 -0
- package/dist/chunks/cli-1.1.24-98nyrm5c.mjs +3 -0
- package/dist/chunks/cli-1.1.24-9dnr05fm.mjs +2 -0
- package/dist/chunks/cli-1.1.24-9grm6x6h.mjs +2 -0
- package/dist/chunks/cli-1.1.24-9jq4gf5s.mjs +2 -0
- package/dist/chunks/cli-1.1.24-9tw7bj9k.mjs +58 -0
- package/dist/chunks/cli-1.1.24-a33s2dcr.mjs +2 -0
- package/dist/chunks/cli-1.1.24-a6q6r9em.mjs +2 -0
- package/dist/chunks/cli-1.1.24-aaym95m1.mjs +2 -0
- package/dist/chunks/cli-1.1.24-abyr5pge.mjs +2 -0
- package/dist/chunks/cli-1.1.24-agq0y77k.mjs +9 -0
- package/dist/chunks/cli-1.1.24-awf7k3ez.mjs +4 -0
- package/dist/chunks/cli-1.1.24-b3nksc62.mjs +2 -0
- package/dist/chunks/cli-1.1.24-bd6f0h85.mjs +2 -0
- package/dist/chunks/cli-1.1.24-bhe5cv5z.mjs +2 -0
- package/dist/chunks/cli-1.1.24-bjbqxwc9.mjs +2 -0
- package/dist/chunks/cli-1.1.24-bnm1yphs.mjs +2 -0
- package/dist/chunks/cli-1.1.24-bnyxg0c8.mjs +2 -0
- package/dist/chunks/cli-1.1.24-bph6jjd7.mjs +4 -0
- package/dist/chunks/cli-1.1.24-bskn8qpc.mjs +2 -0
- package/dist/chunks/cli-1.1.24-c0j54zba.mjs +25 -0
- package/dist/chunks/cli-1.1.24-c1c7arb3.mjs +2 -0
- package/dist/chunks/cli-1.1.24-c7007hz6.mjs +2 -0
- package/dist/chunks/cli-1.1.24-c80wbwvr.mjs +2 -0
- package/dist/chunks/cli-1.1.24-chach6xd.mjs +39 -0
- package/dist/chunks/cli-1.1.24-cjkjb1w0.mjs +4 -0
- package/dist/chunks/cli-1.1.24-ctw3hzrp.mjs +2 -0
- package/dist/chunks/cli-1.1.24-d371v1bp.mjs +42 -0
- package/dist/chunks/cli-1.1.24-dt22ehz1.mjs +18 -0
- package/dist/chunks/cli-1.1.24-dw6eynz7.mjs +16 -0
- package/dist/chunks/cli-1.1.24-e21q73az.mjs +2 -0
- package/dist/chunks/cli-1.1.24-e960m296.mjs +2 -0
- package/dist/chunks/cli-1.1.24-eh4c00hd.mjs +4 -0
- package/dist/chunks/cli-1.1.24-ex7hr389.mjs +3 -0
- package/dist/chunks/cli-1.1.24-ez9nx0pe.mjs +133 -0
- package/dist/chunks/cli-1.1.24-f0pc1fm3.mjs +2 -0
- package/dist/chunks/cli-1.1.24-f2exw52y.mjs +2 -0
- package/dist/chunks/cli-1.1.24-f942w88t.mjs +2 -0
- package/dist/chunks/cli-1.1.24-fkkcnvap.mjs +18 -0
- package/dist/chunks/cli-1.1.24-fqh8r338.mjs +2 -0
- package/dist/chunks/cli-1.1.24-ftgtm0ys.mjs +2 -0
- package/dist/chunks/cli-1.1.24-fwb0d06k.mjs +34 -0
- package/dist/chunks/cli-1.1.24-gb39akdj.mjs +2 -0
- package/dist/chunks/cli-1.1.24-gbya20sv.mjs +2 -0
- package/dist/chunks/cli-1.1.24-ghegqjt7.mjs +2 -0
- package/dist/chunks/cli-1.1.24-gm25g2rw.mjs +2 -0
- package/dist/chunks/cli-1.1.24-hbp5ttza.mjs +2 -0
- package/dist/chunks/cli-1.1.24-hbvsy3cq.mjs +2 -0
- package/dist/chunks/cli-1.1.24-hhgxzt7m.mjs +4 -0
- package/dist/chunks/cli-1.1.24-hmzgqyyq.mjs +24 -0
- package/dist/chunks/cli-1.1.24-hty94kzp.mjs +2 -0
- package/dist/chunks/cli-1.1.24-jetxd54w.mjs +2 -0
- package/dist/chunks/cli-1.1.24-jm1y3v0c.mjs +2 -0
- package/dist/chunks/cli-1.1.24-jm2wjmkx.mjs +3 -0
- package/dist/chunks/cli-1.1.24-jnksvjkj.mjs +3 -0
- package/dist/chunks/cli-1.1.24-jrvf41s6.mjs +2 -0
- package/dist/chunks/cli-1.1.24-k1dhj122.mjs +2 -0
- package/dist/chunks/cli-1.1.24-k2cach52.mjs +2 -0
- package/dist/chunks/cli-1.1.24-kfzxwy9d.mjs +2 -0
- package/dist/chunks/cli-1.1.24-m6pr9whf.mjs +2 -0
- package/dist/chunks/cli-1.1.24-m70g3zj4.mjs +21 -0
- package/dist/chunks/cli-1.1.24-m8jww9mz.mjs +2 -0
- package/dist/chunks/cli-1.1.24-mgndv90z.mjs +24 -0
- package/dist/chunks/cli-1.1.24-mwva78xt.mjs +2 -0
- package/dist/chunks/cli-1.1.24-myqjptqw.mjs +2 -0
- package/dist/chunks/cli-1.1.24-n18majmw.mjs +8 -0
- package/dist/chunks/cli-1.1.24-n5vwxtj6.mjs +3 -0
- package/dist/chunks/cli-1.1.24-n7r6kv9g.mjs +2 -0
- package/dist/chunks/cli-1.1.24-ne1bt8jx.mjs +2 -0
- package/dist/chunks/cli-1.1.24-nhr9sjgz.mjs +2 -0
- package/dist/chunks/cli-1.1.24-nhz403dg.mjs +3 -0
- package/dist/chunks/cli-1.1.24-nrfpn2q3.mjs +2 -0
- package/dist/chunks/cli-1.1.24-nsggarp4.mjs +2 -0
- package/dist/chunks/cli-1.1.24-nv8d7bav.mjs +2 -0
- package/dist/chunks/cli-1.1.24-p2a545ga.mjs +3 -0
- package/dist/chunks/cli-1.1.24-p71y388t.mjs +2 -0
- package/dist/chunks/cli-1.1.24-pe23qamd.mjs +206 -0
- package/dist/chunks/cli-1.1.24-pgkt8y4z.mjs +6 -0
- package/dist/chunks/cli-1.1.24-pqkmk87x.mjs +2 -0
- package/dist/chunks/cli-1.1.24-pqrtr5rf.mjs +2 -0
- package/dist/chunks/cli-1.1.24-prprq6xe.mjs +2 -0
- package/dist/chunks/cli-1.1.24-pt8vrhq3.mjs +6 -0
- package/dist/chunks/cli-1.1.24-q9qfp0ng.mjs +2 -0
- package/dist/chunks/cli-1.1.24-qn608pma.mjs +2 -0
- package/dist/chunks/cli-1.1.24-qt5m4501.mjs +26 -0
- package/dist/chunks/cli-1.1.24-s0dcztj8.mjs +2 -0
- package/dist/chunks/cli-1.1.24-s241cgaj.mjs +3 -0
- package/dist/chunks/cli-1.1.24-sa4ycqpk.mjs +2 -0
- package/dist/chunks/cli-1.1.24-sdsp22c3.mjs +2 -0
- package/dist/chunks/cli-1.1.24-skqekybx.mjs +2 -0
- package/dist/chunks/cli-1.1.24-sm5pzkcb.mjs +17 -0
- package/dist/chunks/cli-1.1.24-sv60tfze.mjs +2 -0
- package/dist/chunks/cli-1.1.24-swr2gr8m.mjs +9 -0
- package/dist/chunks/cli-1.1.24-t811r68k.mjs +2 -0
- package/dist/chunks/cli-1.1.24-tbzjj2e8.mjs +24 -0
- package/dist/chunks/cli-1.1.24-tpafhmrw.mjs +2 -0
- package/dist/chunks/cli-1.1.24-tvhfdndb.mjs +15 -0
- package/dist/chunks/cli-1.1.24-tyxhhrt7.mjs +2 -0
- package/dist/chunks/cli-1.1.24-v322mn8d.mjs +6 -0
- package/dist/chunks/cli-1.1.24-vandpwa9.mjs +2 -0
- package/dist/chunks/cli-1.1.24-vf59rwy3.mjs +60 -0
- package/dist/chunks/cli-1.1.24-vg493phv.mjs +2 -0
- package/dist/chunks/cli-1.1.24-vmd44jz3.mjs +2 -0
- package/dist/chunks/cli-1.1.24-vprvwjs1.mjs +3 -0
- package/dist/chunks/cli-1.1.24-vvnnh8xs.mjs +17 -0
- package/dist/chunks/cli-1.1.24-vwmxvbv9.mjs +2 -0
- package/dist/chunks/cli-1.1.24-vz1y844w.mjs +2 -0
- package/dist/chunks/cli-1.1.24-w4yh1rwm.mjs +2 -0
- package/dist/chunks/cli-1.1.24-w828y1cd.mjs +2 -0
- package/dist/chunks/cli-1.1.24-wf4vw9fr.mjs +4 -0
- package/dist/chunks/cli-1.1.24-wjy2ctev.mjs +3 -0
- package/dist/chunks/cli-1.1.24-wmzctccq.mjs +4 -0
- package/dist/chunks/cli-1.1.24-wr42vnqf.mjs +2 -0
- package/dist/chunks/cli-1.1.24-wshydefj.mjs +2 -0
- package/dist/chunks/cli-1.1.24-ww5zft49.mjs +20 -0
- package/dist/chunks/cli-1.1.24-wx6qsawc.mjs +2 -0
- package/dist/chunks/cli-1.1.24-wygwske9.mjs +2 -0
- package/dist/chunks/cli-1.1.24-x19qr19f.mjs +2 -0
- package/dist/chunks/cli-1.1.24-x1wayra7.mjs +7 -0
- package/dist/chunks/cli-1.1.24-x77tmaf2.mjs +2 -0
- package/dist/chunks/cli-1.1.24-x7j3vdgw.mjs +2 -0
- package/dist/chunks/cli-1.1.24-x8cd4qb4.mjs +2 -0
- package/dist/chunks/cli-1.1.24-xcmmqx6c.mjs +1 -0
- package/dist/chunks/cli-1.1.24-xdhm369m.mjs +15 -0
- package/dist/chunks/cli-1.1.24-xmtasnec.mjs +2 -0
- package/dist/chunks/cli-1.1.24-xyb7vhk3.mjs +3 -0
- package/dist/chunks/cli-1.1.24-y0p1ztq1.mjs +2 -0
- package/dist/chunks/cli-1.1.24-y4gprept.mjs +2 -0
- package/dist/chunks/cli-1.1.24-y4pvshdf.mjs +2 -0
- package/dist/chunks/cli-1.1.24-y55w7gqd.mjs +2 -0
- package/dist/chunks/cli-1.1.24-yadxqz7j.mjs +4 -0
- package/dist/chunks/cli-1.1.24-yay2cxmw.mjs +2 -0
- package/dist/chunks/cli-1.1.24-yh801h84.mjs +2 -0
- package/dist/chunks/cli-1.1.24-ymqwnn04.mjs +5 -0
- package/dist/chunks/cli-1.1.24-yp46sbt0.mjs +6 -0
- package/dist/chunks/cli-1.1.24-ys3jea4v.mjs +2 -0
- package/dist/chunks/cli-1.1.24-yz19vhn7.mjs +45 -0
- package/dist/chunks/cli-1.1.24-yz5bzn1k.mjs +2 -0
- package/dist/chunks/cli-1.1.24-yzfk4k7c.mjs +2 -0
- package/dist/chunks/cli-1.1.24-z2byr0bb.mjs +3 -0
- package/dist/chunks/cli-1.1.24-z5t424fy.mjs +15 -0
- package/dist/chunks/cli-1.1.24-zc49jxpp.mjs +24 -0
- package/dist/chunks/cli-1.1.24-zey4mks2.mjs +6 -0
- package/dist/chunks/cli-1.1.24-zjc9nfba.mjs +66 -0
- package/dist/chunks/cli-1.1.24-znb9n8xc.mjs +2 -0
- package/dist/chunks/cli-1.1.24-zqsb8jf1.mjs +2 -0
- package/dist/chunks/cli-1.1.24-zzy8r310.mjs +3 -0
- package/dist/chunks/client-1.1.24-04048dd4.mjs +1 -0
- package/dist/chunks/color-1.1.24-c0gzcmgh.mjs +1 -0
- package/dist/chunks/compact-1.1.24-191dct4e.mjs +3 -0
- package/dist/chunks/config-1.1.24-0gw6ge6e.mjs +1 -0
- package/dist/chunks/config-1.1.24-ndcrhj7n.mjs +1 -0
- package/dist/chunks/constants-1.1.24-tbk9zrcf.mjs +1 -0
- package/dist/chunks/context-1.1.24-m2nks3pf.mjs +1 -0
- package/dist/chunks/context-noninteractive-1.1.24-fpjb3z40.mjs +1 -0
- package/dist/chunks/conversation-1.1.24-1fhfrjjb.mjs +1 -0
- package/dist/chunks/copilotHeaders-1.1.24-7gr1sjfz.mjs +1 -0
- package/dist/chunks/copy-1.1.24-cp9c2gz7.mjs +9 -0
- package/dist/chunks/cost-1.1.24-n2977gae.mjs +1 -0
- package/dist/chunks/createSSHSession-1.1.24-mnvhz35z.mjs +1 -0
- package/dist/chunks/createSession-1.1.24-jmw71620.mjs +1 -0
- package/dist/chunks/debug-1.1.24-fbfn7n50.mjs +1 -0
- package/dist/chunks/defaultActionDeps-1.1.24-2sn9h6p5.mjs +1534 -0
- package/dist/chunks/desktop-1.1.24-scm6c1n6.mjs +1 -0
- package/dist/chunks/detectRepository-1.1.24-pegwcpzf.mjs +1 -0
- package/dist/chunks/detection-1.1.24-0k1tkgs4.mjs +1 -0
- package/dist/chunks/diff-1.1.24-0jvr5nbq.mjs +1 -0
- package/dist/chunks/doctor-1.1.24-ek4hj124.mjs +1 -0
- package/dist/chunks/doctorDiagnostic-1.1.24-rkkj1qaa.mjs +1 -0
- package/dist/chunks/earlyInput-1.1.24-0jq2yety.mjs +1 -0
- package/dist/chunks/effort-1.1.24-pj04350n.mjs +13 -0
- package/dist/chunks/engine-1.1.24-d8ghs7v2.mjs +1 -0
- package/dist/chunks/envLessBridgeConfig-1.1.24-0sz4c3p3.mjs +1 -0
- package/dist/chunks/envUtils-1.1.24-x72tjbvh.mjs +1 -0
- package/dist/chunks/environmentSelection-1.1.24-kdf8c1wj.mjs +1 -0
- package/dist/chunks/environments-1.1.24-4f4e4q0j.mjs +1 -0
- package/dist/chunks/errors-1.1.24-e9mdyym2.mjs +1 -0
- package/dist/chunks/exampleCommands-1.1.24-k8gqpgm6.mjs +1 -0
- package/dist/chunks/execFileNoThrow-1.1.24-nf306f2h.mjs +1 -0
- package/dist/chunks/exit-1.1.24-dvx9hpkk.mjs +1 -0
- package/dist/chunks/explorer-1.1.24-jwyvpptp.mjs +1 -0
- package/dist/chunks/export-1.1.24-wjaf1p5p.mjs +2 -0
- package/dist/chunks/extra-usage-1.1.24-29n7nt5d.mjs +1 -0
- package/dist/chunks/extra-usage-noninteractive-1.1.24-y28scbnf.mjs +1 -0
- package/dist/chunks/fast-1.1.24-b97zvms4.mjs +1 -0
- package/dist/chunks/feedback-1.1.24-6epgxnyy.mjs +14 -0
- package/dist/chunks/firstPartyEventLogger-1.1.24-z3cng876.mjs +1 -0
- package/dist/chunks/git-1.1.24-g44mqdr1.mjs +1 -0
- package/dist/chunks/githubModelsCredentials-1.1.24-xys028w7.mjs +1 -0
- package/dist/chunks/goal-1.1.24-g5h8tqdv.mjs +4 -0
- package/dist/chunks/growthbook-1.1.24-sp4nsdp2.mjs +1 -0
- package/dist/chunks/headless-1.1.24-xjc45ts1.mjs +2 -0
- package/dist/chunks/heapdump-1.1.24-k9vdtkem.mjs +6 -0
- package/dist/chunks/help-1.1.24-4pb60ggc.mjs +1 -0
- package/dist/chunks/hookChains-1.1.24-fgx8qw71.mjs +3 -0
- package/dist/chunks/hooks-1.1.24-gy3rfx2s.mjs +79 -0
- package/dist/chunks/hooks-1.1.24-qvh9gx4b.mjs +1 -0
- package/dist/chunks/ide-1.1.24-ecb37fdx.mjs +3 -0
- package/dist/chunks/image-processor-napi-1.1.24-3bf65p63.mjs +1 -0
- package/dist/chunks/import-1.1.24-bpnr0awz.mjs +261 -0
- package/dist/chunks/inboundAttachments-1.1.24-h4st0drb.mjs +1 -0
- package/dist/chunks/index-1.1.24-1qfnahpf.mjs +5 -0
- package/dist/chunks/index-1.1.24-2c5tqanw.mjs +1 -0
- package/dist/chunks/index-1.1.24-3pkassck.mjs +1 -0
- package/dist/chunks/index-1.1.24-4gnpx2tt.mjs +30 -0
- package/dist/chunks/index-1.1.24-5kf8n97z.mjs +1 -0
- package/dist/chunks/index-1.1.24-7nn95an1.mjs +2 -0
- package/dist/chunks/index-1.1.24-8005ram7.mjs +1 -0
- package/dist/chunks/index-1.1.24-80m0ydka.mjs +2 -0
- package/dist/chunks/index-1.1.24-931bwhyw.mjs +9 -0
- package/dist/chunks/index-1.1.24-a3t3jmq6.mjs +1 -0
- package/dist/chunks/index-1.1.24-bvewx84q.mjs +1 -0
- package/dist/chunks/index-1.1.24-hvxes6d7.mjs +1 -0
- package/dist/chunks/index-1.1.24-j4v31wtc.mjs +1 -0
- package/dist/chunks/index-1.1.24-jt13vzsz.mjs +1 -0
- package/dist/chunks/index-1.1.24-k9m56w47.mjs +1 -0
- package/dist/chunks/index-1.1.24-ksthp5f5.mjs +1 -0
- package/dist/chunks/index-1.1.24-p0dh0w23.mjs +1 -0
- package/dist/chunks/index-1.1.24-qzv3z9d8.mjs +1 -0
- package/dist/chunks/index-1.1.24-ry33qapt.mjs +23 -0
- package/dist/chunks/index-1.1.24-wrwbr5my.mjs +1 -0
- package/dist/chunks/index-1.1.24-x476ts8e.mjs +1 -0
- package/dist/chunks/index-1.1.24-yz1p3g13.mjs +1 -0
- package/dist/chunks/index-1.1.24-zpd6455g.mjs +9 -0
- package/dist/chunks/init-1.1.24-t8nj0b2a.mjs +1 -0
- package/dist/chunks/initReplBridge-1.1.24-0rrs2446.mjs +1 -0
- package/dist/chunks/ink-1.1.24-n7wnynts.mjs +1 -0
- package/dist/chunks/insights-1.1.24-brh3tfms.mjs +870 -0
- package/dist/chunks/install-1.1.24-bnszrzxv.mjs +1 -0
- package/dist/chunks/install-github-app-1.1.24-5rgjevwd.mjs +149 -0
- package/dist/chunks/install-slack-app-1.1.24-yh7a017r.mjs +1 -0
- package/dist/chunks/instrumentation-1.1.24-v7zemczf.mjs +1 -0
- package/dist/chunks/interactiveHelpers-1.1.24-b7xw2wrx.mjs +1 -0
- package/dist/chunks/keybindings-1.1.24-31h2q3ex.mjs +2 -0
- package/dist/chunks/knowledge-1.1.24-8nq0v4s7.mjs +2 -0
- package/dist/chunks/latestVersionCache-1.1.24-a6axfzxn.mjs +1 -0
- package/dist/chunks/loadAgentsDir-1.1.24-k6dhs78a.mjs +1 -0
- package/dist/chunks/loadPluginHooks-1.1.24-kv2hvbav.mjs +1 -0
- package/dist/chunks/log-1.1.24-gv1f1hxb.mjs +1 -0
- package/dist/chunks/main-1.1.24-e2ntxz1f.mjs +1 -0
- package/dist/chunks/managedEnv-1.1.24-rfa63jew.mjs +1 -0
- package/dist/chunks/mcp-1.1.24-3a5demcw.mjs +4 -0
- package/dist/chunks/mcp-1.1.24-5patw3xq.mjs +17 -0
- package/dist/chunks/mcp-1.1.24-jcnn5rdj.mjs +1 -0
- package/dist/chunks/mcpb-1.1.24-b7zrasgt.mjs +1 -0
- package/dist/chunks/memory-1.1.24-dvn88stz.mjs +72 -0
- package/dist/chunks/model-1.1.24-jqp66a34.mjs +1 -0
- package/dist/chunks/model-1.1.24-pxgrw9n0.mjs +2 -0
- package/dist/chunks/node-1.1.24-9kx9ct5c.mjs +15 -0
- package/dist/chunks/oauth-1.1.24-5v87662s.mjs +1 -0
- package/dist/chunks/openaiShim-1.1.24-29jaq53v.mjs +14 -0
- package/dist/chunks/output-style-1.1.24-vt1w07zs.mjs +1 -0
- package/dist/chunks/package-SHMK2LJE-1.1.24-bz44pm49.mjs +1 -0
- package/dist/chunks/parseConnectUrl-1.1.24-e5ppdssa.mjs +1 -0
- package/dist/chunks/parser-1.1.24-r4f154gw.mjs +1 -0
- package/dist/chunks/passes-1.1.24-znx7myf5.mjs +1 -0
- package/dist/chunks/permissions-1.1.24-djrvvvz7.mjs +3 -0
- package/dist/chunks/permissions-1.1.24-v5xhwsne.mjs +1 -0
- package/dist/chunks/plan-1.1.24-vhaqffge.mjs +1 -0
- package/dist/chunks/plist-1.1.24-a5racx0y.mjs +1 -0
- package/dist/chunks/plugin-1.1.24-a97brm8r.mjs +29 -0
- package/dist/chunks/pluginStartupCheck-1.1.24-md4nbg2a.mjs +1 -0
- package/dist/chunks/plugins-1.1.24-mza746hr.mjs +9 -0
- package/dist/chunks/preActionHook-1.1.24-n8ztas45.mjs +2 -0
- package/dist/chunks/print-1.1.24-3xs40xg6.mjs +57 -0
- package/dist/chunks/process-1.1.24-7znk7nvb.mjs +1 -0
- package/dist/chunks/processBashCommand-1.1.24-454rvsw5.mjs +1 -0
- package/dist/chunks/processSlashCommand-1.1.24-8k5m3gk9.mjs +9 -0
- package/dist/chunks/prompt-1.1.24-bk6dfj1e.mjs +1 -0
- package/dist/chunks/prompt-1.1.24-vvcbfmdp.mjs +1 -0
- package/dist/chunks/prompts-1.1.24-b6ebw0vv.mjs +1 -0
- package/dist/chunks/protocolHandler-1.1.24-n1vv96tn.mjs +13 -0
- package/dist/chunks/provider-1.1.24-t07b1cf0.mjs +2 -0
- package/dist/chunks/providerProfiles-1.1.24-pnze1322.mjs +1 -0
- package/dist/chunks/providerValidation-1.1.24-6atsq725.mjs +6 -0
- package/dist/chunks/rate-limit-options-1.1.24-awx453hm.mjs +1 -0
- package/dist/chunks/registerSubcommands-1.1.24-es1k3f52.mjs +26 -0
- package/dist/chunks/registry-1.1.24-f8gdvha6.mjs +1 -0
- package/dist/chunks/release-notes-1.1.24-wc0ns08n.mjs +5 -0
- package/dist/chunks/reload-plugins-1.1.24-n65zs7m1.mjs +2 -0
- package/dist/chunks/remote-env-1.1.24-edv7k83f.mjs +1 -0
- package/dist/chunks/remoteBridgeCore-1.1.24-skqbqsp7.mjs +1 -0
- package/dist/chunks/remoteSession-1.1.24-y4nvb00c.mjs +1 -0
- package/dist/chunks/rename-1.1.24-5h35tqzj.mjs +1 -0
- package/dist/chunks/replBridgeHandle-1.1.24-y59d2vsb.mjs +1 -0
- package/dist/chunks/replLauncher-1.1.24-3fh8y1wc.mjs +1 -0
- package/dist/chunks/resume-1.1.24-mbmqkywe.mjs +2 -0
- package/dist/chunks/rewind-1.1.24-7d2yrzwh.mjs +1 -0
- package/dist/chunks/rootOptions-1.1.24-32jzw8gf.mjs +1 -0
- package/dist/chunks/runWorkflowHeadless-1.1.24-tr01e02n.mjs +10 -0
- package/dist/chunks/sandbox-adapter-1.1.24-n544gb1b.mjs +1 -0
- package/dist/chunks/sandbox-toggle-1.1.24-3jt7dn2v.mjs +1 -0
- package/dist/chunks/session-1.1.24-5gj3f8bf.mjs +2 -0
- package/dist/chunks/sessionDiscovery-1.1.24-qdssyy70.mjs +1 -0
- package/dist/chunks/sessionFileAccessHooks-1.1.24-j2d90dxq.mjs +1 -0
- package/dist/chunks/sessionStorage-1.1.24-jk2064js.mjs +1 -0
- package/dist/chunks/settings-1.1.24-xb5xvwd4.mjs +1 -0
- package/dist/chunks/setup-1.1.24-wdr88mhm.mjs +12 -0
- package/dist/chunks/sinks-1.1.24-zbp12cks.mjs +1 -0
- package/dist/chunks/skills-1.1.24-fs0fj8pg.mjs +1 -0
- package/dist/chunks/startupProfiler-1.1.24-sm8szq0q.mjs +1 -0
- package/dist/chunks/startupUpdateCheck-1.1.24-mc3ted4v.mjs +1 -0
- package/dist/chunks/state-1.1.24-5c4debwf.mjs +1 -0
- package/dist/chunks/stats-1.1.24-0bt4qf8n.mjs +6 -0
- package/dist/chunks/status-1.1.24-abhqj5mw.mjs +1 -0
- package/dist/chunks/stickers-1.1.24-zh8qjsyy.mjs +1 -0
- package/dist/chunks/subprocessEnv-1.1.24-gp4ayqrk.mjs +1 -0
- package/dist/chunks/tasks-1.1.24-1cxy0tgz.mjs +1 -0
- package/dist/chunks/teamHelpers-1.1.24-5bb9mm83.mjs +1 -0
- package/dist/chunks/teammateModeSnapshot-1.1.24-nb3dp4e3.mjs +1 -0
- package/dist/chunks/teleport-1.1.24-c7prtcv6.mjs +1 -0
- package/dist/chunks/terminalSetup-1.1.24-sfx4nye5.mjs +1 -0
- package/dist/chunks/theme-1.1.24-x6419d8v.mjs +1 -0
- package/dist/chunks/thinkback-1.1.24-f315phwt.mjs +1 -0
- package/dist/chunks/thinkback-play-1.1.24-79eppsfc.mjs +1 -0
- package/dist/chunks/toolPool-1.1.24-8yd82av5.mjs +1 -0
- package/dist/chunks/toolSearch-1.1.24-jmqktrq1.mjs +1 -0
- package/dist/chunks/tools-1.1.24-5fm8t3kw.mjs +1 -0
- package/dist/chunks/trustedDevice-1.1.24-w4sh0m0v.mjs +1 -0
- package/dist/chunks/turndown.cjs-1.1.24-h4ea8fek.mjs +69 -0
- package/dist/chunks/types-1.1.24-5xkkfxsk.mjs +1 -0
- package/dist/chunks/ultrareviewCommand-1.1.24-aqb6hpdg.mjs +4 -0
- package/dist/chunks/update-1.1.24-der2v1xy.mjs +72 -0
- package/dist/chunks/upgrade-1.1.24-grzzzksq.mjs +1 -0
- package/dist/chunks/upload-1.1.24-tjetbg6e.mjs +7 -0
- package/dist/chunks/upstreamproxy-1.1.24-19aj3b1w.mjs +14 -0
- package/dist/chunks/url-handler-napi-1.1.24-xm0gtc5y.mjs +1 -0
- package/dist/chunks/usage-1.1.24-69x06f48.mjs +1 -0
- package/dist/chunks/util-1.1.24-1ea4gbm5.mjs +1 -0
- package/dist/chunks/utils-1.1.24-sr136rh9.mjs +1 -0
- package/dist/chunks/vim-1.1.24-e90y2xp6.mjs +1 -0
- package/dist/chunks/watchLoop-1.1.24-wfk9enxd.mjs +13 -0
- package/dist/chunks/watcher-1.1.24-tcqfrpkm.mjs +1 -0
- package/dist/chunks/wiki-1.1.24-aevd508s.mjs +132 -0
- package/dist/chunks/workflows-1.1.24-4wkmgpjr.mjs +1 -0
- package/dist/chunks/worktree-1.1.24-2vf4mmjm.mjs +1 -0
- package/dist/chunks/worktreeModeEnabled-1.1.24-s2v499tv.mjs +1 -0
- package/dist/chunks/wrapper-1.1.24-arr1pkz0.mjs +7 -0
- package/dist/cli.mjs +2 -2
- package/package.json +9 -9
- package/dist/chunks/AgentTool-1.1.22-4ba6sbn1.mjs +0 -1
- package/dist/chunks/App-1.1.22-2m11r40p.mjs +0 -1
- package/dist/chunks/ApproveApiKey-1.1.22-zp1y1218.mjs +0 -1
- package/dist/chunks/AssistantSessionChooser-1.1.22-s95rx0gk.mjs +0 -1
- package/dist/chunks/AutoModeOptInDialog-1.1.22-5qa3134t.mjs +0 -1
- package/dist/chunks/BypassPermissionsModeDialog-1.1.22-m5fc6nej.mjs +0 -1
- package/dist/chunks/ClaudeMdExternalIncludesDialog-1.1.22-bnv9d1h5.mjs +0 -1
- package/dist/chunks/ConsoleOAuthFlow-1.1.22-g92az35d.mjs +0 -1
- package/dist/chunks/DiffDialog-1.1.22-9ccdds3r.mjs +0 -6
- package/dist/chunks/Doctor-1.1.22-1gc86nqw.mjs +0 -1
- package/dist/chunks/ExplorerDialog-1.1.22-z6sndn27.mjs +0 -6
- package/dist/chunks/ITermBackend-1.1.22-gb09bshz.mjs +0 -1
- package/dist/chunks/InvalidConfigDialog-1.1.22-52wjx92m.mjs +0 -1
- package/dist/chunks/InvalidSettingsDialog-1.1.22-q6j91dba.mjs +0 -1
- package/dist/chunks/MigrationDialog-1.1.22-z6x86qa5.mjs +0 -1
- package/dist/chunks/Onboarding-1.1.22-05vxshwk.mjs +0 -1
- package/dist/chunks/ProviderManager-1.1.22-zh99bzde.mjs +0 -1
- package/dist/chunks/REPL-1.1.22-2c229abh.mjs +0 -1
- package/dist/chunks/ResumeConversation-1.1.22-jp1q8573.mjs +0 -1
- package/dist/chunks/SnapshotUpdateDialog-1.1.22-s20kx6cz.mjs +0 -1
- package/dist/chunks/TeleportProgress-1.1.22-036phq5k.mjs +0 -1
- package/dist/chunks/TeleportRepoMismatchDialog-1.1.22-2fpx0v36.mjs +0 -1
- package/dist/chunks/TeleportResumeWrapper-1.1.22-q9xh6c1x.mjs +0 -1
- package/dist/chunks/TmuxBackend-1.1.22-shtyh6x1.mjs +0 -9
- package/dist/chunks/ToolSearchTool-1.1.22-hwnb32mw.mjs +0 -1
- package/dist/chunks/TrustDialog-1.1.22-tx9d7tzw.mjs +0 -1
- package/dist/chunks/activeProvider-1.1.22-qd5cmwvf.mjs +0 -1
- package/dist/chunks/add-dir-1.1.22-be3sb4ed.mjs +0 -1
- package/dist/chunks/agentTypes-1.1.22-rm5akk7n.mjs +0 -1
- package/dist/chunks/agents-1.1.22-ad8hknzy.mjs +0 -3
- package/dist/chunks/agents-1.1.22-c8hb8sst.mjs +0 -110
- package/dist/chunks/api-1.1.22-b74pv1bc.mjs +0 -1
- package/dist/chunks/asciicast-1.1.22-qz35a5k4.mjs +0 -1
- package/dist/chunks/assistant-1.1.22-mqc1g16y.mjs +0 -1
- package/dist/chunks/auth-1.1.22-hwjcqvy4.mjs +0 -1
- package/dist/chunks/auth-1.1.22-pwa369jw.mjs +0 -1
- package/dist/chunks/autoMode-1.1.22-3by2zax3.mjs +0 -52
- package/dist/chunks/autoModeSetup-1.1.22-e4mn7cas.mjs +0 -44
- package/dist/chunks/autoUpdater-1.1.22-ng881g40.mjs +0 -1
- package/dist/chunks/backgroundHousekeeping-1.1.22-hxy5jpcq.mjs +0 -1
- package/dist/chunks/branch-1.1.22-akcs4dk5.mjs +0 -4
- package/dist/chunks/bridge-1.1.22-rttgyvkn.mjs +0 -2
- package/dist/chunks/bridgeConfig-1.1.22-gtqyk17c.mjs +0 -1
- package/dist/chunks/bridgeEnabled-1.1.22-tfhha37q.mjs +0 -1
- package/dist/chunks/bridgeMain-1.1.22-mt52dzzq.mjs +0 -88
- package/dist/chunks/bridgePointer-1.1.22-bqaet342.mjs +0 -1
- package/dist/chunks/btw-1.1.22-y44fbm0x.mjs +0 -1
- package/dist/chunks/buddy-1.1.22-1jzcjwyr.mjs +0 -3
- package/dist/chunks/cache-probe-1.1.22-wmckr2fj.mjs +0 -21
- package/dist/chunks/cacheStats-1.1.22-rzg950xm.mjs +0 -4
- package/dist/chunks/caches-1.1.22-kabyzmmd.mjs +0 -1
- package/dist/chunks/claudeDesktop-1.1.22-7mafzt35.mjs +0 -1
- package/dist/chunks/claudemd-1.1.22-genp8cn4.mjs +0 -1
- package/dist/chunks/clear-1.1.22-ta3shrbf.mjs +0 -1
- package/dist/chunks/clearTerminal-1.1.22-hvkervt4.mjs +0 -1
- package/dist/chunks/cli-1.1.22-00s47593.mjs +0 -4
- package/dist/chunks/cli-1.1.22-01xfy12n.mjs +0 -18
- package/dist/chunks/cli-1.1.22-01yb5we4.mjs +0 -2
- package/dist/chunks/cli-1.1.22-0553cn3c.mjs +0 -3
- package/dist/chunks/cli-1.1.22-073y3gd5.mjs +0 -2
- package/dist/chunks/cli-1.1.22-07prh801.mjs +0 -2
- package/dist/chunks/cli-1.1.22-08c4ym21.mjs +0 -2
- package/dist/chunks/cli-1.1.22-09eb3077.mjs +0 -2
- package/dist/chunks/cli-1.1.22-0h7jejsr.mjs +0 -3
- package/dist/chunks/cli-1.1.22-0n0cxg2p.mjs +0 -4
- package/dist/chunks/cli-1.1.22-0x96ahhc.mjs +0 -4
- package/dist/chunks/cli-1.1.22-1099x9x2.mjs +0 -2
- package/dist/chunks/cli-1.1.22-12vfd6j1.mjs +0 -2
- package/dist/chunks/cli-1.1.22-1npmfnxb.mjs +0 -50
- package/dist/chunks/cli-1.1.22-1tqdha8j.mjs +0 -2
- package/dist/chunks/cli-1.1.22-1vrzwj7y.mjs +0 -2
- package/dist/chunks/cli-1.1.22-22735g9w.mjs +0 -2
- package/dist/chunks/cli-1.1.22-261r450y.mjs +0 -60
- package/dist/chunks/cli-1.1.22-265a4qpa.mjs +0 -2
- package/dist/chunks/cli-1.1.22-2bdf1etb.mjs +0 -4
- package/dist/chunks/cli-1.1.22-2getjsf5.mjs +0 -6
- package/dist/chunks/cli-1.1.22-2mahjtgk.mjs +0 -2
- package/dist/chunks/cli-1.1.22-2nwmyakz.mjs +0 -2
- package/dist/chunks/cli-1.1.22-2rqykpy1.mjs +0 -18
- package/dist/chunks/cli-1.1.22-2t3fhfjv.mjs +0 -133
- package/dist/chunks/cli-1.1.22-2tctx2yg.mjs +0 -2
- package/dist/chunks/cli-1.1.22-2wh33kpx.mjs +0 -2
- package/dist/chunks/cli-1.1.22-2y82t3pd.mjs +0 -2
- package/dist/chunks/cli-1.1.22-2yxd7hfb.mjs +0 -2
- package/dist/chunks/cli-1.1.22-2zhxvvkx.mjs +0 -2
- package/dist/chunks/cli-1.1.22-33jc9czg.mjs +0 -2
- package/dist/chunks/cli-1.1.22-35fe0h6z.mjs +0 -2
- package/dist/chunks/cli-1.1.22-3ehpcpz4.mjs +0 -2
- package/dist/chunks/cli-1.1.22-3h20fb9d.mjs +0 -2
- package/dist/chunks/cli-1.1.22-3jyydg5h.mjs +0 -206
- package/dist/chunks/cli-1.1.22-3nmtk1bh.mjs +0 -2
- package/dist/chunks/cli-1.1.22-3r3tadt1.mjs +0 -4
- package/dist/chunks/cli-1.1.22-3thczx3s.mjs +0 -133
- package/dist/chunks/cli-1.1.22-3xjx3y13.mjs +0 -2
- package/dist/chunks/cli-1.1.22-41aseceq.mjs +0 -3
- package/dist/chunks/cli-1.1.22-4227vtcf.mjs +0 -24
- package/dist/chunks/cli-1.1.22-48gjx3j7.mjs +0 -2
- package/dist/chunks/cli-1.1.22-4g11fbx3.mjs +0 -2
- package/dist/chunks/cli-1.1.22-4ph3xqne.mjs +0 -2
- package/dist/chunks/cli-1.1.22-4pmfh5v2.mjs +0 -2
- package/dist/chunks/cli-1.1.22-5afprdre.mjs +0 -2
- package/dist/chunks/cli-1.1.22-5dcmb4h9.mjs +0 -2
- package/dist/chunks/cli-1.1.22-5mzq5mc4.mjs +0 -24
- package/dist/chunks/cli-1.1.22-5vkvwgh1.mjs +0 -2
- package/dist/chunks/cli-1.1.22-619cwdw8.mjs +0 -2
- package/dist/chunks/cli-1.1.22-6bxa25n5.mjs +0 -2
- package/dist/chunks/cli-1.1.22-6gd42s2a.mjs +0 -2
- package/dist/chunks/cli-1.1.22-6k5nt5wc.mjs +0 -2
- package/dist/chunks/cli-1.1.22-6khex7bz.mjs +0 -34
- package/dist/chunks/cli-1.1.22-6vtb75g8.mjs +0 -2
- package/dist/chunks/cli-1.1.22-73mzmb6a.mjs +0 -3
- package/dist/chunks/cli-1.1.22-796yez98.mjs +0 -2
- package/dist/chunks/cli-1.1.22-7dha9j2p.mjs +0 -3
- package/dist/chunks/cli-1.1.22-7rm6jw0h.mjs +0 -17
- package/dist/chunks/cli-1.1.22-7rv96st9.mjs +0 -4
- package/dist/chunks/cli-1.1.22-7xwf9v6n.mjs +0 -2
- package/dist/chunks/cli-1.1.22-7zv5k6p0.mjs +0 -2
- package/dist/chunks/cli-1.1.22-87m0b80d.mjs +0 -8
- package/dist/chunks/cli-1.1.22-8cxdckv7.mjs +0 -39
- package/dist/chunks/cli-1.1.22-8fwvxw5t.mjs +0 -2
- package/dist/chunks/cli-1.1.22-8zvpve6x.mjs +0 -2
- package/dist/chunks/cli-1.1.22-9283mpm5.mjs +0 -4
- package/dist/chunks/cli-1.1.22-9affzgn1.mjs +0 -2
- package/dist/chunks/cli-1.1.22-9b6k45hn.mjs +0 -3
- package/dist/chunks/cli-1.1.22-9dr01ge1.mjs +0 -2
- package/dist/chunks/cli-1.1.22-9jjvp1h1.mjs +0 -2
- package/dist/chunks/cli-1.1.22-9t3wxp9c.mjs +0 -2
- package/dist/chunks/cli-1.1.22-9xhwr18a.mjs +0 -2
- package/dist/chunks/cli-1.1.22-a4bc88qq.mjs +0 -2
- package/dist/chunks/cli-1.1.22-an1qn05v.mjs +0 -3
- package/dist/chunks/cli-1.1.22-as4a7add.mjs +0 -5
- package/dist/chunks/cli-1.1.22-as944wt5.mjs +0 -2
- package/dist/chunks/cli-1.1.22-b3bpnsqk.mjs +0 -2
- package/dist/chunks/cli-1.1.22-b7axxc6j.mjs +0 -2
- package/dist/chunks/cli-1.1.22-b81ce6x4.mjs +0 -15
- package/dist/chunks/cli-1.1.22-bfc0nw13.mjs +0 -3
- package/dist/chunks/cli-1.1.22-bj4bsta6.mjs +0 -2
- package/dist/chunks/cli-1.1.22-bnse4r9s.mjs +0 -2
- package/dist/chunks/cli-1.1.22-bv3a0vaa.mjs +0 -2
- package/dist/chunks/cli-1.1.22-bxfemtrx.mjs +0 -2
- package/dist/chunks/cli-1.1.22-byxwkfrj.mjs +0 -3
- package/dist/chunks/cli-1.1.22-c07z4d74.mjs +0 -2
- package/dist/chunks/cli-1.1.22-c1h1wfjn.mjs +0 -2
- package/dist/chunks/cli-1.1.22-ca6d1erw.mjs +0 -6
- package/dist/chunks/cli-1.1.22-ccg6dy3s.mjs +0 -2
- package/dist/chunks/cli-1.1.22-ccp7e8qv.mjs +0 -2
- package/dist/chunks/cli-1.1.22-ckvf3pt3.mjs +0 -2
- package/dist/chunks/cli-1.1.22-ctbmc0bv.mjs +0 -2
- package/dist/chunks/cli-1.1.22-cvfsmaqt.mjs +0 -2
- package/dist/chunks/cli-1.1.22-d1w2ky89.mjs +0 -6
- package/dist/chunks/cli-1.1.22-d7cmcmfd.mjs +0 -2
- package/dist/chunks/cli-1.1.22-d990gcrg.mjs +0 -2
- package/dist/chunks/cli-1.1.22-d9y8qqg3.mjs +0 -2
- package/dist/chunks/cli-1.1.22-ddq8axpw.mjs +0 -12
- package/dist/chunks/cli-1.1.22-df129qms.mjs +0 -5
- package/dist/chunks/cli-1.1.22-df9q1a85.mjs +0 -2
- package/dist/chunks/cli-1.1.22-djkeg65n.mjs +0 -2
- package/dist/chunks/cli-1.1.22-dpqknw7z.mjs +0 -2
- package/dist/chunks/cli-1.1.22-e25bz2ew.mjs +0 -9
- package/dist/chunks/cli-1.1.22-e5sxpgah.mjs +0 -2
- package/dist/chunks/cli-1.1.22-e5wx36qr.mjs +0 -2
- package/dist/chunks/cli-1.1.22-eagkxr30.mjs +0 -9
- package/dist/chunks/cli-1.1.22-eddrkydn.mjs +0 -2
- package/dist/chunks/cli-1.1.22-emmr10wb.mjs +0 -21
- package/dist/chunks/cli-1.1.22-eqtbpc0r.mjs +0 -2
- package/dist/chunks/cli-1.1.22-erbhk4p7.mjs +0 -4
- package/dist/chunks/cli-1.1.22-f0wja05z.mjs +0 -2
- package/dist/chunks/cli-1.1.22-f9ntxarz.mjs +0 -2
- package/dist/chunks/cli-1.1.22-fetzhxhh.mjs +0 -2
- package/dist/chunks/cli-1.1.22-fwhfqwwn.mjs +0 -2
- package/dist/chunks/cli-1.1.22-gkryz2d0.mjs +0 -2
- package/dist/chunks/cli-1.1.22-gpt102mm.mjs +0 -2
- package/dist/chunks/cli-1.1.22-grjw9tnm.mjs +0 -2
- package/dist/chunks/cli-1.1.22-gwhdvfge.mjs +0 -24
- package/dist/chunks/cli-1.1.22-gyhxg2db.mjs +0 -2
- package/dist/chunks/cli-1.1.22-h3m1whqm.mjs +0 -6
- package/dist/chunks/cli-1.1.22-hgwxyksg.mjs +0 -2
- package/dist/chunks/cli-1.1.22-hhmq1rbn.mjs +0 -2
- package/dist/chunks/cli-1.1.22-hjxaqntc.mjs +0 -45
- package/dist/chunks/cli-1.1.22-hqbf8xt0.mjs +0 -3
- package/dist/chunks/cli-1.1.22-hv3m9qnv.mjs +0 -2
- package/dist/chunks/cli-1.1.22-j6xg80k8.mjs +0 -2
- package/dist/chunks/cli-1.1.22-j7qc1g0f.mjs +0 -2
- package/dist/chunks/cli-1.1.22-jdz4rqbp.mjs +0 -2
- package/dist/chunks/cli-1.1.22-jech3kdr.mjs +0 -2
- package/dist/chunks/cli-1.1.22-jrhx2z2p.mjs +0 -2
- package/dist/chunks/cli-1.1.22-jvrjpdd1.mjs +0 -2
- package/dist/chunks/cli-1.1.22-jz426kr2.mjs +0 -66
- package/dist/chunks/cli-1.1.22-jzvqt2pv.mjs +0 -2
- package/dist/chunks/cli-1.1.22-k3xv38bj.mjs +0 -2
- package/dist/chunks/cli-1.1.22-kphdet4j.mjs +0 -58
- package/dist/chunks/cli-1.1.22-kqk323ja.mjs +0 -2
- package/dist/chunks/cli-1.1.22-m41t95z0.mjs +0 -2
- package/dist/chunks/cli-1.1.22-mdapyzp3.mjs +0 -6
- package/dist/chunks/cli-1.1.22-mdttpxs6.mjs +0 -24
- package/dist/chunks/cli-1.1.22-mw0jpevk.mjs +0 -2
- package/dist/chunks/cli-1.1.22-mxqz88pc.mjs +0 -2
- package/dist/chunks/cli-1.1.22-n0px7a23.mjs +0 -3
- package/dist/chunks/cli-1.1.22-n2jecp35.mjs +0 -2
- package/dist/chunks/cli-1.1.22-nstgtysk.mjs +0 -2
- package/dist/chunks/cli-1.1.22-nsydz2bd.mjs +0 -2
- package/dist/chunks/cli-1.1.22-nv9q4jrr.mjs +0 -26
- package/dist/chunks/cli-1.1.22-nxv6yayj.mjs +0 -2
- package/dist/chunks/cli-1.1.22-pgrcj1gs.mjs +0 -12
- package/dist/chunks/cli-1.1.22-q622p3vr.mjs +0 -16
- package/dist/chunks/cli-1.1.22-q76mjgec.mjs +0 -2
- package/dist/chunks/cli-1.1.22-qmk7mm5m.mjs +0 -2
- package/dist/chunks/cli-1.1.22-qq7q7v3n.mjs +0 -2
- package/dist/chunks/cli-1.1.22-qzc4h0w2.mjs +0 -2
- package/dist/chunks/cli-1.1.22-r0v2mak7.mjs +0 -2
- package/dist/chunks/cli-1.1.22-r7dnq81v.mjs +0 -2
- package/dist/chunks/cli-1.1.22-r9n3fz01.mjs +0 -2
- package/dist/chunks/cli-1.1.22-rd5zdpvh.mjs +0 -2
- package/dist/chunks/cli-1.1.22-rma08k7m.mjs +0 -3
- package/dist/chunks/cli-1.1.22-rsp3340r.mjs +0 -2
- package/dist/chunks/cli-1.1.22-rtn7nhkb.mjs +0 -1
- package/dist/chunks/cli-1.1.22-s2n02sky.mjs +0 -2
- package/dist/chunks/cli-1.1.22-s5qhs3ds.mjs +0 -2
- package/dist/chunks/cli-1.1.22-s6e60cqc.mjs +0 -2
- package/dist/chunks/cli-1.1.22-sema6yh6.mjs +0 -2
- package/dist/chunks/cli-1.1.22-skpsy2jm.mjs +0 -17
- package/dist/chunks/cli-1.1.22-ss970cxc.mjs +0 -2
- package/dist/chunks/cli-1.1.22-swvmx131.mjs +0 -2
- package/dist/chunks/cli-1.1.22-sy41x518.mjs +0 -2
- package/dist/chunks/cli-1.1.22-tag23y0b.mjs +0 -25
- package/dist/chunks/cli-1.1.22-tkg7zwpn.mjs +0 -20
- package/dist/chunks/cli-1.1.22-tt24grn6.mjs +0 -2
- package/dist/chunks/cli-1.1.22-v260dy3k.mjs +0 -2
- package/dist/chunks/cli-1.1.22-v2q2pts1.mjs +0 -2
- package/dist/chunks/cli-1.1.22-v8pzx6jk.mjs +0 -2
- package/dist/chunks/cli-1.1.22-vdsszncw.mjs +0 -2
- package/dist/chunks/cli-1.1.22-vesjdg08.mjs +0 -2
- package/dist/chunks/cli-1.1.22-vnmyjmjg.mjs +0 -2
- package/dist/chunks/cli-1.1.22-vp1eed3p.mjs +0 -7
- package/dist/chunks/cli-1.1.22-vwdxbs23.mjs +0 -2
- package/dist/chunks/cli-1.1.22-vwv40zm1.mjs +0 -2
- package/dist/chunks/cli-1.1.22-w09pyst3.mjs +0 -2
- package/dist/chunks/cli-1.1.22-waqb850v.mjs +0 -15
- package/dist/chunks/cli-1.1.22-wbpdne8j.mjs +0 -2
- package/dist/chunks/cli-1.1.22-xm1rhe1d.mjs +0 -2
- package/dist/chunks/cli-1.1.22-xmb0wn88.mjs +0 -42
- package/dist/chunks/cli-1.1.22-xmy1w9q2.mjs +0 -2
- package/dist/chunks/cli-1.1.22-xpvyrpxz.mjs +0 -7
- package/dist/chunks/cli-1.1.22-xxwfawkh.mjs +0 -2
- package/dist/chunks/cli-1.1.22-xygngqfs.mjs +0 -2
- package/dist/chunks/cli-1.1.22-xzrnmekb.mjs +0 -3
- package/dist/chunks/cli-1.1.22-y0t8rezv.mjs +0 -2
- package/dist/chunks/cli-1.1.22-y3te45vg.mjs +0 -2
- package/dist/chunks/cli-1.1.22-y4rj8ced.mjs +0 -2
- package/dist/chunks/cli-1.1.22-ya408d88.mjs +0 -4
- package/dist/chunks/cli-1.1.22-yegp0d0j.mjs +0 -6
- package/dist/chunks/cli-1.1.22-yhgxca73.mjs +0 -2
- package/dist/chunks/cli-1.1.22-yjv63n10.mjs +0 -2
- package/dist/chunks/cli-1.1.22-yqbnqsen.mjs +0 -3
- package/dist/chunks/cli-1.1.22-yr5y8074.mjs +0 -4
- package/dist/chunks/cli-1.1.22-yy4d5xbz.mjs +0 -2
- package/dist/chunks/cli-1.1.22-yzk40k6c.mjs +0 -2
- package/dist/chunks/cli-1.1.22-z5g00tpb.mjs +0 -25
- package/dist/chunks/cli-1.1.22-zcrvxkff.mjs +0 -15
- package/dist/chunks/cli-1.1.22-zfg31zpg.mjs +0 -2
- package/dist/chunks/cli-1.1.22-zmt5pksy.mjs +0 -5426
- package/dist/chunks/cli-1.1.22-znq4fk8a.mjs +0 -2
- package/dist/chunks/cli-1.1.22-zsc0cmye.mjs +0 -2
- package/dist/chunks/client-1.1.22-wq8vw6a1.mjs +0 -1
- package/dist/chunks/color-1.1.22-qk5z13ac.mjs +0 -1
- package/dist/chunks/compact-1.1.22-rb84pjhg.mjs +0 -3
- package/dist/chunks/config-1.1.22-0p9ep18d.mjs +0 -1
- package/dist/chunks/config-1.1.22-5mngav76.mjs +0 -1
- package/dist/chunks/constants-1.1.22-kjrh13hv.mjs +0 -1
- package/dist/chunks/context-1.1.22-dw2er614.mjs +0 -1
- package/dist/chunks/context-noninteractive-1.1.22-znhpxryw.mjs +0 -1
- package/dist/chunks/conversation-1.1.22-awv74gk2.mjs +0 -1
- package/dist/chunks/copilotHeaders-1.1.22-m6ccr26v.mjs +0 -1
- package/dist/chunks/copy-1.1.22-7b5mhaaj.mjs +0 -9
- package/dist/chunks/cost-1.1.22-dt2gz43e.mjs +0 -1
- package/dist/chunks/createSSHSession-1.1.22-a42r8ywe.mjs +0 -1
- package/dist/chunks/createSession-1.1.22-ddd5ddkv.mjs +0 -1
- package/dist/chunks/debug-1.1.22-qraa5by9.mjs +0 -1
- package/dist/chunks/defaultActionDeps-1.1.22-ctnqgj01.mjs +0 -1534
- package/dist/chunks/desktop-1.1.22-wg1hxyyk.mjs +0 -1
- package/dist/chunks/detectRepository-1.1.22-pn2g27hr.mjs +0 -1
- package/dist/chunks/detection-1.1.22-s8r50ft4.mjs +0 -1
- package/dist/chunks/diff-1.1.22-6sdsv83f.mjs +0 -1
- package/dist/chunks/doctor-1.1.22-cj56pasy.mjs +0 -1
- package/dist/chunks/doctorDiagnostic-1.1.22-ezjhg329.mjs +0 -1
- package/dist/chunks/earlyInput-1.1.22-k4tqtjbb.mjs +0 -1
- package/dist/chunks/effort-1.1.22-eztddah9.mjs +0 -13
- package/dist/chunks/engine-1.1.22-6wrga0yh.mjs +0 -1
- package/dist/chunks/envLessBridgeConfig-1.1.22-9jm3xgge.mjs +0 -1
- package/dist/chunks/envUtils-1.1.22-7qb9fr3c.mjs +0 -1
- package/dist/chunks/environmentSelection-1.1.22-4xy91rp5.mjs +0 -1
- package/dist/chunks/environments-1.1.22-ke6dvmrb.mjs +0 -1
- package/dist/chunks/errors-1.1.22-rgsmtg01.mjs +0 -1
- package/dist/chunks/exampleCommands-1.1.22-xv4kj009.mjs +0 -1
- package/dist/chunks/execFileNoThrow-1.1.22-m7ndjwpq.mjs +0 -1
- package/dist/chunks/exit-1.1.22-m0bm4f9d.mjs +0 -1
- package/dist/chunks/explorer-1.1.22-jsrgxmw0.mjs +0 -1
- package/dist/chunks/export-1.1.22-s0m4af77.mjs +0 -2
- package/dist/chunks/extra-usage-1.1.22-9sdr6tyh.mjs +0 -1
- package/dist/chunks/extra-usage-noninteractive-1.1.22-9k857j7m.mjs +0 -1
- package/dist/chunks/fast-1.1.22-3w3eg6gc.mjs +0 -1
- package/dist/chunks/feedback-1.1.22-7jr2gbzj.mjs +0 -14
- package/dist/chunks/firstPartyEventLogger-1.1.22-08zb6ajr.mjs +0 -1
- package/dist/chunks/git-1.1.22-m66s3f9x.mjs +0 -1
- package/dist/chunks/githubModelsCredentials-1.1.22-2r1deqm3.mjs +0 -1
- package/dist/chunks/goal-1.1.22-60jn1knb.mjs +0 -4
- package/dist/chunks/growthbook-1.1.22-jnddje2q.mjs +0 -1
- package/dist/chunks/headless-1.1.22-jc8xk2dj.mjs +0 -2
- package/dist/chunks/heapdump-1.1.22-h87tv4ay.mjs +0 -6
- package/dist/chunks/help-1.1.22-hkgcwycs.mjs +0 -1
- package/dist/chunks/hookChains-1.1.22-hjjsdtfz.mjs +0 -3
- package/dist/chunks/hooks-1.1.22-d51y91pz.mjs +0 -79
- package/dist/chunks/hooks-1.1.22-knpyhzjq.mjs +0 -1
- package/dist/chunks/ide-1.1.22-0tqwa732.mjs +0 -3
- package/dist/chunks/image-processor-napi-1.1.22-6qd4v6hf.mjs +0 -1
- package/dist/chunks/inboundAttachments-1.1.22-gvb5zry4.mjs +0 -1
- package/dist/chunks/index-1.1.22-19x2126b.mjs +0 -30
- package/dist/chunks/index-1.1.22-28fcrc19.mjs +0 -9
- package/dist/chunks/index-1.1.22-2ea02rg7.mjs +0 -1
- package/dist/chunks/index-1.1.22-2rc4s1ea.mjs +0 -1
- package/dist/chunks/index-1.1.22-33ka1vh2.mjs +0 -1
- package/dist/chunks/index-1.1.22-3sbe52mk.mjs +0 -1
- package/dist/chunks/index-1.1.22-3ze6s7jh.mjs +0 -1
- package/dist/chunks/index-1.1.22-45fydkr4.mjs +0 -1
- package/dist/chunks/index-1.1.22-4jyb49wh.mjs +0 -5
- package/dist/chunks/index-1.1.22-53bbsdht.mjs +0 -23
- package/dist/chunks/index-1.1.22-6dbeceeq.mjs +0 -1
- package/dist/chunks/index-1.1.22-8dntbh7a.mjs +0 -1
- package/dist/chunks/index-1.1.22-8kjk15ba.mjs +0 -1
- package/dist/chunks/index-1.1.22-an0gp01d.mjs +0 -1
- package/dist/chunks/index-1.1.22-cnbxnqdc.mjs +0 -1
- package/dist/chunks/index-1.1.22-fpsntg6z.mjs +0 -1
- package/dist/chunks/index-1.1.22-fv3cwfqb.mjs +0 -1
- package/dist/chunks/index-1.1.22-hjp106ay.mjs +0 -1
- package/dist/chunks/index-1.1.22-njczpq0j.mjs +0 -9
- package/dist/chunks/index-1.1.22-zeprwv8d.mjs +0 -2
- package/dist/chunks/index-1.1.22-zmmyfbe7.mjs +0 -1
- package/dist/chunks/index-1.1.22-zssja3p2.mjs +0 -2
- package/dist/chunks/index-1.1.22-zw38mh26.mjs +0 -1
- package/dist/chunks/init-1.1.22-xnq27h0g.mjs +0 -1
- package/dist/chunks/initReplBridge-1.1.22-y1d60qz3.mjs +0 -1
- package/dist/chunks/ink-1.1.22-k48q879m.mjs +0 -1
- package/dist/chunks/insights-1.1.22-a1cvbm3p.mjs +0 -870
- package/dist/chunks/install-1.1.22-jbzmqsdp.mjs +0 -1
- package/dist/chunks/install-github-app-1.1.22-8a3hpgxj.mjs +0 -149
- package/dist/chunks/install-slack-app-1.1.22-rt6z32mx.mjs +0 -1
- package/dist/chunks/instrumentation-1.1.22-z450bn0g.mjs +0 -1
- package/dist/chunks/interactiveHelpers-1.1.22-6ks3mty3.mjs +0 -1
- package/dist/chunks/keybindings-1.1.22-g9y42jd0.mjs +0 -2
- package/dist/chunks/knowledge-1.1.22-9pnvwgtc.mjs +0 -2
- package/dist/chunks/latestVersionCache-1.1.22-qt6jab06.mjs +0 -1
- package/dist/chunks/loadAgentsDir-1.1.22-sq4k9pva.mjs +0 -1
- package/dist/chunks/loadPluginHooks-1.1.22-vshz13qp.mjs +0 -1
- package/dist/chunks/log-1.1.22-e7ksty3v.mjs +0 -1
- package/dist/chunks/main-1.1.22-6td1g6n1.mjs +0 -1
- package/dist/chunks/managedEnv-1.1.22-htj06t2x.mjs +0 -1
- package/dist/chunks/mcp-1.1.22-18h7drd2.mjs +0 -17
- package/dist/chunks/mcp-1.1.22-ezfae103.mjs +0 -1
- package/dist/chunks/mcp-1.1.22-s120rv95.mjs +0 -4
- package/dist/chunks/mcpb-1.1.22-vm6h475e.mjs +0 -1
- package/dist/chunks/memory-1.1.22-e0tx5g0m.mjs +0 -72
- package/dist/chunks/model-1.1.22-jpnba4j9.mjs +0 -2
- package/dist/chunks/model-1.1.22-ptaehfsq.mjs +0 -1
- package/dist/chunks/node-1.1.22-n2j0h224.mjs +0 -14
- package/dist/chunks/oauth-1.1.22-xryjmqvy.mjs +0 -1
- package/dist/chunks/openaiShim-1.1.22-5g2mvrb0.mjs +0 -14
- package/dist/chunks/output-style-1.1.22-15avrxe6.mjs +0 -1
- package/dist/chunks/package-ZOVFJE7Z-1.1.22-74v22202.mjs +0 -1
- package/dist/chunks/parseConnectUrl-1.1.22-th9g7k2v.mjs +0 -1
- package/dist/chunks/parser-1.1.22-f76s0696.mjs +0 -1
- package/dist/chunks/passes-1.1.22-5067sbnv.mjs +0 -1
- package/dist/chunks/permissions-1.1.22-jq3s11rr.mjs +0 -3
- package/dist/chunks/permissions-1.1.22-yjbnyvja.mjs +0 -1
- package/dist/chunks/plan-1.1.22-a0v77tas.mjs +0 -1
- package/dist/chunks/plist-1.1.22-stjt7ne7.mjs +0 -1
- package/dist/chunks/plugin-1.1.22-ccc18w6d.mjs +0 -29
- package/dist/chunks/pluginStartupCheck-1.1.22-6w6xqk0q.mjs +0 -1
- package/dist/chunks/plugins-1.1.22-14tg96p5.mjs +0 -9
- package/dist/chunks/preActionHook-1.1.22-w8y973hr.mjs +0 -2
- package/dist/chunks/print-1.1.22-fj5my0gp.mjs +0 -57
- package/dist/chunks/process-1.1.22-5ehjyzp9.mjs +0 -1
- package/dist/chunks/processBashCommand-1.1.22-rfx8p83z.mjs +0 -1
- package/dist/chunks/processSlashCommand-1.1.22-zz4rg3b9.mjs +0 -9
- package/dist/chunks/prompt-1.1.22-1k2zk0wc.mjs +0 -1
- package/dist/chunks/prompt-1.1.22-dnwycjh5.mjs +0 -1
- package/dist/chunks/prompts-1.1.22-4p4a5se6.mjs +0 -1
- package/dist/chunks/protocolHandler-1.1.22-cs8w65fv.mjs +0 -13
- package/dist/chunks/provider-1.1.22-bn5s7tah.mjs +0 -2
- package/dist/chunks/providerProfiles-1.1.22-pymtgbvs.mjs +0 -1
- package/dist/chunks/providerValidation-1.1.22-c7c5hbxa.mjs +0 -6
- package/dist/chunks/rate-limit-options-1.1.22-w2qffppm.mjs +0 -1
- package/dist/chunks/registerSubcommands-1.1.22-ab4qb34w.mjs +0 -26
- package/dist/chunks/registry-1.1.22-nsm8d8eb.mjs +0 -1
- package/dist/chunks/release-notes-1.1.22-8x23myzn.mjs +0 -5
- package/dist/chunks/reload-plugins-1.1.22-ak7jhwx7.mjs +0 -2
- package/dist/chunks/remote-env-1.1.22-x7trmcqx.mjs +0 -1
- package/dist/chunks/remoteBridgeCore-1.1.22-hbz0g8ya.mjs +0 -1
- package/dist/chunks/remoteSession-1.1.22-f6jb57v7.mjs +0 -1
- package/dist/chunks/rename-1.1.22-xe35q0k0.mjs +0 -1
- package/dist/chunks/replBridgeHandle-1.1.22-fhwjkdxg.mjs +0 -1
- package/dist/chunks/replLauncher-1.1.22-vv0a8mm6.mjs +0 -1
- package/dist/chunks/resume-1.1.22-2sa8hbck.mjs +0 -2
- package/dist/chunks/rewind-1.1.22-9p74phfv.mjs +0 -1
- package/dist/chunks/rootOptions-1.1.22-d6srkssk.mjs +0 -1
- package/dist/chunks/runWorkflowHeadless-1.1.22-g8m5b1gg.mjs +0 -10
- package/dist/chunks/sandbox-adapter-1.1.22-xfg2fsw2.mjs +0 -1
- package/dist/chunks/sandbox-toggle-1.1.22-dtc44mq5.mjs +0 -1
- package/dist/chunks/session-1.1.22-3tjyetra.mjs +0 -2
- package/dist/chunks/sessionDiscovery-1.1.22-33mn13e8.mjs +0 -1
- package/dist/chunks/sessionFileAccessHooks-1.1.22-d3bejz9v.mjs +0 -1
- package/dist/chunks/sessionStorage-1.1.22-j74sh7m1.mjs +0 -1
- package/dist/chunks/settings-1.1.22-nkarfvpa.mjs +0 -1
- package/dist/chunks/setup-1.1.22-qcehqed4.mjs +0 -12
- package/dist/chunks/sinks-1.1.22-cq9rny33.mjs +0 -1
- package/dist/chunks/skills-1.1.22-ekjpttza.mjs +0 -1
- package/dist/chunks/startupProfiler-1.1.22-9fngk9y1.mjs +0 -1
- package/dist/chunks/startupUpdateCheck-1.1.22-d1k95rad.mjs +0 -1
- package/dist/chunks/state-1.1.22-jwyx08g8.mjs +0 -1
- package/dist/chunks/stats-1.1.22-gbms572d.mjs +0 -6
- package/dist/chunks/status-1.1.22-k6tz1204.mjs +0 -1
- package/dist/chunks/stickers-1.1.22-0p5wcv91.mjs +0 -1
- package/dist/chunks/subprocessEnv-1.1.22-8nw03e6a.mjs +0 -1
- package/dist/chunks/tasks-1.1.22-j3tvhmzv.mjs +0 -1
- package/dist/chunks/teamHelpers-1.1.22-9h9wz2vt.mjs +0 -1
- package/dist/chunks/teammateModeSnapshot-1.1.22-az279j20.mjs +0 -1
- package/dist/chunks/teleport-1.1.22-x65tzb7k.mjs +0 -1
- package/dist/chunks/terminalSetup-1.1.22-mgtn4k1h.mjs +0 -1
- package/dist/chunks/theme-1.1.22-ytcpmqf6.mjs +0 -1
- package/dist/chunks/thinkback-1.1.22-r3tqf574.mjs +0 -1
- package/dist/chunks/thinkback-play-1.1.22-gy5pmk8r.mjs +0 -1
- package/dist/chunks/toolPool-1.1.22-enzkj5fj.mjs +0 -1
- package/dist/chunks/toolSearch-1.1.22-nks2rxm6.mjs +0 -1
- package/dist/chunks/tools-1.1.22-vngj7bpe.mjs +0 -1
- package/dist/chunks/trustedDevice-1.1.22-521tzk05.mjs +0 -1
- package/dist/chunks/turndown.cjs-1.1.22-thexftmp.mjs +0 -69
- package/dist/chunks/types-1.1.22-jp8m10f1.mjs +0 -1
- package/dist/chunks/ultrareviewCommand-1.1.22-tjrn8agz.mjs +0 -4
- package/dist/chunks/update-1.1.22-n10ztshv.mjs +0 -72
- package/dist/chunks/upgrade-1.1.22-e0pjbtcd.mjs +0 -1
- package/dist/chunks/upload-1.1.22-e00jdttg.mjs +0 -7
- package/dist/chunks/upstreamproxy-1.1.22-1qmxkbg7.mjs +0 -14
- package/dist/chunks/url-handler-napi-1.1.22-jj7mv0bn.mjs +0 -1
- package/dist/chunks/usage-1.1.22-s54ykz8x.mjs +0 -1
- package/dist/chunks/util-1.1.22-wntx1394.mjs +0 -1
- package/dist/chunks/utils-1.1.22-wmew7b5j.mjs +0 -1
- package/dist/chunks/vim-1.1.22-qddsv4he.mjs +0 -1
- package/dist/chunks/watchLoop-1.1.22-1z60qm0a.mjs +0 -13
- package/dist/chunks/watcher-1.1.22-100q2zbm.mjs +0 -1
- package/dist/chunks/wiki-1.1.22-akk70ycq.mjs +0 -132
- package/dist/chunks/workflows-1.1.22-ed33rwny.mjs +0 -1
- package/dist/chunks/worktree-1.1.22-f3b1rr0f.mjs +0 -1
- package/dist/chunks/worktreeModeEnabled-1.1.22-taeyewr8.mjs +0 -1
- package/dist/chunks/wrapper-1.1.22-hayqq9zr.mjs +0 -7
- /package/dist/chunks/{cli-1.1.22-ws6y62na.mjs → cli-1.1.24-k5cs55nk.mjs} +0 -0
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{_ta as M}from"./cli-1.1.24-hty94kzp.mjs";function J(){return"prod"}function W(){if(process.env.CLAUDE_CODE_CUSTOM_OAUTH_URL)return"-custom-oauth";switch(J()){case"local":return"-local-oauth";case"staging":return"-staging-oauth";case"prod":return""}}function $(){let k=process.env.CLAUDE_LOCAL_OAUTH_API_BASE?.replace(/\/$/,"")??"http://localhost:8000",x=process.env.CLAUDE_LOCAL_OAUTH_APPS_BASE?.replace(/\/$/,"")??"http://localhost:4000",q=process.env.CLAUDE_LOCAL_OAUTH_CONSOLE_BASE?.replace(/\/$/,"")??"http://localhost:3000";return{BASE_API_URL:k,CONSOLE_AUTHORIZE_URL:`${q}/oauth/authorize`,CLAUDE_AI_AUTHORIZE_URL:`${x}/oauth/authorize`,CLAUDE_AI_ORIGIN:x,TOKEN_URL:`${k}/v1/oauth/token`,API_KEY_URL:`${k}/api/oauth/claude_cli/create_api_key`,ROLES_URL:`${k}/api/oauth/claude_cli/roles`,CONSOLE_SUCCESS_URL:`${q}/buy_credits?returnUrl=/oauth/code/success%3Fapp%3Dclaude-code`,CLAUDEAI_SUCCESS_URL:`${q}/oauth/code/success?app=claude-code`,MANUAL_REDIRECT_URL:`${q}/oauth/code/callback`,CLIENT_ID:"22422756-60c9-4084-8eb7-27705fd5cf9a",OAUTH_FILE_SUFFIX:"-local-oauth",MCP_PROXY_URL:"http://localhost:8205",MCP_PROXY_PATH:"/v1/toolbox/shttp/mcp/{server_id}"}}function h(){let k=(()=>{switch(J()){case"local":return $();case"staging":return z;case"prod":return z}})(),x=process.env.CLAUDE_CODE_CUSTOM_OAUTH_URL;if(x){let j=x.replace(/\/$/,"");if(!m.includes(j))throw Error("CLAUDE_CODE_CUSTOM_OAUTH_URL is not an approved endpoint.");k={...k,BASE_API_URL:j,CONSOLE_AUTHORIZE_URL:`${j}/oauth/authorize`,CLAUDE_AI_AUTHORIZE_URL:`${j}/oauth/authorize`,CLAUDE_AI_ORIGIN:j,TOKEN_URL:`${j}/v1/oauth/token`,API_KEY_URL:`${j}/api/oauth/claude_cli/create_api_key`,ROLES_URL:`${j}/api/oauth/claude_cli/roles`,CONSOLE_SUCCESS_URL:`${j}/oauth/code/success?app=claude-code`,CLAUDEAI_SUCCESS_URL:`${j}/oauth/code/success?app=claude-code`,MANUAL_REDIRECT_URL:`${j}/oauth/code/callback`,OAUTH_FILE_SUFFIX:"-custom-oauth"}}let q=process.env.CLAUDE_CODE_OAUTH_CLIENT_ID;if(q)k={...k,CLIENT_ID:q};return k}var Q="user:inference",K="user:profile",V="org:create_api_key",X="oauth-2025-04-20",Y,Z,y,z,G="https://claude.ai/oauth/claude-code-client-metadata",m;var w=M(()=>{Y=[V,K],Z=[K,Q,"user:sessions:claude_code","user:mcp_servers","user:file_upload"],y=Array.from(new Set([...Y,...Z])),z={BASE_API_URL:"https://api.anthropic.com",CONSOLE_AUTHORIZE_URL:"https://platform.claude.com/oauth/authorize",CLAUDE_AI_AUTHORIZE_URL:"https://claude.com/cai/oauth/authorize",CLAUDE_AI_ORIGIN:"https://claude.ai",TOKEN_URL:"https://platform.claude.com/v1/oauth/token",API_KEY_URL:"https://api.anthropic.com/api/oauth/claude_cli/create_api_key",ROLES_URL:"https://api.anthropic.com/api/oauth/claude_cli/roles",CONSOLE_SUCCESS_URL:"https://platform.claude.com/buy_credits?returnUrl=/oauth/code/success%3Fapp%3Dclaude-code",CLAUDEAI_SUCCESS_URL:"https://platform.claude.com/oauth/code/success?app=claude-code",MANUAL_REDIRECT_URL:"https://platform.claude.com/oauth/code/callback",CLIENT_ID:"9d1c250a-e61b-44d9-88ed-5944d1962f5e",OAUTH_FILE_SUFFIX:"",MCP_PROXY_URL:"https://mcp-proxy.anthropic.com",MCP_PROXY_PATH:"/v1/mcp/{server_id}"};m=["https://beacon.claude-ai.staging.ant.dev","https://claude.fedstart.com","https://claude-staging.fedstart.com"]});
|
|
2
|
+
export{W as uka,Q as vka,K as wka,X as xka,Y as yka,Z as zka,y as Aka,G as Bka,h as Cka,w as Dka};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{vb as c}from"./cli-1.1.24-vg493phv.mjs";import{Ac as v,Ec as Wq}from"./cli-1.1.24-s0dcztj8.mjs";import{Hc as I,Ic as S,Jc as $,Kc as Xq}from"./cli-1.1.24-5jpkct15.mjs";import{Cp as C,Ep as r,Kz as A,Lz as Bq,Pz as _,Rz as Gq,XL as f,YL as Tq,av as N,bv as e,hG as E,iG as Qq,kE as M,nN as P,py as L,qE as Jq,qN as Vq,qy as h,sy as qq}from"./cli-1.1.24-2qkkzsk3.mjs";import{L4 as s}from"./cli-1.1.24-ys3jea4v.mjs";import{Bha as F,Jha as a,Waa as w,Yaa as t,m$ as D,o$ as n}from"./cli-1.1.24-pe23qamd.mjs";import{Eka as x,Hka as d}from"./cli-1.1.24-prprq6xe.mjs";import{Hla as j,Kla as o}from"./cli-1.1.24-zey4mks2.mjs";import{ema as y,mma as l}from"./cli-1.1.24-eh4c00hd.mjs";import{Wta as p}from"./cli-1.1.24-hty94kzp.mjs";Qq();d();Gq();qq();Xq();t();o();n();l();a();e();Tq();Jq();Bq();r();var V=p(s(),1);Wq();Vq();function hq({enabled:W=!0}={}){let b=V.useSyncExternalStore(S,I,I),H=h(),O=L((J)=>J.plugins.needsRefresh),{addNotification:z}=E(),R=V.useCallback(async()=>{try{let{enabled:J,disabled:T,errors:Q}=await P();await c();let X=v();if(Object.keys(X).length>0)z({key:"plugin-delisted-flagged",text:"Plugins flagged. Check /plugins",color:"warning",priority:"high"});let Y=[],Z=[];try{Y=await f(),$(Y)}catch(q){let B=q instanceof Error?q.message:String(q);Q.push({type:"generic-error",source:"plugin-commands",error:`Failed to load plugin commands: ${B}`}),$([])}try{Z=await N()}catch(q){let B=q instanceof Error?q.message:String(q);Q.push({type:"generic-error",source:"plugin-agents",error:`Failed to load plugin agents: ${B}`})}try{await M()}catch(q){let B=q instanceof Error?q.message:String(q);Q.push({type:"generic-error",source:"plugin-hooks",error:`Failed to load plugin hooks: ${B}`})}let u=(await Promise.all(J.map(async(q)=>{if(q.mcpServers)return Object.keys(q.mcpServers).length;let B=await C(q,Q);if(B)q.mcpServers=B;return B?Object.keys(B).length:0}))).reduce((q,B)=>q+B,0),m=(await Promise.all(J.map(async(q)=>{if(q.lspServers)return Object.keys(q.lspServers).length;let B=await A(q,Q);if(B)q.lspServers=B;return B?Object.keys(B).length:0}))).reduce((q,B)=>q+B,0);_(),H((q)=>{let B=q.plugins.errors.filter((G)=>G.source==="lsp-manager"||G.source.startsWith("plugin:")),K=new Set(Q.map((G)=>G.type==="generic-error"?`generic-error:${G.source}:${G.error}`:`${G.type}:${G.source}`)),U=[...B.filter((G)=>{let i=G.type==="generic-error"?`generic-error:${G.source}:${G.error}`:`${G.type}:${G.source}`;return!K.has(i)}),...Q];return{...q,plugins:{...q.plugins,enabled:J,disabled:T,commands:[],errors:U}}}),j(`Loaded plugins - Enabled: ${J.length}, Disabled: ${T.length}, Commands: ${Y.length}, Agents: ${Z.length}, Errors: ${Q.length}`);let g=J.reduce((q,B)=>{if(!B.hooksConfig)return q;return q+Object.values(B.hooksConfig).reduce((K,k)=>K+(k?.reduce((U,G)=>U+G.hooks.length,0)??0),0)},0);return{enabled_count:J.length,disabled_count:T.length,inline_count:w(J,(q)=>q.source.endsWith("@inline")),marketplace_count:w(J,(q)=>!q.source.endsWith("@inline")),error_count:Q.length,skill_count:Y.length,agent_count:Z.length,hook_count:g,mcp_count:u,lsp_count:m}}catch(J){let T=y(J);return F(T),j(`Error loading plugins: ${J}`),$([]),H((Q)=>{let X=Q.plugins.errors.filter((Z)=>Z.source==="lsp-manager"||Z.source.startsWith("plugin:")),Y={type:"generic-error",source:"plugin-system",error:T.message};return{...Q,plugins:{...Q.plugins,enabled:[],disabled:[],commands:[],errors:[...X,Y]}}}),{enabled_count:0,disabled_count:0,inline_count:0,marketplace_count:0,error_count:1,skill_count:0,agent_count:0,hook_count:0,mcp_count:0,lsp_count:0,load_failed:!0,ant_enabled_names:void 0}}},[H,z]);return V.useEffect(()=>{if(!W)return;R().then((J)=>{let{ant_enabled_names:T,...Q}=J,X={...Q,has_custom_plugin_cache_dir:!!process.env.CLAUDIN_PLUGIN_CACHE_DIR};x("",{...X,...T!==void 0&&{enabled_names:T}}),D("info","tengu_plugins_loaded",X)})},[R,W]),V.useEffect(()=>{if(W)return;$([])},[W]),V.useEffect(()=>{if(!W||!O)return;z({key:"plugin-reload-pending",text:"Plugins changed. Run /reload-plugins to activate.",color:"suggestion",priority:"low"})},[W,O,z]),W?b:[]}
|
|
2
|
+
export{hq as ub};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{VR as x,YR as B}from"./cli-1.1.24-2qkkzsk3.mjs";import{_ta as z}from"./cli-1.1.24-hty94kzp.mjs";function H(q){if(!q)return 0;return q.activeAgents.filter((b)=>b.source!=="built-in").reduce((b,w)=>{let y=`${w.agentType}: ${w.whenToUse}`;return b+x(y)},0)}var G=15000;var A=z(()=>{B()});
|
|
2
|
+
export{G as Pg,H as Qg,A as Rg};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import{Be as Eq,xe as c}from"./cli-1.1.24-e960m296.mjs";import{Bp as Mq,DM as n,Fp as i,Hp as Rq,JM as e,KM as P,Lp as A,Np as D,OM as jq,Op as Aq,PM as O,Pp as h,QM as qq,Qp as S,Rp as Fq,SM as I,TM as Gq,ZM as Cq,aN as b,bN as Lq,eN as Hq,fN as Jq,fu as l,gu as wq,hM as v,hN as vq,iM as m,iN as y,jN as Qq,kM as Oq,kN as Xq,lN as Yq,mN as $q,nN as d,qN as Dq,vp as s,wp as Tq,zp as t}from"./cli-1.1.24-2qkkzsk3.mjs";import{Bea as L,Bha as a,Jha as Bq,Rea as _q,Wda as V,cea as Kq,zea as F}from"./cli-1.1.24-pe23qamd.mjs";import{tla as p,xla as xq}from"./cli-1.1.24-zey4mks2.mjs";import{ema as o,hma as N,mma as Wq}from"./cli-1.1.24-eh4c00hd.mjs";import{dsa as Uq,koa as f}from"./cli-1.1.24-bnm1yphs.mjs";import{_ta as Zq}from"./cli-1.1.24-hty94kzp.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(U){a(o(U));continue}}if(!J||!Y){let $=X?`marketplace "${X}"`:"any configured marketplace";return{success:!1,message:`Plugin "${G}" not found in ${$}`}}let Z=J,x=`${Z.name}@${Y}`,Q=await Jq({pluginId:x,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: ${x} (scope: ${H})${Q.depNote}`,pluginId:x,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),x=F(Z),Q,$;if(z)Q=Object.keys(x?.enabledPlugins??{}).find((W)=>W===q||W===z.name||W.startsWith(`${z.name}@`))??(q.includes("@")?q:z.name),$=z.name;else{let W=yq(q);if(!W)return{success:!1,message:`Plugin "${q}" not found in installed plugins`};Q=W.pluginId,$=W.pluginName}let B=zq(H),U=O().plugins[Q],M=U?.find((W)=>W.scope===H&&W.projectPath===B);if(!M){let{scope:W}=kq(Q);if(W!==H&&U&&U.length>0){if(W==="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 ${W} scope, not ${H}. Use --scope ${W} 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,_={...x?.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),x=F(Z)?.enabledPlugins?.[J],Q={user:0,project:1,local:2},$=G&&z&&Q[G]>Q[z.scope];if(G&&x===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&&!$?x===!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:U}=L(Z,{enabledPlugins:{...F(Z)?.enabledPlugins,[J]:H}});if(U)return{success:!1,message:`Failed to ${X} plugin: ${U.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 UG(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(),x=J.version,Q,$,B=!1,K;if(typeof G.source!=="string"){let U=await Yq(G.source,{manifest:{name:G.name}});Q=U.path,B=!0,K=U.gitCommitSha,$=await b(q,G.source,U.manifest,U.path,G.version,U.gitCommitSha)}else{let U;try{U=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=U.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 U=y(q,$),M=Qq(q,$);if(J.version===$||J.installPath===U||J.installPath===M)return{success:!0,message:`${H} is already at the latest version (${$}).`,pluginId:q,newVersion:$,oldVersion:x,alreadyUpToDate:!0,scope:Y};U=await Xq(Q,q,$,G);let _=J.installPath;if(Gq(q,Y,z,U,$,K),_&&_!==U){let j=I();if(!Object.values(j.plugins).some((E)=>E.some((W)=>W.installPath===_)))await m(_)}let T=z?`${Y} (${z})`:Y;return{success:!0,message:`Plugin "${H}" updated from ${x||"unknown"} to ${$} for scope ${T}. Restart to apply changes.`,pluginId:q,newVersion:$,oldVersion:x,scope:Y}}finally{if(B&&Q!==y(q,$))await Z.rm(Q,{recursive:!0,force:!0})}}var k,HG;var hq=Zq(()=>{Uq();Rq();Wq();xq();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 ke,HG as le,JG as me,QG as ne,kq as oe,XG as pe,YG as qe,$G as re,zG as se,ZG as te,UG as ue,hq as ve};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{fj as p,gj as z}from"./cli-1.1.24-m6pr9whf.mjs";import{hj as q,ij as A}from"./cli-1.1.24-skqekybx.mjs";import{I4 as k,K4 as h}from"./cli-1.1.24-9dnr05fm.mjs";import{_ta as y}from"./cli-1.1.24-hty94kzp.mjs";async function G(b,v){let f=await q();if(f.type==="message")return b(f.value),null;return k(p,{startingMessage:"Starting new login following /extra-usage. Exit with Ctrl-C to use existing account.",onDone:(w)=>{v.onChangeAPIKey(),b(w?"Login successful":"Login interrupted")}})}var B=y(()=>{z();A();h()});
|
|
2
|
+
export{G as dj,B as ej};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{_ta as b}from"./cli-1.1.24-hty94kzp.mjs";var j=86400000,k="Remote Control is only available with claude.ai subscriptions. Run `/provider` and sign in with your claude.ai account.",q="Error: You must be logged in to use Remote Control.\n\nRemote Control is only available with claude.ai subscriptions. Run `/provider` and sign in with your claude.ai account.",w="Remote Control disconnected.";var g=()=>{};
|
|
2
|
+
export{j as ce,k as de,q as ee,w as fe,g as ge};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{$$ as T,paa as $}from"./cli-1.1.24-pe23qamd.mjs";import{Qja as J,Sja as Y}from"./cli-1.1.24-n7r6kv9g.mjs";import{Hla as E,Kla as X}from"./cli-1.1.24-zey4mks2.mjs";import{_ta as V}from"./cli-1.1.24-hty94kzp.mjs";function j(){B.clear()}async function P(){let q=await Z();if(!q)return null;if(q.host!=="github.com")return null;return`${q.owner}/${q.name}`}async function Z(){let q=J();if(B.has(q))return B.get(q)??null;try{let x=await T();if(E(`Git remote URL: ${x}`),!x)return E("No git remote URL found"),B.set(q,null),null;let z=Q(x);return E(`Parsed repository: ${z?`${z.host}/${z.owner}/${z.name}`:null} from URL: ${x}`),B.set(q,z),z}catch(x){return E(`Error detecting repository: ${x}`),B.set(q,null),null}}function S(){let q=B.get(J());if(!q||q.host!=="github.com")return null;return`${q.owner}/${q.name}`}function Q(q){let x=q.trim(),z=x.match(/^git@([^:]+):([^/]+)\/([^/]+?)(?:\.git)?$/);if(z?.[1]&&z[2]&&z[3]){if(!O(z[1]))return null;return{host:z[1],owner:z[2],name:z[3]}}let A=x.match(/^(https?|ssh|git):\/\/(?:[^@]+@)?([^/:]+(?::\d+)?)\/([^/]+)\/([^/]+?)(?:\.git)?$/);if(A?.[1]&&A[2]&&A[3]&&A[4]){let I=A[1],K=A[2],N=K.split(":")[0]??"";if(!O(N))return null;return{host:I==="https"||I==="http"?K:N,owner:A[3],name:A[4]}}return null}function D(q){let x=q.trim(),z=Q(x);if(z){if(z.host!=="github.com")return null;return`${z.owner}/${z.name}`}if(!x.includes("://")&&!x.includes("@")&&x.includes("/")){let A=x.split("/");if(A.length===2&&A[0]&&A[1]){let I=A[1].replace(/\.git$/,"");return`${A[0]}/${I}`}}return E(`Could not parse repository from: ${x}`),null}function O(q){if(!q.includes("."))return!1;let x=q.split(".").pop();if(!x)return!1;return/^[a-zA-Z]+$/.test(x)}var B;var _=V(()=>{Y();X();$();B=new Map});
|
|
2
|
+
export{j as N_,P as O_,Z as P_,S as Q_,Q as R_,D as S_,_ as T_};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{g0 as f}from"./cli-1.1.24-vf59rwy3.mjs";import{I4 as n,K4 as i}from"./cli-1.1.24-9dnr05fm.mjs";import{L4 as M}from"./cli-1.1.24-ys3jea4v.mjs";import{Wta as o}from"./cli-1.1.24-hty94kzp.mjs";i();var p=o(f(),1),r=o(M(),1),d=r.createContext(void 0);function a(F){let e=p.c(3),{getFpsMetrics:s,children:c}=F,t;if(e[0]!==c||e[1]!==s)t=n(d.Provider,{value:s,children:c}),e[0]=c,e[1]=s,e[2]=t;else t=e[2];return t}function l(){return r.useContext(d)}
|
|
2
|
+
export{a as Tb,l as Ub};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import{DQ as E,EQ as MQ,Pm as h,Qm as wQ,Rm as u,Sm as LQ,rj as jQ}from"./cli-1.1.24-2qkkzsk3.mjs";import{Hla as j,Kla as XQ,tla as U,xla as UQ}from"./cli-1.1.24-zey4mks2.mjs";import{gma as _,mma as vQ}from"./cli-1.1.24-eh4c00hd.mjs";import{Wta as GQ,_ta as C}from"./cli-1.1.24-hty94kzp.mjs";function WQ(Z){let Q=[],$=null;return Z.split(`
|
|
2
|
+
`).forEach((W,Y)=>{let J=r.exec(W);if(J){$=$===null?J[1]??"":null;return}Q.push({text:W,number:Y+1,fence:$})}),Q}function YQ(Z){return Z.split(/\s+/).map((Q)=>Q.replace(/[,;]+$/,"")).filter((Q)=>Q.length>0)}function qQ(Z){return Z.match(a)?.length??0}function JQ(Z,Q,$){let W="",Y=[];for(let{text:J,number:q,fence:z}of Z){if(z===null||b.has(z))continue;let V=s.exec(J);if(V?.[1]!==void 0){W=V[1],Y=[];continue}let H=l.exec(J);if(!H)continue;let K=qQ(H[1]??""),B=Y[K]??W,G=J.slice(H[0].length).split(o)[0]??"",w=!1,X=null;for(let L of YQ(G)){let S=t.exec(L);if(S?.[1]!==void 0&&X!==null){$.push({path:X,claimed:Number(S[1].replace(/,/g,"")),line:J,lineNumber:q}),X=null;continue}X=null;let y=n.test(L);if(!y&&!i.test(L))continue;let M=B+L;if(Q.push({path:M,line:J,lineNumber:q}),!y)continue;if(X=M,!w)Y[K+1]=M,w=!0}Y.length=Math.min(Y.length,K+2)}}function VQ(Z,Q,$){for(let{text:W,number:Y,fence:J}of Z){if(J!==null&&b.has(J))continue;for(let q of W.matchAll(e)){let z=q[1],V=q[2];if(z===void 0||V===void 0)continue;let H=QQ.exec(V);if(H?.[1]!==void 0){let B=H[2]?.toLowerCase()==="k"?1000:1,G=Math.round(Number(H[1].replace(/,/g,""))*B);if(Number.isFinite(G)&&G>0)Q.push({file:z,claimed:G,line:W,lineNumber:Y});continue}let K=V.split(",").map((B)=>B.trim());if(K.length===0||K.some((B)=>B.length===0))continue;if(!K.every((B)=>ZQ.test(B)&&$Q.test(B)))continue;$.push({file:z,symbols:K,line:W,lineNumber:Y})}}}function I(Z){let Q=WQ(Z),$={fencedPaths:[],dirCounts:[],attributions:[],lineCounts:[]};return JQ(Q,$.fencedPaths,$.dirCounts),VQ(Q,$.lineCounts,$.attributions),$}function A(Z,Q){if(Q.includes("/"))return Z.includes(Q)?Q:null;let $=null;for(let W of Z){if(!W.endsWith(`/${Q}`)&&W!==Q)continue;if($!==null)return null;$=W}return $}function T(Z,Q,$){let W=Q.endsWith("/")?Q:`${Q}/`;return Z.filter((Y)=>Y.startsWith(W)&&$.some((J)=>Y.endsWith(J))).length}function k(Z){let Q=Z.slice(Z.lastIndexOf("/")+1),$=Q.lastIndexOf(".");if($<=0)return null;return Q.slice($).toLowerCase()}function P(Z){let Q=new Map;for(let $ of Z){let W=k($);if(W===null)continue;Q.set(W,(Q.get(W)??0)+1)}return Q}function O(Z){let Q=[...Z.values()].reduce((J,q)=>J+q,0);if(Q===0)return[];let $=[...Z].sort(([,J],[,q])=>q-J),W=[],Y=0;for(let[J,q]of $){if(W.length>=KQ)break;if(W.length>0&&q/Q<BQ)break;if(W.push(J),Y+=q,Y/Q>=zQ)break}return W}function N(Z){let Q=Z.filter((W)=>{let Y=k(W);return Y!==null&&!HQ.has(Y)}),$=O(P(Q));return $.length>0?$:O(P(Z))}function p(Z,Q){return Math.abs(Q-Z)>Math.max(3,Z*0.1)}function x(Z,Q){return Q*2<Z||Z*2<Q}var b,r,l,a,s,o,n,i,t,e,QQ,ZQ,$Q,HQ,zQ=0.9,BQ=0.02,KQ=6;var F=C(()=>{b=new Set(["typescript","ts","tsx","javascript","js","jsx","json","jsonc","yaml","yml","diff","python","go","rust"]),r=/^\s*```(\S*)/,l=/^((?:[│|]\s{0,4}|\s{4}|\s{2})*)(?:├──|└──|├─|└─|\|--)\s*/,a=/[│|]\s{0,4}|\s{4}|\s{2}/g,s=/^((?:[\w.@-]+\/)+)\s*$/,o=/\s*(?:←|<-|<--)\s*/,n=/^[\w.@-]+\/$/,i=/^[\w.@-]*[\w-]\.[a-zA-Z]\w{0,3}$/,t=/^\((\d[\d,]*)\)$/,e=/((?:[\w.@-]+\/)*[\w.@-]*[\w-]\.[a-zA-Z]\w{0,3})`?\s*\(([^()\n]*)\)/g,QQ=/~?(\d[\d,]*(?:\.\d+)?)\s*(k?)[-\s]lines?\b/i,ZQ=/^[A-Za-z_$][\w$]*$/,$Q=/[a-z][A-Z]|_/;HQ=new Set([".md",".mdx",".txt",".json",".jsonc",".yml",".yaml",".toml",".mod",".ini",".cfg",".lock",".snap",".csv",".svg",".png",".jpg",".jpeg",".gif",".ico",".webp",".pdf",".pem",".exe",".bin",".wasm",".map"])});import{execFile as AQ}from"child_process";import{isAbsolute as f,join as v,relative as DQ,sep as R}from"path";import{promisify as SQ}from"util";async function RQ(Z){try{let{stdout:Q}=await OQ("git",["-c","core.quotepath=false","ls-files"],{cwd:Z,encoding:"utf8",timeout:CQ,maxBuffer:bQ});return Q.split(`
|
|
3
|
+
`).filter(($)=>$.length>0)}catch(Q){return j(`[rulesLint] git ls-files failed in ${Z}: ${String(Q)}`),null}}function gQ(Z){if(Z.length===0)return!1;if(NQ.some((Q)=>Z.includes(Q)))return!1;if(f(Z))return!1;if(!Z.includes("/"))return!1;return/^[\w.@-]+(?:\/[\w.@-]+)+\/?$/.test(Z)}function D(Z,Q){let $=U();if($.existsSync(v(Z,Q)))return!0;if(!g.test(Q))return!1;let W=Q.replace(g,"");return[".ts",".tsx"].some((Y)=>$.existsSync(v(Z,W+Y)))}function d(Z,Q){let $=Q.split("/")[0];if(!$)return!1;let W=U(),Y=v(Z,$);try{return W.existsSync(Y)&&W.statSync(Y).isDirectory()}catch{return!1}}function _Q(Z){let Q=new Set,$=[];for(let W of Z.split(`
|
|
4
|
+
`))for(let Y of W.matchAll(IQ)){let J=Y[1];if(!J)continue;let q=J.trim().replace(kQ,"").replace(TQ,"");if(gQ(q)&&!Q.has(q))Q.add(q),$.push({path:q,line:W})}return $}async function hQ(Z,Q){let $=U();try{let W=await $.readFile(v(Z,Q),{encoding:"utf8"}),Y=W.split(`
|
|
5
|
+
`).length;return W.endsWith(`
|
|
6
|
+
`)?Y-1:Y}catch(W){return j(`[rulesLint] unreadable source ${Q}: ${String(W)}`),null}}async function uQ(Z,Q){let $=h(Q);if($===null)return null;let W=U(),Y;try{Y=await W.readFile(v(Z,Q),{encoding:"utf8"})}catch(q){return j(`[rulesLint] unreadable source ${Q}: ${String(q)}`),null}if(xQ.test(Y))return null;let J=new Set(u(Y,$).map((q)=>q.name));for(let q of Y.matchAll(FQ))for(let z of(q[1]??"").split(",")){let V=z.trim().split(/\s+as\s+/).pop()?.trim();if(V)J.add(V.replace(/^type\s+/,""))}return J}async function EQ(Z,Q,$,W,Y){let J=N(W);for(let{path:q,lineNumber:z}of $.fencedPaths){if(!d(Z,q))continue;if(D(Z,q))continue;Y.push({file:Q,line:z,kind:"missing_path",severity:"warning",message:`names \`${q}\` inside a fenced block, which does not exist`,fix:"Update or remove it — a map that lists a directory the tree no longer has sends the agent to search for nothing."})}for(let{path:q,claimed:z,lineNumber:V}of $.dirCounts){if(!D(Z,q))continue;let H=T(W,q,J);if(!p(z,H))continue;Y.push({file:Q,line:V,kind:"dir_count_drift",severity:"warning",message:`says \`${q}\` holds ${z} files; it holds ${H}`,fix:"Re-count or run `bun run verify:rules --fix`. A gap this size means the slice moved, split or died, not that it grew."})}for(let{file:q,claimed:z,lineNumber:V}of $.lineCounts){let H=A(W,q);if(H===null)continue;let K=await hQ(Z,H);if(K===null||!x(z,K))continue;Y.push({file:Q,line:V,kind:"stale_line_count",severity:"warning",message:`says \`${H}\` is ~${z.toLocaleString()} lines; it is ${K.toLocaleString()}`,fix:"Re-measure, or point the claim at the directory — a barrel and its implementation siblings are the usual mix-up."})}for(let{file:q,symbols:z,lineNumber:V}of $.attributions){let H=A(W,q);if(H===null)continue;let K=await uQ(Z,H);if(K===null)continue;let B=z.filter((G)=>!K.has(G));if(B.length===0)continue;Y.push({file:Q,line:V,kind:"wrong_attribution",severity:"warning",message:`places ${B.map((G)=>`\`${G}\``).join(", ")} in \`${H}\`, which does not define ${B.length===1?"it":"them"}`,fix:"Attribute the symbol to the file that declares it — importing a name is not defining it, and the map is what decides where the agent greps."})}}async function c(Z){let Q=U(),$;try{$=await Q.readdir(Z)}catch(Y){let J=_(Y);if(J==="ENOENT"||J==="EACCES"||J==="ENOTDIR")return[];throw Y}let W=[];for(let Y of $){let J=v(Z,Y.name);if(Y.isDirectory())W.push(...await c(J));else if(Y.isFile()&&Y.name.endsWith(".md"))W.push(J)}return W.sort()}function mQ(Z,Q){let $=m.default().add(Z);return Q.some((W)=>{if(W.startsWith("..")||f(W))return!1;return $.ignores(W)})}async function QZ(Z={}){let Q=U(),$=Z.root??Q.cwd(),W=await c(v($,PQ)),Y=yQ.map((V)=>v($,V)).filter((V)=>Q.existsSync(V)),J=Z.trackedFiles??await RQ($)??null,q=[],z=[];for(let V of[...W,...Y]){let H;try{H=await Q.readFile(V,{encoding:"utf8"})}catch(G){j(`[rulesLint] unreadable rule file ${V}: ${String(G)}`);continue}let K=!V.includes(`${R}rules${R}`),B=E(H);if(K)z.push({file:V,chars:H.length});if(!K){for(let G of B.unsupportedKeys)q.push({file:V,kind:"unsupported_key",severity:"error",message:`frontmatter key \`${G}\` is not supported and is ignored`,fix:G==="globs"?"Rename `globs:` to `paths:` — as written, the rule loads into every session instead of the files you scoped it to.":"Remove the key. Only `paths` is read; anything else leaves the rule unconditional."});if(B.malformedPaths)q.push({file:V,kind:"malformed_paths",severity:"error",message:"`paths:` is not a string or a list of strings",fix:'Write `paths: "src/**/*.ts"` or a YAML list of strings.'});if(!B.paths)z.push({file:V,chars:H.length});else if(J){if(!mQ(B.paths,J))q.push({file:V,kind:"inert_paths",severity:"error",message:`\`paths:\` matches no tracked file (${B.paths.join(", ")})`,fix:"Fix the patterns. As written the rule never loads, which is indistinguishable from a working rule at runtime."})}}for(let{path:G,line:w}of _Q(B.content)){if(!d($,G))continue;if(D($,G))continue;if(pQ.test(w))continue;q.push({file:V,kind:"missing_path",severity:"warning",message:`cites \`${G}\`, which does not exist`,fix:"Update or remove the reference — a rule that names a moved file sends the agent to the wrong place."})}if(J)await EQ($,V,I(H),J,q)}return{findings:q,unconditional:z,unconditionalChars:z.reduce((V,H)=>V+H.chars,0),filesChecked:W.length+Y.length}}function ZZ(Z,Q){let $=DQ(Z,Q);return $.length>0&&!$.startsWith("..")?$:Q}var m,yQ,PQ,OQ,CQ=1e4,bQ=33554432,IQ,TQ,kQ,NQ,pQ,g,xQ,FQ;var fQ=C(()=>{XQ();vQ();UQ();MQ();F();wQ();LQ();m=GQ(jQ(),1),yQ=["AGENTS.md","CLAUDE.md"],PQ=v(".claudin","rules"),OQ=SQ(AQ),IQ=/`([^`\n]+)`/g,TQ=/:\d+(?:-\d+)?$/,kQ=/[.,;:)\]]+$/,NQ=["<",">","*","~","...","$","|","://"," ","path/to"],pQ=/\b(removed|deleted|dropped|no longer|used to|formerly|superseded)\b/i,g=/\.js$/,xQ=/^\s*export\s+\*\s+from\s/m,FQ=/^\s*export\s*\{([^}]*)\}/gm});
|
|
7
|
+
export{o as xg,I as yg,A as zg,T as Ag,N as Bg,p as Cg,x as Dg,F as Eg,RQ as Fg,QZ as Gg,ZZ as Hg,fQ as Ig};
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import{$c as sq,_c as K2}from"./cli-1.1.24-93bhcjrs.mjs";import{ad as V2,bd as X2,cd as a0,dd as y2,fd as rq}from"./cli-1.1.24-228jgyfg.mjs";import{gd as _0,jd as tq}from"./cli-1.1.24-w4yh1rwm.mjs";import{Eh as m2,Fh as iq}from"./cli-1.1.24-8nrya8sx.mjs";import{$G as dq,Ax as Y2,Bq as wz,Bx as pq,Cq as Lq,Dq as Bz,Eq as jz,Fq as Oz,Gq as Uz,Hq as J0,Iq as X4,Jq as Fq,KG as L0,Kq as O4,LG as t4,MI as r4,Mq as Ez,NI as r2,Nq as $2,PI as nq,Pq as uz,Pr as J2,QI as aq,Qr as lq,UG as C,VG as t2,_G as U4,jq as Cz,kq as fz,lq as gz,mq as xz,nq as R2,oH as Wz,oq as G0,pH as mq,pq as K4,qH as mz,qq as cz,qy as W2,rH as Vz,rq as lz,sH as Xz,sq as Iq,sy as vq,tH as Vq,tq as j4,vq as az,wq as Q2,xx as Z2,yq as iz,yx as N2,zx as G2}from"./cli-1.1.24-2qkkzsk3.mjs";import{eZ as a,gZ as xq,sZ as z2,tZ as cq}from"./cli-1.1.24-4p3bjzm5.mjs";import{F1 as w,H1 as N,k2 as x4}from"./cli-1.1.24-vf59rwy3.mjs";import{l3 as c4,m3 as l4,n3 as p4,o3 as v4,p3 as d4,q3 as i2,t3 as n4,x3 as a4,y3 as q2,z3 as i4}from"./cli-1.1.24-hbvsy3cq.mjs";import{H4 as N0,I4 as $,J4 as y,K4 as g0}from"./cli-1.1.24-9dnr05fm.mjs";import{L4 as U0}from"./cli-1.1.24-ys3jea4v.mjs";import{i5 as l0,j5 as Hz}from"./cli-1.1.24-32h2wd2e.mjs";import{B5 as a2,K7 as gq,r7 as n0,z5 as g4}from"./cli-1.1.24-dw6eynz7.mjs";import{Ega as W4,Fga as Jz,Gga as Zz,Hga as x0,Iga as m4,Jga as Nz,Kga as Y4,Lga as Gz,Mga as Yz,Nga as Wq,Oga as w4,Pga as Kz,Qga as B4,Sga as bz,Uga as ez,Vga as t0,a$ as F0,b$ as Aq,cga as oz,dga as M0,ega as Cq,fga as i0,gga as n,iga as v,jga as d0,jha as fq,lga as P0,mga as F4,nga as R0,oga as Q0,sga as $0,tga as M4,vga as _4,zga as f4}from"./cli-1.1.24-pe23qamd.mjs";import{Ama as c0,uma as t}from"./cli-1.1.24-8s7nf1y6.mjs";import{Wta as O0,Xta as kq,_ta as d}from"./cli-1.1.24-hty94kzp.mjs";function o2(z,q=J4,R){let J=n().find((W)=>W.provider==="openai"&&W.extras?.githubToken!==void 0);if(J){if(!Q0(J.id,{provider:"openai",name:J.name,baseUrl:R||J.baseUrl,model:J.model||q,apiKey:z,extras:{...J.extras,githubToken:z}}))return{mode:"failed"};return $0(J.id),{mode:"updated"}}if(!R0({provider:"openai",name:"GitHub Copilot",baseUrl:R||s2,model:q,apiKey:z,extras:{githubToken:z}},{makeActive:!0}))return{mode:"failed"};return{mode:"created"}}function s4({onDone:z,onBack:q,onChangeAPIKey:R}){let J=n4()?.trim()?"already-authed":"menu",[G,W]=i.useState(J),[_,b]=i.useState(null),[M,K]=i.useState(""),[L,P]=i.useState(0),[U,T]=i.useState(null),h=i.useCallback(async(f,D=J4,Z0,I)=>{let p=a4(f,Z0,I?.enterpriseDomain);if(!p.success){b(p.warning??"Could not save token to secure storage."),W("error");return}if(o2(f,D,I?.baseUrl).mode==="failed"){b("Could not save the GitHub Copilot provider profile."),W("error");return}g4(),R?.(),z("GitHub Copilot onboard complete. Copilot token stored in secure storage and as the active /provider profile.",{display:"user"})},[R,z]),X=i.useCallback(async(f)=>{W("device-busy"),b(null),T(null);try{let D=await l4({domain:f});T({user_code:D.user_code,verification_uri:D.verification_uri}),await v4(D.verification_uri);let Z0=await p4(D.device_code,{initialInterval:D.interval,timeoutSeconds:D.expires_in,domain:f}),I=await d4(Z0,{domain:f});await h(I.token,J4,Z0,{baseUrl:I.endpoints.api?.replace(/\/+$/,"")||void 0,enterpriseDomain:f})}catch(D){b(D instanceof Error?D.message:String(D)),W("error")}},[h]);if(G==="already-authed")return y(w,{flexDirection:"column",gap:1,children:[$(N,{bold:!0,children:"GitHub Copilot"}),$(N,{children:"You are already signed in to GitHub Copilot."}),$(N,{dimColor:!0,children:'Choose "Sign in again" to refresh your token, or go back to the provider menu.'}),$(C,{options:[{label:"Sign in again",value:"sign-in-again"},{label:"Sign in with GitHub Enterprise",value:"enterprise"},{label:q?"Back to /provider menu":"Cancel",value:"back"}],onChange:(D)=>{if(D==="sign-in-again"){X();return}if(D==="enterprise"){W("enterprise-domain");return}if(q){q();return}z("GitHub onboard cancelled",{display:"system"})}})]});if(G==="enterprise-domain")return y(w,{flexDirection:"column",gap:1,children:[$(N,{bold:!0,children:"GitHub Enterprise sign-in"}),$(N,{dimColor:!0,children:"Enter your GitHub Enterprise domain (e.g. github.acme.com). Leave empty for github.com."}),y(w,{flexDirection:"row",gap:1,children:[$(N,{children:">"}),$(L0,{value:M,onChange:K,onSubmit:()=>{let D=c4(M);if(!D){X();return}X(D)},onExit:()=>W(J),focus:!0,showCursor:!0,placeholder:"github.acme.com",columns:80,cursorOffset:L,onChangeCursorOffset:P})]}),$(N,{dimColor:!0,children:"Press Enter to continue. Press Esc to go back."})]});if(G==="error"&&_)return y(w,{flexDirection:"column",gap:1,children:[$(N,{color:"error",children:_}),$(C,{options:[{label:q?"Back to /provider menu":"Back to menu",value:"back"},{label:"Exit",value:"exit"}],onChange:(D)=>{if(D==="back"){if(q){q();return}W("menu"),b(null);return}z("GitHub onboard cancelled",{display:"system"})}})]});if(G==="device-busy")return y(w,{flexDirection:"column",gap:1,children:[$(N,{children:"GitHub Copilot sign-in"}),U?y(N0,{children:[y(N,{children:["Enter code ",$(N,{bold:!0,children:U.user_code})," at"," ",U.verification_uri]}),$(N,{dimColor:!0,children:"A browser window may have opened. Waiting for authorization..."})]}):$(N,{dimColor:!0,children:"Requesting device code from GitHub..."}),$(r4,{})]});return y(w,{flexDirection:"column",gap:1,children:[$(N,{bold:!0,children:"GitHub Copilot setup"}),$(N,{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."}),$(C,{options:[{label:"Sign in with browser",value:"device"},{label:"Sign in with GitHub Enterprise",value:"enterprise"},{label:q?"Back to /provider menu":"Cancel",value:"cancel"}],onChange:(f)=>{if(f==="cancel"){if(q){q();return}z("GitHub onboard cancelled",{display:"system"});return}if(f==="enterprise"){W("enterprise-domain");return}X()}})]})}var i,J4="github:copilot",s2="https://api.githubcopilot.com";var o4=d(()=>{t2();r2();t4();x4();i2();i4();a2();f4();g0();i=O0(U0(),1)});function zz(z){return[z.name,z.family??"",...z.families??[],z.parameterSize??"",z.quantizationLevel??""].join(" ").toLowerCase()}function I0(z,q){return q.some((R)=>z.includes(R))}function Rq(z){return!I0(zz(z),e4)}function Qq(z){return z.find(Rq)??null}function Z4(z){let R=`${z.parameterSize??""} ${z.name}`.toLowerCase().match(/(\d+(?:\.\d+)?)\s*b\b/);if(R?.[1])return Number(R[1]);if(typeof z.sizeBytes==="number"&&z.sizeBytes>0)return Number((z.sizeBytes/1e9).toFixed(1));return null}function $q(z){return(z.quantizationLevel??z.name).toLowerCase()}function Jq(z,q,R){if(z===null)return R.push("unknown size"),0;if(q==="latency"){if(z<=4)return R.push("tiny model for low latency"),32;if(z<=8)return R.push("small model for fast responses"),26;if(z<=14)return R.push("mid-sized model with acceptable latency"),16;if(z<=24)return R.push("larger model may be slower"),8;return R.push("large model likely slower locally"),z<=40?0:-8}if(q==="coding"){if(z>=7&&z<=14)return R.push("strong coding size tier"),24;if(z>14&&z<=34)return R.push("large coding-capable size tier"),28;if(z>34)return R.push("very large model with higher quality potential"),18;return R.push("compact model may trade off coding depth"),12}if(z>=7&&z<=14)return R.push("great balanced size tier"),26;if(z>=3&&z<7)return R.push("compact balanced size tier"),18;if(z>14&&z<=24)return R.push("high quality balanced size tier"),20;if(z>24)return R.push("large model for quality-first usage"),10;return R.push("very small model for general usage"),8}function Zq(z,q,R){let J=$q(z);if(J.includes("q4"))return R.push("efficient Q4 quantization"),q==="latency"?8:4;if(J.includes("q5"))return R.push("balanced Q5 quantization"),q==="latency"?6:5;if(J.includes("q8"))return R.push("higher quality Q8 quantization"),q==="latency"?2:5;return 0}function Nq(z,q,R){if(q.score!==z.score)return q.score-z.score;let J=Z4(z)??Number.POSITIVE_INFINITY,G=Z4(q)??Number.POSITIVE_INFINITY;if(R==="latency")return J-G;if(R==="coding")return G-J;let W=14;return Math.abs(J-W)-Math.abs(G-W)}function N4(z,q){return z.map((R)=>{let J=zz(R),G=[],W=0;if(I0(J,e4))W-=40,G.push("not a chat-first model");if(I0(J,e2))W+=q==="coding"?24:q==="balanced"?10:4,G.push("coding-oriented model family");if(I0(J,zq))W+=q==="latency"?4:q==="coding"?6:8,G.push("strong general-purpose model family");if(I0(J,qq))W+=q==="latency"?2:6,G.push("chat/instruct tuned");if(J.includes("vision")||J.includes("vl"))W-=2,G.push("vision model adds extra overhead");W+=Jq(Z4(R),q,G),W+=Zq(R,q,G);let _=G.slice(0,3).join(", ");return{...R,score:W,reasons:G,summary:_}}).sort((R,J)=>Nq(R,J,q))}function qz(z,q){return Qq(N4(z,q))}var e2,zq,qq,e4;var Rz=d(()=>{e2=["coder","codellama","codegemma","codestral","devstral","starcoder","deepseek-coder","qwen2.5-coder","qwen-coder"],zq=["llama","qwen","mistral","gemma","phi","deepseek"],qq=["instruct","chat","assistant"],e4=["embed","embedding","rerank","bge","whisper"]});function Yq(z){let q=z.toLowerCase();return Gq.some((R)=>q.includes(R))}function G4(z){try{let q=new URL(z);if(q.username)q.username="redacted";if(q.password)q.password="redacted";for(let R of q.searchParams.keys())if(Yq(R))q.searchParams.set(R,"redacted");return q.toString()}catch{return z.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 Gq;var Qz=d(()=>{Gq=["api_key","apikey","key","token","access_token","refresh_token","signature","sig","secret","password","passwd","pwd","auth","authorization"]});function Xq(z){let q=`http://localhost:${z.port}/auth/callback`,R=new URL(`${W4}/oauth/authorize`);return R.searchParams.append("response_type","code"),R.searchParams.append("client_id",m4()),R.searchParams.append("redirect_uri",q),R.searchParams.append("scope",Jz),R.searchParams.append("code_challenge",z.codeChallenge),R.searchParams.append("code_challenge_method","S256"),R.searchParams.append("id_token_add_organizations","true"),R.searchParams.append("codex_cli_simplified_flow","true"),R.searchParams.append("state",z.state),R.searchParams.append("originator",Zz),R.toString()}function yq(){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 Kq(z){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>${Gz(z)}</p>
|
|
31
|
+
<p>You can close this window and try again in Claudin.</p>
|
|
32
|
+
</body>
|
|
33
|
+
</html>`}function $z(){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 bq(z){let q=`http://localhost:${z.port}/auth/callback`,R=new URLSearchParams({grant_type:"authorization_code",code:z.authorizationCode,redirect_uri:q,client_id:m4(),code_verifier:z.codeVerifier}),J=await fetch(`${W4}/oauth/token`,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:R,signal:z.signal?AbortSignal.any([z.signal,AbortSignal.timeout(15000)]):AbortSignal.timeout(15000)});if(!J.ok){let K=await J.text().catch(()=>"");throw Error(K.trim()?`Codex OAuth token exchange failed (${J.status}): ${K.trim()}`:`Codex OAuth token exchange failed with status ${J.status}.`)}let G=await J.json(),W=x0(G.access_token),_=x0(G.refresh_token);if(!W||!_)throw Error("Codex OAuth completed, but the token response was missing credentials.");let b=x0(G.id_token);return{apiKey:b?await Yz(b).catch(()=>{return}):void 0,accessToken:W,refreshToken:_,idToken:b,accountId:Y4(b)??Y4(W)}}class V4{authCodeListener=null;port=null;tokenExchangeAbortController=null;buildCancellationError(){return Error("Codex OAuth flow was cancelled.")}async startOAuthFlow(z){let q=mz(),R=Nz(),J=new Wz("/auth/callback");this.authCodeListener=J,this.port=null;try{let G=await J.start(R);this.port=G;let W=Xz(),_=await Vz(q),b=Xq({port:G,codeChallenge:_,state:W});try{let M=await J.waitForAuthorization(W,async()=>{await z(b)}),K=new AbortController;this.tokenExchangeAbortController=K;let L;try{L=await bq({authorizationCode:M,codeVerifier:q,port:G,signal:K.signal})}finally{if(this.tokenExchangeAbortController===K)this.tokenExchangeAbortController=null}if(this.authCodeListener!==J)throw this.buildCancellationError();return J.handleSuccessRedirect([],(P)=>{P.writeHead(200,{"Content-Type":"text/html; charset=utf-8"}),P.end(yq())}),L}catch(M){let K=this.authCodeListener===J?M:this.buildCancellationError();if(J.hasPendingResponse()){let L=K instanceof Error&&K.message==="Codex OAuth flow was cancelled.";J.handleErrorRedirect((P)=>{P.writeHead(L?200:400,{"Content-Type":"text/html; charset=utf-8"}),P.end(L?$z():Kq(K instanceof Error?K.message:String(K)))})}throw K}finally{this.cleanup()}}catch(G){let W=G instanceof Error?G.message:String(G);if(W.includes("EADDRINUSE")||W.includes(String(R)))throw Error(`Codex OAuth needs localhost:${R} for its callback. Close any app already using that port and try again.`);throw G}}cleanup(){let z=this.buildCancellationError();if(this.tokenExchangeAbortController?.abort(z),this.tokenExchangeAbortController=null,this.authCodeListener?.hasPendingResponse())this.authCodeListener.handleErrorRedirect((q)=>{q.writeHead(200,{"Content-Type":"text/html; charset=utf-8"}),q.end($z())});this.authCodeListener?.cancelPendingAuthorization(z),this.authCodeListener=null,this.port=null}}var yz=d(()=>{mq();Vq();Wq()});function Hq(){return new V4}function Lz(z){let{onAuthenticated:q}=z,R=z.deps?.createOAuthService??Hq,J=z.deps?.openBrowser??l0,G=z.deps?.saveCodexCredentials??Kz,W=z.deps?.isBareMode??t,[_,b]=p0.useState({state:"starting"});return p0.useEffect(()=>{if(W()){b({state:"error",message:"Codex OAuth is unavailable in --bare because secure storage is disabled."});return}let M=!1,K=R();return K.startOAuthFlow(async(L)=>{if(M)return;b({state:"waiting",authUrl:L,browserOpened:null});let P=await J(L);if(M)return;b({state:"waiting",authUrl:L,browserOpened:P})}).then(async(L)=>{if(M)return;await q(L,(U)=>{let T=G({apiKey:L.apiKey,accessToken:L.accessToken,refreshToken:L.refreshToken,idToken:L.idToken,accountId:L.accountId,profileId:U?.profileId});if(!T.success)throw Error(T.warning??"Codex OAuth succeeded, but credentials could not be saved securely.")})}).catch((L)=>{if(M)return;b({state:"error",message:L instanceof Error?L.message:String(L)})}),()=>{M=!0,K.cleanup()}},[R,W,q,J,G]),_}var p0;var Fz=d(()=>{yz();Hz();bz();c0();p0=O0(U0(),1)});function hz(){return{"Content-Type":"application/x-www-form-urlencoded",Accept:"application/json","User-Agent":wz()}}function _z(z,q){let R=Number(z);return Number.isFinite(R)&&R>0?R*1000:q}function Bq(z,q){if(q?.aborted)return Promise.resolve();return new Promise((R)=>{let J=setTimeout(()=>{q?.removeEventListener("abort",G),R()},z),G=()=>{clearTimeout(J),R()};q?.addEventListener("abort",G,{once:!0})})}async function jq(z){let q=z?.fetchImpl??fetch,R=z?.signal?AbortSignal.any([z.signal,AbortSignal.timeout(15000)]):AbortSignal.timeout(15000),J=await q(jz,{method:"POST",headers:hz(),body:new URLSearchParams({client_id:X4(),scope:Uz}).toString(),signal:R});if(!J.ok){let M=await J.text().catch(()=>"");throw Error(`xAI device code request failed (${J.status})${M?`: ${M.trim()}`:""}`)}let G=await J.json(),W=J0(G.device_code),_=J0(G.user_code),b=J0(G.verification_uri);if(!W||!_||!b)throw Error("xAI device code response is missing device_code / user_code / verification_uri.");return{device_code:W,user_code:_,verification_uri:b,verification_uri_complete:J0(G.verification_uri_complete),expires_in:typeof G.expires_in==="number"&&G.expires_in>0?G.expires_in:Pz/1000,interval:typeof G.interval==="number"&&G.interval>0?G.interval:Iz/1000}}async function Oq(z,q){let R=q?.fetchImpl??fetch,J=q?.sleep??Bq,G=q?.now??(()=>Date.now()),W=_z(z.expires_in,Pz),_=G()+W,b=Math.max(_z(z.interval,Iz),Mq);while(G()<_){if(q?.signal?.aborted)throw Error("xAI device authorization was cancelled.");let M=await R(Bz,{method:"POST",headers:hz(),body:new URLSearchParams({grant_type:Oz,client_id:X4(),device_code:z.device_code}).toString(),signal:q?.signal});if(M.ok){let U=await M.json(),T=J0(U.access_token),h=J0(U.refresh_token);if(!T||!h)throw Error("xAI OAuth completed, but the token response was missing credentials.");let X=typeof U.expires_in==="number"&&Number.isFinite(U.expires_in)&&U.expires_in>0?U.expires_in:3600;return{accessToken:T,refreshToken:h,idToken:J0(U.id_token),expiresAt:G()+X*1000}}let K=await M.json().catch(()=>({})),L=Math.max(0,_-G());if(K.error==="authorization_pending"){await J(Math.min(b+Mz,L),q?.signal);continue}if(K.error==="slow_down"){b=Math.min(b+_q,wq),await J(Math.min(b+Mz,L),q?.signal);continue}if(K.error==="access_denied"||K.error==="authorization_denied")throw Error("xAI device authorization was denied.");if(K.error==="expired_token")throw Error("xAI device code expired - please re-run login.");let P=K.error_description??K.error??"";throw Error(`xAI device token exchange failed (${M.status})${P?`: ${P}`:""}`)}throw Error("xAI device authorization timed out.")}class y4{abortController=null;async startDeviceFlow(z){let q=new AbortController;this.abortController=q;try{let R=await jq({signal:q.signal});return await z(R),await Oq(R,{signal:q.signal})}finally{if(this.abortController===q)this.abortController=null}}cleanup(){this.abortController?.abort(Error("xAI device authorization was cancelled.")),this.abortController=null}}var Iz=5000,Mq=1000,_q=5000,wq=60000,Pz=300000,Mz=3000;var Dz=d(()=>{Lq();Fq()});function Uq(){return new y4}function Tz(z){let{onAuthenticated:q}=z,R=z.deps?.createOAuthService??Uq,J=z.deps?.saveXaiCredentials??Ez,G=z.deps?.isBareMode??t,[W,_]=v0.useState({state:"starting"});return v0.useEffect(()=>{if(G()){_({state:"error",message:"xAI OAuth is unavailable in --bare because secure storage is disabled."});return}let b=!1,M=R();return M.startDeviceFlow(async(K)=>{if(b)return;_({state:"waiting",userCode:K.user_code,verificationUri:K.verification_uri,verificationUriComplete:K.verification_uri_complete})}).then(async(K)=>{if(b)return;await q(K,(P)=>{let U=J({accessToken:K.accessToken,refreshToken:K.refreshToken,idToken:K.idToken,expiresAt:K.expiresAt,profileId:P?.profileId});if(!U.success)throw Error(U.warning??"xAI OAuth succeeded, but credentials could not be saved securely.")})}).catch((K)=>{if(b)return;_({state:"error",message:K instanceof Error?K.message:String(K)})}),()=>{b=!0,M.cleanup()}},[R,G,q,J]),W}var v0;var Sz=d(()=>{Dz();c0();uz();v0=O0(U0(),1)});async function dz(){return{"Content-Type":"application/x-www-form-urlencoded",Accept:"application/json","User-Agent":xz,...await lz()}}function Az(z,q){let R=Number(z);return Number.isFinite(R)&&R>0?R*1000:q}function Eq(z,q){if(q?.aborted)return Promise.resolve();return new Promise((R)=>{let J=setTimeout(()=>{q?.removeEventListener("abort",G),R()},z),G=()=>{clearTimeout(J),R()};q?.addEventListener("abort",G,{once:!0})})}async function uq(z){let q=z?.fetchImpl??fetch,R=z?.signal?AbortSignal.any([z.signal,AbortSignal.timeout(15000)]):AbortSignal.timeout(15000),J=await q(Cz,{method:"POST",headers:await dz(),body:new URLSearchParams({client_id:K4()}).toString(),signal:R});if(!J.ok){let M=await J.text().catch(()=>"");throw Error(`Kimi device code request failed (${J.status})${M?`: ${M.trim()}`:""}`)}let G=await J.json(),W=G0(G.device_code),_=G0(G.user_code),b=G0(G.verification_uri);if(!W||!_||!b)throw Error("Kimi device code response is missing device_code / user_code / verification_uri.");return{device_code:W,user_code:_,verification_uri:b,verification_uri_complete:G0(G.verification_uri_complete),expires_in:typeof G.expires_in==="number"&&G.expires_in>0?G.expires_in:vz/1000,interval:typeof G.interval==="number"&&G.interval>0?G.interval:pz/1000}}async function Tq(z,q){let R=q?.fetchImpl??fetch,J=q?.sleep??Eq,G=q?.now??(()=>Date.now()),W=Az(z.expires_in,vz),_=G()+W,b=Math.max(Az(z.interval,pz),Pq);while(G()<_){if(q?.signal?.aborted)throw Error("Kimi device authorization was cancelled.");let M=await R(fz,{method:"POST",headers:await dz(),body:new URLSearchParams({grant_type:gz,client_id:K4(),device_code:z.device_code}).toString(),signal:q?.signal});if(M.ok){let U=await M.json(),T=G0(U.access_token),h=G0(U.refresh_token);if(!T||!h)throw Error("Kimi OAuth completed, but the token response was missing credentials.");let X=typeof U.expires_in==="number"&&Number.isFinite(U.expires_in)&&U.expires_in>0?U.expires_in:900;return{accessToken:T,refreshToken:h,expiresAt:G()+X*1000}}let K=await M.json().catch(()=>({})),L=Math.max(0,_-G());if(K.error==="authorization_pending"){await J(Math.min(b+kz,L),q?.signal);continue}if(K.error==="slow_down"){b=Math.min(b+hq,Dq),await J(Math.min(b+kz,L),q?.signal);continue}if(K.error==="access_denied"||K.error==="authorization_denied")throw Error("Kimi device authorization was denied.");if(K.error==="expired_token")throw Error("Kimi device code expired - please re-run login.");let P=K.error_description??K.error??"";throw Error(`Kimi device token exchange failed (${M.status})${P?`: ${P}`:""}`)}throw Error("Kimi device authorization timed out.")}class b4{abortController=null;async startDeviceFlow(z){let q=new AbortController;this.abortController=q;try{let R=await uq({signal:q.signal});return await z(R),await Tq(R,{signal:q.signal})}finally{if(this.abortController===q)this.abortController=null}}cleanup(){this.abortController?.abort(Error("Kimi device authorization was cancelled.")),this.abortController=null}}var pz=5000,Pq=1000,hq=5000,Dq=60000,vz=1800000,kz=3000;var nz=d(()=>{Iq();cz()});function Sq(){return new b4}function tz(z){let{onAuthenticated:q}=z,R=z.deps?.createOAuthService??Sq,J=z.deps?.saveKimiCredentials??az,G=z.deps?.isBareMode??t,[W,_]=Y0.useState({state:"starting"}),b=Y0.useRef(!1);return Y0.useEffect(()=>{if(G()){_({state:"error",message:"Kimi Code OAuth is unavailable in --bare because secure storage is disabled."});return}let M=!1,K=R();return K.startDeviceFlow(async(L)=>{if(M)return;_({state:"waiting",userCode:L.user_code,verificationUri:L.verification_uri,verificationUriComplete:L.verification_uri_complete})}).then(async(L)=>{if(M)return;await q(L,(U)=>{let T=J({accessToken:L.accessToken,refreshToken:L.refreshToken,expiresAt:L.expiresAt,profileId:U?.profileId});if(!T.success)throw Error(T.warning??"Kimi Code OAuth succeeded, but credentials could not be saved securely.")})}).catch((L)=>{if(M)return;_({state:"error",message:L instanceof Error?L.message:String(L)})}),()=>{M=!0,K.cleanup()}},[R,G,q,J]),Y0.useEffect(()=>{if(W.state!=="waiting")return;if(b.current)return;let M=W.verificationUriComplete??W.verificationUri;if(!M)return;b.current=!0,l0(M).catch(()=>{})},[W]),W}var Y0;var rz=d(()=>{nz();Hz();c0();iz();Y0=O0(U0(),1)});function Z1(z){return{name:z.name,baseUrl:z.baseUrl,model:z.model,apiKey:z.apiKey??""}}function N1(z){let q=i0(z);return{name:q.name,baseUrl:q.baseUrl,model:q.model,apiKey:q.apiKey??""}}function G1(z){let q={};for(let R of z.split(/\r?\n/)){let J=R.trim();if(!J)continue;let G=J.indexOf(":");if(G<=0)continue;let W=J.slice(0,G).trim(),_=J.slice(G+1).trim();if(W&&_)q[W]=_}return q}function Y1(z){if(!z)return"";return Object.entries(z).map(([q,R])=>`${q}: ${R}`).join(`
|
|
49
|
+
`)}function W1(z,q){let R={},J=z.awsRegion?.trim();if(J)R.awsRegion=J;let G=z.gcpProject?.trim();if(G)R.gcpProject=G;let W=z.gcpRegion?.trim();if(W)R.gcpRegion=W;let _=z.azureResource?.trim();if(_)R.azureResource=_;let b=G1(q);if(Object.keys(b).length>0)R.customHeaders=b;return Object.keys(R).length>0?R:void 0}function V1(z,q){let R=q?" (active)":"",J=z.apiKey?"key set":"no key",G=z.provider==="anthropic"?"anthropic":"openai-compatible",W=oz(z.model),_=W.length<=3?W.join(", "):`${W[0]}, ${W[1]} + ${W.length-2} more`;return`${G} · ${z.baseUrl} · ${_} · ${J}${R}`}function X1(z,q){if(z.state==="unreachable")return`Could not reach Atomic Chat at ${G4(q)}. Start the Atomic Chat app first, or enter the endpoint manually.`;if(z.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 y1(z,q){if(z.state==="unreachable")return`Could not reach Ollama at ${G4(q)}. Start Ollama first, or enter the endpoint manually.`;if(z.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(z.state==="generation_failed"){let R=z.probeModel??"the selected model",J=z.detail?` Details: ${z.detail}.`:"";return`Ollama is reachable and models are installed, but a generation probe failed for ${R}.${J} Run "ollama run ${R}" once and retry, or enter details manually.`}return""}function L4(z,q){if(!q)return;return z.find((R)=>R.id===q)}function sz(z,q){return Boolean(z&&q&&z.id===q)}function K1(z,q){if(q){let R=z.find((J)=>J.id===q);if(R)return R}return z.find((R)=>R.provider==="openai"&&R.baseUrl===I4&&!R.apiKey)}function b1(z,q){if(q){let R=z.find((J)=>J.id===q);if(R)return R}return z.find((R)=>R.provider==="openai"&&R.baseUrl===t0&&!R.apiKey)}function H1(z,q){return z.find((R)=>R.provider==="anthropic"&&R.baseUrl===q&&!R.apiKey)}function L1({onBack:z,onConfigured:q}){let R=H.useCallback(async(G,W)=>{await q(G,W)},[q]);a("confirm:no",z);let J=Lz({onAuthenticated:R});if(J.state==="error")return y(w,{flexDirection:"column",gap:1,children:[$(N,{color:"error",bold:!0,children:"Codex OAuth failed"}),$(N,{children:J.message}),$(N,{dimColor:!0,children:"Press Enter or Esc to go back."}),$(C,{options:[{value:"back",label:"Back",description:"Return to provider presets"}],onChange:z,onCancel:z,visibleOptionCount:1})]});return y(w,{flexDirection:"column",gap:1,children:[$(N,{color:"remember",bold:!0,children:"Codex OAuth"}),$(N,{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."}),J.state==="starting"?$(N,{dimColor:!0,children:"Starting local callback and preparing your browser..."}):J.browserOpened===!1?y(N0,{children:[$(N,{color:"warning",children:"Browser did not open automatically. Visit this URL to continue:"}),$(N,{children:J.authUrl})]}):J.browserOpened===!0?y(N0,{children:[$(N,{dimColor:!0,children:"Browser opened. Finish the ChatGPT sign-in there and this setup will complete automatically."}),$(N,{children:J.authUrl})]}):$(N,{dimColor:!0,children:"Opening your browser..."}),$(N,{dimColor:!0,children:"Press Esc to cancel and go back."})]})}function F1({onBack:z,onConfigured:q}){let R=H.useCallback(async(G,W)=>{await q(G,W)},[q]);a("confirm:no",z);let J=Tz({onAuthenticated:R});if(J.state==="error")return y(w,{flexDirection:"column",gap:1,children:[$(N,{color:"error",bold:!0,children:"xAI OAuth failed"}),$(N,{children:J.message}),$(N,{dimColor:!0,children:"Press Enter or Esc to go back."}),$(C,{options:[{value:"back",label:"Back",description:"Return to provider presets"}],onChange:z,onCancel:z,visibleOptionCount:1})]});return y(w,{flexDirection:"column",gap:1,children:[$(N,{color:"remember",bold:!0,children:"xAI / Grok OAuth"}),J.state==="starting"?$(N,{dimColor:!0,children:"Requesting a device code from xAI..."}):y(N0,{children:[y(N,{children:["Open this URL on any device:"," ",$(N,{bold:!0,children:J.verificationUri})]}),y(N,{children:["Enter code ",$(N,{bold:!0,children:J.userCode})]}),J.verificationUriComplete&&J.verificationUriComplete!==J.verificationUri?y(N,{dimColor:!0,children:["Or open this prefilled URL: ",J.verificationUriComplete]}):null,$(N,{dimColor:!0,children:"Waiting for you to authorize in the browser..."})]}),$(N,{dimColor:!0,children:"Press Esc to cancel and go back."})]})}function M1({onBack:z,onConfigured:q}){let R=H.useCallback(async(G,W)=>{await q(G,W)},[q]);a("confirm:no",z);let J=tz({onAuthenticated:R});if(J.state==="error")return y(w,{flexDirection:"column",gap:1,children:[$(N,{color:"error",bold:!0,children:"Kimi Code OAuth failed"}),$(N,{children:J.message}),$(N,{dimColor:!0,children:"Press Enter or Esc to go back."}),$(C,{options:[{value:"back",label:"Back",description:"Return to Moonshot AI authentication choices"}],onChange:z,onCancel:z,visibleOptionCount:1})]});return y(w,{flexDirection:"column",gap:1,children:[$(N,{color:"remember",bold:!0,children:"Moonshot AI · Kimi Code"}),J.state==="starting"?$(N,{dimColor:!0,children:"Requesting a device code from Kimi..."}):y(N0,{children:[y(N,{children:["Open this URL on any device:"," ",$(N,{bold:!0,children:J.verificationUri})]}),y(N,{children:["Enter code ",$(N,{bold:!0,children:J.userCode})]}),J.verificationUriComplete&&J.verificationUriComplete!==J.verificationUri?y(N,{dimColor:!0,children:["Or open this prefilled URL: ",J.verificationUriComplete]}):null,$(N,{dimColor:!0,children:"Waiting for you to authorize in the browser..."})]}),$(N,{dimColor:!0,children:"Press Esc to cancel and go back."})]})}function T8({mode:z,onDone:q}){let R=W2(),[J,G]=H.useState([]),[W,_]=H.useState(),[b,M]=H.useState(),[K,L]=H.useState(!1),[P,U]=H.useState(),T=H.useRef(0),[h,X]=H.useState(z==="first-run"?"select-preset":"menu"),[m0,f]=H.useState(null),[D,Z0]=H.useState("openai"),[I,p]=H.useState(()=>N1("ollama")),[h0,D0]=H.useState({}),[P4,r0]=H.useState(""),[b2,H2]=H.useState(0),[L2,F2]=H.useState(0),[s0,h4]=H.useState(null),[V0,w0]=H.useState(0),[X0,r]=H.useState(0),[M2,s]=H.useState(0),[D4,S]=H.useState(),[y0,B]=H.useState(),[_2,w2]=H.useState(),[E4,E0]=H.useState(!1),[B0,j0]=H.useState(),[o,u0]=H.useState({state:"idle"}),[e,T0]=H.useState({state:"idle"}),[z0,o0]=H.useState({state:"idle"}),[B2,j2]=H.useState(!0),[O2,l]=H.useState(!1),e0=H.useRef(!1),[U2,u4]=H.useState(()=>a0()),[T4,I2]=H.useState(()=>y2());H.useEffect(()=>{queueMicrotask(()=>{let Q=n(),Z=v()?.id;G(Q),_(Z),M(d0()),U(F4()),L(P0()),j2(!1)})},[]);let K0=W0[X0]??W0[0],S0=K0.key,P2=I[S0],z4=J.length>0,k0=z4,S4=H.useMemo(()=>[{value:"add",label:"Add provider",description:"Create a new provider profile"},{value:"activate",label:"Set active provider (Global)",description:P?`Currently: ${J.find((Q)=>Q.id===P)?.name??"unknown"}`:"Default profile for projects without an override",disabled:!k0},{value:"activate-project",label:"Set active provider (Project)",description:b?`Currently: ${J.find((Q)=>Q.id===b)?.name??"unknown"} (this project)`:"Override the global default for this project only",disabled:!k0},...K?[{value:"clear-project-override",label:"Clear project provider override",description:b?"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:!z4},{value:"delete",label:"Delete provider",description:"Remove a provider profile",disabled:!k0},...E4?[{value:"logout-codex-oauth",label:"Log out Codex OAuth",description:"Clear securely stored Codex OAuth credentials"}]:[],{value:"done",label:"Done",description:"Return to chat"}],[k0,z4,E4,P,b,J]),q4=H.useCallback(()=>{if(t()){T.current+=1,E0(!1),j0(void 0);return}let Q=++T.current;(async()=>{let Z=await w4();if(Q!==T.current)return;E0(Boolean(Z?.apiKey||Z?.accessToken||Z?.refreshToken||Z?.idToken)),j0(Z?.profileId)})()},[]);H.useEffect(()=>{return q4(),()=>{T.current+=1}},[q4]),H.useEffect(()=>{if(h!=="select-ollama-model")return;let Q=!1;return u0({state:"loading"}),(async()=>{let Z=await Y2({baseUrl:I.baseUrl});if(Z.state!=="ready"){if(!Q)u0({state:"unavailable",message:y1(Z,I.baseUrl)});return}let Y=N4(Z.models,"balanced"),m=qz(Z.models,"balanced");if(!Q)u0({state:"ready",defaultValue:m?.name??Y[0]?.name,options:Y.map((V)=>({label:V.name,value:V.name,description:V.summary}))})})(),()=>{Q=!0}},[I.baseUrl,h]),H.useEffect(()=>{if(h!=="select-atomic-chat-model")return;let Q=!1;return T0({state:"loading"}),(async()=>{let Z=await G2({baseUrl:I.baseUrl});if(Z.state!=="ready"){if(!Q)T0({state:"unavailable",message:X1(Z,I.baseUrl)});return}if(!Q)T0({state:"ready",defaultValue:Z.models[0],options:Z.models.map((Y)=>({label:Y,value:Y}))})})(),()=>{Q=!0}},[I.baseUrl,h]),H.useEffect(()=>{if(h!=="select-openai-model")return;let Q=!1;return o0({state:"loading"}),(async()=>{let Z=await Z2({baseUrl:I.baseUrl,apiKey:I.apiKey||void 0});if(Q)return;if(!Z||Z.length===0){o0({state:"unavailable",message:"Couldn't list models from this provider. Enter the model id manually, or go back to check the base URL and API key."});return}let{options:Y,defaultValue:m}=N2(Z,I.model);o0({state:"ready",options:Y,defaultValue:m})})(),()=>{Q=!0}},[I.baseUrl,I.apiKey,h]);function A(){if(e0.current)return;e0.current=!0,queueMicrotask(()=>{let Q=n();G(Q),_(v()?.id),M(d0()),U(F4()),L(P0()),q4(),e0.current=!1})}function b0(){return null}function R4(Q){if(Q.activationWarning)return`${Q.prefix}. Saved for next startup. Warning: ${Q.warnings.join("; ")}.`;if(Q.warnings.length>0)return`${Q.prefix}. Claudin switched to it for this session with warnings: ${Q.warnings.join("; ")}.`;return`${Q.prefix}. Claudin switched to it for this session.`}async function Q4(Q){if(Q?.accessToken&&Q.accountId)return null;let Z=await w4();if(!Z)return"stored Codex OAuth credentials could not be loaded";if(!Z.accountId)return"stored Codex OAuth credentials are missing a ChatGPT account id";return null}function k4(){J2()}async function h2(Q){let Z="provider";l(!0),S("Activating provider...");try{await new Promise((q0)=>queueMicrotask(q0));let Y=P0(),m=$0(Q);if(!m){B("Could not change active provider."),l(!1),O();return}let V=Y?v()??m:m,F=M0(V.model)||n0();if(!Y)R((q0)=>({...q0,mainLoopModel:F,mainLoopModelForSession:null}));Z=m.name;let j=b0(),E=sz(m,B0),x=E?await Q4():null;A();let c=Y&&V.id!==m.id?` (project override still active — this project keeps using ${V.name}; use "Clear project provider override" to apply the new default here)`:"",k=E?R4({prefix:`Active provider: ${m.name}${c}`,activationWarning:x,warnings:[x,j?`could not clear startup provider override (${j})`:null].filter((q0)=>Boolean(q0))}):j?`Active provider: ${m.name}${c}. Warning: could not clear startup provider override (${j}).`:`Active provider: ${m.name}${c}`;S(k),l(!1),q({action:"activated",activeProfileId:m.id,activeProviderName:m.name,activeProviderModel:F,message:`Provider switched to ${m.name} (${F})`}),O()}catch(Y){A(),S(void 0),l(!1);let m=Y instanceof Error?Y.message:String(Y);B(`Could not finish activating ${Z}: ${m}`),O()}}async function D2(){l(!0),S("Clearing project provider override...");try{await new Promise((Z)=>queueMicrotask(Z)),M4(null),A();let Q=v();if(Q){let Z=M0(Q.model)||n0();_0(),R((Y)=>({...Y,mainLoopModel:Z,mainLoopModelForSession:null})),S(`Project override cleared. Using global default: ${Q.name}.`),l(!1),q({action:"activated",activeProfileId:Q.id,activeProviderName:Q.name,activeProviderModel:Z,message:`Project override cleared — using ${Q.name} (${Z})`}),O()}else S("Project provider override cleared. No global default set."),l(!1),q({action:"saved",message:"Project provider override cleared. No global default set."}),O()}catch(Q){A(),S(void 0),l(!1);let Z=Q instanceof Error?Q.message:String(Q);B(`Could not clear project provider override: ${Z}`),O()}}async function E2(Q){let Z="provider";l(!0),S("Setting provider for this project...");try{await new Promise((k)=>queueMicrotask(k));let Y=d0(),m=M4(Q);if(!m){B("Could not set project provider override."),l(!1),O();return}let V=M0(m.model)||n0();if(Y===m.id)_0();R((k)=>({...k,mainLoopModel:V,mainLoopModelForSession:null})),Z=m.name;let F=b0(),j=sz(m,B0),E=j?await Q4():null;A();let x=`Active provider for this project: ${m.name}. Other projects keep the global default.`,c=j?R4({prefix:x,activationWarning:E,warnings:[E,F?`could not clear startup provider override (${F})`:null].filter((k)=>Boolean(k))}):F?`${x} Warning: could not clear startup provider override (${F}).`:x;S(c),l(!1),q({action:"activated",activeProfileId:m.id,activeProviderName:m.name,activeProviderModel:V,message:`Provider switched to ${m.name} (${V}) for this project`}),O()}catch(Y){A(),S(void 0),l(!1);let m=Y instanceof Error?Y.message:String(Y);B(`Could not finish setting ${Z} for this project: ${m}`),O()}}function O(){w2("done"),X("menu")}function A0(Q){q({action:"cancelled",message:Q})}function A4(Q){let Z=i0(Q),Y={name:Z.name,baseUrl:Z.baseUrl,model:Z.model,apiKey:Z.apiKey??""};if(f(null),Z0(Z.provider??"openai"),p(Y),D0({}),r0(""),h4(Q),r(0),w0(0),s(Y.name.length),B(void 0),Q==="ollama"){u0({state:"loading"}),X("select-ollama-model");return}if(Q==="atomic-chat"){T0({state:"loading"}),X("select-atomic-chat-model");return}if(Q==="anthropic"){X("anthropic-auth-choice");return}if(Q==="bedrock"||Q==="vertex"||Q==="foundry"){X("cloud-extras");return}X("form")}function u2(Q){let Z=J.find((m)=>m.id===Q);if(!Z)return;let Y=Z1(Z);f(Q),Z0(Z.provider??"openai"),p(Y),D0({awsRegion:Z.extras?.awsRegion,gcpProject:Z.extras?.gcpProject,gcpRegion:Z.extras?.gcpRegion,azureResource:Z.extras?.azureResource}),r0(Y1(Z.extras?.customHeaders)),h4(null),r(0),w0(0),s(Y.name.length),B(void 0),X("form")}function C0(Q=I){let Z=W1(h0,P4),Y={provider:D,name:Q.name,baseUrl:Q.baseUrl,model:Q.model,apiKey:Q.apiKey,extras:Z},m=m0?Q0(m0,Y):R0(Y,{makeActive:!0});if(!m){B("Could not save provider. Fill all required fields.");return}let V=v()?.id===m.id;if(V)_0(),R((c)=>({...c,mainLoopModel:M0(m.model),mainLoopModelForSession:null}));let F=V?b0():null;A();let j=!m0&&P0()&&!V,E=j?v()?.name??"override target":null,x=m0?`Updated provider: ${m.name}`:j?`Added provider: ${m.name} (now global default — project keeps using ${E}; use "Clear project provider override" to apply here)`:`Added provider: ${m.name} (now active)`;if(S(F?`${x}. Warning: could not clear startup provider override (${F}).`:x),z==="first-run"){q({action:"saved",activeProfileId:m.id,message:`Provider configured: ${m.name}`});return}f(null),r(0),B(void 0),O()}function T2(){if(e.state==="loading"||e.state==="idle")return y(w,{flexDirection:"column",gap:1,children:[$(N,{color:"remember",bold:!0,children:"Checking Atomic Chat"}),$(N,{dimColor:!0,children:"Looking for loaded Atomic Chat models..."})]});if(e.state==="unavailable")return y(w,{flexDirection:"column",gap:1,children:[$(N,{color:"remember",bold:!0,children:"Atomic Chat setup"}),$(N,{dimColor:!0,children:e.message}),$(C,{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:(Q)=>{if(Q==="manual"){r(0),s(I.name.length),X("form");return}X("select-preset")},onCancel:()=>X("select-preset"),visibleOptionCount:2})]});return y(w,{flexDirection:"column",gap:1,children:[$(N,{color:"remember",bold:!0,children:"Choose an Atomic Chat model"}),$(N,{dimColor:!0,children:"Pick one of the models loaded in Atomic Chat to save into a local provider profile."}),$(C,{options:e.options,defaultValue:e.defaultValue,defaultFocusValue:e.defaultValue,inlineDescriptions:!0,visibleOptionCount:Math.min(8,e.options.length),onChange:(Q)=>{let Z={...I,model:Q};p(Z),C0(Z)},onCancel:()=>X("select-preset")})]})}function S2(){if(o.state==="loading"||o.state==="idle")return y(w,{flexDirection:"column",gap:1,children:[$(N,{color:"remember",bold:!0,children:"Checking Ollama"}),$(N,{dimColor:!0,children:"Looking for installed Ollama models..."})]});if(o.state==="unavailable")return y(w,{flexDirection:"column",gap:1,children:[$(N,{color:"remember",bold:!0,children:"Ollama setup"}),$(N,{dimColor:!0,children:o.message}),$(C,{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:(Q)=>{if(Q==="manual"){r(0),s(I.name.length),X("form");return}X("select-preset")},onCancel:()=>X("select-preset"),visibleOptionCount:2})]});return y(w,{flexDirection:"column",gap:1,children:[$(N,{color:"remember",bold:!0,children:"Choose an Ollama model"}),$(N,{dimColor:!0,children:"Pick one of the installed Ollama models to save into a local provider profile."}),$(C,{options:o.options,defaultValue:o.defaultValue,defaultFocusValue:o.defaultValue,inlineDescriptions:!0,visibleOptionCount:Math.min(8,o.options.length),onChange:(Q)=>{let Z={...I,model:Q};p(Z),C0(Z)},onCancel:()=>X("select-preset")})]})}function H0(Q){let Z=W0.findIndex((Y)=>Y.key===Q);r(Z<0?0:Z),s(I[Q].length),B(void 0),X("form")}function k2(){if(z0.state==="loading"||z0.state==="idle")return y(w,{flexDirection:"column",gap:1,children:[$(N,{color:"remember",bold:!0,children:"Fetching models"}),$(N,{dimColor:!0,children:"Looking for models on your OpenAI-compatible provider…"}),$(N,{dimColor:!0,children:"Press Esc to enter the model manually."})]});if(z0.state==="unavailable")return y(w,{flexDirection:"column",gap:1,children:[$(N,{color:"remember",bold:!0,children:"Choose a model"}),$(N,{dimColor:!0,children:z0.message}),$(C,{options:[{value:"manual",label:"Enter manually",description:"Type the model id yourself"},{value:"back",label:"Back",description:"Return to the API key step"}],onChange:(Y)=>{if(Y==="manual"){H0("model");return}H0("apiKey")},onCancel:()=>H0("apiKey"),visibleOptionCount:2})]});let Q=[...z0.options,{value:H4,label:"Enter a model id manually",description:"Type an id the provider did not list"}],Z=z0.defaultValue??H4;return y(w,{flexDirection:"column",gap:1,children:[$(N,{color:"remember",bold:!0,children:"Choose a model"}),$(N,{dimColor:!0,children:"Models from your OpenAI-compatible provider."}),$(C,{options:Q,defaultValue:Z,defaultFocusValue:Z,inlineDescriptions:!0,visibleOptionCount:Math.min(8,Q.length),onChange:(Y)=>{if(Y===H4){H0("model");return}let m={...I,model:Y};p(m),C4(m)},onCancel:()=>H0("apiKey")}),$(N,{dimColor:!0,children:"Enter to select · Esc to go back"})]})}function C4(Q){if(s0==="anthropic"||s0==="custom"){p(Q),X("custom-headers");return}C0(Q)}function A2(Q){let Z=Q.trim();if(!K0.optional&&Z.length===0){B(`${K0.label} is required.`);return}let Y={...I,[S0]:Z};if(p(Y),B(void 0),X0<W0.length-1){let m=X0+1,V=W0[m]?.key??"name";if(V==="model"&&!oq.has(D)&&Y.baseUrl.trim().length>0){X("select-openai-model");return}r(m),s(Y[V].length);return}C4(Y)}function C2(){if(B(void 0),X0>0){let Q=X0-1,Z=W0[Q]?.key??"name";r(Q),s(I[Z].length);return}if(z==="first-run"){X("select-preset");return}O()}a("confirm:no",C2,{context:"Settings",isActive:h==="form"}),a("confirm:no",()=>H0("model"),{context:"Settings",isActive:h==="select-openai-model"&&(z0.state==="loading"||z0.state==="idle")});function f2(){if(B(void 0),V0>0){w0(V0-1);return}X("select-preset")}a("confirm:no",f2,{context:"Settings",isActive:h==="cloud-extras"}),a("confirm:no",()=>X("form"),{context:"Settings",isActive:h==="custom-headers"}),a("confirm:no",()=>X("select-preset"),{context:"Settings",isActive:h==="anthropic-auth-choice"||h==="anthropic-oauth"||h==="kimi-auth-choice"}),a("confirm:no",()=>X("kimi-auth-choice"),{context:"Settings",isActive:h==="kimi-oauth"});function g2(){let Q=!t(),Z=[...U2?[{value:"import-legacy",label:"Reuse Claude Code sign-in",description:"Copy ~/.claude/ API tokens and provider profiles. /import brings the rest."}]:[],{value:"dashscope-intl",label:"Alibaba Coding Plan",description:"Alibaba DashScope International endpoint"},{value:"dashscope-cn",label:"Alibaba Coding Plan (China)",description:"Alibaba DashScope China endpoint"},{value:"anthropic",label:"Anthropic",description:"Native Claude API (x-api-key auth)"},{value:"atomic-chat",label:"Atomic Chat",description:"Local Model Provider"},{value:"azure-openai",label:"Azure OpenAI",description:"Azure OpenAI endpoint (model=deployment name)"},{value:"foundry",label:"Azure AI Foundry",description:"Anthropic models hosted on Azure AI Foundry (resource-scoped)"},{value:"bedrock",label:"AWS Bedrock",description:"Anthropic models on AWS Bedrock (region-scoped, AWS creds)"},{value:"bankr",label:"Bankr",description:"Bankr LLM Gateway (OpenAI-compatible)"},{value:"cloudflare-workers-ai",label:"Cloudflare Workers AI",description:"Cloudflare Workers AI (OpenAI-compatible); set your account ID in the base URL"},{value:"cloudflare-ai-gateway",label:"Cloudflare AI Gateway",description:"Cloudflare AI Gateway unified endpoint; set your account ID in the base URL"},...Q?[{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",description:"API key or Kimi Code OAuth sign-in"},{value:"nvidia-nim",label:"NVIDIA NIM",description:"NVIDIA NIM endpoint"},{value:"opencode-go",label:"OpenCode GO",description:"OpenCode GO OpenAI-compatible endpoint"},{value:"opencode-zen",label:"OpenCode Zen",description:"OpenCode Zen OpenAI-compatible endpoint"},{value:"ollama",label:"Ollama",description:"Local or remote Ollama endpoint"},{value:"openai",label:"OpenAI",description:"OpenAI API with API key"},{value:"openrouter",label:"OpenRouter",description:"OpenRouter OpenAI-compatible endpoint"},{value:"together",label:"Together AI",description:"Together chat/completions endpoint"},{value:"zai",label:"Z.AI (GLM Coding Plan)",description:"Z.AI GLM Coding Plan (OpenAI-compatible)"},{value:"custom",label:"Custom",description:"Any OpenAI-compatible provider"},...z==="first-run"?[{value:"skip",label:"Skip for now",description:"Continue with current defaults"}]:[]];return y(w,{flexDirection:"column",gap:1,children:[$(N,{color:"remember",bold:!0,children:z==="first-run"?"Set up provider":"Choose provider preset"}),$(N,{dimColor:!0,children:"Pick a preset, then confirm base URL, model, and API key."}),$(U4,{options:Z,searchPlaceholder:"Search presets…",onChange:(Y)=>{if(Y==="skip"){A0("Provider setup skipped");return}if(Y==="codex-oauth"){X("codex-oauth");return}if(Y==="xai-oauth"){X("xai-oauth");return}if(Y==="moonshotai"){X("kimi-auth-choice");return}if(Y==="github-onboard"){X("github-onboard");return}if(Y==="import-legacy"){(async()=>{let m=await V2({force:!0});u4(a0()),A();let V=X2(m);if(m.errors.length>0){B(V);return}let F=v();if(z==="first-run"&&F){q({action:"saved",activeProfileId:F.id,activeProviderName:F.name,activeProviderModel:F.model,message:V});return}if(S(V),B(void 0),z==="manage")O()})();return}A4(Y)},onCancel:()=>{if(z==="first-run"){A0("Provider setup skipped");return}O()},visibleOptionCount:Math.min(13,Z.length)})]})}function x2(){return y(w,{flexDirection:"column",gap:1,children:[$(N,{color:"remember",bold:!0,children:"Anthropic — choose authentication"}),$(N,{dimColor:!0,children:"Sign in with your Anthropic account in the browser, or paste an API key."}),$(C,{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:(Q)=>{if(Q==="oauth"){X("anthropic-oauth");return}if(Q==="apiKey"){X("form");return}X("select-preset")},onCancel:()=>X("select-preset"),visibleOptionCount:3})]})}function c2(){return y(w,{flexDirection:"column",gap:1,children:[$(N,{color:"remember",bold:!0,children:"Moonshot AI — choose authentication"}),$(N,{dimColor:!0,children:"Sign in with your Kimi Code subscription in the browser, or paste a Moonshot AI API key."}),$(C,{options:[{value:"oauth",label:"Sign in with web (OAuth)",description:"Open a browser, sign in to Kimi Code, and store tokens in ~/.claudin/.credentials.json"},{value:"apiKey",label:"Use API key",description:"Paste a Moonshot AI API key (sk-…)"},{value:"back",label:"Back",description:"Choose a different provider"}],onChange:(Q)=>{if(Q==="oauth"){X("kimi-oauth");return}if(Q==="apiKey"){A4("moonshotai");return}X("select-preset")},onCancel:()=>X("select-preset"),visibleOptionCount:3})]})}function l2(){let Q=(aq(),kq(nq)).ConsoleOAuthFlow;return $(w,{flexDirection:"column",gap:1,children:$(Q,{mode:"login",onDone:()=>{let Z=i0("anthropic"),Y={provider:"anthropic",name:Z.name,baseUrl:Z.baseUrl,model:Z.model},m=H1(n(),Z.baseUrl),V=m?Q0(m.id,Y):R0(Y,{makeActive:!0});if(!V){B("OAuth completed, but the Anthropic profile could not be saved."),X("select-preset");return}let F=m&&W!==V.id?$0(V.id):V;if(!F){B("OAuth completed, but the Anthropic profile could not be set as the startup provider."),X("select-preset");return}let j=`Anthropic OAuth configured: ${F.name}`;if(A(),z==="first-run"){q({action:"saved",activeProfileId:F.id,message:j});return}S(j),B(void 0),O()}})})}function p2(){let Q=s0;if(Q!=="bedrock"&&Q!=="vertex"&&Q!=="foundry")return null;let Z=m1[Q],Y=Z[V0]??Z[0],m=h0[Y.key]??"";function V(F){let j=F.trim();if(j.length===0){B(`${Y.label} is required.`);return}let E={...h0,[Y.key]:j};if(D0(E),B(void 0),V0<Z.length-1){w0(V0+1);return}w0(0),X("form")}return y(w,{flexDirection:"column",gap:1,children:[$(N,{color:"remember",bold:!0,children:`${Q==="bedrock"?"AWS Bedrock":Q==="vertex"?"Google Vertex AI":"Azure AI Foundry"} setup`}),$(N,{dimColor:!0,children:Y.helpText}),y(N,{dimColor:!0,children:["Step ",V0+1," of ",Z.length,": ",Y.label]}),y(w,{flexDirection:"row",gap:1,children:[$(N,{children:F0.pointer}),$(L0,{value:m,onChange:(F)=>D0((j)=>({...j,[Y.key]:F})),onSubmit:V,focus:!0,showCursor:!0,placeholder:`${Y.placeholder}${F0.ellipsis}`,columns:80,cursorOffset:b2,onChangeCursorOffset:H2})]}),y0&&$(N,{color:"error",children:y0}),$(N,{dimColor:!0,children:"Press Enter to continue. Press Esc to go back."})]})}function v2(){return y(w,{flexDirection:"column",gap:1,children:[$(N,{color:"remember",bold:!0,children:"Custom headers (optional)"}),y(N,{dimColor:!0,children:["Add HTTP headers sent on every request. One header per line as"," ",$(N,{children:"Header: Value"}),". Leave empty to skip."]}),y(w,{flexDirection:"row",gap:1,children:[$(N,{children:F0.pointer}),$(L0,{value:P4,onChange:r0,onSubmit:()=>C0(I),focus:!0,showCursor:!0,placeholder:"X-Header: value",columns:80,multiline:!0,cursorOffset:L2,onChangeCursorOffset:F2})]}),y0&&$(N,{color:"error",children:y0}),$(N,{dimColor:!0,children:"Press Enter on a blank line to save. Press Esc to go back."})]})}function d2(){return y(w,{flexDirection:"column",gap:1,children:[$(N,{color:"remember",bold:!0,children:m0?"Edit provider profile":"Create provider profile"}),$(N,{dimColor:!0,children:K0.helpText}),y(N,{dimColor:!0,children:["Provider type:"," ",D==="anthropic"?"Anthropic native API":"OpenAI-compatible API"]}),y(N,{dimColor:!0,children:["Step ",X0+1," of ",W0.length,": ",K0.label]}),y(w,{flexDirection:"row",gap:1,children:[$(N,{children:F0.pointer}),$(L0,{value:P2,onChange:(Q)=>p((Z)=>({...Z,[S0]:Q})),onSubmit:A2,focus:!0,showCursor:!0,placeholder:`${K0.placeholder}${F0.ellipsis}`,mask:S0==="apiKey"?"*":void 0,columns:80,cursorOffset:M2,onChangeCursorOffset:s})]}),y0&&$(N,{color:"error",children:y0}),$(N,{dimColor:!0,children:"Press Enter to continue. Press Esc to go back."})]})}function n2(){let Q=J.length>0,Z=Q;return y(w,{flexDirection:"column",gap:1,children:[$(N,{color:"remember",bold:!0,children:"Provider manager"}),$(N,{dimColor:!0,children:"Active profile controls base URL, model, and API key used by this session."}),D4&&$(N,{children:D4}),$(w,{flexDirection:"column",children:J.length===0?$(N,{dimColor:!0,children:"No provider profiles configured yet."}):J.map((Y)=>y(N,{dimColor:!0,children:["- ",Y.name,": ",V1(Y,Y.id===W)]},Y.id))}),$(C,{options:S4,onChange:(Y)=>{switch(B(void 0),Y){case"add":X("select-preset");break;case"activate":if(Z)X("select-active");break;case"activate-project":if(Z)X("select-active-project");break;case"clear-project-override":D2();break;case"edit":if(Q)X("select-edit");break;case"delete":if(Z)X("select-delete");break;case"logout-codex-oauth":{let m=B4();if(!m.success){B(m.warning??"Could not clear Codex OAuth credentials.");break}E0(!1),j0(void 0);let V=L4(n(),B0),F=null;if(V){let j=_4(V.id);if(!j.removed){B("Codex OAuth credentials were cleared, but the Codex profile could not be removed."),A();break}k4(),F=j.activeProfileId?b0():null}A(),S(F?`Codex OAuth logged out. Warning: could not clear startup provider override (${F}).`:"Codex OAuth logged out.");break}default:A0("Provider manager closed");break}},onCancel:()=>A0("Provider manager closed"),defaultFocusValue:_2,visibleOptionCount:S4.length})]})}function f0(Q,Z,Y){let m=J.map((V)=>{let F=[];if(V.id===W)F.push("active");if(b&&V.id===b)F.push("this project");if(P&&V.id===P)F.push("global default");let j=F.length>0?` (${F.join(", ")})`:"";return{value:V.id,label:`${V.name}${j}`,description:`${V.provider==="anthropic"?"anthropic":"openai-compatible"} · ${V.baseUrl} · ${V.model}`}});if(m.length===0)return y(w,{flexDirection:"column",gap:1,children:[$(N,{color:"remember",bold:!0,children:Q}),$(N,{dimColor:!0,children:Z}),$(C,{options:[{value:"back",label:"Back",description:"Return to provider manager"}],onChange:()=>O(),onCancel:()=>O(),visibleOptionCount:1})]});return y(w,{flexDirection:"column",gap:1,children:[$(N,{color:"remember",bold:!0,children:Q}),$(U4,{options:m,favorites:J1,searchPlaceholder:"Search providers…",onChange:Y,onCancel:()=>O(),visibleOptionCount:Math.min(10,Math.max(2,m.length))})]})}let u;switch(h){case"select-preset":u=g2();break;case"select-ollama-model":u=S2();break;case"select-openai-model":u=k2();break;case"select-atomic-chat-model":u=T2();break;case"codex-oauth":u=$(L1,{onBack:()=>X("select-preset"),onConfigured:async(Q,Z)=>{let Y={provider:"openai",name:eq,baseUrl:ez,model:z1,apiKey:""},m=L4(n(),B0),V=m?Q0(m.id,Y):R0(Y,{makeActive:!0});if(!V){B("Codex OAuth login finished, but the provider profile could not be saved."),O();return}let F=m&&W!==V.id?$0(V.id):V;if(!F){B("Codex OAuth login finished, but the provider could not be set as the startup provider."),O();return}Z({profileId:V.id});let j=b0(),E=await Q4(Q);E0(!0),j0(V.id),A();let x=[E,j?`could not clear startup provider override (${j})`:null].filter((k)=>Boolean(k)),c=R4({prefix:"Codex OAuth configured",activationWarning:E,warnings:x});if(z==="first-run"){q({action:"saved",activeProfileId:F.id,message:c});return}S(c),B(void 0),O()}});break;case"xai-oauth":u=$(F1,{onBack:()=>X("select-preset"),onConfigured:async(Q,Z)=>{let Y={provider:"openai",name:q1,baseUrl:t0,model:R1,apiKey:""},m=b1(n(),O4()?.profileId),V=m?Q0(m.id,Y):R0(Y,{makeActive:!0});if(!V){B("xAI OAuth login finished, but the provider profile could not be saved."),O();return}let F=m&&W!==V.id?$0(V.id):V;if(!F){B("xAI OAuth login finished, but the provider could not be set as the startup provider."),O();return}try{Z({profileId:V.id})}catch(E){B(E instanceof Error?E.message:String(E)),O();return}A();let j="xAI / Grok configured. Claudin switched to it for this session.";if(z==="first-run"){q({action:"saved",activeProfileId:F.id,message:j});return}S(j),B(void 0),O()}});break;case"kimi-auth-choice":u=c2();break;case"kimi-oauth":u=$(M1,{onBack:()=>X("kimi-auth-choice"),onConfigured:async(Q,Z)=>{let Y={provider:"openai",name:Q1,baseUrl:I4,model:$1,apiKey:""},m=K1(n(),j4()?.profileId),V=m?Q0(m.id,Y):R0(Y,{makeActive:!0});if(!V){B("Kimi Code OAuth login finished, but the provider profile could not be saved."),O();return}let F=m&&W!==V.id?$0(V.id):V;if(!F){B("Kimi Code OAuth login finished, but the provider could not be set as the startup provider."),O();return}try{Z({profileId:V.id})}catch(E){B(E instanceof Error?E.message:String(E)),O();return}A();let j="Kimi Code configured. Claudin switched to it for this session.";if(z==="first-run"){q({action:"saved",activeProfileId:F.id,message:j});return}S(j),B(void 0),O()}});break;case"github-onboard":u=$(s4,{onDone:(Q)=>{if(Q)S(Q),B(void 0);A(),O()},onBack:()=>X("select-preset"),onChangeAPIKey:A});break;case"anthropic-auth-choice":u=x2();break;case"anthropic-oauth":u=l2();break;case"cloud-extras":u=p2();break;case"custom-headers":u=v2();break;case"form":u=d2();break;case"select-active":u=f0("Set active provider (Global)","No providers available. Add one first.",(Q)=>{h2(Q)});break;case"select-active-project":u=f0("Set active provider (Project)","No providers available. Add one first.",(Q)=>{E2(Q)});break;case"select-edit":u=f0("Edit provider","No providers available. Add one first.",(Q)=>{u2(Q)});break;case"select-delete":u=f0("Delete provider","No providers available. Add one first.",(Q)=>{let Z=J.find((k)=>k.id===Q),Y=Z?.provider==="openai"&&Z?.extras?.githubToken!==void 0,m=L4(J,B0)?.id===Q,V=O4()?.profileId,F=Z?.provider==="openai"&&Z.baseUrl===t0&&!Z.apiKey&&V===Q,j=j4()?.profileId,E=Z?.provider==="openai"&&Z.baseUrl===I4&&!Z.apiKey&&j===Q,x=v()?.id===Q,c=_4(Q);if(!c.removed)B("Could not delete provider.");else{let k=[];if(m){let g=B4();if(!g.success)k.push(g.warning??"could not clear Codex OAuth credentials");else j0(void 0);k4()}if(Y){let g=q2();if(!g.success)k.push(g.warning??"could not clear GitHub Copilot token")}if(F){let g=$2();if(!g.success)k.push(g.warning??"could not clear xAI OAuth credentials")}if(E){let g=Q2();if(!g.success)k.push(g.warning??"could not clear Kimi Code OAuth credentials")}let q0=c.activeProfileId?b0():null;if(q0)k.push(`could not clear startup provider override (${q0})`);if(A(),x){let g=v();if(g)_0(),R(($4)=>({...$4,mainLoopModel:M0(g.model),mainLoopModelForSession:null}));else _0(),R(($4)=>({...$4,mainLoopModel:null,mainLoopModelForSession:null}))}S(k.length>0?`Provider deleted. Warning: ${k.join("; ")}.`:"Provider deleted")}O()});break;case"menu":default:u=n2();break}return y(z2,{color:"permission",children:[$(K2,{enabled:T4,onDismiss:(Q)=>{u4(a0()),I2(!1),A();let Z=v();if(Q==="migrated"&&z==="first-run"&&Z)q({action:"saved",activeProfileId:Z.id,activeProviderName:Z.name,activeProviderModel:Z.model})}}),T4?null:B2?y(w,{flexDirection:"column",gap:1,children:[$(N,{color:"remember",bold:!0,children:"Loading providers..."}),$(N,{dimColor:!0,children:"Reading provider profiles from disk."})]}):O2?y(w,{flexDirection:"column",gap:1,children:[$(N,{color:"remember",bold:!0,children:"Activating provider..."}),$(N,{dimColor:!0,children:"Please wait while the provider is being configured."})]}):u]})}var H,W0,H4="\x00__manual__",oq,eq="Codex OAuth",z1="codexplan",q1="xAI / Grok (OAuth)",R1="grok-4",Q1="Moonshot AI",$1,I4="https://api.kimi.com/coding/v1",J1,m1;var _1=d(()=>{Aq();o4();fq();x4();xq();vq();tq();bz();c0();Cq();gq();lq();f4();i4();pq();Rz();Qz();dq();iq();cq();sq();t4();Fz();Sz();rz();uz();iz();cz();rq();g0();H=O0(U0(),1),W0=[{key:"name",label:"Provider name",placeholder:"e.g. Ollama Home, OpenAI Work",helpText:"A short label shown in /provider and startup setup."},{key:"baseUrl",label:"Base URL",placeholder:"e.g. http://localhost:11434/v1",helpText:"API base URL used for this provider profile."},{key:"apiKey",label:"API key",placeholder:"Leave empty if your provider does not require one",helpText:"Optional. Press Enter with empty value to skip.",optional:!0},{key:"model",label:"Default model",placeholder:"e.g. llama3.1:8b or glm-4.7; glm-4.7-flash",helpText:'Model name(s) to use. Separate multiple with ";" or ","; first is default.'}],oq=new Set(["anthropic","bedrock","vertex","foundry"]),$1=R2,J1=m2("providerProfile",(z)=>z);m1={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{G4 as Vc,Qz as Wc,G1 as Xc,T8 as Yc,_1 as Zc};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{Ffa as H,Ifa as J,bga as R}from"./cli-1.1.24-pe23qamd.mjs";import{_ta as Q}from"./cli-1.1.24-hty94kzp.mjs";function M(q){return U(J(),q)}function S(q,z){let B=L[q],D=T(M(q),z);return H((P)=>({...P,[B]:D})),D.includes(z)}function X(q,z){return{list:()=>M(q),toggle:(B)=>{S(q,B)},keyOf:z}}function T(q,z){return q.includes(z)?q.filter((B)=>B!==z):[...q,z]}function U(q,z){let B=q[L[z]];return Array.isArray(B)?B.filter((D)=>typeof D==="string"):[]}var L;var V=Q(()=>{R();L={model:"favoriteModels",providerProfile:"favoriteProviderProfiles"}});
|
|
2
|
+
export{X as Eh,V as Fh};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{Csa as M,Dsa as Y}from"./cli-1.1.24-yz5bzn1k.mjs";import{_ta as W}from"./cli-1.1.24-hty94kzp.mjs";import{homedir as Z}from"os";import{join as Q}from"path";function $(q){if(q?.configDirEnv)return q.configDirEnv.normalize("NFC");let B=q?.homeDir??Z();return Q(B,".claudin").normalize("NFC")}function N(){return process.env.CLAUDIN_CONFIG_DIR}function _(){return Q(X(),"teams")}function j(q){let B=process.env.NODE_OPTIONS;if(!B)return!1;return B.split(/\s+/).includes(q)}function U(q){if(!q)return!1;if(typeof q==="boolean")return q;let B=q.toLowerCase().trim();return["1","true","yes","on"].includes(B)}function I(q){if(q===void 0)return!1;if(typeof q==="boolean")return!q;if(!q)return!1;let B=q.toLowerCase().trim();return["0","false","no","off"].includes(B)}function S(){return U(process.env.CLAUDIN_SIMPLE)||process.argv.includes("--bare")}function T(q){let B={};if(q)for(let F of q){let[J,...K]=F.split("=");if(!J||K.length===0)throw Error(`Invalid environment variable format: ${F}, environment variables should be added as: -e KEY1=value1 -e KEY2=value2`);B[J]=K.join("=")}return B}function c(){return process.env.AWS_REGION||process.env.AWS_DEFAULT_REGION||"us-east-1"}function L(){return process.env.CLOUD_ML_REGION||"us-east5"}function w(){return U(process.env.CLAUDIN_BASH_MAINTAIN_PROJECT_WORKING_DIR)}function z(q){if(q){let B=b.find(([F])=>q.startsWith(F));if(B)return process.env[B[1]]||L()}return L()}var X,b;var k=W(()=>{Y();X=M(()=>$({configDirEnv:N()}),()=>process.env.CLAUDIN_CONFIG_DIR??"");b=[["claude-haiku-4-5","VERTEX_REGION_CLAUDE_HAIKU_4_5"],["claude-3-5-haiku","VERTEX_REGION_CLAUDE_3_5_HAIKU"],["claude-3-5-sonnet","VERTEX_REGION_CLAUDE_3_5_SONNET"],["claude-3-7-sonnet","VERTEX_REGION_CLAUDE_3_7_SONNET"],["claude-opus-5","VERTEX_REGION_CLAUDE_5_OPUS"],["claude-opus-4-7","VERTEX_REGION_CLAUDE_4_7_OPUS"],["claude-opus-4-6","VERTEX_REGION_CLAUDE_4_6_OPUS"],["claude-opus-4-1","VERTEX_REGION_CLAUDE_4_1_OPUS"],["claude-opus-4","VERTEX_REGION_CLAUDE_4_0_OPUS"],["claude-sonnet-4-6","VERTEX_REGION_CLAUDE_4_6_SONNET"],["claude-sonnet-4-5","VERTEX_REGION_CLAUDE_4_5_SONNET"],["claude-sonnet-4","VERTEX_REGION_CLAUDE_4_0_SONNET"]]});
|
|
2
|
+
export{$ as nma,N as oma,X as pma,_ as qma,j as rma,U as sma,I as tma,S as uma,T as vma,c as wma,L as xma,w as yma,z as zma,k as Ama};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{de as F,ge as A}from"./cli-1.1.24-7qe2p4yb.mjs";import{Me as D,Pe as H,Re as _}from"./cli-1.1.24-jrvf41s6.mjs";import{gta as U,yta as P}from"./cli-1.1.24-zc49jxpp.mjs";P();_();A();var R="environments-2025-11-01",O=/^[a-zA-Z0-9_-]+$/;function j(J,K){if(!J||!O.test(J))throw Error(`Invalid ${K}: contains unsafe characters`);return J}class L extends Error{status;errorType;constructor(J,K,Z){super(J);this.name="BridgeFatalError",this.status=K,this.errorType=Z}}function y(J){function K(q){J.onDebug?.(q)}let Z=0,V=100;function X(q){let z={Authorization:`Bearer ${q}`,"Content-Type":"application/json","anthropic-version":"2023-06-01","anthropic-beta":R,"x-environment-runner-version":J.runnerVersion},W=J.getTrustedDeviceToken?.();if(W)z["X-Trusted-Device-Token"]=W;return z}function C(){let q=J.getAccessToken();if(!q)throw Error(F);return q}async function M(q,z){let W=C(),Q=await q(W);if(Q.status!==401)return Q;if(!J.onAuth401)return K(`[bridge:api] ${z}: 401 received, no refresh handler`),Q;if(K(`[bridge:api] ${z}: 401 received, attempting token refresh`),await J.onAuth401(W)){K(`[bridge:api] ${z}: Token refreshed, retrying request`);let $=C(),N=await q($);if(N.status!==401)return N;K(`[bridge:api] ${z}: Retry after refresh also got 401`)}else K(`[bridge:api] ${z}: Token refresh failed`);return Q}return{async registerBridgeEnvironment(q){K(`[bridge:api] POST /v1/environments/bridge bridgeId=${q.bridgeId}`);let z=await M((W)=>U.post(`${J.baseUrl}/v1/environments/bridge`,{machine_name:q.machineName,directory:q.dir,branch:q.branch,git_repo_url:q.gitRepoUrl,max_sessions:q.maxSessions,metadata:{worker_type:q.workerType},...q.reuseEnvironmentId&&{environment_id:q.reuseEnvironmentId}},{headers:X(W),timeout:15000,validateStatus:(Q)=>Q<500}),"Registration");return G(z.status,z.data,"Registration"),K(`[bridge:api] POST /v1/environments/bridge -> ${z.status} environment_id=${z.data.environment_id}`),K(`[bridge:api] >>> ${D({machine_name:q.machineName,directory:q.dir,branch:q.branch,git_repo_url:q.gitRepoUrl,max_sessions:q.maxSessions,metadata:{worker_type:q.workerType}})}`),K(`[bridge:api] <<< ${D(z.data)}`),z.data},async pollForWork(q,z,W,Q){j(q,"environmentId");let Y=Z;Z=0;let $=await U.get(`${J.baseUrl}/v1/environments/${q}/work/poll`,{headers:X(z),params:Q!==void 0?{reclaim_older_than_ms:Q}:void 0,timeout:1e4,signal:W,validateStatus:(N)=>N<500});if(G($.status,$.data,"Poll"),!$.data){if(Z=Y+1,Z===1||Z%V===0)K(`[bridge:api] GET .../work/poll -> ${$.status} (no work, ${Z} consecutive empty polls)`);return null}return K(`[bridge:api] GET .../work/poll -> ${$.status} workId=${$.data.id} type=${$.data.data?.type}${$.data.data?.id?` sessionId=${$.data.data.id}`:""}`),K(`[bridge:api] <<< ${D($.data)}`),$.data},async acknowledgeWork(q,z,W){j(q,"environmentId"),j(z,"workId"),K(`[bridge:api] POST .../work/${z}/ack`);let Q=await U.post(`${J.baseUrl}/v1/environments/${q}/work/${z}/ack`,{},{headers:X(W),timeout:1e4,validateStatus:(Y)=>Y<500});G(Q.status,Q.data,"Acknowledge"),K(`[bridge:api] POST .../work/${z}/ack -> ${Q.status}`)},async stopWork(q,z,W){j(q,"environmentId"),j(z,"workId"),K(`[bridge:api] POST .../work/${z}/stop force=${W}`);let Q=await M((Y)=>U.post(`${J.baseUrl}/v1/environments/${q}/work/${z}/stop`,{force:W},{headers:X(Y),timeout:1e4,validateStatus:($)=>$<500}),"StopWork");G(Q.status,Q.data,"StopWork"),K(`[bridge:api] POST .../work/${z}/stop -> ${Q.status}`)},async deregisterEnvironment(q){j(q,"environmentId"),K(`[bridge:api] DELETE /v1/environments/bridge/${q}`);let z=await M((W)=>U.delete(`${J.baseUrl}/v1/environments/bridge/${q}`,{headers:X(W),timeout:1e4,validateStatus:(Q)=>Q<500}),"Deregister");G(z.status,z.data,"Deregister"),K(`[bridge:api] DELETE /v1/environments/bridge/${q} -> ${z.status}`)},async archiveSession(q){j(q,"sessionId"),K(`[bridge:api] POST /v1/sessions/${q}/archive`);let z=await M((W)=>U.post(`${J.baseUrl}/v1/sessions/${q}/archive`,{},{headers:X(W),timeout:1e4,validateStatus:(Q)=>Q<500}),"ArchiveSession");if(z.status===409){K(`[bridge:api] POST /v1/sessions/${q}/archive -> 409 (already archived)`);return}G(z.status,z.data,"ArchiveSession"),K(`[bridge:api] POST /v1/sessions/${q}/archive -> ${z.status}`)},async reconnectSession(q,z){j(q,"environmentId"),j(z,"sessionId"),K(`[bridge:api] POST /v1/environments/${q}/bridge/reconnect session_id=${z}`);let W=await M((Q)=>U.post(`${J.baseUrl}/v1/environments/${q}/bridge/reconnect`,{session_id:z},{headers:X(Q),timeout:1e4,validateStatus:(Y)=>Y<500}),"ReconnectSession");G(W.status,W.data,"ReconnectSession"),K(`[bridge:api] POST .../bridge/reconnect -> ${W.status}`)},async heartbeatWork(q,z,W){j(q,"environmentId"),j(z,"workId"),K(`[bridge:api] POST .../work/${z}/heartbeat`);let Q=await U.post(`${J.baseUrl}/v1/environments/${q}/work/${z}/heartbeat`,{},{headers:X(W),timeout:1e4,validateStatus:(Y)=>Y<500});return G(Q.status,Q.data,"Heartbeat"),K(`[bridge:api] POST .../work/${z}/heartbeat -> ${Q.status} lease_extended=${Q.data.lease_extended} state=${Q.data.state}`),Q.data},async sendPermissionResponseEvent(q,z,W){j(q,"sessionId"),K(`[bridge:api] POST /v1/sessions/${q}/events type=${z.type}`);let Q=await U.post(`${J.baseUrl}/v1/sessions/${q}/events`,{events:[z]},{headers:X(W),timeout:1e4,validateStatus:(Y)=>Y<500});G(Q.status,Q.data,"SendPermissionResponseEvent"),K(`[bridge:api] POST /v1/sessions/${q}/events -> ${Q.status}`),K(`[bridge:api] >>> ${D({events:[z]})}`),K(`[bridge:api] <<< ${D(Q.data)}`)}}}function G(J,K,Z){if(J===200||J===204)return;let V=H(K),X=B(K);switch(J){case 401:throw new L(`${Z}: Authentication failed (401)${V?`: ${V}`:""}. ${F}`,401,X);case 403:throw new L(S(X)?"Remote Control session has expired. Please restart with `claudin remote-control` or /remote-control.":`${Z}: Access denied (403)${V?`: ${V}`:""}. Check your organization permissions.`,403,X);case 404:throw new L(V??`${Z}: Not found (404). Remote Control may not be available for this organization.`,404,X);case 410:throw new L(V??"Remote Control session has expired. Please restart with `claudin remote-control` or /remote-control.",410,X??"environment_expired");case 429:throw Error(`${Z}: Rate limited (429). Polling too frequently.`);default:throw Error(`${Z}: Failed with status ${J}${V?`: ${V}`:""}`)}}function S(J){if(!J)return!1;return J.includes("expired")||J.includes("lifetime")}function E(J){if(J.status!==403)return!1;return J.message.includes("external_poll_sessions")||J.message.includes("environments:manage")}function B(J){if(J&&typeof J==="object"){if("error"in J&&J.error&&typeof J.error==="object"&&"type"in J.error&&typeof J.error.type==="string")return J.error.type}return}function T(J){let K=new AbortController;function Z(){K.abort(),K=new AbortController}function V(){let X=new AbortController,C=()=>X.abort();if(J.aborted||K.signal.aborted)return X.abort(),{signal:X.signal,cleanup:()=>{}};J.addEventListener("abort",C,{once:!0});let M=K.signal;return M.addEventListener("abort",C,{once:!0}),{signal:X.signal,cleanup:()=>{J.removeEventListener("abort",C),M.removeEventListener("abort",C)}}}return{signal:V,wake:Z}}
|
|
2
|
+
export{j as ea,L as fa,y as ga,S as ha,E as ia,T as ja};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{Cga as $,Dga as y,G$ as Z,I$ as f,mha as B,pha as K}from"./cli-1.1.24-pe23qamd.mjs";import{Ama as E,uma as Y}from"./cli-1.1.24-8s7nf1y6.mjs";import{$ta as x,_ta as N}from"./cli-1.1.24-hty94kzp.mjs";import{existsSync as S}from"node:fs";import{homedir as F}from"node:os";import{join as X}from"node:path";function _(){if(Y())return;try{return $().read()?.gemini?.accessToken?.trim()||void 0}catch{return}}function J(b){let w=b?.trim();return w?w:void 0}function V(b=process.env){return J(b.GOOGLE_CLOUD_PROJECT)??J(b.GCLOUD_PROJECT)??J(b.GOOGLE_PROJECT_ID)}function D(b=process.env){let w=J(b.GEMINI_AUTH_MODE)?.toLowerCase();if(w==="api-key"||w==="access-token"||w==="adc")return w;return}function P(b=process.env){let w=J(b.GOOGLE_APPLICATION_CREDENTIALS),q=new Set;if(w)q.add(w);q.add(X(F(),".config","gcloud","application_default_credentials.json"));let O=J(b.APPDATA);if(O)q.add(X(O,"gcloud","application_default_credentials.json"));return[...q]}function k(b=process.env){return P(b).some((w)=>S(w))}function G(b){if(typeof b==="string")return J(b);return J(b?.token)}async function A(){let{GoogleAuth:b}=await import("google-auth-library");return new b({scopes:[z]})}async function L(b,w){if(!k(b))return{kind:"none"};try{let q=await(w.createGoogleAuth??A)(),O=await q.getClient(),R=G(await O.getAccessToken());if(!R)return{kind:"none"};let Q=V(b)??(typeof q.getProjectId==="function"?J(await q.getProjectId().catch(()=>{return})):void 0);return{kind:"adc",credential:R,...Q?{projectId:Q}:{}}}catch{return{kind:"none"}}}async function s(b=process.env,w={}){let q=D(b),O=B(),R=O?.transport==="gemini"?J(O.apiKey):void 0,U=q==="access-token"||q==="adc"?void 0:R;if(U&&(q===void 0||q==="api-key"))return{kind:"api-key",credential:U};let Q=q==="api-key"||q==="adc"?void 0:J(_());if(Q&&(q===void 0||q==="access-token")){let W=V(b);return{kind:"access-token",credential:Q,...W?{projectId:W}:{}}}if(q==="api-key"||q==="access-token")return{kind:"none"};if(w.createGoogleAuth)return L(b,w);return T(J(b.GOOGLE_APPLICATION_CREDENTIALS),J(b.APPDATA),F(),V(b))}var z="https://www.googleapis.com/auth/cloud-platform",C=300000,T;var g=N(()=>{K();E();f();y();T=Z(async(b,w,q,O)=>L({GOOGLE_APPLICATION_CREDENTIALS:b,APPDATA:w,GOOGLE_CLOUD_PROJECT:O,GCLOUD_PROJECT:O,GOOGLE_PROJECT_ID:O,HOME:q},{}),C)});
|
|
2
|
+
export{D as Wi,s as Xi,g as Yi};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{$5 as j,V8 as S,c6 as h,n8 as b,o8 as l,t9 as c}from"./cli-1.1.24-dw6eynz7.mjs";import{S_ as F,T_ as D}from"./cli-1.1.24-7ymj1nkq.mjs";import{Bha as y,Jha as I}from"./cli-1.1.24-pe23qamd.mjs";import{Kja as $,Lja as R,Mja as _,Nja as E}from"./cli-1.1.24-zjc9nfba.mjs";import{Cka as v,Dka as m}from"./cli-1.1.24-7ae9t2qz.mjs";import{Hla as W,Kla as z,kla as M,pla as U}from"./cli-1.1.24-zey4mks2.mjs";import{ema as k,fma as q,mma as O}from"./cli-1.1.24-eh4c00hd.mjs";import{gta as Y,yta as T}from"./cli-1.1.24-zc49jxpp.mjs";import{_ta as A}from"./cli-1.1.24-hty94kzp.mjs";import{randomUUID as d}from"crypto";function u(J){if(!Y.isAxiosError(J))return!1;if(!J.response)return!0;if(J.response.status>=500)return!0;return!1}async function p(J,B){let N;for(let K=0;K<=x;K++)try{return await Y.get(J,B)}catch(Q){if(N=Q,!u(Q))throw Q;if(K>=x)throw W(`Teleport request failed after ${K+1} attempts: ${q(Q)}`),Q;let V=f[K]??2000;W(`Teleport request failed (attempt ${K+1}/${x+1}), retrying in ${V}ms: ${q(Q)}`),await b(V)}throw N}async function C(){let J=S()?.accessToken;if(J===void 0)throw Error("Claude Code web sessions require authentication with a Claude.ai account. API key authentication is not sufficient. Please run /login to authenticate, or check your authentication status with /status.");let B=await j();if(!B)throw Error("Unable to get organization UUID");return{accessToken:J,orgUUID:B}}async function BJ(){let{accessToken:J,orgUUID:B}=await C(),N=`${v().BASE_API_URL}/v1/sessions`;try{let K={...L(J),"anthropic-beta":"ccr-byoc-2025-07-29","x-organization-uuid":B},Q=await p(N,{headers:K});if(Q.status!==200)throw Error(`Failed to fetch code sessions: ${Q.statusText}`);return Q.data.data.map((Z)=>{let X=Z.session_context.sources.find((G)=>G.type==="git_repository"),H=null;if(X?.url){let G=F(X.url);if(G){let[w,P]=G.split("/");if(w&&P)H={name:P,owner:{login:w},default_branch:X.revision||void 0}}}return{id:Z.id,title:Z.title||"Untitled",description:"",status:Z.session_status,repo:H,turns:[],created_at:Z.created_at,updated_at:Z.updated_at}})}catch(K){let Q=k(K);throw y(Q),K}}function L(J){return{Authorization:`Bearer ${J}`,"Content-Type":"application/json","anthropic-version":"2023-06-01"}}async function NJ(J){let{accessToken:B,orgUUID:N}=await C(),K=`${v().BASE_API_URL}/v1/sessions/${J}`,Q={...L(B),"anthropic-beta":"ccr-byoc-2025-07-29","x-organization-uuid":N},V=await Y.get(K,{headers:Q,timeout:15000,validateStatus:(Z)=>Z<500});if(V.status!==200){let X=V.data?.error?.message;if(V.status===404)throw Error(`Session not found: ${J}`);if(V.status===401)throw Error("Session expired. Please run /login to sign in again.");throw Error(X||`Failed to fetch session: ${V.status} ${V.statusText}`)}return V.data}function WJ(J){return J.session_context.outcomes?.find((N)=>N.type==="git_repository")?.git_info?.branches[0]}async function GJ(J,B,N){try{let{accessToken:K,orgUUID:Q}=await C(),V=`${v().BASE_API_URL}/v1/sessions/${J}/events`,Z={...L(K),"anthropic-beta":"ccr-byoc-2025-07-29","x-organization-uuid":Q},H={events:[{uuid:N?.uuid??d(),session_id:J,type:"user",parent_tool_use_id:null,message:{role:"user",content:B}}]};W(`[sendEventToRemoteSession] Sending event to session ${J}`);let G=await Y.post(V,H,{headers:Z,validateStatus:(w)=>w<500,timeout:30000});if(G.status===200||G.status===201)return W(`[sendEventToRemoteSession] Successfully sent event to session ${J}`),!0;return W(`[sendEventToRemoteSession] Failed with status ${G.status}: ${M(G.data)}`),!1}catch(K){return W(`[sendEventToRemoteSession] Error: ${q(K)}`),!1}}async function XJ(J,B){try{let{accessToken:N,orgUUID:K}=await C(),Q=`${v().BASE_API_URL}/v1/sessions/${J}`,V={...L(N),"anthropic-beta":"ccr-byoc-2025-07-29","x-organization-uuid":K};W(`[updateSessionTitle] Updating title for session ${J}: "${B}"`);let Z=await Y.patch(Q,{title:B},{headers:V,validateStatus:(X)=>X<500});if(Z.status===200)return W(`[updateSessionTitle] Successfully updated title for session ${J}`),!0;return W(`[updateSessionTitle] Failed with status ${Z.status}: ${M(Z.data)}`),!1}catch(N){return W(`[updateSessionTitle] Error: ${q(N)}`),!1}}var f,x,$J;var g=A(()=>{T();m();h();R();c();z();D();O();E();I();l();U();f=[2000,4000,8000,16000],x=f.length;$J=_(()=>$.object({id:$.string(),title:$.string(),description:$.string(),status:$.enum(["idle","working","waiting","completed","archived","cancelled","rejected"]),repo:$.object({name:$.string(),owner:$.object({login:$.string()}),default_branch:$.string().optional()}).nullable(),turns:$.array($.string()),created_at:$.string(),updated_at:$.string()}))});
|
|
2
|
+
export{u as Y4,p as Z4,$J as _4,C as $4,BJ as a5,L as b5,NJ as c5,WJ as d5,GJ as e5,XJ as f5,g as g5};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{M as F}from"./cli-1.1.24-x19qr19f.mjs";import{W as k}from"./cli-1.1.24-n18majmw.mjs";import{yb as x}from"./cli-1.1.24-hhgxzt7m.mjs";import{zb as O}from"./cli-1.1.24-6pgc4c5x.mjs";import{OU as b,PU as p,ep as G,fp as U,ip as L,jp as d}from"./cli-1.1.24-2qkkzsk3.mjs";import{BV as R,EV as u}from"./cli-1.1.24-5vw5z579.mjs";import{C5 as Y,I5 as D,L7 as j,M7 as z,O8 as w,P8 as E,t9 as m}from"./cli-1.1.24-dw6eynz7.mjs";import{bfa as X,cfa as B,mha as $,pha as M}from"./cli-1.1.24-pe23qamd.mjs";import{Qja as _,Sja as I}from"./cli-1.1.24-n7r6kv9g.mjs";import{Hla as K,Kla as y}from"./cli-1.1.24-zey4mks2.mjs";import{fma as V,mma as v}from"./cli-1.1.24-eh4c00hd.mjs";import{Ama as C,sma as J,uma as N}from"./cli-1.1.24-8s7nf1y6.mjs";import{gta as W,yta as A}from"./cli-1.1.24-zc49jxpp.mjs";C();u();p();M();m();d();I();A();y();v();D();B();var T=void 0;function h(q){try{let H=new URL(q);return H.search="",H.toString().replace(/\/$/,"")}catch{return}}async function Z(){if(X())return;if(Y()!=="firstParty")return;try{let q=await W.get("https://api.anthropic.com/mcp-registry/v0/servers?version=latest&visibility=commercial",{timeout:5000}),H=new Set;for(let P of q.data.servers)for(let S of P.server.remotes??[]){let Q=h(S.url);if(Q)H.add(Q)}T=H,K(`[mcp-registry] Loaded ${H.size} official MCP URLs`)}catch(q){K(`Failed to fetch MCP registry: ${V(q)}`,{level:"error"})}}z();U();function Xq(){if(J(process.env.CLAUDIN_EXIT_AFTER_FIRST_RENDER)||N())return;R(),b(),k(),x();let q=$()?.transport;if(q==="bedrock"&&!J(process.env.CLAUDIN_SKIP_BEDROCK_AUTH))E();if(q==="vertex"&&!J(process.env.CLAUDIN_SKIP_VERTEX_AUTH))w();if(L(_(),AbortSignal.timeout(3000),[]),F(),Z(),j(),G.initialize(),!N())O.initialize()}
|
|
2
|
+
export{Xq as L};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{ad as O,bd as Q,ed as U,fd as $}from"./cli-1.1.24-228jgyfg.mjs";import{$G as _,UG as N}from"./cli-1.1.24-2qkkzsk3.mjs";import{F1 as G,H1 as w,k2 as Z}from"./cli-1.1.24-vf59rwy3.mjs";import{I4 as q,J4 as F,K4 as K}from"./cli-1.1.24-9dnr05fm.mjs";import{L4 as Y}from"./cli-1.1.24-ys3jea4v.mjs";import{Wta as W,_ta as X}from"./cli-1.1.24-hty94kzp.mjs";function R({enabled:J,onDismiss:H}){let[z,A]=V.useState(()=>J?{kind:"prompt"}:{kind:"hidden"});if(!J||z.kind==="hidden")return null;if(z.kind==="running")return F(G,{flexDirection:"column",marginBottom:1,children:[q(w,{color:"warning",bold:!0,children:"Migrating ~/.claude/ to ~/.claudin/..."}),q(w,{dimColor:!0,children:"Copying API tokens and provider profiles."})]});if(z.kind==="success"||z.kind==="error"){let I=z.kind==="success"?"success":"warning",E=z.kind==="success"?"Migration complete":"Migration finished with warnings";return F(G,{flexDirection:"column",marginBottom:1,children:[q(w,{color:I,bold:!0,children:E}),q(w,{children:Q(z.report)}),q(w,{dimColor:!0,children:"Next: /import brings skills, MCP servers, agents and slash commands — from Claude Code, and from Codex, Gemini CLI, Qwen Code, opencode, Kimi CLI and Cursor."})]})}return F(G,{flexDirection:"column",marginBottom:1,children:[q(w,{color:"warning",bold:!0,children:"Found Claude Code config at ~/.claude/"}),q(w,{children:"Copy the Claude Code sign-in — API tokens and provider profiles — into ~/.claudin/?"}),q(N,{options:[{value:"migrate",label:"Copy my sign-in",description:"Tokens only. Run /import for skills, MCP, agents."},{value:"skip",label:"Skip — start fresh",description:"Don't ask again this profile."}],onChange:(I)=>{if(I==="skip"){U(),A({kind:"hidden"}),H?.("skipped");return}A({kind:"running"}),(async()=>{let E=await O();A({kind:E.errors.length===0?"success":"error",report:E}),H?.("migrated")})()},onCancel:()=>{A({kind:"hidden"}),H?.("skipped")},visibleOptionCount:2})]})}var V;var f=X(()=>{Z();$();_();K();V=W(Y(),1)});
|
|
2
|
+
export{R as _c,f as $c};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{Mta as p,Nta as a}from"./cli-1.1.24-swr2gr8m.mjs";import{Yta as i}from"./cli-1.1.24-hty94kzp.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 i_};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{GW as f,HW as h,XW as u}from"./cli-1.1.24-3n53gv32.mjs";import{eY as C,qY as d}from"./cli-1.1.24-zqsb8jf1.mjs";import{e5 as w,g5 as F}from"./cli-1.1.24-8zb03vbp.mjs";import{C5 as O,I5 as i}from"./cli-1.1.24-dw6eynz7.mjs";import{A9 as v,H9 as M,I9 as A,N9 as I,x9 as x}from"./cli-1.1.24-3n6e2e3w.mjs";import{Bha as K,Jha as j}from"./cli-1.1.24-pe23qamd.mjs";import{Cka as R,Dka as _}from"./cli-1.1.24-7ae9t2qz.mjs";import{Hla as J,Kla as W,kla as X,lla as P,pla as T}from"./cli-1.1.24-zey4mks2.mjs";import{fma as y,mma as p}from"./cli-1.1.24-eh4c00hd.mjs";import{$ta as q}from"./cli-1.1.24-hty94kzp.mjs";W();j();F();_();W();p();j();v();I();T();import{randomUUID as S}from"crypto";var L=2000,k=5,c=30000,Y=3,E=new Set([4003]);function b(B){if(typeof B!=="object"||B===null||!("type"in B))return!1;return typeof B.type==="string"}class U{sessionId;orgUuid;getAccessToken;callbacks;ws=null;state="closed";reconnectAttempts=0;sessionNotFoundRetries=0;pingInterval=null;reconnectTimer=null;constructor(B,z,Q,G){this.sessionId=B;this.orgUuid=z;this.getAccessToken=Q;this.callbacks=G}async connect(){if(this.state==="connecting"){J("[SessionsWebSocket] Already connecting");return}this.state="connecting";let z=`${R().BASE_API_URL.replace("https://","wss://")}/v1/sessions/ws/${this.sessionId}/subscribe?organization_uuid=${this.orgUuid}`;J(`[SessionsWebSocket] Connecting to ${z}`);let G={Authorization:`Bearer ${this.getAccessToken()}`,"anthropic-version":"2023-06-01"};if(typeof Bun<"u"){let $=new globalThis.WebSocket(z,{headers:G,proxy:A(z),tls:x()||void 0});this.ws=$,$.addEventListener("open",()=>{J("[SessionsWebSocket] Connection opened, authenticated via headers"),this.state="connected",this.reconnectAttempts=0,this.sessionNotFoundRetries=0,this.startPingInterval(),this.callbacks.onConnected?.()}),$.addEventListener("message",(Z)=>{let H=typeof Z.data==="string"?Z.data:String(Z.data);this.handleMessage(H)}),$.addEventListener("error",()=>{let Z=Error("[SessionsWebSocket] WebSocket error");K(Z),this.callbacks.onError?.(Z)}),$.addEventListener("close",(Z)=>{J(`[SessionsWebSocket] Closed: code=${Z.code} reason=${Z.reason}`),this.handleClose(Z.code)}),$.addEventListener("pong",()=>{J("[SessionsWebSocket] Pong received")})}else{let{default:$}=await import("./wrapper-1.1.24-arr1pkz0.mjs"),Z=new $(z,{headers:G,agent:M(z),...x()});this.ws=Z,Z.on("open",()=>{J("[SessionsWebSocket] Connection opened, authenticated via headers"),this.state="connected",this.reconnectAttempts=0,this.sessionNotFoundRetries=0,this.startPingInterval(),this.callbacks.onConnected?.()}),Z.on("message",(H)=>{this.handleMessage(H.toString())}),Z.on("error",(H)=>{K(Error(`[SessionsWebSocket] Error: ${H.message}`)),this.callbacks.onError?.(H)}),Z.on("close",(H,V)=>{J(`[SessionsWebSocket] Closed: code=${H} reason=${V.toString()}`),this.handleClose(H)}),Z.on("pong",()=>{J("[SessionsWebSocket] Pong received")})}}handleMessage(B){try{let z=P(B);if(b(z))this.callbacks.onMessage(z);else J(`[SessionsWebSocket] Ignoring message type: ${typeof z==="object"&&z!==null&&"type"in z?String(z.type):"unknown"}`)}catch(z){K(Error(`[SessionsWebSocket] Failed to parse message: ${y(z)}`))}}handleClose(B){if(this.stopPingInterval(),this.state==="closed")return;this.ws=null;let z=this.state;if(this.state="closed",E.has(B)){J(`[SessionsWebSocket] Permanent close code ${B}, not reconnecting`),this.callbacks.onClose?.();return}if(B===4001){if(this.sessionNotFoundRetries++,this.sessionNotFoundRetries>Y){J(`[SessionsWebSocket] 4001 retry budget exhausted (${Y}), not reconnecting`),this.callbacks.onClose?.();return}this.scheduleReconnect(L*this.sessionNotFoundRetries,`4001 attempt ${this.sessionNotFoundRetries}/${Y}`);return}if(z==="connected"&&this.reconnectAttempts<k)this.reconnectAttempts++,this.scheduleReconnect(L,`attempt ${this.reconnectAttempts}/${k}`);else J("[SessionsWebSocket] Not reconnecting"),this.callbacks.onClose?.()}scheduleReconnect(B,z){this.callbacks.onReconnecting?.(),J(`[SessionsWebSocket] Scheduling reconnect (${z}) in ${B}ms`),this.reconnectTimer=setTimeout(()=>{this.reconnectTimer=null,this.connect()},B)}startPingInterval(){this.stopPingInterval(),this.pingInterval=setInterval(()=>{if(this.ws&&this.state==="connected")try{this.ws.ping?.()}catch{}},c)}stopPingInterval(){if(this.pingInterval)clearInterval(this.pingInterval),this.pingInterval=null}sendControlResponse(B){if(!this.ws||this.state!=="connected"){K(Error("[SessionsWebSocket] Cannot send: not connected"));return}J("[SessionsWebSocket] Sending control response"),this.ws.send(X(B))}sendControlRequest(B){if(!this.ws||this.state!=="connected"){K(Error("[SessionsWebSocket] Cannot send: not connected"));return}let z={type:"control_request",request_id:S(),request:B};J(`[SessionsWebSocket] Sending control request: ${B.subtype}`),this.ws.send(X(z))}isConnected(){return this.state==="connected"}close(){if(J("[SessionsWebSocket] Closing connection"),this.state="closed",this.stopPingInterval(),this.reconnectTimer)clearTimeout(this.reconnectTimer),this.reconnectTimer=null;if(this.ws)this.ws.close(),this.ws=null}reconnect(){J("[SessionsWebSocket] Force reconnecting"),this.reconnectAttempts=0,this.sessionNotFoundRetries=0,this.close(),this.reconnectTimer=setTimeout(()=>{this.reconnectTimer=null,this.connect()},500)}}function D(B){return B.type!=="control_request"&&B.type!=="control_response"&&B.type!=="control_cancel_request"}class N{config;callbacks;websocket=null;pendingPermissionRequests=new Map;constructor(B,z){this.config=B;this.callbacks=z}connect(){J(`[RemoteSessionManager] Connecting to session ${this.config.sessionId}`);let B={onMessage:(z)=>this.handleMessage(z),onConnected:()=>{J("[RemoteSessionManager] Connected"),this.callbacks.onConnected?.()},onClose:()=>{J("[RemoteSessionManager] Disconnected"),this.callbacks.onDisconnected?.()},onReconnecting:()=>{J("[RemoteSessionManager] Reconnecting"),this.callbacks.onReconnecting?.()},onError:(z)=>{K(z),this.callbacks.onError?.(z)}};this.websocket=new U(this.config.sessionId,this.config.orgUuid,this.config.getAccessToken,B),this.websocket.connect()}handleMessage(B){if(B.type==="control_request"){this.handleControlRequest(B);return}if(B.type==="control_cancel_request"){let{request_id:z}=B,Q=this.pendingPermissionRequests.get(z);J(`[RemoteSessionManager] Permission request cancelled: ${z}`),this.pendingPermissionRequests.delete(z),this.callbacks.onPermissionCancelled?.(z,Q?.tool_use_id);return}if(B.type==="control_response"){J("[RemoteSessionManager] Received control response");return}if(D(B))this.callbacks.onMessage(B)}handleControlRequest(B){let{request_id:z,request:Q}=B;if(Q.subtype==="can_use_tool")J(`[RemoteSessionManager] Permission request for tool: ${Q.tool_name}`),this.pendingPermissionRequests.set(z,Q),this.callbacks.onPermissionRequest(Q,z);else{J(`[RemoteSessionManager] Unsupported control request subtype: ${Q.subtype}`);let G={type:"control_response",response:{subtype:"error",request_id:z,error:`Unsupported control request subtype: ${Q.subtype}`}};this.websocket?.sendControlResponse(G)}}async sendMessage(B,z){J(`[RemoteSessionManager] Sending message to session ${this.config.sessionId}`);let Q=await w(this.config.sessionId,B,z);if(!Q)K(Error(`[RemoteSessionManager] Failed to send message to session ${this.config.sessionId}`));return Q}respondToPermissionRequest(B,z){if(!this.pendingPermissionRequests.get(B)){K(Error(`[RemoteSessionManager] No pending permission request with ID: ${B}`));return}this.pendingPermissionRequests.delete(B);let G={type:"control_response",response:{subtype:"success",request_id:B,response:{behavior:z.behavior,...z.behavior==="allow"?{updatedInput:z.updatedInput}:{message:z.message}}}};J(`[RemoteSessionManager] Sending permission response: ${z.behavior}`),this.websocket?.sendControlResponse(G)}isConnected(){return this.websocket?.isConnected()??!1}cancelSession(){J("[RemoteSessionManager] Sending interrupt signal"),this.websocket?.sendControlRequest({subtype:"interrupt"})}getSessionId(){return this.config.sessionId}disconnect(){J("[RemoteSessionManager] Disconnecting"),this.websocket?.close(),this.websocket=null,this.pendingPermissionRequests.clear()}reconnect(){J("[RemoteSessionManager] Reconnecting WebSocket"),this.websocket?.reconnect()}}function $z(B,z,Q,G=!1,$=!1){return{sessionId:B,getAccessToken:z,orgUuid:Q,hasInitialPrompt:G,viewerOnly:$}}W();j();d();u();function Xz(){let B=C();if(!B?.teamName||!B?.agentName){J("[Reconnection] computeInitialTeamContext: No teammate context set (not a teammate)");return}let{teamName:z,agentId:Q,agentName:G}=B,$=h(z);if(!$){K(Error(`[computeInitialTeamContext] Could not read team file for ${z}`));return}let Z=f(z),H=!Q;return J(`[Reconnection] Computed initial team context for ${H?"leader":`teammate ${G}`} in team ${z}`),{teamName:z,teamFilePath:Z,leadAgentId:$.leadAgentId,selfAgentId:Q,selfAgentName:G,isLeader:H,teammates:{}}}function xz(B,z,Q){let G=h(z);if(!G){K(Error(`[initializeTeammateContextFromSession] Could not read team file for ${z} (agent: ${Q})`));return}let $=G.members.find((V)=>V.name===Q);if(!$)J(`[Reconnection] Member ${Q} not found in team ${z} - may have been removed`);let Z=$?.agentId,H=f(z);B((V)=>({...V,teamContext:{teamName:z,teamFilePath:H,leadAgentId:G.leadAgentId,selfAgentId:Z,selfAgentName:Q,isLeader:!1,teammates:{}}})),J(`[Reconnection] Initialized agent context from session for ${Q} in team ${z}`)}i();var m={"claude-3-opus":{modelName:"Claude 3 Opus",retirementDates:{firstParty:"January 5, 2026",bedrock:"January 15, 2026",vertex:"January 5, 2026",foundry:"January 5, 2026"}},"claude-3-7-sonnet":{modelName:"Claude 3.7 Sonnet",retirementDates:{firstParty:"February 19, 2026",bedrock:"April 28, 2026",vertex:"May 11, 2026",foundry:"February 19, 2026"}},"claude-3-5-haiku":{modelName:"Claude 3.5 Haiku",retirementDates:{firstParty:"February 19, 2026",bedrock:null,vertex:null,foundry:null}}};function l(B){let z=B.toLowerCase(),Q=O();for(let[G,$]of Object.entries(m)){let Z=$.retirementDates[Q];if(!z.includes(G)||!Z)continue;return{isDeprecated:!0,modelName:$.modelName,retirementDate:Z}}return{isDeprecated:!1}}function Uz(B){if(!B)return null;let z=l(B);if(!z.isDeprecated)return null;return`⚠ ${z.modelName} will be retired on ${z.retirementDate}. Consider switching to a newer model.`}
|
|
2
|
+
export{N as jb,$z as kb,Xz as lb,xz as mb,Uz as nb};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import{f3 as S,g3 as D,k3 as N}from"./cli-1.1.24-yzfk4k7c.mjs";import{Bha as X,Ffa as B,Ifa as O,Jha as E,bfa as H,bga as d,cfa as P}from"./cli-1.1.24-pe23qamd.mjs";import{ema as U,mma as f}from"./cli-1.1.24-eh4c00hd.mjs";import{Ama as b,pma as W}from"./cli-1.1.24-8s7nf1y6.mjs";import{Vpa as T,dsa as M}from"./cli-1.1.24-bnm1yphs.mjs";import{gta as j,yta as y}from"./cli-1.1.24-zc49jxpp.mjs";import{Wta as R,_ta as p}from"./cli-1.1.24-hty94kzp.mjs";import{mkdir as G,readFile as m,writeFile as _}from"fs/promises";import{dirname as F,join as u}from"path";function I(){return u(W(),"cache","changelog.md")}async function Jq(){let J=O();if(!J.cachedChangelog)return;let q=I();try{await G(F(q),{recursive:!0}),await _(q,J.cachedChangelog,{encoding:"utf-8",flag:"wx"})}catch{}B(({cachedChangelog:Y,...z})=>z)}async function C(){if(T())return;if(H())return;let J=await j.get(v);if(J.status===200){let q=J.data;if(q===$)return;let Y=I();await G(F(Y),{recursive:!0}),await _(Y,q,{encoding:"utf-8"}),$=q;let z=Date.now();B((K)=>({...K,changelogLastFetched:z}))}}async function h(){if($!==null)return $;let J=I();try{let q=await m(J,"utf-8");return $=q,q}catch{return $="",""}}function A(){return $??""}function L(J){try{if(!J)return{};let q={},Y=J.split(/^## /gm).slice(1);for(let z of Y){let K=z.trim().split(`
|
|
2
|
+
`);if(K.length===0)continue;let Q=K[0];if(!Q)continue;let Z=Q.split(" - ")[0]?.trim()||"";if(!Z)continue;let x=K.slice(1).filter((k)=>k.trim().startsWith("- ")).map((k)=>k.trim().substring(2).trim()).filter(Boolean);if(x.length>0)q[Z]=x}return q}catch(q){return X(U(q)),{}}}function l(J,q,Y=A()){try{let z=L(Y),K=w.coerce(J),Q=q?w.coerce(q):null;if(!Q||K&&D(K.version,Q.version))return Object.entries(z).filter(([Z])=>!Q||D(Z,Q.version)).sort(([Z],[x])=>D(Z,x)?-1:1).flatMap(([Z,x])=>x).filter(Boolean).slice(0,V)}catch(z){return X(U(z)),[]}return[]}function Kq(J=A()){try{let q=L(J);return Object.keys(q).sort((z,K)=>D(z,K)?1:-1).map((z)=>{let K=q[z];if(!K||K.length===0)return null;let Q=K.filter(Boolean);if(Q.length===0)return null;return[z,Q]}).filter((z)=>z!==null)}catch(q){return X(U(q)),[]}}async function Qq(J,q="99.0.0"){let Y=await h();if(J!==q||!Y)C().catch((Q)=>X(U(Q)));let z=l(q,J,Y);return{hasReleaseNotes:z.length>0,releaseNotes:z}}var w,V=5,zq="https://github.com/anthropics/claude-code/blob/main/CHANGELOG.md",v="https://raw.githubusercontent.com/anthropics/claude-code/refs/heads/main/CHANGELOG.md",$=null;var c=p(()=>{y();M();d();b();f();E();P();N();w=R(S(),1)});
|
|
3
|
+
export{zq as Kf,Jq as Lf,C as Mf,h as Nf,Kq as Of,Qq as Pf,c as Qf};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{_ta as l}from"./cli-1.1.24-hty94kzp.mjs";function o(i,e,r){var t=null;if(r!==void 0&&(t=""+r),e.key!==void 0&&(t=""+e.key),"key"in e){r={};for(var s in e)s!=="key"&&(r[s]=e[s])}else r=e;return e=r.ref,{$$typeof:n,type:i,key:t,ref:e!==void 0?e:null,props:r}}var n,d,u,E,a;var c=l(()=>{n=Symbol.for("react.transitional.element"),d=Symbol.for("react.fragment");u=d,E=o,a=o});
|
|
2
|
+
export{u as H4,E as I4,a as J4,c as K4};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{kla as E,lla as F,pla as M}from"./cli-1.1.24-zey4mks2.mjs";import{gta as H,yta as N}from"./cli-1.1.24-zc49jxpp.mjs";N();M();function V(z){let C=Buffer.from(z,"base64url").toString("utf-8"),q=F(C);if(!q||typeof q!=="object"||!("version"in q)||q.version!==1)throw Error(`Unsupported work secret version: ${q&&typeof q==="object"&&"version"in q?q.version:"unknown"}`);let A=q;if(typeof A.session_ingress_token!=="string"||A.session_ingress_token.length===0)throw Error("Invalid work secret: missing or empty session_ingress_token");if(typeof A.api_base_url!=="string")throw Error("Invalid work secret: missing api_base_url");return q}function W(z,C){let q=new URL(z).hostname,A=q==="localhost"||q==="127.0.0.1",D=A?"ws":"wss",J=A?"v2":"v1",K=z.replace(/^https?:\/\//,"").replace(/\/+$/,"");return`${D}://${K}/${J}/session_ingress/ws/${C}`}function X(z,C){if(z===C)return!0;let q=z.slice(z.lastIndexOf("_")+1),A=C.slice(C.lastIndexOf("_")+1);return q.length>=4&&q===A}function Y(z,C){return`${z.replace(/\/+$/,"")}/v1/code/sessions/${C}`}async function Z(z,C){let q=await H.post(`${z}/worker/register`,{},{headers:{Authorization:`Bearer ${C}`,"Content-Type":"application/json","anthropic-version":"2023-06-01"},timeout:1e4}),A=q.data?.worker_epoch,D=typeof A==="string"?Number(A):A;if(typeof D!=="number"||!Number.isFinite(D)||!Number.isSafeInteger(D))throw Error(`registerWorker: invalid worker_epoch in response: ${E(q.data)}`);return D}
|
|
2
|
+
export{V as va,W as wa,X as xa,Y as ya,Z as za};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{_ta as P}from"./cli-1.1.24-hty94kzp.mjs";import{homedir as Q}from"os";import{join as F}from"path";function J(q){return{env:q?.env??process.env,home:q?.homedir??process.env.HOME??Q()}}function k(q){let{env:x,home:B}=J(q);return x.XDG_STATE_HOME??F(B,".local","state")}function w(q){let{env:x,home:B}=J(q);return x.XDG_CACHE_HOME??F(B,".cache")}function H(q){let{env:x,home:B}=J(q);return x.XDG_DATA_HOME??F(B,".local","share")}function g(q){let{home:x}=J(q);return F(x,".local","bin")}var V=()=>{};function W(q){let x=q,B="",C=0,K=10;while(x!==B&&C<K)B=x,x=x.normalize("NFKC"),x=x.replace(/[\p{Cf}\p{Co}\p{Cn}]/gu,""),x=x.replace(/[\u200B-\u200F]/g,"").replace(/[\u202A-\u202E]/g,"").replace(/[\u2066-\u2069]/g,"").replace(/[\uFEFF]/g,"").replace(/[\uE000-\uF8FF]/g,""),C++;if(C>=K)throw Error(`Unicode sanitization reached maximum iterations (${K}) for input: ${q.slice(0,100)}`);return x}function L(q){if(typeof q==="string")return W(q);if(Array.isArray(q))return q.map(L);if(q!==null&&typeof q==="object"){let x={};for(let[B,C]of Object.entries(q))x[L(B)]=L(C);return x}return q}var Y=()=>{};
|
|
2
|
+
export{k as CX,w as DX,H as EX,g as FX,V as GX,W as HX,L as IX,Y as JX};
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import{Bj as h,JS as a,Ur as F,XK as A,Xr as m,dE as U,eE as p,jC as O,kC as I,qS as P,yj as $}from"./cli-1.1.24-2qkkzsk3.mjs";import{n5 as b,o5 as T}from"./cli-1.1.24-dw6eynz7.mjs";import{tla as R,xla as x}from"./cli-1.1.24-zey4mks2.mjs";import{kma as k,mma as M}from"./cli-1.1.24-eh4c00hd.mjs";import{Ama as _,pma as N}from"./cli-1.1.24-8s7nf1y6.mjs";import{_ta as v}from"./cli-1.1.24-hty94kzp.mjs";import{join as E}from"path";function g(){return`IMPORTANT: This message and these instructions are NOT part of the actual user conversation. Do NOT include any references to "documentation updates", "magic docs", or these update instructions in the document content.
|
|
2
|
+
|
|
3
|
+
Based on the user conversation above (EXCLUDING this documentation update instruction message), update the Magic Doc file to incorporate any NEW learnings, insights, or information that would be valuable to preserve.
|
|
4
|
+
|
|
5
|
+
The file {{docPath}} has already been read for you. Here are its current contents:
|
|
6
|
+
<current_doc_content>
|
|
7
|
+
{{docContents}}
|
|
8
|
+
</current_doc_content>
|
|
9
|
+
|
|
10
|
+
Document title: {{docTitle}}
|
|
11
|
+
{{customInstructions}}
|
|
12
|
+
|
|
13
|
+
Your ONLY task is to use the Edit tool to update the documentation file if there is substantial new information to add, then stop. You can make multiple edits (update multiple sections as needed) - make all Edit tool calls in parallel in a single message. If there's nothing substantial to add, simply respond with a brief explanation and do not call any tools.
|
|
14
|
+
|
|
15
|
+
CRITICAL RULES FOR EDITING:
|
|
16
|
+
- Preserve the Magic Doc header exactly as-is: # MAGIC DOC: {{docTitle}}
|
|
17
|
+
- If there's an italicized line immediately after the header, preserve it exactly as-is
|
|
18
|
+
- Keep the document CURRENT with the latest state of the codebase - this is NOT a changelog or history
|
|
19
|
+
- Update information IN-PLACE to reflect the current state - do NOT append historical notes or track changes over time
|
|
20
|
+
- Remove or replace outdated information rather than adding "Previously..." or "Updated to..." notes
|
|
21
|
+
- Clean up or DELETE sections that are no longer relevant or don't align with the document's purpose
|
|
22
|
+
- Fix obvious errors: typos, grammar mistakes, broken formatting, incorrect information, or confusing statements
|
|
23
|
+
- Keep the document well organized: use clear headings, logical section order, consistent formatting, and proper nesting
|
|
24
|
+
|
|
25
|
+
DOCUMENTATION PHILOSOPHY - READ CAREFULLY:
|
|
26
|
+
- BE TERSE. High signal only. No filler words or unnecessary elaboration.
|
|
27
|
+
- Documentation is for OVERVIEWS, ARCHITECTURE, and ENTRY POINTS - not detailed code walkthroughs
|
|
28
|
+
- Do NOT duplicate information that's already obvious from reading the source code
|
|
29
|
+
- Do NOT document every function, parameter, or line number reference
|
|
30
|
+
- Focus on: WHY things exist, HOW components connect, WHERE to start reading, WHAT patterns are used
|
|
31
|
+
- Skip: detailed implementation steps, exhaustive API docs, play-by-play narratives
|
|
32
|
+
|
|
33
|
+
What TO document:
|
|
34
|
+
- High-level architecture and system design
|
|
35
|
+
- Non-obvious patterns, conventions, or gotchas
|
|
36
|
+
- Key entry points and where to start reading code
|
|
37
|
+
- Important design decisions and their rationale
|
|
38
|
+
- Critical dependencies or integration points
|
|
39
|
+
- References to related files, docs, or code (like a wiki) - help readers navigate to relevant context
|
|
40
|
+
|
|
41
|
+
What NOT to document:
|
|
42
|
+
- Anything obvious from reading the code itself
|
|
43
|
+
- Exhaustive lists of files, functions, or parameters
|
|
44
|
+
- Step-by-step implementation details
|
|
45
|
+
- Low-level code mechanics
|
|
46
|
+
- Information already in CLAUDE.md or other project docs
|
|
47
|
+
|
|
48
|
+
Use the Edit tool with file_path: {{docPath}}
|
|
49
|
+
|
|
50
|
+
REMEMBER: Only update if there is substantial new information. The Magic Doc header (# MAGIC DOC: {{docTitle}}) must remain unchanged.`}async function D(){let w=R(),z=E(N(),"magic-docs","prompt.md");try{return await w.readFile(z,{encoding:"utf-8"})}catch{return g()}}function f(w,z){return w.replace(/\{\{(\w+)\}\}/g,(B,J)=>Object.prototype.hasOwnProperty.call(z,J)?z[J]:B)}async function S(w,z,B,J){let Y=await D(),K=J?`
|
|
51
|
+
|
|
52
|
+
DOCUMENT-SPECIFIC UPDATE INSTRUCTIONS:
|
|
53
|
+
The document author has provided specific instructions for how this file should be updated. Pay extra attention to these instructions and follow them carefully:
|
|
54
|
+
|
|
55
|
+
"${J}"
|
|
56
|
+
|
|
57
|
+
These instructions take priority over the general rules below. Make sure your updates align with these specific guidelines.`:"";return f(Y,{docContents:w,docPath:z,docTitle:B,customInstructions:K})}var y=v(()=>{_();x()});function Xw(){G.clear()}function r(w){let z=w.match(u);if(!z||!z[1])return null;let B=z[1].trim(),J=z.index+z[0].length,K=w.slice(J).match(/^\s*\n(?:\s*\n)?(.+?)(?:\n|$)/);if(K&&K[1]){let X=K[1].match(l);if(X&&X[1]){let Z=X[1].trim();return{title:B,instructions:Z}}}return{title:B}}function d(){return{agentType:"magic-docs",whenToUse:"Update Magic Docs",tools:[$],model:"sonnet",source:"built-in",baseDir:"built-in",getSystemPrompt:()=>""}}async function i(w,z){let{messages:B,systemPrompt:J,userContext:Y,systemContext:K,toolUseContext:V}=z,X=F(V.readFileState);X.delete(w.path);let Z={...V,readFileState:X},q="";try{let W=(await U.call({file_path:w.path},Z)).data;if(W.type==="text")q=W.file.content}catch(Q){if(k(Q)||Q instanceof Error&&Q.message.startsWith("File does not exist")){G.delete(w.path);return}throw Q}let H=r(q);if(!H){G.delete(w.path);return}let L=await S(q,w.path,H.title,H.instructions),C=async(Q,W)=>{if(Q.name===$&&typeof W==="object"&&W!==null&&"file_path"in W){let j=W.file_path;if(typeof j==="string"&&j===w.path)return{behavior:"allow",updatedInput:W}}return{behavior:"deny",message:`only ${$} is allowed for ${w.path}`,decisionReason:{type:"other",reason:`only ${$} is allowed`}}};for await(let Q of O({agentDefinition:d(),promptMessages:[A({content:L})],toolUseContext:Z,canUseTool:C,isAsync:!0,forkContextMessages:B,querySource:"magic_docs",override:{systemPrompt:J,userContext:Y,systemContext:K},availableTools:Z.options.tools}));}async function Zw(){}var u,l,G,Yw;var s=v(()=>{I();h();p();M();m();a();T();y();u=/^#\s*MAGIC\s+DOC:\s*(.+)$/im,l=/^[_*](.+?)[_*]\s*$/m,G=new Map;Yw=b(async function(w){let{messages:z,querySource:B}=w;if(B!=="repl_main_thread")return;if(P(z))return;if(G.size===0)return;for(let K of Array.from(G.values()))await i(K,w)})});
|
|
58
|
+
export{Xw as oi,Zw as pi,s as qi};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{_ta as j}from"./cli-1.1.24-hty94kzp.mjs";function G(){return`claude-swarm-${process.pid}`}var q="team-lead",A="claude-swarm",B="swarm-view",D="tmux",F="claude-hidden",H="CLAUDE_CODE_TEAMMATE_COMMAND";var k=()=>{};
|
|
2
|
+
export{q as X3,A as Y3,B as Z3,D as _3,F as $3,G as a4,H as b4,k as c4};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{Nc as _,Pc as P}from"./cli-1.1.24-47657dtc.mjs";import{lf as Z,mf as y}from"./cli-1.1.24-12hfxy63.mjs";import{Cy as Y,Ey as A,oy as X,sy as K}from"./cli-1.1.24-2qkkzsk3.mjs";import{aZ as V,dZ as C}from"./cli-1.1.24-4p3bjzm5.mjs";import{I4 as H,K4 as Q}from"./cli-1.1.24-9dnr05fm.mjs";import{L4 as W}from"./cli-1.1.24-ys3jea4v.mjs";import{Mha as L,Nha as M}from"./cli-1.1.24-bph6jjd7.mjs";import{Wta as T,_ta as U}from"./cli-1.1.24-hty94kzp.mjs";function b({children:q}){let{bindings:D}=Y(),F=J.useRef(null),E=J.useRef(new Map),G=J.useRef(new Set).current;return H(V,{bindings:D,pendingChordRef:F,pendingChord:null,setPendingChord:()=>{},activeContexts:G,registerActiveContext:()=>{},unregisterActiveContext:()=>{},handlerRegistryRef:E,children:q})}function j(q){if(!("message"in q))return 1;let D=q.message.content;return Array.isArray(D)?D.length:1}async function v(q,D,F,{columns:E,verbose:G=!1,chunkSize:I=40,onProgress:$}={}){let B=(w)=>_(H(X,{children:H(b,{children:H(Z,{messages:q,tools:D,commands:[],verbose:G,toolJSX:null,toolUseConfirmQueue:[],inProgressToolUseIDs:new Set,isMessageSelectorVisible:!1,conversationId:"export",screen:"prompt",streamingToolUses:[],showAllInTranscript:!0,isLoading:!1,renderRange:w})})}),E),N=I;for(let w of q)N+=j(w);for(let w=0;w<N;w+=I){let O=await B([w,w+I]);if(L(O).trim()==="")break;await F(O),$?.(w+I)}}async function l(q,D=[],F){let E=[];return await v(q,D,(G)=>void E.push(L(G)),{columns:F}),E.join("")}var J;var x=U(()=>{M();y();C();A();K();P();Q();J=T(W(),1)});
|
|
2
|
+
export{l as fc,x as gc};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{O_ as Z,S_ as _,T_ as w}from"./cli-1.1.24-7ymj1nkq.mjs";import{$aa as k,C$ as Y,D$ as U,Ffa as W,Ifa as V,O$ as $,bga as j,paa as T,wba as D}from"./cli-1.1.24-pe23qamd.mjs";import{Hla as N,Kla as M}from"./cli-1.1.24-zey4mks2.mjs";import{dsa as O,koa as X}from"./cli-1.1.24-bnm1yphs.mjs";O();j();M();w();D();U();T();import{realpath as x}from"fs/promises";async function y(){try{let q=await Z();if(!q){N("Not in a GitHub repository, skipping path mapping update");return}let A=X(),z=$(A)??A,B;try{B=(await x(z)).normalize("NFC")}catch{B=z}let J=q.toLowerCase(),L=V().githubRepoPaths?.[J]??[];if(L[0]===B){N(`Path ${B} already tracked for repo ${J}`);return}let E=L.filter((S)=>S!==B),H=[B,...E];W((S)=>({...S,githubRepoPaths:{...S.githubRepoPaths,[J]:H}})),N(`Added ${B} to tracked paths for repo ${J}`)}catch(q){N(`Error updating repo path mapping: ${q}`)}}function f(q){let A=V(),I=q.toLowerCase();return A.githubRepoPaths?.[I]??[]}async function P(q){let A=await Promise.all(q.map(k));return q.filter((I,z)=>A[z])}async function d(q,A){try{let I=await Y(q);if(!I)return!1;let z=_(I);if(!z)return!1;return z.toLowerCase()===A.toLowerCase()}catch{return!1}}function l(q,A){let I=V(),z=q.toLowerCase(),B=I.githubRepoPaths?.[z]??[],J=B.filter((L)=>L!==A);if(J.length===B.length)return;let Q={...I.githubRepoPaths};if(J.length===0)delete Q[z];else Q[z]=J;W((L)=>({...L,githubRepoPaths:Q})),N(`Removed ${A} from tracked paths for repo ${z}`)}
|
|
2
|
+
export{y as Mb,f as Nb,P as Ob,d as Pb,l as Qb};
|