@claudiolabs/claudio 0.1.11 → 0.1.13
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/bin/claudio +7 -0
- package/dist/chunks/AgentTool-0.1.13-yacqe6gs.mjs +1 -0
- package/dist/chunks/App-0.1.13-45tpe56w.mjs +1 -0
- package/dist/chunks/ApproveApiKey-0.1.13-rvk3ghpz.mjs +1 -0
- package/dist/chunks/{AssistantSessionChooser-0.1.11-kb5jvw8n.mjs → AssistantSessionChooser-0.1.13-tcg2ckh4.mjs} +1 -1
- package/dist/chunks/AutoModeOptInDialog-0.1.13-4qkeekab.mjs +1 -0
- package/dist/chunks/BypassPermissionsModeDialog-0.1.13-wpjjxqtw.mjs +1 -0
- package/dist/chunks/ClaudeInChromeOnboarding-0.1.13-k8349mz5.mjs +1 -0
- package/dist/chunks/ClaudeMdExternalIncludesDialog-0.1.13-jg36gq05.mjs +1 -0
- package/dist/chunks/ConsoleOAuthFlow-0.1.13-svk1vdbj.mjs +1 -0
- package/dist/chunks/DiffDialog-0.1.13-3a9b1b48.mjs +3 -0
- package/dist/chunks/Doctor-0.1.13-zktnx7ce.mjs +1 -0
- package/dist/chunks/Grove-0.1.13-1hnmb7jn.mjs +1 -0
- package/dist/chunks/ITermBackend-0.1.13-esbr21j4.mjs +1 -0
- package/dist/chunks/{InProcessTransport-0.1.11-xecmx0sw.mjs → InProcessTransport-0.1.13-k5mkjvww.mjs} +1 -1
- package/dist/chunks/InvalidConfigDialog-0.1.13-7wr7g7vx.mjs +1 -0
- package/dist/chunks/InvalidSettingsDialog-0.1.13-j8t2pnak.mjs +1 -0
- package/dist/chunks/MigrationDialog-0.1.13-jd2k6vk6.mjs +1 -0
- package/dist/chunks/Onboarding-0.1.13-j8d7hwbe.mjs +1 -0
- package/dist/chunks/ProviderManager-0.1.13-qcfa4ppx.mjs +1 -0
- package/dist/chunks/REPL-0.1.13-zpcaf2zq.mjs +1 -0
- package/dist/chunks/ResumeConversation-0.1.13-nwwjp69z.mjs +1 -0
- package/dist/chunks/{SnapshotUpdateDialog-0.1.11-h881m192.mjs → SnapshotUpdateDialog-0.1.13-has41zv0.mjs} +1 -1
- package/dist/chunks/TeleportProgress-0.1.13-ssgexm6r.mjs +1 -0
- package/dist/chunks/TeleportRepoMismatchDialog-0.1.13-r95sr8bp.mjs +1 -0
- package/dist/chunks/TeleportResumeWrapper-0.1.13-1qxft9es.mjs +1 -0
- package/dist/chunks/TmuxBackend-0.1.13-jf14wbka.mjs +9 -0
- package/dist/chunks/ToolSearchTool-0.1.13-xzmz0wz4.mjs +1 -0
- package/dist/chunks/TrustDialog-0.1.13-pegd35qh.mjs +1 -0
- package/dist/chunks/activeProvider-0.1.13-n3mrppkb.mjs +1 -0
- package/dist/chunks/add-dir-0.1.13-3zm44vdy.mjs +1 -0
- package/dist/chunks/agents-0.1.13-a0aj4df9.mjs +111 -0
- package/dist/chunks/agents-0.1.13-phdd6357.mjs +3 -0
- package/dist/chunks/api-0.1.13-vmdan95h.mjs +1 -0
- package/dist/chunks/{asciicast-0.1.11-7mkaazy8.mjs → asciicast-0.1.13-d6ce2h4r.mjs} +1 -1
- package/dist/chunks/assistant-0.1.13-y9yer51w.mjs +1 -0
- package/dist/chunks/{auth-0.1.11-p47wajra.mjs → auth-0.1.13-fwdmg15h.mjs} +1 -1
- package/dist/chunks/auth-0.1.13-gw7n7j0w.mjs +1 -0
- package/dist/chunks/{autoMode-0.1.11-nv8vsag0.mjs → autoMode-0.1.13-4xh49kt4.mjs} +1 -1
- package/dist/chunks/backgroundHousekeeping-0.1.13-tagm38w5.mjs +1 -0
- package/dist/chunks/branch-0.1.13-hjmxvn3n.mjs +4 -0
- package/dist/chunks/{bridgePointer-0.1.11-wr8dfs91.mjs → bridgePointer-0.1.13-s1qw0857.mjs} +1 -1
- package/dist/chunks/btw-0.1.13-ggywf7w1.mjs +1 -0
- package/dist/chunks/{buddy-0.1.11-gsj76spy.mjs → buddy-0.1.13-2wvpbqx1.mjs} +1 -1
- package/dist/chunks/{cacache-0.1.11-wtz0ca19.mjs → cacache-0.1.13-sy5bqn6j.mjs} +1 -1
- package/dist/chunks/{cache-probe-0.1.11-pgsemwpr.mjs → cache-probe-0.1.13-ze8mf958.mjs} +1 -1
- package/dist/chunks/{cacheStats-0.1.11-1zqq6pm7.mjs → cacheStats-0.1.13-jtrw4rdj.mjs} +1 -1
- package/dist/chunks/caches-0.1.13-0swwryxr.mjs +1 -0
- package/dist/chunks/chrome-0.1.13-ztyyyz4s.mjs +1 -0
- package/dist/chunks/{chromeNativeHost-0.1.11-m5kskzjw.mjs → chromeNativeHost-0.1.13-96ex7t46.mjs} +1 -1
- package/dist/chunks/{claude-for-chrome-mcp-0.1.11-h99xhv8j.mjs → claude-for-chrome-mcp-0.1.13-6hy7w25p.mjs} +1 -1
- package/dist/chunks/{claudeDesktop-0.1.11-zpdtj6k8.mjs → claudeDesktop-0.1.13-fs8rre9b.mjs} +1 -1
- package/dist/chunks/claudemd-0.1.13-942nfe7r.mjs +1 -0
- package/dist/chunks/clear-0.1.13-zge2t5n9.mjs +1 -0
- package/dist/chunks/clearTerminal-0.1.13-b5v1edw2.mjs +1 -0
- package/dist/chunks/cli-0.1.13-00qdyz6f.mjs +3 -0
- package/dist/chunks/cli-0.1.13-0b728dvh.mjs +2 -0
- package/dist/chunks/{cli-0.1.11-4ggr81tw.mjs → cli-0.1.13-0gfnmq08.mjs} +2 -2
- package/dist/chunks/cli-0.1.13-0gyt273r.mjs +2 -0
- package/dist/chunks/cli-0.1.13-0hyneh5t.mjs +9 -0
- package/dist/chunks/{cli-0.1.11-rj68n2kw.mjs → cli-0.1.13-0p3b9j40.mjs} +2 -2
- package/dist/chunks/{cli-0.1.11-50naxqgt.mjs → cli-0.1.13-0xy8k6yv.mjs} +2 -2
- package/dist/chunks/{cli-0.1.11-yv5pfq6n.mjs → cli-0.1.13-0zpmhn2j.mjs} +2 -2
- package/dist/chunks/{cli-0.1.11-wc9bay3d.mjs → cli-0.1.13-13fh0g36.mjs} +2 -2
- package/dist/chunks/{cli-0.1.11-vq5fvf9m.mjs → cli-0.1.13-144gn3fd.mjs} +3 -3
- package/dist/chunks/{cli-0.1.11-d3exw047.mjs → cli-0.1.13-1g6bgaa6.mjs} +2 -2
- package/dist/chunks/{cli-0.1.11-nhwmv5g6.mjs → cli-0.1.13-1gbn4dgj.mjs} +1 -1
- package/dist/chunks/{cli-0.1.11-rj9ea3zn.mjs → cli-0.1.13-1hw65avy.mjs} +2 -2
- package/dist/chunks/cli-0.1.13-1pxg82cx.mjs +2 -0
- package/dist/chunks/cli-0.1.13-1y21vq1h.mjs +2 -0
- package/dist/chunks/{cli-0.1.11-852v06g0.mjs → cli-0.1.13-2c7g6rpx.mjs} +2 -2
- package/dist/chunks/{cli-0.1.11-h2hxx8ma.mjs → cli-0.1.13-2cdtdhek.mjs} +5 -5
- package/dist/chunks/{cli-0.1.11-t07hba0z.mjs → cli-0.1.13-2sx61wcx.mjs} +1 -1
- package/dist/chunks/{cli-0.1.11-16086k9e.mjs → cli-0.1.13-2vrh3n9y.mjs} +2 -2
- package/dist/chunks/{cli-0.1.11-70f778wy.mjs → cli-0.1.13-30j4h365.mjs} +2 -2
- package/dist/chunks/{cli-0.1.11-7tybqg56.mjs → cli-0.1.13-3k1n20ra.mjs} +1 -1
- package/dist/chunks/{cli-0.1.11-y909w8bb.mjs → cli-0.1.13-3pctg5zc.mjs} +1 -1
- package/dist/chunks/{cli-0.1.11-dpfxvfty.mjs → cli-0.1.13-3rr4fg79.mjs} +2 -2
- package/dist/chunks/cli-0.1.13-45hjhcbc.mjs +2 -0
- package/dist/chunks/{cli-0.1.11-fstfs72j.mjs → cli-0.1.13-4prgqshq.mjs} +2 -2
- package/dist/chunks/{cli-0.1.11-5hs4xyjq.mjs → cli-0.1.13-5061js0h.mjs} +2 -2
- package/dist/chunks/{cli-0.1.11-rrnr3ab1.mjs → cli-0.1.13-52f40ba4.mjs} +2 -2
- package/dist/chunks/cli-0.1.13-579v6j6d.mjs +4 -0
- package/dist/chunks/cli-0.1.13-5b7hgn91.mjs +2 -0
- package/dist/chunks/{cli-0.1.11-v6kwgrqc.mjs → cli-0.1.13-5c4fyghf.mjs} +2 -2
- package/dist/chunks/{cli-0.1.11-hmfevmz1.mjs → cli-0.1.13-5d4ke9a2.mjs} +2 -2
- package/dist/chunks/cli-0.1.13-5j5bg3t2.mjs +2 -0
- package/dist/chunks/{cli-0.1.11-p22bdjhv.mjs → cli-0.1.13-5krmz4nd.mjs} +2 -2
- package/dist/chunks/cli-0.1.13-5rnhv49w.mjs +2 -0
- package/dist/chunks/{cli-0.1.11-r990p54m.mjs → cli-0.1.13-5s4m8qj9.mjs} +5 -5
- package/dist/chunks/{cli-0.1.11-b0jasw23.mjs → cli-0.1.13-5ydypzty.mjs} +3 -3
- package/dist/chunks/cli-0.1.13-6gmqjyv9.mjs +2 -0
- package/dist/chunks/cli-0.1.13-6p0jxfnp.mjs +2 -0
- package/dist/chunks/cli-0.1.13-6q3wa261.mjs +2 -0
- package/dist/chunks/cli-0.1.13-73w3wbmf.mjs +3 -0
- package/dist/chunks/{cli-0.1.11-chnrb9xx.mjs → cli-0.1.13-73yztj5x.mjs} +1 -1
- package/dist/chunks/cli-0.1.13-79vtnprb.mjs +2 -0
- package/dist/chunks/cli-0.1.13-84tbx1nf.mjs +3 -0
- package/dist/chunks/{cli-0.1.11-21epc92q.mjs → cli-0.1.13-85w0nxy9.mjs} +2 -2
- package/dist/chunks/{cli-0.1.11-8qrhqvh5.mjs → cli-0.1.13-87xfe2f3.mjs} +2 -2
- package/dist/chunks/{cli-0.1.11-bwpemkht.mjs → cli-0.1.13-8gd1x101.mjs} +2 -2
- package/dist/chunks/{cli-0.1.11-e5ecf583.mjs → cli-0.1.13-8ppsn0an.mjs} +2 -2
- package/dist/chunks/{cli-0.1.11-ft47r1wq.mjs → cli-0.1.13-8pw4n94k.mjs} +2 -2
- package/dist/chunks/{cli-0.1.11-tvfkn5mh.mjs → cli-0.1.13-8snyqhjj.mjs} +2 -2
- package/dist/chunks/{cli-0.1.11-v8j5bkfs.mjs → cli-0.1.13-8sszxge2.mjs} +1 -1
- package/dist/chunks/cli-0.1.13-9043n2e8.mjs +2 -0
- package/dist/chunks/cli-0.1.13-91b1h8ww.mjs +2 -0
- package/dist/chunks/{cli-0.1.11-mj78w4sp.mjs → cli-0.1.13-9a1hzdsv.mjs} +2 -2
- package/dist/chunks/cli-0.1.13-9jajvw4r.mjs +2 -0
- package/dist/chunks/cli-0.1.13-a4xga299.mjs +50 -0
- package/dist/chunks/cli-0.1.13-ajsw8n7h.mjs +5 -0
- package/dist/chunks/cli-0.1.13-apjxy5tn.mjs +2 -0
- package/dist/chunks/{cli-0.1.11-0tge574q.mjs → cli-0.1.13-asrdd8dh.mjs} +2 -2
- package/dist/chunks/cli-0.1.13-b24n1wvw.mjs +2 -0
- package/dist/chunks/{cli-0.1.11-2w8d5vqb.mjs → cli-0.1.13-b3xc1r3k.mjs} +2 -2
- package/dist/chunks/cli-0.1.13-b40skdsz.mjs +2 -0
- package/dist/chunks/{cli-0.1.11-yrfxpjhr.mjs → cli-0.1.13-bj67mp7n.mjs} +1 -1
- package/dist/chunks/{cli-0.1.11-dcswnc8x.mjs → cli-0.1.13-bkg3sva7.mjs} +2 -2
- package/dist/chunks/cli-0.1.13-bzgpcgdt.mjs +16 -0
- package/dist/chunks/{cli-0.1.11-qrq0sw0h.mjs → cli-0.1.13-c5b4ygdq.mjs} +2 -2
- package/dist/chunks/{cli-0.1.11-jj3s3dxd.mjs → cli-0.1.13-cjmpc9q5.mjs} +2 -2
- package/dist/chunks/cli-0.1.13-ck28msre.mjs +2 -0
- package/dist/chunks/cli-0.1.13-crcgrfse.mjs +2 -0
- package/dist/chunks/{cli-0.1.11-t7dc7fbj.mjs → cli-0.1.13-ct9m5223.mjs} +2 -2
- package/dist/chunks/{cli-0.1.11-ctjvkg5k.mjs → cli-0.1.13-ctjpk124.mjs} +2 -2
- package/dist/chunks/{cli-0.1.11-1xr9et85.mjs → cli-0.1.13-cyj5snev.mjs} +2 -2
- package/dist/chunks/{cli-0.1.11-5hrysrcd.mjs → cli-0.1.13-d66pryf3.mjs} +1 -1
- package/dist/chunks/{cli-0.1.11-h762f6hr.mjs → cli-0.1.13-d6tr2j76.mjs} +2 -2
- package/dist/chunks/cli-0.1.13-d85aba8r.mjs +2 -0
- package/dist/chunks/cli-0.1.13-d8wkcw90.mjs +25 -0
- package/dist/chunks/{cli-0.1.11-v7bwjqf0.mjs → cli-0.1.13-dag38tkx.mjs} +55 -55
- package/dist/chunks/{cli-0.1.11-jye250b3.mjs → cli-0.1.13-dak36ez8.mjs} +1 -1
- package/dist/chunks/cli-0.1.13-dgw8xfv1.mjs +2 -0
- package/dist/chunks/cli-0.1.13-dmgp48vg.mjs +2 -0
- package/dist/chunks/cli-0.1.13-e58n0k16.mjs +2 -0
- package/dist/chunks/cli-0.1.13-eh7dqeqt.mjs +2 -0
- package/dist/chunks/{cli-0.1.11-d4ahh3jz.mjs → cli-0.1.13-f6gfa426.mjs} +2 -2
- package/dist/chunks/{cli-0.1.11-pr9jdfxt.mjs → cli-0.1.13-fabrrwqa.mjs} +1 -1
- package/dist/chunks/cli-0.1.13-fh5dndvp.mjs +5043 -0
- package/dist/chunks/{cli-0.1.11-cezypfbt.mjs → cli-0.1.13-ft5k86va.mjs} +2 -2
- package/dist/chunks/{cli-0.1.11-hgsa4nnp.mjs → cli-0.1.13-fwd5b6q8.mjs} +1 -1
- package/dist/chunks/{cli-0.1.11-jkrt4znb.mjs → cli-0.1.13-fz5dm31h.mjs} +2 -2
- package/dist/chunks/cli-0.1.13-fzb4yx18.mjs +24 -0
- package/dist/chunks/{cli-0.1.11-g2202evh.mjs → cli-0.1.13-g2v4avcv.mjs} +1 -1
- package/dist/chunks/cli-0.1.13-g654740k.mjs +2 -0
- package/dist/chunks/{cli-0.1.11-w3trj52p.mjs → cli-0.1.13-ga4mmwbc.mjs} +2 -2
- package/dist/chunks/{cli-0.1.11-nx8a99hz.mjs → cli-0.1.13-gd3nndc7.mjs} +2 -2
- package/dist/chunks/cli-0.1.13-gtgqh4bn.mjs +2 -0
- package/dist/chunks/{cli-0.1.11-z4hb2mcd.mjs → cli-0.1.13-gvz2qezh.mjs} +2 -2
- package/dist/chunks/cli-0.1.13-h3vb5402.mjs +2 -0
- package/dist/chunks/{cli-0.1.11-qpzn4q17.mjs → cli-0.1.13-h7a36dnk.mjs} +2 -2
- package/dist/chunks/cli-0.1.13-hgkwnhwv.mjs +2 -0
- package/dist/chunks/cli-0.1.13-hjqn3n5a.mjs +59 -0
- package/dist/chunks/cli-0.1.13-hyvpn2ht.mjs +45 -0
- package/dist/chunks/{cli-0.1.11-jjgjkqqv.mjs → cli-0.1.13-hzdj03rn.mjs} +2 -2
- package/dist/chunks/{cli-0.1.11-91mf8dfr.mjs → cli-0.1.13-j7796v8f.mjs} +2 -2
- package/dist/chunks/{cli-0.1.11-z62s8qx1.mjs → cli-0.1.13-jakv6e7b.mjs} +1 -1
- package/dist/chunks/{cli-0.1.11-6r97rwda.mjs → cli-0.1.13-jeyjdb2m.mjs} +2 -2
- package/dist/chunks/{cli-0.1.11-h7e4rkwk.mjs → cli-0.1.13-jz57znb6.mjs} +2 -2
- package/dist/chunks/{cli-0.1.11-sma2xhvv.mjs → cli-0.1.13-ks4x4cct.mjs} +2 -2
- package/dist/chunks/cli-0.1.13-ky4z1s1h.mjs +20 -0
- package/dist/chunks/{cli-0.1.11-ek6mck0j.mjs → cli-0.1.13-kzn9sspk.mjs} +1 -1
- package/dist/chunks/{cli-0.1.11-fs3d0ajf.mjs → cli-0.1.13-m5aaczvd.mjs} +1 -1
- package/dist/chunks/{cli-0.1.11-p4eeg584.mjs → cli-0.1.13-m61dhxfs.mjs} +2 -2
- package/dist/chunks/{cli-0.1.11-7vz357wm.mjs → cli-0.1.13-mahtf0ay.mjs} +2 -2
- package/dist/chunks/cli-0.1.13-mezw1vk8.mjs +18 -0
- package/dist/chunks/{cli-0.1.11-egck69w4.mjs → cli-0.1.13-mkw72mxc.mjs} +2 -2
- package/dist/chunks/{cli-0.1.11-q58q9jqr.mjs → cli-0.1.13-myd004mr.mjs} +2 -2
- package/dist/chunks/cli-0.1.13-mywk7e49.mjs +134 -0
- package/dist/chunks/cli-0.1.13-n1tj5bdc.mjs +2 -0
- package/dist/chunks/cli-0.1.13-n31sw1c8.mjs +2 -0
- package/dist/chunks/cli-0.1.13-nc3ce357.mjs +2 -0
- package/dist/chunks/{cli-0.1.11-kghg51gb.mjs → cli-0.1.13-nc8ww3rn.mjs} +2 -2
- package/dist/chunks/{cli-0.1.11-rvk3t45h.mjs → cli-0.1.13-njvp7vtc.mjs} +2 -2
- package/dist/chunks/cli-0.1.13-nsbk0w3b.mjs +2 -0
- package/dist/chunks/{cli-0.1.11-jr50ahcv.mjs → cli-0.1.13-nwt2jc8b.mjs} +2 -2
- package/dist/chunks/cli-0.1.13-p00rtvrc.mjs +2 -0
- package/dist/chunks/{cli-0.1.11-56bdg2vw.mjs → cli-0.1.13-p2wyk6z7.mjs} +1 -1
- package/dist/chunks/{cli-0.1.11-h7phna9g.mjs → cli-0.1.13-p4nz8zmd.mjs} +1 -1
- package/dist/chunks/cli-0.1.13-p625yxtg.mjs +2 -0
- package/dist/chunks/{cli-0.1.11-96y2d09c.mjs → cli-0.1.13-p84ry3q5.mjs} +1 -1
- package/dist/chunks/{cli-0.1.11-1bryv90w.mjs → cli-0.1.13-pqk4c7m7.mjs} +2 -2
- package/dist/chunks/{cli-0.1.11-7qpnfx56.mjs → cli-0.1.13-pw5dks39.mjs} +2 -2
- package/dist/chunks/cli-0.1.13-q93vqpjh.mjs +833 -0
- package/dist/chunks/{cli-0.1.11-y4c6y87y.mjs → cli-0.1.13-qdtwrf9z.mjs} +2 -2
- package/dist/chunks/cli-0.1.13-qxtrzerx.mjs +2 -0
- package/dist/chunks/{cli-0.1.11-fptq9w4t.mjs → cli-0.1.13-r09724ac.mjs} +1 -1
- package/dist/chunks/{cli-0.1.11-5vqj6k7m.mjs → cli-0.1.13-rftgy1b8.mjs} +2 -2
- package/dist/chunks/cli-0.1.13-rjjyq9ej.mjs +2 -0
- package/dist/chunks/{cli-0.1.11-gdcvfp9f.mjs → cli-0.1.13-rkaxch5j.mjs} +2 -2
- package/dist/chunks/cli-0.1.13-s6w3ej6f.mjs +3 -0
- package/dist/chunks/cli-0.1.13-s90a26ca.mjs +2 -0
- package/dist/chunks/cli-0.1.13-s928gjab.mjs +5 -0
- package/dist/chunks/{cli-0.1.11-7mmhsc3x.mjs → cli-0.1.13-s9fgd2dx.mjs} +2 -2
- package/dist/chunks/{cli-0.1.11-3p2f194m.mjs → cli-0.1.13-saz6qetz.mjs} +2 -2
- package/dist/chunks/{cli-0.1.11-weav8142.mjs → cli-0.1.13-sgxk7d0h.mjs} +2 -2
- package/dist/chunks/cli-0.1.13-sr9axhrw.mjs +2 -0
- package/dist/chunks/{cli-0.1.11-6vqzqsdj.mjs → cli-0.1.13-ss1k5gqk.mjs} +2 -2
- package/dist/chunks/cli-0.1.13-ssgwnxc5.mjs +4 -0
- package/dist/chunks/cli-0.1.13-t1zx7s60.mjs +2 -0
- package/dist/chunks/cli-0.1.13-t34z5r3c.mjs +2 -0
- package/dist/chunks/{cli-0.1.11-w3fp9par.mjs → cli-0.1.13-t5w452fj.mjs} +1 -1
- package/dist/chunks/cli-0.1.13-tknwgkgp.mjs +17 -0
- package/dist/chunks/{cli-0.1.11-hhs8ke9g.mjs → cli-0.1.13-tq3dqmem.mjs} +2 -2
- package/dist/chunks/{cli-0.1.11-h3jatwe1.mjs → cli-0.1.13-v1b9yhsy.mjs} +1 -1
- package/dist/chunks/{cli-0.1.11-mstxxz33.mjs → cli-0.1.13-v32xwe08.mjs} +2 -2
- package/dist/chunks/{cli-0.1.11-sqqzwx4h.mjs → cli-0.1.13-v467fj8c.mjs} +2 -2
- package/dist/chunks/cli-0.1.13-v56n2wqm.mjs +2 -0
- package/dist/chunks/{cli-0.1.11-s6yfjcm5.mjs → cli-0.1.13-v6z41645.mjs} +2 -2
- package/dist/chunks/cli-0.1.13-vdz792pb.mjs +2 -0
- package/dist/chunks/{cli-0.1.11-anvzywg4.mjs → cli-0.1.13-vj532g9m.mjs} +1 -1
- package/dist/chunks/{cli-0.1.11-anegs86e.mjs → cli-0.1.13-vn7ckv16.mjs} +1 -1
- package/dist/chunks/cli-0.1.13-vwt4hc0t.mjs +2 -0
- package/dist/chunks/{cli-0.1.11-bbx2h4x9.mjs → cli-0.1.13-w08qr05m.mjs} +2 -2
- package/dist/chunks/cli-0.1.13-w8h6wdez.mjs +2 -0
- package/dist/chunks/{cli-0.1.11-d10nfa6g.mjs → cli-0.1.13-wh68ve92.mjs} +2 -2
- package/dist/chunks/{cli-0.1.11-bqpcwywz.mjs → cli-0.1.13-wpsqhe6v.mjs} +2 -2
- package/dist/chunks/{cli-0.1.11-424zgj5k.mjs → cli-0.1.13-wr0c9hyh.mjs} +2 -2
- package/dist/chunks/{cli-0.1.11-7xr2ermy.mjs → cli-0.1.13-wwnez3j0.mjs} +2 -2
- package/dist/chunks/{cli-0.1.11-6zkfmcxp.mjs → cli-0.1.13-wxdmc1dd.mjs} +2 -2
- package/dist/chunks/{cli-0.1.11-0n77qn68.mjs → cli-0.1.13-wz7v1tqx.mjs} +2 -2
- package/dist/chunks/{cli-0.1.11-n24p2y0p.mjs → cli-0.1.13-x3zt8q8r.mjs} +1 -1
- package/dist/chunks/{cli-0.1.11-05ngjm8p.mjs → cli-0.1.13-x461rxn2.mjs} +2 -2
- package/dist/chunks/cli-0.1.13-x4n4my99.mjs +2 -0
- package/dist/chunks/{cli-0.1.11-ktwtyqmp.mjs → cli-0.1.13-xde08pkt.mjs} +2 -2
- package/dist/chunks/{cli-0.1.11-5e45zda5.mjs → cli-0.1.13-xkdwvsg9.mjs} +2 -2
- package/dist/chunks/{cli-0.1.11-98zcwng9.mjs → cli-0.1.13-xv6wh44y.mjs} +2 -2
- package/dist/chunks/{cli-0.1.11-3tqzgd9f.mjs → cli-0.1.13-xvvtja1h.mjs} +2 -2
- package/dist/chunks/cli-0.1.13-xwkys72y.mjs +12 -0
- package/dist/chunks/cli-0.1.13-y3aj3amr.mjs +4 -0
- package/dist/chunks/cli-0.1.13-y3e5jkh7.mjs +2 -0
- package/dist/chunks/{cli-0.1.11-be28ty4m.mjs → cli-0.1.13-y7aqqca1.mjs} +1 -1
- package/dist/chunks/{cli-0.1.11-zb2sa3e2.mjs → cli-0.1.13-yd536yw4.mjs} +7 -10
- package/dist/chunks/{cli-0.1.11-zfnmx1ny.mjs → cli-0.1.13-yeb03vme.mjs} +2 -2
- package/dist/chunks/cli-0.1.13-yhe2a0cx.mjs +2 -0
- package/dist/chunks/cli-0.1.13-yrvakyyp.mjs +2 -0
- package/dist/chunks/cli-0.1.13-z0jm6xd0.mjs +2 -0
- package/dist/chunks/cli-0.1.13-z387wpj9.mjs +2 -0
- package/dist/chunks/cli-0.1.13-zgnanj3x.mjs +12 -0
- package/dist/chunks/cli-0.1.13-zm2zgw7m.mjs +3 -0
- package/dist/chunks/cli-0.1.13-zmft0mps.mjs +2 -0
- package/dist/chunks/client-0.1.13-mbp3h3fc.mjs +1 -0
- package/dist/chunks/color-0.1.13-p7kzn9d4.mjs +1 -0
- package/dist/chunks/compact-0.1.13-603r2t03.mjs +3 -0
- package/dist/chunks/config-0.1.13-fn4hrgp2.mjs +1 -0
- package/dist/chunks/{config-0.1.11-cqy7fnab.mjs → config-0.1.13-q8fcew9w.mjs} +1 -1
- package/dist/chunks/context-0.1.13-5fz212w3.mjs +1 -0
- package/dist/chunks/context-noninteractive-0.1.13-fjn2461g.mjs +1 -0
- package/dist/chunks/conversation-0.1.13-zjqxzcfr.mjs +1 -0
- package/dist/chunks/copy-0.1.13-03jy5tfn.mjs +9 -0
- package/dist/chunks/cost-0.1.13-zch21h6x.mjs +1 -0
- package/dist/chunks/createSession-0.1.13-mh3jt0b0.mjs +1 -0
- package/dist/chunks/desktop-0.1.13-w51djw8z.mjs +1 -0
- package/dist/chunks/detectRepository-0.1.13-5tt2922a.mjs +1 -0
- package/dist/chunks/detection-0.1.13-k001d88v.mjs +1 -0
- package/dist/chunks/diff-0.1.13-vz7x7nm3.mjs +1 -0
- package/dist/chunks/doctor-0.1.13-egkgh28s.mjs +1 -0
- package/dist/chunks/earlyInput-0.1.13-tpq0qmw0.mjs +1 -0
- package/dist/chunks/effort-0.1.13-11mfjfnb.mjs +8 -0
- package/dist/chunks/environmentSelection-0.1.13-8fagqvgw.mjs +1 -0
- package/dist/chunks/environments-0.1.13-x1xw45es.mjs +1 -0
- package/dist/chunks/exit-0.1.13-3m34eg2x.mjs +1 -0
- package/dist/chunks/export-0.1.13-sq3jk66f.mjs +2 -0
- package/dist/chunks/extra-usage-0.1.13-dh2sxr12.mjs +1 -0
- package/dist/chunks/extra-usage-noninteractive-0.1.13-7yfmamd2.mjs +1 -0
- package/dist/chunks/fast-0.1.13-w1sk95j2.mjs +1 -0
- package/dist/chunks/feedback-0.1.13-ewxaenqk.mjs +14 -0
- package/dist/chunks/{firstPartyEventLogger-0.1.11-y7qkhdj6.mjs → firstPartyEventLogger-0.1.13-6m3fvkcj.mjs} +1 -1
- package/dist/chunks/git-0.1.13-2rp45xgd.mjs +1 -0
- package/dist/chunks/githubModelsCredentials-0.1.13-e9c7cay9.mjs +1 -0
- package/dist/chunks/{growthbook-0.1.11-2w2b1mzd.mjs → growthbook-0.1.13-sramqmzv.mjs} +1 -1
- package/dist/chunks/{heapdump-0.1.11-b216wzt7.mjs → heapdump-0.1.13-3n7hv372.mjs} +1 -1
- package/dist/chunks/help-0.1.13-knrgw1dq.mjs +1 -0
- package/dist/chunks/{hookChains-0.1.11-jp8f82q7.mjs → hookChains-0.1.13-te9q466p.mjs} +2 -2
- package/dist/chunks/hooks-0.1.13-1cp6zhk0.mjs +1 -0
- package/dist/chunks/hooks-0.1.13-g6kx1mk3.mjs +79 -0
- package/dist/chunks/ide-0.1.13-ke3v5mb7.mjs +3 -0
- package/dist/chunks/{image-processor-napi-0.1.11-dpg3ygnw.mjs → image-processor-napi-0.1.13-h7fg935p.mjs} +1 -1
- package/dist/chunks/{index-0.1.11-b2q967nq.mjs → index-0.1.13-018yhz6j.mjs} +1 -1
- package/dist/chunks/index-0.1.13-0z5ns7r2.mjs +1 -0
- package/dist/chunks/index-0.1.13-1y9cm2x6.mjs +1 -0
- package/dist/chunks/{index-0.1.11-wbhj1ny7.mjs → index-0.1.13-3zjrdjrv.mjs} +1 -1
- package/dist/chunks/index-0.1.13-4cjfx282.mjs +1 -0
- package/dist/chunks/index-0.1.13-5g9shrc4.mjs +9 -0
- package/dist/chunks/index-0.1.13-7c5y7cbf.mjs +2 -0
- package/dist/chunks/index-0.1.13-7fm7tk25.mjs +1 -0
- package/dist/chunks/index-0.1.13-98j8cxkv.mjs +1 -0
- package/dist/chunks/index-0.1.13-9meb2pab.mjs +1 -0
- package/dist/chunks/index-0.1.13-a06q9ad9.mjs +2 -0
- package/dist/chunks/index-0.1.13-bc4sh2m1.mjs +1 -0
- package/dist/chunks/index-0.1.13-c29wq5dx.mjs +5 -0
- package/dist/chunks/index-0.1.13-h2mpm4c0.mjs +1 -0
- package/dist/chunks/index-0.1.13-h4wytk4z.mjs +1 -0
- package/dist/chunks/index-0.1.13-j9c4bjzh.mjs +1 -0
- package/dist/chunks/index-0.1.13-m9m61529.mjs +1 -0
- package/dist/chunks/index-0.1.13-mc5ag4wj.mjs +1 -0
- package/dist/chunks/index-0.1.13-nm8pkj0f.mjs +9 -0
- package/dist/chunks/index-0.1.13-psynrf7p.mjs +10 -0
- package/dist/chunks/index-0.1.13-qjt3h799.mjs +1 -0
- package/dist/chunks/index-0.1.13-tvt8fxrq.mjs +1 -0
- package/dist/chunks/initReplBridge-0.1.13-cd8avwfa.mjs +1 -0
- package/dist/chunks/ink-0.1.13-8ga6a1ny.mjs +1 -0
- package/dist/chunks/{insights-0.1.11-4yjg2bxs.mjs → insights-0.1.13-t81417ej.mjs} +3 -3
- package/dist/chunks/install-0.1.13-1bq7fwkd.mjs +1 -0
- package/dist/chunks/install-github-app-0.1.13-yvnx16za.mjs +149 -0
- package/dist/chunks/install-slack-app-0.1.13-2a6ydfjg.mjs +1 -0
- package/dist/chunks/instrumentation-0.1.13-bvt39wrk.mjs +12 -0
- package/dist/chunks/interactiveHelpers-0.1.13-p29payqv.mjs +1 -0
- package/dist/chunks/keybindings-0.1.13-nr2he9m8.mjs +2 -0
- package/dist/chunks/{knowledge-0.1.11-wpjw8ybd.mjs → knowledge-0.1.13-9a2md3fm.mjs} +1 -1
- package/dist/chunks/loadAgentsDir-0.1.13-jmqfw7w4.mjs +1 -0
- package/dist/chunks/loadPluginHooks-0.1.13-qagn7gmw.mjs +1 -0
- package/dist/chunks/logout-0.1.13-d6ghx6h9.mjs +1 -0
- package/dist/chunks/lsp-0.1.13-q6xr2am5.mjs +1 -0
- package/dist/chunks/main-0.1.13-e5tbkphz.mjs +1 -0
- package/dist/chunks/managedEnv-0.1.13-n073hj5h.mjs +1 -0
- package/dist/chunks/mcp-0.1.13-0bw6qtwy.mjs +4 -0
- package/dist/chunks/mcp-0.1.13-1kaxfeey.mjs +1 -0
- package/dist/chunks/mcp-0.1.13-x9twbpqk.mjs +17 -0
- package/dist/chunks/{mcpServer-0.1.11-czg51mvy.mjs → mcpServer-0.1.13-jf5dhyys.mjs} +1 -1
- package/dist/chunks/{mcpb-0.1.11-czkze48a.mjs → mcpb-0.1.13-e55321kr.mjs} +1 -1
- package/dist/chunks/memory-0.1.13-qwtbe97v.mjs +3 -0
- package/dist/chunks/mobile-0.1.13-pzekbte3.mjs +2 -0
- package/dist/chunks/model-0.1.13-a42465ep.mjs +1 -0
- package/dist/chunks/model-0.1.13-mqqrpy8m.mjs +2 -0
- package/dist/chunks/{oauth-0.1.11-jkkd9wzq.mjs → oauth-0.1.13-bk91rvfd.mjs} +1 -1
- package/dist/chunks/{openaiShim-0.1.11-b9yqnc9c.mjs → openaiShim-0.1.13-c9z5r4zj.mjs} +2 -2
- package/dist/chunks/{output-style-0.1.11-zwxn1knb.mjs → output-style-0.1.13-c4ah6hc0.mjs} +1 -1
- package/dist/chunks/package-WSP46L7M-0.1.13-sme2jxpt.mjs +1 -0
- package/dist/chunks/parser-0.1.13-mm8j9rwt.mjs +1 -0
- package/dist/chunks/passes-0.1.13-bcbvjdzs.mjs +1 -0
- package/dist/chunks/permissions-0.1.13-c03934ka.mjs +3 -0
- package/dist/chunks/plan-0.1.13-fgs4vbwk.mjs +1 -0
- package/dist/chunks/{plist-0.1.11-0sn6nqv3.mjs → plist-0.1.13-f3bfg2tf.mjs} +1 -1
- package/dist/chunks/plugin-0.1.13-p5aqty2y.mjs +29 -0
- package/dist/chunks/pluginStartupCheck-0.1.13-f8tcmc9s.mjs +1 -0
- package/dist/chunks/{plugins-0.1.11-t3pgcpcj.mjs → plugins-0.1.13-1nvjxkbc.mjs} +2 -2
- package/dist/chunks/{print-0.1.11-y9vz77h9.mjs → print-0.1.13-g2dmfpmq.mjs} +10 -10
- package/dist/chunks/privacy-settings-0.1.13-xkaezd0n.mjs +1 -0
- package/dist/chunks/{process-0.1.11-s6jnx5xw.mjs → process-0.1.13-ycxbd26n.mjs} +1 -1
- package/dist/chunks/processBashCommand-0.1.13-x4ggp1t8.mjs +1 -0
- package/dist/chunks/processSlashCommand-0.1.13-16gwwvqz.mjs +9 -0
- package/dist/chunks/prompt-0.1.13-j0tnske2.mjs +1 -0
- package/dist/chunks/prompt-0.1.13-mdxfbbqp.mjs +1 -0
- package/dist/chunks/prompts-0.1.13-gtp7vnge.mjs +1 -0
- package/dist/chunks/provider-0.1.13-e9ayet7n.mjs +2 -0
- package/dist/chunks/providerProfiles-0.1.13-y9gs55qq.mjs +1 -0
- package/dist/chunks/rate-limit-options-0.1.13-va0322ws.mjs +1 -0
- package/dist/chunks/registry-0.1.13-e33aasxk.mjs +1 -0
- package/dist/chunks/release-notes-0.1.13-jmkp5g6h.mjs +5 -0
- package/dist/chunks/reload-plugins-0.1.13-0p5x4cr9.mjs +2 -0
- package/dist/chunks/remote-env-0.1.13-d7evw9tc.mjs +1 -0
- package/dist/chunks/{remoteBridgeCore-0.1.11-hn821p07.mjs → remoteBridgeCore-0.1.13-sq5rr5x0.mjs} +1 -1
- package/dist/chunks/remoteSession-0.1.13-zjhajyna.mjs +1 -0
- package/dist/chunks/rename-0.1.13-t30c4tx9.mjs +1 -0
- package/dist/chunks/replBridgeHandle-0.1.13-38jvakp0.mjs +1 -0
- package/dist/chunks/resume-0.1.13-ta7t0vbz.mjs +2 -0
- package/dist/chunks/{rewind-0.1.11-t4mfk815.mjs → rewind-0.1.13-zxcfrje2.mjs} +1 -1
- package/dist/chunks/sandbox-adapter-0.1.13-x04v4bxn.mjs +1 -0
- package/dist/chunks/sandbox-toggle-0.1.13-w0p8r4ta.mjs +1 -0
- package/dist/chunks/session-0.1.13-cjn060z1.mjs +2 -0
- package/dist/chunks/sessionFileAccessHooks-0.1.13-mr3y5jpc.mjs +1 -0
- package/dist/chunks/sessionStorage-0.1.13-8gahjm86.mjs +1 -0
- package/dist/chunks/setup-0.1.13-ap9dpanw.mjs +5 -0
- package/dist/chunks/sinks-0.1.13-r13nv1fw.mjs +1 -0
- package/dist/chunks/skills-0.1.13-jd5g0cex.mjs +1 -0
- package/dist/chunks/startupProfiler-0.1.13-d4g7sykt.mjs +1 -0
- package/dist/chunks/{state-0.1.11-3fjxywyv.mjs → state-0.1.13-cv8jd04r.mjs} +1 -1
- package/dist/chunks/{stats-0.1.11-hxzms6gg.mjs → stats-0.1.13-yrtt99gr.mjs} +6 -6
- package/dist/chunks/status-0.1.13-4x7h3dec.mjs +1 -0
- package/dist/chunks/stickers-0.1.13-8szx17mh.mjs +1 -0
- package/dist/chunks/subprocessEnv-0.1.13-9asfa8pp.mjs +1 -0
- package/dist/chunks/tasks-0.1.13-dsy415kp.mjs +1 -0
- package/dist/chunks/teamHelpers-0.1.13-z4fpbggy.mjs +1 -0
- package/dist/chunks/teammateModeSnapshot-0.1.13-cc6scthx.mjs +1 -0
- package/dist/chunks/teleport-0.1.13-gx6zbjr3.mjs +1 -0
- package/dist/chunks/terminalSetup-0.1.13-wmg8wa4f.mjs +1 -0
- package/dist/chunks/theme-0.1.13-m8mdm37k.mjs +1 -0
- package/dist/chunks/thinkback-0.1.13-4jwhbbcv.mjs +1 -0
- package/dist/chunks/thinkback-play-0.1.13-0vz0yjza.mjs +1 -0
- package/dist/chunks/toolPool-0.1.13-z741g6f2.mjs +1 -0
- package/dist/chunks/toolSearch-0.1.13-jaadtdmb.mjs +1 -0
- package/dist/chunks/trustedDevice-0.1.13-w279yc46.mjs +1 -0
- package/dist/chunks/{turndown.cjs-0.1.11-brwqmyse.mjs → turndown.cjs-0.1.13-2wbn8j6y.mjs} +1 -1
- package/dist/chunks/ultrareviewCommand-0.1.13-sj6asgpk.mjs +4 -0
- package/dist/chunks/{update-0.1.11-p33kxpg4.mjs → update-0.1.13-sx7hc0kj.mjs} +11 -11
- package/dist/chunks/upgrade-0.1.13-dce1xd29.mjs +1 -0
- package/dist/chunks/{upstreamproxy-0.1.11-vk16qw88.mjs → upstreamproxy-0.1.13-pwxv6kww.mjs} +1 -1
- package/dist/chunks/usage-0.1.13-mr2bn5g6.mjs +1 -0
- package/dist/chunks/util-0.1.13-ef9r7w41.mjs +1 -0
- package/dist/chunks/utils-0.1.13-03dvz81t.mjs +1 -0
- package/dist/chunks/vim-0.1.13-3x0ehdme.mjs +1 -0
- package/dist/chunks/watcher-0.1.13-yzxxvgz3.mjs +1 -0
- package/dist/chunks/{wiki-0.1.11-v0twhcnn.mjs → wiki-0.1.13-regg8ff2.mjs} +1 -1
- package/dist/chunks/worktree-0.1.13-kdhzfvjx.mjs +1 -0
- package/dist/chunks/worktreeModeEnabled-0.1.13-d4t06wcm.mjs +1 -0
- package/dist/chunks/{wrapper-0.1.11-rt9xsnjh.mjs → wrapper-0.1.13-8nsef109.mjs} +1 -1
- package/dist/claudio-vscode.vsix +0 -0
- package/dist/cli.mjs +3 -3
- package/package.json +5 -19
- package/dist/chunks/AgentTool-0.1.11-m06x003m.mjs +0 -1
- package/dist/chunks/App-0.1.11-z60c27dk.mjs +0 -1
- package/dist/chunks/ApproveApiKey-0.1.11-dpm879x7.mjs +0 -1
- package/dist/chunks/AutoModeOptInDialog-0.1.11-dnqj2p8g.mjs +0 -1
- package/dist/chunks/BypassPermissionsModeDialog-0.1.11-h71pmj5p.mjs +0 -1
- package/dist/chunks/ClaudeInChromeOnboarding-0.1.11-vjwzqejw.mjs +0 -1
- package/dist/chunks/ClaudeMdExternalIncludesDialog-0.1.11-0wpjjdn9.mjs +0 -1
- package/dist/chunks/ConsoleOAuthFlow-0.1.11-xzbcx3cw.mjs +0 -1
- package/dist/chunks/DiffDialog-0.1.11-k3zsm9tz.mjs +0 -3
- package/dist/chunks/Doctor-0.1.11-958cxvhj.mjs +0 -1
- package/dist/chunks/Grove-0.1.11-93bnbcec.mjs +0 -1
- package/dist/chunks/ITermBackend-0.1.11-xbxm144g.mjs +0 -1
- package/dist/chunks/InvalidConfigDialog-0.1.11-vbeef1wb.mjs +0 -1
- package/dist/chunks/InvalidSettingsDialog-0.1.11-5bct7bny.mjs +0 -1
- package/dist/chunks/MigrationDialog-0.1.11-13kfzmtt.mjs +0 -1
- package/dist/chunks/Onboarding-0.1.11-kz5hnpx3.mjs +0 -1
- package/dist/chunks/ProviderManager-0.1.11-nggswmdv.mjs +0 -1
- package/dist/chunks/REPL-0.1.11-ctxx4039.mjs +0 -1
- package/dist/chunks/ResumeConversation-0.1.11-gwxzn4yg.mjs +0 -1
- package/dist/chunks/TeleportProgress-0.1.11-z1ez7pce.mjs +0 -1
- package/dist/chunks/TeleportRepoMismatchDialog-0.1.11-pjt2g9ss.mjs +0 -1
- package/dist/chunks/TeleportResumeWrapper-0.1.11-9y29zset.mjs +0 -1
- package/dist/chunks/TmuxBackend-0.1.11-5a4ddj92.mjs +0 -9
- package/dist/chunks/ToolSearchTool-0.1.11-w3cgae0s.mjs +0 -1
- package/dist/chunks/TrustDialog-0.1.11-3dsrj239.mjs +0 -1
- package/dist/chunks/activeProvider-0.1.11-qrn947by.mjs +0 -1
- package/dist/chunks/add-dir-0.1.11-9j7tq9gk.mjs +0 -1
- package/dist/chunks/agents-0.1.11-26pbss9x.mjs +0 -3
- package/dist/chunks/agents-0.1.11-m56gfjmy.mjs +0 -111
- package/dist/chunks/api-0.1.11-5ygenb1h.mjs +0 -1
- package/dist/chunks/assistant-0.1.11-5xbar4vv.mjs +0 -1
- package/dist/chunks/auth-0.1.11-2363mst5.mjs +0 -1
- package/dist/chunks/backgroundHousekeeping-0.1.11-fy6tykxe.mjs +0 -1
- package/dist/chunks/branch-0.1.11-aqhrj1x2.mjs +0 -4
- package/dist/chunks/btw-0.1.11-2kks7dfd.mjs +0 -1
- package/dist/chunks/caches-0.1.11-vewfnrya.mjs +0 -1
- package/dist/chunks/chrome-0.1.11-0g5459b5.mjs +0 -1
- package/dist/chunks/claudemd-0.1.11-qrr22x5b.mjs +0 -1
- package/dist/chunks/clear-0.1.11-c93nbam7.mjs +0 -1
- package/dist/chunks/clearTerminal-0.1.11-pdrc3735.mjs +0 -1
- package/dist/chunks/cli-0.1.11-036me3yr.mjs +0 -2
- package/dist/chunks/cli-0.1.11-05g86mrk.mjs +0 -2
- package/dist/chunks/cli-0.1.11-0fshz0ak.mjs +0 -2
- package/dist/chunks/cli-0.1.11-0qwee9gy.mjs +0 -2
- package/dist/chunks/cli-0.1.11-10nmrfsz.mjs +0 -8
- package/dist/chunks/cli-0.1.11-1b48xqbe.mjs +0 -2
- package/dist/chunks/cli-0.1.11-1bmswdg3.mjs +0 -2
- package/dist/chunks/cli-0.1.11-1bxwxewq.mjs +0 -833
- package/dist/chunks/cli-0.1.11-1e6fgnts.mjs +0 -3
- package/dist/chunks/cli-0.1.11-23qqxmk4.mjs +0 -2
- package/dist/chunks/cli-0.1.11-2xf0g9qc.mjs +0 -45
- package/dist/chunks/cli-0.1.11-3f5dv6mt.mjs +0 -2
- package/dist/chunks/cli-0.1.11-4bn5ap1n.mjs +0 -2
- package/dist/chunks/cli-0.1.11-4cdyzvxv.mjs +0 -3
- package/dist/chunks/cli-0.1.11-4xsg15d1.mjs +0 -2
- package/dist/chunks/cli-0.1.11-56p41bk3.mjs +0 -2
- package/dist/chunks/cli-0.1.11-5zqfr92n.mjs +0 -2
- package/dist/chunks/cli-0.1.11-71ewwy7m.mjs +0 -50
- package/dist/chunks/cli-0.1.11-7238rfy8.mjs +0 -2
- package/dist/chunks/cli-0.1.11-7t04gqx2.mjs +0 -3
- package/dist/chunks/cli-0.1.11-84j34n0s.mjs +0 -2
- package/dist/chunks/cli-0.1.11-at3c85af.mjs +0 -2
- package/dist/chunks/cli-0.1.11-bhqwqe2w.mjs +0 -2
- package/dist/chunks/cli-0.1.11-btayz9zj.mjs +0 -2
- package/dist/chunks/cli-0.1.11-bvd2r7an.mjs +0 -252
- package/dist/chunks/cli-0.1.11-bwn9ehxv.mjs +0 -2
- package/dist/chunks/cli-0.1.11-cdpswj0n.mjs +0 -2
- package/dist/chunks/cli-0.1.11-cf049e4w.mjs +0 -134
- package/dist/chunks/cli-0.1.11-cw0ss3jw.mjs +0 -4
- package/dist/chunks/cli-0.1.11-cwptjaf7.mjs +0 -12
- package/dist/chunks/cli-0.1.11-da6szcvw.mjs +0 -2
- package/dist/chunks/cli-0.1.11-e66dak4h.mjs +0 -4
- package/dist/chunks/cli-0.1.11-e7gjxknm.mjs +0 -16
- package/dist/chunks/cli-0.1.11-eh7tjdab.mjs +0 -18
- package/dist/chunks/cli-0.1.11-emw2wfff.mjs +0 -3
- package/dist/chunks/cli-0.1.11-fag2wtke.mjs +0 -2
- package/dist/chunks/cli-0.1.11-fveg0t77.mjs +0 -22
- package/dist/chunks/cli-0.1.11-fx6ztxrs.mjs +0 -5
- package/dist/chunks/cli-0.1.11-g33qp0jz.mjs +0 -2
- package/dist/chunks/cli-0.1.11-gc069ne7.mjs +0 -2
- package/dist/chunks/cli-0.1.11-ggrme14p.mjs +0 -2
- package/dist/chunks/cli-0.1.11-h02tyg8p.mjs +0 -2
- package/dist/chunks/cli-0.1.11-hrn726gf.mjs +0 -2
- package/dist/chunks/cli-0.1.11-hzezqkew.mjs +0 -2
- package/dist/chunks/cli-0.1.11-jne21ka1.mjs +0 -2
- package/dist/chunks/cli-0.1.11-kk0qqs5v.mjs +0 -7
- package/dist/chunks/cli-0.1.11-kndj4a86.mjs +0 -2
- package/dist/chunks/cli-0.1.11-kthpxpj3.mjs +0 -24
- package/dist/chunks/cli-0.1.11-m0aaey0g.mjs +0 -4
- package/dist/chunks/cli-0.1.11-m1dpnkp0.mjs +0 -2
- package/dist/chunks/cli-0.1.11-mr356stf.mjs +0 -2
- package/dist/chunks/cli-0.1.11-n23d2wej.mjs +0 -2
- package/dist/chunks/cli-0.1.11-na9tsy21.mjs +0 -2
- package/dist/chunks/cli-0.1.11-nesh7dep.mjs +0 -2
- package/dist/chunks/cli-0.1.11-nhjbgc7t.mjs +0 -2
- package/dist/chunks/cli-0.1.11-pfgwwtw9.mjs +0 -2
- package/dist/chunks/cli-0.1.11-q89t0xzx.mjs +0 -2
- package/dist/chunks/cli-0.1.11-qbcfg80y.mjs +0 -16
- package/dist/chunks/cli-0.1.11-qheffjft.mjs +0 -2
- package/dist/chunks/cli-0.1.11-rmyvg4yw.mjs +0 -2
- package/dist/chunks/cli-0.1.11-s8ygndzf.mjs +0 -5036
- package/dist/chunks/cli-0.1.11-ta77hm2b.mjs +0 -2
- package/dist/chunks/cli-0.1.11-trcf78n1.mjs +0 -2
- package/dist/chunks/cli-0.1.11-v2s8ey1n.mjs +0 -12
- package/dist/chunks/cli-0.1.11-vb5f7c3a.mjs +0 -2
- package/dist/chunks/cli-0.1.11-vch8cn95.mjs +0 -2
- package/dist/chunks/cli-0.1.11-vzet5m4y.mjs +0 -2
- package/dist/chunks/cli-0.1.11-w3ydpv9v.mjs +0 -2
- package/dist/chunks/cli-0.1.11-wjxhn7j5.mjs +0 -2
- package/dist/chunks/cli-0.1.11-x37jysc0.mjs +0 -14
- package/dist/chunks/cli-0.1.11-x5nvafch.mjs +0 -2
- package/dist/chunks/cli-0.1.11-xhrk5hr0.mjs +0 -2
- package/dist/chunks/cli-0.1.11-xp93fxnp.mjs +0 -2
- package/dist/chunks/cli-0.1.11-xwj7cmkj.mjs +0 -2
- package/dist/chunks/cli-0.1.11-yd6f29v2.mjs +0 -2
- package/dist/chunks/cli-0.1.11-yhk2y3c0.mjs +0 -2
- package/dist/chunks/cli-0.1.11-yvnhbsfn.mjs +0 -3
- package/dist/chunks/cli-0.1.11-z0thk4h0.mjs +0 -2
- package/dist/chunks/cli-0.1.11-zdyddegg.mjs +0 -2
- package/dist/chunks/cli-0.1.11-zwkjaj0d.mjs +0 -2
- package/dist/chunks/client-0.1.11-h38k7vkj.mjs +0 -1
- package/dist/chunks/color-0.1.11-b7favzc8.mjs +0 -1
- package/dist/chunks/compact-0.1.11-damm234b.mjs +0 -3
- package/dist/chunks/config-0.1.11-bb6v0pwv.mjs +0 -1
- package/dist/chunks/context-0.1.11-e2s56h3b.mjs +0 -1
- package/dist/chunks/context-noninteractive-0.1.11-s6b9q91h.mjs +0 -1
- package/dist/chunks/conversation-0.1.11-d8ejy4b9.mjs +0 -1
- package/dist/chunks/copy-0.1.11-aq32vn1b.mjs +0 -9
- package/dist/chunks/cost-0.1.11-3z9y6a5a.mjs +0 -1
- package/dist/chunks/createSession-0.1.11-rgaw7n2v.mjs +0 -1
- package/dist/chunks/desktop-0.1.11-k8ac4bfx.mjs +0 -1
- package/dist/chunks/detectRepository-0.1.11-m3chgqa1.mjs +0 -1
- package/dist/chunks/detection-0.1.11-aa9k5rxv.mjs +0 -1
- package/dist/chunks/devtools-0.1.11-fkz4akhx.mjs +0 -1
- package/dist/chunks/diff-0.1.11-tcqh42f6.mjs +0 -1
- package/dist/chunks/doctor-0.1.11-6fwwz8hp.mjs +0 -1
- package/dist/chunks/earlyInput-0.1.11-94asnfvh.mjs +0 -1
- package/dist/chunks/effort-0.1.11-zcxskzrb.mjs +0 -8
- package/dist/chunks/environmentSelection-0.1.11-6ngvrt1m.mjs +0 -1
- package/dist/chunks/environments-0.1.11-pdsv6dgq.mjs +0 -1
- package/dist/chunks/exit-0.1.11-2jab9tfm.mjs +0 -1
- package/dist/chunks/export-0.1.11-wv5bd05w.mjs +0 -2
- package/dist/chunks/extra-usage-0.1.11-f5rm0265.mjs +0 -1
- package/dist/chunks/extra-usage-noninteractive-0.1.11-dt7znwbn.mjs +0 -1
- package/dist/chunks/fast-0.1.11-a665n9kz.mjs +0 -1
- package/dist/chunks/feedback-0.1.11-q77qty87.mjs +0 -14
- package/dist/chunks/git-0.1.11-g77ppr52.mjs +0 -1
- package/dist/chunks/githubModelsCredentials-0.1.11-9vhs3xqj.mjs +0 -1
- package/dist/chunks/help-0.1.11-byp88gen.mjs +0 -1
- package/dist/chunks/hooks-0.1.11-v9jan2ss.mjs +0 -1
- package/dist/chunks/hooks-0.1.11-vf6vcsgg.mjs +0 -79
- package/dist/chunks/ide-0.1.11-7nxbd03r.mjs +0 -3
- package/dist/chunks/index-0.1.11-3dfjfmc6.mjs +0 -1
- package/dist/chunks/index-0.1.11-82wnmfq3.mjs +0 -9
- package/dist/chunks/index-0.1.11-8gtaa17w.mjs +0 -1
- package/dist/chunks/index-0.1.11-ajdpkanw.mjs +0 -1
- package/dist/chunks/index-0.1.11-bhrstsgc.mjs +0 -1
- package/dist/chunks/index-0.1.11-d6qbzwah.mjs +0 -1
- package/dist/chunks/index-0.1.11-d9ft1b0s.mjs +0 -1
- package/dist/chunks/index-0.1.11-e52dzxjz.mjs +0 -5
- package/dist/chunks/index-0.1.11-gb3saayk.mjs +0 -2
- package/dist/chunks/index-0.1.11-kksxmkwe.mjs +0 -1
- package/dist/chunks/index-0.1.11-n564rmwy.mjs +0 -1
- package/dist/chunks/index-0.1.11-n90nxjqp.mjs +0 -1
- package/dist/chunks/index-0.1.11-p0j3w83p.mjs +0 -1
- package/dist/chunks/index-0.1.11-pmkgntay.mjs +0 -7
- package/dist/chunks/index-0.1.11-qspcw49p.mjs +0 -1
- package/dist/chunks/index-0.1.11-r6p77pf7.mjs +0 -1
- package/dist/chunks/index-0.1.11-s0w8xy7q.mjs +0 -9
- package/dist/chunks/index-0.1.11-wze82293.mjs +0 -1
- package/dist/chunks/index-0.1.11-xs4mng75.mjs +0 -1
- package/dist/chunks/index-0.1.11-yej3awws.mjs +0 -2
- package/dist/chunks/initReplBridge-0.1.11-71963wyw.mjs +0 -1
- package/dist/chunks/ink-0.1.11-tzp2q9bd.mjs +0 -1
- package/dist/chunks/install-0.1.11-4zfvr6pk.mjs +0 -1
- package/dist/chunks/install-github-app-0.1.11-frqzdwsz.mjs +0 -149
- package/dist/chunks/install-slack-app-0.1.11-0yyjjvrw.mjs +0 -1
- package/dist/chunks/instrumentation-0.1.11-zyp2r390.mjs +0 -12
- package/dist/chunks/interactiveHelpers-0.1.11-chnsxp26.mjs +0 -1
- package/dist/chunks/keybindings-0.1.11-r2jke9h5.mjs +0 -2
- package/dist/chunks/loadAgentsDir-0.1.11-bwymseqa.mjs +0 -1
- package/dist/chunks/loadPluginHooks-0.1.11-npf49gc4.mjs +0 -1
- package/dist/chunks/logout-0.1.11-48ynp610.mjs +0 -1
- package/dist/chunks/lsp-0.1.11-e4z6m5t5.mjs +0 -1
- package/dist/chunks/main-0.1.11-6sh6xycv.mjs +0 -1
- package/dist/chunks/managedEnv-0.1.11-6bnnpsm0.mjs +0 -1
- package/dist/chunks/mcp-0.1.11-vjjx8eer.mjs +0 -17
- package/dist/chunks/mcp-0.1.11-zf74a6am.mjs +0 -4
- package/dist/chunks/mcp-0.1.11-zw22jjqc.mjs +0 -1
- package/dist/chunks/memory-0.1.11-k7y98zqn.mjs +0 -3
- package/dist/chunks/mobile-0.1.11-2w5py2cb.mjs +0 -2
- package/dist/chunks/model-0.1.11-4v166f98.mjs +0 -2
- package/dist/chunks/model-0.1.11-qekc9c4w.mjs +0 -1
- package/dist/chunks/package-HMBVQOZ4-0.1.11-n77wqhxr.mjs +0 -1
- package/dist/chunks/parser-0.1.11-vvhz2p5h.mjs +0 -1
- package/dist/chunks/passes-0.1.11-dgshr9c4.mjs +0 -1
- package/dist/chunks/permissions-0.1.11-71fn7rsk.mjs +0 -3
- package/dist/chunks/plan-0.1.11-1xyzxjgr.mjs +0 -1
- package/dist/chunks/plugin-0.1.11-menj210d.mjs +0 -29
- package/dist/chunks/pluginStartupCheck-0.1.11-ytjn1kxg.mjs +0 -1
- package/dist/chunks/privacy-settings-0.1.11-3ah0v02p.mjs +0 -1
- package/dist/chunks/processBashCommand-0.1.11-txp79ekj.mjs +0 -1
- package/dist/chunks/processSlashCommand-0.1.11-fdvs7etd.mjs +0 -9
- package/dist/chunks/prompt-0.1.11-4f7rsvd2.mjs +0 -1
- package/dist/chunks/prompt-0.1.11-bzkv3rsd.mjs +0 -1
- package/dist/chunks/prompts-0.1.11-xczb1nwa.mjs +0 -1
- package/dist/chunks/provider-0.1.11-cqeqqqbt.mjs +0 -2
- package/dist/chunks/providerProfiles-0.1.11-ewn8w0f1.mjs +0 -1
- package/dist/chunks/rate-limit-options-0.1.11-6bca3g5n.mjs +0 -1
- package/dist/chunks/registry-0.1.11-wjnpx9yf.mjs +0 -1
- package/dist/chunks/release-notes-0.1.11-dhe37z3c.mjs +0 -5
- package/dist/chunks/reload-plugins-0.1.11-gzep3pg3.mjs +0 -2
- package/dist/chunks/remote-env-0.1.11-yday97nq.mjs +0 -1
- package/dist/chunks/remoteSession-0.1.11-g3h440pv.mjs +0 -1
- package/dist/chunks/rename-0.1.11-ke9btph2.mjs +0 -1
- package/dist/chunks/replBridgeHandle-0.1.11-t5njc196.mjs +0 -1
- package/dist/chunks/resume-0.1.11-d4bbgty9.mjs +0 -2
- package/dist/chunks/sandbox-adapter-0.1.11-3czn1nws.mjs +0 -1
- package/dist/chunks/sandbox-toggle-0.1.11-qxv2w9n1.mjs +0 -1
- package/dist/chunks/session-0.1.11-2z972raf.mjs +0 -2
- package/dist/chunks/sessionFileAccessHooks-0.1.11-f3exnspr.mjs +0 -1
- package/dist/chunks/sessionStorage-0.1.11-aa2ftdjn.mjs +0 -1
- package/dist/chunks/setup-0.1.11-epmpszzf.mjs +0 -5
- package/dist/chunks/sinks-0.1.11-q3zcj5me.mjs +0 -1
- package/dist/chunks/skills-0.1.11-9xbyp1p5.mjs +0 -1
- package/dist/chunks/startupProfiler-0.1.11-5s07826j.mjs +0 -1
- package/dist/chunks/status-0.1.11-drvp15n8.mjs +0 -1
- package/dist/chunks/stickers-0.1.11-44f4tawn.mjs +0 -1
- package/dist/chunks/subprocessEnv-0.1.11-5w00fpez.mjs +0 -1
- package/dist/chunks/tasks-0.1.11-dn8h18fk.mjs +0 -1
- package/dist/chunks/teamHelpers-0.1.11-ca7kref8.mjs +0 -1
- package/dist/chunks/teammateModeSnapshot-0.1.11-an88rdgv.mjs +0 -1
- package/dist/chunks/teleport-0.1.11-8e3k0ex6.mjs +0 -1
- package/dist/chunks/terminalSetup-0.1.11-gtdwp0an.mjs +0 -1
- package/dist/chunks/theme-0.1.11-p447kczd.mjs +0 -1
- package/dist/chunks/thinkback-0.1.11-3f1xvkt5.mjs +0 -1
- package/dist/chunks/thinkback-play-0.1.11-0ax4h089.mjs +0 -1
- package/dist/chunks/toolPool-0.1.11-xrywy61j.mjs +0 -1
- package/dist/chunks/toolSearch-0.1.11-7yjvjxhp.mjs +0 -1
- package/dist/chunks/trustedDevice-0.1.11-070f1wch.mjs +0 -1
- package/dist/chunks/ultrareviewCommand-0.1.11-0m9b3kr5.mjs +0 -4
- package/dist/chunks/upgrade-0.1.11-1aj14cqt.mjs +0 -1
- package/dist/chunks/usage-0.1.11-hch4v5jb.mjs +0 -1
- package/dist/chunks/util-0.1.11-sjkxad5k.mjs +0 -1
- package/dist/chunks/utils-0.1.11-2bk8zn4g.mjs +0 -1
- package/dist/chunks/vim-0.1.11-v1rz1d56.mjs +0 -1
- package/dist/chunks/watcher-0.1.11-v8mkv1xy.mjs +0 -1
- package/dist/chunks/worktree-0.1.11-d7chpamf.mjs +0 -1
- package/dist/chunks/worktreeModeEnabled-0.1.11-tsxv6h6g.mjs +0 -1
- /package/dist/chunks/{cli-0.1.11-4px8nt5r.mjs → cli-0.1.13-fdmvysv0.mjs} +0 -0
- /package/dist/chunks/{cli-0.1.11-x3q39kf7.mjs → cli-0.1.13-gs7rcvne.mjs} +0 -0
- /package/dist/chunks/{cli-0.1.11-tyh8gms9.mjs → cli-0.1.13-m5c2efjx.mjs} +0 -0
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import{Sna as Z}from"./cli-0.1.13-tknwgkgp.mjs";import{Vna as Y,Yna as O}from"./cli-0.1.13-bj67mp7n.mjs";var ye=Y((he)=>{var R=O("node:https"),$=Z(),z=O("node:stream"),D=O("node:http2");function H(e){let t=e&&typeof e==="object"&&"reason"in e?e.reason:void 0;if(t){if(t instanceof Error){let s=Error("Request aborted");return s.name="AbortError",s.cause=t,s}let o=Error(String(t));return o.name="AbortError",o}let n=Error("Request aborted");return n.name="AbortError",n}var ee=["ECONNRESET","EPIPE","ETIMEDOUT"],Q=(e)=>{let t={};for(let n in e){let o=e[n];t[n]=Array.isArray(o)?o.join(","):o}return t},d={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:(e)=>clearTimeout(e)},F=1000,te=(e,t,n=0)=>{if(!n)return-1;let o=(s)=>{let r=d.setTimeout(()=>{e.destroy(),t(Object.assign(Error(`@smithy/node-http-handler - the request socket did not establish a connection with the server within the configured timeout of ${n} ms.`),{name:"TimeoutError"}))},n-s),c=(u)=>{if(u?.connecting)u.on("connect",()=>{d.clearTimeout(r)});else d.clearTimeout(r)};if(e.socket)c(e.socket);else e.on("socket",c)};if(n<2000)return o(0),0;return d.setTimeout(o.bind(null,F),F)},oe=(e,t,n=0,o,s)=>{if(n)return d.setTimeout(()=>{let r=`@smithy/node-http-handler - [${o?"ERROR":"WARN"}] a request has exceeded the configured ${n} ms requestTimeout.`;if(o){let c=Object.assign(Error(r),{name:"TimeoutError",code:"ETIMEDOUT"});e.destroy(c),t(c)}else r+=" Init client requestHandler with throwOnRequestTimeout=true to turn this into an error.",s?.warn?.(r)},n);return-1},ne=3000,se=(e,{keepAlive:t,keepAliveMsecs:n},o=ne)=>{if(t!==!0)return-1;let s=()=>{if(e.socket)e.socket.setKeepAlive(t,n||0);else e.on("socket",(r)=>{r.setKeepAlive(t,n||0)})};if(o===0)return s(),0;return d.setTimeout(s,o)},W=3000,re=(e,t,n=0)=>{let o=(s)=>{let r=n-s,c=()=>{e.destroy(),t(Object.assign(Error(`@smithy/node-http-handler - the request socket timed out after ${n} ms of inactivity (configured by client requestHandler).`),{name:"TimeoutError"}))};if(e.socket)e.socket.setTimeout(r,c),e.on("close",()=>e.socket?.removeListener("timeout",c));else e.setTimeout(r,c)};if(0<n&&n<6000)return o(0),0;return d.setTimeout(o.bind(null,n===0?0:W),W)},j=6000;async function V(e,t,n=j,o=!1){let s=t.headers,r=s?s.Expect||s.expect:void 0,c=-1,u=!0;if(!o&&r==="100-continue")u=await Promise.race([new Promise((f)=>{c=Number(d.setTimeout(()=>f(!0),Math.max(j,n)))}),new Promise((f)=>{e.on("continue",()=>{d.clearTimeout(c),f(!0)}),e.on("response",()=>{d.clearTimeout(c),f(!1)}),e.on("error",()=>{d.clearTimeout(c),f(!1)})})]);if(u)ie(e,t.body)}function ie(e,t){if(t instanceof z.Readable){t.pipe(e);return}if(t){let n=Buffer.isBuffer(t);if(n||typeof t==="string"){if(n&&t.byteLength===0)e.end();else e.end(t);return}let s=t;if(typeof s==="object"&&s.buffer&&typeof s.byteOffset==="number"&&typeof s.byteLength==="number"){e.end(Buffer.from(s.buffer,s.byteOffset,s.byteLength));return}e.end(Buffer.from(t));return}e.end()}var ce=0,_=void 0,q=void 0;class I{config;configProvider;socketWarningTimestamp=0;externalAgent=!1;metadata={handlerProtocol:"http/1.1"};static create(e){if(typeof e?.handle==="function")return e;return new I(e)}static checkSocketUsage(e,t,n=console){let{sockets:o,requests:s,maxSockets:r}=e;if(typeof r!=="number"||r===1/0)return t;let c=15000;if(Date.now()-c<t)return t;if(o&&s)for(let u in o){let f=o[u]?.length??0,l=s[u]?.length??0;if(f>=r&&l>=2*r)return n?.warn?.(`@smithy/node-http-handler:WARN - socket usage at capacity=${f} and ${l} additional requests are enqueued.
|
|
2
|
+
See https://docs.aws.amazon.com/sdk-for-javascript/v3/developer-guide/node-configuring-maxsockets.html
|
|
3
|
+
or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler config.`),Date.now()}return t}constructor(e){this.configProvider=new Promise((t,n)=>{if(typeof e==="function")e().then((o)=>{t(this.resolveDefaultConfig(o))}).catch(n);else t(this.resolveDefaultConfig(e))})}destroy(){this.config?.httpAgent?.destroy(),this.config?.httpsAgent?.destroy()}async handle(e,{abortSignal:t,requestTimeout:n}={}){if(!this.config)this.config=await this.configProvider;let o=this.config,s=e.protocol==="https:";if(!s&&!this.config.httpAgent)this.config.httpAgent=await this.config.httpAgentProvider();return new Promise((r,c)=>{let u=void 0,f=-1,l=-1,m=-1,y=-1,A=-1,b=()=>{d.clearTimeout(f),d.clearTimeout(l),d.clearTimeout(m),d.clearTimeout(y),d.clearTimeout(A)},U=async(i)=>{await u,b(),r(i)},p=async(i)=>{await u,b(),c(i)};if(t?.aborted){let i=H(t);p(i);return}let x=e.headers,M=x?(x.Expect??x.expect)==="100-continue":!1,C=s?o.httpsAgent:o.httpAgent;if(M&&!this.externalAgent)C=new(s?R.Agent:_)({keepAlive:!1,maxSockets:1/0});f=d.setTimeout(()=>{this.socketWarningTimestamp=I.checkSocketUsage(C,this.socketWarningTimestamp,o.logger)},o.socketAcquisitionWarningTimeout??(o.requestTimeout??2000)+(o.connectionTimeout??1000));let P=e.query?$.buildQueryString(e.query):"",S=void 0;if(e.username!=null||e.password!=null){let i=e.username??"",a=e.password??"";S=`${i}:${a}`}let w=e.path;if(P)w+=`?${P}`;if(e.fragment)w+=`#${e.fragment}`;let T=e.hostname??"";if(T[0]==="["&&T.endsWith("]"))T=e.hostname.slice(1,-1);else T=e.hostname;let v={headers:e.headers,host:T,method:e.method,path:w,port:e.port,agent:C,auth:S},h=(s?R.request:q)(v,(i)=>{let a=new $.HttpResponse({statusCode:i.statusCode||-1,reason:i.statusMessage,headers:Q(i.headers),body:i});U({response:a})});if(h.on("error",(i)=>{if(ee.includes(i.code))p(Object.assign(i,{name:"TimeoutError"}));else p(i)}),t){let i=()=>{h.destroy();let a=H(t);p(a)};if(typeof t.addEventListener==="function"){let a=t;a.addEventListener("abort",i,{once:!0}),h.once("close",()=>a.removeEventListener("abort",i))}else t.onabort=i}let k=n??o.requestTimeout;l=te(h,p,o.connectionTimeout),m=oe(h,p,k,o.throwOnRequestTimeout,o.logger??console),y=re(h,p,o.socketTimeout);let E=v.agent;if(typeof E==="object"&&"keepAlive"in E)A=se(h,{keepAlive:E.keepAlive,keepAliveMsecs:E.keepAliveMsecs});u=V(h,e,k,this.externalAgent).catch((i)=>{return b(),c(i)})})}updateHttpClientConfig(e,t){this.config=void 0,this.configProvider=this.configProvider.then((n)=>{return{...n,[e]:t}})}httpHandlerConfigs(){return this.config??{}}resolveDefaultConfig(e){let{requestTimeout:t,connectionTimeout:n,socketTimeout:o,socketAcquisitionWarningTimeout:s,httpAgent:r,httpsAgent:c,throwOnRequestTimeout:u,logger:f}=e||{},l=!0,m=50;return{connectionTimeout:n,requestTimeout:t,socketTimeout:o,socketAcquisitionWarningTimeout:s,throwOnRequestTimeout:u,httpAgentProvider:async()=>{let{Agent:y,request:A}=await import("node:http");if(q=A,_=y,r instanceof _||typeof r?.destroy==="function")return this.externalAgent=!0,r;return new _({keepAlive:!0,maxSockets:50,...r})},httpsAgent:(()=>{if(c instanceof R.Agent||typeof c?.destroy==="function")return this.externalAgent=!0,c;return new R.Agent({keepAlive:!0,maxSockets:50,...c})})(),logger:f}}}var ae=new Uint16Array(1);class L{id=ae[0]++;total=0;max=0;session;refs=0;constructor(e){e.unref(),this.session=e}retain(){if(this.session.destroyed)throw Error("@smithy/node-http-handler - cannot acquire reference to destroyed session.");this.refs+=1,this.total+=1,this.max=Math.max(this.refs,this.max),this.session.ref()}free(){if(this.session.destroyed)return;if(this.refs-=1,this.refs===0)this.session.unref();if(this.refs<0)throw Error("@smithy/node-http-handler - ClientHttp2Session refcount at zero, cannot decrement.")}deref(){return this.session}close(){if(!this.session.closed)this.session.close()}destroy(){if(this.refs=0,!this.session.destroyed)this.session.destroy()}useCount(){return this.refs}}class K{sessions=[];maxConcurrency=0;constructor(e){this.sessions=(e??[]).map((t)=>new L(t))}poll(){let e=!1;for(let t of this.sessions){if(t.deref().destroyed){e=!0;continue}if(!this.maxConcurrency||t.useCount()<this.maxConcurrency)return t}if(e){for(let t of this.sessions)if(t.deref().destroyed)this.remove(t)}}offerLast(e){this.sessions.push(e)}remove(e){let t=this.sessions.indexOf(e);if(t>-1)this.sessions.splice(t,1)}[Symbol.iterator](){return this.sessions[Symbol.iterator]()}setMaxConcurrency(e){this.maxConcurrency=e}destroy(e){this.remove(e),e.destroy()}}class J{config;connectOptions;connectionPools=new Map;constructor(e){if(this.config=e,this.config.maxConcurrency&&this.config.maxConcurrency<=0)throw RangeError("maxConcurrency must be greater than zero.")}lease(e,t){let n=this.getUrlString(e),o=this.getPool(n);if(!this.config.disableConcurrency&&!t.isEventStream){let f=o.poll();if(f)return f.retain(),f}let s=new L(this.connect(n)),r=s.deref();if(this.config.maxConcurrency)r.settings({maxConcurrentStreams:this.config.maxConcurrency},(f)=>{if(f)throw Error("Fail to set maxConcurrentStreams to "+this.config.maxConcurrency+"when creating new session for "+e.destination.toString())});let c=()=>{this.removeFromPoolAndClose(n,s)},u=()=>{this.removeFromPoolAndCheckedDestroy(n,s)};if(r.on("goaway",c),r.on("error",u),r.on("frameError",u),r.on("close",u),t.requestTimeout)r.setTimeout(t.requestTimeout,u);return o.offerLast(s),s.retain(),s}release(e,t){t.free()}createIsolatedSession(e,t){let n=this.getUrlString(e),o=new L(this.connect(n)),s=o.deref();s.settings({maxConcurrentStreams:1});let r=()=>{o.destroy()};if(s.on("error",r),s.on("frameError",r),s.on("close",r),t.requestTimeout)s.setTimeout(t.requestTimeout,r);return o.retain(),o}destroy(){for(let[e,t]of this.connectionPools){for(let n of[...t])n.destroy();this.connectionPools.delete(e)}}setMaxConcurrentStreams(e){if(e&&e<=0)throw RangeError("maxConcurrentStreams must be greater than zero.");this.config.maxConcurrency=e;for(let t of this.connectionPools.values())t.setMaxConcurrency(e)}setDisableConcurrentStreams(e){this.config.disableConcurrency=e}setNodeHttp2ConnectOptions(e){this.connectOptions=e}debug(){let e={};for(let[t,n]of this.connectionPools){let o=[];for(let s of n)o.push({id:s.id,active:s.useCount(),maxConcurrent:s.max,totalRequests:s.total});e[t]={sessions:o}}return e}removeFromPoolAndClose(e,t){this.connectionPools.get(e)?.remove(t),t.close()}removeFromPoolAndCheckedDestroy(e,t){this.connectionPools.get(e)?.remove(t),t.destroy()}getPool(e){if(!this.connectionPools.has(e)){let t=new K;if(this.config.maxConcurrency)t.setMaxConcurrency(this.config.maxConcurrency);this.connectionPools.set(e,t)}return this.connectionPools.get(e)}getUrlString(e){return e.destination.toString()}connect(e){return this.connectOptions===void 0?D.connect(e):D.connect(e,this.connectOptions)}}class B{config;configProvider;metadata={handlerProtocol:"h2"};connectionManager=new J({});static create(e){if(typeof e?.handle==="function")return e;return new B(e)}constructor(e){this.configProvider=new Promise((t,n)=>{if(typeof e==="function")e().then((o)=>{t(o||{})}).catch(n);else t(e||{})})}destroy(){this.connectionManager.destroy()}async handle(e,{abortSignal:t,requestTimeout:n,isEventStream:o}={}){if(!this.config){this.config=await this.configProvider;let{disableConcurrentStreams:f,maxConcurrentStreams:l,nodeHttp2ConnectOptions:m}=this.config;if(this.connectionManager.setDisableConcurrentStreams(f??!1),l)this.connectionManager.setMaxConcurrentStreams(l);if(m)this.connectionManager.setNodeHttp2ConnectOptions(m)}let{requestTimeout:s,disableConcurrentStreams:r}=this.config,c=r||o,u=n??s;return new Promise((f,l)=>{let m=!1,y=void 0,A=async(a)=>{await y,f(a)},b=async(a)=>{await y,l(a)};if(t?.aborted){m=!0;let a=H(t);b(a);return}let{hostname:U,method:p,port:x,protocol:M,query:C}=e,P="";if(e.username!=null||e.password!=null){let a=e.username??"",g=e.password??"";P=`${a}:${g}@`}let S=`${M}//${P}${U}${x?`:${x}`:""}`,w={destination:new URL(S)},T={requestTimeout:this.config?.sessionTimeout,isEventStream:o},v=c?this.connectionManager.createIsolatedSession(w,T):this.connectionManager.lease(w,T),N=v.deref(),h=(a)=>{if(c)v.destroy();m=!0,b(a)},k=C?$.buildQueryString(C):"",E=e.path;if(k)E+=`?${k}`;if(e.fragment)E+=`#${e.fragment}`;let i=N.request({...e.headers,[D.constants.HTTP2_HEADER_PATH]:E,[D.constants.HTTP2_HEADER_METHOD]:p});if(u)i.setTimeout(u,()=>{i.close();let a=Error(`Stream timed out because of no activity for ${u} ms`);a.name="TimeoutError",h(a)});if(t){let a=()=>{i.close();let g=H(t);h(g)};if(typeof t.addEventListener==="function"){let g=t;g.addEventListener("abort",a,{once:!0}),i.once("close",()=>g.removeEventListener("abort",a))}else t.onabort=a}i.on("frameError",(a,g,X)=>{h(Error(`Frame type id ${a} in stream id ${X} has failed with code ${g}.`))}),i.on("error",h),i.on("aborted",()=>{h(Error(`HTTP/2 stream is abnormally aborted in mid-communication with result code ${i.rstCode}.`))}),i.on("response",(a)=>{let g=new $.HttpResponse({statusCode:a[":status"]??-1,headers:Q(a),body:i});if(m=!0,A({response:g}),c)N.close()}),i.on("close",()=>{if(c)v.destroy();else this.connectionManager.release(w,v);if(!m)h(Error("Unexpected error: http2 request did not get a response"))}),y=V(i,e,u)})}updateHttpClientConfig(e,t){this.config=void 0,this.configProvider=this.configProvider.then((n)=>{return{...n,[e]:t}})}httpHandlerConfigs(){return this.config??{}}}class G extends z.Writable{bufferedBytes=[];_write(e,t,n){this.bufferedBytes.push(e),n()}}var ue=(e)=>{if(fe(e))return de(e);return new Promise((t,n)=>{let o=new G;e.pipe(o),e.on("error",(s)=>{o.end(),n(s)}),o.on("error",n),o.on("finish",function(){let s=new Uint8Array(Buffer.concat(this.bufferedBytes));t(s)})})},fe=(e)=>typeof ReadableStream==="function"&&e instanceof ReadableStream;async function de(e){let t=[],n=e.getReader(),o=!1,s=0;while(!o){let{done:u,value:f}=await n.read();if(f)t.push(f),s+=f.length;o=u}let r=new Uint8Array(s),c=0;for(let u of t)r.set(u,c),c+=u.length;return r}he.DEFAULT_REQUEST_TIMEOUT=ce;he.NodeHttp2Handler=B;he.NodeHttpHandler=I;he.streamCollector=ue});
|
|
4
|
+
export{ye as Lna};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{Jc as Jq,Nc as Tq}from"./cli-0.1.13-ssgwnxc5.mjs";import{Uc as zq,Vc as bq}from"./cli-0.1.13-85w0nxy9.mjs";import{CG as e,EG as Rq,Fy as u,Gy as fq,MG as qq,PG as Fq,ZF as S,aG as Nq,dH as D,gH as Cq,lG as s,mG as _q,qG as a,tG as l,tv as r,uv as Gq,xG as t}from"./cli-0.1.13-fh5dndvp.mjs";import{QP as n,RP as yq}from"./cli-0.1.13-5s4m8qj9.mjs";import{AV as Oq,LU as i,MU as Bq,VU as F,XU as C,jT as Lq}from"./cli-0.1.13-hjqn3n5a.mjs";import{wX as v,xX as R,yX as p}from"./cli-0.1.13-ck28msre.mjs";import{zX as Kq}from"./cli-0.1.13-79vtnprb.mjs";import{L9 as x,S7 as m,X7 as Zq,a8 as g,a9 as o,b8 as Xq,c9 as vq,d8 as $,f8 as Hq,f_ as wq}from"./cli-0.1.13-dag38tkx.mjs";import{Pga as P,Sga as h,Wga as Wq,oha as B,rha as Yq}from"./cli-0.1.13-144gn3fd.mjs";import{Tna as d,Xna as Vq}from"./cli-0.1.13-bj67mp7n.mjs";import{readFile as c}from"fs/promises";import{join as j}from"path";function Qq(){return s}function Aq(){return Mq}function Uq(){return`thinkback@${Qq()}`}async function jq(){let{enabled:H}=await D(),q=H.find((U)=>U.name==="thinkback"||U.source&&U.source.includes(Uq()));if(!q)return null;let J=j(q.path,"skills",Sq);if(await x(J))return J;return null}async function Iq(H){let q=j(H,"year_in_review.js"),J=j(H,"player.js");try{await c(q)}catch(z){if(h(z))return{success:!1,message:"No animation found. Run /think-back first to generate one."};return m(z),{success:!1,message:`Could not access animation data: ${P(z).message}`}}try{await c(J)}catch(z){if(h(z))return{success:!1,message:"Player script not found. The player.js file is missing from the thinkback skill."};return m(z),{success:!1,message:`Could not access player script: ${P(z).message}`}}let U=i.get(process.stdout);if(!U)return{success:!1,message:"Failed to access terminal instance"};U.enterAlternateScreen();try{await g("node",[J],{stdio:"inherit",cwd:H,reject:!1})}catch{}finally{U.exitAlternateScreen()}let O=j(H,"year_in_review.html");if(await x(O)){let z=o();$(z==="macos"?"open":z==="windows"?"start":"xdg-open",[O])}return{success:!0,message:"Year in review animation complete!"}}function Pq({onReady:H,onError:q}){let[J,U]=K.useState({phase:"checking"}),[O,z]=K.useState("");if(K.useEffect(()=>{async function Z(){try{let y=await l(),Y=Qq(),G=Aq(),X=Uq(),_=Y in y,L=qq(X);if(!_)U({phase:"installing-marketplace"}),B(`Installing marketplace ${G}`),await t({source:"github",repo:G},(V)=>{z(V)}),S(),B(`Marketplace ${Y} installed`);else if(!L)U({phase:"installing-marketplace"}),z("Updating marketplace…"),B(`Refreshing marketplace ${Y}`),await e(Y,(V)=>{z(V)}),a(),S(),B(`Marketplace ${Y} refreshed`);if(!L){U({phase:"installing-plugin"}),B(`Installing plugin ${X}`);let V=await zq([X]);if(V.failed.length>0){let w=V.failed.map((W)=>`${W.name}: ${W.error}`).join(", ");throw Error(`Failed to install plugin: ${w}`)}S(),B(`Plugin ${X} installed`)}else{let{disabled:V}=await D();if(V.some((W)=>W.name==="thinkback"||W.source?.includes(X))){U({phase:"enabling-plugin"}),B(`Enabling plugin ${X}`);let W=await Jq(X);if(!W.success)throw Error(`Failed to enable plugin: ${W.message}`);S(),B(`Plugin ${X} enabled`)}}U({phase:"ready"}),H()}catch(y){let Y=P(y);m(Y),U({phase:"error",message:Y.message}),q(Y.message)}}Z()},[H,q]),J.phase==="error")return v(F,{flexDirection:"column",children:R(C,{color:"error",children:["Error: ",J.message]})});if(J.phase==="ready")return null;let T=J.phase==="checking"?"Checking thinkback installation…":J.phase==="installing-marketplace"?"Installing marketplace…":J.phase==="enabling-plugin"?"Enabling thinkback plugin…":"Installing thinkback plugin…";return v(F,{flexDirection:"column",children:R(F,{children:[v(u,{}),v(C,{children:O||T})]})})}function mq(H){let q=k.c(19),{onDone:J,onAction:U,skillDir:O,hasGenerated:z}=H,[T,Z]=K.useState(!1),y;if(q[0]!==z)y=z?[{label:"Play animation",value:"play",description:"Watch your year in review"},{label:"Edit content",value:"edit",description:"Modify the animation"},{label:"Fix errors",value:"fix",description:"Fix validation or rendering issues"},{label:"Regenerate",value:"regenerate",description:"Create a new animation from scratch"}]:[{label:"Let's go!",value:"regenerate",description:"Generate your personalized animation"}],q[0]=z,q[1]=y;else y=q[1];let Y=y,G;if(q[2]!==U||q[3]!==J||q[4]!==O)G=function(b){if(Z(!0),b==="play")Iq(O).then(()=>{J(void 0,{display:"skip"})});else U(b)},q[2]=U,q[3]=J,q[4]=O,q[5]=G;else G=q[5];let X=G,_;if(q[6]!==J)_=function(){J(void 0,{display:"skip"})},q[6]=J,q[7]=_;else _=q[7];let L=_;if(T)return null;let V;if(q[8]!==z)V=!z&&R(F,{flexDirection:"column",children:[v(C,{children:"Relive your year of coding with Claude."}),v(C,{dimColor:!0,children:"We'll create a personalized ASCII animation celebrating your journey."})]}),q[8]=z,q[9]=V;else V=q[9];let w;if(q[10]!==X||q[11]!==Y)w=v(r,{options:Y,onChange:X,visibleOptionCount:5}),q[10]=X,q[11]=Y,q[12]=w;else w=q[12];let W;if(q[13]!==V||q[14]!==w)W=R(F,{flexDirection:"column",gap:1,children:[V,w]}),q[13]=V,q[14]=w,q[15]=W;else W=q[15];let f;if(q[16]!==L||q[17]!==W)f=v(n,{title:"Think Back on 2025 with Claude Code",subtitle:"Generate your 2025 Claude Code Think Back (takes a few minutes to run)",onCancel:L,color:"claude",children:W}),q[16]=L,q[17]=W,q[18]=f;else f=q[18];return f}function uq(H){let q=k.c(27),{onDone:J}=H,[U,O]=K.useState(!1),[z,T]=K.useState(null),[Z,y]=K.useState(null),[Y,G]=K.useState(null),X;if(q[0]===Symbol.for("react.memo_cache_sentinel"))X=function(){O(!0)},q[0]=X;else X=q[0];let _=X,L;if(q[1]!==J)L=(Q)=>{T(Q),J(`Error with thinkback: ${Q}. Try running /plugin to manually install the think-back plugin.`,{display:"system"})},q[1]=J,q[2]=L;else L=q[2];let V=L,w,W;if(q[3]!==V||q[4]!==U||q[5]!==z||q[6]!==Z)w=()=>{if(U&&!Z&&!z)jq().then((Q)=>{if(Q)B(`Thinkback skill directory: ${Q}`),y(Q);else V("Could not find thinkback skill directory")})},W=[U,Z,z,V],q[3]=V,q[4]=U,q[5]=z,q[6]=Z,q[7]=w,q[8]=W;else w=q[7],W=q[8];K.useEffect(w,W);let f,M;if(q[9]!==Z)f=()=>{if(!Z)return;let Q=j(Z,"year_in_review.js");x(Q).then((N)=>{B(`Checking for ${Q}: ${N?"found":"not found"}`),G(N)})},M=[Z],q[9]=Z,q[10]=f,q[11]=M;else f=q[10],M=q[11];K.useEffect(f,M);let b;if(q[12]!==J)b=function(N){J({edit:xq,fix:Eq,regenerate:hq}[N],{display:"user",shouldQuery:!0})},q[12]=J,q[13]=b;else b=q[13];let E=b;if(z){let Q;if(q[14]!==z)Q=R(C,{color:"error",children:["Error: ",z]}),q[14]=z,q[15]=Q;else Q=q[15];let N;if(q[16]===Symbol.for("react.memo_cache_sentinel"))N=v(C,{dimColor:!0,children:"Try running /plugin to manually install the think-back plugin."}),q[16]=N;else N=q[16];let A;if(q[17]!==Q)A=R(F,{flexDirection:"column",children:[Q,N]}),q[17]=Q,q[18]=A;else A=q[18];return A}if(!U){let Q;if(q[19]!==V)Q=v(Pq,{onReady:_,onError:V}),q[19]=V,q[20]=Q;else Q=q[20];return Q}if(!Z||Y===null){let Q;if(q[21]===Symbol.for("react.memo_cache_sentinel"))Q=R(F,{children:[v(u,{}),v(C,{children:"Loading thinkback skill…"})]}),q[21]=Q;else Q=q[21];return Q}let I;if(q[22]!==E||q[23]!==Y||q[24]!==J||q[25]!==Z)I=v(mq,{onDone:J,onAction:E,skillDir:Z,hasGenerated:Y}),q[22]=E,q[23]=Y,q[24]=J,q[25]=Z,q[26]=I;else I=q[26];return I}async function Yz(H){return v(uq,{onDone:H})}var k,K,Mq="anthropics/claude-plugins-official",Sq="thinkback",xq='Use the Skill tool to invoke the "thinkback" skill with mode=edit to modify my existing Claude Code year in review animation. Ask me what I want to change. When the animation is ready, tell the user to run /think-back again to play it.',Eq='Use the Skill tool to invoke the "thinkback" skill with mode=fix to fix validation or rendering errors in my existing Claude Code year in review animation. Run the validator, identify errors, and fix them. When the animation is ready, tell the user to run /think-back again to play it.',hq='Use the Skill tool to invoke the "thinkback" skill with mode=regenerate to create a completely new Claude Code year in review animation from scratch. Delete the existing animation and start fresh. When the animation is ready, tell the user to run /think-back again to play it.';var Dq=Vq(()=>{Xq();Gq();yq();fq();Bq();Oq();Tq();Yq();Wq();Hq();wq();Zq();vq();Nq();Fq();Rq();_q();Cq();bq();p();k=d(Lq(),1),K=d(Kq(),1)});
|
|
2
|
+
export{Iq as zc,Yz as Ac,Dq as Bc};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{
|
|
2
|
-
export{$J as
|
|
1
|
+
import{S4 as f,Z1 as j,a2 as I,k4 as b,l4 as c,q5 as d}from"./cli-0.1.13-bzgpcgdt.mjs";import{A6 as _,B6 as D}from"./cli-0.1.13-b3xc1r3k.mjs";import{C6 as X,T6 as T}from"./cli-0.1.13-wh68ve92.mjs";import{S7 as F,X7 as m}from"./cli-0.1.13-dag38tkx.mjs";import{hea as $,iea as R,jea as y,kea as E}from"./cli-0.1.13-jz57znb6.mjs";import{$ea as q,afa as h}from"./cli-0.1.13-pw5dks39.mjs";import{Pga as k,Qga as Y,Wga as O,Yga as M,aha as U,oha as W,rha as z}from"./cli-0.1.13-144gn3fd.mjs";import{Xna as A}from"./cli-0.1.13-bj67mp7n.mjs";import{randomUUID as l}from"crypto";function p(J){if(!X.isAxiosError(J))return!1;if(!J.response)return!0;if(J.response.status>=500)return!0;return!1}async function u(J,B){let N;for(let K=0;K<=x;K++)try{return await X.get(J,B)}catch(Q){if(N=Q,!p(Q))throw Q;if(K>=x)throw W(`Teleport request failed after ${K+1} attempts: ${Y(Q)}`),Q;let V=S[K]??2000;W(`Teleport request failed (attempt ${K+1}/${x+1}), retrying in ${V}ms: ${Y(Q)}`),await b(V)}throw N}async function C(){let J=f()?.accessToken;if(J===void 0)throw Error("Claude Code web sessions require authentication with a Claude.ai account. API key authentication is not sufficient. Please run /login to authenticate, or check your authentication status with /status.");let B=await j();if(!B)throw Error("Unable to get organization UUID");return{accessToken:J,orgUUID:B}}async function NJ(){let{accessToken:J,orgUUID:B}=await C(),N=`${q().BASE_API_URL}/v1/sessions`;try{let K={...L(J),"anthropic-beta":"ccr-byoc-2025-07-29","x-organization-uuid":B},Q=await u(N,{headers:K});if(Q.status!==200)throw Error(`Failed to fetch code sessions: ${Q.statusText}`);return Q.data.data.map((Z)=>{let v=Z.session_context.sources.find((G)=>G.type==="git_repository"),H=null;if(v?.url){let G=_(v.url);if(G){let[w,P]=G.split("/");if(w&&P)H={name:P,owner:{login:w},default_branch:v.revision||void 0}}}return{id:Z.id,title:Z.title||"Untitled",description:"",status:Z.session_status,repo:H,turns:[],created_at:Z.created_at,updated_at:Z.updated_at}})}catch(K){let Q=k(K);throw F(Q),K}}function L(J){return{Authorization:`Bearer ${J}`,"Content-Type":"application/json","anthropic-version":"2023-06-01"}}async function WJ(J){let{accessToken:B,orgUUID:N}=await C(),K=`${q().BASE_API_URL}/v1/sessions/${J}`,Q={...L(B),"anthropic-beta":"ccr-byoc-2025-07-29","x-organization-uuid":N},V=await X.get(K,{headers:Q,timeout:15000,validateStatus:(Z)=>Z<500});if(V.status!==200){let v=V.data?.error?.message;if(V.status===404)throw Error(`Session not found: ${J}`);if(V.status===401)throw Error("Session expired. Please run /login to sign in again.");throw Error(v||`Failed to fetch session: ${V.status} ${V.statusText}`)}return V.data}function GJ(J){return J.session_context.outcomes?.find((N)=>N.type==="git_repository")?.git_info?.branches[0]}async function vJ(J,B,N){try{let{accessToken:K,orgUUID:Q}=await C(),V=`${q().BASE_API_URL}/v1/sessions/${J}/events`,Z={...L(K),"anthropic-beta":"ccr-byoc-2025-07-29","x-organization-uuid":Q},H={events:[{uuid:N?.uuid??l(),session_id:J,type:"user",parent_tool_use_id:null,message:{role:"user",content:B}}]};W(`[sendEventToRemoteSession] Sending event to session ${J}`);let G=await X.post(V,H,{headers:Z,validateStatus:(w)=>w<500,timeout:30000});if(G.status===200||G.status===201)return W(`[sendEventToRemoteSession] Successfully sent event to session ${J}`),!0;return W(`[sendEventToRemoteSession] Failed with status ${G.status}: ${M(G.data)}`),!1}catch(K){return W(`[sendEventToRemoteSession] Error: ${Y(K)}`),!1}}async function XJ(J,B){try{let{accessToken:N,orgUUID:K}=await C(),Q=`${q().BASE_API_URL}/v1/sessions/${J}`,V={...L(N),"anthropic-beta":"ccr-byoc-2025-07-29","x-organization-uuid":K};W(`[updateSessionTitle] Updating title for session ${J}: "${B}"`);let Z=await X.patch(Q,{title:B},{headers:V,validateStatus:(v)=>v<500});if(Z.status===200)return W(`[updateSessionTitle] Successfully updated title for session ${J}`),!0;return W(`[updateSessionTitle] Failed with status ${Z.status}: ${M(Z.data)}`),!1}catch(N){return W(`[updateSessionTitle] Error: ${Y(N)}`),!1}}var S,x,$J="ccr-byoc-2025-07-29",BJ;var g=A(()=>{T();h();I();R();d();z();D();O();E();m();c();U();S=[2000,4000,8000,16000],x=S.length;BJ=y(()=>$.object({id:$.string(),title:$.string(),description:$.string(),status:$.enum(["idle","working","waiting","completed","archived","cancelled","rejected"]),repo:$.object({name:$.string(),owner:$.object({login:$.string()}),default_branch:$.string().optional()}).nullable(),turns:$.array($.string()),created_at:$.string(),updated_at:$.string()}))});
|
|
2
|
+
export{$J as JX,p as KX,u as LX,BJ as MX,C as NX,NJ as OX,L as PX,WJ as QX,GJ as RX,vJ as SX,XJ as TX,g as UX};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{Ip as m,Jp as E6,Rj as lJ,Sj as aZ,nk as h,qk as LQ,wt as nJ,xt as lZ}from"./cli-0.1.13-fh5dndvp.mjs";import{S4 as VQ,b5 as wQ,q5 as z6}from"./cli-0.1.13-bzgpcgdt.mjs";import{A7 as IZ,Paa as EQ,b7 as TJ,bba as I6,c7 as LZ,f7 as a,g7 as fQ,h7 as E,i7 as c,j7 as S,k7 as hJ,p7 as U,p9 as aJ,q7 as F,q9 as Z6,r7 as vJ,r9 as UQ,s7 as RZ,s9 as H6,t7 as mJ,t9 as BQ,u7 as FZ,u9 as K6,v7 as V,w7 as $J,x7 as PJ,y7 as pQ,z7 as yJ}from"./cli-0.1.13-dag38tkx.mjs";import{gea as K,iea as xQ,jea as I,kea as NQ}from"./cli-0.1.13-jz57znb6.mjs";import{Nea as v,Sea as F6}from"./cli-0.1.13-wwnez3j0.mjs";import{Afa as N6,ofa as T}from"./cli-0.1.13-rjjyq9ej.mjs";import{$ha as dJ,Eia as z,Fia as i,Gia as _J,Hia as NZ,Kia as N,Lia as f,Mha as DQ,Nha as U6,Oha as kJ,Pha as DZ,Rma as zQ,Sia as k,Tia as rJ,Uia as _,Via as tZ,Wia as uJ,Xia as rZ,Yha as WQ,Zha as X6,_ha as O,gia as l,gna as R6,hia as kQ,iia as w,jia as xJ,kia as ZQ,lia as q6,mia as fJ,nia as xZ,qia as C,ria as FJ,sia as L,tia as IJ}from"./cli-0.1.13-52f40ba4.mjs";import{lna as x,mna as GJ,pna as SJ,qna as MZ}from"./cli-0.1.13-xv6wh44y.mjs";import{Xna as Y}from"./cli-0.1.13-bj67mp7n.mjs";function AQ(J,Q){var Z=-1,q=J==null?0:J.length;while(++Z<q)if(Q(J[Z],Z,J)===!1)break;return J}var p;var b=Y(()=>{p=AQ});function OQ(J,Q){return J&&U(Q,z(Q),J)}var u;var n=Y(()=>{F();i();u=OQ});function SQ(J,Q){return J&&U(Q,E(Q),J)}var o;var r=Y(()=>{F();c();o=SQ});function dQ(J,Q){return U(J,l(J),Q)}var s;var t=Y(()=>{F();kQ();s=dQ});function _Q(J,Q){return U(J,a(J),Q)}var e;var JJ=Y(()=>{F();fQ();e=_Q});function vQ(J){var Q=J.length,Z=new J.constructor(Q);if(Q&&typeof J[0]=="string"&&hQ.call(J,"index"))Z.index=J.index,Z.input=J.input;return Z}var TQ,hQ,QJ;var ZJ=Y(()=>{TQ=Object.prototype,hQ=TQ.hasOwnProperty;QJ=vQ});function mQ(J,Q){var Z=Q?V(J.buffer):J.buffer;return new J.constructor(Z,J.byteOffset,J.byteLength)}var qJ;var WJ=Y(()=>{$J();qJ=mQ});function gQ(J){var Q=new J.constructor(J.source,yQ.exec(J));return Q.lastIndex=J.lastIndex,Q}var yQ,XJ;var YJ=Y(()=>{yQ=/\w*$/;XJ=gQ});function jQ(J){return KJ?Object(KJ.call(J)):{}}var HJ,KJ,UJ;var BJ=Y(()=>{GJ();HJ=x?x.prototype:void 0,KJ=HJ?HJ.valueOf:void 0;UJ=jQ});function YZ(J,Q,Z){var q=J.constructor;switch(Q){case sQ:return V(J);case bQ:case iQ:return new q(+J);case tQ:return qJ(J,Z);case aQ:case eQ:case JZ:case QZ:case ZZ:case $Z:case qZ:case WZ:case XZ:return PJ(J,Z);case uQ:return new q;case nQ:case rQ:return new q(J);case cQ:return XJ(J);case oQ:return new q;case lQ:return UJ(J)}}var bQ="[object Boolean]",iQ="[object Date]",uQ="[object Map]",nQ="[object Number]",cQ="[object RegExp]",oQ="[object Set]",rQ="[object String]",lQ="[object Symbol]",sQ="[object ArrayBuffer]",tQ="[object DataView]",aQ="[object Float32Array]",eQ="[object Float64Array]",JZ="[object Int8Array]",QZ="[object Int16Array]",ZZ="[object Int32Array]",$Z="[object Uint8Array]",qZ="[object Uint8ClampedArray]",WZ="[object Uint16Array]",XZ="[object Uint32Array]",MJ;var DJ=Y(()=>{$J();WJ();YJ();BJ();pQ();MJ=YZ});function KZ(J){return w(J)&&N(J)==HZ}var HZ="[object Map]",NJ;var LJ=Y(()=>{f();xJ();NJ=KZ});var RJ,GZ,zJ;var EJ=Y(()=>{LJ();FJ();IJ();RJ=L&&L.isMap,GZ=RJ?C(RJ):NJ,zJ=GZ});function BZ(J){return w(J)&&N(J)==UZ}var UZ="[object Set]",VJ;var wJ=Y(()=>{f();xJ();VJ=BZ});var CJ,PZ,AJ;var OJ=Y(()=>{wJ();FJ();IJ();CJ=L&&L.isSet,PZ=CJ?C(CJ):VJ,AJ=PZ});function A(J,Q,Z,q,W,H){var $,G=Q&zZ,M=Q&EZ,d=Q&VZ;if(Z)$=W?Z(J,q,W,H):Z(J);if($!==void 0)return $;if(!SJ(J))return J;var R=O(J);if(R){if($=QJ(J),!G)return mJ(J,$)}else{var D=N(J),y=D==jJ||D==SZ;if(fJ(J))return vJ(J,G);if(D==pJ||D==gJ||y&&!W){if($=M||y?{}:yJ(J),!G)return M?e(J,o($,J)):s(J,u($,J))}else{if(!X[D])return W?J:{};$=MJ(J,D,G)}}H||(H=new kJ);var g=H.get(J);if(g)return g;if(H.set(J,$),AJ(J))J.forEach(function(B){$.add(A(B,Q,Z,B,J,H))});else if(zJ(J))J.forEach(function(B,P){$.set(P,A(B,Q,Z,P,J,H))});var CQ=d?M?S:_J:M?E:z,j=R?void 0:CQ(J);return p(j||J,function(B,P){if(j)P=B,B=J[P];TJ($,P,A(B,Q,Z,P,J,H))}),$}var zZ=1,EZ=2,VZ=4,gJ="[object Arguments]",wZ="[object Array]",CZ="[object Boolean]",AZ="[object Date]",OZ="[object Error]",jJ="[object Function]",SZ="[object GeneratorFunction]",kZ="[object Map]",dZ="[object Number]",pJ="[object Object]",fZ="[object RegExp]",_Z="[object Set]",TZ="[object String]",hZ="[object Symbol]",vZ="[object WeakMap]",mZ="[object ArrayBuffer]",yZ="[object DataView]",gZ="[object Float32Array]",jZ="[object Float64Array]",pZ="[object Int8Array]",bZ="[object Int16Array]",iZ="[object Int32Array]",uZ="[object Uint8Array]",nZ="[object Uint8ClampedArray]",cZ="[object Uint16Array]",oZ="[object Uint32Array]",X,bJ;var iJ=Y(()=>{DZ();b();LZ();n();r();RZ();FZ();t();JJ();NZ();hJ();f();ZJ();DJ();IZ();dJ();xZ();EJ();MZ();OJ();i();c();X={};X[gJ]=X[wZ]=X[mZ]=X[yZ]=X[CZ]=X[AZ]=X[gZ]=X[jZ]=X[pZ]=X[bZ]=X[iZ]=X[kZ]=X[dZ]=X[pJ]=X[fZ]=X[_Z]=X[TZ]=X[hZ]=X[uZ]=X[nZ]=X[cZ]=X[oZ]=!0;X[OZ]=X[jJ]=X[vZ]=!1;bJ=A});function sZ(J,Q){return Q.length<2?J:uJ(J,nJ(Q,0,-1))}var cJ;var oJ=Y(()=>{rZ();lZ();cJ=sZ});function Q6(J,Q){Q=k(Q,J);var Z=-1,q=Q.length;if(!q)return!0;while(++Z<q){var W=_(Q[Z]);if(W==="__proto__"&&!J6.call(J,"__proto__"))return!1;if((W==="constructor"||W==="prototype")&&Z<q-1)return!1}var H=cJ(J,Q);return H==null||delete H[_(lJ(Q))]}var eZ,J6,sJ;var tJ=Y(()=>{rJ();aZ();oJ();tZ();eZ=Object.prototype,J6=eZ.hasOwnProperty;sJ=Q6});function $6(J){return aJ(J)?void 0:J}var eJ;var JQ=Y(()=>{Z6();eJ=$6});function W6(J){return O(J)||ZQ(J)||!!(QQ&&J&&J[QQ])}var QQ,$Q;var qQ=Y(()=>{GJ();q6();dJ();QQ=x?x.isConcatSpreadable:void 0;$Q=W6});function XQ(J,Q,Z,q,W){var H=-1,$=J.length;Z||(Z=$Q),W||(W=[]);while(++H<$){var G=J[H];if(Q>0&&Z(G))if(Q>1)XQ(G,Q-1,Z,q,W);else WQ(W,G);else if(!q)W[W.length]=G}return W}var YQ;var HQ=Y(()=>{X6();qQ();YQ=XQ});function Y6(J){var Q=J==null?0:J.length;return Q?YQ(J,1):[]}var KQ;var GQ=Y(()=>{HQ();KQ=Y6});function G6(J){return BQ(UQ(J,void 0,KQ),J+"")}var PQ;var MQ=Y(()=>{GQ();H6();K6();PQ=G6});var B6=1,P6=2,M6=4,D6,D$;var x6=Y(()=>{U6();iJ();tJ();rJ();F();JQ();MQ();hJ();D6=PQ(function(J,Q){var Z={};if(J==null)return Z;var q=!1;if(Q=DQ(Q,function(H){return H=k(H,J),q||(q=H.length>1),H}),U(J,S(J),Z),q)Z=bJ(Z,B6|P6|M6,eJ);var W=Q.length;while(W--)sJ(Z,Q[W]);return Z}),D$=D6});function RQ(){let J=T("tengu_harbor_ledger",[]),Q=L6().safeParse(J);return Q.success?Q.data:[]}function FQ(){return T("tengu_harbor",!1)}var L6;var IQ=Y(()=>{xQ();NQ();LQ();N6();L6=I(()=>K.array(K.object({marketplace:K.string(),plugin:K.string()})))});function f$(J,Q,Z){let q=Object.entries(Z??{}).filter(([W])=>w6.test(W)).map(([W,H])=>` ${W}="${m(H)}"`).join("");return`<${v} source="${m(J)}"${q}>
|
|
2
2
|
${Q}
|
|
3
3
|
</${v}>`}function C6(J,Q){if((J==="team"||J==="enterprise")&&Q)return{entries:Q,source:"org"};return{entries:RQ(),source:"ledger"}}function A6(J,Q){let Z=J.split(":");return Q.find((q)=>q.kind==="server"?J===q.name:Z[0]==="plugin"&&Z[1]===q.name)}function _$(J,Q,Z){if(!Q?.experimental?.["claude/channel"])return{action:"skip",kind:"capability",reason:"server did not declare claude/channel capability"};if(!FQ())return{action:"skip",kind:"disabled",reason:"channels feature is not currently available"};if(!VQ()?.accessToken)return{action:"skip",kind:"auth",reason:"channels requires claude.ai authentication (run /login)"};let q=wQ(),W=q==="team"||q==="enterprise",H=W?EQ("policySettings"):void 0;if(W&&H?.channelsEnabled!==!0)return{action:"skip",kind:"policy",reason:"channels not enabled by org policy (set channelsEnabled: true in managed settings)"};let $=A6(J,zQ());if(!$)return{action:"skip",kind:"session",reason:`server ${J} not in --channels list for this session`};if($.kind==="plugin"){let G=Z?h(Z).marketplace:void 0;if(G!==$.marketplace)return{action:"skip",kind:"marketplace",reason:`you asked for plugin:${$.name}@${$.marketplace} but the installed ${$.name} plugin is from ${G??"an unknown source"}`};if(!$.dev){let{entries:M,source:d}=C6(q,H?.allowedChannelPlugins);if(!M.some((R)=>R.plugin===$.name&&R.marketplace===$.marketplace))return{action:"skip",kind:"allowlist",reason:d==="org"?`plugin ${$.name}@${$.marketplace} is not on your org's approved channels list (set allowedChannelPlugins in managed settings)`:`plugin ${$.name}@${$.marketplace} is not on the approved channels allowlist (use --dangerously-load-development-channels for local dev)`}}}else if(!$.dev)return{action:"skip",kind:"allowlist",reason:`server ${$.name} is not on the approved channels allowlist (use --dangerously-load-development-channels for local dev)`};return{action:"register"}}var k$,V6="notifications/claude/channel/permission",d$,w6;var O6=Y(()=>{xQ();R6();F6();z6();NQ();LQ();I6();E6();IQ();k$=I(()=>K.object({method:K.literal("notifications/claude/channel"),params:K.object({content:K.string(),meta:K.record(K.string(),K.string()).optional()})})),d$=I(()=>K.object({method:K.literal(V6),params:K.object({request_id:K.string(),behavior:K.enum(["allow","deny"])})})),w6=/^[a-zA-Z_][a-zA-Z0-9_]*$/});
|
|
4
|
-
export{D$ as
|
|
4
|
+
export{D$ as se,x6 as te,IQ as ue,k$ as ve,f$ as we,A6 as xe,_$ as ye,O6 as ze};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{yh as V,zh as v}from"./cli-0.1.13-zmft0mps.mjs";import{wX as U,yX as J}from"./cli-0.1.13-ck28msre.mjs";import{WX as W,XX as B}from"./cli-0.1.13-2vrh3n9y.mjs";import{O1 as N,P1 as _,S4 as Q,X4 as R,q5 as $}from"./cli-0.1.13-bzgpcgdt.mjs";import{S7 as K,X7 as Z}from"./cli-0.1.13-dag38tkx.mjs";import{Xna as Y}from"./cli-0.1.13-bj67mp7n.mjs";async function w(y,X){try{if(R()){let q=Q(),z=!1;if(q?.subscriptionType&&q?.rateLimitTier)z=q.subscriptionType==="max"&&q.rateLimitTier==="default_claude_max_20x";else if(q?.accessToken){let H=await N(q.accessToken);z=H?.organization?.organization_type==="claude_max"&&H?.organization?.rate_limit_tier==="default_claude_max_20x"}if(z)return setTimeout(y,0,"You are already on the highest Max subscription plan. For additional usage, run /login to switch to an API usage-billed account."),null}return await W("https://claude.ai/upgrade/max"),U(V,{startingMessage:"Starting new login following /upgrade. Exit with Ctrl-C to use existing account.",onDone:(q)=>{X.onChangeAPIKey(),y(q?"Login successful":"Login interrupted")}})}catch(G){K(G),setTimeout(y,0,"Failed to open browser. Please visit https://claude.ai/upgrade/max to upgrade.")}return null}var E=Y(()=>{_();$();B();Z();v();J()});
|
|
2
|
+
export{w as mb,E as nb};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{
|
|
2
|
-
export{j as
|
|
1
|
+
import{aZ as y,eZ as V}from"./cli-0.1.13-qdtwrf9z.mjs";import{L_ as q,N_ as Q,d8 as p,f8 as K}from"./cli-0.1.13-dag38tkx.mjs";import{Xna as J}from"./cli-0.1.13-bj67mp7n.mjs";function j(){return!!z}async function D(){if(b!==null)return b;return b=!!z,b}function P(){return W||null}async function w(){return(await p(y,["-V"])).code===0}function E(){if(f!==null)return f;let k=process.env.TERM_PROGRAM,B=!!process.env.ITERM_SESSION_ID,H=q.terminal==="iTerm.app";return f=k==="iTerm.app"||B||H,f}async function F(){return(await p(Y,["session","list"])).code===0}function G(){b=null,f=null}var z,W,b=null,f=null,Y="it2";var Z=J(()=>{Q();K();V();z=process.env.TMUX,W=process.env.TMUX_PANE});
|
|
2
|
+
export{j as QY,D as RY,P as SY,w as TY,E as UY,Y as VY,F as WY,G as XY,Z as YY};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{mh as e,ph as fq}from"./cli-0.1.13-mkw72mxc.mjs";import{qh as t,sh as Hq}from"./cli-0.1.13-b40skdsz.mjs";import{KK as s,LK as Oq,di as u,ei as g,fi as Zq,tv as o,uv as Mq}from"./cli-0.1.13-fh5dndvp.mjs";import{IP as S,JP as Nq,KP as i,LP as Wq,MP as r,NP as Yq,QP as n,RP as kq}from"./cli-0.1.13-5s4m8qj9.mjs";import{$S as Vq,ZS as $}from"./cli-0.1.13-g654740k.mjs";import{AV as Xq,VU as M,XU as F,jT as Qq,nV as c,oV as Uq}from"./cli-0.1.13-hjqn3n5a.mjs";import{wX as L,xX as R,yX as l}from"./cli-0.1.13-ck28msre.mjs";import{zX as Lq}from"./cli-0.1.13-79vtnprb.mjs";import{Y7 as d,Z7 as Jq}from"./cli-0.1.13-dag38tkx.mjs";import{Tna as a,Xna as Gq}from"./cli-0.1.13-bj67mp7n.mjs";function qq(){let Z=T.c(1),q;if(Z[0]===Symbol.for("react.memo_cache_sentinel"))q=L(F,{dimColor:!0,children:"Claude Code will be able to read files in this directory and make edits when auto-accept edits is on."}),Z[0]=q;else q=Z[0];return q}function wq(Z){let q=T.c(5),{path:X}=Z,Q;if(q[0]!==X)Q=L(F,{color:"permission",children:X}),q[0]=X,q[1]=Q;else Q=q[1];let N;if(q[2]===Symbol.for("react.memo_cache_sentinel"))N=L(qq,{}),q[2]=N;else N=q[2];let J;if(q[3]!==Q)J=R(M,{flexDirection:"column",paddingX:2,gap:1,children:[Q,N]}),q[3]=Q,q[4]=J;else J=q[4];return J}function Kq(Z){let q=T.c(14),{value:X,onChange:Q,onSubmit:N,error:J,suggestions:V,selectedSuggestion:w}=Z,k;if(q[0]===Symbol.for("react.memo_cache_sentinel"))k=L(F,{children:"Enter the path to the directory:"}),q[0]=k;else k=q[0];let Y;if(q[1]!==Q||q[2]!==N||q[3]!==X)Y=L(M,{borderDimColor:!0,borderStyle:"round",marginY:1,paddingLeft:1,children:L(s,{showCursor:!0,placeholder:`Directory path${d.ellipsis}`,value:X,onChange:Q,onSubmit:N,columns:80,cursorOffset:X.length,onChangeCursorOffset:Aq})}),q[1]=Q,q[2]=N,q[3]=X,q[4]=Y;else Y=q[4];let W;if(q[5]!==w||q[6]!==V)W=V.length>0&&L(M,{marginBottom:1,children:L(t,{suggestions:V,selectedSuggestion:w})}),q[5]=w,q[6]=V,q[7]=W;else W=q[7];let U;if(q[8]!==J)U=J&&L(F,{color:"error",children:J}),q[8]=J,q[9]=U;else U=q[9];let O;if(q[10]!==Y||q[11]!==W||q[12]!==U)O=R(M,{flexDirection:"column",children:[k,Y,W,U]}),q[10]=Y,q[11]=W,q[12]=U,q[13]=O;else O=q[13];return O}function Aq(){}function lq(Z){let q=T.c(34),{onAddDirectory:X,onCancel:Q,permissionContext:N,directoryPath:J}=Z,[V,w]=H.useState(""),[k,Y]=H.useState(null),W;if(q[0]===Symbol.for("react.memo_cache_sentinel"))W=[],q[0]=W;else W=q[0];let[U,O]=H.useState(W),[f,B]=H.useState(0),v;if(q[1]===Symbol.for("react.memo_cache_sentinel"))v=async(z)=>{if(!z){O([]),B(0);return}let G=await e(z);O(G),B(0)},q[1]=v;else v=q[1];let I=c(v,100),C,P;if(q[2]!==I||q[3]!==V)C=()=>{I(V)},P=[V,I],q[2]=I,q[3]=V,q[4]=C,q[5]=P;else C=q[4],P=q[5];H.useEffect(C,P);let m;if(q[6]===Symbol.for("react.memo_cache_sentinel"))m=(z)=>{let G=z.id+"/";w(G),Y(null)},q[6]=m;else m=q[6];let zq=m,_;if(q[7]!==X||q[8]!==N)_=async(z)=>{let G=await u(z,N);if(G.resultType==="success")X(G.absolutePath,!1);else Y(g(G))},q[7]=X,q[8]=N,q[9]=_;else _=q[9];let K=_,D;if(q[10]===Symbol.for("react.memo_cache_sentinel"))D={context:"Settings"},q[10]=D;else D=q[10];$("confirm:no",Q,D);let b;if(q[11]!==K||q[12]!==f||q[13]!==U)b=(z)=>{if(U.length>0){if(z.key==="tab"){z.preventDefault();let G=U[f];if(G)zq(G);return}if(z.key==="return"){z.preventDefault();let G=U[f];if(G)K(G.id+"/");return}if(z.key==="up"||z.ctrl&&z.key==="p"){z.preventDefault(),B((G)=>G<=0?U.length-1:G-1);return}if(z.key==="down"||z.ctrl&&z.key==="n"){z.preventDefault(),B((G)=>G>=U.length-1?0:G+1);return}}},q[11]=K,q[12]=f,q[13]=U,q[14]=b;else b=q[14];let x=b,j;if(q[15]!==J||q[16]!==X||q[17]!==Q)j=(z)=>{if(!J)return;let G=z;q:switch(G){case"yes-session":{X(J,!1);break q}case"yes-remember":{X(J,!0);break q}case"no":Q()}},q[15]=J,q[16]=X,q[17]=Q,q[18]=j;else j=q[18];let y=j,p=J?void 0:Eq,A;if(q[19]!==V||q[20]!==J||q[21]!==k||q[22]!==y||q[23]!==K||q[24]!==f||q[25]!==U)A=J?R(M,{flexDirection:"column",gap:1,children:[L(wq,{path:J}),L(o,{options:Rq,onChange:y,onCancel:()=>y("no")})]}):R(M,{flexDirection:"column",gap:1,marginX:2,children:[L(qq,{}),L(Kq,{value:V,onChange:w,onSubmit:K,error:k,suggestions:U,selectedSuggestion:f})]}),q[19]=V,q[20]=J,q[21]=k,q[22]=y,q[23]=K,q[24]=f,q[25]=U,q[26]=A;else A=q[26];let E;if(q[27]!==Q||q[28]!==p||q[29]!==A)E=L(n,{title:"Add directory to workspace",onCancel:Q,color:"permission",isCancelActive:!1,inputGuide:p,children:A}),q[27]=Q,q[28]=p,q[29]=A,q[30]=E;else E=q[30];let h;if(q[31]!==x||q[32]!==E)h=L(M,{flexDirection:"column",tabIndex:0,autoFocus:!0,onKeyDown:x,children:E}),q[31]=x,q[32]=E,q[33]=h;else h=q[33];return h}function Eq(Z){return Z.pending?R(F,{children:["Press ",Z.keyName," again to exit"]}):R(r,{children:[L(S,{shortcut:"Tab",action:"complete"}),L(S,{shortcut:"Enter",action:"add"}),L(i,{action:"confirm:no",context:"Settings",fallback:"Esc",description:"cancel"})]})}var T,H,Rq;var Fq=Gq(()=>{Jq();Uq();Zq();Oq();Xq();Vq();fq();Wq();Mq();Yq();kq();Nq();Hq();l();T=a(Qq(),1),H=a(Lq(),1),Rq=[{value:"yes-session",label:"Yes, for this session"},{value:"yes-remember",label:"Yes, and remember this directory"},{value:"no",label:"No"}]});
|
|
2
|
+
export{lq as kh,Fq as lh};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{fS as z0,gS as R0}from"./cli-0.1.13-f6gfa426.mjs";import{$S as q0,WS as d,YS as X0,ZS as N0,hT as P0,iT as D0}from"./cli-0.1.13-g654740k.mjs";import{AV as h,EU as T,FU as Y0,VU as I,XU as F,jT as j}from"./cli-0.1.13-hjqn3n5a.mjs";import{vX as y,wX as U,xX as D,yX as M}from"./cli-0.1.13-ck28msre.mjs";import{zX as u}from"./cli-0.1.13-79vtnprb.mjs";import{qga as $,rga as U0}from"./cli-0.1.13-45hjhcbc.mjs";import{Tna as v,Xna as A}from"./cli-0.1.13-bj67mp7n.mjs";function l(X,N,P){let z=d(),Q=z?.getDisplayText(X,N),Y=Q===void 0,q=z?"action_not_found":"no_context",R=f.useRef(!1);return f.useEffect(()=>{if(Y&&!R.current)R.current=!0,$("tengu_keybinding_fallback_used",{action:X,context:N,fallback:P,reason:q})},[Y,X,N,P,q]),Y?P:Q}var f;var a=A(()=>{U0();X0();f=v(u(),1)});function p(X){let N=s.c(9),{shortcut:P,action:z,parens:Q,bold:Y}=X,q=Q===void 0?!1:Q,R=Y===void 0?!1:Y,L;if(N[0]!==R||N[1]!==P)L=R?U(T,{bold:!0,children:P}):P,N[0]=R,N[1]=P,N[2]=L;else L=N[2];let Z=L;if(q){let J;if(N[3]!==z||N[4]!==Z)J=D(T,{children:["(",Z," to ",z,")"]}),N[3]=z,N[4]=Z,N[5]=J;else J=N[5];return J}let O;if(N[6]!==z||N[7]!==Z)O=D(T,{children:[Z," to ",z]}),N[6]=z,N[7]=Z,N[8]=O;else O=N[8];return O}var s;var b=A(()=>{Y0();M();s=v(j(),1)});function c(X){let N=r.c(5),{children:P}=X,z,Q;if(N[0]!==P){Q=Symbol.for("react.early_return_sentinel");N:{let q=H.Children.toArray(P);if(q.length===0){Q=null;break N}z=q.map(Z0)}N[0]=P,N[1]=z,N[2]=Q}else z=N[1],Q=N[2];if(Q!==Symbol.for("react.early_return_sentinel"))return Q;let Y;if(N[3]!==z)Y=U(y,{children:z}),N[3]=z,N[4]=Y;else Y=N[4];return Y}function Z0(X,N){return D(H.default.Fragment,{children:[N>0&&U(F,{dimColor:!0,children:" · "}),X]},H.isValidElement(X)?X.key??N:N)}var r,H;var o=A(()=>{h();M();r=v(j(),1),H=v(u(),1)});function i(X){let N=n.c(5),{action:P,context:z,fallback:Q,description:Y,parens:q,bold:R}=X,L=l(P,z,Q),Z;if(N[0]!==R||N[1]!==Y||N[2]!==q||N[3]!==L)Z=U(p,{shortcut:L,action:Y,parens:q,bold:R}),N[0]=R,N[1]=Y,N[2]=q,N[3]=L,N[4]=Z;else Z=N[4];return Z}var n;var e=A(()=>{a();b();M();n=v(j(),1)});function x({children:X}){return D(I,{flexDirection:"row",width:"100%",children:[X,U(I,{flexGrow:1})]})}var t=A(()=>{h();M()});function m0(X){let N=Q0.c(27),{title:P,subtitle:z,children:Q,onCancel:Y,color:q,hideInputGuide:R,hideBorder:L,inputGuide:Z,isCancelActive:O}=X,J=q===void 0?"permission":q,E=O===void 0?!0:O,V=z0(void 0,void 0,E),k;if(N[0]!==E)k={context:"Confirmation",isActive:E},N[0]=E,N[1]=k;else k=N[1];N0("confirm:no",Y,k);let K;if(N[2]!==V.keyName||N[3]!==V.pending)K=V.pending?D(F,{children:["Press ",V.keyName," again to exit"]}):D(c,{children:[U(p,{shortcut:"Enter",action:"confirm"}),U(i,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"cancel"})]}),N[2]=V.keyName,N[3]=V.pending,N[4]=K;else K=N[4];let m=K,W;if(N[5]!==J||N[6]!==P)W=U(F,{bold:!0,color:J,children:P}),N[5]=J,N[6]=P,N[7]=W;else W=N[7];let G;if(N[8]!==z)G=z&&U(F,{dimColor:!0,children:z}),N[8]=z,N[9]=G;else G=N[9];let w;if(N[10]!==W||N[11]!==G)w=D(I,{flexDirection:"column",children:[W,G]}),N[10]=W,N[11]=G,N[12]=w;else w=N[12];let _;if(N[13]!==Q||N[14]!==w)_=D(I,{flexDirection:"column",gap:1,children:[w,Q]}),N[13]=Q,N[14]=w,N[15]=_;else _=N[15];let B;if(N[16]!==m||N[17]!==V||N[18]!==R||N[19]!==Z)B=!R&&U(I,{marginTop:1,children:U(x,{children:U(F,{dimColor:!0,italic:!0,children:Z?Z(V):m})})}),N[16]=m,N[17]=V,N[18]=R,N[19]=Z,N[20]=B;else B=N[20];let C;if(N[21]!==_||N[22]!==B)C=D(y,{children:[_,B]}),N[21]=_,N[22]=B,N[23]=C;else C=N[23];let S=C;if(L)return S;let g;if(N[24]!==J||N[25]!==S)g=U(P0,{color:J,children:S}),N[24]=J,N[25]=S,N[26]=g;else g=N[26];return g}var Q0;var J0=A(()=>{R0();h();q0();e();o();t();b();D0();M();Q0=v(j(),1)});function u0(){return`# Claude in Chrome browser automation
|
|
2
2
|
|
|
3
3
|
You have access to browser automation tools (mcp__claude-in-chrome__*) for interacting with web pages in Chrome. Follow these guidelines for effective browser automation.
|
|
4
4
|
|
|
@@ -43,7 +43,7 @@ Never reuse tab IDs from a previous/other session. Follow these guidelines:
|
|
|
43
43
|
1. Only reuse an existing tab if the user explicitly asks to work with it
|
|
44
44
|
2. Otherwise, create a new tab with mcp__claude-in-chrome__tabs_create_mcp
|
|
45
45
|
3. If a tool returns an error indicating the tab doesn't exist or is invalid, call tabs_context_mcp to get fresh tab IDs
|
|
46
|
-
4. When a tab is closed by the user or a navigation error occurs, call tabs_context_mcp to see what tabs are available`}var
|
|
46
|
+
4. When a tab is closed by the user or a navigation error occurs, call tabs_context_mcp to see what tabs are available`}var x0=`# Claude in Chrome browser automation
|
|
47
47
|
|
|
48
48
|
You have access to browser automation tools (mcp__claude-in-chrome__*) for interacting with web pages in Chrome. Follow these guidelines for effective browser automation.
|
|
49
49
|
|
|
@@ -88,7 +88,7 @@ Never reuse tab IDs from a previous/other session. Follow these guidelines:
|
|
|
88
88
|
1. Only reuse an existing tab if the user explicitly asks to work with it
|
|
89
89
|
2. Otherwise, create a new tab with mcp__claude-in-chrome__tabs_create_mcp
|
|
90
90
|
3. If a tool returns an error indicating the tab doesn't exist or is invalid, call tabs_context_mcp to get fresh tab IDs
|
|
91
|
-
4. When a tab is closed by the user or a navigation error occurs, call tabs_context_mcp to see what tabs are available
|
|
91
|
+
4. When a tab is closed by the user or a navigation error occurs, call tabs_context_mcp to see what tabs are available`,$0=`**IMPORTANT: Before using any chrome browser tools, you MUST first load them using ToolSearch.**
|
|
92
92
|
|
|
93
93
|
Chrome browser tools are MCP tools that require loading before use. Before calling any mcp__claude-in-chrome__* tool:
|
|
94
94
|
1. Use ToolSearch with \`select:mcp__claude-in-chrome__<tool_name>\` to load the specific tool
|
|
@@ -96,5 +96,5 @@ Chrome browser tools are MCP tools that require loading before use. Before calli
|
|
|
96
96
|
|
|
97
97
|
For example, to get tab context:
|
|
98
98
|
1. First: ToolSearch with query "select:mcp__claude-in-chrome__tabs_context_mcp"
|
|
99
|
-
2. Then: Call mcp__claude-in-chrome__tabs_context_mcp`,
|
|
100
|
-
export{
|
|
99
|
+
2. Then: Call mcp__claude-in-chrome__tabs_context_mcp`,d0='**Browser Automation**: Chrome browser tools are available via the "claude-in-chrome" skill. CRITICAL: Before using any mcp__claude-in-chrome__* tools, invoke the skill by calling the Skill tool with skill: "claude-in-chrome". The skill provides browser automation instructions and enables the tools.';var L0=()=>{};
|
|
100
|
+
export{l as GP,a as HP,p as IP,b as JP,i as KP,e as LP,c as MP,o as NP,x as OP,t as PP,m0 as QP,J0 as RP,x0 as SP,$0 as TP,u0 as UP,d0 as VP,L0 as WP};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{O5 as A}from"./cli-0.1.13-v467fj8c.mjs";import{C6 as q,T6 as gG}from"./cli-0.1.13-wh68ve92.mjs";import{X6 as $G}from"./cli-0.1.13-2cdtdhek.mjs";import{eha as L,iha as MG,oha as $,rha as i}from"./cli-0.1.13-144gn3fd.mjs";import{Aha as c,Bha as RG,Lha as HG}from"./cli-0.1.13-1g6bgaa6.mjs";import{Fna as O,Gna as g}from"./cli-0.1.13-xv6wh44y.mjs";import{Tna as aG,Vna as P,Xna as a,Yna as H}from"./cli-0.1.13-bj67mp7n.mjs";var GG=P((w)=>{var jG=w&&w.__createBinding||(Object.create?function(G,J,Q,V){if(V===void 0)V=Q;var Y=Object.getOwnPropertyDescriptor(J,Q);if(!Y||("get"in Y?!J.__esModule:Y.writable||Y.configurable))Y={enumerable:!0,get:function(){return J[Q]}};Object.defineProperty(G,V,Y)}:function(G,J,Q,V){if(V===void 0)V=Q;G[V]=J[Q]}),TG=w&&w.__setModuleDefault||(Object.create?function(G,J){Object.defineProperty(G,"default",{enumerable:!0,value:J})}:function(G,J){G.default=J}),o=w&&w.__importStar||function(G){if(G&&G.__esModule)return G;var J={};if(G!=null){for(var Q in G)if(Q!=="default"&&Object.prototype.hasOwnProperty.call(G,Q))jG(J,G,Q)}return TG(J,G),J};Object.defineProperty(w,"__esModule",{value:!0});w.req=w.json=w.toBuffer=void 0;var DG=o(H("http")),NG=o(H("https"));async function e(G){let J=0,Q=[];for await(let V of G)J+=V.length,Q.push(V);return Buffer.concat(Q,J)}w.toBuffer=e;async function LG(G){let Q=(await e(G)).toString("utf8");try{return JSON.parse(Q)}catch(V){let Y=V;throw Y.message+=` (input: ${Q})`,Y}}w.json=LG;function SG(G,J={}){let V=((typeof G==="string"?G:G.href).startsWith("https:")?NG:DG).request(G,J),Y=new Promise((Z,K)=>{V.once("response",Z).once("error",K).end()});return V.then=Y.then.bind(Y),V}w.req=SG});var ZG=P((X)=>{var QG=X&&X.__createBinding||(Object.create?function(G,J,Q,V){if(V===void 0)V=Q;var Y=Object.getOwnPropertyDescriptor(J,Q);if(!Y||("get"in Y?!J.__esModule:Y.writable||Y.configurable))Y={enumerable:!0,get:function(){return J[Q]}};Object.defineProperty(G,V,Y)}:function(G,J,Q,V){if(V===void 0)V=Q;G[V]=J[Q]}),PG=X&&X.__setModuleDefault||(Object.create?function(G,J){Object.defineProperty(G,"default",{enumerable:!0,value:J})}:function(G,J){G.default=J}),VG=X&&X.__importStar||function(G){if(G&&G.__esModule)return G;var J={};if(G!=null){for(var Q in G)if(Q!=="default"&&Object.prototype.hasOwnProperty.call(G,Q))QG(J,G,Q)}return PG(J,G),J},_G=X&&X.__exportStar||function(G,J){for(var Q in G)if(Q!=="default"&&!Object.prototype.hasOwnProperty.call(J,Q))QG(J,G,Q)};Object.defineProperty(X,"__esModule",{value:!0});X.Agent=void 0;var vG=VG(H("net")),JG=VG(H("http")),AG=H("https");_G(GG(),X);var M=Symbol("AgentBaseInternalState");class YG extends JG.Agent{constructor(G){super(G);this[M]={}}isSecureEndpoint(G){if(G){if(typeof G.secureEndpoint==="boolean")return G.secureEndpoint;if(typeof G.protocol==="string")return G.protocol==="https:"}let{stack:J}=Error();if(typeof J!=="string")return!1;return J.split(`
|
|
2
2
|
`).some((Q)=>Q.indexOf("(https.js:")!==-1||Q.indexOf("node:https:")!==-1)}incrementSockets(G){if(this.maxSockets===1/0&&this.maxTotalSockets===1/0)return null;if(!this.sockets[G])this.sockets[G]=[];let J=new vG.Socket({writable:!1});return this.sockets[G].push(J),this.totalSocketCount++,J}decrementSockets(G,J){if(!this.sockets[G]||J===null)return;let Q=this.sockets[G],V=Q.indexOf(J);if(V!==-1){if(Q.splice(V,1),this.totalSocketCount--,Q.length===0)delete this.sockets[G]}}getName(G){if(this.isSecureEndpoint(G))return AG.Agent.prototype.getName.call(this,G);return super.getName(G)}createSocket(G,J,Q){let V={...J,secureEndpoint:this.isSecureEndpoint(J)},Y=this.getName(V),Z=this.incrementSockets(Y);Promise.resolve().then(()=>this.connect(G,V)).then((K)=>{if(this.decrementSockets(Y,Z),K instanceof JG.Agent)try{return K.addRequest(G,V)}catch(W){return Q(W)}this[M].currentSocket=K,super.createSocket(G,J,Q)},(K)=>{this.decrementSockets(Y,Z),Q(K)})}createConnection(){let G=this[M].currentSocket;if(this[M].currentSocket=void 0,!G)throw Error("No socket was returned in the `connect()` function");return G}get defaultPort(){return this[M].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(G){if(this[M])this[M].defaultPort=G}get protocol(){return this[M].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(G){if(this[M])this[M].protocol=G}}X.Agent=YG});var KG=P((U)=>{var bG=U&&U.__importDefault||function(G){return G&&G.__esModule?G:{default:G}};Object.defineProperty(U,"__esModule",{value:!0});U.parseProxyResponse=void 0;var hG=bG($G()),_=(0,hG.default)("https-proxy-agent:parse-proxy-response");function CG(G){return new Promise((J,Q)=>{let V=0,Y=[];function Z(){let E=G.read();if(E)u(E);else G.once("readable",Z)}function K(){G.removeListener("end",W),G.removeListener("error",R),G.removeListener("readable",Z)}function W(){K(),_("onend"),Q(Error("Proxy connection ended before receiving CONNECT response"))}function R(E){K(),_("onerror %o",E),Q(E)}function u(E){Y.push(E),V+=E.length;let z=Buffer.concat(Y,V),r=z.indexOf(`\r
|
|
3
3
|
\r
|
|
4
4
|
`);if(r===-1){_("have not received end of HTTP headers yet..."),Z();return}let s=z.slice(0,r).toString("ascii").split(`\r
|
|
5
5
|
`),x=s.shift();if(!x)return G.destroy(),Q(Error("No header received from proxy CONNECT response"));let t=x.split(" "),OG=+t[1],UG=t.slice(2).join(" "),T={};for(let D of s){if(!D)continue;let k=D.indexOf(":");if(k===-1)return G.destroy(),Q(Error(`Invalid header from proxy CONNECT response: "${D}"`));let l=D.slice(0,k).toLowerCase(),d=D.slice(k+1).trimStart(),S=T[l];if(typeof S==="string")T[l]=[S,d];else if(Array.isArray(S))S.push(d);else T[l]=d}_("got proxy server response: %o %o",x,T),K(),J({connect:{statusCode:OG,statusText:UG,headers:T},buffered:z})}G.on("error",R),G.on("end",W),Z()})}U.parseProxyResponse=CG});var EG=P((B)=>{var yG=B&&B.__createBinding||(Object.create?function(G,J,Q,V){if(V===void 0)V=Q;var Y=Object.getOwnPropertyDescriptor(J,Q);if(!Y||("get"in Y?!J.__esModule:Y.writable||Y.configurable))Y={enumerable:!0,get:function(){return J[Q]}};Object.defineProperty(G,V,Y)}:function(G,J,Q,V){if(V===void 0)V=Q;G[V]=J[Q]}),fG=B&&B.__setModuleDefault||(Object.create?function(G,J){Object.defineProperty(G,"default",{enumerable:!0,value:J})}:function(G,J){G.default=J}),zG=B&&B.__importStar||function(G){if(G&&G.__esModule)return G;var J={};if(G!=null){for(var Q in G)if(Q!=="default"&&Object.prototype.hasOwnProperty.call(G,Q))yG(J,G,Q)}return fG(J,G),J},BG=B&&B.__importDefault||function(G){return G&&G.__esModule?G:{default:G}};Object.defineProperty(B,"__esModule",{value:!0});B.HttpsProxyAgent=void 0;var v=zG(H("net")),WG=zG(H("tls")),uG=BG(H("assert")),xG=BG($G()),kG=ZG(),lG=H("url"),dG=KG(),N=(0,xG.default)("https-proxy-agent"),wG=(G)=>{if(G.servername===void 0&&G.host&&!v.isIP(G.host))return{...G,servername:G.host};return G};class m extends kG.Agent{constructor(G,J){super(J);this.options={path:void 0},this.proxy=typeof G==="string"?new lG.URL(G):G,this.proxyHeaders=J?.headers??{},N("Creating new HttpsProxyAgent instance: %o",this.proxy.href);let Q=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,""),V=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={ALPNProtocols:["http/1.1"],...J?XG(J,"headers"):null,host:Q,port:V}}async connect(G,J){let{proxy:Q}=this;if(!J.host)throw TypeError('No "host" provided');let V;if(Q.protocol==="https:")N("Creating `tls.Socket`: %o",this.connectOpts),V=WG.connect(wG(this.connectOpts));else N("Creating `net.Socket`: %o",this.connectOpts),V=v.connect(this.connectOpts);let Y=typeof this.proxyHeaders==="function"?this.proxyHeaders():{...this.proxyHeaders},Z=v.isIPv6(J.host)?`[${J.host}]`:J.host,K=`CONNECT ${Z}:${J.port} HTTP/1.1\r
|
|
6
6
|
`;if(Q.username||Q.password){let z=`${decodeURIComponent(Q.username)}:${decodeURIComponent(Q.password)}`;Y["Proxy-Authorization"]=`Basic ${Buffer.from(z).toString("base64")}`}if(Y.Host=`${Z}:${J.port}`,!Y["Proxy-Connection"])Y["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close";for(let z of Object.keys(Y))K+=`${z}: ${Y[z]}\r
|
|
7
7
|
`;let W=(0,dG.parseProxyResponse)(V);V.write(`${K}\r
|
|
8
|
-
`);let{connect:R,buffered:u}=await W;if(G.emit("proxyConnect",R),this.emit("proxyConnect",R,G),R.statusCode===200){if(G.once("socket",mG),J.secureEndpoint)return N("Upgrading socket connection to TLS"),WG.connect({...XG(wG(J),"host","path","port"),socket:V});return V}V.destroy();let E=new v.Socket({writable:!1});return E.readable=!0,G.once("socket",(z)=>{N("Replaying proxy buffer for failed request"),(0,uG.default)(z.listenerCount("data")>0),z.push(u),z.push(null)}),E}}m.protocols=["http","https"];B.HttpsProxyAgent=m;function mG(G){G.resume()}function XG(G,...J){let Q={},V;for(V in G)if(!J.includes(V))Q[V]=G[V];return Q}});function VJ(){I.cache.clear?.(),$("Cleared CA certificates cache")}var I;var p=a(()=>{g();i();HG();MG();I=O(()=>{let G=c("--use-system-ca")||c("--use-openssl-ca"),J=process.env.NODE_EXTRA_CA_CERTS;if($(`CA certs: useSystemCA=${G}, extraCertsPath=${J}`),!G&&!J)return;let Q=H("tls"),V=[];if(G){let Y=Q.getCACertificates,Z=Y?.("system");if(Z&&Z.length>0)V.push(...Z),$(`CA certs: Loaded ${V.length} system CA certificates (--use-system-ca)`);else if(!Y&&!J){$("CA certs: --use-system-ca set but system CA API unavailable, deferring to runtime");return}else V.push(...Q.rootCertificates),$(`CA certs: Loaded ${V.length} bundled root certificates as base (--use-system-ca fallback)`)}else V.push(...Q.rootCertificates),$(`CA certs: Loaded ${V.length} bundled root certificates as base`);if(J)try{let Y=L().readFileSync(J,{encoding:"utf8"});V.push(Y),$(`CA certs: Appended extra certificates from NODE_EXTRA_CA_CERTS (${J})`)}catch(Y){$(`CA certs: Failed to read NODE_EXTRA_CA_CERTS file (${J}): ${Y}`,{level:"error"})}return V.length>0?V:void 0})});import{Agent as cG}from"https";function XJ(){let G=F(),J=I();if(!G&&!J)return;return{...G,...J&&{ca:J}}}function h(){let G=F(),J=I();if(!G&&!J)return{};let Q={...G,...J&&{ca:J}};if(typeof Bun<"u")return{tls:Q};return $("TLS: Created undici agent with custom certificates"),{dispatcher:new(A()).Agent({connect:{cert:Q.cert,key:Q.key,passphrase:Q.passphrase,...Q.ca&&{ca:Q.ca}},pipelining:1})}}function zJ(){F.cache.clear?.(),b.cache.clear?.(),$("Cleared mTLS configuration cache")}function BJ(){if(!F())return;if(process.env.NODE_EXTRA_CA_CERTS)$("NODE_EXTRA_CA_CERTS detected - Node.js will automatically append to built-in CAs")}var F,b;var qG=a(()=>{g();p();i();MG();F=O(()=>{let G={};if(process.env.CLAUDE_CODE_CLIENT_CERT)try{G.cert=L().readFileSync(process.env.CLAUDE_CODE_CLIENT_CERT,{encoding:"utf8"}),$("mTLS: Loaded client certificate from CLAUDE_CODE_CLIENT_CERT")}catch(J){$(`mTLS: Failed to load client certificate: ${J}`,{level:"error"})}if(process.env.CLAUDE_CODE_CLIENT_KEY)try{G.key=L().readFileSync(process.env.CLAUDE_CODE_CLIENT_KEY,{encoding:"utf8"}),$("mTLS: Loaded client key from CLAUDE_CODE_CLIENT_KEY")}catch(J){$(`mTLS: Failed to load client key: ${J}`,{level:"error"})}if(process.env.CLAUDE_CODE_CLIENT_KEY_PASSPHRASE)G.passphrase=process.env.CLAUDE_CODE_CLIENT_KEY_PASSPHRASE,$("mTLS: Using client key passphrase");if(Object.keys(G).length===0)return;return G}),b=O(()=>{let G=F(),J=I();if(!G&&!J)return;let Q={...G,...J&&{ca:J},keepAlive:!0};return $("mTLS: Creating HTTPS agent with custom certificates"),new cG(Q)})});function OJ(G){FG.set(G,!0)}function iG(G){switch(G.family){case 0:case 4:case 6:return G.family;case"IPv6":return 6;case"IPv4":case void 0:return 4;default:throw Error(`Unsupported address family: ${G.family}`)}}function j(G=process.env){return G.https_proxy||G.HTTPS_PROXY||G.http_proxy||G.HTTP_PROXY}function pG(G=process.env){return G.no_proxy||G.NO_PROXY}function y(G,J=pG()){if(!J)return!1;if(J==="*")return!0;try{let Q=new URL(G),V=Q.hostname.toLowerCase(),Y=Q.port||(Q.protocol==="https:"||Q.protocol==="wss:"?"443":"80"),Z=`${V}:${Y}`;return J.split(/[,\s]+/).filter(Boolean).some((W)=>{if(W=W.toLowerCase().trim(),W.includes(":"))return Z===W;if(W.startsWith(".")){let R=W;return V===W.substring(1)||V.endsWith(R)}return V===W})}catch{return!1}}function f(G,J={}){let Q=F(),V=I(),Y={...Q&&{cert:Q.cert,key:Q.key,passphrase:Q.passphrase},...V&&{ca:V}};if(RG(process.env.CLAUDE_CODE_PROXY_RESOLVES_HOSTS))Y.lookup=(Z,K,W)=>{W(null,Z,iG(K))};return new IG.HttpsProxyAgent(G,{...Y,...J})}function UJ(G={}){let J=j(),Q=b(),V=q.create({proxy:!1});if(!J){if(Q)V.defaults.httpsAgent=Q;return V}let Y=f(J,G);return V.interceptors.request.use((Z)=>{if(Z.url&&y(Z.url))Z.httpsAgent=Q,Z.httpAgent=Q;else Z.httpsAgent=Y,Z.httpAgent=Y;return Z}),V}function jJ(G){let J=j();if(!J)return;if(y(G))return;return f(J)}function TJ(G){let J=j();if(!J)return;if(y(G))return;return J}function DJ(G){let J=G?.provider??"unknown",Q=FG.get(J)?{keepalive:!1}:{};if(G?.forAnthropicAPI){let Y=process.env.ANTHROPIC_UNIX_SOCKET;if(Y&&typeof Bun<"u")return{...Q,unix:Y}}let V=j();if(V){if(typeof Bun<"u")return{...Q,proxy:V,...h()};return{...Q,dispatcher:n(V)}}return{...Q,...h()}}function NJ(){let G=j(),J=b();if(C!==void 0)q.interceptors.request.eject(C),C=void 0;if(q.defaults.proxy=void 0,q.defaults.httpAgent=void 0,q.defaults.httpsAgent=void 0,G){q.defaults.proxy=!1;let Q=f(G);C=q.interceptors.request.use((V)=>{if(V.url&&y(V.url))if(J)V.httpsAgent=J,V.httpAgent=J;else delete V.httpsAgent,delete V.httpAgent;else V.httpsAgent=Q,V.httpAgent=Q;return V}),A().setGlobalDispatcher(n(G))}else if(J){q.defaults.httpsAgent=J;let Q=h();if(Q.dispatcher)A().setGlobalDispatcher(Q.dispatcher)}}async function LJ(){let G=j();if(!G)return{};let[{NodeHttpHandler:J},{defaultProvider:Q}]=await Promise.all([import("./index-0.1.
|
|
9
|
-
export{EG as
|
|
8
|
+
`);let{connect:R,buffered:u}=await W;if(G.emit("proxyConnect",R),this.emit("proxyConnect",R,G),R.statusCode===200){if(G.once("socket",mG),J.secureEndpoint)return N("Upgrading socket connection to TLS"),WG.connect({...XG(wG(J),"host","path","port"),socket:V});return V}V.destroy();let E=new v.Socket({writable:!1});return E.readable=!0,G.once("socket",(z)=>{N("Replaying proxy buffer for failed request"),(0,uG.default)(z.listenerCount("data")>0),z.push(u),z.push(null)}),E}}m.protocols=["http","https"];B.HttpsProxyAgent=m;function mG(G){G.resume()}function XG(G,...J){let Q={},V;for(V in G)if(!J.includes(V))Q[V]=G[V];return Q}});function VJ(){I.cache.clear?.(),$("Cleared CA certificates cache")}var I;var p=a(()=>{g();i();HG();MG();I=O(()=>{let G=c("--use-system-ca")||c("--use-openssl-ca"),J=process.env.NODE_EXTRA_CA_CERTS;if($(`CA certs: useSystemCA=${G}, extraCertsPath=${J}`),!G&&!J)return;let Q=H("tls"),V=[];if(G){let Y=Q.getCACertificates,Z=Y?.("system");if(Z&&Z.length>0)V.push(...Z),$(`CA certs: Loaded ${V.length} system CA certificates (--use-system-ca)`);else if(!Y&&!J){$("CA certs: --use-system-ca set but system CA API unavailable, deferring to runtime");return}else V.push(...Q.rootCertificates),$(`CA certs: Loaded ${V.length} bundled root certificates as base (--use-system-ca fallback)`)}else V.push(...Q.rootCertificates),$(`CA certs: Loaded ${V.length} bundled root certificates as base`);if(J)try{let Y=L().readFileSync(J,{encoding:"utf8"});V.push(Y),$(`CA certs: Appended extra certificates from NODE_EXTRA_CA_CERTS (${J})`)}catch(Y){$(`CA certs: Failed to read NODE_EXTRA_CA_CERTS file (${J}): ${Y}`,{level:"error"})}return V.length>0?V:void 0})});import{Agent as cG}from"https";function XJ(){let G=F(),J=I();if(!G&&!J)return;return{...G,...J&&{ca:J}}}function h(){let G=F(),J=I();if(!G&&!J)return{};let Q={...G,...J&&{ca:J}};if(typeof Bun<"u")return{tls:Q};return $("TLS: Created undici agent with custom certificates"),{dispatcher:new(A()).Agent({connect:{cert:Q.cert,key:Q.key,passphrase:Q.passphrase,...Q.ca&&{ca:Q.ca}},pipelining:1})}}function zJ(){F.cache.clear?.(),b.cache.clear?.(),$("Cleared mTLS configuration cache")}function BJ(){if(!F())return;if(process.env.NODE_EXTRA_CA_CERTS)$("NODE_EXTRA_CA_CERTS detected - Node.js will automatically append to built-in CAs")}var F,b;var qG=a(()=>{g();p();i();MG();F=O(()=>{let G={};if(process.env.CLAUDE_CODE_CLIENT_CERT)try{G.cert=L().readFileSync(process.env.CLAUDE_CODE_CLIENT_CERT,{encoding:"utf8"}),$("mTLS: Loaded client certificate from CLAUDE_CODE_CLIENT_CERT")}catch(J){$(`mTLS: Failed to load client certificate: ${J}`,{level:"error"})}if(process.env.CLAUDE_CODE_CLIENT_KEY)try{G.key=L().readFileSync(process.env.CLAUDE_CODE_CLIENT_KEY,{encoding:"utf8"}),$("mTLS: Loaded client key from CLAUDE_CODE_CLIENT_KEY")}catch(J){$(`mTLS: Failed to load client key: ${J}`,{level:"error"})}if(process.env.CLAUDE_CODE_CLIENT_KEY_PASSPHRASE)G.passphrase=process.env.CLAUDE_CODE_CLIENT_KEY_PASSPHRASE,$("mTLS: Using client key passphrase");if(Object.keys(G).length===0)return;return G}),b=O(()=>{let G=F(),J=I();if(!G&&!J)return;let Q={...G,...J&&{ca:J},keepAlive:!0};return $("mTLS: Creating HTTPS agent with custom certificates"),new cG(Q)})});function OJ(G){FG.set(G,!0)}function iG(G){switch(G.family){case 0:case 4:case 6:return G.family;case"IPv6":return 6;case"IPv4":case void 0:return 4;default:throw Error(`Unsupported address family: ${G.family}`)}}function j(G=process.env){return G.https_proxy||G.HTTPS_PROXY||G.http_proxy||G.HTTP_PROXY}function pG(G=process.env){return G.no_proxy||G.NO_PROXY}function y(G,J=pG()){if(!J)return!1;if(J==="*")return!0;try{let Q=new URL(G),V=Q.hostname.toLowerCase(),Y=Q.port||(Q.protocol==="https:"||Q.protocol==="wss:"?"443":"80"),Z=`${V}:${Y}`;return J.split(/[,\s]+/).filter(Boolean).some((W)=>{if(W=W.toLowerCase().trim(),W.includes(":"))return Z===W;if(W.startsWith(".")){let R=W;return V===W.substring(1)||V.endsWith(R)}return V===W})}catch{return!1}}function f(G,J={}){let Q=F(),V=I(),Y={...Q&&{cert:Q.cert,key:Q.key,passphrase:Q.passphrase},...V&&{ca:V}};if(RG(process.env.CLAUDE_CODE_PROXY_RESOLVES_HOSTS))Y.lookup=(Z,K,W)=>{W(null,Z,iG(K))};return new IG.HttpsProxyAgent(G,{...Y,...J})}function UJ(G={}){let J=j(),Q=b(),V=q.create({proxy:!1});if(!J){if(Q)V.defaults.httpsAgent=Q;return V}let Y=f(J,G);return V.interceptors.request.use((Z)=>{if(Z.url&&y(Z.url))Z.httpsAgent=Q,Z.httpAgent=Q;else Z.httpsAgent=Y,Z.httpAgent=Y;return Z}),V}function jJ(G){let J=j();if(!J)return;if(y(G))return;return f(J)}function TJ(G){let J=j();if(!J)return;if(y(G))return;return J}function DJ(G){let J=G?.provider??"unknown",Q=FG.get(J)?{keepalive:!1}:{};if(G?.forAnthropicAPI){let Y=process.env.ANTHROPIC_UNIX_SOCKET;if(Y&&typeof Bun<"u")return{...Q,unix:Y}}let V=j();if(V){if(typeof Bun<"u")return{...Q,proxy:V,...h()};return{...Q,dispatcher:n(V)}}return{...Q,...h()}}function NJ(){let G=j(),J=b();if(C!==void 0)q.interceptors.request.eject(C),C=void 0;if(q.defaults.proxy=void 0,q.defaults.httpAgent=void 0,q.defaults.httpsAgent=void 0,G){q.defaults.proxy=!1;let Q=f(G);C=q.interceptors.request.use((V)=>{if(V.url&&y(V.url))if(J)V.httpsAgent=J,V.httpAgent=J;else delete V.httpsAgent,delete V.httpAgent;else V.httpsAgent=Q,V.httpAgent=Q;return V}),A().setGlobalDispatcher(n(G))}else if(J){q.defaults.httpsAgent=J;let Q=h();if(Q.dispatcher)A().setGlobalDispatcher(Q.dispatcher)}}async function LJ(){let G=j();if(!G)return{};let[{NodeHttpHandler:J},{defaultProvider:Q}]=await Promise.all([import("./index-0.1.13-1y9cm2x6.mjs"),import("./index-0.1.13-nm8pkj0f.mjs")]),V=f(G),Y=new J({httpAgent:V,httpsAgent:V});return{requestHandler:Y,credentials:Q({clientConfig:{requestHandler:Y}})}}function SJ(){n.cache.clear?.(),$("Cleared proxy agent cache")}var IG,FG,n,C;var nG=a(()=>{gG();g();p();i();HG();qG();IG=aG(EG(),1),FG=new Map;n=O((G)=>{let J=A(),Q=F(),V=I(),Y={httpProxy:G,httpsProxy:G,noProxy:process.env.NO_PROXY||process.env.no_proxy};if(Q||V){let Z={...Q&&{cert:Q.cert,key:Q.key,passphrase:Q.passphrase},...V&&{ca:V}};Y.connect=Z,Y.requestTls=Z}return new J.EnvHttpProxyAgent(Y)})});
|
|
9
|
+
export{EG as r5,I as s5,VJ as t5,p as u5,F as v5,XJ as w5,zJ as x5,BJ as y5,qG as z5,OJ as A5,j as B5,y as C5,UJ as D5,jJ as E5,TJ as F5,DJ as G5,NJ as H5,LJ as I5,SJ as J5,nG as K5};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{Xna as C}from"./cli-0.1.13-bj67mp7n.mjs";function F(m,q){switch(q.type){case"set_local_jsx":{if(q.generation<m.generation)return m;return{state:{...q.payload,isLocalJSXCommand:!0},generation:m.generation+1,hasLocalJSXActive:!0}}case"clear_local_jsx":return{state:null,generation:m.generation+1,hasLocalJSXActive:!1};case"set_regular":{if(m.hasLocalJSXActive)return m;return{...m,state:q.payload}}case"set_null":{if(m.hasLocalJSXActive)return m;if(m.state===null)return m;return{...m,state:null}}}}var D;var G=C(()=>{D={state:null,generation:0,hasLocalJSXActive:!1}});function L(m){return B=m,()=>{if(B===m)B=null}}function M(m){let q=F(z,m);if(q===z)return;z=q,B?.(q.state)}function N(){return z.generation}var z,B=null;var H=C(()=>{G();z=D});
|
|
2
|
+
export{L as Ih,M as Jh,N as Kh,H as Lh};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{Jna as p,Kna as a}from"./cli-0.1.13-0hyneh5t.mjs";import{Vna as i}from"./cli-0.1.13-bj67mp7n.mjs";var u=i((V)=>{var v=p(),T=a(),_="AWS_ACCESS_KEY_ID",N="AWS_SECRET_ACCESS_KEY",S="AWS_SESSION_TOKEN",C="AWS_CREDENTIAL_EXPIRATION",A="AWS_CREDENTIAL_SCOPE",I="AWS_ACCOUNT_ID",d=(e)=>async()=>{e?.logger?.debug("@aws-sdk/credential-provider-env - fromEnv");let r=process.env[_],s=process.env[N],E=process.env[S],o=process.env[C],n=process.env[A],t=process.env[I];if(r&&s){let c={accessKeyId:r,secretAccessKey:s,...E&&{sessionToken:E},...o&&{expiration:new Date(o)},...n&&{credentialScope:n},...t&&{accountId:t}};return v.setCredentialFeature(c,"CREDENTIALS_ENV_VARS","g"),c}throw new T.CredentialsProviderError("Unable to find environment variable credentials.",{logger:e?.logger})};V.ENV_ACCOUNT_ID=I;V.ENV_CREDENTIAL_SCOPE=A;V.ENV_EXPIRATION=C;V.ENV_KEY=_;V.ENV_SECRET=N;V.ENV_SESSION=S;V.fromEnv=d});
|
|
2
|
+
export{u as P5};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{tv as h,vv as I}from"./cli-0.1.13-fh5dndvp.mjs";import{QP as g,RP as k}from"./cli-0.1.13-5s4m8qj9.mjs";import{AV as _,XU as s,jT as S}from"./cli-0.1.13-hjqn3n5a.mjs";import{wX as c,xX as m,yX as T}from"./cli-0.1.13-ck28msre.mjs";import{Mba as b,gca as P}from"./cli-0.1.13-dag38tkx.mjs";import{Tna as D}from"./cli-0.1.13-bj67mp7n.mjs";_();P();I();k();T();var v=D(S(),1);function E(C){let e=v.c(17),{customApiKeyTruncated:o,onDone:p}=C,r;if(e[0]!==o||e[1]!==p)r=function(R){e:switch(R){case"yes":{b((n)=>({...n,customApiKeyResponses:{...n.customApiKeyResponses,approved:[...n.customApiKeyResponses?.approved??[],o]}})),p(!0);break e}case"no":b((n)=>({...n,customApiKeyResponses:{...n.customApiKeyResponses,rejected:[...n.customApiKeyResponses?.rejected??[],o]}})),p(!1)}},e[0]=o,e[1]=p,e[2]=r;else r=e[2];let t=r,l;if(e[3]!==t)l=()=>t("no"),e[3]=t,e[4]=l;else l=e[4];let f;if(e[5]===Symbol.for("react.memo_cache_sentinel"))f=c(s,{bold:!0,children:"ANTHROPIC_API_KEY"}),e[5]=f;else f=e[5];let i;if(e[6]!==o)i=m(s,{children:[f,m(s,{children:[": sk-ant-...",o]})]}),e[6]=o,e[7]=i;else i=e[7];let u;if(e[8]===Symbol.for("react.memo_cache_sentinel"))u=c(s,{children:"Do you want to use this API key?"}),e[8]=u;else u=e[8];let y;if(e[9]===Symbol.for("react.memo_cache_sentinel"))y={label:"Yes",value:"yes"},e[9]=y;else y=e[9];let d;if(e[10]===Symbol.for("react.memo_cache_sentinel"))d=[y,{label:m(s,{children:["No (",c(s,{bold:!0,children:"recommended"}),")"]}),value:"no"}],e[10]=d;else d=e[10];let a;if(e[11]!==t)a=c(h,{defaultValue:"no",defaultFocusValue:"no",options:d,onChange:(K)=>t(K),onCancel:()=>t("no")}),e[11]=t,e[12]=a;else a=e[12];let A;if(e[13]!==l||e[14]!==i||e[15]!==a)A=m(g,{title:"Detected a custom API key in your environment",color:"warning",onCancel:l,children:[i,u,a]}),e[13]=l,e[14]=i,e[15]=a,e[16]=A;else A=e[16];return A}
|
|
2
|
+
export{E as Sa};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import{sf as KX}from"./cli-0.1.13-yrvakyyp.mjs";import{tf as Gq,vf as Qq,wf as sX}from"./cli-0.1.13-1y21vq1h.mjs";import{xf as PY,yf as OX}from"./cli-0.1.13-sr9axhrw.mjs";import{Af as zX,Bf as HY,Cf as NX,zf as MJ}from"./cli-0.1.13-qxtrzerx.mjs";import{If as AY,Jf as WX}from"./cli-0.1.13-t34z5r3c.mjs";import{Kf as BY,Lf as AX,Mf as FY,Nf as HX}from"./cli-0.1.13-nsbk0w3b.mjs";import{Of as Hq,Pf as QJ,Rf as NY,Sf as OY}from"./cli-0.1.13-9043n2e8.mjs";import{Gh as qq,Hh as iX}from"./cli-0.1.13-p00rtvrc.mjs";import{$A as nX,DM as PZ,Hw as ZZ,Iw as YZ,Jt as LJ,Jw as qZ,KK as fZ,Kw as XZ,LK as rq,Lw as GZ,Mw as QZ,Nt as qY,Nw as VZ,Ow as KZ,Pi as tZ,Pw as WZ,Qw as zZ,Rw as jq,XJ as VY,YC as QY,Yt as XX,ZA as vJ,ZC as QX,ZJ as KY,Zi as eZ,_i as JY,bp as YY,cj as ZX,cp as qX,dK as UJ,eK as VX,hH as e0,iH as LZ,iK as W0,jH as UZ,jK as WY,kH as MZ,kK as zY,lK as NZ,nN as cq,ps as Xq,qs as lX,tv as C0,uv as gq,vv as BZ,yI as P0,zI as fJ}from"./cli-0.1.13-fh5dndvp.mjs";import{AP as XY,BP as GY,FP as GX}from"./cli-0.1.13-hzdj03rn.mjs";import{IP as J0,JP as YX,KP as f,LP as E0,MP as x,NP as YJ,QP as f0,RP as OJ}from"./cli-0.1.13-5s4m8qj9.mjs";import{fS as Nq,gS as eX}from"./cli-0.1.13-f6gfa426.mjs";import{$S as w0,LS as V0,MS as b0,ZS as l,_S as ZY,bT as T0,cT as Oq,eT as NJ,hT as Aq,iT as JG}from"./cli-0.1.13-g654740k.mjs";import{AT as sZ,AV as N0,ET as JX,VU as M,XU as V,jT as L0,sT as s0,tT as nZ,xU as aZ}from"./cli-0.1.13-hjqn3n5a.mjs";import{vX as i,wX as X,xX as z,yX as _}from"./cli-0.1.13-ck28msre.mjs";import{zX as a}from"./cli-0.1.13-79vtnprb.mjs";import{HX as rY,IX as _X}from"./cli-0.1.13-0xy8k6yv.mjs";import{A2 as rZ,B2 as DJ,C3 as JJ,D1 as rX,D2 as oZ,F3 as eq,I2 as iZ,R2 as tq,b5 as mJ,f2 as y0,g2 as aq,q5 as oX,u3 as lZ,x2 as m0,y1 as Yq,y2 as kJ}from"./cli-0.1.13-bzgpcgdt.mjs";import{M5 as O0,N5 as sq}from"./cli-0.1.13-v6z41645.mjs";import{Mba as y,Paa as FJ,Pba as w,Raa as g,S7 as H0,Taa as RJ,Tca as IY,Uba as xZ,Wca as EY,X7 as ZJ,Xca as FX,Y7 as z0,Yba as cZ,Z7 as zJ,Zba as gZ,Zca as TY,bba as nq,bda as fY,dda as CY,e$ as _Z,gca as dZ,gda as wY,i$ as vZ,j$ as mZ,k$ as bZ,kda as RX,l$ as pZ,nda as U0,p$ as lq,qda as uZ}from"./cli-0.1.13-dag38tkx.mjs";import{nea as n0,oea as JZ}from"./cli-0.1.13-wwnez3j0.mjs";import{Afa as oq,ofa as PJ}from"./cli-0.1.13-rjjyq9ej.mjs";import{Zfa as XJ,_fa as _Y}from"./cli-0.1.13-gd3nndc7.mjs";import{qga as T,rga as iq}from"./cli-0.1.13-45hjhcbc.mjs";import{Yga as Zq,aha as uX,oha as x0,rha as MY}from"./cli-0.1.13-144gn3fd.mjs";import{Bha as $Z,Dha as UY,Iha as BJ,Lha as hZ}from"./cli-0.1.13-1g6bgaa6.mjs";import{gna as eJ,lla as HJ,mla as SZ,nja as tJ}from"./cli-0.1.13-52f40ba4.mjs";import{Tna as v,Xna as c}from"./cli-0.1.13-bj67mp7n.mjs";function Sq(){let Z=tJ(),q=PZ(Z)??X(V,{dimColor:!0,children:"/rename to add a name"});return[{label:"Version",value:"0.1.13"},{label:"Session name",value:q},{label:"Session ID",value:Z},{label:"cwd",value:n0()},...KZ(),...WZ()]}function $q({mainLoopModel:Z,mcp:J,theme:q,context:G}){return[{label:"Model",value:zZ(Z)},...YZ(J.clients,G.options.ideInstallationStatus,q),...qZ(J.clients,q),...ZZ(),...GZ()]}async function OZ(){return[...await QZ(),...await VZ(),...await XZ()]}function hq(Z){let J=a0.c(8),{value:q}=Z;if(Array.isArray(q)){let G;if(J[0]!==q){let N;if(J[2]!==q.length)N=(P,B)=>z(V,{children:[P,B<q.length-1?",":""]},B),J[2]=q.length,J[3]=N;else N=J[3];G=q.map(N),J[0]=q,J[1]=G}else G=J[1];let K;if(J[4]!==G)K=X(M,{flexWrap:"wrap",columnGap:1,flexShrink:99,children:G}),J[4]=G,J[5]=K;else K=J[5];return K}if(typeof q==="string"){let G;if(J[6]!==q)G=X(V,{children:q}),J[6]=q,J[7]=G;else G=J[7];return G}return q}function AZ(Z){let J=a0.c(20),{context:q,diagnosticsPromise:G}=Z,K=W0(bq),N=W0(mq),[P]=s0(),B;if(J[0]===Symbol.for("react.memo_cache_sentinel"))B=Sq(),J[0]=B;else B=J[0];let D;if(J[1]!==q||J[2]!==K||J[3]!==N||J[4]!==P)D=$q({mainLoopModel:K,mcp:N,theme:P,context:q}),J[1]=q,J[2]=K,J[3]=N,J[4]=P,J[5]=D;else D=J[5];let k;if(J[6]!==D)k=[B,D],J[6]=D,J[7]=k;else k=J[7];let W=k,H=T0()?1:void 0,O;if(J[8]!==W)O=W.map(_q),J[8]=W,J[9]=O;else O=J[9];let A;if(J[10]!==G)A=X(t0.Suspense,{fallback:null,children:X(pq,{promise:G})}),J[10]=G,J[11]=A;else A=J[11];let F;if(J[12]!==H||J[13]!==O||J[14]!==A)F=z(M,{flexDirection:"column",gap:1,flexGrow:H,children:[O,A]}),J[12]=H,J[13]=O,J[14]=A,J[15]=F;else F=J[15];let L;if(J[16]===Symbol.for("react.memo_cache_sentinel"))L=X(V,{dimColor:!0,children:X(f,{action:"confirm:no",context:"Settings",fallback:"Esc",description:"cancel"})}),J[16]=L;else L=J[16];let U;if(J[17]!==H||J[18]!==F)U=z(M,{flexDirection:"column",flexGrow:H,children:[F,L]}),J[17]=H,J[18]=F,J[19]=U;else U=J[19];return U}function _q(Z,J){return Z.length>0&&X(M,{flexDirection:"column",children:Z.map(vq)},J)}function vq(Z,J){let{label:q,value:G}=Z;return z(M,{flexDirection:"row",gap:1,flexShrink:0,children:[q!==void 0&&z(V,{bold:!0,children:[q,":"]}),X(hq,{value:G})]},J)}function mq(Z){return Z.mcp}function bq(Z){return Z.mainLoopModel}function pq(Z){let J=a0.c(5),{promise:q}=Z,G=t0.use(q);if(G.length===0)return null;let K;if(J[0]===Symbol.for("react.memo_cache_sentinel"))K=X(V,{bold:!0,children:"System Diagnostics"}),J[0]=K;else K=J[0];let N;if(J[1]!==G)N=G.map(xq),J[1]=G,J[2]=N;else N=J[2];let P;if(J[3]!==N)P=z(M,{flexDirection:"column",paddingBottom:1,children:[K,N]}),J[3]=N,J[4]=P;else P=J[4];return P}function xq(Z,J){return z(M,{flexDirection:"row",gap:1,paddingX:1,children:[X(V,{color:"error",children:z0.warning}),typeof Z==="string"?X(V,{wrap:"wrap",children:Z}):Z]},J)}var a0,t0;var HZ=c(()=>{zJ();eJ();NJ();N0();NZ();JZ();cq();jq();E0();_();a0=v(L0(),1),t0=v(a(),1)});function RZ(Z){let J=FZ.c(17),{currentVersion:q,onChoice:G}=Z,K;if(J[0]!==G)K=function(U){G(U)},J[0]=G,J[1]=K;else K=J[1];let N=K,P;if(J[2]!==G)P=function(){G("cancel")},J[2]=G,J[3]=P;else P=J[3];let B=P,D;if(J[4]!==q)D=z(V,{children:["The stable channel may have an older version than what you're currently running (",q,")."]}),J[4]=q,J[5]=D;else D=J[5];let k;if(J[6]===Symbol.for("react.memo_cache_sentinel"))k=X(V,{dimColor:!0,children:"How would you like to handle this?"}),J[6]=k;else k=J[6];let W;if(J[7]===Symbol.for("react.memo_cache_sentinel"))W={label:"Allow possible downgrade to stable version",value:"downgrade"},J[7]=W;else W=J[7];let H=`Stay on current version (${q}) until stable catches up`,O;if(J[8]!==H)O=[W,{label:H,value:"stay"}],J[8]=H,J[9]=O;else O=J[9];let A;if(J[10]!==N||J[11]!==O)A=X(C0,{options:O,onChange:N}),J[10]=N,J[11]=O,J[12]=A;else A=J[12];let F;if(J[13]!==B||J[14]!==D||J[15]!==A)F=z(f0,{title:"Switch to Stable Channel",onCancel:B,color:"permission",hideBorder:!0,hideInputGuide:!0,children:[D,k,A]}),J[13]=B,J[14]=D,J[15]=A,J[16]=F;else F=J[16];return F}var FZ;var kZ=c(()=>{N0();BZ();OJ();_();FZ=v(L0(),1)});function DZ(Z){return Object.entries(Z).map(([J,q])=>({label:q?.name??dq,value:J,description:q?.description??uq}))}function EZ(Z){let J=IZ.c(16),{initialStyle:q,onComplete:G,onCancel:K,isStandaloneCommand:N}=Z,P;if(J[0]===Symbol.for("react.memo_cache_sentinel"))P=[],J[0]=P;else P=J[0];let[B,D]=v0.useState(P),[k,W]=v0.useState(!0),H,O;if(J[1]===Symbol.for("react.memo_cache_sentinel"))H=()=>{UZ(n0()).then((u)=>{let t=DZ(u);D(t),W(!1)}).catch(()=>{let u=DZ(LZ);D(u),W(!1)})},O=[],J[1]=H,J[2]=O;else H=J[1],O=J[2];v0.useEffect(H,O);let A;if(J[3]!==G)A=(u)=>{G(u)},J[3]=G,J[4]=A;else A=J[4];let F=A,L=!N,U=!N,E;if(J[5]===Symbol.for("react.memo_cache_sentinel"))E=X(M,{marginTop:1,children:X(V,{dimColor:!0,children:"This changes how Claude Code communicates with you"})}),J[5]=E;else E=J[5];let j;if(J[6]!==F||J[7]!==q||J[8]!==k||J[9]!==B)j=z(M,{flexDirection:"column",gap:1,children:[E,k?X(V,{dimColor:!0,children:"Loading output styles…"}):X(C0,{options:B,onChange:F,visibleOptionCount:10,defaultValue:q})]}),J[6]=F,J[7]=q,J[8]=k,J[9]=B,J[10]=j;else j=J[10];let C;if(J[11]!==K||J[12]!==L||J[13]!==U||J[14]!==j)C=X(f0,{title:"Preferred output style",onCancel:K,hideInputGuide:L,hideBorder:U,children:j}),J[11]=K,J[12]=L,J[13]=U,J[14]=j,J[15]=C;else C=J[15];return C}var IZ,v0,dq="Default",uq="Claude completes coding tasks efficiently and provides concise responses";var TZ=c(()=>{MZ();N0();JZ();gq();OJ();_();IZ=v(L0(),1),v0=v(a(),1)});function wZ(Z){let J=CZ.c(13),{initialLanguage:q,onComplete:G,onCancel:K}=Z,[N,P]=AJ.useState(q),[B,D]=AJ.useState((q??"").length),k;if(J[0]===Symbol.for("react.memo_cache_sentinel"))k={context:"Settings"},J[0]=k;else k=J[0];l("confirm:no",K,k);let W;if(J[1]!==N||J[2]!==G)W=function(){let C=N?.trim();G(C||void 0)},J[1]=N,J[2]=G,J[3]=W;else W=J[3];let H=W,O;if(J[4]===Symbol.for("react.memo_cache_sentinel"))O=X(V,{children:"Enter your preferred response and voice language:"}),J[4]=O;else O=J[4];let A;if(J[5]===Symbol.for("react.memo_cache_sentinel"))A=X(V,{children:z0.pointer}),J[5]=A;else A=J[5];let F=N??"",L;if(J[6]!==B||J[7]!==H||J[8]!==F)L=z(M,{flexDirection:"row",gap:1,children:[A,X(fZ,{value:F,onChange:P,onSubmit:H,focus:!0,showCursor:!0,placeholder:`e.g., Japanese, 日本語, Español${z0.ellipsis}`,columns:60,cursorOffset:B,onChangeCursorOffset:D})]}),J[6]=B,J[7]=H,J[8]=F,J[9]=L;else L=J[9];let U;if(J[10]===Symbol.for("react.memo_cache_sentinel"))U=X(V,{dimColor:!0,children:"Leave empty for default (English)"}),J[10]=U;else U=J[10];let E;if(J[11]!==L)E=z(M,{flexDirection:"column",gap:1,children:[O,L,U]}),J[11]=L,J[12]=E;else E=J[12];return E}var CZ,AJ;var yZ=c(()=>{zJ();N0();w0();rq();_();CZ=v(L0(),1),AJ=v(a(),1)});function kY({onClose:Z,context:J,setTabsHidden:q,onIsSearchModeChange:G,contentHeight:K}){let{headerFocused:N,focusHeader:P}=NY(),B=T0(),[,D]=s0(),k=nZ(),[W,H]=h.useState(w()),O=p.useRef(w()),[A,F]=h.useState(RJ()),L=p.useRef(RJ()),[U,E]=h.useState(A?.outputStyle||e0),j=p.useRef(U),[C,u]=h.useState(A?.language),t=p.useRef(C),[m,A0]=h.useState(0),[r,Y0]=h.useState(0),[o,q0]=h.useState(!0),_0=aZ(),{rows:M0}=V0(),Bq=K??Math.min(Math.floor(M0*0.8),30),X0=Math.max(5,Bq-10),I0=W0((Y)=>Y.mainLoopModel),Fq=W0((Y)=>Y.verbose),pJ=W0((Y)=>Y.thinkingEnabled),xJ=W0((Y)=>m0()?Y.fastMode:!1),Rq=W0((Y)=>Y.promptSuggestionEnabled),cJ=KY()||VY()==="enabled",XG=!1,G0=WY(),[gJ,k0]=h.useState({}),kq=p.useRef(pJ),[dJ]=h.useState(()=>FJ("localSettings")),[uJ]=h.useState(()=>FJ("userSettings")),rJ=p.useRef(k),Dq=zY(),[oJ]=h.useState(()=>{let Y=Dq.getState();return{mainLoopModel:Y.mainLoopModel,mainLoopModelForSession:Y.mainLoopModelForSession,verbose:Y.verbose,thinkingEnabled:Y.thinkingEnabled,fastMode:Y.fastMode,promptSuggestionEnabled:Y.promptSuggestionEnabled,isBriefOnly:Y.isBriefOnly,replBridgeEnabled:Y.replBridgeEnabled,replBridgeOutboundOnly:Y.replBridgeOutboundOnly,settings:Y.settings}}),[VJ]=h.useState(()=>HJ()),e=p.useRef(!1),[Lq,o0]=h.useState(!1),[b,$]=h.useState(null),{query:D0,setQuery:i0,cursorOffset:Uq}=FY({isActive:o&&b===null&&!N,onExit:()=>q0(!1),onExitUp:P,passthroughCtrlKeys:["c","d"]}),iJ=o&&!N;p.useEffect(()=>{G?.(iJ)},[iJ,G]);let Mq=qY(J.options.mcpClients),Iq=!$Z(process.env.CLAUDE_CODE_DISABLE_FILE_CHECKPOINTING),lJ=p.use(tZ(!0)),Eq=JY(lJ),K0=gZ();function nJ(Y){T("tengu_config_model_changed",{from_model:I0,to_model:Y}),G0((R)=>({...R,mainLoopModel:Y,mainLoopModelForSession:null})),k0((R)=>{let I=JJ(Y)+(HY(Y,!1,lZ())?" · Billed as extra usage":"");if("model"in R){let{model:S,...n}=R;return{...n,model:I}}return{...R,model:I}})}function Tq(Y){y((Q)=>({...Q,verbose:Y})),H({...w(),verbose:Y}),G0((Q)=>({...Q,verbose:Y})),k0((Q)=>{if("verbose"in Q){let{verbose:R,...I}=Q;return I}return{...Q,verbose:Y}})}let KJ=[{id:"autoCompactEnabled",label:"Auto-compact",value:W.autoCompactEnabled,type:"boolean",onChange(Y){y((Q)=>({...Q,autoCompactEnabled:Y})),H({...w(),autoCompactEnabled:Y}),T("tengu_auto_compact_setting_changed",{enabled:Y})}},{id:"thinkingHistoryRedactionEnabled",label:"Thinking history redaction",value:W.thinkingHistoryRedactionEnabled,type:"boolean",onChange(Y){y((Q)=>({...Q,thinkingHistoryRedactionEnabled:Y})),H({...w(),thinkingHistoryRedactionEnabled:Y}),T("claudio_thinking_history_redaction_setting_changed",{enabled:Y})}},{id:"showCacheStats",label:"Cache stats display",value:W.showCacheStats,options:["off","compact","full"],type:"enum",onChange(Y){let Q=Y==="off"||Y==="compact"||Y==="full"?Y:"compact";y((R)=>({...R,showCacheStats:Q})),H({...w(),showCacheStats:Q}),T("tengu_show_cache_stats_setting_changed",{mode:Q})}},{id:"toolResultSummarizerEnabled",label:"Tool result summarizer",value:W.toolResultSummarizerEnabled,type:"boolean",onChange(Y){y((Q)=>({...Q,toolResultSummarizerEnabled:Y})),H({...w(),toolResultSummarizerEnabled:Y}),T("claudio_tool_result_summarizer_setting_changed",{enabled:Y})}},{id:"bashOutputFilterEnabled",label:"Bash output filter",value:W.bashOutputFilterEnabled!==!1,type:"boolean",onChange(Y){y((Q)=>({...Q,bashOutputFilterEnabled:Y,bashOutputFilterUserEnabled:Y})),H({...w(),bashOutputFilterEnabled:Y,bashOutputFilterUserEnabled:Y}),T("claudio_bash_output_filter_setting_changed",{enabled:Y})}},{id:"spinnerTipsEnabled",label:"Show tips",value:A?.spinnerTipsEnabled??!0,type:"boolean",onChange(Y){g("localSettings",{spinnerTipsEnabled:Y}),F((Q)=>({...Q,spinnerTipsEnabled:Y})),T("tengu_tips_setting_changed",{enabled:Y})}},{id:"prefersReducedMotion",label:"Reduce motion",value:A?.prefersReducedMotion??!1,type:"boolean",onChange(Y){g("localSettings",{prefersReducedMotion:Y}),F((Q)=>({...Q,prefersReducedMotion:Y})),G0((Q)=>({...Q,settings:{...Q.settings,prefersReducedMotion:Y}})),T("tengu_reduce_motion_setting_changed",{enabled:Y})}},{id:"thinkingEnabled",label:"Thinking mode",value:pJ??!0,type:"boolean",onChange(Y){G0((Q)=>({...Q,thinkingEnabled:Y})),g("userSettings",{alwaysThinkingEnabled:Y?void 0:!1}),T("tengu_thinking_toggled",{enabled:Y})}},...m0()&&kJ()?[{id:"fastMode",label:`Fast mode (${rZ} only)`,value:!!xJ,type:"boolean",onChange(Y){if(iZ(),g("userSettings",{fastMode:Y?!0:void 0}),Y)G0((Q)=>({...Q,mainLoopModel:DJ(),mainLoopModelForSession:null,fastMode:!0})),k0((Q)=>({...Q,model:DJ(),"Fast mode":"ON"}));else G0((Q)=>({...Q,fastMode:!1})),k0((Q)=>({...Q,"Fast mode":"OFF"}))}}]:[],...PJ("tengu_chomp_inflection",!1)?[{id:"promptSuggestionEnabled",label:"Prompt suggestions",value:Rq,type:"boolean",onChange(Y){G0((Q)=>({...Q,promptSuggestionEnabled:Y})),g("userSettings",{promptSuggestionEnabled:Y?void 0:!1})}}]:[],...Iq?[{id:"fileCheckpointingEnabled",label:"Rewind code (checkpoints)",value:W.fileCheckpointingEnabled,type:"boolean",onChange(Y){y((Q)=>({...Q,fileCheckpointingEnabled:Y})),H({...w(),fileCheckpointingEnabled:Y}),T("tengu_file_history_snapshots_setting_changed",{enabled:Y})}}]:[],{id:"verbose",label:"Verbose output",value:Fq,type:"boolean",onChange:Tq},{id:"terminalProgressBarEnabled",label:"Terminal progress bar",value:W.terminalProgressBarEnabled,type:"boolean",onChange(Y){y((Q)=>({...Q,terminalProgressBarEnabled:Y})),H({...w(),terminalProgressBarEnabled:Y}),T("tengu_terminal_progress_bar_setting_changed",{enabled:Y})}},...PJ("tengu_terminal_sidebar",!1)?[{id:"showStatusInTerminalTab",label:"Show status in terminal tab",value:W.showStatusInTerminalTab??!1,type:"boolean",onChange(Y){y((Q)=>({...Q,showStatusInTerminalTab:Y})),H({...w(),showStatusInTerminalTab:Y}),T("tengu_terminal_tab_status_setting_changed",{enabled:Y})}}]:[],{id:"showTurnDuration",label:"Show turn duration",value:W.showTurnDuration,type:"boolean",onChange(Y){y((Q)=>({...Q,showTurnDuration:Y})),H({...w(),showTurnDuration:Y}),T("tengu_show_turn_duration_setting_changed",{enabled:Y})}},{id:"defaultPermissionMode",label:"Default permission mode",value:A?.permissions?.defaultMode||"default",options:(()=>{let Y=["default","plan"],Q=_Z,R=["bypassPermissions"];if(!cJ)R.push("auto");return[...Y,...Q.filter((I)=>!Y.includes(I)&&!R.includes(I))]})(),type:"enum",onChange(Y){let Q=bZ(Y),R=vZ(Q)?mZ(Q):Q,I=g("userSettings",{permissions:{...A?.permissions,defaultMode:R}});if(I.error){H0(I.error);return}F((S)=>({...S,permissions:{...S?.permissions,defaultMode:R}})),k0((S)=>({...S,defaultPermissionMode:Y})),T("tengu_config_changed",{setting:"defaultPermissionMode",value:Y})}},...cJ?[{id:"useAutoModeDuringPlan",label:"Use auto mode during plan",value:A?.useAutoModeDuringPlan??!0,type:"boolean",onChange(Y){g("userSettings",{useAutoModeDuringPlan:Y}),F((Q)=>({...Q,useAutoModeDuringPlan:Y})),G0((Q)=>{let R=UJ(Q.toolPermissionContext);if(R===Q.toolPermissionContext)return Q;return{...Q,toolPermissionContext:R}}),k0((Q)=>({...Q,"Use auto mode during plan":Y}))}}]:[],{id:"respectGitignore",label:"Respect .gitignore in file picker",value:W.respectGitignore,type:"boolean",onChange(Y){y((Q)=>({...Q,respectGitignore:Y})),H({...w(),respectGitignore:Y}),T("tengu_respect_gitignore_setting_changed",{enabled:Y})}},{id:"copyFullResponse",label:"Always copy full response (skip /copy picker)",value:W.copyFullResponse,type:"boolean",onChange(Y){y((Q)=>({...Q,copyFullResponse:Y})),H({...w(),copyFullResponse:Y}),T("tengu_config_changed",{setting:"copyFullResponse",value:String(Y)})}},...sZ()?[{id:"copyOnSelect",label:"Copy on select",value:W.copyOnSelect??!0,type:"boolean",onChange(Y){y((Q)=>({...Q,copyOnSelect:Y})),H({...w(),copyOnSelect:Y}),T("tengu_config_changed",{setting:"copyOnSelect",value:String(Y)})}}]:[],{id:"flickerFreeMode",label:"Flicker-free mode",value:W.flickerFreeMode??!1,type:"boolean",onChange(Y){y((Q)=>({...Q,flickerFreeMode:Y})),H({...w(),flickerFreeMode:Y}),T("tengu_config_changed",{setting:"flickerFreeMode",value:String(Y)})}},K0?{id:"autoUpdatesChannel",label:"Auto-update channel",value:"disabled",type:"managedEnum",onChange(){}}:{id:"autoUpdatesChannel",label:"Auto-update channel",value:A?.autoUpdatesChannel??"latest",type:"managedEnum",onChange(){}},{id:"theme",label:"Theme",value:k,type:"managedEnum",onChange:D},{id:"notifChannel",label:"Notifications",value:W.preferredNotifChannel,options:["auto","iterm2","terminal_bell","iterm2_with_bell","kitty","ghostty","notifications_disabled"],type:"enum",onChange(Y){y((Q)=>({...Q,preferredNotifChannel:Y})),H({...w(),preferredNotifChannel:Y})}},...[],{id:"outputStyle",label:"Output style",value:U,type:"managedEnum",onChange:()=>{}},...[],{id:"language",label:"Language",value:C??"Default (English)",type:"managedEnum",onChange:()=>{}},{id:"editorMode",label:"Editor mode",value:W.editorMode==="emacs"?"normal":W.editorMode||"normal",options:["normal","vim"],type:"enum",onChange(Y){y((Q)=>({...Q,editorMode:Y})),H({...w(),editorMode:Y}),T("tengu_editor_mode_changed",{mode:Y,source:"config_panel"})}},{id:"prStatusFooterEnabled",label:"Show PR status footer",value:W.prStatusFooterEnabled??!0,type:"boolean",onChange(Y){y((Q)=>{if(Q.prStatusFooterEnabled===Y)return Q;return{...Q,prStatusFooterEnabled:Y}}),H({...w(),prStatusFooterEnabled:Y}),T("tengu_pr_status_footer_setting_changed",{enabled:Y})}},{id:"model",label:"Model",value:I0===null?"Default (recommended)":I0,type:"managedEnum",onChange:nJ},...Mq?[{id:"diffTool",label:"Diff tool",value:W.diffTool??"auto",options:["terminal","auto"],type:"enum",onChange(Y){y((Q)=>({...Q,diffTool:Y})),H({...w(),diffTool:Y}),T("tengu_diff_tool_changed",{tool:Y,source:"config_panel"})}}]:[],...!LJ()?[{id:"autoConnectIde",label:"Auto-connect to IDE (external terminal)",value:W.autoConnectIde??!1,type:"boolean",onChange(Y){y((Q)=>({...Q,autoConnectIde:Y})),H({...w(),autoConnectIde:Y}),T("tengu_auto_connect_ide_changed",{enabled:Y,source:"config_panel"})}}]:[],...LJ()?[{id:"autoInstallIdeExtension",label:"Auto-install IDE extension",value:W.autoInstallIdeExtension??!0,type:"boolean",onChange(Y){y((Q)=>({...Q,autoInstallIdeExtension:Y})),H({...w(),autoInstallIdeExtension:Y}),T("tengu_auto_install_ide_extension_changed",{enabled:Y,source:"config_panel"})}}]:[],{id:"claudeInChromeDefaultEnabled",label:"Claude in Chrome enabled by default",value:W.claudeInChromeDefaultEnabled??!0,type:"boolean",onChange(Y){y((Q)=>({...Q,claudeInChromeDefaultEnabled:Y})),H({...w(),claudeInChromeDefaultEnabled:Y}),T("tengu_claude_in_chrome_setting_changed",{enabled:Y})}},...YY()?(()=>{let Y=XY();return[{id:"teammateMode",label:Y?`Teammate mode [overridden: ${Y}]`:"Teammate mode",value:W.teammateMode??"auto",options:["auto","tmux","in-process"],type:"enum",onChange(R){if(R!=="auto"&&R!=="tmux"&&R!=="in-process")return;GY(R),y((I)=>({...I,teammateMode:R})),H({...w(),teammateMode:R}),T("tengu_teammate_mode_changed",{mode:R})}},{id:"teammateDefaultModel",label:"Default teammate model",value:jZ(W.teammateDefaultModel),type:"managedEnum",onChange(){}}]})():[],...[],...Eq?[{id:"showExternalIncludesDialog",label:"External CLAUDE.md includes",value:(()=>{if(xZ().hasClaudeMdExternalIncludesApproved)return"true";else return"false"})(),type:"managedEnum",onChange(){}}]:[],...(()=>{let Y=U0(),Q=Y?.transport==="anthropic"?Y.apiKey?.trim():void 0;if(!Q||BJ())return[];return[{id:"apiKey",label:z(V,{children:["Use custom API key:"," ",X(V,{bold:!0,children:y0(Q)})]}),searchText:"Use custom API key",value:Boolean(W.customApiKeyResponses?.approved?.includes(y0(Q))),type:"boolean",onChange(R){y((I)=>{let S={...I};if(!S.customApiKeyResponses)S.customApiKeyResponses={approved:[],rejected:[]};if(!S.customApiKeyResponses.approved)S.customApiKeyResponses={...S.customApiKeyResponses,approved:[]};if(!S.customApiKeyResponses.rejected)S.customApiKeyResponses={...S.customApiKeyResponses,rejected:[]};{let n=y0(Q);if(R)S.customApiKeyResponses={...S.customApiKeyResponses,approved:[...(S.customApiKeyResponses.approved??[]).filter((s)=>s!==n),n],rejected:(S.customApiKeyResponses.rejected??[]).filter((s)=>s!==n)};else S.customApiKeyResponses={...S.customApiKeyResponses,approved:(S.customApiKeyResponses.approved??[]).filter((s)=>s!==n),rejected:[...(S.customApiKeyResponses.rejected??[]).filter((s)=>s!==n),n]}}return S}),H(w())}}]})()],Q0=p.useMemo(()=>{if(!D0)return KJ;let Y=D0.toLowerCase();return KJ.filter((Q)=>{if(Q.id.toLowerCase().includes(Y))return!0;return("searchText"in Q?Q.searchText:Q.label).toLowerCase().includes(Y)})},[KJ,D0]);p.useEffect(()=>{if(m>=Q0.length){let Y=Math.max(0,Q0.length-1);A0(Y),Y0(Math.max(0,Y-X0+1));return}Y0((Y)=>{if(m<Y)return m;if(m>=Y+X0)return m-X0+1;return Y})},[Q0.length,m,X0]);let fq=h.useCallback((Y)=>{Y0((Q)=>{if(Y<Q)return Y;if(Y>=Q+X0)return Y-X0+1;return Q})},[X0]),Cq=h.useCallback(()=>{if(b!==null)return;let Y=Object.entries(gJ).map(([s,aJ])=>{return T("tengu_config_changed",{key:s,value:aJ}),`Set ${s} to ${O0.bold(aJ)}`}),Q=U0(),R=Q?.transport==="anthropic"?Q.apiKey?.trim():void 0,I=BJ()?void 0:R,S=Boolean(I&&O.current.customApiKeyResponses?.approved?.includes(y0(I))),n=Boolean(I&&W.customApiKeyResponses?.approved?.includes(y0(I)));if(S!==n)Y.push(`${n?"Enabled":"Disabled"} custom API key`),T("tengu_config_changed",{key:"env.ANTHROPIC_API_KEY",value:n});if(W.theme!==O.current.theme)Y.push(`Set theme to ${O0.bold(W.theme)}`);if(W.preferredNotifChannel!==O.current.preferredNotifChannel)Y.push(`Set notifications to ${O0.bold(W.preferredNotifChannel)}`);if(U!==j.current)Y.push(`Set output style to ${O0.bold(U)}`);if(C!==t.current)Y.push(`Set response language to ${O0.bold(C??"Default (English)")}`);if(W.editorMode!==O.current.editorMode)Y.push(`Set editor mode to ${O0.bold(W.editorMode||"emacs")}`);if(W.diffTool!==O.current.diffTool)Y.push(`Set diff tool to ${O0.bold(W.diffTool)}`);if(W.autoConnectIde!==O.current.autoConnectIde)Y.push(`${W.autoConnectIde?"Enabled":"Disabled"} auto-connect to IDE`);if(W.autoInstallIdeExtension!==O.current.autoInstallIdeExtension)Y.push(`${W.autoInstallIdeExtension?"Enabled":"Disabled"} auto-install IDE extension`);if(W.autoCompactEnabled!==O.current.autoCompactEnabled)Y.push(`${W.autoCompactEnabled?"Enabled":"Disabled"} auto-compact`);if(W.thinkingHistoryRedactionEnabled!==O.current.thinkingHistoryRedactionEnabled)Y.push(`${W.thinkingHistoryRedactionEnabled?"Enabled":"Disabled"} thinking history redaction`);if(W.toolResultSummarizerEnabled!==O.current.toolResultSummarizerEnabled)Y.push(`${W.toolResultSummarizerEnabled?"Enabled":"Disabled"} tool result summarizer`);if(W.bashOutputFilterEnabled!==O.current.bashOutputFilterEnabled)Y.push(`${W.bashOutputFilterEnabled!==!1?"Enabled":"Disabled"} bash output filter`);if(W.respectGitignore!==O.current.respectGitignore)Y.push(`${W.respectGitignore?"Enabled":"Disabled"} respect .gitignore in file picker`);if(W.copyFullResponse!==O.current.copyFullResponse)Y.push(`${W.copyFullResponse?"Enabled":"Disabled"} always copy full response`);if(W.copyOnSelect!==O.current.copyOnSelect)Y.push(`${W.copyOnSelect?"Enabled":"Disabled"} copy on select`);if(W.terminalProgressBarEnabled!==O.current.terminalProgressBarEnabled)Y.push(`${W.terminalProgressBarEnabled?"Enabled":"Disabled"} terminal progress bar`);if(W.showStatusInTerminalTab!==O.current.showStatusInTerminalTab)Y.push(`${W.showStatusInTerminalTab?"Enabled":"Disabled"} terminal tab status`);if(W.showTurnDuration!==O.current.showTurnDuration)Y.push(`${W.showTurnDuration?"Enabled":"Disabled"} turn duration`);if(W.remoteControlAtStartup!==O.current.remoteControlAtStartup){let s=W.remoteControlAtStartup===void 0?"Reset Remote Control to default":`${W.remoteControlAtStartup?"Enabled":"Disabled"} Remote Control for all sessions`;Y.push(s)}if(A?.autoUpdatesChannel!==L.current?.autoUpdatesChannel)Y.push(`Set auto-update channel to ${O0.bold(A?.autoUpdatesChannel??"latest")}`);if(Y.length>0)Z(Y.join(`
|
|
2
|
+
`));else Z("Config dialog dismissed",{display:"system"})},[b,gJ,W,I0,U,C,A?.autoUpdatesChannel,m0()?A?.fastMode:void 0,Z]),sJ=h.useCallback(()=>{if(k!==rJ.current)D(rJ.current);y(()=>O.current);let Y=dJ;g("localSettings",{spinnerTipsEnabled:Y?.spinnerTipsEnabled,prefersReducedMotion:Y?.prefersReducedMotion,defaultView:Y?.defaultView,outputStyle:Y?.outputStyle});let Q=uJ;g("userSettings",{alwaysThinkingEnabled:Q?.alwaysThinkingEnabled,fastMode:Q?.fastMode,promptSuggestionEnabled:Q?.promptSuggestionEnabled,autoUpdatesChannel:Q?.autoUpdatesChannel,minimumVersion:Q?.minimumVersion,language:Q?.language,...{useAutoModeDuringPlan:Q?.useAutoModeDuringPlan},syntaxHighlightingDisabled:Q?.syntaxHighlightingDisabled,permissions:Q?.permissions===void 0?void 0:{...Q.permissions,defaultMode:Q.permissions.defaultMode}});let R=oJ;if(G0((I)=>({...I,mainLoopModel:R.mainLoopModel,mainLoopModelForSession:R.mainLoopModelForSession,verbose:R.verbose,thinkingEnabled:R.thinkingEnabled,fastMode:R.fastMode,promptSuggestionEnabled:R.promptSuggestionEnabled,isBriefOnly:R.isBriefOnly,replBridgeEnabled:R.replBridgeEnabled,replBridgeOutboundOnly:R.replBridgeOutboundOnly,settings:R.settings,toolPermissionContext:UJ(I.toolPermissionContext)})),HJ()!==VJ)SZ(VJ)},[k,D,dJ,uJ,oJ,VJ,G0]),wq=h.useCallback(()=>{if(b!==null)return;if(e.current)sJ();Z("Config dialog dismissed",{display:"system"})},[b,sJ,Z]);l("confirm:no",wq,{context:"Settings",isActive:b===null&&!o&&!N}),l("settings:close",Cq,{context:"Settings",isActive:b===null&&!o&&!N});let WJ=h.useCallback(()=>{let Y=Q0[m];if(!Y||!Y.onChange)return;if(Y.type==="boolean"){if(e.current=!0,Y.onChange(!Y.value),Y.id==="thinkingEnabled"){if(!Y.value===kq.current)o0(!1);else if(J.messages.some((I)=>I.type==="assistant"))o0(!0)}return}if(Y.id==="theme"||Y.id==="model"||Y.id==="teammateDefaultModel"||Y.id==="showExternalIncludesDialog"||Y.id==="outputStyle"||Y.id==="language")switch(Y.id){case"theme":$("Theme"),q(!0);return;case"model":$("Model"),q(!0);return;case"teammateDefaultModel":$("TeammateModel"),q(!0);return;case"showExternalIncludesDialog":$("ExternalIncludes"),q(!0);return;case"outputStyle":$("OutputStyle"),q(!0);return;case"language":$("Language"),q(!0);return}if(Y.id==="autoUpdatesChannel"){if(K0){$("EnableAutoUpdates"),q(!0);return}if((A?.autoUpdatesChannel??"latest")==="latest")$("ChannelDowngrade"),q(!0);else e.current=!0,g("userSettings",{autoUpdatesChannel:"latest",minimumVersion:void 0}),F((R)=>({...R,autoUpdatesChannel:"latest",minimumVersion:void 0})),T("tengu_autoupdate_channel_changed",{channel:"latest"});return}if(Y.type==="enum"){e.current=!0;let R=(Y.options.indexOf(Y.value)+1)%Y.options.length;Y.onChange(Y.options[R]);return}},[K0,Q0,m,A?.autoUpdatesChannel,q]),l0=(Y)=>{o0(!1);let Q=Math.max(0,Math.min(Q0.length-1,m+Y));A0(Q),fq(Q)};ZY({"select:previous":()=>{if(m===0)o0(!1),q0(!0),Y0(0);else l0(-1)},"select:next":()=>l0(1),"scroll:lineUp":()=>l0(-1),"scroll:lineDown":()=>l0(1),"select:accept":WJ,"settings:search":()=>{q0(!0),i0("")}},{context:"Settings",isActive:b===null&&!o&&!N});let yq=h.useCallback((Y)=>{if(b!==null)return;if(N)return;if(o){if(Y.key==="escape"){if(Y.preventDefault(),D0.length>0)i0("");else q0(!1);return}if(Y.key==="return"||Y.key==="down"||Y.key==="wheeldown")Y.preventDefault(),q0(!1),A0(0),Y0(0);return}if(Y.key==="left"||Y.key==="right"||Y.key==="tab"){Y.preventDefault(),WJ();return}if(Y.ctrl||Y.meta)return;if(Y.key==="j"||Y.key==="k"||Y.key==="/")return;if(Y.key.length===1&&Y.key!==" ")Y.preventDefault(),q0(!0),i0(Y.key)},[b,N,o,D0,i0,WJ]);return X(M,{flexDirection:"column",width:"100%",tabIndex:0,autoFocus:!0,onKeyDown:yq,children:b==="Theme"?z(i,{children:[X(AY,{onThemeSelect:(Y)=>{e.current=!0,D(Y),$(null),q(!1)},onCancel:()=>{$(null),q(!1)},hideEscToCancel:!0,skipExitHandling:!0}),X(M,{children:X(V,{dimColor:!0,italic:!0,children:z(x,{children:[X(J0,{shortcut:"Enter",action:"select"}),X(f,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"cancel"})]})})})]}):b==="Model"?z(i,{children:[X(MJ,{initial:I0,onSelect:(Y,Q)=>{e.current=!0,nJ(Y),$(null),q(!1)},onCancel:()=>{$(null),q(!1)},showFastModeNotice:m0()?xJ&&oZ(I0)&&kJ():!1}),X(V,{dimColor:!0,children:z(x,{children:[X(J0,{shortcut:"Enter",action:"confirm"}),X(f,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"cancel"})]})})]}):b==="TeammateModel"?z(i,{children:[X(MJ,{initial:W.teammateDefaultModel??null,skipSettingsWrite:!0,headerText:"Default model for newly spawned teammates. The leader can override via the tool call's model parameter.",onSelect:(Y,Q)=>{if($(null),q(!1),W.teammateDefaultModel===void 0&&Y===null)return;e.current=!0,y((R)=>R.teammateDefaultModel===Y?R:{...R,teammateDefaultModel:Y}),H({...w(),teammateDefaultModel:Y}),k0((R)=>({...R,teammateDefaultModel:jZ(Y)})),T("tengu_teammate_default_model_changed",{model:Y})},onCancel:()=>{$(null),q(!1)}}),X(V,{dimColor:!0,children:z(x,{children:[X(J0,{shortcut:"Enter",action:"confirm"}),X(f,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"cancel"})]})})]}):b==="ExternalIncludes"?z(i,{children:[X(PY,{onDone:()=>{$(null),q(!1)},externalIncludes:eZ(lJ)}),X(V,{dimColor:!0,children:z(x,{children:[X(J0,{shortcut:"Enter",action:"confirm"}),X(f,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"disable external includes"})]})})]}):b==="OutputStyle"?z(i,{children:[X(EZ,{initialStyle:U,onComplete:(Y)=>{e.current=!0,E(Y??e0),$(null),q(!1),g("localSettings",{outputStyle:Y}),T("tengu_output_style_changed",{style:Y??e0,source:"config_panel",settings_source:"localSettings"})},onCancel:()=>{$(null),q(!1)}}),X(V,{dimColor:!0,children:z(x,{children:[X(J0,{shortcut:"Enter",action:"confirm"}),X(f,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"cancel"})]})})]}):b==="Language"?z(i,{children:[X(wZ,{initialLanguage:C,onComplete:(Y)=>{e.current=!0,u(Y),$(null),q(!1),g("userSettings",{language:Y}),T("tengu_language_changed",{language:Y??"default",source:"config_panel"})},onCancel:()=>{$(null),q(!1)}}),X(V,{dimColor:!0,children:z(x,{children:[X(J0,{shortcut:"Enter",action:"confirm"}),X(f,{action:"confirm:no",context:"Settings",fallback:"Esc",description:"cancel"})]})})]}):b==="EnableAutoUpdates"?X(f0,{title:"Enable Auto-Updates",onCancel:()=>{$(null),q(!1)},hideBorder:!0,hideInputGuide:!0,children:K0?.type!=="config"?z(i,{children:[X(V,{children:K0?.type==="env"?"Auto-updates are controlled by an environment variable and cannot be changed here.":"Auto-updates are disabled in development builds."}),K0?.type==="env"&&z(V,{dimColor:!0,children:["Unset ",K0.envVar," to re-enable auto-updates."]})]}):X(C0,{options:[{label:"Enable with latest channel",value:"latest"},{label:"Enable with stable channel",value:"stable"}],onChange:(Y)=>{e.current=!0,$(null),q(!1),y((Q)=>({...Q,autoUpdates:!0})),H({...w(),autoUpdates:!0}),g("userSettings",{autoUpdatesChannel:Y,minimumVersion:void 0}),F((Q)=>({...Q,autoUpdatesChannel:Y,minimumVersion:void 0})),T("tengu_autoupdate_enabled",{channel:Y})}})}):b==="ChannelDowngrade"?X(RZ,{currentVersion:"99.0.0",onChoice:(Y)=>{if($(null),q(!1),Y==="cancel")return;e.current=!0;let Q={autoUpdatesChannel:"stable"};if(Y==="stay")Q.minimumVersion="99.0.0";g("userSettings",Q),F((R)=>({...R,...Q})),T("tengu_autoupdate_channel_changed",{channel:"stable",minimum_version_set:Y==="stay"})}}):z(M,{flexDirection:"column",gap:1,marginY:B?void 0:1,children:[X(BY,{query:D0,isFocused:o&&!N,isTerminalFocused:_0,cursorOffset:Uq,placeholder:"Search settings…"}),X(M,{flexDirection:"column",children:Q0.length===0?z(V,{dimColor:!0,italic:!0,children:['No settings match "',D0,'"']}):z(i,{children:[r>0&&z(V,{dimColor:!0,children:[z0.arrowUp," ",r," more above"]}),Q0.slice(r,r+X0).map((Y,Q)=>{let I=r+Q===m&&!N&&!o;return X(p.Fragment,{children:z(M,{children:[X(M,{width:44,children:z(V,{color:I?"suggestion":void 0,children:[I?z0.pointer:" "," ",Y.label]})}),X(M,{children:Y.type==="boolean"?z(i,{children:[X(V,{color:I?"suggestion":void 0,children:Y.value.toString()}),Lq&&Y.id==="thinkingEnabled"&&z(V,{color:"warning",children:[" ","Changing thinking mode mid-conversation will increase latency and may reduce quality."]})]}):Y.id==="theme"?X(V,{color:I?"suggestion":void 0,children:PX[Y.value.toString()]??Y.value.toString()}):Y.id==="notifChannel"?X(V,{color:I?"suggestion":void 0,children:X(BX,{value:Y.value.toString()})}):Y.id==="defaultPermissionMode"?X(V,{color:I?"suggestion":void 0,children:pZ(Y.value)}):Y.id==="autoUpdatesChannel"&&K0?z(M,{flexDirection:"column",children:[X(V,{color:I?"suggestion":void 0,children:"disabled"}),z(V,{dimColor:!0,children:["(",cZ(K0),")"]})]}):X(V,{color:I?"suggestion":void 0,children:Y.value.toString()})},I?"selected":"unselected")]})},Y.id)}),r+X0<Q0.length&&z(V,{dimColor:!0,children:[z0.arrowDown," ",Q0.length-r-X0," ","more below"]})]})}),N?X(V,{dimColor:!0,children:z(x,{children:[X(J0,{shortcut:"←/→ tab",action:"switch"}),X(J0,{shortcut:"↓",action:"return"}),X(f,{action:"confirm:no",context:"Settings",fallback:"Esc",description:"close"})]})}):o?X(V,{dimColor:!0,children:z(x,{children:[X(V,{children:"Type to filter"}),X(J0,{shortcut:"Enter/↓",action:"select"}),X(J0,{shortcut:"↑",action:"tabs"}),X(f,{action:"confirm:no",context:"Settings",fallback:"Esc",description:"clear"})]})}):X(V,{dimColor:!0,children:z(x,{children:[X(f,{action:"select:accept",context:"Settings",fallback:"Space",description:"change"}),X(f,{action:"settings:close",context:"Settings",fallback:"Enter",description:"save"}),X(f,{action:"settings:search",context:"Settings",fallback:"/",description:"search"}),X(f,{action:"confirm:no",context:"Settings",fallback:"Esc",description:"cancel"})]})})]})})}function jZ(Z){if(Z===void 0)return JJ(QY());if(Z===null)return"Default (leader's model)";return JJ(Z)}function BX(Z){let J=RY.c(4),{value:q}=Z;switch(q){case"auto":return"Auto";case"iterm2":{let G;if(J[0]===Symbol.for("react.memo_cache_sentinel"))G=z(V,{children:["iTerm2 ",X(V,{dimColor:!0,children:"(OSC 9)"})]}),J[0]=G;else G=J[0];return G}case"terminal_bell":{let G;if(J[1]===Symbol.for("react.memo_cache_sentinel"))G=z(V,{children:["Terminal Bell ",X(V,{dimColor:!0,children:"(\\a)"})]}),J[1]=G;else G=J[1];return G}case"kitty":{let G;if(J[2]===Symbol.for("react.memo_cache_sentinel"))G=z(V,{children:["Kitty ",X(V,{dimColor:!0,children:"(OSC 99)"})]}),J[2]=G;else G=J[2];return G}case"ghostty":{let G;if(J[3]===Symbol.for("react.memo_cache_sentinel"))G=z(V,{children:["Ghostty ",X(V,{dimColor:!0,children:"(OSC 777)"})]}),J[3]=G;else G=J[3];return G}case"iterm2_with_bell":return"iTerm2 w/ Bell";case"notifications_disabled":return"Disabled";default:return q}}var RY,p,h,PX;var DY=c(()=>{N0();w0();zJ();dZ();aq();uZ();dZ();sq();lq();VX();ZJ();iq();KX();WX();NZ();zX();eq();NX();OX();kZ();OJ();BZ();TZ();yZ();ZX();YX();E0();YJ();OY();NJ();AX();XX();nq();eJ();MZ();hZ();oq();qX();GX();QX();HX();b0();tq();JX();_();RY=v(L0(),1),p=v(a(),1),h=v(a(),1);PX={auto:"Auto (match terminal)",dark:"Dark mode",light:"Light mode","dark-daltonized":"Dark mode (colorblind-friendly)","light-daltonized":"Light mode (colorblind-friendly)","dark-ansi":"Dark mode (ANSI colors only)","light-ansi":"Light mode (ANSI colors only)"}});function c0(Z){return typeof Z==="object"&&Z!==null}function Z0(Z){return typeof Z==="string"&&Z.trim()?Z.trim():void 0}function j0(Z){return typeof Z==="number"&&Number.isFinite(Z)?Z:void 0}function IJ(Z){return typeof Z==="boolean"?Z:void 0}function EJ(Z){let J=j0(Z);if(J===void 0)return;return new Date(J*1000).toISOString()}function qJ(Z){if(!c0(Z))return;let J=j0(Z.used_percent)??j0(Z.usedPercent);if(J===void 0)return;let q=j0(Z.window_minutes)??j0(Z.windowDurationMins)??(()=>{let K=j0(Z.limit_window_seconds);return K===void 0?void 0:Math.round(K/60)})(),G=EJ(Z.resets_at)??EJ(Z.resetsAt)??EJ(Z.reset_at);return{usedPercent:J,windowMinutes:q,resetsAt:G}}function yY(Z){if(!c0(Z))return;let J=IJ(Z.has_credits)??IJ(Z.hasCredits)??!1,q=IJ(Z.unlimited)??!1,G=Z0(Z.balance);if(!J&&!q&&!G)return;return{hasCredits:J,unlimited:q,balance:G}}function p0(Z,J){if(!c0(Z))return;let q=Z0(Z.limit_name)??Z0(Z.limitName)??Z0(Z.limit_id)??Z0(Z.limitId)??J,G=qJ(Z.primary)??qJ(Z.primary_window),K=qJ(Z.secondary)??qJ(Z.secondary_window),N=yY(Z.credits);if(!G&&!K&&!N)return;return{limitName:q,primary:G,secondary:K,credits:N}}function TJ(Z,J="codex"){if(Array.isArray(Z))return Z.map((q,G)=>p0(q,G===0?J:`${J}-${G+1}`)).filter((q)=>q!==void 0);if(!c0(Z))return[];return Object.entries(Z).map(([q,G])=>p0(G,q)).filter((q)=>q!==void 0)}function kX(Z){let J=Z0(Z.plan_type)??Z0(Z.planType),q=[],G=yY(Z.credits),K=p0(Z.rate_limit,"codex");if(K)K.credits??=G,q.push(K);else if(G)q.push({limitName:"codex",credits:G});let N=p0(Z.code_review_rate_limit,"code review");if(N)q.push(N);return q.push(...TJ(Z.additional_rate_limits??Z.additionalRateLimits,"additional")),{planType:J,snapshots:q}}function DX(Z){if(Array.isArray(Z))return{snapshots:TJ(Z)};if(!c0(Z))return{snapshots:[]};if("rate_limit"in Z||"code_review_rate_limit"in Z||"additional_rate_limits"in Z||"credits"in Z)return kX(Z);let J=Z.rate_limits??Z.rateLimits??Z.rate_limits_by_limit_id??Z.rateLimitsByLimitId;if(J!==void 0)return{planType:Z0(Z.plan_type)??Z0(Z.planType),snapshots:TJ(J)};let q=p0(Z,"codex");return{planType:Z0(Z.plan_type)??Z0(Z.planType),snapshots:q?[q]:[]}}function S0(Z){if(!Z)return Z;return Z[0].toUpperCase()+Z.slice(1)}function LY(Z,J){if(Z===void 0||Z<=0)return J;if(Z===10080)return"weekly";if(Z%1440===0)return`${Z/1440}d`;if(Z%60===0)return`${Z/60}h`;return`${Z}m`}function LX(Z){let J=Z?.trim();if(!J)return;let q=Number.parseInt(J,10);if(Number.isFinite(q)&&`${q}`===J&&q>0)return`${q}`;let G=Number.parseFloat(J);if(Number.isFinite(G)&&G>0)return`${Math.round(G)}`;return}function UX(Z){if(!Z?.hasCredits)return;if(Z.unlimited)return{kind:"text",label:"Credits",value:"Unlimited"};let J=LX(Z.balance);if(!J)return;return{kind:"text",label:"Credits",value:`${J} credits`}}function jY(Z){let J=[];for(let q of Z){let G=q.limitName.trim()||"codex",K=UX(q.credits);if(!(q.primary!==void 0||q.secondary!==void 0||K!==void 0))continue;let P=G.toLowerCase()!=="codex",B=Number(q.primary!==void 0)+Number(q.secondary!==void 0),D=P&&B===1;if(P&&!D)J.push({kind:"text",label:`${S0(G)} limit`,value:""});if(q.primary){let k=S0(LY(q.primary.windowMinutes,"5h"));J.push({kind:"window",label:D?`${S0(G)} ${k} limit`:`${k} limit`,usedPercent:q.primary.usedPercent,resetsAt:q.primary.resetsAt})}if(q.secondary){let k=S0(LY(q.secondary.windowMinutes,"weekly"));J.push({kind:"window",label:D?`${S0(G)} ${k} limit`:`${k} limit`,usedPercent:q.secondary.usedPercent,resetsAt:q.secondary.resetsAt})}if(K)J.push(K)}return J}function SY(Z){if(!Z)return;return Z.split(/[_\s-]+/).filter(Boolean).map((J)=>S0(J.toLowerCase())).join(" ")}function MX(Z=TY){return new URL("/backend-api/wham/usage",Z).toString()}async function $Y(){let Z=await EY().catch(async(K)=>{return x0(`[codex] access token refresh failed before usage fetch: ${K instanceof Error?K.message:String(K)}`,{level:"warn"}),{refreshed:!1,credentials:await IY()}}),J=CY();if(!fY(J.baseUrl))throw Error("Codex usage is only available with the official ChatGPT Codex backend.");let q=wY({storedCredentials:Z.credentials});if(!q.apiKey){let K=UY()?"":", choose Codex OAuth in /provider",N=q.authPath?`${K} or place a Codex auth.json at ${q.authPath}`:K;throw Error(`Codex auth is required. Set CODEX_API_KEY${N}.`)}if(!q.accountId)throw Error("Codex auth is missing chatgpt_account_id. Re-login with Codex OAuth, the Codex CLI, or set CHATGPT_ACCOUNT_ID/CODEX_ACCOUNT_ID.");let G=await fetch(MX(J.baseUrl),{method:"GET",headers:{Accept:"application/json",Authorization:`Bearer ${q.apiKey}`,"chatgpt-account-id":q.accountId,originator:"claudio"},signal:AbortSignal.timeout(5000)});if(!G.ok){let K=await G.text().catch(()=>"unknown error");throw Error(`Codex usage error ${G.status}: ${K}`)}return DX(await G.json())}var hY=c(()=>{FX();MY();hZ();RX()});function IX({label:Z,usedPercent:J,resetsAt:q,maxWidth:G}){let K=Math.max(0,Math.min(100,J)),N=`${Math.floor(K)}% used`,P=q?`Resets ${XJ(q,!0,!0)}`:void 0;if(G>=62)return z(M,{flexDirection:"column",children:[X(V,{bold:!0,children:Z}),z(M,{flexDirection:"row",gap:1,children:[X(P0,{ratio:K/100,width:50,fillColor:"rate_limit_fill",emptyColor:"rate_limit_empty"}),X(V,{children:N})]}),P?X(V,{dimColor:!0,children:P}):null]});return z(M,{flexDirection:"column",children:[z(V,{children:[X(V,{bold:!0,children:Z}),P?z(i,{children:[X(V,{children:" "}),z(V,{dimColor:!0,children:["· ",P]})]}):null]}),X(P0,{ratio:K/100,width:G,fillColor:"rate_limit_fill",emptyColor:"rate_limit_empty"}),X(V,{children:N})]})}function EX({label:Z,value:J}){if(!J)return X(V,{bold:!0,children:Z});return z(V,{children:[X(V,{bold:!0,children:Z}),z(V,{dimColor:!0,children:[" · ",J]})]})}function mY(){let[Z,J]=$0.useState(null),[q,G]=$0.useState(null),[K,N]=$0.useState(!0),{columns:P}=V0(),B=P-2,D=Math.min(B,80),k=vY.useCallback(async()=>{N(!0),G(null);try{J(await $Y())}catch(O){H0(O),G(O instanceof Error?O.message:"Failed to load Codex usage")}finally{N(!1)}},[]);if($0.useEffect(()=>{k()},[k]),l("settings:retry",()=>{k()},{context:"Settings",isActive:!!q&&!K}),q)return z(M,{flexDirection:"column",gap:1,children:[z(V,{color:"error",children:["Error: ",q]}),X(V,{dimColor:!0,children:z(x,{children:[X(f,{action:"settings:retry",context:"Settings",fallback:"r",description:"retry"}),X(f,{action:"confirm:no",context:"Settings",fallback:"Esc",description:"cancel"})]})})]});if(!Z)return z(M,{flexDirection:"column",gap:1,children:[X(V,{dimColor:!0,children:"Loading Codex usage data…"}),X(V,{dimColor:!0,children:X(f,{action:"confirm:no",context:"Settings",fallback:"Esc",description:"cancel"})})]});let W=jY(Z.snapshots),H=SY(Z.planType);return z(M,{flexDirection:"column",gap:1,width:"100%",children:[H?z(V,{dimColor:!0,children:["Plan: ",H]}):null,W.length===0?X(V,{dimColor:!0,children:"Codex usage data is not available for this account."}):null,W.map((O,A)=>O.kind==="window"?X(IX,{label:O.label,usedPercent:O.usedPercent,resetsAt:O.resetsAt,maxWidth:D},`${O.label}-${A}`):X(EX,{label:O.label,value:O.value},`${O.label}-${A}`)),X(V,{dimColor:!0,children:X(f,{action:"confirm:no",context:"Settings",fallback:"Esc",description:"cancel"})})]})}var vY,$0;var bY=c(()=>{b0();N0();w0();hY();_Y();ZJ();E0();YJ();fJ();_();vY=v(a(),1),$0=v(a(),1)});var g0="https://api.minimax.io/v1",d0="Usage details are not available for this MiniMax account. This plan or MiniMax endpoint may not expose quota status.";var CJ=()=>{};function B0(Z){return typeof Z==="object"&&Z!==null}function d(Z){return typeof Z==="string"&&Z.trim()?Z.trim():void 0}function yJ(Z){if(typeof Z==="number"&&Number.isFinite(Z))return Z;if(typeof Z==="string"&&Z.trim()){let J=Number.parseFloat(Z);if(Number.isFinite(J))return J}return}function GJ(Z){return Math.max(0,Math.min(100,Math.round(Z)))}function TX(Z){if(typeof Z==="string"){let G=Date.parse(Z);return Number.isNaN(G)?Z:new Date(G).toISOString()}let J=yJ(Z);if(J===void 0)return;let q=J>1000000000000?J:J*1000;return new Date(q).toISOString()}function fX(Z,J){let q=yJ(Z);if(/remains?_time/i.test(J)&&q!==void 0){let G=q>604800?q:q*1000;return new Date(Date.now()+G).toISOString()}return TX(Z)}function u0(Z,J){for(let q of J){let G=yJ(Z[q]);if(G!==void 0)return G}return}function CX(Z,J){for(let q of J)if(Z[q]!==void 0)return fX(Z[q],q);return}function r0(Z,J){return J.some((q)=>Z[q]!==void 0)}function cY(Z){return Z?Z[0].toUpperCase()+Z.slice(1):Z}function wX(Z){if(!Z)return"MiniMax";let J=Z.trim();if(!J)return"MiniMax";if(/[A-Z]/.test(J))return J;return J.split(/[_\s-]+/).filter(Boolean).map((q)=>cY(q.toLowerCase())).join(" ")}function yX(Z){if(!Z)return;return Z.split(/[_\s-]+/).filter(Boolean).map((J)=>cY(J.toLowerCase())).join(" ")}function gY(Z,J){let q=u0(Z,J.percentKeys),G=u0(Z,J.remainingPercentKeys),K=u0(Z,J.totalKeys),N=u0(Z,J.remainingKeys),P=u0(Z,J.usedKeys),B=K!==void 0&&P!==void 0?K-P:N,D;if(K!==void 0&&K>0&&P!==void 0)D=GJ(P/K*100);else if(K!==void 0&&K>0&&N!==void 0)D=GJ((K-N)/K*100);else if(q!==void 0)D=GJ(q);else if(G!==void 0)D=GJ(100-G);if(D===void 0)return;return{label:J.label,usedPercent:D,remaining:B,total:K,resetsAt:CX(Z,J.resetKeys)}}function jX(Z){let J=d(Z.label)??d(Z.name)??d(Z.window_name)??d(Z.windowName)??"Limit";return gY(Z,{label:J,percentKeys:["used_percent","usedPercent","utilization","usage_percentage","usagePercentage"],remainingPercentKeys:["usage_percent","usagePercent","remaining_percent","remainingPercent","percent_remaining","percentRemaining"],totalKeys:["total","quota","limit","max","entitlement"],remainingKeys:["remaining","remain","remains","left"],usedKeys:["used","usage","consumed"],resetKeys:["resets_at","reset_at","resetsAt","resetAt"]})}function $X(Z){if(r0(Z,SX))return!0;return dY.some((J)=>r0(Z,J.totalKeys)||r0(Z,J.remainingKeys)||r0(Z,J.usedKeys)||r0(Z,J.percentKeys))}function wJ(Z,J){if(!B0(Z))return;let q=dY.map((K)=>gY(Z,K)).filter((K)=>K!==void 0);if(q.length===0){let K=jX(Z);if(K)q.push(K)}if(q.length===0)return;return{limitName:d(Z.limit_name)??d(Z.limitName)??d(Z.model_name)??d(Z.modelName)??d(Z.name)??J,windows:q}}function pY(Z,J="MiniMax"){if(Array.isArray(Z))return Z.map((q,G)=>wJ(q,G===0?J:`${J}-${G+1}`)).filter((q)=>q!==void 0);if(!B0(Z))return[];if($X(Z)){let q=wJ(Z,J);return q?[q]:[]}return Object.entries(Z).map(([q,G])=>wJ(G,q)).filter((q)=>q!==void 0)}function xY(Z=d0,J){return{availability:"unknown",planType:J,snapshots:[],message:Z}}function jJ(Z){if(!B0(Z))return xY();let J=yX(d(Z.plan_type)??d(Z.planType)??d(Z.subscription_type)??d(Z.subscriptionType)??d(Z.plan_name)??d(Z.planName)),G=[Z.data,Z.result,Z.model_remains,Z.modelRemains,Z.remains,Z.usage,Z.quotas,Z.models,B0(Z.data)?Z.data.model_remains:void 0,B0(Z.data)?Z.data.modelRemains:void 0,B0(Z.data)?Z.data.models:void 0,B0(Z.data)?Z.data.quotas:void 0,B0(Z.data)?Z.data.remains:void 0].flatMap((N)=>pY(N)).filter((N,P,B)=>{let D=`${N.limitName}:${N.windows.map((k)=>k.label).join("|")}`;return B.findIndex((k)=>`${k.limitName}:${k.windows.map((W)=>W.label).join("|")}`===D)===P});if(G.length>0)return{availability:"available",planType:J,snapshots:G};let K=pY(Z);if(K.length>0)return{availability:"available",planType:J,snapshots:K};return xY(void 0,J)}function hX(Z){if(Z.remaining===void 0||Z.total===void 0||Z.total<=0)return;return`${Z.remaining}/${Z.total} remaining`}function SJ(Z){let J=[];for(let q of Z){let G=wX(q.limitName),K=G.toLowerCase()!=="minimax",N=K&&q.windows.length===1;if(K&&!N)J.push({kind:"text",label:`${G} quota`,value:""});for(let P of q.windows)J.push({kind:"window",label:N?`${G} ${P.label}`:P.label,usedPercent:P.usedPercent,resetsAt:P.resetsAt,extraSubtext:hX(P)})}return J}var dY,SX;var $J=c(()=>{CJ();dY=[{label:"5h limit",percentKeys:["interval_used_percent","intervalUsedPercent"],remainingPercentKeys:["usage_percent","usagePercent","interval_remaining_percent","intervalRemainingPercent"],totalKeys:["current_interval_total_count","currentIntervalTotalCount","max_interval_usage_count","maxIntervalUsageCount","interval_quota","intervalQuota","interval_limit","intervalLimit"],remainingKeys:["current_interval_remaining_count","currentIntervalRemainingCount","current_interval_remains_count","currentIntervalRemainsCount","interval_remaining","intervalRemaining","remaining_interval_usage_count","remainingIntervalUsageCount"],usedKeys:["current_interval_usage_count","currentIntervalUsageCount","interval_used","intervalUsed","current_interval_used_count","currentIntervalUsedCount","used_interval_usage_count","usedIntervalUsageCount"],resetKeys:["end_time","endTime","interval_resets_at","intervalResetsAt","interval_reset_at","intervalResetAt","remains_time","remainsTime"]},{label:"Weekly limit",percentKeys:["weekly_used_percent","weeklyUsedPercent"],remainingPercentKeys:["weekly_remaining_percent","weeklyRemainingPercent"],totalKeys:["max_weekly_usage_count","maxWeeklyUsageCount","weekly_quota","weeklyQuota","weekly_limit","weeklyLimit"],remainingKeys:["weekly_remaining","weeklyRemaining","remaining_weekly_usage_count","remainingWeeklyUsageCount"],usedKeys:["current_weekly_usage_count","currentWeeklyUsageCount","weekly_used","weeklyUsed","used_weekly_usage_count","usedWeeklyUsageCount"],resetKeys:["weekly_resets_at","weeklyResetsAt","weekly_reset_at","weeklyResetAt"]},{label:"Daily limit",percentKeys:["daily_used_percent","dailyUsedPercent"],remainingPercentKeys:["daily_remaining_percent","dailyRemainingPercent"],totalKeys:["max_daily_usage_count","maxDailyUsageCount","daily_quota","dailyQuota","daily_limit","dailyLimit"],remainingKeys:["daily_remaining","dailyRemaining","remaining_daily_usage_count","remainingDailyUsageCount"],usedKeys:["current_daily_usage_count","currentDailyUsageCount","daily_used","dailyUsed","used_daily_usage_count","usedDailyUsageCount"],resetKeys:["daily_resets_at","dailyResetsAt","daily_reset_at","dailyResetAt"]}],SX=["used_percent","usedPercent","utilization","usage_percentage","usagePercentage","total","quota","limit","max","entitlement","remaining","remain","remains","left","usage_percent","usagePercent","current_interval_total_count","current_interval_usage_count","current_interval_remaining_count","current_interval_remains_count","max_interval_usage_count","current_weekly_usage_count","max_weekly_usage_count","current_daily_usage_count","max_daily_usage_count"]});function vX(Z){return Z.replace(/\/+$/,"")}function oY(Z=U0()?.baseUrl??g0){let J=Z.trim();return J?vX(J):g0}function mX(Z){let J=Z??U0()?.baseUrl;if(!J?.trim())return{baseUrl:g0,usedDefault:!0};return{baseUrl:oY(J),usedDefault:!1}}function uY(Z){return{availability:"unknown",snapshots:[],message:Z}}function iY(Z){let{baseUrl:J,usedDefault:q}=mX(Z);try{let G=new URL(`${J}/`);return[new URL("token_plan/remains",G).toString(),new URL("api/openplatform/coding_plan/remains",G).toString()]}catch{if(q){let G=new URL(`${g0}/`);return[new URL("token_plan/remains",G).toString(),new URL("api/openplatform/coding_plan/remains",G).toString()]}throw Error(`MiniMax usage base URL is invalid: ${J}`)}}async function hJ(){let Z=U0()?.apiKey;if(!Z)throw Error("MiniMax auth is required. Run /provider and configure a MiniMax profile.");let J=iY(),q=[],G=null;for(let K of J){let N;try{N=await fetch(K,{method:"GET",headers:{Accept:"application/json",Authorization:`Bearer ${Z}`,"Content-Type":"application/json","User-Agent":rY()},signal:AbortSignal.timeout(5000)})}catch(B){x0(`[minimax] usage request failed for ${K}: ${B instanceof Error?B.message:String(B)}`,{level:"warn"}),G=B instanceof Error?B:Error(String(B));continue}if(!N.ok){let B=await N.text().catch(()=>"");if([400,401,403,404].includes(N.status)){q.push({status:N.status,body:B});continue}G=Error(`MiniMax usage error ${N.status}: ${B||"unknown error"}`);continue}let P=jJ(await N.json());if(P.availability==="available")return P}if(q.length>0){let K=q[q.length-1];return x0(`[minimax] usage endpoint returned non-fatal status ${K.status}: ${K.body}`,{level:"warn"}),uY(d0)}if(G)throw G;return uY(d0)}var lY=c(()=>{uZ();MY();_X();CJ();$J()});var nY=c(()=>{$J();lY()});function xX(Z){let J=Math.max(1,Math.ceil(Z/60000)),q=Math.floor(J/1440),G=Math.floor(J%1440/60),K=J%60;if(q>0)return G>0?`${q}d ${G}h`:`${q}d`;if(G>0)return K>0?`${G}h ${K}m`:`${G}h`;return`${K}m`}function cX(Z,J){if(!Z)return;let q=Date.parse(Z);if(!Number.isFinite(q))return;let G=q-J;if(G<=0)return"Resetting now";return`Resets in ${xX(G)}`}function gX({label:Z,usedPercent:J,resetsAt:q,extraSubtext:G,maxWidth:K,nowMs:N}){let P=Math.max(0,Math.min(100,J)),B=`${Math.floor(P)}% used`,D=cX(q,N),k=[B,G].filter((W)=>Boolean(W));return z(M,{flexDirection:"column",children:[z(V,{children:[X(V,{bold:!0,children:Z}),D?z(V,{dimColor:!0,children:[" · ",D]}):null]}),z(M,{flexDirection:"row",gap:1,children:[X(P0,{ratio:P/100,width:Math.min(pX,Math.max(1,K)),fillColor:"rate_limit_fill",emptyColor:"rate_limit_empty"}),k.length>0?X(V,{dimColor:!0,children:k.join(" · ")}):null]})]})}function dX({label:Z,value:J}){if(!J)return X(V,{bold:!0,children:Z});return z(V,{children:[X(V,{bold:!0,children:Z}),z(V,{dimColor:!0,children:[" · ",J]})]})}function aY(){let[Z,J]=F0.useState(null),[q,G]=F0.useState(null),[K,N]=F0.useState(!0),[P,B]=F0.useState(()=>Date.now()),{columns:D}=V0(),k=D-2,W=Math.min(k,80),H=sY.useCallback(async()=>{N(!0),G(null);try{J(await hJ())}catch(A){H0(A),G(A instanceof Error?A.message:"Failed to load MiniMax usage")}finally{N(!1)}},[]);if(F0.useEffect(()=>{H()},[H]),F0.useEffect(()=>{let A=setInterval(()=>{B(Date.now())},bX);return()=>clearInterval(A)},[]),l("settings:retry",()=>{H()},{context:"Settings",isActive:!!q&&!K}),q)return z(M,{flexDirection:"column",gap:1,children:[z(V,{color:"error",children:["Error: ",q]}),X(V,{dimColor:!0,children:z(x,{children:[X(f,{action:"settings:retry",context:"Settings",fallback:"r",description:"retry"}),X(f,{action:"confirm:no",context:"Settings",fallback:"Esc",description:"cancel"})]})})]});if(!Z)return z(M,{flexDirection:"column",gap:1,children:[X(V,{dimColor:!0,children:"Loading MiniMax usage data…"}),X(V,{dimColor:!0,children:X(f,{action:"confirm:no",context:"Settings",fallback:"Esc",description:"cancel"})})]});let O=Z.availability==="available"?SJ(Z.snapshots):[];return z(M,{flexDirection:"column",gap:1,width:"100%",children:[Z.planType?z(V,{dimColor:!0,children:["Plan: ",Z.planType]}):null,Z.availability==="unknown"?X(V,{dimColor:!0,children:Z.message}):O.length===0?X(V,{dimColor:!0,children:"No MiniMax usage windows were returned for this account."}):null,O.map((A,F)=>A.kind==="window"?X(gX,{label:A.label,usedPercent:A.usedPercent,resetsAt:A.resetsAt,extraSubtext:A.extraSubtext,maxWidth:W,nowMs:P},`${A.label}-${F}`):X(dX,{label:A.label,value:A.value},`${A.label}-${F}`)),X(V,{dimColor:!0,children:X(f,{action:"confirm:no",context:"Settings",fallback:"Esc",description:"cancel"})})]})}var sY,F0,bX=30000,pX=18;var tY=c(()=>{b0();N0();w0();nY();ZJ();E0();YJ();fJ();_();sY=v(a(),1),F0=v(a(),1)});function eY({providerLabel:Z}){return z(M,{flexDirection:"column",gap:1,children:[z(V,{dimColor:!0,children:["Usage details are not currently available for ",Z,"."]}),X(V,{dimColor:!0,children:X(f,{action:"confirm:no",context:"Settings",fallback:"Esc",description:"cancel"})})]})}var Jq=c(()=>{N0();E0();_()});function Kq(Z){let J=bJ.c(34),{title:q,limit:G,maxWidth:K,showTimeInReset:N,extraSubtext:P}=Z,B=N===void 0?!0:N,{utilization:D,resets_at:k}=G;if(D===null)return null;let W=`${Math.floor(D)}% used`,H;if(k){let O;if(J[0]!==k||J[1]!==B)O=XJ(k,!0,B),J[0]=k,J[1]=B,J[2]=O;else O=J[2];H=`Resets ${O}`}if(P)if(H)H=`${P} · ${H}`;else H=P;if(K>=62){let O;if(J[3]!==q)O=X(V,{bold:!0,children:q}),J[3]=q,J[4]=O;else O=J[4];let A=D/100,F;if(J[5]!==A)F=X(P0,{ratio:A,width:50,fillColor:"rate_limit_fill",emptyColor:"rate_limit_empty"}),J[5]=A,J[6]=F;else F=J[6];let L;if(J[7]!==W)L=X(V,{children:W}),J[7]=W,J[8]=L;else L=J[8];let U;if(J[9]!==F||J[10]!==L)U=z(M,{flexDirection:"row",gap:1,children:[F,L]}),J[9]=F,J[10]=L,J[11]=U;else U=J[11];let E;if(J[12]!==H)E=H&&X(V,{dimColor:!0,children:H}),J[12]=H,J[13]=E;else E=J[13];let j;if(J[14]!==O||J[15]!==U||J[16]!==E)j=z(M,{flexDirection:"column",children:[O,U,E]}),J[14]=O,J[15]=U,J[16]=E,J[17]=j;else j=J[17];return j}else{let O;if(J[18]!==q)O=X(V,{bold:!0,children:q}),J[18]=q,J[19]=O;else O=J[19];let A;if(J[20]!==H)A=H&&z(i,{children:[X(V,{children:" "}),z(V,{dimColor:!0,children:["· ",H]})]}),J[20]=H,J[21]=A;else A=J[21];let F;if(J[22]!==O||J[23]!==A)F=z(V,{children:[O,A]}),J[22]=O,J[23]=A,J[24]=F;else F=J[24];let L=D/100,U;if(J[25]!==K||J[26]!==L)U=X(P0,{ratio:L,width:K,fillColor:"rate_limit_fill",emptyColor:"rate_limit_empty"}),J[25]=K,J[26]=L,J[27]=U;else U=J[27];let E;if(J[28]!==W)E=X(V,{children:W}),J[28]=W,J[29]=E;else E=J[29];let j;if(J[30]!==F||J[31]!==U||J[32]!==E)j=z(M,{flexDirection:"column",children:[F,U,E]}),J[30]=F,J[31]=U,J[32]=E,J[33]=j;else j=J[33];return j}}function aX(){let[Z,J]=h0.useState(null),[q,G]=h0.useState(null),[K,N]=h0.useState(!0),{columns:P}=V0(),B=P-2,D=Math.min(B,80),k=Vq.useCallback(async()=>{N(!0),G(null);try{let A=await qq();J(A)}catch(A){H0(A);let F=A,L=F.response?.data?Zq(F.response.data):void 0;G(L?`Failed to load usage data: ${L}`:"Failed to load usage data")}finally{N(!1)}},[]);if(h0.useEffect(()=>{k()},[k]),l("settings:retry",()=>{k()},{context:"Settings",isActive:!!q&&!K}),q)return z(M,{flexDirection:"column",gap:1,children:[z(V,{color:"error",children:["Error: ",q]}),X(V,{dimColor:!0,children:z(x,{children:[X(f,{action:"settings:retry",context:"Settings",fallback:"r",description:"retry"}),X(f,{action:"confirm:no",context:"Settings",fallback:"Esc",description:"cancel"})]})})]});if(!Z)return z(M,{flexDirection:"column",gap:1,children:[X(V,{dimColor:!0,children:"Loading usage data…"}),X(V,{dimColor:!0,children:X(f,{action:"confirm:no",context:"Settings",fallback:"Esc",description:"cancel"})})]});let W=mJ(),H=W==="max"||W==="team"||W===null,O=[{title:"Current session",limit:Z.five_hour},{title:"Current week (all models)",limit:Z.seven_day},...H?[{title:"Current week (Sonnet only)",limit:Z.seven_day_sonnet}]:[]];return z(M,{flexDirection:"column",gap:1,width:"100%",children:[O.some(({limit:A})=>A)||X(V,{dimColor:!0,children:"/usage is only available for subscription plans."}),O.map(({title:A,limit:F})=>F&&X(Kq,{title:A,limit:F,maxWidth:D},A)),Z.extra_usage&&X(tX,{extraUsage:Z.extra_usage,maxWidth:D}),Gq()&&X(Qq,{maxWidth:D}),X(V,{dimColor:!0,children:X(f,{action:"confirm:no",context:"Settings",fallback:"Esc",description:"cancel"})})]})}function Wq(){let Z=Yq();if(Z==="codex")return X(mY,{});if(Z==="minimax")return X(aY,{});if(Z!=="firstParty"){let J={openai:"this OpenAI-compatible provider",gemini:"Google Gemini",github:"GitHub Copilot",mistral:"Mistral","nvidia-nim":"NVIDIA NIM",bedrock:"AWS Bedrock",vertex:"Google Vertex AI",foundry:"Microsoft Foundry"}[Z]??"this provider";return X(eY,{providerLabel:J})}return X(aX,{})}function tX(Z){let J=bJ.c(20),{extraUsage:q,maxWidth:G}=Z,K=mJ();if(!(K==="pro"||K==="max"))return!1;if(!q.is_enabled){if(Xq.isEnabled()){let C;if(J[0]===Symbol.for("react.memo_cache_sentinel"))C=z(M,{flexDirection:"column",children:[X(V,{bold:!0,children:_J}),X(V,{dimColor:!0,children:"Extra usage not enabled · /extra-usage to enable"})]}),J[0]=C;else C=J[0];return C}return null}if(q.monthly_limit===null){let C;if(J[1]===Symbol.for("react.memo_cache_sentinel"))C=z(M,{flexDirection:"column",children:[X(V,{bold:!0,children:_J}),X(V,{dimColor:!0,children:"Unlimited"})]}),J[1]=C;else C=J[1];return C}if(typeof q.used_credits!=="number"||typeof q.utilization!=="number")return null;let P=q.used_credits/100,B;if(J[2]!==P)B=vJ(P,2),J[2]=P,J[3]=B;else B=J[3];let D=B,k=q.monthly_limit/100,W;if(J[4]!==k)W=vJ(k,2),J[4]=k,J[5]=W;else W=J[5];let H=W,O,A,F,L;if(J[6]!==q.utilization){let C=new Date,u=new Date(C.getFullYear(),C.getMonth()+1,1);O=Kq,L=_J,A=q.utilization,F=u.toISOString(),J[6]=q.utilization,J[7]=O,J[8]=A,J[9]=F,J[10]=L}else O=J[7],A=J[8],F=J[9],L=J[10];let U;if(J[11]!==A||J[12]!==F)U={utilization:A,resets_at:F},J[11]=A,J[12]=F,J[13]=U;else U=J[13];let E=`${D} / ${H} spent`,j;if(J[14]!==O||J[15]!==G||J[16]!==L||J[17]!==U||J[18]!==E)j=X(O,{title:L,limit:U,showTimeInReset:!1,extraSubtext:E,maxWidth:G}),J[14]=O,J[15]=G,J[16]=L,J[17]=U,J[18]=E,J[19]=j;else j=J[19];return j}var bJ,Vq,h0,_J="Extra usage";var zq=c(()=>{lX();nX();oX();b0();N0();w0();iX();_Y();ZJ();rX();uX();E0();YJ();fJ();sX();bY();tY();Jq();_();bJ=v(L0(),1),Vq=v(a(),1),h0=v(a(),1)});function lV(Z){let J=Pq.c(25),{onClose:q,context:G,defaultTab:K}=Z,[N,P]=R0.useState(K),[B,D]=R0.useState(!1),[k,W]=R0.useState(!1),[H,O]=R0.useState(!1),A=T0(),{rows:F}=Oq(V0()),L=A?F+1:Math.max(15,Math.min(Math.floor(F*0.8),30)),[U]=R0.useState(ZG);Nq();let E;if(J[0]!==q||J[1]!==B)E=()=>{if(B)return;q("Status dialog dismissed",{display:"system"})},J[0]=q,J[1]=B,J[2]=E;else E=J[2];let j=E,C=!B&&!(N==="Config"&&k)&&!(N==="Gates"&&H),u;if(J[3]!==C)u={context:"Settings",isActive:C},J[3]=C,J[4]=u;else u=J[4];l("confirm:no",j,u);let t;if(J[5]!==G||J[6]!==U)t=X(QJ,{title:"Status",children:X(AZ,{context:G,diagnosticsPromise:U})},"status"),J[5]=G,J[6]=U,J[7]=t;else t=J[7];let m;if(J[8]!==L||J[9]!==G||J[10]!==q)m=X(QJ,{title:"Config",children:X(R0.Suspense,{fallback:null,children:X(kY,{context:G,onClose:q,setTabsHidden:D,onIsSearchModeChange:W,contentHeight:L})})},"config"),J[8]=L,J[9]=G,J[10]=q,J[11]=m;else m=J[11];let A0;if(J[12]===Symbol.for("react.memo_cache_sentinel"))A0=X(QJ,{title:"Usage",children:X(Wq,{})},"usage"),J[12]=A0;else A0=J[12];let r;if(J[13]!==L)r=[],J[13]=L,J[14]=r;else r=J[14];let Y0;if(J[15]!==t||J[16]!==m||J[17]!==r)Y0=[t,m,A0,...r],J[15]=t,J[16]=m,J[17]=r,J[18]=Y0;else Y0=J[18];let o=Y0,q0=K!=="Config"&&K!=="Gates",_0=B||A?void 0:L,M0;if(J[19]!==N||J[20]!==_0||J[21]!==q0||J[22]!==o||J[23]!==B)M0=X(Aq,{color:"permission",children:X(Hq,{color:"permission",selectedTab:N,onTabChange:P,hidden:B,initialHeaderFocused:q0,contentHeight:_0,children:o})}),J[19]=N,J[20]=_0,J[21]=q0,J[22]=o,J[23]=B,J[24]=M0;else M0=J[24];return M0}function ZG(){return OZ().catch(YG)}function YG(){return[]}var Pq,R0;var qG=c(()=>{w0();eX();b0();NJ();JG();OY();HZ();DY();zq();_();Pq=v(L0(),1),R0=v(a(),1)});
|
|
3
|
+
export{lV as lf,qG as mf};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{Bg as p,jh as Wj}from"./cli-0.1.13-ft5k86va.mjs";import{UP as N,WP as Rj}from"./cli-0.1.13-5s4m8qj9.mjs";import{eX as L,fX as c,gX as g,hX as w,kX as d,oX as Qj}from"./cli-0.1.13-1hw65avy.mjs";import{F_ as y,G_ as Jj,Mba as b,Pba as H,a9 as $,c9 as Gj,e8 as I,f8 as zj,gca as Oj}from"./cli-0.1.13-dag38tkx.mjs";import{Afa as a,ofa as _}from"./cli-0.1.13-rjjyq9ej.mjs";import{Uga as U,Wga as i,Yga as D,aha as jj,oha as R,rha as qj}from"./cli-0.1.13-144gn3fd.mjs";import{Bha as v,Cha as B,Lha as e,yha as u}from"./cli-0.1.13-1g6bgaa6.mjs";import{Vla as F,ala as C,bla as E,gna as t}from"./cli-0.1.13-52f40ba4.mjs";import{Xna as Y}from"./cli-0.1.13-bj67mp7n.mjs";import{readdir as V}from"fs/promises";import{join as n}from"path";function s(){return[o]}async function r(q,j){if(q.length===0)return j?.("[Claude in Chrome] No browser paths to check"),{isInstalled:!1,browser:null};let J=s();for(let{browser:z,path:O}of q){let G=[];try{G=await V(O,{withFileTypes:!0})}catch(Q){if(U(Q))continue;throw Q}let W=G.filter((Q)=>Q.isDirectory()).filter((Q)=>Q.name==="Default"||Q.name.startsWith("Profile ")).map((Q)=>Q.name);if(W.length>0)j?.(`[Claude in Chrome] Found ${z} profiles: ${W.join(", ")}`);for(let Q of W)for(let Z of J){let l=n(O,Q,"Extensions",Z);try{return await V(l),j?.(`[Claude in Chrome] Extension ${Z} found in ${z} ${Q}`),{isInstalled:!0,browser:z}}catch{}}}return j?.("[Claude in Chrome] Extension not found in any browser"),{isInstalled:!1,browser:null}}async function A(q,j){return(await r(q,j)).isInstalled}var o="fcoeoabgfenejglbffodgkkbkcdhcgfn";var K=Y(()=>{i()});import{chmod as Xj,mkdir as P,readFile as f,writeFile as m}from"fs/promises";import{homedir as Zj}from"os";import{join as X}from"path";import{fileURLToPath as $j}from"url";function wj(q){if(C()&&q!==!0)return!1;if(q===!0)return!0;if(q===!1)return!1;if(v(process.env.CLAUDE_CODE_ENABLE_CFC))return!0;if(B(process.env.CLAUDE_CODE_ENABLE_CFC))return!1;let j=H();if(j.claudeInChromeDefaultEnabled!==void 0)return j.claudeInChromeDefaultEnabled;return!1}function dj(){if(k!==void 0)return k;return k=E()&&Nj()&&_("tengu_chrome_auto_enable",!1),k}function pj(){let q=y(),j=p.map((O)=>`mcp__claude-in-chrome__${O.name}`),J={};if(F())J.CLAUDE_CHROME_PERMISSION_MODE="skip_all_permission_checks";let z=Object.keys(J).length>0;if(q){let O=`"${process.execPath}" --chrome-native-host`;return x(O).then((G)=>T(G)).catch((G)=>R(`[Claude in Chrome] Failed to install native host: ${G}`,{level:"error"})),{mcpConfig:{[L]:{type:"stdio",command:process.execPath,args:["--claude-in-chrome-mcp"],scope:"dynamic",...z&&{env:J}}},allowedTools:j,systemPrompt:N()}}else{let O=$j(import.meta.url),G=X(O,".."),W=X(G,"cli.js");return x(`"${process.execPath}" "${W}" --chrome-native-host`).then((Z)=>T(Z)).catch((Z)=>R(`[Claude in Chrome] Failed to install native host: ${Z}`,{level:"error"})),{mcpConfig:{[L]:{type:"stdio",command:process.execPath,args:[`${W}`,"--claude-in-chrome-mcp"],scope:"dynamic",...z&&{env:J}}},allowedTools:j,systemPrompt:N()}}}function Hj(){if($()==="windows"){let j=Zj(),J=process.env.APPDATA||X(j,"AppData","Local");return[X(J,"Claude Code","ChromeNativeHost")]}return g().map(({path:j})=>j)}async function T(q){let j=Hj();if(j.length===0)throw Error("Claude in Chrome Native Host not supported on this platform");let z=D({name:S,description:"Claude Code Browser Extension Native Host",path:q,type:"stdio",allowed_origins:["chrome-extension://fcoeoabgfenejglbffodgkkbkcdhcgfn/"]},null,2),O=!1;for(let G of j){let W=X(G,M);if(await f(W,"utf-8").catch(()=>null)===z)continue;try{await P(G,{recursive:!0}),await m(W,z),R(`[Claude in Chrome] Installed native host manifest at: ${W}`),O=!0}catch(Z){R(`[Claude in Chrome] Failed to install manifest at ${W}: ${Z}`)}}if($()==="windows"){let G=X(j[0],M);Lj(G)}if(O)h().then((G)=>{if(G)R("[Claude in Chrome] First-time install detected, opening reconnect page in browser"),d(kj);else R("[Claude in Chrome] First-time install detected, but extension not installed, skipping reconnect")})}function Lj(q){let j=w();for(let{browser:J,key:z}of j){let O=`${z}\\${S}`;I("reg",["add",O,"/ve","/t","REG_SZ","/d",q,"/f"]).then((G)=>{if(G.code===0)R(`[Claude in Chrome] Registered native host for ${J} in Windows registry: ${O}`);else R(`[Claude in Chrome] Failed to register native host for ${J} in Windows registry: ${G.stderr}`)})}}async function x(q){let j=$(),J=X(u(),"chrome"),z=j==="windows"?X(J,"chrome-native-host.bat"):X(J,"chrome-native-host"),O=j==="windows"?`@echo off
|
|
2
2
|
REM Chrome native host wrapper script
|
|
3
3
|
REM Generated by Claude Code - do not edit manually
|
|
4
4
|
${q}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{Vna as j}from"./cli-0.1.13-bj67mp7n.mjs";var Lt=j((Q)=>{var y=Symbol.for("react.transitional.element"),$=Symbol.for("react.portal"),I=Symbol.for("react.fragment"),N=Symbol.for("react.strict_mode"),M=Symbol.for("react.profiler"),Y=Symbol.for("react.consumer"),L=Symbol.for("react.context"),k=Symbol.for("react.forward_ref"),U=Symbol.for("react.suspense"),b=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),D=Symbol.for("react.activity"),m=Symbol.iterator;function q(t){if(t===null||typeof t!=="object")return null;return t=m&&t[m]||t["@@iterator"],typeof t==="function"?t:null}var S={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},g=Object.assign,w={};function l(t,e,n){this.props=t,this.context=e,this.refs=w,this.updater=n||S}l.prototype.isReactComponent={};l.prototype.setState=function(t,e){if(typeof t!=="object"&&typeof t!=="function"&&t!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,t,e,"setState")};l.prototype.forceUpdate=function(t){this.updater.enqueueForceUpdate(this,t,"forceUpdate")};function P(){}P.prototype=l.prototype;function v(t,e,n){this.props=t,this.context=e,this.refs=w,this.updater=n||S}var T=v.prototype=new P;T.constructor=v;g(T,l.prototype);T.isPureReactComponent=!0;var C=Array.isArray;function E(){}var f={H:null,A:null,T:null,S:null},H=Object.prototype.hasOwnProperty;function R(t,e,n){var r=n.ref;return{$$typeof:y,type:t,key:e,ref:r!==void 0?r:null,props:n}}function z(t,e){return R(t.type,e,t.props)}function x(t){return typeof t==="object"&&t!==null&&t.$$typeof===y}function G(t){var e={"=":"=0",":":"=2"};return"$"+t.replace(/[=:]/g,function(n){return e[n]})}var d=/\/+/g;function a(t,e){return typeof t==="object"&&t!==null&&t.key!=null?G(""+t.key):e.toString(36)}function K(t){switch(t.status){case"fulfilled":return t.value;case"rejected":throw t.reason;default:switch(typeof t.status==="string"?t.then(E,E):(t.status="pending",t.then(function(e){t.status==="pending"&&(t.status="fulfilled",t.value=e)},function(e){t.status==="pending"&&(t.status="rejected",t.reason=e)})),t.status){case"fulfilled":return t.value;case"rejected":throw t.reason}}throw t}function p(t,e,n,r,o){var u=typeof t;if(u==="undefined"||u==="boolean")t=null;var s=!1;if(t===null)s=!0;else switch(u){case"bigint":case"string":case"number":s=!0;break;case"object":switch(t.$$typeof){case y:case $:s=!0;break;case h:return s=t._init,p(s(t._payload),e,n,r,o)}}if(s)return o=o(t),s=r===""?"."+a(t,0):r,C(o)?(n="",s!=null&&(n=s.replace(d,"$&/")+"/"),p(o,e,n,"",function(O){return O})):o!=null&&(x(o)&&(o=z(o,n+(o.key==null||t&&t.key===o.key?"":(""+o.key).replace(d,"$&/")+"/")+s)),e.push(o)),1;s=0;var c=r===""?".":r+":";if(C(t))for(var i=0;i<t.length;i++)r=t[i],u=c+a(r,i),s+=p(r,e,n,u,o);else if(i=q(t),typeof i==="function")for(t=i.call(t),i=0;!(r=t.next()).done;)r=r.value,u=c+a(r,i++),s+=p(r,e,n,u,o);else if(u==="object"){if(typeof t.then==="function")return p(K(t),e,n,r,o);throw e=String(t),Error("Objects are not valid as a React child (found: "+(e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)+"). If you meant to render a collection of children, use an array instead.")}return s}function _(t,e,n){if(t==null)return t;var r=[],o=0;return p(t,r,"","",function(u){return e.call(n,u,o++)}),r}function B(t){if(t._status===-1){var e=t._result;e=e(),e.then(function(n){if(t._status===0||t._status===-1)t._status=1,t._result=n},function(n){if(t._status===0||t._status===-1)t._status=2,t._result=n}),t._status===-1&&(t._status=0,t._result=e)}if(t._status===1)return t._result.default;throw t._result}var A=typeof reportError==="function"?reportError:function(t){if(typeof window==="object"&&typeof window.ErrorEvent==="function"){var e=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof t==="object"&&t!==null&&typeof t.message==="string"?String(t.message):String(t),error:t});if(!window.dispatchEvent(e))return}else if(typeof process==="object"&&typeof process.emit==="function"){process.emit("uncaughtException",t);return}console.error(t)},W={map:_,forEach:function(t,e,n){_(t,function(){e.apply(this,arguments)},n)},count:function(t){var e=0;return _(t,function(){e++}),e},toArray:function(t){return _(t,function(e){return e})||[]},only:function(t){if(!x(t))throw Error("React.Children.only expected to receive a single React element child.");return t}};Q.Activity=D;Q.Children=W;Q.Component=l;Q.Fragment=I;Q.Profiler=M;Q.PureComponent=v;Q.StrictMode=N;Q.Suspense=U;Q.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=f;Q.__COMPILER_RUNTIME={__proto__:null,c:function(t){return f.H.useMemoCache(t)}};Q.cache=function(t){return function(){return t.apply(null,arguments)}};Q.cacheSignal=function(){return null};Q.cloneElement=function(t,e,n){if(t===null||t===void 0)throw Error("The argument must be a React element, but you passed "+t+".");var r=g({},t.props),o=t.key;if(e!=null)for(u in e.key!==void 0&&(o=""+e.key),e)!H.call(e,u)||u==="key"||u==="__self"||u==="__source"||u==="ref"&&e.ref===void 0||(r[u]=e[u]);var u=arguments.length-2;if(u===1)r.children=n;else if(1<u){for(var s=Array(u),c=0;c<u;c++)s[c]=arguments[c+2];r.children=s}return R(t.type,o,r)};Q.createContext=function(t){return t={$$typeof:L,_currentValue:t,_currentValue2:t,_threadCount:0,Provider:null,Consumer:null},t.Provider=t,t.Consumer={$$typeof:Y,_context:t},t};Q.createElement=function(t,e,n){var r,o={},u=null;if(e!=null)for(r in e.key!==void 0&&(u=""+e.key),e)H.call(e,r)&&r!=="key"&&r!=="__self"&&r!=="__source"&&(o[r]=e[r]);var s=arguments.length-2;if(s===1)o.children=n;else if(1<s){for(var c=Array(s),i=0;i<s;i++)c[i]=arguments[i+2];o.children=c}if(t&&t.defaultProps)for(r in s=t.defaultProps,s)o[r]===void 0&&(o[r]=s[r]);return R(t,u,o)};Q.createRef=function(){return{current:null}};Q.forwardRef=function(t){return{$$typeof:k,render:t}};Q.isValidElement=x;Q.lazy=function(t){return{$$typeof:h,_payload:{_status:-1,_result:t},_init:B}};Q.memo=function(t,e){return{$$typeof:b,type:t,compare:e===void 0?null:e}};Q.startTransition=function(t){var e=f.T,n={};f.T=n;try{var r=t(),o=f.S;o!==null&&o(n,r),typeof r==="object"&&r!==null&&typeof r.then==="function"&&r.then(E,A)}catch(u){A(u)}finally{e!==null&&n.types!==null&&(e.types=n.types),f.T=e}};Q.unstable_useCacheRefresh=function(){return f.H.useCacheRefresh()};Q.use=function(t){return f.H.use(t)};Q.useActionState=function(t,e,n){return f.H.useActionState(t,e,n)};Q.useCallback=function(t,e){return f.H.useCallback(t,e)};Q.useContext=function(t){return f.H.useContext(t)};Q.useDebugValue=function(){};Q.useDeferredValue=function(t,e){return f.H.useDeferredValue(t,e)};Q.useEffect=function(t,e){return f.H.useEffect(t,e)};Q.useEffectEvent=function(t){return f.H.useEffectEvent(t)};Q.useId=function(){return f.H.useId()};Q.useImperativeHandle=function(t,e,n){return f.H.useImperativeHandle(t,e,n)};Q.useInsertionEffect=function(t,e){return f.H.useInsertionEffect(t,e)};Q.useLayoutEffect=function(t,e){return f.H.useLayoutEffect(t,e)};Q.useMemo=function(t,e){return f.H.useMemo(t,e)};Q.useOptimistic=function(t,e){return f.H.useOptimistic(t,e)};Q.useReducer=function(t,e,n){return f.H.useReducer(t,e,n)};Q.useRef=function(t){return f.H.useRef(t)};Q.useState=function(t){return f.H.useState(t)};Q.useSyncExternalStore=function(t,e,n){return f.H.useSyncExternalStore(t,e,n)};Q.useTransition=function(){return f.H.useTransition()};Q.version="19.2.4"});
|
|
2
|
+
export{Lt as zX};
|