@claudiolabs/claudin 0.7.2 → 0.7.4
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/LICENSE +23 -200
- package/README.md +25 -89
- package/dist/chunks/AgentTool-0.7.4-n3w81nr0.mjs +1 -0
- package/dist/chunks/App-0.7.4-f82nhj4b.mjs +1 -0
- package/dist/chunks/ApproveApiKey-0.7.4-27gdpx41.mjs +1 -0
- package/dist/chunks/AssistantSessionChooser-0.7.4-dfwr2199.mjs +1 -0
- package/dist/chunks/AutoModeOptInDialog-0.7.4-y9fxqce2.mjs +1 -0
- package/dist/chunks/BypassPermissionsModeDialog-0.7.4-vqmkfdv5.mjs +1 -0
- package/dist/chunks/ClaudeMdExternalIncludesDialog-0.7.4-yya4exxc.mjs +1 -0
- package/dist/chunks/ConsoleOAuthFlow-0.7.4-pkmm3hrc.mjs +1 -0
- package/dist/chunks/DiffDialog-0.7.4-c524vxrv.mjs +7 -0
- package/dist/chunks/Doctor-0.7.4-pa6ms0qn.mjs +1 -0
- package/dist/chunks/ExplorerDialog-0.7.4-bmp67p2b.mjs +6 -0
- package/dist/chunks/Grove-0.7.4-9acw1m3r.mjs +1 -0
- package/dist/chunks/ITermBackend-0.7.4-dy75k5qx.mjs +1 -0
- package/dist/chunks/InvalidConfigDialog-0.7.4-8ra8bj22.mjs +1 -0
- package/dist/chunks/InvalidSettingsDialog-0.7.4-n4h644pz.mjs +1 -0
- package/dist/chunks/MigrationDialog-0.7.4-cnays88h.mjs +1 -0
- package/dist/chunks/Onboarding-0.7.4-fqvxpdtd.mjs +1 -0
- package/dist/chunks/ProviderManager-0.7.4-e21vv07m.mjs +1 -0
- package/dist/chunks/REPL-0.7.4-n38hda18.mjs +1 -0
- package/dist/chunks/ResumeConversation-0.7.4-f3xp8e01.mjs +1 -0
- package/dist/chunks/SnapshotUpdateDialog-0.7.4-39wyejgx.mjs +1 -0
- package/dist/chunks/TeleportProgress-0.7.4-6373v72h.mjs +1 -0
- package/dist/chunks/TeleportRepoMismatchDialog-0.7.4-y6km4665.mjs +1 -0
- package/dist/chunks/TeleportResumeWrapper-0.7.4-wh96svjn.mjs +1 -0
- package/dist/chunks/TmuxBackend-0.7.4-grwq5d7n.mjs +9 -0
- package/dist/chunks/ToolSearchTool-0.7.4-k0kt2bxp.mjs +1 -0
- package/dist/chunks/TrustDialog-0.7.4-xhgj5jat.mjs +1 -0
- package/dist/chunks/activeProvider-0.7.4-vzfmpvjc.mjs +1 -0
- package/dist/chunks/add-dir-0.7.4-mfwwzt70.mjs +1 -0
- package/dist/chunks/agentTypes-0.7.4-9fgk10yx.mjs +1 -0
- package/dist/chunks/agents-0.7.4-9fxas1pf.mjs +110 -0
- package/dist/chunks/agents-0.7.4-eart70kj.mjs +3 -0
- package/dist/chunks/api-0.7.4-eqsmhts7.mjs +1 -0
- package/dist/chunks/asciicast-0.7.4-900ptry2.mjs +1 -0
- package/dist/chunks/assistant-0.7.4-qp02hgvg.mjs +1 -0
- package/dist/chunks/auth-0.7.4-ccf1t8td.mjs +1 -0
- package/dist/chunks/auth-0.7.4-tzph01c0.mjs +1 -0
- package/dist/chunks/autoMode-0.7.4-5m9bs574.mjs +48 -0
- package/dist/chunks/autoUpdater-0.7.4-s4krk2je.mjs +1 -0
- package/dist/chunks/backgroundHousekeeping-0.7.4-zqytsqmx.mjs +1 -0
- package/dist/chunks/branch-0.7.4-29eypmvg.mjs +4 -0
- package/dist/chunks/bridge-0.7.4-45nq3nxm.mjs +2 -0
- package/dist/chunks/bridgeConfig-0.7.4-fb2nwbxq.mjs +1 -0
- package/dist/chunks/bridgeEnabled-0.7.4-rreg4xyn.mjs +1 -0
- package/dist/chunks/bridgeMain-0.7.4-m4rjydb5.mjs +88 -0
- package/dist/chunks/bridgePointer-0.7.4-mjexaxq5.mjs +1 -0
- package/dist/chunks/btw-0.7.4-rw5186va.mjs +1 -0
- package/dist/chunks/buddy-0.7.4-mwgfqb1k.mjs +3 -0
- package/dist/chunks/cacache-0.7.4-254mqspw.mjs +1 -0
- package/dist/chunks/cache-probe-0.7.4-kjrs8qh8.mjs +21 -0
- package/dist/chunks/cacheStats-0.7.4-2pfk76t7.mjs +4 -0
- package/dist/chunks/caches-0.7.4-qjs93vrb.mjs +1 -0
- package/dist/chunks/claudeDesktop-0.7.4-e2h7mp9r.mjs +1 -0
- package/dist/chunks/claudemd-0.7.4-tv76d8c5.mjs +1 -0
- package/dist/chunks/clear-0.7.4-2qt378q0.mjs +1 -0
- package/dist/chunks/clearTerminal-0.7.4-5jfekabd.mjs +1 -0
- package/dist/chunks/cli-0.7.4-00n6rj7y.mjs +3 -0
- package/dist/chunks/cli-0.7.4-0a7934k3.mjs +21 -0
- package/dist/chunks/cli-0.7.4-0a9kv7ps.mjs +2 -0
- package/dist/chunks/cli-0.7.4-0c1vbfmd.mjs +2 -0
- package/dist/chunks/cli-0.7.4-0h9b4tge.mjs +2 -0
- package/dist/chunks/cli-0.7.4-0thtf513.mjs +2 -0
- package/dist/chunks/cli-0.7.4-0ytxwr14.mjs +2 -0
- package/dist/chunks/cli-0.7.4-12k33ng9.mjs +2 -0
- package/dist/chunks/cli-0.7.4-15xs793c.mjs +2 -0
- package/dist/chunks/cli-0.7.4-1ba5bwdq.mjs +42 -0
- package/dist/chunks/cli-0.7.4-1tkzz9x6.mjs +5469 -0
- package/dist/chunks/cli-0.7.4-2apswqf5.mjs +59 -0
- package/dist/chunks/cli-0.7.4-2fxnz89x.mjs +6 -0
- package/dist/chunks/cli-0.7.4-2haqz80h.mjs +16 -0
- package/dist/chunks/cli-0.7.4-2p5w6279.mjs +45 -0
- package/dist/chunks/cli-0.7.4-33k7j18b.mjs +3 -0
- package/dist/chunks/cli-0.7.4-3e7assg4.mjs +2 -0
- package/dist/chunks/cli-0.7.4-3gn2tfsb.mjs +2 -0
- package/dist/chunks/cli-0.7.4-40m5mk3s.mjs +2 -0
- package/dist/chunks/cli-0.7.4-47nyf9j2.mjs +2 -0
- package/dist/chunks/cli-0.7.4-489pp4nd.mjs +2 -0
- package/dist/chunks/cli-0.7.4-4a6hn01n.mjs +133 -0
- package/dist/chunks/cli-0.7.4-4br84c8j.mjs +2 -0
- package/dist/chunks/cli-0.7.4-4ee9swqr.mjs +2 -0
- package/dist/chunks/cli-0.7.4-4pagjrxs.mjs +18 -0
- package/dist/chunks/cli-0.7.4-4sh782tn.mjs +2 -0
- package/dist/chunks/cli-0.7.4-507dp6s1.mjs +2 -0
- package/dist/chunks/cli-0.7.4-510c371d.mjs +12 -0
- package/dist/chunks/cli-0.7.4-51t8p2qe.mjs +2 -0
- package/dist/chunks/cli-0.7.4-533hdyc8.mjs +2 -0
- package/dist/chunks/cli-0.7.4-53k7apn9.mjs +2 -0
- package/dist/chunks/cli-0.7.4-58p1wenr.mjs +2 -0
- package/dist/chunks/cli-0.7.4-5fjrbavz.mjs +2 -0
- package/dist/chunks/cli-0.7.4-5k1t5jcn.mjs +2 -0
- package/dist/chunks/cli-0.7.4-61etrp8x.mjs +2 -0
- package/dist/chunks/cli-0.7.4-61svw97d.mjs +3 -0
- package/dist/chunks/cli-0.7.4-6265e9tz.mjs +2 -0
- package/dist/chunks/cli-0.7.4-62ac47x8.mjs +2 -0
- package/dist/chunks/cli-0.7.4-66p94pps.mjs +3 -0
- package/dist/chunks/cli-0.7.4-68dbzpkf.mjs +3 -0
- package/dist/chunks/cli-0.7.4-6cft4ytf.mjs +15 -0
- package/dist/chunks/cli-0.7.4-6n295sx3.mjs +2 -0
- package/dist/chunks/cli-0.7.4-6sqa761d.mjs +2 -0
- package/dist/chunks/cli-0.7.4-6tvnyqjj.mjs +2 -0
- package/dist/chunks/cli-0.7.4-6zr3mpvn.mjs +2 -0
- package/dist/chunks/cli-0.7.4-729n63er.mjs +2 -0
- package/dist/chunks/cli-0.7.4-7ftm6c0s.mjs +26 -0
- package/dist/chunks/cli-0.7.4-7k74b1yf.mjs +1 -0
- package/dist/chunks/cli-0.7.4-7mzefe20.mjs +2 -0
- package/dist/chunks/cli-0.7.4-7t2zsdm5.mjs +2 -0
- package/dist/chunks/cli-0.7.4-7tr153ha.mjs +2 -0
- package/dist/chunks/cli-0.7.4-7wr3z77e.mjs +2 -0
- package/dist/chunks/cli-0.7.4-85txq06q.mjs +2 -0
- package/dist/chunks/cli-0.7.4-8hskaxte.mjs +2 -0
- package/dist/chunks/cli-0.7.4-8nss0n1a.mjs +25 -0
- package/dist/chunks/cli-0.7.4-8vd2zhhw.mjs +2 -0
- package/dist/chunks/cli-0.7.4-8wbk60h9.mjs +2 -0
- package/dist/chunks/cli-0.7.4-8xxafyv0.mjs +18 -0
- package/dist/chunks/cli-0.7.4-90d95m4d.mjs +2 -0
- package/dist/chunks/cli-0.7.4-9kf16ber.mjs +2 -0
- package/dist/chunks/cli-0.7.4-9kzgbrwj.mjs +2 -0
- package/dist/chunks/cli-0.7.4-9r1s7xtv.mjs +6 -0
- package/dist/chunks/cli-0.7.4-9vph2ayc.mjs +2 -0
- package/dist/chunks/cli-0.7.4-9zsty6c5.mjs +2 -0
- package/dist/chunks/cli-0.7.4-abs9vv3n.mjs +2 -0
- package/dist/chunks/cli-0.7.4-ae96heq4.mjs +2 -0
- package/dist/chunks/cli-0.7.4-ahm3gnaw.mjs +2 -0
- package/dist/chunks/cli-0.7.4-akf6rhsn.mjs +4 -0
- package/dist/chunks/cli-0.7.4-aswaa5m4.mjs +2 -0
- package/dist/chunks/cli-0.7.4-at2fkgpk.mjs +2 -0
- package/dist/chunks/cli-0.7.4-b5qdnvdg.mjs +2 -0
- package/dist/chunks/cli-0.7.4-bh4xsr2c.mjs +4 -0
- package/dist/chunks/cli-0.7.4-bkgx5wz7.mjs +2 -0
- package/dist/chunks/cli-0.7.4-bmw3qchp.mjs +2 -0
- package/dist/chunks/cli-0.7.4-bqk5rkrz.mjs +2 -0
- package/dist/chunks/cli-0.7.4-c0e99xn9.mjs +24 -0
- package/dist/chunks/cli-0.7.4-cfsjq69q.mjs +2 -0
- package/dist/chunks/cli-0.7.4-d82gqb10.mjs +2 -0
- package/dist/chunks/cli-0.7.4-d9y5wx3y.mjs +2 -0
- package/dist/chunks/cli-0.7.4-da69w12w.mjs +3 -0
- package/dist/chunks/cli-0.7.4-deyaxrbc.mjs +2 -0
- package/dist/chunks/cli-0.7.4-djbdmzgq.mjs +2 -0
- package/dist/chunks/cli-0.7.4-dwjhqjan.mjs +2 -0
- package/dist/chunks/cli-0.7.4-e2bhfh6d.mjs +2 -0
- package/dist/chunks/cli-0.7.4-ee9ansx1.mjs +24 -0
- package/dist/chunks/cli-0.7.4-eg7xj51b.mjs +2 -0
- package/dist/chunks/cli-0.7.4-egc286gx.mjs +2 -0
- package/dist/chunks/cli-0.7.4-ejm88apc.mjs +2 -0
- package/dist/chunks/cli-0.7.4-emdbzgja.mjs +2 -0
- package/dist/chunks/cli-0.7.4-en1ggcz7.mjs +2 -0
- package/dist/chunks/cli-0.7.4-evtmfc7t.mjs +2 -0
- package/dist/chunks/cli-0.7.4-f23ty9s6.mjs +39 -0
- package/dist/chunks/cli-0.7.4-f8qmyn41.mjs +4 -0
- package/dist/chunks/cli-0.7.4-fhgnbfvj.mjs +2 -0
- package/dist/chunks/cli-0.7.4-g9hc44qq.mjs +2 -0
- package/dist/chunks/cli-0.7.4-g9w5x5ns.mjs +4 -0
- package/dist/chunks/cli-0.7.4-ge77h9d7.mjs +2 -0
- package/dist/chunks/cli-0.7.4-ghq0kwkv.mjs +2 -0
- package/dist/chunks/cli-0.7.4-gjn70n3p.mjs +2 -0
- package/dist/chunks/cli-0.7.4-gr1feczd.mjs +2 -0
- package/dist/chunks/cli-0.7.4-gxccpbef.mjs +3 -0
- package/dist/chunks/cli-0.7.4-h0ze5j97.mjs +2 -0
- package/dist/chunks/cli-0.7.4-h24m11yy.mjs +2 -0
- package/dist/chunks/cli-0.7.4-h5274d0h.mjs +2 -0
- package/dist/chunks/cli-0.7.4-h57hq23q.mjs +2 -0
- package/dist/chunks/cli-0.7.4-h5wxsd2h.mjs +9 -0
- package/dist/chunks/cli-0.7.4-h94hrj45.mjs +2 -0
- package/dist/chunks/cli-0.7.4-hayqy916.mjs +2 -0
- package/dist/chunks/cli-0.7.4-hegk157e.mjs +6 -0
- package/dist/chunks/cli-0.7.4-hnfm0p8b.mjs +2 -0
- package/dist/chunks/cli-0.7.4-hsa9khw7.mjs +17 -0
- package/dist/chunks/cli-0.7.4-hvnq08bj.mjs +24 -0
- package/dist/chunks/cli-0.7.4-hvnzwb5v.mjs +194 -0
- package/dist/chunks/cli-0.7.4-hvs3h0hc.mjs +3 -0
- package/dist/chunks/cli-0.7.4-hw93j7vq.mjs +2 -0
- package/dist/chunks/cli-0.7.4-hz7s1rtn.mjs +2 -0
- package/dist/chunks/cli-0.7.4-jg5ajbyb.mjs +2 -0
- package/dist/chunks/cli-0.7.4-jgg33mak.mjs +2 -0
- package/dist/chunks/cli-0.7.4-jgswqtvj.mjs +3 -0
- package/dist/chunks/cli-0.7.4-k735e5sg.mjs +133 -0
- package/dist/chunks/cli-0.7.4-k7s78hkt.mjs +58 -0
- package/dist/chunks/cli-0.7.4-kmgvx19r.mjs +5 -0
- package/dist/chunks/cli-0.7.4-kmxpdkne.mjs +2 -0
- package/dist/chunks/cli-0.7.4-kpp23hbz.mjs +2 -0
- package/dist/chunks/cli-0.7.4-kz0h2jkr.mjs +15 -0
- package/dist/chunks/cli-0.7.4-m1f3fc2v.mjs +2 -0
- package/dist/chunks/cli-0.7.4-m2yz2rtr.mjs +2 -0
- package/dist/chunks/cli-0.7.4-m6n2gga8.mjs +4 -0
- package/dist/chunks/cli-0.7.4-mdv26096.mjs +6 -0
- package/dist/chunks/cli-0.7.4-mg4yp3b0.mjs +2 -0
- package/dist/chunks/cli-0.7.4-mmzkb167.mjs +2 -0
- package/dist/chunks/cli-0.7.4-mq3qzben.mjs +2 -0
- package/dist/chunks/cli-0.7.4-mqbmk6y6.mjs +4 -0
- package/dist/chunks/cli-0.7.4-n9arxrya.mjs +12 -0
- package/dist/chunks/cli-0.7.4-naanktx2.mjs +34 -0
- package/dist/chunks/cli-0.7.4-nbnqrjgm.mjs +2 -0
- package/dist/chunks/cli-0.7.4-nnd4g2nm.mjs +2 -0
- package/dist/chunks/cli-0.7.4-nst28yat.mjs +2 -0
- package/dist/chunks/cli-0.7.4-p85h0qry.mjs +17 -0
- package/dist/chunks/cli-0.7.4-pgtn2eay.mjs +2 -0
- package/dist/chunks/cli-0.7.4-pjfb6eq2.mjs +2 -0
- package/dist/chunks/cli-0.7.4-pyyaz246.mjs +2 -0
- package/dist/chunks/cli-0.7.4-q23avgwg.mjs +2 -0
- package/dist/chunks/cli-0.7.4-q4g37dxk.mjs +2 -0
- package/dist/chunks/cli-0.7.4-q4q5x19y.mjs +2 -0
- package/dist/chunks/cli-0.7.4-q83h4xz7.mjs +10 -0
- package/dist/chunks/cli-0.7.4-qcc7kfkv.mjs +2 -0
- package/dist/chunks/cli-0.7.4-qcqz94w2.mjs +2 -0
- package/dist/chunks/cli-0.7.4-qjfmn9db.mjs +2 -0
- package/dist/chunks/cli-0.7.4-r0fkpzp3.mjs +2 -0
- package/dist/chunks/cli-0.7.4-r0nqh5aw.mjs +2 -0
- package/dist/chunks/cli-0.7.4-r1ebyx3p.mjs +2 -0
- package/dist/chunks/cli-0.7.4-r6ste2g4.mjs +2 -0
- package/dist/chunks/cli-0.7.4-rn8x06p3.mjs +2 -0
- package/dist/chunks/cli-0.7.4-rr7x6s9y.mjs +2 -0
- package/dist/chunks/cli-0.7.4-rskynrc5.mjs +4 -0
- package/dist/chunks/cli-0.7.4-rszd2m9d.mjs +3 -0
- package/dist/chunks/cli-0.7.4-rts5twex.mjs +2 -0
- package/dist/chunks/cli-0.7.4-rxsb2bkg.mjs +2 -0
- package/dist/chunks/cli-0.7.4-rzkdke3e.mjs +4 -0
- package/dist/chunks/cli-0.7.4-s97t3v7z.mjs +2 -0
- package/dist/chunks/cli-0.7.4-sm8wf8qx.mjs +67 -0
- package/dist/chunks/cli-0.7.4-sw7nh3hq.mjs +2 -0
- package/dist/chunks/cli-0.7.4-sxvnky38.mjs +2 -0
- package/dist/chunks/cli-0.7.4-syg2nab8.mjs +18 -0
- package/dist/chunks/cli-0.7.4-t68xf0hs.mjs +2 -0
- package/dist/chunks/cli-0.7.4-tcwf7yvv.mjs +2 -0
- package/dist/chunks/cli-0.7.4-te9nvehv.mjs +2 -0
- package/dist/chunks/cli-0.7.4-tkcchh6p.mjs +2 -0
- package/dist/chunks/cli-0.7.4-tme1sywb.mjs +2 -0
- package/dist/chunks/cli-0.7.4-tny04z8h.mjs +2 -0
- package/dist/chunks/cli-0.7.4-tsf2s2bg.mjs +2 -0
- package/dist/chunks/cli-0.7.4-tz5hgphm.mjs +3 -0
- package/dist/chunks/cli-0.7.4-v70q1qwp.mjs +2 -0
- package/dist/chunks/cli-0.7.4-ve6x1t8v.mjs +5 -0
- package/dist/chunks/cli-0.7.4-vq696c8w.mjs +2 -0
- package/dist/chunks/cli-0.7.4-vtnqj21e.mjs +2 -0
- package/dist/chunks/cli-0.7.4-vw2w38z0.mjs +2 -0
- package/dist/chunks/cli-0.7.4-wa74g17n.mjs +2 -0
- package/dist/chunks/cli-0.7.4-wb89zsbs.mjs +2 -0
- package/dist/chunks/cli-0.7.4-wes9w04e.mjs +2 -0
- package/dist/chunks/cli-0.7.4-wh44hxq2.mjs +5 -0
- package/dist/chunks/cli-0.7.4-wmw8fpv7.mjs +12 -0
- package/dist/chunks/cli-0.7.4-wtz9ed9r.mjs +2 -0
- package/dist/chunks/cli-0.7.4-wv6x6pzr.mjs +50 -0
- package/dist/chunks/cli-0.7.4-x1w88hnn.mjs +12 -0
- package/dist/chunks/cli-0.7.4-x5fcmgcd.mjs +4 -0
- package/dist/chunks/cli-0.7.4-xgw8jjs2.mjs +2 -0
- package/dist/chunks/cli-0.7.4-xhw7cmg0.mjs +2 -0
- package/dist/chunks/cli-0.7.4-xt87yshe.mjs +20 -0
- package/dist/chunks/cli-0.7.4-y3z3j4d9.mjs +8 -0
- package/dist/chunks/cli-0.7.4-y4w46256.mjs +2 -0
- package/dist/chunks/cli-0.7.4-y7sxx7d0.mjs +2 -0
- package/dist/chunks/cli-0.7.4-ybvnfxcf.mjs +4 -0
- package/dist/chunks/cli-0.7.4-yces9dz7.mjs +2 -0
- package/dist/chunks/cli-0.7.4-yjqyy8n2.mjs +2 -0
- package/dist/chunks/cli-0.7.4-yrbhzggw.mjs +3 -0
- package/dist/chunks/cli-0.7.4-yvdbdncp.mjs +2 -0
- package/dist/chunks/cli-0.7.4-z1vgf16g.mjs +25 -0
- package/dist/chunks/cli-0.7.4-z48enz4n.mjs +2 -0
- package/dist/chunks/cli-0.7.4-z88n7a08.mjs +2 -0
- package/dist/chunks/cli-0.7.4-za9xa1j8.mjs +3 -0
- package/dist/chunks/cli-0.7.4-zaa684f4.mjs +15 -0
- package/dist/chunks/cli-0.7.4-zbdceewq.mjs +7 -0
- package/dist/chunks/cli-0.7.4-zdkph0g9.mjs +2 -0
- package/dist/chunks/cli-0.7.4-zzze6t7f.mjs +2 -0
- package/dist/chunks/client-0.7.4-hxpb2apz.mjs +1 -0
- package/dist/chunks/color-0.7.4-pkanvtan.mjs +1 -0
- package/dist/chunks/compact-0.7.4-sjz49brs.mjs +3 -0
- package/dist/chunks/config-0.7.4-f5dgrp7x.mjs +1 -0
- package/dist/chunks/config-0.7.4-mc1mvka6.mjs +1 -0
- package/dist/chunks/constants-0.7.4-q426cgcp.mjs +1 -0
- package/dist/chunks/context-0.7.4-ssay296s.mjs +1 -0
- package/dist/chunks/context-noninteractive-0.7.4-y9y9az38.mjs +1 -0
- package/dist/chunks/conversation-0.7.4-m00s33jt.mjs +1 -0
- package/dist/chunks/copilotHeaders-0.7.4-pv50vnpq.mjs +1 -0
- package/dist/chunks/copy-0.7.4-ktk8gabv.mjs +9 -0
- package/dist/chunks/cost-0.7.4-r3td1n69.mjs +1 -0
- package/dist/chunks/createSSHSession-0.7.4-hhqxxfmb.mjs +1 -0
- package/dist/chunks/createSession-0.7.4-ebs0k8yt.mjs +1 -0
- package/dist/chunks/debug-0.7.4-0nebad2s.mjs +1 -0
- package/dist/chunks/defaultActionDeps-0.7.4-jbzptdbp.mjs +1446 -0
- package/dist/chunks/desktop-0.7.4-fmsm731w.mjs +1 -0
- package/dist/chunks/detectRepository-0.7.4-qse5a13f.mjs +1 -0
- package/dist/chunks/detection-0.7.4-a7c8arz9.mjs +1 -0
- package/dist/chunks/diff-0.7.4-ayakpeyz.mjs +1 -0
- package/dist/chunks/doctor-0.7.4-hwhyhjfr.mjs +1 -0
- package/dist/chunks/doctorDiagnostic-0.7.4-qm9knj52.mjs +1 -0
- package/dist/chunks/earlyInput-0.7.4-x3ysj16t.mjs +1 -0
- package/dist/chunks/effort-0.7.4-1sv0dhhk.mjs +10 -0
- package/dist/chunks/engine-0.7.4-gz82afzv.mjs +1 -0
- package/dist/chunks/envLessBridgeConfig-0.7.4-q1h5p7jv.mjs +1 -0
- package/dist/chunks/envUtils-0.7.4-ww7aa64y.mjs +1 -0
- package/dist/chunks/environmentSelection-0.7.4-r3g0hp0m.mjs +1 -0
- package/dist/chunks/environments-0.7.4-8n2fat2s.mjs +1 -0
- package/dist/chunks/errors-0.7.4-v9nwybq7.mjs +1 -0
- package/dist/chunks/exampleCommands-0.7.4-80n656nx.mjs +1 -0
- package/dist/chunks/exit-0.7.4-zmzt7mx8.mjs +1 -0
- package/dist/chunks/explorer-0.7.4-1knjqbak.mjs +1 -0
- package/dist/chunks/export-0.7.4-8b909kg4.mjs +2 -0
- package/dist/chunks/extra-usage-0.7.4-gwxf43jr.mjs +1 -0
- package/dist/chunks/extra-usage-noninteractive-0.7.4-vntrq9c8.mjs +1 -0
- package/dist/chunks/fast-0.7.4-7d198jes.mjs +1 -0
- package/dist/chunks/feedback-0.7.4-5q49cx0k.mjs +14 -0
- package/dist/chunks/firstPartyEventLogger-0.7.4-w1471f1j.mjs +1 -0
- package/dist/chunks/git-0.7.4-qm9bjwe1.mjs +1 -0
- package/dist/chunks/githubModelsCredentials-0.7.4-ecrp7kdj.mjs +1 -0
- package/dist/chunks/goal-0.7.4-ce3ysbxg.mjs +4 -0
- package/dist/chunks/grove-0.7.4-20a0nspg.mjs +1 -0
- package/dist/chunks/growthbook-0.7.4-85m0qnfn.mjs +1 -0
- package/dist/chunks/headless-0.7.4-g1me8a7s.mjs +2 -0
- package/dist/chunks/heapdump-0.7.4-sgk3zw0t.mjs +6 -0
- package/dist/chunks/help-0.7.4-aw6p8ena.mjs +1 -0
- package/dist/chunks/hookChains-0.7.4-3eqqv9t2.mjs +3 -0
- package/dist/chunks/hooks-0.7.4-q1wrys2h.mjs +79 -0
- package/dist/chunks/hooks-0.7.4-v782ktbj.mjs +1 -0
- package/dist/chunks/ide-0.7.4-nvtd5hpv.mjs +3 -0
- package/dist/chunks/image-processor-napi-0.7.4-a0arvwvs.mjs +1 -0
- package/dist/chunks/inboundAttachments-0.7.4-9hxndvnx.mjs +1 -0
- package/dist/chunks/index-0.7.4-0atnj624.mjs +1 -0
- package/dist/chunks/index-0.7.4-3yc5n58n.mjs +1 -0
- package/dist/chunks/index-0.7.4-46qessxk.mjs +1 -0
- package/dist/chunks/index-0.7.4-5x44zrgw.mjs +2 -0
- package/dist/chunks/index-0.7.4-97t4afz3.mjs +1 -0
- package/dist/chunks/index-0.7.4-9rhxb7ph.mjs +1 -0
- package/dist/chunks/index-0.7.4-9z6mgm05.mjs +2 -0
- package/dist/chunks/index-0.7.4-adfj0wz0.mjs +1 -0
- package/dist/chunks/index-0.7.4-bv491fah.mjs +5 -0
- package/dist/chunks/index-0.7.4-cxv3b9bg.mjs +1 -0
- package/dist/chunks/index-0.7.4-d7jstqgp.mjs +1 -0
- package/dist/chunks/index-0.7.4-fxa74szv.mjs +1 -0
- package/dist/chunks/index-0.7.4-hh3v0qz8.mjs +1 -0
- package/dist/chunks/index-0.7.4-kkcp2c2w.mjs +9 -0
- package/dist/chunks/index-0.7.4-n3dcdt88.mjs +1 -0
- package/dist/chunks/index-0.7.4-p8ts8cvg.mjs +1 -0
- package/dist/chunks/index-0.7.4-pamx7cgj.mjs +17 -0
- package/dist/chunks/index-0.7.4-pvvgj6g7.mjs +1 -0
- package/dist/chunks/index-0.7.4-rhf5p3mf.mjs +1 -0
- package/dist/chunks/index-0.7.4-rzztd31r.mjs +1 -0
- package/dist/chunks/index-0.7.4-sajaaw7k.mjs +30 -0
- package/dist/chunks/index-0.7.4-xdq0jf9r.mjs +1 -0
- package/dist/chunks/index-0.7.4-z3z8qmah.mjs +9 -0
- package/dist/chunks/init-0.7.4-4e9zty2q.mjs +1 -0
- package/dist/chunks/initReplBridge-0.7.4-yrparcz7.mjs +1 -0
- package/dist/chunks/ink-0.7.4-r1261h4c.mjs +1 -0
- package/dist/chunks/insights-0.7.4-t5dmav2c.mjs +870 -0
- package/dist/chunks/install-0.7.4-09cxj9vb.mjs +1 -0
- package/dist/chunks/install-github-app-0.7.4-hv9wkbxq.mjs +149 -0
- package/dist/chunks/install-slack-app-0.7.4-hgnea2d6.mjs +1 -0
- package/dist/chunks/instrumentation-0.7.4-17ca7p44.mjs +1 -0
- package/dist/chunks/interactiveHelpers-0.7.4-8jxj468e.mjs +1 -0
- package/dist/chunks/keybindings-0.7.4-raw68sen.mjs +2 -0
- package/dist/chunks/knowledge-0.7.4-xg9wb8wf.mjs +2 -0
- package/dist/chunks/latestVersionCache-0.7.4-60ks5x17.mjs +1 -0
- package/dist/chunks/loadAgentsDir-0.7.4-fg72pr2c.mjs +1 -0
- package/dist/chunks/loadPluginHooks-0.7.4-anp72ngw.mjs +1 -0
- package/dist/chunks/loadPluginHooks-0.7.4-jsx8r8aw.mjs +1 -0
- package/dist/chunks/log-0.7.4-12x7gw8q.mjs +1 -0
- package/dist/chunks/main-0.7.4-q6k044gc.mjs +1 -0
- package/dist/chunks/managedEnv-0.7.4-74e7mhhm.mjs +1 -0
- package/dist/chunks/mcp-0.7.4-4sr5rcvc.mjs +17 -0
- package/dist/chunks/mcp-0.7.4-9g6a64bt.mjs +4 -0
- package/dist/chunks/mcp-0.7.4-z4k2mzgy.mjs +1 -0
- package/dist/chunks/mcpb-0.7.4-jxskcyd8.mjs +1 -0
- package/dist/chunks/memory-0.7.4-541b29se.mjs +3 -0
- package/dist/chunks/model-0.7.4-mxvb5p7w.mjs +2 -0
- package/dist/chunks/model-0.7.4-nc7qk972.mjs +1 -0
- package/dist/chunks/node-0.7.4-hg387vyg.mjs +12 -0
- package/dist/chunks/oauth-0.7.4-e4sc7m0w.mjs +1 -0
- package/dist/chunks/openaiShim-0.7.4-mwtq6jnq.mjs +14 -0
- package/dist/chunks/output-style-0.7.4-b3vewghm.mjs +1 -0
- package/dist/chunks/package-GCDC7LJR-0.7.4-1e6194dg.mjs +1 -0
- package/dist/chunks/parseConnectUrl-0.7.4-46v5dfsp.mjs +1 -0
- package/dist/chunks/parser-0.7.4-2wt2btdd.mjs +1 -0
- package/dist/chunks/passes-0.7.4-182xeaj4.mjs +1 -0
- package/dist/chunks/permissions-0.7.4-hbqjvate.mjs +3 -0
- package/dist/chunks/permissions-0.7.4-qxf6e5nd.mjs +1 -0
- package/dist/chunks/plan-0.7.4-t5djkwkz.mjs +1 -0
- package/dist/chunks/plist-0.7.4-98g5pq7j.mjs +1 -0
- package/dist/chunks/plugin-0.7.4-0kmdzd88.mjs +29 -0
- package/dist/chunks/pluginStartupCheck-0.7.4-f1kq85sa.mjs +1 -0
- package/dist/chunks/plugins-0.7.4-52qggqw3.mjs +9 -0
- package/dist/chunks/preActionHook-0.7.4-qdyv0zgd.mjs +2 -0
- package/dist/chunks/print-0.7.4-1y1eqyhp.mjs +57 -0
- package/dist/chunks/privacy-settings-0.7.4-jrr06fw8.mjs +1 -0
- package/dist/chunks/process-0.7.4-bh0fjdst.mjs +1 -0
- package/dist/chunks/processBashCommand-0.7.4-8j3chrnm.mjs +1 -0
- package/dist/chunks/processSlashCommand-0.7.4-j53jaae7.mjs +9 -0
- package/dist/chunks/prompt-0.7.4-6eskezm8.mjs +1 -0
- package/dist/chunks/prompt-0.7.4-bnhsjhx3.mjs +1 -0
- package/dist/chunks/prompts-0.7.4-vevq7ae1.mjs +1 -0
- package/dist/chunks/protocolHandler-0.7.4-s4j6aeqh.mjs +13 -0
- package/dist/chunks/provider-0.7.4-jvtch160.mjs +2 -0
- package/dist/chunks/providerProfiles-0.7.4-yqetgvnq.mjs +1 -0
- package/dist/chunks/providerValidation-0.7.4-g6enpya6.mjs +6 -0
- package/dist/chunks/rate-limit-options-0.7.4-cwnmpqq9.mjs +1 -0
- package/dist/chunks/registerSubcommands-0.7.4-z1bdpgwx.mjs +34 -0
- package/dist/chunks/registry-0.7.4-5tne3d7e.mjs +1 -0
- package/dist/chunks/release-notes-0.7.4-sdsbw8s6.mjs +5 -0
- package/dist/chunks/reload-plugins-0.7.4-8fpph071.mjs +2 -0
- package/dist/chunks/remote-env-0.7.4-b1mzf95y.mjs +1 -0
- package/dist/chunks/remoteBridgeCore-0.7.4-9psc4fph.mjs +1 -0
- package/dist/chunks/remoteSession-0.7.4-8q76j945.mjs +1 -0
- package/dist/chunks/rename-0.7.4-x6q5drmn.mjs +1 -0
- package/dist/chunks/replBridgeHandle-0.7.4-dnp2by0g.mjs +1 -0
- package/dist/chunks/replLauncher-0.7.4-ztr3sg2j.mjs +1 -0
- package/dist/chunks/resume-0.7.4-zg3nxxte.mjs +2 -0
- package/dist/chunks/rewind-0.7.4-9j0zbj9a.mjs +1 -0
- package/dist/chunks/rootOptions-0.7.4-jrktzb1h.mjs +1 -0
- package/dist/chunks/sandbox-adapter-0.7.4-h71dwt2q.mjs +1 -0
- package/dist/chunks/sandbox-toggle-0.7.4-ks8gnbp8.mjs +1 -0
- package/dist/chunks/session-0.7.4-vc75bjkq.mjs +2 -0
- package/dist/chunks/sessionDiscovery-0.7.4-aqvmyy21.mjs +1 -0
- package/dist/chunks/sessionFileAccessHooks-0.7.4-7rw6txzf.mjs +1 -0
- package/dist/chunks/sessionStorage-0.7.4-820nxqcx.mjs +1 -0
- package/dist/chunks/settings-0.7.4-xn9kh7fk.mjs +1 -0
- package/dist/chunks/setup-0.7.4-ad98h634.mjs +5 -0
- package/dist/chunks/sinks-0.7.4-z7ad37zx.mjs +1 -0
- package/dist/chunks/skills-0.7.4-ad67cz1j.mjs +1 -0
- package/dist/chunks/startupProfiler-0.7.4-akaj65pe.mjs +1 -0
- package/dist/chunks/startupUpdateCheck-0.7.4-7r3vt1zf.mjs +1 -0
- package/dist/chunks/state-0.7.4-vjqm3ded.mjs +1 -0
- package/dist/chunks/stats-0.7.4-hqz1awtk.mjs +6 -0
- package/dist/chunks/status-0.7.4-e09aw5s3.mjs +1 -0
- package/dist/chunks/stickers-0.7.4-356twswm.mjs +1 -0
- package/dist/chunks/subprocessEnv-0.7.4-zjpbw9eg.mjs +1 -0
- package/dist/chunks/tasks-0.7.4-yqdwmw5j.mjs +1 -0
- package/dist/chunks/teamHelpers-0.7.4-0mtce030.mjs +1 -0
- package/dist/chunks/teammateModeSnapshot-0.7.4-q60shbd0.mjs +1 -0
- package/dist/chunks/teleport-0.7.4-6h25n23n.mjs +1 -0
- package/dist/chunks/terminalSetup-0.7.4-5fm9br3v.mjs +1 -0
- package/dist/chunks/theme-0.7.4-3cxdxqzd.mjs +1 -0
- package/dist/chunks/thinkback-0.7.4-k40dtctf.mjs +1 -0
- package/dist/chunks/thinkback-play-0.7.4-vmbx4r0v.mjs +1 -0
- package/dist/chunks/toolPool-0.7.4-fr9jcgkr.mjs +1 -0
- package/dist/chunks/toolSearch-0.7.4-72eq96x6.mjs +1 -0
- package/dist/chunks/tools-0.7.4-n2jj5cxj.mjs +1 -0
- package/dist/chunks/trustedDevice-0.7.4-5jh1e885.mjs +1 -0
- package/dist/chunks/turndown.cjs-0.7.4-3sq52e78.mjs +69 -0
- package/dist/chunks/types-0.7.4-cybkwcw1.mjs +1 -0
- package/dist/chunks/ultrareviewCommand-0.7.4-p3ykdjx4.mjs +4 -0
- package/dist/chunks/update-0.7.4-9hphbpbx.mjs +86 -0
- package/dist/chunks/upgrade-0.7.4-hhn879a5.mjs +1 -0
- package/dist/chunks/upload-0.7.4-rmfqa4n5.mjs +7 -0
- package/dist/chunks/upstreamproxy-0.7.4-f89cjzmp.mjs +14 -0
- package/dist/chunks/url-handler-napi-0.7.4-kdweyv4n.mjs +1 -0
- package/dist/chunks/usage-0.7.4-z5s6dhj7.mjs +1 -0
- package/dist/chunks/util-0.7.4-wf3hrc3w.mjs +1 -0
- package/dist/chunks/utils-0.7.4-f33hkvq8.mjs +1 -0
- package/dist/chunks/vim-0.7.4-pkw9kc18.mjs +1 -0
- package/dist/chunks/watcher-0.7.4-h80z0z8g.mjs +1 -0
- package/dist/chunks/wiki-0.7.4-5rfrx592.mjs +132 -0
- package/dist/chunks/workflows-0.7.4-7dgxra0n.mjs +1 -0
- package/dist/chunks/worktree-0.7.4-ar646nm5.mjs +1 -0
- package/dist/chunks/worktreeModeEnabled-0.7.4-1z56z896.mjs +1 -0
- package/dist/chunks/wrapper-0.7.4-bp55g4da.mjs +7 -0
- package/dist/claudin-vscode.vsix +0 -0
- package/dist/cli.mjs +2 -2
- package/package.json +18 -2
- package/dist/chunks/AgentTool-0.7.2-9q9cf0s2.mjs +0 -1
- package/dist/chunks/App-0.7.2-1yazneaj.mjs +0 -1
- package/dist/chunks/ApproveApiKey-0.7.2-r6n7yk1e.mjs +0 -1
- package/dist/chunks/AssistantSessionChooser-0.7.2-bq8tfzkt.mjs +0 -1
- package/dist/chunks/AutoModeOptInDialog-0.7.2-exq70cpt.mjs +0 -1
- package/dist/chunks/BypassPermissionsModeDialog-0.7.2-4wq8e6bg.mjs +0 -1
- package/dist/chunks/ClaudeMdExternalIncludesDialog-0.7.2-tfd9bwks.mjs +0 -1
- package/dist/chunks/ConsoleOAuthFlow-0.7.2-x4nff112.mjs +0 -1
- package/dist/chunks/DiffDialog-0.7.2-rynq65x0.mjs +0 -7
- package/dist/chunks/Doctor-0.7.2-47kvka8v.mjs +0 -1
- package/dist/chunks/ExplorerDialog-0.7.2-whxpmm57.mjs +0 -6
- package/dist/chunks/Grove-0.7.2-xd5sc9zj.mjs +0 -1
- package/dist/chunks/ITermBackend-0.7.2-d9gvx90g.mjs +0 -1
- package/dist/chunks/InvalidConfigDialog-0.7.2-caf92zwe.mjs +0 -1
- package/dist/chunks/InvalidSettingsDialog-0.7.2-4ahhegj6.mjs +0 -1
- package/dist/chunks/MigrationDialog-0.7.2-j7wxkhr6.mjs +0 -1
- package/dist/chunks/Onboarding-0.7.2-4rq70qsr.mjs +0 -1
- package/dist/chunks/ProviderManager-0.7.2-gjmzm35c.mjs +0 -1
- package/dist/chunks/REPL-0.7.2-a8j6n2qa.mjs +0 -1
- package/dist/chunks/ResumeConversation-0.7.2-84wvvrx5.mjs +0 -1
- package/dist/chunks/SnapshotUpdateDialog-0.7.2-wk0qx8j6.mjs +0 -1
- package/dist/chunks/TeleportProgress-0.7.2-dj8zvkv5.mjs +0 -1
- package/dist/chunks/TeleportRepoMismatchDialog-0.7.2-ey2mmrd3.mjs +0 -1
- package/dist/chunks/TeleportResumeWrapper-0.7.2-j4vtrwzz.mjs +0 -1
- package/dist/chunks/TmuxBackend-0.7.2-en2ev5fc.mjs +0 -9
- package/dist/chunks/ToolSearchTool-0.7.2-qkk7a91f.mjs +0 -1
- package/dist/chunks/TrustDialog-0.7.2-eh3tqgea.mjs +0 -1
- package/dist/chunks/activeProvider-0.7.2-53s4g0s8.mjs +0 -1
- package/dist/chunks/add-dir-0.7.2-p09yjmj7.mjs +0 -1
- package/dist/chunks/agents-0.7.2-0m73ejzs.mjs +0 -3
- package/dist/chunks/agents-0.7.2-a1zpb02y.mjs +0 -110
- package/dist/chunks/api-0.7.2-gwy9gs1j.mjs +0 -1
- package/dist/chunks/asciicast-0.7.2-5vqep6sv.mjs +0 -1
- package/dist/chunks/assistant-0.7.2-txvf934b.mjs +0 -1
- package/dist/chunks/auth-0.7.2-02q30rsb.mjs +0 -1
- package/dist/chunks/auth-0.7.2-x29x49yh.mjs +0 -1
- package/dist/chunks/autoMode-0.7.2-5jnc8v33.mjs +0 -48
- package/dist/chunks/autoUpdater-0.7.2-pdqvbd3c.mjs +0 -1
- package/dist/chunks/backgroundHousekeeping-0.7.2-1m4w90vq.mjs +0 -1
- package/dist/chunks/branch-0.7.2-wgyhx41x.mjs +0 -4
- package/dist/chunks/bridge-0.7.2-f4ryhejx.mjs +0 -2
- package/dist/chunks/bridgeConfig-0.7.2-g6w4rghz.mjs +0 -1
- package/dist/chunks/bridgeEnabled-0.7.2-5aspb655.mjs +0 -1
- package/dist/chunks/bridgeMain-0.7.2-fey03cj7.mjs +0 -88
- package/dist/chunks/bridgePointer-0.7.2-8k41syzc.mjs +0 -1
- package/dist/chunks/btw-0.7.2-syxbtnxj.mjs +0 -1
- package/dist/chunks/buddy-0.7.2-gge72j8t.mjs +0 -3
- package/dist/chunks/cacache-0.7.2-gztwvvrm.mjs +0 -1
- package/dist/chunks/cache-probe-0.7.2-1gytt4j5.mjs +0 -21
- package/dist/chunks/cacheStats-0.7.2-sd9n48k1.mjs +0 -4
- package/dist/chunks/caches-0.7.2-cqzt5zwn.mjs +0 -1
- package/dist/chunks/claudeDesktop-0.7.2-7pna3peh.mjs +0 -1
- package/dist/chunks/claudemd-0.7.2-n2d9tbz6.mjs +0 -1
- package/dist/chunks/clear-0.7.2-v59pskrm.mjs +0 -1
- package/dist/chunks/clearTerminal-0.7.2-p4d7q5b7.mjs +0 -1
- package/dist/chunks/cli-0.7.2-0cmw1f4j.mjs +0 -2
- package/dist/chunks/cli-0.7.2-0mj25tns.mjs +0 -2
- package/dist/chunks/cli-0.7.2-0v8f8cx4.mjs +0 -2
- package/dist/chunks/cli-0.7.2-19vhaz2c.mjs +0 -2
- package/dist/chunks/cli-0.7.2-1a4j9k2f.mjs +0 -2
- package/dist/chunks/cli-0.7.2-1aerk8aa.mjs +0 -2
- package/dist/chunks/cli-0.7.2-1rwkghr2.mjs +0 -2
- package/dist/chunks/cli-0.7.2-21mtjks8.mjs +0 -15
- package/dist/chunks/cli-0.7.2-23xjb2nt.mjs +0 -2
- package/dist/chunks/cli-0.7.2-26rzbaez.mjs +0 -2
- package/dist/chunks/cli-0.7.2-29hh46ve.mjs +0 -3
- package/dist/chunks/cli-0.7.2-2dbmqwyn.mjs +0 -2
- package/dist/chunks/cli-0.7.2-2rj33835.mjs +0 -6
- package/dist/chunks/cli-0.7.2-31k7gjq7.mjs +0 -2
- package/dist/chunks/cli-0.7.2-358vh55m.mjs +0 -2
- package/dist/chunks/cli-0.7.2-3cc67r6d.mjs +0 -2
- package/dist/chunks/cli-0.7.2-3frg7csa.mjs +0 -2
- package/dist/chunks/cli-0.7.2-3s2zd715.mjs +0 -3
- package/dist/chunks/cli-0.7.2-3synxf81.mjs +0 -2
- package/dist/chunks/cli-0.7.2-40f37y02.mjs +0 -2
- package/dist/chunks/cli-0.7.2-40xymk1q.mjs +0 -2
- package/dist/chunks/cli-0.7.2-437jawbh.mjs +0 -2
- package/dist/chunks/cli-0.7.2-43d0yq0h.mjs +0 -2
- package/dist/chunks/cli-0.7.2-44rzmsbx.mjs +0 -2
- package/dist/chunks/cli-0.7.2-4d6z9fdj.mjs +0 -2
- package/dist/chunks/cli-0.7.2-4g4d682x.mjs +0 -3
- package/dist/chunks/cli-0.7.2-520tgkhw.mjs +0 -5438
- package/dist/chunks/cli-0.7.2-53qayxqk.mjs +0 -2
- package/dist/chunks/cli-0.7.2-5415yrkc.mjs +0 -2
- package/dist/chunks/cli-0.7.2-55ye29jy.mjs +0 -2
- package/dist/chunks/cli-0.7.2-5750g5et.mjs +0 -2
- package/dist/chunks/cli-0.7.2-59wm2srd.mjs +0 -2
- package/dist/chunks/cli-0.7.2-5aka4emf.mjs +0 -133
- package/dist/chunks/cli-0.7.2-5c89p68w.mjs +0 -2
- package/dist/chunks/cli-0.7.2-5ca5nqtj.mjs +0 -4
- package/dist/chunks/cli-0.7.2-5e72m61f.mjs +0 -25
- package/dist/chunks/cli-0.7.2-5ff63f31.mjs +0 -4
- package/dist/chunks/cli-0.7.2-5gqht4d7.mjs +0 -2
- package/dist/chunks/cli-0.7.2-5qd0bn5g.mjs +0 -193
- package/dist/chunks/cli-0.7.2-5tacs42k.mjs +0 -2
- package/dist/chunks/cli-0.7.2-5y498dyr.mjs +0 -2
- package/dist/chunks/cli-0.7.2-5y75zyrv.mjs +0 -15
- package/dist/chunks/cli-0.7.2-5yrman6f.mjs +0 -2
- package/dist/chunks/cli-0.7.2-60exfzc0.mjs +0 -2
- package/dist/chunks/cli-0.7.2-65v6wt4g.mjs +0 -2
- package/dist/chunks/cli-0.7.2-68dn8am7.mjs +0 -2
- package/dist/chunks/cli-0.7.2-6pjgt9bx.mjs +0 -2
- package/dist/chunks/cli-0.7.2-6zd4a6yh.mjs +0 -12
- package/dist/chunks/cli-0.7.2-796x24s1.mjs +0 -2
- package/dist/chunks/cli-0.7.2-7dh7rk2t.mjs +0 -2
- package/dist/chunks/cli-0.7.2-7rjfehxm.mjs +0 -2
- package/dist/chunks/cli-0.7.2-7xfph0pz.mjs +0 -2
- package/dist/chunks/cli-0.7.2-81s45w7r.mjs +0 -2
- package/dist/chunks/cli-0.7.2-828f420c.mjs +0 -7
- package/dist/chunks/cli-0.7.2-83dd0h2c.mjs +0 -2
- package/dist/chunks/cli-0.7.2-88h70xrj.mjs +0 -50
- package/dist/chunks/cli-0.7.2-894093rv.mjs +0 -2
- package/dist/chunks/cli-0.7.2-89wj5h3q.mjs +0 -2
- package/dist/chunks/cli-0.7.2-8pfcc363.mjs +0 -12
- package/dist/chunks/cli-0.7.2-8qd7xft9.mjs +0 -16
- package/dist/chunks/cli-0.7.2-9156j3vm.mjs +0 -6
- package/dist/chunks/cli-0.7.2-9328ezjz.mjs +0 -3
- package/dist/chunks/cli-0.7.2-9953mwyy.mjs +0 -2
- package/dist/chunks/cli-0.7.2-99am4r15.mjs +0 -4
- package/dist/chunks/cli-0.7.2-9kn29b9a.mjs +0 -4
- package/dist/chunks/cli-0.7.2-9ry87dm1.mjs +0 -2
- package/dist/chunks/cli-0.7.2-9vr6ts7b.mjs +0 -2
- package/dist/chunks/cli-0.7.2-a5svqzyj.mjs +0 -2
- package/dist/chunks/cli-0.7.2-a6q1amed.mjs +0 -2
- package/dist/chunks/cli-0.7.2-a9324x4q.mjs +0 -8
- package/dist/chunks/cli-0.7.2-aaxbm02p.mjs +0 -2
- package/dist/chunks/cli-0.7.2-apg4ptg9.mjs +0 -2
- package/dist/chunks/cli-0.7.2-atsd6734.mjs +0 -2
- package/dist/chunks/cli-0.7.2-avk3azcp.mjs +0 -2
- package/dist/chunks/cli-0.7.2-aye3y5eg.mjs +0 -2
- package/dist/chunks/cli-0.7.2-b0v1mt53.mjs +0 -2
- package/dist/chunks/cli-0.7.2-b9pdb0nv.mjs +0 -26
- package/dist/chunks/cli-0.7.2-bd97qyyb.mjs +0 -2
- package/dist/chunks/cli-0.7.2-bdnz1mnz.mjs +0 -21
- package/dist/chunks/cli-0.7.2-bjk14f5p.mjs +0 -2
- package/dist/chunks/cli-0.7.2-bmz47g1t.mjs +0 -18
- package/dist/chunks/cli-0.7.2-bttmh4fa.mjs +0 -4
- package/dist/chunks/cli-0.7.2-ccy16hvg.mjs +0 -2
- package/dist/chunks/cli-0.7.2-chg4zqj2.mjs +0 -2
- package/dist/chunks/cli-0.7.2-cjhzamwx.mjs +0 -2
- package/dist/chunks/cli-0.7.2-cqh66sd8.mjs +0 -2
- package/dist/chunks/cli-0.7.2-cqqj8v1e.mjs +0 -6
- package/dist/chunks/cli-0.7.2-czgmcj2j.mjs +0 -2
- package/dist/chunks/cli-0.7.2-d5fbych4.mjs +0 -2
- package/dist/chunks/cli-0.7.2-dggndd24.mjs +0 -2
- package/dist/chunks/cli-0.7.2-drxj7wsn.mjs +0 -2
- package/dist/chunks/cli-0.7.2-ds7h4ntr.mjs +0 -2
- package/dist/chunks/cli-0.7.2-dxm2c139.mjs +0 -24
- package/dist/chunks/cli-0.7.2-dzt53r0y.mjs +0 -2
- package/dist/chunks/cli-0.7.2-e6dtw86q.mjs +0 -2
- package/dist/chunks/cli-0.7.2-ec60dmtg.mjs +0 -2
- package/dist/chunks/cli-0.7.2-edf740pd.mjs +0 -5
- package/dist/chunks/cli-0.7.2-eey9qnsc.mjs +0 -2
- package/dist/chunks/cli-0.7.2-eyjs1wq5.mjs +0 -2
- package/dist/chunks/cli-0.7.2-f4nt233k.mjs +0 -3
- package/dist/chunks/cli-0.7.2-fcadqwem.mjs +0 -1
- package/dist/chunks/cli-0.7.2-fkp8v4sr.mjs +0 -2
- package/dist/chunks/cli-0.7.2-g3k7m45h.mjs +0 -12
- package/dist/chunks/cli-0.7.2-g6cqgcyf.mjs +0 -2
- package/dist/chunks/cli-0.7.2-gar34ch2.mjs +0 -4
- package/dist/chunks/cli-0.7.2-gn8ff3x2.mjs +0 -2
- package/dist/chunks/cli-0.7.2-gssxkynf.mjs +0 -2
- package/dist/chunks/cli-0.7.2-gx0r7hs8.mjs +0 -2
- package/dist/chunks/cli-0.7.2-gysw8esj.mjs +0 -2
- package/dist/chunks/cli-0.7.2-h248q4gt.mjs +0 -2
- package/dist/chunks/cli-0.7.2-h3jq0nx1.mjs +0 -2
- package/dist/chunks/cli-0.7.2-h7m849rt.mjs +0 -2
- package/dist/chunks/cli-0.7.2-h903zfjz.mjs +0 -2
- package/dist/chunks/cli-0.7.2-hbmczrch.mjs +0 -9
- package/dist/chunks/cli-0.7.2-he1hdn59.mjs +0 -18
- package/dist/chunks/cli-0.7.2-hspcdhd7.mjs +0 -2
- package/dist/chunks/cli-0.7.2-hv1z3had.mjs +0 -3
- package/dist/chunks/cli-0.7.2-hvk7rgt3.mjs +0 -2
- package/dist/chunks/cli-0.7.2-j029dkan.mjs +0 -3
- package/dist/chunks/cli-0.7.2-j0s33kp5.mjs +0 -2
- package/dist/chunks/cli-0.7.2-j3vx2jqw.mjs +0 -2
- package/dist/chunks/cli-0.7.2-jbhdwhp3.mjs +0 -2
- package/dist/chunks/cli-0.7.2-jc7jm1vm.mjs +0 -2
- package/dist/chunks/cli-0.7.2-jkt40yfs.mjs +0 -2
- package/dist/chunks/cli-0.7.2-jn2497vh.mjs +0 -2
- package/dist/chunks/cli-0.7.2-jv6k1kz6.mjs +0 -2
- package/dist/chunks/cli-0.7.2-k40k933y.mjs +0 -24
- package/dist/chunks/cli-0.7.2-k6jnr159.mjs +0 -2
- package/dist/chunks/cli-0.7.2-k9qpm29e.mjs +0 -2
- package/dist/chunks/cli-0.7.2-kyd7mrxn.mjs +0 -2
- package/dist/chunks/cli-0.7.2-mapkx1gt.mjs +0 -2
- package/dist/chunks/cli-0.7.2-mg2tmjs3.mjs +0 -12
- package/dist/chunks/cli-0.7.2-mja3g8j0.mjs +0 -2
- package/dist/chunks/cli-0.7.2-mp7jnva5.mjs +0 -15
- package/dist/chunks/cli-0.7.2-mqv265gk.mjs +0 -42
- package/dist/chunks/cli-0.7.2-mw93dmjz.mjs +0 -3
- package/dist/chunks/cli-0.7.2-n1ncm3tc.mjs +0 -2
- package/dist/chunks/cli-0.7.2-n8kpba5n.mjs +0 -2
- package/dist/chunks/cli-0.7.2-ndt224p1.mjs +0 -2
- package/dist/chunks/cli-0.7.2-nf346apq.mjs +0 -18
- package/dist/chunks/cli-0.7.2-ngdtr2fz.mjs +0 -2
- package/dist/chunks/cli-0.7.2-nkafymh4.mjs +0 -3
- package/dist/chunks/cli-0.7.2-nxtag6y2.mjs +0 -45
- package/dist/chunks/cli-0.7.2-p42bcqhs.mjs +0 -3
- package/dist/chunks/cli-0.7.2-pbaedfkk.mjs +0 -67
- package/dist/chunks/cli-0.7.2-pjavf176.mjs +0 -2
- package/dist/chunks/cli-0.7.2-pm05qj0a.mjs +0 -4
- package/dist/chunks/cli-0.7.2-ppaeptkd.mjs +0 -2
- package/dist/chunks/cli-0.7.2-q2pk22xv.mjs +0 -2
- package/dist/chunks/cli-0.7.2-q85af7gm.mjs +0 -2
- package/dist/chunks/cli-0.7.2-q88h44qv.mjs +0 -17
- package/dist/chunks/cli-0.7.2-q9twb2tn.mjs +0 -2
- package/dist/chunks/cli-0.7.2-qdapr4dz.mjs +0 -2
- package/dist/chunks/cli-0.7.2-qf8435qy.mjs +0 -2
- package/dist/chunks/cli-0.7.2-qftw5wyw.mjs +0 -5
- package/dist/chunks/cli-0.7.2-qr706n52.mjs +0 -10
- package/dist/chunks/cli-0.7.2-qsx52bst.mjs +0 -2
- package/dist/chunks/cli-0.7.2-r1502pen.mjs +0 -2
- package/dist/chunks/cli-0.7.2-r26ghgw6.mjs +0 -5
- package/dist/chunks/cli-0.7.2-r7x165sf.mjs +0 -17
- package/dist/chunks/cli-0.7.2-rn3w4y3r.mjs +0 -2
- package/dist/chunks/cli-0.7.2-s0av8fr2.mjs +0 -2
- package/dist/chunks/cli-0.7.2-s3r1krp7.mjs +0 -2
- package/dist/chunks/cli-0.7.2-s41x7s9w.mjs +0 -133
- package/dist/chunks/cli-0.7.2-se4w3qaw.mjs +0 -2
- package/dist/chunks/cli-0.7.2-sjrnxjfp.mjs +0 -2
- package/dist/chunks/cli-0.7.2-sr9m45tm.mjs +0 -2
- package/dist/chunks/cli-0.7.2-t1wtmnh8.mjs +0 -2
- package/dist/chunks/cli-0.7.2-tds456xt.mjs +0 -34
- package/dist/chunks/cli-0.7.2-tf3mc20k.mjs +0 -4
- package/dist/chunks/cli-0.7.2-twx01hwg.mjs +0 -2
- package/dist/chunks/cli-0.7.2-tx2rxhrx.mjs +0 -3
- package/dist/chunks/cli-0.7.2-tytdzgnc.mjs +0 -2
- package/dist/chunks/cli-0.7.2-tz5zv753.mjs +0 -6
- package/dist/chunks/cli-0.7.2-tzc6qkph.mjs +0 -3
- package/dist/chunks/cli-0.7.2-vb0ja1yz.mjs +0 -2
- package/dist/chunks/cli-0.7.2-vgq7ce31.mjs +0 -4
- package/dist/chunks/cli-0.7.2-vqvfxb9x.mjs +0 -2
- package/dist/chunks/cli-0.7.2-vvbp0ycp.mjs +0 -2
- package/dist/chunks/cli-0.7.2-vx10940a.mjs +0 -2
- package/dist/chunks/cli-0.7.2-vx90v3pr.mjs +0 -2
- package/dist/chunks/cli-0.7.2-w07ksegr.mjs +0 -2
- package/dist/chunks/cli-0.7.2-waas8a1p.mjs +0 -2
- package/dist/chunks/cli-0.7.2-wahbzckp.mjs +0 -58
- package/dist/chunks/cli-0.7.2-whm7dq8a.mjs +0 -2
- package/dist/chunks/cli-0.7.2-wk3m6ndw.mjs +0 -2
- package/dist/chunks/cli-0.7.2-wmz88sxe.mjs +0 -2
- package/dist/chunks/cli-0.7.2-xced0m7v.mjs +0 -2
- package/dist/chunks/cli-0.7.2-xkbkgc1x.mjs +0 -2
- package/dist/chunks/cli-0.7.2-xmf0q5j5.mjs +0 -39
- package/dist/chunks/cli-0.7.2-xpw13d73.mjs +0 -59
- package/dist/chunks/cli-0.7.2-xtj79p8n.mjs +0 -2
- package/dist/chunks/cli-0.7.2-xwmd0gap.mjs +0 -2
- package/dist/chunks/cli-0.7.2-xzq4nj1z.mjs +0 -2
- package/dist/chunks/cli-0.7.2-ydcqkbay.mjs +0 -20
- package/dist/chunks/cli-0.7.2-yeym3pfk.mjs +0 -4
- package/dist/chunks/cli-0.7.2-ygx94a70.mjs +0 -2
- package/dist/chunks/cli-0.7.2-ymes9mpn.mjs +0 -2
- package/dist/chunks/cli-0.7.2-yppcb6em.mjs +0 -2
- package/dist/chunks/cli-0.7.2-ze0wyhxh.mjs +0 -2
- package/dist/chunks/cli-0.7.2-zevvxkk3.mjs +0 -2
- package/dist/chunks/cli-0.7.2-zjn5drn1.mjs +0 -3
- package/dist/chunks/cli-0.7.2-zva1j44t.mjs +0 -2
- package/dist/chunks/cli-0.7.2-zvq6jw19.mjs +0 -2
- package/dist/chunks/client-0.7.2-5ayk0kpq.mjs +0 -1
- package/dist/chunks/color-0.7.2-qwk7wwhg.mjs +0 -1
- package/dist/chunks/compact-0.7.2-1htfptdq.mjs +0 -3
- package/dist/chunks/config-0.7.2-5qhqvs6r.mjs +0 -1
- package/dist/chunks/config-0.7.2-m4pjdgrd.mjs +0 -1
- package/dist/chunks/constants-0.7.2-pkxz3zw1.mjs +0 -1
- package/dist/chunks/context-0.7.2-sbj7xgcd.mjs +0 -1
- package/dist/chunks/context-noninteractive-0.7.2-0e342zm8.mjs +0 -1
- package/dist/chunks/conversation-0.7.2-8w1wm1xe.mjs +0 -1
- package/dist/chunks/copilotHeaders-0.7.2-qkkqpxf3.mjs +0 -1
- package/dist/chunks/copy-0.7.2-edx6f8tb.mjs +0 -9
- package/dist/chunks/cost-0.7.2-8arxgyd6.mjs +0 -1
- package/dist/chunks/createSSHSession-0.7.2-3n718ymh.mjs +0 -1
- package/dist/chunks/createSession-0.7.2-hm9d0q01.mjs +0 -1
- package/dist/chunks/debug-0.7.2-ngrc7p4e.mjs +0 -1
- package/dist/chunks/defaultActionDeps-0.7.2-dftsz493.mjs +0 -1446
- package/dist/chunks/desktop-0.7.2-vt6ymh81.mjs +0 -1
- package/dist/chunks/detectRepository-0.7.2-xgsqcqxv.mjs +0 -1
- package/dist/chunks/detection-0.7.2-m6c0amh8.mjs +0 -1
- package/dist/chunks/diff-0.7.2-7np6da8n.mjs +0 -1
- package/dist/chunks/doctor-0.7.2-spqx634t.mjs +0 -1
- package/dist/chunks/doctorDiagnostic-0.7.2-81rdywyn.mjs +0 -1
- package/dist/chunks/earlyInput-0.7.2-b7j7hx34.mjs +0 -1
- package/dist/chunks/effort-0.7.2-1jd0yvy3.mjs +0 -10
- package/dist/chunks/envLessBridgeConfig-0.7.2-x5wybzrg.mjs +0 -1
- package/dist/chunks/envUtils-0.7.2-srtr0ybx.mjs +0 -1
- package/dist/chunks/environmentSelection-0.7.2-drjpcqg5.mjs +0 -1
- package/dist/chunks/environments-0.7.2-c51gb5sh.mjs +0 -1
- package/dist/chunks/errors-0.7.2-4mfat7g5.mjs +0 -1
- package/dist/chunks/exampleCommands-0.7.2-c8b6smyk.mjs +0 -1
- package/dist/chunks/exit-0.7.2-0b21e2f4.mjs +0 -1
- package/dist/chunks/explorer-0.7.2-b2qgsg4r.mjs +0 -1
- package/dist/chunks/export-0.7.2-j6tnta5r.mjs +0 -2
- package/dist/chunks/extra-usage-0.7.2-8xrddgmh.mjs +0 -1
- package/dist/chunks/extra-usage-noninteractive-0.7.2-vzzkmfzw.mjs +0 -1
- package/dist/chunks/fast-0.7.2-kfcnj6wq.mjs +0 -1
- package/dist/chunks/feedback-0.7.2-cmhc12wj.mjs +0 -14
- package/dist/chunks/firstPartyEventLogger-0.7.2-pa49ax22.mjs +0 -1
- package/dist/chunks/git-0.7.2-9f7gvn9h.mjs +0 -1
- package/dist/chunks/githubModelsCredentials-0.7.2-qy1mhzsm.mjs +0 -1
- package/dist/chunks/goal-0.7.2-t9vq2zc6.mjs +0 -4
- package/dist/chunks/grove-0.7.2-9sxczf29.mjs +0 -1
- package/dist/chunks/growthbook-0.7.2-ch3yc64n.mjs +0 -1
- package/dist/chunks/headless-0.7.2-9kh4ecvm.mjs +0 -2
- package/dist/chunks/heapdump-0.7.2-jrxgec1e.mjs +0 -6
- package/dist/chunks/help-0.7.2-mkkkzv97.mjs +0 -1
- package/dist/chunks/hookChains-0.7.2-4rsz02te.mjs +0 -3
- package/dist/chunks/hooks-0.7.2-mpa8g97z.mjs +0 -1
- package/dist/chunks/hooks-0.7.2-yaybnthb.mjs +0 -79
- package/dist/chunks/ide-0.7.2-a5p1wn0n.mjs +0 -3
- package/dist/chunks/image-processor-napi-0.7.2-c971ey5m.mjs +0 -1
- package/dist/chunks/inboundAttachments-0.7.2-vkae77ac.mjs +0 -1
- package/dist/chunks/index-0.7.2-4qr2yjjg.mjs +0 -1
- package/dist/chunks/index-0.7.2-5mfmhd35.mjs +0 -1
- package/dist/chunks/index-0.7.2-62g62r4p.mjs +0 -1
- package/dist/chunks/index-0.7.2-7b6mkd4g.mjs +0 -9
- package/dist/chunks/index-0.7.2-87jrdmn3.mjs +0 -2
- package/dist/chunks/index-0.7.2-9h4tsef1.mjs +0 -1
- package/dist/chunks/index-0.7.2-9mk9g3c3.mjs +0 -1
- package/dist/chunks/index-0.7.2-a3w6at2z.mjs +0 -1
- package/dist/chunks/index-0.7.2-b296et1z.mjs +0 -1
- package/dist/chunks/index-0.7.2-c22bn4q9.mjs +0 -1
- package/dist/chunks/index-0.7.2-dn8m3dh3.mjs +0 -9
- package/dist/chunks/index-0.7.2-f8swc4mv.mjs +0 -30
- package/dist/chunks/index-0.7.2-fdsptfbt.mjs +0 -17
- package/dist/chunks/index-0.7.2-g2vfnmjs.mjs +0 -1
- package/dist/chunks/index-0.7.2-hjcptpaz.mjs +0 -1
- package/dist/chunks/index-0.7.2-hts44hhf.mjs +0 -2
- package/dist/chunks/index-0.7.2-k2y0b0h3.mjs +0 -1
- package/dist/chunks/index-0.7.2-nhtpksxs.mjs +0 -5
- package/dist/chunks/index-0.7.2-p5a52s17.mjs +0 -1
- package/dist/chunks/index-0.7.2-r0zwxc1g.mjs +0 -1
- package/dist/chunks/index-0.7.2-vfyvycvc.mjs +0 -1
- package/dist/chunks/index-0.7.2-vw5e1spt.mjs +0 -1
- package/dist/chunks/index-0.7.2-xp0gpx8w.mjs +0 -1
- package/dist/chunks/init-0.7.2-mdhax55g.mjs +0 -1
- package/dist/chunks/initReplBridge-0.7.2-sq5dka9e.mjs +0 -1
- package/dist/chunks/ink-0.7.2-xhfkzs8w.mjs +0 -1
- package/dist/chunks/insights-0.7.2-hnzbcbwt.mjs +0 -870
- package/dist/chunks/install-0.7.2-f33pbxz0.mjs +0 -1
- package/dist/chunks/install-github-app-0.7.2-rysxaqa4.mjs +0 -149
- package/dist/chunks/install-slack-app-0.7.2-nsg858f1.mjs +0 -1
- package/dist/chunks/instrumentation-0.7.2-6t0dw394.mjs +0 -1
- package/dist/chunks/interactiveHelpers-0.7.2-wqr53tgp.mjs +0 -1
- package/dist/chunks/keybindings-0.7.2-b6yhemd9.mjs +0 -2
- package/dist/chunks/knowledge-0.7.2-94b972dr.mjs +0 -2
- package/dist/chunks/latestVersionCache-0.7.2-1e9h6ycx.mjs +0 -1
- package/dist/chunks/loadAgentsDir-0.7.2-d3vy1hjh.mjs +0 -1
- package/dist/chunks/loadPluginHooks-0.7.2-9bdtab1f.mjs +0 -1
- package/dist/chunks/loadPluginHooks-0.7.2-v002c6d9.mjs +0 -1
- package/dist/chunks/log-0.7.2-n28x7jf3.mjs +0 -1
- package/dist/chunks/main-0.7.2-bbgx9tzn.mjs +0 -1
- package/dist/chunks/managedEnv-0.7.2-c7gnfsz5.mjs +0 -1
- package/dist/chunks/mcp-0.7.2-nakq1rhg.mjs +0 -1
- package/dist/chunks/mcp-0.7.2-v40gxs87.mjs +0 -17
- package/dist/chunks/mcp-0.7.2-wtmt0vpe.mjs +0 -4
- package/dist/chunks/mcpb-0.7.2-k7z7aa64.mjs +0 -1
- package/dist/chunks/memory-0.7.2-1hfh6410.mjs +0 -3
- package/dist/chunks/model-0.7.2-c8esc658.mjs +0 -1
- package/dist/chunks/model-0.7.2-sjw6chpt.mjs +0 -2
- package/dist/chunks/node-0.7.2-2bm5bpwx.mjs +0 -12
- package/dist/chunks/oauth-0.7.2-ze80cmtw.mjs +0 -1
- package/dist/chunks/openaiShim-0.7.2-qwqrcmfv.mjs +0 -14
- package/dist/chunks/output-style-0.7.2-mhfyzz5h.mjs +0 -1
- package/dist/chunks/package-GCDC7LJR-0.7.2-d271461v.mjs +0 -1
- package/dist/chunks/parseConnectUrl-0.7.2-5c6xzn22.mjs +0 -1
- package/dist/chunks/parser-0.7.2-ekqc81n3.mjs +0 -1
- package/dist/chunks/passes-0.7.2-dyr0j4xs.mjs +0 -1
- package/dist/chunks/permissions-0.7.2-ap5ve9y3.mjs +0 -3
- package/dist/chunks/permissions-0.7.2-pqbpv219.mjs +0 -1
- package/dist/chunks/plan-0.7.2-3qcvkebx.mjs +0 -1
- package/dist/chunks/plist-0.7.2-sfrs3sb5.mjs +0 -1
- package/dist/chunks/plugin-0.7.2-23zzkpzp.mjs +0 -29
- package/dist/chunks/pluginStartupCheck-0.7.2-hdbd4vjf.mjs +0 -1
- package/dist/chunks/plugins-0.7.2-8b79cq4h.mjs +0 -9
- package/dist/chunks/preActionHook-0.7.2-denqn35e.mjs +0 -2
- package/dist/chunks/print-0.7.2-k3jvb8xp.mjs +0 -57
- package/dist/chunks/privacy-settings-0.7.2-2a25e9zd.mjs +0 -1
- package/dist/chunks/process-0.7.2-bydxzc10.mjs +0 -1
- package/dist/chunks/processBashCommand-0.7.2-n8zeggtq.mjs +0 -1
- package/dist/chunks/processSlashCommand-0.7.2-8bkqmvyg.mjs +0 -9
- package/dist/chunks/prompt-0.7.2-xcyvamqv.mjs +0 -1
- package/dist/chunks/prompt-0.7.2-zgvfvr40.mjs +0 -1
- package/dist/chunks/prompts-0.7.2-v3chnzw2.mjs +0 -1
- package/dist/chunks/protocolHandler-0.7.2-pcar7hdp.mjs +0 -13
- package/dist/chunks/provider-0.7.2-amg0a8yq.mjs +0 -2
- package/dist/chunks/providerProfiles-0.7.2-nwbz4k4w.mjs +0 -1
- package/dist/chunks/providerValidation-0.7.2-acwg3yzh.mjs +0 -6
- package/dist/chunks/rate-limit-options-0.7.2-spv7s8hs.mjs +0 -1
- package/dist/chunks/registerSubcommands-0.7.2-7g1dds0b.mjs +0 -34
- package/dist/chunks/registry-0.7.2-kv34xe3p.mjs +0 -1
- package/dist/chunks/release-notes-0.7.2-amerc2cj.mjs +0 -5
- package/dist/chunks/reload-plugins-0.7.2-tx1872h3.mjs +0 -2
- package/dist/chunks/remote-env-0.7.2-hq2w0qkg.mjs +0 -1
- package/dist/chunks/remoteBridgeCore-0.7.2-5stcs58w.mjs +0 -1
- package/dist/chunks/remoteSession-0.7.2-zwc7cra7.mjs +0 -1
- package/dist/chunks/rename-0.7.2-gk2b22q0.mjs +0 -1
- package/dist/chunks/replBridgeHandle-0.7.2-17phx9ww.mjs +0 -1
- package/dist/chunks/replLauncher-0.7.2-th0j1erj.mjs +0 -1
- package/dist/chunks/resume-0.7.2-xmxzptvs.mjs +0 -2
- package/dist/chunks/rewind-0.7.2-bvjnkrk2.mjs +0 -1
- package/dist/chunks/rootOptions-0.7.2-2cy9mmwc.mjs +0 -1
- package/dist/chunks/sandbox-adapter-0.7.2-h0xxevv6.mjs +0 -1
- package/dist/chunks/sandbox-toggle-0.7.2-qhhmmtft.mjs +0 -1
- package/dist/chunks/session-0.7.2-c8me3g3x.mjs +0 -2
- package/dist/chunks/sessionDiscovery-0.7.2-3k39j4tc.mjs +0 -1
- package/dist/chunks/sessionFileAccessHooks-0.7.2-rv6etkhg.mjs +0 -1
- package/dist/chunks/sessionStorage-0.7.2-97nxk3y6.mjs +0 -1
- package/dist/chunks/settings-0.7.2-xc200363.mjs +0 -1
- package/dist/chunks/setup-0.7.2-c982wyvz.mjs +0 -5
- package/dist/chunks/sinks-0.7.2-95rk1mrs.mjs +0 -1
- package/dist/chunks/skills-0.7.2-6gdq6xgn.mjs +0 -1
- package/dist/chunks/startupProfiler-0.7.2-bx988amf.mjs +0 -1
- package/dist/chunks/startupUpdateCheck-0.7.2-n1cjfry1.mjs +0 -1
- package/dist/chunks/state-0.7.2-p9tevca2.mjs +0 -1
- package/dist/chunks/stats-0.7.2-8xhdefb7.mjs +0 -6
- package/dist/chunks/status-0.7.2-fh89jm1g.mjs +0 -1
- package/dist/chunks/stickers-0.7.2-8p2fssw5.mjs +0 -1
- package/dist/chunks/subprocessEnv-0.7.2-rxrfb67k.mjs +0 -1
- package/dist/chunks/tasks-0.7.2-e27mj4dh.mjs +0 -1
- package/dist/chunks/teamHelpers-0.7.2-m3z5pcdz.mjs +0 -1
- package/dist/chunks/teammateModeSnapshot-0.7.2-p7amb3d6.mjs +0 -1
- package/dist/chunks/teleport-0.7.2-5esyfq9r.mjs +0 -1
- package/dist/chunks/terminalSetup-0.7.2-yscmphsc.mjs +0 -1
- package/dist/chunks/theme-0.7.2-1zmsca02.mjs +0 -1
- package/dist/chunks/thinkback-0.7.2-17ff2vy3.mjs +0 -1
- package/dist/chunks/thinkback-play-0.7.2-mdnape3r.mjs +0 -1
- package/dist/chunks/toolPool-0.7.2-jbgwb4kh.mjs +0 -1
- package/dist/chunks/toolSearch-0.7.2-c6qby1zz.mjs +0 -1
- package/dist/chunks/tools-0.7.2-b04qyzf8.mjs +0 -1
- package/dist/chunks/trustedDevice-0.7.2-jz3zmc03.mjs +0 -1
- package/dist/chunks/turndown.cjs-0.7.2-bj6egxgk.mjs +0 -69
- package/dist/chunks/types-0.7.2-fsjvv1kt.mjs +0 -1
- package/dist/chunks/ultrareviewCommand-0.7.2-w2fbj23d.mjs +0 -4
- package/dist/chunks/update-0.7.2-4ccgmd4p.mjs +0 -86
- package/dist/chunks/upgrade-0.7.2-d7h7vmqn.mjs +0 -1
- package/dist/chunks/upload-0.7.2-p6je053d.mjs +0 -7
- package/dist/chunks/upstreamproxy-0.7.2-sjmkdjb8.mjs +0 -14
- package/dist/chunks/url-handler-napi-0.7.2-snjwvzje.mjs +0 -1
- package/dist/chunks/usage-0.7.2-2k2m3v75.mjs +0 -1
- package/dist/chunks/util-0.7.2-n4vdasdr.mjs +0 -1
- package/dist/chunks/utils-0.7.2-bmqt59ff.mjs +0 -1
- package/dist/chunks/vim-0.7.2-bd15xeza.mjs +0 -1
- package/dist/chunks/watcher-0.7.2-pjzeng3k.mjs +0 -1
- package/dist/chunks/wiki-0.7.2-2a655hhv.mjs +0 -132
- package/dist/chunks/worktree-0.7.2-gs72mnyb.mjs +0 -1
- package/dist/chunks/worktreeModeEnabled-0.7.2-gqtz9ha6.mjs +0 -1
- package/dist/chunks/wrapper-0.7.2-j420s6rc.mjs +0 -7
- /package/dist/chunks/{cli-0.7.2-1xbehmgb.mjs → cli-0.7.4-a8qv9b1x.mjs} +0 -0
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{HZ as QQ,IZ as uQ,UZ as g,WZ as h,a0 as RQ,j0 as jQ,k0 as aQ,o0 as d,z0 as a,zY as u}from"./cli-0.7.4-2apswqf5.mjs";import{F2 as S,G2 as k,H2 as f}from"./cli-0.7.4-hnfm0p8b.mjs";import{I2 as v}from"./cli-0.7.4-85txq06q.mjs";import{W2 as n,Y2 as t,b3 as YV}from"./cli-0.7.4-h94hrj45.mjs";import{T6 as $Q,W6 as P,Z6 as bQ,m7 as XV}from"./cli-0.7.4-2haqz80h.mjs";import{Bca as fQ,Bda as QV,Cca as eQ,Zea as CQ,dda as mQ,ffa as VV,gda as x}from"./cli-0.7.4-hvnzwb5v.mjs";import{kfa as AQ,lfa as sQ}from"./cli-0.7.4-rskynrc5.mjs";import{Dha as r,Eha as nQ}from"./cli-0.7.4-nbnqrjgm.mjs";import{Iia as D,Lia as iQ}from"./cli-0.7.4-hegk157e.mjs";import{_pa as i,qqa as tQ}from"./cli-0.7.4-8xxafyv0.mjs";import{Lqa as M,Pqa as F}from"./cli-0.7.4-58p1wenr.mjs";function XQ(){let X=VQ.useContext(QQ);if(!X)throw Error("useTerminalSize must be used within an Ink App component");return X}var VQ;var YQ=F(()=>{uQ();VQ=M(v(),1)});function ZQ(X,Q){if(Q.escape)return"escape";if(Q.return)return"enter";if(Q.tab)return"tab";if(Q.backspace)return"backspace";if(Q.delete)return"delete";if(Q.upArrow)return"up";if(Q.downArrow)return"down";if(Q.leftArrow)return"left";if(Q.rightArrow)return"right";if(Q.pageUp)return"pageup";if(Q.pageDown)return"pagedown";if(Q.wheelUp)return"wheelup";if(Q.wheelDown)return"wheeldown";if(Q.home)return"home";if(Q.end)return"end";if(X.length===1)return X.toLowerCase();return null}var JQ=()=>{};function GQ(X){let Q=X.split("+"),V={key:"",ctrl:!1,alt:!1,shift:!1,meta:!1,super:!1};for(let Z of Q){let Y=Z.toLowerCase();switch(Y){case"ctrl":case"control":V.ctrl=!0;break;case"alt":case"opt":case"option":V.alt=!0;break;case"shift":V.shift=!0;break;case"meta":V.meta=!0;break;case"cmd":case"command":case"super":case"win":V.super=!0;break;case"esc":V.key="escape";break;case"return":V.key="enter";break;case"space":V.key=" ";break;case"↑":V.key="up";break;case"↓":V.key="down";break;case"←":V.key="left";break;case"→":V.key="right";break;default:V.key=Y;break}}return V}function yQ(X){if(X===" ")return[GQ("space")];return X.trim().split(/\s+/).map(GQ)}function hQ(X){let Q=[];if(X.ctrl)Q.push("ctrl");if(X.alt)Q.push("alt");if(X.shift)Q.push("shift");if(X.meta)Q.push("meta");if(X.super)Q.push("cmd");let V=kQ(X.key);return Q.push(V),Q.join("+")}function kQ(X){switch(X){case"escape":return"Esc";case" ":return"Space";case"tab":return"tab";case"enter":return"Enter";case"backspace":return"Backspace";case"delete":return"Delete";case"up":return"↑";case"down":return"↓";case"left":return"←";case"right":return"→";case"pageup":return"PageUp";case"pagedown":return"PageDown";case"home":return"Home";case"end":return"End";default:return X}}function l(X){return X.map(hQ).join(" ")}function BV(X){let Q=[];for(let V of X)for(let[Z,Y]of Object.entries(V.bindings))Q.push({chord:yQ(Z),action:Y,context:V.context});return Q}var qQ=()=>{};function LQ(X,Q,V){let Z=V.findLast((Y)=>Y.action===X&&Y.context===Q);return Z?l(Z.chord):void 0}function gQ(X,Q){let V=ZQ(X,Q);if(!V)return null;let Z=Q.escape?!1:Q.meta;return{key:V,ctrl:Q.ctrl,alt:Z,shift:Q.shift,meta:Z,super:Q.super}}function HQ(X,Q){return X.key===Q.key&&X.ctrl===Q.ctrl&&X.shift===Q.shift&&(X.alt||X.meta)===(Q.alt||Q.meta)&&X.super===Q.super}function lQ(X,Q){if(X.length>=Q.chord.length)return!1;for(let V=0;V<X.length;V++){let Z=X[V],Y=Q.chord[V];if(!Z||!Y)return!1;if(!HQ(Z,Y))return!1}return!0}function cQ(X,Q){if(X.length!==Q.chord.length)return!1;for(let V=0;V<X.length;V++){let Z=X[V],Y=Q.chord[V];if(!Z||!Y)return!1;if(!HQ(Z,Y))return!1}return!0}function zQ(X,Q,V,Z,Y){if(Q.escape&&Y!==null)return{type:"chord_cancelled"};let J=gQ(X,Q);if(!J){if(Y!==null)return{type:"chord_cancelled"};return{type:"none"}}let G=Y?[...Y,J]:[J],q=new Set(V),B=Z.filter((L)=>q.has(L.context)),z=new Map;for(let L of B)if(L.chord.length>G.length&&lQ(G,L))z.set(l(L.chord),L.action);let N=!1;for(let L of z.values())if(L!==null){N=!0;break}if(N)return{type:"chord_started",pending:G};let H;for(let L of B)if(cQ(G,L))H=L;if(H){if(H.action===null)return{type:"unbound"};return{type:"match",action:H.action}}if(Y!==null)return{type:"chord_cancelled"};return{type:"none"}}var BQ=F(()=>{JQ();qQ()});function MV(X){let Q=c.c(24),{bindings:V,pendingChordRef:Z,pendingChord:Y,setPendingChord:J,activeContexts:G,registerActiveContext:q,unregisterActiveContext:B,handlerRegistryRef:z,children:N}=X,H;if(Q[0]!==V)H=(U,O)=>LQ(U,O,V),Q[0]=V,Q[1]=H;else H=Q[1];let L=H,_;if(Q[2]!==z)_=(U)=>{let O=z.current;if(!O)return dQ;if(!O.has(U.action))O.set(U.action,new Set);return O.get(U.action).add(U),()=>{let I=O.get(U.action);if(I){if(I.delete(U),I.size===0)O.delete(U.action)}}},Q[2]=z,Q[3]=_;else _=Q[3];let b=_,E;if(Q[4]!==G||Q[5]!==z)E=(U)=>{let O=z.current;if(!O)return!1;let I=O.get(U);if(!I||I.size===0)return!1;for(let e of I)if(G.has(e.context))return e.handler(),!0;return!1},Q[4]=G,Q[5]=z,Q[6]=E;else E=Q[6];let K=E,j;if(Q[7]!==V||Q[8]!==Z)j=(U,O,I)=>zQ(U,O,I,V,Z.current),Q[7]=V,Q[8]=Z,Q[9]=j;else j=Q[9];let A;if(Q[10]!==G||Q[11]!==V||Q[12]!==L||Q[13]!==K||Q[14]!==Y||Q[15]!==q||Q[16]!==b||Q[17]!==J||Q[18]!==j||Q[19]!==B)A={resolve:j,setPendingChord:J,getDisplayText:L,bindings:V,pendingChord:Y,activeContexts:G,registerActiveContext:q,unregisterActiveContext:B,registerHandler:b,invokeAction:K},Q[10]=G,Q[11]=V,Q[12]=L,Q[13]=K,Q[14]=Y,Q[15]=q,Q[16]=b,Q[17]=J,Q[18]=j,Q[19]=B,Q[20]=A;else A=Q[20];let w=A,W;if(Q[21]!==N||Q[22]!==w)W=S(NQ.Provider,{value:w,children:N}),Q[21]=N,Q[22]=w,Q[23]=W;else W=Q[23];return W}function dQ(){}function y(){return m.useContext(NQ)}function SV(X,Q){let V=c.c(5),Z=Q===void 0?!0:Q,Y=y(),J,G;if(V[0]!==X||V[1]!==Z||V[2]!==Y)J=()=>{if(!Y||!Z)return;return Y.registerActiveContext(X),()=>{Y.unregisterActiveContext(X)}},G=[X,Y,Z],V[0]=X,V[1]=Z,V[2]=Y,V[3]=J,V[4]=G;else J=V[3],G=V[4];m.useLayoutEffect(J,G)}var c,m,NQ;var UQ=F(()=>{BQ();f();c=M(u(),1),m=M(v(),1),NQ=m.createContext(null)});function TV(X,Q,V={}){let{context:Z="Global",isActive:Y=!0}=V,J=y();C.useEffect(()=>{if(!J||!Y)return;return J.registerHandler({action:X,context:Z,handler:Q})},[X,Z,Q,J,Y]);let G=C.useCallback((q,B,z)=>{if(!J)return;let N=[...J.activeContexts,Z,"Global"],H=[...new Set(N)],L=J.resolve(q,B,H);switch(L.type){case"match":if(J.setPendingChord(null),L.action===X){if(Q()!==!1)z.stopImmediatePropagation()}break;case"chord_started":J.setPendingChord(L.pending),z.stopImmediatePropagation();break;case"chord_cancelled":J.setPendingChord(null);break;case"unbound":J.setPendingChord(null),z.stopImmediatePropagation();break;case"none":break}},[X,Z,Q,J]);d(G,{isActive:Y})}function OQ(X,Q={}){let{context:V="Global",isActive:Z=!0}=Q,Y=y();C.useEffect(()=>{if(!Y||!Z)return;let G=[];for(let[q,B]of Object.entries(X))G.push(Y.registerHandler({action:q,context:V,handler:B}));return()=>{for(let q of G)q()}},[V,X,Y,Z]);let J=C.useCallback((G,q,B)=>{if(!Y)return;let z=[...Y.activeContexts,V,"Global"],N=[...new Set(z)],H=Y.resolve(G,q,N);switch(H.type){case"match":if(Y.setPendingChord(null),H.action in X){let L=X[H.action];if(L&&L()!==!1)B.stopImmediatePropagation()}break;case"chord_started":Y.setPendingChord(H.pending),B.stopImmediatePropagation();break;case"chord_cancelled":Y.setPendingChord(null);break;case"unbound":Y.setPendingChord(null),B.stopImmediatePropagation();break;case"none":break}},[V,X,Y]);d(J,{isActive:Z})}var C;var _Q=F(()=>{a();UQ();C=M(v(),1)});function o(X,Q,V){let Z=R.useRef(0),Y=R.useRef(void 0),J=R.useCallback(()=>{if(Y.current)clearTimeout(Y.current),Y.current=void 0},[]);return R.useEffect(()=>{return()=>{J()}},[J]),R.useCallback(()=>{let G=Date.now();if(G-Z.current<=FQ&&Y.current!==void 0)J(),X(!1),Q();else V?.(),X(!0),J(),Y.current=setTimeout((z,N)=>{z(!1),N.current=void 0},FQ,X,Y);Z.current=G},[X,Q,V,J])}var R,FQ=800;var WQ=F(()=>{R=M(v(),1)});function wQ(X,Q,V,Z=!0){let{exit:Y}=jQ(),[J,G]=T.useState({pending:!1,keyName:null}),q=T.useMemo(()=>V??Y,[V,Y]),B=o((_)=>G({pending:_,keyName:"Ctrl-C"}),q),z=o((_)=>G({pending:_,keyName:"Ctrl-D"}),q),N=T.useCallback(()=>{if(Q?.())return;B()},[B,Q]),H=T.useCallback(()=>{z()},[z]),L=T.useMemo(()=>({"app:interrupt":N,"app:exit":H}),[N,H]);return X(L,{context:"Global",isActive:Z}),J}var T;var MQ=F(()=>{aQ();WQ();T=M(v(),1)});function $V(X,Q,V){return wQ(OQ,Q,X,V)}var oQ=F(()=>{_Q();MQ()});function IQ(){return $.useContext(s)!==null}function pV(X){let Q=SQ.c(3),V=$.useContext(s),Z;if(Q[0]!==V||Q[1]!==X)Z=V?{rows:V.rows,columns:V.columns}:X,Q[0]=V,Q[1]=X,Q[2]=Z;else Z=Q[2];return Z}function xV(){return $.useContext(s)?.scrollRef??null}var SQ,$,s;var KQ=F(()=>{SQ=M(u(),1),$=M(v(),1),s=$.createContext(null)});function EQ(X){let Q=TQ.c(21),{width:V,color:Z,char:Y,padding:J,title:G}=X,q=Y===void 0?"─":Y,B=J===void 0?0:J,{columns:z}=XQ(),N=Math.max(0,(V??z)-B);if(G){let b=AQ(G)+2,E=Math.max(0,N-b),K=Math.floor(E/2),j=E-K,A=!Z,w;if(Q[0]!==q||Q[1]!==K)w=q.repeat(K),Q[0]=q,Q[1]=K,Q[2]=w;else w=Q[2];let W;if(Q[3]!==G)W=S(h,{dimColor:!0,children:S(RQ,{children:G})}),Q[3]=G,Q[4]=W;else W=Q[4];let U;if(Q[5]!==q||Q[6]!==j)U=q.repeat(j),Q[5]=q,Q[6]=j,Q[7]=U;else U=Q[7];let O;if(Q[8]!==Z||Q[9]!==A||Q[10]!==w||Q[11]!==W||Q[12]!==U)O=k(h,{color:Z,dimColor:A,children:[w," ",W," ",U]}),Q[8]=Z,Q[9]=A,Q[10]=w,Q[11]=W,Q[12]=U,Q[13]=O;else O=Q[13];return O}let H=!Z,L;if(Q[14]!==q||Q[15]!==N)L=q.repeat(N),Q[14]=q,Q[15]=N,Q[16]=L;else L=Q[16];let _;if(Q[17]!==Z||Q[18]!==H||Q[19]!==L)_=S(h,{color:Z,dimColor:H,children:L}),Q[17]=Z,Q[18]=H,Q[19]=L,Q[20]=_;else _=Q[20];return _}var TQ;var DQ=F(()=>{YQ();sQ();a();f();TQ=M(u(),1)});function oV(X){let Q=PQ.c(9),{children:V,color:Z}=X;if(IQ()){let q;if(Q[0]!==V)q=S(g,{flexDirection:"column",paddingX:1,flexShrink:0,children:V}),Q[0]=V,Q[1]=q;else q=Q[1];return q}let Y;if(Q[2]!==Z)Y=S(EQ,{color:Z}),Q[2]=Z,Q[3]=Y;else Y=Q[3];let J;if(Q[4]!==V)J=S(g,{flexDirection:"column",paddingX:2,children:V}),Q[4]=V,Q[5]=J;else J=Q[5];let G;if(Q[6]!==Y||Q[7]!==J)G=k(g,{flexDirection:"column",paddingTop:1,children:[Y,J]}),Q[6]=Y,Q[7]=J,Q[8]=G;else G=Q[8];return G}var PQ;var rQ=F(()=>{KQ();a();DQ();f();PQ=M(u(),1)});async function ZV(X="claude_code_guest_pass"){let{accessToken:Q,orgUUID:V}=await n(),Z={...t(Q),"x-organization-uuid":V},Y=`${r().BASE_API_URL}/api/oauth/organizations/${V}/referral/eligibility`;return(await i.get(Y,{headers:Z,params:{campaign:X},timeout:5000})).data}async function ZX(X="claude_code_guest_pass"){let{accessToken:Q,orgUUID:V}=await n(),Z={...t(Q),"x-organization-uuid":V},Y=`${r().BASE_API_URL}/api/oauth/organizations/${V}/referral/redemptions`;return(await i.get(Y,{headers:Z,params:{campaign:X},timeout:1e4})).data}function xQ(){return!!(P()?.organizationUuid&&$Q()&&bQ()==="max")}function JX(){if(!xQ())return{eligible:!1,needsRefresh:!1,hasCache:!1};let X=P()?.organizationUuid;if(!X)return{eligible:!1,needsRefresh:!1,hasCache:!1};let V=x().passesEligibilityCache?.[X];if(!V)return{eligible:!1,needsRefresh:!0,hasCache:!1};let{eligible:Z,timestamp:Y}=V,G=Date.now()-Y>pQ;return{eligible:Z,needsRefresh:G,hasCache:!0}}function GX(X){let Q=JV[X.currency]??`${X.currency} `,V=X.amount_minor_units/100,Z=V%1===0?V.toString():V.toFixed(2);return`${Q}${Z}`}function qX(){let X=P()?.organizationUuid;if(!X)return null;return x().passesEligibilityCache?.[X]?.referrer_reward??null}function LX(){let X=P()?.organizationUuid;if(!X)return null;return x().passesEligibilityCache?.[X]?.remaining_passes??null}async function vQ(){if(p)return D("Passes: Reusing in-flight eligibility fetch"),p;let X=P()?.organizationUuid;if(!X)return null;return p=(async()=>{try{let Q=await ZV(),V={...Q,timestamp:Date.now()};return mQ((Z)=>({...Z,passesEligibilityCache:{...Z.passesEligibilityCache,[X]:V}})),D(`Passes eligibility cached for org ${X}: ${Q.eligible}`),Q}catch(Q){return D("Failed to fetch and cache passes eligibility"),CQ(Q),null}finally{p=null}})(),p}async function GV(){if(!xQ())return null;let X=P()?.organizationUuid;if(!X)return null;let V=x().passesEligibilityCache?.[X],Z=Date.now();if(!V)return D("Passes: No cache, fetching eligibility in background (command unavailable this session)"),vQ(),null;if(Z-V.timestamp>pQ){D("Passes: Cache stale, returning cached data and refreshing in background"),vQ();let{timestamp:G,...q}=V;return q}D("Passes: Using fresh cached eligibility data");let{timestamp:Y,...J}=V;return J}async function HX(){if(fQ())return;GV()}var pQ=86400000,p=null,JV;var qV=F(()=>{tQ();nQ();XV();QV();iQ();VV();eQ();YV();JV={USD:"$",EUR:"€",GBP:"£",BRL:"R$",CAD:"CA$",AUD:"A$",NZD:"NZ$",SGD:"S$"}});
|
|
2
|
+
export{XQ as jX,YQ as kX,GQ as lX,yQ as mX,l as nX,BV as oX,qQ as pX,LQ as qX,zQ as rX,BQ as sX,MV as tX,y as uX,SV as vX,UQ as wX,TV as xX,OQ as yX,_Q as zX,o as AX,WQ as BX,$V as CX,oQ as DX,s as EX,IQ as FX,pV as GX,xV as HX,KQ as IX,EQ as JX,DQ as KX,oV as LX,rQ as MX,ZX as NX,JX as OX,GX as PX,qX as QX,LX as RX,GV as SX,HX as TX,qV as UX};
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import{Ec as Kc,Fc as da}from"./cli-0.7.4-7mzefe20.mjs";import{Gc as An,Hc as Ht,Ic as Xt,Jc as Zc,Lc as ea}from"./cli-0.7.4-729n63er.mjs";import{Mc as wt,Pc as ma}from"./cli-0.7.4-hayqy916.mjs";import{$F as Vu,Ap as yc,Bp as Wu,Cp as Cc,Dp as bc,Dv as Qc,Ep as wc,FF as V,Fp as Oc,Fv as ha,GF as gu,Gp as D,HF as ia,Hp as mn,Ip as Uu,Jp as Lc,Lp as zc,Mp as Nc,Op as fc,WF as nc,XF as Gu,YF as cc,ZF as uc,_F as ac,dq as Mc,eq as aa,sy as Gc,ty as Vc,uH as Hn,uy as Yc,vF as yt,vH as Au,vy as Jc,wF as Kn,wy as ra,xH as la,yH as oa}from"./cli-0.7.4-1tkzz9x6.mjs";import{LX as Fc,MX as ua,xX as v,zX as ca}from"./cli-0.7.4-wtz9ed9r.mjs";import{UZ as g,WZ as i,z0 as Ln}from"./cli-0.7.4-2apswqf5.mjs";import{C1 as Nn,D1 as Mn,E1 as Qn,F1 as Gn,G1 as Vn,H1 as su,K1 as Yn,O1 as Jn,P1 as $c,Q1 as Zn}from"./cli-0.7.4-tny04z8h.mjs";import{E2 as dt,F2 as u,G2 as y,H2 as Qt}from"./cli-0.7.4-hnfm0p8b.mjs";import{I2 as Vt}from"./cli-0.7.4-85txq06q.mjs";import{d3 as lc,e3 as Hu}from"./cli-0.7.4-da69w12w.mjs";import{u3 as $n,w3 as Ou}from"./cli-0.7.4-2haqz80h.mjs";import{Cda as qc,Dda as bt,Eda as ta,Fda as Tt,Gda as nt,Hea as na,Ida as W,Jda as Kt,Lda as ft,Mda as Cn,Nda as ct,Oda as At,P8 as Ct,Q8 as vu,Sda as Rt,Tda as bn,Vda as wn,Zda as Fn,cea as hn,dea as xn,eea as jn,fea as Yt,gea as rn,hea as Dn,iea as an,jea as vn,kea as tc,lea as Qu,mea as On,nea as rc,oea as sn,qea as ic,sea as Sc,tea as gn}from"./cli-0.7.4-hvnzwb5v.mjs";import{Dja as on,vja as ut}from"./cli-0.7.4-h0ze5j97.mjs";import{Lqa as Gt,Mqa as Du,Pqa as j}from"./cli-0.7.4-58p1wenr.mjs";function zu(t,c=tn,a){let r=nt().find((m)=>m.provider==="openai"&&m.extras?.githubToken!==void 0);if(r)return At(r.id,{provider:"openai",name:r.name,baseUrl:a||r.baseUrl,model:r.model||c,apiKey:t,extras:{...r.extras,githubToken:t}}),Rt(r.id),{mode:"updated"};return ct({provider:"openai",name:"GitHub Copilot",baseUrl:a||Ru,model:c,apiKey:t,extras:{githubToken:t}},{makeActive:!0}),{mode:"created"}}function Tn({onDone:t,onBack:c,onChangeAPIKey:a}){let r=Yn()?.trim()?"already-authed":"menu",[m,e]=E.useState(r),[A,O]=E.useState(null),[X,w]=E.useState(""),[z,S]=E.useState(0),[L,Z]=E.useState(null),N=E.useCallback(async(Y,q=tn,tt,f)=>{let T=Jn(Y,tt,f?.enterpriseDomain);if(!T.success){O(T.warning??"Could not save token to secure storage."),e("error");return}zu(Y,q,f?.baseUrl),$n(),a?.(),t("GitHub Copilot onboard complete. Copilot token stored in secure storage and as the active /provider profile.",{display:"user"})},[a,t]),C=E.useCallback(async(Y)=>{e("device-busy"),O(null),Z(null);try{let q=await Mn({domain:Y});Z({user_code:q.user_code,verification_uri:q.verification_uri}),await Gn(q.verification_uri);let tt=await Qn(q.device_code,{initialInterval:q.interval,timeoutSeconds:q.expires_in,domain:Y}),f=await Vn(tt,{domain:Y});await N(f.token,tn,tt,{baseUrl:f.endpoints.api?.replace(/\/+$/,"")||void 0,enterpriseDomain:Y})}catch(q){O(q instanceof Error?q.message:String(q)),e("error")}},[N]);if(m==="already-authed")return y(g,{flexDirection:"column",gap:1,children:[u(i,{bold:!0,children:"GitHub Copilot"}),u(i,{children:"You are already signed in to GitHub Copilot."}),u(i,{dimColor:!0,children:'Choose "Sign in again" to refresh your token, or go back to the provider menu.'}),u(V,{options:[{label:"Sign in again",value:"sign-in-again"},{label:"Sign in with GitHub Enterprise",value:"enterprise"},{label:c?"Back to /provider menu":"Cancel",value:"back"}],onChange:(q)=>{if(q==="sign-in-again"){C();return}if(q==="enterprise"){e("enterprise-domain");return}if(c){c();return}t("GitHub onboard cancelled",{display:"system"})}})]});if(m==="enterprise-domain")return y(g,{flexDirection:"column",gap:1,children:[u(i,{bold:!0,children:"GitHub Enterprise sign-in"}),u(i,{dimColor:!0,children:"Enter your GitHub Enterprise domain (e.g. github.acme.com). Leave empty for github.com."}),y(g,{flexDirection:"row",gap:1,children:[u(i,{children:">"}),u(yt,{value:X,onChange:w,onSubmit:()=>{let q=Nn(X);if(!q){C();return}C(q)},onExit:()=>e(r),focus:!0,showCursor:!0,placeholder:"github.acme.com",columns:80,cursorOffset:z,onChangeCursorOffset:S})]}),u(i,{dimColor:!0,children:"Press Enter to continue. Press Esc to go back."})]});if(m==="error"&&A)return y(g,{flexDirection:"column",gap:1,children:[u(i,{color:"red",children:A}),u(V,{options:[{label:c?"Back to /provider menu":"Back to menu",value:"back"},{label:"Exit",value:"exit"}],onChange:(q)=>{if(q==="back"){if(c){c();return}e("menu"),O(null);return}t("GitHub onboard cancelled",{display:"system"})}})]});if(m==="device-busy")return y(g,{flexDirection:"column",gap:1,children:[u(i,{children:"GitHub Copilot sign-in"}),L?y(dt,{children:[y(i,{children:["Enter code ",u(i,{bold:!0,children:L.user_code})," at"," ",L.verification_uri]}),u(i,{dimColor:!0,children:"A browser window may have opened. Waiting for authorization..."})]}):u(i,{dimColor:!0,children:"Requesting device code from GitHub..."}),u(Hn,{})]});return y(g,{flexDirection:"column",gap:1,children:[u(i,{bold:!0,children:"GitHub Copilot setup"}),u(i,{dimColor:!0,children:"Stores your token in the OS credential store (macOS Keychain when available) and creates a /provider profile so Copilot is the active provider — no manual env exports required."}),u(V,{options:[{label:"Sign in with browser",value:"device"},{label:"Sign in with GitHub Enterprise",value:"enterprise"},{label:c?"Back to /provider menu":"Cancel",value:"cancel"}],onChange:(Y)=>{if(Y==="cancel"){if(c){c();return}t("GitHub onboard cancelled",{display:"system"});return}if(Y==="enterprise"){e("enterprise-domain");return}C()}})]})}var E,tn="github:copilot",Ru="https://api.githubcopilot.com";var Wn=j(()=>{gu();Au();Kn();Ln();su();Zn();Ou();Fn();Qt();E=Gt(Vt(),1)});function En(t){return[t.name,t.family??"",...t.families??[],t.parameterSize??"",t.quantizationLevel??""].join(" ").toLowerCase()}function zt(t,c){return c.some((a)=>t.includes(a))}function _u(t){return!zt(En(t),Un)}function qu(t){return t.find(_u)??null}function nn(t){let a=`${t.parameterSize??""} ${t.name}`.toLowerCase().match(/(\d+(?:\.\d+)?)\s*b\b/);if(a?.[1])return Number(a[1]);if(typeof t.sizeBytes==="number"&&t.sizeBytes>0)return Number((t.sizeBytes/1e9).toFixed(1));return null}function Su(t){return(t.quantizationLevel??t.name).toLowerCase()}function Fu(t,c,a){if(t===null)return a.push("unknown size"),0;if(c==="latency"){if(t<=4)return a.push("tiny model for low latency"),32;if(t<=8)return a.push("small model for fast responses"),26;if(t<=14)return a.push("mid-sized model with acceptable latency"),16;if(t<=24)return a.push("larger model may be slower"),8;return a.push("large model likely slower locally"),t<=40?0:-8}if(c==="coding"){if(t>=7&&t<=14)return a.push("strong coding size tier"),24;if(t>14&&t<=34)return a.push("large coding-capable size tier"),28;if(t>34)return a.push("very large model with higher quality potential"),18;return a.push("compact model may trade off coding depth"),12}if(t>=7&&t<=14)return a.push("great balanced size tier"),26;if(t>=3&&t<7)return a.push("compact balanced size tier"),18;if(t>14&&t<=24)return a.push("high quality balanced size tier"),20;if(t>24)return a.push("large model for quality-first usage"),10;return a.push("very small model for general usage"),8}function $u(t,c,a){let r=Su(t);if(r.includes("q4"))return a.push("efficient Q4 quantization"),c==="latency"?8:4;if(r.includes("q5"))return a.push("balanced Q5 quantization"),c==="latency"?6:5;if(r.includes("q8"))return a.push("higher quality Q8 quantization"),c==="latency"?2:5;return 0}function Lu(t,c,a){if(c.score!==t.score)return c.score-t.score;let r=nn(t)??Number.POSITIVE_INFINITY,m=nn(c)??Number.POSITIVE_INFINITY;if(a==="latency")return r-m;if(a==="coding")return m-r;let e=14;return Math.abs(r-e)-Math.abs(m-e)}function cn(t,c){return t.map((a)=>{let r=En(a),m=[],e=0;if(zt(r,Un))e-=40,m.push("not a chat-first model");if(zt(r,fu))e+=c==="coding"?24:c==="balanced"?10:4,m.push("coding-oriented model family");if(zt(r,Xu))e+=c==="latency"?4:c==="coding"?6:8,m.push("strong general-purpose model family");if(zt(r,ku))e+=c==="latency"?2:6,m.push("chat/instruct tuned");if(r.includes("vision")||r.includes("vl"))e-=2,m.push("vision model adds extra overhead");e+=Fu(nn(a),c,m),e+=$u(a,c,m);let A=m.slice(0,3).join(", ");return{...a,score:e,reasons:m,summary:A}}).sort((a,r)=>Lu(a,r,c))}function Pn(t,c){return qu(cn(t,c))}var fu,Xu,ku,Un;var Bn=j(()=>{fu=["coder","codellama","codegemma","codestral","devstral","starcoder","deepseek-coder","qwen2.5-coder","qwen-coder"],Xu=["llama","qwen","mistral","gemma","phi","deepseek"],ku=["instruct","chat","assistant"],Un=["embed","embedding","rerank","bge","whisper"]});function Mu(t){let c=t.toLowerCase();return Nu.some((a)=>c.includes(a))}function un(t){try{let c=new URL(t);if(c.username)c.username="redacted";if(c.password)c.password="redacted";for(let a of c.searchParams.keys())if(Mu(a))c.searchParams.set(a,"redacted");return c.toString()}catch{return t.replace(/\/\/[^/@\s]+(?::[^/@\s]*)?@/g,"//redacted@").replace(/([?&](?:token|access_token|refresh_token|api_key|apikey|key|password|passwd|pwd|auth|authorization|signature|sig|secret)=)[^&#]*/gi,"$1redacted")}}var Nu;var In=j(()=>{Nu=["api_key","apikey","key","token","access_token","refresh_token","signature","sig","secret","password","passwd","pwd","auth","authorization"]});function Yu(t){let c=`http://localhost:${t.port}/auth/callback`,a=new URL(`${hn}/oauth/authorize`);return a.searchParams.append("response_type","code"),a.searchParams.append("client_id",rn()),a.searchParams.append("redirect_uri",c),a.searchParams.append("scope",xn),a.searchParams.append("code_challenge",t.codeChallenge),a.searchParams.append("code_challenge_method","S256"),a.searchParams.append("id_token_add_organizations","true"),a.searchParams.append("codex_cli_simplified_flow","true"),a.searchParams.append("state",t.state),a.searchParams.append("originator",jn),a.toString()}function Ju(){return`<!doctype html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="utf-8" />
|
|
5
|
+
<title>Codex Login Complete</title>
|
|
6
|
+
<style>
|
|
7
|
+
body { font-family: sans-serif; padding: 32px; line-height: 1.5; color: #111827; }
|
|
8
|
+
h1 { margin: 0 0 12px; font-size: 22px; }
|
|
9
|
+
p { margin: 0 0 10px; }
|
|
10
|
+
</style>
|
|
11
|
+
</head>
|
|
12
|
+
<body>
|
|
13
|
+
<h1>Codex login complete</h1>
|
|
14
|
+
<p>You can return to Claudin now.</p>
|
|
15
|
+
<p>Claudin will finish activating your new Codex OAuth login.</p>
|
|
16
|
+
</body>
|
|
17
|
+
</html>`}function Zu(t){return`<!doctype html>
|
|
18
|
+
<html lang="en">
|
|
19
|
+
<head>
|
|
20
|
+
<meta charset="utf-8" />
|
|
21
|
+
<title>Codex Login Failed</title>
|
|
22
|
+
<style>
|
|
23
|
+
body { font-family: sans-serif; padding: 32px; line-height: 1.5; color: #111827; }
|
|
24
|
+
h1 { margin: 0 0 12px; font-size: 22px; color: #991b1b; }
|
|
25
|
+
p { margin: 0 0 10px; }
|
|
26
|
+
</style>
|
|
27
|
+
</head>
|
|
28
|
+
<body>
|
|
29
|
+
<h1>Codex login failed</h1>
|
|
30
|
+
<p>${vn(t)}</p>
|
|
31
|
+
<p>You can close this window and try again in Claudin.</p>
|
|
32
|
+
</body>
|
|
33
|
+
</html>`}function pn(){return`<!doctype html>
|
|
34
|
+
<html lang="en">
|
|
35
|
+
<head>
|
|
36
|
+
<meta charset="utf-8" />
|
|
37
|
+
<title>Codex Login Cancelled</title>
|
|
38
|
+
<style>
|
|
39
|
+
body { font-family: sans-serif; padding: 32px; line-height: 1.5; color: #111827; }
|
|
40
|
+
h1 { margin: 0 0 12px; font-size: 22px; }
|
|
41
|
+
p { margin: 0 0 10px; }
|
|
42
|
+
</style>
|
|
43
|
+
</head>
|
|
44
|
+
<body>
|
|
45
|
+
<h1>Codex login cancelled</h1>
|
|
46
|
+
<p>You can close this window and retry in Claudin.</p>
|
|
47
|
+
</body>
|
|
48
|
+
</html>`}async function Ku(t){let c=`http://localhost:${t.port}/auth/callback`,a=new URLSearchParams({grant_type:"authorization_code",code:t.authorizationCode,redirect_uri:c,client_id:rn(),code_verifier:t.codeVerifier}),r=await fetch(`${hn}/oauth/token`,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:a,signal:t.signal?AbortSignal.any([t.signal,AbortSignal.timeout(15000)]):AbortSignal.timeout(15000)});if(!r.ok){let w=await r.text().catch(()=>"");throw Error(w.trim()?`Codex OAuth token exchange failed (${r.status}): ${w.trim()}`:`Codex OAuth token exchange failed with status ${r.status}.`)}let m=await r.json(),e=Yt(m.access_token),A=Yt(m.refresh_token);if(!e||!A)throw Error("Codex OAuth completed, but the token response was missing credentials.");let O=Yt(m.id_token);return{apiKey:O?await tc(O).catch(()=>{return}):void 0,accessToken:e,refreshToken:A,idToken:O,accountId:an(O)??an(e)}}class ln{authCodeListener=null;port=null;tokenExchangeAbortController=null;buildCancellationError(){return Error("Codex OAuth flow was cancelled.")}async startOAuthFlow(t){let c=cc(),a=Dn(),r=new nc("/auth/callback");this.authCodeListener=r,this.port=null;try{let m=await r.start(a);this.port=m;let e=ac(),A=await uc(c),O=Yu({port:m,codeChallenge:A,state:e});try{let X=await r.waitForAuthorization(e,async()=>{await t(O)}),w=new AbortController;this.tokenExchangeAbortController=w;let z;try{z=await Ku({authorizationCode:X,codeVerifier:c,port:m,signal:w.signal})}finally{if(this.tokenExchangeAbortController===w)this.tokenExchangeAbortController=null}if(this.authCodeListener!==r)throw this.buildCancellationError();return r.handleSuccessRedirect([],(S)=>{S.writeHead(200,{"Content-Type":"text/html; charset=utf-8"}),S.end(Ju())}),z}catch(X){let w=this.authCodeListener===r?X:this.buildCancellationError();if(r.hasPendingResponse()){let z=w instanceof Error&&w.message==="Codex OAuth flow was cancelled.";r.handleErrorRedirect((S)=>{S.writeHead(z?200:400,{"Content-Type":"text/html; charset=utf-8"}),S.end(z?pn():Zu(w instanceof Error?w.message:String(w)))})}throw w}finally{this.cleanup()}}catch(m){let e=m instanceof Error?m.message:String(m);if(e.includes("EADDRINUSE")||e.includes(String(a)))throw Error(`Codex OAuth needs localhost:${a} for its callback. Close any app already using that port and try again.`);throw m}}cleanup(){let t=this.buildCancellationError();if(this.tokenExchangeAbortController?.abort(t),this.tokenExchangeAbortController=null,this.authCodeListener?.hasPendingResponse())this.authCodeListener.handleErrorRedirect((c)=>{c.writeHead(200,{"Content-Type":"text/html; charset=utf-8"}),c.end(pn())});this.authCodeListener?.cancelPendingAuthorization(t),this.authCodeListener=null,this.port=null}}var hc=j(()=>{Gu();Vu();Qu()});function Tu(){return new ln}function oc(t){let{onAuthenticated:c}=t,a=t.deps?.createOAuthService??Tu,r=t.deps?.openBrowser??lc,m=t.deps?.saveCodexCredentials??rc,e=t.deps?.isBareMode??ut,[A,O]=Jt.useState({state:"starting"});return Jt.useEffect(()=>{if(e()){O({state:"error",message:"Codex OAuth is unavailable in --bare because secure storage is disabled."});return}let X=!1,w=a();return w.startOAuthFlow(async(z)=>{if(X)return;O({state:"waiting",authUrl:z,browserOpened:null});let S=await r(z);if(X)return;O({state:"waiting",authUrl:z,browserOpened:S})}).then(async(z)=>{if(X)return;await c(z,(L)=>{let Z=m({apiKey:z.apiKey,accessToken:z.accessToken,refreshToken:z.refreshToken,idToken:z.idToken,accountId:z.accountId,profileId:L?.profileId});if(!Z.success)throw Error(Z.warning??"Codex OAuth succeeded, but credentials could not be saved securely.")})}).catch((z)=>{if(X)return;O({state:"error",message:z instanceof Error?z.message:String(z)})}),()=>{X=!0,w.cleanup()}},[a,e,c,r,m]),A}var Jt;var mc=j(()=>{hc();Hu();ic();on();Jt=Gt(Vt(),1)});function Ac(){return{"Content-Type":"application/x-www-form-urlencoded",Accept:"application/json","User-Agent":yc()}}function dc(t,c){let a=Number(t);return Number.isFinite(a)&&a>0?a*1000:c}function Iu(t,c){if(c?.aborted)return Promise.resolve();return new Promise((a)=>{let r=setTimeout(()=>{c?.removeEventListener("abort",m),a()},t),m=()=>{clearTimeout(r),a()};c?.addEventListener("abort",m,{once:!0})})}async function pu(t){let c=t?.fetchImpl??fetch,a=t?.signal?AbortSignal.any([t.signal,AbortSignal.timeout(15000)]):AbortSignal.timeout(15000),r=await c(bc,{method:"POST",headers:Ac(),body:new URLSearchParams({client_id:mn(),scope:Oc}).toString(),signal:a});if(!r.ok){let X=await r.text().catch(()=>"");throw Error(`xAI device code request failed (${r.status})${X?`: ${X.trim()}`:""}`)}let m=await r.json(),e=D(m.device_code),A=D(m.user_code),O=D(m.verification_uri);if(!e||!A||!O)throw Error("xAI device code response is missing device_code / user_code / verification_uri.");return{device_code:e,user_code:A,verification_uri:O,verification_uri_complete:D(m.verification_uri_complete),expires_in:typeof m.expires_in==="number"&&m.expires_in>0?m.expires_in:gc/1000,interval:typeof m.interval==="number"&&m.interval>0?m.interval:sc/1000}}async function xu(t,c){let a=c?.fetchImpl??fetch,r=c?.sleep??Iu,m=c?.now??(()=>Date.now()),e=dc(t.expires_in,gc),A=m()+e,O=Math.max(dc(t.interval,sc),Eu);while(m()<A){if(c?.signal?.aborted)throw Error("xAI device authorization was cancelled.");let X=await a(Cc,{method:"POST",headers:Ac(),body:new URLSearchParams({grant_type:wc,client_id:mn(),device_code:t.device_code}).toString(),signal:c?.signal});if(X.ok){let L=await X.json(),Z=D(L.access_token),N=D(L.refresh_token);if(!Z||!N)throw Error("xAI OAuth completed, but the token response was missing credentials.");let C=typeof L.expires_in==="number"&&Number.isFinite(L.expires_in)&&L.expires_in>0?L.expires_in:3600;return{accessToken:Z,refreshToken:N,idToken:D(L.id_token),expiresAt:m()+C*1000}}let w=await X.json().catch(()=>({})),z=Math.max(0,A-m());if(w.error==="authorization_pending"){await r(Math.min(O+ec,z),c?.signal);continue}if(w.error==="slow_down"){O=Math.min(O+Pu,Bu),await r(Math.min(O+ec,z),c?.signal);continue}if(w.error==="access_denied"||w.error==="authorization_denied")throw Error("xAI device authorization was denied.");if(w.error==="expired_token")throw Error("xAI device code expired - please re-run login.");let S=w.error_description??w.error??"";throw Error(`xAI device token exchange failed (${X.status})${S?`: ${S}`:""}`)}throw Error("xAI device authorization timed out.")}class en{abortController=null;async startDeviceFlow(t){let c=new AbortController;this.abortController=c;try{let a=await pu({signal:c.signal});return await t(a),await xu(a,{signal:c.signal})}finally{if(this.abortController===c)this.abortController=null}}cleanup(){this.abortController?.abort(Error("xAI device authorization was cancelled.")),this.abortController=null}}var sc=5000,Eu=1000,Pu=5000,Bu=60000,gc=300000,ec=3000;var Rc=j(()=>{Wu();Uu()});function ju(){return new en}function Xc(t){let{onAuthenticated:c}=t,a=t.deps?.createOAuthService??ju,r=t.deps?.saveXaiCredentials??zc,m=t.deps?.isBareMode??ut,[e,A]=Zt.useState({state:"starting"});return Zt.useEffect(()=>{if(m()){A({state:"error",message:"xAI OAuth is unavailable in --bare because secure storage is disabled."});return}let O=!1,X=a();return X.startDeviceFlow(async(w)=>{if(O)return;A({state:"waiting",userCode:w.user_code,verificationUri:w.verification_uri,verificationUriComplete:w.verification_uri_complete})}).then(async(w)=>{if(O)return;await c(w,(S)=>{let L=r({accessToken:w.accessToken,refreshToken:w.refreshToken,idToken:w.idToken,expiresAt:w.expiresAt,profileId:S?.profileId});if(!L.success)throw Error(L.warning??"xAI OAuth succeeded, but credentials could not be saved securely.")})}).catch((w)=>{if(O)return;A({state:"error",message:w instanceof Error?w.message:String(w)})}),()=>{O=!0,X.cleanup()}},[a,m,c,r]),e}var Zt;var kc=j(()=>{Rc();on();fc();Zt=Gt(Vt(),1)});function sa(t){return{name:t.name,baseUrl:t.baseUrl,model:t.model,apiKey:t.apiKey??""}}function ga(t){let c=Tt(t);return{name:c.name,baseUrl:c.baseUrl,model:c.model,apiKey:c.apiKey??""}}function Aa(t){let c={};for(let a of t.split(/\r?\n/)){let r=a.trim();if(!r)continue;let m=r.indexOf(":");if(m<=0)continue;let e=r.slice(0,m).trim(),A=r.slice(m+1).trim();if(e&&A)c[e]=A}return c}function Ra(t){if(!t)return"";return Object.entries(t).map(([c,a])=>`${c}: ${a}`).join(`
|
|
49
|
+
`)}function za(t,c){let a={},r=t.awsRegion?.trim();if(r)a.awsRegion=r;let m=t.gcpProject?.trim();if(m)a.gcpProject=m;let e=t.gcpRegion?.trim();if(e)a.gcpRegion=e;let A=t.azureResource?.trim();if(A)a.azureResource=A;let O=Aa(c);if(Object.keys(O).length>0)a.customHeaders=O;return Object.keys(a).length>0?a:void 0}function Xa(t,c){let a=c?" (active)":"",r=t.apiKey?"key set":"no key",m=t.provider==="anthropic"?"anthropic":"openai-compatible",e=qc(t.model),A=e.length<=3?e.join(", "):`${e[0]}, ${e[1]} + ${e.length-2} more`;return`${m} · ${t.baseUrl} · ${A} · ${r}${a}`}function ka(t,c){if(t.state==="unreachable")return`Could not reach Atomic Chat at ${un(c)}. Start the Atomic Chat app first, or enter the endpoint manually.`;if(t.state==="no_models")return"Atomic Chat is running, but no models are loaded. Download and load a model inside the Atomic Chat app first, or enter details manually.";return""}function _a(t,c){if(t.state==="unreachable")return`Could not reach Ollama at ${un(c)}. Start Ollama first, or enter the endpoint manually.`;if(t.state==="no_models")return"Ollama is running, but no installed models were found. Pull a chat model such as qwen2.5-coder:7b or llama3.1:8b first, or enter details manually.";if(t.state==="generation_failed"){let a=t.probeModel??"the selected model",r=t.detail?` Details: ${t.detail}.`:"";return`Ollama is reachable and models are installed, but a generation probe failed for ${a}.${r} Run "ollama run ${a}" once and retry, or enter details manually.`}return""}function yn(t,c){if(!c)return;return t.find((a)=>a.id===c)}function _c(t,c){return Boolean(t&&c&&t.id===c)}function qa({onBack:t,onConfigured:c}){let a=b.useCallback(async(m,e)=>{await c(m,e)},[c]);v("confirm:no",t,[t]);let r=oc({onAuthenticated:a});if(r.state==="error")return y(g,{flexDirection:"column",gap:1,children:[u(i,{color:"error",bold:!0,children:"Codex OAuth failed"}),u(i,{children:r.message}),u(i,{dimColor:!0,children:"Press Enter or Esc to go back."}),u(V,{options:[{value:"back",label:"Back",description:"Return to provider presets"}],onChange:t,onCancel:t,visibleOptionCount:1})]});return y(g,{flexDirection:"column",gap:1,children:[u(i,{color:"remember",bold:!0,children:"Codex OAuth"}),u(i,{children:"Sign in with your ChatGPT account in the browser. Claudin will store the resulting Codex credentials securely and switch this session to the new Codex login when setup completes."}),r.state==="starting"?u(i,{dimColor:!0,children:"Starting local callback and preparing your browser..."}):r.browserOpened===!1?y(dt,{children:[u(i,{color:"warning",children:"Browser did not open automatically. Visit this URL to continue:"}),u(i,{children:r.authUrl})]}):r.browserOpened===!0?y(dt,{children:[u(i,{dimColor:!0,children:"Browser opened. Finish the ChatGPT sign-in there and this setup will complete automatically."}),u(i,{children:r.authUrl})]}):u(i,{dimColor:!0,children:"Opening your browser..."}),u(i,{dimColor:!0,children:"Press Esc to cancel and go back."})]})}function Sa({onBack:t,onConfigured:c}){let a=b.useCallback(async(m,e)=>{await c(m,e)},[c]);v("confirm:no",t,[t]);let r=Xc({onAuthenticated:a});if(r.state==="error")return y(g,{flexDirection:"column",gap:1,children:[u(i,{color:"error",bold:!0,children:"xAI OAuth failed"}),u(i,{children:r.message}),u(i,{dimColor:!0,children:"Press Enter or Esc to go back."}),u(V,{options:[{value:"back",label:"Back",description:"Return to provider presets"}],onChange:t,onCancel:t,visibleOptionCount:1})]});return y(g,{flexDirection:"column",gap:1,children:[u(i,{color:"remember",bold:!0,children:"xAI / Grok OAuth"}),r.state==="starting"?u(i,{dimColor:!0,children:"Requesting a device code from xAI..."}):y(dt,{children:[y(i,{children:["Open this URL on any device:"," ",u(i,{bold:!0,children:r.verificationUri})]}),y(i,{children:["Enter code ",u(i,{bold:!0,children:r.userCode})]}),r.verificationUriComplete&&r.verificationUriComplete!==r.verificationUri?y(i,{dimColor:!0,children:["Or open this prefilled URL: ",r.verificationUriComplete]}):null,u(i,{dimColor:!0,children:"Waiting for you to authorize in the browser..."})]}),u(i,{dimColor:!0,children:"Press Esc to cancel and go back."})]})}function Sh({mode:t,onDone:c}){let a=Qc(),[r,m]=b.useState([]),[e,A]=b.useState(),[O,X]=b.useState(),[w,z]=b.useState(!1),[S,L]=b.useState(),Z=b.useRef(0),[N,C]=b.useState(t==="first-run"?"select-preset":"menu"),[ht,Y]=b.useState(null),[q,tt]=b.useState("openai"),[f,T]=b.useState(()=>ga("ollama")),[Wt,kt]=b.useState({}),[Rn,Ut]=b.useState(""),[Hc,Tc]=b.useState(0),[Wc,Uc]=b.useState(0),[Et,zn]=b.useState(null),[rt,Ot]=b.useState(0),[it,P]=b.useState(0),[Ec,B]=b.useState(0),[fn,M]=b.useState(),[lt,R]=b.useState(),[Pc,Bc]=b.useState(),[Xn,_t]=b.useState(!1),[st,gt]=b.useState(),[I,qt]=b.useState({state:"idle"}),[p,St]=b.useState({state:"idle"}),[x,Pt]=b.useState({state:"idle"}),[Ic,pc]=b.useState(!0),[xc,H]=b.useState(!1),Bt=b.useRef(!1),[It,pt]=b.useState(()=>Xt()),[kn,jc]=b.useState(()=>Zc());b.useEffect(()=>{queueMicrotask(()=>{let n=nt(),h=W()?.id;m(n),A(h),X(Kt()),L(Cn()),z(ft()),pc(!1)})},[]);let ot=at[it]??at[0],Ft=ot.key,Dc=f[Ft],xt=r.length>0,$t=xt,_n=b.useMemo(()=>[{value:"add",label:"Add provider",description:"Create a new provider profile"},...It?[{value:"import-legacy",label:"Import from Claude Code",description:"Copy ~/.claude/ tokens, settings, skills, agents, plugins."}]:[],{value:"activate",label:"Set active provider (Global)",description:S?`Currently: ${r.find((n)=>n.id===S)?.name??"unknown"}`:"Default profile for projects without an override",disabled:!$t},{value:"activate-project",label:"Set active provider (Project)",description:O?`Currently: ${r.find((n)=>n.id===O)?.name??"unknown"} (this project)`:"Override the global default for this project only",disabled:!$t},...w?[{value:"clear-project-override",label:"Clear project provider override",description:O?"Stop overriding for this project; fall back to global":"Project override points to a missing profile; clear it"}]:[],{value:"edit",label:"Edit provider",description:"Update URL, model, or key",disabled:!xt},{value:"delete",label:"Delete provider",description:"Remove a provider profile",disabled:!$t},...Xn?[{value:"logout-codex-oauth",label:"Log out Codex OAuth",description:"Clear securely stored Codex OAuth credentials"}]:[],{value:"done",label:"Done",description:"Return to chat"}],[$t,xt,Xn,It,S,O,r]),jt=b.useCallback(()=>{if(ut()){Z.current+=1,_t(!1),gt(void 0);return}let n=++Z.current;(async()=>{let h=await On();if(n!==Z.current)return;_t(Boolean(h?.apiKey||h?.accessToken||h?.refreshToken||h?.idToken)),gt(h?.profileId)})()},[]);b.useEffect(()=>{return jt(),()=>{Z.current+=1}},[jt]),b.useEffect(()=>{if(N!=="select-ollama-model")return;let n=!1;return qt({state:"loading"}),(async()=>{let h=await Jc({baseUrl:f.baseUrl});if(h.state!=="ready"){if(!n)qt({state:"unavailable",message:_a(h,f.baseUrl)});return}let o=cn(h.models,"balanced"),l=Pn(h.models,"balanced");if(!n)qt({state:"ready",defaultValue:l?.name??o[0]?.name,options:o.map((d)=>({label:d.name,value:d.name,description:d.summary}))})})(),()=>{n=!0}},[f.baseUrl,N]),b.useEffect(()=>{if(N!=="select-atomic-chat-model")return;let n=!1;return St({state:"loading"}),(async()=>{let h=await Yc({baseUrl:f.baseUrl});if(h.state!=="ready"){if(!n)St({state:"unavailable",message:ka(h,f.baseUrl)});return}if(!n)St({state:"ready",defaultValue:h.models[0],options:h.models.map((o)=>({label:o,value:o}))})})(),()=>{n=!0}},[f.baseUrl,N]),b.useEffect(()=>{if(N!=="select-openai-model")return;let n=!1;return Pt({state:"loading"}),(async()=>{let h=await Gc({baseUrl:f.baseUrl,apiKey:f.apiKey||void 0});if(n)return;if(!h||h.length===0){Pt({state:"unavailable",message:"Couldn't list models from this provider. Enter the model id manually, or go back to check the base URL and API key."});return}let{options:o,defaultValue:l}=Vc(h,f.model);Pt({state:"ready",options:o,defaultValue:l})})(),()=>{n=!0}},[f.baseUrl,f.apiKey,N]);function Q(){if(Bt.current)return;Bt.current=!0,queueMicrotask(()=>{let n=nt();m(n),A(W()?.id),X(Kt()),L(Cn()),z(ft()),jt(),Bt.current=!1})}function mt(){return null}function Dt(n){if(n.activationWarning)return`${n.prefix}. Saved for next startup. Warning: ${n.warnings.join("; ")}.`;if(n.warnings.length>0)return`${n.prefix}. Claudin switched to it for this session with warnings: ${n.warnings.join("; ")}.`;return`${n.prefix}. Claudin switched to it for this session.`}async function vt(n){if(n?.accessToken&&n.accountId)return null;let h=await On();if(!h)return"stored Codex OAuth credentials could not be loaded";if(!h.accountId)return"stored Codex OAuth credentials are missing a ChatGPT account id";return null}function qn(){Mc()}async function vc(n){let h="provider";H(!0),M("Activating provider...");try{await new Promise((U)=>queueMicrotask(U));let o=ft(),l=Rt(n);if(!l){R("Could not change active provider."),H(!1),k();return}let d=o?W()??l:l,s=bt(d.model);if(!o)a((U)=>({...U,mainLoopModel:s,mainLoopModelForSession:null}));h=l.name;let _=mt(),J=_c(l,st),$=J?await vt():null;Q();let K=o&&d.id!==l.id?` (project override still active — this project keeps using ${d.name}; use "Clear project provider override" to apply the new default here)`:"",F=J?Dt({prefix:`Active provider: ${l.name}${K}`,activationWarning:$,warnings:[$,_?`could not clear startup provider override (${_})`:null].filter((U)=>Boolean(U))}):_?`Active provider: ${l.name}${K}. Warning: could not clear startup provider override (${_}).`:`Active provider: ${l.name}${K}`;M(F),H(!1),c({action:"activated",activeProfileId:l.id,activeProviderName:l.name,activeProviderModel:s,message:`Provider switched to ${l.name} (${s})`}),k()}catch(o){Q(),M(void 0),H(!1);let l=o instanceof Error?o.message:String(o);R(`Could not finish activating ${h}: ${l}`),k()}}async function tu(){H(!0),M("Clearing project provider override...");try{await new Promise((h)=>queueMicrotask(h)),bn(null),Q();let n=W();if(n){let h=bt(n.model);wt(),a((o)=>({...o,mainLoopModel:h,mainLoopModelForSession:null})),M(`Project override cleared. Using global default: ${n.name}.`),H(!1),c({action:"activated",activeProfileId:n.id,activeProviderName:n.name,activeProviderModel:h,message:`Project override cleared — using ${n.name} (${h})`}),k()}else M("Project provider override cleared. No global default set."),H(!1),c({action:"saved",message:"Project provider override cleared. No global default set."}),k()}catch(n){Q(),M(void 0),H(!1);let h=n instanceof Error?n.message:String(n);R(`Could not clear project provider override: ${h}`),k()}}async function nu(n){let h="provider";H(!0),M("Setting provider for this project...");try{await new Promise((F)=>queueMicrotask(F));let o=Kt(),l=bn(n);if(!l){R("Could not set project provider override."),H(!1),k();return}let d=bt(l.model);if(o===l.id)wt();a((F)=>({...F,mainLoopModel:d,mainLoopModelForSession:null})),h=l.name;let s=mt(),_=_c(l,st),J=_?await vt():null;Q();let $=`Active provider for this project: ${l.name}. Other projects keep the global default.`,K=_?Dt({prefix:$,activationWarning:J,warnings:[J,s?`could not clear startup provider override (${s})`:null].filter((F)=>Boolean(F))}):s?`${$} Warning: could not clear startup provider override (${s}).`:$;M(K),H(!1),c({action:"activated",activeProfileId:l.id,activeProviderName:l.name,activeProviderModel:d,message:`Provider switched to ${l.name} (${d}) for this project`}),k()}catch(o){Q(),M(void 0),H(!1);let l=o instanceof Error?o.message:String(o);R(`Could not finish setting ${h} for this project: ${l}`),k()}}function k(){Bc("done"),C("menu")}function Lt(n){c({action:"cancelled",message:n})}function cu(n){let h=Tt(n),o={name:h.name,baseUrl:h.baseUrl,model:h.model,apiKey:h.apiKey??""};if(Y(null),tt(h.provider??"openai"),T(o),kt({}),Ut(""),zn(n),P(0),Ot(0),B(o.name.length),R(void 0),n==="ollama"){qt({state:"loading"}),C("select-ollama-model");return}if(n==="atomic-chat"){St({state:"loading"}),C("select-atomic-chat-model");return}if(n==="anthropic"){C("anthropic-auth-choice");return}if(n==="bedrock"||n==="vertex"||n==="foundry"){C("cloud-extras");return}C("form")}function uu(n){let h=r.find((l)=>l.id===n);if(!h)return;let o=sa(h);Y(n),tt(h.provider??"openai"),T(o),kt({awsRegion:h.extras?.awsRegion,gcpProject:h.extras?.gcpProject,gcpRegion:h.extras?.gcpRegion,azureResource:h.extras?.azureResource}),Ut(Ra(h.extras?.customHeaders)),zn(null),P(0),Ot(0),B(o.name.length),R(void 0),C("form")}function Nt(n=f){let h=za(Wt,Rn),o={provider:q,name:n.name,baseUrl:n.baseUrl,model:n.model,apiKey:n.apiKey,extras:h},l=ht?At(ht,o):ct(o,{makeActive:!0});if(!l){R("Could not save provider. Fill all required fields.");return}let d=W()?.id===l.id;if(d)wt(),a((K)=>({...K,mainLoopModel:bt(l.model),mainLoopModelForSession:null}));let s=d?mt():null;Q();let _=!ht&&ft()&&!d,J=_?W()?.name??"override target":null,$=ht?`Updated provider: ${l.name}`:_?`Added provider: ${l.name} (now global default — project keeps using ${J}; use "Clear project provider override" to apply here)`:`Added provider: ${l.name} (now active)`;if(M(s?`${$}. Warning: could not clear startup provider override (${s}).`:$),t==="first-run"){c({action:"saved",activeProfileId:l.id,message:`Provider configured: ${l.name}`});return}Y(null),P(0),R(void 0),k()}function au(){if(p.state==="loading"||p.state==="idle")return y(g,{flexDirection:"column",gap:1,children:[u(i,{color:"remember",bold:!0,children:"Checking Atomic Chat"}),u(i,{dimColor:!0,children:"Looking for loaded Atomic Chat models..."})]});if(p.state==="unavailable")return y(g,{flexDirection:"column",gap:1,children:[u(i,{color:"remember",bold:!0,children:"Atomic Chat setup"}),u(i,{dimColor:!0,children:p.message}),u(V,{options:[{value:"manual",label:"Enter manually",description:"Fill in the base URL and model yourself"},{value:"back",label:"Back",description:"Choose another provider preset"}],onChange:(n)=>{if(n==="manual"){P(0),B(f.name.length),C("form");return}C("select-preset")},onCancel:()=>C("select-preset"),visibleOptionCount:2})]});return y(g,{flexDirection:"column",gap:1,children:[u(i,{color:"remember",bold:!0,children:"Choose an Atomic Chat model"}),u(i,{dimColor:!0,children:"Pick one of the models loaded in Atomic Chat to save into a local provider profile."}),u(V,{options:p.options,defaultValue:p.defaultValue,defaultFocusValue:p.defaultValue,inlineDescriptions:!0,visibleOptionCount:Math.min(8,p.options.length),onChange:(n)=>{let h={...f,model:n};T(h),Nt(h)},onCancel:()=>C("select-preset")})]})}function hu(){if(I.state==="loading"||I.state==="idle")return y(g,{flexDirection:"column",gap:1,children:[u(i,{color:"remember",bold:!0,children:"Checking Ollama"}),u(i,{dimColor:!0,children:"Looking for installed Ollama models..."})]});if(I.state==="unavailable")return y(g,{flexDirection:"column",gap:1,children:[u(i,{color:"remember",bold:!0,children:"Ollama setup"}),u(i,{dimColor:!0,children:I.message}),u(V,{options:[{value:"manual",label:"Enter manually",description:"Fill in the base URL and model yourself"},{value:"back",label:"Back",description:"Choose another provider preset"}],onChange:(n)=>{if(n==="manual"){P(0),B(f.name.length),C("form");return}C("select-preset")},onCancel:()=>C("select-preset"),visibleOptionCount:2})]});return y(g,{flexDirection:"column",gap:1,children:[u(i,{color:"remember",bold:!0,children:"Choose an Ollama model"}),u(i,{dimColor:!0,children:"Pick one of the installed Ollama models to save into a local provider profile."}),u(V,{options:I.options,defaultValue:I.defaultValue,defaultFocusValue:I.defaultValue,inlineDescriptions:!0,visibleOptionCount:Math.min(8,I.options.length),onChange:(n)=>{let h={...f,model:n};T(h),Nt(h)},onCancel:()=>C("select-preset")})]})}function et(n){let h=at.findIndex((o)=>o.key===n);P(h<0?0:h),B(f[n].length),R(void 0),C("form")}function ru(){if(x.state==="loading"||x.state==="idle")return y(g,{flexDirection:"column",gap:1,children:[u(i,{color:"remember",bold:!0,children:"Fetching models"}),u(i,{dimColor:!0,children:"Looking for models on your OpenAI-compatible provider…"}),u(i,{dimColor:!0,children:"Press Esc to enter the model manually."})]});if(x.state==="unavailable")return y(g,{flexDirection:"column",gap:1,children:[u(i,{color:"remember",bold:!0,children:"Choose a model"}),u(i,{dimColor:!0,children:x.message}),u(V,{options:[{value:"manual",label:"Enter manually",description:"Type the model id yourself"},{value:"back",label:"Back",description:"Return to the API key step"}],onChange:(o)=>{if(o==="manual"){et("model");return}et("apiKey")},onCancel:()=>et("apiKey"),visibleOptionCount:2})]});let n=[...x.options,{value:dn,label:"Enter a model id manually",description:"Type an id the provider did not list"}],h=x.defaultValue??dn;return y(g,{flexDirection:"column",gap:1,children:[u(i,{color:"remember",bold:!0,children:"Choose a model"}),u(i,{dimColor:!0,children:"Models from your OpenAI-compatible provider."}),u(V,{options:n,defaultValue:h,defaultFocusValue:h,inlineDescriptions:!0,visibleOptionCount:Math.min(8,n.length),onChange:(o)=>{if(o===dn){et("model");return}let l={...f,model:o};T(l),Sn(l)},onCancel:()=>et("apiKey")}),u(i,{dimColor:!0,children:"Enter to select · Esc to go back"})]})}function Sn(n){if(Et==="anthropic"||Et==="custom"){T(n),C("custom-headers");return}Nt(n)}function iu(n){let h=n.trim();if(!ot.optional&&h.length===0){R(`${ot.label} is required.`);return}let o={...f,[Ft]:h};if(T(o),R(void 0),it<at.length-1){let l=it+1,d=at[l]?.key??"name";if(d==="model"&&!ya.has(q)&&o.baseUrl.trim().length>0){C("select-openai-model");return}P(l),B(o[d].length);return}Sn(o)}function lu(){if(R(void 0),it>0){let n=it-1,h=at[n]?.key??"name";P(n),B(f[h].length);return}if(t==="first-run"){C("select-preset");return}k()}v("confirm:no",lu,{context:"Settings",isActive:N==="form"}),v("confirm:no",()=>et("model"),{context:"Settings",isActive:N==="select-openai-model"&&(x.state==="loading"||x.state==="idle")});function ou(){if(R(void 0),rt>0){Ot(rt-1);return}C("select-preset")}v("confirm:no",ou,{context:"Settings",isActive:N==="cloud-extras"}),v("confirm:no",()=>C("form"),{context:"Settings",isActive:N==="custom-headers"}),v("confirm:no",()=>C("select-preset"),{context:"Settings",isActive:N==="anthropic-auth-choice"||N==="anthropic-oauth"});function mu(){let n=!ut(),h=[...It?[{value:"import-legacy",label:"Import from Claude Code",description:"Reuse ~/.claude/ tokens, settings, theme, MCP, skills, agents, plugins."}]:[],{value:"dashscope-intl",label:"Alibaba Coding Plan",description:"Alibaba DashScope International endpoint"},{value:"dashscope-cn",label:"Alibaba Coding Plan (China)",description:"Alibaba DashScope China endpoint"},{value:"anthropic",label:"Anthropic",description:"Native Claude API (x-api-key auth)"},{value:"atomic-chat",label:"Atomic Chat",description:"Local Model Provider"},{value:"azure-openai",label:"Azure OpenAI",description:"Azure OpenAI endpoint (model=deployment name)"},{value:"foundry",label:"Azure AI Foundry",description:"Anthropic models hosted on Azure AI Foundry (resource-scoped)"},{value:"bedrock",label:"AWS Bedrock",description:"Anthropic models on AWS Bedrock (region-scoped, AWS creds)"},{value:"bankr",label:"Bankr",description:"Bankr LLM Gateway (OpenAI-compatible)"},{value:"cloudflare-workers-ai",label:"Cloudflare Workers AI",description:"Cloudflare Workers AI (OpenAI-compatible); set your account ID in the base URL"},{value:"cloudflare-ai-gateway",label:"Cloudflare AI Gateway",description:"Cloudflare AI Gateway unified endpoint; set your account ID in the base URL"},...n?[{value:"codex-oauth",label:"Codex OAuth",description:"Sign in with ChatGPT in your browser and store Codex credentials securely"},{value:"xai-oauth",label:"xAI / Grok (OAuth)",description:"Sign in with xAI in your browser and store Grok credentials securely"}]:[],{value:"github-onboard",label:"GitHub Copilot",description:"Sign in with GitHub in your browser to use Copilot models"},{value:"deepseek",label:"DeepSeek",description:"DeepSeek OpenAI-compatible endpoint"},{value:"gemini",label:"Google Gemini",description:"Gemini OpenAI-compatible endpoint"},{value:"vertex",label:"Google Vertex AI",description:"Anthropic models on Vertex AI (project + region, ADC)"},{value:"groq",label:"Groq",description:"Groq OpenAI-compatible endpoint"},{value:"lmstudio",label:"LM Studio",description:"Local LM Studio endpoint"},{value:"minimax",label:"MiniMax",description:"MiniMax API endpoint"},{value:"mistral",label:"Mistral",description:"Mistral OpenAI-compatible endpoint"},{value:"moonshotai",label:"Moonshot AI - API",description:"Moonshot AI - API endpoint"},{value:"kimi-code",label:"Moonshot AI - Kimi Code",description:"Moonshot AI - Kimi Code Subscription endpoint"},{value:"nvidia-nim",label:"NVIDIA NIM",description:"NVIDIA NIM endpoint"},{value:"opencode-go",label:"OpenCode GO",description:"OpenCode GO OpenAI-compatible endpoint"},{value:"opencode-zen",label:"OpenCode Zen",description:"OpenCode Zen OpenAI-compatible endpoint"},{value:"ollama",label:"Ollama",description:"Local or remote Ollama endpoint"},{value:"openai",label:"OpenAI",description:"OpenAI API with API key"},{value:"openrouter",label:"OpenRouter",description:"OpenRouter OpenAI-compatible endpoint"},{value:"together",label:"Together AI",description:"Together chat/completions endpoint"},{value:"zai",label:"Z.AI (GLM Coding Plan)",description:"Z.AI GLM Coding Plan (OpenAI-compatible)"},{value:"custom",label:"Custom",description:"Any OpenAI-compatible provider"},...t==="first-run"?[{value:"skip",label:"Skip for now",description:"Continue with current defaults"}]:[]];return y(g,{flexDirection:"column",gap:1,children:[u(i,{color:"remember",bold:!0,children:t==="first-run"?"Set up provider":"Choose provider preset"}),u(i,{dimColor:!0,children:"Pick a preset, then confirm base URL, model, and API key."}),u(V,{options:h,onChange:(o)=>{if(o==="skip"){Lt("Provider setup skipped");return}if(o==="codex-oauth"){C("codex-oauth");return}if(o==="xai-oauth"){C("xai-oauth");return}if(o==="github-onboard"){C("github-onboard");return}if(o==="import-legacy"){(async()=>{let l=await An({force:!0});pt(Xt()),Q();let d=Ht(l);if(l.errors.length>0){R(d);return}let s=W();if(t==="first-run"&&s){c({action:"saved",activeProfileId:s.id,activeProviderName:s.name,activeProviderModel:s.model,message:d});return}if(M(d),R(void 0),t==="manage")k()})();return}cu(o)},onCancel:()=>{if(t==="first-run"){Lt("Provider setup skipped");return}k()},visibleOptionCount:Math.min(13,h.length)})]})}function eu(){return y(g,{flexDirection:"column",gap:1,children:[u(i,{color:"remember",bold:!0,children:"Anthropic — choose authentication"}),u(i,{dimColor:!0,children:"Sign in with your Anthropic account in the browser, or paste an API key."}),u(V,{options:[{value:"oauth",label:"Sign in with web (OAuth)",description:"Open a browser, sign in to Claude, and store tokens in ~/.claudin/.credentials.json"},{value:"apiKey",label:"Use API key",description:"Paste an x-api-key value (sk-ant-…)"},{value:"back",label:"Back",description:"Choose a different provider"}],onChange:(n)=>{if(n==="oauth"){C("anthropic-oauth");return}if(n==="apiKey"){C("form");return}C("select-preset")},onCancel:()=>C("select-preset"),visibleOptionCount:3})]})}function du(){let n=(oa(),Du(la)).ConsoleOAuthFlow;return u(g,{flexDirection:"column",gap:1,children:u(n,{mode:"login",onDone:()=>{let h=Tt("anthropic"),o={provider:"anthropic",name:h.name,baseUrl:h.baseUrl,model:h.model},l=ct(o,{makeActive:!0});if(!l){R("OAuth completed, but the Anthropic profile could not be saved."),C("select-preset");return}let d=`Anthropic OAuth configured: ${l.name}`;if(Q(),t==="first-run"){c({action:"saved",activeProfileId:l.id,message:d});return}M(d),R(void 0),k()}})})}function yu(){let n=Et;if(n!=="bedrock"&&n!=="vertex"&&n!=="foundry")return null;let h=fa[n],o=h[rt]??h[0],l=Wt[o.key]??"";function d(s){let _=s.trim();if(_.length===0){R(`${o.label} is required.`);return}let J={...Wt,[o.key]:_};if(kt(J),R(void 0),rt<h.length-1){Ot(rt+1);return}Ot(0),C("form")}return y(g,{flexDirection:"column",gap:1,children:[u(i,{color:"remember",bold:!0,children:`${n==="bedrock"?"AWS Bedrock":n==="vertex"?"Google Vertex AI":"Azure AI Foundry"} setup`}),u(i,{dimColor:!0,children:o.helpText}),y(i,{dimColor:!0,children:["Step ",rt+1," of ",h.length,": ",o.label]}),y(g,{flexDirection:"row",gap:1,children:[u(i,{children:Ct.pointer}),u(yt,{value:l,onChange:(s)=>kt((_)=>({..._,[o.key]:s})),onSubmit:d,focus:!0,showCursor:!0,placeholder:`${o.placeholder}${Ct.ellipsis}`,columns:80,cursorOffset:Hc,onChangeCursorOffset:Tc})]}),lt&&u(i,{color:"error",children:lt}),u(i,{dimColor:!0,children:"Press Enter to continue. Press Esc to go back."})]})}function Cu(){return y(g,{flexDirection:"column",gap:1,children:[u(i,{color:"remember",bold:!0,children:"Custom headers (optional)"}),y(i,{dimColor:!0,children:["Add HTTP headers sent on every request. One header per line as"," ",u(i,{children:"Header: Value"}),". Leave empty to skip."]}),y(g,{flexDirection:"row",gap:1,children:[u(i,{children:Ct.pointer}),u(yt,{value:Rn,onChange:Ut,onSubmit:()=>Nt(f),focus:!0,showCursor:!0,placeholder:"X-Header: value",columns:80,multiline:!0,cursorOffset:Wc,onChangeCursorOffset:Uc})]}),lt&&u(i,{color:"error",children:lt}),u(i,{dimColor:!0,children:"Press Enter on a blank line to save. Press Esc to go back."})]})}function bu(){return y(g,{flexDirection:"column",gap:1,children:[u(i,{color:"remember",bold:!0,children:ht?"Edit provider profile":"Create provider profile"}),u(i,{dimColor:!0,children:ot.helpText}),y(i,{dimColor:!0,children:["Provider type:"," ",q==="anthropic"?"Anthropic native API":"OpenAI-compatible API"]}),y(i,{dimColor:!0,children:["Step ",it+1," of ",at.length,": ",ot.label]}),y(g,{flexDirection:"row",gap:1,children:[u(i,{children:Ct.pointer}),u(yt,{value:Dc,onChange:(n)=>T((h)=>({...h,[Ft]:n})),onSubmit:iu,focus:!0,showCursor:!0,placeholder:`${ot.placeholder}${Ct.ellipsis}`,mask:Ft==="apiKey"?"*":void 0,columns:80,cursorOffset:Ec,onChangeCursorOffset:B})]}),lt&&u(i,{color:"error",children:lt}),u(i,{dimColor:!0,children:"Press Enter to continue. Press Esc to go back."})]})}function wu(){let n=r.length>0,h=n;return y(g,{flexDirection:"column",gap:1,children:[u(i,{color:"remember",bold:!0,children:"Provider manager"}),u(i,{dimColor:!0,children:"Active profile controls base URL, model, and API key used by this session."}),fn&&u(i,{children:fn}),u(g,{flexDirection:"column",children:r.length===0?u(i,{dimColor:!0,children:"No provider profiles configured yet."}):r.map((o)=>y(i,{dimColor:!0,children:["- ",o.name,": ",Xa(o,o.id===e)]},o.id))}),u(V,{options:_n,onChange:(o)=>{switch(R(void 0),o){case"add":C("select-preset");break;case"import-legacy":{(async()=>{let l=await An({force:!0});if(pt(Xt()),Q(),l.errors.length>0)R(Ht(l));else M(Ht(l))})();break}case"activate":if(h)C("select-active");break;case"activate-project":if(h)C("select-active-project");break;case"clear-project-override":tu();break;case"edit":if(n)C("select-edit");break;case"delete":if(h)C("select-delete");break;case"logout-codex-oauth":{let l=sn();if(!l.success){R(l.warning??"Could not clear Codex OAuth credentials.");break}_t(!1),gt(void 0);let d=yn(nt(),st),s=null;if(d){let _=wn(d.id);if(!_.removed){R("Codex OAuth credentials were cleared, but the Codex profile could not be removed."),Q();break}qn(),s=_.activeProfileId?mt():null}Q(),M(s?`Codex OAuth logged out. Warning: could not clear startup provider override (${s}).`:"Codex OAuth logged out.");break}default:Lt("Provider manager closed");break}},onCancel:()=>Lt("Provider manager closed"),defaultFocusValue:Pc,visibleOptionCount:_n.length})]})}function Mt(n,h,o){let l=r.map((d)=>{let s=[];if(d.id===e)s.push("active");if(O&&d.id===O)s.push("this project");if(S&&d.id===S)s.push("global default");let _=s.length>0?` (${s.join(", ")})`:"";return{value:d.id,label:`${d.name}${_}`,description:`${d.provider==="anthropic"?"anthropic":"openai-compatible"} · ${d.baseUrl} · ${d.model}`}});if(l.length===0)return y(g,{flexDirection:"column",gap:1,children:[u(i,{color:"remember",bold:!0,children:n}),u(i,{dimColor:!0,children:h}),u(V,{options:[{value:"back",label:"Back",description:"Return to provider manager"}],onChange:()=>k(),onCancel:()=>k(),visibleOptionCount:1})]});return y(g,{flexDirection:"column",gap:1,children:[u(i,{color:"remember",bold:!0,children:n}),u(V,{options:l,onChange:o,onCancel:()=>k(),visibleOptionCount:Math.min(10,Math.max(2,l.length))})]})}let G;switch(N){case"select-preset":G=mu();break;case"select-ollama-model":G=hu();break;case"select-openai-model":G=ru();break;case"select-atomic-chat-model":G=au();break;case"codex-oauth":G=u(qa,{onBack:()=>C("select-preset"),onConfigured:async(n,h)=>{let o={provider:"openai",name:Ca,baseUrl:Sc,model:ba,apiKey:""},l=yn(nt(),st),d=l?At(l.id,o):ct(o,{makeActive:!0});if(!d){R("Codex OAuth login finished, but the provider profile could not be saved."),k();return}let s=l&&e!==d.id?Rt(d.id):d;if(!s){R("Codex OAuth login finished, but the provider could not be set as the startup provider."),k();return}h({profileId:d.id});let _=mt(),J=await vt(n);_t(!0),gt(d.id),Q();let $=[J,_?`could not clear startup provider override (${_})`:null].filter((F)=>Boolean(F)),K=Dt({prefix:"Codex OAuth configured",activationWarning:J,warnings:$});if(t==="first-run"){c({action:"saved",activeProfileId:s.id,message:K});return}M(K),R(void 0),k()}});break;case"xai-oauth":G=u(Sa,{onBack:()=>C("select-preset"),onConfigured:async(n,h)=>{let l=ct({provider:"openai",name:wa,baseUrl:gn,model:Oa,apiKey:""},{makeActive:!0});if(!l){R("xAI OAuth login finished, but the provider profile could not be saved."),k();return}try{h({profileId:l.id})}catch(s){R(s instanceof Error?s.message:String(s)),k();return}Q();let d="xAI / Grok configured. Claudin switched to it for this session.";if(t==="first-run"){c({action:"saved",activeProfileId:l.id,message:d});return}M(d),R(void 0),k()}});break;case"github-onboard":G=u(Tn,{onDone:(n)=>{if(n)M(n),R(void 0);Q(),k()},onBack:()=>C("select-preset"),onChangeAPIKey:Q});break;case"anthropic-auth-choice":G=eu();break;case"anthropic-oauth":G=du();break;case"cloud-extras":G=yu();break;case"custom-headers":G=Cu();break;case"form":G=bu();break;case"select-active":G=Mt("Set active provider (Global)","No providers available. Add one first.",(n)=>{vc(n)});break;case"select-active-project":G=Mt("Set active provider (Project)","No providers available. Add one first.",(n)=>{nu(n)});break;case"select-edit":G=Mt("Edit provider","No providers available. Add one first.",(n)=>{uu(n)});break;case"select-delete":G=Mt("Delete provider","No providers available. Add one first.",(n)=>{let h=r.find(($)=>$.id===n),o=h?.provider==="openai"&&h?.extras?.githubToken!==void 0,l=yn(r,st)?.id===n,d=Lc()?.profileId,s=h?.provider==="openai"&&h.baseUrl===gn&&!h.apiKey&&d===n,_=W()?.id===n,J=wn(n);if(!J.removed)R("Could not delete provider.");else{let $=[];if(l){let F=sn();if(!F.success)$.push(F.warning??"could not clear Codex OAuth credentials");else gt(void 0);qn()}if(o){let F=$c();if(!F.success)$.push(F.warning??"could not clear GitHub Copilot token")}if(s){let F=Nc();if(!F.success)$.push(F.warning??"could not clear xAI OAuth credentials")}let K=J.activeProfileId?mt():null;if(K)$.push(`could not clear startup provider override (${K})`);if(Q(),_){let F=W();if(F)wt(),a((U)=>({...U,mainLoopModel:bt(F.model),mainLoopModelForSession:null}));else wt(),a((U)=>({...U,mainLoopModel:null,mainLoopModelForSession:null}))}M($.length>0?`Provider deleted. Warning: ${$.join("; ")}.`:"Provider deleted")}k()});break;case"menu":default:G=wu();break}return y(Fc,{color:"permission",children:[u(Kc,{enabled:kn,onDismiss:(n)=>{pt(Xt()),jc(!1),Q();let h=W();if(n==="migrated"&&t==="first-run"&&h)c({action:"saved",activeProfileId:h.id,activeProviderName:h.name,activeProviderModel:h.model})}}),kn?null:Ic?y(g,{flexDirection:"column",gap:1,children:[u(i,{color:"remember",bold:!0,children:"Loading providers..."}),u(i,{dimColor:!0,children:"Reading provider profiles from disk."})]}):xc?y(g,{flexDirection:"column",gap:1,children:[u(i,{color:"remember",bold:!0,children:"Activating provider..."}),u(i,{dimColor:!0,children:"Please wait while the provider is being configured."})]}):G]})}var b,at,dn="\x00__manual__",ya,Ca="Codex OAuth",ba="codexplan",wa="xAI / Grok (OAuth)",Oa="grok-4",fa;var Fa=j(()=>{vu();Wn();na();Ln();ca();ha();ma();ic();on();ta();aa();Fn();Zn();ra();Bn();In();ia();ua();da();Kn();mc();kc();fc();ea();Qt();b=Gt(Vt(),1),at=[{key:"name",label:"Provider name",placeholder:"e.g. Ollama Home, OpenAI Work",helpText:"A short label shown in /provider and startup setup."},{key:"baseUrl",label:"Base URL",placeholder:"e.g. http://localhost:11434/v1",helpText:"API base URL used for this provider profile."},{key:"apiKey",label:"API key",placeholder:"Leave empty if your provider does not require one",helpText:"Optional. Press Enter with empty value to skip.",optional:!0},{key:"model",label:"Default model",placeholder:"e.g. llama3.1:8b or glm-4.7; glm-4.7-flash",helpText:'Model name(s) to use. Separate multiple with ";" or ","; first is default.'}],ya=new Set(["anthropic","bedrock","vertex","foundry"]);fa={bedrock:[{key:"awsRegion",label:"AWS region",placeholder:"e.g. us-east-1",helpText:"Region of your Bedrock-enabled AWS account. Credentials are picked up from the AWS SDK chain."}],vertex:[{key:"gcpProject",label:"GCP project ID",placeholder:"e.g. my-project-123456",helpText:"Google Cloud project where Vertex AI is enabled. Credentials are picked up from ADC."},{key:"gcpRegion",label:"GCP region",placeholder:"e.g. us-central1",helpText:"Vertex AI region for the model."}],foundry:[{key:"azureResource",label:"Azure resource",placeholder:"e.g. my-foundry-resource",helpText:"Name of your Azure AI Foundry resource. Credentials are picked up from DefaultAzureCredential."}]}});
|
|
50
|
+
export{un as zc,In as Ac,Aa as Bc,Sh as Cc,Fa as Dc};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import{sg as $Z,tg as uZ,ug as fz}from"./cli-0.7.4-qjfmn9db.mjs";import{Rh as HJ,Sh as Vz}from"./cli-0.7.4-pyyaz246.mjs";import{ai as GJ,bi as Bz}from"./cli-0.7.4-aswaa5m4.mjs";import{$z as gJ,Cv as fQ,En as RQ,Fn as wX,Fv as AX,PS as VQ,Pz as SZ,Qj as _Z,Qz as hZ,Rj as TQ,Rz as TZ,Sz as dJ,TS as KQ,Tz as cQ,Un as XQ,Uz as cJ,WS as fZ,Wn as xZ,Zj as IJ,_j as SJ,_z as e0,aA as mJ,bA as nJ,cA as yz,cz as pQ,dz as PX,eo as WQ,fk as pJ,fv as UQ,gT as BQ,gv as jQ,hQ as nQ,hv as $Q,io as uz,iv as uQ,kz as dQ,lQ as iQ,lz as DX,mQ as lQ,mv as MQ,nv as EQ,oQ as nZ,os as NJ,pQ as aQ,rQ as g0,sQ as rQ,ss as Uz,uQ as eJ,vQ as ZQ,wJ as gQ,wQ as oQ,wn as zQ,xQ as tQ,xn as $z,yk as mZ,zQ as OZ,zk as FX}from"./cli-0.7.4-1tkzz9x6.mjs";import{gU as xQ,pU as OX}from"./cli-0.7.4-hsa9khw7.mjs";import{EX as YJ,IX as qz,JX as UZ,KX as NX,jX as FZ,kX as qJ}from"./cli-0.7.4-wtz9ed9r.mjs";import{NZ as hQ,OZ as KX,UZ as b,VY as c0,VZ as DQ,WZ as g,XZ as JX,ZY as vZ,pY as WJ,qY as Wz,wZ as jZ,xZ as Jz,z0 as p0,zY as u0}from"./cli-0.7.4-2apswqf5.mjs";import{E2 as f0,F2 as B,G2 as $,H2 as F0}from"./cli-0.7.4-hnfm0p8b.mjs";import{I2 as S0}from"./cli-0.7.4-85txq06q.mjs";import{c3 as VJ,d3 as BJ,e3 as Yz}from"./cli-0.7.4-da69w12w.mjs";import{J6 as JQ,T6 as QQ,g6 as PQ,h6 as ZX,m6 as JZ,m7 as xz,p6 as QZ}from"./cli-0.7.4-2haqz80h.mjs";import{I7 as gZ,J7 as GX}from"./cli-0.7.4-9r1s7xtv.mjs";import{Bda as HQ,Fba as XJ,P8 as v0,Q8 as zJ,T$ as SQ,gda as DZ,naa as LX,xba as LZ}from"./cli-0.7.4-hvnzwb5v.mjs";import{Cfa as hz,kfa as PZ,lfa as TJ,vfa as ZZ}from"./cli-0.7.4-rskynrc5.mjs";import{Rga as RZ,Sga as Rz,cha as KZ,hha as wZ,iha as NZ,uha as Dz}from"./cli-0.7.4-r1ebyx3p.mjs";import{Iia as m0,Lia as ez}from"./cli-0.7.4-hegk157e.mjs";import{Dja as HX,tja as IQ}from"./cli-0.7.4-h0ze5j97.mjs";import{Boa as kQ,epa as BX}from"./cli-0.7.4-7wr3z77e.mjs";import{Lqa as N0,Pqa as L0}from"./cli-0.7.4-58p1wenr.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(rZ.Provider,{value:X,children:B(tZ.Provider,{value:q,children:B(aZ.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(aZ)}function ZJ(){return K0.useContext(oZ)}function xX(J){let Z=HZ.c(8),Q=K0.useContext(rZ),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,aZ,rZ,oZ,tZ;var JJ=L0(()=>{F0();HZ=N0(u0(),1),K0=N0(S0(),1),aZ=K0.createContext(null),rZ=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","memory_delta","todo_reminder_delta"],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=a0.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=a0.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=a0.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=a0.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=a0.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 a0,q0,QJ=2,yZ;var LJ=L0(()=>{zJ();qz();JJ();qJ();Bz();Wz();p0();Yz();vZ();XJ();CZ();Vz();F0();a0=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 aJ(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,rJ;var oJ=L0(()=>{p0();cJ();OZ();yz();xJ();sJ();fJ();gJ();F0();iJ=N0(u0(),1),lJ=N0(S0(),1);rJ=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 az(){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]=r0.useState(XZ),W;if(Z[0]===Symbol.for("react.memo_cache_sentinel"))W=()=>{if(XZ.length>0){X(XZ);return}az().then(()=>{X(XZ)})},Z[0]=W;else W=Z[0];r0.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(r0.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,r0,XZ,zZ=null;var FQ=L0(()=>{p0();BQ();HQ();YQ();F0();GQ=N0(u0(),1),r0=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])??rz);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,rz=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,r=O0)=>{for(let c=u;c>=0&&c<J.length;c+=n)if(r(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],r=T.current.getItemTop(A),c=L.getViewportTop(),e=r-L.getScrollTop(),R0=L.getViewportHeight(),P0=c+e+n.row;if(P0<c||P0>=c+R0)L.scrollTo(Math.max(0,r+n.row-dZ)),e=r-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:r,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,r(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 r=u(H),c=r?.yogaNode?.getComputedHeight()??0;if(r&&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,r=L.screenOrd+H;if(r>=0&&r<n.length){L.screenOrd=r,G0(r),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,r=Z.current,{offsets:c,start:e,getItemTop:R0}=T.current,P0=R0(e),E0=P0>=0?P0-c[e]:0;if(A.length>0&&r){let U0=s.current>=0?s.current:r.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&&r)r.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 r=performance.now(),c=Math.min(n+L,H.length);for(let e=n;e<c;e++)Y(H[e]);A+=performance.now()-r}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,r=V?.(H);return B(qX,{itemKey:x,msg:H,idx:A,measureRef:E,expanded:r,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 a=B0.length-1;a>=0;a--)if(B0[a]?.type==="thinking")return`${j.uuid}:${a}`}else if(j?.type==="user"){if(!j.message.content.some((a)=>a.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 a of B0)if(a.type==="text"){let w0=a.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=aQ(G.filter((I0)=>I0.type!=="progress").filter((I0)=>!GZ(I0)).filter((I0)=>lQ(I0,U)),N),B0=[yQ,MX].filter((I0)=>I0!==null),a=[yQ].filter((I0)=>I0!==null),w0=B0.length>0&&!U?_?EX(j,B0):a.length>0?bX(j,a):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=rQ(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=fQ((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 a=i0?.[B0]?.status;if(a==="running"||a==="requested"||a==="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 a=new Set(B0);if(a.has(j))a.delete(j);else a.add(j);return a})},[]),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]),r=(!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,a=G.type==="user"&&B0==="user",w0=G.type==="collapsed_read_search"&&(C||aJ(D0,j,Z,T0)),C0=E0(G),VZ=B(rJ,{message:G,isUserContinuation:a,hasContentAfter:w0,tools:Z,commands:Q,verbose:z||x(G)||l?.expanded===!0&&j===_0,inProgressToolUseIDs:l0,streamingToolUseIDs:T0,screen:K,canAnimate:r,onOpenRateLimitOptions:M,lastThinkingBlockId:o,latestBashOutputUUID:t,columns:X0,isLoading:Z0,lookups:M0},C0),d0=B($Q.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 a=B0.toLowerCase();return j0.current.set(G,a),a},[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(uQ.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 Fe,TX as Ge,lZ as He,xX as Ie,$X as Je,JJ as Ke,QW as Le,zW as Me,XW as Ne,LJ as Oe,g8 as Pe,sJ as Qe};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import{Kqa as Z}from"./cli-0.7.4-p85h0qry.mjs";import{Nqa as Y,Qqa as O}from"./cli-0.7.4-58p1wenr.mjs";var ye=Y((he)=>{var R=O("node:https"),$=Z(),z=O("node:stream"),D=O("node:http2");function H(e){let t=e&&typeof e==="object"&&"reason"in e?e.reason:void 0;if(t){if(t instanceof Error){let s=Error("Request aborted");return s.name="AbortError",s.cause=t,s}let o=Error(String(t));return o.name="AbortError",o}let n=Error("Request aborted");return n.name="AbortError",n}var ee=["ECONNRESET","EPIPE","ETIMEDOUT"],Q=(e)=>{let t={};for(let n in e){let o=e[n];t[n]=Array.isArray(o)?o.join(","):o}return t},d={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:(e)=>clearTimeout(e)},F=1000,te=(e,t,n=0)=>{if(!n)return-1;let o=(s)=>{let r=d.setTimeout(()=>{e.destroy(),t(Object.assign(Error(`@smithy/node-http-handler - the request socket did not establish a connection with the server within the configured timeout of ${n} ms.`),{name:"TimeoutError"}))},n-s),c=(u)=>{if(u?.connecting)u.on("connect",()=>{d.clearTimeout(r)});else d.clearTimeout(r)};if(e.socket)c(e.socket);else e.on("socket",c)};if(n<2000)return o(0),0;return d.setTimeout(o.bind(null,F),F)},oe=(e,t,n=0,o,s)=>{if(n)return d.setTimeout(()=>{let r=`@smithy/node-http-handler - [${o?"ERROR":"WARN"}] a request has exceeded the configured ${n} ms requestTimeout.`;if(o){let c=Object.assign(Error(r),{name:"TimeoutError",code:"ETIMEDOUT"});e.destroy(c),t(c)}else r+=" Init client requestHandler with throwOnRequestTimeout=true to turn this into an error.",s?.warn?.(r)},n);return-1},ne=3000,se=(e,{keepAlive:t,keepAliveMsecs:n},o=ne)=>{if(t!==!0)return-1;let s=()=>{if(e.socket)e.socket.setKeepAlive(t,n||0);else e.on("socket",(r)=>{r.setKeepAlive(t,n||0)})};if(o===0)return s(),0;return d.setTimeout(s,o)},W=3000,re=(e,t,n=0)=>{let o=(s)=>{let r=n-s,c=()=>{e.destroy(),t(Object.assign(Error(`@smithy/node-http-handler - the request socket timed out after ${n} ms of inactivity (configured by client requestHandler).`),{name:"TimeoutError"}))};if(e.socket)e.socket.setTimeout(r,c),e.on("close",()=>e.socket?.removeListener("timeout",c));else e.setTimeout(r,c)};if(0<n&&n<6000)return o(0),0;return d.setTimeout(o.bind(null,n===0?0:W),W)},j=6000;async function V(e,t,n=j,o=!1){let s=t.headers,r=s?s.Expect||s.expect:void 0,c=-1,u=!0;if(!o&&r==="100-continue")u=await Promise.race([new Promise((f)=>{c=Number(d.setTimeout(()=>f(!0),Math.max(j,n)))}),new Promise((f)=>{e.on("continue",()=>{d.clearTimeout(c),f(!0)}),e.on("response",()=>{d.clearTimeout(c),f(!1)}),e.on("error",()=>{d.clearTimeout(c),f(!1)})})]);if(u)ie(e,t.body)}function ie(e,t){if(t instanceof z.Readable){t.pipe(e);return}if(t){let n=Buffer.isBuffer(t);if(n||typeof t==="string"){if(n&&t.byteLength===0)e.end();else e.end(t);return}let s=t;if(typeof s==="object"&&s.buffer&&typeof s.byteOffset==="number"&&typeof s.byteLength==="number"){e.end(Buffer.from(s.buffer,s.byteOffset,s.byteLength));return}e.end(Buffer.from(t));return}e.end()}var ce=0,_=void 0,q=void 0;class I{config;configProvider;socketWarningTimestamp=0;externalAgent=!1;metadata={handlerProtocol:"http/1.1"};static create(e){if(typeof e?.handle==="function")return e;return new I(e)}static checkSocketUsage(e,t,n=console){let{sockets:o,requests:s,maxSockets:r}=e;if(typeof r!=="number"||r===1/0)return t;let c=15000;if(Date.now()-c<t)return t;if(o&&s)for(let u in o){let f=o[u]?.length??0,l=s[u]?.length??0;if(f>=r&&l>=2*r)return n?.warn?.(`@smithy/node-http-handler:WARN - socket usage at capacity=${f} and ${l} additional requests are enqueued.
|
|
2
|
+
See https://docs.aws.amazon.com/sdk-for-javascript/v3/developer-guide/node-configuring-maxsockets.html
|
|
3
|
+
or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler config.`),Date.now()}return t}constructor(e){this.configProvider=new Promise((t,n)=>{if(typeof e==="function")e().then((o)=>{t(this.resolveDefaultConfig(o))}).catch(n);else t(this.resolveDefaultConfig(e))})}destroy(){this.config?.httpAgent?.destroy(),this.config?.httpsAgent?.destroy()}async handle(e,{abortSignal:t,requestTimeout:n}={}){if(!this.config)this.config=await this.configProvider;let o=this.config,s=e.protocol==="https:";if(!s&&!this.config.httpAgent)this.config.httpAgent=await this.config.httpAgentProvider();return new Promise((r,c)=>{let u=void 0,f=-1,l=-1,m=-1,y=-1,A=-1,b=()=>{d.clearTimeout(f),d.clearTimeout(l),d.clearTimeout(m),d.clearTimeout(y),d.clearTimeout(A)},U=async(i)=>{await u,b(),r(i)},p=async(i)=>{await u,b(),c(i)};if(t?.aborted){let i=H(t);p(i);return}let x=e.headers,M=x?(x.Expect??x.expect)==="100-continue":!1,C=s?o.httpsAgent:o.httpAgent;if(M&&!this.externalAgent)C=new(s?R.Agent:_)({keepAlive:!1,maxSockets:1/0});f=d.setTimeout(()=>{this.socketWarningTimestamp=I.checkSocketUsage(C,this.socketWarningTimestamp,o.logger)},o.socketAcquisitionWarningTimeout??(o.requestTimeout??2000)+(o.connectionTimeout??1000));let P=e.query?$.buildQueryString(e.query):"",S=void 0;if(e.username!=null||e.password!=null){let i=e.username??"",a=e.password??"";S=`${i}:${a}`}let w=e.path;if(P)w+=`?${P}`;if(e.fragment)w+=`#${e.fragment}`;let T=e.hostname??"";if(T[0]==="["&&T.endsWith("]"))T=e.hostname.slice(1,-1);else T=e.hostname;let v={headers:e.headers,host:T,method:e.method,path:w,port:e.port,agent:C,auth:S},h=(s?R.request:q)(v,(i)=>{let a=new $.HttpResponse({statusCode:i.statusCode||-1,reason:i.statusMessage,headers:Q(i.headers),body:i});U({response:a})});if(h.on("error",(i)=>{if(ee.includes(i.code))p(Object.assign(i,{name:"TimeoutError"}));else p(i)}),t){let i=()=>{h.destroy();let a=H(t);p(a)};if(typeof t.addEventListener==="function"){let a=t;a.addEventListener("abort",i,{once:!0}),h.once("close",()=>a.removeEventListener("abort",i))}else t.onabort=i}let k=n??o.requestTimeout;l=te(h,p,o.connectionTimeout),m=oe(h,p,k,o.throwOnRequestTimeout,o.logger??console),y=re(h,p,o.socketTimeout);let E=v.agent;if(typeof E==="object"&&"keepAlive"in E)A=se(h,{keepAlive:E.keepAlive,keepAliveMsecs:E.keepAliveMsecs});u=V(h,e,k,this.externalAgent).catch((i)=>{return b(),c(i)})})}updateHttpClientConfig(e,t){this.config=void 0,this.configProvider=this.configProvider.then((n)=>{return{...n,[e]:t}})}httpHandlerConfigs(){return this.config??{}}resolveDefaultConfig(e){let{requestTimeout:t,connectionTimeout:n,socketTimeout:o,socketAcquisitionWarningTimeout:s,httpAgent:r,httpsAgent:c,throwOnRequestTimeout:u,logger:f}=e||{},l=!0,m=50;return{connectionTimeout:n,requestTimeout:t,socketTimeout:o,socketAcquisitionWarningTimeout:s,throwOnRequestTimeout:u,httpAgentProvider:async()=>{let{Agent:y,request:A}=await import("node:http");if(q=A,_=y,r instanceof _||typeof r?.destroy==="function")return this.externalAgent=!0,r;return new _({keepAlive:!0,maxSockets:50,...r})},httpsAgent:(()=>{if(c instanceof R.Agent||typeof c?.destroy==="function")return this.externalAgent=!0,c;return new R.Agent({keepAlive:!0,maxSockets:50,...c})})(),logger:f}}}var ae=new Uint16Array(1);class L{id=ae[0]++;total=0;max=0;session;refs=0;constructor(e){e.unref(),this.session=e}retain(){if(this.session.destroyed)throw Error("@smithy/node-http-handler - cannot acquire reference to destroyed session.");this.refs+=1,this.total+=1,this.max=Math.max(this.refs,this.max),this.session.ref()}free(){if(this.session.destroyed)return;if(this.refs-=1,this.refs===0)this.session.unref();if(this.refs<0)throw Error("@smithy/node-http-handler - ClientHttp2Session refcount at zero, cannot decrement.")}deref(){return this.session}close(){if(!this.session.closed)this.session.close()}destroy(){if(this.refs=0,!this.session.destroyed)this.session.destroy()}useCount(){return this.refs}}class K{sessions=[];maxConcurrency=0;constructor(e){this.sessions=(e??[]).map((t)=>new L(t))}poll(){let e=!1;for(let t of this.sessions){if(t.deref().destroyed){e=!0;continue}if(!this.maxConcurrency||t.useCount()<this.maxConcurrency)return t}if(e){for(let t of this.sessions)if(t.deref().destroyed)this.remove(t)}}offerLast(e){this.sessions.push(e)}remove(e){let t=this.sessions.indexOf(e);if(t>-1)this.sessions.splice(t,1)}[Symbol.iterator](){return this.sessions[Symbol.iterator]()}setMaxConcurrency(e){this.maxConcurrency=e}destroy(e){this.remove(e),e.destroy()}}class J{config;connectOptions;connectionPools=new Map;constructor(e){if(this.config=e,this.config.maxConcurrency&&this.config.maxConcurrency<=0)throw RangeError("maxConcurrency must be greater than zero.")}lease(e,t){let n=this.getUrlString(e),o=this.getPool(n);if(!this.config.disableConcurrency&&!t.isEventStream){let f=o.poll();if(f)return f.retain(),f}let s=new L(this.connect(n)),r=s.deref();if(this.config.maxConcurrency)r.settings({maxConcurrentStreams:this.config.maxConcurrency},(f)=>{if(f)throw Error("Fail to set maxConcurrentStreams to "+this.config.maxConcurrency+"when creating new session for "+e.destination.toString())});let c=()=>{this.removeFromPoolAndClose(n,s)},u=()=>{this.removeFromPoolAndCheckedDestroy(n,s)};if(r.on("goaway",c),r.on("error",u),r.on("frameError",u),r.on("close",u),t.requestTimeout)r.setTimeout(t.requestTimeout,u);return o.offerLast(s),s.retain(),s}release(e,t){t.free()}createIsolatedSession(e,t){let n=this.getUrlString(e),o=new L(this.connect(n)),s=o.deref();s.settings({maxConcurrentStreams:1});let r=()=>{o.destroy()};if(s.on("error",r),s.on("frameError",r),s.on("close",r),t.requestTimeout)s.setTimeout(t.requestTimeout,r);return o.retain(),o}destroy(){for(let[e,t]of this.connectionPools){for(let n of[...t])n.destroy();this.connectionPools.delete(e)}}setMaxConcurrentStreams(e){if(e&&e<=0)throw RangeError("maxConcurrentStreams must be greater than zero.");this.config.maxConcurrency=e;for(let t of this.connectionPools.values())t.setMaxConcurrency(e)}setDisableConcurrentStreams(e){this.config.disableConcurrency=e}setNodeHttp2ConnectOptions(e){this.connectOptions=e}debug(){let e={};for(let[t,n]of this.connectionPools){let o=[];for(let s of n)o.push({id:s.id,active:s.useCount(),maxConcurrent:s.max,totalRequests:s.total});e[t]={sessions:o}}return e}removeFromPoolAndClose(e,t){this.connectionPools.get(e)?.remove(t),t.close()}removeFromPoolAndCheckedDestroy(e,t){this.connectionPools.get(e)?.remove(t),t.destroy()}getPool(e){if(!this.connectionPools.has(e)){let t=new K;if(this.config.maxConcurrency)t.setMaxConcurrency(this.config.maxConcurrency);this.connectionPools.set(e,t)}return this.connectionPools.get(e)}getUrlString(e){return e.destination.toString()}connect(e){return this.connectOptions===void 0?D.connect(e):D.connect(e,this.connectOptions)}}class B{config;configProvider;metadata={handlerProtocol:"h2"};connectionManager=new J({});static create(e){if(typeof e?.handle==="function")return e;return new B(e)}constructor(e){this.configProvider=new Promise((t,n)=>{if(typeof e==="function")e().then((o)=>{t(o||{})}).catch(n);else t(e||{})})}destroy(){this.connectionManager.destroy()}async handle(e,{abortSignal:t,requestTimeout:n,isEventStream:o}={}){if(!this.config){this.config=await this.configProvider;let{disableConcurrentStreams:f,maxConcurrentStreams:l,nodeHttp2ConnectOptions:m}=this.config;if(this.connectionManager.setDisableConcurrentStreams(f??!1),l)this.connectionManager.setMaxConcurrentStreams(l);if(m)this.connectionManager.setNodeHttp2ConnectOptions(m)}let{requestTimeout:s,disableConcurrentStreams:r}=this.config,c=r||o,u=n??s;return new Promise((f,l)=>{let m=!1,y=void 0,A=async(a)=>{await y,f(a)},b=async(a)=>{await y,l(a)};if(t?.aborted){m=!0;let a=H(t);b(a);return}let{hostname:U,method:p,port:x,protocol:M,query:C}=e,P="";if(e.username!=null||e.password!=null){let a=e.username??"",g=e.password??"";P=`${a}:${g}@`}let S=`${M}//${P}${U}${x?`:${x}`:""}`,w={destination:new URL(S)},T={requestTimeout:this.config?.sessionTimeout,isEventStream:o},v=c?this.connectionManager.createIsolatedSession(w,T):this.connectionManager.lease(w,T),N=v.deref(),h=(a)=>{if(c)v.destroy();m=!0,b(a)},k=C?$.buildQueryString(C):"",E=e.path;if(k)E+=`?${k}`;if(e.fragment)E+=`#${e.fragment}`;let i=N.request({...e.headers,[D.constants.HTTP2_HEADER_PATH]:E,[D.constants.HTTP2_HEADER_METHOD]:p});if(u)i.setTimeout(u,()=>{i.close();let a=Error(`Stream timed out because of no activity for ${u} ms`);a.name="TimeoutError",h(a)});if(t){let a=()=>{i.close();let g=H(t);h(g)};if(typeof t.addEventListener==="function"){let g=t;g.addEventListener("abort",a,{once:!0}),i.once("close",()=>g.removeEventListener("abort",a))}else t.onabort=a}i.on("frameError",(a,g,X)=>{h(Error(`Frame type id ${a} in stream id ${X} has failed with code ${g}.`))}),i.on("error",h),i.on("aborted",()=>{h(Error(`HTTP/2 stream is abnormally aborted in mid-communication with result code ${i.rstCode}.`))}),i.on("response",(a)=>{let g=new $.HttpResponse({statusCode:a[":status"]??-1,headers:Q(a),body:i});if(m=!0,A({response:g}),c)N.close()}),i.on("close",()=>{if(c)v.destroy();else this.connectionManager.release(w,v);if(!m)h(Error("Unexpected error: http2 request did not get a response"))}),y=V(i,e,u)})}updateHttpClientConfig(e,t){this.config=void 0,this.configProvider=this.configProvider.then((n)=>{return{...n,[e]:t}})}httpHandlerConfigs(){return this.config??{}}}class G extends z.Writable{bufferedBytes=[];_write(e,t,n){this.bufferedBytes.push(e),n()}}var ue=(e)=>{if(fe(e))return de(e);return new Promise((t,n)=>{let o=new G;e.pipe(o),e.on("error",(s)=>{o.end(),n(s)}),o.on("error",n),o.on("finish",function(){let s=new Uint8Array(Buffer.concat(this.bufferedBytes));t(s)})})},fe=(e)=>typeof ReadableStream==="function"&&e instanceof ReadableStream;async function de(e){let t=[],n=e.getReader(),o=!1,s=0;while(!o){let{done:u,value:f}=await n.read();if(f)t.push(f),s+=f.length;o=u}let r=new Uint8Array(s),c=0;for(let u of t)r.set(u,c),c+=u.length;return r}he.DEFAULT_REQUEST_TIMEOUT=ce;he.NodeHttp2Handler=B;he.NodeHttpHandler=I;he.streamCollector=ue});
|
|
4
|
+
export{ye as Dqa};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{zY as O}from"./cli-0.7.4-2apswqf5.mjs";import{F2 as X,H2 as Q}from"./cli-0.7.4-hnfm0p8b.mjs";import{I2 as b}from"./cli-0.7.4-85txq06q.mjs";import{Bda as P,nda as W}from"./cli-0.7.4-hvnzwb5v.mjs";import{Lqa as U}from"./cli-0.7.4-58p1wenr.mjs";P();Q();var Y=U(O(),1),J=U(b(),1);function L(D,z){let F=z/100*(D.length-1),q=Math.floor(F),k=Math.ceil(F);if(q===k)return D[q];return D[q]+(D[k]-D[q])*(F-q)}var T=1024;function V(){let D=new Map,z=new Map,F=new Map;return{increment(q,k=1){D.set(q,(D.get(q)??0)+k)},set(q,k){D.set(q,k)},observe(q,k){let y=z.get(q);if(!y)y={reservoir:[],count:0,sum:0,min:k,max:k},z.set(q,y);if(y.count++,y.sum+=k,k<y.min)y.min=k;if(k>y.max)y.max=k;if(y.reservoir.length<T)y.reservoir.push(k);else{let B=Math.floor(Math.random()*y.count);if(B<T)y.reservoir[B]=k}},add(q,k){let y=F.get(q);if(!y)y=new Set,F.set(q,y);y.add(k)},getAll(){let q=Object.fromEntries(D);for(let[k,y]of z){if(y.count===0)continue;q[`${k}_count`]=y.count,q[`${k}_min`]=y.min,q[`${k}_max`]=y.max,q[`${k}_avg`]=y.sum/y.count;let B=[...y.reservoir].sort((G,H)=>G-H);q[`${k}_p50`]=L(B,50),q[`${k}_p95`]=L(B,95),q[`${k}_p99`]=L(B,99)}for(let[k,y]of F)q[k]=y.size;return q}}}var Z=J.createContext(null);function C(D){let z=Y.c(7),{store:F,children:q}=D,k;if(z[0]===Symbol.for("react.memo_cache_sentinel"))k=V(),z[0]=k;else k=z[0];let B=F??k,G,H;if(z[1]!==B)G=()=>{let M=()=>{let N=B.getAll();if(Object.keys(N).length>0)W((A)=>({...A,lastSessionMetrics:N}))};return process.on("exit",M),()=>{process.off("exit",M)}},H=[B],z[1]=B,z[2]=G,z[3]=H;else G=z[2],H=z[3];J.useEffect(G,H);let K;if(z[4]!==q||z[5]!==B)K=X(Z.Provider,{value:B,children:q}),z[4]=q,z[5]=B,z[6]=K;else K=z[6];return K}
|
|
2
|
+
export{V as db,C as eb};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{Xh as B,Yh as CJ}from"./cli-0.7.4-zzze6t7f.mjs";import{Ay as QQ,Cv as Cq,Dv as wJ,FF as BJ,Fv as JQ,Gn as DJ,HF as ZQ,Hn as lJ,In as PJ,Jn as tJ,Kn as VJ,Ln as eJ,dr as vq,er as n,fr as NJ,mr as TJ,or as OJ,ov as Bq,pv as kq,qv as yJ,sr as JJ,tr as uq,un as AJ,vn as rJ,wr as MJ,xr as QJ,zy as FJ}from"./cli-0.7.4-1tkzz9x6.mjs";import{CX as RJ,DX as aJ,LX as jJ,MX as qQ,yX as LJ,zX as oJ}from"./cli-0.7.4-wtz9ed9r.mjs";import{UZ as O,WZ as D,YZ as nq,ZZ as EJ,z0 as hJ,zY as sJ}from"./cli-0.7.4-2apswqf5.mjs";import{E2 as IJ,F2 as H,G2 as j,H2 as zJ}from"./cli-0.7.4-hnfm0p8b.mjs";import{I2 as nJ}from"./cli-0.7.4-85txq06q.mjs";import{A4 as Eq,B5 as yq,F5 as dJ,M4 as HJ,P5 as kJ,R4 as pJ,T6 as _J,U5 as GQ,m7 as HQ,n5 as mq,p5 as s,x4 as bq,y4 as GJ,y5 as i}from"./cli-0.7.4-2haqz80h.mjs";import{I7 as K,J7 as xJ}from"./cli-0.7.4-9r1s7xtv.mjs";import{$$ as _q,Z$ as aq,_$ as lq,aaa as tq,aca as UJ,baa as eq,caa as qJ,cca as WJ,naa as $J,pca as iJ}from"./cli-0.7.4-hvnzwb5v.mjs";import{Fha as KJ,Iha as cJ}from"./cli-0.7.4-d9y5wx3y.mjs";import{Lqa as XJ,Pqa as Rq}from"./cli-0.7.4-58p1wenr.mjs";function hq(J){let q=J.messageActionsBackground;return q==="ansi:white"||q==="ansi:whiteBright"?J.inactive:q}function mJ(J){let q=J.userMessageBackground;return q==="ansi:white"||q==="ansi:whiteBright"?J.inactive:q}function z(J,q,Q){if(q.startsWith("ansi:")){let Y=q.slice(5);if(Q==="fg")return J[Y]??J;let X=`bg${Y[0].toUpperCase()}${Y.slice(1)}`;return J[X]??J}if(q.startsWith("#"))return Q==="fg"?J.hex(q):J.bgHex(q);if(q.startsWith("ansi256(")){let Y=parseInt(q.slice(8));return Q==="fg"?J.ansi256(Y):J.bgAnsi256(Y)}let Z=bJ.exec(q);if(Z){let[Y,X,U]=[+Z[1],+Z[2],+Z[3]];return Q==="fg"?J.rgb(Y,X,U):J.bgRgb(Y,X,U)}return J}function PQ(J,q,Q,Z,Y){if(!B())return uJ(J,q,Q,Z,Y);let{suggestion:X,messageActionsBackground:U}=Y,G=U==="ansi:white"||U==="ansi:whiteBright"?Y.inactive:U,R=Y.inverseText,I=Y.suggestion,F=z(z(K,X,"bg"),R,"fg").bold,L=z(z(K,X,"fg"),G,"bg"),A=z(z(K,G,"bg"),I,"fg"),T=z(K,G,"fg"),Pq=z(K,X,"fg"),P=F(` ${J} `);if(q){if(P+=L(w),P+=A(` ${sq} ${q}`),Q>0||Z>0){if(P+=A(" ("),Q>0)P+=z(z(K,G,"bg"),Y.success,"fg")(`↑${Q}`);if(Q>0&&Z>0)P+=A(" ");if(Z>0)P+=z(z(K,G,"bg"),Y.warning,"fg")(`↓${Z}`);P+=A(")")}P+=A(" "),P+=T(w)}else P+=Pq(w);return P}function VQ(J,q,Q){if(!B()){let G=z(K,q.suggestion,"fg").bold;return`[ ${G(J)} ]`}let{suggestion:Z,inverseText:Y}=q,X=z(z(K,Z,"bg"),Y,"fg").bold,U=Q?z(z(K,Q,"bg"),Z,"fg"):z(K,Z,"fg");return X(` ${J} `)+U(w)}function jQ(J,q,Q){if(!J)return"";if(!B()){let G=z(K,q.suggestion,"fg").bold;return`[ ${G(J.trim())} ]`}let{suggestion:Z,inverseText:Y}=q,X=z(z(K,Z,"bg"),Y,"fg").bold,U=Q?z(z(K,Q,"bg"),Z,"fg"):z(K,Z,"fg");return X(` ${J}`)+U(w)}function NQ(J,q,Q){if(!J)return"";if(!B())return`[ ${z(K,q.suggestion,"fg")(J.trim())} ]`;let Z=hq(q),Y=q.suggestion,X=z(z(K,Z,"bg"),Y,"fg"),U=Q?z(z(K,Q,"bg"),Z,"fg"):z(K,Z,"fg");return X(` ${J}`)+U(w)}function rq(J,q,Q){if(!J)return"";if(!B())return`[ ${J} ]`;let Z=z(z(K,q,"bg"),Q.inverseText,"fg").bold,Y=z(K,q,"fg");return Z(` ${J} `)+Y(w)}function TQ(J,q,Q,Z,Y){if(!J)return"";if(!B()){let L=z(K,Z.suggestion,"fg")(J);if(q>0||Q>0){if(L+=" (",q>0)L+=z(K,Z.success,"fg")(`↑${q}`);if(q>0&&Q>0)L+=" ";if(Q>0)L+=z(K,Z.warning,"fg")(`↓${Q}`);L+=")"}return`[ ${L} ]`}let X=hq(Z),U=Z.suggestion,G=z(z(K,X,"bg"),U,"fg"),R=Y?z(z(K,Y,"bg"),X,"fg"):z(K,X,"fg"),I=G(` ${sq} ${J}`);if(q>0||Q>0){if(I+=G(" ("),q>0)I+=z(z(K,X,"bg"),Z.success,"fg")(`↑${q}`);if(q>0&&Q>0)I+=G(" ");if(Q>0)I+=z(z(K,X,"bg"),Z.warning,"fg")(`↓${Q}`);I+=G(")")}return I+=G(" "),I+=R(w),I}function dq(J,q){if(!q||!nq())return J;return`${Bq}${q}${kq}${J}${Bq}${kq}`}function OQ(J,q,Q,Z="PR",Y){if(!B()){let F=q==="approved"?Q.success:q==="changes_requested"?Q.error:q==="pending"?Q.warning:q==="merged"?Q.merged:Q.inactive,L=dq(z(K,F,"fg")(`#${J}`),Y);return`[ ${z(K,Q.inactive,"fg")(Z)} ${L} ]`}let X=mJ(Q),U=q==="approved"?Q.success:q==="changes_requested"?Q.error:q==="pending"?Q.warning:q==="merged"?Q.merged:Q.inactive,G=z(z(K,X,"bg"),Q.inactive,"fg"),R=z(z(K,X,"bg"),U,"fg"),I=z(K,X,"fg");return G(` ${gJ} `)+dq(R(`#${J}`),Y)+G(" ")+I(w)}function uJ(J,q,Q,Z,Y){let X=z(K,Y.suggestion,"fg").bold,U=`[ ${X(J)} ]`;if(q){let R=z(K,Y.suggestion,"fg")(q);if(Q>0||Z>0){if(R+=" (",Q>0)R+=z(K,Y.success,"fg")(`↑${Q}`);if(Q>0&&Z>0)R+=" ";if(Z>0)R+=z(K,Y.warning,"fg")(`↓${Z}`);R+=")"}U+=` [ ${R} ]`}return U}var w="",sq="",gJ="",bJ;var oq=Rq(()=>{xJ();EJ();yJ();CJ();bJ=/^rgb\(\s?(\d+),\s?(\d+),\s?(\d+)\s?\)$/});function fJ(J,q){if(vq(J))return q.suggestion;switch(J){case"low":return q.inactive;case"medium":return q.warning;case"high":return q.claude;case"xhigh":return q.error;case"max":return q.merged;default:return q.error}}function kQ(J,q,Q){if(!n(q))return;let Z=JJ(q,J),Y=fJ(Z,Q);return{pill:rq(`${Sq(Z)} ${Z}`,Y,Q),bg:Y}}function Sq(J){if(vq(J))return qJ;switch(J){case"low":return aq;case"medium":return lq;case"high":return _q;case"xhigh":return tq;case"max":return eq;default:return _q}}var ZJ=Rq(()=>{$J();QJ();oq()});function rQ(J){let q=$q.c(82),{initial:Q,sessionModel:Z,onSelect:Y,onCancel:X,isStandaloneCommand:U,showFastModeNotice:G,headerText:R,skipSettingsWrite:I}=J,F=wJ(),L=RJ(),A=Q===null?h:Q,[T,Pq]=Dq.useState(A),P=Cq(KQ),[k,vJ]=Dq.useState(!1),_=Cq(XQ),r;if(q[0]!==_)r=_!==void 0?uq(_):void 0,q[0]=_,q[1]=r;else r=q[1];let[v,fq]=Dq.useState(r),Vq=P??!1,o;if(q[2]!==Vq)o=FJ(Vq),q[2]=Vq,q[3]=o;else o=q[3];let p=o,jq;q:{if(Q!==null&&!p.some((W)=>{if(W.value===Q)return!0;if(W.value===null)return!1;try{return s(i(String(W.value)))===s(i(Q))}catch{return!1}})){let W;if(q[4]!==Q)W=yq(Q),q[4]=Q,q[5]=W;else W=q[5];let V;if(q[6]!==Q||q[7]!==W)V={value:Q,label:W,description:"Current model"},q[6]=Q,q[7]=W,q[8]=V;else V=q[8];let S;if(q[9]!==p||q[10]!==V)S=[...p,V],q[9]=p,q[10]=V,q[11]=S;else S=q[11];jq=S;break q}jq=p}let Nq=jq,a;if(q[12]!==Nq)a=Nq.map(YQ),q[12]=Nq,q[13]=a;else a=q[13];let N=a,l;if(q[14]!==A||q[15]!==N)l=N.find((W)=>{if(W.value===A)return!0;if(A===h||W.value===null)return!1;try{return s(i(String(W.value)))===s(i(String(A)))}catch{return!1}})?.value??N[0]?.value??void 0,q[14]=A,q[15]=N,q[16]=l;else l=q[16];let Tq=l,t=Math.min(10,N.length),e=Math.max(0,N.length-t),qq;if(q[17]!==T||q[18]!==N)qq=N.find((W)=>W.value===T)?.label,q[17]=T,q[18]=N,q[19]=qq;else qq=q[19];let Jq=qq,M,Qq;if(q[20]!==T){let W=gq(T);M=W?n(W):!1,Qq=W?NJ(W):!1,q[20]=T,q[21]=M,q[22]=Qq}else M=q[21],Qq=q[22];let Zq=Qq,zq;if(q[23]!==T)zq=xq(T),q[23]=T,q[24]=zq;else zq=q[24];let x=zq,d=v==="max"&&!Zq?"high":v,Yq;if(q[25]!==_||q[26]!==k)Yq=(W)=>{if(Pq(W),!k&&_===void 0)fq(xq(W))},q[25]=_,q[26]=k,q[27]=Yq;else Yq=q[27];let Oq=Yq,Xq;if(q[28]!==x||q[29]!==M||q[30]!==Zq)Xq=(W)=>{if(!M)return;fq((V)=>UQ(V??x,W,Zq)),vJ(!0)},q[28]=x,q[29]=M,q[30]=Zq,q[31]=Xq;else Xq=q[31];let Kq=Xq,Uq;if(q[32]!==Kq)Uq={"modelPicker:decreaseEffort":()=>Kq("left"),"modelPicker:increaseEffort":()=>Kq("right")},q[32]=Kq,q[33]=Uq;else Uq=q[33];let Wq;if(q[34]===Symbol.for("react.memo_cache_sentinel"))Wq={context:"ModelPicker"},q[34]=Wq;else Wq=q[34];LJ(Uq,Wq);let Gq;if(q[35]!==v||q[36]!==k||q[37]!==Y||q[38]!==F||q[39]!==I)Gq=function(V){if(KJ("tengu_model_command_menu_effort",{effort:v}),!I){let iq=OJ(v,xq(V),UJ("userSettings")?.effortLevel,k),pq=TJ(iq);if(pq!==void 0)WJ("userSettings",{effortLevel:pq});F((SJ)=>({...SJ,effortValue:iq}))}let S=gq(V),cq=k&&S&&n(S)?v:void 0;if(V===h){Y(null,cq);return}Y(V,cq)},q[35]=v,q[36]=k,q[37]=Y,q[38]=F,q[39]=I,q[40]=Gq;else Gq=q[40];let Mq=Gq,Hq;if(q[41]===Symbol.for("react.memo_cache_sentinel"))Hq=H(D,{color:"remember",bold:!0,children:"Select model"}),q[41]=Hq;else Hq=q[41];let wq=R??"Switch between Claude models. Applies to this session and future Claude Code sessions. For other/previous model names, specify with --model.",E;if(q[42]!==wq)E=H(D,{dimColor:!0,children:wq}),q[42]=wq,q[43]=E;else E=q[43];let y;if(q[44]!==Z)y=Z&&j(D,{dimColor:!0,children:["Currently using ",yq(Z)," for this session (set by plan mode). Selecting a model will undo this."]}),q[44]=Z,q[45]=y;else y=q[45];let C;if(q[46]!==E||q[47]!==y)C=j(O,{marginBottom:1,flexDirection:"column",children:[Hq,E,y]}),q[46]=E,q[47]=y,q[48]=C;else C=q[48];let Fq=X??zQ,g;if(q[49]!==Oq||q[50]!==Mq||q[51]!==Tq||q[52]!==A||q[53]!==N||q[54]!==Fq||q[55]!==t)g=H(O,{flexDirection:"column",children:H(BJ,{defaultValue:A,defaultFocusValue:Tq,options:N,onChange:Mq,onFocus:Oq,onCancel:Fq,visibleOptionCount:t})}),q[49]=Oq,q[50]=Mq,q[51]=Tq,q[52]=A,q[53]=N,q[54]=Fq,q[55]=t,q[56]=g;else g=q[56];let b;if(q[57]!==e)b=e>0&&H(O,{paddingLeft:3,children:j(D,{dimColor:!0,children:["and ",e," more…"]})}),q[57]=e,q[58]=b;else b=q[58];let m;if(q[59]!==g||q[60]!==b)m=j(O,{flexDirection:"column",marginBottom:1,children:[g,b]}),q[59]=g,q[60]=b,q[61]=m;else m=q[61];let u;if(q[62]!==d||q[63]!==x||q[64]!==Jq||q[65]!==M)u=H(O,{marginBottom:1,flexDirection:"column",children:M?j(D,{dimColor:!0,children:[H(YJ,{effort:d})," ",AJ(d)," effort",d===x?" (default)":""," ",H(D,{color:"subtle",children:"← → to adjust"})]}):j(D,{color:"subtle",children:[H(YJ,{effort:void 0})," Effort not supported",Jq?` for ${Jq}`:""]})}),q[62]=d,q[63]=x,q[64]=Jq,q[65]=M,q[66]=u;else u=q[66];let $;if(q[67]!==G)$=bq()?G?H(O,{marginBottom:1,children:j(D,{dimColor:!0,children:["Fast mode is ",H(D,{bold:!0,children:"ON"})," and available with"," ",Eq," only (/fast). Switching to other models turn off fast mode."]})}):GJ()&&!HJ()?H(O,{marginBottom:1,children:j(D,{dimColor:!0,children:["Use ",H(D,{bold:!0,children:"/fast"})," to turn on Fast mode (",Eq," only)."]})}):null:null,q[67]=G,q[68]=$;else $=q[68];let f;if(q[69]!==C||q[70]!==m||q[71]!==u||q[72]!==$)f=j(O,{flexDirection:"column",children:[C,m,u,$]}),q[69]=C,q[70]=m,q[71]=u,q[72]=$,q[73]=f;else f=q[73];let c;if(q[74]!==L||q[75]!==U)c=U&&H(D,{dimColor:!0,italic:!0,children:L.pending?j(IJ,{children:["Press ",L.keyName," again to exit"]}):j(VJ,{children:[H(DJ,{shortcut:"Enter",action:"confirm"}),H(PJ,{action:"select:cancel",context:"Select",fallback:"Esc",description:"exit"})]})}),q[74]=L,q[75]=U,q[76]=c;else c=q[76];let Iq;if(q[77]!==f||q[78]!==c)Iq=j(O,{flexDirection:"column",children:[f,c]}),q[77]=f,q[78]=c,q[79]=Iq;else Iq=q[79];let Aq=Iq;if(!U)return Aq;let Lq;if(q[80]!==Aq)Lq=H(jJ,{color:"permission",children:Aq}),q[80]=Aq,q[81]=Lq;else Lq=q[81];return Lq}function zQ(){}function YQ(J){return{...J,value:J.value===null?h:J.value}}function XQ(J){return J.effortValue}function KQ(J){return bq()?J.fastMode:!1}function gq(J){if(!J)return;return J===h?mq():i(J)}function YJ(J){let q=$q.c(5),{effort:Q}=J,Z=Q?"claude":"subtle",Y=Q??"low",X;if(q[0]!==Y)X=Sq(Y),q[0]=Y,q[1]=X;else X=q[1];let U;if(q[2]!==Z||q[3]!==X)U=H(D,{color:Z,children:X}),q[2]=Z,q[3]=X,q[4]=U;else U=q[4];return U}function UQ(J,q,Q){let Z=Q?["low","medium","high","max"]:["low","medium","high"],Y=Z.indexOf(J),X=Y!==-1?Y:Z.indexOf("high");if(q==="right")return Z[(X+1)%Z.length];else return Z[(X-1+Z.length)%Z.length]}function xq(J){let q=gq(J)??mq(),Q=MJ(q);return Q!==void 0?uq(Q):"high"}var $q,Dq,h="__NO_PREFERENCE__";var WQ=Rq(()=>{rJ();aJ();cJ();pJ();hJ();oJ();JQ();QJ();dJ();QQ();iJ();tJ();ZQ();eJ();lJ();qQ();ZJ();zJ();$q=XJ(sJ(),1),Dq=XJ(nJ(),1)});function eQ(J,q,Q){if(!_J())return!1;if(q)return!0;if(J===null||!kJ(J))return!1;let Z=J.toLowerCase().replace(/\[1m\]$/,"").trim(),Y=Z==="opus"||Z.includes("opus-4-6")||Z.includes("opus-4-7"),X=Z==="sonnet"||Z.includes("sonnet-4-6");if(Y&&Q)return!1;return Y||X}var IQ=Rq(()=>{HQ();GQ()});
|
|
2
|
+
export{hq as eh,mJ as fh,PQ as gh,VQ as hh,jQ as ih,NQ as jh,TQ as kh,OQ as lh,oq as mh,kQ as nh,Sq as oh,ZJ as ph,rQ as qh,WQ as rh,eQ as sh,IQ as th};
|