@claudiolabs/claudin 1.1.26 → 1.1.27
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunks/AgentTool-1.1.27-db5m9gzv.mjs +1 -0
- package/dist/chunks/App-1.1.27-jz9pzpv7.mjs +1 -0
- package/dist/chunks/ApproveApiKey-1.1.27-b5mwy6bs.mjs +1 -0
- package/dist/chunks/AssistantSessionChooser-1.1.27-2kwhe57h.mjs +1 -0
- package/dist/chunks/AutoModeOptInDialog-1.1.27-g5rhes32.mjs +1 -0
- package/dist/chunks/BypassPermissionsModeDialog-1.1.27-jxn4ptdz.mjs +1 -0
- package/dist/chunks/ClaudeMdExternalIncludesDialog-1.1.27-2veddc9s.mjs +1 -0
- package/dist/chunks/ConsoleOAuthFlow-1.1.27-mt31pcwm.mjs +1 -0
- package/dist/chunks/DiffDialog-1.1.27-ts2drs72.mjs +6 -0
- package/dist/chunks/Doctor-1.1.27-mh9ttzx4.mjs +1 -0
- package/dist/chunks/ExplorerDialog-1.1.27-qh4nye9z.mjs +6 -0
- package/dist/chunks/ITermBackend-1.1.27-054hfzze.mjs +1 -0
- package/dist/chunks/InvalidConfigDialog-1.1.27-gyk98cx3.mjs +1 -0
- package/dist/chunks/InvalidSettingsDialog-1.1.27-agv9khdv.mjs +1 -0
- package/dist/chunks/MigrationDialog-1.1.27-fhzyv0es.mjs +1 -0
- package/dist/chunks/Onboarding-1.1.27-e7a3yzxe.mjs +1 -0
- package/dist/chunks/ProviderManager-1.1.27-zc2zrqpt.mjs +1 -0
- package/dist/chunks/REPL-1.1.27-zm25dsxc.mjs +1 -0
- package/dist/chunks/ResumeConversation-1.1.27-93vdmd0g.mjs +1 -0
- package/dist/chunks/SnapshotUpdateDialog-1.1.27-rcmc5990.mjs +1 -0
- package/dist/chunks/TeleportProgress-1.1.27-7mwc4ntd.mjs +1 -0
- package/dist/chunks/TeleportRepoMismatchDialog-1.1.27-jyjyshza.mjs +1 -0
- package/dist/chunks/TeleportResumeWrapper-1.1.27-g4s9ej88.mjs +1 -0
- package/dist/chunks/TmuxBackend-1.1.27-bfqad2sg.mjs +9 -0
- package/dist/chunks/ToolSearchTool-1.1.27-b39dysny.mjs +1 -0
- package/dist/chunks/TrustDialog-1.1.27-nerfy2hh.mjs +1 -0
- package/dist/chunks/activeProvider-1.1.27-7akd7pzq.mjs +1 -0
- package/dist/chunks/add-dir-1.1.27-jfd8t81g.mjs +1 -0
- package/dist/chunks/agentTypes-1.1.27-gvc8sgz1.mjs +1 -0
- package/dist/chunks/agents-1.1.27-pdcva4bt.mjs +110 -0
- package/dist/chunks/agents-1.1.27-vdvjpsev.mjs +3 -0
- package/dist/chunks/api-1.1.27-v0jrrv5d.mjs +1 -0
- package/dist/chunks/asciicast-1.1.27-a6ydv5ce.mjs +1 -0
- package/dist/chunks/assistant-1.1.27-gazcm6s7.mjs +1 -0
- package/dist/chunks/auth-1.1.27-d561ngfq.mjs +1 -0
- package/dist/chunks/auth-1.1.27-gp1b9bvj.mjs +1 -0
- package/dist/chunks/autoMode-1.1.27-187c13xb.mjs +52 -0
- package/dist/chunks/autoModeSetup-1.1.27-v3ap18cy.mjs +44 -0
- package/dist/chunks/autoUpdater-1.1.27-hty6t0t8.mjs +1 -0
- package/dist/chunks/backgroundHousekeeping-1.1.27-efmykd33.mjs +1 -0
- package/dist/chunks/branch-1.1.27-d16zzy8m.mjs +4 -0
- package/dist/chunks/bridge-1.1.27-3znqrqgh.mjs +2 -0
- package/dist/chunks/bridgeConfig-1.1.27-bbn4xfe7.mjs +1 -0
- package/dist/chunks/bridgeEnabled-1.1.27-hky0jg83.mjs +1 -0
- package/dist/chunks/bridgeMain-1.1.27-j9tfnew8.mjs +88 -0
- package/dist/chunks/bridgePointer-1.1.27-95k3w0tb.mjs +1 -0
- package/dist/chunks/btw-1.1.27-wx6yv865.mjs +1 -0
- package/dist/chunks/buddy-1.1.27-9afpekx4.mjs +3 -0
- package/dist/chunks/cache-probe-1.1.27-f84tajyp.mjs +21 -0
- package/dist/chunks/cacheStats-1.1.27-g9qwr4y9.mjs +4 -0
- package/dist/chunks/caches-1.1.27-fw7fsfx6.mjs +1 -0
- package/dist/chunks/cd-1.1.27-y9t4zyf7.mjs +3 -0
- package/dist/chunks/claudeDesktop-1.1.27-182n35a2.mjs +1 -0
- package/dist/chunks/claudemd-1.1.27-gp9ndxg8.mjs +1 -0
- package/dist/chunks/clear-1.1.27-rrvq1asb.mjs +1 -0
- package/dist/chunks/clearTerminal-1.1.27-6esk4j27.mjs +1 -0
- package/dist/chunks/cli-1.1.27-090g18py.mjs +2 -0
- package/dist/chunks/cli-1.1.27-0h1xdjxp.mjs +2 -0
- package/dist/chunks/cli-1.1.27-0rz9qd34.mjs +4 -0
- package/dist/chunks/cli-1.1.27-0wv0k9sb.mjs +2 -0
- package/dist/chunks/cli-1.1.27-14xp8pk4.mjs +2 -0
- package/dist/chunks/cli-1.1.27-1hdrfsqd.mjs +2 -0
- package/dist/chunks/cli-1.1.27-1qrkn0zf.mjs +25 -0
- package/dist/chunks/cli-1.1.27-1rztfj2j.mjs +2 -0
- package/dist/chunks/cli-1.1.27-1vmmkyhn.mjs +3 -0
- package/dist/chunks/cli-1.1.27-1yvzf2v8.mjs +2 -0
- package/dist/chunks/cli-1.1.27-1yyef8w3.mjs +2 -0
- package/dist/chunks/cli-1.1.27-1ztbchyz.mjs +2 -0
- package/dist/chunks/cli-1.1.27-22f6jd6a.mjs +2 -0
- package/dist/chunks/cli-1.1.27-2922x4n2.mjs +5 -0
- package/dist/chunks/cli-1.1.27-2e7wwbbp.mjs +2 -0
- package/dist/chunks/cli-1.1.27-2mtc2dbf.mjs +2 -0
- package/dist/chunks/cli-1.1.27-3cjhx8c4.mjs +4 -0
- package/dist/chunks/cli-1.1.27-3eax0jv3.mjs +6 -0
- package/dist/chunks/cli-1.1.27-3mpdw95c.mjs +2 -0
- package/dist/chunks/cli-1.1.27-3qx1npht.mjs +2 -0
- package/dist/chunks/cli-1.1.27-42wr3qtg.mjs +2 -0
- package/dist/chunks/cli-1.1.27-48ezce33.mjs +206 -0
- package/dist/chunks/cli-1.1.27-4an77vdm.mjs +2 -0
- package/dist/chunks/cli-1.1.27-4ch8wq6c.mjs +3 -0
- package/dist/chunks/cli-1.1.27-4cjm0m5c.mjs +24 -0
- package/dist/chunks/cli-1.1.27-4pm4y79r.mjs +2 -0
- package/dist/chunks/cli-1.1.27-4xegg6js.mjs +2 -0
- package/dist/chunks/cli-1.1.27-51sqdnt6.mjs +2 -0
- package/dist/chunks/cli-1.1.27-55evh9sy.mjs +21 -0
- package/dist/chunks/cli-1.1.27-575dbhvc.mjs +2 -0
- package/dist/chunks/cli-1.1.27-5jvkkbcy.mjs +2 -0
- package/dist/chunks/cli-1.1.27-5vejs4bz.mjs +3 -0
- package/dist/chunks/cli-1.1.27-6dm0tj1c.mjs +2 -0
- package/dist/chunks/cli-1.1.27-6f5wmt15.mjs +2 -0
- package/dist/chunks/cli-1.1.27-6g67vpnz.mjs +2 -0
- package/dist/chunks/cli-1.1.27-6s7e0eyt.mjs +2 -0
- package/dist/chunks/cli-1.1.27-6spv5ha8.mjs +60 -0
- package/dist/chunks/cli-1.1.27-704q0rhh.mjs +2 -0
- package/dist/chunks/cli-1.1.27-79504h3t.mjs +2 -0
- package/dist/chunks/cli-1.1.27-7a101p3z.mjs +2 -0
- package/dist/chunks/cli-1.1.27-7gnbh46g.mjs +2 -0
- package/dist/chunks/cli-1.1.27-7hws4y92.mjs +4 -0
- package/dist/chunks/cli-1.1.27-7jakzfss.mjs +24 -0
- package/dist/chunks/cli-1.1.27-7jc0gzqt.mjs +4 -0
- package/dist/chunks/cli-1.1.27-7wrz865m.mjs +2 -0
- package/dist/chunks/cli-1.1.27-7zpnm6dn.mjs +2 -0
- package/dist/chunks/cli-1.1.27-83exfkej.mjs +2 -0
- package/dist/chunks/cli-1.1.27-8em170zt.mjs +2 -0
- package/dist/chunks/cli-1.1.27-8fve969w.mjs +2 -0
- package/dist/chunks/cli-1.1.27-8gsqhqyf.mjs +42 -0
- package/dist/chunks/cli-1.1.27-8vkygf4q.mjs +2 -0
- package/dist/chunks/cli-1.1.27-8vrv0ver.mjs +2 -0
- package/dist/chunks/cli-1.1.27-8zkr609d.mjs +4 -0
- package/dist/chunks/cli-1.1.27-91eh3cyz.mjs +3 -0
- package/dist/chunks/cli-1.1.27-9427t707.mjs +2 -0
- package/dist/chunks/cli-1.1.27-94qc7asn.mjs +2 -0
- package/dist/chunks/cli-1.1.27-96ccvbyj.mjs +2 -0
- package/dist/chunks/cli-1.1.27-96yksxag.mjs +2 -0
- package/dist/chunks/cli-1.1.27-98bpezgc.mjs +45 -0
- package/dist/chunks/cli-1.1.27-9chfrr9e.mjs +2 -0
- package/dist/chunks/cli-1.1.27-9d0bkxf6.mjs +15 -0
- package/dist/chunks/cli-1.1.27-9m09gcqr.mjs +2 -0
- package/dist/chunks/cli-1.1.27-9sswt66t.mjs +12 -0
- package/dist/chunks/cli-1.1.27-a454a3rb.mjs +2 -0
- package/dist/chunks/cli-1.1.27-aahmf6wc.mjs +2 -0
- package/dist/chunks/cli-1.1.27-b0s2nhr1.mjs +24 -0
- package/dist/chunks/cli-1.1.27-b3bkjfyh.mjs +2 -0
- package/dist/chunks/cli-1.1.27-b42yen3p.mjs +2 -0
- package/dist/chunks/cli-1.1.27-bpbp93hw.mjs +2 -0
- package/dist/chunks/cli-1.1.27-bwc1f1yx.mjs +15 -0
- package/dist/chunks/cli-1.1.27-byba8306.mjs +20 -0
- package/dist/chunks/cli-1.1.27-byxgdj3w.mjs +2 -0
- package/dist/chunks/cli-1.1.27-cth2wwrh.mjs +2 -0
- package/dist/chunks/cli-1.1.27-cth3rq9k.mjs +2 -0
- package/dist/chunks/cli-1.1.27-cw1p9ac2.mjs +3 -0
- package/dist/chunks/cli-1.1.27-cw9bqwta.mjs +2 -0
- package/dist/chunks/cli-1.1.27-cxy3fqs0.mjs +2 -0
- package/dist/chunks/cli-1.1.27-d0k9rgj1.mjs +2 -0
- package/dist/chunks/cli-1.1.27-d1zgycfk.mjs +2 -0
- package/dist/chunks/cli-1.1.27-d4km9s81.mjs +2 -0
- package/dist/chunks/cli-1.1.27-d4w9gqgs.mjs +50 -0
- package/dist/chunks/cli-1.1.27-d5q76t7c.mjs +3 -0
- package/dist/chunks/cli-1.1.27-d7r6x0ew.mjs +2 -0
- package/dist/chunks/cli-1.1.27-dfww0knt.mjs +2 -0
- package/dist/chunks/cli-1.1.27-dhzbmaf3.mjs +2 -0
- package/dist/chunks/cli-1.1.27-e2p4abq5.mjs +2 -0
- package/dist/chunks/cli-1.1.27-e53f6at7.mjs +2 -0
- package/dist/chunks/cli-1.1.27-eag2dgb4.mjs +2 -0
- package/dist/chunks/cli-1.1.27-es2rn3j6.mjs +2 -0
- package/dist/chunks/cli-1.1.27-eypype7d.mjs +8 -0
- package/dist/chunks/cli-1.1.27-f218cppx.mjs +34 -0
- package/dist/chunks/cli-1.1.27-f3cv6wk1.mjs +2 -0
- package/dist/chunks/cli-1.1.27-fary910g.mjs +2 -0
- package/dist/chunks/cli-1.1.27-fc1my4zp.mjs +2 -0
- package/dist/chunks/cli-1.1.27-fdhry9qy.mjs +2 -0
- package/dist/chunks/cli-1.1.27-fr8vw4x1.mjs +2 -0
- package/dist/chunks/cli-1.1.27-fw9r8cwg.mjs +4 -0
- package/dist/chunks/cli-1.1.27-fxmty4t4.mjs +5 -0
- package/dist/chunks/cli-1.1.27-g8n6nr2e.mjs +1 -0
- package/dist/chunks/cli-1.1.27-gan2msv5.mjs +3 -0
- package/dist/chunks/cli-1.1.27-ge84mp6e.mjs +2 -0
- package/dist/chunks/cli-1.1.27-ggg6m9qt.mjs +2 -0
- package/dist/chunks/cli-1.1.27-gmknn4xh.mjs +2 -0
- package/dist/chunks/cli-1.1.27-gnhg7s3x.mjs +2 -0
- package/dist/chunks/cli-1.1.27-gnvm8gat.mjs +2 -0
- package/dist/chunks/cli-1.1.27-h7ytc7jg.mjs +9 -0
- package/dist/chunks/cli-1.1.27-hafa2nxa.mjs +2 -0
- package/dist/chunks/cli-1.1.27-hcnrf84n.mjs +2 -0
- package/dist/chunks/cli-1.1.27-hh78rvvf.mjs +2 -0
- package/dist/chunks/cli-1.1.27-hhkkts5k.mjs +6 -0
- package/dist/chunks/cli-1.1.27-hrwxg46q.mjs +2 -0
- package/dist/chunks/cli-1.1.27-hs6hv3bh.mjs +20 -0
- package/dist/chunks/cli-1.1.27-j362egg2.mjs +2 -0
- package/dist/chunks/cli-1.1.27-jcn2gvsw.mjs +2 -0
- package/dist/chunks/cli-1.1.27-jfqvck1y.mjs +2 -0
- package/dist/chunks/cli-1.1.27-jg3tymed.mjs +2 -0
- package/dist/chunks/cli-1.1.27-jh817v59.mjs +2 -0
- package/dist/chunks/cli-1.1.27-jm7jbypb.mjs +2 -0
- package/dist/chunks/cli-1.1.27-jmegwyzr.mjs +2 -0
- package/dist/chunks/cli-1.1.27-jmz9pczh.mjs +3 -0
- package/dist/chunks/cli-1.1.27-jt1gb6nf.mjs +2 -0
- package/dist/chunks/cli-1.1.27-jvs6enw9.mjs +2 -0
- package/dist/chunks/cli-1.1.27-k115ge4q.mjs +6 -0
- package/dist/chunks/cli-1.1.27-k2fyp83y.mjs +2 -0
- package/dist/chunks/cli-1.1.27-k6dwtkrp.mjs +2 -0
- package/dist/chunks/cli-1.1.27-k9jt24bv.mjs +2 -0
- package/dist/chunks/cli-1.1.27-kdv6nw9e.mjs +12 -0
- package/dist/chunks/cli-1.1.27-kerbk21s.mjs +2 -0
- package/dist/chunks/cli-1.1.27-kgpk1m6k.mjs +2 -0
- package/dist/chunks/cli-1.1.27-kkt8se1z.mjs +2 -0
- package/dist/chunks/cli-1.1.27-kpqha1ce.mjs +2 -0
- package/dist/chunks/cli-1.1.27-krtd4rf3.mjs +3 -0
- package/dist/chunks/cli-1.1.27-m2n4m352.mjs +2 -0
- package/dist/chunks/cli-1.1.27-m5wtrd2b.mjs +2 -0
- package/dist/chunks/cli-1.1.27-m6ne80zc.mjs +2 -0
- package/dist/chunks/cli-1.1.27-maxx6jt7.mjs +4 -0
- package/dist/chunks/cli-1.1.27-me6jhh1k.mjs +2 -0
- package/dist/chunks/cli-1.1.27-mqt20a61.mjs +2 -0
- package/dist/chunks/cli-1.1.27-mr1wxvzb.mjs +3 -0
- package/dist/chunks/cli-1.1.27-n09bs0db.mjs +2 -0
- package/dist/chunks/cli-1.1.27-n3fg97y6.mjs +2 -0
- package/dist/chunks/cli-1.1.27-n6vfvfw4.mjs +2 -0
- package/dist/chunks/cli-1.1.27-nbgxr715.mjs +10 -0
- package/dist/chunks/cli-1.1.27-njcbrvnc.mjs +58 -0
- package/dist/chunks/cli-1.1.27-nmp82pea.mjs +3 -0
- package/dist/chunks/cli-1.1.27-nx2yxmg9.mjs +3 -0
- package/dist/chunks/cli-1.1.27-nxkc7nfr.mjs +2 -0
- package/dist/chunks/cli-1.1.27-ny95570d.mjs +133 -0
- package/dist/chunks/cli-1.1.27-p1sh0ft2.mjs +2 -0
- package/dist/chunks/cli-1.1.27-p7kjkqhn.mjs +2 -0
- package/dist/chunks/cli-1.1.27-p99q7a22.mjs +133 -0
- package/dist/chunks/cli-1.1.27-pab2avnw.mjs +2 -0
- package/dist/chunks/cli-1.1.27-pyjha53q.mjs +2 -0
- package/dist/chunks/cli-1.1.27-q2msmggk.mjs +2 -0
- package/dist/chunks/cli-1.1.27-q830jx95.mjs +2 -0
- package/dist/chunks/cli-1.1.27-qcvp3n4v.mjs +2 -0
- package/dist/chunks/cli-1.1.27-qkzc0vzs.mjs +2 -0
- package/dist/chunks/cli-1.1.27-qnzhd86k.mjs +2 -0
- package/dist/chunks/cli-1.1.27-r2qyxh4t.mjs +26 -0
- package/dist/chunks/cli-1.1.27-r32k5nw7.mjs +4 -0
- package/dist/chunks/cli-1.1.27-r335xv52.mjs +6 -0
- package/dist/chunks/cli-1.1.27-r3r36jvq.mjs +25 -0
- package/dist/chunks/cli-1.1.27-r4ck0s0j.mjs +2 -0
- package/dist/chunks/cli-1.1.27-r9jjyax0.mjs +7 -0
- package/dist/chunks/cli-1.1.27-rct7c74m.mjs +2 -0
- package/dist/chunks/cli-1.1.27-rnwaxvgf.mjs +2 -0
- package/dist/chunks/cli-1.1.27-rqdq9mhj.mjs +2 -0
- package/dist/chunks/cli-1.1.27-ryd2t3vk.mjs +2 -0
- package/dist/chunks/cli-1.1.27-s62prq89.mjs +2 -0
- package/dist/chunks/cli-1.1.27-sbj1hdj9.mjs +2 -0
- package/dist/chunks/cli-1.1.27-scfswqdr.mjs +2 -0
- package/dist/chunks/cli-1.1.27-sdw0p0c4.mjs +58 -0
- package/dist/chunks/cli-1.1.27-sngxwsap.mjs +2 -0
- package/dist/chunks/cli-1.1.27-sr4a2gd6.mjs +2 -0
- package/dist/chunks/cli-1.1.27-sw6tnehx.mjs +2 -0
- package/dist/chunks/cli-1.1.27-t13xq38e.mjs +2 -0
- package/dist/chunks/cli-1.1.27-t1dxp2pw.mjs +2 -0
- package/dist/chunks/cli-1.1.27-t32zh7r1.mjs +2 -0
- package/dist/chunks/cli-1.1.27-t4rm4dqf.mjs +6 -0
- package/dist/chunks/cli-1.1.27-tc4b7enb.mjs +17 -0
- package/dist/chunks/cli-1.1.27-tpefzkds.mjs +4 -0
- package/dist/chunks/cli-1.1.27-tw693ept.mjs +2 -0
- package/dist/chunks/cli-1.1.27-v24sqtag.mjs +24 -0
- package/dist/chunks/cli-1.1.27-v49qz5nz.mjs +2 -0
- package/dist/chunks/cli-1.1.27-v9dwxgsv.mjs +15 -0
- package/dist/chunks/cli-1.1.27-vh1r16sd.mjs +6 -0
- package/dist/chunks/cli-1.1.27-vhdd7ed4.mjs +39 -0
- package/dist/chunks/cli-1.1.27-w0jz23zw.mjs +2 -0
- package/dist/chunks/cli-1.1.27-w8pwj9ef.mjs +5522 -0
- package/dist/chunks/cli-1.1.27-wbtq2bbb.mjs +2 -0
- package/dist/chunks/cli-1.1.27-wj32ftfy.mjs +2 -0
- package/dist/chunks/cli-1.1.27-wpnpp1vg.mjs +2 -0
- package/dist/chunks/cli-1.1.27-wtthtmes.mjs +3 -0
- package/dist/chunks/cli-1.1.27-wz24bwzn.mjs +2 -0
- package/dist/chunks/cli-1.1.27-x6dqasdj.mjs +17 -0
- package/dist/chunks/cli-1.1.27-xdfkhk5m.mjs +16 -0
- package/dist/chunks/cli-1.1.27-xjabxtdd.mjs +7 -0
- package/dist/chunks/cli-1.1.27-xx0q9f0f.mjs +2 -0
- package/dist/chunks/cli-1.1.27-y6pe4jk6.mjs +2 -0
- package/dist/chunks/cli-1.1.27-y712t8h2.mjs +2 -0
- package/dist/chunks/cli-1.1.27-y935z28w.mjs +2 -0
- package/dist/chunks/cli-1.1.27-yghv5btz.mjs +2 -0
- package/dist/chunks/cli-1.1.27-z32qkf2d.mjs +18 -0
- package/dist/chunks/cli-1.1.27-zbbzy1ze.mjs +2 -0
- package/dist/chunks/cli-1.1.27-zgweqxf0.mjs +9 -0
- package/dist/chunks/cli-1.1.27-zq9wak2z.mjs +2 -0
- package/dist/chunks/cli-1.1.27-zr523fbq.mjs +3 -0
- package/dist/chunks/client-1.1.27-ex7wh5hg.mjs +1 -0
- package/dist/chunks/color-1.1.27-58s1yrz1.mjs +1 -0
- package/dist/chunks/compact-1.1.27-c1wgqww4.mjs +3 -0
- package/dist/chunks/config-1.1.27-7vwe1qph.mjs +1 -0
- package/dist/chunks/config-1.1.27-ymfcbn84.mjs +1 -0
- package/dist/chunks/constants-1.1.27-3r2715sd.mjs +1 -0
- package/dist/chunks/context-1.1.27-yznf0qn9.mjs +1 -0
- package/dist/chunks/context-noninteractive-1.1.27-g15en4j2.mjs +1 -0
- package/dist/chunks/conversation-1.1.27-jmmsnhbw.mjs +1 -0
- package/dist/chunks/copilotHeaders-1.1.27-g0p5y9rf.mjs +1 -0
- package/dist/chunks/copy-1.1.27-pr6pzthk.mjs +9 -0
- package/dist/chunks/cost-1.1.27-q1yqmxr9.mjs +1 -0
- package/dist/chunks/createSSHSession-1.1.27-4cwnpwje.mjs +1 -0
- package/dist/chunks/createSession-1.1.27-xdq80vrv.mjs +1 -0
- package/dist/chunks/debug-1.1.27-42bn4afg.mjs +1 -0
- package/dist/chunks/defaultActionDeps-1.1.27-t14xxt79.mjs +1534 -0
- package/dist/chunks/desktop-1.1.27-c8h6b96d.mjs +1 -0
- package/dist/chunks/detectRepository-1.1.27-qx3djtsx.mjs +1 -0
- package/dist/chunks/detection-1.1.27-0974kbef.mjs +1 -0
- package/dist/chunks/diff-1.1.27-1cb81w47.mjs +1 -0
- package/dist/chunks/doctor-1.1.27-5ky6nxzq.mjs +1 -0
- package/dist/chunks/doctorDiagnostic-1.1.27-jcx2c92k.mjs +1 -0
- package/dist/chunks/earlyInput-1.1.27-btzh8ch0.mjs +1 -0
- package/dist/chunks/effort-1.1.27-5yvfxd52.mjs +13 -0
- package/dist/chunks/engine-1.1.27-xcjbgefa.mjs +1 -0
- package/dist/chunks/envLessBridgeConfig-1.1.27-tdwb5zkz.mjs +1 -0
- package/dist/chunks/envUtils-1.1.27-r07jyd3m.mjs +1 -0
- package/dist/chunks/environmentSelection-1.1.27-dr64k9he.mjs +1 -0
- package/dist/chunks/environments-1.1.27-s1z96vy8.mjs +1 -0
- package/dist/chunks/errors-1.1.27-bm50fpjg.mjs +1 -0
- package/dist/chunks/exampleCommands-1.1.27-wnw6egjm.mjs +1 -0
- package/dist/chunks/execFileNoThrow-1.1.27-evt4sr84.mjs +1 -0
- package/dist/chunks/exit-1.1.27-vgdg65b7.mjs +1 -0
- package/dist/chunks/explorer-1.1.27-zkb8zkpf.mjs +1 -0
- package/dist/chunks/export-1.1.27-tda60v40.mjs +2 -0
- package/dist/chunks/extra-usage-1.1.27-2bmjnc65.mjs +1 -0
- package/dist/chunks/extra-usage-noninteractive-1.1.27-m7byqk30.mjs +1 -0
- package/dist/chunks/fast-1.1.27-8bjn4w16.mjs +1 -0
- package/dist/chunks/feedback-1.1.27-vzfx84xw.mjs +14 -0
- package/dist/chunks/firstPartyEventLogger-1.1.27-57d5r280.mjs +1 -0
- package/dist/chunks/git-1.1.27-pe9yjmar.mjs +1 -0
- package/dist/chunks/githubModelsCredentials-1.1.27-r2w00yyn.mjs +1 -0
- package/dist/chunks/goal-1.1.27-da40b321.mjs +4 -0
- package/dist/chunks/growthbook-1.1.27-rmhw14zh.mjs +1 -0
- package/dist/chunks/headless-1.1.27-gwzekzne.mjs +2 -0
- package/dist/chunks/heapdump-1.1.27-0702z5xd.mjs +6 -0
- package/dist/chunks/help-1.1.27-gwcwagyv.mjs +1 -0
- package/dist/chunks/hookChains-1.1.27-jyc4rzjs.mjs +3 -0
- package/dist/chunks/hooks-1.1.27-8p1xt4z2.mjs +1 -0
- package/dist/chunks/hooks-1.1.27-vvzpa77q.mjs +79 -0
- package/dist/chunks/ide-1.1.27-w2am9w2t.mjs +3 -0
- package/dist/chunks/image-processor-napi-1.1.27-fk490n21.mjs +1 -0
- package/dist/chunks/import-1.1.27-69zkqd7t.mjs +261 -0
- package/dist/chunks/inboundAttachments-1.1.27-7whcznny.mjs +1 -0
- package/dist/chunks/index-1.1.27-03qtf3bh.mjs +9 -0
- package/dist/chunks/index-1.1.27-2w3eyz3g.mjs +1 -0
- package/dist/chunks/index-1.1.27-4td4kk2r.mjs +2 -0
- package/dist/chunks/index-1.1.27-72s4gvww.mjs +1 -0
- package/dist/chunks/index-1.1.27-7rmx1z0f.mjs +9 -0
- package/dist/chunks/index-1.1.27-949q66tk.mjs +1 -0
- package/dist/chunks/index-1.1.27-9w6rbss1.mjs +1 -0
- package/dist/chunks/index-1.1.27-9w6y0sqf.mjs +5 -0
- package/dist/chunks/index-1.1.27-9za77x22.mjs +2 -0
- package/dist/chunks/index-1.1.27-av965j5w.mjs +1 -0
- package/dist/chunks/index-1.1.27-dpf9bwn3.mjs +1 -0
- package/dist/chunks/index-1.1.27-dzzkz91c.mjs +1 -0
- package/dist/chunks/index-1.1.27-ed0cj234.mjs +30 -0
- package/dist/chunks/index-1.1.27-fz6pezpj.mjs +1 -0
- package/dist/chunks/index-1.1.27-haym7ds6.mjs +1 -0
- package/dist/chunks/index-1.1.27-k2zye2ba.mjs +1 -0
- package/dist/chunks/index-1.1.27-ktav82bw.mjs +1 -0
- package/dist/chunks/index-1.1.27-qj3j1rkb.mjs +1 -0
- package/dist/chunks/index-1.1.27-r6ypg71x.mjs +1 -0
- package/dist/chunks/index-1.1.27-r8jqe3yp.mjs +1 -0
- package/dist/chunks/index-1.1.27-rcxd3h0n.mjs +23 -0
- package/dist/chunks/index-1.1.27-spc0z43g.mjs +1 -0
- package/dist/chunks/index-1.1.27-xvd24vg3.mjs +1 -0
- package/dist/chunks/init-1.1.27-kbwzggfn.mjs +1 -0
- package/dist/chunks/initReplBridge-1.1.27-r8gnhged.mjs +1 -0
- package/dist/chunks/ink-1.1.27-btbyg6z5.mjs +1 -0
- package/dist/chunks/insights-1.1.27-r17n37gt.mjs +870 -0
- package/dist/chunks/install-1.1.27-rst7c5sr.mjs +1 -0
- package/dist/chunks/install-github-app-1.1.27-qe83k348.mjs +149 -0
- package/dist/chunks/install-slack-app-1.1.27-9btj28ve.mjs +1 -0
- package/dist/chunks/instrumentation-1.1.27-zs5yatff.mjs +1 -0
- package/dist/chunks/interactiveHelpers-1.1.27-vkw6dmnx.mjs +1 -0
- package/dist/chunks/keybindings-1.1.27-1sx34z24.mjs +2 -0
- package/dist/chunks/knowledge-1.1.27-3vda7yge.mjs +2 -0
- package/dist/chunks/latestVersionCache-1.1.27-8vg474pc.mjs +1 -0
- package/dist/chunks/loadAgentsDir-1.1.27-ax53z9hj.mjs +1 -0
- package/dist/chunks/loadPluginHooks-1.1.27-34tp38m5.mjs +1 -0
- package/dist/chunks/log-1.1.27-trbh6pmv.mjs +1 -0
- package/dist/chunks/main-1.1.27-y8ep0qqz.mjs +1 -0
- package/dist/chunks/managedEnv-1.1.27-xf362k5y.mjs +1 -0
- package/dist/chunks/mcp-1.1.27-af12t0f2.mjs +1 -0
- package/dist/chunks/mcp-1.1.27-qzntdrh6.mjs +17 -0
- package/dist/chunks/mcp-1.1.27-vsgp33q0.mjs +4 -0
- package/dist/chunks/mcpb-1.1.27-m9bw286t.mjs +1 -0
- package/dist/chunks/memory-1.1.27-tzff1b9e.mjs +72 -0
- package/dist/chunks/model-1.1.27-968y8qcm.mjs +2 -0
- package/dist/chunks/model-1.1.27-p2b82a7t.mjs +1 -0
- package/dist/chunks/node-1.1.27-bghx5g4n.mjs +1 -0
- package/dist/chunks/node-1.1.27-rjfnqhpk.mjs +15 -0
- package/dist/chunks/oauth-1.1.27-19qatx62.mjs +1 -0
- package/dist/chunks/openaiShim-1.1.27-p50pa80m.mjs +14 -0
- package/dist/chunks/output-style-1.1.27-6h4astb5.mjs +1 -0
- package/dist/chunks/package-OS7RONXY-1.1.27-nvbtkqpn.mjs +1 -0
- package/dist/chunks/parseConnectUrl-1.1.27-3gy61f1e.mjs +1 -0
- package/dist/chunks/parser-1.1.27-6m7zhkr7.mjs +1 -0
- package/dist/chunks/passes-1.1.27-2n9jw11x.mjs +1 -0
- package/dist/chunks/permissions-1.1.27-ah7j2bj9.mjs +3 -0
- package/dist/chunks/permissions-1.1.27-qnhk36mh.mjs +1 -0
- package/dist/chunks/plan-1.1.27-vkhc8mq9.mjs +1 -0
- package/dist/chunks/plist-1.1.27-vg4h3pf9.mjs +1 -0
- package/dist/chunks/plugin-1.1.27-benemmgh.mjs +29 -0
- package/dist/chunks/pluginStartupCheck-1.1.27-tyd8w4ay.mjs +1 -0
- package/dist/chunks/plugins-1.1.27-er0je2r7.mjs +9 -0
- package/dist/chunks/preActionHook-1.1.27-8w2hxz61.mjs +2 -0
- package/dist/chunks/print-1.1.27-nf4vjdv0.mjs +57 -0
- package/dist/chunks/process-1.1.27-1en4vj8c.mjs +1 -0
- package/dist/chunks/processBashCommand-1.1.27-y2nx754j.mjs +1 -0
- package/dist/chunks/processSlashCommand-1.1.27-mert7w0e.mjs +9 -0
- package/dist/chunks/prompt-1.1.27-0qqepg5j.mjs +1 -0
- package/dist/chunks/prompt-1.1.27-40pnv6x7.mjs +1 -0
- package/dist/chunks/prompts-1.1.27-kvtvsbhd.mjs +1 -0
- package/dist/chunks/protocolHandler-1.1.27-27de09ht.mjs +13 -0
- package/dist/chunks/provider-1.1.27-g4r1c84c.mjs +2 -0
- package/dist/chunks/providerProfiles-1.1.27-tp6zknw0.mjs +1 -0
- package/dist/chunks/providerValidation-1.1.27-ntakvdzk.mjs +6 -0
- package/dist/chunks/rate-limit-options-1.1.27-fvdwd7xd.mjs +1 -0
- package/dist/chunks/registerSubcommands-1.1.27-5pprq81w.mjs +26 -0
- package/dist/chunks/registry-1.1.27-vccj3rtk.mjs +1 -0
- package/dist/chunks/release-notes-1.1.27-a7x9237x.mjs +5 -0
- package/dist/chunks/reload-plugins-1.1.27-7yf3667k.mjs +2 -0
- package/dist/chunks/remote-env-1.1.27-2vdhr1s9.mjs +1 -0
- package/dist/chunks/remoteBridgeCore-1.1.27-0qn70btv.mjs +1 -0
- package/dist/chunks/remoteSession-1.1.27-21n6mx7d.mjs +1 -0
- package/dist/chunks/rename-1.1.27-x0qfjvj2.mjs +1 -0
- package/dist/chunks/replBridgeHandle-1.1.27-661m032k.mjs +1 -0
- package/dist/chunks/replLauncher-1.1.27-48an8y55.mjs +1 -0
- package/dist/chunks/resume-1.1.27-0n7jaz71.mjs +2 -0
- package/dist/chunks/rewind-1.1.27-0dhz50d0.mjs +1 -0
- package/dist/chunks/rootOptions-1.1.27-8k0jbnfk.mjs +1 -0
- package/dist/chunks/runWorkflowHeadless-1.1.27-3a15vms4.mjs +10 -0
- package/dist/chunks/sandbox-adapter-1.1.27-j8pr6jz7.mjs +1 -0
- package/dist/chunks/sandbox-toggle-1.1.27-r1nrcxaz.mjs +1 -0
- package/dist/chunks/session-1.1.27-bv5zha49.mjs +2 -0
- package/dist/chunks/sessionDiscovery-1.1.27-z50hzta3.mjs +1 -0
- package/dist/chunks/sessionFileAccessHooks-1.1.27-vc8ajjh0.mjs +1 -0
- package/dist/chunks/sessionStorage-1.1.27-0vfss5b6.mjs +1 -0
- package/dist/chunks/settings-1.1.27-jar0d6ey.mjs +1 -0
- package/dist/chunks/setup-1.1.27-ggnhb2c8.mjs +12 -0
- package/dist/chunks/sinks-1.1.27-qevt5nft.mjs +1 -0
- package/dist/chunks/skills-1.1.27-wjq94pk8.mjs +1 -0
- package/dist/chunks/startupProfiler-1.1.27-q5yb3a35.mjs +1 -0
- package/dist/chunks/startupUpdateCheck-1.1.27-k3spb2gh.mjs +1 -0
- package/dist/chunks/state-1.1.27-fpyqkxby.mjs +1 -0
- package/dist/chunks/stats-1.1.27-xb10zj7e.mjs +1 -0
- package/dist/chunks/status-1.1.27-7vscpczw.mjs +1 -0
- package/dist/chunks/stickers-1.1.27-j4em7gfg.mjs +1 -0
- package/dist/chunks/subprocessEnv-1.1.27-0dm2v5n5.mjs +1 -0
- package/dist/chunks/tasks-1.1.27-a7d9cx1a.mjs +1 -0
- package/dist/chunks/teamHelpers-1.1.27-2jkv3830.mjs +1 -0
- package/dist/chunks/teammateModeSnapshot-1.1.27-8vmyznjc.mjs +1 -0
- package/dist/chunks/teleport-1.1.27-d6bgvctx.mjs +1 -0
- package/dist/chunks/terminalSetup-1.1.27-8k6bdqzf.mjs +1 -0
- package/dist/chunks/theme-1.1.27-dzme81zx.mjs +1 -0
- package/dist/chunks/thinkback-1.1.27-8hrqe8zc.mjs +1 -0
- package/dist/chunks/thinkback-play-1.1.27-7pf0t9jk.mjs +1 -0
- package/dist/chunks/toolPool-1.1.27-yndm4vnc.mjs +1 -0
- package/dist/chunks/toolSearch-1.1.27-m1tpg8zj.mjs +1 -0
- package/dist/chunks/tools-1.1.27-f6v2cxn6.mjs +1 -0
- package/dist/chunks/trustedDevice-1.1.27-bkp7wbqw.mjs +1 -0
- package/dist/chunks/turndown.cjs-1.1.27-ev0anxmd.mjs +69 -0
- package/dist/chunks/types-1.1.27-pgjcgwmr.mjs +1 -0
- package/dist/chunks/ultrareviewCommand-1.1.27-fzpef911.mjs +4 -0
- package/dist/chunks/update-1.1.27-0rwrmj8m.mjs +72 -0
- package/dist/chunks/upgrade-1.1.27-zacn9g92.mjs +1 -0
- package/dist/chunks/upload-1.1.27-9natjvcx.mjs +7 -0
- package/dist/chunks/upstreamproxy-1.1.27-484n2sck.mjs +14 -0
- package/dist/chunks/url-handler-napi-1.1.27-e0vf9zwd.mjs +1 -0
- package/dist/chunks/usage-1.1.27-qdx2zhbe.mjs +1 -0
- package/dist/chunks/util-1.1.27-m60qqy4m.mjs +1 -0
- package/dist/chunks/utils-1.1.27-bpj1f9q9.mjs +1 -0
- package/dist/chunks/vim-1.1.27-dvj5bk5p.mjs +1 -0
- package/dist/chunks/watchLoop-1.1.27-1vydfkzw.mjs +13 -0
- package/dist/chunks/watcher-1.1.27-jxayr96k.mjs +1 -0
- package/dist/chunks/wiki-1.1.27-t7nxcbah.mjs +132 -0
- package/dist/chunks/workflows-1.1.27-7bdgxjth.mjs +1 -0
- package/dist/chunks/worktree-1.1.27-6kkgvwks.mjs +1 -0
- package/dist/chunks/worktreeModeEnabled-1.1.27-ax7kv7qq.mjs +1 -0
- package/dist/chunks/wrapper-1.1.27-q9kmdf61.mjs +7 -0
- package/dist/cli.mjs +2 -2
- package/package.json +9 -9
- package/dist/chunks/AgentTool-1.1.26-pww3rzse.mjs +0 -1
- package/dist/chunks/App-1.1.26-4vaezrz4.mjs +0 -1
- package/dist/chunks/ApproveApiKey-1.1.26-rngrjmp0.mjs +0 -1
- package/dist/chunks/AssistantSessionChooser-1.1.26-n2977m3p.mjs +0 -1
- package/dist/chunks/AutoModeOptInDialog-1.1.26-9y3h164v.mjs +0 -1
- package/dist/chunks/BypassPermissionsModeDialog-1.1.26-qzf3wf2e.mjs +0 -1
- package/dist/chunks/ClaudeMdExternalIncludesDialog-1.1.26-4rsh36df.mjs +0 -1
- package/dist/chunks/ConsoleOAuthFlow-1.1.26-g1kknwq5.mjs +0 -1
- package/dist/chunks/DiffDialog-1.1.26-4bt5rf4c.mjs +0 -6
- package/dist/chunks/Doctor-1.1.26-jnzpfe2z.mjs +0 -1
- package/dist/chunks/ExplorerDialog-1.1.26-h4ha2k3s.mjs +0 -6
- package/dist/chunks/ITermBackend-1.1.26-6vq713nq.mjs +0 -1
- package/dist/chunks/InvalidConfigDialog-1.1.26-5mpbyw8j.mjs +0 -1
- package/dist/chunks/InvalidSettingsDialog-1.1.26-y240kr8g.mjs +0 -1
- package/dist/chunks/MigrationDialog-1.1.26-bhdbn3pv.mjs +0 -1
- package/dist/chunks/Onboarding-1.1.26-v8am83rd.mjs +0 -1
- package/dist/chunks/ProviderManager-1.1.26-22a8rbdy.mjs +0 -1
- package/dist/chunks/REPL-1.1.26-z72g0j0z.mjs +0 -1
- package/dist/chunks/ResumeConversation-1.1.26-gh9s3rjn.mjs +0 -1
- package/dist/chunks/SnapshotUpdateDialog-1.1.26-r40qtar2.mjs +0 -1
- package/dist/chunks/TeleportProgress-1.1.26-23se9f85.mjs +0 -1
- package/dist/chunks/TeleportRepoMismatchDialog-1.1.26-7r52d8rv.mjs +0 -1
- package/dist/chunks/TeleportResumeWrapper-1.1.26-k6atzshz.mjs +0 -1
- package/dist/chunks/TmuxBackend-1.1.26-ym3spr0b.mjs +0 -9
- package/dist/chunks/ToolSearchTool-1.1.26-c332beft.mjs +0 -1
- package/dist/chunks/TrustDialog-1.1.26-sqqx0vck.mjs +0 -1
- package/dist/chunks/activeProvider-1.1.26-maqce1gv.mjs +0 -1
- package/dist/chunks/add-dir-1.1.26-qcws8kjg.mjs +0 -1
- package/dist/chunks/agentTypes-1.1.26-fw01kwc9.mjs +0 -1
- package/dist/chunks/agents-1.1.26-dasaamxr.mjs +0 -3
- package/dist/chunks/agents-1.1.26-p33pq694.mjs +0 -110
- package/dist/chunks/api-1.1.26-msb1jnzq.mjs +0 -1
- package/dist/chunks/asciicast-1.1.26-vf9e0v5b.mjs +0 -1
- package/dist/chunks/assistant-1.1.26-h2aycjkn.mjs +0 -1
- package/dist/chunks/auth-1.1.26-dk7wnv7t.mjs +0 -1
- package/dist/chunks/auth-1.1.26-q8xgzm5r.mjs +0 -1
- package/dist/chunks/autoMode-1.1.26-zrzav382.mjs +0 -52
- package/dist/chunks/autoModeSetup-1.1.26-x7k5ammk.mjs +0 -44
- package/dist/chunks/autoUpdater-1.1.26-6hmytwm6.mjs +0 -1
- package/dist/chunks/backgroundHousekeeping-1.1.26-09grqe05.mjs +0 -1
- package/dist/chunks/branch-1.1.26-e1qfc78k.mjs +0 -4
- package/dist/chunks/bridge-1.1.26-h1bxacst.mjs +0 -2
- package/dist/chunks/bridgeConfig-1.1.26-vpz1r911.mjs +0 -1
- package/dist/chunks/bridgeEnabled-1.1.26-xkeegvk7.mjs +0 -1
- package/dist/chunks/bridgeMain-1.1.26-dnv31x02.mjs +0 -88
- package/dist/chunks/bridgePointer-1.1.26-d2zjebn5.mjs +0 -1
- package/dist/chunks/btw-1.1.26-9hcjg1vm.mjs +0 -1
- package/dist/chunks/buddy-1.1.26-20xpa564.mjs +0 -3
- package/dist/chunks/cache-probe-1.1.26-p18jjck5.mjs +0 -21
- package/dist/chunks/cacheStats-1.1.26-tndvbhbh.mjs +0 -4
- package/dist/chunks/caches-1.1.26-g9aneehb.mjs +0 -1
- package/dist/chunks/cd-1.1.26-1mhwbmvw.mjs +0 -3
- package/dist/chunks/claudeDesktop-1.1.26-8970gddx.mjs +0 -1
- package/dist/chunks/claudemd-1.1.26-a0wvdz6h.mjs +0 -1
- package/dist/chunks/clear-1.1.26-8f7hbzks.mjs +0 -1
- package/dist/chunks/clearTerminal-1.1.26-yxrgchg6.mjs +0 -1
- package/dist/chunks/cli-1.1.26-01erqdx7.mjs +0 -6
- package/dist/chunks/cli-1.1.26-0qa3rcd8.mjs +0 -6
- package/dist/chunks/cli-1.1.26-132vkvj1.mjs +0 -2
- package/dist/chunks/cli-1.1.26-14kc3afb.mjs +0 -3
- package/dist/chunks/cli-1.1.26-14n169e4.mjs +0 -2
- package/dist/chunks/cli-1.1.26-16s9pjdh.mjs +0 -2
- package/dist/chunks/cli-1.1.26-1mbz2mcm.mjs +0 -2
- package/dist/chunks/cli-1.1.26-1v8jg7nn.mjs +0 -2
- package/dist/chunks/cli-1.1.26-1vdqjs9c.mjs +0 -21
- package/dist/chunks/cli-1.1.26-1ze7r6x4.mjs +0 -24
- package/dist/chunks/cli-1.1.26-28qe790b.mjs +0 -2
- package/dist/chunks/cli-1.1.26-2dzytde4.mjs +0 -2
- package/dist/chunks/cli-1.1.26-2fbt2m4z.mjs +0 -4
- package/dist/chunks/cli-1.1.26-2j0g9z56.mjs +0 -2
- package/dist/chunks/cli-1.1.26-2k53vhr6.mjs +0 -2
- package/dist/chunks/cli-1.1.26-2msjf68r.mjs +0 -2
- package/dist/chunks/cli-1.1.26-2s2gpj0g.mjs +0 -2
- package/dist/chunks/cli-1.1.26-31negda3.mjs +0 -2
- package/dist/chunks/cli-1.1.26-32vewh62.mjs +0 -6
- package/dist/chunks/cli-1.1.26-38m8cha0.mjs +0 -2
- package/dist/chunks/cli-1.1.26-3c44vscp.mjs +0 -2
- package/dist/chunks/cli-1.1.26-3gepexgn.mjs +0 -66
- package/dist/chunks/cli-1.1.26-3hemew00.mjs +0 -3
- package/dist/chunks/cli-1.1.26-3htpgh4y.mjs +0 -2
- package/dist/chunks/cli-1.1.26-3k8e9a3k.mjs +0 -2
- package/dist/chunks/cli-1.1.26-3p2ch222.mjs +0 -2
- package/dist/chunks/cli-1.1.26-3z39qjr1.mjs +0 -24
- package/dist/chunks/cli-1.1.26-4aztw2ex.mjs +0 -2
- package/dist/chunks/cli-1.1.26-4cj6rr02.mjs +0 -2
- package/dist/chunks/cli-1.1.26-4jbtcb3c.mjs +0 -17
- package/dist/chunks/cli-1.1.26-4jn0r6an.mjs +0 -2
- package/dist/chunks/cli-1.1.26-516p6zzp.mjs +0 -2
- package/dist/chunks/cli-1.1.26-55ayan24.mjs +0 -133
- package/dist/chunks/cli-1.1.26-5fv3wdye.mjs +0 -2
- package/dist/chunks/cli-1.1.26-5p6865dd.mjs +0 -2
- package/dist/chunks/cli-1.1.26-6ac72fwz.mjs +0 -5
- package/dist/chunks/cli-1.1.26-6c5rgjbj.mjs +0 -2
- package/dist/chunks/cli-1.1.26-6g0bq6h6.mjs +0 -26
- package/dist/chunks/cli-1.1.26-6p5bpbzy.mjs +0 -2
- package/dist/chunks/cli-1.1.26-6qzbf8mr.mjs +0 -3
- package/dist/chunks/cli-1.1.26-6v5e8fy8.mjs +0 -2
- package/dist/chunks/cli-1.1.26-73s95190.mjs +0 -4
- package/dist/chunks/cli-1.1.26-79g0hfrb.mjs +0 -4
- package/dist/chunks/cli-1.1.26-79j24jxp.mjs +0 -2
- package/dist/chunks/cli-1.1.26-7h1213xq.mjs +0 -1
- package/dist/chunks/cli-1.1.26-7pa47kxq.mjs +0 -2
- package/dist/chunks/cli-1.1.26-7q7jw0ck.mjs +0 -2
- package/dist/chunks/cli-1.1.26-7ssnr221.mjs +0 -4
- package/dist/chunks/cli-1.1.26-851khk0n.mjs +0 -2
- package/dist/chunks/cli-1.1.26-89reg5gc.mjs +0 -2
- package/dist/chunks/cli-1.1.26-8h5tr358.mjs +0 -2
- package/dist/chunks/cli-1.1.26-8vq4pfa8.mjs +0 -2
- package/dist/chunks/cli-1.1.26-8wng8tbf.mjs +0 -2
- package/dist/chunks/cli-1.1.26-945rz3ns.mjs +0 -2
- package/dist/chunks/cli-1.1.26-97w71raz.mjs +0 -2
- package/dist/chunks/cli-1.1.26-9kzdvxzw.mjs +0 -2
- package/dist/chunks/cli-1.1.26-9mg6k159.mjs +0 -2
- package/dist/chunks/cli-1.1.26-9x90xrtz.mjs +0 -2
- package/dist/chunks/cli-1.1.26-ab2xbv4t.mjs +0 -2
- package/dist/chunks/cli-1.1.26-abp7zq8a.mjs +0 -7
- package/dist/chunks/cli-1.1.26-agrrdhst.mjs +0 -12
- package/dist/chunks/cli-1.1.26-aj61ygn7.mjs +0 -2
- package/dist/chunks/cli-1.1.26-arx4za97.mjs +0 -2
- package/dist/chunks/cli-1.1.26-avyt487s.mjs +0 -4
- package/dist/chunks/cli-1.1.26-b3m57q7j.mjs +0 -24
- package/dist/chunks/cli-1.1.26-b5xvjyj6.mjs +0 -2
- package/dist/chunks/cli-1.1.26-bc7nnmyt.mjs +0 -4
- package/dist/chunks/cli-1.1.26-bmzjvqhh.mjs +0 -2
- package/dist/chunks/cli-1.1.26-bs6j2409.mjs +0 -2
- package/dist/chunks/cli-1.1.26-bv6bd469.mjs +0 -2
- package/dist/chunks/cli-1.1.26-c1s0antn.mjs +0 -2
- package/dist/chunks/cli-1.1.26-c9m56qw1.mjs +0 -4
- package/dist/chunks/cli-1.1.26-cdkkrgj3.mjs +0 -6
- package/dist/chunks/cli-1.1.26-chwpygff.mjs +0 -2
- package/dist/chunks/cli-1.1.26-cmeam5fv.mjs +0 -4
- package/dist/chunks/cli-1.1.26-crwbhf2k.mjs +0 -2
- package/dist/chunks/cli-1.1.26-d6m0sag3.mjs +0 -2
- package/dist/chunks/cli-1.1.26-dq31hqw9.mjs +0 -2
- package/dist/chunks/cli-1.1.26-dyyg0r9f.mjs +0 -2
- package/dist/chunks/cli-1.1.26-e807ek7h.mjs +0 -3
- package/dist/chunks/cli-1.1.26-e8stbnjk.mjs +0 -2
- package/dist/chunks/cli-1.1.26-eb90p21t.mjs +0 -10
- package/dist/chunks/cli-1.1.26-edg965cj.mjs +0 -2
- package/dist/chunks/cli-1.1.26-etwfcg1g.mjs +0 -2
- package/dist/chunks/cli-1.1.26-exd0gw3b.mjs +0 -3
- package/dist/chunks/cli-1.1.26-f0cvk9rp.mjs +0 -3
- package/dist/chunks/cli-1.1.26-f624n21e.mjs +0 -2
- package/dist/chunks/cli-1.1.26-fcnssbje.mjs +0 -2
- package/dist/chunks/cli-1.1.26-ft1bty40.mjs +0 -45
- package/dist/chunks/cli-1.1.26-g0jbhnrw.mjs +0 -3
- package/dist/chunks/cli-1.1.26-g1a27741.mjs +0 -3
- package/dist/chunks/cli-1.1.26-g3eqp15d.mjs +0 -2
- package/dist/chunks/cli-1.1.26-g54bqv9d.mjs +0 -2
- package/dist/chunks/cli-1.1.26-g825efx8.mjs +0 -3
- package/dist/chunks/cli-1.1.26-grerq74y.mjs +0 -4
- package/dist/chunks/cli-1.1.26-gt65gs27.mjs +0 -2
- package/dist/chunks/cli-1.1.26-h2bzv8a9.mjs +0 -2
- package/dist/chunks/cli-1.1.26-h8pwf3e5.mjs +0 -34
- package/dist/chunks/cli-1.1.26-hc0z3th3.mjs +0 -2
- package/dist/chunks/cli-1.1.26-hgr89jmg.mjs +0 -2
- package/dist/chunks/cli-1.1.26-hk66nk4j.mjs +0 -2
- package/dist/chunks/cli-1.1.26-hkn2maax.mjs +0 -12
- package/dist/chunks/cli-1.1.26-hwb66n0d.mjs +0 -20
- package/dist/chunks/cli-1.1.26-hxty6b5t.mjs +0 -24
- package/dist/chunks/cli-1.1.26-j0ggtb42.mjs +0 -2
- package/dist/chunks/cli-1.1.26-j0pfn318.mjs +0 -2
- package/dist/chunks/cli-1.1.26-j3g54xq9.mjs +0 -25
- package/dist/chunks/cli-1.1.26-j522h2zj.mjs +0 -2
- package/dist/chunks/cli-1.1.26-j5jzf8nr.mjs +0 -2
- package/dist/chunks/cli-1.1.26-jaq75h39.mjs +0 -2
- package/dist/chunks/cli-1.1.26-jcshhf4v.mjs +0 -2
- package/dist/chunks/cli-1.1.26-jp74zrnt.mjs +0 -2
- package/dist/chunks/cli-1.1.26-jstehae2.mjs +0 -25
- package/dist/chunks/cli-1.1.26-jv1escq9.mjs +0 -9
- package/dist/chunks/cli-1.1.26-jz95bmqy.mjs +0 -2
- package/dist/chunks/cli-1.1.26-k287xjcs.mjs +0 -2
- package/dist/chunks/cli-1.1.26-k827q3s7.mjs +0 -2
- package/dist/chunks/cli-1.1.26-kb5qx4tp.mjs +0 -15
- package/dist/chunks/cli-1.1.26-kk4ymgvj.mjs +0 -2
- package/dist/chunks/cli-1.1.26-kmpjjneg.mjs +0 -50
- package/dist/chunks/cli-1.1.26-krj2sk8f.mjs +0 -2
- package/dist/chunks/cli-1.1.26-ktfnpsqn.mjs +0 -2
- package/dist/chunks/cli-1.1.26-kvt0v6vq.mjs +0 -5459
- package/dist/chunks/cli-1.1.26-kvy3vgrt.mjs +0 -20
- package/dist/chunks/cli-1.1.26-kz0et72d.mjs +0 -2
- package/dist/chunks/cli-1.1.26-m2ajjr1n.mjs +0 -2
- package/dist/chunks/cli-1.1.26-m3gpc1yq.mjs +0 -6
- package/dist/chunks/cli-1.1.26-m8mebydd.mjs +0 -3
- package/dist/chunks/cli-1.1.26-mb749hsh.mjs +0 -2
- package/dist/chunks/cli-1.1.26-mdtsa5pq.mjs +0 -2
- package/dist/chunks/cli-1.1.26-mvjefec1.mjs +0 -206
- package/dist/chunks/cli-1.1.26-n0thzakv.mjs +0 -2
- package/dist/chunks/cli-1.1.26-n43rh2dq.mjs +0 -2
- package/dist/chunks/cli-1.1.26-nbkw9wa7.mjs +0 -2
- package/dist/chunks/cli-1.1.26-nkp41vem.mjs +0 -2
- package/dist/chunks/cli-1.1.26-np0se5jr.mjs +0 -2
- package/dist/chunks/cli-1.1.26-nr4x1ay3.mjs +0 -6
- package/dist/chunks/cli-1.1.26-nv2mgz6h.mjs +0 -60
- package/dist/chunks/cli-1.1.26-p2gpyynf.mjs +0 -2
- package/dist/chunks/cli-1.1.26-pdpvbn6t.mjs +0 -2
- package/dist/chunks/cli-1.1.26-pejnbqtd.mjs +0 -2
- package/dist/chunks/cli-1.1.26-pf85an2q.mjs +0 -2
- package/dist/chunks/cli-1.1.26-phdsw9kw.mjs +0 -2
- package/dist/chunks/cli-1.1.26-pp0zr4bw.mjs +0 -39
- package/dist/chunks/cli-1.1.26-pttfqxxh.mjs +0 -2
- package/dist/chunks/cli-1.1.26-pttr45sa.mjs +0 -2
- package/dist/chunks/cli-1.1.26-pzpydjmr.mjs +0 -2
- package/dist/chunks/cli-1.1.26-q4vaz10d.mjs +0 -2
- package/dist/chunks/cli-1.1.26-q77fmxtz.mjs +0 -2
- package/dist/chunks/cli-1.1.26-q9msymy9.mjs +0 -7
- package/dist/chunks/cli-1.1.26-qf02kggq.mjs +0 -2
- package/dist/chunks/cli-1.1.26-qr2ee3t2.mjs +0 -2
- package/dist/chunks/cli-1.1.26-qw49rw3y.mjs +0 -17
- package/dist/chunks/cli-1.1.26-qymrzn5k.mjs +0 -2
- package/dist/chunks/cli-1.1.26-r4ewzysx.mjs +0 -3
- package/dist/chunks/cli-1.1.26-rbxsj403.mjs +0 -8
- package/dist/chunks/cli-1.1.26-rgz7nebj.mjs +0 -2
- package/dist/chunks/cli-1.1.26-rkdk0vdh.mjs +0 -2
- package/dist/chunks/cli-1.1.26-rpd6k1rg.mjs +0 -2
- package/dist/chunks/cli-1.1.26-rr47cs5n.mjs +0 -2
- package/dist/chunks/cli-1.1.26-rrq5hxxh.mjs +0 -9
- package/dist/chunks/cli-1.1.26-rtk9fw0k.mjs +0 -2
- package/dist/chunks/cli-1.1.26-rzrs3g9w.mjs +0 -2
- package/dist/chunks/cli-1.1.26-sfz2mk5a.mjs +0 -15
- package/dist/chunks/cli-1.1.26-snnmp5qx.mjs +0 -2
- package/dist/chunks/cli-1.1.26-ssxrwqk2.mjs +0 -2
- package/dist/chunks/cli-1.1.26-swdk2n55.mjs +0 -2
- package/dist/chunks/cli-1.1.26-sx40y42s.mjs +0 -2
- package/dist/chunks/cli-1.1.26-syjzv1v1.mjs +0 -18
- package/dist/chunks/cli-1.1.26-t05x8de5.mjs +0 -2
- package/dist/chunks/cli-1.1.26-ta82bxzt.mjs +0 -3
- package/dist/chunks/cli-1.1.26-tcbtd5f6.mjs +0 -2
- package/dist/chunks/cli-1.1.26-tgtv1jp3.mjs +0 -16
- package/dist/chunks/cli-1.1.26-thxyzhdj.mjs +0 -42
- package/dist/chunks/cli-1.1.26-txmxmpj4.mjs +0 -2
- package/dist/chunks/cli-1.1.26-tyvfnyw1.mjs +0 -2
- package/dist/chunks/cli-1.1.26-v0vv0v6c.mjs +0 -58
- package/dist/chunks/cli-1.1.26-v440gznh.mjs +0 -3
- package/dist/chunks/cli-1.1.26-v6fnwae1.mjs +0 -2
- package/dist/chunks/cli-1.1.26-v7k7gw6h.mjs +0 -2
- package/dist/chunks/cli-1.1.26-vb3pa5k9.mjs +0 -2
- package/dist/chunks/cli-1.1.26-vne421we.mjs +0 -133
- package/dist/chunks/cli-1.1.26-vpdrb404.mjs +0 -2
- package/dist/chunks/cli-1.1.26-vxzeagvf.mjs +0 -2
- package/dist/chunks/cli-1.1.26-vypd5zf6.mjs +0 -5
- package/dist/chunks/cli-1.1.26-w94mate8.mjs +0 -2
- package/dist/chunks/cli-1.1.26-w9hym0b4.mjs +0 -2
- package/dist/chunks/cli-1.1.26-wy5w6zkt.mjs +0 -2
- package/dist/chunks/cli-1.1.26-x64s4kth.mjs +0 -2
- package/dist/chunks/cli-1.1.26-x82tpywr.mjs +0 -2
- package/dist/chunks/cli-1.1.26-xdcmgkcr.mjs +0 -15
- package/dist/chunks/cli-1.1.26-xkj6kd3c.mjs +0 -2
- package/dist/chunks/cli-1.1.26-xnqas0g4.mjs +0 -2
- package/dist/chunks/cli-1.1.26-xrb5tnj3.mjs +0 -2
- package/dist/chunks/cli-1.1.26-xrqbcbv5.mjs +0 -2
- package/dist/chunks/cli-1.1.26-xspr3ymb.mjs +0 -2
- package/dist/chunks/cli-1.1.26-xwryqq86.mjs +0 -2
- package/dist/chunks/cli-1.1.26-xzbv3dzb.mjs +0 -2
- package/dist/chunks/cli-1.1.26-y82xxzhw.mjs +0 -2
- package/dist/chunks/cli-1.1.26-yz9ks5m0.mjs +0 -2
- package/dist/chunks/cli-1.1.26-z2cjynpf.mjs +0 -2
- package/dist/chunks/cli-1.1.26-z5qgpexv.mjs +0 -3
- package/dist/chunks/cli-1.1.26-zb5hq3ry.mjs +0 -2
- package/dist/chunks/cli-1.1.26-zsf06fnj.mjs +0 -2
- package/dist/chunks/cli-1.1.26-zy2fcj67.mjs +0 -2
- package/dist/chunks/cli-1.1.26-zyt75y9a.mjs +0 -2
- package/dist/chunks/client-1.1.26-5m13dtqt.mjs +0 -1
- package/dist/chunks/color-1.1.26-hc4gee57.mjs +0 -1
- package/dist/chunks/compact-1.1.26-k29q801r.mjs +0 -3
- package/dist/chunks/config-1.1.26-20jye461.mjs +0 -1
- package/dist/chunks/config-1.1.26-f3tsx9mm.mjs +0 -1
- package/dist/chunks/constants-1.1.26-vyt7y0vq.mjs +0 -1
- package/dist/chunks/context-1.1.26-xg3zeq1z.mjs +0 -1
- package/dist/chunks/context-noninteractive-1.1.26-n05p37yd.mjs +0 -1
- package/dist/chunks/conversation-1.1.26-g9vfc7p7.mjs +0 -1
- package/dist/chunks/copilotHeaders-1.1.26-gr7hc6j5.mjs +0 -1
- package/dist/chunks/copy-1.1.26-t50s90xg.mjs +0 -9
- package/dist/chunks/cost-1.1.26-9hp3110j.mjs +0 -1
- package/dist/chunks/createSSHSession-1.1.26-hpzpfpqk.mjs +0 -1
- package/dist/chunks/createSession-1.1.26-4mxab0d8.mjs +0 -1
- package/dist/chunks/debug-1.1.26-m7p7fchf.mjs +0 -1
- package/dist/chunks/defaultActionDeps-1.1.26-0fr1vrkt.mjs +0 -1534
- package/dist/chunks/desktop-1.1.26-1qjp6a2c.mjs +0 -1
- package/dist/chunks/detectRepository-1.1.26-pmahtt3f.mjs +0 -1
- package/dist/chunks/detection-1.1.26-1wrkcwrj.mjs +0 -1
- package/dist/chunks/diff-1.1.26-c4nqg8fb.mjs +0 -1
- package/dist/chunks/doctor-1.1.26-0jtnwy0r.mjs +0 -1
- package/dist/chunks/doctorDiagnostic-1.1.26-x38xj5dq.mjs +0 -1
- package/dist/chunks/earlyInput-1.1.26-gp0650zq.mjs +0 -1
- package/dist/chunks/effort-1.1.26-8w1e6q0y.mjs +0 -13
- package/dist/chunks/engine-1.1.26-jt09gh12.mjs +0 -1
- package/dist/chunks/envLessBridgeConfig-1.1.26-p0x7avh5.mjs +0 -1
- package/dist/chunks/envUtils-1.1.26-p89sr6v4.mjs +0 -1
- package/dist/chunks/environmentSelection-1.1.26-d8vnmed1.mjs +0 -1
- package/dist/chunks/environments-1.1.26-fz5c214j.mjs +0 -1
- package/dist/chunks/errors-1.1.26-6bzb64g6.mjs +0 -1
- package/dist/chunks/exampleCommands-1.1.26-s4bn18p7.mjs +0 -1
- package/dist/chunks/execFileNoThrow-1.1.26-xh0x0cbp.mjs +0 -1
- package/dist/chunks/exit-1.1.26-55716s6k.mjs +0 -1
- package/dist/chunks/explorer-1.1.26-969pqrwa.mjs +0 -1
- package/dist/chunks/export-1.1.26-mgccr0ea.mjs +0 -2
- package/dist/chunks/extra-usage-1.1.26-sbe56spy.mjs +0 -1
- package/dist/chunks/extra-usage-noninteractive-1.1.26-h08e3n8t.mjs +0 -1
- package/dist/chunks/fast-1.1.26-rbaqsfka.mjs +0 -1
- package/dist/chunks/feedback-1.1.26-2m81mwds.mjs +0 -14
- package/dist/chunks/firstPartyEventLogger-1.1.26-ckqh8nb4.mjs +0 -1
- package/dist/chunks/git-1.1.26-0he7ww02.mjs +0 -1
- package/dist/chunks/githubModelsCredentials-1.1.26-xj1mdstq.mjs +0 -1
- package/dist/chunks/goal-1.1.26-n5s850gv.mjs +0 -4
- package/dist/chunks/growthbook-1.1.26-ka05jsbm.mjs +0 -1
- package/dist/chunks/headless-1.1.26-q9en6pe9.mjs +0 -2
- package/dist/chunks/heapdump-1.1.26-7ewvqmvf.mjs +0 -6
- package/dist/chunks/help-1.1.26-brf53t1m.mjs +0 -1
- package/dist/chunks/hookChains-1.1.26-rkf6y8rc.mjs +0 -3
- package/dist/chunks/hooks-1.1.26-9pdav42n.mjs +0 -1
- package/dist/chunks/hooks-1.1.26-szkj02ez.mjs +0 -79
- package/dist/chunks/ide-1.1.26-m5p57hjq.mjs +0 -3
- package/dist/chunks/image-processor-napi-1.1.26-rekvc35q.mjs +0 -1
- package/dist/chunks/import-1.1.26-7gbx5jy9.mjs +0 -261
- package/dist/chunks/inboundAttachments-1.1.26-tzg5nege.mjs +0 -1
- package/dist/chunks/index-1.1.26-1xcc10z3.mjs +0 -1
- package/dist/chunks/index-1.1.26-46seym0e.mjs +0 -1
- package/dist/chunks/index-1.1.26-4qsakkwp.mjs +0 -1
- package/dist/chunks/index-1.1.26-62wb3t76.mjs +0 -5
- package/dist/chunks/index-1.1.26-7dq7zd2s.mjs +0 -2
- package/dist/chunks/index-1.1.26-924a690m.mjs +0 -1
- package/dist/chunks/index-1.1.26-9hqzzjph.mjs +0 -1
- package/dist/chunks/index-1.1.26-bmzaqft1.mjs +0 -1
- package/dist/chunks/index-1.1.26-cpb34jqj.mjs +0 -9
- package/dist/chunks/index-1.1.26-cpx6j4xt.mjs +0 -1
- package/dist/chunks/index-1.1.26-gyna59qe.mjs +0 -1
- package/dist/chunks/index-1.1.26-h45zww68.mjs +0 -30
- package/dist/chunks/index-1.1.26-matsx1ed.mjs +0 -1
- package/dist/chunks/index-1.1.26-pm334xks.mjs +0 -1
- package/dist/chunks/index-1.1.26-qrbfj1zz.mjs +0 -1
- package/dist/chunks/index-1.1.26-sh5v696c.mjs +0 -1
- package/dist/chunks/index-1.1.26-srjepzh3.mjs +0 -2
- package/dist/chunks/index-1.1.26-syyhrh9b.mjs +0 -23
- package/dist/chunks/index-1.1.26-te4885d9.mjs +0 -1
- package/dist/chunks/index-1.1.26-tyjd8na6.mjs +0 -1
- package/dist/chunks/index-1.1.26-vk1z10tp.mjs +0 -1
- package/dist/chunks/index-1.1.26-vpyv4546.mjs +0 -9
- package/dist/chunks/index-1.1.26-xc6bagza.mjs +0 -1
- package/dist/chunks/init-1.1.26-bnpznn1w.mjs +0 -1
- package/dist/chunks/initReplBridge-1.1.26-c4s4p9cb.mjs +0 -1
- package/dist/chunks/ink-1.1.26-vgbt5egw.mjs +0 -1
- package/dist/chunks/insights-1.1.26-vcx1pevy.mjs +0 -870
- package/dist/chunks/install-1.1.26-4y132asw.mjs +0 -1
- package/dist/chunks/install-github-app-1.1.26-93zf234q.mjs +0 -149
- package/dist/chunks/install-slack-app-1.1.26-mhrfx4re.mjs +0 -1
- package/dist/chunks/instrumentation-1.1.26-c4qjkj2f.mjs +0 -1
- package/dist/chunks/interactiveHelpers-1.1.26-d3arqch8.mjs +0 -1
- package/dist/chunks/keybindings-1.1.26-vn76vb0k.mjs +0 -2
- package/dist/chunks/knowledge-1.1.26-tqdt6kx8.mjs +0 -2
- package/dist/chunks/latestVersionCache-1.1.26-nefaqy0s.mjs +0 -1
- package/dist/chunks/loadAgentsDir-1.1.26-w9zj8h13.mjs +0 -1
- package/dist/chunks/loadPluginHooks-1.1.26-p32pd0zg.mjs +0 -1
- package/dist/chunks/log-1.1.26-esy3mc70.mjs +0 -1
- package/dist/chunks/main-1.1.26-mj3gcxpm.mjs +0 -1
- package/dist/chunks/managedEnv-1.1.26-z6q7c9s8.mjs +0 -1
- package/dist/chunks/mcp-1.1.26-4c7syme5.mjs +0 -17
- package/dist/chunks/mcp-1.1.26-fhs36m57.mjs +0 -1
- package/dist/chunks/mcp-1.1.26-nadsprjm.mjs +0 -4
- package/dist/chunks/mcpb-1.1.26-ek6r8msb.mjs +0 -1
- package/dist/chunks/memory-1.1.26-b3m4e86v.mjs +0 -72
- package/dist/chunks/model-1.1.26-fhssfrx1.mjs +0 -1
- package/dist/chunks/model-1.1.26-v4t85ag1.mjs +0 -2
- package/dist/chunks/node-1.1.26-y7ck63cv.mjs +0 -15
- package/dist/chunks/oauth-1.1.26-8bftajjg.mjs +0 -1
- package/dist/chunks/openaiShim-1.1.26-wvmheb4c.mjs +0 -14
- package/dist/chunks/output-style-1.1.26-rgrmrr2a.mjs +0 -1
- package/dist/chunks/package-SHMK2LJE-1.1.26-grxx0tgk.mjs +0 -1
- package/dist/chunks/parseConnectUrl-1.1.26-64n8w8aa.mjs +0 -1
- package/dist/chunks/parser-1.1.26-p8fcgcbm.mjs +0 -1
- package/dist/chunks/passes-1.1.26-65c9vjm7.mjs +0 -1
- package/dist/chunks/permissions-1.1.26-bvde1j7e.mjs +0 -1
- package/dist/chunks/permissions-1.1.26-xx4tbm19.mjs +0 -3
- package/dist/chunks/plan-1.1.26-0p7zmpya.mjs +0 -1
- package/dist/chunks/plist-1.1.26-emtpv6yq.mjs +0 -1
- package/dist/chunks/plugin-1.1.26-6mz4s6ce.mjs +0 -29
- package/dist/chunks/pluginStartupCheck-1.1.26-zsxa12d4.mjs +0 -1
- package/dist/chunks/plugins-1.1.26-z4gc0hj4.mjs +0 -9
- package/dist/chunks/preActionHook-1.1.26-zja64r0y.mjs +0 -2
- package/dist/chunks/print-1.1.26-4jbs3r8a.mjs +0 -57
- package/dist/chunks/process-1.1.26-nkvbv24g.mjs +0 -1
- package/dist/chunks/processBashCommand-1.1.26-881sdvc5.mjs +0 -1
- package/dist/chunks/processSlashCommand-1.1.26-watbp07x.mjs +0 -9
- package/dist/chunks/prompt-1.1.26-734yg5r7.mjs +0 -1
- package/dist/chunks/prompt-1.1.26-ta9d8xgm.mjs +0 -1
- package/dist/chunks/prompts-1.1.26-cacdrcnk.mjs +0 -1
- package/dist/chunks/protocolHandler-1.1.26-qfw93skn.mjs +0 -13
- package/dist/chunks/provider-1.1.26-yk3xh49r.mjs +0 -2
- package/dist/chunks/providerProfiles-1.1.26-srvwhkc8.mjs +0 -1
- package/dist/chunks/providerValidation-1.1.26-57a6s8yj.mjs +0 -6
- package/dist/chunks/rate-limit-options-1.1.26-14exf6fk.mjs +0 -1
- package/dist/chunks/registerSubcommands-1.1.26-1yddk8hw.mjs +0 -26
- package/dist/chunks/registry-1.1.26-z88679pc.mjs +0 -1
- package/dist/chunks/release-notes-1.1.26-e7dkgbnp.mjs +0 -5
- package/dist/chunks/reload-plugins-1.1.26-6r85z0m0.mjs +0 -2
- package/dist/chunks/remote-env-1.1.26-rg1652ey.mjs +0 -1
- package/dist/chunks/remoteBridgeCore-1.1.26-jmhet39g.mjs +0 -1
- package/dist/chunks/remoteSession-1.1.26-5rva0545.mjs +0 -1
- package/dist/chunks/rename-1.1.26-vp06xehr.mjs +0 -1
- package/dist/chunks/replBridgeHandle-1.1.26-cs214vs7.mjs +0 -1
- package/dist/chunks/replLauncher-1.1.26-j0wpsd4v.mjs +0 -1
- package/dist/chunks/resume-1.1.26-agfxxd17.mjs +0 -2
- package/dist/chunks/rewind-1.1.26-dr3rgj2z.mjs +0 -1
- package/dist/chunks/rootOptions-1.1.26-nc1jrtkg.mjs +0 -1
- package/dist/chunks/runWorkflowHeadless-1.1.26-4xq2d4x0.mjs +0 -10
- package/dist/chunks/sandbox-adapter-1.1.26-v5bmtrnt.mjs +0 -1
- package/dist/chunks/sandbox-toggle-1.1.26-5pxvxje1.mjs +0 -1
- package/dist/chunks/session-1.1.26-7ejzc2bx.mjs +0 -2
- package/dist/chunks/sessionDiscovery-1.1.26-n6vex16t.mjs +0 -1
- package/dist/chunks/sessionFileAccessHooks-1.1.26-q07mz5fe.mjs +0 -1
- package/dist/chunks/sessionStorage-1.1.26-3x2gtfk1.mjs +0 -1
- package/dist/chunks/settings-1.1.26-5hc0bpnb.mjs +0 -1
- package/dist/chunks/setup-1.1.26-2qatx87q.mjs +0 -12
- package/dist/chunks/sinks-1.1.26-0d001pg9.mjs +0 -1
- package/dist/chunks/skills-1.1.26-5q1xvy1e.mjs +0 -1
- package/dist/chunks/startupProfiler-1.1.26-76scq5n6.mjs +0 -1
- package/dist/chunks/startupUpdateCheck-1.1.26-jw39czgq.mjs +0 -1
- package/dist/chunks/state-1.1.26-zh2a5cb0.mjs +0 -1
- package/dist/chunks/stats-1.1.26-3yvhzgsr.mjs +0 -1
- package/dist/chunks/status-1.1.26-ey3zzjzf.mjs +0 -1
- package/dist/chunks/stickers-1.1.26-pnx0arwe.mjs +0 -1
- package/dist/chunks/subprocessEnv-1.1.26-93d936pm.mjs +0 -1
- package/dist/chunks/tasks-1.1.26-05xaegas.mjs +0 -1
- package/dist/chunks/teamHelpers-1.1.26-zn888hhw.mjs +0 -1
- package/dist/chunks/teammateModeSnapshot-1.1.26-bhkgw59h.mjs +0 -1
- package/dist/chunks/teleport-1.1.26-9m3eaa2j.mjs +0 -1
- package/dist/chunks/terminalSetup-1.1.26-p0bvd0b7.mjs +0 -1
- package/dist/chunks/theme-1.1.26-ys6mqfn7.mjs +0 -1
- package/dist/chunks/thinkback-1.1.26-v4qbcex4.mjs +0 -1
- package/dist/chunks/thinkback-play-1.1.26-6gg066vk.mjs +0 -1
- package/dist/chunks/toolPool-1.1.26-g4p6wj1v.mjs +0 -1
- package/dist/chunks/toolSearch-1.1.26-0whd6fnj.mjs +0 -1
- package/dist/chunks/tools-1.1.26-m8c4e11h.mjs +0 -1
- package/dist/chunks/trustedDevice-1.1.26-w86xceqp.mjs +0 -1
- package/dist/chunks/turndown.cjs-1.1.26-kk4sc8q3.mjs +0 -69
- package/dist/chunks/types-1.1.26-myrve966.mjs +0 -1
- package/dist/chunks/ultrareviewCommand-1.1.26-fyxh8eqb.mjs +0 -4
- package/dist/chunks/update-1.1.26-96yjt7je.mjs +0 -72
- package/dist/chunks/upgrade-1.1.26-x2geqcxm.mjs +0 -1
- package/dist/chunks/upload-1.1.26-vpwb30tf.mjs +0 -7
- package/dist/chunks/upstreamproxy-1.1.26-xe96amnx.mjs +0 -14
- package/dist/chunks/url-handler-napi-1.1.26-2v7h396d.mjs +0 -1
- package/dist/chunks/usage-1.1.26-pbyahcbc.mjs +0 -1
- package/dist/chunks/util-1.1.26-f55brgp6.mjs +0 -1
- package/dist/chunks/utils-1.1.26-ntj5p9c6.mjs +0 -1
- package/dist/chunks/vim-1.1.26-n3dckyqd.mjs +0 -1
- package/dist/chunks/watchLoop-1.1.26-shv6pr8d.mjs +0 -13
- package/dist/chunks/watcher-1.1.26-bdahcrvk.mjs +0 -1
- package/dist/chunks/wiki-1.1.26-9q9evb0p.mjs +0 -132
- package/dist/chunks/workflows-1.1.26-pv1pmcm0.mjs +0 -1
- package/dist/chunks/worktree-1.1.26-k3z8qg36.mjs +0 -1
- package/dist/chunks/worktreeModeEnabled-1.1.26-c966pdm7.mjs +0 -1
- package/dist/chunks/wrapper-1.1.26-smg8ftbk.mjs +0 -7
- /package/dist/chunks/{cli-1.1.26-t8fgt5kw.mjs → cli-1.1.27-097en7tp.mjs} +0 -0
- /package/dist/chunks/{cli-1.1.26-sgj6knz9.mjs → cli-1.1.27-5mn2zxpk.mjs} +0 -0
- /package/dist/chunks/{cli-1.1.26-rbz29dt9.mjs → cli-1.1.27-f8njyndt.mjs} +0 -0
- /package/dist/chunks/{cli-1.1.26-nqygxkhw.mjs → cli-1.1.27-sgvc7y72.mjs} +0 -0
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import{of as BY,pf as Bz}from"./cli-1.1.27-9sswt66t.mjs";import{Ah as qY,Bh as qz}from"./cli-1.1.27-tw693ept.mjs";import{DQ as rY,EQ as Lz,IG as uY,JG as wz,KI as cY,Ks as Zz,LI as mz,LT as nY,Ls as KK,SG as B0,TG as MY,UG as hY,UP as gY,VG as Tz,Vu as eY,WG as $Y,Wu as JK,XG as yz,lL as GY,lQ as iY,mU as V0,oQ as XJ,pQ as GZ,qL as Gz,qQ as X0,qo as UJ,ro as UY,so as jJ,to as XY,uo as NJ,vo as VY}from"./cli-1.1.27-w8pwj9ef.mjs";import{SY as _Y,TY as jz,eZ as $J,gZ as KY,jZ as SY,kZ as Az,qZ as pY,rZ as Fz}from"./cli-1.1.27-9chfrr9e.mjs";import{$1 as xY,A1 as fY,C1 as Ez,F1 as b,H1 as N,g0 as f0,j1 as bY,k2 as U0,p0 as LY,w0 as IY,x0 as Rz}from"./cli-1.1.27-6spv5ha8.mjs";import{U4 as U,V4 as m,W4 as bJ}from"./cli-1.1.27-kgpk1m6k.mjs";import{X4 as b0}from"./cli-1.1.27-m5wtrd2b.mjs";import{W7 as ez,s7 as tY}from"./cli-1.1.27-xdfkhk5m.mjs";import{$9 as $0,a_ as Cz}from"./cli-1.1.27-vh1r16sd.mjs";import{Gaa as Mz,Pha as fJ,Sha as l0,_ha as mY,lba as r0,nba as tz,oaa as yY}from"./cli-1.1.27-48ezce33.mjs";import{dia as S0,eia as Hz,gia as G0,ria as zY,sia as c0,via as I0}from"./cli-1.1.27-fw9r8cwg.mjs";import{uka as $,xka as Nz}from"./cli-1.1.27-7gnbh46g.mjs";import{Ala as oz,bla as oY,fla as sz,xla as CJ}from"./cli-1.1.27-r335xv52.mjs";import{Vra as TY,Wna as wY,aoa as H0}from"./cli-1.1.27-m6ne80zc.mjs";import{Ita as UZ,Mta as XZ}from"./cli-1.1.27-8vrv0ver.mjs";function QY(Z){let J=HY.c(33),{log:K,onExit:B,onSelect:G}=Z,[Q,v]=L0.default.useState(null),F,T;if(J[0]!==K)F=()=>{if(v(null),GZ(K))X0(K).then(v)},T=[K],J[0]=K,J[1]=F,J[2]=T;else F=J[1],T=J[2];L0.default.useEffect(F,T);let i=GZ(K)&&Q===null,X=Q??K,W;if(J[3]!==X)W=XJ(X)||"",J[3]=X,J[4]=W;else W=J[4];let O=W,S;if(J[5]===Symbol.for("react.memo_cache_sentinel"))S=GY(),J[5]=S;else S=J[5];let C=S,JJ;if(J[6]===Symbol.for("react.memo_cache_sentinel"))JJ={context:"Confirmation"},J[6]=JJ;else JJ=J[6];$J("confirm:no",B,JJ);let L;if(J[7]!==Q||J[8]!==K||J[9]!==G)L=()=>{G(Q??K)},J[7]=Q,J[8]=K,J[9]=G,J[10]=L;else L=J[10];let f=L,E;if(J[11]===Symbol.for("react.memo_cache_sentinel"))E={context:"Confirmation"},J[11]=E;else E=J[11];if($J("confirm:yes",f,E),i){let c;if(J[12]===Symbol.for("react.memo_cache_sentinel"))c=U(qY,{message:"Loading session…"}),J[12]=c;else c=J[12];let BJ;if(J[13]===Symbol.for("react.memo_cache_sentinel"))BJ=m(b,{flexDirection:"column",padding:1,children:[c,U(N,{dimColor:!0,children:U(NJ,{children:U(jJ,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"cancel"})})})]}),J[13]=BJ;else BJ=J[13];return BJ}let y;if(J[14]===Symbol.for("react.memo_cache_sentinel"))y=[],J[14]=y;else y=J[14];let w,r;if(J[15]===Symbol.for("react.memo_cache_sentinel"))r=[],w=new Set,J[15]=w,J[16]=r;else w=J[15],r=J[16];let p;if(J[17]===Symbol.for("react.memo_cache_sentinel"))p=[],J[17]=p;else p=J[17];let l;if(J[18]!==O||J[19]!==X.messages)l=U(BY,{messages:X.messages,tools:C,commands:y,verbose:!0,toolJSX:null,toolUseConfirmQueue:r,inProgressToolUseIDs:w,isMessageSelectorVisible:!1,conversationId:O,screen:"transcript",streamingToolUses:p,showAllInTranscript:!0,isLoading:!1}),J[18]=O,J[19]=X.messages,J[20]=l;else l=J[20];let s;if(J[21]!==X.modified)s=zY(X.modified),J[21]=X.modified,J[22]=s;else s=J[22];let o=X.gitBranch?` · ${X.gitBranch}`:"",_;if(J[23]!==X.messageCount||J[24]!==s||J[25]!==o)_=m(N,{children:[s," ·"," ",X.messageCount," messages",o]}),J[23]=X.messageCount,J[24]=s,J[25]=o,J[26]=_;else _=J[26];let VJ;if(J[27]===Symbol.for("react.memo_cache_sentinel"))VJ=U(N,{dimColor:!0,children:m(NJ,{children:[U(UJ,{shortcut:"Enter",action:"resume"}),U(jJ,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"cancel"})]})}),J[27]=VJ;else VJ=J[27];let M;if(J[28]!==_)M=m(b,{flexShrink:0,flexDirection:"column",borderTopDimColor:!0,borderBottom:!1,borderLeft:!1,borderRight:!1,borderStyle:"single",paddingLeft:2,children:[_,VJ]}),J[28]=_,J[29]=M;else M=J[29];let AJ;if(J[30]!==l||J[31]!==M)AJ=m(b,{flexDirection:"column",children:[l,M]}),J[30]=l,J[31]=M,J[32]=AJ;else AJ=J[32];return AJ}var HY,L0;var OY=XZ(()=>{U0();KY();Gz();I0();V0();XY();VY();UY();qz();Bz();bJ();HY=UZ(f0(),1),L0=UZ(b0(),1)});function Dz(Z,J){if(Z===x0)return x0.length+qZ;let K=S0(Z),B=J?Math.min(K,J-qZ-_0):K;return Math.max(0,B)+qZ+_0}function kz(Z,J){let K=J-qZ-_0;if(S0(Z)<=K)return Z;if(K<=1)return Z.charAt(0);return G0(Z,K)}function NY({tabs:Z,selectedIndex:J,availableWidth:K,showAllProjects:B=!1}){let G=B?"Resume (All Projects)":"Resume",Q=G.length+1,v=Math.max(Oz,Pz),F=K-Q-v-2,T=Math.max(0,Math.min(J,Z.length-1)),i=Math.max(20,Math.floor(F/2)),X=Z.map((E)=>Dz(E,i)),W=0,O=Z.length;if(X.reduce((E,y,w)=>E+y+(w<X.length-1?1:0),0)>F){let E=F-Qz,y=X[T]??0;W=T,O=T+1;while(W>0||O<Z.length){let w=W>0,r=O<Z.length;if(w){let p=(X[W-1]??0)+1;if(y+p<=E){W--,y+=p;continue}}if(r){let p=(X[O]??0)+1;if(y+p<=E){O++,y+=p;continue}}break}}let C=W,JJ=Z.length-O,L=Z.slice(W,O),f=L.map((E,y)=>W+y);return m(b,{flexDirection:"row",gap:1,children:[U(N,{color:"suggestion",children:G}),C>0&&m(N,{dimColor:!0,children:[PY,C]}),L.map((E,y)=>{let r=f[y]===T,p=E===x0?E:`#${kz(E,i-qZ)}`;return m(N,{backgroundColor:r?"suggestion":void 0,color:r?"inverseText":void 0,bold:r,children:[" ",p," "]},E)}),JJ>0?m(N,{dimColor:!0,children:[DY,JJ,kY]}):U(N,{dimColor:!0,children:WY})]})}var x0="All",qZ=2,_0=1,PY="← ",DY="→",kY=" (tab to cycle)",WY="(tab to cycle)",vY=2,Qz,Oz,Pz;var CY=XZ(()=>{Hz();U0();I0();bJ();Qz=PY.length+vY+1,Oz=DY.length+vY+kY.length,Pz=WY.length});function EY(Z){let J=RY.c(48),{nodes:K,onSelect:B,onCancel:G,onFocus:Q,focusNodeId:v,visibleOptionCount:F,layout:T,isDisabled:i,hideIndexes:X,isNodeExpanded:W,onExpand:O,onCollapse:S,getParentPrefix:C,getChildPrefix:JJ,onUpFromFirstItem:L}=Z,f=T===void 0?"expanded":T,E=i===void 0?!1:i,y=X===void 0?!1:X,w;if(J[0]===Symbol.for("react.memo_cache_sentinel"))w=new Set,J[0]=w;else w=J[0];let[r,p]=q0.default.useState(w),l=q0.default.useRef(!1),s=q0.default.useRef(null),o;if(J[1]!==r||J[2]!==W)o=(H)=>{if(W)return W(H);return r.has(H)},J[1]=r,J[2]=W,J[3]=o;else o=J[3];let _=o,VJ;if(J[4]!==_||J[5]!==K){let H=function(k,qJ,TJ){let xJ=!!k.children&&k.children.length>0,_J=_(k.id);if(VJ.push({node:k,depth:qJ,isExpanded:_J,hasChildren:xJ,parentId:TJ}),xJ&&_J&&k.children)for(let V of k.children)H(V,qJ+1,k.id)};VJ=[];for(let k of K)H(k,0);J[4]=_,J[5]=K,J[6]=VJ}else VJ=J[6];let M=VJ,AJ=vz,c=Wz,BJ=C??AJ,d=JJ??c,cJ;if(J[7]!==d||J[8]!==BJ)cJ=(H)=>{let k="";if(H.hasChildren)k=BJ(H.isExpanded);else if(H.depth>0)k=d(H.depth);return k+H.node.label},J[7]=d,J[8]=BJ,J[9]=cJ;else cJ=J[9];let n=cJ,gJ;if(J[10]!==n||J[11]!==M)gJ=M.map((H)=>({label:n(H),description:H.node.description,dimDescription:H.node.dimDescription??!0,value:H.node.id})),J[10]=n,J[11]=M,J[12]=gJ;else gJ=J[12];let FJ=gJ,MJ;if(J[13]!==M)MJ=new Map,M.forEach((H)=>MJ.set(H.node.id,H.node)),J[13]=M,J[14]=MJ;else MJ=J[14];let g=MJ,HJ;if(J[15]!==M)HJ=(H)=>M.find((k)=>k.node.id===H),J[15]=M,J[16]=HJ;else HJ=J[16];let QJ=HJ,iJ;if(J[17]!==QJ||J[18]!==S||J[19]!==O)iJ=(H,k)=>{let qJ=QJ(H);if(!qJ||!qJ.hasChildren)return;if(k)if(O)O(H);else p((TJ)=>new Set(TJ).add(H));else if(S)S(H);else p((TJ)=>{let xJ=new Set(TJ);return xJ.delete(H),xJ})},J[17]=QJ,J[18]=S,J[19]=O,J[20]=iJ;else iJ=J[20];let OJ=iJ,GJ;if(J[21]!==QJ||J[22]!==v||J[23]!==E||J[24]!==g||J[25]!==Q||J[26]!==OJ)GJ=(H)=>{if(!v||E)return;let k=QJ(v);if(!k)return;if(H.key==="right"&&k.hasChildren)H.preventDefault(),OJ(v,!0);else if(H.key==="left"){if(k.hasChildren&&k.isExpanded)H.preventDefault(),OJ(v,!1);else if(k.parentId!==void 0){if(H.preventDefault(),l.current=!0,OJ(k.parentId,!1),Q){let qJ=g.get(k.parentId);if(qJ)Q(qJ)}}}},J[21]=QJ,J[22]=v,J[23]=E,J[24]=g,J[25]=Q,J[26]=OJ,J[27]=GJ;else GJ=J[27];let rJ=GJ,PJ;if(J[28]!==g||J[29]!==B)PJ=(H)=>{let k=g.get(H);if(!k)return;B(k)},J[28]=g,J[29]=B,J[30]=PJ;else PJ=J[30];let wJ=PJ,ZJ;if(J[31]!==g||J[32]!==Q)ZJ=(H)=>{if(l.current){l.current=!1;return}if(s.current===H)return;if(s.current=H,Q){let k=g.get(H);if(k)Q(k)}},J[31]=g,J[32]=Q,J[33]=ZJ;else ZJ=J[33];let lJ=ZJ,P;if(J[34]!==v||J[35]!==wJ||J[36]!==lJ||J[37]!==y||J[38]!==E||J[39]!==f||J[40]!==G||J[41]!==L||J[42]!==FJ||J[43]!==F)P=U(B0,{options:FJ,onChange:wJ,onFocus:lJ,onCancel:G,defaultFocusValue:v,visibleOptionCount:F,layout:f,isDisabled:E,hideIndexes:y,onUpFromFirstItem:L}),J[34]=v,J[35]=wJ,J[36]=lJ,J[37]=y,J[38]=E,J[39]=f,J[40]=G,J[41]=L,J[42]=FJ,J[43]=F,J[44]=P;else P=J[44];let h;if(J[45]!==rJ||J[46]!==P)h=U(b,{tabIndex:0,autoFocus:!0,onKeyDown:rJ,children:P}),J[45]=rJ,J[46]=P,J[47]=h;else h=J[47];return h}function Wz(Z){return" ▸ "}function vz(Z){return Z?"▼ ":"▶ "}var RY,q0;var jY=XZ(()=>{U0();MY();bJ();RY=UZ(f0(),1),q0=UZ(b0(),1)});function dY(Z,J){let K=Z.replace(/\s+/g," ").trim();return G0(K,J)}function p0({before:Z,match:J,after:K},B){return $0.dim(Z)+B(J)+$0.dim(K)}function Sz(Z,J,K){let B=Z.toLowerCase().indexOf(J.toLowerCase());if(B===-1)return null;let G=B+J.length,Q=Math.max(0,B-K),v=Math.min(Z.length,G+K),F=Z.slice(Q,B),T=Z.slice(B,G),i=Z.slice(G,v);return{before:(Q>0?"…":"")+F.replace(/\s+/g," ").trimStart(),match:T.trim(),after:i.replace(/\s+/g," ").trimEnd()+(v<Z.length?"…":"")}}function u0(Z,J,K){let{isGroupHeader:B=!1,isChild:G=!1,forkCount:Q=0}=K||{},v=B&&Q>0?Iz:G?bz:0,F=B&&Q>0?` (+${Q} other ${Q===1?"session":"sessions"})`:"",T=Z.isSidechain?" (sidechain)":"",i=J-v-T.length-F.length;return`${dY(fJ(Z),i)}${T}${F}`}function h0(Z,J){let{isChild:K=!1,showProjectPath:B=!1}=J||{},G=K?" ":"",Q=c0(Z),v=B&&Z.projectPath?` · ${Z.projectPath}`:"";return G+Q+v}function YU(Z){let J=lY.c(247),{logs:K,maxHeight:B,forceWidth:G,onCancel:Q,onSelect:v,onLogsChanged:F,onLoadMore:T,initialSearchQuery:i,showAllProjects:X,onToggleAllProjects:W,onAgenticSearch:O}=Z,S=B===void 0?1/0:B,C=X===void 0?!1:X,JJ=_Y(),L=G===void 0?JJ.columns:G,f=SY(Q),E=bY(),y;if(J[0]===Symbol.for("react.memo_cache_sentinel"))y=iY(),J[0]=y;else y=J[0];let w=y,r=!1,[p]=LY(),l;if(J[1]!==p)l=fY(p),J[1]=p,J[2]=l;else l=J[2];let s=l,o;if(J[3]!==s.warning)o=(Y)=>IY(Y,s.warning),J[3]=s.warning,J[4]=o;else o=J[4];let _=o,VJ=!1,[M,AJ]=R.default.useState(null),[c,BJ]=R.default.useState(!1),[d,cJ]=R.default.useState(!1),[n,gJ]=R.default.useState(!1),FJ;if(J[5]===Symbol.for("react.memo_cache_sentinel"))FJ=H0(),J[5]=FJ;else FJ=J[5];let MJ=FJ,[g,HJ]=R.default.useState(""),[QJ,iJ]=R.default.useState(0),OJ;if(J[6]===Symbol.for("react.memo_cache_sentinel"))OJ=new Set,J[6]=OJ;else OJ=J[6];let[GJ,rJ]=R.default.useState(OJ),[PJ,wJ]=R.default.useState(null),[ZJ,lJ]=R.default.useState(1),[P,h]=R.default.useState("list"),[H,k]=R.default.useState(null),qJ=R.default.useRef(null),[TJ,xJ]=R.default.useState(0),_J;if(J[7]===Symbol.for("react.memo_cache_sentinel"))_J={status:"idle"},J[7]=_J;else _J=J[7];let[V,VZ]=R.default.useState(_J),[t,BZ]=R.default.useState(!1),HZ=R.default.useRef(null),Q0=P==="search"&&V.status!=="searching",QZ,OZ,PZ;if(J[8]===Symbol.for("react.memo_cache_sentinel"))QZ=()=>{h("list"),$("",{enabled:!1})},OZ=()=>{h("list"),$("",{enabled:!1})},PZ=["n"],J[8]=QZ,J[9]=OZ,J[10]=PZ;else QZ=J[8],OZ=J[9],PZ=J[10];let O0=i||"",DZ;if(J[11]!==O0||J[12]!==Q0)DZ={isActive:Q0,onExit:QZ,onExitUp:OZ,passthroughCtrlKeys:PZ,initialQuery:O0},J[11]=O0,J[12]=Q0,J[13]=DZ;else DZ=J[13];let{query:j,setQuery:dJ,cursorOffset:P0}=hY(DZ),yJ=R.default.useDeferredValue(j),[YJ,d0]=R.default.useState(""),kZ,WZ;if(J[14]!==yJ)kZ=()=>{if(!yJ){d0("");return}let Y=setTimeout(d0,300,yJ);return()=>clearTimeout(Y)},WZ=[yJ],J[14]=yJ,J[15]=kZ,J[16]=WZ;else kZ=J[15],WZ=J[16];R.default.useEffect(kZ,WZ);let[mJ,n0]=R.default.useState(null),[D0,a0]=R.default.useState(!1),vZ,NZ;if(J[17]===Symbol.for("react.memo_cache_sentinel"))vZ=()=>{yY().then((Y)=>AJ(Y)),rY(MJ).then((Y)=>{gJ(Y.length>1)})},NZ=[MJ],J[17]=vZ,J[18]=NZ;else vZ=J[17],NZ=J[18];R.default.useEffect(vZ,NZ);let XK=new Map(K.map(iz)),Yz;Yz=null;let CZ;if(J[19]!==K)CZ=nz(K),J[19]=K,J[20]=CZ;else CZ=J[20];let SJ=CZ,DJ=SJ.length>0,MZ;if(J[21]!==DJ||J[22]!==SJ)MZ=DJ?["All",...SJ]:[],J[21]=DJ,J[22]=SJ,J[23]=MZ;else MZ=J[23];let zJ=MZ,RZ=zJ.length>0&&TJ<zJ.length?TJ:0,s0=zJ[RZ],nJ=s0==="All"?void 0:s0,zz=DJ?1:0,a=K;if(w){let Y;if(J[24]!==K)Y=K.filter(gz),J[24]=K,J[25]=Y;else Y=J[25];a=Y}if(nJ!==void 0){let Y;if(J[26]!==a||J[27]!==nJ){let z;if(J[29]!==nJ)z=(q)=>q.tag===nJ,J[29]=nJ,J[30]=z;else z=J[30];Y=a.filter(z),J[26]=a,J[27]=nJ,J[28]=Y}else Y=J[28];a=Y}if(c&&M){let Y;if(J[31]!==M||J[32]!==a){let z;if(J[34]!==M)z=(q)=>q.gitBranch===M,J[34]=M,J[35]=z;else z=J[35];Y=a.filter(z),J[31]=M,J[32]=a,J[33]=Y}else Y=J[33];a=Y}if(n&&!d){let Y;if(J[36]!==a){let z;if(J[38]===Symbol.for("react.memo_cache_sentinel"))z=(q)=>q.projectPath===MJ,J[38]=z;else z=J[38];Y=a.filter(z),J[36]=a,J[37]=Y}else Y=J[37];a=Y}let EZ=a,k0;J:{if(!j){k0=EZ;break J}let Y;if(J[39]!==EZ||J[40]!==j){let z=j.toLowerCase();Y=EZ.filter((q)=>{let A=fJ(q).toLowerCase(),x=(q.gitBranch||"").toLowerCase(),u=(q.tag||"").toLowerCase(),hJ=q.prNumber?`pr #${q.prNumber} ${q.prRepository||""}`.toLowerCase():"";return A.includes(z)||x.includes(z)||u.includes(z)||hJ.includes(z)}),J[39]=EZ,J[40]=j,J[41]=Y}else Y=J[41];k0=Y}let W0=k0,jZ,AZ;if(J[42]!==YJ||J[43]!==yJ)jZ=()=>{},AZ=[yJ,YJ,!1],J[42]=YJ,J[43]=yJ,J[44]=jZ,J[45]=AZ;else jZ=J[44],AZ=J[45];R.default.useEffect(jZ,AZ);let FZ,wZ;if(J[46]!==YJ)FZ=()=>{n0(null),a0(!1);return},wZ=[YJ,null,!1],J[46]=YJ,J[47]=FZ,J[48]=wZ;else FZ=J[47],wZ=J[48];R.default.useEffect(FZ,wZ);let e,pJ;if(J[49]!==YJ||J[50]!==mJ||J[51]!==W0){if(pJ=new Map,e=W0,mJ&&YJ&&mJ.query===YJ){for(let A of mJ.results)if(A.searchableText){let x=Sz(A.searchableText,YJ,_z);if(x)pJ.set(A.log,x)}let Y;if(J[54]!==e)Y=new Set(e.map(uz)),J[54]=e,J[55]=Y;else Y=J[55];let z=Y,q;if(J[56]!==mJ.results||J[57]!==e||J[58]!==z){let A;if(J[60]!==z)A=(u)=>!z.has(u.messages[0]?.uuid),J[60]=z,J[61]=A;else A=J[61];let x=mJ.results.map(pz).filter(A);q=[...e,...x],J[56]=mJ.results,J[57]=e,J[58]=z,J[59]=q}else q=J[59];e=q}J[49]=YJ,J[50]=mJ,J[51]=W0,J[52]=e,J[53]=pJ}else e=J[52],pJ=J[53];let TZ;if(J[62]!==e||J[63]!==pJ)TZ={filteredLogs:e,snippets:pJ},J[62]=e,J[63]=pJ,J[64]=TZ;else TZ=J[64];let{filteredLogs:uJ,snippets:RJ}=TZ,v0;J:{if(V.status==="results"&&V.results.length>0){v0=V.results;break J}v0=uJ}let D=v0,kJ=Math.max(30,L-4),N0;J:{if(!w){let z;if(J[65]===Symbol.for("react.memo_cache_sentinel"))z=[],J[65]=z;else z=J[65];N0=z;break J}let Y;if(J[66]!==D||J[67]!==_||J[68]!==kJ||J[69]!==C||J[70]!==RJ){let z=dz(D);Y=Array.from(z.entries()).map((q)=>{let[A,x]=q,u=x[0],hJ=D.indexOf(u),LJ=RJ.get(u),EJ=LJ?p0(LJ,_):null;if(x.length===1){let IJ=h0(u,{showProjectPath:C});return{id:`log:${A}:0`,value:{log:u,indexInFiltered:hJ},label:u0(u,kJ),description:EJ?`${IJ}
|
|
2
|
+
${EJ}`:IJ,dimDescription:!0}}let z0=x.length-1,K0=x.slice(1).map((IJ,Xz)=>{let Vz=D.indexOf(IJ),JY=RJ.get(IJ),ZY=JY?p0(JY,_):null,YY=h0(IJ,{isChild:!0,showProjectPath:C});return{id:`log:${A}:${Xz+1}`,value:{log:IJ,indexInFiltered:Vz},label:u0(IJ,kJ,{isChild:!0}),description:ZY?`${YY}
|
|
3
|
+
${ZY}`:YY,dimDescription:!0}}),e0=h0(u,{showProjectPath:C});return{id:`group:${A}`,value:{log:u,indexInFiltered:hJ},label:u0(u,kJ,{isGroupHeader:!0,forkCount:z0}),description:EJ?`${e0}
|
|
4
|
+
${EJ}`:e0,dimDescription:!0,children:K0}}),J[66]=D,J[67]=_,J[68]=kJ,J[69]=C,J[70]=RJ,J[71]=Y}else Y=J[71];N0=Y}let WJ=N0,C0;J:{if(w){let z;if(J[72]===Symbol.for("react.memo_cache_sentinel"))z=[],J[72]=z;else z=J[72];C0=z;break J}let Y;if(J[73]!==D||J[74]!==_||J[75]!==kJ||J[76]!==C||J[77]!==RJ){let z;if(J[79]!==_||J[80]!==kJ||J[81]!==C||J[82]!==RJ)z=(q,A)=>{let u=fJ(q)+(q.isSidechain?" (sidechain)":""),hJ=dY(u,kJ),LJ=c0(q),EJ=C&&q.projectPath?` · ${q.projectPath}`:"",z0=RJ.get(q),K0=z0?p0(z0,_):null;return{label:hJ,description:K0?`${LJ}${EJ}
|
|
5
|
+
${K0}`:LJ+EJ,dimDescription:!0,value:A.toString()}},J[79]=_,J[80]=kJ,J[81]=C,J[82]=RJ,J[83]=z;else z=J[83];Y=D.map(z),J[73]=D,J[74]=_,J[75]=kJ,J[76]=C,J[77]=RJ,J[78]=Y}else Y=J[78];C0=Y}let M0=C0,I=PJ?.value.log??null,yZ;if(J[84]!==D||J[85]!==GJ||J[86]!==I)yZ=()=>{if(!w||!I)return"";let Y=XJ(I);if(!Y)return"";let z=D.filter((u)=>XJ(u)===Y);if(!(z.length>1))return"";let A=GJ.has(Y);if(z.indexOf(I)>0)return"← to collapse";return A?"← to collapse":"→ to expand"},J[84]=D,J[85]=GJ,J[86]=I,J[87]=yZ;else yZ=J[87];let mZ=yZ,LZ;if(J[88]!==I||J[89]!==F||J[90]!==g)LZ=async()=>{let Y=I?XJ(I):void 0;if(!I||!Y){h("list"),HJ("");return}if(g.trim()){if(await nY(Y,g.trim(),I.fullPath),w&&F)F()}h("list"),HJ("")},J[88]=I,J[89]=F,J[90]=g,J[91]=LZ;else LZ=J[91];let R0=LZ,IZ;if(J[92]===Symbol.for("react.memo_cache_sentinel"))IZ=()=>{h("list"),$("",{enabled:!1})},J[92]=IZ;else IZ=J[92];let Kz=IZ,bZ;if(J[93]===Symbol.for("react.memo_cache_sentinel"))bZ=()=>{h("search"),$("",{enabled:!0})},J[93]=bZ;else bZ=J[93];let o0=bZ,fZ;if(J[94]!==K||J[95]!==O||J[96]!==j)fZ=async()=>{j.trim();return},J[94]=K,J[95]=O,J[96]=j,J[97]=fZ;else fZ=J[97];let E0=fZ,xZ;if(J[98]!==V.query||J[99]!==V.status||J[100]!==j)xZ=()=>{if(V.status!=="idle"&&V.status!=="searching"){if(V.status==="results"&&V.query!==j||V.status==="error")VZ({status:"idle"})}},J[98]=V.query,J[99]=V.status,J[100]=j,J[101]=xZ;else xZ=J[101];let _Z;if(J[102]!==V||J[103]!==j)_Z=[j,V],J[102]=V,J[103]=j,J[104]=_Z;else _Z=J[104];R.default.useEffect(xZ,_Z);let SZ,pZ;if(J[105]===Symbol.for("react.memo_cache_sentinel"))SZ=()=>()=>{HZ.current?.abort()},pZ=[],J[105]=SZ,J[106]=pZ;else SZ=J[105],pZ=J[106];R.default.useEffect(SZ,pZ);let t0=R.default.useRef(V.status),uZ;if(J[107]!==V.status||J[108]!==D[0]||J[109]!==D.length||J[110]!==WJ)uZ=()=>{let Y=t0.current;if(t0.current=V.status,Y==="searching"&&V.status==="results"){if(w&&WJ.length>0)wJ(WJ[0]);else if(!w&&D.length>0){let z=D[0];wJ({id:"0",value:{log:z,indexInFiltered:0},label:""})}}},J[107]=V.status,J[108]=D[0],J[109]=D.length,J[110]=WJ,J[111]=uZ;else uZ=J[111];let hZ;if(J[112]!==V.status||J[113]!==D||J[114]!==WJ)hZ=[V.status,w,WJ,D],J[112]=V.status,J[113]=D,J[114]=WJ,J[115]=hZ;else hZ=J[115];R.default.useEffect(uZ,hZ);let $Z;if(J[116]!==D)$Z=(Y)=>{let z=parseInt(Y,10),q=D[z];if(!q||qJ.current===z.toString())return;qJ.current=z.toString(),wJ({id:z.toString(),value:{log:q,indexInFiltered:z},label:""}),lJ(z+1)},J[116]=D,J[117]=$Z;else $Z=J[117];let j0=$Z,cZ;if(J[118]!==D)cZ=(Y)=>{wJ(Y);let z=D.findIndex((q)=>XJ(q)===XJ(Y.value.log));if(z>=0)lJ(z+1)},J[118]=D,J[119]=cZ;else cZ=J[119];let A0=cZ,gZ;if(J[120]===Symbol.for("react.memo_cache_sentinel"))gZ=()=>{HZ.current?.abort(),VZ({status:"idle"}),$("",{})},J[120]=gZ;else gZ=J[120];let F0=P!=="preview"&&V.status==="searching",iZ;if(J[121]!==F0)iZ={context:"Confirmation",isActive:F0},J[121]=F0,J[122]=iZ;else iZ=J[122];$J("confirm:no",gZ,iZ);let rZ;if(J[123]===Symbol.for("react.memo_cache_sentinel"))rZ=()=>{h("list"),HJ("")},J[123]=rZ;else rZ=J[123];let w0=P==="rename"&&V.status!=="searching",lZ;if(J[124]!==w0)lZ={context:"Settings",isActive:w0},J[124]=w0,J[125]=lZ;else lZ=J[125];$J("confirm:no",rZ,lZ);let dZ;if(J[126]!==Q||J[127]!==dJ)dZ=()=>{dJ(""),BZ(!1),Q?.()},J[126]=Q,J[127]=dJ,J[128]=dZ;else dZ=J[128];let T0=P!=="preview"&&P!=="rename"&&P!=="search"&&t&&V.status!=="searching",nZ;if(J[129]!==T0)nZ={context:"Confirmation",isActive:T0},J[129]=T0,J[130]=nZ;else nZ=J[130];$J("confirm:no",dZ,nZ);let aZ;if(J[131]!==V.status||J[132]!==c||J[133]!==I||J[134]!==E0||J[135]!==n||J[136]!==DJ||J[137]!==t||J[138]!==O||J[139]!==W||J[140]!==j||J[141]!==dJ||J[142]!==C||J[143]!==d||J[144]!==zJ||J[145]!==SJ||J[146]!==P)aZ=(Y,z)=>{if(P==="preview")return;if(V.status==="searching")return;if(P==="rename");else if(P==="search"){if(Y.toLowerCase()==="n"&&z.ctrl)Kz();else if(z.return||z.downArrow)j.trim()}else{if(t){if(z.return){E0(),BZ(!1);return}else if(z.downArrow){BZ(!1);return}else if(z.upArrow){h("search"),BZ(!1);return}}if(DJ&&z.tab){let x=z.shift?-1:1;xJ((u)=>{let LJ=((u<zJ.length?u:0)+zJ.length+x)%zJ.length,EJ=zJ[LJ];return $("",{is_all:EJ==="All",tag_count:SJ.length}),LJ});return}let q=!z.ctrl&&!z.meta,A=Y.toLowerCase();if(A==="a"&&z.ctrl&&W)W(),$("",{enabled:!C});else if(A==="b"&&z.ctrl){let x=!c;BJ(x),$("",{enabled:x})}else if(A==="w"&&z.ctrl&&n){let x=!d;cJ(x),$("",{enabled:x})}else if(A==="/"&&q)h("search"),$("",{enabled:!0});else if(A==="r"&&z.ctrl&&I)h("rename"),HJ(""),$("",{});else if(A==="v"&&z.ctrl&&I)k(I),h("preview"),$("",{messageCount:I.messageCount});else if(I&&q&&Y.length>0&&!/^\s+$/.test(Y))h("search"),dJ(Y),$("",{enabled:!0})}},J[131]=V.status,J[132]=c,J[133]=I,J[134]=E0,J[135]=n,J[136]=DJ,J[137]=t,J[138]=O,J[139]=W,J[140]=j,J[141]=dJ,J[142]=C,J[143]=d,J[144]=zJ,J[145]=SJ,J[146]=P,J[147]=aZ;else aZ=J[147];let sZ;if(J[148]===Symbol.for("react.memo_cache_sentinel"))sZ={isActive:!0},J[148]=sZ;else sZ=J[148];xY(aZ,sZ);let vJ;if(J[149]!==c||J[150]!==M||J[151]!==n||J[152]!==d){if(vJ=[],c&&M)vJ.push(M);if(n&&!d)vJ.push("current worktree");J[149]=c,J[150]=M,J[151]=n,J[152]=d,J[153]=vJ}else vJ=J[153];let Uz=8+(vJ.length>0&&P!=="search"?1:0)+zz,KJ=Math.max(1,Math.floor((S-Uz-2)/3)),oZ,tZ;if(J[154]!==D.length||J[155]!==ZJ||J[156]!==T||J[157]!==KJ)oZ=()=>{if(!T)return;let Y=KJ*2;if(ZJ+Y>=D.length)T(KJ*3)},tZ=[ZJ,KJ,D.length,T],J[154]=D.length,J[155]=ZJ,J[156]=T,J[157]=KJ,J[158]=oZ,J[159]=tZ;else oZ=J[158],tZ=J[159];if(R.default.useEffect(oZ,tZ),K.length===0)return null;if(P==="preview"&&H&&w){let Y;if(J[160]===Symbol.for("react.memo_cache_sentinel"))Y=()=>{h("list"),k(null)},J[160]=Y;else Y=J[160];let z;if(J[161]!==v||J[162]!==H)z=U(QY,{log:H,onExit:Y,onSelect:v}),J[161]=v,J[162]=H,J[163]=z;else z=J[163];return z}let y0=S-1,eZ;if(J[164]===Symbol.for("react.memo_cache_sentinel"))eZ=U(b,{flexShrink:0,children:U(pY,{color:"suggestion"})}),J[164]=eZ;else eZ=J[164];let J0;if(J[165]===Symbol.for("react.memo_cache_sentinel"))J0=U(b,{flexShrink:0,children:U(N,{children:" "})}),J[165]=J0;else J0=J[165];let aJ;if(J[166]!==L||J[167]!==D.length||J[168]!==RZ||J[169]!==ZJ||J[170]!==DJ||J[171]!==C||J[172]!==zJ||J[173]!==P||J[174]!==KJ)aJ=DJ?U(NY,{tabs:zJ,selectedIndex:RZ,availableWidth:L,showAllProjects:C}):U(b,{flexShrink:0,children:m(N,{bold:!0,color:"suggestion",children:["Resume Session",P==="list"&&D.length>KJ&&m(N,{dimColor:!0,children:[" ","(",ZJ," of ",D.length,")"]})]})}),J[166]=L,J[167]=D.length,J[168]=RZ,J[169]=ZJ,J[170]=DJ,J[171]=C,J[172]=zJ,J[173]=P,J[174]=KJ,J[175]=aJ;else aJ=J[175];let m0=P==="search",sJ;if(J[176]!==E||J[177]!==P0||J[178]!==j||J[179]!==m0)sJ=U($Y,{query:j,isFocused:m0,isTerminalFocused:E,cursorOffset:P0}),J[176]=E,J[177]=P0,J[178]=j,J[179]=m0,J[180]=sJ;else sJ=J[180];let oJ;if(J[181]!==vJ||J[182]!==P)oJ=vJ.length>0&&P!=="search"&&U(b,{flexShrink:0,paddingLeft:2,children:U(N,{dimColor:!0,children:U(NJ,{children:vJ})})}),J[181]=vJ,J[182]=P,J[183]=oJ;else oJ=J[183];let Z0;if(J[184]===Symbol.for("react.memo_cache_sentinel"))Z0=U(b,{flexShrink:0,children:U(N,{children:" "})}),J[184]=Z0;else Z0=J[184];let tJ;if(J[185]!==V.status)tJ=V.status==="searching"&&m(b,{paddingLeft:1,flexShrink:0,children:[U(cY,{}),U(N,{children:" Searching…"})]}),J[185]=V.status,J[186]=tJ;else tJ=J[186];let eJ;if(J[187]!==V.results||J[188]!==V.status)eJ=V.status==="results"&&V.results.length>0&&U(b,{paddingLeft:1,marginBottom:1,flexShrink:0,children:U(N,{dimColor:!0,italic:!0,children:"Claude found these results:"})}),J[187]=V.results,J[188]=V.status,J[189]=eJ;else eJ=J[189];let JZ;if(J[190]!==V.results||J[191]!==V.status||J[192]!==uJ)JZ=V.status==="results"&&V.results.length===0&&uJ.length===0&&U(b,{paddingLeft:1,marginBottom:1,flexShrink:0,children:U(N,{dimColor:!0,italic:!0,children:"No matching sessions found."})}),J[190]=V.results,J[191]=V.status,J[192]=uJ,J[193]=JZ;else JZ=J[193];let ZZ;if(J[194]!==V.status||J[195]!==uJ)ZZ=V.status==="error"&&uJ.length===0&&U(b,{paddingLeft:1,marginBottom:1,flexShrink:0,children:U(N,{dimColor:!0,italic:!0,children:"No matching sessions found."})}),J[194]=V.status,J[195]=uJ,J[196]=ZZ;else ZZ=J[196];let YZ;if(J[197]!==V.status||J[198]!==t||J[199]!==O||J[200]!==j)YZ=Boolean(j.trim())&&O&&!1,J[197]=V.status,J[198]=t,J[199]=O,J[200]=j,J[201]=YZ;else YZ=J[201];let zZ;if(J[202]!==V.status||J[203]!==c||J[204]!==L||J[205]!==D||J[206]!==GJ||J[207]!==M0||J[208]!==I||J[209]!==PJ?.id||J[210]!==j0||J[211]!==R0||J[212]!==A0||J[213]!==t||J[214]!==Q||J[215]!==v||J[216]!==QJ||J[217]!==g||J[218]!==WJ||J[219]!==P||J[220]!==KJ)zZ=V.status==="searching"?null:P==="rename"&&I?m(b,{paddingLeft:2,flexDirection:"column",children:[U(N,{bold:!0,children:"Rename session:"}),U(b,{paddingTop:1,children:U(uY,{value:g,onChange:HJ,onSubmit:R0,placeholder:fJ(I,"Enter new session name"),columns:L,cursorOffset:QJ,onChangeCursorOffset:iJ,showCursor:!0})})]}):w?U(EY,{nodes:WJ,onSelect:(Y)=>{v(Y.value.log)},onFocus:A0,onCancel:Q,focusNodeId:PJ?.id,visibleOptionCount:KJ,layout:"expanded",isDisabled:P==="search"||t,hideIndexes:!1,isNodeExpanded:(Y)=>{if(P==="search"||c)return!0;let z=typeof Y==="string"&&Y.startsWith("group:")?Y.substring(6):null;return z?GJ.has(z):!1},onExpand:(Y)=>{let z=typeof Y==="string"&&Y.startsWith("group:")?Y.substring(6):null;if(z)rJ((q)=>new Set(q).add(z)),$("",{})},onCollapse:(Y)=>{let z=typeof Y==="string"&&Y.startsWith("group:")?Y.substring(6):null;if(z)rJ((q)=>{let A=new Set(q);return A.delete(z),A})},onUpFromFirstItem:o0}):U(B0,{options:M0,onChange:(Y)=>{let z=parseInt(Y,10),q=D[z];if(q)v(q)},visibleOptionCount:KJ,onCancel:Q,onFocus:j0,defaultFocusValue:PJ?.id.toString(),layout:"expanded",isDisabled:P==="search"||t,onUpFromFirstItem:o0}),J[202]=V.status,J[203]=c,J[204]=L,J[205]=D,J[206]=GJ,J[207]=M0,J[208]=I,J[209]=PJ?.id,J[210]=j0,J[211]=R0,J[212]=A0,J[213]=t,J[214]=Q,J[215]=v,J[216]=QJ,J[217]=g,J[218]=WJ,J[219]=P,J[220]=KJ,J[221]=zZ;else zZ=J[221];let KZ;if(J[222]!==V.status||J[223]!==M||J[224]!==f.keyName||J[225]!==f.pending||J[226]!==mZ||J[227]!==n||J[228]!==t||J[229]!==D0||J[230]!==W||J[231]!==C||J[232]!==d||J[233]!==P)KZ=U(b,{paddingLeft:2,children:f.pending?m(N,{dimColor:!0,children:["Press ",f.keyName," again to exit"]}):P==="rename"?U(N,{dimColor:!0,children:m(NJ,{children:[U(UJ,{shortcut:"Enter",action:"save"}),U(jJ,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"cancel"})]})}):V.status==="searching"?U(N,{dimColor:!0,children:m(NJ,{children:[U(N,{children:"Searching with Claude…"}),U(jJ,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"cancel"})]})}):t?U(N,{dimColor:!0,children:m(NJ,{children:[U(UJ,{shortcut:"Enter",action:"search"}),U(UJ,{shortcut:"↓",action:"skip"}),U(jJ,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"cancel"})]})}):P==="search"?U(N,{dimColor:!0,children:m(NJ,{children:[U(N,{children:"Type to Search"}),U(UJ,{shortcut:"Enter",action:"select"}),U(jJ,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"clear"})]})}):U(N,{dimColor:!0,children:m(NJ,{children:[W&&U(UJ,{shortcut:"Ctrl+A",action:`show ${C?"current dir":"all projects"}`}),M&&U(UJ,{shortcut:"Ctrl+B",action:"toggle branch"}),n&&U(UJ,{shortcut:"Ctrl+W",action:`show ${d?"current worktree":"all worktrees"}`}),U(UJ,{shortcut:"Ctrl+V",action:"preview"}),U(UJ,{shortcut:"Ctrl+R",action:"rename"}),U(N,{children:"Type to search"}),U(jJ,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"cancel"}),mZ()&&U(N,{children:mZ()})]})})}),J[222]=V.status,J[223]=M,J[224]=f.keyName,J[225]=f.pending,J[226]=mZ,J[227]=n,J[228]=t,J[229]=D0,J[230]=W,J[231]=C,J[232]=d,J[233]=P,J[234]=KZ;else KZ=J[234];let Y0;if(J[235]!==y0||J[236]!==aJ||J[237]!==sJ||J[238]!==oJ||J[239]!==tJ||J[240]!==eJ||J[241]!==JZ||J[242]!==ZZ||J[243]!==YZ||J[244]!==zZ||J[245]!==KZ)Y0=m(b,{flexDirection:"column",height:y0,children:[eZ,J0,aJ,sJ,oJ,Z0,tJ,eJ,JZ,ZZ,YZ,zZ,KZ]}),J[235]=y0,J[236]=aJ,J[237]=sJ,J[238]=oJ,J[239]=tJ,J[240]=eJ,J[241]=JZ,J[242]=ZZ,J[243]=YZ,J[244]=zZ,J[245]=KZ,J[246]=Y0;else Y0=J[246];return Y0}function pz(Z){return Z.log}function uz(Z){return Z.messages[0]?.uuid}function hz(Z,J,K,B){if(!Z)return;let G=Z.search(J);G.sort(cz),K({results:G.map($z),query:J}),B(!1)}function $z(Z){return{log:Z.item.log,score:Z.score,searchableText:Z.item.searchableText}}function cz(Z,J){let K=new Date(Z.item.log.modified).getTime(),G=new Date(J.item.log.modified).getTime()-K;if(Math.abs(G)>xz)return G;return(Z.score??1)-(J.score??1)}function gz(Z){let J=wY(),K=XJ(Z);if(J&&K===J)return!0;if(Z.customTitle)return!0;if(gY(Z.messages))return!0;if(Z.firstPrompt||Z.customTitle)return!0;return!1}function iz(Z){return[Z,lz(Z)]}function rz(Z){if(Z.type!=="user"&&Z.type!=="assistant")return"";let J="message"in Z?Z.message?.content:void 0;if(!J)return"";if(typeof J==="string")return J;if(Array.isArray(J))return J.map((K)=>{if(typeof K==="string")return K;if("text"in K&&typeof K.text==="string")return K.text;return""}).filter(Boolean).join(" ");return""}function lz(Z){let K=(Z.messages.length<=fz?Z.messages:[...Z.messages.slice(0,AY),...Z.messages.slice(-AY)]).map(rz).filter(Boolean).join(" "),G=`${[Z.customTitle,Z.summary,Z.firstPrompt,Z.gitBranch,Z.tag,Z.prNumber?`PR #${Z.prNumber}`:void 0,Z.prRepository].filter(Boolean).join(" ")} ${K}`.trim();return G.length>FY?G.slice(0,FY):G}function dz(Z){let J=new Map;for(let K of Z){let B=XJ(K);if(B){let G=J.get(B);if(G)G.push(K);else J.set(B,[K])}}return J.forEach((K)=>K.sort((B,G)=>new Date(G.modified).getTime()-new Date(B.modified).getTime())),J}function nz(Z){let J=new Set;for(let K of Z)if(K.tag)J.add(K.tag);return Array.from(J).sort((K,B)=>K.localeCompare(B))}var lY,R,Iz=2,bz=4,fz=2000,AY=1000,FY=50000,xz=60000,_z=50;var az=XZ(()=>{Cz();TY();Az();Tz();jz();Rz();U0();KY();Nz();I0();Lz();Mz();mY();V0();Ez();XY();MY();VY();Fz();UY();yz();OY();mz();CY();wz();jY();bJ();lY=UZ(f0(),1),R=UZ(b0(),1)});function YK(Z){if(Z.type!=="user"&&Z.type!=="assistant")return"";let J="message"in Z?Z.message?.content:void 0;if(!J)return"";if(typeof J==="string")return J;if(Array.isArray(J))return J.map((K)=>{if(typeof K==="string")return K;if("text"in K&&typeof K.text==="string")return K.text;return""}).filter(Boolean).join(" ");return""}function Jz(Z){if(Z.length===0)return"";let K=(Z.length<=g0?Z:[...Z.slice(0,g0/2),...Z.slice(-g0/2)]).map(YK).filter(Boolean).join(" ").replace(/\s+/g," ").trim();return K.length>aY?K.slice(0,aY)+"…":K}function sY(Z,J){if(fJ(Z).toLowerCase().includes(J))return!0;if(Z.customTitle?.toLowerCase().includes(J))return!0;if(Z.tag?.toLowerCase().includes(J))return!0;if(Z.gitBranch?.toLowerCase().includes(J))return!0;if(Z.summary?.toLowerCase().includes(J))return!0;if(Z.firstPrompt?.toLowerCase().includes(J))return!0;if(Z.messages&&Z.messages.length>0){if(Jz(Z.messages).toLowerCase().includes(J))return!0}return!1}async function QU(Z,J,K){if(!Z.trim()||J.length===0)return[];let B=Z.toLowerCase(),G=J.filter((X)=>sY(X,B)),Q;if(G.length>=i0)Q=G.slice(0,i0);else{let X=J.filter((O)=>!sY(O,B)),W=i0-G.length;Q=[...G,...X.slice(0,W)]}CJ(`Agentic search: ${Q.length}/${J.length} logs, query="${Z}", matching: ${G.length}, with messages: ${r0(Q,(X)=>X.messages?.length>0)}`);let v=Q.map(async(X)=>{if(GZ(X))try{return await X0(X)}catch(W){return l0(W),X}return X}),F=await Promise.all(v);CJ(`Agentic search: loaded ${r0(F,(X)=>X.messages?.length>0)}/${Q.length} logs with transcripts`);let i=`Sessions:
|
|
6
|
+
${F.map((X,W)=>{let O=[`${W}:`],S=fJ(X);if(O.push(S),X.customTitle&&X.customTitle!==S)O.push(`[custom title: ${X.customTitle}]`);if(X.tag)O.push(`[tag: ${X.tag}]`);if(X.gitBranch)O.push(`[branch: ${X.gitBranch}]`);if(X.summary)O.push(`- Summary: ${X.summary}`);if(X.firstPrompt&&X.firstPrompt!=="No prompt")O.push(`- First message: ${X.firstPrompt.slice(0,300)}`);if(X.messages&&X.messages.length>0){let C=Jz(X.messages);if(C)O.push(`- Transcript: ${C}`)}return O.join(" ")}).join(`
|
|
7
|
+
`)}
|
|
8
|
+
|
|
9
|
+
Search query: "${Z}"
|
|
10
|
+
|
|
11
|
+
Find the sessions that are most relevant to this query.`;CJ(`Agentic search prompt (first 500 chars): ${i.slice(0,500)}...`);try{let X=tY();CJ(`Agentic search using model: ${X}`);let O=(await eY({model:X,system:ZK,messages:[{role:"user",content:i}],signal:K,querySource:"session_search"})).content.find((f)=>f.type==="text");if(!O||O.type!=="text")return CJ("No text content in agentic search response"),[];CJ(`Agentic search response: ${O.text}`);let S=O.text.match(/\{[\s\S]*\}/);if(!S)return CJ("Could not find JSON in agentic search response"),[];let L=(oY(S[0]).relevant_indices||[]).filter((f)=>f>=0&&f<F.length).map((f)=>F[f]);return CJ(`Agentic search found ${L.length} relevant sessions`),L}catch(X){return l0(X),CJ(`Agentic search error: ${X}`),[]}}var aY=2000,g0=100,i0=100,ZK=`Your goal is to find relevant sessions based on a user's search query.
|
|
12
|
+
|
|
13
|
+
You will be given a list of sessions with their metadata and a search query. Identify which sessions are most relevant to the query.
|
|
14
|
+
|
|
15
|
+
Each session may include:
|
|
16
|
+
- Title (display name or custom title)
|
|
17
|
+
- Tag (user-assigned category, shown as [tag: name] - users tag sessions with /tag command to categorize them)
|
|
18
|
+
- Branch (git branch name, shown as [branch: name])
|
|
19
|
+
- Summary (AI-generated summary)
|
|
20
|
+
- First message (beginning of the conversation)
|
|
21
|
+
- Transcript (excerpt of conversation content)
|
|
22
|
+
|
|
23
|
+
IMPORTANT: Tags are user-assigned labels that indicate the session's topic or category. If the query matches a tag exactly or partially, those sessions should be highly prioritized.
|
|
24
|
+
|
|
25
|
+
For each session, consider (in order of priority):
|
|
26
|
+
1. Exact tag matches (highest priority - user explicitly categorized this session)
|
|
27
|
+
2. Partial tag matches or tag-related terms
|
|
28
|
+
3. Title matches (custom titles or first message content)
|
|
29
|
+
4. Branch name matches
|
|
30
|
+
5. Summary and transcript content matches
|
|
31
|
+
6. Semantic similarity and related concepts
|
|
32
|
+
|
|
33
|
+
CRITICAL: Be VERY inclusive in your matching. Include sessions that:
|
|
34
|
+
- Contain the query term anywhere in any field
|
|
35
|
+
- Are semantically related to the query (e.g., "testing" matches sessions about "tests", "unit tests", "QA", etc.)
|
|
36
|
+
- Discuss topics that could be related to the query
|
|
37
|
+
- Have transcripts that mention the concept even in passing
|
|
38
|
+
|
|
39
|
+
When in doubt, INCLUDE the session. It's better to return too many results than too few. The user can easily scan through results, but missing relevant sessions is frustrating.
|
|
40
|
+
|
|
41
|
+
Return sessions ordered by relevance (most relevant first). If truly no sessions have ANY connection to the query, return an empty array - but this should be rare.
|
|
42
|
+
|
|
43
|
+
Respond with ONLY the JSON object, no markdown formatting:
|
|
44
|
+
{"relevant_indices": [2, 5, 0]}`;var zK=XZ(()=>{tz();oz();mY();ez();V0();JK();sz()});function WU(Z,J,K){let B=H0();if(!J||!Z.projectPath||Z.projectPath===B)return{isCrossProject:!1};let G=XJ(Z);return{isCrossProject:!0,isSameRepoWorktree:!1,command:`cd ${Zz([Z.projectPath])} && claude --resume ${G}`,projectPath:Z.projectPath}}var UK=XZ(()=>{TY();KK();V0()});
|
|
45
|
+
export{YU as _e,az as $e,QU as af,zK as bf,WU as cf,UK as df};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{$1 as d,F1 as k,H1 as y,N1 as MQ,W1 as _Q,X1 as aQ,g0 as u,k2 as a,s1 as QQ,t1 as uQ}from"./cli-1.1.27-6spv5ha8.mjs";import{U4 as K,V4 as l,W4 as m}from"./cli-1.1.27-kgpk1m6k.mjs";import{X4 as v}from"./cli-1.1.27-m5wtrd2b.mjs";import{l5 as n,n5 as t,s5 as YV}from"./cli-1.1.27-1rztfj2j.mjs";import{F9 as XV,k9 as $Q,n9 as P,q9 as pQ}from"./cli-1.1.27-xdfkhk5m.mjs";import{Sha as CQ,Wfa as fQ,Zfa as x,_ha as VV,sfa as mQ,sga as QV,tfa as eQ}from"./cli-1.1.27-48ezce33.mjs";import{dia as IQ,eia as sQ}from"./cli-1.1.27-fw9r8cwg.mjs";import{ska as r,tka as nQ}from"./cli-1.1.27-y712t8h2.mjs";import{Ala as iQ,xla as E}from"./cli-1.1.27-r335xv52.mjs";import{Ysa as i,ota as tQ}from"./cli-1.1.27-4cjm0m5c.mjs";import{Ita as T,Mta as F}from"./cli-1.1.27-8vrv0ver.mjs";function XQ(){let X=VQ.useContext(QQ);if(!X)throw Error("useTerminalSize must be used within an Ink App component");return X}var VQ;var YQ=F(()=>{uQ();VQ=T(v(),1)});function ZQ(X,Q){if(Q.escape)return"escape";if(Q.return)return"enter";if(Q.tab)return"tab";if(Q.backspace)return"backspace";if(Q.delete)return"delete";if(Q.upArrow)return"up";if(Q.downArrow)return"down";if(Q.leftArrow)return"left";if(Q.rightArrow)return"right";if(Q.pageUp)return"pageup";if(Q.pageDown)return"pagedown";if(Q.wheelUp)return"wheelup";if(Q.wheelDown)return"wheeldown";if(Q.home)return"home";if(Q.end)return"end";if(X.length===1)return X.toLowerCase();return null}var GQ=()=>{};function JQ(X){let Q=X.split("+"),V={key:"",ctrl:!1,alt:!1,shift:!1,meta:!1,super:!1};for(let Z of Q){let Y=Z.toLowerCase();switch(Y){case"ctrl":case"control":V.ctrl=!0;break;case"alt":case"opt":case"option":V.alt=!0;break;case"shift":V.shift=!0;break;case"meta":V.meta=!0;break;case"cmd":case"command":case"super":case"win":V.super=!0;break;case"esc":V.key="escape";break;case"return":V.key="enter";break;case"space":V.key=" ";break;case"↑":V.key="up";break;case"↓":V.key="down";break;case"←":V.key="left";break;case"→":V.key="right";break;default:V.key=Y;break}}return V}function hQ(X){if(X===" ")return[JQ("space")];return X.trim().split(/\s+/).map(JQ)}function yQ(X){let Q=[];if(X.ctrl)Q.push("ctrl");if(X.alt)Q.push("alt");if(X.shift)Q.push("shift");if(X.meta)Q.push("meta");if(X.super)Q.push("cmd");let V=lQ(X.key);return Q.push(V),Q.join("+")}function lQ(X){switch(X){case"escape":return"Esc";case" ":return"Space";case"tab":return"tab";case"enter":return"Enter";case"backspace":return"Backspace";case"delete":return"Delete";case"up":return"↑";case"down":return"↓";case"left":return"←";case"right":return"→";case"pageup":return"PageUp";case"pagedown":return"PageDown";case"home":return"Home";case"end":return"End";default:return X}}function c(X){return X.map(yQ).join(" ")}function NV(X){let Q=[];for(let V of X)for(let[Z,Y]of Object.entries(V.bindings))Q.push({chord:hQ(Z),action:Y,context:V.context});return Q}var LQ=()=>{};function qQ(X,Q,V){let Z=V.findLast((Y)=>Y.action===X&&Y.context===Q);return Z?c(Z.chord):void 0}function kQ(X,Q){let V=ZQ(X,Q);if(!V)return null;let Z=Q.escape?!1:Q.meta;return{key:V,ctrl:Q.ctrl,alt:Z,shift:Q.shift,meta:Z,super:Q.super}}function HQ(X,Q){return X.key===Q.key&&X.ctrl===Q.ctrl&&X.shift===Q.shift&&(X.alt||X.meta)===(Q.alt||Q.meta)&&X.super===Q.super}function cQ(X,Q){if(X.length>=Q.chord.length)return!1;for(let V=0;V<X.length;V++){let Z=X[V],Y=Q.chord[V];if(!Z||!Y)return!1;if(!HQ(Z,Y))return!1}return!0}function gQ(X,Q){if(X.length!==Q.chord.length)return!1;for(let V=0;V<X.length;V++){let Z=X[V],Y=Q.chord[V];if(!Z||!Y)return!1;if(!HQ(Z,Y))return!1}return!0}function zQ(X,Q,V,Z,Y){if(Q.escape&&Y!==null)return{type:"chord_cancelled"};let G=kQ(X,Q);if(!G){if(Y!==null)return{type:"chord_cancelled"};return{type:"none"}}let J=Y?[...Y,G]:[G],L=new Set(V),N=Z.filter((q)=>L.has(q.context)),z=new Map;for(let q of N)if(q.chord.length>J.length&&cQ(J,q))z.set(c(q.chord),q.action);let B=!1;for(let q of z.values())if(q!==null){B=!0;break}if(B)return{type:"chord_started",pending:J};let H;for(let q of N)if(gQ(J,q))H=q;if(H){if(H.action===null)return{type:"unbound"};return{type:"match",action:H.action}}if(Y!==null)return{type:"chord_cancelled"};return{type:"none"}}var NQ=F(()=>{GQ();LQ()});function TV(X){let Q=g.c(24),{bindings:V,pendingChordRef:Z,pendingChord:Y,setPendingChord:G,activeContexts:J,registerActiveContext:L,unregisterActiveContext:N,handlerRegistryRef:z,children:B}=X,H;if(Q[0]!==V)H=(U,O)=>qQ(U,O,V),Q[0]=V,Q[1]=H;else H=Q[1];let q=H,w;if(Q[2]!==z)w=(U)=>{let O=z.current;if(!O)return dQ;if(!O.has(U.action))O.set(U.action,new Set);return O.get(U.action)?.add(U),()=>{let S=O.get(U.action);if(S){if(S.delete(U),S.size===0)O.delete(U.action)}}},Q[2]=z,Q[3]=w;else w=Q[3];let p=w,D;if(Q[4]!==J||Q[5]!==z)D=(U)=>{let O=z.current;if(!O)return!1;let S=O.get(U);if(!S||S.size===0)return!1;for(let e of S)if(J.has(e.context))return e.handler(),!0;return!1},Q[4]=J,Q[5]=z,Q[6]=D;else D=Q[6];let A=D,_;if(Q[7]!==V||Q[8]!==Z)_=(U,O,S)=>zQ(U,O,S,V,Z.current),Q[7]=V,Q[8]=Z,Q[9]=_;else _=Q[9];let I;if(Q[10]!==J||Q[11]!==V||Q[12]!==q||Q[13]!==A||Q[14]!==Y||Q[15]!==L||Q[16]!==p||Q[17]!==G||Q[18]!==_||Q[19]!==N)I={resolve:_,setPendingChord:G,getDisplayText:q,bindings:V,pendingChord:Y,activeContexts:J,registerActiveContext:L,unregisterActiveContext:N,registerHandler:p,invokeAction:A},Q[10]=J,Q[11]=V,Q[12]=q,Q[13]=A,Q[14]=Y,Q[15]=L,Q[16]=p,Q[17]=G,Q[18]=_,Q[19]=N,Q[20]=I;else I=Q[20];let j=I,W;if(Q[21]!==B||Q[22]!==j)W=K(BQ.Provider,{value:j,children:B}),Q[21]=B,Q[22]=j,Q[23]=W;else W=Q[23];return W}function dQ(){}function h(){return f.useContext(BQ)}function KV(X,Q){let V=g.c(5),Z=Q===void 0?!0:Q,Y=h(),G,J;if(V[0]!==X||V[1]!==Z||V[2]!==Y)G=()=>{if(!Y||!Z)return;return Y.registerActiveContext(X),()=>{Y.unregisterActiveContext(X)}},J=[X,Y,Z],V[0]=X,V[1]=Z,V[2]=Y,V[3]=G,V[4]=J;else G=V[3],J=V[4];f.useLayoutEffect(G,J)}var g,f,BQ;var UQ=F(()=>{NQ();m();g=T(u(),1),f=T(v(),1),BQ=f.createContext(null)});function RV(X,Q,V={}){let{context:Z="Global",isActive:Y=!0}=V,G=h();C.useEffect(()=>{if(!G||!Y)return;return G.registerHandler({action:X,context:Z,handler:Q})},[X,Z,Q,G,Y]);let J=C.useCallback((L,N,z)=>{if(!G)return;let B=[...G.activeContexts,Z,"Global"],H=[...new Set(B)],q=G.resolve(L,N,H);switch(q.type){case"match":if(G.setPendingChord(null),q.action===X){if(Q()!==!1)z.stopImmediatePropagation()}break;case"chord_started":G.setPendingChord(q.pending),z.stopImmediatePropagation();break;case"chord_cancelled":G.setPendingChord(null);break;case"unbound":G.setPendingChord(null),z.stopImmediatePropagation();break;case"none":break}},[X,Z,Q,G]);d(J,{isActive:Y})}function OQ(X,Q={}){let{context:V="Global",isActive:Z=!0}=Q,Y=h();C.useEffect(()=>{if(!Y||!Z)return;let J=[];for(let[L,N]of Object.entries(X))J.push(Y.registerHandler({action:L,context:V,handler:N}));return()=>{for(let L of J)L()}},[V,X,Y,Z]);let G=C.useCallback((J,L,N)=>{if(!Y)return;let z=[...Y.activeContexts,V,"Global"],B=[...new Set(z)],H=Y.resolve(J,L,B);switch(H.type){case"match":if(Y.setPendingChord(null),H.action in X){let q=X[H.action];if(q&&q()!==!1)N.stopImmediatePropagation()}break;case"chord_started":Y.setPendingChord(H.pending),N.stopImmediatePropagation();break;case"chord_cancelled":Y.setPendingChord(null);break;case"unbound":Y.setPendingChord(null),N.stopImmediatePropagation();break;case"none":break}},[V,X,Y]);d(G,{isActive:Z})}var C;var wQ=F(()=>{a();UQ();C=T(v(),1)});function o(X,Q,V){let Z=M.useRef(0),Y=M.useRef(void 0),G=M.useCallback(()=>{if(Y.current)clearTimeout(Y.current),Y.current=void 0},[]);return M.useEffect(()=>{return()=>{G()}},[G]),M.useCallback(()=>{let J=Date.now();if(J-Z.current<=FQ&&Y.current!==void 0)G(),X(!1),Q();else V?.(),X(!0),G(),Y.current=setTimeout((z,B)=>{z(!1),B.current=void 0},FQ,X,Y);Z.current=J},[X,Q,V,G])}var M,FQ=800;var WQ=F(()=>{M=T(v(),1)});function jQ(X,Q,V,Z=!0){let{exit:Y}=_Q(),[G,J]=R.useState({pending:!1,keyName:null}),L=R.useMemo(()=>V??Y,[V,Y]),N=o((w)=>J({pending:w,keyName:"Ctrl-C"}),L),z=o((w)=>J({pending:w,keyName:"Ctrl-D"}),L),B=R.useCallback(()=>{if(Q?.())return;N()},[N,Q]),H=R.useCallback(()=>{z()},[z]),q=R.useMemo(()=>({"app:interrupt":B,"app:exit":H}),[B,H]);return X(q,{context:"Global",isActive:Z}),G}var R;var TQ=F(()=>{aQ();WQ();R=T(v(),1)});function $V(X,Q,V){return jQ(OQ,Q,X,V)}var oQ=F(()=>{wQ();TQ()});function SQ(){return $.useContext(s)!==null}function bV(X){let Q=KQ.c(3),V=$.useContext(s),Z;if(Q[0]!==V||Q[1]!==X)Z=V?{rows:V.rows,columns:V.columns}:X,Q[0]=V,Q[1]=X,Q[2]=Z;else Z=Q[2];return Z}function xV(){return $.useContext(s)?.scrollRef??null}var KQ,$,s;var AQ=F(()=>{KQ=T(u(),1),$=T(v(),1),s=$.createContext(null)});function DQ(X){let Q=RQ.c(21),{width:V,color:Z,char:Y,padding:G,title:J}=X,L=Y===void 0?"─":Y,N=G===void 0?0:G,{columns:z}=XQ(),B=Math.max(0,(V??z)-N);if(J){let p=IQ(J)+2,D=Math.max(0,B-p),A=Math.floor(D/2),_=D-A,I=!Z,j;if(Q[0]!==L||Q[1]!==A)j=L.repeat(A),Q[0]=L,Q[1]=A,Q[2]=j;else j=Q[2];let W;if(Q[3]!==J)W=K(y,{dimColor:!0,children:K(MQ,{children:J})}),Q[3]=J,Q[4]=W;else W=Q[4];let U;if(Q[5]!==L||Q[6]!==_)U=L.repeat(_),Q[5]=L,Q[6]=_,Q[7]=U;else U=Q[7];let O;if(Q[8]!==Z||Q[9]!==I||Q[10]!==j||Q[11]!==W||Q[12]!==U)O=l(y,{color:Z,dimColor:I,children:[j," ",W," ",U]}),Q[8]=Z,Q[9]=I,Q[10]=j,Q[11]=W,Q[12]=U,Q[13]=O;else O=Q[13];return O}let H=!Z,q;if(Q[14]!==L||Q[15]!==B)q=L.repeat(B),Q[14]=L,Q[15]=B,Q[16]=q;else q=Q[16];let w;if(Q[17]!==Z||Q[18]!==H||Q[19]!==q)w=K(y,{color:Z,dimColor:H,children:q}),Q[17]=Z,Q[18]=H,Q[19]=q,Q[20]=w;else w=Q[20];return w}var RQ;var EQ=F(()=>{YQ();sQ();a();m();RQ=T(u(),1)});function oV(X){let Q=PQ.c(9),{children:V,color:Z}=X;if(SQ()){let L;if(Q[0]!==V)L=K(k,{flexDirection:"column",paddingX:1,flexShrink:0,children:V}),Q[0]=V,Q[1]=L;else L=Q[1];return L}let Y;if(Q[2]!==Z)Y=K(DQ,{color:Z}),Q[2]=Z,Q[3]=Y;else Y=Q[3];let G;if(Q[4]!==V)G=K(k,{flexDirection:"column",paddingX:2,children:V}),Q[4]=V,Q[5]=G;else G=Q[5];let J;if(Q[6]!==Y||Q[7]!==G)J=l(k,{flexDirection:"column",paddingTop:1,children:[Y,G]}),Q[6]=Y,Q[7]=G,Q[8]=J;else J=Q[8];return J}var PQ;var rQ=F(()=>{AQ();a();EQ();m();PQ=T(u(),1)});async function ZV(X="claude_code_guest_pass"){let{accessToken:Q,orgUUID:V}=await n(),Z={...t(Q),"x-organization-uuid":V},Y=`${r().BASE_API_URL}/api/oauth/organizations/${V}/referral/eligibility`;return(await i.get(Y,{headers:Z,params:{campaign:X},timeout:5000})).data}async function ZX(X="claude_code_guest_pass"){let{accessToken:Q,orgUUID:V}=await n(),Z={...t(Q),"x-organization-uuid":V},Y=`${r().BASE_API_URL}/api/oauth/organizations/${V}/referral/redemptions`;return(await i.get(Y,{headers:Z,params:{campaign:X},timeout:1e4})).data}function xQ(){return!!(P()?.organizationUuid&&$Q()&&pQ()==="max")}function GX(){if(!xQ())return{eligible:!1,needsRefresh:!1,hasCache:!1};let X=P()?.organizationUuid;if(!X)return{eligible:!1,needsRefresh:!1,hasCache:!1};let V=x().passesEligibilityCache?.[X];if(!V)return{eligible:!1,needsRefresh:!0,hasCache:!1};let{eligible:Z,timestamp:Y}=V,J=Date.now()-Y>bQ;return{eligible:Z,needsRefresh:J,hasCache:!0}}function JX(X){let Q=GV[X.currency]??`${X.currency} `,V=X.amount_minor_units/100,Z=V%1===0?V.toString():V.toFixed(2);return`${Q}${Z}`}function LX(){let X=P()?.organizationUuid;if(!X)return null;return x().passesEligibilityCache?.[X]?.referrer_reward??null}function qX(){let X=P()?.organizationUuid;if(!X)return null;return x().passesEligibilityCache?.[X]?.remaining_passes??null}async function vQ(){if(b)return E("Passes: Reusing in-flight eligibility fetch"),b;let X=P()?.organizationUuid;if(!X)return null;return b=(async()=>{try{let Q=await ZV(),V={...Q,timestamp:Date.now()};return fQ((Z)=>({...Z,passesEligibilityCache:{...Z.passesEligibilityCache,[X]:V}})),E(`Passes eligibility cached for org ${X}: ${Q.eligible}`),Q}catch(Q){return E("Failed to fetch and cache passes eligibility"),CQ(Q),null}finally{b=null}})(),b}async function JV(){if(!xQ())return null;let X=P()?.organizationUuid;if(!X)return null;let V=x().passesEligibilityCache?.[X],Z=Date.now();if(!V)return E("Passes: No cache, fetching eligibility in background (command unavailable this session)"),vQ(),null;if(Z-V.timestamp>bQ){E("Passes: Cache stale, returning cached data and refreshing in background"),vQ();let{timestamp:J,...L}=V;return L}E("Passes: Using fresh cached eligibility data");let{timestamp:Y,...G}=V;return G}async function HX(){if(mQ())return;JV()}var bQ=86400000,b=null,GV;var LV=F(()=>{tQ();nQ();XV();QV();iQ();VV();eQ();YV();GV={USD:"$",EUR:"€",GBP:"£",BRL:"R$",CAD:"CA$",AUD:"A$",NZD:"NZ$",SGD:"S$"}});
|
|
2
|
+
export{XQ as SY,YQ as TY,JQ as UY,hQ as VY,c as WY,NV as XY,LQ as YY,qQ as ZY,zQ as _Y,NQ as $Y,TV as aZ,h as bZ,KV as cZ,UQ as dZ,RV as eZ,OQ as fZ,wQ as gZ,o as hZ,WQ as iZ,$V as jZ,oQ as kZ,s as lZ,SQ as mZ,bV as nZ,xV as oZ,AQ as pZ,DQ as qZ,EQ as rZ,oV as sZ,rQ as tZ,ZX as uZ,GX as vZ,JX as wZ,LX as xZ,qX as yZ,JV as zZ,HX as AZ,LV as BZ};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import{C3 as VJ,z3 as qJ}from"./cli-1.1.27-6g67vpnz.mjs";import{Eca as ZJ,Gca as TJ,Iaa as YJ,J$ as W,Jaa as jJ,K$ as f,Sha as q,Vea as $J,Wfa as w,_ha as u,gfa as AJ,sga as m,xca as U,zca as E}from"./cli-1.1.27-48ezce33.mjs";import{uka as F,xka as xJ}from"./cli-1.1.27-7gnbh46g.mjs";import{Ala as NJ,ala as b,bla as x,fla as P,jla as y,nla as D,xla as K}from"./cli-1.1.27-r335xv52.mjs";import{Hla as QJ,Yla as M,Zla as B,ama as n,cma as T}from"./cli-1.1.27-0rz9qd34.mjs";import{fma as O,qma as k}from"./cli-1.1.27-t1dxp2pw.mjs";import{Mta as j}from"./cli-1.1.27-8vrv0ver.mjs";import{access as d,chmod as BJ,writeFile as GJ}from"fs/promises";import{homedir as h}from"os";import{join as v}from"path";function A(){return v(O(),"local")}function RJ(J=h()){return v(J,".claude","local")}function p(J){let Q=J?.homeDir??h(),Y=J?.configHomeDir??O();return Array.from(new Set([v(Y,"local"),RJ(Q)]))}function c(J){return[v(J,"node_modules",".bin","claudin"),v(J,"node_modules",".bin","claude")]}function _J(J){let Q=J.replace(/\\+/g,"/");return Q.includes("/.claudin/local/node_modules/")||Q.includes("/.claude/local/node_modules/")}function V(){return v(A(),"claudin")}function rJ(){return _J(U())}async function I(J,Q,Y){try{return await GJ(J,Q,{encoding:"utf8",flag:"wx",mode:Y}),!0}catch(Z){if(M(Z)==="EEXIST")return!1;throw Z}}async function OJ(){try{let J=A();await y().mkdir(J),await I(v(J,"package.json"),b({name:"claudin-local",version:"0.0.1",private:!0},null,2));let Q=V();if(await I(Q,`#!/bin/sh
|
|
2
|
+
exec "${J}/node_modules/.bin/claudin" "$@"`,493))await BJ(Q,493);return!0}catch(J){return q(J),!1}}async function JQ(J,Q){try{if(!await OJ())return"install_failed";let Z=await W("npm",["install",`@claudiolabs/claudin@${Q?Q:J==="stable"?"stable":"latest"}`],{cwd:A(),maxBuffer:1e6});if(Z.code!==0){let $=Error(`Failed to install Claude CLI package: ${Z.stderr}`);return q($),Z.code===190?"in_progress":"install_failed"}return w(($)=>({...$,installMethod:"local"})),"success"}catch(Y){return q(Y),"install_failed"}}async function QQ(){for(let J of p())for(let Q of c(J))try{return await d(Q),!0}catch{}return!1}async function YQ(){for(let J of p())for(let Q of c(J))try{return await d(Q),J}catch{}return null}function ZQ(){let J=process.env.SHELL||"";if(J.includes("zsh"))return"zsh";if(J.includes("bash"))return"bash";if(J.includes("fish"))return"fish";return"unknown"}var g=j(()=>{E();m();k();T();f();D();u();P()});import{open as MJ,readFile as yJ,stat as UJ}from"fs/promises";import{homedir as t}from"os";import{join as C}from"path";function S(J){let Q=J?.homedir??t(),Z=(J?.env??process.env).ZDOTDIR||Q;return{zsh:C(Z,".zshrc"),bash:C(Q,".bashrc"),fish:C(Q,".config/fish/config.fish")}}function a(J){let Q=!1;return{filtered:J.filter((Z)=>{if(s.test(Z)){let $=Z.match(/alias\s+claude\s*=\s*["']([^"']+)["']/);if(!$)$=Z.match(/alias\s+claude\s*=\s*([^#\n]+)/);if($&&$[1]){if($[1].trim()===V())return Q=!0,!1}}return!0}),hadAlias:Q}}async function L(J){try{return(await yJ(J,{encoding:"utf8"})).split(`
|
|
3
|
+
`)}catch(Q){if(n(Q))return null;throw Q}}async function l(J,Q){let Y=await MJ(J,"w");try{await Y.writeFile(Q.join(`
|
|
4
|
+
`),{encoding:"utf8"}),await Y.datasync()}finally{await Y.close()}}async function wJ(J){let Q=S(J);for(let Y of Object.values(Q)){let Z=await L(Y);if(!Z)continue;for(let $ of Z)if(s.test($)){let X=$.match(/alias\s+claude=["']?([^"'\s]+)/);if(X&&X[1])return X[1]}}return null}async function HQ(J){let Q=await wJ(J);if(!Q)return null;let Y=J?.homedir??t(),Z=Q.startsWith("~")?Q.replace("~",Y):Q;try{let $=await UJ(Z);if($.isFile()||$.isSymbolicLink())return Q}catch{}return null}var s;var o=j(()=>{T();g();s=/^\s*alias\s+claude\s*=/});import{constants as KJ}from"fs";import{access as WJ,readFile as CJ,stat as SJ,writeFile as i}from"fs/promises";import{homedir as z}from"os";import{join as H}from"path";function LJ(){let J=U();if(J.includes("/.bun/install/global/"))return!0;let Q=process.env.BUN_INSTALL;if(Q&&J.startsWith(Q))return!0;return!1}function XJ(){return LJ()?"bun":"npm"}function zJ(){let J=process.env.BUN_INSTALL||H(z(),".bun");return H(J,"install","global","node_modules","@claudiolabs/claudin")}async function kJ(){let J=await W("npm",["-g","config","get","prefix"],{cwd:z()});if(J.code!==0)return null;let Q=J.stdout.trim();if(!Q)return null;return YJ()==="windows"?H(Q,"node_modules","@claudiolabs/claudin"):H(Q,"lib","node_modules","@claudiolabs/claudin")}async function e(J){try{let Q=await CJ(H(J,"package.json"),"utf8"),Y=x(Q);return typeof Y.version==="string"?Y.version:null}catch(Q){if(!B(Q))q(Q);return null}}function r(J){return J==="bun"?Promise.resolve(zJ()):kJ()}async function bJ(J,Q,Y){let Z=J==="npm"?"bun":"npm",$=await r(Z);if(!$)return;let X=await e($);if(!X)return;let R=await r(J),_=R?await e(R):null;if(_&&X===_)return;K(`update: repairing stale ${Z} install ${X} at ${$}`);let N=await W(Z,Z==="npm"?["install","-g","--force",Q]:["install","-g",Q],{cwd:z()});if(N.code!==0){q(new G(`Failed to refresh the ${Z} global install at ${$}: ${N.stdout} ${N.stderr}`));return}if(Z==="bun")await HJ();Y?.(`Repaired old version ${X} at ${$}`)}async function PJ(J,Q){let Y=await W("node",[J],{cwd:Q});if(Y.code===0)return!0;if(!IJ.test(Y.error??""))return q(new G(`Skipped postinstall failed under node: ${Y.stdout} ${Y.stderr}`)),!1;let Z=await W("bun",[J],{cwd:Q});if(Z.code===0)return!0;return q(new G(`Skipped postinstall failed under bun: ${Z.stdout} ${Z.stderr}`)),!1}async function HJ(){let J=zJ(),Q=H(J,"install.cjs"),Y=H(J,"bin","claudin.exe");try{await WJ(Q,KJ.F_OK)}catch(Z){if(!B(Z))q(Z);return!1}try{if((await SJ(Y)).size>FJ)return!1}catch(Z){if(!B(Z))return q(Z),!1}if(!await PJ(Q,J))return!1;return K("update: repaired Bun global launcher via install.cjs"),!0}async function IQ(){}async function kQ(){return}async function bQ(){return}function PQ(J){let Y=$J()?.minimumVersion;if(!Y)return!1;let Z=!qJ(J,Y);if(Z)K(`Skipping update to ${J} - below minimumVersion ${Y}`);return Z}function vJ(){return H(O(),".update.lock")}async function DJ(){let J=y(),Q=vJ();try{let Y=await J.stat(Q);if(Date.now()-Y.mtimeMs<JJ)return!1;try{let $=await J.stat(Q);if(Date.now()-$.mtimeMs<JJ)return!1;await J.unlink(Q)}catch($){if(!B($))return q($),!1}}catch(Y){if(!B(Y))return q(Y),!1}try{return await i(Q,`${process.pid}`,{encoding:"utf8",flag:"wx"}),!0}catch(Y){let Z=M(Y);if(Z==="EEXIST")return!1;if(Z==="ENOENT")try{return await J.mkdir(O()),await i(Q,`${process.pid}`,{encoding:"utf8",flag:"wx"}),!0}catch($){if(M($)==="EEXIST")return!1;return q($),!1}return q(Y),!1}}async function fJ(){let J=y(),Q=vJ();try{if(await J.readFile(Q,{encoding:"utf8"})===`${process.pid}`)await J.unlink(Q)}catch(Y){if(B(Y))return;q(Y)}}async function EJ(){let J=XJ()==="bun",Q=null;if(J)Q=await W("bun",["pm","bin","-g"],{cwd:z()});else Q=await W("npm",["-g","config","get","prefix"],{cwd:z()});if(Q.code!==0)return q(Error(`Failed to check ${J?"bun":"npm"} permissions`)),null;return Q.stdout.trim()}async function mJ(){try{let J=await EJ();if(!J)return{hasPermissions:!1,npmPrefix:null};try{return await WJ(J,KJ.W_OK),{hasPermissions:!0,npmPrefix:J}}catch{return q(new G("Insufficient permissions for global npm install.")),{hasPermissions:!1,npmPrefix:J}}}catch(J){return q(J),{hasPermissions:!1,npmPrefix:null}}}async function DQ(J,Q={}){let Y=J==="stable"?"stable":"latest",Z=Q.timeoutMs??5000,$=await W("npm",["view",`@claudiolabs/claudin@${Y}`,"version","--prefer-online"],{abortSignal:AbortSignal.timeout(Z),cwd:z()});if($.code!==0){if(K(`npm view failed with code ${$.code}`),$.stderr)K(`npm stderr: ${$.stderr.trim()}`);else K("npm stderr: (empty)");if($.stdout)K(`npm stdout: ${$.stdout.trim()}`);return null}return $.stdout.trim()}async function fQ(){let J=await W("npm",["view","@claudiolabs/claudin","dist-tags","--json","--prefer-online"],{abortSignal:AbortSignal.timeout(5000),cwd:z()});if(J.code!==0)return K(`npm view dist-tags failed with code ${J.code}`),{latest:null,stable:null};try{let Q=x(J.stdout.trim());return{latest:typeof Q.latest==="string"?Q.latest:null,stable:typeof Q.stable==="string"?Q.stable:null}}catch(Q){return K(`Failed to parse dist-tags: ${Q}`),{latest:null,stable:null}}}async function EQ(J){return null}async function mQ(){return{latest:null,stable:null}}async function uQ(J){let Y=await W("npm",["view","@claudiolabs/claudin","versions","--json","--prefer-online"],{abortSignal:AbortSignal.timeout(30000),cwd:z()});if(Y.code!==0){if(K(`npm view versions failed with code ${Y.code}`),Y.stderr)K(`npm stderr: ${Y.stderr.trim()}`);return[]}try{return x(Y.stdout.trim()).slice(-J).reverse()}catch(Z){return K(`Failed to parse version history: ${Z}`),[]}}async function dQ(J,Q){if(!await DJ())return q(new G("Another process is currently installing an update")),F("",{pid:process.pid,currentVersion:"99.0.0"}),"in_progress";try{await uJ();let Y=XJ();if(Y==="npm"&&ZJ.isNpmFromWindowsPath())return q(Error("Windows NPM detected in WSL environment")),F("",{currentVersion:"99.0.0"}),console.error(`
|
|
5
|
+
Error: Windows NPM detected in WSL
|
|
6
|
+
|
|
7
|
+
You're running Claudin in WSL but using the Windows NPM installation from /mnt/c/.
|
|
8
|
+
This configuration is not supported for updates.
|
|
9
|
+
|
|
10
|
+
To fix this issue:
|
|
11
|
+
1. Install Node.js within your Linux distribution: e.g. sudo apt install nodejs npm
|
|
12
|
+
2. Make sure Linux NPM is in your PATH before the Windows version
|
|
13
|
+
3. Try updating again with 'claudin update'
|
|
14
|
+
`),"install_failed";let{hasPermissions:Z}=await mJ();if(!Z)return"no_permissions";let $=J?`@claudiolabs/claudin@${J}`:"@claudiolabs/claudin",R=await W(Y,Y==="npm"?["install","-g","--force",$]:["install","-g",$],{cwd:z()});if(R.code!==0){let _=new G(`Failed to install new version of claude: ${R.stdout} ${R.stderr}`);return q(_),"install_failed"}return await HJ(),await bJ(Y,$,Q?.onProgress),w((_)=>({..._,installMethod:"global"})),"success"}finally{await fJ()}}async function uJ(){let J=S();for(let[,Q]of Object.entries(J))try{let Y=await L(Q);if(!Y)continue;let{filtered:Z,hadAlias:$}=a(Y);if($)await l(Q,Z),K(`Removed claude alias from ${Q}`)}catch(Y){K(`Failed to remove alias from ${Q}: ${Y}`,{level:"error"})}}var G,FJ=4096,IJ,JJ=300000;var dJ=j(()=>{xJ();E();m();NJ();TJ();k();T();f();D();u();jJ();VJ();AJ();o();P();G=class G extends QJ{};IJ=/ENOENT/i});
|
|
15
|
+
export{rJ as SU,JQ as TU,QQ as UU,YQ as VU,ZQ as WU,g as XU,S as YU,a as ZU,L as _U,l as $U,wJ as aV,HQ as bV,o as cV,zJ as dV,HJ as eV,IQ as fV,kQ as gV,bQ as hV,PQ as iV,vJ as jV,mJ as kV,DQ as lV,fQ as mV,EQ as nV,mQ as oV,uQ as pV,dQ as qV,dJ as rV};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{Mta as r}from"./cli-1.1.27-8vrv0ver.mjs";var i,a=(s,e)=>function(){try{return e||(0,s[i(s)[0]])((e={exports:{}}).exports,e),e.exports}catch(t){throw e=0,t}},n;var p=r(()=>{i=Object.getOwnPropertyNames,n=a({"package.json"(s,e){e.exports={name:"@mendable/firecrawl-js",version:"4.38.0",description:"JavaScript SDK for the Firecrawl API: web scraping, crawling, web search, and scientific literature search over a research paper index of PubMed, bioRxiv, medRxiv and arXiv abstracts",main:"dist/index.js",types:"dist/index.d.ts",exports:{"./package.json":"./package.json",".":{import:"./dist/index.js",default:"./dist/index.cjs"}},type:"module",scripts:{build:"tsup","build-and-publish":"pnpm run build && pnpm publish --access public","publish-beta":"pnpm run build && pnpm publish --access public --tag beta",test:"NODE_OPTIONS=--experimental-vm-modules jest --verbose src/__tests__/e2e/v2/*.test.ts --detectOpenHandles","test:unit":"NODE_OPTIONS=--experimental-vm-modules jest --verbose src/__tests__/unit/v2/*.test.ts"},repository:{type:"git",url:"git+https://github.com/firecrawl/firecrawl.git"},author:"Mendable.ai",license:"MIT",dependencies:{axios:"1.18.0",firecrawl:"4.30.1","typescript-event-target":"^1.1.1",zod:"^3.23.8","zod-to-json-schema":"^3.23.0"},bugs:{url:"https://github.com/firecrawl/firecrawl/issues"},homepage:"https://github.com/firecrawl/firecrawl#readme",devDependencies:{"@jest/globals":"^30.2.0","@types/dotenv":"^8.2.0","@types/jest":"^30.0.0","@types/mocha":"^10.0.6","@types/node":"^20.12.12","@types/uuid":"^9.0.8",dotenv:"^16.4.5",jest:"^30.2.0","ts-jest":"^29.4.5",tsup:"^8.5.0",typescript:"^5.4.5",uuid:"^14.0.0"},keywords:["firecrawl","mendable","crawler","web","scraper","api","sdk","web-search","literature-search","research","scientific-papers","academic-search","biomedical","life-sciences","pubmed","biorxiv","medrxiv","arxiv","preprints","citations","bioinformatics"],engines:{node:">=22.0.0"}}}})});
|
|
2
|
+
export{n as Ki,p as Li};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import{Yg as uZ,Zg as pZ,_g as cz}from"./cli-1.1.27-3qx1npht.mjs";import{xi as GJ,yi as Gz}from"./cli-1.1.27-rct7c74m.mjs";import{Ii as LJ,Ji as Lz}from"./cli-1.1.27-6dm0tj1c.mjs";import{$A as RZ,AS as g0,BS as tQ,Cy as UQ,Cz as gQ,DS as sQ,Dy as MQ,Dz as EX,ES as ZQ,Eo as WQ,Ey as uQ,FS as JQ,Fy as pQ,GS as eQ,Go as $Z,HS as Zz,Hk as IJ,Ik as TJ,JB as ZZ,JS as AZ,Jt as OJ,Jy as EQ,KB as mJ,KU as HQ,Ky as bQ,LB as nJ,MB as lJ,NB as Sz,Nt as Ez,Pk as dJ,Qo as qQ,UK as nQ,Uo as dz,Wy as fQ,Xy as DX,_A as TZ,aB as hZ,bB as cJ,bl as nZ,cB as mQ,cl as wX,cz as cQ,dB as gJ,dz as MX,go as XQ,ho as fz,ky as $Q,ny as PX,oo as xQ,po as AX,qS as iQ,tU as BQ,uS as aQ,vS as rQ,wU as NQ,xS as lZ,yS as oQ,yk as kZ,zU as fZ,zk as hQ}from"./cli-1.1.27-w8pwj9ef.mjs";import{MV as dQ,VV as UX}from"./cli-1.1.27-x6dqasdj.mjs";import{SY as KZ,TY as YJ,lZ as VJ,pZ as Bz,qZ as UZ,rZ as jX}from"./cli-1.1.27-9chfrr9e.mjs";import{E0 as c0,F1 as b,G1 as DQ,H1 as g,I1 as XX,J0 as yZ,YZ as qJ,ZZ as Vz,g0 as u0,g1 as MZ,i1 as Xz,k2 as f0,y1 as RQ,z1 as OX}from"./cli-1.1.27-6spv5ha8.mjs";import{T4 as p0,U4 as B,V4 as x,W4 as F0}from"./cli-1.1.27-kgpk1m6k.mjs";import{X4 as I0}from"./cli-1.1.27-m5wtrd2b.mjs";import{t5 as BJ,u5 as HJ,v5 as Hz}from"./cli-1.1.27-wtthtmes.mjs";import{A8 as zX,F8 as QZ,F9 as pz,I8 as zZ,a9 as QQ,k9 as zQ,z8 as PQ}from"./cli-1.1.27-xdfkhk5m.mjs";import{$9 as mZ,a_ as KX}from"./cli-1.1.27-vh1r16sd.mjs";import{Hca as TQ,Zfa as DZ,bda as NX,lea as FZ,r$ as y0,s$ as XJ,sga as GQ,tea as WJ}from"./cli-1.1.27-48ezce33.mjs";import{dia as PZ,eia as hJ,oia as JZ,via as $z}from"./cli-1.1.27-fw9r8cwg.mjs";import{Gja as xZ,Ija as uz,Tja as NZ,Yja as wZ,Zja as OZ,jka as Mz}from"./cli-1.1.27-cxy3fqs0.mjs";import{Ala as QX,xla as m0}from"./cli-1.1.27-r335xv52.mjs";import{ima as IQ,qma as FX}from"./cli-1.1.27-t1dxp2pw.mjs";import{Vra as LX,qra as SQ}from"./cli-1.1.27-m6ne80zc.mjs";import{Ita as w0,Mta as L0}from"./cli-1.1.27-8vrv0ver.mjs";function EZ(){if($0!==null)clearTimeout($0),$0=null;CZ=Date.now();for(let J of HZ)J()}function Wz(){if($0!==null)return;let J=Date.now()-CZ;if(J>=MZ){EZ();return}$0=setTimeout(EZ,MZ-J)}function iZ(){return bZ.useSyncExternalStore(e0.subscribe,e0.getSnapshot)}function $X(){return bZ.useSyncExternalStore(e0.subscribe,e0.getPresenceSnapshot)}var bZ,x0=null,HZ,$0=null,CZ=0,e0;var aZ=L0(()=>{Xz();bZ=w0(I0(),1),HZ=new Set;e0={update(J){let Z=x0;if(x0=J(Z),x0===Z)return;if(Z===null!==(x0===null))EZ();else Wz()},clear(){e0.update(()=>null)},read(){return x0},subscribe(J){return HZ.add(J),()=>{HZ.delete(J)}},getSnapshot(){return x0},getPresenceSnapshot(){return x0!==null},resetForTesting(){if($0!==null)clearTimeout($0),$0=null;x0=null,CZ=0,HZ.clear()}}});function eZ(J){let Z=GZ.c(6),{children:Q}=J,[z,X]=K0.useState(null),[W,q]=K0.useState(null),V;if(Z[0]!==Q||Z[1]!==W)V=B(tZ.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(oZ.Provider,{value:X,children:B(sZ.Provider,{value:q,children:B(rZ.Provider,{value:z,children:V})})}),Z[3]=z,Z[4]=V,Z[5]=Y;else Y=Z[5];return Y}function ZJ(){return K0.useContext(rZ)}function JJ(){return K0.useContext(tZ)}function fX(J){let Z=GZ.c(8),Q=K0.useContext(oZ),z,X,W,q;if(Z[0]!==J||Z[1]!==Q)z=()=>{if(!Q)return;Q(J)},X=[Q,J],Z[0]=J,Z[1]=Q,Z[2]=z,Z[3]=X;else z=Z[2],X=Z[3];if(Z[4]!==Q)W=()=>{if(!Q)return;return()=>Q(null)},q=[Q],Z[4]=Q,Z[5]=W,Z[6]=q;else W=Z[5],q=Z[6];K0.useEffect(z,X),K0.useEffect(W,q)}function dX(J){let Z=GZ.c(8),Q=K0.useContext(sZ),z,X,W,q;if(Z[0]!==J||Z[1]!==Q)z=()=>{if(!Q)return;Q(J)},X=[Q,J],Z[0]=J,Z[1]=Q,Z[2]=z,Z[3]=X;else z=Z[2],X=Z[3];if(Z[4]!==Q)W=()=>{if(!Q)return;return()=>Q(null)},q=[Q],Z[4]=Q,Z[5]=W,Z[6]=q;else W=Z[5],q=Z[6];K0.useEffect(z,X),K0.useEffect(W,q)}var GZ,K0,rZ,oZ,tZ,sZ;var QJ=L0(()=>{F0();GZ=w0(u0(),1),K0=w0(I0(),1),rZ=K0.createContext(null),oZ=K0.createContext(null),tZ=K0.createContext(null),sZ=K0.createContext(null)});function LZ(J){return J.type==="attachment"&&Yz.has(J.attachment.type)}var qz,Yz;var vZ=L0(()=>{qz=["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","bagel_console","verify_plan_reminder","current_session_memory","compaction_reminder","date_change","bash_git_instructions","claude_md_delta","git_status_delta","todo_reminder_delta","task_reconcile","container_transition"],Yz=new Set(qz)});import{fileURLToPath as Fz}from"url";function qW(J){let[Z,Q]=q0.useState(null),z=q0.useRef(J);z.current=J;let X=q0.useRef(null),W=q0.useCallback(()=>{Q(null)},[]),q=q0.useCallback((K)=>{let F=Math.max(0,K.getScrollHeight()-K.getViewportHeight());if(K.getScrollTop()+K.getPendingDelta()>=F)return;if(X.current===null)X.current=K.getScrollHeight(),Q(z.current)},[]),V=q0.useCallback((K)=>{if(!K)return;K.scrollToBottom()},[]);q0.useEffect(()=>{if(Z===null)X.current=null;else if(J<Z)X.current=null,Q(null)},[J,Z]);let Y=q0.useCallback((K,F)=>{if(Q((j)=>j===null?null:j+K),X.current!==null)X.current+=F},[]);return{dividerIndex:Z,dividerYRef:X,onScrollAway:q,onRepin:W,jumpToNew:V,shiftDivider:Y}}function Kz(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"&&!Nz(W))continue;let q=W.type==="assistant";if(q&&!z)Q++;z=q}return Q}function Nz(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 YW(J,Z){if(Z===null)return;let Q=Z;while(Q<J.length&&(J[Q]?.type==="progress"||LZ(J[Q])))Q++;let z=J[Q]?.uuid;if(!z)return;let X=Kz(J,Z);return{firstUnseenUuid:z,count:Math.max(1,X)}}function VW(J){let Z=o0.c(47),{scrollable:Q,bottom:z,overlay:X,bottomFloat:W,modal:q,modalScrollRef:V,scrollRef:Y,dividerYRef:K,hidePill:F,hideSticky:j,newMessageCount:v,onPillClick:U}=J,I=F===void 0?!1:F,e=j===void 0?!1:j,d=v===void 0?0:v,{rows:O,columns:C}=KZ(),[_,N]=q0.useState(null),P;if(Z[0]===Symbol.for("react.memo_cache_sentinel"))P={setStickyPrompt:N},Z[0]=P;else P=Z[0];let f=P,Z0;if(Z[1]!==Y)Z0=(h)=>Y?.current?.subscribe(h)??Az,Z[1]=Y,Z[2]=Z0;else Z0=Z[2];let M=Z0,k;if(Z[3]!==K||Z[4]!==Y)k=()=>{let h=Y?.current,Q0=K?.current;if(!h||Q0==null)return!1;return h.getScrollTop()+h.getPendingDelta()+h.getViewportHeight()<Q0},Z[3]=K,Z[4]=Y,Z[5]=k;else k=Z[5];let H0=q0.useSyncExternalStore(M,k),Y0;if(Z[6]===Symbol.for("react.memo_cache_sentinel"))Y0=[],Z[6]=Y0;else Y0=Z[6];if(q0.useLayoutEffect(wz,Y0),c0()){let h=e?null:_,Q0=h!=null&&h!=="clicked"&&X==null?h:null,J0=h!=null&&X==null,z0;if(Z[7]!==Q0)z0=Q0&&B(Pz,{text:Q0.text,onClick:Q0.scrollTo}),Z[7]=Q0,Z[8]=z0;else z0=Z[8];let O0=J0?0:1,T;if(Z[9]!==Q)T=B(_Z,{value:f,children:Q}),Z[9]=Q,Z[10]=T;else T=Z[10];let l;if(Z[11]!==X||Z[12]!==Y||Z[13]!==T||Z[14]!==O0)l=x(LJ,{ref:Y,flexGrow:1,flexDirection:"column",paddingTop:O0,stickyScroll:!0,children:[T,X]}),Z[11]=X,Z[12]=Y,Z[13]=T,Z[14]=O0,Z[15]=l;else l=Z[15];let o;if(Z[16]!==I||Z[17]!==d||Z[18]!==U||Z[19]!==X||Z[20]!==H0)o=!I&&H0&&X==null&&B(jz,{count:d,onClick:U}),Z[16]=I,Z[17]=d,Z[18]=U,Z[19]=X,Z[20]=H0,Z[21]=o;else o=Z[21];let t;if(Z[22]!==W)t=W!=null&&B(b,{position:"absolute",bottom:0,right:0,opaque:!0,children:W}),Z[22]=W,Z[23]=t;else t=Z[23];let S;if(Z[24]!==l||Z[25]!==o||Z[26]!==t||Z[27]!==z0)S=x(b,{flexGrow:1,flexDirection:"column",overflow:"hidden",children:[z0,l,o,t]}),Z[24]=l,Z[25]=o,Z[26]=t,Z[27]=z0,Z[28]=S;else S=Z[28];let X0,w;if(Z[29]===Symbol.for("react.memo_cache_sentinel"))X0=B(Dz,{}),w=B(Uz,{}),Z[29]=X0,Z[30]=w;else X0=Z[29],w=Z[30];let D;if(Z[31]!==z)D=x(b,{flexDirection:"column",flexShrink:0,width:"100%",maxHeight:"50%",children:[X0,w,B(b,{flexDirection:"column",width:"100%",flexGrow:1,overflowY:"hidden",children:z})]}),Z[31]=z,Z[32]=D;else D=Z[32];let R;if(Z[33]!==C||Z[34]!==q||Z[35]!==V||Z[36]!==O)R=q!=null&&B(VJ,{value:{rows:O-zJ-1,columns:C-4,scrollRef:V??null},children:x(b,{position:"absolute",bottom:0,left:0,right:0,maxHeight:O-zJ,flexDirection:"column",overflow:"hidden",opaque:!0,children:[B(b,{flexShrink:0,children:B(g,{color:"permission",children:"▔".repeat(C)})}),B(b,{flexDirection:"column",paddingX:2,flexShrink:0,overflow:"hidden",children:q})]})}),Z[33]=C,Z[34]=q,Z[35]=V,Z[36]=O,Z[37]=R;else R=Z[37];let s;if(Z[38]!==S||Z[39]!==D||Z[40]!==R)s=x(eZ,{children:[S,D,R]}),Z[38]=S,Z[39]=D,Z[40]=R,Z[41]=s;else s=Z[41];return s}let i;if(Z[42]!==z||Z[43]!==q||Z[44]!==X||Z[45]!==Q)i=x(p0,{children:[Q,z,X,q]}),Z[42]=z,Z[43]=q,Z[44]=X,Z[45]=Q,Z[46]=i;else i=Z[46];return i}function wz(){if(!c0())return;let J=qJ.get(process.stdout);if(!J)return;return J.onHyperlinkClick=Oz,()=>{J.onHyperlinkClick=void 0}}function Oz(J){if(J.startsWith("file:"))try{BJ(Fz(J))}catch{}else HJ(J)}function Az(){}function jz(J){let Z=o0.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 ${FZ(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=x(g,{backgroundColor:Y,dimColor:!0,children:[" ",K," ",y0.arrowDown," "]}),Z[4]=Y,Z[5]=K,Z[6]=F;else F=Z[6];let j;if(Z[7]!==z||Z[8]!==F)j=B(b,{position:"absolute",bottom:0,left:0,right:0,justifyContent:"center",children:B(b,{onClick:z,onMouseEnter:q,onMouseLeave:V,children:F})}),Z[7]=z,Z[8]=F,Z[9]=j;else j=Z[9];return j}function Pz(J){let Z=o0.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=x(g,{color:"subtle",wrap:"truncate-end",children:[y0.pointer," ",Q]}),Z[2]=Q,Z[3]=K;else K=Z[3];let F;if(Z[4]!==z||Z[5]!==q||Z[6]!==K)F=B(b,{flexShrink:0,width:"100%",height:1,paddingRight:1,backgroundColor:q,onClick:z,onMouseEnter:V,onMouseLeave:Y,children:K}),Z[4]=z,Z[5]=q,Z[6]=K,Z[7]=F;else F=Z[7];return F}function Dz(){let J=o0.c(4),Z=ZJ();if(!Z||Z.suggestions.length===0)return null;let Q;if(J[0]!==Z.maxColumnWidth||J[1]!==Z.selectedSuggestion||J[2]!==Z.suggestions)Q=B(b,{position:"absolute",bottom:"100%",left:0,right:0,paddingX:2,paddingTop:1,flexDirection:"column",opaque:!0,children:B(GJ,{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 Uz(){let J=o0.c(2),Z=JJ();if(!Z)return null;let Q;if(J[0]!==Z)Q=B(b,{position:"absolute",bottom:"100%",left:0,right:0,opaque:!0,children:Z}),J[0]=Z,J[1]=Q;else Q=J[1];return Q}var o0,q0,zJ=2,_Z;var FJ=L0(()=>{XJ();Bz();QJ();YJ();Lz();Vz();f0();Hz();yZ();WJ();vZ();Gz();F0();o0=w0(u0(),1),q0=w0(I0(),1),_Z=q0.createContext({setStickyPrompt:()=>{}})});function KJ(J,Z){for(let Q of J)if(!Z.has(Q))return!1;return!0}var NJ=()=>{};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(`<${NZ}`))return!1;if(kZ(Z.text,wZ)!=="completed")return!1;return kZ(Z.text,OZ)?.startsWith(OJ)??!1}function AJ(J,Z){if(!c0())return J;if(Z)return J;let Q=[],z=0;while(z<J.length){let X=J[z];if(wJ(X)){let W=0;while(z<J.length&&wJ(J[z]))W++,z++;if(W===1)Q.push(X);else Q.push({...X,message:{role:"user",content:[{type:"text",text:`<${NZ}><${wZ}>completed</${wZ}><${OZ}>${W} background commands completed</${OZ}></${NZ}>`}]}})}else Q.push(X),z++}return Q}var jJ=L0(()=>{Mz();Ez();yZ();AZ()});function PJ(J){return J.type==="system"&&J.subtype==="stop_hook_summary"&&J.hookLabel!==void 0}function DJ(J){let Z=[],Q=0;while(Q<J.length){let z=J[Q];if(PJ(z)){let X=z.hookLabel,W=[];while(Q<J.length){let q=J[Q];if(!PJ(q)||q.hookLabel!==X)break;W.push(q),Q++}if(W.length===1)Z.push(z);else Z.push({...z,hookCount:W.reduce((q,V)=>q+V.hookCount,0),hookInfos:W.flatMap((q)=>q.hookInfos),hookErrors:W.flatMap((q)=>q.hookErrors),preventedContinuation:W.some((q)=>q.preventedContinuation),hasOutput:W.some((q)=>q.hasOutput),totalDurationMs:Math.max(...W.map((q)=>q.totalDurationMs??0))})}else Z.push(z),Q++}return Z}var UJ=()=>{};function MJ(J){return J.type==="attachment"&&J.attachment.type==="task_status"&&J.attachment.taskType==="in_process_teammate"&&J.attachment.status==="completed"}function EJ(J){let Z=[],Q=0;while(Q<J.length){let z=J[Q];if(MJ(z)){let X=0;while(Q<J.length&&MJ(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 bJ=()=>{};function bz(J){let Z=CJ.get(J);if(!Z)Z=new Set(J.filter((Q)=>Q.renderGroupedToolUse).map((Q)=>Q.name)),CJ.set(J,Z);return Z}function SZ(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 vJ(J,Z,Q=!1){if(Q)return{messages:J};let z=bz(Z),X=new Map;for(let F of J){let j=SZ(F);if(j&&z.has(j.toolName)){let v=`${j.messageId}:${j.toolName}`,U=X.get(v)??[];U.push(F),X.set(v,U)}}let W=new Map,q=new Set;for(let[F,j]of X)if(j.length>=2){W.set(F,j);for(let v of j){let U=SZ(v);if(U)q.add(U.toolUseId)}}let V=new Map;for(let F of J)if(F.type==="user"){for(let j of F.message.content)if(j.type==="tool_result"&&q.has(j.tool_use_id))V.set(j.tool_use_id,F)}let Y=[],K=new Set;for(let F of J){let j=SZ(F);if(j){let v=`${j.messageId}:${j.toolName}`,U=W.get(v);if(U){if(!K.has(v)){K.add(v);let I=U[0],e=[];for(let O of U){let C=O.message.content[0].id,_=V.get(C);if(_)e.push(_)}let d={type:"grouped_tool_use",toolName:j.toolName,messages:U,results:e,displayMessage:I,uuid:`grouped-${I.uuid}`,timestamp:I.timestamp,messageId:j.messageId};Y.push(d)}continue}}if(F.type==="user"){let v=F.message.content.filter((U)=>U.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 CJ;var yJ=L0(()=>{CJ=new WeakMap});function jZ(J){let Z=SJ.get(J);if(Z!==void 0)return Z;let Q=Cz(J).toLowerCase();return SJ.set(J,Q),Q}function Cz(J){let Z="";switch(J.type){case"user":{let X=J.message.content;if(typeof X==="string")Z=kJ.has(X)?"":X;else{let W=[];for(let q of X)if(q.type==="text"){if(!kJ.has(q.text))W.push(q.text)}else if(q.type==="tool_result")W.push(yz(J.toolUseResult));Z=W.join(`
|
|
2
|
+
`)}break}case"assistant":{let X=J.message.content;if(Array.isArray(X))Z=X.flatMap((W)=>{if(W.type==="text")return[W.text];if(W.type==="tool_use")return[vz(W.input)];return[]}).join(`
|
|
3
|
+
`);break}case"attachment":{if(J.attachment.type==="relevant_memories")Z=J.attachment.memories.map((X)=>X.content).join(`
|
|
4
|
+
`);else if(J.attachment.type==="queued_command"&&J.attachment.commandMode!=="task-notification"&&!J.attachment.isMeta){let X=J.attachment.prompt;Z=typeof X==="string"?X:X.flatMap((W)=>W.type==="text"?[W.text]:[]).join(`
|
|
5
|
+
`)}break}case"collapsed_read_search":{if(J.relevantMemories)Z=J.relevantMemories.map((X)=>X.content).join(`
|
|
6
|
+
`);break}default:break}let Q=Z,z=Q.indexOf("<system-reminder>");while(z>=0){let X=Q.indexOf(_J,z);if(X<0)break;Q=Q.slice(0,z)+Q.slice(X+_J.length),z=Q.indexOf("<system-reminder>")}return Q}function vz(J){if(!J||typeof J!=="object")return"";let Z=J,Q=[];for(let z of["command","pattern","file_path","path","prompt","description","query","url","skill"]){let X=Z[z];if(typeof X==="string")Q.push(X)}for(let z of["args","files"]){let X=Z[z];if(Array.isArray(X)&&X.every((W)=>typeof W==="string"))Q.push(X.join(" "))}return Q.join(`
|
|
7
|
+
`)}function yz(J){if(!J||typeof J!=="object")return typeof J==="string"?J:"";let Z=J;if(typeof Z.stdout==="string"){let z=typeof Z.stderr==="string"?Z.stderr:"";return Z.stdout+(z?`
|
|
8
|
+
`+z:"")}if(Z.file&&typeof Z.file==="object"&&typeof Z.file.content==="string")return Z.file.content;let Q=[];for(let z of["content","output","result","text","message"]){let X=Z[z];if(typeof X==="string")Q.push(X)}for(let z of["filenames","lines","results"]){let X=Z[z];if(Array.isArray(X)&&X.every((W)=>typeof W==="string"))Q.push(X.join(`
|
|
9
|
+
`))}return Q.join(`
|
|
10
|
+
`)}var _J="</system-reminder>",kJ,SJ;var IZ=L0(()=>{AZ();kJ=new Set([IJ,TJ]),SJ=new WeakMap});function xJ(J){let Z=RJ.c(5),{message:Q,isTranscriptMode:z}=J;if(!(z&&Q.type==="assistant"&&Q.message.model&&Q.message.content.some(_z)))return null;let W=PZ(Q.message.model)+8,q;if(Z[0]!==Q.message.model)q=B(g,{dimColor:!0,children:Q.message.model}),Z[0]=Q.message.model,Z[1]=q;else q=Z[1];let V;if(Z[2]!==W||Z[3]!==q)V=B(b,{minWidth:W,children:q}),Z[2]=W,Z[3]=q,Z[4]=V;else V=Z[4];return V}function _z(J){return J.type==="text"}var RJ;var $J=L0(()=>{hJ();f0();F0();RJ=w0(u0(),1)});function pJ(J){let Z=uJ.c(10),{message:Q,isTranscriptMode:z}=J;if(!(z&&Q.timestamp&&Q.type==="assistant"&&Q.message.content.some(kz)))return null;let W,q,V;if(Z[0]!==Q.timestamp)q=new Date(Q.timestamp).toLocaleTimeString("en-US",{hour:"2-digit",minute:"2-digit",hour12:!0}),W=b,V=PZ(q),Z[0]=Q.timestamp,Z[1]=W,Z[2]=q,Z[3]=V;else W=Z[1],q=Z[2],V=Z[3];let Y;if(Z[4]!==q)Y=B(g,{dimColor:!0,children:q}),Z[4]=q,Z[5]=Y;else Y=Z[5];let K;if(Z[6]!==W||Z[7]!==V||Z[8]!==Y)K=B(W,{minWidth:V,children:Y}),Z[6]=W,Z[7]=V,Z[8]=Y,Z[9]=K;else K=Z[9];return K}function kz(J){return J.type==="text"}var uJ;var fJ=L0(()=>{hJ();f0();F0();uJ=w0(u0(),1)});function rJ(J,Z,Q,z){for(let X=Z+1;X<J.length;X++){let W=J[X];if(W?.type==="assistant"){let q=W.message.content[0];if(q?.type==="thinking"||q?.type==="redacted_thinking")continue;if(q?.type==="tool_use"){if(TZ(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],V=q?.type==="tool_use"?q.input:void 0;if(TZ(W.toolName,V,Q).isCollapsible)continue}return!0}return!1}function Iz(J){let Z=iJ.c(64),{message:Q,isUserContinuation:z,hasContentAfter:X,tools:W,commands:q,verbose:V,inProgressToolUseIDs:Y,streamingToolUseIDs:K,screen:F,canAnimate:j,onOpenRateLimitOptions:v,lastThinkingBlockId:U,latestBashOutputUUID:I,columns:e,isLoading:d,lookups:O}=J,C=F==="transcript",_=Q.type==="grouped_tool_use",N=Q.type==="collapsed_read_search",P;if(Z[0]!==X||Z[1]!==Y||Z[2]!==N||Z[3]!==d||Z[4]!==Q)P=N&&(hZ(Q,Y)||d&&!X),Z[0]=X,Z[1]=Y,Z[2]=N,Z[3]=d,Z[4]=Q,Z[5]=P;else P=Z[5];let f=P,Z0;if(Z[6]!==N||Z[7]!==_||Z[8]!==Q)Z0=_?Q.displayMessage:N?cJ(Q):Q,Z[6]=N,Z[7]=_,Z[8]=Q,Z[9]=Z0;else Z0=Z[9];let M=Z0,k;if(Z[10]!==N||Z[11]!==_||Z[12]!==O||Z[13]!==Q)k=_||N?[]:JQ(Q,O),Z[10]=N,Z[11]=_,Z[12]=O,Z[13]=Q,Z[14]=k;else k=Z[14];let H0=k,Y0;if(Z[15]!==Y||Z[16]!==N||Z[17]!==_||Z[18]!==O||Z[19]!==Q||Z[20]!==F||Z[21]!==K){let S=_||N?dJ:ZQ(Q,O);Y0=sJ(Q,K,Y,S,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 i=Y0,h=!1;if(j)if(_){let S;if(Z[23]!==Y||Z[24]!==Q.messages){let X0;if(Z[26]!==Y)X0=(w)=>{let D=w.message.content[0];return D?.type==="tool_use"&&Y.has(D.id)},Z[26]=Y,Z[27]=X0;else X0=Z[27];S=Q.messages.some(X0),Z[23]=Y,Z[24]=Q.messages,Z[25]=S}else S=Z[25];h=S}else if(N){let S;if(Z[28]!==Y||Z[29]!==Q)S=hZ(Q,Y),Z[28]=Y,Z[29]=Q,Z[30]=S;else S=Z[30];h=S}else{let S;if(Z[31]!==Y||Z[32]!==Q){let X0=g0(Q);S=!X0||Y.has(X0),Z[31]=Y,Z[32]=Q,Z[33]=S}else S=Z[33];h=S}let Q0;if(Z[34]!==M||Z[35]!==C)Q0=C&&M.type==="assistant"&&M.message.content.some(Tz)&&(M.timestamp||M.message.model),Z[34]=M,Z[35]=C,Z[36]=Q0;else Q0=Z[36];let J0=Q0,z0=!J0,O0=J0?void 0:e,T;if(Z[37]!==q||Z[38]!==Y||Z[39]!==f||Z[40]!==i||Z[41]!==C||Z[42]!==z||Z[43]!==U||Z[44]!==I||Z[45]!==O||Z[46]!==Q||Z[47]!==v||Z[48]!==H0||Z[49]!==h||Z[50]!==z0||Z[51]!==O0||Z[52]!==W||Z[53]!==V)T=B(lJ,{message:Q,lookups:O,addMargin:z0,containerWidth:O0,tools:W,commands:q,verbose:V,inProgressToolUseIDs:Y,progressMessagesForMessage:H0,shouldAnimate:h,shouldShowDot:!0,isTranscriptMode:C,isStatic:i,onOpenRateLimitOptions:v,isActiveCollapsedGroup:f,isUserContinuation:z,lastThinkingBlockId:U,latestBashOutputUUID:I}),Z[37]=q,Z[38]=Y,Z[39]=f,Z[40]=i,Z[41]=C,Z[42]=z,Z[43]=U,Z[44]=I,Z[45]=O,Z[46]=Q,Z[47]=v,Z[48]=H0,Z[49]=h,Z[50]=z0,Z[51]=O0,Z[52]=W,Z[53]=V,Z[54]=T;else T=Z[54];let l=T;if(!J0){let S;if(Z[55]!==l)S=B(ZZ,{children:l}),Z[55]=l,Z[56]=S;else S=Z[56];return S}let o;if(Z[57]!==M||Z[58]!==C)o=x(b,{flexDirection:"row",justifyContent:"flex-end",gap:1,marginTop:1,children:[B(pJ,{message:M,isTranscriptMode:C}),B(xJ,{message:M,isTranscriptMode:C})]}),Z[57]=M,Z[58]=C,Z[59]=o;else o=Z[59];let t;if(Z[60]!==e||Z[61]!==l||Z[62]!==o)t=B(ZZ,{children:x(b,{width:e,flexDirection:"column",children:[o,l]})}),Z[60]=e,Z[61]=l,Z[62]=o,Z[63]=t;else t=Z[63];return t}function Tz(J){return J.type==="text"}function hz(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 RZ(J).some((X)=>Z.has(X));let Q=g0(J);return!!Q&&Z.has(Q)}function Rz(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 RZ(J).every((X)=>Z.has(X));if(J.type==="assistant"){let z=J.message.content[0];if(z?.type==="server_tool_use")return Z.has(z.id)}let Q=g0(J);return!Q||Z.has(Q)}function xz(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&&nJ(Z.message))return!1;let X=hz(J.message,J.streamingToolUseIDs),W=Rz(J.message,J.lookups.resolvedToolUseIDs);if(X||!W)return!1;return!0}var iJ,aJ,oJ;var tJ=L0(()=>{f0();gJ();AZ();Sz();$J();eJ();fJ();mJ();F0();iJ=w0(u0(),1),aJ=w0(I0(),1);oJ=aJ.memo(Iz,xz)});import{relative as gz}from"path";function YQ(J){return oz.filter((Z)=>Z.isActive(J))}var mz,nz,lz,iz,az,rz,oz;var VQ=L0(()=>{f0();HQ();XJ();uz();$z();pz();cz();dz();fz();F0();mz={id:"large-memory-files",type:"warning",isActive:(J)=>fZ(J.memoryFiles).length>0,render:(J)=>{let Z=fZ(J.memoryFiles);return B(p0,{children:Z.map((Q)=>{let z=Q.path.startsWith(xZ())?gz(xZ(),Q.path):Q.path;return x(b,{flexDirection:"row",children:[B(g,{color:"warning",children:y0.warning}),x(g,{color:"warning",children:["Large ",B(g,{bold:!0,children:z})," will impact performance (",JZ(Q.content.length)," chars >"," ",JZ(BQ),")",B(g,{dimColor:!0,children:" · /memory to edit"})]})]},Q.path)})})}},nz={id:"claude-ai-external-token",type:"warning",isActive:()=>{let J=QZ();return zQ()&&(J.source==="ANTHROPIC_AUTH_TOKEN"||J.source==="apiKeyHelper")},render:()=>{let J=QZ();return x(b,{flexDirection:"row",marginTop:1,children:[B(g,{color:"warning",children:y0.warning}),x(g,{color:"warning",children:["Auth conflict: Using ",J.source," instead of Claude account subscription token. Either unset ",J.source,", or run `claude /logout`."]})]})}},lz={id:"api-key-conflict",type:"warning",isActive:()=>{let{source:J}=zZ({skipRetrievingKeyFromApiKeyHelper:!0});return!!QQ()&&(J==="ANTHROPIC_API_KEY"||J==="apiKeyHelper")},render:()=>{let{source:J}=zZ({skipRetrievingKeyFromApiKeyHelper:!0});return x(b,{flexDirection:"row",marginTop:1,children:[B(g,{color:"warning",children:y0.warning}),x(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}=zZ({skipRetrievingKeyFromApiKeyHelper:!0}),Z=QZ();return J!=="none"&&Z.source!=="none"&&!(J==="apiKeyHelper"&&Z.source==="apiKeyHelper")},render:()=>{let{source:J}=zZ({skipRetrievingKeyFromApiKeyHelper:!0}),Z=QZ();return x(b,{flexDirection:"column",marginTop:1,children:[x(b,{flexDirection:"row",children:[B(g,{color:"warning",children:y0.warning}),x(g,{color:"warning",children:["Auth conflict: Both a token (",Z.source,") and an API key (",J,") are set. This may lead to unexpected behavior."]})]}),x(b,{flexDirection:"column",marginLeft:3,children:[x(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"]}),x(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.`]})]})]})}},az={id:"large-agent-descriptions",type:"warning",isActive:(J)=>{return pZ(J.agentDefinitions)>uZ},render:(J)=>{let Z=pZ(J.agentDefinitions);return x(b,{flexDirection:"row",children:[B(g,{color:"warning",children:y0.warning}),x(g,{color:"warning",children:["Large cumulative agent descriptions will impact performance (~",JZ(Z)," tokens >"," ",JZ(uZ),")",B(g,{dimColor:!0,children:" · /agents to manage"})]})]})}},rz={id:"jetbrains-plugin-install",type:"info",isActive:(J)=>{if(!WQ())return!1;if(!(J.config.autoInstallIdeExtension??!0))return!1;let Q=$Z();return Q!==null&&!XQ(Q)},render:()=>{let J=$Z(),Z=qQ(J);return x(b,{flexDirection:"row",gap:1,marginLeft:1,children:[B(g,{color:"ide",children:y0.arrowUp}),x(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"})]})]})}},oz=[mz,az,nz,lz,iz,rz]});async function tz(){if(XZ)return XZ;return XZ=NQ().then((J)=>{WZ=J}).finally(()=>{XZ=null}),XZ}function FQ(J){let Z=LQ.c(8),{agentDefinitions:Q}=J===void 0?{}:J,[z,X]=t0.useState(WZ),W;if(Z[0]===Symbol.for("react.memo_cache_sentinel"))W=()=>{if(WZ.length>0){X(WZ);return}tz().then(()=>{X(WZ)})},Z[0]=W;else W=Z[0];t0.useEffect(W,[W]);let V={config:DZ(),agentDefinitions:Q,memoryFiles:z},Y=YQ(V);if(Y.length===0)return null;let K=b,F="column",j=1,v=Y.map((I)=>B(t0.Fragment,{children:I.render(V)},I.id)),U;if(Z[1]!==K||Z[2]!==v)U=B(K,{flexDirection:F,paddingLeft:j,children:v}),Z[1]=K,Z[2]=v,Z[3]=U;else U=Z[3];return U}var LQ,t0,WZ,XZ=null;var KQ=L0(()=>{f0();HQ();GQ();VQ();F0();LQ=w0(u0(),1),t0=w0(I0(),1),WZ=[]});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),j=m.useRef(null),v=m.useRef(0);if(K.current!==Q){let w=K.current/Q;K.current=Q;for(let[D,R]of z.current)z.current.set(D,Math.max(1,Math.round(R*w)));X.current++,F.current=!0,v.current=2}let U=v.current>0?j.current:null,I=m.useRef(0),e=m.useRef(null),d=m.useCallback((w)=>J.current?.subscribe(w)??JX,[J]);m.useSyncExternalStore(d,()=>{let w=J.current;if(!w)return NaN;let D=w.getScrollTop()+w.getPendingDelta(),R=Math.floor(D/ZX);return w.isSticky()?~R:R});let O=J.current?.getScrollTop()??-1,C=J.current?.getPendingDelta()??0,_=J.current?.getViewportHeight()??0,N=J.current?.isSticky()??!0;m.useMemo(()=>{let w=new Set(Z),D=!1;for(let R of z.current.keys())if(!w.has(R))z.current.delete(R),D=!0;for(let R of Y.current.keys())if(!w.has(R))Y.current.delete(R);if(D)X.current++},[Z]);let P=Z.length;if(q.current.version!==X.current||q.current.n!==P){let w=q.current.arr.length>=P+1?q.current.arr:new Float64Array(P+1);w[0]=0;for(let D=0;D<P;D++)w[D+1]=w[D]+(z.current.get(Z[D])??sz);q.current={arr:w,version:X.current,n:P}}let f=q.current.arr,Z0=f[P],M,k;if(U)[M,k]=U,M=Math.min(M,P),k=Math.min(k,P);else if(_===0||O<0)M=Math.max(0,P-ez),k=P;else{if(N){let V0=_+s0;M=P;while(M>0&&Z0-f[M-1]<V0)M--;k=P}else{let V0=I.current,G0=_*3,U0=Math.min(O,O+C),n0=Math.max(O,O+C),_0=n0-U0,P0=_0>G0?C<0?n0-G0:U0:U0,T0=P0+Math.min(_0,G0),l0=Math.max(0,P0-V0),h0=T0-V0,k0=l0-s0;{let H=0,G=P;while(H<G){let A=H+G>>1;if(f[A+1]<=k0)H=A+1;else G=A}M=H}{let H=j.current;if(H&&H[0]<M)for(let G=H[0];G<Math.min(M,H[1]);G++){let A=Z[G];if(V.current.has(A)&&!z.current.has(A)){M=G;break}}}let i0=_+2*s0,a0=Math.min(P,M+qZ),r0=0;k=M;while(k<a0&&(r0<i0||f[k]<h0+_+s0))r0+=z.current.get(Z[k])??dZ,k++}let w=_+2*s0,D=Math.max(0,k-qZ),R=0;for(let V0=M;V0<k;V0++)R+=z.current.get(Z[V0])??dZ;while(M>D&&R<w)M--,R+=z.current.get(Z[M])??dZ;let s=j.current,A0=Math.abs(O-W.current)+Math.abs(C);if(s&&A0>_*2){let[V0,G0]=s;if(M<V0-YZ)M=V0-YZ;if(k>G0+YZ)k=G0+YZ;if(M>k)k=Math.min(M+YZ,P)}W.current=O}if(v.current>0)v.current--;else j.current=[M,k];let H0=m.useDeferredValue(M),Y0=m.useDeferredValue(k),i=M<H0?H0:M,h=k>Y0?Y0:k;if(i>h||N)i=M,h=k;if(C>0)h=k;if(h-i>qZ){let w=(f[i]+f[h])/2;if(O-I.current<w)h=i+qZ;else i=h-qZ}let Q0=I.current,J0=f[i],z0=i===0?0:J0+Q0,O0=h===P?1/0:Math.max(J0,f[h]-_)+Q0;m.useLayoutEffect(()=>{if(N)J.current?.setClampBounds(void 0,void 0);else J.current?.setClampBounds(z0,O0)}),m.useLayoutEffect(()=>{let w=e.current?.yogaNode;if(w&&w.getComputedWidth()>0)I.current=w.getComputedTop();if(F.current){F.current=!1;return}let D=!1;for(let[R,s]of V.current){let A0=s.yogaNode;if(!A0)continue;let V0=A0.getComputedHeight(),G0=z.current.get(R);if(V0>0){if(G0!==V0)z.current.set(R,V0),D=!0}else if(A0.getComputedWidth()>0&&G0!==0)z.current.set(R,0),D=!0}if(D)X.current++});let T=m.useCallback((w)=>{let D=Y.current.get(w);if(!D)D=(R)=>{if(R)V.current.set(w,R);else{let s=V.current.get(w)?.yogaNode;if(s&&!F.current){let A0=s.getComputedHeight();if((A0>0||s.getComputedWidth()>0)&&z.current.get(w)!==A0)z.current.set(w,A0),X.current++}V.current.delete(w)}},Y.current.set(w,D);return D},[]),l=m.useCallback((w)=>{let D=V.current.get(Z[w])?.yogaNode;if(!D||D.getComputedWidth()===0)return-1;return D.getComputedTop()},[Z]),o=m.useCallback((w)=>V.current.get(Z[w])??null,[Z]),t=m.useCallback((w)=>z.current.get(Z[w]),[Z]),S=m.useCallback((w)=>{let D=q.current;if(w<0||w>=D.n)return;J.current?.scrollTo(D.arr[w]+I.current)},[J]),X0=Z0-f[h];return{range:[i,h],topSpacer:J0,bottomSpacer:X0,measureRef:T,spacerRef:e,offsets:f,getItemTop:l,getItemElement:o,getItemHeight:t,scrollToIndex:S}}var m,sz=3,s0=80,ez=30,ZX,dZ=1,qZ=300,YZ=25,JX=()=>{};var OQ=L0(()=>{m=w0(I0(),1),ZX=s0>>1});function WX(J){let Z=AQ.get(J);if(Z!==void 0)return Z;let Q=jZ(J);return AQ.set(J,Q),Q}function YX(J){let Z=jQ.get(J);if(Z!==void 0)return Z;let Q=VX(J);return jQ.set(J,Q),Q}function VX(J){let Z=null;if(J.type==="user"){if(J.isMeta||J.isVisibleInTranscriptOnly)return null;let z=J.message.content[0];if(z?.type!=="text")return null;Z=z.text}else if(J.type==="attachment"&&J.attachment.type==="queued_command"&&J.attachment.commandMode!=="task-notification"&&!J.attachment.isMeta){let z=J.attachment.prompt;Z=typeof z==="string"?z:z.flatMap((X)=>X.type==="text"?[X.text]:[]).join(`
|
|
11
|
+
`)}if(Z===null)return null;let Q=EQ(Z);if(Q.startsWith("<")||Q==="")return null;return Q}function BX(J){let Z=CQ.c(30),{itemKey:Q,msg:z,idx:X,measureRef:W,expanded:q,hovered:V,clickable:Y,onClickK:K,onEnterK:F,onLeaveK:j,renderItem:v}=J,U;if(Z[0]!==Q||Z[1]!==W)U=W(Q),Z[0]=Q,Z[1]=W,Z[2]=U;else U=Z[2];let I=q?"userMessageBackgroundHover":void 0,e=q?1:void 0,d;if(Z[3]!==Y||Z[4]!==z||Z[5]!==K)d=Y?(Z0)=>K(z,Z0.cellIsBlank):void 0,Z[3]=Y,Z[4]=z,Z[5]=K,Z[6]=d;else d=Z[6];let O;if(Z[7]!==Y||Z[8]!==Q||Z[9]!==F)O=Y?()=>F(Q):void 0,Z[7]=Y,Z[8]=Q,Z[9]=F,Z[10]=O;else O=Z[10];let C;if(Z[11]!==Y||Z[12]!==Q||Z[13]!==j)C=Y?()=>j(Q):void 0,Z[11]=Y,Z[12]=Q,Z[13]=j,Z[14]=C;else C=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 P;if(Z[19]!==_||Z[20]!==N)P=B(DQ.Provider,{value:_,children:N}),Z[19]=_,Z[20]=N,Z[21]=P;else P=Z[21];let f;if(Z[22]!==U||Z[23]!==I||Z[24]!==e||Z[25]!==d||Z[26]!==O||Z[27]!==C||Z[28]!==P)f=B(b,{ref:U,flexDirection:"column",backgroundColor:I,paddingBottom:e,onClick:d,onMouseEnter:O,onMouseLeave:C,children:P}),Z[22]=U,Z[23]=I,Z[24]=e,Z[25]=d,Z[26]=O,Z[27]=C,Z[28]=P,Z[29]=f;else f=Z[29];return f}function vQ({messages:J,scrollRef:Z,columns:Q,itemKey:z,renderItem:X,onItemClick:W,isItemClickable:q,isItemExpanded:V,extractSearchText:Y=WX,trackStickyPrompt:K,selectedIndex:F,cursorNavRef:j,setCursor:v,jumpRef:U,onSearchMatchesChange:I,scanElement:e,setPositions:d}){let O=y.useRef([]),C=y.useRef(J),_=y.useRef(z);if(_.current!==z||J.length<O.current.length||J[0]!==C.current[0])O.current=J.map((H)=>z(H));else for(let H=O.current.length;H<J.length;H++)O.current.push(z(J[H]));C.current=J,_.current=z;let N=O.current,{range:P,topSpacer:f,bottomSpacer:Z0,measureRef:M,spacerRef:k,offsets:H0,getItemTop:Y0,getItemElement:i,getItemHeight:h,scrollToIndex:Q0}=wQ(Z,N,Q),[J0,z0]=P,O0=y.useCallback((H)=>{if(h(H)===0)return!1;return UQ(J[H])},[h,J]);y.useImperativeHandle(j,()=>{let H=(u)=>v?.({uuid:u.uuid,msgType:u.type,expanded:!1,toolName:MQ(u)?.name}),G=F??-1,A=(u,c,r=O0)=>{for(let n=u;n>=0&&n<J.length;n+=c)if(r(n))return H(J[n]),!0;return!1},$=(u)=>O0(u)&&J[u].type==="user";return{enterCursor:()=>A(J.length-1,-1,$),navigatePrev:()=>A(G-1,-1),navigateNext:()=>{if(A(G+1,1))return;Z.current?.scrollToBottom(),v?.(null)},navigatePrevUser:()=>A(G-1,-1,$),navigateNextUser:()=>A(G+1,1,$),navigateTop:()=>A(0,1),navigateBottom:()=>A(J.length-1,-1),getSelected:()=>G>=0?J[G]??null:null}},[J,F,v,O0]);let T=y.useRef({offsets:H0,start:J0,getItemElement:i,getItemTop:Y0,messages:J,scrollToIndex:Q0});T.current={offsets:H0,start:J0,getItemElement:i,getItemTop:Y0,messages:J,scrollToIndex:Q0},y.useEffect(()=>{if(F===void 0)return;let H=T.current,G=H.getItemElement(F);if(G)Z.current?.scrollToElement(G,1);else H.scrollToIndex(F)},[F,Z]);let l=y.useRef(null),o=y.useRef({msgIdx:-1,positions:[]}),t=y.useRef(-1),S=y.useRef(0),X0=y.useRef(0),w=y.useRef(()=>{}),D=y.useRef(()=>{}),R=y.useRef({matches:[],ptr:0,screenOrd:0,prefixSum:[]}),s=y.useRef(-1),A0=y.useRef(!1);function V0(H){let G=T.current.getItemTop(H);return Math.max(0,G-cZ)}function G0(H){let G=Z.current,{msgIdx:A,positions:$}=o.current;if(!G||$.length===0||A<0){d?.(null);return}let u=Math.max(0,Math.min(H,$.length-1)),c=$[u],r=T.current.getItemTop(A),n=G.getViewportTop(),W0=r-G.getScrollTop(),b0=G.getViewportHeight(),j0=n+W0+c.row;if(j0<n||j0>=n+b0)G.scrollTo(Math.max(0,r+c.row-cZ)),W0=r-G.getScrollTop(),j0=n+W0+c.row;d?.({positions:$,rowOffset:n+W0,currentIdx:u});let E0=R.current,D0=E0.prefixSum.at(-1)??0,M0=(E0.prefixSum[E0.ptr]??0)+u+1;I?.(D0,M0),m0(`highlight(i=${A}, ord=${u}/${$.length}): pos={row:${c.row},col:${c.col}} lo=${W0} screenRow=${j0} badge=${M0}/${D0}`)}D.current=G0;let[U0,n0]=y.useState(0),_0=y.useCallback(()=>n0((H)=>H+1),[]);y.useEffect(()=>{let H=l.current;if(!H)return;let{idx:G,wantLast:A,tries:$}=H,u=Z.current;if(!u)return;let{getItemElement:c,getItemTop:r,scrollToIndex:n}=T.current,W0=c(G),b0=W0?.yogaNode?.getComputedHeight()??0;if(!W0||b0===0){if($>1){l.current=null,m0(`seek(i=${G}): no mount after scrollToIndex, skip`),w.current(A?-1:1);return}l.current={idx:G,wantLast:A,tries:$+1},n(G),_0();return}l.current=null,u.scrollTo(Math.max(0,r(G)-cZ));let j0=e?.(W0)??[];if(o.current={msgIdx:G,positions:j0},m0(`seek(i=${G} t=${$}): ${j0.length} positions`),j0.length===0){if(++S.current>20){S.current=0;return}w.current(A?-1:1);return}S.current=0;let E0=A?j0.length-1:0;R.current.screenOrd=E0,t.current=-1,D.current(E0);let D0=X0.current;if(D0)X0.current=0,w.current(D0)},[U0]);function P0(H,G){let A=Z.current;if(!A)return;let $=T.current,{getItemElement:u,scrollToIndex:c}=$;if(H<0||H>=$.messages.length)return;d?.(null),o.current={msgIdx:-1,positions:[]},l.current={idx:H,wantLast:G,tries:0};let r=u(H),n=r?.yogaNode?.getComputedHeight()??0;if(r&&n>0)A.scrollTo(V0(H));else c(H);_0()}function T0(H){let G=R.current,{matches:A,prefixSum:$}=G,u=$.at(-1)??0;if(A.length===0)return;if(l.current){X0.current=H;return}if(t.current<0)t.current=G.ptr;let{positions:c}=o.current,r=G.screenOrd+H;if(r>=0&&r<c.length){G.screenOrd=r,G0(r),t.current=-1;return}let n=(G.ptr+H+A.length)%A.length;if(n===t.current){d?.(null),t.current=-1,m0(`step: wraparound at ptr=${n}, all ${A.length} msgs phantoms`);return}G.ptr=n,G.screenOrd=0,P0(A[n],H<0);let W0=H<0?$[n+1]??u:$[n]+1;I?.(u,W0)}w.current=T0,y.useImperativeHandle(U,()=>({jumpToIndex:(H)=>{let G=Z.current;if(G)G.scrollTo(V0(H))},setSearchQuery:(H)=>{l.current=null,o.current={msgIdx:-1,positions:[]},t.current=-1,d?.(null);let G=H.toLowerCase(),A=[],$=[0];if(G){let D0=T.current.messages;for(let M0=0;M0<D0.length;M0++){let C0=Y(D0[M0]),R0=C0.indexOf(G),L=0;while(R0>=0)L++,R0=C0.indexOf(G,R0+G.length);if(L>0)A.push(M0),$.push($.at(-1)+L)}}let u=$.at(-1),c=0,r=Z.current,{offsets:n,start:W0,getItemTop:b0}=T.current,j0=b0(W0),E0=j0>=0?j0-n[W0]:0;if(A.length>0&&r){let D0=s.current>=0?s.current:r.getScrollTop(),M0=1/0;for(let C0=0;C0<A.length;C0++){let R0=Math.abs(E0+n[A[C0]]-D0);if(R0<=M0)M0=R0,c=C0}m0(`setSearchQuery('${H}'): ${A.length} msgs · ptr=${c} msgIdx=${A[c]} curTop=${D0} origin=${E0}`)}if(R.current={matches:A,ptr:c,screenOrd:0,prefixSum:$},A.length>0)P0(A[c],!0);else if(s.current>=0&&r)r.scrollTo(s.current);I?.(u,A.length>0?$[c+1]??u:0)},nextMatch:()=>T0(1),prevMatch:()=>T0(-1),setAnchor:()=>{let H=Z.current;if(H)s.current=H.getScrollTop()},disarmSearch:()=>{d?.(null),l.current=null,o.current={msgIdx:-1,positions:[]},t.current=-1},warmSearchIndex:async()=>{if(A0.current)return 0;let H=T.current.messages,G=500,A=0,$=performance.now();for(let c=0;c<H.length;c+=G){await PQ(0);let r=performance.now(),n=Math.min(c+G,H.length);for(let W0=c;W0<n;W0++)Y(H[W0]);A+=performance.now()-r}let u=Math.round(performance.now()-$);return m0(`warmSearchIndex: ${H.length} msgs · work=${Math.round(A)}ms wall=${u}ms chunks=${Math.ceil(H.length/G)}`),A0.current=!0,Math.round(A)}}),[Z]);let[l0,h0]=y.useState(null),k0=y.useRef({onItemClick:W,setHoveredKey:h0});k0.current={onItemClick:W,setHoveredKey:h0};let i0=y.useCallback((H,G)=>{let A=k0.current;if(!G&&A.onItemClick)A.onItemClick(H)},[]),a0=y.useCallback((H)=>{k0.current.setHoveredKey(H)},[]),r0=y.useCallback((H)=>{k0.current.setHoveredKey((G)=>G===H?null:G)},[]);return x(p0,{children:[B(b,{ref:k,height:f,flexShrink:0}),J.slice(J0,z0).map((H,G)=>{let A=J0+G,$=N[A],u=!!W&&(q?.(H)??!0),c=u&&l0===$,r=V?.(H);return B(BX,{itemKey:$,msg:H,idx:A,measureRef:M,expanded:r,hovered:c,clickable:u,onClickK:i0,onEnterK:a0,onLeaveK:r0,renderItem:X},$)}),Z0>0&&B(b,{height:Z0,flexShrink:0}),K&&B(GX,{messages:J,start:J0,end:z0,offsets:H0,getItemTop:Y0,getItemElement:i,scrollRef:Z})]})}function GX({messages:J,start:Z,end:Q,offsets:z,getItemTop:X,getItemElement:W,scrollRef:q}){let{setStickyPrompt:V}=y.useContext(_Z),Y=y.useCallback((N)=>q.current?.subscribe(N)??HX,[q]);y.useSyncExternalStore(Y,()=>{let N=q.current;if(!N)return NaN;let P=N.getScrollTop()+N.getPendingDelta();return N.isSticky()?-1-P:P});let K=q.current?.isSticky()??!0,F=Math.max(0,(q.current?.getScrollTop()??0)+(q.current?.getPendingDelta()??0)),j=Z,v=-1;for(let N=Q-1;N>=Z;N--){let P=X(N);if(P>=0){if(P<F)break;v=P}j=N}let U=-1,I=null;if(j>0&&!K)for(let N=j-1;N>=0;N--){let P=YX(J[N]);if(P===null)continue;let f=X(N);if(f>=0&&f+1>=F)continue;U=N,I=P;break}let e=v>=0?v-z[j]:0,d=U>=0?Math.max(0,e+z[U]):-1,O=y.useRef({idx:-1,tries:0}),C=y.useRef("none"),_=y.useRef(-1);return y.useEffect(()=>{if(O.current.idx>=0)return;if(C.current==="armed"){C.current="force";return}let N=C.current==="force";if(C.current="none",!N&&_.current===U)return;if(_.current=U,I===null){V(null);return}let P=I.trimStart(),f=P.search(/\n\s*\n/),Z0=(f>=0?P.slice(0,f):P).slice(0,qX).replace(/\s+/g," ").trim();if(Z0===""){V(null);return}let M=U,k=d;V({text:Z0,scrollTo:()=>{V("clicked"),C.current="armed";let H0=W(M);if(H0)q.current?.scrollToElement(H0,1);else q.current?.scrollTo(k),O.current={idx:M,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 CQ,y,cZ=3,AQ,qX=500,jQ,HX=()=>{};var yQ=L0(()=>{OQ();f0();XX();FJ();QX();zX();IZ();bQ();F0();CQ=w0(u0(),1),y=w0(I0(),1),AQ=new WeakMap;jQ=new WeakMap});function yX(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 _X(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 IX(J,Z,Q=kX,z=SX){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 kQ(J){return(J.type==="assistant"||J.type==="user"?g0(J):null)??J.uuid}function RX(J,Z){if(J.size!==Z.size)return!1;for(let Q of J)if(!Z.has(Q))return!1;return!0}function sJ(J,Z,Q,z,X,W){if(X==="transcript")return!0;switch(J.type){case"attachment":case"user":case"assistant":{if(J.type==="assistant"){let V=J.message.content[0];if(V?.type==="server_tool_use")return W.resolvedToolUseIDs.has(V.id)}let q=g0(J);if(!q)return!0;if(Z.has(q))return!1;if(Q.has(q))return!1;if(eQ(q,"PostToolUse",W))return!1;return KJ(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}return!1}var lQ,VZ,p,bX,CX=null,_Q=null,vX=null,gZ=30,kX=200,SX=50,TX=({messages:J,tools:Z,commands:Q,verbose:z,toolJSX:X,toolUseConfirmQueue:W,inProgressToolUseIDs:q,isMessageSelectorVisible:V,conversationId:Y,screen:K,streamingToolUses:F,showAllInTranscript:j=!1,agentDefinitions:v,onOpenRateLimitOptions:U,hideLogo:I=!1,isLoading:e,hidePastThinking:d=!1,streamingThinking:O,hasStreamingText:C=!1,isBriefOnly:_=!1,unseenDivider:N,scrollRef:P,trackStickyPrompt:f,jumpRef:Z0,onSearchMatchesChange:M,scanElement:k,setPositions:H0,disableRenderCap:Y0=!1,cursor:i=null,setCursor:h,cursorNavRef:Q0,renderRange:J0})=>{let{columns:z0}=KZ(),O0=xQ("transcript:toggleShowAll","Transcript","Ctrl+E"),T=p.useMemo(()=>lZ(J).filter(iQ),[J]),l=p.useMemo(()=>{if(!O)return!1;if(O.isStreaming)return!0;if(O.streamingEndedAt)return Date.now()-O.streamingEndedAt<30000;return!1},[O]),o=p.useMemo(()=>{if(!d)return null;if(l)return"streaming";for(let L=T.length-1;L>=0;L--){let E=T[L];if(E?.type==="assistant"){let B0=E.message.content;for(let a=B0.length-1;a>=0;a--)if(B0[a]?.type==="thinking")return`${E.uuid}:${a}`}else if(E?.type==="user"){if(!E.message.content.some((a)=>a.type==="tool_result"))return"no-thinking"}}return null},[T,d,l]),t=p.useMemo(()=>{for(let L=T.length-1;L>=0;L--){let E=T[L];if(E?.type==="user"){let B0=E.message.content;for(let a of B0)if(a.type==="text"){let N0=a.text;if(N0.startsWith("<bash-stdout")||N0.startsWith("<bash-stderr"))return E.uuid}}}return null},[T]),S=p.useMemo(()=>Zz(T),[T]),X0=p.useMemo(()=>F.filter((L)=>!q.has(L.contentBlock.id)&&!S.has(L.contentBlock.id)),[F,q,S]),w=p.useMemo(()=>X0.flatMap((L)=>{let E=nQ({content:[L.contentBlock]});return E.uuid=hQ(L.contentBlock.id,0),lZ([E])}),[X0]),D=K==="transcript",R=p.useMemo(()=>IQ(process.env.CLAUDIN_DISABLE_VIRTUAL_SCROLL),[]),s=P!=null&&!R,A0=D&&!j&&!s,V0=p.useRef(null),{collapsed:G0,lookups:U0,hasTruncatedMessages:n0,hiddenMessageCount:_0}=p.useMemo(()=>{let L=z||c0()?T:aQ(T,{includeSnipped:!0}),E=oQ(L.filter((S0)=>S0.type!=="progress").filter((S0)=>!LZ(S0)).filter((S0)=>rQ(S0,D)),w),B0=[_Q,vX].filter((S0)=>S0!==null),a=[_Q].filter((S0)=>S0!==null),N0=B0.length>0&&!D?_?yX(E,B0):a.length>0?_X(E,a):E:E,v0=A0?N0.slice(-gZ):N0,BZ=A0&&N0.length>gZ,{messages:d0}=vJ(v0,Z,z),Jz=AJ(DJ(EJ(gQ(mQ(d0,Z)))),z),Qz=tQ(T,v0),zz=E.length-gZ;return{collapsed:Jz,lookups:Qz,hasTruncatedMessages:BZ,hiddenMessageCount:zz}},[z,T,D,w,A0,Z,_]),P0=p.useMemo(()=>{let E=!s&&!Y0?IX(G0,V0):0;return J0?G0.slice(J0[0],J0[1]):E>0?G0.slice(E):G0},[G0,J0,s,Y0]),T0=p.useMemo(()=>new Set(F.map((L)=>L.contentBlock.id)),[F]),l0=$Q((L)=>L.tasks),h0=U0.asyncLaunchedToolUseIDs,k0=p.useMemo(()=>{if(h0.size===0)return null;let L=new Set;for(let[E,B0]of h0){let a=l0?.[B0]?.status;if(a==="running"||a==="requested"||a==="queued")L.add(E)}return L.size>0?L:null},[l0,h0]),i0=U0.resolvedToolUseIDs,a0=p.useMemo(()=>sQ(q,i0,k0),[q,i0,k0]),r0=p.useMemo(()=>{if(!N)return-1;let L=N.firstUnseenUuid.slice(0,24);return P0.findIndex((E)=>E.uuid.slice(0,24)===L)},[N,P0]),H=p.useMemo(()=>{if(!i)return-1;return P0.findIndex((L)=>L.uuid===i.uuid)},[i,P0]),[G,A]=p.useState(()=>new Set),$=p.useCallback((L)=>{let E=kQ(L);A((B0)=>{let a=new Set(B0);if(a.has(E))a.delete(E);else a.add(E);return a})},[]),u=p.useCallback((L)=>G.size>0&&G.has(kQ(L)),[G]),c=p.useRef(U0);c.current=U0;let r=p.useCallback((L)=>{if(L.type==="collapsed_read_search")return!0;if(L.type==="assistant"){let N0=L.message.content[0];return N0!=null&&dQ(N0)&&N0.type==="advisor_tool_result"&&N0.content.type==="advisor_result"}if(L.type!=="user")return!1;let E=L.message.content[0];if(E?.type!=="tool_result"||E.is_error||!L.toolUseResult)return!1;let B0=c.current.toolUseByToolUseID.get(E.tool_use_id)?.name;return(B0?nZ(Z,B0):void 0)?.isResultTruncated?.(L.toolUseResult)??!1},[Z]),n=(!X||!!X.shouldContinueAnimation)&&!W.length&&!V,W0=a0.size>0,{progress:b0}=RQ(),j0=p.useRef(null),E0=DZ().terminalProgressBarEnabled&&!SQ()&&!(CX?.isProactiveActive()??!1);p.useEffect(()=>{let L=E0?W0?"indeterminate":"completed":null;if(j0.current===L)return;j0.current=L,b0(L)},[b0,E0,W0]),p.useEffect(()=>{return()=>b0(null)},[b0]);let D0=p.useCallback((L)=>`${L.uuid}-${Y}`,[Y]),M0=(L,E)=>{if(L.type==="progress")return null;let B0=E>0?P0[E-1]?.type:void 0,a=L.type==="user"&&B0==="user",N0=L.type==="collapsed_read_search"&&(C||rJ(P0,E,Z,T0)),v0=D0(L),BZ=B(oJ,{message:L,isUserContinuation:a,hasContentAfter:N0,tools:Z,commands:Q,verbose:z||u(L)||i?.expanded===!0&&E===H,inProgressToolUseIDs:a0,streamingToolUseIDs:T0,screen:K,canAnimate:n,onOpenRateLimitOptions:U,lastThinkingBlockId:o,latestBashOutputUUID:t,columns:z0,isLoading:e,lookups:U0},v0),d0=B(uQ.Provider,{value:E===H,children:BZ},v0);if(N&&E===r0)return[B(b,{marginTop:1,children:B(UZ,{title:`${N.count} new ${FZ(N.count,"message")}`,width:z0,color:"inactive"})},"unseen-divider"),d0];return d0},C0=p.useRef(new WeakMap),R0=p.useCallback((L)=>{let E=C0.current.get(L);if(E!==void 0)return E;let B0=jZ(L);if(L.type==="user"&&L.toolUseResult&&Array.isArray(L.message.content)){let N0=L.message.content.find((v0)=>v0.type==="tool_result");if(N0&&"tool_use_id"in N0){let v0=U0.toolUseByToolUseID.get(N0.tool_use_id),d0=(v0&&nZ(Z,v0.name))?.extractSearchText?.(L.toolUseResult);if(d0!==void 0)B0=d0}}let a=B0.toLowerCase();return C0.current.set(L,a),a},[Z,U0]);return x(p0,{children:[!I&&!(J0&&J0[0]>0)&&B(bX,{agentDefinitions:v}),n0&&B(UZ,{title:`${O0} to show ${mZ.bold(_0)} previous messages`,width:z0}),D&&j&&_0>0&&!Y0&&B(UZ,{title:`${O0} to hide ${mZ.bold(_0)} previous messages`,width:z0}),s?B(pQ.Provider,{value:!0,children:B(vQ,{messages:P0,scrollRef:P,columns:z0,itemKey:D0,renderItem:M0,onItemClick:$,isItemClickable:r,isItemExpanded:u,trackStickyPrompt:f,selectedIndex:H>=0?H:void 0,cursorNavRef:Q0,setCursor:h,jumpRef:Z0,onSearchMatchesChange:M,scanElement:k,setPositions:H0,extractSearchText:R0})}):P0.flatMap(M0),C&&!_&&B(hX,{}),l&&O&&!_&&B(b,{marginTop:1,children:B(cQ,{param:{type:"thinking",thinking:O.thinking},addMargin:!1,isTranscriptMode:!0,verbose:z,hideInTranscript:!1})})]})},hX=()=>{let J=iZ();if(!J)return null;return B(b,{alignItems:"flex-start",flexDirection:"row",marginTop:1,width:"100%",children:x(b,{flexDirection:"row",children:[B(b,{minWidth:2,children:B(g,{color:"text",children:TQ})}),B(b,{flexDirection:"column",children:B(fQ,{children:J})})]})})},a8;var eJ=L0(()=>{KX();NJ();LX();NX();YJ();OX();f0();AX();PX();wX();UX();jJ();UJ();EX();gJ();bJ();GQ();FX();yZ();yJ();AZ();WJ();IZ();jX();DX();aZ();tJ();bQ();MX();vZ();mJ();KQ();yQ();F0();lQ=w0(u0(),1),VZ=w0(I0(),1),p=w0(I0(),1),bX=VZ.memo(function(Z){let Q=lQ.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(ZZ,{children:x(b,{flexDirection:"column",gap:1,children:[X,B(VZ.Suspense,{fallback:null,children:B(FQ,{agentDefinitions:z})})]})}),Q[1]=z,Q[2]=W;else W=Q[2];return W});a8=VZ.memo(TX,(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(RX(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{e0 as ef,$X as ff,aZ as gf,fX as hf,dX as if,QJ as jf,qW as kf,YW as lf,VW as mf,FJ as nf,a8 as of,eJ as pf};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{Ii as Vq,Ji as fq}from"./cli-1.1.27-6dm0tj1c.mjs";import{SY as Pq,TY as mq,fZ as o,gZ as pq,mZ as Qq,oZ as Uq,pZ as Hq}from"./cli-1.1.27-9chfrr9e.mjs";import{F1 as M,H1 as g,g0 as Sq,k2 as Wq}from"./cli-1.1.27-6spv5ha8.mjs";import{U4 as Z,V4 as F,W4 as Jq}from"./cli-1.1.27-kgpk1m6k.mjs";import{X4 as _q}from"./cli-1.1.27-m5wtrd2b.mjs";import{dia as s,eia as jq}from"./cli-1.1.27-fw9r8cwg.mjs";import{Ita as Lq,Mta as wq}from"./cli-1.1.27-8vrv0ver.mjs";function lq(A){let q=C.c(25),{title:J,color:V,defaultTab:Q,children:L,hidden:G,useFullWidth:K,selectedTab:E,onTabChange:k,banner:T,disableNavigation:a,initialHeaderFocused:n,contentHeight:y,navFromContent:d}=A,Xq=n===void 0?!0:n,Yq=d===void 0?!1:d,{columns:t}=Pq(),X=L.map(Iq),e=Q?X.findIndex((U)=>Q===U[0]):0,x=E!==void 0,[Zq,kq]=P.useState(e!==-1?e:0),qq=x?X.findIndex((U)=>U[0]===E):-1,z=x?qq!==-1?qq:0:Zq,N=Uq(),[Y,v]=P.useState(Xq),O;if(q[0]===Symbol.for("react.memo_cache_sentinel"))O=()=>v(!0),q[0]=O;else O=q[0];let zq=O,R;if(q[1]===Symbol.for("react.memo_cache_sentinel"))R=()=>v(!1),q[1]=R;else R=q[1];let Eq=R,[Nq,Aq]=P.useState(0),w;if(q[2]===Symbol.for("react.memo_cache_sentinel"))w=()=>{return Aq(Cq),()=>Aq(gq)},q[2]=w;else w=q[2];let vq=w,j=Nq>0,_=(U)=>{let H=(z+X.length+U)%X.length,f=X[H]?.[0];if(x&&k&&f)k(f);else kq(H);v(!0)},b=!G&&!a&&Y,S;if(q[3]!==b)S={context:"Tabs",isActive:b},q[3]=b,q[4]=S;else S=q[4];o({"tabs:next":()=>_(1),"tabs:previous":()=>_(-1)},S);let W;if(q[5]!==Y||q[6]!==G||q[7]!==j)W=(U)=>{if(!Y||!j||G)return;if(U.key==="down")U.preventDefault(),v(!1)},q[5]=Y,q[6]=G,q[7]=j,q[8]=W;else W=q[8];let u=W,$=Yq&&!Y&&j&&!G&&!a,m;if(q[9]!==$)m={context:"Tabs",isActive:$},q[9]=$,q[10]=m;else m=q[10];o({"tabs:next":()=>{_(1),v(!0)},"tabs:previous":()=>{_(-1),v(!0)}},m);let Dq=J?s(J)+1:0,Mq=X.reduce(Fq,0),Bq=Dq+Mq,Gq=K?Math.max(0,t-Bq):0,B=K?t:void 0,h=M,Kq="column",yq=0,Oq=!0,c=N?0:void 0,r=!G&&F(M,{flexDirection:"row",gap:1,flexShrink:N?0:void 0,children:[J!==void 0&&Z(g,{bold:!0,color:V,children:J}),X.map((U,H)=>{let[f,Rq]=U,i=z===H,l=V&&i&&Y;return F(g,{backgroundColor:l?V:void 0,color:l?"inverseText":void 0,inverse:i&&!l,bold:i,children:[" ",Rq," "]},f)}),Gq>0&&Z(g,{children:" ".repeat(Gq)})]},`${z}-${Y?"focused":"blurred"}`),D;if(q[11]!==L||q[12]!==y||q[13]!==B||q[14]!==G||q[15]!==N||q[16]!==z)D=N?Z(M,{width:B,marginTop:G?0:1,flexShrink:0,children:Z(Vq,{ref:N,flexDirection:"column",flexShrink:0,children:L},z)}):Z(M,{width:B,marginTop:G?0:1,height:y,overflowY:y!==void 0?"hidden":void 0,children:L}),q[11]=L,q[12]=y,q[13]=B,q[14]=G,q[15]=N,q[16]=z,q[17]=D;else D=q[17];let p;if(q[18]!==h||q[19]!==T||q[20]!==u||q[21]!==c||q[22]!==r||q[23]!==D)p=F(h,{flexDirection:Kq,tabIndex:yq,autoFocus:Oq,onKeyDown:u,flexShrink:c,children:[r,T,D]}),q[18]=h,q[19]=T,q[20]=u,q[21]=c,q[22]=r,q[23]=D,q[24]=p;else p=q[24];return Z(I.Provider,{value:{selectedTab:X[z][0],width:B,headerFocused:Y,focusHeader:zq,blurHeader:Eq,registerOptIn:vq},children:p})}function Fq(A,q){let[,J]=q;return A+(J?s(J):0)+2+1}function gq(A){return A-1}function Cq(A){return A+1}function Iq(A){return[A.props.id??A.props.title,A.props.title]}function oq(A){let q=C.c(4),{title:J,id:V,children:Q}=A,{selectedTab:L,width:G}=P.useContext(I),K=Qq();if(L!==(V??J))return null;let E=K?0:void 0,k;if(q[0]!==Q||q[1]!==E||q[2]!==G)k=Z(M,{width:G,flexShrink:E,children:Q}),q[0]=Q,q[1]=E,q[2]=G,q[3]=k;else k=q[3];return k}function sq(){let{width:A}=P.useContext(I);return A}function aq(){let A=C.c(6),{headerFocused:q,focusHeader:J,blurHeader:V,registerOptIn:Q}=P.useContext(I),L;if(A[0]!==Q)L=[Q],A[0]=Q,A[1]=L;else L=A[1];P.useEffect(Q,L);let G;if(A[2]!==V||A[3]!==J||A[4]!==q)G={headerFocused:q,focusHeader:J,blurHeader:V},A[2]=V,A[3]=J,A[4]=q,A[5]=G;else G=A[5];return G}var C,P,I;var Tq=wq(()=>{Hq();mq();fq();jq();Wq();pq();Jq();C=Lq(Sq(),1),P=Lq(_q(),1),I=P.createContext({selectedTab:void 0,width:void 0,headerFocused:!1,focusHeader:()=>{},blurHeader:()=>{},registerOptIn:()=>()=>{}})});
|
|
2
|
+
export{lq as gi,oq as hi,sq as ii,aq as ji,Tq as ki};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{Rv as T,VQ as f,WQ as L,XD as K,ZD as I,_D as _,aE as p,eD as P,eR as r,kD as b,kT as i,qD as j}from"./cli-1.1.27-w8pwj9ef.mjs";import{CX as A,DX as n}from"./cli-1.1.27-7zpnm6dn.mjs";import{uka as E,xka as C}from"./cli-1.1.27-7gnbh46g.mjs";import{Aka as F,Ala as u,Cka as S,jla as M,nla as m,xla as Z}from"./cli-1.1.27-r335xv52.mjs";import{Sna as Y,Tna as k,Vra as c,xra as v}from"./cli-1.1.27-m6ne80zc.mjs";n();c();r();C();p();P();S();u();m();i();k();import*as H from"path";var d=1000,o=500,l=300,e=2000,h=typeof Bun<"u",x=null,y=null,Q=new Set,B=!1,D=!1,V=!1,X=null,W=Y(),U=null;async function t(){if(B||D)return;if(B=!0,!V)V=!0,_(()=>{f(),W.emit()});let q=await a();if(q.length===0)return;Z(`Watching for changes in skill/command directories: ${q.join(", ")}...`),x=A.watch(q,{persistent:!1,ignoreInitial:!0,depth:2,awaitWriteFinish:{stabilityThreshold:U?.stabilityThreshold??d,pollInterval:U?.pollInterval??o},ignored:(w,z)=>{if(z&&!z.isFile()&&!z.isDirectory())return!0;return w.split(H.sep).some((J)=>J===".git")},ignorePermissionErrors:!0,usePolling:h,interval:U?.chokidarInterval??e,atomic:!0}),x.on("add",$),x.on("change",$),x.on("unlink",$),X=F(async()=>{await g()})}function g(){if(D=!0,X)X(),X=null;let q=Promise.resolve();if(x)q=x.close(),x=null;if(y)clearTimeout(y),y=null;return Q.clear(),W.clear(),q}var s=W.subscribe;async function a(){let q=M(),w=[],z=K("userSettings","skills");if(z)try{await q.stat(z),w.push(z)}catch{}let J=K("userSettings","commands");if(J)try{await q.stat(J),w.push(J)}catch{}let N=K("projectSettings","skills");if(N)try{let G=H.resolve(N);await q.stat(G),w.push(G)}catch{}let O=K("projectSettings","commands");if(O)try{let G=H.resolve(O);await q.stat(G),w.push(G)}catch{}for(let G of v()){let R=H.join(G,".claudin","skills");try{await q.stat(R),w.push(R)}catch{}}return w}function $(q){Z(`Detected skill change: ${q}`),E("",{source:"chokidar"}),qq(q)}function qq(q){if(Q.add(q),y)clearTimeout(y);y=setTimeout(async()=>{y=null;let w=[...Q];Q.clear();let z=await j("skills",w[0]);if(b(z)){Z(`ConfigChange hook blocked skill reload (${w.length} paths)`);return}I(),L(),T(),W.emit()},U?.reloadDebounce??l)}async function wq(q){if(x)await x.close(),x=null;if(y)clearTimeout(y),y=null;Q.clear(),W.clear(),B=!1,D=!1,U=q??null}var Zq={initialize:t,dispose:g,subscribe:s,resetForTesting:wq};
|
|
2
|
+
export{Zq as zb};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import{Hb as vY}from"./cli-1.1.27-sgvc7y72.mjs";import{Ad as iQ,xd as BY}from"./cli-1.1.27-1yyef8w3.mjs";import{jh as Q0,kh as u6}from"./cli-1.1.27-z32qkf2d.mjs";import{Xi as MY,Yi as G6}from"./cli-1.1.27-ge84mp6e.mjs";import{$K as RY,$q as PZ,Al as eZ,BM as P9,Bk as j0,Bl as v9,Bz as W6,Cl as QZ,DE as HY,Dl as Z0,EB as OY,EE as aQ,El as q9,FM as F9,Fl as D9,GB as X6,Gk as EY,Gl as oY,JS as jZ,KI as I0,LC as IY,LI as o9,MC as J6,MM as r6,OE as a,Ou as h0,Pu as KQ,QE as N6,Qu as GY,RL as iY,RQ as fY,Ru as gQ,SB as bY,SG as M0,Su as PY,TG as r9,UB as K6,UL as j6,VK as o,Vt as P0,WS as kY,Yp as E9,Yt as F0,Zp as i6,Zq as nZ,Zt as TZ,_Q as hY,_q as pY,aR as SY,ar as $Y,bu as n9,cP as NY,dD as CY,dT as xY,eD as H6,eP as nQ,eR as B6,gL as TY,gw as k0,hT as LY,hw as x0,iw as u0,jw as p0,kT as zY,kn as yZ,kw as c0,ky as b0,lB as wY,lw as m0,mB as jY,mw as uZ,nB as Q6,nS as SZ,nn as UZ,nw as pZ,ny as i9,on as f0,ow as d0,pw as g0,qw as l0,rS as kZ,rw as a0,sw as n0,tw as i0,uw as r0,vl as B9,vw as o0,wl as x6,ww as s0,xl as L9,xw as HQ,yB as JY,yk as WZ,yl as z9,yz as FY,zB as lQ,zM as $9,zl as bZ}from"./cli-1.1.27-w8pwj9ef.mjs";import{MX as Y9,QX as R6}from"./cli-1.1.27-7jakzfss.mjs";import{SY as O0,TY as d9,eZ as y0,fZ as U0,gZ as g9,jZ as E0,kZ as l9,qZ as $0,rZ as a9}from"./cli-1.1.27-9chfrr9e.mjs";import{F1 as u,H1 as b,g0 as c9,k2 as m9}from"./cli-1.1.27-6spv5ha8.mjs";import{T4 as l,U4 as y,V4 as M,W4 as K0}from"./cli-1.1.27-kgpk1m6k.mjs";import{X4 as p9}from"./cli-1.1.27-m5wtrd2b.mjs";import{F9 as w6,I8 as nY,a7 as aY,e7 as _6}from"./cli-1.1.27-xdfkhk5m.mjs";import{D$ as KY,F$ as dQ,Fda as U9,Gaa as l6,Lha as _0,Mda as n6,Nba as a6,Oha as u9,Sha as t,Tba as Z9,Vea as lY,Xda as dY,Yba as C6,Yda as gY,_da as D6,_ha as w0,eaa as O9,gfa as A6,lba as CZ,nba as k9,qba as y9,r$ as AZ,s$ as S9}from"./cli-1.1.27-48ezce33.mjs";import{jia as H0,ria as N0,via as h9}from"./cli-1.1.27-fw9r8cwg.mjs";import{Zia as rY,ija as U6}from"./cli-1.1.27-dfww0knt.mjs";import{Aja as Y,Bja as JZ,Cja as D,Dja as OZ}from"./cli-1.1.27-njcbrvnc.mjs";import{Gja as mY,Ija as q6,Kja as RZ,Nja as B0,Oja as L0,Pja as z0,Qja as v0,Sja as q0,Tja as D0,dka as A0,jka as x9}from"./cli-1.1.27-cxy3fqs0.mjs";import{uka as d,xka as wZ}from"./cli-1.1.27-7gnbh46g.mjs";import{Aka as eY,Ala as GZ,Cka as I6,ala as e,bla as VY,fla as $Z,xla as I}from"./cli-1.1.27-r335xv52.mjs";import{Cla as WY,Gla as mQ}from"./cli-1.1.27-jt1gb6nf.mjs";import{Jla as XY,Xla as j9,Yla as oZ,cma as dZ}from"./cli-1.1.27-0rz9qd34.mjs";import{Dqa as G9,Eqa as vZ,Fqa as J9,Hqa as H9,Iqa as Y0,Kqa as N9,Sra as _Y,Vra as HZ,Wna as NZ,aoa as X0,boa as tY,lpa as cY}from"./cli-1.1.27-m6ne80zc.mjs";import{Ita as J0,Lta as hZ,Mta as _Z,Nta as aZ}from"./cli-1.1.27-8vrv0ver.mjs";var VQ={};hZ(VQ,{selectableUserMessagesFilter:()=>T0,messagesAfterAreOnlySynthetic:()=>XQ,MessageSelector:()=>t9});import{randomUUID as s9}from"crypto";import*as YZ from"path";function C0(Q){return Q.type==="text"}function fZ(Q){return Q==="summarize"||Q==="summarize_up_to"}function t9({messages:Q,onPreRestore:Z,onRestoreMessage:X,onRestoreCode:W,onSummarize:V,onClose:H,preselectedMessage:G}){let K=b0((j)=>j.fileHistory),[B,z]=R.useState(void 0),J=P0(),L=R.useMemo(s9,[]),_=R.useMemo(()=>[...Q.filter(T0),{...o({content:""}),uuid:L}],[Q,L]),[O,q]=R.useState(_.length-1),P=Math.max(0,Math.min(O-Math.floor(IZ/2),_.length-IZ)),f=_.length>1,[v,F]=R.useState(G),[U,h]=R.useState(void 0);R.useEffect(()=>{if(!G||!J)return;let j=!1;return TZ(K,G.uuid).then((T)=>{if(!j)h(T)}),()=>{j=!0}},[G,J,K]);let[E,w]=R.useState(!1),[p,i]=R.useState(null),[r,C]=R.useState("both"),[S,k]=R.useState(""),[A,$]=R.useState("");function N(j){let T=j?[{value:"both",label:"Restore code and conversation"},{value:"conversation",label:"Restore conversation"},{value:"code",label:"Restore code"}]:[{value:"conversation",label:"Restore conversation"}],c={type:"input",placeholder:"add context (optional)",initialValue:"",allowEmptySubmitToCancel:!0,showLabelWithValue:!0,labelValueSeparator:": "};return T.push({value:"summarize",label:"Summarize from here",...c,onChange:k}),T.push({value:"nevermind",label:"Never mind"}),T}R.useEffect(()=>{d("",{})},[]);async function x(j){Z(),w(!0);try{await X(j),w(!1),H()}catch(T){t(T),w(!1),z(`Failed to restore the conversation:
|
|
2
|
+
${T}`)}}async function g(j){let T=Q.indexOf(j),c=Q.length-1-T;if(d("",{index_from_end:c,message_type:j.type,is_current_prompt:!1}),!Q.includes(j)){H();return}if(!J){await x(j);return}let m=await TZ(K,j.uuid);F(j),h(m)}async function XZ(j){if(d("",{option:j}),!v){z("Message not found.");return}if(j==="nevermind"){if(G)H();else F(void 0);return}if(fZ(j)){Z(),w(!0),i(j),z(void 0);try{let m=j==="summarize_up_to"?"up_to":"from",ZZ=(m==="up_to"?A:S).trim()||void 0;await V(v,ZZ,m),w(!1),i(null),F(void 0),H()}catch(m){t(m),w(!1),i(null),F(void 0),z(`Failed to summarize:
|
|
3
|
+
${m}`)}return}Z(),w(!0),z(void 0);let T=null,c=null;if(j==="code"||j==="both")try{await W(v)}catch(m){T=m,t(T)}if(j==="conversation"||j==="both")try{await X(v)}catch(m){c=m,t(c)}if(w(!1),F(void 0),c&&T)z(`Failed to restore the conversation and code:
|
|
4
|
+
${c}
|
|
5
|
+
${T}`);else if(c)z(`Failed to restore the conversation:
|
|
6
|
+
${c}`);else if(T)z(`Failed to restore the code:
|
|
7
|
+
${T}`);else H()}let VZ=E0(),s=R.useCallback(()=>{if(v&&!G){F(void 0);return}d("",{}),H()},[H,v,G]),M9=R.useCallback(()=>q((j)=>Math.max(0,j-1)),[]),I9=R.useCallback(()=>q((j)=>Math.min(_.length-1,j+1)),[_.length]),C9=R.useCallback(()=>q(0),[]),R9=R.useCallback(()=>q(_.length-1),[_.length]),T9=R.useCallback(()=>{let j=_[O];if(j)g(j)},[_,O,g]);y0("confirm:no",s,{context:"Confirmation",isActive:!v}),U0({"messageSelector:up":M9,"messageSelector:down":I9,"messageSelector:top":C9,"messageSelector:bottom":R9,"messageSelector:select":T9},{context:"MessageSelector",isActive:!E&&!B&&!v&&f});let[V0,W0]=R.useState({});R.useEffect(()=>{async function j(){if(!J)return;Promise.all(_.map(async(T,c)=>{if(T.uuid!==L){let m=F0(K,T.uuid),ZZ=_.at(c+1),DZ=m?QQ(Q,T.uuid,ZZ?.uuid!==L?ZZ?.uuid:void 0):void 0;if(DZ!==void 0)W0((n)=>({...n,[c]:DZ}));else W0((n)=>({...n,[c]:void 0}))}}))}j()},[_,Q,L,K,J]);let qZ=J&&U?.filesChanged&&U.filesChanged.length>0,f9=!B&&!v&&!G&&f;return M(u,{flexDirection:"column",width:"100%",children:[y($0,{color:"suggestion"}),M(u,{flexDirection:"column",marginX:1,gap:1,children:[y(b,{bold:!0,color:"suggestion",children:"Rewind"}),B&&y(l,{children:M(b,{color:"error",children:["Error: ",B]})}),!f&&y(l,{children:y(b,{children:"Nothing to rewind to yet."})}),!B&&v&&f&&M(l,{children:[M(b,{children:["Confirm you want to restore"," ",!U&&"the conversation ","to the point before you sent this message:"]}),M(u,{flexDirection:"column",paddingLeft:1,borderStyle:"single",borderRight:!1,borderTop:!1,borderBottom:!1,borderLeft:!0,borderLeftDimColor:!0,children:[y(G0,{userMessage:v,color:"text",isCurrent:!1}),M(b,{dimColor:!0,children:["(",N0(new Date(v.timestamp)),")"]})]}),y(ZQ,{selectedRestoreOption:r,canRestoreCode:!!qZ,diffStatsForRestore:U}),E&&fZ(p)?M(u,{flexDirection:"row",gap:1,children:[y(I0,{}),y(b,{children:"Summarizing…"})]}):y(M0,{isDisabled:E,options:N(!!qZ),defaultFocusValue:qZ?"both":"conversation",onFocus:(j)=>C(j),onChange:(j)=>XZ(j),onCancel:()=>G?H():F(void 0)}),qZ&&y(u,{marginBottom:1,children:M(b,{dimColor:!0,children:[AZ.warning," Rewinding does not affect files edited manually or via bash."]})})]}),f9&&M(l,{children:[J?y(b,{children:"Restore the code and/or conversation to the point before…"}):y(b,{children:"Restore and fork the conversation to the point before…"}),y(u,{width:"100%",flexDirection:"column",children:_.slice(P,P+IZ).map((j,T)=>{let c=P+T,m=c===O,ZZ=j.uuid===L,DZ=c in V0,n=V0[c],MZ=n?.filesChanged&&n.filesChanged.length;return M(u,{height:J?3:2,overflow:"hidden",width:"100%",flexDirection:"row",children:[y(u,{width:2,minWidth:2,children:m?M(b,{color:"permission",bold:!0,children:[AZ.pointer," "]}):y(b,{children:" "})}),M(u,{flexDirection:"column",children:[y(u,{flexShrink:1,height:1,overflow:"hidden",children:y(G0,{userMessage:j,color:m?"suggestion":void 0,isCurrent:ZZ,paddingRight:10})}),J&&DZ&&y(u,{height:1,flexDirection:"row",children:n?y(l,{children:y(b,{dimColor:!m,color:"inactive",children:MZ?M(l,{children:[MZ===1&&n.filesChanged[0]?`${YZ.basename(n.filesChanged[0])} `:`${MZ} files changed `,y(R0,{diffStats:n})]}):y(l,{children:"No code changes"})})}):M(b,{dimColor:!0,color:"warning",children:[AZ.warning," No code restore"]})})]})]},j.uuid)})})]}),!v&&y(b,{dimColor:!0,italic:!0,children:VZ.pending?M(l,{children:["Press ",VZ.keyName," again to exit"]}):M(l,{children:[!B&&f&&"Enter to continue · ","Esc to exit"]})})]})]})}function e9(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 ZQ(Q){let Z=KZ.c(11),{selectedRestoreOption:X,canRestoreCode:W,diffStatsForRestore:V}=Q,H=W&&(X==="both"||X==="code"),G;if(Z[0]!==X)G=e9(X),Z[0]=X,Z[1]=G;else G=Z[1];let K;if(Z[2]!==G)K=y(b,{dimColor:!0,children:G}),Z[2]=G,Z[3]=K;else K=Z[3];let B;if(Z[4]!==V||Z[5]!==X||Z[6]!==H)B=!fZ(X)&&(H?y(YQ,{diffStatsForRestore:V}):y(b,{dimColor:!0,children:"The code will be unchanged."})),Z[4]=V,Z[5]=X,Z[6]=H,Z[7]=B;else B=Z[7];let z;if(Z[8]!==K||Z[9]!==B)z=M(u,{flexDirection:"column",children:[K,B]}),Z[8]=K,Z[9]=B,Z[10]=z;else z=Z[10];return z}function YQ(Q){let Z=KZ.c(14),{diffStatsForRestore:X}=Q;if(X===void 0)return;if(!X.filesChanged||!X.filesChanged[0]){let K;if(Z[0]===Symbol.for("react.memo_cache_sentinel"))K=y(b,{dimColor:!0,children:"The code has not changed (nothing will be restored)."}),Z[0]=K;else K=Z[0];return K}let W=X.filesChanged.length,V;if(W===1){let K;if(Z[1]!==X.filesChanged[0])K=YZ.basename(X.filesChanged[0]||""),Z[1]=X.filesChanged[0],Z[2]=K;else K=Z[2];V=K}else if(W===2){let K;if(Z[3]!==X.filesChanged[0])K=YZ.basename(X.filesChanged[0]||""),Z[3]=X.filesChanged[0],Z[4]=K;else K=Z[4];let B=K,z;if(Z[5]!==X.filesChanged[1])z=YZ.basename(X.filesChanged[1]||""),Z[5]=X.filesChanged[1],Z[6]=z;else z=Z[6];V=`${B} and ${z}`}else{let K;if(Z[7]!==X.filesChanged[0])K=YZ.basename(X.filesChanged[0]||""),Z[7]=X.filesChanged[0],Z[8]=K;else K=Z[8];V=`${K} and ${X.filesChanged.length-1} other files`}let H;if(Z[9]!==X)H=y(R0,{diffStats:X}),Z[9]=X,Z[10]=H;else H=Z[10];let G;if(Z[11]!==V||Z[12]!==H)G=y(l,{children:M(b,{dimColor:!0,children:["The code will be restored"," ",H," in ",V,"."]})}),Z[11]=V,Z[12]=H,Z[13]=G;else G=Z[13];return G}function R0(Q){let Z=KZ.c(7),{diffStats:X}=Q;if(!X||!X.filesChanged)return;let W;if(Z[0]!==X.insertions)W=M(b,{color:"diffAddedWord",children:["+",X.insertions," "]}),Z[0]=X.insertions,Z[1]=W;else W=Z[1];let V;if(Z[2]!==X.deletions)V=M(b,{color:"diffRemovedWord",children:["-",X.deletions]}),Z[2]=X.deletions,Z[3]=V;else V=Z[3];let H;if(Z[4]!==W||Z[5]!==V)H=M(l,{children:[W,V]}),Z[4]=W,Z[5]=V,Z[6]=H;else H=Z[6];return H}function G0(Q){let Z=KZ.c(31),{userMessage:X,color:W,dimColor:V,isCurrent:H,paddingRight:G}=Q,{columns:K}=O0();if(H){let h;if(Z[0]!==W||Z[1]!==V)h=y(u,{width:"100%",children:y(b,{italic:!0,color:W,dimColor:V,children:"(current)"})}),Z[0]=W,Z[1]=V,Z[2]=h;else h=Z[2];return h}let B=X.message.content,z=typeof B==="string"?null:B[B.length-1],J,L,_,O,q,P,f,v;if(Z[3]!==W||Z[4]!==K||Z[5]!==B||Z[6]!==V||Z[7]!==z||Z[8]!==G){v=Symbol.for("react.early_return_sentinel");Z:{let h=typeof B==="string"?B.trim():z&&C0(z)?z.text.trim():"(no prompt)",E=_0(h);if(j0(E)){let w;if(Z[17]!==W||Z[18]!==V)w=y(u,{flexDirection:"row",width:"100%",children:y(b,{italic:!0,color:W,dimColor:V,children:"((empty message))"})}),Z[17]=W,Z[18]=V,Z[19]=w;else w=Z[19];v=w;break Z}if(E.includes("<bash-input>")){let w=WZ(E,"bash-input");if(w){let p;if(Z[20]===Symbol.for("react.memo_cache_sentinel"))p=y(b,{color:"bashBorder",children:"!"}),Z[20]=p;else p=Z[20];v=M(u,{flexDirection:"row",width:"100%",children:[p,M(b,{color:W,dimColor:V,children:[" ",w]})]});break Z}}if(E.includes(`<${RZ}>`)){let w=WZ(E,RZ),p=WZ(E,"command-args"),i=WZ(E,"skill-format")==="true";if(w)if(i){v=y(u,{flexDirection:"row",width:"100%",children:M(b,{color:W,dimColor:V,children:["Skill(",w,")"]})});break Z}else{v=y(u,{flexDirection:"row",width:"100%",children:M(b,{color:W,dimColor:V,children:["/",w," ",p]})});break Z}}L=u,P="row",f="100%",J=b,_=W,O=V,q=G?H0(E,K-G,!0):E.slice(0,500).split(`
|
|
8
|
+
`).slice(0,4).join(`
|
|
9
|
+
`)}Z[3]=W,Z[4]=K,Z[5]=B,Z[6]=V,Z[7]=z,Z[8]=G,Z[9]=J,Z[10]=L,Z[11]=_,Z[12]=O,Z[13]=q,Z[14]=P,Z[15]=f,Z[16]=v}else J=Z[9],L=Z[10],_=Z[11],O=Z[12],q=Z[13],P=Z[14],f=Z[15],v=Z[16];if(v!==Symbol.for("react.early_return_sentinel"))return v;let F;if(Z[21]!==J||Z[22]!==_||Z[23]!==O||Z[24]!==q)F=y(J,{color:_,dimColor:O,children:q}),Z[21]=J,Z[22]=_,Z[23]=O,Z[24]=q,Z[25]=F;else F=Z[25];let U;if(Z[26]!==L||Z[27]!==P||Z[28]!==f||Z[29]!==F)U=y(L,{flexDirection:P,width:f,children:F}),Z[26]=L,Z[27]=P,Z[28]=f,Z[29]=F,Z[30]=U;else U=Z[30];return U}function QQ(Q,Z,X){let W=Q.findIndex((B)=>B.uuid===Z);if(W===-1)return;let V=X?Q.findIndex((B)=>B.uuid===X):Q.length;if(V===-1)V=Q.length;let H=[],G=0,K=0;for(let B=W+1;B<V;B++){let z=Q[B];if(!z||!kZ(z))continue;let J=z.toolUseResult;if(!J||!J.filePath||!J.structuredPatch)continue;if(!H.includes(J.filePath))H.push(J.filePath);try{if("type"in J&&J.type==="create")G+=J.content.split(/\r?\n/).length;else for(let L of J.structuredPatch){let _=CZ(L.lines,(q)=>q.startsWith("+")),O=CZ(L.lines,(q)=>q.startsWith("-"));G+=_,K+=O}}catch{continue}}return{filesChanged:H,insertions:G,deletions:K}}function T0(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,X=typeof Z==="string"?null:Z[Z.length-1],W=typeof Z==="string"?Z.trim():X&&C0(X)?X.text.trim():"";if(W.indexOf(`<${z0}>`)!==-1||W.indexOf(`<${v0}>`)!==-1||W.indexOf(`<${B0}>`)!==-1||W.indexOf(`<${L0}>`)!==-1||W.indexOf(`<${D0}>`)!==-1||W.indexOf(`<${q0}>`)!==-1||W.indexOf(`<${A0}`)!==-1)return!1;return!0}function XQ(Q,Z){for(let X=Z+1;X<Q.length;X++){let W=Q[X];if(!W)continue;if(SZ(W))continue;if(kZ(W))continue;if(W.type==="progress")continue;if(W.type==="system")continue;if(W.type==="attachment")continue;if(W.type==="user"&&W.isMeta)continue;if(W.type==="assistant"){let V=W.message.content;if(Array.isArray(V)){if(V.some((G)=>G.type==="text"&&G.text.trim()||G.type==="tool_use"))return!1}continue}if(W.type==="user")return!1}return!0}var KZ,R,IZ=7;var WQ=_Z(()=>{S9();wZ();i9();n9();w0();l9();m9();g9();u9();jZ();r9();o9();d9();x9();k9();h9();a9();K0();KZ=J0(c9(),1),R=J0(p9(),1)});var b6={};hZ(b6,{getCronJitterConfig:()=>F6});function F6(){let Q=rY("tengu_kairos_cron_config",QZ,E6),Z=P6().safeParse(Q);return Z.success?Z.data:QZ}var E6=60000,iZ=1800000,$6=2592000000,P6;var M6=_Z(()=>{JZ();U6();oY();OZ();P6=D(()=>Y.object({recurringFrac:Y.number().min(0).max(1),recurringCapMs:Y.number().int().min(0).max(iZ),oneShotMaxMs:Y.number().int().min(0).max(iZ),oneShotFloorMs:Y.number().int().min(0).max(iZ),oneShotMinuteMod:Y.number().int().min(1).max(60),recurringMaxAgeMs:Y.number().int().min(0).max($6).default(QZ.recurringMaxAgeMs)}).refine((Q)=>Q.oneShotFloorMs<=Q.oneShotMaxMs))});import{mkdir as T6,readFile as f6,unlink as Q9,writeFile as sZ}from"fs/promises";import{dirname as h6,join as X9}from"path";function LZ(Q){return X9(Q??tY(),S6)}async function V9(Q){let Z;try{Z=await f6(LZ(Q),"utf8")}catch{return}let X=k6().safeParse(Z9(Z,!1));return X.success?X.data:void 0}async function sY(Q,Z){let X=LZ(Z),W=e(Q);try{return await sZ(X,W,{flag:"wx"}),!0}catch(V){let H=oZ(V);if(H==="EEXIST")return!1;if(H==="ENOENT"){await T6(h6(X),{recursive:!0});try{return await sZ(X,W,{flag:"wx"}),!0}catch(G){if(oZ(G)==="EEXIST")return!1;throw G}}throw V}}function rZ(Q){FZ?.(),FZ=eY(async()=>{await zZ(Q)})}async function tZ(Q){let Z=Q?.dir,X=Q?.lockIdentity??NZ(),W={sessionId:X,pid:process.pid,acquiredAt:Date.now()};if(await sY(W,Z))return BZ=void 0,rZ(Q),I(`[ScheduledTasks] acquired scheduler lock (PID ${process.pid})`),!0;let V=await V9(Z);if(V?.sessionId===X){if(V.pid!==process.pid)await sZ(LZ(Z),e(W)),rZ(Q);return!0}if(V&&Y9(V.pid)){if(BZ!==V.sessionId)BZ=V.sessionId,I(`[ScheduledTasks] scheduler lock held by session ${V.sessionId} (PID ${V.pid})`);return!1}if(V)I(`[ScheduledTasks] recovering stale scheduler lock from PID ${V.pid}`);if(await Q9(LZ(Z)).catch(()=>{}),await sY(W,Z))return BZ=void 0,rZ(Q),!0;return!1}async function zZ(Q){FZ?.(),FZ=void 0,BZ=void 0;let Z=Q?.dir,X=Q?.lockIdentity??NZ(),W=await V9(Z);if(!W||W.sessionId!==X)return;try{await Q9(LZ(Z)),I("[ScheduledTasks] released scheduler lock")}catch{}}var S6,k6,FZ,BZ;var W9=_Z(()=>{JZ();HZ();I6();GZ();dZ();R6();C6();OZ();$Z();S6=X9(".claudin","scheduled_tasks.lock"),k6=D(()=>Y.object({sessionId:Y.string(),pid:Y.number(),acquiredAt:Y.number()}))});var d6={};hZ(d6,{takeDueSessionWakeup:()=>_9,isRecurringTaskAged:()=>A9,createCronScheduler:()=>m6,buildMissedTaskNotification:()=>w9});function A9(Q,Z,X){if(X===0)return!1;return Boolean(Q.recurring&&!Q.permanent&&Z-Q.createdAt>=X)}function _9(Q){let Z=Y0();if(!Z||Q<Z.fireAtMs)return null;return N9(),{prompt:Q0(Z.prompt),reason:Z.reason}}function m6(Q){let{onFire:Z,isLoading:X,assistantMode:W=!1,onFireTask:V,onMissed:H,onWakeupFire:G,dir:K,lockIdentity:B,getJitterConfig:z,isKilled:J,filter:L}=Q,_=K||B?{dir:K,lockIdentity:B}:void 0,O=[],q=new Map,P=new Set,f=new Set,v=null,F=null,U=null,h=null,E=!1,w=!1;async function p(C){let S=await z9(K);if(E)return;if(O=S,!C)return;let k=Date.now(),A=D9(S,k).filter(($)=>!$.recurring&&!P.has($.id)&&(!L||L($)));if(A.length>0){for(let $ of A)P.add($.id),q.set($.id,1/0);if(d("",{count:A.length,taskIds:A.map(($)=>$.id).join(",")}),H)H(A);else Z(w9(A));eZ(A.map(($)=>$.id),K).catch(($)=>I(`[ScheduledTasks] failed to remove missed tasks: ${$}`)),I(`[ScheduledTasks] surfaced ${A.length} missed one-shot task(s)`)}}function i(){if(J?.())return;if(X()&&!W)return;let C=Date.now(),S=new Set,k=[],A=z?.()??QZ;function $(N,x){if(L&&!L(N))return;if(S.add(N.id),f.has(N.id))return;let g=q.get(N.id);if(g===void 0)g=N.recurring?Z0(N.cron,N.lastFiredAt??N.createdAt,N.id,A)??1/0:q9(N.cron,N.createdAt,N.id,A)??1/0,q.set(N.id,g),I(`[ScheduledTasks] scheduled ${N.id} for ${g===1/0?"never":new Date(g).toISOString()}`);if(C<g)return;I(`[ScheduledTasks] firing ${N.id}${N.recurring?" (recurring)":""}`),d("",{recurring:N.recurring??!1,taskId:N.id});let XZ=K===void 0?Q0(N.prompt,void 0,N.agentId):N.prompt;if(V)V(XZ===N.prompt?N:{...N,prompt:XZ});else Z(XZ);let VZ=A9(N,C,A.recurringMaxAgeMs);if(VZ){let s=Math.floor((C-N.createdAt)/1000/60/60);I(`[ScheduledTasks] recurring task ${N.id} aged out (${s}h since creation), deleting after final fire`),d("",{taskId:N.id,ageHours:s})}if(N.recurring&&!VZ){let s=Z0(N.cron,C,N.id,A)??1/0;if(q.set(N.id,s),!x)k.push(N.id)}else if(x)H9([N.id]),q.delete(N.id);else f.add(N.id),eZ([N.id],K).catch((s)=>I(`[ScheduledTasks] failed to remove task ${N.id}: ${s}`)).finally(()=>f.delete(N.id)),q.delete(N.id)}if(w){for(let N of O)$(N,!1);if(k.length>0){for(let N of k)f.add(N);v9(k,C,K).catch((N)=>I(`[ScheduledTasks] failed to persist lastFiredAt: ${N}`)).finally(()=>{for(let N of k)f.delete(N)})}}if(K===void 0){for(let x of J9())$(x,!0);let N=_9(C);if(N!==null)if(I("[ScheduledTasks] firing pending ScheduleWakeup"),d("",{}),G)G(N.prompt,N.reason);else Z(N.prompt)}if(S.size===0){q.clear();return}for(let N of q.keys())if(!S.has(N))q.delete(N)}async function r(){if(E)return;if(v)clearInterval(v),v=null;let{default:C}=await import("./index-1.1.27-72s4gvww.mjs");if(E)return;if(w=await tZ(_).catch(()=>!1),E){if(w)w=!1,zZ(_);return}if(!w)U=setInterval(()=>{tZ(_).then((k)=>{if(E){if(k)zZ(_);return}if(k){if(w=!0,U)clearInterval(U),U=null}}).catch((k)=>I(String(k),{level:"error"}))},c6),U.unref?.();p(!0);let S=L9(K);h=C.watch(S,{persistent:!1,ignoreInitial:!0,awaitWriteFinish:{stabilityThreshold:p6},ignorePermissionErrors:!0}),h.on("add",()=>void p(!1)),h.on("change",()=>void p(!1)),h.on("unlink",()=>{if(!E)O=[],q.clear()}),F=setInterval(i,K9),F.unref?.()}return{start(){if(E=!1,K!==void 0){I(`[ScheduledTasks] scheduler start() — dir=${K}, hasTasks=${bZ(K)}`),r();return}if(I(`[ScheduledTasks] scheduler start() — enabled=${vZ()}, hasTasks=${bZ()}`),!vZ()&&(W||bZ()))G9(!0);if(vZ()){r();return}v=setInterval((C)=>{if(vZ())C()},K9,r),v.unref?.()},stop(){if(E=!0,v)clearInterval(v),v=null;if(F)clearInterval(F),F=null;if(U)clearInterval(U),U=null;if(h?.close(),h=null,w)w=!1,zZ(_)},getNextFireTime(){let C=1/0;for(let S of q.values())if(S<C)C=S;if(K===void 0){let S=Y0();if(S&&S.fireAtMs<C)C=S.fireAtMs}return C===1/0?null:C}}}function w9(Q){let Z=Q.length>1,X=`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 .claudin/scheduled_tasks.json.
|
|
10
|
+
|
|
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.`,W=Q.map((V)=>{let H=`[${B9(V.cron)}, created ${new Date(V.createdAt).toLocaleString()}]`,G=(V.prompt.match(/`+/g)??[]).reduce((B,z)=>Math.max(B,z.length),0),K="`".repeat(Math.max(3,G+1));return`${H}
|
|
12
|
+
${K}
|
|
13
|
+
${V.prompt}
|
|
14
|
+
${K}`});return`${X}
|
|
15
|
+
|
|
16
|
+
${W.join(`
|
|
17
|
+
|
|
18
|
+
`)}`}var K9=1000,p6=300,c6=5000;var g6=_Z(()=>{HZ();wZ();x6();oY();W9();GZ();u6()});JZ();GZ();OZ();f0();KQ();var UX=D(()=>Y.object({tool_name:Y.string().describe("The name of the tool requesting permission"),input:Y.record(Y.string(),Y.unknown()).describe("The input for the tool"),tool_use_id:Y.string().optional().describe("The unique tool use request ID")})),S0=D(()=>Y.enum(["user_temporary","user_permanent","user_reject"]).optional().catch(void 0)),GQ=D(()=>Y.object({behavior:Y.literal("allow"),updatedInput:Y.record(Y.string(),Y.unknown()),updatedPermissions:Y.array(h0()).optional().catch((Q)=>{I(`Malformed updatedPermissions from SDK host ignored: ${Q.error.issues[0]?.message??"unknown"}`,{level:"warn"});return}),toolUseID:Y.string().optional(),decisionClassification:S0()})),JQ=D(()=>Y.object({behavior:Y.literal("deny"),message:Y.string(),interrupt:Y.boolean().optional(),toolUseID:Y.string().optional(),decisionClassification:S0()})),xZ=D(()=>Y.union([GQ(),JQ()]));function EZ(Q,Z,X,W){let V={type:"permissionPromptTool",permissionPromptToolName:Z.name,toolResult:Q};if(Q.behavior==="allow"){let H=Q.updatedPermissions;if(H)W.setAppState((K)=>({...K,toolPermissionContext:yZ(K.toolPermissionContext,H)})),UZ(H);let G=Object.keys(Q.updatedInput).length>0?Q.updatedInput:X;return{...Q,updatedInput:G,decisionReason:V}}else if(Q.behavior==="deny"&&Q.interrupt)I(`SDK permission prompt deny+interrupt: tool=${Z.name} message=${Q.message}`),W.abortController.abort();return{...Q,decisionReason:V}}import{randomUUID as mZ}from"crypto";JZ();OZ();HQ();var NQ=D(()=>Y.unknown()),BQ=D(()=>Y.object({matcher:Y.string().optional(),hookCallbackIds:Y.array(Y.string()),timeout:Y.number().optional()}).describe("Configuration for matching and routing hook callbacks.")),LQ=D(()=>Y.object({subtype:Y.literal("initialize"),hooks:Y.record(c0(),Y.array(BQ())).optional(),sdkMcpServers:Y.array(Y.string()).optional(),jsonSchema:Y.record(Y.string(),Y.unknown()).optional(),systemPrompt:Y.string().optional(),appendSystemPrompt:Y.string().optional(),agents:Y.record(Y.string(),l0()).optional(),promptSuggestions:Y.boolean().optional(),agentProgressSummaries:Y.boolean().optional()}).describe("Initializes the SDK session with hooks, MCP servers, and agent configuration.")),bX=D(()=>Y.object({commands:Y.array(uZ()),agents:Y.array(pZ()),output_style:Y.string(),available_output_styles:Y.array(Y.string()),models:Y.array(d0()),account:g0(),pid:Y.number().optional().describe("@internal CLI process PID for tmux socket isolation"),fast_mode_state:s0().optional()}).describe("Response from session initialization with available commands, models, and account info.")),zQ=D(()=>Y.object({subtype:Y.literal("interrupt")}).describe("Interrupts the currently running conversation turn.")),vQ=D(()=>Y.object({subtype:Y.literal("can_use_tool"),tool_name:Y.string(),input:Y.record(Y.string(),Y.unknown()),permission_suggestions:Y.array(u0()).optional(),blocked_path:Y.string().optional(),decision_reason:Y.string().optional(),title:Y.string().optional(),display_name:Y.string().optional(),tool_use_id:Y.string(),agent_id:Y.string().optional(),description:Y.string().optional()}).describe("Requests permission to use a tool with the given input.")),qQ=D(()=>Y.object({subtype:Y.literal("set_permission_mode"),mode:p0(),ultraplan:Y.boolean().optional().describe("@internal CCR ultraplan session marker.")}).describe("Sets the permission mode for tool execution handling.")),DQ=D(()=>Y.object({subtype:Y.literal("set_model"),model:Y.string().optional()}).describe("Sets the model to use for subsequent conversation turns.")),AQ=D(()=>Y.object({subtype:Y.literal("set_max_thinking_tokens"),max_thinking_tokens:Y.number().nullable()}).describe("Sets the maximum number of thinking tokens for extended thinking.")),_Q=D(()=>Y.object({subtype:Y.literal("mcp_status")}).describe("Requests the current status of all MCP server connections.")),wQ=D(()=>Y.object({subtype:Y.literal("get_context_usage")}).describe("Requests a breakdown of current context window usage by category.")),jQ=D(()=>Y.object({name:Y.string(),tokens:Y.number(),color:Y.string(),isDeferred:Y.boolean().optional()})),OQ=D(()=>Y.object({color:Y.string(),isFilled:Y.boolean(),categoryName:Y.string(),tokens:Y.number(),percentage:Y.number(),squareFullness:Y.number()})),MX=D(()=>Y.object({categories:Y.array(jQ()),totalTokens:Y.number(),maxTokens:Y.number(),rawMaxTokens:Y.number(),percentage:Y.number(),gridRows:Y.array(Y.array(OQ())),model:Y.string(),memoryFiles:Y.array(Y.object({path:Y.string(),type:Y.string(),tokens:Y.number()})),mcpTools:Y.array(Y.object({name:Y.string(),serverName:Y.string(),tokens:Y.number(),isLoaded:Y.boolean().optional()})),deferredBuiltinTools:Y.array(Y.object({name:Y.string(),tokens:Y.number(),isLoaded:Y.boolean()})).optional(),systemTools:Y.array(Y.object({name:Y.string(),tokens:Y.number()})).optional(),systemPromptSections:Y.array(Y.object({name:Y.string(),tokens:Y.number()})).optional(),agents:Y.array(Y.object({agentType:Y.string(),source:Y.string(),tokens:Y.number()})),slashCommands:Y.object({totalCommands:Y.number(),includedCommands:Y.number(),tokens:Y.number()}).optional(),skills:Y.object({totalSkills:Y.number(),includedSkills:Y.number(),tokens:Y.number(),skillFrontmatter:Y.array(Y.object({name:Y.string(),source:Y.string(),tokens:Y.number()}))}).optional(),autoCompactThreshold:Y.number().optional(),isAutoCompactEnabled:Y.boolean(),messageBreakdown:Y.object({toolCallTokens:Y.number(),toolResultTokens:Y.number(),attachmentTokens:Y.number(),assistantMessageTokens:Y.number(),userMessageTokens:Y.number(),toolCallsByType:Y.array(Y.object({name:Y.string(),callTokens:Y.number(),resultTokens:Y.number()})),attachmentsByType:Y.array(Y.object({name:Y.string(),tokens:Y.number()}))}).optional(),apiUsage:Y.object({input_tokens:Y.number(),output_tokens:Y.number(),cache_creation_input_tokens:Y.number(),cache_read_input_tokens:Y.number()}).nullable()}).describe("Breakdown of current context window usage by category (system prompt, tools, messages, etc.).")),yQ=D(()=>Y.object({subtype:Y.literal("rewind_files"),user_message_id:Y.string(),dry_run:Y.boolean().optional()}).describe("Rewinds file changes made since a specific user message.")),UQ=D(()=>Y.object({subtype:Y.literal("cancel_async_message"),message_uuid:Y.string()}).describe("Drops a pending async user message from the command queue by uuid. No-op if already dequeued for execution.")),EQ=D(()=>Y.object({subtype:Y.literal("seed_read_state"),path:Y.string(),mtime:Y.number()}).describe("Seeds the readFileState cache with a path+mtime entry. Use when a prior Read was removed from context (e.g. by snip) so Edit validation would fail despite the client having observed the Read. The mtime lets the CLI detect if the file changed since the seeded Read — same staleness check as the normal path.")),$Q=D(()=>Y.object({subtype:Y.literal("hook_callback"),callback_id:Y.string(),input:m0(),tool_use_id:Y.string().optional()}).describe("Delivers a hook callback with its input data.")),PQ=D(()=>Y.object({subtype:Y.literal("mcp_message"),server_name:Y.string(),message:NQ()}).describe("Sends a JSON-RPC message to a specific MCP server.")),FQ=D(()=>Y.object({subtype:Y.literal("mcp_set_servers"),servers:Y.record(Y.string(),k0())}).describe("Replaces the set of dynamically managed MCP servers.")),IX=D(()=>Y.object({added:Y.array(Y.string()),removed:Y.array(Y.string()),errors:Y.record(Y.string(),Y.string())}).describe("Result of replacing the set of dynamically managed MCP servers.")),bQ=D(()=>Y.object({subtype:Y.literal("reload_plugins")}).describe("Reloads plugins from disk and returns the refreshed session components.")),CX=D(()=>Y.object({commands:Y.array(uZ()),agents:Y.array(pZ()),plugins:Y.array(Y.object({name:Y.string(),path:Y.string(),source:Y.string().optional()})),mcpServers:Y.array(x0()),error_count:Y.number()}).describe("Refreshed commands, agents, plugins, and MCP server status after reload.")),MQ=D(()=>Y.object({subtype:Y.literal("mcp_reconnect"),serverName:Y.string()}).describe("Reconnects a disconnected or failed MCP server.")),IQ=D(()=>Y.object({subtype:Y.literal("mcp_toggle"),serverName:Y.string(),enabled:Y.boolean()}).describe("Enables or disables an MCP server.")),CQ=D(()=>Y.object({subtype:Y.literal("stop_task"),task_id:Y.string()}).describe("Stops a running task.")),RQ=D(()=>Y.object({subtype:Y.literal("apply_flag_settings"),settings:Y.record(Y.string(),Y.unknown())}).describe("Merges the provided settings into the flag settings layer, updating the active configuration.")),TQ=D(()=>Y.object({subtype:Y.literal("get_settings")}).describe("Returns the effective merged settings and the raw per-source settings.")),RX=D(()=>Y.object({effective:Y.record(Y.string(),Y.unknown()),sources:Y.array(Y.object({source:Y.enum(["userSettings","projectSettings","localSettings","flagSettings","policySettings"]),settings:Y.record(Y.string(),Y.unknown())})).describe("Ordered low-to-high priority — later entries override earlier ones."),applied:Y.object({model:Y.string(),effort:Y.enum(["low","medium","high","max"]).nullable()}).optional().describe("Runtime-resolved values after env overrides, session state, and model-specific defaults are applied. Unlike `effective` (disk merge), these reflect what will actually be sent to the API.")}).describe("Effective merged settings plus raw per-source settings in merge order.")),fQ=D(()=>Y.object({subtype:Y.literal("elicitation"),mcp_server_name:Y.string(),message:Y.string(),mode:Y.enum(["form","url"]).optional(),url:Y.string().optional(),elicitation_id:Y.string().optional(),requested_schema:Y.record(Y.string(),Y.unknown()).optional()}).describe("Requests the SDK consumer to handle an MCP elicitation (user input request).")),t0=D(()=>Y.object({action:Y.enum(["accept","decline","cancel"]),content:Y.record(Y.string(),Y.unknown()).optional()}).describe("Response from the SDK consumer for an elicitation request.")),hQ=D(()=>Y.union([zQ(),vQ(),LQ(),qQ(),DQ(),AQ(),_Q(),wQ(),$Q(),PQ(),yQ(),UQ(),EQ(),FQ(),bQ(),MQ(),IQ(),CQ(),RQ(),TQ(),fQ()])),cZ=D(()=>Y.object({type:Y.literal("control_request"),request_id:Y.string(),request:hQ()})),SQ=D(()=>Y.object({subtype:Y.literal("success"),request_id:Y.string(),response:Y.record(Y.string(),Y.unknown()).optional()})),kQ=D(()=>Y.object({subtype:Y.literal("error"),request_id:Y.string(),error:Y.string(),pending_permission_requests:Y.array(Y.lazy(()=>cZ())).optional()})),e0=D(()=>Y.object({type:Y.literal("control_response"),response:Y.union([SQ(),kQ()])})),xQ=D(()=>Y.object({type:Y.literal("control_cancel_request"),request_id:Y.string()}).describe("Cancels a currently open control request.")),ZY=D(()=>Y.object({type:Y.literal("keep_alive")}).describe("Keep-alive message to maintain WebSocket connection.")),uQ=D(()=>Y.object({type:Y.literal("update_environment_variables"),variables:Y.record(Y.string(),Y.string())}).describe("Updates environment variables at runtime.")),TX=D(()=>Y.union([o0(),n0(),i0(),r0(),e0(),cZ(),xQ(),ZY()])),fX=D(()=>Y.union([a0(),cZ(),e0(),ZY(),uQ()]));gQ();GZ();dQ();dZ();nQ();mQ();$Z();JZ();aQ();zY();f0();iQ();$Z();lQ();$Z();var pQ=/\u2028|\u2029/g;function cQ(Q){return Q.replace(pQ,(Z)=>Z==="\u2028"?"\\u2028":"\\u2029")}function YY(Q){return cQ(e(Q))}var rQ="SandboxNetworkAccess";function oQ(Q){if(!Q)return;if(Q.type==="classifier")return Q.reason;switch(Q.type){case"rule":case"mode":case"subcommandResults":case"permissionPromptTool":return;case"hook":case"asyncAgent":case"sandboxOverride":case"workingDir":case"safetyCheck":case"other":return Q.reason}}function sQ(Q,Z,X,W){let V;try{V=Q.getActivityDescription?.(Z)??Q.getToolUseSummary?.(Z)??Q.userFacingName(Z)}catch{V=Q.name}return{tool_name:Q.name,action_description:V,tool_use_id:X,request_id:W,input:Z}}var tQ=1000;class eQ{input;replayUserMessages;structuredInput;pendingRequests=new Map;restoredWorkerState=Promise.resolve(null);inputClosed=!1;unexpectedResponseCallback;resolvedToolUseIds=new Set;prependedLines=[];onControlRequestSent;onControlRequestResolved;outbound=new JY;constructor(Q,Z){this.input=Q;this.replayUserMessages=Z;this.input=Q,this.structuredInput=this.read()}trackResolvedToolUseId(Q){if(Q.request.subtype==="can_use_tool"){if(this.resolvedToolUseIds.add(Q.request.tool_use_id),this.resolvedToolUseIds.size>tQ){let Z=this.resolvedToolUseIds.values().next().value;if(Z!==void 0)this.resolvedToolUseIds.delete(Z)}}}flushInternalEvents(){return Promise.resolve()}get internalEventsPending(){return 0}prependUserMessage(Q){this.prependedLines.push(e({type:"user",session_id:"",message:{role:"user",content:Q},parent_tool_use_id:null})+`
|
|
19
|
+
`)}async*read(){let Q="",Z=async function*(){for(;;){if(this.prependedLines.length>0)Q=this.prependedLines.join("")+Q,this.prependedLines=[];let X=Q.indexOf(`
|
|
20
|
+
`);if(X===-1)break;let W=Q.slice(0,X);Q=Q.slice(X+1);let V=await this.processLine(W);if(V)KY("info","cli_stdin_message_parsed",{type:V.type}),yield V}}.bind(this);yield*Z();for await(let X of this.input)Q+=X,yield*Z();if(Q){let X=await this.processLine(Q);if(X)yield X}this.inputClosed=!0;for(let X of this.pendingRequests.values())X.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 X=this.pendingRequests.get(Z);if(!X)return;if(this.trackResolvedToolUseId(X.request),this.pendingRequests.delete(Z),this.write({type:"control_cancel_request",request_id:Z}),Q.response.subtype==="error")X.reject(Error(Q.response.error));else{let W=Q.response.response;if(X.schema)try{X.resolve(X.schema.parse(W))}catch(V){X.reject(V)}else X.resolve({})}}setOnControlRequestSent(Q){this.onControlRequestSent=Q}setOnControlRequestResolved(Q){this.onControlRequestResolved=Q}async processLine(Q){if(!Q)return;try{let Z=vY(VY(Q));if(Z.type==="keep_alive")return;if(Z.type==="update_environment_variables"){let W=Object.keys(Z.variables);for(let[V,H]of Object.entries(Z.variables))process.env[V]=H;I(`[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)HY(W,"completed");let V=this.pendingRequests.get(Z.response.request_id);if(!V){let K=(Z.response.subtype==="success"?Z.response.response:void 0)?.toolUseID;if(typeof K==="string"&&this.resolvedToolUseIds.has(K)){I(`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(V.request),this.pendingRequests.delete(Z.response.request_id),V.request.request.subtype==="can_use_tool"&&this.onControlRequestResolved)this.onControlRequestResolved(Z.response.request_id);if(Z.response.subtype==="error"){V.reject(Error(Z.response.error));return}let H=Z.response.response;if(V.schema)try{V.resolve(V.schema.parse(H))}catch(G){V.reject(G)}else V.resolve({});if(this.replayUserMessages)return Z;return}if(Z.type!=="user"&&Z.type!=="control_request"&&Z.type!=="assistant"&&Z.type!=="system"){I(`Ignoring unknown message type: ${Z.type}`,{level:"warn"});return}if(Z.type==="control_request"){if(!Z.request)QY("Error: Missing request on control_request");return Z}if(Z.type==="assistant"||Z.type==="system")return Z;let X=Z.message;if(X.role!=="user")QY(`Error: Expected message role 'user', got '${String(X.role)}'`);return Z}catch(Z){console.error(`Error parsing streaming input line: ${Q}: ${Z}`),process.exit(1)}}async write(Q){WY(YY(Q)+`
|
|
21
|
+
`)}async sendRequest(Q,Z,X,W=mZ()){let V={type:"control_request",request_id:W,request:Q};if(this.inputClosed)throw Error("Stream closed");if(X?.aborted)throw Error("Request aborted");if(this.outbound.enqueue(V),Q.subtype==="can_use_tool"&&this.onControlRequestSent)this.onControlRequestSent(V);let H=()=>{this.outbound.enqueue({type:"control_cancel_request",request_id:W});let G=this.pendingRequests.get(W);if(G)this.trackResolvedToolUseId(G.request),G.reject(new XY)};if(X)X.addEventListener("abort",H,{once:!0});try{return await new Promise((G,K)=>{this.pendingRequests.set(W,{request:{type:"control_request",request_id:W,request:Q},resolve:(B)=>{G(B)},reject:K,schema:Z})})}finally{if(X)X.removeEventListener("abort",H);this.pendingRequests.delete(W)}}createCanUseTool(Q){return async(Z,X,W,V,H,G)=>{let K=G??await NY(Z,X,W,V,H);if(K.behavior==="allow"||K.behavior==="deny")return K;let B=new AbortController,z=W.abortController.signal,J=()=>B.abort();z.addEventListener("abort",J,{once:!0});try{let L=Z6(Z.name,H,X,W,K.suggestions).then((P)=>({source:"hook",decision:P})),_=mZ();Q?.(sQ(Z,X,H,_));let O=this.sendRequest({subtype:"can_use_tool",tool_name:Z.name,input:X,permission_suggestions:K.suggestions,blocked_path:K.blockedPath,decision_reason:oQ(K.decisionReason),tool_use_id:H,agent_id:W.agentId},xZ(),B.signal,_).then((P)=>({source:"sdk",result:P})),q=await Promise.race([L,O]);if(q.source==="hook"){if(q.decision)return O.catch(()=>{}),B.abort(),q.decision;let P=await O;return EZ(P.result,Z,X,W)}return EZ(q.result,Z,X,W)}catch(L){return EZ({behavior:"deny",message:`Tool permission request failed: ${L}`,toolUseID:H},Z,X,W)}finally{if(this.getPendingPermissionRequests().length===0)BY("running");z.removeEventListener("abort",J)}}}createHookCallback(Q,Z){return{type:"callback",timeout:Z,callback:async(X,W,V)=>{try{return await this.sendRequest({subtype:"hook_callback",callback_id:Q,input:X,tool_use_id:W||void 0},GY(),V)}catch(H){return console.error(`Error in hook callback ${Q}:`,H),{}}}}}async handleElicitation(Q,Z,X,W,V,H,G){try{return await this.sendRequest({subtype:"elicitation",mcp_server_name:Q,message:Z,mode:V,url:H,elicitation_id:G,requested_schema:X},t0(),W)}catch{return{action:"cancel"}}}createSandboxAskCallback(){return async(Q)=>{try{return(await this.sendRequest({subtype:"can_use_tool",tool_name:rQ,input:{host:Q.host},tool_use_id:mZ(),description:`Allow network connection to ${Q.host}?`},xZ())).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 QY(Q){console.error(Q),process.exit(1)}async function Z6(Q,Z,X,W,V){let G=W.getAppState().toolPermissionContext.mode,K=LY(Q,Z,X,W,G,V,W.abortController.signal);for await(let B of K)if(B.permissionRequestResult&&(B.permissionRequestResult.behavior==="allow"||B.permissionRequestResult.behavior==="deny")){let z=B.permissionRequestResult;if(z.behavior==="allow"){let J=z.updatedInput||X,L=z.updatedPermissions??[];if(L.length>0){UZ(L);let _=W.getAppState(),O=yZ(_.toolPermissionContext,L);W.setAppState((q)=>{if(q.toolPermissionContext===O)return q;return{...q,toolPermissionContext:O}})}return{behavior:"allow",updatedInput:J,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}var qY={"`":"`",'"':'"',"<":">","{":"}","[":"]","(":")","'":"'"};function Y6(Q,Z){if(!new RegExp(Z,"i").test(Q))return[];if(Q.startsWith("/"))return[];let W=[],V=null,H=0,G=(J)=>!!J&&/[\p{L}\p{N}_]/u.test(J);for(let J=0;J<Q.length;J++){let L=Q[J];if(V){if(V==="["&&L==="["){H=J;continue}if(L!==qY[V])continue;if(V==="'"&&G(Q[J+1]))continue;W.push({start:H,end:J+1}),V=null}else if(L==="<"&&J+1<Q.length&&/[a-zA-Z/]/.test(Q[J+1])||L==="'"&&!G(Q[J-1])||L!=="<"&&L!=="'"&&L in qY)V=L,H=J}let K=[],B=new RegExp(`\\b${Z}\\b`,"gi"),z=Q.matchAll(B);for(let J of z){if(J.index===void 0)continue;let L=J.index,_=L+J[0].length;if(W.some((P)=>L>=P.start&&L<P.end))continue;let O=Q[L-1],q=Q[_];if(O==="/"||O==="\\"||O==="-")continue;if(q==="/"||q==="\\"||q==="-"||q==="?")continue;if(q==="."&&G(Q[_+1]))continue;K.push({word:J[0],start:L,end:_})}return K}function VV(Q){return Y6(Q,"ultrareview")}wZ();jZ();B6();J6();H6();K6();zY();$Y();W6();jZ();N6();G6();import{randomUUID as L6}from"crypto";HZ();wZ();jZ();Q6();X6();import{randomUUID as V6}from"crypto";function DY(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 AY(Q){let Z=Q.toLowerCase().trim();if(Z==="continue")return!0;return/\b(keep going|go on)\b/.test(Z)}function yY(Q,Z,X,W,V,H,G){let K=V6();_Y(K);let B=typeof Q==="string"?Q:Q.find((O)=>O.type==="text")?.text||"";OY(B);let z=typeof Q==="string"?Q:Q.findLast((O)=>O.type==="text")?.text||"";if(z)jY("user_prompt",{prompt_length:String(z.length),prompt:wY(z),"prompt.id":K});let J=DY(B),L=AY(B);if(d("",{is_negative:J,is_keep_going:L}),Z.length>0){let O=typeof Q==="string"?Q.trim()?[{type:"text",text:Q}]:[]:Q;return{messages:[o({content:[...O,...Z],uuid:V,imagePasteIds:X.length>0?X:void 0,permissionMode:H,isMeta:G||void 0}),...W],shouldQuery:!0}}return{messages:[o({content:Q,uuid:V,permissionMode:H,isMeta:G||void 0}),...W],shouldQuery:!0}}async function RV({input:Q,preExpansionInput:Z,mode:X,setToolJSX:W,context:V,pastedContents:H,ideSelection:G,messages:K,setUserInputOnProcessing:B,uuid:z,isAlreadyProcessing:J,querySource:L,canUseTool:_,skipSlashCommands:O,bridgeOrigin:q,isMeta:P,skipAttachments:f}){let v=typeof Q==="string"?Q:null;if(X==="prompt"&&v!==null&&!P)B?.(v);a("query_process_user_input_base_start");let F=V.getAppState(),U=await z6(Q,X,W,V,H,G,K,z,J,L,_,F.toolPermissionContext.mode,O,q,P,f,Z);if(a("query_process_user_input_base_end"),!U.shouldQuery)return U;a("query_hooks_start");let h=EY(Q)||"";for await(let E of xY(h,F.toolPermissionContext.mode,V,V.requestPrompt)){if(E.message?.type==="progress")continue;if(E.blockingError){let p=kY(E.blockingError);return{messages:[RY(`${p}
|
|
22
|
+
|
|
23
|
+
Original prompt: ${Q}`,"warning")],shouldQuery:!1,allowedTools:U.allowedTools}}if(E.preventContinuation){let p=E.stopReason?`Operation stopped by hook: ${E.stopReason}`:"Operation stopped by hook";return U.messages.push(o({content:p})),U.shouldQuery=!1,U}if(E.additionalContexts&&E.additionalContexts.length>0)U.messages.push(PY({type:"hook_additional_context",content:E.additionalContexts.map(UY),hookName:"UserPromptSubmit",toolUseID:`hook-${L6()}`,hookEvent:"UserPromptSubmit"}));let w=E.message;if(w&&w.type==="attachment")switch(w.attachment.type){case"hook_success":if(!w.attachment.content)break;U.messages.push({...w,attachment:{...w.attachment,content:UY(w.attachment.content)}});break;default:U.messages.push(w);break}else if(w)U.messages.push(w)}return a("query_hooks_end"),U}var gZ=1e4;function UY(Q){if(Q.length>gZ)return`${Q.substring(0,gZ)}… [output truncated - exceeded ${gZ} characters]`;return Q}async function z6(Q,Z,X,W,V,H,G,K,B,z,J,L,_,O,q,P,f){let v=null,F=[],U=[],h=Q;if(typeof Q==="string")v=Q;else if(Q.length>0){a("query_image_processing_start");let A=[];for(let N of Q)if(N.type==="image"){let x=await nZ(N);if(x.dimensions){let g=PZ(x.dimensions);if(g)U.push(g)}A.push(x.block)}else A.push(N);h=A,a("query_image_processing_end");let $=A[A.length-1];if($?.type==="text")v=$.text,F=A.slice(0,-1);else F=A}if(v===null&&Z!=="prompt")throw Error(`Mode: ${Z} requires a string input.`);let E=V?Object.values(V).filter(IY):[],w=E.map((A)=>A.id),p=V?await FY(V):new Map;a("query_pasted_image_processing_start");let i=await Promise.all(E.map(async(A)=>{let $={type:"image",source:{type:"base64",media_type:A.mediaType||"image/png",data:A.content}};return d("",{original_size_bytes:A.content.length}),{resized:await nZ($),originalDimensions:A.dimensions,sourcePath:A.sourcePath??p.get(A.id)}})),r=[];for(let{resized:A,originalDimensions:$,sourcePath:N}of i){if(A.dimensions){let x=PZ(A.dimensions,N);if(x)U.push(x)}else if($){let x=PZ($,N);if(x)U.push(x)}else if(N)U.push(`[Image source: ${N}]`);r.push(A.block)}a("query_pasted_image_processing_end");let C=_;if(O&&v!==null&&v.startsWith("/")){let A=MY(v),$=A?SY(A.commandName,W.options.commands):void 0;if($)if(hY($))C=!1;else{let N=`/${fY($)} isn't available over Remote Control.`;return{messages:[o({content:v,uuid:K}),TY(`<local-command-stdout>${N}</local-command-stdout>`)],shouldQuery:!1,resultText:N}}}let S=!P&&v!==null&&(Z!=="prompt"||C||!v.startsWith("/"));a("query_attachment_loading_start");let k=S?await bY(CY(v,W,H??null,[],G,z)):[];if(a("query_attachment_loading_end"),v!==null&&Z==="bash"){let{processBashCommand:A}=await import("./processBashCommand-1.1.27-y2nx754j.mjs");return lZ(await A(v,F,k,W,X),U)}if(v!==null&&!C&&v.startsWith("/")){let{processSlashCommand:A}=await import("./processSlashCommand-1.1.27-mert7w0e.mjs"),$=await A(v,F,r,k,W,X,K,B,J);return lZ($,U)}if(v!==null&&Z==="prompt"){let A=v.trim(),$=k.find((N)=>N.attachment.type==="agent_mention");if($){let N=`@agent-${$.attachment.agentType}`,x=A===N,g=A.startsWith(N)&&!x;d("",{is_subagent_only:x,is_prefix:g})}}return lZ(yY(h,r,w,k,K,L,q),U)}function lZ(Q,Z){if(Z.length>0)Q.messages.push(o({content:Z.map((X)=>({type:"text",text:X})),isMeta:!0}));return Q}$Y();function hV(Q){if(Q.type!=="user")return;let Z=Q.message?.content;if(!Z)return;if(Array.isArray(Z)&&Z.length===0)return;let X="uuid"in Q&&typeof Q.uuid==="string"?Q.uuid:void 0;return{content:Array.isArray(Z)?v6(Z):Z,uuid:X}}function v6(Q){if(!Q.some(uY))return Q;return Q.map((Z)=>{if(!uY(Z))return Z;let X=Z.source,W=typeof X.mediaType==="string"&&X.mediaType?X.mediaType:pY(Z.source.data);return{...Z,source:{type:"base64",media_type:W,data:Z.source.data}}})}function uY(Q){if(Q.type!=="image"||Q.source?.type!=="base64")return!1;return!Q.source.media_type}HZ();j6();D6();w6();q6();_6();A6();import{randomUUID as O6}from"crypto";function y6(Q){return Q===dY?gY:Q}function lV(Q){let X=lY()?.outputStyle??iY,W={type:"system",subtype:"init",cwd:mY(),session_id:NZ(),tools:Q.tools.map((V)=>y6(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:nY().source,betas:cY(),claude_code_version:"99.0.0",output_style:X,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:O6()};return W.fast_mode_state=aY(Q.model,Q.fastMode),W}i6();HZ();GZ();dZ();a6();l6();w0();r6();n6();import{isAbsolute as o6,resolve as s6}from"path";function t6(Q,Z,X){let W=[],V=[],H=[];for(let[G,K]of Object.entries(Q)){let B=Z[G],z=b9(K.source,X?.projectRoot);if(!B)W.push(G);else if(K.sourceIsFallback)H.push(G);else if(!E9(z,B.source))V.push({name:G,declaredSource:z,materializedSource:B.source});else H.push(G)}return{missing:W,sourceChanged:V,upToDate:H}}async function PW(Q){let Z=$9();if(Object.keys(Z).length===0)return{installed:[],updated:[],failed:[],upToDate:[],skipped:[]};let X;try{X=await P9()}catch(J){t(J),X={}}let W=t6(Z,X,{projectRoot:X0()}),V=[...W.missing.map((J)=>({name:J,source:b9(Z[J].source),action:"install"})),...W.sourceChanged.map(({name:J,declaredSource:L})=>({name:J,source:L,action:"update"}))],H=[],G=[];for(let J of V){if(Q?.skip?.(J.name,J.source)){H.push(J.name);continue}if(J.action==="update"&&U9(J.source)&&!await y9(J.source.path)){I(`[reconcile] '${J.name}' declared path does not exist; keeping materialized entry`),H.push(J.name);continue}G.push(J)}if(G.length===0)return{installed:[],updated:[],failed:[],upToDate:W.upToDate,skipped:H};I(`[reconcile] ${G.length} marketplace(s): ${G.map((J)=>`${J.name}(${J.action})`).join(", ")}`);let K=[],B=[],z=[];for(let J=0;J<G.length;J++){let{name:L,source:_,action:O}=G[J];Q?.onProgress?.({type:"installing",name:L,action:O,index:J+1,total:G.length});try{let q=await F9(_);if(O==="install")K.push(L);else B.push(L);Q?.onProgress?.({type:"installed",name:L,alreadyMaterialized:q.alreadyMaterialized})}catch(q){let P=j9(q);z.push({name:L,error:P}),Q?.onProgress?.({type:"failed",name:L,error:P}),t(q)}}return{installed:K,updated:B,failed:z,upToDate:W.upToDate,skipped:H}}function b9(Q,Z){if((Q.source==="directory"||Q.source==="file")&&!o6(Q.path)){let X=Z??X0(),W=O9(X);return{...Q,path:s6(W??X,Q.path)}}return Q}
|
|
24
|
+
export{xZ as Qa,EZ as Ra,YY as Sa,rQ as Ta,eQ as Ua,t9 as Va,T0 as Wa,XQ as Xa,VQ as Ya,WQ as Za,VV as _a,RV as $a,hV as ab,y6 as bb,lV as cb,t6 as db,PW as eb,F6 as fb,b6 as gb,M6 as hb,m6 as ib,d6 as jb,g6 as kb};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{Paa as F,Sha as U,Taa as m,V$ as K,W$ as E,_ha as H}from"./cli-1.1.27-48ezce33.mjs";import{Gja as v,Ija as x}from"./cli-1.1.27-cxy3fqs0.mjs";import{jla as D,nla as g}from"./cli-1.1.27-r335xv52.mjs";import{Mta as S}from"./cli-1.1.27-8vrv0ver.mjs";import{basename as f,dirname as u,join as I,sep as O}from"path";function _(q,B){if(!q)return{directory:B||v(),prefix:""};let G=F(q,B);if(q.endsWith("/")||q.endsWith(O))return{directory:G,prefix:""};let N=u(G),J=f(q);return{directory:N,prefix:J}}async function b(q){let B=Z.get(q);if(B)return B;try{let J=(await D().readdir(q)).filter((M)=>M.isDirectory()&&!M.name.startsWith(".")).map((M)=>({name:M.name,path:I(q,M.name),type:"directory"})).slice(0,100);return Z.set(q,J),J}catch(G){return U(G),[]}}async function d(q,B={}){let{basePath:G=v(),maxResults:N=10}=B,{directory:J,prefix:M}=_(q,G),V=await b(J),z=M.toLowerCase();return V.filter((X)=>X.name.toLowerCase().startsWith(z)).slice(0,N).map((X)=>({id:X.path,displayText:X.name+"/",description:"directory",metadata:{type:"directory"}}))}function o(q){return q.startsWith("~/")||q.startsWith("/")||q.startsWith("./")||q.startsWith("../")||q==="~"||q==="."||q===".."}async function k(q,B=!1){let G=`${q}:${B}`,N=A.get(G);if(N)return N;try{let V=(await D().readdir(q)).filter((z)=>B||!z.name.startsWith(".")).map((z)=>({name:z.name,path:I(q,z.name),type:z.isDirectory()?"directory":"file"})).sort((z,W)=>{if(z.type==="directory"&&W.type!=="directory")return-1;if(z.type!=="directory"&&W.type==="directory")return 1;return z.name.localeCompare(W.name)}).slice(0,100);return A.set(G,V),V}catch(J){return U(J),[]}}async function n(q,B={}){let{basePath:G=v(),maxResults:N=10,includeFiles:J=!0,includeHidden:M=!1}=B,{directory:V,prefix:z}=_(q,G),W=await k(V,M),X=z.toLowerCase(),j=W.filter((Q)=>{if(!J&&Q.type==="file")return!1;return Q.name.toLowerCase().startsWith(X)}).slice(0,N),w=q.includes("/")||q.includes(O),Y="";if(w){let Q=q.lastIndexOf("/"),$=q.lastIndexOf(O),L=Math.max(Q,$);Y=q.substring(0,L+1)}if(Y.startsWith("./")||Y.startsWith("."+O))Y=Y.slice(2);return j.map((Q)=>{let $=Y+Q.name;return{id:$,displayText:Q.type==="directory"?$+"/":$,metadata:{type:Q.type}}})}var R=500,T=300000,Z,A;var C=S(()=>{E();x();g();H();m();Z=new K({max:R,ttl:T}),A=new K({max:R,ttl:T})});
|
|
2
|
+
export{d as si,o as ti,n as ui,C as vi};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{ima as B,jma as H,qma as V}from"./cli-1.1.27-t1dxp2pw.mjs";import{Mta as Q}from"./cli-1.1.27-8vrv0ver.mjs";function $(){let q=process.env.CLAUDIN_NERD_FONT;if(B(q))return!0;if(H(q))return!1;let z=process.env.TERM_PROGRAM;if(z&&W.has(z))return!0;let J=process.env.TERM?.toLowerCase()??"";if(X.some((K)=>J.includes(K)))return!0;return!1}var W,X;var Y=Q(()=>{V();W=new Set(["ghostty","kitty","WezTerm","iTerm.app","WarpTerminal"]),X=["kitty","ghostty","wezterm"]});
|
|
2
|
+
export{$ as Di,Y as Ei};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{Bx as U,Cx as V,Fx as f,gv as R,hv as T,iv as $}from"./cli-1.1.27-w8pwj9ef.mjs";import{q7 as Q,r7 as _}from"./cli-1.1.27-xdfkhk5m.mjs";import{$ba as L,Sha as G,_ha as Z,gca as Y}from"./cli-1.1.27-48ezce33.mjs";import{Mta as X}from"./cli-1.1.27-8vrv0ver.mjs";function S(q,j){let z=new Map;for(let x of j)z.set(x.agentType,x);let H=new Set,J=[];for(let x of q){let K=`${x.agentType}:${x.source}`;if(H.has(K))continue;H.add(K);let E=z.get(x.agentType),W=E&&E.source!==x.source?E.source:void 0;J.push({...x,overriddenBy:W})}return J}function I(q){let j=q.model||U();if(!j)return;if(j==="inherit")return"inherit";if(j==="haiku"||j==="sonnet"||j==="opus"){try{if(!V())return"inherit";if(!Q(j))return"inherit"}catch(z){G(z)}return j}return T(j,`agent:${q.agentType}`,{getAvailableModelIds:R,logDebug:()=>{},logErr:G})??j}function N(q){return L(q).toLowerCase()}function P(q,j){return q.agentType.localeCompare(j.agentType,void 0,{sensitivity:"base"})}var O;var h=X(()=>{f();_();Z();Y();$();O=[{label:"User agents",source:"userSettings"},{label:"Project agents",source:"projectSettings"},{label:"Local agents",source:"localSettings"},{label:"Managed agents",source:"policySettings"},{label:"Plugin agents",source:"plugin"},{label:"CLI arg agents",source:"flagSettings"},{label:"Built-in agents",source:"built-in"}]});
|
|
2
|
+
export{O as Bd,S as Cd,I as Dd,N as Ed,P as Fd,h as Gd};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import{Fk as J,Gx as L,Hx as v,JS as b,RO as V,TO as z}from"./cli-1.1.27-w8pwj9ef.mjs";import{Tba as F,Yba as X}from"./cli-1.1.27-48ezce33.mjs";import{Aja as Y,Bja as A,Cja as H,Dja as k}from"./cli-1.1.27-njcbrvnc.mjs";import{uka as W,xka as R}from"./cli-1.1.27-7gnbh46g.mjs";import{Ala as f,xla as D}from"./cli-1.1.27-r335xv52.mjs";import{Lpa as q,Vra as M}from"./cli-1.1.27-m6ne80zc.mjs";import{Mta as C}from"./cli-1.1.27-8vrv0ver.mjs";function T(U){let Q=[];for(let w of U){if(w.type!=="user"&&w.type!=="assistant")continue;if("isMeta"in w&&w.isMeta)continue;if("origin"in w&&w.origin&&w.origin.kind!=="human")continue;let K=w.message.content;if(typeof K==="string")Q.push(K);else if(Array.isArray(K)){for(let B of K)if("type"in B&&B.type==="text"&&"text"in B)Q.push(B.text)}}let G=Q.join(`
|
|
2
|
+
`);return G.length>$?G.slice(-$):G}async function p(U,Q){let G=U.trim();if(!G)return null;try{let w=await V({systemPrompt:L([P]),userPrompt:G,outputFormat:{type:"json_schema",schema:{type:"object",properties:{title:{type:"string"}},required:["title"],additionalProperties:!1}},signal:Q,options:{querySource:"generate_session_title",agents:[],isNonInteractiveSession:q(),hasAppendSystemPrompt:!1,mcpTools:[]}}),K=J(w.message.content),B=I().safeParse(F(K)),Z=B.success?B.data.title.trim()||null:null;return W("",{success:Z!==null}),Z}catch(w){return D(`generateSessionTitle failed: ${w}`,{level:"error"}),W("",{success:!1}),"Claudin"}}var $=1000,P=`Generate a concise, sentence-case title (3-7 words) that captures the main topic or goal of this coding session. The title should be clear enough that the user recognizes the session in a list. Use sentence case: capitalize only the first word and proper nouns.
|
|
3
|
+
|
|
4
|
+
Return JSON with a single "title" field.
|
|
5
|
+
|
|
6
|
+
Good examples:
|
|
7
|
+
{"title": "Fix login button on mobile"}
|
|
8
|
+
{"title": "Add OAuth authentication"}
|
|
9
|
+
{"title": "Debug failing CI tests"}
|
|
10
|
+
{"title": "Refactor API client error handling"}
|
|
11
|
+
|
|
12
|
+
Bad (too vague): {"title": "Code changes"}
|
|
13
|
+
Bad (too long): {"title": "Investigate and fix the issue where the login button does not respond on mobile devices"}
|
|
14
|
+
Bad (wrong case): {"title": "Fix Login Button On Mobile"}`,I;var _=C(()=>{A();M();R();z();f();X();k();b();v();I=H(()=>Y.object({title:Y.string()}))});
|
|
15
|
+
export{T as Xe,p as Ye,_ as Ze};
|