@claudiolabs/claudin 0.6.8 → 0.6.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunks/AgentTool-0.6.9-9rxkpd2w.mjs +1 -0
- package/dist/chunks/App-0.6.9-2sr69sb6.mjs +1 -0
- package/dist/chunks/ApproveApiKey-0.6.9-qhjbrc90.mjs +1 -0
- package/dist/chunks/AssistantSessionChooser-0.6.9-btaax7hk.mjs +1 -0
- package/dist/chunks/AutoModeOptInDialog-0.6.9-4a8grmg8.mjs +1 -0
- package/dist/chunks/BypassPermissionsModeDialog-0.6.9-jxa6nz5k.mjs +1 -0
- package/dist/chunks/ClaudeMdExternalIncludesDialog-0.6.9-nn288md6.mjs +1 -0
- package/dist/chunks/ConsoleOAuthFlow-0.6.9-vbwtn6dq.mjs +1 -0
- package/dist/chunks/DiffDialog-0.6.9-hpv62yd3.mjs +7 -0
- package/dist/chunks/Doctor-0.6.9-tjmn7d05.mjs +1 -0
- package/dist/chunks/ExplorerDialog-0.6.9-xm77z99k.mjs +6 -0
- package/dist/chunks/Grove-0.6.9-avg93sya.mjs +1 -0
- package/dist/chunks/ITermBackend-0.6.9-pk67e59n.mjs +1 -0
- package/dist/chunks/InvalidConfigDialog-0.6.9-hjj8wzba.mjs +1 -0
- package/dist/chunks/InvalidSettingsDialog-0.6.9-pp8agzjc.mjs +1 -0
- package/dist/chunks/MigrationDialog-0.6.9-gqa8pkn6.mjs +1 -0
- package/dist/chunks/Onboarding-0.6.9-192qpt8b.mjs +1 -0
- package/dist/chunks/ProviderManager-0.6.9-ba2cfwrw.mjs +1 -0
- package/dist/chunks/REPL-0.6.9-gzw0s80y.mjs +1 -0
- package/dist/chunks/ResumeConversation-0.6.9-s38qycda.mjs +1 -0
- package/dist/chunks/SnapshotUpdateDialog-0.6.9-kxmns9zh.mjs +1 -0
- package/dist/chunks/TeleportProgress-0.6.9-kr1yf6k8.mjs +1 -0
- package/dist/chunks/TeleportRepoMismatchDialog-0.6.9-zmv3c62q.mjs +1 -0
- package/dist/chunks/TeleportResumeWrapper-0.6.9-m4jf5dr0.mjs +1 -0
- package/dist/chunks/TmuxBackend-0.6.9-b9ax9m6j.mjs +9 -0
- package/dist/chunks/ToolSearchTool-0.6.9-kjse2jv1.mjs +1 -0
- package/dist/chunks/TrustDialog-0.6.9-dahc1ev9.mjs +1 -0
- package/dist/chunks/activeProvider-0.6.9-5jwr5wg3.mjs +1 -0
- package/dist/chunks/add-dir-0.6.9-yfzy34qb.mjs +1 -0
- package/dist/chunks/agents-0.6.9-0n6mcvce.mjs +110 -0
- package/dist/chunks/agents-0.6.9-b31sawy3.mjs +3 -0
- package/dist/chunks/api-0.6.9-zdddwgzx.mjs +1 -0
- package/dist/chunks/asciicast-0.6.9-bzqqwjta.mjs +1 -0
- package/dist/chunks/assistant-0.6.9-7g8mz1p5.mjs +1 -0
- package/dist/chunks/auth-0.6.9-hjd8znw9.mjs +1 -0
- package/dist/chunks/auth-0.6.9-y5g1mgmg.mjs +1 -0
- package/dist/chunks/autoMode-0.6.9-rxq8ymw3.mjs +48 -0
- package/dist/chunks/autoUpdater-0.6.9-bpak4p67.mjs +1 -0
- package/dist/chunks/backgroundHousekeeping-0.6.9-asafysjv.mjs +1 -0
- package/dist/chunks/branch-0.6.9-7nbx2ywt.mjs +4 -0
- package/dist/chunks/bridge-0.6.9-1yc7bj8p.mjs +2 -0
- package/dist/chunks/bridgeConfig-0.6.9-m23yzban.mjs +1 -0
- package/dist/chunks/bridgeEnabled-0.6.9-7njgh7m2.mjs +1 -0
- package/dist/chunks/bridgeMain-0.6.9-8py5synr.mjs +88 -0
- package/dist/chunks/bridgePointer-0.6.9-j9cxeww1.mjs +1 -0
- package/dist/chunks/btw-0.6.9-ma7pmkk5.mjs +1 -0
- package/dist/chunks/buddy-0.6.9-1mkd3gdj.mjs +3 -0
- package/dist/chunks/cacache-0.6.9-24ya96gj.mjs +1 -0
- package/dist/chunks/cache-probe-0.6.9-gsvngvjh.mjs +21 -0
- package/dist/chunks/cacheStats-0.6.9-mafdpb09.mjs +4 -0
- package/dist/chunks/caches-0.6.9-6j6tyf4b.mjs +1 -0
- package/dist/chunks/claudeDesktop-0.6.9-h7d8r8vt.mjs +1 -0
- package/dist/chunks/claudemd-0.6.9-51rn86v1.mjs +1 -0
- package/dist/chunks/clear-0.6.9-6tv28ch2.mjs +1 -0
- package/dist/chunks/clearTerminal-0.6.9-0gh4v4ga.mjs +1 -0
- package/dist/chunks/cli-0.6.9-05w6ne3v.mjs +4 -0
- package/dist/chunks/cli-0.6.9-0f11memf.mjs +59 -0
- package/dist/chunks/cli-0.6.9-0j0w045z.mjs +2 -0
- package/dist/chunks/cli-0.6.9-0pfvh3w1.mjs +2 -0
- package/dist/chunks/cli-0.6.9-0qtkkmfq.mjs +2 -0
- package/dist/chunks/cli-0.6.9-0s223s8s.mjs +18 -0
- package/dist/chunks/cli-0.6.9-0t9pwgch.mjs +2 -0
- package/dist/chunks/cli-0.6.9-0wmp1q7a.mjs +2 -0
- package/dist/chunks/cli-0.6.9-0zey0wyh.mjs +2 -0
- package/dist/chunks/cli-0.6.9-143kz7xy.mjs +2 -0
- package/dist/chunks/cli-0.6.9-177spsqy.mjs +2 -0
- package/dist/chunks/cli-0.6.9-1a1q6vnc.mjs +9 -0
- package/dist/chunks/cli-0.6.9-1g9smwnt.mjs +2 -0
- package/dist/chunks/cli-0.6.9-268fcggy.mjs +3 -0
- package/dist/chunks/cli-0.6.9-2fe32k5y.mjs +2 -0
- package/dist/chunks/cli-0.6.9-2ffve69q.mjs +2 -0
- package/dist/chunks/cli-0.6.9-2nc79qh3.mjs +2 -0
- package/dist/chunks/cli-0.6.9-2zwgc8vn.mjs +2 -0
- package/dist/chunks/cli-0.6.9-30djh7wy.mjs +2 -0
- package/dist/chunks/cli-0.6.9-31dtrem4.mjs +2 -0
- package/dist/chunks/cli-0.6.9-31vx6nd6.mjs +2 -0
- package/dist/chunks/cli-0.6.9-35z6rask.mjs +2 -0
- package/dist/chunks/cli-0.6.9-3c6mqdk0.mjs +3 -0
- package/dist/chunks/cli-0.6.9-47kxmw0y.mjs +3 -0
- package/dist/chunks/cli-0.6.9-4e82zcfv.mjs +3 -0
- package/dist/chunks/cli-0.6.9-4hmydq2g.mjs +2 -0
- package/dist/chunks/cli-0.6.9-4mt6vz89.mjs +2 -0
- package/dist/chunks/cli-0.6.9-4nh8xyg8.mjs +3 -0
- package/dist/chunks/cli-0.6.9-4tdxta31.mjs +2 -0
- package/dist/chunks/cli-0.6.9-4vf40ybe.mjs +2 -0
- package/dist/chunks/cli-0.6.9-53jmw39d.mjs +2 -0
- package/dist/chunks/cli-0.6.9-5bs313jv.mjs +2 -0
- package/dist/chunks/cli-0.6.9-5ssjdjpx.mjs +2 -0
- package/dist/chunks/cli-0.6.9-5tam8r4f.mjs +2 -0
- package/dist/chunks/cli-0.6.9-618nhe26.mjs +2 -0
- package/dist/chunks/cli-0.6.9-64syz6hg.mjs +25 -0
- package/dist/chunks/cli-0.6.9-67m8zq43.mjs +2 -0
- package/dist/chunks/cli-0.6.9-67ms6qe8.mjs +2 -0
- package/dist/chunks/cli-0.6.9-6baq8t33.mjs +6 -0
- package/dist/chunks/cli-0.6.9-6c09kxnr.mjs +6 -0
- package/dist/chunks/cli-0.6.9-6czn2nk0.mjs +2 -0
- package/dist/chunks/cli-0.6.9-6vtgxtwc.mjs +2 -0
- package/dist/chunks/cli-0.6.9-703ts6mp.mjs +2 -0
- package/dist/chunks/cli-0.6.9-72pqdgfp.mjs +2 -0
- package/dist/chunks/cli-0.6.9-72xw2978.mjs +17 -0
- package/dist/chunks/cli-0.6.9-75m2z0pe.mjs +2 -0
- package/dist/chunks/cli-0.6.9-7c5zf7vm.mjs +2 -0
- package/dist/chunks/cli-0.6.9-7cm1vhs1.mjs +2 -0
- package/dist/chunks/cli-0.6.9-7e7zn9nj.mjs +42 -0
- package/dist/chunks/cli-0.6.9-7jptdarn.mjs +2 -0
- package/dist/chunks/cli-0.6.9-7ke3x92f.mjs +2 -0
- package/dist/chunks/cli-0.6.9-7p077nar.mjs +2 -0
- package/dist/chunks/cli-0.6.9-7s8ys0y7.mjs +2 -0
- package/dist/chunks/cli-0.6.9-7zyvegv3.mjs +2 -0
- package/dist/chunks/cli-0.6.9-83gnr7zb.mjs +3 -0
- package/dist/chunks/cli-0.6.9-8709kpq4.mjs +2 -0
- package/dist/chunks/cli-0.6.9-88y94bf5.mjs +2 -0
- package/dist/chunks/cli-0.6.9-8984d2qb.mjs +133 -0
- package/dist/chunks/cli-0.6.9-8amemx3r.mjs +2 -0
- package/dist/chunks/cli-0.6.9-8c45ksaw.mjs +2 -0
- package/dist/chunks/cli-0.6.9-8hye8y46.mjs +2 -0
- package/dist/chunks/cli-0.6.9-8v4sw3p1.mjs +2 -0
- package/dist/chunks/cli-0.6.9-8xxpa4ep.mjs +2 -0
- package/dist/chunks/cli-0.6.9-8ymt6nd1.mjs +2 -0
- package/dist/chunks/cli-0.6.9-8zqra5w7.mjs +18 -0
- package/dist/chunks/cli-0.6.9-97n772v9.mjs +3 -0
- package/dist/chunks/cli-0.6.9-9eyrhanm.mjs +3 -0
- package/dist/chunks/cli-0.6.9-9tvvnszt.mjs +15 -0
- package/dist/chunks/cli-0.6.9-9wvb59y3.mjs +8 -0
- package/dist/chunks/cli-0.6.9-9x9r4f8d.mjs +2 -0
- package/dist/chunks/cli-0.6.9-9zz415nm.mjs +2 -0
- package/dist/chunks/cli-0.6.9-a5zs8qb2.mjs +2 -0
- package/dist/chunks/cli-0.6.9-a91pdpbf.mjs +2 -0
- package/dist/chunks/cli-0.6.9-acekzr9a.mjs +15 -0
- package/dist/chunks/cli-0.6.9-aenf6vb7.mjs +2 -0
- package/dist/chunks/cli-0.6.9-ahdefj2b.mjs +2 -0
- package/dist/chunks/cli-0.6.9-aqma59cn.mjs +2 -0
- package/dist/chunks/cli-0.6.9-az6jyck0.mjs +24 -0
- package/dist/chunks/cli-0.6.9-b0y0kf38.mjs +2 -0
- package/dist/chunks/cli-0.6.9-bk34v13s.mjs +2 -0
- package/dist/chunks/cli-0.6.9-bkvwt4w3.mjs +12 -0
- package/dist/chunks/cli-0.6.9-bn2xtan6.mjs +2 -0
- package/dist/chunks/cli-0.6.9-cky5efqh.mjs +4 -0
- package/dist/chunks/cli-0.6.9-cp5fabjc.mjs +28 -0
- package/dist/chunks/cli-0.6.9-csbrfz7b.mjs +2 -0
- package/dist/chunks/cli-0.6.9-da750ce8.mjs +2 -0
- package/dist/chunks/cli-0.6.9-dhg2zjfr.mjs +2 -0
- package/dist/chunks/cli-0.6.9-dvd8t953.mjs +4 -0
- package/dist/chunks/cli-0.6.9-ejvhaena.mjs +2 -0
- package/dist/chunks/cli-0.6.9-ex3m411t.mjs +2 -0
- package/dist/chunks/cli-0.6.9-ey0mcqwk.mjs +2 -0
- package/dist/chunks/cli-0.6.9-f8vcjjc6.mjs +2 -0
- package/dist/chunks/cli-0.6.9-fc9vqmnf.mjs +2 -0
- package/dist/chunks/cli-0.6.9-fd6q2n8f.mjs +5 -0
- package/dist/chunks/cli-0.6.9-fepacdf9.mjs +2 -0
- package/dist/chunks/cli-0.6.9-fgkzcrmd.mjs +2 -0
- package/dist/chunks/cli-0.6.9-fqh9t0h9.mjs +58 -0
- package/dist/chunks/cli-0.6.9-fr4y4c0h.mjs +2 -0
- package/dist/chunks/cli-0.6.9-frq5etv7.mjs +4 -0
- package/dist/chunks/cli-0.6.9-g8vpamhp.mjs +2 -0
- package/dist/chunks/cli-0.6.9-gercjmay.mjs +5350 -0
- package/dist/chunks/cli-0.6.9-gfqjq2qe.mjs +2 -0
- package/dist/chunks/cli-0.6.9-ghdrkvmy.mjs +2 -0
- package/dist/chunks/cli-0.6.9-gvkq5xs9.mjs +2 -0
- package/dist/chunks/cli-0.6.9-h66ktwkz.mjs +2 -0
- package/dist/chunks/cli-0.6.9-h9kchbsc.mjs +6 -0
- package/dist/chunks/cli-0.6.9-hk5yv924.mjs +3 -0
- package/dist/chunks/cli-0.6.9-hx2vghp7.mjs +50 -0
- package/dist/chunks/cli-0.6.9-j94027pe.mjs +2 -0
- package/dist/chunks/cli-0.6.9-jfyk8906.mjs +6 -0
- package/dist/chunks/cli-0.6.9-jm1v5d99.mjs +2 -0
- package/dist/chunks/cli-0.6.9-jvqzvbrh.mjs +2 -0
- package/dist/chunks/cli-0.6.9-k0gktpk5.mjs +15 -0
- package/dist/chunks/cli-0.6.9-k14bgd9g.mjs +2 -0
- package/dist/chunks/cli-0.6.9-k9v9gdzp.mjs +2 -0
- package/dist/chunks/cli-0.6.9-kanmrra0.mjs +2 -0
- package/dist/chunks/cli-0.6.9-khjkzjgr.mjs +2 -0
- package/dist/chunks/cli-0.6.9-knasgz9g.mjs +2 -0
- package/dist/chunks/cli-0.6.9-kv2gx7he.mjs +2 -0
- package/dist/chunks/cli-0.6.9-kxe1p7p9.mjs +2 -0
- package/dist/chunks/cli-0.6.9-m0fs2cnk.mjs +2 -0
- package/dist/chunks/cli-0.6.9-m9n8nvmz.mjs +7 -0
- package/dist/chunks/cli-0.6.9-mb7kx11j.mjs +2 -0
- package/dist/chunks/cli-0.6.9-me596055.mjs +5 -0
- package/dist/chunks/cli-0.6.9-mhcym441.mjs +2 -0
- package/dist/chunks/cli-0.6.9-mjx2tx8w.mjs +2 -0
- package/dist/chunks/cli-0.6.9-mn3sjrek.mjs +2 -0
- package/dist/chunks/cli-0.6.9-mn808zcz.mjs +2 -0
- package/dist/chunks/cli-0.6.9-n52xxa1k.mjs +3 -0
- package/dist/chunks/cli-0.6.9-nahjphjz.mjs +2 -0
- package/dist/chunks/cli-0.6.9-njaeg8jw.mjs +4 -0
- package/dist/chunks/cli-0.6.9-nm598kmg.mjs +2 -0
- package/dist/chunks/cli-0.6.9-ns77j0rb.mjs +2 -0
- package/dist/chunks/cli-0.6.9-nyn27tc4.mjs +2 -0
- package/dist/chunks/cli-0.6.9-p05qz9pw.mjs +2 -0
- package/dist/chunks/cli-0.6.9-p61nt01z.mjs +4 -0
- package/dist/chunks/cli-0.6.9-p9sazvks.mjs +2 -0
- package/dist/chunks/cli-0.6.9-pc08dfva.mjs +2 -0
- package/dist/chunks/cli-0.6.9-pgqqhqcb.mjs +2 -0
- package/dist/chunks/cli-0.6.9-prq3ecgt.mjs +2 -0
- package/dist/chunks/cli-0.6.9-psmra04s.mjs +2 -0
- package/dist/chunks/cli-0.6.9-pxnbcvjk.mjs +2 -0
- package/dist/chunks/cli-0.6.9-pyzfty1h.mjs +1 -0
- package/dist/chunks/cli-0.6.9-pzdzwxv3.mjs +2 -0
- package/dist/chunks/cli-0.6.9-q1k864q5.mjs +24 -0
- package/dist/chunks/cli-0.6.9-q1sngnn9.mjs +2 -0
- package/dist/chunks/cli-0.6.9-q95j0sxq.mjs +2 -0
- package/dist/chunks/cli-0.6.9-qef0vmv4.mjs +2 -0
- package/dist/chunks/cli-0.6.9-qfk8bh8k.mjs +20 -0
- package/dist/chunks/cli-0.6.9-qq2p34an.mjs +2 -0
- package/dist/chunks/cli-0.6.9-qwk9n0r3.mjs +4 -0
- package/dist/chunks/cli-0.6.9-r3p8fksb.mjs +2 -0
- package/dist/chunks/cli-0.6.9-r46qknk7.mjs +2 -0
- package/dist/chunks/cli-0.6.9-r81h8n5p.mjs +2 -0
- package/dist/chunks/cli-0.6.9-rcmd16qm.mjs +2 -0
- package/dist/chunks/cli-0.6.9-rmmwn2p7.mjs +2 -0
- package/dist/chunks/cli-0.6.9-s03y3b3q.mjs +2 -0
- package/dist/chunks/cli-0.6.9-s1r1tza8.mjs +133 -0
- package/dist/chunks/cli-0.6.9-s2pyty79.mjs +2 -0
- package/dist/chunks/cli-0.6.9-s4cwpcyg.mjs +2 -0
- package/dist/chunks/cli-0.6.9-sa2fxctp.mjs +2 -0
- package/dist/chunks/cli-0.6.9-sd2hp4aq.mjs +2 -0
- package/dist/chunks/cli-0.6.9-sg9116zb.mjs +17 -0
- package/dist/chunks/cli-0.6.9-sr9jy37c.mjs +3 -0
- package/dist/chunks/cli-0.6.9-sx115432.mjs +12 -0
- package/dist/chunks/cli-0.6.9-t2yrab6t.mjs +2 -0
- package/dist/chunks/cli-0.6.9-tae7g2d9.mjs +2 -0
- package/dist/chunks/cli-0.6.9-td7kr6wd.mjs +2 -0
- package/dist/chunks/cli-0.6.9-tenfy5s3.mjs +21 -0
- package/dist/chunks/cli-0.6.9-tkvj57rn.mjs +2 -0
- package/dist/chunks/cli-0.6.9-tn4basxv.mjs +2 -0
- package/dist/chunks/cli-0.6.9-tnf75x7v.mjs +2 -0
- package/dist/chunks/cli-0.6.9-tt8mt40f.mjs +2 -0
- package/dist/chunks/cli-0.6.9-tya05wpq.mjs +2 -0
- package/dist/chunks/cli-0.6.9-v3a8d4n8.mjs +12 -0
- package/dist/chunks/cli-0.6.9-v3yecwhs.mjs +34 -0
- package/dist/chunks/cli-0.6.9-vbzp917y.mjs +3 -0
- package/dist/chunks/cli-0.6.9-w56gxnbb.mjs +67 -0
- package/dist/chunks/cli-0.6.9-w6ee6p28.mjs +4 -0
- package/dist/chunks/cli-0.6.9-wr8a7whz.mjs +2 -0
- package/dist/chunks/cli-0.6.9-wrs935pe.mjs +3 -0
- package/dist/chunks/cli-0.6.9-x4xhf8vr.mjs +2 -0
- package/dist/chunks/cli-0.6.9-x9vbsw98.mjs +2 -0
- package/dist/chunks/cli-0.6.9-xd2h9tsn.mjs +2 -0
- package/dist/chunks/cli-0.6.9-xdzfwf1n.mjs +2 -0
- package/dist/chunks/cli-0.6.9-xpvddrex.mjs +4 -0
- package/dist/chunks/cli-0.6.9-y0wg39nk.mjs +2 -0
- package/dist/chunks/cli-0.6.9-yh3sfvca.mjs +2 -0
- package/dist/chunks/cli-0.6.9-yhp352r8.mjs +193 -0
- package/dist/chunks/cli-0.6.9-ymxkw0j9.mjs +5 -0
- package/dist/chunks/cli-0.6.9-ynh6kjv5.mjs +2 -0
- package/dist/chunks/cli-0.6.9-ytpaqmsk.mjs +45 -0
- package/dist/chunks/cli-0.6.9-z2400j8e.mjs +2 -0
- package/dist/chunks/cli-0.6.9-z3wh6pmj.mjs +4 -0
- package/dist/chunks/cli-0.6.9-z6aaad8t.mjs +10 -0
- package/dist/chunks/cli-0.6.9-zsnw0941.mjs +39 -0
- package/dist/chunks/cli-0.6.9-zzzn3e8b.mjs +16 -0
- package/dist/chunks/client-0.6.9-cz438b8v.mjs +1 -0
- package/dist/chunks/color-0.6.9-vdsgnwjj.mjs +1 -0
- package/dist/chunks/compact-0.6.9-gp0w7v9s.mjs +3 -0
- package/dist/chunks/config-0.6.9-f50cq2by.mjs +1 -0
- package/dist/chunks/config-0.6.9-zezbmxp9.mjs +1 -0
- package/dist/chunks/constants-0.6.9-d7fjn6ym.mjs +1 -0
- package/dist/chunks/context-0.6.9-vs4wf3qj.mjs +1 -0
- package/dist/chunks/context-noninteractive-0.6.9-3v8697je.mjs +1 -0
- package/dist/chunks/conversation-0.6.9-sq5hwdze.mjs +1 -0
- package/dist/chunks/copilotHeaders-0.6.9-kf7a254d.mjs +1 -0
- package/dist/chunks/copy-0.6.9-qfs2e58z.mjs +9 -0
- package/dist/chunks/cost-0.6.9-w97qsa6d.mjs +1 -0
- package/dist/chunks/createSSHSession-0.6.9-9r9vyh4c.mjs +1 -0
- package/dist/chunks/createSession-0.6.9-w8bj9hkr.mjs +1 -0
- package/dist/chunks/debug-0.6.9-p5c3pfsj.mjs +1 -0
- package/dist/chunks/defaultActionDeps-0.6.9-g6wka3f7.mjs +1367 -0
- package/dist/chunks/desktop-0.6.9-szcfghe5.mjs +1 -0
- package/dist/chunks/detectRepository-0.6.9-sv4rn6e9.mjs +1 -0
- package/dist/chunks/detection-0.6.9-avkk26gv.mjs +1 -0
- package/dist/chunks/diff-0.6.9-6qtw4swj.mjs +1 -0
- package/dist/chunks/doctor-0.6.9-wemp2503.mjs +1 -0
- package/dist/chunks/doctorDiagnostic-0.6.9-n4wcbma8.mjs +1 -0
- package/dist/chunks/earlyInput-0.6.9-7t2yxx2k.mjs +1 -0
- package/dist/chunks/effort-0.6.9-ad6129tk.mjs +10 -0
- package/dist/chunks/envLessBridgeConfig-0.6.9-9276szv2.mjs +1 -0
- package/dist/chunks/envUtils-0.6.9-ynm3aqgf.mjs +1 -0
- package/dist/chunks/environmentSelection-0.6.9-cjwzdh51.mjs +1 -0
- package/dist/chunks/environments-0.6.9-s5d4xqep.mjs +1 -0
- package/dist/chunks/errors-0.6.9-w9kte9cs.mjs +1 -0
- package/dist/chunks/exampleCommands-0.6.9-4056c0dz.mjs +1 -0
- package/dist/chunks/exit-0.6.9-j72je7w6.mjs +1 -0
- package/dist/chunks/explorer-0.6.9-98k1atn1.mjs +1 -0
- package/dist/chunks/export-0.6.9-s9zpgv4f.mjs +2 -0
- package/dist/chunks/extra-usage-0.6.9-6nj4st4n.mjs +1 -0
- package/dist/chunks/extra-usage-noninteractive-0.6.9-nwh6dbn1.mjs +1 -0
- package/dist/chunks/fast-0.6.9-r5349jvd.mjs +1 -0
- package/dist/chunks/feedback-0.6.9-ssn1fmcb.mjs +14 -0
- package/dist/chunks/firstPartyEventLogger-0.6.9-pm4x6st7.mjs +1 -0
- package/dist/chunks/git-0.6.9-y91x52y1.mjs +1 -0
- package/dist/chunks/githubModelsCredentials-0.6.9-kfr0nk73.mjs +1 -0
- package/dist/chunks/goal-0.6.9-3gwvk3bv.mjs +4 -0
- package/dist/chunks/grove-0.6.9-wmv3gysg.mjs +1 -0
- package/dist/chunks/growthbook-0.6.9-7ajmx6eh.mjs +1 -0
- package/dist/chunks/headless-0.6.9-6ab7stx4.mjs +2 -0
- package/dist/chunks/heapdump-0.6.9-1kx1h3ba.mjs +6 -0
- package/dist/chunks/help-0.6.9-rf486d17.mjs +1 -0
- package/dist/chunks/hookChains-0.6.9-pxna9psh.mjs +3 -0
- package/dist/chunks/hooks-0.6.9-wav1pakb.mjs +1 -0
- package/dist/chunks/hooks-0.6.9-zc69g73d.mjs +79 -0
- package/dist/chunks/ide-0.6.9-kgqwyzh1.mjs +3 -0
- package/dist/chunks/image-processor-napi-0.6.9-pa1ny79r.mjs +1 -0
- package/dist/chunks/inboundAttachments-0.6.9-jjfdegyr.mjs +1 -0
- package/dist/chunks/index-0.6.9-0nqhy7sy.mjs +1 -0
- package/dist/chunks/index-0.6.9-1bq0hpw2.mjs +1 -0
- package/dist/chunks/index-0.6.9-2snpdxy3.mjs +1 -0
- package/dist/chunks/index-0.6.9-5k23gfe9.mjs +1 -0
- package/dist/chunks/index-0.6.9-619t4kvv.mjs +9 -0
- package/dist/chunks/index-0.6.9-8kfhzkpy.mjs +1 -0
- package/dist/chunks/index-0.6.9-902sjqyc.mjs +9 -0
- package/dist/chunks/index-0.6.9-a2ssd4wq.mjs +30 -0
- package/dist/chunks/index-0.6.9-aqfgsev2.mjs +1 -0
- package/dist/chunks/index-0.6.9-arpthr5q.mjs +2 -0
- package/dist/chunks/index-0.6.9-bngr20xg.mjs +2 -0
- package/dist/chunks/index-0.6.9-ck4qgvty.mjs +1 -0
- package/dist/chunks/index-0.6.9-d2vjtgqs.mjs +1 -0
- package/dist/chunks/index-0.6.9-e3szhjja.mjs +1 -0
- package/dist/chunks/index-0.6.9-efqgg2fb.mjs +1 -0
- package/dist/chunks/index-0.6.9-ewht5a34.mjs +5 -0
- package/dist/chunks/index-0.6.9-g43bx48w.mjs +1 -0
- package/dist/chunks/index-0.6.9-jq16aq9c.mjs +1 -0
- package/dist/chunks/index-0.6.9-n4d1shjt.mjs +1 -0
- package/dist/chunks/index-0.6.9-r63gj39n.mjs +1 -0
- package/dist/chunks/index-0.6.9-rry8n9vj.mjs +1 -0
- package/dist/chunks/index-0.6.9-v2xp35sf.mjs +1 -0
- package/dist/chunks/index-0.6.9-vev4s22g.mjs +1 -0
- package/dist/chunks/init-0.6.9-h8jwxt6h.mjs +1 -0
- package/dist/chunks/initReplBridge-0.6.9-c10qt3gn.mjs +1 -0
- package/dist/chunks/ink-0.6.9-49s4s9jc.mjs +1 -0
- package/dist/chunks/insights-0.6.9-sag6cjh3.mjs +870 -0
- package/dist/chunks/install-0.6.9-s1h2dkak.mjs +1 -0
- package/dist/chunks/install-github-app-0.6.9-rgv15r8t.mjs +149 -0
- package/dist/chunks/install-slack-app-0.6.9-cpn9fgkg.mjs +1 -0
- package/dist/chunks/instrumentation-0.6.9-265vgh29.mjs +1 -0
- package/dist/chunks/interactiveHelpers-0.6.9-5p2xm7b4.mjs +1 -0
- package/dist/chunks/keybindings-0.6.9-8755gwzd.mjs +2 -0
- package/dist/chunks/knowledge-0.6.9-vv9d2yhp.mjs +2 -0
- package/dist/chunks/latestVersionCache-0.6.9-acef14hs.mjs +1 -0
- package/dist/chunks/loadAgentsDir-0.6.9-s5zmmsmj.mjs +1 -0
- package/dist/chunks/loadPluginHooks-0.6.9-e65pc8g0.mjs +1 -0
- package/dist/chunks/loadPluginHooks-0.6.9-k2ddma7b.mjs +1 -0
- package/dist/chunks/log-0.6.9-bb1wwfr9.mjs +1 -0
- package/dist/chunks/main-0.6.9-xp3yb12z.mjs +1 -0
- package/dist/chunks/managedEnv-0.6.9-9vjjgckq.mjs +1 -0
- package/dist/chunks/mcp-0.6.9-3k9qwk6b.mjs +17 -0
- package/dist/chunks/mcp-0.6.9-74q0zmbx.mjs +1 -0
- package/dist/chunks/mcp-0.6.9-hnmfw09m.mjs +4 -0
- package/dist/chunks/mcpb-0.6.9-npmecrdw.mjs +1 -0
- package/dist/chunks/memory-0.6.9-r9amy13p.mjs +3 -0
- package/dist/chunks/model-0.6.9-j7qkjsh4.mjs +1 -0
- package/dist/chunks/model-0.6.9-qvbhjt5a.mjs +2 -0
- package/dist/chunks/node-0.6.9-7618k0cs.mjs +12 -0
- package/dist/chunks/oauth-0.6.9-10e6vje5.mjs +1 -0
- package/dist/chunks/openaiShim-0.6.9-pke3rkx3.mjs +14 -0
- package/dist/chunks/output-style-0.6.9-5dww84zv.mjs +1 -0
- package/dist/chunks/package-FMOR3ELU-0.6.9-tqcy00ry.mjs +1 -0
- package/dist/chunks/parseConnectUrl-0.6.9-rzx7fgrs.mjs +1 -0
- package/dist/chunks/parser-0.6.9-r5r8db6m.mjs +1 -0
- package/dist/chunks/passes-0.6.9-9ntxdmjs.mjs +1 -0
- package/dist/chunks/permissions-0.6.9-06k3424m.mjs +1 -0
- package/dist/chunks/permissions-0.6.9-qg4repwk.mjs +3 -0
- package/dist/chunks/plan-0.6.9-2bgtj9s7.mjs +1 -0
- package/dist/chunks/plist-0.6.9-qwz1tx1x.mjs +1 -0
- package/dist/chunks/plugin-0.6.9-tptgr2qf.mjs +29 -0
- package/dist/chunks/pluginStartupCheck-0.6.9-9dfate68.mjs +1 -0
- package/dist/chunks/plugins-0.6.9-qmzrjgkm.mjs +9 -0
- package/dist/chunks/preActionHook-0.6.9-kcp5zkcc.mjs +2 -0
- package/dist/chunks/print-0.6.9-m3fbd53e.mjs +57 -0
- package/dist/chunks/privacy-settings-0.6.9-16gpzrax.mjs +1 -0
- package/dist/chunks/process-0.6.9-3e3f5r17.mjs +1 -0
- package/dist/chunks/processBashCommand-0.6.9-542d591h.mjs +1 -0
- package/dist/chunks/processSlashCommand-0.6.9-esx1dxzr.mjs +9 -0
- package/dist/chunks/prompt-0.6.9-r0j2sxeh.mjs +1 -0
- package/dist/chunks/prompt-0.6.9-yqs9hbe5.mjs +1 -0
- package/dist/chunks/prompts-0.6.9-aejx76by.mjs +1 -0
- package/dist/chunks/protocolHandler-0.6.9-6f15y1bc.mjs +13 -0
- package/dist/chunks/provider-0.6.9-cq128p4x.mjs +2 -0
- package/dist/chunks/providerProfiles-0.6.9-angsmcpe.mjs +1 -0
- package/dist/chunks/providerValidation-0.6.9-jvq9j27j.mjs +6 -0
- package/dist/chunks/rate-limit-options-0.6.9-bb7szjxd.mjs +1 -0
- package/dist/chunks/registerSubcommands-0.6.9-ntgxbjdf.mjs +34 -0
- package/dist/chunks/registry-0.6.9-g3jk5jc0.mjs +1 -0
- package/dist/chunks/release-notes-0.6.9-za6qss4x.mjs +5 -0
- package/dist/chunks/reload-plugins-0.6.9-4kq8n1bm.mjs +2 -0
- package/dist/chunks/remote-env-0.6.9-zf6vx3hg.mjs +1 -0
- package/dist/chunks/remoteBridgeCore-0.6.9-pz9x9kkp.mjs +1 -0
- package/dist/chunks/remoteSession-0.6.9-b0yejcdh.mjs +1 -0
- package/dist/chunks/rename-0.6.9-v12x6k3n.mjs +1 -0
- package/dist/chunks/replBridgeHandle-0.6.9-5dnpvxp7.mjs +1 -0
- package/dist/chunks/replLauncher-0.6.9-b9vwe3a0.mjs +1 -0
- package/dist/chunks/resume-0.6.9-bd2pqpzx.mjs +2 -0
- package/dist/chunks/rewind-0.6.9-mtghn6v6.mjs +1 -0
- package/dist/chunks/rootOptions-0.6.9-kthybc4f.mjs +1 -0
- package/dist/chunks/sandbox-adapter-0.6.9-xy35en8q.mjs +1 -0
- package/dist/chunks/sandbox-toggle-0.6.9-5xezm83a.mjs +1 -0
- package/dist/chunks/session-0.6.9-m7jcvyhf.mjs +2 -0
- package/dist/chunks/sessionDiscovery-0.6.9-xtq2azg8.mjs +1 -0
- package/dist/chunks/sessionFileAccessHooks-0.6.9-cw7p2vz4.mjs +1 -0
- package/dist/chunks/sessionStorage-0.6.9-cf9hvj5p.mjs +1 -0
- package/dist/chunks/settings-0.6.9-3yt2knq2.mjs +1 -0
- package/dist/chunks/setup-0.6.9-zyhhsegx.mjs +5 -0
- package/dist/chunks/sinks-0.6.9-37az99sx.mjs +1 -0
- package/dist/chunks/skills-0.6.9-pmayt9xm.mjs +1 -0
- package/dist/chunks/startupProfiler-0.6.9-rqf2vjrq.mjs +1 -0
- package/dist/chunks/startupUpdateCheck-0.6.9-2n5g00f9.mjs +1 -0
- package/dist/chunks/state-0.6.9-6bv4xar6.mjs +1 -0
- package/dist/chunks/stats-0.6.9-vm6c7j7g.mjs +6 -0
- package/dist/chunks/status-0.6.9-fm5f7dvn.mjs +1 -0
- package/dist/chunks/stickers-0.6.9-wqd21rwz.mjs +1 -0
- package/dist/chunks/subprocessEnv-0.6.9-42b0wsjg.mjs +1 -0
- package/dist/chunks/tasks-0.6.9-f6fah65x.mjs +1 -0
- package/dist/chunks/teamHelpers-0.6.9-0azp8kbe.mjs +1 -0
- package/dist/chunks/teammateModeSnapshot-0.6.9-1b3b44py.mjs +1 -0
- package/dist/chunks/teleport-0.6.9-y0314abd.mjs +1 -0
- package/dist/chunks/terminalSetup-0.6.9-wp4j4emr.mjs +1 -0
- package/dist/chunks/theme-0.6.9-wd132tma.mjs +1 -0
- package/dist/chunks/thinkback-0.6.9-s2hgsb3p.mjs +1 -0
- package/dist/chunks/thinkback-play-0.6.9-n9nbpvnr.mjs +1 -0
- package/dist/chunks/toolPool-0.6.9-q3tw4r65.mjs +1 -0
- package/dist/chunks/toolSearch-0.6.9-d6we1981.mjs +1 -0
- package/dist/chunks/tools-0.6.9-a8ce0ts5.mjs +1 -0
- package/dist/chunks/trustedDevice-0.6.9-5mvbmmaw.mjs +1 -0
- package/dist/chunks/turndown.cjs-0.6.9-spamn9kh.mjs +69 -0
- package/dist/chunks/types-0.6.9-9jzm5cwt.mjs +1 -0
- package/dist/chunks/ultrareviewCommand-0.6.9-bpefwyej.mjs +4 -0
- package/dist/chunks/update-0.6.9-pxbtnmt1.mjs +86 -0
- package/dist/chunks/upgrade-0.6.9-1yghety6.mjs +1 -0
- package/dist/chunks/upload-0.6.9-g09ng6tg.mjs +7 -0
- package/dist/chunks/upstreamproxy-0.6.9-dk2q7qk2.mjs +14 -0
- package/dist/chunks/url-handler-napi-0.6.9-rh07p4qq.mjs +1 -0
- package/dist/chunks/usage-0.6.9-z5y3f792.mjs +1 -0
- package/dist/chunks/util-0.6.9-fzw6284w.mjs +1 -0
- package/dist/chunks/utils-0.6.9-0rg7h5a5.mjs +1 -0
- package/dist/chunks/vim-0.6.9-pjkbr7kq.mjs +1 -0
- package/dist/chunks/watcher-0.6.9-0r6bzvm6.mjs +1 -0
- package/dist/chunks/wiki-0.6.9-v7kdrm8t.mjs +132 -0
- package/dist/chunks/worktree-0.6.9-ef4xspe2.mjs +1 -0
- package/dist/chunks/worktreeModeEnabled-0.6.9-kvm9x26k.mjs +1 -0
- package/dist/chunks/wrapper-0.6.9-b63s2yhh.mjs +7 -0
- package/dist/claudin-vscode.vsix +0 -0
- package/dist/cli.mjs +2 -2
- package/package.json +1 -1
- package/dist/chunks/AgentTool-0.6.8-1h6eg55x.mjs +0 -1
- package/dist/chunks/App-0.6.8-gf7z37d0.mjs +0 -1
- package/dist/chunks/ApproveApiKey-0.6.8-z559z4n4.mjs +0 -1
- package/dist/chunks/AssistantSessionChooser-0.6.8-a964szce.mjs +0 -1
- package/dist/chunks/AutoModeOptInDialog-0.6.8-hmgphwsn.mjs +0 -1
- package/dist/chunks/BypassPermissionsModeDialog-0.6.8-9vwjqk2g.mjs +0 -1
- package/dist/chunks/ClaudeMdExternalIncludesDialog-0.6.8-bmx62ftg.mjs +0 -1
- package/dist/chunks/ConsoleOAuthFlow-0.6.8-6xg5m0rs.mjs +0 -1
- package/dist/chunks/DiffDialog-0.6.8-m77gpjht.mjs +0 -7
- package/dist/chunks/Doctor-0.6.8-h33wtqvb.mjs +0 -1
- package/dist/chunks/ExplorerDialog-0.6.8-g4rjbnb6.mjs +0 -6
- package/dist/chunks/Grove-0.6.8-c6v8rps5.mjs +0 -1
- package/dist/chunks/ITermBackend-0.6.8-c6rr3der.mjs +0 -1
- package/dist/chunks/InvalidConfigDialog-0.6.8-rq8061vm.mjs +0 -1
- package/dist/chunks/InvalidSettingsDialog-0.6.8-k3gjdk9q.mjs +0 -1
- package/dist/chunks/MigrationDialog-0.6.8-fndbdavr.mjs +0 -1
- package/dist/chunks/Onboarding-0.6.8-p9c1cvpj.mjs +0 -1
- package/dist/chunks/ProviderManager-0.6.8-rgwzy8mv.mjs +0 -1
- package/dist/chunks/REPL-0.6.8-wz4ky583.mjs +0 -1
- package/dist/chunks/ResumeConversation-0.6.8-0vytwym2.mjs +0 -1
- package/dist/chunks/SnapshotUpdateDialog-0.6.8-j49mg943.mjs +0 -1
- package/dist/chunks/TeleportProgress-0.6.8-1w0czdzd.mjs +0 -1
- package/dist/chunks/TeleportRepoMismatchDialog-0.6.8-3tb748qg.mjs +0 -1
- package/dist/chunks/TeleportResumeWrapper-0.6.8-cchdkcj0.mjs +0 -1
- package/dist/chunks/TmuxBackend-0.6.8-83basabp.mjs +0 -9
- package/dist/chunks/ToolSearchTool-0.6.8-vz9cakde.mjs +0 -1
- package/dist/chunks/TrustDialog-0.6.8-9xfzmsa4.mjs +0 -1
- package/dist/chunks/activeProvider-0.6.8-z6bqkc89.mjs +0 -1
- package/dist/chunks/add-dir-0.6.8-maggp9sq.mjs +0 -1
- package/dist/chunks/agents-0.6.8-b17xcjhg.mjs +0 -3
- package/dist/chunks/agents-0.6.8-n3vcbv4n.mjs +0 -110
- package/dist/chunks/api-0.6.8-dx65vfgr.mjs +0 -1
- package/dist/chunks/asciicast-0.6.8-xdty46r6.mjs +0 -1
- package/dist/chunks/assistant-0.6.8-48pyb11z.mjs +0 -1
- package/dist/chunks/auth-0.6.8-jzmpk916.mjs +0 -1
- package/dist/chunks/auth-0.6.8-v4ggd1x2.mjs +0 -1
- package/dist/chunks/autoMode-0.6.8-e3tpbf8n.mjs +0 -48
- package/dist/chunks/autoUpdater-0.6.8-kjwba4kd.mjs +0 -1
- package/dist/chunks/backgroundHousekeeping-0.6.8-ahc5b93c.mjs +0 -1
- package/dist/chunks/branch-0.6.8-bht94rzm.mjs +0 -4
- package/dist/chunks/bridge-0.6.8-w3a5wvz5.mjs +0 -2
- package/dist/chunks/bridgeConfig-0.6.8-tcqxv3wr.mjs +0 -1
- package/dist/chunks/bridgeEnabled-0.6.8-bbk61bwx.mjs +0 -1
- package/dist/chunks/bridgeMain-0.6.8-4gdvjwd9.mjs +0 -88
- package/dist/chunks/bridgePointer-0.6.8-y9zbj5sw.mjs +0 -1
- package/dist/chunks/btw-0.6.8-p8v9ccqj.mjs +0 -1
- package/dist/chunks/buddy-0.6.8-cc9dgg1j.mjs +0 -3
- package/dist/chunks/cacache-0.6.8-sa10tzqt.mjs +0 -1
- package/dist/chunks/cache-probe-0.6.8-rb3gqp6p.mjs +0 -21
- package/dist/chunks/cacheStats-0.6.8-ayfpcw3z.mjs +0 -4
- package/dist/chunks/caches-0.6.8-z51zt2q7.mjs +0 -1
- package/dist/chunks/claudeDesktop-0.6.8-f2s8faxb.mjs +0 -1
- package/dist/chunks/claudemd-0.6.8-b32hs73z.mjs +0 -1
- package/dist/chunks/clear-0.6.8-wr581077.mjs +0 -1
- package/dist/chunks/clearTerminal-0.6.8-n1mdykjw.mjs +0 -1
- package/dist/chunks/cli-0.6.8-00w6vgmt.mjs +0 -4
- package/dist/chunks/cli-0.6.8-026meybw.mjs +0 -2
- package/dist/chunks/cli-0.6.8-070cxjdc.mjs +0 -2
- package/dist/chunks/cli-0.6.8-097dncsw.mjs +0 -2
- package/dist/chunks/cli-0.6.8-0dtwbbq2.mjs +0 -10
- package/dist/chunks/cli-0.6.8-0gpdjv55.mjs +0 -34
- package/dist/chunks/cli-0.6.8-0hn9sy42.mjs +0 -2
- package/dist/chunks/cli-0.6.8-0mb0d7wn.mjs +0 -3
- package/dist/chunks/cli-0.6.8-0mnxmayn.mjs +0 -2
- package/dist/chunks/cli-0.6.8-0rt710pa.mjs +0 -2
- package/dist/chunks/cli-0.6.8-0s41dm0j.mjs +0 -2
- package/dist/chunks/cli-0.6.8-0yz4b8v5.mjs +0 -2
- package/dist/chunks/cli-0.6.8-0zdwjw7h.mjs +0 -17
- package/dist/chunks/cli-0.6.8-1bmxpdky.mjs +0 -2
- package/dist/chunks/cli-0.6.8-1g5hjvgr.mjs +0 -3
- package/dist/chunks/cli-0.6.8-1k0se62h.mjs +0 -2
- package/dist/chunks/cli-0.6.8-1mnssvmz.mjs +0 -8
- package/dist/chunks/cli-0.6.8-1yx8jjck.mjs +0 -2
- package/dist/chunks/cli-0.6.8-21y1120z.mjs +0 -2
- package/dist/chunks/cli-0.6.8-239wrpj3.mjs +0 -2
- package/dist/chunks/cli-0.6.8-259kprym.mjs +0 -2
- package/dist/chunks/cli-0.6.8-25he0rqv.mjs +0 -2
- package/dist/chunks/cli-0.6.8-2e9hw0b1.mjs +0 -4
- package/dist/chunks/cli-0.6.8-2f4081dz.mjs +0 -2
- package/dist/chunks/cli-0.6.8-2h6sve00.mjs +0 -12
- package/dist/chunks/cli-0.6.8-2nda5zxh.mjs +0 -67
- package/dist/chunks/cli-0.6.8-2p06hgb1.mjs +0 -2
- package/dist/chunks/cli-0.6.8-2pj7sdxd.mjs +0 -2
- package/dist/chunks/cli-0.6.8-2qb9g75m.mjs +0 -2
- package/dist/chunks/cli-0.6.8-34gwg749.mjs +0 -2
- package/dist/chunks/cli-0.6.8-3a510y9k.mjs +0 -2
- package/dist/chunks/cli-0.6.8-3ewbgezt.mjs +0 -2
- package/dist/chunks/cli-0.6.8-3phwrcqa.mjs +0 -3
- package/dist/chunks/cli-0.6.8-3z78waf8.mjs +0 -4
- package/dist/chunks/cli-0.6.8-416cqzak.mjs +0 -2
- package/dist/chunks/cli-0.6.8-4a0ebxtv.mjs +0 -2
- package/dist/chunks/cli-0.6.8-4avmxq80.mjs +0 -6
- package/dist/chunks/cli-0.6.8-4d57xs6b.mjs +0 -2
- package/dist/chunks/cli-0.6.8-4jh3r7br.mjs +0 -2
- package/dist/chunks/cli-0.6.8-4zdzrvfa.mjs +0 -2
- package/dist/chunks/cli-0.6.8-5enet6dq.mjs +0 -2
- package/dist/chunks/cli-0.6.8-5gstf2n7.mjs +0 -2
- package/dist/chunks/cli-0.6.8-5n9bwjf9.mjs +0 -2
- package/dist/chunks/cli-0.6.8-5sexbrs8.mjs +0 -3
- package/dist/chunks/cli-0.6.8-5y8n5kpk.mjs +0 -2
- package/dist/chunks/cli-0.6.8-6050y1gw.mjs +0 -2
- package/dist/chunks/cli-0.6.8-61qkxc3j.mjs +0 -2
- package/dist/chunks/cli-0.6.8-6495m72a.mjs +0 -2
- package/dist/chunks/cli-0.6.8-6ccg5qmp.mjs +0 -2
- package/dist/chunks/cli-0.6.8-6nasamhy.mjs +0 -2
- package/dist/chunks/cli-0.6.8-6pf3s7fk.mjs +0 -6
- package/dist/chunks/cli-0.6.8-6tgf3xa0.mjs +0 -133
- package/dist/chunks/cli-0.6.8-6v315rd0.mjs +0 -2
- package/dist/chunks/cli-0.6.8-6wdxaa6q.mjs +0 -3
- package/dist/chunks/cli-0.6.8-6z1655sa.mjs +0 -2
- package/dist/chunks/cli-0.6.8-72sec87k.mjs +0 -3
- package/dist/chunks/cli-0.6.8-77sjcesf.mjs +0 -2
- package/dist/chunks/cli-0.6.8-7g7k6yt9.mjs +0 -2
- package/dist/chunks/cli-0.6.8-7nqm28z4.mjs +0 -2
- package/dist/chunks/cli-0.6.8-7rznct58.mjs +0 -2
- package/dist/chunks/cli-0.6.8-7t0cwmv0.mjs +0 -2
- package/dist/chunks/cli-0.6.8-7t8gpbd2.mjs +0 -6
- package/dist/chunks/cli-0.6.8-82xanm26.mjs +0 -3
- package/dist/chunks/cli-0.6.8-883y3p0j.mjs +0 -5348
- package/dist/chunks/cli-0.6.8-8cptc9vb.mjs +0 -4
- package/dist/chunks/cli-0.6.8-8ezmkwsw.mjs +0 -2
- package/dist/chunks/cli-0.6.8-8h913n7t.mjs +0 -2
- package/dist/chunks/cli-0.6.8-8jkm4bym.mjs +0 -2
- package/dist/chunks/cli-0.6.8-8zc9gtx8.mjs +0 -2
- package/dist/chunks/cli-0.6.8-93hp2f5g.mjs +0 -2
- package/dist/chunks/cli-0.6.8-9cxxg2ax.mjs +0 -2
- package/dist/chunks/cli-0.6.8-9f5w9wre.mjs +0 -2
- package/dist/chunks/cli-0.6.8-9m65pb3r.mjs +0 -18
- package/dist/chunks/cli-0.6.8-9pkhxd6z.mjs +0 -2
- package/dist/chunks/cli-0.6.8-9xem54f8.mjs +0 -2
- package/dist/chunks/cli-0.6.8-a7nmnbm4.mjs +0 -2
- package/dist/chunks/cli-0.6.8-a8zm3cbn.mjs +0 -5
- package/dist/chunks/cli-0.6.8-abapkbf0.mjs +0 -15
- package/dist/chunks/cli-0.6.8-ag8hcaw0.mjs +0 -2
- package/dist/chunks/cli-0.6.8-atjt49c4.mjs +0 -2
- package/dist/chunks/cli-0.6.8-b280gnkv.mjs +0 -1
- package/dist/chunks/cli-0.6.8-b2zms4ec.mjs +0 -2
- package/dist/chunks/cli-0.6.8-b3v9vbq6.mjs +0 -2
- package/dist/chunks/cli-0.6.8-b6c3tmkx.mjs +0 -2
- package/dist/chunks/cli-0.6.8-b6f3e10d.mjs +0 -2
- package/dist/chunks/cli-0.6.8-bdhpc7zj.mjs +0 -17
- package/dist/chunks/cli-0.6.8-bh09cgap.mjs +0 -6
- package/dist/chunks/cli-0.6.8-bp3vvgaw.mjs +0 -2
- package/dist/chunks/cli-0.6.8-bsqfs15y.mjs +0 -58
- package/dist/chunks/cli-0.6.8-bxcjrmby.mjs +0 -2
- package/dist/chunks/cli-0.6.8-c838p5hk.mjs +0 -3
- package/dist/chunks/cli-0.6.8-cbvnsxaa.mjs +0 -12
- package/dist/chunks/cli-0.6.8-cctyv31j.mjs +0 -4
- package/dist/chunks/cli-0.6.8-cthp7gx1.mjs +0 -2
- package/dist/chunks/cli-0.6.8-cv73s4x5.mjs +0 -4
- package/dist/chunks/cli-0.6.8-dk4bw9mq.mjs +0 -3
- package/dist/chunks/cli-0.6.8-dpz3wm8v.mjs +0 -2
- package/dist/chunks/cli-0.6.8-dvkyrzw7.mjs +0 -5
- package/dist/chunks/cli-0.6.8-dwwx58n6.mjs +0 -2
- package/dist/chunks/cli-0.6.8-dxtyt1wg.mjs +0 -2
- package/dist/chunks/cli-0.6.8-ee7wzgsq.mjs +0 -5
- package/dist/chunks/cli-0.6.8-ee9mr0z2.mjs +0 -2
- package/dist/chunks/cli-0.6.8-efkksxch.mjs +0 -2
- package/dist/chunks/cli-0.6.8-efve08ng.mjs +0 -2
- package/dist/chunks/cli-0.6.8-ekkrzmjw.mjs +0 -2
- package/dist/chunks/cli-0.6.8-eyg1sq7b.mjs +0 -2
- package/dist/chunks/cli-0.6.8-eypwe6gz.mjs +0 -15
- package/dist/chunks/cli-0.6.8-fhedvbz1.mjs +0 -15
- package/dist/chunks/cli-0.6.8-fnet85r6.mjs +0 -2
- package/dist/chunks/cli-0.6.8-g3yp49rz.mjs +0 -2
- package/dist/chunks/cli-0.6.8-gcnabbk4.mjs +0 -3
- package/dist/chunks/cli-0.6.8-gfsf3tvy.mjs +0 -2
- package/dist/chunks/cli-0.6.8-gmzxyn2t.mjs +0 -2
- package/dist/chunks/cli-0.6.8-grdpt7ss.mjs +0 -2
- package/dist/chunks/cli-0.6.8-gscmwgeh.mjs +0 -4
- package/dist/chunks/cli-0.6.8-gtwt16bp.mjs +0 -2
- package/dist/chunks/cli-0.6.8-hj3j54vb.mjs +0 -2
- package/dist/chunks/cli-0.6.8-hvckc721.mjs +0 -2
- package/dist/chunks/cli-0.6.8-j22112y9.mjs +0 -2
- package/dist/chunks/cli-0.6.8-j5wfgenk.mjs +0 -2
- package/dist/chunks/cli-0.6.8-j81d3bq4.mjs +0 -2
- package/dist/chunks/cli-0.6.8-j8mdppyz.mjs +0 -2
- package/dist/chunks/cli-0.6.8-janhze0q.mjs +0 -39
- package/dist/chunks/cli-0.6.8-jea2s05x.mjs +0 -2
- package/dist/chunks/cli-0.6.8-jf4zbgy5.mjs +0 -2
- package/dist/chunks/cli-0.6.8-jp8gk6z3.mjs +0 -2
- package/dist/chunks/cli-0.6.8-jp9zzk35.mjs +0 -2
- package/dist/chunks/cli-0.6.8-jx1wvs6x.mjs +0 -2
- package/dist/chunks/cli-0.6.8-k533p6s5.mjs +0 -2
- package/dist/chunks/cli-0.6.8-kjfxmp31.mjs +0 -2
- package/dist/chunks/cli-0.6.8-kkh9paa3.mjs +0 -2
- package/dist/chunks/cli-0.6.8-kv1xtman.mjs +0 -2
- package/dist/chunks/cli-0.6.8-kxp0gfzq.mjs +0 -4
- package/dist/chunks/cli-0.6.8-m1r6z413.mjs +0 -2
- package/dist/chunks/cli-0.6.8-m2hw29ah.mjs +0 -2
- package/dist/chunks/cli-0.6.8-m2yf7dzs.mjs +0 -2
- package/dist/chunks/cli-0.6.8-ma2wastm.mjs +0 -50
- package/dist/chunks/cli-0.6.8-mecr32eb.mjs +0 -24
- package/dist/chunks/cli-0.6.8-mkfx6c2h.mjs +0 -7
- package/dist/chunks/cli-0.6.8-n3rhca7k.mjs +0 -2
- package/dist/chunks/cli-0.6.8-n4ecq63e.mjs +0 -2
- package/dist/chunks/cli-0.6.8-nmdsnavk.mjs +0 -2
- package/dist/chunks/cli-0.6.8-nwtmpseh.mjs +0 -2
- package/dist/chunks/cli-0.6.8-nz7pwsys.mjs +0 -2
- package/dist/chunks/cli-0.6.8-p6rhsdxf.mjs +0 -2
- package/dist/chunks/cli-0.6.8-pgcmgfht.mjs +0 -2
- package/dist/chunks/cli-0.6.8-pmpv80vx.mjs +0 -2
- package/dist/chunks/cli-0.6.8-pz3sbced.mjs +0 -25
- package/dist/chunks/cli-0.6.8-pzbspy3n.mjs +0 -2
- package/dist/chunks/cli-0.6.8-q027tb7b.mjs +0 -2
- package/dist/chunks/cli-0.6.8-q3txjpb9.mjs +0 -2
- package/dist/chunks/cli-0.6.8-qg557m5n.mjs +0 -2
- package/dist/chunks/cli-0.6.8-r1yjkwda.mjs +0 -2
- package/dist/chunks/cli-0.6.8-r42pr0w8.mjs +0 -2
- package/dist/chunks/cli-0.6.8-r9jgzx43.mjs +0 -2
- package/dist/chunks/cli-0.6.8-rewjhmpq.mjs +0 -133
- package/dist/chunks/cli-0.6.8-reyv7f1y.mjs +0 -9
- package/dist/chunks/cli-0.6.8-rftvcrp4.mjs +0 -2
- package/dist/chunks/cli-0.6.8-rw4y8s92.mjs +0 -2
- package/dist/chunks/cli-0.6.8-s0geqcvz.mjs +0 -2
- package/dist/chunks/cli-0.6.8-s0s7zs2a.mjs +0 -24
- package/dist/chunks/cli-0.6.8-s6yd5ybz.mjs +0 -2
- package/dist/chunks/cli-0.6.8-s98bd3q2.mjs +0 -2
- package/dist/chunks/cli-0.6.8-sn09eprm.mjs +0 -2
- package/dist/chunks/cli-0.6.8-sz1r1tvd.mjs +0 -2
- package/dist/chunks/cli-0.6.8-sznj03wy.mjs +0 -3
- package/dist/chunks/cli-0.6.8-t1kd2tg3.mjs +0 -2
- package/dist/chunks/cli-0.6.8-t3th9jjg.mjs +0 -2
- package/dist/chunks/cli-0.6.8-ta6qf4we.mjs +0 -20
- package/dist/chunks/cli-0.6.8-tb4rrntr.mjs +0 -16
- package/dist/chunks/cli-0.6.8-tewmm6rt.mjs +0 -2
- package/dist/chunks/cli-0.6.8-tnqnaqpx.mjs +0 -3
- package/dist/chunks/cli-0.6.8-tzmx6gz0.mjs +0 -12
- package/dist/chunks/cli-0.6.8-tztjt9fh.mjs +0 -4
- package/dist/chunks/cli-0.6.8-v582jfcn.mjs +0 -4
- package/dist/chunks/cli-0.6.8-v9wg3pvs.mjs +0 -2
- package/dist/chunks/cli-0.6.8-vcpys5fx.mjs +0 -2
- package/dist/chunks/cli-0.6.8-vf9cagcj.mjs +0 -59
- package/dist/chunks/cli-0.6.8-vpaw67v2.mjs +0 -193
- package/dist/chunks/cli-0.6.8-vqhtd9ay.mjs +0 -2
- package/dist/chunks/cli-0.6.8-vseqtday.mjs +0 -21
- package/dist/chunks/cli-0.6.8-vwhx9xjq.mjs +0 -2
- package/dist/chunks/cli-0.6.8-wdjsawer.mjs +0 -3
- package/dist/chunks/cli-0.6.8-wdq4r1nd.mjs +0 -2
- package/dist/chunks/cli-0.6.8-wfy4hqb2.mjs +0 -2
- package/dist/chunks/cli-0.6.8-wh069qak.mjs +0 -2
- package/dist/chunks/cli-0.6.8-wj4r5nwg.mjs +0 -2
- package/dist/chunks/cli-0.6.8-wnjmpcsm.mjs +0 -2
- package/dist/chunks/cli-0.6.8-x87v5pq1.mjs +0 -45
- package/dist/chunks/cli-0.6.8-xj1ptmgh.mjs +0 -2
- package/dist/chunks/cli-0.6.8-y0p6bqj6.mjs +0 -2
- package/dist/chunks/cli-0.6.8-y2c1w6bt.mjs +0 -42
- package/dist/chunks/cli-0.6.8-y3hnde8e.mjs +0 -2
- package/dist/chunks/cli-0.6.8-yvfgg1kg.mjs +0 -2
- package/dist/chunks/cli-0.6.8-yvt0y45m.mjs +0 -28
- package/dist/chunks/cli-0.6.8-yztx4k12.mjs +0 -18
- package/dist/chunks/cli-0.6.8-z4wpf0ah.mjs +0 -2
- package/dist/chunks/client-0.6.8-8kz2zw01.mjs +0 -1
- package/dist/chunks/color-0.6.8-jhpvc051.mjs +0 -1
- package/dist/chunks/compact-0.6.8-0gcf2ncc.mjs +0 -3
- package/dist/chunks/config-0.6.8-dxk5q3qr.mjs +0 -1
- package/dist/chunks/config-0.6.8-xdt0r55h.mjs +0 -1
- package/dist/chunks/constants-0.6.8-49aaqy22.mjs +0 -1
- package/dist/chunks/context-0.6.8-tavd1s8s.mjs +0 -1
- package/dist/chunks/context-noninteractive-0.6.8-6vagjsgf.mjs +0 -1
- package/dist/chunks/conversation-0.6.8-10fvebzj.mjs +0 -1
- package/dist/chunks/copilotHeaders-0.6.8-fqca0jf7.mjs +0 -1
- package/dist/chunks/copy-0.6.8-rhzw5vyv.mjs +0 -9
- package/dist/chunks/cost-0.6.8-w3qf0kpn.mjs +0 -1
- package/dist/chunks/createSSHSession-0.6.8-r7cw30nn.mjs +0 -1
- package/dist/chunks/createSession-0.6.8-vwbe80jv.mjs +0 -1
- package/dist/chunks/debug-0.6.8-pzm167m4.mjs +0 -1
- package/dist/chunks/defaultActionDeps-0.6.8-nnx5s7ws.mjs +0 -1367
- package/dist/chunks/desktop-0.6.8-ef8y3qjr.mjs +0 -1
- package/dist/chunks/detectRepository-0.6.8-3ayp37pd.mjs +0 -1
- package/dist/chunks/detection-0.6.8-pdrw5y2x.mjs +0 -1
- package/dist/chunks/diff-0.6.8-fxk9tzbd.mjs +0 -1
- package/dist/chunks/doctor-0.6.8-ajzrj1jx.mjs +0 -1
- package/dist/chunks/doctorDiagnostic-0.6.8-w72jdksp.mjs +0 -1
- package/dist/chunks/earlyInput-0.6.8-ca9mzfzf.mjs +0 -1
- package/dist/chunks/effort-0.6.8-e6xp1ycv.mjs +0 -10
- package/dist/chunks/envLessBridgeConfig-0.6.8-9vz6evg2.mjs +0 -1
- package/dist/chunks/envUtils-0.6.8-vq8np9fm.mjs +0 -1
- package/dist/chunks/environmentSelection-0.6.8-mf3acav0.mjs +0 -1
- package/dist/chunks/environments-0.6.8-k7rgvnpj.mjs +0 -1
- package/dist/chunks/errors-0.6.8-svsjkqng.mjs +0 -1
- package/dist/chunks/exampleCommands-0.6.8-7qjc7y64.mjs +0 -1
- package/dist/chunks/exit-0.6.8-507vwyf9.mjs +0 -1
- package/dist/chunks/explorer-0.6.8-25m08xd0.mjs +0 -1
- package/dist/chunks/export-0.6.8-w1yn5sa3.mjs +0 -2
- package/dist/chunks/extra-usage-0.6.8-sahj9pr6.mjs +0 -1
- package/dist/chunks/extra-usage-noninteractive-0.6.8-3r3nczjf.mjs +0 -1
- package/dist/chunks/fast-0.6.8-jpkz65vs.mjs +0 -1
- package/dist/chunks/feedback-0.6.8-5w9gvrc0.mjs +0 -14
- package/dist/chunks/firstPartyEventLogger-0.6.8-b2w3hkeb.mjs +0 -1
- package/dist/chunks/git-0.6.8-drry71tr.mjs +0 -1
- package/dist/chunks/githubModelsCredentials-0.6.8-4phd2tn9.mjs +0 -1
- package/dist/chunks/goal-0.6.8-vp972bd7.mjs +0 -4
- package/dist/chunks/grove-0.6.8-9dr81tf3.mjs +0 -1
- package/dist/chunks/growthbook-0.6.8-fcwcztdp.mjs +0 -1
- package/dist/chunks/headless-0.6.8-m2jzbvg9.mjs +0 -2
- package/dist/chunks/heapdump-0.6.8-awp81a34.mjs +0 -6
- package/dist/chunks/help-0.6.8-hbsb7av5.mjs +0 -1
- package/dist/chunks/hookChains-0.6.8-04mbkzxt.mjs +0 -3
- package/dist/chunks/hooks-0.6.8-6x1xc1rx.mjs +0 -1
- package/dist/chunks/hooks-0.6.8-80h8h076.mjs +0 -79
- package/dist/chunks/ide-0.6.8-7vbxnmby.mjs +0 -3
- package/dist/chunks/image-processor-napi-0.6.8-8m23kpm0.mjs +0 -1
- package/dist/chunks/inboundAttachments-0.6.8-wcyd47px.mjs +0 -1
- package/dist/chunks/index-0.6.8-1q3w68f1.mjs +0 -1
- package/dist/chunks/index-0.6.8-1w8hv7a8.mjs +0 -1
- package/dist/chunks/index-0.6.8-2sp7v8r9.mjs +0 -2
- package/dist/chunks/index-0.6.8-3782mjyy.mjs +0 -1
- package/dist/chunks/index-0.6.8-6eeqw069.mjs +0 -1
- package/dist/chunks/index-0.6.8-7dmsg46k.mjs +0 -5
- package/dist/chunks/index-0.6.8-7prxs8kr.mjs +0 -1
- package/dist/chunks/index-0.6.8-azcjsyp8.mjs +0 -1
- package/dist/chunks/index-0.6.8-ccq5xheq.mjs +0 -2
- package/dist/chunks/index-0.6.8-dkdk0g9j.mjs +0 -1
- package/dist/chunks/index-0.6.8-dv8qe20v.mjs +0 -1
- package/dist/chunks/index-0.6.8-fsfq8ekm.mjs +0 -1
- package/dist/chunks/index-0.6.8-k3r9pz8v.mjs +0 -1
- package/dist/chunks/index-0.6.8-ke45hjqk.mjs +0 -1
- package/dist/chunks/index-0.6.8-kvjzqm75.mjs +0 -9
- package/dist/chunks/index-0.6.8-m9y8nqmz.mjs +0 -30
- package/dist/chunks/index-0.6.8-mc1wvtc8.mjs +0 -1
- package/dist/chunks/index-0.6.8-svxnm6ph.mjs +0 -1
- package/dist/chunks/index-0.6.8-vvg8dg6z.mjs +0 -9
- package/dist/chunks/index-0.6.8-wec8yb9e.mjs +0 -1
- package/dist/chunks/index-0.6.8-y535r49s.mjs +0 -1
- package/dist/chunks/index-0.6.8-yf6035wh.mjs +0 -1
- package/dist/chunks/index-0.6.8-zcf4qg35.mjs +0 -1
- package/dist/chunks/init-0.6.8-brwjmnyg.mjs +0 -1
- package/dist/chunks/initReplBridge-0.6.8-5jcj5ax3.mjs +0 -1
- package/dist/chunks/ink-0.6.8-cts7p4b7.mjs +0 -1
- package/dist/chunks/insights-0.6.8-h5b5ve9h.mjs +0 -870
- package/dist/chunks/install-0.6.8-e3gdw6r9.mjs +0 -1
- package/dist/chunks/install-github-app-0.6.8-hh3mzyfs.mjs +0 -149
- package/dist/chunks/install-slack-app-0.6.8-n4pb88x6.mjs +0 -1
- package/dist/chunks/instrumentation-0.6.8-67ewcnwm.mjs +0 -1
- package/dist/chunks/interactiveHelpers-0.6.8-ryjx3tbw.mjs +0 -1
- package/dist/chunks/keybindings-0.6.8-8v6q91kq.mjs +0 -2
- package/dist/chunks/knowledge-0.6.8-dn40ytkg.mjs +0 -2
- package/dist/chunks/latestVersionCache-0.6.8-xx081act.mjs +0 -1
- package/dist/chunks/loadAgentsDir-0.6.8-vhh6hfk9.mjs +0 -1
- package/dist/chunks/loadPluginHooks-0.6.8-p15wjdk7.mjs +0 -1
- package/dist/chunks/loadPluginHooks-0.6.8-tjd9ekbf.mjs +0 -1
- package/dist/chunks/log-0.6.8-srvm2n7a.mjs +0 -1
- package/dist/chunks/main-0.6.8-5mcvdtte.mjs +0 -1
- package/dist/chunks/managedEnv-0.6.8-3m2x6zgp.mjs +0 -1
- package/dist/chunks/mcp-0.6.8-3dztd40j.mjs +0 -17
- package/dist/chunks/mcp-0.6.8-5msk2pvy.mjs +0 -4
- package/dist/chunks/mcp-0.6.8-nxyt74pa.mjs +0 -1
- package/dist/chunks/mcpb-0.6.8-v8q530w6.mjs +0 -1
- package/dist/chunks/memory-0.6.8-1pkjxmpb.mjs +0 -3
- package/dist/chunks/model-0.6.8-00wgempd.mjs +0 -2
- package/dist/chunks/model-0.6.8-99m80ayt.mjs +0 -1
- package/dist/chunks/node-0.6.8-b8rvxhkh.mjs +0 -12
- package/dist/chunks/oauth-0.6.8-c2r6j7j0.mjs +0 -1
- package/dist/chunks/openaiShim-0.6.8-z736wyft.mjs +0 -14
- package/dist/chunks/output-style-0.6.8-586m3zta.mjs +0 -1
- package/dist/chunks/package-FMOR3ELU-0.6.8-xe49mr3f.mjs +0 -1
- package/dist/chunks/parseConnectUrl-0.6.8-wawy5rxc.mjs +0 -1
- package/dist/chunks/parser-0.6.8-zjc9fwme.mjs +0 -1
- package/dist/chunks/passes-0.6.8-mn4rnfm9.mjs +0 -1
- package/dist/chunks/permissions-0.6.8-jdgt2sv8.mjs +0 -1
- package/dist/chunks/permissions-0.6.8-z6ybrhdp.mjs +0 -3
- package/dist/chunks/plan-0.6.8-9h16p6t0.mjs +0 -1
- package/dist/chunks/plist-0.6.8-ras7a7wc.mjs +0 -1
- package/dist/chunks/plugin-0.6.8-0p0a1k4b.mjs +0 -29
- package/dist/chunks/pluginStartupCheck-0.6.8-ff7hmaes.mjs +0 -1
- package/dist/chunks/plugins-0.6.8-fbp29vr3.mjs +0 -9
- package/dist/chunks/preActionHook-0.6.8-1qt932q1.mjs +0 -2
- package/dist/chunks/print-0.6.8-tm9918yr.mjs +0 -57
- package/dist/chunks/privacy-settings-0.6.8-5e2yd64z.mjs +0 -1
- package/dist/chunks/process-0.6.8-mqtgb3cx.mjs +0 -1
- package/dist/chunks/processBashCommand-0.6.8-xtx2v6da.mjs +0 -1
- package/dist/chunks/processSlashCommand-0.6.8-xgvzddwk.mjs +0 -9
- package/dist/chunks/prompt-0.6.8-57r1r589.mjs +0 -1
- package/dist/chunks/prompt-0.6.8-npwq825f.mjs +0 -1
- package/dist/chunks/prompts-0.6.8-ta5q8t8a.mjs +0 -1
- package/dist/chunks/protocolHandler-0.6.8-mf45pq35.mjs +0 -13
- package/dist/chunks/provider-0.6.8-pemvh2k5.mjs +0 -2
- package/dist/chunks/providerProfiles-0.6.8-t4rbsxrj.mjs +0 -1
- package/dist/chunks/providerValidation-0.6.8-jvfz53fe.mjs +0 -6
- package/dist/chunks/rate-limit-options-0.6.8-egm6fsa2.mjs +0 -1
- package/dist/chunks/registerSubcommands-0.6.8-c33k54ns.mjs +0 -34
- package/dist/chunks/registry-0.6.8-v7m02nk2.mjs +0 -1
- package/dist/chunks/release-notes-0.6.8-wwv5r86y.mjs +0 -5
- package/dist/chunks/reload-plugins-0.6.8-72v51g0k.mjs +0 -2
- package/dist/chunks/remote-env-0.6.8-gn37jake.mjs +0 -1
- package/dist/chunks/remoteBridgeCore-0.6.8-7cd0x0sw.mjs +0 -1
- package/dist/chunks/remoteSession-0.6.8-tr5ph176.mjs +0 -1
- package/dist/chunks/rename-0.6.8-8jb90c48.mjs +0 -1
- package/dist/chunks/replBridgeHandle-0.6.8-znyhk31n.mjs +0 -1
- package/dist/chunks/replLauncher-0.6.8-we5yqk5n.mjs +0 -1
- package/dist/chunks/resume-0.6.8-x8vd5cdx.mjs +0 -2
- package/dist/chunks/rewind-0.6.8-dg7aawme.mjs +0 -1
- package/dist/chunks/rootOptions-0.6.8-ezrfenmz.mjs +0 -1
- package/dist/chunks/sandbox-adapter-0.6.8-cfj9xd48.mjs +0 -1
- package/dist/chunks/sandbox-toggle-0.6.8-mffa8yr5.mjs +0 -1
- package/dist/chunks/session-0.6.8-6pyjb4jn.mjs +0 -2
- package/dist/chunks/sessionDiscovery-0.6.8-e3h9zvrp.mjs +0 -1
- package/dist/chunks/sessionFileAccessHooks-0.6.8-5q6x4jx9.mjs +0 -1
- package/dist/chunks/sessionStorage-0.6.8-3tvaj86g.mjs +0 -1
- package/dist/chunks/settings-0.6.8-m72ttv29.mjs +0 -1
- package/dist/chunks/setup-0.6.8-f3y64bte.mjs +0 -5
- package/dist/chunks/sinks-0.6.8-t8e55v3b.mjs +0 -1
- package/dist/chunks/skills-0.6.8-17ktqb7y.mjs +0 -1
- package/dist/chunks/startupProfiler-0.6.8-qj52vcw4.mjs +0 -1
- package/dist/chunks/startupUpdateCheck-0.6.8-51vrdbj6.mjs +0 -1
- package/dist/chunks/state-0.6.8-pwxe3dfk.mjs +0 -1
- package/dist/chunks/stats-0.6.8-fc152nhd.mjs +0 -6
- package/dist/chunks/status-0.6.8-bjgdnsz8.mjs +0 -1
- package/dist/chunks/stickers-0.6.8-dndn2kp3.mjs +0 -1
- package/dist/chunks/subprocessEnv-0.6.8-zzdkzkpq.mjs +0 -1
- package/dist/chunks/tasks-0.6.8-zjm7dnep.mjs +0 -1
- package/dist/chunks/teamHelpers-0.6.8-prrabxj1.mjs +0 -1
- package/dist/chunks/teammateModeSnapshot-0.6.8-21bj5sj0.mjs +0 -1
- package/dist/chunks/teleport-0.6.8-jvcjg7d7.mjs +0 -1
- package/dist/chunks/terminalSetup-0.6.8-9y4235w1.mjs +0 -1
- package/dist/chunks/theme-0.6.8-wvdhk95e.mjs +0 -1
- package/dist/chunks/thinkback-0.6.8-8dn71z5r.mjs +0 -1
- package/dist/chunks/thinkback-play-0.6.8-agrskwfn.mjs +0 -1
- package/dist/chunks/toolPool-0.6.8-90318hbv.mjs +0 -1
- package/dist/chunks/toolSearch-0.6.8-eyr73a52.mjs +0 -1
- package/dist/chunks/tools-0.6.8-mdjqydpm.mjs +0 -1
- package/dist/chunks/trustedDevice-0.6.8-b7fae7s5.mjs +0 -1
- package/dist/chunks/turndown.cjs-0.6.8-sgzhfavm.mjs +0 -69
- package/dist/chunks/types-0.6.8-4gf5x9jb.mjs +0 -1
- package/dist/chunks/ultrareviewCommand-0.6.8-5cdef89y.mjs +0 -4
- package/dist/chunks/update-0.6.8-hv3gahmz.mjs +0 -86
- package/dist/chunks/upgrade-0.6.8-w044cw9y.mjs +0 -1
- package/dist/chunks/upload-0.6.8-er3nq389.mjs +0 -7
- package/dist/chunks/upstreamproxy-0.6.8-zfg8pv8q.mjs +0 -14
- package/dist/chunks/url-handler-napi-0.6.8-1q2hrhb3.mjs +0 -1
- package/dist/chunks/usage-0.6.8-pc8gdf6b.mjs +0 -1
- package/dist/chunks/util-0.6.8-rt8y16fm.mjs +0 -1
- package/dist/chunks/utils-0.6.8-8nsbk9w4.mjs +0 -1
- package/dist/chunks/vim-0.6.8-y1wq10k6.mjs +0 -1
- package/dist/chunks/watcher-0.6.8-hq0y1y68.mjs +0 -1
- package/dist/chunks/wiki-0.6.8-jqbmvz1r.mjs +0 -132
- package/dist/chunks/worktree-0.6.8-hn8ac7q6.mjs +0 -1
- package/dist/chunks/worktreeModeEnabled-0.6.8-k0yys6b0.mjs +0 -1
- package/dist/chunks/wrapper-0.6.8-r1wx821t.mjs +0 -7
- /package/dist/chunks/{cli-0.6.8-0s2z302k.mjs → cli-0.6.9-2kd0dsnv.mjs} +0 -0
- /package/dist/chunks/{cli-0.6.8-0fra5z78.mjs → cli-0.6.9-bvsdx3f8.mjs} +0 -0
- /package/dist/chunks/{cli-0.6.8-akzaeas1.mjs → cli-0.6.9-jj198dy3.mjs} +0 -0
- /package/dist/chunks/{cli-0.6.8-7cychtp8.mjs → cli-0.6.9-kf28v99d.mjs} +0 -0
- /package/dist/chunks/{cli-0.6.8-aasxytdk.mjs → cli-0.6.9-r1m7xdaq.mjs} +0 -0
- /package/dist/chunks/{cli-0.6.8-9bt8c69s.mjs → cli-0.6.9-r7fnwtpb.mjs} +0 -0
- /package/dist/chunks/{cli-0.6.8-fe86xfp4.mjs → cli-0.6.9-yt963aje.mjs} +0 -0
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{iQ as a,kQ as Uq,kv as u,lF as h,lv as g,nF as Fq,nv as Wq,on as S,pn as Zq,qn as V,qv as c,rn as $q,tv as T,un as p,uv as _q,vn as zq,vv as r,wv as Vq}from"./cli-0.6.9-gercjmay.mjs";import{AW as Qq,BW as m,DW as Xq,GW as d,HW as Yq,nW as w,oW as Nq,zW as j}from"./cli-0.6.9-aqma59cn.mjs";import{DZ as Lq,MX as v,NX as H,OX as y,YY as J,_Y as N}from"./cli-0.6.9-0f11memf.mjs";import{I1 as _,J1 as q,K1 as G,L1 as B}from"./cli-0.6.9-fepacdf9.mjs";import{M1 as Jq}from"./cli-0.6.9-mb7kx11j.mjs";import{kba as b,xba as Gq}from"./cli-0.6.9-yhp352r8.mjs";import{Ipa as e,Mpa as qq}from"./cli-0.6.9-8ymt6nd1.mjs";function mq({onThemeSelect:F,showIntroText:I=!1,helpText:X="",showHelpTextBelow:O=!1,hideEscToCancel:x=!1,skipExitHandling:$=!1,onCancel:A}){let[U]=v(),k=H(),{columns:l}=w(),Y=Q.useMemo(()=>c(),[]),Z=Y===null?T(U):null,{setPreviewTheme:K,savePreview:M,cancelPreview:R}=y(),z=u((L)=>L.settings.syntaxHighlightingDisabled??!1),E=g();j("ThemePicker",!0);let W=S("theme:toggleSyntaxHighlighting","ThemePicker","ctrl+t"),i=Q.useCallback(()=>{if(Y===null){let L=!z;b("userSettings",{syntaxHighlightingDisabled:L}),E((P)=>({...P,settings:{...P.settings,syntaxHighlightingDisabled:L}}))}},[Y,z,E]);m("theme:toggleSyntaxHighlighting",i,{context:"ThemePicker"});let f=d($?()=>{}:void 0),D=Q.useMemo(()=>[...[],{label:"Dark mode",value:"dark"},{label:"Light mode",value:"light"},{label:"Dark mode (colorblind-friendly)",value:"dark-daltonized"},{label:"Light mode (colorblind-friendly)",value:"light-daltonized"},{label:"Dark mode (ANSI colors only)",value:"dark-ansi"},{label:"Light mode (ANSI colors only)",value:"light-ansi"},{label:"Terminal default (inherit colors)",value:"terminal"},{label:"Dracula",value:"dracula"},{label:"Catppuccin Mocha (dark)",value:"catppuccin-mocha"},{label:"Catppuccin Latte (light)",value:"catppuccin-latte"},{label:"Tokyo Night",value:"tokyo-night"},{label:"Nord",value:"nord"},{label:"Gruvbox Dark",value:"gruvbox-dark"}],[]),o=Q.useCallback((L)=>{K(L)},[K]),n=Q.useCallback((L)=>{M(),F(L)},[M,F]),s=Q.useCallback(()=>{if(R(),$)A?.();else a(0)},[R,A,$]),t=Y==="env"?`Syntax highlighting disabled (via CLAUDE_CODE_SYNTAX_HIGHLIGHT=${process.env.CLAUDE_CODE_SYNTAX_HIGHLIGHT})`:z?`Syntax highlighting disabled (${W} to enable)`:Z?`Syntax theme: ${Z.theme}${Z.source?` (from ${Z.source})`:""} (${W} to disable)`:`Syntax highlighting enabled (${W} to disable)`,C=G(J,{flexDirection:"column",gap:1,children:[G(J,{flexDirection:"column",gap:1,children:[I?q(N,{children:"Let's get started."}):q(N,{bold:!0,color:"permission",children:"Theme"}),G(J,{flexDirection:"column",children:[q(N,{bold:!0,children:"Choose the text style that looks best with your terminal"}),X&&!O?q(N,{dimColor:!0,children:X}):null]}),q(h,{options:D,onFocus:o,onChange:n,onCancel:s,visibleOptionCount:D.length,defaultValue:k,defaultFocusValue:k})]}),G(J,{flexDirection:"column",width:"100%",children:[q(J,{flexDirection:"column",borderTop:!0,borderBottom:!0,borderLeft:!1,borderRight:!1,borderStyle:"dashed",borderColor:"subtle",children:q(Iq,{patch:Oq,dim:!1,filePath:"demo.js",firstLine:null,width:l})},U),G(N,{dimColor:!0,children:[" ",t]})]})]});if(!I)return G(_,{children:[q(J,{flexDirection:"column",children:C}),O&&X?q(J,{marginLeft:3,children:q(N,{dimColor:!0,children:X})}):null,!x?q(J,{marginTop:1,children:q(N,{dimColor:!0,italic:!0,children:f.pending?G(_,{children:["Press ",f.keyName," again to exit"]}):G(p,{children:[q(V,{shortcut:"Enter",action:"select"}),q(V,{shortcut:"Esc",action:"cancel"})]})})}):null]});return C}var Q,Iq,Oq;var Aq=qq(()=>{Yq();Nq();Lq();Qq();Xq();Zq();Wq();Uq();Gq();Fq();zq();$q();_q();Vq();B();Q=e(Jq(),1),Iq=r,Oq={oldStart:1,newStart:1,oldLines:3,newLines:3,lines:[" function greet() {",'- console.log("Hello, World!");','+ console.log("Hello, Claude!");'," }"]}});
|
|
2
|
+
export{mq as Xg,Aq as Yg};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{EM as O,FM as P,GM as Q,HM as U,Ii as M,Ji as W,KM as X}from"./cli-0.6.9-gercjmay.mjs";import{Mpa as V}from"./cli-0.6.9-8ymt6nd1.mjs";function Y(f){return f==="projectSettings"||f==="policySettings"||f==="command"}function J(f){return O(f)}function L(f,G,q){let v=J(G.source),z=J(q.source),j=G.ruleValue.toolName;if(f==="deny")return`Remove the "${j}" deny rule from ${v}, or remove the specific allow rule from ${z}`;return`Remove the "${j}" ask rule from ${v}, or remove the specific allow rule from ${z}`}function Z(f,G,q){let{toolName:v,ruleContent:z}=f.ruleValue;if(z===void 0)return{shadowed:!1};let j=G.find((E)=>E.ruleValue.toolName===v&&E.ruleValue.ruleContent===void 0);if(!j)return{shadowed:!1};if(v===M&&q.sandboxAutoAllowEnabled){if(!Y(j.source))return{shadowed:!1}}return{shadowed:!0,shadowedBy:j,shadowType:"ask"}}function _(f,G){let{toolName:q,ruleContent:v}=f.ruleValue;if(v===void 0)return{shadowed:!1};let z=G.find((j)=>j.ruleValue.toolName===q&&j.ruleValue.ruleContent===void 0);if(!z)return{shadowed:!1};return{shadowed:!0,shadowedBy:z,shadowType:"deny"}}function F(f,G){let q=[],v=P(f),z=U(f),j=Q(f);for(let E of v){let H=_(E,j);if(H.shadowed){let K=J(H.shadowedBy.source);q.push({rule:E,reason:`Blocked by "${H.shadowedBy.ruleValue.toolName}" deny rule (from ${K})`,shadowedBy:H.shadowedBy,shadowType:"deny",fix:L("deny",H.shadowedBy,E)});continue}let I=Z(E,z,G);if(I.shadowed){let K=J(I.shadowedBy.source);q.push({rule:E,reason:`Shadowed by "${I.shadowedBy.ruleValue.toolName}" ask rule (from ${K})`,shadowedBy:I.shadowedBy,shadowType:"ask",fix:L("ask",I.shadowedBy,E)})}}return q}var $=V(()=>{W();X()});
|
|
2
|
+
export{F as ig,$ as jg};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import{Bg as RY,Cg as BQ}from"./cli-0.6.9-da750ce8.mjs";import{Dg as kq,Fg as Mq,Gg as WX}from"./cli-0.6.9-z2400j8e.mjs";import{Tg as IJ,Ug as AQ,Vg as NY,Wg as UQ}from"./cli-0.6.9-703ts6mp.mjs";import{Xg as FY,Yg as MQ}from"./cli-0.6.9-4hmydq2g.mjs";import{$g as PY,Zg as LY,_g as IQ,ah as EQ}from"./cli-0.6.9-rcmd16qm.mjs";import{bh as Cq,ch as l0,eh as HY,fh as DY}from"./cli-0.6.9-8xxpa4ep.mjs";import{Bi as Lq,Ci as GX}from"./cli-0.6.9-fgkzcrmd.mjs";import{Fn as UJ,HH as OY,IH as LQ,Jn as QY,Oy as Pq,Py as VX,QR as JQ,Un as FQ,XR as UY,bF as TZ,bJ as BJ,cF as QQ,cJ as PQ,dG as QZ,dR as LZ,eG as XZ,ep as XY,fG as GZ,fS as BY,fp as NQ,gG as VZ,gJ as YJ,gS as IY,hG as WZ,hJ as BZ,iG as KZ,iJ as IZ,jG as OZ,jJ as EZ,kG as HZ,kS as SQ,ku as Rq,kv as K0,lF as T0,lG as DZ,lu as n0,lv as GY,mF as ZQ,mG as zZ,mv as VY,nF as PZ,nG as dq,nu as XX,nv as qZ,qn as Z0,rn as zQ,sn as C,tL as R0,tn as f0,uL as TJ,un as p,vn as XJ,yn as S0,zn as FJ}from"./cli-0.6.9-gercjmay.mjs";import{oT as WY,pT as KY,tT as RQ}from"./cli-0.6.9-pc08dfva.mjs";import{SU as zY,_U as kQ}from"./cli-0.6.9-sr9jy37c.mjs";import{BW as l,CW as qY,DW as w0,GW as Iq,HW as HX,JW as C0,KW as Eq,MW as zJ,PW as fq,QW as DX,nW as V0,oW as v0}from"./cli-0.6.9-aqma59cn.mjs";import{CY as YY,DX as U0,DZ as H0,MX as e0,NX as JY,YY as U,ZX as ZY,_Y as V,bY as DQ}from"./cli-0.6.9-0f11memf.mjs";import{I1 as n,J1 as Q,K1 as H,L1 as $}from"./cli-0.6.9-fepacdf9.mjs";import{M1 as s}from"./cli-0.6.9-mb7kx11j.mjs";import{U1 as lY,V1 as nQ}from"./cli-0.6.9-0pfvh3w1.mjs";import{B2 as Fq,B3 as m0,C3 as MJ,E3 as oZ,F3 as AJ,F4 as qJ,G2 as qX,H3 as aZ,J4 as eZ,M3 as sZ,V3 as HQ,b6 as vJ,i3 as h0,j3 as OQ,q6 as QX,t4 as Nq,x4 as tZ}from"./cli-0.6.9-zzzn3e8b.mjs";import{M6 as D0,N6 as GQ}from"./cli-0.6.9-h9kchbsc.mjs";import{A$ as cZ,B$ as xZ,Fda as hY,G$ as WQ,Hda as bY,Ica as nZ,Kda as yY,Oda as wQ,Rda as B0,Uda as lZ,Y7 as O0,Z7 as DJ,eea as N0,iba as PJ,kba as x,kca as T,mea as QJ,nba as kJ,nca as S,oca as uZ,tca as dZ,tda as SY,wda as TY,xba as KQ,xca as iZ,xda as TQ,y$ as vZ,yca as rZ,z$ as pZ,zda as wY}from"./cli-0.6.9-yhp352r8.mjs";import{Bea as mJ,Cea as $0,Iea as VJ,Jea as SJ}from"./cli-0.6.9-xpvddrex.mjs";import{bfa as mZ}from"./cli-0.6.9-nyn27tc4.mjs";import{mfa as _Z,yfa as VQ}from"./cli-0.6.9-6vtgxtwc.mjs";import{Yfa as t0,Zfa as YZ}from"./cli-0.6.9-j94027pe.mjs";import{Mga as f,Pga as XQ}from"./cli-0.6.9-prq3ecgt.mjs";import{Pha as c0,Sha as CY,sha as zq,xha as YX}from"./cli-0.6.9-jfyk8906.mjs";import{Bia as LJ,Eia as jZ,uia as $Z,wia as fY}from"./cli-0.6.9-2zwgc8vn.mjs";import{Aka as Vq,Bka as Wq,Vka as Kq,Wka as Oq,foa as ZZ,gla as Hq,gma as RJ,hma as gZ,ika as JZ,rla as Dq,zka as Gq}from"./cli-0.6.9-88y94bf5.mjs";import{Ipa as j,Mpa as c}from"./cli-0.6.9-8ymt6nd1.mjs";function iq(){let Z=JZ(),q=LZ(Z)??Q(V,{dimColor:!0,children:"/rename to add a name"});return[{label:"Version",value:"0.6.9"},{label:"Session name",value:q},{label:"Session ID",value:Z},{label:"cwd",value:t0()},...HZ(),...DZ()]}function rq({mainLoopModel:Z,mcp:J,theme:q,context:X}){return[{label:"Model",value:zZ(Z)},...XZ(J.clients,X.options.ideInstallationStatus,q),...GZ(J.clients,q),...QZ(),...WZ()]}async function FZ(){return[...await KZ(),...await OZ(),...await VZ()]}function nq(Z){let J=JJ.c(8),{value:q}=Z;if(Array.isArray(q)){let X;if(J[0]!==q){let D;if(J[2]!==q.length)D=(N,P)=>H(V,{children:[N,P<q.length-1?",":""]},P),J[2]=q.length,J[3]=D;else D=J[3];X=q.map(D),J[0]=q,J[1]=X}else X=J[1];let W;if(J[4]!==X)W=Q(U,{flexWrap:"wrap",columnGap:1,flexShrink:99,children:X}),J[4]=X,J[5]=W;else W=J[5];return W}if(typeof q==="string"){let X;if(J[6]!==q)X=Q(V,{children:q}),J[6]=q,J[7]=X;else X=J[7];return X}return q}function NZ(Z){let J=JJ.c(20),{context:q,diagnosticsPromise:X}=Z,W=K0(sq),D=K0(aq),[N]=e0(),P;if(J[0]===Symbol.for("react.memo_cache_sentinel"))P=iq(),J[0]=P;else P=J[0];let M;if(J[1]!==q||J[2]!==W||J[3]!==D||J[4]!==N)M=rq({mainLoopModel:W,mcp:D,theme:N,context:q}),J[1]=q,J[2]=W,J[3]=D,J[4]=N,J[5]=M;else M=J[5];let k;if(J[6]!==M)k=[P,M],J[6]=M,J[7]=k;else k=J[7];let K=k,F=C0()?1:void 0,z;if(J[8]!==K)z=K.map(lq),J[8]=K,J[9]=z;else z=J[9];let O;if(J[10]!==X)O=Q(ZJ.Suspense,{fallback:null,children:Q(tq,{promise:X})}),J[10]=X,J[11]=O;else O=J[11];let R;if(J[12]!==F||J[13]!==z||J[14]!==O)R=H(U,{flexDirection:"column",gap:1,flexGrow:F,children:[z,O]}),J[12]=F,J[13]=z,J[14]=O,J[15]=R;else R=J[15];let A;if(J[16]===Symbol.for("react.memo_cache_sentinel"))A=Q(V,{dimColor:!0,children:Q(C,{action:"confirm:no",context:"Settings",fallback:"Esc",description:"cancel"})}),J[16]=A;else A=J[16];let B;if(J[17]!==F||J[18]!==R)B=H(U,{flexDirection:"column",flexGrow:F,children:[R,A]}),J[17]=F,J[18]=R,J[19]=B;else B=J[19];return B}function lq(Z,J){return Z.length>0&&Q(U,{flexDirection:"column",children:Z.map(oq)},J)}function oq(Z,J){let{label:q,value:X}=Z;return H(U,{flexDirection:"row",gap:1,flexShrink:0,children:[q!==void 0&&H(V,{bold:!0,children:[q,":"]}),Q(nq,{value:X})]},J)}function aq(Z){return Z.mcp}function sq(Z){return Z.mainLoopModel}function tq(Z){let J=JJ.c(5),{promise:q}=Z,X=ZJ.use(q);if(X.length===0)return null;let W;if(J[0]===Symbol.for("react.memo_cache_sentinel"))W=Q(V,{bold:!0,children:"System Diagnostics"}),J[0]=W;else W=J[0];let D;if(J[1]!==X)D=X.map(eq),J[1]=X,J[2]=D;else D=J[2];let N;if(J[3]!==D)N=H(U,{flexDirection:"column",paddingBottom:1,children:[W,D]}),J[3]=D,J[4]=N;else N=J[4];return N}function eq(Z,J){return H(U,{flexDirection:"row",gap:1,paddingX:1,children:[Q(V,{color:"error",children:O0.warning}),typeof Z==="string"?Q(V,{wrap:"wrap",children:Z}):Z]},J)}var JJ,ZJ;var RZ=c(()=>{DJ();ZZ();zJ();H0();qZ();YZ();JQ();dq();f0();$();JJ=j(U0(),1),ZJ=j(s(),1)});function MZ(Z){let J=kZ.c(17),{currentVersion:q,onChoice:X}=Z,W;if(J[0]!==X)W=function(B){X(B)},J[0]=X,J[1]=W;else W=J[1];let D=W,N;if(J[2]!==X)N=function(){X("cancel")},J[2]=X,J[3]=N;else N=J[3];let P=N,M;if(J[4]!==q)M=H(V,{children:["The stable channel may have an older version than what you're currently running (",q,")."]}),J[4]=q,J[5]=M;else M=J[5];let k;if(J[6]===Symbol.for("react.memo_cache_sentinel"))k=Q(V,{dimColor:!0,children:"How would you like to handle this?"}),J[6]=k;else k=J[6];let K;if(J[7]===Symbol.for("react.memo_cache_sentinel"))K={label:"Allow possible downgrade to stable version",value:"downgrade"},J[7]=K;else K=J[7];let F=`Stay on current version (${q}) until stable catches up`,z;if(J[8]!==F)z=[K,{label:F,value:"stay"}],J[8]=F,J[9]=z;else z=J[9];let O;if(J[10]!==D||J[11]!==z)O=Q(T0,{options:z,onChange:D}),J[10]=D,J[11]=z,J[12]=O;else O=J[12];let R;if(J[13]!==P||J[14]!==M||J[15]!==O)R=H(S0,{title:"Switch to Stable Channel",onCancel:P,color:"permission",hideBorder:!0,hideInputGuide:!0,children:[M,k,O]}),J[13]=P,J[14]=M,J[15]=O,J[16]=R;else R=J[16];return R}var kZ;var AZ=c(()=>{H0();PZ();FJ();$();kZ=j(U0(),1)});function UZ(Z){return Object.entries(Z).map(([J,q])=>({label:q?.name??YQ,value:J,description:q?.description??qQ}))}function CZ(Z){let J=fZ.c(16),{initialStyle:q,onComplete:X,onCancel:W,isStandaloneCommand:D}=Z,N;if(J[0]===Symbol.for("react.memo_cache_sentinel"))N=[],J[0]=N;else N=J[0];let[P,M]=_0.useState(N),[k,K]=_0.useState(!0),F,z;if(J[1]===Symbol.for("react.memo_cache_sentinel"))F=()=>{IZ(t0()).then((d)=>{let t=UZ(d);M(t),K(!1)}).catch(()=>{let d=UZ(BZ);M(d),K(!1)})},z=[],J[1]=F,J[2]=z;else F=J[1],z=J[2];_0.useEffect(F,z);let O;if(J[3]!==X)O=(d)=>{X(d)},J[3]=X,J[4]=O;else O=J[4];let R=O,A=!D,B=!D,E;if(J[5]===Symbol.for("react.memo_cache_sentinel"))E=Q(U,{marginTop:1,children:Q(V,{dimColor:!0,children:"This changes how Claudin communicates with you"})}),J[5]=E;else E=J[5];let h;if(J[6]!==R||J[7]!==q||J[8]!==k||J[9]!==P)h=H(U,{flexDirection:"column",gap:1,children:[E,k?Q(V,{dimColor:!0,children:"Loading output styles…"}):Q(T0,{options:P,onChange:R,visibleOptionCount:10,defaultValue:q})]}),J[6]=R,J[7]=q,J[8]=k,J[9]=P,J[10]=h;else h=J[10];let w;if(J[11]!==W||J[12]!==A||J[13]!==B||J[14]!==h)w=Q(S0,{title:"Preferred output style",onCancel:W,hideInputGuide:A,hideBorder:B,children:h}),J[11]=W,J[12]=A,J[13]=B,J[14]=h,J[15]=w;else w=J[15];return w}var fZ,_0,YQ="Default",qQ="Claudin completes coding tasks efficiently and provides concise responses";var SZ=c(()=>{EZ();H0();YZ();ZQ();FJ();$();fZ=j(U0(),1),_0=j(s(),1)});function hZ(Z){let J=wZ.c(13),{initialLanguage:q,onComplete:X,onCancel:W}=Z,[D,N]=NJ.useState(q),[P,M]=NJ.useState((q??"").length),k;if(J[0]===Symbol.for("react.memo_cache_sentinel"))k={context:"Settings"},J[0]=k;else k=J[0];l("confirm:no",W,k);let K;if(J[1]!==D||J[2]!==X)K=function(){let w=D?.trim();X(w||void 0)},J[1]=D,J[2]=X,J[3]=K;else K=J[3];let F=K,z;if(J[4]===Symbol.for("react.memo_cache_sentinel"))z=Q(V,{children:"Enter your preferred response and voice language:"}),J[4]=z;else z=J[4];let O;if(J[5]===Symbol.for("react.memo_cache_sentinel"))O=Q(V,{children:O0.pointer}),J[5]=O;else O=J[5];let R=D??"",A;if(J[6]!==P||J[7]!==F||J[8]!==R)A=H(U,{flexDirection:"row",gap:1,children:[O,Q(TZ,{value:R,onChange:N,onSubmit:F,focus:!0,showCursor:!0,placeholder:`e.g., Japanese, 日本語, Español${O0.ellipsis}`,columns:60,cursorOffset:P,onChangeCursorOffset:M})]}),J[6]=P,J[7]=F,J[8]=R,J[9]=A;else A=J[9];let B;if(J[10]===Symbol.for("react.memo_cache_sentinel"))B=Q(V,{dimColor:!0,children:"Leave empty for default (English)"}),J[10]=B;else B=J[10];let E;if(J[11]!==A)E=H(U,{flexDirection:"column",gap:1,children:[z,A,B]}),J[11]=A,J[12]=E;else E=J[12];return E}var wZ,NJ;var bZ=c(()=>{DJ();H0();w0();QQ();$();wZ=j(U0(),1),NJ=j(s(),1)});function MY({onClose:Z,context:J,setTabsHidden:q,onIsSearchModeChange:X,contentHeight:W}){let{headerFocused:D,focusHeader:N}=HY(),P=C0(),[,M]=e0(),k=JY(),[K,F]=g.useState(S()),z=v.useRef(S()),[O,R]=g.useState(kJ()),A=v.useRef(kJ()),[B,E]=g.useState(O?.outputStyle||YJ),h=v.useRef(B),[w,d]=g.useState(O?.language),t=v.useRef(w),[_,F0]=g.useState(0),[i,q0]=g.useState(0),[r,Q0]=g.useState(!0),j0=YY(),{rows:I0}=V0(),Tq=W??Math.min(Math.floor(I0*0.8),30),X0=Math.max(5,Tq-10),E0=K0((Y)=>Y.mainLoopModel),wq=K0((Y)=>Y.verbose),xJ=K0((Y)=>Y.thinkingEnabled),uJ=K0((Y)=>m0()?Y.fastMode:!1),hq=K0((Y)=>Y.promptSuggestionEnabled),RX=!1,e=GY(),[dJ,M0]=g.useState({}),bq=v.useRef(xJ),[iJ]=g.useState(()=>PJ("localSettings")),[rJ]=g.useState(()=>PJ("userSettings")),nJ=v.useRef(k),yq=VY(),[lJ]=g.useState(()=>{let Y=yq.getState();return{mainLoopModel:Y.mainLoopModel,mainLoopModelForSession:Y.mainLoopModelForSession,verbose:Y.verbose,thinkingEnabled:Y.thinkingEnabled,fastMode:Y.fastMode,promptSuggestionEnabled:Y.promptSuggestionEnabled,isBriefOnly:Y.isBriefOnly,replBridgeEnabled:Y.replBridgeEnabled,replBridgeOutboundOnly:Y.replBridgeOutboundOnly,settings:Y.settings}}),[KJ]=g.useState(()=>RJ()),J0=v.useRef(!1),[gq,o0]=g.useState(!1),[m,y]=g.useState(null),{query:A0,setQuery:a0,cursorOffset:$q}=PY({isActive:r&&m===null&&!D,onExit:()=>Q0(!1),onExitUp:N,passthroughCtrlKeys:["c","d"]}),oJ=r&&!D;v.useEffect(()=>{X?.(oJ)},[oJ,X]);let jq=QY(J.options.mcpClients),_q=!$Z(process.env.CLAUDE_CODE_DISABLE_FILE_CHECKPOINTING),aJ=v.use(UY(!0)),mq=IY(aJ),W0=rZ();function sJ(Y){f("tengu_config_model_changed",{from_model:E0,to_model:Y}),e((L)=>({...L,mainLoopModel:Y,mainLoopModelForSession:null})),M0((L)=>{let I=qJ(Y)+(NY(Y,!1,tZ())?" · Billed as extra usage":"");if("model"in L){let{model:b,...o}=L;return{...o,model:I}}return{...L,model:I}})}function vq(Y){T((G)=>({...G,verbose:Y})),F({...S(),verbose:Y}),e((G)=>({...G,verbose:Y})),M0((G)=>{if("verbose"in G){let{verbose:L,...I}=G;return I}return{...G,verbose:Y}})}let OJ=[{id:"autoCompactEnabled",label:"Auto-compact",value:K.autoCompactEnabled,type:"boolean",onChange(Y){T((G)=>({...G,autoCompactEnabled:Y})),F({...S(),autoCompactEnabled:Y}),f("tengu_auto_compact_setting_changed",{enabled:Y})}},{id:"thinkingHistoryRedactionEnabled",label:"Thinking history redaction",value:K.thinkingHistoryRedactionEnabled,type:"boolean",onChange(Y){T((G)=>({...G,thinkingHistoryRedactionEnabled:Y})),F({...S(),thinkingHistoryRedactionEnabled:Y}),f("claudin_thinking_history_redaction_setting_changed",{enabled:Y})}},{id:"narrationHistoryRedactionEnabled",label:"Narration history redaction",value:K.narrationHistoryRedactionEnabled,type:"boolean",onChange(Y){T((G)=>({...G,narrationHistoryRedactionEnabled:Y})),F({...S(),narrationHistoryRedactionEnabled:Y}),f("claudin_narration_history_redaction_setting_changed",{enabled:Y})}},{id:"showCacheStats",label:"Cache stats display",value:K.showCacheStats,options:["off","compact","full"],type:"enum",onChange(Y){let G=Y==="off"||Y==="compact"||Y==="full"?Y:"compact";T((L)=>({...L,showCacheStats:G})),F({...S(),showCacheStats:G}),f("tengu_show_cache_stats_setting_changed",{mode:G})}},{id:"toolResultSummarizerEnabled",label:"Tool result summarizer",value:K.toolResultSummarizerEnabled,type:"boolean",onChange(Y){T((G)=>({...G,toolResultSummarizerEnabled:Y})),F({...S(),toolResultSummarizerEnabled:Y}),f("claudin_tool_result_summarizer_setting_changed",{enabled:Y})}},{id:"bashOutputFilterEnabled",label:"Bash output filter",value:K.bashOutputFilterEnabled!==!1,type:"boolean",onChange(Y){T((G)=>({...G,bashOutputFilterEnabled:Y})),F({...S(),bashOutputFilterEnabled:Y}),f("claudin_bash_output_filter_setting_changed",{enabled:Y})}},{id:"autoBackgroundAgentsEnabled",label:"Auto-background agents",value:K.autoBackgroundAgentsEnabled!==!1,type:"boolean",onChange(Y){T((G)=>({...G,autoBackgroundAgentsEnabled:Y})),F({...S(),autoBackgroundAgentsEnabled:Y}),f("claudin_auto_background_agents_setting_changed",{enabled:Y})}},{id:"inlineImagesMode",label:"Inline terminal images",value:K.inlineImagesMode??"auto",options:["auto","enable","disable"],type:"enum",onChange(Y){let G=Y==="auto"||Y==="enable"||Y==="disable"?Y:"auto";T((L)=>({...L,inlineImagesMode:G})),F({...S(),inlineImagesMode:G}),f("claudin_inline_images_setting_changed",{mode:G})}},{id:"spinnerTipsEnabled",label:"Show tips",value:O?.spinnerTipsEnabled??!0,type:"boolean",onChange(Y){x("localSettings",{spinnerTipsEnabled:Y}),R((G)=>({...G,spinnerTipsEnabled:Y})),f("tengu_tips_setting_changed",{enabled:Y})}},{id:"prefersReducedMotion",label:"Reduce motion",value:O?.prefersReducedMotion??!1,type:"boolean",onChange(Y){x("localSettings",{prefersReducedMotion:Y}),R((G)=>({...G,prefersReducedMotion:Y})),e((G)=>({...G,settings:{...G.settings,prefersReducedMotion:Y}})),f("tengu_reduce_motion_setting_changed",{enabled:Y})}},{id:"thinkingEnabled",label:"Thinking mode",value:xJ??!0,type:"boolean",onChange(Y){e((G)=>({...G,thinkingEnabled:Y})),x("userSettings",{alwaysThinkingEnabled:Y?void 0:!1}),f("tengu_thinking_toggled",{enabled:Y})}},...m0()&&MJ()?[{id:"fastMode",label:`Fast mode (${oZ} only)`,value:!!uJ,type:"boolean",onChange(Y){if(sZ(),x("userSettings",{fastMode:Y?!0:void 0}),Y)e((G)=>({...G,mainLoopModel:AJ(),mainLoopModelForSession:null,fastMode:!0})),M0((G)=>({...G,model:AJ(),"Fast mode":"ON"}));else e((G)=>({...G,fastMode:!1})),M0((G)=>({...G,"Fast mode":"OFF"}))}}]:[],{id:"promptSuggestionEnabled",label:"Prompt suggestions",value:hq,type:"boolean",onChange(Y){e((G)=>({...G,promptSuggestionEnabled:Y})),x("userSettings",{promptSuggestionEnabled:Y?void 0:!1})}},..._q?[{id:"fileCheckpointingEnabled",label:"Rewind code (checkpoints)",value:K.fileCheckpointingEnabled,type:"boolean",onChange(Y){T((G)=>({...G,fileCheckpointingEnabled:Y})),F({...S(),fileCheckpointingEnabled:Y}),f("tengu_file_history_snapshots_setting_changed",{enabled:Y})}}]:[],{id:"verbose",label:"Verbose output",value:wq,type:"boolean",onChange:vq},{id:"terminalProgressBarEnabled",label:"Terminal progress bar",value:K.terminalProgressBarEnabled,type:"boolean",onChange(Y){T((G)=>({...G,terminalProgressBarEnabled:Y})),F({...S(),terminalProgressBarEnabled:Y}),f("tengu_terminal_progress_bar_setting_changed",{enabled:Y})}},..._Z("tengu_terminal_sidebar",!1)?[{id:"showStatusInTerminalTab",label:"Show status in terminal tab",value:K.showStatusInTerminalTab??!1,type:"boolean",onChange(Y){T((G)=>({...G,showStatusInTerminalTab:Y})),F({...S(),showStatusInTerminalTab:Y}),f("tengu_terminal_tab_status_setting_changed",{enabled:Y})}}]:[],{id:"showTurnDuration",label:"Show turn duration",value:K.showTurnDuration,type:"boolean",onChange(Y){T((G)=>({...G,showTurnDuration:Y})),F({...S(),showTurnDuration:Y}),f("tengu_show_turn_duration_setting_changed",{enabled:Y})}},{id:"defaultPermissionMode",label:"Default permission mode",value:O?.permissions?.defaultMode||"default",options:(()=>{let Y=["default","plan"],G=mZ,L=["bypassPermissions"];return[...Y,...G.filter((I)=>!Y.includes(I)&&!L.includes(I))]})(),type:"enum",onChange(Y){let G=cZ(Y),L=vZ(G)?pZ(G):G,I=x("userSettings",{permissions:{...O?.permissions,defaultMode:L}});if(I.error){N0(I.error);return}R((b)=>({...b,permissions:{...b?.permissions,defaultMode:L}})),M0((b)=>({...b,defaultPermissionMode:Y})),f("tengu_config_changed",{setting:"defaultPermissionMode",value:Y})}},{id:"useAutoModeDuringPlan",label:"Use auto mode during plan",value:O?.useAutoModeDuringPlan??!0,type:"boolean",onChange(Y){x("userSettings",{useAutoModeDuringPlan:Y}),R((G)=>({...G,useAutoModeDuringPlan:Y})),e((G)=>{let L=BJ(G.toolPermissionContext);if(L===G.toolPermissionContext)return G;return{...G,toolPermissionContext:L}}),M0((G)=>({...G,"Use auto mode during plan":Y}))}},{id:"respectGitignore",label:"Respect .gitignore in file picker",value:K.respectGitignore,type:"boolean",onChange(Y){T((G)=>({...G,respectGitignore:Y})),F({...S(),respectGitignore:Y}),f("tengu_respect_gitignore_setting_changed",{enabled:Y})}},{id:"copyFullResponse",label:"Always copy full response (skip /copy picker)",value:K.copyFullResponse,type:"boolean",onChange(Y){T((G)=>({...G,copyFullResponse:Y})),F({...S(),copyFullResponse:Y}),f("tengu_config_changed",{setting:"copyFullResponse",value:String(Y)})}},...ZY()?[{id:"copyOnSelect",label:"Copy on select",value:K.copyOnSelect??!0,type:"boolean",onChange(Y){T((G)=>({...G,copyOnSelect:Y})),F({...S(),copyOnSelect:Y}),f("tengu_config_changed",{setting:"copyOnSelect",value:String(Y)})}}]:[],{id:"flickerFreeMode",label:"Flicker-free mode",value:K.flickerFreeMode??!1,type:"boolean",onChange(Y){T((G)=>({...G,flickerFreeMode:Y})),F({...S(),flickerFreeMode:Y}),f("tengu_config_changed",{setting:"flickerFreeMode",value:String(Y)})}},W0?{id:"autoUpdatesChannel",label:"Auto-update channel",value:"disabled",type:"managedEnum",onChange(){}}:{id:"autoUpdatesChannel",label:"Auto-update channel",value:O?.autoUpdatesChannel??"latest",type:"managedEnum",onChange(){}},{id:"theme",label:"Theme",value:k,type:"managedEnum",onChange:M},{id:"notifChannel",label:"Notifications",value:K.preferredNotifChannel,options:["auto","iterm2","terminal_bell","iterm2_with_bell","kitty","ghostty","os_native","notifications_disabled"],type:"enum",onChange(Y){T((G)=>({...G,preferredNotifChannel:Y})),F({...S(),preferredNotifChannel:Y})}},{id:"outputStyle",label:"Output style",value:B,type:"managedEnum",onChange:()=>{}},{id:"language",label:"Language",value:w??"Default (English)",type:"managedEnum",onChange:()=>{}},{id:"editorMode",label:"Editor mode",value:K.editorMode==="emacs"?"normal":K.editorMode||"normal",options:["normal","vim"],type:"enum",onChange(Y){T((G)=>({...G,editorMode:Y})),F({...S(),editorMode:Y}),f("tengu_editor_mode_changed",{mode:Y,source:"config_panel"})}},{id:"prStatusFooterEnabled",label:"Show PR/MR status footer",value:K.prStatusFooterEnabled??!0,type:"boolean",onChange(Y){T((G)=>{if(G.prStatusFooterEnabled===Y)return G;return{...G,prStatusFooterEnabled:Y}}),F({...S(),prStatusFooterEnabled:Y}),f("tengu_pr_status_footer_setting_changed",{enabled:Y})}},{id:"model",label:"Model",value:E0===null?"Default (recommended)":E0,type:"managedEnum",onChange:sJ},...jq?[{id:"diffTool",label:"Diff tool",value:K.diffTool??"auto",options:["terminal","auto"],type:"enum",onChange(Y){T((G)=>({...G,diffTool:Y})),F({...S(),diffTool:Y}),f("tengu_diff_tool_changed",{tool:Y,source:"config_panel"})}}]:[],...!UJ()?[{id:"autoConnectIde",label:"Auto-connect to IDE (external terminal)",value:K.autoConnectIde??!1,type:"boolean",onChange(Y){T((G)=>({...G,autoConnectIde:Y})),F({...S(),autoConnectIde:Y}),f("tengu_auto_connect_ide_changed",{enabled:Y,source:"config_panel"})}}]:[],...UJ()?[{id:"autoInstallIdeExtension",label:"Auto-install IDE extension",value:K.autoInstallIdeExtension??!0,type:"boolean",onChange(Y){T((G)=>({...G,autoInstallIdeExtension:Y})),F({...S(),autoInstallIdeExtension:Y}),f("tengu_auto_install_ide_extension_changed",{enabled:Y,source:"config_panel"})}}]:[],...XY()?(()=>{let Y=WY();return[{id:"teammateMode",label:Y?`Teammate mode [overridden: ${Y}]`:"Teammate mode",value:K.teammateMode??"auto",options:["auto","tmux","in-process"],type:"enum",onChange(L){if(L!=="auto"&&L!=="tmux"&&L!=="in-process")return;KY(L),T((I)=>({...I,teammateMode:L})),F({...S(),teammateMode:L}),f("tengu_teammate_mode_changed",{mode:L})}},{id:"teammateDefaultModel",label:"Default teammate model",value:yZ(K.teammateDefaultModel),type:"managedEnum",onChange(){}}]})():[],...zY()?[{id:"remoteControlAtStartup",label:"Enable Remote Control for all sessions",value:K.remoteControlAtStartup===void 0?"default":String(K.remoteControlAtStartup),options:["true","false","default"],type:"enum",onChange(Y){if(Y==="default")T((L)=>{if(L.remoteControlAtStartup===void 0)return L;let I={...L};return delete I.remoteControlAtStartup,I}),F({...S(),remoteControlAtStartup:void 0});else{let L=Y==="true";T((I)=>{if(I.remoteControlAtStartup===L)return I;return{...I,remoteControlAtStartup:L}}),F({...S(),remoteControlAtStartup:L})}let G=uZ();e((L)=>{if(L.replBridgeEnabled===G&&!L.replBridgeOutboundOnly)return L;return{...L,replBridgeEnabled:G,replBridgeOutboundOnly:!1}})}}]:[],...mq?[{id:"showExternalIncludesDialog",label:"External CLAUDE.md includes",value:(()=>{if(dZ().hasClaudeMdExternalIncludesApproved)return"true";else return"false"})(),type:"managedEnum",onChange(){}}]:[],...(()=>{let Y=B0(),G=Y?.transport==="anthropic"?Y.apiKey?.trim():void 0;if(!G||LJ())return[];return[{id:"apiKey",label:H(V,{children:["Use custom API key:"," ",Q(V,{bold:!0,children:h0(G)})]}),searchText:"Use custom API key",value:Boolean(K.customApiKeyResponses?.approved?.includes(h0(G))),type:"boolean",onChange(L){T((I)=>{let b={...I};if(!b.customApiKeyResponses)b.customApiKeyResponses={approved:[],rejected:[]};if(!b.customApiKeyResponses.approved)b.customApiKeyResponses={...b.customApiKeyResponses,approved:[]};if(!b.customApiKeyResponses.rejected)b.customApiKeyResponses={...b.customApiKeyResponses,rejected:[]};{let o=h0(G);if(L)b.customApiKeyResponses={...b.customApiKeyResponses,approved:[...(b.customApiKeyResponses.approved??[]).filter((a)=>a!==o),o],rejected:(b.customApiKeyResponses.rejected??[]).filter((a)=>a!==o)};else b.customApiKeyResponses={...b.customApiKeyResponses,approved:(b.customApiKeyResponses.approved??[]).filter((a)=>a!==o),rejected:[...(b.customApiKeyResponses.rejected??[]).filter((a)=>a!==o),o]}}return b}),F(S())}}]})()],G0=v.useMemo(()=>{if(!A0)return OJ;let Y=A0.toLowerCase();return OJ.filter((G)=>{if(G.id.toLowerCase().includes(Y))return!0;return("searchText"in G?G.searchText:G.label).toLowerCase().includes(Y)})},[OJ,A0]);v.useEffect(()=>{if(_>=G0.length){let Y=Math.max(0,G0.length-1);F0(Y),q0(Math.max(0,Y-X0+1));return}q0((Y)=>{if(_<Y)return _;if(_>=Y+X0)return _-X0+1;return Y})},[G0.length,_,X0]);let pq=g.useCallback((Y)=>{q0((G)=>{if(Y<G)return Y;if(Y>=G+X0)return Y-X0+1;return G})},[X0]),cq=g.useCallback(()=>{if(m!==null)return;let Y=Object.entries(dJ).map(([a,eJ])=>{return f("tengu_config_changed",{key:a,value:eJ}),`Set ${a} to ${D0.bold(eJ)}`}),G=B0(),L=G?.transport==="anthropic"?G.apiKey?.trim():void 0,I=LJ()?void 0:L,b=Boolean(I&&z.current.customApiKeyResponses?.approved?.includes(h0(I))),o=Boolean(I&&K.customApiKeyResponses?.approved?.includes(h0(I)));if(b!==o)Y.push(`${o?"Enabled":"Disabled"} custom API key`),f("tengu_config_changed",{key:"env.ANTHROPIC_API_KEY",value:o});if(K.theme!==z.current.theme)Y.push(`Set theme to ${D0.bold(K.theme)}`);if(K.preferredNotifChannel!==z.current.preferredNotifChannel)Y.push(`Set notifications to ${D0.bold(K.preferredNotifChannel)}`);if(B!==h.current)Y.push(`Set output style to ${D0.bold(B)}`);if(w!==t.current)Y.push(`Set response language to ${D0.bold(w??"Default (English)")}`);if(K.editorMode!==z.current.editorMode)Y.push(`Set editor mode to ${D0.bold(K.editorMode||"emacs")}`);if(K.diffTool!==z.current.diffTool)Y.push(`Set diff tool to ${D0.bold(K.diffTool)}`);if(K.autoConnectIde!==z.current.autoConnectIde)Y.push(`${K.autoConnectIde?"Enabled":"Disabled"} auto-connect to IDE`);if(K.autoInstallIdeExtension!==z.current.autoInstallIdeExtension)Y.push(`${K.autoInstallIdeExtension?"Enabled":"Disabled"} auto-install IDE extension`);if(K.autoCompactEnabled!==z.current.autoCompactEnabled)Y.push(`${K.autoCompactEnabled?"Enabled":"Disabled"} auto-compact`);if(K.thinkingHistoryRedactionEnabled!==z.current.thinkingHistoryRedactionEnabled)Y.push(`${K.thinkingHistoryRedactionEnabled?"Enabled":"Disabled"} thinking history redaction`);if(K.narrationHistoryRedactionEnabled!==z.current.narrationHistoryRedactionEnabled)Y.push(`${K.narrationHistoryRedactionEnabled?"Enabled":"Disabled"} narration history redaction`);if(K.toolResultSummarizerEnabled!==z.current.toolResultSummarizerEnabled)Y.push(`${K.toolResultSummarizerEnabled?"Enabled":"Disabled"} tool result summarizer`);if(K.autoBackgroundAgentsEnabled!==z.current.autoBackgroundAgentsEnabled)Y.push(`${K.autoBackgroundAgentsEnabled!==!1?"Enabled":"Disabled"} auto-background agents`);if(K.bashOutputFilterEnabled!==z.current.bashOutputFilterEnabled)Y.push(`${K.bashOutputFilterEnabled!==!1?"Enabled":"Disabled"} bash output filter`);if(K.respectGitignore!==z.current.respectGitignore)Y.push(`${K.respectGitignore?"Enabled":"Disabled"} respect .gitignore in file picker`);if(K.copyFullResponse!==z.current.copyFullResponse)Y.push(`${K.copyFullResponse?"Enabled":"Disabled"} always copy full response`);if(K.copyOnSelect!==z.current.copyOnSelect)Y.push(`${K.copyOnSelect?"Enabled":"Disabled"} copy on select`);if(K.terminalProgressBarEnabled!==z.current.terminalProgressBarEnabled)Y.push(`${K.terminalProgressBarEnabled?"Enabled":"Disabled"} terminal progress bar`);if(K.showStatusInTerminalTab!==z.current.showStatusInTerminalTab)Y.push(`${K.showStatusInTerminalTab?"Enabled":"Disabled"} terminal tab status`);if(K.showTurnDuration!==z.current.showTurnDuration)Y.push(`${K.showTurnDuration?"Enabled":"Disabled"} turn duration`);if(K.remoteControlAtStartup!==z.current.remoteControlAtStartup){let a=K.remoteControlAtStartup===void 0?"Reset Remote Control to default":`${K.remoteControlAtStartup?"Enabled":"Disabled"} Remote Control for all sessions`;Y.push(a)}if(O?.autoUpdatesChannel!==A.current?.autoUpdatesChannel)Y.push(`Set auto-update channel to ${D0.bold(O?.autoUpdatesChannel??"latest")}`);if(Y.length>0)Z(Y.join(`
|
|
2
|
+
`));else Z("Config dialog dismissed",{display:"system"})},[m,dJ,K,E0,B,w,O?.autoUpdatesChannel,m0()?O?.fastMode:void 0,Z]),tJ=g.useCallback(()=>{if(k!==nJ.current)M(nJ.current);T(()=>z.current);let Y=iJ;x("localSettings",{spinnerTipsEnabled:Y?.spinnerTipsEnabled,prefersReducedMotion:Y?.prefersReducedMotion,defaultView:Y?.defaultView,outputStyle:Y?.outputStyle});let G=rJ;x("userSettings",{alwaysThinkingEnabled:G?.alwaysThinkingEnabled,fastMode:G?.fastMode,promptSuggestionEnabled:G?.promptSuggestionEnabled,autoUpdatesChannel:G?.autoUpdatesChannel,minimumVersion:G?.minimumVersion,language:G?.language,...{useAutoModeDuringPlan:G?.useAutoModeDuringPlan},syntaxHighlightingDisabled:G?.syntaxHighlightingDisabled,permissions:G?.permissions===void 0?void 0:{...G.permissions,defaultMode:G.permissions.defaultMode}});let L=lJ;if(e((I)=>({...I,mainLoopModel:L.mainLoopModel,mainLoopModelForSession:L.mainLoopModelForSession,verbose:L.verbose,thinkingEnabled:L.thinkingEnabled,fastMode:L.fastMode,promptSuggestionEnabled:L.promptSuggestionEnabled,isBriefOnly:L.isBriefOnly,replBridgeEnabled:L.replBridgeEnabled,replBridgeOutboundOnly:L.replBridgeOutboundOnly,settings:L.settings,toolPermissionContext:BJ(I.toolPermissionContext)})),RJ()!==KJ)gZ(KJ)},[k,M,iJ,rJ,lJ,KJ,e]),xq=g.useCallback(()=>{if(m!==null)return;if(J0.current)tJ();Z("Config dialog dismissed",{display:"system"})},[m,tJ,Z]);l("confirm:no",xq,{context:"Settings",isActive:m===null&&!r&&!D}),l("settings:close",cq,{context:"Settings",isActive:m===null&&!r&&!D});let HJ=g.useCallback(()=>{let Y=G0[_];if(!Y||!Y.onChange)return;if(Y.type==="boolean"){if(J0.current=!0,Y.onChange(!Y.value),Y.id==="thinkingEnabled"){if(!Y.value===bq.current)o0(!1);else if(J.messages.some((I)=>I.type==="assistant"))o0(!0)}return}if(Y.id==="theme"||Y.id==="model"||Y.id==="teammateDefaultModel"||Y.id==="showExternalIncludesDialog"||Y.id==="outputStyle"||Y.id==="language")switch(Y.id){case"theme":y("Theme"),q(!0);return;case"model":y("Model"),q(!0);return;case"teammateDefaultModel":y("TeammateModel"),q(!0);return;case"showExternalIncludesDialog":y("ExternalIncludes"),q(!0);return;case"outputStyle":y("OutputStyle"),q(!0);return;case"language":y("Language"),q(!0);return}if(Y.id==="autoUpdatesChannel"){if(W0){y("EnableAutoUpdates"),q(!0);return}if((O?.autoUpdatesChannel??"latest")==="latest")y("ChannelDowngrade"),q(!0);else J0.current=!0,x("userSettings",{autoUpdatesChannel:"latest",minimumVersion:void 0}),R((L)=>({...L,autoUpdatesChannel:"latest",minimumVersion:void 0})),f("tengu_autoupdate_channel_changed",{channel:"latest"});return}if(Y.type==="enum"){J0.current=!0;let L=(Y.options.indexOf(Y.value)+1)%Y.options.length;Y.onChange(Y.options[L]);return}},[W0,G0,_,O?.autoUpdatesChannel,q]),s0=(Y)=>{o0(!1);let G=Math.max(0,Math.min(G0.length-1,_+Y));F0(G),pq(G)};qY({"select:previous":()=>{if(_===0)o0(!1),Q0(!0),q0(0);else s0(-1)},"select:next":()=>s0(1),"scroll:lineUp":()=>s0(-1),"scroll:lineDown":()=>s0(1),"select:accept":HJ,"settings:search":()=>{Q0(!0),a0("")}},{context:"Settings",isActive:m===null&&!r&&!D});let uq=g.useCallback((Y)=>{if(m!==null)return;if(D)return;if(r){if(Y.key==="escape"){if(Y.preventDefault(),A0.length>0)a0("");else Q0(!1);return}if(Y.key==="return"||Y.key==="down"||Y.key==="wheeldown")Y.preventDefault(),Q0(!1),F0(0),q0(0);return}if(Y.key==="left"||Y.key==="right"||Y.key==="tab"){Y.preventDefault(),HJ();return}if(Y.ctrl||Y.meta)return;if(Y.key==="j"||Y.key==="k"||Y.key==="/")return;if(Y.key.length===1&&Y.key!==" ")Y.preventDefault(),Q0(!0),a0(Y.key)},[m,D,r,A0,a0,HJ]);return Q(U,{flexDirection:"column",width:"100%",tabIndex:0,autoFocus:!0,onKeyDown:uq,children:m==="Theme"?H(n,{children:[Q(FY,{onThemeSelect:(Y)=>{J0.current=!0,M(Y),y(null),q(!1)},onCancel:()=>{y(null),q(!1)},hideEscToCancel:!0,skipExitHandling:!0}),Q(U,{children:Q(V,{dimColor:!0,italic:!0,children:H(p,{children:[Q(Z0,{shortcut:"Enter",action:"select"}),Q(C,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"cancel"})]})})})]}):m==="Model"?H(n,{children:[Q(IJ,{initial:E0,onSelect:(Y,G)=>{J0.current=!0,sJ(Y),y(null),q(!1)},onCancel:()=>{y(null),q(!1)},showFastModeNotice:m0()?uJ&&aZ(E0)&&MJ():!1}),Q(V,{dimColor:!0,children:H(p,{children:[Q(Z0,{shortcut:"Enter",action:"confirm"}),Q(C,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"cancel"})]})})]}):m==="TeammateModel"?H(n,{children:[Q(IJ,{initial:K.teammateDefaultModel??null,skipSettingsWrite:!0,headerText:"Default model for newly spawned teammates. The leader can override via the tool call's model parameter.",onSelect:(Y,G)=>{if(y(null),q(!1),K.teammateDefaultModel===void 0&&Y===null)return;J0.current=!0,T((L)=>L.teammateDefaultModel===Y?L:{...L,teammateDefaultModel:Y}),F({...S(),teammateDefaultModel:Y}),M0((L)=>({...L,teammateDefaultModel:yZ(Y)})),f("tengu_teammate_default_model_changed",{model:Y})},onCancel:()=>{y(null),q(!1)}}),Q(V,{dimColor:!0,children:H(p,{children:[Q(Z0,{shortcut:"Enter",action:"confirm"}),Q(C,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"cancel"})]})})]}):m==="ExternalIncludes"?H(n,{children:[Q(RY,{onDone:()=>{y(null),q(!1)},externalIncludes:BY(aJ)}),Q(V,{dimColor:!0,children:H(p,{children:[Q(Z0,{shortcut:"Enter",action:"confirm"}),Q(C,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"disable external includes"})]})})]}):m==="OutputStyle"?H(n,{children:[Q(CZ,{initialStyle:B,onComplete:(Y)=>{J0.current=!0,E(Y??YJ),y(null),q(!1),x("localSettings",{outputStyle:Y}),f("tengu_output_style_changed",{style:Y??YJ,source:"config_panel",settings_source:"localSettings"})},onCancel:()=>{y(null),q(!1)}}),Q(V,{dimColor:!0,children:H(p,{children:[Q(Z0,{shortcut:"Enter",action:"confirm"}),Q(C,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"cancel"})]})})]}):m==="Language"?H(n,{children:[Q(hZ,{initialLanguage:w,onComplete:(Y)=>{J0.current=!0,d(Y),y(null),q(!1),x("userSettings",{language:Y}),f("tengu_language_changed",{language:Y??"default",source:"config_panel"})},onCancel:()=>{y(null),q(!1)}}),Q(V,{dimColor:!0,children:H(p,{children:[Q(Z0,{shortcut:"Enter",action:"confirm"}),Q(C,{action:"confirm:no",context:"Settings",fallback:"Esc",description:"cancel"})]})})]}):m==="EnableAutoUpdates"?Q(S0,{title:"Enable Auto-Updates",onCancel:()=>{y(null),q(!1)},hideBorder:!0,hideInputGuide:!0,children:W0?.type!=="config"?H(n,{children:[Q(V,{children:W0?.type==="env"?"Auto-updates are controlled by an environment variable and cannot be changed here.":"Auto-updates are disabled in development builds."}),W0?.type==="env"&&H(V,{dimColor:!0,children:["Unset ",W0.envVar," to re-enable auto-updates."]})]}):Q(T0,{options:[{label:"Enable with latest channel",value:"latest"},{label:"Enable with stable channel",value:"stable"}],onChange:(Y)=>{J0.current=!0,y(null),q(!1),T((G)=>({...G,autoUpdates:!0})),F({...S(),autoUpdates:!0}),x("userSettings",{autoUpdatesChannel:Y,minimumVersion:void 0}),R((G)=>({...G,autoUpdatesChannel:Y,minimumVersion:void 0})),f("tengu_autoupdate_enabled",{channel:Y})}})}):m==="ChannelDowngrade"?Q(MZ,{currentVersion:"99.0.0",onChoice:(Y)=>{if(y(null),q(!1),Y==="cancel")return;J0.current=!0;let G={autoUpdatesChannel:"stable"};if(Y==="stay")G.minimumVersion="99.0.0";x("userSettings",G),R((L)=>({...L,...G})),f("tengu_autoupdate_channel_changed",{channel:"stable",minimum_version_set:Y==="stay"})}}):H(U,{flexDirection:"column",gap:1,marginY:P?void 0:1,children:[Q(LY,{query:A0,isFocused:r&&!D,isTerminalFocused:j0,cursorOffset:$q,placeholder:"Search settings…"}),Q(U,{flexDirection:"column",children:G0.length===0?H(V,{dimColor:!0,italic:!0,children:['No settings match "',A0,'"']}):H(n,{children:[i>0&&H(V,{dimColor:!0,children:[O0.arrowUp," ",i," more above"]}),G0.slice(i,i+X0).map((Y,G)=>{let I=i+G===_&&!D&&!r;return Q(v.Fragment,{children:H(U,{children:[Q(U,{width:44,children:H(V,{color:I?"suggestion":void 0,children:[I?O0.pointer:" "," ",Y.label]})}),Q(U,{children:Y.type==="boolean"?H(n,{children:[Q(V,{color:I?"suggestion":void 0,children:Y.value.toString()}),gq&&Y.id==="thinkingEnabled"&&H(V,{color:"warning",children:[" ","Changing thinking mode mid-conversation will increase latency and may reduce quality."]})]}):Y.id==="theme"?Q(V,{color:I?"suggestion":void 0,children:fQ[Y.value.toString()]??Y.value.toString()}):Y.id==="notifChannel"?Q(V,{color:I?"suggestion":void 0,children:Q(CQ,{value:Y.value.toString()})}):Y.id==="defaultPermissionMode"?Q(V,{color:I?"suggestion":void 0,children:xZ(Y.value)}):Y.id==="autoUpdatesChannel"&&W0?H(U,{flexDirection:"column",children:[Q(V,{color:I?"suggestion":void 0,children:"disabled"}),H(V,{dimColor:!0,children:["(",iZ(W0),")"]})]}):Q(V,{color:I?"suggestion":void 0,children:Y.value.toString()})},I?"selected":"unselected")]})},Y.id)}),i+X0<G0.length&&H(V,{dimColor:!0,children:[O0.arrowDown," ",G0.length-i-X0," ","more below"]})]})}),D?Q(V,{dimColor:!0,children:H(p,{children:[Q(Z0,{shortcut:"←/→ tab",action:"switch"}),Q(Z0,{shortcut:"↓",action:"return"}),Q(C,{action:"confirm:no",context:"Settings",fallback:"Esc",description:"close"})]})}):r?Q(V,{dimColor:!0,children:H(p,{children:[Q(V,{children:"Type to filter"}),Q(Z0,{shortcut:"Enter/↓",action:"select"}),Q(Z0,{shortcut:"↑",action:"tabs"}),Q(C,{action:"confirm:no",context:"Settings",fallback:"Esc",description:"clear"})]})}):Q(V,{dimColor:!0,children:H(p,{children:[Q(C,{action:"select:accept",context:"Settings",fallback:"Space",description:"change"}),Q(C,{action:"settings:close",context:"Settings",fallback:"Enter",description:"save"}),Q(C,{action:"settings:search",context:"Settings",fallback:"/",description:"search"}),Q(C,{action:"confirm:no",context:"Settings",fallback:"Esc",description:"cancel"})]})})]})})}function yZ(Z){if(Z===void 0)return qJ(OY());if(Z===null)return"Default (leader's model)";return qJ(Z)}function CQ(Z){let J=kY.c(4),{value:q}=Z;switch(q){case"auto":return"Auto";case"iterm2":{let X;if(J[0]===Symbol.for("react.memo_cache_sentinel"))X=H(V,{children:["iTerm2 ",Q(V,{dimColor:!0,children:"(OSC 9)"})]}),J[0]=X;else X=J[0];return X}case"terminal_bell":{let X;if(J[1]===Symbol.for("react.memo_cache_sentinel"))X=H(V,{children:["Terminal Bell ",Q(V,{dimColor:!0,children:"(\\a)"})]}),J[1]=X;else X=J[1];return X}case"kitty":{let X;if(J[2]===Symbol.for("react.memo_cache_sentinel"))X=H(V,{children:["Kitty ",Q(V,{dimColor:!0,children:"(OSC 99)"})]}),J[2]=X;else X=J[2];return X}case"ghostty":{let X;if(J[3]===Symbol.for("react.memo_cache_sentinel"))X=H(V,{children:["Ghostty ",Q(V,{dimColor:!0,children:"(OSC 777)"})]}),J[3]=X;else X=J[3];return X}case"iterm2_with_bell":return"iTerm2 w/ Bell";case"notifications_disabled":return"Disabled";default:return q}}var kY,v,g,fQ;var AY=c(()=>{H0();w0();DJ();nZ();OQ();lZ();nZ();GQ();WQ();PQ();QJ();XQ();kQ();MQ();qZ();AQ();eZ();UQ();BQ();AZ();FJ();PZ();SZ();bZ();SQ();zQ();f0();XJ();DY();zJ();IQ();FQ();KQ();ZZ();EZ();jZ();VQ();NQ();RQ();LQ();EQ();v0();HQ();DQ();$();kY=j(U0(),1),v=j(s(),1),g=j(s(),1);fQ={auto:"Auto (match terminal)",dark:"Dark mode",light:"Light mode","dark-daltonized":"Dark mode (colorblind-friendly)","light-daltonized":"Light mode (colorblind-friendly)","dark-ansi":"Dark mode (ANSI colors only)","light-ansi":"Light mode (ANSI colors only)",terminal:"Terminal default (inherit colors)",dracula:"Dracula","catppuccin-mocha":"Catppuccin Mocha (dark)","catppuccin-latte":"Catppuccin Latte (light)","tokyo-night":"Tokyo Night",nord:"Nord","gruvbox-dark":"Gruvbox Dark"}});function x0(Z){return typeof Z==="object"&&Z!==null}function Y0(Z){return typeof Z==="string"&&Z.trim()?Z.trim():void 0}function b0(Z){return typeof Z==="number"&&Number.isFinite(Z)?Z:void 0}function EJ(Z){return typeof Z==="boolean"?Z:void 0}function fJ(Z){let J=b0(Z);if(J===void 0)return;return new Date(J*1000).toISOString()}function GJ(Z){if(!x0(Z))return;let J=b0(Z.used_percent)??b0(Z.usedPercent);if(J===void 0)return;let q=b0(Z.window_minutes)??b0(Z.windowDurationMins)??(()=>{let W=b0(Z.limit_window_seconds);return W===void 0?void 0:Math.round(W/60)})(),X=fJ(Z.resets_at)??fJ(Z.resetsAt)??fJ(Z.reset_at);return{usedPercent:J,windowMinutes:q,resetsAt:X}}function gY(Z){if(!x0(Z))return;let J=EJ(Z.has_credits)??EJ(Z.hasCredits)??!1,q=EJ(Z.unlimited)??!1,X=Y0(Z.balance);if(!J&&!q&&!X)return;return{hasCredits:J,unlimited:q,balance:X}}function p0(Z,J){if(!x0(Z))return;let q=Y0(Z.limit_name)??Y0(Z.limitName)??Y0(Z.limit_id)??Y0(Z.limitId)??J,X=GJ(Z.primary)??GJ(Z.primary_window),W=GJ(Z.secondary)??GJ(Z.secondary_window),D=gY(Z.credits);if(!X&&!W&&!D)return;return{limitName:q,primary:X,secondary:W,credits:D}}function CJ(Z,J="codex"){if(Array.isArray(Z))return Z.map((q,X)=>p0(q,X===0?J:`${J}-${X+1}`)).filter((q)=>q!==void 0);if(!x0(Z))return[];return Object.entries(Z).map(([q,X])=>p0(X,q)).filter((q)=>q!==void 0)}function hQ(Z){let J=Y0(Z.plan_type)??Y0(Z.planType),q=[],X=gY(Z.credits),W=p0(Z.rate_limit,"codex");if(W)W.credits??=X,q.push(W);else if(X)q.push({limitName:"codex",credits:X});let D=p0(Z.code_review_rate_limit,"code review");if(D)q.push(D);return q.push(...CJ(Z.additional_rate_limits??Z.additionalRateLimits,"additional")),{planType:J,snapshots:q}}function bQ(Z){if(Array.isArray(Z))return{snapshots:CJ(Z)};if(!x0(Z))return{snapshots:[]};if("rate_limit"in Z||"code_review_rate_limit"in Z||"additional_rate_limits"in Z||"credits"in Z)return hQ(Z);let J=Z.rate_limits??Z.rateLimits??Z.rate_limits_by_limit_id??Z.rateLimitsByLimitId;if(J!==void 0)return{planType:Y0(Z.plan_type)??Y0(Z.planType),snapshots:CJ(J)};let q=p0(Z,"codex");return{planType:Y0(Z.plan_type)??Y0(Z.planType),snapshots:q?[q]:[]}}function y0(Z){if(!Z)return Z;return Z[0].toUpperCase()+Z.slice(1)}function EY(Z,J){if(Z===void 0||Z<=0)return J;if(Z===10080)return"weekly";if(Z%1440===0)return`${Z/1440}d`;if(Z%60===0)return`${Z/60}h`;return`${Z}m`}function yQ(Z){let J=Z?.trim();if(!J)return;let q=Number.parseInt(J,10);if(Number.isFinite(q)&&`${q}`===J&&q>0)return`${q}`;let X=Number.parseFloat(J);if(Number.isFinite(X)&&X>0)return`${Math.round(X)}`;return}function gQ(Z){if(!Z?.hasCredits)return;if(Z.unlimited)return{kind:"text",label:"Credits",value:"Unlimited"};let J=yQ(Z.balance);if(!J)return;return{kind:"text",label:"Credits",value:`${J} credits`}}function $Y(Z){let J=[];for(let q of Z){let X=q.limitName.trim()||"codex",W=gQ(q.credits);if(!(q.primary!==void 0||q.secondary!==void 0||W!==void 0))continue;let N=X.toLowerCase()!=="codex",P=Number(q.primary!==void 0)+Number(q.secondary!==void 0),M=N&&P===1;if(N&&!M)J.push({kind:"text",label:`${y0(X)} limit`,value:""});if(q.primary){let k=y0(EY(q.primary.windowMinutes,"5h"));J.push({kind:"window",label:M?`${y0(X)} ${k} limit`:`${k} limit`,usedPercent:q.primary.usedPercent,resetsAt:q.primary.resetsAt})}if(q.secondary){let k=y0(EY(q.secondary.windowMinutes,"weekly"));J.push({kind:"window",label:M?`${y0(X)} ${k} limit`:`${k} limit`,usedPercent:q.secondary.usedPercent,resetsAt:q.secondary.resetsAt})}if(W)J.push(W)}return J}function jY(Z){if(!Z)return;return Z.split(/[_\s-]+/).filter(Boolean).map((J)=>y0(J.toLowerCase())).join(" ")}function $Q(Z=wY){return new URL("/backend-api/wham/usage",Z).toString()}async function _Y(){let Z=await TY().catch(async(W)=>{return c0(`[codex] access token refresh failed before usage fetch: ${W instanceof Error?W.message:String(W)}`,{level:"warn"}),{refreshed:!1,credentials:await SY()}}),J=bY();if(!hY(J.baseUrl))throw Error("Codex usage is only available with the official ChatGPT Codex backend.");let q=yY({storedCredentials:Z.credentials});if(!q.apiKey){let W=fY()?"":", choose Codex OAuth in /provider",D=q.authPath?`${W} or place a Codex auth.json at ${q.authPath}`:W;throw Error(`Codex auth is required. Set CODEX_API_KEY${D}.`)}if(!q.accountId)throw Error("Codex auth is missing chatgpt_account_id. Re-login with Codex OAuth, the Codex CLI, or set CHATGPT_ACCOUNT_ID/CODEX_ACCOUNT_ID.");let X=await fetch($Q(J.baseUrl),{method:"GET",headers:{Accept:"application/json",Authorization:`Bearer ${q.apiKey}`,"chatgpt-account-id":q.accountId,originator:"claudin"},signal:AbortSignal.timeout(5000)});if(!X.ok){let W=await X.text().catch(()=>"unknown error");throw Error(`Codex usage error ${X.status}: ${W}`)}return bQ(await X.json())}var mY=c(()=>{TQ();CY();jZ();wQ()});function jQ({label:Z,usedPercent:J,resetsAt:q,maxWidth:X}){let W=Math.max(0,Math.min(100,J)),D=`${Math.floor(W)}% used`,N=q?`Resets ${VJ(q,!0,!0)}`:void 0;if(X>=62)return H(U,{flexDirection:"column",children:[Q(V,{bold:!0,children:Z}),H(U,{flexDirection:"row",gap:1,children:[Q(R0,{ratio:W/100,width:50,fillColor:"rate_limit_fill",emptyColor:"rate_limit_empty"}),Q(V,{children:D})]}),N?Q(V,{dimColor:!0,children:N}):null]});return H(U,{flexDirection:"column",children:[H(V,{children:[Q(V,{bold:!0,children:Z}),N?H(n,{children:[Q(V,{children:" "}),H(V,{dimColor:!0,children:["· ",N]})]}):null]}),Q(R0,{ratio:W/100,width:X,fillColor:"rate_limit_fill",emptyColor:"rate_limit_empty"}),Q(V,{children:D})]})}function _Q({label:Z,value:J}){if(!J)return Q(V,{bold:!0,children:Z});return H(V,{children:[Q(V,{bold:!0,children:Z}),H(V,{dimColor:!0,children:[" · ",J]})]})}function pY(){let[Z,J]=g0.useState(null),[q,X]=g0.useState(null),[W,D]=g0.useState(!0),{columns:N}=V0(),P=N-2,M=Math.min(P,80),k=vY.useCallback(async()=>{D(!0),X(null);try{J(await _Y())}catch(z){N0(z),X(z instanceof Error?z.message:"Failed to load Codex usage")}finally{D(!1)}},[]);if(g0.useEffect(()=>{k()},[k]),l("settings:retry",()=>{k()},{context:"Settings",isActive:!!q&&!W}),q)return H(U,{flexDirection:"column",gap:1,children:[H(V,{color:"error",children:["Error: ",q]}),Q(V,{dimColor:!0,children:H(p,{children:[Q(C,{action:"settings:retry",context:"Settings",fallback:"r",description:"retry"}),Q(C,{action:"confirm:no",context:"Settings",fallback:"Esc",description:"cancel"})]})})]});if(!Z)return H(U,{flexDirection:"column",gap:1,children:[Q(V,{dimColor:!0,children:"Loading Codex usage data…"}),Q(V,{dimColor:!0,children:Q(C,{action:"confirm:no",context:"Settings",fallback:"Esc",description:"cancel"})})]});let K=$Y(Z.snapshots),F=jY(Z.planType);return H(U,{flexDirection:"column",gap:1,width:"100%",children:[F?H(V,{dimColor:!0,children:["Plan: ",F]}):null,K.length===0?Q(V,{dimColor:!0,children:"Codex usage data is not available for this account."}):null,K.map((z,O)=>z.kind==="window"?Q(jQ,{label:z.label,usedPercent:z.usedPercent,resetsAt:z.resetsAt,maxWidth:M},`${z.label}-${O}`):Q(_Q,{label:z.label,value:z.value},`${z.label}-${O}`)),Q(V,{dimColor:!0,children:Q(C,{action:"confirm:no",context:"Settings",fallback:"Esc",description:"cancel"})})]})}var vY,g0;var cY=c(()=>{v0();H0();w0();mY();SJ();QJ();f0();XJ();TJ();$();vY=j(s(),1),g0=j(s(),1)});var u0="https://api.minimax.io/v1",d0="Usage details are not available for this MiniMax account. This plan or MiniMax endpoint may not expose quota status.";var wJ=()=>{};function L0(Z){return typeof Z==="object"&&Z!==null}function u(Z){return typeof Z==="string"&&Z.trim()?Z.trim():void 0}function bJ(Z){if(typeof Z==="number"&&Number.isFinite(Z))return Z;if(typeof Z==="string"&&Z.trim()){let J=Number.parseFloat(Z);if(Number.isFinite(J))return J}return}function WJ(Z){return Math.max(0,Math.min(100,Math.round(Z)))}function mQ(Z){if(typeof Z==="string"){let X=Date.parse(Z);return Number.isNaN(X)?Z:new Date(X).toISOString()}let J=bJ(Z);if(J===void 0)return;let q=J>1000000000000?J:J*1000;return new Date(q).toISOString()}function vQ(Z,J){let q=bJ(Z);if(/remains?_time/i.test(J)&&q!==void 0){let X=q>604800?q:q*1000;return new Date(Date.now()+X).toISOString()}return mQ(Z)}function i0(Z,J){for(let q of J){let X=bJ(Z[q]);if(X!==void 0)return X}return}function pQ(Z,J){for(let q of J)if(Z[q]!==void 0)return vQ(Z[q],q);return}function r0(Z,J){return J.some((q)=>Z[q]!==void 0)}function dY(Z){return Z?Z[0].toUpperCase()+Z.slice(1):Z}function cQ(Z){if(!Z)return"MiniMax";let J=Z.trim();if(!J)return"MiniMax";if(/[A-Z]/.test(J))return J;return J.split(/[_\s-]+/).filter(Boolean).map((q)=>dY(q.toLowerCase())).join(" ")}function xQ(Z){if(!Z)return;return Z.split(/[_\s-]+/).filter(Boolean).map((J)=>dY(J.toLowerCase())).join(" ")}function iY(Z,J){let q=i0(Z,J.percentKeys),X=i0(Z,J.remainingPercentKeys),W=i0(Z,J.totalKeys),D=i0(Z,J.remainingKeys),N=i0(Z,J.usedKeys),P=W!==void 0&&N!==void 0?W-N:D,M;if(W!==void 0&&W>0&&N!==void 0)M=WJ(N/W*100);else if(W!==void 0&&W>0&&D!==void 0)M=WJ((W-D)/W*100);else if(q!==void 0)M=WJ(q);else if(X!==void 0)M=WJ(100-X);if(M===void 0)return;return{label:J.label,usedPercent:M,remaining:P,total:W,resetsAt:pQ(Z,J.resetKeys)}}function uQ(Z){let J=u(Z.label)??u(Z.name)??u(Z.window_name)??u(Z.windowName)??"Limit";return iY(Z,{label:J,percentKeys:["used_percent","usedPercent","utilization","usage_percentage","usagePercentage"],remainingPercentKeys:["usage_percent","usagePercent","remaining_percent","remainingPercent","percent_remaining","percentRemaining"],totalKeys:["total","quota","limit","max","entitlement"],remainingKeys:["remaining","remain","remains","left"],usedKeys:["used","usage","consumed"],resetKeys:["resets_at","reset_at","resetsAt","resetAt"]})}function iQ(Z){if(r0(Z,dQ))return!0;return rY.some((J)=>r0(Z,J.totalKeys)||r0(Z,J.remainingKeys)||r0(Z,J.usedKeys)||r0(Z,J.percentKeys))}function hJ(Z,J){if(!L0(Z))return;let q=rY.map((W)=>iY(Z,W)).filter((W)=>W!==void 0);if(q.length===0){let W=uQ(Z);if(W)q.push(W)}if(q.length===0)return;return{limitName:u(Z.limit_name)??u(Z.limitName)??u(Z.model_name)??u(Z.modelName)??u(Z.name)??J,windows:q}}function xY(Z,J="MiniMax"){if(Array.isArray(Z))return Z.map((q,X)=>hJ(q,X===0?J:`${J}-${X+1}`)).filter((q)=>q!==void 0);if(!L0(Z))return[];if(iQ(Z)){let q=hJ(Z,J);return q?[q]:[]}return Object.entries(Z).map(([q,X])=>hJ(X,q)).filter((q)=>q!==void 0)}function uY(Z=d0,J){return{availability:"unknown",planType:J,snapshots:[],message:Z}}function yJ(Z){if(!L0(Z))return uY();let J=xQ(u(Z.plan_type)??u(Z.planType)??u(Z.subscription_type)??u(Z.subscriptionType)??u(Z.plan_name)??u(Z.planName)),X=[Z.data,Z.result,Z.model_remains,Z.modelRemains,Z.remains,Z.usage,Z.quotas,Z.models,L0(Z.data)?Z.data.model_remains:void 0,L0(Z.data)?Z.data.modelRemains:void 0,L0(Z.data)?Z.data.models:void 0,L0(Z.data)?Z.data.quotas:void 0,L0(Z.data)?Z.data.remains:void 0].flatMap((D)=>xY(D)).filter((D,N,P)=>{let M=`${D.limitName}:${D.windows.map((k)=>k.label).join("|")}`;return P.findIndex((k)=>`${k.limitName}:${k.windows.map((K)=>K.label).join("|")}`===M)===N});if(X.length>0)return{availability:"available",planType:J,snapshots:X};let W=xY(Z);if(W.length>0)return{availability:"available",planType:J,snapshots:W};return uY(void 0,J)}function rQ(Z){if(Z.remaining===void 0||Z.total===void 0||Z.total<=0)return;return`${Z.remaining}/${Z.total} remaining`}function gJ(Z){let J=[];for(let q of Z){let X=cQ(q.limitName),W=X.toLowerCase()!=="minimax",D=W&&q.windows.length===1;if(W&&!D)J.push({kind:"text",label:`${X} quota`,value:""});for(let N of q.windows)J.push({kind:"window",label:D?`${X} ${N.label}`:N.label,usedPercent:N.usedPercent,resetsAt:N.resetsAt,extraSubtext:rQ(N)})}return J}var rY,dQ;var $J=c(()=>{wJ();rY=[{label:"5h limit",percentKeys:["interval_used_percent","intervalUsedPercent"],remainingPercentKeys:["usage_percent","usagePercent","interval_remaining_percent","intervalRemainingPercent"],totalKeys:["current_interval_total_count","currentIntervalTotalCount","max_interval_usage_count","maxIntervalUsageCount","interval_quota","intervalQuota","interval_limit","intervalLimit"],remainingKeys:["current_interval_remaining_count","currentIntervalRemainingCount","current_interval_remains_count","currentIntervalRemainsCount","interval_remaining","intervalRemaining","remaining_interval_usage_count","remainingIntervalUsageCount"],usedKeys:["current_interval_usage_count","currentIntervalUsageCount","interval_used","intervalUsed","current_interval_used_count","currentIntervalUsedCount","used_interval_usage_count","usedIntervalUsageCount"],resetKeys:["end_time","endTime","interval_resets_at","intervalResetsAt","interval_reset_at","intervalResetAt","remains_time","remainsTime"]},{label:"Weekly limit",percentKeys:["weekly_used_percent","weeklyUsedPercent"],remainingPercentKeys:["weekly_remaining_percent","weeklyRemainingPercent"],totalKeys:["max_weekly_usage_count","maxWeeklyUsageCount","weekly_quota","weeklyQuota","weekly_limit","weeklyLimit"],remainingKeys:["weekly_remaining","weeklyRemaining","remaining_weekly_usage_count","remainingWeeklyUsageCount"],usedKeys:["current_weekly_usage_count","currentWeeklyUsageCount","weekly_used","weeklyUsed","used_weekly_usage_count","usedWeeklyUsageCount"],resetKeys:["weekly_resets_at","weeklyResetsAt","weekly_reset_at","weeklyResetAt"]},{label:"Daily limit",percentKeys:["daily_used_percent","dailyUsedPercent"],remainingPercentKeys:["daily_remaining_percent","dailyRemainingPercent"],totalKeys:["max_daily_usage_count","maxDailyUsageCount","daily_quota","dailyQuota","daily_limit","dailyLimit"],remainingKeys:["daily_remaining","dailyRemaining","remaining_daily_usage_count","remainingDailyUsageCount"],usedKeys:["current_daily_usage_count","currentDailyUsageCount","daily_used","dailyUsed","used_daily_usage_count","usedDailyUsageCount"],resetKeys:["daily_resets_at","dailyResetsAt","daily_reset_at","dailyResetAt"]}],dQ=["used_percent","usedPercent","utilization","usage_percentage","usagePercentage","total","quota","limit","max","entitlement","remaining","remain","remains","left","usage_percent","usagePercent","current_interval_total_count","current_interval_usage_count","current_interval_remaining_count","current_interval_remains_count","max_interval_usage_count","current_weekly_usage_count","max_weekly_usage_count","current_daily_usage_count","max_daily_usage_count"]});function lQ(Z){return Z.replace(/\/+$/,"")}function oY(Z=B0()?.baseUrl??u0){let J=Z.trim();return J?lQ(J):u0}function oQ(Z){let J=Z??B0()?.baseUrl;if(!J?.trim())return{baseUrl:u0,usedDefault:!0};return{baseUrl:oY(J),usedDefault:!1}}function nY(Z){return{availability:"unknown",snapshots:[],message:Z}}function aY(Z){let{baseUrl:J,usedDefault:q}=oQ(Z);try{let X=new URL(`${J}/`);return[new URL("token_plan/remains",X).toString(),new URL("api/openplatform/coding_plan/remains",X).toString()]}catch{if(q){let X=new URL(`${u0}/`);return[new URL("token_plan/remains",X).toString(),new URL("api/openplatform/coding_plan/remains",X).toString()]}throw Error(`MiniMax usage base URL is invalid: ${J}`)}}async function jJ(){let Z=B0()?.apiKey;if(!Z)throw Error("MiniMax auth is required. Run /provider and configure a MiniMax profile.");let J=aY(),q=[],X=null;for(let W of J){let D;try{D=await fetch(W,{method:"GET",headers:{Accept:"application/json",Authorization:`Bearer ${Z}`,"Content-Type":"application/json","User-Agent":lY()},signal:AbortSignal.timeout(5000)})}catch(P){c0(`[minimax] usage request failed for ${W}: ${P instanceof Error?P.message:String(P)}`,{level:"warn"}),X=P instanceof Error?P:Error(String(P));continue}if(!D.ok){let P=await D.text().catch(()=>"");if([400,401,403,404].includes(D.status)){q.push({status:D.status,body:P});continue}X=Error(`MiniMax usage error ${D.status}: ${P||"unknown error"}`);continue}let N=yJ(await D.json());if(N.availability==="available")return N}if(q.length>0){let W=q[q.length-1];return c0(`[minimax] usage endpoint returned non-fatal status ${W.status}: ${W.body}`,{level:"warn"}),nY(d0)}if(X)throw X;return nY(d0)}var sY=c(()=>{lZ();CY();nQ();wJ();$J()});var tY=c(()=>{$J();sY()});function tQ(Z){let J=Math.max(1,Math.ceil(Z/60000)),q=Math.floor(J/1440),X=Math.floor(J%1440/60),W=J%60;if(q>0)return X>0?`${q}d ${X}h`:`${q}d`;if(X>0)return W>0?`${X}h ${W}m`:`${X}h`;return`${W}m`}function eQ(Z,J){if(!Z)return;let q=Date.parse(Z);if(!Number.isFinite(q))return;let X=q-J;if(X<=0)return"Resetting now";return`Resets in ${tQ(X)}`}function JX({label:Z,usedPercent:J,resetsAt:q,extraSubtext:X,maxWidth:W,nowMs:D}){let N=Math.max(0,Math.min(100,J)),P=`${Math.floor(N)}% used`,M=eQ(q,D),k=[P,X].filter((K)=>Boolean(K));return H(U,{flexDirection:"column",children:[H(V,{children:[Q(V,{bold:!0,children:Z}),M?H(V,{dimColor:!0,children:[" · ",M]}):null]}),H(U,{flexDirection:"row",gap:1,children:[Q(R0,{ratio:N/100,width:Math.min(sQ,Math.max(1,W)),fillColor:"rate_limit_fill",emptyColor:"rate_limit_empty"}),k.length>0?Q(V,{dimColor:!0,children:k.join(" · ")}):null]})]})}function ZX({label:Z,value:J}){if(!J)return Q(V,{bold:!0,children:Z});return H(V,{children:[Q(V,{bold:!0,children:Z}),H(V,{dimColor:!0,children:[" · ",J]})]})}function Jq(){let[Z,J]=P0.useState(null),[q,X]=P0.useState(null),[W,D]=P0.useState(!0),[N,P]=P0.useState(()=>Date.now()),{columns:M}=V0(),k=M-2,K=Math.min(k,80),F=eY.useCallback(async()=>{D(!0),X(null);try{J(await jJ())}catch(O){N0(O),X(O instanceof Error?O.message:"Failed to load MiniMax usage")}finally{D(!1)}},[]);if(P0.useEffect(()=>{F()},[F]),P0.useEffect(()=>{let O=setInterval(()=>{P(Date.now())},aQ);return()=>clearInterval(O)},[]),l("settings:retry",()=>{F()},{context:"Settings",isActive:!!q&&!W}),q)return H(U,{flexDirection:"column",gap:1,children:[H(V,{color:"error",children:["Error: ",q]}),Q(V,{dimColor:!0,children:H(p,{children:[Q(C,{action:"settings:retry",context:"Settings",fallback:"r",description:"retry"}),Q(C,{action:"confirm:no",context:"Settings",fallback:"Esc",description:"cancel"})]})})]});if(!Z)return H(U,{flexDirection:"column",gap:1,children:[Q(V,{dimColor:!0,children:"Loading MiniMax usage data…"}),Q(V,{dimColor:!0,children:Q(C,{action:"confirm:no",context:"Settings",fallback:"Esc",description:"cancel"})})]});let z=Z.availability==="available"?gJ(Z.snapshots):[];return H(U,{flexDirection:"column",gap:1,width:"100%",children:[Z.planType?H(V,{dimColor:!0,children:["Plan: ",Z.planType]}):null,Z.availability==="unknown"?Q(V,{dimColor:!0,children:Z.message}):z.length===0?Q(V,{dimColor:!0,children:"No MiniMax usage windows were returned for this account."}):null,z.map((O,R)=>O.kind==="window"?Q(JX,{label:O.label,usedPercent:O.usedPercent,resetsAt:O.resetsAt,extraSubtext:O.extraSubtext,maxWidth:K,nowMs:N},`${O.label}-${R}`):Q(ZX,{label:O.label,value:O.value},`${O.label}-${R}`)),Q(V,{dimColor:!0,children:Q(C,{action:"confirm:no",context:"Settings",fallback:"Esc",description:"cancel"})})]})}var eY,P0,aQ=30000,sQ=18;var Zq=c(()=>{v0();H0();w0();tY();QJ();f0();XJ();TJ();$();eY=j(s(),1),P0=j(s(),1)});function Yq({providerLabel:Z}){return H(U,{flexDirection:"column",gap:1,children:[H(V,{dimColor:!0,children:["Usage details are not currently available for ",Z,"."]}),Q(V,{dimColor:!0,children:Q(C,{action:"confirm:no",context:"Settings",fallback:"Esc",description:"cancel"})})]})}var qq=c(()=>{H0();f0();$()});function Uq(Z){let J=pJ.c(34),{title:q,limit:X,maxWidth:W,showTimeInReset:D,extraSubtext:N}=Z,P=D===void 0?!0:D,{utilization:M,resets_at:k}=X;if(M===null)return null;let K=`${Math.floor(M)}% used`,F;if(k){let z;if(J[0]!==k||J[1]!==P)z=VJ(k,!0,P),J[0]=k,J[1]=P,J[2]=z;else z=J[2];F=`Resets ${z}`}if(N)if(F)F=`${N} · ${F}`;else F=N;if(W>=62){let z;if(J[3]!==q)z=Q(V,{bold:!0,children:q}),J[3]=q,J[4]=z;else z=J[4];let O=M/100,R;if(J[5]!==O)R=Q(R0,{ratio:O,width:50,fillColor:"rate_limit_fill",emptyColor:"rate_limit_empty"}),J[5]=O,J[6]=R;else R=J[6];let A;if(J[7]!==K)A=Q(V,{children:K}),J[7]=K,J[8]=A;else A=J[8];let B;if(J[9]!==R||J[10]!==A)B=H(U,{flexDirection:"row",gap:1,children:[R,A]}),J[9]=R,J[10]=A,J[11]=B;else B=J[11];let E;if(J[12]!==F)E=F&&Q(V,{dimColor:!0,children:F}),J[12]=F,J[13]=E;else E=J[13];let h;if(J[14]!==z||J[15]!==B||J[16]!==E)h=H(U,{flexDirection:"column",children:[z,B,E]}),J[14]=z,J[15]=B,J[16]=E,J[17]=h;else h=J[17];return h}else{let z;if(J[18]!==q)z=Q(V,{bold:!0,children:q}),J[18]=q,J[19]=z;else z=J[19];let O;if(J[20]!==F)O=F&&H(n,{children:[Q(V,{children:" "}),H(V,{dimColor:!0,children:["· ",F]})]}),J[20]=F,J[21]=O;else O=J[21];let R;if(J[22]!==z||J[23]!==O)R=H(V,{children:[z,O]}),J[22]=z,J[23]=O,J[24]=R;else R=J[24];let A=M/100,B;if(J[25]!==W||J[26]!==A)B=Q(R0,{ratio:A,width:W,fillColor:"rate_limit_fill",emptyColor:"rate_limit_empty"}),J[25]=W,J[26]=A,J[27]=B;else B=J[27];let E;if(J[28]!==K)E=Q(V,{children:K}),J[28]=K,J[29]=E;else E=J[29];let h;if(J[30]!==R||J[31]!==B||J[32]!==E)h=H(U,{flexDirection:"column",children:[R,B,E]}),J[30]=R,J[31]=B,J[32]=E,J[33]=h;else h=J[33];return h}}function KX(){let[Z,J]=z0.useState(null),[q,X]=z0.useState(null),[W,D]=z0.useState(!0),{columns:N}=V0(),P=N-2,M=Math.min(P,80),k=Aq.useCallback(async()=>{D(!0),X(null);try{let O=await Lq();J(O)}catch(O){N0(O);let R=O,A=R.response?.data,B=R.response?.status,E;if(A?.error?.type==="rate_limit_error")E=A.error.message||"Rate limited. Please try again later.";else if(A?.error?.message)E=A.error.message;else if(B)E=`HTTP ${B} — ${zq(R.response?.data??{})}`;else E=O?.message||"Failed to load usage data";X(E)}finally{D(!1)}},[]);if(z0.useEffect(()=>{k()},[k]),l("settings:retry",()=>{k()},{context:"Settings",isActive:!!q&&!W}),q)return H(U,{flexDirection:"column",gap:1,children:[H(V,{color:"error",children:["Could not load Anthropic rate-limit data: ",q]}),Q(V,{dimColor:!0,children:"(cost/usage totals above are unaffected)"}),Q(V,{dimColor:!0,children:H(p,{children:[Q(C,{action:"settings:retry",context:"Settings",fallback:"r",description:"retry"}),Q(C,{action:"confirm:no",context:"Settings",fallback:"Esc",description:"cancel"})]})})]});if(!Z)return H(U,{flexDirection:"column",gap:1,children:[Q(V,{dimColor:!0,children:"Loading usage data…"}),Q(V,{dimColor:!0,children:Q(C,{action:"confirm:no",context:"Settings",fallback:"Esc",description:"cancel"})})]});let K=vJ(),F=K==="max"||K==="team"||K===null,z=[{title:"Current session",limit:Z.five_hour},{title:"Current week (all models)",limit:Z.seven_day},...F?[{title:"Current week (Sonnet only)",limit:Z.seven_day_sonnet}]:[]];return H(U,{flexDirection:"column",gap:1,width:"100%",children:[z.some(({limit:O})=>O)||Q(V,{dimColor:!0,children:"/usage is only available for subscription plans."}),z.map(({title:O,limit:R})=>R&&Q(Uq,{title:O,limit:R,maxWidth:M},O)),Z.extra_usage&&Q(OX,{extraUsage:Z.extra_usage,maxWidth:M}),kq()&&Q(Mq,{maxWidth:M}),Q(V,{dimColor:!0,children:Q(C,{action:"confirm:no",context:"Settings",fallback:"Esc",description:"cancel"})})]})}function Qq(Z){let{title:J,totalCost:q,apiDuration:X,wallDuration:W,linesAdded:D,linesRemoved:N,modelUsage:P,unknownCost:M}=Z,k=Object.entries(P);if(q===0&&k.length===0&&D===0&&N===0)return null;let K={};for(let[z,O]of k){let R=Nq(z);if(!K[R])K[R]={inputTokens:0,outputTokens:0,cacheReadInputTokens:0,cacheCreationInputTokens:0,webSearchRequests:0,costUSD:0};let A=K[R];A.inputTokens+=O.inputTokens,A.outputTokens+=O.outputTokens,A.cacheReadInputTokens+=O.cacheReadInputTokens,A.cacheCreationInputTokens+=O.cacheCreationInputTokens,A.webSearchRequests+=O.webSearchRequests,A.costUSD+=O.costUSD}let F=Object.entries(K);return H(U,{flexDirection:"column",children:[Q(V,{bold:!0,children:J}),H(V,{children:[Q(V,{children:"Total cost: "}),Q(V,{children:n0(q)}),M&&Q(V,{dimColor:!0,children:" (costs may be inaccurate due to usage of unknown models)"})]}),H(V,{children:["Total duration (API): ",mJ(X)]}),H(V,{children:["Total duration (wall): ",mJ(W)]}),H(V,{children:["Total code changes: ",D," ",D===1?"line":"lines"," added, ",N," ",N===1?"line":"lines"," removed"]}),F.length>0&&Q(V,{children:"Usage by model:"}),F.map(([z,O])=>{let R=`${$0(O.inputTokens)} input, ${$0(O.outputTokens)} output`;if(O.cacheReadInputTokens>0)R+=`, ${$0(O.cacheReadInputTokens)} cache read`;if(O.cacheCreationInputTokens>0)R+=`, ${$0(O.cacheCreationInputTokens)} cache write`;if(O.webSearchRequests>0)R+=`, ${$0(O.webSearchRequests)} web search`;return R+=` (${n0(O.costUSD)})`,H(V,{children:[`${z}:`.padStart(21)," ",R]},z)})]})}function Xq(Z={}){let J=Z.view??"global",[,q]=z0.useReducer((N)=>N+1,0);z0.useEffect(()=>{let N=setInterval(()=>q(),1000);return()=>clearInterval(N)},[]);let X=Hq();if(J==="session"){let N=Gq(),P=Dq(),M=Kq(),k=Oq();return Q(Qq,{title:"Current session",totalCost:N,apiDuration:Vq(),wallDuration:Wq(),linesAdded:M,linesRemoved:k,modelUsage:P,unknownCost:X})}let W=Rq();if(!(W.totalCost!==0||Object.keys(W.modelUsage).length>0||W.totalLinesAdded!==0||W.totalLinesRemoved!==0))return null;return H(U,{flexDirection:"column",gap:1,children:[Q(Qq,{title:"Project total (all sessions)",totalCost:W.totalCost,apiDuration:W.totalAPIDuration,wallDuration:W.totalDuration,linesAdded:W.totalLinesAdded,linesRemoved:W.totalLinesRemoved,modelUsage:W.modelUsage,unknownCost:X}),Q(V,{dimColor:!0,children:"Aggregated across all sessions in this project — includes the current session live."})]})}function cJ(Z={}){if((Z.view??"global")==="session")return Q(U,{flexDirection:"column",gap:1,width:"100%",children:Q(Xq,{view:"session"})});let q=Fq(),X;if(q==="codex")X=Q(pY,{});else if(q==="minimax")X=Q(Jq,{});else if(q!=="firstParty"){let W={openai:"this OpenAI-compatible provider",gemini:"Google Gemini",github:"GitHub Copilot",mistral:"Mistral","nvidia-nim":"NVIDIA NIM",bedrock:"AWS Bedrock",vertex:"Google Vertex AI",foundry:"Microsoft Foundry"}[q]??"this provider";X=Q(Yq,{providerLabel:W})}else X=Q(KX,{});return H(U,{flexDirection:"column",gap:1,width:"100%",children:[Q(Xq,{view:"global"}),X]})}function OX(Z){let J=pJ.c(20),{extraUsage:q,maxWidth:X}=Z,W=vJ();if(!(W==="pro"||W==="max"))return!1;if(!q.is_enabled){if(Pq.isEnabled()){let w;if(J[0]===Symbol.for("react.memo_cache_sentinel"))w=H(U,{flexDirection:"column",children:[Q(V,{bold:!0,children:_J}),Q(V,{dimColor:!0,children:"Extra usage not enabled · /extra-usage to enable"})]}),J[0]=w;else w=J[0];return w}return null}if(q.monthly_limit===null){let w;if(J[1]===Symbol.for("react.memo_cache_sentinel"))w=H(U,{flexDirection:"column",children:[Q(V,{bold:!0,children:_J}),Q(V,{dimColor:!0,children:"Unlimited"})]}),J[1]=w;else w=J[1];return w}if(typeof q.used_credits!=="number"||typeof q.utilization!=="number")return null;let N=q.used_credits/100,P;if(J[2]!==N)P=n0(N,2),J[2]=N,J[3]=P;else P=J[3];let M=P,k=q.monthly_limit/100,K;if(J[4]!==k)K=n0(k,2),J[4]=k,J[5]=K;else K=J[5];let F=K,z,O,R,A;if(J[6]!==q.utilization){let w=new Date,d=new Date(w.getFullYear(),w.getMonth()+1,1);z=Uq,A=_J,O=q.utilization,R=d.toISOString(),J[6]=q.utilization,J[7]=z,J[8]=O,J[9]=R,J[10]=A}else z=J[7],O=J[8],R=J[9],A=J[10];let B;if(J[11]!==O||J[12]!==R)B={utilization:O,resets_at:R},J[11]=O,J[12]=R,J[13]=B;else B=J[13];let E=`${M} / ${F} spent`,h;if(J[14]!==z||J[15]!==X||J[16]!==A||J[17]!==B||J[18]!==E)h=Q(z,{title:A,limit:B,showTimeInReset:!1,extraSubtext:E,maxWidth:X}),J[14]=z,J[15]=X,J[16]=A,J[17]=B,J[18]=E,J[19]=h;else h=J[19];return h}var pJ,Aq,z0,_J="Extra usage";var Bq=c(()=>{VX();XX();eZ();SJ();QX();v0();H0();w0();GX();SJ();QJ();qX();YX();f0();XJ();TJ();WX();cY();Zq();qq();$();pJ=j(U0(),1),Aq=j(s(),1),z0=j(s(),1)});function GW(Z){let J=Sq.c(25),{onClose:q,context:X,defaultTab:W}=Z,[D,N]=k0.useState(W),[P,M]=k0.useState(!1),[k,K]=k0.useState(!1),[F,z]=k0.useState(!1),O=C0(),{rows:R}=Eq(V0()),A=O?R+1:Math.max(15,Math.min(Math.floor(R*0.8),30)),[B]=k0.useState(zX);Iq();let E;if(J[0]!==q||J[1]!==P)E=()=>{if(P)return;q("Status dialog dismissed",{display:"system"})},J[0]=q,J[1]=P,J[2]=E;else E=J[2];let h=E,w=!P&&!(D==="Config"&&k)&&!(D==="Gates"&&F),d;if(J[3]!==w)d={context:"Settings",isActive:w},J[3]=w,J[4]=d;else d=J[4];l("confirm:no",h,d);let t;if(J[5]!==X||J[6]!==B)t=Q(l0,{title:"Status",children:Q(NZ,{context:X,diagnosticsPromise:B})},"status"),J[5]=X,J[6]=B,J[7]=t;else t=J[7];let _;if(J[8]!==A||J[9]!==X||J[10]!==q)_=Q(l0,{title:"Config",children:Q(k0.Suspense,{fallback:null,children:Q(MY,{context:X,onClose:q,setTabsHidden:M,onIsSearchModeChange:K,contentHeight:A})})},"config"),J[8]=A,J[9]=X,J[10]=q,J[11]=_;else _=J[11];let F0;if(J[12]===Symbol.for("react.memo_cache_sentinel"))F0=[Q(l0,{title:"Usage",children:Q(cJ,{view:"global"})},"usage"),Q(l0,{title:"Session",children:Q(cJ,{view:"session"})},"session")],J[12]=F0;else F0=J[12];let i;if(J[13]!==A)i=[],J[13]=A,J[14]=i;else i=J[14];let q0;if(J[15]!==t||J[16]!==_||J[17]!==i)q0=[t,_,...F0,...i],J[15]=t,J[16]=_,J[17]=i,J[18]=q0;else q0=J[18];let r=q0,Q0=W!=="Config"&&W!=="Gates",j0=P||O?void 0:A,I0;if(J[19]!==D||J[20]!==j0||J[21]!==Q0||J[22]!==r||J[23]!==P)I0=Q(fq,{color:"permission",children:Q(Cq,{color:"permission",selectedTab:D,onTabChange:N,hidden:P,initialHeaderFocused:Q0,contentHeight:j0,children:r})}),J[19]=D,J[20]=j0,J[21]=Q0,J[22]=r,J[23]=P,J[24]=I0;else I0=J[24];return I0}function zX(){return FZ().catch(FX)}function FX(){return[]}var Sq,k0;var NX=c(()=>{w0();HX();v0();zJ();DX();DY();RZ();AY();Bq();$();Sq=j(U0(),1),k0=j(s(),1)});
|
|
3
|
+
export{GW as zg,NX as Ag};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{kW as M,mW as X}from"./cli-0.6.9-nm598kmg.mjs";import{B_ as B,K_ as V,iba as K,oba as L,xba as W}from"./cli-0.6.9-yhp352r8.mjs";import{Mpa as Q}from"./cli-0.6.9-8ymt6nd1.mjs";async function F(){let b=await M();if(b.length===0)return{availableEnvironments:[],selectedEnvironment:null,selectedEnvironmentSource:null};let z=L()?.remote?.defaultEnvironmentId,H=b.find((x)=>x.kind!=="bridge")??b[0],J=null;if(z){let x=b.find((q)=>q.environment_id===z);if(x){H=x;for(let q=B.length-1;q>=0;q--){let y=B[q];if(!y||y==="flagSettings")continue;if(K(y)?.remote?.defaultEnvironmentId===z){J=y;break}}}}return{availableEnvironments:b,selectedEnvironment:H,selectedEnvironmentSource:J}}var Y=Q(()=>{V();W();X()});
|
|
2
|
+
export{F as Sb,Y as Tb};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{A8 as K,B8 as E,eea as U,mea as m,u9 as F,y9 as f}from"./cli-0.6.9-yhp352r8.mjs";import{Yfa as v,Zfa as x}from"./cli-0.6.9-j94027pe.mjs";import{Bha as D,Fha as g}from"./cli-0.6.9-jfyk8906.mjs";import{Mpa as S}from"./cli-0.6.9-8ymt6nd1.mjs";import{basename as H,dirname as b,join as I,sep as O}from"path";function _(q,B){if(!q)return{directory:B||v(),prefix:""};let G=F(q,B);if(q.endsWith("/")||q.endsWith(O))return{directory:G,prefix:""};let N=b(G),J=H(q);return{directory:N,prefix:J}}async function k(q){let B=Z.get(q);if(B)return B;try{let J=(await D().readdir(q)).filter((M)=>M.isDirectory()&&!M.name.startsWith(".")).map((M)=>({name:M.name,path:I(q,M.name),type:"directory"})).slice(0,100);return Z.set(q,J),J}catch(G){return U(G),[]}}async function P(q,B={}){let{basePath:G=v(),maxResults:N=10}=B,{directory:J,prefix:M}=_(q,G),V=await k(J),z=M.toLowerCase();return V.filter((X)=>X.name.toLowerCase().startsWith(z)).slice(0,N).map((X)=>({id:X.path,displayText:X.name+"/",description:"directory",metadata:{type:"directory"}}))}function o(q){return q.startsWith("~/")||q.startsWith("/")||q.startsWith("./")||q.startsWith("../")||q==="~"||q==="."||q===".."}async function u(q,B=!1){let G=`${q}:${B}`,N=A.get(G);if(N)return N;try{let V=(await D().readdir(q)).filter((z)=>B||!z.name.startsWith(".")).map((z)=>({name:z.name,path:I(q,z.name),type:z.isDirectory()?"directory":"file"})).sort((z,W)=>{if(z.type==="directory"&&W.type!=="directory")return-1;if(z.type!=="directory"&&W.type==="directory")return 1;return z.name.localeCompare(W.name)}).slice(0,100);return A.set(G,V),V}catch(J){return U(J),[]}}async function h(q,B={}){let{basePath:G=v(),maxResults:N=10,includeFiles:J=!0,includeHidden:M=!1}=B,{directory:V,prefix:z}=_(q,G),W=await u(V,M),X=z.toLowerCase(),j=W.filter((Q)=>{if(!J&&Q.type==="file")return!1;return Q.name.toLowerCase().startsWith(X)}).slice(0,N),w=q.includes("/")||q.includes(O),Y="";if(w){let Q=q.lastIndexOf("/"),$=q.lastIndexOf(O),L=Math.max(Q,$);Y=q.substring(0,L+1)}if(Y.startsWith("./")||Y.startsWith("."+O))Y=Y.slice(2);return j.map((Q)=>{let $=Y+Q.name;return{id:$,displayText:Q.type==="directory"?$+"/":$,metadata:{type:Q.type}}})}var R=500,T=300000,Z,A;var C=S(()=>{E();x();g();m();f();Z=new K({max:R,ttl:T}),A=new K({max:R,ttl:T})});
|
|
2
|
+
export{P as nh,o as oh,h as ph,C as qh};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{Lpa as Q,Mpa as U}from"./cli-0.6.9-8ymt6nd1.mjs";var w={};Q(w,{default:()=>x,createSupportsColor:()=>K});import M from"node:process";import V from"node:os";import O from"node:tty";function z(q,B=globalThis.Deno?globalThis.Deno.args:M.argv){let D=q.startsWith("-")?"":q.length===1?"-":"--",E=B.indexOf(D+q),G=B.indexOf("--");return E!==-1&&(G===-1||E<G)}function X(){if(!("FORCE_COLOR"in j))return;if(j.FORCE_COLOR==="true")return 1;if(j.FORCE_COLOR==="false")return 0;if(j.FORCE_COLOR.length===0)return 1;let q=Math.min(Number.parseInt(j.FORCE_COLOR,10),3);if(![0,1,2,3].includes(q))return;return q}function Z(q){if(q===0)return!1;return{level:q,hasBasic:!0,has256:q>=2,has16m:q>=3}}function $(q,{streamIsTTY:B,sniffFlags:D=!0}={}){let E=X();if(E!==void 0)H=E;let G=D?H:E;if(G===0)return 0;if(D){if(z("color=16m")||z("color=full")||z("color=truecolor"))return 3;if(z("color=256"))return 2}if("TF_BUILD"in j&&"AGENT_NAME"in j)return 1;if(q&&!B&&G===void 0)return 0;let J=G||0;if(j.TERM==="dumb")return J;if(M.platform==="win32"){let A=V.release().split(".");if(Number(A[0])>=10&&Number(A[2])>=10586)return Number(A[2])>=14931?3:2;return 1}if("CI"in j){if(["GITHUB_ACTIONS","GITEA_ACTIONS","CIRCLECI"].some((A)=>(A in j)))return 3;if(["TRAVIS","APPVEYOR","GITLAB_CI","BUILDKITE","DRONE"].some((A)=>(A in j))||j.CI_NAME==="codeship")return 1;return J}if("TEAMCITY_VERSION"in j)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(j.TEAMCITY_VERSION)?1:0;if(j.COLORTERM==="truecolor")return 3;if(j.TERM==="xterm-kitty")return 3;if(j.TERM==="xterm-ghostty")return 3;if(j.TERM==="wezterm")return 3;if("TERM_PROGRAM"in j){let A=Number.parseInt((j.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(j.TERM_PROGRAM){case"iTerm.app":return A>=3?3:2;case"Apple_Terminal":return 2}}if(/-256(color)?$/i.test(j.TERM))return 2;if(/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(j.TERM))return 1;if("COLORTERM"in j)return 1;return J}function K(q,B={}){let D=$(q,{streamIsTTY:q&&q.isTTY,...B});return Z(D)}var j,H,b,x;var L=U(()=>{({env:j}=M);if(z("no-color")||z("no-colors")||z("color=false")||z("color=never"))H=0;else if(z("color")||z("colors")||z("color=true")||z("color=always"))H=1;b={stdout:K({isTTY:O.isatty(1)}),stderr:K({isTTY:O.isatty(2)})},x=b});
|
|
2
|
+
export{K as tpa,w as upa,L as vpa};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{Lo as L,Mo as D,No as O,Qo as _,Ro as S,ZJ as R,bK as b,eK as w,kK as M,mK as P,rK as m,sK as h,wK as c}from"./cli-0.6.9-gercjmay.mjs";import{Y$ as x,eaa as T,eea as N,iba as B,kba as A,mea as j,nba as C,xba as E}from"./cli-0.6.9-yhp352r8.mjs";import{Yfa as U,Zfa as v}from"./cli-0.6.9-j94027pe.mjs";import{Pha as G,Sha as F}from"./cli-0.6.9-jfyk8906.mjs";import{Mpa as y}from"./cli-0.6.9-8ymt6nd1.mjs";import{join as I}from"path";async function qq(){let q=C(),z=[],W=L();for(let[K,Q]of Object.entries(W))if(K.includes("@")&&Q)z.push(K);if(q.enabledPlugins)for(let[K,Q]of Object.entries(q.enabledPlugins)){if(!K.includes("@"))continue;let J=z.indexOf(K);if(Q){if(J===-1)z.push(K)}else if(J!==-1)z.splice(J,1)}return z}function zq(){let q=new Map,z=L();for(let[K,Q]of Object.entries(z)){if(!K.includes("@"))continue;if(Q===!0)q.set(K,"flag");else if(Q===!1)q.delete(K)}let W=[{scope:"managed",source:"policySettings"},{scope:"user",source:"userSettings"},{scope:"project",source:"projectSettings"},{scope:"local",source:"localSettings"},{scope:"flag",source:"flagSettings"}];for(let{scope:K,source:Q}of W){let J=B(Q);if(!J?.enabledPlugins)continue;for(let[V,Y]of Object.entries(J.enabledPlugins)){if(!V.includes("@"))continue;if(V in z&&z[V]!==Y)G(`Plugin ${V} from --add-dir (${z[V]}) overridden by ${Q} (${Y})`);if(Y===!0)q.set(V,K);else if(Y===!1)q.delete(V)}}return G(`Found ${q.size} enabled plugins with scopes: ${Array.from(q.entries()).map(([K,Q])=>`${K}(${Q})`).join(", ")}`),q}function Jq(q){return q!=="flag"}function Kq(q){return O[q]}async function p(){M().catch((W)=>{N(W)});let q=w(),z=Object.keys(q.plugins);return G(`Found ${z.length} installed plugins`),z}async function Qq(q){try{let z=await p(),W=q.filter((J)=>!z.includes(J));return(await Promise.all(W.map(async(J)=>{try{let V=await R(J);return{pluginId:J,found:V!==null&&V!==void 0}}catch(V){return G(`Failed to check plugin ${J} in marketplace: ${V}`),{pluginId:J,found:!1}}}))).filter(({found:J})=>J).map(({pluginId:J})=>J)}catch(z){return N(z),[]}}async function Vq(q,z,W="user"){let K=W!=="user"?U():void 0,Q=_(W),J=B(Q),V={...J?.enabledPlugins},Y=[],k=[];for(let H=0;H<q.length;H++){let X=q[H];if(!X)continue;if(z)z(X,H+1,q.length);try{let Z=await R(X);if(!Z){k.push({name:X,error:"Plugin not found in any marketplace"});continue}let{entry:$,marketplaceInstallLocation:f}=Z;if(!x($.source))await m(X,$,W,K);else h({pluginId:X,installPath:I(f,$.source),version:$.version},W,K);V[X]=!0,Y.push(X)}catch(Z){let $=Z instanceof Error?Z.message:String(Z);k.push({name:X,error:$}),N(Z)}}return A(Q,{...J,enabledPlugins:V}),{installed:Y,failed:k}}var a=y(()=>{v();F();j();E();D();P();b();S();c();T()});
|
|
2
|
+
export{qq as Pd,zq as Qd,Jq as Rd,Kq as Sd,p as Td,Qq as Ud,Vq as Vd,a as Wd};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{Mpa as f}from"./cli-0.6.9-8ymt6nd1.mjs";function j(q){return typeof q==="number"&&Number.isFinite(q)?q:0}function V(q,z){let B=q;for(let K of z){if(B==null||typeof B!=="object")return;B=B[K]}return B}function k(q){if(!q)return!1;let z="";try{z=new URL(q).hostname.toLowerCase()}catch{}if(!z){let W=q.toLowerCase();return W.includes("localhost")||W.includes("127.0.0.1")||W.includes("::1")}let B=z.startsWith("[")&&z.endsWith("]")?z.slice(1,-1):z;if(B==="localhost"||B.endsWith(".localhost")||B.endsWith(".local")||B.endsWith(".lan")||B.endsWith(".internal")||B.endsWith(".intranet")||B.endsWith(".home.arpa"))return!0;let K=B.match(x);if(K){let W=Number(K[1]),$=Number(K[2]);if(W===10)return!0;if(W===172&&$>=16&&$<=31)return!0;if(W===192&&$===168)return!0;if(W===127)return!0;if(W===169&&$===254)return!0;if(W===100&&$>=64&&$<=127)return!0}if(B==="::1"||B==="::")return!0;if(B.startsWith("fe80:")||L.test(B)||Y.test(B))return!0;return!1}function C(q,z){if(q==="github")return z?.githubNativeAnthropic?"copilot-claude":"copilot";if(q==="firstParty"||q==="bedrock"||q==="vertex"||q==="foundry")return"anthropic";if(q==="gemini")return"gemini";if(q==="codex")return"codex";if(q==="openai"){let B=z?.openAiBaseUrl??"";if(k(B))return"self-hosted";let K=B.toLowerCase();if(K.includes(":11434"))return"ollama";if(K.includes("moonshot")||K.includes("kimi"))return"kimi";if(K.includes("deepseek"))return"deepseek";return"openai"}return"openai"}function A(q){if(!q||typeof q!=="object")return 0;let z=q,B=j(z.cache_read_input_tokens);if(B>0)return B;let K=j(V(q,["input_tokens_details","cached_tokens"]))||j(V(q,["prompt_tokens_details","cached_tokens"]));if(K>0)return K;let W=j(z.cached_tokens);if(W>0)return W;let $=j(z.prompt_cache_hit_tokens);if($>0)return $;let Q=j(z.cached_content_token_count);if(Q>0)return Q;return 0}function M(q){let z=A(q),B=q??{},K=j(B.input_tokens)||j(B.prompt_tokens),W=K>=z?K-z:K,$=j(B.output_tokens)||j(B.completion_tokens);return{input_tokens:W,output_tokens:$,cache_creation_input_tokens:0,cache_read_input_tokens:z}}function U(q,z){if(!q||typeof q!=="object")return G;let B=q,K=j(B.cache_read_input_tokens),W=j(B.cache_creation_input_tokens),$=j(B.input_tokens);if(z==="copilot"||z==="ollama")return G;if(z==="self-hosted"&&K===0&&W===0)return G;let Q=K+W+$;return{read:K,created:W,total:Q,hitRate:Q>0?Math.min(1,K/Q):null,supported:!0}}function w(q){if(!q)return"[Cache: N/A]";if(!q.supported)return"[Cache: N/A]";if(q.read===0&&q.created===0)return"[Cache: cold]";let z=[`${H(q.read)} read`];if(q.hitRate!==null)z.push(`hit ${Math.round(q.hitRate*100)}%`);return`[Cache: ${z.join(" • ")}]`}function I(q){if(!q)return"[Cache: N/A]";if(!q.supported)return"[Cache: N/A]";let z=[`read=${H(q.read)}`,`created=${H(q.created)}`];if(q.hitRate!==null)z.push(`hit=${Math.round(q.hitRate*100)}%`);else z.push("hit=n/a");return`[Cache: ${z.join(" ")}]`}function H(q){if(q<1000)return String(q);if(q<1e6)return`${(q/1000).toFixed(1).replace(F,"")}k`;return`${(q/1e6).toFixed(1).replace(F,"")}m`}function Z(q,z){if(!q.supported&&!z.supported)return G;if(!q.supported)return z;if(!z.supported)return q;let B=q.read+z.read,K=q.created+z.created,W=q.total+z.total;return{read:B,created:K,total:W,hitRate:W>0?B/W:null,supported:!0}}var G,x,L,Y,F;var y=f(()=>{G={read:0,created:0,total:0,hitRate:null,supported:!1};x=/^(\d{1,3})\.(\d{1,3})\.(\d{1,3})\.(\d{1,3})$/,L=/^fc[0-9a-f]{0,2}:/,Y=/^fd[0-9a-f]{0,2}:/,F=/\.0$/});function O(q){return{currentTurn:X,session:X,history:Array(q),historyWriteIdx:0,historySize:0,historyMax:q}}function _(q,z){J.currentTurn=Z(J.currentTurn,q),J.session=Z(J.session,q);let B={timestamp:Date.now(),label:z,metrics:q};if(J.history[J.historyWriteIdx]=B,J.historyWriteIdx=(J.historyWriteIdx+1)%J.historyMax,J.historySize<J.historyMax)J.historySize++}function E(){J.currentTurn=X}function g(){J.currentTurn=X,J.session=X,J.history=Array(J.historyMax),J.historyWriteIdx=0,J.historySize=0}function N(){return J.currentTurn}function R(){return J.session}function b(){if(J.historySize<J.historyMax)return J.history.slice(0,J.historySize);let q=J.history.slice(J.historyWriteIdx),z=J.history.slice(0,J.historyWriteIdx);return q.concat(z)}var D=500,X,J;var S=f(()=>{y();X={read:0,created:0,total:0,hitRate:null,supported:!1};J=O(D)});
|
|
2
|
+
export{C as V0,M as W0,U as X0,w as Y0,I as Z0,y as _0,_ as $0,E as a1,g as b1,N as c1,R as d1,b as e1,S as f1};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{Mpa as M}from"./cli-0.6.9-8ymt6nd1.mjs";function J(){return"prod"}function W(){if(process.env.CLAUDE_CODE_CUSTOM_OAUTH_URL)return"-custom-oauth";switch(J()){case"local":return"-local-oauth";case"staging":return"-staging-oauth";case"prod":return""}}function $(){let k=process.env.CLAUDE_LOCAL_OAUTH_API_BASE?.replace(/\/$/,"")??"http://localhost:8000",x=process.env.CLAUDE_LOCAL_OAUTH_APPS_BASE?.replace(/\/$/,"")??"http://localhost:4000",q=process.env.CLAUDE_LOCAL_OAUTH_CONSOLE_BASE?.replace(/\/$/,"")??"http://localhost:3000";return{BASE_API_URL:k,CONSOLE_AUTHORIZE_URL:`${q}/oauth/authorize`,CLAUDE_AI_AUTHORIZE_URL:`${x}/oauth/authorize`,CLAUDE_AI_ORIGIN:x,TOKEN_URL:`${k}/v1/oauth/token`,API_KEY_URL:`${k}/api/oauth/claude_cli/create_api_key`,ROLES_URL:`${k}/api/oauth/claude_cli/roles`,CONSOLE_SUCCESS_URL:`${q}/buy_credits?returnUrl=/oauth/code/success%3Fapp%3Dclaude-code`,CLAUDEAI_SUCCESS_URL:`${q}/oauth/code/success?app=claude-code`,MANUAL_REDIRECT_URL:`${q}/oauth/code/callback`,CLIENT_ID:"22422756-60c9-4084-8eb7-27705fd5cf9a",OAUTH_FILE_SUFFIX:"-local-oauth",MCP_PROXY_URL:"http://localhost:8205",MCP_PROXY_PATH:"/v1/toolbox/shttp/mcp/{server_id}"}}function h(){let k=(()=>{switch(J()){case"local":return $();case"staging":return z;case"prod":return z}})(),x=process.env.CLAUDE_CODE_CUSTOM_OAUTH_URL;if(x){let j=x.replace(/\/$/,"");if(!m.includes(j))throw Error("CLAUDE_CODE_CUSTOM_OAUTH_URL is not an approved endpoint.");k={...k,BASE_API_URL:j,CONSOLE_AUTHORIZE_URL:`${j}/oauth/authorize`,CLAUDE_AI_AUTHORIZE_URL:`${j}/oauth/authorize`,CLAUDE_AI_ORIGIN:j,TOKEN_URL:`${j}/v1/oauth/token`,API_KEY_URL:`${j}/api/oauth/claude_cli/create_api_key`,ROLES_URL:`${j}/api/oauth/claude_cli/roles`,CONSOLE_SUCCESS_URL:`${j}/oauth/code/success?app=claude-code`,CLAUDEAI_SUCCESS_URL:`${j}/oauth/code/success?app=claude-code`,MANUAL_REDIRECT_URL:`${j}/oauth/code/callback`,OAUTH_FILE_SUFFIX:"-custom-oauth"}}let q=process.env.CLAUDE_CODE_OAUTH_CLIENT_ID;if(q)k={...k,CLIENT_ID:q};return k}var Q="user:inference",K="user:profile",V="org:create_api_key",X="oauth-2025-04-20",Y,Z,y,z,G="https://claude.ai/oauth/claude-code-client-metadata",m;var w=M(()=>{Y=[V,K],Z=[K,Q,"user:sessions:claude_code","user:mcp_servers","user:file_upload"],y=Array.from(new Set([...Y,...Z])),z={BASE_API_URL:"https://api.anthropic.com",CONSOLE_AUTHORIZE_URL:"https://platform.claude.com/oauth/authorize",CLAUDE_AI_AUTHORIZE_URL:"https://claude.com/cai/oauth/authorize",CLAUDE_AI_ORIGIN:"https://claude.ai",TOKEN_URL:"https://platform.claude.com/v1/oauth/token",API_KEY_URL:"https://api.anthropic.com/api/oauth/claude_cli/create_api_key",ROLES_URL:"https://api.anthropic.com/api/oauth/claude_cli/roles",CONSOLE_SUCCESS_URL:"https://platform.claude.com/buy_credits?returnUrl=/oauth/code/success%3Fapp%3Dclaude-code",CLAUDEAI_SUCCESS_URL:"https://platform.claude.com/oauth/code/success?app=claude-code",MANUAL_REDIRECT_URL:"https://platform.claude.com/oauth/code/callback",CLIENT_ID:"9d1c250a-e61b-44d9-88ed-5944d1962f5e",OAUTH_FILE_SUFFIX:"",MCP_PROXY_URL:"https://mcp-proxy.anthropic.com",MCP_PROXY_PATH:"/v1/mcp/{server_id}"};m=["https://beacon.claude-ai.staging.ant.dev","https://claude.fedstart.com","https://claude-staging.fedstart.com"]});
|
|
2
|
+
export{W as Cga,Q as Dga,K as Ega,X as Fga,Y as Gga,Z as Hga,y as Iga,G as Jga,h as Kga,w as Lga};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{K7 as Z,O7 as _,P7 as w}from"./cli-0.6.9-8c45ksaw.mjs";import{Ica as j,K8 as $,X9 as k,kca as W,l9 as T,nca as V,s_ as D,y8 as Y,z8 as U}from"./cli-0.6.9-yhp352r8.mjs";import{Pha as N,Sha as M}from"./cli-0.6.9-jfyk8906.mjs";import{foa as O,oka as X}from"./cli-0.6.9-88y94bf5.mjs";O();j();M();w();D();U();T();import{realpath as v}from"fs/promises";async function b(){try{let q=await Z();if(!q){N("Not in a GitHub repository, skipping path mapping update");return}let A=X(),z=$(A)??A,B;try{B=(await v(z)).normalize("NFC")}catch{B=z}let J=q.toLowerCase(),L=V().githubRepoPaths?.[J]??[];if(L[0]===B){N(`Path ${B} already tracked for repo ${J}`);return}let E=L.filter((S)=>S!==B),H=[B,...E];W((S)=>({...S,githubRepoPaths:{...S.githubRepoPaths,[J]:H}})),N(`Added ${B} to tracked paths for repo ${J}`)}catch(q){N(`Error updating repo path mapping: ${q}`)}}function y(q){let A=V(),I=q.toLowerCase();return A.githubRepoPaths?.[I]??[]}async function P(q){let A=await Promise.all(q.map(k));return q.filter((I,z)=>A[z])}async function d(q,A){try{let I=await Y(q);if(!I)return!1;let z=_(I);if(!z)return!1;return z.toLowerCase()===A.toLowerCase()}catch{return!1}}function c(q,A){let I=V(),z=q.toLowerCase(),B=I.githubRepoPaths?.[z]??[],J=B.filter((L)=>L!==A);if(J.length===B.length)return;let Q={...I.githubRepoPaths};if(J.length===0)delete Q[z];else Q[z]=J;W((L)=>({...L,githubRepoPaths:Q})),N(`Removed ${A} from tracked paths for repo ${z}`)}
|
|
2
|
+
export{b as Jb,y as Kb,P as Lb,d as Mb,c as Nb};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import{A7 as Jc,B7 as el,C7 as Hc,D7 as cr,E7 as Cc,F7 as Ts,G7 as gl,g7 as nt,h7 as hl,i7 as bl,j7 as ml,k7 as fn,l7 as $c,m7 as fu,n7 as Al,o7 as ys,p7 as El,q7 as st,r7 as hs,s7 as k,t7 as ur,u7 as Qc,v7 as Bc,w7 as ra,x7 as Xc,y7 as Yc,z7 as Zc}from"./cli-0.6.9-qfk8bh8k.mjs";import{H7 as ie}from"./cli-0.6.9-97n772v9.mjs";import{xpa as kc,ypa as Le}from"./cli-0.6.9-1a1q6vnc.mjs";import{Apa as Vc}from"./cli-0.6.9-dvd8t953.mjs";import{Cpa as Fe,Dpa as ve,Gpa as De,Hpa as ee}from"./cli-0.6.9-72xw2978.mjs";import{Kpa as E,Npa as Bs}from"./cli-0.6.9-8ymt6nd1.mjs";var _t=E((S)=>{Object.defineProperty(S,"__esModule",{value:!0});S.resolveHttpHandlerRuntimeConfig=S.getHttpHandlerExtensionConfiguration=S.isValidHostname=S.HttpResponse=S.HttpRequest=S.Fields=S.Field=void 0;var N=ee();Object.defineProperty(S,"Field",{enumerable:!0,get:function(){return N.Field}});Object.defineProperty(S,"Fields",{enumerable:!0,get:function(){return N.Fields}});Object.defineProperty(S,"HttpRequest",{enumerable:!0,get:function(){return N.HttpRequest}});Object.defineProperty(S,"HttpResponse",{enumerable:!0,get:function(){return N.HttpResponse}});Object.defineProperty(S,"isValidHostname",{enumerable:!0,get:function(){return N.isValidHostname}});Object.defineProperty(S,"getHttpHandlerExtensionConfiguration",{enumerable:!0,get:function(){return N.getHttpHandlerExtensionConfiguration}});Object.defineProperty(S,"resolveHttpHandlerRuntimeConfig",{enumerable:!0,get:function(){return N.resolveHttpHandlerRuntimeConfig}})});var Ot=E((c)=>{Object.defineProperty(c,"__esModule",{value:!0});c.createAggregatedClient=c.convertMap=c._json=c.ServiceException=c.SENSITIVE_STRING=c.NoOpLogger=c.Command=c.Client=c.strictParseShort=c.strictParseLong=c.strictParseInt32=c.strictParseInt=c.strictParseFloat32=c.strictParseFloat=c.strictParseDouble=c.strictParseByte=c.splitHeader=c.splitEvery=c.quoteHeader=c.parseRfc7231DateTime=c.parseRfc3339DateTimeWithOffset=c.parseRfc3339DateTime=c.parseEpochTimestamp=c.parseBoolean=c.nv=c.logger=c.limitedParseFloat32=c.limitedParseFloat=c.limitedParseDouble=c.handleFloat=c.generateIdempotencyToken=c.expectUnion=c.expectString=c.expectShort=c.expectObject=c.expectNumber=c.expectNonNull=c.expectLong=c.expectInt32=c.expectInt=c.expectFloat32=c.expectByte=c.expectBoolean=c.dateToUtcString=c.copyDocumentWithTransform=c._parseRfc7231DateTime=c._parseRfc3339DateTimeWithOffset=c._parseEpochTimestamp=c.NumericValue=c.LazyJsonString=void 0;c.resolvedPath=c.extendedEncodeURIComponent=c.collectBody=c.withBaseException=c.throwDefaultError=c.take=c.serializeFloat=c.serializeDateTime=c.resolveDefaultRuntimeConfig=c.map=c.loadConfigsForDefaultMode=c.isSerializableHeaderValue=c.getValueFromTextNode=c.getDefaultExtensionConfiguration=c.getDefaultClientConfiguration=c.getArrayIfSingleItem=c.emitWarningIfUnsupportedVersion=c.decorateServiceException=void 0;var p=De();Object.defineProperty(c,"LazyJsonString",{enumerable:!0,get:function(){return p.LazyJsonString}});Object.defineProperty(c,"NumericValue",{enumerable:!0,get:function(){return p.NumericValue}});Object.defineProperty(c,"_parseEpochTimestamp",{enumerable:!0,get:function(){return p._parseEpochTimestamp}});Object.defineProperty(c,"_parseRfc3339DateTimeWithOffset",{enumerable:!0,get:function(){return p._parseRfc3339DateTimeWithOffset}});Object.defineProperty(c,"_parseRfc7231DateTime",{enumerable:!0,get:function(){return p._parseRfc7231DateTime}});Object.defineProperty(c,"copyDocumentWithTransform",{enumerable:!0,get:function(){return p.copyDocumentWithTransform}});Object.defineProperty(c,"dateToUtcString",{enumerable:!0,get:function(){return p.dateToUtcString}});Object.defineProperty(c,"expectBoolean",{enumerable:!0,get:function(){return p.expectBoolean}});Object.defineProperty(c,"expectByte",{enumerable:!0,get:function(){return p.expectByte}});Object.defineProperty(c,"expectFloat32",{enumerable:!0,get:function(){return p.expectFloat32}});Object.defineProperty(c,"expectInt",{enumerable:!0,get:function(){return p.expectInt}});Object.defineProperty(c,"expectInt32",{enumerable:!0,get:function(){return p.expectInt32}});Object.defineProperty(c,"expectLong",{enumerable:!0,get:function(){return p.expectLong}});Object.defineProperty(c,"expectNonNull",{enumerable:!0,get:function(){return p.expectNonNull}});Object.defineProperty(c,"expectNumber",{enumerable:!0,get:function(){return p.expectNumber}});Object.defineProperty(c,"expectObject",{enumerable:!0,get:function(){return p.expectObject}});Object.defineProperty(c,"expectShort",{enumerable:!0,get:function(){return p.expectShort}});Object.defineProperty(c,"expectString",{enumerable:!0,get:function(){return p.expectString}});Object.defineProperty(c,"expectUnion",{enumerable:!0,get:function(){return p.expectUnion}});Object.defineProperty(c,"generateIdempotencyToken",{enumerable:!0,get:function(){return p.generateIdempotencyToken}});Object.defineProperty(c,"handleFloat",{enumerable:!0,get:function(){return p.handleFloat}});Object.defineProperty(c,"limitedParseDouble",{enumerable:!0,get:function(){return p.limitedParseDouble}});Object.defineProperty(c,"limitedParseFloat",{enumerable:!0,get:function(){return p.limitedParseFloat}});Object.defineProperty(c,"limitedParseFloat32",{enumerable:!0,get:function(){return p.limitedParseFloat32}});Object.defineProperty(c,"logger",{enumerable:!0,get:function(){return p.logger}});Object.defineProperty(c,"nv",{enumerable:!0,get:function(){return p.nv}});Object.defineProperty(c,"parseBoolean",{enumerable:!0,get:function(){return p.parseBoolean}});Object.defineProperty(c,"parseEpochTimestamp",{enumerable:!0,get:function(){return p.parseEpochTimestamp}});Object.defineProperty(c,"parseRfc3339DateTime",{enumerable:!0,get:function(){return p.parseRfc3339DateTime}});Object.defineProperty(c,"parseRfc3339DateTimeWithOffset",{enumerable:!0,get:function(){return p.parseRfc3339DateTimeWithOffset}});Object.defineProperty(c,"parseRfc7231DateTime",{enumerable:!0,get:function(){return p.parseRfc7231DateTime}});Object.defineProperty(c,"quoteHeader",{enumerable:!0,get:function(){return p.quoteHeader}});Object.defineProperty(c,"splitEvery",{enumerable:!0,get:function(){return p.splitEvery}});Object.defineProperty(c,"splitHeader",{enumerable:!0,get:function(){return p.splitHeader}});Object.defineProperty(c,"strictParseByte",{enumerable:!0,get:function(){return p.strictParseByte}});Object.defineProperty(c,"strictParseDouble",{enumerable:!0,get:function(){return p.strictParseDouble}});Object.defineProperty(c,"strictParseFloat",{enumerable:!0,get:function(){return p.strictParseFloat}});Object.defineProperty(c,"strictParseFloat32",{enumerable:!0,get:function(){return p.strictParseFloat32}});Object.defineProperty(c,"strictParseInt",{enumerable:!0,get:function(){return p.strictParseInt}});Object.defineProperty(c,"strictParseInt32",{enumerable:!0,get:function(){return p.strictParseInt32}});Object.defineProperty(c,"strictParseLong",{enumerable:!0,get:function(){return p.strictParseLong}});Object.defineProperty(c,"strictParseShort",{enumerable:!0,get:function(){return p.strictParseShort}});var A=ve();Object.defineProperty(c,"Client",{enumerable:!0,get:function(){return A.Client}});Object.defineProperty(c,"Command",{enumerable:!0,get:function(){return A.Command}});Object.defineProperty(c,"NoOpLogger",{enumerable:!0,get:function(){return A.NoOpLogger}});Object.defineProperty(c,"SENSITIVE_STRING",{enumerable:!0,get:function(){return A.SENSITIVE_STRING}});Object.defineProperty(c,"ServiceException",{enumerable:!0,get:function(){return A.ServiceException}});Object.defineProperty(c,"_json",{enumerable:!0,get:function(){return A._json}});Object.defineProperty(c,"convertMap",{enumerable:!0,get:function(){return A.convertMap}});Object.defineProperty(c,"createAggregatedClient",{enumerable:!0,get:function(){return A.createAggregatedClient}});Object.defineProperty(c,"decorateServiceException",{enumerable:!0,get:function(){return A.decorateServiceException}});Object.defineProperty(c,"emitWarningIfUnsupportedVersion",{enumerable:!0,get:function(){return A.emitWarningIfUnsupportedVersion}});Object.defineProperty(c,"getArrayIfSingleItem",{enumerable:!0,get:function(){return A.getArrayIfSingleItem}});Object.defineProperty(c,"getDefaultClientConfiguration",{enumerable:!0,get:function(){return A.getDefaultClientConfiguration}});Object.defineProperty(c,"getDefaultExtensionConfiguration",{enumerable:!0,get:function(){return A.getDefaultExtensionConfiguration}});Object.defineProperty(c,"getValueFromTextNode",{enumerable:!0,get:function(){return A.getValueFromTextNode}});Object.defineProperty(c,"isSerializableHeaderValue",{enumerable:!0,get:function(){return A.isSerializableHeaderValue}});Object.defineProperty(c,"loadConfigsForDefaultMode",{enumerable:!0,get:function(){return A.loadConfigsForDefaultMode}});Object.defineProperty(c,"map",{enumerable:!0,get:function(){return A.map}});Object.defineProperty(c,"resolveDefaultRuntimeConfig",{enumerable:!0,get:function(){return A.resolveDefaultRuntimeConfig}});Object.defineProperty(c,"serializeDateTime",{enumerable:!0,get:function(){return A.serializeDateTime}});Object.defineProperty(c,"serializeFloat",{enumerable:!0,get:function(){return A.serializeFloat}});Object.defineProperty(c,"take",{enumerable:!0,get:function(){return A.take}});Object.defineProperty(c,"throwDefaultError",{enumerable:!0,get:function(){return A.throwDefaultError}});Object.defineProperty(c,"withBaseException",{enumerable:!0,get:function(){return A.withBaseException}});var Ie=ee();Object.defineProperty(c,"collectBody",{enumerable:!0,get:function(){return Ie.collectBody}});Object.defineProperty(c,"extendedEncodeURIComponent",{enumerable:!0,get:function(){return Ie.extendedEncodeURIComponent}});Object.defineProperty(c,"resolvedPath",{enumerable:!0,get:function(){return Ie.resolvedPath}})});var xt=E((Nt)=>{Object.defineProperty(Nt,"__esModule",{value:!0});Nt.toStream=Ys;var Xs=Bs("node:stream");function Ys(e){return Xs.Readable.from(Buffer.from(e))}});var jt=E((ro)=>{var Js=(e)=>typeof e==="string"&&e.indexOf("arn:")===0&&e.split(":").length>=6,eo=(e)=>{let t=e.split(":");if(t.length<6||t[0]!=="arn")throw Error("Malformed ARN");let[,r,n,s,o,...a]=t;return{partition:r,service:n,region:s,accountId:o,resource:a.join(":")}},to=(e)=>{let{partition:t="aws",service:r,region:n,accountId:s,resource:o}=e;if([r,n,s,o].some((a)=>typeof a!=="string"))throw Error("Input ARN object is invalid");return`arn:${t}:${r}:${n}:${s}:${o}`};ro.build=to;ro.parse=eo;ro.validate=Js});var or=E((ho)=>{var v=De(),$t=ve(),W=ee();class Mt{format(e){let t=[];for(let s of Object.keys(e)){let o=v.fromUtf8(s);t.push(Uint8Array.from([o.byteLength]),o,this.formatHeaderValue(e[s]))}let r=new Uint8Array(t.reduce((s,o)=>s+o.byteLength,0)),n=0;for(let s of t)r.set(s,n),n+=s.byteLength;return r}formatHeaderValue(e){switch(e.type){case"boolean":return Uint8Array.from([e.value?0:1]);case"byte":return Uint8Array.from([2,e.value]);case"short":let t=new DataView(new ArrayBuffer(3));return t.setUint8(0,3),t.setInt16(1,e.value,!1),new Uint8Array(t.buffer);case"integer":let r=new DataView(new ArrayBuffer(5));return r.setUint8(0,4),r.setInt32(1,e.value,!1),new Uint8Array(r.buffer);case"long":let n=new Uint8Array(9);return n[0]=5,n.set(e.value.bytes,1),n;case"binary":let s=new DataView(new ArrayBuffer(3+e.value.byteLength));s.setUint8(0,6),s.setUint16(1,e.value.byteLength,!1);let o=new Uint8Array(s.buffer);return o.set(e.value,3),o;case"string":let a=v.fromUtf8(e.value),u=new DataView(new ArrayBuffer(3+a.byteLength));u.setUint8(0,7),u.setUint16(1,a.byteLength,!1);let i=new Uint8Array(u.buffer);return i.set(a,3),i;case"timestamp":let d=new Uint8Array(9);return d[0]=8,d.set(_e.fromNumber(e.value.valueOf()).bytes,1),d;case"uuid":if(!ao.test(e.value))throw Error(`Invalid UUID received: ${e.value}`);let l=new Uint8Array(17);return l[0]=9,l.set(v.fromHex(e.value.replace(/\-/g,"")),1),l}}}var Ht;(function(e){e[e.boolTrue=0]="boolTrue",e[e.boolFalse=1]="boolFalse",e[e.byte=2]="byte",e[e.short=3]="short",e[e.integer=4]="integer",e[e.long=5]="long",e[e.byteArray=6]="byteArray",e[e.string=7]="string",e[e.timestamp=8]="timestamp",e[e.uuid=9]="uuid"})(Ht||(Ht={}));var ao=/^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$/;class _e{bytes;constructor(e){if(this.bytes=e,e.byteLength!==8)throw Error("Int64 buffers must be exactly 8 bytes")}static fromNumber(e){if(e>9223372036854776000||e<-9223372036854776000)throw Error(`${e} is too large (or, if negative, too small) to represent as an Int64`);let t=new Uint8Array(8);for(let r=7,n=Math.abs(Math.round(e));r>-1&&n>0;r--,n/=256)t[r]=n;if(e<0)Ct(t);return new _e(t)}valueOf(){let e=this.bytes.slice(0),t=e[0]&128;if(t)Ct(e);return parseInt(v.toHex(e),16)*(t?-1:1)}toString(){return String(this.valueOf())}}function Ct(e){for(let t=0;t<8;t++)e[t]^=255;for(let t=7;t>-1;t--)if(e[t]++,e[t]!==0)break}var Ft="X-Amz-Algorithm",Lt="X-Amz-Credential",Oe="X-Amz-Date",Gt="X-Amz-SignedHeaders",Wt="X-Amz-Expires",Ne="X-Amz-Signature",xe="X-Amz-Security-Token",io="X-Amz-Region-Set",je="authorization",$e=Oe.toLowerCase(),Kt="date",zt=[je,$e,Kt],qt=Ne.toLowerCase(),oe="x-amz-content-sha256",Vt=xe.toLowerCase(),uo="host",kt={authorization:!0,"cache-control":!0,connection:!0,expect:!0,from:!0,"keep-alive":!0,"max-forwards":!0,pragma:!0,referer:!0,te:!0,trailer:!0,"transfer-encoding":!0,upgrade:!0,"user-agent":!0,"x-amzn-trace-id":!0},Qt=/^proxy-/,Bt=/^sec-/,co=[/^proxy-/i,/^sec-/i],te="AWS4-HMAC-SHA256",lo="AWS4-ECDSA-P256-SHA256",Xt="AWS4-HMAC-SHA256-PAYLOAD",Yt="UNSIGNED-PAYLOAD",Zt=50,He="aws4_request",Jt=604800,er=({query:e={}})=>{let t=[],r={};for(let n of Object.keys(e)){if(n.toLowerCase()===qt)continue;let s=W.escapeUri(n);t.push(s);let o=e[n];if(typeof o==="string")r[s]=`${s}=${W.escapeUri(o)}`;else if(Array.isArray(o))r[s]=o.slice(0).reduce((a,u)=>a.concat([`${s}=${W.escapeUri(u)}`]),[]).sort().join("&")}return t.sort().map((n)=>r[n]).filter((n)=>n).join("&")},po=(e)=>fo(e).toISOString().replace(/\.\d{3}Z$/,"Z"),fo=(e)=>{if(typeof e==="number")return new Date(e*1000);if(typeof e==="string"){if(Number(e))return new Date(Number(e)*1000);return new Date(e)}return e};class Ce{service;regionProvider;credentialProvider;sha256;uriEscapePath;applyChecksum;constructor({applyChecksum:e,credentials:t,region:r,service:n,sha256:s,uriEscapePath:o=!0}){this.service=n,this.sha256=s,this.uriEscapePath=o,this.applyChecksum=typeof e==="boolean"?e:!0,this.regionProvider=$t.normalizeProvider(r),this.credentialProvider=$t.normalizeProvider(t)}createCanonicalRequest(e,t,r){let n=Object.keys(t).sort();return`${e.method}
|
|
2
|
+
${this.getCanonicalPath(e)}
|
|
3
|
+
${er(e)}
|
|
4
|
+
${n.map((s)=>`${s}:${t[s]}`).join(`
|
|
5
|
+
`)}
|
|
6
|
+
|
|
7
|
+
${n.join(";")}
|
|
8
|
+
${r}`}async createStringToSign(e,t,r,n){let s=new this.sha256;s.update(v.toUint8Array(r));let o=await s.digest();return`${n}
|
|
9
|
+
${e}
|
|
10
|
+
${t}
|
|
11
|
+
${v.toHex(o)}`}getCanonicalPath({path:e}){if(this.uriEscapePath){let t=[];for(let s of e.split("/")){if(s?.length===0)continue;if(s===".")continue;if(s==="..")t.pop();else t.push(s)}let r=`${e?.startsWith("/")?"/":""}${t.join("/")}${t.length>0&&e?.endsWith("/")?"/":""}`;return W.escapeUri(r).replace(/%2F/g,"/")}return e}validateResolvedCredentials(e){if(typeof e!=="object"||typeof e.accessKeyId!=="string"||typeof e.secretAccessKey!=="string")throw Error("Resolved credential object is not valid")}formatDate(e){let t=po(e).replace(/[\-:]/g,"");return{longDate:t,shortDate:t.slice(0,8)}}getCanonicalHeaderList(e){return Object.keys(e).sort().join(";")}}var G={},re=[],ne=(e,t,r)=>`${e}/${t}/${r}/${He}`,tr=async(e,t,r,n,s)=>{let o=await Ut(e,t.secretAccessKey,t.accessKeyId),a=`${r}:${n}:${s}:${v.toHex(o)}:${t.sessionToken}`;if(a in G)return G[a];re.push(a);while(re.length>Zt)delete G[re.shift()];let u=`AWS4${t.secretAccessKey}`;for(let i of[r,n,s,He])u=await Ut(e,u,i);return G[a]=u},go=()=>{re.length=0,Object.keys(G).forEach((e)=>{delete G[e]})},Ut=(e,t,r)=>{let n=new e(t);return n.update(v.toUint8Array(r)),n.digest()},Te=({headers:e},t,r)=>{let n={};for(let s of Object.keys(e).sort()){if(e[s]==null)continue;let o=s.toLowerCase();if(o in kt||t?.has(o)||Qt.test(o)||Bt.test(o)){if(!r||r&&!r.has(o))continue}n[o]=e[s].trim().replace(/\s+/g," ")}return n},se=async({headers:e,body:t},r)=>{for(let n of Object.keys(e))if(n.toLowerCase()===oe)return e[n];if(t==null)return"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855";else if(typeof t==="string"||ArrayBuffer.isView(t)||v.isArrayBuffer(t)){let n=new r;return n.update(v.toUint8Array(t)),v.toHex(await n.digest())}return Yt},rr=(e,t)=>{e=e.toLowerCase();for(let r of Object.keys(t))if(e===r.toLowerCase())return!0;return!1},nr=(e,t={})=>{let{headers:r,query:n={}}=W.HttpRequest.clone(e);for(let s of Object.keys(r)){let o=s.toLowerCase();if(o.slice(0,6)==="x-amz-"&&!t.unhoistableHeaders?.has(o)||t.hoistableHeaders?.has(o))n[s]=r[s],delete r[s]}return{...e,headers:r,query:n}},Se=(e)=>{e=W.HttpRequest.clone(e);for(let t of Object.keys(e.headers))if(zt.indexOf(t.toLowerCase())>-1)delete e.headers[t];return e};class sr extends Ce{headerFormatter=new Mt;constructor({applyChecksum:e,credentials:t,region:r,service:n,sha256:s,uriEscapePath:o=!0}){super({applyChecksum:e,credentials:t,region:r,service:n,sha256:s,uriEscapePath:o})}async presign(e,t={}){let{signingDate:r=new Date,expiresIn:n=3600,unsignableHeaders:s,unhoistableHeaders:o,signableHeaders:a,hoistableHeaders:u,signingRegion:i,signingService:d}=t,l=await this.credentialProvider();this.validateResolvedCredentials(l);let b=i??await this.regionProvider(),{longDate:y,shortDate:h}=this.formatDate(r);if(n>Jt)return Promise.reject("Signature version 4 presigned URLs must have an expiration date less than one week in the future");let R=ne(h,b,d??this.service),g=nr(Se(e),{unhoistableHeaders:o,hoistableHeaders:u});if(l.sessionToken)g.query[xe]=l.sessionToken;g.query[Ft]=te,g.query[Lt]=`${l.accessKeyId}/${R}`,g.query[Oe]=y,g.query[Wt]=n.toString(10);let T=Te(g,s,a);return g.query[Gt]=this.getCanonicalHeaderList(T),g.query[Ne]=await this.getSignature(y,R,this.getSigningKey(l,b,h,d),this.createCanonicalRequest(g,T,await se(e,this.sha256))),g}async sign(e,t){if(typeof e==="string")return this.signString(e,t);else if(e.headers&&e.payload)return this.signEvent(e,t);else if(e.message)return this.signMessage(e,t);else return this.signRequest(e,t)}async signEvent({headers:e,payload:t},{signingDate:r=new Date,priorSignature:n,signingRegion:s,signingService:o,eventStreamCredentials:a}){let u=s??await this.regionProvider(),{shortDate:i,longDate:d}=this.formatDate(r),l=ne(i,u,o??this.service),b=await se({headers:{},body:t},this.sha256),y=new this.sha256;y.update(e);let h=v.toHex(await y.digest()),R=[Xt,d,l,n,h,b].join(`
|
|
12
|
+
`);return this.signString(R,{signingDate:r,signingRegion:u,signingService:o,eventStreamCredentials:a})}async signMessage(e,{signingDate:t=new Date,signingRegion:r,signingService:n,eventStreamCredentials:s}){return this.signEvent({headers:this.headerFormatter.format(e.message.headers),payload:e.message.body},{signingDate:t,signingRegion:r,signingService:n,priorSignature:e.priorSignature,eventStreamCredentials:s}).then((a)=>{return{message:e.message,signature:a}})}async signString(e,{signingDate:t=new Date,signingRegion:r,signingService:n,eventStreamCredentials:s}={}){let o=s??await this.credentialProvider();this.validateResolvedCredentials(o);let a=r??await this.regionProvider(),{shortDate:u}=this.formatDate(t),i=new this.sha256(await this.getSigningKey(o,a,u,n));return i.update(v.toUint8Array(e)),v.toHex(await i.digest())}async signRequest(e,{signingDate:t=new Date,signableHeaders:r,unsignableHeaders:n,signingRegion:s,signingService:o}={}){let a=await this.credentialProvider();this.validateResolvedCredentials(a);let u=s??await this.regionProvider(),i=Se(e),{longDate:d,shortDate:l}=this.formatDate(t),b=ne(l,u,o??this.service);if(i.headers[$e]=d,a.sessionToken)i.headers[Vt]=a.sessionToken;let y=await se(i,this.sha256);if(!rr(oe,i.headers)&&this.applyChecksum)i.headers[oe]=y;let h=Te(i,n,r),R=await this.getSignature(d,b,this.getSigningKey(a,u,l,o),this.createCanonicalRequest(i,h,y));return i.headers[je]=`${te} Credential=${a.accessKeyId}/${b}, SignedHeaders=${this.getCanonicalHeaderList(h)}, Signature=${R}`,i}async getSignature(e,t,r,n){let s=await this.createStringToSign(e,t,n,te),o=new this.sha256(await r);return o.update(v.toUint8Array(s)),v.toHex(await o.digest())}getSigningKey(e,t,r,n){return tr(this.sha256,e,r,t,n||this.service)}}var yo={SignatureV4a:null};ho.ALGORITHM_IDENTIFIER=te;ho.ALGORITHM_IDENTIFIER_V4A=lo;ho.ALGORITHM_QUERY_PARAM=Ft;ho.ALWAYS_UNSIGNABLE_HEADERS=kt;ho.AMZ_DATE_HEADER=$e;ho.AMZ_DATE_QUERY_PARAM=Oe;ho.AUTH_HEADER=je;ho.CREDENTIAL_QUERY_PARAM=Lt;ho.DATE_HEADER=Kt;ho.EVENT_ALGORITHM_IDENTIFIER=Xt;ho.EXPIRES_QUERY_PARAM=Wt;ho.GENERATED_HEADERS=zt;ho.HOST_HEADER=uo;ho.KEY_TYPE_IDENTIFIER=He;ho.MAX_CACHE_SIZE=Zt;ho.MAX_PRESIGNED_TTL=Jt;ho.PROXY_HEADER_PATTERN=Qt;ho.REGION_SET_PARAM=io;ho.SEC_HEADER_PATTERN=Bt;ho.SHA256_HEADER=oe;ho.SIGNATURE_HEADER=qt;ho.SIGNATURE_QUERY_PARAM=Ne;ho.SIGNED_HEADERS_QUERY_PARAM=Gt;ho.SignatureV4=sr;ho.SignatureV4Base=Ce;ho.TOKEN_HEADER=Vt;ho.TOKEN_QUERY_PARAM=xe;ho.UNSIGNABLE_PATTERNS=co;ho.UNSIGNED_PAYLOAD=Yt;ho.clearCredentialCache=go;ho.createScope=ne;ho.getCanonicalHeaders=Te;ho.getCanonicalQuery=er;ho.getPayloadHash=se;ho.getSigningKey=tr;ho.hasHeader=rr;ho.moveHeadersToQuery=nr;ho.prepareRequest=Se;ho.signatureV4aContainer=yo});var _r=E(($a)=>{var X=_t(),lr=Ot(),na=xt(),sa=jt(),oa=cr(),aa=Fe(),ia=or(),ae=ra(),ua=Le(),dr=ie(),ca=ur(),la="content-length",da="x-amz-decoded-content-length";function pr(){return(e,t)=>async(r)=>{let{request:n}=r;if(X.HttpRequest.isInstance(n)){if(!(la in n.headers)&&!(da in n.headers))if(typeof t?.logger?.warn==="function"&&!(t.logger instanceof lr.NoOpLogger))t.logger.warn("Are you using a Stream of unknown length as the Body of a PutObject request? Consider using Upload instead from @aws-sdk/lib-storage.");else console.warn("Are you using a Stream of unknown length as the Body of a PutObject request? Consider using Upload instead from @aws-sdk/lib-storage.")}return e({...r})}}var fr={step:"finalizeRequest",tags:["CHECK_CONTENT_LENGTH_HEADER"],name:"getCheckContentLengthHeaderPlugin",override:!0},pa=(e)=>({applyToStack:(t)=>{t.add(pr(),fr)}}),gr=(e)=>{return(t,r)=>async(n)=>{let s=await e.region(),o=e.region,a=()=>{};if(r.__s3RegionRedirect)Object.defineProperty(e,"region",{writable:!1,value:async()=>{return r.__s3RegionRedirect}}),a=()=>Object.defineProperty(e,"region",{writable:!0,value:o});try{let u=await t(n);if(r.__s3RegionRedirect){a();let i=await e.region();if(s!==i)throw Error("Region was not restored following S3 region redirect.")}return u}catch(u){throw a(),u}}},yr={tags:["REGION_REDIRECT","S3"],name:"regionRedirectEndpointMiddleware",override:!0,relation:"before",toMiddleware:"endpointV2Middleware"};function hr(e){return(t,r)=>async(n)=>{try{return await t(n)}catch(s){if(e.followRegionRedirects){let o=s?.$metadata?.httpStatusCode,a=r.commandName==="HeadBucketCommand",u=s?.$response?.headers?.["x-amz-bucket-region"];if(u){if(o===301||o===400&&(s?.name==="IllegalLocationConstraintException"||a)){try{let i=u;r.logger?.debug(`Redirecting from ${await e.region()} to ${i}`),r.__s3RegionRedirect=i}catch(i){throw Error("Region redirect failed: "+i)}return t(n)}}}throw s}}}var br={step:"initialize",tags:["REGION_REDIRECT","S3"],name:"regionRedirectMiddleware",override:!0},fa=(e)=>({applyToStack:(t)=>{t.add(hr(e),br),t.addRelativeTo(gr(e),yr)}}),mr=(e)=>{return(t,r)=>async(n)=>{let s=await t(n),{response:o}=s;if(X.HttpResponse.isInstance(o)){if(o.headers.expires){o.headers.expiresstring=o.headers.expires;try{lr.parseRfc7231DateTime(o.headers.expires)}catch(a){r.logger?.warn(`AWS SDK Warning for ${r.clientName}::${r.commandName} response parsing (${o.headers.expires}): ${a}`),delete o.headers.expires}}}return s}},Ar={tags:["S3"],name:"s3ExpiresMiddleware",override:!0,relation:"after",toMiddleware:"deserializerMiddleware"},ga=(e)=>({applyToStack:(t)=>{t.addRelativeTo(mr(),Ar)}});class ue{data;lastPurgeTime=Date.now();static EXPIRED_CREDENTIAL_PURGE_INTERVAL_MS=30000;constructor(e={}){this.data=e}get(e){let t=this.data[e];if(!t)return;return t}set(e,t){return this.data[e]=t,t}delete(e){delete this.data[e]}async purgeExpired(){let e=Date.now();if(this.lastPurgeTime+ue.EXPIRED_CREDENTIAL_PURGE_INTERVAL_MS>e)return;for(let t in this.data){let r=this.data[t];if(!r.isRefreshing){let n=await r.identity;if(n.expiration){if(n.expiration.getTime()<e)delete this.data[t]}}}}}class B{_identity;isRefreshing;accessed;constructor(e,t=!1,r=Date.now()){this._identity=e,this.isRefreshing=t,this.accessed=r}get identity(){return this.accessed=Date.now(),this._identity}}class ce{createSessionFn;cache;static REFRESH_WINDOW_MS=60000;constructor(e,t=new ue){this.createSessionFn=e,this.cache=t}async getS3ExpressIdentity(e,t){let r=t.Bucket,{cache:n}=this,s=n.get(r);if(s)return s.identity.then((o)=>{if((o.expiration?.getTime()??0)<Date.now())return n.set(r,new B(this.getIdentity(r))).identity;if((o.expiration?.getTime()??0)<Date.now()+ce.REFRESH_WINDOW_MS&&!s.isRefreshing)s.isRefreshing=!0,this.getIdentity(r).then((i)=>{n.set(r,new B(Promise.resolve(i)))});return o});return n.set(r,new B(this.getIdentity(r))).identity}async getIdentity(e){await this.cache.purgeExpired().catch((n)=>{console.warn(`Error while clearing expired entries in S3ExpressIdentityCache:
|
|
13
|
+
`+n)});let t=await this.createSessionFn(e);if(!t.Credentials?.AccessKeyId||!t.Credentials?.SecretAccessKey)throw Error("s3#createSession response credential missing AccessKeyId or SecretAccessKey.");return{accessKeyId:t.Credentials.AccessKeyId,secretAccessKey:t.Credentials.SecretAccessKey,sessionToken:t.Credentials.SessionToken,expiration:t.Credentials.Expiration?new Date(t.Credentials.Expiration):void 0}}}var ya="Directory",ha="S3Express",ba="sigv4-s3express",Ue="X-Amz-S3session-Token",Me=Ue.toLowerCase(),ma="AWS_S3_DISABLE_EXPRESS_SESSION_AUTH",Aa="s3_disable_express_session_auth",Ea={environmentVariableSelector:(e)=>ae.booleanSelector(e,ma,ae.SelectorType.ENV),configFileSelector:(e)=>ae.booleanSelector(e,Aa,ae.SelectorType.CONFIG),default:!1};class Er extends ia.SignatureV4{async signWithCredentials(e,t,r){let n=ar(t);e.headers[Me]=t.sessionToken;let s=this;return ir(s,n),s.signRequest(e,r??{})}async presignWithCredentials(e,t,r){let n=ar(t);return delete e.headers[Me],e.headers[Ue]=t.sessionToken,e.query=e.query??{},e.query[Ue]=t.sessionToken,ir(this,n),this.presign(e,r)}}function ar(e){return{accessKeyId:e.accessKeyId,secretAccessKey:e.secretAccessKey,expiration:e.expiration}}function ir(e,t){let r=setTimeout(()=>{throw Error("SignatureV4S3Express credential override was created but not called.")},10),n=e.credentialProvider,s=()=>{return clearTimeout(r),e.credentialProvider=n,Promise.resolve(t)};e.credentialProvider=s}var Rr=(e)=>{return(t,r)=>async(n)=>{if(r.endpointV2){let s=r.endpointV2,o=s.properties?.authSchemes?.[0]?.name===ba;if(s.properties?.backend===ha||s.properties?.bucketType===ya)ua.setFeature(r,"S3_EXPRESS_BUCKET","J"),r.isS3ExpressBucket=!0;if(o){let u=n.input.Bucket;if(u){let i=await e.s3ExpressIdentityProvider.getS3ExpressIdentity(await e.credentials(),{Bucket:u});if(r.s3ExpressIdentity=i,X.HttpRequest.isInstance(n.request)&&i.sessionToken)n.request.headers[Me]=i.sessionToken}}}return t(n)}},wr={name:"s3ExpressMiddleware",step:"build",tags:["S3","S3_EXPRESS"],override:!0},Ra=(e)=>({applyToStack:(t)=>{t.add(Rr(e),wr)}}),wa=async(e,t,r,n)=>{let s=await n.signWithCredentials(r,e,{});if(s.headers["X-Amz-Security-Token"]||s.headers["x-amz-security-token"])throw Error("X-Amz-Security-Token must not be set for s3-express requests.");return s},Pa=(e)=>(t)=>{throw t},va=(e,t)=>{},Da=dr.httpSigningMiddlewareOptions,Pr=(e)=>(t,r)=>async(n)=>{if(!X.HttpRequest.isInstance(n.request))return t(n);let o=ca.getSmithyContext(r).selectedHttpAuthScheme;if(!o)throw Error("No HttpAuthScheme was selected: unable to sign request");let{httpAuthOption:{signingProperties:a={}},identity:u,signer:i}=o,d;if(r.s3ExpressIdentity)d=await wa(r.s3ExpressIdentity,a,n.request,await e.signer());else d=await i.sign(n.request,u,a);let l=await t({...n,request:d}).catch((i.errorHandler||Pa)(a));return(i.successHandler||va)(l.response,a),l},Ia=(e)=>({applyToStack:(t)=>{t.addRelativeTo(Pr(e),dr.httpSigningMiddlewareOptions)}}),Ta=(e,{session:t})=>{let[r,n]=t,{forcePathStyle:s,useAccelerateEndpoint:o,disableMultiregionAccessPoints:a,followRegionRedirects:u,s3ExpressIdentityProvider:i,bucketEndpoint:d,expectContinueHeader:l}=e;return Object.assign(e,{forcePathStyle:s??!1,useAccelerateEndpoint:o??!1,disableMultiregionAccessPoints:a??!1,followRegionRedirects:u??!1,s3ExpressIdentityProvider:i??new ce(async(b)=>r().send(new n({Bucket:b}))),bucketEndpoint:d??!1,expectContinueHeader:l??2097152})},Sa={CopyObjectCommand:!0,UploadPartCopyCommand:!0,CompleteMultipartUploadCommand:!0},vr=(e)=>(t,r)=>async(n)=>{let s=await t(n),{response:o}=s;if(!X.HttpResponse.isInstance(o))return s;let{statusCode:a,body:u}=o;if(a<200||a>=300)return s;let i=await _a(u,e);if(o.body=na.toStream(i),i.length===0&&Sa[r.commandName]){let l=Error("S3 aborted request");throw l.$metadata={httpStatusCode:503},l.name="InternalError",l}let d=e.utf8Encoder(i.subarray(i.length-16));if(d&&d.endsWith("</Error>"))o.statusCode=503;return s},_a=(e=new Uint8Array,t)=>{if(e instanceof Uint8Array)return Promise.resolve(e);return t.streamCollector(e)||Promise.resolve(new Uint8Array)},Dr={relation:"after",toMiddleware:"deserializerMiddleware",tags:["THROW_200_EXCEPTIONS","S3"],name:"throw200ExceptionsMiddleware",override:!0},Oa=(e)=>({applyToStack:(t)=>{t.addRelativeTo(vr(e),Dr)}});function Na(e){return(t,r)=>async(n)=>{if(e.bucketEndpoint){let s=r.endpointV2;if(s){let o=n.input.Bucket;if(typeof o==="string")try{let a=new URL(o);r.endpointV2={...s,url:a}}catch(a){let u=`@aws-sdk/middleware-sdk-s3: bucketEndpoint=true was set but Bucket=${o} could not be parsed as URL.`;if(r.logger?.constructor?.name==="NoOpLogger")console.warn(u);else r.logger?.warn?.(u);throw a}}}return t(n)}}var xa={name:"bucketEndpointMiddleware",override:!0,relation:"after",toMiddleware:"endpointV2Middleware"};function Ir({bucketEndpoint:e}){return(t)=>async(r)=>{let{input:{Bucket:n}}=r;if(!e&&typeof n==="string"&&!sa.validate(n)&&n.indexOf("/")>=0){let s=Error(`Bucket name shouldn't contain '/', received '${n}'`);throw s.name="InvalidBucketName",s}return t({...r})}}var Tr={step:"initialize",tags:["VALIDATE_BUCKET_NAME"],name:"validateBucketNameMiddleware",override:!0},ja=(e)=>({applyToStack:(t)=>{t.add(Ir(e),Tr),t.addRelativeTo(Na(e),xa)}});class Sr extends oa.AwsRestXmlProtocol{async serializeRequest(e,t,r){let n=await super.serializeRequest(e,t,r),s=aa.NormalizedSchema.of(e.input),o=s.getSchema(),a=0,u=o[6]??0;if(t&&typeof t==="object")for(let[i,d]of s.structIterator()){if(++a>u)break;if(i==="Bucket"){if(!t.Bucket&&d.getMergedTraits().httpLabel)throw Error("No value provided for input HTTP label: Bucket.");break}}return n}}$a.NODE_DISABLE_S3_EXPRESS_SESSION_AUTH_OPTIONS=Ea;$a.S3ExpressIdentityCache=ue;$a.S3ExpressIdentityCacheEntry=B;$a.S3ExpressIdentityProviderImpl=ce;$a.S3RestXmlProtocol=Sr;$a.SignatureV4S3Express=Er;$a.checkContentLengthHeader=pr;$a.checkContentLengthHeaderMiddlewareOptions=fr;$a.getCheckContentLengthHeaderPlugin=pa;$a.getRegionRedirectMiddlewarePlugin=fa;$a.getS3ExpiresMiddlewarePlugin=ga;$a.getS3ExpressHttpSigningPlugin=Ia;$a.getS3ExpressPlugin=Ra;$a.getThrow200ExceptionsPlugin=Oa;$a.getValidateBucketNamePlugin=ja;$a.regionRedirectEndpointMiddleware=gr;$a.regionRedirectEndpointMiddlewareOptions=yr;$a.regionRedirectMiddleware=hr;$a.regionRedirectMiddlewareOptions=br;$a.resolveS3Config=Ta;$a.s3ExpiresMiddleware=mr;$a.s3ExpiresMiddlewareOptions=Ar;$a.s3ExpressHttpSigningMiddleware=Pr;$a.s3ExpressHttpSigningMiddlewareOptions=Da;$a.s3ExpressMiddleware=Rr;$a.s3ExpressMiddlewareOptions=wr;$a.throw200ExceptionsMiddleware=vr;$a.throw200ExceptionsMiddlewareOptions=Dr;$a.validateBucketNameMiddleware=Ir;$a.validateBucketNameMiddlewareOptions=Tr});var tn=E((Ei)=>{var D=De(),Or=ve(),z=ee();class $r{format(e){let t=[];for(let s of Object.keys(e)){let o=D.fromUtf8(s);t.push(Uint8Array.from([o.byteLength]),o,this.formatHeaderValue(e[s]))}let r=new Uint8Array(t.reduce((s,o)=>s+o.byteLength,0)),n=0;for(let s of t)r.set(s,n),n+=s.byteLength;return r}formatHeaderValue(e){switch(e.type){case"boolean":return Uint8Array.from([e.value?0:1]);case"byte":return Uint8Array.from([2,e.value]);case"short":let t=new DataView(new ArrayBuffer(3));return t.setUint8(0,3),t.setInt16(1,e.value,!1),new Uint8Array(t.buffer);case"integer":let r=new DataView(new ArrayBuffer(5));return r.setUint8(0,4),r.setInt32(1,e.value,!1),new Uint8Array(r.buffer);case"long":let n=new Uint8Array(9);return n[0]=5,n.set(e.value.bytes,1),n;case"binary":let s=new DataView(new ArrayBuffer(3+e.value.byteLength));s.setUint8(0,6),s.setUint16(1,e.value.byteLength,!1);let o=new Uint8Array(s.buffer);return o.set(e.value,3),o;case"string":let a=D.fromUtf8(e.value),u=new DataView(new ArrayBuffer(3+a.byteLength));u.setUint8(0,7),u.setUint16(1,a.byteLength,!1);let i=new Uint8Array(u.buffer);return i.set(a,3),i;case"timestamp":let d=new Uint8Array(9);return d[0]=8,d.set(Ke.fromNumber(e.value.valueOf()).bytes,1),d;case"uuid":if(!di.test(e.value))throw Error(`Invalid UUID received: ${e.value}`);let l=new Uint8Array(17);return l[0]=9,l.set(D.fromHex(e.value.replace(/\-/g,"")),1),l}}}var Nr;(function(e){e[e.boolTrue=0]="boolTrue",e[e.boolFalse=1]="boolFalse",e[e.byte=2]="byte",e[e.short=3]="short",e[e.integer=4]="integer",e[e.long=5]="long",e[e.byteArray=6]="byteArray",e[e.string=7]="string",e[e.timestamp=8]="timestamp",e[e.uuid=9]="uuid"})(Nr||(Nr={}));var di=/^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$/;class Ke{bytes;constructor(e){if(this.bytes=e,e.byteLength!==8)throw Error("Int64 buffers must be exactly 8 bytes")}static fromNumber(e){if(e>9223372036854776000||e<-9223372036854776000)throw Error(`${e} is too large (or, if negative, too small) to represent as an Int64`);let t=new Uint8Array(8);for(let r=7,n=Math.abs(Math.round(e));r>-1&&n>0;r--,n/=256)t[r]=n;if(e<0)xr(t);return new Ke(t)}valueOf(){let e=this.bytes.slice(0),t=e[0]&128;if(t)xr(e);return parseInt(D.toHex(e),16)*(t?-1:1)}toString(){return String(this.valueOf())}}function xr(e){for(let t=0;t<8;t++)e[t]^=255;for(let t=7;t>-1;t--)if(e[t]++,e[t]!==0)break}var Hr="X-Amz-Algorithm",Cr="X-Amz-Credential",ze="X-Amz-Date",Ur="X-Amz-SignedHeaders",Mr="X-Amz-Expires",qe="X-Amz-Signature",Ve="X-Amz-Security-Token",pi="X-Amz-Region-Set",ke="authorization",Qe=ze.toLowerCase(),Fr="date",Lr=[ke,Qe,Fr],Gr=qe.toLowerCase(),ge="x-amz-content-sha256",Wr=Ve.toLowerCase(),fi="host",Kr={authorization:!0,"cache-control":!0,connection:!0,expect:!0,from:!0,"keep-alive":!0,"max-forwards":!0,pragma:!0,referer:!0,te:!0,trailer:!0,"transfer-encoding":!0,upgrade:!0,"user-agent":!0,"x-amzn-trace-id":!0},zr=/^proxy-/,qr=/^sec-/,gi=[/^proxy-/i,/^sec-/i],le="AWS4-HMAC-SHA256",yi="AWS4-ECDSA-P256-SHA256",Vr="AWS4-HMAC-SHA256-PAYLOAD",kr="UNSIGNED-PAYLOAD",Qr=50,Be="aws4_request",Br=604800,Xr=({query:e={}})=>{let t=[],r={};for(let n of Object.keys(e)){if(n.toLowerCase()===Gr)continue;let s=z.escapeUri(n);t.push(s);let o=e[n];if(typeof o==="string")r[s]=`${s}=${z.escapeUri(o)}`;else if(Array.isArray(o))r[s]=o.slice(0).reduce((a,u)=>a.concat([`${s}=${z.escapeUri(u)}`]),[]).sort().join("&")}return t.sort().map((n)=>r[n]).filter((n)=>n).join("&")},hi=(e)=>bi(e).toISOString().replace(/\.\d{3}Z$/,"Z"),bi=(e)=>{if(typeof e==="number")return new Date(e*1000);if(typeof e==="string"){if(Number(e))return new Date(Number(e)*1000);return new Date(e)}return e};class Xe{service;regionProvider;credentialProvider;sha256;uriEscapePath;applyChecksum;constructor({applyChecksum:e,credentials:t,region:r,service:n,sha256:s,uriEscapePath:o=!0}){this.service=n,this.sha256=s,this.uriEscapePath=o,this.applyChecksum=typeof e==="boolean"?e:!0,this.regionProvider=Or.normalizeProvider(r),this.credentialProvider=Or.normalizeProvider(t)}createCanonicalRequest(e,t,r){let n=Object.keys(t).sort();return`${e.method}
|
|
14
|
+
${this.getCanonicalPath(e)}
|
|
15
|
+
${Xr(e)}
|
|
16
|
+
${n.map((s)=>`${s}:${t[s]}`).join(`
|
|
17
|
+
`)}
|
|
18
|
+
|
|
19
|
+
${n.join(";")}
|
|
20
|
+
${r}`}async createStringToSign(e,t,r,n){let s=new this.sha256;s.update(D.toUint8Array(r));let o=await s.digest();return`${n}
|
|
21
|
+
${e}
|
|
22
|
+
${t}
|
|
23
|
+
${D.toHex(o)}`}getCanonicalPath({path:e}){if(this.uriEscapePath){let t=[];for(let s of e.split("/")){if(s?.length===0)continue;if(s===".")continue;if(s==="..")t.pop();else t.push(s)}let r=`${e?.startsWith("/")?"/":""}${t.join("/")}${t.length>0&&e?.endsWith("/")?"/":""}`;return z.escapeUri(r).replace(/%2F/g,"/")}return e}validateResolvedCredentials(e){if(typeof e!=="object"||typeof e.accessKeyId!=="string"||typeof e.secretAccessKey!=="string")throw Error("Resolved credential object is not valid")}formatDate(e){let t=hi(e).replace(/[\-:]/g,"");return{longDate:t,shortDate:t.slice(0,8)}}getCanonicalHeaderList(e){return Object.keys(e).sort().join(";")}}var K={},de=[],pe=(e,t,r)=>`${e}/${t}/${r}/${Be}`,Yr=async(e,t,r,n,s)=>{let o=await jr(e,t.secretAccessKey,t.accessKeyId),a=`${r}:${n}:${s}:${D.toHex(o)}:${t.sessionToken}`;if(a in K)return K[a];de.push(a);while(de.length>Qr)delete K[de.shift()];let u=`AWS4${t.secretAccessKey}`;for(let i of[r,n,s,Be])u=await jr(e,u,i);return K[a]=u},mi=()=>{de.length=0,Object.keys(K).forEach((e)=>{delete K[e]})},jr=(e,t,r)=>{let n=new e(t);return n.update(D.toUint8Array(r)),n.digest()},Ge=({headers:e},t,r)=>{let n={};for(let s of Object.keys(e).sort()){if(e[s]==null)continue;let o=s.toLowerCase();if(o in Kr||t?.has(o)||zr.test(o)||qr.test(o)){if(!r||r&&!r.has(o))continue}n[o]=e[s].trim().replace(/\s+/g," ")}return n},fe=async({headers:e,body:t},r)=>{for(let n of Object.keys(e))if(n.toLowerCase()===ge)return e[n];if(t==null)return"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855";else if(typeof t==="string"||ArrayBuffer.isView(t)||D.isArrayBuffer(t)){let n=new r;return n.update(D.toUint8Array(t)),D.toHex(await n.digest())}return kr},Zr=(e,t)=>{e=e.toLowerCase();for(let r of Object.keys(t))if(e===r.toLowerCase())return!0;return!1},Jr=(e,t={})=>{let{headers:r,query:n={}}=z.HttpRequest.clone(e);for(let s of Object.keys(r)){let o=s.toLowerCase();if(o.slice(0,6)==="x-amz-"&&!t.unhoistableHeaders?.has(o)||t.hoistableHeaders?.has(o))n[s]=r[s],delete r[s]}return{...e,headers:r,query:n}},We=(e)=>{e=z.HttpRequest.clone(e);for(let t of Object.keys(e.headers))if(Lr.indexOf(t.toLowerCase())>-1)delete e.headers[t];return e};class en extends Xe{headerFormatter=new $r;constructor({applyChecksum:e,credentials:t,region:r,service:n,sha256:s,uriEscapePath:o=!0}){super({applyChecksum:e,credentials:t,region:r,service:n,sha256:s,uriEscapePath:o})}async presign(e,t={}){let{signingDate:r=new Date,expiresIn:n=3600,unsignableHeaders:s,unhoistableHeaders:o,signableHeaders:a,hoistableHeaders:u,signingRegion:i,signingService:d}=t,l=await this.credentialProvider();this.validateResolvedCredentials(l);let b=i??await this.regionProvider(),{longDate:y,shortDate:h}=this.formatDate(r);if(n>Br)return Promise.reject("Signature version 4 presigned URLs must have an expiration date less than one week in the future");let R=pe(h,b,d??this.service),g=Jr(We(e),{unhoistableHeaders:o,hoistableHeaders:u});if(l.sessionToken)g.query[Ve]=l.sessionToken;g.query[Hr]=le,g.query[Cr]=`${l.accessKeyId}/${R}`,g.query[ze]=y,g.query[Mr]=n.toString(10);let T=Ge(g,s,a);return g.query[Ur]=this.getCanonicalHeaderList(T),g.query[qe]=await this.getSignature(y,R,this.getSigningKey(l,b,h,d),this.createCanonicalRequest(g,T,await fe(e,this.sha256))),g}async sign(e,t){if(typeof e==="string")return this.signString(e,t);else if(e.headers&&e.payload)return this.signEvent(e,t);else if(e.message)return this.signMessage(e,t);else return this.signRequest(e,t)}async signEvent({headers:e,payload:t},{signingDate:r=new Date,priorSignature:n,signingRegion:s,signingService:o,eventStreamCredentials:a}){let u=s??await this.regionProvider(),{shortDate:i,longDate:d}=this.formatDate(r),l=pe(i,u,o??this.service),b=await fe({headers:{},body:t},this.sha256),y=new this.sha256;y.update(e);let h=D.toHex(await y.digest()),R=[Vr,d,l,n,h,b].join(`
|
|
24
|
+
`);return this.signString(R,{signingDate:r,signingRegion:u,signingService:o,eventStreamCredentials:a})}async signMessage(e,{signingDate:t=new Date,signingRegion:r,signingService:n,eventStreamCredentials:s}){return this.signEvent({headers:this.headerFormatter.format(e.message.headers),payload:e.message.body},{signingDate:t,signingRegion:r,signingService:n,priorSignature:e.priorSignature,eventStreamCredentials:s}).then((a)=>{return{message:e.message,signature:a}})}async signString(e,{signingDate:t=new Date,signingRegion:r,signingService:n,eventStreamCredentials:s}={}){let o=s??await this.credentialProvider();this.validateResolvedCredentials(o);let a=r??await this.regionProvider(),{shortDate:u}=this.formatDate(t),i=new this.sha256(await this.getSigningKey(o,a,u,n));return i.update(D.toUint8Array(e)),D.toHex(await i.digest())}async signRequest(e,{signingDate:t=new Date,signableHeaders:r,unsignableHeaders:n,signingRegion:s,signingService:o}={}){let a=await this.credentialProvider();this.validateResolvedCredentials(a);let u=s??await this.regionProvider(),i=We(e),{longDate:d,shortDate:l}=this.formatDate(t),b=pe(l,u,o??this.service);if(i.headers[Qe]=d,a.sessionToken)i.headers[Wr]=a.sessionToken;let y=await fe(i,this.sha256);if(!Zr(ge,i.headers)&&this.applyChecksum)i.headers[ge]=y;let h=Ge(i,n,r),R=await this.getSignature(d,b,this.getSigningKey(a,u,l,o),this.createCanonicalRequest(i,h,y));return i.headers[ke]=`${le} Credential=${a.accessKeyId}/${b}, SignedHeaders=${this.getCanonicalHeaderList(h)}, Signature=${R}`,i}async getSignature(e,t,r,n){let s=await this.createStringToSign(e,t,n,le),o=new this.sha256(await r);return o.update(D.toUint8Array(s)),D.toHex(await o.digest())}getSigningKey(e,t,r,n){return Yr(this.sha256,e,r,t,n||this.service)}}var Ai={SignatureV4a:null};Ei.ALGORITHM_IDENTIFIER=le;Ei.ALGORITHM_IDENTIFIER_V4A=yi;Ei.ALGORITHM_QUERY_PARAM=Hr;Ei.ALWAYS_UNSIGNABLE_HEADERS=Kr;Ei.AMZ_DATE_HEADER=Qe;Ei.AMZ_DATE_QUERY_PARAM=ze;Ei.AUTH_HEADER=ke;Ei.CREDENTIAL_QUERY_PARAM=Cr;Ei.DATE_HEADER=Fr;Ei.EVENT_ALGORITHM_IDENTIFIER=Vr;Ei.EXPIRES_QUERY_PARAM=Mr;Ei.GENERATED_HEADERS=Lr;Ei.HOST_HEADER=fi;Ei.KEY_TYPE_IDENTIFIER=Be;Ei.MAX_CACHE_SIZE=Qr;Ei.MAX_PRESIGNED_TTL=Br;Ei.PROXY_HEADER_PATTERN=zr;Ei.REGION_SET_PARAM=pi;Ei.SEC_HEADER_PATTERN=qr;Ei.SHA256_HEADER=ge;Ei.SIGNATURE_HEADER=Gr;Ei.SIGNATURE_QUERY_PARAM=qe;Ei.SIGNED_HEADERS_QUERY_PARAM=Ur;Ei.SignatureV4=en;Ei.SignatureV4Base=Xe;Ei.TOKEN_HEADER=Wr;Ei.TOKEN_QUERY_PARAM=Ve;Ei.UNSIGNABLE_PATTERNS=gi;Ei.UNSIGNED_PAYLOAD=kr;Ei.clearCredentialCache=mi;Ei.createScope=pe;Ei.getCanonicalHeaders=Ge;Ei.getCanonicalQuery=Xr;Ei.getPayloadHash=fe;Ei.getSigningKey=Yr;Ei.hasHeader=Zr;Ei.moveHeadersToQuery=Jr;Ei.prepareRequest=We;Ei.signatureV4aContainer=Ai});var Ye=E((iu)=>{var au=_r(),rn=tn(),Y={CrtSignerV4:null};class nn{sigv4aSigner;sigv4Signer;signerOptions;static sigv4aDependency(){if(typeof Y.CrtSignerV4==="function")return"crt";else if(typeof rn.signatureV4aContainer.SignatureV4a==="function")return"js";return"none"}constructor(e){this.sigv4Signer=new au.SignatureV4S3Express(e),this.signerOptions=e}async sign(e,t={}){if(t.signingRegion==="*")return this.getSigv4aSigner().sign(e,t);return this.sigv4Signer.sign(e,t)}async signWithCredentials(e,t,r={}){if(r.signingRegion==="*"){let n=this.getSigv4aSigner(),s=Y.CrtSignerV4;if(s&&n instanceof s)return n.signWithCredentials(e,t,r);else throw Error(`signWithCredentials with signingRegion '*' is only supported when using the CRT dependency @aws-sdk/signature-v4-crt. Please check whether you have installed the "@aws-sdk/signature-v4-crt" package explicitly. You must also register the package by calling [require("@aws-sdk/signature-v4-crt");] or an ESM equivalent such as [import "@aws-sdk/signature-v4-crt";]. For more information please go to https://github.com/aws/aws-sdk-js-v3#functionality-requiring-aws-common-runtime-crt`)}return this.sigv4Signer.signWithCredentials(e,t,r)}async presign(e,t={}){if(t.signingRegion==="*"){let r=this.getSigv4aSigner(),n=Y.CrtSignerV4;if(n&&r instanceof n)return r.presign(e,t);else throw Error(`presign with signingRegion '*' is only supported when using the CRT dependency @aws-sdk/signature-v4-crt. Please check whether you have installed the "@aws-sdk/signature-v4-crt" package explicitly. You must also register the package by calling [require("@aws-sdk/signature-v4-crt");] or an ESM equivalent such as [import "@aws-sdk/signature-v4-crt";]. For more information please go to https://github.com/aws/aws-sdk-js-v3#functionality-requiring-aws-common-runtime-crt`)}return this.sigv4Signer.presign(e,t)}async presignWithCredentials(e,t,r={}){if(r.signingRegion==="*")throw Error("Method presignWithCredentials is not supported for [signingRegion=*].");return this.sigv4Signer.presignWithCredentials(e,t,r)}getSigv4aSigner(){if(!this.sigv4aSigner){let e=Y.CrtSignerV4,t=rn.signatureV4aContainer.SignatureV4a;if(this.signerOptions.runtime==="node"){if(!e&&!t)throw Error("Neither CRT nor JS SigV4a implementation is available. Please load either @aws-sdk/signature-v4-crt or @aws-sdk/signature-v4a. For more information please go to https://github.com/aws/aws-sdk-js-v3#functionality-requiring-aws-common-runtime-crt");if(e&&typeof e==="function")this.sigv4aSigner=new e({...this.signerOptions,signingAlgorithm:1});else if(t&&typeof t==="function")this.sigv4aSigner=new t({...this.signerOptions});else throw Error("Available SigV4a implementation is not a valid constructor. Please ensure you've properly imported @aws-sdk/signature-v4-crt or @aws-sdk/signature-v4a.For more information please go to https://github.com/aws/aws-sdk-js-v3#functionality-requiring-aws-common-runtime-crt")}else{if(!t||typeof t!=="function")throw Error("JS SigV4a implementation is not available or not a valid constructor. Please check whether you have installed the @aws-sdk/signature-v4a package explicitly. The CRT implementation is not available for browsers. You must also register the package by calling [require('@aws-sdk/signature-v4a');] or an ESM equivalent such as [import '@aws-sdk/signature-v4a';]. For more information please go to https://github.com/aws/aws-sdk-js-v3#using-javascript-non-crt-implementation-of-sigv4a");this.sigv4aSigner=new t({...this.signerOptions})}}return this.sigv4aSigner}}iu.SignatureV4MultiRegion=nn;iu.signatureV4CrtContainer=Y});var bn=E((yn)=>{Object.defineProperty(yn,"__esModule",{value:!0});yn.bdd=void 0;var lu=fn(),V="ref",x=-1,Z=!0,sn="isSet",gn="PartitionResult",J="booleanEquals",w="stringEquals",Ze="getAttr",on="us-east-1",an="sigv4",un="sts",cn="https://sts.{Region}.{PartitionResult#dnsSuffix}",ln={[V]:"Endpoint"},P={[V]:"Region"},Je={[V]:gn},q={},dn=[P],pn={conditions:[[sn,[ln]],[sn,dn],["aws.partition",dn,gn],[J,[{[V]:"UseFIPS"},Z]],[J,[{[V]:"UseDualStack"},Z]],[w,[P,"aws-global"]],[J,[{[V]:"UseGlobalEndpoint"},Z]],[w,[P,"eu-central-1"]],[J,[{fn:Ze,argv:[Je,"supportsDualStack"]},Z]],[J,[{fn:Ze,argv:[Je,"supportsFIPS"]},Z]],[w,[P,"ap-south-1"]],[w,[P,"eu-north-1"]],[w,[P,"eu-west-1"]],[w,[P,"eu-west-2"]],[w,[P,"eu-west-3"]],[w,[P,"sa-east-1"]],[w,[P,on]],[w,[P,"us-east-2"]],[w,[P,"us-west-2"]],[w,[P,"us-west-1"]],[w,[P,"ca-central-1"]],[w,[P,"ap-southeast-1"]],[w,[P,"ap-northeast-1"]],[w,[P,"ap-southeast-2"]],[w,[{fn:Ze,argv:[Je,"name"]},"aws-us-gov"]]],results:[[x],["https://sts.amazonaws.com",{authSchemes:[{name:an,signingName:un,signingRegion:on}]}],[cn,{authSchemes:[{name:an,signingName:un,signingRegion:"{Region}"}]}],[x,"Invalid Configuration: FIPS and custom endpoint are not supported"],[x,"Invalid Configuration: Dualstack and custom endpoint are not supported"],[ln,q],["https://sts-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",q],[x,"FIPS and DualStack are enabled, but this partition does not support one or both"],["https://sts.{Region}.amazonaws.com",q],["https://sts-fips.{Region}.{PartitionResult#dnsSuffix}",q],[x,"FIPS is enabled but this partition does not support FIPS"],["https://sts.{Region}.{PartitionResult#dualStackDnsSuffix}",q],[x,"DualStack is enabled but this partition does not support DualStack"],[cn,q],[x,"Invalid Configuration: Missing Region"]]},du=2,f=1e8,pu=new Int32Array([-1,1,-1,0,30,3,1,4,f+14,2,5,f+14,3,25,6,4,24,7,5,f+1,8,6,9,f+13,7,f+1,10,10,f+1,11,11,f+1,12,12,f+1,13,13,f+1,14,14,f+1,15,15,f+1,16,16,f+1,17,17,f+1,18,18,f+1,19,19,f+1,20,20,f+1,21,21,f+1,22,22,f+1,23,23,f+1,f+2,8,f+11,f+12,4,28,26,9,27,f+10,24,f+8,f+9,8,29,f+7,9,f+6,f+7,3,f+3,31,4,f+4,f+5]);yn.bdd=lu.BinaryDecisionDiagram.from(pu,du,pn.conditions,pn.results)});var tt=E((mn)=>{Object.defineProperty(mn,"__esModule",{value:!0});mn.defaultEndpointResolver=void 0;var gu=fu(),et=fn(),yu=bn(),hu=new et.EndpointCache({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS","UseGlobalEndpoint"]}),bu=(e,t={})=>{return hu.get(e,()=>(0,et.decideEndpoint)(yu.bdd,{endpointParams:e,logger:t.logger}))};mn.defaultEndpointResolver=bu;et.customEndpointFunctions.aws=gu.awsEndpointFunctions});var ot=E((Pn)=>{Object.defineProperty(Pn,"__esModule",{value:!0});Pn.resolveHttpAuthSchemeConfig=Pn.resolveStsAuthConfig=Pn.defaultSTSHttpAuthSchemeProvider=Pn.defaultSTSHttpAuthSchemeParametersProvider=void 0;var En=nt(),mu=Ye(),Au=st(),ye=ur(),Eu=tt(),Ru=at(),wu=(e)=>async(t,r,n)=>{if(!n)throw Error("Could not find `input` for `defaultEndpointRuleSetHttpAuthSchemeParametersProvider`");let s=await e(t,r,n),o=(0,ye.getSmithyContext)(r)?.commandInstance?.constructor?.getEndpointParameterInstructions;if(!o)throw Error(`getEndpointParameterInstructions() is not defined on '${r.commandName}'`);let a=await(0,Au.resolveParams)(n,{getEndpointParameterInstructions:o},t);return Object.assign(s,a)},Pu=async(e,t,r)=>{return{operation:(0,ye.getSmithyContext)(t).operation,region:await(0,ye.normalizeProvider)(e.region)()||(()=>{throw Error("expected `region` to be configured for `aws.auth#sigv4`")})()}};Pn.defaultSTSHttpAuthSchemeParametersProvider=wu(Pu);function Rn(e){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"sts",region:e.region},propertiesExtractor:(t,r)=>({signingProperties:{config:t,context:r}})}}function rt(e){return{schemeId:"aws.auth#sigv4a",signingProperties:{name:"sts",region:e.region},propertiesExtractor:(t,r)=>({signingProperties:{config:t,context:r}})}}function wn(e){return{schemeId:"smithy.api#noAuth"}}var vu=(e,t,r)=>{return(s)=>{let a=e(s).properties?.authSchemes;if(!a)return t(s);let u=[];for(let i of a){let{name:d,properties:l={},...b}=i,y=d.toLowerCase();if(d!==y)console.warn(`HttpAuthScheme has been normalized with lowercasing: '${d}' to '${y}'`);let h;if(y==="sigv4a"){h="aws.auth#sigv4a";let T=a.find((Pe)=>{let St=Pe.name.toLowerCase();return St!=="sigv4a"&&St.startsWith("sigv4")});if(mu.SignatureV4MultiRegion.sigv4aDependency()==="none"&&T)continue}else if(y.startsWith("sigv4"))h="aws.auth#sigv4";else throw Error(`Unknown HttpAuthScheme found in '@smithy.rules#endpointRuleSet': '${y}'`);let R=r[h];if(!R)throw Error(`Could not find HttpAuthOption create function for '${h}'`);let g=R(s);g.schemeId=h,g.signingProperties={...g.signingProperties||{},...b,...l},u.push(g)}return u}},Du=(e)=>{let t=[];switch(e.operation){case"AssumeRoleWithWebIdentity":{t.push(wn(e)),t.push(rt(e));break}default:t.push(Rn(e)),t.push(rt(e))}return t};Pn.defaultSTSHttpAuthSchemeProvider=vu(Eu.defaultEndpointResolver,Du,{"aws.auth#sigv4":Rn,"aws.auth#sigv4a":rt,"smithy.api#noAuth":wn});var Iu=(e)=>Object.assign(e,{stsClientCtor:Ru.STSClient});Pn.resolveStsAuthConfig=Iu;var Tu=(e)=>{let t=Pn.resolveStsAuthConfig(e),r=(0,En.resolveAwsSdkSigV4Config)(t),n=(0,En.resolveAwsSdkSigV4AConfig)(r);return Object.assign(n,{authSchemePreference:(0,ye.normalizeProvider)(e.authSchemePreference??[])})};Pn.resolveHttpAuthSchemeConfig=Tu});var it=E((In)=>{Object.defineProperty(In,"__esModule",{value:!0});In.commonParams=In.resolveClientEndpointParameters=void 0;var Ou=(e)=>{return Object.assign(e,{useDualstackEndpoint:e.useDualstackEndpoint??!1,useFipsEndpoint:e.useFipsEndpoint??!1,useGlobalEndpoint:e.useGlobalEndpoint??!1,defaultSigningName:"sts"})};In.resolveClientEndpointParameters=Ou;In.commonParams={UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}});var he=E((ct)=>{Object.defineProperty(ct,"__esModule",{value:!0});ct.STSServiceException=ct.__ServiceException=void 0;var Sn=k();Object.defineProperty(ct,"__ServiceException",{enumerable:!0,get:function(){return Sn.ServiceException}});class ut extends Sn.ServiceException{constructor(e){super(e);Object.setPrototypeOf(this,ut.prototype)}}ct.STSServiceException=ut});var bt=E((On)=>{Object.defineProperty(On,"__esModule",{value:!0});On.IDPCommunicationErrorException=On.InvalidIdentityTokenException=On.IDPRejectedClaimException=On.RegionDisabledException=On.PackedPolicyTooLargeException=On.MalformedPolicyDocumentException=On.ExpiredTokenException=void 0;var j=he();class lt extends j.STSServiceException{name="ExpiredTokenException";$fault="client";constructor(e){super({name:"ExpiredTokenException",$fault:"client",...e});Object.setPrototypeOf(this,lt.prototype)}}On.ExpiredTokenException=lt;class dt extends j.STSServiceException{name="MalformedPolicyDocumentException";$fault="client";constructor(e){super({name:"MalformedPolicyDocumentException",$fault:"client",...e});Object.setPrototypeOf(this,dt.prototype)}}On.MalformedPolicyDocumentException=dt;class pt extends j.STSServiceException{name="PackedPolicyTooLargeException";$fault="client";constructor(e){super({name:"PackedPolicyTooLargeException",$fault:"client",...e});Object.setPrototypeOf(this,pt.prototype)}}On.PackedPolicyTooLargeException=pt;class ft extends j.STSServiceException{name="RegionDisabledException";$fault="client";constructor(e){super({name:"RegionDisabledException",$fault:"client",...e});Object.setPrototypeOf(this,ft.prototype)}}On.RegionDisabledException=ft;class gt extends j.STSServiceException{name="IDPRejectedClaimException";$fault="client";constructor(e){super({name:"IDPRejectedClaimException",$fault:"client",...e});Object.setPrototypeOf(this,gt.prototype)}}On.IDPRejectedClaimException=gt;class yt extends j.STSServiceException{name="InvalidIdentityTokenException";$fault="client";constructor(e){super({name:"InvalidIdentityTokenException",$fault:"client",...e});Object.setPrototypeOf(this,yt.prototype)}}On.InvalidIdentityTokenException=yt;class ht extends j.STSServiceException{name="IDPCommunicationErrorException";$fault="client";$retryable={};constructor(e){super({name:"IDPCommunicationErrorException",$fault:"client",...e});Object.setPrototypeOf(this,ht.prototype)}}On.IDPCommunicationErrorException=ht});var Pt=E((Wn)=>{Object.defineProperty(Wn,"__esModule",{value:!0});Wn.AssumeRoleWithWebIdentity$=Wn.AssumeRole$=Wn.Tag$=Wn.ProvidedContext$=Wn.PolicyDescriptorType$=Wn.Credentials$=Wn.AssumeRoleWithWebIdentityResponse$=Wn.AssumeRoleWithWebIdentityRequest$=Wn.AssumeRoleResponse$=Wn.AssumeRoleRequest$=Wn.AssumedRoleUser$=Wn.errorTypeRegistries=Wn.RegionDisabledException$=Wn.PackedPolicyTooLargeException$=Wn.MalformedPolicyDocumentException$=Wn.InvalidIdentityTokenException$=Wn.IDPRejectedClaimException$=Wn.IDPCommunicationErrorException$=Wn.ExpiredTokenException$=Wn.STSServiceException$=void 0;var Mu="Arn",Fu="AccessKeyId",Lu="AssumeRole",Gu="AssumedRoleId",Wu="AssumeRoleRequest",Ku="AssumeRoleResponse",mt="AssumedRoleUser",zu="AssumeRoleWithWebIdentity",qu="AssumeRoleWithWebIdentityRequest",Vu="AssumeRoleWithWebIdentityResponse",ku="Audience",At="Credentials",Qu="ContextAssertion",xn="DurationSeconds",Bu="Expiration",Xu="ExternalId",Yu="ExpiredTokenException",Zu="IDPCommunicationErrorException",Ju="IDPRejectedClaimException",ec="InvalidIdentityTokenException",tc="Key",rc="MalformedPolicyDocumentException",jn="Policy",$n="PolicyArns",nc="ProviderArn",sc="ProvidedContexts",oc="ProvidedContextsListType",ac="ProvidedContext",ic="PolicyDescriptorType",uc="ProviderId",Hn="PackedPolicySize",cc="PackedPolicyTooLargeException",lc="Provider",Cn="RoleArn",dc="RegionDisabledException",Un="RoleSessionName",pc="SecretAccessKey",fc="SubjectFromWebIdentityToken",Et="SourceIdentity",gc="SerialNumber",yc="SessionToken",hc="Tags",bc="TokenCode",mc="TransitiveTagKeys",Ac="Tag",Ec="Value",Rc="WebIdentityToken",wc="arn",Pc="accessKeySecretType",$="awsQueryError",H="client",vc="clientTokenType",C="error",U="httpError",M="message",Dc="policyDescriptorListType",Mn="smithy.ts.sdk.synthetic.com.amazonaws.sts",Ic="tagListType",m="com.amazonaws.sts",Fn=Fe(),F=bt(),Tc=he(),Ln=Fn.TypeRegistry.for(Mn);Wn.STSServiceException$=[-3,Mn,"STSServiceException",0,[],[]];Ln.registerError(Wn.STSServiceException$,Tc.STSServiceException);var _=Fn.TypeRegistry.for(m);Wn.ExpiredTokenException$=[-3,m,Yu,{[$]:["ExpiredTokenException",400],[C]:H,[U]:400},[M],[0]];_.registerError(Wn.ExpiredTokenException$,F.ExpiredTokenException);Wn.IDPCommunicationErrorException$=[-3,m,Zu,{[$]:["IDPCommunicationError",400],[C]:H,[U]:400},[M],[0]];_.registerError(Wn.IDPCommunicationErrorException$,F.IDPCommunicationErrorException);Wn.IDPRejectedClaimException$=[-3,m,Ju,{[$]:["IDPRejectedClaim",403],[C]:H,[U]:403},[M],[0]];_.registerError(Wn.IDPRejectedClaimException$,F.IDPRejectedClaimException);Wn.InvalidIdentityTokenException$=[-3,m,ec,{[$]:["InvalidIdentityToken",400],[C]:H,[U]:400},[M],[0]];_.registerError(Wn.InvalidIdentityTokenException$,F.InvalidIdentityTokenException);Wn.MalformedPolicyDocumentException$=[-3,m,rc,{[$]:["MalformedPolicyDocument",400],[C]:H,[U]:400},[M],[0]];_.registerError(Wn.MalformedPolicyDocumentException$,F.MalformedPolicyDocumentException);Wn.PackedPolicyTooLargeException$=[-3,m,cc,{[$]:["PackedPolicyTooLarge",400],[C]:H,[U]:400},[M],[0]];_.registerError(Wn.PackedPolicyTooLargeException$,F.PackedPolicyTooLargeException);Wn.RegionDisabledException$=[-3,m,dc,{[$]:["RegionDisabledException",403],[C]:H,[U]:403},[M],[0]];_.registerError(Wn.RegionDisabledException$,F.RegionDisabledException);Wn.errorTypeRegistries=[Ln,_];var Sc=[0,m,Pc,8,0],_c=[0,m,vc,8,0];Wn.AssumedRoleUser$=[3,m,mt,0,[Gu,Mu],[0,0],2];Wn.AssumeRoleRequest$=[3,m,Wu,0,[Cn,Un,$n,jn,xn,hc,mc,Xu,gc,bc,Et,sc],[0,0,()=>Gn,0,1,()=>Nc,64,0,0,0,0,()=>Oc],2];Wn.AssumeRoleResponse$=[3,m,Ku,0,[At,mt,Hn,Et],[[()=>Wn.Credentials$,0],()=>Wn.AssumedRoleUser$,1,0]];Wn.AssumeRoleWithWebIdentityRequest$=[3,m,qu,0,[Cn,Un,Rc,uc,$n,jn,xn],[0,0,[()=>_c,0],0,()=>Gn,0,1],3];Wn.AssumeRoleWithWebIdentityResponse$=[3,m,Vu,0,[At,fc,mt,Hn,lc,ku,Et],[[()=>Wn.Credentials$,0],0,()=>Wn.AssumedRoleUser$,1,0,0,0]];Wn.Credentials$=[3,m,At,0,[Fu,pc,yc,Bu],[0,[()=>Sc,0],0,4],4];Wn.PolicyDescriptorType$=[3,m,ic,0,[wc],[0]];Wn.ProvidedContext$=[3,m,ac,0,[nc,Qu],[0,0]];Wn.Tag$=[3,m,Ac,0,[tc,Ec],[0,0],2];var Gn=[1,m,Dc,0,()=>Wn.PolicyDescriptorType$],Oc=[1,m,oc,0,()=>Wn.ProvidedContext$],Nc=[1,m,Ic,0,()=>Wn.Tag$];Wn.AssumeRole$=[9,m,Lu,0,()=>Wn.AssumeRoleRequest$,()=>Wn.AssumeRoleResponse$];Wn.AssumeRoleWithWebIdentity$=[9,m,zu,0,()=>Wn.AssumeRoleWithWebIdentityRequest$,()=>Wn.AssumeRoleWithWebIdentityResponse$]});var ls=E((us)=>{Object.defineProperty(us,"__esModule",{value:!0});us.getRuntimeConfig=void 0;var os=nt(),Uc=cr(),Mc=Ye(),Fc=ie(),Lc=k(),Gc=$c(),as=Cc(),is=Hc(),Wc=ot(),Kc=tt(),zc=Pt(),qc=(e)=>{return{apiVersion:"2011-06-15",base64Decoder:e?.base64Decoder??as.fromBase64,base64Encoder:e?.base64Encoder??as.toBase64,disableHostPrefix:e?.disableHostPrefix??!1,endpointProvider:e?.endpointProvider??Kc.defaultEndpointResolver,extensions:e?.extensions??[],httpAuthSchemeProvider:e?.httpAuthSchemeProvider??Wc.defaultSTSHttpAuthSchemeProvider,httpAuthSchemes:e?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:(t)=>t.getIdentityProvider("aws.auth#sigv4"),signer:new os.AwsSdkSigV4Signer},{schemeId:"aws.auth#sigv4a",identityProvider:(t)=>t.getIdentityProvider("aws.auth#sigv4a"),signer:new os.AwsSdkSigV4ASigner},{schemeId:"smithy.api#noAuth",identityProvider:(t)=>t.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),signer:new Fc.NoAuthSigner}],logger:e?.logger??new Lc.NoOpLogger,protocol:e?.protocol??Uc.AwsQueryProtocol,protocolSettings:e?.protocolSettings??{defaultNamespace:"com.amazonaws.sts",errorTypeRegistries:zc.errorTypeRegistries,xmlNamespace:"https://sts.amazonaws.com/doc/2011-06-15/",version:"2011-06-15",serviceTarget:"AWSSecurityTokenServiceV20110615"},serviceId:e?.serviceId??"STS",signerConstructor:e?.signerConstructor??Mc.SignatureV4MultiRegion,urlParser:e?.urlParser??Gc.parseUrl,utf8Decoder:e?.utf8Decoder??is.fromUtf8,utf8Encoder:e?.utf8Encoder??is.toUtf8}};us.getRuntimeConfig=qc});var As=E((bs)=>{Object.defineProperty(bs,"__esModule",{value:!0});bs.getRuntimeConfig=void 0;var tl=Qc(),rl=tl.__importDefault(Bc()),nl=Le(),be=nt(),ds=Xc(),me=ys(),sl=ie(),ol=Yc(),ps=hs(),O=Zc(),fs=Vc(),gs=k(),al=Jc(),il=el(),ul=kc(),cl=ls(),ll=(e)=>{(0,gs.emitWarningIfUnsupportedVersion)(process.version);let t=(0,il.resolveDefaultsModeConfig)(e),r=()=>t().then(gs.loadConfigsForDefaultMode),n=(0,cl.getRuntimeConfig)(e);(0,nl.emitWarningIfUnsupportedVersion)(process.version);let s={profile:e?.profile,logger:n.logger};return{...n,...e,runtime:"node",defaultsMode:t,authSchemePreference:e?.authSchemePreference??(0,O.loadConfig)(be.NODE_AUTH_SCHEME_PREFERENCE_OPTIONS,s),bodyLengthChecker:e?.bodyLengthChecker??al.calculateBodyLength,defaultUserAgentProvider:e?.defaultUserAgentProvider??(0,ds.createDefaultUserAgentProvider)({serviceId:n.serviceId,clientVersion:rl.default.version}),httpAuthSchemes:e?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:(o)=>o.getIdentityProvider("aws.auth#sigv4")||(async(a)=>await e.credentialDefaultProvider(a?.__config||{})()),signer:new be.AwsSdkSigV4Signer},{schemeId:"aws.auth#sigv4a",identityProvider:(o)=>o.getIdentityProvider("aws.auth#sigv4a"),signer:new be.AwsSdkSigV4ASigner},{schemeId:"smithy.api#noAuth",identityProvider:(o)=>o.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),signer:new sl.NoAuthSigner}],maxAttempts:e?.maxAttempts??(0,O.loadConfig)(ps.NODE_MAX_ATTEMPT_CONFIG_OPTIONS,e),region:e?.region??(0,O.loadConfig)(me.NODE_REGION_CONFIG_OPTIONS,{...me.NODE_REGION_CONFIG_FILE_OPTIONS,...s}),requestHandler:fs.NodeHttpHandler.create(e?.requestHandler??r),retryMode:e?.retryMode??(0,O.loadConfig)({...ps.NODE_RETRY_MODE_CONFIG_OPTIONS,default:async()=>(await r()).retryMode||ul.DEFAULT_RETRY_MODE},e),sha256:e?.sha256??ol.Hash.bind(null,"sha256"),sigv4aSigningRegionSet:e?.sigv4aSigningRegionSet??(0,O.loadConfig)(be.NODE_SIGV4A_CONFIG_OPTIONS,s),streamCollector:e?.streamCollector??fs.streamCollector,useDualstackEndpoint:e?.useDualstackEndpoint??(0,O.loadConfig)(me.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS,s),useFipsEndpoint:e?.useFipsEndpoint??(0,O.loadConfig)(me.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS,s),userAgentAppId:e?.userAgentAppId??(0,O.loadConfig)(ds.NODE_APP_ID_CONFIG_OPTIONS,s)}};bs.getRuntimeConfig=ll});var ws=E((Es)=>{Object.defineProperty(Es,"__esModule",{value:!0});Es.resolveHttpAuthRuntimeConfig=Es.getHttpAuthExtensionConfiguration=void 0;var dl=(e)=>{let{httpAuthSchemes:t,httpAuthSchemeProvider:r,credentials:n}=e;return{setHttpAuthScheme(s){let o=t.findIndex((a)=>a.schemeId===s.schemeId);if(o===-1)t.push(s);else t.splice(o,1,s)},httpAuthSchemes(){return t},setHttpAuthSchemeProvider(s){r=s},httpAuthSchemeProvider(){return r},setCredentials(s){n=s},credentials(){return n}}};Es.getHttpAuthExtensionConfiguration=dl;var pl=(e)=>{return{httpAuthSchemes:e.httpAuthSchemes(),httpAuthSchemeProvider:e.httpAuthSchemeProvider(),credentials:e.credentials()}};Es.resolveHttpAuthRuntimeConfig=pl});var Os=E((Ss)=>{Object.defineProperty(Ss,"__esModule",{value:!0});Ss.resolveRuntimeExtensions=void 0;var Ps=Ts(),vs=gl(),Ds=k(),Is=ws(),yl=(e,t)=>{let r=Object.assign((0,Ps.getAwsRegionExtensionConfiguration)(e),(0,Ds.getDefaultExtensionConfiguration)(e),(0,vs.getHttpHandlerExtensionConfiguration)(e),(0,Is.getHttpAuthExtensionConfiguration)(e));return t.forEach((n)=>n.configure(r)),Object.assign(e,(0,Ps.resolveAwsRegionExtensionConfiguration)(r),(0,Ds.resolveDefaultRuntimeConfig)(r),(0,vs.resolveHttpHandlerRuntimeConfig)(r),(0,Is.resolveHttpAuthRuntimeConfig)(r))};Ss.resolveRuntimeExtensions=yl});var at=E((Dt)=>{Object.defineProperty(Dt,"__esModule",{value:!0});Dt.STSClient=Dt.__Client=void 0;var Ns=hl(),Rl=bl(),wl=ml(),xs=Al(),Pl=ys(),vt=ie(),vl=Fe(),Dl=El(),Il=st(),js=hs(),Hs=k();Object.defineProperty(Dt,"__Client",{enumerable:!0,get:function(){return Hs.Client}});var $s=ot(),Tl=it(),Sl=As(),_l=Os();class Cs extends Hs.Client{config;constructor(...[e]){let t=(0,Sl.getRuntimeConfig)(e||{});super(t);this.initConfig=t;let r=(0,Tl.resolveClientEndpointParameters)(t),n=(0,xs.resolveUserAgentConfig)(r),s=(0,js.resolveRetryConfig)(n),o=(0,Pl.resolveRegionConfig)(s),a=(0,Ns.resolveHostHeaderConfig)(o),u=(0,Il.resolveEndpointConfig)(a),i=(0,$s.resolveHttpAuthSchemeConfig)(u),d=(0,_l.resolveRuntimeExtensions)(i,e?.extensions||[]);this.config=d,this.middlewareStack.use((0,vl.getSchemaSerdePlugin)(this.config)),this.middlewareStack.use((0,xs.getUserAgentPlugin)(this.config)),this.middlewareStack.use((0,js.getRetryPlugin)(this.config)),this.middlewareStack.use((0,Dl.getContentLengthPlugin)(this.config)),this.middlewareStack.use((0,Ns.getHostHeaderPlugin)(this.config)),this.middlewareStack.use((0,Rl.getLoggerPlugin)(this.config)),this.middlewareStack.use((0,wl.getRecursionDetectionPlugin)(this.config)),this.middlewareStack.use((0,vt.getHttpAuthSchemeEndpointRuleSetPlugin)(this.config,{httpAuthSchemeParametersProvider:$s.defaultSTSHttpAuthSchemeParametersProvider,identityProviderConfigProvider:async(l)=>new vt.DefaultIdentityProviderConfig({"aws.auth#sigv4":l.credentials,"aws.auth#sigv4a":l.credentials})})),this.middlewareStack.use((0,vt.getHttpSigningPlugin)(this.config))}destroy(){super.destroy()}}Dt.STSClient=Cs});var zl=E((I)=>{var L=at(),Ee=k(),Ms=st(),Fs=it(),Q=Pt(),Ae=bt(),It=Le(),Ol=Ts(),Nl=he();class Re extends Ee.Command.classBuilder().ep(Fs.commonParams).m(function(e,t,r,n){return[Ms.getEndpointPlugin(r,e.getEndpointParameterInstructions())]}).s("AWSSecurityTokenServiceV20110615","AssumeRole",{}).n("STSClient","AssumeRoleCommand").sc(Q.AssumeRole$).build(){}class we extends Ee.Command.classBuilder().ep(Fs.commonParams).m(function(e,t,r,n){return[Ms.getEndpointPlugin(r,e.getEndpointParameterInstructions())]}).s("AWSSecurityTokenServiceV20110615","AssumeRoleWithWebIdentity",{}).n("STSClient","AssumeRoleWithWebIdentityCommand").sc(Q.AssumeRoleWithWebIdentity$).build(){}var xl={AssumeRoleCommand:Re,AssumeRoleWithWebIdentityCommand:we};class Tt extends L.STSClient{}Ee.createAggregatedClient(xl,Tt);var Ls=(e)=>{if(typeof e?.Arn==="string"){let t=e.Arn.split(":");if(t.length>4&&t[4]!=="")return t[4]}return},Gs=async(e,t,r,n={})=>{let s=typeof e==="function"?await e():e,o=typeof t==="function"?await t():t,a="",u=s??o??(a=await Ol.stsRegionDefaultResolver(n)());return r?.debug?.("@aws-sdk/client-sts::resolveRegion","accepting first of:",`${s} (credential provider clientConfig)`,`${o} (contextual client)`,`${a} (STS default: AWS_REGION, profile region, or us-east-1)`),u},jl=(e,t)=>{let r,n;return async(s,o)=>{if(n=s,!r){let{logger:l=e?.parentClientConfig?.logger,profile:b=e?.parentClientConfig?.profile,region:y,requestHandler:h=e?.parentClientConfig?.requestHandler,credentialProviderLogger:R,userAgentAppId:g=e?.parentClientConfig?.userAgentAppId}=e,T=await Gs(y,e?.parentClientConfig?.region,R,{logger:l,profile:b}),Pe=!Ws(h);r=new t({...e,userAgentAppId:g,profile:b,credentialDefaultProvider:()=>async()=>n,region:T,requestHandler:Pe?h:void 0,logger:l})}let{Credentials:a,AssumedRoleUser:u}=await r.send(new Re(o));if(!a||!a.AccessKeyId||!a.SecretAccessKey)throw Error(`Invalid response from STS.assumeRole call with role ${o.RoleArn}`);let i=Ls(u),d={accessKeyId:a.AccessKeyId,secretAccessKey:a.SecretAccessKey,sessionToken:a.SessionToken,expiration:a.Expiration,...a.CredentialScope&&{credentialScope:a.CredentialScope},...i&&{accountId:i}};return It.setCredentialFeature(d,"CREDENTIALS_STS_ASSUME_ROLE","i"),d}},$l=(e,t)=>{let r;return async(n)=>{if(!r){let{logger:i=e?.parentClientConfig?.logger,profile:d=e?.parentClientConfig?.profile,region:l,requestHandler:b=e?.parentClientConfig?.requestHandler,credentialProviderLogger:y,userAgentAppId:h=e?.parentClientConfig?.userAgentAppId}=e,R=await Gs(l,e?.parentClientConfig?.region,y,{logger:i,profile:d}),g=!Ws(b);r=new t({...e,userAgentAppId:h,profile:d,region:R,requestHandler:g?b:void 0,logger:i})}let{Credentials:s,AssumedRoleUser:o}=await r.send(new we(n));if(!s||!s.AccessKeyId||!s.SecretAccessKey)throw Error(`Invalid response from STS.assumeRoleWithWebIdentity call with role ${n.RoleArn}`);let a=Ls(o),u={accessKeyId:s.AccessKeyId,secretAccessKey:s.SecretAccessKey,sessionToken:s.SessionToken,expiration:s.Expiration,...s.CredentialScope&&{credentialScope:s.CredentialScope},...a&&{accountId:a}};if(a)It.setCredentialFeature(u,"RESOLVED_ACCOUNT_ID","T");return It.setCredentialFeature(u,"CREDENTIALS_STS_ASSUME_ROLE_WEB_ID","k"),u}},Ws=(e)=>{return e?.metadata?.handlerProtocol==="h2"},Ks=(e,t)=>{if(!t)return e;else return class extends e{constructor(n){super(n);for(let s of t)this.middlewareStack.use(s)}}},zs=(e={},t)=>jl(e,Ks(L.STSClient,t)),qs=(e={},t)=>$l(e,Ks(L.STSClient,t)),Hl=(e)=>(t)=>e({roleAssumer:zs(t),roleAssumerWithWebIdentity:qs(t),...t});I.$Command=Ee.Command;I.STSServiceException=Nl.STSServiceException;I.AssumeRoleCommand=Re;I.AssumeRoleWithWebIdentityCommand=we;I.STS=Tt;I.decorateDefaultCredentialProvider=Hl;I.getDefaultRoleAssumer=zs;I.getDefaultRoleAssumerWithWebIdentity=qs;Object.prototype.hasOwnProperty.call(L,"__proto__")&&!Object.prototype.hasOwnProperty.call(I,"__proto__")&&Object.defineProperty(I,"__proto__",{enumerable:!0,value:L.__proto__});Object.keys(L).forEach(function(e){if(e!=="default"&&!Object.prototype.hasOwnProperty.call(I,e))I[e]=L[e]});Object.prototype.hasOwnProperty.call(Q,"__proto__")&&!Object.prototype.hasOwnProperty.call(I,"__proto__")&&Object.defineProperty(I,"__proto__",{enumerable:!0,value:Q.__proto__});Object.keys(Q).forEach(function(e){if(e!=="default"&&!Object.prototype.hasOwnProperty.call(I,e))I[e]=Q[e]});Object.prototype.hasOwnProperty.call(Ae,"__proto__")&&!Object.prototype.hasOwnProperty.call(I,"__proto__")&&Object.defineProperty(I,"__proto__",{enumerable:!0,value:Ae.__proto__});Object.keys(Ae).forEach(function(e){if(e!=="default"&&!Object.prototype.hasOwnProperty.call(I,e))I[e]=Ae[e]})});
|
|
25
|
+
export{zl as f7};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{sha as E,tha as F,xha as M}from"./cli-0.6.9-jfyk8906.mjs";import{apa as H,spa as N}from"./cli-0.6.9-cp5fabjc.mjs";N();M();function V(z){let C=Buffer.from(z,"base64url").toString("utf-8"),q=F(C);if(!q||typeof q!=="object"||!("version"in q)||q.version!==1)throw Error(`Unsupported work secret version: ${q&&typeof q==="object"&&"version"in q?q.version:"unknown"}`);let A=q;if(typeof A.session_ingress_token!=="string"||A.session_ingress_token.length===0)throw Error("Invalid work secret: missing or empty session_ingress_token");if(typeof A.api_base_url!=="string")throw Error("Invalid work secret: missing api_base_url");return q}function W(z,C){let q=new URL(z).hostname,A=q==="localhost"||q==="127.0.0.1",D=A?"ws":"wss",J=A?"v2":"v1",K=z.replace(/^https?:\/\//,"").replace(/\/+$/,"");return`${D}://${K}/${J}/session_ingress/ws/${C}`}function X(z,C){if(z===C)return!0;let q=z.slice(z.lastIndexOf("_")+1),A=C.slice(C.lastIndexOf("_")+1);return q.length>=4&&q===A}function Y(z,C){return`${z.replace(/\/+$/,"")}/v1/code/sessions/${C}`}async function Z(z,C){let q=await H.post(`${z}/worker/register`,{},{headers:{Authorization:`Bearer ${C}`,"Content-Type":"application/json","anthropic-version":"2023-06-01"},timeout:1e4}),A=q.data?.worker_epoch,D=typeof A==="string"?Number(A):A;if(typeof D!=="number"||!Number.isFinite(D)||!Number.isSafeInteger(D))throw Error(`registerWorker: invalid worker_epoch in response: ${E(q.data)}`);return D}
|
|
2
|
+
export{V as pb,W as qb,X as rb,Y as sb,Z as tb};
|