@claudiolabs/claudio 0.1.13 → 0.1.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunks/AgentTool-0.1.14-cdr5h1g4.mjs +1 -0
- package/dist/chunks/App-0.1.14-pg2tqqjz.mjs +1 -0
- package/dist/chunks/ApproveApiKey-0.1.14-e86h3nff.mjs +1 -0
- package/dist/chunks/{AssistantSessionChooser-0.1.13-tcg2ckh4.mjs → AssistantSessionChooser-0.1.14-tf848k8v.mjs} +1 -1
- package/dist/chunks/AutoModeOptInDialog-0.1.14-ftdkaf8h.mjs +1 -0
- package/dist/chunks/BypassPermissionsModeDialog-0.1.14-d45z21x5.mjs +1 -0
- package/dist/chunks/ClaudeMdExternalIncludesDialog-0.1.14-dzhpgrhm.mjs +1 -0
- package/dist/chunks/ConsoleOAuthFlow-0.1.14-y2v8vg76.mjs +1 -0
- package/dist/chunks/{DiffDialog-0.1.13-3a9b1b48.mjs → DiffDialog-0.1.14-wtx2wmbs.mjs} +1 -1
- package/dist/chunks/Doctor-0.1.14-rhryp3qj.mjs +1 -0
- package/dist/chunks/Grove-0.1.14-4pt83x25.mjs +1 -0
- package/dist/chunks/ITermBackend-0.1.14-xtdr5bmp.mjs +1 -0
- package/dist/chunks/{InProcessTransport-0.1.13-k5mkjvww.mjs → InProcessTransport-0.1.14-wdqgcpb4.mjs} +1 -1
- package/dist/chunks/InvalidConfigDialog-0.1.14-rx2djmka.mjs +1 -0
- package/dist/chunks/InvalidSettingsDialog-0.1.14-nhkj2max.mjs +1 -0
- package/dist/chunks/MigrationDialog-0.1.14-f6hf3ymp.mjs +1 -0
- package/dist/chunks/Onboarding-0.1.14-1rddgg2b.mjs +1 -0
- package/dist/chunks/ProviderManager-0.1.14-2d77t0cr.mjs +1 -0
- package/dist/chunks/REPL-0.1.14-rz1jsayd.mjs +1 -0
- package/dist/chunks/ResumeConversation-0.1.14-79hg5s2w.mjs +1 -0
- package/dist/chunks/{SnapshotUpdateDialog-0.1.13-has41zv0.mjs → SnapshotUpdateDialog-0.1.14-sbjnsz3c.mjs} +1 -1
- package/dist/chunks/TeleportProgress-0.1.14-411m3y24.mjs +1 -0
- package/dist/chunks/TeleportRepoMismatchDialog-0.1.14-v6ytg24w.mjs +1 -0
- package/dist/chunks/TeleportResumeWrapper-0.1.14-8wfa8twy.mjs +1 -0
- package/dist/chunks/TmuxBackend-0.1.14-175xkeyy.mjs +9 -0
- package/dist/chunks/ToolSearchTool-0.1.14-rpbvvb5j.mjs +1 -0
- package/dist/chunks/TrustDialog-0.1.14-zvmfmtg5.mjs +1 -0
- package/dist/chunks/activeProvider-0.1.14-5cpywex1.mjs +1 -0
- package/dist/chunks/add-dir-0.1.14-q700x1tp.mjs +1 -0
- package/dist/chunks/agents-0.1.14-nm4k11re.mjs +3 -0
- package/dist/chunks/{agents-0.1.13-a0aj4df9.mjs → agents-0.1.14-pjr42t23.mjs} +1 -1
- package/dist/chunks/api-0.1.14-v09922m9.mjs +1 -0
- package/dist/chunks/{asciicast-0.1.13-d6ce2h4r.mjs → asciicast-0.1.14-kgp9j4z6.mjs} +1 -1
- package/dist/chunks/assistant-0.1.14-yt6v1sjy.mjs +1 -0
- package/dist/chunks/auth-0.1.14-vg6ez70v.mjs +1 -0
- package/dist/chunks/{auth-0.1.13-fwdmg15h.mjs → auth-0.1.14-vj6095mm.mjs} +1 -1
- package/dist/chunks/{autoMode-0.1.13-4xh49kt4.mjs → autoMode-0.1.14-jxse6h16.mjs} +1 -1
- package/dist/chunks/backgroundHousekeeping-0.1.14-bh13ez8a.mjs +1 -0
- package/dist/chunks/branch-0.1.14-r5tt7cec.mjs +4 -0
- package/dist/chunks/{bridgePointer-0.1.13-s1qw0857.mjs → bridgePointer-0.1.14-2w1wvxgt.mjs} +1 -1
- package/dist/chunks/btw-0.1.14-j1cexrtn.mjs +1 -0
- package/dist/chunks/{buddy-0.1.13-2wvpbqx1.mjs → buddy-0.1.14-r4nmfbke.mjs} +1 -1
- package/dist/chunks/cacache-0.1.14-3vw5qkqs.mjs +1 -0
- package/dist/chunks/{cache-probe-0.1.13-ze8mf958.mjs → cache-probe-0.1.14-zfb6aw4f.mjs} +1 -1
- package/dist/chunks/{cacheStats-0.1.13-jtrw4rdj.mjs → cacheStats-0.1.14-15eahew3.mjs} +1 -1
- package/dist/chunks/caches-0.1.14-et2zg3m5.mjs +1 -0
- package/dist/chunks/{claudeDesktop-0.1.13-fs8rre9b.mjs → claudeDesktop-0.1.14-0df0z4v6.mjs} +1 -1
- package/dist/chunks/claudemd-0.1.14-exzt8psa.mjs +1 -0
- package/dist/chunks/clear-0.1.14-62gnxkg3.mjs +1 -0
- package/dist/chunks/clearTerminal-0.1.14-5p1j5sbv.mjs +1 -0
- package/dist/chunks/cli-0.1.14-08ambmnj.mjs +2 -0
- package/dist/chunks/cli-0.1.14-0a8ckx07.mjs +2 -0
- package/dist/chunks/{cli-0.1.13-ajsw8n7h.mjs → cli-0.1.14-0ctjta81.mjs} +2 -2
- package/dist/chunks/{cli-0.1.13-cjmpc9q5.mjs → cli-0.1.14-0kzzfe41.mjs} +2 -2
- package/dist/chunks/{cli-0.1.13-579v6j6d.mjs → cli-0.1.14-0nhaxy76.mjs} +2 -2
- package/dist/chunks/{cli-0.1.13-8gd1x101.mjs → cli-0.1.14-0x3m90bk.mjs} +2 -2
- package/dist/chunks/{cli-0.1.13-xde08pkt.mjs → cli-0.1.14-16jrehc2.mjs} +2 -2
- package/dist/chunks/{cli-0.1.13-myd004mr.mjs → cli-0.1.14-1g5jq0j8.mjs} +2 -2
- package/dist/chunks/cli-0.1.14-1shkmy81.mjs +2 -0
- package/dist/chunks/{cli-0.1.13-5c4fyghf.mjs → cli-0.1.14-1xkst5wv.mjs} +2 -2
- package/dist/chunks/{cli-0.1.13-fwd5b6q8.mjs → cli-0.1.14-244fknyr.mjs} +2 -2
- package/dist/chunks/{cli-0.1.13-gvz2qezh.mjs → cli-0.1.14-25ta9abj.mjs} +2 -2
- package/dist/chunks/{cli-0.1.13-8sszxge2.mjs → cli-0.1.14-28exj8zm.mjs} +2 -2
- package/dist/chunks/cli-0.1.14-2e2jfccr.mjs +2 -0
- package/dist/chunks/{cli-0.1.13-dag38tkx.mjs → cli-0.1.14-2f7s5xbd.mjs} +5 -5
- package/dist/chunks/{cli-0.1.13-144gn3fd.mjs → cli-0.1.14-2mzb5ath.mjs} +2 -2
- package/dist/chunks/cli-0.1.14-373staaj.mjs +2 -0
- package/dist/chunks/cli-0.1.14-39y8qfj7.mjs +2 -0
- package/dist/chunks/{cli-0.1.13-84tbx1nf.mjs → cli-0.1.14-3m63hy2a.mjs} +2 -2
- package/dist/chunks/cli-0.1.14-3scecgzx.mjs +6 -0
- package/dist/chunks/{cli-0.1.13-jeyjdb2m.mjs → cli-0.1.14-3w7fbjhy.mjs} +2 -2
- package/dist/chunks/{cli-0.1.13-fabrrwqa.mjs → cli-0.1.14-3xj419mp.mjs} +2 -2
- package/dist/chunks/{cli-0.1.13-xkdwvsg9.mjs → cli-0.1.14-3yj4dkmn.mjs} +2 -2
- package/dist/chunks/cli-0.1.14-3zj4s594.mjs +2 -0
- package/dist/chunks/{cli-0.1.13-5j5bg3t2.mjs → cli-0.1.14-42sm5vzr.mjs} +2 -2
- package/dist/chunks/cli-0.1.14-442a367x.mjs +2 -0
- package/dist/chunks/{cli-0.1.13-h7a36dnk.mjs → cli-0.1.14-473sgexj.mjs} +2 -2
- package/dist/chunks/{cli-0.1.13-2c7g6rpx.mjs → cli-0.1.14-4mde8z7h.mjs} +2 -2
- package/dist/chunks/{cli-0.1.13-y7aqqca1.mjs → cli-0.1.14-4tmbgg29.mjs} +2 -2
- package/dist/chunks/{cli-0.1.13-hgkwnhwv.mjs → cli-0.1.14-4wdh3k7y.mjs} +2 -2
- package/dist/chunks/{cli-0.1.13-5krmz4nd.mjs → cli-0.1.14-59axynr8.mjs} +2 -2
- package/dist/chunks/{cli-0.1.13-0zpmhn2j.mjs → cli-0.1.14-5brvxst8.mjs} +2 -2
- package/dist/chunks/cli-0.1.14-5e5kkjam.mjs +2 -0
- package/dist/chunks/cli-0.1.14-5rp4y3q2.mjs +2 -0
- package/dist/chunks/{cli-0.1.13-9jajvw4r.mjs → cli-0.1.14-5te1nbdc.mjs} +2 -2
- package/dist/chunks/cli-0.1.14-68wbwy40.mjs +4 -0
- package/dist/chunks/cli-0.1.14-6cjjzttb.mjs +3 -0
- package/dist/chunks/{cli-0.1.13-qdtwrf9z.mjs → cli-0.1.14-71m91842.mjs} +2 -2
- package/dist/chunks/{cli-0.1.13-9043n2e8.mjs → cli-0.1.14-71sp86jb.mjs} +2 -2
- package/dist/chunks/{cli-0.1.13-saz6qetz.mjs → cli-0.1.14-77ha4n58.mjs} +2 -2
- package/dist/chunks/{cli-0.1.13-s928gjab.mjs → cli-0.1.14-7zjhrz42.mjs} +3 -3
- package/dist/chunks/{cli-0.1.13-v32xwe08.mjs → cli-0.1.14-7zz7abpc.mjs} +2 -2
- package/dist/chunks/cli-0.1.14-86gckvrm.mjs +2 -0
- package/dist/chunks/cli-0.1.14-893g12wf.mjs +2 -0
- package/dist/chunks/{cli-0.1.13-tknwgkgp.mjs → cli-0.1.14-8fr10t94.mjs} +3 -3
- package/dist/chunks/{cli-0.1.13-b40skdsz.mjs → cli-0.1.14-90zkq8jm.mjs} +2 -2
- package/dist/chunks/cli-0.1.14-9b8kspnd.mjs +2 -0
- package/dist/chunks/cli-0.1.14-9evp0ewn.mjs +2 -0
- package/dist/chunks/cli-0.1.14-9gem156t.mjs +2 -0
- package/dist/chunks/{cli-0.1.13-3k1n20ra.mjs → cli-0.1.14-9kxzs20h.mjs} +2 -2
- package/dist/chunks/{cli-0.1.13-pw5dks39.mjs → cli-0.1.14-9vc52dnj.mjs} +2 -2
- package/dist/chunks/cli-0.1.14-a15xdexp.mjs +12 -0
- package/dist/chunks/cli-0.1.14-a6kwmqhz.mjs +16 -0
- package/dist/chunks/{cli-0.1.13-j7796v8f.mjs → cli-0.1.14-a9ytrehs.mjs} +2 -2
- package/dist/chunks/{cli-0.1.13-kzn9sspk.mjs → cli-0.1.14-ab0rxxvk.mjs} +2 -2
- package/dist/chunks/{cli-0.1.13-b3xc1r3k.mjs → cli-0.1.14-adz0gnzy.mjs} +2 -2
- package/dist/chunks/{cli-0.1.13-wz7v1tqx.mjs → cli-0.1.14-aky5tegx.mjs} +2 -2
- package/dist/chunks/{cli-0.1.13-xv6wh44y.mjs → cli-0.1.14-akz49g5v.mjs} +2 -2
- package/dist/chunks/{cli-0.1.13-fz5dm31h.mjs → cli-0.1.14-as1s0b0t.mjs} +2 -2
- package/dist/chunks/cli-0.1.14-as9nq99n.mjs +2 -0
- package/dist/chunks/{cli-0.1.13-mezw1vk8.mjs → cli-0.1.14-ba919tmj.mjs} +2 -2
- package/dist/chunks/cli-0.1.14-bat0c779.mjs +2 -0
- package/dist/chunks/{cli-0.1.13-p4nz8zmd.mjs → cli-0.1.14-bgqm4vsk.mjs} +2 -2
- package/dist/chunks/{cli-0.1.13-1gbn4dgj.mjs → cli-0.1.14-c0bv9eha.mjs} +2 -2
- package/dist/chunks/{cli-0.1.13-30j4h365.mjs → cli-0.1.14-c4v2kfdn.mjs} +2 -2
- package/dist/chunks/{cli-0.1.13-mahtf0ay.mjs → cli-0.1.14-canpypsb.mjs} +2 -2
- package/dist/chunks/{cli-0.1.13-wwnez3j0.mjs → cli-0.1.14-cdby401e.mjs} +2 -2
- package/dist/chunks/cli-0.1.14-ch9c9c38.mjs +2 -0
- package/dist/chunks/{cli-0.1.13-5061js0h.mjs → cli-0.1.14-ckjcet41.mjs} +2 -2
- package/dist/chunks/{cli-0.1.13-2vrh3n9y.mjs → cli-0.1.14-cp2pada5.mjs} +2 -2
- package/dist/chunks/{cli-0.1.13-d8wkcw90.mjs → cli-0.1.14-d1edbjh4.mjs} +2 -2
- package/dist/chunks/{cli-0.1.13-87xfe2f3.mjs → cli-0.1.14-d483gd53.mjs} +2 -2
- package/dist/chunks/{cli-0.1.13-0xy8k6yv.mjs → cli-0.1.14-d4zkffre.mjs} +2 -2
- package/dist/chunks/{cli-0.1.13-0p3b9j40.mjs → cli-0.1.14-dcgxqsyp.mjs} +2 -2
- package/dist/chunks/cli-0.1.14-dntkrp1j.mjs +134 -0
- package/dist/chunks/cli-0.1.14-dq7jkw1n.mjs +2 -0
- package/dist/chunks/cli-0.1.14-dqads3y3.mjs +2 -0
- package/dist/chunks/{cli-0.1.13-apjxy5tn.mjs → cli-0.1.14-dt11hwkv.mjs} +2 -2
- package/dist/chunks/{cli-0.1.13-xvvtja1h.mjs → cli-0.1.14-dw74ppax.mjs} +2 -2
- package/dist/chunks/cli-0.1.14-dz2jvye2.mjs +2 -0
- package/dist/chunks/cli-0.1.14-e40hm9sd.mjs +2 -0
- package/dist/chunks/{cli-0.1.13-ks4x4cct.mjs → cli-0.1.14-edjtfw4q.mjs} +2 -2
- package/dist/chunks/cli-0.1.14-efhhkgkx.mjs +2 -0
- package/dist/chunks/cli-0.1.14-eq0gbnpg.mjs +2 -0
- package/dist/chunks/cli-0.1.14-et8yewbf.mjs +2 -0
- package/dist/chunks/cli-0.1.14-fdpfr31f.mjs +2 -0
- package/dist/chunks/{cli-0.1.13-w8h6wdez.mjs → cli-0.1.14-fhfj87ej.mjs} +2 -2
- package/dist/chunks/{cli-0.1.13-m61dhxfs.mjs → cli-0.1.14-fmgz6tx2.mjs} +3 -3
- package/dist/chunks/{cli-0.1.13-dmgp48vg.mjs → cli-0.1.14-fmmxw3gj.mjs} +2 -2
- package/dist/chunks/{cli-0.1.13-wxdmc1dd.mjs → cli-0.1.14-fspxpmh7.mjs} +2 -2
- package/dist/chunks/{cli-0.1.13-fzb4yx18.mjs → cli-0.1.14-ftjxb57b.mjs} +4 -4
- package/dist/chunks/{cli-0.1.13-e58n0k16.mjs → cli-0.1.14-g5q2xqp3.mjs} +2 -2
- package/dist/chunks/cli-0.1.14-gdm27acz.mjs +2 -0
- package/dist/chunks/{cli-0.1.13-79vtnprb.mjs → cli-0.1.14-harz1d9d.mjs} +2 -2
- package/dist/chunks/{cli-0.1.13-2cdtdhek.mjs → cli-0.1.14-heevc19y.mjs} +2 -2
- package/dist/chunks/{cli-0.1.13-ck28msre.mjs → cli-0.1.14-hjktwgtk.mjs} +2 -2
- package/dist/chunks/cli-0.1.14-hkaqyhx1.mjs +2 -0
- package/dist/chunks/{cli-0.1.13-zgnanj3x.mjs → cli-0.1.14-hvfg45y0.mjs} +2 -2
- package/dist/chunks/{cli-0.1.13-p2wyk6z7.mjs → cli-0.1.14-hxvzvfr2.mjs} +3 -3
- package/dist/chunks/{cli-0.1.13-fh5dndvp.mjs → cli-0.1.14-j5sbzwhy.mjs} +917 -915
- package/dist/chunks/cli-0.1.14-ja2ctrem.mjs +2 -0
- package/dist/chunks/{cli-0.1.13-v6z41645.mjs → cli-0.1.14-jbn4ywda.mjs} +2 -2
- package/dist/chunks/{cli-0.1.13-d6tr2j76.mjs → cli-0.1.14-jf8019sb.mjs} +2 -2
- package/dist/chunks/{cli-0.1.13-b24n1wvw.mjs → cli-0.1.14-jnfs73kb.mjs} +2 -2
- package/dist/chunks/{cli-0.1.13-bkg3sva7.mjs → cli-0.1.14-jpe9sxch.mjs} +2 -2
- package/dist/chunks/{cli-0.1.13-pqk4c7m7.mjs → cli-0.1.14-k8nwm06m.mjs} +2 -2
- package/dist/chunks/{cli-0.1.13-hyvpn2ht.mjs → cli-0.1.14-k9jcmxtd.mjs} +2 -2
- package/dist/chunks/cli-0.1.14-ka0xhrv6.mjs +2 -0
- package/dist/chunks/cli-0.1.14-kcrsww4s.mjs +2 -0
- package/dist/chunks/{cli-0.1.13-rftgy1b8.mjs → cli-0.1.14-khtq9cgy.mjs} +2 -2
- package/dist/chunks/{cli-0.1.13-jz57znb6.mjs → cli-0.1.14-kmsvd61a.mjs} +2 -2
- package/dist/chunks/{cli-0.1.13-s90a26ca.mjs → cli-0.1.14-kn1f2x94.mjs} +2 -2
- package/dist/chunks/{cli-0.1.13-d85aba8r.mjs → cli-0.1.14-kpsh76mj.mjs} +2 -2
- package/dist/chunks/{cli-0.1.13-8pw4n94k.mjs → cli-0.1.14-kt6sq4nr.mjs} +2 -2
- package/dist/chunks/{cli-0.1.13-s9fgd2dx.mjs → cli-0.1.14-ktz3cgwa.mjs} +2 -2
- package/dist/chunks/{cli-0.1.13-cyj5snev.mjs → cli-0.1.14-kv650aha.mjs} +2 -2
- package/dist/chunks/{cli-0.1.13-rkaxch5j.mjs → cli-0.1.14-m75ce5ve.mjs} +2 -2
- package/dist/chunks/cli-0.1.14-m7khgn2k.mjs +2 -0
- package/dist/chunks/{cli-0.1.13-tq3dqmem.mjs → cli-0.1.14-m7xchegb.mjs} +2 -2
- package/dist/chunks/{cli-0.1.13-gd3nndc7.mjs → cli-0.1.14-mgcmwvcn.mjs} +2 -2
- package/dist/chunks/{cli-0.1.13-asrdd8dh.mjs → cli-0.1.14-mngn74ga.mjs} +2 -2
- package/dist/chunks/cli-0.1.14-mx9yse7m.mjs +2 -0
- package/dist/chunks/{cli-0.1.13-m5c2efjx.mjs → cli-0.1.14-nbvvdkk2.mjs} +1 -1
- package/dist/chunks/{cli-0.1.13-00qdyz6f.mjs → cli-0.1.14-nkza93de.mjs} +2 -2
- package/dist/chunks/cli-0.1.14-nmmtd1d6.mjs +2 -0
- package/dist/chunks/cli-0.1.14-nnr43nyg.mjs +2 -0
- package/dist/chunks/{cli-0.1.13-t5w452fj.mjs → cli-0.1.14-nprcbhwn.mjs} +2 -2
- package/dist/chunks/{cli-0.1.13-ct9m5223.mjs → cli-0.1.14-ntq8w1ss.mjs} +2 -2
- package/dist/chunks/{cli-0.1.13-yd536yw4.mjs → cli-0.1.14-nxphqjb4.mjs} +2 -2
- package/dist/chunks/{cli-0.1.13-0gfnmq08.mjs → cli-0.1.14-nzsj259d.mjs} +2 -2
- package/dist/chunks/cli-0.1.14-qe5zyvfh.mjs +2 -0
- package/dist/chunks/{cli-0.1.13-bj67mp7n.mjs → cli-0.1.14-qn4ftczz.mjs} +1 -1
- package/dist/chunks/{cli-0.1.13-nwt2jc8b.mjs → cli-0.1.14-qyx55m6c.mjs} +2 -2
- package/dist/chunks/{cli-0.1.13-ky4z1s1h.mjs → cli-0.1.14-qzcceap6.mjs} +2 -2
- package/dist/chunks/{cli-0.1.13-nc3ce357.mjs → cli-0.1.14-r00mjm41.mjs} +2 -2
- package/dist/chunks/cli-0.1.14-r46jh9af.mjs +2 -0
- package/dist/chunks/{cli-0.1.13-ctjpk124.mjs → cli-0.1.14-r5qyt63x.mjs} +2 -2
- package/dist/chunks/{cli-0.1.13-5ydypzty.mjs → cli-0.1.14-rc5yd94n.mjs} +3 -3
- package/dist/chunks/{cli-0.1.13-dak36ez8.mjs → cli-0.1.14-rtstk94r.mjs} +2 -2
- package/dist/chunks/{cli-0.1.13-1g6bgaa6.mjs → cli-0.1.14-s9m1y93w.mjs} +2 -2
- package/dist/chunks/cli-0.1.14-sb7dm65b.mjs +2 -0
- package/dist/chunks/{cli-0.1.13-hjqn3n5a.mjs → cli-0.1.14-seq2fm2d.mjs} +2 -2
- package/dist/chunks/cli-0.1.14-sn1rf71y.mjs +2 -0
- package/dist/chunks/{cli-0.1.13-wh68ve92.mjs → cli-0.1.14-stv1d0q3.mjs} +2 -2
- package/dist/chunks/cli-0.1.14-svqkx41a.mjs +2 -0
- package/dist/chunks/cli-0.1.14-t3fga5je.mjs +2 -0
- package/dist/chunks/{cli-0.1.13-13fh0g36.mjs → cli-0.1.14-ta3w93yb.mjs} +2 -2
- package/dist/chunks/{cli-0.1.13-eh7dqeqt.mjs → cli-0.1.14-tkb5t0xv.mjs} +2 -2
- package/dist/chunks/{cli-0.1.13-3pctg5zc.mjs → cli-0.1.14-tqexnkmz.mjs} +2 -2
- package/dist/chunks/{cli-0.1.13-fdmvysv0.mjs → cli-0.1.14-tsth8deg.mjs} +1 -1
- package/dist/chunks/cli-0.1.14-tyv29sz9.mjs +2 -0
- package/dist/chunks/cli-0.1.14-v2acyy7r.mjs +4 -0
- package/dist/chunks/{cli-0.1.13-p625yxtg.mjs → cli-0.1.14-v9q1cxjy.mjs} +2 -2
- package/dist/chunks/{cli-0.1.13-vn7ckv16.mjs → cli-0.1.14-vp1kn532.mjs} +2 -2
- package/dist/chunks/cli-0.1.14-w3rwfr1d.mjs +2 -0
- package/dist/chunks/{cli-0.1.13-g654740k.mjs → cli-0.1.14-w6nzk5dc.mjs} +2 -2
- package/dist/chunks/{cli-0.1.13-6p0jxfnp.mjs → cli-0.1.14-w8efvbh6.mjs} +2 -2
- package/dist/chunks/{cli-0.1.13-s6w3ej6f.mjs → cli-0.1.14-we6s7jfg.mjs} +2 -2
- package/dist/chunks/{cli-0.1.13-v467fj8c.mjs → cli-0.1.14-wgatq2fj.mjs} +2 -2
- package/dist/chunks/{cli-0.1.13-8ppsn0an.mjs → cli-0.1.14-whe4bxfr.mjs} +2 -2
- package/dist/chunks/{cli-0.1.13-0hyneh5t.mjs → cli-0.1.14-wwehdfwx.mjs} +2 -2
- package/dist/chunks/{cli-0.1.13-a4xga299.mjs → cli-0.1.14-wymtdw5f.mjs} +2 -2
- package/dist/chunks/{cli-0.1.13-x461rxn2.mjs → cli-0.1.14-wz5yr49j.mjs} +2 -2
- package/dist/chunks/{cli-0.1.13-nsbk0w3b.mjs → cli-0.1.14-x88ypr2r.mjs} +2 -2
- package/dist/chunks/{cli-0.1.13-6gmqjyv9.mjs → cli-0.1.14-xp6rc33g.mjs} +2 -2
- package/dist/chunks/{cli-0.1.13-mkw72mxc.mjs → cli-0.1.14-y2wxptpk.mjs} +2 -2
- package/dist/chunks/cli-0.1.14-y55hrwdp.mjs +3 -0
- package/dist/chunks/{cli-0.1.13-vj532g9m.mjs → cli-0.1.14-y56629hj.mjs} +2 -2
- package/dist/chunks/{cli-0.1.13-8snyqhjj.mjs → cli-0.1.14-yagh75p5.mjs} +2 -2
- package/dist/chunks/cli-0.1.14-ydm3fwx1.mjs +2 -0
- package/dist/chunks/cli-0.1.14-yfc7weqn.mjs +821 -0
- package/dist/chunks/{cli-0.1.13-ga4mmwbc.mjs → cli-0.1.14-yphht6rx.mjs} +2 -2
- package/dist/chunks/{cli-0.1.13-zm2zgw7m.mjs → cli-0.1.14-yxce1bdc.mjs} +2 -2
- package/dist/chunks/cli-0.1.14-yxq1tr3a.mjs +2 -0
- package/dist/chunks/{cli-0.1.13-vwt4hc0t.mjs → cli-0.1.14-z0ckw2hb.mjs} +2 -2
- package/dist/chunks/{cli-0.1.13-rjjyq9ej.mjs → cli-0.1.14-z8j2n955.mjs} +2 -2
- package/dist/chunks/{cli-0.1.13-njvp7vtc.mjs → cli-0.1.14-zjqt3r89.mjs} +2 -2
- package/dist/chunks/{cli-0.1.13-1pxg82cx.mjs → cli-0.1.14-zq66y0mv.mjs} +2 -2
- package/dist/chunks/cli-0.1.14-zrmretjp.mjs +4 -0
- package/dist/chunks/cli-0.1.14-zs4vmj7z.mjs +4 -0
- package/dist/chunks/client-0.1.14-3t6sfwha.mjs +1 -0
- package/dist/chunks/color-0.1.14-65rf0ap9.mjs +1 -0
- package/dist/chunks/compact-0.1.14-mx9ng433.mjs +3 -0
- package/dist/chunks/config-0.1.14-1v5v86ax.mjs +1 -0
- package/dist/chunks/config-0.1.14-76vavy7t.mjs +1 -0
- package/dist/chunks/context-0.1.14-hyykwj83.mjs +1 -0
- package/dist/chunks/context-noninteractive-0.1.14-24qfm7b9.mjs +1 -0
- package/dist/chunks/conversation-0.1.14-mkc1cd5a.mjs +1 -0
- package/dist/chunks/{copy-0.1.13-03jy5tfn.mjs → copy-0.1.14-kp76nh7r.mjs} +1 -1
- package/dist/chunks/cost-0.1.14-3d4g5gqm.mjs +1 -0
- package/dist/chunks/createSession-0.1.14-8599rbgg.mjs +1 -0
- package/dist/chunks/desktop-0.1.14-bx4eky6b.mjs +1 -0
- package/dist/chunks/detectRepository-0.1.14-8yam7kv4.mjs +1 -0
- package/dist/chunks/detection-0.1.14-vz5bqsc0.mjs +1 -0
- package/dist/chunks/diff-0.1.14-e4pm39ee.mjs +1 -0
- package/dist/chunks/doctor-0.1.14-22fc2q8y.mjs +1 -0
- package/dist/chunks/earlyInput-0.1.14-997vtdw4.mjs +1 -0
- package/dist/chunks/effort-0.1.14-d9xmff2t.mjs +8 -0
- package/dist/chunks/environmentSelection-0.1.14-fn5p85z5.mjs +1 -0
- package/dist/chunks/environments-0.1.14-7napbg6g.mjs +1 -0
- package/dist/chunks/exit-0.1.14-v8j7rsfw.mjs +1 -0
- package/dist/chunks/export-0.1.14-qpt72paa.mjs +2 -0
- package/dist/chunks/extra-usage-0.1.14-tmwgn4dh.mjs +1 -0
- package/dist/chunks/extra-usage-noninteractive-0.1.14-b2pdph8q.mjs +1 -0
- package/dist/chunks/fast-0.1.14-q1tyk3k8.mjs +1 -0
- package/dist/chunks/feedback-0.1.14-qhk5ek0b.mjs +14 -0
- package/dist/chunks/{firstPartyEventLogger-0.1.13-6m3fvkcj.mjs → firstPartyEventLogger-0.1.14-78y09nr6.mjs} +1 -1
- package/dist/chunks/git-0.1.14-zvsa13gk.mjs +1 -0
- package/dist/chunks/githubModelsCredentials-0.1.14-r30t00rx.mjs +1 -0
- package/dist/chunks/{growthbook-0.1.13-sramqmzv.mjs → growthbook-0.1.14-dcdeqgyq.mjs} +1 -1
- package/dist/chunks/{heapdump-0.1.13-3n7hv372.mjs → heapdump-0.1.14-tj7w79dt.mjs} +1 -1
- package/dist/chunks/help-0.1.14-gk9s0stg.mjs +1 -0
- package/dist/chunks/{hookChains-0.1.13-te9q466p.mjs → hookChains-0.1.14-wng6tzfd.mjs} +2 -2
- package/dist/chunks/{hooks-0.1.13-g6kx1mk3.mjs → hooks-0.1.14-jy9bt7s6.mjs} +1 -1
- package/dist/chunks/hooks-0.1.14-ybdbkdfh.mjs +1 -0
- package/dist/chunks/{ide-0.1.13-ke3v5mb7.mjs → ide-0.1.14-0ar60k4r.mjs} +1 -1
- package/dist/chunks/image-processor-napi-0.1.14-p1r3vkb0.mjs +1 -0
- package/dist/chunks/{index-0.1.13-4cjfx282.mjs → index-0.1.14-071xy8v4.mjs} +1 -1
- package/dist/chunks/{index-0.1.13-a06q9ad9.mjs → index-0.1.14-1mttyja2.mjs} +1 -1
- package/dist/chunks/{index-0.1.13-j9c4bjzh.mjs → index-0.1.14-272zxs9n.mjs} +1 -1
- package/dist/chunks/{index-0.1.13-9meb2pab.mjs → index-0.1.14-2v6wa4p4.mjs} +1 -1
- package/dist/chunks/{index-0.1.13-3zjrdjrv.mjs → index-0.1.14-2x59va64.mjs} +1 -1
- package/dist/chunks/index-0.1.14-3m7vrt91.mjs +1 -0
- package/dist/chunks/index-0.1.14-4hv4f8g9.mjs +1 -0
- package/dist/chunks/{index-0.1.13-psynrf7p.mjs → index-0.1.14-8v5xwttx.mjs} +2 -2
- package/dist/chunks/{index-0.1.13-tvt8fxrq.mjs → index-0.1.14-ac13h1t1.mjs} +1 -1
- package/dist/chunks/{index-0.1.13-7c5y7cbf.mjs → index-0.1.14-dmbjzapt.mjs} +1 -1
- package/dist/chunks/{index-0.1.13-bc4sh2m1.mjs → index-0.1.14-g5kkm9ng.mjs} +1 -1
- package/dist/chunks/index-0.1.14-h8gc6ph5.mjs +1 -0
- package/dist/chunks/{index-0.1.13-c29wq5dx.mjs → index-0.1.14-hqphn8m5.mjs} +1 -1
- package/dist/chunks/{index-0.1.13-5g9shrc4.mjs → index-0.1.14-ksa4vdak.mjs} +1 -1
- package/dist/chunks/{index-0.1.13-mc5ag4wj.mjs → index-0.1.14-mzhk0gvs.mjs} +1 -1
- package/dist/chunks/{index-0.1.13-nm8pkj0f.mjs → index-0.1.14-qrykb444.mjs} +2 -2
- package/dist/chunks/index-0.1.14-qvap58wt.mjs +1 -0
- package/dist/chunks/index-0.1.14-vygpnv88.mjs +1 -0
- package/dist/chunks/index-0.1.14-wjc5jkvz.mjs +1 -0
- package/dist/chunks/{index-0.1.13-018yhz6j.mjs → index-0.1.14-y3aj57xa.mjs} +1 -1
- package/dist/chunks/index-0.1.14-yjw9017n.mjs +1 -0
- package/dist/chunks/index-0.1.14-zgwbnfqh.mjs +1 -0
- package/dist/chunks/initReplBridge-0.1.14-qe820gff.mjs +1 -0
- package/dist/chunks/ink-0.1.14-kxs7ygns.mjs +1 -0
- package/dist/chunks/{insights-0.1.13-t81417ej.mjs → insights-0.1.14-9n58d9t8.mjs} +1 -1
- package/dist/chunks/install-0.1.14-1zyjez10.mjs +1 -0
- package/dist/chunks/{install-github-app-0.1.13-yvnx16za.mjs → install-github-app-0.1.14-kmetkgdq.mjs} +1 -1
- package/dist/chunks/install-slack-app-0.1.14-64534gsm.mjs +1 -0
- package/dist/chunks/{instrumentation-0.1.13-bvt39wrk.mjs → instrumentation-0.1.14-fsgk97cp.mjs} +1 -1
- package/dist/chunks/interactiveHelpers-0.1.14-ca4bp7gy.mjs +1 -0
- package/dist/chunks/keybindings-0.1.14-zk3nyh0h.mjs +2 -0
- package/dist/chunks/knowledge-0.1.14-f7w4damb.mjs +2 -0
- package/dist/chunks/loadAgentsDir-0.1.14-md40mt17.mjs +1 -0
- package/dist/chunks/loadPluginHooks-0.1.14-d998c7wf.mjs +1 -0
- package/dist/chunks/lsp-0.1.14-cks4jevz.mjs +1 -0
- package/dist/chunks/main-0.1.14-94wst05h.mjs +1 -0
- package/dist/chunks/managedEnv-0.1.14-tvr9zhbp.mjs +1 -0
- package/dist/chunks/mcp-0.1.14-3tzc0agq.mjs +1 -0
- package/dist/chunks/{mcp-0.1.13-x9twbpqk.mjs → mcp-0.1.14-dmtc9tjr.mjs} +3 -3
- package/dist/chunks/mcp-0.1.14-tepbr987.mjs +4 -0
- package/dist/chunks/mcpServer-0.1.14-0mvs3bcw.mjs +1 -0
- package/dist/chunks/mcpb-0.1.14-ffa57420.mjs +1 -0
- package/dist/chunks/memory-0.1.14-cgx518q9.mjs +3 -0
- package/dist/chunks/{mobile-0.1.13-pzekbte3.mjs → mobile-0.1.14-bwjnmpy0.mjs} +1 -1
- package/dist/chunks/model-0.1.14-rq2dkze7.mjs +2 -0
- package/dist/chunks/model-0.1.14-zg566cz0.mjs +1 -0
- package/dist/chunks/{oauth-0.1.13-bk91rvfd.mjs → oauth-0.1.14-gftadks2.mjs} +1 -1
- package/dist/chunks/{openaiShim-0.1.13-c9z5r4zj.mjs → openaiShim-0.1.14-jv6416m8.mjs} +1 -1
- package/dist/chunks/{output-style-0.1.13-c4ah6hc0.mjs → output-style-0.1.14-v41ce6t5.mjs} +1 -1
- package/dist/chunks/package-WSP46L7M-0.1.14-xy3ej2c4.mjs +1 -0
- package/dist/chunks/parser-0.1.14-jr4b3as9.mjs +1 -0
- package/dist/chunks/passes-0.1.14-0jjh5wg5.mjs +1 -0
- package/dist/chunks/permissions-0.1.14-hh0d709r.mjs +3 -0
- package/dist/chunks/plan-0.1.14-kxb7xax2.mjs +1 -0
- package/dist/chunks/plist-0.1.14-ssqtjjq9.mjs +1 -0
- package/dist/chunks/plugin-0.1.14-01jhhdd3.mjs +29 -0
- package/dist/chunks/pluginStartupCheck-0.1.14-zjwy126p.mjs +1 -0
- package/dist/chunks/{plugins-0.1.13-1nvjxkbc.mjs → plugins-0.1.14-4tggkexv.mjs} +2 -2
- package/dist/chunks/{print-0.1.13-g2dmfpmq.mjs → print-0.1.14-m719w2yp.mjs} +4 -4
- package/dist/chunks/privacy-settings-0.1.14-2gv7gdy1.mjs +1 -0
- package/dist/chunks/{process-0.1.13-ycxbd26n.mjs → process-0.1.14-vgdgd7sq.mjs} +1 -1
- package/dist/chunks/processBashCommand-0.1.14-d3xsyk5f.mjs +1 -0
- package/dist/chunks/{processSlashCommand-0.1.13-16gwwvqz.mjs → processSlashCommand-0.1.14-7w1v93bg.mjs} +1 -1
- package/dist/chunks/prompt-0.1.14-30e7kfkx.mjs +1 -0
- package/dist/chunks/prompt-0.1.14-brtd9j19.mjs +1 -0
- package/dist/chunks/prompts-0.1.14-bv9qxc0a.mjs +1 -0
- package/dist/chunks/provider-0.1.14-xs34vy3w.mjs +2 -0
- package/dist/chunks/providerProfiles-0.1.14-068kvwwx.mjs +1 -0
- package/dist/chunks/rate-limit-options-0.1.14-2ftxh15k.mjs +1 -0
- package/dist/chunks/registry-0.1.14-ad3na7g6.mjs +1 -0
- package/dist/chunks/release-notes-0.1.14-b7e554an.mjs +5 -0
- package/dist/chunks/reload-plugins-0.1.14-3w9v6nw6.mjs +2 -0
- package/dist/chunks/remote-env-0.1.14-jyc0gkhb.mjs +1 -0
- package/dist/chunks/remoteBridgeCore-0.1.14-8kt4ffzy.mjs +1 -0
- package/dist/chunks/remoteSession-0.1.14-ppejxt7n.mjs +1 -0
- package/dist/chunks/rename-0.1.14-tx9dpgk1.mjs +1 -0
- package/dist/chunks/replBridgeHandle-0.1.14-gsqgzdev.mjs +1 -0
- package/dist/chunks/resume-0.1.14-7sda36n0.mjs +2 -0
- package/dist/chunks/{rewind-0.1.13-zxcfrje2.mjs → rewind-0.1.14-zba66at0.mjs} +1 -1
- package/dist/chunks/sandbox-adapter-0.1.14-k97fyzcg.mjs +1 -0
- package/dist/chunks/sandbox-toggle-0.1.14-jz6x02qp.mjs +1 -0
- package/dist/chunks/session-0.1.14-5qsfxmey.mjs +2 -0
- package/dist/chunks/sessionFileAccessHooks-0.1.14-mgx78eqm.mjs +1 -0
- package/dist/chunks/sessionStorage-0.1.14-sz2medpp.mjs +1 -0
- package/dist/chunks/setup-0.1.14-f13rnmdg.mjs +5 -0
- package/dist/chunks/sinks-0.1.14-bkyqa9eq.mjs +1 -0
- package/dist/chunks/skills-0.1.14-1vvr60ph.mjs +1 -0
- package/dist/chunks/startupProfiler-0.1.14-sabjns03.mjs +1 -0
- package/dist/chunks/state-0.1.14-rj00ry6n.mjs +1 -0
- package/dist/chunks/{stats-0.1.13-yrtt99gr.mjs → stats-0.1.14-rr3tpwqw.mjs} +1 -1
- package/dist/chunks/status-0.1.14-d4fcn5sn.mjs +1 -0
- package/dist/chunks/stickers-0.1.14-s9x2bdhp.mjs +1 -0
- package/dist/chunks/subprocessEnv-0.1.14-spqyrvd7.mjs +1 -0
- package/dist/chunks/tasks-0.1.14-yje1cmy8.mjs +1 -0
- package/dist/chunks/teamHelpers-0.1.14-zv908fgk.mjs +1 -0
- package/dist/chunks/teammateModeSnapshot-0.1.14-natmxyx5.mjs +1 -0
- package/dist/chunks/teleport-0.1.14-np0wrxrm.mjs +1 -0
- package/dist/chunks/terminalSetup-0.1.14-dzsstmk7.mjs +1 -0
- package/dist/chunks/theme-0.1.14-202es8wd.mjs +1 -0
- package/dist/chunks/thinkback-0.1.14-k4krnzrn.mjs +1 -0
- package/dist/chunks/thinkback-play-0.1.14-nn1v84ja.mjs +1 -0
- package/dist/chunks/toolPool-0.1.14-4etecef4.mjs +1 -0
- package/dist/chunks/toolSearch-0.1.14-q506jg4k.mjs +1 -0
- package/dist/chunks/trustedDevice-0.1.14-qq8dmccd.mjs +1 -0
- package/dist/chunks/{turndown.cjs-0.1.13-2wbn8j6y.mjs → turndown.cjs-0.1.14-nw2rtcyd.mjs} +1 -1
- package/dist/chunks/{ultrareviewCommand-0.1.13-sj6asgpk.mjs → ultrareviewCommand-0.1.14-9twnt5bp.mjs} +1 -1
- package/dist/chunks/{update-0.1.13-sx7hc0kj.mjs → update-0.1.14-9dhep94r.mjs} +11 -11
- package/dist/chunks/upgrade-0.1.14-4nr1rdba.mjs +1 -0
- package/dist/chunks/{upstreamproxy-0.1.13-pwxv6kww.mjs → upstreamproxy-0.1.14-sc0x4n7b.mjs} +1 -1
- package/dist/chunks/usage-0.1.14-sbaqxx8h.mjs +1 -0
- package/dist/chunks/util-0.1.14-vfg50acy.mjs +1 -0
- package/dist/chunks/utils-0.1.14-heqqycdx.mjs +1 -0
- package/dist/chunks/vim-0.1.14-z71303w7.mjs +1 -0
- package/dist/chunks/watcher-0.1.14-h1wk07kt.mjs +1 -0
- package/dist/chunks/{wiki-0.1.13-regg8ff2.mjs → wiki-0.1.14-s3exyf45.mjs} +1 -1
- package/dist/chunks/worktree-0.1.14-5486fw5t.mjs +1 -0
- package/dist/chunks/worktreeModeEnabled-0.1.14-xn1mf8hc.mjs +1 -0
- package/dist/chunks/{wrapper-0.1.13-8nsef109.mjs → wrapper-0.1.14-a4mesaeh.mjs} +1 -1
- package/dist/claudio-vscode.vsix +0 -0
- package/dist/cli.mjs +5 -5
- package/package.json +1 -1
- package/dist/chunks/AgentTool-0.1.13-yacqe6gs.mjs +0 -1
- package/dist/chunks/App-0.1.13-45tpe56w.mjs +0 -1
- package/dist/chunks/ApproveApiKey-0.1.13-rvk3ghpz.mjs +0 -1
- package/dist/chunks/AutoModeOptInDialog-0.1.13-4qkeekab.mjs +0 -1
- package/dist/chunks/BypassPermissionsModeDialog-0.1.13-wpjjxqtw.mjs +0 -1
- package/dist/chunks/ClaudeInChromeOnboarding-0.1.13-k8349mz5.mjs +0 -1
- package/dist/chunks/ClaudeMdExternalIncludesDialog-0.1.13-jg36gq05.mjs +0 -1
- package/dist/chunks/ConsoleOAuthFlow-0.1.13-svk1vdbj.mjs +0 -1
- package/dist/chunks/Doctor-0.1.13-zktnx7ce.mjs +0 -1
- package/dist/chunks/Grove-0.1.13-1hnmb7jn.mjs +0 -1
- package/dist/chunks/ITermBackend-0.1.13-esbr21j4.mjs +0 -1
- package/dist/chunks/InvalidConfigDialog-0.1.13-7wr7g7vx.mjs +0 -1
- package/dist/chunks/InvalidSettingsDialog-0.1.13-j8t2pnak.mjs +0 -1
- package/dist/chunks/MigrationDialog-0.1.13-jd2k6vk6.mjs +0 -1
- package/dist/chunks/Onboarding-0.1.13-j8d7hwbe.mjs +0 -1
- package/dist/chunks/ProviderManager-0.1.13-qcfa4ppx.mjs +0 -1
- package/dist/chunks/REPL-0.1.13-zpcaf2zq.mjs +0 -1
- package/dist/chunks/ResumeConversation-0.1.13-nwwjp69z.mjs +0 -1
- package/dist/chunks/TeleportProgress-0.1.13-ssgexm6r.mjs +0 -1
- package/dist/chunks/TeleportRepoMismatchDialog-0.1.13-r95sr8bp.mjs +0 -1
- package/dist/chunks/TeleportResumeWrapper-0.1.13-1qxft9es.mjs +0 -1
- package/dist/chunks/TmuxBackend-0.1.13-jf14wbka.mjs +0 -9
- package/dist/chunks/ToolSearchTool-0.1.13-xzmz0wz4.mjs +0 -1
- package/dist/chunks/TrustDialog-0.1.13-pegd35qh.mjs +0 -1
- package/dist/chunks/activeProvider-0.1.13-n3mrppkb.mjs +0 -1
- package/dist/chunks/add-dir-0.1.13-3zm44vdy.mjs +0 -1
- package/dist/chunks/agents-0.1.13-phdd6357.mjs +0 -3
- package/dist/chunks/api-0.1.13-vmdan95h.mjs +0 -1
- package/dist/chunks/assistant-0.1.13-y9yer51w.mjs +0 -1
- package/dist/chunks/auth-0.1.13-gw7n7j0w.mjs +0 -1
- package/dist/chunks/backgroundHousekeeping-0.1.13-tagm38w5.mjs +0 -1
- package/dist/chunks/branch-0.1.13-hjmxvn3n.mjs +0 -4
- package/dist/chunks/btw-0.1.13-ggywf7w1.mjs +0 -1
- package/dist/chunks/cacache-0.1.13-sy5bqn6j.mjs +0 -1
- package/dist/chunks/caches-0.1.13-0swwryxr.mjs +0 -1
- package/dist/chunks/chrome-0.1.13-ztyyyz4s.mjs +0 -1
- package/dist/chunks/chromeNativeHost-0.1.13-96ex7t46.mjs +0 -2
- package/dist/chunks/claude-for-chrome-mcp-0.1.13-6hy7w25p.mjs +0 -1
- package/dist/chunks/claudemd-0.1.13-942nfe7r.mjs +0 -1
- package/dist/chunks/clear-0.1.13-zge2t5n9.mjs +0 -1
- package/dist/chunks/clearTerminal-0.1.13-b5v1edw2.mjs +0 -1
- package/dist/chunks/cli-0.1.13-0b728dvh.mjs +0 -2
- package/dist/chunks/cli-0.1.13-0gyt273r.mjs +0 -2
- package/dist/chunks/cli-0.1.13-1hw65avy.mjs +0 -2
- package/dist/chunks/cli-0.1.13-1y21vq1h.mjs +0 -2
- package/dist/chunks/cli-0.1.13-2sx61wcx.mjs +0 -2
- package/dist/chunks/cli-0.1.13-3rr4fg79.mjs +0 -2
- package/dist/chunks/cli-0.1.13-45hjhcbc.mjs +0 -2
- package/dist/chunks/cli-0.1.13-4prgqshq.mjs +0 -2
- package/dist/chunks/cli-0.1.13-52f40ba4.mjs +0 -2
- package/dist/chunks/cli-0.1.13-5b7hgn91.mjs +0 -2
- package/dist/chunks/cli-0.1.13-5d4ke9a2.mjs +0 -4
- package/dist/chunks/cli-0.1.13-5rnhv49w.mjs +0 -2
- package/dist/chunks/cli-0.1.13-5s4m8qj9.mjs +0 -100
- package/dist/chunks/cli-0.1.13-6q3wa261.mjs +0 -2
- package/dist/chunks/cli-0.1.13-73w3wbmf.mjs +0 -3
- package/dist/chunks/cli-0.1.13-73yztj5x.mjs +0 -10
- package/dist/chunks/cli-0.1.13-85w0nxy9.mjs +0 -2
- package/dist/chunks/cli-0.1.13-91b1h8ww.mjs +0 -2
- package/dist/chunks/cli-0.1.13-9a1hzdsv.mjs +0 -2
- package/dist/chunks/cli-0.1.13-bzgpcgdt.mjs +0 -16
- package/dist/chunks/cli-0.1.13-c5b4ygdq.mjs +0 -2
- package/dist/chunks/cli-0.1.13-crcgrfse.mjs +0 -2
- package/dist/chunks/cli-0.1.13-d66pryf3.mjs +0 -2
- package/dist/chunks/cli-0.1.13-dgw8xfv1.mjs +0 -2
- package/dist/chunks/cli-0.1.13-f6gfa426.mjs +0 -2
- package/dist/chunks/cli-0.1.13-ft5k86va.mjs +0 -2
- package/dist/chunks/cli-0.1.13-g2v4avcv.mjs +0 -2
- package/dist/chunks/cli-0.1.13-gtgqh4bn.mjs +0 -2
- package/dist/chunks/cli-0.1.13-h3vb5402.mjs +0 -2
- package/dist/chunks/cli-0.1.13-hzdj03rn.mjs +0 -2
- package/dist/chunks/cli-0.1.13-jakv6e7b.mjs +0 -2
- package/dist/chunks/cli-0.1.13-m5aaczvd.mjs +0 -2
- package/dist/chunks/cli-0.1.13-mywk7e49.mjs +0 -134
- package/dist/chunks/cli-0.1.13-n1tj5bdc.mjs +0 -2
- package/dist/chunks/cli-0.1.13-n31sw1c8.mjs +0 -2
- package/dist/chunks/cli-0.1.13-nc8ww3rn.mjs +0 -6
- package/dist/chunks/cli-0.1.13-p00rtvrc.mjs +0 -2
- package/dist/chunks/cli-0.1.13-p84ry3q5.mjs +0 -2
- package/dist/chunks/cli-0.1.13-q93vqpjh.mjs +0 -833
- package/dist/chunks/cli-0.1.13-qxtrzerx.mjs +0 -2
- package/dist/chunks/cli-0.1.13-r09724ac.mjs +0 -2
- package/dist/chunks/cli-0.1.13-sgxk7d0h.mjs +0 -2
- package/dist/chunks/cli-0.1.13-sr9axhrw.mjs +0 -2
- package/dist/chunks/cli-0.1.13-ss1k5gqk.mjs +0 -3
- package/dist/chunks/cli-0.1.13-ssgwnxc5.mjs +0 -4
- package/dist/chunks/cli-0.1.13-t1zx7s60.mjs +0 -2
- package/dist/chunks/cli-0.1.13-t34z5r3c.mjs +0 -2
- package/dist/chunks/cli-0.1.13-v1b9yhsy.mjs +0 -2
- package/dist/chunks/cli-0.1.13-v56n2wqm.mjs +0 -2
- package/dist/chunks/cli-0.1.13-vdz792pb.mjs +0 -2
- package/dist/chunks/cli-0.1.13-w08qr05m.mjs +0 -2
- package/dist/chunks/cli-0.1.13-wpsqhe6v.mjs +0 -4
- package/dist/chunks/cli-0.1.13-wr0c9hyh.mjs +0 -4
- package/dist/chunks/cli-0.1.13-x3zt8q8r.mjs +0 -2
- package/dist/chunks/cli-0.1.13-x4n4my99.mjs +0 -2
- package/dist/chunks/cli-0.1.13-xwkys72y.mjs +0 -12
- package/dist/chunks/cli-0.1.13-y3aj3amr.mjs +0 -4
- package/dist/chunks/cli-0.1.13-y3e5jkh7.mjs +0 -2
- package/dist/chunks/cli-0.1.13-yeb03vme.mjs +0 -2
- package/dist/chunks/cli-0.1.13-yhe2a0cx.mjs +0 -2
- package/dist/chunks/cli-0.1.13-yrvakyyp.mjs +0 -2
- package/dist/chunks/cli-0.1.13-z0jm6xd0.mjs +0 -2
- package/dist/chunks/cli-0.1.13-z387wpj9.mjs +0 -2
- package/dist/chunks/cli-0.1.13-zmft0mps.mjs +0 -2
- package/dist/chunks/client-0.1.13-mbp3h3fc.mjs +0 -1
- package/dist/chunks/color-0.1.13-p7kzn9d4.mjs +0 -1
- package/dist/chunks/compact-0.1.13-603r2t03.mjs +0 -3
- package/dist/chunks/config-0.1.13-fn4hrgp2.mjs +0 -1
- package/dist/chunks/config-0.1.13-q8fcew9w.mjs +0 -1
- package/dist/chunks/context-0.1.13-5fz212w3.mjs +0 -1
- package/dist/chunks/context-noninteractive-0.1.13-fjn2461g.mjs +0 -1
- package/dist/chunks/conversation-0.1.13-zjqxzcfr.mjs +0 -1
- package/dist/chunks/cost-0.1.13-zch21h6x.mjs +0 -1
- package/dist/chunks/createSession-0.1.13-mh3jt0b0.mjs +0 -1
- package/dist/chunks/desktop-0.1.13-w51djw8z.mjs +0 -1
- package/dist/chunks/detectRepository-0.1.13-5tt2922a.mjs +0 -1
- package/dist/chunks/detection-0.1.13-k001d88v.mjs +0 -1
- package/dist/chunks/diff-0.1.13-vz7x7nm3.mjs +0 -1
- package/dist/chunks/doctor-0.1.13-egkgh28s.mjs +0 -1
- package/dist/chunks/earlyInput-0.1.13-tpq0qmw0.mjs +0 -1
- package/dist/chunks/effort-0.1.13-11mfjfnb.mjs +0 -8
- package/dist/chunks/environmentSelection-0.1.13-8fagqvgw.mjs +0 -1
- package/dist/chunks/environments-0.1.13-x1xw45es.mjs +0 -1
- package/dist/chunks/exit-0.1.13-3m34eg2x.mjs +0 -1
- package/dist/chunks/export-0.1.13-sq3jk66f.mjs +0 -2
- package/dist/chunks/extra-usage-0.1.13-dh2sxr12.mjs +0 -1
- package/dist/chunks/extra-usage-noninteractive-0.1.13-7yfmamd2.mjs +0 -1
- package/dist/chunks/fast-0.1.13-w1sk95j2.mjs +0 -1
- package/dist/chunks/feedback-0.1.13-ewxaenqk.mjs +0 -14
- package/dist/chunks/git-0.1.13-2rp45xgd.mjs +0 -1
- package/dist/chunks/githubModelsCredentials-0.1.13-e9c7cay9.mjs +0 -1
- package/dist/chunks/help-0.1.13-knrgw1dq.mjs +0 -1
- package/dist/chunks/hooks-0.1.13-1cp6zhk0.mjs +0 -1
- package/dist/chunks/image-processor-napi-0.1.13-h7fg935p.mjs +0 -1
- package/dist/chunks/index-0.1.13-0z5ns7r2.mjs +0 -1
- package/dist/chunks/index-0.1.13-1y9cm2x6.mjs +0 -1
- package/dist/chunks/index-0.1.13-7fm7tk25.mjs +0 -1
- package/dist/chunks/index-0.1.13-98j8cxkv.mjs +0 -1
- package/dist/chunks/index-0.1.13-h2mpm4c0.mjs +0 -1
- package/dist/chunks/index-0.1.13-h4wytk4z.mjs +0 -1
- package/dist/chunks/index-0.1.13-m9m61529.mjs +0 -1
- package/dist/chunks/index-0.1.13-qjt3h799.mjs +0 -1
- package/dist/chunks/initReplBridge-0.1.13-cd8avwfa.mjs +0 -1
- package/dist/chunks/ink-0.1.13-8ga6a1ny.mjs +0 -1
- package/dist/chunks/install-0.1.13-1bq7fwkd.mjs +0 -1
- package/dist/chunks/install-slack-app-0.1.13-2a6ydfjg.mjs +0 -1
- package/dist/chunks/interactiveHelpers-0.1.13-p29payqv.mjs +0 -1
- package/dist/chunks/keybindings-0.1.13-nr2he9m8.mjs +0 -2
- package/dist/chunks/knowledge-0.1.13-9a2md3fm.mjs +0 -2
- package/dist/chunks/loadAgentsDir-0.1.13-jmqfw7w4.mjs +0 -1
- package/dist/chunks/loadPluginHooks-0.1.13-qagn7gmw.mjs +0 -1
- package/dist/chunks/logout-0.1.13-d6ghx6h9.mjs +0 -1
- package/dist/chunks/lsp-0.1.13-q6xr2am5.mjs +0 -1
- package/dist/chunks/main-0.1.13-e5tbkphz.mjs +0 -1
- package/dist/chunks/managedEnv-0.1.13-n073hj5h.mjs +0 -1
- package/dist/chunks/mcp-0.1.13-0bw6qtwy.mjs +0 -4
- package/dist/chunks/mcp-0.1.13-1kaxfeey.mjs +0 -1
- package/dist/chunks/mcpServer-0.1.13-jf5dhyys.mjs +0 -1
- package/dist/chunks/mcpb-0.1.13-e55321kr.mjs +0 -1
- package/dist/chunks/memory-0.1.13-qwtbe97v.mjs +0 -3
- package/dist/chunks/model-0.1.13-a42465ep.mjs +0 -1
- package/dist/chunks/model-0.1.13-mqqrpy8m.mjs +0 -2
- package/dist/chunks/package-WSP46L7M-0.1.13-sme2jxpt.mjs +0 -1
- package/dist/chunks/parser-0.1.13-mm8j9rwt.mjs +0 -1
- package/dist/chunks/passes-0.1.13-bcbvjdzs.mjs +0 -1
- package/dist/chunks/permissions-0.1.13-c03934ka.mjs +0 -3
- package/dist/chunks/plan-0.1.13-fgs4vbwk.mjs +0 -1
- package/dist/chunks/plist-0.1.13-f3bfg2tf.mjs +0 -1
- package/dist/chunks/plugin-0.1.13-p5aqty2y.mjs +0 -29
- package/dist/chunks/pluginStartupCheck-0.1.13-f8tcmc9s.mjs +0 -1
- package/dist/chunks/privacy-settings-0.1.13-xkaezd0n.mjs +0 -1
- package/dist/chunks/processBashCommand-0.1.13-x4ggp1t8.mjs +0 -1
- package/dist/chunks/prompt-0.1.13-j0tnske2.mjs +0 -1
- package/dist/chunks/prompt-0.1.13-mdxfbbqp.mjs +0 -1
- package/dist/chunks/prompts-0.1.13-gtp7vnge.mjs +0 -1
- package/dist/chunks/provider-0.1.13-e9ayet7n.mjs +0 -2
- package/dist/chunks/providerProfiles-0.1.13-y9gs55qq.mjs +0 -1
- package/dist/chunks/rate-limit-options-0.1.13-va0322ws.mjs +0 -1
- package/dist/chunks/registry-0.1.13-e33aasxk.mjs +0 -1
- package/dist/chunks/release-notes-0.1.13-jmkp5g6h.mjs +0 -5
- package/dist/chunks/reload-plugins-0.1.13-0p5x4cr9.mjs +0 -2
- package/dist/chunks/remote-env-0.1.13-d7evw9tc.mjs +0 -1
- package/dist/chunks/remoteBridgeCore-0.1.13-sq5rr5x0.mjs +0 -1
- package/dist/chunks/remoteSession-0.1.13-zjhajyna.mjs +0 -1
- package/dist/chunks/rename-0.1.13-t30c4tx9.mjs +0 -1
- package/dist/chunks/replBridgeHandle-0.1.13-38jvakp0.mjs +0 -1
- package/dist/chunks/resume-0.1.13-ta7t0vbz.mjs +0 -2
- package/dist/chunks/sandbox-adapter-0.1.13-x04v4bxn.mjs +0 -1
- package/dist/chunks/sandbox-toggle-0.1.13-w0p8r4ta.mjs +0 -1
- package/dist/chunks/session-0.1.13-cjn060z1.mjs +0 -2
- package/dist/chunks/sessionFileAccessHooks-0.1.13-mr3y5jpc.mjs +0 -1
- package/dist/chunks/sessionStorage-0.1.13-8gahjm86.mjs +0 -1
- package/dist/chunks/setup-0.1.13-ap9dpanw.mjs +0 -5
- package/dist/chunks/sinks-0.1.13-r13nv1fw.mjs +0 -1
- package/dist/chunks/skills-0.1.13-jd5g0cex.mjs +0 -1
- package/dist/chunks/startupProfiler-0.1.13-d4g7sykt.mjs +0 -1
- package/dist/chunks/state-0.1.13-cv8jd04r.mjs +0 -1
- package/dist/chunks/status-0.1.13-4x7h3dec.mjs +0 -1
- package/dist/chunks/stickers-0.1.13-8szx17mh.mjs +0 -1
- package/dist/chunks/subprocessEnv-0.1.13-9asfa8pp.mjs +0 -1
- package/dist/chunks/tasks-0.1.13-dsy415kp.mjs +0 -1
- package/dist/chunks/teamHelpers-0.1.13-z4fpbggy.mjs +0 -1
- package/dist/chunks/teammateModeSnapshot-0.1.13-cc6scthx.mjs +0 -1
- package/dist/chunks/teleport-0.1.13-gx6zbjr3.mjs +0 -1
- package/dist/chunks/terminalSetup-0.1.13-wmg8wa4f.mjs +0 -1
- package/dist/chunks/theme-0.1.13-m8mdm37k.mjs +0 -1
- package/dist/chunks/thinkback-0.1.13-4jwhbbcv.mjs +0 -1
- package/dist/chunks/thinkback-play-0.1.13-0vz0yjza.mjs +0 -1
- package/dist/chunks/toolPool-0.1.13-z741g6f2.mjs +0 -1
- package/dist/chunks/toolSearch-0.1.13-jaadtdmb.mjs +0 -1
- package/dist/chunks/trustedDevice-0.1.13-w279yc46.mjs +0 -1
- package/dist/chunks/upgrade-0.1.13-dce1xd29.mjs +0 -1
- package/dist/chunks/usage-0.1.13-mr2bn5g6.mjs +0 -1
- package/dist/chunks/util-0.1.13-ef9r7w41.mjs +0 -1
- package/dist/chunks/utils-0.1.13-03dvz81t.mjs +0 -1
- package/dist/chunks/vim-0.1.13-3x0ehdme.mjs +0 -1
- package/dist/chunks/watcher-0.1.13-yzxxvgz3.mjs +0 -1
- package/dist/chunks/worktree-0.1.13-kdhzfvjx.mjs +0 -1
- package/dist/chunks/worktreeModeEnabled-0.1.13-d4t06wcm.mjs +0 -1
- /package/dist/chunks/{cli-0.1.13-gs7rcvne.mjs → cli-0.1.14-cahvg3jq.mjs} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{Qa as DY}from"./cli-0.1.14-tsth8deg.mjs";import{jb as qY}from"./cli-0.1.14-9kxzs20h.mjs";import{Rg as X9,Sg as RW}from"./cli-0.1.14-ktz3cgwa.mjs";import{$p as WZ,As as xZ,Bo as UZ,Bs as u0,By as b0,Cs as m0,Ds as c0,ED as HY,Eo as EZ,Es as g0,Ey as I0,FD as gQ,Fo as h0,Fs as pZ,Fy as TZ,GH as C0,Gs as uZ,Hs as d0,Is as l0,JD as i,Jm as Z0,Js as a0,Jy as n9,KN as q9,Km as K0,Ks as n0,LD as fW,Lm as FZ,Ls as i0,Mm as G0,Ms as r0,NH as J9,Ns as o0,Os as s0,PH as H9,Ps as t0,Qs as GQ,St as W9,Up as CY,VH as N9,Vp as zW,Vt as TW,WG as aY,WN as D9,Wn as JY,Wp as TY,XJ as T0,Xn as cQ,Xo as Q9,Xp as RY,Yp as jZ,ZG as PW,Zo as CW,Zp as rZ,_H as wZ,_J as i9,_p as fY,aL as B9,aq as oZ,bO as LY,bq as SY,cq as hY,dq as AY,eG as U9,gG as E9,hH as SZ,iv as F0,jL as L9,jv as l9,kG as y9,lH as s,lL as z9,lx as k0,mF as V9,mx as XQ,nF as SW,oO as zY,pL as kW,rG as dW,rH as XZ,sy as M0,ty as a9,vH as hZ,wJ as NY,xF as K9,xN as BY,yF as G9,yJ as dQ,yN as lQ,yk as O9,zF as hW,zk as gW,zs as p0}from"./cli-0.1.14-j5sbzwhy.mjs";import{ER as $0,FR as g9}from"./cli-0.1.14-dqads3y3.mjs";import{ES as y0,FS as P0,GS as c9,MS as j0,NS as d9,qS as E0,rS as m9}from"./cli-0.1.14-w6nzk5dc.mjs";import{AU as p,CU as F,QS as p9,fV as u9}from"./cli-0.1.14-seq2fm2d.mjs";import{DV as a,EV as E,FV as M,GV as J0}from"./cli-0.1.14-hjktwgtk.mjs";import{HV as x9}from"./cli-0.1.14-harz1d9d.mjs";import{FW as eY,SW as bW,sW as sY,tW as tY,uW as MW}from"./cli-0.1.14-0x3m90bk.mjs";import{TW as EY,XW as GW}from"./cli-0.1.14-jpe9sxch.mjs";import{B2 as lY,V0 as dY,Z0 as EW,y3 as yW}from"./cli-0.1.14-a6kwmqhz.mjs";import{J5 as GY,J6 as A9,L5 as mQ,O7 as CZ,Q7 as h9,Q9 as w9,R5 as _0,T7 as _9,U5 as f9,X9 as cW,_5 as e,a$ as gY,d6 as w0,e6 as vZ,f6 as S9,g7 as uW,j$ as UW,n8 as mW,q8 as UY,v8 as KW}from"./cli-0.1.14-2f7s5xbd.mjs";import{oca as Y,pca as k,qca as GZ,rca as q,sca as OZ}from"./cli-0.1.14-kmsvd61a.mjs";import{Bca as B0,Cca as L0,Dca as z0,Eca as q0,Hca as D0,Ica as v0,Uca as A0,_ca as R9,vca as uY,wca as wW,yca as IZ}from"./cli-0.1.14-cdby401e.mjs";import{jda as mY,kda as cY,mda as OW}from"./cli-0.1.14-442a367x.mjs";import{Ida as tQ,xda as vY}from"./cli-0.1.14-z8j2n955.mjs";import{Wda as O0,cea as U0,gea as k9}from"./cli-0.1.14-mgcmwvcn.mjs";import{yea as d,zea as _Z}from"./cli-0.1.14-t3fga5je.mjs";import{Cea as OY,Eea as VW,Qea as XY,Yea as v9,Zea as aZ,cfa as gZ,efa as ZZ,ffa as VY,ifa as PZ,wfa as b,zfa as KZ}from"./cli-0.1.14-2mzb5ath.mjs";import{Pfa as KY,Tfa as uQ}from"./cli-0.1.14-whe4bxfr.mjs";import{Bha as Y0,Cha as wY,Kia as pY,aka as MY,bka as zZ,cka as bY,eka as IY,jla as oY,mla as BZ,vha as NZ}from"./cli-0.1.14-r46jh9af.mjs";import{Zla as N0,ama as fZ,bma as AZ,cma as sZ}from"./cli-0.1.14-qn4ftczz.mjs";var QQ={};fZ(QQ,{selectableUserMessagesFilter:()=>S0,messagesAfterAreOnlySynthetic:()=>YQ,MessageSelector:()=>o9});import{randomUUID as r9}from"crypto";import*as QZ from"path";function R0(Q){return Q.type==="text"}function RZ(Q){return Q==="summarize"||Q==="summarize_up_to"}function o9({messages:Q,onPreRestore:Z,onRestoreMessage:W,onRestoreCode:X,onSummarize:V,onClose:J,preselectedMessage:K}){let H=T0((U)=>U.fileHistory),[B,z]=I.useState(void 0),G=b0(),L=I.useMemo(r9,[]),w=I.useMemo(()=>[...Q.filter(S0),{...s({content:""}),uuid:L}],[Q,L]),[v,_]=I.useState(w.length-1),P=Math.max(0,Math.min(v-Math.floor(bZ/2),w.length-bZ)),C=w.length>1,[D,$]=I.useState(K),[y,T]=I.useState(void 0);I.useEffect(()=>{if(!K||!G)return;let U=!1;return TZ(H,K.uuid).then((f)=>{if(!U)T(f)}),()=>{U=!0}},[K,G,H]);let[O,j]=I.useState(!1),[l,n]=I.useState(null),[S,m]=I.useState("both"),[g,x]=I.useState(""),[A,N]=I.useState("");function R(U){let f=U?[{value:"both",label:"Restore code and conversation"},{value:"conversation",label:"Restore conversation"},{value:"code",label:"Restore code"}]:[{value:"conversation",label:"Restore conversation"}],u={type:"input",placeholder:"add context (optional)",initialValue:"",allowEmptySubmitToCancel:!0,showLabelWithValue:!0,labelValueSeparator:": "};return f.push({value:"summarize",label:"Summarize from here",...u,onChange:x}),f.push({value:"nevermind",label:"Never mind"}),f}I.useEffect(()=>{d("tengu_message_selector_opened",{})},[]);async function h(U){Z(),j(!0);try{await W(U),j(!1),J()}catch(f){e(f),j(!1),z(`Failed to restore the conversation:
|
|
2
2
|
${f}`)}}async function r(U){let f=Q.indexOf(U),u=Q.length-1-f;if(d("tengu_message_selector_selected",{index_from_end:u,message_type:U.type,is_current_prompt:!1}),!Q.includes(U)){J();return}if(!G){await h(U);return}let c=await TZ(H,U.uuid);$(U),T(c)}async function t(U){if(d("tengu_message_selector_restore_option_selected",{option:U}),!D){z("Message not found.");return}if(U==="nevermind"){if(K)J();else $(void 0);return}if(RZ(U)){Z(),j(!0),n(U),z(void 0);try{let c=U==="summarize_up_to"?"up_to":"from",YZ=(c==="up_to"?A:g).trim()||void 0;await V(D,YZ,c),j(!1),n(null),$(void 0),J()}catch(c){e(c),j(!1),n(null),$(void 0),z(`Failed to summarize:
|
|
3
3
|
${c}`)}return}Z(),j(!0),z(void 0);let f=null,u=null;if(U==="code"||U==="both")try{await X(D)}catch(c){f=c,e(f)}if(U==="conversation"||U==="both")try{await W(D)}catch(c){u=c,e(u)}if(j(!1),$(void 0),u&&f)z(`Failed to restore the conversation and code:
|
|
4
4
|
${u}
|
|
@@ -6,7 +6,7 @@ ${f}`);else if(u)z(`Failed to restore the conversation:
|
|
|
6
6
|
${u}`);else if(f)z(`Failed to restore the code:
|
|
7
7
|
${f}`);else J()}let Q0=$0(),$9=I.useCallback(()=>{if(D&&!K){$(void 0);return}d("tengu_message_selector_cancelled",{}),J()},[J,D,K]),j9=I.useCallback(()=>_((U)=>Math.max(0,U-1)),[]),F9=I.useCallback(()=>_((U)=>Math.min(w.length-1,U+1)),[w.length]),M9=I.useCallback(()=>_(0),[]),b9=I.useCallback(()=>_(w.length-1),[w.length]),I9=I.useCallback(()=>{let U=w[v];if(U)r(U)},[w,v,r]);y0("confirm:no",$9,{context:"Confirmation",isActive:!D}),P0({"messageSelector:up":j9,"messageSelector:down":F9,"messageSelector:top":M9,"messageSelector:bottom":b9,"messageSelector:select":I9},{context:"MessageSelector",isActive:!O&&!B&&!D&&C});let[W0,X0]=I.useState({});I.useEffect(()=>{async function U(){if(!G)return;Promise.all(w.map(async(f,u)=>{if(f.uuid!==L){let c=I0(H,f.uuid),YZ=w.at(u+1),DZ=c?ZQ(Q,f.uuid,YZ?.uuid!==L?YZ?.uuid:void 0):void 0;if(DZ!==void 0)X0((o)=>({...o,[u]:DZ}));else X0((o)=>({...o,[u]:void 0}))}}))}U()},[w,Q,L,H,G]);let qZ=G&&y?.filesChanged&&y.filesChanged.length>0,C9=!B&&!D&&!K&&C;return M(p,{flexDirection:"column",width:"100%",children:[E(j0,{color:"suggestion"}),M(p,{flexDirection:"column",marginX:1,gap:1,children:[E(F,{bold:!0,color:"suggestion",children:"Rewind"}),B&&E(a,{children:M(F,{color:"error",children:["Error: ",B]})}),!C&&E(a,{children:E(F,{children:"Nothing to rewind to yet."})}),!B&&D&&C&&M(a,{children:[M(F,{children:["Confirm you want to restore"," ",!y&&"the conversation ","to the point before you sent this message:"]}),M(p,{flexDirection:"column",paddingLeft:1,borderStyle:"single",borderRight:!1,borderTop:!1,borderBottom:!1,borderLeft:!0,borderLeftDimColor:!0,children:[E(H0,{userMessage:D,color:"text",isCurrent:!1}),M(F,{dimColor:!0,children:["(",U0(new Date(D.timestamp)),")"]})]}),E(t9,{selectedRestoreOption:S,canRestoreCode:!!qZ,diffStatsForRestore:y}),O&&RZ(l)?M(p,{flexDirection:"row",gap:1,children:[E(M0,{}),E(F,{children:"Summarizing…"})]}):E(F0,{isDisabled:O,options:R(!!qZ),defaultFocusValue:qZ?"both":"conversation",onFocus:(U)=>m(U),onChange:(U)=>t(U),onCancel:()=>K?J():$(void 0)}),qZ&&E(p,{marginBottom:1,children:M(F,{dimColor:!0,children:[vZ.warning," Rewinding does not affect files edited manually or via bash."]})})]}),C9&&M(a,{children:[G?E(F,{children:"Restore the code and/or conversation to the point before…"}):E(F,{children:"Restore and fork the conversation to the point before…"}),E(p,{width:"100%",flexDirection:"column",children:w.slice(P,P+bZ).map((U,f)=>{let u=P+f,c=u===v,YZ=U.uuid===L,DZ=u in W0,o=W0[u],MZ=o?.filesChanged&&o.filesChanged.length;return M(p,{height:G?3:2,overflow:"hidden",width:"100%",flexDirection:"row",children:[E(p,{width:2,minWidth:2,children:c?M(F,{color:"permission",bold:!0,children:[vZ.pointer," "]}):E(F,{children:" "})}),M(p,{flexDirection:"column",children:[E(p,{flexShrink:1,height:1,overflow:"hidden",children:E(H0,{userMessage:U,color:c?"suggestion":void 0,isCurrent:YZ,paddingRight:10})}),G&&DZ&&E(p,{height:1,flexDirection:"row",children:o?E(a,{children:E(F,{dimColor:!c,color:"inactive",children:MZ?M(a,{children:[MZ===1&&o.filesChanged[0]?`${QZ.basename(o.filesChanged[0])} `:`${MZ} files changed `,E(f0,{diffStats:o})]}):E(a,{children:"No code changes"})})}):M(F,{dimColor:!0,color:"warning",children:[vZ.warning," No code restore"]})})]})]},U.uuid)})})]}),!D&&E(F,{dimColor:!0,italic:!0,children:Q0.pending?M(a,{children:["Press ",Q0.keyName," again to exit"]}):M(a,{children:[!B&&C&&"Enter to continue · ","Esc to exit"]})})]})]})}function s9(Q){switch(Q){case"summarize":return"Messages after this point will be summarized.";case"summarize_up_to":return"Preceding messages will be summarized. This and subsequent messages will remain unchanged — you will stay at the end of the conversation.";case"both":case"conversation":return"The conversation will be forked.";case"code":case"nevermind":return"The conversation will be unchanged."}}function t9(Q){let Z=VZ.c(11),{selectedRestoreOption:W,canRestoreCode:X,diffStatsForRestore:V}=Q,J=X&&(W==="both"||W==="code"),K;if(Z[0]!==W)K=s9(W),Z[0]=W,Z[1]=K;else K=Z[1];let H;if(Z[2]!==K)H=E(F,{dimColor:!0,children:K}),Z[2]=K,Z[3]=H;else H=Z[3];let B;if(Z[4]!==V||Z[5]!==W||Z[6]!==J)B=!RZ(W)&&(J?E(e9,{diffStatsForRestore:V}):E(F,{dimColor:!0,children:"The code will be unchanged."})),Z[4]=V,Z[5]=W,Z[6]=J,Z[7]=B;else B=Z[7];let z;if(Z[8]!==H||Z[9]!==B)z=M(p,{flexDirection:"column",children:[H,B]}),Z[8]=H,Z[9]=B,Z[10]=z;else z=Z[10];return z}function e9(Q){let Z=VZ.c(14),{diffStatsForRestore:W}=Q;if(W===void 0)return;if(!W.filesChanged||!W.filesChanged[0]){let H;if(Z[0]===Symbol.for("react.memo_cache_sentinel"))H=E(F,{dimColor:!0,children:"The code has not changed (nothing will be restored)."}),Z[0]=H;else H=Z[0];return H}let X=W.filesChanged.length,V;if(X===1){let H;if(Z[1]!==W.filesChanged[0])H=QZ.basename(W.filesChanged[0]||""),Z[1]=W.filesChanged[0],Z[2]=H;else H=Z[2];V=H}else if(X===2){let H;if(Z[3]!==W.filesChanged[0])H=QZ.basename(W.filesChanged[0]||""),Z[3]=W.filesChanged[0],Z[4]=H;else H=Z[4];let B=H,z;if(Z[5]!==W.filesChanged[1])z=QZ.basename(W.filesChanged[1]||""),Z[5]=W.filesChanged[1],Z[6]=z;else z=Z[6];V=`${B} and ${z}`}else{let H;if(Z[7]!==W.filesChanged[0])H=QZ.basename(W.filesChanged[0]||""),Z[7]=W.filesChanged[0],Z[8]=H;else H=Z[8];V=`${H} and ${W.filesChanged.length-1} other files`}let J;if(Z[9]!==W)J=E(f0,{diffStats:W}),Z[9]=W,Z[10]=J;else J=Z[10];let K;if(Z[11]!==V||Z[12]!==J)K=E(a,{children:M(F,{dimColor:!0,children:["The code will be restored"," ",J," in ",V,"."]})}),Z[11]=V,Z[12]=J,Z[13]=K;else K=Z[13];return K}function f0(Q){let Z=VZ.c(7),{diffStats:W}=Q;if(!W||!W.filesChanged)return;let X;if(Z[0]!==W.insertions)X=M(F,{color:"diffAddedWord",children:["+",W.insertions," "]}),Z[0]=W.insertions,Z[1]=X;else X=Z[1];let V;if(Z[2]!==W.deletions)V=M(F,{color:"diffRemovedWord",children:["-",W.deletions]}),Z[2]=W.deletions,Z[3]=V;else V=Z[3];let J;if(Z[4]!==X||Z[5]!==V)J=M(a,{children:[X,V]}),Z[4]=X,Z[5]=V,Z[6]=J;else J=Z[6];return J}function H0(Q){let Z=VZ.c(31),{userMessage:W,color:X,dimColor:V,isCurrent:J,paddingRight:K}=Q,{columns:H}=E0();if(J){let T;if(Z[0]!==X||Z[1]!==V)T=E(p,{width:"100%",children:E(F,{italic:!0,color:X,dimColor:V,children:"(current)"})}),Z[0]=X,Z[1]=V,Z[2]=T;else T=Z[2];return T}let B=W.message.content,z=typeof B==="string"?null:B[B.length-1],G,L,w,v,_,P,C,D;if(Z[3]!==X||Z[4]!==H||Z[5]!==B||Z[6]!==V||Z[7]!==z||Z[8]!==K){D=Symbol.for("react.early_return_sentinel");Z:{let T=typeof B==="string"?B.trim():z&&R0(z)?z.text.trim():"(no prompt)",O=_0(T);if(C0(O)){let j;if(Z[17]!==X||Z[18]!==V)j=E(p,{flexDirection:"row",width:"100%",children:E(F,{italic:!0,color:X,dimColor:V,children:"((empty message))"})}),Z[17]=X,Z[18]=V,Z[19]=j;else j=Z[19];D=j;break Z}if(O.includes("<bash-input>")){let j=XZ(O,"bash-input");if(j){let l;if(Z[20]===Symbol.for("react.memo_cache_sentinel"))l=E(F,{color:"bashBorder",children:"!"}),Z[20]=l;else l=Z[20];D=M(p,{flexDirection:"row",width:"100%",children:[l,M(F,{color:X,dimColor:V,children:[" ",j]})]});break Z}}if(O.includes(`<${IZ}>`)){let j=XZ(O,IZ),l=XZ(O,"command-args"),n=XZ(O,"skill-format")==="true";if(j)if(n){D=E(p,{flexDirection:"row",width:"100%",children:M(F,{color:X,dimColor:V,children:["Skill(",j,")"]})});break Z}else{D=E(p,{flexDirection:"row",width:"100%",children:M(F,{color:X,dimColor:V,children:["/",j," ",l]})});break Z}}L=p,P="row",C="100%",G=F,w=X,v=V,_=K?O0(O,H-K,!0):O.slice(0,500).split(`
|
|
8
8
|
`).slice(0,4).join(`
|
|
9
|
-
`)}Z[3]=X,Z[4]=H,Z[5]=B,Z[6]=V,Z[7]=z,Z[8]=K,Z[9]=G,Z[10]=L,Z[11]=w,Z[12]=v,Z[13]=_,Z[14]=P,Z[15]=C,Z[16]=D}else G=Z[9],L=Z[10],w=Z[11],v=Z[12],_=Z[13],P=Z[14],C=Z[15],D=Z[16];if(D!==Symbol.for("react.early_return_sentinel"))return D;let $;if(Z[21]!==G||Z[22]!==w||Z[23]!==v||Z[24]!==_)$=E(G,{color:w,dimColor:v,children:_}),Z[21]=G,Z[22]=w,Z[23]=v,Z[24]=_,Z[25]=$;else $=Z[25];let y;if(Z[26]!==L||Z[27]!==P||Z[28]!==C||Z[29]!==$)y=E(L,{flexDirection:P,width:C,children:$}),Z[26]=L,Z[27]=P,Z[28]=C,Z[29]=$,Z[30]=y;else y=Z[30];return y}function ZQ(Q,Z,W){let X=Q.findIndex((B)=>B.uuid===Z);if(X===-1)return;let V=W?Q.findIndex((B)=>B.uuid===W):Q.length;if(V===-1)V=Q.length;let J=[],K=0,H=0;for(let B=X+1;B<V;B++){let z=Q[B];if(!z||!hZ(z))continue;let G=z.toolUseResult;if(!G||!G.filePath||!G.structuredPatch)continue;if(!J.includes(G.filePath))J.push(G.filePath);try{if("type"in G&&G.type==="create")K+=G.content.split(/\r?\n/).length;else for(let L of G.structuredPatch){let w=CZ(L.lines,(_)=>_.startsWith("+")),v=CZ(L.lines,(_)=>_.startsWith("-"));K+=w,H+=v}}catch{continue}}return{filesChanged:J,insertions:K,deletions:H}}function S0(Q){if(Q.type!=="user")return!1;if(Array.isArray(Q.message.content)&&Q.message.content[0]?.type==="tool_result")return!1;if(SZ(Q))return!1;if(Q.isMeta)return!1;if(Q.isCompactSummary||Q.isVisibleInTranscriptOnly)return!1;let Z=Q.message.content,W=typeof Z==="string"?null:Z[Z.length-1],X=typeof Z==="string"?Z.trim():W&&R0(W)?W.text.trim():"";if(X.indexOf(`<${z0}>`)!==-1||X.indexOf(`<${q0}>`)!==-1||X.indexOf(`<${B0}>`)!==-1||X.indexOf(`<${L0}>`)!==-1||X.indexOf(`<${v0}>`)!==-1||X.indexOf(`<${D0}>`)!==-1||X.indexOf(`<${A0}`)!==-1)return!1;return!0}function YQ(Q,Z){for(let W=Z+1;W<Q.length;W++){let X=Q[W];if(!X)continue;if(SZ(X))continue;if(hZ(X))continue;if(X.type==="progress")continue;if(X.type==="system")continue;if(X.type==="attachment")continue;if(X.type==="user"&&X.isMeta)continue;if(X.type==="assistant"){let V=X.message.content;if(Array.isArray(V)){if(V.some((K)=>K.type==="text"&&K.text.trim()||K.type==="tool_use"))return!1}continue}if(X.type==="user")return!1}return!0}var VZ,I,bZ=7;var WQ=AZ(()=>{S9();_Z();i9();n9();w0();g9();u9();c9();f9();wZ();l9();a9();m9();R9();h9();k9();d9();J0();VZ=N0(p9(),1),I=N0(x9(),1)});var WW={};fZ(WW,{getCronJitterConfig:()=>QW});function QW(){let Q=vY("tengu_kairos_cron_config",WZ,eQ),Z=YW().safeParse(Q);return Z.success?Z.data:WZ}var eQ=60000,dZ=1800000,ZW=2592000000,YW;var XW=AZ(()=>{GZ();tQ();AY();OZ();YW=q(()=>Y.object({recurringFrac:Y.number().min(0).max(1),recurringCapMs:Y.number().int().min(0).max(dZ),oneShotMaxMs:Y.number().int().min(0).max(dZ),oneShotFloorMs:Y.number().int().min(0).max(dZ),oneShotMinuteMod:Y.number().int().min(1).max(60),recurringMaxAgeMs:Y.number().int().min(0).max(ZW).default(WZ.recurringMaxAgeMs)}).refine((Q)=>Q.oneShotFloorMs<=Q.oneShotMaxMs))});import{mkdir as JW,readFile as HW,unlink as yY,writeFile as nZ}from"fs/promises";import{dirname as NW,join as PY}from"path";function HZ(Q){return PY(Q??wY(),BW)}async function $Y(Q){let Z;try{Z=await HW(HZ(Q),"utf8")}catch{return}let W=LW().safeParse(UY(Z,!1));return W.success?W.data:void 0}async function _Y(Q,Z){let W=HZ(Z),X=ZZ(Q);try{return await nZ(W,X,{flag:"wx"}),!0}catch(V){let J=aZ(V);if(J==="EEXIST")return!1;if(J==="ENOENT"){await JW(NW(W),{recursive:!0});try{return await nZ(W,X,{flag:"wx"}),!0}catch(K){if(aZ(K)==="EEXIST")return!1;throw K}}throw V}}function lZ(Q){$Z?.(),$Z=OY(async()=>{await LZ(Q)})}async function iZ(Q){let Z=Q?.dir,W=Q?.lockIdentity??NZ(),X={sessionId:W,pid:process.pid,acquiredAt:Date.now()};if(await _Y(X,Z))return JZ=void 0,lZ(Q),b(`[ScheduledTasks] acquired scheduler lock (PID ${process.pid})`),!0;let V=await $Y(Z);if(V?.sessionId===W){if(V.pid!==process.pid)await nZ(HZ(Z),ZZ(X)),lZ(Q);return!0}if(V&&EY(V.pid)){if(JZ!==V.sessionId)JZ=V.sessionId,b(`[ScheduledTasks] scheduler lock held by session ${V.sessionId} (PID ${V.pid})`);return!1}if(V)b(`[ScheduledTasks] recovering stale scheduler lock from PID ${V.pid}`);if(await yY(HZ(Z)).catch(()=>{}),await _Y(X,Z))return JZ=void 0,lZ(Q),!0;return!1}async function LZ(Q){$Z?.(),$Z=void 0,JZ=void 0;let Z=Q?.dir,W=Q?.lockIdentity??NZ(),X=await $Y(Z);if(!X||X.sessionId!==W)return;try{await yY(HZ(Z)),b("[ScheduledTasks] released scheduler lock")}catch{}}var BW,LW,$Z,JZ;var jY=AZ(()=>{GZ();BZ();VW();KZ();gZ();GW();KW();OZ();PZ();BW=PY(".claudio","scheduled_tasks.lock"),LW=q(()=>Y.object({sessionId:Y.string(),pid:Y.number(),acquiredAt:Y.number()}))});var AW={};fZ(AW,{isRecurringTaskAged:()=>kY,createCronScheduler:()=>vW,buildMissedTaskNotification:()=>xY});function kY(Q,Z,W){if(W===0)return!1;return Boolean(Q.recurring&&!Q.permanent&&Z-Q.createdAt>=W)}function vW(Q){let{onFire:Z,isLoading:W,assistantMode:X=!1,onFireTask:V,onMissed:J,dir:K,lockIdentity:H,getJitterConfig:B,isKilled:z,filter:G}=Q,L=K||H?{dir:K,lockIdentity:H}:void 0,w=[],v=new Map,_=new Set,P=new Set,C=null,D=null,$=null,y=null,T=!1,O=!1;async function j(S){let m=await RY(K);if(T)return;if(w=m,!S)return;let g=Date.now(),x=hY(m,g).filter((A)=>!A.recurring&&!_.has(A.id)&&(!G||G(A)));if(x.length>0){for(let A of x)_.add(A.id),v.set(A.id,1/0);if(d("tengu_scheduled_task_missed",{count:x.length,taskIds:x.map((A)=>A.id).join(",")}),J)J(x);else Z(xY(x));rZ(x.map((A)=>A.id),K).catch((A)=>b(`[ScheduledTasks] failed to remove missed tasks: ${A}`)),b(`[ScheduledTasks] surfaced ${x.length} missed one-shot task(s)`)}}function l(){if(z?.())return;if(W()&&!X)return;let S=Date.now(),m=new Set,g=[],x=B?.()??WZ;function A(N,R){if(G&&!G(N))return;if(m.add(N.id),P.has(N.id))return;let h=v.get(N.id);if(h===void 0)h=N.recurring?oZ(N.cron,N.lastFiredAt??N.createdAt,N.id,x)??1/0:SY(N.cron,N.createdAt,N.id,x)??1/0,v.set(N.id,h),b(`[ScheduledTasks] scheduled ${N.id} for ${h===1/0?"never":new Date(h).toISOString()}`);if(S<h)return;if(b(`[ScheduledTasks] firing ${N.id}${N.recurring?" (recurring)":""}`),d("tengu_scheduled_task_fire",{recurring:N.recurring??!1,taskId:N.id}),V)V(N);else Z(N.prompt);let r=kY(N,S,x.recurringMaxAgeMs);if(r){let t=Math.floor((S-N.createdAt)/1000/60/60);b(`[ScheduledTasks] recurring task ${N.id} aged out (${t}h since creation), deleting after final fire`),d("tengu_scheduled_task_expired",{taskId:N.id,ageHours:t})}if(N.recurring&&!r){let t=oZ(N.cron,S,N.id,x)??1/0;if(v.set(N.id,t),!R)g.push(N.id)}else if(R)IY([N.id]),v.delete(N.id);else P.add(N.id),rZ([N.id],K).catch((t)=>b(`[ScheduledTasks] failed to remove task ${N.id}: ${t}`)).finally(()=>P.delete(N.id)),v.delete(N.id)}if(O){for(let N of w)A(N,!1);if(g.length>0){for(let N of g)P.add(N);fY(g,S,K).catch((N)=>b(`[ScheduledTasks] failed to persist lastFiredAt: ${N}`)).finally(()=>{for(let N of g)P.delete(N)})}}if(K===void 0)for(let N of bY())A(N,!0);if(m.size===0){v.clear();return}for(let N of v.keys())if(!m.has(N))v.delete(N)}async function n(){if(T)return;if(C)clearInterval(C),C=null;let{default:S}=await import("./index-0.1.
|
|
9
|
+
`)}Z[3]=X,Z[4]=H,Z[5]=B,Z[6]=V,Z[7]=z,Z[8]=K,Z[9]=G,Z[10]=L,Z[11]=w,Z[12]=v,Z[13]=_,Z[14]=P,Z[15]=C,Z[16]=D}else G=Z[9],L=Z[10],w=Z[11],v=Z[12],_=Z[13],P=Z[14],C=Z[15],D=Z[16];if(D!==Symbol.for("react.early_return_sentinel"))return D;let $;if(Z[21]!==G||Z[22]!==w||Z[23]!==v||Z[24]!==_)$=E(G,{color:w,dimColor:v,children:_}),Z[21]=G,Z[22]=w,Z[23]=v,Z[24]=_,Z[25]=$;else $=Z[25];let y;if(Z[26]!==L||Z[27]!==P||Z[28]!==C||Z[29]!==$)y=E(L,{flexDirection:P,width:C,children:$}),Z[26]=L,Z[27]=P,Z[28]=C,Z[29]=$,Z[30]=y;else y=Z[30];return y}function ZQ(Q,Z,W){let X=Q.findIndex((B)=>B.uuid===Z);if(X===-1)return;let V=W?Q.findIndex((B)=>B.uuid===W):Q.length;if(V===-1)V=Q.length;let J=[],K=0,H=0;for(let B=X+1;B<V;B++){let z=Q[B];if(!z||!hZ(z))continue;let G=z.toolUseResult;if(!G||!G.filePath||!G.structuredPatch)continue;if(!J.includes(G.filePath))J.push(G.filePath);try{if("type"in G&&G.type==="create")K+=G.content.split(/\r?\n/).length;else for(let L of G.structuredPatch){let w=CZ(L.lines,(_)=>_.startsWith("+")),v=CZ(L.lines,(_)=>_.startsWith("-"));K+=w,H+=v}}catch{continue}}return{filesChanged:J,insertions:K,deletions:H}}function S0(Q){if(Q.type!=="user")return!1;if(Array.isArray(Q.message.content)&&Q.message.content[0]?.type==="tool_result")return!1;if(SZ(Q))return!1;if(Q.isMeta)return!1;if(Q.isCompactSummary||Q.isVisibleInTranscriptOnly)return!1;let Z=Q.message.content,W=typeof Z==="string"?null:Z[Z.length-1],X=typeof Z==="string"?Z.trim():W&&R0(W)?W.text.trim():"";if(X.indexOf(`<${z0}>`)!==-1||X.indexOf(`<${q0}>`)!==-1||X.indexOf(`<${B0}>`)!==-1||X.indexOf(`<${L0}>`)!==-1||X.indexOf(`<${v0}>`)!==-1||X.indexOf(`<${D0}>`)!==-1||X.indexOf(`<${A0}`)!==-1)return!1;return!0}function YQ(Q,Z){for(let W=Z+1;W<Q.length;W++){let X=Q[W];if(!X)continue;if(SZ(X))continue;if(hZ(X))continue;if(X.type==="progress")continue;if(X.type==="system")continue;if(X.type==="attachment")continue;if(X.type==="user"&&X.isMeta)continue;if(X.type==="assistant"){let V=X.message.content;if(Array.isArray(V)){if(V.some((K)=>K.type==="text"&&K.text.trim()||K.type==="tool_use"))return!1}continue}if(X.type==="user")return!1}return!0}var VZ,I,bZ=7;var WQ=AZ(()=>{S9();_Z();i9();n9();w0();g9();u9();c9();f9();wZ();l9();a9();m9();R9();h9();k9();d9();J0();VZ=N0(p9(),1),I=N0(x9(),1)});var WW={};fZ(WW,{getCronJitterConfig:()=>QW});function QW(){let Q=vY("tengu_kairos_cron_config",WZ,eQ),Z=YW().safeParse(Q);return Z.success?Z.data:WZ}var eQ=60000,dZ=1800000,ZW=2592000000,YW;var XW=AZ(()=>{GZ();tQ();AY();OZ();YW=q(()=>Y.object({recurringFrac:Y.number().min(0).max(1),recurringCapMs:Y.number().int().min(0).max(dZ),oneShotMaxMs:Y.number().int().min(0).max(dZ),oneShotFloorMs:Y.number().int().min(0).max(dZ),oneShotMinuteMod:Y.number().int().min(1).max(60),recurringMaxAgeMs:Y.number().int().min(0).max(ZW).default(WZ.recurringMaxAgeMs)}).refine((Q)=>Q.oneShotFloorMs<=Q.oneShotMaxMs))});import{mkdir as JW,readFile as HW,unlink as yY,writeFile as nZ}from"fs/promises";import{dirname as NW,join as PY}from"path";function HZ(Q){return PY(Q??wY(),BW)}async function $Y(Q){let Z;try{Z=await HW(HZ(Q),"utf8")}catch{return}let W=LW().safeParse(UY(Z,!1));return W.success?W.data:void 0}async function _Y(Q,Z){let W=HZ(Z),X=ZZ(Q);try{return await nZ(W,X,{flag:"wx"}),!0}catch(V){let J=aZ(V);if(J==="EEXIST")return!1;if(J==="ENOENT"){await JW(NW(W),{recursive:!0});try{return await nZ(W,X,{flag:"wx"}),!0}catch(K){if(aZ(K)==="EEXIST")return!1;throw K}}throw V}}function lZ(Q){$Z?.(),$Z=OY(async()=>{await LZ(Q)})}async function iZ(Q){let Z=Q?.dir,W=Q?.lockIdentity??NZ(),X={sessionId:W,pid:process.pid,acquiredAt:Date.now()};if(await _Y(X,Z))return JZ=void 0,lZ(Q),b(`[ScheduledTasks] acquired scheduler lock (PID ${process.pid})`),!0;let V=await $Y(Z);if(V?.sessionId===W){if(V.pid!==process.pid)await nZ(HZ(Z),ZZ(X)),lZ(Q);return!0}if(V&&EY(V.pid)){if(JZ!==V.sessionId)JZ=V.sessionId,b(`[ScheduledTasks] scheduler lock held by session ${V.sessionId} (PID ${V.pid})`);return!1}if(V)b(`[ScheduledTasks] recovering stale scheduler lock from PID ${V.pid}`);if(await yY(HZ(Z)).catch(()=>{}),await _Y(X,Z))return JZ=void 0,lZ(Q),!0;return!1}async function LZ(Q){$Z?.(),$Z=void 0,JZ=void 0;let Z=Q?.dir,W=Q?.lockIdentity??NZ(),X=await $Y(Z);if(!X||X.sessionId!==W)return;try{await yY(HZ(Z)),b("[ScheduledTasks] released scheduler lock")}catch{}}var BW,LW,$Z,JZ;var jY=AZ(()=>{GZ();BZ();VW();KZ();gZ();GW();KW();OZ();PZ();BW=PY(".claudio","scheduled_tasks.lock"),LW=q(()=>Y.object({sessionId:Y.string(),pid:Y.number(),acquiredAt:Y.number()}))});var AW={};fZ(AW,{isRecurringTaskAged:()=>kY,createCronScheduler:()=>vW,buildMissedTaskNotification:()=>xY});function kY(Q,Z,W){if(W===0)return!1;return Boolean(Q.recurring&&!Q.permanent&&Z-Q.createdAt>=W)}function vW(Q){let{onFire:Z,isLoading:W,assistantMode:X=!1,onFireTask:V,onMissed:J,dir:K,lockIdentity:H,getJitterConfig:B,isKilled:z,filter:G}=Q,L=K||H?{dir:K,lockIdentity:H}:void 0,w=[],v=new Map,_=new Set,P=new Set,C=null,D=null,$=null,y=null,T=!1,O=!1;async function j(S){let m=await RY(K);if(T)return;if(w=m,!S)return;let g=Date.now(),x=hY(m,g).filter((A)=>!A.recurring&&!_.has(A.id)&&(!G||G(A)));if(x.length>0){for(let A of x)_.add(A.id),v.set(A.id,1/0);if(d("tengu_scheduled_task_missed",{count:x.length,taskIds:x.map((A)=>A.id).join(",")}),J)J(x);else Z(xY(x));rZ(x.map((A)=>A.id),K).catch((A)=>b(`[ScheduledTasks] failed to remove missed tasks: ${A}`)),b(`[ScheduledTasks] surfaced ${x.length} missed one-shot task(s)`)}}function l(){if(z?.())return;if(W()&&!X)return;let S=Date.now(),m=new Set,g=[],x=B?.()??WZ;function A(N,R){if(G&&!G(N))return;if(m.add(N.id),P.has(N.id))return;let h=v.get(N.id);if(h===void 0)h=N.recurring?oZ(N.cron,N.lastFiredAt??N.createdAt,N.id,x)??1/0:SY(N.cron,N.createdAt,N.id,x)??1/0,v.set(N.id,h),b(`[ScheduledTasks] scheduled ${N.id} for ${h===1/0?"never":new Date(h).toISOString()}`);if(S<h)return;if(b(`[ScheduledTasks] firing ${N.id}${N.recurring?" (recurring)":""}`),d("tengu_scheduled_task_fire",{recurring:N.recurring??!1,taskId:N.id}),V)V(N);else Z(N.prompt);let r=kY(N,S,x.recurringMaxAgeMs);if(r){let t=Math.floor((S-N.createdAt)/1000/60/60);b(`[ScheduledTasks] recurring task ${N.id} aged out (${t}h since creation), deleting after final fire`),d("tengu_scheduled_task_expired",{taskId:N.id,ageHours:t})}if(N.recurring&&!r){let t=oZ(N.cron,S,N.id,x)??1/0;if(v.set(N.id,t),!R)g.push(N.id)}else if(R)IY([N.id]),v.delete(N.id);else P.add(N.id),rZ([N.id],K).catch((t)=>b(`[ScheduledTasks] failed to remove task ${N.id}: ${t}`)).finally(()=>P.delete(N.id)),v.delete(N.id)}if(O){for(let N of w)A(N,!1);if(g.length>0){for(let N of g)P.add(N);fY(g,S,K).catch((N)=>b(`[ScheduledTasks] failed to persist lastFiredAt: ${N}`)).finally(()=>{for(let N of g)P.delete(N)})}}if(K===void 0)for(let N of bY())A(N,!0);if(m.size===0){v.clear();return}for(let N of v.keys())if(!m.has(N))v.delete(N)}async function n(){if(T)return;if(C)clearInterval(C),C=null;let{default:S}=await import("./index-0.1.14-yjw9017n.mjs");if(T)return;if(O=await iZ(L).catch(()=>!1),T){if(O)O=!1,LZ(L);return}if(!O)$=setInterval(()=>{iZ(L).then((g)=>{if(T){if(g)LZ(L);return}if(g){if(O=!0,$)clearInterval($),$=null}}).catch((g)=>b(String(g),{level:"error"}))},DW),$.unref?.();j(!0);let m=TY(K);y=S.watch(m,{persistent:!1,ignoreInitial:!0,awaitWriteFinish:{stabilityThreshold:qW},ignorePermissionErrors:!0}),y.on("add",()=>void j(!1)),y.on("change",()=>void j(!1)),y.on("unlink",()=>{if(!T)w=[],v.clear()}),D=setInterval(l,FY),D.unref?.()}return{start(){if(T=!1,K!==void 0){b(`[ScheduledTasks] scheduler start() — dir=${K}, hasTasks=${jZ(K)}`),n();return}if(b(`[ScheduledTasks] scheduler start() — enabled=${zZ()}, hasTasks=${jZ()}`),!zZ()&&(X||jZ()))MY(!0);if(zZ()){n();return}C=setInterval((S)=>{if(zZ())S()},FY,n),C.unref?.()},stop(){if(T=!0,C)clearInterval(C),C=null;if(D)clearInterval(D),D=null;if($)clearInterval($),$=null;if(y?.close(),y=null,O)O=!1,LZ(L)},getNextFireTime(){let S=1/0;for(let m of v.values())if(m<S)S=m;return S===1/0?null:S}}}function xY(Q){let Z=Q.length>1,W=`The following one-shot scheduled task${Z?"s were":" was"} missed while Claude was not running. ${Z?"They have":"It has"} already been removed from .claudio/scheduled_tasks.json.
|
|
10
10
|
|
|
11
11
|
Do NOT execute ${Z?"these prompts":"this prompt"} yet. First use the AskUserQuestion tool to ask whether to run ${Z?"each one":"it"} now. Only execute if the user confirms.`,X=Q.map((V)=>{let J=`[${CY(V.cron)}, created ${new Date(V.createdAt).toLocaleString()}]`,K=(V.prompt.match(/`+/g)??[]).reduce((B,z)=>Math.max(B,z.length),0),H="`".repeat(Math.max(3,K+1));return`${J}
|
|
12
12
|
${H}
|
|
@@ -20,5 +20,5 @@ ${X.join(`
|
|
|
20
20
|
`);if(W===-1)break;let X=Q.slice(0,W);Q=Q.slice(W+1);let V=await this.processLine(X);if(V)GY("info","cli_stdin_message_parsed",{type:V.type}),yield V}}.bind(this);yield*Z();for await(let W of this.input)Q+=W,yield*Z();if(Q){let W=await this.processLine(Q);if(W)yield W}this.inputClosed=!0;for(let W of this.pendingRequests.values())W.reject(Error("Tool permission stream closed before response received"))}getPendingPermissionRequests(){return Array.from(this.pendingRequests.values()).map((Q)=>Q.request).filter((Q)=>Q.request.subtype==="can_use_tool")}setUnexpectedResponseCallback(Q){this.unexpectedResponseCallback=Q}injectControlResponse(Q){let Z=Q.response?.request_id;if(!Z)return;let W=this.pendingRequests.get(Z);if(!W)return;if(this.trackResolvedToolUseId(W.request),this.pendingRequests.delete(Z),this.write({type:"control_cancel_request",request_id:Z}),Q.response.subtype==="error")W.reject(Error(Q.response.error));else{let X=Q.response.response;if(W.schema)try{W.resolve(W.schema.parse(X))}catch(V){W.reject(V)}else W.resolve({})}}setOnControlRequestSent(Q){this.onControlRequestSent=Q}setOnControlRequestResolved(Q){this.onControlRequestResolved=Q}async processLine(Q){if(!Q)return;try{let Z=DY(VY(Q));if(Z.type==="keep_alive")return;if(Z.type==="update_environment_variables"){let W=Object.keys(Z.variables);for(let[X,V]of Object.entries(Z.variables))process.env[X]=V;b(`[structuredIO] applied update_environment_variables: ${W.join(", ")}`);return}if(Z.type==="control_response"){let W="uuid"in Z&&typeof Z.uuid==="string"?Z.uuid:void 0;if(W)JY(W,"completed");let X=this.pendingRequests.get(Z.response.request_id);if(!X){let K=(Z.response.subtype==="success"?Z.response.response:void 0)?.toolUseID;if(typeof K==="string"&&this.resolvedToolUseIds.has(K)){b(`Ignoring duplicate control_response for already-resolved toolUseID=${K} request_id=${Z.response.request_id}`);return}if(this.unexpectedResponseCallback)await this.unexpectedResponseCallback(Z);return}if(this.trackResolvedToolUseId(X.request),this.pendingRequests.delete(Z.response.request_id),X.request.request.subtype==="can_use_tool"&&this.onControlRequestResolved)this.onControlRequestResolved(Z.response.request_id);if(Z.response.subtype==="error"){X.reject(Error(Z.response.error));return}let V=Z.response.response;if(X.schema)try{X.resolve(X.schema.parse(V))}catch(J){X.reject(J)}else X.resolve({});if(this.replayUserMessages)return Z;return}if(Z.type!=="user"&&Z.type!=="control_request"&&Z.type!=="assistant"&&Z.type!=="system"){b(`Ignoring unknown message type: ${Z.type}`,{level:"warn"});return}if(Z.type==="control_request"){if(!Z.request)WY("Error: Missing request on control_request");return Z}if(Z.type==="assistant"||Z.type==="system")return Z;if(Z.message.role!=="user")WY(`Error: Expected message role 'user', got '${Z.message.role}'`);return Z}catch(Z){console.error(`Error parsing streaming input line: ${Q}: ${Z}`),process.exit(1)}}async write(Q){KY(QY(Q)+`
|
|
21
21
|
`)}async sendRequest(Q,Z,W,X=cZ()){let V={type:"control_request",request_id:X,request:Q};if(this.inputClosed)throw Error("Stream closed");if(W?.aborted)throw Error("Request aborted");if(this.outbound.enqueue(V),Q.subtype==="can_use_tool"&&this.onControlRequestSent)this.onControlRequestSent(V);let J=()=>{this.outbound.enqueue({type:"control_cancel_request",request_id:X});let K=this.pendingRequests.get(X);if(K)this.trackResolvedToolUseId(K.request),K.reject(new XY)};if(W)W.addEventListener("abort",J,{once:!0});try{return await new Promise((K,H)=>{this.pendingRequests.set(X,{request:{type:"control_request",request_id:X,request:Q},resolve:(B)=>{K(B)},reject:H,schema:Z})})}finally{if(W)W.removeEventListener("abort",J);this.pendingRequests.delete(X)}}createCanUseTool(Q){return async(Z,W,X,V,J,K)=>{let H=K??await NY(Z,W,X,V,J);if(H.behavior==="allow"||H.behavior==="deny")return H;let B=new AbortController,z=X.abortController.signal,G=()=>B.abort();z.addEventListener("abort",G,{once:!0});try{let L=sQ(Z.name,J,W,X,H.suggestions).then((P)=>({source:"hook",decision:P})),w=cZ();Q?.(iQ(Z,W,J,w));let v=this.sendRequest({subtype:"can_use_tool",tool_name:Z.name,input:W,permission_suggestions:H.suggestions,blocked_path:H.blockedPath,decision_reason:nQ(H.decisionReason),tool_use_id:J,agent_id:X.agentId},kZ(),B.signal,w).then((P)=>({source:"sdk",result:P})),_=await Promise.race([L,v]);if(_.source==="hook"){if(_.decision)return v.catch(()=>{}),B.abort(),_.decision;let P=await v;return yZ(P.result,Z,W,X)}return yZ(_.result,Z,W,X)}catch(L){return yZ({behavior:"deny",message:`Tool permission request failed: ${L}`,toolUseID:J},Z,W,X)}finally{if(this.getPendingPermissionRequests().length===0)qY("running");z.removeEventListener("abort",G)}}}createHookCallback(Q,Z){return{type:"callback",timeout:Z,callback:async(W,X,V)=>{try{return await this.sendRequest({subtype:"hook_callback",callback_id:Q,input:W,tool_use_id:X||void 0},BY(),V)}catch(J){return console.error(`Error in hook callback ${Q}:`,J),{}}}}}async handleElicitation(Q,Z,W,X,V,J,K){try{return await this.sendRequest({subtype:"elicitation",mcp_server_name:Q,message:Z,mode:V,url:J,elicitation_id:K,requested_schema:W},e0(),X)}catch{return{action:"cancel"}}}createSandboxAskCallback(){return async(Q)=>{try{return(await this.sendRequest({subtype:"can_use_tool",tool_name:aQ,input:{host:Q.host},tool_use_id:cZ(),description:`Allow network connection to ${Q.host}?`},kZ())).behavior==="allow"}catch{return!1}}}async sendMcpMessage(Q,Z){return(await this.sendRequest({subtype:"mcp_message",server_name:Q,message:Z},Y.object({mcp_response:Y.any()}))).mcp_response}}function WY(Q){console.error(Q),process.exit(1)}async function sQ(Q,Z,W,X,V){let K=X.getAppState().toolPermissionContext.mode,H=LY(Q,Z,W,X,K,V,X.abortController.signal);for await(let B of H)if(B.permissionRequestResult&&(B.permissionRequestResult.behavior==="allow"||B.permissionRequestResult.behavior==="deny")){let z=B.permissionRequestResult;if(z.behavior==="allow"){let G=z.updatedInput||W,L=z.updatedPermissions??[];if(L.length>0){EZ(L);let w=X.getAppState(),v=UZ(w.toolPermissionContext,L);X.setAppState((_)=>{if(_.toolPermissionContext===v)return _;return{..._,toolPermissionContext:v}})}return{behavior:"allow",updatedInput:G,userModified:!1,decisionReason:{type:"hook",hookName:"PermissionRequest"}}}else return{behavior:"deny",message:z.message||"Permission denied by PermissionRequest hook",decisionReason:{type:"hook",hookName:"PermissionRequest"}}}return}BZ();PW();OW();yW();wW();EW();UW();import{randomUUID as $W}from"crypto";function jW(Q){return Q===mY?cY:Q}function SX(Q){let W=gY()?.outputStyle??aY,X={type:"system",subtype:"init",cwd:uY(),session_id:NZ(),tools:Q.tools.map((V)=>jW(V.name)),mcp_servers:Q.mcpClients.map((V)=>({name:V.name,status:V.type})),model:Q.model,permissionMode:Q.permissionMode,slash_commands:Q.commands.filter((V)=>V.userInvocable!==!1).map((V)=>V.name),apiKeySource:lY().source,betas:pY(),claude_code_version:"99.0.0",output_style:W,agents:Q.agents.map((V)=>V.agentType),skills:Q.skills.filter((V)=>V.userInvocable!==!1).map((V)=>V.name),plugins:Q.plugins.map((V)=>({name:V.name,path:V.path,source:V.source})),uuid:$W()};return X.fast_mode_state=dY(Q.model,Q.fastMode),X}var nY={"`":"`",'"':'"',"<":">","{":"}","[":"]","(":")","'":"'"};function FW(Q,Z){if(!new RegExp(Z,"i").test(Q))return[];if(Q.startsWith("/"))return[];let X=[],V=null,J=0,K=(G)=>!!G&&/[\p{L}\p{N}_]/u.test(G);for(let G=0;G<Q.length;G++){let L=Q[G];if(V){if(V==="["&&L==="["){J=G;continue}if(L!==nY[V])continue;if(V==="'"&&K(Q[G+1]))continue;X.push({start:J,end:G+1}),V=null}else if(L==="<"&&G+1<Q.length&&/[a-zA-Z/]/.test(Q[G+1])||L==="'"&&!K(Q[G-1])||L!=="<"&&L!=="'"&&L in nY)V=L,J=G}let H=[],B=new RegExp(`\\b${Z}\\b`,"gi"),z=Q.matchAll(B);for(let G of z){if(G.index===void 0)continue;let L=G.index,w=L+G[0].length;if(X.some((P)=>L>=P.start&&L<P.end))continue;let v=Q[L-1],_=Q[w];if(v==="/"||v==="\\"||v==="-")continue;if(_==="/"||_==="\\"||_==="-"||_==="?")continue;if(_==="."&&K(Q[w+1]))continue;H.push({word:G[0],start:L,end:w})}return H}function kX(Q){return FW(Q,"ultrareview")}_Z();wZ();kW();SW();hW();CW();zY();G0();TW();wZ();fW();RW();import{randomUUID as xW}from"crypto";BZ();_Z();wZ();MW();bW();import{randomUUID as IW}from"crypto";function iY(Q){let Z=Q.toLowerCase();return/\b(wtf|wth|ffs|omfg|shit(ty|tiest)?|dumbass|horrible|awful|piss(ed|ing)? off|piece of (shit|crap|junk)|what the (fuck|hell)|fucking? (broken|useless|terrible|awful|horrible)|fuck you|screw (this|you)|so frustrating|this sucks|damn it)\b/.test(Z)}function rY(Q){let Z=Q.toLowerCase().trim();if(Z==="continue")return!0;return/\b(keep going|go on)\b/.test(Z)}function Z9(Q,Z,W,X,V,J,K){let H=IW();oY(H);let B=typeof Q==="string"?Q:Q.find((v)=>v.type==="text")?.text||"";eY(B);let z=typeof Q==="string"?Q:Q.findLast((v)=>v.type==="text")?.text||"";if(z)tY("user_prompt",{prompt_length:String(z.length),prompt:sY(z),"prompt.id":H});let G=iY(B),L=rY(B);if(d("tengu_input_prompt",{is_negative:G,is_keep_going:L}),Z.length>0){let v=typeof Q==="string"?Q.trim()?[{type:"text",text:Q}]:[]:Q;return{messages:[s({content:[...v,...Z],uuid:V,imagePasteIds:W.length>0?W:void 0,permissionMode:J,isMeta:K||void 0}),...X],shouldQuery:!0}}return{messages:[s({content:Q,uuid:V,permissionMode:J,isMeta:K||void 0}),...X],shouldQuery:!0}}async function BV({input:Q,preExpansionInput:Z,mode:W,setToolJSX:X,context:V,pastedContents:J,ideSelection:K,messages:H,setUserInputOnProcessing:B,uuid:z,isAlreadyProcessing:G,querySource:L,canUseTool:w,skipSlashCommands:v,bridgeOrigin:_,isMeta:P,skipAttachments:C}){let D=typeof Q==="string"?Q:null;if(W==="prompt"&&D!==null&&!P)B?.(D);i("query_process_user_input_base_start");let $=V.getAppState(),y=await pW(Q,W,X,V,J,K,H,z,G,L,w,$.toolPermissionContext.mode,v,_,P,C,Z);if(i("query_process_user_input_base_end"),!y.shouldQuery)return y;i("query_hooks_start");let T=J9(Q)||"";for await(let O of D9(T,$.toolPermissionContext.mode,V,V.requestPrompt)){if(O.message?.type==="progress")continue;if(O.blockingError){let j=q9(O.blockingError);return{messages:[H9(`${j}
|
|
22
22
|
|
|
23
|
-
Original prompt: ${Q}`,"warning")],shouldQuery:!1,allowedTools:y.allowedTools}}if(O.preventContinuation){let j=O.stopReason?`Operation stopped by hook: ${O.stopReason}`:"Operation stopped by hook";return y.messages.push(s({content:j})),y.shouldQuery=!1,y}if(O.additionalContexts&&O.additionalContexts.length>0)y.messages.push(G9({type:"hook_additional_context",content:O.additionalContexts.map(Y9),hookName:"UserPromptSubmit",toolUseID:`hook-${xW()}`,hookEvent:"UserPromptSubmit"}));if(O.message)switch(O.message.attachment.type){case"hook_success":if(!O.message.attachment.content)break;y.messages.push({...O.message,attachment:{...O.message.attachment,content:Y9(O.message.attachment.content)}});break;default:y.messages.push(O.message);break}}return i("query_hooks_end"),y}var tZ=1e4;function Y9(Q){if(Q.length>tZ)return`${Q.substring(0,tZ)}… [output truncated - exceeded ${tZ} characters]`;return Q}async function pW(Q,Z,W,X,V,J,K,H,B,z,G,L,w,v,_,P,C){let D=null,$=[],y=[],T=Q;if(typeof Q==="string")D=Q;else if(Q.length>0){i("query_image_processing_start");let A=[];for(let R of Q)if(R.type==="image"){let h=await Z0(R);if(h.dimensions){let r=FZ(h.dimensions);if(r)y.push(r)}A.push(h.block)}else A.push(R);T=A,i("query_image_processing_end");let N=A[A.length-1];if(N?.type==="text")D=N.text,$=A.slice(0,-1);else $=A}if(D===null&&Z!=="prompt")throw Error(`Mode: ${Z} requires a string input.`);let O=V?Object.values(V).filter(V9):[],j=O.map((A)=>A.id),l=V?await W9(V):new Map;i("query_pasted_image_processing_start");let n=await Promise.all(O.map(async(A)=>{let N={type:"image",source:{type:"base64",media_type:A.mediaType||"image/png",data:A.content}};return d("tengu_pasted_image_resize_attempt",{original_size_bytes:A.content.length}),{resized:await Z0(N),originalDimensions:A.dimensions,sourcePath:A.sourcePath??l.get(A.id)}})),S=[];for(let{resized:A,originalDimensions:N,sourcePath:R}of n){if(A.dimensions){let h=FZ(A.dimensions,R);if(h)y.push(h)}else if(N){let h=FZ(N,R);if(h)y.push(h)}else if(R)y.push(`[Image source: ${R}]`);S.push(A.block)}i("query_pasted_image_processing_end");let m=w;if(v&&D!==null&&D.startsWith("/")){let A=X9(D),N=A?z9(A.commandName,X.options.commands):void 0;if(N)if(L9(N))m=!1;else{let R=`/${B9(N)} isn't available over Remote Control.`;return{messages:[s({content:D,uuid:H}),N9(`<local-command-stdout>${R}</local-command-stdout>`)],shouldQuery:!1,resultText:R}}}let g=!P&&D!==null&&(Z!=="prompt"||m||!D.startsWith("/"));i("query_attachment_loading_start");let x=g?await Q9(K9(D,X,J??null,[],K,z)):[];if(i("query_attachment_loading_end"),D!==null&&Z==="bash"){let{processBashCommand:A}=await import("./processBashCommand-0.1.
|
|
24
|
-
export{rW as
|
|
23
|
+
Original prompt: ${Q}`,"warning")],shouldQuery:!1,allowedTools:y.allowedTools}}if(O.preventContinuation){let j=O.stopReason?`Operation stopped by hook: ${O.stopReason}`:"Operation stopped by hook";return y.messages.push(s({content:j})),y.shouldQuery=!1,y}if(O.additionalContexts&&O.additionalContexts.length>0)y.messages.push(G9({type:"hook_additional_context",content:O.additionalContexts.map(Y9),hookName:"UserPromptSubmit",toolUseID:`hook-${xW()}`,hookEvent:"UserPromptSubmit"}));if(O.message)switch(O.message.attachment.type){case"hook_success":if(!O.message.attachment.content)break;y.messages.push({...O.message,attachment:{...O.message.attachment,content:Y9(O.message.attachment.content)}});break;default:y.messages.push(O.message);break}}return i("query_hooks_end"),y}var tZ=1e4;function Y9(Q){if(Q.length>tZ)return`${Q.substring(0,tZ)}… [output truncated - exceeded ${tZ} characters]`;return Q}async function pW(Q,Z,W,X,V,J,K,H,B,z,G,L,w,v,_,P,C){let D=null,$=[],y=[],T=Q;if(typeof Q==="string")D=Q;else if(Q.length>0){i("query_image_processing_start");let A=[];for(let R of Q)if(R.type==="image"){let h=await Z0(R);if(h.dimensions){let r=FZ(h.dimensions);if(r)y.push(r)}A.push(h.block)}else A.push(R);T=A,i("query_image_processing_end");let N=A[A.length-1];if(N?.type==="text")D=N.text,$=A.slice(0,-1);else $=A}if(D===null&&Z!=="prompt")throw Error(`Mode: ${Z} requires a string input.`);let O=V?Object.values(V).filter(V9):[],j=O.map((A)=>A.id),l=V?await W9(V):new Map;i("query_pasted_image_processing_start");let n=await Promise.all(O.map(async(A)=>{let N={type:"image",source:{type:"base64",media_type:A.mediaType||"image/png",data:A.content}};return d("tengu_pasted_image_resize_attempt",{original_size_bytes:A.content.length}),{resized:await Z0(N),originalDimensions:A.dimensions,sourcePath:A.sourcePath??l.get(A.id)}})),S=[];for(let{resized:A,originalDimensions:N,sourcePath:R}of n){if(A.dimensions){let h=FZ(A.dimensions,R);if(h)y.push(h)}else if(N){let h=FZ(N,R);if(h)y.push(h)}else if(R)y.push(`[Image source: ${R}]`);S.push(A.block)}i("query_pasted_image_processing_end");let m=w;if(v&&D!==null&&D.startsWith("/")){let A=X9(D),N=A?z9(A.commandName,X.options.commands):void 0;if(N)if(L9(N))m=!1;else{let R=`/${B9(N)} isn't available over Remote Control.`;return{messages:[s({content:D,uuid:H}),N9(`<local-command-stdout>${R}</local-command-stdout>`)],shouldQuery:!1,resultText:R}}}let g=!P&&D!==null&&(Z!=="prompt"||m||!D.startsWith("/"));i("query_attachment_loading_start");let x=g?await Q9(K9(D,X,J??null,[],K,z)):[];if(i("query_attachment_loading_end"),D!==null&&Z==="bash"){let{processBashCommand:A}=await import("./processBashCommand-0.1.14-d3xsyk5f.mjs");return eZ(await A(D,$,x,X,W),y)}if(D!==null&&!m&&D.startsWith("/")){let{processSlashCommand:A}=await import("./processSlashCommand-0.1.14-7w1v93bg.mjs"),N=await A(D,$,S,x,X,W,H,B,G);return eZ(N,y)}if(D!==null&&Z==="prompt"){let A=D.trim(),N=x.find((R)=>R.attachment.type==="agent_mention");if(N){let R=`@agent-${N.attachment.agentType}`,h=A===R,r=A.startsWith(R)&&!h;d("tengu_subagent_at_mention",{is_subagent_only:h,is_prefix:r})}}return eZ(Z9(T,S,j,x,H,L,_),y)}function eZ(Q,Z){if(Z.length>0)Q.messages.push(s({content:Z.map((W)=>({type:"text",text:W})),isMeta:!0}));return Q}gW();BZ();KZ();gZ();mW();uW();w0();dW();cW();import{isAbsolute as lW,resolve as aW}from"path";function nW(Q,Z,W){let X=[],V=[],J=[];for(let[K,H]of Object.entries(Q)){let B=Z[K],z=P9(H.source,W?.projectRoot);if(!B)X.push(K);else if(H.sourceIsFallback)J.push(K);else if(!O9(z,B.source))V.push({name:K,declaredSource:z,materializedSource:B.source});else J.push(K)}return{missing:X,sourceChanged:V,upToDate:J}}async function yV(Q){let Z=U9();if(Object.keys(Z).length===0)return{installed:[],updated:[],failed:[],upToDate:[],skipped:[]};let W;try{W=await E9()}catch(G){e(G),W={}}let X=nW(Z,W,{projectRoot:Y0()}),V=[...X.missing.map((G)=>({name:G,source:P9(Z[G].source),action:"install"})),...X.sourceChanged.map(({name:G,declaredSource:L})=>({name:G,source:L,action:"update"}))],J=[],K=[];for(let G of V){if(Q?.skip?.(G.name,G.source)){J.push(G.name);continue}if(G.action==="update"&&w9(G.source)&&!await _9(G.source.path)){b(`[reconcile] '${G.name}' declared path does not exist; keeping materialized entry`),J.push(G.name);continue}K.push(G)}if(K.length===0)return{installed:[],updated:[],failed:[],upToDate:X.upToDate,skipped:J};b(`[reconcile] ${K.length} marketplace(s): ${K.map((G)=>`${G.name}(${G.action})`).join(", ")}`);let H=[],B=[],z=[];for(let G=0;G<K.length;G++){let{name:L,source:w,action:v}=K[G];Q?.onProgress?.({type:"installing",name:L,action:v,index:G+1,total:K.length});try{let _=await y9(w);if(v==="install")H.push(L);else B.push(L);Q?.onProgress?.({type:"installed",name:L,alreadyMaterialized:_.alreadyMaterialized})}catch(_){let P=v9(_);z.push({name:L,error:P}),Q?.onProgress?.({type:"failed",name:L,error:P}),e(_)}}return{installed:H,updated:B,failed:z,upToDate:X.upToDate,skipped:J}}function P9(Q,Z){if((Q.source==="directory"||Q.source==="file")&&!lW(Q.path)){let W=Z??Y0(),X=A9(W);return{...Q,path:aW(X??W,Q.path)}}return Q}
|
|
24
|
+
export{rW as U,jW as V,SX as W,o9 as X,S0 as Y,YQ as Z,QQ as _,WQ as $,kX as aa,BV as ba,kZ as ca,yZ as da,QY as ea,oQ as fa,nW as ga,yV as ha,QW as ia,WW as ja,XW as ka,vW as la,AW as ma,_W as na};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{
|
|
2
|
-
export{a as
|
|
1
|
+
import{QS as f}from"./cli-0.1.14-seq2fm2d.mjs";import{EV as p,GV as c}from"./cli-0.1.14-hjktwgtk.mjs";import{HV as M}from"./cli-0.1.14-harz1d9d.mjs";import{Zla as o}from"./cli-0.1.14-qn4ftczz.mjs";c();var n=o(f(),1),r=o(M(),1),d=r.createContext(void 0);function a(F){let e=n.c(3),{getFpsMetrics:s,children:i}=F,t;if(e[0]!==i||e[1]!==s)t=p(d.Provider,{value:s,children:i}),e[0]=i,e[1]=s,e[2]=t;else t=e[2];return t}function l(){return r.useContext(d)}
|
|
2
|
+
export{a as db,l as eb};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{Gaa as f,U$ as M,X$ as L,naa as G,oaa as h,saa as v,taa as P,waa as k}from"./cli-0.1.14-2f7s5xbd.mjs";import{$ca as E,ida as x}from"./cli-0.1.14-9vc52dnj.mjs";import{Afa as T,Nfa as u}from"./cli-0.1.14-s9m1y93w.mjs";import{bma as C}from"./cli-0.1.14-qn4ftczz.mjs";import{chmodSync as K,cpSync as S,existsSync as V,mkdirSync as m,readFileSync as _,readdirSync as w,statSync as D,writeFileSync as O}from"fs";import{homedir as R}from"os";import{join as Y}from"path";function b(j){return Y(j,".claude")}function A(j){try{let q=_(j,"utf8"),B=JSON.parse(q);if(B&&typeof B==="object"&&!Array.isArray(B))return B;return null}catch{return null}}function F(j,q){O(j,JSON.stringify(q,null,2),{encoding:"utf8"})}function $(j){m(j,{recursive:!0})}function l(j,q,B,Q){let z=Y(j,".credentials.json"),I=Y(q,".credentials.json");if(!V(z))return 0;try{if(V(I)){let W=_(z),X=_(I);if(W.equals(X))return K(I,384),0;return Q.push(`${I} already exists with different content — kept new file untouched`),0}$(q);let N=_(z);return O(I,N),K(I,384),d(N)}catch(N){return B.push(`failed to copy .credentials.json: ${N instanceof Error?N.message:String(N)}`),0}}function d(j){try{let q=JSON.parse(j.toString("utf8"));if(q&&typeof q==="object")return Object.keys(q).length}catch{}return 1}function y(j,q,B){let Q=Y(j,"CLAUDE.md"),z=Y(q,"CLAUDE.md");if(!V(Q))return!1;if(V(z))return!1;try{$(q);let I=_(Q);return O(z,I),!0}catch(I){return B.push(`failed to copy CLAUDE.md: ${I instanceof Error?I.message:String(I)}`),!1}}function c(j,q,B){let Q=Y(j,"keybindings.json"),z=Y(q,"keybindings.json");if(!V(Q))return!1;if(V(z))return!1;try{$(q);let I=_(Q);return O(z,I),!0}catch(I){return B.push(`failed to copy keybindings.json: ${I instanceof Error?I.message:String(I)}`),!1}}function H(j,q,B,Q){let z=Y(j,B),I=Y(q,B);if(!V(z))return 0;let N=0;try{if(!D(z).isDirectory())return 0;$(q),S(z,I,{recursive:!0,force:!1,errorOnExist:!1}),N=p(I)}catch(W){Q.push(`failed to copy ${B}/: ${W instanceof Error?W.message:String(W)}`)}return N}function p(j){try{if(!V(j))return 0;return w(j).length}catch{return 0}}function a(j,q,B){let Q=Y(j,"settings.json");if(!V(Q))return 0;let z=A(Q);if(!z)return B.push("legacy settings.json could not be parsed; skipped"),0;let I=Y(q,"settings.json"),N=V(I)?A(I)??{}:{},W={...N},X=0;for(let U of g){if(!(U in z))continue;if(U in N)continue;W[U]=z[U],X+=1}if(X===0&&V(I))return 0;try{$(q),F(I,W)}catch(U){return B.push(`failed to write settings.json: ${U instanceof Error?U.message:String(U)}`),0}return X}function J(j){return Y(j,`.claude${E()}.json`)}function n(j){return Y(j,`config${E()}.json`)}function t(j,q,B){let Q=J(j);if(!V(Q))return 0;let z=A(Q);if(!z)return B.push(`legacy ${Q} could not be parsed; skipped`),0;let I=n(q),N=V(I)?A(I)??{}:{},W={...N},X=0;for(let U of Object.keys(z)){if(U in N)continue;W[U]=z[U],X+=1}if(X===0&&V(I))return 0;try{F(I,W)}catch(U){return B.push(`failed to write ${I}: ${U instanceof Error?U.message:String(U)}`),0}return G(null),X}function o(){let q=L().claudeToClaudioMigratedAt;if(typeof q==="string"&&q.length>0)return{migrated:!0,at:q};return{migrated:!1}}function s(j){M((q)=>({...q,claudeToClaudioMigratedAt:j}))}async function Vj(j={}){let q=j.homeDir??R(),B=b(q),Q=j.newDir??T(),z=[],I=[],N={tokens:0,settingsKeys:0,globalConfigKeys:0,claudeMd:!1,plugins:0,skills:0,agents:0,commands:0,keybindings:!1,anthropicProfileCreated:!1,errors:z,warnings:I,alreadyMigrated:!1,legacyDir:B,newDir:Q},W=V(J(q));if(!V(B)&&!W)return N;let X=o();if(X.migrated&&!j.force)return N.alreadyMigrated=!0,N.migratedAt=X.at,N;try{$(Q)}catch(U){return z.push(`failed to create ${Q}: ${U instanceof Error?U.message:String(U)}`),N}if(V(B))N.tokens=l(B,Q,z,I),N.settingsKeys=a(B,Q,z),N.claudeMd=y(B,Q,z),N.plugins=H(B,Q,"plugins",z),N.skills=H(B,Q,"skills",z),N.agents=H(B,Q,"agents",z),N.commands=H(B,Q,"commands",z),N.keybindings=c(B,Q,z);if(N.globalConfigKeys=t(q,Q,I),N.anthropicProfileCreated=i(Q,N.tokens,I),z.length===0){let U=new Date().toISOString();s(U),N.migratedAt=U}return N}function i(j,q,B){if(q<=0)return!1;let Q=Y(j,".credentials.json"),z;try{z=JSON.parse(_(Q,"utf8"))}catch(Z){return B.push(`failed to read migrated .credentials.json for profile bootstrap: ${Z instanceof Error?Z.message:String(Z)}`),!1}let N=z?.claudeAiOauth?.accessToken;if(typeof N!=="string"||N.length===0)return!1;let W=P();if(W.some((Z)=>Z.provider==="anthropic"))return!1;let X=v("anthropic"),U={provider:"anthropic",name:X.name,baseUrl:X.baseUrl,model:X.model};try{if(!k(U,{makeActive:W.length===0}))return B.push("anthropic profile could not be saved after migration"),!1;return!0}catch(Z){return B.push(`failed to create anthropic profile: ${Z instanceof Error?Z.message:String(Z)}`),!1}}function Wj(j){if(j.alreadyMigrated)return`nothing to do (last run: ${j.migratedAt??"unknown"}). Pass --force to re-run.`;let q=[];q.push(`${j.tokens} token${j.tokens===1?"":"s"}`),q.push(`${j.settingsKeys} settings key${j.settingsKeys===1?"":"s"}`),q.push(`${j.globalConfigKeys} global config key${j.globalConfigKeys===1?"":"s"}`),q.push(`${j.claudeMd?1:0} CLAUDE.md`),q.push(`${j.plugins} plugin${j.plugins===1?"":"s"}`),q.push(`${j.skills} skill${j.skills===1?"":"s"}`),q.push(`${j.agents} agent${j.agents===1?"":"s"}`),q.push(`${j.commands} command${j.commands===1?"":"s"}`),q.push(`${j.keybindings?"keybindings copied":"no keybindings"}`),q.push(j.anthropicProfileCreated?"anthropic profile created":"anthropic profile already present");let B=q.join(", "),Q=`. ${j.legacyDir} kept untouched.`,z=`${B}${Q}`;if(j.warnings.length>0)z+=` Warnings: ${j.warnings.join("; ")}`;if(j.errors.length>0)z+=` Errors: ${j.errors.join("; ")}`;return z}function e(j=R()){return V(b(j))}function r(j=R()){return V(J(j))}function Xj(j=R()){let q=L();if(q.claudeToClaudioMigratedAt)return!1;if(q.legacyMigrationSkipped===!0)return!1;return e(j)||r(j)}function Yj(){M((j)=>({...j,legacyMigrationSkipped:!0}))}var g;var jj=C(()=>{x();h();u();f();g=["theme","model","customApiKeyResponses","permissions","verbose","editorMode","mcpServers","providerProfiles","activeProviderProfileId"]});
|
|
2
|
+
export{Vj as Bc,Wj as Cc,e as Dc,Xj as Ec,Yj as Fc,jj as Gc};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{
|
|
2
|
-
export{Lt as
|
|
1
|
+
import{$la as j}from"./cli-0.1.14-qn4ftczz.mjs";var Lt=j((Q)=>{var y=Symbol.for("react.transitional.element"),$=Symbol.for("react.portal"),I=Symbol.for("react.fragment"),N=Symbol.for("react.strict_mode"),M=Symbol.for("react.profiler"),Y=Symbol.for("react.consumer"),L=Symbol.for("react.context"),k=Symbol.for("react.forward_ref"),U=Symbol.for("react.suspense"),b=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),D=Symbol.for("react.activity"),m=Symbol.iterator;function q(t){if(t===null||typeof t!=="object")return null;return t=m&&t[m]||t["@@iterator"],typeof t==="function"?t:null}var S={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},g=Object.assign,w={};function l(t,e,n){this.props=t,this.context=e,this.refs=w,this.updater=n||S}l.prototype.isReactComponent={};l.prototype.setState=function(t,e){if(typeof t!=="object"&&typeof t!=="function"&&t!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,t,e,"setState")};l.prototype.forceUpdate=function(t){this.updater.enqueueForceUpdate(this,t,"forceUpdate")};function P(){}P.prototype=l.prototype;function v(t,e,n){this.props=t,this.context=e,this.refs=w,this.updater=n||S}var T=v.prototype=new P;T.constructor=v;g(T,l.prototype);T.isPureReactComponent=!0;var C=Array.isArray;function E(){}var f={H:null,A:null,T:null,S:null},H=Object.prototype.hasOwnProperty;function R(t,e,n){var r=n.ref;return{$$typeof:y,type:t,key:e,ref:r!==void 0?r:null,props:n}}function z(t,e){return R(t.type,e,t.props)}function x(t){return typeof t==="object"&&t!==null&&t.$$typeof===y}function G(t){var e={"=":"=0",":":"=2"};return"$"+t.replace(/[=:]/g,function(n){return e[n]})}var d=/\/+/g;function a(t,e){return typeof t==="object"&&t!==null&&t.key!=null?G(""+t.key):e.toString(36)}function K(t){switch(t.status){case"fulfilled":return t.value;case"rejected":throw t.reason;default:switch(typeof t.status==="string"?t.then(E,E):(t.status="pending",t.then(function(e){t.status==="pending"&&(t.status="fulfilled",t.value=e)},function(e){t.status==="pending"&&(t.status="rejected",t.reason=e)})),t.status){case"fulfilled":return t.value;case"rejected":throw t.reason}}throw t}function p(t,e,n,r,o){var u=typeof t;if(u==="undefined"||u==="boolean")t=null;var s=!1;if(t===null)s=!0;else switch(u){case"bigint":case"string":case"number":s=!0;break;case"object":switch(t.$$typeof){case y:case $:s=!0;break;case h:return s=t._init,p(s(t._payload),e,n,r,o)}}if(s)return o=o(t),s=r===""?"."+a(t,0):r,C(o)?(n="",s!=null&&(n=s.replace(d,"$&/")+"/"),p(o,e,n,"",function(O){return O})):o!=null&&(x(o)&&(o=z(o,n+(o.key==null||t&&t.key===o.key?"":(""+o.key).replace(d,"$&/")+"/")+s)),e.push(o)),1;s=0;var c=r===""?".":r+":";if(C(t))for(var i=0;i<t.length;i++)r=t[i],u=c+a(r,i),s+=p(r,e,n,u,o);else if(i=q(t),typeof i==="function")for(t=i.call(t),i=0;!(r=t.next()).done;)r=r.value,u=c+a(r,i++),s+=p(r,e,n,u,o);else if(u==="object"){if(typeof t.then==="function")return p(K(t),e,n,r,o);throw e=String(t),Error("Objects are not valid as a React child (found: "+(e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)+"). If you meant to render a collection of children, use an array instead.")}return s}function _(t,e,n){if(t==null)return t;var r=[],o=0;return p(t,r,"","",function(u){return e.call(n,u,o++)}),r}function B(t){if(t._status===-1){var e=t._result;e=e(),e.then(function(n){if(t._status===0||t._status===-1)t._status=1,t._result=n},function(n){if(t._status===0||t._status===-1)t._status=2,t._result=n}),t._status===-1&&(t._status=0,t._result=e)}if(t._status===1)return t._result.default;throw t._result}var A=typeof reportError==="function"?reportError:function(t){if(typeof window==="object"&&typeof window.ErrorEvent==="function"){var e=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof t==="object"&&t!==null&&typeof t.message==="string"?String(t.message):String(t),error:t});if(!window.dispatchEvent(e))return}else if(typeof process==="object"&&typeof process.emit==="function"){process.emit("uncaughtException",t);return}console.error(t)},W={map:_,forEach:function(t,e,n){_(t,function(){e.apply(this,arguments)},n)},count:function(t){var e=0;return _(t,function(){e++}),e},toArray:function(t){return _(t,function(e){return e})||[]},only:function(t){if(!x(t))throw Error("React.Children.only expected to receive a single React element child.");return t}};Q.Activity=D;Q.Children=W;Q.Component=l;Q.Fragment=I;Q.Profiler=M;Q.PureComponent=v;Q.StrictMode=N;Q.Suspense=U;Q.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=f;Q.__COMPILER_RUNTIME={__proto__:null,c:function(t){return f.H.useMemoCache(t)}};Q.cache=function(t){return function(){return t.apply(null,arguments)}};Q.cacheSignal=function(){return null};Q.cloneElement=function(t,e,n){if(t===null||t===void 0)throw Error("The argument must be a React element, but you passed "+t+".");var r=g({},t.props),o=t.key;if(e!=null)for(u in e.key!==void 0&&(o=""+e.key),e)!H.call(e,u)||u==="key"||u==="__self"||u==="__source"||u==="ref"&&e.ref===void 0||(r[u]=e[u]);var u=arguments.length-2;if(u===1)r.children=n;else if(1<u){for(var s=Array(u),c=0;c<u;c++)s[c]=arguments[c+2];r.children=s}return R(t.type,o,r)};Q.createContext=function(t){return t={$$typeof:L,_currentValue:t,_currentValue2:t,_threadCount:0,Provider:null,Consumer:null},t.Provider=t,t.Consumer={$$typeof:Y,_context:t},t};Q.createElement=function(t,e,n){var r,o={},u=null;if(e!=null)for(r in e.key!==void 0&&(u=""+e.key),e)H.call(e,r)&&r!=="key"&&r!=="__self"&&r!=="__source"&&(o[r]=e[r]);var s=arguments.length-2;if(s===1)o.children=n;else if(1<s){for(var c=Array(s),i=0;i<s;i++)c[i]=arguments[i+2];o.children=c}if(t&&t.defaultProps)for(r in s=t.defaultProps,s)o[r]===void 0&&(o[r]=s[r]);return R(t,u,o)};Q.createRef=function(){return{current:null}};Q.forwardRef=function(t){return{$$typeof:k,render:t}};Q.isValidElement=x;Q.lazy=function(t){return{$$typeof:h,_payload:{_status:-1,_result:t},_init:B}};Q.memo=function(t,e){return{$$typeof:b,type:t,compare:e===void 0?null:e}};Q.startTransition=function(t){var e=f.T,n={};f.T=n;try{var r=t(),o=f.S;o!==null&&o(n,r),typeof r==="object"&&r!==null&&typeof r.then==="function"&&r.then(E,A)}catch(u){A(u)}finally{e!==null&&n.types!==null&&(e.types=n.types),f.T=e}};Q.unstable_useCacheRefresh=function(){return f.H.useCacheRefresh()};Q.use=function(t){return f.H.use(t)};Q.useActionState=function(t,e,n){return f.H.useActionState(t,e,n)};Q.useCallback=function(t,e){return f.H.useCallback(t,e)};Q.useContext=function(t){return f.H.useContext(t)};Q.useDebugValue=function(){};Q.useDeferredValue=function(t,e){return f.H.useDeferredValue(t,e)};Q.useEffect=function(t,e){return f.H.useEffect(t,e)};Q.useEffectEvent=function(t){return f.H.useEffectEvent(t)};Q.useId=function(){return f.H.useId()};Q.useImperativeHandle=function(t,e,n){return f.H.useImperativeHandle(t,e,n)};Q.useInsertionEffect=function(t,e){return f.H.useInsertionEffect(t,e)};Q.useLayoutEffect=function(t,e){return f.H.useLayoutEffect(t,e)};Q.useMemo=function(t,e){return f.H.useMemo(t,e)};Q.useOptimistic=function(t,e){return f.H.useOptimistic(t,e)};Q.useReducer=function(t,e,n){return f.H.useReducer(t,e,n)};Q.useRef=function(t){return f.H.useRef(t)};Q.useState=function(t){return f.H.useState(t)};Q.useSyncExternalStore=function(t,e,n){return f.H.useSyncExternalStore(t,e,n)};Q.useTransition=function(){return f.H.useTransition()};Q.version="19.2.4"});
|
|
2
|
+
export{Lt as HV};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{g5 as Yn}from"./cli-0.1.14-kv650aha.mjs";import{$la as p,bma as Lo,cma as h}from"./cli-0.1.14-qn4ftczz.mjs";var Oa=p((tc,$a)=>{var U=1000,W=U*60,V=W*60,S=V*24,fn=S*7,bn=S*365.25;$a.exports=function(a,e){e=e||{};var i=typeof a;if(i==="string"&&a.length>0)return hn(a);else if(i==="number"&&isFinite(a))return e.long?wn(a):gn(a);throw Error("val is not a non-empty string or a valid number. val="+JSON.stringify(a))};function hn(a){if(a=String(a),a.length>100)return;var e=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(a);if(!e)return;var i=parseFloat(e[1]),n=(e[2]||"ms").toLowerCase();switch(n){case"years":case"year":case"yrs":case"yr":case"y":return i*bn;case"weeks":case"week":case"w":return i*fn;case"days":case"day":case"d":return i*S;case"hours":case"hour":case"hrs":case"hr":case"h":return i*V;case"minutes":case"minute":case"mins":case"min":case"m":return i*W;case"seconds":case"second":case"secs":case"sec":case"s":return i*U;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return i;default:return}}function gn(a){var e=Math.abs(a);if(e>=S)return Math.round(a/S)+"d";if(e>=V)return Math.round(a/V)+"h";if(e>=W)return Math.round(a/W)+"m";if(e>=U)return Math.round(a/U)+"s";return a+"ms"}function wn(a){var e=Math.abs(a);if(e>=S)return O(a,e,S,"day");if(e>=V)return O(a,e,V,"hour");if(e>=W)return O(a,e,W,"minute");if(e>=U)return O(a,e,U,"second");return a+" ms"}function O(a,e,i,n){var s=e>=i*1.5;return Math.round(a/i)+" "+n+(s?"s":"")}});var ua=p((rc,Da)=>{function jn(a){i.debug=i,i.default=i,i.coerce=x,i.disable=t,i.enable=s,i.enabled=r,i.humanize=Oa(),i.destroy=v,Object.keys(a).forEach((c)=>{i[c]=a[c]}),i.names=[],i.skips=[],i.formatters={};function e(c){let l=0;for(let m=0;m<c.length;m++)l=(l<<5)-l+c.charCodeAt(m),l|=0;return i.colors[Math.abs(l)%i.colors.length]}i.selectColor=e;function i(c){let l,m=null,b,z;function g(...k){if(!g.enabled)return;let q=g,C=Number(new Date),dn=C-(l||C);if(q.diff=dn,q.prev=l,q.curr=C,l=C,k[0]=i.coerce(k[0]),typeof k[0]!=="string")k.unshift("%O");let $=0;k[0]=k[0].replace(/%([a-zA-Z%])/g,(la,xn)=>{if(la==="%%")return"%";$++;let Ca=i.formatters[xn];if(typeof Ca==="function"){let vn=k[$];la=Ca.call(q,vn),k.splice($,1),$--}return la}),i.formatArgs.call(q,k),(q.log||i.log).apply(q,k)}if(g.namespace=c,g.useColors=i.useColors(),g.color=i.selectColor(c),g.extend=n,g.destroy=i.destroy,Object.defineProperty(g,"enabled",{enumerable:!0,configurable:!1,get:()=>{if(m!==null)return m;if(b!==i.namespaces)b=i.namespaces,z=i.enabled(c);return z},set:(k)=>{m=k}}),typeof i.init==="function")i.init(g);return g}function n(c,l){let m=i(this.namespace+(typeof l>"u"?":":l)+c);return m.log=this.log,m}function s(c){i.save(c),i.namespaces=c,i.names=[],i.skips=[];let l=(typeof c==="string"?c:"").trim().replace(/\s+/g,",").split(",").filter(Boolean);for(let m of l)if(m[0]==="-")i.skips.push(m.slice(1));else i.names.push(m)}function o(c,l){let m=0,b=0,z=-1,g=0;while(m<c.length)if(b<l.length&&(l[b]===c[m]||l[b]==="*"))if(l[b]==="*")z=b,g=m,b++;else m++,b++;else if(z!==-1)b=z+1,g++,m=g;else return!1;while(b<l.length&&l[b]==="*")b++;return b===l.length}function t(){let c=[...i.names,...i.skips.map((l)=>"-"+l)].join(",");return i.enable(""),c}function r(c){for(let l of i.skips)if(o(c,l))return!1;for(let l of i.names)if(o(c,l))return!0;return!1}function x(c){if(c instanceof Error)return c.stack||c.message;return c}function v(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return i.enable(i.load()),i}Da.exports=jn});var Pa=p((Ra,D)=>{Ra.formatArgs=zn;Ra.save=yn;Ra.load=_n;Ra.useColors=kn;Ra.storage=qn();Ra.destroy=(()=>{let a=!1;return()=>{if(!a)a=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}})();Ra.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function kn(){if(typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs))return!0;if(typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let a;return typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&(a=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(a[1],10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function zn(a){if(a[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+a[0]+(this.useColors?"%c ":" ")+"+"+D.exports.humanize(this.diff),!this.useColors)return;let e="color: "+this.color;a.splice(1,0,e,"color: inherit");let i=0,n=0;a[0].replace(/%[a-zA-Z%]/g,(s)=>{if(s==="%%")return;if(i++,s==="%c")n=i}),a.splice(n,0,e)}Ra.log=console.debug||console.log||(()=>{});function yn(a){try{if(a)Ra.storage.setItem("debug",a);else Ra.storage.removeItem("debug")}catch(e){}}function _n(){let a;try{a=Ra.storage.getItem("debug")||Ra.storage.getItem("DEBUG")}catch(e){}if(!a&&typeof process<"u"&&"env"in process)a=process.env.DEBUG;return a}function qn(){try{return localStorage}catch(a){}}D.exports=ua()(Ra);var{formatters:Sn}=D.exports;Sn.j=function(a){try{return JSON.stringify(a)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}});var ni=p((ii,P)=>{var Fn=h("tty"),R=h("util");ii.init=Nn;ii.log=Mn;ii.formatArgs=Bn;ii.save=Ln;ii.load=Hn;ii.useColors=Gn;ii.destroy=R.deprecate(()=>{},"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");ii.colors=[6,2,3,4,5,1];try{let a=Yn();if(a&&(a.stderr||a).level>=2)ii.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221]}catch(a){}ii.inspectOpts=Object.keys(process.env).filter((a)=>{return/^debug_/i.test(a)}).reduce((a,e)=>{let i=e.substring(6).toLowerCase().replace(/_([a-z])/g,(s,o)=>{return o.toUpperCase()}),n=process.env[e];if(/^(yes|on|true|enabled)$/i.test(n))n=!0;else if(/^(no|off|false|disabled)$/i.test(n))n=!1;else if(n==="null")n=null;else n=Number(n);return a[i]=n,a},{});function Gn(){return"colors"in ii.inspectOpts?Boolean(ii.inspectOpts.colors):Fn.isatty(process.stderr.fd)}function Bn(a){let{namespace:e,useColors:i}=this;if(i){let n=this.color,s="\x1B[3"+(n<8?n:"8;5;"+n),o=` ${s};1m${e} \x1B[0m`;a[0]=o+a[0].split(`
|
|
2
2
|
`).join(`
|
|
3
3
|
`+o),a.push(s+"m+"+P.exports.humanize(this.diff)+"\x1B[0m")}else a[0]=Xn()+e+" "+a[0]}function Xn(){if(ii.inspectOpts.hideDate)return"";return new Date().toISOString()+" "}function Mn(...a){return process.stderr.write(R.formatWithOptions(ii.inspectOpts,...a)+`
|
|
4
4
|
`)}function Ln(a){if(a)process.env.DEBUG=a;else delete process.env.DEBUG}function Hn(){return process.env.DEBUG}function Nn(a){a.inspectOpts={};let e=Object.keys(ii.inspectOpts);for(let i=0;i<e.length;i++)a.inspectOpts[e[i]]=ii.inspectOpts[e[i]]}P.exports=ua()(ii);var{formatters:ai}=P.exports;ai.o=function(a){return this.inspectOpts.colors=this.useColors,R.inspect(a,this.inspectOpts).split(`
|
|
@@ -9,4 +9,4 @@ import{_6 as Yn}from"./cli-0.1.13-cyj5snev.mjs";import{Vna as p,Xna as Lo,Yna as
|
|
|
9
9
|
* MIT Licensed
|
|
10
10
|
*/var aa=mi(),as=h("path").extname,di=/^\s*([^;\s]*)(?:;|\s|$)/,is=/^text\//i;cs.charset=xi;cs.charsets={lookup:xi};cs.contentType=es;cs.extension=ns;cs.extensions=Object.create(null);cs.lookup=ss;cs.types=Object.create(null);os(cs.extensions,cs.types);function xi(a){if(!a||typeof a!=="string")return!1;var e=di.exec(a),i=e&&aa[e[1].toLowerCase()];if(i&&i.charset)return i.charset;if(e&&is.test(e[1]))return"UTF-8";return!1}function es(a){if(!a||typeof a!=="string")return!1;var e=a.indexOf("/")===-1?cs.lookup(a):a;if(!e)return!1;if(e.indexOf("charset")===-1){var i=cs.charset(e);if(i)e+="; charset="+i.toLowerCase()}return e}function ns(a){if(!a||typeof a!=="string")return!1;var e=di.exec(a),i=e&&cs.extensions[e[1].toLowerCase()];if(!i||!i.length)return!1;return i[0]}function ss(a){if(!a||typeof a!=="string")return!1;var e=as("x."+a).toLowerCase().substr(1);if(!e)return!1;return cs.types[e]||!1}function os(a,e){var i=["nginx","apache",void 0,"iana"];Object.keys(aa).forEach(function(s){var o=aa[s],t=o.extensions;if(!t||!t.length)return;a[s]=t;for(var r=0;r<t.length;r++){var x=t[r];if(e[x]){var v=i.indexOf(aa[e[x]].source),c=i.indexOf(o.source);if(e[x]!=="application/octet-stream"&&(v>c||v===c&&e[x].substr(0,12)==="application/"))continue}e[x]=s}})}});var gi=p((bc,hi)=>{hi.exports=ls;function ls(a){var e=typeof setImmediate=="function"?setImmediate:typeof process=="object"&&typeof process.nextTick=="function"?process.nextTick:null;if(e)e(a);else setTimeout(a,0)}});var va=p((hc,ji)=>{var wi=gi();ji.exports=us;function us(a){var e=!1;return wi(function(){e=!0}),function(n,s){if(e)a(n,s);else wi(function(){a(n,s)})}}});var fa=p((gc,ki)=>{ki.exports=ms;function ms(a){Object.keys(a.jobs).forEach(ds.bind(a)),a.jobs={}}function ds(a){if(typeof this.jobs[a]=="function")this.jobs[a]()}});var ba=p((wc,yi)=>{var zi=va(),xs=fa();yi.exports=vs;function vs(a,e,i,n){var s=i.keyedList?i.keyedList[i.index]:i.index;i.jobs[s]=fs(e,s,a[s],function(o,t){if(!(s in i.jobs))return;if(delete i.jobs[s],o)xs(i);else i.results[s]=t;n(o,i.results)})}function fs(a,e,i,n){var s;if(a.length==2)s=a(i,zi(n));else s=a(i,e,zi(n));return s}});var ha=p((jc,_i)=>{_i.exports=bs;function bs(a,e){var i=!Array.isArray(a),n={index:0,keyedList:i||e?Object.keys(a):null,jobs:{},results:i?{}:[],size:i?Object.keys(a).length:a.length};if(e)n.keyedList.sort(i?e:function(s,o){return e(a[s],a[o])});return n}});var ga=p((kc,qi)=>{var hs=fa(),gs=va();qi.exports=ws;function ws(a){if(!Object.keys(this.jobs).length)return;this.index=this.size,hs(this),gs(a)(null,this.results)}});var Qi=p((zc,Si)=>{var js=ba(),ks=ha(),zs=ga();Si.exports=ys;function ys(a,e,i){var n=ks(a);while(n.index<(n.keyedList||a).length)js(a,e,n,function(s,o){if(s){i(s,o);return}if(Object.keys(n.jobs).length===0){i(null,n.results);return}}),n.index++;return zs.bind(n,i)}});var wa=p((yc,ia)=>{var Zi=ba(),_s=ha(),qs=ga();ia.exports=Ss;ia.exports.ascending=Ji;ia.exports.descending=Qs;function Ss(a,e,i,n){var s=_s(a,i);return Zi(a,e,s,function o(t,r){if(t){n(t,r);return}if(s.index++,s.index<(s.keyedList||a).length){Zi(a,e,s,o);return}n(null,s.results)}),qs.bind(s,n)}function Ji(a,e){return a<e?-1:a>e?1:0}function Qs(a,e){return-1*Ji(a,e)}});var Ui=p((_c,Ki)=>{var Zs=wa();Ki.exports=Js;function Js(a,e,i){return Zs(a,e,null,i)}});var Vi=p((qc,Wi)=>{Wi.exports={parallel:Qi(),serial:Ui(),serialOrdered:wa()}});var ja=p((Sc,Yi)=>{Yi.exports=Object});var Gi=p((Qc,Fi)=>{Fi.exports=Error});var Xi=p((Zc,Bi)=>{Bi.exports=EvalError});var Li=p((Jc,Mi)=>{Mi.exports=RangeError});var Ni=p((Kc,Hi)=>{Hi.exports=ReferenceError});var Ti=p((Uc,Ai)=>{Ai.exports=SyntaxError});var ea=p((Wc,Ei)=>{Ei.exports=TypeError});var Ci=p((Vc,Ii)=>{Ii.exports=URIError});var Oi=p((Yc,$i)=>{$i.exports=Math.abs});var Ri=p((Fc,Di)=>{Di.exports=Math.floor});var ae=p((Gc,Pi)=>{Pi.exports=Math.max});var ee=p((Bc,ie)=>{ie.exports=Math.min});var se=p((Xc,ne)=>{ne.exports=Math.pow});var ce=p((Mc,oe)=>{oe.exports=Math.round});var te=p((Lc,pe)=>{pe.exports=Number.isNaN||function(e){return e!==e}});var le=p((Hc,re)=>{var Ks=te();re.exports=function(e){if(Ks(e)||e===0)return e;return e<0?-1:1}});var me=p((Nc,ue)=>{ue.exports=Object.getOwnPropertyDescriptor});var ka=p((Ac,de)=>{var na=me();if(na)try{na([],"length")}catch(a){na=null}de.exports=na});var ve=p((Tc,xe)=>{var sa=Object.defineProperty||!1;if(sa)try{sa({},"a",{value:1})}catch(a){sa=!1}xe.exports=sa});var za=p((Ec,fe)=>{fe.exports=function(){if(typeof Symbol!=="function"||typeof Object.getOwnPropertySymbols!=="function")return!1;if(typeof Symbol.iterator==="symbol")return!0;var e={},i=Symbol("test"),n=Object(i);if(typeof i==="string")return!1;if(Object.prototype.toString.call(i)!=="[object Symbol]")return!1;if(Object.prototype.toString.call(n)!=="[object Symbol]")return!1;var s=42;e[i]=s;for(var o in e)return!1;if(typeof Object.keys==="function"&&Object.keys(e).length!==0)return!1;if(typeof Object.getOwnPropertyNames==="function"&&Object.getOwnPropertyNames(e).length!==0)return!1;var t=Object.getOwnPropertySymbols(e);if(t.length!==1||t[0]!==i)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,i))return!1;if(typeof Object.getOwnPropertyDescriptor==="function"){var r=Object.getOwnPropertyDescriptor(e,i);if(r.value!==s||r.enumerable!==!0)return!1}return!0}});var ge=p((Ic,he)=>{var be=typeof Symbol<"u"&&Symbol,Us=za();he.exports=function(){if(typeof be!=="function")return!1;if(typeof Symbol!=="function")return!1;if(typeof be("foo")!=="symbol")return!1;if(typeof Symbol("bar")!=="symbol")return!1;return Us()}});var ya=p((Cc,we)=>{we.exports=typeof Reflect<"u"&&Reflect.getPrototypeOf||null});var _a=p(($c,je)=>{var Ws=ja();je.exports=Ws.getPrototypeOf||null});var ye=p((Oc,ze)=>{var Vs="Function.prototype.bind called on incompatible ",Ys=Object.prototype.toString,Fs=Math.max,Gs="[object Function]",ke=function(e,i){var n=[];for(var s=0;s<e.length;s+=1)n[s]=e[s];for(var o=0;o<i.length;o+=1)n[o+e.length]=i[o];return n},Bs=function(e,i){var n=[];for(var s=i||0,o=0;s<e.length;s+=1,o+=1)n[o]=e[s];return n},Xs=function(a,e){var i="";for(var n=0;n<a.length;n+=1)if(i+=a[n],n+1<a.length)i+=e;return i};ze.exports=function(e){var i=this;if(typeof i!=="function"||Ys.apply(i)!==Gs)throw TypeError(Vs+i);var n=Bs(arguments,1),s,o=function(){if(this instanceof s){var c=i.apply(this,ke(n,arguments));if(Object(c)===c)return c;return this}return i.apply(e,ke(n,arguments))},t=Fs(0,i.length-n.length),r=[];for(var x=0;x<t;x++)r[x]="$"+x;if(s=Function("binder","return function ("+Xs(r,",")+"){ return binder.apply(this,arguments); }")(o),i.prototype){var v=function(){};v.prototype=i.prototype,s.prototype=new v,v.prototype=null}return s}});var M=p((Dc,_e)=>{var Ms=ye();_e.exports=Function.prototype.bind||Ms});var oa=p((Rc,qe)=>{qe.exports=Function.prototype.call});var qa=p((Pc,Se)=>{Se.exports=Function.prototype.apply});var Ze=p((ap,Qe)=>{Qe.exports=typeof Reflect<"u"&&Reflect&&Reflect.apply});var Ke=p((ip,Je)=>{var Ls=M(),Hs=qa(),Ns=oa(),As=Ze();Je.exports=As||Ls.call(Ns,Hs)});var We=p((ep,Ue)=>{var Ts=M(),Es=ea(),Is=oa(),Cs=Ke();Ue.exports=function(e){if(e.length<1||typeof e[0]!=="function")throw new Es("a function is required");return Cs(Ts,Is,e)}});var Xe=p((np,Be)=>{var $s=We(),Ve=ka(),Fe;try{Fe=[].__proto__===Array.prototype}catch(a){if(!a||typeof a!=="object"||!("code"in a)||a.code!=="ERR_PROTO_ACCESS")throw a}var Sa=!!Fe&&Ve&&Ve(Object.prototype,"__proto__"),Ge=Object,Ye=Ge.getPrototypeOf;Be.exports=Sa&&typeof Sa.get==="function"?$s([Sa.get]):typeof Ye==="function"?function(e){return Ye(e==null?e:Ge(e))}:!1});var Ae=p((sp,Ne)=>{var Me=ya(),Le=_a(),He=Xe();Ne.exports=Me?function(e){return Me(e)}:Le?function(e){if(!e||typeof e!=="object"&&typeof e!=="function")throw TypeError("getProto: not an object");return Le(e)}:He?function(e){return He(e)}:null});var ca=p((op,Te)=>{var Os=Function.prototype.call,Ds=Object.prototype.hasOwnProperty,Rs=M();Te.exports=Rs.call(Os,Ds)});var De=p((cp,Oe)=>{var u,Ps=ja(),ao=Gi(),io=Xi(),eo=Li(),no=Ni(),B=Ti(),G=ea(),so=Ci(),oo=Oi(),co=Ri(),po=ae(),to=ee(),ro=se(),lo=ce(),uo=le(),Ce=Function,Qa=function(a){try{return Ce('"use strict"; return ('+a+").constructor;")()}catch(e){}},L=ka(),mo=ve(),Za=function(){throw new G},xo=L?function(){try{return arguments.callee,Za}catch(a){try{return L(arguments,"callee").get}catch(e){return Za}}}():Za,Y=ge()(),w=Ae(),vo=_a(),fo=ya(),$e=qa(),H=oa(),F={},bo=typeof Uint8Array>"u"||!w?u:w(Uint8Array),Z={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?u:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?u:ArrayBuffer,"%ArrayIteratorPrototype%":Y&&w?w([][Symbol.iterator]()):u,"%AsyncFromSyncIteratorPrototype%":u,"%AsyncFunction%":F,"%AsyncGenerator%":F,"%AsyncGeneratorFunction%":F,"%AsyncIteratorPrototype%":F,"%Atomics%":typeof Atomics>"u"?u:Atomics,"%BigInt%":typeof BigInt>"u"?u:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?u:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?u:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?u:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":ao,"%eval%":eval,"%EvalError%":io,"%Float16Array%":typeof Float16Array>"u"?u:Float16Array,"%Float32Array%":typeof Float32Array>"u"?u:Float32Array,"%Float64Array%":typeof Float64Array>"u"?u:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?u:FinalizationRegistry,"%Function%":Ce,"%GeneratorFunction%":F,"%Int8Array%":typeof Int8Array>"u"?u:Int8Array,"%Int16Array%":typeof Int16Array>"u"?u:Int16Array,"%Int32Array%":typeof Int32Array>"u"?u:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":Y&&w?w(w([][Symbol.iterator]())):u,"%JSON%":typeof JSON==="object"?JSON:u,"%Map%":typeof Map>"u"?u:Map,"%MapIteratorPrototype%":typeof Map>"u"||!Y||!w?u:w(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Ps,"%Object.getOwnPropertyDescriptor%":L,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?u:Promise,"%Proxy%":typeof Proxy>"u"?u:Proxy,"%RangeError%":eo,"%ReferenceError%":no,"%Reflect%":typeof Reflect>"u"?u:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?u:Set,"%SetIteratorPrototype%":typeof Set>"u"||!Y||!w?u:w(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?u:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":Y&&w?w(""[Symbol.iterator]()):u,"%Symbol%":Y?Symbol:u,"%SyntaxError%":B,"%ThrowTypeError%":xo,"%TypedArray%":bo,"%TypeError%":G,"%Uint8Array%":typeof Uint8Array>"u"?u:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?u:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?u:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?u:Uint32Array,"%URIError%":so,"%WeakMap%":typeof WeakMap>"u"?u:WeakMap,"%WeakRef%":typeof WeakRef>"u"?u:WeakRef,"%WeakSet%":typeof WeakSet>"u"?u:WeakSet,"%Function.prototype.call%":H,"%Function.prototype.apply%":$e,"%Object.defineProperty%":mo,"%Object.getPrototypeOf%":vo,"%Math.abs%":oo,"%Math.floor%":co,"%Math.max%":po,"%Math.min%":to,"%Math.pow%":ro,"%Math.round%":lo,"%Math.sign%":uo,"%Reflect.getPrototypeOf%":fo};if(w)try{null.error}catch(a){Ja=w(w(a)),Z["%Error.prototype%"]=Ja}var Ja,ho=function a(e){var i;if(e==="%AsyncFunction%")i=Qa("async function () {}");else if(e==="%GeneratorFunction%")i=Qa("function* () {}");else if(e==="%AsyncGeneratorFunction%")i=Qa("async function* () {}");else if(e==="%AsyncGenerator%"){var n=a("%AsyncGeneratorFunction%");if(n)i=n.prototype}else if(e==="%AsyncIteratorPrototype%"){var s=a("%AsyncGenerator%");if(s&&w)i=w(s.prototype)}return Z[e]=i,i},Ee={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},N=M(),pa=ca(),go=N.call(H,Array.prototype.concat),wo=N.call($e,Array.prototype.splice),Ie=N.call(H,String.prototype.replace),ta=N.call(H,String.prototype.slice),jo=N.call(H,RegExp.prototype.exec),ko=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,zo=/\\(\\)?/g,yo=function(e){var i=ta(e,0,1),n=ta(e,-1);if(i==="%"&&n!=="%")throw new B("invalid intrinsic syntax, expected closing `%`");else if(n==="%"&&i!=="%")throw new B("invalid intrinsic syntax, expected opening `%`");var s=[];return Ie(e,ko,function(o,t,r,x){s[s.length]=r?Ie(x,zo,"$1"):t||o}),s},_o=function(e,i){var n=e,s;if(pa(Ee,n))s=Ee[n],n="%"+s[0]+"%";if(pa(Z,n)){var o=Z[n];if(o===F)o=ho(n);if(typeof o>"u"&&!i)throw new G("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:s,name:n,value:o}}throw new B("intrinsic "+e+" does not exist!")};Oe.exports=function(e,i){if(typeof e!=="string"||e.length===0)throw new G("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof i!=="boolean")throw new G('"allowMissing" argument must be a boolean');if(jo(/^%?[^%]*%?$/,e)===null)throw new B("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=yo(e),s=n.length>0?n[0]:"",o=_o("%"+s+"%",i),t=o.name,r=o.value,x=!1,v=o.alias;if(v)s=v[0],wo(n,go([0,1],v));for(var c=1,l=!0;c<n.length;c+=1){var m=n[c],b=ta(m,0,1),z=ta(m,-1);if((b==='"'||b==="'"||b==="`"||(z==='"'||z==="'"||z==="`"))&&b!==z)throw new B("property names with quotes must have matching quotes");if(m==="constructor"||!l)x=!0;if(s+="."+m,t="%"+s+"%",pa(Z,t))r=Z[t];else if(r!=null){if(!(m in r)){if(!i)throw new G("base intrinsic for "+e+" exists, but the property is not available.");return}if(L&&c+1>=n.length){var g=L(r,m);if(l=!!g,l&&"get"in g&&!("originalValue"in g.get))r=g.get;else r=r[m]}else l=pa(r,m),r=r[m];if(l&&!x)Z[t]=r}}return r}});var Pe=p((pp,Re)=>{var qo=za();Re.exports=function(){return qo()&&!!Symbol.toStringTag}});var nn=p((tp,en)=>{var So=De(),an=So("%Object.defineProperty%",!0),Qo=Pe()(),Zo=ca(),Jo=ea(),ra=Qo?Symbol.toStringTag:null;en.exports=function(e,i){var n=arguments.length>2&&!!arguments[2]&&arguments[2].force,s=arguments.length>2&&!!arguments[2]&&arguments[2].nonConfigurable;if(typeof n<"u"&&typeof n!=="boolean"||typeof s<"u"&&typeof s!=="boolean")throw new Jo("if provided, the `overrideIfSet` and `nonConfigurable` options must be booleans");if(ra&&(n||!Zo(e,ra)))if(an)an(e,ra,{configurable:!s,enumerable:!1,value:i,writable:!1});else e[ra]=i}});var on=p((rp,sn)=>{sn.exports=function(a,e){return Object.keys(e).forEach(function(i){a[i]=a[i]||e[i]}),a}});var Mo=p((lp,cn)=>{var Va=ui(),Ko=h("util"),Ka=h("path"),Uo=h("http"),Wo=h("https"),Vo=h("url").parse,Yo=h("fs"),Fo=h("stream").Stream,Go=h("crypto"),Ua=bi(),Bo=Vi(),Xo=nn(),_=ca(),Wa=on();function d(a){if(!(this instanceof d))return new d(a);this._overheadLength=0,this._valueLength=0,this._valuesToMeasure=[],Va.call(this),a=a||{};for(var e in a)this[e]=a[e]}Ko.inherits(d,Va);d.LINE_BREAK=`\r
|
|
11
11
|
`;d.DEFAULT_CONTENT_TYPE="application/octet-stream";d.prototype.append=function(a,e,i){if(i=i||{},typeof i==="string")i={filename:i};var n=Va.prototype.append.bind(this);if(typeof e==="number"||e==null)e=String(e);if(Array.isArray(e)){this._error(Error("Arrays are not supported."));return}var s=this._multiPartHeader(a,e,i),o=this._multiPartFooter();n(s),n(e),n(o),this._trackLength(s,e,i)};d.prototype._trackLength=function(a,e,i){var n=0;if(i.knownLength!=null)n+=Number(i.knownLength);else if(Buffer.isBuffer(e))n=e.length;else if(typeof e==="string")n=Buffer.byteLength(e);if(this._valueLength+=n,this._overheadLength+=Buffer.byteLength(a)+d.LINE_BREAK.length,!e||!e.path&&!(e.readable&&_(e,"httpVersion"))&&!(e instanceof Fo))return;if(!i.knownLength)this._valuesToMeasure.push(e)};d.prototype._lengthRetriever=function(a,e){if(_(a,"fd"))if(a.end!=null&&a.end!=1/0&&a.start!=null)e(null,a.end+1-(a.start?a.start:0));else Yo.stat(a.path,function(i,n){if(i){e(i);return}var s=n.size-(a.start?a.start:0);e(null,s)});else if(_(a,"httpVersion"))e(null,Number(a.headers["content-length"]));else if(_(a,"httpModule"))a.on("response",function(i){a.pause(),e(null,Number(i.headers["content-length"]))}),a.resume();else e("Unknown stream")};d.prototype._multiPartHeader=function(a,e,i){if(typeof i.header==="string")return i.header;var n=this._getContentDisposition(e,i),s=this._getContentType(e,i),o="",t={"Content-Disposition":["form-data",'name="'+a+'"'].concat(n||[]),"Content-Type":[].concat(s||[])};if(typeof i.header==="object")Wa(t,i.header);var r;for(var x in t)if(_(t,x)){if(r=t[x],r==null)continue;if(!Array.isArray(r))r=[r];if(r.length)o+=x+": "+r.join("; ")+d.LINE_BREAK}return"--"+this.getBoundary()+d.LINE_BREAK+o+d.LINE_BREAK};d.prototype._getContentDisposition=function(a,e){var i;if(typeof e.filepath==="string")i=Ka.normalize(e.filepath).replace(/\\/g,"/");else if(e.filename||a&&(a.name||a.path))i=Ka.basename(e.filename||a&&(a.name||a.path));else if(a&&a.readable&&_(a,"httpVersion"))i=Ka.basename(a.client._httpMessage.path||"");if(i)return'filename="'+i+'"'};d.prototype._getContentType=function(a,e){var i=e.contentType;if(!i&&a&&a.name)i=Ua.lookup(a.name);if(!i&&a&&a.path)i=Ua.lookup(a.path);if(!i&&a&&a.readable&&_(a,"httpVersion"))i=a.headers["content-type"];if(!i&&(e.filepath||e.filename))i=Ua.lookup(e.filepath||e.filename);if(!i&&a&&typeof a==="object")i=d.DEFAULT_CONTENT_TYPE;return i};d.prototype._multiPartFooter=function(){return function(a){var e=d.LINE_BREAK,i=this._streams.length===0;if(i)e+=this._lastBoundary();a(e)}.bind(this)};d.prototype._lastBoundary=function(){return"--"+this.getBoundary()+"--"+d.LINE_BREAK};d.prototype.getHeaders=function(a){var e,i={"content-type":"multipart/form-data; boundary="+this.getBoundary()};for(e in a)if(_(a,e))i[e.toLowerCase()]=a[e];return i};d.prototype.setBoundary=function(a){if(typeof a!=="string")throw TypeError("FormData boundary must be a string");this._boundary=a};d.prototype.getBoundary=function(){if(!this._boundary)this._generateBoundary();return this._boundary};d.prototype.getBuffer=function(){var a=new Buffer.alloc(0),e=this.getBoundary();for(var i=0,n=this._streams.length;i<n;i++)if(typeof this._streams[i]!=="function"){if(Buffer.isBuffer(this._streams[i]))a=Buffer.concat([a,this._streams[i]]);else a=Buffer.concat([a,Buffer.from(this._streams[i])]);if(typeof this._streams[i]!=="string"||this._streams[i].substring(2,e.length+2)!==e)a=Buffer.concat([a,Buffer.from(d.LINE_BREAK)])}return Buffer.concat([a,Buffer.from(this._lastBoundary())])};d.prototype._generateBoundary=function(){this._boundary="--------------------------"+Go.randomBytes(12).toString("hex")};d.prototype.getLengthSync=function(){var a=this._overheadLength+this._valueLength;if(this._streams.length)a+=this._lastBoundary().length;if(!this.hasKnownLength())this._error(Error("Cannot calculate proper length in synchronous way."));return a};d.prototype.hasKnownLength=function(){var a=!0;if(this._valuesToMeasure.length)a=!1;return a};d.prototype.getLength=function(a){var e=this._overheadLength+this._valueLength;if(this._streams.length)e+=this._lastBoundary().length;if(!this._valuesToMeasure.length){process.nextTick(a.bind(this,null,e));return}Bo.parallel(this._valuesToMeasure,this._lengthRetriever,function(i,n){if(i){a(i);return}n.forEach(function(s){e+=s}),a(null,e)})};d.prototype.submit=function(a,e){var i,n,s={method:"post"};if(typeof a==="string")a=Vo(a),n=Wa({port:a.port,path:a.pathname,host:a.hostname,protocol:a.protocol},s);else if(n=Wa(a,s),!n.port)n.port=n.protocol==="https:"?443:80;if(n.headers=this.getHeaders(a.headers),n.protocol==="https:")i=Wo.request(n);else i=Uo.request(n);return this.getLength(function(o,t){if(o&&o!=="Unknown stream"){this._error(o);return}if(t)i.setHeader("Content-Length",t);if(this.pipe(i),e){var r,x=function(v,c){return i.removeListener("error",x),i.removeListener("response",r),e.call(this,v,c)};r=x.bind(this,null),i.on("error",x),i.on("response",r)}}.bind(this)),i};d.prototype._error=function(a){if(!this.error)this.error=a,this.pause(),this.emit("error",a)};d.prototype.toString=function(){return"[object FormData]"};Xo(d.prototype,"FormData");cn.exports=d});function No(a){try{return new URL(a)}catch{return null}}function up(a){var e=(typeof a==="string"?No(a):a)||{},i=e.protocol,n=e.host,s=e.port;if(typeof n!=="string"||!n||typeof i!=="string")return"";if(i=i.split(":",1)[0],n=n.replace(/:\d*$/,""),s=parseInt(s)||Ho[i]||0,!Ao(n,s))return"";var o=Ya(i+"_proxy")||Ya("all_proxy");if(o&&o.indexOf("://")===-1)o=i+"://"+o;return o}function Ao(a,e){var i=Ya("no_proxy").toLowerCase();if(!i)return!0;if(i==="*")return!1;return i.split(/[,\s]/).every(function(n){if(!n)return!0;var s=n.match(/^(.+):(\d+)$/),o=s?s[1]:n,t=s?parseInt(s[2]):0;if(t&&t!==e)return!0;if(!/^[.*]/.test(o))return a!==o;if(o.charAt(0)==="*")o=o.slice(1);return!a.endsWith(o)})}function Ya(a){return process.env[a.toLowerCase()]||process.env[a.toUpperCase()]||""}var Ho;var To=Lo(()=>{Ho={ftp:21,gopher:70,http:80,https:443,ws:80,wss:443}});var tn=p((dp,pn)=>{var A;pn.exports=function(){if(!A){try{A=si()("follow-redirects")}catch(a){}if(typeof A!=="function")A=function(){}}A.apply(null,arguments)}});var cc=p((xp,Ia)=>{var E=h("url"),T=E.URL,Eo=h("http"),Io=h("https"),Ma=h("stream").Writable,La=h("assert"),rn=tn();(function(){var e=typeof process<"u",i=typeof window<"u"&&typeof document<"u",n=K(Error.captureStackTrace);if(!e&&(i||!n))console.warn("The follow-redirects package should be excluded from browser builds.")})();var Ha=!1;try{La(new T(""))}catch(a){Ha=a.code==="ERR_INVALID_URL"}var Co=["Authorization","Proxy-Authorization","Cookie"],$o=["auth","host","hostname","href","path","pathname","port","protocol","query","search","hash"],Na=["abort","aborted","connect","error","socket","timeout"],Aa=Object.create(null);Na.forEach(function(a){Aa[a]=function(e,i,n){this._redirectable.emit(a,e,i,n)}});var Ga=I("ERR_INVALID_URL","Invalid URL",TypeError),Ba=I("ERR_FR_REDIRECTION_FAILURE","Redirected request failed"),Oo=I("ERR_FR_TOO_MANY_REDIRECTS","Maximum number of redirects exceeded",Ba),Do=I("ERR_FR_MAX_BODY_LENGTH_EXCEEDED","Request body larger than maxBodyLength limit"),Ro=I("ERR_STREAM_WRITE_AFTER_END","write after end"),Po=Ma.prototype.destroy||un;function j(a,e){if(Ma.call(this),this._sanitizeOptions(a),this._options=a,this._ended=!1,this._ending=!1,this._redirectCount=0,this._redirects=[],this._requestBodyLength=0,this._requestBodyBuffers=[],e)this.on("response",e);var i=this;this._onNativeResponse=function(n){try{i._processResponse(n)}catch(s){i.emit("error",s instanceof Ba?s:new Ba({cause:s}))}},this._headerFilter=new RegExp("^(?:"+Co.concat(a.sensitiveHeaders).map(oc).join("|")+")$","i"),this._performRequest()}j.prototype=Object.create(Ma.prototype);j.prototype.abort=function(){Ea(this._currentRequest),this._currentRequest.abort(),this.emit("abort")};j.prototype.destroy=function(a){return Ea(this._currentRequest,a),Po.call(this,a),this};j.prototype.write=function(a,e,i){if(this._ending)throw new Ro;if(!J(a)&&!nc(a))throw TypeError("data should be a string, Buffer or Uint8Array");if(K(e))i=e,e=null;if(a.length===0){if(i)i();return}if(this._requestBodyLength+a.length<=this._options.maxBodyLength)this._requestBodyLength+=a.length,this._requestBodyBuffers.push({data:a,encoding:e}),this._currentRequest.write(a,e,i);else this.emit("error",new Do),this.abort()};j.prototype.end=function(a,e,i){if(K(a))i=a,a=e=null;else if(K(e))i=e,e=null;if(!a)this._ended=this._ending=!0,this._currentRequest.end(null,null,i);else{var n=this,s=this._currentRequest;this.write(a,e,function(){n._ended=!0,s.end(null,null,i)}),this._ending=!0}};j.prototype.setHeader=function(a,e){this._options.headers[a]=e,this._currentRequest.setHeader(a,e)};j.prototype.removeHeader=function(a){delete this._options.headers[a],this._currentRequest.removeHeader(a)};j.prototype.setTimeout=function(a,e){var i=this;function n(t){t.setTimeout(a),t.removeListener("timeout",t.destroy),t.addListener("timeout",t.destroy)}function s(t){if(i._timeout)clearTimeout(i._timeout);i._timeout=setTimeout(function(){i.emit("timeout"),o()},a),n(t)}function o(){if(i._timeout)clearTimeout(i._timeout),i._timeout=null;if(i.removeListener("abort",o),i.removeListener("error",o),i.removeListener("response",o),i.removeListener("close",o),e)i.removeListener("timeout",e);if(!i.socket)i._currentRequest.removeListener("socket",s)}if(e)this.on("timeout",e);if(this.socket)s(this.socket);else this._currentRequest.once("socket",s);return this.on("socket",n),this.on("abort",o),this.on("error",o),this.on("response",o),this.on("close",o),this};["flushHeaders","getHeader","setNoDelay","setSocketKeepAlive"].forEach(function(a){j.prototype[a]=function(e,i){return this._currentRequest[a](e,i)}});["aborted","connection","socket"].forEach(function(a){Object.defineProperty(j.prototype,a,{get:function(){return this._currentRequest[a]}})});j.prototype._sanitizeOptions=function(a){if(!a.headers)a.headers={};if(!ec(a.sensitiveHeaders))a.sensitiveHeaders=[];if(a.host){if(!a.hostname)a.hostname=a.host;delete a.host}if(!a.pathname&&a.path){var e=a.path.indexOf("?");if(e<0)a.pathname=a.path;else a.pathname=a.path.substring(0,e),a.search=a.path.substring(e)}};j.prototype._performRequest=function(){var a=this._options.protocol,e=this._options.nativeProtocols[a];if(!e)throw TypeError("Unsupported protocol "+a);if(this._options.agents){var i=a.slice(0,-1);this._options.agent=this._options.agents[i]}var n=this._currentRequest=e.request(this._options,this._onNativeResponse);n._redirectable=this;for(var s of Na)n.on(s,Aa[s]);if(this._currentUrl=/^\//.test(this._options.path)?E.format(this._options):this._options.path,this._isRedirect){var o=0,t=this,r=this._requestBodyBuffers;(function x(v){if(n===t._currentRequest){if(v)t.emit("error",v);else if(o<r.length){var c=r[o++];if(!n.finished)n.write(c.data,c.encoding,x)}else if(t._ended)n.end()}})()}};j.prototype._processResponse=function(a){var e=a.statusCode;if(this._options.trackRedirects)this._redirects.push({url:this._currentUrl,headers:a.headers,statusCode:e});var i=a.headers.location;if(!i||this._options.followRedirects===!1||e<300||e>=400){a.responseUrl=this._currentUrl,a.redirects=this._redirects,this.emit("response",a),this._requestBodyBuffers=[];return}if(Ea(this._currentRequest),a.destroy(),++this._redirectCount>this._options.maxRedirects)throw new Oo;var n,s=this._options.beforeRedirect;if(s)n=Object.assign({Host:a.req.getHeader("host")},this._options.headers);var o=this._options.method;if((e===301||e===302)&&this._options.method==="POST"||e===303&&!/^(?:GET|HEAD)$/.test(this._options.method))this._options.method="GET",this._requestBodyBuffers=[],Fa(/^content-/i,this._options.headers);var t=Fa(/^host$/i,this._options.headers),r=Ta(this._currentUrl),x=t||r.host,v=/^\w+:/.test(i)?this._currentUrl:E.format(Object.assign(r,{host:x})),c=ac(i,v);if(rn("redirecting to",c.href),this._isRedirect=!0,Xa(c,this._options),c.protocol!==r.protocol&&c.protocol!=="https:"||c.host!==x&&!ic(c.host,x))Fa(this._headerFilter,this._options.headers);if(K(s)){var l={headers:a.headers,statusCode:e},m={url:v,method:o,headers:n};s(this._options,l,m),this._sanitizeOptions(this._options)}this._performRequest()};function ln(a){var e={maxRedirects:21,maxBodyLength:10485760},i={};return Object.keys(a).forEach(function(n){var s=n+":",o=i[s]=a[n],t=e[n]=Object.create(o);function r(v,c,l){if(sc(v))v=Xa(v);else if(J(v))v=Xa(Ta(v));else l=c,c=mn(v),v={protocol:s};if(K(c))l=c,c=null;if(c=Object.assign({maxRedirects:e.maxRedirects,maxBodyLength:e.maxBodyLength},v,c),c.nativeProtocols=i,!J(c.host)&&!J(c.hostname))c.hostname="::1";return La.equal(c.protocol,s,"protocol mismatch"),rn("options",c),new j(c,l)}function x(v,c,l){var m=t.request(v,c,l);return m.end(),m}Object.defineProperties(t,{request:{value:r,configurable:!0,enumerable:!0,writable:!0},get:{value:x,configurable:!0,enumerable:!0,writable:!0}})}),e}function un(){}function Ta(a){var e;if(Ha)e=new T(a);else if(e=mn(E.parse(a)),!J(e.protocol))throw new Ga({input:a});return e}function ac(a,e){return Ha?new T(a,e):Ta(E.resolve(e,a))}function mn(a){if(/^\[/.test(a.hostname)&&!/^\[[:0-9a-f]+\]$/i.test(a.hostname))throw new Ga({input:a.href||a});if(/^\[/.test(a.host)&&!/^\[[:0-9a-f]+\](:\d+)?$/i.test(a.host))throw new Ga({input:a.href||a});return a}function Xa(a,e){var i=e||{};for(var n of $o)i[n]=a[n];if(i.hostname.startsWith("["))i.hostname=i.hostname.slice(1,-1);if(i.port!=="")i.port=Number(i.port);return i.path=i.search?i.pathname+i.search:i.pathname,i}function Fa(a,e){var i;for(var n in e)if(a.test(n))i=e[n],delete e[n];return i===null||typeof i>"u"?void 0:String(i).trim()}function I(a,e,i){function n(s){if(K(Error.captureStackTrace))Error.captureStackTrace(this,this.constructor);Object.assign(this,s||{}),this.code=a,this.message=this.cause?e+": "+this.cause.message:e}return n.prototype=new(i||Error),Object.defineProperties(n.prototype,{constructor:{value:n,enumerable:!1},name:{value:"Error ["+a+"]",enumerable:!1}}),n}function Ea(a,e){for(var i of Na)a.removeListener(i,Aa[i]);a.on("error",un),a.destroy(e)}function ic(a,e){La(J(a)&&J(e));var i=a.length-e.length-1;return i>0&&a[i]==="."&&a.endsWith(e)}function ec(a){return a instanceof Array}function J(a){return typeof a==="string"||a instanceof String}function K(a){return typeof a==="function"}function nc(a){return typeof a==="object"&&"length"in a}function sc(a){return T&&a instanceof T}function oc(a){return a.replace(/[\]\\/()*+?.$]/g,"\\$&")}Ia.exports=ln({http:Eo,https:Io});Ia.exports.wrap=ln});
|
|
12
|
-
export{Mo as
|
|
12
|
+
export{Mo as a5,up as b5,To as c5,si as d5,cc as e5};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{
|
|
2
|
-
export{u as
|
|
1
|
+
import{bma as l}from"./cli-0.1.14-qn4ftczz.mjs";function o(i,e,r){var t=null;if(r!==void 0&&(t=""+r),e.key!==void 0&&(t=""+e.key),"key"in e){r={};for(var s in e)s!=="key"&&(r[s]=e[s])}else r=e;return e=r.ref,{$$typeof:n,type:i,key:t,ref:e!==void 0?e:null,props:r}}var n,d,u,E,a;var c=l(()=>{n=Symbol.for("react.transitional.element"),d=Symbol.for("react.fragment");u=d,E=o,a=o});
|
|
2
|
+
export{u as DV,E as EV,a as FV,c as GV};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{yg as p}from"./cli-0.1.14-ydm3fwx1.mjs";import{AK as P,DK as t,yk as W,zK as I,zk as l}from"./cli-0.1.14-j5sbzwhy.mjs";import{zV as J}from"./cli-0.1.14-3scecgzx.mjs";import{MV as H,NV as i}from"./cli-0.1.14-jf8019sb.mjs";import{OV as C,QV as n}from"./cli-0.1.14-d4zkffre.mjs";import{GZ as S,LZ as m,_2 as R,e3 as V,y3 as c,z2 as v}from"./cli-0.1.14-a6kwmqhz.mjs";import{$4 as u,K4 as Q}from"./cli-0.1.14-stv1d0q3.mjs";import{U$ as T,V5 as Z,W5 as M,X$ as X,_5 as _,d6 as f,lba as k,mba as Y,oaa as O,sba as y,vba as D,yba as g}from"./cli-0.1.14-2f7s5xbd.mjs";import{rca as $,sca as h}from"./cli-0.1.14-kmsvd61a.mjs";import{cda as q,hda as E,ida as A}from"./cli-0.1.14-9vc52dnj.mjs";import{wfa as x,zfa as b}from"./cli-0.1.14-2mzb5ath.mjs";import{bma as U}from"./cli-0.1.14-qn4ftczz.mjs";async function s(){if(Z())return x("[Bootstrap] Skipped: Nonessential traffic disabled"),null;if(S()!=="firstParty")return x("[Bootstrap] Skipped: 3P provider"),null;let w=v();if(!(R()?.accessToken&&V())&&!w)return x("[Bootstrap] Skipped: no usable OAuth or API key"),null;let G=`${E().BASE_API_URL}/api/claude_cli/bootstrap`;try{return await H(async()=>{let j=R()?.accessToken,z;if(j&&V())z={Authorization:`Bearer ${j}`,"anthropic-beta":q};else if(w)z={"x-api-key":w};else return x("[Bootstrap] No auth available on retry, aborting"),null;x("[Bootstrap] Fetching");let N=await Q.get(G,{headers:{"Content-Type":"application/json","User-Agent":C(),...z},timeout:5000}),B=d().safeParse(N.data);if(!B.success)return x(`[Bootstrap] Response failed validation: ${B.error.message}`),null;return x("[Bootstrap] Fetch ok"),B.data})}catch(j){if(Q.isAxiosError(j)){let z=j.response?.status??"no-response",N=j.code??"unknown-code",B=j.config?.method?.toUpperCase()??"UNKNOWN",K=j.config?.url??"unknown-url",L=j.message??"unknown axios error";x(`[Bootstrap] Fetch failed: status=${z} code=${N} method=${B} url=${K} message=${L}`)}else{let z=j instanceof Error?j.message:String(j);x(`[Bootstrap] Fetch failed: ${z}`)}throw j}}async function a(){let w=Y();if(!w?.startsWith("openai:"))return null;let{baseUrl:F}=k(),G=await P({baseUrl:F,apiKey:D()?.apiKey});if(G===null)return x("[Bootstrap] Local OpenAI model discovery failed"),null;let j=I(F);return{clientData:X().clientDataCache??null,additionalModelOptionsScope:w,additionalModelOptions:G.map((z)=>({value:z,label:z,description:`Detected from ${j}`}))}}async function Yj(){try{let w=Y(),F=null;if(w==="firstParty"){let B=await s();if(!B)return;F={clientData:B.client_data??null,additionalModelOptions:B.additional_model_options??[],additionalModelOptionsScope:w}}else if(w?.startsWith("openai:")){if(F=await a(),!F)return}else{x("[Bootstrap] Skipped: no additional model source");return}let{clientData:G,additionalModelOptions:j,additionalModelOptionsScope:z}=F,N=X();if(W(N.clientDataCache,G)&&W(N.additionalModelOptionsCache,j)&&N.additionalModelOptionsCacheScope===z){x("[Bootstrap] Cache unchanged, skipping write");return}x("[Bootstrap] Cache updated, persisting to disk"),T((B)=>({...B,clientDataCache:G,additionalModelOptionsCache:j,additionalModelOptionsCacheScope:z}))}catch(w){_(w)}}var d;var r=U(()=>{u();l();c();p();A();O();b();i();h();f();m();M();t();n();g();y();d=$(()=>J.object({client_data:J.record(J.unknown()).nullish(),additional_model_options:J.array(J.object({model:J.string(),name:J.string(),description:J.string()}).transform(({model:w,name:F,description:G})=>({value:w,label:F,description:G}))).nullish()}))});
|
|
2
|
+
export{Yj as qb,r as rb};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{Te as SZ,Ue as kZ,Ve as vz}from"./cli-0.1.13-y7aqqca1.mjs";import{cg as JJ,dg as tQ}from"./cli-0.1.13-1pxg82cx.mjs";import{rh as ZJ,sh as oQ}from"./cli-0.1.13-b40skdsz.mjs";import{At as aJ,Bt as bz,EH as UZ,FH as SQ,GH as kQ,HH as $Z,It as oJ,JH as IQ,KH as TQ,Kt as _Z,Li as lJ,MH as RJ,NH as xJ,OH as $J,PH as hQ,Pi as JQ,QH as RQ,Si as yZ,Ut as tJ,VH as d0,Yt as Cz,bs as bQ,cj as rJ,cs as XX,ds as CQ,eD as EZ,fD as CZ,gD as bZ,hD as TJ,iD as yQ,iI as xQ,iK as pQ,jD as hJ,jI as $Q,js as WX,lI as FZ,lK as VX,mH as UJ,mI as GQ,mu as o0,nH as jJ,nI as LQ,nu as SJ,oI as fQ,ou as kJ,pI as uQ,pu as IJ,qu as wz,sD as qJ,tI as FQ,ts as vQ,uI as KQ,us as qX,vi as xZ,wD as Bz,wi as QX,xH as _Q}from"./cli-0.1.13-fh5dndvp.mjs";import{GP as EQ,HP as zX}from"./cli-0.1.13-5s4m8qj9.mjs";import{LS as BZ,MS as oZ,aT as eZ,eT as aQ,fT as OZ,gT as YX}from"./cli-0.1.13-g654740k.mjs";import{AT as p0,AV as f0,ET as PZ,LU as aZ,MU as lQ,OU as MQ,PU as JX,VU as C,WU as HQ,XU as g,YU as gz,jT as x0}from"./cli-0.1.13-hjqn3n5a.mjs";import{vX as $0,wX as B,xX as $,yX as L0}from"./cli-0.1.13-ck28msre.mjs";import{zX as R0}from"./cli-0.1.13-79vtnprb.mjs";import{VX as tZ,WX as sZ,XX as rQ}from"./cli-0.1.13-2vrh3n9y.mjs";import{N4 as nJ,X4 as iJ,k4 as BQ,l4 as cz,q4 as s0,q5 as Ez,t4 as e0}from"./cli-0.1.13-bzgpcgdt.mjs";import{M5 as RZ,N5 as ZX}from"./cli-0.1.13-v6z41645.mjs";import{O_ as jQ,Pba as wZ,Y7 as v0,Z7 as lZ,d$ as ez,gca as ZQ,jaa as VZ,raa as rZ}from"./cli-0.1.13-dag38tkx.mjs";import{Aea as HZ,Fea as GZ,Gea as LZ,Sea as Vz,nea as vZ,oea as jz}from"./cli-0.1.13-wwnez3j0.mjs";import{Ifa as NZ,Jfa as MJ,Tfa as t0,_fa as Mz}from"./cli-0.1.13-gd3nndc7.mjs";import{oha as c0,rha as dz}from"./cli-0.1.13-144gn3fd.mjs";import{Bha as UQ,Lha as sz}from"./cli-0.1.13-1g6bgaa6.mjs";import{Ima as DQ,gna as tz}from"./cli-0.1.13-52f40ba4.mjs";import{Tna as A0,Xna as N0}from"./cli-0.1.13-bj67mp7n.mjs";function cZ(J){let Z=qZ.c(6),{children:Q}=J,[z,X]=F0.useState(null),[W,q]=F0.useState(null),V;if(Z[0]!==Q||Z[1]!==W)V=B(pZ.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(uZ.Provider,{value:X,children:B(dZ.Provider,{value:q,children:B(fZ.Provider,{value:z,children:V})})}),Z[3]=z,Z[4]=V,Z[5]=Y;else Y=Z[5];return Y}function gZ(){return F0.useContext(fZ)}function mZ(){return F0.useContext(pZ)}function DX(J){let Z=qZ.c(8),Q=F0.useContext(uZ),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];F0.useEffect(z,X),F0.useEffect(W,q)}function UX(J){let Z=qZ.c(8),Q=F0.useContext(dZ),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];F0.useEffect(z,X),F0.useEffect(W,q)}var qZ,F0,fZ,uZ,pZ,dZ;var nZ=N0(()=>{L0();qZ=A0(x0(),1),F0=A0(R0(),1),fZ=F0.createContext(null),uZ=F0.createContext(null),pZ=F0.createContext(null),dZ=F0.createContext(null)});function YZ(J){return J.type==="attachment"&&iQ.has(J.attachment.type)}var nQ,iQ;var AZ=N0(()=>{nQ=["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"],iQ=new Set(nQ)});import{fileURLToPath as sQ}from"url";function pX(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 eQ(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"&&!Zz(W))continue;let q=W.type==="assistant";if(q&&!z)Q++;z=q}return Q}function Zz(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 dX(J,Z){if(Z===null)return;let Q=Z;while(Q<J.length&&(J[Q]?.type==="progress"||YZ(J[Q])))Q++;let z=J[Q]?.uuid;if(!z)return;let X=eQ(J,Z);return{firstUnseenUuid:z,count:Math.max(1,X)}}function cX(J){let Z=i0.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,I=F===void 0?!1:F,Z0=P===void 0?!1:P,d=v===void 0?0:v,{rows:O,columns:b}=BZ(),[_,N]=q0.useState(null),D;if(Z[0]===Symbol.for("react.memo_cache_sentinel"))D={setStickyPrompt:N},Z[0]=D;else D=Z[0];let p=D,J0;if(Z[1]!==Y)J0=(h)=>Y?.current?.subscribe(h)??zz,Z[1]=Y,Z[2]=J0;else J0=Z[2];let E=J0,S;if(Z[3]!==K||Z[4]!==Y)S=()=>{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]=S;else S=Z[5];let H0=q0.useSyncExternalStore(E,S),Y0;if(Z[6]===Symbol.for("react.memo_cache_sentinel"))Y0=[],Z[6]=Y0;else Y0=Z[6];if(q0.useLayoutEffect(Jz,Y0),p0()){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(Wz,{text:z0.text,onClick:z0.scrollTo}),Z[7]=z0,Z[8]=X0;else X0=Z[8];let w0=Q0?0:1,T;if(Z[9]!==Q)T=B(DZ,{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]!==w0)i=$(JJ,{ref:Y,flexGrow:1,flexDirection:"column",paddingTop:w0,stickyScroll:!0,children:[T,X]}),Z[11]=X,Z[12]=Y,Z[13]=T,Z[14]=w0,Z[15]=i;else i=Z[15];let o;if(Z[16]!==I||Z[17]!==d||Z[18]!==M||Z[19]!==X||Z[20]!==H0)o=!I&&H0&&X==null&&B(Xz,{count:d,onClick:M}),Z[16]=I,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(C,{position:"absolute",bottom:0,right:0,opaque:!0,children:W}),Z[22]=W,Z[23]=t;else t=Z[23];let k;if(Z[24]!==i||Z[25]!==o||Z[26]!==t||Z[27]!==X0)k=$(C,{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]=k;else k=Z[28];let W0,w;if(Z[29]===Symbol.for("react.memo_cache_sentinel"))W0=B(qz,{}),w=B(Yz,{}),Z[29]=W0,Z[30]=w;else W0=Z[29],w=Z[30];let U;if(Z[31]!==z)U=$(C,{flexDirection:"column",flexShrink:0,width:"100%",maxHeight:"50%",children:[W0,w,B(C,{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]!==b||Z[34]!==q||Z[35]!==V||Z[36]!==O)R=q!=null&&B(eZ,{value:{rows:O-iZ-1,columns:b-4,scrollRef:V??null},children:$(C,{position:"absolute",bottom:0,left:0,right:0,maxHeight:O-iZ,flexDirection:"column",overflow:"hidden",opaque:!0,children:[B(C,{flexShrink:0,children:B(g,{color:"permission",children:"▔".repeat(b)})}),B(C,{flexDirection:"column",paddingX:2,flexShrink:0,overflow:"hidden",children:q})]})}),Z[33]=b,Z[34]=q,Z[35]=V,Z[36]=O,Z[37]=R;else R=Z[37];let s;if(Z[38]!==k||Z[39]!==U||Z[40]!==R)s=$(cZ,{children:[k,U,R]}),Z[38]=k,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=$($0,{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 Jz(){if(!p0())return;let J=aZ.get(process.stdout);if(!J)return;return J.onHyperlinkClick=Qz,()=>{J.onHyperlinkClick=void 0}}function Qz(J){if(J.startsWith("file:"))try{tZ(sQ(J))}catch{}else sZ(J)}function zz(){}function Xz(J){let Z=i0.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 ${VZ(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(C,{position:"absolute",bottom:0,left:0,right:0,justifyContent:"center",children:B(C,{onClick:z,onMouseEnter:q,onMouseLeave:V,children:F})}),Z[7]=z,Z[8]=F,Z[9]=P;else P=Z[9];return P}function Wz(J){let Z=i0.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(C,{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 qz(){let J=i0.c(4),Z=gZ();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(C,{position:"absolute",bottom:"100%",left:0,right:0,paddingX:2,paddingTop:1,flexDirection:"column",opaque:!0,children:B(ZJ,{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 Yz(){let J=i0.c(2),Z=mZ();if(!Z)return null;let Q;if(J[0]!==Z)Q=B(C,{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 i0,q0,iZ=2,DZ;var QJ=N0(()=>{lZ();aQ();nZ();oZ();tQ();lQ();f0();rQ();PZ();rZ();AZ();oQ();L0();i0=A0(x0(),1),q0=A0(R0(),1),DZ=q0.createContext({setStickyPrompt:()=>{}})});function zJ(J,Z){for(let Q of J)if(!Z.has(Q))return!1;return!0}var XJ=()=>{};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(`<${HZ}`))return!1;if(UZ(Z.text,GZ)!=="completed")return!1;return UZ(Z.text,LZ)?.startsWith(qJ)??!1}function YJ(J,Z){if(!p0())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:`<${HZ}><${GZ}>completed</${GZ}><${LZ}>${W} background commands completed</${LZ}></${HZ}>`}]}})}else Q.push(X),z++}return Q}var VJ=N0(()=>{Vz();Bz();PZ();FZ()});function BJ(J){return J.type==="system"&&J.subtype==="stop_hook_summary"&&J.hookLabel!==void 0}function HJ(J){let Z=[],Q=0;while(Q<J.length){let z=J[Q];if(BJ(z)){let X=z.hookLabel,W=[];while(Q<J.length){let q=J[Q];if(!BJ(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 GJ=()=>{};function LJ(J){return J.type==="attachment"&&J.attachment.type==="task_status"&&J.attachment.taskType==="in_process_teammate"&&J.attachment.status==="completed"}function FJ(J){let Z=[],Q=0;while(Q<J.length){let z=J[Q];if(LJ(z)){let X=0;while(Q<J.length&&LJ(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 KJ=()=>{};function Hz(J){let Z=NJ.get(J);if(!Z)Z=new Set(J.filter((Q)=>Q.renderGroupedToolUse).map((Q)=>Q.name)),NJ.set(J,Z);return Z}function jZ(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 wJ(J,Z,Q=!1){if(Q)return{messages:J};let z=Hz(Z),X=new Map;for(let F of J){let P=jZ(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=jZ(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=jZ(F);if(P){let v=`${P.messageId}:${P.toolName}`,M=W.get(v);if(M){if(!K.has(v)){K.add(v);let I=M[0],Z0=[];for(let O of M){let b=O.message.content[0].id,_=V.get(b);if(_)Z0.push(_)}let d={type:"grouped_tool_use",toolName:P.toolName,messages:M,results:Z0,displayMessage:I,uuid:`grouped-${I.uuid}`,timestamp:I.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((I)=>q.has(I.tool_use_id)))continue}}Y.push(F)}return{messages:Y}}var NJ;var OJ=N0(()=>{NJ=new WeakMap});function KZ(J){let Z=DJ.get(J);if(Z!==void 0)return Z;let Q=Gz(J).toLowerCase();return DJ.set(J,Q),Q}function Gz(J){let Z="";switch(J.type){case"user":{let X=J.message.content;if(typeof X==="string")Z=PJ.has(X)?"":X;else{let W=[];for(let q of X)if(q.type==="text"){if(!PJ.has(q.text))W.push(q.text)}else if(q.type==="tool_result")W.push(Fz(J.toolUseResult));Z=W.join(`
|
|
1
|
+
import{Qe as SZ,Re as kZ,Se as vz}from"./cli-0.1.14-4tmbgg29.mjs";import{rg as ZJ,sg as oQ}from"./cli-0.1.14-90zkq8jm.mjs";import{wg as JJ,xg as tQ}from"./cli-0.1.14-zq66y0mv.mjs";import{$G as UJ,$H as GQ,AH as xJ,Ah as xZ,BH as $J,Bh as QX,CH as hQ,DH as RQ,IH as d0,Jt as tJ,Nt as Cz,Or as bQ,Pr as XX,Qh as lJ,Qr as CQ,TC as EZ,UC as CZ,Uh as JQ,VC as bZ,WC as TJ,Wr as WX,XC as yQ,XH as xQ,XJ as pQ,Xh as yZ,YC as hJ,YH as $Q,_H as FZ,_J as VX,aH as jJ,aI as LQ,bI as fQ,bu as o0,cI as uQ,cu as SJ,du as kJ,es as vQ,eu as IJ,fD as qJ,fs as qX,fu as wz,gI as FQ,hI as KQ,hi as rJ,jD as Bz,kH as _Q,nt as aJ,ot as bz,rH as UZ,sH as SQ,tH as kQ,uH as $Z,uj as EQ,vj as zX,wH as IQ,xH as TQ,xt as oJ,zH as RJ,zt as _Z}from"./cli-0.1.14-j5sbzwhy.mjs";import{HS as eZ,LS as aQ,MS as OZ,NS as YX,qS as BZ,rS as oZ}from"./cli-0.1.14-w6nzk5dc.mjs";import{AU as C,BU as HQ,CU as g,DU as gz,QS as x0,fT as p0,fV as f0,jT as PZ,qU as aZ,rU as lQ,tU as MQ,uU as JX}from"./cli-0.1.14-seq2fm2d.mjs";import{DV as $0,EV as B,FV as $,GV as L0}from"./cli-0.1.14-hjktwgtk.mjs";import{HV as R0}from"./cli-0.1.14-harz1d9d.mjs";import{bW as tZ,cW as sZ,dW as rQ}from"./cli-0.1.14-cp2pada5.mjs";import{B2 as e0,V2 as nJ,d3 as iJ,s2 as BQ,t2 as cz,y2 as s0,y3 as Ez}from"./cli-0.1.14-a6kwmqhz.mjs";import{U3 as RZ,V3 as ZX}from"./cli-0.1.14-jbn4ywda.mjs";import{W8 as jQ,X$ as wZ,e6 as v0,f6 as lZ,l9 as ez,oaa as ZQ,r_ as VZ,z_ as rZ}from"./cli-0.1.14-2f7s5xbd.mjs";import{Ica as HZ,Nca as GZ,Oca as LZ,_ca as Vz,vca as vZ,wca as jz}from"./cli-0.1.14-cdby401e.mjs";import{$da as t0,Qda as NZ,Rda as MJ,gea as Mz}from"./cli-0.1.14-mgcmwvcn.mjs";import{wfa as c0,zfa as dz}from"./cli-0.1.14-2mzb5ath.mjs";import{Dfa as UQ,Nfa as sz}from"./cli-0.1.14-s9m1y93w.mjs";import{Oka as DQ,mla as tz}from"./cli-0.1.14-r46jh9af.mjs";import{Zla as A0,bma as N0}from"./cli-0.1.14-qn4ftczz.mjs";function cZ(J){let Z=qZ.c(6),{children:Q}=J,[z,X]=F0.useState(null),[W,q]=F0.useState(null),V;if(Z[0]!==Q||Z[1]!==W)V=B(pZ.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(uZ.Provider,{value:X,children:B(dZ.Provider,{value:q,children:B(fZ.Provider,{value:z,children:V})})}),Z[3]=z,Z[4]=V,Z[5]=Y;else Y=Z[5];return Y}function gZ(){return F0.useContext(fZ)}function mZ(){return F0.useContext(pZ)}function DX(J){let Z=qZ.c(8),Q=F0.useContext(uZ),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];F0.useEffect(z,X),F0.useEffect(W,q)}function UX(J){let Z=qZ.c(8),Q=F0.useContext(dZ),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];F0.useEffect(z,X),F0.useEffect(W,q)}var qZ,F0,fZ,uZ,pZ,dZ;var nZ=N0(()=>{L0();qZ=A0(x0(),1),F0=A0(R0(),1),fZ=F0.createContext(null),uZ=F0.createContext(null),pZ=F0.createContext(null),dZ=F0.createContext(null)});function YZ(J){return J.type==="attachment"&&iQ.has(J.attachment.type)}var nQ,iQ;var AZ=N0(()=>{nQ=["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"],iQ=new Set(nQ)});import{fileURLToPath as sQ}from"url";function pX(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 eQ(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"&&!Zz(W))continue;let q=W.type==="assistant";if(q&&!z)Q++;z=q}return Q}function Zz(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 dX(J,Z){if(Z===null)return;let Q=Z;while(Q<J.length&&(J[Q]?.type==="progress"||YZ(J[Q])))Q++;let z=J[Q]?.uuid;if(!z)return;let X=eQ(J,Z);return{firstUnseenUuid:z,count:Math.max(1,X)}}function cX(J){let Z=i0.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,I=F===void 0?!1:F,Z0=P===void 0?!1:P,d=v===void 0?0:v,{rows:O,columns:b}=BZ(),[_,N]=q0.useState(null),D;if(Z[0]===Symbol.for("react.memo_cache_sentinel"))D={setStickyPrompt:N},Z[0]=D;else D=Z[0];let p=D,J0;if(Z[1]!==Y)J0=(h)=>Y?.current?.subscribe(h)??zz,Z[1]=Y,Z[2]=J0;else J0=Z[2];let E=J0,S;if(Z[3]!==K||Z[4]!==Y)S=()=>{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]=S;else S=Z[5];let H0=q0.useSyncExternalStore(E,S),Y0;if(Z[6]===Symbol.for("react.memo_cache_sentinel"))Y0=[],Z[6]=Y0;else Y0=Z[6];if(q0.useLayoutEffect(Jz,Y0),p0()){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(Wz,{text:z0.text,onClick:z0.scrollTo}),Z[7]=z0,Z[8]=X0;else X0=Z[8];let w0=Q0?0:1,T;if(Z[9]!==Q)T=B(DZ,{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]!==w0)i=$(JJ,{ref:Y,flexGrow:1,flexDirection:"column",paddingTop:w0,stickyScroll:!0,children:[T,X]}),Z[11]=X,Z[12]=Y,Z[13]=T,Z[14]=w0,Z[15]=i;else i=Z[15];let o;if(Z[16]!==I||Z[17]!==d||Z[18]!==M||Z[19]!==X||Z[20]!==H0)o=!I&&H0&&X==null&&B(Xz,{count:d,onClick:M}),Z[16]=I,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(C,{position:"absolute",bottom:0,right:0,opaque:!0,children:W}),Z[22]=W,Z[23]=t;else t=Z[23];let k;if(Z[24]!==i||Z[25]!==o||Z[26]!==t||Z[27]!==X0)k=$(C,{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]=k;else k=Z[28];let W0,w;if(Z[29]===Symbol.for("react.memo_cache_sentinel"))W0=B(qz,{}),w=B(Yz,{}),Z[29]=W0,Z[30]=w;else W0=Z[29],w=Z[30];let U;if(Z[31]!==z)U=$(C,{flexDirection:"column",flexShrink:0,width:"100%",maxHeight:"50%",children:[W0,w,B(C,{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]!==b||Z[34]!==q||Z[35]!==V||Z[36]!==O)R=q!=null&&B(eZ,{value:{rows:O-iZ-1,columns:b-4,scrollRef:V??null},children:$(C,{position:"absolute",bottom:0,left:0,right:0,maxHeight:O-iZ,flexDirection:"column",overflow:"hidden",opaque:!0,children:[B(C,{flexShrink:0,children:B(g,{color:"permission",children:"▔".repeat(b)})}),B(C,{flexDirection:"column",paddingX:2,flexShrink:0,overflow:"hidden",children:q})]})}),Z[33]=b,Z[34]=q,Z[35]=V,Z[36]=O,Z[37]=R;else R=Z[37];let s;if(Z[38]!==k||Z[39]!==U||Z[40]!==R)s=$(cZ,{children:[k,U,R]}),Z[38]=k,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=$($0,{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 Jz(){if(!p0())return;let J=aZ.get(process.stdout);if(!J)return;return J.onHyperlinkClick=Qz,()=>{J.onHyperlinkClick=void 0}}function Qz(J){if(J.startsWith("file:"))try{tZ(sQ(J))}catch{}else sZ(J)}function zz(){}function Xz(J){let Z=i0.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 ${VZ(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(C,{position:"absolute",bottom:0,left:0,right:0,justifyContent:"center",children:B(C,{onClick:z,onMouseEnter:q,onMouseLeave:V,children:F})}),Z[7]=z,Z[8]=F,Z[9]=P;else P=Z[9];return P}function Wz(J){let Z=i0.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(C,{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 qz(){let J=i0.c(4),Z=gZ();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(C,{position:"absolute",bottom:"100%",left:0,right:0,paddingX:2,paddingTop:1,flexDirection:"column",opaque:!0,children:B(ZJ,{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 Yz(){let J=i0.c(2),Z=mZ();if(!Z)return null;let Q;if(J[0]!==Z)Q=B(C,{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 i0,q0,iZ=2,DZ;var QJ=N0(()=>{lZ();aQ();nZ();oZ();tQ();lQ();f0();rQ();PZ();rZ();AZ();oQ();L0();i0=A0(x0(),1),q0=A0(R0(),1),DZ=q0.createContext({setStickyPrompt:()=>{}})});function zJ(J,Z){for(let Q of J)if(!Z.has(Q))return!1;return!0}var XJ=()=>{};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(`<${HZ}`))return!1;if(UZ(Z.text,GZ)!=="completed")return!1;return UZ(Z.text,LZ)?.startsWith(qJ)??!1}function YJ(J,Z){if(!p0())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:`<${HZ}><${GZ}>completed</${GZ}><${LZ}>${W} background commands completed</${LZ}></${HZ}>`}]}})}else Q.push(X),z++}return Q}var VJ=N0(()=>{Vz();Bz();PZ();FZ()});function BJ(J){return J.type==="system"&&J.subtype==="stop_hook_summary"&&J.hookLabel!==void 0}function HJ(J){let Z=[],Q=0;while(Q<J.length){let z=J[Q];if(BJ(z)){let X=z.hookLabel,W=[];while(Q<J.length){let q=J[Q];if(!BJ(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 GJ=()=>{};function LJ(J){return J.type==="attachment"&&J.attachment.type==="task_status"&&J.attachment.taskType==="in_process_teammate"&&J.attachment.status==="completed"}function FJ(J){let Z=[],Q=0;while(Q<J.length){let z=J[Q];if(LJ(z)){let X=0;while(Q<J.length&&LJ(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 KJ=()=>{};function Hz(J){let Z=NJ.get(J);if(!Z)Z=new Set(J.filter((Q)=>Q.renderGroupedToolUse).map((Q)=>Q.name)),NJ.set(J,Z);return Z}function jZ(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 wJ(J,Z,Q=!1){if(Q)return{messages:J};let z=Hz(Z),X=new Map;for(let F of J){let P=jZ(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=jZ(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=jZ(F);if(P){let v=`${P.messageId}:${P.toolName}`,M=W.get(v);if(M){if(!K.has(v)){K.add(v);let I=M[0],Z0=[];for(let O of M){let b=O.message.content[0].id,_=V.get(b);if(_)Z0.push(_)}let d={type:"grouped_tool_use",toolName:P.toolName,messages:M,results:Z0,displayMessage:I,uuid:`grouped-${I.uuid}`,timestamp:I.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((I)=>q.has(I.tool_use_id)))continue}}Y.push(F)}return{messages:Y}}var NJ;var OJ=N0(()=>{NJ=new WeakMap});function KZ(J){let Z=DJ.get(J);if(Z!==void 0)return Z;let Q=Gz(J).toLowerCase();return DJ.set(J,Q),Q}function Gz(J){let Z="";switch(J.type){case"user":{let X=J.message.content;if(typeof X==="string")Z=PJ.has(X)?"":X;else{let W=[];for(let q of X)if(q.type==="text"){if(!PJ.has(q.text))W.push(q.text)}else if(q.type==="tool_result")W.push(Fz(J.toolUseResult));Z=W.join(`
|
|
2
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[Lz(W.input)];return[]}).join(`
|
|
3
3
|
`);break}case"attachment":{if(J.attachment.type==="relevant_memories")Z=J.attachment.memories.map((X)=>X.content).join(`
|
|
4
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(`
|
|
@@ -9,4 +9,4 @@ import{Te as SZ,Ue as kZ,Ve as vz}from"./cli-0.1.13-y7aqqca1.mjs";import{cg as J
|
|
|
9
9
|
`))}return Q.join(`
|
|
10
10
|
`)}var AJ="</system-reminder>",PJ,DJ;var MZ=N0(()=>{FZ();PJ=new Set([UJ,jJ]),DJ=new WeakMap});function bJ(J){let Z=EJ.c(5),{message:Q,isTranscriptMode:z}=J;if(!(z&&Q.type==="assistant"&&Q.message.model&&Q.message.content.some(Kz)))return null;let W=NZ(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(C,{minWidth:W,children:q}),Z[2]=W,Z[3]=q,Z[4]=V;else V=Z[4];return V}function Kz(J){return J.type==="text"}var EJ;var CJ=N0(()=>{MJ();f0();L0();EJ=A0(x0(),1)});function yJ(J){let Z=vJ.c(10),{message:Q,isTranscriptMode:z}=J;if(!(z&&Q.timestamp&&Q.type==="assistant"&&Q.message.content.some(Nz)))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=C,V=NZ(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 Nz(J){return J.type==="text"}var vJ;var _J=N0(()=>{MJ();f0();L0();vJ=A0(x0(),1)});function pJ(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(EZ(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(EZ(W.toolName,q,Q).isCollapsible)continue}return!0}return!1}function Oz(J){let Z=fJ.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:I,columns:Z0,isLoading:d,lookups:O}=J,b=F==="transcript",_=Q.type==="grouped_tool_use",N=Q.type==="collapsed_read_search",D;if(Z[0]!==X||Z[1]!==Y||Z[2]!==N||Z[3]!==d||Z[4]!==Q)D=N&&(bZ(Q,Y)||d&&!X),Z[0]=X,Z[1]=Y,Z[2]=N,Z[3]=d,Z[4]=Q,Z[5]=D;else D=Z[5];let p=D,J0;if(Z[6]!==N||Z[7]!==_||Z[8]!==Q)J0=_?Q.displayMessage:N?TJ(Q):Q,Z[6]=N,Z[7]=_,Z[8]=Q,Z[9]=J0;else J0=Z[9];let E=J0,S;if(Z[10]!==N||Z[11]!==_||Z[12]!==O||Z[13]!==Q)S=_||N?[]:$J(Q,O),Z[10]=N,Z[11]=_,Z[12]=O,Z[13]=Q,Z[14]=S;else S=Z[14];let H0=S,Y0;if(Z[15]!==Y||Z[16]!==N||Z[17]!==_||Z[18]!==O||Z[19]!==Q||Z[20]!==F||Z[21]!==K){let k=_||N?RJ:xJ(Q,O);Y0=gJ(Q,K,Y,k,F,O),Z[15]=Y,Z[16]=N,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 k;if(Z[23]!==Y||Z[24]!==Q.messages){let W0;if(Z[26]!==Y)W0=(w)=>{let U=w.message.content[0];return U?.type==="tool_use"&&Y.has(U.id)},Z[26]=Y,Z[27]=W0;else W0=Z[27];k=Q.messages.some(W0),Z[23]=Y,Z[24]=Q.messages,Z[25]=k}else k=Z[25];h=k}else if(N){let k;if(Z[28]!==Y||Z[29]!==Q)k=bZ(Q,Y),Z[28]=Y,Z[29]=Q,Z[30]=k;else k=Z[30];h=k}else{let k;if(Z[31]!==Y||Z[32]!==Q){let W0=d0(Q);k=!W0||Y.has(W0),Z[31]=Y,Z[32]=Q,Z[33]=k}else k=Z[33];h=k}let z0;if(Z[34]!==E||Z[35]!==b)z0=b&&E.type==="assistant"&&E.message.content.some(Az)&&(E.timestamp||E.message.model),Z[34]=E,Z[35]=b,Z[36]=z0;else z0=Z[36];let Q0=z0,X0=!Q0,w0=Q0?void 0:Z0,T;if(Z[37]!==q||Z[38]!==Y||Z[39]!==p||Z[40]!==l||Z[41]!==b||Z[42]!==z||Z[43]!==M||Z[44]!==I||Z[45]!==O||Z[46]!==Q||Z[47]!==v||Z[48]!==H0||Z[49]!==h||Z[50]!==X0||Z[51]!==w0||Z[52]!==W||Z[53]!==V)T=B(IJ,{message:Q,lookups:O,addMargin:X0,containerWidth:w0,tools:W,commands:q,verbose:V,inProgressToolUseIDs:Y,progressMessagesForMessage:H0,shouldAnimate:h,shouldShowDot:!0,isTranscriptMode:b,isStatic:l,onOpenRateLimitOptions:v,isActiveCollapsedGroup:p,isUserContinuation:z,lastThinkingBlockId:M,latestBashOutputUUID:I}),Z[37]=q,Z[38]=Y,Z[39]=p,Z[40]=l,Z[41]=b,Z[42]=z,Z[43]=M,Z[44]=I,Z[45]=O,Z[46]=Q,Z[47]=v,Z[48]=H0,Z[49]=h,Z[50]=X0,Z[51]=w0,Z[52]=W,Z[53]=V,Z[54]=T;else T=Z[54];let i=T;if(!Q0){let k;if(Z[55]!==i)k=B(o0,{children:i}),Z[55]=i,Z[56]=k;else k=Z[56];return k}let o;if(Z[57]!==E||Z[58]!==b)o=$(C,{flexDirection:"row",justifyContent:"flex-end",gap:1,marginTop:1,children:[B(yJ,{message:E,isTranscriptMode:b}),B(bJ,{message:E,isTranscriptMode:b})]}),Z[57]=E,Z[58]=b,Z[59]=o;else o=Z[59];let t;if(Z[60]!==Z0||Z[61]!==i||Z[62]!==o)t=B(o0,{children:$(C,{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 Az(J){return J.type==="text"}function Pz(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 CZ(J).some((X)=>Z.has(X));let Q=d0(J);return!!Q&&Z.has(Q)}function Dz(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 CZ(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=d0(J);return!Q||Z.has(Q)}function Uz(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&&kJ(Z.message))return!1;let X=Pz(J.message,J.streamingToolUseIDs),W=Dz(J.message,J.lookups.resolvedToolUseIDs);if(X||!W)return!1;return!0}var fJ,uJ,dJ;var cJ=N0(()=>{f0();hJ();FZ();wz();CJ();mJ();_J();SJ();L0();fJ=A0(x0(),1),uJ=A0(R0(),1);dJ=uJ.memo(Oz,Uz)});import{relative as yz}from"path";function sJ(J){return Rz.filter((Z)=>Z.isActive(J))}var _z,Sz,kz,Iz,Tz,hz,Rz;var eJ=N0(()=>{f0();rJ();lZ();jz();Mz();Ez();vz();Cz();bz();L0();_z={id:"large-memory-files",type:"warning",isActive:(J)=>yZ(J.memoryFiles).length>0,render:(J)=>{let Z=yZ(J.memoryFiles);return B($0,{children:Z.map((Q)=>{let z=Q.path.startsWith(vZ())?yz(vZ(),Q.path):Q.path;return $(C,{flexDirection:"row",children:[B(g,{color:"warning",children:v0.warning}),$(g,{color:"warning",children:["Large ",B(g,{bold:!0,children:z})," will impact performance (",t0(Q.content.length)," chars >"," ",t0(lJ),")",B(g,{dimColor:!0,children:" · /memory to edit"})]})]},Q.path)})})}},Sz={id:"claude-ai-external-token",type:"warning",isActive:()=>{let J=s0();return iJ()&&(J.source==="ANTHROPIC_AUTH_TOKEN"||J.source==="apiKeyHelper")},render:()=>{let J=s0();return $(C,{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`."]})]})}},kz={id:"api-key-conflict",type:"warning",isActive:()=>{let{source:J}=e0({skipRetrievingKeyFromApiKeyHelper:!0});return!!nJ()&&(J==="ANTHROPIC_API_KEY"||J==="apiKeyHelper")},render:()=>{let{source:J}=e0({skipRetrievingKeyFromApiKeyHelper:!0});return $(C,{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`."]})]})}},Iz={id:"both-auth-methods",type:"warning",isActive:()=>{let{source:J}=e0({skipRetrievingKeyFromApiKeyHelper:!0}),Z=s0();return J!=="none"&&Z.source!=="none"&&!(J==="apiKeyHelper"&&Z.source==="apiKeyHelper")},render:()=>{let{source:J}=e0({skipRetrievingKeyFromApiKeyHelper:!0}),Z=s0();return $(C,{flexDirection:"column",marginTop:1,children:[$(C,{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."]})]}),$(C,{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.`]})]})]})}},Tz={id:"large-agent-descriptions",type:"warning",isActive:(J)=>{return kZ(J.agentDefinitions)>SZ},render:(J)=>{let Z=kZ(J.agentDefinitions);return $(C,{flexDirection:"row",children:[B(g,{color:"warning",children:v0.warning}),$(g,{color:"warning",children:["Large cumulative agent descriptions will impact performance (~",t0(Z)," tokens >"," ",t0(SZ),")",B(g,{dimColor:!0,children:" · /agents to manage"})]})]})}},hz={id:"jetbrains-plugin-install",type:"info",isActive:(J)=>{if(!oJ())return!1;if(!(J.config.autoInstallIdeExtension??!0))return!1;let Q=_Z();return Q!==null&&!aJ(Q)},render:()=>{let J=_Z(),Z=tJ(J);return $(C,{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"})]})]})}},Rz=[_z,Tz,Sz,kz,Iz,hz]});async function xz(){if(ZZ)return ZZ;return ZZ=JQ().then((J)=>{JZ=J}).finally(()=>{ZZ=null}),ZZ}function zQ(J){let Z=QQ.c(8),{agentDefinitions:Q}=J===void 0?{}:J,[z,X]=l0.useState(JZ),W;if(Z[0]===Symbol.for("react.memo_cache_sentinel"))W=()=>{if(JZ.length>0){X(JZ);return}xz().then(()=>{X(JZ)})},Z[0]=W;else W=Z[0];l0.useEffect(W,[W]);let V={config:wZ(),agentDefinitions:Q,memoryFiles:z},Y=sJ(V);if(Y.length===0)return null;let K=C,F="column",P=1,v=Y.map((I)=>B(l0.Fragment,{children:I.render(V)},I.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 QQ,l0,JZ,ZZ=null;var XQ=N0(()=>{f0();rJ();ZQ();eJ();L0();QQ=A0(x0(),1),l0=A0(R0(),1),JZ=[]});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 w=K.current/Q;K.current=Q;for(let[U,R]of z.current)z.current.set(U,Math.max(1,Math.round(R*w)));X.current++,F.current=!0,v.current=2}let M=v.current>0?P.current:null,I=m.useRef(0),Z0=m.useRef(null),d=m.useCallback((w)=>J.current?.subscribe(w)??pz,[J]);m.useSyncExternalStore(d,()=>{let w=J.current;if(!w)return NaN;let U=w.getScrollTop()+w.getPendingDelta(),R=Math.floor(U/uz);return w.isSticky()?~R:R});let O=J.current?.getScrollTop()??-1,b=J.current?.getPendingDelta()??0,_=J.current?.getViewportHeight()??0,N=J.current?.isSticky()??!0;m.useMemo(()=>{let w=new Set(Z),U=!1;for(let R of z.current.keys())if(!w.has(R))z.current.delete(R),U=!0;for(let R of Y.current.keys())if(!w.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 w=q.current.arr.length>=D+1?q.current.arr:new Float64Array(D+1);w[0]=0;for(let U=0;U<D;U++)w[U+1]=w[U]+(z.current.get(Z[U])??$z);q.current={arr:w,version:X.current,n:D}}let p=q.current.arr,J0=p[D],E,S;if(M)[E,S]=M,E=Math.min(E,D),S=Math.min(S,D);else if(_===0||O<0)E=Math.max(0,D-fz),S=D;else{if(N){let V0=_+r0;E=D;while(E>0&&J0-p[E-1]<V0)E--;S=D}else{let V0=I.current,G0=_*3,M0=Math.min(O,O+b),g0=Math.max(O,O+b),y0=g0-M0,D0=y0>G0?b<0?g0-G0:M0:M0,I0=D0+Math.min(y0,G0),m0=Math.max(0,D0-V0),T0=I0-V0,b0=m0-r0;{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 n0=_+2*r0,a0=Math.min(D,E+QZ),_0=0;S=E;while(S<a0&&(_0<n0||p[S]<T0+_+r0))_0+=z.current.get(Z[S])??IZ,S++}let w=_+2*r0,U=Math.max(0,S-QZ),R=0;for(let V0=E;V0<S;V0++)R+=z.current.get(Z[V0])??IZ;while(E>U&&R<w)E--,R+=z.current.get(Z[E])??IZ;let s=P.current,O0=Math.abs(O-W.current)+Math.abs(b);if(s&&O0>_*2){let[V0,G0]=s;if(E<V0-zZ)E=V0-zZ;if(S>G0+zZ)S=G0+zZ;if(E>S)S=Math.min(E+zZ,D)}W.current=O}if(v.current>0)v.current--;else P.current=[E,S];let H0=m.useDeferredValue(E),Y0=m.useDeferredValue(S),l=E<H0?H0:E,h=S>Y0?Y0:S;if(l>h||N)l=E,h=S;if(b>0)h=S;if(h-l>QZ){let w=(p[l]+p[h])/2;if(O-I.current<w)h=l+QZ;else l=h-QZ}let z0=I.current,Q0=p[l],X0=l===0?0:Q0+z0,w0=h===D?1/0:Math.max(Q0,p[h]-_)+z0;m.useLayoutEffect(()=>{if(N)J.current?.setClampBounds(void 0,void 0);else J.current?.setClampBounds(X0,w0)}),m.useLayoutEffect(()=>{let w=Z0.current?.yogaNode;if(w&&w.getComputedWidth()>0)I.current=w.getComputedTop();if(F.current){F.current=!1;return}let U=!1;for(let[R,s]of V.current){let O0=s.yogaNode;if(!O0)continue;let V0=O0.getComputedHeight(),G0=z.current.get(R);if(V0>0){if(G0!==V0)z.current.set(R,V0),U=!0}else if(O0.getComputedWidth()>0&&G0!==0)z.current.set(R,0),U=!0}if(U)X.current++});let T=m.useCallback((w)=>{let U=Y.current.get(w);if(!U)U=(R)=>{if(R)V.current.set(w,R);else{let s=V.current.get(w)?.yogaNode;if(s&&!F.current){let O0=s.getComputedHeight();if((O0>0||s.getComputedWidth()>0)&&z.current.get(w)!==O0)z.current.set(w,O0),X.current++}V.current.delete(w)}},Y.current.set(w,U);return U},[]),i=m.useCallback((w)=>{let U=V.current.get(Z[w])?.yogaNode;if(!U||U.getComputedWidth()===0)return-1;return U.getComputedTop()},[Z]),o=m.useCallback((w)=>V.current.get(Z[w])??null,[Z]),t=m.useCallback((w)=>z.current.get(Z[w]),[Z]),k=m.useCallback((w)=>{let U=q.current;if(w<0||w>=U.n)return;J.current?.scrollTo(U.arr[w]+I.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:k}}var m,$z=3,r0=80,fz=30,uz,IZ=1,QZ=300,zZ=25,pz=()=>{};var qQ=N0(()=>{m=A0(R0(),1),uz=r0>>1});function mz(J){let Z=YQ.get(J);if(Z!==void 0)return Z;let Q=KZ(J);return YQ.set(J,Q),Q}function iz(J){let Z=VQ.get(J);if(Z!==void 0)return Z;let Q=lz(J);return VQ.set(J,Q),Q}function lz(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
11
|
`)}if(Z===null)return null;let Q=FQ(Z);if(Q.startsWith("<")||Q==="")return null;return Q}function rz(J){let Z=NQ.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 I=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 b;if(Z[11]!==Y||Z[12]!==Q||Z[13]!==P)b=Y?()=>P(Q):void 0,Z[11]=Y,Z[12]=Q,Z[13]=P,Z[14]=b;else b=Z[14];let _=V&&!q?"text":void 0,N;if(Z[15]!==X||Z[16]!==z||Z[17]!==v)N=v(z,X),Z[15]=X,Z[16]=z,Z[17]=v,Z[18]=N;else N=Z[18];let D;if(Z[19]!==_||Z[20]!==N)D=B(HQ.Provider,{value:_,children:N}),Z[19]=_,Z[20]=N,Z[21]=D;else D=Z[21];let p;if(Z[22]!==M||Z[23]!==I||Z[24]!==Z0||Z[25]!==d||Z[26]!==O||Z[27]!==b||Z[28]!==D)p=B(C,{ref:M,flexDirection:"column",backgroundColor:I,paddingBottom:Z0,onClick:d,onMouseEnter:O,onMouseLeave:b,children:D}),Z[22]=M,Z[23]=I,Z[24]=Z0,Z[25]=d,Z[26]=O,Z[27]=b,Z[28]=D,Z[29]=p;else p=Z[29];return p}function wQ({messages:J,scrollRef:Z,columns:Q,itemKey:z,renderItem:X,onItemClick:W,isItemClickable:q,isItemExpanded:V,extractSearchText:Y=mz,trackStickyPrompt:K,selectedIndex:F,cursorNavRef:P,setCursor:v,jumpRef:M,onSearchMatchesChange:I,scanElement:Z0,setPositions:d}){let O=y.useRef([]),b=y.useRef(J),_=y.useRef(z);if(_.current!==z||J.length<O.current.length||J[0]!==b.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]));b.current=J,_.current=z;let N=O.current,{range:D,topSpacer:p,bottomSpacer:J0,measureRef:E,spacerRef:S,offsets:H0,getItemTop:Y0,getItemElement:l,getItemHeight:h,scrollToIndex:z0}=WQ(Z,N,Q),[Q0,X0]=D,w0=y.useCallback((H)=>{if(h(H)===0)return!1;return GQ(J[H])},[h,J]);y.useImperativeHandle(P,()=>{let H=(f)=>v?.({uuid:f.uuid,msgType:f.type,expanded:!1,toolName:LQ(f)?.name}),L=F??-1,A=(f,n,a=w0)=>{for(let c=f;c>=0&&c<J.length;c+=n)if(a(c))return H(J[c]),!0;return!1},x=(f)=>w0(f)&&J[f].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,w0]);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),k=y.useRef(0),W0=y.useRef(0),w=y.useRef(()=>{}),U=y.useRef(()=>{}),R=y.useRef({matches:[],ptr:0,screenOrd:0,prefixSum:[]}),s=y.useRef(-1),O0=y.useRef(!1);function V0(H){let L=T.current.getItemTop(H);return Math.max(0,L-TZ)}function G0(H){let L=Z.current,{msgIdx:A,positions:x}=o.current;if(!L||x.length===0||A<0){d?.(null);return}let f=Math.max(0,Math.min(H,x.length-1)),n=x[f],a=T.current.getItemTop(A),c=L.getViewportTop(),e=a-L.getScrollTop(),h0=L.getViewportHeight(),P0=c+e+n.row;if(P0<c||P0>=c+h0)L.scrollTo(Math.max(0,a+n.row-TZ)),e=a-L.getScrollTop(),P0=c+e+n.row;d?.({positions:x,rowOffset:c+e,currentIdx:f});let E0=R.current,U0=E0.prefixSum.at(-1)??0,j0=(E0.prefixSum[E0.ptr]??0)+f+1;I?.(U0,j0),c0(`highlight(i=${A}, ord=${f}/${x.length}): pos={row:${n.row},col:${n.col}} lo=${e} screenRow=${P0} badge=${j0}/${U0}`)}U.current=G0;let[M0,g0]=y.useState(0),y0=y.useCallback(()=>g0((H)=>H+1),[]);y.useEffect(()=>{let H=i.current;if(!H)return;let{idx:L,wantLast:A,tries:x}=H,f=Z.current;if(!f)return;let{getItemElement:n,getItemTop:a,scrollToIndex:c}=T.current,e=n(L),h0=e?.yogaNode?.getComputedHeight()??0;if(!e||h0===0){if(x>1){i.current=null,c0(`seek(i=${L}): no mount after scrollToIndex, skip`),w.current(A?-1:1);return}i.current={idx:L,wantLast:A,tries:x+1},c(L),y0();return}i.current=null,f.scrollTo(Math.max(0,a(L)-TZ));let P0=Z0?.(e)??[];if(o.current={msgIdx:L,positions:P0},c0(`seek(i=${L} t=${x}): ${P0.length} positions`),P0.length===0){if(++k.current>20){k.current=0;return}w.current(A?-1:1);return}k.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,w.current(U0)},[M0]);function D0(H,L){let A=Z.current;if(!A)return;let x=T.current,{getItemElement:f,scrollToIndex:n}=x;if(H<0||H>=x.messages.length)return;d?.(null),o.current={msgIdx:-1,positions:[]},i.current={idx:H,wantLast:L,tries:0};let a=f(H),c=a?.yogaNode?.getComputedHeight()??0;if(a&&c>0)A.scrollTo(V0(H));else n(H);y0()}function I0(H){let L=R.current,{matches:A,prefixSum:x}=L,f=x.at(-1)??0;if(A.length===0)return;if(i.current){W0.current=H;return}if(t.current<0)t.current=L.ptr;let{positions:n}=o.current,a=L.screenOrd+H;if(a>=0&&a<n.length){L.screenOrd=a,G0(a),t.current=-1;return}let c=(L.ptr+H+A.length)%A.length;if(c===t.current){d?.(null),t.current=-1,c0(`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]??f:x[c]+1;I?.(f,e)}w.current=I0,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 S0=Y(U0[j0]),G=S0.indexOf(L),j=0;while(G>=0)j++,G=S0.indexOf(L,G+L.length);if(j>0)A.push(j0),x.push(x.at(-1)+j)}}let f=x.at(-1),n=0,a=Z.current,{offsets:c,start:e,getItemTop:h0}=T.current,P0=h0(e),E0=P0>=0?P0-c[e]:0;if(A.length>0&&a){let U0=s.current>=0?s.current:a.getScrollTop(),j0=1/0;for(let S0=0;S0<A.length;S0++){let G=Math.abs(E0+c[A[S0]]-U0);if(G<=j0)j0=G,n=S0}c0(`setSearchQuery('${H}'): ${A.length} msgs · ptr=${n} msgIdx=${A[n]} curTop=${U0} origin=${E0}`)}if(R.current={matches:A,ptr:n,screenOrd:0,prefixSum:x},A.length>0)D0(A[n],!0);else if(s.current>=0&&a)a.scrollTo(s.current);I?.(f,A.length>0?x[n+1]??f:0)},nextMatch:()=>I0(1),prevMatch:()=>I0(-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(O0.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 BQ(0);let a=performance.now(),c=Math.min(n+L,H.length);for(let e=n;e<c;e++)Y(H[e]);A+=performance.now()-a}let f=Math.round(performance.now()-x);return c0(`warmSearchIndex: ${H.length} msgs · work=${Math.round(A)}ms wall=${f}ms chunks=${Math.ceil(H.length/L)}`),O0.current=!0,Math.round(A)}}),[Z]);let[m0,T0]=y.useState(null),b0=y.useRef({onItemClick:W,setHoveredKey:T0});b0.current={onItemClick:W,setHoveredKey:T0};let n0=y.useCallback((H,L)=>{let A=b0.current;if(!L&&A.onItemClick)A.onItemClick(H)},[]),a0=y.useCallback((H)=>{b0.current.setHoveredKey(H)},[]),_0=y.useCallback((H)=>{b0.current.setHoveredKey((L)=>L===H?null:L)},[]);return $($0,{children:[B(C,{ref:S,height:p,flexShrink:0}),J.slice(Q0,X0).map((H,L)=>{let A=Q0+L,x=N[A],f=!!W&&(q?.(H)??!0),n=f&&m0===x,a=V?.(H);return B(rz,{itemKey:x,msg:H,idx:A,measureRef:E,expanded:a,hovered:n,clickable:f,onClickK:n0,onEnterK:a0,onLeaveK:_0,renderItem:X},x)}),J0>0&&B(C,{height:J0,flexShrink:0}),K&&B(oz,{messages:J,start:Q0,end:X0,offsets:H0,getItemTop:Y0,getItemElement:l,scrollRef:Z})]})}function oz({messages:J,start:Z,end:Q,offsets:z,getItemTop:X,getItemElement:W,scrollRef:q}){let{setStickyPrompt:V}=y.useContext(DZ),Y=y.useCallback((N)=>q.current?.subscribe(N)??az,[q]);y.useSyncExternalStore(Y,()=>{let N=q.current;if(!N)return NaN;let D=N.getScrollTop()+N.getPendingDelta();return N.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 N=Q-1;N>=Z;N--){let D=X(N);if(D>=0){if(D<F)break;v=D}P=N}let M=-1,I=null;if(P>0&&!K)for(let N=P-1;N>=0;N--){let D=iz(J[N]);if(D===null)continue;let p=X(N);if(p>=0&&p+1>=F)continue;M=N,I=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}),b=y.useRef("none"),_=y.useRef(-1);return y.useEffect(()=>{if(O.current.idx>=0)return;if(b.current==="armed"){b.current="force";return}let N=b.current==="force";if(b.current="none",!N&&_.current===M)return;if(_.current=M,I===null){V(null);return}let D=I.trimStart(),p=D.search(/\n\s*\n/),J0=(p>=0?D.slice(0,p):D).slice(0,nz).replace(/\s+/g," ").trim();if(J0===""){V(null);return}let E=M,S=d;V({text:J0,scrollTo:()=>{V("clicked"),b.current="armed";let H0=W(E);if(H0)q.current?.scrollToElement(H0,1);else q.current?.scrollTo(S),O.current={idx:E,tries:0}}})}),y.useEffect(()=>{if(O.current.idx<0)return;let N=W(O.current.idx);if(N)q.current?.scrollToElement(N,1),O.current={idx:-1,tries:0};else if(++O.current.tries>5)O.current={idx:-1,tries:0}}),null}var NQ,y,TZ=3,YQ,nz=500,VQ,az=()=>{};var OQ=N0(()=>{qQ();f0();gz();QJ();dz();cz();MZ();KQ();L0();NQ=A0(x0(),1),y=A0(R0(),1),YQ=new WeakMap;VQ=new WeakMap});function LX(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 FX(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 wX(J,Z,Q=KX,z=NX){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 PQ(J){return(J.type==="assistant"||J.type==="user"?d0(J):null)??J.uuid}function AX(J,Z){if(J.size!==Z.size)return!1;for(let Q of J)if(!Z.has(Q))return!1;return!0}function gJ(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=d0(J);if(!q)return!0;if(Z.has(q))return!1;if(Q.has(q))return!1;if(hQ(q,"PostToolUse",W))return!1;return zJ(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 dQ,XZ,u,BX,HX=null,AQ=null,GX=null,hZ=30,KX=200,NX=50,OX=({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:I=!1,isLoading:Z0,hidePastThinking:d=!1,streamingThinking:O,streamingText:b,isBriefOnly:_=!1,unseenDivider:N,scrollRef:D,trackStickyPrompt:p,jumpRef:J0,onSearchMatchesChange:E,scanElement:S,setPositions:H0,disableRenderCap:Y0=!1,cursor:l=null,setCursor:h,cursorNavRef:z0,renderRange:Q0})=>{let{columns:X0}=BZ(),w0=EQ("transcript:toggleShowAll","Transcript","Ctrl+E"),T=u.useMemo(()=>$Z(J).filter(SQ),[J]),i=u.useMemo(()=>{if(!O)return!1;if(O.isStreaming)return!0;if(O.streamingEndedAt)return Date.now()-O.streamingEndedAt<30000;return!1},[O]),o=u.useMemo(()=>{if(!d)return null;if(i)return"streaming";for(let G=T.length-1;G>=0;G--){let j=T[G];if(j?.type==="assistant"){let B0=j.message.content;for(let r=B0.length-1;r>=0;r--)if(B0[r]?.type==="thinking")return`${j.uuid}:${r}`}else if(j?.type==="user"){if(!j.message.content.some((r)=>r.type==="tool_result"))return"no-thinking"}}return null},[T,d,i]),t=u.useMemo(()=>{for(let G=T.length-1;G>=0;G--){let j=T[G];if(j?.type==="user"){let B0=j.message.content;for(let r of B0)if(r.type==="text"){let K0=r.text;if(K0.startsWith("<bash-stdout")||K0.startsWith("<bash-stderr"))return j.uuid}}}return null},[T]),k=u.useMemo(()=>RQ(T),[T]),W0=u.useMemo(()=>F.filter((G)=>!q.has(G.contentBlock.id)&&!k.has(G.contentBlock.id)),[F,q,k]),w=u.useMemo(()=>W0.flatMap((G)=>{let j=_Q({content:[G.contentBlock]});return j.uuid=kQ(G.contentBlock.id,0),$Z([j])}),[W0]),U=K==="transcript",R=u.useMemo(()=>UQ(process.env.CLAUDE_CODE_DISABLE_VIRTUAL_SCROLL),[]),s=D!=null&&!R,O0=U&&!P&&!s,V0=u.useRef(null),{collapsed:G0,lookups:M0,hasTruncatedMessages:g0,hiddenMessageCount:y0}=u.useMemo(()=>{let G=z||p0()?T:xQ(T,{includeSnipped:!0}),j=IQ(G.filter((k0)=>k0.type!=="progress").filter((k0)=>!YZ(k0)).filter((k0)=>$Q(k0,U)),w),B0=[AQ,GX].filter((k0)=>k0!==null),r=[AQ].filter((k0)=>k0!==null),K0=B0.length>0&&!U?_?LX(j,B0):r.length>0?FX(j,r):j:j,C0=O0?K0.slice(-hZ):K0,WZ=O0&&K0.length>hZ,{messages:u0}=wJ(C0,Z,z),cQ=YJ(HJ(FJ(yQ(u0,Z))),z),gQ=TQ(T,C0),mQ=j.length-hZ;return{collapsed:cQ,lookups:gQ,hasTruncatedMessages:WZ,hiddenMessageCount:mQ}},[z,T,U,w,O0,Z,_]),D0=u.useMemo(()=>{let j=!s&&!Y0?wX(G0,V0):0;return Q0?G0.slice(Q0[0],Q0[1]):j>0?G0.slice(j):G0},[G0,Q0,s,Y0]),I0=u.useMemo(()=>new Set(F.map((G)=>G.contentBlock.id)),[F]),m0=pQ((G)=>G.tasks),T0=M0.asyncLaunchedToolUseIDs,b0=u.useMemo(()=>{if(T0.size===0)return null;let G=new Set;for(let[j,B0]of T0){let r=m0?.[B0]?.status;if(r==="running"||r==="requested"||r==="queued")G.add(j)}return G.size>0?G:null},[m0,T0]),n0=u.useMemo(()=>{if(!b0)return q;let G=new Set(q);for(let j of b0)G.add(j);return G},[q,b0]),a0=u.useMemo(()=>{if(!N)return-1;let G=N.firstUnseenUuid.slice(0,24);return D0.findIndex((j)=>j.uuid.slice(0,24)===G)},[N,D0]),_0=u.useMemo(()=>{if(!l)return-1;return D0.findIndex((G)=>G.uuid===l.uuid)},[l,D0]),[H,L]=u.useState(()=>new Set),A=u.useCallback((G)=>{let j=PQ(G);L((B0)=>{let r=new Set(B0);if(r.has(j))r.delete(j);else r.add(j);return r})},[]),x=u.useCallback((G)=>H.size>0&&H.has(PQ(G)),[H]),f=u.useRef(M0);f.current=M0;let n=u.useCallback((G)=>{if(G.type==="collapsed_read_search")return!0;if(G.type==="assistant"){let K0=G.message.content[0];return K0!=null&&CQ(K0)&&K0.type==="advisor_tool_result"&&K0.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=f.current.toolUseByToolUseID.get(j.tool_use_id)?.name;return(B0?xZ(Z,B0):void 0)?.isResultTruncated?.(G.toolUseResult)??!1},[Z]),a=(!X||!!X.shouldContinueAnimation)&&!W.length&&!V,c=n0.size>0,{progress:e}=MQ(),h0=u.useRef(null),P0=wZ().terminalProgressBarEnabled&&!DQ()&&!(HX?.isProactiveActive()??!1);u.useEffect(()=>{let G=P0?c?"indeterminate":"completed":null;if(h0.current===G)return;h0.current=G,e(G)},[e,P0,c]),u.useEffect(()=>{return()=>e(null)},[e]);let E0=u.useCallback((G)=>`${G.uuid}-${Y}`,[Y]),U0=(G,j)=>{let B0=j>0?D0[j-1]?.type:void 0,r=G.type==="user"&&B0==="user",K0=G.type==="collapsed_read_search"&&(!!b||pJ(D0,j,Z,I0)),C0=E0(G),WZ=B(dJ,{message:G,isUserContinuation:r,hasContentAfter:K0,tools:Z,commands:Q,verbose:z||x(G)||l?.expanded===!0&&j===_0,inProgressToolUseIDs:n0,streamingToolUseIDs:I0,screen:K,canAnimate:a,onOpenRateLimitOptions:M,lastThinkingBlockId:o,latestBashOutputUUID:t,columns:X0,isLoading:Z0,lookups:M0},C0),u0=B(fQ.Provider,{value:j===_0,children:WZ},C0);if(N&&j===a0)return[B(C,{marginTop:1,children:B(OZ,{title:`${N.count} new ${VZ(N.count,"message")}`,width:X0,color:"inactive"})},"unseen-divider"),u0];return u0},j0=u.useRef(new WeakMap),S0=u.useCallback((G)=>{let j=j0.current.get(G);if(j!==void 0)return j;let B0=KZ(G);if(G.type==="user"&&G.toolUseResult&&Array.isArray(G.message.content)){let K0=G.message.content.find((C0)=>C0.type==="tool_result");if(K0&&"tool_use_id"in K0){let C0=M0.toolUseByToolUseID.get(K0.tool_use_id),u0=(C0&&xZ(Z,C0.name))?.extractSearchText?.(G.toolUseResult);if(u0!==void 0)B0=u0}}let r=B0.toLowerCase();return j0.current.set(G,r),r},[Z,M0]);return $($0,{children:[!I&&!(Q0&&Q0[0]>0)&&B(BX,{agentDefinitions:v}),g0&&B(OZ,{title:`${w0} to show ${RZ.bold(y0)} previous messages`,width:X0}),U&&P&&y0>0&&!Y0&&B(OZ,{title:`${w0} to hide ${RZ.bold(y0)} previous messages`,width:X0}),s?B(uQ.Provider,{value:!0,children:B(wQ,{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:S,setPositions:H0,extractSearchText:S0})}):D0.flatMap(U0),b&&!_&&B(C,{alignItems:"flex-start",flexDirection:"row",marginTop:1,width:"100%",children:$(C,{flexDirection:"row",children:[B(C,{minWidth:2,children:B(g,{color:"text",children:jQ})}),B(C,{flexDirection:"column",children:B(bQ,{children:b})})]})}),i&&O&&!_&&B(C,{marginTop:1,children:B(vQ,{param:{type:"thinking",thinking:O.thinking},addMargin:!1,isTranscriptMode:!0,verbose:z,hideInTranscript:!1})})]})},C8;var mJ=N0(()=>{ZX();XJ();tz();ez();oZ();JX();f0();zX();VX();QX();WX();VJ();GJ();hJ();KJ();ZQ();sz();PZ();OJ();FZ();rZ();MZ();YX();XX();cJ();KQ();qX();AZ();SJ();XQ();OQ();L0();dQ=A0(x0(),1),XZ=A0(R0(),1),u=A0(R0(),1),BX=XZ.memo(function(Z){let Q=dQ.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(o0,{children:$(C,{flexDirection:"column",gap:1,children:[X,B(XZ.Suspense,{fallback:null,children:B(zQ,{agentDefinitions:z})})]})}),Q[1]=z,Q[2]=W;else W=Q[2];return W});C8=XZ.memo(OX,(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(AX(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{DX as
|
|
12
|
+
export{DX as Vd,UX as Wd,nZ as Xd,pX as Yd,dX as Zd,cX as _d,QJ as $d,C8 as ae,mJ as be};
|