@claudiolabs/claudin 1.1.8 → 1.1.10
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.10-gj63wvsc.mjs +1 -0
- package/dist/chunks/App-1.1.10-sk0bjxfk.mjs +1 -0
- package/dist/chunks/ApproveApiKey-1.1.10-7yenejkw.mjs +1 -0
- package/dist/chunks/AssistantSessionChooser-1.1.10-0aa0zy1a.mjs +1 -0
- package/dist/chunks/AutoModeOptInDialog-1.1.10-vyft90yk.mjs +1 -0
- package/dist/chunks/BypassPermissionsModeDialog-1.1.10-657b3x88.mjs +1 -0
- package/dist/chunks/ClaudeMdExternalIncludesDialog-1.1.10-2vb72aje.mjs +1 -0
- package/dist/chunks/ConsoleOAuthFlow-1.1.10-dcrmyx9b.mjs +1 -0
- package/dist/chunks/DiffDialog-1.1.10-3k4xatjv.mjs +7 -0
- package/dist/chunks/Doctor-1.1.10-rgy7nenk.mjs +1 -0
- package/dist/chunks/ExplorerDialog-1.1.10-7tka6rrk.mjs +6 -0
- package/dist/chunks/Grove-1.1.10-mzvca2vd.mjs +1 -0
- package/dist/chunks/ITermBackend-1.1.10-zf1cxr4h.mjs +1 -0
- package/dist/chunks/InvalidConfigDialog-1.1.10-xbvct858.mjs +1 -0
- package/dist/chunks/InvalidSettingsDialog-1.1.10-29tqjn4y.mjs +1 -0
- package/dist/chunks/MigrationDialog-1.1.10-0fdsdbna.mjs +1 -0
- package/dist/chunks/Onboarding-1.1.10-pwtdmht6.mjs +1 -0
- package/dist/chunks/ProviderManager-1.1.10-qdhkgymy.mjs +1 -0
- package/dist/chunks/REPL-1.1.10-d1wzzd1a.mjs +1 -0
- package/dist/chunks/ResumeConversation-1.1.10-qxv36tqp.mjs +1 -0
- package/dist/chunks/SnapshotUpdateDialog-1.1.10-1w85m05k.mjs +1 -0
- package/dist/chunks/TeleportProgress-1.1.10-qsf4xmkj.mjs +1 -0
- package/dist/chunks/TeleportRepoMismatchDialog-1.1.10-b0js9xk0.mjs +1 -0
- package/dist/chunks/TeleportResumeWrapper-1.1.10-v8g7z6vy.mjs +1 -0
- package/dist/chunks/TmuxBackend-1.1.10-mh9af70m.mjs +9 -0
- package/dist/chunks/ToolSearchTool-1.1.10-23pzjxjm.mjs +1 -0
- package/dist/chunks/TrustDialog-1.1.10-561ps5mb.mjs +1 -0
- package/dist/chunks/activeProvider-1.1.10-1spf7213.mjs +1 -0
- package/dist/chunks/add-dir-1.1.10-pvac31nq.mjs +1 -0
- package/dist/chunks/agentTypes-1.1.10-1g7w3dx1.mjs +1 -0
- package/dist/chunks/agents-1.1.10-8m9yb7xs.mjs +110 -0
- package/dist/chunks/agents-1.1.10-spgs7zfh.mjs +3 -0
- package/dist/chunks/api-1.1.10-6md4ym02.mjs +1 -0
- package/dist/chunks/asciicast-1.1.10-r808f4jx.mjs +1 -0
- package/dist/chunks/assistant-1.1.10-2jgdpy2m.mjs +1 -0
- package/dist/chunks/auth-1.1.10-c58sakkr.mjs +1 -0
- package/dist/chunks/auth-1.1.10-sfzbw010.mjs +1 -0
- package/dist/chunks/autoMode-1.1.10-c8tm40pq.mjs +48 -0
- package/dist/chunks/autoUpdater-1.1.10-avtbnsyp.mjs +1 -0
- package/dist/chunks/backgroundHousekeeping-1.1.10-n208vt88.mjs +1 -0
- package/dist/chunks/branch-1.1.10-qtvf52jq.mjs +4 -0
- package/dist/chunks/bridge-1.1.10-ryc7krfd.mjs +2 -0
- package/dist/chunks/bridgeConfig-1.1.10-3j77pwcn.mjs +1 -0
- package/dist/chunks/bridgeEnabled-1.1.10-mdqzrmk6.mjs +1 -0
- package/dist/chunks/bridgeMain-1.1.10-0da3j9a0.mjs +88 -0
- package/dist/chunks/bridgePointer-1.1.10-hjbfhk32.mjs +1 -0
- package/dist/chunks/btw-1.1.10-k6ndf81e.mjs +1 -0
- package/dist/chunks/buddy-1.1.10-t5yrtkdq.mjs +3 -0
- package/dist/chunks/cache-probe-1.1.10-tkh4t0g0.mjs +21 -0
- package/dist/chunks/cacheStats-1.1.10-q4zvr7r5.mjs +4 -0
- package/dist/chunks/caches-1.1.10-107p4aea.mjs +1 -0
- package/dist/chunks/claudeDesktop-1.1.10-fkx2a88x.mjs +1 -0
- package/dist/chunks/claudemd-1.1.10-n325a040.mjs +1 -0
- package/dist/chunks/clear-1.1.10-evfcfpzq.mjs +1 -0
- package/dist/chunks/clearTerminal-1.1.10-9c6e5w18.mjs +1 -0
- package/dist/chunks/cli-1.1.10-051sym72.mjs +2 -0
- package/dist/chunks/cli-1.1.10-05ry3ydz.mjs +2 -0
- package/dist/chunks/cli-1.1.10-0hqk157z.mjs +2 -0
- package/dist/chunks/cli-1.1.10-0j2bz40j.mjs +2 -0
- package/dist/chunks/cli-1.1.10-0ss6k2ta.mjs +133 -0
- package/dist/chunks/cli-1.1.10-0sxx8rkz.mjs +21 -0
- package/dist/chunks/cli-1.1.10-0t3bda7e.mjs +45 -0
- package/dist/chunks/cli-1.1.10-0v84m667.mjs +2 -0
- package/dist/chunks/cli-1.1.10-0v8v9gwe.mjs +17 -0
- package/dist/chunks/cli-1.1.10-0vae4j38.mjs +2 -0
- package/dist/chunks/cli-1.1.10-0vm5evaf.mjs +2 -0
- package/dist/chunks/cli-1.1.10-0yx9c9s1.mjs +2 -0
- package/dist/chunks/cli-1.1.10-12dzgaq4.mjs +2 -0
- package/dist/chunks/cli-1.1.10-15m7f0r3.mjs +50 -0
- package/dist/chunks/cli-1.1.10-1jkxjyqd.mjs +2 -0
- package/dist/chunks/cli-1.1.10-1mh77njj.mjs +2 -0
- package/dist/chunks/cli-1.1.10-1qxr18wg.mjs +2 -0
- package/dist/chunks/cli-1.1.10-220cer0v.mjs +9 -0
- package/dist/chunks/cli-1.1.10-250q8bef.mjs +2 -0
- package/dist/chunks/cli-1.1.10-2rygdbq2.mjs +2 -0
- package/dist/chunks/cli-1.1.10-2scx8n6c.mjs +2 -0
- package/dist/chunks/cli-1.1.10-2thwcpkf.mjs +18 -0
- package/dist/chunks/cli-1.1.10-2w383pwf.mjs +2 -0
- package/dist/chunks/cli-1.1.10-2w4c9red.mjs +3 -0
- package/dist/chunks/cli-1.1.10-2wkvf65f.mjs +2 -0
- package/dist/chunks/cli-1.1.10-2x1a8qcr.mjs +2 -0
- package/dist/chunks/cli-1.1.10-374zmax8.mjs +2 -0
- package/dist/chunks/cli-1.1.10-39crhqg8.mjs +2 -0
- package/dist/chunks/cli-1.1.10-3a3dw1b0.mjs +6 -0
- package/dist/chunks/cli-1.1.10-3pch2a3h.mjs +2 -0
- package/dist/chunks/cli-1.1.10-3vfwktcp.mjs +2 -0
- package/dist/chunks/cli-1.1.10-436vz31m.mjs +2 -0
- package/dist/chunks/cli-1.1.10-453rs0bh.mjs +3 -0
- package/dist/chunks/cli-1.1.10-49bvng33.mjs +2 -0
- package/dist/chunks/cli-1.1.10-4fjjvbb7.mjs +2 -0
- package/dist/chunks/cli-1.1.10-4h8gax7r.mjs +2 -0
- package/dist/chunks/cli-1.1.10-4xztz3b9.mjs +24 -0
- package/dist/chunks/cli-1.1.10-51vyhqae.mjs +2 -0
- package/dist/chunks/cli-1.1.10-5828mt9m.mjs +2 -0
- package/dist/chunks/cli-1.1.10-58e888gh.mjs +2 -0
- package/dist/chunks/cli-1.1.10-58vqqfgj.mjs +2 -0
- package/dist/chunks/cli-1.1.10-5hrs5rqr.mjs +2 -0
- package/dist/chunks/cli-1.1.10-5t6aryqe.mjs +2 -0
- package/dist/chunks/cli-1.1.10-5t95b8cn.mjs +2 -0
- package/dist/chunks/cli-1.1.10-5y236qn7.mjs +2 -0
- package/dist/chunks/cli-1.1.10-6g4fntdc.mjs +3 -0
- package/dist/chunks/cli-1.1.10-6km1ymnm.mjs +2 -0
- package/dist/chunks/cli-1.1.10-6m1jpn0s.mjs +24 -0
- package/dist/chunks/cli-1.1.10-6q7mx8f2.mjs +2 -0
- package/dist/chunks/cli-1.1.10-6smvkrsd.mjs +2 -0
- package/dist/chunks/cli-1.1.10-6vxxztf9.mjs +2 -0
- package/dist/chunks/cli-1.1.10-6ya9ptdc.mjs +2 -0
- package/dist/chunks/cli-1.1.10-795jmkhb.mjs +2 -0
- package/dist/chunks/cli-1.1.10-84ev8nya.mjs +2 -0
- package/dist/chunks/cli-1.1.10-85j5ems7.mjs +2 -0
- package/dist/chunks/cli-1.1.10-8fgppw70.mjs +2 -0
- package/dist/chunks/cli-1.1.10-8vmgbrks.mjs +2 -0
- package/dist/chunks/cli-1.1.10-8xx1v7p2.mjs +2 -0
- package/dist/chunks/cli-1.1.10-910qbqn7.mjs +133 -0
- package/dist/chunks/cli-1.1.10-99ep1sr9.mjs +2 -0
- package/dist/chunks/cli-1.1.10-9jy4caft.mjs +2 -0
- package/dist/chunks/cli-1.1.10-9pxnk8yg.mjs +6 -0
- package/dist/chunks/cli-1.1.10-9q1p3zj2.mjs +2 -0
- package/dist/chunks/cli-1.1.10-9r8td4sp.mjs +2 -0
- package/dist/chunks/cli-1.1.10-a0ypafa6.mjs +2 -0
- package/dist/chunks/cli-1.1.10-a565mgy8.mjs +2 -0
- package/dist/chunks/cli-1.1.10-a7j4a04g.mjs +2 -0
- package/dist/chunks/cli-1.1.10-a8e8n1bk.mjs +2 -0
- package/dist/chunks/cli-1.1.10-aq5a8xs2.mjs +2 -0
- package/dist/chunks/cli-1.1.10-azskxdmb.mjs +2 -0
- package/dist/chunks/cli-1.1.10-b0b04nbj.mjs +2 -0
- package/dist/chunks/cli-1.1.10-b1hac494.mjs +2 -0
- package/dist/chunks/cli-1.1.10-b41dat7h.mjs +2 -0
- package/dist/chunks/cli-1.1.10-b6my5t3h.mjs +2 -0
- package/dist/chunks/cli-1.1.10-ba3fhh55.mjs +2 -0
- package/dist/chunks/cli-1.1.10-bpcmdnpg.mjs +2 -0
- package/dist/chunks/cli-1.1.10-bs5xjsav.mjs +39 -0
- package/dist/chunks/cli-1.1.10-c2wdnady.mjs +3 -0
- package/dist/chunks/cli-1.1.10-c3g5ab8n.mjs +2 -0
- package/dist/chunks/cli-1.1.10-c67v6p50.mjs +2 -0
- package/dist/chunks/cli-1.1.10-c77kxdjj.mjs +2 -0
- package/dist/chunks/cli-1.1.10-cbgx6hw2.mjs +9 -0
- package/dist/chunks/cli-1.1.10-cgan8hpz.mjs +2 -0
- package/dist/chunks/cli-1.1.10-cn0a8vwn.mjs +2 -0
- package/dist/chunks/cli-1.1.10-ct81y4qh.mjs +4 -0
- package/dist/chunks/cli-1.1.10-cvxq4g91.mjs +2 -0
- package/dist/chunks/cli-1.1.10-cyv1wwen.mjs +3 -0
- package/dist/chunks/cli-1.1.10-d15qrtw2.mjs +2 -0
- package/dist/chunks/cli-1.1.10-d4ncq82f.mjs +8 -0
- package/dist/chunks/cli-1.1.10-dppcc1yx.mjs +6 -0
- package/dist/chunks/cli-1.1.10-dvxkr02c.mjs +2 -0
- package/dist/chunks/cli-1.1.10-e7wxspgz.mjs +4 -0
- package/dist/chunks/cli-1.1.10-e8zhf6q8.mjs +2 -0
- package/dist/chunks/cli-1.1.10-ecahzspx.mjs +2 -0
- package/dist/chunks/cli-1.1.10-effpqe7k.mjs +2 -0
- package/dist/chunks/cli-1.1.10-ejwjw031.mjs +6 -0
- package/dist/chunks/cli-1.1.10-eqscqpev.mjs +3 -0
- package/dist/chunks/cli-1.1.10-erh9bkn9.mjs +24 -0
- package/dist/chunks/cli-1.1.10-ex9enqps.mjs +2 -0
- package/dist/chunks/cli-1.1.10-f00rps59.mjs +2 -0
- package/dist/chunks/cli-1.1.10-f2zv6ggd.mjs +2 -0
- package/dist/chunks/cli-1.1.10-f7dqg4nd.mjs +2 -0
- package/dist/chunks/cli-1.1.10-f8q95jfw.mjs +2 -0
- package/dist/chunks/cli-1.1.10-f8znbdgf.mjs +4 -0
- package/dist/chunks/cli-1.1.10-fdxccf2v.mjs +3 -0
- package/dist/chunks/cli-1.1.10-fkqba8ty.mjs +58 -0
- package/dist/chunks/cli-1.1.10-fnvz77rd.mjs +2 -0
- package/dist/chunks/cli-1.1.10-fsq46r6j.mjs +2 -0
- package/dist/chunks/cli-1.1.10-fz99ag3y.mjs +2 -0
- package/dist/chunks/cli-1.1.10-gafedg04.mjs +2 -0
- package/dist/chunks/cli-1.1.10-gjdh1yvr.mjs +2 -0
- package/dist/chunks/cli-1.1.10-gmf5w0a4.mjs +2 -0
- package/dist/chunks/cli-1.1.10-gnmyahda.mjs +7 -0
- package/dist/chunks/cli-1.1.10-gr69gke8.mjs +15 -0
- package/dist/chunks/cli-1.1.10-gydf5ktx.mjs +2 -0
- package/dist/chunks/cli-1.1.10-h0b2x5t4.mjs +2 -0
- package/dist/chunks/cli-1.1.10-h49727f7.mjs +3 -0
- package/dist/chunks/cli-1.1.10-h4m6563f.mjs +4 -0
- package/dist/chunks/cli-1.1.10-hdz1r66z.mjs +2 -0
- package/dist/chunks/cli-1.1.10-hg2m67ya.mjs +15 -0
- package/dist/chunks/cli-1.1.10-hhkgpzgz.mjs +2 -0
- package/dist/chunks/cli-1.1.10-hk2c91wp.mjs +5379 -0
- package/dist/chunks/cli-1.1.10-hr4ety9s.mjs +2 -0
- package/dist/chunks/cli-1.1.10-hs44pkht.mjs +2 -0
- package/dist/chunks/cli-1.1.10-hx9513je.mjs +2 -0
- package/dist/chunks/cli-1.1.10-j20txpzn.mjs +2 -0
- package/dist/chunks/cli-1.1.10-j4vg803f.mjs +25 -0
- package/dist/chunks/cli-1.1.10-jd00fn0g.mjs +34 -0
- package/dist/chunks/cli-1.1.10-jeaf93w2.mjs +2 -0
- package/dist/chunks/cli-1.1.10-jfmgqmt5.mjs +17 -0
- package/dist/chunks/cli-1.1.10-jfwqa1gq.mjs +3 -0
- package/dist/chunks/cli-1.1.10-jn6w68wj.mjs +6 -0
- package/dist/chunks/cli-1.1.10-jp5ga1mx.mjs +2 -0
- package/dist/chunks/cli-1.1.10-jrpxc13y.mjs +2 -0
- package/dist/chunks/cli-1.1.10-jyk734bb.mjs +2 -0
- package/dist/chunks/cli-1.1.10-k9q658g7.mjs +2 -0
- package/dist/chunks/cli-1.1.10-kdvf271d.mjs +4 -0
- package/dist/chunks/cli-1.1.10-kdxm85xx.mjs +20 -0
- package/dist/chunks/cli-1.1.10-kw60xwcx.mjs +3 -0
- package/dist/chunks/cli-1.1.10-kxqtg1q9.mjs +2 -0
- package/dist/chunks/cli-1.1.10-kzbg67rw.mjs +5 -0
- package/dist/chunks/cli-1.1.10-m0pdck7q.mjs +202 -0
- package/dist/chunks/cli-1.1.10-m0xgys17.mjs +2 -0
- package/dist/chunks/cli-1.1.10-m10z6jbs.mjs +4 -0
- package/dist/chunks/cli-1.1.10-m86zy5vy.mjs +2 -0
- package/dist/chunks/cli-1.1.10-mawng745.mjs +12 -0
- package/dist/chunks/cli-1.1.10-mdkc2azc.mjs +2 -0
- package/dist/chunks/cli-1.1.10-mnbek10k.mjs +2 -0
- package/dist/chunks/cli-1.1.10-msg7sda2.mjs +59 -0
- package/dist/chunks/cli-1.1.10-mx6xpamf.mjs +2 -0
- package/dist/chunks/cli-1.1.10-n8ed7a8a.mjs +4 -0
- package/dist/chunks/cli-1.1.10-nfpy32s8.mjs +66 -0
- package/dist/chunks/cli-1.1.10-njf3620e.mjs +2 -0
- package/dist/chunks/cli-1.1.10-np84s5kd.mjs +2 -0
- package/dist/chunks/cli-1.1.10-ntrb7636.mjs +3 -0
- package/dist/chunks/cli-1.1.10-p28vy0yz.mjs +2 -0
- package/dist/chunks/cli-1.1.10-pkyv2v8k.mjs +2 -0
- package/dist/chunks/cli-1.1.10-ppft1w3p.mjs +2 -0
- package/dist/chunks/cli-1.1.10-psqaker4.mjs +2 -0
- package/dist/chunks/cli-1.1.10-pxdj0vvb.mjs +3 -0
- package/dist/chunks/cli-1.1.10-q2nbtgde.mjs +15 -0
- package/dist/chunks/cli-1.1.10-qh2qrbg9.mjs +2 -0
- package/dist/chunks/cli-1.1.10-qk19t6fd.mjs +2 -0
- package/dist/chunks/cli-1.1.10-qnswwjvv.mjs +4 -0
- package/dist/chunks/cli-1.1.10-qny1442k.mjs +2 -0
- package/dist/chunks/cli-1.1.10-qtkktme0.mjs +2 -0
- package/dist/chunks/cli-1.1.10-rgpghq5k.mjs +6 -0
- package/dist/chunks/cli-1.1.10-ryjne6pb.mjs +2 -0
- package/dist/chunks/cli-1.1.10-saacbyca.mjs +2 -0
- package/dist/chunks/cli-1.1.10-sbfv4gg3.mjs +2 -0
- package/dist/chunks/cli-1.1.10-sc2myky4.mjs +25 -0
- package/dist/chunks/cli-1.1.10-sdgrrb7v.mjs +2 -0
- package/dist/chunks/cli-1.1.10-sgrbnxr1.mjs +2 -0
- package/dist/chunks/cli-1.1.10-sv5wy20e.mjs +2 -0
- package/dist/chunks/cli-1.1.10-syrhp8d1.mjs +12 -0
- package/dist/chunks/cli-1.1.10-sz5x71xt.mjs +42 -0
- package/dist/chunks/cli-1.1.10-szjm5cs0.mjs +2 -0
- package/dist/chunks/cli-1.1.10-t0ypk4ke.mjs +2 -0
- package/dist/chunks/cli-1.1.10-t1vfqzsp.mjs +4 -0
- package/dist/chunks/cli-1.1.10-t3pn4ww9.mjs +2 -0
- package/dist/chunks/cli-1.1.10-t8n5jx0z.mjs +2 -0
- package/dist/chunks/cli-1.1.10-tntdtvhr.mjs +2 -0
- package/dist/chunks/cli-1.1.10-tnymg33g.mjs +2 -0
- package/dist/chunks/cli-1.1.10-tqfkjw71.mjs +2 -0
- package/dist/chunks/cli-1.1.10-trsts9v3.mjs +2 -0
- package/dist/chunks/cli-1.1.10-tv3hs8t2.mjs +2 -0
- package/dist/chunks/cli-1.1.10-ty52w0t8.mjs +2 -0
- package/dist/chunks/cli-1.1.10-v4mtt7fd.mjs +2 -0
- package/dist/chunks/cli-1.1.10-v9q9ddhz.mjs +2 -0
- package/dist/chunks/cli-1.1.10-vr1kd1f6.mjs +1 -0
- package/dist/chunks/cli-1.1.10-w6tkqgvq.mjs +2 -0
- package/dist/chunks/cli-1.1.10-w7zqsk0a.mjs +2 -0
- package/dist/chunks/cli-1.1.10-wb8bcef1.mjs +2 -0
- package/dist/chunks/cli-1.1.10-wjc9jsjt.mjs +2 -0
- package/dist/chunks/cli-1.1.10-wjcgsn42.mjs +24 -0
- package/dist/chunks/cli-1.1.10-wkzbqdmr.mjs +2 -0
- package/dist/chunks/cli-1.1.10-wm2kd8d3.mjs +5 -0
- package/dist/chunks/cli-1.1.10-wqc9fp4g.mjs +18 -0
- package/dist/chunks/cli-1.1.10-wvw85hk5.mjs +26 -0
- package/dist/chunks/cli-1.1.10-x7s7dnjf.mjs +2 -0
- package/dist/chunks/cli-1.1.10-x83wfqf9.mjs +4 -0
- package/dist/chunks/cli-1.1.10-x8dpgrgj.mjs +2 -0
- package/dist/chunks/cli-1.1.10-y4afn758.mjs +2 -0
- package/dist/chunks/cli-1.1.10-y8334h0w.mjs +3 -0
- package/dist/chunks/cli-1.1.10-y95f28g5.mjs +2 -0
- package/dist/chunks/cli-1.1.10-yzpymdrc.mjs +16 -0
- package/dist/chunks/cli-1.1.10-z0ddrtr1.mjs +2 -0
- package/dist/chunks/cli-1.1.10-z0zzjeej.mjs +4 -0
- package/dist/chunks/cli-1.1.10-z1mewb4a.mjs +3 -0
- package/dist/chunks/cli-1.1.10-zaq3qp5f.mjs +12 -0
- package/dist/chunks/client-1.1.10-n6skmcnp.mjs +1 -0
- package/dist/chunks/color-1.1.10-xgpy38nc.mjs +1 -0
- package/dist/chunks/compact-1.1.10-ywm45c47.mjs +3 -0
- package/dist/chunks/config-1.1.10-070kwjeg.mjs +1 -0
- package/dist/chunks/config-1.1.10-bvmgcws9.mjs +1 -0
- package/dist/chunks/constants-1.1.10-bfbmy8wz.mjs +1 -0
- package/dist/chunks/context-1.1.10-hfeqyewx.mjs +1 -0
- package/dist/chunks/context-noninteractive-1.1.10-ayept5ex.mjs +1 -0
- package/dist/chunks/conversation-1.1.10-eqnmzmgt.mjs +1 -0
- package/dist/chunks/copilotHeaders-1.1.10-rjwess9f.mjs +1 -0
- package/dist/chunks/copy-1.1.10-dvs7kz34.mjs +9 -0
- package/dist/chunks/cost-1.1.10-dk74vep1.mjs +1 -0
- package/dist/chunks/createSSHSession-1.1.10-dx93q1fp.mjs +1 -0
- package/dist/chunks/createSession-1.1.10-m7x38yn5.mjs +1 -0
- package/dist/chunks/debug-1.1.10-14v3zx1d.mjs +1 -0
- package/dist/chunks/defaultActionDeps-1.1.10-qa7ksxxs.mjs +1526 -0
- package/dist/chunks/desktop-1.1.10-yexkfd86.mjs +1 -0
- package/dist/chunks/detectRepository-1.1.10-71gvqxzs.mjs +1 -0
- package/dist/chunks/detection-1.1.10-ccdhhprp.mjs +1 -0
- package/dist/chunks/diff-1.1.10-m3gq5b6x.mjs +1 -0
- package/dist/chunks/doctor-1.1.10-td2cwcvc.mjs +1 -0
- package/dist/chunks/doctorDiagnostic-1.1.10-9c7dzt7n.mjs +1 -0
- package/dist/chunks/earlyInput-1.1.10-hz3yh50c.mjs +1 -0
- package/dist/chunks/effort-1.1.10-19pz34nx.mjs +13 -0
- package/dist/chunks/engine-1.1.10-44xhf5x0.mjs +1 -0
- package/dist/chunks/envLessBridgeConfig-1.1.10-4xe76fe7.mjs +1 -0
- package/dist/chunks/envUtils-1.1.10-dg023dvr.mjs +1 -0
- package/dist/chunks/environmentSelection-1.1.10-wrrx6jm9.mjs +1 -0
- package/dist/chunks/environments-1.1.10-x9feeaeq.mjs +1 -0
- package/dist/chunks/errors-1.1.10-yhgdas17.mjs +1 -0
- package/dist/chunks/exampleCommands-1.1.10-t5sggm4m.mjs +1 -0
- package/dist/chunks/execFileNoThrow-1.1.10-rgt8yj28.mjs +1 -0
- package/dist/chunks/exit-1.1.10-f5jn3kgb.mjs +1 -0
- package/dist/chunks/explorer-1.1.10-hex7p7et.mjs +1 -0
- package/dist/chunks/export-1.1.10-tqf9qfs4.mjs +2 -0
- package/dist/chunks/extra-usage-1.1.10-2ess7s1c.mjs +1 -0
- package/dist/chunks/extra-usage-noninteractive-1.1.10-rjjrh2xh.mjs +1 -0
- package/dist/chunks/fast-1.1.10-j2pmqx3f.mjs +1 -0
- package/dist/chunks/feedback-1.1.10-ae5vhd02.mjs +14 -0
- package/dist/chunks/firstPartyEventLogger-1.1.10-909y3hrr.mjs +1 -0
- package/dist/chunks/git-1.1.10-0v4t8ap3.mjs +1 -0
- package/dist/chunks/githubModelsCredentials-1.1.10-zfjn71v3.mjs +1 -0
- package/dist/chunks/goal-1.1.10-c1ngzwh9.mjs +4 -0
- package/dist/chunks/grove-1.1.10-1btbm4ss.mjs +1 -0
- package/dist/chunks/growthbook-1.1.10-jb56c9h4.mjs +1 -0
- package/dist/chunks/headless-1.1.10-ef38srvy.mjs +2 -0
- package/dist/chunks/heapdump-1.1.10-tp8h06gk.mjs +6 -0
- package/dist/chunks/help-1.1.10-d0kff6qz.mjs +1 -0
- package/dist/chunks/hookChains-1.1.10-dey6b4ns.mjs +3 -0
- package/dist/chunks/hooks-1.1.10-76n26ek9.mjs +79 -0
- package/dist/chunks/hooks-1.1.10-ke0jh0zh.mjs +1 -0
- package/dist/chunks/ide-1.1.10-8dv11nsj.mjs +3 -0
- package/dist/chunks/image-processor-napi-1.1.10-pdf041f5.mjs +1 -0
- package/dist/chunks/inboundAttachments-1.1.10-qaypt5tq.mjs +1 -0
- package/dist/chunks/index-1.1.10-21s5496v.mjs +23 -0
- package/dist/chunks/index-1.1.10-2eg2nfya.mjs +5 -0
- package/dist/chunks/index-1.1.10-3cnyfq9h.mjs +2 -0
- package/dist/chunks/index-1.1.10-4t4pr0x3.mjs +1 -0
- package/dist/chunks/index-1.1.10-5ckjpq80.mjs +1 -0
- package/dist/chunks/index-1.1.10-5mechh5k.mjs +1 -0
- package/dist/chunks/index-1.1.10-7hmv8qcy.mjs +30 -0
- package/dist/chunks/index-1.1.10-9v096e06.mjs +1 -0
- package/dist/chunks/index-1.1.10-abgftsv6.mjs +1 -0
- package/dist/chunks/index-1.1.10-ckjn4w4s.mjs +1 -0
- package/dist/chunks/index-1.1.10-ctta1ge7.mjs +1 -0
- package/dist/chunks/index-1.1.10-d57z21y9.mjs +9 -0
- package/dist/chunks/index-1.1.10-fnhrat0c.mjs +1 -0
- package/dist/chunks/index-1.1.10-fw2aa53g.mjs +1 -0
- package/dist/chunks/index-1.1.10-p4xpsvnc.mjs +1 -0
- package/dist/chunks/index-1.1.10-qzkv1wgv.mjs +1 -0
- package/dist/chunks/index-1.1.10-vk9vb3b3.mjs +9 -0
- package/dist/chunks/index-1.1.10-vxy96cge.mjs +1 -0
- package/dist/chunks/index-1.1.10-wsc6cpqa.mjs +1 -0
- package/dist/chunks/index-1.1.10-yvr6d150.mjs +1 -0
- package/dist/chunks/index-1.1.10-ywef0hmk.mjs +1 -0
- package/dist/chunks/index-1.1.10-zj3yzybb.mjs +1 -0
- package/dist/chunks/index-1.1.10-znghd3d1.mjs +2 -0
- package/dist/chunks/init-1.1.10-vd74ec5b.mjs +1 -0
- package/dist/chunks/initReplBridge-1.1.10-sgkbmqqp.mjs +1 -0
- package/dist/chunks/ink-1.1.10-n9qcenb6.mjs +1 -0
- package/dist/chunks/insights-1.1.10-jfrnsmw1.mjs +870 -0
- package/dist/chunks/install-1.1.10-wxs00yc5.mjs +1 -0
- package/dist/chunks/install-github-app-1.1.10-zxbkcqd1.mjs +149 -0
- package/dist/chunks/install-slack-app-1.1.10-tv0p6dq9.mjs +1 -0
- package/dist/chunks/instrumentation-1.1.10-fxcjzzc0.mjs +1 -0
- package/dist/chunks/interactiveHelpers-1.1.10-f7cwwren.mjs +1 -0
- package/dist/chunks/keybindings-1.1.10-b8121c36.mjs +2 -0
- package/dist/chunks/knowledge-1.1.10-tmxkye8d.mjs +2 -0
- package/dist/chunks/latestVersionCache-1.1.10-dtghtfgq.mjs +1 -0
- package/dist/chunks/loadAgentsDir-1.1.10-hh30mnyw.mjs +1 -0
- package/dist/chunks/loadPluginHooks-1.1.10-32f6reyc.mjs +1 -0
- package/dist/chunks/log-1.1.10-kvrqr31p.mjs +1 -0
- package/dist/chunks/main-1.1.10-fpywq82b.mjs +1 -0
- package/dist/chunks/managedEnv-1.1.10-0x8ncmb7.mjs +1 -0
- package/dist/chunks/mcp-1.1.10-0trfp77x.mjs +17 -0
- package/dist/chunks/mcp-1.1.10-j59azp3f.mjs +4 -0
- package/dist/chunks/mcp-1.1.10-tz7gvpxy.mjs +1 -0
- package/dist/chunks/mcpb-1.1.10-2ypk133j.mjs +1 -0
- package/dist/chunks/memory-1.1.10-hgcgdw39.mjs +72 -0
- package/dist/chunks/model-1.1.10-27ysny3w.mjs +1 -0
- package/dist/chunks/model-1.1.10-m4n7t06v.mjs +2 -0
- package/dist/chunks/node-1.1.10-gtb48qhp.mjs +12 -0
- package/dist/chunks/oauth-1.1.10-d6p06vbt.mjs +1 -0
- package/dist/chunks/openaiShim-1.1.10-e130485k.mjs +14 -0
- package/dist/chunks/output-style-1.1.10-mb75wr50.mjs +1 -0
- package/dist/chunks/package-L37ZVTF4-1.1.10-9a2hkd1x.mjs +1 -0
- package/dist/chunks/parseConnectUrl-1.1.10-h0c8png1.mjs +1 -0
- package/dist/chunks/parser-1.1.10-mw2brrzk.mjs +1 -0
- package/dist/chunks/passes-1.1.10-d8xzm3jv.mjs +1 -0
- package/dist/chunks/permissions-1.1.10-01fgr8vp.mjs +3 -0
- package/dist/chunks/permissions-1.1.10-jxhg9dnn.mjs +1 -0
- package/dist/chunks/plan-1.1.10-cqaej565.mjs +1 -0
- package/dist/chunks/plist-1.1.10-cssvr9wq.mjs +1 -0
- package/dist/chunks/plugin-1.1.10-zh92hjbn.mjs +29 -0
- package/dist/chunks/pluginStartupCheck-1.1.10-dk9bb5aj.mjs +1 -0
- package/dist/chunks/plugins-1.1.10-e40pek7s.mjs +9 -0
- package/dist/chunks/preActionHook-1.1.10-59kjxx2m.mjs +2 -0
- package/dist/chunks/print-1.1.10-exvxk5s6.mjs +57 -0
- package/dist/chunks/privacy-settings-1.1.10-4bdpnrms.mjs +1 -0
- package/dist/chunks/process-1.1.10-km5rbq9n.mjs +1 -0
- package/dist/chunks/processBashCommand-1.1.10-h4jmaj4v.mjs +1 -0
- package/dist/chunks/processSlashCommand-1.1.10-r7k9bvny.mjs +9 -0
- package/dist/chunks/prompt-1.1.10-01smdx9v.mjs +1 -0
- package/dist/chunks/prompt-1.1.10-e7736a74.mjs +1 -0
- package/dist/chunks/prompts-1.1.10-xq2654jw.mjs +1 -0
- package/dist/chunks/protocolHandler-1.1.10-y0y188tv.mjs +13 -0
- package/dist/chunks/provider-1.1.10-6w0w7pgq.mjs +2 -0
- package/dist/chunks/providerProfiles-1.1.10-z18shscr.mjs +1 -0
- package/dist/chunks/providerValidation-1.1.10-1dsjh7z9.mjs +6 -0
- package/dist/chunks/rate-limit-options-1.1.10-fe3cq8zn.mjs +1 -0
- package/dist/chunks/registerSubcommands-1.1.10-r3mc5gga.mjs +34 -0
- package/dist/chunks/registry-1.1.10-n9xv1qjw.mjs +1 -0
- package/dist/chunks/release-notes-1.1.10-2ecqsjx0.mjs +5 -0
- package/dist/chunks/reload-plugins-1.1.10-pb7wpz5e.mjs +2 -0
- package/dist/chunks/remote-env-1.1.10-tybykfn7.mjs +1 -0
- package/dist/chunks/remoteBridgeCore-1.1.10-crdtgqbs.mjs +1 -0
- package/dist/chunks/remoteSession-1.1.10-1egxb08k.mjs +1 -0
- package/dist/chunks/rename-1.1.10-0j2dbrfg.mjs +1 -0
- package/dist/chunks/replBridgeHandle-1.1.10-yf9vdp0m.mjs +1 -0
- package/dist/chunks/replLauncher-1.1.10-y2ykrkt0.mjs +1 -0
- package/dist/chunks/resume-1.1.10-e4w4vqsa.mjs +2 -0
- package/dist/chunks/rewind-1.1.10-2sjz5jw8.mjs +1 -0
- package/dist/chunks/rootOptions-1.1.10-5hysyde5.mjs +1 -0
- package/dist/chunks/runWorkflowHeadless-1.1.10-nengktmv.mjs +10 -0
- package/dist/chunks/sandbox-adapter-1.1.10-svdktpkg.mjs +1 -0
- package/dist/chunks/sandbox-toggle-1.1.10-q8da9hjz.mjs +1 -0
- package/dist/chunks/session-1.1.10-1g27gvqt.mjs +2 -0
- package/dist/chunks/sessionDiscovery-1.1.10-0hb3n5na.mjs +1 -0
- package/dist/chunks/sessionFileAccessHooks-1.1.10-z13dd76y.mjs +1 -0
- package/dist/chunks/sessionStorage-1.1.10-60nqzt83.mjs +1 -0
- package/dist/chunks/settings-1.1.10-95zpybsa.mjs +1 -0
- package/dist/chunks/setup-1.1.10-400hhq7t.mjs +5 -0
- package/dist/chunks/sinks-1.1.10-w9vqb1fc.mjs +1 -0
- package/dist/chunks/skills-1.1.10-4rvw7gjv.mjs +1 -0
- package/dist/chunks/startupProfiler-1.1.10-va3s727x.mjs +1 -0
- package/dist/chunks/startupUpdateCheck-1.1.10-en1qgfv4.mjs +1 -0
- package/dist/chunks/state-1.1.10-m7z4cc4k.mjs +1 -0
- package/dist/chunks/stats-1.1.10-zr2qwhhw.mjs +6 -0
- package/dist/chunks/status-1.1.10-shjkyaf2.mjs +1 -0
- package/dist/chunks/stickers-1.1.10-2q6r4f9v.mjs +1 -0
- package/dist/chunks/subprocessEnv-1.1.10-whznjthj.mjs +1 -0
- package/dist/chunks/tasks-1.1.10-xvxjn48w.mjs +1 -0
- package/dist/chunks/teamHelpers-1.1.10-3a06a8cd.mjs +1 -0
- package/dist/chunks/teammateModeSnapshot-1.1.10-yns217pf.mjs +1 -0
- package/dist/chunks/teleport-1.1.10-gc3e0hfm.mjs +1 -0
- package/dist/chunks/terminalSetup-1.1.10-4tqezn3j.mjs +1 -0
- package/dist/chunks/theme-1.1.10-qp7v8yaq.mjs +1 -0
- package/dist/chunks/thinkback-1.1.10-xyd2apjc.mjs +1 -0
- package/dist/chunks/thinkback-play-1.1.10-a5hhp9ca.mjs +1 -0
- package/dist/chunks/toolPool-1.1.10-n1hm8qqk.mjs +1 -0
- package/dist/chunks/toolSearch-1.1.10-29584y2q.mjs +1 -0
- package/dist/chunks/tools-1.1.10-yd9tmhpe.mjs +1 -0
- package/dist/chunks/trustedDevice-1.1.10-qs4pk9wc.mjs +1 -0
- package/dist/chunks/turndown.cjs-1.1.10-m0c9pvs3.mjs +69 -0
- package/dist/chunks/types-1.1.10-gz59ngmz.mjs +1 -0
- package/dist/chunks/ultrareviewCommand-1.1.10-8arx59cc.mjs +4 -0
- package/dist/chunks/update-1.1.10-1w823rha.mjs +72 -0
- package/dist/chunks/upgrade-1.1.10-0h5fvvfp.mjs +1 -0
- package/dist/chunks/upload-1.1.10-ge981abh.mjs +7 -0
- package/dist/chunks/upstreamproxy-1.1.10-80kjt167.mjs +14 -0
- package/dist/chunks/url-handler-napi-1.1.10-x60fj9h0.mjs +1 -0
- package/dist/chunks/usage-1.1.10-gxymk7vd.mjs +1 -0
- package/dist/chunks/util-1.1.10-s4sj88my.mjs +1 -0
- package/dist/chunks/utils-1.1.10-haynqk5y.mjs +1 -0
- package/dist/chunks/vim-1.1.10-6yhqt71v.mjs +1 -0
- package/dist/chunks/watchLoop-1.1.10-cg0f8n71.mjs +13 -0
- package/dist/chunks/watcher-1.1.10-y1qwkajd.mjs +1 -0
- package/dist/chunks/wiki-1.1.10-1djxp3tb.mjs +132 -0
- package/dist/chunks/workflows-1.1.10-brkbd7wc.mjs +1 -0
- package/dist/chunks/worktree-1.1.10-bn0ac41k.mjs +1 -0
- package/dist/chunks/worktreeModeEnabled-1.1.10-rhvwpn43.mjs +1 -0
- package/dist/chunks/wrapper-1.1.10-dthrwggp.mjs +7 -0
- package/dist/cli.mjs +2 -2
- package/package.json +9 -9
- package/dist/chunks/AgentTool-1.1.8-6z4gxak1.mjs +0 -1
- package/dist/chunks/App-1.1.8-d07z7cbf.mjs +0 -1
- package/dist/chunks/ApproveApiKey-1.1.8-fsyn77jc.mjs +0 -1
- package/dist/chunks/AssistantSessionChooser-1.1.8-z6j52pp3.mjs +0 -1
- package/dist/chunks/AutoModeOptInDialog-1.1.8-nxgt8y8q.mjs +0 -1
- package/dist/chunks/BypassPermissionsModeDialog-1.1.8-bjsz0qfp.mjs +0 -1
- package/dist/chunks/ClaudeMdExternalIncludesDialog-1.1.8-2mwsqmhp.mjs +0 -1
- package/dist/chunks/ConsoleOAuthFlow-1.1.8-24z6s4j5.mjs +0 -1
- package/dist/chunks/DiffDialog-1.1.8-abc9qq6c.mjs +0 -7
- package/dist/chunks/Doctor-1.1.8-8ja3a3f1.mjs +0 -1
- package/dist/chunks/ExplorerDialog-1.1.8-nsj1wjz4.mjs +0 -6
- package/dist/chunks/Grove-1.1.8-hkq9z22m.mjs +0 -1
- package/dist/chunks/ITermBackend-1.1.8-a8tfxk9n.mjs +0 -1
- package/dist/chunks/InvalidConfigDialog-1.1.8-nt3tgbzz.mjs +0 -1
- package/dist/chunks/InvalidSettingsDialog-1.1.8-ybdh3drb.mjs +0 -1
- package/dist/chunks/MigrationDialog-1.1.8-qvkzvfgf.mjs +0 -1
- package/dist/chunks/Onboarding-1.1.8-2bkd7rzz.mjs +0 -1
- package/dist/chunks/ProviderManager-1.1.8-v45zy151.mjs +0 -1
- package/dist/chunks/REPL-1.1.8-mdyssah9.mjs +0 -1
- package/dist/chunks/ResumeConversation-1.1.8-2d6r24bp.mjs +0 -1
- package/dist/chunks/SnapshotUpdateDialog-1.1.8-bkt80qn7.mjs +0 -1
- package/dist/chunks/TeleportProgress-1.1.8-35s6scr9.mjs +0 -1
- package/dist/chunks/TeleportRepoMismatchDialog-1.1.8-gddzn3ac.mjs +0 -1
- package/dist/chunks/TeleportResumeWrapper-1.1.8-sqrxwgy6.mjs +0 -1
- package/dist/chunks/TmuxBackend-1.1.8-21pehb0t.mjs +0 -9
- package/dist/chunks/ToolSearchTool-1.1.8-h78w5ftj.mjs +0 -1
- package/dist/chunks/TrustDialog-1.1.8-pqvwnbce.mjs +0 -1
- package/dist/chunks/activeProvider-1.1.8-rnbk6kxv.mjs +0 -1
- package/dist/chunks/add-dir-1.1.8-mdmcq32z.mjs +0 -1
- package/dist/chunks/agentTypes-1.1.8-h8nnkdmz.mjs +0 -1
- package/dist/chunks/agents-1.1.8-4f1tz8xm.mjs +0 -110
- package/dist/chunks/agents-1.1.8-6kv8h0fa.mjs +0 -3
- package/dist/chunks/api-1.1.8-mp8twdfj.mjs +0 -1
- package/dist/chunks/asciicast-1.1.8-t2mar25c.mjs +0 -1
- package/dist/chunks/assistant-1.1.8-t54n390j.mjs +0 -1
- package/dist/chunks/auth-1.1.8-pv29fraf.mjs +0 -1
- package/dist/chunks/auth-1.1.8-qm8h71j7.mjs +0 -1
- package/dist/chunks/autoMode-1.1.8-ahgyhzep.mjs +0 -48
- package/dist/chunks/autoUpdater-1.1.8-sdsx7fz9.mjs +0 -1
- package/dist/chunks/backgroundHousekeeping-1.1.8-b37pdha5.mjs +0 -1
- package/dist/chunks/branch-1.1.8-2emyy03d.mjs +0 -4
- package/dist/chunks/bridge-1.1.8-dkk2n1jt.mjs +0 -2
- package/dist/chunks/bridgeConfig-1.1.8-bv7zrzb6.mjs +0 -1
- package/dist/chunks/bridgeEnabled-1.1.8-z1sv63ct.mjs +0 -1
- package/dist/chunks/bridgeMain-1.1.8-rqp8q7sc.mjs +0 -88
- package/dist/chunks/bridgePointer-1.1.8-5hg7c4c6.mjs +0 -1
- package/dist/chunks/btw-1.1.8-td5e11qz.mjs +0 -1
- package/dist/chunks/buddy-1.1.8-jmk0bgcs.mjs +0 -3
- package/dist/chunks/cacache-1.1.8-qzw8r9my.mjs +0 -1
- package/dist/chunks/cache-probe-1.1.8-889g7w4k.mjs +0 -21
- package/dist/chunks/cacheStats-1.1.8-nzgv89d1.mjs +0 -4
- package/dist/chunks/caches-1.1.8-f09m1b12.mjs +0 -1
- package/dist/chunks/claudeDesktop-1.1.8-2rww6nv3.mjs +0 -1
- package/dist/chunks/claudemd-1.1.8-wygkqnb3.mjs +0 -1
- package/dist/chunks/clear-1.1.8-71j589cf.mjs +0 -1
- package/dist/chunks/clearTerminal-1.1.8-5j0t6dtd.mjs +0 -1
- package/dist/chunks/cli-1.1.8-05yz3n3m.mjs +0 -2
- package/dist/chunks/cli-1.1.8-0fqp4nd4.mjs +0 -2
- package/dist/chunks/cli-1.1.8-0pb52yqp.mjs +0 -6
- package/dist/chunks/cli-1.1.8-0vkk8zhj.mjs +0 -2
- package/dist/chunks/cli-1.1.8-0xw30z19.mjs +0 -2
- package/dist/chunks/cli-1.1.8-125zncm7.mjs +0 -2
- package/dist/chunks/cli-1.1.8-12gxg7dk.mjs +0 -3
- package/dist/chunks/cli-1.1.8-15q52swp.mjs +0 -2
- package/dist/chunks/cli-1.1.8-1as5wwed.mjs +0 -2
- package/dist/chunks/cli-1.1.8-1at0q43h.mjs +0 -2
- package/dist/chunks/cli-1.1.8-1e4hz1dh.mjs +0 -4
- package/dist/chunks/cli-1.1.8-1m910jhy.mjs +0 -2
- package/dist/chunks/cli-1.1.8-205c5ayn.mjs +0 -45
- package/dist/chunks/cli-1.1.8-20fqtbb0.mjs +0 -2
- package/dist/chunks/cli-1.1.8-231ktrsd.mjs +0 -2
- package/dist/chunks/cli-1.1.8-2afqpefw.mjs +0 -2
- package/dist/chunks/cli-1.1.8-2nq1cm30.mjs +0 -39
- package/dist/chunks/cli-1.1.8-2q9w1hnc.mjs +0 -2
- package/dist/chunks/cli-1.1.8-2smp07zs.mjs +0 -2
- package/dist/chunks/cli-1.1.8-2vsq8a0w.mjs +0 -2
- package/dist/chunks/cli-1.1.8-2zp9e9zh.mjs +0 -2
- package/dist/chunks/cli-1.1.8-30zhxwg9.mjs +0 -16
- package/dist/chunks/cli-1.1.8-35pzh2ts.mjs +0 -2
- package/dist/chunks/cli-1.1.8-38vrxm77.mjs +0 -3
- package/dist/chunks/cli-1.1.8-3btvsdx3.mjs +0 -2
- package/dist/chunks/cli-1.1.8-3j80fvcv.mjs +0 -2
- package/dist/chunks/cli-1.1.8-3tazs3h1.mjs +0 -2
- package/dist/chunks/cli-1.1.8-462maymv.mjs +0 -2
- package/dist/chunks/cli-1.1.8-49wtksqb.mjs +0 -2
- package/dist/chunks/cli-1.1.8-4cgcvt3g.mjs +0 -15
- package/dist/chunks/cli-1.1.8-4cvb8vj8.mjs +0 -2
- package/dist/chunks/cli-1.1.8-5862s9mq.mjs +0 -9
- package/dist/chunks/cli-1.1.8-59r0krp6.mjs +0 -4
- package/dist/chunks/cli-1.1.8-5e3xx9db.mjs +0 -8
- package/dist/chunks/cli-1.1.8-5s0ctz15.mjs +0 -25
- package/dist/chunks/cli-1.1.8-6118xjzf.mjs +0 -2
- package/dist/chunks/cli-1.1.8-61d813en.mjs +0 -2
- package/dist/chunks/cli-1.1.8-656pm2np.mjs +0 -2
- package/dist/chunks/cli-1.1.8-67d0fesx.mjs +0 -18
- package/dist/chunks/cli-1.1.8-6kg3tp3t.mjs +0 -2
- package/dist/chunks/cli-1.1.8-6t8wtnyz.mjs +0 -15
- package/dist/chunks/cli-1.1.8-6w5tvkaj.mjs +0 -2
- package/dist/chunks/cli-1.1.8-74586mpw.mjs +0 -9
- package/dist/chunks/cli-1.1.8-7536y3yr.mjs +0 -3
- package/dist/chunks/cli-1.1.8-7e1cxc2r.mjs +0 -2
- package/dist/chunks/cli-1.1.8-7ghn9sgt.mjs +0 -2
- package/dist/chunks/cli-1.1.8-7gv7j9wf.mjs +0 -2
- package/dist/chunks/cli-1.1.8-7j6ztazy.mjs +0 -2
- package/dist/chunks/cli-1.1.8-7kf0prpp.mjs +0 -2
- package/dist/chunks/cli-1.1.8-7mtk34ry.mjs +0 -4
- package/dist/chunks/cli-1.1.8-7sft4tp3.mjs +0 -2
- package/dist/chunks/cli-1.1.8-85hnxfzw.mjs +0 -2
- package/dist/chunks/cli-1.1.8-8ethv98x.mjs +0 -3
- package/dist/chunks/cli-1.1.8-8gj0g1hd.mjs +0 -2
- package/dist/chunks/cli-1.1.8-8x1wf6wg.mjs +0 -59
- package/dist/chunks/cli-1.1.8-8xe9c3tx.mjs +0 -2
- package/dist/chunks/cli-1.1.8-8zf4nnw6.mjs +0 -15
- package/dist/chunks/cli-1.1.8-98pq375b.mjs +0 -2
- package/dist/chunks/cli-1.1.8-9bx144d4.mjs +0 -2
- package/dist/chunks/cli-1.1.8-9d0730ff.mjs +0 -3
- package/dist/chunks/cli-1.1.8-9egsv8kb.mjs +0 -2
- package/dist/chunks/cli-1.1.8-9mr8erq2.mjs +0 -2
- package/dist/chunks/cli-1.1.8-9nnn67wx.mjs +0 -2
- package/dist/chunks/cli-1.1.8-9yhtna2t.mjs +0 -2
- package/dist/chunks/cli-1.1.8-a1qac4fc.mjs +0 -3
- package/dist/chunks/cli-1.1.8-a3etddaa.mjs +0 -2
- package/dist/chunks/cli-1.1.8-a3w8yas2.mjs +0 -24
- package/dist/chunks/cli-1.1.8-a52qejcb.mjs +0 -20
- package/dist/chunks/cli-1.1.8-akxxvxcg.mjs +0 -2
- package/dist/chunks/cli-1.1.8-arxr9t30.mjs +0 -2
- package/dist/chunks/cli-1.1.8-b46m1pa5.mjs +0 -2
- package/dist/chunks/cli-1.1.8-bdesaqqn.mjs +0 -2
- package/dist/chunks/cli-1.1.8-bf0h6s2a.mjs +0 -2
- package/dist/chunks/cli-1.1.8-bh494psb.mjs +0 -6
- package/dist/chunks/cli-1.1.8-bxbg70bf.mjs +0 -2
- package/dist/chunks/cli-1.1.8-bzs61r0e.mjs +0 -2
- package/dist/chunks/cli-1.1.8-c0knk34t.mjs +0 -2
- package/dist/chunks/cli-1.1.8-c3rz4cxf.mjs +0 -2
- package/dist/chunks/cli-1.1.8-c4xc2d6s.mjs +0 -2
- package/dist/chunks/cli-1.1.8-cpgd4r16.mjs +0 -2
- package/dist/chunks/cli-1.1.8-czskf284.mjs +0 -2
- package/dist/chunks/cli-1.1.8-d092mrgm.mjs +0 -2
- package/dist/chunks/cli-1.1.8-d2gfswc3.mjs +0 -2
- package/dist/chunks/cli-1.1.8-d3s7xdkk.mjs +0 -2
- package/dist/chunks/cli-1.1.8-d4878nn2.mjs +0 -2
- package/dist/chunks/cli-1.1.8-d5afbx68.mjs +0 -6
- package/dist/chunks/cli-1.1.8-db100c4h.mjs +0 -202
- package/dist/chunks/cli-1.1.8-dgbh9n27.mjs +0 -6
- package/dist/chunks/cli-1.1.8-dv1edxg1.mjs +0 -4
- package/dist/chunks/cli-1.1.8-e1by1s5j.mjs +0 -2
- package/dist/chunks/cli-1.1.8-e3ev48gp.mjs +0 -2
- package/dist/chunks/cli-1.1.8-edw6k2f7.mjs +0 -2
- package/dist/chunks/cli-1.1.8-ee9qyzkj.mjs +0 -2
- package/dist/chunks/cli-1.1.8-efjw6x2m.mjs +0 -2
- package/dist/chunks/cli-1.1.8-ekmm2znm.mjs +0 -2
- package/dist/chunks/cli-1.1.8-epqqq77y.mjs +0 -1
- package/dist/chunks/cli-1.1.8-ernbjcgb.mjs +0 -2
- package/dist/chunks/cli-1.1.8-evk4j7cq.mjs +0 -2
- package/dist/chunks/cli-1.1.8-f0kaq070.mjs +0 -2
- package/dist/chunks/cli-1.1.8-f2gv8js5.mjs +0 -2
- package/dist/chunks/cli-1.1.8-f75mhnpd.mjs +0 -17
- package/dist/chunks/cli-1.1.8-fd4rat7s.mjs +0 -2
- package/dist/chunks/cli-1.1.8-ffx8vwwt.mjs +0 -3
- package/dist/chunks/cli-1.1.8-fgw4h53q.mjs +0 -2
- package/dist/chunks/cli-1.1.8-fqgcppxc.mjs +0 -2
- package/dist/chunks/cli-1.1.8-g0t0qtsv.mjs +0 -12
- package/dist/chunks/cli-1.1.8-g8sjkk8z.mjs +0 -7
- package/dist/chunks/cli-1.1.8-gf6w1neb.mjs +0 -2
- package/dist/chunks/cli-1.1.8-gfzzaejq.mjs +0 -2
- package/dist/chunks/cli-1.1.8-gqqjkrq0.mjs +0 -4
- package/dist/chunks/cli-1.1.8-gtw37r6f.mjs +0 -2
- package/dist/chunks/cli-1.1.8-gvkpq2k1.mjs +0 -26
- package/dist/chunks/cli-1.1.8-h5zqw021.mjs +0 -2
- package/dist/chunks/cli-1.1.8-hws56n0s.mjs +0 -2
- package/dist/chunks/cli-1.1.8-hzkgx15v.mjs +0 -3
- package/dist/chunks/cli-1.1.8-j2mvpcgh.mjs +0 -2
- package/dist/chunks/cli-1.1.8-jk6kcgkf.mjs +0 -4
- package/dist/chunks/cli-1.1.8-jkp8ynyx.mjs +0 -2
- package/dist/chunks/cli-1.1.8-jmp76vj2.mjs +0 -2
- package/dist/chunks/cli-1.1.8-jtxcccqb.mjs +0 -2
- package/dist/chunks/cli-1.1.8-jv4y43ct.mjs +0 -2
- package/dist/chunks/cli-1.1.8-jzk8xgkw.mjs +0 -2
- package/dist/chunks/cli-1.1.8-k0wdtx54.mjs +0 -2
- package/dist/chunks/cli-1.1.8-k2q3jd4x.mjs +0 -2
- package/dist/chunks/cli-1.1.8-k3jmtdxb.mjs +0 -2
- package/dist/chunks/cli-1.1.8-k4q05xpp.mjs +0 -4
- package/dist/chunks/cli-1.1.8-k6xa7zcq.mjs +0 -2
- package/dist/chunks/cli-1.1.8-k878kyye.mjs +0 -2
- package/dist/chunks/cli-1.1.8-kgq0wj8c.mjs +0 -2
- package/dist/chunks/cli-1.1.8-kkzcmrxs.mjs +0 -2
- package/dist/chunks/cli-1.1.8-knfkgncm.mjs +0 -5721
- package/dist/chunks/cli-1.1.8-mayxghnz.mjs +0 -2
- package/dist/chunks/cli-1.1.8-mdybbj2p.mjs +0 -133
- package/dist/chunks/cli-1.1.8-mgz0nyed.mjs +0 -50
- package/dist/chunks/cli-1.1.8-mhv5xrf1.mjs +0 -4
- package/dist/chunks/cli-1.1.8-mkzsens1.mjs +0 -4
- package/dist/chunks/cli-1.1.8-mq7t5jca.mjs +0 -3
- package/dist/chunks/cli-1.1.8-mza3p36d.mjs +0 -2
- package/dist/chunks/cli-1.1.8-n14gnq6x.mjs +0 -42
- package/dist/chunks/cli-1.1.8-n5d4px5z.mjs +0 -2
- package/dist/chunks/cli-1.1.8-nh485h9b.mjs +0 -2
- package/dist/chunks/cli-1.1.8-nrr32j4a.mjs +0 -2
- package/dist/chunks/cli-1.1.8-nt403561.mjs +0 -2
- package/dist/chunks/cli-1.1.8-nv123ysj.mjs +0 -5
- package/dist/chunks/cli-1.1.8-nv181dzv.mjs +0 -2
- package/dist/chunks/cli-1.1.8-nv79qg54.mjs +0 -2
- package/dist/chunks/cli-1.1.8-nvt7cbzg.mjs +0 -2
- package/dist/chunks/cli-1.1.8-nx84ctb0.mjs +0 -2
- package/dist/chunks/cli-1.1.8-nzs4skf4.mjs +0 -2
- package/dist/chunks/cli-1.1.8-p3fzx1sj.mjs +0 -24
- package/dist/chunks/cli-1.1.8-p6bd42xj.mjs +0 -2
- package/dist/chunks/cli-1.1.8-pwdb2y2v.mjs +0 -2
- package/dist/chunks/cli-1.1.8-px4ph853.mjs +0 -6
- package/dist/chunks/cli-1.1.8-q6c1w0dw.mjs +0 -2
- package/dist/chunks/cli-1.1.8-qcyhp9k8.mjs +0 -3
- package/dist/chunks/cli-1.1.8-qgweycgj.mjs +0 -6
- package/dist/chunks/cli-1.1.8-qgzhmw5w.mjs +0 -2
- package/dist/chunks/cli-1.1.8-qpqcr4wt.mjs +0 -2
- package/dist/chunks/cli-1.1.8-r9vd968y.mjs +0 -2
- package/dist/chunks/cli-1.1.8-rk2akmnh.mjs +0 -67
- package/dist/chunks/cli-1.1.8-rk40pf8s.mjs +0 -2
- package/dist/chunks/cli-1.1.8-rkw1dz9x.mjs +0 -2
- package/dist/chunks/cli-1.1.8-rqqgbjy2.mjs +0 -133
- package/dist/chunks/cli-1.1.8-sc8428te.mjs +0 -12
- package/dist/chunks/cli-1.1.8-sw7sne7p.mjs +0 -25
- package/dist/chunks/cli-1.1.8-sxkrzwwg.mjs +0 -18
- package/dist/chunks/cli-1.1.8-sxmsdz7p.mjs +0 -2
- package/dist/chunks/cli-1.1.8-syhhv2xq.mjs +0 -21
- package/dist/chunks/cli-1.1.8-syttwgv4.mjs +0 -3
- package/dist/chunks/cli-1.1.8-t1a3d6s9.mjs +0 -2
- package/dist/chunks/cli-1.1.8-t4hx0et2.mjs +0 -2
- package/dist/chunks/cli-1.1.8-t62hkyhg.mjs +0 -2
- package/dist/chunks/cli-1.1.8-t8xxt1pf.mjs +0 -2
- package/dist/chunks/cli-1.1.8-t93r8p95.mjs +0 -4
- package/dist/chunks/cli-1.1.8-t9cqvdhd.mjs +0 -2
- package/dist/chunks/cli-1.1.8-ta0zzaw5.mjs +0 -17
- package/dist/chunks/cli-1.1.8-tf20w2jn.mjs +0 -2
- package/dist/chunks/cli-1.1.8-tw2q1gej.mjs +0 -2
- package/dist/chunks/cli-1.1.8-tx519hkn.mjs +0 -2
- package/dist/chunks/cli-1.1.8-v8hp2y41.mjs +0 -2
- package/dist/chunks/cli-1.1.8-vqpn0kq9.mjs +0 -2
- package/dist/chunks/cli-1.1.8-vrszw55m.mjs +0 -2
- package/dist/chunks/cli-1.1.8-vw9jfqt2.mjs +0 -2
- package/dist/chunks/cli-1.1.8-w1ktcdzx.mjs +0 -34
- package/dist/chunks/cli-1.1.8-w2e3c7g6.mjs +0 -2
- package/dist/chunks/cli-1.1.8-w99f42k9.mjs +0 -3
- package/dist/chunks/cli-1.1.8-w9h3mvb4.mjs +0 -2
- package/dist/chunks/cli-1.1.8-w9tz8aaw.mjs +0 -2
- package/dist/chunks/cli-1.1.8-wdfxmkc7.mjs +0 -2
- package/dist/chunks/cli-1.1.8-wew0nf1q.mjs +0 -12
- package/dist/chunks/cli-1.1.8-wkyr3v6g.mjs +0 -24
- package/dist/chunks/cli-1.1.8-x05h2zp4.mjs +0 -2
- package/dist/chunks/cli-1.1.8-x3vk9h1m.mjs +0 -24
- package/dist/chunks/cli-1.1.8-x9e1306p.mjs +0 -2
- package/dist/chunks/cli-1.1.8-xa445fak.mjs +0 -2
- package/dist/chunks/cli-1.1.8-xmcyv92d.mjs +0 -2
- package/dist/chunks/cli-1.1.8-xqdr42wv.mjs +0 -2
- package/dist/chunks/cli-1.1.8-xzb74dgc.mjs +0 -58
- package/dist/chunks/cli-1.1.8-y3tr91m8.mjs +0 -2
- package/dist/chunks/cli-1.1.8-y50med5h.mjs +0 -4
- package/dist/chunks/cli-1.1.8-yjmxxj4y.mjs +0 -2
- package/dist/chunks/cli-1.1.8-yptj5mm3.mjs +0 -2
- package/dist/chunks/cli-1.1.8-yv4mw1z8.mjs +0 -2
- package/dist/chunks/cli-1.1.8-yx9yzca1.mjs +0 -5
- package/dist/chunks/cli-1.1.8-yzrpw572.mjs +0 -2
- package/dist/chunks/cli-1.1.8-zav01h3c.mjs +0 -2
- package/dist/chunks/cli-1.1.8-zc2wv1d7.mjs +0 -2
- package/dist/chunks/cli-1.1.8-zcrckt5v.mjs +0 -2
- package/dist/chunks/cli-1.1.8-zfx1k21c.mjs +0 -2
- package/dist/chunks/client-1.1.8-h43htzv0.mjs +0 -1
- package/dist/chunks/color-1.1.8-zdg5fqma.mjs +0 -1
- package/dist/chunks/compact-1.1.8-1af2hhhd.mjs +0 -3
- package/dist/chunks/config-1.1.8-bs3j0bh7.mjs +0 -1
- package/dist/chunks/config-1.1.8-mwcwa3ha.mjs +0 -1
- package/dist/chunks/constants-1.1.8-6qsgmarg.mjs +0 -1
- package/dist/chunks/context-1.1.8-y2smmd8y.mjs +0 -1
- package/dist/chunks/context-noninteractive-1.1.8-7m4c952c.mjs +0 -1
- package/dist/chunks/conversation-1.1.8-2hmabtxd.mjs +0 -1
- package/dist/chunks/copilotHeaders-1.1.8-nh4ys57g.mjs +0 -1
- package/dist/chunks/copy-1.1.8-vxmgrtv3.mjs +0 -9
- package/dist/chunks/cost-1.1.8-70bsspf5.mjs +0 -1
- package/dist/chunks/createSSHSession-1.1.8-4axzt4k5.mjs +0 -1
- package/dist/chunks/createSession-1.1.8-c1fbb9pm.mjs +0 -1
- package/dist/chunks/debug-1.1.8-02x6g655.mjs +0 -1
- package/dist/chunks/defaultActionDeps-1.1.8-a1dxrpdz.mjs +0 -1446
- package/dist/chunks/desktop-1.1.8-tdtzcad0.mjs +0 -1
- package/dist/chunks/detectRepository-1.1.8-6h2qfjfb.mjs +0 -1
- package/dist/chunks/detection-1.1.8-mwwyzmcq.mjs +0 -1
- package/dist/chunks/diff-1.1.8-dcm7epcs.mjs +0 -1
- package/dist/chunks/doctor-1.1.8-a29dgfa8.mjs +0 -1
- package/dist/chunks/doctorDiagnostic-1.1.8-njzmwvmq.mjs +0 -1
- package/dist/chunks/earlyInput-1.1.8-7genxy96.mjs +0 -1
- package/dist/chunks/effort-1.1.8-y36797j4.mjs +0 -13
- package/dist/chunks/engine-1.1.8-fqyd5m01.mjs +0 -1
- package/dist/chunks/envLessBridgeConfig-1.1.8-ef7qwkd5.mjs +0 -1
- package/dist/chunks/envUtils-1.1.8-99wqsc2g.mjs +0 -1
- package/dist/chunks/environmentSelection-1.1.8-cc9g8r4w.mjs +0 -1
- package/dist/chunks/environments-1.1.8-hw1xqjcd.mjs +0 -1
- package/dist/chunks/errors-1.1.8-1493t2ga.mjs +0 -1
- package/dist/chunks/exampleCommands-1.1.8-zdxcd2qw.mjs +0 -1
- package/dist/chunks/execFileNoThrow-1.1.8-ntrztjxv.mjs +0 -1
- package/dist/chunks/exit-1.1.8-hg0x8rb4.mjs +0 -1
- package/dist/chunks/explorer-1.1.8-45jxm6r3.mjs +0 -1
- package/dist/chunks/export-1.1.8-tjbc3yps.mjs +0 -2
- package/dist/chunks/extra-usage-1.1.8-m07zw7z7.mjs +0 -1
- package/dist/chunks/extra-usage-noninteractive-1.1.8-x0nk6gpq.mjs +0 -1
- package/dist/chunks/fast-1.1.8-16bcey2v.mjs +0 -1
- package/dist/chunks/feedback-1.1.8-ybfs6p31.mjs +0 -14
- package/dist/chunks/firstPartyEventLogger-1.1.8-0a07kg5a.mjs +0 -1
- package/dist/chunks/git-1.1.8-yhtjgapj.mjs +0 -1
- package/dist/chunks/githubModelsCredentials-1.1.8-8m2kfpj0.mjs +0 -1
- package/dist/chunks/goal-1.1.8-m18wqymf.mjs +0 -4
- package/dist/chunks/grove-1.1.8-hq8trmvx.mjs +0 -1
- package/dist/chunks/growthbook-1.1.8-jnc5s1gr.mjs +0 -1
- package/dist/chunks/headless-1.1.8-g6y7x6p5.mjs +0 -2
- package/dist/chunks/heapdump-1.1.8-bdd4tbc4.mjs +0 -6
- package/dist/chunks/help-1.1.8-adn9yj5b.mjs +0 -1
- package/dist/chunks/hookChains-1.1.8-jvx26rvp.mjs +0 -3
- package/dist/chunks/hooks-1.1.8-10bepv2t.mjs +0 -79
- package/dist/chunks/hooks-1.1.8-wxrar4bk.mjs +0 -1
- package/dist/chunks/ide-1.1.8-e1kgf08v.mjs +0 -3
- package/dist/chunks/image-processor-napi-1.1.8-7qq6cd9d.mjs +0 -1
- package/dist/chunks/inboundAttachments-1.1.8-tmvsb72y.mjs +0 -1
- package/dist/chunks/index-1.1.8-075w4nhz.mjs +0 -9
- package/dist/chunks/index-1.1.8-0hkas4xw.mjs +0 -1
- package/dist/chunks/index-1.1.8-0vs7xmac.mjs +0 -30
- package/dist/chunks/index-1.1.8-15y0r0yw.mjs +0 -1
- package/dist/chunks/index-1.1.8-26b73x3g.mjs +0 -2
- package/dist/chunks/index-1.1.8-4etv37ta.mjs +0 -1
- package/dist/chunks/index-1.1.8-6p8c8t6k.mjs +0 -1
- package/dist/chunks/index-1.1.8-7ykg7nw4.mjs +0 -1
- package/dist/chunks/index-1.1.8-8t0g6s4j.mjs +0 -1
- package/dist/chunks/index-1.1.8-cgcvj82j.mjs +0 -23
- package/dist/chunks/index-1.1.8-cm3fqyj1.mjs +0 -1
- package/dist/chunks/index-1.1.8-cpf2mfhc.mjs +0 -1
- package/dist/chunks/index-1.1.8-f3qfkewa.mjs +0 -1
- package/dist/chunks/index-1.1.8-gyhxyh37.mjs +0 -1
- package/dist/chunks/index-1.1.8-hyz5kb4e.mjs +0 -1
- package/dist/chunks/index-1.1.8-k0eafjj9.mjs +0 -1
- package/dist/chunks/index-1.1.8-qhk5dps0.mjs +0 -9
- package/dist/chunks/index-1.1.8-rcyqt694.mjs +0 -1
- package/dist/chunks/index-1.1.8-sv9wq8vm.mjs +0 -1
- package/dist/chunks/index-1.1.8-tz0fvmye.mjs +0 -5
- package/dist/chunks/index-1.1.8-vaqk09sc.mjs +0 -1
- package/dist/chunks/index-1.1.8-vd2csf3e.mjs +0 -2
- package/dist/chunks/index-1.1.8-y6bn96fs.mjs +0 -1
- package/dist/chunks/init-1.1.8-e7kkbgzq.mjs +0 -1
- package/dist/chunks/initReplBridge-1.1.8-0cctke88.mjs +0 -1
- package/dist/chunks/ink-1.1.8-20q0h10k.mjs +0 -1
- package/dist/chunks/insights-1.1.8-e9hjnmbn.mjs +0 -870
- package/dist/chunks/install-1.1.8-fnb2k88m.mjs +0 -1
- package/dist/chunks/install-github-app-1.1.8-dgabwyh1.mjs +0 -149
- package/dist/chunks/install-slack-app-1.1.8-2vh4newn.mjs +0 -1
- package/dist/chunks/instrumentation-1.1.8-kth6vzt4.mjs +0 -1
- package/dist/chunks/interactiveHelpers-1.1.8-3g33kfsm.mjs +0 -1
- package/dist/chunks/keybindings-1.1.8-c69hmddw.mjs +0 -2
- package/dist/chunks/knowledge-1.1.8-sngea3j8.mjs +0 -2
- package/dist/chunks/latestVersionCache-1.1.8-1srnp86b.mjs +0 -1
- package/dist/chunks/loadAgentsDir-1.1.8-wmvpm36a.mjs +0 -1
- package/dist/chunks/loadPluginHooks-1.1.8-9hrrn6b1.mjs +0 -1
- package/dist/chunks/loadPluginHooks-1.1.8-ae5zxvnn.mjs +0 -1
- package/dist/chunks/log-1.1.8-2wvsfegd.mjs +0 -1
- package/dist/chunks/main-1.1.8-53c8p1hf.mjs +0 -1
- package/dist/chunks/managedEnv-1.1.8-3qxf1b2m.mjs +0 -1
- package/dist/chunks/mcp-1.1.8-12tszewv.mjs +0 -4
- package/dist/chunks/mcp-1.1.8-2yw2qynw.mjs +0 -1
- package/dist/chunks/mcp-1.1.8-awep4hb5.mjs +0 -17
- package/dist/chunks/mcpb-1.1.8-14gyeqdt.mjs +0 -1
- package/dist/chunks/memory-1.1.8-v7hbdb18.mjs +0 -72
- package/dist/chunks/model-1.1.8-70r35ayh.mjs +0 -2
- package/dist/chunks/model-1.1.8-wncbw1nv.mjs +0 -1
- package/dist/chunks/node-1.1.8-0bpza0gv.mjs +0 -12
- package/dist/chunks/oauth-1.1.8-1zj1geby.mjs +0 -1
- package/dist/chunks/openaiShim-1.1.8-eaxqv9jn.mjs +0 -14
- package/dist/chunks/output-style-1.1.8-v8kk4mmm.mjs +0 -1
- package/dist/chunks/package-L37ZVTF4-1.1.8-f4krrwjg.mjs +0 -1
- package/dist/chunks/parseConnectUrl-1.1.8-tns55hj7.mjs +0 -1
- package/dist/chunks/parser-1.1.8-y6rm14pk.mjs +0 -1
- package/dist/chunks/passes-1.1.8-hyd8bv5h.mjs +0 -1
- package/dist/chunks/permissions-1.1.8-e32fqvvk.mjs +0 -3
- package/dist/chunks/permissions-1.1.8-j0scmex7.mjs +0 -1
- package/dist/chunks/plan-1.1.8-1csevcqv.mjs +0 -1
- package/dist/chunks/plist-1.1.8-47419hwn.mjs +0 -1
- package/dist/chunks/plugin-1.1.8-xcj7jz75.mjs +0 -29
- package/dist/chunks/pluginStartupCheck-1.1.8-hqbc3c4d.mjs +0 -1
- package/dist/chunks/plugins-1.1.8-nrra8gx1.mjs +0 -9
- package/dist/chunks/preActionHook-1.1.8-2fgj7c0d.mjs +0 -2
- package/dist/chunks/print-1.1.8-3qy5nfzr.mjs +0 -57
- package/dist/chunks/privacy-settings-1.1.8-zsp6fsh1.mjs +0 -1
- package/dist/chunks/process-1.1.8-t92an9g0.mjs +0 -1
- package/dist/chunks/processBashCommand-1.1.8-5j7f3zj5.mjs +0 -1
- package/dist/chunks/processSlashCommand-1.1.8-97yy5hpk.mjs +0 -9
- package/dist/chunks/prompt-1.1.8-mges4wt5.mjs +0 -1
- package/dist/chunks/prompt-1.1.8-tfg4jhbt.mjs +0 -1
- package/dist/chunks/prompts-1.1.8-q1wrrwdr.mjs +0 -1
- package/dist/chunks/protocolHandler-1.1.8-ymb7yfxx.mjs +0 -13
- package/dist/chunks/provider-1.1.8-j317q85s.mjs +0 -2
- package/dist/chunks/providerProfiles-1.1.8-f2symnwy.mjs +0 -1
- package/dist/chunks/providerValidation-1.1.8-k2r5q4vk.mjs +0 -6
- package/dist/chunks/rate-limit-options-1.1.8-8chtnkxk.mjs +0 -1
- package/dist/chunks/registerSubcommands-1.1.8-9wd8cb3g.mjs +0 -34
- package/dist/chunks/registry-1.1.8-d06az15f.mjs +0 -1
- package/dist/chunks/release-notes-1.1.8-rmg47yy1.mjs +0 -5
- package/dist/chunks/reload-plugins-1.1.8-wej3bnvx.mjs +0 -2
- package/dist/chunks/remote-env-1.1.8-bht3nad5.mjs +0 -1
- package/dist/chunks/remoteBridgeCore-1.1.8-j57ggr86.mjs +0 -1
- package/dist/chunks/remoteSession-1.1.8-rmrphzwh.mjs +0 -1
- package/dist/chunks/rename-1.1.8-t9s0vyfm.mjs +0 -1
- package/dist/chunks/replBridgeHandle-1.1.8-0hp49nj3.mjs +0 -1
- package/dist/chunks/replLauncher-1.1.8-vw8ysvak.mjs +0 -1
- package/dist/chunks/resume-1.1.8-g13vfwpe.mjs +0 -2
- package/dist/chunks/rewind-1.1.8-k2bp0x9p.mjs +0 -1
- package/dist/chunks/rootOptions-1.1.8-jjagdnm4.mjs +0 -1
- package/dist/chunks/runWorkflowHeadless-1.1.8-szat8e81.mjs +0 -10
- package/dist/chunks/sandbox-adapter-1.1.8-gcn8vt8z.mjs +0 -1
- package/dist/chunks/sandbox-toggle-1.1.8-9k1xg4b5.mjs +0 -1
- package/dist/chunks/session-1.1.8-09hwr9j5.mjs +0 -2
- package/dist/chunks/sessionDiscovery-1.1.8-f8mhpp1n.mjs +0 -1
- package/dist/chunks/sessionFileAccessHooks-1.1.8-bahxxqhe.mjs +0 -1
- package/dist/chunks/sessionStorage-1.1.8-hjk3adja.mjs +0 -1
- package/dist/chunks/settings-1.1.8-5vc7cx5w.mjs +0 -1
- package/dist/chunks/setup-1.1.8-trp83ayz.mjs +0 -5
- package/dist/chunks/sinks-1.1.8-mwbk48v4.mjs +0 -1
- package/dist/chunks/skills-1.1.8-danp83p4.mjs +0 -1
- package/dist/chunks/startupProfiler-1.1.8-02jr5z55.mjs +0 -1
- package/dist/chunks/startupUpdateCheck-1.1.8-69wzwvc1.mjs +0 -1
- package/dist/chunks/state-1.1.8-nsdn5anj.mjs +0 -1
- package/dist/chunks/stats-1.1.8-t5pza2rr.mjs +0 -6
- package/dist/chunks/status-1.1.8-68h5gqvx.mjs +0 -1
- package/dist/chunks/stickers-1.1.8-0h3kkr20.mjs +0 -1
- package/dist/chunks/subprocessEnv-1.1.8-kabvqrxh.mjs +0 -1
- package/dist/chunks/tasks-1.1.8-zepre4hr.mjs +0 -1
- package/dist/chunks/teamHelpers-1.1.8-fcp2jsnp.mjs +0 -1
- package/dist/chunks/teammateModeSnapshot-1.1.8-qvmhwh7w.mjs +0 -1
- package/dist/chunks/teleport-1.1.8-7wdmygej.mjs +0 -1
- package/dist/chunks/terminalSetup-1.1.8-p7bj9pmp.mjs +0 -1
- package/dist/chunks/theme-1.1.8-3szcwvrn.mjs +0 -1
- package/dist/chunks/thinkback-1.1.8-gap3zzg0.mjs +0 -1
- package/dist/chunks/thinkback-play-1.1.8-v89ne249.mjs +0 -1
- package/dist/chunks/toolPool-1.1.8-3vtrmmhc.mjs +0 -1
- package/dist/chunks/toolSearch-1.1.8-c86299rc.mjs +0 -1
- package/dist/chunks/tools-1.1.8-fgh8e1kf.mjs +0 -1
- package/dist/chunks/trustedDevice-1.1.8-nysjtcf4.mjs +0 -1
- package/dist/chunks/turndown.cjs-1.1.8-cqczbjvz.mjs +0 -69
- package/dist/chunks/types-1.1.8-paq7e73r.mjs +0 -1
- package/dist/chunks/ultrareviewCommand-1.1.8-3k0h42t7.mjs +0 -4
- package/dist/chunks/update-1.1.8-c8rb7gzn.mjs +0 -72
- package/dist/chunks/upgrade-1.1.8-nmgtg5re.mjs +0 -1
- package/dist/chunks/upload-1.1.8-bwrxfje4.mjs +0 -7
- package/dist/chunks/upstreamproxy-1.1.8-9n7d40g6.mjs +0 -14
- package/dist/chunks/url-handler-napi-1.1.8-zd3gsw0r.mjs +0 -1
- package/dist/chunks/usage-1.1.8-n15nggj5.mjs +0 -1
- package/dist/chunks/util-1.1.8-jz0kvsrr.mjs +0 -1
- package/dist/chunks/utils-1.1.8-zmtfqjk6.mjs +0 -1
- package/dist/chunks/vim-1.1.8-f0gtc89f.mjs +0 -1
- package/dist/chunks/watchLoop-1.1.8-rw3vn991.mjs +0 -13
- package/dist/chunks/watcher-1.1.8-jcxwjkvy.mjs +0 -1
- package/dist/chunks/wiki-1.1.8-e7rt9td4.mjs +0 -132
- package/dist/chunks/workflows-1.1.8-crtrj2rc.mjs +0 -1
- package/dist/chunks/worktree-1.1.8-50mfr61r.mjs +0 -1
- package/dist/chunks/worktreeModeEnabled-1.1.8-a7h96pt2.mjs +0 -1
- package/dist/chunks/wrapper-1.1.8-x1j8x6bc.mjs +0 -7
- /package/dist/chunks/{cli-1.1.8-n7gqm17w.mjs → cli-1.1.10-xkq6mdj6.mjs} +0 -0
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import{l9 as P5,n9 as w7}from"./cli-1.1.10-syrhp8d1.mjs";import{p9 as f,q9 as o8}from"./cli-1.1.10-dppcc1yx.mjs";import{A9 as a2,C9 as b7}from"./cli-1.1.10-39crhqg8.mjs";import{$_ as P2,A_ as H1,Dfa as B4,Fba as x2,Fea as c,Ffa as J4,Hga as k,Ifa as N5,Jda as P,Jfa as JZ,Kea as t2,L_ as v2,Lda as j5,Lea as S,O_ as e8,Oda as N,Oea as D,Pga as t0,Uea as e1,Wba as B8,Xda as j0,b$ as ZZ,dda as o1,eea as a4,gea as $Z,gga as l2,hea as S1,hfa as $0,iea as c7,jfa as Z4,jga as G4,kfa as H8,mda as G8,ofa as $4,p_ as f4,pga as s2,q_ as n,r_ as K5,rba as M1,s_ as D0,sba as m7,sga as L,t_ as C4,u_ as s5,vga as J0,z_ as H0}from"./cli-1.1.10-m0pdck7q.mjs";import{Nha as S0,Pha as h4,Zha as T1}from"./cli-1.1.10-dvxkr02c.mjs";import{Aja as f2,Bja as s4,Cja as B0,Eja as H7,Fja as R7,Hja as U,Ija as h0}from"./cli-1.1.10-2wkvf65f.mjs";import{Jja as j,Mja as x5}from"./cli-1.1.10-fz99ag3y.mjs";import{Cka as A7,Mka as z,Oka as m0,Pka as Z0,qka as U2,uka as r8,yka as t5}from"./cli-1.1.10-jn6w68wj.mjs";import{kla as g,mla as x1,rla as j1}from"./cli-1.1.10-e7wxspgz.mjs";import{Bla as v5,Ela as l4,Hla as d,ula as N2,xla as K,zla as u}from"./cli-1.1.10-49bvng33.mjs";import{Apa as W1,Bpa as z1,Coa as y4,Hoa as y0,Ioa as Z5,Npa as z5,apa as C,hna as Y0,hpa as I1,ina as D1,koa as d1,kra as Q0,yoa as r1,ypa as q1,zpa as V1}from"./cli-1.1.10-f00rps59.mjs";import{Jra as h,Kra as n0}from"./cli-1.1.10-j20txpzn.mjs";import{esa as v,wsa as Y5}from"./cli-1.1.10-6m1jpn0s.mjs";import{Vsa as _0,Xsa as c5,Ysa as R,Zsa as r}from"./cli-1.1.10-gmf5w0a4.mjs";function C2(Z){let $=[],J=!1;async function Q(){if(J)return;if($.length===0)return;J=!0;while($.length>0){let{args:Y,resolve:X,reject:q,context:V}=$.shift();try{let x=await Z.apply(V,Y);X(x)}catch(x){q(x)}}if(J=!1,$.length>0)Q()}return function(...Y){return new Promise((X,q)=>{$.push({args:Y,resolve:X,reject:q,context:this}),Q()})}}var u2=()=>{};function p2(Z,$){return Z.find((J)=>J.includes($))??null}async function m2(){let{BedrockClient:Z}=await import("@aws-sdk/client-bedrock"),$=v5(),J=K(process.env.CLAUDE_CODE_SKIP_BEDROCK_AUTH),Q={region:$,...process.env.ANTHROPIC_BEDROCK_BASE_URL&&{endpoint:process.env.ANTHROPIC_BEDROCK_BASE_URL},...await P5(),...J&&{requestHandler:new(await import("./index-1.1.10-yvr6d150.mjs")).NodeHttpHandler,httpAuthSchemes:[{schemeId:"smithy.api#noAuth",identityProvider:()=>async()=>({}),signer:new(await import("./index-1.1.10-abgftsv6.mjs")).NoAuthSigner}],httpAuthSchemeProvider:()=>[{schemeId:"smithy.api#noAuth"}]}};if(!J&&!process.env.AWS_BEARER_TOKEN_BEDROCK){let Y=await z0();if(Y)Q.credentials={accessKeyId:Y.accessKeyId,secretAccessKey:Y.secretAccessKey,sessionToken:Y.sessionToken}}return new Z(Q)}async function aZ(){let{BedrockRuntimeClient:Z}=await import("@aws-sdk/client-bedrock-runtime"),$=v5(),J=K(process.env.CLAUDE_CODE_SKIP_BEDROCK_AUTH),Q={region:$,...process.env.ANTHROPIC_BEDROCK_BASE_URL&&{endpoint:process.env.ANTHROPIC_BEDROCK_BASE_URL},...await P5(),...J&&{requestHandler:new(await import("./index-1.1.10-yvr6d150.mjs")).NodeHttpHandler,httpAuthSchemes:[{schemeId:"smithy.api#noAuth",identityProvider:()=>async()=>({}),signer:new(await import("./index-1.1.10-abgftsv6.mjs")).NoAuthSigner}],httpAuthSchemeProvider:()=>[{schemeId:"smithy.api#noAuth"}]}};if(!J&&!process.env.AWS_BEARER_TOKEN_BEDROCK){let Y=await z0();if(Y)Q.credentials={accessKeyId:Y.accessKeyId,secretAccessKey:Y.secretAccessKey,sessionToken:Y.sessionToken}}return new Z(Q)}function F7(Z){return Z.startsWith("anthropic.")}function L7(Z){if(!Z.startsWith("arn:"))return Z;let $=Z.lastIndexOf("/");if($===-1)return Z;return Z.substring($+1)}function D7(Z){let $=L7(Z);for(let J of K7)if($.startsWith(`${J}.anthropic.`))return J;return}function oZ(Z,$){let J=D7(Z);if(J)return Z.replace(`${J}.`,`${$}.`);if(F7(Z))return`${$}.${Z}`;return Z}var g2,rZ,K7;var c2=R(()=>{n0();o();d();t0();w7();g2=h(async function(){let[Z,{ListInferenceProfilesCommand:$}]=await Promise.all([m2(),import("@aws-sdk/client-bedrock")]),J=[],Q;try{do{let Y=new $({...Q&&{nextToken:Q},typeEquals:"SYSTEM_DEFINED"}),X=await Z.send(Y);if(X.inferenceProfileSummaries)J.push(...X.inferenceProfileSummaries);Q=X.nextToken}while(Q);return J.filter((Y)=>Y.inferenceProfileId?.includes("anthropic")).map((Y)=>Y.inferenceProfileId).filter(Boolean)}catch(Y){throw k(Y),Y}});rZ=h(async function(Z){try{let[$,{GetInferenceProfileCommand:J}]=await Promise.all([m2(),import("@aws-sdk/client-bedrock")]),Q=new J({inferenceProfileIdentifier:Z}),Y=await $.send(Q);if(!Y.models||Y.models.length===0)return null;let X=Y.models[0];if(!X?.modelArn)return null;let q=X.modelArn.lastIndexOf("/");return q>=0?X.modelArn.substring(q+1):X.modelArn}catch($){return k($),null}});K7=["us","eu","apac","global"]});var O5,E5,_5,y5,h5,I5,T5,M5,S5,l0,s0,a0,U0,A5,f5,C5,v0,d2;var u5=R(()=>{O5={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"},E5={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"},_5={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"},y5={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"},h5={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"},I5={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"},T5={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"},M5={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"},S5={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"},l0={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"},s0={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"},a0={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"},U0={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"},A5={firstParty:"claude-fable-5",bedrock:"anthropic.claude-fable-5",vertex:"claude-fable-5",foundry:"claude-fable-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"},f5={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"},C5={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"},v0={haiku35:_5,haiku45:y5,sonnet35:E5,sonnet37:O5,sonnet40:h5,sonnet45:I5,sonnet46:f5,sonnet5:C5,opus40:T5,opus41:M5,opus45:S5,opus46:l0,opus47:s0,opus48:a0,opus5:U0,fable5:A5},d2=Object.fromEntries(Object.entries(v0).map(([Z,$])=>[$.firstParty,Z]))});function i2(){return Object.values(r0)}var r0,g5;var p5=R(()=>{r0={"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}}},g5=Object.fromEntries(Object.values(r0).map((Z)=>[Z.id,Z.name]))});var O0={};c5(O0,{prefetchCopilotModelCatalog:()=>i5,normalizeBareCopilotModelId:()=>d5,getEffectiveCopilotModels:()=>P7,getCopilotDisplayName:()=>O7,getCatalogCopilotMaxOutputTokens:()=>y7,getCatalogCopilotContextWindow:()=>_7,fetchCopilotModelCatalog:()=>o2,copilotModelSupportsAnthropicMessages:()=>E7,_setCopilotCatalogForTesting:()=>h7});function P0(){let Z=L();if(Z?.transport!=="github_copilot")return null;return(Z.baseUrl||"https://api.githubcopilot.com").replace(/\/+$/,"")}function r2(){if(!e)return!1;let Z=P0();return Z!==null&&x0===Z}function N7(){if(n2)return;n2=!0,t2(()=>{let Z=P0();if(Z&&x0!==Z)i5()})}function d5(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 U7(Z){if(!Array.isArray(Z))return null;return Z.filter(($)=>typeof $==="string")}function v7(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??{},X=Y.vision===!0||Boolean(Q.vision),q=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:X,reasoning:q,tool_call:Y.tool_calls===!0,temperature:!0,knowledge:"",release_date:"",last_updated:"",modalities:{input:X?["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:U7(Z.supported_endpoints),pickerEnabled:Z.model_picker_enabled!==!1}}async function o2(){let Z=L();if(Z?.transport!=="github_copilot")return null;if(l2(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(),k7);try{let X=await fetch(`${J}/models`,{method:"GET",headers:{Accept:"application/json",Authorization:`Bearer ${$}`,...a2},signal:Q.signal});if(!X.ok)return null;let q=await X.json();if(!Array.isArray(q?.data))return null;let V=new Set,x=[];for(let G of q.data){let H=v7(G);if(!H||V.has(H.model.id))continue;V.add(H.model.id),x.push(H)}return x.length>0?x:null}catch{return z("[CopilotCatalog] /models fetch failed — using hardcoded registry"),null}finally{clearTimeout(Y)}}function i5(){N7();let Z=P0();if(!Z)return;if(e&&x0!==Z)e=null,x0=null;if(o0){if(m5===Z)return;o0.finally(()=>i5());return}m5=Z,o0=o2().then(($)=>{if($&&P0()===Z)e=$,x0=Z}).finally(()=>{o0=null,m5=null})}function P7(){if(r2()){let Z=e?.filter(($)=>$.pickerEnabled).map(($)=>$.model);if(Z&&Z.length>0)return Z}return i2()}function e0(Z){if(!r2())return;let $=d5(Z);return e.find((J)=>J.model.id===$)}function O7(Z){let $=d5(Z);return e0($)?.model.name??r0[$]?.name}function E7(Z){let $=e0(Z);if(!$||$.supportedEndpoints===null)return null;return $.supportedEndpoints.some((J)=>J.includes("/v1/messages"))}function _7(Z){return e0(Z)?.model.limit.context}function y7(Z){return e0(Z)?.model.limit.output}function h7(Z){e=Z,x0=Z?P0():null}var k7=5000,e=null,x0=null,o0=null,m5=null,n2=!1;var E0=R(()=>{J0();b7();s2();$0();Z0();p5()});function W(){let Z=L();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 z$(){return W()==="firstParty"}function I7(Z){let $=L();if($?.transport!=="github_copilot")return!1;let J=Z?.trim()||$.model?.trim()||"";if(!J.toLowerCase().includes("claude-"))return!1;try{let{copilotModelSupportsAnthropicMessages:Q}=(E0(),_0(O0)),Y=Q(J);if(Y!==null)return Y}catch{}return!0}function x$(Z){let $=L()?.transport??"anthropic";if(!T7.has($))return!1;if($==="github_copilot"&&I7(Z))return!1;return!0}function j$(){return W()}function B$(){let Z=L();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 T7;var i=R(()=>{J0();T7=new Set(["openai_compat","gemini","mistral","github_copilot","codex_responses"])});function $5(Z){let $=Z==="codex"||Z==="github"?"openai":Z,J={};for(let Q of Z1)J[Q]=v0[Q][$];return J}async function M7(){let Z=$5("bedrock"),$;try{$=await g2()}catch(Q){return k(Q),Z}if(!$?.length)return Z;let J={};for(let Q of Z1){let Y=v0[Q].firstParty;J[Q]=p2($,Y)||Z[Q]}return J}function e2(Z){let $=N().modelOverrides;if(!$)return Z;let J={...Z};for(let[Q,Y]of Object.entries($)){let X=d2[Q];if(X&&Y)J[X]=Y}return J}function J5(Z){let $;try{$=N().modelOverrides}catch{return Z}if(!$)return Z;for(let[J,Q]of Object.entries($))if(Q===Z)return J;return Z}function S7(){if(y0()!==null)return;if(W()!=="bedrock"){Z5($5(W()));return}$1()}function B(){let Z=y0();if(Z===null)return S7(),e2($5(W()));return e2(Z)}async function b$(){if(y0()!==null)return;if(W()!=="bedrock"){Z5($5(W()));return}await $1()}var Z1,$1;var Q5=R(()=>{Q0();t0();u2();j0();c2();u5();i();Z1=Object.keys(v0);$1=C2(async()=>{if(y0()!==null)return;try{let Z=await M7();Z5(Z)}catch(Z){k(Z)}})});function N$(Z){return Z}function U$(){return!1}function J1(){return null}function Q1(){return!1}var Y1=()=>{};async function h$(){let $=D().oauthAccount?.accountUuid,J=I0();if(!$||!J)return;let Q=`${U().BASE_API_URL}/api/claude_cli_profile`;try{return(await v.get(Q,{headers:{"x-api-key":J,"anthropic-beta":B0},params:{account_uuid:$},timeout:1e4})).data}catch(Y){k(Y)}}async function G0(Z){let $=`${U().BASE_API_URL}/api/oauth/profile`;try{return(await v.get($,{headers:{Authorization:`Bearer ${Z}`,"Content-Type":"application/json"},timeout:1e4})).data}catch(J){k(J)}}var n5=R(()=>{Y5();h0();o();$0();t0()});import{mkdirSync as f7,writeFileSync as C7}from"fs";function p7(Z,$,J){if(!K(process.env.CLAUDE_CODE_REMOTE))return;try{f7(X5,{recursive:!0,mode:448}),C7(Z,$,{encoding:"utf8",mode:384}),z(`Persisted ${J} to ${Z} for subprocess access`)}catch(Q){z(`Failed to persist ${J} to disk (non-fatal): ${g(Q)}`,{level:"error"})}}function X1(Z,$){try{let Q=t5().readFileSync(Z,{encoding:"utf8"}).trim();if(!Q)return null;return z(`Read ${$} from well-known file ${Z}`),Q}catch(J){if(!x1(J))z(`Failed to read ${$} from ${Z}: ${g(J)}`,{level:"debug"});return null}}function B1({envVar:Z,wellKnownPath:$,label:J,getCached:Q,setCached:Y}){let X=Q();if(X!==void 0)return X;let q=process.env[Z];if(!q){let x=X1($,J);return Y(x),x}let V=parseInt(q,10);if(Number.isNaN(V))return z(`${Z} must be a valid file descriptor number, got: ${q}`,{level:"error"}),Y(null),null;try{let x=t5(),G=process.platform==="darwin"||process.platform==="freebsd"?`/dev/fd/${V}`:`/proc/self/fd/${V}`,H=x.readFileSync(G,{encoding:"utf8"}).trim();if(!H)return z(`File descriptor contained empty ${J}`,{level:"error"}),Y(null),null;return z(`Successfully read ${J} from file descriptor ${V}`),Y(H),p7($,H,J),H}catch(x){z(`Failed to read ${J} from file descriptor ${V}: ${g(x)}`,{level:"error"});let G=X1($,J);return Y(G),G}}function q5(){return B1({envVar:"CLAUDE_CODE_OAUTH_TOKEN_FILE_DESCRIPTOR",wellKnownPath:u7,label:"OAuth token",getCached:q1,setCached:V1})}function l5(){return B1({envVar:"CLAUDE_CODE_API_KEY_FILE_DESCRIPTOR",wellKnownPath:g7,label:"API key",getCached:W1,setCached:z1})}var X5="/home/claude/.claude/remote",u7,g7,u$;var G1=R(()=>{Q0();Z0();d();j1();A7();u7=`${X5}/.oauth_token`,g7=`${X5}/.api_key`,u$=`${X5}/.session_ingress_token`});async function R1(){if(process.platform==="darwin"){let Z=n();if((await H0(`security delete-generic-password -a $USER -s "${Z}"`,{shell:!0,reject:!1})).exitCode!==0)throw Error("Failed to delete keychain entry")}}function V5(Z){return Z.slice(-20)}var w1=R(()=>{H1();s5()});function i$(Z){return Z?.name==="CredentialsProviderError"}function F1(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 a5(){let{STSClient:Z,GetCallerIdentityCommand:$}=await import("@aws-sdk/client-sts");await new Z().send(new $({}))}async function K1(){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 L1=R(()=>{Z0()});class M{static instance=null;status={isAuthenticating:!1,output:[]};changed=Y0();static getInstance(){if(!M.instance)M.instance=new M;return M.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(M.instance)M.instance.changed.clear(),M.instance=null}}var b1=R(()=>{D1()});var W5="claude-code-20250219",k1="interleaved-thinking-2025-05-14",T0="context-1m-2025-08-07",N1="context-management-2025-06-27",U1="structured-outputs-2025-12-15",r5="web-search-2025-03-05",v1="advanced-tool-use-2025-11-20",P1="tool-search-tool-2025-10-19",s$="effort-2025-11-24",a$="task-budgets-2026-03-13",O1="prompt-caching-scope-2026-01-05",r$="extended-cache-ttl-2025-04-11",o$="fast-mode-2026-02-01",E1="redact-thinking-2026-02-12",_1="thinking-token-count-2026-05-13",y1="token-efficient-tools-2026-03-28",e$="afk-mode-2026-01-31",ZJ="advisor-tool-2026-03-01",o5,$J;var e5=R(()=>{o5=new Set(["interleaved-thinking-2025-05-14","context-1m-2025-08-07","tool-search-tool-2025-10-19"]),$J=new Set(["claude-code-20250219","interleaved-thinking-2025-05-14","context-management-2025-06-27"])});function I(){if(W()!=="firstParty")return!1;return!K(process.env.CLAUDE_CODE_DISABLE_FAST_MODE)}function A1(){if(!I())return!1;return i7()===null}function d7(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 · /extra-usage to enable";case"network_error":return"Fast mode unavailable due to network connectivity issues";case"unknown":return"Fast mode is currently unavailable"}}function i7(){if(W()!=="firstParty")return"Fast mode is not available on third-party providers";if(!I())return"Fast mode is not available";let Z=S0("tengu_penguins_off",null);if(Z!==null)return z(`Fast mode unavailable: ${Z}`),Z;if(!M1()&&S0("tengu_marble_sandcastle",!1))return"Fast mode requires the native binary · Install from: https://claude.com/product/claude-code";if(C()&&z5()&&!I1()){if(!P("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(K(process.env.CLAUDE_CODE_SKIP_FAST_MODE_NETWORK_ERRORS))return null}let $=w()!==null?"oauth":"api-key",J=d7(E.reason,$);return z(`Fast mode unavailable: ${J}`),J}return null}function LJ(){let Z=B5(q0());return"opus"+(J2()&&!Z?"[1m]":"")}function DJ(Z){if(!I())return!1;if(!A1())return!1;if(!f1(Z))return!1;let $=N();if($.fastModePerSessionOptIn)return!1;return $.fastMode===!0}function f1(Z){if(!I())return!1;let $=Z??A0(),J=T($).toLowerCase();return J.includes("opus-5")||J.includes("opus-4-7")||J.includes("opus-4-6")}function n7(){if(R0.status==="cooldown"&&Date.now()>=R0.resetAt){if(I()&&!Z2)z("Fast mode cooldown expired, re-enabling fast mode"),Z2=!0,u1.emit();R0={status:"active"}}return R0}function NJ(Z,$){if(!I())return;R0={status:"cooldown",resetAt:Z,reason:$},Z2=!1;let J=Z-Date.now();z(`Fast mode cooldown triggered (${$}), duration ${Math.round(J/1000)}s`),j("tengu_fast_mode_fallback_triggered",{cooldown_duration_ms:J,cooldown_reason:$}),C1.emit(Z,$)}function UJ(){R0={status:"active"}}function vJ(){if(E.status==="disabled")return;E={status:"disabled",reason:"preference"},j5("userSettings",{fastMode:void 0}),S((Z)=>({...Z,penguinModeOrgEnabled:!1})),$2.emit(!1)}function t7(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 · /extra-usage to enable";default:return"Fast mode disabled · extra usage not available"}}function l7(Z){return Z==="org_level_disabled_until"||Z==="out_of_credits"}function OJ(Z){let $=t7(Z);if(z(`Fast mode overage rejection: ${Z??"unknown"} — ${$}`),j("tengu_fast_mode_overage_rejected",{overage_disabled_reason:Z??"unknown"}),!l7(Z))j5("userSettings",{fastMode:void 0}),S((J)=>({...J,penguinModeOrgEnabled:!1}));g1.emit($)}function s7(){return n7().status==="cooldown"}function EJ(Z,$){let J=I()&&A1()&&!!$&&f1(Z);if(J&&s7())return"cooldown";if(J)return"on";return"off"}async function a7(Z){let $=`${U().BASE_API_URL}/api/claude_code_penguin_mode`,J="accessToken"in Z?{Authorization:`Bearer ${Z.accessToken}`,"anthropic-beta":B0}:{"x-api-key":Z.apiKey};return(await v.get($,{headers:J})).data}function yJ(){if(!I())return;if(E.status!=="pending")return;E=D().penguinModeOrgEnabled===!0?{status:"enabled"}:{status:"disabled",reason:"unknown"}}async function hJ(){if(S1())return;if(!I())return;if(M0)return z("Fast mode prefetch in progress, returning in-flight promise"),M0;let Z=I0();if(!(w()?.accessToken&&X0())&&!Z){E=D().penguinModeOrgEnabled===!0?{status:"enabled"}:{status:"disabled",reason:"preference"};return}let J=Date.now();if(J-h1<r7){z("Skipping fast mode prefetch, fetched recently");return}h1=J;let Q=async()=>{let X=w(),q=X?.accessToken&&X0()?{accessToken:X.accessToken}:Z?{apiKey:Z}:null;if(!q)throw Error("No auth available");return a7(q)};async function Y(){try{let X;try{X=await Q()}catch(V){if(v.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 G=w()?.accessToken;if(G)await Q2(G),X=await Q();else throw V}else throw V}let q=E.status!=="pending"?E.status==="enabled":D().penguinModeOrgEnabled;if(E=X.enabled?{status:"enabled"}:{status:"disabled",reason:X.disabled_reason??"preference"},q!==X.enabled){if(!X.enabled)j5("userSettings",{fastMode:void 0});S((V)=>({...V,penguinModeOrgEnabled:X.enabled})),$2.emit(X.enabled)}z(`Org fast mode: ${X.enabled?"enabled":`disabled (${X.disabled_reason??"preference"})`}`)}catch(X){E=D().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)"}: ${X}`,{level:"error"}),j("tengu_org_penguin_mode_fetch_failed",{})}finally{M0=null}}return M0=Y(),M0}var KJ="Opus 5",R0,Z2=!1,C1,u1,bJ,kJ,g1,PJ,E,$2,_J,r7=30000,h1=0,M0=null;var p1=R(()=>{Y5();h0();T1();Q0();x5();o();m7();$0();Z0();d();w0();i();c7();j0();D1();R0={status:"active"},C1=Y0(),u1=Y0(),bJ=C1.subscribe,kJ=u1.subscribe;g1=Y0(),PJ=g1.subscribe;E={status:"pending"},$2=Y0(),_J=$2.subscribe});function Q8(Z){for(let $ of J8)if($.pattern.test(Z))return $.cost;return}function X2(Z){if(I()&&Z)return i1;return t}function q2(Z){if(I()&&Z)return i1;return Y2[F(U0.firstParty)]??t}function Y8(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 X8(Z,$){let J=b(Z);if(J===F(l0.firstParty)||J===F(s0.firstParty)||J===F(a0.firstParty)){let Y=$.speed==="fast";return X2(Y)}if(J===F(U0.firstParty))return q2($.speed==="fast");let Q=Y2[J];if(!Q){let Y=Q8(Z);if(Y)return Y;return q8(Z,J),Y2[b(A0())]??$8}return Q}function q8(Z,$){j("tengu_unknown_model_cost",{model:Z,shortName:$}),d1()}function V8(Z,$){let J=X8(Z,$);return Y8(J,$)}function CJ(Z,$){let J={input_tokens:$.inputTokens,output_tokens:$.outputTokens,cache_read_input_tokens:$.cacheReadInputTokens,cache_creation_input_tokens:$.cacheCreationInputTokens};return V8(Z,J)}function c1(Z){if(Number.isInteger(Z))return`$${Z}`;return`$${Z.toFixed(2)}`}function V2(Z){return`${c1(Z.inputTokens)}/${c1(Z.outputTokens)} per Mtok`}var F0,m1,t,o7,i1,e7,Z8,$8,J8,Y2;var n1=R(()=>{x5();Q0();p1();u5();w0();F0={inputTokens:3,outputTokens:15,promptCacheWriteTokens:3.75,promptCacheWrite1hTokens:6,promptCacheReadTokens:0.3,webSearchRequests:0.01},m1={inputTokens:15,outputTokens:75,promptCacheWriteTokens:18.75,promptCacheWrite1hTokens:30,promptCacheReadTokens:1.5,webSearchRequests:0.01},t={inputTokens:5,outputTokens:25,promptCacheWriteTokens:6.25,promptCacheWrite1hTokens:10,promptCacheReadTokens:0.5,webSearchRequests:0.01},o7={inputTokens:10,outputTokens:50,promptCacheWriteTokens:12.5,promptCacheWrite1hTokens:20,promptCacheReadTokens:1,webSearchRequests:0.01},i1={inputTokens:30,outputTokens:150,promptCacheWriteTokens:37.5,promptCacheWrite1hTokens:60,promptCacheReadTokens:3,webSearchRequests:0.01},e7={inputTokens:0.8,outputTokens:4,promptCacheWriteTokens:1,promptCacheWrite1hTokens:1.6,promptCacheReadTokens:0.08,webSearchRequests:0.01},Z8={inputTokens:1,outputTokens:5,promptCacheWriteTokens:1.25,promptCacheWrite1hTokens:2,promptCacheReadTokens:0.1,webSearchRequests:0.01},$8=t,J8=[{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}}];Y2={[F(_5.firstParty)]:e7,[F(y5.firstParty)]:Z8,[F(E5.firstParty)]:F0,[F(O5.firstParty)]:F0,[F(h5.firstParty)]:F0,[F(I5.firstParty)]:F0,[F(f5.firstParty)]:F0,[F(C5.firstParty)]:F0,[F(T5.firstParty)]:m1,[F(M5.firstParty)]:m1,[F(S5.firstParty)]:t,[F(l0.firstParty)]:t,[F(s0.firstParty)]:t,[F(a0.firstParty)]:t,[F(U0.firstParty)]:t,[F(A5.firstParty)]:o7}});function p(Z){return W8.includes(Z)}function K0(Z){return z8.includes(Z)}var W8,z8;var W2=R(()=>{W8=["sonnet","opus","haiku","fable","best","sonnet[1m]","opus[1m]","opusplan"];z8=["sonnet","opus","haiku"]});function x8(Z,$){if(Z.includes($))return!0;if(p(Z))return T(Z).toLowerCase().includes($);return!1}function t1(Z,$){if(!Z.startsWith($))return!1;return Z.length===$.length||Z[$.length]==="-"}function j8(Z,$){let J=p(Z)?T(Z).toLowerCase():Z;if(t1(J,$))return!0;if(!$.startsWith("claude-")&&t1(J,`claude-${$}`))return!0;return!1}function l1(Z,$){for(let J of $){if(K0(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 s1(Z){let $=N()||{},{availableModels:J}=$;if(!J)return!0;if(J.length===0)return!1;let Y=J5(Z).trim().toLowerCase(),X=J.map((q)=>q.trim().toLowerCase());if(X.includes(Y)){if(!K0(Y)||!l1(Y,X))return!0}for(let q of X)if(K0(q)&&!l1(q,X)&&x8(Y,q))return!0;if(p(Y)){let q=T(Y).toLowerCase();if(X.includes(q))return!0}for(let q of X)if(!K0(q)&&p(q)){if(T(q).toLowerCase()===Y)return!0}for(let q of X)if(!K0(q)&&!p(q)){if(j8(Y,q))return!0}return!1}var a1=R(()=>{j0();W2();w0();Q5()});function G5(Z){if(typeof Z!=="string")return;let $=Z.trim();return $.length>0?$:void 0}function L0(){let Z=L();if(!Z?.model)return;return Z4(Z.model)}function z9(){if(process.env.ANTHROPIC_SMALL_FAST_MODEL)return process.env.ANTHROPIC_SMALL_FAST_MODEL;let Z=L0();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 Q4()}function x9(Z){return Z===B().opus40||Z===B().opus41||Z===B().opus45||Z===B().opus46||Z===B().opus47||Z===B().opus48||Z===B().opus5}function B5(Z){let $=b(Z);return $.includes("opus-5")||$.includes("sonnet-5")||$.includes("fable-5")}function z2(){let Z,$=r1();if($!==void 0)Z=$;else{let J=N()||{},Q=G5(J.model),X=L0()||Q||void 0,q=e1(),V=G5(q.activeModelForProject);if(V){let x=$4()?.id,G=q.activeModelForProjectProfileId;Z=G===void 0||G===x?V:X}else Z=X}if(Z&&!s1(Z))return;return Z}function j9(){let Z=z2();if(Z!==void 0&&Z!==null)return T(Z);return Y4()}function R8(){return q0()}function q0(){if(process.env.ANTHROPIC_DEFAULT_OPUS_MODEL)return process.env.ANTHROPIC_DEFAULT_OPUS_MODEL;let Z=L0();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 B().opus46;return B().opus5}function f0(){if(process.env.ANTHROPIC_DEFAULT_SONNET_MODEL)return process.env.ANTHROPIC_DEFAULT_SONNET_MODEL;let Z=L0();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 B().sonnet45;return B().sonnet5}function Q4(){if(process.env.ANTHROPIC_DEFAULT_HAIKU_MODEL)return process.env.ANTHROPIC_DEFAULT_HAIKU_MODEL;let Z=L0();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 B().haiku45}function B9(Z){let{permissionMode:$,mainLoopModel:J,exceeds200kTokens:Q=!1}=Z;if(z2()==="opusplan"&&$==="plan"&&!Q)return q0();if(z2()==="haiku"&&$==="plan")return f0();return J}function A0(){let Z=L0();if(W()==="github"){let $=N()||{};return G5($.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(H5()||R5()){let $=q0();return $+(J2()&&!B5($)?"[1m]":"")}return f0()}function Y4(){return T(A0())}function F(Z){if(Z=Z.toLowerCase(),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 b(Z){return F(J5(Z))}function w8(Z=!1){if(H5()||R5())return`Opus 5 · Most capable for complex work${Z?F8(!0):""}`;return"Sonnet 5 · Best for everyday tasks"}function G9(Z){if(Z==="opusplan")return"Opus 5 in plan mode, else Sonnet 5";return q4(T(Z))}function H9(Z){if(W()!=="firstParty")return"";let $=V2(X2(Z));return` ·${Z?` (${x2})`:""} ${$}`}function F8(Z){if(W()!=="firstParty")return"";let $=V2(q2(Z));return` ·${Z?` (${x2})`:""} ${$}`}function J2(){if(V0()||G2()||W()!=="firstParty")return!1;if(_()&&A()===null)return!1;return!0}function R9(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(p(Z))return o1(Z);return q4(Z)}function X4(Z){if(W()==="openai"||W()==="gemini"||W()==="codex"||W()==="github"){if(g5[Z])return g5[Z];if(W()==="github"){let{getCopilotDisplayName:$}=(E0(),_0(O0));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 B().fable5:return"Fable 5";case B().opus5:return"Opus 5";case B().opus48:return"Opus 4.8";case B().opus48+"[1m]":return"Opus 4.8 (1M context)";case B().opus47:return"Opus 4.7";case B().opus47+"[1m]":return"Opus 4.7 (1M context)";case B().opus46:return"Opus 4.6";case B().opus46+"[1m]":return"Opus 4.6 (1M context)";case B().opus45:return"Opus 4.5";case B().opus41:return"Opus 4.1";case B().opus40:return"Opus 4";case B().sonnet5:return"Sonnet 5";case B().sonnet46+"[1m]":return"Sonnet 4.6 (1M context)";case B().sonnet46:return"Sonnet 4.6";case B().sonnet45+"[1m]":return"Sonnet 4.5 (1M context)";case B().sonnet45:return"Sonnet 4.5";case B().sonnet40:return"Sonnet 4";case B().sonnet40+"[1m]":return"Sonnet 4 (1M context)";case B().sonnet37:return"Sonnet 3.7";case B().sonnet35:return"Sonnet 3.5";case B().haiku45:return"Haiku 4.5";case B().haiku35:return"Haiku 3.5";default:return null}}function q4(Z){let $=X4(Z);if($)return $;if(Z==="github:copilot")return"GPT-4o";return Z}function w9(Z){let $=X4(Z);if($)return`Claude ${$}`;return`Claude (${Z})`}function T(Z){let $=G5(Z);if(!$)return f0();let J=$.toLowerCase(),Q=l(J),Y=Q?J.replace(/\[1m]$/i,"").trim():J;if(p(Y)){let X=(q)=>Q&&!B5(q)?q+"[1m]":q;switch(Y){case"opusplan":return X(f0());case"sonnet":return X(f0());case"haiku":return X(Q4());case"opus":return X(q0());case"best":return R8();default:}}if(Y==="codexplan")return"gpt-5.5";if(Y==="codexspark")return"gpt-5.3-codex-spark";if(Y==="fable"||Y==="fable5")return B().fable5;if(W()==="firstParty"&&L8(Y)&&D8())return q0()+(Q?"[1m]":"");if(Q)return $.replace(/\[1m\]$/i,"").trim()+"[1m]";return $}function F9(Z,$){if(l(Z)||!l($))return Z;if(j2(T(Z)))return Z+"[1m]";return Z}function L8(Z){return K8.includes(Z)}function D8(){return!K(process.env.CLAUDE_CODE_DISABLE_LEGACY_MODEL_REMAP)}function K9(Z){if(Z===null){if(_())return`Default (${w8()})`;return`Default (${Y4()})`}let $=T(Z);return Z===$?$:`${Z} (${$})`}function L9(Z){if(W()==="foundry")return;let $=Z.toLowerCase().includes("[1m]"),J=b(Z);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 D9(Z){return Z.replace(/\[(1|2)m\]/gi,"")}function b9(Z){let $=b(Z);return $.includes("opus-4-7")||$.includes("opus-4-8")||$.includes("opus-5")||$.includes("fable-5")||$.includes("sonnet-5")}var K8;var w0=R(()=>{Q0();J0();$0();J4();o();B2();d();H8();Q5();n1();j0();i();B8();a1();W2();G8();p5();K8=["claude-opus-4-20250514","claude-opus-4-1-20250805","claude-opus-4-0","claude-opus-4-1"]});function H2(Z){return}async function N9(){}var V4=()=>{};function U8(Z,$={}){if($.isPro??(N8.test(Z)||W4.has(Z)))return!1;if(b8.has(Z))return!0;if(W4.has(Z))return!1;let Q=Z.match(k8);return Q?Number.parseFloat(Q[1])>5.4:!1}function v9(){return w5.filter((Z)=>U8(Z.id,{isPro:Z.isPro}))}var w5,b8,W4,k8,N8,z4,x4;var j4=R(()=>{w5=[{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}],b8=new Set(w5.filter((Z)=>!Z.isPro).map((Z)=>Z.id)),W4=new Set(["gpt-5.5-pro"]),k8=/^gpt-(\d+\.\d+)/,N8=/-pro$/;z4=Object.fromEntries(w5.filter((Z)=>Z.contextInput!==void 0).map((Z)=>[Z.id,Z.contextInput])),x4=Object.fromEntries(w5.filter((Z)=>Z.contextOutput!==void 0).map((Z)=>[Z.id,Z.contextOutput]))});var K4={};c5(K4,{prefetchOpenAICompatibleModels:()=>M8,getDiscoveredContextWindow:()=>v8,discoverOpenAICompatibleModelOptions:()=>F4});function v8(Z){return R4.get(Z)}function P8(){return(L()?.baseUrl??"https://api.openai.com/v1").replace(/\/+$/,"")}function w4(Z){try{let $=new URL(Z).hostname.toLowerCase();return $.endsWith(".openai.azure.com")||$.endsWith(".cognitiveservices.azure.com")}catch{return!1}}function O8(Z){try{return new URL(Z).hostname.toLowerCase().includes("bankr")}catch{return!1}}function E8(Z){let $=L()?.apiKey?.trim();if(!$)return{};if(O8(Z))return{"X-API-Key":$};let J={Authorization:`Bearer ${$}`};if(w4(Z))J["api-key"]=$;return J}function _8(Z){let $=Z.endsWith("/v1")?`${Z}/models`:`${Z}/v1/models`,J=`${Z}/models`,Q=process.env.OPENAI_API_VERSION?.trim(),Y=Q&&w4(Z)?(X)=>{try{let q=new URL(X);return q.searchParams.set("api-version",Q),q.toString()}catch{return X}}:(X)=>X;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 h8(Z){if(Z>=1e6)return`${Z/1e6}M ctx`;if(Z>=1000)return`${Math.round(Z/1000)}K ctx`;return`${Z} ctx`}async function I8(Z,$){let J=new Set;for(let Q of Z)try{let Y=await v.get(Q,{headers:$,timeout:H4}),X=[];for(let q of Y.data?.data??[]){let V=q.id?.trim();if(!V||J.has(V))continue;J.add(V);let x=q.name?.trim()||V,G=q.context_length??null;if(G&&G>0)R4.set(V,G);let H=G?` · ${h8(G)}`:"";X.push({value:V,label:x,description:`${V}${H}`})}if(X.length>0)return X.sort((q,V)=>{let x=String(q.value).split("/")[0]??"",G=String(V.value).split("/")[0]??"",H=x.localeCompare(G);return H!==0?H:String(q.value).localeCompare(String(V.value))}),X}catch{z(`[ModelDiscovery] Failed to fetch OpenAI models from ${Q}`)}return[]}async function T8(Z,$){try{let J=await v.get(Z,{headers:$,timeout:H4}),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 F4(){if(W()!=="openai")return[];let Z=P8(),$=E8(Z),J=await I8(_8(Z),$);if(J.length>0)return J;let Q=y8(Z);if(Q)return T8(Q,$);return[]}function M8(){if(C0)return C0;return C0=(async()=>{if(!G4()?.startsWith("openai:"))return;try{let $=await F4();if($.length>0)B4($)}catch{}finally{C0=null}})(),C0}var H4=5000,R4,C0=null;var L4=R(()=>{Y5();J0();s2();Z0();i();J4();R4=new Map});function b4(Z,$,J){let Q=L()?.model?.trim();if(Q&&Q!==J){let X=`${Q}:${J}`;if($[X]!==void 0)return $[X];if(Z[X]!==void 0)return Z[X]}let Y=D4($,J);if(Y!==void 0)return Y;return D4(Z,J)}function D4(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 k4(Z){try{let{getDiscoveredContextWindow:J}=(L4(),_0(K4)),Q=J(Z);if(Q!==void 0)return Q}catch{}let $=b4(S8,f8,Z);if($!==void 0)return $;try{let{getCatalogCopilotContextWindow:J}=(E0(),_0(O0));return J(Z)}catch{return}}function N4(Z){let $=b4(A8,C8,Z);if($!==void 0)return $;try{let{getCatalogCopilotMaxOutputTokens:J}=(E0(),_0(O0));return J(Z)}catch{return}}var S8,A8,f8,C8;var U4=R(()=>{J0();j4();S8={"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,...z4,"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},A8={"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,...x4,"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.CLAUDE_CODE_OPENAI_CONTEXT_WINDOWS;if(Z){let $=JSON.parse(Z);if(typeof $==="object"&&$!==null)return $}}catch{}return{}})(),C8=(()=>{try{let Z=process.env.CLAUDE_CODE_OPENAI_MAX_OUTPUT_TOKENS;if(Z){let $=JSON.parse(Z);if(typeof $==="object"&&$!==null)return $}}catch{}return{}})()});function v4(){let Z=L()?.transport;return Z==="openai_compat"||Z==="gemini"||Z==="mistral"||Z==="github_copilot"||Z==="codex_responses"}function V0(){return K(process.env.CLAUDE_CODE_DISABLE_1M_CONTEXT)}function l(Z){if(V0())return!1;return/\[1m\]/i.test(Z)}function j2(Z){if(V0())return!1;let $=b(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 n9(Z,$){if(l(Z))return 1e6;if(v4()){let Q=k4(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/utils/model/openaiContextWindows.ts for accurate compaction."),u8}let J=H2(Z);if(J?.max_input_tokens&&J.max_input_tokens>=1e5){if(J.max_input_tokens>R2&&V0())return R2;return J.max_input_tokens}if(!V0()&&(b(Z).includes("fable-5")||b(Z).includes("sonnet-5")||b(Z).includes("opus-5")))return 1e6;if($?.includes(T0)&&j2(Z))return 1e6;if(m8(Z))return 1e6;return R2}function m8(Z){if(V0())return!1;if(l(Z))return!1;if(!b(Z).includes("sonnet-4-6"))return!1;return D().clientDataCache?.coral_reef_sonnet==="true"}function t9(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 l9(Z){let $,J;if(v4()){let X=N4(Z);if(X!==void 0)return{default:X,upperLimit:X}}let Q=b(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 $=g8,J=p8;let Y=H2(Z);if(Y?.max_tokens&&Y.max_tokens>=4096)J=Y.max_tokens,$=Math.min($,J);return{default:$,upperLimit:J}}var R2=200000,u8,c9=20000,g8=32000,p8=64000,d9=8000,i9=64000;var B2=R(()=>{e5();J0();$0();d();w0();V4();U4();u8=(()=>{let Z=parseInt(process.env.CLAUDE_CODE_OPENAI_FALLBACK_CONTEXT_WINDOW??"",10);return!isNaN(Z)&&Z>0?Z:128000})()});var c8,P4;var O4=R(()=>{n0();i();c8=[{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"}],P4=h((Z,$)=>{if(W()==="firstParty")return;let J=Z.toLowerCase();for(let Q of c8){let Y=process.env[Q.modelEnvVar],X=process.env[Q.capabilitiesEnvVar];if(!Y||X===void 0)continue;if(J!==Y.toLowerCase())continue;return X.toLowerCase().split(",").map((q)=>q.trim()).includes($)}return},(Z,$)=>`${Z.toLowerCase()}:${$}`)});function d8(Z){let $=[],J=[];for(let Q of Z)if(I4.includes(Q))$.push(Q);else J.push(Q);return{allowed:$,disallowed:J}}function B3(Z){if(!Z||Z.length===0)return;if(_()){console.warn("Warning: Custom betas are only available for API key users. Ignoring provided betas.");return}let{allowed:$,disallowed:J}=d8(Z);for(let Q of J)console.warn(`Warning: Beta header '${Q}' is not allowed. Only the following betas are supported: ${I4.join(", ")}`);return $.length>0?$:void 0}function E4(Z){let $=P4(Z,"interleaved_thinking");if($!==void 0)return $;let J=b(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 i8(Z){let $=b(Z);return $.includes("claude-opus-4")||$.includes("claude-opus-5")||$.includes("claude-sonnet-5")||$.includes("claude-sonnet-4")||$.includes("claude-haiku-4")}function n8(Z){let $=b(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 $=b(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 G3(Z){let $=b(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 H3(){let Z=W();if(Z==="vertex"||Z==="bedrock")return P1;return v1}function _4(){return(W()==="firstParty"||W()==="foundry")&&!K(process.env.CLAUDE_CODE_DISABLE_EXPERIMENTAL_BETAS)}function R3(){if(K(process.env.CLAUDIN_DISABLE_GLOBAL_CACHE_SCOPE))return!1;return W()==="firstParty"&&!K(process.env.CLAUDE_CODE_DISABLE_EXPERIMENTAL_BETAS)}function w3(Z,$){let J=[...T4(Z)];if($?.isAgenticQuery){if(!J.includes(W5))J.push(W5)}let Q=y4();if(!Q||Q.length===0)return J;return[...J,...Q.filter((Y)=>!J.includes(Y))]}function M4(){w2.cache?.clear?.(),T4.cache?.clear?.(),l8.cache?.clear?.()}var I4,w2,T4,l8;var S4=R(()=>{n0();T1();Q0();e5();h0();o();B2();d();w0();O4();i();j0();I4=[T0];w2=h((Z)=>{let $=[],J=b(Z).includes("haiku"),Q=W(),Y=_4();if(!J)$.push(W5);if(_())$.push(B0);if(l(Z))$.push(T0);if(!K(process.env.DISABLE_INTERLEAVED_THINKING)&&E4(Z))$.push(k1);if(Y&&E4(Z)&&!C()&&N().showThinkingSummaries!==!0)$.push(E1),$.push(_1);let X=n8(Z);if(_4()&&X)$.push(N1);let q=h4("tengu_tool_pear"),V=!q&&(K(process.env.CLAUDE_CODE_JSON_TOOL_USE)||S0("tengu_amber_json_tools",!1));if(Y&&t8(Z)&&q)$.push(U1);if(Y&&V)$.push(y1);if(Q==="vertex"&&i8(Z))$.push(r5);if(Q==="foundry")$.push(r5);if(Y)$.push(O1);if(process.env.ANTHROPIC_BETAS)$.push(...process.env.ANTHROPIC_BETAS.split(",").map((x)=>x.trim()).filter(Boolean));return $}),T4=h((Z)=>{let $=w2(Z);if(W()==="bedrock")return $.filter((J)=>!o5.has(J));return $}),l8=h((Z)=>{return w2(Z).filter((J)=>o5.has(J))})});import{execFile as s8}from"child_process";function A4(Z){return new Promise(($)=>{s8("security",["find-generic-password","-a",K5(),"-w","-s",Z],{encoding:"utf-8",timeout:a8},(J,Q)=>{$({stdout:J?null:Q?.trim()||null,timedOut:Boolean(J&&"killed"in J&&J.killed)})})})}function b3(){if(process.platform!=="darwin"||F5||u())return;let Z=A4(n(f4)),$=A4(n());F5=Promise.all([Z,$]).then(([J,Q])=>{if(!J.timedOut)C4(J.stdout);if(!Q.timedOut)F2={stdout:Q.stdout}})}async function k3(){if(F5)await F5}function u4(){return F2}function K2(){F2=null}var a8=1e4,F2=null,F5=null;var g4=R(()=>{d();s5()});function L2(Z,$,J){return new Promise((Q,Y)=>{if($?.aborted){if(J?.throwOnAbort||J?.abortError)Y(J.abortError?.()??Error("aborted"));else Q();return}let X=setTimeout((V,x,G)=>{V?.removeEventListener("abort",x),G()},Z,$,q,Q);function q(){if(clearTimeout(X),J?.throwOnAbort||J?.abortError)Y(J.abortError?.()??Error("aborted"));else Q()}if($?.addEventListener("abort",q,{once:!0}),J?.unref)X.unref()})}var p4=()=>{};function v3(){return m4}function c4(){m4.clear()}var m4;var d4=R(()=>{m4=new Map});var gZ={};c5(gZ,{validateForceLoginOrg:()=>uZ,saveOAuthTokensIfNeeded:()=>V7,saveApiKey:()=>S2,removeApiKey:()=>PZ,refreshGcpCredentialsIfNeeded:()=>M2,refreshGcpAuth:()=>X7,refreshAwsAuth:()=>Q7,refreshAndGetAwsCredentials:()=>z0,prefetchGcpCredentialsIfSafe:()=>kZ,prefetchAwsCredentialsAndBedRockInfoIfSafe:()=>NZ,prefetchApiKeyFromApiKeyHelperIfSafe:()=>jZ,isUsing3PServices:()=>k5,isTeamSubscriber:()=>IZ,isTeamPremiumSubscriber:()=>R5,isProSubscriber:()=>G2,isOverageProvisioningAllowed:()=>yZ,isOtelHeadersHelperFromProjectOrLocalSettings:()=>j7,isMaxSubscriber:()=>H5,isGcpAuthRefreshFromProjectSettings:()=>T2,isEnterpriseSubscriber:()=>TZ,isCustomApiKeyApproved:()=>vZ,isConsumerSubscriber:()=>fZ,isClaudeAISubscriber:()=>_,isAwsCredentialExportFromProjectSettings:()=>h2,isAwsAuthRefreshFromProjectSettings:()=>_2,isAnthropicAuthEnabled:()=>N0,is1PApiCustomer:()=>_Z,hasProfileScope:()=>X0,hasOpusAccess:()=>hZ,hasAnthropicApiKeyAuth:()=>VZ,handleOAuth401Error:()=>Q2,getSubscriptionType:()=>A,getSubscriptionName:()=>z7,getRateLimitTier:()=>W7,getOtelHeadersFromHelper:()=>SZ,getOauthAccountInfo:()=>b5,getConfiguredApiKeyHelper:()=>s,getClaudeAIOAuthTokensAsync:()=>p0,getClaudeAIOAuthTokens:()=>w,getAuthTokenSource:()=>O2,getApiKeyHelperElapsedMs:()=>WZ,getApiKeyFromConfigOrMacOSKeychain:()=>U5,getApiKeyFromApiKeyHelperCached:()=>b2,getApiKeyFromApiKeyHelper:()=>J7,getAnthropicApiKeyWithSource:()=>c0,getAnthropicApiKey:()=>I0,getAccountInformation:()=>CZ,clearOAuthTokenCache:()=>A2,clearGcpCredentialsCache:()=>bZ,clearAwsCredentialsCache:()=>wZ,clearApiKeyHelperCache:()=>xZ,checkGcpCredentialsValid:()=>Y7,checkAndRefreshOAuthTokenIfNeeded:()=>d0,calculateApiKeyHelperTTL:()=>$7});import{exec as e4}from"child_process";import{mkdir as QZ,stat as YZ}from"fs/promises";import{join as XZ}from"path";function D5(){return K(process.env.CLAUDE_CODE_REMOTE)||process.env.CLAUDE_CODE_ENTRYPOINT==="claude-desktop"}function N0(){if(u())return!1;if(process.env.ANTHROPIC_UNIX_SOCKET)return!!process.env.CLAUDE_CODE_OAUTH_TOKEN;let Z=k5(),J=(N()||{}).apiKeyHelper,Q=process.env.ANTHROPIC_AUTH_TOKEN||J||process.env.CLAUDE_CODE_API_KEY_FILE_DESCRIPTOR,Y;try{({source:Y}=c0({skipRetrievingKeyFromApiKeyHelper:!0}))}catch{Y="none"}let X=Y==="ANTHROPIC_API_KEY"||Y==="apiKeyHelper";return!(Z||Q&&!D5()||X&&!D5())}function O2(){if(u()){if(s())return{source:"apiKeyHelper",hasToken:!0};return{source:"none",hasToken:!1}}if(process.env.ANTHROPIC_AUTH_TOKEN&&!D5())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(s()&&!D5())return{source:"apiKeyHelper",hasToken:!0};let J=w();if(k0(J?.scopes)&&J?.accessToken)return{source:"claude.ai",hasToken:!0};return{source:"none",hasToken:!1}}function I0(){let{key:Z}=c0();return Z}function VZ(){try{let{key:Z,source:$}=c0({skipRetrievingKeyFromApiKeyHelper:!0});return Z!==null&&$!=="none"}catch{return!1}}function c0(Z={}){let $=(()=>{let q=L();if(q?.transport!=="anthropic")return;let V=q.apiKey?.trim();return V&&V.length>0?V:void 0})();if(u()){if($)return{key:$,source:"ANTHROPIC_API_KEY"};if(s())return{key:Z.skipRetrievingKeyFromApiKeyHelper?null:b2(),source:"apiKeyHelper"};return{key:null,source:"none"}}let J=l4()?void 0:$;if(z5()&&J)return{key:J,source:"ANTHROPIC_API_KEY"};if(K(process.env.CI)){let q=l5();if(q)return{key:q,source:"ANTHROPIC_API_KEY"};if(!k5()&&!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&&!k5())return{key:J,source:"ANTHROPIC_API_KEY"};return{key:null,source:"none"}}if(J&&D().customApiKeyResponses?.approved?.includes(V5(J)))return{key:J,source:"ANTHROPIC_API_KEY"};let Q=l5();if(Q)return{key:Q,source:"ANTHROPIC_API_KEY"};if(s()){if(Z.skipRetrievingKeyFromApiKeyHelper)return{key:null,source:"apiKeyHelper"};return{key:b2(),source:"apiKeyHelper"}}let X=U5();if(X)return X;return{key:null,source:"none"}}function s(){if(u())return P("flagSettings")?.apiKeyHelper;return(N()||{}).apiKeyHelper}function Z7(){let Z=s();if(!Z)return!1;let $=P("projectSettings"),J=P("localSettings");return $?.apiKeyHelper===Z||J?.apiKeyHelper===Z}function E2(){return(N()||{}).awsAuthRefresh}function _2(){let Z=E2();if(!Z)return!1;let $=P("projectSettings"),J=P("localSettings");return $?.awsAuthRefresh===Z||J?.awsAuthRefresh===Z}function y2(){return(N()||{}).awsCredentialExport}function h2(){let Z=y2();if(!Z)return!1;let $=P("projectSettings"),J=P("localSettings");return $?.awsCredentialExport===Z||J?.awsCredentialExport===Z}function $7(){let Z=process.env.CLAUDE_CODE_API_KEY_HELPER_TTL_MS;if(Z){let $=parseInt(Z,10);if(!Number.isNaN($)&&$>=0)return $;z(`Found CLAUDE_CODE_API_KEY_HELPER_TTL_MS env var, but it was not a valid number. Got ${Z}`,{level:"error"})}return qZ}function WZ(){let Z=m?.startedAt;return Z?Date.now()-Z:0}async function J7(Z){if(!s())return null;let $=$7();if(y){if(Date.now()-y.timestamp<$)return y.value;if(!m)m={promise:i4(Z,!1,b0),startedAt:null};return y.value}if(m)return m.promise;return m={promise:i4(Z,!0,b0),startedAt:Date.now()},m.promise}async function i4(Z,$,J){try{let Q=await zZ(Z);if(J!==b0)return Q;if(Q!==null)y={value:Q,timestamp:Date.now()};return Q}catch(Q){if(J!==b0)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===b0)m=null}}async function zZ(Z){let $=s();if(!$)return null;if(Z7()){if(!c()&&!Z){let X=Error("Security: apiKeyHelper executed before workspace trust is confirmed. If you see this message, post in https://github.com/claudio-labs/claudin/issues.");return m0("apiKeyHelper invoked before trust check",X),j("tengu_apiKeyHelper_missing_trust11",{}),null}}let J=await H0($,{shell:!0,timeout:600000,reject:!1});if(J.failed){let Y=J.timedOut?"timed out":`exited ${J.exitCode}`,X=J.stderr?.trim();throw Error(X?`${Y}: ${X}`:Y)}let Q=J.stdout?.trim();if(!Q)throw Error("did not return a value");return Q}function b2(){return y?.value??null}function xZ(){b0++,y=null,m=null}function jZ(Z){if(Z7()&&!c())return;J7(Z)}async function GZ(){let Z=E2();if(!Z)return!1;if(_2()){if(!c()&&!C()){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 m0("awsAuthRefresh invoked before trust check",J),j("tengu_awsAuthRefresh_missing_trust",{}),!1}}try{return z("Fetching AWS caller identity for AWS auth refresh command"),await a5(),z("Fetched AWS caller identity, skipping AWS auth refresh command"),!1}catch{return Q7(Z)}}function Q7(Z){z("Running AWS auth refresh command");let $=M.getInstance();return $.startAuthentication(),new Promise((J)=>{let Q=e4(Z,{timeout:HZ});Q.stdout.on("data",(Y)=>{let X=Y.toString().trim();if(X)$.addOutput(X),z(X,{level:"debug"})}),Q.stderr.on("data",(Y)=>{let X=Y.toString().trim();if(X)$.setError(X),z(X,{level:"error"})}),Q.on("close",(Y,X)=>{if(Y===0)z("AWS auth refresh completed successfully"),$.endAuthentication(!0),J(!0);else{let V=X==="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 RZ(){let Z=y2();if(!Z)return null;if(h2()){if(!c()&&!C()){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 m0("awsCredentialExport invoked before trust check",J),j("tengu_awsCredentialExport_missing_trust",{}),null}}try{return z("Fetching AWS caller identity for credential export command"),await a5(),z("Fetched AWS caller identity, skipping AWS credential export command"),null}catch{try{z("Running AWS credential export command");let $=await H0(Z,{shell:!0,reject:!1});if($.exitCode!==0||!$.stdout)throw Error("awsCredentialExport did not return a valid value");let J=U2($.stdout.trim());if(!F1(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 wZ(){z0.cache.clear()}function I2(){return(N()||{}).gcpAuthRefresh}function T2(){let Z=I2();if(!Z)return!1;let $=P("projectSettings"),J=P("localSettings");return $?.gcpAuthRefresh===Z||J?.gcpAuthRefresh===Z}async function Y7(){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=L2(FZ).then(()=>{throw new B7("GCP credentials check timed out")});return await Promise.race([J,Q]),!0}catch{return!1}}async function LZ(){let Z=I2();if(!Z)return!1;if(T2()){if(!c()&&!C()){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 m0("gcpAuthRefresh invoked before trust check",J),j("tengu_gcpAuthRefresh_missing_trust",{}),!1}}try{if(z("Checking GCP credentials validity for auth refresh"),await Y7())return z("GCP credentials are valid, skipping auth refresh command"),!1}catch{}return X7(Z)}function X7(Z){z("Running GCP auth refresh command");let $=M.getInstance();return $.startAuthentication(),new Promise((J)=>{let Q=e4(Z,{timeout:DZ});Q.stdout.on("data",(Y)=>{let X=Y.toString().trim();if(X)$.addOutput(X),z(X,{level:"debug"})}),Q.stderr.on("data",(Y)=>{let X=Y.toString().trim();if(X)$.setError(X),z(X,{level:"error"})}),Q.on("close",(Y,X)=>{if(Y===0)z("GCP auth refresh completed successfully"),$.endAuthentication(!0),J(!0);else{let V=X==="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 bZ(){M2.cache.clear()}function kZ(){if(!I2())return;if(T2()){if(!c()&&!C())return}M2()}function NZ(){let Z=E2(),$=y2();if(!Z&&!$)return;if(_2()||h2()){if(!c()&&!C())return}z0(),B()}function UZ(Z){return/^[a-zA-Z0-9-_]+$/.test(Z)}async function S2(Z){if(!UZ(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=n(),Y=K5(),X=Buffer.from(Z,"utf-8").toString("hex"),q=`add-generic-password -U -a "${Y}" -s "${Q}" -X "${X}"
|
|
2
|
+
`;await H0("security",["-i"],{input:q,reject:!1}),j("tengu_api_key_saved_to_keychain",{}),$=!0}catch(Q){k(Q),j("tengu_api_key_keychain_error",{error:g(Q)}),j("tengu_api_key_saved_to_config",{})}else j("tengu_api_key_saved_to_config",{});let J=V5(Z);S((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??[]}}}),U5.cache.clear?.(),K2()}function vZ(Z){let $=D(),J=V5(Z);return $.customApiKeyResponses?.approved?.includes(J)??!1}async function PZ(){await q7(),S((Z)=>({...Z,primaryApiKey:void 0})),U5.cache.clear?.(),K2()}async function q7(){try{await R1()}catch(Z){k(Z)}}function V7(Z){if(!k0(Z.scopes))return j("tengu_oauth_tokens_not_claude_ai",{}),{success:!0};if(!Z.refreshToken||!Z.expiresAt)return j("tengu_oauth_tokens_inference_only",{}),{success:!0};let $=N5(),J=$.name;try{let Q=$.read()||{},Y=Q.claudeAiOauth;Q.claudeAiOauth={accessToken:Z.accessToken,refreshToken:Z.refreshToken,expiresAt:Z.expiresAt,scopes:Z.scopes,subscriptionType:Z.subscriptionType??Y?.subscriptionType??null,rateLimitTier:Z.rateLimitTier??Y?.rateLimitTier??null};let X=$.update(Q);if(X.success)j("tengu_oauth_tokens_saved",{storageBackend:J});else j("tengu_oauth_tokens_save_failed",{storageBackend:J});return w.cache?.clear?.(),M4(),c4(),X}catch(Q){return k(Q),j("tengu_oauth_tokens_save_exception",{storageBackend:J,error:g(Q)}),{success:!1,warning:"Failed to save OAuth tokens"}}}function A2(){w.cache?.clear?.(),D0()}async function OZ(){try{let{mtimeMs:Z}=await YZ(XZ(N2(),".credentials.json"));if(Z!==n4)n4=Z,A2()}catch{w.cache?.clear?.()}}function Q2(Z){let $=D2.get(Z);if($)return $;let J=EZ(Z).finally(()=>{D2.delete(Z)});return D2.set(Z,J),J}async function EZ(Z){A2();let $=await p0();if(!$?.refreshToken)return!1;if($.accessToken!==Z)return j("tengu_oauth_401_recovered_from_keychain",{}),!0;return d0(0,!0)}async function p0(){if(u())return null;if(process.env.CLAUDE_CODE_OAUTH_TOKEN||q5())return w();try{let J=(await N5().readAsync())?.claudeAiOauth;if(!J?.accessToken)return null;return J}catch(Z){return k(Z),null}}function d0(Z=0,$=!1){if(Z===0&&!$){if(u0)return u0;return u0=k2(Z,$).finally(()=>{u0=null}),u0}return k2(Z,$)}async function k2(Z,$){await OZ();let Q=w();if(!$){if(!Q?.refreshToken||!g0(Q.expiresAt))return!1}if(!Q?.refreshToken)return!1;if(!k0(Q.scopes))return!1;w.cache?.clear?.(),D0();let Y=await p0();if(!Y?.refreshToken||!g0(Y.expiresAt))return!1;let X=N2();await QZ(X,{recursive:!0});let q;try{j("tengu_oauth_token_refresh_lock_acquiring",{}),q=await a4(X),j("tengu_oauth_token_refresh_lock_acquired",{})}catch(V){if(V.code==="ELOCKED"){if(Z<5)return j("tengu_oauth_token_refresh_lock_retry",{retryCount:Z+1}),await L2(1000+Math.random()*1000),k2(Z+1,$);return j("tengu_oauth_token_refresh_lock_retry_limit_reached",{maxRetries:5}),!1}return k(V),j("tengu_oauth_token_refresh_lock_error",{error:g(V)}),!1}try{w.cache?.clear?.(),D0();let V=await p0();if(!V?.refreshToken||!g0(V.expiresAt))return j("tengu_oauth_token_refresh_race_resolved",{}),!1;j("tengu_oauth_token_refresh_starting",{});let x=await r4(V.refreshToken,{scopes:k0(V.scopes)?void 0:V.scopes});return V7(x),w.cache?.clear?.(),D0(),!0}catch(V){k(V),w.cache?.clear?.(),D0();let x=await p0();if(x&&!g0(x.expiresAt))return j("tengu_oauth_token_refresh_race_recovered",{}),!0;return!1}finally{j("tengu_oauth_token_refresh_lock_releasing",{}),await q(),j("tengu_oauth_token_refresh_lock_released",{})}}function _(){if(!N0())return!1;return k0(w()?.scopes)}function X0(){return w()?.scopes?.includes(s4)??!1}function _Z(){{let Z=L()?.transport;if(Z==="bedrock"||Z==="vertex"||Z==="foundry")return!1}if(_())return!1;return!0}function b5(){return N0()?D().oauthAccount:void 0}function yZ(){let $=b5()?.billingType;if(!_()||!$)return!1;if($!=="stripe_subscription"&&$!=="stripe_subscription_contracted"&&$!=="apple_subscription"&&$!=="google_play_subscription")return!1;return!0}function hZ(){let Z=A();return Z==="max"||Z==="enterprise"||Z==="team"||Z==="pro"||Z===null}function A(){if(Q1())return J1();if(!N0())return null;let Z=w();if(!Z)return null;return Z.subscriptionType??null}function H5(){return A()==="max"}function IZ(){return A()==="team"}function R5(){return A()==="team"&&W7()==="default_claude_max_5x"}function TZ(){return A()==="enterprise"}function G2(){return A()==="pro"}function W7(){if(!N0())return null;let Z=w();if(!Z)return null;return Z.rateLimitTier??null}function z7(){switch(A()){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 k5(){let Z=L()?.transport;if(!Z)return!1;return Z!=="anthropic"}function x7(){return(N()||{}).otelHeadersHelper}function j7(){let Z=x7();if(!Z)return!1;let $=P("projectSettings"),J=P("localSettings");return $?.otelHeadersHelper===Z||J?.otelHeadersHelper===Z}function SZ(){let Z=x7();if(!Z)return{};let $=parseInt(process.env.CLAUDE_CODE_OTEL_HEADERS_HELPER_DEBOUNCE_MS||MZ.toString());if(L5&&Date.now()-t4<$)return L5;if(j7()){if(!c())return{}}try{let J=v2(Z,{timeout:30000})?.toString().trim();if(!J)throw Error("otelHeadersHelper did not return a valid value");let Q=U2(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,X]of Object.entries(Q))if(typeof X!=="string")throw Error(`otelHeadersHelper returned non-string value for key "${Y}": ${typeof X}`);return L5=Q,t4=Date.now(),L5}catch(J){throw k(Error(`Error getting OpenTelemetry headers from otelHeadersHelper (in settings): ${g(J)}`)),J}}function AZ(Z){return Z==="max"||Z==="pro"}function fZ(){let Z=A();return _()&&Z!==null&&AZ(Z)}function CZ(){if(W()!=="firstParty")return;let{source:$}=O2(),J={};if($==="CLAUDE_CODE_OAUTH_TOKEN"||$==="CLAUDE_CODE_OAUTH_TOKEN_FILE_DESCRIPTOR")J.tokenSource=$;else if(_())J.subscription=z7();else J.tokenSource=$;let{key:Q,source:Y}=c0();if(Q)J.apiKeySource=Y;if($==="claude.ai"||Y==="/login managed key"){let q=b5()?.organizationName;if(q)J.organization=q}let X=b5()?.emailAddress;if(($==="claude.ai"||Y==="/login managed key")&&X)J.email=X;return J}async function uZ(){if(process.env.ANTHROPIC_UNIX_SOCKET)return{valid:!0};if(!N0())return{valid:!0};let Z=P("policySettings")?.forceLoginOrgUUID;if(!Z)return{valid:!0};await d0();let $=w();if(!$)return{valid:!0};let{source:J}=O2(),Q=J==="CLAUDE_CODE_OAUTH_TOKEN"||J==="CLAUDE_CODE_OAUTH_TOKEN_FILE_DESCRIPTOR",Y=await G0($.accessToken);if(!Y)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 X=Y.organization.uuid;if(X===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: ${X}
|
|
11
|
+
|
|
12
|
+
Remove the environment variable or obtain a token for the correct organization.`};return{valid:!1,message:`Your authentication token belongs to organization ${X},
|
|
13
|
+
but this machine requires organization ${Z}.
|
|
14
|
+
|
|
15
|
+
Please log in with the correct organization: claude auth login`}}var qZ=300000,y=null,m=null,b0=0,BZ=3600000,HZ=180000,z0,FZ=5000,KZ=3600000,DZ=180000,M2,U5,w,n4=0,D2,u0=null,L5=null,t4=0,MZ=1740000,B7;var o=R(()=>{o8();H1();n0();h0();x5();Q5();i();Q0();J0();Y1();o4();n5();G1();w1();L1();b1();S4();$0();Z0();d();j1();e8();$Z();t0();ZZ();JZ();g4();s5();j0();p4();r8();d4();z0=P2(async()=>{let Z=await GZ(),$=await RZ();if(Z||$)await K1();return $},BZ);M2=P2(async()=>{return await LZ()},KZ);U5=h(()=>{if(u())return null;if(process.platform==="darwin"){let $=u4();if($){if($.stdout)return{key:$.stdout,source:"/login managed key"}}else{let J=n();try{let Q=v2(`security find-generic-password -a $USER -w -s "${J}"`);if(Q)return{key:Q,source:"/login managed key"}}catch(Q){k(Q)}}}let Z=D();if(!Z.primaryApiKey)return null;return{key:Z.primaryApiKey,source:"/login managed key"}});w=h(()=>{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=N5().read()?.claudeAiOauth;if(!Q?.accessToken)return null;return Q}catch($){return k($),null}});D2=new Map;B7=class B7 extends Error{}});function k0(Z){return Boolean(Z?.includes(f2))}function pZ(Z){return Z?.split(" ").filter(Boolean)??[]}function RQ({codeChallenge:Z,state:$,port:J,isManual:Q,loginWithClaudeAi:Y,inferenceOnly:X,orgUUID:q,loginHint:V,loginMethod:x}){let G=Y?U().CLAUDE_AI_AUTHORIZE_URL:U().CONSOLE_AUTHORIZE_URL,H=new URL(G);H.searchParams.append("code","true"),H.searchParams.append("client_id",U().CLIENT_ID),H.searchParams.append("response_type","code"),H.searchParams.append("redirect_uri",Q?U().MANUAL_REDIRECT_URL:`http://localhost:${J}/callback`);let W0=X?[f2]:R7;if(H.searchParams.append("scope",W0.join(" ")),H.searchParams.append("code_challenge",Z),H.searchParams.append("code_challenge_method","S256"),H.searchParams.append("state",$),q)H.searchParams.append("orgUUID",q);if(V)H.searchParams.append("login_hint",V);if(x)H.searchParams.append("login_method",x);return H.toString()}async function wQ(Z,$,J,Q,Y=!1,X){let q={grant_type:"authorization_code",code:Z,redirect_uri:Y?U().MANUAL_REDIRECT_URL:`http://localhost:${Q}/callback`,client_id:U().CLIENT_ID,code_verifier:J,state:$};if(X!==void 0)q.expires_in=X;let V=await v.post(U().TOKEN_URL,q,{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 j("tengu_oauth_token_exchange_success",{}),V.data}async function r4(Z,{scopes:$}={}){let J={grant_type:"refresh_token",refresh_token:Z,client_id:U().CLIENT_ID,scope:(($?.length)?$:H7).join(" ")};try{let Q=await v.post(U().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:X,refresh_token:q=Z,expires_in:V}=Y,x=Date.now()+V*1000,G=pZ(Y.scope);j("tengu_oauth_token_refresh_success",{});let H=D(),W0=w(),O=H.oauthAccount?.billingType!==void 0&&H.oauthAccount?.accountCreatedAt!==void 0&&H.oauthAccount?.subscriptionCreatedAt!==void 0&&W0?.subscriptionType!=null&&W0?.rateLimitTier!=null?null:await mZ(X);if(O&&H.oauthAccount){let a={};if(O.displayName!==void 0)a.displayName=O.displayName;if(typeof O.hasExtraUsageEnabled==="boolean")a.hasExtraUsageEnabled=O.hasExtraUsageEnabled;if(O.billingType!==null)a.billingType=O.billingType;if(O.accountCreatedAt!==void 0)a.accountCreatedAt=O.accountCreatedAt;if(O.subscriptionCreatedAt!==void 0)a.subscriptionCreatedAt=O.subscriptionCreatedAt;if(Object.keys(a).length>0)S((i0)=>({...i0,oauthAccount:i0.oauthAccount?{...i0.oauthAccount,...a}:i0.oauthAccount}))}return{accessToken:X,refreshToken:q,expiresAt:x,scopes:G,subscriptionType:O?.subscriptionType??W0?.subscriptionType??null,rateLimitTier:O?.rateLimitTier??W0?.rateLimitTier??null,profile:O?.rawProfile,tokenAccount:Y.account?{uuid:Y.account.uuid,emailAddress:Y.account.email_address,organizationUuid:Y.organization?.uuid}:void 0}}catch(Q){let Y=v.isAxiosError(Q)&&Q.response?.data?JSON.stringify(Q.response.data):void 0;throw j("tengu_oauth_token_refresh_failure",{error:Q.message,...Y&&{responseBody:Y}}),Q}}async function FQ(Z){let $=await v.get(U().ROLES_URL,{headers:{Authorization:`Bearer ${Z}`}});if($.status!==200)throw Error(`Failed to fetch user roles: ${$.statusText}`);let J=$.data;if(!D().oauthAccount)throw Error("OAuth account information not found in config");S((Y)=>({...Y,oauthAccount:Y.oauthAccount?{...Y.oauthAccount,organizationRole:J.organization_role,workspaceRole:J.workspace_role,organizationName:J.organization_name}:Y.oauthAccount})),j("tengu_oauth_roles_stored",{org_role:J.organization_role})}async function KQ(Z){try{let $=await v.post(U().API_KEY_URL,null,{headers:{Authorization:`Bearer ${Z}`}}),J=$.data?.raw_key;if(J)return await S2(J),j("tengu_oauth_api_key",{status:"success",statusCode:$.status}),J;return null}catch($){throw j("tengu_oauth_api_key",{status:"failure",error:$ instanceof Error?$.message:String($)}),$}}function g0(Z){if(Z===null)return!1;let $=300000;return Date.now()+$>=Z}async function mZ(Z){let $=await G0(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 j("tengu_oauth_profile_fetch_success",{}),{...Y,rawProfile:$}}async function LQ(){let $=D().oauthAccount?.organizationUuid;if($)return $;let J=w()?.accessToken;if(J===void 0||!X0())return null;let Y=(await G0(J))?.organization?.uuid;if(!Y)return null;return Y}async function DQ(){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(!D().oauthAccount)G7({accountUuid:Z,emailAddress:$,organizationUuid:J})}await d0();let Y=D();if(Y.oauthAccount&&Y.oauthAccount.billingType!==void 0&&Y.oauthAccount.accountCreatedAt!==void 0&&Y.oauthAccount.subscriptionCreatedAt!==void 0||!_()||!X0())return!1;let X=w();if(X?.accessToken){let q=await G0(X.accessToken);if(q){if(Q)z("OAuth profile fetch succeeded, overriding env var account info",{level:"info"});return G7({accountUuid:q.account.uuid,emailAddress:q.account.email,organizationUuid:q.organization.uuid,displayName:q.account.display_name||void 0,hasExtraUsageEnabled:q.organization.has_extra_usage_enabled??!1,billingType:q.organization.billing_type??void 0,accountCreatedAt:q.account.created_at,subscriptionCreatedAt:q.organization.subscription_created_at??void 0}),!0}}return!1}function G7({accountUuid:Z,emailAddress:$,organizationUuid:J,displayName:Q,hasExtraUsageEnabled:Y,billingType:X,accountCreatedAt:q,subscriptionCreatedAt:V}){let x={accountUuid:Z,emailAddress:$,organizationUuid:J,hasExtraUsageEnabled:Y,billingType:X,accountCreatedAt:q,subscriptionCreatedAt:V};if(Q)x.displayName=Q;S((G)=>{if(G.oauthAccount?.accountUuid===x.accountUuid&&G.oauthAccount?.emailAddress===x.emailAddress&&G.oauthAccount?.organizationUuid===x.organizationUuid&&G.oauthAccount?.displayName===x.displayName&&G.oauthAccount?.hasExtraUsageEnabled===x.hasExtraUsageEnabled&&G.oauthAccount?.billingType===x.billingType&&G.oauthAccount?.accountCreatedAt===x.accountCreatedAt&&G.oauthAccount?.subscriptionCreatedAt===x.subscriptionCreatedAt)return G;return{...G,oauthAccount:x}})}var o4=R(()=>{Y5();x5();h0();o();$0();Z0();n5()});
|
|
16
|
+
export{b3 as M4,k3 as N4,g4 as O4,C2 as P4,u2 as Q4,aZ as R4,rZ as S4,F7 as T4,D7 as U4,oZ as V4,c2 as W4,l0 as X4,U0 as Y4,v0 as Z4,u5 as _4,i5 as $4,P7 as a5,E0 as b5,W as c5,z$ as d5,I7 as e5,x$ as f5,j$ as g5,B$ as h5,i as i5,B as j5,b$ as k5,Q5 as l5,N$ as m5,U$ as n5,Y1 as o5,h$ as p5,G0 as q5,n5 as r5,k0 as s5,pZ as t5,RQ as u5,wQ as v5,r4 as w5,FQ as x5,KQ as y5,g0 as z5,mZ as A5,LQ as B5,DQ as C5,G7 as D5,o4 as E5,u$ as F5,p7 as G5,X1 as H5,G1 as I5,V5 as J5,w1 as K5,i$ as L5,L1 as M5,M as N5,b1 as O5,T0 as P5,N1 as Q5,U1 as R5,s$ as S5,a$ as T5,O1 as U5,r$ as V5,o$ as W5,E1 as X5,e$ as Y5,ZJ as Z5,$J as _5,e5 as $5,I as a6,A1 as b6,i7 as c6,KJ as d6,LJ as e6,DJ as f6,f1 as g6,bJ as h6,kJ as i6,n7 as j6,NJ as k6,UJ as l6,vJ as m6,PJ as n6,OJ as o6,s7 as p6,EJ as q6,_J as r6,yJ as s6,hJ as t6,p1 as u6,F0 as v6,o7 as w6,e7 as x6,Z8 as y6,X2 as z6,V8 as A6,CJ as B6,V2 as C6,n1 as D6,W8 as E6,W2 as F6,s1 as G6,a1 as H6,z9 as I6,x9 as J6,B5 as K6,z2 as L6,j9 as M6,R8 as N6,q0 as O6,f0 as P6,Q4 as Q6,B9 as R6,A0 as S6,Y4 as T6,F as U6,b as V6,w8 as W6,G9 as X6,H9 as Y6,F8 as Z6,J2 as _6,R9 as $6,X4 as a7,q4 as b7,w9 as c7,T as d7,F9 as e7,D8 as f7,K9 as g7,L9 as h7,D9 as i7,b9 as j7,w0 as k7,N9 as l7,V4 as m7,v9 as n7,j4 as o7,F4 as p7,M8 as q7,L4 as r7,c9 as s7,d9 as t7,i9 as u7,V0 as v7,l as w7,n9 as x7,m8 as y7,t9 as z7,l9 as A7,B2 as B7,P4 as C7,O4 as D7,B3 as E7,t8 as F7,G3 as G7,H3 as H7,_4 as I7,R3 as J7,T4 as K7,l8 as L7,w3 as M7,M4 as N7,S4 as O7,L2 as P7,p4 as Q7,v3 as R7,c4 as S7,d4 as T7,N0 as U7,O2 as V7,I0 as W7,VZ as X7,c0 as Y7,s as Z7,_2 as _7,h2 as $7,$7 as a8,WZ as b8,J7 as c8,b2 as d8,xZ as e8,jZ as f8,Q7 as g8,z0 as h8,wZ as i8,T2 as j8,Y7 as k8,X7 as l8,M2 as m8,bZ as n8,kZ as o8,NZ as p8,U5 as q8,S2 as r8,vZ as s8,PZ as t8,V7 as u8,w as v8,A2 as w8,Q2 as x8,p0 as y8,d0 as z8,_ as A8,X0 as B8,_Z as C8,b5 as D8,yZ as E8,hZ as F8,A as G8,H5 as H8,IZ as I8,R5 as J8,TZ as K8,G2 as L8,W7 as M8,z7 as N8,k5 as O8,j7 as P8,SZ as Q8,fZ as R8,CZ as S8,uZ as T8,gZ as U8,o as V8};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{Ysa as j}from"./cli-1.1.10-gmf5w0a4.mjs";function G(){return`claude-swarm-${process.pid}`}var q="team-lead",A="claude-swarm",B="swarm-view",D="tmux",F="claude-hidden",H="CLAUDE_CODE_TEAMMATE_COMMAND";var k=()=>{};
|
|
2
|
+
export{q as x3,A as y3,B as z3,D as A3,F as B3,G as C3,H as D3,k as E3};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import{ES as jJ,FS as $V,Mo as IJ,Oo as pJ,Yi as cJ,dL as DJ,eL as BJ,fL as lJ,fS as UJ}from"./cli-1.1.10-hk2c91wp.mjs";import{Hga as G,K$ as mJ,N_ as p,O_ as fJ,Oda as m,Oea as YJ,Pga as dJ,T$ as qJ,X$ as gJ,Xda as uJ,h$ as WJ,hfa as hJ,m$ as l}from"./cli-1.1.10-m0pdck7q.mjs";import{Via as U,Xia as PJ}from"./cli-1.1.10-3pch2a3h.mjs";import{Jja as f,Mja as SJ}from"./cli-1.1.10-fz99ag3y.mjs";import{Cka as bJ,Mka as Q,Pka as kJ,yka as VJ}from"./cli-1.1.10-jn6w68wj.mjs";import{kla as JJ,rla as yJ}from"./cli-1.1.10-e7wxspgz.mjs";import{hna as AJ,ina as zJ}from"./cli-1.1.10-f00rps59.mjs";import{Usa as wJ,Ysa as _J}from"./cli-1.1.10-gmf5w0a4.mjs";class c{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 $=0;$<J.length;$++){let _=J[$];if(_.length>0&&!Z.has(_))Z.add(_),V.push(_);if(($&255)===255&&performance.now()-Y>4)await b(),Y=performance.now()}this.resetArrays(V),Y=performance.now();let X=!0;for(let $=0;$<V.length;$++)if(this.indexPath($),($&255)===255&&performance.now()-Y>4){if(this.readyCount=$+1,X)W(),X=!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=LJ(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 X=W.charCodeAt(Y);if(X>=97&&X<=122)V|=1<<X-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),X=Array(Y),$=0;for(let M=0;M<Y;M++){let B=V.charAt(M);X[M]=B;let E=B.charCodeAt(0);if(E>=97&&E<=122)$|=1<<E-97}let _=Y*24+8+32,H=[],q=-1/0,{paths:I,lowerPaths:A,charBits:F,pathLens:j,readyCount:g}=this;J:for(let M=0;M<g;M++){if((F[M]&$)!==$)continue;let B=Z?I[M]:A[M],E=B.indexOf(X[0]);if(E===-1)continue;y[0]=E;let C=0,u=0,h=E;for(let N=1;N<Y;N++){if(E=B.indexOf(X[N],h+1),E===-1)continue J;y[N]=E;let K=E-h-1;if(K===0)u+=4;else C+=3+K*1;h=E}if(H.length===W&&_+u-C<=q)continue;let S=I[M],vJ=j[M],T=Y*16+u-C;T+=HJ(S,y[0],!0);for(let N=1;N<Y;N++)T+=HJ(S,y[N],!1);if(T+=Math.max(0,32-(vJ>>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 d=N+K>>1;if(H[d].fuzzScore<T)N=d+1;else K=d}H.splice(N,0,{path:S,fuzzScore:T}),H.shift(),q=H[0].fuzzScore}}H.sort((M,B)=>B.fuzzScore-M.fuzzScore);let D=H.length,w=Math.max(D,1),z=Array(D);for(let M=0;M<D;M++){let B=H[M].path,E=M/w,C=B.includes("test")?Math.min(E*1.05,1):E;z[M]={path:B,score:C}}return z}}function HJ(J,W,Z){if(W===0)return Z?8:0;let V=J.charCodeAt(W-1);if(RJ(V))return 8;if(GJ(V)&&CJ(J.charCodeAt(W)))return 6;return 0}function RJ(J){return J===47||J===92||J===45||J===95||J===46||J===32}function GJ(J){return J>=97&&J<=122}function CJ(J){return J>=65&&J<=90}function b(){return new Promise((J)=>setImmediate(J))}function LJ(J,W){let Z=new Set;for(let Y of J){let X=Y.length;for(let _=0;_<Y.length;_++){let H=Y.charCodeAt(_);if(H===47||H===92){X=_;break}}let $=Y.slice(0,X);if($.length>0){if(Z.add($),Z.size>=W)break}}let V=Array.from(Z);return V.sort((Y,X)=>{let $=Y.length-X.length;if($!==0)return $;return Y<X?-1:Y>X?1:0}),V.slice(0,W).map((Y)=>({path:Y,score:0}))}var QJ=4,y;var MJ=_J(()=>{y=new Int32Array(64)});import{statSync as nJ}from"fs";import*as O from"path";function n(){if(!x)x=new c;return x}function vV(){x=null,v=null,R++,k=null,L=[],$J=[],XJ=[],ZJ.clear(),s=null,o=null,a=0,i=null,r=null,P=null}function FJ(J){let W=J.length,Z=Math.max(1,Math.floor(W/500)),V=-2128831035;for(let Y=0;Y<W;Y+=Z){let X=J[Y];for(let $=0;$<X.length;$++)V=(V^X.charCodeAt($))*16777619|0;V=V*16777619|0}if(W>0){let Y=J[W-1];for(let X=0;X<Y.length;X++)V=(V^Y.charCodeAt(X))*16777619|0}return`${W}:${(V>>>0).toString(16)}`}function sJ(){let J=WJ(U());if(!J)return null;try{return nJ(O.join(J,".git","index")).mtimeMs}catch{return null}}function OJ(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 oJ(J){if(J.length===0)return;if(!x||L.length===0)return;let W=await KJ(J),Z=[...L,...$J,...XJ,...J,...W],V=FJ(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 EJ(J,W){let Z=`${J}:${W}`;if(o===Z)return s;let V=VJ(),Y=[".ignore",".rgignore"],X=[...new Set([J,W])],$=xJ.default(),_=!1,H=X.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;$.add(F),_=!0,Q(`[FileIndex] loaded ignore patterns from ${H[A]}`)}let I=_?$:null;return s=I,o=Z,I}async function aJ(J,W){let Z=Date.now();Q("[FileIndex] getFilesUsingGit called");let V=WJ(U());if(!V)return Q("[FileIndex] not a git repo, returning null"),null;try{let Y=U(),X=Date.now(),$=await p(l(),["-c","core.quotepath=false","ls-files","--recurse-submodules"],{timeout:5000,abortSignal:J,cwd:V});if(Q(`[FileIndex] git ls-files (tracked) took ${Date.now()-X}ms`),$.code!==0)return Q(`[FileIndex] git ls-files failed (code=${$.code}, stderr=${$.stderr}), falling back to ripgrep`),null;let _=$.stdout.trim().split(`
|
|
2
|
+
`).filter(Boolean),H=OJ(_,V,Y),q=await EJ(V,Y);if(q){let A=H.length;H=q.filter(H),Q(`[FileIndex] applied ignore patterns: ${A} -> ${H.length} files`)}L=H;let I=Date.now()-Z;if(Q(`[FileIndex] git ls-files: ${H.length} tracked files in ${I}ms`),f("tengu_file_suggestions_git_ls_files",{file_count:H.length,tracked_count:H.length,untracked_count:0,duration_ms:I}),!k){let A=W?["-c","core.quotepath=false","ls-files","--others","--exclude-standard"]:["-c","core.quotepath=false","ls-files","--others"],F=R;k=p(l(),A,{timeout:1e4,cwd:V}).then(async(j)=>{if(F!==R)return;if(j.code===0){let g=j.stdout.trim().split(`
|
|
3
|
+
`).filter(Boolean),D=OJ(g,V,Y),w=await EJ(V,Y);if(w&&D.length>0){let z=D.length;D=w.filter(D),Q(`[FileIndex] applied ignore patterns to untracked: ${z} -> ${D.length} files`)}Q(`[FileIndex] background untracked fetch: ${D.length} files`),oJ(D)}}).catch((j)=>{Q(`[FileIndex] background untracked fetch failed: ${j}`)}).finally(()=>{k=null})}return H}catch(Y){return Q(`[FileIndex] git ls-files error: ${JJ(Y)}`),null}}async function KJ(J){let W=new Set,Z=performance.now();for(let V=0;V<J.length;V++)if(iJ(J,V,V+1,W),(V&255)===255&&performance.now()-Z>QJ)await b(),Z=performance.now();return[...W].map((V)=>V+O.sep)}function iJ(J,W,Z,V){for(let Y=W;Y<Z;Y++){let X=O.dirname(J[Y]);while(X!=="."&&!V.has(X)){let $=O.dirname(X);if($===X)break;V.add(X),X=$}}}async function rJ(J){return(await Promise.all(DJ.map((Z)=>BJ(Z,J)))).flatMap((Z)=>Z.map((V)=>V.filePath))}async function tJ(J,W){Q(`[FileIndex] getProjectFiles called, respectGitignore=${W}`);let Z=await aJ(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"),TJ(J,W)}async function TJ(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=U(),$=(await IJ(V,Y,J)).map((H)=>O.relative(Y,H)),_=Date.now()-Z;return Q(`[FileIndex] ripgrep: ${$.length} files in ${_}ms`),f("tengu_file_suggestions_ripgrep",{file_count:$.length,duration_ms:_}),$}async function RV(){let J=AbortSignal.timeout(1e4),W=m(),Z=YJ(),V=W.respectGitignore??Z.respectGitignore??!0;try{return await TJ(J,V)}catch(Y){return G(Y),[]}}async function eJ(){let J=AbortSignal.timeout(1e4),W=n();try{let Z=m(),V=YJ(),Y=Z.respectGitignore??V.respectGitignore??!0,X=U(),[$,_]=await Promise.all([tJ(J,Y),rJ(X)]);$J=_;let H=[...$,..._],q=await KJ(H);XJ=q;let I=[...q,...H],A=FJ(I);if(A!==r)await W.loadFromFileListAsync(I).done,r=A,P=null;else Q("[FileIndex] skipped index rebuild — tracked paths unchanged")}catch(Z){G(Z)}return W}function JV(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 GV(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=JV(Z,Y),Z==="")return""}return Z}function t(J,W){return{id:`file-${J}`,displayText:J,metadata:W!==void 0?{score:W}:void 0}}function VV(J,W){return J.search(W,e).map((V)=>t(V.path,V.score))}function NJ(){if(v)return;let J=sJ();if(x){if(!(J!==null&&J!==i)&&Date.now()-a<WV)return}let W=R,Z=Date.now();n(),v=eJ().then((V)=>{if(W!==R)return V;return v=null,ZJ.emit(),i=J,a=Date.now(),Q(`[FileIndex] cache refresh completed in ${Date.now()-Z}ms`),V}).catch((V)=>{if(Q(`[FileIndex] Cache refresh failed: ${JJ(V)}`),G(V),W===R)v=null;return n()})}async function YV(){let J=VJ(),W=U();try{let Z=await J.readdir(W);return Z.sort((V,Y)=>{let X=V.isDirectory(),$=Y.isDirectory();if(X!==$)return X?-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),X=O.relative(W,Y);return V.isDirectory()?X+O.sep:X})}catch(Z){return G(Z),[]}}async function CV(J,W=!1){if(!J&&!W)return[];if(m().fileSuggestion?.type==="command"){let V={...UJ(),query:J};return(await jJ(V)).slice(0,e).map(t)}if(J===""||J==="."||J==="./"){let V=await YV();return NJ(),V.slice(0,e).map(t)}let Z=Date.now();try{let V=v!==null;NJ();let Y=J,X="."+O.sep;if(J.startsWith(X))Y=J.substring(2);if(Y.startsWith("~"))Y=qJ(Y);let $=x?VV(x,Y):[],_=Date.now()-Z;return Q(`[FileIndex] generateFileSuggestions: ${$.length} results in ${_}ms (${V?"partial":"full"} index)`),f("tengu_file_suggestions_query",{duration_ms:_,cache_hit:!V,result_count:$.length,query_length:J.length}),$}catch(V){return G(V),[]}}function LV(J,W,Z,V,Y,X){let $=typeof J==="string"?J:J.displayText,_=W.substring(0,V)+$+W.substring(V+Z.length);Y(_);let H=V+$.length;X(H)}var xJ,x=null,v=null,ZJ,jV,R=0,k=null,L,$J,XJ,s=null,o=null,a=0,i=null,r=null,P=null,e=100,WV=5000;var ZV=_J(()=>{lJ();MJ();SJ();hJ();PJ();kJ();yJ();fJ();bJ();mJ();$V();dJ();gJ();pJ();uJ();zJ();xJ=wJ(cJ(),1);ZJ=AJ(),jV=ZJ.subscribe,L=[],$J=[],XJ=[]});
|
|
4
|
+
export{c as ci,MJ as di,jV as ei,vV as fi,RV as gi,GV as hi,NJ as ii,CV as ji,LV as ki,ZV as li};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import{Gg as d,Hg as Vq}from"./cli-1.1.10-ppft1w3p.mjs";import{HT as Oq,JS as a,LS as yq,vT as l}from"./cli-1.1.10-hk2c91wp.mjs";import{BZ as Zq,F1 as Gq,_0 as T,a1 as R,u1 as $}from"./cli-1.1.10-msg7sda2.mjs";import{A2 as e,v2 as t,x2 as v}from"./cli-1.1.10-pkyv2v8k.mjs";import{i4 as P,j4 as N,k4 as S}from"./cli-1.1.10-t8n5jx0z.mjs";import{l4 as Yq}from"./cli-1.1.10-c67v6p50.mjs";import{K4 as u,L4 as Aq}from"./cli-1.1.10-453rs0bh.mjs";import{M_ as G,O_ as o,Raa as s,uaa as j}from"./cli-1.1.10-m0pdck7q.mjs";import{Via as w,Xia as r}from"./cli-1.1.10-3pch2a3h.mjs";import{Mka as L,Pka as n}from"./cli-1.1.10-jn6w68wj.mjs";import{kla as c,rla as Xq}from"./cli-1.1.10-e7wxspgz.mjs";import{kra as i,lna as f}from"./cli-1.1.10-f00rps59.mjs";import{Usa as I,Ysa as h}from"./cli-1.1.10-gmf5w0a4.mjs";import{readdir as qq}from"fs/promises";import{join as zq}from"path";function _(){let H=[process.argv[1]||"",process.execPath||""],q=["/build-ant/","/build-ant-native/","/build-external/","/build-external-native/"];return H.some((z)=>q.some((Q)=>z.includes(Q)))}function Jq(H){let q=_()?"claude-dev":"claude",z=new URL(`${q}://resume`);return z.searchParams.set("session",H),z.searchParams.set("cwd",w()),z.toString()}async function g(){if(_())return!0;let H=process.platform;if(H==="darwin")return j("/Applications/Claude.app");else if(H==="linux"){let{code:q,stdout:z}=await G("xdg-mime",["query","default","x-scheme-handler/claude"]);return q===0&&z.trim().length>0}else if(H==="win32"){let{code:q}=await G("reg",["query","HKEY_CLASSES_ROOT\\claude","/ve"]);return q===0}return!1}async function Qq(){let H=process.platform;if(H==="darwin"){let{code:q,stdout:z}=await G("defaults",["read","/Applications/Claude.app/Contents/Info.plist","CFBundleShortVersionString"]);if(q!==0)return null;let Q=z.trim();return Q.length>0?Q:null}else if(H==="win32"){let q=process.env.LOCALAPPDATA;if(!q)return null;let z=zq(q,"AnthropicClaude");try{let Y=(await qq(z)).filter((W)=>W.startsWith("app-")).map((W)=>W.slice(4)).filter((W)=>K.coerce(W)!==null).sort((W,B)=>{let V=K.coerce(W),y=K.coerce(B);return V.compare(y)});return Y.length>0?Y[Y.length-1]:null}catch{return null}}return null}async function x(){if(!await g())return{status:"not-installed"};let q;try{q=await Qq()}catch{return{status:"ready",version:"unknown"}}if(!q)return{status:"ready",version:"unknown"};let z=K.coerce(q);if(!z||!v(z.version,Hq))return{status:"version-too-old",version:q};return{status:"ready",version:q}}async function Wq(H){let q=process.platform;if(L(`Opening deep link: ${H}`),q==="darwin"){if(_()){let{code:Q}=await G("osascript",["-e",`tell application "Electron" to open location "${H}"`]);return Q===0}let{code:z}=await G("open",[H]);return z===0}else if(q==="linux"){let{code:z}=await G("xdg-open",[H]);return z===0}else if(q==="win32"){let{code:z}=await G("cmd",["/c","start","",H]);return z===0}return!1}async function m(){let H=f();if(!await g())return{success:!1,error:"Claude Desktop is not installed. Install it from https://claude.ai/download"};let z=Jq(H);if(!await Wq(z))return{success:!1,error:"Failed to open Claude Desktop. Please try opening it manually.",deepLinkUrl:z};return{success:!0,deepLinkUrl:z}}var K,Hq="1.1.2396";var k=h(()=>{i();r();n();o();s();e();K=I(t(),1)});function Kq(){switch(process.platform){case"win32":return"https://claude.ai/api/desktop/win32/x64/exe/latest/redirect";default:return"https://claude.ai/api/desktop/darwin/universal/dmg/latest/redirect"}}function mq(H){let q=p.c(20),{onDone:z}=H,[Q,Y]=A.useState("checking"),[W,B]=A.useState(null),[V,y]=A.useState(""),O;if(q[0]!==W||q[1]!==z||q[2]!==Q)O=(J)=>{if(Q==="error"){z(W??"Unknown error",{display:"system"});return}if(Q==="prompt-download"){if(J==="y"||J==="Y")u(Kq()).catch(Rq),z(`Starting download. Re-run /desktop once you’ve installed the app.
|
|
2
|
+
Learn more at ${D}`,{display:"system"});else if(J==="n"||J==="N")z(`The desktop app is required for /desktop. Learn more at ${D}`,{display:"system"})}},q[0]=W,q[1]=z,q[2]=Q,q[3]=O;else O=q[3];$(O);let E,F;if(q[4]!==z)E=()=>{(async function(){Y("checking");let X=await x();if(X.status==="not-installed"){y("Claude Desktop is not installed."),Y("prompt-download");return}if(X.status==="version-too-old"){y(`Claude Desktop needs to be updated (found v${X.version}, need v1.1.2396+).`),Y("prompt-download");return}Y("flushing"),await l(),Y("opening");let U=await m();if(!U.success){B(U.error??"Failed to open Claude Desktop"),Y("error");return}Y("success"),setTimeout(Pq,500,z)})().catch((Z)=>{B(c(Z)),Y("error")})},F=[z],q[4]=z,q[5]=E,q[6]=F;else E=q[5],F=q[6];if(A.useEffect(E,F),Q==="error"){let J;if(q[7]!==W)J=N(R,{color:"error",children:["Error: ",W]}),q[7]=W,q[8]=J;else J=q[8];let Z;if(q[9]===Symbol.for("react.memo_cache_sentinel"))Z=P(R,{dimColor:!0,children:"Press any key to continue…"}),q[9]=Z;else Z=q[9];let X;if(q[10]!==J)X=N(T,{flexDirection:"column",paddingX:2,children:[J,Z]}),q[10]=J,q[11]=X;else X=q[11];return X}if(Q==="prompt-download"){let J;if(q[12]!==V)J=P(R,{children:V}),q[12]=V,q[13]=J;else J=q[13];let Z;if(q[14]===Symbol.for("react.memo_cache_sentinel"))Z=P(R,{children:"Download now? (y/n)"}),q[14]=Z;else Z=q[14];let X;if(q[15]!==J)X=N(T,{flexDirection:"column",paddingX:2,children:[J,Z]}),q[15]=J,q[16]=X;else X=q[16];return X}let C;if(q[17]===Symbol.for("react.memo_cache_sentinel"))C={checking:"Checking for Claude Desktop…",flushing:"Saving session…",opening:"Opening Claude Desktop…",success:"Opening in Claude Desktop…"},q[17]=C;else C=q[17];let b=C[Q],M;if(q[18]!==b)M=P(d,{message:b}),q[18]=b,q[19]=M;else M=q[19];return M}async function Pq(H){H("Session transferred to Claude Desktop",{display:"system"}),await a(0,"other")}function Rq(){}var p,A,D="https://clau.de/desktop";var Bq=h(()=>{Gq();Aq();k();Xq();yq();Oq();Vq();S();p=I(Zq(),1),A=I(Yq(),1)});
|
|
3
|
+
export{mq as Eg,Bq as Fg};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import{tg as $Z,ug as uZ,vg as fz}from"./cli-1.1.10-0j2bz40j.mjs";import{Eh as HJ,Fh as Vz}from"./cli-1.1.10-v4mtt7fd.mjs";import{Ph as GJ,Qh as Bz}from"./cli-1.1.10-hs44pkht.mjs";import{$R as oQ,$x as $Q,HA as e0,IA as gJ,In as zQ,JA as mJ,Jn as $z,KA as nJ,Kk as mZ,LA as yz,Lk as FX,Ly as pQ,MR as nQ,My as PX,OT as VQ,QR as iQ,Qn as RQ,RR as lQ,RT as KQ,Rn as wX,TR as nZ,Ty as dQ,UR as rQ,UT as fZ,Uy as DX,WR as g0,XR as aQ,ZR as eJ,_R as ZQ,aS as tQ,ak as _Z,bk as TQ,cS as OZ,cy as AX,dU as BQ,eo as XQ,go as xZ,ht as NJ,jK as gQ,jk as IJ,kk as SJ,lt as Uz,qo as WQ,rk as pJ,ry as UQ,sy as jQ,ty as uQ,uA as SZ,uo as uz,uy as fQ,vA as hZ,wA as TZ,xA as dJ,yA as cQ,yy as MQ,zA as cJ,zy as EQ}from"./cli-1.1.10-hk2c91wp.mjs";import{_U as xQ,hV as OX}from"./cli-1.1.10-0v8v9gwe.mjs";import{GY as YJ,KY as qz,LY as UZ,MY as NX,lY as FZ,mY as qJ}from"./cli-1.1.10-qk19t6fd.mjs";import{$0 as DQ,B0 as jZ,BZ as u0,D0 as Jz,F1 as p0,T0 as hQ,U0 as KX,ZZ as c0,_0 as b,a1 as g,b1 as JX,c0 as vZ,rZ as WJ,sZ as Wz}from"./cli-1.1.10-msg7sda2.mjs";import{h4 as f0,i4 as B,j4 as $,k4 as F0}from"./cli-1.1.10-t8n5jx0z.mjs";import{l4 as S0}from"./cli-1.1.10-c67v6p50.mjs";import{J4 as VJ,K4 as BJ,L4 as Yz}from"./cli-1.1.10-453rs0bh.mjs";import{A8 as QQ,P7 as PQ,Q7 as ZX,V7 as JZ,V8 as xz,Y7 as QZ,q8 as JQ}from"./cli-1.1.10-yzpymdrc.mjs";import{p9 as gZ,q9 as GX}from"./cli-1.1.10-dppcc1yx.mjs";import{Aba as SQ,Oea as DZ,Wba as LX,eda as LZ,hfa as HQ,mda as XJ,v_ as v0,w_ as zJ}from"./cli-1.1.10-m0pdck7q.mjs";import{Uga as PZ,Vga as TJ,dha as ZZ,kha as hz}from"./cli-1.1.10-kdvf271d.mjs";import{Via as RZ,Xia as Rz,gja as KZ,lja as wZ,mja as NZ,yja as Dz}from"./cli-1.1.10-3pch2a3h.mjs";import{Mka as m0,Pka as ez}from"./cli-1.1.10-jn6w68wj.mjs";import{Hla as HX,xla as IQ}from"./cli-1.1.10-49bvng33.mjs";import{Hqa as kQ,kra as BX}from"./cli-1.1.10-f00rps59.mjs";import{Usa as N0,Ysa as L0}from"./cli-1.1.10-gmf5w0a4.mjs";function MZ(){if($0!==null)clearTimeout($0),$0=null;bZ=Date.now();for(let J of BZ)J()}function Qz(){if($0!==null)return;let J=Date.now()-bZ;if(J>=jZ){MZ();return}$0=setTimeout(MZ,jZ-J)}function iZ(){return EZ.useSyncExternalStore(s0.subscribe,s0.getSnapshot)}function TX(){return EZ.useSyncExternalStore(s0.subscribe,s0.getPresenceSnapshot)}var EZ,x0=null,BZ,$0=null,bZ=0,s0;var lZ=L0(()=>{Jz();EZ=N0(S0(),1),BZ=new Set;s0={update(J){let Z=x0;if(x0=J(Z),x0===Z)return;if(Z===null!==(x0===null))MZ();else Qz()},clear(){s0.update(()=>null)},read(){return x0},subscribe(J){return BZ.add(J),()=>{BZ.delete(J)}},getSnapshot(){return x0},getPresenceSnapshot(){return x0!==null},resetForTesting(){if($0!==null)clearTimeout($0),$0=null;x0=null,bZ=0,BZ.clear()}}});function sZ(J){let Z=HZ.c(6),{children:Q}=J,[z,X]=K0.useState(null),[W,q]=K0.useState(null),V;if(Z[0]!==Q||Z[1]!==W)V=B(oZ.Provider,{value:W,children:Q}),Z[0]=Q,Z[1]=W,Z[2]=V;else V=Z[2];let Y;if(Z[3]!==z||Z[4]!==V)Y=B(aZ.Provider,{value:X,children:B(tZ.Provider,{value:q,children:B(rZ.Provider,{value:z,children:V})})}),Z[3]=z,Z[4]=V,Z[5]=Y;else Y=Z[5];return Y}function eZ(){return K0.useContext(rZ)}function ZJ(){return K0.useContext(oZ)}function xX(J){let Z=HZ.c(8),Q=K0.useContext(aZ),z,X,W,q;if(Z[0]!==J||Z[1]!==Q)z=()=>{if(!Q)return;Q(J)},X=[Q,J],Z[0]=J,Z[1]=Q,Z[2]=z,Z[3]=X;else z=Z[2],X=Z[3];if(Z[4]!==Q)W=()=>{if(!Q)return;return()=>Q(null)},q=[Q],Z[4]=Q,Z[5]=W,Z[6]=q;else W=Z[5],q=Z[6];K0.useEffect(z,X),K0.useEffect(W,q)}function $X(J){let Z=HZ.c(8),Q=K0.useContext(tZ),z,X,W,q;if(Z[0]!==J||Z[1]!==Q)z=()=>{if(!Q)return;Q(J)},X=[Q,J],Z[0]=J,Z[1]=Q,Z[2]=z,Z[3]=X;else z=Z[2],X=Z[3];if(Z[4]!==Q)W=()=>{if(!Q)return;return()=>Q(null)},q=[Q],Z[4]=Q,Z[5]=W,Z[6]=q;else W=Z[5],q=Z[6];K0.useEffect(z,X),K0.useEffect(W,q)}var HZ,K0,rZ,aZ,oZ,tZ;var JJ=L0(()=>{F0();HZ=N0(u0(),1),K0=N0(S0(),1),rZ=K0.createContext(null),aZ=K0.createContext(null),oZ=K0.createContext(null),tZ=K0.createContext(null)});function GZ(J){return J.type==="attachment"&&Xz.has(J.attachment.type)}var zz,Xz;var CZ=L0(()=>{zz=["hook_success","hook_additional_context","hook_cancelled","command_permissions","agent_mention","budget_usd","critical_system_reminder","edited_image_file","edited_text_file","opened_file_in_ide","output_style","plan_mode","plan_mode_exit","plan_mode_reentry","structured_output","team_context","todo_reminder","context_efficiency","deferred_tools_delta","mcp_instructions_delta","companion_intro","token_usage","ultrathink_effort","max_turns_reached","task_reminder","auto_mode","auto_mode_exit","output_token_usage","pen_mode_enter","pen_mode_exit","verify_plan_reminder","current_session_memory","compaction_reminder","date_change","bash_git_instructions","claude_md_delta","git_status_delta","todo_reminder_delta","task_reconcile"],Xz=new Set(zz)});import{fileURLToPath as Hz}from"url";function QW(J){let[Z,Q]=q0.useState(null),z=q0.useRef(J);z.current=J;let X=q0.useRef(null),W=q0.useCallback(()=>{Q(null)},[]),q=q0.useCallback((K)=>{let F=Math.max(0,K.getScrollHeight()-K.getViewportHeight());if(K.getScrollTop()+K.getPendingDelta()>=F)return;if(X.current===null)X.current=K.getScrollHeight(),Q(z.current)},[]),V=q0.useCallback((K)=>{if(!K)return;K.scrollToBottom()},[]);q0.useEffect(()=>{if(Z===null)X.current=null;else if(J<Z)X.current=null,Q(null)},[J,Z]);let Y=q0.useCallback((K,F)=>{if(Q((P)=>P===null?null:P+K),X.current!==null)X.current+=F},[]);return{dividerIndex:Z,dividerYRef:X,onScrollAway:q,onRepin:W,jumpToNew:V,shiftDivider:Y}}function Gz(J,Z){let Q=0,z=!1;for(let X=Z;X<J.length;X++){let W=J[X];if(W.type==="progress")continue;if(W.type==="assistant"&&!Lz(W))continue;let q=W.type==="assistant";if(q&&!z)Q++;z=q}return Q}function Lz(J){if(J.type!=="assistant")return!1;for(let Z of J.message.content)if(Z.type==="text"&&Z.text.trim()!=="")return!0;return!1}function zW(J,Z){if(Z===null)return;let Q=Z;while(Q<J.length&&(J[Q]?.type==="progress"||GZ(J[Q])))Q++;let z=J[Q]?.uuid;if(!z)return;let X=Gz(J,Z);return{firstUnseenUuid:z,count:Math.max(1,X)}}function XW(J){let Z=r0.c(47),{scrollable:Q,bottom:z,overlay:X,bottomFloat:W,modal:q,modalScrollRef:V,scrollRef:Y,dividerYRef:K,hidePill:F,hideSticky:P,newMessageCount:v,onPillClick:M}=J,S=F===void 0?!1:F,Z0=P===void 0?!1:P,d=v===void 0?0:v,{rows:O,columns:C}=FZ(),[_,w]=q0.useState(null),D;if(Z[0]===Symbol.for("react.memo_cache_sentinel"))D={setStickyPrompt:w},Z[0]=D;else D=Z[0];let p=D,J0;if(Z[1]!==Y)J0=(h)=>Y?.current?.subscribe(h)??wz,Z[1]=Y,Z[2]=J0;else J0=Z[2];let E=J0,k;if(Z[3]!==K||Z[4]!==Y)k=()=>{let h=Y?.current,z0=K?.current;if(!h||z0==null)return!1;return h.getScrollTop()+h.getPendingDelta()+h.getViewportHeight()<z0},Z[3]=K,Z[4]=Y,Z[5]=k;else k=Z[5];let H0=q0.useSyncExternalStore(E,k),Y0;if(Z[6]===Symbol.for("react.memo_cache_sentinel"))Y0=[],Z[6]=Y0;else Y0=Z[6];if(q0.useLayoutEffect(Fz,Y0),c0()){let h=Z0?null:_,z0=h!=null&&h!=="clicked"&&X==null?h:null,Q0=h!=null&&X==null,X0;if(Z[7]!==z0)X0=z0&&B(Oz,{text:z0.text,onClick:z0.scrollTo}),Z[7]=z0,Z[8]=X0;else X0=Z[8];let O0=Q0?0:1,T;if(Z[9]!==Q)T=B(yZ,{value:p,children:Q}),Z[9]=Q,Z[10]=T;else T=Z[10];let i;if(Z[11]!==X||Z[12]!==Y||Z[13]!==T||Z[14]!==O0)i=$(GJ,{ref:Y,flexGrow:1,flexDirection:"column",paddingTop:O0,stickyScroll:!0,children:[T,X]}),Z[11]=X,Z[12]=Y,Z[13]=T,Z[14]=O0,Z[15]=i;else i=Z[15];let o;if(Z[16]!==S||Z[17]!==d||Z[18]!==M||Z[19]!==X||Z[20]!==H0)o=!S&&H0&&X==null&&B(Nz,{count:d,onClick:M}),Z[16]=S,Z[17]=d,Z[18]=M,Z[19]=X,Z[20]=H0,Z[21]=o;else o=Z[21];let t;if(Z[22]!==W)t=W!=null&&B(b,{position:"absolute",bottom:0,right:0,opaque:!0,children:W}),Z[22]=W,Z[23]=t;else t=Z[23];let I;if(Z[24]!==i||Z[25]!==o||Z[26]!==t||Z[27]!==X0)I=$(b,{flexGrow:1,flexDirection:"column",overflow:"hidden",children:[X0,i,o,t]}),Z[24]=i,Z[25]=o,Z[26]=t,Z[27]=X0,Z[28]=I;else I=Z[28];let W0,N;if(Z[29]===Symbol.for("react.memo_cache_sentinel"))W0=B(Az,{}),N=B(Pz,{}),Z[29]=W0,Z[30]=N;else W0=Z[29],N=Z[30];let U;if(Z[31]!==z)U=$(b,{flexDirection:"column",flexShrink:0,width:"100%",maxHeight:"50%",children:[W0,N,B(b,{flexDirection:"column",width:"100%",flexGrow:1,overflowY:"hidden",children:z})]}),Z[31]=z,Z[32]=U;else U=Z[32];let R;if(Z[33]!==C||Z[34]!==q||Z[35]!==V||Z[36]!==O)R=q!=null&&B(YJ,{value:{rows:O-QJ-1,columns:C-4,scrollRef:V??null},children:$(b,{position:"absolute",bottom:0,left:0,right:0,maxHeight:O-QJ,flexDirection:"column",overflow:"hidden",opaque:!0,children:[B(b,{flexShrink:0,children:B(g,{color:"permission",children:"▔".repeat(C)})}),B(b,{flexDirection:"column",paddingX:2,flexShrink:0,overflow:"hidden",children:q})]})}),Z[33]=C,Z[34]=q,Z[35]=V,Z[36]=O,Z[37]=R;else R=Z[37];let s;if(Z[38]!==I||Z[39]!==U||Z[40]!==R)s=$(sZ,{children:[I,U,R]}),Z[38]=I,Z[39]=U,Z[40]=R,Z[41]=s;else s=Z[41];return s}let l;if(Z[42]!==z||Z[43]!==q||Z[44]!==X||Z[45]!==Q)l=$(f0,{children:[Q,z,X,q]}),Z[42]=z,Z[43]=q,Z[44]=X,Z[45]=Q,Z[46]=l;else l=Z[46];return l}function Fz(){if(!c0())return;let J=WJ.get(process.stdout);if(!J)return;return J.onHyperlinkClick=Kz,()=>{J.onHyperlinkClick=void 0}}function Kz(J){if(J.startsWith("file:"))try{VJ(Hz(J))}catch{}else BJ(J)}function wz(){}function Nz(J){let Z=r0.c(10),{count:Q,onClick:z}=J,[X,W]=q0.useState(!1),q,V;if(Z[0]===Symbol.for("react.memo_cache_sentinel"))q=()=>W(!0),V=()=>W(!1),Z[0]=q,Z[1]=V;else q=Z[0],V=Z[1];let Y=X?"userMessageBackgroundHover":"userMessageBackground",K;if(Z[2]!==Q)K=Q>0?`${Q} new ${LZ(Q,"message")}`:"Jump to bottom",Z[2]=Q,Z[3]=K;else K=Z[3];let F;if(Z[4]!==Y||Z[5]!==K)F=$(g,{backgroundColor:Y,dimColor:!0,children:[" ",K," ",v0.arrowDown," "]}),Z[4]=Y,Z[5]=K,Z[6]=F;else F=Z[6];let P;if(Z[7]!==z||Z[8]!==F)P=B(b,{position:"absolute",bottom:0,left:0,right:0,justifyContent:"center",children:B(b,{onClick:z,onMouseEnter:q,onMouseLeave:V,children:F})}),Z[7]=z,Z[8]=F,Z[9]=P;else P=Z[9];return P}function Oz(J){let Z=r0.c(8),{text:Q,onClick:z}=J,[X,W]=q0.useState(!1),q=X?"userMessageBackgroundHover":"userMessageBackground",V,Y;if(Z[0]===Symbol.for("react.memo_cache_sentinel"))V=()=>W(!0),Y=()=>W(!1),Z[0]=V,Z[1]=Y;else V=Z[0],Y=Z[1];let K;if(Z[2]!==Q)K=$(g,{color:"subtle",wrap:"truncate-end",children:[v0.pointer," ",Q]}),Z[2]=Q,Z[3]=K;else K=Z[3];let F;if(Z[4]!==z||Z[5]!==q||Z[6]!==K)F=B(b,{flexShrink:0,width:"100%",height:1,paddingRight:1,backgroundColor:q,onClick:z,onMouseEnter:V,onMouseLeave:Y,children:K}),Z[4]=z,Z[5]=q,Z[6]=K,Z[7]=F;else F=Z[7];return F}function Az(){let J=r0.c(4),Z=eZ();if(!Z||Z.suggestions.length===0)return null;let Q;if(J[0]!==Z.maxColumnWidth||J[1]!==Z.selectedSuggestion||J[2]!==Z.suggestions)Q=B(b,{position:"absolute",bottom:"100%",left:0,right:0,paddingX:2,paddingTop:1,flexDirection:"column",opaque:!0,children:B(HJ,{suggestions:Z.suggestions,selectedSuggestion:Z.selectedSuggestion,maxColumnWidth:Z.maxColumnWidth,overlay:!0})}),J[0]=Z.maxColumnWidth,J[1]=Z.selectedSuggestion,J[2]=Z.suggestions,J[3]=Q;else Q=J[3];return Q}function Pz(){let J=r0.c(2),Z=ZJ();if(!Z)return null;let Q;if(J[0]!==Z)Q=B(b,{position:"absolute",bottom:"100%",left:0,right:0,opaque:!0,children:Z}),J[0]=Z,J[1]=Q;else Q=J[1];return Q}var r0,q0,QJ=2,yZ;var LJ=L0(()=>{zJ();qz();JJ();qJ();Bz();Wz();p0();Yz();vZ();XJ();CZ();Vz();F0();r0=N0(u0(),1),q0=N0(S0(),1),yZ=q0.createContext({setStickyPrompt:()=>{}})});function FJ(J,Z){for(let Q of J)if(!Z.has(Q))return!1;return!0}var KJ=()=>{};function wJ(J){if(J.type!=="user")return!1;let Z=J.message.content[0];if(Z?.type!=="text")return!1;if(!Z.text.includes(`<${KZ}`))return!1;if(_Z(Z.text,wZ)!=="completed")return!1;return _Z(Z.text,NZ)?.startsWith(NJ)??!1}function OJ(J,Z){if(!c0())return J;if(Z)return J;let Q=[],z=0;while(z<J.length){let X=J[z];if(wJ(X)){let W=0;while(z<J.length&&wJ(J[z]))W++,z++;if(W===1)Q.push(X);else Q.push({...X,message:{role:"user",content:[{type:"text",text:`<${KZ}><${wZ}>completed</${wZ}><${NZ}>${W} background commands completed</${NZ}></${KZ}>`}]}})}else Q.push(X),z++}return Q}var AJ=L0(()=>{Dz();Uz();vZ();OZ()});function PJ(J){return J.type==="system"&&J.subtype==="stop_hook_summary"&&J.hookLabel!==void 0}function DJ(J){let Z=[],Q=0;while(Q<J.length){let z=J[Q];if(PJ(z)){let X=z.hookLabel,W=[];while(Q<J.length){let q=J[Q];if(!PJ(q)||q.hookLabel!==X)break;W.push(q),Q++}if(W.length===1)Z.push(z);else Z.push({...z,hookCount:W.reduce((q,V)=>q+V.hookCount,0),hookInfos:W.flatMap((q)=>q.hookInfos),hookErrors:W.flatMap((q)=>q.hookErrors),preventedContinuation:W.some((q)=>q.preventedContinuation),hasOutput:W.some((q)=>q.hasOutput),totalDurationMs:Math.max(...W.map((q)=>q.totalDurationMs??0))})}else Z.push(z),Q++}return Z}var UJ=()=>{};function jJ(J){return J.type==="attachment"&&J.attachment.type==="task_status"&&J.attachment.taskType==="in_process_teammate"&&J.attachment.status==="completed"}function MJ(J){let Z=[],Q=0;while(Q<J.length){let z=J[Q];if(jJ(z)){let X=0;while(Q<J.length&&jJ(J[Q]))X++,Q++;if(X===1)Z.push(z);else Z.push({type:"attachment",uuid:z.uuid,timestamp:z.timestamp,attachment:{type:"teammate_shutdown_batch",count:X}})}else Z.push(z),Q++}return Z}var EJ=()=>{};function jz(J){let Z=bJ.get(J);if(!Z)Z=new Set(J.filter((Q)=>Q.renderGroupedToolUse).map((Q)=>Q.name)),bJ.set(J,Z);return Z}function kZ(J){if(J.type==="assistant"&&J.message.content[0]?.type==="tool_use"){let Z=J.message.content[0];return{messageId:J.message.id,toolUseId:Z.id,toolName:Z.name}}return null}function CJ(J,Z,Q=!1){if(Q)return{messages:J};let z=jz(Z),X=new Map;for(let F of J){let P=kZ(F);if(P&&z.has(P.toolName)){let v=`${P.messageId}:${P.toolName}`,M=X.get(v)??[];M.push(F),X.set(v,M)}}let W=new Map,q=new Set;for(let[F,P]of X)if(P.length>=2){W.set(F,P);for(let v of P){let M=kZ(v);if(M)q.add(M.toolUseId)}}let V=new Map;for(let F of J)if(F.type==="user"){for(let P of F.message.content)if(P.type==="tool_result"&&q.has(P.tool_use_id))V.set(P.tool_use_id,F)}let Y=[],K=new Set;for(let F of J){let P=kZ(F);if(P){let v=`${P.messageId}:${P.toolName}`,M=W.get(v);if(M){if(!K.has(v)){K.add(v);let S=M[0],Z0=[];for(let O of M){let C=O.message.content[0].id,_=V.get(C);if(_)Z0.push(_)}let d={type:"grouped_tool_use",toolName:P.toolName,messages:M,results:Z0,displayMessage:S,uuid:`grouped-${S.uuid}`,timestamp:S.timestamp,messageId:P.messageId};Y.push(d)}continue}}if(F.type==="user"){let v=F.message.content.filter((M)=>M.type==="tool_result");if(v.length>0){if(v.every((S)=>q.has(S.tool_use_id)))continue}}Y.push(F)}return{messages:Y}}var bJ;var vJ=L0(()=>{bJ=new WeakMap});function AZ(J){let Z=kJ.get(J);if(Z!==void 0)return Z;let Q=Mz(J).toLowerCase();return kJ.set(J,Q),Q}function Mz(J){let Z="";switch(J.type){case"user":{let X=J.message.content;if(typeof X==="string")Z=_J.has(X)?"":X;else{let W=[];for(let q of X)if(q.type==="text"){if(!_J.has(q.text))W.push(q.text)}else if(q.type==="tool_result")W.push(bz(J.toolUseResult));Z=W.join(`
|
|
2
|
+
`)}break}case"assistant":{let X=J.message.content;if(Array.isArray(X))Z=X.flatMap((W)=>{if(W.type==="text")return[W.text];if(W.type==="tool_use")return[Ez(W.input)];return[]}).join(`
|
|
3
|
+
`);break}case"attachment":{if(J.attachment.type==="relevant_memories")Z=J.attachment.memories.map((X)=>X.content).join(`
|
|
4
|
+
`);else if(J.attachment.type==="queued_command"&&J.attachment.commandMode!=="task-notification"&&!J.attachment.isMeta){let X=J.attachment.prompt;Z=typeof X==="string"?X:X.flatMap((W)=>W.type==="text"?[W.text]:[]).join(`
|
|
5
|
+
`)}break}case"collapsed_read_search":{if(J.relevantMemories)Z=J.relevantMemories.map((X)=>X.content).join(`
|
|
6
|
+
`);break}default:break}let Q=Z,z=Q.indexOf("<system-reminder>");while(z>=0){let X=Q.indexOf(yJ,z);if(X<0)break;Q=Q.slice(0,z)+Q.slice(X+yJ.length),z=Q.indexOf("<system-reminder>")}return Q}function Ez(J){if(!J||typeof J!=="object")return"";let Z=J,Q=[];for(let z of["command","pattern","file_path","path","prompt","description","query","url","skill"]){let X=Z[z];if(typeof X==="string")Q.push(X)}for(let z of["args","files"]){let X=Z[z];if(Array.isArray(X)&&X.every((W)=>typeof W==="string"))Q.push(X.join(" "))}return Q.join(`
|
|
7
|
+
`)}function bz(J){if(!J||typeof J!=="object")return typeof J==="string"?J:"";let Z=J;if(typeof Z.stdout==="string"){let z=typeof Z.stderr==="string"?Z.stderr:"";return Z.stdout+(z?`
|
|
8
|
+
`+z:"")}if(Z.file&&typeof Z.file==="object"&&typeof Z.file.content==="string")return Z.file.content;let Q=[];for(let z of["content","output","result","text","message"]){let X=Z[z];if(typeof X==="string")Q.push(X)}for(let z of["filenames","lines","results"]){let X=Z[z];if(Array.isArray(X)&&X.every((W)=>typeof W==="string"))Q.push(X.join(`
|
|
9
|
+
`))}return Q.join(`
|
|
10
|
+
`)}var yJ="</system-reminder>",_J,kJ;var IZ=L0(()=>{OZ();_J=new Set([IJ,SJ]),kJ=new WeakMap});function RJ(J){let Z=hJ.c(5),{message:Q,isTranscriptMode:z}=J;if(!(z&&Q.type==="assistant"&&Q.message.model&&Q.message.content.some(Cz)))return null;let W=PZ(Q.message.model)+8,q;if(Z[0]!==Q.message.model)q=B(g,{dimColor:!0,children:Q.message.model}),Z[0]=Q.message.model,Z[1]=q;else q=Z[1];let V;if(Z[2]!==W||Z[3]!==q)V=B(b,{minWidth:W,children:q}),Z[2]=W,Z[3]=q,Z[4]=V;else V=Z[4];return V}function Cz(J){return J.type==="text"}var hJ;var xJ=L0(()=>{TJ();p0();F0();hJ=N0(u0(),1)});function uJ(J){let Z=$J.c(10),{message:Q,isTranscriptMode:z}=J;if(!(z&&Q.timestamp&&Q.type==="assistant"&&Q.message.content.some(vz)))return null;let W,q,V;if(Z[0]!==Q.timestamp)q=new Date(Q.timestamp).toLocaleTimeString("en-US",{hour:"2-digit",minute:"2-digit",hour12:!0}),W=b,V=PZ(q),Z[0]=Q.timestamp,Z[1]=W,Z[2]=q,Z[3]=V;else W=Z[1],q=Z[2],V=Z[3];let Y;if(Z[4]!==q)Y=B(g,{dimColor:!0,children:q}),Z[4]=q,Z[5]=Y;else Y=Z[5];let K;if(Z[6]!==W||Z[7]!==V||Z[8]!==Y)K=B(W,{minWidth:V,children:Y}),Z[6]=W,Z[7]=V,Z[8]=Y,Z[9]=K;else K=Z[9];return K}function vz(J){return J.type==="text"}var $J;var fJ=L0(()=>{TJ();p0();F0();$J=N0(u0(),1)});function rJ(J,Z,Q,z){for(let X=Z+1;X<J.length;X++){let W=J[X];if(W?.type==="assistant"){let q=W.message.content[0];if(q?.type==="thinking"||q?.type==="redacted_thinking")continue;if(q?.type==="tool_use"){if(SZ(q.name,q.input,Q).isCollapsible)continue;if(z.has(q.id))continue}return!0}if(W?.type==="system"||W?.type==="attachment")continue;if(W?.type==="user"){if(W.message.content[0]?.type==="tool_result")continue}if(W?.type==="grouped_tool_use"){let q=W.messages[0]?.message.content[0]?.input;if(SZ(W.toolName,q,Q).isCollapsible)continue}return!0}return!1}function _z(J){let Z=iJ.c(64),{message:Q,isUserContinuation:z,hasContentAfter:X,tools:W,commands:q,verbose:V,inProgressToolUseIDs:Y,streamingToolUseIDs:K,screen:F,canAnimate:P,onOpenRateLimitOptions:v,lastThinkingBlockId:M,latestBashOutputUUID:S,columns:Z0,isLoading:d,lookups:O}=J,C=F==="transcript",_=Q.type==="grouped_tool_use",w=Q.type==="collapsed_read_search",D;if(Z[0]!==X||Z[1]!==Y||Z[2]!==w||Z[3]!==d||Z[4]!==Q)D=w&&(TZ(Q,Y)||d&&!X),Z[0]=X,Z[1]=Y,Z[2]=w,Z[3]=d,Z[4]=Q,Z[5]=D;else D=Z[5];let p=D,J0;if(Z[6]!==w||Z[7]!==_||Z[8]!==Q)J0=_?Q.displayMessage:w?dJ(Q):Q,Z[6]=w,Z[7]=_,Z[8]=Q,Z[9]=J0;else J0=Z[9];let E=J0,k;if(Z[10]!==w||Z[11]!==_||Z[12]!==O||Z[13]!==Q)k=_||w?[]:ZQ(Q,O),Z[10]=w,Z[11]=_,Z[12]=O,Z[13]=Q,Z[14]=k;else k=Z[14];let H0=k,Y0;if(Z[15]!==Y||Z[16]!==w||Z[17]!==_||Z[18]!==O||Z[19]!==Q||Z[20]!==F||Z[21]!==K){let I=_||w?pJ:eJ(Q,O);Y0=tJ(Q,K,Y,I,F,O),Z[15]=Y,Z[16]=w,Z[17]=_,Z[18]=O,Z[19]=Q,Z[20]=F,Z[21]=K,Z[22]=Y0}else Y0=Z[22];let l=Y0,h=!1;if(P)if(_){let I;if(Z[23]!==Y||Z[24]!==Q.messages){let W0;if(Z[26]!==Y)W0=(N)=>{let U=N.message.content[0];return U?.type==="tool_use"&&Y.has(U.id)},Z[26]=Y,Z[27]=W0;else W0=Z[27];I=Q.messages.some(W0),Z[23]=Y,Z[24]=Q.messages,Z[25]=I}else I=Z[25];h=I}else if(w){let I;if(Z[28]!==Y||Z[29]!==Q)I=TZ(Q,Y),Z[28]=Y,Z[29]=Q,Z[30]=I;else I=Z[30];h=I}else{let I;if(Z[31]!==Y||Z[32]!==Q){let W0=g0(Q);I=!W0||Y.has(W0),Z[31]=Y,Z[32]=Q,Z[33]=I}else I=Z[33];h=I}let z0;if(Z[34]!==E||Z[35]!==C)z0=C&&E.type==="assistant"&&E.message.content.some(kz)&&(E.timestamp||E.message.model),Z[34]=E,Z[35]=C,Z[36]=z0;else z0=Z[36];let Q0=z0,X0=!Q0,O0=Q0?void 0:Z0,T;if(Z[37]!==q||Z[38]!==Y||Z[39]!==p||Z[40]!==l||Z[41]!==C||Z[42]!==z||Z[43]!==M||Z[44]!==S||Z[45]!==O||Z[46]!==Q||Z[47]!==v||Z[48]!==H0||Z[49]!==h||Z[50]!==X0||Z[51]!==O0||Z[52]!==W||Z[53]!==V)T=B(nJ,{message:Q,lookups:O,addMargin:X0,containerWidth:O0,tools:W,commands:q,verbose:V,inProgressToolUseIDs:Y,progressMessagesForMessage:H0,shouldAnimate:h,shouldShowDot:!0,isTranscriptMode:C,isStatic:l,onOpenRateLimitOptions:v,isActiveCollapsedGroup:p,isUserContinuation:z,lastThinkingBlockId:M,latestBashOutputUUID:S}),Z[37]=q,Z[38]=Y,Z[39]=p,Z[40]=l,Z[41]=C,Z[42]=z,Z[43]=M,Z[44]=S,Z[45]=O,Z[46]=Q,Z[47]=v,Z[48]=H0,Z[49]=h,Z[50]=X0,Z[51]=O0,Z[52]=W,Z[53]=V,Z[54]=T;else T=Z[54];let i=T;if(!Q0){let I;if(Z[55]!==i)I=B(e0,{children:i}),Z[55]=i,Z[56]=I;else I=Z[56];return I}let o;if(Z[57]!==E||Z[58]!==C)o=$(b,{flexDirection:"row",justifyContent:"flex-end",gap:1,marginTop:1,children:[B(uJ,{message:E,isTranscriptMode:C}),B(RJ,{message:E,isTranscriptMode:C})]}),Z[57]=E,Z[58]=C,Z[59]=o;else o=Z[59];let t;if(Z[60]!==Z0||Z[61]!==i||Z[62]!==o)t=B(e0,{children:$(b,{width:Z0,flexDirection:"column",children:[o,i]})}),Z[60]=Z0,Z[61]=i,Z[62]=o,Z[63]=t;else t=Z[63];return t}function kz(J){return J.type==="text"}function Iz(J,Z){if(J.type==="grouped_tool_use")return J.messages.some((z)=>{let X=z.message.content[0];return X?.type==="tool_use"&&Z.has(X.id)});if(J.type==="collapsed_read_search")return hZ(J).some((X)=>Z.has(X));let Q=g0(J);return!!Q&&Z.has(Q)}function Sz(J,Z){if(J.type==="grouped_tool_use")return J.messages.every((z)=>{let X=z.message.content[0];return X?.type==="tool_use"&&Z.has(X.id)});if(J.type==="collapsed_read_search")return hZ(J).every((X)=>Z.has(X));if(J.type==="assistant"){let z=J.message.content[0];if(z?.type==="server_tool_use")return Z.has(z.id)}let Q=g0(J);return!Q||Z.has(Q)}function Tz(J,Z){if(J.message!==Z.message)return!1;if(J.screen!==Z.screen)return!1;if(J.verbose!==Z.verbose)return!1;if(J.message.type==="collapsed_read_search"&&Z.screen!=="transcript")return!1;if(J.columns!==Z.columns)return!1;let Q=J.latestBashOutputUUID===J.message.uuid,z=Z.latestBashOutputUUID===Z.message.uuid;if(Q!==z)return!1;if(J.lastThinkingBlockId!==Z.lastThinkingBlockId&&mJ(Z.message))return!1;let X=Iz(J.message,J.streamingToolUseIDs),W=Sz(J.message,J.lookups.resolvedToolUseIDs);if(X||!W)return!1;return!0}var iJ,lJ,aJ;var oJ=L0(()=>{p0();cJ();OZ();yz();xJ();sJ();fJ();gJ();F0();iJ=N0(u0(),1),lJ=N0(S0(),1);aJ=lJ.memo(_z,Tz)});import{relative as pz}from"path";function qQ(J){return lz.filter((Z)=>Z.isActive(J))}var dz,cz,gz,mz,nz,iz,lz;var YQ=L0(()=>{p0();BQ();zJ();Rz();hz();xz();fz();uz();$z();F0();dz={id:"large-memory-files",type:"warning",isActive:(J)=>fZ(J.memoryFiles).length>0,render:(J)=>{let Z=fZ(J.memoryFiles);return B(f0,{children:Z.map((Q)=>{let z=Q.path.startsWith(RZ())?pz(RZ(),Q.path):Q.path;return $(b,{flexDirection:"row",children:[B(g,{color:"warning",children:v0.warning}),$(g,{color:"warning",children:["Large ",B(g,{bold:!0,children:z})," will impact performance (",ZZ(Q.content.length)," chars >"," ",ZZ(VQ),")",B(g,{dimColor:!0,children:" · /memory to edit"})]})]},Q.path)})})}},cz={id:"claude-ai-external-token",type:"warning",isActive:()=>{let J=JZ();return QQ()&&(J.source==="ANTHROPIC_AUTH_TOKEN"||J.source==="apiKeyHelper")},render:()=>{let J=JZ();return $(b,{flexDirection:"row",marginTop:1,children:[B(g,{color:"warning",children:v0.warning}),$(g,{color:"warning",children:["Auth conflict: Using ",J.source," instead of Claude account subscription token. Either unset ",J.source,", or run `claude /logout`."]})]})}},gz={id:"api-key-conflict",type:"warning",isActive:()=>{let{source:J}=QZ({skipRetrievingKeyFromApiKeyHelper:!0});return!!JQ()&&(J==="ANTHROPIC_API_KEY"||J==="apiKeyHelper")},render:()=>{let{source:J}=QZ({skipRetrievingKeyFromApiKeyHelper:!0});return $(b,{flexDirection:"row",marginTop:1,children:[B(g,{color:"warning",children:v0.warning}),$(g,{color:"warning",children:["Auth conflict: Using ",J," instead of Anthropic Console key. Either unset ",J,", or run `claude /logout`."]})]})}},mz={id:"both-auth-methods",type:"warning",isActive:()=>{let{source:J}=QZ({skipRetrievingKeyFromApiKeyHelper:!0}),Z=JZ();return J!=="none"&&Z.source!=="none"&&!(J==="apiKeyHelper"&&Z.source==="apiKeyHelper")},render:()=>{let{source:J}=QZ({skipRetrievingKeyFromApiKeyHelper:!0}),Z=JZ();return $(b,{flexDirection:"column",marginTop:1,children:[$(b,{flexDirection:"row",children:[B(g,{color:"warning",children:v0.warning}),$(g,{color:"warning",children:["Auth conflict: Both a token (",Z.source,") and an API key (",J,") are set. This may lead to unexpected behavior."]})]}),$(b,{flexDirection:"column",marginLeft:3,children:[$(g,{color:"warning",children:["· Trying to use"," ",Z.source==="claude.ai"?"claude.ai":Z.source,"?"," ",J==="ANTHROPIC_API_KEY"?'Unset the ANTHROPIC_API_KEY environment variable, or claude /logout then say "No" to the API key approval before login.':J==="apiKeyHelper"?"Unset the apiKeyHelper setting.":"claude /logout"]}),$(g,{color:"warning",children:["· Trying to use ",J,"?"," ",Z.source==="claude.ai"?"claude /logout to sign out of claude.ai.":`Unset the ${Z.source} environment variable.`]})]})]})}},nz={id:"large-agent-descriptions",type:"warning",isActive:(J)=>{return uZ(J.agentDefinitions)>$Z},render:(J)=>{let Z=uZ(J.agentDefinitions);return $(b,{flexDirection:"row",children:[B(g,{color:"warning",children:v0.warning}),$(g,{color:"warning",children:["Large cumulative agent descriptions will impact performance (~",ZZ(Z)," tokens >"," ",ZZ($Z),")",B(g,{dimColor:!0,children:" · /agents to manage"})]})]})}},iz={id:"jetbrains-plugin-install",type:"info",isActive:(J)=>{if(!XQ())return!1;if(!(J.config.autoInstallIdeExtension??!0))return!1;let Q=xZ();return Q!==null&&!zQ(Q)},render:()=>{let J=xZ(),Z=WQ(J);return $(b,{flexDirection:"row",gap:1,marginLeft:1,children:[B(g,{color:"ide",children:v0.arrowUp}),$(g,{children:["Install the ",B(g,{color:"ide",children:Z})," plugin from the JetBrains Marketplace:"," ",B(g,{bold:!0,children:"https://docs.claude.com/s/claude-code-jetbrains"})]})]})}},lz=[dz,nz,cz,gz,mz,iz]});async function rz(){if(zZ)return zZ;return zZ=KQ().then((J)=>{XZ=J}).finally(()=>{zZ=null}),zZ}function LQ(J){let Z=GQ.c(8),{agentDefinitions:Q}=J===void 0?{}:J,[z,X]=a0.useState(XZ),W;if(Z[0]===Symbol.for("react.memo_cache_sentinel"))W=()=>{if(XZ.length>0){X(XZ);return}rz().then(()=>{X(XZ)})},Z[0]=W;else W=Z[0];a0.useEffect(W,[W]);let V={config:DZ(),agentDefinitions:Q,memoryFiles:z},Y=qQ(V);if(Y.length===0)return null;let K=b,F="column",P=1,v=Y.map((S)=>B(a0.Fragment,{children:S.render(V)},S.id)),M;if(Z[1]!==K||Z[2]!==v)M=B(K,{flexDirection:F,paddingLeft:P,children:v}),Z[1]=K,Z[2]=v,Z[3]=M;else M=Z[3];return M}var GQ,a0,XZ,zZ=null;var FQ=L0(()=>{p0();BQ();HQ();YQ();F0();GQ=N0(u0(),1),a0=N0(S0(),1),XZ=[]});function wQ(J,Z,Q){let z=m.useRef(new Map),X=m.useRef(0),W=m.useRef(0),q=m.useRef({arr:new Float64Array(0),version:-1,n:-1}),V=m.useRef(new Map),Y=m.useRef(new Map),K=m.useRef(Q),F=m.useRef(!1),P=m.useRef(null),v=m.useRef(0);if(K.current!==Q){let N=K.current/Q;K.current=Q;for(let[U,R]of z.current)z.current.set(U,Math.max(1,Math.round(R*N)));X.current++,F.current=!0,v.current=2}let M=v.current>0?P.current:null,S=m.useRef(0),Z0=m.useRef(null),d=m.useCallback((N)=>J.current?.subscribe(N)??sz,[J]);m.useSyncExternalStore(d,()=>{let N=J.current;if(!N)return NaN;let U=N.getScrollTop()+N.getPendingDelta(),R=Math.floor(U/tz);return N.isSticky()?~R:R});let O=J.current?.getScrollTop()??-1,C=J.current?.getPendingDelta()??0,_=J.current?.getViewportHeight()??0,w=J.current?.isSticky()??!0;m.useMemo(()=>{let N=new Set(Z),U=!1;for(let R of z.current.keys())if(!N.has(R))z.current.delete(R),U=!0;for(let R of Y.current.keys())if(!N.has(R))Y.current.delete(R);if(U)X.current++},[Z]);let D=Z.length;if(q.current.version!==X.current||q.current.n!==D){let N=q.current.arr.length>=D+1?q.current.arr:new Float64Array(D+1);N[0]=0;for(let U=0;U<D;U++)N[U+1]=N[U]+(z.current.get(Z[U])??az);q.current={arr:N,version:X.current,n:D}}let p=q.current.arr,J0=p[D],E,k;if(M)[E,k]=M,E=Math.min(E,D),k=Math.min(k,D);else if(_===0||O<0)E=Math.max(0,D-oz),k=D;else{if(w){let V0=_+o0;E=D;while(E>0&&J0-p[E-1]<V0)E--;k=D}else{let V0=S.current,G0=_*3,M0=Math.min(O,O+C),n0=Math.max(O,O+C),y0=n0-M0,D0=y0>G0?C<0?n0-G0:M0:M0,T0=D0+Math.min(y0,G0),i0=Math.max(0,D0-V0),h0=T0-V0,b0=i0-o0;{let H=0,L=D;while(H<L){let A=H+L>>1;if(p[A+1]<=b0)H=A+1;else L=A}E=H}{let H=P.current;if(H&&H[0]<E)for(let L=H[0];L<Math.min(E,H[1]);L++){let A=Z[L];if(V.current.has(A)&&!z.current.has(A)){E=L;break}}}let l0=_+2*o0,t0=Math.min(D,E+WZ),_0=0;k=E;while(k<t0&&(_0<l0||p[k]<h0+_+o0))_0+=z.current.get(Z[k])??pZ,k++}let N=_+2*o0,U=Math.max(0,k-WZ),R=0;for(let V0=E;V0<k;V0++)R+=z.current.get(Z[V0])??pZ;while(E>U&&R<N)E--,R+=z.current.get(Z[E])??pZ;let s=P.current,A0=Math.abs(O-W.current)+Math.abs(C);if(s&&A0>_*2){let[V0,G0]=s;if(E<V0-qZ)E=V0-qZ;if(k>G0+qZ)k=G0+qZ;if(E>k)k=Math.min(E+qZ,D)}W.current=O}if(v.current>0)v.current--;else P.current=[E,k];let H0=m.useDeferredValue(E),Y0=m.useDeferredValue(k),l=E<H0?H0:E,h=k>Y0?Y0:k;if(l>h||w)l=E,h=k;if(C>0)h=k;if(h-l>WZ){let N=(p[l]+p[h])/2;if(O-S.current<N)h=l+WZ;else l=h-WZ}let z0=S.current,Q0=p[l],X0=l===0?0:Q0+z0,O0=h===D?1/0:Math.max(Q0,p[h]-_)+z0;m.useLayoutEffect(()=>{if(w)J.current?.setClampBounds(void 0,void 0);else J.current?.setClampBounds(X0,O0)}),m.useLayoutEffect(()=>{let N=Z0.current?.yogaNode;if(N&&N.getComputedWidth()>0)S.current=N.getComputedTop();if(F.current){F.current=!1;return}let U=!1;for(let[R,s]of V.current){let A0=s.yogaNode;if(!A0)continue;let V0=A0.getComputedHeight(),G0=z.current.get(R);if(V0>0){if(G0!==V0)z.current.set(R,V0),U=!0}else if(A0.getComputedWidth()>0&&G0!==0)z.current.set(R,0),U=!0}if(U)X.current++});let T=m.useCallback((N)=>{let U=Y.current.get(N);if(!U)U=(R)=>{if(R)V.current.set(N,R);else{let s=V.current.get(N)?.yogaNode;if(s&&!F.current){let A0=s.getComputedHeight();if((A0>0||s.getComputedWidth()>0)&&z.current.get(N)!==A0)z.current.set(N,A0),X.current++}V.current.delete(N)}},Y.current.set(N,U);return U},[]),i=m.useCallback((N)=>{let U=V.current.get(Z[N])?.yogaNode;if(!U||U.getComputedWidth()===0)return-1;return U.getComputedTop()},[Z]),o=m.useCallback((N)=>V.current.get(Z[N])??null,[Z]),t=m.useCallback((N)=>z.current.get(Z[N]),[Z]),I=m.useCallback((N)=>{let U=q.current;if(N<0||N>=U.n)return;J.current?.scrollTo(U.arr[N]+S.current)},[J]),W0=J0-p[h];return{range:[l,h],topSpacer:Q0,bottomSpacer:W0,measureRef:T,spacerRef:Z0,offsets:p,getItemTop:i,getItemElement:o,getItemHeight:t,scrollToIndex:I}}var m,az=3,o0=80,oz=30,tz,pZ=1,WZ=300,qZ=25,sz=()=>{};var NQ=L0(()=>{m=N0(S0(),1),tz=o0>>1});function QX(J){let Z=OQ.get(J);if(Z!==void 0)return Z;let Q=AZ(J);return OQ.set(J,Q),Q}function XX(J){let Z=AQ.get(J);if(Z!==void 0)return Z;let Q=WX(J);return AQ.set(J,Q),Q}function WX(J){let Z=null;if(J.type==="user"){if(J.isMeta||J.isVisibleInTranscriptOnly)return null;let z=J.message.content[0];if(z?.type!=="text")return null;Z=z.text}else if(J.type==="attachment"&&J.attachment.type==="queued_command"&&J.attachment.commandMode!=="task-notification"&&!J.attachment.isMeta){let z=J.attachment.prompt;Z=typeof z==="string"?z:z.flatMap((X)=>X.type==="text"?[X.text]:[]).join(`
|
|
11
|
+
`)}if(Z===null)return null;let Q=MQ(Z);if(Q.startsWith("<")||Q==="")return null;return Q}function qX(J){let Z=bQ.c(30),{itemKey:Q,msg:z,idx:X,measureRef:W,expanded:q,hovered:V,clickable:Y,onClickK:K,onEnterK:F,onLeaveK:P,renderItem:v}=J,M;if(Z[0]!==Q||Z[1]!==W)M=W(Q),Z[0]=Q,Z[1]=W,Z[2]=M;else M=Z[2];let S=q?"userMessageBackgroundHover":void 0,Z0=q?1:void 0,d;if(Z[3]!==Y||Z[4]!==z||Z[5]!==K)d=Y?(J0)=>K(z,J0.cellIsBlank):void 0,Z[3]=Y,Z[4]=z,Z[5]=K,Z[6]=d;else d=Z[6];let O;if(Z[7]!==Y||Z[8]!==Q||Z[9]!==F)O=Y?()=>F(Q):void 0,Z[7]=Y,Z[8]=Q,Z[9]=F,Z[10]=O;else O=Z[10];let C;if(Z[11]!==Y||Z[12]!==Q||Z[13]!==P)C=Y?()=>P(Q):void 0,Z[11]=Y,Z[12]=Q,Z[13]=P,Z[14]=C;else C=Z[14];let _=V&&!q?"text":void 0,w;if(Z[15]!==X||Z[16]!==z||Z[17]!==v)w=v(z,X),Z[15]=X,Z[16]=z,Z[17]=v,Z[18]=w;else w=Z[18];let D;if(Z[19]!==_||Z[20]!==w)D=B(DQ.Provider,{value:_,children:w}),Z[19]=_,Z[20]=w,Z[21]=D;else D=Z[21];let p;if(Z[22]!==M||Z[23]!==S||Z[24]!==Z0||Z[25]!==d||Z[26]!==O||Z[27]!==C||Z[28]!==D)p=B(b,{ref:M,flexDirection:"column",backgroundColor:S,paddingBottom:Z0,onClick:d,onMouseEnter:O,onMouseLeave:C,children:D}),Z[22]=M,Z[23]=S,Z[24]=Z0,Z[25]=d,Z[26]=O,Z[27]=C,Z[28]=D,Z[29]=p;else p=Z[29];return p}function CQ({messages:J,scrollRef:Z,columns:Q,itemKey:z,renderItem:X,onItemClick:W,isItemClickable:q,isItemExpanded:V,extractSearchText:Y=QX,trackStickyPrompt:K,selectedIndex:F,cursorNavRef:P,setCursor:v,jumpRef:M,onSearchMatchesChange:S,scanElement:Z0,setPositions:d}){let O=y.useRef([]),C=y.useRef(J),_=y.useRef(z);if(_.current!==z||J.length<O.current.length||J[0]!==C.current[0])O.current=J.map((H)=>z(H));else for(let H=O.current.length;H<J.length;H++)O.current.push(z(J[H]));C.current=J,_.current=z;let w=O.current,{range:D,topSpacer:p,bottomSpacer:J0,measureRef:E,spacerRef:k,offsets:H0,getItemTop:Y0,getItemElement:l,getItemHeight:h,scrollToIndex:z0}=wQ(Z,w,Q),[Q0,X0]=D,O0=y.useCallback((H)=>{if(h(H)===0)return!1;return UQ(J[H])},[h,J]);y.useImperativeHandle(P,()=>{let H=(u)=>v?.({uuid:u.uuid,msgType:u.type,expanded:!1,toolName:jQ(u)?.name}),L=F??-1,A=(u,n,a=O0)=>{for(let c=u;c>=0&&c<J.length;c+=n)if(a(c))return H(J[c]),!0;return!1},x=(u)=>O0(u)&&J[u].type==="user";return{enterCursor:()=>A(J.length-1,-1,x),navigatePrev:()=>A(L-1,-1),navigateNext:()=>{if(A(L+1,1))return;Z.current?.scrollToBottom(),v?.(null)},navigatePrevUser:()=>A(L-1,-1,x),navigateNextUser:()=>A(L+1,1,x),navigateTop:()=>A(0,1),navigateBottom:()=>A(J.length-1,-1),getSelected:()=>L>=0?J[L]??null:null}},[J,F,v,O0]);let T=y.useRef({offsets:H0,start:Q0,getItemElement:l,getItemTop:Y0,messages:J,scrollToIndex:z0});T.current={offsets:H0,start:Q0,getItemElement:l,getItemTop:Y0,messages:J,scrollToIndex:z0},y.useEffect(()=>{if(F===void 0)return;let H=T.current,L=H.getItemElement(F);if(L)Z.current?.scrollToElement(L,1);else H.scrollToIndex(F)},[F,Z]);let i=y.useRef(null),o=y.useRef({msgIdx:-1,positions:[]}),t=y.useRef(-1),I=y.useRef(0),W0=y.useRef(0),N=y.useRef(()=>{}),U=y.useRef(()=>{}),R=y.useRef({matches:[],ptr:0,screenOrd:0,prefixSum:[]}),s=y.useRef(-1),A0=y.useRef(!1);function V0(H){let L=T.current.getItemTop(H);return Math.max(0,L-dZ)}function G0(H){let L=Z.current,{msgIdx:A,positions:x}=o.current;if(!L||x.length===0||A<0){d?.(null);return}let u=Math.max(0,Math.min(H,x.length-1)),n=x[u],a=T.current.getItemTop(A),c=L.getViewportTop(),e=a-L.getScrollTop(),R0=L.getViewportHeight(),P0=c+e+n.row;if(P0<c||P0>=c+R0)L.scrollTo(Math.max(0,a+n.row-dZ)),e=a-L.getScrollTop(),P0=c+e+n.row;d?.({positions:x,rowOffset:c+e,currentIdx:u});let E0=R.current,U0=E0.prefixSum.at(-1)??0,j0=(E0.prefixSum[E0.ptr]??0)+u+1;S?.(U0,j0),m0(`highlight(i=${A}, ord=${u}/${x.length}): pos={row:${n.row},col:${n.col}} lo=${e} screenRow=${P0} badge=${j0}/${U0}`)}U.current=G0;let[M0,n0]=y.useState(0),y0=y.useCallback(()=>n0((H)=>H+1),[]);y.useEffect(()=>{let H=i.current;if(!H)return;let{idx:L,wantLast:A,tries:x}=H,u=Z.current;if(!u)return;let{getItemElement:n,getItemTop:a,scrollToIndex:c}=T.current,e=n(L),R0=e?.yogaNode?.getComputedHeight()??0;if(!e||R0===0){if(x>1){i.current=null,m0(`seek(i=${L}): no mount after scrollToIndex, skip`),N.current(A?-1:1);return}i.current={idx:L,wantLast:A,tries:x+1},c(L),y0();return}i.current=null,u.scrollTo(Math.max(0,a(L)-dZ));let P0=Z0?.(e)??[];if(o.current={msgIdx:L,positions:P0},m0(`seek(i=${L} t=${x}): ${P0.length} positions`),P0.length===0){if(++I.current>20){I.current=0;return}N.current(A?-1:1);return}I.current=0;let E0=A?P0.length-1:0;R.current.screenOrd=E0,t.current=-1,U.current(E0);let U0=W0.current;if(U0)W0.current=0,N.current(U0)},[M0]);function D0(H,L){let A=Z.current;if(!A)return;let x=T.current,{getItemElement:u,scrollToIndex:n}=x;if(H<0||H>=x.messages.length)return;d?.(null),o.current={msgIdx:-1,positions:[]},i.current={idx:H,wantLast:L,tries:0};let a=u(H),c=a?.yogaNode?.getComputedHeight()??0;if(a&&c>0)A.scrollTo(V0(H));else n(H);y0()}function T0(H){let L=R.current,{matches:A,prefixSum:x}=L,u=x.at(-1)??0;if(A.length===0)return;if(i.current){W0.current=H;return}if(t.current<0)t.current=L.ptr;let{positions:n}=o.current,a=L.screenOrd+H;if(a>=0&&a<n.length){L.screenOrd=a,G0(a),t.current=-1;return}let c=(L.ptr+H+A.length)%A.length;if(c===t.current){d?.(null),t.current=-1,m0(`step: wraparound at ptr=${c}, all ${A.length} msgs phantoms`);return}L.ptr=c,L.screenOrd=0,D0(A[c],H<0);let e=H<0?x[c+1]??u:x[c]+1;S?.(u,e)}N.current=T0,y.useImperativeHandle(M,()=>({jumpToIndex:(H)=>{let L=Z.current;if(L)L.scrollTo(V0(H))},setSearchQuery:(H)=>{i.current=null,o.current={msgIdx:-1,positions:[]},t.current=-1,d?.(null);let L=H.toLowerCase(),A=[],x=[0];if(L){let U0=T.current.messages;for(let j0=0;j0<U0.length;j0++){let k0=Y(U0[j0]),G=k0.indexOf(L),j=0;while(G>=0)j++,G=k0.indexOf(L,G+L.length);if(j>0)A.push(j0),x.push(x.at(-1)+j)}}let u=x.at(-1),n=0,a=Z.current,{offsets:c,start:e,getItemTop:R0}=T.current,P0=R0(e),E0=P0>=0?P0-c[e]:0;if(A.length>0&&a){let U0=s.current>=0?s.current:a.getScrollTop(),j0=1/0;for(let k0=0;k0<A.length;k0++){let G=Math.abs(E0+c[A[k0]]-U0);if(G<=j0)j0=G,n=k0}m0(`setSearchQuery('${H}'): ${A.length} msgs · ptr=${n} msgIdx=${A[n]} curTop=${U0} origin=${E0}`)}if(R.current={matches:A,ptr:n,screenOrd:0,prefixSum:x},A.length>0)D0(A[n],!0);else if(s.current>=0&&a)a.scrollTo(s.current);S?.(u,A.length>0?x[n+1]??u:0)},nextMatch:()=>T0(1),prevMatch:()=>T0(-1),setAnchor:()=>{let H=Z.current;if(H)s.current=H.getScrollTop()},disarmSearch:()=>{d?.(null),i.current=null,o.current={msgIdx:-1,positions:[]},t.current=-1},warmSearchIndex:async()=>{if(A0.current)return 0;let H=T.current.messages,L=500,A=0,x=performance.now();for(let n=0;n<H.length;n+=L){await PQ(0);let a=performance.now(),c=Math.min(n+L,H.length);for(let e=n;e<c;e++)Y(H[e]);A+=performance.now()-a}let u=Math.round(performance.now()-x);return m0(`warmSearchIndex: ${H.length} msgs · work=${Math.round(A)}ms wall=${u}ms chunks=${Math.ceil(H.length/L)}`),A0.current=!0,Math.round(A)}}),[Z]);let[i0,h0]=y.useState(null),b0=y.useRef({onItemClick:W,setHoveredKey:h0});b0.current={onItemClick:W,setHoveredKey:h0};let l0=y.useCallback((H,L)=>{let A=b0.current;if(!L&&A.onItemClick)A.onItemClick(H)},[]),t0=y.useCallback((H)=>{b0.current.setHoveredKey(H)},[]),_0=y.useCallback((H)=>{b0.current.setHoveredKey((L)=>L===H?null:L)},[]);return $(f0,{children:[B(b,{ref:k,height:p,flexShrink:0}),J.slice(Q0,X0).map((H,L)=>{let A=Q0+L,x=w[A],u=!!W&&(q?.(H)??!0),n=u&&i0===x,a=V?.(H);return B(qX,{itemKey:x,msg:H,idx:A,measureRef:E,expanded:a,hovered:n,clickable:u,onClickK:l0,onEnterK:t0,onLeaveK:_0,renderItem:X},x)}),J0>0&&B(b,{height:J0,flexShrink:0}),K&&B(VX,{messages:J,start:Q0,end:X0,offsets:H0,getItemTop:Y0,getItemElement:l,scrollRef:Z})]})}function VX({messages:J,start:Z,end:Q,offsets:z,getItemTop:X,getItemElement:W,scrollRef:q}){let{setStickyPrompt:V}=y.useContext(yZ),Y=y.useCallback((w)=>q.current?.subscribe(w)??YX,[q]);y.useSyncExternalStore(Y,()=>{let w=q.current;if(!w)return NaN;let D=w.getScrollTop()+w.getPendingDelta();return w.isSticky()?-1-D:D});let K=q.current?.isSticky()??!0,F=Math.max(0,(q.current?.getScrollTop()??0)+(q.current?.getPendingDelta()??0)),P=Z,v=-1;for(let w=Q-1;w>=Z;w--){let D=X(w);if(D>=0){if(D<F)break;v=D}P=w}let M=-1,S=null;if(P>0&&!K)for(let w=P-1;w>=0;w--){let D=XX(J[w]);if(D===null)continue;let p=X(w);if(p>=0&&p+1>=F)continue;M=w,S=D;break}let Z0=v>=0?v-z[P]:0,d=M>=0?Math.max(0,Z0+z[M]):-1,O=y.useRef({idx:-1,tries:0}),C=y.useRef("none"),_=y.useRef(-1);return y.useEffect(()=>{if(O.current.idx>=0)return;if(C.current==="armed"){C.current="force";return}let w=C.current==="force";if(C.current="none",!w&&_.current===M)return;if(_.current=M,S===null){V(null);return}let D=S.trimStart(),p=D.search(/\n\s*\n/),J0=(p>=0?D.slice(0,p):D).slice(0,zX).replace(/\s+/g," ").trim();if(J0===""){V(null);return}let E=M,k=d;V({text:J0,scrollTo:()=>{V("clicked"),C.current="armed";let H0=W(E);if(H0)q.current?.scrollToElement(H0,1);else q.current?.scrollTo(k),O.current={idx:E,tries:0}}})}),y.useEffect(()=>{if(O.current.idx<0)return;let w=W(O.current.idx);if(w)q.current?.scrollToElement(w,1),O.current={idx:-1,tries:0};else if(++O.current.tries>5)O.current={idx:-1,tries:0}}),null}var bQ,y,dZ=3,OQ,zX=500,AQ,YX=()=>{};var vQ=L0(()=>{NQ();p0();JX();LJ();ez();ZX();IZ();EQ();F0();bQ=N0(u0(),1),y=N0(S0(),1),OQ=new WeakMap;AQ=new WeakMap});function EX(J,Z){let Q=new Set(Z),z=new Set;return J.filter((X)=>{if(X.type==="system")return X.subtype!=="api_metrics";let W=X.message?.content[0];if(X.type==="assistant"){if(X.isApiErrorMessage)return!0;if(W?.type==="tool_use"&&W.name&&Q.has(W.name)){if("id"in W)z.add(W.id);return!0}return!1}if(X.type==="user"){if(W?.type==="tool_result")return W.tool_use_id!==void 0&&z.has(W.tool_use_id);return!X.isMeta}if(X.type==="attachment"){let q=X.attachment;return q?.type==="queued_command"&&q.commandMode==="prompt"&&!q.isMeta&&q.origin===void 0}return!1})}function bX(J,Z){let Q=new Set(Z),z=new Set,X=[],W=0;for(let q=0;q<J.length;q++){let V=J[q],Y=V.message?.content[0];if(V.type==="user"&&Y?.type!=="tool_result"&&!V.isMeta){W++;continue}if(V.type==="assistant"){if(Y?.type==="text")X[q]=W;else if(Y?.type==="tool_use"&&Y.name&&Q.has(Y.name))z.add(W)}}if(z.size===0)return J;return J.filter((q,V)=>{let Y=X[V];return Y===void 0||!z.has(Y)})}function yX(J,Z,Q=CX,z=vX){let X=Z.current,W=X?J.findIndex((Y)=>Y.uuid===X.uuid):-1,q=W>=0?W:X?Math.min(X.idx,Math.max(0,J.length-Q)):0;if(J.length-q>Q+z)q=J.length-Q;let V=J[q];if(V&&(X?.uuid!==V.uuid||X.idx!==q))Z.current={uuid:V.uuid,idx:q};else if(!V&&X)Z.current=null;return q}function _Q(J){return(J.type==="assistant"||J.type==="user"?g0(J):null)??J.uuid}function IX(J,Z){if(J.size!==Z.size)return!1;for(let Q of J)if(!Z.has(Q))return!1;return!0}function tJ(J,Z,Q,z,X,W){if(X==="transcript")return!0;switch(J.type){case"attachment":case"user":case"assistant":{if(J.type==="assistant"){let V=J.message.content[0];if(V?.type==="server_tool_use")return W.resolvedToolUseIDs.has(V.id)}let q=g0(J);if(!q)return!0;if(Z.has(q))return!1;if(Q.has(q))return!1;if(oQ(q,"PostToolUse",W))return!1;return FJ(z,W.resolvedToolUseIDs)}case"system":return J.subtype!=="api_error";case"grouped_tool_use":return J.messages.every((V)=>{let Y=V.message.content[0];return Y?.type==="tool_use"&&W.resolvedToolUseIDs.has(Y.id)});case"collapsed_read_search":return!1}}var mQ,YZ,f,UX,jX=null,yQ=null,MX=null,cZ=30,CX=200,vX=50,_X=({messages:J,tools:Z,commands:Q,verbose:z,toolJSX:X,toolUseConfirmQueue:W,inProgressToolUseIDs:q,isMessageSelectorVisible:V,conversationId:Y,screen:K,streamingToolUses:F,showAllInTranscript:P=!1,agentDefinitions:v,onOpenRateLimitOptions:M,hideLogo:S=!1,isLoading:Z0,hidePastThinking:d=!1,streamingThinking:O,hasStreamingText:C=!1,isBriefOnly:_=!1,unseenDivider:w,scrollRef:D,trackStickyPrompt:p,jumpRef:J0,onSearchMatchesChange:E,scanElement:k,setPositions:H0,disableRenderCap:Y0=!1,cursor:l=null,setCursor:h,cursorNavRef:z0,renderRange:Q0})=>{let{columns:X0}=FZ(),O0=RQ("transcript:toggleShowAll","Transcript","Ctrl+E"),T=f.useMemo(()=>nZ(J).filter(nQ),[J]),i=f.useMemo(()=>{if(!O)return!1;if(O.isStreaming)return!0;if(O.streamingEndedAt)return Date.now()-O.streamingEndedAt<30000;return!1},[O]),o=f.useMemo(()=>{if(!d)return null;if(i)return"streaming";for(let G=T.length-1;G>=0;G--){let j=T[G];if(j?.type==="assistant"){let B0=j.message.content;for(let r=B0.length-1;r>=0;r--)if(B0[r]?.type==="thinking")return`${j.uuid}:${r}`}else if(j?.type==="user"){if(!j.message.content.some((r)=>r.type==="tool_result"))return"no-thinking"}}return null},[T,d,i]),t=f.useMemo(()=>{for(let G=T.length-1;G>=0;G--){let j=T[G];if(j?.type==="user"){let B0=j.message.content;for(let r of B0)if(r.type==="text"){let w0=r.text;if(w0.startsWith("<bash-stdout")||w0.startsWith("<bash-stderr"))return j.uuid}}}return null},[T]),I=f.useMemo(()=>tQ(T),[T]),W0=f.useMemo(()=>F.filter((G)=>!q.has(G.contentBlock.id)&&!I.has(G.contentBlock.id)),[F,q,I]),N=f.useMemo(()=>W0.flatMap((G)=>{let j=gQ({content:[G.contentBlock]});return j.uuid=TQ(G.contentBlock.id,0),nZ([j])}),[W0]),U=K==="transcript",R=f.useMemo(()=>IQ(process.env.CLAUDE_CODE_DISABLE_VIRTUAL_SCROLL),[]),s=D!=null&&!R,A0=U&&!P&&!s,V0=f.useRef(null),{collapsed:G0,lookups:M0,hasTruncatedMessages:n0,hiddenMessageCount:y0}=f.useMemo(()=>{let G=z||c0()?T:iQ(T,{includeSnipped:!0}),j=rQ(G.filter((I0)=>I0.type!=="progress").filter((I0)=>!GZ(I0)).filter((I0)=>lQ(I0,U)),N),B0=[yQ,MX].filter((I0)=>I0!==null),r=[yQ].filter((I0)=>I0!==null),w0=B0.length>0&&!U?_?EX(j,B0):r.length>0?bX(j,r):j:j,C0=A0?w0.slice(-cZ):w0,VZ=A0&&w0.length>cZ,{messages:d0}=CJ(C0,Z,z),sQ=OJ(DJ(MJ(cQ(d0,Z))),z),eQ=aQ(T,C0),Zz=j.length-cZ;return{collapsed:sQ,lookups:eQ,hasTruncatedMessages:VZ,hiddenMessageCount:Zz}},[z,T,U,N,A0,Z,_]),D0=f.useMemo(()=>{let j=!s&&!Y0?yX(G0,V0):0;return Q0?G0.slice(Q0[0],Q0[1]):j>0?G0.slice(j):G0},[G0,Q0,s,Y0]),T0=f.useMemo(()=>new Set(F.map((G)=>G.contentBlock.id)),[F]),i0=$Q((G)=>G.tasks),h0=M0.asyncLaunchedToolUseIDs,b0=f.useMemo(()=>{if(h0.size===0)return null;let G=new Set;for(let[j,B0]of h0){let r=i0?.[B0]?.status;if(r==="running"||r==="requested"||r==="queued")G.add(j)}return G.size>0?G:null},[i0,h0]),l0=f.useMemo(()=>{if(!b0)return q;let G=new Set(q);for(let j of b0)G.add(j);return G},[q,b0]),t0=f.useMemo(()=>{if(!w)return-1;let G=w.firstUnseenUuid.slice(0,24);return D0.findIndex((j)=>j.uuid.slice(0,24)===G)},[w,D0]),_0=f.useMemo(()=>{if(!l)return-1;return D0.findIndex((G)=>G.uuid===l.uuid)},[l,D0]),[H,L]=f.useState(()=>new Set),A=f.useCallback((G)=>{let j=_Q(G);L((B0)=>{let r=new Set(B0);if(r.has(j))r.delete(j);else r.add(j);return r})},[]),x=f.useCallback((G)=>H.size>0&&H.has(_Q(G)),[H]),u=f.useRef(M0);u.current=M0;let n=f.useCallback((G)=>{if(G.type==="collapsed_read_search")return!0;if(G.type==="assistant"){let w0=G.message.content[0];return w0!=null&&xQ(w0)&&w0.type==="advisor_tool_result"&&w0.content.type==="advisor_result"}if(G.type!=="user")return!1;let j=G.message.content[0];if(j?.type!=="tool_result"||j.is_error||!G.toolUseResult)return!1;let B0=u.current.toolUseByToolUseID.get(j.tool_use_id)?.name;return(B0?mZ(Z,B0):void 0)?.isResultTruncated?.(G.toolUseResult)??!1},[Z]),a=(!X||!!X.shouldContinueAnimation)&&!W.length&&!V,c=l0.size>0,{progress:e}=hQ(),R0=f.useRef(null),P0=DZ().terminalProgressBarEnabled&&!kQ()&&!(jX?.isProactiveActive()??!1);f.useEffect(()=>{let G=P0?c?"indeterminate":"completed":null;if(R0.current===G)return;R0.current=G,e(G)},[e,P0,c]),f.useEffect(()=>{return()=>e(null)},[e]);let E0=f.useCallback((G)=>`${G.uuid}-${Y}`,[Y]),U0=(G,j)=>{let B0=j>0?D0[j-1]?.type:void 0,r=G.type==="user"&&B0==="user",w0=G.type==="collapsed_read_search"&&(C||rJ(D0,j,Z,T0)),C0=E0(G),VZ=B(aJ,{message:G,isUserContinuation:r,hasContentAfter:w0,tools:Z,commands:Q,verbose:z||x(G)||l?.expanded===!0&&j===_0,inProgressToolUseIDs:l0,streamingToolUseIDs:T0,screen:K,canAnimate:a,onOpenRateLimitOptions:M,lastThinkingBlockId:o,latestBashOutputUUID:t,columns:X0,isLoading:Z0,lookups:M0},C0),d0=B(uQ.Provider,{value:j===_0,children:VZ},C0);if(w&&j===t0)return[B(b,{marginTop:1,children:B(UZ,{title:`${w.count} new ${LZ(w.count,"message")}`,width:X0,color:"inactive"})},"unseen-divider"),d0];return d0},j0=f.useRef(new WeakMap),k0=f.useCallback((G)=>{let j=j0.current.get(G);if(j!==void 0)return j;let B0=AZ(G);if(G.type==="user"&&G.toolUseResult&&Array.isArray(G.message.content)){let w0=G.message.content.find((C0)=>C0.type==="tool_result");if(w0&&"tool_use_id"in w0){let C0=M0.toolUseByToolUseID.get(w0.tool_use_id),d0=(C0&&mZ(Z,C0.name))?.extractSearchText?.(G.toolUseResult);if(d0!==void 0)B0=d0}}let r=B0.toLowerCase();return j0.current.set(G,r),r},[Z,M0]);return $(f0,{children:[!S&&!(Q0&&Q0[0]>0)&&B(UX,{agentDefinitions:v}),n0&&B(UZ,{title:`${O0} to show ${gZ.bold(y0)} previous messages`,width:X0}),U&&P&&y0>0&&!Y0&&B(UZ,{title:`${O0} to hide ${gZ.bold(y0)} previous messages`,width:X0}),s?B(fQ.Provider,{value:!0,children:B(CQ,{messages:D0,scrollRef:D,columns:X0,itemKey:E0,renderItem:U0,onItemClick:A,isItemClickable:n,isItemExpanded:x,trackStickyPrompt:p,selectedIndex:_0>=0?_0:void 0,cursorNavRef:z0,setCursor:h,jumpRef:J0,onSearchMatchesChange:E,scanElement:k,setPositions:H0,extractSearchText:k0})}):D0.flatMap(U0),C&&!_&&B(kX,{}),i&&O&&!_&&B(b,{marginTop:1,children:B(dQ,{param:{type:"thinking",thinking:O.thinking},addMargin:!1,isTranscriptMode:!0,verbose:z,hideInTranscript:!1})})]})},kX=()=>{let J=iZ();if(!J)return null;return B(b,{alignItems:"flex-start",flexDirection:"row",marginTop:1,width:"100%",children:$(b,{flexDirection:"row",children:[B(b,{minWidth:2,children:B(g,{color:"text",children:SQ})}),B(b,{flexDirection:"column",children:B(pQ,{children:J})})]})})},g8;var sJ=L0(()=>{GX();KJ();BX();LX();qJ();KX();p0();wX();AX();FX();OX();AJ();UJ();cJ();EJ();HQ();HX();vZ();vJ();OZ();XJ();IZ();NX();PX();lZ();oJ();EQ();DX();CZ();gJ();FQ();vQ();F0();mQ=N0(u0(),1),YZ=N0(S0(),1),f=N0(S0(),1),UX=YZ.memo(function(Z){let Q=mQ.c(3),{agentDefinitions:z}=Z,X;if(Q[0]===Symbol.for("react.memo_cache_sentinel"))X=null,Q[0]=X;else X=Q[0];let W;if(Q[1]!==z)W=B(e0,{children:$(b,{flexDirection:"column",gap:1,children:[X,B(YZ.Suspense,{fallback:null,children:B(LQ,{agentDefinitions:z})})]})}),Q[1]=z,Q[2]=W;else W=Q[2];return W});g8=YZ.memo(_X,(J,Z)=>{let Q=Object.keys(J);for(let z of Q){if(z==="onOpenRateLimitOptions"||z==="scrollRef"||z==="trackStickyPrompt"||z==="setCursor"||z==="cursorNavRef"||z==="jumpRef"||z==="onSearchMatchesChange"||z==="scanElement"||z==="setPositions")continue;if(J[z]!==Z[z]){if(z==="streamingToolUses"){let X=J.streamingToolUses,W=Z.streamingToolUses;if(X.length===W.length&&X.every((q,V)=>q.contentBlock===W[V]?.contentBlock))continue}if(z==="inProgressToolUseIDs"){if(IX(J.inProgressToolUseIDs,Z.inProgressToolUseIDs))continue}if(z==="unseenDivider"){let X=J.unseenDivider,W=Z.unseenDivider;if(X?.firstUnseenUuid===W?.firstUnseenUuid&&X?.count===W?.count)continue}if(z==="tools"){let X=J.tools,W=Z.tools;if(X.length===W.length&&X.every((q,V)=>q.name===W[V]?.name))continue}return!1}}return!0})});
|
|
12
|
+
export{s0 as we,TX as xe,lZ as ye,xX as ze,$X as Ae,JJ as Be,QW as Ce,zW as De,XW as Ee,LJ as Fe,g8 as Ge,sJ as He};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{A5 as i,B5 as j,C5 as k,D5 as l,E5 as m,s5 as a,t5 as b,u5 as c,v5 as d,w5 as e,x5 as f,y5 as g,z5 as h}from"./cli-1.1.10-yzpymdrc.mjs";import"./cli-1.1.10-syrhp8d1.mjs";import"./cli-1.1.10-dppcc1yx.mjs";import"./cli-1.1.10-910qbqn7.mjs";import"./cli-1.1.10-39crhqg8.mjs";import"./cli-1.1.10-m0pdck7q.mjs";import"./cli-1.1.10-kdvf271d.mjs";import"./cli-1.1.10-bpcmdnpg.mjs";import"./cli-1.1.10-h0b2x5t4.mjs";import"./cli-1.1.10-dvxkr02c.mjs";import"./cli-1.1.10-nfpy32s8.mjs";import"./cli-1.1.10-3pch2a3h.mjs";import"./cli-1.1.10-2wkvf65f.mjs";import"./cli-1.1.10-fz99ag3y.mjs";import"./cli-1.1.10-jn6w68wj.mjs";import"./cli-1.1.10-a8e8n1bk.mjs";import"./cli-1.1.10-e7wxspgz.mjs";import"./cli-1.1.10-49bvng33.mjs";import"./cli-1.1.10-f00rps59.mjs";import"./cli-1.1.10-j20txpzn.mjs";import"./cli-1.1.10-sz5x71xt.mjs";import"./cli-1.1.10-6m1jpn0s.mjs";import"./cli-1.1.10-rgpghq5k.mjs";import"./cli-1.1.10-2scx8n6c.mjs";import"./cli-1.1.10-gmf5w0a4.mjs";m();export{l as storeOAuthAccountInfo,a as shouldUseClaudeAIAuth,e as refreshOAuthToken,k as populateOAuthAccountInfoIfNeeded,b as parseScopes,h as isOAuthTokenExpired,j as getOrganizationUUID,i as fetchProfileInfo,f as fetchAndStoreUserRoles,d as exchangeCodeForTokens,g as createAndStoreApiKey,c as buildAuthUrl};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{Dj as F,Du as Z,HT as f,qT as H,zu as w}from"./cli-1.1.10-hk2c91wp.mjs";import"./cli-1.1.10-w7zqsk0a.mjs";import"./cli-1.1.10-tv3hs8t2.mjs";import"./cli-1.1.10-gr69gke8.mjs";import"./cli-1.1.10-k9q658g7.mjs";import"./cli-1.1.10-0v8v9gwe.mjs";import"./cli-1.1.10-gydf5ktx.mjs";import"./cli-1.1.10-58e888gh.mjs";import"./cli-1.1.10-sv5wy20e.mjs";import"./cli-1.1.10-1mh77njj.mjs";import"./cli-1.1.10-58vqqfgj.mjs";import"./cli-1.1.10-m0xgys17.mjs";import"./cli-1.1.10-6g4fntdc.mjs";import"./cli-1.1.10-t3pn4ww9.mjs";import"./cli-1.1.10-1qxr18wg.mjs";import"./cli-1.1.10-kw60xwcx.mjs";import"./cli-1.1.10-6smvkrsd.mjs";import"./cli-1.1.10-0yx9c9s1.mjs";import"./cli-1.1.10-4xztz3b9.mjs";import{cY as K,kY as Y}from"./cli-1.1.10-gafedg04.mjs";import"./cli-1.1.10-qk19t6fd.mjs";import"./cli-1.1.10-jd00fn0g.mjs";import"./cli-1.1.10-msg7sda2.mjs";import"./cli-1.1.10-jfwqa1gq.mjs";import"./cli-1.1.10-x8dpgrgj.mjs";import"./cli-1.1.10-pkyv2v8k.mjs";import"./cli-1.1.10-250q8bef.mjs";import"./cli-1.1.10-5hrs5rqr.mjs";import"./cli-1.1.10-12dzgaq4.mjs";import"./cli-1.1.10-3a3dw1b0.mjs";import"./cli-1.1.10-e8zhf6q8.mjs";import"./cli-1.1.10-p28vy0yz.mjs";import"./cli-1.1.10-z0ddrtr1.mjs";import"./cli-1.1.10-ejwjw031.mjs";import"./cli-1.1.10-t8n5jx0z.mjs";import"./cli-1.1.10-c67v6p50.mjs";import"./cli-1.1.10-b0b04nbj.mjs";import"./cli-1.1.10-3vfwktcp.mjs";import"./cli-1.1.10-f7dqg4nd.mjs";import"./cli-1.1.10-453rs0bh.mjs";import"./cli-1.1.10-yzpymdrc.mjs";import"./cli-1.1.10-syrhp8d1.mjs";import"./cli-1.1.10-dppcc1yx.mjs";import"./cli-1.1.10-910qbqn7.mjs";import"./cli-1.1.10-39crhqg8.mjs";import"./cli-1.1.10-cn0a8vwn.mjs";import"./cli-1.1.10-m0pdck7q.mjs";import"./cli-1.1.10-kdvf271d.mjs";import"./cli-1.1.10-bpcmdnpg.mjs";import"./cli-1.1.10-h0b2x5t4.mjs";import"./cli-1.1.10-dvxkr02c.mjs";import"./cli-1.1.10-nfpy32s8.mjs";import"./cli-1.1.10-3pch2a3h.mjs";import"./cli-1.1.10-2wkvf65f.mjs";import"./cli-1.1.10-fz99ag3y.mjs";import"./cli-1.1.10-jn6w68wj.mjs";import"./cli-1.1.10-a8e8n1bk.mjs";import"./cli-1.1.10-e7wxspgz.mjs";import"./cli-1.1.10-49bvng33.mjs";import{kra as X,lna as B}from"./cli-1.1.10-f00rps59.mjs";import"./cli-1.1.10-j20txpzn.mjs";import"./cli-1.1.10-sz5x71xt.mjs";import"./cli-1.1.10-6m1jpn0s.mjs";import"./cli-1.1.10-rgpghq5k.mjs";import"./cli-1.1.10-2scx8n6c.mjs";import{Ysa as W}from"./cli-1.1.10-gmf5w0a4.mjs";async function h(q,J,y){if(K())return q("Cannot set color: This session is a swarm teammate. Teammate colors are assigned by the team leader.",{display:"system"}),null;if(!y||y.trim()===""){let b=w.join(", ");return q(`Please provide a color. Available colors: ${b}, default`,{display:"system"}),null}let k=y.trim().toLowerCase();if($.includes(k)){let b=B(),V=F();return await H(b,"default",V),J.setAppState((z)=>({...z,standaloneAgentContext:{...z.standaloneAgentContext,name:z.standaloneAgentContext?.name??"",color:void 0}})),q("Session color reset to default",{display:"system"}),null}if(!w.includes(k)){let b=w.join(", ");return q(`Invalid color "${k}". Available colors: ${b}, default`,{display:"system"}),null}let Q=B(),U=F();return await H(Q,k,U),J.setAppState((b)=>({...b,standaloneAgentContext:{...b.standaloneAgentContext,name:b.standaloneAgentContext?.name??"",color:k}})),q(`Session color set to: ${k}`,{display:"system"}),null}var $;var M=W(()=>{X();Z();f();Y();$=["default","reset","none","gray","grey"]});M();export{h as call};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import{$w as X,AD as n,FS as zj,JI as y,KI as c,Ny as b,Oy as x,QQ as l,QR as C,Vw as A,WO as B,XO as s,Xw as u,ZQ as qj,aP as k,ax as m,cS as wj,cx as N,ex as a,gU as R,hU as W,iU as Hj,mC as f,mP as o,oP as P,pP as e,py as U,qy as r,tD as Y,uD as I,vD as Z,wD as $,xD as O,yD as _}from"./cli-1.1.10-hk2c91wp.mjs";import"./cli-1.1.10-w7zqsk0a.mjs";import"./cli-1.1.10-tv3hs8t2.mjs";import"./cli-1.1.10-gr69gke8.mjs";import"./cli-1.1.10-k9q658g7.mjs";import"./cli-1.1.10-0v8v9gwe.mjs";import"./cli-1.1.10-gydf5ktx.mjs";import"./cli-1.1.10-58e888gh.mjs";import"./cli-1.1.10-sv5wy20e.mjs";import"./cli-1.1.10-1mh77njj.mjs";import"./cli-1.1.10-58vqqfgj.mjs";import"./cli-1.1.10-m0xgys17.mjs";import"./cli-1.1.10-6g4fntdc.mjs";import"./cli-1.1.10-t3pn4ww9.mjs";import"./cli-1.1.10-1qxr18wg.mjs";import"./cli-1.1.10-kw60xwcx.mjs";import"./cli-1.1.10-6smvkrsd.mjs";import"./cli-1.1.10-0yx9c9s1.mjs";import"./cli-1.1.10-4xztz3b9.mjs";import"./cli-1.1.10-gafedg04.mjs";import"./cli-1.1.10-qk19t6fd.mjs";import"./cli-1.1.10-jd00fn0g.mjs";import"./cli-1.1.10-msg7sda2.mjs";import"./cli-1.1.10-jfwqa1gq.mjs";import"./cli-1.1.10-x8dpgrgj.mjs";import"./cli-1.1.10-pkyv2v8k.mjs";import"./cli-1.1.10-250q8bef.mjs";import"./cli-1.1.10-5hrs5rqr.mjs";import"./cli-1.1.10-12dzgaq4.mjs";import"./cli-1.1.10-3a3dw1b0.mjs";import"./cli-1.1.10-e8zhf6q8.mjs";import"./cli-1.1.10-p28vy0yz.mjs";import"./cli-1.1.10-z0ddrtr1.mjs";import"./cli-1.1.10-ejwjw031.mjs";import"./cli-1.1.10-t8n5jx0z.mjs";import"./cli-1.1.10-c67v6p50.mjs";import"./cli-1.1.10-b0b04nbj.mjs";import"./cli-1.1.10-3vfwktcp.mjs";import"./cli-1.1.10-f7dqg4nd.mjs";import"./cli-1.1.10-453rs0bh.mjs";import"./cli-1.1.10-yzpymdrc.mjs";import"./cli-1.1.10-syrhp8d1.mjs";import{p9 as h,q9 as p}from"./cli-1.1.10-dppcc1yx.mjs";import"./cli-1.1.10-910qbqn7.mjs";import"./cli-1.1.10-39crhqg8.mjs";import"./cli-1.1.10-cn0a8vwn.mjs";import{Hga as D,Pga as g}from"./cli-1.1.10-m0pdck7q.mjs";import"./cli-1.1.10-kdvf271d.mjs";import"./cli-1.1.10-bpcmdnpg.mjs";import"./cli-1.1.10-h0b2x5t4.mjs";import"./cli-1.1.10-dvxkr02c.mjs";import"./cli-1.1.10-nfpy32s8.mjs";import"./cli-1.1.10-3pch2a3h.mjs";import"./cli-1.1.10-2wkvf65f.mjs";import"./cli-1.1.10-fz99ag3y.mjs";import"./cli-1.1.10-jn6w68wj.mjs";import"./cli-1.1.10-a8e8n1bk.mjs";import{ila as v,rla as E}from"./cli-1.1.10-e7wxspgz.mjs";import"./cli-1.1.10-49bvng33.mjs";import{kra as i,qoa as T}from"./cli-1.1.10-f00rps59.mjs";import"./cli-1.1.10-j20txpzn.mjs";import"./cli-1.1.10-sz5x71xt.mjs";import"./cli-1.1.10-6m1jpn0s.mjs";import"./cli-1.1.10-rgpghq5k.mjs";import"./cli-1.1.10-2scx8n6c.mjs";import{Ysa as M}from"./cli-1.1.10-gmf5w0a4.mjs";async function t(q,j,H,w){j.onCompactProgress?.({type:"hooks_start",hookType:"pre_compact"}),j.setSDKStatus?.("compacting");try{let[z,J]=await Promise.all([f({trigger:"manual",customInstructions:H||null},j.abortController.signal),d(j,q)]),Q=O(H,z.newCustomInstructions);j.setStreamMode?.("requesting"),j.setResponseLength?.(()=>0),j.onCompactProgress?.({type:"compact_start"});let K=await w.reactiveCompactOnPromptTooLong(q,J,{customInstructions:Q,trigger:"manual"});if(!K.ok)switch(K.reason){case"too_few_groups":throw Error(Y);case"aborted":throw Error(I);case"exhausted":case"error":case"media_unstrippable":throw Error(Z)}k(void 0);let F=$(K.result);B(void 0,F,j.contentReplacementState),X(),W.cache.clear?.();let V=[z.userDisplayMessage,K.result.userDisplayMessage].filter(Boolean).join(`
|
|
2
|
+
`)||void 0;return{type:"compact",compactionResult:{...K.result,userDisplayMessage:V},displayText:L(j,V)}}finally{j.setStreamMode?.("requesting"),j.setResponseLength?.(()=>0),j.onCompactProgress?.({type:"compact_end"}),j.setSDKStatus?.(null)}}function L(q,j){let H=b("tip"),w=U("app:toggleTranscript","Global","ctrl+o"),z=[...q.options.verbose?[]:[`(${w} to see full summary)`],...j?[j]:[],...H?[H]:[]];return h.dim("Compacted "+z.join(`
|
|
3
|
+
`))}async function d(q,j){let H=q.getAppState(),w=await l(q.options.tools,q.options.mainLoopModel,Array.from(H.toolPermissionContext.additionalWorkingDirectories.keys()),q.options.mcpClients),z=y({mainThreadAgentDefinition:void 0,toolUseContext:q,customSystemPrompt:q.options.customSystemPrompt,defaultSystemPrompt:w,appendSystemPrompt:q.options.appendSystemPrompt}),[J,Q]=await Promise.all([W(),R()]);return{systemPrompt:z,userContext:J,systemContext:Q,toolUseContext:q,forkContextMessages:j}}var G=null,Aj=async(q,j)=>{let{abortController:H}=j,{messages:w}=j;if(w=C(w),w.length===0)throw Error("No messages to compact");let z=q.trim();try{if(!z){let V=await P(w,j.agentId);if(V){W.cache.clear?.();let S=$(V);return B(void 0,S,j.contentReplacementState),A(j.options.querySource??"compact",j.agentId),T(),X(),{type:"compact",compactionResult:V,displayText:L(j)}}}if(G?.isReactiveOnlyMode())return await t(w,j,z,G);let Q=(await N(w,j)).messages,K=await _(Q,j,await d(j,Q),!1,z,!1);k(void 0),X(),W.cache.clear?.();let F=$(K);return B(void 0,F,j.contentReplacementState),{type:"compact",compactionResult:K,displayText:L(j,K.userDisplayMessage)}}catch(J){if(H.signal.aborted)throw Error("Compaction canceled.");else if(v(J,Y))throw Error(Y);else if(v(J,Z))throw Error(Z);else throw D(J),Error(`Error during compaction: ${J}`)}};var jj=M(()=>{p();i();qj();Hj();r();u();n();m();a();s();e();o();E();zj();g();wj();x();c()});jj();export{Aj as call};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{$ea as E,Aea as d,Bea as e,Cea as f,Dea as g,Eea as h,Fea as i,Gea as j,Hea as k,Iea as l,Jea as m,Kea as n,Lea as o,Mea as p,Nea as q,Oea as r,Pea as s,Qea as t,Rea as u,Sea as v,Tea as w,Uea as x,Vea as y,Wea as z,Xea as A,Yea as B,Zea as C,_ea as D,afa as F,bfa as G,cfa as H,dfa as I,efa as J,ffa as K,gfa as L,hfa as M,pea as a,qea as b,zea as c}from"./cli-1.1.10-m0pdck7q.mjs";import"./cli-1.1.10-kdvf271d.mjs";import"./cli-1.1.10-bpcmdnpg.mjs";import"./cli-1.1.10-h0b2x5t4.mjs";import"./cli-1.1.10-dvxkr02c.mjs";import"./cli-1.1.10-nfpy32s8.mjs";import"./cli-1.1.10-3pch2a3h.mjs";import"./cli-1.1.10-2wkvf65f.mjs";import"./cli-1.1.10-fz99ag3y.mjs";import"./cli-1.1.10-jn6w68wj.mjs";import"./cli-1.1.10-a8e8n1bk.mjs";import"./cli-1.1.10-e7wxspgz.mjs";import"./cli-1.1.10-49bvng33.mjs";import"./cli-1.1.10-f00rps59.mjs";import"./cli-1.1.10-j20txpzn.mjs";import"./cli-1.1.10-sz5x71xt.mjs";import"./cli-1.1.10-gmf5w0a4.mjs";M();export{A as shouldSkipPluginAutoupdate,o as saveGlobalConfig,y as saveCurrentProjectConfig,h as resetTrustDialogAcceptedCacheForTesting,l as resetProjectConfigForTests,k as resetGlobalConfigForTests,E as recordFirstStartTime,n as onGlobalConfigChange,m as isProjectConfigKey,j as isPathTrusted,f as isGlobalConfigKey,u as isConfigReadingAllowed,z as isAutoUpdaterDisabled,H as getUserClaudeRulesDir,s as getRemoteControlAtStartup,w as getProjectPathForConfig,D as getOrCreateUserID,F as getMemoryPath,G as getManagedClaudeRulesDir,p as getGlobalConfigWriteCount,r as getGlobalConfig,t as getCustomApiKeyStatus,x as getCurrentProjectConfig,C as getAutoUpdaterDisabledReason,B as formatAutoUpdaterDisabledReason,v as enableConfigs,i as checkHasTrustDialogAccepted,J as _wouldLoseAuthStateForTesting,L as _setGlobalConfigCacheForTesting,I as _getConfigForTesting,K as _buildWrittenGlobalConfig,c as SHOW_CACHE_STATS_MODES,g as PROJECT_CONFIG_KEYS,a as NOTIFICATION_CHANNELS,e as GLOBAL_CONFIG_KEYS,b as EDITOR_MODES,d as DEFAULT_GLOBAL_CONFIG,q as CONFIG_WRITE_DISPLAY_THRESHOLD};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{Ig as f,Jg as q}from"./cli-1.1.10-qnswwjvv.mjs";import"./cli-1.1.10-y4afn758.mjs";import"./cli-1.1.10-4h8gax7r.mjs";import"./cli-1.1.10-9jy4caft.mjs";import"./cli-1.1.10-ecahzspx.mjs";import"./cli-1.1.10-jyk734bb.mjs";import"./cli-1.1.10-qh2qrbg9.mjs";import"./cli-1.1.10-9q1p3zj2.mjs";import"./cli-1.1.10-psqaker4.mjs";import"./cli-1.1.10-hs44pkht.mjs";import"./cli-1.1.10-8fgppw70.mjs";import"./cli-1.1.10-ryjne6pb.mjs";import"./cli-1.1.10-hk2c91wp.mjs";import"./cli-1.1.10-w7zqsk0a.mjs";import"./cli-1.1.10-tv3hs8t2.mjs";import"./cli-1.1.10-gr69gke8.mjs";import"./cli-1.1.10-k9q658g7.mjs";import"./cli-1.1.10-0v8v9gwe.mjs";import"./cli-1.1.10-gydf5ktx.mjs";import"./cli-1.1.10-58e888gh.mjs";import"./cli-1.1.10-sv5wy20e.mjs";import"./cli-1.1.10-1mh77njj.mjs";import"./cli-1.1.10-58vqqfgj.mjs";import"./cli-1.1.10-m0xgys17.mjs";import"./cli-1.1.10-6g4fntdc.mjs";import"./cli-1.1.10-t3pn4ww9.mjs";import"./cli-1.1.10-1qxr18wg.mjs";import"./cli-1.1.10-kw60xwcx.mjs";import"./cli-1.1.10-6smvkrsd.mjs";import"./cli-1.1.10-0yx9c9s1.mjs";import"./cli-1.1.10-4xztz3b9.mjs";import"./cli-1.1.10-gafedg04.mjs";import"./cli-1.1.10-qk19t6fd.mjs";import"./cli-1.1.10-jd00fn0g.mjs";import"./cli-1.1.10-msg7sda2.mjs";import"./cli-1.1.10-jfwqa1gq.mjs";import"./cli-1.1.10-x8dpgrgj.mjs";import"./cli-1.1.10-pkyv2v8k.mjs";import"./cli-1.1.10-250q8bef.mjs";import"./cli-1.1.10-5hrs5rqr.mjs";import"./cli-1.1.10-12dzgaq4.mjs";import"./cli-1.1.10-3a3dw1b0.mjs";import"./cli-1.1.10-e8zhf6q8.mjs";import"./cli-1.1.10-p28vy0yz.mjs";import"./cli-1.1.10-z0ddrtr1.mjs";import"./cli-1.1.10-ejwjw031.mjs";import{i4 as d,k4 as b}from"./cli-1.1.10-t8n5jx0z.mjs";import"./cli-1.1.10-c67v6p50.mjs";import"./cli-1.1.10-b0b04nbj.mjs";import"./cli-1.1.10-3vfwktcp.mjs";import"./cli-1.1.10-f7dqg4nd.mjs";import"./cli-1.1.10-453rs0bh.mjs";import"./cli-1.1.10-yzpymdrc.mjs";import"./cli-1.1.10-syrhp8d1.mjs";import"./cli-1.1.10-dppcc1yx.mjs";import"./cli-1.1.10-910qbqn7.mjs";import"./cli-1.1.10-39crhqg8.mjs";import"./cli-1.1.10-cn0a8vwn.mjs";import"./cli-1.1.10-m0pdck7q.mjs";import"./cli-1.1.10-kdvf271d.mjs";import"./cli-1.1.10-bpcmdnpg.mjs";import"./cli-1.1.10-h0b2x5t4.mjs";import"./cli-1.1.10-dvxkr02c.mjs";import"./cli-1.1.10-nfpy32s8.mjs";import"./cli-1.1.10-3pch2a3h.mjs";import"./cli-1.1.10-2wkvf65f.mjs";import"./cli-1.1.10-fz99ag3y.mjs";import"./cli-1.1.10-jn6w68wj.mjs";import"./cli-1.1.10-a8e8n1bk.mjs";import"./cli-1.1.10-e7wxspgz.mjs";import"./cli-1.1.10-49bvng33.mjs";import"./cli-1.1.10-f00rps59.mjs";import"./cli-1.1.10-j20txpzn.mjs";import"./cli-1.1.10-sz5x71xt.mjs";import"./cli-1.1.10-6m1jpn0s.mjs";import"./cli-1.1.10-rgpghq5k.mjs";import"./cli-1.1.10-2scx8n6c.mjs";import{Ysa as l}from"./cli-1.1.10-gmf5w0a4.mjs";var y=async(h,k)=>{return d(f,{onClose:h,context:k,defaultTab:"Config"})};var v=l(()=>{q();b()});v();export{y as call};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{A9 as i,B9 as j,C9 as k,s9 as a,t9 as b,u9 as c,v9 as d,w9 as e,x9 as f,y9 as g,z9 as h}from"./cli-1.1.10-39crhqg8.mjs";import"./cli-1.1.10-gmf5w0a4.mjs";k();export{j as SENSITIVE_URL_QUERY_PARAM_NAMES,e as MOONSHOT_API_HOSTS,f as KIMI_CODE_API_HOST,g as GLM_API_HOSTS,a as GITHUB_429_MAX_RETRIES,c as GITHUB_429_MAX_DELAY_SEC,b as GITHUB_429_BASE_DELAY_SEC,d as GEMINI_API_HOST,h as DEEPSEEK_API_HOSTS,i as COPILOT_HEADERS};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{sh as S0,th as Gv}from"./cli-1.1.10-ty52w0t8.mjs";import{Ph as T0,Qh as _v}from"./cli-1.1.10-hs44pkht.mjs";import{$Q as $0,$i as w0,QR as i0,aR as ev,aj as vv,bj as h0,cS as sv,cj as Jv,cx as c0,ex as nv,hj as q0,ij as Qv,vk as D0,wk as Xv}from"./cli-1.1.10-hk2c91wp.mjs";import"./cli-1.1.10-w7zqsk0a.mjs";import"./cli-1.1.10-tv3hs8t2.mjs";import"./cli-1.1.10-gr69gke8.mjs";import"./cli-1.1.10-k9q658g7.mjs";import"./cli-1.1.10-0v8v9gwe.mjs";import"./cli-1.1.10-gydf5ktx.mjs";import"./cli-1.1.10-58e888gh.mjs";import"./cli-1.1.10-sv5wy20e.mjs";import"./cli-1.1.10-1mh77njj.mjs";import"./cli-1.1.10-58vqqfgj.mjs";import"./cli-1.1.10-m0xgys17.mjs";import"./cli-1.1.10-6g4fntdc.mjs";import"./cli-1.1.10-t3pn4ww9.mjs";import"./cli-1.1.10-1qxr18wg.mjs";import"./cli-1.1.10-kw60xwcx.mjs";import"./cli-1.1.10-6smvkrsd.mjs";import"./cli-1.1.10-0yx9c9s1.mjs";import"./cli-1.1.10-4xztz3b9.mjs";import"./cli-1.1.10-gafedg04.mjs";import{EY as j0,FY as $v,IY as l0,KY as iv,lY as m0,mY as Tv}from"./cli-1.1.10-qk19t6fd.mjs";import"./cli-1.1.10-jd00fn0g.mjs";import{BZ as f0,F1 as G0,_0 as W,a1 as z,u1 as g0}from"./cli-1.1.10-msg7sda2.mjs";import"./cli-1.1.10-jfwqa1gq.mjs";import"./cli-1.1.10-x8dpgrgj.mjs";import"./cli-1.1.10-pkyv2v8k.mjs";import"./cli-1.1.10-250q8bef.mjs";import"./cli-1.1.10-5hrs5rqr.mjs";import"./cli-1.1.10-12dzgaq4.mjs";import"./cli-1.1.10-3a3dw1b0.mjs";import"./cli-1.1.10-e8zhf6q8.mjs";import"./cli-1.1.10-p28vy0yz.mjs";import"./cli-1.1.10-z0ddrtr1.mjs";import"./cli-1.1.10-ejwjw031.mjs";import{i4 as H,j4 as Z,k4 as $}from"./cli-1.1.10-t8n5jx0z.mjs";import{l4 as cv}from"./cli-1.1.10-c67v6p50.mjs";import"./cli-1.1.10-b0b04nbj.mjs";import"./cli-1.1.10-3vfwktcp.mjs";import"./cli-1.1.10-f7dqg4nd.mjs";import"./cli-1.1.10-453rs0bh.mjs";import"./cli-1.1.10-yzpymdrc.mjs";import"./cli-1.1.10-syrhp8d1.mjs";import"./cli-1.1.10-dppcc1yx.mjs";import"./cli-1.1.10-910qbqn7.mjs";import"./cli-1.1.10-39crhqg8.mjs";import"./cli-1.1.10-cn0a8vwn.mjs";import{Daa as Z0,Dba as p0,Eba as d0,Raa as b0,Wba as lv,bba as R0,iba as bv,mda as wv,v_ as A0,w_ as Fv}from"./cli-1.1.10-m0pdck7q.mjs";import{eha as Y,kha as Y0}from"./cli-1.1.10-kdvf271d.mjs";import"./cli-1.1.10-bpcmdnpg.mjs";import"./cli-1.1.10-h0b2x5t4.mjs";import"./cli-1.1.10-dvxkr02c.mjs";import"./cli-1.1.10-nfpy32s8.mjs";import"./cli-1.1.10-3pch2a3h.mjs";import"./cli-1.1.10-2wkvf65f.mjs";import"./cli-1.1.10-fz99ag3y.mjs";import"./cli-1.1.10-jn6w68wj.mjs";import"./cli-1.1.10-a8e8n1bk.mjs";import"./cli-1.1.10-e7wxspgz.mjs";import"./cli-1.1.10-49bvng33.mjs";import"./cli-1.1.10-f00rps59.mjs";import"./cli-1.1.10-j20txpzn.mjs";import"./cli-1.1.10-sz5x71xt.mjs";import"./cli-1.1.10-6m1jpn0s.mjs";import"./cli-1.1.10-rgpghq5k.mjs";import"./cli-1.1.10-2scx8n6c.mjs";import{Usa as F0,Ysa as X0}from"./cli-1.1.10-gmf5w0a4.mjs";function P0(J){let v=[];return Hv(J,v),Vv(J,v),Uv(J,v),Yv(J,v),qv(J,v),v.sort((Q,X)=>{if(Q.severity!==X.severity)return Q.severity==="warning"?-1:1;return(X.savingsTokens??0)-(Q.savingsTokens??0)}),v}function Hv(J,v){if(J.percentage>=L0)v.push({severity:"warning",title:`Context is ${J.percentage}% full`,detail:J.isAutoCompactEnabled?"Autocompact will trigger soon, which discards older messages. Use /compact now to control what gets kept.":"Autocompact is disabled. Use /compact to free space, or enable autocompact in /config."})}function Vv(J,v){if(!J.messageBreakdown)return;for(let Q of J.messageBreakdown.toolCallsByType){let X=Q.callTokens+Q.resultTokens,V=X/J.rawMaxTokens*100;if(V<N0||X<U0)continue;let K=Wv(Q.name,X,V);if(K)v.push(K)}}function Wv(J,v,Q){let X=Y(v);switch(J){case w0:return{severity:"warning",title:`Bash results using ${X} tokens (${Q.toFixed(0)}%)`,detail:"Pipe output through head, tail, or grep to reduce result size. Avoid cat on large files — use Read with offset/limit instead.",savingsTokens:Math.floor(v*0.5)};case q0:return{severity:"info",title:`Read results using ${X} tokens (${Q.toFixed(0)}%)`,detail:"Use offset and limit parameters to read only the sections you need. Avoid re-reading entire files when you only need a few lines.",savingsTokens:Math.floor(v*0.3)};case h0:return{severity:"info",title:`Grep results using ${X} tokens (${Q.toFixed(0)}%)`,detail:"Add more specific patterns or use the glob or type parameter to narrow file types. Consider Glob for file discovery instead of Grep.",savingsTokens:Math.floor(v*0.3)};case D0:return{severity:"info",title:`WebFetch results using ${X} tokens (${Q.toFixed(0)}%)`,detail:"Web page content can be very large. Consider extracting only the specific information needed.",savingsTokens:Math.floor(v*0.4)};default:if(Q>=20)return{severity:"info",title:`${J} using ${X} tokens (${Q.toFixed(0)}%)`,detail:"This tool is consuming a significant portion of context.",savingsTokens:Math.floor(v*0.2)};return null}}function Uv(J,v){if(!J.messageBreakdown)return;let X=J.messageBreakdown.toolCallsByType.find((F)=>F.name===q0);if(!X)return;let V=X.callTokens+X.resultTokens,K=V/J.rawMaxTokens*100,U=X.resultTokens/J.rawMaxTokens*100;if(K>=N0&&V>=U0)return;if(U>=Zv&&X.resultTokens>=U0)v.push({severity:"info",title:`File reads using ${Y(X.resultTokens)} tokens (${U.toFixed(0)}%)`,detail:"If you are re-reading files, consider referencing earlier reads. Use offset/limit for large files.",savingsTokens:Math.floor(X.resultTokens*0.3)})}function Yv(J,v){let Q=J.memoryFiles.reduce((V,K)=>V+K.tokens,0),X=Q/J.rawMaxTokens*100;if(X>=zv&&Q>=Kv){let V=[...J.memoryFiles].sort((K,U)=>U.tokens-K.tokens).slice(0,3).map((K)=>{return`${Z0(K.path)} (${Y(K.tokens)})`}).join(", ");v.push({severity:"info",title:`Memory files using ${Y(Q)} tokens (${X.toFixed(0)}%)`,detail:`Largest: ${V}. Use /memory to review and prune stale entries.`,savingsTokens:Math.floor(Q*0.3)})}}function qv(J,v){if(!J.isAutoCompactEnabled&&J.percentage>=50&&J.percentage<L0)v.push({severity:"info",title:"Autocompact is disabled",detail:"Without autocompact, you will hit context limits and lose the conversation. Enable it in /config or use /compact manually."})}var N0=15,U0=1e4,Zv=5,L0=80,zv=5,Kv=5000;var C0=X0(()=>{vv();Qv();Jv();Xv();b0();Y0()});function O0(J){let v=M0.c(5),{suggestions:Q}=J;if(Q.length===0)return null;let X;if(v[0]===Symbol.for("react.memo_cache_sentinel"))X=H(z,{bold:!0,children:"Suggestions"}),v[0]=X;else X=v[0];let V;if(v[1]!==Q)V=Q.map(Iv),v[1]=Q,v[2]=V;else V=v[2];let K;if(v[3]!==V)K=Z(W,{flexDirection:"column",marginTop:1,children:[X,V]}),v[3]=V,v[4]=K;else K=v[4];return K}function Iv(J,v){return Z(W,{flexDirection:"column",marginTop:v===0?0:1,children:[Z(W,{children:[H(S0,{status:J.severity,withSpace:!0}),H(z,{bold:!0,children:J.title}),J.savingsTokens?Z(z,{dimColor:!0,children:[" ",A0.arrowRight," save ~",Y(J.savingsTokens)]}):null]}),H(W,{marginLeft:2,children:H(z,{dimColor:!0,children:J.detail})})]},v)}var M0;var B0=X0(()=>{Fv();G0();Y0();Gv();$();M0=F0(f0(),1)});function i(J,v){return J===v.length-1?"└":"├"}function hv(){let J=I0.c(2);return null}function y0(J){let v=new Map;for(let X of J){let V=R0(X.source),K=v.get(V)||[];K.push(X),v.set(V,K)}for(let[X,V]of v.entries())v.set(X,V.sort((K,U)=>U.tokens-K.tokens));let Q=new Map;for(let X of Dv){let V=v.get(X);if(V)Q.set(X,V)}return Q}function E0(J){let v=I0.c(87),{data:Q}=J,{categories:X,totalTokens:V,rawMaxTokens:K,percentage:U,gridRows:F,model:q,memoryFiles:I,mcpTools:G,deferredBuiltinTools:x,systemTools:r,systemPromptSections:a,agents:o,skills:n,messageBreakdown:H0}=Q,N,L,P,C,b,A,f,S,w,h;if(v[0]!==X||v[1]!==F||v[2]!==G||v[3]!==q||v[4]!==U||v[5]!==K||v[6]!==r||v[7]!==x||v[8]!==V){let n0=x===void 0?[]:x,_0=X.filter(jv),s;if(v[19]!==X)s=X.some(mv),v[19]=X,v[20]=s;else s=v[20];let _=s,x0=n0.length>0,p=X.find(gv);if(L=W,f="column",S=1,v[21]===Symbol.for("react.memo_cache_sentinel"))w=H(z,{bold:!0,children:"Context Usage"}),v[21]=w;else w=v[21];let d;if(v[22]!==F)d=F.map(pv),v[22]=F,v[23]=d;else d=v[23];let g;if(v[24]!==d)g=H(W,{flexDirection:"column",flexShrink:0,marginLeft:-1,children:d}),v[24]=d,v[25]=g;else g=v[25];let m;if(v[26]!==V)m=Y(V),v[26]=V,v[27]=m;else m=v[27];let j;if(v[28]!==K)j=Y(K),v[28]=K,v[29]=j;else j=v[29];let l;if(v[30]!==q||v[31]!==U||v[32]!==m||v[33]!==j)l=Z(z,{dimColor:!0,children:[q," · ",m,"/",j," ","tokens (",U,"%)"]}),v[30]=q,v[31]=U,v[32]=m,v[33]=j,v[34]=l;else l=v[34];let t,v0,J0;if(v[35]===Symbol.for("react.memo_cache_sentinel"))t=H(hv,{}),v0=H(z,{children:" "}),J0=H(z,{dimColor:!0,italic:!0,children:"Estimated usage by category"}),v[35]=t,v[36]=v0,v[37]=J0;else t=v[35],v0=v[36],J0=v[37];let Q0;if(v[38]!==K)Q0=(D,r0)=>{let a0=Y(D.tokens),o0=D.isDeferred?"N/A":`${(D.tokens/K*100).toFixed(1)}%`,e0=D.name===z0,s0=D.name,t0=D.isDeferred?" ":e0?"⛝":"⛁";return Z(W,{children:[H(z,{color:D.color,children:t0}),Z(z,{children:[" ",s0,": "]}),Z(z,{dimColor:!0,children:[a0," tokens (",o0,")"]})]},r0)},v[38]=K,v[39]=Q0;else Q0=v[39];let V0=_0.map(Q0),c;if(v[40]!==X||v[41]!==K)c=(X.find(kv)?.tokens??0)>0&&Z(W,{children:[H(z,{dimColor:!0,children:"⛶"}),H(z,{children:" Free space: "}),Z(z,{dimColor:!0,children:[Y(X.find(uv)?.tokens||0)," ","(",((X.find(Ev)?.tokens||0)/K*100).toFixed(1),"%)"]})]}),v[40]=X,v[41]=K,v[42]=c;else c=v[42];let W0=p&&p.tokens>0&&Z(W,{children:[H(z,{color:p.color,children:"⛝"}),Z(z,{dimColor:!0,children:[" ",p.name,": "]}),Z(z,{dimColor:!0,children:[Y(p.tokens)," tokens (",(p.tokens/K*100).toFixed(1),"%)"]})]}),T;if(v[43]!==l||v[44]!==V0||v[45]!==c||v[46]!==W0)T=Z(W,{flexDirection:"column",gap:0,flexShrink:0,children:[l,t,v0,J0,V0,c,W0]}),v[43]=l,v[44]=V0,v[45]=c,v[46]=W0,v[47]=T;else T=v[47];if(v[48]!==g||v[49]!==T)h=Z(W,{flexDirection:"row",gap:2,children:[g,T]}),v[48]=g,v[49]=T,v[50]=h;else h=v[50];if(N=W,P="column",C=-1,v[51]!==_||v[52]!==G)b=G.length>0&&Z(W,{flexDirection:"column",marginTop:1,children:[Z(W,{children:[H(z,{bold:!0,children:"MCP tools"}),Z(z,{dimColor:!0,children:[" ","· /mcp",_?" (loaded on-demand)":""]})]}),G.some(Rv)&&Z(W,{flexDirection:"column",marginTop:1,children:[H(z,{dimColor:!0,children:"Loaded"}),G.filter(yv).map(Bv)]}),_&&G.some(Ov)&&Z(W,{flexDirection:"column",marginTop:1,children:[H(z,{dimColor:!0,children:"Available"}),G.filter(Mv).map(Sv)]}),!_&&G.map(fv)]}),v[51]=_,v[52]=G,v[53]=b;else b=v[53];A=(r&&r.length>0||x0)&&!1,v[0]=X,v[1]=F,v[2]=G,v[3]=q,v[4]=U,v[5]=K,v[6]=r,v[7]=x,v[8]=V,v[9]=N,v[10]=L,v[11]=P,v[12]=C,v[13]=b,v[14]=A,v[15]=f,v[16]=S,v[17]=w,v[18]=h}else N=v[9],L=v[10],P=v[11],C=v[12],b=v[13],A=v[14],f=v[15],S=v[16],w=v[17],h=v[18];let M;if(v[54]!==a)M=a&&a.length>0&&!1,v[54]=a,v[55]=M;else M=v[55];let O;if(v[56]!==o)O=o.length>0&&Z(W,{flexDirection:"column",marginTop:1,children:[Z(W,{children:[H(z,{bold:!0,children:"Custom agents"}),H(z,{dimColor:!0,children:" · /agents"})]}),Array.from(y0(o).entries()).map(Cv)]}),v[56]=o,v[57]=O;else O=v[57];let B;if(v[58]!==I)B=I.length>0&&Z(W,{flexDirection:"column",marginTop:1,children:[Z(W,{children:[H(z,{bold:!0,children:"Memory files"}),H(z,{dimColor:!0,children:" · /memory"})]}),I.map(Pv)]}),v[58]=I,v[59]=B;else B=v[59];let y;if(v[60]!==n)y=n&&n.tokens>0&&Z(W,{flexDirection:"column",marginTop:1,children:[Z(W,{children:[H(z,{bold:!0,children:"Skills"}),H(z,{dimColor:!0,children:" · /skills"})]}),Array.from(y0(n.skillFrontmatter).entries()).map(Nv)]}),v[60]=n,v[61]=y;else y=v[61];let R;if(v[62]!==H0)R=H0&&!1,v[62]=H0,v[63]=R;else R=v[63];let E;if(v[64]!==N||v[65]!==M||v[66]!==O||v[67]!==B||v[68]!==y||v[69]!==R||v[70]!==P||v[71]!==C||v[72]!==b||v[73]!==A)E=Z(N,{flexDirection:P,marginLeft:C,children:[b,A,M,O,B,y,R]}),v[64]=N,v[65]=M,v[66]=O,v[67]=B,v[68]=y,v[69]=R,v[70]=P,v[71]=C,v[72]=b,v[73]=A,v[74]=E;else E=v[74];let u;if(v[75]!==Q)u=P0(Q),v[75]=Q,v[76]=u;else u=v[76];let k;if(v[77]!==u)k=H(O0,{suggestions:u}),v[77]=u,v[78]=k;else k=v[78];let e;if(v[79]!==L||v[80]!==E||v[81]!==k||v[82]!==f||v[83]!==S||v[84]!==w||v[85]!==h)e=Z(L,{flexDirection:f,paddingLeft:S,children:[w,h,E,k]}),v[79]=L,v[80]=E,v[81]=k,v[82]=f,v[83]=S,v[84]=w,v[85]=h,v[86]=e;else e=v[86];return e}function Nv(J){let[v,Q]=J;return Z(W,{flexDirection:"column",marginTop:1,children:[H(z,{dimColor:!0,children:v}),Q.map(Lv)]},v)}function Lv(J,v,Q){return Z(W,{children:[Z(z,{children:[i(v,Q)," ",J.name,": "]}),Z(z,{dimColor:!0,children:[Y(J.tokens)," tokens"]})]},v)}function Pv(J,v,Q){return Z(W,{children:[Z(z,{children:[i(v,Q)," ",Z0(J.path),": "]}),Z(z,{dimColor:!0,children:[Y(J.tokens)," tokens"]})]},v)}function Cv(J){let[v,Q]=J;return Z(W,{flexDirection:"column",marginTop:1,children:[H(z,{dimColor:!0,children:v}),Q.map(Av)]},v)}function Av(J,v,Q){return Z(W,{children:[Z(z,{children:[i(v,Q)," ",J.agentType,": "]}),Z(z,{dimColor:!0,children:[Y(J.tokens)," tokens"]})]},v)}function fv(J,v,Q){return Z(W,{children:[Z(z,{children:[i(v,Q)," ",J.name,": "]}),Z(z,{dimColor:!0,children:[Y(J.tokens)," tokens"]})]},v)}function Sv(J,v,Q){return H(W,{children:Z(z,{dimColor:!0,children:[i(v,Q)," ",J.name]})},v)}function Mv(J){return!J.isLoaded}function Ov(J){return!J.isLoaded}function Bv(J,v,Q){return Z(W,{children:[Z(z,{children:[i(v,Q)," ",J.name,": "]}),Z(z,{dimColor:!0,children:[Y(J.tokens)," tokens"]})]},v)}function yv(J){return J.isLoaded}function Rv(J){return J.isLoaded}function Ev(J){return J.name==="Free space"}function uv(J){return J.name==="Free space"}function kv(J){return J.name==="Free space"}function pv(J,v){return H(W,{flexDirection:"row",children:J.map(dv)},v)}function dv(J,v){if(J.categoryName==="Free space")return H(z,{dimColor:!0,children:"⛶ "},v);if(J.categoryName===z0)return H(z,{color:J.color,children:"⛝ "},v);return H(z,{color:J.color,children:J.squareFullness>=0.7?"⛁ ":"⛀ "},v)}function gv(J){return J.name===z0}function mv(J){return J.isDeferred&&J.name.includes("MCP")}function jv(J){return J.tokens>0&&J.name!=="Free space"&&J.name!==z0&&!J.isDeferred}var I0,z0="Autocompact buffer",Dv;var u0=X0(()=>{G0();C0();b0();Y0();bv();wv();B0();$();I0=F0(f0(),1);Dv=["Project","User","Managed","Plugin","Built-in"]});function rv({data:J,onDone:v}){let Q=K0.useRef(null),{rows:X}=l0(m0()),V=K0.useCallback(()=>v("Context dialog dismissed",{display:"system"}),[v]),K=j0(V);g0((F,q)=>{if(q.escape||q.return){V();return}if(q.upArrow||q.ctrl&&F==="p"){Q.current?.scrollBy(-k0);return}if(q.downArrow||q.ctrl&&F==="n")Q.current?.scrollBy(k0)});let U=Math.max(5,X-xv);return Z(W,{flexDirection:"column",children:[H(W,{maxHeight:U,children:H(T0,{ref:Q,flexDirection:"column",flexGrow:1,children:H(E0,{data:J})})}),H(z,{dimColor:!0,children:K.pending?`Press ${K.keyName} again to exit`:`${p0}/${d0} to scroll · esc or enter to close`})]})}function av(J){return i0(J)}async function uJ(J,v){let{messages:Q,getAppState:X,options:{mainLoopModel:V,tools:K}}=v,U=av(Q),{messages:F}=await c0(U),q=process.stdout.columns||80,I=X(),G=await $0(F,V,async()=>I.toolPermissionContext,K,I.agentDefinitions,q,v,void 0,U);return H(rv,{data:G,onDone:J})}var K0,xv=4,k0=3;var ov=X0(()=>{G0();u0();lv();iv();$v();Tv();_v();nv();ev();sv();$();K0=F0(cv(),1)});ov();export{uJ as call};
|