@claudiolabs/claudin 1.1.30 → 1.1.31
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunks/AgentTool-1.1.31-6e06310w.mjs +1 -0
- package/dist/chunks/App-1.1.31-bp57fthj.mjs +1 -0
- package/dist/chunks/ApproveApiKey-1.1.31-ptx7r5x2.mjs +1 -0
- package/dist/chunks/AutoModeOptInDialog-1.1.31-0d22j8k7.mjs +1 -0
- package/dist/chunks/BypassPermissionsModeDialog-1.1.31-v2cfafqt.mjs +1 -0
- package/dist/chunks/ClaudeMdExternalIncludesDialog-1.1.31-a8e8ar2n.mjs +1 -0
- package/dist/chunks/ConsoleOAuthFlow-1.1.31-zq76tmk2.mjs +1 -0
- package/dist/chunks/DiffDialog-1.1.31-r1mknqwv.mjs +6 -0
- package/dist/chunks/Doctor-1.1.31-t4n9k4nc.mjs +1 -0
- package/dist/chunks/ExplorerDialog-1.1.31-41a3c01z.mjs +6 -0
- package/dist/chunks/ITermBackend-1.1.31-y9f8hq45.mjs +1 -0
- package/dist/chunks/InvalidConfigDialog-1.1.31-xpdggxkf.mjs +1 -0
- package/dist/chunks/InvalidSettingsDialog-1.1.31-0bg1r1g6.mjs +1 -0
- package/dist/chunks/MigrationDialog-1.1.31-w8fpbc16.mjs +1 -0
- package/dist/chunks/Onboarding-1.1.31-23zjjspn.mjs +1 -0
- package/dist/chunks/ProviderManager-1.1.31-504qgqkc.mjs +1 -0
- package/dist/chunks/REPL-1.1.31-nyzbwycm.mjs +1 -0
- package/dist/chunks/ResumeConversation-1.1.31-dqkxr7bz.mjs +1 -0
- package/dist/chunks/SnapshotUpdateDialog-1.1.31-htqfbpbp.mjs +1 -0
- package/dist/chunks/TeleportProgress-1.1.31-27h2np2z.mjs +1 -0
- package/dist/chunks/TeleportRepoMismatchDialog-1.1.31-41nwynfk.mjs +1 -0
- package/dist/chunks/TeleportResumeWrapper-1.1.31-ea5827ce.mjs +1 -0
- package/dist/chunks/TmuxBackend-1.1.31-jvrhermf.mjs +9 -0
- package/dist/chunks/ToolSearchTool-1.1.31-c0sya3fj.mjs +1 -0
- package/dist/chunks/TrustDialog-1.1.31-28w5033t.mjs +1 -0
- package/dist/chunks/activeProvider-1.1.31-dbrkwgfw.mjs +1 -0
- package/dist/chunks/add-dir-1.1.31-r6x72g59.mjs +1 -0
- package/dist/chunks/agentTypes-1.1.31-kb6srdzm.mjs +1 -0
- package/dist/chunks/agents-1.1.31-1jetdejb.mjs +110 -0
- package/dist/chunks/agents-1.1.31-mfr4h93c.mjs +3 -0
- package/dist/chunks/api-1.1.31-hp3y91t9.mjs +1 -0
- package/dist/chunks/asciicast-1.1.31-t0xrwnqn.mjs +1 -0
- package/dist/chunks/auth-1.1.31-76rswxwe.mjs +1 -0
- package/dist/chunks/auth-1.1.31-yhv86kw0.mjs +1 -0
- package/dist/chunks/autoMode-1.1.31-qma18egk.mjs +52 -0
- package/dist/chunks/autoModeSetup-1.1.31-egrmqsva.mjs +44 -0
- package/dist/chunks/autoUpdater-1.1.31-417m125q.mjs +1 -0
- package/dist/chunks/backgroundHousekeeping-1.1.31-e5emh88x.mjs +1 -0
- package/dist/chunks/branch-1.1.31-bxrg1svq.mjs +4 -0
- package/dist/chunks/bridge-1.1.31-1rsj352r.mjs +2 -0
- package/dist/chunks/bridgeConfig-1.1.31-r9vnvw71.mjs +1 -0
- package/dist/chunks/bridgeEnabled-1.1.31-d9mxn4g0.mjs +1 -0
- package/dist/chunks/bridgeMain-1.1.31-7sf093b0.mjs +88 -0
- package/dist/chunks/bridgePointer-1.1.31-n1t53nem.mjs +1 -0
- package/dist/chunks/btw-1.1.31-skw1dhb5.mjs +1 -0
- package/dist/chunks/buddy-1.1.31-wtmggn5p.mjs +3 -0
- package/dist/chunks/cache-probe-1.1.31-pgss169p.mjs +21 -0
- package/dist/chunks/cacheStats-1.1.31-af3nkg2b.mjs +4 -0
- package/dist/chunks/caches-1.1.31-yvqtsfx3.mjs +1 -0
- package/dist/chunks/cd-1.1.31-9t47yj0z.mjs +3 -0
- package/dist/chunks/claudeDesktop-1.1.31-b7a99nfq.mjs +1 -0
- package/dist/chunks/claudemd-1.1.31-h72v8r12.mjs +1 -0
- package/dist/chunks/clear-1.1.31-ndp0q9t9.mjs +1 -0
- package/dist/chunks/clearTerminal-1.1.31-d6d2q7kn.mjs +1 -0
- package/dist/chunks/cli-1.1.31-03xjvk1e.mjs +3 -0
- package/dist/chunks/cli-1.1.31-0fnqd3bq.mjs +25 -0
- package/dist/chunks/cli-1.1.31-0mmyq6jx.mjs +2 -0
- package/dist/chunks/cli-1.1.31-0yagz4xw.mjs +2 -0
- package/dist/chunks/cli-1.1.31-1192t9cm.mjs +2 -0
- package/dist/chunks/cli-1.1.31-13cx7z8n.mjs +60 -0
- package/dist/chunks/cli-1.1.31-1dv9ay7v.mjs +2 -0
- package/dist/chunks/cli-1.1.31-1q4btmra.mjs +2 -0
- package/dist/chunks/cli-1.1.31-1qw0s3a8.mjs +2 -0
- package/dist/chunks/cli-1.1.31-1wxttnqr.mjs +2 -0
- package/dist/chunks/cli-1.1.31-2csxt0x3.mjs +2 -0
- package/dist/chunks/cli-1.1.31-2ffqcy85.mjs +2 -0
- package/dist/chunks/cli-1.1.31-2j93x895.mjs +24 -0
- package/dist/chunks/cli-1.1.31-2mfapzkq.mjs +2 -0
- package/dist/chunks/cli-1.1.31-2pdbmb7w.mjs +3 -0
- package/dist/chunks/cli-1.1.31-2zvm1tgs.mjs +2 -0
- package/dist/chunks/cli-1.1.31-312b3zf6.mjs +2 -0
- package/dist/chunks/cli-1.1.31-32mahfs2.mjs +2 -0
- package/dist/chunks/cli-1.1.31-3dy87m85.mjs +2 -0
- package/dist/chunks/cli-1.1.31-3ehzwm1n.mjs +2 -0
- package/dist/chunks/cli-1.1.31-3jzsv5dy.mjs +2 -0
- package/dist/chunks/cli-1.1.31-3s51hvv0.mjs +2 -0
- package/dist/chunks/cli-1.1.31-3zy5yd1t.mjs +133 -0
- package/dist/chunks/cli-1.1.31-44jshpbd.mjs +2 -0
- package/dist/chunks/cli-1.1.31-4awnya8e.mjs +2 -0
- package/dist/chunks/cli-1.1.31-4cp1xkaj.mjs +2 -0
- package/dist/chunks/cli-1.1.31-4ja5kbt5.mjs +4 -0
- package/dist/chunks/cli-1.1.31-4tneme0y.mjs +2 -0
- package/dist/chunks/cli-1.1.31-528vtf9a.mjs +2 -0
- package/dist/chunks/cli-1.1.31-52wt9w8w.mjs +15 -0
- package/dist/chunks/cli-1.1.31-556xnzb4.mjs +2 -0
- package/dist/chunks/cli-1.1.31-562nqgh7.mjs +2 -0
- package/dist/chunks/cli-1.1.31-58anwssk.mjs +2 -0
- package/dist/chunks/cli-1.1.31-5ab9cpbt.mjs +3 -0
- package/dist/chunks/cli-1.1.31-5kgkq6vm.mjs +2 -0
- package/dist/chunks/cli-1.1.31-5ma2m26d.mjs +2 -0
- package/dist/chunks/cli-1.1.31-5tgfa7xy.mjs +2 -0
- package/dist/chunks/cli-1.1.31-5xd2j6e7.mjs +2 -0
- package/dist/chunks/cli-1.1.31-612bpjx6.mjs +2 -0
- package/dist/chunks/cli-1.1.31-619zan4w.mjs +2 -0
- package/dist/chunks/cli-1.1.31-6m1k9909.mjs +2 -0
- package/dist/chunks/cli-1.1.31-6pxakyvg.mjs +2 -0
- package/dist/chunks/cli-1.1.31-6qm466ss.mjs +2 -0
- package/dist/chunks/cli-1.1.31-706cv7fx.mjs +2 -0
- package/dist/chunks/cli-1.1.31-7692zxpg.mjs +2 -0
- package/dist/chunks/cli-1.1.31-774jqp88.mjs +2 -0
- package/dist/chunks/cli-1.1.31-777381m0.mjs +34 -0
- package/dist/chunks/cli-1.1.31-7hmq6k3a.mjs +26 -0
- package/dist/chunks/cli-1.1.31-7wdp9ve5.mjs +3 -0
- package/dist/chunks/cli-1.1.31-8bcb1d1y.mjs +2 -0
- package/dist/chunks/cli-1.1.31-8esfq0f2.mjs +2 -0
- package/dist/chunks/cli-1.1.31-8h9zps1d.mjs +2 -0
- package/dist/chunks/cli-1.1.31-8sw4prf8.mjs +22 -0
- package/dist/chunks/cli-1.1.31-8syj0cmx.mjs +2 -0
- package/dist/chunks/cli-1.1.31-9493f46x.mjs +9 -0
- package/dist/chunks/cli-1.1.31-978dpg39.mjs +2 -0
- package/dist/chunks/cli-1.1.31-9a1gsrx2.mjs +24 -0
- package/dist/chunks/cli-1.1.31-9adq5rjd.mjs +2 -0
- package/dist/chunks/cli-1.1.31-9d5v98td.mjs +2 -0
- package/dist/chunks/cli-1.1.31-9e4vtbvh.mjs +3 -0
- package/dist/chunks/cli-1.1.31-9efpx64n.mjs +20 -0
- package/dist/chunks/cli-1.1.31-9gf60j86.mjs +2 -0
- package/dist/chunks/cli-1.1.31-9gzbwjb8.mjs +2 -0
- package/dist/chunks/cli-1.1.31-9m6ef5kb.mjs +2 -0
- package/dist/chunks/cli-1.1.31-9m6gmh2w.mjs +2 -0
- package/dist/chunks/cli-1.1.31-9x9gaa7g.mjs +2 -0
- package/dist/chunks/cli-1.1.31-a4vvez04.mjs +2 -0
- package/dist/chunks/cli-1.1.31-a5wav9hq.mjs +2 -0
- package/dist/chunks/cli-1.1.31-a611zwj5.mjs +10 -0
- package/dist/chunks/cli-1.1.31-adnn5x8c.mjs +16 -0
- package/dist/chunks/cli-1.1.31-afzdmcrq.mjs +2 -0
- package/dist/chunks/cli-1.1.31-ahbyaapz.mjs +12 -0
- package/dist/chunks/cli-1.1.31-aqm3wayg.mjs +2 -0
- package/dist/chunks/cli-1.1.31-b2pt6rsc.mjs +2 -0
- package/dist/chunks/cli-1.1.31-b7258j1y.mjs +2 -0
- package/dist/chunks/cli-1.1.31-b8rbgfhm.mjs +2 -0
- package/dist/chunks/cli-1.1.31-bdt0j0zj.mjs +4 -0
- package/dist/chunks/cli-1.1.31-bfsa3dvr.mjs +2 -0
- package/dist/chunks/cli-1.1.31-bx3e5rv6.mjs +3 -0
- package/dist/chunks/cli-1.1.31-c17g88x0.mjs +9 -0
- package/dist/chunks/cli-1.1.31-c9707zjx.mjs +63 -0
- package/dist/chunks/cli-1.1.31-can8wyac.mjs +2 -0
- package/dist/chunks/cli-1.1.31-cpay8r5h.mjs +2 -0
- package/dist/chunks/cli-1.1.31-cpeph4zm.mjs +6 -0
- package/dist/chunks/cli-1.1.31-d9sxj86f.mjs +2 -0
- package/dist/chunks/cli-1.1.31-dc4fq4s3.mjs +2 -0
- package/dist/chunks/cli-1.1.31-dctwr6q4.mjs +5 -0
- package/dist/chunks/cli-1.1.31-dcyx3536.mjs +39 -0
- package/dist/chunks/cli-1.1.31-dhecyw04.mjs +3 -0
- package/dist/chunks/cli-1.1.31-dmghye74.mjs +4 -0
- package/dist/chunks/cli-1.1.31-ek449yjc.mjs +6 -0
- package/dist/chunks/cli-1.1.31-emhqeb1g.mjs +2 -0
- package/dist/chunks/cli-1.1.31-eqfmzrxc.mjs +2 -0
- package/dist/chunks/cli-1.1.31-eqvc58gw.mjs +2 -0
- package/dist/chunks/cli-1.1.31-ewhwdszf.mjs +2 -0
- package/dist/chunks/cli-1.1.31-f1zfyp44.mjs +2 -0
- package/dist/chunks/cli-1.1.31-f2abkvxa.mjs +4 -0
- package/dist/chunks/cli-1.1.31-fbdr0297.mjs +2 -0
- package/dist/chunks/cli-1.1.31-fdjs93ba.mjs +2 -0
- package/dist/chunks/cli-1.1.31-fdk7yhs0.mjs +2 -0
- package/dist/chunks/cli-1.1.31-fjdb444f.mjs +7 -0
- package/dist/chunks/cli-1.1.31-fk787pkf.mjs +15 -0
- package/dist/chunks/cli-1.1.31-fpqqpyrw.mjs +3 -0
- package/dist/chunks/cli-1.1.31-fr8t4a7n.mjs +2 -0
- package/dist/chunks/cli-1.1.31-fy2x8k7r.mjs +2 -0
- package/dist/chunks/cli-1.1.31-g41zancj.mjs +3 -0
- package/dist/chunks/cli-1.1.31-g58b1jfa.mjs +5473 -0
- package/dist/chunks/cli-1.1.31-ggtvemxf.mjs +2 -0
- package/dist/chunks/cli-1.1.31-gk7te1jt.mjs +2 -0
- package/dist/chunks/cli-1.1.31-gq54djk0.mjs +2 -0
- package/dist/chunks/cli-1.1.31-h102y1at.mjs +8 -0
- package/dist/chunks/cli-1.1.31-h1sv3apa.mjs +4 -0
- package/dist/chunks/cli-1.1.31-h41m4yrw.mjs +2 -0
- package/dist/chunks/cli-1.1.31-h5a78vp8.mjs +2 -0
- package/dist/chunks/cli-1.1.31-hfdt80w2.mjs +50 -0
- package/dist/chunks/cli-1.1.31-hk88wxhm.mjs +2 -0
- package/dist/chunks/cli-1.1.31-hpxjvh3j.mjs +3 -0
- package/dist/chunks/cli-1.1.31-hvnwvzhh.mjs +58 -0
- package/dist/chunks/cli-1.1.31-j0fbn8aw.mjs +2 -0
- package/dist/chunks/cli-1.1.31-jfj1gvgy.mjs +2 -0
- package/dist/chunks/cli-1.1.31-jh2sb5nk.mjs +42 -0
- package/dist/chunks/cli-1.1.31-jnyr50hq.mjs +2 -0
- package/dist/chunks/cli-1.1.31-jwa8f70w.mjs +2 -0
- package/dist/chunks/cli-1.1.31-jyzz7q1c.mjs +2 -0
- package/dist/chunks/cli-1.1.31-k0zfy1nt.mjs +2 -0
- package/dist/chunks/cli-1.1.31-kfw3q4sp.mjs +133 -0
- package/dist/chunks/cli-1.1.31-kp8hq72m.mjs +2 -0
- package/dist/chunks/cli-1.1.31-kzh4darh.mjs +2 -0
- package/dist/chunks/cli-1.1.31-m5w2d13z.mjs +2 -0
- package/dist/chunks/cli-1.1.31-m9yqg6jg.mjs +2 -0
- package/dist/chunks/cli-1.1.31-mcekc48f.mjs +2 -0
- package/dist/chunks/cli-1.1.31-mtcbc6g3.mjs +4 -0
- package/dist/chunks/cli-1.1.31-n130x03f.mjs +2 -0
- package/dist/chunks/cli-1.1.31-n305h9qd.mjs +25 -0
- package/dist/chunks/cli-1.1.31-n4g6s1bz.mjs +2 -0
- package/dist/chunks/cli-1.1.31-n5vytp0f.mjs +2 -0
- package/dist/chunks/cli-1.1.31-nh2cfavp.mjs +2 -0
- package/dist/chunks/cli-1.1.31-njfyxwfr.mjs +2 -0
- package/dist/chunks/cli-1.1.31-nvecb8c6.mjs +2 -0
- package/dist/chunks/cli-1.1.31-nyvjx813.mjs +24 -0
- package/dist/chunks/cli-1.1.31-nyvz0ev8.mjs +5 -0
- package/dist/chunks/cli-1.1.31-p99fz46k.mjs +206 -0
- package/dist/chunks/cli-1.1.31-pb50hb6v.mjs +12 -0
- package/dist/chunks/cli-1.1.31-pg2ntz9b.mjs +17 -0
- package/dist/chunks/cli-1.1.31-pgde5349.mjs +2 -0
- package/dist/chunks/cli-1.1.31-pp98t7k8.mjs +2 -0
- package/dist/chunks/cli-1.1.31-ptvddvjv.mjs +2 -0
- package/dist/chunks/cli-1.1.31-pzz7j17y.mjs +3 -0
- package/dist/chunks/cli-1.1.31-q67trvk0.mjs +2 -0
- package/dist/chunks/cli-1.1.31-q6k8ems6.mjs +21 -0
- package/dist/chunks/cli-1.1.31-qj8vksz8.mjs +2 -0
- package/dist/chunks/cli-1.1.31-qq0sng13.mjs +2 -0
- package/dist/chunks/cli-1.1.31-qsftejzk.mjs +2 -0
- package/dist/chunks/cli-1.1.31-qv6x2hht.mjs +2 -0
- package/dist/chunks/cli-1.1.31-qyztdyg2.mjs +2 -0
- package/dist/chunks/cli-1.1.31-r5g0ns02.mjs +2 -0
- package/dist/chunks/cli-1.1.31-r7jps0tn.mjs +3 -0
- package/dist/chunks/cli-1.1.31-rqyqyvdn.mjs +2 -0
- package/dist/chunks/cli-1.1.31-rspa4dsq.mjs +6 -0
- package/dist/chunks/cli-1.1.31-rw3xn3tc.mjs +4 -0
- package/dist/chunks/cli-1.1.31-s1a6vw53.mjs +2 -0
- package/dist/chunks/cli-1.1.31-s1vgm3hb.mjs +2 -0
- package/dist/chunks/cli-1.1.31-s246tb6v.mjs +15 -0
- package/dist/chunks/cli-1.1.31-satbt91m.mjs +18 -0
- package/dist/chunks/cli-1.1.31-sc82f8hw.mjs +6 -0
- package/dist/chunks/cli-1.1.31-sn0x975f.mjs +24 -0
- package/dist/chunks/cli-1.1.31-sn2bmgwr.mjs +2 -0
- package/dist/chunks/cli-1.1.31-t2y2tkme.mjs +2 -0
- package/dist/chunks/cli-1.1.31-t6m64e0q.mjs +6 -0
- package/dist/chunks/cli-1.1.31-t96rrv1m.mjs +2 -0
- package/dist/chunks/cli-1.1.31-tc6xppyr.mjs +2 -0
- package/dist/chunks/cli-1.1.31-tctd36c8.mjs +2 -0
- package/dist/chunks/cli-1.1.31-thhdw5e1.mjs +2 -0
- package/dist/chunks/cli-1.1.31-v02fpzs5.mjs +2 -0
- package/dist/chunks/cli-1.1.31-v7nswcm8.mjs +2 -0
- package/dist/chunks/cli-1.1.31-var05xaf.mjs +2 -0
- package/dist/chunks/cli-1.1.31-vbch5rht.mjs +2 -0
- package/dist/chunks/cli-1.1.31-vf004w21.mjs +2 -0
- package/dist/chunks/cli-1.1.31-vhstdnfa.mjs +7 -0
- package/dist/chunks/cli-1.1.31-vphyv007.mjs +2 -0
- package/dist/chunks/cli-1.1.31-vpkbqj90.mjs +4 -0
- package/dist/chunks/cli-1.1.31-vr977n4j.mjs +2 -0
- package/dist/chunks/cli-1.1.31-w0vfcfhs.mjs +2 -0
- package/dist/chunks/cli-1.1.31-w225x38q.mjs +2 -0
- package/dist/chunks/cli-1.1.31-war7w6d7.mjs +2 -0
- package/dist/chunks/cli-1.1.31-wba64b2s.mjs +2 -0
- package/dist/chunks/cli-1.1.31-wfv9e9p4.mjs +2 -0
- package/dist/chunks/cli-1.1.31-wmt8ywr9.mjs +2 -0
- package/dist/chunks/cli-1.1.31-wnpf6e90.mjs +2 -0
- package/dist/chunks/cli-1.1.31-x1wr5k0p.mjs +2 -0
- package/dist/chunks/cli-1.1.31-x96s38b0.mjs +2 -0
- package/dist/chunks/cli-1.1.31-xqdypd2k.mjs +6 -0
- package/dist/chunks/cli-1.1.31-xv09f0k4.mjs +2 -0
- package/dist/chunks/cli-1.1.31-yte5f9f9.mjs +45 -0
- package/dist/chunks/cli-1.1.31-yz72mhbg.mjs +2 -0
- package/dist/chunks/cli-1.1.31-z3s1pnd3.mjs +1 -0
- package/dist/chunks/cli-1.1.31-z6qe8e42.mjs +2 -0
- package/dist/chunks/cli-1.1.31-z7hdz84q.mjs +17 -0
- package/dist/chunks/cli-1.1.31-zsjs5eq0.mjs +2 -0
- package/dist/chunks/cli-1.1.31-zvbpmw2y.mjs +2 -0
- package/dist/chunks/cli-1.1.31-zy7nrvt9.mjs +2 -0
- package/dist/chunks/cli-1.1.31-zzd4cheh.mjs +2 -0
- package/dist/chunks/client-1.1.31-3bn971t2.mjs +1 -0
- package/dist/chunks/color-1.1.31-n3q45hw4.mjs +1 -0
- package/dist/chunks/compact-1.1.31-zkekkcjq.mjs +3 -0
- package/dist/chunks/config-1.1.31-1t6yz96k.mjs +1 -0
- package/dist/chunks/config-1.1.31-enwx50r9.mjs +1 -0
- package/dist/chunks/constants-1.1.31-5peb81d1.mjs +1 -0
- package/dist/chunks/context-1.1.31-9crzemp8.mjs +1 -0
- package/dist/chunks/context-noninteractive-1.1.31-twqynyp7.mjs +1 -0
- package/dist/chunks/conversation-1.1.31-yw2es9kq.mjs +1 -0
- package/dist/chunks/copilotHeaders-1.1.31-axfr0ar5.mjs +1 -0
- package/dist/chunks/copy-1.1.31-y97hza01.mjs +9 -0
- package/dist/chunks/cost-1.1.31-wtp1fp62.mjs +1 -0
- package/dist/chunks/createSSHSession-1.1.31-tsfe2dea.mjs +1 -0
- package/dist/chunks/createSession-1.1.31-pddv01ds.mjs +1 -0
- package/dist/chunks/debug-1.1.31-5awffxcd.mjs +1 -0
- package/dist/chunks/defaultActionDeps-1.1.31-6a742vb3.mjs +1480 -0
- package/dist/chunks/desktop-1.1.31-zq54hfwy.mjs +2 -0
- package/dist/chunks/detectRepository-1.1.31-s6pe6c1x.mjs +1 -0
- package/dist/chunks/detection-1.1.31-zss1hfbq.mjs +1 -0
- package/dist/chunks/diff-1.1.31-ksj17xmk.mjs +1 -0
- package/dist/chunks/doctor-1.1.31-v4djfk2w.mjs +1 -0
- package/dist/chunks/doctorDiagnostic-1.1.31-gs3rsn7y.mjs +1 -0
- package/dist/chunks/earlyInput-1.1.31-s1vpzgtx.mjs +1 -0
- package/dist/chunks/effort-1.1.31-6z9vjdd8.mjs +13 -0
- package/dist/chunks/engine-1.1.31-rv1fs549.mjs +1 -0
- package/dist/chunks/envLessBridgeConfig-1.1.31-5p5f4zyz.mjs +1 -0
- package/dist/chunks/envUtils-1.1.31-ntcm9cr0.mjs +1 -0
- package/dist/chunks/environmentSelection-1.1.31-hh2weytc.mjs +1 -0
- package/dist/chunks/environments-1.1.31-yvgyx900.mjs +1 -0
- package/dist/chunks/errors-1.1.31-n434b94a.mjs +1 -0
- package/dist/chunks/exampleCommands-1.1.31-gntd6p22.mjs +1 -0
- package/dist/chunks/execFileNoThrow-1.1.31-s2n0jxqw.mjs +1 -0
- package/dist/chunks/exit-1.1.31-rgrjhztt.mjs +1 -0
- package/dist/chunks/explorer-1.1.31-cyken2c0.mjs +1 -0
- package/dist/chunks/export-1.1.31-nmjy9qp1.mjs +2 -0
- package/dist/chunks/fast-1.1.31-58c4aeze.mjs +1 -0
- package/dist/chunks/feedback-1.1.31-m0vj61dd.mjs +16 -0
- package/dist/chunks/git-1.1.31-9ytjvad9.mjs +1 -0
- package/dist/chunks/githubModelsCredentials-1.1.31-7pk651pz.mjs +1 -0
- package/dist/chunks/goal-1.1.31-2a9eh1dv.mjs +4 -0
- package/dist/chunks/headless-1.1.31-btcvy308.mjs +2 -0
- package/dist/chunks/heapdump-1.1.31-3d2namke.mjs +6 -0
- package/dist/chunks/help-1.1.31-sewrb4nb.mjs +1 -0
- package/dist/chunks/hookChains-1.1.31-72mrrs9j.mjs +3 -0
- package/dist/chunks/hooks-1.1.31-0gf2fwcn.mjs +1 -0
- package/dist/chunks/hooks-1.1.31-t1v6dwz6.mjs +79 -0
- package/dist/chunks/ide-1.1.31-rfvpxf98.mjs +3 -0
- package/dist/chunks/image-processor-napi-1.1.31-6m3111th.mjs +1 -0
- package/dist/chunks/import-1.1.31-n4khxgen.mjs +261 -0
- package/dist/chunks/inboundAttachments-1.1.31-js74nw49.mjs +1 -0
- package/dist/chunks/index-1.1.31-1d2w0stv.mjs +1 -0
- package/dist/chunks/index-1.1.31-7xyvb71n.mjs +1 -0
- package/dist/chunks/index-1.1.31-b35axgfq.mjs +1 -0
- package/dist/chunks/index-1.1.31-bb3ds6px.mjs +5 -0
- package/dist/chunks/index-1.1.31-d8kmfk8g.mjs +1 -0
- package/dist/chunks/index-1.1.31-djqjbcj1.mjs +1 -0
- package/dist/chunks/index-1.1.31-fbcpgjqr.mjs +1 -0
- package/dist/chunks/index-1.1.31-fzj8sx04.mjs +1 -0
- package/dist/chunks/index-1.1.31-h4jmtajm.mjs +9 -0
- package/dist/chunks/index-1.1.31-hxatxhrm.mjs +1 -0
- package/dist/chunks/index-1.1.31-jjp83m1j.mjs +1 -0
- package/dist/chunks/index-1.1.31-jk9pvxkr.mjs +1 -0
- package/dist/chunks/index-1.1.31-jy33bsc3.mjs +2 -0
- package/dist/chunks/index-1.1.31-kdnrzq4a.mjs +1 -0
- package/dist/chunks/index-1.1.31-kv3bfsq2.mjs +23 -0
- package/dist/chunks/index-1.1.31-mxjtqbfj.mjs +1 -0
- package/dist/chunks/index-1.1.31-p8xpgawg.mjs +1 -0
- package/dist/chunks/index-1.1.31-phw15bz8.mjs +1 -0
- package/dist/chunks/index-1.1.31-pr2zcv22.mjs +30 -0
- package/dist/chunks/index-1.1.31-q75y58jp.mjs +2 -0
- package/dist/chunks/index-1.1.31-qhsyqcg4.mjs +1 -0
- package/dist/chunks/index-1.1.31-tzvhzkcd.mjs +1 -0
- package/dist/chunks/index-1.1.31-wgdk68t3.mjs +9 -0
- package/dist/chunks/init-1.1.31-4ayzds5h.mjs +2 -0
- package/dist/chunks/initReplBridge-1.1.31-ebns690c.mjs +1 -0
- package/dist/chunks/ink-1.1.31-rx0229yp.mjs +1 -0
- package/dist/chunks/insights-1.1.31-t8z4k64x.mjs +870 -0
- package/dist/chunks/install-1.1.31-fvw0rbqj.mjs +1 -0
- package/dist/chunks/install-github-app-1.1.31-zmtxtda9.mjs +149 -0
- package/dist/chunks/install-slack-app-1.1.31-j04t1paw.mjs +1 -0
- package/dist/chunks/interactiveHelpers-1.1.31-xq2br8z8.mjs +1 -0
- package/dist/chunks/keybindings-1.1.31-a0dfh2gb.mjs +2 -0
- package/dist/chunks/knowledge-1.1.31-g087p4dy.mjs +2 -0
- package/dist/chunks/latestVersionCache-1.1.31-vyesmh7x.mjs +1 -0
- package/dist/chunks/loadAgentsDir-1.1.31-39mbd67g.mjs +1 -0
- package/dist/chunks/loadPluginHooks-1.1.31-7pnfkxj8.mjs +1 -0
- package/dist/chunks/log-1.1.31-75wjvmg7.mjs +1 -0
- package/dist/chunks/main-1.1.31-htavj2vh.mjs +1 -0
- package/dist/chunks/managedEnv-1.1.31-3t5j20s3.mjs +1 -0
- package/dist/chunks/mcp-1.1.31-g8q13cfk.mjs +1 -0
- package/dist/chunks/mcp-1.1.31-gnbrx51d.mjs +17 -0
- package/dist/chunks/mcp-1.1.31-tb2yw0fm.mjs +4 -0
- package/dist/chunks/mcpb-1.1.31-an4y7m57.mjs +1 -0
- package/dist/chunks/memory-1.1.31-6ebsap62.mjs +77 -0
- package/dist/chunks/model-1.1.31-dfs178qb.mjs +1 -0
- package/dist/chunks/model-1.1.31-yjsxjv0f.mjs +2 -0
- package/dist/chunks/node-1.1.31-4gqzhhpj.mjs +15 -0
- package/dist/chunks/node-1.1.31-bknsrjhq.mjs +1 -0
- package/dist/chunks/oauth-1.1.31-0dfgbykp.mjs +1 -0
- package/dist/chunks/openaiShim-1.1.31-bx5cgqc0.mjs +14 -0
- package/dist/chunks/output-style-1.1.31-fqg3pscb.mjs +1 -0
- package/dist/chunks/package-D2QZMRW7-1.1.31-tbwnz9re.mjs +1 -0
- package/dist/chunks/parseConnectUrl-1.1.31-htt07xve.mjs +1 -0
- package/dist/chunks/parser-1.1.31-22dqq9cd.mjs +1 -0
- package/dist/chunks/permissions-1.1.31-2jt71rmf.mjs +1 -0
- package/dist/chunks/permissions-1.1.31-8eevgx6v.mjs +3 -0
- package/dist/chunks/plan-1.1.31-sgds3thc.mjs +1 -0
- package/dist/chunks/plist-1.1.31-50ff60z2.mjs +1 -0
- package/dist/chunks/plugin-1.1.31-j5n91qc0.mjs +29 -0
- package/dist/chunks/pluginStartupCheck-1.1.31-28rvz0zj.mjs +1 -0
- package/dist/chunks/plugins-1.1.31-cq05wg0h.mjs +9 -0
- package/dist/chunks/preActionHook-1.1.31-xmrm67ge.mjs +2 -0
- package/dist/chunks/print-1.1.31-4n5d0cdk.mjs +57 -0
- package/dist/chunks/process-1.1.31-7c3jtep7.mjs +1 -0
- package/dist/chunks/processBashCommand-1.1.31-ycb3ehgr.mjs +1 -0
- package/dist/chunks/processSlashCommand-1.1.31-0bwjc7n4.mjs +9 -0
- package/dist/chunks/prompt-1.1.31-1krmkgep.mjs +1 -0
- package/dist/chunks/prompt-1.1.31-vsft6hz3.mjs +1 -0
- package/dist/chunks/prompts-1.1.31-jp2k44tp.mjs +1 -0
- package/dist/chunks/protocolHandler-1.1.31-yc5dejjn.mjs +13 -0
- package/dist/chunks/provider-1.1.31-sba30ytt.mjs +2 -0
- package/dist/chunks/providerProfiles-1.1.31-8g3p4ntd.mjs +1 -0
- package/dist/chunks/providerValidation-1.1.31-rnj0xtqw.mjs +6 -0
- package/dist/chunks/registerSubcommands-1.1.31-rtx2e9wp.mjs +26 -0
- package/dist/chunks/registry-1.1.31-ecyhakd2.mjs +1 -0
- package/dist/chunks/release-notes-1.1.31-gf017wax.mjs +5 -0
- package/dist/chunks/reload-plugins-1.1.31-de7agwmx.mjs +2 -0
- package/dist/chunks/remote-env-1.1.31-x3aaeh2d.mjs +1 -0
- package/dist/chunks/remoteBridgeCore-1.1.31-37k3bw33.mjs +1 -0
- package/dist/chunks/remoteSession-1.1.31-tkas2k4z.mjs +1 -0
- package/dist/chunks/rename-1.1.31-4q58stc8.mjs +1 -0
- package/dist/chunks/replBridgeHandle-1.1.31-64getkgv.mjs +1 -0
- package/dist/chunks/replLauncher-1.1.31-0n74v295.mjs +1 -0
- package/dist/chunks/resume-1.1.31-btzfzzf4.mjs +2 -0
- package/dist/chunks/rewind-1.1.31-9m2a508m.mjs +1 -0
- package/dist/chunks/rootOptions-1.1.31-bftj813f.mjs +1 -0
- package/dist/chunks/runWorkflowHeadless-1.1.31-tra2r0dx.mjs +10 -0
- package/dist/chunks/sandbox-adapter-1.1.31-6nyy2rag.mjs +1 -0
- package/dist/chunks/sandbox-toggle-1.1.31-h1n35f5k.mjs +1 -0
- package/dist/chunks/session-1.1.31-xb800b9s.mjs +2 -0
- package/dist/chunks/sessionFileAccessHooks-1.1.31-gkkyesrj.mjs +1 -0
- package/dist/chunks/sessionStorage-1.1.31-s7gez2t6.mjs +1 -0
- package/dist/chunks/settings-1.1.31-w7zfpg83.mjs +1 -0
- package/dist/chunks/setup-1.1.31-b6kjgetf.mjs +12 -0
- package/dist/chunks/sinks-1.1.31-g9n7r1nh.mjs +1 -0
- package/dist/chunks/skills-1.1.31-ag9r3asv.mjs +1 -0
- package/dist/chunks/startupProfiler-1.1.31-h19httmy.mjs +1 -0
- package/dist/chunks/startupUpdateCheck-1.1.31-f3g7de65.mjs +1 -0
- package/dist/chunks/state-1.1.31-tbc1c6c2.mjs +1 -0
- package/dist/chunks/stats-1.1.31-71xjrkax.mjs +1 -0
- package/dist/chunks/status-1.1.31-n65g11nc.mjs +1 -0
- package/dist/chunks/stickers-1.1.31-eze0atpf.mjs +1 -0
- package/dist/chunks/subprocessEnv-1.1.31-r788gbdf.mjs +1 -0
- package/dist/chunks/tasks-1.1.31-tbc0x51m.mjs +1 -0
- package/dist/chunks/teamHelpers-1.1.31-yt18sjr2.mjs +1 -0
- package/dist/chunks/teammateModeSnapshot-1.1.31-f3bgkc7m.mjs +1 -0
- package/dist/chunks/teleport-1.1.31-4mvcqr5j.mjs +1 -0
- package/dist/chunks/terminalSetup-1.1.31-y574v0gj.mjs +1 -0
- package/dist/chunks/theme-1.1.31-2nth8fxb.mjs +1 -0
- package/dist/chunks/thinkback-1.1.31-yt5309kx.mjs +1 -0
- package/dist/chunks/thinkback-play-1.1.31-n61vtr8q.mjs +1 -0
- package/dist/chunks/toolPool-1.1.31-2wrjcf13.mjs +1 -0
- package/dist/chunks/toolSearch-1.1.31-vr7hen30.mjs +1 -0
- package/dist/chunks/tools-1.1.31-xgrxwk7j.mjs +1 -0
- package/dist/chunks/trustedDevice-1.1.31-ad2f2kvj.mjs +1 -0
- package/dist/chunks/turndown.cjs-1.1.31-mtgg85tg.mjs +69 -0
- package/dist/chunks/types-1.1.31-ery244ea.mjs +1 -0
- package/dist/chunks/ultrareviewCommand-1.1.31-fs3fn2qp.mjs +4 -0
- package/dist/chunks/update-1.1.31-j79f7es2.mjs +72 -0
- package/dist/chunks/upload-1.1.31-ehqzz7x7.mjs +7 -0
- package/dist/chunks/upstreamproxy-1.1.31-z70ctdj3.mjs +14 -0
- package/dist/chunks/url-handler-napi-1.1.31-e0hbcnyw.mjs +1 -0
- package/dist/chunks/usage-1.1.31-qgmy1ktr.mjs +1 -0
- package/dist/chunks/util-1.1.31-jy81jvt3.mjs +1 -0
- package/dist/chunks/utils-1.1.31-3jpj59nn.mjs +1 -0
- package/dist/chunks/vim-1.1.31-wbbckx93.mjs +1 -0
- package/dist/chunks/watchLoop-1.1.31-v994wq2d.mjs +13 -0
- package/dist/chunks/watcher-1.1.31-zr0darq0.mjs +1 -0
- package/dist/chunks/wiki-1.1.31-7gcn31zm.mjs +132 -0
- package/dist/chunks/workflows-1.1.31-ek8twhyg.mjs +1 -0
- package/dist/chunks/worktree-1.1.31-krxr11er.mjs +1 -0
- package/dist/chunks/worktreeModeEnabled-1.1.31-m3t752mj.mjs +1 -0
- package/dist/chunks/wrapper-1.1.31-037s1v4h.mjs +7 -0
- package/dist/cli.mjs +2 -2
- package/package.json +9 -9
- package/dist/chunks/AgentTool-1.1.30-3wq8zzaa.mjs +0 -1
- package/dist/chunks/App-1.1.30-ywb53g2c.mjs +0 -1
- package/dist/chunks/ApproveApiKey-1.1.30-wtpe9n8e.mjs +0 -1
- package/dist/chunks/AssistantSessionChooser-1.1.30-776xks64.mjs +0 -1
- package/dist/chunks/AutoModeOptInDialog-1.1.30-bjm91hx0.mjs +0 -1
- package/dist/chunks/BypassPermissionsModeDialog-1.1.30-rcy7msd9.mjs +0 -1
- package/dist/chunks/ClaudeMdExternalIncludesDialog-1.1.30-bexsqxcb.mjs +0 -1
- package/dist/chunks/ConsoleOAuthFlow-1.1.30-jfhq3h4z.mjs +0 -1
- package/dist/chunks/DiffDialog-1.1.30-kqds97f2.mjs +0 -6
- package/dist/chunks/Doctor-1.1.30-48qzfckm.mjs +0 -1
- package/dist/chunks/ExplorerDialog-1.1.30-tfv4wc5m.mjs +0 -6
- package/dist/chunks/ITermBackend-1.1.30-z31ecx5v.mjs +0 -1
- package/dist/chunks/InvalidConfigDialog-1.1.30-f17w1kzx.mjs +0 -1
- package/dist/chunks/InvalidSettingsDialog-1.1.30-fzajgngq.mjs +0 -1
- package/dist/chunks/MigrationDialog-1.1.30-15c4h452.mjs +0 -1
- package/dist/chunks/Onboarding-1.1.30-xajg2p3r.mjs +0 -1
- package/dist/chunks/ProviderManager-1.1.30-8jrhxd1r.mjs +0 -1
- package/dist/chunks/REPL-1.1.30-74pzzw1d.mjs +0 -1
- package/dist/chunks/ResumeConversation-1.1.30-8bmshptz.mjs +0 -1
- package/dist/chunks/SnapshotUpdateDialog-1.1.30-v5fnwt30.mjs +0 -1
- package/dist/chunks/TeleportProgress-1.1.30-v55nsv7g.mjs +0 -1
- package/dist/chunks/TeleportRepoMismatchDialog-1.1.30-2hg56v1b.mjs +0 -1
- package/dist/chunks/TeleportResumeWrapper-1.1.30-r2hwd3a6.mjs +0 -1
- package/dist/chunks/TmuxBackend-1.1.30-y6hny4s2.mjs +0 -9
- package/dist/chunks/ToolSearchTool-1.1.30-cq18pvam.mjs +0 -1
- package/dist/chunks/TrustDialog-1.1.30-qp3cr0fk.mjs +0 -1
- package/dist/chunks/activeProvider-1.1.30-ydaqb760.mjs +0 -1
- package/dist/chunks/add-dir-1.1.30-gta8twv0.mjs +0 -1
- package/dist/chunks/agentTypes-1.1.30-rxcmv28v.mjs +0 -1
- package/dist/chunks/agents-1.1.30-d5hxfnnt.mjs +0 -3
- package/dist/chunks/agents-1.1.30-q3f25044.mjs +0 -110
- package/dist/chunks/api-1.1.30-30hng0e4.mjs +0 -1
- package/dist/chunks/asciicast-1.1.30-mhcedd5b.mjs +0 -1
- package/dist/chunks/assistant-1.1.30-1zxsr09t.mjs +0 -1
- package/dist/chunks/auth-1.1.30-mmymct98.mjs +0 -1
- package/dist/chunks/auth-1.1.30-ntfwzwxz.mjs +0 -1
- package/dist/chunks/autoMode-1.1.30-9jd1avyj.mjs +0 -52
- package/dist/chunks/autoModeSetup-1.1.30-8cnp296z.mjs +0 -44
- package/dist/chunks/autoUpdater-1.1.30-f0wbf5ha.mjs +0 -1
- package/dist/chunks/backgroundHousekeeping-1.1.30-b7t4y9th.mjs +0 -1
- package/dist/chunks/branch-1.1.30-x77nhthz.mjs +0 -4
- package/dist/chunks/bridge-1.1.30-scfmh172.mjs +0 -2
- package/dist/chunks/bridgeConfig-1.1.30-8hd92b6p.mjs +0 -1
- package/dist/chunks/bridgeEnabled-1.1.30-n5c6p8kd.mjs +0 -1
- package/dist/chunks/bridgeMain-1.1.30-9cpc29zx.mjs +0 -88
- package/dist/chunks/bridgePointer-1.1.30-gsa0eerc.mjs +0 -1
- package/dist/chunks/btw-1.1.30-gyh84rd1.mjs +0 -1
- package/dist/chunks/buddy-1.1.30-vzfs4xt1.mjs +0 -3
- package/dist/chunks/cache-probe-1.1.30-qjppzj5p.mjs +0 -21
- package/dist/chunks/cacheStats-1.1.30-w1c0ekr4.mjs +0 -4
- package/dist/chunks/caches-1.1.30-6rye5cdg.mjs +0 -1
- package/dist/chunks/cd-1.1.30-tn402589.mjs +0 -3
- package/dist/chunks/claudeDesktop-1.1.30-sm5ncwqz.mjs +0 -1
- package/dist/chunks/claudemd-1.1.30-36eyf63s.mjs +0 -1
- package/dist/chunks/clear-1.1.30-p5p9kp96.mjs +0 -1
- package/dist/chunks/clearTerminal-1.1.30-nrdembs6.mjs +0 -1
- package/dist/chunks/cli-1.1.30-053d5ph7.mjs +0 -2
- package/dist/chunks/cli-1.1.30-092dkm0p.mjs +0 -2
- package/dist/chunks/cli-1.1.30-0e0e9msg.mjs +0 -17
- package/dist/chunks/cli-1.1.30-0fz758j0.mjs +0 -2
- package/dist/chunks/cli-1.1.30-0qcyzbs1.mjs +0 -2
- package/dist/chunks/cli-1.1.30-0yafp3ky.mjs +0 -2
- package/dist/chunks/cli-1.1.30-1j4dyr5r.mjs +0 -2
- package/dist/chunks/cli-1.1.30-1k2bwved.mjs +0 -3
- package/dist/chunks/cli-1.1.30-1qczaqkt.mjs +0 -2
- package/dist/chunks/cli-1.1.30-1wfffyq2.mjs +0 -2
- package/dist/chunks/cli-1.1.30-1xmhk219.mjs +0 -2
- package/dist/chunks/cli-1.1.30-1ybfyckn.mjs +0 -2
- package/dist/chunks/cli-1.1.30-1zsgv3yp.mjs +0 -2
- package/dist/chunks/cli-1.1.30-2af3eeg6.mjs +0 -2
- package/dist/chunks/cli-1.1.30-2cmsx74f.mjs +0 -26
- package/dist/chunks/cli-1.1.30-2hw4vdpg.mjs +0 -2
- package/dist/chunks/cli-1.1.30-2pqs37e0.mjs +0 -3
- package/dist/chunks/cli-1.1.30-2y4yj9sd.mjs +0 -2
- package/dist/chunks/cli-1.1.30-2yd2af56.mjs +0 -50
- package/dist/chunks/cli-1.1.30-2zq3aea6.mjs +0 -2
- package/dist/chunks/cli-1.1.30-322advqh.mjs +0 -4
- package/dist/chunks/cli-1.1.30-3b1nw95m.mjs +0 -2
- package/dist/chunks/cli-1.1.30-3c6j35rs.mjs +0 -2
- package/dist/chunks/cli-1.1.30-3x86c2pa.mjs +0 -24
- package/dist/chunks/cli-1.1.30-489cr054.mjs +0 -2
- package/dist/chunks/cli-1.1.30-4d90v0pd.mjs +0 -6
- package/dist/chunks/cli-1.1.30-4kytbyxq.mjs +0 -15
- package/dist/chunks/cli-1.1.30-4t03vay7.mjs +0 -2
- package/dist/chunks/cli-1.1.30-4wqfr0ya.mjs +0 -2
- package/dist/chunks/cli-1.1.30-4zrfbe17.mjs +0 -2
- package/dist/chunks/cli-1.1.30-51kze0eh.mjs +0 -2
- package/dist/chunks/cli-1.1.30-569esepc.mjs +0 -60
- package/dist/chunks/cli-1.1.30-57b410qh.mjs +0 -25
- package/dist/chunks/cli-1.1.30-5cc6nada.mjs +0 -2
- package/dist/chunks/cli-1.1.30-5f76gnk2.mjs +0 -2
- package/dist/chunks/cli-1.1.30-5j2mdj81.mjs +0 -2
- package/dist/chunks/cli-1.1.30-5pn20fxz.mjs +0 -2
- package/dist/chunks/cli-1.1.30-5r9pakw5.mjs +0 -2
- package/dist/chunks/cli-1.1.30-63ndyxgm.mjs +0 -2
- package/dist/chunks/cli-1.1.30-6eaj3n76.mjs +0 -9
- package/dist/chunks/cli-1.1.30-6phpx599.mjs +0 -2
- package/dist/chunks/cli-1.1.30-6pp4z5px.mjs +0 -2
- package/dist/chunks/cli-1.1.30-7a064pfm.mjs +0 -2
- package/dist/chunks/cli-1.1.30-7bdj31x8.mjs +0 -2
- package/dist/chunks/cli-1.1.30-7dtpd1ra.mjs +0 -2
- package/dist/chunks/cli-1.1.30-7h45a0x6.mjs +0 -6
- package/dist/chunks/cli-1.1.30-7ma427qh.mjs +0 -8
- package/dist/chunks/cli-1.1.30-7q8f7mp7.mjs +0 -2
- package/dist/chunks/cli-1.1.30-84cemtwn.mjs +0 -4
- package/dist/chunks/cli-1.1.30-87zsgch6.mjs +0 -21
- package/dist/chunks/cli-1.1.30-8a5gwcde.mjs +0 -2
- package/dist/chunks/cli-1.1.30-8e36e2c1.mjs +0 -2
- package/dist/chunks/cli-1.1.30-8hcc4gax.mjs +0 -15
- package/dist/chunks/cli-1.1.30-8t3c3a4k.mjs +0 -20
- package/dist/chunks/cli-1.1.30-8vr9ea9g.mjs +0 -2
- package/dist/chunks/cli-1.1.30-8zyep40e.mjs +0 -2
- package/dist/chunks/cli-1.1.30-902jyjpx.mjs +0 -2
- package/dist/chunks/cli-1.1.30-917y0q4m.mjs +0 -2
- package/dist/chunks/cli-1.1.30-92t0b3hs.mjs +0 -2
- package/dist/chunks/cli-1.1.30-94vhzqcd.mjs +0 -2
- package/dist/chunks/cli-1.1.30-9685r12p.mjs +0 -2
- package/dist/chunks/cli-1.1.30-9h8mm4pg.mjs +0 -2
- package/dist/chunks/cli-1.1.30-9m8jc7as.mjs +0 -4
- package/dist/chunks/cli-1.1.30-9rn8qz9x.mjs +0 -2
- package/dist/chunks/cli-1.1.30-9s9qp1m7.mjs +0 -2
- package/dist/chunks/cli-1.1.30-a1phf5vm.mjs +0 -2
- package/dist/chunks/cli-1.1.30-a2ww16zh.mjs +0 -2
- package/dist/chunks/cli-1.1.30-a2xctbvc.mjs +0 -18
- package/dist/chunks/cli-1.1.30-amecp2v0.mjs +0 -3
- package/dist/chunks/cli-1.1.30-aqvjv0jh.mjs +0 -4
- package/dist/chunks/cli-1.1.30-aw93z4yt.mjs +0 -2
- package/dist/chunks/cli-1.1.30-b1mqmct7.mjs +0 -4
- package/dist/chunks/cli-1.1.30-bfqnz691.mjs +0 -2
- package/dist/chunks/cli-1.1.30-bgrp9j3q.mjs +0 -2
- package/dist/chunks/cli-1.1.30-bwdw42tf.mjs +0 -24
- package/dist/chunks/cli-1.1.30-bzjamz5p.mjs +0 -2
- package/dist/chunks/cli-1.1.30-c0b5kmhr.mjs +0 -2
- package/dist/chunks/cli-1.1.30-c2e2yeaj.mjs +0 -2
- package/dist/chunks/cli-1.1.30-c44kpd39.mjs +0 -2
- package/dist/chunks/cli-1.1.30-c70p43p6.mjs +0 -133
- package/dist/chunks/cli-1.1.30-c9xtenrd.mjs +0 -2
- package/dist/chunks/cli-1.1.30-ca1a9ntm.mjs +0 -2
- package/dist/chunks/cli-1.1.30-cb34mrvh.mjs +0 -2
- package/dist/chunks/cli-1.1.30-cgcdnarw.mjs +0 -2
- package/dist/chunks/cli-1.1.30-cjetc80p.mjs +0 -2
- package/dist/chunks/cli-1.1.30-cwc68erm.mjs +0 -2
- package/dist/chunks/cli-1.1.30-d3n6dp6r.mjs +0 -2
- package/dist/chunks/cli-1.1.30-d8chymja.mjs +0 -2
- package/dist/chunks/cli-1.1.30-d9sphwgb.mjs +0 -3
- package/dist/chunks/cli-1.1.30-dbbhdfn1.mjs +0 -2
- package/dist/chunks/cli-1.1.30-dv38qw87.mjs +0 -3
- package/dist/chunks/cli-1.1.30-dy1jvt4f.mjs +0 -2
- package/dist/chunks/cli-1.1.30-e0fcx44n.mjs +0 -2
- package/dist/chunks/cli-1.1.30-e15hq24m.mjs +0 -2
- package/dist/chunks/cli-1.1.30-eg5krttf.mjs +0 -2
- package/dist/chunks/cli-1.1.30-ehk76t59.mjs +0 -2
- package/dist/chunks/cli-1.1.30-em031y3s.mjs +0 -2
- package/dist/chunks/cli-1.1.30-endh0hmx.mjs +0 -2
- package/dist/chunks/cli-1.1.30-ensp6hjk.mjs +0 -2
- package/dist/chunks/cli-1.1.30-erqva8zn.mjs +0 -2
- package/dist/chunks/cli-1.1.30-etnn22zf.mjs +0 -2
- package/dist/chunks/cli-1.1.30-f6tarbyn.mjs +0 -2
- package/dist/chunks/cli-1.1.30-f8qnd0hw.mjs +0 -20
- package/dist/chunks/cli-1.1.30-f9cckkn6.mjs +0 -7
- package/dist/chunks/cli-1.1.30-f9tp1b8r.mjs +0 -6
- package/dist/chunks/cli-1.1.30-fa5djn9v.mjs +0 -2
- package/dist/chunks/cli-1.1.30-facztg9n.mjs +0 -133
- package/dist/chunks/cli-1.1.30-fct5wt67.mjs +0 -2
- package/dist/chunks/cli-1.1.30-fm4mj7wy.mjs +0 -2
- package/dist/chunks/cli-1.1.30-fpa799y4.mjs +0 -3
- package/dist/chunks/cli-1.1.30-fzan6qjf.mjs +0 -2
- package/dist/chunks/cli-1.1.30-g17zgmea.mjs +0 -3
- package/dist/chunks/cli-1.1.30-g3qd3ec3.mjs +0 -2
- package/dist/chunks/cli-1.1.30-g4c9mx6r.mjs +0 -2
- package/dist/chunks/cli-1.1.30-g9qsgq1r.mjs +0 -2
- package/dist/chunks/cli-1.1.30-gdmbygdz.mjs +0 -2
- package/dist/chunks/cli-1.1.30-gev0f31f.mjs +0 -24
- package/dist/chunks/cli-1.1.30-gk8x7f6m.mjs +0 -2
- package/dist/chunks/cli-1.1.30-gncy6j5b.mjs +0 -2
- package/dist/chunks/cli-1.1.30-gv4z21b9.mjs +0 -4
- package/dist/chunks/cli-1.1.30-gvp1pabq.mjs +0 -2
- package/dist/chunks/cli-1.1.30-h5yj1axw.mjs +0 -6
- package/dist/chunks/cli-1.1.30-h9pfkdf2.mjs +0 -2
- package/dist/chunks/cli-1.1.30-ha9qd4n4.mjs +0 -2
- package/dist/chunks/cli-1.1.30-he73pyqy.mjs +0 -2
- package/dist/chunks/cli-1.1.30-hncb22wm.mjs +0 -2
- package/dist/chunks/cli-1.1.30-hxy861gq.mjs +0 -2
- package/dist/chunks/cli-1.1.30-j29r8pgr.mjs +0 -4
- package/dist/chunks/cli-1.1.30-j2wahkcp.mjs +0 -6
- package/dist/chunks/cli-1.1.30-j46p2me4.mjs +0 -3
- package/dist/chunks/cli-1.1.30-jb34rbbt.mjs +0 -7
- package/dist/chunks/cli-1.1.30-jevxd0jk.mjs +0 -2
- package/dist/chunks/cli-1.1.30-jgxnrbme.mjs +0 -2
- package/dist/chunks/cli-1.1.30-jvqc1jfc.mjs +0 -2
- package/dist/chunks/cli-1.1.30-jyvb3jrk.mjs +0 -3
- package/dist/chunks/cli-1.1.30-kx2svwf6.mjs +0 -2
- package/dist/chunks/cli-1.1.30-kzbhw1mf.mjs +0 -2
- package/dist/chunks/cli-1.1.30-m5fx6y02.mjs +0 -2
- package/dist/chunks/cli-1.1.30-m5ta5zwh.mjs +0 -2
- package/dist/chunks/cli-1.1.30-m62yy9h8.mjs +0 -2
- package/dist/chunks/cli-1.1.30-mebteknr.mjs +0 -206
- package/dist/chunks/cli-1.1.30-mef66hvr.mjs +0 -10
- package/dist/chunks/cli-1.1.30-mgj06132.mjs +0 -2
- package/dist/chunks/cli-1.1.30-mpmg84pk.mjs +0 -3
- package/dist/chunks/cli-1.1.30-mz5a585j.mjs +0 -9
- package/dist/chunks/cli-1.1.30-n306djbd.mjs +0 -2
- package/dist/chunks/cli-1.1.30-naaxghkh.mjs +0 -2
- package/dist/chunks/cli-1.1.30-nhfsct38.mjs +0 -2
- package/dist/chunks/cli-1.1.30-p3m6d618.mjs +0 -2
- package/dist/chunks/cli-1.1.30-p63h2njx.mjs +0 -42
- package/dist/chunks/cli-1.1.30-p6bsj13y.mjs +0 -2
- package/dist/chunks/cli-1.1.30-pc2wp50b.mjs +0 -5504
- package/dist/chunks/cli-1.1.30-pc6nevmd.mjs +0 -2
- package/dist/chunks/cli-1.1.30-pez1sh7w.mjs +0 -2
- package/dist/chunks/cli-1.1.30-pg6jbgcq.mjs +0 -12
- package/dist/chunks/cli-1.1.30-pgx35gqd.mjs +0 -2
- package/dist/chunks/cli-1.1.30-pw08jvvr.mjs +0 -3
- package/dist/chunks/cli-1.1.30-pzp496y6.mjs +0 -2
- package/dist/chunks/cli-1.1.30-q00wdmf9.mjs +0 -2
- package/dist/chunks/cli-1.1.30-q51sf5gk.mjs +0 -2
- package/dist/chunks/cli-1.1.30-q8sd13v9.mjs +0 -2
- package/dist/chunks/cli-1.1.30-q8xgmv1x.mjs +0 -39
- package/dist/chunks/cli-1.1.30-qcwzchrc.mjs +0 -2
- package/dist/chunks/cli-1.1.30-qdnzwgr7.mjs +0 -2
- package/dist/chunks/cli-1.1.30-qjdmnkfj.mjs +0 -2
- package/dist/chunks/cli-1.1.30-qm4vn98q.mjs +0 -2
- package/dist/chunks/cli-1.1.30-qn71nvqn.mjs +0 -2
- package/dist/chunks/cli-1.1.30-qykdr3bk.mjs +0 -2
- package/dist/chunks/cli-1.1.30-r4ap6bq3.mjs +0 -4
- package/dist/chunks/cli-1.1.30-rdbwn1xc.mjs +0 -2
- package/dist/chunks/cli-1.1.30-rdgv4qpw.mjs +0 -2
- package/dist/chunks/cli-1.1.30-s27erhy7.mjs +0 -2
- package/dist/chunks/cli-1.1.30-s2b0zbj0.mjs +0 -1
- package/dist/chunks/cli-1.1.30-s7f7x42j.mjs +0 -2
- package/dist/chunks/cli-1.1.30-sdxgwxfm.mjs +0 -2
- package/dist/chunks/cli-1.1.30-sgm7bcet.mjs +0 -58
- package/dist/chunks/cli-1.1.30-sr3wnzt7.mjs +0 -17
- package/dist/chunks/cli-1.1.30-syea4bx7.mjs +0 -2
- package/dist/chunks/cli-1.1.30-t27wxks6.mjs +0 -6
- package/dist/chunks/cli-1.1.30-tc8vq728.mjs +0 -15
- package/dist/chunks/cli-1.1.30-tcz89gqa.mjs +0 -2
- package/dist/chunks/cli-1.1.30-tt85hxby.mjs +0 -25
- package/dist/chunks/cli-1.1.30-ty0pw373.mjs +0 -24
- package/dist/chunks/cli-1.1.30-vcexen3n.mjs +0 -2
- package/dist/chunks/cli-1.1.30-vda14n5e.mjs +0 -2
- package/dist/chunks/cli-1.1.30-vf6wrqmh.mjs +0 -2
- package/dist/chunks/cli-1.1.30-vhh5kt6v.mjs +0 -2
- package/dist/chunks/cli-1.1.30-vrgnzjd2.mjs +0 -2
- package/dist/chunks/cli-1.1.30-w9wdamqc.mjs +0 -34
- package/dist/chunks/cli-1.1.30-wfs29rd9.mjs +0 -12
- package/dist/chunks/cli-1.1.30-wgmdrp34.mjs +0 -2
- package/dist/chunks/cli-1.1.30-wjx6yhry.mjs +0 -2
- package/dist/chunks/cli-1.1.30-wmpgbhw0.mjs +0 -16
- package/dist/chunks/cli-1.1.30-x76str7r.mjs +0 -3
- package/dist/chunks/cli-1.1.30-x8wzmxay.mjs +0 -2
- package/dist/chunks/cli-1.1.30-x960htw5.mjs +0 -2
- package/dist/chunks/cli-1.1.30-xhk0n48x.mjs +0 -2
- package/dist/chunks/cli-1.1.30-xqb55m51.mjs +0 -2
- package/dist/chunks/cli-1.1.30-xrrzhx6s.mjs +0 -5
- package/dist/chunks/cli-1.1.30-xxvagrpc.mjs +0 -2
- package/dist/chunks/cli-1.1.30-y1pn2vb5.mjs +0 -2
- package/dist/chunks/cli-1.1.30-ycv7a9hg.mjs +0 -2
- package/dist/chunks/cli-1.1.30-ygdwz4ed.mjs +0 -4
- package/dist/chunks/cli-1.1.30-yt59tc1t.mjs +0 -2
- package/dist/chunks/cli-1.1.30-yw5qpt76.mjs +0 -2
- package/dist/chunks/cli-1.1.30-yy92v8yq.mjs +0 -63
- package/dist/chunks/cli-1.1.30-z1e7k65a.mjs +0 -5
- package/dist/chunks/cli-1.1.30-z9xfs5zq.mjs +0 -2
- package/dist/chunks/cli-1.1.30-zfz29t3v.mjs +0 -3
- package/dist/chunks/cli-1.1.30-zj3nk96z.mjs +0 -2
- package/dist/chunks/cli-1.1.30-zm2e2zvb.mjs +0 -2
- package/dist/chunks/cli-1.1.30-zpss0nht.mjs +0 -3
- package/dist/chunks/cli-1.1.30-zxkfqcvj.mjs +0 -2
- package/dist/chunks/cli-1.1.30-zych8w4z.mjs +0 -45
- package/dist/chunks/client-1.1.30-6xd07jrd.mjs +0 -1
- package/dist/chunks/color-1.1.30-yhxh49s0.mjs +0 -1
- package/dist/chunks/compact-1.1.30-wxxb111z.mjs +0 -3
- package/dist/chunks/config-1.1.30-4gdp5w7v.mjs +0 -1
- package/dist/chunks/config-1.1.30-s02sv9vf.mjs +0 -1
- package/dist/chunks/constants-1.1.30-g1xm727k.mjs +0 -1
- package/dist/chunks/context-1.1.30-pepgc836.mjs +0 -1
- package/dist/chunks/context-noninteractive-1.1.30-ahdmm09h.mjs +0 -1
- package/dist/chunks/conversation-1.1.30-93marv3a.mjs +0 -1
- package/dist/chunks/copilotHeaders-1.1.30-ypx3j03s.mjs +0 -1
- package/dist/chunks/copy-1.1.30-bsfx33za.mjs +0 -9
- package/dist/chunks/cost-1.1.30-rhgx2a0h.mjs +0 -1
- package/dist/chunks/createSSHSession-1.1.30-p5qve4c1.mjs +0 -1
- package/dist/chunks/createSession-1.1.30-rwvvv9na.mjs +0 -1
- package/dist/chunks/debug-1.1.30-j1zw0q5b.mjs +0 -1
- package/dist/chunks/defaultActionDeps-1.1.30-5gkcnqp5.mjs +0 -1481
- package/dist/chunks/desktop-1.1.30-rwbfgek7.mjs +0 -1
- package/dist/chunks/detectRepository-1.1.30-2xwvggy6.mjs +0 -1
- package/dist/chunks/detection-1.1.30-kkar89w6.mjs +0 -1
- package/dist/chunks/diff-1.1.30-t1r0x9g4.mjs +0 -1
- package/dist/chunks/doctor-1.1.30-cvqts45f.mjs +0 -1
- package/dist/chunks/doctorDiagnostic-1.1.30-smg0046q.mjs +0 -1
- package/dist/chunks/earlyInput-1.1.30-cpx4e858.mjs +0 -1
- package/dist/chunks/effort-1.1.30-jdxyeqz7.mjs +0 -13
- package/dist/chunks/engine-1.1.30-8qhtasfe.mjs +0 -1
- package/dist/chunks/envLessBridgeConfig-1.1.30-jnz4sy6x.mjs +0 -1
- package/dist/chunks/envUtils-1.1.30-y5dyaydm.mjs +0 -1
- package/dist/chunks/environmentSelection-1.1.30-w1z47qad.mjs +0 -1
- package/dist/chunks/environments-1.1.30-sjscvfn9.mjs +0 -1
- package/dist/chunks/errors-1.1.30-7cmbc98j.mjs +0 -1
- package/dist/chunks/exampleCommands-1.1.30-jx9hvt2q.mjs +0 -1
- package/dist/chunks/execFileNoThrow-1.1.30-dqrsra7k.mjs +0 -1
- package/dist/chunks/exit-1.1.30-m2yzbcth.mjs +0 -1
- package/dist/chunks/explorer-1.1.30-5tat30es.mjs +0 -1
- package/dist/chunks/export-1.1.30-545a0v8x.mjs +0 -2
- package/dist/chunks/extra-usage-1.1.30-5k9b4t6b.mjs +0 -1
- package/dist/chunks/extra-usage-noninteractive-1.1.30-h5fqbtg3.mjs +0 -1
- package/dist/chunks/fast-1.1.30-91wr1vy4.mjs +0 -1
- package/dist/chunks/feedback-1.1.30-36xrb399.mjs +0 -14
- package/dist/chunks/firstPartyEventLogger-1.1.30-be1ke8r3.mjs +0 -1
- package/dist/chunks/git-1.1.30-sxa8xf85.mjs +0 -1
- package/dist/chunks/githubModelsCredentials-1.1.30-m7a8kdwg.mjs +0 -1
- package/dist/chunks/goal-1.1.30-71sj2735.mjs +0 -4
- package/dist/chunks/growthbook-1.1.30-rx44zvrq.mjs +0 -1
- package/dist/chunks/headless-1.1.30-h98t9mfb.mjs +0 -2
- package/dist/chunks/heapdump-1.1.30-82m1rvjw.mjs +0 -6
- package/dist/chunks/help-1.1.30-vnsg1001.mjs +0 -1
- package/dist/chunks/hookChains-1.1.30-tc5ff3xr.mjs +0 -3
- package/dist/chunks/hooks-1.1.30-2sctf45c.mjs +0 -79
- package/dist/chunks/hooks-1.1.30-707b390t.mjs +0 -1
- package/dist/chunks/ide-1.1.30-e8neepsj.mjs +0 -3
- package/dist/chunks/image-processor-napi-1.1.30-gcqgfeec.mjs +0 -1
- package/dist/chunks/import-1.1.30-g0p9rj63.mjs +0 -261
- package/dist/chunks/inboundAttachments-1.1.30-a5p4ftqg.mjs +0 -1
- package/dist/chunks/index-1.1.30-00d73fwg.mjs +0 -1
- package/dist/chunks/index-1.1.30-0sdck5q1.mjs +0 -9
- package/dist/chunks/index-1.1.30-38597fv3.mjs +0 -5
- package/dist/chunks/index-1.1.30-3z58evcj.mjs +0 -1
- package/dist/chunks/index-1.1.30-5k081eyt.mjs +0 -1
- package/dist/chunks/index-1.1.30-8n15b4e3.mjs +0 -2
- package/dist/chunks/index-1.1.30-9nx8fm72.mjs +0 -1
- package/dist/chunks/index-1.1.30-9zfyk995.mjs +0 -23
- package/dist/chunks/index-1.1.30-ba27qy75.mjs +0 -1
- package/dist/chunks/index-1.1.30-cddndqaa.mjs +0 -1
- package/dist/chunks/index-1.1.30-cnbcr7zp.mjs +0 -1
- package/dist/chunks/index-1.1.30-f65yg5kz.mjs +0 -9
- package/dist/chunks/index-1.1.30-fwvhky1a.mjs +0 -1
- package/dist/chunks/index-1.1.30-hmnpjmd5.mjs +0 -1
- package/dist/chunks/index-1.1.30-nemv1gaj.mjs +0 -1
- package/dist/chunks/index-1.1.30-pnpy7v0s.mjs +0 -1
- package/dist/chunks/index-1.1.30-q4x054c8.mjs +0 -2
- package/dist/chunks/index-1.1.30-racdqjba.mjs +0 -1
- package/dist/chunks/index-1.1.30-scb66j47.mjs +0 -1
- package/dist/chunks/index-1.1.30-tfz6950h.mjs +0 -30
- package/dist/chunks/index-1.1.30-tx381qq5.mjs +0 -1
- package/dist/chunks/index-1.1.30-w4zhj1qd.mjs +0 -1
- package/dist/chunks/index-1.1.30-xxh224ea.mjs +0 -1
- package/dist/chunks/init-1.1.30-txzpz2vm.mjs +0 -1
- package/dist/chunks/initReplBridge-1.1.30-hkrhwfr3.mjs +0 -1
- package/dist/chunks/ink-1.1.30-av1t4b54.mjs +0 -1
- package/dist/chunks/insights-1.1.30-nbs0zndp.mjs +0 -870
- package/dist/chunks/install-1.1.30-kd3vnaat.mjs +0 -1
- package/dist/chunks/install-github-app-1.1.30-ea78ytf6.mjs +0 -149
- package/dist/chunks/install-slack-app-1.1.30-v2q1py01.mjs +0 -1
- package/dist/chunks/instrumentation-1.1.30-20686d7h.mjs +0 -1
- package/dist/chunks/interactiveHelpers-1.1.30-rd0zzjyp.mjs +0 -1
- package/dist/chunks/keybindings-1.1.30-157aap7w.mjs +0 -2
- package/dist/chunks/knowledge-1.1.30-4mcx1txk.mjs +0 -2
- package/dist/chunks/latestVersionCache-1.1.30-65qvjpys.mjs +0 -1
- package/dist/chunks/loadAgentsDir-1.1.30-nfrca2zv.mjs +0 -1
- package/dist/chunks/loadPluginHooks-1.1.30-wa8regkc.mjs +0 -1
- package/dist/chunks/log-1.1.30-nh81h0jz.mjs +0 -1
- package/dist/chunks/main-1.1.30-87zf4enf.mjs +0 -1
- package/dist/chunks/managedEnv-1.1.30-p38nd6r6.mjs +0 -1
- package/dist/chunks/mcp-1.1.30-egynhffm.mjs +0 -17
- package/dist/chunks/mcp-1.1.30-gaz9mgmq.mjs +0 -4
- package/dist/chunks/mcp-1.1.30-r6q89d8c.mjs +0 -1
- package/dist/chunks/mcpb-1.1.30-qxpx83j6.mjs +0 -1
- package/dist/chunks/memory-1.1.30-72gbfb3b.mjs +0 -77
- package/dist/chunks/model-1.1.30-7nsbqqvm.mjs +0 -2
- package/dist/chunks/model-1.1.30-f7d6dbt2.mjs +0 -1
- package/dist/chunks/node-1.1.30-nbnhkya6.mjs +0 -15
- package/dist/chunks/node-1.1.30-vaaf7x0g.mjs +0 -1
- package/dist/chunks/oauth-1.1.30-g201gbyg.mjs +0 -1
- package/dist/chunks/openaiShim-1.1.30-rz4xax1e.mjs +0 -14
- package/dist/chunks/output-style-1.1.30-ms4eck90.mjs +0 -1
- package/dist/chunks/package-D2QZMRW7-1.1.30-08c7mgpt.mjs +0 -1
- package/dist/chunks/parseConnectUrl-1.1.30-bd7ade4m.mjs +0 -1
- package/dist/chunks/parser-1.1.30-qe7n0vnw.mjs +0 -1
- package/dist/chunks/passes-1.1.30-3cz64bpa.mjs +0 -1
- package/dist/chunks/permissions-1.1.30-28z7ax7g.mjs +0 -3
- package/dist/chunks/permissions-1.1.30-vgtb4qf9.mjs +0 -1
- package/dist/chunks/plan-1.1.30-s865r5b5.mjs +0 -1
- package/dist/chunks/plist-1.1.30-pxa62mce.mjs +0 -1
- package/dist/chunks/plugin-1.1.30-6apj9sf8.mjs +0 -29
- package/dist/chunks/pluginStartupCheck-1.1.30-gmcab9kx.mjs +0 -1
- package/dist/chunks/plugins-1.1.30-40c7sagf.mjs +0 -9
- package/dist/chunks/preActionHook-1.1.30-q2g48qsk.mjs +0 -2
- package/dist/chunks/print-1.1.30-drvg0v0c.mjs +0 -57
- package/dist/chunks/process-1.1.30-f6y2msx6.mjs +0 -1
- package/dist/chunks/processBashCommand-1.1.30-5bzgcejg.mjs +0 -1
- package/dist/chunks/processSlashCommand-1.1.30-2bwd1kpt.mjs +0 -9
- package/dist/chunks/prompt-1.1.30-9rbbx5vr.mjs +0 -1
- package/dist/chunks/prompt-1.1.30-phmv317m.mjs +0 -1
- package/dist/chunks/prompts-1.1.30-1myv5ewh.mjs +0 -1
- package/dist/chunks/protocolHandler-1.1.30-d6jkd0dk.mjs +0 -13
- package/dist/chunks/provider-1.1.30-cwkzb2t8.mjs +0 -2
- package/dist/chunks/providerProfiles-1.1.30-qe0y7b6e.mjs +0 -1
- package/dist/chunks/providerValidation-1.1.30-rzg2nkx3.mjs +0 -6
- package/dist/chunks/rate-limit-options-1.1.30-4q04y9f7.mjs +0 -1
- package/dist/chunks/registerSubcommands-1.1.30-k3ar1dyg.mjs +0 -26
- package/dist/chunks/registry-1.1.30-epdyxcsa.mjs +0 -1
- package/dist/chunks/release-notes-1.1.30-k11yp5hh.mjs +0 -5
- package/dist/chunks/reload-plugins-1.1.30-n7qhqqr3.mjs +0 -2
- package/dist/chunks/remote-env-1.1.30-f8e03jpx.mjs +0 -1
- package/dist/chunks/remoteBridgeCore-1.1.30-fqankvvx.mjs +0 -1
- package/dist/chunks/remoteSession-1.1.30-fc5x1bz4.mjs +0 -1
- package/dist/chunks/rename-1.1.30-vw8eyfha.mjs +0 -1
- package/dist/chunks/replBridgeHandle-1.1.30-bagtg7fm.mjs +0 -1
- package/dist/chunks/replLauncher-1.1.30-318vaq80.mjs +0 -1
- package/dist/chunks/resume-1.1.30-jrj1wpvj.mjs +0 -2
- package/dist/chunks/rewind-1.1.30-z97mdn25.mjs +0 -1
- package/dist/chunks/rootOptions-1.1.30-ybrgmmyy.mjs +0 -1
- package/dist/chunks/runWorkflowHeadless-1.1.30-w3gn8w75.mjs +0 -10
- package/dist/chunks/sandbox-adapter-1.1.30-4rd9w5by.mjs +0 -1
- package/dist/chunks/sandbox-toggle-1.1.30-zmtfq25w.mjs +0 -1
- package/dist/chunks/session-1.1.30-sbykpbav.mjs +0 -2
- package/dist/chunks/sessionDiscovery-1.1.30-dd680nx7.mjs +0 -1
- package/dist/chunks/sessionFileAccessHooks-1.1.30-4rhdr018.mjs +0 -1
- package/dist/chunks/sessionStorage-1.1.30-cwb5a83p.mjs +0 -1
- package/dist/chunks/settings-1.1.30-xxee6nzb.mjs +0 -1
- package/dist/chunks/setup-1.1.30-p2wwqw6v.mjs +0 -12
- package/dist/chunks/sinks-1.1.30-phkc3yep.mjs +0 -1
- package/dist/chunks/skills-1.1.30-vsg5twx1.mjs +0 -1
- package/dist/chunks/startupProfiler-1.1.30-wa0xbx1z.mjs +0 -1
- package/dist/chunks/startupUpdateCheck-1.1.30-9cgnvwtt.mjs +0 -1
- package/dist/chunks/state-1.1.30-ge0kb9gr.mjs +0 -1
- package/dist/chunks/stats-1.1.30-n5w7ehyg.mjs +0 -1
- package/dist/chunks/status-1.1.30-snsvg4xb.mjs +0 -1
- package/dist/chunks/stickers-1.1.30-7ffpw08c.mjs +0 -1
- package/dist/chunks/subprocessEnv-1.1.30-5efpmhgz.mjs +0 -1
- package/dist/chunks/tasks-1.1.30-ykgkx7d8.mjs +0 -1
- package/dist/chunks/teamHelpers-1.1.30-cjjzmnj6.mjs +0 -1
- package/dist/chunks/teammateModeSnapshot-1.1.30-e2mh88ze.mjs +0 -1
- package/dist/chunks/teleport-1.1.30-9y1akw6m.mjs +0 -1
- package/dist/chunks/terminalSetup-1.1.30-mwbzfrfc.mjs +0 -1
- package/dist/chunks/theme-1.1.30-9dqykgv2.mjs +0 -1
- package/dist/chunks/thinkback-1.1.30-3pbzqt97.mjs +0 -1
- package/dist/chunks/thinkback-play-1.1.30-83akae4q.mjs +0 -1
- package/dist/chunks/toolPool-1.1.30-3kvrwtxa.mjs +0 -1
- package/dist/chunks/toolSearch-1.1.30-s60zcj4t.mjs +0 -1
- package/dist/chunks/tools-1.1.30-by0ddhf4.mjs +0 -1
- package/dist/chunks/trustedDevice-1.1.30-ecq2hfrc.mjs +0 -1
- package/dist/chunks/turndown.cjs-1.1.30-m5hyejns.mjs +0 -69
- package/dist/chunks/types-1.1.30-mrv5q877.mjs +0 -1
- package/dist/chunks/ultrareviewCommand-1.1.30-5etzjedp.mjs +0 -4
- package/dist/chunks/update-1.1.30-ax60cy72.mjs +0 -72
- package/dist/chunks/upgrade-1.1.30-hrny7f12.mjs +0 -1
- package/dist/chunks/upload-1.1.30-s0z8kw2s.mjs +0 -7
- package/dist/chunks/upstreamproxy-1.1.30-tkvbafsh.mjs +0 -14
- package/dist/chunks/url-handler-napi-1.1.30-enhczdhm.mjs +0 -1
- package/dist/chunks/usage-1.1.30-ew9dakf2.mjs +0 -1
- package/dist/chunks/util-1.1.30-knp77fm5.mjs +0 -1
- package/dist/chunks/utils-1.1.30-74ykpfac.mjs +0 -1
- package/dist/chunks/vim-1.1.30-y01vnb23.mjs +0 -1
- package/dist/chunks/watchLoop-1.1.30-sjecqqx4.mjs +0 -13
- package/dist/chunks/watcher-1.1.30-qnfq5sma.mjs +0 -1
- package/dist/chunks/wiki-1.1.30-qddcp6x2.mjs +0 -132
- package/dist/chunks/workflows-1.1.30-j5wcb76g.mjs +0 -1
- package/dist/chunks/worktree-1.1.30-m6gvqkc9.mjs +0 -1
- package/dist/chunks/worktreeModeEnabled-1.1.30-nma5ggmd.mjs +0 -1
- package/dist/chunks/wrapper-1.1.30-c8vm3try.mjs +0 -7
- /package/dist/chunks/{cli-1.1.30-vxh27fdj.mjs → cli-1.1.31-d930nxk6.mjs} +0 -0
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import{U7 as U5,W7 as G7}from"./cli-1.1.31-ahbyaapz.mjs";import{Y7 as f,Z7 as r8}from"./cli-1.1.31-sc82f8hw.mjs";import{h9 as l2,j9 as K7}from"./cli-1.1.31-can8wyac.mjs";import{e_ as U,w_ as J5}from"./cli-1.1.31-nyvjx813.mjs";import{$_ as B0,A$ as h1,B$ as C7,Bfa as j0,Fea as r1,Gga as z4,Iga as Z4,Kfa as T1,Kha as k,Lga as b5,Mfa as g7,Mga as $Z,Oea as B8,P$ as i2,Q$ as M,R_ as S4,S$ as b,S_ as d,Sha as i0,T_ as w5,U_ as F0,V_ as f4,W_ as n5,a$ as B1,aaa as I0,cba as n4,daa as y4,dca as a1,eba as e8,fda as W2,gca as p,jfa as v,jha as t2,kga as e,lba as U2,lfa as j5,maa as I1,mga as o1,mha as x4,nga as G8,oba as ZZ,ofa as D,p$ as N2,r$ as o8,rga as e1,sha as n2,vha as K,wda as x8,yha as Z0}from"./cli-1.1.31-p99fz46k.mjs";import{Kja as S2,Lja as t4,Mja as O0,Oja as x7,Pja as B7,Rja as N,Sja as y0}from"./cli-1.1.31-h5a78vp8.mjs";import{Aka as a8,Eka as i5,Ika as T7,Ska as z,Uka as g0,Vka as o,wka as k2}from"./cli-1.1.31-t6m64e0q.mjs";import{qla as x0,sla as W1,xla as j1}from"./cli-1.1.31-dmghye74.mjs";import{Ala as b2,Dla as F,Fla as u,Hla as N5,Lla as m}from"./cli-1.1.31-wba64b2s.mjs";import{Goa as m1,Mpa as Y1,Npa as q1,Opa as X1,Ppa as V1,Spa as W5,Uoa as s1,Yoa as O4,Yqa as $0,apa as E0,bpa as o0,opa as A,pma as J0,qma as K1,vpa as _1}from"./cli-1.1.31-b8rbgfhm.mjs";import{vra as _,wra as d0}from"./cli-1.1.31-thhdw5e1.mjs";import{isa as P0,ksa as p5,lsa as H,msa as s}from"./cli-1.1.31-qj8vksz8.mjs";function f2(Z){let $=[],J=!1;async function Q(){if(J)return;if($.length===0)return;J=!0;while($.length>0){let{args:Y,resolve:q,reject:X,context:V}=$.shift();try{let j=await Z.apply(V,Y);q(j)}catch(j){X(j)}}if(J=!1,$.length>0)Q()}return function(...Y){return new Promise((q,X)=>{$.push({args:Y,resolve:q,reject:X,context:this}),Q()})}}var A2=()=>{};function C2(Z,$){return Z.find((J)=>J.includes($))??null}async function g2(){let{BedrockClient:Z}=await import("@aws-sdk/client-bedrock"),$=N5(),J=F(process.env.CLAUDIN_SKIP_BEDROCK_AUTH),Q={region:$,...process.env.ANTHROPIC_BEDROCK_BASE_URL&&{endpoint:process.env.ANTHROPIC_BEDROCK_BASE_URL},...await U5(),...J&&{requestHandler:new(await import("./index-1.1.31-kdnrzq4a.mjs")).NodeHttpHandler,httpAuthSchemes:[{schemeId:"smithy.api#noAuth",identityProvider:()=>async()=>({}),signer:new(await import("./index-1.1.31-hxatxhrm.mjs")).NoAuthSigner}],httpAuthSchemeProvider:()=>[{schemeId:"smithy.api#noAuth"}]}};if(!J&&!process.env.AWS_BEARER_TOKEN_BEDROCK){let Y=await V0();if(Y)Q.credentials={accessKeyId:Y.accessKeyId,secretAccessKey:Y.secretAccessKey,sessionToken:Y.sessionToken}}return new Z(Q)}async function sZ(){let{BedrockRuntimeClient:Z}=await import("@aws-sdk/client-bedrock-runtime"),$=N5(),J=F(process.env.CLAUDIN_SKIP_BEDROCK_AUTH),Q={region:$,...process.env.ANTHROPIC_BEDROCK_BASE_URL&&{endpoint:process.env.ANTHROPIC_BEDROCK_BASE_URL},...await U5(),...J&&{requestHandler:new(await import("./index-1.1.31-kdnrzq4a.mjs")).NodeHttpHandler,httpAuthSchemes:[{schemeId:"smithy.api#noAuth",identityProvider:()=>async()=>({}),signer:new(await import("./index-1.1.31-hxatxhrm.mjs")).NoAuthSigner}],httpAuthSchemeProvider:()=>[{schemeId:"smithy.api#noAuth"}]}};if(!J&&!process.env.AWS_BEARER_TOKEN_BEDROCK){let Y=await V0();if(Y)Q.credentials={accessKeyId:Y.accessKeyId,secretAccessKey:Y.secretAccessKey,sessionToken:Y.sessionToken}}return new Z(Q)}function H7(Z){return Z.startsWith("anthropic.")}function w7(Z){if(!Z.startsWith("arn:"))return Z;let $=Z.lastIndexOf("/");if($===-1)return Z;return Z.substring($+1)}function F7(Z){let $=w7(Z);for(let J of R7)if($.startsWith(`${J}.anthropic.`))return J;return}function rZ(Z,$){let J=F7(Z);if(J)return Z.replace(`${J}.`,`${$}.`);if(H7(Z))return`${$}.${Z}`;return Z}var u2,aZ,R7;var p2=H(()=>{d0();a();m();i0();G7();u2=_(async function(){let[Z,{ListInferenceProfilesCommand:$}]=await Promise.all([g2(),import("@aws-sdk/client-bedrock")]),J=[],Q;try{do{let Y=new $({...Q&&{nextToken:Q},typeEquals:"SYSTEM_DEFINED"}),q=await Z.send(Y);if(q.inferenceProfileSummaries)J.push(...q.inferenceProfileSummaries);Q=q.nextToken}while(Q);return J.filter((Y)=>Y.inferenceProfileId?.includes("anthropic")).map((Y)=>Y.inferenceProfileId).filter(Boolean)}catch(Y){throw k(Y),Y}});aZ=_(async function(Z){try{let[$,{GetInferenceProfileCommand:J}]=await Promise.all([g2(),import("@aws-sdk/client-bedrock")]),Q=new J({inferenceProfileIdentifier:Z}),Y=await $.send(Q);if(!Y.models||Y.models.length===0)return null;let q=Y.models[0];if(!q?.modelArn)return null;let X=q.modelArn.lastIndexOf("/");return X>=0?q.modelArn.substring(X+1):q.modelArn}catch($){return k($),null}});R7=["us","eu","apac","global"]});var v5,P5,E5,O5,y5,_5,h5,I5,T5,t0,n0,l0,b0,M5,S5,f5,k0,m2;var A5=H(()=>{v5={firstParty:"claude-3-7-sonnet-20250219",bedrock:"us.anthropic.claude-3-7-sonnet-20250219-v1:0",vertex:"claude-3-7-sonnet@20250219",foundry:"claude-3-7-sonnet",openai:"gpt-4o-mini",gemini:"gemini-2.0-flash",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5",mistral:"mistral-medium-latest"},P5={firstParty:"claude-3-5-sonnet-20241022",bedrock:"anthropic.claude-3-5-sonnet-20241022-v2:0",vertex:"claude-3-5-sonnet-v2@20241022",foundry:"claude-3-5-sonnet",openai:"gpt-4o-mini",gemini:"gemini-2.0-flash",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5",mistral:"mistral-medium-latest"},E5={firstParty:"claude-3-5-haiku-20241022",bedrock:"us.anthropic.claude-3-5-haiku-20241022-v1:0",vertex:"claude-3-5-haiku@20241022",foundry:"claude-3-5-haiku",openai:"gpt-4o-mini",gemini:"gemini-2.0-flash-lite",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5",mistral:"ministral-3b-latest"},O5={firstParty:"claude-haiku-4-5-20251001",bedrock:"us.anthropic.claude-haiku-4-5-20251001-v1:0",vertex:"claude-haiku-4-5@20251001",foundry:"claude-haiku-4-5",openai:"gpt-4o-mini",gemini:"gemini-2.0-flash-lite",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5",mistral:"ministral-3b-latest"},y5={firstParty:"claude-sonnet-4-20250514",bedrock:"us.anthropic.claude-sonnet-4-20250514-v1:0",vertex:"claude-sonnet-4@20250514",foundry:"claude-sonnet-4",openai:"gpt-4o-mini",gemini:"gemini-2.0-flash",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5",mistral:"mistral-medium-latest"},_5={firstParty:"claude-sonnet-4-5-20250929",bedrock:"us.anthropic.claude-sonnet-4-5-20250929-v1:0",vertex:"claude-sonnet-4-5@20250929",foundry:"claude-sonnet-4-5",openai:"gpt-4o",gemini:"gemini-2.0-flash",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5",mistral:"mistral-medium-latest"},h5={firstParty:"claude-opus-4-20250514",bedrock:"us.anthropic.claude-opus-4-20250514-v1:0",vertex:"claude-opus-4@20250514",foundry:"claude-opus-4",openai:"gpt-4o",gemini:"gemini-2.5-pro",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5",mistral:"devstral-latest"},I5={firstParty:"claude-opus-4-1-20250805",bedrock:"us.anthropic.claude-opus-4-1-20250805-v1:0",vertex:"claude-opus-4-1@20250805",foundry:"claude-opus-4-1",openai:"gpt-4o",gemini:"gemini-2.5-pro",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5",mistral:"devstral-latest"},T5={firstParty:"claude-opus-4-5-20251101",bedrock:"us.anthropic.claude-opus-4-5-20251101-v1:0",vertex:"claude-opus-4-5@20251101",foundry:"claude-opus-4-5",openai:"gpt-4o",gemini:"gemini-2.5-pro",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5",mistral:"devstral-latest"},t0={firstParty:"claude-opus-4-6",bedrock:"us.anthropic.claude-opus-4-6-v1",vertex:"claude-opus-4-6",foundry:"claude-opus-4-6",openai:"gpt-4o",gemini:"gemini-2.5-pro",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5",mistral:"devstral-latest"},n0={firstParty:"claude-opus-4-7",bedrock:"us.anthropic.claude-opus-4-7-v1",vertex:"claude-opus-4-7",foundry:"claude-opus-4-7",openai:"gpt-4o",gemini:"gemini-2.5-pro",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5",mistral:"devstral-latest"},l0={firstParty:"claude-opus-4-8",bedrock:"anthropic.claude-opus-4-8",vertex:"claude-opus-4-8",foundry:"claude-opus-4-8",openai:"gpt-4o",gemini:"gemini-2.5-pro",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5",mistral:"devstral-latest"},b0={firstParty:"claude-opus-5",bedrock:"anthropic.claude-opus-5",vertex:"claude-opus-5",foundry:"claude-opus-5",openai:"gpt-4o",gemini:"gemini-2.5-pro",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5",mistral:"devstral-latest"},M5={firstParty:"claude-fable-5-1",bedrock:"anthropic.claude-fable-5-1",vertex:"claude-fable-5-1",foundry:"claude-fable-5-1",openai:"gpt-4o",gemini:"gemini-2.5-pro",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5",mistral:"devstral-latest"},S5={firstParty:"claude-sonnet-4-6",bedrock:"us.anthropic.claude-sonnet-4-6",vertex:"claude-sonnet-4-6",foundry:"claude-sonnet-4-6",openai:"gpt-4o",gemini:"gemini-2.0-flash",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5",mistral:"mistral-medium-latest"},f5={firstParty:"claude-sonnet-5",bedrock:"anthropic.claude-sonnet-5",vertex:"claude-sonnet-5",foundry:"claude-sonnet-5",openai:"gpt-4o",gemini:"gemini-2.0-flash",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5",mistral:"mistral-medium-latest"},k0={haiku35:E5,haiku45:O5,sonnet35:P5,sonnet37:v5,sonnet40:y5,sonnet45:_5,sonnet46:S5,sonnet5:f5,opus40:h5,opus41:I5,opus45:T5,opus46:t0,opus47:n0,opus48:l0,opus5:b0,fable51:M5},m2=Object.fromEntries(Object.entries(k0).map(([Z,$])=>[$.firstParty,Z]))});function c2(){return Object.values(s0)}var s0,u5;var C5=H(()=>{s0={"gpt-5.5":{id:"gpt-5.5",name:"GPT-5.5",family:"gpt",attachment:!1,reasoning:!0,tool_call:!0,temperature:!0,knowledge:"2025-05",release_date:"2025-05-01",last_updated:"2025-05-01",modalities:{input:["text"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:400000,output:128000}},"gpt-5.4":{id:"gpt-5.4",name:"GPT-5.4",family:"gpt",attachment:!1,reasoning:!0,tool_call:!0,temperature:!0,knowledge:"2025-05",release_date:"2025-05-01",last_updated:"2025-05-01",modalities:{input:["text"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:400000,output:128000}},"gpt-5.2-codex":{id:"gpt-5.2-codex",name:"GPT-5.2-Codex",family:"gpt-codex",attachment:!1,reasoning:!0,tool_call:!0,temperature:!0,knowledge:"2025-05",release_date:"2025-05-01",last_updated:"2025-05-01",modalities:{input:["text"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:400000,output:128000}},"gpt-5-mini":{id:"gpt-5-mini",name:"GPT-5 mini",family:"gpt-mini",attachment:!1,reasoning:!0,tool_call:!0,temperature:!0,knowledge:"2025-05",release_date:"2025-05-01",last_updated:"2025-05-01",modalities:{input:["text"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:264000,output:64000}},"gpt-4o":{id:"gpt-4o",name:"GPT-4o",family:"gpt",attachment:!0,reasoning:!1,tool_call:!0,temperature:!0,knowledge:"2023-10",release_date:"2024-05-01",last_updated:"2024-08-06",modalities:{input:["text","image"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:128000,output:16384}},"gpt-4.1":{id:"gpt-4.1",name:"GPT-4.1",family:"gpt",attachment:!1,reasoning:!1,tool_call:!0,temperature:!0,knowledge:"2024-06",release_date:"2024-06-01",last_updated:"2024-06-01",modalities:{input:["text"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:128000,output:16384}},"claude-opus-4.7":{id:"claude-opus-4.7",name:"Claude Opus 4.7",family:"claude-opus",attachment:!0,reasoning:!0,tool_call:!0,temperature:!0,knowledge:"2026-01",release_date:"2026-04-01",last_updated:"2026-04-01",modalities:{input:["text","image"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:200000,output:32000}},"claude-sonnet-4.6":{id:"claude-sonnet-4.6",name:"Claude Sonnet 4.6",family:"claude-sonnet",attachment:!0,reasoning:!0,tool_call:!0,temperature:!0,knowledge:"2025-05",release_date:"2025-05-01",last_updated:"2025-05-01",modalities:{input:["text","image"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:200000,output:32000}},"claude-haiku-4.5":{id:"claude-haiku-4.5",name:"Claude Haiku 4.5",family:"claude-haiku",attachment:!0,reasoning:!0,tool_call:!0,temperature:!0,knowledge:"2025-05",release_date:"2025-05-01",last_updated:"2025-05-01",modalities:{input:["text","image"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:144000,output:32768}},"gemini-3.1-pro-preview":{id:"gemini-3.1-pro-preview",name:"Gemini 3.1 Pro Preview",family:"gemini-pro",attachment:!0,reasoning:!0,tool_call:!0,temperature:!0,knowledge:"2025-05",release_date:"2025-05-01",last_updated:"2025-05-01",modalities:{input:["text","image","audio"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:200000,output:64000}},"grok-code-fast-1":{id:"grok-code-fast-1",name:"Grok Code Fast 1",family:"grok",attachment:!1,reasoning:!0,tool_call:!0,temperature:!0,knowledge:"2025-05",release_date:"2025-05-01",last_updated:"2025-05-01",modalities:{input:["text"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:256000,output:64000}}},u5=Object.fromEntries(Object.values(s0).map((Z)=>[Z.id,Z.name]))});var U0={};p5(U0,{prefetchCopilotModelCatalog:()=>c5,normalizeBareCopilotModelId:()=>m5,getEffectiveCopilotModels:()=>N7,getCopilotDisplayName:()=>U7,getCatalogCopilotMaxOutputTokens:()=>E7,getCatalogCopilotContextWindow:()=>P7,fetchCopilotModelCatalog:()=>a2,copilotModelSupportsAnthropicMessages:()=>v7,_setCopilotCatalogForTesting:()=>O7});function N0(){let Z=K();if(Z?.transport!=="github_copilot")return null;return(Z.baseUrl||"https://api.githubcopilot.com").replace(/\/+$/,"")}function s2(){if(!r)return!1;let Z=N0();return Z!==null&&W0===Z}function D7(){if(d2)return;d2=!0,i2(()=>{let Z=N0();if(Z&&W0!==Z)c5()})}function m5(Z){let $=Z.split("?",1)[0]??Z,J=$.lastIndexOf(":"),Q=(J===-1?$:$.slice(J+1)).trim(),Y=Q.indexOf("/");return Y===-1?Q:Q.slice(Y+1)}function b7(Z){if(!Array.isArray(Z))return null;return Z.filter(($)=>typeof $==="string")}function k7(Z){let $=Z.id?.trim();if(!$)return null;let J=Z.capabilities?.type?.trim().toLowerCase();if(J&&J!=="chat")return null;if(Z.policy?.state==="disabled")return null;let Q=Z.capabilities?.limits??{},Y=Z.capabilities?.supports??{},q=Y.vision===!0||Boolean(Q.vision),X=Y.adaptive_thinking===!0||Array.isArray(Y.reasoning_effort)||typeof Y.max_thinking_budget==="number";return{model:{id:$,name:Z.name?.trim()||$,family:Z.capabilities?.family?.trim()||$,attachment:q,reasoning:X,tool_call:Y.tool_calls===!0,temperature:!0,knowledge:"",release_date:"",last_updated:"",modalities:{input:q?["text","image"]:["text"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:Q.max_context_window_tokens??128000,...typeof Q.max_prompt_tokens==="number"?{input:Q.max_prompt_tokens}:{},output:Q.max_output_tokens??16384}},supportedEndpoints:b7(Z.supported_endpoints),pickerEnabled:Z.model_picker_enabled!==!1}}async function a2(){let Z=K();if(Z?.transport!=="github_copilot")return null;if(t2(Z.baseUrl)!=="copilot")return null;let $=Z.extras?.githubToken??Z.apiKey;if(!$)return null;let J=(Z.baseUrl||"https://api.githubcopilot.com").replace(/\/+$/,""),Q=new AbortController,Y=setTimeout(()=>Q.abort(),L7);try{let q=await fetch(`${J}/models`,{method:"GET",headers:{Accept:"application/json",Authorization:`Bearer ${$}`,...l2},signal:Q.signal});if(!q.ok)return null;let X=await q.json();if(!Array.isArray(X?.data))return null;let V=new Set,j=[];for(let B of X.data){let G=k7(B);if(!G||V.has(G.model.id))continue;V.add(G.model.id),j.push(G)}return j.length>0?j:null}catch{return z("[CopilotCatalog] /models fetch failed — using hardcoded registry"),null}finally{clearTimeout(Y)}}function c5(){D7();let Z=N0();if(!Z)return;if(r&&W0!==Z)r=null,W0=null;if(a0){if(g5===Z)return;a0.finally(()=>c5());return}g5=Z,a0=a2().then(($)=>{if($&&N0()===Z)r=$,W0=Z}).finally(()=>{a0=null,g5=null})}function N7(){if(s2()){let Z=r?.filter(($)=>$.pickerEnabled).map(($)=>$.model);if(Z&&Z.length>0)return Z}return c2()}function r0(Z){if(!s2())return;let $=m5(Z);return r.find((J)=>J.model.id===$)}function U7(Z){let $=m5(Z);return r0($)?.model.name??s0[$]?.name}function v7(Z){let $=r0(Z);if(!$||$.supportedEndpoints===null)return null;return $.supportedEndpoints.some((J)=>J.includes("/v1/messages"))}function P7(Z){return r0(Z)?.model.limit.context}function E7(Z){return r0(Z)?.model.limit.output}function O7(Z){r=Z,W0=Z?N0():null}var L7=5000,r=null,W0=null,a0=null,g5=null,d2=!1;var v0=H(()=>{Z0();K7();n2();e();o();C5()});function W(){let Z=K();if(!Z)return"firstParty";switch(Z.transport){case"anthropic":return"firstParty";case"gemini":return"gemini";case"mistral":return"mistral";case"github_copilot":return"github";case"codex_responses":return"codex";case"bedrock":return"bedrock";case"vertex":return"vertex";case"foundry":return"foundry";case"openai_compat":{let $=Z.baseUrl?.toLowerCase()??"";if($.includes("nvidia"))return"nvidia-nim";if($.includes("minimax"))return"minimax";return"openai"}default:return"firstParty"}}function W$(){return W()==="firstParty"}function y7(Z){let $=K();if($?.transport!=="github_copilot")return!1;let J=Z?.trim()||$.model?.trim()||"";if(!J.toLowerCase().includes("claude-"))return!1;try{let{copilotModelSupportsAnthropicMessages:Q}=(v0(),P0(U0)),Y=Q(J);if(Y!==null)return Y}catch{}return!0}function j$(Z){let $=K()?.transport??"anthropic";if(!_7.has($))return!1;if($==="github_copilot"&&y7(Z))return!1;return!0}function z$(){let Z=K();if(!Z)return!0;if(Z.transport!=="anthropic")return!1;let $=Z.baseUrl;if(!$)return!0;try{let J=new URL($).host;return["api.anthropic.com"].includes(J)}catch{return!1}}var _7;var c=H(()=>{Z0();_7=new Set(["openai_compat","gemini","mistral","github_copilot","codex_responses"])});function e0(Z){let $=Z==="codex"||Z==="github"?"openai":Z,J={};for(let Q of o2)J[Q]=k0[Q][$];return J}async function h7(){let Z=e0("bedrock"),$;try{$=await u2()}catch(Q){return k(Q),Z}if(!$?.length)return Z;let J={};for(let Q of o2){let Y=k0[Q].firstParty;J[Q]=C2($,Y)||Z[Q]}return J}function r2(Z){let $=D().modelOverrides;if(!$)return Z;let J={...Z};for(let[Q,Y]of Object.entries($)){let q=m2[Q];if(q&&Y)J[q]=Y}return J}function Z5(Z){let $;try{$=D().modelOverrides}catch{return Z}if(!$)return Z;for(let[J,Q]of Object.entries($))if(Q===Z)return J;return Z}function I7(){if(E0()!==null)return;if(W()!=="bedrock"){o0(e0(W()));return}e2()}function x(){let Z=E0();if(Z===null)return I7(),r2(e0(W()));return r2(Z)}async function L$(){if(E0()!==null)return;if(W()!=="bedrock"){o0(e0(W()));return}await e2()}var o2,e2;var $5=H(()=>{$0();i0();A2();j0();p2();A5();c();o2=Object.keys(k0);e2=f2(async()=>{if(E0()!==null)return;try{let Z=await h7();o0(Z)}catch(Z){k(Z)}})});function b$(Z){return Z}function k$(){return!1}function Z1(){return null}function $1(){return!1}var J1=()=>{};async function z0(Z){let $=`${N().BASE_API_URL}/api/oauth/profile`;try{return(await U.get($,{headers:{Authorization:`Bearer ${Z}`,"Content-Type":"application/json"},timeout:1e4})).data}catch(J){k(J)}}var d5=H(()=>{J5();y0();a();e();i0()});import{mkdirSync as M7,writeFileSync as S7}from"fs";function u7(Z,$,J){if(!F(process.env.CLAUDE_CODE_REMOTE))return;try{M7(Y5,{recursive:!0,mode:448}),S7(Z,$,{encoding:"utf8",mode:384}),z(`Persisted ${J} to ${Z} for subprocess access`)}catch(Q){z(`Failed to persist ${J} to disk (non-fatal): ${x0(Q)}`,{level:"error"})}}function Q1(Z,$){try{let Q=i5().readFileSync(Z,{encoding:"utf8"}).trim();if(!Q)return null;return z(`Read ${$} from well-known file ${Z}`),Q}catch(J){if(!W1(J))z(`Failed to read ${$} from ${Z}: ${x0(J)}`,{level:"debug"});return null}}function z1({envVar:Z,wellKnownPath:$,label:J,getCached:Q,setCached:Y}){let q=Q();if(q!==void 0)return q;let X=process.env[Z];if(!X){let j=Q1($,J);return Y(j),j}let V=parseInt(X,10);if(Number.isNaN(V))return z(`${Z} must be a valid file descriptor number, got: ${X}`,{level:"error"}),Y(null),null;try{let j=i5(),B=process.platform==="darwin"||process.platform==="freebsd"?`/dev/fd/${V}`:`/proc/self/fd/${V}`,G=j.readFileSync(B,{encoding:"utf8"}).trim();if(!G)return z(`File descriptor contained empty ${J}`,{level:"error"}),Y(null),null;return z(`Successfully read ${J} from file descriptor ${V}`),Y(G),u7($,G,J),G}catch(j){z(`Failed to read ${J} from file descriptor ${V}: ${x0(j)}`,{level:"error"});let B=Q1($,J);return Y(B),B}}function q5(){return z1({envVar:"CLAUDE_CODE_OAUTH_TOKEN_FILE_DESCRIPTOR",wellKnownPath:f7,label:"OAuth token",getCached:Y1,setCached:q1})}function t5(){return z1({envVar:"CLAUDE_CODE_API_KEY_FILE_DESCRIPTOR",wellKnownPath:A7,label:"API key",getCached:X1,setCached:V1})}var Y5="/home/claude/.claude/remote",f7,A7,f$;var x1=H(()=>{$0();o();m();j1();T7();f7=`${Y5}/.oauth_token`,A7=`${Y5}/.api_key`,f$=`${Y5}/.session_ingress_token`});async function G1(){if(process.platform==="darwin"){let Z=d();if((await B0(`security delete-generic-password -a $USER -s "${Z}"`,{shell:!0,reject:!1})).exitCode!==0)throw Error("Failed to delete keychain entry")}}function X5(Z){return Z.slice(-20)}var H1=H(()=>{B1();n5()});function m$(Z){return Z?.name==="CredentialsProviderError"}function R1(Z){if(!Z||typeof Z!=="object")return!1;let $=Z;if(!$.Credentials||typeof $.Credentials!=="object")return!1;let J=$.Credentials;return typeof J.AccessKeyId==="string"&&typeof J.SecretAccessKey==="string"&&typeof J.SessionToken==="string"&&J.AccessKeyId.length>0&&J.SecretAccessKey.length>0&&J.SessionToken.length>0}async function l5(){let{STSClient:Z,GetCallerIdentityCommand:$}=await import("@aws-sdk/client-sts");await new Z().send(new $({}))}async function w1(){try{z("Clearing AWS credential provider cache");let{fromIni:Z}=await import("@aws-sdk/credential-providers");await Z({ignoreCache:!0})(),z("AWS credential provider cache refreshed")}catch(Z){z("Failed to clear AWS credential cache (this is expected if no credentials are configured)")}}var F1=H(()=>{o()});class T{static instance=null;status={isAuthenticating:!1,output:[]};changed=J0();static getInstance(){if(!T.instance)T.instance=new T;return T.instance}getStatus(){return{...this.status,output:[...this.status.output]}}startAuthentication(){this.status={isAuthenticating:!0,output:[]},this.changed.emit(this.getStatus())}addOutput(Z){this.status.output.push(Z),this.changed.emit(this.getStatus())}setError(Z){this.status.error=Z,this.changed.emit(this.getStatus())}endAuthentication(Z){if(Z)this.status={isAuthenticating:!1,output:[]};else this.status.isAuthenticating=!1;this.changed.emit(this.getStatus())}subscribe=this.changed.subscribe;static reset(){if(T.instance)T.instance.changed.clear(),T.instance=null}}var L1=H(()=>{K1()});var V5="claude-code-20250219",D1="interleaved-thinking-2025-05-14",_0="context-1m-2025-08-07",b1="context-management-2025-06-27",k1="structured-outputs-2025-12-15",s5="web-search-2025-03-05",N1="advanced-tool-use-2025-11-20",U1="tool-search-tool-2025-10-19",t$="effort-2025-11-24",n$="task-budgets-2026-03-13",v1="prompt-caching-scope-2026-01-05",l$="extended-cache-ttl-2025-04-11",s$="fast-mode-2026-02-01",P1="redact-thinking-2026-02-12",E1="thinking-token-count-2026-05-13",O1="token-efficient-tools-2026-03-28",a$="afk-mode-2026-01-31",r$="advisor-tool-2026-03-01",a5,o$;var r5=H(()=>{a5=new Set(["interleaved-thinking-2025-05-14","context-1m-2025-08-07","tool-search-tool-2025-10-19"]),o$=new Set(["claude-code-20250219","interleaved-thinking-2025-05-14","context-management-2025-06-27"])});function h(){if(W()!=="firstParty")return!1;return!F(process.env.CLAUDIN_DISABLE_FAST_MODE)}function M1(){if(!h())return!1;return m7()===null}function p7(Z,$){switch(Z){case"free":return $==="oauth"?"Fast mode requires a paid subscription":"Fast mode unavailable during evaluation. Please purchase credits.";case"preference":return"Fast mode has been disabled by your organization";case"extra_usage_disabled":return"Fast mode requires extra usage billing · enable it at claude.ai/settings/usage";case"network_error":return"Fast mode unavailable due to network connectivity issues";case"unknown":return"Fast mode is currently unavailable"}}function m7(){if(W()!=="firstParty")return"Fast mode is not available on third-party providers";if(!h())return"Fast mode is not available";let Z=I0("tengu_penguins_off",null);if(Z!==null)return z(`Fast mode unavailable: ${Z}`),Z;if(!h1()&&I0("tengu_marble_sandcastle",!1))return"Fast mode requires the native binary · Install from: https://claude.com/product/claude-code";if(A()&&W5()&&!_1()){if(!v("flagSettings")?.fastMode)return z("Fast mode unavailable: Fast mode is not available in the Agent SDK"),"Fast mode is not available in the Agent SDK"}if(E.status==="disabled"){if(E.reason==="network_error"||E.reason==="unknown"){if(F(process.env.CLAUDIN_SKIP_FAST_MODE_NETWORK_ERRORS))return null}let $=R()!==null?"oauth":"api-key",J=p7(E.reason,$);return z(`Fast mode unavailable: ${J}`),J}return null}function RJ(){let Z=z5(Y0());return"opus"+(Z2()&&!Z?"[1m]":"")}function wJ(Z){if(!h())return!1;if(!M1())return!1;if(!S1(Z))return!1;let $=D();if($.fastModePerSessionOptIn)return!1;return $.fastMode===!0}function S1(Z){if(!h())return!1;let $=Z??T0(),J=I($).toLowerCase();return J.includes("opus-5")||J.includes("opus-4-7")||J.includes("opus-4-6")}function c7(){if(G0.status==="cooldown"&&Date.now()>=G0.resetAt){if(h()&&!o5)z("Fast mode cooldown expired, re-enabling fast mode"),o5=!0,A1.emit();G0={status:"active"}}return G0}function LJ(Z,$){if(!h())return;G0={status:"cooldown",resetAt:Z,reason:$},o5=!1;let J=Z-Date.now();z(`Fast mode cooldown triggered (${$}), duration ${Math.round(J/1000)}s`),f1.emit(Z,$)}function DJ(){G0={status:"active"}}function bJ(){if(E.status==="disabled")return;E={status:"disabled",reason:"preference"},j5("userSettings",{fastMode:void 0}),M((Z)=>({...Z,penguinModeOrgEnabled:!1})),e5.emit(!1)}function d7(Z){switch(Z){case"out_of_credits":return"Fast mode disabled · extra usage credits exhausted";case"org_level_disabled":case"org_service_level_disabled":return"Fast mode disabled · extra usage disabled by your organization";case"org_level_disabled_until":return"Fast mode disabled · extra usage spending cap reached";case"member_level_disabled":return"Fast mode disabled · extra usage disabled for your account";case"seat_tier_level_disabled":case"seat_tier_zero_credit_limit":case"member_zero_credit_limit":return"Fast mode disabled · extra usage not available for your plan";case"overage_not_provisioned":case"no_limits_configured":return"Fast mode requires extra usage billing · enable it at claude.ai/settings/usage";default:return"Fast mode disabled · extra usage not available"}}function i7(Z){return Z==="org_level_disabled_until"||Z==="out_of_credits"}function NJ(Z){let $=d7(Z);if(z(`Fast mode overage rejection: ${Z??"unknown"} — ${$}`),!i7(Z))j5("userSettings",{fastMode:void 0}),M((J)=>({...J,penguinModeOrgEnabled:!1}));u1.emit($)}function t7(){return c7().status==="cooldown"}function UJ(Z,$){let J=h()&&M1()&&!!$&&S1(Z);if(J&&t7())return"cooldown";if(J)return"on";return"off"}async function n7(Z){let $=`${N().BASE_API_URL}/api/claude_code_penguin_mode`,J="accessToken"in Z?{Authorization:`Bearer ${Z.accessToken}`,"anthropic-beta":O0}:{"x-api-key":Z.apiKey};return(await U.get($,{headers:J})).data}function PJ(){if(!h())return;if(E.status!=="pending")return;E=b().penguinModeOrgEnabled===!0?{status:"enabled"}:{status:"disabled",reason:"unknown"}}async function EJ(){if(T1())return;if(!h())return;if(h0)return z("Fast mode prefetch in progress, returning in-flight promise"),h0;let Z=Q5();if(!(R()?.accessToken&&Q0())&&!Z){E=b().penguinModeOrgEnabled===!0?{status:"enabled"}:{status:"disabled",reason:"preference"};return}let J=Date.now();if(J-y1<l7){z("Skipping fast mode prefetch, fetched recently");return}y1=J;let Q=async()=>{let q=R(),X=q?.accessToken&&Q0()?{accessToken:q.accessToken}:Z?{apiKey:Z}:null;if(!X)throw Error("No auth available");return n7(X)};async function Y(){try{let q;try{q=await Q()}catch(V){if(U.isAxiosError(V)&&(V.response?.status===401||V.response?.status===403&&typeof V.response?.data==="string"&&V.response.data.includes("OAuth token has been revoked"))){let B=R()?.accessToken;if(B)await $2(B),q=await Q();else throw V}else throw V}let X=E.status!=="pending"?E.status==="enabled":b().penguinModeOrgEnabled;if(E=q.enabled?{status:"enabled"}:{status:"disabled",reason:q.disabled_reason??"preference"},X!==q.enabled){if(!q.enabled)j5("userSettings",{fastMode:void 0});M((V)=>({...V,penguinModeOrgEnabled:q.enabled})),e5.emit(q.enabled)}z(`Org fast mode: ${q.enabled?"enabled":`disabled (${q.disabled_reason??"preference"})`}`)}catch(q){E=b().penguinModeOrgEnabled===!0?{status:"enabled"}:{status:"disabled",reason:"network_error"},z(`Failed to fetch org fast mode status, defaulting to ${E.status==="enabled"?"enabled (cached)":"disabled (network_error)"}: ${q}`,{level:"error"})}finally{h0=null}}return h0=Y(),h0}var HJ="Opus 5",G0,o5=!1,f1,A1,FJ,KJ,u1,kJ,E,e5,vJ,l7=30000,y1=0,h0=null;var C1=H(()=>{J5();y0();I1();$0();a();C7();e();o();m();H0();c();g7();j0();K1();G0={status:"active"},f1=J0(),A1=J0(),FJ=f1.subscribe,KJ=A1.subscribe;u1=J0(),kJ=u1.subscribe;E={status:"pending"},e5=J0(),vJ=e5.subscribe});function J8(Z){for(let $ of $8)if($.pattern.test(Z))return $.cost;return}function Q2(Z){if(h()&&Z)return c1;return i}function Y2(Z){if(h()&&Z)return c1;return J2[w(b0.firstParty)]??i}function Q8(Z,$){let J=Z.promptCacheWrite1hTokens??Z.promptCacheWriteTokens,Q=$.cache_creation,Y=Q?(Q.ephemeral_5m_input_tokens??0)/1e6*Z.promptCacheWriteTokens+(Q.ephemeral_1h_input_tokens??0)/1e6*J:($.cache_creation_input_tokens??0)/1e6*Z.promptCacheWriteTokens;return $.input_tokens/1e6*Z.inputTokens+$.output_tokens/1e6*Z.outputTokens+($.cache_read_input_tokens??0)/1e6*Z.promptCacheReadTokens+Y+($.server_tool_use?.web_search_requests??0)*Z.webSearchRequests}function Y8(Z,$){let J=L(Z);if(J===w(t0.firstParty)||J===w(n0.firstParty)||J===w(l0.firstParty)){let Y=$.speed==="fast";return Q2(Y)}if(J===w(b0.firstParty))return Y2($.speed==="fast");let Q=J2[J];if(!Q){let Y=J8(Z);if(Y)return Y;return q8(Z,J),J2[L(T0())]??Z8}return Q}function q8(Z,$){m1()}function X8(Z,$){let J=Y8(Z,$);return Q8(J,$)}function TJ(Z,$){let J={input_tokens:$.inputTokens,output_tokens:$.outputTokens,cache_read_input_tokens:$.cacheReadInputTokens,cache_creation_input_tokens:$.cacheCreationInputTokens};return X8(Z,J)}function p1(Z){if(Number.isInteger(Z))return`$${Z}`;return`$${Z.toFixed(2)}`}function q2(Z){return`${p1(Z.inputTokens)}/${p1(Z.outputTokens)} per Mtok`}var s7,M0,g1,i,a7,r7,c1,o7,e7,Z8,$8,J2;var d1=H(()=>{$0();C1();A5();H0();s7={inputTokens:2,outputTokens:10,promptCacheWriteTokens:2.5,promptCacheWrite1hTokens:4,promptCacheReadTokens:0.2,webSearchRequests:0.01},M0={inputTokens:3,outputTokens:15,promptCacheWriteTokens:3.75,promptCacheWrite1hTokens:6,promptCacheReadTokens:0.3,webSearchRequests:0.01},g1={inputTokens:15,outputTokens:75,promptCacheWriteTokens:18.75,promptCacheWrite1hTokens:30,promptCacheReadTokens:1.5,webSearchRequests:0.01},i={inputTokens:5,outputTokens:25,promptCacheWriteTokens:6.25,promptCacheWrite1hTokens:10,promptCacheReadTokens:0.5,webSearchRequests:0.01},a7={inputTokens:10,outputTokens:50,promptCacheWriteTokens:12.5,promptCacheWrite1hTokens:20,promptCacheReadTokens:0.25,webSearchRequests:0.01},r7={inputTokens:10,outputTokens:50,promptCacheWriteTokens:12.5,promptCacheWrite1hTokens:20,promptCacheReadTokens:1,webSearchRequests:0.01},c1={inputTokens:30,outputTokens:150,promptCacheWriteTokens:37.5,promptCacheWrite1hTokens:60,promptCacheReadTokens:3,webSearchRequests:0.01},o7={inputTokens:0.8,outputTokens:4,promptCacheWriteTokens:1,promptCacheWrite1hTokens:1.6,promptCacheReadTokens:0.08,webSearchRequests:0.01},e7={inputTokens:1,outputTokens:5,promptCacheWriteTokens:1.25,promptCacheWrite1hTokens:2,promptCacheReadTokens:0.1,webSearchRequests:0.01},Z8=i,$8=[{pattern:/gpt-5-nano/i,label:"gpt-5-nano",cost:{inputTokens:0.05,outputTokens:0.4,promptCacheWriteTokens:0.05,promptCacheReadTokens:0.005,webSearchRequests:0}},{pattern:/gpt-5-mini/i,label:"gpt-5-mini",cost:{inputTokens:0.25,outputTokens:2,promptCacheWriteTokens:0.25,promptCacheReadTokens:0.025,webSearchRequests:0}},{pattern:/gpt-5/i,label:"gpt-5",cost:{inputTokens:1.25,outputTokens:10,promptCacheWriteTokens:1.25,promptCacheReadTokens:0.125,webSearchRequests:0}},{pattern:/gpt-4o-mini/i,label:"gpt-4o-mini",cost:{inputTokens:0.15,outputTokens:0.6,promptCacheWriteTokens:0.15,promptCacheReadTokens:0.075,webSearchRequests:0}},{pattern:/gpt-4o/i,label:"gpt-4o",cost:{inputTokens:2.5,outputTokens:10,promptCacheWriteTokens:2.5,promptCacheReadTokens:1.25,webSearchRequests:0}},{pattern:/gpt-4\.1/i,label:"gpt-4.1",cost:{inputTokens:2,outputTokens:8,promptCacheWriteTokens:2,promptCacheReadTokens:0.5,webSearchRequests:0}},{pattern:/o4-mini/i,label:"o4-mini",cost:{inputTokens:0.55,outputTokens:2.2,promptCacheWriteTokens:0.55,promptCacheReadTokens:0.275,webSearchRequests:0}},{pattern:/\bo3\b/i,label:"o3",cost:{inputTokens:15,outputTokens:60,promptCacheWriteTokens:15,promptCacheReadTokens:7.5,webSearchRequests:0}},{pattern:/\bo1\b/i,label:"o1",cost:{inputTokens:15,outputTokens:60,promptCacheWriteTokens:15,promptCacheReadTokens:7.5,webSearchRequests:0}},{pattern:/gemini.*2\.5.*pro/i,label:"gemini-2.5-pro",cost:{inputTokens:1.25,outputTokens:10,promptCacheWriteTokens:1.25,promptCacheReadTokens:0.125,webSearchRequests:0}},{pattern:/gemini.*2\.5.*flash/i,label:"gemini-2.5-flash",cost:{inputTokens:0.3,outputTokens:2.5,promptCacheWriteTokens:0.3,promptCacheReadTokens:0.03,webSearchRequests:0}},{pattern:/gemini.*flash/i,label:"gemini-flash",cost:{inputTokens:0.1,outputTokens:0.4,promptCacheWriteTokens:0.1,promptCacheReadTokens:0.025,webSearchRequests:0}},{pattern:/gemini.*pro/i,label:"gemini-pro",cost:{inputTokens:1.25,outputTokens:5,promptCacheWriteTokens:1.25,promptCacheReadTokens:0.125,webSearchRequests:0}},{pattern:/gemini/i,label:"gemini",cost:{inputTokens:0.3,outputTokens:2.5,promptCacheWriteTokens:0.3,promptCacheReadTokens:0.03,webSearchRequests:0}},{pattern:/deepseek/i,label:"deepseek",cost:{inputTokens:0.14,outputTokens:0.28,promptCacheWriteTokens:0.14,promptCacheReadTokens:0.0028,webSearchRequests:0}},{pattern:/kimi-for-coding/i,label:"kimi-for-coding",cost:{inputTokens:1,outputTokens:2,promptCacheWriteTokens:1,promptCacheReadTokens:0.1,webSearchRequests:0}},{pattern:/kimi/i,label:"kimi",cost:{inputTokens:0.6,outputTokens:2.5,promptCacheWriteTokens:0.6,promptCacheReadTokens:0.06,webSearchRequests:0}},{pattern:/moonshot/i,label:"moonshot",cost:{inputTokens:0.6,outputTokens:2.5,promptCacheWriteTokens:0.6,promptCacheReadTokens:0.06,webSearchRequests:0}},{pattern:/devstral/i,label:"devstral",cost:{inputTokens:0.1,outputTokens:0.3,promptCacheWriteTokens:0.1,promptCacheReadTokens:0.1,webSearchRequests:0}},{pattern:/mistral.*large.*3/i,label:"mistral-large-3",cost:{inputTokens:0.5,outputTokens:1.5,promptCacheWriteTokens:0.5,promptCacheReadTokens:0.5,webSearchRequests:0}},{pattern:/mistral.*large/i,label:"mistral-large",cost:{inputTokens:2,outputTokens:6,promptCacheWriteTokens:2,promptCacheReadTokens:2,webSearchRequests:0}},{pattern:/mistral.*medium/i,label:"mistral-medium",cost:{inputTokens:0.4,outputTokens:2,promptCacheWriteTokens:0.4,promptCacheReadTokens:0.4,webSearchRequests:0}},{pattern:/mistral.*small/i,label:"mistral-small",cost:{inputTokens:0.1,outputTokens:0.3,promptCacheWriteTokens:0.1,promptCacheReadTokens:0.1,webSearchRequests:0}},{pattern:/ministral.*8b/i,label:"ministral-8b",cost:{inputTokens:0.1,outputTokens:0.1,promptCacheWriteTokens:0.1,promptCacheReadTokens:0.1,webSearchRequests:0}},{pattern:/ministral.*3b/i,label:"ministral-3b",cost:{inputTokens:0.04,outputTokens:0.04,promptCacheWriteTokens:0.04,promptCacheReadTokens:0.04,webSearchRequests:0}},{pattern:/llama.*405/i,label:"llama-405b",cost:{inputTokens:3.5,outputTokens:3.5,promptCacheWriteTokens:3.5,promptCacheReadTokens:3.5,webSearchRequests:0}},{pattern:/llama.*70/i,label:"llama-70b",cost:{inputTokens:0.59,outputTokens:0.79,promptCacheWriteTokens:0.59,promptCacheReadTokens:0.59,webSearchRequests:0}},{pattern:/llama.*8b/i,label:"llama-8b",cost:{inputTokens:0.1,outputTokens:0.1,promptCacheWriteTokens:0.1,promptCacheReadTokens:0.1,webSearchRequests:0}},{pattern:/qwen/i,label:"qwen",cost:{inputTokens:0.5,outputTokens:1.5,promptCacheWriteTokens:0.5,promptCacheReadTokens:0.5,webSearchRequests:0}},{pattern:/minimax/i,label:"minimax",cost:{inputTokens:0.2,outputTokens:1.1,promptCacheWriteTokens:0.2,promptCacheReadTokens:0.2,webSearchRequests:0}},{pattern:/\bglm/i,label:"glm",cost:{inputTokens:0.5,outputTokens:1.5,promptCacheWriteTokens:0.5,promptCacheReadTokens:0.5,webSearchRequests:0}},{pattern:/grok.*4.*fast/i,label:"grok-4-fast",cost:{inputTokens:0.2,outputTokens:0.5,promptCacheWriteTokens:0.2,promptCacheReadTokens:0.05,webSearchRequests:0}},{pattern:/grok.*4\.20/i,label:"grok-4.20",cost:{inputTokens:2,outputTokens:6,promptCacheWriteTokens:2,promptCacheReadTokens:0.5,webSearchRequests:0}},{pattern:/grok.*4/i,label:"grok-4",cost:{inputTokens:3,outputTokens:15,promptCacheWriteTokens:3,promptCacheReadTokens:0.75,webSearchRequests:0}},{pattern:/grok/i,label:"grok",cost:{inputTokens:2,outputTokens:6,promptCacheWriteTokens:2,promptCacheReadTokens:0.5,webSearchRequests:0}},{pattern:/command-?r-?plus|command-r\+/i,label:"command-r-plus",cost:{inputTokens:2.5,outputTokens:10,promptCacheWriteTokens:2.5,promptCacheReadTokens:2.5,webSearchRequests:0}},{pattern:/command-?a\b/i,label:"command-a",cost:{inputTokens:2.5,outputTokens:10,promptCacheWriteTokens:2.5,promptCacheReadTokens:2.5,webSearchRequests:0}},{pattern:/command-?r7b/i,label:"command-r7b",cost:{inputTokens:0.0375,outputTokens:0.15,promptCacheWriteTokens:0.0375,promptCacheReadTokens:0.0375,webSearchRequests:0}},{pattern:/command-?r/i,label:"command-r",cost:{inputTokens:0.15,outputTokens:0.6,promptCacheWriteTokens:0.15,promptCacheReadTokens:0.15,webSearchRequests:0}},{pattern:/gemma.*27b/i,label:"gemma-27b",cost:{inputTokens:0.08,outputTokens:0.16,promptCacheWriteTokens:0.08,promptCacheReadTokens:0.08,webSearchRequests:0}},{pattern:/gemma.*12b/i,label:"gemma-12b",cost:{inputTokens:0.04,outputTokens:0.13,promptCacheWriteTokens:0.04,promptCacheReadTokens:0.04,webSearchRequests:0}},{pattern:/gemma/i,label:"gemma",cost:{inputTokens:0.04,outputTokens:0.08,promptCacheWriteTokens:0.04,promptCacheReadTokens:0.04,webSearchRequests:0}},{pattern:/phi-?4-?mini/i,label:"phi-4-mini",cost:{inputTokens:0.075,outputTokens:0.3,promptCacheWriteTokens:0.075,promptCacheReadTokens:0.075,webSearchRequests:0}},{pattern:/phi-?4/i,label:"phi-4",cost:{inputTokens:0.13,outputTokens:0.5,promptCacheWriteTokens:0.13,promptCacheReadTokens:0.13,webSearchRequests:0}},{pattern:/\bphi\b/i,label:"phi",cost:{inputTokens:0.13,outputTokens:0.5,promptCacheWriteTokens:0.13,promptCacheReadTokens:0.13,webSearchRequests:0}}];J2={[w(E5.firstParty)]:o7,[w(O5.firstParty)]:e7,[w(P5.firstParty)]:M0,[w(v5.firstParty)]:M0,[w(y5.firstParty)]:M0,[w(_5.firstParty)]:M0,[w(S5.firstParty)]:M0,[w(f5.firstParty)]:s7,[w(h5.firstParty)]:g1,[w(I5.firstParty)]:g1,[w(T5.firstParty)]:i,[w(t0.firstParty)]:i,[w(n0.firstParty)]:i,[w(l0.firstParty)]:i,[w(b0.firstParty)]:i,[w(M5.firstParty)]:a7,"claude-fable-5":r7}});function C(Z){return V8.includes(Z)}function R0(Z){return W8.includes(Z)}var V8,W8;var X2=H(()=>{V8=["sonnet","opus","haiku","fable","best","sonnet[1m]","opus[1m]","opusplan"];W8=["sonnet","opus","haiku"]});function j8(Z,$){if(Z.includes($))return!0;if(C(Z))return I(Z).toLowerCase().includes($);return!1}function i1(Z,$){if(!Z.startsWith($))return!1;return Z.length===$.length||Z[$.length]==="-"}function z8(Z,$){let J=C(Z)?I(Z).toLowerCase():Z;if(i1(J,$))return!0;if(!$.startsWith("claude-")&&i1(J,`claude-${$}`))return!0;return!1}function t1(Z,$){for(let J of $){if(R0(J))continue;let Q=J.indexOf(Z);if(Q===-1)continue;let Y=Q+Z.length;if(Y===J.length||J[Y]==="-")return!0}return!1}function n1(Z){let $=D()||{},{availableModels:J}=$;if(!J)return!0;if(J.length===0)return!1;let Y=Z5(Z).trim().toLowerCase(),q=J.map((X)=>X.trim().toLowerCase());if(q.includes(Y)){if(!R0(Y)||!t1(Y,q))return!0}for(let X of q)if(R0(X)&&!t1(X,q)&&j8(Y,X))return!0;if(C(Y)){let X=I(Y).toLowerCase();if(q.includes(X))return!0}for(let X of q)if(!R0(X)&&C(X)){if(I(X).toLowerCase()===Y)return!0}for(let X of q)if(!R0(X)&&!C(X)){if(z8(Y,X))return!0}return!1}var l1=H(()=>{j0();X2();H0();$5()});function x5(Z){if(typeof Z!=="string")return;let $=Z.trim();return $.length>0?$:void 0}function w0(){let Z=K();if(!Z?.model)return;return o1(Z.model)}function Y9(){if(process.env.ANTHROPIC_SMALL_FAST_MODEL)return process.env.ANTHROPIC_SMALL_FAST_MODEL;let Z=w0();if(W()==="gemini")return Z||"gemini-2.0-flash-lite";if(W()==="mistral")return Z||"ministral-3b-latest";if(W()==="openai")return Z||"gpt-4o-mini";if(W()==="codex")return Z||"codexspark";if(W()==="github")return Z||"github:copilot";if(W()==="nvidia-nim")return Z||"meta/llama-3.1-8b-instruct";if(W()==="minimax")return Z||"MiniMax-M2.5-highspeed";return $4()}function q9(Z){return Z===x().opus40||Z===x().opus41||Z===x().opus45||Z===x().opus46||Z===x().opus47||Z===x().opus48||Z===x().opus5}function z5(Z){let $=L(Z);return $.includes("opus-5")||$.includes("sonnet-5")||$.includes("fable-5")}function V2(){let Z,$=s1();if($!==void 0)Z=$;else{let J=D()||{},Q=x5(J.model),q=w0()||Q||void 0,X=a1(),V=x5(X.activeModelForProject);if(V){let j=e1()?.id,B=X.activeModelForProjectProfileId;Z=B===void 0||B===j?V:q}else Z=q}if(Z&&!n1(Z))return;return Z}function X9(){let Z=V2();if(Z!==void 0&&Z!==null)return I(Z);return J4()}function H8(){return Y0()}function Y0(){if(process.env.ANTHROPIC_DEFAULT_OPUS_MODEL)return process.env.ANTHROPIC_DEFAULT_OPUS_MODEL;let Z=w0();if(W()==="gemini")return Z||"gemini-2.5-pro";if(W()==="mistral")return Z||"devstral-latest";if(W()==="openai")return Z||"gpt-4o";if(W()==="codex")return Z||"gpt-5.5";if(W()==="github")return Z||"github:copilot";if(W()==="nvidia-nim")return Z||"nvidia/llama-3.1-nemotron-70b-instruct";if(W()==="minimax")return Z||"MiniMax-M2.7";if(W()!=="firstParty")return x().opus46;return x().opus5}function S0(){if(process.env.ANTHROPIC_DEFAULT_SONNET_MODEL)return process.env.ANTHROPIC_DEFAULT_SONNET_MODEL;let Z=w0();if(W()==="gemini")return Z||"gemini-2.0-flash";if(W()==="mistral")return Z||"mistral-medium-latest";if(W()==="openai")return Z||"gpt-4o";if(W()==="codex")return Z||"gpt-5.5";if(W()==="github")return Z||"github:copilot";if(W()==="nvidia-nim")return Z||"nvidia/llama-3.1-nemotron-70b-instruct";if(W()==="minimax")return Z||"MiniMax-M2.5";if(W()!=="firstParty")return x().sonnet45;return x().sonnet5}function $4(){if(process.env.ANTHROPIC_DEFAULT_HAIKU_MODEL)return process.env.ANTHROPIC_DEFAULT_HAIKU_MODEL;let Z=w0();if(W()==="mistral")return Z||"ministral-3b-latest";if(W()==="openai")return Z||"gpt-4o-mini";if(W()==="codex")return Z||"gpt-5.5";if(W()==="github")return Z||"github:copilot";if(W()==="gemini")return Z||"gemini-2.0-flash-lite";if(W()==="nvidia-nim")return Z||"meta/llama-3.1-8b-instruct";if(W()==="minimax")return Z||"MiniMax-M2.5-highspeed";return x().haiku45}function V9(Z){let{permissionMode:$,mainLoopModel:J,exceeds200kTokens:Q=!1}=Z;if(V2()==="opusplan"&&$==="plan"&&!Q)return Y0();if(V2()==="haiku"&&$==="plan")return S0();return J}function T0(){let Z=w0();if(W()==="github"){let $=D()||{};return x5($.model)||Z||"github:copilot"}if(W()==="gemini")return Z||"gemini-2.0-flash";if(W()==="mistral")return Z||"devstral-latest";if(W()==="openai")return Z||"gpt-4o";if(W()==="codex")return Z||"gpt-5.5";if(B5()||G5()){let $=Y0();return $+(Z2()&&!z5($)?"[1m]":"")}return S0()}function J4(){return I(T0())}function w(Z){if(Z=Z.toLowerCase(),Z.includes("claude-fable-5-1"))return"claude-fable-5-1";if(Z.includes("claude-fable-5"))return"claude-fable-5";if(Z.includes("claude-opus-5"))return"claude-opus-5";if(Z.includes("claude-opus-4-8"))return"claude-opus-4-8";if(Z.includes("claude-opus-4-7"))return"claude-opus-4-7";if(Z.includes("claude-opus-4-6"))return"claude-opus-4-6";if(Z.includes("claude-opus-4-5"))return"claude-opus-4-5";if(Z.includes("claude-opus-4-1"))return"claude-opus-4-1";if(Z.includes("claude-opus-4"))return"claude-opus-4";if(Z.includes("claude-sonnet-5"))return"claude-sonnet-5";if(Z.includes("claude-sonnet-4-6"))return"claude-sonnet-4-6";if(Z.includes("claude-sonnet-4-5"))return"claude-sonnet-4-5";if(Z.includes("claude-sonnet-4"))return"claude-sonnet-4";if(Z.includes("claude-haiku-4-5"))return"claude-haiku-4-5";if(Z.includes("claude-3-7-sonnet"))return"claude-3-7-sonnet";if(Z.includes("claude-3-5-sonnet"))return"claude-3-5-sonnet";if(Z.includes("claude-3-5-haiku"))return"claude-3-5-haiku";if(Z.includes("claude-3-opus"))return"claude-3-opus";if(Z.includes("claude-3-sonnet"))return"claude-3-sonnet";if(Z.includes("claude-3-haiku"))return"claude-3-haiku";let $=Z.match(/(claude-(\d+-\d+-)?\w+)/);if($&&$[1])return $[1];return Z}function L(Z){return w(Z5(Z))}function R8(Z=!1){if(B5()||G5())return`Opus 5 · Most capable for complex work${Z?w8(!0):""}`;return"Sonnet 5 · Best for everyday tasks"}function W9(Z){if(Z==="opusplan")return"Opus 5 in plan mode, else Sonnet 5";return Y4(I(Z))}function j9(Z){if(W()!=="firstParty")return"";let $=q2(Q2(Z));return` ·${Z?` (${W2})`:""} ${$}`}function w8(Z){if(W()!=="firstParty")return"";let $=q2(Y2(Z));return` ·${Z?` (${W2})`:""} ${$}`}function Z2(){if(q0()||x2()||W()!=="firstParty")return!1;if(O()&&S()===null)return!1;return!0}function z9(Z){if(Z==="opusplan")return"Opus Plan";if(Z==="codexplan")return"codexplan (gpt-5.5)";if(Z==="codexspark")return"codexspark (gpt-5.3-codex-spark)";if(C(Z))return r1(Z);return Y4(Z)}function Q4(Z){if(W()==="openai"||W()==="gemini"||W()==="codex"||W()==="github"){if(u5[Z])return u5[Z];if(W()==="github"){let{getCopilotDisplayName:$}=(v0(),P0(U0));return $(Z)??null}return null}switch(Z){case"gpt-5.5":return"GPT-5.5";case"gpt-5.4":return"GPT-5.4";case"gpt-5.3-codex-spark":return"GPT-5.3 Codex Spark";case x().fable51:return"Fable 5.1";case x().opus5:return"Opus 5";case x().opus48:return"Opus 4.8";case x().opus48+"[1m]":return"Opus 4.8 (1M context)";case x().opus47:return"Opus 4.7";case x().opus47+"[1m]":return"Opus 4.7 (1M context)";case x().opus46:return"Opus 4.6";case x().opus46+"[1m]":return"Opus 4.6 (1M context)";case x().opus45:return"Opus 4.5";case x().opus41:return"Opus 4.1";case x().opus40:return"Opus 4";case x().sonnet5:return"Sonnet 5";case x().sonnet46+"[1m]":return"Sonnet 4.6 (1M context)";case x().sonnet46:return"Sonnet 4.6";case x().sonnet45+"[1m]":return"Sonnet 4.5 (1M context)";case x().sonnet45:return"Sonnet 4.5";case x().sonnet40:return"Sonnet 4";case x().sonnet40+"[1m]":return"Sonnet 4 (1M context)";case x().sonnet37:return"Sonnet 3.7";case x().sonnet35:return"Sonnet 3.5";case x().haiku45:return"Haiku 4.5";case x().haiku35:return"Haiku 3.5";default:return null}}function Y4(Z){let $=Q4(Z);if($)return $;if(Z==="github:copilot")return"GPT-4o";return Z}function x9(Z){let $=Q4(Z);if($)return`Claude ${$}`;return`Claude (${Z})`}function I(Z){let $=x5(Z);if(!$)return S0();let J=$.toLowerCase(),Q=t(J),Y=Q?J.replace(/\[1m]$/i,"").trim():J;if(C(Y)){let q=(X)=>Q&&!z5(X)?X+"[1m]":X;switch(Y){case"opusplan":return q(S0());case"sonnet":return q(S0());case"haiku":return q($4());case"opus":return q(Y0());case"best":return H8();default:}}if(Y==="codexplan")return"gpt-5.5";if(Y==="codexspark")return"gpt-5.3-codex-spark";if(Y==="fable"||Y==="fable5"||Y==="fable51")return x().fable51;if(W()==="firstParty"&&K8(Y)&&L8())return Y0()+(Q?"[1m]":"");if(Q)return $.replace(/\[1m\]$/i,"").trim()+"[1m]";return $}function B9(Z,$){if(t(Z)||!t($))return Z;if(j2(I(Z)))return Z+"[1m]";return Z}function K8(Z){return F8.includes(Z)}function L8(){return!F(process.env.CLAUDIN_DISABLE_LEGACY_MODEL_REMAP)}function G9(Z){if(Z===null){if(O())return`Default (${R8()})`;return`Default (${J4()})`}let $=I(Z);return Z===$?$:`${Z} (${$})`}function H9(Z){if(W()==="foundry")return;let $=Z.toLowerCase().includes("[1m]"),J=L(Z);if(J.includes("claude-fable-5-1"))return"Fable 5.1";if(J.includes("claude-fable-5"))return"Fable 5";if(J.includes("claude-opus-5"))return"Opus 5";if(J.includes("claude-opus-4-8"))return $?"Opus 4.8 (with 1M context)":"Opus 4.8";if(J.includes("claude-opus-4-7"))return $?"Opus 4.7 (with 1M context)":"Opus 4.7";if(J.includes("claude-opus-4-6"))return $?"Opus 4.6 (with 1M context)":"Opus 4.6";if(J.includes("claude-opus-4-5"))return"Opus 4.5";if(J.includes("claude-opus-4-1"))return"Opus 4.1";if(J.includes("claude-opus-4"))return"Opus 4";if(J.includes("claude-sonnet-5"))return"Sonnet 5";if(J.includes("claude-sonnet-4-6"))return $?"Sonnet 4.6 (with 1M context)":"Sonnet 4.6";if(J.includes("claude-sonnet-4-5"))return $?"Sonnet 4.5 (with 1M context)":"Sonnet 4.5";if(J.includes("claude-sonnet-4"))return $?"Sonnet 4 (with 1M context)":"Sonnet 4";if(J.includes("claude-3-7-sonnet"))return"Claude 3.7 Sonnet";if(J.includes("claude-3-5-sonnet"))return"Claude 3.5 Sonnet";if(J.includes("claude-haiku-4-5"))return"Haiku 4.5";if(J.includes("claude-3-5-haiku"))return"Claude 3.5 Haiku";return}function R9(Z){return Z.replace(/\[(1|2)m\]/gi,"")}function w9(Z){let $=L(Z);return $.includes("opus-4-7")||$.includes("opus-4-8")||$.includes("opus-5")||$.includes("fable-5")||$.includes("sonnet-5")}var F8;var H0=H(()=>{$0();Z0();e();Z4();a();z2();m();G8();$5();d1();j0();c();x8();l1();X2();B8();C5();F8=["claude-opus-4-20250514","claude-opus-4-1-20250805","claude-opus-4-0","claude-opus-4-1"]});function B2(Z){return}async function K9(){}var q4=()=>{};function N8(Z,$={}){if($.isPro??(k8.test(Z)||X4.has(Z)))return!1;if(D8.has(Z))return!0;if(X4.has(Z))return!1;let Q=Z.match(b8);return Q?Number.parseFloat(Q[1])>5.4:!1}function D9(){return H5.filter((Z)=>N8(Z.id,{isPro:Z.isPro}))}var H5,D8,X4,b8,k8,V4,W4;var j4=H(()=>{H5=[{id:"gpt-5.6-sol",label:"gpt-5.6-sol",description:"GPT-5.6 Sol - flagship, high reasoning",reasoningEffort:"high",contextInput:1050000,contextOutput:128000},{id:"gpt-5.6-terra",label:"gpt-5.6-terra",description:"GPT-5.6 Terra with high reasoning",reasoningEffort:"high",contextInput:1050000,contextOutput:128000},{id:"gpt-5.6-luna",label:"gpt-5.6-luna",description:"GPT-5.6 Luna with high reasoning",reasoningEffort:"high",contextInput:1050000,contextOutput:128000},{id:"gpt-5.5",label:"gpt-5.5",description:"GPT-5.5 with high reasoning",reasoningEffort:"high",contextInput:1050000,contextOutput:128000},{id:"gpt-5.4",label:"gpt-5.4",description:"GPT-5.4 with high reasoning",reasoningEffort:"high",contextInput:1050000,contextOutput:128000},{id:"gpt-5.3-codex",label:"gpt-5.3-codex",description:"GPT-5.3 Codex with high reasoning",reasoningEffort:"high"},{id:"gpt-5.3-codex-spark",label:"gpt-5.3-codex-spark",description:"GPT-5.3 Codex Spark for fast tool loops"},{id:"codexspark",label:"codexspark",description:"GPT-5.3 Codex Spark alias for fast tool loops"},{id:"gpt-5.2-codex",label:"gpt-5.2-codex",description:"GPT-5.2 Codex with high reasoning",reasoningEffort:"high"},{id:"gpt-5.1-codex-max",label:"gpt-5.1-codex-max",description:"GPT-5.1 Codex Max for deep reasoning",reasoningEffort:"high"},{id:"gpt-5.1-codex-mini",label:"gpt-5.1-codex-mini",description:"GPT-5.1 Codex Mini - faster, cheaper"},{id:"gpt-5.5-mini",label:"gpt-5.5-mini",description:"GPT-5.5 Mini - faster, cheaper",reasoningEffort:"medium",contextInput:400000,contextOutput:128000},{id:"gpt-5.4-mini",label:"gpt-5.4-mini",description:"GPT-5.4 Mini - faster, cheaper",reasoningEffort:"medium",contextInput:400000,contextOutput:128000}],D8=new Set(H5.filter((Z)=>!Z.isPro).map((Z)=>Z.id)),X4=new Set(["gpt-5.5-pro"]),b8=/^gpt-(\d+\.\d+)/,k8=/-pro$/;V4=Object.fromEntries(H5.filter((Z)=>Z.contextInput!==void 0).map((Z)=>[Z.id,Z.contextInput])),W4=Object.fromEntries(H5.filter((Z)=>Z.contextOutput!==void 0).map((Z)=>[Z.id,Z.contextOutput]))});var w4={};p5(w4,{prefetchOpenAICompatibleModels:()=>T8,getDiscoveredContextWindow:()=>U8,discoverOpenAICompatibleModelOptions:()=>R4});function U8(Z){return G4.get(Z)}function v8(){return(K()?.baseUrl??"https://api.openai.com/v1").replace(/\/+$/,"")}function H4(Z){try{let $=new URL(Z).hostname.toLowerCase();return $.endsWith(".openai.azure.com")||$.endsWith(".cognitiveservices.azure.com")}catch{return!1}}function P8(Z){try{return new URL(Z).hostname.toLowerCase().includes("bankr")}catch{return!1}}function E8(Z){let $=K()?.apiKey?.trim();if(!$)return{};if(P8(Z))return{"X-API-Key":$};let J={Authorization:`Bearer ${$}`};if(H4(Z))J["api-key"]=$;return J}function O8(Z){let $=Z.endsWith("/v1")?`${Z}/models`:`${Z}/v1/models`,J=`${Z}/models`,Q=process.env.OPENAI_API_VERSION?.trim(),Y=Q&&H4(Z)?(q)=>{try{let X=new URL(q);return X.searchParams.set("api-version",Q),X.toString()}catch{return q}}:(q)=>q;if($===J)return[Y($)];return[Y($),Y(J)]}function y8(Z){try{let $=new URL(Z),J=$.pathname.replace(/\/+$/,""),Y=`${J.endsWith("/v1")?J.slice(0,-3):J}/api/tags`.replace(/\/{2,}/g,"/");return`${$.origin}${Y}`}catch{return null}}function _8(Z){if(Z>=1e6)return`${Z/1e6}M ctx`;if(Z>=1000)return`${Math.round(Z/1000)}K ctx`;return`${Z} ctx`}async function h8(Z,$){let J=new Set;for(let Q of Z)try{let Y=await U.get(Q,{headers:$,timeout:B4}),q=[];for(let X of Y.data?.data??[]){let V=X.id?.trim();if(!V||J.has(V))continue;J.add(V);let j=X.name?.trim()||V,B=X.context_length??null;if(B&&B>0)G4.set(V,B);let G=B?` · ${_8(B)}`:"";q.push({value:V,label:j,description:`${V}${G}`})}if(q.length>0)return q.sort((X,V)=>{let j=String(X.value).split("/")[0]??"",B=String(V.value).split("/")[0]??"",G=j.localeCompare(B);return G!==0?G:String(X.value).localeCompare(String(V.value))}),q}catch{z(`[ModelDiscovery] Failed to fetch OpenAI models from ${Q}`)}return[]}async function I8(Z,$){try{let J=await U.get(Z,{headers:$,timeout:B4}),Q=new Set;return(J.data?.models??[]).map((Y)=>Y.name?.trim()??"").filter((Y)=>{if(!Y||Q.has(Y))return!1;return Q.add(Y),!0}).map((Y)=>({value:Y,label:Y,description:"Ollama model"}))}catch{return z(`[ModelDiscovery] Failed to fetch Ollama models from ${Z}`),[]}}async function R4(){if(W()!=="openai")return[];let Z=v8(),$=E8(Z),J=await h8(O8(Z),$);if(J.length>0)return J;let Q=y8(Z);if(Q)return I8(Q,$);return[]}function T8(){if(f0)return f0;return f0=(async()=>{if(!x4()?.startsWith("openai:"))return;try{let $=await R4();if($.length>0)z4($)}catch{}finally{f0=null}})(),f0}var B4=5000,G4,f0=null;var F4=H(()=>{J5();Z0();n2();o();c();Z4();G4=new Map});function L4(Z,$,J){let Q=K()?.model?.trim();if(Q&&Q!==J){let q=`${Q}:${J}`;if($[q]!==void 0)return $[q];if(Z[q]!==void 0)return Z[q]}let Y=K4($,J);if(Y!==void 0)return Y;return K4(Z,J)}function K4(Z,$){if(Z[$]!==void 0)return Z[$];let J=Object.keys(Z).sort((Q,Y)=>Y.length-Q.length);for(let Q of J)if($.startsWith(Q))return Z[Q];return}function D4(Z){try{let{getDiscoveredContextWindow:J}=(F4(),P0(w4)),Q=J(Z);if(Q!==void 0)return Q}catch{}let $=L4(M8,f8,Z);if($!==void 0)return $;try{let{getCatalogCopilotContextWindow:J}=(v0(),P0(U0));return J(Z)}catch{return}}function b4(Z){let $=L4(S8,A8,Z);if($!==void 0)return $;try{let{getCatalogCopilotMaxOutputTokens:J}=(v0(),P0(U0));return J(Z)}catch{return}}var M8,S8,f8,A8;var k4=H(()=>{Z0();j4();M8={"github:copilot":128000,"github:copilot:claude-haiku-4.5":144000,"github:copilot:claude-sonnet-4.6":200000,"github:copilot:claude-opus-4.7":200000,"github:copilot:gpt-4.1":128000,"github:copilot:gpt-4o":128000,"github:copilot:gpt-5-mini":264000,"github:copilot:gpt-5.2-codex":400000,"github:copilot:gpt-5.4":400000,"github:copilot:gpt-5.5":400000,"github:copilot:gemini-3.1-pro-preview":200000,"github:copilot:grok-code-fast-1":256000,"github_copilot/claude-haiku-4.5":144000,"github_copilot/claude-sonnet-4.6":200000,"github_copilot/claude-opus-4.7":200000,"github_copilot/gpt-4.1":128000,"github_copilot/gpt-4o":128000,"github_copilot/gpt-5-mini":264000,"github_copilot/gpt-5.2-codex":400000,"github_copilot/gpt-5.4":400000,"github_copilot/gpt-5.5":400000,"github_copilot/gemini-3.1-pro-preview":200000,"github_copilot/grok-code-fast-1":256000,...V4,"gpt-5.5-nano":400000,"gpt-5.4-nano":400000,"gpt-4o":128000,"gpt-4o-mini":128000,"gpt-4.1":1047576,"gpt-4.1-mini":1047576,"gpt-4.1-nano":1047576,"gpt-4-turbo":128000,"gpt-4":8192,o1:200000,"o1-mini":128000,"o1-preview":128000,"o1-pro":200000,o3:200000,"o3-mini":200000,"o4-mini":200000,"deepseek-v4-flash":1048576,"deepseek-v4-pro":1048576,"deepseek-chat":128000,"deepseek-reasoner":128000,"llama-3.3-70b-versatile":128000,"llama-3.1-8b-instant":128000,"mixtral-8x7b-32768":32768,"mistral-large-latest":256000,"mistral-small-latest":256000,"devstral-latest":256000,"ministral-3b-latest":256000,"nvidia/llama-3.1-nemotron-70b-instruct":128000,"nvidia/llama-3.1-nemotron-ultra-253b-v1":128000,"nvidia/nemotron-mini-4b-instruct":32768,"meta/llama-3.1-405b-instruct":128000,"meta/llama-3.1-70b-instruct":128000,"meta/llama-3.1-8b-instruct":128000,"meta/llama-3.2-90b-instruct":128000,"meta/llama-3.2-1b-instruct":128000,"meta/llama-3.2-3b-instruct":128000,"meta/llama-3.3-70b-instruct":128000,"google/gemma-2-27b-it":8192,"google/gemma-2-9b-it":8192,"google/gemma-3-27b-it":131072,"google/gemma-3-12b-it":131072,"google/gemma-3-4b-it":131072,"deepseek-ai/deepseek-r1":128000,"deepseek-ai/deepseek-v3":128000,"deepseek-ai/deepseek-v3.2":128000,"qwen/qwen3-32b":128000,"qwen/qwen3-8b":128000,"qwen/qwen2.5-7b-instruct":32768,"mistralai/mistral-large-3-675b-instruct-2512":256000,"mistralai/mistral-large-2-instruct":256000,"mistralai/mistral-small-3.1-24b-instruct-2503":32768,"mistralai/mixtral-8x7b-instruct-v0.1":32768,"microsoft/phi-4-mini-instruct":16384,"microsoft/phi-3.5-mini-instruct":16384,"microsoft/phi-3-mini-128k-instruct":128000,"ibm/granite-3.3-8b-instruct":8192,"ibm/granite-8b-code-instruct":8192,"z-ai/glm5":200000,"z-ai/glm4.7":128000,"moonshotai/kimi-k2.5":200000,"moonshotai/kimi-k2-instruct":128000,"databricks/dbrx-instruct":131072,"ai21labs/jamba-1.5-large-instruct":256000,"ai21labs/jamba-1.5-mini-instruct":256000,"01-ai/yi-large":32768,"MiniMax-M2.7":204800,"MiniMax-M2.7-highspeed":204800,"MiniMax-M2.5":204800,"MiniMax-M2.5-highspeed":204800,"MiniMax-M2.1":204800,"MiniMax-M2.1-highspeed":204800,"minimax-m2.7":204800,"minimax-m2.7-highspeed":204800,"minimax-m2.5":204800,"minimax-m2.5-highspeed":204800,"minimax-m2.1":204800,"minimax-m2.1-highspeed":204800,"MiniMax-Text-01":524288,"MiniMax-Text-01-Preview":262144,"MiniMax-Vision-01":32768,"MiniMax-Vision-01-Fast":16384,"MiniMax-M2":204800,"google/gemini-2.0-flash":1048576,"google/gemini-2.5-pro":1048576,"gemini-2.0-flash":1048576,"gemini-2.5-pro":1048576,"gemini-2.5-flash":1048576,"gemini-3.1-pro":1048576,"gemini-3.1-flash-lite-preview":1048576,"llama3.3:70b":128000,"llama3.1:8b":128000,"llama3.2:3b":128000,"qwen2.5-coder:32b":32768,"qwen2.5-coder:7b":32768,"deepseek-coder-v2:16b":163840,"deepseek-r1:14b":65536,"mistral:7b":32768,"phi4:14b":16384,"gemma2:27b":8192,"codellama:13b":16384,"llama3.2:1b":128000,"qwen3:8b":128000,codestral:32768,"qwen3.6-plus":1e6,"qwen3.5-plus":1e6,"qwen3-coder-plus":1e6,"qwen3-coder-next":262144,"qwen3-max":262144,"qwen3-max-2026-01-23":262144,"kimi-k2.5":262144,"glm-5":202752,"glm-4.7":202752,k3:1048576,"kimi-for-coding":262144,"kimi-for-coding-highspeed":262144,"kimi-k2.6":262144,"kimi-k2":131072,"kimi-k2-instruct":131072,"kimi-k2-thinking":262144,"moonshot-v1-8k":8192,"moonshot-v1-32k":32768,"moonshot-v1-128k":131072},S8={"github:copilot":16384,"github:copilot:claude-haiku-4.5":32768,"github:copilot:claude-sonnet-4.6":32000,"github:copilot:claude-opus-4.7":32000,"github:copilot:gpt-4.1":16384,"github:copilot:gpt-4o":16384,"github:copilot:gpt-5-mini":64000,"github:copilot:gpt-5.2-codex":128000,"github:copilot:gpt-5.4":128000,"github:copilot:gpt-5.5":128000,"github:copilot:gemini-3.1-pro-preview":64000,"github:copilot:grok-code-fast-1":64000,"github_copilot/claude-haiku-4.5":32768,"github_copilot/claude-sonnet-4.6":32000,"github_copilot/claude-opus-4.7":32000,"github_copilot/gpt-4.1":16384,"github_copilot/gpt-4o":16384,"github_copilot/gpt-5-mini":64000,"github_copilot/gpt-5.2-codex":128000,"github_copilot/gpt-5.4":128000,"github_copilot/gpt-5.5":128000,"github_copilot/gemini-3.1-pro-preview":64000,"github_copilot/grok-code-fast-1":64000,...W4,"gpt-5.5-nano":128000,"gpt-5.4-nano":128000,"gpt-4o":16384,"gpt-4o-mini":16384,"gpt-4.1":32768,"gpt-4.1-mini":32768,"gpt-4.1-nano":32768,"gpt-4-turbo":4096,"gpt-4":4096,o1:1e5,"o1-mini":65536,"o1-preview":32768,"o1-pro":1e5,o3:1e5,"o3-mini":1e5,"o4-mini":1e5,"deepseek-v4-flash":262144,"deepseek-v4-pro":262144,"deepseek-chat":8192,"deepseek-reasoner":65536,"llama-3.3-70b-versatile":32768,"llama-3.1-8b-instant":8192,"mixtral-8x7b-32768":32768,"mistral-large-latest":32768,"mistral-small-latest":32768,"MiniMax-M2.7":131072,"MiniMax-M2.7-highspeed":131072,"MiniMax-M2.5":131072,"MiniMax-M2.5-highspeed":131072,"MiniMax-M2.1":131072,"MiniMax-M2.1-highspeed":131072,"minimax-m2.7":131072,"minimax-m2.7-highspeed":131072,"minimax-m2.5":131072,"minimax-m2.5-highspeed":131072,"minimax-m2.1":131072,"minimax-m2.1-highspeed":131072,"MiniMax-M2":131072,"MiniMax-Text-01":65536,"MiniMax-Text-01-Preview":65536,"MiniMax-Vision-01":16384,"MiniMax-Vision-01-Fast":16384,"google/gemini-2.0-flash":8192,"google/gemini-2.5-pro":65536,"gemini-2.0-flash":8192,"gemini-2.5-pro":65536,"gemini-2.5-flash":65536,"gemini-3.1-pro":65536,"gemini-3.1-flash-lite-preview":65536,"llama3.3:70b":4096,"llama3.1:8b":4096,"llama3.2:3b":4096,"qwen2.5-coder:32b":8192,"qwen2.5-coder:7b":8192,"deepseek-coder-v2:16b":8192,"deepseek-r1:14b":8192,"mistral:7b":4096,"phi4:14b":4096,"gemma2:27b":4096,"codellama:13b":4096,"llama3.2:1b":4096,"qwen3:8b":8192,codestral:8192,"nvidia/llama-3.1-nemotron-70b-instruct":32768,"nvidia/nemotron-mini-4b-instruct":8192,"meta/llama-3.1-405b-instruct":32768,"meta/llama-3.1-70b-instruct":32768,"meta/llama-3.2-90b-instruct":32768,"meta/llama-3.3-70b-instruct":32768,"google/gemma-2-27b-it":4096,"google/gemma-3-27b-it":16384,"google/gemma-3-12b-it":16384,"deepseek-ai/deepseek-r1":32768,"deepseek-ai/deepseek-v3":32768,"deepseek-ai/deepseek-v3.2":32768,"qwen/qwen3-32b":32768,"qwen/qwen2.5-7b-instruct":8192,"mistralai/mistral-large-3-675b-instruct-2512":32768,"mistralai/mixtral-8x7b-instruct-v0.1":8192,"microsoft/phi-4-mini-instruct":4096,"microsoft/phi-3.5-mini-instruct":4096,"ibm/granite-3.3-8b-instruct":4096,"z-ai/glm5":32768,"moonshotai/kimi-k2.5":32768,"databricks/dbrx-instruct":32768,"ai21labs/jamba-1.5-large-instruct":32768,"01-ai/yi-large":8192,"qwen3.6-plus":65536,"qwen3.5-plus":65536,"qwen3-coder-plus":65536,"qwen3-coder-next":65536,"qwen3-max":32768,"qwen3-max-2026-01-23":32768,"kimi-k2.5":32768,"glm-5":16384,"glm-4.7":16384,k3:32768,"kimi-for-coding":32768,"kimi-for-coding-highspeed":32768,"kimi-k2.6":32768,"kimi-k2":32768,"kimi-k2-instruct":32768,"kimi-k2-thinking":32768,"moonshot-v1-8k":4096,"moonshot-v1-32k":16384,"moonshot-v1-128k":32768},f8=(()=>{try{let Z=process.env.CLAUDIN_OPENAI_CONTEXT_WINDOWS;if(Z){let $=JSON.parse(Z);if(typeof $==="object"&&$!==null)return $}}catch{}return{}})(),A8=(()=>{try{let Z=process.env.CLAUDIN_OPENAI_MAX_OUTPUT_TOKENS;if(Z){let $=JSON.parse(Z);if(typeof $==="object"&&$!==null)return $}}catch{}return{}})()});function N4(){let Z=K()?.transport;return Z==="openai_compat"||Z==="gemini"||Z==="mistral"||Z==="github_copilot"||Z==="codex_responses"}function q0(){return F(process.env.CLAUDIN_DISABLE_1M_CONTEXT)}function t(Z){if(q0())return!1;return/\[1m\]/i.test(Z)}function j2(Z){if(q0())return!1;let $=L(Z);return $.includes("claude-sonnet-5")||$.includes("claude-sonnet-4")||$.includes("opus-4-6")||$.includes("opus-4-7")||$.includes("opus-4-8")||$.includes("opus-5")||$.includes("fable-5")}function p9(Z,$){if(t(Z))return 1e6;if(N4()){let Q=D4(Z);if(Q!==void 0)return Q;return console.error(`[context] Warning: model "${Z}" not in context window table — using conservative 128k default. `+"Add it to src/providers/model/openaiContextWindows.ts for accurate compaction."),u8}let J=B2(Z);if(J?.max_input_tokens&&J.max_input_tokens>=1e5){if(J.max_input_tokens>G2&&q0())return G2;return J.max_input_tokens}if(!q0()&&(L(Z).includes("fable-5")||L(Z).includes("sonnet-5")||L(Z).includes("opus-5")))return 1e6;if($?.includes(_0)&&j2(Z))return 1e6;if(p8(Z))return 1e6;return G2}function p8(Z){if(q0())return!1;if(t(Z))return!1;if(!L(Z).includes("sonnet-4-6"))return!1;return b().clientDataCache?.coral_reef_sonnet==="true"}function m9(Z,$){if(!Z)return{used:null,remaining:null};let J=Z.input_tokens+Z.cache_creation_input_tokens+Z.cache_read_input_tokens,Q=Math.round(J/$*100),Y=Math.min(100,Math.max(0,Q));return{used:Y,remaining:100-Y}}function c9(Z){let $,J;if(N4()){let q=b4(Z);if(q!==void 0)return{default:q,upperLimit:q}}let Q=L(Z);if(Q.includes("fable-5")||Q.includes("opus-5")||Q.includes("opus-4-7")||Q.includes("opus-4-6"))$=64000,J=128000;else if(Q.includes("sonnet-4-6"))$=32000,J=128000;else if(Q.includes("opus-4-5")||Q.includes("sonnet-4")||Q.includes("haiku-4"))$=32000,J=64000;else if(Q.includes("opus-4-1")||Q.includes("opus-4"))$=32000,J=32000;else if(Q.includes("claude-3-opus"))$=4096,J=4096;else if(Q.includes("claude-3-sonnet"))$=8192,J=8192;else if(Q.includes("claude-3-haiku"))$=4096,J=4096;else if(Q.includes("3-5-sonnet")||Q.includes("3-5-haiku"))$=8192,J=8192;else if(Q.includes("3-7-sonnet"))$=32000,J=64000;else $=C8,J=g8;let Y=B2(Z);if(Y?.max_tokens&&Y.max_tokens>=4096)J=Y.max_tokens,$=Math.min($,J);return{default:$,upperLimit:J}}var G2=200000,u8,u9=20000,C8=32000,g8=64000,C9=8000,g9=64000;var z2=H(()=>{r5();Z0();e();m();H0();q4();k4();u8=(()=>{let Z=parseInt(process.env.CLAUDIN_OPENAI_FALLBACK_CONTEXT_WINDOW??"",10);return!isNaN(Z)&&Z>0?Z:128000})()});var m8,U4;var v4=H(()=>{d0();c();m8=[{modelEnvVar:"ANTHROPIC_DEFAULT_OPUS_MODEL",capabilitiesEnvVar:"ANTHROPIC_DEFAULT_OPUS_MODEL_SUPPORTED_CAPABILITIES"},{modelEnvVar:"ANTHROPIC_DEFAULT_SONNET_MODEL",capabilitiesEnvVar:"ANTHROPIC_DEFAULT_SONNET_MODEL_SUPPORTED_CAPABILITIES"},{modelEnvVar:"ANTHROPIC_DEFAULT_HAIKU_MODEL",capabilitiesEnvVar:"ANTHROPIC_DEFAULT_HAIKU_MODEL_SUPPORTED_CAPABILITIES"}],U4=_((Z,$)=>{if(W()==="firstParty")return;let J=Z.toLowerCase();for(let Q of m8){let Y=process.env[Q.modelEnvVar],q=process.env[Q.capabilitiesEnvVar];if(!Y||q===void 0)continue;if(J!==Y.toLowerCase())continue;return q.toLowerCase().split(",").map((X)=>X.trim()).includes($)}return},(Z,$)=>`${Z.toLowerCase()}:${$}`)});function c8(Z){let $=[],J=[];for(let Q of Z)if(_4.includes(Q))$.push(Q);else J.push(Q);return{allowed:$,disallowed:J}}function V3(Z){if(!Z||Z.length===0)return;if(O()){console.warn("Warning: Custom betas are only available for API key users. Ignoring provided betas.");return}let{allowed:$,disallowed:J}=c8(Z);for(let Q of J)console.warn(`Warning: Beta header '${Q}' is not allowed. Only the following betas are supported: ${_4.join(", ")}`);return $.length>0?$:void 0}function P4(Z){let $=U4(Z,"interleaved_thinking");if($!==void 0)return $;let J=L(Z),Q=W();if(Q==="foundry")return!0;if(Q==="firstParty")return!J.includes("claude-3-");return J.includes("claude-opus-4")||J.includes("claude-opus-5")||J.includes("claude-sonnet-5")||J.includes("claude-sonnet-4")}function d8(Z){let $=L(Z);return $.includes("claude-opus-4")||$.includes("claude-opus-5")||$.includes("claude-sonnet-5")||$.includes("claude-sonnet-4")||$.includes("claude-haiku-4")}function i8(Z){let $=L(Z),J=W();if(J==="foundry")return!0;if(J==="firstParty")return!$.includes("claude-3-");return $.includes("claude-opus-4")||$.includes("claude-opus-5")||$.includes("claude-sonnet-5")||$.includes("claude-sonnet-4")||$.includes("claude-haiku-4")}function t8(Z){let $=L(Z),J=W();if(J!=="firstParty"&&J!=="foundry")return!1;return $.includes("claude-fable-5")||$.includes("claude-opus-5")||$.includes("claude-sonnet-5")||$.includes("claude-sonnet-4-6")||$.includes("claude-sonnet-4-5")||$.includes("claude-opus-4-1")||$.includes("claude-opus-4-5")||$.includes("claude-opus-4-6")||$.includes("claude-opus-4-7")||$.includes("claude-opus-4-8")||$.includes("claude-haiku-4-5")}function W3(Z){let $=L(Z);if(!$.startsWith("claude-"))return!1;if($.includes("claude-3-"))return!1;if(/claude-(opus|sonnet|haiku)-4(?!-[6-9])/.test($))return!1;return!0}function j3(){let Z=W();if(Z==="vertex"||Z==="bedrock")return U1;return N1}function E4(){return(W()==="firstParty"||W()==="foundry")&&!F(process.env.CLAUDIN_DISABLE_EXPERIMENTAL_BETAS)}function z3(){if(F(process.env.CLAUDIN_DISABLE_GLOBAL_CACHE_SCOPE))return!1;return W()==="firstParty"&&!F(process.env.CLAUDIN_DISABLE_EXPERIMENTAL_BETAS)}function x3(Z,$){let J=[...h4(Z)];if($?.isAgenticQuery){if(!J.includes(V5))J.push(V5)}let Q=O4();if(!Q||Q.length===0)return J;return[...J,...Q.filter((Y)=>!J.includes(Y))]}function I4(){H2.cache?.clear?.(),h4.cache?.clear?.(),n8.cache?.clear?.()}var _4,H2,h4,n8;var T4=H(()=>{d0();I1();$0();r5();y0();a();z2();m();H0();v4();c();j0();_4=[_0];H2=_((Z)=>{let $=[],J=L(Z).includes("haiku"),Q=W(),Y=E4();if(!J)$.push(V5);if(O())$.push(O0);if(t(Z))$.push(_0);if(!F(process.env.DISABLE_INTERLEAVED_THINKING)&&P4(Z))$.push(D1);if(Y&&P4(Z)&&!A()&&D().showThinkingSummaries!==!0)$.push(P1),$.push(E1);let q=i8(Z);if(E4()&&q)$.push(b1);let X=y4("tengu_tool_pear"),V=!X&&(F(process.env.CLAUDIN_JSON_TOOL_USE)||I0("tengu_amber_json_tools",!1));if(Y&&t8(Z)&&X)$.push(k1);if(Y&&V)$.push(O1);if(Q==="vertex"&&d8(Z))$.push(s5);if(Q==="foundry")$.push(s5);if(Y)$.push(v1);if(process.env.ANTHROPIC_BETAS)$.push(...process.env.ANTHROPIC_BETAS.split(",").map((j)=>j.trim()).filter(Boolean));return $}),h4=_((Z)=>{let $=H2(Z);if(W()==="bedrock")return $.filter((J)=>!a5.has(J));return $}),n8=_((Z)=>{return H2(Z).filter((J)=>a5.has(J))})});import{execFile as l8}from"child_process";function M4(Z){return new Promise(($)=>{l8("security",["find-generic-password","-a",w5(),"-w","-s",Z],{encoding:"utf-8",timeout:s8},(J,Q)=>{$({stdout:J?null:Q?.trim()||null,timedOut:Boolean(J&&"killed"in J&&J.killed)})})})}function w3(){if(process.platform!=="darwin"||R5||u())return;let Z=M4(d(S4)),$=M4(d());R5=Promise.all([Z,$]).then(([J,Q])=>{if(!J.timedOut)f4(J.stdout);if(!Q.timedOut)R2={stdout:Q.stdout}})}async function F3(){if(R5)await R5}function A4(){return R2}function w2(){R2=null}var s8=1e4,R2=null,R5=null;var u4=H(()=>{m();n5()});function F2(Z,$,J){return new Promise((Q,Y)=>{if($?.aborted){if(J?.throwOnAbort||J?.abortError)Y(J.abortError?.()??Error("aborted"));else Q();return}let q=setTimeout((V,j,B)=>{V?.removeEventListener("abort",j),B()},Z,$,X,Q);function X(){if(clearTimeout(q),J?.throwOnAbort||J?.abortError)Y(J.abortError?.()??Error("aborted"));else Q()}if($?.addEventListener("abort",X,{once:!0}),J?.unref)q.unref()})}var C4=()=>{};function D3(){return g4}function p4(){g4.clear()}var g4;var m4=H(()=>{g4=new Map});var CZ={};p5(CZ,{validateForceLoginOrg:()=>uZ,saveOAuthTokensIfNeeded:()=>Y7,saveApiKey:()=>T2,removeApiKey:()=>vZ,refreshGcpCredentialsIfNeeded:()=>I2,refreshGcpAuth:()=>J7,refreshAwsAuth:()=>Z7,refreshAndGetAwsCredentials:()=>V0,prefetchGcpCredentialsIfSafe:()=>bZ,prefetchAwsCredentialsAndBedRockInfoIfSafe:()=>kZ,prefetchApiKeyFromApiKeyHelperIfSafe:()=>zZ,isUsing3PServices:()=>D5,isTeamSubscriber:()=>hZ,isTeamPremiumSubscriber:()=>G5,isProSubscriber:()=>x2,isOverageProvisioningAllowed:()=>yZ,isOtelHeadersHelperFromProjectOrLocalSettings:()=>W7,isMaxSubscriber:()=>B5,isGcpAuthRefreshFromProjectSettings:()=>h2,isEnterpriseSubscriber:()=>IZ,isCustomApiKeyApproved:()=>UZ,isConsumerSubscriber:()=>fZ,isClaudeAISubscriber:()=>O,isAwsCredentialExportFromProjectSettings:()=>y2,isAwsAuthRefreshFromProjectSettings:()=>E2,isAnthropicAuthEnabled:()=>D0,is1PApiCustomer:()=>OZ,hasProfileScope:()=>Q0,hasOpusAccess:()=>_Z,hasAnthropicApiKeyAuth:()=>XZ,handleOAuth401Error:()=>$2,getSubscriptionType:()=>S,getSubscriptionName:()=>X7,getRateLimitTier:()=>q7,getOtelHeadersFromHelper:()=>MZ,getOauthAccountInfo:()=>L5,getConfiguredApiKeyHelper:()=>n,getClaudeAIOAuthTokensAsync:()=>C0,getClaudeAIOAuthTokens:()=>R,getAuthTokenSource:()=>v2,getApiKeyHelperElapsedMs:()=>VZ,getApiKeyFromConfigOrMacOSKeychain:()=>k5,getApiKeyFromApiKeyHelperCached:()=>L2,getApiKeyFromApiKeyHelper:()=>e4,getAnthropicApiKeyWithSource:()=>p0,getAnthropicApiKey:()=>Q5,getAccountInformation:()=>AZ,clearOAuthTokenCache:()=>M2,clearGcpCredentialsCache:()=>DZ,clearAwsCredentialsCache:()=>RZ,clearApiKeyHelperCache:()=>jZ,checkGcpCredentialsValid:()=>$7,checkAndRefreshOAuthTokenIfNeeded:()=>m0,calculateApiKeyHelperTTL:()=>o4});import{exec as a4}from"child_process";import{mkdir as JZ,stat as QZ}from"fs/promises";import{join as YZ}from"path";function K5(){return F(process.env.CLAUDE_CODE_REMOTE)||process.env.CLAUDE_CODE_ENTRYPOINT==="claude-desktop"}function D0(){if(u())return!1;if(process.env.ANTHROPIC_UNIX_SOCKET)return!!process.env.CLAUDE_CODE_OAUTH_TOKEN;let Z=D5(),J=(D()||{}).apiKeyHelper,Q=process.env.ANTHROPIC_AUTH_TOKEN||J||process.env.CLAUDE_CODE_API_KEY_FILE_DESCRIPTOR,Y;try{({source:Y}=p0({skipRetrievingKeyFromApiKeyHelper:!0}))}catch{Y="none"}let q=Y==="ANTHROPIC_API_KEY"||Y==="apiKeyHelper";return!(Z||Q&&!K5()||q&&!K5())}function v2(){if(u()){if(n())return{source:"apiKeyHelper",hasToken:!0};return{source:"none",hasToken:!1}}if(process.env.ANTHROPIC_AUTH_TOKEN&&!K5())return{source:"ANTHROPIC_AUTH_TOKEN",hasToken:!0};if(process.env.CLAUDE_CODE_OAUTH_TOKEN)return{source:"CLAUDE_CODE_OAUTH_TOKEN",hasToken:!0};if(q5()){if(process.env.CLAUDE_CODE_OAUTH_TOKEN_FILE_DESCRIPTOR)return{source:"CLAUDE_CODE_OAUTH_TOKEN_FILE_DESCRIPTOR",hasToken:!0};return{source:"CCR_OAUTH_TOKEN_FILE",hasToken:!0}}if(n()&&!K5())return{source:"apiKeyHelper",hasToken:!0};let J=R();if(L0(J?.scopes)&&J?.accessToken)return{source:"claude.ai",hasToken:!0};return{source:"none",hasToken:!1}}function Q5(){let{key:Z}=p0();return Z}function XZ(){try{let{key:Z,source:$}=p0({skipRetrievingKeyFromApiKeyHelper:!0});return Z!==null&&$!=="none"}catch{return!1}}function p0(Z={}){let $=(()=>{let X=K();if(X?.transport!=="anthropic")return;let V=X.apiKey?.trim();return V&&V.length>0?V:void 0})();if(u()){if($)return{key:$,source:"ANTHROPIC_API_KEY"};if(n())return{key:Z.skipRetrievingKeyFromApiKeyHelper?null:L2(),source:"apiKeyHelper"};return{key:null,source:"none"}}let J=$;if(W5()&&J)return{key:J,source:"ANTHROPIC_API_KEY"};if(F(process.env.CI)){let X=t5();if(X)return{key:X,source:"ANTHROPIC_API_KEY"};if(!D5()&&!J&&!process.env.CLAUDE_CODE_OAUTH_TOKEN&&!process.env.CLAUDE_CODE_OAUTH_TOKEN_FILE_DESCRIPTOR)throw Error("Configure an Anthropic profile via /provider or set CLAUDE_CODE_OAUTH_TOKEN");if(J&&!D5())return{key:J,source:"ANTHROPIC_API_KEY"};return{key:null,source:"none"}}if(J&&b().customApiKeyResponses?.approved?.includes(X5(J)))return{key:J,source:"ANTHROPIC_API_KEY"};let Q=t5();if(Q)return{key:Q,source:"ANTHROPIC_API_KEY"};if(n()){if(Z.skipRetrievingKeyFromApiKeyHelper)return{key:null,source:"apiKeyHelper"};return{key:L2(),source:"apiKeyHelper"}}let q=k5();if(q)return q;return{key:null,source:"none"}}function n(){if(u())return v("flagSettings")?.apiKeyHelper;return(D()||{}).apiKeyHelper}function r4(){let Z=n();if(!Z)return!1;let $=v("projectSettings"),J=v("localSettings");return $?.apiKeyHelper===Z||J?.apiKeyHelper===Z}function P2(){return(D()||{}).awsAuthRefresh}function E2(){let Z=P2();if(!Z)return!1;let $=v("projectSettings"),J=v("localSettings");return $?.awsAuthRefresh===Z||J?.awsAuthRefresh===Z}function O2(){return(D()||{}).awsCredentialExport}function y2(){let Z=O2();if(!Z)return!1;let $=v("projectSettings"),J=v("localSettings");return $?.awsCredentialExport===Z||J?.awsCredentialExport===Z}function o4(){let Z=process.env.CLAUDIN_API_KEY_HELPER_TTL_MS;if(Z){let $=parseInt(Z,10);if(!Number.isNaN($)&&$>=0)return $;z(`Found CLAUDIN_API_KEY_HELPER_TTL_MS env var, but it was not a valid number. Got ${Z}`,{level:"error"})}return qZ}function VZ(){let Z=g?.startedAt;return Z?Date.now()-Z:0}async function e4(Z){if(!n())return null;let $=o4();if(y){if(Date.now()-y.timestamp<$)return y.value;if(!g)g={promise:c4(Z,!1,K0),startedAt:null};return y.value}if(g)return g.promise;return g={promise:c4(Z,!0,K0),startedAt:Date.now()},g.promise}async function c4(Z,$,J){try{let Q=await WZ(Z);if(J!==K0)return Q;if(Q!==null)y={value:Q,timestamp:Date.now()};return Q}catch(Q){if(J!==K0)return" ";let Y=Q instanceof Error?Q.message:String(Q);if(console.error(f.red(`apiKeyHelper failed: ${Y}`)),z(`Error getting API key from apiKeyHelper: ${Y}`,{level:"error"}),!$&&y&&y.value!==" ")return y={...y,timestamp:Date.now()},y.value;return y={value:" ",timestamp:Date.now()}," "}finally{if(J===K0)g=null}}async function WZ(Z){let $=n();if(!$)return null;if(r4()){if(!p()&&!Z){let q=Error("Security: apiKeyHelper executed before workspace trust is confirmed. If you see this message, post in https://github.com/claudio-labs/claudin/issues.");return g0("apiKeyHelper invoked before trust check",q),null}}let J=await B0($,{shell:!0,timeout:600000,reject:!1});if(J.failed){let Y=J.timedOut?"timed out":`exited ${J.exitCode}`,q=J.stderr?.trim();throw Error(q?`${Y}: ${q}`:Y)}let Q=J.stdout?.trim();if(!Q)throw Error("did not return a value");return Q}function L2(){return y?.value??null}function jZ(){K0++,y=null,g=null}function zZ(Z){if(r4()&&!p())return;e4(Z)}async function BZ(){let Z=P2();if(!Z)return!1;if(E2()){if(!p()&&!A()){let J=Error("Security: awsAuthRefresh executed before workspace trust is confirmed. If you see this message, post in https://github.com/claudio-labs/claudin/issues.");return g0("awsAuthRefresh invoked before trust check",J),!1}}try{return z("Fetching AWS caller identity for AWS auth refresh command"),await l5(),z("Fetched AWS caller identity, skipping AWS auth refresh command"),!1}catch{return Z7(Z)}}function Z7(Z){z("Running AWS auth refresh command");let $=T.getInstance();return $.startAuthentication(),new Promise((J)=>{let Q=a4(Z,{timeout:GZ});Q.stdout.on("data",(Y)=>{let q=Y.toString().trim();if(q)$.addOutput(q),z(q,{level:"debug"})}),Q.stderr.on("data",(Y)=>{let q=Y.toString().trim();if(q)$.setError(q),z(q,{level:"error"})}),Q.on("close",(Y,q)=>{if(Y===0)z("AWS auth refresh completed successfully"),$.endAuthentication(!0),J(!0);else{let V=q==="SIGTERM"?f.red("AWS auth refresh timed out after 3 minutes. Run your auth command manually in a separate terminal."):f.red("Error running awsAuthRefresh (in settings or ~/.claudin/config.json):");console.error(V),$.endAuthentication(!1),J(!1)}})})}async function HZ(){let Z=O2();if(!Z)return null;if(y2()){if(!p()&&!A()){let J=Error("Security: awsCredentialExport executed before workspace trust is confirmed. If you see this message, post in https://github.com/claudio-labs/claudin/issues.");return g0("awsCredentialExport invoked before trust check",J),null}}try{return z("Fetching AWS caller identity for credential export command"),await l5(),z("Fetched AWS caller identity, skipping AWS credential export command"),null}catch{try{z("Running AWS credential export command");let $=await B0(Z,{shell:!0,reject:!1});if($.exitCode!==0||!$.stdout)throw Error("awsCredentialExport did not return a valid value");let J=k2($.stdout.trim());if(!R1(J))throw Error("awsCredentialExport did not return valid AWS STS output structure");return z("AWS credentials retrieved from awsCredentialExport"),{accessKeyId:J.Credentials.AccessKeyId,secretAccessKey:J.Credentials.SecretAccessKey,sessionToken:J.Credentials.SessionToken}}catch($){let J=f.red("Error getting AWS credentials from awsCredentialExport (in settings or ~/.claudin/config.json):");if($ instanceof Error)console.error(J,$.message);else console.error(J,$);return null}}}function RZ(){V0.cache.clear()}function _2(){return(D()||{}).gcpAuthRefresh}function h2(){let Z=_2();if(!Z)return!1;let $=v("projectSettings"),J=v("localSettings");return $?.gcpAuthRefresh===Z||J?.gcpAuthRefresh===Z}async function $7(){try{let{GoogleAuth:Z}=await import("google-auth-library"),$=new Z({scopes:["https://www.googleapis.com/auth/cloud-platform"]}),J=(async()=>{await(await $.getClient()).getAccessToken()})(),Q=F2(wZ).then(()=>{throw new j7("GCP credentials check timed out")});return await Promise.race([J,Q]),!0}catch{return!1}}async function KZ(){let Z=_2();if(!Z)return!1;if(h2()){if(!p()&&!A()){let J=Error("Security: gcpAuthRefresh executed before workspace trust is confirmed. If you see this message, post in https://github.com/claudio-labs/claudin/issues.");return g0("gcpAuthRefresh invoked before trust check",J),!1}}try{if(z("Checking GCP credentials validity for auth refresh"),await $7())return z("GCP credentials are valid, skipping auth refresh command"),!1}catch{}return J7(Z)}function J7(Z){z("Running GCP auth refresh command");let $=T.getInstance();return $.startAuthentication(),new Promise((J)=>{let Q=a4(Z,{timeout:LZ});Q.stdout.on("data",(Y)=>{let q=Y.toString().trim();if(q)$.addOutput(q),z(q,{level:"debug"})}),Q.stderr.on("data",(Y)=>{let q=Y.toString().trim();if(q)$.setError(q),z(q,{level:"error"})}),Q.on("close",(Y,q)=>{if(Y===0)z("GCP auth refresh completed successfully"),$.endAuthentication(!0),J(!0);else{let V=q==="SIGTERM"?f.red("GCP auth refresh timed out after 3 minutes. Run your auth command manually in a separate terminal."):f.red("Error running gcpAuthRefresh (in settings or ~/.claudin/config.json):");console.error(V),$.endAuthentication(!1),J(!1)}})})}function DZ(){I2.cache.clear()}function bZ(){if(!_2())return;if(h2()){if(!p()&&!A())return}I2()}function kZ(){let Z=P2(),$=O2();if(!Z&&!$)return;if(E2()||y2()){if(!p()&&!A())return}V0(),x()}function NZ(Z){return/^[a-zA-Z0-9-_]+$/.test(Z)}async function T2(Z){if(!NZ(Z))throw Error("Invalid API key format. API key must contain only alphanumeric characters, dashes, and underscores.");await Q7();let $=!1;if(process.platform==="darwin")try{let Q=d(),Y=w5(),q=Buffer.from(Z,"utf-8").toString("hex"),X=`add-generic-password -U -a "${Y}" -s "${Q}" -X "${q}"
|
|
2
|
+
`;await B0("security",["-i"],{input:X,reject:!1}),$=!0}catch(Q){k(Q)}let J=X5(Z);M((Q)=>{let Y=Q.customApiKeyResponses?.approved??[];return{...Q,primaryApiKey:$?Q.primaryApiKey:Z,customApiKeyResponses:{...Q.customApiKeyResponses,approved:Y.includes(J)?Y:[...Y,J],rejected:Q.customApiKeyResponses?.rejected??[]}}}),k5.cache.clear?.(),w2()}function UZ(Z){let $=b(),J=X5(Z);return $.customApiKeyResponses?.approved?.includes(J)??!1}async function vZ(){await Q7(),M((Z)=>({...Z,primaryApiKey:void 0})),k5.cache.clear?.(),w2()}async function Q7(){try{await G1()}catch(Z){k(Z)}}function Y7(Z){if(!L0(Z.scopes))return{success:!0};if(!Z.refreshToken||!Z.expiresAt)return{success:!0};let $=b5();try{let J=$.read()||{},Q=J.claudeAiOauth;J.claudeAiOauth={accessToken:Z.accessToken,refreshToken:Z.refreshToken,expiresAt:Z.expiresAt,scopes:Z.scopes,subscriptionType:Z.subscriptionType??Q?.subscriptionType??null,rateLimitTier:Z.rateLimitTier??Q?.rateLimitTier??null};let Y=$.update(J);return R.cache?.clear?.(),I4(),p4(),Y}catch(J){return k(J),{success:!1,warning:"Failed to save OAuth tokens"}}}function M2(){R.cache?.clear?.(),F0()}async function PZ(){try{let{mtimeMs:Z}=await QZ(YZ(b2(),".credentials.json"));if(Z!==d4)d4=Z,M2()}catch{R.cache?.clear?.()}}function $2(Z){let $=K2.get(Z);if($)return $;let J=EZ(Z).finally(()=>{K2.delete(Z)});return K2.set(Z,J),J}async function EZ(Z){M2();let $=await C0();if(!$?.refreshToken)return!1;if($.accessToken!==Z)return!0;return m0(0,!0)}async function C0(){if(u())return null;if(process.env.CLAUDE_CODE_OAUTH_TOKEN||q5())return R();try{let J=(await b5().readAsync())?.claudeAiOauth;if(!J?.accessToken)return null;return J}catch(Z){return k(Z),null}}function m0(Z=0,$=!1){if(Z===0&&!$){if(A0)return A0;return A0=D2(Z,$).finally(()=>{A0=null}),A0}return D2(Z,$)}async function D2(Z,$){await PZ();let Q=R();if(!$){if(!Q?.refreshToken||!u0(Q.expiresAt))return!1}if(!Q?.refreshToken)return!1;if(!L0(Q.scopes))return!1;R.cache?.clear?.(),F0();let Y=await C0();if(!Y?.refreshToken||!u0(Y.expiresAt))return!1;let q=b2();await JZ(q,{recursive:!0});let X;try{X=await n4(q)}catch(V){if(V.code==="ELOCKED"){if(Z<5)return await F2(1000+Math.random()*1000),D2(Z+1,$);return!1}return k(V),!1}try{R.cache?.clear?.(),F0();let V=await C0();if(!V?.refreshToken||!u0(V.expiresAt))return!1;let j=await l4(V.refreshToken,{scopes:L0(V.scopes)?void 0:V.scopes});return Y7(j),R.cache?.clear?.(),F0(),!0}catch(V){k(V),R.cache?.clear?.(),F0();let j=await C0();if(j&&!u0(j.expiresAt))return!0;return!1}finally{await X()}}function O(){if(!D0())return!1;return L0(R()?.scopes)}function Q0(){return R()?.scopes?.includes(t4)??!1}function OZ(){{let Z=K()?.transport;if(Z==="bedrock"||Z==="vertex"||Z==="foundry")return!1}if(O())return!1;return!0}function L5(){return D0()?b().oauthAccount:void 0}function yZ(){let $=L5()?.billingType;if(!O()||!$)return!1;if($!=="stripe_subscription"&&$!=="stripe_subscription_contracted"&&$!=="apple_subscription"&&$!=="google_play_subscription")return!1;return!0}function _Z(){let Z=S();return Z==="max"||Z==="enterprise"||Z==="team"||Z==="pro"||Z===null}function S(){if($1())return Z1();if(!D0())return null;let Z=R();if(!Z)return null;return Z.subscriptionType??null}function B5(){return S()==="max"}function hZ(){return S()==="team"}function G5(){return S()==="team"&&q7()==="default_claude_max_5x"}function IZ(){return S()==="enterprise"}function x2(){return S()==="pro"}function q7(){if(!D0())return null;let Z=R();if(!Z)return null;return Z.rateLimitTier??null}function X7(){switch(S()){case"enterprise":return"Claude Enterprise";case"team":return"Claude Team";case"max":return"Claude Max";case"pro":return"Claude Pro";default:return"Claude API"}}function D5(){let Z=K()?.transport;if(!Z)return!1;return Z!=="anthropic"}function V7(){return(D()||{}).otelHeadersHelper}function W7(){let Z=V7();if(!Z)return!1;let $=v("projectSettings"),J=v("localSettings");return $?.otelHeadersHelper===Z||J?.otelHeadersHelper===Z}function MZ(){let Z=V7();if(!Z)return{};let $=parseInt(process.env.CLAUDE_CODE_OTEL_HEADERS_HELPER_DEBOUNCE_MS||TZ.toString());if(F5&&Date.now()-i4<$)return F5;if(W7()){if(!p())return{}}try{let J=U2(Z,{timeout:30000})?.toString().trim();if(!J)throw Error("otelHeadersHelper did not return a valid value");let Q=k2(J);if(typeof Q!=="object"||Q===null||Array.isArray(Q))throw Error("otelHeadersHelper must return a JSON object with string key-value pairs");for(let[Y,q]of Object.entries(Q))if(typeof q!=="string")throw Error(`otelHeadersHelper returned non-string value for key "${Y}": ${typeof q}`);return F5=Q,i4=Date.now(),F5}catch(J){throw k(Error(`Error getting OpenTelemetry headers from otelHeadersHelper (in settings): ${x0(J)}`)),J}}function SZ(Z){return Z==="max"||Z==="pro"}function fZ(){let Z=S();return O()&&Z!==null&&SZ(Z)}function AZ(){if(W()!=="firstParty")return;let{source:$}=v2(),J={};if($==="CLAUDE_CODE_OAUTH_TOKEN"||$==="CLAUDE_CODE_OAUTH_TOKEN_FILE_DESCRIPTOR")J.tokenSource=$;else if(O())J.subscription=X7();else J.tokenSource=$;let{key:Q,source:Y}=p0();if(Q)J.apiKeySource=Y;if($==="claude.ai"||Y==="/login managed key"){let X=L5()?.organizationName;if(X)J.organization=X}let q=L5()?.emailAddress;if(($==="claude.ai"||Y==="/login managed key")&&q)J.email=q;return J}async function uZ(){if(process.env.ANTHROPIC_UNIX_SOCKET)return{valid:!0};if(!D0())return{valid:!0};let Z=v("policySettings")?.forceLoginOrgUUID;if(!Z)return{valid:!0};await m0();let $=R();if(!$)return{valid:!0};let{source:J}=v2(),Q=J==="CLAUDE_CODE_OAUTH_TOKEN"||J==="CLAUDE_CODE_OAUTH_TOKEN_FILE_DESCRIPTOR",Y=await z0($.accessToken);if(!Y?.organization)return{valid:!1,message:`Unable to verify organization for the current authentication token.
|
|
3
|
+
This machine requires organization ${Z} but the profile could not be fetched.
|
|
4
|
+
This may be a network error, or the token may lack the user:profile scope required for
|
|
5
|
+
verification (tokens from 'claude setup-token' do not include this scope).
|
|
6
|
+
Try again, or obtain a full-scope token via 'claude auth login'.`};let q=Y.organization.uuid;if(q===Z)return{valid:!0};if(Q)return{valid:!1,message:`The ${J==="CLAUDE_CODE_OAUTH_TOKEN"?"CLAUDE_CODE_OAUTH_TOKEN":"CLAUDE_CODE_OAUTH_TOKEN_FILE_DESCRIPTOR"} environment variable provides a token for a
|
|
7
|
+
different organization than required by this machine's managed settings.
|
|
8
|
+
|
|
9
|
+
Required organization: ${Z}
|
|
10
|
+
Token organization: ${q}
|
|
11
|
+
|
|
12
|
+
Remove the environment variable or obtain a token for the correct organization.`};return{valid:!1,message:`Your authentication token belongs to organization ${q},
|
|
13
|
+
but this machine requires organization ${Z}.
|
|
14
|
+
|
|
15
|
+
Please log in with the correct organization: claude auth login`}}var qZ=300000,y=null,g=null,K0=0,xZ=3600000,GZ=180000,V0,wZ=5000,FZ=3600000,LZ=180000,I2,k5,R,d4=0,K2,A0=null,F5=null,i4=0,TZ=1740000,j7;var a=H(()=>{r8();B1();d0();y0();$5();c();$0();Z0();J1();s4();d5();x1();H1();F1();L1();T4();e();o();m();j1();ZZ();e8();i0();o8();$Z();u4();n5();j0();C4();a8();m4();V0=N2(async()=>{let Z=await BZ(),$=await HZ();if(Z||$)await w1();return $},xZ);I2=N2(async()=>{return await KZ()},FZ);k5=_(()=>{if(u())return null;if(process.platform==="darwin"){let $=A4();if($){if($.stdout)return{key:$.stdout,source:"/login managed key"}}else{let J=d();try{let Q=U2(`security find-generic-password -a $USER -w -s "${J}"`);if(Q)return{key:Q,source:"/login managed key"}}catch(Q){k(Q)}}}let Z=b();if(!Z.primaryApiKey)return null;return{key:Z.primaryApiKey,source:"/login managed key"}});R=_(()=>{if(u())return null;if(process.env.CLAUDE_CODE_OAUTH_TOKEN)return{accessToken:process.env.CLAUDE_CODE_OAUTH_TOKEN,refreshToken:null,expiresAt:null,scopes:["user:inference"],subscriptionType:null,rateLimitTier:null};let Z=q5();if(Z)return{accessToken:Z,refreshToken:null,expiresAt:null,scopes:["user:inference"],subscriptionType:null,rateLimitTier:null};try{let Q=b5().read()?.claudeAiOauth;if(!Q?.accessToken)return null;return Q}catch($){return k($),null}});K2=new Map;j7=class j7 extends Error{}});function L0(Z){return Boolean(Z?.includes(S2))}function gZ(Z){return Z?.split(" ").filter(Boolean)??[]}function WQ({codeChallenge:Z,state:$,port:J,isManual:Q,loginWithClaudeAi:Y,inferenceOnly:q,orgUUID:X,loginHint:V,loginMethod:j}){let B=Y?N().CLAUDE_AI_AUTHORIZE_URL:N().CONSOLE_AUTHORIZE_URL,G=new URL(B);G.searchParams.append("code","true"),G.searchParams.append("client_id",N().CLIENT_ID),G.searchParams.append("response_type","code"),G.searchParams.append("redirect_uri",Q?N().MANUAL_REDIRECT_URL:`http://localhost:${J}/callback`);let X0=q?[S2]:B7;if(G.searchParams.append("scope",X0.join(" ")),G.searchParams.append("code_challenge",Z),G.searchParams.append("code_challenge_method","S256"),G.searchParams.append("state",$),X)G.searchParams.append("orgUUID",X);if(V)G.searchParams.append("login_hint",V);if(j)G.searchParams.append("login_method",j);return G.toString()}async function jQ(Z,$,J,Q,Y=!1,q){let X={grant_type:"authorization_code",code:Z,redirect_uri:Y?N().MANUAL_REDIRECT_URL:`http://localhost:${Q}/callback`,client_id:N().CLIENT_ID,code_verifier:J,state:$};if(q!==void 0)X.expires_in=q;let V=await U.post(N().TOKEN_URL,X,{headers:{"Content-Type":"application/json"},timeout:15000});if(V.status!==200)throw Error(V.status===401?"Authentication failed: Invalid authorization code":`Token exchange failed (${V.status}): ${V.statusText}`);return V.data}async function l4(Z,{scopes:$}={}){let J={grant_type:"refresh_token",refresh_token:Z,client_id:N().CLIENT_ID,scope:(($?.length)?$:x7).join(" ")};try{let Q=await U.post(N().TOKEN_URL,J,{headers:{"Content-Type":"application/json"},timeout:15000});if(Q.status!==200)throw Error(`Token refresh failed: ${Q.statusText}`);let Y=Q.data,{access_token:q,refresh_token:X=Z,expires_in:V}=Y,j=Date.now()+V*1000,B=gZ(Y.scope),G=b(),X0=R(),P=G.oauthAccount?.billingType!==void 0&&G.oauthAccount?.accountCreatedAt!==void 0&&G.oauthAccount?.subscriptionCreatedAt!==void 0&&X0?.subscriptionType!=null&&X0?.rateLimitTier!=null?null:await pZ(q);if(P&&G.oauthAccount){let l={};if(P.displayName!==void 0)l.displayName=P.displayName;if(typeof P.hasExtraUsageEnabled==="boolean")l.hasExtraUsageEnabled=P.hasExtraUsageEnabled;if(P.billingType!==null)l.billingType=P.billingType;if(P.accountCreatedAt!==void 0)l.accountCreatedAt=P.accountCreatedAt;if(P.subscriptionCreatedAt!==void 0)l.subscriptionCreatedAt=P.subscriptionCreatedAt;if(Object.keys(l).length>0)M((c0)=>({...c0,oauthAccount:c0.oauthAccount?{...c0.oauthAccount,...l}:c0.oauthAccount}))}return{accessToken:q,refreshToken:X,expiresAt:j,scopes:B,subscriptionType:P?.subscriptionType??X0?.subscriptionType??null,rateLimitTier:P?.rateLimitTier??X0?.rateLimitTier??null,profile:P?.rawProfile,tokenAccount:Y.account?{uuid:Y.account.uuid,emailAddress:Y.account.email_address,organizationUuid:Y.organization?.uuid}:void 0}}catch(Q){let Y=U.isAxiosError(Q)&&Q.response?.data?JSON.stringify(Q.response.data):void 0;throw Q}}async function zQ(Z){let $=await U.get(N().ROLES_URL,{headers:{Authorization:`Bearer ${Z}`}});if($.status!==200)throw Error(`Failed to fetch user roles: ${$.statusText}`);let J=$.data;if(!b().oauthAccount)throw Error("OAuth account information not found in config");M((Y)=>({...Y,oauthAccount:Y.oauthAccount?{...Y.oauthAccount,organizationRole:J.organization_role,workspaceRole:J.workspace_role,organizationName:J.organization_name}:Y.oauthAccount}))}async function xQ(Z){try{let J=(await U.post(N().API_KEY_URL,null,{headers:{Authorization:`Bearer ${Z}`}})).data?.raw_key;if(J)return await T2(J),J;return null}catch($){throw $}}function u0(Z){if(Z===null)return!1;let $=300000;return Date.now()+$>=Z}async function pZ(Z){let $=await z0(Z),J=$?.organization?.organization_type,Q=null;switch(J){case"claude_max":Q="max";break;case"claude_pro":Q="pro";break;case"claude_enterprise":Q="enterprise";break;case"claude_team":Q="team";break;default:Q=null;break}let Y={subscriptionType:Q,rateLimitTier:$?.organization?.rate_limit_tier??null,hasExtraUsageEnabled:$?.organization?.has_extra_usage_enabled??null,billingType:$?.organization?.billing_type??null};if($?.account?.display_name)Y.displayName=$.account.display_name;if($?.account?.created_at)Y.accountCreatedAt=$.account.created_at;if($?.organization?.subscription_created_at)Y.subscriptionCreatedAt=$.organization.subscription_created_at;return{...Y,rawProfile:$}}async function BQ(){let $=b().oauthAccount?.organizationUuid;if($)return $;let J=R()?.accessToken;if(J===void 0||!Q0())return null;let Y=(await z0(J))?.organization?.uuid;if(!Y)return null;return Y}async function GQ(){let Z=process.env.CLAUDE_CODE_ACCOUNT_UUID,$=process.env.CLAUDE_CODE_USER_EMAIL,J=process.env.CLAUDE_CODE_ORGANIZATION_UUID,Q=Boolean(Z&&$&&J);if(Z&&$&&J){if(!b().oauthAccount)z7({accountUuid:Z,emailAddress:$,organizationUuid:J})}await m0();let Y=b();if(Y.oauthAccount&&Y.oauthAccount.billingType!==void 0&&Y.oauthAccount.accountCreatedAt!==void 0&&Y.oauthAccount.subscriptionCreatedAt!==void 0||!O()||!Q0())return!1;let q=R();if(q?.accessToken){let X=await z0(q.accessToken),V=X?.account,j=X?.organization;if(V){if(Q)z("OAuth profile fetch succeeded, overriding env var account info",{level:"info"});return z7({accountUuid:V.uuid,emailAddress:V.email??"",organizationUuid:j?.uuid,displayName:V.display_name||void 0,hasExtraUsageEnabled:j?.has_extra_usage_enabled??!1,billingType:j?.billing_type??void 0,accountCreatedAt:V.created_at,subscriptionCreatedAt:j?.subscription_created_at??void 0}),!0}}return!1}function z7({accountUuid:Z,emailAddress:$,organizationUuid:J,displayName:Q,hasExtraUsageEnabled:Y,billingType:q,accountCreatedAt:X,subscriptionCreatedAt:V}){let j={accountUuid:Z,emailAddress:$,organizationUuid:J,hasExtraUsageEnabled:Y,billingType:q,accountCreatedAt:X,subscriptionCreatedAt:V};if(Q)j.displayName=Q;M((B)=>{if(B.oauthAccount?.accountUuid===j.accountUuid&&B.oauthAccount?.emailAddress===j.emailAddress&&B.oauthAccount?.organizationUuid===j.organizationUuid&&B.oauthAccount?.displayName===j.displayName&&B.oauthAccount?.hasExtraUsageEnabled===j.hasExtraUsageEnabled&&B.oauthAccount?.billingType===j.billingType&&B.oauthAccount?.accountCreatedAt===j.accountCreatedAt&&B.oauthAccount?.subscriptionCreatedAt===j.subscriptionCreatedAt)return B;return{...B,oauthAccount:j}})}var s4=H(()=>{J5();y0();a();e();o();d5()});
|
|
16
|
+
export{w3 as v3,F3 as w3,u4 as x3,f2 as y3,A2 as z3,sZ as A3,aZ as B3,H7 as C3,F7 as D3,rZ as E3,p2 as F3,t0 as G3,b0 as H3,k0 as I3,A5 as J3,c5 as K3,N7 as L3,v0 as M3,W as N3,W$ as O3,y7 as P3,j$ as Q3,z$ as R3,c as S3,x as T3,L$ as U3,$5 as V3,b$ as W3,k$ as X3,J1 as Y3,z0 as Z3,d5 as _3,L0 as $3,gZ as a4,WQ as b4,jQ as c4,l4 as d4,zQ as e4,xQ as f4,u0 as g4,pZ as h4,BQ as i4,GQ as j4,z7 as k4,s4 as l4,f$ as m4,u7 as n4,Q1 as o4,x1 as p4,X5 as q4,H1 as r4,m$ as s4,F1 as t4,T as u4,L1 as v4,_0 as w4,b1 as x4,k1 as y4,t$ as z4,n$ as A4,v1 as B4,l$ as C4,s$ as D4,P1 as E4,a$ as F4,r$ as G4,o$ as H4,r5 as I4,h as J4,M1 as K4,m7 as L4,HJ as M4,RJ as N4,wJ as O4,S1 as P4,FJ as Q4,KJ as R4,c7 as S4,LJ as T4,DJ as U4,bJ as V4,kJ as W4,NJ as X4,t7 as Y4,UJ as Z4,vJ as _4,PJ as $4,EJ as a5,C1 as b5,M0 as c5,a7 as d5,o7 as e5,e7 as f5,Q2 as g5,X8 as h5,TJ as i5,q2 as j5,d1 as k5,V8 as l5,X2 as m5,n1 as n5,l1 as o5,Y9 as p5,q9 as q5,z5 as r5,V2 as s5,X9 as t5,H8 as u5,Y0 as v5,S0 as w5,$4 as x5,V9 as y5,T0 as z5,J4 as A5,w as B5,L as C5,R8 as D5,W9 as E5,j9 as F5,w8 as G5,Z2 as H5,z9 as I5,Q4 as J5,Y4 as K5,x9 as L5,I as M5,B9 as N5,L8 as O5,G9 as P5,H9 as Q5,R9 as R5,w9 as S5,H0 as T5,K9 as U5,q4 as V5,D9 as W5,j4 as X5,R4 as Y5,T8 as Z5,F4 as _5,u9 as $5,C9 as a6,g9 as b6,q0 as c6,t as d6,p9 as e6,p8 as f6,m9 as g6,c9 as h6,z2 as i6,U4 as j6,v4 as k6,V3 as l6,t8 as m6,W3 as n6,j3 as o6,E4 as p6,z3 as q6,h4 as r6,n8 as s6,x3 as t6,I4 as u6,T4 as v6,F2 as w6,C4 as x6,D3 as y6,p4 as z6,m4 as A6,D0 as B6,v2 as C6,Q5 as D6,XZ as E6,p0 as F6,n as G6,E2 as H6,y2 as I6,o4 as J6,VZ as K6,e4 as L6,L2 as M6,jZ as N6,zZ as O6,Z7 as P6,V0 as Q6,RZ as R6,h2 as S6,$7 as T6,J7 as U6,I2 as V6,DZ as W6,bZ as X6,kZ as Y6,k5 as Z6,T2 as _6,UZ as $6,vZ as a7,Y7 as b7,R as c7,M2 as d7,$2 as e7,C0 as f7,m0 as g7,O as h7,Q0 as i7,OZ as j7,L5 as k7,yZ as l7,_Z as m7,S as n7,B5 as o7,hZ as p7,G5 as q7,IZ as r7,x2 as s7,q7 as t7,X7 as u7,D5 as v7,W7 as w7,MZ as x7,fZ as y7,AZ as z7,uZ as A7,CZ as B7,a as C7};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{Lga as $,Mga as y,p$ as Z,r$ as f,vha as B,yha as K}from"./cli-1.1.31-p99fz46k.mjs";import{Fla as Y,Lla as E}from"./cli-1.1.31-wba64b2s.mjs";import{lsa as N,msa as x}from"./cli-1.1.31-qj8vksz8.mjs";import{existsSync as S}from"node:fs";import{homedir as F}from"node:os";import{join as X}from"node:path";function _(){if(Y())return;try{return $().read()?.gemini?.accessToken?.trim()||void 0}catch{return}}function J(b){let w=b?.trim();return w?w:void 0}function V(b=process.env){return J(b.GOOGLE_CLOUD_PROJECT)??J(b.GCLOUD_PROJECT)??J(b.GOOGLE_PROJECT_ID)}function D(b=process.env){let w=J(b.GEMINI_AUTH_MODE)?.toLowerCase();if(w==="api-key"||w==="access-token"||w==="adc")return w;return}function P(b=process.env){let w=J(b.GOOGLE_APPLICATION_CREDENTIALS),q=new Set;if(w)q.add(w);q.add(X(F(),".config","gcloud","application_default_credentials.json"));let O=J(b.APPDATA);if(O)q.add(X(O,"gcloud","application_default_credentials.json"));return[...q]}function k(b=process.env){return P(b).some((w)=>S(w))}function G(b){if(typeof b==="string")return J(b);return J(b?.token)}async function A(){let{GoogleAuth:b}=await import("google-auth-library");return new b({scopes:[z]})}async function L(b,w){if(!k(b))return{kind:"none"};try{let q=await(w.createGoogleAuth??A)(),O=await q.getClient(),R=G(await O.getAccessToken());if(!R)return{kind:"none"};let Q=V(b)??(typeof q.getProjectId==="function"?J(await q.getProjectId().catch(()=>{return})):void 0);return{kind:"adc",credential:R,...Q?{projectId:Q}:{}}}catch{return{kind:"none"}}}async function s(b=process.env,w={}){let q=D(b),O=B(),R=O?.transport==="gemini"?J(O.apiKey):void 0,U=q==="access-token"||q==="adc"?void 0:R;if(U&&(q===void 0||q==="api-key"))return{kind:"api-key",credential:U};let Q=q==="api-key"||q==="adc"?void 0:J(_());if(Q&&(q===void 0||q==="access-token")){let W=V(b);return{kind:"access-token",credential:Q,...W?{projectId:W}:{}}}if(q==="api-key"||q==="access-token")return{kind:"none"};if(w.createGoogleAuth)return L(b,w);return T(J(b.GOOGLE_APPLICATION_CREDENTIALS),J(b.APPDATA),F(),V(b))}var z="https://www.googleapis.com/auth/cloud-platform",C=300000,T;var g=N(()=>{K();E();f();y();T=Z(async(b,w,q,O)=>L({GOOGLE_APPLICATION_CREDENTIALS:b,APPDATA:w,GOOGLE_CLOUD_PROJECT:O,GCLOUD_PROJECT:O,GOOGLE_PROJECT_ID:O,HOME:q},{}),C)});
|
|
2
|
+
export{D as uj,s as vj,g as wj};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import{_7 as D}from"./cli-1.1.31-3zy5yd1t.mjs";import{e_ as H,w_ as RG}from"./cli-1.1.31-nyvjx813.mjs";import{D_ as XG}from"./cli-1.1.31-cpeph4zm.mjs";import{Eka as L,Ika as JG,Ska as W,Vka as a}from"./cli-1.1.31-t6m64e0q.mjs";import{Cla as c,Dla as jG,Lla as GG}from"./cli-1.1.31-wba64b2s.mjs";import{vra as q,wra as g}from"./cli-1.1.31-thhdw5e1.mjs";import{hsa as WG,lsa as j,msa as e}from"./cli-1.1.31-qj8vksz8.mjs";function yG(){U.cache.clear?.(),W("Cleared CA certificates cache")}var U;var i=j(()=>{g();a();GG();JG();U=q(()=>{let G=c("--use-system-ca")||c("--use-openssl-ca"),J=process.env.NODE_EXTRA_CA_CERTS;if(W(`CA certs: useSystemCA=${G}, extraCertsPath=${J}`),!G&&!J)return;let Q=e("tls"),K=[];if(G){let Y=Q.getCACertificates,Z=Y?.("system");if(Z&&Z.length>0)K.push(...Z),W(`CA certs: Loaded ${K.length} system CA certificates (--use-system-ca)`);else if(!Y&&!J){W("CA certs: --use-system-ca set but system CA API unavailable, deferring to runtime");return}else K.push(...Q.rootCertificates),W(`CA certs: Loaded ${K.length} bundled root certificates as base (--use-system-ca fallback)`)}else K.push(...Q.rootCertificates),W(`CA certs: Loaded ${K.length} bundled root certificates as base`);if(J)try{let Y=L().readFileSync(J,{encoding:"utf8"});K.push(Y),W(`CA certs: Appended extra certificates from NODE_EXTRA_CA_CERTS (${J})`)}catch(Y){W(`CA certs: Failed to read NODE_EXTRA_CA_CERTS file (${J}): ${Y}`,{level:"error"})}return K.length>0?K:void 0})});import{Agent as IG}from"https";function gG(){let G=N(),J=U();if(!G&&!J)return;return{...G,...J&&{ca:J}}}function P(){let G=N(),J=U();if(!G&&!J)return{};let Q={...G,...J&&{ca:J}};if(typeof Bun<"u")return{tls:Q};return W("TLS: Created undici agent with custom certificates"),{dispatcher:new(D()).Agent({connect:{cert:Q.cert,key:Q.key,passphrase:Q.passphrase,...Q.ca&&{ca:Q.ca}},pipelining:1})}}function aG(){N.cache.clear?.(),C.cache.clear?.(),W("Cleared mTLS configuration cache")}function iG(){if(!N())return;if(process.env.NODE_EXTRA_CA_CERTS)W("NODE_EXTRA_CA_CERTS detected - Node.js will automatically append to built-in CAs")}var N,C;var KG=j(()=>{g();i();a();JG();N=q(()=>{let G={};if(process.env.CLAUDIN_CLIENT_CERT)try{G.cert=L().readFileSync(process.env.CLAUDIN_CLIENT_CERT,{encoding:"utf8"}),W("mTLS: Loaded client certificate from CLAUDIN_CLIENT_CERT")}catch(J){W(`mTLS: Failed to load client certificate: ${J}`,{level:"error"})}if(process.env.CLAUDIN_CLIENT_KEY)try{G.key=L().readFileSync(process.env.CLAUDIN_CLIENT_KEY,{encoding:"utf8"}),W("mTLS: Loaded client key from CLAUDIN_CLIENT_KEY")}catch(J){W(`mTLS: Failed to load client key: ${J}`,{level:"error"})}if(process.env.CLAUDIN_CLIENT_KEY_PASSPHRASE)G.passphrase=process.env.CLAUDIN_CLIENT_KEY_PASSPHRASE,W("mTLS: Using client key passphrase");if(Object.keys(G).length===0)return;return G}),C=q(()=>{let G=N(),J=U();if(!G&&!J)return;let Q={...G,...J&&{ca:J},keepAlive:!0};return W("mTLS: Creating HTTPS agent with custom certificates"),new IG(Q)})});var QG=()=>{};import*as YG from"net";import*as ZG from"http";import{Agent as SG}from"https";var B,p;var $G=j(()=>{QG();B=Symbol("AgentBaseInternalState");p=class p extends ZG.Agent{constructor(G){super(G);this[B]={}}isSecureEndpoint(G){if(G){if(typeof G.secureEndpoint==="boolean")return G.secureEndpoint;if(typeof G.protocol==="string")return G.protocol==="https:"}let{stack:J}=Error();if(typeof J!=="string")return!1;return J.split(`
|
|
2
|
+
`).some((Q)=>Q.indexOf("(https.js:")!==-1||Q.indexOf("node:https:")!==-1)}incrementSockets(G){if(this.maxSockets===1/0&&this.maxTotalSockets===1/0)return null;if(!this.sockets[G])this.sockets[G]=[];let J=new YG.Socket({writable:!1});return this.sockets[G].push(J),this.totalSocketCount++,J}decrementSockets(G,J){if(!this.sockets[G]||J===null)return;let Q=this.sockets[G],K=Q.indexOf(J);if(K!==-1){if(Q.splice(K,1),this.totalSocketCount--,Q.length===0)delete this.sockets[G]}}getName(G){if(this.isSecureEndpoint(G))return SG.prototype.getName.call(this,G);return super.getName(G)}createSocket(G,J,Q){let K={...J,secureEndpoint:this.isSecureEndpoint(J)},Y=this.getName(K),Z=this.incrementSockets(Y);Promise.resolve().then(()=>this.connect(G,K)).then((X)=>{if(this.decrementSockets(Y,Z),typeof X.addRequest==="function")try{return X.addRequest(G,K)}catch($){return Q($)}this[B].currentSocket=X,super.createSocket(G,J,Q)},(X)=>{this.decrementSockets(Y,Z),Q(X)})}createConnection(){let G=this[B].currentSocket;if(this[B].currentSocket=void 0,!G)throw Error("No socket was returned in the `connect()` function");return G}get defaultPort(){return this[B].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(G){if(this[B])this[B].defaultPort=G}get protocol(){return this[B].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(G){if(this[B])this[B].protocol=G}}});function n(G){return new Promise((J,Q)=>{let K=0,Y=[];function Z(){let w=G.read();if(w)_(w);else G.once("readable",Z)}function X(){G.removeListener("end",$),G.removeListener("error",V),G.removeListener("readable",Z)}function $(){X(),v("onend"),Q(Error("Proxy connection ended before receiving CONNECT response"))}function V(w){X(),v("onerror %o",w),Q(w)}function _(w){Y.push(w),K+=w.length;let z=Buffer.concat(Y,K),O=z.indexOf(`\r
|
|
3
|
+
\r
|
|
4
|
+
`);if(O===-1){v("have not received end of HTTP headers yet..."),Z();return}let b=z.slice(0,O).toString("ascii").split(`\r
|
|
5
|
+
`),f=b.shift();if(!f)return G.destroy(),Q(Error("No header received from proxy CONNECT response"));let t=f.split(" "),FG=+t[1],EG=t.slice(2).join(" "),I={};for(let S of b){if(!S)continue;let u=S.indexOf(":");if(u===-1)return G.destroy(),Q(Error(`Invalid header from proxy CONNECT response: "${S}"`));let d=S.slice(0,u).toLowerCase(),l=S.slice(u+1).trimStart(),A=I[d];if(typeof A==="string")I[d]=[A,l];else if(Array.isArray(A))A.push(l);else I[d]=l}v("got proxy server response: %o %o",f,I),X(),J({connect:{statusCode:FG,statusText:EG,headers:I},buffered:z})}G.on("error",V),G.on("end",$),Z()})}var wG,v;var zG=j(()=>{wG=WG(XG(),1),v=wG.default("https-proxy-agent:parse-proxy-response")});function VG(){return async({response:G,scheme:J})=>{if(J.toLowerCase()!=="negotiate")throw Error(`Expected Negotiate scheme but got "${J}"`);let Q;try{Q=await import("kerberos")}catch{throw Error('The "kerberos" package is required for Negotiate proxy authentication. Install it with: npm install kerberos')}let K=G.headers["proxy-authenticate"]||"",Y=Array.isArray(K)?K[0]:K,Z=typeof Y==="string"&&Y.includes(" ")?Y.split(" ").slice(1).join(" "):void 0,$=await(await Q.initializeClient("HTTP@proxy",{mechOID:Q.GSS_MECH_OID_SPNEGO})).step(Z||"");if(!$)throw Error("Kerberos client.step() returned no token");return{headers:{"Proxy-Authorization":`Negotiate ${$}`}}}}var BG=()=>{};import*as M from"net";import*as R from"tls";import LG from"assert";import{URL as DG}from"url";function MG(G){setImmediate(()=>{G.resume()})}function s(G,...J){let Q={},K;for(K in G)if(!J.includes(K))Q[K]=G[K];return Q}var HG,F,k=(G)=>{if(G.servername===void 0&&G.host&&!M.isIP(G.host))return{...G,servername:G.host};return G},m;var _G=j(()=>{$G();zG();BG();HG=WG(XG(),1),F=HG.default("https-proxy-agent");m=class m extends p{constructor(G,J){super(J);if(this.options={path:void 0},this.proxy=typeof G==="string"?new DG(G):G,this.proxyHeaders=J?.headers??{},F("Creating new HttpsProxyAgent instance: %o",this.proxy.href),J?.negotiate)this.onProxyAuth=VG();else if(J?.onProxyAuth)this.onProxyAuth=J.onProxyAuth;let Q=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,""),K=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={ALPNProtocols:["http/1.1"],...J?s(J,"headers","onProxyAuth","negotiate"):null,host:Q,port:K}}async connect(G,J){let{proxy:Q}=this;if(!J.host)throw TypeError('No "host" provided');let K;if(Q.protocol==="https:")F("Creating `tls.Socket`: %o",this.connectOpts),K=R.connect(k(this.connectOpts));else F("Creating `net.Socket`: %o",this.connectOpts),K=M.connect(this.connectOpts);let Y=typeof this.proxyHeaders==="function"?this.proxyHeaders():{...this.proxyHeaders},Z=M.isIPv6(J.host)?`[${J.host}]`:J.host,X=`CONNECT ${Z}:${J.port} HTTP/1.1\r
|
|
6
|
+
`;if(Q.username||Q.password){let z=`${decodeURIComponent(Q.username)}:${decodeURIComponent(Q.password)}`;Y["Proxy-Authorization"]=`Basic ${Buffer.from(z).toString("base64")}`}if(Y.Host=`${Z}:${J.port}`,!Y["Proxy-Connection"])Y["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close";for(let z of Object.keys(Y))X+=`${z}: ${Y[z]}\r
|
|
7
|
+
`;let $=n(K);K.write(`${X}\r
|
|
8
|
+
`);let{connect:V,buffered:_}=await $;if(G.emit("proxyConnect",V),this.emit("proxyConnect",V,G),G.emit("proxy",{proxy:this.proxy.href,socket:K}),V.statusCode===200){if(G.once("socket",MG),J.secureEndpoint)return F("Upgrading socket connection to TLS"),R.connect({...s(k(J),"host","path","port"),socket:K});return K}if(V.statusCode===407&&this.onProxyAuth){F("Got 407 response, invoking onProxyAuth callback"),K.destroy();let z=V.headers["proxy-authenticate"]||"",O=Array.isArray(z)?z[0].split(/\s/)[0]:z.split(/\s/)[0],b=await this.onProxyAuth({response:V,scheme:O});return this._connectWithAuth(G,J,b.headers)}K.destroy();let w=new M.Socket({writable:!1});return w.readable=!0,G.once("socket",(z)=>{F("Replaying proxy buffer for failed request"),LG(z.listenerCount("data")>0),z.push(_),z.push(null)}),w}async _connectWithAuth(G,J,Q){let{proxy:K}=this,Y;if(K.protocol==="https:")Y=R.connect(k(this.connectOpts));else Y=M.connect(this.connectOpts);let Z=typeof this.proxyHeaders==="function"?this.proxyHeaders():{...this.proxyHeaders},X=M.isIPv6(J.host)?`[${J.host}]`:J.host,$=`CONNECT ${X}:${J.port} HTTP/1.1\r
|
|
9
|
+
`;if(K.username||K.password){let w=`${decodeURIComponent(K.username)}:${decodeURIComponent(K.password)}`;Z["Proxy-Authorization"]=`Basic ${Buffer.from(w).toString("base64")}`}if(Object.assign(Z,Q),Z.Host=`${X}:${J.port}`,!Z["Proxy-Connection"])Z["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close";for(let w of Object.keys(Z))$+=`${w}: ${Z[w]}\r
|
|
10
|
+
`;let V=n(Y);Y.write(`${$}\r
|
|
11
|
+
`);let{connect:_}=await V;if(G.emit("proxyConnect",_),this.emit("proxyConnect",_,G),_.statusCode===200){if(G.once("socket",MG),J.secureEndpoint)return F("Upgrading socket connection to TLS"),R.connect({...s(k(J),"host","path","port"),socket:Y});return Y}throw Y.destroy(),Error(`Proxy authentication failed with status ${_.statusCode} after retry`)}};m.protocols=["http","https"]});function MJ(G){r.set(G,!0),qG(G)}function qG(G){TG.cache.delete?.(G)}function HJ(G){UG.set(G,!0),qG(G)}function OG(G){return UG.get(G)===!0}function bG(G){switch(G.family){case 0:case 4:case 6:return G.family;case"IPv6":return 6;case"IPv4":case void 0:return 4;default:throw Error(`Unsupported address family: ${G.family}`)}}function E(G=process.env){return G.https_proxy||G.HTTPS_PROXY||G.http_proxy||G.HTTP_PROXY}function AG(G=process.env){return G.no_proxy||G.NO_PROXY}function y(G,J=AG()){if(!J)return!1;if(J==="*")return!0;try{let Q=new URL(G),K=Q.hostname.toLowerCase(),Y=Q.port||(Q.protocol==="https:"||Q.protocol==="wss:"?"443":"80"),Z=`${K}:${Y}`;return J.split(/[,\s]+/).filter(Boolean).some(($)=>{if($=$.toLowerCase().trim(),$.includes(":"))return Z===$;if($.startsWith(".")){let V=$;return K===$.substring(1)||K.endsWith(V)}return K===$||K.endsWith("."+$)})}catch{return!1}}function h(G,J={}){let Q=N(),K=U(),Y={...Q&&{cert:Q.cert,key:Q.key,passphrase:Q.passphrase},...K&&{ca:K}};if(jG(process.env.CLAUDIN_PROXY_RESOLVES_HOSTS))Y.lookup=(Z,X,$)=>{$(null,Z,bG(X))};return new m(G,{...Y,...J})}function _J(G={}){let J=E(),Q=C(),K=H.create({proxy:!1});if(!J){if(Q)K.defaults.httpsAgent=Q;return K}let Y=h(J,G);return K.interceptors.request.use((Z)=>{if(Z.url&&y(Z.url))Z.httpsAgent=Q,Z.httpAgent=Q;else Z.httpsAgent=Y,Z.httpAgent=Y;return Z}),K}function jJ(G){let J=E();if(!J)return;if(y(G))return;return h(J)}function qJ(G){let J=E();if(!J)return;if(y(G))return;return J}function UJ(G){let J=G?.provider&&r.get(G.provider)?{keepalive:!1}:{};if(G?.forAnthropicAPI){let Y=process.env.ANTHROPIC_UNIX_SOCKET;if(Y&&typeof Bun<"u")return{...J,unix:Y}}let Q=E();if(Q){if(typeof Bun<"u")return{...J,proxy:Q,...P()};return{...J,dispatcher:o(Q)}}let K=P();if(G?.provider&&!K.dispatcher)return{...J,...K,dispatcher:TG(G.provider)};return{...J,...K}}function NJ(){let G=E(),J=C();if(x!==void 0)H.interceptors.request.eject(x),x=void 0;if(H.defaults.proxy=void 0,H.defaults.httpAgent=void 0,H.defaults.httpsAgent=void 0,G){H.defaults.proxy=!1;let Q=h(G);x=H.interceptors.request.use((K)=>{if(K.url&&y(K.url))if(J)K.httpsAgent=J,K.httpAgent=J;else delete K.httpsAgent,delete K.httpAgent;else K.httpsAgent=Q,K.httpAgent=Q;return K}),D().setGlobalDispatcher(o(G))}else if(J){H.defaults.httpsAgent=J;let Q=P();if(Q.dispatcher)D().setGlobalDispatcher(Q.dispatcher)}}async function TJ(){let G=E();if(!G)return{};let[{NodeHttpHandler:J},{defaultProvider:Q}]=await Promise.all([import("./index-1.1.31-kdnrzq4a.mjs"),import("./index-1.1.31-h4jmtajm.mjs")]),K=h(G),Y=new J({httpAgent:K,httpsAgent:K});return{requestHandler:Y,credentials:Q({clientConfig:{requestHandler:Y}})}}function FJ(){o.cache.clear?.(),W("Cleared proxy agent cache")}var r,UG,o,T,NG,CG,TG,x;var PG=j(()=>{RG();_G();g();i();a();GG();KG();r=new Map;UG=new Map;o=q((G)=>{let J=D(),Q=N(),K=U(),Y={httpProxy:G,httpsProxy:G,noProxy:process.env.NO_PROXY||process.env.no_proxy};if(Q||K){let Z={...Q&&{cert:Q.cert,key:Q.key,passphrase:Q.passphrase},...K&&{ca:K}};Y.connect=Z,Y.requestTls=Z}return new J.EnvHttpProxyAgent(Y)}),T={connections:12,keepAliveTimeout:30000,pipelining:1},NG={firstParty:{...T,allowH2:!0},openai:{...T,allowH2:!0},gemini:{...T,allowH2:!0},mistral:{...T,allowH2:!0},github:{...T,allowH2:!0},codex:{...T,allowH2:!0},"nvidia-nim":{...T,allowH2:!0},minimax:{...T,allowH2:!0}},CG=NG.openai,TG=q((G)=>{let J=D(),Q=NG[G]??CG,K={...Q,allowH2:Q.allowH2&&!OG(G),keepAliveTimeout:r.get(G)?100:Q.keepAliveTimeout};return new J.Agent(K)})});
|
|
12
|
+
export{yG as D7,i as E7,N as F7,gG as G7,aG as H7,iG as I7,KG as J7,MJ as K7,HJ as L7,OG as M7,E as N7,y as O7,_J as P7,jJ as Q7,qJ as R7,UJ as S7,NJ as T7,TJ as U7,FJ as V7,PG as W7};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{DH as p,gv as X,hv as h,wH as Y}from"./cli-1.1.31-g58b1jfa.mjs";import{NZ as D,SX as v,hZ as B}from"./cli-1.1.31-13cx7z8n.mjs";import{p3 as I,q3 as J,r3 as W}from"./cli-1.1.31-eqfmzrxc.mjs";import{Q$ as U,kga as b}from"./cli-1.1.31-p99fz46k.mjs";import{hsa as G}from"./cli-1.1.31-qj8vksz8.mjs";D();b();p();h();W();var Z=G(v(),1);function C(S){let k=Z.c(17),{customApiKeyTruncated:q,onDone:L}=S,M;if(k[0]!==q||k[1]!==L)M=function(f){k:switch(f){case"yes":{U((z)=>({...z,customApiKeyResponses:{...z.customApiKeyResponses,approved:[...z.customApiKeyResponses?.approved??[],q]}})),L(!0);break k}case"no":U((z)=>({...z,customApiKeyResponses:{...z.customApiKeyResponses,rejected:[...z.customApiKeyResponses?.rejected??[],q]}})),L(!1)}},k[0]=q,k[1]=L,k[2]=M;else M=k[2];let w=M,E;if(k[3]!==w)E=()=>w("no"),k[3]=w,k[4]=E;else E=k[4];let N;if(k[5]===Symbol.for("react.memo_cache_sentinel"))N=I(B,{bold:!0,children:"ANTHROPIC_API_KEY"}),k[5]=N;else N=k[5];let F;if(k[6]!==q)F=J(B,{children:[N,J(B,{children:[": sk-ant-...",q]})]}),k[6]=q,k[7]=F;else F=k[7];let O;if(k[8]===Symbol.for("react.memo_cache_sentinel"))O=I(B,{children:"Do you want to use this API key?"}),k[8]=O;else O=k[8];let P;if(k[9]===Symbol.for("react.memo_cache_sentinel"))P={label:"Yes",value:"yes"},k[9]=P;else P=k[9];let Q;if(k[10]===Symbol.for("react.memo_cache_sentinel"))Q=[P,{label:J(B,{children:["No (",I(B,{bold:!0,children:"recommended"}),")"]}),value:"no"}],k[10]=Q;else Q=k[10];let H;if(k[11]!==w)H=I(Y,{defaultValue:"no",defaultFocusValue:"no",options:Q,onChange:(V)=>w(V),onCancel:()=>w("no")}),k[11]=w,k[12]=H;else H=k[12];let R;if(k[13]!==E||k[14]!==F||k[15]!==H)R=J(X,{title:"Detected a custom API key in your environment",color:"warning",onCancel:E,children:[F,O,H]}),k[13]=E,k[14]=F,k[15]=H,k[16]=R;else R=k[16];return R}
|
|
2
|
+
export{C as T};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{Bc as U,Cc as $,xc as O,yc as Q}from"./cli-1.1.31-6pxakyvg.mjs";import{DH as _,wH as N}from"./cli-1.1.31-g58b1jfa.mjs";import{NZ as Z,fZ as G,hZ as w}from"./cli-1.1.31-13cx7z8n.mjs";import{p3 as q,q3 as F,r3 as K}from"./cli-1.1.31-eqfmzrxc.mjs";import{s3 as Y}from"./cli-1.1.31-9d5v98td.mjs";import{hsa as W,lsa as X}from"./cli-1.1.31-qj8vksz8.mjs";function R({enabled:J,onDismiss:H}){let[z,A]=V.useState(()=>J?{kind:"prompt"}:{kind:"hidden"});if(!J||z.kind==="hidden")return null;if(z.kind==="running")return F(G,{flexDirection:"column",marginBottom:1,children:[q(w,{color:"warning",bold:!0,children:"Migrating ~/.claude/ to ~/.claudin/..."}),q(w,{dimColor:!0,children:"Copying API tokens and provider profiles."})]});if(z.kind==="success"||z.kind==="error"){let I=z.kind==="success"?"success":"warning",E=z.kind==="success"?"Migration complete":"Migration finished with warnings";return F(G,{flexDirection:"column",marginBottom:1,children:[q(w,{color:I,bold:!0,children:E}),q(w,{children:Q(z.report)}),q(w,{dimColor:!0,children:"Next: /import brings skills, MCP servers, agents and slash commands — from Claude Code, and from Codex, Gemini CLI, Qwen Code, opencode, Kimi CLI and Cursor."})]})}return F(G,{flexDirection:"column",marginBottom:1,children:[q(w,{color:"warning",bold:!0,children:"Found Claude Code config at ~/.claude/"}),q(w,{children:"Copy the Claude Code sign-in — API tokens and provider profiles — into ~/.claudin/?"}),q(N,{options:[{value:"migrate",label:"Copy my sign-in",description:"Tokens only. Run /import for skills, MCP, agents."},{value:"skip",label:"Skip — start fresh",description:"Don't ask again this profile."}],onChange:(I)=>{if(I==="skip"){U(),A({kind:"hidden"}),H?.("skipped");return}A({kind:"running"}),(async()=>{let E=await O();A({kind:E.errors.length===0?"success":"error",report:E}),H?.("migrated")})()},onCancel:()=>{A({kind:"hidden"}),H?.("skipped")},visibleOptionCount:2})]})}var V;var f=X(()=>{Z();$();_();K();V=W(Y(),1)});
|
|
2
|
+
export{R as vc,f as wc};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{lsa as K}from"./cli-1.1.31-qj8vksz8.mjs";import z from"node:path";function Z(j){if(j.endsWith(z.sep)||j.endsWith("/"))return P;let q=z.basename(j).toLowerCase();if(q.startsWith("readme"))return H[".md"];if(q.startsWith(".env"))return V;let B=W[q];if(B)return B;let J=z.extname(q);return H[J]??Q}function U(j){return Y[Z(j)]}var P="",D="",Q="",V="",W,H,Y;var $=K(()=>{W={"package.json":"",dockerfile:"",".dockerignore":"",".gitignore":"",".gitattributes":"",license:"","bun.lock":""},H={".ts":"",".tsx":"",".js":"",".jsx":"",".mjs":"",".cjs":"",".json":"",".md":"",".markdown":"",".toml":"",".yaml":"",".yml":"",".py":"",".rs":"",".go":"",".sh":"",".bash":"",".zsh":"",".css":"",".scss":"",".html":"",".htm":"",".png":"",".jpg":"",".jpeg":"",".gif":"",".svg":"",".webp":"",".lock":""},Y={"":"#519aba","":"#61dafb","":"#cbcb41","":"#cbcb41","":"#519aba","":"#6d8086","":"#ffbc03","":"#dea584","":"#519aba","":"#89e051","":"#563d7c","":"#f55385","":"#e34c26","":"#a074c4","":"#bbbbbb","":"#8bc34a","":"#458ee6","":"#f14c28","":"#d0bf41"}});
|
|
2
|
+
export{P as cj,D as dj,Z as ej,U as fj,$ as gj};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{$qa as d,Zqa as nQ,_qa as H8,ara as g1,bra as F5,cra as R7,dra as q,era as A,fra as m,gra as bQ,hra as P,ira as Q1,jra as Q$,kra as JY,lra as E5,mra as v7,nra as v,ora as i7,pra as C,qra as G1,rra as y,sra as VQ,tra as a,ura as MQ,vra as X$,wra as BY}from"./cli-1.1.31-thhdw5e1.mjs";import{ksa as K5,lsa as X}from"./cli-1.1.31-qj8vksz8.mjs";import{randomUUID as s}from"crypto";var I1=()=>{};import{realpathSync as HQ}from"fs";import{cwd as t$}from"process";function e$(Q){return _1.add(Q),()=>_1.delete(Q)}function QJ(){g()}function g(){for(let Q of _1)try{Q()}catch{}}function k1(){let Q="";if(typeof process<"u"&&typeof process.cwd==="function"&&typeof HQ==="function"){let Y=t$();try{Q=HQ(Y).normalize("NFC")}catch{Q=Y.normalize("NFC")}}return{originalCwd:Q,projectRoot:Q,totalCostUSD:0,totalAPIDuration:0,totalAPIDurationWithoutRetries:0,totalToolDuration:0,turnHookDurationMs:0,turnToolDurationMs:0,turnClassifierDurationMs:0,turnToolCount:0,turnHookCount:0,turnClassifierCount:0,startTime:Date.now(),activeDurationMs:0,turnActiveSince:null,lastInteractionTime:Date.now(),totalLinesAdded:0,totalLinesRemoved:0,hasUnknownModelCost:!1,cwd:Q,modelUsage:{},mainLoopModelOverride:void 0,initialMainLoopModel:null,modelStrings:null,isInteractive:!1,kairosActive:!1,strictToolResultPairing:!1,sdkAgentProgressSummariesEnabled:!1,userMsgOptIn:!1,clientType:"cli",sessionSource:void 0,questionPreviewFormat:void 0,sessionIngressToken:void 0,oauthTokenFromFd:void 0,apiKeyFromFd:void 0,flagSettingsPath:void 0,flagSettingsInline:null,allowedSettingSources:["userSettings","projectSettings","localSettings","flagSettings","policySettings"],statsStore:null,sessionId:s(),parentSessionId:void 0,agentColorMap:new Map,agentColorIndex:0,lastAPIRequest:null,lastAPIRequestMessages:null,lastClassifierRequests:null,cachedClaudeMdContent:null,inMemoryErrorLog:[],inlinePlugins:[],useCoworkPlugins:!1,sessionBypassPermissionsMode:!1,scheduledTasksEnabled:!1,sessionCronTasks:[],pendingSessionWakeup:null,sessionCreatedTeams:new Set,sessionTrustAccepted:!1,sessionPersistenceDisabled:!1,hasExitedPlanMode:!1,needsPlanModeExitAttachment:!1,needsAutoModeExitAttachment:!1,initJsonSchema:null,registeredHooks:null,planSlugCache:new Map,teleportedSessionInfo:null,invokedSkills:new Map,slowOperations:[],sdkBetas:void 0,mainThreadAgentType:void 0,isRemoteMode:!1,directConnectServerUrl:void 0,systemPromptSectionCache:new Map,lastEmittedDate:null,additionalDirectoriesForClaudeMd:[],allowedChannels:[],hasDevChannels:!1,sessionProjectDir:null,largeSystemPromptDetected:null,afkModeHeaderLatched:null,fastModeHeaderLatched:null,thinkingClearLatched:null,lspDeferLatchedTools:null,deferredDeltaLegacySession:!1,sessionEpochMs:Date.now()-process.uptime()*1000,promptId:null,lastMainRequestId:void 0,lastApiCompletionTimestamp:null,pendingPostCompaction:!1}}var _1,$;var V=X(()=>{I1();_1=new Set;$=k1()});function $J(){return $.systemPromptSectionCache}function JJ(Q,J){$.systemPromptSectionCache.set(Q,J)}function YJ(){$.systemPromptSectionCache.clear()}function ZJ(){return $.lastEmittedDate}function XJ(Q){$.lastEmittedDate=Q}function HJ(){return $.additionalDirectoriesForClaudeMd}function WJ(Q){$.additionalDirectoriesForClaudeMd=Q}function xJ(){return $.allowedChannels}function UJ(Q){$.allowedChannels=Q,g()}function KJ(){return $.hasDevChannels}function GJ(Q){$.hasDevChannels=Q}function BJ(){return $.largeSystemPromptDetected}function NJ(Q){$.largeSystemPromptDetected=Q}function wJ(){return $.afkModeHeaderLatched}function zJ(Q){$.afkModeHeaderLatched=Q}function FJ(){return $.fastModeHeaderLatched}function RJ(Q){$.fastModeHeaderLatched=Q}function qJ(){return $.thinkingClearLatched}function DJ(Q){$.thinkingClearLatched=Q}function OJ(Q){return $.lspDeferLatchedTools?.has(Q)??!1}function VJ(Q){if(!$.lspDeferLatchedTools)$.lspDeferLatchedTools=new Set;$.lspDeferLatchedTools.add(Q)}function MJ(){return $.deferredDeltaLegacySession}function LJ(Q){$.deferredDeltaLegacySession=Q}function E1(){$.afkModeHeaderLatched=null,$.fastModeHeaderLatched=null,$.thinkingClearLatched=null,$.lspDeferLatchedTools=null,$.deferredDeltaLegacySession=!1}function PJ(){return $.sessionEpochMs}function fJ(){return $.promptId}function CJ(Q){$.promptId=Q}function IJ(){return!1}function _J(){return null}var v1=X(()=>{V()});function WQ(){let Q=new Set;return{subscribe(J){return Q.add(J),()=>{Q.delete(J)}},emit(...J){for(let Y of Q)Y(...J)},clear(){Q.clear()}}}var xQ=()=>{};function kJ(){return $.sessionId}function EJ(Q={}){if(Q.setCurrentAsParent)$.parentSessionId=$.sessionId;return $.planSlugCache.delete($.sessionId),$.sessionId=s(),$.sessionProjectDir=null,KQ($.sessionId),$.sessionId}function vJ(){return $.parentSessionId}function gJ(Q,J=null){$.planSlugCache.delete($.sessionId),$.sessionId=Q,$.sessionProjectDir=J,KQ(Q)}function KQ(Q){$.pendingSessionWakeup=null,E1(),$.sessionEpochMs=Date.now(),UQ.emit(Q)}function yJ(){return $.sessionProjectDir}var UQ,dJ;var GQ=X(()=>{I1();v1();V();xQ();UQ=WQ();dJ=UQ.subscribe});function pJ(){return $.originalCwd}function SJ(){return $.projectRoot}function AJ(Q){$.originalCwd=Q.normalize("NFC")}function mJ(Q){$.projectRoot=Q.normalize("NFC")}function hJ(){return $.cwd}function jJ(Q){$.cwd=Q.normalize("NFC")}function nJ(){return $.directConnectServerUrl}function bJ(Q){$.directConnectServerUrl=Q}var BQ=X(()=>{V()});function iJ(){this.__data__=new d,this.size=0}var NQ;var wQ=X(()=>{g1();NQ=iJ});function uJ(Q){var J=this.__data__,Y=J.delete(Q);return this.size=J.size,Y}var zQ;var FQ=X(()=>{zQ=uJ});function TJ(Q){return this.__data__.get(Q)}var RQ;var qQ=X(()=>{RQ=TJ});function lJ(Q){return this.__data__.has(Q)}var DQ;var OQ=X(()=>{DQ=lJ});function rJ(Q,J){var Y=this.__data__;if(Y instanceof d){var Z=Y.__data__;if(!y||Z.length<cJ-1)return Z.push([Q,J]),this.size=++Y.size,this;Y=this.__data__=new a(Z)}return Y.set(Q,J),this.size=Y.size,this}var cJ=200,LQ;var PQ=X(()=>{g1();VQ();MQ();LQ=rJ});function p(Q){var J=this.__data__=new d(Q);this.size=J.size}var S;var d1=X(()=>{g1();wQ();FQ();qQ();OQ();PQ();p.prototype.clear=NQ;p.prototype.delete=zQ;p.prototype.get=RQ;p.prototype.has=DQ;p.prototype.set=LQ;S=p});function sJ(Q){return this.__data__.set(Q,oJ),this}var oJ="__lodash_hash_undefined__",fQ;var CQ=X(()=>{fQ=sJ});function aJ(Q){return this.__data__.has(Q)}var IQ;var _Q=X(()=>{IQ=aJ});function t(Q){var J=-1,Y=Q==null?0:Q.length;this.__data__=new a;while(++J<Y)this.add(Q[J])}var kQ;var EQ=X(()=>{MQ();CQ();_Q();t.prototype.add=t.prototype.push=fQ;t.prototype.has=IQ;kQ=t});function tJ(Q,J){var Y=-1,Z=Q==null?0:Q.length;while(++Y<Z)if(J(Q[Y],Y,Q))return!0;return!1}var vQ;var gQ=X(()=>{vQ=tJ});function eJ(Q,J){return Q.has(J)}var dQ;var yQ=X(()=>{dQ=eJ});function J8(Q,J,Y,Z,H,W){var x=Y&Q8,U=Q.length,B=J.length;if(U!=B&&!(x&&B>U))return!1;var K=W.get(Q),F=W.get(J);if(K&&F)return K==J&&F==Q;var z=-1,N=!0,M=Y&$8?new kQ:void 0;W.set(Q,J),W.set(J,Q);while(++z<U){var R=Q[z],D=J[z];if(Z)var f=x?Z(D,R,z,J,Q,W):Z(R,D,z,Q,J,W);if(f!==void 0){if(f)continue;N=!1;break}if(M){if(!vQ(J,function(_,k){if(!dQ(M,k)&&(R===_||H(R,_,Y,Z,W)))return M.push(k)})){N=!1;break}}else if(!(R===D||H(R,D,Y,Z,W))){N=!1;break}}return W.delete(Q),W.delete(J),N}var Q8=1,$8=2,e;var y1=X(()=>{EQ();gQ();yQ();e=J8});var Y8,p1;var pQ=X(()=>{A();Y8=q.Uint8Array,p1=Y8});function Z8(Q){var J=-1,Y=Array(Q.size);return Q.forEach(function(Z,H){Y[++J]=[H,Z]}),Y}var SQ;var AQ=X(()=>{SQ=Z8});function X8(Q){var J=-1,Y=Array(Q.size);return Q.forEach(function(Z){Y[++J]=Z}),Y}var mQ;var hQ=X(()=>{mQ=X8});function O8(Q,J,Y,Z,H,W,x){switch(Y){case D8:if(Q.byteLength!=J.byteLength||Q.byteOffset!=J.byteOffset)return!1;Q=Q.buffer,J=J.buffer;case q8:if(Q.byteLength!=J.byteLength||!W(new p1(Q),new p1(J)))return!1;return!0;case U8:case K8:case N8:return nQ(+Q,+J);case G8:return Q.name==J.name&&Q.message==J.message;case w8:case F8:return Q==J+"";case B8:var U=SQ;case z8:var B=Z&W8;if(U||(U=mQ),Q.size!=J.size&&!B)return!1;var K=x.get(Q);if(K)return K==J;Z|=x8,x.set(Q,J);var F=e(U(Q),U(J),Z,H,W,x);return x.delete(Q),F;case R8:if(S1)return S1.call(Q)==S1.call(J)}return!1}var W8=1,x8=2,U8="[object Boolean]",K8="[object Date]",G8="[object Error]",B8="[object Map]",N8="[object Number]",w8="[object RegExp]",z8="[object Set]",F8="[object String]",R8="[object Symbol]",q8="[object ArrayBuffer]",D8="[object DataView]",jQ,S1,iQ;var uQ=X(()=>{bQ();pQ();H8();y1();AQ();hQ();jQ=m?m.prototype:void 0,S1=jQ?jQ.valueOf:void 0;iQ=O8});function V8(Q,J){var Y=-1,Z=J.length,H=Q.length;while(++Y<Z)Q[H+Y]=J[Y];return Q}var TQ;var lQ=X(()=>{TQ=V8});var M8,w;var L=X(()=>{M8=Array.isArray,w=M8});function L8(Q,J,Y){var Z=J(Q);return w(Q)?Z:TQ(Z,Y(Q))}var cQ;var rQ=X(()=>{lQ();L();cQ=L8});function P8(Q,J){var Y=-1,Z=Q==null?0:Q.length,H=0,W=[];while(++Y<Z){var x=Q[Y];if(J(x,Y,Q))W[H++]=x}return W}var oQ;var sQ=X(()=>{oQ=P8});function f8(){return[]}var aQ;var tQ=X(()=>{aQ=f8});var C8,I8,eQ,_8,Q5;var $5=X(()=>{sQ();tQ();C8=Object.prototype,I8=C8.propertyIsEnumerable,eQ=Object.getOwnPropertySymbols,_8=!eQ?aQ:function(Q){if(Q==null)return[];return Q=Object(Q),oQ(eQ(Q),function(J){return I8.call(Q,J)})},Q5=_8});function k8(Q,J){var Y=-1,Z=Array(Q);while(++Y<Q)Z[Y]=J(Y);return Z}var J5;var Y5=X(()=>{J5=k8});function E8(Q){return Q!=null&&typeof Q=="object"}var O;var h=X(()=>{O=E8});function g8(Q){return O(Q)&&P(Q)==v8}var v8="[object Arguments]",A1;var Z5=X(()=>{Q1();h();A1=g8});var X5,d8,y8,p8,$1;var m1=X(()=>{Z5();h();X5=Object.prototype,d8=X5.hasOwnProperty,y8=X5.propertyIsEnumerable,p8=A1(function(){return arguments}())?A1:function(Q){return O(Q)&&d8.call(Q,"callee")&&!y8.call(Q,"callee")},$1=p8});function S8(){return!1}var H5;var W5=X(()=>{H5=S8});var Y1={};K5(Y1,{default:()=>j});var G5,x5,A8,U5,m8,h8,j;var h1=X(()=>{A();W5();G5=typeof Y1=="object"&&Y1&&!Y1.nodeType&&Y1,x5=G5&&typeof J1=="object"&&J1&&!J1.nodeType&&J1,A8=x5&&x5.exports===G5,U5=A8?q.Buffer:void 0,m8=U5?U5.isBuffer:void 0,h8=m8||H5,j=h8});function b8(Q,J){var Y=typeof Q;return J=J==null?j8:J,!!J&&(Y=="number"||Y!="symbol"&&n8.test(Q))&&(Q>-1&&Q%1==0&&Q<J)}var j8=9007199254740991,n8,Z1;var j1=X(()=>{n8=/^(?:0|[1-9]\d*)$/;Z1=b8});function u8(Q){return typeof Q=="number"&&Q>-1&&Q%1==0&&Q<=i8}var i8=9007199254740991,n;var X1=X(()=>{n=u8});function z7(Q){return O(Q)&&n(Q.length)&&!!G[P(Q)]}var T8="[object Arguments]",l8="[object Array]",c8="[object Boolean]",r8="[object Date]",o8="[object Error]",s8="[object Function]",a8="[object Map]",t8="[object Number]",e8="[object Object]",Q7="[object RegExp]",$7="[object Set]",J7="[object String]",Y7="[object WeakMap]",Z7="[object ArrayBuffer]",X7="[object DataView]",H7="[object Float32Array]",W7="[object Float64Array]",x7="[object Int8Array]",U7="[object Int16Array]",K7="[object Int32Array]",G7="[object Uint8Array]",B7="[object Uint8ClampedArray]",N7="[object Uint16Array]",w7="[object Uint32Array]",G,B5;var N5=X(()=>{Q1();X1();h();G={};G[H7]=G[W7]=G[x7]=G[U7]=G[K7]=G[G7]=G[B7]=G[N7]=G[w7]=!0;G[T8]=G[l8]=G[Z7]=G[c8]=G[X7]=G[r8]=G[o8]=G[s8]=G[a8]=G[t8]=G[e8]=G[Q7]=G[$7]=G[J7]=G[Y7]=!1;B5=z7});function F7(Q){return function(J){return Q(J)}}var w5;var z5=X(()=>{w5=F7});var W1={};K5(W1,{default:()=>x1});var R5,T,q7,n1,D7,x1;var q5=X(()=>{R7();R5=typeof W1=="object"&&W1&&!W1.nodeType&&W1,T=R5&&typeof H1=="object"&&H1&&!H1.nodeType&&H1,q7=T&&T.exports===R5,n1=q7&&F5.process,D7=function(){try{var Q=T&&T.require&&T.require("util").types;if(Q)return Q;return n1&&n1.binding&&n1.binding("util")}catch(J){}}(),x1=D7});var D5,O7,U1;var b1=X(()=>{N5();z5();q5();D5=x1&&x1.isTypedArray,O7=D5?w5(D5):B5,U1=O7});function L7(Q,J){var Y=w(Q),Z=!Y&&$1(Q),H=!Y&&!Z&&j(Q),W=!Y&&!Z&&!H&&U1(Q),x=Y||Z||H||W,U=x?J5(Q.length,String):[],B=U.length;for(var K in Q)if((J||M7.call(Q,K))&&!(x&&(K=="length"||H&&(K=="offset"||K=="parent")||W&&(K=="buffer"||K=="byteLength"||K=="byteOffset")||Z1(K,B))))U.push(K);return U}var V7,M7,O5;var V5=X(()=>{Y5();m1();L();h1();j1();b1();V7=Object.prototype,M7=V7.hasOwnProperty;O5=L7});function f7(Q){var J=Q&&Q.constructor,Y=typeof J=="function"&&J.prototype||P7;return Q===Y}var P7,M5;var L5=X(()=>{P7=Object.prototype;M5=f7});function C7(Q,J){return function(Y){return Q(J(Y))}}var P5;var f5=X(()=>{P5=C7});var I7,C5;var I5=X(()=>{f5();I7=P5(Object.keys,Object),C5=I7});function E7(Q){if(!M5(Q))return C5(Q);var J=[];for(var Y in Object(Q))if(k7.call(Q,Y)&&Y!="constructor")J.push(Y);return J}var _7,k7,_5;var k5=X(()=>{L5();I5();_7=Object.prototype,k7=_7.hasOwnProperty;_5=E7});function g7(Q){return Q!=null&&n(Q.length)&&!E5(Q)}var v5;var g5=X(()=>{v7();X1();v5=g7});function d7(Q){return v5(Q)?O5(Q):_5(Q)}var K1;var i1=X(()=>{V5();k5();g5();K1=d7});function y7(Q){return cQ(Q,K1,Q5)}var u1;var d5=X(()=>{rQ();$5();i1();u1=y7});function m7(Q,J,Y,Z,H,W){var x=Y&p7,U=u1(Q),B=U.length,K=u1(J),F=K.length;if(B!=F&&!x)return!1;var z=B;while(z--){var N=U[z];if(!(x?N in J:A7.call(J,N)))return!1}var M=W.get(Q),R=W.get(J);if(M&&R)return M==J&&R==Q;var D=!0;W.set(Q,J),W.set(J,Q);var f=x;while(++z<B){N=U[z];var _=Q[N],k=J[N];if(Z)var XQ=x?Z(k,_,N,J,Q,W):Z(_,k,N,Q,J,W);if(!(XQ===void 0?_===k||H(_,k,Y,Z,W):XQ)){D=!1;break}f||(f=N=="constructor")}if(D&&!f){var r=Q.constructor,o=J.constructor;if(r!=o&&(("constructor"in Q)&&("constructor"in J))&&!(typeof r=="function"&&r instanceof r&&typeof o=="function"&&o instanceof o))D=!1}return W.delete(Q),W.delete(J),D}var p7=1,S7,A7,y5;var p5=X(()=>{d5();S7=Object.prototype,A7=S7.hasOwnProperty;y5=m7});var h7,B1;var S5=X(()=>{G1();A();h7=C(q,"DataView"),B1=h7});var j7,N1;var A5=X(()=>{G1();A();j7=C(q,"Promise"),N1=j7});var n7,w1;var m5=X(()=>{G1();A();n7=C(q,"Set"),w1=n7});var b7,z1;var h5=X(()=>{G1();A();b7=C(q,"WeakMap"),z1=b7});var j5="[object Map]",u7="[object Object]",n5="[object Promise]",b5="[object Set]",i5="[object WeakMap]",u5="[object DataView]",T7,l7,c7,r7,o7,E,T1;var T5=X(()=>{S5();VQ();A5();m5();h5();Q1();i7();T7=v(B1),l7=v(y),c7=v(N1),r7=v(w1),o7=v(z1),E=P;if(B1&&E(new B1(new ArrayBuffer(1)))!=u5||y&&E(new y)!=j5||N1&&E(N1.resolve())!=n5||w1&&E(new w1)!=b5||z1&&E(new z1)!=i5)E=function(Q){var J=P(Q),Y=J==u7?Q.constructor:void 0,Z=Y?v(Y):"";if(Z)switch(Z){case T7:return u5;case l7:return j5;case c7:return n5;case r7:return b5;case o7:return i5}return J};T1=E});function t7(Q,J,Y,Z,H,W){var x=w(Q),U=w(J),B=x?c5:T1(Q),K=U?c5:T1(J);B=B==l5?F1:B,K=K==l5?F1:K;var F=B==F1,z=K==F1,N=B==K;if(N&&j(Q)){if(!j(J))return!1;x=!0,F=!1}if(N&&!F)return W||(W=new S),x||U1(Q)?e(Q,J,Y,Z,H,W):iQ(Q,J,B,Y,Z,H,W);if(!(Y&s7)){var M=F&&r5.call(Q,"__wrapped__"),R=z&&r5.call(J,"__wrapped__");if(M||R){var D=M?Q.value():Q,f=R?J.value():J;return W||(W=new S),H(D,f,Y,Z,W)}}if(!N)return!1;return W||(W=new S),y5(Q,J,Y,Z,H,W)}var s7=1,l5="[object Arguments]",c5="[object Array]",F1="[object Object]",a7,r5,o5;var s5=X(()=>{d1();y1();uQ();p5();T5();L();h1();b1();a7=Object.prototype,r5=a7.hasOwnProperty;o5=t7});function a5(Q,J,Y,Z,H){if(Q===J)return!0;if(Q==null||J==null||!O(Q)&&!O(J))return Q!==Q&&J!==J;return o5(Q,J,Y,Z,a5,H)}var R1;var l1=X(()=>{s5();h();R1=a5});function $Y(Q,J,Y,Z){var H=Y.length,W=H,x=!Z;if(Q==null)return!W;Q=Object(Q);while(H--){var U=Y[H];if(x&&U[2]?U[1]!==Q[U[0]]:!(U[0]in Q))return!1}while(++H<W){U=Y[H];var B=U[0],K=Q[B],F=U[1];if(x&&U[2]){if(K===void 0&&!(B in Q))return!1}else{var z=new S;if(Z)var N=Z(K,F,B,Q,J,z);if(!(N===void 0?R1(F,K,e7|QY,Z,z):N))return!1}}return!0}var e7=1,QY=2,t5;var e5=X(()=>{d1();l1();t5=$Y});function YY(Q){return Q===Q&&!Q$(Q)}var q1;var c1=X(()=>{JY();q1=YY});function ZY(Q){var J=K1(Q),Y=J.length;while(Y--){var Z=J[Y],H=Q[Z];J[Y]=[Z,H,q1(H)]}return J}var $$;var J$=X(()=>{c1();i1();$$=ZY});function XY(Q,J){return function(Y){if(Y==null)return!1;return Y[Q]===J&&(J!==void 0||(Q in Object(Y)))}}var D1;var r1=X(()=>{D1=XY});function HY(Q){var J=$$(Q);if(J.length==1&&J[0][2])return D1(J[0][0],J[0][1]);return function(Y){return Y===Q||t5(Y,Q,J)}}var Y$;var Z$=X(()=>{e5();J$();r1();Y$=HY});function xY(Q){return typeof Q=="symbol"||O(Q)&&P(Q)==WY}var WY="[object Symbol]",b;var O1=X(()=>{Q1();h();b=xY});function GY(Q,J){if(w(Q))return!1;var Y=typeof Q;if(Y=="number"||Y=="symbol"||Y=="boolean"||Q==null||b(Q))return!0;return KY.test(Q)||!UY.test(Q)||J!=null&&Q in Object(J)}var UY,KY,i;var V1=X(()=>{L();O1();UY=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,KY=/^\w*$/;i=GY});function wY(Q){var J=X$(Q,function(Z){if(Y.size===NY)Y.clear();return Z}),Y=J.cache;return J}var NY=500,H$;var W$=X(()=>{BY();H$=wY});var zY,FY,RY,x$;var U$=X(()=>{W$();zY=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,FY=/\\(\\)?/g,RY=H$(function(Q){var J=[];if(Q.charCodeAt(0)===46)J.push("");return Q.replace(zY,function(Y,Z,H,W){J.push(H?W.replace(FY,"$1"):Z||Y)}),J}),x$=RY});function qY(Q,J){var Y=-1,Z=Q==null?0:Q.length,H=Array(Z);while(++Y<Z)H[Y]=J(Q[Y],Y,Q);return H}var K$;var G$=X(()=>{K$=qY});function w$(Q){if(typeof Q=="string")return Q;if(w(Q))return K$(Q,w$)+"";if(b(Q))return N$?N$.call(Q):"";var J=Q+"";return J=="0"&&1/Q==-DY?"-0":J}var DY=1/0,B$,N$,z$;var F$=X(()=>{bQ();G$();L();O1();B$=m?m.prototype:void 0,N$=B$?B$.toString:void 0;z$=w$});function OY(Q){return Q==null?"":z$(Q)}var R$;var q$=X(()=>{F$();R$=OY});function VY(Q,J){if(w(Q))return Q;return i(Q,J)?[Q]:x$(R$(Q))}var M1;var o1=X(()=>{L();V1();U$();q$();M1=VY});function LY(Q){if(typeof Q=="string"||b(Q))return Q;var J=Q+"";return J=="0"&&1/Q==-MY?"-0":J}var MY=1/0,I;var l=X(()=>{O1();I=LY});function PY(Q,J){J=M1(J,Q);var Y=0,Z=J.length;while(Q!=null&&Y<Z)Q=Q[I(J[Y++])];return Y&&Y==Z?Q:void 0}var L1;var s1=X(()=>{o1();l();L1=PY});function fY(Q,J,Y){var Z=Q==null?void 0:L1(Q,J);return Z===void 0?Y:Z}var D$;var O$=X(()=>{s1();D$=fY});function CY(Q,J){return Q!=null&&J in Object(Q)}var V$;var M$=X(()=>{V$=CY});function IY(Q,J,Y){J=M1(J,Q);var Z=-1,H=J.length,W=!1;while(++Z<H){var x=I(J[Z]);if(!(W=Q!=null&&Y(Q,x)))break;Q=Q[x]}if(W||++Z!=H)return W;return H=Q==null?0:Q.length,!!H&&n(H)&&Z1(x,H)&&(w(Q)||$1(Q))}var L$;var P$=X(()=>{o1();m1();L();j1();X1();l();L$=IY});function _Y(Q,J){return Q!=null&&L$(Q,J,V$)}var f$;var C$=X(()=>{M$();P$();f$=_Y});function vY(Q,J){if(i(Q)&&q1(J))return D1(I(Q),J);return function(Y){var Z=D$(Y,Q);return Z===void 0&&Z===J?f$(Y,Q):R1(J,Z,kY|EY)}}var kY=1,EY=2,I$;var _$=X(()=>{l1();O$();C$();V1();c1();r1();l();I$=vY});function gY(Q){return Q}var k$;var E$=X(()=>{k$=gY});function dY(Q){return function(J){return J==null?void 0:J[Q]}}var v$;var g$=X(()=>{v$=dY});function yY(Q){return function(J){return L1(J,Q)}}var d$;var y$=X(()=>{s1();d$=yY});function pY(Q){return i(Q)?v$(I(Q)):d$(Q)}var p$;var S$=X(()=>{g$();y$();V1();l();p$=pY});function SY(Q){if(typeof Q=="function")return Q;if(Q==null)return k$;if(typeof Q=="object")return w(Q)?I$(Q[0],Q[1]):Y$(Q);return p$(Q)}var A$;var m$=X(()=>{Z$();_$();E$();L();S$();A$=SY});function AY(Q,J){var Y,Z=-1,H=Q.length;while(++Z<H){var W=J(Q[Z]);if(W!==void 0)Y=Y===void 0?W:Y+W}return Y}var h$;var j$=X(()=>{h$=AY});function mY(Q,J){return Q&&Q.length?h$(Q,A$(J,2)):0}var u;var n$=X(()=>{m$();j$();u=mY});function hY(Q,J){$.totalAPIDuration+=Q,$.totalAPIDurationWithoutRetries+=J}function jY(){$.totalAPIDuration=0,$.totalAPIDurationWithoutRetries=0,$.totalCostUSD=0}function nY(Q,J,Y){$.modelUsage[Y]=J,$.totalCostUSD+=Q}function bY(){return $.totalCostUSD}function iY(){return $.totalAPIDuration}function uY(){if($.turnActiveSince==null)$.turnActiveSince=Date.now()}function TY(){if($.turnActiveSince!=null)$.activeDurationMs+=Date.now()-$.turnActiveSince,$.turnActiveSince=null}function lY(){return $.activeDurationMs+($.turnActiveSince!=null?Date.now()-$.turnActiveSince:0)}function cY(){return $.totalAPIDurationWithoutRetries}function rY(){return $.totalToolDuration}function oY(Q){$.totalToolDuration+=Q,$.turnToolDurationMs+=Q,$.turnToolCount++}function sY(){return $.turnHookDurationMs}function aY(Q){$.turnHookDurationMs+=Q,$.turnHookCount++}function tY(){$.turnHookDurationMs=0,$.turnHookCount=0}function eY(){return $.turnHookCount}function QZ(){return $.turnToolDurationMs}function $Z(){$.turnToolDurationMs=0,$.turnToolCount=0}function JZ(){return $.turnToolCount}function YZ(){return $.turnClassifierDurationMs}function ZZ(Q){$.turnClassifierDurationMs+=Q,$.turnClassifierCount++}function XZ(){$.turnClassifierDurationMs=0,$.turnClassifierCount=0}function HZ(){return $.turnClassifierCount}function WZ(){return $.statsStore}function xZ(Q){$.statsStore=Q}function UZ(Q){if(Q)b$();else a1=!0}function KZ(){if(a1)b$()}function b$(){$.lastInteractionTime=Date.now(),a1=!1}function GZ(Q,J){$.totalLinesAdded+=Q,$.totalLinesRemoved+=J}function BZ(){return $.totalLinesAdded}function NZ(){return $.totalLinesRemoved}function wZ(){return u(Object.values($.modelUsage),"inputTokens")}function t1(){return u(Object.values($.modelUsage),"outputTokens")}function zZ(){return u(Object.values($.modelUsage),"cacheReadInputTokens")}function FZ(){return u(Object.values($.modelUsage),"cacheCreationInputTokens")}function RZ(){return u(Object.values($.modelUsage),"webSearchRequests")}function qZ(){return t1()-e1}function DZ(){return QQ}function OZ(Q){e1=t1(),QQ=Q,f1=0}function VZ(){return f1}function MZ(){f1++}function i$(){e1=0,QQ=null,f1=0}function LZ(){$.hasUnknownModelCost=!0}function PZ(){return $.hasUnknownModelCost}function fZ(){return $.lastMainRequestId}function CZ(Q){$.lastMainRequestId=Q}function IZ(){return $.lastApiCompletionTimestamp}function _Z(Q){$.lastApiCompletionTimestamp=Q}function kZ(){$.pendingPostCompaction=!0}function EZ(){let Q=$.pendingPostCompaction;return $.pendingPostCompaction=!1,Q}function vZ(){return $.lastInteractionTime}function gZ(){if(P1=!0,c)clearTimeout(c);c=setTimeout(()=>{P1=!1,c=void 0},u$),c.unref?.()}function dZ(){return P1}async function yZ(){while(P1)await new Promise((Q)=>setTimeout(Q,u$).unref?.())}function pZ(){return $.modelUsage}function SZ(Q){return $.modelUsage[Q]}function AZ(){return $.mainLoopModelOverride}function mZ(){return $.initialMainLoopModel}function hZ(Q){$.mainLoopModelOverride=Q}function jZ(Q){$.initialMainLoopModel=Q}function nZ(){return $.sdkBetas}function bZ(Q){$.sdkBetas=Q}function iZ(){$.totalCostUSD=0,$.totalAPIDuration=0,$.totalAPIDurationWithoutRetries=0,$.totalToolDuration=0,$.startTime=Date.now(),$.activeDurationMs=0,$.turnActiveSince=null,$.totalLinesAdded=0,$.totalLinesRemoved=0,$.hasUnknownModelCost=!1,$.modelUsage={},$.promptId=null}function uZ({totalCostUSD:Q,totalAPIDuration:J,totalAPIDurationWithoutRetries:Y,totalToolDuration:Z,totalLinesAdded:H,totalLinesRemoved:W,lastDuration:x,modelUsage:U}){if($.totalCostUSD=Q,$.totalAPIDuration=J,$.totalAPIDurationWithoutRetries=Y,$.totalToolDuration=Z,$.totalLinesAdded=H,$.totalLinesRemoved=W,U)$.modelUsage=U;$.activeDurationMs=x??0,$.turnActiveSince=null}function TZ(){return $.modelStrings}function lZ(Q){$.modelStrings=Q}function cZ(){$.modelStrings=null}var a1=!1,e1=0,QQ=null,f1=0,P1=!1,c,u$=150;var $Q=X(()=>{n$();V()});function r3(){return JQ}function o3(Q){JQ=Q}function s3(Q){return C1.has(Q)?C1.get(Q):void 0}function a3(Q,J){C1.set(Q,J)}function t3(Q){return YQ.get(Q)}function e3(Q,J){YQ.set(Q,J)}function T$(){JQ=null,C1.clear(),YQ.clear()}function QW(){return ZQ}function $W(Q){ZQ=Q}function JW(){ZQ=void 0}var JQ=null,C1,YQ,ZQ;var l$=X(()=>{C1=new Map;YQ=new Map});function c$(){return!$.isInteractive}function rZ(){return $.isInteractive}function oZ(Q){$.isInteractive=Q}function sZ(){return $.clientType}function aZ(Q){$.clientType=Q}function tZ(){return $.sdkAgentProgressSummariesEnabled}function eZ(Q){$.sdkAgentProgressSummariesEnabled=Q}function Q6(){return $.kairosActive}function $6(Q){$.kairosActive=Q,g()}function J6(){return $.strictToolResultPairing}function Y6(Q){$.strictToolResultPairing=Q}function Z6(){return $.userMsgOptIn}function X6(Q){$.userMsgOptIn=Q,g()}function H6(){return $.sessionSource}function W6(Q){$.sessionSource=Q}function x6(){return $.questionPreviewFormat}function U6(Q){$.questionPreviewFormat=Q}function K6(){return $.agentColorMap}function G6(){return $.flagSettingsPath}function B6(Q){$.flagSettingsPath=Q}function N6(){return $.flagSettingsInline}function w6(Q){$.flagSettingsInline=Q}function z6(){return $.sessionIngressToken}function F6(Q){$.sessionIngressToken=Q}function R6(){return $.oauthTokenFromFd}function q6(Q){$.oauthTokenFromFd=Q}function D6(){return $.apiKeyFromFd}function O6(Q){$.apiKeyFromFd=Q}function V6(){return $.allowedSettingSources}function M6(Q){$.allowedSettingSources=Q}function L6(){return c$()&&$.clientType!=="claude-vscode"}function P6(Q){$.inlinePlugins=Q}function f6(){return $.inlinePlugins}function C6(Q){$.useCoworkPlugins=Q,T$()}function I6(){return $.useCoworkPlugins}function _6(Q){$.sessionBypassPermissionsMode=Q}function k6(){return $.sessionBypassPermissionsMode}function E6(Q){$.scheduledTasksEnabled=Q}function v6(){return $.scheduledTasksEnabled}var r$=X(()=>{l$();V()});function g6(Q){$.lastAPIRequest=Q}function d6(){return $.lastAPIRequest}function y6(Q){$.lastAPIRequestMessages=Q}function p6(){return $.lastAPIRequestMessages}function S6(Q){$.lastClassifierRequests=Q}function A6(){return $.lastClassifierRequests}function m6(Q){$.cachedClaudeMdContent=Q}function h6(){return $.cachedClaudeMdContent}function j6(Q){if($.inMemoryErrorLog.length>=100)$.inMemoryErrorLog.shift();$.inMemoryErrorLog.push(Q)}function n6(Q){$.initJsonSchema=Q}function b6(){return $.initJsonSchema}function i6(Q){if(!$.registeredHooks)$.registeredHooks={};for(let[J,Y]of Object.entries(Q)){let Z=J;if(!$.registeredHooks[Z])$.registeredHooks[Z]=[];$.registeredHooks[Z].push(...Y)}}function u6(){return $.registeredHooks}function T6(){$.registeredHooks=null}function l6(){if(!$.registeredHooks)return;let Q={};for(let[J,Y]of Object.entries($.registeredHooks)){let Z=Y.filter((H)=>!("pluginRoot"in H));if(Z.length>0)Q[J]=Z}$.registeredHooks=Object.keys(Q).length>0?Q:null}function c6(){$.initJsonSchema=null,$.registeredHooks=null}var o$=X(()=>{V()});function r6(){return $.sessionCronTasks}function o6(Q){$.sessionCronTasks.push(Q)}function s6(Q){if(Q.length===0)return 0;let J=new Set(Q),Y=$.sessionCronTasks.filter((H)=>!J.has(H.id)),Z=$.sessionCronTasks.length-Y.length;if(Z===0)return 0;return $.sessionCronTasks=Y,Z}function a6(){return $.pendingSessionWakeup}function t6(Q){let J=$.pendingSessionWakeup!==null;return $.pendingSessionWakeup=Q,J}function e6(){$.pendingSessionWakeup=null}function QX(Q){$.sessionTrustAccepted=Q}function $X(){return $.sessionTrustAccepted}function JX(Q){$.sessionPersistenceDisabled=Q}function YX(){return $.sessionPersistenceDisabled}function ZX(){return $.hasExitedPlanMode}function XX(Q){$.hasExitedPlanMode=Q}function HX(){return $.needsPlanModeExitAttachment}function WX(Q){$.needsPlanModeExitAttachment=Q}function xX(Q,J){if(J==="plan"&&Q!=="plan")$.needsPlanModeExitAttachment=!1;if(Q==="plan"&&J!=="plan")$.needsPlanModeExitAttachment=!0}function UX(){return $.needsAutoModeExitAttachment}function KX(Q){$.needsAutoModeExitAttachment=Q}function GX(Q,J){if(Q==="auto"&&J==="plan"||Q==="plan"&&J==="auto")return;let Y=Q==="auto",Z=J==="auto";if(Z&&!Y)$.needsAutoModeExitAttachment=!1;if(Y&&!Z)$.needsAutoModeExitAttachment=!0}function BX(){return $.planSlugCache}function NX(){return $.sessionCreatedTeams}function wX(Q){$.teleportedSessionInfo={isTeleported:!0,hasLoggedFirstMessage:!1,sessionId:Q.sessionId}}function zX(){return $.teleportedSessionInfo}function FX(){if($.teleportedSessionInfo)$.teleportedSessionInfo.hasLoggedFirstMessage=!0}function RX(Q,J,Y,Z=null){let H=`${Z??""}:${Q}`;$.invokedSkills.set(H,{skillName:Q,skillPath:J,content:Y,invokedAt:Date.now(),agentId:Z})}function qX(){return $.invokedSkills}function DX(Q){let J=Q??null,Y=new Map;for(let[Z,H]of $.invokedSkills)if(H.agentId===J)Y.set(Z,H);return Y}function OX(Q){if(!Q||Q.size===0){$.invokedSkills.clear();return}for(let[J,Y]of $.invokedSkills)if(Y.agentId===null||!Q.has(Y.agentId))$.invokedSkills.delete(J)}function VX(Q){for(let[J,Y]of $.invokedSkills)if(Y.agentId===Q)$.invokedSkills.delete(J)}function LX(Q,J){}function PX(){return MX}function fX(){return $.mainThreadAgentType}function CX(Q){$.mainThreadAgentType=Q}function IX(){return $.isRemoteMode}function _X(Q){$.isRemoteMode=Q}var MX;var s$=X(()=>{V();MX=[]});function kX(){throw Error("resetStateForTests can only be called in tests")}var a$=X(()=>{$Q();V()});var EX=X(()=>{V();v1();GQ();BQ();$Q();r$();o$();s$();a$()});
|
|
2
|
+
export{e$ as Mla,QJ as Nla,$J as Ola,JJ as Pla,YJ as Qla,ZJ as Rla,XJ as Sla,HJ as Tla,WJ as Ula,xJ as Vla,UJ as Wla,KJ as Xla,GJ as Yla,BJ as Zla,NJ as _la,wJ as $la,zJ as ama,FJ as bma,RJ as cma,qJ as dma,DJ as ema,OJ as fma,VJ as gma,MJ as hma,LJ as ima,E1 as jma,PJ as kma,fJ as lma,CJ as mma,IJ as nma,_J as oma,WQ as pma,xQ as qma,kJ as rma,EJ as sma,vJ as tma,gJ as uma,dJ as vma,yJ as wma,pJ as xma,SJ as yma,AJ as zma,mJ as Ama,hJ as Bma,jJ as Cma,nJ as Dma,bJ as Ema,S as Fma,d1 as Gma,kQ as Hma,EQ as Ima,dQ as Jma,yQ as Kma,p1 as Lma,pQ as Mma,mQ as Nma,hQ as Oma,TQ as Pma,lQ as Qma,w as Rma,L as Sma,cQ as Tma,rQ as Uma,oQ as Vma,sQ as Wma,aQ as Xma,tQ as Yma,Q5 as Zma,$5 as _ma,O as $ma,h as ana,$1 as bna,m1 as cna,j as dna,h1 as ena,Z1 as fna,j1 as gna,w5 as hna,z5 as ina,x1 as jna,q5 as kna,U1 as lna,b1 as mna,O5 as nna,V5 as ona,M5 as pna,L5 as qna,P5 as rna,f5 as sna,v5 as tna,g5 as una,K1 as vna,i1 as wna,u1 as xna,d5 as yna,w1 as zna,m5 as Ana,T1 as Bna,T5 as Cna,R1 as Dna,l1 as Ena,b as Fna,O1 as Gna,K$ as Hna,G$ as Ina,R$ as Jna,q$ as Kna,M1 as Lna,o1 as Mna,I as Nna,l as Ona,L1 as Pna,s1 as Qna,k$ as Rna,E$ as Sna,A$ as Tna,m$ as Una,hY as Vna,jY as Wna,nY as Xna,bY as Yna,iY as Zna,uY as _na,TY as $na,lY as aoa,cY as boa,rY as coa,oY as doa,sY as eoa,aY as foa,tY as goa,eY as hoa,QZ as ioa,$Z as joa,JZ as koa,YZ as loa,ZZ as moa,XZ as noa,HZ as ooa,WZ as poa,xZ as qoa,UZ as roa,KZ as soa,GZ as toa,BZ as uoa,NZ as voa,wZ as woa,t1 as xoa,zZ as yoa,FZ as zoa,RZ as Aoa,qZ as Boa,DZ as Coa,OZ as Doa,VZ as Eoa,MZ as Foa,LZ as Goa,PZ as Hoa,fZ as Ioa,CZ as Joa,IZ as Koa,_Z as Loa,kZ as Moa,EZ as Noa,vZ as Ooa,gZ as Poa,dZ as Qoa,yZ as Roa,pZ as Soa,SZ as Toa,AZ as Uoa,mZ as Voa,hZ as Woa,jZ as Xoa,nZ as Yoa,bZ as Zoa,iZ as _oa,uZ as $oa,TZ as apa,lZ as bpa,cZ as cpa,r3 as dpa,o3 as epa,s3 as fpa,a3 as gpa,t3 as hpa,e3 as ipa,T$ as jpa,QW as kpa,$W as lpa,JW as mpa,l$ as npa,c$ as opa,rZ as ppa,oZ as qpa,sZ as rpa,aZ as spa,tZ as tpa,eZ as upa,Q6 as vpa,$6 as wpa,J6 as xpa,Y6 as ypa,Z6 as zpa,X6 as Apa,H6 as Bpa,W6 as Cpa,x6 as Dpa,U6 as Epa,K6 as Fpa,G6 as Gpa,B6 as Hpa,N6 as Ipa,w6 as Jpa,z6 as Kpa,F6 as Lpa,R6 as Mpa,q6 as Npa,D6 as Opa,O6 as Ppa,V6 as Qpa,M6 as Rpa,L6 as Spa,P6 as Tpa,f6 as Upa,C6 as Vpa,I6 as Wpa,_6 as Xpa,k6 as Ypa,E6 as Zpa,v6 as _pa,g6 as $pa,d6 as aqa,y6 as bqa,p6 as cqa,S6 as dqa,A6 as eqa,m6 as fqa,h6 as gqa,j6 as hqa,n6 as iqa,b6 as jqa,i6 as kqa,u6 as lqa,T6 as mqa,l6 as nqa,c6 as oqa,r6 as pqa,o6 as qqa,s6 as rqa,a6 as sqa,t6 as tqa,e6 as uqa,QX as vqa,$X as wqa,JX as xqa,YX as yqa,ZX as zqa,XX as Aqa,HX as Bqa,WX as Cqa,xX as Dqa,UX as Eqa,KX as Fqa,GX as Gqa,BX as Hqa,NX as Iqa,wX as Jqa,zX as Kqa,FX as Lqa,RX as Mqa,qX as Nqa,DX as Oqa,OX as Pqa,VX as Qqa,LX as Rqa,PX as Sqa,fX as Tqa,CX as Uqa,IX as Vqa,_X as Wqa,kX as Xqa,EX as Yqa};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import{Aj as hJ,JR as TJ,gS as vJ,gq as qJ,hS as YV,iq as dJ,lM as IJ,mM as BJ,nM as cJ}from"./cli-1.1.31-g58b1jfa.mjs";import{Baa as AJ,Bfa as mJ,Eba as p,Faa as kJ,Kha as G,S$ as VJ,Sha as uJ,aca as fJ,kga as gJ,nba as c,oba as PJ,ofa as f,zba as WJ}from"./cli-1.1.31-p99fz46k.mjs";import{eja as v,gja as bJ}from"./cli-1.1.31-5tgfa7xy.mjs";import{Eka as JJ,Ika as SJ,Ska as Q,Vka as yJ}from"./cli-1.1.31-t6m64e0q.mjs";import{qla as e,xla as zJ}from"./cli-1.1.31-dmghye74.mjs";import{pma as NJ,qma as wJ}from"./cli-1.1.31-b8rbgfhm.mjs";import{hsa as LJ,lsa as HJ}from"./cli-1.1.31-qj8vksz8.mjs";class d{paths=[];lowerPaths=[];charBits=new Int32Array(0);pathLens=new Uint16Array(0);topLevelCache=null;readyCount=0;loadFromFileList(J){let W=new Set,Z=[];for(let V of J)if(V.length>0&&!W.has(V))W.add(V),Z.push(V);this.buildIndex(Z)}loadFromFileListAsync(J){let W=()=>{},Z=new Promise((Y)=>{W=Y}),V=this.buildAsync(J,W);return{queryable:Z,done:V}}async buildAsync(J,W){let Z=new Set,V=[],Y=performance.now();for(let X=0;X<J.length;X++){let _=J[X];if(_.length>0&&!Z.has(_))Z.add(_),V.push(_);if((X&255)===255&&performance.now()-Y>4)await b(),Y=performance.now()}this.resetArrays(V),Y=performance.now();let $=!0;for(let X=0;X<V.length;X++)if(this.indexPath(X),(X&255)===255&&performance.now()-Y>4){if(this.readyCount=X+1,$)W(),$=!1;await b(),Y=performance.now()}this.readyCount=V.length,W()}buildIndex(J){this.resetArrays(J);for(let W=0;W<J.length;W++)this.indexPath(W);this.readyCount=J.length}resetArrays(J){let W=J.length;this.paths=J,this.lowerPaths=Array(W),this.charBits=new Int32Array(W),this.pathLens=new Uint16Array(W),this.readyCount=0,this.topLevelCache=CJ(J,100)}indexPath(J){let W=this.paths[J].toLowerCase();this.lowerPaths[J]=W;let Z=W.length;this.pathLens[J]=Z;let V=0;for(let Y=0;Y<Z;Y++){let $=W.charCodeAt(Y);if($>=97&&$<=122)V|=1<<$-97}this.charBits[J]=V}search(J,W){if(W<=0)return[];if(J.length===0){if(this.topLevelCache)return this.topLevelCache.slice(0,W);return[]}let Z=J!==J.toLowerCase(),V=Z?J:J.toLowerCase(),Y=Math.min(V.length,64),$=Array(Y),X=0;for(let M=0;M<Y;M++){let D=V.charAt(M);$[M]=D;let E=D.charCodeAt(0);if(E>=97&&E<=122)X|=1<<E-97}let _=Y*24+8+32,H=[],q=-1/0,{paths:B,lowerPaths:A,charBits:F,pathLens:U,readyCount:m}=this;J:for(let M=0;M<m;M++){if((F[M]&X)!==X)continue;let D=Z?B[M]:A[M],E=D.indexOf($[0]);if(E===-1)continue;y[0]=E;let C=0,g=0,u=E;for(let N=1;N<Y;N++){if(E=D.indexOf($[N],u+1),E===-1)continue J;y[N]=E;let K=E-u-1;if(K===0)g+=4;else C+=3+K*1;u=E}if(H.length===W&&_+g-C<=q)continue;let S=B[M],UJ=U[M],T=Y*16+g-C;T+=XJ(S,y[0],!0);for(let N=1;N<Y;N++)T+=XJ(S,y[N],!1);if(T+=Math.max(0,32-(UJ>>2)),H.length<W){if(H.push({path:S,fuzzScore:T}),H.length===W)H.sort((N,K)=>N.fuzzScore-K.fuzzScore),q=H[0].fuzzScore}else if(T>q){let N=0,K=H.length;while(N<K){let h=N+K>>1;if(H[h].fuzzScore<T)N=h+1;else K=h}H.splice(N,0,{path:S,fuzzScore:T}),H.shift(),q=H[0].fuzzScore}}H.sort((M,D)=>D.fuzzScore-M.fuzzScore);let I=H.length,w=Math.max(I,1),z=Array(I);for(let M=0;M<I;M++){let D=H[M].path,E=M/w,C=D.includes("test")?Math.min(E*1.05,1):E;z[M]={path:D,score:C}}return z}}function XJ(J,W,Z){if(W===0)return Z?8:0;let V=J.charCodeAt(W-1);if(jJ(V))return 8;if(RJ(V)&&GJ(J.charCodeAt(W)))return 6;return 0}function jJ(J){return J===47||J===92||J===45||J===95||J===46||J===32}function RJ(J){return J>=97&&J<=122}function GJ(J){return J>=65&&J<=90}function b(){return new Promise((J)=>setImmediate(J))}function CJ(J,W){let Z=new Set;for(let Y of J){let $=Y.length;for(let _=0;_<Y.length;_++){let H=Y.charCodeAt(_);if(H===47||H===92){$=_;break}}let X=Y.slice(0,$);if(X.length>0){if(Z.add(X),Z.size>=W)break}}let V=Array.from(Z);return V.sort((Y,$)=>{let X=Y.length-$.length;if(X!==0)return X;return Y<$?-1:Y>$?1:0}),V.slice(0,W).map((Y)=>({path:Y,score:0}))}var _J=4,y;var QJ=HJ(()=>{y=new Int32Array(64)});import{statSync as pJ}from"fs";import*as O from"path";function l(){if(!x)x=new d;return x}function TV(){x=null,j=null,R++,k=null,L=[],ZJ=[],$J=[],YJ.clear(),n=null,s=null,o=0,a=null,i=null,P=null}function xJ(J){let W=J.length,Z=Math.max(1,Math.floor(W/500)),V=-2128831035;for(let Y=0;Y<W;Y+=Z){let $=J[Y];for(let X=0;X<$.length;X++)V=(V^$.charCodeAt(X))*16777619|0;V=V*16777619|0}if(W>0){let Y=J[W-1];for(let $=0;$<Y.length;$++)V=(V^Y.charCodeAt($))*16777619|0}return`${W}:${(V>>>0).toString(16)}`}function lJ(){let J=WJ(v());if(!J)return null;try{return pJ(O.join(J,".git","index")).mtimeMs}catch{return null}}function MJ(J,W,Z){if(Z===W)return J;return J.map((V)=>{let Y=O.join(W,V);return O.relative(Z,Y)})}async function nJ(J){if(J.length===0)return;if(!x||L.length===0)return;let W=await FJ(J),Z=[...L,...ZJ,...$J,...J,...W],V=xJ(Z);if(V===P){Q("[FileIndex] skipped index rebuild — merged paths unchanged");return}await x.loadFromFileListAsync(Z).done,P=V,Q(`[FileIndex] rebuilt index with ${L.length} tracked + ${J.length} untracked files`)}async function OJ(J,W){let Z=`${J}:${W}`;if(s===Z)return n;let V=JJ(),Y=[".ignore",".rgignore"],$=[...new Set([J,W])],X=DJ.default(),_=!1,H=$.flatMap((A)=>Y.map((F)=>O.join(A,F))),q=await Promise.all(H.map((A)=>V.readFile(A,{encoding:"utf8"}).catch(()=>null)));for(let[A,F]of q.entries()){if(F===null)continue;X.add(F),_=!0,Q(`[FileIndex] loaded ignore patterns from ${H[A]}`)}let B=_?X:null;return n=B,s=Z,B}async function sJ(J,W){let Z=Date.now();Q("[FileIndex] getFilesUsingGit called");let V=WJ(v());if(!V)return Q("[FileIndex] not a git repo, returning null"),null;try{let Y=v(),$=Date.now(),X=await c(p(),["-c","core.quotepath=false","ls-files","--recurse-submodules"],{timeout:5000,abortSignal:J,cwd:V});if(Q(`[FileIndex] git ls-files (tracked) took ${Date.now()-$}ms`),X.code!==0)return Q(`[FileIndex] git ls-files failed (code=${X.code}, stderr=${X.stderr}), falling back to ripgrep`),null;let _=X.stdout.trim().split(`
|
|
2
|
+
`).filter(Boolean),H=MJ(_,V,Y),q=await OJ(V,Y);if(q){let A=H.length;H=q.filter(H),Q(`[FileIndex] applied ignore patterns: ${A} -> ${H.length} files`)}L=H;let B=Date.now()-Z;if(Q(`[FileIndex] git ls-files: ${H.length} tracked files in ${B}ms`),!k){let A=W?["-c","core.quotepath=false","ls-files","--others","--exclude-standard"]:["-c","core.quotepath=false","ls-files","--others"],F=R;k=c(p(),A,{timeout:1e4,cwd:V}).then(async(U)=>{if(F!==R)return;if(U.code===0){let m=U.stdout.trim().split(`
|
|
3
|
+
`).filter(Boolean),I=MJ(m,V,Y),w=await OJ(V,Y);if(w&&I.length>0){let z=I.length;I=w.filter(I),Q(`[FileIndex] applied ignore patterns to untracked: ${z} -> ${I.length} files`)}Q(`[FileIndex] background untracked fetch: ${I.length} files`),nJ(I)}}).catch((U)=>{Q(`[FileIndex] background untracked fetch failed: ${U}`)}).finally(()=>{k=null})}return H}catch(Y){return Q(`[FileIndex] git ls-files error: ${e(Y)}`),null}}async function FJ(J){let W=new Set,Z=performance.now();for(let V=0;V<J.length;V++)if(oJ(J,V,V+1,W),(V&255)===255&&performance.now()-Z>_J)await b(),Z=performance.now();return[...W].map((V)=>V+O.sep)}function oJ(J,W,Z,V){for(let Y=W;Y<Z;Y++){let $=O.dirname(J[Y]);while($!=="."&&!V.has($)){let X=O.dirname($);if(X===$)break;V.add($),$=X}}}async function aJ(J){return(await Promise.all(IJ.map((Z)=>BJ(Z,J)))).flatMap((Z)=>Z.map((V)=>V.filePath))}async function iJ(J,W){Q(`[FileIndex] getProjectFiles called, respectGitignore=${W}`);let Z=await sJ(J,W);if(Z!==null)return Q(`[FileIndex] using git ls-files result (${Z.length} files)`),Z;return Q("[FileIndex] git ls-files returned null, falling back to ripgrep"),KJ(J,W)}async function KJ(J,W){let Z=Date.now(),V=["--files","--follow","--hidden","--glob","!.git/","--glob","!.svn/","--glob","!.hg/","--glob","!.bzr/","--glob","!.jj/","--glob","!.sl/"];if(!W)V.push("--no-ignore-vcs");let Y=v(),X=(await qJ(V,Y,J)).map((H)=>O.relative(Y,H)),_=Date.now()-Z;return Q(`[FileIndex] ripgrep: ${X.length} files in ${_}ms`),X}async function vV(){let J=AbortSignal.timeout(1e4),W=f(),Z=VJ(),V=W.respectGitignore??Z.respectGitignore??!0;try{return await KJ(J,V)}catch(Y){return G(Y),[]}}async function rJ(){let J=AbortSignal.timeout(1e4),W=l();try{let Z=f(),V=VJ(),Y=Z.respectGitignore??V.respectGitignore??!0,$=v(),[X,_]=await Promise.all([iJ(J,Y),aJ($)]);ZJ=_;let H=[...X,..._],q=await FJ(H);$J=q;let B=[...q,...H],A=xJ(B);if(A!==i)await W.loadFromFileListAsync(B).done,i=A,P=null;else Q("[FileIndex] skipped index rebuild — tracked paths unchanged")}catch(Z){G(Z)}return W}function tJ(J,W){let Z=Math.min(J.length,W.length),V=0;while(V<Z&&J[V]===W[V])V++;return J.substring(0,V)}function UV(J){if(J.length===0)return"";let W=J.map((V)=>V.displayText),Z=W[0];for(let V=1;V<W.length;V++){let Y=W[V];if(Z=tJ(Z,Y),Z==="")return""}return Z}function r(J,W){return{id:`file-${J}`,displayText:J,metadata:W!==void 0?{score:W}:void 0}}function eJ(J,W){return J.search(W,t).map((V)=>r(V.path,V.score))}function EJ(){if(j)return;let J=lJ();if(x){if(!(J!==null&&J!==a)&&Date.now()-o<JV)return}let W=R,Z=Date.now();l(),j=rJ().then((V)=>{if(W!==R)return V;return j=null,YJ.emit(),a=J,o=Date.now(),Q(`[FileIndex] cache refresh completed in ${Date.now()-Z}ms`),V}).catch((V)=>{if(Q(`[FileIndex] Cache refresh failed: ${e(V)}`),G(V),W===R)j=null;return l()})}async function VV(){let J=JJ(),W=v();try{let Z=await J.readdir(W);return Z.sort((V,Y)=>{let $=V.isDirectory(),X=Y.isDirectory();if($!==X)return $?-1:1;let _=V.name.startsWith("."),H=Y.name.startsWith(".");if(_!==H)return _?-1:1;return V.name.toLowerCase().localeCompare(Y.name.toLowerCase())}),Z.map((V)=>{let Y=O.join(W,V.name),$=O.relative(W,Y);return V.isDirectory()?$+O.sep:$})}catch(Z){return G(Z),[]}}async function jV(J,W=!1){if(!J&&!W)return[];if(f().fileSuggestion?.type==="command"){let V={...TJ(),query:J};return(await vJ(V)).slice(0,t).map(r)}if(J===""||J==="."||J==="./"){let V=await VV();return EJ(),V.slice(0,t).map(r)}let Z=Date.now();try{let V=j!==null;EJ();let Y=J,$="."+O.sep;if(J.startsWith($))Y=J.substring(2);if(Y.startsWith("~"))Y=AJ(Y);let X=x?eJ(x,Y):[],_=Date.now()-Z;return Q(`[FileIndex] generateFileSuggestions: ${X.length} results in ${_}ms (${V?"partial":"full"} index)`),X}catch(V){return G(V),[]}}function RV(J,W,Z,V,Y,$){let X=typeof J==="string"?J:J.displayText,_=W.substring(0,V)+X+W.substring(V+Z.length);Y(_);let H=V+X.length;$(H)}var DJ,x=null,j=null,YJ,KV,R=0,k=null,L,ZJ,$J,n=null,s=null,o=0,a=null,i=null,P=null,t=100,JV=5000;var WV=HJ(()=>{cJ();QJ();gJ();bJ();yJ();zJ();PJ();SJ();fJ();YV();uJ();kJ();dJ();mJ();wJ();DJ=LJ(hJ(),1);YJ=NJ(),KV=YJ.subscribe,L=[],ZJ=[],$J=[]});
|
|
4
|
+
export{d as Ci,QJ as Di,KV as Ei,TV as Fi,vV as Gi,UV as Hi,EJ as Ii,jV as Ji,RV as Ki,WV as Li};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{Gb as N}from"./cli-1.1.31-m5w2d13z.mjs";import{$V as A,aW as w}from"./cli-1.1.31-yz72mhbg.mjs";import{Eha as x,Gha as j}from"./cli-1.1.31-p99fz46k.mjs";import{Aka as E,Ska as X,Vka as K,wka as L}from"./cli-1.1.31-t6m64e0q.mjs";import{qla as G,xla as k}from"./cli-1.1.31-dmghye74.mjs";w();import{randomUUID as C}from"crypto";K();j();k();E();function O(H){return H!==null&&typeof H==="object"&&"type"in H&&typeof H.type==="string"}function T(H){return H!==null&&typeof H==="object"&&"type"in H&&H.type==="control_response"&&"response"in H}function h(H){return H!==null&&typeof H==="object"&&"type"in H&&H.type==="control_request"&&"request_id"in H&&"request"in H}function D(H){if((H.type==="user"||H.type==="assistant")&&H.isVirtual)return!1;return H.type==="user"||H.type==="assistant"||H.type==="system"&&H.subtype==="local_command"}function c(H){if(H.type!=="user"||H.isMeta||H.toolUseResult||H.isCompactSummary)return;if(H.origin&&H.origin.kind!=="human")return;let Z=H.message.content,V;if(typeof Z==="string")V=Z;else for(let $ of Z)if($.type==="text"){V=$.text;break}if(!V)return;return x(V)||void 0}function m(H,Z,V,f,$,B){try{let J=N(L(H));if(T(J)){X("[bridge:repl] Ingress message type=control_response"),$?.(J);return}if(h(J)){X(`[bridge:repl] Inbound control_request subtype=${J.request.subtype}`),B?.(J);return}if(!O(J))return;let Q="uuid"in J&&typeof J.uuid==="string"?J.uuid:void 0;if(Q&&Z.has(Q)){X(`[bridge:repl] Ignoring echo: type=${J.type} uuid=${Q}`);return}if(Q&&V.has(Q)){X(`[bridge:repl] Ignoring re-delivered inbound: type=${J.type} uuid=${Q}`);return}if(X(`[bridge:repl] Ingress message type=${J.type}${Q?` uuid=${Q}`:""}`),J.type==="user"){if(Q)V.add(Q);f?.(J)}else X(`[bridge:repl] Ignoring non-user inbound message: type=${J.type}`)}catch(J){X(`[bridge:repl] Failed to parse ingress message: ${G(J)}`)}}var P="This session is outbound-only. Enable Remote Control locally to allow inbound control.";function v(H,Z){let{transport:V,sessionId:f,outboundOnly:$,onInterrupt:B,onSetModel:J,onSetMaxThinkingTokens:Q,onSetPermissionMode:Y}=Z;if(!V){X("[bridge:repl] Cannot respond to control_request: transport not configured");return}let W;if($&&H.request.subtype!=="initialize"){W={type:"control_response",response:{subtype:"error",request_id:H.request_id,error:P}};let z={...W,session_id:f};V.write(z),X(`[bridge:repl] Rejected ${H.request.subtype} (outbound-only) request_id=${H.request_id}`);return}switch(H.request.subtype){case"initialize":W={type:"control_response",response:{subtype:"success",request_id:H.request_id,response:{commands:[],output_style:"normal",available_output_styles:["normal"],models:[],account:{},pid:process.pid}}};break;case"set_model":J?.(H.request.model),W={type:"control_response",response:{subtype:"success",request_id:H.request_id}};break;case"set_max_thinking_tokens":Q?.(H.request.max_thinking_tokens),W={type:"control_response",response:{subtype:"success",request_id:H.request_id}};break;case"set_permission_mode":{let z=Y?.(H.request.mode)??{ok:!1,error:"set_permission_mode is not supported in this context (onSetPermissionMode callback not registered)"};if(z.ok)W={type:"control_response",response:{subtype:"success",request_id:H.request_id}};else W={type:"control_response",response:{subtype:"error",request_id:H.request_id,error:z.error}};break}case"interrupt":B?.(),W={type:"control_response",response:{subtype:"success",request_id:H.request_id}};break;default:W={type:"control_response",response:{subtype:"error",request_id:H.request_id,error:`REPL bridge does not handle control_request subtype: ${H.request.subtype}`}}}let _={...W,session_id:f};V.write(_),X(`[bridge:repl] Sent control_response for ${H.request.subtype} request_id=${H.request_id} result=${W.response.subtype}`)}function q(H){return{type:"result",subtype:"success",duration_ms:0,duration_api_ms:0,is_error:!1,num_turns:0,result:"",stop_reason:null,total_cost_usd:0,usage:{...A},modelUsage:{},permission_denials:[],session_id:H,uuid:C()}}class S{capacity;ring;set=new Set;writeIdx=0;constructor(H){this.capacity=H,this.ring=Array(H)}add(H){if(this.set.has(H))return;let Z=this.ring[this.writeIdx];if(Z!==void 0)this.set.delete(Z);this.ring[this.writeIdx]=H,this.set.add(H),this.writeIdx=(this.writeIdx+1)%this.capacity}has(H){return this.set.has(H)}clear(){this.set.clear(),this.ring.fill(void 0),this.writeIdx=0}}
|
|
2
|
+
export{D as Ab,c as Bb,m as Cb,v as Db,q as Eb,S as Fb};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import{Bia as N,Fia as T}from"./cli-1.1.31-mcekc48f.mjs";import{lsa as Q}from"./cli-1.1.31-qj8vksz8.mjs";function X(){if(!process.stdin.isTTY||F||process.argv.includes("-p")||process.argv.includes("--print"))return;F=!0,A="";try{process.stdin.setEncoding("utf8"),process.stdin.setRawMode(!0),process.stdin.ref(),J=()=>{let q=process.stdin.read();while(q!==null){if(typeof q==="string")U(q);q=process.stdin.read()}},process.stdin.on("readable",J)}catch{F=!1}}function U(q){let v=0;while(v<q.length){let M=q[v],z=M.charCodeAt(0);if(z===3){K(),process.exit(130);return}if(z===4){K();return}if(z===127||z===8){if(A.length>0){let O=N(A);A=A.slice(0,-(O.length||1))}v++;continue}if(z===27){v++;while(v<q.length&&!(q.charCodeAt(v)>=64&&q.charCodeAt(v)<=126))v++;if(v<q.length)v++;continue}if(z<32&&z!==9&&z!==10&&z!==13){v++;continue}if(z===13){A+=`
|
|
2
|
+
`,v++;continue}A+=M,v++}}function K(){if(!F)return;if(F=!1,J)process.stdin.removeListener("readable",J),J=null}function Y(){K();let q=A.trim();return A="",q}function Z(q){A=q}var A="",F=!1,J=null;var V=Q(()=>{T()});
|
|
3
|
+
export{X as OZ,K as PZ,Y as QZ,Z as RZ,V as SZ};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import{csa as V_,dsa as su,fsa as K_,gsa as f_}from"./cli-1.1.31-z7hdz84q.mjs";import{jsa as H,msa as $_}from"./cli-1.1.31-qj8vksz8.mjs";var W_=H((k_)=>{var z_=$_("node:stream"),v=V_(),K=f_(),q=K_(),m=(_)=>_?.body instanceof z_.Readable||typeof ReadableStream<"u"&&_?.body instanceof ReadableStream,G_=["AuthFailure","InvalidSignatureException","RequestExpired","RequestInTheFuture","RequestTimeTooSkewed","SignatureDoesNotMatch"],J_=["BandwidthLimitExceeded","EC2ThrottledException","LimitExceededException","PriorRequestNotComplete","ProvisionedThroughputExceededException","RequestLimitExceeded","RequestThrottled","RequestThrottledException","SlowDown","ThrottledException","Throttling","ThrottlingException","TooManyRequestsException","TransactionInProgressException"],X_=["TimeoutError","RequestTimeout","RequestTimeoutException"],C_=[500,502,503,504],d_=["ECONNRESET","ECONNREFUSED","EPIPE","ETIMEDOUT"],Z_=["EHOSTUNREACH","ENETUNREACH","ENOTFOUND"],A=(_)=>_?.$retryable!==void 0,p=(_)=>G_.includes(_.name),y=(_)=>_.$metadata?.clockSkewCorrected,s=(_)=>{let u=new Set(["Failed to fetch","NetworkError when attempting to fetch resource","The Internet connection appears to be offline","Load failed","Network request failed"]);if(!(_&&_ instanceof TypeError))return!1;return u.has(_.message)},J=(_)=>_.$metadata?.httpStatusCode===429||J_.includes(_.name)||_.$retryable?.throttling==!0,X=(_,u=0)=>A(_)||y(_)||_.name==="InvalidSignatureException"&&_.message?.includes("Signature expired")||X_.includes(_.name)||d_.includes(_?.code||"")||Z_.includes(_?.code||"")||C_.includes(_.$metadata?.httpStatusCode||0)||s(_)||o(_)||_.cause!==void 0&&u<=10&&X(_.cause,u+1),a=(_)=>{if(_.$metadata?.httpStatusCode!==void 0){let u=_.$metadata.httpStatusCode;if(500<=u&&u<=599&&!X(_))return!0;return!1}return!1};function o(_){return _.code==="ERR_HTTP2_STREAM_ERROR"&&_.message.includes("NGHTTP2_REFUSED_STREAM")}var e=100,Q=20000,t=500,Z=500,r=5,__=10,g=1,c="amz-sdk-invocation-id",w="amz-sdk-request";function u_(_,u){if(!K.HttpResponse.isInstance(_))return;for(let E of Object.keys(_.headers)){let O=E.toLowerCase();if(O==="retry-after"){let T=_.headers[E],b=NaN;if(T.endsWith("GMT"))try{b=(q.parseRfc7231DateTime(T).getTime()-Date.now())/1000}catch(L){u?.trace?.("Failed to parse retry-after header"),u?.trace?.(L)}else if(T.match(/ GMT, ((\d+)|(\d+\.\d+))$/))b=Number(T.match(/ GMT, ([\d.]+)$/)?.[1]);else if(T.match(/^((\d+)|(\d+\.\d+))$/))b=Number(T);else if(Date.parse(T)>=Date.now())b=(Date.parse(T)-Date.now())/1000;if(isNaN(b))return;return new Date(Date.now()+b*1000)}else if(O==="x-amz-retry-after"){let T=_.headers[E],b=Number(T);if(isNaN(b)){u?.trace?.(`Failed to parse x-amz-retry-after=${T}`);return}return new Date(Date.now()+b)}}}function H_(_,u){return u_(_,u)}var E_=(_)=>{if(_ instanceof Error)return _;if(_ instanceof Object)return Object.assign(Error(),_);if(typeof _==="string")return Error(_);return Error(`AWS SDK error wrapper for ${_}`)};function O_(_){return(u)=>(E,O)=>async(T)=>{let b=await u.retryStrategy(),L=await u.maxAttempts();if(Q_(b)){b=b;let N=await b.acquireInitialRetryToken((O.partition_id??"")+(O.__retryLongPoll?":longpoll":"")),j=Error(),Y=0,F=0,{request:I}=T,R=K.HttpRequest.isInstance(I);if(R)I.headers[c]=q.v4();while(!0)try{if(R)I.headers[w]=`attempt=${Y+1}; max=${L}`;let{response:V,output:z}=await E(T);return b.recordSuccess(N),z.$metadata.attempts=Y+1,z.$metadata.totalRetryDelay=F,{response:V,output:z}}catch(V){let z=c_(V,u.logger);if(j=E_(V),R&&_(I))throw(O.logger instanceof v.NoOpLogger?console:O.logger)?.warn("An error was encountered in a non-retryable streaming request."),j;try{N=await b.refreshRetryTokenForRetry(N,z)}catch(x){if(typeof x.$backoff==="number")await l(x.$backoff);if(!j.$metadata)j.$metadata={};throw j.$metadata.attempts=Y+1,j.$metadata.totalRetryDelay=F,j}Y=N.getRetryCount();let k=N.getRetryDelay();F+=k,await l(k)}}else{if(b=b,b?.mode)O.userAgent=[...O.userAgent||[],["cfg/retry-mode",b.mode]];return b.retry(E,T)}}}var l=(_)=>new Promise((u)=>setTimeout(u,_)),Q_=(_)=>typeof _.acquireInitialRetryToken<"u"&&typeof _.refreshRetryTokenForRetry<"u"&&typeof _.recordSuccess<"u",c_=(_,u)=>{let E={error:_,errorType:w_(_)},O=u_(_.$response,u);if(O)E.retryAfterHint=O;return E},w_=(_)=>{if(J(_))return"THROTTLING";if(X(_))return"TRANSIENT";if(a(_))return"SERVER_ERROR";return"CLIENT_ERROR"},b_={name:"retryMiddleware",tags:["RETRY"],step:"finalizeRequest",priority:"high",override:!0};function B_(_){let u=O_(_);return(E)=>({applyToStack:(O)=>{O.add(u(E),b_)}})}class C{static setTimeoutFn=setTimeout;beta;minCapacity;minFillRate;scaleConstant;smooth;enabled=!1;availableTokens=0;lastMaxRate=0;measuredTxRate=0;requestCount=0;fillRate;lastThrottleTime;lastTimestamp=0;lastTxRateBucket;maxCapacity;timeWindow=0;constructor(_){this.beta=_?.beta??0.7,this.minCapacity=_?.minCapacity??1,this.minFillRate=_?.minFillRate??0.5,this.scaleConstant=_?.scaleConstant??0.4,this.smooth=_?.smooth??0.8,this.lastThrottleTime=this.getCurrentTimeInSeconds(),this.lastTxRateBucket=Math.floor(this.getCurrentTimeInSeconds()),this.fillRate=this.minFillRate,this.maxCapacity=this.minCapacity}async getSendToken(){return this.acquireTokenBucket(1)}updateClientSendingRate(_){let u;this.updateMeasuredRate();let E=_;if(E?.errorType==="THROTTLING"||J(E?.error??_)){let b=!this.enabled?this.measuredTxRate:Math.min(this.measuredTxRate,this.fillRate);this.lastMaxRate=b,this.calculateTimeWindow(),this.lastThrottleTime=this.getCurrentTimeInSeconds(),u=this.cubicThrottle(b),this.enableTokenBucket()}else this.calculateTimeWindow(),u=this.cubicSuccess(this.getCurrentTimeInSeconds());let T=Math.min(u,2*this.measuredTxRate);this.updateTokenBucketRate(T)}getCurrentTimeInSeconds(){return Date.now()/1000}async acquireTokenBucket(_){if(!this.enabled)return;this.refillTokenBucket();while(_>this.availableTokens){let u=(_-this.availableTokens)/this.fillRate*1000;await new Promise((E)=>C.setTimeoutFn(E,u)),this.refillTokenBucket()}this.availableTokens=this.availableTokens-_}refillTokenBucket(){let _=this.getCurrentTimeInSeconds();if(!this.lastTimestamp){this.lastTimestamp=_;return}let u=(_-this.lastTimestamp)*this.fillRate;this.availableTokens=Math.min(this.maxCapacity,this.availableTokens+u),this.lastTimestamp=_}calculateTimeWindow(){this.timeWindow=this.getPrecise(Math.pow(this.lastMaxRate*(1-this.beta)/this.scaleConstant,0.3333333333333333))}cubicThrottle(_){return this.getPrecise(_*this.beta)}cubicSuccess(_){return this.getPrecise(this.scaleConstant*Math.pow(_-this.lastThrottleTime-this.timeWindow,3)+this.lastMaxRate)}enableTokenBucket(){this.enabled=!0}updateTokenBucketRate(_){this.refillTokenBucket(),this.fillRate=Math.max(_,this.minFillRate),this.maxCapacity=Math.max(_,this.minCapacity),this.availableTokens=Math.min(this.availableTokens,this.maxCapacity)}updateMeasuredRate(){let _=this.getCurrentTimeInSeconds(),u=Math.floor(_*2)/2;if(this.requestCount++,u>this.lastTxRateBucket){let E=this.requestCount/(u-this.lastTxRateBucket);this.measuredTxRate=this.getPrecise(E*this.smooth+this.measuredTxRate*(1-this.smooth)),this.requestCount=0,this.lastTxRateBucket=u}}getPrecise(_){return parseFloat(_.toFixed(8))}}class M{static v2026=typeof process<"u"&&process.env?.SMITHY_NEW_RETRIES_2026==="true";static delay(){return M.v2026?50:100}static throttlingDelay(){return M.v2026?1000:500}static cost(){return M.v2026?14:5}static throttlingCost(){return M.v2026?5:10}static modifiedCostType(){return M.v2026?"THROTTLING":"TRANSIENT"}}class T_{x=M.delay();computeNextBackoffDelay(_){let u=Math.random(),E=2,O=u*Math.min(this.x*2**_,Q);return Math.floor(O)}setDelayBase(_){this.x=_}}class h{delay;count;cost;longPoll;constructor(_,u,E,O){this.delay=_,this.count=u,this.cost=E,this.longPoll=O}getRetryCount(){return this.count}getRetryDelay(){return Math.min(Q,this.delay)}getRetryCost(){return this.cost}isLongPoll(){return this.longPoll}}k_.RETRY_MODES=void 0;(function(_){_.STANDARD="standard",_.ADAPTIVE="adaptive"})(k_.RETRY_MODES||(k_.RETRY_MODES={}));var $=3,Y_=k_.RETRY_MODES.STANDARD,d={incompatible:1,attempts:2,capacity:3},G=class{mode=k_.RETRY_MODES.STANDARD;capacity=Z;retryBackoffStrategy;maxAttemptsProvider;baseDelay;constructor(u){if(typeof u==="number")this.maxAttemptsProvider=async()=>u;else if(typeof u==="function")this.maxAttemptsProvider=u;else if(u&&typeof u==="object")this.maxAttemptsProvider=async()=>u.maxAttempts,this.baseDelay=u.baseDelay,this.retryBackoffStrategy=u.backoff;this.maxAttemptsProvider??=async()=>$,this.baseDelay??=M.delay(),this.retryBackoffStrategy??=new T_}async acquireInitialRetryToken(u){return new h(M.delay(),0,void 0,M.v2026&&u.includes(":longpoll"))}async refreshRetryTokenForRetry(u,E){let O=await this.getMaxAttempts(),T=this.retryCode(u,E,O),b=T===0,L=u.isLongPoll?.();if(b||L){let N=E.errorType;this.retryBackoffStrategy.setDelayBase(N==="THROTTLING"?M.throttlingDelay():this.baseDelay);let j=this.retryBackoffStrategy.computeNextBackoffDelay(u.getRetryCount()),Y=j;if(E.retryAfterHint instanceof Date)Y=Math.max(j,Math.min(E.retryAfterHint.getTime()-Date.now(),j+5000));if(!b)throw Object.assign(Error("No retry token available"),{$backoff:M.v2026&&T===d.capacity&&L?Y:0});else{let F=this.getCapacityCost(N);return this.capacity-=F,new h(Y,u.getRetryCount()+1,F,u.isLongPoll?.()??!1)}}throw Error("No retry token available")}recordSuccess(u){this.capacity=Math.min(Z,this.capacity+(u.getRetryCost()??g))}getCapacity(){return this.capacity}async maxAttempts(){return this.maxAttemptsProvider()}async getMaxAttempts(){try{return await this.maxAttemptsProvider()}catch(u){return console.warn(`Max attempts provider could not resolve. Using default of ${$}`),$}}retryCode(u,E,O){let T=u.getRetryCount()+1,b=this.isRetryableError(E.errorType)?0:d.incompatible,L=T<O?0:d.attempts,N=this.capacity>=this.getCapacityCost(E.errorType)?0:d.capacity;return b||L||N}getCapacityCost(u){return u===M.modifiedCostType()?M.throttlingCost():M.cost()}isRetryableError(u){return u==="THROTTLING"||u==="TRANSIENT"}},j_=class{mode=k_.RETRY_MODES.ADAPTIVE;rateLimiter;standardRetryStrategy;constructor(u,E){let{rateLimiter:O}=E??{};this.rateLimiter=O??new C,this.standardRetryStrategy=E?new G({maxAttempts:typeof u==="number"?u:3,...E}):new G(u)}async acquireInitialRetryToken(u){let E=await this.standardRetryStrategy.acquireInitialRetryToken(u);return await this.rateLimiter.getSendToken(),E}async refreshRetryTokenForRetry(u,E){this.rateLimiter.updateClientSendingRate(E);let O=await this.standardRetryStrategy.refreshRetryTokenForRetry(u,E);return await this.rateLimiter.getSendToken(),O}recordSuccess(u){this.rateLimiter.updateClientSendingRate({}),this.standardRetryStrategy.recordSuccess(u)}async maxAttemptsProvider(){return this.standardRetryStrategy.maxAttempts()}};class P_ extends G{computeNextBackoffDelay;constructor(_,u=M.delay()){super(typeof _==="function"?_:async()=>_);if(typeof u==="number")this.computeNextBackoffDelay=()=>u;else this.computeNextBackoffDelay=u}async refreshRetryTokenForRetry(_,u){let E=await super.refreshRetryTokenForRetry(_,u);return E.getRetryDelay=()=>this.computeNextBackoffDelay(E.getRetryCount()),E}}var v_=(_,u)=>{let E=_,O=g,T=r,b=__,L=_,N=(I)=>I.name==="TimeoutError"?b:T,j=(I)=>N(I)<=L;return Object.freeze({hasRetryTokens:j,retrieveRetryTokens:(I)=>{if(!j(I))throw Error("No retry token available");let R=N(I);return L-=R,R},releaseRetryTokens:(I)=>{L+=I??O,L=Math.min(L,E)}})},L_=(_,u)=>Math.floor(Math.min(Q,Math.random()*2**u*_)),N_=(_)=>{if(!_)return!1;return A(_)||p(_)||J(_)||X(_)};class n{maxAttemptsProvider;retryDecider;delayDecider;retryQuota;mode=k_.RETRY_MODES.STANDARD;constructor(_,u){this.maxAttemptsProvider=_,this.retryDecider=u?.retryDecider??N_,this.delayDecider=u?.delayDecider??L_,this.retryQuota=u?.retryQuota??v_(Z)}shouldRetry(_,u,E){return u<E&&this.retryDecider(_)&&this.retryQuota.hasRetryTokens(_)}async getMaxAttempts(){let _;try{_=await this.maxAttemptsProvider()}catch(u){_=$}return _}async retry(_,u,E){let O,T=0,b=0,L=await this.getMaxAttempts(),{request:N}=u;if(K.HttpRequest.isInstance(N))N.headers[c]=q.v4();while(!0)try{if(K.HttpRequest.isInstance(N))N.headers[w]=`attempt=${T+1}; max=${L}`;if(E?.beforeRequest)await E.beforeRequest();let{response:j,output:Y}=await _(u);if(E?.afterRequest)E.afterRequest(j);return this.retryQuota.releaseRetryTokens(O),Y.$metadata.attempts=T+1,Y.$metadata.totalRetryDelay=b,{response:j,output:Y}}catch(j){let Y=E_(j);if(T++,this.shouldRetry(Y,T,L)){O=this.retryQuota.retrieveRetryTokens(Y);let F=this.delayDecider(J(Y)?t:e,T),I=h_(Y.$response),R=Math.max(I||0,F);b+=R,await new Promise((V)=>setTimeout(V,R));continue}if(!Y.$metadata)Y.$metadata={};throw Y.$metadata.attempts=T,Y.$metadata.totalRetryDelay=b,Y}}}var h_=(_)=>{if(!K.HttpResponse.isInstance(_))return;let u=Object.keys(_.headers).find((b)=>b.toLowerCase()==="retry-after");if(!u)return;let E=_.headers[u],O=Number(E);if(!Number.isNaN(O))return O*1000;return new Date(E).getTime()-Date.now()};class M_ extends n{rateLimiter;constructor(_,u){let{rateLimiter:E,...O}=u??{};super(_,O);this.rateLimiter=E??new C,this.mode=k_.RETRY_MODES.ADAPTIVE}async retry(_,u){return super.retry(_,u,{beforeRequest:async()=>{return this.rateLimiter.getSendToken()},afterRequest:(E)=>{this.rateLimiter.updateClientSendingRate(E)}})}}var S="AWS_MAX_ATTEMPTS",i="max_attempts",S_={environmentVariableSelector:(_)=>{let u=_[S];if(!u)return;let E=parseInt(u);if(Number.isNaN(E))throw Error(`Environment variable ${S} mast be a number, got "${u}"`);return E},configFileSelector:(_)=>{let u=_[i];if(!u)return;let E=parseInt(u);if(Number.isNaN(E))throw Error(`Shared config file entry ${i} mast be a number, got "${u}"`);return E},default:$},i_=(_)=>{let{retryStrategy:u,retryMode:E}=_,O=v.normalizeProvider(_.maxAttempts??$),T=u?Promise.resolve(u):void 0,b=async()=>await v.normalizeProvider(E)()===k_.RETRY_MODES.ADAPTIVE?new j_(O):new G(O);return Object.assign(_,{maxAttempts:O,retryStrategy:()=>T??=b()})},U_="AWS_RETRY_MODE",I_="retry_mode",q_={environmentVariableSelector:(_)=>_[U_],configFileSelector:(_)=>_[I_],default:Y_},F_=()=>(_)=>async(u)=>{let{request:E}=u;if(K.HttpRequest.isInstance(E))delete E.headers[c],delete E.headers[w];return _(u)},R_={name:"omitRetryHeadersMiddleware",tags:["RETRY","HEADERS","OMIT_RETRY_HEADERS"],relation:"before",toMiddleware:"awsAuthMiddleware",override:!0},A_=(_)=>({applyToStack:(u)=>{u.addRelativeTo(F_(),R_)}}),g_=O_(m),n_=B_(m);k_.AdaptiveRetryStrategy=j_;k_.CONFIG_MAX_ATTEMPTS=i;k_.CONFIG_RETRY_MODE=I_;k_.ConfiguredRetryStrategy=P_;k_.DEFAULT_MAX_ATTEMPTS=$;k_.DEFAULT_RETRY_DELAY_BASE=e;k_.DEFAULT_RETRY_MODE=Y_;k_.DefaultRateLimiter=C;k_.DeprecatedAdaptiveRetryStrategy=M_;k_.DeprecatedStandardRetryStrategy=n;k_.ENV_MAX_ATTEMPTS=S;k_.ENV_RETRY_MODE=U_;k_.INITIAL_RETRY_TOKENS=Z;k_.INVOCATION_ID_HEADER=c;k_.MAXIMUM_RETRY_DELAY=Q;k_.NODE_MAX_ATTEMPT_CONFIG_OPTIONS=S_;k_.NODE_RETRY_MODE_CONFIG_OPTIONS=q_;k_.NO_RETRY_INCREMENT=g;k_.REQUEST_HEADER=w;k_.RETRY_COST=r;k_.Retry=M;k_.StandardRetryStrategy=G;k_.THROTTLING_RETRY_DELAY_BASE=t;k_.TIMEOUT_RETRY_COST=__;k_.defaultDelayDecider=L_;k_.defaultRetryDecider=N_;k_.getOmitRetryHeadersPlugin=A_;k_.getRetryAfterHint=H_;k_.getRetryPlugin=n_;k_.isBrowserNetworkError=s;k_.isClockSkewCorrectedError=y;k_.isClockSkewError=p;k_.isNodeJsHttp2TransientError=o;k_.isRetryableByTrait=A;k_.isServerError=a;k_.isThrottlingError=J;k_.isTransientError=X;k_.omitRetryHeadersMiddleware=F_;k_.omitRetryHeadersMiddlewareOptions=R_;k_.resolveRetryConfig=i_;k_.retryMiddleware=g_;k_.retryMiddlewareOptions=b_});var D_=H((P)=>{Object.defineProperty(P,"__esModule",{value:!0});P.TIMEOUT_RETRY_COST=P.THROTTLING_RETRY_DELAY_BASE=P.Retry=P.RETRY_MODES=P.RETRY_COST=P.NO_RETRY_INCREMENT=P.REQUEST_HEADER=P.MAXIMUM_RETRY_DELAY=P.INVOCATION_ID_HEADER=P.INITIAL_RETRY_TOKENS=P.DEFAULT_RETRY_MODE=P.DEFAULT_RETRY_DELAY_BASE=P.DEFAULT_MAX_ATTEMPTS=P.StandardRetryStrategy=P.DefaultRateLimiter=P.ConfiguredRetryStrategy=P.AdaptiveRetryStrategy=void 0;var U=W_();Object.defineProperty(P,"AdaptiveRetryStrategy",{enumerable:!0,get:function(){return U.AdaptiveRetryStrategy}});Object.defineProperty(P,"ConfiguredRetryStrategy",{enumerable:!0,get:function(){return U.ConfiguredRetryStrategy}});Object.defineProperty(P,"DefaultRateLimiter",{enumerable:!0,get:function(){return U.DefaultRateLimiter}});Object.defineProperty(P,"StandardRetryStrategy",{enumerable:!0,get:function(){return U.StandardRetryStrategy}});Object.defineProperty(P,"DEFAULT_MAX_ATTEMPTS",{enumerable:!0,get:function(){return U.DEFAULT_MAX_ATTEMPTS}});Object.defineProperty(P,"DEFAULT_RETRY_DELAY_BASE",{enumerable:!0,get:function(){return U.DEFAULT_RETRY_DELAY_BASE}});Object.defineProperty(P,"DEFAULT_RETRY_MODE",{enumerable:!0,get:function(){return U.DEFAULT_RETRY_MODE}});Object.defineProperty(P,"INITIAL_RETRY_TOKENS",{enumerable:!0,get:function(){return U.INITIAL_RETRY_TOKENS}});Object.defineProperty(P,"INVOCATION_ID_HEADER",{enumerable:!0,get:function(){return U.INVOCATION_ID_HEADER}});Object.defineProperty(P,"MAXIMUM_RETRY_DELAY",{enumerable:!0,get:function(){return U.MAXIMUM_RETRY_DELAY}});Object.defineProperty(P,"REQUEST_HEADER",{enumerable:!0,get:function(){return U.REQUEST_HEADER}});Object.defineProperty(P,"NO_RETRY_INCREMENT",{enumerable:!0,get:function(){return U.NO_RETRY_INCREMENT}});Object.defineProperty(P,"RETRY_COST",{enumerable:!0,get:function(){return U.RETRY_COST}});Object.defineProperty(P,"RETRY_MODES",{enumerable:!0,get:function(){return U.RETRY_MODES}});Object.defineProperty(P,"Retry",{enumerable:!0,get:function(){return U.Retry}});Object.defineProperty(P,"THROTTLING_RETRY_DELAY_BASE",{enumerable:!0,get:function(){return U.THROTTLING_RETRY_DELAY_BASE}});Object.defineProperty(P,"TIMEOUT_RETRY_COST",{enumerable:!0,get:function(){return U.TIMEOUT_RETRY_COST}})});var yu=H((gu)=>{var wu=D_(),B={warningEmitted:!1},Bu=(_)=>{if(_&&!B.warningEmitted){if(process.env.AWS_SDK_JS_NODE_VERSION_SUPPORT_WARNING_DISABLED==="true"){B.warningEmitted=!0;return}let u=parseInt(_.substring(1,_.indexOf("."))),E=22;if(u<E)B.warningEmitted=!0,process.emitWarning(`NodeVersionSupportWarning: The AWS SDK for JavaScript (v3)
|
|
2
|
+
versions published after the first week of January 2027
|
|
3
|
+
will require node >=${E}. You are running node ${_}.
|
|
4
|
+
|
|
5
|
+
To continue receiving updates to AWS services, bug fixes,
|
|
6
|
+
and security updates please upgrade to node >=${E}.
|
|
7
|
+
|
|
8
|
+
More information can be found at: https://a.co/c895JFp`)}},vu=()=>(_,u)=>async(E)=>{return u.__retryLongPoll=!0,_(E)},hu={name:"longPollMiddleware",tags:["RETRY"],step:"initialize",override:!0},Su=(_)=>({applyToStack:(u)=>{u.add(vu(),hu)}});function iu(_,u,E){if(!_.$source)_.$source={};return _.$source[u]=E,_}wu.Retry.v2026||=typeof process==="object"&&process.env?.AWS_NEW_RETRIES_2026==="true";function qu(_,u,E){if(!_.__aws_sdk_context)_.__aws_sdk_context={features:{}};else if(!_.__aws_sdk_context.features)_.__aws_sdk_context.features={};_.__aws_sdk_context.features[u]=E}function Au(_,u,E){if(!_.$source)_.$source={};return _.$source[u]=E,_}gu.emitWarningIfUnsupportedVersion=Bu;gu.getLongPollPlugin=Su;gu.setCredentialFeature=iu;gu.setFeature=qu;gu.setTokenFeature=Au;gu.state=B});var ou=H((D)=>{Object.defineProperty(D,"__esModule",{value:!0});D.memoize=D.fromStatic=D.chain=D.TokenProviderError=D.CredentialsProviderError=D.ProviderError=void 0;var f=su();Object.defineProperty(D,"ProviderError",{enumerable:!0,get:function(){return f.ProviderError}});Object.defineProperty(D,"CredentialsProviderError",{enumerable:!0,get:function(){return f.CredentialsProviderError}});Object.defineProperty(D,"TokenProviderError",{enumerable:!0,get:function(){return f.TokenProviderError}});Object.defineProperty(D,"chain",{enumerable:!0,get:function(){return f.chain}});Object.defineProperty(D,"fromStatic",{enumerable:!0,get:function(){return f.fromValue}});Object.defineProperty(D,"memoize",{enumerable:!0,get:function(){return f.memoize}})});
|
|
9
|
+
export{W_ as U9,D_ as V9,yu as W9,ou as X9};
|