@claudiolabs/claudin 1.1.23 → 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.23-vycpz7yt.mjs +0 -1
- package/dist/chunks/App-1.1.23-4e8j2bd3.mjs +0 -1
- package/dist/chunks/ApproveApiKey-1.1.23-zst4089h.mjs +0 -1
- package/dist/chunks/AssistantSessionChooser-1.1.23-5hcs6ecz.mjs +0 -1
- package/dist/chunks/AutoModeOptInDialog-1.1.23-dd0gy0z6.mjs +0 -1
- package/dist/chunks/BypassPermissionsModeDialog-1.1.23-st6gcnzm.mjs +0 -1
- package/dist/chunks/ClaudeMdExternalIncludesDialog-1.1.23-9q5hv0m5.mjs +0 -1
- package/dist/chunks/ConsoleOAuthFlow-1.1.23-37xx0cvg.mjs +0 -1
- package/dist/chunks/DiffDialog-1.1.23-0mhma9am.mjs +0 -6
- package/dist/chunks/Doctor-1.1.23-er5wr07d.mjs +0 -1
- package/dist/chunks/ExplorerDialog-1.1.23-r0q2mdyq.mjs +0 -6
- package/dist/chunks/ITermBackend-1.1.23-9w1hnwqa.mjs +0 -1
- package/dist/chunks/InvalidConfigDialog-1.1.23-pceysmem.mjs +0 -1
- package/dist/chunks/InvalidSettingsDialog-1.1.23-wqg7m1yb.mjs +0 -1
- package/dist/chunks/MigrationDialog-1.1.23-jvwd5evb.mjs +0 -1
- package/dist/chunks/Onboarding-1.1.23-12qbzfp4.mjs +0 -1
- package/dist/chunks/ProviderManager-1.1.23-gz4gqcm4.mjs +0 -1
- package/dist/chunks/REPL-1.1.23-vg0qg9my.mjs +0 -1
- package/dist/chunks/ResumeConversation-1.1.23-ma5pytfz.mjs +0 -1
- package/dist/chunks/SnapshotUpdateDialog-1.1.23-j0x7q43m.mjs +0 -1
- package/dist/chunks/TeleportProgress-1.1.23-5fbd2jd2.mjs +0 -1
- package/dist/chunks/TeleportRepoMismatchDialog-1.1.23-zx9qhe0w.mjs +0 -1
- package/dist/chunks/TeleportResumeWrapper-1.1.23-2fpwy0ej.mjs +0 -1
- package/dist/chunks/TmuxBackend-1.1.23-fjghg3n9.mjs +0 -9
- package/dist/chunks/ToolSearchTool-1.1.23-ct6qdm0d.mjs +0 -1
- package/dist/chunks/TrustDialog-1.1.23-ajcjhwrt.mjs +0 -1
- package/dist/chunks/activeProvider-1.1.23-taz5qq4d.mjs +0 -1
- package/dist/chunks/add-dir-1.1.23-yb7mzffx.mjs +0 -1
- package/dist/chunks/agentTypes-1.1.23-779zy67c.mjs +0 -1
- package/dist/chunks/agents-1.1.23-13ae3y31.mjs +0 -110
- package/dist/chunks/agents-1.1.23-mz2jsne2.mjs +0 -3
- package/dist/chunks/api-1.1.23-sadzsv9h.mjs +0 -1
- package/dist/chunks/asciicast-1.1.23-ccrtpq7h.mjs +0 -1
- package/dist/chunks/assistant-1.1.23-35t6yajq.mjs +0 -1
- package/dist/chunks/auth-1.1.23-2mazt66r.mjs +0 -1
- package/dist/chunks/auth-1.1.23-f804wpq0.mjs +0 -1
- package/dist/chunks/autoMode-1.1.23-14t0khqy.mjs +0 -52
- package/dist/chunks/autoModeSetup-1.1.23-xxctnwmg.mjs +0 -44
- package/dist/chunks/autoUpdater-1.1.23-wjwsw0rs.mjs +0 -1
- package/dist/chunks/backgroundHousekeeping-1.1.23-pdgb72sw.mjs +0 -1
- package/dist/chunks/branch-1.1.23-df4c0964.mjs +0 -4
- package/dist/chunks/bridge-1.1.23-kkp1c9j5.mjs +0 -2
- package/dist/chunks/bridgeConfig-1.1.23-5xm11ndj.mjs +0 -1
- package/dist/chunks/bridgeEnabled-1.1.23-tjahj3z4.mjs +0 -1
- package/dist/chunks/bridgeMain-1.1.23-0pzcvrp1.mjs +0 -88
- package/dist/chunks/bridgePointer-1.1.23-6rp86r12.mjs +0 -1
- package/dist/chunks/btw-1.1.23-8eq1q86j.mjs +0 -1
- package/dist/chunks/buddy-1.1.23-1raw3vjp.mjs +0 -3
- package/dist/chunks/cache-probe-1.1.23-t476aagd.mjs +0 -21
- package/dist/chunks/cacheStats-1.1.23-r3dg9dbs.mjs +0 -4
- package/dist/chunks/caches-1.1.23-6eegsnhk.mjs +0 -1
- package/dist/chunks/claudeDesktop-1.1.23-rwmxta3h.mjs +0 -1
- package/dist/chunks/claudemd-1.1.23-av012etb.mjs +0 -1
- package/dist/chunks/clear-1.1.23-z6d1gwfs.mjs +0 -1
- package/dist/chunks/clearTerminal-1.1.23-stp5kwm2.mjs +0 -1
- package/dist/chunks/cli-1.1.23-08g4ya29.mjs +0 -2
- package/dist/chunks/cli-1.1.23-0mg2h5ny.mjs +0 -4
- package/dist/chunks/cli-1.1.23-13w02myd.mjs +0 -2
- package/dist/chunks/cli-1.1.23-18zz9bbk.mjs +0 -2
- package/dist/chunks/cli-1.1.23-1a2n71wn.mjs +0 -5
- package/dist/chunks/cli-1.1.23-1e9zjn1z.mjs +0 -3
- package/dist/chunks/cli-1.1.23-1fexxp20.mjs +0 -2
- package/dist/chunks/cli-1.1.23-1fy18jhn.mjs +0 -4
- package/dist/chunks/cli-1.1.23-1r6w3hc9.mjs +0 -2
- package/dist/chunks/cli-1.1.23-1rea0qrn.mjs +0 -2
- package/dist/chunks/cli-1.1.23-1rv4y64b.mjs +0 -2
- package/dist/chunks/cli-1.1.23-2arbhkcc.mjs +0 -24
- package/dist/chunks/cli-1.1.23-2cqrzcwp.mjs +0 -4
- package/dist/chunks/cli-1.1.23-2g7503ny.mjs +0 -133
- package/dist/chunks/cli-1.1.23-2gax24jg.mjs +0 -2
- package/dist/chunks/cli-1.1.23-2swa87qn.mjs +0 -2
- package/dist/chunks/cli-1.1.23-2zmj7bmt.mjs +0 -2
- package/dist/chunks/cli-1.1.23-39e6gsmv.mjs +0 -7
- package/dist/chunks/cli-1.1.23-3hnz7314.mjs +0 -2
- package/dist/chunks/cli-1.1.23-3myqt8k1.mjs +0 -2
- package/dist/chunks/cli-1.1.23-3t45wkcy.mjs +0 -2
- package/dist/chunks/cli-1.1.23-3tbvgbsz.mjs +0 -24
- package/dist/chunks/cli-1.1.23-3v88zfgv.mjs +0 -2
- package/dist/chunks/cli-1.1.23-3vzk6gte.mjs +0 -2
- package/dist/chunks/cli-1.1.23-4q364wmc.mjs +0 -26
- package/dist/chunks/cli-1.1.23-4r2e2zqk.mjs +0 -2
- package/dist/chunks/cli-1.1.23-4tcfdexs.mjs +0 -3
- package/dist/chunks/cli-1.1.23-4z00tj56.mjs +0 -20
- package/dist/chunks/cli-1.1.23-534g4n3n.mjs +0 -2
- package/dist/chunks/cli-1.1.23-5bcs19jr.mjs +0 -2
- package/dist/chunks/cli-1.1.23-5jka5ps0.mjs +0 -2
- package/dist/chunks/cli-1.1.23-5nf6hd1y.mjs +0 -3
- package/dist/chunks/cli-1.1.23-5xfyp6fr.mjs +0 -2
- package/dist/chunks/cli-1.1.23-61q858yx.mjs +0 -24
- package/dist/chunks/cli-1.1.23-67rrc0m6.mjs +0 -6
- package/dist/chunks/cli-1.1.23-6801e7pm.mjs +0 -34
- package/dist/chunks/cli-1.1.23-69bhvv0j.mjs +0 -2
- package/dist/chunks/cli-1.1.23-6d34yw4z.mjs +0 -2
- package/dist/chunks/cli-1.1.23-6dmkrxmn.mjs +0 -3
- package/dist/chunks/cli-1.1.23-6eg5g01d.mjs +0 -2
- package/dist/chunks/cli-1.1.23-6f46jqfm.mjs +0 -2
- package/dist/chunks/cli-1.1.23-6fa2z4j7.mjs +0 -2
- package/dist/chunks/cli-1.1.23-6jn1rxac.mjs +0 -3
- package/dist/chunks/cli-1.1.23-6svwd47h.mjs +0 -2
- package/dist/chunks/cli-1.1.23-6vn61k3h.mjs +0 -4
- package/dist/chunks/cli-1.1.23-6zb0fha5.mjs +0 -2
- package/dist/chunks/cli-1.1.23-7081am2r.mjs +0 -60
- package/dist/chunks/cli-1.1.23-73rtfe6f.mjs +0 -2
- package/dist/chunks/cli-1.1.23-7672wfdw.mjs +0 -2
- package/dist/chunks/cli-1.1.23-79fjt009.mjs +0 -2
- package/dist/chunks/cli-1.1.23-7btdskbp.mjs +0 -2
- package/dist/chunks/cli-1.1.23-7jpcmnjc.mjs +0 -2
- package/dist/chunks/cli-1.1.23-7jpsfgxt.mjs +0 -2
- package/dist/chunks/cli-1.1.23-7ke90t8x.mjs +0 -2
- package/dist/chunks/cli-1.1.23-7p15pph2.mjs +0 -2
- package/dist/chunks/cli-1.1.23-84j1qdx5.mjs +0 -2
- package/dist/chunks/cli-1.1.23-89dm39zw.mjs +0 -2
- package/dist/chunks/cli-1.1.23-8cwhqjmg.mjs +0 -2
- package/dist/chunks/cli-1.1.23-8qrr5zea.mjs +0 -2
- package/dist/chunks/cli-1.1.23-8sb0xktt.mjs +0 -1
- package/dist/chunks/cli-1.1.23-8tv84m75.mjs +0 -2
- package/dist/chunks/cli-1.1.23-8yb4p9wj.mjs +0 -4
- package/dist/chunks/cli-1.1.23-8zysx8xg.mjs +0 -6
- package/dist/chunks/cli-1.1.23-913hrrgx.mjs +0 -2
- package/dist/chunks/cli-1.1.23-91n79mdp.mjs +0 -2
- package/dist/chunks/cli-1.1.23-971f3zzk.mjs +0 -2
- package/dist/chunks/cli-1.1.23-9b08qsth.mjs +0 -2
- package/dist/chunks/cli-1.1.23-9bpzr9w9.mjs +0 -2
- package/dist/chunks/cli-1.1.23-9h8vjbtg.mjs +0 -2
- package/dist/chunks/cli-1.1.23-9qe28y65.mjs +0 -16
- package/dist/chunks/cli-1.1.23-9txgxd8x.mjs +0 -2
- package/dist/chunks/cli-1.1.23-9vqnsq1x.mjs +0 -2
- package/dist/chunks/cli-1.1.23-9zrhw582.mjs +0 -2
- package/dist/chunks/cli-1.1.23-a1w72kgd.mjs +0 -12
- package/dist/chunks/cli-1.1.23-a6h0h87f.mjs +0 -18
- package/dist/chunks/cli-1.1.23-a95wepyn.mjs +0 -66
- package/dist/chunks/cli-1.1.23-a9b5aae8.mjs +0 -2
- package/dist/chunks/cli-1.1.23-afsrnsz6.mjs +0 -7
- package/dist/chunks/cli-1.1.23-ah6fas1q.mjs +0 -2
- package/dist/chunks/cli-1.1.23-akghy19s.mjs +0 -58
- package/dist/chunks/cli-1.1.23-b00bqmpw.mjs +0 -2
- package/dist/chunks/cli-1.1.23-bdj1ne1r.mjs +0 -2
- package/dist/chunks/cli-1.1.23-beazn1ym.mjs +0 -45
- package/dist/chunks/cli-1.1.23-bfcbpz9k.mjs +0 -15
- package/dist/chunks/cli-1.1.23-bghc6n12.mjs +0 -2
- package/dist/chunks/cli-1.1.23-bkd2235z.mjs +0 -2
- package/dist/chunks/cli-1.1.23-bqb900hx.mjs +0 -2
- package/dist/chunks/cli-1.1.23-btem08d6.mjs +0 -2
- package/dist/chunks/cli-1.1.23-btq83yzw.mjs +0 -2
- package/dist/chunks/cli-1.1.23-c49xxwj4.mjs +0 -2
- package/dist/chunks/cli-1.1.23-c5rb4b67.mjs +0 -2
- package/dist/chunks/cli-1.1.23-cdsq9bfc.mjs +0 -2
- package/dist/chunks/cli-1.1.23-cf9wpsc7.mjs +0 -3
- package/dist/chunks/cli-1.1.23-cg8mndc0.mjs +0 -2
- package/dist/chunks/cli-1.1.23-cmmvjc9g.mjs +0 -2
- package/dist/chunks/cli-1.1.23-cp5z31eb.mjs +0 -2
- package/dist/chunks/cli-1.1.23-cpdr6mcc.mjs +0 -50
- package/dist/chunks/cli-1.1.23-d98p8mnw.mjs +0 -2
- package/dist/chunks/cli-1.1.23-dd8dp11f.mjs +0 -2
- package/dist/chunks/cli-1.1.23-dm6get34.mjs +0 -42
- package/dist/chunks/cli-1.1.23-dmc5g4zs.mjs +0 -2
- package/dist/chunks/cli-1.1.23-dnf57r3v.mjs +0 -2
- package/dist/chunks/cli-1.1.23-dspgg8gk.mjs +0 -2
- package/dist/chunks/cli-1.1.23-dxtv4be7.mjs +0 -2
- package/dist/chunks/cli-1.1.23-e3g5ahaf.mjs +0 -2
- package/dist/chunks/cli-1.1.23-e3zf752q.mjs +0 -2
- package/dist/chunks/cli-1.1.23-e7vvcy9q.mjs +0 -2
- package/dist/chunks/cli-1.1.23-ea3wd7a4.mjs +0 -9
- package/dist/chunks/cli-1.1.23-eh1w5te8.mjs +0 -2
- package/dist/chunks/cli-1.1.23-eyrgaj5n.mjs +0 -15
- package/dist/chunks/cli-1.1.23-f001cyx3.mjs +0 -2
- package/dist/chunks/cli-1.1.23-f1xqkfa1.mjs +0 -2
- package/dist/chunks/cli-1.1.23-f3x0gp77.mjs +0 -2
- package/dist/chunks/cli-1.1.23-fd4gay6z.mjs +0 -2
- package/dist/chunks/cli-1.1.23-ft6azs1x.mjs +0 -3
- package/dist/chunks/cli-1.1.23-fxt20eva.mjs +0 -2
- package/dist/chunks/cli-1.1.23-fxyf1cph.mjs +0 -2
- package/dist/chunks/cli-1.1.23-g16f6f0k.mjs +0 -6
- package/dist/chunks/cli-1.1.23-g3ps2zfa.mjs +0 -2
- package/dist/chunks/cli-1.1.23-g6b9c447.mjs +0 -2
- package/dist/chunks/cli-1.1.23-gfa8cfzz.mjs +0 -2
- package/dist/chunks/cli-1.1.23-gm82gspk.mjs +0 -2
- package/dist/chunks/cli-1.1.23-gqpma6kp.mjs +0 -2
- package/dist/chunks/cli-1.1.23-gqzmsste.mjs +0 -2
- package/dist/chunks/cli-1.1.23-gt2whh9g.mjs +0 -25
- package/dist/chunks/cli-1.1.23-h8qgj8ca.mjs +0 -17
- package/dist/chunks/cli-1.1.23-h9a97qvh.mjs +0 -17
- package/dist/chunks/cli-1.1.23-hdrz15yh.mjs +0 -2
- package/dist/chunks/cli-1.1.23-hemwg8ag.mjs +0 -2
- package/dist/chunks/cli-1.1.23-hkttfc6z.mjs +0 -2
- package/dist/chunks/cli-1.1.23-hmtg8m65.mjs +0 -2
- package/dist/chunks/cli-1.1.23-hynrf6x1.mjs +0 -5456
- package/dist/chunks/cli-1.1.23-j1834bmw.mjs +0 -8
- package/dist/chunks/cli-1.1.23-j50f02dv.mjs +0 -3
- package/dist/chunks/cli-1.1.23-j8pns1dc.mjs +0 -9
- package/dist/chunks/cli-1.1.23-j9tza8qb.mjs +0 -2
- package/dist/chunks/cli-1.1.23-jam2qpf9.mjs +0 -2
- package/dist/chunks/cli-1.1.23-jax91df0.mjs +0 -2
- package/dist/chunks/cli-1.1.23-jb9w45wb.mjs +0 -2
- package/dist/chunks/cli-1.1.23-jefmjg1q.mjs +0 -2
- package/dist/chunks/cli-1.1.23-jf6jqrkj.mjs +0 -4
- package/dist/chunks/cli-1.1.23-jv6dcqe2.mjs +0 -2
- package/dist/chunks/cli-1.1.23-kc1tbe8y.mjs +0 -6
- package/dist/chunks/cli-1.1.23-keftnbc6.mjs +0 -206
- package/dist/chunks/cli-1.1.23-kqechz3h.mjs +0 -3
- package/dist/chunks/cli-1.1.23-kwbgn4rk.mjs +0 -4
- package/dist/chunks/cli-1.1.23-mdnfpw2r.mjs +0 -4
- package/dist/chunks/cli-1.1.23-mg8gngc9.mjs +0 -2
- package/dist/chunks/cli-1.1.23-mqhr3zhn.mjs +0 -2
- package/dist/chunks/cli-1.1.23-mtz1dxjx.mjs +0 -2
- package/dist/chunks/cli-1.1.23-n0182x8j.mjs +0 -2
- package/dist/chunks/cli-1.1.23-n2b7hpwm.mjs +0 -2
- package/dist/chunks/cli-1.1.23-n3aqpv08.mjs +0 -2
- package/dist/chunks/cli-1.1.23-n73gbfxf.mjs +0 -2
- package/dist/chunks/cli-1.1.23-nr6xamsd.mjs +0 -2
- package/dist/chunks/cli-1.1.23-p3m54nrk.mjs +0 -12
- package/dist/chunks/cli-1.1.23-pjmjhm4y.mjs +0 -2
- package/dist/chunks/cli-1.1.23-pw5hm4mz.mjs +0 -3
- package/dist/chunks/cli-1.1.23-qn9572e2.mjs +0 -2
- package/dist/chunks/cli-1.1.23-qrr9yfsn.mjs +0 -2
- package/dist/chunks/cli-1.1.23-r21frpa6.mjs +0 -6
- package/dist/chunks/cli-1.1.23-r3rsk08v.mjs +0 -2
- package/dist/chunks/cli-1.1.23-r3waeyk4.mjs +0 -2
- package/dist/chunks/cli-1.1.23-r6f0jbrx.mjs +0 -2
- package/dist/chunks/cli-1.1.23-rcxg7gfm.mjs +0 -25
- package/dist/chunks/cli-1.1.23-rd74yzp6.mjs +0 -2
- package/dist/chunks/cli-1.1.23-re0ge1zr.mjs +0 -2
- package/dist/chunks/cli-1.1.23-rgc4d03t.mjs +0 -2
- package/dist/chunks/cli-1.1.23-rjt1xt8g.mjs +0 -2
- package/dist/chunks/cli-1.1.23-rpxkp0kh.mjs +0 -2
- package/dist/chunks/cli-1.1.23-s21f8qza.mjs +0 -2
- package/dist/chunks/cli-1.1.23-s2pn202f.mjs +0 -4
- package/dist/chunks/cli-1.1.23-s943evpq.mjs +0 -2
- package/dist/chunks/cli-1.1.23-sbyq9afq.mjs +0 -21
- package/dist/chunks/cli-1.1.23-sch1s17t.mjs +0 -2
- package/dist/chunks/cli-1.1.23-se379e5e.mjs +0 -15
- package/dist/chunks/cli-1.1.23-swf2c8db.mjs +0 -2
- package/dist/chunks/cli-1.1.23-syq3k5mp.mjs +0 -2
- package/dist/chunks/cli-1.1.23-v22erb37.mjs +0 -2
- package/dist/chunks/cli-1.1.23-v2fscr2z.mjs +0 -5
- package/dist/chunks/cli-1.1.23-v5e3cr99.mjs +0 -2
- package/dist/chunks/cli-1.1.23-v9bysq9w.mjs +0 -3
- package/dist/chunks/cli-1.1.23-vdp0r91n.mjs +0 -2
- package/dist/chunks/cli-1.1.23-vjgmph3s.mjs +0 -2
- package/dist/chunks/cli-1.1.23-vns1fwxz.mjs +0 -2
- package/dist/chunks/cli-1.1.23-vvcr72vv.mjs +0 -2
- package/dist/chunks/cli-1.1.23-vyf2j831.mjs +0 -2
- package/dist/chunks/cli-1.1.23-w16rdkte.mjs +0 -3
- package/dist/chunks/cli-1.1.23-w96hh9h7.mjs +0 -3
- package/dist/chunks/cli-1.1.23-wd48c77m.mjs +0 -24
- package/dist/chunks/cli-1.1.23-wgecwfx4.mjs +0 -18
- package/dist/chunks/cli-1.1.23-wkvjbzna.mjs +0 -2
- package/dist/chunks/cli-1.1.23-wnxxa385.mjs +0 -4
- package/dist/chunks/cli-1.1.23-wt4jgek9.mjs +0 -39
- package/dist/chunks/cli-1.1.23-x3te6rkf.mjs +0 -2
- package/dist/chunks/cli-1.1.23-x7yfmrs9.mjs +0 -3
- package/dist/chunks/cli-1.1.23-xafxg4a2.mjs +0 -2
- package/dist/chunks/cli-1.1.23-xgst7vty.mjs +0 -2
- package/dist/chunks/cli-1.1.23-xkt2056f.mjs +0 -2
- package/dist/chunks/cli-1.1.23-xyjeajm2.mjs +0 -2
- package/dist/chunks/cli-1.1.23-xzwwmz59.mjs +0 -2
- package/dist/chunks/cli-1.1.23-y3ea6683.mjs +0 -2
- package/dist/chunks/cli-1.1.23-y3fpdh43.mjs +0 -2
- package/dist/chunks/cli-1.1.23-ywvfrc54.mjs +0 -2
- package/dist/chunks/cli-1.1.23-yy2jcnc3.mjs +0 -133
- package/dist/chunks/cli-1.1.23-z1mvb05m.mjs +0 -2
- package/dist/chunks/cli-1.1.23-zb8savhy.mjs +0 -6
- package/dist/chunks/cli-1.1.23-zwpmh1ab.mjs +0 -2
- package/dist/chunks/client-1.1.23-mcea9qxt.mjs +0 -1
- package/dist/chunks/color-1.1.23-e9h5ff51.mjs +0 -1
- package/dist/chunks/compact-1.1.23-66s1gsw9.mjs +0 -3
- package/dist/chunks/config-1.1.23-j8frjsmx.mjs +0 -1
- package/dist/chunks/config-1.1.23-kedfvs1w.mjs +0 -1
- package/dist/chunks/constants-1.1.23-9gn99pw5.mjs +0 -1
- package/dist/chunks/context-1.1.23-bbrdpmdb.mjs +0 -1
- package/dist/chunks/context-noninteractive-1.1.23-f8h7s1k6.mjs +0 -1
- package/dist/chunks/conversation-1.1.23-s003tkm4.mjs +0 -1
- package/dist/chunks/copilotHeaders-1.1.23-ktfjf8vp.mjs +0 -1
- package/dist/chunks/copy-1.1.23-vydqekfj.mjs +0 -9
- package/dist/chunks/cost-1.1.23-wp3xmmkp.mjs +0 -1
- package/dist/chunks/createSSHSession-1.1.23-0dtjaw6b.mjs +0 -1
- package/dist/chunks/createSession-1.1.23-bx4zk9g9.mjs +0 -1
- package/dist/chunks/debug-1.1.23-7kg6d3tr.mjs +0 -1
- package/dist/chunks/defaultActionDeps-1.1.23-gpfa81s0.mjs +0 -1534
- package/dist/chunks/desktop-1.1.23-0kbkasx9.mjs +0 -1
- package/dist/chunks/detectRepository-1.1.23-cjja5tc4.mjs +0 -1
- package/dist/chunks/detection-1.1.23-j30fjqtk.mjs +0 -1
- package/dist/chunks/diff-1.1.23-97rmmwmn.mjs +0 -1
- package/dist/chunks/doctor-1.1.23-xm4qcrg3.mjs +0 -1
- package/dist/chunks/doctorDiagnostic-1.1.23-04mtjnab.mjs +0 -1
- package/dist/chunks/earlyInput-1.1.23-cjvssdzr.mjs +0 -1
- package/dist/chunks/effort-1.1.23-9wwy3zcx.mjs +0 -13
- package/dist/chunks/engine-1.1.23-zted98hq.mjs +0 -1
- package/dist/chunks/envLessBridgeConfig-1.1.23-ga3cphpb.mjs +0 -1
- package/dist/chunks/envUtils-1.1.23-rqpvwp80.mjs +0 -1
- package/dist/chunks/environmentSelection-1.1.23-mv2a2h1j.mjs +0 -1
- package/dist/chunks/environments-1.1.23-4jsfjwva.mjs +0 -1
- package/dist/chunks/errors-1.1.23-9xwf7tdw.mjs +0 -1
- package/dist/chunks/exampleCommands-1.1.23-80yr756b.mjs +0 -1
- package/dist/chunks/execFileNoThrow-1.1.23-psbfft6h.mjs +0 -1
- package/dist/chunks/exit-1.1.23-vrg1sh8k.mjs +0 -1
- package/dist/chunks/explorer-1.1.23-g4rr4dbw.mjs +0 -1
- package/dist/chunks/export-1.1.23-811x7m0f.mjs +0 -2
- package/dist/chunks/extra-usage-1.1.23-ytv7q7g9.mjs +0 -1
- package/dist/chunks/extra-usage-noninteractive-1.1.23-kfdpp2zp.mjs +0 -1
- package/dist/chunks/fast-1.1.23-vxqr4rn1.mjs +0 -1
- package/dist/chunks/feedback-1.1.23-sfxf5wts.mjs +0 -14
- package/dist/chunks/firstPartyEventLogger-1.1.23-1gh6mqe9.mjs +0 -1
- package/dist/chunks/git-1.1.23-ybtn6n7y.mjs +0 -1
- package/dist/chunks/githubModelsCredentials-1.1.23-ty811pr3.mjs +0 -1
- package/dist/chunks/goal-1.1.23-cmzk221k.mjs +0 -4
- package/dist/chunks/growthbook-1.1.23-3q1rbkkk.mjs +0 -1
- package/dist/chunks/headless-1.1.23-bkk5p8rm.mjs +0 -2
- package/dist/chunks/heapdump-1.1.23-ea8pzqst.mjs +0 -6
- package/dist/chunks/help-1.1.23-r7j3xk0t.mjs +0 -1
- package/dist/chunks/hookChains-1.1.23-3gw3ts22.mjs +0 -3
- package/dist/chunks/hooks-1.1.23-nh96m542.mjs +0 -1
- package/dist/chunks/hooks-1.1.23-pggycv75.mjs +0 -79
- package/dist/chunks/ide-1.1.23-qfkj03dp.mjs +0 -3
- package/dist/chunks/image-processor-napi-1.1.23-etg91fj9.mjs +0 -1
- package/dist/chunks/inboundAttachments-1.1.23-gct8j14t.mjs +0 -1
- package/dist/chunks/index-1.1.23-04w67ps4.mjs +0 -1
- package/dist/chunks/index-1.1.23-0qn8x2ym.mjs +0 -2
- package/dist/chunks/index-1.1.23-16krzxwz.mjs +0 -1
- package/dist/chunks/index-1.1.23-2mwhvv7z.mjs +0 -2
- package/dist/chunks/index-1.1.23-5xkpaxba.mjs +0 -1
- package/dist/chunks/index-1.1.23-87bctdxv.mjs +0 -1
- package/dist/chunks/index-1.1.23-894gw6j8.mjs +0 -1
- package/dist/chunks/index-1.1.23-bcrdf2k3.mjs +0 -9
- package/dist/chunks/index-1.1.23-ed1jbmt6.mjs +0 -1
- package/dist/chunks/index-1.1.23-hzafkcpn.mjs +0 -30
- package/dist/chunks/index-1.1.23-jfybaapb.mjs +0 -9
- package/dist/chunks/index-1.1.23-mbvmhq60.mjs +0 -1
- package/dist/chunks/index-1.1.23-nq44z8sn.mjs +0 -1
- package/dist/chunks/index-1.1.23-p84yrb6r.mjs +0 -1
- package/dist/chunks/index-1.1.23-sd9cv8pk.mjs +0 -23
- package/dist/chunks/index-1.1.23-v3pvt45w.mjs +0 -1
- package/dist/chunks/index-1.1.23-vnn2xc4y.mjs +0 -1
- package/dist/chunks/index-1.1.23-vw0ns36r.mjs +0 -1
- package/dist/chunks/index-1.1.23-xb876pe7.mjs +0 -5
- package/dist/chunks/index-1.1.23-xfzxwabm.mjs +0 -1
- package/dist/chunks/index-1.1.23-yjt3kte0.mjs +0 -1
- package/dist/chunks/index-1.1.23-ymq59t45.mjs +0 -1
- package/dist/chunks/index-1.1.23-ytps69pn.mjs +0 -1
- package/dist/chunks/init-1.1.23-68d7nbfy.mjs +0 -1
- package/dist/chunks/initReplBridge-1.1.23-zaa5v40e.mjs +0 -1
- package/dist/chunks/ink-1.1.23-vb2phcn9.mjs +0 -1
- package/dist/chunks/insights-1.1.23-hnbtjced.mjs +0 -870
- package/dist/chunks/install-1.1.23-ayas8qxr.mjs +0 -1
- package/dist/chunks/install-github-app-1.1.23-mph12hm0.mjs +0 -149
- package/dist/chunks/install-slack-app-1.1.23-9fs5jpzj.mjs +0 -1
- package/dist/chunks/instrumentation-1.1.23-g4we2v3z.mjs +0 -1
- package/dist/chunks/interactiveHelpers-1.1.23-72qdetj8.mjs +0 -1
- package/dist/chunks/keybindings-1.1.23-qb0smw96.mjs +0 -2
- package/dist/chunks/knowledge-1.1.23-05gqt07k.mjs +0 -2
- package/dist/chunks/latestVersionCache-1.1.23-1xrk6v9s.mjs +0 -1
- package/dist/chunks/loadAgentsDir-1.1.23-x9vbg6j3.mjs +0 -1
- package/dist/chunks/loadPluginHooks-1.1.23-b0kt93we.mjs +0 -1
- package/dist/chunks/log-1.1.23-raemwqxy.mjs +0 -1
- package/dist/chunks/main-1.1.23-ktwpj2m3.mjs +0 -1
- package/dist/chunks/managedEnv-1.1.23-wnqxm7br.mjs +0 -1
- package/dist/chunks/mcp-1.1.23-mtw0ktrf.mjs +0 -17
- package/dist/chunks/mcp-1.1.23-s9pkvzz6.mjs +0 -4
- package/dist/chunks/mcp-1.1.23-wcc13fhx.mjs +0 -1
- package/dist/chunks/mcpb-1.1.23-90y8tgct.mjs +0 -1
- package/dist/chunks/memory-1.1.23-bvsjvxnw.mjs +0 -72
- package/dist/chunks/model-1.1.23-m65499d4.mjs +0 -1
- package/dist/chunks/model-1.1.23-rdvj7rvy.mjs +0 -2
- package/dist/chunks/node-1.1.23-bqy7dzrh.mjs +0 -14
- package/dist/chunks/oauth-1.1.23-x33h0bwk.mjs +0 -1
- package/dist/chunks/openaiShim-1.1.23-0bheqhmg.mjs +0 -14
- package/dist/chunks/output-style-1.1.23-kxxfbqnj.mjs +0 -1
- package/dist/chunks/package-ZOVFJE7Z-1.1.23-cvn9aynn.mjs +0 -1
- package/dist/chunks/parseConnectUrl-1.1.23-r2c69hpj.mjs +0 -1
- package/dist/chunks/parser-1.1.23-9gjy8yyd.mjs +0 -1
- package/dist/chunks/passes-1.1.23-jt18rvzt.mjs +0 -1
- package/dist/chunks/permissions-1.1.23-krb3w1g6.mjs +0 -3
- package/dist/chunks/permissions-1.1.23-r2894sce.mjs +0 -1
- package/dist/chunks/plan-1.1.23-z731dw1m.mjs +0 -1
- package/dist/chunks/plist-1.1.23-5761s0b4.mjs +0 -1
- package/dist/chunks/plugin-1.1.23-p7pdz7d1.mjs +0 -29
- package/dist/chunks/pluginStartupCheck-1.1.23-mm4bszh7.mjs +0 -1
- package/dist/chunks/plugins-1.1.23-egkwh4yf.mjs +0 -9
- package/dist/chunks/preActionHook-1.1.23-v994g2s0.mjs +0 -2
- package/dist/chunks/print-1.1.23-g988xjb3.mjs +0 -57
- package/dist/chunks/process-1.1.23-eh0mn414.mjs +0 -1
- package/dist/chunks/processBashCommand-1.1.23-cnnyqpaq.mjs +0 -1
- package/dist/chunks/processSlashCommand-1.1.23-vs9vb8en.mjs +0 -9
- package/dist/chunks/prompt-1.1.23-4mk9fy81.mjs +0 -1
- package/dist/chunks/prompt-1.1.23-qmqyfem4.mjs +0 -1
- package/dist/chunks/prompts-1.1.23-jeeypg6w.mjs +0 -1
- package/dist/chunks/protocolHandler-1.1.23-1davtsam.mjs +0 -13
- package/dist/chunks/provider-1.1.23-x1hzx1zj.mjs +0 -2
- package/dist/chunks/providerProfiles-1.1.23-bkm9vq79.mjs +0 -1
- package/dist/chunks/providerValidation-1.1.23-z2rg5707.mjs +0 -6
- package/dist/chunks/rate-limit-options-1.1.23-f0hm4mbj.mjs +0 -1
- package/dist/chunks/registerSubcommands-1.1.23-mhtafhr6.mjs +0 -26
- package/dist/chunks/registry-1.1.23-hyqgjbyg.mjs +0 -1
- package/dist/chunks/release-notes-1.1.23-q1am84ke.mjs +0 -5
- package/dist/chunks/reload-plugins-1.1.23-nd1fctqt.mjs +0 -2
- package/dist/chunks/remote-env-1.1.23-m2zzn0f8.mjs +0 -1
- package/dist/chunks/remoteBridgeCore-1.1.23-vd210k89.mjs +0 -1
- package/dist/chunks/remoteSession-1.1.23-1jpg062g.mjs +0 -1
- package/dist/chunks/rename-1.1.23-ma9ny7xb.mjs +0 -1
- package/dist/chunks/replBridgeHandle-1.1.23-08pq9q2p.mjs +0 -1
- package/dist/chunks/replLauncher-1.1.23-wsqwfhc4.mjs +0 -1
- package/dist/chunks/resume-1.1.23-hkg0scyr.mjs +0 -2
- package/dist/chunks/rewind-1.1.23-jd6j4sgm.mjs +0 -1
- package/dist/chunks/rootOptions-1.1.23-m526t4yf.mjs +0 -1
- package/dist/chunks/runWorkflowHeadless-1.1.23-8mxg8581.mjs +0 -10
- package/dist/chunks/sandbox-adapter-1.1.23-pb9hd8jw.mjs +0 -1
- package/dist/chunks/sandbox-toggle-1.1.23-38kf297y.mjs +0 -1
- package/dist/chunks/session-1.1.23-mws1tmy1.mjs +0 -2
- package/dist/chunks/sessionDiscovery-1.1.23-8819q77c.mjs +0 -1
- package/dist/chunks/sessionFileAccessHooks-1.1.23-zq8cgfyk.mjs +0 -1
- package/dist/chunks/sessionStorage-1.1.23-m9mm0gy5.mjs +0 -1
- package/dist/chunks/settings-1.1.23-3fm1v708.mjs +0 -1
- package/dist/chunks/setup-1.1.23-rf97k4ha.mjs +0 -12
- package/dist/chunks/sinks-1.1.23-qgn22fd9.mjs +0 -1
- package/dist/chunks/skills-1.1.23-aed2c5zd.mjs +0 -1
- package/dist/chunks/startupProfiler-1.1.23-qrw1wxzd.mjs +0 -1
- package/dist/chunks/startupUpdateCheck-1.1.23-pwj6hq5b.mjs +0 -1
- package/dist/chunks/state-1.1.23-jxkq1t17.mjs +0 -1
- package/dist/chunks/stats-1.1.23-5kg21t1n.mjs +0 -6
- package/dist/chunks/status-1.1.23-zkcmaawr.mjs +0 -1
- package/dist/chunks/stickers-1.1.23-qag1twc4.mjs +0 -1
- package/dist/chunks/subprocessEnv-1.1.23-ahy63kbs.mjs +0 -1
- package/dist/chunks/tasks-1.1.23-89zfdmw0.mjs +0 -1
- package/dist/chunks/teamHelpers-1.1.23-wnq5c429.mjs +0 -1
- package/dist/chunks/teammateModeSnapshot-1.1.23-zrc83hqd.mjs +0 -1
- package/dist/chunks/teleport-1.1.23-cabj7qs6.mjs +0 -1
- package/dist/chunks/terminalSetup-1.1.23-3jp21th9.mjs +0 -1
- package/dist/chunks/theme-1.1.23-n5t1dngt.mjs +0 -1
- package/dist/chunks/thinkback-1.1.23-4a2rem3s.mjs +0 -1
- package/dist/chunks/thinkback-play-1.1.23-3928h8m5.mjs +0 -1
- package/dist/chunks/toolPool-1.1.23-yeszysf1.mjs +0 -1
- package/dist/chunks/toolSearch-1.1.23-x75878b7.mjs +0 -1
- package/dist/chunks/tools-1.1.23-m04a9j6h.mjs +0 -1
- package/dist/chunks/trustedDevice-1.1.23-rxgc65b0.mjs +0 -1
- package/dist/chunks/turndown.cjs-1.1.23-e39vsv0v.mjs +0 -69
- package/dist/chunks/types-1.1.23-pca5g3df.mjs +0 -1
- package/dist/chunks/ultrareviewCommand-1.1.23-mr97q52h.mjs +0 -4
- package/dist/chunks/update-1.1.23-3xmkkhns.mjs +0 -72
- package/dist/chunks/upgrade-1.1.23-8vn6552j.mjs +0 -1
- package/dist/chunks/upload-1.1.23-cx2aj445.mjs +0 -7
- package/dist/chunks/upstreamproxy-1.1.23-8rxwm8d3.mjs +0 -14
- package/dist/chunks/url-handler-napi-1.1.23-5e49greb.mjs +0 -1
- package/dist/chunks/usage-1.1.23-bndk03g2.mjs +0 -1
- package/dist/chunks/util-1.1.23-cb0nrsh4.mjs +0 -1
- package/dist/chunks/utils-1.1.23-t0mge2p3.mjs +0 -1
- package/dist/chunks/vim-1.1.23-trn7yz9v.mjs +0 -1
- package/dist/chunks/watchLoop-1.1.23-m61k9zxv.mjs +0 -13
- package/dist/chunks/watcher-1.1.23-vbwspp2c.mjs +0 -1
- package/dist/chunks/wiki-1.1.23-a9pe4h8f.mjs +0 -132
- package/dist/chunks/workflows-1.1.23-nbvbwe56.mjs +0 -1
- package/dist/chunks/worktree-1.1.23-tdh9qszq.mjs +0 -1
- package/dist/chunks/worktreeModeEnabled-1.1.23-bhescr26.mjs +0 -1
- package/dist/chunks/wrapper-1.1.23-xbpjcwkh.mjs +0 -7
- /package/dist/chunks/{cli-1.1.23-qgdfjtj2.mjs → cli-1.1.24-k5cs55nk.mjs} +0 -0
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
import{ea as yJ,fa as xz,ga as rz,ha as cz,ia as iz,ja as kJ}from"./cli-1.1.24-8xvf355a.mjs";import{la as Tz}from"./cli-1.1.24-pqkmk87x.mjs";import{va as EJ,wa as TJ,xa as xJ,ya as MJ,za as wJ}from"./cli-1.1.24-9grm6x6h.mjs";import{Ba as fJ}from"./cli-1.1.24-ne1bt8jx.mjs";import{ce as LJ,ee as oz,ge as RK}from"./cli-1.1.24-7qe2p4yb.mjs";import{Le as mz,Ne as UJ,Re as OJ}from"./cli-1.1.24-jrvf41s6.mjs";import{nf as jJ,of as cJ}from"./cli-1.1.24-z5t424fy.mjs";import{Zn as AJ,_n as PK,jI as JJ,kI as Cz,lI as KJ,mI as ZJ,nm as DJ,oI as $J,om as vz,pI as YJ,qI as XJ,qk as CJ,rI as QJ,rk as FK,sI as WJ,sm as NK}from"./cli-1.1.24-2qkkzsk3.mjs";import"./cli-1.1.24-vandpwa9.mjs";import"./cli-1.1.24-tvhfdndb.mjs";import"./cli-1.1.24-64d8tfjb.mjs";import"./cli-1.1.24-5vw5z579.mjs";import"./cli-1.1.24-wygwske9.mjs";import"./cli-1.1.24-sm5pzkcb.mjs";import{YV as RJ,cW as _K}from"./cli-1.1.24-1m0md9q7.mjs";import"./cli-1.1.24-wr42vnqf.mjs";import"./cli-1.1.24-3n53gv32.mjs";import"./cli-1.1.24-mwva78xt.mjs";import{jX as az,nX as CK}from"./cli-1.1.24-znb9n8xc.mjs";import"./cli-1.1.24-wjy2ctev.mjs";import"./cli-1.1.24-c1c7arb3.mjs";import"./cli-1.1.24-9jq4gf5s.mjs";import"./cli-1.1.24-xyb7vhk3.mjs";import"./cli-1.1.24-tbzjj2e8.mjs";import"./cli-1.1.24-zqsb8jf1.mjs";import"./cli-1.1.24-4t3rdp3k.mjs";import"./cli-1.1.24-x8cd4qb4.mjs";import"./cli-1.1.24-4p3bjzm5.mjs";import"./cli-1.1.24-fwb0d06k.mjs";import"./cli-1.1.24-vf59rwy3.mjs";import"./cli-1.1.24-jm2wjmkx.mjs";import"./cli-1.1.24-ftgtm0ys.mjs";import{b3 as pz,e3 as BK}from"./cli-1.1.24-190psky8.mjs";import"./cli-1.1.24-yzfk4k7c.mjs";import"./cli-1.1.24-hbvsy3cq.mjs";import"./cli-1.1.24-bd6f0h85.mjs";import"./cli-1.1.24-pt8vrhq3.mjs";import"./cli-1.1.24-2d5h000x.mjs";import"./cli-1.1.24-a6q6r9em.mjs";import"./cli-1.1.24-yp46sbt0.mjs";import"./cli-1.1.24-9dnr05fm.mjs";import"./cli-1.1.24-ys3jea4v.mjs";import"./cli-1.1.24-c80wbwvr.mjs";import"./cli-1.1.24-5pkkmh85.mjs";import"./cli-1.1.24-8zb03vbp.mjs";import"./cli-1.1.24-32h2wd2e.mjs";import{n8 as i,o8 as OK}from"./cli-1.1.24-dw6eynz7.mjs";import"./cli-1.1.24-3n6e2e3w.mjs";import{P9 as V,Q9 as gJ}from"./cli-1.1.24-6ptbgma9.mjs";import"./cli-1.1.24-ez9nx0pe.mjs";import"./cli-1.1.24-nsggarp4.mjs";import"./cli-1.1.24-hbp5ttza.mjs";import"./cli-1.1.24-7ymj1nkq.mjs";import{Bha as Ez,Jca as fz,Jha as qK,Kca as ez,Lca as zJ,Mca as pJ,hca as PJ,ica as HK,m$ as Wz,o$ as GK}from"./cli-1.1.24-pe23qamd.mjs";import{Oha as sz,Pha as uJ,Rha as Rz,Yha as qz,eia as jK}from"./cli-1.1.24-bph6jjd7.mjs";import"./cli-1.1.24-f0pc1fm3.mjs";import"./cli-1.1.24-7ga8r482.mjs";import{Lia as BJ,Tia as VK}from"./cli-1.1.24-gb39akdj.mjs";import"./cli-1.1.24-zjc9nfba.mjs";import"./cli-1.1.24-n7r6kv9g.mjs";import"./cli-1.1.24-7ae9t2qz.mjs";import{Eka as zz,Fka as _J,Hka as XK}from"./cli-1.1.24-prprq6xe.mjs";import{Hla as q,Kla as tz,kla as qJ,lla as uz,pla as aJ}from"./cli-1.1.24-zey4mks2.mjs";import"./cli-1.1.24-ctw3hzrp.mjs";import{fma as g,mma as WK}from"./cli-1.1.24-eh4c00hd.mjs";import{Ama as QK,sma as NJ}from"./cli-1.1.24-8s7nf1y6.mjs";import"./cli-1.1.24-bnm1yphs.mjs";import"./cli-1.1.24-yz5bzn1k.mjs";import"./cli-1.1.24-d371v1bp.mjs";import"./cli-1.1.24-zc49jxpp.mjs";import"./cli-1.1.24-pgkt8y4z.mjs";import"./cli-1.1.24-bhe5cv5z.mjs";import{$ta as I}from"./cli-1.1.24-hty94kzp.mjs";PK();FK();_K();VK();XK();HK();tz();GK();QK();WK();jK();qK();OK();NK();import{randomUUID as Sz}from"crypto";import{hostname as bJ,tmpdir as DK}from"os";import{basename as AK,join as UK,resolve as lz}from"path";WJ();gJ();cJ();pJ();uJ();tz();WJ();var lJ={type:"utf8",errorCorrectionLevel:"L",small:!0};async function dJ(z){return(await jJ(z,lJ)).split(`
|
|
2
|
+
`).filter((K)=>K.length>0)}function VJ(z){let J=z.write??(($)=>process.stdout.write($)),K=z.verbose,Y=0,O="idle",Z="Ready",R="",B="",U="",F="",L="",A=null,_=[],M=!1,y=null,P=0,x=0,N=1,f=null,k="single-session",b=new Map,d=null,S=0;function Xz($){let G=process.stdout.columns||80,w=0;for(let Vz of $.split(`
|
|
3
|
+
`)){if(Vz.length===0){w++;continue}let _z=sz(Vz);w+=Math.max(1,Math.ceil(_z/G))}if($.endsWith(`
|
|
4
|
+
`))w--;return w}function m($){J($),Y+=Xz($)}function a(){if(Y<=0)return;q(`[bridge:ui] clearStatusLines count=${Y}`),J(`\x1B[${Y}A`),J("\x1B[J"),Y=0}function $z($){a(),J($)}function n($){dJ($).then((G)=>{_=G,p()}).catch((G)=>{q(`QR code generation failed: ${G}`,{level:"error"})})}function o(){a();let $=fz[S%fz.length],G="";if(R)G+=V.dim(" · ")+V.dim(R);if(B)G+=V.dim(" · ")+V.dim(B);m(`${V.yellow($)} ${V.yellow("Connecting")}${G}
|
|
5
|
+
`)}function jz(){t(),o(),d=setInterval(()=>{S++,o()},150)}function t(){if(d)clearInterval(d),d=null}function p(){if(O==="reconnecting"||O==="failed")return;a();let $=O==="idle";if(M)for(let Jz of _)m(`${V.dim(Jz)}
|
|
6
|
+
`);let G=ez,w=$?V.green:V.cyan,_z=($?V.green:V.cyan)(Z),Oz="";if(R)Oz+=V.dim(" · ")+V.dim(R);if(B&&k!=="worktree")Oz+=V.dim(" · ")+V.dim(B);if(m(`${w(G)} ${_z}${Oz}
|
|
7
|
+
`),N>1){let Jz=k==="worktree"?"New sessions will be created in an isolated worktree":"New sessions will be created in the current directory";m(` ${V.dim(`Capacity: ${x}/${N} · ${Jz}`)}
|
|
8
|
+
`);for(let[,Kz]of b){let r=Kz.title?Rz(Kz.title,35):V.dim("Attached"),Mz=QJ(r,Kz.url),Fz=Kz.activity,j=Fz&&Fz.type!=="result"&&Fz.type!=="error"?V.dim(` ${Rz(Fz.summary,40)}`):"";m(` ${Mz}${j}
|
|
9
|
+
`)}}if(N===1){let Jz=k==="single-session"?"Single session · exits when complete":k==="worktree"?`Capacity: ${x}/1 · New sessions will be created in an isolated worktree`:`Capacity: ${x}/1 · New sessions will be created in the current directory`;m(` ${V.dim(Jz)}
|
|
10
|
+
`)}if(N===1&&!$&&y&&Date.now()-P<JJ)m(` ${V.dim(Rz(y,60))}
|
|
11
|
+
`);let Qz=A??U;if(Qz){m(`
|
|
12
|
+
`);let Jz=$?$J(Qz):YJ(Qz),Kz=M?V.dim.italic("space to hide QR code"):V.dim.italic("space to show QR code"),r=f?V.dim.italic(" · w to toggle spawn mode"):"";m(`${V.dim(Jz)}
|
|
13
|
+
`),m(`${Kz}${r}
|
|
14
|
+
`)}}return{printBanner($,G){if(F=$.sessionIngressUrl,L=G,U=KJ(G,F),n(U),K)J(V.dim("Remote Control")+` v99.0.0
|
|
15
|
+
`);if(K){if($.spawnMode!=="single-session")J(V.dim("Spawn mode: ")+`${$.spawnMode}
|
|
16
|
+
`),J(V.dim("Max concurrent sessions: ")+`${$.maxSessions}
|
|
17
|
+
`);J(V.dim("Environment ID: ")+`${G}
|
|
18
|
+
`)}if($.sandbox)J(V.dim("Sandbox: ")+`${V.green("Enabled")}
|
|
19
|
+
`);J(`
|
|
20
|
+
`),jz()},logSessionStart($,G){if(K){let w=Rz(G,80);$z(V.dim(`[${Cz()}]`)+` Session started: ${V.white(`"${w}"`)} (${V.dim($)})
|
|
21
|
+
`)}},logSessionComplete($,G){$z(V.dim(`[${Cz()}]`)+` Session ${V.green("completed")} (${qz(G)}) ${V.dim($)}
|
|
22
|
+
`)},logSessionFailed($,G){$z(V.dim(`[${Cz()}]`)+` Session ${V.red("failed")}: ${G} ${V.dim($)}
|
|
23
|
+
`)},logStatus($){$z(V.dim(`[${Cz()}]`)+` ${$}
|
|
24
|
+
`)},logVerbose($){if(K)$z(V.dim(`[${Cz()}] ${$}`)+`
|
|
25
|
+
`)},logError($){$z(V.red(`[${Cz()}] Error: ${$}`)+`
|
|
26
|
+
`)},logReconnected($){$z(V.dim(`[${Cz()}]`)+` ${V.green("Reconnected")} after ${qz($)}
|
|
27
|
+
`)},setRepoInfo($,G){R=$,B=G},updateIdleStatus(){t(),O="idle",Z="Ready",y=null,P=0,A=null,n(U),p()},setAttached($){if(t(),O="attached",Z="Connected",y=null,P=0,N<=1)A=ZJ($,L,F),n(A);p()},updateReconnectingStatus($,G){if(t(),a(),O="reconnecting",M)for(let Vz of _)m(`${V.dim(Vz)}
|
|
28
|
+
`);let w=fz[S%fz.length];S++,m(`${V.yellow(w)} ${V.yellow("Reconnecting")} ${V.dim("·")} ${V.dim(`retrying in ${$}`)} ${V.dim("·")} ${V.dim(`disconnected ${G}`)}
|
|
29
|
+
`)},updateFailedStatus($){t(),a(),O="failed";let G="";if(R)G+=V.dim(" · ")+V.dim(R);if(B)G+=V.dim(" · ")+V.dim(B);if(m(`${V.red(zJ)} ${V.red("Remote Control Failed")}${G}
|
|
30
|
+
`),m(`${V.dim(XJ)}
|
|
31
|
+
`),$)m(`${V.red($)}
|
|
32
|
+
`)},updateSessionStatus($,G,w,Vz){if(w.type==="tool_start")y=w.summary,P=Date.now();p()},clearStatus(){t(),a()},toggleQr(){M=!M,p()},updateSessionCount($,G,w){if(x===$&&N===G&&k===w)return;x=$,N=G,k=w},setSpawnModeDisplay($){if(f===$)return;if(f=$,$)k=$},addSession($,G){b.set($,{url:G})},updateSessionActivity($,G){let w=b.get($);if(!w)return;w.activity=G},setSessionTitle($,G){let w=b.get($);if(!w)return;if(w.title=G,O==="reconnecting"||O==="failed")return;if(N===1)O="titled",Z=Rz(G,40);p()},removeSession($){b.delete($)},refreshDisplay(){if(O==="reconnecting"||O==="failed")return;p()}}}OJ();BK();aJ();OJ();import{spawn as oJ}from"child_process";import{createWriteStream as rJ}from"fs";import{tmpdir as iJ}from"os";import{dirname as nJ,join as GJ}from"path";import{createInterface as HJ}from"readline";var tJ=10,sJ=10,eJ=new Set(["PATH","HOME","USERPROFILE","HOMEPATH","HOMEDRIVE","USERNAME","USER","LOGNAME","TEMP","TMP","TMPDIR","SYSTEMROOT","SYSTEMDRIVE","COMSPEC","WINDIR","LANG","LC_ALL","LC_CTYPE","NODE_OPTIONS","NODE_PATH","NODE_ENV","CLAUDE_CODE_ENVIRONMENT_KIND","CLAUDE_CODE_FORCE_SANDBOX","CLAUDIN_BUBBLEWRAP","CLAUDE_CODE_ENTRYPOINT","CLAUDIN_COORDINATOR_MODE","CLAUDE_CODE_PERMISSIONS_VERSION","CLAUDE_CODE_PERMISSIONS_SETTING","TERM","COLORTERM","FORCE_COLOR","NO_COLOR"]);function zK(z,J){let K={};for(let Y of Object.keys(z))if(eJ.has(Y))K[Y]=z[Y];if(K.CLAUDE_CODE_OAUTH_TOKEN=void 0,K.CLAUDE_CODE_ENVIRONMENT_KIND="bridge",J.sandbox)K.CLAUDE_CODE_FORCE_SANDBOX="1";if(K.CLAUDE_CODE_SESSION_ACCESS_TOKEN=J.accessToken,K.CLAUDE_CODE_POST_FOR_SESSION_INGRESS_V2="1",J.useCcrV2)K.CLAUDE_CODE_USE_CCR_V2="1",K.CLAUDE_CODE_WORKER_EPOCH=String(J.workerEpoch);return K}function Iz(z){return z.replace(/[^a-zA-Z0-9_-]/g,"_")}var JK={Read:"Reading",Write:"Writing",Edit:"Editing",MultiEdit:"Editing",Bash:"Running",Glob:"Searching",Grep:"Searching",WebFetch:"Fetching",WebSearch:"Searching",Task:"Running task",FileReadTool:"Reading",FileWriteTool:"Writing",FileEditTool:"Editing",GlobTool:"Searching",GrepTool:"Searching",BashTool:"Running",NotebookEditTool:"Editing notebook",LSP:"LSP"};function KK(z,J){let K=JK[z]??z,Y=J.file_path??J.filePath??J.pattern??J.command?.slice(0,60)??J.url??J.query??"";if(Y)return`${K} ${Y}`;return K}function ZK(z,J,K){let Y;try{Y=uz(z)}catch{return[]}if(!Y||typeof Y!=="object")return[];let O=Y,Z=[],R=Date.now();switch(O.type){case"assistant":{let B=O.message;if(!B)break;let U=B.content;if(!Array.isArray(U))break;for(let F of U){if(!F||typeof F!=="object")continue;let L=F;if(L.type==="tool_use"){let A=L.name??"Tool",_=L.input??{},M=KK(A,_);Z.push({type:"tool_start",summary:M,timestamp:R}),K(`[bridge:activity] sessionId=${J} tool_use name=${A} ${YK(_)}`)}else if(L.type==="text"){let A=L.text??"";if(A.length>0)Z.push({type:"text",summary:A.slice(0,80),timestamp:R}),K(`[bridge:activity] sessionId=${J} text "${A.slice(0,100)}"`)}}break}case"result":{let B=O.subtype;if(B==="success")Z.push({type:"result",summary:"Session completed",timestamp:R}),K(`[bridge:activity] sessionId=${J} result subtype=success`);else if(B){let F=O.errors?.[0]??`Error: ${B}`;Z.push({type:"error",summary:F,timestamp:R}),K(`[bridge:activity] sessionId=${J} result subtype=${B} error="${F}"`)}else K(`[bridge:activity] sessionId=${J} result subtype=undefined`);break}default:break}return Z}function $K(z){if(z.parent_tool_use_id!=null||z.isSynthetic||z.isReplay)return;let K=z.message?.content,Y;if(typeof K==="string")Y=K;else if(Array.isArray(K)){for(let O of K)if(O&&typeof O==="object"&&O.type==="text"){Y=O.text;break}}return Y=Y?.trim(),Y?Y:void 0}function YK(z){let J=[];for(let[K,Y]of Object.entries(z)){if(typeof Y==="string")J.push(`${K}="${Y.slice(0,100)}"`);if(J.length>=3)break}return J.join(" ")}function gz(z){return{spawn(J,K){let Y=Iz(J.sessionId),O;if(z.debugFile){let N=z.debugFile.lastIndexOf(".");if(N>0)O=`${z.debugFile.slice(0,N)}-${Y}${z.debugFile.slice(N)}`;else O=`${z.debugFile}-${Y}`}else if(z.verbose)O=GJ(iJ(),"claude",`bridge-session-${Y}.log`);let Z=null,R;if(z.debugFile)R=GJ(nJ(z.debugFile),`bridge-transcript-${Y}.jsonl`),Z=rJ(R,{flags:"a"}),Z.on("error",(N)=>{z.onDebug(`[bridge:session] Transcript write error: ${N.message}`),Z=null}),z.onDebug(`[bridge:session] Transcript log: ${R}`);let B=[...z.scriptArgs,"--print","--sdk-url",J.sdkUrl,"--session-id",J.sessionId,"--input-format","stream-json","--output-format","stream-json","--replay-user-messages",...z.verbose?["--verbose"]:[],...O?["--debug-file",O]:[],...z.permissionMode?["--permission-mode",z.permissionMode]:[]],U=zK(z.env,{accessToken:J.accessToken,useCcrV2:J.useCcrV2??!1,workerEpoch:J.workerEpoch,sandbox:z.sandbox});if(z.onDebug(`[bridge:session] Spawning sessionId=${J.sessionId} sdkUrl=${J.sdkUrl} accessToken=${J.accessToken?"present":"MISSING"}`),z.onDebug(`[bridge:session] Child args: ${B.join(" ")}`),O)z.onDebug(`[bridge:session] Debug log: ${O}`);let F=oJ(z.execPath,B,{cwd:K,stdio:["pipe","pipe","pipe"],env:U,windowsHide:!0});z.onDebug(`[bridge:session] sessionId=${J.sessionId} pid=${F.pid}`);let L=[],A=null,_=[],M=!1,y=!1;if(F.stderr)HJ({input:F.stderr}).on("line",(f)=>{if(z.verbose)process.stderr.write(f+`
|
|
33
|
+
`);if(_.length>=sJ)_.shift();_.push(f)});if(F.stdout)HJ({input:F.stdout}).on("line",(f)=>{if(Z)Z.write(f+`
|
|
34
|
+
`);if(z.onDebug(`[bridge:ws] sessionId=${J.sessionId} <<< ${mz(f)}`),z.verbose)process.stderr.write(f+`
|
|
35
|
+
`);let k=ZK(f,J.sessionId,z.onDebug);for(let b of k){if(L.length>=tJ)L.shift();L.push(b),A=b,z.onActivity?.(J.sessionId,b)}{let b;try{b=uz(f)}catch{}if(b&&typeof b==="object"){let d=b;if(d.type==="control_request"){if(d.request?.subtype==="can_use_tool"&&z.onPermissionRequest)z.onPermissionRequest(J.sessionId,b,J.accessToken)}else if(d.type==="user"&&!y&&J.onFirstUserMessage){let S=$K(d);if(S)y=!0,J.onFirstUserMessage(S)}}}});let P=new Promise((N)=>{F.on("close",(f,k)=>{if(Z)Z.end(),Z=null;if(k==="SIGTERM"||k==="SIGINT")z.onDebug(`[bridge:session] sessionId=${J.sessionId} interrupted signal=${k} pid=${F.pid}`),N("interrupted");else if(f===0)z.onDebug(`[bridge:session] sessionId=${J.sessionId} completed exit_code=0 pid=${F.pid}`),N("completed");else z.onDebug(`[bridge:session] sessionId=${J.sessionId} failed exit_code=${f} pid=${F.pid}`),N("failed")}),F.on("error",(f)=>{z.onDebug(`[bridge:session] sessionId=${J.sessionId} spawn error: ${f.message}`),N("failed")})}),x={sessionId:J.sessionId,done:P,activities:L,accessToken:J.accessToken,lastStderr:_,get currentActivity(){return A},kill(){if(!F.killed)if(z.onDebug(`[bridge:session] Sending SIGTERM to sessionId=${J.sessionId} pid=${F.pid}`),process.platform==="win32")F.kill();else F.kill("SIGTERM")},forceKill(){if(!M&&F.pid)if(M=!0,z.onDebug(`[bridge:session] Sending SIGKILL to sessionId=${J.sessionId} pid=${F.pid}`),process.platform==="win32")F.kill();else F.kill("SIGKILL")},writeStdin(N){if(F.stdin&&!F.stdin.destroyed)z.onDebug(`[bridge:ws] sessionId=${J.sessionId} >>> ${mz(N)}`),F.stdin.write(N)},updateAccessToken(N){x.accessToken=N,x.writeStdin(qJ({type:"update_environment_variables",variables:{CLAUDE_CODE_SESSION_ACCESS_TOKEN:N}})+`
|
|
36
|
+
`),z.onDebug(`[bridge:session] Sent token refresh via stdin for sessionId=${J.sessionId}`)}};return x}}}CK();RK();var LK={connInitialMs:2000,connCapMs:120000,connGiveUpMs:600000,generalInitialMs:500,generalCapMs:30000,generalGiveUpMs:600000},yK=1000,IJ=32;async function vJ(){return BJ("tengu_ccr_bridge_multi_session")}function FJ(z){return z.connCapMs*2}function hJ(){if(PJ()||!process.argv[1])return[];return[process.argv[1]]}function EK(z,J,K){try{return z.spawn(J,K)}catch(Y){let O=g(Y);return Ez(Error(`Session spawn failed: ${O}`)),O}}async function SJ(z,J,K,Y,O,Z,R,B=LK,U,F){let L=new AbortController;if(R.aborted)L.abort();else R.addEventListener("abort",()=>L.abort(),{once:!0});let A=L.signal,_=new Map,M=new Map,y=new Map,P=new Map,x=new Map,N=new Map,f=new Set,k=new Map,b=new Set,d=new Set,S=kJ(A);async function Xz(){let Q=!1,j=!1,E=[];for(let[H]of _){let D=y.get(H),v=x.get(H);if(!D||!v)continue;try{await Y.heartbeatWork(J,D,v),Q=!0}catch(u){if(q(`[bridge:heartbeat] Failed for sessionId=${H} workId=${D}: ${g(u)}`),u instanceof xz)if(zz("",{status:u.status,error_type:u.status===401||u.status===403?"auth_failed":"fatal"}),u.status===401||u.status===403)E.push(H);else j=!0}}for(let H of E){Z.logVerbose(`Session ${H} token expired — re-queuing via bridge/reconnect`);try{await Y.reconnectSession(J,H),q(`[bridge:heartbeat] Re-queued sessionId=${H} via bridge/reconnect`)}catch(D){Z.logError(`Failed to refresh session ${H} token: ${g(D)}`),q(`[bridge:heartbeat] reconnectSession(${H}) failed: ${g(D)}`,{level:"error"})}}if(j)return"fatal";if(E.length>0)return"auth_failed";return Q?"ok":"failed"}let m=new Set,a=F?fJ({getAccessToken:F,onRefresh:(Q,j)=>{let E=_.get(Q);if(!E)return;if(m.has(Q))Z.logVerbose(`Refreshing session ${Q} token via bridge/reconnect`),Y.reconnectSession(J,Q).catch((H)=>{Z.logError(`Failed to refresh session ${Q} token: ${g(H)}`),q(`[bridge:token] reconnectSession(${Q}) failed: ${g(H)}`,{level:"error"})});else E.updateAccessToken(j)},label:"bridge"}):null,$z=Date.now(),n=new Set;function o(Q){n.add(Q),Q.finally(()=>n.delete(Q))}let jz=0,t=0,p=null,$=null,G=null,w=null,Vz=!1;if(q(`[bridge:work] Starting poll loop spawnMode=${z.spawnMode} maxSessions=${z.maxSessions} environmentId=${J}`),Wz("info","bridge_loop_started",{max_sessions:z.maxSessions,spawn_mode:z.spawnMode}),Z.printBanner(z,J),Z.updateSessionCount(0,z.maxSessions,z.spawnMode),U)Z.setAttached(U);function _z(){Z.updateSessionCount(_.size,z.maxSessions,z.spawnMode);for(let[u,X]of _){let T=X.currentActivity;if(T)Z.updateSessionActivity(P.get(u)??u,T)}if(_.size===0){Z.updateIdleStatus();return}let[Q,j]=[..._.entries()].pop(),E=M.get(Q);if(!E)return;let H=j.currentActivity;if(!H||H.type==="result"||H.type==="error"){if(z.maxSessions>1)Z.refreshDisplay();return}let D=qz(Date.now()-E),v=j.activities.filter((u)=>u.type==="tool_start").slice(-5).map((u)=>u.summary);Z.updateSessionStatus(Q,D,H,v)}function Oz(){Qz(),_z(),w=setInterval(_z,yK)}function Qz(){if(w)clearInterval(w),w=null}function Jz(Q,j,E){return(H)=>{let D=y.get(Q);_.delete(Q),M.delete(Q),y.delete(Q),x.delete(Q);let v=P.get(Q)??Q;P.delete(Q),Z.removeSession(v),d.delete(v),m.delete(Q);let u=N.get(Q);if(u)clearTimeout(u),N.delete(Q);a?.cancel(Q),S.wake();let X=b.delete(Q),T=X&&H==="interrupted"?"failed":H,c=Date.now()-j;q(`[bridge:session] sessionId=${Q} workId=${D??"unknown"} exited status=${T} duration=${qz(c)}`),zz("",{status:T,duration_ms:c}),Wz("info","bridge_session_done",{status:T,duration_ms:c}),Z.clearStatus(),Qz();let s=E.lastStderr.length>0?E.lastStderr.join(`
|
|
37
|
+
`):void 0,Yz;switch(T){case"completed":Z.logSessionComplete(Q,c);break;case"failed":if(!X&&!A.aborted)Yz=s??"Process exited with error",Z.logSessionFailed(Q,Yz),Ez(Error(`Bridge session failed: ${Yz}`));break;case"interrupted":Z.logVerbose(`Session ${Q} interrupted`);break}if(T!=="interrupted"&&D)o(kz(Y,J,D,Z,B.stopWorkBaseDelayMs)),f.add(D);let Zz=k.get(Q);if(Zz)k.delete(Q),o(vz(Zz.worktreePath,Zz.worktreeBranch,Zz.gitRoot,Zz.hookBased).catch((l)=>Z.logVerbose(`Failed to remove worktree ${Zz.worktreePath}: ${g(l)}`)));if(T!=="interrupted"&&!A.aborted)if(z.spawnMode!=="single-session")o(Y.archiveSession(v).catch((l)=>Z.logVerbose(`Failed to archive session ${Q}: ${g(l)}`))),q(`[bridge:session] Session ${T}, returning to idle (multi-session mode)`);else{q(`[bridge:session] Session ${T}, aborting poll loop to tear down environment`),L.abort();return}if(!A.aborted)Oz()}}if(!U)Oz();while(!A.aborted){let Q=Tz();try{let j=await Y.pollForWork(J,K,A,Q.reclaim_older_than_ms);if(p!==null||$!==null){let X=Date.now()-(p??$??Date.now());Z.logReconnected(X),q(`[bridge:poll] Reconnected after ${qz(X)}`),zz("",{disconnected_ms:X})}if(jz=0,t=0,p=null,$=null,G=null,!j){if(_.size>=z.maxSessions){let T=Q.multisession_poll_interval_ms_at_capacity;if(Q.non_exclusive_heartbeat_interval_ms>0){zz("",{active_sessions:_.size,heartbeat_interval_ms:Q.non_exclusive_heartbeat_interval_ms});let c=T>0?Date.now()+T:null,s="ok",Yz=0;while(!A.aborted&&_.size>=z.maxSessions&&(c===null||Date.now()<c)){let l=Tz();if(l.non_exclusive_heartbeat_interval_ms<=0)break;let Nz=S.signal();if(s=await Xz(),s==="auth_failed"||s==="fatal"){Nz.cleanup();break}Yz++,await i(l.non_exclusive_heartbeat_interval_ms,Nz.signal),Nz.cleanup()}let Zz=s==="auth_failed"||s==="fatal"?s:A.aborted?"shutdown":_.size<z.maxSessions?"capacity_changed":c!==null&&Date.now()>=c?"poll_due":"config_disabled";if(zz("",{reason:Zz,heartbeat_cycles:Yz,active_sessions:_.size}),Zz==="poll_due")q(`[bridge:poll] Heartbeat poll_due after ${Yz} cycles — falling through to pollForWork`);if(s==="auth_failed"||s==="fatal"){let l=S.signal();await i(T>0?T:Q.non_exclusive_heartbeat_interval_ms,l.signal),l.cleanup()}}else if(T>0){let c=S.signal();await i(T,c.signal),c.cleanup()}}else{let T=_.size>0?Q.multisession_poll_interval_ms_partial_capacity:Q.multisession_poll_interval_ms_not_at_capacity;await i(T,A)}continue}let H=_.size>=z.maxSessions;if(f.has(j.id)){if(q(`[bridge:work] Skipping already-completed workId=${j.id}`),H){let X=S.signal();if(Q.non_exclusive_heartbeat_interval_ms>0)await Xz(),await i(Q.non_exclusive_heartbeat_interval_ms,X.signal);else if(Q.multisession_poll_interval_ms_at_capacity>0)await i(Q.multisession_poll_interval_ms_at_capacity,X.signal);X.cleanup()}else await i(1000,A);continue}let D;try{D=EJ(j.secret)}catch(X){let T=g(X);if(Z.logError(`Failed to decode work secret for workId=${j.id}: ${T}`),zz("",{}),f.add(j.id),o(kz(Y,J,j.id,Z,B.stopWorkBaseDelayMs)),H){let c=S.signal();if(Q.non_exclusive_heartbeat_interval_ms>0)await Xz(),await i(Q.non_exclusive_heartbeat_interval_ms,c.signal);else if(Q.multisession_poll_interval_ms_at_capacity>0)await i(Q.multisession_poll_interval_ms_at_capacity,c.signal);c.cleanup()}continue}let v=async()=>{q(`[bridge:work] Acknowledging workId=${j.id}`);try{await Y.acknowledgeWork(J,j.id,D.session_ingress_token)}catch(X){q(`[bridge:work] Acknowledge failed workId=${j.id}: ${g(X)}`)}},u=j.data.type;switch(j.data.type){case"healthcheck":await v(),q("[bridge:work] Healthcheck received"),Z.logVerbose("Healthcheck received");break;case"session":{let X=j.data.id;try{yJ(X,"session_id")}catch{await v(),Z.logError(`Invalid session_id received: ${X}`);break}let T=_.get(X);if(T){T.updateAccessToken(D.session_ingress_token),x.set(X,D.session_ingress_token),y.set(X,j.id),a?.schedule(X,D.session_ingress_token),q(`[bridge:work] Updated access token for existing sessionId=${X} workId=${j.id}`),await v();break}if(_.size>=z.maxSessions){q(`[bridge:work] At capacity (${_.size}/${z.maxSessions}), cannot spawn new session for workId=${j.id}`);break}await v();let c=Date.now(),s,Yz=!1,Zz;if(D.use_code_sessions===!0||NJ(process.env.CLAUDE_BRIDGE_USE_CCR_V2)){s=MJ(z.apiBaseUrl,X);for(let W=1;W<=2;W++)try{Zz=await wJ(s,D.session_ingress_token),Yz=!0,q(`[bridge:session] CCR v2: registered worker sessionId=${X} epoch=${Zz} attempt=${W}`);break}catch(C){let h=g(C);if(W<2){if(q(`[bridge:session] CCR v2: registerWorker attempt ${W} failed, retrying: ${h}`),await i(2000,A),A.aborted)break;continue}Z.logError(`CCR v2 worker registration failed for session ${X}: ${h}`),Ez(Error(`registerWorker failed: ${h}`)),f.add(j.id),o(kz(Y,J,j.id,Z,B.stopWorkBaseDelayMs))}if(!Yz)break}else s=TJ(z.sessionIngressUrl,X);let{spawnMode:l,dir:Nz}=z,Uz=0;if(l==="worktree"&&(U===void 0||!xJ(X,U))){let W=Date.now();try{let C=await DJ(`bridge-${Iz(X)}`);Uz=Date.now()-W,k.set(X,{worktreePath:C.worktreePath,worktreeBranch:C.worktreeBranch,gitRoot:C.gitRoot,hookBased:C.hookBased}),Nz=C.worktreePath,q(`[bridge:session] Created worktree for sessionId=${X} at ${C.worktreePath}`)}catch(C){let h=g(C);Z.logError(`Failed to create worktree for session ${X}: ${h}`),Ez(Error(`Worktree creation failed: ${h}`)),f.add(j.id),o(kz(Y,J,j.id,Z,B.stopWorkBaseDelayMs));break}}q(`[bridge:session] Spawning sessionId=${X} sdkUrl=${s}`);let e=pz(X),Lz=EK(O,{sessionId:X,sdkUrl:s,accessToken:D.session_ingress_token,useCcrV2:Yz,workerEpoch:Zz,onFirstUserMessage:(W)=>{if(d.has(e))return;d.add(e);let C=SK(W);Z.setSessionTitle(e,C),q(`[bridge:title] derived title for ${e}: ${C}`),import("./createSession-1.1.24-jmw71620.mjs").then(({updateBridgeSessionTitle:h})=>h(e,C,{baseUrl:z.apiBaseUrl})).catch((h)=>q(`[bridge:title] failed to update title for ${e}: ${h}`,{level:"error"}))}},Nz);if(typeof Lz==="string"){Z.logError(`Failed to spawn session ${X}: ${Lz}`);let W=k.get(X);if(W)k.delete(X),o(vz(W.worktreePath,W.worktreeBranch,W.gitRoot,W.hookBased).catch((C)=>Z.logVerbose(`Failed to remove worktree ${W.worktreePath}: ${g(C)}`)));f.add(j.id),o(kz(Y,J,j.id,Z,B.stopWorkBaseDelayMs));break}let Dz=Lz,Az=Date.now()-c;zz("",{active_sessions:_.size,spawn_mode:l,in_worktree:k.has(X),spawn_duration_ms:Az,worktree_create_ms:Uz}),Wz("info","bridge_session_started",{spawn_mode:l,in_worktree:k.has(X),spawn_duration_ms:Az,worktree_create_ms:Uz}),_.set(X,Dz),y.set(X,j.id),x.set(X,D.session_ingress_token),P.set(X,e);let wz=Date.now();M.set(X,wz),Z.logSessionStart(X,`Session ${X}`);let yz=Iz(X),Gz;if(z.debugFile){let W=z.debugFile.lastIndexOf(".");if(W>0)Gz=`${z.debugFile.slice(0,W)}-${yz}${z.debugFile.slice(W)}`;else Gz=`${z.debugFile}-${yz}`}else if(z.verbose)Gz=UK(DK(),"claude",`bridge-session-${yz}.log`);if(Gz)Z.logVerbose(`Debug log: ${Gz}`);Z.addSession(e,AJ(e,z.sessionIngressUrl)),Oz(),Z.setAttached(e),mK(e,z.apiBaseUrl).then((W)=>{if(W&&_.has(X))d.add(e),Z.setSessionTitle(e,W),q(`[bridge:title] server title for ${e}: ${W}`)}).catch((W)=>q(`[bridge:title] failed to fetch title for ${e}: ${W}`,{level:"error"}));let Bz=z.sessionTimeoutMs??LJ;if(Bz>0){let W=setTimeout(wK,Bz,X,Bz,Z,b,Dz);N.set(X,W)}if(Yz)m.add(X);a?.schedule(X,D.session_ingress_token),Dz.done.then(Jz(X,wz,Dz));break}default:await v(),q(`[bridge:work] Unknown work type: ${u}, skipping`);break}if(H){let X=S.signal();if(Q.non_exclusive_heartbeat_interval_ms>0)await Xz(),await i(Q.non_exclusive_heartbeat_interval_ms,X.signal);else if(Q.multisession_poll_interval_ms_at_capacity>0)await i(Q.multisession_poll_interval_ms_at_capacity,X.signal);X.cleanup()}}catch(j){if(A.aborted)break;if(j instanceof xz){if(Vz=!0,cz(j.errorType))Z.logStatus(j.message);else if(iz(j))q(`[bridge:work] Suppressed 403 error: ${j.message}`);else Z.logError(j.message),Ez(j);zz("",{status:j.status,error_type:j.errorType}),Wz(cz(j.errorType)?"info":"error","bridge_fatal_error",{status:j.status,error_type:j.errorType});break}let E=UJ(j);if(xK(j)||MK(j)){let H=Date.now();if(G!==null&&H-G>FJ(B))q(`[bridge:work] Detected system sleep (${Math.round((H-G)/1000)}s gap), resetting error budget`),Wz("info","bridge_poll_sleep_detected",{gapMs:H-G}),p=null,jz=0,$=null,t=0;if(G=H,!p)p=H;let D=H-p;if(D>=B.connGiveUpMs){Z.logError(`Server unreachable for ${Math.round(D/60000)} minutes, giving up.`),zz("",{error_type:"connection",elapsed_ms:D}),Wz("error","bridge_poll_give_up",{error_type:"connection",elapsed_ms:D}),Vz=!0;break}$=null,t=0,jz=jz?Math.min(jz*2,B.connCapMs):B.connInitialMs;let v=dz(jz);if(Z.logVerbose(`Connection error, retrying in ${bz(v)} (${Math.round(D/1000)}s elapsed): ${E}`),Z.updateReconnectingStatus(bz(v),qz(D)),Tz().non_exclusive_heartbeat_interval_ms>0)await Xz();await i(v,A)}else{let H=Date.now();if(G!==null&&H-G>FJ(B))q(`[bridge:work] Detected system sleep (${Math.round((H-G)/1000)}s gap), resetting error budget`),Wz("info","bridge_poll_sleep_detected",{gapMs:H-G}),p=null,jz=0,$=null,t=0;if(G=H,!$)$=H;let D=H-$;if(D>=B.generalGiveUpMs){Z.logError(`Persistent errors for ${Math.round(D/60000)} minutes, giving up.`),zz("",{error_type:"general",elapsed_ms:D}),Wz("error","bridge_poll_give_up",{error_type:"general",elapsed_ms:D}),Vz=!0;break}p=null,jz=0,t=t?Math.min(t*2,B.generalCapMs):B.generalInitialMs;let v=dz(t);if(Z.logVerbose(`Poll failed, retrying in ${bz(v)} (${Math.round(D/1000)}s elapsed): ${E}`),Z.updateReconnectingStatus(bz(v),qz(D)),Tz().non_exclusive_heartbeat_interval_ms>0)await Xz();await i(v,A)}}}Qz(),Z.clearStatus();let Kz=Date.now()-$z;zz("",{active_sessions:_.size,loop_duration_ms:Kz}),Wz("info","bridge_shutdown",{active_sessions:_.size,loop_duration_ms:Kz});let r=new Set(_.keys());if(U)r.add(U);let Mz=new Map(P);if(_.size>0){q(`[bridge:shutdown] Shutting down ${_.size} active session(s)`),Z.logStatus(`Shutting down ${_.size} active session(s)…`);let Q=new Map(y);for(let[E,H]of _.entries())q(`[bridge:shutdown] Sending SIGTERM to sessionId=${E}`),H.kill();let j=new AbortController;await Promise.race([Promise.allSettled([..._.values()].map((E)=>E.done)),i(B.shutdownGraceMs??30000,j.signal)]),j.abort();for(let[E,H]of _.entries())q(`[bridge:shutdown] Force-killing stuck sessionId=${E}`),H.forceKill();for(let E of N.values())clearTimeout(E);if(N.clear(),a?.cancelAll(),k.size>0){let E=[...k.values()];k.clear(),q(`[bridge:shutdown] Cleaning up ${E.length} worktree(s)`),await Promise.allSettled(E.map((H)=>vz(H.worktreePath,H.worktreeBranch,H.gitRoot,H.hookBased)))}await Promise.allSettled([...Q.entries()].map(([E,H])=>{return Y.stopWork(J,H,!0).catch((D)=>Z.logVerbose(`Failed to stop work ${H} for session ${E}: ${g(D)}`))}))}if(n.size>0)await Promise.allSettled([...n]);if(r.size>0)q(`[bridge:shutdown] Archiving ${r.size} session(s)`),await Promise.allSettled([...r].map((Q)=>Y.archiveSession(Mz.get(Q)??pz(Q)).catch((j)=>Z.logVerbose(`Failed to archive session ${Q}: ${g(j)}`))));try{await Y.deregisterEnvironment(J),q("[bridge:shutdown] Environment deregistered, bridge offline"),Z.logVerbose("Environment deregistered.")}catch(Q){Z.logVerbose(`Failed to deregister environment: ${g(Q)}`)}let{clearBridgePointer:Fz}=await import("./bridgePointer-1.1.24-e431wg6e.mjs");await Fz(z.dir),Z.logVerbose("Environment offline.")}var TK=new Set(["ECONNREFUSED","ECONNRESET","ETIMEDOUT","ENETUNREACH","EHOSTUNREACH"]);function xK(z){if(z&&typeof z==="object"&&"code"in z&&typeof z.code==="string"&&TK.has(z.code))return!0;return!1}function MK(z){return!!z&&typeof z==="object"&&"code"in z&&typeof z.code==="string"&&z.code==="ERR_BAD_RESPONSE"}function dz(z){return Math.max(0,z+z*0.25*(2*Math.random()-1))}function bz(z){return z>=1000?`${(z/1000).toFixed(1)}s`:`${Math.round(z)}ms`}async function kz(z,J,K,Y,O=1000){for(let R=1;R<=3;R++)try{await z.stopWork(J,K,!1),q(`[bridge:work] stopWork succeeded for workId=${K} on attempt ${R}/3`);return}catch(B){if(B instanceof xz){if(iz(B))q(`[bridge:work] Suppressed stopWork 403 for ${K}: ${B.message}`);else Y.logError(`Failed to stop work ${K}: ${B.message}`);Wz("error","bridge_stop_work_failed",{attempts:R,fatal:!0});return}let U=g(B);if(R<3){let F=dz(O*Math.pow(2,R-1));Y.logVerbose(`Failed to stop work ${K} (attempt ${R}/3), retrying in ${bz(F)}: ${U}`),await i(F)}else Y.logError(`Failed to stop work ${K} after 3 attempts: ${U}`),Wz("error","bridge_stop_work_failed",{attempts:3})}}function wK(z,J,K,Y,O){q(`[bridge:session] sessionId=${z} timed out after ${qz(J)}`),zz("",{timeout_ms:J}),K.logSessionFailed(z,`Session timed out after ${qz(J)}`),Y.add(z),O.kill()}var fK=["session","same-dir","worktree"];function kK(z){if(z==="session")return"single-session";if(z==="same-dir")return"same-dir";if(z==="worktree")return"worktree";return`--spawn requires one of: ${fK.join(", ")} (got: ${z??"<missing>"})`}function bK(z){let J=z===void 0?NaN:parseInt(z,10);if(isNaN(J)||J<1)return`--capacity requires a positive integer (got: ${z??"<missing>"})`;return J}function IK(z){let J=!1,K=!1,Y,O,Z,R,B=!1,U,F,L,A,_=!1;for(let y=0;y<z.length;y++){let P=z[y];if(P==="--help"||P==="-h")B=!0;else if(P==="--verbose"||P==="-v")J=!0;else if(P==="--sandbox")K=!0;else if(P==="--no-sandbox")K=!1;else if(P==="--debug-file"&&y+1<z.length)Y=lz(z[++y]);else if(P.startsWith("--debug-file="))Y=lz(P.slice(13));else if(P==="--session-timeout"&&y+1<z.length)O=parseInt(z[++y],10)*1000;else if(P.startsWith("--session-timeout="))O=parseInt(P.slice(18),10)*1000;else if(P==="--permission-mode"&&y+1<z.length)Z=z[++y];else if(P.startsWith("--permission-mode="))Z=P.slice(18);else if(P==="--name"&&y+1<z.length)R=z[++y];else if(P.startsWith("--name="))R=P.slice(7);else if(P==="--spawn"||P.startsWith("--spawn=")){if(U!==void 0)return M("--spawn may only be specified once");let x=P.startsWith("--spawn=")?P.slice(8):z[++y],N=kK(x);if(N==="single-session"||N==="same-dir"||N==="worktree")U=N;else return M(N)}else if(P==="--capacity"||P.startsWith("--capacity=")){if(F!==void 0)return M("--capacity may only be specified once");let x=P.startsWith("--capacity=")?P.slice(11):z[++y],N=bK(x);if(typeof N==="number")F=N;else return M(N)}else if(P==="--create-session-in-dir")L=!0;else if(P==="--no-create-session-in-dir")L=!1;else return M(`Unknown argument: ${P}
|
|
38
|
+
Run 'claudin remote-control --help' for usage.`)}if(U==="single-session"&&F!==void 0)return M("--capacity cannot be used with --spawn=session (single-session mode has fixed capacity 1).");if((A||_)&&(U!==void 0||F!==void 0||L!==void 0))return M("--session-id and --continue cannot be used with --spawn, --capacity, or --create-session-in-dir.");if(A&&_)return M("--session-id and --continue cannot be used together.");return{verbose:J,sandbox:K,debugFile:Y,sessionTimeoutMs:O,permissionMode:Z,name:R,spawnMode:U,capacity:F,createSessionInDir:L,sessionId:A,continueSession:_,help:B};function M(y){return{verbose:J,sandbox:K,debugFile:Y,sessionTimeoutMs:O,permissionMode:Z,name:R,spawnMode:U,capacity:F,createSessionInDir:L,sessionId:A,continueSession:_,help:B,error:y}}}async function vK(){let{EXTERNAL_PERMISSION_MODES:z}=await import("./permissions-1.1.24-v5xhwsne.mjs"),J=z.join(", "),K=await vJ(),Y=K?` --spawn <mode> Spawn mode: same-dir, worktree, session
|
|
39
|
+
(default: same-dir)
|
|
40
|
+
--capacity <N> Max concurrent sessions in worktree or
|
|
41
|
+
same-dir mode (default: ${IJ})
|
|
42
|
+
--[no-]create-session-in-dir Pre-create a session in the current
|
|
43
|
+
directory; in worktree mode this session
|
|
44
|
+
stays in cwd while on-demand sessions get
|
|
45
|
+
isolated worktrees (default: on)
|
|
46
|
+
`:"",R=`
|
|
47
|
+
Remote Control - Connect your local environment to claude.ai/code
|
|
48
|
+
|
|
49
|
+
USAGE
|
|
50
|
+
claudin remote-control [options]
|
|
51
|
+
OPTIONS
|
|
52
|
+
--name <name> Name for the session (shown in claude.ai/code)
|
|
53
|
+
--permission-mode <mode> Permission mode for spawned sessions
|
|
54
|
+
(${J})
|
|
55
|
+
--debug-file <path> Write debug logs to file
|
|
56
|
+
-v, --verbose Enable verbose output
|
|
57
|
+
-h, --help Show this help
|
|
58
|
+
${Y}
|
|
59
|
+
DESCRIPTION
|
|
60
|
+
Remote Control allows you to control sessions on your local device from
|
|
61
|
+
claude.ai/code (https://claude.ai/code). Run this command in the
|
|
62
|
+
directory you want to work in, then connect from the Claude app or web.
|
|
63
|
+
${K?`
|
|
64
|
+
Remote Control runs as a persistent server that accepts multiple concurrent
|
|
65
|
+
sessions in the current directory. One session is pre-created on start so
|
|
66
|
+
you have somewhere to type immediately. Use --spawn=worktree to isolate
|
|
67
|
+
each on-demand session in its own git worktree, or --spawn=session for
|
|
68
|
+
the classic single-session mode (exits when that session ends). Press 'w'
|
|
69
|
+
during runtime to toggle between same-dir and worktree.
|
|
70
|
+
`:""}
|
|
71
|
+
NOTES
|
|
72
|
+
- You must be logged in with a Claude account that has a subscription
|
|
73
|
+
- Run \`claudin\` first in the directory to accept the workspace trust dialog
|
|
74
|
+
${K?` - Worktree mode requires a git repository or WorktreeCreate/WorktreeRemove hooks
|
|
75
|
+
`:""}`;console.log(R)}var hK=80;function SK(z){let J=z.replace(/\s+/g," ").trim();return Rz(J,hK)}async function mK(z,J){let{getBridgeSession:K}=await import("./createSession-1.1.24-jmw71620.mjs");return(await K(z,{baseUrl:J}))?.title||void 0}async function fZ(z){let J=IK(z);if(J.help){await vK();return}if(J.error)console.error(`Error: ${J.error}`),process.exit(1);let{verbose:K,sandbox:Y,debugFile:O,sessionTimeoutMs:Z,permissionMode:R,name:B,spawnMode:U,capacity:F,createSessionInDir:L,sessionId:A,continueSession:_}=J,M=A,y,P=U!==void 0||F!==void 0||L!==void 0;if(R!==void 0){let{PERMISSION_MODES:W}=await import("./permissions-1.1.24-v5xhwsne.mjs"),C=W;if(!C.includes(R))console.error(`Error: Invalid permission mode '${R}'. Valid modes: ${C.join(", ")}`),process.exit(1)}let x=lz("."),{enableConfigs:N,checkHasTrustDialogAccepted:f}=await import("./config-1.1.24-ndcrhj7n.mjs");N();let{initSinks:k}=await import("./sinks-1.1.24-zbp12cks.mjs");k();let b=await vJ();if(P&&!b)await _J("",{used_spawn:U!==void 0,used_capacity:F!==void 0,used_create_session_in_dir:L!==void 0}),await Promise.race([Promise.all([RJ(),CJ()]),i(500,void 0,{unref:!0})]).catch(()=>{}),console.error("Error: Multi-session Remote Control is not enabled for your account yet."),process.exit(1);let{setOriginalCwd:d,setCwdState:S}=await import("./state-1.1.24-5c4debwf.mjs");if(d(x),S(x),!f())console.error(`Error: Workspace not trusted. Please run \`claude\` in ${x} first to review and accept the workspace trust dialog.`),process.exit(1);let{clearOAuthTokenCache:Xz,checkAndRefreshOAuthTokenIfNeeded:m}=await import("./auth-1.1.24-fjhrv05m.mjs"),{getBridgeAccessToken:a,getBridgeBaseUrl:$z}=await import("./bridgeConfig-1.1.24-7y8hnb44.mjs");if(!a())console.error(oz),process.exit(1);let{getGlobalConfig:o,saveGlobalConfig:jz,getCurrentProjectConfig:t,saveCurrentProjectConfig:p}=await import("./config-1.1.24-ndcrhj7n.mjs");if(!o().remoteDialogSeen){let C=(await import("readline")).createInterface({input:process.stdin,output:process.stdout});console.log(`
|
|
76
|
+
Remote Control lets you access this CLI session from the web (claude.ai/code)
|
|
77
|
+
or the Claude app, so you can pick up where you left off on any device.
|
|
78
|
+
|
|
79
|
+
You can disconnect remote access anytime by running /remote-control again.
|
|
80
|
+
`);let h=await new Promise((Hz)=>{C.question("Enable Remote Control? (y/n) ",Hz)});if(C.close(),jz((Hz)=>{if(Hz.remoteDialogSeen)return Hz;return{...Hz,remoteDialogSeen:!0}}),h.toLowerCase()!=="y"&&h.toLowerCase()!=="yes")process.exit(0)}let $=$z();if($.startsWith("http://")&&!$.includes("localhost")&&!$.includes("127.0.0.1"))console.error("Error: Remote Control base URL uses HTTP. Only HTTPS or localhost HTTP is allowed."),process.exit(1);let G=process.env.CLAUDE_BRIDGE_SESSION_INGRESS_URL||$,{getBranch:w,getRemoteUrl:Vz,findGitRoot:_z}=await import("./git-1.1.24-g44mqdr1.mjs"),{hasWorktreeCreateHook:Oz}=await import("./hooks-1.1.24-qvh9gx4b.mjs"),Qz=Oz()||_z(x)!==null,Jz=b?t().remoteControlSpawnMode:void 0;if(Jz==="worktree"&&!Qz)console.error("Warning: Saved spawn mode is worktree but this directory is not a git repository. Falling back to same-dir."),Jz=void 0,p((W)=>{if(W.remoteControlSpawnMode===void 0)return W;return{...W,remoteControlSpawnMode:void 0}});if(b&&!Jz&&Qz&&U===void 0&&!M&&process.stdin.isTTY){let C=(await import("readline")).createInterface({input:process.stdin,output:process.stdout});console.log(`
|
|
81
|
+
Claude Remote Control is launching in spawn mode which lets you create new sessions in this project from Claude Code on Web or your Mobile app. Learn more here: https://code.claude.com/docs/en/remote-control
|
|
82
|
+
|
|
83
|
+
Spawn mode for this project:
|
|
84
|
+
`+` [1] same-dir — sessions share the current directory (default)
|
|
85
|
+
`+` [2] worktree — each session gets an isolated git worktree
|
|
86
|
+
|
|
87
|
+
`+`This can be changed later or explicitly set with --spawn=same-dir or --spawn=worktree.
|
|
88
|
+
`);let h=await new Promise((Pz)=>{C.question("Choose [1/2] (default: 1): ",Pz)});C.close();let Hz=h.trim()==="2"?"worktree":"same-dir";Jz=Hz,zz("",{spawn_mode:Hz}),p((Pz)=>{if(Pz.remoteControlSpawnMode===Hz)return Pz;return{...Pz,remoteControlSpawnMode:Hz}})}let Kz,r;if(M)r="single-session",Kz="resume";else if(U!==void 0)r=U,Kz="flag";else if(Jz!==void 0)r=Jz,Kz="saved";else r=b?"same-dir":"single-session",Kz="gate_default";let Mz=r==="single-session"?1:F??IJ,Fz=L??!0;if(!M){let{clearBridgePointer:W}=await import("./bridgePointer-1.1.24-e431wg6e.mjs");await W(x)}if(r==="worktree"&&!Qz)console.error("Error: Worktree mode requires a git repository or WorktreeCreate hooks configured. Use --spawn=session for single-session mode."),process.exit(1);let Q=await w(),j=await Vz(),E=bJ(),H=Sz(),{handleOAuth401Error:D}=await import("./auth-1.1.24-fjhrv05m.mjs"),v=rz({baseUrl:$,getAccessToken:a,runnerVersion:"99.0.0",onDebug:q,onAuth401:D,getTrustedDeviceToken:az}),u,X={dir:x,machineName:E,branch:Q,gitRepoUrl:j,maxSessions:Mz,spawnMode:r,verbose:K,sandbox:Y,bridgeId:H,workerType:"claude_code",environmentId:Sz(),reuseEnvironmentId:u,apiBaseUrl:$,sessionIngressUrl:G,debugFile:O,sessionTimeoutMs:Z};q(`[bridge:init] bridgeId=${H}${u?` reuseEnvironmentId=${u}`:""} dir=${x} branch=${Q} gitRepoUrl=${j} machine=${E}`),q(`[bridge:init] apiBaseUrl=${$} sessionIngressUrl=${G}`),q(`[bridge:init] sandbox=${Y}${O?` debugFile=${O}`:""}`);let T,c;try{let W=await v.registerBridgeEnvironment(X);T=W.environment_id,c=W.environment_secret}catch(W){zz("",{status:W instanceof xz?W.status:void 0}),console.error(W instanceof xz&&W.status===404?"Remote Control environments are not available for your account.":`Error: ${g(W)}`),process.exit(1)}let s;q(`[bridge:init] Registered, server environmentId=${T}`);let Yz=Tz();zz("",{max_sessions:X.maxSessions,has_debug_file:!!X.debugFile,sandbox:X.sandbox,verbose:X.verbose,heartbeat_interval_ms:Yz.non_exclusive_heartbeat_interval_ms,spawn_mode:X.spawnMode,spawn_mode_source:Kz,multi_session_gate:b,pre_create_session:Fz,worktree_available:Qz}),Wz("info","bridge_started",{max_sessions:X.maxSessions,sandbox:X.sandbox,spawn_mode:X.spawnMode});let Zz=gz({execPath:process.execPath,scriptArgs:hJ(),env:process.env,verbose:K,sandbox:Y,debugFile:O,permissionMode:R,onDebug:q,onActivity:(W,C)=>{q(`[bridge:activity] sessionId=${W} ${C.type} ${C.summary}`)},onPermissionRequest:(W,C,h)=>{q(`[bridge:perm] sessionId=${W} tool=${C.request.tool_name} request_id=${C.request_id} (not auto-approving)`)}}),l=VJ({verbose:K}),{parseGitHubRepository:Nz}=await import("./detectRepository-1.1.24-pegwcpzf.mjs"),Uz=j?Nz(j):null,e=Uz?Uz.split("/").pop():AK(x);l.setRepoInfo(e,Q);let Lz=r!=="single-session"&&Qz;if(Lz)l.setSpawnModeDisplay(r);let Dz=(W)=>{if(W[0]===3||W[0]===4){process.emit("SIGINT");return}if(W[0]===32){l.toggleQr();return}if(W[0]===119){if(!Lz)return;let C=X.spawnMode==="same-dir"?"worktree":"same-dir";X.spawnMode=C,zz("",{spawn_mode:C}),l.logStatus(C==="worktree"?"Spawn mode: worktree (new sessions get isolated git worktrees)":"Spawn mode: same-dir (new sessions share the current directory)"),l.setSpawnModeDisplay(C),l.refreshDisplay(),p((h)=>{if(h.remoteControlSpawnMode===C)return h;return{...h,remoteControlSpawnMode:C}});return}};if(process.stdin.isTTY)process.stdin.setRawMode(!0),process.stdin.resume(),process.stdin.on("data",Dz);let Az=new AbortController,wz=()=>{q("[bridge:shutdown] SIGINT received, shutting down"),Az.abort()},yz=()=>{q("[bridge:shutdown] SIGTERM received, shutting down"),Az.abort()};process.on("SIGINT",wz),process.on("SIGTERM",yz);let Gz=null;if(Fz){let{createBridgeSession:W}=await import("./createSession-1.1.24-jmw71620.mjs");try{if(Gz=await W({environmentId:T,title:B,events:[],gitRepoUrl:j,branch:Q,signal:Az.signal,baseUrl:$,getAccessToken:a,permissionMode:R}),Gz)q(`[bridge:init] Created initial session ${Gz}`)}catch(C){q(`[bridge:init] Session creation failed (non-fatal): ${g(C)}`)}}let Bz=null;if(Gz&&r==="single-session"){let{writeBridgePointer:W}=await import("./bridgePointer-1.1.24-e431wg6e.mjs"),C={sessionId:Gz,environmentId:T,source:"standalone"};await W(X.dir,C),Bz=setInterval(W,3600000,X.dir,C),Bz.unref?.()}try{await SJ(X,T,c,v,Zz,l,Az.signal,void 0,Gz??void 0,async()=>{return Xz(),await m(),a()})}finally{if(Bz!==null)clearInterval(Bz);if(process.off("SIGINT",wz),process.off("SIGTERM",yz),process.stdin.off("data",Dz),process.stdin.isTTY)process.stdin.setRawMode(!1);process.stdin.pause()}process.exit(0)}class hz extends Error{constructor(z){super(z);this.name="BridgeHeadlessPermanentError"}}async function kZ(z,J){let{dir:K,log:Y}=z;process.chdir(K);let{setOriginalCwd:O,setCwdState:Z}=await import("./state-1.1.24-5c4debwf.mjs");O(K),Z(K);let{enableConfigs:R,checkHasTrustDialogAccepted:B}=await import("./config-1.1.24-ndcrhj7n.mjs");R();let{initSinks:U}=await import("./sinks-1.1.24-zbp12cks.mjs");if(U(),!B())throw new hz(`Workspace not trusted: ${K}. Run \`claude\` in that directory first to accept the trust dialog.`);if(!z.getAccessToken())throw Error(oz);let{getBridgeBaseUrl:F}=await import("./bridgeConfig-1.1.24-7y8hnb44.mjs"),L=F();if(L.startsWith("http://")&&!L.includes("localhost")&&!L.includes("127.0.0.1"))throw new hz("Remote Control base URL uses HTTP. Only HTTPS or localhost HTTP is allowed.");let A=process.env.CLAUDE_BRIDGE_SESSION_INGRESS_URL||L,{getBranch:_,getRemoteUrl:M,findGitRoot:y}=await import("./git-1.1.24-g44mqdr1.mjs"),{hasWorktreeCreateHook:P}=await import("./hooks-1.1.24-qvh9gx4b.mjs");if(z.spawnMode==="worktree"){if(!(P()||y(K)!==null))throw new hz(`Worktree mode requires a git repository or WorktreeCreate hooks. Directory ${K} has neither.`)}let x=await _(),N=await M(),f=bJ(),k=Sz(),b={dir:K,machineName:f,branch:x,gitRepoUrl:N,maxSessions:z.capacity,spawnMode:z.spawnMode,verbose:!1,sandbox:z.sandbox,bridgeId:k,workerType:"claude_code",environmentId:Sz(),apiBaseUrl:L,sessionIngressUrl:A,sessionTimeoutMs:z.sessionTimeoutMs},d=rz({baseUrl:L,getAccessToken:z.getAccessToken,runnerVersion:"99.0.0",onDebug:Y,onAuth401:z.onAuth401,getTrustedDeviceToken:az}),S,Xz;try{let n=await d.registerBridgeEnvironment(b);S=n.environment_id,Xz=n.environment_secret}catch(n){throw Error(`Bridge registration failed: ${g(n)}`)}let m=gz({execPath:process.execPath,scriptArgs:hJ(),env:process.env,verbose:!1,sandbox:z.sandbox,permissionMode:z.permissionMode,onDebug:Y}),a=uK(Y);a.printBanner(b,S);let $z;if(z.createSessionOnStart){let{createBridgeSession:n}=await import("./createSession-1.1.24-jmw71620.mjs");try{let o=await n({environmentId:S,title:z.name,events:[],gitRepoUrl:N,branch:x,signal:J,baseUrl:L,getAccessToken:z.getAccessToken,permissionMode:z.permissionMode});if(o)$z=o,Y(`created initial session ${o}`)}catch(o){Y(`session pre-creation failed (non-fatal): ${g(o)}`)}}await SJ(b,S,Xz,d,m,a,J,void 0,$z,async()=>z.getAccessToken())}function uK(z){let J=()=>{};return{printBanner:(K,Y)=>z(`registered environmentId=${Y} dir=${K.dir} spawnMode=${K.spawnMode} capacity=${K.maxSessions}`),logSessionStart:(K,Y)=>z(`session start ${K}`),logSessionComplete:(K,Y)=>z(`session complete ${K} (${Y}ms)`),logSessionFailed:(K,Y)=>z(`session failed ${K}: ${Y}`),logStatus:z,logVerbose:z,logError:(K)=>z(`error: ${K}`),logReconnected:(K)=>z(`reconnected after ${K}ms`),addSession:(K,Y)=>z(`session attached ${K}`),removeSession:(K)=>z(`session detached ${K}`),updateIdleStatus:J,updateReconnectingStatus:J,updateSessionStatus:J,updateSessionActivity:J,updateSessionCount:J,updateFailedStatus:J,setSpawnModeDisplay:J,setRepoInfo:J,setAttached:J,setSessionTitle:J,clearStatus:J,toggleQr:J,refreshDisplay:J}}export{SJ as runBridgeLoop,kZ as runBridgeHeadless,IK as parseArgs,MK as isServerError,xK as isConnectionError,fZ as bridgeMain,hz as BridgeHeadlessPermanentError};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{KX as S,LX as c}from"./cli-1.1.24-xyb7vhk3.mjs";import{Jja as Y,Lja as O,Mja as N,Nja as _,bja as G,cja as A,gja as M}from"./cli-1.1.24-zjc9nfba.mjs";import{Hla as C,Kla as k,kla as K,lla as W,pla as R}from"./cli-1.1.24-zey4mks2.mjs";import"./cli-1.1.24-ctw3hzrp.mjs";import{hma as y,mma as j}from"./cli-1.1.24-eh4c00hd.mjs";import"./cli-1.1.24-8s7nf1y6.mjs";import"./cli-1.1.24-bnm1yphs.mjs";import"./cli-1.1.24-yz5bzn1k.mjs";import"./cli-1.1.24-d371v1bp.mjs";import"./cli-1.1.24-hty94kzp.mjs";O();k();j();c();_();M();R();import{mkdir as z,readFile as E,stat as T,unlink as m,writeFile as B}from"fs/promises";import{dirname as b,join as f}from"path";var I=50,u=14400000,D=N(()=>Y.object({sessionId:Y.string(),environmentId:Y.string(),source:Y.enum(["standalone","repl"])}));function J(q){return f(A(),G(q),"bridge-pointer.json")}async function g(q,x){let v=J(q);try{await z(b(v),{recursive:!0}),await B(v,K(x),"utf8"),C(`[bridge:pointer] wrote ${v}`)}catch(V){C(`[bridge:pointer] write failed: ${V}`,{level:"warn"})}}async function U(q){let x=J(q),v,V;try{V=(await T(x)).mtimeMs,v=await E(x,"utf8")}catch{return null}let Z=D().safeParse(F(v));if(!Z.success)return C(`[bridge:pointer] invalid schema, clearing: ${x}`),await X(q),null;let $=Math.max(0,Date.now()-V);if($>u)return C(`[bridge:pointer] stale (>4h mtime), clearing: ${x}`),await X(q),null;return{...Z.data,ageMs:$}}async function s(q){let x=await U(q);if(x)return{pointer:x,dir:q};let v=await S(q);if(v.length<=1)return null;if(v.length>I)return C(`[bridge:pointer] ${v.length} worktrees exceeds fanout cap ${I}, skipping`),null;let V=G(q),Z=v.filter((H)=>G(H)!==V),$=await Promise.all(Z.map(async(H)=>{let L=await U(H);return L?{pointer:L,dir:H}:null})),Q=null;for(let H of $)if(H&&(!Q||H.pointer.ageMs<Q.pointer.ageMs))Q=H;if(Q)C(`[bridge:pointer] fanout found pointer in worktree ${Q.dir} (ageMs=${Q.pointer.ageMs})`);return Q}async function X(q){let x=J(q);try{await m(x),C(`[bridge:pointer] cleared ${x}`)}catch(v){if(!y(v))C(`[bridge:pointer] clear failed: ${v}`,{level:"warn"})}}function F(q){try{return W(q)}catch{return null}}export{g as writeBridgePointer,s as readBridgePointerAcrossWorktrees,U as readBridgePointer,J as getBridgePointerPath,X as clearBridgePointer,u as BRIDGE_POINTER_TTL_MS};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{gi as a,hi as AJ}from"./cli-1.1.24-m70g3zj4.mjs";import{ii as x,ji as vJ}from"./cli-1.1.24-w828y1cd.mjs";import{AI as $,BI as bJ,ER as TJ,JS as hJ,Lx as u,Mx as IJ,NU as s,OU as t,PU as DJ,_y as m,az as HJ,fo as g,go as UJ,hF as c,nF as WJ,tR as r,vS as o}from"./cli-1.1.24-2qkkzsk3.mjs";import"./cli-1.1.24-vandpwa9.mjs";import"./cli-1.1.24-tvhfdndb.mjs";import"./cli-1.1.24-64d8tfjb.mjs";import"./cli-1.1.24-5vw5z579.mjs";import"./cli-1.1.24-wygwske9.mjs";import"./cli-1.1.24-sm5pzkcb.mjs";import"./cli-1.1.24-1m0md9q7.mjs";import"./cli-1.1.24-wr42vnqf.mjs";import"./cli-1.1.24-3n53gv32.mjs";import"./cli-1.1.24-mwva78xt.mjs";import"./cli-1.1.24-znb9n8xc.mjs";import"./cli-1.1.24-wjy2ctev.mjs";import"./cli-1.1.24-c1c7arb3.mjs";import"./cli-1.1.24-9jq4gf5s.mjs";import"./cli-1.1.24-xyb7vhk3.mjs";import"./cli-1.1.24-tbzjj2e8.mjs";import"./cli-1.1.24-zqsb8jf1.mjs";import"./cli-1.1.24-4t3rdp3k.mjs";import"./cli-1.1.24-x8cd4qb4.mjs";import{SY as i,TY as QJ,nZ as l,pZ as kJ}from"./cli-1.1.24-4p3bjzm5.mjs";import"./cli-1.1.24-fwb0d06k.mjs";import{F1 as W,H1 as b,Y1 as S,_1 as KJ,g0 as GJ,k2 as NJ}from"./cli-1.1.24-vf59rwy3.mjs";import"./cli-1.1.24-jm2wjmkx.mjs";import"./cli-1.1.24-ftgtm0ys.mjs";import"./cli-1.1.24-190psky8.mjs";import"./cli-1.1.24-yzfk4k7c.mjs";import"./cli-1.1.24-hbvsy3cq.mjs";import"./cli-1.1.24-bd6f0h85.mjs";import"./cli-1.1.24-pt8vrhq3.mjs";import"./cli-1.1.24-2d5h000x.mjs";import"./cli-1.1.24-a6q6r9em.mjs";import"./cli-1.1.24-yp46sbt0.mjs";import{I4 as F,J4 as H,K4 as _}from"./cli-1.1.24-9dnr05fm.mjs";import{L4 as zJ}from"./cli-1.1.24-ys3jea4v.mjs";import"./cli-1.1.24-c80wbwvr.mjs";import"./cli-1.1.24-5pkkmh85.mjs";import"./cli-1.1.24-8zb03vbp.mjs";import"./cli-1.1.24-32h2wd2e.mjs";import"./cli-1.1.24-dw6eynz7.mjs";import"./cli-1.1.24-3n6e2e3w.mjs";import"./cli-1.1.24-6ptbgma9.mjs";import"./cli-1.1.24-ez9nx0pe.mjs";import"./cli-1.1.24-nsggarp4.mjs";import"./cli-1.1.24-hbp5ttza.mjs";import"./cli-1.1.24-7ymj1nkq.mjs";import{Ffa as C,Mca as ZJ,bga as FJ,tca as j,uca as p}from"./cli-1.1.24-pe23qamd.mjs";import"./cli-1.1.24-bph6jjd7.mjs";import"./cli-1.1.24-f0pc1fm3.mjs";import"./cli-1.1.24-7ga8r482.mjs";import"./cli-1.1.24-gb39akdj.mjs";import"./cli-1.1.24-zjc9nfba.mjs";import"./cli-1.1.24-n7r6kv9g.mjs";import"./cli-1.1.24-7ae9t2qz.mjs";import"./cli-1.1.24-prprq6xe.mjs";import"./cli-1.1.24-zey4mks2.mjs";import"./cli-1.1.24-ctw3hzrp.mjs";import{fma as f,mma as YJ}from"./cli-1.1.24-eh4c00hd.mjs";import"./cli-1.1.24-8s7nf1y6.mjs";import"./cli-1.1.24-bnm1yphs.mjs";import"./cli-1.1.24-yz5bzn1k.mjs";import"./cli-1.1.24-d371v1bp.mjs";import"./cli-1.1.24-zc49jxpp.mjs";import"./cli-1.1.24-pgkt8y4z.mjs";import"./cli-1.1.24-bhe5cv5z.mjs";import{Wta as R,_ta as XJ}from"./cli-1.1.24-hty94kzp.mjs";function BJ(V){let J=n.c(25),{question:Y,context:z,onDone:G}=V,[Z,e]=N.useState(null),[K,y]=N.useState(null),[P,JJ]=N.useState(0),T=N.useRef(null),{rows:VJ}=l(i()),v;if(J[0]===Symbol.for("react.memo_cache_sentinel"))v=()=>JJ(EJ),J[0]=v;else v=J[0];S(v,Z||K?null:80);let A;if(J[1]!==G)A=function(X){if(X.key==="escape"||X.key==="return"||X.key===" "||X.ctrl&&(X.key==="c"||X.key==="d")){X.preventDefault(),G(void 0,{display:"skip"});return}if(X.key==="up"||X.ctrl&&X.key==="p")X.preventDefault(),T.current?.scrollBy(-d);if(X.key==="down"||X.ctrl&&X.key==="n")X.preventDefault(),T.current?.scrollBy(d)},J[1]=G,J[2]=A;else A=J[2];let h=A,w,L;if(J[3]!==z||J[4]!==Y)w=()=>{let q=g();return async function(){try{let O=await MJ(z),M=await a({question:Y,cacheSafeParams:O});if(!q.signal.aborted)if(M.response)e(M.response);else y("No response received")}catch(O){let M=O;if(!q.signal.aborted)y(f(M)||"Failed to get response")}}(),()=>{q.abort()}},L=[Y,z],J[3]=z,J[4]=Y,J[5]=w,J[6]=L;else w=J[5],L=J[6];N.useEffect(w,L);let D=Math.max(5,VJ-wJ-LJ),B;if(J[7]===Symbol.for("react.memo_cache_sentinel"))B=H(b,{color:"warning",bold:!0,children:["/btw"," "]}),J[7]=B;else B=J[7];let Q;if(J[8]!==Y)Q=H(W,{children:[B,F(b,{dimColor:!0,children:Y})]}),J[8]=Y,J[9]=Q;else Q=J[9];let U;if(J[10]!==K||J[11]!==P||J[12]!==Z)U=F(x,{ref:T,flexDirection:"column",flexGrow:1,children:K?F(b,{color:"error",children:K}):Z?F(m,{children:Z}):H(W,{children:[F($,{frame:P,messageColor:"warning"}),F(b,{color:"warning",children:"Answering..."})]})}),J[10]=K,J[11]=P,J[12]=Z,J[13]=U;else U=J[13];let k;if(J[14]!==D||J[15]!==U)k=F(W,{marginTop:1,marginLeft:2,maxHeight:D,children:U}),J[14]=D,J[15]=U,J[16]=k;else k=J[16];let I;if(J[17]!==K||J[18]!==Z)I=(Z||K)&&F(W,{marginTop:1,children:H(b,{dimColor:!0,children:[j,"/",p," to scroll · Space, Enter, or Escape to dismiss"]})}),J[17]=K,J[18]=Z,J[19]=I;else I=J[19];let E;if(J[20]!==h||J[21]!==Q||J[22]!==k||J[23]!==I)E=H(W,{flexDirection:"column",paddingLeft:2,marginTop:1,tabIndex:0,autoFocus:!0,onKeyDown:h,children:[Q,k,I]}),J[20]=h,J[21]=Q,J[22]=k,J[23]=I,J[24]=E;else E=J[24];return E}function EJ(V){return V+1}function qJ(V){let J=V.at(-1);if(J?.type==="assistant"&&J.message.stop_reason===null)return V.slice(0,-1);return V}async function MJ(V){let J=o(qJ(V.messages)),Y=c();if(Y)return{systemPrompt:Y.systemPrompt,userContext:Y.userContext,systemContext:Y.systemContext,toolUseContext:V,forkContextMessages:J};let[z,G,Z]=await Promise.all([r(V.options.tools,V.options.mainLoopModel,[],V.options.mcpClients),t(),s()]);return{systemPrompt:u(z),userContext:G,systemContext:Z,toolUseContext:V,forkContextMessages:J}}async function aJ(V,J,Y){let z=Y?.trim();if(!z)return V("Usage: /btw <your question>",{display:"system"}),null;return C((G)=>({...G,btwUseCount:G.btwUseCount+1})),F(BJ,{question:z,context:J,onDone:V})}var n,N,wJ=5,LJ=6,d=3;var PJ=XJ(()=>{KJ();HJ();bJ();ZJ();TJ();kJ();DJ();QJ();vJ();NJ();UJ();FJ();YJ();WJ();hJ();AJ();IJ();_();n=R(GJ(),1),N=R(zJ(),1)});PJ();export{aJ as call};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import{OY as p,PY as f,QY as a,RY as S}from"./cli-1.1.24-x8cd4qb4.mjs";import{Ffa as d,bga as C}from"./cli-1.1.24-pe23qamd.mjs";import"./cli-1.1.24-bph6jjd7.mjs";import"./cli-1.1.24-f0pc1fm3.mjs";import"./cli-1.1.24-7ga8r482.mjs";import"./cli-1.1.24-gb39akdj.mjs";import"./cli-1.1.24-zjc9nfba.mjs";import{rka as m,ska as y,tka as b}from"./cli-1.1.24-n7r6kv9g.mjs";import"./cli-1.1.24-7ae9t2qz.mjs";import"./cli-1.1.24-prprq6xe.mjs";import"./cli-1.1.24-zey4mks2.mjs";import"./cli-1.1.24-ctw3hzrp.mjs";import"./cli-1.1.24-eh4c00hd.mjs";import"./cli-1.1.24-8s7nf1y6.mjs";import"./cli-1.1.24-bnm1yphs.mjs";import"./cli-1.1.24-yz5bzn1k.mjs";import"./cli-1.1.24-d371v1bp.mjs";import{_ta as g}from"./cli-1.1.24-hty94kzp.mjs";function R(t){let o=2166136261;for(let s=0;s<t.length;s++)o^=t.charCodeAt(s),o=Math.imul(o,16777619);return o>>>0}function r(t,o){return t[R(o)%t.length]}function M(t){return t.charAt(0).toUpperCase()+t.slice(1)}function O(){let t=f(),{bones:o}=p(`${t}:buddy`),s=r($,`${t}:prefix`),n=r(A,`${t}:suffix`),i=r(w,`${t}:personality`);return{name:`${s}${n}`,personality:`${i}.`,hatchedAt:Date.now()}}function l(t,o,s=!1){t.setAppState((n)=>({...n,companionReaction:o,companionPetAt:s?Date.now():n.companionPetAt}))}function c(t){t(`Usage: /buddy [status|mute|unmute]
|
|
2
|
+
|
|
3
|
+
Run /buddy with no args to hatch your companion the first time, then pet it on later runs.`,{display:"system"})}async function X(t,o,s){let n=s?.trim().toLowerCase()??"";if(m.includes(n)||n===""){let e=a();if(n!==""||e){if(n!=="")return c(t),null}}if(m.includes(n))return c(t),null;if(y.includes(n)||n==="status"){let e=a();if(!e)return t("No buddy hatched yet. Run /buddy to hatch one.",{display:"system"}),null;return t(`${e.name} is your ${M(e.rarity)} ${e.species}. ${e.personality}`,{display:"system"}),null}if(n==="mute"||n==="unmute"){let e=n==="mute";if(d((u)=>({...u,companionMuted:e})),e)l(o,void 0);return t(`Buddy ${e?"muted":"unmuted"}.`,{display:"system"}),null}if(n!=="")return c(t),null;let i=a();if(!i){let e=O();return d((u)=>({...u,companion:e,companionMuted:!1})),i={...p(`${f()}:buddy`).bones,...e},l(o,`${i.name} the ${i.species} has hatched.`,!0),t(`${i.name} the ${i.species} is now your buddy. Run /buddy again to pet them.`,{display:"system"}),null}let h=`${i.name} ${r(E,`${Date.now()}:${i.name}`)}`;return l(o,h,!0),t(void 0,{display:"skip"}),null}var $,A,w,E;var L=g(()=>{C();S();b();$=["Byte","Echo","Glint","Miso","Nova","Pixel","Rune","Static","Vector","Whisk"],A=["bean","bit","bud","dot","ling","loop","moss","patch","puff","spark"],w=["Curious and quietly encouraging","A patient little watcher with strong debugging instincts","Playful, observant, and suspicious of flaky tests","Calm under pressure and fond of clean diffs","A tiny terminal gremlin who likes successful builds"],E=["leans into the headpat","does a proud little bounce","emits a content beep","looks delighted","wiggles happily"]});L();export{X as call};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import{v3 as h,z3 as zz}from"./cli-1.1.24-hbvsy3cq.mjs";import"./cli-1.1.24-32h2wd2e.mjs";import{K7 as e,k7 as m}from"./cli-1.1.24-dw6eynz7.mjs";import"./cli-1.1.24-3n6e2e3w.mjs";import"./cli-1.1.24-6ptbgma9.mjs";import"./cli-1.1.24-ez9nx0pe.mjs";import"./cli-1.1.24-hbp5ttza.mjs";import{bha as y,jha as s,mha as v,pha as r}from"./cli-1.1.24-pe23qamd.mjs";import"./cli-1.1.24-bph6jjd7.mjs";import"./cli-1.1.24-f0pc1fm3.mjs";import"./cli-1.1.24-7ga8r482.mjs";import"./cli-1.1.24-gb39akdj.mjs";import"./cli-1.1.24-zjc9nfba.mjs";import"./cli-1.1.24-n7r6kv9g.mjs";import"./cli-1.1.24-7ae9t2qz.mjs";import"./cli-1.1.24-prprq6xe.mjs";import{Hla as k,Kla as o}from"./cli-1.1.24-zey4mks2.mjs";import"./cli-1.1.24-ctw3hzrp.mjs";import"./cli-1.1.24-eh4c00hd.mjs";import"./cli-1.1.24-8s7nf1y6.mjs";import{dsa as a,eoa as b}from"./cli-1.1.24-bnm1yphs.mjs";import"./cli-1.1.24-yz5bzn1k.mjs";import"./cli-1.1.24-d371v1bp.mjs";import"./cli-1.1.24-zc49jxpp.mjs";import"./cli-1.1.24-pgkt8y4z.mjs";import"./cli-1.1.24-bhe5cv5z.mjs";import{_ta as n}from"./cli-1.1.24-hty94kzp.mjs";function Nz(J){if(!J)return"unknown";return J.replace(/-\d{4,}$/,"").replace(/-latest$/,"").replace(/-preview$/,"")}function Y(J,Q){return Q.split(".").reduce((X,O)=>X!=null?X[O]:void 0,J)}async function R(J,Q,X,O){let q=Date.now(),V;try{V=await fetch(J,{method:"POST",headers:Q,body:JSON.stringify(X)})}catch(B){return{label:O,status:0,elapsed:Date.now()-q,headers:{},usage:null,responseId:null,error:B.message}}let A=Date.now()-q,U={};if(V.headers.forEach((B,w)=>{U[w]=B}),!V.ok){let B=await V.text().catch(()=>"");return{label:O,status:V.status,elapsed:A,headers:U,usage:null,responseId:null,error:B}}let L=await V.text(),$=null,T=null,_=J.endsWith("/responses");for(let B of L.split(`
|
|
2
|
+
|
|
3
|
+
`)){let w=B.split(`
|
|
4
|
+
`).map((x)=>x.trim()).filter(Boolean);if(_){let x=w.find((z)=>z.startsWith("event: ")),j=w.filter((z)=>z.startsWith("data: "));if(!x||!j.length)continue;let C=x.slice(7).trim();if(C==="response.completed"||C==="response.incomplete")try{let z=JSON.parse(j.map((W)=>W.slice(6)).join(`
|
|
5
|
+
`));$=z?.response?.usage??null,T=z?.response?.id??null}catch{}}else for(let x of w){if(!x.startsWith("data: "))continue;let j=x.slice(6).trim();if(j==="[DONE]")continue;try{let C=JSON.parse(j);if(C.usage)$=C.usage,T=C.id??null}catch{}}}return{label:O,status:V.status,elapsed:A,headers:U,usage:$,responseId:T,error:null}}function S(J){let Q=[`--- ${J.label} ---`];if(J.error)return Q.push(` ERROR (HTTP ${J.status}): ${J.error.slice(0,200)}`),Q.join(`
|
|
6
|
+
`);if(Q.push(` HTTP ${J.status} — ${J.elapsed}ms`),J.responseId)Q.push(` response.id: ${J.responseId}`);if(J.usage)Q.push(" Usage:"),Q.push(` ${JSON.stringify(J.usage,null,2).replace(/\n/g,`
|
|
7
|
+
`)}`);else Q.push(" Usage: null");for(let X of["openai-processing-ms","x-ratelimit-remaining","x-ratelimit-limit","x-ms-region","x-github-request-id","x-request-id"])if(J.headers[X])Q.push(` ${X}: ${J.headers[X]}`);return Q.join(`
|
|
8
|
+
`)}var Jz,K,M='Say "hello" and nothing else.',g=3000,jz=async(J)=>{let Q=(J??"").trim().split(/\s+/).filter(Boolean),X=Q.includes("--no-key"),q=(Q.find((N)=>!N.startsWith("--"))||void 0)??m(),V=y({model:q}),A=v(),U=A?.transport==="github_copilot";if(U)h();let L=A?.apiKey??A?.extras?.githubToken??"";if(!L)return{type:"text",value:`No API key found. Make sure you are in an active OpenAI-compatible or GitHub Copilot session.
|
|
9
|
+
For GitHub Copilot: run /provider and choose GitHub Copilot.
|
|
10
|
+
For OpenAI-compatible: configure a profile via /provider.`};let $=V.transport==="codex_responses",T=$?"/responses":"/chat/completions",_=`${V.baseUrl}${T}`,B=Nz(V.resolvedModel),w=`${b()}:${B}`,x={"Content-Type":"application/json",Authorization:`Bearer ${L}`,originator:"claudin"};if(U)Object.assign(x,Jz);let j;if($)j={model:V.resolvedModel,instructions:K,input:[{type:"message",role:"user",content:[{type:"input_text",text:M}]}],stream:!0,...X?{}:{store:!1,prompt_cache_key:w}};else j={model:V.resolvedModel,messages:[{role:"system",content:K},{role:"user",content:M}],stream:!0,stream_options:{include_usage:!0},max_tokens:20,...X?{}:{store:!1,prompt_cache_key:w}};let C=[`[cache-probe] Starting cache probe${X?" (--no-key: cache params OMITTED)":""}`,` model: ${V.resolvedModel} (family: ${B})`,` transport: ${V.transport}`,` endpoint: ${_}`,` prompt_cache_key: ${X?"NOT SENT":w}`,` store: ${X?"NOT SENT":"false"}`,` system prompt: ~${Math.round(K.length/4)} tokens`,` delay between calls: ${g}ms`].join(`
|
|
11
|
+
`);k(C);let z=await R(_,x,j,"CALL 1 — Cold (no cache)");if(k(`[cache-probe]
|
|
12
|
+
${S(z)}`),z.error)return{type:"text",value:`Cache probe failed on first call: HTTP ${z.status}
|
|
13
|
+
${z.error.slice(0,300)}
|
|
14
|
+
|
|
15
|
+
Full details in debug log.`};await new Promise((N)=>setTimeout(N,g));let W=await R(_,x,j,"CALL 2 — Warm (cache expected)");k(`[cache-probe]
|
|
16
|
+
${S(W)}`);let c=["input_tokens","output_tokens","total_tokens","prompt_tokens","completion_tokens","input_tokens_details.cached_tokens","prompt_tokens_details.cached_tokens","output_tokens_details.reasoning_tokens"],Z=["[cache-probe] COMPARISON"];Z.push(` ${"Field".padEnd(42)} ${"Call 1".padStart(8)} ${"Call 2".padStart(8)} ${"Delta".padStart(8)}`),Z.push(` ${"-".repeat(72)}`);for(let N of c){let H=Y(z.usage,N),I=Y(W.usage,N);if(H===void 0&&I===void 0)continue;let i=typeof H==="number"&&typeof I==="number"?I-H:"";Z.push(` ${N.padEnd(42)} ${String(H??"-").padStart(8)} ${String(I??"-").padStart(8)} ${String(i).padStart(8)}`)}Z.push(""),Z.push(` Latency: ${z.elapsed}ms → ${W.elapsed}ms (${W.elapsed-z.elapsed>0?"+":""}${W.elapsed-z.elapsed}ms)`);for(let N of["openai-processing-ms","x-ms-region","x-ratelimit-remaining"]){let H=z.headers[N],I=W.headers[N];if(H||I)Z.push(` ${N}: ${H??"-"} → ${I??"-"}`)}let D=Y(W.usage,"input_tokens_details.cached_tokens")??Y(W.usage,"prompt_tokens_details.cached_tokens")??0,F=z.usage?.input_tokens??z.usage?.prompt_tokens??0,P=W.usage?.input_tokens??W.usage?.prompt_tokens??0,G;if(D>0){let N=P>0?Math.round(D/P*100):"?";G=`CACHE HIT: ${D} cached tokens (${N}% of input)`}else if(F===0&&P===0)G="INCONCLUSIVE: Server returns 0 input_tokens — cannot measure";else if(W.elapsed<z.elapsed*0.6&&F>100)G=`POSSIBLE SILENT CACHING: Call 2 was ${Math.round((1-W.elapsed/z.elapsed)*100)}% faster but no cached_tokens reported`;else G="NO CACHE DETECTED";Z.push(`
|
|
17
|
+
Verdict: ${G}`);function u(N){return{input_tokens:N?.input_tokens??0,output_tokens:N?.output_tokens??0,cache_creation_input_tokens:0,cache_read_input_tokens:0}}function p(N){return{input_tokens:N?.prompt_tokens??0,output_tokens:N?.completion_tokens??0,cache_creation_input_tokens:0,cache_read_input_tokens:N?.prompt_tokens_details?.cached_tokens??0}}let f=$?u:p,d=f(z.usage),E=f(W.usage);if(Z.push(""),Z.push(` --- What main's shim reports (${$?"codexShim.makeUsage":"openaiShim.convertChunkUsage"}) ---`),Z.push(` Call 1: cache_read_input_tokens=${d.cache_read_input_tokens}`),Z.push(` Call 2: cache_read_input_tokens=${E.cache_read_input_tokens}`),$&&D>0)Z.push(` BUG: Server returned ${D} cached tokens but main's makeUsage() drops it → reports 0`);else if(!$&&E.cache_read_input_tokens>0)Z.push(" OK: Chat Completions path on main correctly reads cached_tokens");k(Z.join(`
|
|
18
|
+
`));let t=X?" (NO cache key sent)":"",l=$?"codexShim.makeUsage()":"openaiShim.convertChunkUsage()";return{type:"text",value:[`Cache Probe — ${V.resolvedModel} via ${$?"Responses API":"Chat Completions"}${t}`,"",`Call 1: ${z.elapsed}ms, input=${F}, cached=${Y(z.usage,"input_tokens_details.cached_tokens")??Y(z.usage,"prompt_tokens_details.cached_tokens")??0}`,`Call 2: ${W.elapsed}ms, input=${P}, cached=${D}`,"",G,"",`What main's ${l} reports:`,` Call 2 cache_read_input_tokens = ${E.cache_read_input_tokens}${$&&D>0?" ← BUG: server sent "+D+" but main drops it":""}`,"","Full details written to debug log."].join(`
|
|
19
|
+
`)}};var Qz=n(()=>{a();r();s();o();zz();e();Jz={"User-Agent":"GitHubCopilotChat/0.26.7","Editor-Version":"vscode/1.99.3","Editor-Plugin-Version":"copilot-chat/0.26.7","Copilot-Integration-Id":"vscode-chat"},K=["You are a coding assistant. Answer concisely.","CONTEXT: User is working on a TypeScript project with Bun runtime.",...Array.from({length:80},(J,Q)=>`Rule ${Q+1}: Follow best practices for TypeScript including strict typing, error handling, testing, and clean code. Prefer explicit types over any. Use const assertions. Await all async operations.`)].join(`
|
|
20
|
+
|
|
21
|
+
`)});Qz();export{jz as call};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import{D3 as L,E3 as P,F3 as $,J3 as Q,K3 as U,L3 as V,M3 as j}from"./cli-1.1.24-bd6f0h85.mjs";import{_ta as Z}from"./cli-1.1.24-hty94kzp.mjs";function w(k,D){let G=new Date(k.timestamp).toISOString(),B=`${G.slice(0,10)} ${G.slice(11,19)}`,I=L(k.metrics);return` #${String(D+1).padStart(3)} ${B} ${k.label.padEnd(28).slice(0,28)} ${I}`}function K(k,D){return`${k.padEnd(18)}${P(D)}`}var v=20,O=async()=>{let k=V(),D=U(),G=Q();if(k.length===0)return{type:"text",value:`Cache stats
|
|
2
|
+
No API requests yet this session.
|
|
3
|
+
Start a turn and re-run /cache-stats to see results.`};let B=k.slice(-v),I=k.length-B.length,q=["Cache stats",""];q.push(K("Current turn:",G)),q.push(K("Session total:",D)),q.push(""),q.push(`Recent requests (${B.length}${I>0?` of ${k.length}, ${I} older omitted`:""}):`),q.push(" # time model cache");for(let[J,Y]of B.entries())q.push(w(Y,k.length-B.length+J));if(B.some((J)=>!J.metrics.supported))q.push(""),q.push(" N/A rows: provider API does not expose cache usage (GitHub Copilot, Ollama)."),q.push(" The request still ran normally — only the metric is unavailable.");return{type:"text",value:q.join(`
|
|
4
|
+
`)}};var A=Z(()=>{j();$()});A();export{O as call};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{mi as a,ni as b}from"./cli-1.1.24-0zt6ghdg.mjs";import"./cli-1.1.24-9tw7bj9k.mjs";import"./cli-1.1.24-wmzctccq.mjs";import"./cli-1.1.24-2qkkzsk3.mjs";import"./cli-1.1.24-vandpwa9.mjs";import"./cli-1.1.24-tvhfdndb.mjs";import"./cli-1.1.24-64d8tfjb.mjs";import"./cli-1.1.24-5vw5z579.mjs";import"./cli-1.1.24-wygwske9.mjs";import"./cli-1.1.24-sm5pzkcb.mjs";import"./cli-1.1.24-1m0md9q7.mjs";import"./cli-1.1.24-wr42vnqf.mjs";import"./cli-1.1.24-3n53gv32.mjs";import"./cli-1.1.24-mwva78xt.mjs";import"./cli-1.1.24-znb9n8xc.mjs";import"./cli-1.1.24-wjy2ctev.mjs";import"./cli-1.1.24-c1c7arb3.mjs";import"./cli-1.1.24-9jq4gf5s.mjs";import"./cli-1.1.24-xyb7vhk3.mjs";import"./cli-1.1.24-tbzjj2e8.mjs";import"./cli-1.1.24-zqsb8jf1.mjs";import"./cli-1.1.24-4t3rdp3k.mjs";import"./cli-1.1.24-x8cd4qb4.mjs";import"./cli-1.1.24-4p3bjzm5.mjs";import"./cli-1.1.24-fwb0d06k.mjs";import"./cli-1.1.24-vf59rwy3.mjs";import"./cli-1.1.24-jm2wjmkx.mjs";import"./cli-1.1.24-ftgtm0ys.mjs";import"./cli-1.1.24-190psky8.mjs";import"./cli-1.1.24-yzfk4k7c.mjs";import"./cli-1.1.24-hbvsy3cq.mjs";import"./cli-1.1.24-bd6f0h85.mjs";import"./cli-1.1.24-pt8vrhq3.mjs";import"./cli-1.1.24-2d5h000x.mjs";import"./cli-1.1.24-a6q6r9em.mjs";import"./cli-1.1.24-yp46sbt0.mjs";import"./cli-1.1.24-9dnr05fm.mjs";import"./cli-1.1.24-ys3jea4v.mjs";import"./cli-1.1.24-c80wbwvr.mjs";import"./cli-1.1.24-5pkkmh85.mjs";import"./cli-1.1.24-8zb03vbp.mjs";import"./cli-1.1.24-32h2wd2e.mjs";import"./cli-1.1.24-dw6eynz7.mjs";import"./cli-1.1.24-3n6e2e3w.mjs";import"./cli-1.1.24-6ptbgma9.mjs";import"./cli-1.1.24-ez9nx0pe.mjs";import"./cli-1.1.24-nsggarp4.mjs";import"./cli-1.1.24-hbp5ttza.mjs";import"./cli-1.1.24-7ymj1nkq.mjs";import"./cli-1.1.24-pe23qamd.mjs";import"./cli-1.1.24-bph6jjd7.mjs";import"./cli-1.1.24-f0pc1fm3.mjs";import"./cli-1.1.24-7ga8r482.mjs";import"./cli-1.1.24-gb39akdj.mjs";import"./cli-1.1.24-zjc9nfba.mjs";import"./cli-1.1.24-n7r6kv9g.mjs";import"./cli-1.1.24-7ae9t2qz.mjs";import"./cli-1.1.24-prprq6xe.mjs";import"./cli-1.1.24-zey4mks2.mjs";import"./cli-1.1.24-ctw3hzrp.mjs";import"./cli-1.1.24-eh4c00hd.mjs";import"./cli-1.1.24-8s7nf1y6.mjs";import"./cli-1.1.24-bnm1yphs.mjs";import"./cli-1.1.24-yz5bzn1k.mjs";import"./cli-1.1.24-d371v1bp.mjs";import"./cli-1.1.24-zc49jxpp.mjs";import"./cli-1.1.24-pgkt8y4z.mjs";import"./cli-1.1.24-bhe5cv5z.mjs";import"./cli-1.1.24-hty94kzp.mjs";b();export{a as clearSessionCaches};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import{Fm as M,GD as Z,HD as Bz,KU as Kz,Km as s,RL as j,SL as Ez,Wk as F,Xk as r,Zl as c,an as W,bn as e,gn as u,ln as Uz,pP as n,pp as v,qp as Vz,rP as Xz,sP as p,sm as Qz,uP as l,vP as Yz,xU as P,yu as x,zu as zz}from"./cli-1.1.24-2qkkzsk3.mjs";import"./cli-1.1.24-vandpwa9.mjs";import"./cli-1.1.24-tvhfdndb.mjs";import"./cli-1.1.24-64d8tfjb.mjs";import"./cli-1.1.24-5vw5z579.mjs";import"./cli-1.1.24-wygwske9.mjs";import"./cli-1.1.24-sm5pzkcb.mjs";import"./cli-1.1.24-1m0md9q7.mjs";import"./cli-1.1.24-wr42vnqf.mjs";import"./cli-1.1.24-3n53gv32.mjs";import"./cli-1.1.24-mwva78xt.mjs";import"./cli-1.1.24-znb9n8xc.mjs";import"./cli-1.1.24-wjy2ctev.mjs";import"./cli-1.1.24-c1c7arb3.mjs";import"./cli-1.1.24-9jq4gf5s.mjs";import"./cli-1.1.24-xyb7vhk3.mjs";import"./cli-1.1.24-tbzjj2e8.mjs";import"./cli-1.1.24-zqsb8jf1.mjs";import"./cli-1.1.24-4t3rdp3k.mjs";import"./cli-1.1.24-x8cd4qb4.mjs";import"./cli-1.1.24-4p3bjzm5.mjs";import"./cli-1.1.24-fwb0d06k.mjs";import"./cli-1.1.24-vf59rwy3.mjs";import"./cli-1.1.24-jm2wjmkx.mjs";import"./cli-1.1.24-ftgtm0ys.mjs";import"./cli-1.1.24-190psky8.mjs";import"./cli-1.1.24-yzfk4k7c.mjs";import"./cli-1.1.24-hbvsy3cq.mjs";import"./cli-1.1.24-bd6f0h85.mjs";import"./cli-1.1.24-pt8vrhq3.mjs";import"./cli-1.1.24-2d5h000x.mjs";import"./cli-1.1.24-a6q6r9em.mjs";import"./cli-1.1.24-yp46sbt0.mjs";import"./cli-1.1.24-9dnr05fm.mjs";import"./cli-1.1.24-ys3jea4v.mjs";import"./cli-1.1.24-c80wbwvr.mjs";import"./cli-1.1.24-5pkkmh85.mjs";import"./cli-1.1.24-8zb03vbp.mjs";import"./cli-1.1.24-32h2wd2e.mjs";import"./cli-1.1.24-dw6eynz7.mjs";import"./cli-1.1.24-3n6e2e3w.mjs";import{P9 as E,Q9 as Lz}from"./cli-1.1.24-6ptbgma9.mjs";import"./cli-1.1.24-ez9nx0pe.mjs";import"./cli-1.1.24-nsggarp4.mjs";import"./cli-1.1.24-hbp5ttza.mjs";import"./cli-1.1.24-7ymj1nkq.mjs";import{Bha as g,Jha as Nz,U$ as q,Wea as R,Zea as t,paa as o}from"./cli-1.1.24-pe23qamd.mjs";import"./cli-1.1.24-bph6jjd7.mjs";import"./cli-1.1.24-f0pc1fm3.mjs";import"./cli-1.1.24-7ga8r482.mjs";import"./cli-1.1.24-gb39akdj.mjs";import{dja as y,gja as d}from"./cli-1.1.24-zjc9nfba.mjs";import{Qja as Y,Sja as f}from"./cli-1.1.24-n7r6kv9g.mjs";import"./cli-1.1.24-7ae9t2qz.mjs";import"./cli-1.1.24-prprq6xe.mjs";import"./cli-1.1.24-zey4mks2.mjs";import"./cli-1.1.24-ctw3hzrp.mjs";import"./cli-1.1.24-eh4c00hd.mjs";import"./cli-1.1.24-8s7nf1y6.mjs";import{Hra as m,Ira as w,Sqa as C,dsa as O,eoa as G,hoa as H,joa as T,koa as b,moa as A,noa as I}from"./cli-1.1.24-bnm1yphs.mjs";import"./cli-1.1.24-yz5bzn1k.mjs";import"./cli-1.1.24-d371v1bp.mjs";import"./cli-1.1.24-zc49jxpp.mjs";import"./cli-1.1.24-pgkt8y4z.mjs";import"./cli-1.1.24-bhe5cv5z.mjs";import{_ta as $}from"./cli-1.1.24-hty94kzp.mjs";function h(){return k}function S(J){let B=Y();Z(J);let z=Y();try{process.chdir(z)}catch(N){throw Z(B),N}return H(G(),T()??y(b())),A(z),I(z),k=B,Jz(),{previousCwd:B,newCwd:z}}function Jz(){W(),P(),M.cache.clear?.(),F(),j.cache?.clear?.(),R.cache?.clear?.(),q.cache?.clear?.(),x()}var k=null;var D=$(()=>{s();e();r();Kz();Ez();t();O();zz();d();f();Bz();o()});import{dirname as Zz}from"node:path";function _z(J){let B=J.trim();if(!B)return{kind:"empty"};if(B==="-")return{kind:"previous"};return{kind:"path",path:B}}function $z(J,B,z){let N=[B?`${J.previousCwd} kept accessible for this session`:null,"transcript stays under the original project",z?"cancelled the pending /loop wakeup":null,"/cd - to return"].filter((V)=>V!==null);return`Moved this session to ${E.bold(J.newCwd)}
|
|
2
|
+
${E.dim(N.join(" · "))}`}function L(J){return{type:"text",value:J}}async function uz(J,B,z=Gz){let N=_z(J);if(N.kind==="empty")return L(`Usage: ${E.bold("/cd <path>")} — moves this session to another directory.
|
|
3
|
+
${E.dim("/cd - returns to the previous one.")}`);if(z.currentWorktreeSession())return L(`This session is inside a worktree. Use ${E.bold("ExitWorktree")} to leave it first, then ${E.bold("/cd")}.`);let V;if(N.kind==="previous"){let U=z.previousDir();if(!U)return L("This session has not moved yet, so there is no previous directory.");V=U}else V=N.path;let K=await z.resolveDirectory(V);if(K.resultType!=="success"){if(K.resultType==="notADirectory")return L(`${E.bold(K.directoryPath)} is not a directory. Did you mean ${E.bold(Zz(K.absolutePath))}?`);return L(l(K))}if(K.absolutePath===z.currentCwd())return L(`Already in ${E.bold(K.absolutePath)}.`);let a=z.hasPendingWakeup(),Q;try{Q=z.reroot(K.absolutePath)}catch(U){let X=U instanceof Error?U.message:"Unknown error";return g(Error(`/cd failed to move to ${K.absolutePath}: ${X}`)),L(`Could not move to ${E.bold(K.absolutePath)}: ${X}`)}let _=!n(Q.previousCwd,Q.newCwd);if(_){let U=u(B.getAppState().toolPermissionContext,{type:"addDirectories",directories:[Q.previousCwd],destination:"session"});B.setAppState((i)=>({...i,toolPermissionContext:U}));let X=m();if(!X.includes(Q.previousCwd))w([...X,Q.previousCwd])}return z.refreshSandbox(),L($z(Q,_,a))}var Gz;var Hz=$(()=>{Lz();Yz();Uz();Xz();O();Vz();D();f();Nz();Qz();Gz={currentWorktreeSession:c,resolveDirectory:p,reroot:S,previousDir:h,hasPendingWakeup:()=>C()!==null,currentCwd:Y,refreshSandbox:()=>v.refreshConfig()}});Hz();export{_z as parseCdTarget,$z as formatCdResult,uz as call};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{Bha as X,Cba as k,Hba as N,Jha as H,dda as x,gda as A,qaa as V,raa as W,saa as J}from"./cli-1.1.24-pe23qamd.mjs";import"./cli-1.1.24-bph6jjd7.mjs";import"./cli-1.1.24-f0pc1fm3.mjs";import"./cli-1.1.24-7ga8r482.mjs";import"./cli-1.1.24-gb39akdj.mjs";import"./cli-1.1.24-zjc9nfba.mjs";import"./cli-1.1.24-n7r6kv9g.mjs";import"./cli-1.1.24-7ae9t2qz.mjs";import"./cli-1.1.24-prprq6xe.mjs";import"./cli-1.1.24-zey4mks2.mjs";import"./cli-1.1.24-ctw3hzrp.mjs";import{gma as b,mma as y}from"./cli-1.1.24-eh4c00hd.mjs";import"./cli-1.1.24-8s7nf1y6.mjs";import"./cli-1.1.24-bnm1yphs.mjs";import"./cli-1.1.24-yz5bzn1k.mjs";import"./cli-1.1.24-d371v1bp.mjs";import"./cli-1.1.24-hty94kzp.mjs";A();y();N();H();J();import{readdir as L,readFile as U,stat as Z}from"fs/promises";import{homedir as _}from"os";import{join as $}from"path";async function F(){let B=W();if(!V.includes(B))throw Error(`Unsupported platform: ${B} - Claude Desktop integration only works on macOS and WSL.`);if(B==="macos")return $(_(),"Library","Application Support","Claude","claude_desktop_config.json");let K=process.env.USERPROFILE?process.env.USERPROFILE.replace(/\\/g,"/"):null;if(K){let q=`/mnt/c${K.replace(/^[A-Z]:/,"")}/AppData/Roaming/Claude/claude_desktop_config.json`;try{return await Z(q),q}catch{}}try{try{let q=await L("/mnt/c/Users",{withFileTypes:!0});for(let z of q){if(z.name==="Public"||z.name==="Default"||z.name==="Default User"||z.name==="All Users")continue;let I=$("/mnt/c/Users",z.name,"AppData","Roaming","Claude","claude_desktop_config.json");try{return await Z(I),I}catch{}}}catch{}}catch(G){X(G)}throw Error("Could not find Claude Desktop config file in Windows. Make sure Claude Desktop is installed on Windows.")}async function v(){if(!V.includes(W()))throw Error("Unsupported platform - Claude Desktop integration only works on macOS and WSL.");try{let B=await F(),K;try{K=await U(B,{encoding:"utf8"})}catch(I){if(b(I)==="ENOENT")return{};throw I}let G=k(K);if(!G||typeof G!=="object")return{};let q=G.mcpServers;if(!q||typeof q!=="object")return{};let z={};for(let[I,Q]of Object.entries(q)){if(!Q||typeof Q!=="object")continue;let Y=x().safeParse(Q);if(Y.success)z[I]=Y.data}return z}catch(B){return X(B),{}}}export{v as readClaudeDesktopMcpServers,F as getClaudeDesktopConfigPath};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{AU as h,BU as i,CU as j,DU as k,EU as l,FU as m,GU as n,HU as o,IU as p,JU as q,KU as r,tU as a,uU as b,vU as c,wU as d,xU as e,yU as f,zU as g}from"./cli-1.1.24-2qkkzsk3.mjs";import"./cli-1.1.24-vandpwa9.mjs";import"./cli-1.1.24-tvhfdndb.mjs";import"./cli-1.1.24-64d8tfjb.mjs";import"./cli-1.1.24-5vw5z579.mjs";import"./cli-1.1.24-wygwske9.mjs";import"./cli-1.1.24-sm5pzkcb.mjs";import"./cli-1.1.24-1m0md9q7.mjs";import"./cli-1.1.24-wr42vnqf.mjs";import"./cli-1.1.24-3n53gv32.mjs";import"./cli-1.1.24-mwva78xt.mjs";import"./cli-1.1.24-znb9n8xc.mjs";import"./cli-1.1.24-wjy2ctev.mjs";import"./cli-1.1.24-c1c7arb3.mjs";import"./cli-1.1.24-9jq4gf5s.mjs";import"./cli-1.1.24-xyb7vhk3.mjs";import"./cli-1.1.24-tbzjj2e8.mjs";import"./cli-1.1.24-zqsb8jf1.mjs";import"./cli-1.1.24-4t3rdp3k.mjs";import"./cli-1.1.24-x8cd4qb4.mjs";import"./cli-1.1.24-4p3bjzm5.mjs";import"./cli-1.1.24-fwb0d06k.mjs";import"./cli-1.1.24-vf59rwy3.mjs";import"./cli-1.1.24-jm2wjmkx.mjs";import"./cli-1.1.24-ftgtm0ys.mjs";import"./cli-1.1.24-190psky8.mjs";import"./cli-1.1.24-yzfk4k7c.mjs";import"./cli-1.1.24-hbvsy3cq.mjs";import"./cli-1.1.24-bd6f0h85.mjs";import"./cli-1.1.24-pt8vrhq3.mjs";import"./cli-1.1.24-2d5h000x.mjs";import"./cli-1.1.24-a6q6r9em.mjs";import"./cli-1.1.24-yp46sbt0.mjs";import"./cli-1.1.24-9dnr05fm.mjs";import"./cli-1.1.24-ys3jea4v.mjs";import"./cli-1.1.24-c80wbwvr.mjs";import"./cli-1.1.24-5pkkmh85.mjs";import"./cli-1.1.24-8zb03vbp.mjs";import"./cli-1.1.24-32h2wd2e.mjs";import"./cli-1.1.24-dw6eynz7.mjs";import"./cli-1.1.24-3n6e2e3w.mjs";import"./cli-1.1.24-6ptbgma9.mjs";import"./cli-1.1.24-ez9nx0pe.mjs";import"./cli-1.1.24-nsggarp4.mjs";import"./cli-1.1.24-hbp5ttza.mjs";import"./cli-1.1.24-7ymj1nkq.mjs";import"./cli-1.1.24-pe23qamd.mjs";import"./cli-1.1.24-bph6jjd7.mjs";import"./cli-1.1.24-f0pc1fm3.mjs";import"./cli-1.1.24-7ga8r482.mjs";import"./cli-1.1.24-gb39akdj.mjs";import"./cli-1.1.24-zjc9nfba.mjs";import"./cli-1.1.24-n7r6kv9g.mjs";import"./cli-1.1.24-7ae9t2qz.mjs";import"./cli-1.1.24-prprq6xe.mjs";import"./cli-1.1.24-zey4mks2.mjs";import"./cli-1.1.24-ctw3hzrp.mjs";import"./cli-1.1.24-eh4c00hd.mjs";import"./cli-1.1.24-8s7nf1y6.mjs";import"./cli-1.1.24-bnm1yphs.mjs";import"./cli-1.1.24-yz5bzn1k.mjs";import"./cli-1.1.24-d371v1bp.mjs";import"./cli-1.1.24-zc49jxpp.mjs";import"./cli-1.1.24-pgkt8y4z.mjs";import"./cli-1.1.24-bhe5cv5z.mjs";import"./cli-1.1.24-hty94kzp.mjs";r();export{p as shouldShowClaudeMdExternalIncludesWarning,f as resetGetMemoryFilesCache,b as processMemoryFile,c as processMdRules,m as processConditionedMdRules,q as isMemoryFilePath,o as hasExternalClaudeMdIncludes,k as getMemoryFilesForNestedDirectory,d as getMemoryFiles,j as getManagedAndUserConditionalRules,g as getLargeMemoryFiles,n as getExternalClaudeMdIncludes,l as getConditionalRulesForCwdLevelDirectory,i as getClaudeMds,h as filterInjectedMemoryFiles,e as clearMemoryFileCaches,a as MAX_MEMORY_CHARACTER_COUNT};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{ki as b,li as h}from"./cli-1.1.24-gbya20sv.mjs";import"./cli-1.1.24-0zt6ghdg.mjs";import"./cli-1.1.24-9tw7bj9k.mjs";import"./cli-1.1.24-dt22ehz1.mjs";import"./cli-1.1.24-wmzctccq.mjs";import"./cli-1.1.24-2qkkzsk3.mjs";import"./cli-1.1.24-vandpwa9.mjs";import"./cli-1.1.24-tvhfdndb.mjs";import"./cli-1.1.24-64d8tfjb.mjs";import"./cli-1.1.24-5vw5z579.mjs";import"./cli-1.1.24-wygwske9.mjs";import"./cli-1.1.24-sm5pzkcb.mjs";import"./cli-1.1.24-1m0md9q7.mjs";import"./cli-1.1.24-wr42vnqf.mjs";import"./cli-1.1.24-3n53gv32.mjs";import"./cli-1.1.24-mwva78xt.mjs";import"./cli-1.1.24-znb9n8xc.mjs";import"./cli-1.1.24-wjy2ctev.mjs";import"./cli-1.1.24-c1c7arb3.mjs";import"./cli-1.1.24-9jq4gf5s.mjs";import"./cli-1.1.24-xyb7vhk3.mjs";import"./cli-1.1.24-tbzjj2e8.mjs";import"./cli-1.1.24-zqsb8jf1.mjs";import"./cli-1.1.24-4t3rdp3k.mjs";import"./cli-1.1.24-x8cd4qb4.mjs";import"./cli-1.1.24-4p3bjzm5.mjs";import"./cli-1.1.24-fwb0d06k.mjs";import"./cli-1.1.24-vf59rwy3.mjs";import"./cli-1.1.24-jm2wjmkx.mjs";import"./cli-1.1.24-ftgtm0ys.mjs";import"./cli-1.1.24-190psky8.mjs";import"./cli-1.1.24-yzfk4k7c.mjs";import"./cli-1.1.24-hbvsy3cq.mjs";import"./cli-1.1.24-bd6f0h85.mjs";import"./cli-1.1.24-pt8vrhq3.mjs";import"./cli-1.1.24-2d5h000x.mjs";import"./cli-1.1.24-a6q6r9em.mjs";import"./cli-1.1.24-yp46sbt0.mjs";import"./cli-1.1.24-9dnr05fm.mjs";import"./cli-1.1.24-ys3jea4v.mjs";import"./cli-1.1.24-c80wbwvr.mjs";import"./cli-1.1.24-5pkkmh85.mjs";import"./cli-1.1.24-8zb03vbp.mjs";import"./cli-1.1.24-32h2wd2e.mjs";import"./cli-1.1.24-dw6eynz7.mjs";import"./cli-1.1.24-3n6e2e3w.mjs";import"./cli-1.1.24-6ptbgma9.mjs";import"./cli-1.1.24-ez9nx0pe.mjs";import"./cli-1.1.24-nsggarp4.mjs";import"./cli-1.1.24-hbp5ttza.mjs";import"./cli-1.1.24-7ymj1nkq.mjs";import"./cli-1.1.24-pe23qamd.mjs";import"./cli-1.1.24-bph6jjd7.mjs";import"./cli-1.1.24-f0pc1fm3.mjs";import"./cli-1.1.24-7ga8r482.mjs";import"./cli-1.1.24-gb39akdj.mjs";import"./cli-1.1.24-zjc9nfba.mjs";import"./cli-1.1.24-n7r6kv9g.mjs";import"./cli-1.1.24-7ae9t2qz.mjs";import"./cli-1.1.24-prprq6xe.mjs";import"./cli-1.1.24-zey4mks2.mjs";import"./cli-1.1.24-ctw3hzrp.mjs";import"./cli-1.1.24-eh4c00hd.mjs";import"./cli-1.1.24-8s7nf1y6.mjs";import"./cli-1.1.24-bnm1yphs.mjs";import"./cli-1.1.24-yz5bzn1k.mjs";import"./cli-1.1.24-d371v1bp.mjs";import"./cli-1.1.24-zc49jxpp.mjs";import"./cli-1.1.24-pgkt8y4z.mjs";import"./cli-1.1.24-bhe5cv5z.mjs";import{_ta as g}from"./cli-1.1.24-hty94kzp.mjs";var u=async(p,f)=>{return await b(f),{type:"text",value:""}};var k=g(()=>{h()});k();export{u as call};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{$2 as c,Z2 as a,_2 as b}from"./cli-1.1.24-ftgtm0ys.mjs";import"./cli-1.1.24-hty94kzp.mjs";c();export{a as getClearTerminalSequence,b as clearTerminal};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{Wb as d}from"./cli-1.1.24-a33s2dcr.mjs";import{$T as X,Dv as zj,Ev as w,Fm as y,Fv as Bj,GD as I,GT as m,HD as Hj,HT as S,IT as A,JS as Qj,KU as Xj,Km as t,TT as c,Wk as $,Wz as C,Xk as n,Xz as D,Zl as P,_T as p,_l as R,aA as Gj,an as E,bL as f,bn as e,cu as h,dl as v,el as r,eu as qj,mU as Vj,nk as O,pk as o,sm as s,uv as k,vF as Jj,xU as F,xv as V}from"./cli-1.1.24-2qkkzsk3.mjs";import{kW as W,zW as jj}from"./cli-1.1.24-3n53gv32.mjs";import{SX as x,VX as Kj}from"./cli-1.1.24-tbzjj2e8.mjs";import{D7 as T,K7 as u}from"./cli-1.1.24-dw6eynz7.mjs";import{Qja as Z,Sja as i}from"./cli-1.1.24-n7r6kv9g.mjs";import{Hla as b,Kla as l}from"./cli-1.1.24-zey4mks2.mjs";import{dsa as g,eoa as U,hoa as _,moa as Y,rpa as M,tpa as N,zra as K}from"./cli-1.1.24-bnm1yphs.mjs";g();e();Gj();zj();r();o();import{dirname as Yj}from"path";Xj();Jj();Kj();i();l();qj();Qj();u();t();n();Hj();Vj();jj();Bj();s();function Zj(j){for(let q=j.length-1;q>=0;q--){let B=j[q];if(B?.type!=="assistant")continue;let z=B.message.content.find((J)=>J.type==="tool_use"&&J.name===v);if(!z||z.type!=="tool_use")continue;let G=z.input;if(G===null||typeof G!=="object")return[];let H=w().safeParse(G.todos);return H.success?H.data:[]}return[]}function aj(j,q){if(j.fileHistorySnapshots&&j.fileHistorySnapshots.length>0)h(j.fileHistorySnapshots,(B)=>{q((z)=>({...z,fileHistory:B}))});if(!W()&&j.messages&&j.messages.length>0){let B=Zj(j.messages);if(B.length>0){let z=U();q((G)=>({...G,todos:{...G.todos,[z]:B}}))}}}function $j(j){return}function Pj(j,q){if(!j&&!q)return;return{name:j??"",color:q==="default"?void 0:q}}function Rj(j,q,B){if(q)return{agentDefinition:q,agentType:void 0};if(!j)return K(void 0),{agentDefinition:void 0,agentType:void 0};let z=B.activeAgents.find((G)=>G.agentType===j);if(!z)return b(`Resumed session had agent "${j}" but it is no longer available. Using default behavior.`),K(void 0),{agentDefinition:void 0,agentType:void 0};if(K(z.agentType),!M()&&z.model&&z.model!=="inherit")N(T(z.model));return{agentDefinition:z,agentType:z.agentType}}async function yj(j,q,B,z){if(!j)return z;V.cache.clear?.();let G=await V(q),H=[...G.allAgents,...B];return{...G,allAgents:H,activeAgents:k(H)}}function Ej(j){let q=P();if(q){X(q);return}if(!j)return;try{process.chdir(j.worktreePath)}catch{X(null);return}I(j.worktreePath),Y(Z()),R(j),F(),E(),y.cache.clear?.(),$()}function gj(){let j=P();if(!j)return;R(null),F(),E(),y.cache.clear?.(),$();try{process.chdir(j.originalCwd)}catch{return}I(j.originalCwd),Y(Z())}async function lj(j,q,B){let z;if(z=B.modeApi?.matchSessionMode(j.mode),z)j.messages.push(f(z,"warning"));if(!q.forkSession){let Q=q.sessionIdOverride??j.sessionId;if(Q){if(_(O(Q),q.transcriptPath?Yj(q.transcriptPath):null),await d(),await S(),!C(Q))D(j.messages)}}else if(j.contentReplacements?.length)await m(j.contentReplacements);if(c(q.forkSession?{...j,worktreeSession:void 0}:j),!q.forkSession)Ej(j.worktreeSession),A();let{agentDefinition:G,agentType:H}=Rj(j.agentSetting,B.mainThreadAgentDefinition,B.agentDefinitions);p(B.modeApi?.isCoordinatorMode()?"coordinator":"normal");let J=q.includeAttribution?$j(j):void 0,L=Pj(j.agentName,j.agentColor);x(j.agentName);let a=await yj(!!z,B.currentCwd,B.cliAgents,B.agentDefinitions);return{messages:j.messages,fileHistorySnapshots:j.fileHistorySnapshots,contentReplacements:j.contentReplacements,agentName:j.agentName,agentColor:j.agentColor==="default"?void 0:j.agentColor,restoredAgentDef:G,initialState:{...B.initialState,...H&&{agent:H},...J&&{attribution:J},...L&&{standaloneAgentContext:L},agentDefinitions:a}}}
|
|
2
|
+
export{aj as ob,Pj as pb,Rj as qb,Ej as rb,gj as sb,lj as tb};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{UG as U,VG as A,cH as V,dH as E}from"./cli-1.1.24-2qkkzsk3.mjs";import{oX as W,wX as G}from"./cli-1.1.24-wjy2ctev.mjs";import{F1 as F,H1 as H,k2 as O}from"./cli-1.1.24-vf59rwy3.mjs";import{I4 as q,J4 as K,K4 as L}from"./cli-1.1.24-9dnr05fm.mjs";import{L4 as I}from"./cli-1.1.24-ys3jea4v.mjs";import{V8 as Q,t9 as p}from"./cli-1.1.24-dw6eynz7.mjs";import{Ffa as M,Ifa as N,bga as $}from"./cli-1.1.24-pe23qamd.mjs";import{Wta as Z,_ta as _}from"./cli-1.1.24-hty94kzp.mjs";function b({onDone:J}){let z=w.useRef(J);z.current=J;let X=w.useCallback(()=>{z.current("dismiss")},[]);w.useEffect(()=>{M((y)=>{if(y.remoteDialogSeen)return y;return{...y,remoteDialogSeen:!0}})},[]);let Y=w.useCallback((y)=>{z.current(y)},[]);return q(V,{title:"Remote Control",children:K(F,{flexDirection:"column",paddingX:2,paddingY:1,children:[K(F,{marginBottom:1,flexDirection:"column",children:[q(H,{children:"Remote Control lets you access this CLI session from the web (claude.ai/code) or the Claude app, so you can pick up where you left off on any device."}),q(H,{children:" "}),q(H,{children:"You can disconnect remote access anytime by running /remote-control again."})]}),q(F,{children:q(U,{options:[{label:"Enable Remote Control for this session",description:"Opens a secure connection to claude.ai.",value:"enable"},{label:"Never mind",description:"You can always enable it later with /remote-control.",value:"dismiss"}],onChange:Y,onCancel:X})})]})})}function d(){if(N().remoteDialogSeen)return!1;if(!W())return!1;if(!Q()?.accessToken)return!1;return!0}var w;var P=_(()=>{G();O();p();$();A();E();L();w=Z(I(),1)});
|
|
2
|
+
export{b as ac,d as bc,P as cc};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{oi as j,qi as l}from"./cli-1.1.24-9tw7bj9k.mjs";import{Ai as W,Gi as i}from"./cli-1.1.24-wmzctccq.mjs";import{Dz as V,Fz as S,KU as r,LU as R,MU as f,NU as F,OU as u,PU as t,Qx as U,Rx as m,Uv as _,XO as M,YQ as x,ZO as n,ax as B,bE as L,cE as h,fw as $,fx as p,gD as d,gR as s,gw as D,ix as N,jx as g,kD as E,lD as C,lk as Z,mk as P,pj as Y,qj as A,yP as b,yU as G,zP as o}from"./cli-1.1.24-2qkkzsk3.mjs";import{N_ as Q,T_ as k}from"./cli-1.1.24-7ymj1nkq.mjs";import{D$ as I,Zaa as X,_aa as v,w$ as O}from"./cli-1.1.24-pe23qamd.mjs";import{Gra as K,dsa as T,ura as J}from"./cli-1.1.24-bnm1yphs.mjs";import{$ta as w,_ta as y}from"./cli-1.1.24-hty94kzp.mjs";function Mq(H=new Set){let z=H.size>0;if(u.cache.clear?.(),F.cache.clear?.(),f.cache.clear?.(),Y.cache.clear?.(),W(),x(),!z)N();if(R(null),K(null),b(),_(),G("session_start"),V(),X.clear(),Z(),!z)B();if(Q(),M(),!z)U();J(H),O(),L(),$(),j(),E(),import("./utils-1.1.24-sr136rh9.mjs").then(({clearWebFetchCache:q})=>q()),import("./ToolSearchTool-1.1.24-v916xcsm.mjs").then(({clearToolSearchDescriptionCache:q})=>q()),import("./loadAgentsDir-1.1.24-k6dhs78a.mjs").then(({clearAgentDefinitionsCache:q})=>q()),import("./prompt-1.1.24-bk6dfj1e.mjs").then(({clearPromptCache:q})=>q())}var c=y(()=>{T();s();A();t();i();p();m();g();P();o();D();l();h();d();n();r();k();I();v();S();C()});
|
|
2
|
+
export{Mq as mi,c as ni};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import{Pg as $Z,Qg as uZ,Rg as fz}from"./cli-1.1.24-7ax9c4aj.mjs";import{Zh as HJ,_h as Bz}from"./cli-1.1.24-wshydefj.mjs";import{ii as GJ,ji as Hz}from"./cli-1.1.24-w828y1cd.mjs";import{$k as KX,$y as pQ,BS as g0,Bo as XQ,CS as oQ,Do as xZ,ES as eJ,Ek as SJ,FS as ZQ,Fk as IJ,GS as tQ,Gz as cQ,HS as sQ,Hy as DQ,Hz as UX,Iy as UQ,JS as OZ,Jy as $Q,KU as BQ,Ky as uQ,Mk as fJ,Mt as wJ,NB as e0,No as WQ,OB as gJ,Oy as MQ,PB as mJ,Py as EQ,QB as nJ,Qt as Uz,RB as _z,Ro as pz,WK as mQ,_k as mZ,az as jX,cB as IZ,dB as hZ,do as zQ,eB as TZ,eo as uz,fB as dJ,gB as gQ,hB as cJ,hz as dQ,iz as DX,lo as RQ,mo as wX,py as xQ,rS as lQ,sy as AX,tU as VQ,vS as iQ,vk as _Z,wS as aQ,wU as KQ,wk as TQ,yS as nZ,zS as rQ,zU as pZ}from"./cli-1.1.24-2qkkzsk3.mjs";import{MV as fQ,VV as PX}from"./cli-1.1.24-sm5pzkcb.mjs";import{SY as FZ,TY as qJ,lZ as YJ,pZ as Yz,qZ as DZ,rZ as OX}from"./cli-1.1.24-4p3bjzm5.mjs";import{E0 as c0,F1 as b,G1 as PQ,H1 as g,I1 as QX,J0 as vZ,YZ as WJ,ZZ as qz,g0 as u0,g1 as UZ,i1 as Qz,k2 as f0,y1 as hQ,z1 as NX}from"./cli-1.1.24-vf59rwy3.mjs";import{H4 as p0,I4 as B,J4 as $,K4 as F0}from"./cli-1.1.24-9dnr05fm.mjs";import{L4 as I0}from"./cli-1.1.24-ys3jea4v.mjs";import{h5 as VJ,i5 as BJ,j5 as Vz}from"./cli-1.1.24-32h2wd2e.mjs";import{Q8 as JQ,_8 as QQ,n8 as jQ,o8 as JX,t8 as JZ,t9 as $z,w8 as QZ}from"./cli-1.1.24-dw6eynz7.mjs";import{P9 as gZ,Q9 as LX}from"./cli-1.1.24-6ptbgma9.mjs";import{Ifa as PZ,Mca as FX,Wda as LZ,a$ as v0,b$ as zJ,bga as HQ,cea as XJ,qca as IQ}from"./cli-1.1.24-pe23qamd.mjs";import{Oha as jZ,Pha as TJ,Zha as ZZ,eia as Rz}from"./cli-1.1.24-bph6jjd7.mjs";import{Qja as RZ,Sja as xz,bka as KZ,gka as NZ,hka as wZ,tka as Dz}from"./cli-1.1.24-n7r6kv9g.mjs";import{Hla as m0,Kla as ZX}from"./cli-1.1.24-zey4mks2.mjs";import{Ama as GX,sma as SQ}from"./cli-1.1.24-8s7nf1y6.mjs";import{Ara as kQ,dsa as HX}from"./cli-1.1.24-bnm1yphs.mjs";import{Wta as w0,_ta as L0}from"./cli-1.1.24-hty94kzp.mjs";function MZ(){if($0!==null)clearTimeout($0),$0=null;bZ=Date.now();for(let J of BZ)J()}function zz(){if($0!==null)return;let J=Date.now()-bZ;if(J>=UZ){MZ();return}$0=setTimeout(MZ,UZ-J)}function lZ(){return EZ.useSyncExternalStore(s0.subscribe,s0.getSnapshot)}function RX(){return EZ.useSyncExternalStore(s0.subscribe,s0.getPresenceSnapshot)}var EZ,x0=null,BZ,$0=null,bZ=0,s0;var iZ=L0(()=>{Qz();EZ=w0(I0(),1),BZ=new Set;s0={update(J){let Z=x0;if(x0=J(Z),x0===Z)return;if(Z===null!==(x0===null))MZ();else zz()},clear(){s0.update(()=>null)},read(){return x0},subscribe(J){return BZ.add(J),()=>{BZ.delete(J)}},getSnapshot(){return x0},getPresenceSnapshot(){return x0!==null},resetForTesting(){if($0!==null)clearTimeout($0),$0=null;x0=null,bZ=0,BZ.clear()}}});function sZ(J){let Z=HZ.c(6),{children:Q}=J,[z,X]=K0.useState(null),[W,q]=K0.useState(null),V;if(Z[0]!==Q||Z[1]!==W)V=B(oZ.Provider,{value:W,children:Q}),Z[0]=Q,Z[1]=W,Z[2]=V;else V=Z[2];let Y;if(Z[3]!==z||Z[4]!==V)Y=B(rZ.Provider,{value:X,children:B(tZ.Provider,{value:q,children:B(aZ.Provider,{value:z,children:V})})}),Z[3]=z,Z[4]=V,Z[5]=Y;else Y=Z[5];return Y}function eZ(){return K0.useContext(aZ)}function ZJ(){return K0.useContext(oZ)}function uX(J){let Z=HZ.c(8),Q=K0.useContext(rZ),z,X,W,q;if(Z[0]!==J||Z[1]!==Q)z=()=>{if(!Q)return;Q(J)},X=[Q,J],Z[0]=J,Z[1]=Q,Z[2]=z,Z[3]=X;else z=Z[2],X=Z[3];if(Z[4]!==Q)W=()=>{if(!Q)return;return()=>Q(null)},q=[Q],Z[4]=Q,Z[5]=W,Z[6]=q;else W=Z[5],q=Z[6];K0.useEffect(z,X),K0.useEffect(W,q)}function pX(J){let Z=HZ.c(8),Q=K0.useContext(tZ),z,X,W,q;if(Z[0]!==J||Z[1]!==Q)z=()=>{if(!Q)return;Q(J)},X=[Q,J],Z[0]=J,Z[1]=Q,Z[2]=z,Z[3]=X;else z=Z[2],X=Z[3];if(Z[4]!==Q)W=()=>{if(!Q)return;return()=>Q(null)},q=[Q],Z[4]=Q,Z[5]=W,Z[6]=q;else W=Z[5],q=Z[6];K0.useEffect(z,X),K0.useEffect(W,q)}var HZ,K0,aZ,rZ,oZ,tZ;var JJ=L0(()=>{F0();HZ=w0(u0(),1),K0=w0(I0(),1),aZ=K0.createContext(null),rZ=K0.createContext(null),oZ=K0.createContext(null),tZ=K0.createContext(null)});function GZ(J){return J.type==="attachment"&&Wz.has(J.attachment.type)}var Xz,Wz;var CZ=L0(()=>{Xz=["hook_success","hook_additional_context","hook_cancelled","command_permissions","agent_mention","budget_usd","critical_system_reminder","edited_image_file","edited_text_file","opened_file_in_ide","output_style","plan_mode","plan_mode_exit","plan_mode_reentry","structured_output","team_context","todo_reminder","context_efficiency","deferred_tools_delta","mcp_instructions_delta","companion_intro","token_usage","ultrathink_effort","max_turns_reached","task_reminder","auto_mode","auto_mode_exit","output_token_usage","bagel_console","verify_plan_reminder","current_session_memory","compaction_reminder","date_change","bash_git_instructions","claude_md_delta","git_status_delta","todo_reminder_delta","task_reconcile","container_transition"],Wz=new Set(Xz)});import{fileURLToPath as Gz}from"url";function XW(J){let[Z,Q]=q0.useState(null),z=q0.useRef(J);z.current=J;let X=q0.useRef(null),W=q0.useCallback(()=>{Q(null)},[]),q=q0.useCallback((K)=>{let F=Math.max(0,K.getScrollHeight()-K.getViewportHeight());if(K.getScrollTop()+K.getPendingDelta()>=F)return;if(X.current===null)X.current=K.getScrollHeight(),Q(z.current)},[]),V=q0.useCallback((K)=>{if(!K)return;K.scrollToBottom()},[]);q0.useEffect(()=>{if(Z===null)X.current=null;else if(J<Z)X.current=null,Q(null)},[J,Z]);let Y=q0.useCallback((K,F)=>{if(Q((j)=>j===null?null:j+K),X.current!==null)X.current+=F},[]);return{dividerIndex:Z,dividerYRef:X,onScrollAway:q,onRepin:W,jumpToNew:V,shiftDivider:Y}}function Lz(J,Z){let Q=0,z=!1;for(let X=Z;X<J.length;X++){let W=J[X];if(W.type==="progress")continue;if(W.type==="assistant"&&!Fz(W))continue;let q=W.type==="assistant";if(q&&!z)Q++;z=q}return Q}function Fz(J){if(J.type!=="assistant")return!1;for(let Z of J.message.content)if(Z.type==="text"&&Z.text.trim()!=="")return!0;return!1}function WW(J,Z){if(Z===null)return;let Q=Z;while(Q<J.length&&(J[Q]?.type==="progress"||GZ(J[Q])))Q++;let z=J[Q]?.uuid;if(!z)return;let X=Lz(J,Z);return{firstUnseenUuid:z,count:Math.max(1,X)}}function qW(J){let Z=a0.c(47),{scrollable:Q,bottom:z,overlay:X,bottomFloat:W,modal:q,modalScrollRef:V,scrollRef:Y,dividerYRef:K,hidePill:F,hideSticky:j,newMessageCount:v,onPillClick:M}=J,I=F===void 0?!1:F,Z0=j===void 0?!1:j,d=v===void 0?0:v,{rows:O,columns:C}=FZ(),[_,N]=q0.useState(null),P;if(Z[0]===Symbol.for("react.memo_cache_sentinel"))P={setStickyPrompt:N},Z[0]=P;else P=Z[0];let f=P,J0;if(Z[1]!==Y)J0=(h)=>Y?.current?.subscribe(h)??wz,Z[1]=Y,Z[2]=J0;else J0=Z[2];let E=J0,k;if(Z[3]!==K||Z[4]!==Y)k=()=>{let h=Y?.current,z0=K?.current;if(!h||z0==null)return!1;return h.getScrollTop()+h.getPendingDelta()+h.getViewportHeight()<z0},Z[3]=K,Z[4]=Y,Z[5]=k;else k=Z[5];let H0=q0.useSyncExternalStore(E,k),Y0;if(Z[6]===Symbol.for("react.memo_cache_sentinel"))Y0=[],Z[6]=Y0;else Y0=Z[6];if(q0.useLayoutEffect(Kz,Y0),c0()){let h=Z0?null:_,z0=h!=null&&h!=="clicked"&&X==null?h:null,Q0=h!=null&&X==null,X0;if(Z[7]!==z0)X0=z0&&B(Az,{text:z0.text,onClick:z0.scrollTo}),Z[7]=z0,Z[8]=X0;else X0=Z[8];let O0=Q0?0:1,T;if(Z[9]!==Q)T=B(yZ,{value:f,children:Q}),Z[9]=Q,Z[10]=T;else T=Z[10];let l;if(Z[11]!==X||Z[12]!==Y||Z[13]!==T||Z[14]!==O0)l=$(GJ,{ref:Y,flexGrow:1,flexDirection:"column",paddingTop:O0,stickyScroll:!0,children:[T,X]}),Z[11]=X,Z[12]=Y,Z[13]=T,Z[14]=O0,Z[15]=l;else l=Z[15];let o;if(Z[16]!==I||Z[17]!==d||Z[18]!==M||Z[19]!==X||Z[20]!==H0)o=!I&&H0&&X==null&&B(Oz,{count:d,onClick:M}),Z[16]=I,Z[17]=d,Z[18]=M,Z[19]=X,Z[20]=H0,Z[21]=o;else o=Z[21];let t;if(Z[22]!==W)t=W!=null&&B(b,{position:"absolute",bottom:0,right:0,opaque:!0,children:W}),Z[22]=W,Z[23]=t;else t=Z[23];let S;if(Z[24]!==l||Z[25]!==o||Z[26]!==t||Z[27]!==X0)S=$(b,{flexGrow:1,flexDirection:"column",overflow:"hidden",children:[X0,l,o,t]}),Z[24]=l,Z[25]=o,Z[26]=t,Z[27]=X0,Z[28]=S;else S=Z[28];let W0,w;if(Z[29]===Symbol.for("react.memo_cache_sentinel"))W0=B(jz,{}),w=B(Pz,{}),Z[29]=W0,Z[30]=w;else W0=Z[29],w=Z[30];let D;if(Z[31]!==z)D=$(b,{flexDirection:"column",flexShrink:0,width:"100%",maxHeight:"50%",children:[W0,w,B(b,{flexDirection:"column",width:"100%",flexGrow:1,overflowY:"hidden",children:z})]}),Z[31]=z,Z[32]=D;else D=Z[32];let R;if(Z[33]!==C||Z[34]!==q||Z[35]!==V||Z[36]!==O)R=q!=null&&B(YJ,{value:{rows:O-QJ-1,columns:C-4,scrollRef:V??null},children:$(b,{position:"absolute",bottom:0,left:0,right:0,maxHeight:O-QJ,flexDirection:"column",overflow:"hidden",opaque:!0,children:[B(b,{flexShrink:0,children:B(g,{color:"permission",children:"▔".repeat(C)})}),B(b,{flexDirection:"column",paddingX:2,flexShrink:0,overflow:"hidden",children:q})]})}),Z[33]=C,Z[34]=q,Z[35]=V,Z[36]=O,Z[37]=R;else R=Z[37];let s;if(Z[38]!==S||Z[39]!==D||Z[40]!==R)s=$(sZ,{children:[S,D,R]}),Z[38]=S,Z[39]=D,Z[40]=R,Z[41]=s;else s=Z[41];return s}let i;if(Z[42]!==z||Z[43]!==q||Z[44]!==X||Z[45]!==Q)i=$(p0,{children:[Q,z,X,q]}),Z[42]=z,Z[43]=q,Z[44]=X,Z[45]=Q,Z[46]=i;else i=Z[46];return i}function Kz(){if(!c0())return;let J=WJ.get(process.stdout);if(!J)return;return J.onHyperlinkClick=Nz,()=>{J.onHyperlinkClick=void 0}}function Nz(J){if(J.startsWith("file:"))try{VJ(Gz(J))}catch{}else BJ(J)}function wz(){}function Oz(J){let Z=a0.c(10),{count:Q,onClick:z}=J,[X,W]=q0.useState(!1),q,V;if(Z[0]===Symbol.for("react.memo_cache_sentinel"))q=()=>W(!0),V=()=>W(!1),Z[0]=q,Z[1]=V;else q=Z[0],V=Z[1];let Y=X?"userMessageBackgroundHover":"userMessageBackground",K;if(Z[2]!==Q)K=Q>0?`${Q} new ${LZ(Q,"message")}`:"Jump to bottom",Z[2]=Q,Z[3]=K;else K=Z[3];let F;if(Z[4]!==Y||Z[5]!==K)F=$(g,{backgroundColor:Y,dimColor:!0,children:[" ",K," ",v0.arrowDown," "]}),Z[4]=Y,Z[5]=K,Z[6]=F;else F=Z[6];let j;if(Z[7]!==z||Z[8]!==F)j=B(b,{position:"absolute",bottom:0,left:0,right:0,justifyContent:"center",children:B(b,{onClick:z,onMouseEnter:q,onMouseLeave:V,children:F})}),Z[7]=z,Z[8]=F,Z[9]=j;else j=Z[9];return j}function Az(J){let Z=a0.c(8),{text:Q,onClick:z}=J,[X,W]=q0.useState(!1),q=X?"userMessageBackgroundHover":"userMessageBackground",V,Y;if(Z[0]===Symbol.for("react.memo_cache_sentinel"))V=()=>W(!0),Y=()=>W(!1),Z[0]=V,Z[1]=Y;else V=Z[0],Y=Z[1];let K;if(Z[2]!==Q)K=$(g,{color:"subtle",wrap:"truncate-end",children:[v0.pointer," ",Q]}),Z[2]=Q,Z[3]=K;else K=Z[3];let F;if(Z[4]!==z||Z[5]!==q||Z[6]!==K)F=B(b,{flexShrink:0,width:"100%",height:1,paddingRight:1,backgroundColor:q,onClick:z,onMouseEnter:V,onMouseLeave:Y,children:K}),Z[4]=z,Z[5]=q,Z[6]=K,Z[7]=F;else F=Z[7];return F}function jz(){let J=a0.c(4),Z=eZ();if(!Z||Z.suggestions.length===0)return null;let Q;if(J[0]!==Z.maxColumnWidth||J[1]!==Z.selectedSuggestion||J[2]!==Z.suggestions)Q=B(b,{position:"absolute",bottom:"100%",left:0,right:0,paddingX:2,paddingTop:1,flexDirection:"column",opaque:!0,children:B(HJ,{suggestions:Z.suggestions,selectedSuggestion:Z.selectedSuggestion,maxColumnWidth:Z.maxColumnWidth,overlay:!0})}),J[0]=Z.maxColumnWidth,J[1]=Z.selectedSuggestion,J[2]=Z.suggestions,J[3]=Q;else Q=J[3];return Q}function Pz(){let J=a0.c(2),Z=ZJ();if(!Z)return null;let Q;if(J[0]!==Z)Q=B(b,{position:"absolute",bottom:"100%",left:0,right:0,opaque:!0,children:Z}),J[0]=Z,J[1]=Q;else Q=J[1];return Q}var a0,q0,QJ=2,yZ;var LJ=L0(()=>{zJ();Yz();JJ();qJ();Hz();qz();f0();Vz();vZ();XJ();CZ();Bz();F0();a0=w0(u0(),1),q0=w0(I0(),1),yZ=q0.createContext({setStickyPrompt:()=>{}})});function FJ(J,Z){for(let Q of J)if(!Z.has(Q))return!1;return!0}var KJ=()=>{};function NJ(J){if(J.type!=="user")return!1;let Z=J.message.content[0];if(Z?.type!=="text")return!1;if(!Z.text.includes(`<${KZ}`))return!1;if(_Z(Z.text,NZ)!=="completed")return!1;return _Z(Z.text,wZ)?.startsWith(wJ)??!1}function OJ(J,Z){if(!c0())return J;if(Z)return J;let Q=[],z=0;while(z<J.length){let X=J[z];if(NJ(X)){let W=0;while(z<J.length&&NJ(J[z]))W++,z++;if(W===1)Q.push(X);else Q.push({...X,message:{role:"user",content:[{type:"text",text:`<${KZ}><${NZ}>completed</${NZ}><${wZ}>${W} background commands completed</${wZ}></${KZ}>`}]}})}else Q.push(X),z++}return Q}var AJ=L0(()=>{Dz();Uz();vZ();OZ()});function jJ(J){return J.type==="system"&&J.subtype==="stop_hook_summary"&&J.hookLabel!==void 0}function PJ(J){let Z=[],Q=0;while(Q<J.length){let z=J[Q];if(jJ(z)){let X=z.hookLabel,W=[];while(Q<J.length){let q=J[Q];if(!jJ(q)||q.hookLabel!==X)break;W.push(q),Q++}if(W.length===1)Z.push(z);else Z.push({...z,hookCount:W.reduce((q,V)=>q+V.hookCount,0),hookInfos:W.flatMap((q)=>q.hookInfos),hookErrors:W.flatMap((q)=>q.hookErrors),preventedContinuation:W.some((q)=>q.preventedContinuation),hasOutput:W.some((q)=>q.hasOutput),totalDurationMs:Math.max(...W.map((q)=>q.totalDurationMs??0))})}else Z.push(z),Q++}return Z}var DJ=()=>{};function UJ(J){return J.type==="attachment"&&J.attachment.type==="task_status"&&J.attachment.taskType==="in_process_teammate"&&J.attachment.status==="completed"}function MJ(J){let Z=[],Q=0;while(Q<J.length){let z=J[Q];if(UJ(z)){let X=0;while(Q<J.length&&UJ(J[Q]))X++,Q++;if(X===1)Z.push(z);else Z.push({type:"attachment",uuid:z.uuid,timestamp:z.timestamp,attachment:{type:"teammate_shutdown_batch",count:X}})}else Z.push(z),Q++}return Z}var EJ=()=>{};function Mz(J){let Z=bJ.get(J);if(!Z)Z=new Set(J.filter((Q)=>Q.renderGroupedToolUse).map((Q)=>Q.name)),bJ.set(J,Z);return Z}function kZ(J){if(J.type==="assistant"&&J.message.content[0]?.type==="tool_use"){let Z=J.message.content[0];return{messageId:J.message.id,toolUseId:Z.id,toolName:Z.name}}return null}function CJ(J,Z,Q=!1){if(Q)return{messages:J};let z=Mz(Z),X=new Map;for(let F of J){let j=kZ(F);if(j&&z.has(j.toolName)){let v=`${j.messageId}:${j.toolName}`,M=X.get(v)??[];M.push(F),X.set(v,M)}}let W=new Map,q=new Set;for(let[F,j]of X)if(j.length>=2){W.set(F,j);for(let v of j){let M=kZ(v);if(M)q.add(M.toolUseId)}}let V=new Map;for(let F of J)if(F.type==="user"){for(let j of F.message.content)if(j.type==="tool_result"&&q.has(j.tool_use_id))V.set(j.tool_use_id,F)}let Y=[],K=new Set;for(let F of J){let j=kZ(F);if(j){let v=`${j.messageId}:${j.toolName}`,M=W.get(v);if(M){if(!K.has(v)){K.add(v);let I=M[0],Z0=[];for(let O of M){let C=O.message.content[0].id,_=V.get(C);if(_)Z0.push(_)}let d={type:"grouped_tool_use",toolName:j.toolName,messages:M,results:Z0,displayMessage:I,uuid:`grouped-${I.uuid}`,timestamp:I.timestamp,messageId:j.messageId};Y.push(d)}continue}}if(F.type==="user"){let v=F.message.content.filter((M)=>M.type==="tool_result");if(v.length>0){if(v.every((I)=>q.has(I.tool_use_id)))continue}}Y.push(F)}return{messages:Y}}var bJ;var vJ=L0(()=>{bJ=new WeakMap});function AZ(J){let Z=kJ.get(J);if(Z!==void 0)return Z;let Q=Ez(J).toLowerCase();return kJ.set(J,Q),Q}function Ez(J){let Z="";switch(J.type){case"user":{let X=J.message.content;if(typeof X==="string")Z=_J.has(X)?"":X;else{let W=[];for(let q of X)if(q.type==="text"){if(!_J.has(q.text))W.push(q.text)}else if(q.type==="tool_result")W.push(Cz(J.toolUseResult));Z=W.join(`
|
|
2
|
+
`)}break}case"assistant":{let X=J.message.content;if(Array.isArray(X))Z=X.flatMap((W)=>{if(W.type==="text")return[W.text];if(W.type==="tool_use")return[bz(W.input)];return[]}).join(`
|
|
3
|
+
`);break}case"attachment":{if(J.attachment.type==="relevant_memories")Z=J.attachment.memories.map((X)=>X.content).join(`
|
|
4
|
+
`);else if(J.attachment.type==="queued_command"&&J.attachment.commandMode!=="task-notification"&&!J.attachment.isMeta){let X=J.attachment.prompt;Z=typeof X==="string"?X:X.flatMap((W)=>W.type==="text"?[W.text]:[]).join(`
|
|
5
|
+
`)}break}case"collapsed_read_search":{if(J.relevantMemories)Z=J.relevantMemories.map((X)=>X.content).join(`
|
|
6
|
+
`);break}default:break}let Q=Z,z=Q.indexOf("<system-reminder>");while(z>=0){let X=Q.indexOf(yJ,z);if(X<0)break;Q=Q.slice(0,z)+Q.slice(X+yJ.length),z=Q.indexOf("<system-reminder>")}return Q}function bz(J){if(!J||typeof J!=="object")return"";let Z=J,Q=[];for(let z of["command","pattern","file_path","path","prompt","description","query","url","skill"]){let X=Z[z];if(typeof X==="string")Q.push(X)}for(let z of["args","files"]){let X=Z[z];if(Array.isArray(X)&&X.every((W)=>typeof W==="string"))Q.push(X.join(" "))}return Q.join(`
|
|
7
|
+
`)}function Cz(J){if(!J||typeof J!=="object")return typeof J==="string"?J:"";let Z=J;if(typeof Z.stdout==="string"){let z=typeof Z.stderr==="string"?Z.stderr:"";return Z.stdout+(z?`
|
|
8
|
+
`+z:"")}if(Z.file&&typeof Z.file==="object"&&typeof Z.file.content==="string")return Z.file.content;let Q=[];for(let z of["content","output","result","text","message"]){let X=Z[z];if(typeof X==="string")Q.push(X)}for(let z of["filenames","lines","results"]){let X=Z[z];if(Array.isArray(X)&&X.every((W)=>typeof W==="string"))Q.push(X.join(`
|
|
9
|
+
`))}return Q.join(`
|
|
10
|
+
`)}var yJ="</system-reminder>",_J,kJ;var SZ=L0(()=>{OZ();_J=new Set([SJ,IJ]),kJ=new WeakMap});function RJ(J){let Z=hJ.c(5),{message:Q,isTranscriptMode:z}=J;if(!(z&&Q.type==="assistant"&&Q.message.model&&Q.message.content.some(vz)))return null;let W=jZ(Q.message.model)+8,q;if(Z[0]!==Q.message.model)q=B(g,{dimColor:!0,children:Q.message.model}),Z[0]=Q.message.model,Z[1]=q;else q=Z[1];let V;if(Z[2]!==W||Z[3]!==q)V=B(b,{minWidth:W,children:q}),Z[2]=W,Z[3]=q,Z[4]=V;else V=Z[4];return V}function vz(J){return J.type==="text"}var hJ;var xJ=L0(()=>{TJ();f0();F0();hJ=w0(u0(),1)});function uJ(J){let Z=$J.c(10),{message:Q,isTranscriptMode:z}=J;if(!(z&&Q.timestamp&&Q.type==="assistant"&&Q.message.content.some(yz)))return null;let W,q,V;if(Z[0]!==Q.timestamp)q=new Date(Q.timestamp).toLocaleTimeString("en-US",{hour:"2-digit",minute:"2-digit",hour12:!0}),W=b,V=jZ(q),Z[0]=Q.timestamp,Z[1]=W,Z[2]=q,Z[3]=V;else W=Z[1],q=Z[2],V=Z[3];let Y;if(Z[4]!==q)Y=B(g,{dimColor:!0,children:q}),Z[4]=q,Z[5]=Y;else Y=Z[5];let K;if(Z[6]!==W||Z[7]!==V||Z[8]!==Y)K=B(W,{minWidth:V,children:Y}),Z[6]=W,Z[7]=V,Z[8]=Y,Z[9]=K;else K=Z[9];return K}function yz(J){return J.type==="text"}var $J;var pJ=L0(()=>{TJ();f0();F0();$J=w0(u0(),1)});function aJ(J,Z,Q,z){for(let X=Z+1;X<J.length;X++){let W=J[X];if(W?.type==="assistant"){let q=W.message.content[0];if(q?.type==="thinking"||q?.type==="redacted_thinking")continue;if(q?.type==="tool_use"){if(IZ(q.name,q.input,Q).isCollapsible)continue;if(z.has(q.id))continue}return!0}if(W?.type==="system"||W?.type==="attachment")continue;if(W?.type==="user"){if(W.message.content[0]?.type==="tool_result")continue}if(W?.type==="grouped_tool_use"){let q=W.messages[0]?.message.content[0],V=q?.type==="tool_use"?q.input:void 0;if(IZ(W.toolName,V,Q).isCollapsible)continue}return!0}return!1}function kz(J){let Z=lJ.c(64),{message:Q,isUserContinuation:z,hasContentAfter:X,tools:W,commands:q,verbose:V,inProgressToolUseIDs:Y,streamingToolUseIDs:K,screen:F,canAnimate:j,onOpenRateLimitOptions:v,lastThinkingBlockId:M,latestBashOutputUUID:I,columns:Z0,isLoading:d,lookups:O}=J,C=F==="transcript",_=Q.type==="grouped_tool_use",N=Q.type==="collapsed_read_search",P;if(Z[0]!==X||Z[1]!==Y||Z[2]!==N||Z[3]!==d||Z[4]!==Q)P=N&&(TZ(Q,Y)||d&&!X),Z[0]=X,Z[1]=Y,Z[2]=N,Z[3]=d,Z[4]=Q,Z[5]=P;else P=Z[5];let f=P,J0;if(Z[6]!==N||Z[7]!==_||Z[8]!==Q)J0=_?Q.displayMessage:N?dJ(Q):Q,Z[6]=N,Z[7]=_,Z[8]=Q,Z[9]=J0;else J0=Z[9];let E=J0,k;if(Z[10]!==N||Z[11]!==_||Z[12]!==O||Z[13]!==Q)k=_||N?[]:ZQ(Q,O),Z[10]=N,Z[11]=_,Z[12]=O,Z[13]=Q,Z[14]=k;else k=Z[14];let H0=k,Y0;if(Z[15]!==Y||Z[16]!==N||Z[17]!==_||Z[18]!==O||Z[19]!==Q||Z[20]!==F||Z[21]!==K){let S=_||N?fJ:eJ(Q,O);Y0=tJ(Q,K,Y,S,F,O),Z[15]=Y,Z[16]=N,Z[17]=_,Z[18]=O,Z[19]=Q,Z[20]=F,Z[21]=K,Z[22]=Y0}else Y0=Z[22];let i=Y0,h=!1;if(j)if(_){let S;if(Z[23]!==Y||Z[24]!==Q.messages){let W0;if(Z[26]!==Y)W0=(w)=>{let D=w.message.content[0];return D?.type==="tool_use"&&Y.has(D.id)},Z[26]=Y,Z[27]=W0;else W0=Z[27];S=Q.messages.some(W0),Z[23]=Y,Z[24]=Q.messages,Z[25]=S}else S=Z[25];h=S}else if(N){let S;if(Z[28]!==Y||Z[29]!==Q)S=TZ(Q,Y),Z[28]=Y,Z[29]=Q,Z[30]=S;else S=Z[30];h=S}else{let S;if(Z[31]!==Y||Z[32]!==Q){let W0=g0(Q);S=!W0||Y.has(W0),Z[31]=Y,Z[32]=Q,Z[33]=S}else S=Z[33];h=S}let z0;if(Z[34]!==E||Z[35]!==C)z0=C&&E.type==="assistant"&&E.message.content.some(Sz)&&(E.timestamp||E.message.model),Z[34]=E,Z[35]=C,Z[36]=z0;else z0=Z[36];let Q0=z0,X0=!Q0,O0=Q0?void 0:Z0,T;if(Z[37]!==q||Z[38]!==Y||Z[39]!==f||Z[40]!==i||Z[41]!==C||Z[42]!==z||Z[43]!==M||Z[44]!==I||Z[45]!==O||Z[46]!==Q||Z[47]!==v||Z[48]!==H0||Z[49]!==h||Z[50]!==X0||Z[51]!==O0||Z[52]!==W||Z[53]!==V)T=B(nJ,{message:Q,lookups:O,addMargin:X0,containerWidth:O0,tools:W,commands:q,verbose:V,inProgressToolUseIDs:Y,progressMessagesForMessage:H0,shouldAnimate:h,shouldShowDot:!0,isTranscriptMode:C,isStatic:i,onOpenRateLimitOptions:v,isActiveCollapsedGroup:f,isUserContinuation:z,lastThinkingBlockId:M,latestBashOutputUUID:I}),Z[37]=q,Z[38]=Y,Z[39]=f,Z[40]=i,Z[41]=C,Z[42]=z,Z[43]=M,Z[44]=I,Z[45]=O,Z[46]=Q,Z[47]=v,Z[48]=H0,Z[49]=h,Z[50]=X0,Z[51]=O0,Z[52]=W,Z[53]=V,Z[54]=T;else T=Z[54];let l=T;if(!Q0){let S;if(Z[55]!==l)S=B(e0,{children:l}),Z[55]=l,Z[56]=S;else S=Z[56];return S}let o;if(Z[57]!==E||Z[58]!==C)o=$(b,{flexDirection:"row",justifyContent:"flex-end",gap:1,marginTop:1,children:[B(uJ,{message:E,isTranscriptMode:C}),B(RJ,{message:E,isTranscriptMode:C})]}),Z[57]=E,Z[58]=C,Z[59]=o;else o=Z[59];let t;if(Z[60]!==Z0||Z[61]!==l||Z[62]!==o)t=B(e0,{children:$(b,{width:Z0,flexDirection:"column",children:[o,l]})}),Z[60]=Z0,Z[61]=l,Z[62]=o,Z[63]=t;else t=Z[63];return t}function Sz(J){return J.type==="text"}function Iz(J,Z){if(J.type==="grouped_tool_use")return J.messages.some((z)=>{let X=z.message.content[0];return X?.type==="tool_use"&&Z.has(X.id)});if(J.type==="collapsed_read_search")return hZ(J).some((X)=>Z.has(X));let Q=g0(J);return!!Q&&Z.has(Q)}function Tz(J,Z){if(J.type==="grouped_tool_use")return J.messages.every((z)=>{let X=z.message.content[0];return X?.type==="tool_use"&&Z.has(X.id)});if(J.type==="collapsed_read_search")return hZ(J).every((X)=>Z.has(X));if(J.type==="assistant"){let z=J.message.content[0];if(z?.type==="server_tool_use")return Z.has(z.id)}let Q=g0(J);return!Q||Z.has(Q)}function hz(J,Z){if(J.message!==Z.message)return!1;if(J.screen!==Z.screen)return!1;if(J.verbose!==Z.verbose)return!1;if(J.message.type==="collapsed_read_search"&&Z.screen!=="transcript")return!1;if(J.columns!==Z.columns)return!1;let Q=J.latestBashOutputUUID===J.message.uuid,z=Z.latestBashOutputUUID===Z.message.uuid;if(Q!==z)return!1;if(J.lastThinkingBlockId!==Z.lastThinkingBlockId&&mJ(Z.message))return!1;let X=Iz(J.message,J.streamingToolUseIDs),W=Tz(J.message,J.lookups.resolvedToolUseIDs);if(X||!W)return!1;return!0}var lJ,iJ,rJ;var oJ=L0(()=>{f0();cJ();OZ();_z();xJ();sJ();pJ();gJ();F0();lJ=w0(u0(),1),iJ=w0(I0(),1);rJ=iJ.memo(kz,hz)});import{relative as dz}from"path";function qQ(J){return az.filter((Z)=>Z.isActive(J))}var cz,gz,mz,nz,lz,iz,az;var YQ=L0(()=>{f0();BQ();zJ();xz();Rz();$z();fz();pz();uz();F0();cz={id:"large-memory-files",type:"warning",isActive:(J)=>pZ(J.memoryFiles).length>0,render:(J)=>{let Z=pZ(J.memoryFiles);return B(p0,{children:Z.map((Q)=>{let z=Q.path.startsWith(RZ())?dz(RZ(),Q.path):Q.path;return $(b,{flexDirection:"row",children:[B(g,{color:"warning",children:v0.warning}),$(g,{color:"warning",children:["Large ",B(g,{bold:!0,children:z})," will impact performance (",ZZ(Q.content.length)," chars >"," ",ZZ(VQ),")",B(g,{dimColor:!0,children:" · /memory to edit"})]})]},Q.path)})})}},gz={id:"claude-ai-external-token",type:"warning",isActive:()=>{let J=JZ();return QQ()&&(J.source==="ANTHROPIC_AUTH_TOKEN"||J.source==="apiKeyHelper")},render:()=>{let J=JZ();return $(b,{flexDirection:"row",marginTop:1,children:[B(g,{color:"warning",children:v0.warning}),$(g,{color:"warning",children:["Auth conflict: Using ",J.source," instead of Claude account subscription token. Either unset ",J.source,", or run `claude /logout`."]})]})}},mz={id:"api-key-conflict",type:"warning",isActive:()=>{let{source:J}=QZ({skipRetrievingKeyFromApiKeyHelper:!0});return!!JQ()&&(J==="ANTHROPIC_API_KEY"||J==="apiKeyHelper")},render:()=>{let{source:J}=QZ({skipRetrievingKeyFromApiKeyHelper:!0});return $(b,{flexDirection:"row",marginTop:1,children:[B(g,{color:"warning",children:v0.warning}),$(g,{color:"warning",children:["Auth conflict: Using ",J," instead of Anthropic Console key. Either unset ",J,", or run `claude /logout`."]})]})}},nz={id:"both-auth-methods",type:"warning",isActive:()=>{let{source:J}=QZ({skipRetrievingKeyFromApiKeyHelper:!0}),Z=JZ();return J!=="none"&&Z.source!=="none"&&!(J==="apiKeyHelper"&&Z.source==="apiKeyHelper")},render:()=>{let{source:J}=QZ({skipRetrievingKeyFromApiKeyHelper:!0}),Z=JZ();return $(b,{flexDirection:"column",marginTop:1,children:[$(b,{flexDirection:"row",children:[B(g,{color:"warning",children:v0.warning}),$(g,{color:"warning",children:["Auth conflict: Both a token (",Z.source,") and an API key (",J,") are set. This may lead to unexpected behavior."]})]}),$(b,{flexDirection:"column",marginLeft:3,children:[$(g,{color:"warning",children:["· Trying to use"," ",Z.source==="claude.ai"?"claude.ai":Z.source,"?"," ",J==="ANTHROPIC_API_KEY"?'Unset the ANTHROPIC_API_KEY environment variable, or claude /logout then say "No" to the API key approval before login.':J==="apiKeyHelper"?"Unset the apiKeyHelper setting.":"claude /logout"]}),$(g,{color:"warning",children:["· Trying to use ",J,"?"," ",Z.source==="claude.ai"?"claude /logout to sign out of claude.ai.":`Unset the ${Z.source} environment variable.`]})]})]})}},lz={id:"large-agent-descriptions",type:"warning",isActive:(J)=>{return uZ(J.agentDefinitions)>$Z},render:(J)=>{let Z=uZ(J.agentDefinitions);return $(b,{flexDirection:"row",children:[B(g,{color:"warning",children:v0.warning}),$(g,{color:"warning",children:["Large cumulative agent descriptions will impact performance (~",ZZ(Z)," tokens >"," ",ZZ($Z),")",B(g,{dimColor:!0,children:" · /agents to manage"})]})]})}},iz={id:"jetbrains-plugin-install",type:"info",isActive:(J)=>{if(!XQ())return!1;if(!(J.config.autoInstallIdeExtension??!0))return!1;let Q=xZ();return Q!==null&&!zQ(Q)},render:()=>{let J=xZ(),Z=WQ(J);return $(b,{flexDirection:"row",gap:1,marginLeft:1,children:[B(g,{color:"ide",children:v0.arrowUp}),$(g,{children:["Install the ",B(g,{color:"ide",children:Z})," plugin from the JetBrains Marketplace:"," ",B(g,{bold:!0,children:"https://docs.claude.com/s/claude-code-jetbrains"})]})]})}},az=[cz,lz,gz,mz,nz,iz]});async function rz(){if(zZ)return zZ;return zZ=KQ().then((J)=>{XZ=J}).finally(()=>{zZ=null}),zZ}function LQ(J){let Z=GQ.c(8),{agentDefinitions:Q}=J===void 0?{}:J,[z,X]=r0.useState(XZ),W;if(Z[0]===Symbol.for("react.memo_cache_sentinel"))W=()=>{if(XZ.length>0){X(XZ);return}rz().then(()=>{X(XZ)})},Z[0]=W;else W=Z[0];r0.useEffect(W,[W]);let V={config:PZ(),agentDefinitions:Q,memoryFiles:z},Y=qQ(V);if(Y.length===0)return null;let K=b,F="column",j=1,v=Y.map((I)=>B(r0.Fragment,{children:I.render(V)},I.id)),M;if(Z[1]!==K||Z[2]!==v)M=B(K,{flexDirection:F,paddingLeft:j,children:v}),Z[1]=K,Z[2]=v,Z[3]=M;else M=Z[3];return M}var GQ,r0,XZ,zZ=null;var FQ=L0(()=>{f0();BQ();HQ();YQ();F0();GQ=w0(u0(),1),r0=w0(I0(),1),XZ=[]});function NQ(J,Z,Q){let z=m.useRef(new Map),X=m.useRef(0),W=m.useRef(0),q=m.useRef({arr:new Float64Array(0),version:-1,n:-1}),V=m.useRef(new Map),Y=m.useRef(new Map),K=m.useRef(Q),F=m.useRef(!1),j=m.useRef(null),v=m.useRef(0);if(K.current!==Q){let w=K.current/Q;K.current=Q;for(let[D,R]of z.current)z.current.set(D,Math.max(1,Math.round(R*w)));X.current++,F.current=!0,v.current=2}let M=v.current>0?j.current:null,I=m.useRef(0),Z0=m.useRef(null),d=m.useCallback((w)=>J.current?.subscribe(w)??ez,[J]);m.useSyncExternalStore(d,()=>{let w=J.current;if(!w)return NaN;let D=w.getScrollTop()+w.getPendingDelta(),R=Math.floor(D/sz);return w.isSticky()?~R:R});let O=J.current?.getScrollTop()??-1,C=J.current?.getPendingDelta()??0,_=J.current?.getViewportHeight()??0,N=J.current?.isSticky()??!0;m.useMemo(()=>{let w=new Set(Z),D=!1;for(let R of z.current.keys())if(!w.has(R))z.current.delete(R),D=!0;for(let R of Y.current.keys())if(!w.has(R))Y.current.delete(R);if(D)X.current++},[Z]);let P=Z.length;if(q.current.version!==X.current||q.current.n!==P){let w=q.current.arr.length>=P+1?q.current.arr:new Float64Array(P+1);w[0]=0;for(let D=0;D<P;D++)w[D+1]=w[D]+(z.current.get(Z[D])??oz);q.current={arr:w,version:X.current,n:P}}let f=q.current.arr,J0=f[P],E,k;if(M)[E,k]=M,E=Math.min(E,P),k=Math.min(k,P);else if(_===0||O<0)E=Math.max(0,P-tz),k=P;else{if(N){let V0=_+o0;E=P;while(E>0&&J0-f[E-1]<V0)E--;k=P}else{let V0=I.current,G0=_*3,M0=Math.min(O,O+C),n0=Math.max(O,O+C),y0=n0-M0,P0=y0>G0?C<0?n0-G0:M0:M0,T0=P0+Math.min(y0,G0),l0=Math.max(0,P0-V0),h0=T0-V0,b0=l0-o0;{let H=0,L=P;while(H<L){let A=H+L>>1;if(f[A+1]<=b0)H=A+1;else L=A}E=H}{let H=j.current;if(H&&H[0]<E)for(let L=H[0];L<Math.min(E,H[1]);L++){let A=Z[L];if(V.current.has(A)&&!z.current.has(A)){E=L;break}}}let i0=_+2*o0,t0=Math.min(P,E+WZ),_0=0;k=E;while(k<t0&&(_0<i0||f[k]<h0+_+o0))_0+=z.current.get(Z[k])??fZ,k++}let w=_+2*o0,D=Math.max(0,k-WZ),R=0;for(let V0=E;V0<k;V0++)R+=z.current.get(Z[V0])??fZ;while(E>D&&R<w)E--,R+=z.current.get(Z[E])??fZ;let s=j.current,A0=Math.abs(O-W.current)+Math.abs(C);if(s&&A0>_*2){let[V0,G0]=s;if(E<V0-qZ)E=V0-qZ;if(k>G0+qZ)k=G0+qZ;if(E>k)k=Math.min(E+qZ,P)}W.current=O}if(v.current>0)v.current--;else j.current=[E,k];let H0=m.useDeferredValue(E),Y0=m.useDeferredValue(k),i=E<H0?H0:E,h=k>Y0?Y0:k;if(i>h||N)i=E,h=k;if(C>0)h=k;if(h-i>WZ){let w=(f[i]+f[h])/2;if(O-I.current<w)h=i+WZ;else i=h-WZ}let z0=I.current,Q0=f[i],X0=i===0?0:Q0+z0,O0=h===P?1/0:Math.max(Q0,f[h]-_)+z0;m.useLayoutEffect(()=>{if(N)J.current?.setClampBounds(void 0,void 0);else J.current?.setClampBounds(X0,O0)}),m.useLayoutEffect(()=>{let w=Z0.current?.yogaNode;if(w&&w.getComputedWidth()>0)I.current=w.getComputedTop();if(F.current){F.current=!1;return}let D=!1;for(let[R,s]of V.current){let A0=s.yogaNode;if(!A0)continue;let V0=A0.getComputedHeight(),G0=z.current.get(R);if(V0>0){if(G0!==V0)z.current.set(R,V0),D=!0}else if(A0.getComputedWidth()>0&&G0!==0)z.current.set(R,0),D=!0}if(D)X.current++});let T=m.useCallback((w)=>{let D=Y.current.get(w);if(!D)D=(R)=>{if(R)V.current.set(w,R);else{let s=V.current.get(w)?.yogaNode;if(s&&!F.current){let A0=s.getComputedHeight();if((A0>0||s.getComputedWidth()>0)&&z.current.get(w)!==A0)z.current.set(w,A0),X.current++}V.current.delete(w)}},Y.current.set(w,D);return D},[]),l=m.useCallback((w)=>{let D=V.current.get(Z[w])?.yogaNode;if(!D||D.getComputedWidth()===0)return-1;return D.getComputedTop()},[Z]),o=m.useCallback((w)=>V.current.get(Z[w])??null,[Z]),t=m.useCallback((w)=>z.current.get(Z[w]),[Z]),S=m.useCallback((w)=>{let D=q.current;if(w<0||w>=D.n)return;J.current?.scrollTo(D.arr[w]+I.current)},[J]),W0=J0-f[h];return{range:[i,h],topSpacer:Q0,bottomSpacer:W0,measureRef:T,spacerRef:Z0,offsets:f,getItemTop:l,getItemElement:o,getItemHeight:t,scrollToIndex:S}}var m,oz=3,o0=80,tz=30,sz,fZ=1,WZ=300,qZ=25,ez=()=>{};var wQ=L0(()=>{m=w0(I0(),1),sz=o0>>1});function zX(J){let Z=OQ.get(J);if(Z!==void 0)return Z;let Q=AZ(J);return OQ.set(J,Q),Q}function WX(J){let Z=AQ.get(J);if(Z!==void 0)return Z;let Q=qX(J);return AQ.set(J,Q),Q}function qX(J){let Z=null;if(J.type==="user"){if(J.isMeta||J.isVisibleInTranscriptOnly)return null;let z=J.message.content[0];if(z?.type!=="text")return null;Z=z.text}else if(J.type==="attachment"&&J.attachment.type==="queued_command"&&J.attachment.commandMode!=="task-notification"&&!J.attachment.isMeta){let z=J.attachment.prompt;Z=typeof z==="string"?z:z.flatMap((X)=>X.type==="text"?[X.text]:[]).join(`
|
|
11
|
+
`)}if(Z===null)return null;let Q=MQ(Z);if(Q.startsWith("<")||Q==="")return null;return Q}function YX(J){let Z=bQ.c(30),{itemKey:Q,msg:z,idx:X,measureRef:W,expanded:q,hovered:V,clickable:Y,onClickK:K,onEnterK:F,onLeaveK:j,renderItem:v}=J,M;if(Z[0]!==Q||Z[1]!==W)M=W(Q),Z[0]=Q,Z[1]=W,Z[2]=M;else M=Z[2];let I=q?"userMessageBackgroundHover":void 0,Z0=q?1:void 0,d;if(Z[3]!==Y||Z[4]!==z||Z[5]!==K)d=Y?(J0)=>K(z,J0.cellIsBlank):void 0,Z[3]=Y,Z[4]=z,Z[5]=K,Z[6]=d;else d=Z[6];let O;if(Z[7]!==Y||Z[8]!==Q||Z[9]!==F)O=Y?()=>F(Q):void 0,Z[7]=Y,Z[8]=Q,Z[9]=F,Z[10]=O;else O=Z[10];let C;if(Z[11]!==Y||Z[12]!==Q||Z[13]!==j)C=Y?()=>j(Q):void 0,Z[11]=Y,Z[12]=Q,Z[13]=j,Z[14]=C;else C=Z[14];let _=V&&!q?"text":void 0,N;if(Z[15]!==X||Z[16]!==z||Z[17]!==v)N=v(z,X),Z[15]=X,Z[16]=z,Z[17]=v,Z[18]=N;else N=Z[18];let P;if(Z[19]!==_||Z[20]!==N)P=B(PQ.Provider,{value:_,children:N}),Z[19]=_,Z[20]=N,Z[21]=P;else P=Z[21];let f;if(Z[22]!==M||Z[23]!==I||Z[24]!==Z0||Z[25]!==d||Z[26]!==O||Z[27]!==C||Z[28]!==P)f=B(b,{ref:M,flexDirection:"column",backgroundColor:I,paddingBottom:Z0,onClick:d,onMouseEnter:O,onMouseLeave:C,children:P}),Z[22]=M,Z[23]=I,Z[24]=Z0,Z[25]=d,Z[26]=O,Z[27]=C,Z[28]=P,Z[29]=f;else f=Z[29];return f}function CQ({messages:J,scrollRef:Z,columns:Q,itemKey:z,renderItem:X,onItemClick:W,isItemClickable:q,isItemExpanded:V,extractSearchText:Y=zX,trackStickyPrompt:K,selectedIndex:F,cursorNavRef:j,setCursor:v,jumpRef:M,onSearchMatchesChange:I,scanElement:Z0,setPositions:d}){let O=y.useRef([]),C=y.useRef(J),_=y.useRef(z);if(_.current!==z||J.length<O.current.length||J[0]!==C.current[0])O.current=J.map((H)=>z(H));else for(let H=O.current.length;H<J.length;H++)O.current.push(z(J[H]));C.current=J,_.current=z;let N=O.current,{range:P,topSpacer:f,bottomSpacer:J0,measureRef:E,spacerRef:k,offsets:H0,getItemTop:Y0,getItemElement:i,getItemHeight:h,scrollToIndex:z0}=NQ(Z,N,Q),[Q0,X0]=P,O0=y.useCallback((H)=>{if(h(H)===0)return!1;return DQ(J[H])},[h,J]);y.useImperativeHandle(j,()=>{let H=(u)=>v?.({uuid:u.uuid,msgType:u.type,expanded:!1,toolName:UQ(u)?.name}),L=F??-1,A=(u,n,r=O0)=>{for(let c=u;c>=0&&c<J.length;c+=n)if(r(c))return H(J[c]),!0;return!1},x=(u)=>O0(u)&&J[u].type==="user";return{enterCursor:()=>A(J.length-1,-1,x),navigatePrev:()=>A(L-1,-1),navigateNext:()=>{if(A(L+1,1))return;Z.current?.scrollToBottom(),v?.(null)},navigatePrevUser:()=>A(L-1,-1,x),navigateNextUser:()=>A(L+1,1,x),navigateTop:()=>A(0,1),navigateBottom:()=>A(J.length-1,-1),getSelected:()=>L>=0?J[L]??null:null}},[J,F,v,O0]);let T=y.useRef({offsets:H0,start:Q0,getItemElement:i,getItemTop:Y0,messages:J,scrollToIndex:z0});T.current={offsets:H0,start:Q0,getItemElement:i,getItemTop:Y0,messages:J,scrollToIndex:z0},y.useEffect(()=>{if(F===void 0)return;let H=T.current,L=H.getItemElement(F);if(L)Z.current?.scrollToElement(L,1);else H.scrollToIndex(F)},[F,Z]);let l=y.useRef(null),o=y.useRef({msgIdx:-1,positions:[]}),t=y.useRef(-1),S=y.useRef(0),W0=y.useRef(0),w=y.useRef(()=>{}),D=y.useRef(()=>{}),R=y.useRef({matches:[],ptr:0,screenOrd:0,prefixSum:[]}),s=y.useRef(-1),A0=y.useRef(!1);function V0(H){let L=T.current.getItemTop(H);return Math.max(0,L-dZ)}function G0(H){let L=Z.current,{msgIdx:A,positions:x}=o.current;if(!L||x.length===0||A<0){d?.(null);return}let u=Math.max(0,Math.min(H,x.length-1)),n=x[u],r=T.current.getItemTop(A),c=L.getViewportTop(),e=r-L.getScrollTop(),R0=L.getViewportHeight(),j0=c+e+n.row;if(j0<c||j0>=c+R0)L.scrollTo(Math.max(0,r+n.row-dZ)),e=r-L.getScrollTop(),j0=c+e+n.row;d?.({positions:x,rowOffset:c+e,currentIdx:u});let E0=R.current,D0=E0.prefixSum.at(-1)??0,U0=(E0.prefixSum[E0.ptr]??0)+u+1;I?.(D0,U0),m0(`highlight(i=${A}, ord=${u}/${x.length}): pos={row:${n.row},col:${n.col}} lo=${e} screenRow=${j0} badge=${U0}/${D0}`)}D.current=G0;let[M0,n0]=y.useState(0),y0=y.useCallback(()=>n0((H)=>H+1),[]);y.useEffect(()=>{let H=l.current;if(!H)return;let{idx:L,wantLast:A,tries:x}=H,u=Z.current;if(!u)return;let{getItemElement:n,getItemTop:r,scrollToIndex:c}=T.current,e=n(L),R0=e?.yogaNode?.getComputedHeight()??0;if(!e||R0===0){if(x>1){l.current=null,m0(`seek(i=${L}): no mount after scrollToIndex, skip`),w.current(A?-1:1);return}l.current={idx:L,wantLast:A,tries:x+1},c(L),y0();return}l.current=null,u.scrollTo(Math.max(0,r(L)-dZ));let j0=Z0?.(e)??[];if(o.current={msgIdx:L,positions:j0},m0(`seek(i=${L} t=${x}): ${j0.length} positions`),j0.length===0){if(++S.current>20){S.current=0;return}w.current(A?-1:1);return}S.current=0;let E0=A?j0.length-1:0;R.current.screenOrd=E0,t.current=-1,D.current(E0);let D0=W0.current;if(D0)W0.current=0,w.current(D0)},[M0]);function P0(H,L){let A=Z.current;if(!A)return;let x=T.current,{getItemElement:u,scrollToIndex:n}=x;if(H<0||H>=x.messages.length)return;d?.(null),o.current={msgIdx:-1,positions:[]},l.current={idx:H,wantLast:L,tries:0};let r=u(H),c=r?.yogaNode?.getComputedHeight()??0;if(r&&c>0)A.scrollTo(V0(H));else n(H);y0()}function T0(H){let L=R.current,{matches:A,prefixSum:x}=L,u=x.at(-1)??0;if(A.length===0)return;if(l.current){W0.current=H;return}if(t.current<0)t.current=L.ptr;let{positions:n}=o.current,r=L.screenOrd+H;if(r>=0&&r<n.length){L.screenOrd=r,G0(r),t.current=-1;return}let c=(L.ptr+H+A.length)%A.length;if(c===t.current){d?.(null),t.current=-1,m0(`step: wraparound at ptr=${c}, all ${A.length} msgs phantoms`);return}L.ptr=c,L.screenOrd=0,P0(A[c],H<0);let e=H<0?x[c+1]??u:x[c]+1;I?.(u,e)}w.current=T0,y.useImperativeHandle(M,()=>({jumpToIndex:(H)=>{let L=Z.current;if(L)L.scrollTo(V0(H))},setSearchQuery:(H)=>{l.current=null,o.current={msgIdx:-1,positions:[]},t.current=-1,d?.(null);let L=H.toLowerCase(),A=[],x=[0];if(L){let D0=T.current.messages;for(let U0=0;U0<D0.length;U0++){let k0=Y(D0[U0]),G=k0.indexOf(L),U=0;while(G>=0)U++,G=k0.indexOf(L,G+L.length);if(U>0)A.push(U0),x.push(x.at(-1)+U)}}let u=x.at(-1),n=0,r=Z.current,{offsets:c,start:e,getItemTop:R0}=T.current,j0=R0(e),E0=j0>=0?j0-c[e]:0;if(A.length>0&&r){let D0=s.current>=0?s.current:r.getScrollTop(),U0=1/0;for(let k0=0;k0<A.length;k0++){let G=Math.abs(E0+c[A[k0]]-D0);if(G<=U0)U0=G,n=k0}m0(`setSearchQuery('${H}'): ${A.length} msgs · ptr=${n} msgIdx=${A[n]} curTop=${D0} origin=${E0}`)}if(R.current={matches:A,ptr:n,screenOrd:0,prefixSum:x},A.length>0)P0(A[n],!0);else if(s.current>=0&&r)r.scrollTo(s.current);I?.(u,A.length>0?x[n+1]??u:0)},nextMatch:()=>T0(1),prevMatch:()=>T0(-1),setAnchor:()=>{let H=Z.current;if(H)s.current=H.getScrollTop()},disarmSearch:()=>{d?.(null),l.current=null,o.current={msgIdx:-1,positions:[]},t.current=-1},warmSearchIndex:async()=>{if(A0.current)return 0;let H=T.current.messages,L=500,A=0,x=performance.now();for(let n=0;n<H.length;n+=L){await jQ(0);let r=performance.now(),c=Math.min(n+L,H.length);for(let e=n;e<c;e++)Y(H[e]);A+=performance.now()-r}let u=Math.round(performance.now()-x);return m0(`warmSearchIndex: ${H.length} msgs · work=${Math.round(A)}ms wall=${u}ms chunks=${Math.ceil(H.length/L)}`),A0.current=!0,Math.round(A)}}),[Z]);let[l0,h0]=y.useState(null),b0=y.useRef({onItemClick:W,setHoveredKey:h0});b0.current={onItemClick:W,setHoveredKey:h0};let i0=y.useCallback((H,L)=>{let A=b0.current;if(!L&&A.onItemClick)A.onItemClick(H)},[]),t0=y.useCallback((H)=>{b0.current.setHoveredKey(H)},[]),_0=y.useCallback((H)=>{b0.current.setHoveredKey((L)=>L===H?null:L)},[]);return $(p0,{children:[B(b,{ref:k,height:f,flexShrink:0}),J.slice(Q0,X0).map((H,L)=>{let A=Q0+L,x=N[A],u=!!W&&(q?.(H)??!0),n=u&&l0===x,r=V?.(H);return B(YX,{itemKey:x,msg:H,idx:A,measureRef:E,expanded:r,hovered:n,clickable:u,onClickK:i0,onEnterK:t0,onLeaveK:_0,renderItem:X},x)}),J0>0&&B(b,{height:J0,flexShrink:0}),K&&B(BX,{messages:J,start:Q0,end:X0,offsets:H0,getItemTop:Y0,getItemElement:i,scrollRef:Z})]})}function BX({messages:J,start:Z,end:Q,offsets:z,getItemTop:X,getItemElement:W,scrollRef:q}){let{setStickyPrompt:V}=y.useContext(yZ),Y=y.useCallback((N)=>q.current?.subscribe(N)??VX,[q]);y.useSyncExternalStore(Y,()=>{let N=q.current;if(!N)return NaN;let P=N.getScrollTop()+N.getPendingDelta();return N.isSticky()?-1-P:P});let K=q.current?.isSticky()??!0,F=Math.max(0,(q.current?.getScrollTop()??0)+(q.current?.getPendingDelta()??0)),j=Z,v=-1;for(let N=Q-1;N>=Z;N--){let P=X(N);if(P>=0){if(P<F)break;v=P}j=N}let M=-1,I=null;if(j>0&&!K)for(let N=j-1;N>=0;N--){let P=WX(J[N]);if(P===null)continue;let f=X(N);if(f>=0&&f+1>=F)continue;M=N,I=P;break}let Z0=v>=0?v-z[j]:0,d=M>=0?Math.max(0,Z0+z[M]):-1,O=y.useRef({idx:-1,tries:0}),C=y.useRef("none"),_=y.useRef(-1);return y.useEffect(()=>{if(O.current.idx>=0)return;if(C.current==="armed"){C.current="force";return}let N=C.current==="force";if(C.current="none",!N&&_.current===M)return;if(_.current=M,I===null){V(null);return}let P=I.trimStart(),f=P.search(/\n\s*\n/),J0=(f>=0?P.slice(0,f):P).slice(0,XX).replace(/\s+/g," ").trim();if(J0===""){V(null);return}let E=M,k=d;V({text:J0,scrollTo:()=>{V("clicked"),C.current="armed";let H0=W(E);if(H0)q.current?.scrollToElement(H0,1);else q.current?.scrollTo(k),O.current={idx:E,tries:0}}})}),y.useEffect(()=>{if(O.current.idx<0)return;let N=W(O.current.idx);if(N)q.current?.scrollToElement(N,1),O.current={idx:-1,tries:0};else if(++O.current.tries>5)O.current={idx:-1,tries:0}}),null}var bQ,y,dZ=3,OQ,XX=500,AQ,VX=()=>{};var vQ=L0(()=>{wQ();f0();QX();LJ();ZX();JX();SZ();EQ();F0();bQ=w0(u0(),1),y=w0(I0(),1),OQ=new WeakMap;AQ=new WeakMap});function CX(J,Z){let Q=new Set(Z),z=new Set;return J.filter((X)=>{if(X.type==="system")return X.subtype!=="api_metrics";let W=X.message?.content[0];if(X.type==="assistant"){if(X.isApiErrorMessage)return!0;if(W?.type==="tool_use"&&W.name&&Q.has(W.name)){if("id"in W)z.add(W.id);return!0}return!1}if(X.type==="user"){if(W?.type==="tool_result")return W.tool_use_id!==void 0&&z.has(W.tool_use_id);return!X.isMeta}if(X.type==="attachment"){let q=X.attachment;return q?.type==="queued_command"&&q.commandMode==="prompt"&&!q.isMeta&&q.origin===void 0}return!1})}function vX(J,Z){let Q=new Set(Z),z=new Set,X=[],W=0;for(let q=0;q<J.length;q++){let V=J[q],Y=V.message?.content[0];if(V.type==="user"&&Y?.type!=="tool_result"&&!V.isMeta){W++;continue}if(V.type==="assistant"){if(Y?.type==="text")X[q]=W;else if(Y?.type==="tool_use"&&Y.name&&Q.has(Y.name))z.add(W)}}if(z.size===0)return J;return J.filter((q,V)=>{let Y=X[V];return Y===void 0||!z.has(Y)})}function kX(J,Z,Q=yX,z=_X){let X=Z.current,W=X?J.findIndex((Y)=>Y.uuid===X.uuid):-1,q=W>=0?W:X?Math.min(X.idx,Math.max(0,J.length-Q)):0;if(J.length-q>Q+z)q=J.length-Q;let V=J[q];if(V&&(X?.uuid!==V.uuid||X.idx!==q))Z.current={uuid:V.uuid,idx:q};else if(!V&&X)Z.current=null;return q}function _Q(J){return(J.type==="assistant"||J.type==="user"?g0(J):null)??J.uuid}function TX(J,Z){if(J.size!==Z.size)return!1;for(let Q of J)if(!Z.has(Q))return!1;return!0}function tJ(J,Z,Q,z,X,W){if(X==="transcript")return!0;switch(J.type){case"attachment":case"user":case"assistant":{if(J.type==="assistant"){let V=J.message.content[0];if(V?.type==="server_tool_use")return W.resolvedToolUseIDs.has(V.id)}let q=g0(J);if(!q)return!0;if(Z.has(q))return!1;if(Q.has(q))return!1;if(tQ(q,"PostToolUse",W))return!1;return FJ(z,W.resolvedToolUseIDs)}case"system":return J.subtype!=="api_error";case"grouped_tool_use":return J.messages.every((V)=>{let Y=V.message.content[0];return Y?.type==="tool_use"&&W.resolvedToolUseIDs.has(Y.id)});case"collapsed_read_search":return!1}return!1}var nQ,YZ,p,MX,EX=null,yQ=null,bX=null,cZ=30,yX=200,_X=50,SX=({messages:J,tools:Z,commands:Q,verbose:z,toolJSX:X,toolUseConfirmQueue:W,inProgressToolUseIDs:q,isMessageSelectorVisible:V,conversationId:Y,screen:K,streamingToolUses:F,showAllInTranscript:j=!1,agentDefinitions:v,onOpenRateLimitOptions:M,hideLogo:I=!1,isLoading:Z0,hidePastThinking:d=!1,streamingThinking:O,hasStreamingText:C=!1,isBriefOnly:_=!1,unseenDivider:N,scrollRef:P,trackStickyPrompt:f,jumpRef:J0,onSearchMatchesChange:E,scanElement:k,setPositions:H0,disableRenderCap:Y0=!1,cursor:i=null,setCursor:h,cursorNavRef:z0,renderRange:Q0})=>{let{columns:X0}=FZ(),O0=RQ("transcript:toggleShowAll","Transcript","Ctrl+E"),T=p.useMemo(()=>nZ(J).filter(lQ),[J]),l=p.useMemo(()=>{if(!O)return!1;if(O.isStreaming)return!0;if(O.streamingEndedAt)return Date.now()-O.streamingEndedAt<30000;return!1},[O]),o=p.useMemo(()=>{if(!d)return null;if(l)return"streaming";for(let G=T.length-1;G>=0;G--){let U=T[G];if(U?.type==="assistant"){let B0=U.message.content;for(let a=B0.length-1;a>=0;a--)if(B0[a]?.type==="thinking")return`${U.uuid}:${a}`}else if(U?.type==="user"){if(!U.message.content.some((a)=>a.type==="tool_result"))return"no-thinking"}}return null},[T,d,l]),t=p.useMemo(()=>{for(let G=T.length-1;G>=0;G--){let U=T[G];if(U?.type==="user"){let B0=U.message.content;for(let a of B0)if(a.type==="text"){let N0=a.text;if(N0.startsWith("<bash-stdout")||N0.startsWith("<bash-stderr"))return U.uuid}}}return null},[T]),S=p.useMemo(()=>sQ(T),[T]),W0=p.useMemo(()=>F.filter((G)=>!q.has(G.contentBlock.id)&&!S.has(G.contentBlock.id)),[F,q,S]),w=p.useMemo(()=>W0.flatMap((G)=>{let U=mQ({content:[G.contentBlock]});return U.uuid=TQ(G.contentBlock.id,0),nZ([U])}),[W0]),D=K==="transcript",R=p.useMemo(()=>SQ(process.env.CLAUDIN_DISABLE_VIRTUAL_SCROLL),[]),s=P!=null&&!R,A0=D&&!j&&!s,V0=p.useRef(null),{collapsed:G0,lookups:M0,hasTruncatedMessages:n0,hiddenMessageCount:y0}=p.useMemo(()=>{let G=z||c0()?T:iQ(T,{includeSnipped:!0}),U=rQ(G.filter((S0)=>S0.type!=="progress").filter((S0)=>!GZ(S0)).filter((S0)=>aQ(S0,D)),w),B0=[yQ,bX].filter((S0)=>S0!==null),a=[yQ].filter((S0)=>S0!==null),N0=B0.length>0&&!D?_?CX(U,B0):a.length>0?vX(U,a):U:U,C0=A0?N0.slice(-cZ):N0,VZ=A0&&N0.length>cZ,{messages:d0}=CJ(C0,Z,z),eQ=OJ(PJ(MJ(cQ(gQ(d0,Z)))),z),Zz=oQ(T,C0),Jz=U.length-cZ;return{collapsed:eQ,lookups:Zz,hasTruncatedMessages:VZ,hiddenMessageCount:Jz}},[z,T,D,w,A0,Z,_]),P0=p.useMemo(()=>{let U=!s&&!Y0?kX(G0,V0):0;return Q0?G0.slice(Q0[0],Q0[1]):U>0?G0.slice(U):G0},[G0,Q0,s,Y0]),T0=p.useMemo(()=>new Set(F.map((G)=>G.contentBlock.id)),[F]),l0=xQ((G)=>G.tasks),h0=M0.asyncLaunchedToolUseIDs,b0=p.useMemo(()=>{if(h0.size===0)return null;let G=new Set;for(let[U,B0]of h0){let a=l0?.[B0]?.status;if(a==="running"||a==="requested"||a==="queued")G.add(U)}return G.size>0?G:null},[l0,h0]),i0=p.useMemo(()=>{if(!b0)return q;let G=new Set(q);for(let U of b0)G.add(U);return G},[q,b0]),t0=p.useMemo(()=>{if(!N)return-1;let G=N.firstUnseenUuid.slice(0,24);return P0.findIndex((U)=>U.uuid.slice(0,24)===G)},[N,P0]),_0=p.useMemo(()=>{if(!i)return-1;return P0.findIndex((G)=>G.uuid===i.uuid)},[i,P0]),[H,L]=p.useState(()=>new Set),A=p.useCallback((G)=>{let U=_Q(G);L((B0)=>{let a=new Set(B0);if(a.has(U))a.delete(U);else a.add(U);return a})},[]),x=p.useCallback((G)=>H.size>0&&H.has(_Q(G)),[H]),u=p.useRef(M0);u.current=M0;let n=p.useCallback((G)=>{if(G.type==="collapsed_read_search")return!0;if(G.type==="assistant"){let N0=G.message.content[0];return N0!=null&&fQ(N0)&&N0.type==="advisor_tool_result"&&N0.content.type==="advisor_result"}if(G.type!=="user")return!1;let U=G.message.content[0];if(U?.type!=="tool_result"||U.is_error||!G.toolUseResult)return!1;let B0=u.current.toolUseByToolUseID.get(U.tool_use_id)?.name;return(B0?mZ(Z,B0):void 0)?.isResultTruncated?.(G.toolUseResult)??!1},[Z]),r=(!X||!!X.shouldContinueAnimation)&&!W.length&&!V,c=i0.size>0,{progress:e}=hQ(),R0=p.useRef(null),j0=PZ().terminalProgressBarEnabled&&!kQ()&&!(EX?.isProactiveActive()??!1);p.useEffect(()=>{let G=j0?c?"indeterminate":"completed":null;if(R0.current===G)return;R0.current=G,e(G)},[e,j0,c]),p.useEffect(()=>{return()=>e(null)},[e]);let E0=p.useCallback((G)=>`${G.uuid}-${Y}`,[Y]),D0=(G,U)=>{if(G.type==="progress")return null;let B0=U>0?P0[U-1]?.type:void 0,a=G.type==="user"&&B0==="user",N0=G.type==="collapsed_read_search"&&(C||aJ(P0,U,Z,T0)),C0=E0(G),VZ=B(rJ,{message:G,isUserContinuation:a,hasContentAfter:N0,tools:Z,commands:Q,verbose:z||x(G)||i?.expanded===!0&&U===_0,inProgressToolUseIDs:i0,streamingToolUseIDs:T0,screen:K,canAnimate:r,onOpenRateLimitOptions:M,lastThinkingBlockId:o,latestBashOutputUUID:t,columns:X0,isLoading:Z0,lookups:M0},C0),d0=B($Q.Provider,{value:U===_0,children:VZ},C0);if(N&&U===t0)return[B(b,{marginTop:1,children:B(DZ,{title:`${N.count} new ${LZ(N.count,"message")}`,width:X0,color:"inactive"})},"unseen-divider"),d0];return d0},U0=p.useRef(new WeakMap),k0=p.useCallback((G)=>{let U=U0.current.get(G);if(U!==void 0)return U;let B0=AZ(G);if(G.type==="user"&&G.toolUseResult&&Array.isArray(G.message.content)){let N0=G.message.content.find((C0)=>C0.type==="tool_result");if(N0&&"tool_use_id"in N0){let C0=M0.toolUseByToolUseID.get(N0.tool_use_id),d0=(C0&&mZ(Z,C0.name))?.extractSearchText?.(G.toolUseResult);if(d0!==void 0)B0=d0}}let a=B0.toLowerCase();return U0.current.set(G,a),a},[Z,M0]);return $(p0,{children:[!I&&!(Q0&&Q0[0]>0)&&B(MX,{agentDefinitions:v}),n0&&B(DZ,{title:`${O0} to show ${gZ.bold(y0)} previous messages`,width:X0}),D&&j&&y0>0&&!Y0&&B(DZ,{title:`${O0} to hide ${gZ.bold(y0)} previous messages`,width:X0}),s?B(uQ.Provider,{value:!0,children:B(CQ,{messages:P0,scrollRef:P,columns:X0,itemKey:E0,renderItem:D0,onItemClick:A,isItemClickable:n,isItemExpanded:x,trackStickyPrompt:f,selectedIndex:_0>=0?_0:void 0,cursorNavRef:z0,setCursor:h,jumpRef:J0,onSearchMatchesChange:E,scanElement:k,setPositions:H0,extractSearchText:k0})}):P0.flatMap(D0),C&&!_&&B(IX,{}),l&&O&&!_&&B(b,{marginTop:1,children:B(dQ,{param:{type:"thinking",thinking:O.thinking},addMargin:!1,isTranscriptMode:!0,verbose:z,hideInTranscript:!1})})]})},IX=()=>{let J=lZ();if(!J)return null;return B(b,{alignItems:"flex-start",flexDirection:"row",marginTop:1,width:"100%",children:$(b,{flexDirection:"row",children:[B(b,{minWidth:2,children:B(g,{color:"text",children:IQ})}),B(b,{flexDirection:"column",children:B(pQ,{children:J})})]})})},l8;var sJ=L0(()=>{LX();KJ();HX();FX();qJ();NX();f0();wX();AX();KX();PX();AJ();DJ();UX();cJ();EJ();HQ();GX();vZ();vJ();OZ();XJ();SZ();OX();jX();iZ();oJ();EQ();DX();CZ();gJ();FQ();vQ();F0();nQ=w0(u0(),1),YZ=w0(I0(),1),p=w0(I0(),1),MX=YZ.memo(function(Z){let Q=nQ.c(3),{agentDefinitions:z}=Z,X;if(Q[0]===Symbol.for("react.memo_cache_sentinel"))X=null,Q[0]=X;else X=Q[0];let W;if(Q[1]!==z)W=B(e0,{children:$(b,{flexDirection:"column",gap:1,children:[X,B(YZ.Suspense,{fallback:null,children:B(LQ,{agentDefinitions:z})})]})}),Q[1]=z,Q[2]=W;else W=Q[2];return W});l8=YZ.memo(SX,(J,Z)=>{let Q=Object.keys(J);for(let z of Q){if(z==="onOpenRateLimitOptions"||z==="scrollRef"||z==="trackStickyPrompt"||z==="setCursor"||z==="cursorNavRef"||z==="jumpRef"||z==="onSearchMatchesChange"||z==="scanElement"||z==="setPositions")continue;if(J[z]!==Z[z]){if(z==="streamingToolUses"){let X=J.streamingToolUses,W=Z.streamingToolUses;if(X.length===W.length&&X.every((q,V)=>q.contentBlock===W[V]?.contentBlock))continue}if(z==="inProgressToolUseIDs"){if(TX(J.inProgressToolUseIDs,Z.inProgressToolUseIDs))continue}if(z==="unseenDivider"){let X=J.unseenDivider,W=Z.unseenDivider;if(X?.firstUnseenUuid===W?.firstUnseenUuid&&X?.count===W?.count)continue}if(z==="tools"){let X=J.tools,W=Z.tools;if(X.length===W.length&&X.every((q,V)=>q.name===W[V]?.name))continue}return!1}}return!0})});
|
|
12
|
+
export{s0 as bf,RX as cf,iZ as df,uX as ef,pX as ff,JJ as gf,XW as hf,WW as if,qW as jf,LJ as kf,l8 as lf,sJ as mf};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{H1 as K,g0 as Z,k2 as k}from"./cli-1.1.24-vf59rwy3.mjs";import{J4 as J,K4 as H}from"./cli-1.1.24-9dnr05fm.mjs";import{a$ as v,b$ as Y}from"./cli-1.1.24-pe23qamd.mjs";import{Wta as V,_ta as X}from"./cli-1.1.24-hty94kzp.mjs";function N(M){let b=L.c(5),{status:P,withSpace:D}=M,Q=D===void 0?!1:D,q=A[P],z=!q.color,B=Q&&" ",y;if(b[0]!==q.color||b[1]!==q.icon||b[2]!==z||b[3]!==B)y=J(K,{color:q.color,dimColor:z,children:[q.icon,B]}),b[0]=q.color,b[1]=q.icon,b[2]=z,b[3]=B,b[4]=y;else y=b[4];return y}var L,A;var C=X(()=>{Y();k();H();L=V(Z(),1),A={success:{icon:v.tick,color:"success"},error:{icon:v.cross,color:"error"},warning:{icon:v.warning,color:"warning"},info:{icon:v.info,color:"suggestion"},pending:{icon:v.circle,color:void 0},loading:{icon:"…",color:void 0}}});
|
|
2
|
+
export{N as Nh,C as Oh};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{Zta as x,_ta as z}from"./cli-1.1.24-hty94kzp.mjs";var H={};x(H,{toInfraSessionId:()=>G,toCompatSessionId:()=>F,setCseShimGate:()=>A});function A(j){q=j}function F(j){if(!j.startsWith("cse_"))return j;if(q&&!q())return j;return"session_"+j.slice(4)}function G(j){if(!j.startsWith("session_"))return j;return"cse_"+j.slice(8)}var q;var J=()=>{};
|
|
2
|
+
export{A as a3,F as b3,G as c3,H as d3,J as e3};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{Hb as Y}from"./cli-1.1.24-vwmxvbv9.mjs";import{hX as N,iX as O}from"./cli-1.1.24-mwva78xt.mjs";import{vha as A,xha as C}from"./cli-1.1.24-pe23qamd.mjs";import{Eka as G,Hka as K}from"./cli-1.1.24-prprq6xe.mjs";import{Hla as X,Kla as w,lla as x,pla as j}from"./cli-1.1.24-zey4mks2.mjs";import{fma as L,mma as E}from"./cli-1.1.24-eh4c00hd.mjs";K();O();import{randomUUID as T}from"crypto";w();C();E();j();function h(H){return H!==null&&typeof H==="object"&&"type"in H&&typeof H.type==="string"}function P(H){return H!==null&&typeof H==="object"&&"type"in H&&H.type==="control_response"&&"response"in H}function S(H){return H!==null&&typeof H==="object"&&"type"in H&&H.type==="control_request"&&"request_id"in H&&"request"in H}function v(H){if((H.type==="user"||H.type==="assistant")&&H.isVirtual)return!1;return H.type==="user"||H.type==="assistant"||H.type==="system"&&H.subtype==="local_command"}function q(H){if(H.type!=="user"||H.isMeta||H.toolUseResult||H.isCompactSummary)return;if(H.origin&&H.origin.kind!=="human")return;let Z=H.message.content,V;if(typeof Z==="string")V=Z;else for(let $ of Z)if($.type==="text"){V=$.text;break}if(!V)return;return A(V)||void 0}function p(H,Z,V,f,$,B){try{let J=Y(x(H));if(P(J)){X("[bridge:repl] Ingress message type=control_response"),$?.(J);return}if(S(J)){X(`[bridge:repl] Inbound control_request subtype=${J.request.subtype}`),B?.(J);return}if(!h(J))return;let Q="uuid"in J&&typeof J.uuid==="string"?J.uuid:void 0;if(Q&&Z.has(Q)){X(`[bridge:repl] Ignoring echo: type=${J.type} uuid=${Q}`);return}if(Q&&V.has(Q)){X(`[bridge:repl] Ignoring re-delivered inbound: type=${J.type} uuid=${Q}`);return}if(X(`[bridge:repl] Ingress message type=${J.type}${Q?` uuid=${Q}`:""}`),J.type==="user"){if(Q)V.add(Q);G("",{is_repl:!0}),f?.(J)}else X(`[bridge:repl] Ignoring non-user inbound message: type=${J.type}`)}catch(J){X(`[bridge:repl] Failed to parse ingress message: ${L(J)}`)}}var y="This session is outbound-only. Enable Remote Control locally to allow inbound control.";function g(H,Z){let{transport:V,sessionId:f,outboundOnly:$,onInterrupt:B,onSetModel:J,onSetMaxThinkingTokens:Q,onSetPermissionMode:_}=Z;if(!V){X("[bridge:repl] Cannot respond to control_request: transport not configured");return}let W;if($&&H.request.subtype!=="initialize"){W={type:"control_response",response:{subtype:"error",request_id:H.request_id,error:y}};let z={...W,session_id:f};V.write(z),X(`[bridge:repl] Rejected ${H.request.subtype} (outbound-only) request_id=${H.request_id}`);return}switch(H.request.subtype){case"initialize":W={type:"control_response",response:{subtype:"success",request_id:H.request_id,response:{commands:[],output_style:"normal",available_output_styles:["normal"],models:[],account:{},pid:process.pid}}};break;case"set_model":J?.(H.request.model),W={type:"control_response",response:{subtype:"success",request_id:H.request_id}};break;case"set_max_thinking_tokens":Q?.(H.request.max_thinking_tokens),W={type:"control_response",response:{subtype:"success",request_id:H.request_id}};break;case"set_permission_mode":{let z=_?.(H.request.mode)??{ok:!1,error:"set_permission_mode is not supported in this context (onSetPermissionMode callback not registered)"};if(z.ok)W={type:"control_response",response:{subtype:"success",request_id:H.request_id}};else W={type:"control_response",response:{subtype:"error",request_id:H.request_id,error:z.error}};break}case"interrupt":B?.(),W={type:"control_response",response:{subtype:"success",request_id:H.request_id}};break;default:W={type:"control_response",response:{subtype:"error",request_id:H.request_id,error:`REPL bridge does not handle control_request subtype: ${H.request.subtype}`}}}let k={...W,session_id:f};V.write(k),X(`[bridge:repl] Sent control_response for ${H.request.subtype} request_id=${H.request_id} result=${W.response.subtype}`)}function i(H){return{type:"result",subtype:"success",duration_ms:0,duration_api_ms:0,is_error:!1,num_turns:0,result:"",stop_reason:null,total_cost_usd:0,usage:{...N},modelUsage:{},permission_denials:[],session_id:H,uuid:T()}}class R{capacity;ring;set=new Set;writeIdx=0;constructor(H){this.capacity=H,this.ring=Array(H)}add(H){if(this.set.has(H))return;let Z=this.ring[this.writeIdx];if(Z!==void 0)this.set.delete(Z);this.ring[this.writeIdx]=H,this.set.add(H),this.writeIdx=(this.writeIdx+1)%this.capacity}has(H){return this.set.has(H)}clear(){this.set.clear(),this.ring.fill(void 0),this.writeIdx=0}}
|
|
2
|
+
export{v as Bb,q as Cb,p as Db,g as Eb,i as Fb,R as Gb};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{_ta as n}from"./cli-1.1.24-hty94kzp.mjs";function o(){return{}}function e(){return null}async function i(){}function g(){return!1}function r(){}function u(){}function f(){}async function l(){}var t=()=>{};
|
|
2
|
+
export{o as WV,e as XV,i as YV,g as ZV,r as _V,u as $V,f as aW,l as bW,t as cW};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{bg as A,cg as J,dg as $,gg as G}from"./cli-1.1.24-wx6qsawc.mjs";import{Ffa as O,Ifa as R,aga as b,bga as w,fga as S,gga as C,nga as x,zga as h}from"./cli-1.1.24-pe23qamd.mjs";import{Dka as m,uka as N}from"./cli-1.1.24-7ae9t2qz.mjs";import{Ama as D,pma as F}from"./cli-1.1.24-8s7nf1y6.mjs";import{_ta as E}from"./cli-1.1.24-hty94kzp.mjs";import{existsSync as T}from"fs";import{dirname as f}from"path";function M(q,z,Q={}){if(!T(q))return{outcome:"noSource",copiedKeys:0};let B=A(q);if(!B)return{outcome:"unparseableSource",copiedKeys:0};let L=T(z),U=L?A(z)??{}:{},I={...U},W=0;for(let V of Q.keys??Object.keys(B)){if(!(V in B))continue;if(V in U)continue;I[V]=B[V],W+=1}if(W===0&&L)return{outcome:"merged",copiedKeys:0};try{$(f(z)),J(z,I)}catch(V){return{outcome:"writeFailed",copiedKeys:0,message:V instanceof Error?V.message:String(V)}}return{outcome:"merged",copiedKeys:W}}var k=E(()=>{G()});import{chmodSync as v,existsSync as _,readFileSync as j,writeFileSync as y}from"fs";import{homedir as H}from"os";import{join as Z}from"path";function P(q){return Z(q,".claude")}function d(q,z,Q,B){let L=Z(q,".credentials.json"),U=Z(z,".credentials.json");if(!_(L))return 0;try{if(_(U)){let W=j(L),V=j(U);if(W.equals(V))return v(U,384),0;return B.push(`${U} already exists with different content — kept new file untouched`),0}$(z);let I=j(L);return y(U,I),v(U,384),g(I)}catch(I){return Q.push(`failed to copy .credentials.json: ${I instanceof Error?I.message:String(I)}`),0}}function g(q){try{let z=JSON.parse(q.toString("utf8"));if(z&&typeof z==="object")return Object.keys(z).length}catch{}return 1}function c(q,z,Q){let B=M(Z(q,"settings.json"),Z(z,"settings.json"),{keys:u});if(B.outcome==="unparseableSource")Q.push("legacy settings.json could not be parsed; skipped");else if(B.outcome==="writeFailed")Q.push(`failed to write settings.json: ${B.message}`);return B.copiedKeys}function K(q){return Z(q,`.claude${N()}.json`)}function l(q){return Z(q,`config${N()}.json`)}function p(q,z,Q){let B=K(q),L=l(z),U=M(B,L);if(U.outcome==="unparseableSource")return Q.push(`legacy ${B} could not be parsed; skipped`),0;if(U.outcome==="writeFailed")return Q.push(`failed to write ${L}: ${U.message}`),0;if(U.outcome==="noSource")return 0;return b(null),U.copiedKeys}function a(){let z=R().claudeToClaudinMigratedAt;if(typeof z==="string"&&z.length>0)return{migrated:!0,at:z};return{migrated:!1}}function n(q){O((z)=>({...z,claudeToClaudinMigratedAt:q}))}async function Zq(q={}){let z=q.homeDir??H(),Q=P(z),B=q.newDir??F(),L=[],U=[],I={tokens:0,settingsKeys:0,globalConfigKeys:0,anthropicProfileCreated:!1,errors:L,warnings:U,alreadyMigrated:!1,legacyDir:Q,newDir:B},W=_(K(z));if(!_(Q)&&!W)return I;let V=a();if(V.migrated&&!q.force)return I.alreadyMigrated=!0,I.migratedAt=V.at,I;try{$(B)}catch(Y){return L.push(`failed to create ${B}: ${Y instanceof Error?Y.message:String(Y)}`),I}if(_(Q))I.tokens=d(Q,B,L,U),I.settingsKeys=c(Q,B,L);if(I.globalConfigKeys=p(z,B,U),I.anthropicProfileCreated=i(B,I.tokens,U),L.length===0){let Y=new Date().toISOString();n(Y),I.migratedAt=Y}return I}function i(q,z,Q){if(z<=0)return!1;let B=Z(q,".credentials.json"),L;try{L=JSON.parse(j(B,"utf8"))}catch(X){return Q.push(`failed to read migrated .credentials.json for profile bootstrap: ${X instanceof Error?X.message:String(X)}`),!1}let I=L?.claudeAiOauth?.accessToken;if(typeof I!=="string"||I.length===0)return!1;let W=C();if(W.some((X)=>X.provider==="anthropic"))return!1;let V=S("anthropic"),Y={provider:"anthropic",name:V.name,baseUrl:V.baseUrl,model:V.model};try{if(!x(Y,{makeActive:W.length===0}))return Q.push("anthropic profile could not be saved after migration"),!1;return!0}catch(X){return Q.push(`failed to create anthropic profile: ${X instanceof Error?X.message:String(X)}`),!1}}function _q(q){if(q.alreadyMigrated)return`nothing to do (last run: ${q.migratedAt??"unknown"}). Pass --force to re-run.`;let z=[];z.push(`${q.tokens} token${q.tokens===1?"":"s"}`),z.push(`${q.settingsKeys} settings key${q.settingsKeys===1?"":"s"}`),z.push(`${q.globalConfigKeys} global config key${q.globalConfigKeys===1?"":"s"}`),z.push(q.anthropicProfileCreated?"anthropic profile created":"anthropic profile already present");let Q=z.join(", "),B=`. ${q.legacyDir} kept untouched. Run /import to bring skills, MCP servers, agents and commands.`,L=`${Q}${B}`;if(q.warnings.length>0)L+=` Warnings: ${q.warnings.join("; ")}`;if(q.errors.length>0)L+=` Errors: ${q.errors.join("; ")}`;return L}function o(q=H()){return _(P(q))}function t(q=H()){return _(K(q))}function $q(q=H()){let z=R();if(z.claudeToClaudinMigratedAt)return!1;if(z.legacyMigrationSkipped===!0)return!1;return o(q)||t(q)}function jq(){O((q)=>({...q,legacyMigrationSkipped:!0}))}var u;var s=E(()=>{m();w();G();k();D();h();u=["customApiKeyResponses","providerProfiles","activeProviderProfileId"]});
|
|
2
|
+
export{Zq as ad,_q as bd,o as cd,$q as dd,jq as ed,s as fd};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{xc as t,yc as DJ}from"./cli-1.1.24-6rneem3p.mjs";import{pi as r,qi as IJ}from"./cli-1.1.24-9tw7bj9k.mjs";import{$E as o,$m as wJ,Ez as c,Fm as d,Fz as MJ,JS as h,KH as s,Km as _J,Mx as XJ,OE as YJ,OH as yJ,PH as l,QH as TJ,VE as jJ,VO as $J,Vm as m,WE as PJ,Xj as p,aF as xJ,go as JJ,lG as a,mG as LJ,mU as bJ,pm as g,sm as UJ}from"./cli-1.1.24-2qkkzsk3.mjs";import{nW as u,oW as f,zW as BJ}from"./cli-1.1.24-3n53gv32.mjs";import{K7 as QJ}from"./cli-1.1.24-dw6eynz7.mjs";import{Bha as U,Eea as I,Jha as k,Qea as D,Rea as zJ,Yaa as KJ,sha as A,tha as NJ}from"./cli-1.1.24-pe23qamd.mjs";import{Tia as GJ}from"./cli-1.1.24-gb39akdj.mjs";import{Eka as b,Hka as C}from"./cli-1.1.24-prprq6xe.mjs";import{Hla as y,Kla as WJ,pla as qJ,tla as W,xla as VJ}from"./cli-1.1.24-zey4mks2.mjs";import{mma as e}from"./cli-1.1.24-eh4c00hd.mjs";import{Ama as ZJ,pma as _}from"./cli-1.1.24-8s7nf1y6.mjs";import{Wpa as F,dsa as S,lpa as H}from"./cli-1.1.24-bnm1yphs.mjs";import{Xta as CJ}from"./cli-1.1.24-hty94kzp.mjs";xJ();IJ();S();GJ();C();KJ();h();QJ();qJ();$J();JJ();k();e();h();XJ();YJ();function j(){}S();C();NJ();WJ();ZJ();VJ();MJ();k();LJ();_J();bJ();TJ();BJ();zJ();wJ();UJ();import{join as Z}from"path";var AJ=30;function N(){let q=((I()||{}).cleanupPeriodDays??AJ)*24*60*60*1000;return new Date(Date.now()-q)}function i(X,J){return{messages:X.messages+J.messages,errors:X.errors+J.errors}}function vJ(X){let J=X.split(".")[0].replace(/T(\d{2})-(\d{2})-(\d{2})-(\d{3})Z/,"T$1:$2:$3.$4Z");return new Date(J)}async function P(X,J,q){let $={messages:0,errors:0};try{let G=await W().readdir(X);for(let K of G)try{if(vJ(K.name)<J)if(await W().unlink(Z(X,K.name)),q)$.messages++;else $.errors++}catch(Y){U(Y)}}catch(G){if(G instanceof Error&&"code"in G&&G.code!=="ENOENT")U(G)}return $}async function HJ(){let X=W(),J=N(),q=A.errors(),$=A.baseLogs(),G=await P(q,J,!1);try{let K;try{K=await X.readdir($)}catch{return G}let Y=K.filter((Q)=>Q.isDirectory()&&Q.name.startsWith("mcp-logs-")).map((Q)=>Z($,Q.name));for(let Q of Y)G=i(G,await P(Q,J,!0)),await V(Q,X)}catch(K){if(K instanceof Error&&"code"in K&&K.code!=="ENOENT")U(K)}return G}async function w(X,J,q){if((await q.stat(X)).mtime<J)return await q.unlink(X),!0;return!1}async function V(X,J){try{await J.rmdir(X)}catch{}}async function FJ(){let X=N(),J={messages:0,errors:0},q=p(),$=W(),G;try{G=await $.readdir(q)}catch{return J}for(let K of G){if(!K.isDirectory())continue;let Y=Z(q,K.name),Q;try{Q=await $.readdir(Y)}catch{J.errors++;continue}for(let z of Q)if(z.isFile()){if(!z.name.endsWith(".jsonl")&&!z.name.endsWith(".cast"))continue;try{if(await w(Z(Y,z.name),X,$))J.messages++}catch{J.errors++}}else if(z.isDirectory()){let L=Z(Y,z.name),B=Z(L,m),O;try{O=await $.readdir(B)}catch{await V(L,$);continue}for(let M of O)if(M.isFile())try{if(await w(Z(B,M.name),X,$))J.messages++}catch{J.errors++}else if(M.isDirectory()){let T=Z(B,M.name),R;try{R=await $.readdir(T)}catch{continue}for(let E of R){if(!E.isFile())continue;try{if(await w(Z(T,E.name),X,$))J.messages++}catch{J.errors++}}await V(T,$)}await V(B,$),await V(L,$)}await V(Y,$)}return J}async function x(X,J,q=!0){let $=N(),G={messages:0,errors:0},K=W(),Y;try{Y=await K.readdir(X)}catch{return G}for(let Q of Y){if(!Q.isFile()||!Q.name.endsWith(J))continue;try{if(await w(Z(X,Q.name),$,K))G.messages++}catch{G.errors++}}if(q)await V(X,K);return G}async function OJ(){let X=d(),J=await x(X,".md"),q=Z(_(),"plans");if(q!==X){let $=await x(q,".md");return i(J,$)}return J}async function RJ(){let X=N(),J={messages:0,errors:0},q=W();try{let $=_(),G=Z($,"file-history"),K;try{K=await q.readdir(G)}catch{return J}let Y=K.filter((Q)=>Q.isDirectory()).map((Q)=>Z(G,Q.name));await Promise.all(Y.map(async(Q)=>{try{if((await q.stat(Q)).mtime<X)await q.rm(Q,{recursive:!0,force:!0}),J.messages++}catch{J.errors++}})),await V(G,q)}catch($){U($)}return J}async function EJ(){let X=N(),J={messages:0,errors:0},q=W();try{let $=_(),G=Z($,"session-env"),K;try{K=await q.readdir(G)}catch{return J}let Y=K.filter((Q)=>Q.isDirectory()).map((Q)=>Z(G,Q.name));for(let Q of Y)try{if((await q.stat(Q)).mtime<X)await q.rm(Q,{recursive:!0,force:!0}),J.messages++}catch{J.errors++}await V(G,q)}catch($){U($)}return J}async function kJ(){let X=N(),J={messages:0,errors:0},q=W();try{let $=Z(_(),"tasks"),G=f(u()),K;try{K=await q.readdir($)}catch{return J}for(let Y of K){if(!Y.isDirectory()||Y.name===G)continue;let Q=Z($,Y.name);try{if(await hJ(Q,q)<X)await q.rm(Q,{recursive:!0,force:!0}),J.messages++}catch{J.errors++}}await V($,q)}catch($){U($)}return J}async function hJ(X,J){let q=(await J.stat(X)).mtime,$=await J.readdir(X).catch(()=>[]);for(let G of $){if(!G.isFile())continue;try{let{mtime:K}=await J.stat(Z(X,G.name));if(K>q)q=K}catch{}}return q}async function SJ(){let X=N(),J={messages:0,errors:0},q=W(),$=Z(_(),"debug"),G;try{G=await q.readdir($)}catch{return J}for(let K of G){if(!K.isFile()||!K.name.endsWith(".txt")||K.name==="latest")continue;try{if(await w(Z($,K.name),X,q))J.messages++}catch{J.errors++}}return J}async function n(){let{errors:X}=l();if(X.length>0&&D("cleanupPeriodDays")){y("Skipping cleanup: settings have validation errors but cleanupPeriodDays was explicitly set. Fix settings errors to enable cleanup.");return}await HJ(),await FJ(),await OJ(),await RJ(),await EJ(),await kJ(),await SJ(),await c(),await a(N());let J=await g(N());if(J>0)b("",{removed:J})}yJ();DJ();var pJ=(PJ(),CJ(jJ));var v=600000;function mX(){r(),j(),pJ.initExtractMemories(),o(),t();let X=!0;async function J(){if(F()&&H()>Date.now()-60000){setTimeout(J,v).unref();return}if(X)X=!1,await n();if(F()&&H()>Date.now()-60000){setTimeout(J,v).unref();return}await s()}setTimeout(J,v).unref()}
|
|
2
|
+
export{mX as Ka};
|