@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
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{$5 as hr,J5 as L,K5 as Wr,L5 as Yr,M5 as jr,N5 as $t,O5 as Ht,P5 as Rr,Q5 as Br,R5 as dt,S5 as Jr,T5 as Xr,U5 as at,V5 as M,W5 as Fr,X5 as Nr,Y5 as Mr,Z5 as Ur,_5 as wr,a6 as ar,b6 as lr,c6 as Qr,d6 as Zr}from"./cli-0.1.11-fveg0t77.mjs";import{e6 as et}from"./cli-0.1.11-7t04gqx2.mjs";import{una as br}from"./cli-0.1.11-bhqwqe2w.mjs";import"./cli-0.1.11-0qwee9gy.mjs";import"./cli-0.1.11-23qqxmk4.mjs";import{Ana as Ft,Cna as He}from"./cli-0.1.11-e7gjxknm.mjs";import{Hna as Dr}from"./cli-0.1.11-10nmrfsz.mjs";import{Jna as qr}from"./cli-0.1.11-m0aaey0g.mjs";import{Kna as ur}from"./cli-0.1.11-4xsg15d1.mjs";import"./cli-0.1.11-n23d2wej.mjs";import{Mna as dr}from"./cli-0.1.11-4bn5ap1n.mjs";import{Pna as p}from"./cli-0.1.11-yrfxpjhr.mjs";var V=p((se)=>{Object.defineProperty(se,"__esModule",{value:!0});se.resolveHttpAuthSchemeConfig=se.defaultSigninHttpAuthSchemeProvider=se.defaultSigninHttpAuthSchemeParametersProvider=void 0;var Nt=L(),H=Ft(),Mt=async(e,t,r)=>{return{operation:(0,H.getSmithyContext)(t).operation,region:await(0,H.normalizeProvider)(e.region)()||(()=>{throw Error("expected `region` to be configured for `aws.auth#sigv4`")})()}};se.defaultSigninHttpAuthSchemeParametersProvider=Mt;function Ut(e){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"signin",region:e.region},propertiesExtractor:(t,r)=>({signingProperties:{config:t,context:r}})}}function wt(e){return{schemeId:"smithy.api#noAuth"}}var ht=(e)=>{let t=[];switch(e.operation){case"CreateOAuth2Token":{t.push(wt(e));break}default:t.push(Ut(e))}return t};se.defaultSigninHttpAuthSchemeProvider=ht;var xt=(e)=>{let t=(0,Nt.resolveAwsSdkSigV4Config)(e);return Object.assign(t,{authSchemePreference:(0,H.normalizeProvider)(e.authSchemePreference??[])})};se.resolveHttpAuthSchemeConfig=xt});var ye=p((Ee)=>{Object.defineProperty(Ee,"__esModule",{value:!0});Ee.ruleSet=void 0;var ve="required",o="fn",n="argv",c="ref",ne=!0,ie="isSet",y="booleanEquals",I="error",E="endpoint",l="tree",N="PartitionResult",z="stringEquals",ue={[ve]:!0,default:!1,type:"boolean"},de={[ve]:!1,type:"string"},ae={[c]:"Endpoint"},A={[o]:y,[n]:[{[c]:"UseFIPS"},!0]},W={[o]:y,[n]:[{[c]:"UseDualStack"},!0]},s={},Y={[o]:"getAttr",[n]:[{[c]:N},"name"]},R={[o]:y,[n]:[{[c]:"UseFIPS"},!1]},F={[o]:y,[n]:[{[c]:"UseDualStack"},!1]},le={[o]:"getAttr",[n]:[{[c]:N},"supportsFIPS"]},pe={[o]:y,[n]:[!0,{[o]:"getAttr",[n]:[{[c]:N},"supportsDualStack"]}]},ce=[{[c]:"Region"}],Gt={version:"1.0",parameters:{UseDualStack:ue,UseFIPS:ue,Endpoint:de,Region:de},rules:[{conditions:[{[o]:ie,[n]:[ae]}],rules:[{conditions:[A],error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:I},{rules:[{conditions:[W],error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:I},{endpoint:{url:ae,properties:s,headers:s},type:E}],type:l}],type:l},{rules:[{conditions:[{[o]:ie,[n]:ce}],rules:[{conditions:[{[o]:"aws.partition",[n]:ce,assign:N}],rules:[{conditions:[{[o]:z,[n]:[Y,"aws"]},R,F],endpoint:{url:"https://{Region}.signin.aws.amazon.com",properties:s,headers:s},type:E},{conditions:[{[o]:z,[n]:[Y,"aws-cn"]},R,F],endpoint:{url:"https://{Region}.signin.amazonaws.cn",properties:s,headers:s},type:E},{conditions:[{[o]:z,[n]:[Y,"aws-us-gov"]},R,F],endpoint:{url:"https://{Region}.signin.amazonaws-us-gov.com",properties:s,headers:s},type:E},{conditions:[A,W],rules:[{conditions:[{[o]:y,[n]:[ne,le]},pe],rules:[{endpoint:{url:"https://signin-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:s,headers:s},type:E}],type:l},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:I}],type:l},{conditions:[A,F],rules:[{conditions:[{[o]:y,[n]:[le,ne]}],rules:[{endpoint:{url:"https://signin-fips.{Region}.{PartitionResult#dnsSuffix}",properties:s,headers:s},type:E}],type:l},{error:"FIPS is enabled but this partition does not support FIPS",type:I}],type:l},{conditions:[R,W],rules:[{conditions:[pe],rules:[{endpoint:{url:"https://signin.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:s,headers:s},type:E}],type:l},{error:"DualStack is enabled but this partition does not support DualStack",type:I}],type:l},{endpoint:{url:"https://signin.{Region}.{PartitionResult#dnsSuffix}",properties:s,headers:s},type:E}],type:l}],type:l},{error:"Invalid Configuration: Missing Region",type:I}],type:l}]};Ee.ruleSet=Gt});var Ie=p((Pe)=>{Object.defineProperty(Pe,"__esModule",{value:!0});Pe.defaultEndpointResolver=void 0;var Lt=Ht(),j=$t(),Vt=ye(),zt=new j.EndpointCache({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS"]}),At=(e,t={})=>{return zt.get(e,()=>(0,j.resolveEndpoint)(Vt.ruleSet,{endpointParams:e,logger:t.logger}))};Pe.defaultEndpointResolver=At;j.customEndpointFunctions.aws=Lt.awsEndpointFunctions});var U=p((J)=>{Object.defineProperty(J,"__esModule",{value:!0});J.SigninServiceException=J.__ServiceException=void 0;var qe=M();Object.defineProperty(J,"__ServiceException",{enumerable:!0,get:function(){return qe.ServiceException}});class B extends qe.ServiceException{constructor(e){super(e);Object.setPrototypeOf(this,B.prototype)}}J.SigninServiceException=B});var k=p((be)=>{Object.defineProperty(be,"__esModule",{value:!0});be.ValidationException=be.TooManyRequestsError=be.InternalServerException=be.AccessDeniedException=void 0;var w=U();class X extends w.SigninServiceException{name="AccessDeniedException";$fault="client";error;constructor(e){super({name:"AccessDeniedException",$fault:"client",...e});Object.setPrototypeOf(this,X.prototype),this.error=e.error}}be.AccessDeniedException=X;class Q extends w.SigninServiceException{name="InternalServerException";$fault="server";error;constructor(e){super({name:"InternalServerException",$fault:"server",...e});Object.setPrototypeOf(this,Q.prototype),this.error=e.error}}be.InternalServerException=Q;class Z extends w.SigninServiceException{name="TooManyRequestsError";$fault="client";error;constructor(e){super({name:"TooManyRequestsError",$fault:"client",...e});Object.setPrototypeOf(this,Z.prototype),this.error=e.error}}be.TooManyRequestsError=Z;class K extends w.SigninServiceException{name="ValidationException";$fault="client";error;constructor(e){super({name:"ValidationException",$fault:"client",...e});Object.setPrototypeOf(this,K.prototype),this.error=e.error}}be.ValidationException=K});var C=p((We)=>{Object.defineProperty(We,"__esModule",{value:!0});We.CreateOAuth2Token$=We.CreateOAuth2TokenResponseBody$=We.CreateOAuth2TokenResponse$=We.CreateOAuth2TokenRequestBody$=We.CreateOAuth2TokenRequest$=We.AccessToken$=We.errorTypeRegistries=We.ValidationException$=We.TooManyRequestsError$=We.InternalServerException$=We.AccessDeniedException$=We.SigninServiceException$=void 0;var Bt="AccessDeniedException",Jt="AccessToken",Xt="CreateOAuth2Token",Qt="CreateOAuth2TokenRequest",Zt="CreateOAuth2TokenRequestBody",Kt="CreateOAuth2TokenResponseBody",kt="CreateOAuth2TokenResponse",Tt="InternalServerException",mt="RefreshToken",Ct="TooManyRequestsError",_t="ValidationException",Fe="accessKeyId",Ne="accessToken",T="client",Me="clientId",Ue="codeVerifier",er="code",S="error",we="expiresIn",he="grantType",tr="http",m="httpError",xe="idToken",u="jsonName",x="message",h="refreshToken",ge="redirectUri",Le="smithy.ts.sdk.synthetic.com.amazonaws.signin",fe="secretAccessKey",Ge="sessionToken",rr="server",sr="tokenInput",or="tokenOutput",$e="tokenType",d="com.amazonaws.signin",Ve=He(),g=k(),nr=U(),ze=Ve.TypeRegistry.for(Le);We.SigninServiceException$=[-3,Le,"SigninServiceException",0,[],[]];ze.registerError(We.SigninServiceException$,nr.SigninServiceException);var q=Ve.TypeRegistry.for(d);We.AccessDeniedException$=[-3,d,Bt,{[S]:T},[S,x],[0,0],2];q.registerError(We.AccessDeniedException$,g.AccessDeniedException);We.InternalServerException$=[-3,d,Tt,{[S]:rr,[m]:500},[S,x],[0,0],2];q.registerError(We.InternalServerException$,g.InternalServerException);We.TooManyRequestsError$=[-3,d,Ct,{[S]:T,[m]:429},[S,x],[0,0],2];q.registerError(We.TooManyRequestsError$,g.TooManyRequestsError);We.ValidationException$=[-3,d,_t,{[S]:T,[m]:400},[S,x],[0,0],2];q.registerError(We.ValidationException$,g.ValidationException);We.errorTypeRegistries=[ze,q];var Ae=[0,d,mt,8,0];We.AccessToken$=[3,d,Jt,8,[Fe,fe,Ge],[[0,{[u]:Fe}],[0,{[u]:fe}],[0,{[u]:Ge}]],3];We.CreateOAuth2TokenRequest$=[3,d,Qt,0,[sr],[[()=>We.CreateOAuth2TokenRequestBody$,16]],1];We.CreateOAuth2TokenRequestBody$=[3,d,Zt,0,[Me,he,er,ge,Ue,h],[[0,{[u]:Me}],[0,{[u]:he}],0,[0,{[u]:ge}],[0,{[u]:Ue}],[()=>Ae,{[u]:h}]],2];We.CreateOAuth2TokenResponse$=[3,d,kt,0,[or],[[()=>We.CreateOAuth2TokenResponseBody$,16]],1];We.CreateOAuth2TokenResponseBody$=[3,d,Kt,0,[Ne,$e,we,h,xe],[[()=>We.AccessToken$,{[u]:Ne}],[0,{[u]:$e}],[1,{[u]:we}],[()=>Ae,{[u]:h}],[0,{[u]:xe}]],4];We.CreateOAuth2Token$=[9,d,Xt,{[tr]:["POST","/v1/token",200]},()=>We.CreateOAuth2TokenRequest$,()=>We.CreateOAuth2TokenResponse$]});var st=p((tt)=>{Object.defineProperty(tt,"__esModule",{value:!0});tt.getRuntimeConfig=void 0;var pr=L(),cr=ar(),vr=et(),Er=M(),Sr=ur(),Ce=lr(),_e=dr(),yr=V(),Pr=Ie(),Or=C(),Ir=(e)=>{return{apiVersion:"2023-01-01",base64Decoder:e?.base64Decoder??Ce.fromBase64,base64Encoder:e?.base64Encoder??Ce.toBase64,disableHostPrefix:e?.disableHostPrefix??!1,endpointProvider:e?.endpointProvider??Pr.defaultEndpointResolver,extensions:e?.extensions??[],httpAuthSchemeProvider:e?.httpAuthSchemeProvider??yr.defaultSigninHttpAuthSchemeProvider,httpAuthSchemes:e?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:(t)=>t.getIdentityProvider("aws.auth#sigv4"),signer:new pr.AwsSdkSigV4Signer},{schemeId:"smithy.api#noAuth",identityProvider:(t)=>t.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),signer:new vr.NoAuthSigner}],logger:e?.logger??new Er.NoOpLogger,protocol:e?.protocol??cr.AwsRestJsonProtocol,protocolSettings:e?.protocolSettings??{defaultNamespace:"com.amazonaws.signin",errorTypeRegistries:Or.errorTypeRegistries,version:"2023-01-01",serviceTarget:"Signin"},serviceId:e?.serviceId??"Signin",urlParser:e?.urlParser??Sr.parseUrl,utf8Decoder:e?.utf8Decoder??_e.fromUtf8,utf8Encoder:e?.utf8Encoder??_e.toUtf8}};tt.getRuntimeConfig=Ir});var ct=p((lt)=>{Object.defineProperty(lt,"__esModule",{value:!0});lt.getRuntimeConfig=void 0;var xr=Fr(),gr=xr.__importDefault(Nr()),fr=Dr(),Gr=L(),ot=Mr(),f=dt(),$r=Ur(),nt=at(),P=br(),it=qr(),ut=M(),Hr=wr(),Lr=hr(),Vr=Rr(),zr=st(),Ar=(e)=>{(0,ut.emitWarningIfUnsupportedVersion)(process.version);let t=(0,Lr.resolveDefaultsModeConfig)(e),r=()=>t().then(ut.loadConfigsForDefaultMode),a=(0,zr.getRuntimeConfig)(e);(0,fr.emitWarningIfUnsupportedVersion)(process.version);let i={profile:e?.profile,logger:a.logger};return{...a,...e,runtime:"node",defaultsMode:t,authSchemePreference:e?.authSchemePreference??(0,P.loadConfig)(Gr.NODE_AUTH_SCHEME_PREFERENCE_OPTIONS,i),bodyLengthChecker:e?.bodyLengthChecker??Hr.calculateBodyLength,defaultUserAgentProvider:e?.defaultUserAgentProvider??(0,ot.createDefaultUserAgentProvider)({serviceId:a.serviceId,clientVersion:gr.default.version}),maxAttempts:e?.maxAttempts??(0,P.loadConfig)(nt.NODE_MAX_ATTEMPT_CONFIG_OPTIONS,e),region:e?.region??(0,P.loadConfig)(f.NODE_REGION_CONFIG_OPTIONS,{...f.NODE_REGION_CONFIG_FILE_OPTIONS,...i}),requestHandler:it.NodeHttpHandler.create(e?.requestHandler??r),retryMode:e?.retryMode??(0,P.loadConfig)({...nt.NODE_RETRY_MODE_CONFIG_OPTIONS,default:async()=>(await r()).retryMode||Vr.DEFAULT_RETRY_MODE},e),sha256:e?.sha256??$r.Hash.bind(null,"sha256"),streamCollector:e?.streamCollector??it.streamCollector,useDualstackEndpoint:e?.useDualstackEndpoint??(0,P.loadConfig)(f.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS,i),useFipsEndpoint:e?.useFipsEndpoint??(0,P.loadConfig)(f.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS,i),userAgentAppId:e?.userAgentAppId??(0,P.loadConfig)(ot.NODE_APP_ID_CONFIG_OPTIONS,i)}};lt.getRuntimeConfig=Ar});var Ss=p((v)=>{var vt=Wr(),Kr=Yr(),kr=jr(),Et=Br(),Tr=dt(),_=et(),mr=He(),Cr=Jr(),It=Xr(),St=at(),O=M(),yt=V(),_r=ct(),Pt=Qr(),Ot=Zr(),D=C(),G=k(),es=U(),ts=(e)=>{return Object.assign(e,{useDualstackEndpoint:e.useDualstackEndpoint??!1,useFipsEndpoint:e.useFipsEndpoint??!1,defaultSigningName:"signin"})},rs={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}},ss=(e)=>{let{httpAuthSchemes:t,httpAuthSchemeProvider:r,credentials:a}=e;return{setHttpAuthScheme(i){let b=t.findIndex(($)=>$.schemeId===i.schemeId);if(b===-1)t.push(i);else t.splice(b,1,i)},httpAuthSchemes(){return t},setHttpAuthSchemeProvider(i){r=i},httpAuthSchemeProvider(){return r},setCredentials(i){a=i},credentials(){return a}}},os=(e)=>{return{httpAuthSchemes:e.httpAuthSchemes(),httpAuthSchemeProvider:e.httpAuthSchemeProvider(),credentials:e.credentials()}},ns=(e,t)=>{let r=Object.assign(Pt.getAwsRegionExtensionConfiguration(e),O.getDefaultExtensionConfiguration(e),Ot.getHttpHandlerExtensionConfiguration(e),ss(e));return t.forEach((a)=>a.configure(r)),Object.assign(e,Pt.resolveAwsRegionExtensionConfiguration(r),O.resolveDefaultRuntimeConfig(r),Ot.resolveHttpHandlerRuntimeConfig(r),os(r))};class ee extends O.Client{config;constructor(...[e]){let t=_r.getRuntimeConfig(e||{});super(t);this.initConfig=t;let r=ts(t),a=Et.resolveUserAgentConfig(r),i=St.resolveRetryConfig(a),b=Tr.resolveRegionConfig(i),$=vt.resolveHostHeaderConfig(b),qt=It.resolveEndpointConfig($),Dt=yt.resolveHttpAuthSchemeConfig(qt),bt=ns(Dt,e?.extensions||[]);this.config=bt,this.middlewareStack.use(mr.getSchemaSerdePlugin(this.config)),this.middlewareStack.use(Et.getUserAgentPlugin(this.config)),this.middlewareStack.use(St.getRetryPlugin(this.config)),this.middlewareStack.use(Cr.getContentLengthPlugin(this.config)),this.middlewareStack.use(vt.getHostHeaderPlugin(this.config)),this.middlewareStack.use(Kr.getLoggerPlugin(this.config)),this.middlewareStack.use(kr.getRecursionDetectionPlugin(this.config)),this.middlewareStack.use(_.getHttpAuthSchemeEndpointRuleSetPlugin(this.config,{httpAuthSchemeParametersProvider:yt.defaultSigninHttpAuthSchemeParametersProvider,identityProviderConfigProvider:async(Rt)=>new _.DefaultIdentityProviderConfig({"aws.auth#sigv4":Rt.credentials})})),this.middlewareStack.use(_.getHttpSigningPlugin(this.config))}destroy(){super.destroy()}}class te extends O.Command.classBuilder().ep(rs).m(function(e,t,r,a){return[It.getEndpointPlugin(r,e.getEndpointParameterInstructions())]}).s("Signin","CreateOAuth2Token",{}).n("SigninClient","CreateOAuth2TokenCommand").sc(D.CreateOAuth2Token$).build(){}var is={CreateOAuth2TokenCommand:te};class re extends ee{}O.createAggregatedClient(is,re);var us={AUTHCODE_EXPIRED:"AUTHCODE_EXPIRED",INSUFFICIENT_PERMISSIONS:"INSUFFICIENT_PERMISSIONS",INVALID_REQUEST:"INVALID_REQUEST",SERVER_ERROR:"server_error",TOKEN_EXPIRED:"TOKEN_EXPIRED",USER_CREDENTIALS_CHANGED:"USER_CREDENTIALS_CHANGED"};v.$Command=O.Command;v.__Client=O.Client;v.SigninServiceException=es.SigninServiceException;v.CreateOAuth2TokenCommand=te;v.OAuth2ErrorCode=us;v.Signin=re;v.SigninClient=ee;Object.prototype.hasOwnProperty.call(D,"__proto__")&&!Object.prototype.hasOwnProperty.call(v,"__proto__")&&Object.defineProperty(v,"__proto__",{enumerable:!0,value:D.__proto__});Object.keys(D).forEach(function(e){if(e!=="default"&&!Object.prototype.hasOwnProperty.call(v,e))v[e]=D[e]});Object.prototype.hasOwnProperty.call(G,"__proto__")&&!Object.prototype.hasOwnProperty.call(v,"__proto__")&&Object.defineProperty(v,"__proto__",{enumerable:!0,value:G.__proto__});Object.keys(G).forEach(function(e){if(e!=="default"&&!Object.prototype.hasOwnProperty.call(v,e))v[e]=G[e]})});export default Ss();
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{una as m}from"./cli-0.1.11-bhqwqe2w.mjs";import"./cli-0.1.11-0qwee9gy.mjs";import{Kna as g}from"./cli-0.1.11-4xsg15d1.mjs";import{Lna as k}from"./cli-0.1.11-n23d2wej.mjs";import{Rna as u,Sna as M}from"./cli-0.1.11-yrfxpjhr.mjs";function j(z){return new Promise((G,U)=>{let K=d.request({method:"GET",...z,hostname:z.hostname?.replace(/^\[(.+)\]$/,"$1")});K.on("error",(Q)=>{U(Object.assign(new Z.ProviderError("Unable to connect to instance metadata service"),Q)),K.destroy()}),K.on("timeout",()=>{U(new Z.ProviderError("TimeoutError from instance metadata service")),K.destroy()}),K.on("response",(Q)=>{let{statusCode:X=400}=Q;if(X<200||300<=X)U(Object.assign(new Z.ProviderError("Error response received from instance metadata service"),{statusCode:X})),K.destroy();let w=[];Q.on("data",($)=>{w.push($)}),Q.on("end",()=>{G(p.Buffer.concat(w)),K.destroy()})}),K.end()})}var Z,c,p,d,V,l,T=(z)=>Boolean(z)&&typeof z==="object"&&typeof z.AccessKeyId==="string"&&typeof z.SecretAccessKey==="string"&&typeof z.Token==="string"&&typeof z.Expiration==="string",b=(z)=>({accessKeyId:z.AccessKeyId,secretAccessKey:z.SecretAccessKey,sessionToken:z.Token,expiration:new Date(z.Expiration),...z.AccountId&&{accountId:z.AccountId}}),F=1000,v=0,h=({maxRetries:z=v,timeout:G=F})=>({maxRetries:z,timeout:G}),N=(z,G)=>{let U=z();for(let K=0;K<G;K++)U=U.catch(z);return U},L="AWS_CONTAINER_CREDENTIALS_FULL_URI",_="AWS_CONTAINER_CREDENTIALS_RELATIVE_URI",P="AWS_CONTAINER_AUTHORIZATION_TOKEN",a=(z={})=>{let{timeout:G,maxRetries:U}=h(z);return()=>N(async()=>{let K=await i({logger:z.logger}),Q=JSON.parse(await s(G,K));if(!T(Q))throw new Z.CredentialsProviderError("Invalid response received from instance metadata service.",{logger:z.logger});return b(Q)},U)},s=async(z,G)=>{if(process.env[P])G.headers={...G.headers,Authorization:process.env[P]};return(await j({...G,timeout:z})).toString()},n="169.254.170.2",o,t,i=async({logger:z})=>{if(process.env[_])return{hostname:n,path:process.env[_]};if(process.env[L]){let G=c.parse(process.env[L]);if(!G.hostname||!(G.hostname in o))throw new Z.CredentialsProviderError(`${G.hostname} is not a valid container metadata service hostname`,{tryNextLink:!1,logger:z});if(!G.protocol||!(G.protocol in t))throw new Z.CredentialsProviderError(`${G.protocol} is not a valid container metadata service protocol`,{tryNextLink:!1,logger:z});return{...G,port:G.port?parseInt(G.port,10):void 0}}throw new Z.CredentialsProviderError(`The container metadata credential provider cannot be used unless the ${_} or ${L} environment variable is set`,{tryNextLink:!1,logger:z})},q,S=void 0,r="AWS_EC2_METADATA_SERVICE_ENDPOINT",e="ec2_metadata_service_endpoint",zz,A,Gz="AWS_EC2_METADATA_SERVICE_ENDPOINT_MODE",Kz="ec2_metadata_service_endpoint_mode",Qz,x=async()=>l.parseUrl(await Uz()||await Xz()),Uz=async()=>V.loadConfig(zz)(),Xz=async()=>{let z=await V.loadConfig(Qz)();switch(z){case A.IPv4:return S.IPv4;case A.IPv6:return S.IPv6;default:throw Error(`Unsupported endpoint mode: ${z}. Select from ${Object.values(A)}`)}},Zz=300,$z=300,Hz="https://docs.aws.amazon.com/sdkref/latest/guide/feature-static-credentials.html",I=(z,G)=>{let U=Zz+Math.floor(Math.random()*$z),K=new Date(Date.now()+U*1000);G.warn(`Attempting credential expiration extension due to a credential service availability issue. A refresh of these credentials will be attempted after ${new Date(K)}.
|
|
2
|
-
For more information, please visit: `+Hz);let Q=z.originalExpiration??z.expiration;return{...z,...Q?{originalExpiration:Q}:{},expiration:K}},Jz=(z,G={})=>{let U=G?.logger||console,K;return async()=>{let Q;try{if(Q=await z(),Q.expiration&&Q.expiration.getTime()<Date.now())Q=I(Q,U)}catch(X){if(K)U.warn("Credential renew failed: ",X),Q=I(K,U);else throw X}return K=Q,Q}},E="/latest/meta-data/iam/security-credentials/",Yz="/latest/api/token",B="AWS_EC2_METADATA_V1_DISABLED",y="ec2_metadata_v1_disabled",C="x-aws-ec2-metadata-token",wz=(z={})=>Jz(Dz(z),{logger:z.logger}),Dz=(z={})=>{let G=!1,{logger:U,profile:K}=z,{timeout:Q,maxRetries:X}=h(z),w=async($,D)=>{if(G||D.headers?.[C]==null){let H=!1,J=!1,f=await V.loadConfig({environmentVariableSelector:(Y)=>{let W=Y[B];if(J=!!W&&W!=="false",W===void 0)throw new Z.CredentialsProviderError(`${B} not set in env, checking config file next.`,{logger:z.logger});return J},configFileSelector:(Y)=>{let W=Y[y];return H=!!W&&W!=="false",H},default:!1},{profile:K})();if(z.ec2MetadataV1Disabled||f){let Y=[];if(z.ec2MetadataV1Disabled)Y.push("credential provider initialization (runtime option ec2MetadataV1Disabled)");if(H)Y.push(`config file profile (${y})`);if(J)Y.push(`process environment variable (${B})`);throw new q(`AWS EC2 Metadata v1 fallback has been blocked by AWS SDK configuration in the following: [${Y.join(", ")}].`)}}let R=(await N(async()=>{let H;try{H=await Az(D)}catch(J){if(J.statusCode===401)G=!1;throw J}return H},$)).trim();return N(async()=>{let H;try{H=await Oz(R,D,z)}catch(J){if(J.statusCode===401)G=!1;throw J}return H},$)};return async()=>{let $=await x();if(G)return U?.debug("AWS SDK Instance Metadata","using v1 fallback (no token fetch)"),w(X,{...$,timeout:Q});else{let D;try{D=(await Wz({...$,timeout:Q})).toString()}catch(O){if(O?.statusCode===400)throw Object.assign(O,{message:"EC2 Metadata token request returned error"});else if(O.message==="TimeoutError"||[403,404,405].includes(O.statusCode))G=!0;return U?.debug("AWS SDK Instance Metadata","using v1 fallback (initial)"),w(X,{...$,timeout:Q})}return w(X,{...$,headers:{[C]:D},timeout:Q})}}},Wz=async(z)=>j({...z,path:Yz,method:"PUT",headers:{"x-aws-ec2-metadata-token-ttl-seconds":"21600"}}),Az=async(z)=>(await j({...z,path:E})).toString(),Oz=async(z,G,U)=>{let K=JSON.parse((await j({...G,path:E+z})).toString());if(!T(K))throw new Z.CredentialsProviderError("Invalid response received from instance metadata service.",{logger:U.logger});return b(K)},Sz,jz,Lz,_z,Bz,Nz,Pz,Mz,Vz,hz;var qz=u(()=>{Z=k(),c=M("url"),p=M("buffer"),d=M("http"),V=m(),l=g();o={localhost:!0,"127.0.0.1":!0},t={"http:":!0,"https:":!0};q=class q extends Z.CredentialsProviderError{tryNextLink;name="InstanceMetadataV1FallbackError";constructor(z,G=!0){super(z,G);this.tryNextLink=G,Object.setPrototypeOf(this,q.prototype)}};(function(z){z.IPv4="http://169.254.169.254",z.IPv6="http://[fd00:ec2::254]"})(S||(S={}));zz={environmentVariableSelector:(z)=>z[r],configFileSelector:(z)=>z[e],default:void 0};(function(z){z.IPv4="IPv4",z.IPv6="IPv6"})(A||(A={}));Qz={environmentVariableSelector:(z)=>z[Gz],configFileSelector:(z)=>z[Kz],default:A.IPv4};Sz=v,jz=F,Lz=P,_z=L,Bz=_,Nz=a,Pz=wz,Mz=x,Vz=j,hz=h});qz();export{hz as providerConfigFromInit,Vz as httpRequest,Mz as getInstanceMetadataEndpoint,Pz as fromInstanceMetadata,Nz as fromContainerMetadata,S as Endpoint,Bz as ENV_CMDS_RELATIVE_URI,_z as ENV_CMDS_FULL_URI,Lz as ENV_CMDS_AUTH_TOKEN,jz as DEFAULT_TIMEOUT,Sz as DEFAULT_MAX_RETRIES};export default {get providerConfigFromInit(){return hz},get httpRequest(){return Vz},get getInstanceMetadataEndpoint(){return Mz},get fromInstanceMetadata(){return Pz},get fromContainerMetadata(){return Nz},get Endpoint(){return S},get ENV_CMDS_RELATIVE_URI(){return Bz},get ENV_CMDS_FULL_URI(){return _z},get ENV_CMDS_AUTH_TOKEN(){return Lz},get DEFAULT_TIMEOUT(){return jz},get DEFAULT_MAX_RETRIES(){return Sz}};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{b as VZ,c as FQ,d as fQ,e as lJ,f as wQ,g as DQ,h as EQ,i as CQ}from"./cli-0.1.11-pr9jdfxt.mjs";import{j as dJ,k as jZ,m as MQ}from"./cli-0.1.11-p4eeg584.mjs";import"./cli-0.1.11-anegs86e.mjs";import{T as cJ,U as yQ,V as PQ,W as UQ,X as pJ,Y as uJ}from"./cli-0.1.11-v8j5bkfs.mjs";import"./cli-0.1.11-4px8nt5r.mjs";import{Cd as vJ,Ed as _Z}from"./cli-0.1.11-5hs4xyjq.mjs";import{Id as iJ,Ld as aZ}from"./cli-0.1.11-91mf8dfr.mjs";import{Td as KZ,Vd as YZ,Wd as XZ,Xd as gZ}from"./cli-0.1.11-4ggr81tw.mjs";import{$d as ZQ,Yd as OJ,Zd as BQ,_d as RQ,ae as ZJ,be as mJ}from"./cli-0.1.11-5vqj6k7m.mjs";import{ce as QZ,ee as HJ,fe as ZZ,ge as lZ}from"./cli-0.1.11-zdyddegg.mjs";import{je as $Z,ke as zZ,le as dZ}from"./cli-0.1.11-jj3s3dxd.mjs";import{of as sQ,pf as rQ,qf as eQ,rf as JZ,sf as uZ}from"./cli-0.1.11-w3ydpv9v.mjs";import{Lu as aQ,Mu as iQ,Pu as cZ,Rp as gQ,Sp as IZ,VH as oQ,dI as nQ,gI as pZ,gN as iZ,pH as tQ,wM as yJ}from"./cli-0.1.11-s8ygndzf.mjs";import{eP as IJ,fP as fZ}from"./cli-0.1.11-1bryv90w.mjs";import{pP as xQ,tP as FZ}from"./cli-0.1.11-5e45zda5.mjs";import"./cli-0.1.11-jjgjkqqv.mjs";import"./cli-0.1.11-r990p54m.mjs";import"./cli-0.1.11-70f778wy.mjs";import"./cli-0.1.11-weav8142.mjs";import"./cli-0.1.11-t7dc7fbj.mjs";import"./cli-0.1.11-vb5f7c3a.mjs";import{TQ as AQ,VQ as wZ}from"./cli-0.1.11-sma2xhvv.mjs";import"./cli-0.1.11-852v06g0.mjs";import"./cli-0.1.11-z4hb2mcd.mjs";import"./cli-0.1.11-mj78w4sp.mjs";import"./cli-0.1.11-qrq0sw0h.mjs";import"./cli-0.1.11-d4ahh3jz.mjs";import"./cli-0.1.11-wc9bay3d.mjs";import{oS as dQ,pS as LQ,qS as OQ,sS as _Q}from"./cli-0.1.11-rvk3t45h.mjs";import"./cli-0.1.11-0n77qn68.mjs";import"./cli-0.1.11-h02tyg8p.mjs";import"./cli-0.1.11-bvd2r7an.mjs";import"./cli-0.1.11-jr50ahcv.mjs";import"./cli-0.1.11-6zkfmcxp.mjs";import"./cli-0.1.11-jkrt4znb.mjs";import"./cli-0.1.11-424zgj5k.mjs";import"./cli-0.1.11-rj9ea3zn.mjs";import"./cli-0.1.11-mstxxz33.mjs";import"./cli-0.1.11-kghg51gb.mjs";import"./cli-0.1.11-fstfs72j.mjs";import"./cli-0.1.11-kk0qqs5v.mjs";import"./cli-0.1.11-x37jysc0.mjs";import"./cli-0.1.11-h762f6hr.mjs";import"./cli-0.1.11-50naxqgt.mjs";import"./cli-0.1.11-v6kwgrqc.mjs";import"./cli-0.1.11-16086k9e.mjs";import"./cli-0.1.11-bwpemkht.mjs";import"./cli-0.1.11-dcswnc8x.mjs";import"./cli-0.1.11-p22bdjhv.mjs";import"./cli-0.1.11-y4c6y87y.mjs";import"./cli-0.1.11-q58q9jqr.mjs";import"./cli-0.1.11-zb2sa3e2.mjs";import"./cli-0.1.11-3p2f194m.mjs";import"./cli-0.1.11-05ngjm8p.mjs";import"./cli-0.1.11-yv5pfq6n.mjs";import{K4 as gJ,M4 as aJ,O4 as lQ,R1 as uQ,U1 as vZ,c4 as BJ,d4 as MZ,i5 as SZ}from"./cli-0.1.11-qbcfg80y.mjs";import"./cli-0.1.11-b0jasw23.mjs";import"./cli-0.1.11-s6yfjcm5.mjs";import"./cli-0.1.11-sqqzwx4h.mjs";import"./cli-0.1.11-2w8d5vqb.mjs";import{G6 as OZ,p6 as QJ}from"./cli-0.1.11-d10nfa6g.mjs";import"./cli-0.1.11-h2hxx8ma.mjs";import"./cli-0.1.11-1xr9et85.mjs";import{Cba as pQ,N8 as bZ,Vba as mZ,o7 as _J,q7 as PZ,v8 as SQ,x7 as vQ,x8 as IQ,z7 as kZ,zba as cQ}from"./cli-0.1.11-v7bwjqf0.mjs";import"./cli-0.1.11-h7e4rkwk.mjs";import"./cli-0.1.11-7xr2ermy.mjs";import"./cli-0.1.11-7qpnfx56.mjs";import"./cli-0.1.11-vch8cn95.mjs";import{cfa as mQ,nfa as TZ}from"./cli-0.1.11-fag2wtke.mjs";import"./cli-0.1.11-nx8a99hz.mjs";import"./cli-0.1.11-ktwtyqmp.mjs";import{dga as w,ega as UZ}from"./cli-0.1.11-xwj7cmkj.mjs";import{Dga as u,Jga as qQ,bha as J,eha as NQ,hga as GQ,jga as yZ}from"./cli-0.1.11-vq5fvf9m.mjs";import{iha as HQ,qha as WQ,sha as RZ}from"./cli-0.1.11-d3exw047.mjs";import"./cli-0.1.11-e5ecf583.mjs";import{Vma as hZ,aja as RJ,gja as bQ}from"./cli-0.1.11-rrnr3ab1.mjs";import"./cli-0.1.11-98zcwng9.mjs";import{Sna as VQ}from"./cli-0.1.11-yrfxpjhr.mjs";hZ();TZ();vZ();cZ();SZ();mZ();NQ();kZ();qQ();bZ();aZ();pZ();iZ();dZ();IZ();lZ();uZ();gZ();mJ();import{hostname as tZ}from"os";import{randomUUID as YQ}from"crypto";OZ();mJ();_Z();var xZ="environments-2025-11-01",AZ=/^[a-zA-Z0-9_-]+$/;function g(K,$){if(!K||!AZ.test(K))throw Error(`Invalid ${$}: contains unsafe characters`);return K}class zJ extends Error{status;errorType;constructor(K,$,L){super(K);this.name="BridgeFatalError",this.status=$,this.errorType=L}}function $Q(K){function $(Q){K.onDebug?.(Q)}let L=0,N=100;function x(Q){let z={Authorization:`Bearer ${Q}`,"Content-Type":"application/json","anthropic-version":"2023-06-01","anthropic-beta":xZ,"x-environment-runner-version":K.runnerVersion},H=K.getTrustedDeviceToken?.();if(H)z["X-Trusted-Device-Token"]=H;return z}function m(){let Q=K.getAccessToken();if(!Q)throw Error(vJ);return Q}async function h(Q,z){let H=m(),X=await Q(H);if(X.status!==401)return X;if(!K.onAuth401)return $(`[bridge:api] ${z}: 401 received, no refresh handler`),X;if($(`[bridge:api] ${z}: 401 received, attempting token refresh`),await K.onAuth401(H)){$(`[bridge:api] ${z}: Token refreshed, retrying request`);let y=m(),o=await Q(y);if(o.status!==401)return o;$(`[bridge:api] ${z}: Retry after refresh also got 401`)}else $(`[bridge:api] ${z}: Token refresh failed`);return X}return{async registerBridgeEnvironment(Q){$(`[bridge:api] POST /v1/environments/bridge bridgeId=${Q.bridgeId}`);let z=await h((H)=>QJ.post(`${K.baseUrl}/v1/environments/bridge`,{machine_name:Q.machineName,directory:Q.dir,branch:Q.branch,git_repo_url:Q.gitRepoUrl,max_sessions:Q.maxSessions,metadata:{worker_type:Q.workerType},...Q.reuseEnvironmentId&&{environment_id:Q.reuseEnvironmentId}},{headers:x(H),timeout:15000,validateStatus:(X)=>X<500}),"Registration");return $J(z.status,z.data,"Registration"),$(`[bridge:api] POST /v1/environments/bridge -> ${z.status} environment_id=${z.data.environment_id}`),$(`[bridge:api] >>> ${OJ({machine_name:Q.machineName,directory:Q.dir,branch:Q.branch,git_repo_url:Q.gitRepoUrl,max_sessions:Q.maxSessions,metadata:{worker_type:Q.workerType}})}`),$(`[bridge:api] <<< ${OJ(z.data)}`),z.data},async pollForWork(Q,z,H,X){g(Q,"environmentId");let R=L;L=0;let y=await QJ.get(`${K.baseUrl}/v1/environments/${Q}/work/poll`,{headers:x(z),params:X!==void 0?{reclaim_older_than_ms:X}:void 0,timeout:1e4,signal:H,validateStatus:(o)=>o<500});if($J(y.status,y.data,"Poll"),!y.data){if(L=R+1,L===1||L%N===0)$(`[bridge:api] GET .../work/poll -> ${y.status} (no work, ${L} consecutive empty polls)`);return null}return $(`[bridge:api] GET .../work/poll -> ${y.status} workId=${y.data.id} type=${y.data.data?.type}${y.data.data?.id?` sessionId=${y.data.data.id}`:""}`),$(`[bridge:api] <<< ${OJ(y.data)}`),y.data},async acknowledgeWork(Q,z,H){g(Q,"environmentId"),g(z,"workId"),$(`[bridge:api] POST .../work/${z}/ack`);let X=await QJ.post(`${K.baseUrl}/v1/environments/${Q}/work/${z}/ack`,{},{headers:x(H),timeout:1e4,validateStatus:(R)=>R<500});$J(X.status,X.data,"Acknowledge"),$(`[bridge:api] POST .../work/${z}/ack -> ${X.status}`)},async stopWork(Q,z,H){g(Q,"environmentId"),g(z,"workId"),$(`[bridge:api] POST .../work/${z}/stop force=${H}`);let X=await h((R)=>QJ.post(`${K.baseUrl}/v1/environments/${Q}/work/${z}/stop`,{force:H},{headers:x(R),timeout:1e4,validateStatus:(y)=>y<500}),"StopWork");$J(X.status,X.data,"StopWork"),$(`[bridge:api] POST .../work/${z}/stop -> ${X.status}`)},async deregisterEnvironment(Q){g(Q,"environmentId"),$(`[bridge:api] DELETE /v1/environments/bridge/${Q}`);let z=await h((H)=>QJ.delete(`${K.baseUrl}/v1/environments/bridge/${Q}`,{headers:x(H),timeout:1e4,validateStatus:(X)=>X<500}),"Deregister");$J(z.status,z.data,"Deregister"),$(`[bridge:api] DELETE /v1/environments/bridge/${Q} -> ${z.status}`)},async archiveSession(Q){g(Q,"sessionId"),$(`[bridge:api] POST /v1/sessions/${Q}/archive`);let z=await h((H)=>QJ.post(`${K.baseUrl}/v1/sessions/${Q}/archive`,{},{headers:x(H),timeout:1e4,validateStatus:(X)=>X<500}),"ArchiveSession");if(z.status===409){$(`[bridge:api] POST /v1/sessions/${Q}/archive -> 409 (already archived)`);return}$J(z.status,z.data,"ArchiveSession"),$(`[bridge:api] POST /v1/sessions/${Q}/archive -> ${z.status}`)},async reconnectSession(Q,z){g(Q,"environmentId"),g(z,"sessionId"),$(`[bridge:api] POST /v1/environments/${Q}/bridge/reconnect session_id=${z}`);let H=await h((X)=>QJ.post(`${K.baseUrl}/v1/environments/${Q}/bridge/reconnect`,{session_id:z},{headers:x(X),timeout:1e4,validateStatus:(R)=>R<500}),"ReconnectSession");$J(H.status,H.data,"ReconnectSession"),$(`[bridge:api] POST .../bridge/reconnect -> ${H.status}`)},async heartbeatWork(Q,z,H){g(Q,"environmentId"),g(z,"workId"),$(`[bridge:api] POST .../work/${z}/heartbeat`);let X=await QJ.post(`${K.baseUrl}/v1/environments/${Q}/work/${z}/heartbeat`,{},{headers:x(H),timeout:1e4,validateStatus:(R)=>R<500});return $J(X.status,X.data,"Heartbeat"),$(`[bridge:api] POST .../work/${z}/heartbeat -> ${X.status} lease_extended=${X.data.lease_extended} state=${X.data.state}`),X.data},async sendPermissionResponseEvent(Q,z,H){g(Q,"sessionId"),$(`[bridge:api] POST /v1/sessions/${Q}/events type=${z.type}`);let X=await QJ.post(`${K.baseUrl}/v1/sessions/${Q}/events`,{events:[z]},{headers:x(H),timeout:1e4,validateStatus:(R)=>R<500});$J(X.status,X.data,"SendPermissionResponseEvent"),$(`[bridge:api] POST /v1/sessions/${Q}/events -> ${X.status}`),$(`[bridge:api] >>> ${OJ({events:[z]})}`),$(`[bridge:api] <<< ${OJ(X.data)}`)}}}function $J(K,$,L){if(K===200||K===204)return;let N=ZQ($),x=BZ($);switch(K){case 401:throw new zJ(`${L}: Authentication failed (401)${N?`: ${N}`:""}. ${vJ}`,401,x);case 403:throw new zJ(SJ(x)?"Remote Control session has expired. Please restart with `claude remote-control` or /remote-control.":`${L}: Access denied (403)${N?`: ${N}`:""}. Check your organization permissions.`,403,x);case 404:throw new zJ(N??`${L}: Not found (404). Remote Control may not be available for this organization.`,404,x);case 410:throw new zJ(N??"Remote Control session has expired. Please restart with `claude remote-control` or /remote-control.",410,x??"environment_expired");case 429:throw Error(`${L}: Rate limited (429). Polling too frequently.`);default:throw Error(`${L}: Failed with status ${K}${N?`: ${N}`:""}`)}}function SJ(K){if(!K)return!1;return K.includes("expired")||K.includes("lifetime")}function zQ(K){if(K.status!==403)return!1;return K.message.includes("external_poll_sessions")||K.message.includes("environments:manage")}function BZ(K){if(K&&typeof K==="object"){if("error"in K&&K.error&&typeof K.error==="object"&&"type"in K.error&&typeof K.error.type==="string")return K.error.type}return}NQ();PZ();UZ();yZ();_Q();wZ();FZ();fZ();RZ();mJ();function KQ(K){let $=new AbortController;function L(){$.abort(),$=new AbortController}function N(){let x=new AbortController,m=()=>x.abort();if(K.aborted||$.signal.aborted)return x.abort(),{signal:x.signal,cleanup:()=>{}};K.addEventListener("abort",m,{once:!0});let h=$.signal;return h.addEventListener("abort",m,{once:!0}),{signal:x.signal,cleanup:()=>{K.removeEventListener("abort",m),h.removeEventListener("abort",m)}}}return{signal:N,wake:L}}qQ();MZ();var DZ=2000,XQ=60000,jQ=900000,EZ=0;async function hQ(K){let{dir:$,machineName:L,branch:N,gitRepoUrl:x,title:m,baseUrl:h,sessionIngressUrl:Q,workerType:z,getAccessToken:H,createSession:X,archiveSession:R,getCurrentTitle:y=()=>m,toSDKMessages:o=()=>{throw Error("BridgeCoreParams.toSDKMessages not provided. Pass it if you use writeMessages() or initialMessages — daemon callers that only use writeSdkMessages() never hit this path.")},onAuth401:T,getPollIntervalConfig:k=()=>dJ,initialHistoryCap:v=200,initialMessages:B,previouslyFlushedUUIDs:d,onInboundMessage:l,onPermissionResponse:KJ,onInterrupt:n,onSetModel:_,onSetMaxThinkingTokens:S,onSetPermissionMode:D,onStateChange:P,onUserMessage:a,perpetual:I,initialSSESequenceNum:s=0}=K,F=++EZ,{writeBridgePointer:c,clearBridgePointer:YJ,readBridgePointer:O}=await import("./bridgePointer-0.1.11-wr8dfs91.mjs"),A=I?await O($):null,W=A?.source==="repl"?A:null;J(`[bridge:repl] initBridgeCore #${F} starting (initialMessages=${B?.length??0}${W?` perpetual prior=env:${W.environmentId}`:""})`);let C=$Q({baseUrl:h,getAccessToken:H,runnerVersion:"99.0.0",onDebug:J,onAuth401:T,getTrustedDeviceToken:xQ}),XJ={dir:$,machineName:L,branch:N,gitRepoUrl:x,maxSessions:1,spawnMode:"single-session",verbose:!1,sandbox:!1,bridgeId:YQ(),workerType:z,environmentId:YQ(),reuseEnvironmentId:W?.environmentId,apiBaseUrl:h,sessionIngressUrl:Q},q,PJ;try{let Z=await C.registerBridgeEnvironment(XJ);q=Z.environment_id,PJ=Z.environment_secret}catch(Z){if(ZJ("registration_failed",`[bridge:repl] Environment registration failed: ${u(Z)}`),W)await YJ($);return P?.("failed",u(Z)),null}J(`[bridge:repl] Environment registered: ${q}`),_J("info","bridge_repl_env_registered"),w("tengu_bridge_repl_env_registered",{});async function tJ(Z,j){if(q!==Z)return J(`[bridge:repl] Env mismatch (requested ${Z}, got ${q}) — cannot reconnect in place`),!1;let U=OQ(j),G=U===j?[j]:[j,U];for(let E of G)try{return await C.reconnectSession(q,E),J(`[bridge:repl] Reconnected session ${E} in place on env ${q}`),!0}catch(r){J(`[bridge:repl] reconnectSession(${E}) failed: ${u(r)}`)}return J("[bridge:repl] reconnectSession exhausted — falling through to fresh session"),!1}let FJ=W?await tJ(W.environmentId,W.sessionId):!1;if(W&&!FJ)await YJ($);let V;if(FJ&&W){if(V=W.sessionId,J(`[bridge:repl] Perpetual session reused: ${V}`),B&&d)for(let Z of B)d.add(Z.uuid)}else{let Z=await X({environmentId:q,title:m,gitRepoUrl:x,branch:N,signal:AbortSignal.timeout(15000)});if(!Z)return J("[bridge:repl] Session creation failed, deregistering environment"),w("tengu_bridge_repl_session_failed",{}),await C.deregisterEnvironment(q).catch(()=>{}),P?.("failed","Session creation failed"),null;V=Z,J(`[bridge:repl] Session created: ${V}`)}await c($,{sessionId:V,environmentId:q,source:"repl"}),_J("info","bridge_repl_session_created"),w("tengu_bridge_repl_started",{has_initial_messages:!!(B&&B.length>0),inProtectedNamespace:WQ()});let fJ=new Set;if(B)for(let Z of B)fJ.add(Z.uuid);let jJ=new uJ(2000);for(let Z of fJ)jJ.add(Z);let oJ=new uJ(2000),e=new AbortController,Y=null,WJ=0,i=FJ?s:0,p=null,GJ=null,nJ=KQ(e.signal),xJ=nJ.wake,HZ=nJ.signal,JJ=new CQ,wJ=!a,DJ=3,VJ=0,qJ=null;async function sJ(){if(qJ)return qJ;qJ=WZ();try{return await qJ}finally{qJ=null}}async function WZ(){if(VJ++,WJ++,J(`[bridge:repl] Reconnecting after env lost (attempt ${VJ}/${DJ})`),VJ>DJ)return J(`[bridge:repl] Environment reconnect limit reached (${DJ}), giving up`),!1;if(Y){let G=Y.getLastSequenceNum();if(G>i)i=G;Y.close(),Y=null}if(xJ(),JJ.drop(),p){let G=p;if(await C.stopWork(q,G,!1).catch(()=>{}),p!==G)return J("[bridge:repl] Poll loop recovered during stopWork await — deferring to it"),VJ=0,!0;p=null,GJ=null}if(e.signal.aborted)return J("[bridge:repl] Reconnect aborted by teardown"),!1;let Z=q;XJ.reuseEnvironmentId=Z;try{let G=await C.registerBridgeEnvironment(XJ);q=G.environment_id,PJ=G.environment_secret}catch(G){return XJ.reuseEnvironmentId=void 0,J(`[bridge:repl] Environment re-registration failed: ${u(G)}`),!1}if(XJ.reuseEnvironmentId=void 0,J(`[bridge:repl] Re-registered: requested=${Z} got=${q}`),e.signal.aborted)return J("[bridge:repl] Reconnect aborted after env registration, cleaning up"),await C.deregisterEnvironment(q).catch(()=>{}),!1;if(Y!==null)return J("[bridge:repl] Poll loop recovered during registerBridgeEnvironment await — deferring to it"),VJ=0,!0;if(await tJ(Z,V))return w("tengu_bridge_repl_reconnected_in_place",{}),VJ=0,!0;if(q!==Z)w("tengu_bridge_repl_env_expired_fresh_session",{});if(await R(V),e.signal.aborted)return J("[bridge:repl] Reconnect aborted after archive, cleaning up"),await C.deregisterEnvironment(q).catch(()=>{}),!1;let j=y(),U=await X({environmentId:q,title:j,gitRepoUrl:x,branch:N,signal:AbortSignal.timeout(15000)});if(!U)return J("[bridge:repl] Session creation failed during reconnection"),!1;if(e.signal.aborted)return J("[bridge:repl] Reconnect aborted after session creation, cleaning up"),await R(U),!1;return V=U,AQ(LQ(U)).catch(()=>{}),i=0,oJ.clear(),wJ=!a,J(`[bridge:repl] Re-created session: ${V}`),await c($,{sessionId:V,environmentId:q,source:"repl"}),d?.clear(),VJ=0,!0}function EJ(){return H()}function rJ(){let Z=JJ.end();if(Z.length===0)return;if(!Y){J(`[bridge:repl] Cannot drain ${Z.length} pending message(s): no transport`);return}for(let G of Z)jJ.add(G.uuid);let U=o(Z).map((G)=>({...G,session_id:V}));J(`[bridge:repl] Drained ${Z.length} pending message(s) after flush`),Y.writeBatch(U)}let UJ=null;function CJ(){UJ?.()}function GZ(Z){if(J(`[bridge:repl] Transport permanently closed: code=${Z}`),w("tengu_bridge_repl_ws_closed",{code:Z}),Y){let U=Y.getLastSequenceNum();if(U>i)i=U;Y=null}xJ();let j=JJ.drop();if(j>0)J(`[bridge:repl] Dropping ${j} pending message(s) on transport close (code=${Z})`,{level:"warn"});if(Z===1000){P?.("failed","session ended"),e.abort(),CJ();return}P?.("reconnecting",`Remote Control connection lost (code ${Z})`),J(`[bridge:repl] Transport reconnect budget exhausted (code=${Z}), attempting env reconnect`),sJ().then((U)=>{if(U)return;if(e.signal.aborted)return;J("[bridge:repl] reconnectEnvironmentWithSession resolved false — tearing down"),w("tengu_bridge_repl_reconnect_failed",{close_code:Z}),P?.("failed","reconnection failed"),CJ()})}let qZ={api:C,getCredentials:()=>({environmentId:q,environmentSecret:PJ}),signal:e.signal,getPollIntervalConfig:k,onStateChange:P,getWsState:()=>Y?.getStateLabel()??"null",isAtCapacity:()=>Y!==null,capacitySignal:HZ,onFatalError:CJ,getHeartbeatInfo:()=>{if(!p||!GJ)return null;return{environmentId:q,workId:p,sessionToken:GJ}},onHeartbeatFatal:(Z)=>{if(J(`[bridge:repl] heartbeatWork fatal (status=${Z.status}) — tearing down work item for fast re-dispatch`),Y){let j=Y.getLastSequenceNum();if(j>i)i=j;Y.close(),Y=null}if(JJ.drop(),p)C.stopWork(q,p,!1).catch((j)=>{J(`[bridge:repl] stopWork after heartbeat fatal: ${u(j)}`)});p=null,GJ=null,xJ(),P?.("reconnecting","Work item lease expired, fetching fresh token")},async onEnvironmentLost(){if(!await sJ())return null;return{environmentId:q,environmentSecret:PJ}},onWorkReceived:(Z,j,U,G)=>{if(Y?.isConnectedStatus())J(`[bridge:repl] Work received while transport connected, replacing with fresh token (workId=${U})`);if(J(`[bridge:repl] Work received: workId=${U} workSessionId=${Z} currentSessionId=${V} match=${lJ(Z,V)}`),c($,{sessionId:V,environmentId:q,source:"repl"}),!lJ(Z,V)){J(`[bridge:repl] Rejecting foreign session: expected=${V} got=${Z}`);return}p=U,GJ=j;let E=G||HQ(process.env.CLAUDE_BRIDGE_USE_CCR_V2),r;if(!E){if(r=EJ(),!r){J("[bridge:repl] No OAuth token available for session ingress, skipping work");return}IJ(r)}if(w("tengu_bridge_repl_work_received",{}),Y){let M=Y;Y=null;let f=M.getLastSequenceNum();if(f>i)i=f;M.close()}JJ.deactivate();let LZ=(M)=>UQ(M,{transport:Y,sessionId:V,onInterrupt:n,onSetModel:_,onSetMaxThinkingTokens:S,onSetPermissionMode:D}),bJ=!1,JQ=(M)=>{if(Y=M,M.setOnConnect(()=>{if(Y!==M)return;if(J("[bridge:repl] Ingress transport connected"),w("tengu_bridge_repl_ws_connected",{}),!E){let f=EJ();if(f)IJ(f)}if(kJ=!1,!bJ&&B&&B.length>0){bJ=!0;let f=v,t=B.filter((MJ)=>cJ(MJ)&&!d?.has(MJ.uuid)),NJ=f>0&&t.length>f?t.slice(-f):t;if(NJ.length<t.length)J(`[bridge:repl] Capped initial flush: ${t.length} -> ${NJ.length} (cap=${f})`),w("tengu_bridge_repl_history_capped",{eligible_count:t.length,capped_count:NJ.length});let AJ=o(NJ);if(AJ.length>0){J(`[bridge:repl] Flushing ${AJ.length} initial message(s) via transport`);let MJ=AJ.map((LJ)=>({...LJ,session_id:V})),QQ=M.droppedBatchCount;M.writeBatch(MJ).then(()=>{if(M.droppedBatchCount>QQ){J(`[bridge:repl] Initial flush dropped ${M.droppedBatchCount-QQ} batch(es) — not marking ${AJ.length} UUID(s) as flushed`);return}if(d){for(let LJ of AJ)if(LJ.uuid)d.add(LJ.uuid)}}).catch((LJ)=>J(`[bridge:repl] Initial flush failed: ${LJ}`)).finally(()=>{if(Y!==M)return;rJ(),P?.("connected")})}else rJ(),P?.("connected")}else if(!JJ.active)P?.("connected")}),M.setOnData((f)=>{PQ(f,jJ,oJ,l,KJ,LZ)}),M.setOnClose((f)=>{if(Y!==M)return;GZ(f)}),!bJ&&B&&B.length>0)JJ.start();M.connect()};if(WJ++,E){let M=wQ(h,Z),f=WJ;J(`[bridge:repl] CCR v2: sessionUrl=${M} session=${Z} gen=${f}`),EQ({sessionUrl:M,ingressToken:j,sessionId:Z,initialSequenceNum:i}).then((t)=>{if(e.signal.aborted){t.close();return}if(f!==WJ){J(`[bridge:repl] CCR v2: discarding stale handshake gen=${f} current=${WJ}`),t.close();return}JQ(t)},(t)=>{if(J(`[bridge:repl] CCR v2: createV2ReplTransport failed: ${u(t)}`,{level:"error"}),w("tengu_bridge_repl_ccr_v2_init_failed",{}),f!==WJ)return;if(p)C.stopWork(q,p,!1).catch((NJ)=>{J(`[bridge:repl] stopWork after v2 init failure: ${u(NJ)}`)}),p=null,GJ=null;xJ()})}else{let M=fQ(Q,Z);J(`[bridge:repl] Ingress URL: ${M}`),J(`[bridge:repl] Creating HybridTransport: session=${Z}`);let f=r??"";JQ(DQ(new MQ(new URL(M),{Authorization:`Bearer ${f}`,"anthropic-version":"2023-06-01"},Z,()=>({Authorization:`Bearer ${EJ()??f}`,"anthropic-version":"2023-06-01"}),{maxConsecutiveFailures:50,isBridge:!0,onBatchDropped:()=>{P?.("reconnecting","Lost sync with Remote Control — events could not be delivered"),xJ()}})))}}};CZ(qZ);let hJ=I?setInterval(()=>{if(qJ)return;c($,{sessionId:V,environmentId:q,source:"repl"})},3600000):null;hJ?.unref?.();let eJ=k().session_keepalive_interval_v2_ms,TJ=eJ>0?setInterval(()=>{if(!Y)return;J("[bridge:repl] keep_alive sent"),Y.write({type:"keep_alive"}).catch((Z)=>{J(`[bridge:repl] keep_alive write failed: ${u(Z)}`)})},eJ):null;TJ?.unref?.();let kJ=!1;UJ=async()=>{if(kJ){J(`[bridge:repl] Teardown already in progress, skipping duplicate call env=${q} session=${V}`);return}kJ=!0;let Z=Date.now();if(J(`[bridge:repl] Teardown starting: env=${q} session=${V} workId=${p??"none"} transportState=${Y?.getStateLabel()??"null"}`),hJ!==null)clearInterval(hJ);if(TJ!==null)clearInterval(TJ);if(e.abort(),J("[bridge:repl] Teardown: poll loop aborted"),Y){let G=Y.getLastSequenceNum();if(G>i)i=G}if(I){Y=null,JJ.drop(),await c($,{sessionId:V,environmentId:q,source:"repl"}),J(`[bridge:repl] Teardown (perpetual): leaving env=${q} session=${V} alive on server, duration=${Date.now()-Z}ms`);return}let j=Y;if(Y=null,JJ.drop(),j)j.write(pJ(V));let U=p?C.stopWork(q,p,!0).then(()=>{J("[bridge:repl] Teardown: stopWork completed")}).catch((G)=>{J(`[bridge:repl] Teardown stopWork failed: ${u(G)}`)}):Promise.resolve();await Promise.all([U,R(V)]),j?.close(),J("[bridge:repl] Teardown: transport closed"),await C.deregisterEnvironment(q).catch((G)=>{J(`[bridge:repl] Teardown deregister failed: ${u(G)}`)}),await YJ($),J(`[bridge:repl] Teardown complete: env=${q} duration=${Date.now()-Z}ms`)};let NZ=GQ(()=>UJ?.());return J(`[bridge:repl] Ready: env=${q} session=${V}`),P?.("ready"),{get bridgeSessionId(){return V},get environmentId(){return q},getSSESequenceNum(){let Z=Y?.getLastSequenceNum()??0;return Math.max(i,Z)},sessionIngressUrl:Q,writeMessages(Z){let j=Z.filter((E)=>cJ(E)&&!fJ.has(E.uuid)&&!jJ.has(E.uuid));if(j.length===0)return;if(!wJ)for(let E of j){let r=yQ(E);if(r!==void 0&&a?.(r,V)){wJ=!0;break}}if(JJ.enqueue(...j)){J(`[bridge:repl] Queued ${j.length} message(s) during initial flush`);return}if(!Y){let E=j.map((r)=>r.type).join(",");J(`[bridge:repl] Transport not configured, dropping ${j.length} message(s) [${E}] for session=${V}`,{level:"warn"});return}for(let E of j)jJ.add(E.uuid);J(`[bridge:repl] Sending ${j.length} message(s) via transport`);let G=o(j).map((E)=>({...E,session_id:V}));Y.writeBatch(G)},writeSdkMessages(Z){let j=Z.filter((G)=>!G.uuid||!jJ.has(G.uuid));if(j.length===0)return;if(!Y){J(`[bridge:repl] Transport not configured, dropping ${j.length} SDK message(s) for session=${V}`,{level:"warn"});return}for(let G of j)if(G.uuid)jJ.add(G.uuid);let U=j.map((G)=>({...G,session_id:V}));Y.writeBatch(U)},sendControlRequest(Z){if(!Y){J("[bridge:repl] Transport not configured, skipping control_request");return}let j={...Z,session_id:V};Y.write(j),J(`[bridge:repl] Sent control_request request_id=${Z.request_id}`)},sendControlResponse(Z){if(!Y){J("[bridge:repl] Transport not configured, skipping control_response");return}let j={...Z,session_id:V};Y.write(j),J("[bridge:repl] Sent control_response")},sendControlCancelRequest(Z){if(!Y){J("[bridge:repl] Transport not configured, skipping control_cancel_request");return}let j={type:"control_cancel_request",request_id:Z,session_id:V};Y.write(j),J(`[bridge:repl] Sent control_cancel_request request_id=${Z}`)},sendResult(){if(!Y){J(`[bridge:repl] sendResult: skipping, transport not configured session=${V}`);return}Y.write(pJ(V)),J(`[bridge:repl] Sent result for session=${V}`)},async teardown(){NZ(),await UJ?.(),J("[bridge:repl] Torn down"),w("tengu_bridge_repl_teardown",{})}}}async function CZ({api:K,getCredentials:$,signal:L,onStateChange:N,onWorkReceived:x,onEnvironmentLost:m,getWsState:h,isAtCapacity:Q,capacitySignal:z,onFatalError:H,getPollIntervalConfig:X=()=>dJ,getHeartbeatInfo:R,onHeartbeatFatal:y}){J(`[bridge:repl] Starting work poll loop for env=${$().environmentId}`);let T=0,k=null,v=null,B=0,d=!1;while(!L.aborted){let{environmentId:l,environmentSecret:KJ}=$(),n=X();try{let _=await K.pollForWork(l,KJ,L,n.reclaim_older_than_ms);if(B=0,T>0)J(`[bridge:repl] Poll recovered after ${T} consecutive error(s)`),T=0,k=null,v=null,N?.("ready");if(!_){let D=d;if(d=!1,Q?.()&&z&&!D){let P=n.poll_interval_ms_at_capacity;if(n.non_exclusive_heartbeat_interval_ms>0&&R){w("tengu_bridge_heartbeat_mode_entered",{heartbeat_interval_ms:n.non_exclusive_heartbeat_interval_ms});let I=P>0?Date.now()+P:null,s=!1,F=0;while(!L.aborted&&Q()&&(I===null||Date.now()<I)){let YJ=X();if(YJ.non_exclusive_heartbeat_interval_ms<=0)break;let O=R();if(!O)break;let A=z();try{await K.heartbeatWork(O.environmentId,O.workId,O.sessionToken)}catch(W){if(J(`[bridge:repl:heartbeat] Failed: ${u(W)}`),W instanceof zJ){if(A.cleanup(),w("tengu_bridge_heartbeat_error",{status:W.status,error_type:W.status===401||W.status===403?"auth_failed":"fatal"}),y)y(W),J(`[bridge:repl:heartbeat] Fatal (status=${W.status}), work state cleared — fast-polling for re-dispatch`);else s=!0;break}}F++,await BJ(YJ.non_exclusive_heartbeat_interval_ms,A.signal),A.cleanup()}let c=s?"error":L.aborted?"shutdown":!Q()?"capacity_changed":I!==null&&Date.now()>=I?"poll_due":"config_disabled";if(w("tengu_bridge_heartbeat_mode_exited",{reason:c,heartbeat_cycles:F}),!s){if(c==="poll_due")J(`[bridge:repl] Heartbeat poll_due after ${F} cycles — falling through to pollForWork`);continue}}let a=P>0?P:n.non_exclusive_heartbeat_interval_ms;if(a>0){let I=z(),s=Date.now();await BJ(a,I.signal),I.cleanup();let F=Date.now()-s-a;if(F>60000)J(`[bridge:repl] At-capacity sleep overran by ${Math.round(F/1000)}s — process suspension detected, forcing one fast-poll cycle`),w("tengu_bridge_repl_suspension_detected",{overrun_ms:F}),d=!0}}else await BJ(n.poll_interval_ms_not_at_capacity,L);continue}let S;try{S=FQ(_.secret)}catch(D){J(`[bridge:repl] Failed to decode work secret: ${u(D)}`),w("tengu_bridge_repl_work_secret_failed",{}),await K.stopWork(l,_.id,!1).catch(()=>{});continue}J(`[bridge:repl] Acknowledging workId=${_.id}`);try{await K.acknowledgeWork(l,_.id,S.session_ingress_token)}catch(D){J(`[bridge:repl] Acknowledge failed workId=${_.id}: ${u(D)}`)}if(_.data.type==="healthcheck"){J("[bridge:repl] Healthcheck received");continue}if(_.data.type==="session"){let D=_.data.id;try{g(D,"session_id")}catch{J(`[bridge:repl] Invalid session_id in work: ${D}`);continue}x(D,S.session_ingress_token,_.id,S.use_code_sessions===!0),J("[bridge:repl] Work accepted, continuing poll loop")}}catch(_){if(L.aborted)break;if(_ instanceof zJ&&_.status===404&&m){let F=$().environmentId;if(l!==F){J(`[bridge:repl] Stale poll error for old env=${l}, current env=${F} — skipping onEnvironmentLost`),T=0,k=null;continue}if(B++,J(`[bridge:repl] Environment deleted, attempting re-registration (attempt ${B}/3)`),w("tengu_bridge_repl_env_lost",{attempt:B}),B>3){J("[bridge:repl] Environment re-registration limit reached (3), giving up"),N?.("failed","Environment deleted and re-registration limit reached"),H?.();break}N?.("reconnecting","environment lost, recreating session");let c=await m();if(L.aborted)break;if(c){T=0,k=null,N?.("ready"),J(`[bridge:repl] Re-registered environment: ${c.environmentId}`);continue}N?.("failed","Environment deleted and re-registration failed"),H?.();break}if(_ instanceof zJ){let F=SJ(_.errorType),c=zQ(_);if(J(`[bridge:repl] Fatal poll error: ${_.message} (status=${_.status}, type=${_.errorType??"unknown"})${c?" (suppressed)":""}`),w("tengu_bridge_repl_fatal_error",{status:_.status,error_type:_.errorType}),_J(F?"info":"error","bridge_repl_fatal_error",{status:_.status,error_type:_.errorType}),!c)N?.("failed",F?"session expired · /remote-control to reconnect":_.message);H?.();break}let S=Date.now();if(v!==null&&S-v>XQ*2)J(`[bridge:repl] Detected system sleep (${Math.round((S-v)/1000)}s gap), resetting poll error budget`),_J("info","bridge_repl_poll_sleep_detected",{gapMs:S-v}),T=0,k=null;if(v=S,T++,k===null)k=S;let D=S-k,P=RQ(_),a=BQ(_),I=h?.()??"unknown";if(J(`[bridge:repl] Poll error (attempt ${T}, elapsed ${Math.round(D/1000)}s, ws=${I}): ${a}`),w("tengu_bridge_repl_poll_error",{status:P,consecutiveErrors:T,elapsedMs:D}),T===1)N?.("reconnecting",a);if(D>=jQ){J(`[bridge:repl] Poll failures exceeded ${jQ/1000}s (${T} errors), giving up`),_J("info","bridge_repl_poll_give_up"),w("tengu_bridge_repl_poll_give_up",{consecutiveErrors:T,elapsedMs:D,lastStatus:P}),N?.("failed","connection to server lost");break}let s=Math.min(DZ*2**(T-1),XQ);if(X().non_exclusive_heartbeat_interval_ms>0){let F=R?.();if(F)try{await K.heartbeatWork(F.environmentId,F.workId,F.sessionToken)}catch{}}await BJ(s,L)}}J(`[bridge:repl] Work poll loop ended (aborted=${L.aborted}) env=${$().environmentId}`)}_Q();async function i6(K){let{onInboundMessage:$,onPermissionResponse:L,onInterrupt:N,onSetModel:x,onSetMaxThinkingTokens:m,onSetPermissionMode:h,onStateChange:Q,initialMessages:z,getMessages:H,previouslyFlushedUUIDs:X,initialName:R,perpetual:y,outboundOnly:o,tags:T}=K??{};if(dQ(eQ),!await sQ())return ZJ("not_enabled","[bridge:repl] Skipping: bridge not enabled"),null;if(!HJ())return ZJ("no_oauth","[bridge:repl] Skipping: no OAuth tokens"),Q?.("failed","/login"),null;if(await aQ(),!iQ("allow_remote_control"))return ZJ("policy_denied","[bridge:repl] Skipping: allow_remote_control policy not allowed"),Q?.("failed","disabled by your organization's policy"),null;if(!QZ()){let O=pQ();if(O.bridgeOauthDeadExpiresAt!=null&&(O.bridgeOauthDeadFailCount??0)>=3&&gJ()?.expiresAt===O.bridgeOauthDeadExpiresAt)return J(`[bridge:repl] Skipping: cross-process backoff (dead token seen ${O.bridgeOauthDeadFailCount} times)`),null;await lQ();let A=gJ();if(A&&A.expiresAt!==null&&A.expiresAt<=Date.now()){ZJ("oauth_expired_unrefreshable","[bridge:repl] Skipping: OAuth token expired and refresh failed (re-login required)"),Q?.("failed","/login");let W=A.expiresAt;return cQ((b)=>({...b,bridgeOauthDeadExpiresAt:W,bridgeOauthDeadFailCount:b.bridgeOauthDeadExpiresAt===W?(b.bridgeOauthDeadFailCount??0)+1:1})),null}}let k=ZZ(),v=`remote-control-${gQ()}`,B=!1,d=!1;if(R)v=R,B=!0,d=!0;else{let O=RJ(),A=O?yJ(O):void 0;if(A)v=A,B=!0,d=!0;else if(z&&z.length>0)for(let W=z.length-1;W>=0;W--){let b=z[W];if(b.type!=="user"||b.isMeta||b.toolUseResult||b.isCompactSummary||b.origin&&b.origin.kind!=="human"||tQ(b))continue;let C=oQ(b.message.content);if(!C)continue;let XJ=kQ(C);if(!XJ)continue;v=XJ,B=!0;break}}let l=0,KJ,n=0,_=(O,A,W)=>{B=!0,v=O,J(`[bridge:repl] derived title from message ${W}: ${O}`),XZ(A,O,{baseUrl:k,getAccessToken:HJ}).catch(()=>{})},S=(O,A)=>{let W=++n,b=l;zZ(O,AbortSignal.timeout(15000)).then((C)=>{if(C&&W===n&&KJ===A&&!yJ(RJ()))_(C,A,b)})},D=(O,A)=>{if(d||yJ(RJ()))return!0;if(KJ!==void 0&&KJ!==A)l=0;if(KJ=A,l++,l===1&&!B){let W=kQ(O);if(W)_(W,A,l);S(O,A)}else if(l===3){let W=H?.(),b=W?$Z(nQ(W)):O;S(b,A)}return l>=3},P=mQ("tengu_bridge_initial_history_cap",200,300000),a=await uQ();if(!a)return ZJ("no_org_uuid","[bridge:repl] Skipping: no org UUID"),Q?.("failed","/login"),null;if(rQ()&&!y){let O=await VZ();if(O)return ZJ("version_too_old",`[bridge:repl] Skipping: ${O}`,!0),Q?.("failed","run `claude update` to upgrade"),null;J("[bridge:repl] Using env-less bridge path (tengu_bridge_repl_v2)");let{initEnvLessBridgeCore:A}=await import("./remoteBridgeCore-0.1.11-hn821p07.mjs");return A({baseUrl:k,orgUUID:a,title:v,getAccessToken:HJ,onAuth401:aJ,toSDKMessages:iJ,initialHistoryCap:P,initialMessages:z,onInboundMessage:$,onUserMessage:D,onPermissionResponse:L,onInterrupt:N,onSetModel:x,onSetMaxThinkingTokens:m,onSetPermissionMode:h,onStateChange:Q,outboundOnly:o,tags:T})}let I=JZ();if(I)return ZJ("version_too_old",`[bridge:repl] Skipping: ${I}`),Q?.("failed","run `claude update` to upgrade"),null;let s=await SQ(),F=await IQ(),c=process.env.CLAUDE_BRIDGE_SESSION_INGRESS_URL||k,YJ="claude_code";return hQ({dir:bQ(),machineName:tZ(),branch:s,gitRepoUrl:F,title:v,baseUrl:k,sessionIngressUrl:c,workerType:YJ,getAccessToken:HJ,createSession:(O)=>KZ({...O,events:[],baseUrl:k,getAccessToken:HJ}),archiveSession:(O)=>YZ(O,{baseUrl:k,getAccessToken:HJ,timeoutMs:1500}).catch((A)=>{J(`[bridge:repl] archiveBridgeSession threw: ${u(A)}`,{level:"error"})}),getCurrentTitle:()=>yJ(RJ())??v,onUserMessage:D,toSDKMessages:iJ,onAuth401:aJ,getPollIntervalConfig:jZ,initialHistoryCap:P,initialMessages:z,previouslyFlushedUUIDs:X,onInboundMessage:$,onPermissionResponse:L,onInterrupt:N,onSetModel:x,onSetMaxThinkingTokens:m,onSetPermissionMode:h,onStateChange:Q,perpetual:y})}var TQ=50;function kQ(K){let $=vQ(K),N=(/^(.*?[.!?])\s/.exec($)?.[1]??$).replace(/\s+/g," ").trim();if(!N)return;return N.length>TQ?N.slice(0,TQ-1)+"…":N}export{i6 as initReplBridge};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{$U as x,AT as h,BT as i,FU as p,LT as j,OU as q,PT as k,QU as r,SU as s,WU as t,YU as u,ZU as v,_U as w,aV as y,bV as z,cV as A,eV as B,fT as a,fV as C,gT as b,iU as l,jT as c,kV as D,lV as E,mT as d,mV as F,nT as e,nV as G,oT as f,pT as g,qV as H,rV as I,sU as m,sV as J,tV as K,uV as L,vV as M,xU as n,zU as o}from"./cli-0.1.11-bvd2r7an.mjs";import"./cli-0.1.11-jr50ahcv.mjs";import"./cli-0.1.11-6zkfmcxp.mjs";import"./cli-0.1.11-kk0qqs5v.mjs";import"./cli-0.1.11-x37jysc0.mjs";import"./cli-0.1.11-yv5pfq6n.mjs";import"./cli-0.1.11-s6yfjcm5.mjs";import"./cli-0.1.11-1xr9et85.mjs";import"./cli-0.1.11-v7bwjqf0.mjs";import"./cli-0.1.11-h7e4rkwk.mjs";import"./cli-0.1.11-7xr2ermy.mjs";import"./cli-0.1.11-7qpnfx56.mjs";import"./cli-0.1.11-vch8cn95.mjs";import"./cli-0.1.11-fag2wtke.mjs";import"./cli-0.1.11-nx8a99hz.mjs";import"./cli-0.1.11-ktwtyqmp.mjs";import"./cli-0.1.11-xwj7cmkj.mjs";import"./cli-0.1.11-vq5fvf9m.mjs";import"./cli-0.1.11-d3exw047.mjs";import"./cli-0.1.11-e5ecf583.mjs";import"./cli-0.1.11-rrnr3ab1.mjs";import"./cli-0.1.11-98zcwng9.mjs";import"./cli-0.1.11-yrfxpjhr.mjs";M();export{j as wrapText,f as useThemeSetting,e as useTheme,A as useTerminalViewport,I as useTerminalTitle,m as useTerminalFocus,H as useTabStatus,c as useStdin,G as useSelection,g as usePreviewTheme,F as useInterval,D as useInput,C as useApp,E as useAnimationTimer,B as useAnimationFrame,l as supportsTabStatus,K as render,J as measureElement,L as createRoot,q as color,d as ThemeProvider,s as Text,i as TerminalFocusEvent,z as Spacer,y as RawAnsi,x as NoSelect,w as Newline,t as Link,h as InputEvent,k as FocusManager,b as EventEmitter,a as Event,p as ClickEvent,v as Button,r as Box,o as BaseText,n as BaseBox,u as Ansi};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{Tf as L,Uf as D}from"./cli-0.1.11-1bmswdg3.mjs";import{sw as b,tw as B,xw as f,yw as p,zw as l}from"./cli-0.1.11-s8ygndzf.mjs";import"./cli-0.1.11-1bryv90w.mjs";import"./cli-0.1.11-5e45zda5.mjs";import"./cli-0.1.11-jjgjkqqv.mjs";import"./cli-0.1.11-r990p54m.mjs";import"./cli-0.1.11-70f778wy.mjs";import"./cli-0.1.11-weav8142.mjs";import"./cli-0.1.11-t7dc7fbj.mjs";import"./cli-0.1.11-vb5f7c3a.mjs";import"./cli-0.1.11-sma2xhvv.mjs";import"./cli-0.1.11-852v06g0.mjs";import"./cli-0.1.11-z4hb2mcd.mjs";import"./cli-0.1.11-mj78w4sp.mjs";import"./cli-0.1.11-qrq0sw0h.mjs";import"./cli-0.1.11-d4ahh3jz.mjs";import"./cli-0.1.11-wc9bay3d.mjs";import"./cli-0.1.11-rvk3t45h.mjs";import"./cli-0.1.11-0n77qn68.mjs";import"./cli-0.1.11-h02tyg8p.mjs";import{QU as J,SU as C,eT as i,tV as $,vV as u}from"./cli-0.1.11-bvd2r7an.mjs";import"./cli-0.1.11-jr50ahcv.mjs";import"./cli-0.1.11-6zkfmcxp.mjs";import"./cli-0.1.11-jkrt4znb.mjs";import"./cli-0.1.11-424zgj5k.mjs";import"./cli-0.1.11-rj9ea3zn.mjs";import"./cli-0.1.11-mstxxz33.mjs";import"./cli-0.1.11-kghg51gb.mjs";import"./cli-0.1.11-fstfs72j.mjs";import{qX as W}from"./cli-0.1.11-kk0qqs5v.mjs";import{rX as j}from"./cli-0.1.11-x37jysc0.mjs";import"./cli-0.1.11-h762f6hr.mjs";import"./cli-0.1.11-50naxqgt.mjs";import"./cli-0.1.11-v6kwgrqc.mjs";import"./cli-0.1.11-16086k9e.mjs";import"./cli-0.1.11-bwpemkht.mjs";import"./cli-0.1.11-dcswnc8x.mjs";import"./cli-0.1.11-p22bdjhv.mjs";import"./cli-0.1.11-y4c6y87y.mjs";import"./cli-0.1.11-q58q9jqr.mjs";import"./cli-0.1.11-zb2sa3e2.mjs";import"./cli-0.1.11-3p2f194m.mjs";import"./cli-0.1.11-05ngjm8p.mjs";import"./cli-0.1.11-yv5pfq6n.mjs";import"./cli-0.1.11-qbcfg80y.mjs";import"./cli-0.1.11-b0jasw23.mjs";import"./cli-0.1.11-s6yfjcm5.mjs";import"./cli-0.1.11-sqqzwx4h.mjs";import"./cli-0.1.11-2w8d5vqb.mjs";import"./cli-0.1.11-d10nfa6g.mjs";import"./cli-0.1.11-h2hxx8ma.mjs";import"./cli-0.1.11-1xr9et85.mjs";import{A_ as E,Eaa as d,Gaa as M,Qaa as V,y_ as I}from"./cli-0.1.11-v7bwjqf0.mjs";import"./cli-0.1.11-h7e4rkwk.mjs";import"./cli-0.1.11-7xr2ermy.mjs";import"./cli-0.1.11-7qpnfx56.mjs";import"./cli-0.1.11-vch8cn95.mjs";import"./cli-0.1.11-fag2wtke.mjs";import"./cli-0.1.11-nx8a99hz.mjs";import"./cli-0.1.11-ktwtyqmp.mjs";import{dga as _,ega as c}from"./cli-0.1.11-xwj7cmkj.mjs";import{Dga as h,Jga as T,bha as H,eha as m}from"./cli-0.1.11-vq5fvf9m.mjs";import"./cli-0.1.11-d3exw047.mjs";import"./cli-0.1.11-e5ecf583.mjs";import"./cli-0.1.11-rrnr3ab1.mjs";import"./cli-0.1.11-98zcwng9.mjs";import{Nna as A}from"./cli-0.1.11-yrfxpjhr.mjs";c();D();u();m();E();T();l();V();var F=A(i(),1),k=A(j(),1),q=A(W(),1);import{homedir as x}from"node:os";import{join as n}from"node:path";function r(){let R=I.platform==="win32",z=x();if(R)return n(z,".local","bin","claudio.exe").replace(/\//g,"\\");return"~/.local/bin/claudio"}function v(R){let z=F.c(5),{messages:G}=R;if(G.length===0)return null;let y;if(z[0]===Symbol.for("react.memo_cache_sentinel"))y=q.jsxDEV(J,{children:q.jsxDEV(C,{color:"warning",children:[q.jsxDEV(L,{status:"warning",withSpace:!0},void 0,!1,void 0,this),"Setup notes:"]},void 0,!0,void 0,this)},void 0,!1,void 0,this),z[0]=y;else y=z[0];let K;if(z[1]!==G)K=G.map(a),z[1]=G,z[2]=K;else K=z[2];let X;if(z[3]!==K)X=q.jsxDEV(J,{flexDirection:"column",gap:0,marginBottom:1,children:[y,K]},void 0,!0,void 0,this),z[3]=K,z[4]=X;else X=z[4];return X}function a(R,z){return q.jsxDEV(J,{marginLeft:2,children:q.jsxDEV(C,{dimColor:!0,children:["• ",R]},void 0,!0,void 0,this)},z,!1,void 0,this)}function o({onDone:R,force:z,target:G}){let[y,K]=k.useState({type:"checking"});return k.useEffect(()=>{async function X(){try{H(`Install: Starting installation process (force=${z}, target=${G})`);let Y=G||M()?.autoUpdatesChannel||"latest";K({type:"installing",version:Y}),H(`Install: Calling installLatest(channelOrVersion=${Y}, forceReinstall=${z})`);let Q=await B(Y,z);if(H(`Install: installLatest returned version=${Q.latestVersion}, wasUpdated=${Q.wasUpdated}, lockFailed=${Q.lockFailed}`),Q.lockFailed)throw Error("Could not install - another process is currently installing Claude. Please try again in a moment.");if(!Q.latestVersion)H("Install: Failed to retrieve version information during install",{level:"error"});if(!Q.wasUpdated)H("Install: Already up to date");K({type:"setting-up"});let Z=await b(!0);if(H(`Install: Setup launcher completed with ${Z.length} messages`),Z.length>0)Z.forEach((U)=>H(`Install: Setup message: ${U.message}`));H("Install: Cleaning up npm installations after successful install");let{removed:N,errors:O,warnings:S}=await p();if(N>0)H(`Cleaned up ${N} npm installation(s)`);if(O.length>0)H(`Cleanup errors: ${O.join(", ")}`);let P=await f();if(P.length>0)H(`Shell alias cleanup: ${P.map((U)=>U.message).join("; ")}`);if(_("tengu_claude_install_command",{has_version:Q.latestVersion?1:0,forced:z?1:0}),G==="latest"||G==="stable")d("userSettings",{autoUpdatesChannel:G}),H(`Install: Saved autoUpdatesChannel=${G} to user settings`);let w=[...S,...P.map((U)=>U.message)];if(Z.length>0)K({type:"set-up",messages:Z.map((U)=>U.message)}),setTimeout(K,2000,{type:"success",version:Q.latestVersion||"current",setupMessages:[...Z.map((U)=>U.message),...w]});else H("Install: Shell PATH already configured"),K({type:"success",version:Q.latestVersion||"current",setupMessages:w.length>0?w:void 0})}catch(Y){H(`Install command failed: ${Y}`,{level:"error"}),K({type:"error",message:h(Y)})}}X()},[z,G]),k.useEffect(()=>{if(y.type==="success")setTimeout(R,2000,"Claude Code installation completed successfully",{display:"system"});else if(y.type==="error")setTimeout(R,3000,"Claude Code installation failed",{display:"system"})},[y,R]),q.jsxDEV(J,{flexDirection:"column",marginTop:1,children:[y.type==="checking"&&q.jsxDEV(C,{color:"claude",children:"Checking installation status..."},void 0,!1,void 0,this),y.type==="cleaning-npm"&&q.jsxDEV(C,{color:"warning",children:"Cleaning up old npm installations..."},void 0,!1,void 0,this),y.type==="installing"&&q.jsxDEV(C,{color:"claude",children:["Installing Claude Code native build ",y.version,"..."]},void 0,!0,void 0,this),y.type==="setting-up"&&q.jsxDEV(C,{color:"claude",children:"Setting up launcher and shell integration..."},void 0,!1,void 0,this),y.type==="set-up"&&q.jsxDEV(v,{messages:y.messages},void 0,!1,void 0,this),y.type==="success"&&q.jsxDEV(J,{flexDirection:"column",gap:1,children:[q.jsxDEV(J,{children:[q.jsxDEV(L,{status:"success",withSpace:!0},void 0,!1,void 0,this),q.jsxDEV(C,{color:"success",bold:!0,children:"Claude Code successfully installed!"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),q.jsxDEV(J,{marginLeft:2,flexDirection:"column",gap:1,children:[y.version!=="current"&&q.jsxDEV(J,{children:[q.jsxDEV(C,{dimColor:!0,children:"Version: "},void 0,!1,void 0,this),q.jsxDEV(C,{color:"claude",children:y.version},void 0,!1,void 0,this)]},void 0,!0,void 0,this),q.jsxDEV(J,{children:[q.jsxDEV(C,{dimColor:!0,children:"Location: "},void 0,!1,void 0,this),q.jsxDEV(C,{color:"text",children:r()},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),q.jsxDEV(J,{marginLeft:2,flexDirection:"column",gap:1,children:q.jsxDEV(J,{marginTop:1,children:[q.jsxDEV(C,{dimColor:!0,children:"Next: Run "},void 0,!1,void 0,this),q.jsxDEV(C,{color:"claude",bold:!0,children:"claude --help"},void 0,!1,void 0,this),q.jsxDEV(C,{dimColor:!0,children:" to get started"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),y.setupMessages&&q.jsxDEV(v,{messages:y.setupMessages},void 0,!1,void 0,this)]},void 0,!0,void 0,this),y.type==="error"&&q.jsxDEV(J,{flexDirection:"column",gap:1,children:[q.jsxDEV(J,{children:[q.jsxDEV(L,{status:"error",withSpace:!0},void 0,!1,void 0,this),q.jsxDEV(C,{color:"error",children:"Installation failed"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),q.jsxDEV(C,{color:"error",children:y.message},void 0,!1,void 0,this),q.jsxDEV(J,{marginTop:1,children:q.jsxDEV(C,{dimColor:!0,children:"Try running with --force to override checks"},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}var Kq={type:"local-jsx",name:"install",description:"Install Claude Code native build",argumentHint:"[options]",async call(R,z,G){let y=G.includes("--force"),X=G.filter((Q)=>!Q.startsWith("--"))[0],{unmount:Y}=await $(q.jsxDEV(o,{onDone:(Q,Z)=>{Y(),R(Q,Z)},force:y,target:X},void 0,!1,void 0,this))}};export{Kq as install,r as getInstallationPath};
|
|
@@ -1,149 +0,0 @@
|
|
|
1
|
-
import{Ay as c0,By as Yq,DK as I0,EK as w0,Tv as Rf,Uv as qq,mv as T0,nv as rf,ov as Mf,qv as tf}from"./cli-0.1.11-s8ygndzf.mjs";import"./cli-0.1.11-1bryv90w.mjs";import"./cli-0.1.11-5e45zda5.mjs";import"./cli-0.1.11-jjgjkqqv.mjs";import{DP as M0,EP as O0,FP as v0,GP as nf,HP as l0,IP as Ef,LP as _0,MP as af}from"./cli-0.1.11-r990p54m.mjs";import"./cli-0.1.11-70f778wy.mjs";import"./cli-0.1.11-weav8142.mjs";import"./cli-0.1.11-t7dc7fbj.mjs";import"./cli-0.1.11-vb5f7c3a.mjs";import"./cli-0.1.11-sma2xhvv.mjs";import"./cli-0.1.11-852v06g0.mjs";import"./cli-0.1.11-z4hb2mcd.mjs";import"./cli-0.1.11-mj78w4sp.mjs";import"./cli-0.1.11-qrq0sw0h.mjs";import{aS as Sf,bS as Gq}from"./cli-0.1.11-d4ahh3jz.mjs";import"./cli-0.1.11-wc9bay3d.mjs";import"./cli-0.1.11-rvk3t45h.mjs";import"./cli-0.1.11-0n77qn68.mjs";import{GS as L0,HS as P0,US as U0,VS as Z0,WS as b0}from"./cli-0.1.11-h02tyg8p.mjs";import{OU as d0,QU as Q,SU as X,WU as m0,eT as Y0,eU as cf,jU as fq,nT as y0,vV as s}from"./cli-0.1.11-bvd2r7an.mjs";import"./cli-0.1.11-jr50ahcv.mjs";import"./cli-0.1.11-6zkfmcxp.mjs";import"./cli-0.1.11-jkrt4znb.mjs";import"./cli-0.1.11-424zgj5k.mjs";import"./cli-0.1.11-rj9ea3zn.mjs";import"./cli-0.1.11-mstxxz33.mjs";import"./cli-0.1.11-kghg51gb.mjs";import"./cli-0.1.11-fstfs72j.mjs";import{qX as O}from"./cli-0.1.11-kk0qqs5v.mjs";import{rX as z0}from"./cli-0.1.11-x37jysc0.mjs";import"./cli-0.1.11-h762f6hr.mjs";import"./cli-0.1.11-50naxqgt.mjs";import"./cli-0.1.11-v6kwgrqc.mjs";import{OX as R0,PX as _f}from"./cli-0.1.11-16086k9e.mjs";import"./cli-0.1.11-bwpemkht.mjs";import"./cli-0.1.11-dcswnc8x.mjs";import"./cli-0.1.11-p22bdjhv.mjs";import"./cli-0.1.11-y4c6y87y.mjs";import"./cli-0.1.11-q58q9jqr.mjs";import"./cli-0.1.11-zb2sa3e2.mjs";import"./cli-0.1.11-3p2f194m.mjs";import"./cli-0.1.11-05ngjm8p.mjs";import"./cli-0.1.11-yv5pfq6n.mjs";import{J4 as Bf,h4 as k0,i5 as Uf,j4 as of}from"./cli-0.1.11-qbcfg80y.mjs";import"./cli-0.1.11-b0jasw23.mjs";import"./cli-0.1.11-s6yfjcm5.mjs";import"./cli-0.1.11-sqqzwx4h.mjs";import"./cli-0.1.11-2w8d5vqb.mjs";import"./cli-0.1.11-d10nfa6g.mjs";import"./cli-0.1.11-h2hxx8ma.mjs";import"./cli-0.1.11-1xr9et85.mjs";import{F7 as W0,J8 as uf,K7 as wf,L7 as B0,M7 as Wf,N8 as Iq,P7 as g0,Q7 as Lq,S7 as e,U7 as vf,Vba as Xq,Y$ as jf,eaa as dq,zba as lf}from"./cli-0.1.11-v7bwjqf0.mjs";import"./cli-0.1.11-h7e4rkwk.mjs";import"./cli-0.1.11-7xr2ermy.mjs";import"./cli-0.1.11-7qpnfx56.mjs";import"./cli-0.1.11-vch8cn95.mjs";import"./cli-0.1.11-fag2wtke.mjs";import"./cli-0.1.11-nx8a99hz.mjs";import"./cli-0.1.11-ktwtyqmp.mjs";import{dga as K,ega as A0}from"./cli-0.1.11-xwj7cmkj.mjs";import"./cli-0.1.11-vq5fvf9m.mjs";import"./cli-0.1.11-d3exw047.mjs";import"./cli-0.1.11-e5ecf583.mjs";import"./cli-0.1.11-rrnr3ab1.mjs";import"./cli-0.1.11-98zcwng9.mjs";import{Nna as w,Rna as n}from"./cli-0.1.11-yrfxpjhr.mjs";function xf(W){if(W.pending)return a.jsxDEV(X,{children:["Press ",W.keyName," again to exit"]},void 0,!0,void 0,this);return a.jsxDEV(l0,{children:[a.jsxDEV(M0,{shortcut:"↑↓",action:"navigate"},void 0,!1,void 0,this),a.jsxDEV(M0,{shortcut:"Space",action:"toggle"},void 0,!1,void 0,this),a.jsxDEV(M0,{shortcut:"Enter",action:"confirm"},void 0,!1,void 0,this),a.jsxDEV(v0,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"cancel"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function p0(W){let f=i0.c(14),{onSubmit:q,defaultSelections:Y}=W,[I,M]=h0.useState(!1),G;if(f[0]!==q)G=(_)=>{if(_.length===0){M(!0);return}M(!1),q(_)},f[0]=q,f[1]=G;else G=f[1];let L=G,z;if(f[2]===Symbol.for("react.memo_cache_sentinel"))z=()=>{M(!1)},f[2]=z;else z=f[2];let H=z,Z;if(f[3]===Symbol.for("react.memo_cache_sentinel"))Z=()=>{M(!0)},f[3]=Z;else Z=f[3];let F=Z,y;if(f[4]===Symbol.for("react.memo_cache_sentinel"))y=a.jsxDEV(Q,{children:a.jsxDEV(X,{dimColor:!0,children:["More workflow examples (issue triage, CI fixes, etc.) at:"," ",a.jsxDEV(m0,{url:"https://github.com/anthropics/claude-code-action/blob/main/examples/",children:"https://github.com/anthropics/claude-code-action/blob/main/examples/"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),f[4]=y;else y=f[4];let m;if(f[5]===Symbol.for("react.memo_cache_sentinel"))m=$f.map(sf),f[5]=m;else m=f[5];let b;if(f[6]!==Y||f[7]!==L)b=a.jsxDEV(T0,{options:m,defaultValue:Y,onSubmit:L,onChange:H,onCancel:F,hideIndexes:!0},void 0,!1,void 0,this),f[6]=Y,f[7]=L,f[8]=b;else b=f[8];let P;if(f[9]!==I)P=I&&a.jsxDEV(Q,{children:a.jsxDEV(X,{color:"error",children:"You must select at least one workflow to continue"},void 0,!1,void 0,this)},void 0,!1,void 0,this),f[9]=I,f[10]=P;else P=f[10];let A;if(f[11]!==b||f[12]!==P)A=a.jsxDEV(_0,{title:"Select GitHub workflows to install",subtitle:"We'll create a workflow file in your repository for each one you select.",onCancel:F,inputGuide:xf,children:[y,b,P]},void 0,!0,void 0,this),f[11]=b,f[12]=P,f[13]=A;else A=f[13];return A}function sf(W){return{label:W.label,value:W.value}}var i0,h0,a,$f;var D0=n(()=>{s();nf();rf();Ef();af();O0();i0=w(Y0(),1),h0=w(z0(),1),a=w(O(),1),$f=[{value:"claude",label:"@Claude Code - Tag @claude in issues and PR comments"},{value:"claude-review",label:"Claude Code Review - Automated code review on new PRs"}]});var V0="Add Claude Code GitHub Workflow",J0="https://github.com/anthropics/claude-code-action/blob/main/docs/setup.md",u0=`name: Claude Code
|
|
2
|
-
|
|
3
|
-
on:
|
|
4
|
-
issue_comment:
|
|
5
|
-
types: [created]
|
|
6
|
-
pull_request_review_comment:
|
|
7
|
-
types: [created]
|
|
8
|
-
issues:
|
|
9
|
-
types: [opened, assigned]
|
|
10
|
-
pull_request_review:
|
|
11
|
-
types: [submitted]
|
|
12
|
-
|
|
13
|
-
jobs:
|
|
14
|
-
claude:
|
|
15
|
-
if: |
|
|
16
|
-
(github.event_name == 'issue_comment' && contains(github.event.comment.body, '@claude')) ||
|
|
17
|
-
(github.event_name == 'pull_request_review_comment' && contains(github.event.comment.body, '@claude')) ||
|
|
18
|
-
(github.event_name == 'pull_request_review' && contains(github.event.review.body, '@claude')) ||
|
|
19
|
-
(github.event_name == 'issues' && (contains(github.event.issue.body, '@claude') || contains(github.event.issue.title, '@claude')))
|
|
20
|
-
runs-on: ubuntu-latest
|
|
21
|
-
permissions:
|
|
22
|
-
contents: read
|
|
23
|
-
pull-requests: read
|
|
24
|
-
issues: read
|
|
25
|
-
id-token: write
|
|
26
|
-
actions: read # Required for Claude to read CI results on PRs
|
|
27
|
-
steps:
|
|
28
|
-
- name: Checkout repository
|
|
29
|
-
uses: actions/checkout@v4
|
|
30
|
-
with:
|
|
31
|
-
fetch-depth: 1
|
|
32
|
-
|
|
33
|
-
- name: Run Claude Code
|
|
34
|
-
id: claude
|
|
35
|
-
uses: anthropics/claude-code-action@v1
|
|
36
|
-
with:
|
|
37
|
-
anthropic_api_key: \${{ secrets.ANTHROPIC_API_KEY }}
|
|
38
|
-
|
|
39
|
-
# This is an optional setting that allows Claude to read CI results on PRs
|
|
40
|
-
additional_permissions: |
|
|
41
|
-
actions: read
|
|
42
|
-
|
|
43
|
-
# Optional: Give a custom prompt to Claude. If this is not specified, Claude will perform the instructions specified in the comment that tagged it.
|
|
44
|
-
# prompt: 'Update the pull request description to include a summary of changes.'
|
|
45
|
-
|
|
46
|
-
# Optional: Add claude_args to customize behavior and configuration
|
|
47
|
-
# See https://github.com/anthropics/claude-code-action/blob/main/docs/usage.md
|
|
48
|
-
# or https://code.claude.com/docs/en/cli-reference for available options
|
|
49
|
-
# claude_args: '--allowed-tools Bash(gh pr:*)'
|
|
50
|
-
|
|
51
|
-
`,j0=`## \uD83E\uDD16 Installing Claude Code GitHub App
|
|
52
|
-
|
|
53
|
-
This PR adds a GitHub Actions workflow that enables Claude Code integration in our repository.
|
|
54
|
-
|
|
55
|
-
### What is Claude Code?
|
|
56
|
-
|
|
57
|
-
[Claude Code](https://claude.com/claude-code) is an AI coding agent that can help with:
|
|
58
|
-
- Bug fixes and improvements
|
|
59
|
-
- Documentation updates
|
|
60
|
-
- Implementing new features
|
|
61
|
-
- Code reviews and suggestions
|
|
62
|
-
- Writing tests
|
|
63
|
-
- And more!
|
|
64
|
-
|
|
65
|
-
### How it works
|
|
66
|
-
|
|
67
|
-
Once this PR is merged, we'll be able to interact with Claude by mentioning @claude in a pull request or issue comment.
|
|
68
|
-
Once the workflow is triggered, Claude will analyze the comment and surrounding context, and execute on the request in a GitHub action.
|
|
69
|
-
|
|
70
|
-
### Important Notes
|
|
71
|
-
|
|
72
|
-
- **This workflow won't take effect until this PR is merged**
|
|
73
|
-
- **@claude mentions won't work until after the merge is complete**
|
|
74
|
-
- The workflow runs automatically whenever Claude is mentioned in PR or issue comments
|
|
75
|
-
- Claude gets access to the entire PR or issue context including files, diffs, and previous comments
|
|
76
|
-
|
|
77
|
-
### Security
|
|
78
|
-
|
|
79
|
-
- Our Anthropic API key is securely stored as a GitHub Actions secret
|
|
80
|
-
- Only users with write access to the repository can trigger the workflow
|
|
81
|
-
- All Claude runs are stored in the GitHub Actions run history
|
|
82
|
-
- Claude's default tools are limited to reading/writing files and interacting with our repo by creating comments, branches, and commits.
|
|
83
|
-
- We can add more allowed tools by adding them to the workflow file like:
|
|
84
|
-
|
|
85
|
-
\`\`\`
|
|
86
|
-
allowed_tools: Bash(npm install),Bash(npm run build),Bash(npm run lint),Bash(npm run test)
|
|
87
|
-
\`\`\`
|
|
88
|
-
|
|
89
|
-
There's more information in the [Claude Code action repo](https://github.com/anthropics/claude-code-action).
|
|
90
|
-
|
|
91
|
-
After merging this PR, let's try mentioning @claude in a comment on any PR to get started!`,o0=`name: Claude Code Review
|
|
92
|
-
|
|
93
|
-
on:
|
|
94
|
-
pull_request:
|
|
95
|
-
types: [opened, synchronize, ready_for_review, reopened]
|
|
96
|
-
# Optional: Only run on specific file changes
|
|
97
|
-
# paths:
|
|
98
|
-
# - "src/**/*.ts"
|
|
99
|
-
# - "src/**/*.tsx"
|
|
100
|
-
# - "src/**/*.js"
|
|
101
|
-
# - "src/**/*.jsx"
|
|
102
|
-
|
|
103
|
-
jobs:
|
|
104
|
-
claude-review:
|
|
105
|
-
# Optional: Filter by PR author
|
|
106
|
-
# if: |
|
|
107
|
-
# github.event.pull_request.user.login == 'external-contributor' ||
|
|
108
|
-
# github.event.pull_request.user.login == 'new-developer' ||
|
|
109
|
-
# github.event.pull_request.author_association == 'FIRST_TIME_CONTRIBUTOR'
|
|
110
|
-
|
|
111
|
-
runs-on: ubuntu-latest
|
|
112
|
-
permissions:
|
|
113
|
-
contents: read
|
|
114
|
-
pull-requests: read
|
|
115
|
-
issues: read
|
|
116
|
-
id-token: write
|
|
117
|
-
|
|
118
|
-
steps:
|
|
119
|
-
- name: Checkout repository
|
|
120
|
-
uses: actions/checkout@v4
|
|
121
|
-
with:
|
|
122
|
-
fetch-depth: 1
|
|
123
|
-
|
|
124
|
-
- name: Run Claude Code Review
|
|
125
|
-
id: claude-review
|
|
126
|
-
uses: anthropics/claude-code-action@v1
|
|
127
|
-
with:
|
|
128
|
-
anthropic_api_key: \${{ secrets.ANTHROPIC_API_KEY }}
|
|
129
|
-
plugin_marketplaces: 'https://github.com/anthropics/claude-code.git'
|
|
130
|
-
plugins: 'code-review@claude-code-plugins'
|
|
131
|
-
prompt: '/code-review:code-review \${{ github.repository }}/pull/\${{ github.event.pull_request.number }}'
|
|
132
|
-
# See https://github.com/anthropics/claude-code-action/blob/main/docs/usage.md
|
|
133
|
-
# or https://code.claude.com/docs/en/cli-reference for available options
|
|
134
|
-
|
|
135
|
-
`;var H0=()=>{};function E0(W){let f=S0.c(55),{existingApiKey:q,apiKeyOrOAuthToken:Y,onApiKeyChange:I,onSubmit:M,onToggleUseExistingKey:G,onCreateOAuthToken:L,selectedOption:z,onSelectOption:H}=W,Z=z===void 0?q?"existing":L?"oauth":"new":z,[F,y]=n0.useState(0),m=L0(),[b]=y0(),P;if(f[0]!==q||f[1]!==L||f[2]!==H||f[3]!==G||f[4]!==Z)P=()=>{if(Z==="new"&&L)H?.("oauth");else if(Z==="oauth"&&q)H?.("existing"),G(!0)},f[0]=q,f[1]=L,f[2]=H,f[3]=G,f[4]=Z,f[5]=P;else P=f[5];let A=P,_;if(f[6]!==L||f[7]!==H||f[8]!==G||f[9]!==Z)_=()=>{if(Z==="existing")H?.(L?"oauth":"new"),G(!1);else if(Z==="oauth")H?.("new")},f[6]=L,f[7]=H,f[8]=G,f[9]=Z,f[10]=_;else _=f[10];let T=_,p;if(f[11]!==L||f[12]!==M||f[13]!==Z)p=()=>{if(Z==="oauth"&&L)L();else M()},f[11]=L,f[12]=M,f[13]=Z,f[14]=p;else p=f[14];let D=p,U=Z==="new",g;if(f[15]!==D||f[16]!==T||f[17]!==A)g={"confirm:previous":A,"confirm:next":T,"confirm:yes":D},f[15]=D,f[16]=T,f[17]=A,f[18]=g;else g=f[18];let J=!U,d;if(f[19]!==J)d={context:"Confirmation",isActive:J},f[19]=J,f[20]=d;else d=f[20];Z0(g,d);let B;if(f[21]!==T||f[22]!==A)B={"confirm:previous":A,"confirm:next":T},f[21]=T,f[22]=A,f[23]=B;else B=f[23];let R;if(f[24]!==U)R={context:"Confirmation",isActive:U},f[24]=U,f[25]=R;else R=f[25];Z0(B,R);let C;if(f[26]===Symbol.for("react.memo_cache_sentinel"))C=o.jsxDEV(Q,{flexDirection:"column",marginBottom:1,children:[o.jsxDEV(X,{bold:!0,children:"Install GitHub App"},void 0,!1,void 0,this),o.jsxDEV(X,{dimColor:!0,children:"Choose API key"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),f[26]=C;else C=f[26];let v;if(f[27]!==q||f[28]!==Z||f[29]!==b)v=q&&o.jsxDEV(Q,{marginBottom:1,children:o.jsxDEV(X,{children:[Z==="existing"?d0("success",b)("> "):" ","Use your existing Claude Code API key"]},void 0,!0,void 0,this)},void 0,!1,void 0,this),f[27]=q,f[28]=Z,f[29]=b,f[30]=v;else v=f[30];let N;if(f[31]!==L||f[32]!==Z||f[33]!==b)N=L&&o.jsxDEV(Q,{marginBottom:1,children:o.jsxDEV(X,{children:[Z==="oauth"?d0("success",b)("> "):" ","Create a long-lived token with your Claude subscription"]},void 0,!0,void 0,this)},void 0,!1,void 0,this),f[31]=L,f[32]=Z,f[33]=b,f[34]=N;else N=f[34];let V;if(f[35]!==Z||f[36]!==b)V=Z==="new"?d0("success",b)("> "):" ",f[35]=Z,f[36]=b,f[37]=V;else V=f[37];let X0;if(f[38]!==V)X0=o.jsxDEV(Q,{marginBottom:1,children:o.jsxDEV(X,{children:[V,"Enter a new API key"]},void 0,!0,void 0,this)},void 0,!1,void 0,this),f[38]=V,f[39]=X0;else X0=f[39];let $;if(f[40]!==Y||f[41]!==F||f[42]!==I||f[43]!==M||f[44]!==Z||f[45]!==m)$=Z==="new"&&o.jsxDEV(I0,{value:Y,onChange:I,onSubmit:M,onPaste:I,focus:!0,placeholder:"sk-ant… (Create a new key at https://platform.claude.com/settings/keys)",mask:"*",columns:m.columns,cursorOffset:F,onChangeCursorOffset:y,showCursor:!0},void 0,!1,void 0,this),f[40]=Y,f[41]=F,f[42]=I,f[43]=M,f[44]=Z,f[45]=m,f[46]=$;else $=f[46];let x;if(f[47]!==v||f[48]!==N||f[49]!==X0||f[50]!==$)x=o.jsxDEV(Q,{flexDirection:"column",borderStyle:"round",paddingX:1,children:[C,v,N,X0,$]},void 0,!0,void 0,this),f[47]=v,f[48]=N,f[49]=X0,f[50]=$,f[51]=x;else x=f[51];let f0;if(f[52]===Symbol.for("react.memo_cache_sentinel"))f0=o.jsxDEV(Q,{marginLeft:3,children:o.jsxDEV(X,{dimColor:!0,children:"↑/↓ to select · Enter to continue"},void 0,!1,void 0,this)},void 0,!1,void 0,this),f[52]=f0;else f0=f[52];let q0;if(f[53]!==x)q0=o.jsxDEV(o.Fragment,{children:[x,f0]},void 0,!0,void 0,this),f[53]=x,f[54]=q0;else q0=f[54];return q0}var S0,n0,o;var a0=n(()=>{w0();P0();s();b0();S0=w(Y0(),1),n0=w(z0(),1),o=w(O(),1)});function x0(W){let f=r0.c(42),{useExistingSecret:q,secretName:Y,onToggleUseExistingSecret:I,onSecretNameChange:M,onSubmit:G}=W,[L,z]=$0.useState(0),H=L0(),[Z]=y0(),F;if(f[0]!==I)F=()=>I(!0),f[0]=I,f[1]=F;else F=f[1];let y=F,m;if(f[2]!==I)m=()=>I(!1),f[2]=I,f[3]=m;else m=f[3];let b=m,P;if(f[4]!==b||f[5]!==y||f[6]!==G)P={"confirm:previous":y,"confirm:next":b,"confirm:yes":G},f[4]=b,f[5]=y,f[6]=G,f[7]=P;else P=f[7];let A;if(f[8]!==q)A={context:"Confirmation",isActive:q},f[8]=q,f[9]=A;else A=f[9];Z0(P,A);let _;if(f[10]!==b||f[11]!==y)_={"confirm:previous":y,"confirm:next":b},f[10]=b,f[11]=y,f[12]=_;else _=f[12];let T=!q,p;if(f[13]!==T)p={context:"Confirmation",isActive:T},f[13]=T,f[14]=p;else p=f[14];Z0(_,p);let D;if(f[15]===Symbol.for("react.memo_cache_sentinel"))D=l.jsxDEV(Q,{flexDirection:"column",marginBottom:1,children:[l.jsxDEV(X,{bold:!0,children:"Install GitHub App"},void 0,!1,void 0,this),l.jsxDEV(X,{dimColor:!0,children:"Setup API key secret"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),f[15]=D;else D=f[15];let U;if(f[16]===Symbol.for("react.memo_cache_sentinel"))U=l.jsxDEV(Q,{marginBottom:1,children:l.jsxDEV(X,{color:"warning",children:"ANTHROPIC_API_KEY already exists in repository secrets!"},void 0,!1,void 0,this)},void 0,!1,void 0,this),f[16]=U;else U=f[16];let g;if(f[17]===Symbol.for("react.memo_cache_sentinel"))g=l.jsxDEV(Q,{marginBottom:1,children:l.jsxDEV(X,{children:"Would you like to:"},void 0,!1,void 0,this)},void 0,!1,void 0,this),f[17]=g;else g=f[17];let J;if(f[18]!==Z||f[19]!==q)J=q?d0("success",Z)("> "):" ",f[18]=Z,f[19]=q,f[20]=J;else J=f[20];let d;if(f[21]!==J)d=l.jsxDEV(Q,{marginBottom:1,children:l.jsxDEV(X,{children:[J,"Use the existing API key"]},void 0,!0,void 0,this)},void 0,!1,void 0,this),f[21]=J,f[22]=d;else d=f[22];let B;if(f[23]!==Z||f[24]!==q)B=!q?d0("success",Z)("> "):" ",f[23]=Z,f[24]=q,f[25]=B;else B=f[25];let R;if(f[26]!==B)R=l.jsxDEV(Q,{marginBottom:1,children:l.jsxDEV(X,{children:[B,"Create a new secret with a different name"]},void 0,!0,void 0,this)},void 0,!1,void 0,this),f[26]=B,f[27]=R;else R=f[27];let C;if(f[28]!==L||f[29]!==M||f[30]!==G||f[31]!==Y||f[32]!==H||f[33]!==q)C=!q&&l.jsxDEV(l.Fragment,{children:[l.jsxDEV(Q,{marginBottom:1,children:l.jsxDEV(X,{children:"Enter new secret name (alphanumeric with underscores):"},void 0,!1,void 0,this)},void 0,!1,void 0,this),l.jsxDEV(I0,{value:Y,onChange:M,onSubmit:G,focus:!0,placeholder:"e.g., CLAUDE_API_KEY",columns:H.columns,cursorOffset:L,onChangeCursorOffset:z,showCursor:!0},void 0,!1,void 0,this)]},void 0,!0,void 0,this),f[28]=L,f[29]=M,f[30]=G,f[31]=Y,f[32]=H,f[33]=q,f[34]=C;else C=f[34];let v;if(f[35]!==d||f[36]!==R||f[37]!==C)v=l.jsxDEV(Q,{flexDirection:"column",borderStyle:"round",paddingX:1,children:[D,U,g,d,R,C]},void 0,!0,void 0,this),f[35]=d,f[36]=R,f[37]=C,f[38]=v;else v=f[38];let N;if(f[39]===Symbol.for("react.memo_cache_sentinel"))N=l.jsxDEV(Q,{marginLeft:3,children:l.jsxDEV(X,{dimColor:!0,children:"↑/↓ to select · Enter to continue"},void 0,!1,void 0,this)},void 0,!1,void 0,this),f[39]=N;else N=f[39];let V;if(f[40]!==v)V=l.jsxDEV(l.Fragment,{children:[v,N]},void 0,!0,void 0,this),f[40]=v,f[41]=V;else V=f[41];return V}var r0,$0,l;var s0=n(()=>{w0();P0();s();b0();r0=w(Y0(),1),$0=w(z0(),1),l=w(O(),1)});function t0(){let W=e0.c(1),f;if(W[0]===Symbol.for("react.memo_cache_sentinel"))f=ff.jsxDEV(X,{children:"Checking GitHub CLI installation…"},void 0,!1,void 0,this),W[0]=f;else f=W[0];return f}var e0,ff;var qf=n(()=>{s();e0=w(Y0(),1),ff=w(O(),1)});function Xf(W){let f=Yf.c(49),{currentRepo:q,useCurrentRepo:Y,repoUrl:I,onRepoUrlChange:M,onSubmit:G,onToggleUseCurrentRepo:L}=W,[z,H]=K0.useState(0),[Z,F]=K0.useState(!1),m=L0().columns,b;if(f[0]!==q||f[1]!==G||f[2]!==I||f[3]!==Y)b=()=>{if(!(Y?q:I)?.trim()){F(!0);return}G()},f[0]=q,f[1]=G,f[2]=I,f[3]=Y,f[4]=b;else b=f[4];let P=b,A=!Y||!q,_;if(f[5]!==L)_=()=>{L(!0),F(!1)},f[5]=L,f[6]=_;else _=f[6];let T=_,p;if(f[7]!==L)p=()=>{L(!1),F(!1)},f[7]=L,f[8]=p;else p=f[8];let D=p,U;if(f[9]!==D||f[10]!==T||f[11]!==P)U={"confirm:previous":T,"confirm:next":D,"confirm:yes":P},f[9]=D,f[10]=T,f[11]=P,f[12]=U;else U=f[12];let g=!A,J;if(f[13]!==g)J={context:"Confirmation",isActive:g},f[13]=g,f[14]=J;else J=f[14];Z0(U,J);let d;if(f[15]!==D||f[16]!==T)d={"confirm:previous":T,"confirm:next":D},f[15]=D,f[16]=T,f[17]=d;else d=f[17];let B;if(f[18]!==A)B={context:"Confirmation",isActive:A},f[18]=A,f[19]=B;else B=f[19];Z0(d,B);let R;if(f[20]===Symbol.for("react.memo_cache_sentinel"))R=u.jsxDEV(Q,{flexDirection:"column",marginBottom:1,children:[u.jsxDEV(X,{bold:!0,children:"Install GitHub App"},void 0,!1,void 0,this),u.jsxDEV(X,{dimColor:!0,children:"Select GitHub repository"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),f[20]=R;else R=f[20];let C;if(f[21]!==q||f[22]!==Y)C=q&&u.jsxDEV(Q,{marginBottom:1,children:u.jsxDEV(X,{bold:Y,color:Y?"permission":void 0,children:[Y?"> ":" ","Use current repository: ",q]},void 0,!0,void 0,this)},void 0,!1,void 0,this),f[21]=q,f[22]=Y,f[23]=C;else C=f[23];let v=!Y||!q,N=!Y||!q?"permission":void 0,V=!Y||!q?"> ":" ",X0=q?"Enter a different repository":"Enter repository",$;if(f[24]!==v||f[25]!==N||f[26]!==V||f[27]!==X0)$=u.jsxDEV(Q,{marginBottom:1,children:u.jsxDEV(X,{bold:v,color:N,children:[V,X0]},void 0,!0,void 0,this)},void 0,!1,void 0,this),f[24]=v,f[25]=N,f[26]=V,f[27]=X0,f[28]=$;else $=f[28];let x;if(f[29]!==q||f[30]!==z||f[31]!==P||f[32]!==M||f[33]!==I||f[34]!==m||f[35]!==Y)x=(!Y||!q)&&u.jsxDEV(Q,{marginLeft:2,marginBottom:1,children:u.jsxDEV(I0,{value:I,onChange:(N0)=>{M(N0),F(!1)},onSubmit:P,focus:!0,placeholder:"Enter a repo as owner/repo or https://github.com/owner/repo…",columns:m,cursorOffset:z,onChangeCursorOffset:H,showCursor:!0},void 0,!1,void 0,this)},void 0,!1,void 0,this),f[29]=q,f[30]=z,f[31]=P,f[32]=M,f[33]=I,f[34]=m,f[35]=Y,f[36]=x;else x=f[36];let f0;if(f[37]!==C||f[38]!==$||f[39]!==x)f0=u.jsxDEV(Q,{flexDirection:"column",borderStyle:"round",paddingX:1,children:[R,C,$,x]},void 0,!0,void 0,this),f[37]=C,f[38]=$,f[39]=x,f[40]=f0;else f0=f[40];let q0;if(f[41]!==Z)q0=Z&&u.jsxDEV(Q,{marginLeft:3,marginBottom:1,children:u.jsxDEV(X,{color:"error",children:"Please enter a repository name to continue"},void 0,!1,void 0,this)},void 0,!1,void 0,this),f[41]=Z,f[42]=q0;else q0=f[42];let C0=q?"↑/↓ to select · ":"",G0;if(f[43]!==C0)G0=u.jsxDEV(Q,{marginLeft:3,children:u.jsxDEV(X,{dimColor:!0,children:[C0,"Enter to continue"]},void 0,!0,void 0,this)},void 0,!1,void 0,this),f[43]=C0,f[44]=G0;else G0=f[44];let F0;if(f[45]!==f0||f[46]!==q0||f[47]!==G0)F0=u.jsxDEV(u.Fragment,{children:[f0,q0,G0]},void 0,!0,void 0,this),f[45]=f0,f[46]=q0,f[47]=G0,f[48]=F0;else F0=f[48];return F0}var Yf,K0,u;var Jf=n(()=>{w0();P0();s();b0();Yf=w(Y0(),1),K0=w(z0(),1),u=w(O(),1)});function Zf(W){let f=Qf.c(10),{currentWorkflowInstallStep:q,secretExists:Y,useExistingSecret:I,secretName:M,skipWorkflow:G,selectedWorkflows:L}=W,z=G===void 0?!1:G,H;if(f[0]!==Y||f[1]!==M||f[2]!==L||f[3]!==z||f[4]!==I)H=z?["Getting repository information",Y&&I?"Using existing API key secret":`Setting up ${M} secret`]:["Getting repository information","Creating branch",L.length>1?"Creating workflow files":"Creating workflow file",Y&&I?"Using existing API key secret":`Setting up ${M} secret`,"Opening pull request page"],f[0]=Y,f[1]=M,f[2]=L,f[3]=z,f[4]=I,f[5]=H;else H=f[5];let Z=H,F;if(f[6]===Symbol.for("react.memo_cache_sentinel"))F=Q0.jsxDEV(Q,{flexDirection:"column",marginBottom:1,children:[Q0.jsxDEV(X,{bold:!0,children:"Install GitHub App"},void 0,!1,void 0,this),Q0.jsxDEV(X,{dimColor:!0,children:"Create GitHub Actions workflow"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),f[6]=F;else F=f[6];let y;if(f[7]!==q||f[8]!==Z)y=Q0.jsxDEV(Q0.Fragment,{children:Q0.jsxDEV(Q,{flexDirection:"column",borderStyle:"round",paddingX:1,children:[F,Z.map((m,b)=>{let P="pending";if(b<q)P="completed";else if(b===q)P="in-progress";return Q0.jsxDEV(Q,{children:Q0.jsxDEV(X,{color:P==="completed"?"success":P==="in-progress"?"warning":void 0,children:[P==="completed"?"✓ ":"",m,P==="in-progress"?"…":""]},void 0,!0,void 0,this)},b,!1,void 0,this)})]},void 0,!0,void 0,this)},void 0,!1,void 0,this),f[7]=q,f[8]=Z,f[9]=y;else y=f[9];return y}var Qf,Q0;var Lf=n(()=>{s();Qf=w(Y0(),1),Q0=w(O(),1)});function df(W){let f=If.c(15),{error:q,errorReason:Y,errorInstructions:I}=W,M;if(f[0]===Symbol.for("react.memo_cache_sentinel"))M=i.jsxDEV(Q,{flexDirection:"column",marginBottom:1,children:i.jsxDEV(X,{bold:!0,children:"Install GitHub App"},void 0,!1,void 0,this)},void 0,!1,void 0,this),f[0]=M;else M=f[0];let G;if(f[1]!==q)G=i.jsxDEV(X,{color:"error",children:["Error: ",q]},void 0,!0,void 0,this),f[1]=q,f[2]=G;else G=f[2];let L;if(f[3]!==Y)L=Y&&i.jsxDEV(Q,{marginTop:1,children:i.jsxDEV(X,{dimColor:!0,children:["Reason: ",Y]},void 0,!0,void 0,this)},void 0,!1,void 0,this),f[3]=Y,f[4]=L;else L=f[4];let z;if(f[5]!==I)z=I&&I.length>0&&i.jsxDEV(Q,{flexDirection:"column",marginTop:1,children:[i.jsxDEV(X,{dimColor:!0,children:"How to fix:"},void 0,!1,void 0,this),I.map(ef)]},void 0,!0,void 0,this),f[5]=I,f[6]=z;else z=f[6];let H;if(f[7]===Symbol.for("react.memo_cache_sentinel"))H=i.jsxDEV(Q,{marginTop:1,children:i.jsxDEV(X,{dimColor:!0,children:["For manual setup instructions, see:"," ",i.jsxDEV(X,{color:"claude",children:J0},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),f[7]=H;else H=f[7];let Z;if(f[8]!==G||f[9]!==L||f[10]!==z)Z=i.jsxDEV(Q,{flexDirection:"column",borderStyle:"round",paddingX:1,children:[M,G,L,z,H]},void 0,!0,void 0,this),f[8]=G,f[9]=L,f[10]=z,f[11]=Z;else Z=f[11];let F;if(f[12]===Symbol.for("react.memo_cache_sentinel"))F=i.jsxDEV(Q,{marginLeft:3,children:i.jsxDEV(X,{dimColor:!0,children:"Press any key to exit"},void 0,!1,void 0,this)},void 0,!1,void 0,this),f[12]=F;else F=f[12];let y;if(f[13]!==Z)y=i.jsxDEV(i.Fragment,{children:[Z,F]},void 0,!0,void 0,this),f[13]=Z,f[14]=y;else y=f[14];return y}function ef(W,f){return i.jsxDEV(Q,{marginLeft:2,children:[i.jsxDEV(X,{dimColor:!0,children:"• "},void 0,!1,void 0,this),i.jsxDEV(X,{children:W},void 0,!1,void 0,this)]},f,!0,void 0,this)}var If,i;var Gf=n(()=>{H0();s();If=w(Y0(),1),i=w(O(),1)});function Hf(W){let f=zf.c(16),{repoName:q,onSelectAction:Y}=W,I;if(f[0]===Symbol.for("react.memo_cache_sentinel"))I=[{label:"Update workflow file with latest version",value:"update"},{label:"Skip workflow update (configure secrets only)",value:"skip"},{label:"Exit without making changes",value:"exit"}],f[0]=I;else I=f[0];let M=I,G;if(f[1]!==Y)G=(A)=>{Y(A)},f[1]=Y,f[2]=G;else G=f[2];let L=G,z;if(f[3]!==Y)z=()=>{Y("exit")},f[3]=Y,f[4]=z;else z=f[4];let H=z,Z;if(f[5]===Symbol.for("react.memo_cache_sentinel"))Z=r.jsxDEV(X,{bold:!0,children:"Existing Workflow Found"},void 0,!1,void 0,this),f[5]=Z;else Z=f[5];let F;if(f[6]!==q)F=r.jsxDEV(Q,{flexDirection:"column",marginBottom:1,children:[Z,r.jsxDEV(X,{dimColor:!0,children:["Repository: ",q]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),f[6]=q,f[7]=F;else F=f[7];let y;if(f[8]===Symbol.for("react.memo_cache_sentinel"))y=r.jsxDEV(Q,{flexDirection:"column",marginBottom:1,children:[r.jsxDEV(X,{children:["A Claude workflow file already exists at"," ",r.jsxDEV(X,{color:"claude",children:".github/workflows/claude.yml"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),r.jsxDEV(X,{dimColor:!0,children:"What would you like to do?"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),f[8]=y;else y=f[8];let m;if(f[9]!==H||f[10]!==L)m=r.jsxDEV(Q,{flexDirection:"column",children:r.jsxDEV(Mf,{options:M,onChange:L,onCancel:H},void 0,!1,void 0,this)},void 0,!1,void 0,this),f[9]=H,f[10]=L,f[11]=m;else m=f[11];let b;if(f[12]===Symbol.for("react.memo_cache_sentinel"))b=r.jsxDEV(Q,{marginTop:1,children:r.jsxDEV(X,{dimColor:!0,children:["View the latest workflow template at:"," ",r.jsxDEV(X,{color:"claude",children:"https://github.com/anthropics/claude-code-action/blob/main/examples/claude.yml"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),f[12]=b;else b=f[12];let P;if(f[13]!==F||f[14]!==m)P=r.jsxDEV(Q,{flexDirection:"column",borderStyle:"round",borderDimColor:!0,paddingX:1,children:[F,y,m,b]},void 0,!0,void 0,this),f[13]=F,f[14]=m,f[15]=P;else P=f[15];return P}var zf,r;var bf=n(()=>{tf();s();zf=w(Y0(),1),r=w(O(),1)});function mf(W){let f=Ff.c(12),{repoUrl:q,onSubmit:Y}=W,I;if(f[0]===Symbol.for("react.memo_cache_sentinel"))I={context:"Confirmation"},f[0]=I;else I=f[0];U0("confirm:yes",Y,I);let M;if(f[1]===Symbol.for("react.memo_cache_sentinel"))M=h.jsxDEV(Q,{flexDirection:"column",marginBottom:1,children:h.jsxDEV(X,{bold:!0,children:"Install the Claude GitHub App"},void 0,!1,void 0,this)},void 0,!1,void 0,this),f[1]=M;else M=f[1];let G;if(f[2]===Symbol.for("react.memo_cache_sentinel"))G=h.jsxDEV(Q,{marginBottom:1,children:h.jsxDEV(X,{children:"Opening browser to install the Claude GitHub App…"},void 0,!1,void 0,this)},void 0,!1,void 0,this),f[2]=G;else G=f[2];let L;if(f[3]===Symbol.for("react.memo_cache_sentinel"))L=h.jsxDEV(Q,{marginBottom:1,children:h.jsxDEV(X,{children:"If your browser doesn't open automatically, visit:"},void 0,!1,void 0,this)},void 0,!1,void 0,this),f[3]=L;else L=f[3];let z;if(f[4]===Symbol.for("react.memo_cache_sentinel"))z=h.jsxDEV(Q,{marginBottom:1,children:h.jsxDEV(X,{underline:!0,children:"https://github.com/apps/claude"},void 0,!1,void 0,this)},void 0,!1,void 0,this),f[4]=z;else z=f[4];let H;if(f[5]!==q)H=h.jsxDEV(Q,{marginBottom:1,children:h.jsxDEV(X,{children:["Please install the app for repository: ",h.jsxDEV(X,{bold:!0,children:q},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),f[5]=q,f[6]=H;else H=f[6];let Z;if(f[7]===Symbol.for("react.memo_cache_sentinel"))Z=h.jsxDEV(Q,{marginBottom:1,children:h.jsxDEV(X,{dimColor:!0,children:"Important: Make sure to grant access to this specific repository"},void 0,!1,void 0,this)},void 0,!1,void 0,this),f[7]=Z;else Z=f[7];let F;if(f[8]===Symbol.for("react.memo_cache_sentinel"))F=h.jsxDEV(Q,{children:h.jsxDEV(X,{bold:!0,color:"permission",children:["Press Enter once you've installed the app",B0.ellipsis]},void 0,!0,void 0,this)},void 0,!1,void 0,this),f[8]=F;else F=f[8];let y;if(f[9]===Symbol.for("react.memo_cache_sentinel"))y=h.jsxDEV(Q,{marginTop:1,children:h.jsxDEV(X,{dimColor:!0,children:["Having trouble? See manual setup instructions at:"," ",h.jsxDEV(X,{color:"claude",children:J0},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),f[9]=y;else y=f[9];let m;if(f[10]!==H)m=h.jsxDEV(Q,{flexDirection:"column",borderStyle:"round",borderDimColor:!0,paddingX:1,children:[M,G,L,z,H,Z,F,y]},void 0,!0,void 0,this),f[10]=H,f[11]=m;else m=f[11];return m}var Ff,h;var yf=n(()=>{Wf();H0();s();b0();Ff=w(Y0(),1),h=w(O(),1)});function Cf({onSuccess:W,onCancel:f}){let[q,Y]=S.useState({state:"starting"}),[I]=S.useState(()=>new Rf),[M,G]=S.useState(""),[L,z]=S.useState(0),[H,Z]=S.useState(!1),[F,y]=S.useState(!1),m=S.useRef(new Set),b=S.useRef(void 0),P=L0(),A=Math.max(50,P.columns-Pf.length-4);function _(U){if(q.state!=="error")return;if(U.preventDefault(),U.key==="return"&&q.toRetry)G(""),z(0),Y({state:"about_to_retry",nextState:q.toRetry});else f()}async function T(U,g){try{let[J,d]=U.split("#");if(!J||!d){Y({state:"error",message:"Invalid code. Please make sure the full code was copied",toRetry:{state:"waiting_for_login",url:g}});return}K("tengu_oauth_manual_entry",{}),I.handleManualAuthCodeInput({authorizationCode:J,state:d})}catch(J){W0(J),Y({state:"error",message:J.message,toRetry:{state:"waiting_for_login",url:g}})}}let p=S.useCallback(async()=>{m.current.forEach((U)=>clearTimeout(U)),m.current.clear();try{let U=await I.startOAuthFlow(async(J)=>{Y({state:"waiting_for_login",url:J});let d=setTimeout(Z,3000,!0);m.current.add(d)},{loginWithClaudeAi:!0,inferenceOnly:!0,expiresIn:31536000});Y({state:"processing"}),Bf(U);let g=setTimeout((J,d,B,R)=>{J({state:"success",token:d});let C=setTimeout(B,1000,d);R.current.add(C)},100,Y,U.accessToken,W,m);m.current.add(g)}catch(U){let g=U.message;Y({state:"error",message:g,toRetry:{state:"starting"}}),W0(U),K("tengu_oauth_error",{error:g})}},[I,W]);S.useEffect(()=>{if(q.state==="starting")p()},[q.state,p]),S.useEffect(()=>{if(q.state==="about_to_retry"){let U=setTimeout((g,J,d)=>{J(g.state==="waiting_for_login"),d(g)},500,q.nextState,Z,Y);m.current.add(U)}},[q]),S.useEffect(()=>{if(M==="c"&&q.state==="waiting_for_login"&&H&&!F)cf(q.url).then((U)=>{if(U)process.stdout.write(U);y(!0),clearTimeout(b.current),b.current=setTimeout(y,2000,!1)}),G("")},[M,q,H,F]),S.useEffect(()=>{let U=m.current;return()=>{I.cleanup(),U.forEach((g)=>clearTimeout(g)),U.clear(),clearTimeout(b.current)}},[I]);function D(){switch(q.state){case"starting":return c.jsxDEV(Q,{children:[c.jsxDEV(c0,{},void 0,!1,void 0,this),c.jsxDEV(X,{children:"Starting authentication…"},void 0,!1,void 0,this)]},void 0,!0,void 0,this);case"waiting_for_login":return c.jsxDEV(Q,{flexDirection:"column",gap:1,children:[!H&&c.jsxDEV(Q,{children:[c.jsxDEV(c0,{},void 0,!1,void 0,this),c.jsxDEV(X,{children:"Opening browser to sign in with your Claude account…"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),H&&c.jsxDEV(Q,{children:[c.jsxDEV(X,{children:Pf},void 0,!1,void 0,this),c.jsxDEV(I0,{value:M,onChange:G,onSubmit:(U)=>T(U,q.url),cursorOffset:L,onChangeCursorOffset:z,columns:A},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this);case"processing":return c.jsxDEV(Q,{children:[c.jsxDEV(c0,{},void 0,!1,void 0,this),c.jsxDEV(X,{children:"Processing authentication…"},void 0,!1,void 0,this)]},void 0,!0,void 0,this);case"success":return c.jsxDEV(Q,{flexDirection:"column",gap:1,children:[c.jsxDEV(X,{color:"success",children:"✓ Authentication token created successfully!"},void 0,!1,void 0,this),c.jsxDEV(X,{dimColor:!0,children:"Using token for GitHub Actions setup…"},void 0,!1,void 0,this)]},void 0,!0,void 0,this);case"error":return c.jsxDEV(Q,{flexDirection:"column",gap:1,children:[c.jsxDEV(X,{color:"error",children:["OAuth error: ",q.message]},void 0,!0,void 0,this),q.toRetry?c.jsxDEV(X,{dimColor:!0,children:"Press Enter to try again, or any other key to cancel"},void 0,!1,void 0,this):c.jsxDEV(X,{dimColor:!0,children:"Press any key to return to API key selection"},void 0,!1,void 0,this)]},void 0,!0,void 0,this);case"about_to_retry":return c.jsxDEV(Q,{flexDirection:"column",gap:1,children:c.jsxDEV(X,{color:"permission",children:"Retrying…"},void 0,!1,void 0,this)},void 0,!1,void 0,this);default:return null}}return c.jsxDEV(Q,{flexDirection:"column",gap:1,tabIndex:0,autoFocus:!0,onKeyDown:_,children:[q.state==="starting"&&c.jsxDEV(Q,{flexDirection:"column",gap:1,paddingBottom:1,children:[c.jsxDEV(X,{bold:!0,children:"Create Authentication Token"},void 0,!1,void 0,this),c.jsxDEV(X,{dimColor:!0,children:"Creating a long-lived token for GitHub Actions"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),q.state!=="success"&&q.state!=="starting"&&q.state!=="processing"&&c.jsxDEV(Q,{flexDirection:"column",gap:1,paddingBottom:1,children:[c.jsxDEV(X,{bold:!0,children:"Create Authentication Token"},void 0,!1,void 0,this),c.jsxDEV(X,{dimColor:!0,children:"Creating a long-lived token for GitHub Actions"},void 0,!1,void 0,this)]},"header",!0,void 0,this),q.state==="waiting_for_login"&&H&&c.jsxDEV(Q,{flexDirection:"column",gap:1,paddingBottom:1,children:[c.jsxDEV(Q,{paddingX:1,children:[c.jsxDEV(X,{dimColor:!0,children:["Browser didn't open? Use the url below to sign in"," "]},void 0,!0,void 0,this),F?c.jsxDEV(X,{color:"success",children:"(Copied!)"},void 0,!1,void 0,this):c.jsxDEV(X,{dimColor:!0,children:c.jsxDEV(M0,{shortcut:"c",action:"copy",parens:!0},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),c.jsxDEV(m0,{url:q.url,children:c.jsxDEV(X,{dimColor:!0,children:q.url},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},"urlToCopy",!0,void 0,this),c.jsxDEV(Q,{paddingLeft:1,flexDirection:"column",gap:1,children:D()},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var S,c,Pf="Paste code here if prompted > ";var Kf=n(()=>{A0();O0();Yq();w0();P0();fq();s();qq();Uf();wf();S=w(z0(),1),c=w(O(),1)});function Af(W){let f=W.trim(),q=f.match(/^(?<owner>[^/:\s]+)\/(?<repo>[^/\s]+?)(?:\.git)?\/?$/i);if(q?.groups?.owner&&q.groups.repo)return`${q.groups.owner}/${q.groups.repo}`.replace(/\.git$/i,"");let Y=f.match(/^(?:https?:\/\/)?(?:www\.)?github\.com\/(?<owner>[^/:\s]+)\/(?<repo>[^/\s]+?)(?:\.git)?\/?$/i);if(Y?.groups?.owner&&Y.groups.repo)return`${Y.groups.owner}/${Y.groups.repo}`.replace(/\.git$/i,"");let I=f.match(/^(?:git@|ssh:\/\/git@)(?:www\.)?github\.com[:/](?<owner>[^/:\s]+)\/(?<repo>[^/\s]+?)(?:\.git)?\/?$/i);if(I?.groups?.owner&&I.groups.repo)return`${I.groups.owner}/${I.groups.repo}`;if(/^[a-z][a-z0-9+.-]*:\/\//i.test(f))return null;try{let M=new URL(f),G=M.hostname.toLowerCase();if(G!=="github.com"&&G!=="www.github.com")return null;let L=M.pathname.replace(/^\/+|\/+$/g,"").split("/").filter(Boolean);if(L.length<2)return null;return`${L[0]}/${L[1]}`.replace(/\.git$/i,"")}catch{return null}}var gf=()=>{};function Nf(W){let f=kf.c(21),{secretExists:q,useExistingSecret:Y,secretName:I,skipWorkflow:M}=W,G=M===void 0?!1:M,L;if(f[0]===Symbol.for("react.memo_cache_sentinel"))L=k.jsxDEV(Q,{flexDirection:"column",marginBottom:1,children:[k.jsxDEV(X,{bold:!0,children:"Install GitHub App"},void 0,!1,void 0,this),k.jsxDEV(X,{dimColor:!0,children:"Success"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),f[0]=L;else L=f[0];let z;if(f[1]!==G)z=!G&&k.jsxDEV(X,{color:"success",children:"✓ GitHub Actions workflow created!"},void 0,!1,void 0,this),f[1]=G,f[2]=z;else z=f[2];let H;if(f[3]!==q||f[4]!==Y)H=q&&Y&&k.jsxDEV(Q,{marginTop:1,children:k.jsxDEV(X,{color:"success",children:"✓ Using existing ANTHROPIC_API_KEY secret"},void 0,!1,void 0,this)},void 0,!1,void 0,this),f[3]=q,f[4]=Y,f[5]=H;else H=f[5];let Z;if(f[6]!==q||f[7]!==I||f[8]!==Y)Z=(!q||!Y)&&k.jsxDEV(Q,{marginTop:1,children:k.jsxDEV(X,{color:"success",children:["✓ API key saved as ",I," secret"]},void 0,!0,void 0,this)},void 0,!1,void 0,this),f[6]=q,f[7]=I,f[8]=Y,f[9]=Z;else Z=f[9];let F;if(f[10]===Symbol.for("react.memo_cache_sentinel"))F=k.jsxDEV(Q,{marginTop:1,children:k.jsxDEV(X,{children:"Next steps:"},void 0,!1,void 0,this)},void 0,!1,void 0,this),f[10]=F;else F=f[10];let y;if(f[11]!==G)y=G?k.jsxDEV(k.Fragment,{children:[k.jsxDEV(X,{children:"1. Install the Claude GitHub App if you haven't already"},void 0,!1,void 0,this),k.jsxDEV(X,{children:"2. Your workflow file was kept unchanged"},void 0,!1,void 0,this),k.jsxDEV(X,{children:"3. API key is configured and ready to use"},void 0,!1,void 0,this)]},void 0,!0,void 0,this):k.jsxDEV(k.Fragment,{children:[k.jsxDEV(X,{children:"1. A pre-filled PR page has been created"},void 0,!1,void 0,this),k.jsxDEV(X,{children:"2. Install the Claude GitHub App if you haven't already"},void 0,!1,void 0,this),k.jsxDEV(X,{children:"3. Merge the PR to enable Claude PR assistance"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),f[11]=G,f[12]=y;else y=f[12];let m;if(f[13]!==z||f[14]!==H||f[15]!==Z||f[16]!==y)m=k.jsxDEV(Q,{flexDirection:"column",borderStyle:"round",paddingX:1,children:[L,z,H,Z,F,y]},void 0,!0,void 0,this),f[13]=z,f[14]=H,f[15]=Z,f[16]=y,f[17]=m;else m=f[17];let b;if(f[18]===Symbol.for("react.memo_cache_sentinel"))b=k.jsxDEV(Q,{marginLeft:3,children:k.jsxDEV(X,{dimColor:!0,children:"Press any key to exit"},void 0,!1,void 0,this)},void 0,!1,void 0,this),f[18]=b;else b=f[18];let P;if(f[19]!==m)P=k.jsxDEV(k.Fragment,{children:[m,b]},void 0,!0,void 0,this),f[19]=m,f[20]=P;else P=f[20];return P}var kf,k;var Of=n(()=>{s();kf=w(Y0(),1),k=w(O(),1)});async function Jq(W,f,q,Y,I,M,G){let L=await e("gh",["api",`repos/${W}/contents/${q}`,"--jq",".sha"]),z=null;if(L.code===0)z=L.stdout.trim();let H=Y;if(I==="CLAUDE_CODE_OAUTH_TOKEN")H=Y.replace(/anthropic_api_key: \$\{\{ secrets\.ANTHROPIC_API_KEY \}\}/g,"claude_code_oauth_token: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }}");else if(I!=="ANTHROPIC_API_KEY")H=Y.replace(/anthropic_api_key: \$\{\{ secrets\.ANTHROPIC_API_KEY \}\}/g,`anthropic_api_key: \${{ secrets.${I} }}`);let Z=Buffer.from(H).toString("base64"),F=["api","--method","PUT",`repos/${W}/contents/${q}`,"-f",`message=${z?`"Update ${M}"`:`"${M}"`}`,"-f",`content=${Z}`,"-f",`branch=${f}`];if(z)F.push("-f",`sha=${z}`);let y=await e("gh",F);if(y.code!==0){if(y.stderr.includes("422")&&y.stderr.includes("sha"))throw K("tengu_setup_github_actions_failed",{reason:"failed_to_create_workflow_file",exit_code:y.code,...G}),Error(`Failed to create workflow file ${q}: A Claude workflow file already exists in this repository. Please remove it first or update it manually.`);K("tengu_setup_github_actions_failed",{reason:"failed_to_create_workflow_file",exit_code:y.code,...G});let m=`
|
|
136
|
-
|
|
137
|
-
Need help? Common issues:
|
|
138
|
-
`+`· Permission denied → Run: gh auth refresh -h github.com -s repo,workflow
|
|
139
|
-
`+`· Not authorized → Ensure you have admin access to the repository
|
|
140
|
-
`+"· For manual setup → Visit: https://github.com/anthropics/claude-code-action";throw Error(`Failed to create workflow file ${q}: ${y.stderr}${m}`)}}async function Tf(W,f,q,Y,I=!1,M,G,L){try{K("tengu_setup_github_actions_started",{skip_workflow:I,has_api_key:!!f,using_default_secret_name:q==="ANTHROPIC_API_KEY",selected_claude_workflow:M.includes("claude"),selected_claude_review_workflow:M.includes("claude-review"),...L});let z=await e("gh",["api",`repos/${W}`,"--jq",".id"]);if(z.code!==0)throw K("tengu_setup_github_actions_failed",{reason:"repo_not_found",exit_code:z.code,...L}),Error(`Failed to access repository ${W}: ${z.stderr}`);let H=await e("gh",["api",`repos/${W}`,"--jq",".default_branch"]);if(H.code!==0)throw K("tengu_setup_github_actions_failed",{reason:"failed_to_get_default_branch",exit_code:H.code,...L}),Error(`Failed to get default branch: ${H.stderr}`);let Z=H.stdout.trim(),F=await e("gh",["api",`repos/${W}/git/ref/heads/${Z}`,"--jq",".object.sha"]);if(F.code!==0)throw K("tengu_setup_github_actions_failed",{reason:"failed_to_get_branch_sha",exit_code:F.code,...L}),Error(`Failed to get branch SHA: ${F.stderr}`);let y=F.stdout.trim(),m=null;if(!I){Y(),m=`add-claude-github-actions-${Date.now()}`;let b=await e("gh",["api","--method","POST",`repos/${W}/git/refs`,"-f",`ref=refs/heads/${m}`,"-f",`sha=${y}`]);if(b.code!==0)throw K("tengu_setup_github_actions_failed",{reason:"failed_to_create_branch",exit_code:b.code,...L}),Error(`Failed to create branch: ${b.stderr}`);Y();let P=[];if(M.includes("claude"))P.push({path:".github/workflows/claude.yml",content:u0,message:"Claude PR Assistant workflow"});if(M.includes("claude-review"))P.push({path:".github/workflows/claude-code-review.yml",content:o0,message:"Claude Code Review workflow"});for(let A of P)await Jq(W,m,A.path,A.content,q,A.message,L)}if(Y(),f){let b=await e("gh",["secret","set",q,"--body",f,"--repo",W]);if(b.code!==0){K("tengu_setup_github_actions_failed",{reason:"failed_to_set_api_key_secret",exit_code:b.code,...L});let P=`
|
|
141
|
-
|
|
142
|
-
Need help? Common issues:
|
|
143
|
-
`+`· Permission denied → Run: gh auth refresh -h github.com -s repo
|
|
144
|
-
`+`· Not authorized → Ensure you have admin access to the repository
|
|
145
|
-
`+"· For manual setup → Visit: https://github.com/anthropics/claude-code-action";throw Error(`Failed to set API key secret: ${b.stderr||"Unknown error"}${P}`)}}if(!I&&m){Y();let b=`https://github.com/${W}/compare/${Z}...${m}?quick_pull=1&title=${encodeURIComponent(V0)}&body=${encodeURIComponent(j0)}`;await R0(b)}K("tengu_setup_github_actions_completed",{skip_workflow:I,has_api_key:!!f,auth_type:G,using_default_secret_name:q==="ANTHROPIC_API_KEY",selected_claude_workflow:M.includes("claude"),selected_claude_review_workflow:M.includes("claude-review"),...L}),lf((b)=>({...b,githubActionSetupCount:(b.githubActionSetupCount??0)+1}))}catch(z){if(!z||!(z instanceof Error)||!z.message.includes("Failed to"))K("tengu_setup_github_actions_failed",{reason:"unexpected_error",...L});if(z instanceof Error)W0(z);throw z}}var hf=n(()=>{A0();Xq();H0();_f();vf();wf()});function Df(W){let f=pf.c(8),{warnings:q,onContinue:Y}=W,I;if(f[0]===Symbol.for("react.memo_cache_sentinel"))I={context:"Confirmation"},f[0]=I;else I=f[0];U0("confirm:yes",Y,I);let M;if(f[1]===Symbol.for("react.memo_cache_sentinel"))M=j.jsxDEV(Q,{flexDirection:"column",marginBottom:1,children:[j.jsxDEV(X,{bold:!0,children:[B0.warning," Setup Warnings"]},void 0,!0,void 0,this),j.jsxDEV(X,{dimColor:!0,children:"We found some potential issues, but you can continue anyway"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),f[1]=M;else M=f[1];let G;if(f[2]!==q)G=q.map(Qq),f[2]=q,f[3]=G;else G=f[3];let L;if(f[4]===Symbol.for("react.memo_cache_sentinel"))L=j.jsxDEV(Q,{marginTop:1,children:j.jsxDEV(X,{bold:!0,color:"permission",children:"Press Enter to continue anyway, or Ctrl+C to exit and fix issues"},void 0,!1,void 0,this)},void 0,!1,void 0,this),f[4]=L;else L=f[4];let z;if(f[5]===Symbol.for("react.memo_cache_sentinel"))z=j.jsxDEV(Q,{marginTop:1,children:j.jsxDEV(X,{dimColor:!0,children:["You can also try the manual setup steps if needed:"," ",j.jsxDEV(X,{color:"claude",children:J0},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),f[5]=z;else z=f[5];let H;if(f[6]!==G)H=j.jsxDEV(j.Fragment,{children:j.jsxDEV(Q,{flexDirection:"column",borderStyle:"round",paddingX:1,children:[M,G,L,z]},void 0,!0,void 0,this)},void 0,!1,void 0,this),f[6]=G,f[7]=H;else H=f[7];return H}function Qq(W,f){return j.jsxDEV(Q,{flexDirection:"column",marginBottom:1,children:[j.jsxDEV(X,{color:"warning",bold:!0,children:W.title},void 0,!1,void 0,this),j.jsxDEV(X,{children:W.message},void 0,!1,void 0,this),W.instructions.length>0&&j.jsxDEV(Q,{flexDirection:"column",marginLeft:2,marginTop:1,children:W.instructions.map(Zq)},void 0,!1,void 0,this)]},f,!0,void 0,this)}function Zq(W,f){return j.jsxDEV(X,{dimColor:!0,children:["• ",W]},f,!0,void 0,this)}var pf,j;var Vf=n(()=>{Wf();H0();s();b0();pf=w(Y0(),1),j=w(O(),1)});function zq(W){let[f]=t.useState(()=>of()),[q,Y]=t.useState({...Mq,useExistingKey:!!f,selectedApiKeyOption:f?"existing":k0()?"oauth":"new"});Sf(),t.default.useEffect(()=>{K("tengu_install_github_app_started",{})},[]);let I=t.useCallback(async()=>{let J=[];if((await g0("gh --version",{shell:!0,reject:!1})).exitCode!==0)J.push({title:"GitHub CLI not found",message:"GitHub CLI (gh) does not appear to be installed or accessible.",instructions:["Install GitHub CLI from https://cli.github.com/","macOS: brew install gh","Windows: winget install --id GitHub.cli","Linux: See installation instructions at https://github.com/cli/cli#installation"]});let B=await g0("gh auth status -a",{shell:!0,reject:!1});if(B.exitCode!==0)J.push({title:"GitHub CLI not authenticated",message:"GitHub CLI does not appear to be authenticated.",instructions:["Run: gh auth login","Follow the prompts to authenticate with GitHub","Or set up authentication using environment variables or other methods"]});else{let C=B.stdout.match(/Token scopes:.*$/m);if(C){let v=C[0],N=[];if(!v.includes("repo"))N.push("repo");if(!v.includes("workflow"))N.push("workflow");if(N.length>0){Y((V)=>({...V,step:"error",error:`GitHub CLI is missing required permissions: ${N.join(", ")}.`,errorReason:"Missing required scopes",errorInstructions:[`Your GitHub CLI authentication is missing the "${N.join('" and "')}" ${jf(N.length,"scope")} needed to manage GitHub Actions and secrets.`,"","To fix this, run:"," gh auth refresh -h github.com -s repo,workflow","","This will add the necessary permissions to manage workflows and secrets."]}));return}}}let R=await uf()??"";K("tengu_install_github_app_step_completed",{step:"check-gh"}),Y((C)=>({...C,warnings:J,currentRepo:R,selectedRepoName:R,useCurrentRepo:!!R,step:J.length>0?"warnings":"choose-repo"}))},[]);t.default.useEffect(()=>{if(q.step==="check-gh")I()},[q.step,I]);let M=t.useCallback(async(J,d)=>{Y((B)=>({...B,step:"creating",currentWorkflowInstallStep:0}));try{await Tf(q.selectedRepoName,J,d,()=>{Y((B)=>({...B,currentWorkflowInstallStep:B.currentWorkflowInstallStep+1}))},q.workflowAction==="skip",q.selectedWorkflows,q.authType,{useCurrentRepo:q.useCurrentRepo,workflowExists:q.workflowExists,secretExists:q.secretExists}),K("tengu_install_github_app_step_completed",{step:"creating"}),Y((B)=>({...B,step:"success"}))}catch(B){let R=B instanceof Error?B.message:"Failed to set up GitHub Actions";if(R.includes("workflow file already exists"))K("tengu_install_github_app_error",{reason:"workflow_file_exists"}),Y((C)=>({...C,step:"error",error:"A Claude workflow file already exists in this repository.",errorReason:"Workflow file conflict",errorInstructions:["The file .github/workflows/claude.yml already exists","You can either:"," 1. Delete the existing file and run this command again"," 2. Update the existing file manually using the template from:",` ${J0}`]}));else K("tengu_install_github_app_error",{reason:"setup_github_actions_failed"}),Y((C)=>({...C,step:"error",error:R,errorReason:"GitHub Actions setup failed",errorInstructions:[]}))}},[q.selectedRepoName,q.workflowAction,q.selectedWorkflows,q.useCurrentRepo,q.workflowExists,q.secretExists,q.authType]);async function G(){await R0("https://github.com/apps/claude")}async function L(J){try{let d=await e("gh",["api",`repos/${J}`,"--jq",".permissions.admin"]);if(d.code===0)return{hasAccess:d.stdout.trim()==="true"};if(d.stderr.includes("404")||d.stderr.includes("Not Found"))return{hasAccess:!1,error:"repository_not_found"};return{hasAccess:!1}}catch{return{hasAccess:!1}}}async function z(J){return(await e("gh",["api",`repos/${J}/contents/.github/workflows/claude.yml`,"--jq",".sha"])).code===0}async function H(){let J=await e("gh",["secret","list","--app","actions","--repo",q.selectedRepoName]);if(J.code===0)if(J.stdout.split(`
|
|
146
|
-
`).some((R)=>{return/^ANTHROPIC_API_KEY\s+/.test(R)}))Y((R)=>({...R,secretExists:!0,step:"check-existing-secret"}));else if(f)Y((R)=>({...R,apiKeyOrOAuthToken:f,useExistingKey:!0})),await M(f,q.secretName);else Y((R)=>({...R,step:"api-key"}));else if(f)Y((d)=>({...d,apiKeyOrOAuthToken:f,useExistingKey:!0})),await M(f,q.secretName);else Y((d)=>({...d,step:"api-key"}))}let Z=async()=>{if(q.step==="warnings")K("tengu_install_github_app_step_completed",{step:"warnings"}),Y((J)=>({...J,step:"install-app"})),setTimeout(G,0);else if(q.step==="choose-repo"){let J=q.useCurrentRepo?q.currentRepo:q.selectedRepoName;if(!J.trim())return;let d=[],B=Af(J),R=/^[a-z][a-z0-9+.-]*:\/\//i.test(J)||J.startsWith("www.");if(B)J=B;else if(R)d.push({title:"Invalid GitHub URL format",message:"The repository URL format appears to be invalid.",instructions:["Use format: owner/repo or https://github.com/owner/repo","Example: anthropics/claude-cli"]});if(!J.includes("/"))d.push({title:"Repository format warning",message:'Repository should be in format "owner/repo"',instructions:["Use format: owner/repo","Example: anthropics/claude-cli"]});let C=await L(J);if(C.error==="repository_not_found")d.push({title:"Repository not found",message:`Repository ${J} was not found or you don't have access.`,instructions:[`Check that the repository name is correct: ${J}`,"Ensure you have access to this repository",'For private repositories, make sure your GitHub token has the "repo" scope',"You can add the repo scope with: gh auth refresh -h github.com -s repo,workflow"]});else if(!C.hasAccess)d.push({title:"Admin permissions required",message:`You might need admin permissions on ${J} to set up GitHub Actions.`,instructions:["Repository admins can install GitHub Apps and set secrets","Ask a repository admin to run this command if setup fails","Alternatively, you can use the manual setup instructions"]});let v=await z(J);if(d.length>0){let N=[...q.warnings,...d];Y((V)=>({...V,selectedRepoName:J,workflowExists:v,warnings:N,step:"warnings"}))}else K("tengu_install_github_app_step_completed",{step:"choose-repo"}),Y((N)=>({...N,selectedRepoName:J,workflowExists:v,step:"install-app"})),setTimeout(G,0)}else if(q.step==="install-app")if(K("tengu_install_github_app_step_completed",{step:"install-app"}),q.workflowExists)Y((J)=>({...J,step:"check-existing-workflow"}));else Y((J)=>({...J,step:"select-workflows"}));else if(q.step==="check-existing-workflow")return;else if(q.step==="select-workflows")return;else if(q.step==="check-existing-secret")if(K("tengu_install_github_app_step_completed",{step:"check-existing-secret"}),q.useExistingSecret)await M(null,q.secretName);else await M(q.apiKeyOrOAuthToken,q.secretName);else if(q.step==="api-key"){if(q.selectedApiKeyOption==="oauth")return;let J=q.selectedApiKeyOption==="existing"?f:q.apiKeyOrOAuthToken;if(!J){K("tengu_install_github_app_error",{reason:"api_key_missing"}),Y((B)=>({...B,step:"error",error:"API key is required"}));return}Y((B)=>({...B,apiKeyOrOAuthToken:J,useExistingKey:q.selectedApiKeyOption==="existing"}));let d=await e("gh",["secret","list","--app","actions","--repo",q.selectedRepoName]);if(d.code===0)if(d.stdout.split(`
|
|
147
|
-
`).some((C)=>{return/^ANTHROPIC_API_KEY\s+/.test(C)}))K("tengu_install_github_app_step_completed",{step:"api-key"}),Y((C)=>({...C,secretExists:!0,step:"check-existing-secret"}));else K("tengu_install_github_app_step_completed",{step:"api-key"}),await M(J,q.secretName);else K("tengu_install_github_app_step_completed",{step:"api-key"}),await M(J,q.secretName)}},F=(J)=>{Y((d)=>({...d,selectedRepoName:J}))},y=(J)=>{Y((d)=>({...d,apiKeyOrOAuthToken:J}))},m=(J)=>{Y((d)=>({...d,selectedApiKeyOption:J}))},b=t.useCallback(()=>{K("tengu_install_github_app_step_completed",{step:"api-key"}),Y((J)=>({...J,step:"oauth-flow"}))},[]),P=t.useCallback((J)=>{K("tengu_install_github_app_step_completed",{step:"oauth-flow"}),Y((d)=>({...d,apiKeyOrOAuthToken:J,useExistingKey:!1,secretName:"CLAUDE_CODE_OAUTH_TOKEN",authType:"oauth_token"})),M(J,"CLAUDE_CODE_OAUTH_TOKEN")},[M]),A=t.useCallback(()=>{Y((J)=>({...J,step:"api-key"}))},[]),_=(J)=>{if(J&&!/^[a-zA-Z0-9_]+$/.test(J))return;Y((d)=>({...d,secretName:J}))},T=(J)=>{Y((d)=>({...d,useCurrentRepo:J,selectedRepoName:J?d.currentRepo:""}))},p=(J)=>{Y((d)=>({...d,useExistingKey:J}))},D=(J)=>{Y((d)=>({...d,useExistingSecret:J,secretName:J?"ANTHROPIC_API_KEY":""}))},U=async(J)=>{if(J==="exit"){W.onDone("Installation cancelled by user");return}if(K("tengu_install_github_app_step_completed",{step:"check-existing-workflow"}),Y((d)=>({...d,workflowAction:J})),J==="skip"||J==="update")if(f)await H();else Y((d)=>({...d,step:"api-key"}))};function g(J){if(J.preventDefault(),q.step==="success")K("tengu_install_github_app_completed",{});W.onDone(q.step==="success"?"GitHub Actions setup complete!":q.error?`Couldn't install GitHub App: ${q.error}
|
|
148
|
-
For manual setup instructions, see: ${J0}`:`GitHub App installation failed
|
|
149
|
-
For manual setup instructions, see: ${J0}`)}switch(q.step){case"check-gh":return E.jsxDEV(t0,{},void 0,!1,void 0,this);case"warnings":return E.jsxDEV(Df,{warnings:q.warnings,onContinue:Z},void 0,!1,void 0,this);case"choose-repo":return E.jsxDEV(Xf,{currentRepo:q.currentRepo,useCurrentRepo:q.useCurrentRepo,repoUrl:q.selectedRepoName,onRepoUrlChange:F,onToggleUseCurrentRepo:T,onSubmit:Z},void 0,!1,void 0,this);case"install-app":return E.jsxDEV(mf,{repoUrl:q.selectedRepoName,onSubmit:Z},void 0,!1,void 0,this);case"check-existing-workflow":return E.jsxDEV(Hf,{repoName:q.selectedRepoName,onSelectAction:U},void 0,!1,void 0,this);case"check-existing-secret":return E.jsxDEV(x0,{useExistingSecret:q.useExistingSecret,secretName:q.secretName,onToggleUseExistingSecret:D,onSecretNameChange:_,onSubmit:Z},void 0,!1,void 0,this);case"api-key":return E.jsxDEV(E0,{existingApiKey:f,useExistingKey:q.useExistingKey,apiKeyOrOAuthToken:q.apiKeyOrOAuthToken,onApiKeyChange:y,onToggleUseExistingKey:p,onSubmit:Z,onCreateOAuthToken:k0()?b:void 0,selectedOption:q.selectedApiKeyOption,onSelectOption:m},void 0,!1,void 0,this);case"creating":return E.jsxDEV(Zf,{currentWorkflowInstallStep:q.currentWorkflowInstallStep,secretExists:q.secretExists,useExistingSecret:q.useExistingSecret,secretName:q.secretName,skipWorkflow:q.workflowAction==="skip",selectedWorkflows:q.selectedWorkflows},void 0,!1,void 0,this);case"success":return E.jsxDEV(Q,{tabIndex:0,autoFocus:!0,onKeyDown:g,children:E.jsxDEV(Nf,{secretExists:q.secretExists,useExistingSecret:q.useExistingSecret,secretName:q.secretName,skipWorkflow:q.workflowAction==="skip"},void 0,!1,void 0,this)},void 0,!1,void 0,this);case"error":return E.jsxDEV(Q,{tabIndex:0,autoFocus:!0,onKeyDown:g,children:E.jsxDEV(df,{error:q.error,errorReason:q.errorReason,errorInstructions:q.errorInstructions},void 0,!1,void 0,this)},void 0,!1,void 0,this);case"select-workflows":return E.jsxDEV(p0,{defaultSelections:q.selectedWorkflows,onSubmit:(J)=>{if(K("tengu_install_github_app_step_completed",{step:"select-workflows"}),Y((d)=>({...d,selectedWorkflows:J})),f)H();else Y((d)=>({...d,step:"api-key"}))}},void 0,!1,void 0,this);case"oauth-flow":return E.jsxDEV(Cf,{onSuccess:P,onCancel:A},void 0,!1,void 0,this)}}async function XX(W){return E.jsxDEV(zq,{onDone:W},void 0,!1,void 0,this)}var t,E,Mq;var Hq=n(()=>{Lq();A0();D0();H0();Gq();s();Uf();_f();vf();Iq();dq();a0();s0();qf();Jf();Lf();Gf();bf();yf();Kf();gf();Of();hf();Vf();t=w(z0(),1),E=w(O(),1),Mq={step:"check-gh",selectedRepoName:"",currentRepo:"",useCurrentRepo:!1,apiKeyOrOAuthToken:"",useExistingKey:!0,currentWorkflowInstallStep:0,warnings:[],secretExists:!1,secretName:"ANTHROPIC_API_KEY",useExistingSecret:!0,workflowExists:!1,selectedWorkflows:["claude","claude-review"],selectedApiKeyOption:"new",authType:"api_key"}});Hq();export{XX as call};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{OX as z,PX as I}from"./cli-0.1.11-16086k9e.mjs";import{Vba as H,zba as q}from"./cli-0.1.11-v7bwjqf0.mjs";import"./cli-0.1.11-h7e4rkwk.mjs";import"./cli-0.1.11-7xr2ermy.mjs";import"./cli-0.1.11-7qpnfx56.mjs";import"./cli-0.1.11-vch8cn95.mjs";import"./cli-0.1.11-fag2wtke.mjs";import"./cli-0.1.11-nx8a99hz.mjs";import"./cli-0.1.11-ktwtyqmp.mjs";import{dga as m,ega as F}from"./cli-0.1.11-xwj7cmkj.mjs";import"./cli-0.1.11-vq5fvf9m.mjs";import"./cli-0.1.11-d3exw047.mjs";import"./cli-0.1.11-e5ecf583.mjs";import"./cli-0.1.11-rrnr3ab1.mjs";import"./cli-0.1.11-98zcwng9.mjs";import{Rna as D}from"./cli-0.1.11-yrfxpjhr.mjs";async function T(){if(m("tengu_install_slack_app_clicked",{}),q((h)=>({...h,slackAppInstallCount:(h.slackAppInstallCount??0)+1})),await z(k))return{type:"text",value:"Opening Slack app installation page in browser…"};else return{type:"text",value:`Couldn't open browser. Visit: ${k}`}}var k="https://slack.com/marketplace/A08SF47R6P4-claude";var J=D(()=>{F();I();H()});J();export{T as call};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import{CY as nw,fY as Kw,jY as Cw,lY as Ww,mY as yw,oY as Yw,qY as u}from"./cli-0.1.11-bwpemkht.mjs";import"./cli-0.1.11-dcswnc8x.mjs";import{P4 as zw,R4 as Dw,V4 as Gw,d5 as Jw,i5 as uw}from"./cli-0.1.11-qbcfg80y.mjs";import{C5 as hw,j5 as Ow,k5 as h,m5 as fw,n5 as ww,r5 as Lw,t5 as $w,u5 as Qw}from"./cli-0.1.11-b0jasw23.mjs";import"./cli-0.1.11-s6yfjcm5.mjs";import"./cli-0.1.11-sqqzwx4h.mjs";import"./cli-0.1.11-d10nfa6g.mjs";import"./cli-0.1.11-h2hxx8ma.mjs";import"./cli-0.1.11-1xr9et85.mjs";import{F7 as M,Haa as e,K7 as jw,P8 as t,Q8 as o,Qaa as Rw,R8 as bw}from"./cli-0.1.11-v7bwjqf0.mjs";import"./cli-0.1.11-h7e4rkwk.mjs";import"./cli-0.1.11-7xr2ermy.mjs";import"./cli-0.1.11-7qpnfx56.mjs";import"./cli-0.1.11-vch8cn95.mjs";import"./cli-0.1.11-fag2wtke.mjs";import{Sfa as r,Xfa as Mw}from"./cli-0.1.11-nx8a99hz.mjs";import"./cli-0.1.11-ktwtyqmp.mjs";import"./cli-0.1.11-xwj7cmkj.mjs";import{Dga as p,Jga as Sw,Lga as T,Pga as Aw,aha as s,bha as Y,eha as d,hga as L,jga as Uw}from"./cli-0.1.11-vq5fvf9m.mjs";import{iha as i,sha as Hw}from"./cli-0.1.11-d3exw047.mjs";import"./cli-0.1.11-e5ecf583.mjs";import{Hka as I,Ika as n,Kka as E,Lka as c,Mka as f,Nka as N,Oka as m,Vma as Iw}from"./cli-0.1.11-rrnr3ab1.mjs";import"./cli-0.1.11-98zcwng9.mjs";import{Nna as Vw,Rna as A,Sna as q}from"./cli-0.1.11-yrfxpjhr.mjs";class b{constructor(){}async export($,w){w({code:0})}async shutdown(){}async forceFlush(){}selectAggregationTemporality(){return 0}}var g=()=>{};class R{error($,...w){M(Error($)),Y(`[3P telemetry] OTEL diag error: ${$}`,{level:"error"})}warn($,...w){M(Error($)),Y(`[3P telemetry] OTEL diag warn: ${$}`,{level:"warn"})}info($,...w){return}debug($,...w){return}verbose($,...w){return}}var P=A(()=>{d();jw()});import{DiagLogLevel as Ew,diag as mw,trace as Zw}from"@opentelemetry/api";import{logs as H}from"@opentelemetry/api-logs";import{envDetector as Tw,hostDetector as vw,osDetector as lw,resourceFromAttributes as V}from"@opentelemetry/resources";import{BatchLogRecordProcessor as _w,ConsoleLogRecordExporter as aw,LoggerProvider as qw}from"@opentelemetry/sdk-logs";import{ConsoleMetricExporter as gw,MeterProvider as x,PeriodicExportingMetricReader as Bw}from"@opentelemetry/sdk-metrics";import{BasicTracerProvider as Fw,BatchSpanProcessor as kw,ConsoleSpanExporter as dw}from"@opentelemetry/sdk-trace-base";import{ATTR_SERVICE_NAME as Pw,ATTR_SERVICE_VERSION as xw,SEMRESATTRS_HOST_ARCH as O}from"@opentelemetry/semantic-conventions";function y($,w){return new Promise((D,Q)=>{setTimeout((z,J)=>z(new v(J)),$,Q,w).unref()})}function iw(){if(!process.env.OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE)process.env.OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE="delta"}function l($){return($||"").trim().split(",").filter(Boolean).map((w)=>w.trim()).filter((w)=>w!=="none")}async function pw(){let $=l(process.env.OTEL_METRICS_EXPORTER),w=parseInt(process.env.OTEL_METRIC_EXPORT_INTERVAL||cw.toString()),D=[];for(let Q of $)if(Q==="console"){let z=new gw,J=z.export.bind(z);z.export=(G,k)=>{if(G.resource&&G.resource.attributes)Y(`
|
|
2
|
-
=== Resource Attributes ===`),Y(T(G.resource.attributes)),Y(`===========================
|
|
3
|
-
`);return J(G,k)},D.push(z)}else if(Q==="otlp"){let z=process.env.OTEL_EXPORTER_OTLP_METRICS_PROTOCOL?.trim()||process.env.OTEL_EXPORTER_OTLP_PROTOCOL?.trim(),J=a();switch(z){case"grpc":{let{OTLPMetricExporter:G}=await import("@opentelemetry/exporter-metrics-otlp-grpc");D.push(new G);break}case"http/json":{let{OTLPMetricExporter:G}=await import("@opentelemetry/exporter-metrics-otlp-http");D.push(new G(J));break}case"http/protobuf":{let{OTLPMetricExporter:G}=await import("@opentelemetry/exporter-metrics-otlp-proto");D.push(new G(J));break}default:throw Error(`Unknown protocol set in OTEL_EXPORTER_OTLP_METRICS_PROTOCOL or OTEL_EXPORTER_OTLP_PROTOCOL env var: ${z}`)}}else if(Q==="prometheus"){let{PrometheusExporter:z}=await import("@opentelemetry/exporter-prometheus");D.push(new z)}else throw Error(`Unknown exporter type set in OTEL_EXPORTER_OTLP_METRICS_PROTOCOL or OTEL_EXPORTER_OTLP_PROTOCOL env var: ${Q}`);return D.map((Q)=>{if("export"in Q)return new Bw({exporter:Q,exportIntervalMillis:w});return Q})}async function sw(){let $=l(process.env.OTEL_LOGS_EXPORTER),w=process.env.OTEL_EXPORTER_OTLP_LOGS_PROTOCOL?.trim()||process.env.OTEL_EXPORTER_OTLP_PROTOCOL?.trim(),D=process.env.OTEL_EXPORTER_OTLP_ENDPOINT;Y(`[3P telemetry] getOtlpLogExporters: types=${T($)}, protocol=${w}, endpoint=${D}`);let Q=[];for(let z of $)if(z==="console")Q.push(new aw);else if(z==="otlp"){let J=a();switch(w){case"grpc":{let{OTLPLogExporter:G}=await import("@opentelemetry/exporter-logs-otlp-grpc");Q.push(new G);break}case"http/json":{let{OTLPLogExporter:G}=await import("@opentelemetry/exporter-logs-otlp-http");Q.push(new G(J));break}case"http/protobuf":{let{OTLPLogExporter:G}=await import("@opentelemetry/exporter-logs-otlp-proto");Q.push(new G(J));break}default:throw Error(`Unknown protocol set in OTEL_EXPORTER_OTLP_LOGS_PROTOCOL or OTEL_EXPORTER_OTLP_PROTOCOL env var: ${w}`)}}else throw Error(`Unknown exporter type set in OTEL_LOGS_EXPORTER env var: ${z}`);return Q}async function tw(){let $=l(process.env.OTEL_TRACES_EXPORTER),w=[];for(let D of $)if(D==="console")w.push(new dw);else if(D==="otlp"){let Q=process.env.OTEL_EXPORTER_OTLP_TRACES_PROTOCOL?.trim()||process.env.OTEL_EXPORTER_OTLP_PROTOCOL?.trim(),z=a();switch(Q){case"grpc":{let{OTLPTraceExporter:J}=await import("@opentelemetry/exporter-trace-otlp-grpc");w.push(new J);break}case"http/json":{let{OTLPTraceExporter:J}=await import("@opentelemetry/exporter-trace-otlp-http");w.push(new J(z));break}case"http/protobuf":{let{OTLPTraceExporter:J}=await import("@opentelemetry/exporter-trace-otlp-proto");w.push(new J(z));break}default:throw Error(`Unknown protocol set in OTEL_EXPORTER_OTLP_TRACES_PROTOCOL or OTEL_EXPORTER_OTLP_PROTOCOL env var: ${Q}`)}}else throw Error(`Unknown exporter type set in OTEL_TRACES_EXPORTER env var: ${D}`);return w}function ow(){return i(process.env.CLAUDE_CODE_ENABLE_TELEMETRY)}function rw(){let $=new b;return new Bw({exporter:$,exportIntervalMillis:300000})}function ew(){let $=Gw(),w=zw()&&($==="enterprise"||$==="team");return Dw()||w}async function w0($){let w=process.env.BETA_TRACING_ENDPOINT;if(!w)return;let[{OTLPTraceExporter:D},{OTLPLogExporter:Q}]=await Promise.all([import("@opentelemetry/exporter-trace-otlp-http"),import("@opentelemetry/exporter-logs-otlp-http")]),z={url:`${w}/v1/traces`},J={url:`${w}/v1/logs`},G=new D(z),k=new kw(G,{scheduledDelayMillis:Xw}),_=new Fw({resource:$,spanProcessors:[k]});Zw.setGlobalTracerProvider(_),m(_);let j=new Q(J),F=new qw({resource:$,processors:[new _w(j,{scheduledDelayMillis:Nw})]});H.setGlobalLoggerProvider(F),n(F);let X=H.getLogger("com.anthropic.claude_code.events","99.0.0");E(X),process.on("beforeExit",async()=>{await F?.forceFlush(),await _?.forceFlush()}),process.on("exit",()=>{F?.forceFlush(),_?.forceFlush()})}async function C0(){if(r("telemetry_init_start"),iw(),s())for(let K of["OTEL_METRICS_EXPORTER","OTEL_LOGS_EXPORTER","OTEL_TRACES_EXPORTER"]){let W=process.env[K];if(W?.includes("console"))process.env[K]=W.split(",").map((Z)=>Z.trim()).filter((Z)=>Z!=="console").join(",")}mw.setLogger(new R,Ew.ERROR),Kw();let $=[],w=ow();if(Y(`[3P telemetry] isTelemetryEnabled=${w} (CLAUDE_CODE_ENABLE_TELEMETRY=${process.env.CLAUDE_CODE_ENABLE_TELEMETRY})`),w)$.push(...await pw());if(ew())$.push(rw());let D=t(),Q={[Pw]:"claude-code",[xw]:"99.0.0"};if(D==="wsl"){let K=o();if(K)Q["wsl.version"]=K}let z=V(Q),J=V(lw.detect().attributes||{}),G=vw.detect(),k=G.attributes?.[O]?{[O]:G.attributes[O]}:{},_=V(k),j=V(Tw.detect().attributes||{}),F=z.merge(J).merge(_).merge(j);if(Ww()){w0(F).catch((Z)=>Y(`Beta tracing init failed: ${Z}`,{level:"error"}));let K=new x({resource:F,views:[],readers:$});return f(K),L(async()=>{let Z=parseInt(process.env.CLAUDE_CODE_OTEL_SHUTDOWN_TIMEOUT_MS||"2000");try{u();let B=I(),U=N(),S=[K.shutdown()];if(B)S.push(B.forceFlush().then(()=>B.shutdown()));if(U)S.push(U.forceFlush().then(()=>U.shutdown()));await Promise.race([Promise.all(S),y(Z,"OpenTelemetry shutdown timeout")])}catch{}}),K.getMeter("com.anthropic.claude_code","99.0.0")}let X=new x({resource:F,views:[],readers:$});if(f(X),w){let K=await sw();if(Y(`[3P telemetry] Created ${K.length} log exporter(s)`),K.length>0){let W=new qw({resource:F,processors:K.map((B)=>new _w(B,{scheduledDelayMillis:parseInt(process.env.OTEL_LOGS_EXPORT_INTERVAL||Nw.toString())}))});H.setGlobalLoggerProvider(W),n(W);let Z=H.getLogger("com.anthropic.claude_code.events","99.0.0");E(Z),Y("[3P telemetry] Event logger set successfully"),process.on("beforeExit",async()=>{await W?.forceFlush(),await N()?.forceFlush()}),process.on("exit",()=>{W?.forceFlush(),N()?.forceFlush()})}}if(w&&Yw()){let K=await tw();if(K.length>0){let W=K.map((B)=>new kw(B,{scheduledDelayMillis:parseInt(process.env.OTEL_TRACES_EXPORT_INTERVAL||Xw.toString())})),Z=new Fw({resource:F,spanProcessors:W});Zw.setGlobalTracerProvider(Z),m(Z)}}return L(async()=>{let K=parseInt(process.env.CLAUDE_CODE_OTEL_SHUTDOWN_TIMEOUT_MS||"2000");try{u();let W=[X.shutdown()],Z=I();if(Z)W.push(Z.shutdown());let B=N();if(B)W.push(B.shutdown());await Promise.race([Promise.all(W),y(K,"OpenTelemetry shutdown timeout")])}catch(W){if(W instanceof Error&&W.message.includes("timeout"))Y(`
|
|
4
|
-
OpenTelemetry telemetry flush timed out after ${K}ms
|
|
5
|
-
|
|
6
|
-
To resolve this issue, you can:
|
|
7
|
-
1. Increase the timeout by setting CLAUDE_CODE_OTEL_SHUTDOWN_TIMEOUT_MS env var (e.g., 5000 for 5 seconds)
|
|
8
|
-
2. Check if your OpenTelemetry backend is experiencing scalability issues
|
|
9
|
-
3. Disable OpenTelemetry by unsetting CLAUDE_CODE_ENABLE_TELEMETRY env var
|
|
10
|
-
|
|
11
|
-
Current timeout: ${K}ms
|
|
12
|
-
`,{level:"error"});throw W}}),X.getMeter("com.anthropic.claude_code","99.0.0")}async function y0(){let $=c();if(!$)return;let w=parseInt(process.env.CLAUDE_CODE_OTEL_FLUSH_TIMEOUT_MS||"5000");try{let D=[$.forceFlush()],Q=I();if(Q)D.push(Q.forceFlush());let z=N();if(z)D.push(z.forceFlush());await Promise.race([Promise.all(D),y(w,"OpenTelemetry flush timeout")]),Y("Telemetry flushed successfully")}catch(D){if(D instanceof v)Y(`Telemetry flush timed out after ${w}ms. Some metrics may not be exported.`,{level:"warn"});else Y(`Telemetry flush failed: ${p(D)}`,{level:"error"})}}function $0(){let $={},w=process.env.OTEL_EXPORTER_OTLP_HEADERS;if(w)for(let D of w.split(",")){let[Q,...z]=D.split("=");if(Q&&z.length>0)$[Q.trim()]=z.join("=").trim()}return $}function a(){let $=$w(),w=ww(),D=e(),Q={},z=$0();if(D?.otelHeadersHelper)Q.headers=async()=>{let _=Jw();return{...z,..._}};else if(Object.keys(z).length>0)Q.headers=async()=>z;let J=process.env.OTEL_EXPORTER_OTLP_ENDPOINT;if(!$||J&&Qw(J)){let _=h();if(w||_)Q.httpAgentOptions={...w,..._&&{ca:_}};return Q}let G=h(),k=(_)=>{return w||G?new C.HttpsProxyAgent($,{...w&&{cert:w.cert,key:w.key,passphrase:w.passphrase},...G&&{ca:G}}):new C.HttpsProxyAgent($)};return Q.httpAgentOptions=k,Q}var C,cw=60000,Nw=5000,Xw=5000,v;var Q0=A(()=>{Iw();uw();bw();fw();Uw();d();Hw();Sw();Lw();hw();Rw();Aw();Mw();yw();g();P();Cw();nw();C=Vw(Ow(),1);v=class v extends Error{}});Q0();export{l as parseExporterTypes,ow as isTelemetryEnabled,C0 as initializeTelemetry,y0 as flushTelemetry,iw as bootstrapTelemetry};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{s as a,t as b,u as c,v as d,w as e,x as f,y as g,z as h}from"./cli-0.1.11-1bxwxewq.mjs";import"./cli-0.1.11-nhwmv5g6.mjs";import"./cli-0.1.11-x3q39kf7.mjs";import"./cli-0.1.11-t07hba0z.mjs";import"./cli-0.1.11-fx6ztxrs.mjs";import"./cli-0.1.11-3f5dv6mt.mjs";import"./cli-0.1.11-yd6f29v2.mjs";import"./cli-0.1.11-fptq9w4t.mjs";import"./cli-0.1.11-7tybqg56.mjs";import"./cli-0.1.11-tyh8gms9.mjs";import"./cli-0.1.11-chnrb9xx.mjs";import"./cli-0.1.11-z62s8qx1.mjs";import"./cli-0.1.11-bbx2h4x9.mjs";import"./cli-0.1.11-3tqzgd9f.mjs";import"./cli-0.1.11-cw0ss3jw.mjs";import"./cli-0.1.11-21epc92q.mjs";import"./cli-0.1.11-6vqzqsdj.mjs";import"./cli-0.1.11-yvnhbsfn.mjs";import"./cli-0.1.11-yhk2y3c0.mjs";import"./cli-0.1.11-vzet5m4y.mjs";import"./cli-0.1.11-rmyvg4yw.mjs";import"./cli-0.1.11-cezypfbt.mjs";import"./cli-0.1.11-bwn9ehxv.mjs";import"./cli-0.1.11-n24p2y0p.mjs";import"./cli-0.1.11-s8ygndzf.mjs";import"./cli-0.1.11-1bryv90w.mjs";import"./cli-0.1.11-5e45zda5.mjs";import"./cli-0.1.11-jjgjkqqv.mjs";import"./cli-0.1.11-r990p54m.mjs";import"./cli-0.1.11-70f778wy.mjs";import"./cli-0.1.11-weav8142.mjs";import"./cli-0.1.11-t7dc7fbj.mjs";import"./cli-0.1.11-vb5f7c3a.mjs";import"./cli-0.1.11-sma2xhvv.mjs";import"./cli-0.1.11-852v06g0.mjs";import"./cli-0.1.11-z4hb2mcd.mjs";import"./cli-0.1.11-mj78w4sp.mjs";import"./cli-0.1.11-qrq0sw0h.mjs";import"./cli-0.1.11-d4ahh3jz.mjs";import"./cli-0.1.11-wc9bay3d.mjs";import"./cli-0.1.11-rvk3t45h.mjs";import"./cli-0.1.11-0n77qn68.mjs";import"./cli-0.1.11-h02tyg8p.mjs";import"./cli-0.1.11-bvd2r7an.mjs";import"./cli-0.1.11-jr50ahcv.mjs";import"./cli-0.1.11-6zkfmcxp.mjs";import"./cli-0.1.11-jkrt4znb.mjs";import"./cli-0.1.11-424zgj5k.mjs";import"./cli-0.1.11-rj9ea3zn.mjs";import"./cli-0.1.11-mstxxz33.mjs";import"./cli-0.1.11-kghg51gb.mjs";import"./cli-0.1.11-fstfs72j.mjs";import"./cli-0.1.11-kk0qqs5v.mjs";import"./cli-0.1.11-x37jysc0.mjs";import"./cli-0.1.11-h762f6hr.mjs";import"./cli-0.1.11-50naxqgt.mjs";import"./cli-0.1.11-v6kwgrqc.mjs";import"./cli-0.1.11-16086k9e.mjs";import"./cli-0.1.11-bwpemkht.mjs";import"./cli-0.1.11-dcswnc8x.mjs";import"./cli-0.1.11-p22bdjhv.mjs";import"./cli-0.1.11-y4c6y87y.mjs";import"./cli-0.1.11-q58q9jqr.mjs";import"./cli-0.1.11-zb2sa3e2.mjs";import"./cli-0.1.11-3p2f194m.mjs";import"./cli-0.1.11-zfnmx1ny.mjs";import"./cli-0.1.11-05ngjm8p.mjs";import"./cli-0.1.11-yv5pfq6n.mjs";import"./cli-0.1.11-qbcfg80y.mjs";import"./cli-0.1.11-b0jasw23.mjs";import"./cli-0.1.11-s6yfjcm5.mjs";import"./cli-0.1.11-sqqzwx4h.mjs";import"./cli-0.1.11-2w8d5vqb.mjs";import"./cli-0.1.11-d10nfa6g.mjs";import"./cli-0.1.11-h2hxx8ma.mjs";import"./cli-0.1.11-1xr9et85.mjs";import"./cli-0.1.11-v7bwjqf0.mjs";import"./cli-0.1.11-h7e4rkwk.mjs";import"./cli-0.1.11-7xr2ermy.mjs";import"./cli-0.1.11-7qpnfx56.mjs";import"./cli-0.1.11-vch8cn95.mjs";import"./cli-0.1.11-fag2wtke.mjs";import"./cli-0.1.11-nx8a99hz.mjs";import"./cli-0.1.11-ktwtyqmp.mjs";import"./cli-0.1.11-xwj7cmkj.mjs";import"./cli-0.1.11-vq5fvf9m.mjs";import"./cli-0.1.11-d3exw047.mjs";import"./cli-0.1.11-e5ecf583.mjs";import"./cli-0.1.11-rrnr3ab1.mjs";import"./cli-0.1.11-98zcwng9.mjs";import"./cli-0.1.11-yrfxpjhr.mjs";export{g as showSetupScreens,e as showSetupDialog,b as showDialog,f as renderAndRun,h as getRenderContext,d as exitWithMessage,c as exitWithError,a as completeOnboarding};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{ef as O,gf as D}from"./cli-0.1.11-anvzywg4.mjs";import{Aj as Z,Dj as Q,Ej as v,Fj as A,Gj as L,Jj as z,yj as Y,zj as _}from"./cli-0.1.11-s8ygndzf.mjs";import"./cli-0.1.11-1bryv90w.mjs";import"./cli-0.1.11-5e45zda5.mjs";import"./cli-0.1.11-jjgjkqqv.mjs";import"./cli-0.1.11-r990p54m.mjs";import"./cli-0.1.11-70f778wy.mjs";import"./cli-0.1.11-weav8142.mjs";import"./cli-0.1.11-t7dc7fbj.mjs";import"./cli-0.1.11-vb5f7c3a.mjs";import"./cli-0.1.11-sma2xhvv.mjs";import"./cli-0.1.11-852v06g0.mjs";import"./cli-0.1.11-z4hb2mcd.mjs";import"./cli-0.1.11-mj78w4sp.mjs";import"./cli-0.1.11-qrq0sw0h.mjs";import"./cli-0.1.11-d4ahh3jz.mjs";import"./cli-0.1.11-wc9bay3d.mjs";import"./cli-0.1.11-rvk3t45h.mjs";import"./cli-0.1.11-0n77qn68.mjs";import"./cli-0.1.11-h02tyg8p.mjs";import"./cli-0.1.11-bvd2r7an.mjs";import"./cli-0.1.11-jr50ahcv.mjs";import"./cli-0.1.11-6zkfmcxp.mjs";import"./cli-0.1.11-jkrt4znb.mjs";import"./cli-0.1.11-424zgj5k.mjs";import"./cli-0.1.11-rj9ea3zn.mjs";import"./cli-0.1.11-mstxxz33.mjs";import"./cli-0.1.11-kghg51gb.mjs";import"./cli-0.1.11-fstfs72j.mjs";import"./cli-0.1.11-kk0qqs5v.mjs";import"./cli-0.1.11-x37jysc0.mjs";import"./cli-0.1.11-h762f6hr.mjs";import"./cli-0.1.11-50naxqgt.mjs";import"./cli-0.1.11-v6kwgrqc.mjs";import"./cli-0.1.11-16086k9e.mjs";import"./cli-0.1.11-bwpemkht.mjs";import"./cli-0.1.11-dcswnc8x.mjs";import"./cli-0.1.11-p22bdjhv.mjs";import"./cli-0.1.11-y4c6y87y.mjs";import"./cli-0.1.11-q58q9jqr.mjs";import"./cli-0.1.11-zb2sa3e2.mjs";import"./cli-0.1.11-3p2f194m.mjs";import"./cli-0.1.11-05ngjm8p.mjs";import"./cli-0.1.11-yv5pfq6n.mjs";import"./cli-0.1.11-qbcfg80y.mjs";import"./cli-0.1.11-b0jasw23.mjs";import"./cli-0.1.11-s6yfjcm5.mjs";import"./cli-0.1.11-sqqzwx4h.mjs";import"./cli-0.1.11-2w8d5vqb.mjs";import"./cli-0.1.11-d10nfa6g.mjs";import"./cli-0.1.11-h2hxx8ma.mjs";import"./cli-0.1.11-1xr9et85.mjs";import"./cli-0.1.11-v7bwjqf0.mjs";import"./cli-0.1.11-h7e4rkwk.mjs";import"./cli-0.1.11-7xr2ermy.mjs";import"./cli-0.1.11-7qpnfx56.mjs";import"./cli-0.1.11-vch8cn95.mjs";import"./cli-0.1.11-fag2wtke.mjs";import"./cli-0.1.11-nx8a99hz.mjs";import"./cli-0.1.11-ktwtyqmp.mjs";import"./cli-0.1.11-xwj7cmkj.mjs";import{Ega as U,Jga as x,Lga as X,Pga as T}from"./cli-0.1.11-vq5fvf9m.mjs";import"./cli-0.1.11-d3exw047.mjs";import"./cli-0.1.11-e5ecf583.mjs";import"./cli-0.1.11-rrnr3ab1.mjs";import"./cli-0.1.11-98zcwng9.mjs";import{Rna as W}from"./cli-0.1.11-yrfxpjhr.mjs";function w(q){let J=new Set(Z.map((H)=>Q(H.key)));return q.map((H)=>{let M={};for(let[V,R]of Object.entries(H.bindings))if(!J.has(Q(V)))M[V]=R;return{context:H.context,bindings:M}}).filter((H)=>Object.keys(H.bindings).length>0)}function $(){let J={$schema:"https://www.schemastore.org/claude-code-keybindings.json",$docs:"https://code.claude.com/docs/en/keybindings",bindings:w(Y)};return X(J,null,2)+`
|
|
2
|
-
`}var G=W(()=>{T();_();v()});import{mkdir as C,writeFile as I}from"fs/promises";import{dirname as S}from"path";async function E(){if(!A())return{type:"text",value:"Keybinding customization is not enabled. This feature is currently in preview."};let q=L(),J=!1;await C(S(q),{recursive:!0});try{await I(q,$(),{encoding:"utf-8",flag:"wx"})}catch(M){if(U(M)==="EEXIST")J=!0;else throw M}let H=await O(q);if(H.error)return{type:"text",value:`${J?"Opened":"Created"} ${q}. Could not open in editor: ${H.error}`};return{type:"text",value:J?`Opened ${q} in your editor.`:`Created ${q} with template. Opened in your editor.`}}var j=W(()=>{z();G();x();D()});j();export{E as call};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{Kl as a,Ll as b,Ml as c,Nl as d,Ol as e,Pl as f,Ql as g,Rl as h,Sl as i,Tl as j,Ul as k,Wl as l}from"./cli-0.1.11-s8ygndzf.mjs";import"./cli-0.1.11-1bryv90w.mjs";import"./cli-0.1.11-5e45zda5.mjs";import"./cli-0.1.11-jjgjkqqv.mjs";import"./cli-0.1.11-r990p54m.mjs";import"./cli-0.1.11-70f778wy.mjs";import"./cli-0.1.11-weav8142.mjs";import"./cli-0.1.11-t7dc7fbj.mjs";import"./cli-0.1.11-vb5f7c3a.mjs";import"./cli-0.1.11-sma2xhvv.mjs";import"./cli-0.1.11-852v06g0.mjs";import"./cli-0.1.11-z4hb2mcd.mjs";import"./cli-0.1.11-mj78w4sp.mjs";import"./cli-0.1.11-qrq0sw0h.mjs";import"./cli-0.1.11-d4ahh3jz.mjs";import"./cli-0.1.11-wc9bay3d.mjs";import"./cli-0.1.11-rvk3t45h.mjs";import"./cli-0.1.11-0n77qn68.mjs";import"./cli-0.1.11-h02tyg8p.mjs";import"./cli-0.1.11-bvd2r7an.mjs";import"./cli-0.1.11-jr50ahcv.mjs";import"./cli-0.1.11-6zkfmcxp.mjs";import"./cli-0.1.11-jkrt4znb.mjs";import"./cli-0.1.11-424zgj5k.mjs";import"./cli-0.1.11-rj9ea3zn.mjs";import"./cli-0.1.11-mstxxz33.mjs";import"./cli-0.1.11-kghg51gb.mjs";import"./cli-0.1.11-fstfs72j.mjs";import"./cli-0.1.11-kk0qqs5v.mjs";import"./cli-0.1.11-x37jysc0.mjs";import"./cli-0.1.11-h762f6hr.mjs";import"./cli-0.1.11-50naxqgt.mjs";import"./cli-0.1.11-v6kwgrqc.mjs";import"./cli-0.1.11-16086k9e.mjs";import"./cli-0.1.11-bwpemkht.mjs";import"./cli-0.1.11-dcswnc8x.mjs";import"./cli-0.1.11-p22bdjhv.mjs";import"./cli-0.1.11-y4c6y87y.mjs";import"./cli-0.1.11-q58q9jqr.mjs";import"./cli-0.1.11-zb2sa3e2.mjs";import"./cli-0.1.11-3p2f194m.mjs";import"./cli-0.1.11-05ngjm8p.mjs";import"./cli-0.1.11-yv5pfq6n.mjs";import"./cli-0.1.11-qbcfg80y.mjs";import"./cli-0.1.11-b0jasw23.mjs";import"./cli-0.1.11-s6yfjcm5.mjs";import"./cli-0.1.11-sqqzwx4h.mjs";import"./cli-0.1.11-2w8d5vqb.mjs";import"./cli-0.1.11-d10nfa6g.mjs";import"./cli-0.1.11-h2hxx8ma.mjs";import"./cli-0.1.11-1xr9et85.mjs";import"./cli-0.1.11-v7bwjqf0.mjs";import"./cli-0.1.11-h7e4rkwk.mjs";import"./cli-0.1.11-7xr2ermy.mjs";import"./cli-0.1.11-7qpnfx56.mjs";import"./cli-0.1.11-vch8cn95.mjs";import"./cli-0.1.11-fag2wtke.mjs";import"./cli-0.1.11-nx8a99hz.mjs";import"./cli-0.1.11-ktwtyqmp.mjs";import"./cli-0.1.11-xwj7cmkj.mjs";import"./cli-0.1.11-vq5fvf9m.mjs";import"./cli-0.1.11-d3exw047.mjs";import"./cli-0.1.11-e5ecf583.mjs";import"./cli-0.1.11-rrnr3ab1.mjs";import"./cli-0.1.11-98zcwng9.mjs";import"./cli-0.1.11-yrfxpjhr.mjs";l();export{j as parseAgentsFromJson,k as parseAgentFromMarkdown,i as parseAgentFromJson,c as isPluginAgent,b as isCustomAgent,a as isBuiltInAgent,e as hasRequiredMcpServers,g as getAgentDefinitionsWithOverrides,d as getActiveAgentsFromList,f as filterAgentsByMcpRequirements,h as clearAgentDefinitionsCache};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{$y as d,Yy as a,Zy as b,_y as c,az as e,bz as f,cz as g}from"./cli-0.1.11-s8ygndzf.mjs";import"./cli-0.1.11-1bryv90w.mjs";import"./cli-0.1.11-5e45zda5.mjs";import"./cli-0.1.11-jjgjkqqv.mjs";import"./cli-0.1.11-r990p54m.mjs";import"./cli-0.1.11-70f778wy.mjs";import"./cli-0.1.11-weav8142.mjs";import"./cli-0.1.11-t7dc7fbj.mjs";import"./cli-0.1.11-vb5f7c3a.mjs";import"./cli-0.1.11-sma2xhvv.mjs";import"./cli-0.1.11-852v06g0.mjs";import"./cli-0.1.11-z4hb2mcd.mjs";import"./cli-0.1.11-mj78w4sp.mjs";import"./cli-0.1.11-qrq0sw0h.mjs";import"./cli-0.1.11-d4ahh3jz.mjs";import"./cli-0.1.11-wc9bay3d.mjs";import"./cli-0.1.11-rvk3t45h.mjs";import"./cli-0.1.11-0n77qn68.mjs";import"./cli-0.1.11-h02tyg8p.mjs";import"./cli-0.1.11-bvd2r7an.mjs";import"./cli-0.1.11-jr50ahcv.mjs";import"./cli-0.1.11-6zkfmcxp.mjs";import"./cli-0.1.11-jkrt4znb.mjs";import"./cli-0.1.11-424zgj5k.mjs";import"./cli-0.1.11-rj9ea3zn.mjs";import"./cli-0.1.11-mstxxz33.mjs";import"./cli-0.1.11-kghg51gb.mjs";import"./cli-0.1.11-fstfs72j.mjs";import"./cli-0.1.11-kk0qqs5v.mjs";import"./cli-0.1.11-x37jysc0.mjs";import"./cli-0.1.11-h762f6hr.mjs";import"./cli-0.1.11-50naxqgt.mjs";import"./cli-0.1.11-v6kwgrqc.mjs";import"./cli-0.1.11-16086k9e.mjs";import"./cli-0.1.11-bwpemkht.mjs";import"./cli-0.1.11-dcswnc8x.mjs";import"./cli-0.1.11-p22bdjhv.mjs";import"./cli-0.1.11-y4c6y87y.mjs";import"./cli-0.1.11-q58q9jqr.mjs";import"./cli-0.1.11-zb2sa3e2.mjs";import"./cli-0.1.11-3p2f194m.mjs";import"./cli-0.1.11-05ngjm8p.mjs";import"./cli-0.1.11-yv5pfq6n.mjs";import"./cli-0.1.11-qbcfg80y.mjs";import"./cli-0.1.11-b0jasw23.mjs";import"./cli-0.1.11-s6yfjcm5.mjs";import"./cli-0.1.11-sqqzwx4h.mjs";import"./cli-0.1.11-2w8d5vqb.mjs";import"./cli-0.1.11-d10nfa6g.mjs";import"./cli-0.1.11-h2hxx8ma.mjs";import"./cli-0.1.11-1xr9et85.mjs";import"./cli-0.1.11-v7bwjqf0.mjs";import"./cli-0.1.11-h7e4rkwk.mjs";import"./cli-0.1.11-7xr2ermy.mjs";import"./cli-0.1.11-7qpnfx56.mjs";import"./cli-0.1.11-vch8cn95.mjs";import"./cli-0.1.11-fag2wtke.mjs";import"./cli-0.1.11-nx8a99hz.mjs";import"./cli-0.1.11-ktwtyqmp.mjs";import"./cli-0.1.11-xwj7cmkj.mjs";import"./cli-0.1.11-vq5fvf9m.mjs";import"./cli-0.1.11-d3exw047.mjs";import"./cli-0.1.11-e5ecf583.mjs";import"./cli-0.1.11-rrnr3ab1.mjs";import"./cli-0.1.11-98zcwng9.mjs";import"./cli-0.1.11-yrfxpjhr.mjs";g();export{f as setupPluginHookHotReload,d as resetHotReloadState,c as pruneRemovedPluginHooks,a as loadPluginHooks,e as getPluginAffectingSettingsSnapshot,b as clearPluginHookCache};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{Jv as a,Kv as b,Lv as c,Mv as d}from"./cli-0.1.11-s8ygndzf.mjs";import"./cli-0.1.11-1bryv90w.mjs";import"./cli-0.1.11-5e45zda5.mjs";import"./cli-0.1.11-jjgjkqqv.mjs";import"./cli-0.1.11-r990p54m.mjs";import"./cli-0.1.11-70f778wy.mjs";import"./cli-0.1.11-weav8142.mjs";import"./cli-0.1.11-t7dc7fbj.mjs";import"./cli-0.1.11-vb5f7c3a.mjs";import"./cli-0.1.11-sma2xhvv.mjs";import"./cli-0.1.11-852v06g0.mjs";import"./cli-0.1.11-z4hb2mcd.mjs";import"./cli-0.1.11-mj78w4sp.mjs";import"./cli-0.1.11-qrq0sw0h.mjs";import"./cli-0.1.11-d4ahh3jz.mjs";import"./cli-0.1.11-wc9bay3d.mjs";import"./cli-0.1.11-rvk3t45h.mjs";import"./cli-0.1.11-0n77qn68.mjs";import"./cli-0.1.11-h02tyg8p.mjs";import"./cli-0.1.11-bvd2r7an.mjs";import"./cli-0.1.11-jr50ahcv.mjs";import"./cli-0.1.11-6zkfmcxp.mjs";import"./cli-0.1.11-jkrt4znb.mjs";import"./cli-0.1.11-424zgj5k.mjs";import"./cli-0.1.11-rj9ea3zn.mjs";import"./cli-0.1.11-mstxxz33.mjs";import"./cli-0.1.11-kghg51gb.mjs";import"./cli-0.1.11-fstfs72j.mjs";import"./cli-0.1.11-kk0qqs5v.mjs";import"./cli-0.1.11-x37jysc0.mjs";import"./cli-0.1.11-h762f6hr.mjs";import"./cli-0.1.11-50naxqgt.mjs";import"./cli-0.1.11-v6kwgrqc.mjs";import"./cli-0.1.11-16086k9e.mjs";import"./cli-0.1.11-bwpemkht.mjs";import"./cli-0.1.11-dcswnc8x.mjs";import"./cli-0.1.11-p22bdjhv.mjs";import"./cli-0.1.11-y4c6y87y.mjs";import"./cli-0.1.11-q58q9jqr.mjs";import"./cli-0.1.11-zb2sa3e2.mjs";import"./cli-0.1.11-3p2f194m.mjs";import"./cli-0.1.11-05ngjm8p.mjs";import"./cli-0.1.11-yv5pfq6n.mjs";import"./cli-0.1.11-qbcfg80y.mjs";import"./cli-0.1.11-b0jasw23.mjs";import"./cli-0.1.11-s6yfjcm5.mjs";import"./cli-0.1.11-sqqzwx4h.mjs";import"./cli-0.1.11-2w8d5vqb.mjs";import"./cli-0.1.11-d10nfa6g.mjs";import"./cli-0.1.11-h2hxx8ma.mjs";import"./cli-0.1.11-1xr9et85.mjs";import"./cli-0.1.11-v7bwjqf0.mjs";import"./cli-0.1.11-h7e4rkwk.mjs";import"./cli-0.1.11-7xr2ermy.mjs";import"./cli-0.1.11-7qpnfx56.mjs";import"./cli-0.1.11-vch8cn95.mjs";import"./cli-0.1.11-fag2wtke.mjs";import"./cli-0.1.11-nx8a99hz.mjs";import"./cli-0.1.11-ktwtyqmp.mjs";import"./cli-0.1.11-xwj7cmkj.mjs";import"./cli-0.1.11-vq5fvf9m.mjs";import"./cli-0.1.11-d3exw047.mjs";import"./cli-0.1.11-e5ecf583.mjs";import"./cli-0.1.11-rrnr3ab1.mjs";import"./cli-0.1.11-98zcwng9.mjs";import"./cli-0.1.11-yrfxpjhr.mjs";d();export{a as performLogout,b as clearAuthRelatedCaches,c as call};
|