@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
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{cua as M}from"./cli-1.1.26-zb5hq3ry.mjs";function G(q){if(q===null||typeof q!=="object"||Array.isArray(q))return null;return q}function W(q){return typeof q==="string"&&q.length>0?q:null}function T(q){return typeof q==="boolean"?q:null}function g(q){if(!Array.isArray(q))return null;let z=[];for(let A of q){if(typeof A!=="string")return null;z.push(A)}return z}function F(q){let z=G(q);if(!z)return null;let A={};for(let[C,B]of Object.entries(z))if(typeof B==="string")A[C]=B;else if(typeof B==="number"||typeof B==="boolean")A[C]=String(B);return A}function k(q,...z){let A=q;for(let C of z){let B=G(A);if(!B)return;A=B[C]}return A}var O=()=>{};import{cpSync as X,existsSync as Q,mkdirSync as Y,readFileSync as Z,readdirSync as _,statSync as U,writeFileSync as $}from"fs";import{dirname as j}from"path";function b(q){try{return G(JSON.parse(Z(q,"utf8")))}catch{return null}}function x(q,z){$(q,JSON.stringify(z,null,2),{encoding:"utf8"})}function N(q){Y(q,{recursive:!0})}function D(q,z){if(!Q(q))return!1;if(!U(q).isDirectory())return!1;return N(j(z)),X(q,z,{recursive:!0,force:!1,errorOnExist:!1,dereference:!0}),!0}function p(q,z){let A=[],C=(B,H)=>{let I;try{I=_(B)}catch{return}for(let E of I.sort()){let J=`${B}/${E}`,K=H?`${H}/${E}`:E,L;try{L=U(J).isDirectory()}catch{continue}if(L)C(J,K);else if(z.some((V)=>E.endsWith(V)))A.push(K)}};if(!Q(q))return A;return C(q,""),A}var R=M(()=>{O()});
|
|
2
|
-
export{G as Zf,W as _f,T as $f,g as ag,F as bg,k as cg,O as dg,b as eg,x as fg,N as gg,D as hg,p as ig,R as jg};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{eg as A,fg as J,gg as $,jg as G}from"./cli-1.1.26-5fv3wdye.mjs";import{Dga as h,Jfa as O,Mfa as R,ega as b,fga as w,jga as S,kga as C,rga as x}from"./cli-1.1.26-mvjefec1.mjs";import{Hka as m,yka as N}from"./cli-1.1.26-hk66nk4j.mjs";import{Ema as D,tma as F}from"./cli-1.1.26-dyyg0r9f.mjs";import{cua as E}from"./cli-1.1.26-zb5hq3ry.mjs";import{existsSync as T}from"fs";import{dirname as f}from"path";function M(q,z,Q={}){if(!T(q))return{outcome:"noSource",copiedKeys:0};let B=A(q);if(!B)return{outcome:"unparseableSource",copiedKeys:0};let L=T(z),U=L?A(z)??{}:{},I={...U},W=0;for(let V of Q.keys??Object.keys(B)){if(!(V in B))continue;if(V in U)continue;I[V]=B[V],W+=1}if(W===0&&L)return{outcome:"merged",copiedKeys:0};try{$(f(z)),J(z,I)}catch(V){return{outcome:"writeFailed",copiedKeys:0,message:V instanceof Error?V.message:String(V)}}return{outcome:"merged",copiedKeys:W}}var k=E(()=>{G()});import{chmodSync as v,existsSync as _,readFileSync as j,writeFileSync as y}from"fs";import{homedir as H}from"os";import{join as Z}from"path";function P(q){return Z(q,".claude")}function d(q,z,Q,B){let L=Z(q,".credentials.json"),U=Z(z,".credentials.json");if(!_(L))return 0;try{if(_(U)){let W=j(L),V=j(U);if(W.equals(V))return v(U,384),0;return B.push(`${U} already exists with different content — kept new file untouched`),0}$(z);let I=j(L);return y(U,I),v(U,384),g(I)}catch(I){return Q.push(`failed to copy .credentials.json: ${I instanceof Error?I.message:String(I)}`),0}}function g(q){try{let z=JSON.parse(q.toString("utf8"));if(z&&typeof z==="object")return Object.keys(z).length}catch{}return 1}function c(q,z,Q){let B=M(Z(q,"settings.json"),Z(z,"settings.json"),{keys:u});if(B.outcome==="unparseableSource")Q.push("legacy settings.json could not be parsed; skipped");else if(B.outcome==="writeFailed")Q.push(`failed to write settings.json: ${B.message}`);return B.copiedKeys}function K(q){return Z(q,`.claude${N()}.json`)}function l(q){return Z(q,`config${N()}.json`)}function p(q,z,Q){let B=K(q),L=l(z),U=M(B,L);if(U.outcome==="unparseableSource")return Q.push(`legacy ${B} could not be parsed; skipped`),0;if(U.outcome==="writeFailed")return Q.push(`failed to write ${L}: ${U.message}`),0;if(U.outcome==="noSource")return 0;return b(null),U.copiedKeys}function a(){let z=R().claudeToClaudinMigratedAt;if(typeof z==="string"&&z.length>0)return{migrated:!0,at:z};return{migrated:!1}}function n(q){O((z)=>({...z,claudeToClaudinMigratedAt:q}))}async function Zq(q={}){let z=q.homeDir??H(),Q=P(z),B=q.newDir??F(),L=[],U=[],I={tokens:0,settingsKeys:0,globalConfigKeys:0,anthropicProfileCreated:!1,errors:L,warnings:U,alreadyMigrated:!1,legacyDir:Q,newDir:B},W=_(K(z));if(!_(Q)&&!W)return I;let V=a();if(V.migrated&&!q.force)return I.alreadyMigrated=!0,I.migratedAt=V.at,I;try{$(B)}catch(Y){return L.push(`failed to create ${B}: ${Y instanceof Error?Y.message:String(Y)}`),I}if(_(Q))I.tokens=d(Q,B,L,U),I.settingsKeys=c(Q,B,L);if(I.globalConfigKeys=p(z,B,U),I.anthropicProfileCreated=i(B,I.tokens,U),L.length===0){let Y=new Date().toISOString();n(Y),I.migratedAt=Y}return I}function i(q,z,Q){if(z<=0)return!1;let B=Z(q,".credentials.json"),L;try{L=JSON.parse(j(B,"utf8"))}catch(X){return Q.push(`failed to read migrated .credentials.json for profile bootstrap: ${X instanceof Error?X.message:String(X)}`),!1}let I=L?.claudeAiOauth?.accessToken;if(typeof I!=="string"||I.length===0)return!1;let W=C();if(W.some((X)=>X.provider==="anthropic"))return!1;let V=S("anthropic"),Y={provider:"anthropic",name:V.name,baseUrl:V.baseUrl,model:V.model};try{if(!x(Y,{makeActive:W.length===0}))return Q.push("anthropic profile could not be saved after migration"),!1;return!0}catch(X){return Q.push(`failed to create anthropic profile: ${X instanceof Error?X.message:String(X)}`),!1}}function _q(q){if(q.alreadyMigrated)return`nothing to do (last run: ${q.migratedAt??"unknown"}). Pass --force to re-run.`;let z=[];z.push(`${q.tokens} token${q.tokens===1?"":"s"}`),z.push(`${q.settingsKeys} settings key${q.settingsKeys===1?"":"s"}`),z.push(`${q.globalConfigKeys} global config key${q.globalConfigKeys===1?"":"s"}`),z.push(q.anthropicProfileCreated?"anthropic profile created":"anthropic profile already present");let Q=z.join(", "),B=`. ${q.legacyDir} kept untouched. Run /import to bring skills, MCP servers, agents and commands.`,L=`${Q}${B}`;if(q.warnings.length>0)L+=` Warnings: ${q.warnings.join("; ")}`;if(q.errors.length>0)L+=` Errors: ${q.errors.join("; ")}`;return L}function o(q=H()){return _(P(q))}function t(q=H()){return _(K(q))}function $q(q=H()){let z=R();if(z.claudeToClaudinMigratedAt)return!1;if(z.legacyMigrationSkipped===!0)return!1;return o(q)||t(q)}function jq(){O((q)=>({...q,legacyMigrationSkipped:!0}))}var u;var s=E(()=>{m();w();G();k();D();h();u=["customApiKeyResponses","providerProfiles","activeProviderProfileId"]});
|
|
2
|
-
export{Zq as ad,_q as bd,o as cd,$q as dd,jq as ed,s as fd};
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import{ra as F}from"./cli-1.1.26-abp7zq8a.mjs";import{iu as N,ju as b}from"./cli-1.1.26-kvt0v6vq.mjs";import{$W as _,XW as U,_W as d,aX as M,fX as I}from"./cli-1.1.26-v7k7gw6h.mjs";import{B9 as z,E9 as T,L9 as x,M9 as H,R9 as v}from"./cli-1.1.26-agrrdhst.mjs";import{q$ as Z,s$ as P}from"./cli-1.1.26-mvjefec1.mjs";import{Ika as B,Lka as D}from"./cli-1.1.26-n0thzakv.mjs";import{Lla as Y,Ola as A,ola as O,tla as f}from"./cli-1.1.26-nr4x1ay3.mjs";import{Ema as S,wma as L}from"./cli-1.1.26-dyyg0r9f.mjs";import{Cta as i,kta as y}from"./cli-1.1.26-hxty6b5t.mjs";import{dua as k}from"./cli-1.1.26-zb5hq3ry.mjs";i();A();P();d();D();b();A();P();S();T();v();I();f();var u=`{"type":"keep_alive"}
|
|
2
|
-
`,C=1000,h=1000,R=30000,w=600000,p=1e4,m=300000,E=R*2,c=new Set([1002,4001,4003]);class W{ws=null;lastSentId=null;url;state="idle";onData;onCloseCallback;onConnectCallback;headers;sessionId;autoReconnect;isBridge;reconnectAttempts=0;reconnectStartTime=null;reconnectTimer=null;lastReconnectAttemptTime=null;lastActivityTime=0;pingInterval=null;pongReceived=!0;keepAliveInterval=null;messageBuffer;isBunWs=!1;connectStartTime=0;refreshHeaders;constructor(J,K={},Q,X,$){this.url=J,this.headers=K,this.sessionId=Q,this.refreshHeaders=X,this.autoReconnect=$?.autoReconnect??!0,this.isBridge=$?.isBridge??!1,this.messageBuffer=new N(C)}async connect(){if(this.state!=="idle"&&this.state!=="reconnecting"){Y(`WebSocketTransport: Cannot connect, current state is ${this.state}`,{level:"error"}),Z("error","cli_websocket_connect_failed");return}this.state="reconnecting",this.connectStartTime=Date.now(),Y(`WebSocketTransport: Opening ${this.url.href}`),Z("info","cli_websocket_connect_opening");let J={...this.headers};if(this.lastSentId)J["X-Last-Request-Id"]=this.lastSentId,Y(`WebSocketTransport: Adding X-Last-Request-Id header: ${this.lastSentId}`);if(typeof Bun<"u"){let K=new globalThis.WebSocket(this.url.href,{headers:J,proxy:H(this.url.href),tls:z()||void 0});this.ws=K,this.isBunWs=!0,K.addEventListener("open",this.onBunOpen),K.addEventListener("message",this.onBunMessage),K.addEventListener("error",this.onBunError),K.addEventListener("close",this.onBunClose),K.addEventListener("pong",this.onPong)}else{let{default:K}=await import("./wrapper-1.1.26-smg8ftbk.mjs"),Q=new K(this.url.href,{headers:J,agent:x(this.url.href),...z()});this.ws=Q,this.isBunWs=!1,Q.on("open",this.onNodeOpen),Q.on("message",this.onNodeMessage),Q.on("error",this.onNodeError),Q.on("close",this.onNodeClose),Q.on("pong",this.onPong)}}onBunOpen=()=>{if(this.handleOpenEvent(),this.lastSentId)this.replayBufferedMessages("")};onBunMessage=(J)=>{let K=typeof J.data==="string"?J.data:String(J.data);if(this.lastActivityTime=Date.now(),Z("info","cli_websocket_message_received",{length:K.length}),this.onData)this.onData(K)};onBunError=()=>{Y("WebSocketTransport: Error",{level:"error"}),Z("error","cli_websocket_connect_error")};onBunClose=(J)=>{let K=J.code===1000||J.code===1001;Y(`WebSocketTransport: Closed: ${J.code}`,K?void 0:{level:"error"}),Z("error","cli_websocket_connect_closed"),this.handleConnectionError(J.code)};onNodeOpen=()=>{let J=this.ws;if(this.handleOpenEvent(),!J)return;let Q=J.upgradeReq;if(Q?.headers?.["x-last-request-id"]){let X=Q.headers["x-last-request-id"];this.replayBufferedMessages(X)}};onNodeMessage=(J)=>{let K=J.toString();if(this.lastActivityTime=Date.now(),Z("info","cli_websocket_message_received",{length:K.length}),this.onData)this.onData(K)};onNodeError=(J)=>{Y(`WebSocketTransport: Error: ${J.message}`,{level:"error"}),Z("error","cli_websocket_connect_error")};onNodeClose=(J,K)=>{let Q=J===1000||J===1001;Y(`WebSocketTransport: Closed: ${J}`,Q?void 0:{level:"error"}),Z("error","cli_websocket_connect_closed"),this.handleConnectionError(J)};onPong=()=>{this.pongReceived=!0};handleOpenEvent(){let J=Date.now()-this.connectStartTime;if(Y("WebSocketTransport: Connected"),Z("info","cli_websocket_connect_connected",{duration_ms:J}),this.isBridge&&this.reconnectStartTime!==null)B("",{attempts:this.reconnectAttempts,downtimeMs:Date.now()-this.reconnectStartTime});this.reconnectAttempts=0,this.reconnectStartTime=null,this.lastReconnectAttemptTime=null,this.lastActivityTime=Date.now(),this.state="connected",this.onConnectCallback?.(),this.startPingInterval(),this.startKeepaliveInterval(),_(()=>{this.write({type:"keep_alive"})})}sendLine(J){if(!this.ws||this.state!=="connected")return Y("WebSocketTransport: Not connected"),Z("info","cli_websocket_send_not_connected"),!1;try{return this.ws.send(J),this.lastActivityTime=Date.now(),!0}catch(K){return Y(`WebSocketTransport: Failed to send: ${K}`,{level:"error"}),Z("error","cli_websocket_send_error"),this.handleConnectionError(),!1}}removeWsListeners(J){if(this.isBunWs){let K=J;K.removeEventListener("open",this.onBunOpen),K.removeEventListener("message",this.onBunMessage),K.removeEventListener("error",this.onBunError),K.removeEventListener("close",this.onBunClose),K.removeEventListener("pong",this.onPong)}else{let K=J;K.off("open",this.onNodeOpen),K.off("message",this.onNodeMessage),K.off("error",this.onNodeError),K.off("close",this.onNodeClose),K.off("pong",this.onPong)}}doDisconnect(){if(this.stopPingInterval(),this.stopKeepaliveInterval(),M(),this.ws)this.removeWsListeners(this.ws),this.ws.close(),this.ws=null}handleConnectionError(J){if(Y(`WebSocketTransport: Disconnected from ${this.url.href}`+(J!=null?` (code ${J})`:"")),Z("info","cli_websocket_disconnected"),this.isBridge)B("",{closeCode:J,msSinceLastActivity:this.lastActivityTime>0?Date.now()-this.lastActivityTime:-1,wasConnected:this.state==="connected",reconnectAttempts:this.reconnectAttempts});if(this.doDisconnect(),this.state==="closing"||this.state==="closed")return;let K=!1;if(J===4003&&this.refreshHeaders){let $=this.refreshHeaders();if($.Authorization!==this.headers.Authorization)Object.assign(this.headers,$),K=!0,Y("WebSocketTransport: 4003 received but headers refreshed, scheduling reconnect"),Z("info","cli_websocket_4003_token_refreshed")}if(J!=null&&c.has(J)&&!K){Y(`WebSocketTransport: Permanent close code ${J}, not reconnecting`,{level:"error"}),Z("error","cli_websocket_permanent_close",{closeCode:J}),this.state="closed",this.onCloseCallback?.(J);return}if(!this.autoReconnect){this.state="closed",this.onCloseCallback?.(J);return}let Q=Date.now();if(!this.reconnectStartTime)this.reconnectStartTime=Q;if(this.lastReconnectAttemptTime!==null&&Q-this.lastReconnectAttemptTime>E)Y(`WebSocketTransport: Detected system sleep (${Math.round((Q-this.lastReconnectAttemptTime)/1000)}s gap), resetting reconnection budget`),Z("info","cli_websocket_sleep_detected",{gapMs:Q-this.lastReconnectAttemptTime}),this.reconnectStartTime=Q,this.reconnectAttempts=0;this.lastReconnectAttemptTime=Q;let X=Q-this.reconnectStartTime;if(X<w){if(this.reconnectTimer)clearTimeout(this.reconnectTimer),this.reconnectTimer=null;if(!K&&this.refreshHeaders){let G=this.refreshHeaders();Object.assign(this.headers,G),Y("WebSocketTransport: Refreshed headers for reconnect")}this.state="reconnecting",this.reconnectAttempts++;let $=Math.min(h*Math.pow(2,this.reconnectAttempts-1),R),j=Math.max(0,$+$*0.25*(2*Math.random()-1));if(Y(`WebSocketTransport: Reconnecting in ${Math.round(j)}ms (attempt ${this.reconnectAttempts}, ${Math.round(X/1000)}s elapsed)`),Z("error","cli_websocket_reconnect_attempt",{reconnectAttempts:this.reconnectAttempts}),this.isBridge)B("",{attempt:this.reconnectAttempts,elapsedMs:X,delayMs:Math.round(j)});this.reconnectTimer=setTimeout(()=>{this.reconnectTimer=null,this.connect()},j)}else if(Y(`WebSocketTransport: Reconnection time budget exhausted after ${Math.round(X/1000)}s for ${this.url.href}`,{level:"error"}),Z("error","cli_websocket_reconnect_exhausted",{reconnectAttempts:this.reconnectAttempts,elapsedMs:X}),this.state="closed",this.onCloseCallback)this.onCloseCallback(J)}close(){if(this.reconnectTimer)clearTimeout(this.reconnectTimer),this.reconnectTimer=null;this.stopPingInterval(),this.stopKeepaliveInterval(),M(),this.state="closing",this.doDisconnect()}replayBufferedMessages(J){let K=this.messageBuffer.toArray();if(K.length===0)return;let Q=0;if(J){let $=K.findIndex((j)=>("uuid"in j)&&j.uuid===J);if($>=0){Q=$+1;let j=K.slice(Q);if(this.messageBuffer.clear(),this.messageBuffer.addAll(j),j.length===0)this.lastSentId=null;Y(`WebSocketTransport: Evicted ${Q} confirmed messages, ${j.length} remaining`),Z("info","cli_websocket_evicted_confirmed_messages",{evicted:Q,remaining:j.length})}}let X=K.slice(Q);if(X.length===0){Y("WebSocketTransport: No new messages to replay"),Z("info","cli_websocket_no_messages_to_replay");return}Y(`WebSocketTransport: Replaying ${X.length} buffered messages`),Z("info","cli_websocket_messages_to_replay",{count:X.length});for(let $ of X){let j=O($)+`
|
|
3
|
-
`;if(!this.sendLine(j)){this.handleConnectionError();break}}}isConnectedStatus(){return this.state==="connected"}isClosedStatus(){return this.state==="closed"}setOnData(J){this.onData=J}setOnConnect(J){this.onConnectCallback=J}setOnClose(J){this.onCloseCallback=J}getStateLabel(){return this.state}async write(J){if("uuid"in J&&typeof J.uuid==="string")this.messageBuffer.add(J),this.lastSentId=J.uuid;let K=O(J)+`
|
|
4
|
-
`;if(this.state!=="connected")return;let Q=this.sessionId?` session=${this.sessionId}`:"",X=this.getControlMessageDetailLabel(J);Y(`WebSocketTransport: Sending message type=${J.type}${Q}${X}`),this.sendLine(K)}getControlMessageDetailLabel(J){if(J.type==="control_request"){let{request_id:K,request:Q}=J,X=Q.subtype==="can_use_tool"?Q.tool_name:"";return` subtype=${Q.subtype} request_id=${K}${X?` tool=${X}`:""}`}if(J.type==="control_response"){let{subtype:K,request_id:Q}=J.response;return` subtype=${K} request_id=${Q}`}return""}startPingInterval(){this.stopPingInterval(),this.pongReceived=!0;let J=Date.now();this.pingInterval=setInterval(()=>{if(this.state==="connected"&&this.ws){let K=Date.now(),Q=K-J;if(J=K,Q>E){Y(`WebSocketTransport: ${Math.round(Q/1000)}s tick gap detected — process was suspended, forcing reconnect`),Z("info","cli_websocket_sleep_detected_on_ping",{gapMs:Q}),this.handleConnectionError();return}if(!this.pongReceived){Y("WebSocketTransport: No pong received, connection appears dead",{level:"error"}),Z("error","cli_websocket_pong_timeout"),this.handleConnectionError();return}this.pongReceived=!1;try{this.ws.ping?.()}catch(X){Y(`WebSocketTransport: Ping failed: ${X}`,{level:"error"}),Z("error","cli_websocket_ping_failed")}}},p)}stopPingInterval(){if(this.pingInterval)clearInterval(this.pingInterval),this.pingInterval=null}startKeepaliveInterval(){if(this.stopKeepaliveInterval(),L(process.env.CLAUDE_CODE_REMOTE))return;this.keepAliveInterval=setInterval(()=>{if(this.state==="connected"&&this.ws)try{this.ws.send(u),this.lastActivityTime=Date.now(),Y("WebSocketTransport: Sent periodic keep_alive data frame")}catch(J){Y(`WebSocketTransport: Periodic keep_alive failed: ${J}`,{level:"error"}),Z("error","cli_websocket_keepalive_failed")}},m)}stopKeepaliveInterval(){if(this.keepAliveInterval)clearInterval(this.keepAliveInterval),this.keepAliveInterval=null}}var g=100,t=15000,l=3000;class n extends W{postUrl;uploader;streamEventBuffer=[];streamEventTimer=null;constructor(J,K={},Q,X,$){super(J,K,Q,X,$);let{maxConsecutiveFailures:j,onBatchDropped:G}=$??{};this.postUrl=r(J),this.uploader=new F({maxBatchSize:500,maxQueueSize:1e5,baseDelayMs:500,maxDelayMs:8000,jitterMs:1000,maxConsecutiveFailures:j,onBatchDropped:(V,q)=>{Z("error","cli_hybrid_batch_dropped_max_failures",{batchSize:V,failures:q}),G?.(V,q)},send:(V)=>this.postOnce(V)}),Y(`HybridTransport: POST URL = ${this.postUrl}`),Z("info","cli_hybrid_transport_initialized")}async write(J){if(J.type==="stream_event"){if(this.streamEventBuffer.push(J),!this.streamEventTimer)this.streamEventTimer=setTimeout(()=>this.flushStreamEvents(),g);return}return await this.uploader.enqueue([...this.takeStreamEvents(),J]),this.uploader.flush()}async writeBatch(J){return await this.uploader.enqueue([...this.takeStreamEvents(),...J]),this.uploader.flush()}get droppedBatchCount(){return this.uploader.droppedBatchCount}flush(){return this.uploader.enqueue(this.takeStreamEvents()),this.uploader.flush()}takeStreamEvents(){if(this.streamEventTimer)clearTimeout(this.streamEventTimer),this.streamEventTimer=null;let J=this.streamEventBuffer;return this.streamEventBuffer=[],J}flushStreamEvents(){this.streamEventTimer=null,this.uploader.enqueue(this.takeStreamEvents())}close(){if(this.streamEventTimer)clearTimeout(this.streamEventTimer),this.streamEventTimer=null;this.streamEventBuffer=[];let J=this.uploader,K;Promise.race([J.flush(),new Promise((Q)=>{K=setTimeout(Q,l)})]).finally(()=>{clearTimeout(K),J.close()}),super.close()}async postOnce(J){let K=U();if(!K){Y("HybridTransport: No session token available for POST"),Z("warn","cli_hybrid_post_no_token");return}let Q={Authorization:`Bearer ${K}`,"Content-Type":"application/json"},X;try{X=await y.post(this.postUrl,{events:J},{headers:Q,validateStatus:()=>!0,timeout:t})}catch($){throw Y(`HybridTransport: POST error: ${$.message}`),Z("warn","cli_hybrid_post_network_error"),$}if(X.status>=200&&X.status<300){Y(`HybridTransport: POST success count=${J.length}`);return}if(X.status>=400&&X.status<500&&X.status!==429){Y(`HybridTransport: POST returned ${X.status} (permanent), dropping`),Z("warn","cli_hybrid_post_client_error",{status:X.status});return}throw Y(`HybridTransport: POST returned ${X.status} (retryable)`),Z("warn","cli_hybrid_post_retryable_error",{status:X.status}),Error(`POST failed with ${X.status}`)}}function r(J){let K=J.protocol==="wss:"?"https:":"http:",Q=J.pathname;if(Q=Q.replace("/ws/","/session/"),!Q.endsWith("/events"))Q=Q.endsWith("/")?Q+"events":Q+"/events";return`${K}//${J.host}${Q}${J.search}`}
|
|
5
|
-
export{W as ca,n as da};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{Mfa as P,fga as y}from"./cli-1.1.26-mvjefec1.mjs";import{cua as U}from"./cli-1.1.26-zb5hq3ry.mjs";var j,D,G,M,N,Y,C,_,R,E,I,f,k,A,h,b,u,T,p,m,w,L,O,X,$,e;var W=U(()=>{j=["common","uncommon","rare","epic","legendary"],D=String.fromCharCode,G=D(100,117,99,107),M=D(103,111,111,115,101),N=D(98,108,111,98),Y=D(99,97,116),C=D(100,114,97,103,111,110),_=D(111,99,116,111,112,117,115),R=D(111,119,108),E=D(112,101,110,103,117,105,110),I=D(116,117,114,116,108,101),f=D(115,110,97,105,108),k=D(103,104,111,115,116),A=D(97,120,111,108,111,116,108),h=D(99,97,112,121,98,97,114,97),b=D(99,97,99,116,117,115),u=D(114,111,98,111,116),T=D(114,97,98,98,105,116),p=D(109,117,115,104,114,111,111,109),m=D(99,104,111,110,107),w=[G,M,N,Y,C,_,R,E,I,f,k,A,h,b,u,T,p,m],L=["·","✦","×","◉","@","°"],O=["none","crown","tophat","propeller","halo","wizard","beanie","tinyduck"],X=["DEBUGGING","PATIENCE","CHAOS","WISDOM","SNARK"],$={common:60,uncommon:25,rare:10,epic:4,legendary:1},e={common:"inactive",uncommon:"success",rare:"permission",epic:"autoAccept",legendary:"warning"}});function v(q){let z=q>>>0;return function(){z|=0,z=z+1831565813|0;let B=Math.imul(z^z>>>15,1|z);return B=B+Math.imul(B^B>>>7,61|B)^B,((B^B>>>14)>>>0)/4294967296}}function F(q){if(typeof Bun<"u")return Number(BigInt(Bun.hash(q))&0xffffffffn);let z=2166136261;for(let B=0;B<q.length;B++)z^=q.charCodeAt(B),z=Math.imul(z,16777619);return z>>>0}function K(q,z){return z[Math.floor(q()*z.length)]}function S(q){let z=Object.values($).reduce((J,Q)=>J+Q,0),B=q()*z;for(let J of j)if(B-=$[J],B<0)return J;return"common"}function i(q,z){let B=d[z],J=K(q,X),Q=K(q,X);while(Q===J)Q=K(q,X);let Z={};for(let V of X)if(V===J)Z[V]=Math.min(100,B+50+Math.floor(q()*30));else if(V===Q)Z[V]=Math.max(1,B-10+Math.floor(q()*15));else Z[V]=B+Math.floor(q()*40);return Z}function H(q){let z=S(q);return{bones:{rarity:z,species:K(q,w),eye:K(q,L),hat:z==="common"?"none":K(q,O),shiny:q()<0.01,stats:i(q,z)},inspirationSeed:Math.floor(q()*1e9)}}function l(q){let z=q+c;if(x?.key===z)return x.value;let B=H(v(F(z)));return x={key:z,value:B},B}function a(q){return H(v(F(q)))}function s(){let q=P();return q.oauthAccount?.accountUuid??q.userID??"anon"}function r(){let q=P().companion;if(!q)return;let{bones:z}=l(s());return{...q,...z}}var d,c="friend-2026-401",x;var g=U(()=>{y();W();d={common:5,uncommon:15,rare:25,epic:35,legendary:50}});
|
|
2
|
-
export{G as tY,M as uY,N as vY,Y as wY,C as xY,_ as yY,R as zY,E as AY,I as BY,f as CY,k as DY,A as EY,h as FY,b as GY,u as HY,T as IY,p as JY,m as KY,e as LY,W as MY,a as NY,s as OY,r as PY,g as QY};
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
class H extends Error{constructor(z,J,Q){super(Q);Error.captureStackTrace(this,this.constructor),this.name=this.constructor.name,this.code=J,this.exitCode=z,this.nestedError=void 0}}class K extends H{constructor(z){super(1,"commander.invalidArgument",z);Error.captureStackTrace(this,this.constructor),this.name=this.constructor.name}}class S{constructor(z,J){this.flags=z,this.description=J||"",this.required=z.includes("<"),this.optional=z.includes("["),this.variadic=/\w\.\.\.[>\]]$/.test(z),this.mandatory=!1;let Q=w(z);if(this.short=Q.shortFlag,this.long=Q.longFlag,this.negate=!1,this.long)this.negate=this.long.startsWith("--no-");this.defaultValue=void 0,this.defaultValueDescription=void 0,this.presetArg=void 0,this.envVar=void 0,this.parseArg=void 0,this.hidden=!1,this.argChoices=void 0,this.conflictsWith=[],this.implied=void 0,this.helpGroupHeading=void 0}default(z,J){return this.defaultValue=z,this.defaultValueDescription=J,this}preset(z){return this.presetArg=z,this}conflicts(z){return this.conflictsWith=this.conflictsWith.concat(z),this}implies(z){let J=z;if(typeof z==="string")J={[z]:!0};return this.implied=Object.assign(this.implied||{},J),this}env(z){return this.envVar=z,this}argParser(z){return this.parseArg=z,this}makeOptionMandatory(z=!0){return this.mandatory=!!z,this}hideHelp(z=!0){return this.hidden=!!z,this}_collectValue(z,J){if(J===this.defaultValue||!Array.isArray(J))return[z];return J.push(z),J}choices(z){return this.argChoices=z.slice(),this.parseArg=(J,Q)=>{if(!this.argChoices.includes(J))throw new K(`Allowed choices are ${this.argChoices.join(", ")}.`);if(this.variadic)return this._collectValue(J,Q);return J},this}name(){if(this.long)return this.long.replace(/^--/,"");return this.short.replace(/^-/,"")}attributeName(){if(this.negate)return F(this.name().replace(/^no-/,""));return F(this.name())}helpGroup(z){return this.helpGroupHeading=z,this}is(z){return this.short===z||this.long===z}isBoolean(){return!this.required&&!this.optional&&!this.negate}}class V{constructor(z){this.positiveOptions=new Map,this.negativeOptions=new Map,this.dualOptions=new Set,z.forEach((J)=>{if(J.negate)this.negativeOptions.set(J.attributeName(),J);else this.positiveOptions.set(J.attributeName(),J)}),this.negativeOptions.forEach((J,Q)=>{if(this.positiveOptions.has(Q))this.dualOptions.add(Q)})}valueFromOption(z,J){let Q=J.attributeName();if(!this.dualOptions.has(Q))return!0;let X=this.negativeOptions.get(Q).presetArg,Y=X!==void 0?X:!1;return J.negate===(Y===z)}}function F(z){return z.split("-").reduce((J,Q)=>{return J+Q[0].toUpperCase()+Q.slice(1)})}function w(z){let J,Q,X=/^-[^-]$/,Y=/^--[^-]/,Z=z.split(/[ |,]+/).concat("guard");if(X.test(Z[0]))J=Z.shift();if(Y.test(Z[0]))Q=Z.shift();if(!J&&X.test(Z[0]))J=Z.shift();if(!J&&Y.test(Z[0]))J=Q,Q=Z.shift();if(Z[0].startsWith("-")){let $=Z[0],_=`option creation failed due to '${$}' in option flags '${z}'`;if(/^-[^-][^-]/.test($))throw Error(`${_}
|
|
2
|
-
- a short flag is a single dash and a single character
|
|
3
|
-
- either use a single dash and a single character (for a short flag)
|
|
4
|
-
- or use a double dash for a long option (and can have two, like '--ws, --workspace')`);if(X.test($))throw Error(`${_}
|
|
5
|
-
- too many short flags`);if(Y.test($))throw Error(`${_}
|
|
6
|
-
- too many long flags`);throw Error(`${_}
|
|
7
|
-
- unrecognised flag format`)}if(J===void 0&&Q===void 0)throw Error(`option creation failed due to no flags found in '${z}'.`);return{shortFlag:J,longFlag:Q}}import{EventEmitter as O}from"node:events";import N from"node:child_process";import U from"node:path";import I from"node:fs";import G from"node:process";import{stripVTControlCharacters as x}from"node:util";class W{constructor(z,J){switch(this.description=J||"",this.variadic=!1,this.parseArg=void 0,this.defaultValue=void 0,this.defaultValueDescription=void 0,this.argChoices=void 0,z[0]){case"<":this.required=!0,this._name=z.slice(1,-1);break;case"[":this.required=!1,this._name=z.slice(1,-1);break;default:this.required=!0,this._name=z;break}if(this._name.endsWith("..."))this.variadic=!0,this._name=this._name.slice(0,-3)}name(){return this._name}_collectValue(z,J){if(J===this.defaultValue||!Array.isArray(J))return[z];return J.push(z),J}default(z,J){return this.defaultValue=z,this.defaultValueDescription=J,this}argParser(z){return this.parseArg=z,this}choices(z){return this.argChoices=z.slice(),this.parseArg=(J,Q)=>{if(!this.argChoices.includes(J))throw new K(`Allowed choices are ${this.argChoices.join(", ")}.`);if(this.variadic)return this._collectValue(J,Q);return J},this}argRequired(){return this.required=!0,this}argOptional(){return this.required=!1,this}}function P(z){let J=z.name()+(z.variadic===!0?"...":"");return z.required?"<"+J+">":"["+J+"]"}import{stripVTControlCharacters as k}from"node:util";class j{constructor(){this.helpWidth=void 0,this.minWidthToWrap=40,this.sortSubcommands=!1,this.sortOptions=!1,this.showGlobalOptions=!1}prepareContext(z){this.helpWidth=this.helpWidth??z.helpWidth??80}visibleCommands(z){let J=z.commands.filter((X)=>!X._hidden),Q=z._getHelpCommand();if(Q&&!Q._hidden)J.push(Q);if(this.sortSubcommands)J.sort((X,Y)=>{return X.name().localeCompare(Y.name())});return J}compareOptions(z,J){let Q=(X)=>{return X.short?X.short.replace(/^-/,""):X.long.replace(/^--/,"")};return Q(z).localeCompare(Q(J))}visibleOptions(z){let J=z.options.filter((X)=>!X.hidden),Q=z._getHelpOption();if(Q&&!Q.hidden){let X=Q.short&&z._findOption(Q.short),Y=Q.long&&z._findOption(Q.long);if(!X&&!Y)J.push(Q);else if(Q.long&&!Y)J.push(z.createOption(Q.long,Q.description));else if(Q.short&&!X)J.push(z.createOption(Q.short,Q.description))}if(this.sortOptions)J.sort(this.compareOptions);return J}visibleGlobalOptions(z){if(!this.showGlobalOptions)return[];let J=[];for(let Q=z.parent;Q;Q=Q.parent){let X=Q.options.filter((Y)=>!Y.hidden);J.push(...X)}if(this.sortOptions)J.sort(this.compareOptions);return J}visibleArguments(z){if(z._argsDescription)z.registeredArguments.forEach((J)=>{J.description=J.description||z._argsDescription[J.name()]||""});if(z.registeredArguments.find((J)=>J.description))return z.registeredArguments;return[]}subcommandTerm(z){let J=z.registeredArguments.map((Q)=>P(Q)).join(" ");return z._name+(z._aliases[0]?"|"+z._aliases[0]:"")+(z.options.length?" [options]":"")+(J?" "+J:"")}optionTerm(z){return z.flags}argumentTerm(z){return z.name()}longestSubcommandTermLength(z,J){return J.visibleCommands(z).reduce((Q,X)=>{return Math.max(Q,this.displayWidth(J.styleSubcommandTerm(J.subcommandTerm(X))))},0)}longestOptionTermLength(z,J){return J.visibleOptions(z).reduce((Q,X)=>{return Math.max(Q,this.displayWidth(J.styleOptionTerm(J.optionTerm(X))))},0)}longestGlobalOptionTermLength(z,J){return J.visibleGlobalOptions(z).reduce((Q,X)=>{return Math.max(Q,this.displayWidth(J.styleOptionTerm(J.optionTerm(X))))},0)}longestArgumentTermLength(z,J){return J.visibleArguments(z).reduce((Q,X)=>{return Math.max(Q,this.displayWidth(J.styleArgumentTerm(J.argumentTerm(X))))},0)}commandUsage(z){let J=z._name;if(z._aliases[0])J=J+"|"+z._aliases[0];let Q="";for(let X=z.parent;X;X=X.parent)Q=X.name()+" "+Q;return Q+J+" "+z.usage()}commandDescription(z){return z.description()}subcommandDescription(z){return z.summary()||z.description()}optionDescription(z){let J=[];if(z.argChoices)J.push(`choices: ${z.argChoices.map((Q)=>JSON.stringify(Q)).join(", ")}`);if(z.defaultValue!==void 0){if(z.required||z.optional||z.isBoolean()&&typeof z.defaultValue==="boolean")J.push(`default: ${z.defaultValueDescription||JSON.stringify(z.defaultValue)}`)}if(z.presetArg!==void 0&&z.optional)J.push(`preset: ${JSON.stringify(z.presetArg)}`);if(z.envVar!==void 0)J.push(`env: ${z.envVar}`);if(J.length>0){let Q=`(${J.join(", ")})`;if(z.description)return`${z.description} ${Q}`;return Q}return z.description}argumentDescription(z){let J=[];if(z.argChoices)J.push(`choices: ${z.argChoices.map((Q)=>JSON.stringify(Q)).join(", ")}`);if(z.defaultValue!==void 0)J.push(`default: ${z.defaultValueDescription||JSON.stringify(z.defaultValue)}`);if(J.length>0){let Q=`(${J.join(", ")})`;if(z.description)return`${z.description} ${Q}`;return Q}return z.description}formatItemList(z,J,Q){if(J.length===0)return[];return[Q.styleTitle(z),...J,""]}groupItems(z,J,Q){let X=new Map;return z.forEach((Y)=>{let Z=Q(Y);if(!X.has(Z))X.set(Z,[])}),J.forEach((Y)=>{let Z=Q(Y);if(!X.has(Z))X.set(Z,[]);X.get(Z).push(Y)}),X}formatHelp(z,J){let Q=J.padWidth(z,J),X=J.helpWidth??80;function Y(R,B){return J.formatItem(R,Q,B,J)}let Z=[`${J.styleTitle("Usage:")} ${J.styleUsage(J.commandUsage(z))}`,""],$=J.commandDescription(z);if($.length>0)Z=Z.concat([J.boxWrap(J.styleCommandDescription($),X),""]);let _=J.visibleArguments(z).map((R)=>{return Y(J.styleArgumentTerm(J.argumentTerm(R)),J.styleArgumentDescription(J.argumentDescription(R)))});if(Z=Z.concat(this.formatItemList("Arguments:",_,J)),this.groupItems(z.options,J.visibleOptions(z),(R)=>R.helpGroupHeading??"Options:").forEach((R,B)=>{let L=R.map((M)=>{return Y(J.styleOptionTerm(J.optionTerm(M)),J.styleOptionDescription(J.optionDescription(M)))});Z=Z.concat(this.formatItemList(B,L,J))}),J.showGlobalOptions){let R=J.visibleGlobalOptions(z).map((B)=>{return Y(J.styleOptionTerm(J.optionTerm(B)),J.styleOptionDescription(J.optionDescription(B)))});Z=Z.concat(this.formatItemList("Global Options:",R,J))}return this.groupItems(z.commands,J.visibleCommands(z),(R)=>R.helpGroup()||"Commands:").forEach((R,B)=>{let L=R.map((M)=>{return Y(J.styleSubcommandTerm(J.subcommandTerm(M)),J.styleSubcommandDescription(J.subcommandDescription(M)))});Z=Z.concat(this.formatItemList(B,L,J))}),Z.join(`
|
|
8
|
-
`)}displayWidth(z){return k(z).length}styleTitle(z){return z}styleUsage(z){return z.split(" ").map((J)=>{if(J==="[options]")return this.styleOptionText(J);if(J==="[command]")return this.styleSubcommandText(J);if(J[0]==="["||J[0]==="<")return this.styleArgumentText(J);return this.styleCommandText(J)}).join(" ")}styleCommandDescription(z){return this.styleDescriptionText(z)}styleOptionDescription(z){return this.styleDescriptionText(z)}styleSubcommandDescription(z){return this.styleDescriptionText(z)}styleArgumentDescription(z){return this.styleDescriptionText(z)}styleDescriptionText(z){return z}styleOptionTerm(z){return this.styleOptionText(z)}styleSubcommandTerm(z){return z.split(" ").map((J)=>{if(J==="[options]")return this.styleOptionText(J);if(J[0]==="["||J[0]==="<")return this.styleArgumentText(J);return this.styleSubcommandText(J)}).join(" ")}styleArgumentTerm(z){return this.styleArgumentText(z)}styleOptionText(z){return z}styleArgumentText(z){return z}styleSubcommandText(z){return z}styleCommandText(z){return z}padWidth(z,J){return Math.max(J.longestOptionTermLength(z,J),J.longestGlobalOptionTermLength(z,J),J.longestSubcommandTermLength(z,J),J.longestArgumentTermLength(z,J))}preformatted(z){return/\n[^\S\r\n]/.test(z)}formatItem(z,J,Q,X){let Z=" ".repeat(2);if(!Q)return Z+z;let $=z.padEnd(J+z.length-X.displayWidth(z)),_=2,q=(this.helpWidth??80)-J-_-2,R;if(q<this.minWidthToWrap||X.preformatted(Q))R=Q;else R=X.boxWrap(Q,q).replace(/\n/g,`
|
|
9
|
-
`+" ".repeat(J+_));return Z+$+" ".repeat(_)+R.replace(/\n/g,`
|
|
10
|
-
${Z}`)}boxWrap(z,J){if(J<this.minWidthToWrap)return z;let Q=z.split(/\r\n|\n/),X=/[\s]*[^\s]+/g,Y=[];return Q.forEach((Z)=>{let $=Z.match(X);if($===null){Y.push("");return}let _=[$.shift()],T=this.displayWidth(_[0]);$.forEach((q)=>{let R=this.displayWidth(q);if(T+R<=J){_.push(q),T+=R;return}Y.push(_.join(""));let B=q.trimStart();_=[B],T=this.displayWidth(B)}),Y.push(_.join(""))}),Y.join(`
|
|
11
|
-
`)}}function C(z,J){if(Math.abs(z.length-J.length)>3)return Math.max(z.length,J.length);let Q=[];for(let X=0;X<=z.length;X++)Q[X]=[X];for(let X=0;X<=J.length;X++)Q[0][X]=X;for(let X=1;X<=J.length;X++)for(let Y=1;Y<=z.length;Y++){let Z;if(z[Y-1]===J[X-1])Z=0;else Z=1;if(Q[Y][X]=Math.min(Q[Y-1][X]+1,Q[Y][X-1]+1,Q[Y-1][X-1]+Z),Y>1&&X>1&&z[Y-1]===J[X-2]&&z[Y-2]===J[X-1])Q[Y][X]=Math.min(Q[Y][X],Q[Y-2][X-2]+1)}return Q[z.length][J.length]}function D(z,J){if(!J||J.length===0)return"";J=Array.from(new Set(J));let Q=z.startsWith("--");if(Q)z=z.slice(2),J=J.map(($)=>$.slice(2));let X=[],Y=3,Z=0.4;if(J.forEach(($)=>{if($.length<=1)return;let _=C(z,$),T=Math.max(z.length,$.length);if((T-_)/T>Z){if(_<Y)Y=_,X=[$];else if(_===Y)X.push($)}}),X.sort(($,_)=>$.localeCompare(_)),Q)X=X.map(($)=>`--${$}`);if(X.length>1)return`
|
|
12
|
-
(Did you mean one of ${X.join(", ")}?)`;if(X.length===1)return`
|
|
13
|
-
(Did you mean ${X[0]}?)`;return""}class E extends O{constructor(z){super();this.commands=[],this.options=[],this.parent=null,this._allowUnknownOption=!1,this._allowExcessArguments=!1,this.registeredArguments=[],this._args=this.registeredArguments,this.args=[],this.rawArgs=[],this.processedArgs=[],this._scriptPath=null,this._name=z||"",this._optionValues={},this._optionValueSources={},this._storeOptionsAsProperties=!1,this._actionHandler=null,this._executableHandler=!1,this._executableFile=null,this._executableDir=null,this._defaultCommandName=null,this._exitCallback=null,this._aliases=[],this._combineFlagAndOptionalValue=!0,this._description="",this._summary="",this._argsDescription=void 0,this._enablePositionalOptions=!1,this._passThroughOptions=!1,this._lifeCycleHooks={},this._showHelpAfterError=!1,this._showSuggestionAfterError=!0,this._savedState=null,this._outputConfiguration={writeOut:(J)=>G.stdout.write(J),writeErr:(J)=>G.stderr.write(J),outputError:(J,Q)=>Q(J),getOutHelpWidth:()=>G.stdout.isTTY?G.stdout.columns:void 0,getErrHelpWidth:()=>G.stderr.isTTY?G.stderr.columns:void 0,getOutHasColors:()=>A()??(G.stdout.isTTY&&G.stdout.hasColors?.()),getErrHasColors:()=>A()??(G.stderr.isTTY&&G.stderr.hasColors?.()),stripColor:(J)=>x(J)},this._hidden=!1,this._helpOption=void 0,this._addImplicitHelpCommand=void 0,this._helpCommand=void 0,this._helpConfiguration={},this._helpGroupHeading=void 0,this._defaultCommandGroup=void 0,this._defaultOptionGroup=void 0}copyInheritedSettings(z){return this._outputConfiguration=z._outputConfiguration,this._helpOption=z._helpOption,this._helpCommand=z._helpCommand,this._helpConfiguration=z._helpConfiguration,this._exitCallback=z._exitCallback,this._storeOptionsAsProperties=z._storeOptionsAsProperties,this._combineFlagAndOptionalValue=z._combineFlagAndOptionalValue,this._allowExcessArguments=z._allowExcessArguments,this._enablePositionalOptions=z._enablePositionalOptions,this._showHelpAfterError=z._showHelpAfterError,this._showSuggestionAfterError=z._showSuggestionAfterError,this}_getCommandAndAncestors(){let z=[];for(let J=this;J;J=J.parent)z.push(J);return z}command(z,J,Q){let X=J,Y=Q;if(typeof X==="object"&&X!==null)Y=X,X=null;Y=Y||{};let[,Z,$]=z.match(/([^ ]+) *(.*)/),_=this.createCommand(Z);if(X)_.description(X),_._executableHandler=!0;if(Y.isDefault)this._defaultCommandName=_._name;if(_._hidden=!!(Y.noHelp||Y.hidden),_._executableFile=Y.executableFile||null,$)_.arguments($);if(this._registerCommand(_),_.parent=this,_.copyInheritedSettings(this),X)return this;return _}createCommand(z){return new E(z)}createHelp(){return Object.assign(new j,this.configureHelp())}configureHelp(z){if(z===void 0)return this._helpConfiguration;return this._helpConfiguration=z,this}configureOutput(z){if(z===void 0)return this._outputConfiguration;return this._outputConfiguration={...this._outputConfiguration,...z},this}showHelpAfterError(z=!0){if(typeof z!=="string")z=!!z;return this._showHelpAfterError=z,this}showSuggestionAfterError(z=!0){return this._showSuggestionAfterError=!!z,this}addCommand(z,J){if(!z._name)throw Error(`Command passed to .addCommand() must have a name
|
|
14
|
-
- specify the name in Command constructor or using .name()`);if(J=J||{},J.isDefault)this._defaultCommandName=z._name;if(J.noHelp||J.hidden)z._hidden=!0;return this._registerCommand(z),z.parent=this,z._checkForBrokenPassThrough(),this}createArgument(z,J){return new W(z,J)}argument(z,J,Q,X){let Y=this.createArgument(z,J);if(typeof Q==="function")Y.default(X).argParser(Q);else Y.default(Q);return this.addArgument(Y),this}arguments(z){return z.trim().split(/ +/).forEach((J)=>{this.argument(J)}),this}addArgument(z){let J=this.registeredArguments.slice(-1)[0];if(J?.variadic)throw Error(`only the last argument can be variadic '${J.name()}'`);if(z.required&&z.defaultValue!==void 0&&z.parseArg===void 0)throw Error(`a default value for a required argument is never used: '${z.name()}'`);return this.registeredArguments.push(z),this}helpCommand(z,J){if(typeof z==="boolean"){if(this._addImplicitHelpCommand=z,z&&this._defaultCommandGroup)this._initCommandGroup(this._getHelpCommand());return this}let Q=z??"help [command]",[,X,Y]=Q.match(/([^ ]+) *(.*)/),Z=J??"display help for command",$=this.createCommand(X);if($.helpOption(!1),Y)$.arguments(Y);if(Z)$.description(Z);if(this._addImplicitHelpCommand=!0,this._helpCommand=$,z||J)this._initCommandGroup($);return this}addHelpCommand(z,J){if(typeof z!=="object")return this.helpCommand(z,J),this;return this._addImplicitHelpCommand=!0,this._helpCommand=z,this._initCommandGroup(z),this}_getHelpCommand(){if(this._addImplicitHelpCommand??(this.commands.length&&!this._actionHandler&&!this._findCommand("help"))){if(this._helpCommand===void 0)this.helpCommand(void 0,void 0);return this._helpCommand}return null}hook(z,J){let Q=["preSubcommand","preAction","postAction"];if(!Q.includes(z))throw Error(`Unexpected value for event passed to hook : '${z}'.
|
|
15
|
-
Expecting one of '${Q.join("', '")}'`);if(this._lifeCycleHooks[z])this._lifeCycleHooks[z].push(J);else this._lifeCycleHooks[z]=[J];return this}exitOverride(z){if(z)this._exitCallback=z;else this._exitCallback=(J)=>{if(J.code!=="commander.executeSubCommandAsync")throw J};return this}_exit(z,J,Q){if(this._exitCallback)this._exitCallback(new H(z,J,Q));G.exit(z)}action(z){let J=(Q)=>{let X=this.registeredArguments.length,Y=Q.slice(0,X);if(this._storeOptionsAsProperties)Y[X]=this;else Y[X]=this.opts();return Y.push(this),z.apply(this,Y)};return this._actionHandler=J,this}createOption(z,J){return new S(z,J)}_callParseArg(z,J,Q,X){try{return z.parseArg(J,Q)}catch(Y){if(Y.code==="commander.invalidArgument"){let Z=`${X} ${Y.message}`;this.error(Z,{exitCode:Y.exitCode,code:Y.code})}throw Y}}_registerOption(z){let J=z.short&&this._findOption(z.short)||z.long&&this._findOption(z.long);if(J){let Q=z.long&&this._findOption(z.long)?z.long:z.short;throw Error(`Cannot add option '${z.flags}'${this._name&&` to command '${this._name}'`} due to conflicting flag '${Q}'
|
|
16
|
-
- already used by option '${J.flags}'`)}this._initOptionGroup(z),this.options.push(z)}_registerCommand(z){let J=(X)=>{return[X.name()].concat(X.aliases())},Q=J(z).find((X)=>this._findCommand(X));if(Q){let X=J(this._findCommand(Q)).join("|"),Y=J(z).join("|");throw Error(`cannot add command '${Y}' as already have command '${X}'`)}this._initCommandGroup(z),this.commands.push(z)}addOption(z){this._registerOption(z);let J=z.name(),Q=z.attributeName();if(z.defaultValue!==void 0)this.setOptionValueWithSource(Q,z.defaultValue,"default");let X=(Y,Z,$)=>{if(Y==null&&z.presetArg!==void 0)Y=z.presetArg;let _=this.getOptionValue(Q);if(Y!==null&&z.parseArg)Y=this._callParseArg(z,Y,_,Z);else if(Y!==null&&z.variadic)Y=z._collectValue(Y,_);if(Y==null)if(z.negate)Y=!1;else if(z.isBoolean()||z.optional)Y=!0;else Y="";this.setOptionValueWithSource(Q,Y,$)};if(this.on("option:"+J,(Y)=>{let Z=`error: option '${z.flags}' argument '${Y}' is invalid.`;X(Y,Z,"cli")}),z.envVar)this.on("optionEnv:"+J,(Y)=>{let Z=`error: option '${z.flags}' value '${Y}' from env '${z.envVar}' is invalid.`;X(Y,Z,"env")});return this}_optionEx(z,J,Q,X,Y){if(typeof J==="object"&&J instanceof S)throw Error("To add an Option object use addOption() instead of option() or requiredOption()");let Z=this.createOption(J,Q);if(Z.makeOptionMandatory(!!z.mandatory),typeof X==="function")Z.default(Y).argParser(X);else if(X instanceof RegExp){let $=X;X=(_,T)=>{let q=$.exec(_);return q?q[0]:T},Z.default(Y).argParser(X)}else Z.default(X);return this.addOption(Z)}option(z,J,Q,X){return this._optionEx({},z,J,Q,X)}requiredOption(z,J,Q,X){return this._optionEx({mandatory:!0},z,J,Q,X)}combineFlagAndOptionalValue(z=!0){return this._combineFlagAndOptionalValue=!!z,this}allowUnknownOption(z=!0){return this._allowUnknownOption=!!z,this}allowExcessArguments(z=!0){return this._allowExcessArguments=!!z,this}enablePositionalOptions(z=!0){return this._enablePositionalOptions=!!z,this}passThroughOptions(z=!0){return this._passThroughOptions=!!z,this._checkForBrokenPassThrough(),this}_checkForBrokenPassThrough(){if(this.parent&&this._passThroughOptions&&!this.parent._enablePositionalOptions)throw Error(`passThroughOptions cannot be used for '${this._name}' without turning on enablePositionalOptions for parent command(s)`)}storeOptionsAsProperties(z=!0){if(this.options.length)throw Error("call .storeOptionsAsProperties() before adding options");if(Object.keys(this._optionValues).length)throw Error("call .storeOptionsAsProperties() before setting option values");return this._storeOptionsAsProperties=!!z,this}getOptionValue(z){if(this._storeOptionsAsProperties)return this[z];return this._optionValues[z]}setOptionValue(z,J){return this.setOptionValueWithSource(z,J,void 0)}setOptionValueWithSource(z,J,Q){if(this._storeOptionsAsProperties)this[z]=J;else this._optionValues[z]=J;return this._optionValueSources[z]=Q,this}getOptionValueSource(z){return this._optionValueSources[z]}getOptionValueSourceWithGlobals(z){let J;return this._getCommandAndAncestors().forEach((Q)=>{if(Q.getOptionValueSource(z)!==void 0)J=Q.getOptionValueSource(z)}),J}_prepareUserArgs(z,J){if(z!==void 0&&!Array.isArray(z))throw Error("first parameter to parse must be array or undefined");if(J=J||{},z===void 0&&J.from===void 0){if(G.versions?.electron)J.from="electron";let X=G.execArgv??[];if(X.includes("-e")||X.includes("--eval")||X.includes("-p")||X.includes("--print"))J.from="eval"}if(z===void 0)z=G.argv;this.rawArgs=z.slice();let Q;switch(J.from){case void 0:case"node":this._scriptPath=z[1],Q=z.slice(2);break;case"electron":if(G.defaultApp)this._scriptPath=z[1],Q=z.slice(2);else Q=z.slice(1);break;case"user":Q=z.slice(0);break;case"eval":Q=z.slice(1);break;default:throw Error(`unexpected parse option { from: '${J.from}' }`)}if(!this._name&&this._scriptPath)this.nameFromFilename(this._scriptPath);return this._name=this._name||"program",Q}parse(z,J){this._prepareForParse();let Q=this._prepareUserArgs(z,J);return this._parseCommand([],Q),this}async parseAsync(z,J){this._prepareForParse();let Q=this._prepareUserArgs(z,J);return await this._parseCommand([],Q),this}_prepareForParse(){if(this._savedState===null)this.options.filter((z)=>z.negate&&z.defaultValue===void 0&&this.getOptionValue(z.attributeName())===void 0).forEach((z)=>{let J=z.long.replace(/^--no-/,"--");if(!this._findOption(J))this.setOptionValueWithSource(z.attributeName(),!0,"default")}),this.saveStateBeforeParse();else this.restoreStateBeforeParse()}saveStateBeforeParse(){this._savedState={_name:this._name,_optionValues:{...this._optionValues},_optionValueSources:{...this._optionValueSources}}}restoreStateBeforeParse(){if(this._storeOptionsAsProperties)throw Error(`Can not call parse again when storeOptionsAsProperties is true.
|
|
17
|
-
- either make a new Command for each call to parse, or stop storing options as properties`);this._name=this._savedState._name,this._scriptPath=null,this.rawArgs=[],this._optionValues={...this._savedState._optionValues},this._optionValueSources={...this._savedState._optionValueSources},this.args=[],this.processedArgs=[]}_checkForMissingExecutable(z,J,Q){if(I.existsSync(z))return;let X=J?`searched for local subcommand relative to directory '${J}'`:"no directory for search for local subcommand, use .executableDir() to supply a custom directory",Y=`'${z}' does not exist
|
|
18
|
-
- if '${Q}' is not meant to be an executable command, remove description parameter from '.command()' and use '.description()' instead
|
|
19
|
-
- if the default executable name is not suitable, use the executableFile option to supply a custom name or path
|
|
20
|
-
- ${X}`;throw Error(Y)}_executeSubCommand(z,J){J=J.slice();let Q=[".js",".ts",".tsx",".mjs",".cjs"];function X(q,R){let B=U.resolve(q,R);if(I.existsSync(B))return B;if(Q.includes(U.extname(R)))return;let L=Q.find((M)=>I.existsSync(`${B}${M}`));if(L)return`${B}${L}`;return}this._checkForMissingMandatoryOptions(),this._checkForConflictingOptions();let Y=z._executableFile||`${this._name}-${z._name}`,Z=this._executableDir||"";if(this._scriptPath){let q;try{q=I.realpathSync(this._scriptPath)}catch{q=this._scriptPath}Z=U.resolve(U.dirname(q),Z)}if(Z){let q=X(Z,Y);if(!q&&!z._executableFile&&this._scriptPath){let R=U.basename(this._scriptPath,U.extname(this._scriptPath));if(R!==this._name)q=X(Z,`${R}-${z._name}`)}Y=q||Y}let $=Q.includes(U.extname(Y)),_;if(G.platform!=="win32")if($)J.unshift(Y),J=y(G.execArgv).concat(J),_=N.spawn(G.argv[0],J,{stdio:"inherit"});else _=N.spawn(Y,J,{stdio:"inherit"});else this._checkForMissingExecutable(Y,Z,z._name),J.unshift(Y),J=y(G.execArgv).concat(J),_=N.spawn(G.execPath,J,{stdio:"inherit"});if(!_.killed)["SIGUSR1","SIGUSR2","SIGTERM","SIGINT","SIGHUP"].forEach((R)=>{G.on(R,()=>{if(_.killed===!1&&_.exitCode===null)_.kill(R)})});let T=this._exitCallback;_.on("close",(q)=>{if(q=q??1,!T)G.exit(q);else T(new H(q,"commander.executeSubCommandAsync","(close)"))}),_.on("error",(q)=>{if(q.code==="ENOENT")this._checkForMissingExecutable(Y,Z,z._name);else if(q.code==="EACCES")throw Error(`'${Y}' not executable`);if(!T)G.exit(1);else{let R=new H(1,"commander.executeSubCommandAsync","(error)");R.nestedError=q,T(R)}}),this.runningCommand=_}_dispatchSubcommand(z,J,Q){let X=this._findCommand(z);if(!X)this.help({error:!0});X._prepareForParse();let Y;return Y=this._chainOrCallSubCommandHook(Y,X,"preSubcommand"),Y=this._chainOrCall(Y,()=>{if(X._executableHandler)this._executeSubCommand(X,J.concat(Q));else return X._parseCommand(J,Q)}),Y}_dispatchHelpCommand(z){if(!z)this.help();let J=this._findCommand(z);if(J&&!J._executableHandler)J.help();return this._dispatchSubcommand(z,[],[this._getHelpOption()?.long??this._getHelpOption()?.short??"--help"])}_checkNumberOfArguments(){if(this.registeredArguments.forEach((z,J)=>{if(z.required&&this.args[J]==null)this.missingArgument(z.name())}),this.registeredArguments.length>0&&this.registeredArguments[this.registeredArguments.length-1].variadic)return;if(this.args.length>this.registeredArguments.length)this._excessArguments(this.args)}_processArguments(){let z=(Q,X,Y)=>{let Z=X;if(X!==null&&Q.parseArg){let $=`error: command-argument value '${X}' is invalid for argument '${Q.name()}'.`;Z=this._callParseArg(Q,X,Y,$)}return Z};this._checkNumberOfArguments();let J=[];this.registeredArguments.forEach((Q,X)=>{let Y=Q.defaultValue;if(Q.variadic){if(X<this.args.length){if(Y=this.args.slice(X),Q.parseArg)Y=Y.reduce((Z,$)=>{return z(Q,$,Z)},Q.defaultValue)}else if(Y===void 0)Y=[]}else if(X<this.args.length){if(Y=this.args[X],Q.parseArg)Y=z(Q,Y,Q.defaultValue)}J[X]=Y}),this.processedArgs=J}_chainOrCall(z,J){if(z?.then&&typeof z.then==="function")return z.then(()=>J());return J()}_chainOrCallHooks(z,J){let Q=z,X=[];if(this._getCommandAndAncestors().reverse().filter((Y)=>Y._lifeCycleHooks[J]!==void 0).forEach((Y)=>{Y._lifeCycleHooks[J].forEach((Z)=>{X.push({hookedCommand:Y,callback:Z})})}),J==="postAction")X.reverse();return X.forEach((Y)=>{Q=this._chainOrCall(Q,()=>{return Y.callback(Y.hookedCommand,this)})}),Q}_chainOrCallSubCommandHook(z,J,Q){let X=z;if(this._lifeCycleHooks[Q]!==void 0)this._lifeCycleHooks[Q].forEach((Y)=>{X=this._chainOrCall(X,()=>{return Y(this,J)})});return X}_parseCommand(z,J){let Q=this.parseOptions(J);if(this._parseOptionsEnv(),this._parseOptionsImplied(),z=z.concat(Q.operands),J=Q.unknown,this.args=z.concat(J),z&&this._findCommand(z[0]))return this._dispatchSubcommand(z[0],z.slice(1),J);if(this._getHelpCommand()&&z[0]===this._getHelpCommand().name())return this._dispatchHelpCommand(z[1]);if(this._defaultCommandName)return this._outputHelpIfRequested(J),this._dispatchSubcommand(this._defaultCommandName,z,J);if(this.commands.length&&this.args.length===0&&!this._actionHandler&&!this._defaultCommandName)this.help({error:!0});this._outputHelpIfRequested(Q.unknown),this._checkForMissingMandatoryOptions(),this._checkForConflictingOptions();let X=()=>{if(Q.unknown.length>0)this.unknownOption(Q.unknown[0])},Y=`command:${this.name()}`;if(this._actionHandler){X(),this._processArguments();let Z;if(Z=this._chainOrCallHooks(Z,"preAction"),Z=this._chainOrCall(Z,()=>this._actionHandler(this.processedArgs)),this.parent)Z=this._chainOrCall(Z,()=>{this.parent.emit(Y,z,J)});return Z=this._chainOrCallHooks(Z,"postAction"),Z}if(this.parent?.listenerCount(Y))X(),this._processArguments(),this.parent.emit(Y,z,J);else if(z.length){if(this._findCommand("*"))return this._dispatchSubcommand("*",z,J);if(this.listenerCount("command:*"))this.emit("command:*",z,J);else if(this.commands.length)this.unknownCommand();else X(),this._processArguments()}else if(this.commands.length)X(),this.help({error:!0});else X(),this._processArguments()}_findCommand(z){if(!z)return;return this.commands.find((J)=>J._name===z||J._aliases.includes(z))}_findOption(z){return this.options.find((J)=>J.is(z))}_checkForMissingMandatoryOptions(){this._getCommandAndAncestors().forEach((z)=>{z.options.forEach((J)=>{if(J.mandatory&&z.getOptionValue(J.attributeName())===void 0)z.missingMandatoryOptionValue(J)})})}_checkForConflictingLocalOptions(){let z=this.options.filter((Q)=>{let X=Q.attributeName();if(this.getOptionValue(X)===void 0)return!1;return this.getOptionValueSource(X)!=="default"});z.filter((Q)=>Q.conflictsWith.length>0).forEach((Q)=>{let X=z.find((Y)=>Q.conflictsWith.includes(Y.attributeName()));if(X)this._conflictingOption(Q,X)})}_checkForConflictingOptions(){this._getCommandAndAncestors().forEach((z)=>{z._checkForConflictingLocalOptions()})}parseOptions(z){let J=[],Q=[],X=J;function Y(q){return q.length>1&&q[0]==="-"}let Z=(q)=>{if(!/^-(\d+|\d*\.\d+)(e[+-]?\d+)?$/.test(q))return!1;return!this._getCommandAndAncestors().some((R)=>R.options.map((B)=>B.short).some((B)=>/^-\d$/.test(B)))},$=null,_=null,T=0;while(T<z.length||_){let q=_??z[T++];if(_=null,q==="--"){if(X===Q)X.push(q);X.push(...z.slice(T));break}if($&&(!Y(q)||Z(q))){this.emit(`option:${$.name()}`,q);continue}if($=null,Y(q)){let R=this._findOption(q);if(R){if(R.required){let B=z[T++];if(B===void 0)this.optionMissingArgument(R);this.emit(`option:${R.name()}`,B)}else if(R.optional){let B=null;if(T<z.length&&(!Y(z[T])||Z(z[T])))B=z[T++];this.emit(`option:${R.name()}`,B)}else this.emit(`option:${R.name()}`);$=R.variadic?R:null;continue}}if(q.length>2&&q[0]==="-"&&q[1]!=="-"){let R=this._findOption(`-${q[1]}`);if(R){if(R.required||R.optional&&this._combineFlagAndOptionalValue)this.emit(`option:${R.name()}`,q.slice(2));else this.emit(`option:${R.name()}`),_=`-${q.slice(2)}`;continue}}if(/^--[^=]+=/.test(q)){let R=q.indexOf("="),B=this._findOption(q.slice(0,R));if(B&&(B.required||B.optional)){this.emit(`option:${B.name()}`,q.slice(R+1));continue}}if(X===J&&Y(q)&&!(this.commands.length===0&&Z(q)))X=Q;if((this._enablePositionalOptions||this._passThroughOptions)&&J.length===0&&Q.length===0){if(this._findCommand(q)){J.push(q),Q.push(...z.slice(T));break}else if(this._getHelpCommand()&&q===this._getHelpCommand().name()){J.push(q,...z.slice(T));break}else if(this._defaultCommandName){Q.push(q,...z.slice(T));break}}if(this._passThroughOptions){X.push(q,...z.slice(T));break}X.push(q)}return{operands:J,unknown:Q}}opts(){if(this._storeOptionsAsProperties){let z={},J=this.options.length;for(let Q=0;Q<J;Q++){let X=this.options[Q].attributeName();z[X]=X===this._versionOptionName?this._version:this[X]}return z}return this._optionValues}optsWithGlobals(){return this._getCommandAndAncestors().reduce((z,J)=>Object.assign(z,J.opts()),{})}error(z,J){if(this._outputConfiguration.outputError(`${z}
|
|
21
|
-
`,this._outputConfiguration.writeErr),typeof this._showHelpAfterError==="string")this._outputConfiguration.writeErr(`${this._showHelpAfterError}
|
|
22
|
-
`);else if(this._showHelpAfterError)this._outputConfiguration.writeErr(`
|
|
23
|
-
`),this.outputHelp({error:!0});let Q=J||{},X=Q.exitCode||1,Y=Q.code||"commander.error";this._exit(X,Y,z)}_parseOptionsEnv(){this.options.forEach((z)=>{if(z.envVar&&z.envVar in G.env){let J=z.attributeName();if(this.getOptionValue(J)===void 0||["default","config","env"].includes(this.getOptionValueSource(J)))if(z.required||z.optional)this.emit(`optionEnv:${z.name()}`,G.env[z.envVar]);else this.emit(`optionEnv:${z.name()}`)}})}_parseOptionsImplied(){let z=new V(this.options),J=(Q)=>{return this.getOptionValue(Q)!==void 0&&!["default","implied"].includes(this.getOptionValueSource(Q))};this.options.filter((Q)=>Q.implied!==void 0&&J(Q.attributeName())&&z.valueFromOption(this.getOptionValue(Q.attributeName()),Q)).forEach((Q)=>{Object.keys(Q.implied).filter((X)=>!J(X)).forEach((X)=>{this.setOptionValueWithSource(X,Q.implied[X],"implied")})})}missingArgument(z){let J=`error: missing required argument '${z}'`;this.error(J,{code:"commander.missingArgument"})}optionMissingArgument(z){let J=`error: option '${z.flags}' argument missing`;this.error(J,{code:"commander.optionMissingArgument"})}missingMandatoryOptionValue(z){let J=`error: required option '${z.flags}' not specified`;this.error(J,{code:"commander.missingMandatoryOptionValue"})}_conflictingOption(z,J){let Q=(Z)=>{let $=Z.attributeName(),_=this.getOptionValue($),T=this.options.find((R)=>R.negate&&$===R.attributeName()),q=this.options.find((R)=>!R.negate&&$===R.attributeName());if(T&&(T.presetArg===void 0&&_===!1||T.presetArg!==void 0&&_===T.presetArg))return T;return q||Z},X=(Z)=>{let $=Q(Z),_=$.attributeName();if(this.getOptionValueSource(_)==="env")return`environment variable '${$.envVar}'`;return`option '${$.flags}'`},Y=`error: ${X(z)} cannot be used with ${X(J)}`;this.error(Y,{code:"commander.conflictingOption"})}unknownOption(z){if(this._allowUnknownOption)return;let J="";if(z.startsWith("--")&&this._showSuggestionAfterError){let X=[],Y=this;do{let Z=Y.createHelp().visibleOptions(Y).filter(($)=>$.long).map(($)=>$.long);X=X.concat(Z),Y=Y.parent}while(Y&&!Y._enablePositionalOptions);J=D(z,X)}let Q=`error: unknown option '${z}'${J}`;this.error(Q,{code:"commander.unknownOption"})}_excessArguments(z){if(this._allowExcessArguments)return;let J=this.registeredArguments.length,Q=J===1?"":"s",X=z.length,Y=this.parent?` for '${this.name()}'`:"",Z=z.join(", "),$=`error: too many arguments${Y}. Expected ${J} argument${Q} but got ${X}: ${Z}.`;this.error($,{code:"commander.excessArguments"})}unknownCommand(){let z=this.args[0],J="";if(this._showSuggestionAfterError){let X=[];this.createHelp().visibleCommands(this).forEach((Y)=>{if(X.push(Y.name()),Y.alias())X.push(Y.alias())}),J=D(z,X)}let Q=`error: unknown command '${z}'${J}`;this.error(Q,{code:"commander.unknownCommand"})}version(z,J,Q){if(z===void 0)return this._version;this._version=z,J=J||"-V, --version",Q=Q||"output the version number";let X=this.createOption(J,Q);return this._versionOptionName=X.attributeName(),this._registerOption(X),this.on("option:"+X.name(),()=>{this._outputConfiguration.writeOut(`${z}
|
|
24
|
-
`),this._exit(0,"commander.version",z)}),this}description(z,J){if(z===void 0&&J===void 0)return this._description;if(this._description=z,J)this._argsDescription=J;return this}summary(z){if(z===void 0)return this._summary;return this._summary=z,this}alias(z){if(z===void 0)return this._aliases[0];let J=this;if(this.commands.length!==0&&this.commands[this.commands.length-1]._executableHandler)J=this.commands[this.commands.length-1];if(z===J._name)throw Error("Command alias can't be the same as its name");let Q=this.parent?._findCommand(z);if(Q){let X=[Q.name()].concat(Q.aliases()).join("|");throw Error(`cannot add alias '${z}' to command '${this.name()}' as already have command '${X}'`)}return J._aliases.push(z),this}aliases(z){if(z===void 0)return this._aliases;return z.forEach((J)=>this.alias(J)),this}usage(z){if(z===void 0){if(this._usage)return this._usage;let J=this.registeredArguments.map((Q)=>{return P(Q)});return[].concat(this.options.length||this._helpOption!==null?"[options]":[],this.commands.length?"[command]":[],this.registeredArguments.length?J:[]).join(" ")}return this._usage=z,this}name(z){if(z===void 0)return this._name;return this._name=z,this}helpGroup(z){if(z===void 0)return this._helpGroupHeading??"";return this._helpGroupHeading=z,this}commandsGroup(z){if(z===void 0)return this._defaultCommandGroup??"";return this._defaultCommandGroup=z,this}optionsGroup(z){if(z===void 0)return this._defaultOptionGroup??"";return this._defaultOptionGroup=z,this}_initOptionGroup(z){if(this._defaultOptionGroup&&!z.helpGroupHeading)z.helpGroup(this._defaultOptionGroup)}_initCommandGroup(z){if(this._defaultCommandGroup&&!z.helpGroup())z.helpGroup(this._defaultCommandGroup)}nameFromFilename(z){return this._name=U.basename(z,U.extname(z)),this}executableDir(z){if(z===void 0)return this._executableDir;return this._executableDir=z,this}helpInformation(z){let J=this.createHelp(),Q=this._getOutputContext(z);J.prepareContext({error:Q.error,helpWidth:Q.helpWidth,outputHasColors:Q.hasColors});let X=J.formatHelp(this,J);if(Q.hasColors)return X;return this._outputConfiguration.stripColor(X)}_getOutputContext(z){z=z||{};let J=!!z.error,Q,X,Y;if(J)Q=($)=>this._outputConfiguration.writeErr($),X=this._outputConfiguration.getErrHasColors(),Y=this._outputConfiguration.getErrHelpWidth();else Q=($)=>this._outputConfiguration.writeOut($),X=this._outputConfiguration.getOutHasColors(),Y=this._outputConfiguration.getOutHelpWidth();return{error:J,write:($)=>{if(!X)$=this._outputConfiguration.stripColor($);return Q($)},hasColors:X,helpWidth:Y}}outputHelp(z){let J;if(typeof z==="function")J=z,z=void 0;let Q=this._getOutputContext(z),X={error:Q.error,write:Q.write,command:this};this._getCommandAndAncestors().reverse().forEach((Z)=>Z.emit("beforeAllHelp",X)),this.emit("beforeHelp",X);let Y=this.helpInformation({error:Q.error});if(J){if(Y=J(Y),typeof Y!=="string"&&!Buffer.isBuffer(Y))throw Error("outputHelp callback must return a string or a Buffer")}if(Q.write(Y),this._getHelpOption()?.long)this.emit(this._getHelpOption().long);this.emit("afterHelp",X),this._getCommandAndAncestors().forEach((Z)=>Z.emit("afterAllHelp",X))}helpOption(z,J){if(typeof z==="boolean"){if(z){if(this._helpOption===null)this._helpOption=void 0;if(this._defaultOptionGroup)this._initOptionGroup(this._getHelpOption())}else this._helpOption=null;return this}if(this._helpOption=this.createOption(z??"-h, --help",J??"display help for command"),z||J)this._initOptionGroup(this._helpOption);return this}_getHelpOption(){if(this._helpOption===void 0)this.helpOption(void 0,void 0);return this._helpOption}addHelpOption(z){return this._helpOption=z,this._initOptionGroup(z),this}help(z){this.outputHelp(z);let J=Number(G.exitCode??0);if(J===0&&z&&typeof z!=="function"&&z.error)J=1;this._exit(J,"commander.help","(outputHelp)")}addHelpText(z,J){let Q=["beforeAll","before","after","afterAll"];if(!Q.includes(z))throw Error(`Unexpected value for position to addHelpText.
|
|
25
|
-
Expecting one of '${Q.join("', '")}'`);let X=`${z}Help`;return this.on(X,(Y)=>{let Z;if(typeof J==="function")Z=J({error:Y.error,command:Y.command});else Z=J;if(Z)Y.write(`${Z}
|
|
26
|
-
`)}),this}_outputHelpIfRequested(z){let J=this._getHelpOption();if(J&&z.find((X)=>J.is(X)))this.outputHelp(),this._exit(0,"commander.helpDisplayed","(outputHelp)")}}function y(z){return z.map((J)=>{if(!J.startsWith("--inspect"))return J;let Q,X="127.0.0.1",Y="9229",Z;if((Z=J.match(/^(--inspect(-brk)?)$/))!==null)Q=Z[1];else if((Z=J.match(/^(--inspect(-brk|-port)?)=([^:]+)$/))!==null)if(Q=Z[1],/^\d+$/.test(Z[3]))Y=Z[3];else X=Z[3];else if((Z=J.match(/^(--inspect(-brk|-port)?)=([^:]+):(\d+)$/))!==null)Q=Z[1],X=Z[3],Y=Z[4];if(Q&&Y!=="0")return`${Q}=${X}:${parseInt(Y)+1}`;return J})}function A(){if(G.env.NO_COLOR||G.env.FORCE_COLOR==="0"||G.env.FORCE_COLOR==="false")return!1;if(G.env.FORCE_COLOR||G.env.CLICOLOR_FORCE!==void 0)return!0;return}var qz=new E;export{K as y,S as z,E as A};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{Ema as V,wma as B,xma as H}from"./cli-1.1.26-dyyg0r9f.mjs";import{cua as Q}from"./cli-1.1.26-zb5hq3ry.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 gi,Y as hi};
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import{L as x0}from"./cli-1.1.26-vpdrb404.mjs";import{ba as d0}from"./cli-1.1.26-z5qgpexv.mjs";import{Mb as u0}from"./cli-1.1.26-14n169e4.mjs";import{Rb as c0}from"./cli-1.1.26-qymrzn5k.mjs";import{dd as y0,fd as Vf}from"./cli-1.1.26-5p6865dd.mjs";import{id as $,jd as Uf}from"./cli-1.1.26-zy2fcj67.mjs";import{ld as O0,md as Lf}from"./cli-1.1.26-ktfnpsqn.mjs";import{Hd as q0,Id as o0}from"./cli-1.1.26-sx40y42s.mjs";import{mh as m0,nh as Rf}from"./cli-1.1.26-xnqas0g4.mjs";import{FU as C0,HU as b0,IN as a0,JU as Yf,MU as N0,NH as E0,OH as Qf,OU as Zf,QG as T0,RG as l0,SG as n,WN as U0,YN as n0,ZG as i0,cH as m,dH as Q0,eH as P0,fH as Jf,jy as E,lT as A0,nT as D0,ny as J0,pT as Xf,qo as p,ro as g0,so as f0,to as S0,uo as F0,vU as _0,vo as $0,yN as R0,yo as _,zo as a}from"./cli-1.1.26-kvt0v6vq.mjs";import{C0 as zf,E1 as e,G1 as A,K1 as l,f0 as u,j2 as o,x0 as K0}from"./cli-1.1.26-nv2mgz6h.mjs";import{L4 as t,M4 as q,N4 as G,O4 as w}from"./cli-1.1.26-qf02kggq.mjs";import{H5 as I0,M5 as Tf,l6 as k0,m6 as qf}from"./cli-1.1.26-tgtv1jp3.mjs";import{Dfa as H0,Fea as H,Iea as K,Jfa as j,Lea as w0,Mfa as i,Nea as G0,Ofa as B0,Vea as d,fga as X0,qha as M0,tha as Ff}from"./cli-1.1.26-mvjefec1.mjs";import{nia as W,ria as e0}from"./cli-1.1.26-79g0hfrb.mjs";import{Jia as W0,Ria as h0,Xia as ff}from"./cli-1.1.26-chwpygff.mjs";import{Ika as I,Lka as c}from"./cli-1.1.26-n0thzakv.mjs";import{Ola as s0}from"./cli-1.1.26-nr4x1ay3.mjs";import{Ema as t0,wma as S}from"./cli-1.1.26-dyyg0r9f.mjs";import{Toa as Y0,Zqa as Z0,hsa as r0}from"./cli-1.1.26-4aztw2ex.mjs";import{_ta as x,dua as B}from"./cli-1.1.26-zb5hq3ry.mjs";c();Xf();r0();import{appendFileSync as Wf}from"fs";Zf();zf();Q0();ff();Ff();c();d();i0();a();var s=x(u(),1);o();w();var v=x(u(),1);function D(){let T=v.c(1),f;if(T[0]===Symbol.for("react.memo_cache_sentinel"))f=G(A,{children:["MCP servers may execute code or access system resources. All tool calls require approval. Learn more in the"," ",q(l,{url:"https://code.claude.com/docs/en/mcp",children:"MCP documentation"}),"."]}),T[0]=f;else f=T[0];return f}w();function r(T){let f=s.c(13),{serverName:F,onDone:L}=T,U;if(f[0]!==L||f[1]!==F)U=function(h){I("",{choice:h});f:switch(h){case"yes":case"yes_all":{let M=(K()||{}).enabledMcpjsonServers||[];if(!M.includes(F))H("localSettings",{enabledMcpjsonServers:[...M,F]});if(h==="yes_all")H("localSettings",{enableAllProjectMcpServers:!0});L();break f}case"no":{let M=(K()||{}).disabledMcpjsonServers||[];if(!M.includes(F))H("localSettings",{disabledMcpjsonServers:[...M,F]});L()}}},f[0]=L,f[1]=F,f[2]=U;else U=f[2];let J=U,V=`New MCP server found in .mcp.json: ${F}`,Q;if(f[3]!==J)Q=()=>J("no"),f[3]=J,f[4]=Q;else Q=f[4];let z;if(f[5]===Symbol.for("react.memo_cache_sentinel"))z=q(D,{}),f[5]=z;else z=f[5];let R;if(f[6]===Symbol.for("react.memo_cache_sentinel"))R=[{label:"Use this and all future MCP servers in this project",value:"yes_all"},{label:"Use this MCP server",value:"yes"},{label:"Continue without using this MCP server",value:"no"}],f[6]=R;else R=f[6];let X;if(f[7]!==J)X=q(n,{options:R,onChange:(Z)=>J(Z),onCancel:()=>J("no")}),f[7]=J,f[8]=X;else X=f[8];let Y;if(f[9]!==V||f[10]!==Q||f[11]!==X)Y=G(_,{title:V,color:"warning",onCancel:Q,children:[z,X]}),f[9]=V,f[10]=Q,f[11]=X,f[12]=Y;else Y=f[12];return Y}o0();c();o();d();S0();l0();$0();a();g0();var L0=x(u(),1);w();function z0(T){let f=L0.c(21),{serverNames:F,onDone:L}=T,U;if(f[0]!==L||f[1]!==F)U=function(C){let y=K()||{},p0=y.enabledMcpjsonServers||[],j0=y.disabledMcpjsonServers||[],[b,N]=q0(F,(P)=>C.includes(P));if(I("",{approved:b.length,rejected:N.length}),b.length>0){let P=[...new Set([...p0,...b])];H("localSettings",{enabledMcpjsonServers:P})}if(N.length>0){let P=[...new Set([...j0,...N])];H("localSettings",{disabledMcpjsonServers:P})}L()},f[0]=L,f[1]=F,f[2]=U;else U=f[2];let J=U,V;if(f[3]!==L||f[4]!==F)V=()=>{let C=(K()||{}).disabledMcpjsonServers||[],y=[...new Set([...C,...F])];H("localSettings",{disabledMcpjsonServers:y}),L()},f[3]=L,f[4]=F,f[5]=V;else V=f[5];let Q=V,z=`${F.length} new MCP servers found in .mcp.json`,R;if(f[6]===Symbol.for("react.memo_cache_sentinel"))R=q(D,{}),f[6]=R;else R=f[6];let X;if(f[7]!==F)X=F.map(v0),f[7]=F,f[8]=X;else X=f[8];let Y;if(f[9]!==Q||f[10]!==J||f[11]!==F||f[12]!==X)Y=q(T0,{options:X,defaultValue:F,onSubmit:J,onCancel:Q,hideIndexes:!0}),f[9]=Q,f[10]=J,f[11]=F,f[12]=X,f[13]=Y;else Y=f[13];let Z;if(f[14]!==Q||f[15]!==z||f[16]!==Y)Z=G(_,{title:z,subtitle:"Select any you wish to enable.",color:"warning",onCancel:Q,hideInputGuide:!0,children:[R,Y]}),f[14]=Q,f[15]=z,f[16]=Y,f[17]=Z;else Z=f[17];let h;if(f[18]===Symbol.for("react.memo_cache_sentinel"))h=q(e,{paddingX:1,children:q(A,{dimColor:!0,italic:!0,children:G(F0,{children:[q(p,{shortcut:"Space",action:"select"}),q(p,{shortcut:"Enter",action:"confirm"}),q(f0,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"reject all"})]})})}),f[18]=h;else h=f[18];let O;if(f[19]!==Z)O=G(t,{children:[Z,h]}),f[19]=Z,f[20]=O;else O=f[20];return O}function v0(T){return{label:T,value:T}}Q0();J0();a0();n0();w();async function V0(T){let{servers:f}=R0("project"),F=Object.keys(f).filter((L)=>U0(L)==="pending");if(F.length===0)return;await new Promise((L)=>{let U=()=>void L();if(F.length===1&&F[0]!==void 0){let J=F[0];T.render(q(E,{children:q(m,{children:q(r,{serverName:J,onDone:U})})}))}else T.render(q(E,{children:q(m,{children:q(z0,{serverNames:F,onDone:U})})}))})}J0();Uf();qf();Yf();X0();Vf();X0();s0();t0();class g{frameDurations=[];firstRenderTime;lastRenderTime;record(T){let f=performance.now();if(this.firstRenderTime===void 0)this.firstRenderTime=f;this.lastRenderTime=f,this.frameDurations.push(T)}getMetrics(){if(this.frameDurations.length===0||this.firstRenderTime===void 0||this.lastRenderTime===void 0)return;let T=this.lastRenderTime-this.firstRenderTime;if(T<=0)return;let F=this.frameDurations.length/(T/1000),L=this.frameDurations.slice().sort((Q,z)=>z-Q),U=Math.max(0,Math.ceil(L.length*0.01)-1),J=L[U],V=J>0?1000/J:0;return{averageFps:Math.round(F*100)/100,low1PctFps:Math.round(V*100)/100}}}Lf();Tf();Jf();Rf();Qf();d();e0();w();function hf(){j((T)=>({...T,hasCompletedOnboarding:!0,lastOnboardingVersion:"99.0.0"}))}function wf(T,f){return new Promise((F)=>{let L=(U)=>void F(U);T.render(f(L))})}async function x9(T,f,F){return Gf(T,f,{color:"error",beforeExit:F})}async function Gf(T,f,F){let{Text:L}=await import("./ink-1.1.26-vgbt5egw.mjs"),U=F?.color,J=F?.exitCode??1;T.render(U?q(L,{color:U,children:f}):q(L,{children:f})),T.unmount(),await F?.beforeExit?.(),process.exit(J)}function k(T,f,F){return wf(T,(L)=>q(E,{onChangeAppState:F?.onChangeAppState,children:q(m,{children:f(L)})}))}async function u9(T,f){T.render(f),x0(),await T.waitUntilExit(),await D0(0)}async function c9(T,f,F,L,U){if(S(!1)||process.env.IS_DEMO)return!1;W("setupScreens_start");let J=I0(),V=!1;if(y0()){let{MigrationDialog:z}=await import("./MigrationDialog-1.1.26-bhdbn3pv.mjs");await k(T,(R)=>q(z,{onDone:()=>void R()}))}let Q=i();if(J&&(!Q.theme||!Q.hasCompletedOnboarding)){V=!0;let{Onboarding:z}=await import("./Onboarding-1.1.26-v8am83rd.mjs");await k(T,(R)=>q(z,{onDone:()=>{hf(),R()}}),{onChangeAppState:$})}if(!S(process.env.CLAUBBIT)){if(J&&!H0()){let{TrustDialog:z}=await import("./TrustDialog-1.1.26-sqqx0vck.mjs");await k(T,(R)=>q(z,{commands:L,onDone:R}))}if(Z0(!0),W("setupScreens_after_trust_accepted"),h0(),W0(),N0(),W("setupScreens_after_growthbook_kick"),J){let{errors:z}=E0();if(z.length===0)await V0(T);W("setupScreens_after_mcp_approvals");let R=await b0();if(W("setupScreens_after_claudemd_check"),R){let X=C0(await _0(!0)),{ClaudeMdExternalIncludesDialog:Y}=await import("./ClaudeMdExternalIncludesDialog-1.1.26-4rsh36df.mjs");await k(T,(Z)=>q(Y,{onDone:Z,isStandaloneDialog:!0,externalIncludes:X}))}}}u0(),O0(),W("setupScreens_after_env_applied"),setImmediate(()=>d0());{let z=M0();W("setupScreens_after_tryGetActiveProvider");let R=z?.transport==="anthropic"?z.apiKey?.trim():void 0;if(R){let X=k0(R),Y=B0(X);if(W("setupScreens_after_keyStatus"),Y==="new"){let{ApproveApiKey:Z}=await import("./ApproveApiKey-1.1.26-rngrjmp0.mjs");await k(T,(h)=>q(Z,{customApiKeyTruncated:X,onDone:h}),{onChangeAppState:$})}}}if(W("setupScreens_after_custom_api_key"),(f==="bypassPermissions"||F)&&!w0()){let{BypassPermissionsModeDialog:z}=await import("./BypassPermissionsModeDialog-1.1.26-qzf3wf2e.mjs");await k(T,(R)=>q(z,{onAccept:R}))}if(f==="auto"&&!G0()){let{AutoModeOptInDialog:z}=await import("./AutoModeOptInDialog-1.1.26-9y3h164v.mjs");await k(T,(R)=>q(z,{onAccept:R,onDecline:()=>A0(1),declineExits:!0}))}return W("setupScreens_end"),V}function d9(T){m0();let f=0,F=P0(T);if(F.stdin)I("",{});let L=new g,U=c0();Y0(U);let J=process.env.CLAUDIN_FRAME_TIMING_LOG;return{getFpsMetrics:()=>L.getMetrics(),stats:U,renderOptions:{...F,onFrame:(V)=>{if(L.record(V.durationMs),U.observe("frame_duration_ms",V.durationMs),J&&V.phases){let Q=JSON.stringify({total:V.durationMs,...V.phases,rss:process.memoryUsage.rss(),cpu:process.cpuUsage()})+`
|
|
2
|
-
`;Wf(J,Q)}if(K0())return;for(let Q of V.flickers){if(Q.reason==="resize")continue;let z=Date.now();if(z-f<1000)I("",{desiredHeight:Q.desiredHeight,actualHeight:Q.availableHeight,reason:Q.reason});f=z}}}}}
|
|
3
|
-
export{hf as D,wf as E,x9 as F,Gf as G,k as H,u9 as I,c9 as J,d9 as K};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{Qta as p,Rta as a}from"./cli-1.1.26-rrq5hxxh.mjs";import{aua as i}from"./cli-1.1.26-zb5hq3ry.mjs";var u=i((V)=>{var v=p(),T=a(),_="AWS_ACCESS_KEY_ID",N="AWS_SECRET_ACCESS_KEY",S="AWS_SESSION_TOKEN",C="AWS_CREDENTIAL_EXPIRATION",A="AWS_CREDENTIAL_SCOPE",I="AWS_ACCOUNT_ID",d=(e)=>async()=>{e?.logger?.debug("@aws-sdk/credential-provider-env - fromEnv");let r=process.env[_],s=process.env[N],E=process.env[S],o=process.env[C],n=process.env[A],t=process.env[I];if(r&&s){let c={accessKeyId:r,secretAccessKey:s,...E&&{sessionToken:E},...o&&{expiration:new Date(o)},...n&&{credentialScope:n},...t&&{accountId:t}};return v.setCredentialFeature(c,"CREDENTIALS_ENV_VARS","g"),c}throw new T.CredentialsProviderError("Unable to find environment variable credentials.",{logger:e?.logger})};V.ENV_ACCOUNT_ID=I;V.ENV_CREDENTIAL_SCOPE=A;V.ENV_EXPIRATION=C;V.ENV_KEY=_;V.ENV_SECRET=N;V.ENV_SESSION=S;V.fromEnv=d});
|
|
2
|
-
export{u as m_};
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import{se as j,te as w,ue as _,ve as D,we as L,xe as A,ye as O}from"./cli-1.1.26-cmeam5fv.mjs";import{$B as V,Op as R,Rp as b,YB as W,YM as X,ZM as I,bC as C,nT as h,pT as y}from"./cli-1.1.26-kvt0v6vq.mjs";import{Fha as U,Nha as S,e$ as Q,f$ as N}from"./cli-1.1.26-mvjefec1.mjs";import{Ika as K,Lka as v}from"./cli-1.1.26-n0thzakv.mjs";import{Qla as x,Ula as M}from"./cli-1.1.26-79j24jxp.mjs";import{jma as B,qma as F}from"./cli-1.1.26-7ssnr221.mjs";N();F();y();S();I();b();M();C();v();O();function Z(z,J,q){U(z);let G=q?`${J} plugin "${q}"`:J==="disable-all"?"disable all plugins":`${J} plugins`;console.error(`${Q.cross} Failed to ${G}: ${B(z)}`);let H=q?(()=>{let{name:Y,marketplace:$}=R(q);return{_PROTO_plugin_name:Y,...$&&{_PROTO_marketplace_name:$},...W(Y,$,X())}})():{};K("",{command:J,error_category:V(z),...H}),process.exit(1)}async function g(z,J="user"){try{console.log(`Installing plugin "${z}"...`);let q=await j(z,J);if(!q.success)throw Error(q.message);console.log(`${Q.tick} ${q.message}`);let{name:G,marketplace:H}=R(q.pluginId||z);K("",{_PROTO_plugin_name:G,...H&&{_PROTO_marketplace_name:H},scope:q.scope||J,install_source:"cli-explicit",...W(G,H,X())}),process.exit(0)}catch(q){Z(q,"install",z)}}async function a(z,J="user",q=!1){try{let G=await w(z,J,!q);if(!G.success)throw Error(G.message);console.log(`${Q.tick} ${G.message}`);let{name:H,marketplace:Y}=R(G.pluginId||z);K("",{_PROTO_plugin_name:H,...Y&&{_PROTO_marketplace_name:Y},scope:G.scope||J,...W(H,Y,X())}),process.exit(0)}catch(G){Z(G,"uninstall",z)}}async function i(z,J){try{let q=await _(z,J);if(!q.success)throw Error(q.message);console.log(`${Q.tick} ${q.message}`);let{name:G,marketplace:H}=R(q.pluginId||z);K("",{_PROTO_plugin_name:G,...H&&{_PROTO_marketplace_name:H},scope:q.scope,...W(G,H,X())}),process.exit(0)}catch(q){Z(q,"enable",z)}}async function u(z,J){try{let q=await D(z,J);if(!q.success)throw Error(q.message);console.log(`${Q.tick} ${q.message}`);let{name:G,marketplace:H}=R(q.pluginId||z);K("",{_PROTO_plugin_name:G,...H&&{_PROTO_marketplace_name:H},scope:q.scope,...W(G,H,X())}),process.exit(0)}catch(q){Z(q,"disable",z)}}async function n(){try{let z=await L();if(!z.success)throw Error(z.message);console.log(`${Q.tick} ${z.message}`),K("",{}),process.exit(0)}catch(z){Z(z,"disable-all")}}async function r(z,J){try{x(`Checking for updates for plugin "${z}" at ${J} scope…
|
|
2
|
-
`);let q=await A(z,J);if(!q.success)throw Error(q.message);if(x(`${Q.tick} ${q.message}
|
|
3
|
-
`),!q.alreadyUpToDate){let{name:G,marketplace:H}=R(q.pluginId||z);K("",{_PROTO_plugin_name:G,...H&&{_PROTO_marketplace_name:H},old_version:q.oldVersion||"unknown",new_version:q.newVersion||"unknown",...W(G,H,X())})}await h(0)}catch(q){Z(q,"update",z)}}
|
|
4
|
-
export{g as h,a as i,i as j,u as k,n as l,r as m};
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import{sia as X,wia as w,xia as L,yia as _}from"./cli-1.1.26-edg965cj.mjs";import{Ika as MD,Lka as cD}from"./cli-1.1.26-n0thzakv.mjs";import{Bla as aD,Lla as x,Ola as dD,rla as ND,tla as rD,xla as jD}from"./cli-1.1.26-nr4x1ay3.mjs";import{Ema as mD,tma as zD,wma as HD}from"./cli-1.1.26-dyyg0r9f.mjs";import{hsa as PD,ioa as UD}from"./cli-1.1.26-4aztw2ex.mjs";import{_ta as LD,aua as bD,cua as V,dua as hD}from"./cli-1.1.26-zb5hq3ry.mjs";var T=bD((Cu,S)=>{S.exports=()=>{return/[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26D3\uFE0F?(?:\u200D\uD83D\uDCA5)?|\u26F9(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF43\uDF45-\uDF4A\uDF4C-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDF44(?:\u200D\uD83D\uDFEB)?|\uDF4B(?:\u200D\uD83D\uDFE9)?|\uDFC3(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E-\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4\uDEB5](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE41\uDE43\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED8\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC08(?:\u200D\u2B1B)?|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC26(?:\u200D(?:\u2B1B|\uD83D\uDD25))?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFE])))?))?|\uDD75(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?|\uDE42(?:\u200D[\u2194\u2195]\uFE0F?)?|\uDEB6(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3C-\uDD3E\uDDB8\uDDB9\uDDCD\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE8A\uDE8E-\uDEC2\uDEC6\uDEC8\uDECD-\uDEDC\uDEDF-\uDEEA\uDEEF]|\uDDCE(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1|\uDDD1\u200D\uD83E\uDDD2(?:\u200D\uD83E\uDDD2)?|\uDDD2(?:\u200D\uD83E\uDDD2)?))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g}});var W=161,f=1114109,p,l=12288,g=65510,h,P=4352,c=262141,j;var m=V(()=>{p=[161,161,164,164,167,168,170,170,173,174,176,180,182,186,188,191,198,198,208,208,215,216,222,225,230,230,232,234,236,237,240,240,242,243,247,250,252,252,254,254,257,257,273,273,275,275,283,283,294,295,299,299,305,307,312,312,319,322,324,324,328,331,333,333,338,339,358,359,363,363,462,462,464,464,466,466,468,468,470,470,472,472,474,474,476,476,593,593,609,609,708,708,711,711,713,715,717,717,720,720,728,731,733,733,735,735,768,879,913,929,931,937,945,961,963,969,1025,1025,1040,1103,1105,1105,8208,8208,8211,8214,8216,8217,8220,8221,8224,8226,8228,8231,8240,8240,8242,8243,8245,8245,8251,8251,8254,8254,8308,8308,8319,8319,8321,8324,8364,8364,8451,8451,8453,8453,8457,8457,8467,8467,8470,8470,8481,8482,8486,8486,8491,8491,8531,8532,8539,8542,8544,8555,8560,8569,8585,8585,8592,8601,8632,8633,8658,8658,8660,8660,8679,8679,8704,8704,8706,8707,8711,8712,8715,8715,8719,8719,8721,8721,8725,8725,8730,8730,8733,8736,8739,8739,8741,8741,8743,8748,8750,8750,8756,8759,8764,8765,8776,8776,8780,8780,8786,8786,8800,8801,8804,8807,8810,8811,8814,8815,8834,8835,8838,8839,8853,8853,8857,8857,8869,8869,8895,8895,8978,8978,9312,9449,9451,9547,9552,9587,9600,9615,9618,9621,9632,9633,9635,9641,9650,9651,9654,9655,9660,9661,9664,9665,9670,9672,9675,9675,9678,9681,9698,9701,9711,9711,9733,9734,9737,9737,9742,9743,9756,9756,9758,9758,9792,9792,9794,9794,9824,9825,9827,9829,9831,9834,9836,9837,9839,9839,9886,9887,9919,9919,9926,9933,9935,9939,9941,9953,9955,9955,9960,9961,9963,9969,9972,9972,9974,9977,9979,9980,9982,9983,10045,10045,10102,10111,11094,11097,12872,12879,57344,63743,65024,65039,65533,65533,127232,127242,127248,127277,127280,127337,127344,127373,127375,127376,127387,127404,917760,917999,983040,1048573,1048576,1114109],h=[12288,12288,65281,65376,65504,65510],j=[4352,4447,8986,8987,9001,9002,9193,9196,9200,9200,9203,9203,9725,9726,9748,9749,9776,9783,9800,9811,9855,9855,9866,9871,9875,9875,9889,9889,9898,9899,9917,9918,9924,9925,9934,9934,9940,9940,9962,9962,9970,9971,9973,9973,9978,9978,9981,9981,9989,9989,9994,9995,10024,10024,10060,10060,10062,10062,10067,10069,10071,10071,10133,10135,10160,10160,10175,10175,11035,11036,11088,11088,11093,11093,11904,11929,11931,12019,12032,12245,12272,12287,12289,12350,12353,12438,12441,12543,12549,12591,12593,12686,12688,12773,12783,12830,12832,12871,12880,42124,42128,42182,43360,43388,44032,55203,63744,64255,65040,65049,65072,65106,65108,65126,65128,65131,94176,94180,94192,94198,94208,101589,101631,101662,101760,101874,110576,110579,110581,110587,110589,110590,110592,110882,110898,110898,110928,110930,110933,110933,110948,110951,110960,111355,119552,119638,119648,119670,126980,126980,127183,127183,127374,127374,127377,127386,127488,127490,127504,127547,127552,127560,127568,127569,127584,127589,127744,127776,127789,127797,127799,127868,127870,127891,127904,127946,127951,127955,127968,127984,127988,127988,127992,128062,128064,128064,128066,128252,128255,128317,128331,128334,128336,128359,128378,128378,128405,128406,128420,128420,128507,128591,128640,128709,128716,128716,128720,128722,128725,128728,128732,128735,128747,128748,128756,128764,128992,129003,129008,129008,129292,129338,129340,129349,129351,129535,129648,129660,129664,129674,129678,129734,129736,129736,129741,129756,129759,129770,129775,129784,131072,196605,196608,262141]});var Z=(D,F)=>{let u=0,C=Math.floor(D.length/2)-1;while(u<=C){let E=Math.floor((u+C)/2),B=E*2;if(F<D[B])C=E-1;else if(F>D[B+1])u=E+1;else return!0}return!1};var r=()=>{};function kD(D){let F=D[0],u=D[1];for(let C=0;C<D.length;C+=2){let E=D[C],B=D[C+1];if(a>=E&&a<=B)return[E,B];if(B-E>u-F)F=E,u=B}return[F,u]}var a=19968,_D,yD,d=(D)=>{if(D<W||D>f)return!1;return Z(p,D)},s=(D)=>{if(D<l||D>g)return!1;return Z(h,D)},n=(D)=>{if(D>=_D&&D<=yD)return!0;if(D<P||D>c)return!1;return Z(j,D)};var i=V(()=>{m();r();[_D,yD]=kD(j)});function RD(D){if(!Number.isSafeInteger(D))throw TypeError(`Expected a code point, got \`${typeof D}\`.`)}function v(D,{ambiguousAsWide:F=!1}={}){if(RD(D),s(D)||n(D)||F&&d(D))return 2;return 1}var o=V(()=>{i()});function G({onlyFirst:D=!1}={}){return new RegExp("(?:\\u001B\\][\\s\\S]*?(?:\\u0007|\\u001B\\u005C|\\u009C))|[\\u001B\\u009B][[\\]()#;?]*(?:\\d{1,4}(?:[;:]\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]",D?void 0:"g")}var e=()=>{};function O(D){if(typeof D!=="string")throw TypeError(`Expected a \`string\`, got \`${typeof D}\``);if(!D.includes("\x1B")&&!D.includes(""))return D;return D.replace(wD,"")}var wD;var t=V(()=>{e();wD=G()});function BD(D){let F=0,u=D.replace(ID,()=>{return F++,""});return{count:F,stripped:u}}function AD(D){if(typeof D!=="string"||D.length===0)return 0;if(D.includes(ED)){let{count:C,stripped:E}=BD(D);return C+AD(E)}let F=!0;for(let C=0;C<D.length;C++){let E=D.charCodeAt(C);if(E>=127||E===27){F=!1;break}}if(F){let C=0;for(let E=0;E<D.length;E++)if(D.charCodeAt(E)>31)C++;return C}if(D.includes("\x1B")){if(D=O(D),D.length===0)return 0}if(!xD(D)){let C=0;for(let E of D){let B=E.codePointAt(0);if(!uD(B))C+=v(B,{ambiguousAsWide:!1})}return C}let u=0;for(let{segment:C}of X().segment(D)){if(DD.lastIndex=0,DD.test(C)){u+=SD(C);continue}for(let E of C){let B=E.codePointAt(0);if(!uD(B)){u+=v(B,{ambiguousAsWide:!1});break}}}return u}function xD(D){for(let F of D){let u=F.codePointAt(0);if(u>=127744&&u<=129791)return!0;if(u>=9728&&u<=10175)return!0;if(u>=127462&&u<=127487)return!0;if(u>=65024&&u<=65039)return!0;if(u===8205)return!0}return!1}function SD(D){let F=D.codePointAt(0);if(F>=127462&&F<=127487){let u=0;for(let C of D)u++;return u===1?1:2}if(D.length===2){if(D.codePointAt(1)===65039&&(F>=48&&F<=57||F===35||F===42))return 1}return 2}function uD(D){if(D>=32&&D<127)return!1;if(D>=160&&D<768)return D===173;if(D<=31||D>=127&&D<=159)return!0;if(D>=8203&&D<=8205||D===65279||D>=8288&&D<=8292)return!0;if(D>=65024&&D<=65039||D>=917760&&D<=917999)return!0;if(D>=768&&D<=879||D>=6832&&D<=6911||D>=7616&&D<=7679||D>=8400&&D<=8447||D>=65056&&D<=65071)return!0;if(D>=2304&&D<=3407){let F=D&127;if(F<=3)return!0;if(F>=58&&F<=79)return!0;if(F>=81&&F<=87)return!0;if(F>=98&&F<=99)return!0}if(D===3633||D>=3636&&D<=3642||D>=3655&&D<=3662||D===3761||D>=3764&&D<=3772||D>=3784&&D<=3789)return!0;if(D>=1536&&D<=1541||D===1757||D===1807||D===2274)return!0;if(D>=55296&&D<=57343)return!0;if(D>=917504&&D<=917631)return!0;return!1}var CD,DD,ED="\uDBFB\uDEEE",ID,b,FD,$;var QD=V(()=>{o();t();_();CD=LD(T(),1),DD=CD.default(),ID=/\u{10EEEE}\p{M}{0,3}/gu;b=typeof Bun<"u"&&typeof Bun.stringWidth==="function"?Bun.stringWidth:null,FD={ambiguousIsNarrow:!0},$=b?(D)=>{if(D.includes(ED)){let{count:F,stripped:u}=BD(D);return F+(u.length>0?b(u,FD):0)}return b(D,FD)}:AD});function TD(D,F){let u=D??"";if($(u)<=F)return u;if(F<=0)return"…";if(F<5)return K(u,F);let C=u.lastIndexOf("/"),E=C>=0?u.slice(C):u,B=C>=0?u.slice(0,C):"",A=$(E);if(A>=F-1)return y(D,F);let Q=F-1-A;if(Q<=0)return y(E,F);return VD(B,Q)+"…"+E}function K(D,F){let u=D??"";if($(u)<=F)return u;if(F<=1)return"…";let C=0,E="";for(let{segment:B}of X().segment(u)){let A=$(B);if(C+A>F-1)break;E+=B,C+=A}return E+"…"}function y(D,F){let u=D??"";if($(u)<=F)return u;if(F<=1)return"…";let C=[...X().segment(u)],E=0,B=C.length;for(let A=C.length-1;A>=0;A--){let Q=$(C[A].segment);if(E+Q>F-1)break;E+=Q,B=A}return"…"+C.slice(B).map((A)=>A.segment).join("")}function VD(D,F){let u=D??"";if($(u)<=F)return u;if(F<=0)return"";let C=0,E="";for(let{segment:B}of X().segment(u)){let A=$(B);if(C+A>F)break;E+=B,C+=A}return E}function WD(D,F,u=!1){let C=D??"";if(C==="")return"";let E=C;if(u){let B=C.indexOf(`
|
|
2
|
-
`);if(B!==-1){if(E=C.substring(0,B),$(E)+1>F)return K(E,F);return`${E}…`}}if($(E)<=F)return E;return K(E,F)}var $D=V(()=>{QD();_()});function U(D){let F=D/1024;if(F<1)return`${D} bytes`;if(F<1024)return`${F.toFixed(1).replace(/\.0$/,"")}KB`;let u=F/1024;if(u<1024)return`${u.toFixed(1).replace(/\.0$/,"")}MB`;return`${(u/1024).toFixed(1).replace(/\.0$/,"")}GB`}function Ru(D){return`${(D/1000).toFixed(1)}s`}function wu(D,F){if(D<60000){if(D===0)return"0s";if(D<1000)return`${(D/1000).toFixed(1)}s`;return`${Math.floor(D/1000).toString()}s`}let u=Math.floor(D/86400000),C=Math.floor(D%86400000/3600000),E=Math.floor(D%3600000/60000),B=Math.round(D%60000/1000);if(B===60)B=0,E++;if(E===60)E=0,C++;if(C===24)C=0,u++;let A=F?.hideTrailingZeros;if(F?.mostSignificantOnly){if(u>0)return`${u}d`;if(C>0)return`${C}h`;if(E>0)return`${E}m`;return`${B}s`}if(u>0){if(A&&C===0&&E===0)return`${u}d`;if(A&&E===0)return`${u}d ${C}h`;return`${u}d ${C}h ${E}m`}if(C>0){if(A&&E===0&&B===0)return`${C}h`;if(A&&B===0)return`${C}h ${E}m`;return`${C}h ${E}m ${B}s`}if(E>0){if(A&&B===0)return`${E}m`;return`${E}m ${B}s`}return`${B}s`}function pD(D){let F=D>=1000;return fD(F).format(D).toLowerCase()}function Lu(D){return pD(D).replace(".0","")}function qD(D,F={}){let{style:u="narrow",numeric:C="always",now:E=new Date}=F,B=D.getTime()-E.getTime(),A=Math.trunc(B/1000),Q=[{unit:"year",seconds:31536000,shortUnit:"y"},{unit:"month",seconds:2592000,shortUnit:"mo"},{unit:"week",seconds:604800,shortUnit:"w"},{unit:"day",seconds:86400,shortUnit:"d"},{unit:"hour",seconds:3600,shortUnit:"h"},{unit:"minute",seconds:60,shortUnit:"m"},{unit:"second",seconds:1,shortUnit:"s"}];for(let{unit:q,seconds:Y,shortUnit:N}of Q)if(Math.abs(A)>=Y){let J=Math.trunc(A/Y);if(u==="narrow")return A<0?`${Math.abs(J)}${N} ago`:`in ${J}${N}`;return w("long",C).format(J,q)}if(u==="narrow")return A<=0?"0s ago":"in 0s";return w(u,C).format(0,"second")}function lD(D,F={}){let{now:u=new Date,...C}=F;if(D>u)return qD(D,{...C,now:u});return qD(D,{...C,numeric:"always",now:u})}function Iu(D){let F=D.fileSize!==void 0?U(D.fileSize):`${D.messageCount} messages`,u=[lD(D.modified,{style:"short"}),...D.gitBranch?[D.gitBranch]:[],F];if(D.tag)u.push(`#${D.tag}`);if(D.agentSetting)u.push(`@${D.agentSetting}`);if(D.prNumber)u.push(D.prRepository?`${D.prRepository}#${D.prNumber}`:`#${D.prNumber}`);return u.join(" · ")}function gD(D,F=!1,u=!0){if(!D)return;let C=new Date(D*1000),E=new Date,B=C.getMinutes();if((C.getTime()-E.getTime())/3600000>24){let q={month:"short",day:"numeric",hour:u?"numeric":void 0,minute:!u||B===0?void 0:"2-digit",hour12:u?!0:void 0};if(C.getFullYear()!==E.getFullYear())q.year="numeric";return C.toLocaleString("en-US",q).replace(/ ([AP]M)/i,(N,J)=>J.toLowerCase())+(F?` (${L()})`:"")}return C.toLocaleTimeString("en-US",{hour:"numeric",minute:B===0?void 0:"2-digit",hour12:!0}).replace(/ ([AP]M)/i,(q,Y)=>Y.toLowerCase())+(F?` (${L()})`:"")}function xu(D,F=!1,u=!0){let C=new Date(D);return`${gD(Math.floor(C.getTime()/1000),F,u)}`}var k=null,R=null,fD=(D)=>{if(D){if(!k)k=new Intl.NumberFormat("en-US",{notation:"compact",maximumFractionDigits:1,minimumFractionDigits:1});return k}else{if(!R)R=new Intl.NumberFormat("en-US",{notation:"compact",maximumFractionDigits:1,minimumFractionDigits:0});return R}};var XD=V(()=>{_();$D()});function z(){if(!I)I=hD("perf_hooks").performance;return I}function M(D){return D.toFixed(3)}function YD(D,F,u,C,E,B,A=""){let Q=C?` | RSS: ${U(C.rss)}, Heap: ${U(C.heapUsed)}`:"";return`[+${M(D).padStart(E)}ms] (+${M(F).padStart(B)}ms) ${u}${A}${Q}`}var I=null;var JD=V(()=>{XD()});import{dirname as sD,join as nD}from"path";function eD(D){if(!GD)return;if(z().mark(D),H)OD.push(process.memoryUsage())}function ZD(){if(!H)return"Startup profiling not enabled";let F=z().getEntriesByType("mark");if(F.length===0)return"No profiling checkpoints recorded";let u=[];u.push("=".repeat(80)),u.push("STARTUP PROFILING REPORT"),u.push("=".repeat(80)),u.push("");let C=0;for(let[B,A]of F.entries())u.push(YD(A.startTime,A.startTime-C,A.name,OD[B],8,7)),C=A.startTime;let E=F[F.length-1];return u.push(""),u.push(`Total startup time: ${M(E?.startTime??0)}ms`),u.push("=".repeat(80)),u.join(`
|
|
3
|
-
`)}function tD(){if(KD)return;if(KD=!0,uu(),H){let D=Du(),F=sD(D);jD().mkdirSync(F),ND(D,ZD(),{encoding:"utf8",flush:!0}),x("Startup profiling report:"),x(ZD())}}function Du(){return nD(zD(),"startup-perf",`${UD()}.txt`)}function uu(){if(!vD)return;let F=z().getEntriesByType("mark");if(F.length===0)return;let u=new Map;for(let E of F)u.set(E.name,E.startTime);let C={};for(let[E,[B,A]]of Object.entries(oD)){let Q=u.get(B),q=u.get(A);if(Q!==void 0&&q!==void 0)C[`${E}_ms`]=Math.round(q-Q)}C.checkpoint_count=F.length,MD("",C)}var H,iD=0.005,vD,GD,OD,oD,KD=!1;var Fu=V(()=>{PD();cD();dD();mD();aD();JD();rD();H=HD(process.env.CLAUDIN_PROFILE_STARTUP),vD=Math.random()<iD,GD=H||vD,OD=[],oD={import_time:["cli_entry","main_tsx_imports_loaded"],init_time:["init_function_start","init_function_end"],settings_time:["eagerLoadSettings_start","eagerLoadSettings_end"],total_time:["cli_entry","main_after_run"]};if(GD)eD("profiler_initialized"),process.on("exit",()=>{try{tD()}catch{}})});
|
|
4
|
-
export{v as Oha,o as Pha,O as Qha,t as Rha,$ as Sha,QD as Tha,TD as Uha,K as Vha,y as Wha,VD as Xha,WD as Yha,$D as Zha,U as _ha,Ru as $ha,wu as aia,pD as bia,Lu as cia,qD as dia,lD as eia,Iu as fia,gD as gia,xu as hia,XD as iia,z as jia,M as kia,YD as lia,JD as mia,eD as nia,tD as oia,Du as pia,uu as qia,Fu as ria};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{cua as K}from"./cli-1.1.26-zb5hq3ry.mjs";function C(f){return(j)=>{if(j.code==="EPIPE")f.destroy()}}function M(){process.stdout.on("error",C(process.stdout)),process.stderr.on("error",C(process.stderr))}function G(f,j){if(f.destroyed)return;f.write(j)}function N(f){G(process.stdout,f)}function Q(f){G(process.stderr,f)}function R(f){console.error(f),process.exit(1)}function S(f,j){return new Promise((H)=>{let q=(J)=>{clearTimeout(B),f.off("end",z),f.off("data",A),H(J)},z=()=>q(!1),A=()=>clearTimeout(B),B=setTimeout(q,j,!0);f.once("end",z),f.once("data",A)})}var L=()=>{};
|
|
2
|
-
export{M as Pla,N as Qla,Q as Rla,R as Sla,S as Tla,L as Ula};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{Nja as q,Pja as A,Qja as x,Rja as B}from"./cli-1.1.26-3gepexgn.mjs";import{tla as J}from"./cli-1.1.26-nr4x1ay3.mjs";import{qma as G}from"./cli-1.1.26-7ssnr221.mjs";G();J();A();B();var F=x(()=>q.object({session_id:q.string(),ws_url:q.string(),work_dir:q.string().optional()}));
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{cua as r}from"./cli-1.1.26-zb5hq3ry.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.37.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};
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import{Msa as Q,Nsa as V,Osa as W,Psa as X,Qsa as Y,Rsa as Z,jta as w}from"./cli-1.1.26-thxyzhdj.mjs";import{cua as v}from"./cli-1.1.26-zb5hq3ry.mjs";function J(j,z){if(!(j instanceof Error))return!1;for(let G=Object.getPrototypeOf(j);G!==null;G=Object.getPrototypeOf(G))if(G.constructor?.name===z)return!0;return!1}function S(j){return j instanceof Q||J(j,"APIError")}function k(j){return j instanceof W||J(j,"APIConnectionError")}function F(j){return j instanceof X||J(j,"APIConnectionTimeoutError")}function D(j){return j instanceof V||J(j,"APIUserAbortError")}function P(j){return j instanceof Y||J(j,"AuthenticationError")}function x(j){return j instanceof Z||J(j,"NotFoundError")}function y(j){return j instanceof _||D(j)||j instanceof Error&&j.name==="AbortError"}function f(j,z){return j instanceof Error&&j.message===z}function N(j){return j instanceof Error?j:Error(String(j))}function I(j){return j instanceof Error?j.message:String(j)}function $(j){if(j&&typeof j==="object"&&"code"in j&&typeof j.code==="string")return j.code;return}function A(j){return $(j)==="ENOENT"}function p(j){if(j&&typeof j==="object"&&"path"in j&&typeof j.path==="string")return j.path;return}function C(j,z=5){if(!(j instanceof Error))return String(j);if(!j.stack)return j.message;let G=j.stack.split(`
|
|
2
|
-
`),H=G[0]??j.message,K=G.slice(1).filter((q)=>q.trim().startsWith("at "));if(K.length<=z)return j.stack;return[H,...K.slice(0,z)].join(`
|
|
3
|
-
`)}function h(j){let z=$(j);return z==="ENOENT"||z==="EACCES"||z==="EPERM"||z==="ENOTDIR"||z==="ELOOP"}function E(j){let z=I(j);if(!j||typeof j!=="object"||!("isAxiosError"in j)||!j.isAxiosError)return{kind:"other",message:z};let G=j,H=G.response?.status;if(H===401||H===403)return{kind:"auth",status:H,message:z};if(G.code==="ECONNABORTED")return{kind:"timeout",status:H,message:z};if(G.code==="ECONNREFUSED"||G.code==="ENOTFOUND")return{kind:"network",status:H,message:z};return{kind:"http",status:H,message:z}}var B,L,_,T,O,R,U;var b=v(()=>{w();B=class B extends Error{constructor(j,z){super(j,z);this.name=this.constructor.name}};L=class L extends Error{};_=class _ extends Error{constructor(j){super(j);this.name="AbortError"}};T=class T extends Error{filePath;defaultConfig;constructor(j,z,G){super(j);this.name="ConfigParseError",this.filePath=z,this.defaultConfig=G}};O=class O extends Error{stdout;stderr;code;interrupted;constructor(j,z,G,H){super("Shell command failed");this.stdout=j;this.stderr=z;this.code=G;this.interrupted=H;this.name="ShellError"}};R=class R extends Error{formattedMessage;constructor(j,z){super(j);this.formattedMessage=z;this.name="TeleportOperationError"}};U=class U extends Error{telemetryMessage;constructor(j,z){super(j);this.name="TelemetrySafeError",this.telemetryMessage=z??j}}});
|
|
4
|
-
export{B as Vla,L as Wla,_ as Xla,S as Yla,k as Zla,F as _la,D as $la,P as ama,x as bma,y as cma,T as dma,O as ema,R as fma,U as gma,f as hma,N as ima,I as jma,$ as kma,A as lma,p as mma,C as nma,h as oma,E as pma,b as qma};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{cua as b}from"./cli-1.1.26-zb5hq3ry.mjs";var j=86400000,k="Remote Control is only available with claude.ai subscriptions. Run `/provider` and sign in with your claude.ai account.",q="Error: You must be logged in to use Remote Control.\n\nRemote Control is only available with claude.ai subscriptions. Run `/provider` and sign in with your claude.ai account.",w="Remote Control disconnected.";var g=()=>{};
|
|
2
|
-
export{j as fe,k as ge,q as he,w as ie,g as je};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{G1 as t,f0 as s,j2 as f}from"./cli-1.1.26-nv2mgz6h.mjs";import{M4 as n,N4 as c,O4 as r}from"./cli-1.1.26-qf02kggq.mjs";import{_ta as m,cua as l}from"./cli-1.1.26-zb5hq3ry.mjs";function T(){let o=i.c(1),e;if(o[0]===Symbol.for("react.memo_cache_sentinel"))e=c(t,{color:"permission",children:["Press ",n(t,{bold:!0,children:"Enter"})," to continue…"]}),o[0]=e;else e=o[0];return e}var i;var p=l(()=>{f();r();i=m(s(),1)});
|
|
2
|
-
export{T as Mg,p as Ng};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{IS as R,Km as W,Nm as P,Rk as Q,Sk as I,UK as Y}from"./cli-1.1.26-kvt0v6vq.mjs";import{Qha as B,Rha as f}from"./cli-1.1.26-79g0hfrb.mjs";import{bka as H,cka as J,xka as F}from"./cli-1.1.26-pf85an2q.mjs";import{hsa as $,ioa as x}from"./cli-1.1.26-4aztw2ex.mjs";import{cua as Z}from"./cli-1.1.26-zb5hq3ry.mjs";import{randomUUID as U}from"crypto";function S(j){return j.flatMap((h)=>{switch(h.type){case"assistant":return[{type:"assistant",message:h.message,uuid:h.uuid,requestId:void 0,timestamp:new Date().toISOString()}];case"user":return[{type:"user",message:h.message,uuid:h.uuid??U(),timestamp:h.timestamp??new Date().toISOString(),isMeta:h.isSynthetic}];case"system":if(h.subtype==="compact_boundary")return[{type:"system",content:"Conversation compacted",level:"info",subtype:"compact_boundary",compactMetadata:X(h.compact_metadata),uuid:h.uuid,timestamp:new Date().toISOString()}];return[];default:return[]}})}function V(j){let h=j.preservedSegment;return{trigger:j.trigger,pre_tokens:j.preTokens,...h&&{preserved_segment:{head_uuid:h.headUuid,anchor_uuid:h.anchorUuid,tail_uuid:h.tailUuid}}}}function X(j){let h=j.preserved_segment;return{trigger:j.trigger,preTokens:j.pre_tokens,...h&&{preservedSegment:{headUuid:h.head_uuid,anchorUuid:h.anchor_uuid,tailUuid:h.tail_uuid}}}}function r(j){return j.flatMap((h)=>{switch(h.type){case"assistant":return[{type:"assistant",message:{...z(h),stop_details:null},session_id:x(),parent_tool_use_id:null,uuid:h.uuid,error:h.error}];case"user":return[{type:"user",message:h.message,session_id:x(),parent_tool_use_id:null,uuid:h.uuid,timestamp:h.timestamp,isSynthetic:h.isMeta||h.isVisibleInTranscriptOnly,...h.toolUseResult!==void 0?{tool_use_result:h.toolUseResult}:{}}];case"system":if(h.subtype==="compact_boundary"&&h.compactMetadata)return[{type:"system",subtype:"compact_boundary",session_id:x(),uuid:h.uuid,compact_metadata:V(h.compactMetadata)}];if(h.subtype==="local_command"&&(h.content.includes(`<${H}>`)||h.content.includes(`<${J}>`)))return[w(h.content,h.uuid)];return[];default:return[]}})}function w(j,h){let v=B(j).replace(/<local-command-stdout>([\s\S]*?)<\/local-command-stdout>/,"$1").replace(/<local-command-stderr>([\s\S]*?)<\/local-command-stderr>/,"$1").trim();return{type:"assistant",message:{...Y({content:v}).message,stop_details:null},parent_tool_use_id:null,session_id:x(),uuid:h}}function T(j){if(!j)return;return{status:j.status,...j.resetsAt!==void 0&&{resetsAt:j.resetsAt},...j.rateLimitType!==void 0&&{rateLimitType:j.rateLimitType},...j.utilization!==void 0&&{utilization:j.utilization},...j.overageStatus!==void 0&&{overageStatus:j.overageStatus},...j.overageResetsAt!==void 0&&{overageResetsAt:j.overageResetsAt},...j.overageDisabledReason!==void 0&&{overageDisabledReason:j.overageDisabledReason},...j.isUsingOverage!==void 0&&{isUsingOverage:j.isUsingOverage},...j.surpassedThreshold!==void 0&&{surpassedThreshold:j.surpassedThreshold}}}function z(j){let h=j.message.content;if(!Array.isArray(h))return j.message;let v=h.map((q)=>{if(q.type!=="tool_use")return q;if(q.name===Q){let y=W();if(y)return{...q,input:{...q.input,plan:y}}}return q});return{...j.message,content:v}}var G=Z(()=>{$();F();I();f();R();P()});
|
|
2
|
-
export{S as _d,V as $d,X as ae,r as be,w as ce,T as de,G as ee};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{cua as B}from"./cli-1.1.26-zb5hq3ry.mjs";function D(g,q){switch(q.type){case"set_local_jsx":{if(q.generation<g.generation)return g;return{state:{...q.payload,isLocalJSXCommand:!0},generation:g.generation+1,hasLocalJSXActive:!0}}case"clear_local_jsx":return{state:null,generation:g.generation+1,hasLocalJSXActive:!1};case"set_regular":{if(g.hasLocalJSXActive)return g;return{...g,state:q.payload}}case"set_null":{if(g.hasLocalJSXActive)return g;if(g.state===null)return g;return{...g,state:null}}}}var C;var F=B(()=>{C={state:null,generation:0,hasLocalJSXActive:!1}});function K(g){return z=g,()=>{if(z===g)z=null}}function L(g){let q=D(w,g);if(q===w)return;w=q,z?.(q.state)}function M(){return w.generation}var w,z=null;var G=B(()=>{F();w=C});
|
|
2
|
-
export{K as Ti,L as Ui,M as Vi,G as Wi};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{UR as x,XR as B}from"./cli-1.1.26-kvt0v6vq.mjs";import{cua as z}from"./cli-1.1.26-zb5hq3ry.mjs";function H(q){if(!q)return 0;return q.activeAgents.filter((b)=>b.source!=="built-in").reduce((b,w)=>{let y=`${w.agentType}: ${w.whenToUse}`;return b+x(y)},0)}var G=15000;var A=z(()=>{B()});
|
|
2
|
-
export{G as Sg,H as Tg,A as Ug};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{SG as h,ZG as Fq,ky as u,lA as c,ly as g,nT as a,ny as Wq,oA as T,oo as S,pA as _q,pT as Kq,po as Zq,qo as V,ro as $q,sA as r,tA as Vq,uo as p,vo as zq}from"./cli-1.1.26-kvt0v6vq.mjs";import{RY as j,SY as Nq,bZ as w,cZ as Qq,dZ as m,fZ as Xq,iZ as d,jZ as Yq}from"./cli-1.1.26-j0pfn318.mjs";import{E1 as J,G1 as N,j2 as Lq,o0 as H,p0 as v,q0 as y}from"./cli-1.1.26-nv2mgz6h.mjs";import{L4 as _,M4 as q,N4 as G,O4 as b}from"./cli-1.1.26-qf02kggq.mjs";import{P4 as Jq}from"./cli-1.1.26-kz0et72d.mjs";import{Fea as B,Vea as Gq}from"./cli-1.1.26-mvjefec1.mjs";import{_ta as e,cua as qq}from"./cli-1.1.26-zb5hq3ry.mjs";function mq({onThemeSelect:F,showIntroText:I=!1,helpText:X="",showHelpTextBelow:O=!1,hideEscToCancel:x=!1,skipExitHandling:$=!1,onCancel:A}){let[K]=H(),U=v(),{columns:i}=j(),Y=Q.useMemo(()=>c(),[]),Z=Y===null?T(K):null,{setPreviewTheme:k,savePreview:M,cancelPreview:R}=y(),z=u((L)=>L.settings.syntaxHighlightingDisabled??!1),f=g();w("ThemePicker",!0);let W=S("theme:toggleSyntaxHighlighting","ThemePicker","ctrl+t"),l=Q.useCallback(()=>{if(Y===null){let L=!z;B("userSettings",{syntaxHighlightingDisabled:L}),f((P)=>({...P,settings:{...P.settings,syntaxHighlightingDisabled:L}}))}},[Y,z,f]);m("theme:toggleSyntaxHighlighting",l,{context:"ThemePicker"});let D=d($?()=>{}:void 0),E=Q.useMemo(()=>[...[],{label:"Dark mode",value:"dark"},{label:"Light mode",value:"light"},{label:"Dark mode (colorblind-friendly)",value:"dark-daltonized"},{label:"Light mode (colorblind-friendly)",value:"light-daltonized"},{label:"Dark mode (ANSI colors only)",value:"dark-ansi"},{label:"Light mode (ANSI colors only)",value:"light-ansi"},{label:"Terminal default (inherit colors)",value:"terminal"},{label:"Dracula",value:"dracula"},{label:"Catppuccin Mocha (dark)",value:"catppuccin-mocha"},{label:"Catppuccin Latte (light)",value:"catppuccin-latte"},{label:"Tokyo Night",value:"tokyo-night"},{label:"Nord",value:"nord"},{label:"Gruvbox Dark",value:"gruvbox-dark"}],[]),o=Q.useCallback((L)=>{k(L)},[k]),n=Q.useCallback((L)=>{M(),F(L)},[M,F]),s=Q.useCallback(()=>{if(R(),$)A?.();else a(0)},[R,A,$]),t=Y==="env"?`Syntax highlighting disabled (via CLAUDIN_SYNTAX_HIGHLIGHT=${process.env.CLAUDIN_SYNTAX_HIGHLIGHT})`:z?`Syntax highlighting disabled (${W} to enable)`:Z?`Syntax theme: ${Z.theme}${Z.source?` (from ${Z.source})`:""} (${W} to disable)`:`Syntax highlighting enabled (${W} to disable)`,C=G(J,{flexDirection:"column",gap:1,children:[G(J,{flexDirection:"column",gap:1,children:[I?q(N,{children:"Let's get started."}):q(N,{bold:!0,color:"permission",children:"Theme"}),G(J,{flexDirection:"column",children:[q(N,{bold:!0,children:"Choose the text style that looks best with your terminal"}),X&&!O?q(N,{dimColor:!0,children:X}):null]}),q(h,{options:E,onFocus:o,onChange:n,onCancel:s,visibleOptionCount:E.length,defaultValue:U,defaultFocusValue:U})]}),G(J,{flexDirection:"column",width:"100%",children:[q(J,{flexDirection:"column",borderTop:!0,borderBottom:!0,borderLeft:!1,borderRight:!1,borderStyle:"dashed",borderColor:"subtle",children:q(Iq,{patch:Oq,dim:!1,filePath:"demo.js",firstLine:null,width:i})},K),G(N,{dimColor:!0,children:[" ",t]})]})]});if(!I)return G(_,{children:[q(J,{flexDirection:"column",children:C}),O&&X?q(J,{marginLeft:3,children:q(N,{dimColor:!0,children:X})}):null,!x?q(J,{marginTop:1,children:q(N,{dimColor:!0,italic:!0,children:D.pending?G(_,{children:["Press ",D.keyName," again to exit"]}):G(p,{children:[q(V,{shortcut:"Enter",action:"select"}),q(V,{shortcut:"Esc",action:"cancel"})]})})}):null]});return C}var Q,Iq,Oq;var Aq=qq(()=>{Yq();Nq();Lq();Qq();Xq();Zq();Wq();Kq();Gq();Fq();zq();$q();_q();Vq();b();Q=e(Jq(),1),Iq=r,Oq={oldStart:1,newStart:1,oldLines:3,newLines:3,lines:[" function greet() {",'- console.log("Hello, World!");','+ console.log("Hello, Claude!");'," }"]}});
|
|
2
|
-
export{mq as Jh,Aq as Kh};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{f0 as f}from"./cli-1.1.26-nv2mgz6h.mjs";import{M4 as n,O4 as i}from"./cli-1.1.26-qf02kggq.mjs";import{P4 as M}from"./cli-1.1.26-kz0et72d.mjs";import{_ta as o}from"./cli-1.1.26-zb5hq3ry.mjs";i();var p=o(f(),1),r=o(M(),1),d=r.createContext(void 0);function a(F){let e=p.c(3),{getFpsMetrics:s,children:c}=F,t;if(e[0]!==c||e[1]!==s)t=n(d.Provider,{value:s,children:c}),e[0]=c,e[1]=s,e[2]=t;else t=e[2];return t}function l(){return r.useContext(d)}
|
|
2
|
-
export{a as Tb,l as Ub};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{SG as U,TG as A,aH as V,bH as E}from"./cli-1.1.26-kvt0v6vq.mjs";import{nX as W,vX as G}from"./cli-1.1.26-g825efx8.mjs";import{E1 as F,G1 as H,j2 as O}from"./cli-1.1.26-nv2mgz6h.mjs";import{M4 as q,N4 as K,O4 as L}from"./cli-1.1.26-qf02kggq.mjs";import{P4 as I}from"./cli-1.1.26-kz0et72d.mjs";import{Z8 as Q,x9 as p}from"./cli-1.1.26-tgtv1jp3.mjs";import{Jfa as M,Mfa as N,fga as $}from"./cli-1.1.26-mvjefec1.mjs";import{_ta as Z,cua as _}from"./cli-1.1.26-zb5hq3ry.mjs";function b({onDone:J}){let z=w.useRef(J);z.current=J;let X=w.useCallback(()=>{z.current("dismiss")},[]);w.useEffect(()=>{M((y)=>{if(y.remoteDialogSeen)return y;return{...y,remoteDialogSeen:!0}})},[]);let Y=w.useCallback((y)=>{z.current(y)},[]);return q(V,{title:"Remote Control",children:K(F,{flexDirection:"column",paddingX:2,paddingY:1,children:[K(F,{marginBottom:1,flexDirection:"column",children:[q(H,{children:"Remote Control lets you access this CLI session from the web (claude.ai/code) or the Claude app, so you can pick up where you left off on any device."}),q(H,{children:" "}),q(H,{children:"You can disconnect remote access anytime by running /remote-control again."})]}),q(F,{children:q(U,{options:[{label:"Enable Remote Control for this session",description:"Opens a secure connection to claude.ai.",value:"enable"},{label:"Never mind",description:"You can always enable it later with /remote-control.",value:"dismiss"}],onChange:Y,onCancel:X})})]})})}function d(){if(N().remoteDialogSeen)return!1;if(!W())return!1;if(!Q()?.accessToken)return!1;return!0}var w;var P=_(()=>{G();O();p();$();A();E();L();w=Z(I(),1)});
|
|
2
|
-
export{b as ac,d as bc,P as cc};
|
|
@@ -1,2 +0,0 @@
|
|
|
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,jT as i,kD as b,qD as j}from"./cli-1.1.26-kvt0v6vq.mjs";import{AX as n,zX as A}from"./cli-1.1.26-4cj6rr02.mjs";import{Ika as E,Lka as C}from"./cli-1.1.26-n0thzakv.mjs";import{Bla as m,Lla as Z,Oka as F,Ola as u,Qka as S,xla as M}from"./cli-1.1.26-nr4x1ay3.mjs";import{Lra as v,eoa as Y,foa as k,hsa as c}from"./cli-1.1.26-4aztw2ex.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};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import{Aa as d}from"./cli-1.1.26-jcshhf4v.mjs";import{$W as h,XW as v,YW as U,_W as f,aX as c,fX as i}from"./cli-1.1.26-v7k7gw6h.mjs";import{$4 as b,Z4 as O}from"./cli-1.1.26-k827q3s7.mjs";import{r8 as B,s8 as A}from"./cli-1.1.26-tgtv1jp3.mjs";import{K9 as y,R9 as u}from"./cli-1.1.26-agrrdhst.mjs";import{q$ as Y,s$ as I}from"./cli-1.1.26-mvjefec1.mjs";import{Lla as G,Ola as D,ola as H,pla as m,tla as T}from"./cli-1.1.26-nr4x1ay3.mjs";import{jma as q,kma as S,qma as F}from"./cli-1.1.26-7ssnr221.mjs";import{Cta as s,kta as p}from"./cli-1.1.26-hxty6b5t.mjs";import{randomUUID as N}from"crypto";D();I();F();u();i();f();A();b();T();class j extends Error{retryAfterMs;constructor(J,K){super(J);this.retryAfterMs=K}}class R{pending=[];pendingAtClose=0;draining=!1;closed=!1;backpressureResolvers=[];sleepResolve=null;flushResolvers=[];droppedBatches=0;config;constructor(J){this.config=J}get droppedBatchCount(){return this.droppedBatches}get pendingCount(){return this.closed?this.pendingAtClose:this.pending.length}async enqueue(J){if(this.closed)return;let K=Array.isArray(J)?J:[J];if(K.length===0)return;while(this.pending.length+K.length>this.config.maxQueueSize&&!this.closed)await new Promise((Q)=>{this.backpressureResolvers.push(Q)});if(this.closed)return;this.pending.push(...K),this.drain()}flush(){if(this.pending.length===0&&!this.draining)return Promise.resolve();return this.drain(),new Promise((J)=>{this.flushResolvers.push(J)})}close(){if(this.closed)return;this.closed=!0,this.pendingAtClose=this.pending.length,this.pending=[],this.sleepResolve?.(),this.sleepResolve=null;for(let J of this.backpressureResolvers)J();this.backpressureResolvers=[];for(let J of this.flushResolvers)J();this.flushResolvers=[]}async drain(){if(this.draining||this.closed)return;this.draining=!0;let J=0;try{while(this.pending.length>0&&!this.closed){let K=this.takeBatch();if(K.length===0)continue;try{await this.config.send(K),J=0}catch(Q){if(J++,this.config.maxConsecutiveFailures!==void 0&&J>=this.config.maxConsecutiveFailures){this.droppedBatches++,this.config.onBatchDropped?.(K.length,J),J=0,this.releaseBackpressure();continue}this.pending=K.concat(this.pending);let W=Q instanceof j?Q.retryAfterMs:void 0;await this.sleep(this.retryDelay(J,W));continue}this.releaseBackpressure()}}finally{if(this.draining=!1,this.pending.length===0){for(let K of this.flushResolvers)K();this.flushResolvers=[]}}}takeBatch(){let{maxBatchSize:J,maxBatchBytes:K}=this.config;if(K===void 0)return this.pending.splice(0,J);let Q=0,W=0;while(W<this.pending.length&&W<J){let Z;try{Z=Buffer.byteLength(H(this.pending[W]))}catch{this.pending.splice(W,1);continue}if(W>0&&Q+Z>K)break;Q+=Z,W++}return this.pending.splice(0,W)}retryDelay(J,K){let Q=Math.random()*this.config.jitterMs;if(K!==void 0)return Math.max(this.config.baseDelayMs,Math.min(K,this.config.maxDelayMs))+Q;return Math.min(this.config.baseDelayMs*2**(J-1),this.config.maxDelayMs)+Q}releaseBackpressure(){let J=this.backpressureResolvers;this.backpressureResolvers=[];for(let K of J)K()}sleep(J){return new Promise((K)=>{this.sleepResolve=K,setTimeout((Q,W)=>{Q.sleepResolve=null,W()},J,this,K)})}}A();class M{inflight=null;pending=null;closed=!1;config;constructor(J){this.config=J}enqueue(J){if(this.closed)return;this.pending=this.pending?P(this.pending,J):J,this.drain()}close(){this.closed=!0,this.pending=null}async drain(){if(this.inflight||this.closed)return;if(!this.pending)return;let J=this.pending;this.pending=null,this.inflight=this.sendWithRetry(J).then(()=>{if(this.inflight=null,this.pending&&!this.closed)this.drain()})}async sendWithRetry(J){let K=J,Q=0;while(!this.closed){if(await this.config.send(K))return;if(Q++,await B(this.retryDelay(Q)),this.pending&&!this.closed)K=P(K,this.pending),this.pending=null}}retryDelay(J){let K=Math.min(this.config.baseDelayMs*2**(J-1),this.config.maxDelayMs),Q=Math.random()*this.config.jitterMs;return K+Q}}function P(J,K){let Q={...J};for(let[W,Z]of Object.entries(K))if((W==="external_metadata"||W==="internal_metadata")&&Q[W]&&typeof Q[W]==="object"&&typeof Z==="object"&&Z!==null)Q[W]={...Q[W],...Z};else Q[W]=Z;return Q}var g=20000,l=100;function E(){return!0}class k extends Error{reason;constructor(J){super(`CCRClient init failed: ${J}`);this.reason=J}}var n=10;function o(){return{byMessage:new Map,scopeToMessage:new Map}}function C(J){return`${J.session_id}:${J.parent_tool_use_id??""}`}function r(J,K){let Q=[],W=new Map;for(let Z of J){let $=Z.event;switch($.type){case"message_start":{let z=$.message.id,L=K.scopeToMessage.get(C(Z));if(L)K.byMessage.delete(L);K.scopeToMessage.set(C(Z),z),K.byMessage.set(z,[]),Q.push(Z);break}case"content_block_delta":{if($.delta.type!=="text_delta"){Q.push(Z);break}let z=K.scopeToMessage.get(C(Z)),L=z?K.byMessage.get(z):void 0;if(!L){Q.push(Z);break}let V=L[$.index]??=[];V.push($.delta.text);let X=W.get(V);if(X){X.event.delta.text=V.join("");break}let w={type:"stream_event",uuid:Z.uuid,session_id:Z.session_id,parent_tool_use_id:Z.parent_tool_use_id,event:{type:"content_block_delta",index:$.index,delta:{type:"text_delta",text:V.join("")}}};W.set(V,w),Q.push(w);break}default:Q.push(Z)}}return Q}function t(J,K){J.byMessage.delete(K.message.id);let Q=C(K);if(J.scopeToMessage.get(Q)===K.message.id)J.scopeToMessage.delete(Q)}class a{workerEpoch=0;heartbeatIntervalMs;heartbeatJitterFraction;heartbeatTimer=null;heartbeatInFlight=!1;closed=!1;consecutiveAuthFailures=0;currentState=null;sessionBaseUrl;sessionId;http=y({keepAlive:!0});streamEventBuffer=[];streamEventTimer=null;streamTextAccumulator=o();workerState;eventUploader;internalEventUploader;deliveryUploader;onEpochMismatch;getAuthHeaders;constructor(J,K,Q){if(this.onEpochMismatch=Q?.onEpochMismatch??(()=>{process.exit(1)}),this.heartbeatIntervalMs=Q?.heartbeatIntervalMs??g,this.heartbeatJitterFraction=Q?.heartbeatJitterFraction??0,this.getAuthHeaders=Q?.getAuthHeaders??U,K.protocol!=="http:"&&K.protocol!=="https:")throw Error(`CCRClient: Expected http(s) URL, got ${K.protocol}`);let W=K.pathname.replace(/\/$/,"");this.sessionBaseUrl=`${K.protocol}//${K.host}${W}`,this.sessionId=W.split("/").pop()||"",this.workerState=new M({send:(Z)=>this.request("put","/worker",{worker_epoch:this.workerEpoch,...Z},"PUT worker").then(($)=>$.ok),baseDelayMs:500,maxDelayMs:30000,jitterMs:500}),this.eventUploader=new R({maxBatchSize:100,maxBatchBytes:10485760,maxQueueSize:1e5,send:async(Z)=>{let $=await this.request("post","/worker/events",{worker_epoch:this.workerEpoch,events:Z},"client events");if(!$.ok)throw new j("client event POST failed",$.retryAfterMs)},baseDelayMs:500,maxDelayMs:30000,jitterMs:500}),this.internalEventUploader=new R({maxBatchSize:100,maxBatchBytes:10485760,maxQueueSize:200,send:async(Z)=>{let $=await this.request("post","/worker/internal-events",{worker_epoch:this.workerEpoch,events:Z},"internal events");if(!$.ok)throw new j("internal event POST failed",$.retryAfterMs)},baseDelayMs:500,maxDelayMs:30000,jitterMs:500}),this.deliveryUploader=new R({maxBatchSize:64,maxQueueSize:64,send:async(Z)=>{let $=await this.request("post","/worker/events/delivery",{worker_epoch:this.workerEpoch,updates:Z.map((z)=>({event_id:z.eventId,status:z.status}))},"delivery batch");if(!$.ok)throw new j("delivery POST failed",$.retryAfterMs)},baseDelayMs:500,maxDelayMs:30000,jitterMs:500}),J.setOnEvent((Z)=>{this.reportDelivery(Z.event_id,"received")})}async initialize(J){let K=Date.now();if(Object.keys(this.getAuthHeaders()).length===0)throw new k("no_auth_headers");if(J===void 0){let z=process.env.CLAUDE_CODE_WORKER_EPOCH;J=z?parseInt(z,10):NaN}if(isNaN(J))throw new k("missing_epoch");this.workerEpoch=J;let Q=this.getWorkerState();if(!(await this.request("put","/worker",{worker_status:"idle",worker_epoch:this.workerEpoch,external_metadata:{pending_action:null,task_summary:null}},"PUT worker (init)")).ok)throw new k("worker_register_failed");this.currentState="idle",this.startHeartbeat(),h(()=>{this.writeEvent({type:"keep_alive"})}),G(`CCRClient: initialized, epoch=${this.workerEpoch}`),Y("info","cli_worker_lifecycle_initialized",{epoch:this.workerEpoch,duration_ms:Date.now()-K});let{metadata:Z,durationMs:$}=await Q;if(!this.closed)Y("info","cli_worker_state_restored",{duration_ms:$,had_state:Z!==null});return Z}async getWorkerState(){let J=Date.now(),K=this.getAuthHeaders();if(Object.keys(K).length===0)return{metadata:null,durationMs:0};return{metadata:(await this.getWithRetry(`${this.sessionBaseUrl}/worker`,K,"worker_state"))?.worker?.external_metadata??null,durationMs:Date.now()-J}}async request(J,K,Q,W,{timeout:Z=1e4}={}){let $=this.getAuthHeaders();if(Object.keys($).length===0)return{ok:!1};try{let z=await this.http[J](`${this.sessionBaseUrl}${K}`,Q,{headers:{...$,"Content-Type":"application/json","anthropic-version":"2023-06-01","User-Agent":O()},validateStatus:E,timeout:Z});if(z.status>=200&&z.status<300)return this.consecutiveAuthFailures=0,{ok:!0};if(z.status===409)this.handleEpochMismatch();if(z.status===401||z.status===403){let L=v(),V=L?d(L):null;if(V!==null&&V*1000<Date.now())G(`CCRClient: session_token expired (exp=${new Date(V*1000).toISOString()}) — no refresh was delivered, exiting`,{level:"error"}),Y("error","cli_worker_token_expired_no_refresh"),this.onEpochMismatch();if(this.consecutiveAuthFailures++,this.consecutiveAuthFailures>=n)G(`CCRClient: ${this.consecutiveAuthFailures} consecutive auth failures with a valid-looking token — server-side auth unrecoverable, exiting`,{level:"error"}),Y("error","cli_worker_auth_failures_exhausted"),this.onEpochMismatch()}if(G(`CCRClient: ${W} returned ${z.status}`,{level:"warn"}),Y("warn","cli_worker_request_failed",{method:J,path:K,status:z.status}),z.status===429){let L=z.headers?.["retry-after"],V=typeof L==="string"?parseInt(L,10):NaN;if(!isNaN(V)&&V>=0)return{ok:!1,retryAfterMs:V*1000}}return{ok:!1}}catch(z){return G(`CCRClient: ${W} failed: ${q(z)}`,{level:"warn"}),Y("warn","cli_worker_request_error",{method:J,path:K,error_code:S(z)}),{ok:!1}}}reportState(J,K){if(J===this.currentState&&!K)return;this.currentState=J,this.workerState.enqueue({worker_status:J,requires_action_details:K?{tool_name:K.tool_name,action_description:K.action_description,request_id:K.request_id}:null})}reportMetadata(J){this.workerState.enqueue({external_metadata:J})}handleEpochMismatch(){G("CCRClient: Epoch mismatch (409), shutting down",{level:"error"}),Y("error","cli_worker_epoch_mismatch"),this.onEpochMismatch()}startHeartbeat(){this.stopHeartbeat();let J=()=>{let Q=this.heartbeatIntervalMs*this.heartbeatJitterFraction*(2*Math.random()-1);this.heartbeatTimer=setTimeout(K,this.heartbeatIntervalMs+Q)},K=()=>{if(this.sendHeartbeat(),this.heartbeatTimer===null)return;J()};J()}stopHeartbeat(){if(this.heartbeatTimer)clearTimeout(this.heartbeatTimer),this.heartbeatTimer=null}async sendHeartbeat(){if(this.heartbeatInFlight)return;this.heartbeatInFlight=!0;try{if((await this.request("post","/worker/heartbeat",{session_id:this.sessionId,worker_epoch:this.workerEpoch},"Heartbeat",{timeout:5000})).ok)G("CCRClient: Heartbeat sent")}finally{this.heartbeatInFlight=!1}}async writeEvent(J){if(J.type==="stream_event"){if(this.streamEventBuffer.push(J),!this.streamEventTimer)this.streamEventTimer=setTimeout(()=>void this.flushStreamEventBuffer(),l);return}if(await this.flushStreamEventBuffer(),J.type==="assistant")t(this.streamTextAccumulator,J);await this.eventUploader.enqueue(this.toClientEvent(J))}toClientEvent(J){let K=J;return{payload:{...K,uuid:typeof K.uuid==="string"?K.uuid:N()}}}async flushStreamEventBuffer(){if(this.streamEventTimer)clearTimeout(this.streamEventTimer),this.streamEventTimer=null;if(this.streamEventBuffer.length===0)return;let J=this.streamEventBuffer;this.streamEventBuffer=[];let K=r(J,this.streamTextAccumulator);await this.eventUploader.enqueue(K.map((Q)=>({payload:Q,ephemeral:!0})))}async writeInternalEvent(J,K,{isCompaction:Q=!1,agentId:W}={}){let Z={payload:{type:J,...K,uuid:typeof K.uuid==="string"?K.uuid:N()},...Q&&{is_compaction:!0},...W&&{agent_id:W}};await this.internalEventUploader.enqueue(Z)}flushInternalEvents(){return this.internalEventUploader.flush()}async flush(){return await this.flushStreamEventBuffer(),this.eventUploader.flush()}async readInternalEvents(){return this.paginatedGet("/worker/internal-events",{},"internal_events")}async readSubagentInternalEvents(){return this.paginatedGet("/worker/internal-events",{subagents:"true"},"subagent_events")}async paginatedGet(J,K,Q){let W=this.getAuthHeaders();if(Object.keys(W).length===0)return null;let Z=[],$;do{let z=new URL(`${this.sessionBaseUrl}${J}`);for(let[V,X]of Object.entries(K))z.searchParams.set(V,X);if($)z.searchParams.set("cursor",$);let L=await this.getWithRetry(z.toString(),W,Q);if(!L)return null;Z.push(...L.data??[]),$=L.next_cursor}while($);return G(`CCRClient: Read ${Z.length} internal events from ${J}${K.subagents?" (subagents)":""}`),Z}async getWithRetry(J,K,Q){for(let W=1;W<=10;W++){let Z;try{Z=await this.http.get(J,{headers:{...K,"anthropic-version":"2023-06-01","User-Agent":O()},validateStatus:E,timeout:30000})}catch($){if(G(`CCRClient: GET ${J} failed (attempt ${W}/10): ${q($)}`,{level:"warn"}),W<10){let z=Math.min(500*2**(W-1),30000)+Math.random()*500;await B(z)}continue}if(Z.status>=200&&Z.status<300)return Z.data;if(Z.status===409)this.handleEpochMismatch();if(G(`CCRClient: GET ${J} returned ${Z.status} (attempt ${W}/10)`,{level:"warn"}),W<10){let $=Math.min(500*2**(W-1),30000)+Math.random()*500;await B($)}}return G("CCRClient: GET retries exhausted",{level:"error"}),Y("error","cli_worker_get_retries_exhausted",{context:Q}),null}reportDelivery(J,K){this.deliveryUploader.enqueue({eventId:J,status:K})}getWorkerEpoch(){return this.workerEpoch}get internalEventsPending(){return this.internalEventUploader.pendingCount}close(){if(this.closed=!0,this.stopHeartbeat(),c(),this.streamEventTimer)clearTimeout(this.streamEventTimer),this.streamEventTimer=null;this.streamEventBuffer=[],this.streamTextAccumulator.byMessage.clear(),this.streamTextAccumulator.scopeToMessage.clear(),this.workerState.close(),this.eventUploader.close(),this.internalEventUploader.close(),this.deliveryUploader.close()}}s();D();I();F();f();A();T();b();var e=1000,JJ=30000,KJ=600000,QJ=45000,WJ=new Set([401,403,404]),x=10,ZJ=500,$J=8000,GJ={stream:!0};function zJ(){return!0}function VJ(J){let K=[],Q=0,W;while((W=J.indexOf(`
|
|
2
|
-
|
|
3
|
-
`,Q))!==-1){let Z=J.slice(Q,W);if(Q=W+2,!Z.trim())continue;let $={},z=!1;for(let L of Z.split(`
|
|
4
|
-
`)){if(L.startsWith(":")){z=!0;continue}let V=L.indexOf(":");if(V===-1)continue;let X=L.slice(0,V),w=L[V+1]===" "?L.slice(V+2):L.slice(V+1);switch(X){case"event":$.event=w;break;case"id":$.id=w;break;case"data":$.data=$.data?$.data+`
|
|
5
|
-
`+w:w;break}}if($.data||z)K.push($)}return{frames:K,remaining:J.slice(Q)}}class YJ{url;state="idle";onData;onCloseCallback;onEventCallback;headers;sessionId;refreshHeaders;getAuthHeaders;abortController=null;lastSequenceNum=0;seenSequenceNums=new Set;reconnectAttempts=0;reconnectStartTime=null;reconnectTimer=null;livenessTimer=null;postUrl;constructor(J,K={},Q,W,Z,$){this.url=J;if(this.headers=K,this.sessionId=Q,this.refreshHeaders=W,this.getAuthHeaders=$??U,this.postUrl=LJ(J),Z!==void 0&&Z>0)this.lastSequenceNum=Z;G(`SSETransport: SSE URL = ${J.href}`),G(`SSETransport: POST URL = ${this.postUrl}`),Y("info","cli_sse_transport_initialized")}getLastSequenceNum(){return this.lastSequenceNum}async connect(){if(this.state!=="idle"&&this.state!=="reconnecting"){G(`SSETransport: Cannot connect, current state is ${this.state}`,{level:"error"}),Y("error","cli_sse_connect_failed");return}this.state="reconnecting";let J=Date.now(),K=new URL(this.url.href);if(this.lastSequenceNum>0)K.searchParams.set("from_sequence_num",String(this.lastSequenceNum));let Q=this.getAuthHeaders(),W={...this.headers,...Q,Accept:"text/event-stream","anthropic-version":"2023-06-01","User-Agent":O()};if(Q.Cookie)delete W.Authorization;if(this.lastSequenceNum>0)W["Last-Event-ID"]=String(this.lastSequenceNum);G(`SSETransport: Opening ${K.href}`),Y("info","cli_sse_connect_opening"),this.abortController=new AbortController;try{let Z=await fetch(K.href,{headers:W,signal:this.abortController.signal});if(!Z.ok){let z=WJ.has(Z.status);if(G(`SSETransport: HTTP ${Z.status}${z?" (permanent)":""}`,{level:"error"}),Y("error","cli_sse_connect_http_error",{status:Z.status}),z){this.state="closed",this.onCloseCallback?.(Z.status);return}this.handleConnectionError();return}if(!Z.body){G("SSETransport: No response body"),this.handleConnectionError();return}let $=Date.now()-J;G("SSETransport: Connected"),Y("info","cli_sse_connect_connected",{duration_ms:$}),this.state="connected",this.reconnectAttempts=0,this.reconnectStartTime=null,this.resetLivenessTimer(),await this.readStream(Z.body)}catch(Z){if(this.abortController?.signal.aborted)return;G(`SSETransport: Connection error: ${q(Z)}`,{level:"error"}),Y("error","cli_sse_connect_error"),this.handleConnectionError()}}async readStream(J){let K=J.getReader(),Q=new TextDecoder,W="";try{while(!0){let{done:Z,value:$}=await K.read();if(Z)break;W+=Q.decode($,GJ);let{frames:z,remaining:L}=VJ(W);W=L;for(let V of z){if(this.resetLivenessTimer(),V.id){let X=parseInt(V.id,10);if(!isNaN(X)){if(this.seenSequenceNums.has(X))G(`SSETransport: DUPLICATE frame seq=${X} (lastSequenceNum=${this.lastSequenceNum}, seenCount=${this.seenSequenceNums.size})`,{level:"warn"}),Y("warn","cli_sse_duplicate_sequence");else if(this.seenSequenceNums.add(X),this.seenSequenceNums.size>1000){let w=this.lastSequenceNum-200;for(let _ of this.seenSequenceNums)if(_<w)this.seenSequenceNums.delete(_)}if(X>this.lastSequenceNum)this.lastSequenceNum=X}}if(V.event&&V.data)this.handleSSEFrame(V.event,V.data);else if(V.data)G("SSETransport: Frame has data: but no event: field — dropped",{level:"warn"}),Y("warn","cli_sse_frame_missing_event_field")}}}catch(Z){if(this.abortController?.signal.aborted)return;G(`SSETransport: Stream read error: ${q(Z)}`,{level:"error"}),Y("error","cli_sse_stream_read_error")}finally{K.releaseLock()}if(this.state!=="closing"&&this.state!=="closed")G("SSETransport: Stream ended, reconnecting"),this.handleConnectionError()}handleSSEFrame(J,K){if(J!=="client_event"){G(`SSETransport: Unexpected SSE event type '${J}' on worker stream`,{level:"warn"}),Y("warn","cli_sse_unexpected_event_type",{event_type:J});return}let Q;try{Q=m(K)}catch(Z){G(`SSETransport: Failed to parse client_event data: ${q(Z)}`,{level:"error"});return}let W=Q.payload;if(W&&typeof W==="object"&&"type"in W){let Z=this.sessionId?` session=${this.sessionId}`:"";G(`SSETransport: Event seq=${Q.sequence_num} event_id=${Q.event_id} event_type=${Q.event_type} payload_type=${String(W.type)}${Z}`),Y("info","cli_sse_message_received"),this.onData?.(H(W)+`
|
|
6
|
-
`)}else G(`SSETransport: Ignoring client_event with no type in payload: event_id=${Q.event_id}`);this.onEventCallback?.(Q)}handleConnectionError(){if(this.clearLivenessTimer(),this.state==="closing"||this.state==="closed")return;this.abortController?.abort(),this.abortController=null;let J=Date.now();if(!this.reconnectStartTime)this.reconnectStartTime=J;let K=J-this.reconnectStartTime;if(K<KJ){if(this.reconnectTimer)clearTimeout(this.reconnectTimer),this.reconnectTimer=null;if(this.refreshHeaders){let Z=this.refreshHeaders();Object.assign(this.headers,Z),G("SSETransport: Refreshed headers for reconnect")}this.state="reconnecting",this.reconnectAttempts++;let Q=Math.min(e*Math.pow(2,this.reconnectAttempts-1),JJ),W=Math.max(0,Q+Q*0.25*(2*Math.random()-1));G(`SSETransport: Reconnecting in ${Math.round(W)}ms (attempt ${this.reconnectAttempts}, ${Math.round(K/1000)}s elapsed)`),Y("error","cli_sse_reconnect_attempt",{reconnectAttempts:this.reconnectAttempts}),this.reconnectTimer=setTimeout(()=>{this.reconnectTimer=null,this.connect()},W)}else G(`SSETransport: Reconnection time budget exhausted after ${Math.round(K/1000)}s`,{level:"error"}),Y("error","cli_sse_reconnect_exhausted",{reconnectAttempts:this.reconnectAttempts,elapsedMs:K}),this.state="closed",this.onCloseCallback?.()}onLivenessTimeout=()=>{this.livenessTimer=null,G("SSETransport: Liveness timeout, reconnecting",{level:"error"}),Y("error","cli_sse_liveness_timeout"),this.abortController?.abort(),this.handleConnectionError()};resetLivenessTimer(){this.clearLivenessTimer(),this.livenessTimer=setTimeout(this.onLivenessTimeout,QJ)}clearLivenessTimer(){if(this.livenessTimer)clearTimeout(this.livenessTimer),this.livenessTimer=null}async write(J){let K=this.getAuthHeaders();if(Object.keys(K).length===0){G("SSETransport: No session token available for POST"),Y("warn","cli_sse_post_no_token");return}let Q={...K,"Content-Type":"application/json","anthropic-version":"2023-06-01","User-Agent":O()};G(`SSETransport: POST body keys=${Object.keys(J).join(",")}`);for(let W=1;W<=x;W++){try{let $=await p.post(this.postUrl,J,{headers:Q,validateStatus:zJ});if($.status===200||$.status===201){G(`SSETransport: POST success type=${J.type}`);return}if(G(`SSETransport: POST ${$.status} body=${H($.data).slice(0,200)}`),$.status>=400&&$.status<500&&$.status!==429){G(`SSETransport: POST returned ${$.status} (client error), not retrying`),Y("warn","cli_sse_post_client_error",{status:$.status});return}G(`SSETransport: POST returned ${$.status}, attempt ${W}/${x}`),Y("warn","cli_sse_post_retryable_error",{status:$.status,attempt:W})}catch($){G(`SSETransport: POST error: ${$.message}, attempt ${W}/${x}`),Y("warn","cli_sse_post_network_error",{attempt:W})}if(W===x){G(`SSETransport: POST failed after ${x} attempts, continuing`),Y("warn","cli_sse_post_retries_exhausted");return}let Z=Math.min(ZJ*Math.pow(2,W-1),$J);await B(Z)}}isConnectedStatus(){return this.state==="connected"}isClosedStatus(){return this.state==="closed"}setOnData(J){this.onData=J}setOnClose(J){this.onCloseCallback=J}setOnEvent(J){this.onEventCallback=J}close(){if(this.reconnectTimer)clearTimeout(this.reconnectTimer),this.reconnectTimer=null;this.clearLivenessTimer(),this.state="closing",this.abortController?.abort(),this.abortController=null}}function LJ(J){let K=J.pathname;if(K.endsWith("/stream"))K=K.slice(0,-7);return`${J.protocol}//${J.host}${K}`}
|
|
7
|
-
export{R as ra,k as sa,a as ta,YJ as ua};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import{V9 as D}from"./cli-1.1.26-vne421we.mjs";import{Bla as JG,Lla as W,Ola as a,xla as L}from"./cli-1.1.26-nr4x1ay3.mjs";import{Ema as GG,vma as c,wma as jG}from"./cli-1.1.26-dyyg0r9f.mjs";import{Gsa as q,Hsa as g}from"./cli-1.1.26-jz95bmqy.mjs";import{Cta as RG,kta as H}from"./cli-1.1.26-hxty6b5t.mjs";import{Jta as XG}from"./cli-1.1.26-01erqdx7.mjs";import{_ta as WG,cua as j,dua as e}from"./cli-1.1.26-zb5hq3ry.mjs";function yG(){U.cache.clear?.(),W("Cleared CA certificates cache")}var U;var i=j(()=>{g();a();GG();JG();U=q(()=>{let G=c("--use-system-ca")||c("--use-openssl-ca"),J=process.env.NODE_EXTRA_CA_CERTS;if(W(`CA certs: useSystemCA=${G}, extraCertsPath=${J}`),!G&&!J)return;let Q=e("tls"),K=[];if(G){let Y=Q.getCACertificates,Z=Y?.("system");if(Z&&Z.length>0)K.push(...Z),W(`CA certs: Loaded ${K.length} system CA certificates (--use-system-ca)`);else if(!Y&&!J){W("CA certs: --use-system-ca set but system CA API unavailable, deferring to runtime");return}else K.push(...Q.rootCertificates),W(`CA certs: Loaded ${K.length} bundled root certificates as base (--use-system-ca fallback)`)}else K.push(...Q.rootCertificates),W(`CA certs: Loaded ${K.length} bundled root certificates as base`);if(J)try{let Y=L().readFileSync(J,{encoding:"utf8"});K.push(Y),W(`CA certs: Appended extra certificates from NODE_EXTRA_CA_CERTS (${J})`)}catch(Y){W(`CA certs: Failed to read NODE_EXTRA_CA_CERTS file (${J}): ${Y}`,{level:"error"})}return K.length>0?K:void 0})});import{Agent as IG}from"https";function gG(){let G=N(),J=U();if(!G&&!J)return;return{...G,...J&&{ca:J}}}function P(){let G=N(),J=U();if(!G&&!J)return{};let Q={...G,...J&&{ca:J}};if(typeof Bun<"u")return{tls:Q};return W("TLS: Created undici agent with custom certificates"),{dispatcher:new(D()).Agent({connect:{cert:Q.cert,key:Q.key,passphrase:Q.passphrase,...Q.ca&&{ca:Q.ca}},pipelining:1})}}function aG(){N.cache.clear?.(),C.cache.clear?.(),W("Cleared mTLS configuration cache")}function iG(){if(!N())return;if(process.env.NODE_EXTRA_CA_CERTS)W("NODE_EXTRA_CA_CERTS detected - Node.js will automatically append to built-in CAs")}var N,C;var KG=j(()=>{g();i();a();JG();N=q(()=>{let G={};if(process.env.CLAUDIN_CLIENT_CERT)try{G.cert=L().readFileSync(process.env.CLAUDIN_CLIENT_CERT,{encoding:"utf8"}),W("mTLS: Loaded client certificate from CLAUDIN_CLIENT_CERT")}catch(J){W(`mTLS: Failed to load client certificate: ${J}`,{level:"error"})}if(process.env.CLAUDIN_CLIENT_KEY)try{G.key=L().readFileSync(process.env.CLAUDIN_CLIENT_KEY,{encoding:"utf8"}),W("mTLS: Loaded client key from CLAUDIN_CLIENT_KEY")}catch(J){W(`mTLS: Failed to load client key: ${J}`,{level:"error"})}if(process.env.CLAUDIN_CLIENT_KEY_PASSPHRASE)G.passphrase=process.env.CLAUDIN_CLIENT_KEY_PASSPHRASE,W("mTLS: Using client key passphrase");if(Object.keys(G).length===0)return;return G}),C=q(()=>{let G=N(),J=U();if(!G&&!J)return;let Q={...G,...J&&{ca:J},keepAlive:!0};return W("mTLS: Creating HTTPS agent with custom certificates"),new IG(Q)})});var QG=()=>{};import*as YG from"net";import*as ZG from"http";import{Agent as SG}from"https";var B,p;var $G=j(()=>{QG();B=Symbol("AgentBaseInternalState");p=class p extends ZG.Agent{constructor(G){super(G);this[B]={}}isSecureEndpoint(G){if(G){if(typeof G.secureEndpoint==="boolean")return G.secureEndpoint;if(typeof G.protocol==="string")return G.protocol==="https:"}let{stack:J}=Error();if(typeof J!=="string")return!1;return J.split(`
|
|
2
|
-
`).some((Q)=>Q.indexOf("(https.js:")!==-1||Q.indexOf("node:https:")!==-1)}incrementSockets(G){if(this.maxSockets===1/0&&this.maxTotalSockets===1/0)return null;if(!this.sockets[G])this.sockets[G]=[];let J=new YG.Socket({writable:!1});return this.sockets[G].push(J),this.totalSocketCount++,J}decrementSockets(G,J){if(!this.sockets[G]||J===null)return;let Q=this.sockets[G],K=Q.indexOf(J);if(K!==-1){if(Q.splice(K,1),this.totalSocketCount--,Q.length===0)delete this.sockets[G]}}getName(G){if(this.isSecureEndpoint(G))return SG.prototype.getName.call(this,G);return super.getName(G)}createSocket(G,J,Q){let K={...J,secureEndpoint:this.isSecureEndpoint(J)},Y=this.getName(K),Z=this.incrementSockets(Y);Promise.resolve().then(()=>this.connect(G,K)).then((X)=>{if(this.decrementSockets(Y,Z),typeof X.addRequest==="function")try{return X.addRequest(G,K)}catch($){return Q($)}this[B].currentSocket=X,super.createSocket(G,J,Q)},(X)=>{this.decrementSockets(Y,Z),Q(X)})}createConnection(){let G=this[B].currentSocket;if(this[B].currentSocket=void 0,!G)throw Error("No socket was returned in the `connect()` function");return G}get defaultPort(){return this[B].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(G){if(this[B])this[B].defaultPort=G}get protocol(){return this[B].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(G){if(this[B])this[B].protocol=G}}});function n(G){return new Promise((J,Q)=>{let K=0,Y=[];function Z(){let w=G.read();if(w)_(w);else G.once("readable",Z)}function X(){G.removeListener("end",$),G.removeListener("error",V),G.removeListener("readable",Z)}function $(){X(),v("onend"),Q(Error("Proxy connection ended before receiving CONNECT response"))}function V(w){X(),v("onerror %o",w),Q(w)}function _(w){Y.push(w),K+=w.length;let z=Buffer.concat(Y,K),O=z.indexOf(`\r
|
|
3
|
-
\r
|
|
4
|
-
`);if(O===-1){v("have not received end of HTTP headers yet..."),Z();return}let b=z.slice(0,O).toString("ascii").split(`\r
|
|
5
|
-
`),f=b.shift();if(!f)return G.destroy(),Q(Error("No header received from proxy CONNECT response"));let t=f.split(" "),FG=+t[1],EG=t.slice(2).join(" "),I={};for(let S of b){if(!S)continue;let u=S.indexOf(":");if(u===-1)return G.destroy(),Q(Error(`Invalid header from proxy CONNECT response: "${S}"`));let d=S.slice(0,u).toLowerCase(),l=S.slice(u+1).trimStart(),A=I[d];if(typeof A==="string")I[d]=[A,l];else if(Array.isArray(A))A.push(l);else I[d]=l}v("got proxy server response: %o %o",f,I),X(),J({connect:{statusCode:FG,statusText:EG,headers:I},buffered:z})}G.on("error",V),G.on("end",$),Z()})}var wG,v;var zG=j(()=>{wG=WG(XG(),1),v=wG.default("https-proxy-agent:parse-proxy-response")});function VG(){return async({response:G,scheme:J})=>{if(J.toLowerCase()!=="negotiate")throw Error(`Expected Negotiate scheme but got "${J}"`);let Q;try{Q=await import("kerberos")}catch{throw Error('The "kerberos" package is required for Negotiate proxy authentication. Install it with: npm install kerberos')}let K=G.headers["proxy-authenticate"]||"",Y=Array.isArray(K)?K[0]:K,Z=typeof Y==="string"&&Y.includes(" ")?Y.split(" ").slice(1).join(" "):void 0,$=await(await Q.initializeClient("HTTP@proxy",{mechOID:Q.GSS_MECH_OID_SPNEGO})).step(Z||"");if(!$)throw Error("Kerberos client.step() returned no token");return{headers:{"Proxy-Authorization":`Negotiate ${$}`}}}}var BG=()=>{};import*as M from"net";import*as R from"tls";import LG from"assert";import{URL as DG}from"url";function MG(G){setImmediate(()=>{G.resume()})}function s(G,...J){let Q={},K;for(K in G)if(!J.includes(K))Q[K]=G[K];return Q}var HG,F,k=(G)=>{if(G.servername===void 0&&G.host&&!M.isIP(G.host))return{...G,servername:G.host};return G},m;var _G=j(()=>{$G();zG();BG();HG=WG(XG(),1),F=HG.default("https-proxy-agent");m=class m extends p{constructor(G,J){super(J);if(this.options={path:void 0},this.proxy=typeof G==="string"?new DG(G):G,this.proxyHeaders=J?.headers??{},F("Creating new HttpsProxyAgent instance: %o",this.proxy.href),J?.negotiate)this.onProxyAuth=VG();else if(J?.onProxyAuth)this.onProxyAuth=J.onProxyAuth;let Q=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,""),K=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={ALPNProtocols:["http/1.1"],...J?s(J,"headers","onProxyAuth","negotiate"):null,host:Q,port:K}}async connect(G,J){let{proxy:Q}=this;if(!J.host)throw TypeError('No "host" provided');let K;if(Q.protocol==="https:")F("Creating `tls.Socket`: %o",this.connectOpts),K=R.connect(k(this.connectOpts));else F("Creating `net.Socket`: %o",this.connectOpts),K=M.connect(this.connectOpts);let Y=typeof this.proxyHeaders==="function"?this.proxyHeaders():{...this.proxyHeaders},Z=M.isIPv6(J.host)?`[${J.host}]`:J.host,X=`CONNECT ${Z}:${J.port} HTTP/1.1\r
|
|
6
|
-
`;if(Q.username||Q.password){let z=`${decodeURIComponent(Q.username)}:${decodeURIComponent(Q.password)}`;Y["Proxy-Authorization"]=`Basic ${Buffer.from(z).toString("base64")}`}if(Y.Host=`${Z}:${J.port}`,!Y["Proxy-Connection"])Y["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close";for(let z of Object.keys(Y))X+=`${z}: ${Y[z]}\r
|
|
7
|
-
`;let $=n(K);K.write(`${X}\r
|
|
8
|
-
`);let{connect:V,buffered:_}=await $;if(G.emit("proxyConnect",V),this.emit("proxyConnect",V,G),G.emit("proxy",{proxy:this.proxy.href,socket:K}),V.statusCode===200){if(G.once("socket",MG),J.secureEndpoint)return F("Upgrading socket connection to TLS"),R.connect({...s(k(J),"host","path","port"),socket:K});return K}if(V.statusCode===407&&this.onProxyAuth){F("Got 407 response, invoking onProxyAuth callback"),K.destroy();let z=V.headers["proxy-authenticate"]||"",O=Array.isArray(z)?z[0].split(/\s/)[0]:z.split(/\s/)[0],b=await this.onProxyAuth({response:V,scheme:O});return this._connectWithAuth(G,J,b.headers)}K.destroy();let w=new M.Socket({writable:!1});return w.readable=!0,G.once("socket",(z)=>{F("Replaying proxy buffer for failed request"),LG(z.listenerCount("data")>0),z.push(_),z.push(null)}),w}async _connectWithAuth(G,J,Q){let{proxy:K}=this,Y;if(K.protocol==="https:")Y=R.connect(k(this.connectOpts));else Y=M.connect(this.connectOpts);let Z=typeof this.proxyHeaders==="function"?this.proxyHeaders():{...this.proxyHeaders},X=M.isIPv6(J.host)?`[${J.host}]`:J.host,$=`CONNECT ${X}:${J.port} HTTP/1.1\r
|
|
9
|
-
`;if(K.username||K.password){let w=`${decodeURIComponent(K.username)}:${decodeURIComponent(K.password)}`;Z["Proxy-Authorization"]=`Basic ${Buffer.from(w).toString("base64")}`}if(Object.assign(Z,Q),Z.Host=`${X}:${J.port}`,!Z["Proxy-Connection"])Z["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close";for(let w of Object.keys(Z))$+=`${w}: ${Z[w]}\r
|
|
10
|
-
`;let V=n(Y);Y.write(`${$}\r
|
|
11
|
-
`);let{connect:_}=await V;if(G.emit("proxyConnect",_),this.emit("proxyConnect",_,G),_.statusCode===200){if(G.once("socket",MG),J.secureEndpoint)return F("Upgrading socket connection to TLS"),R.connect({...s(k(J),"host","path","port"),socket:Y});return Y}throw Y.destroy(),Error(`Proxy authentication failed with status ${_.statusCode} after retry`)}};m.protocols=["http","https"]});function MJ(G){r.set(G,!0),qG(G)}function qG(G){TG.cache.delete?.(G)}function HJ(G){UG.set(G,!0),qG(G)}function OG(G){return UG.get(G)===!0}function bG(G){switch(G.family){case 0:case 4:case 6:return G.family;case"IPv6":return 6;case"IPv4":case void 0:return 4;default:throw Error(`Unsupported address family: ${G.family}`)}}function E(G=process.env){return G.https_proxy||G.HTTPS_PROXY||G.http_proxy||G.HTTP_PROXY}function AG(G=process.env){return G.no_proxy||G.NO_PROXY}function y(G,J=AG()){if(!J)return!1;if(J==="*")return!0;try{let Q=new URL(G),K=Q.hostname.toLowerCase(),Y=Q.port||(Q.protocol==="https:"||Q.protocol==="wss:"?"443":"80"),Z=`${K}:${Y}`;return J.split(/[,\s]+/).filter(Boolean).some(($)=>{if($=$.toLowerCase().trim(),$.includes(":"))return Z===$;if($.startsWith(".")){let V=$;return K===$.substring(1)||K.endsWith(V)}return K===$||K.endsWith("."+$)})}catch{return!1}}function h(G,J={}){let Q=N(),K=U(),Y={...Q&&{cert:Q.cert,key:Q.key,passphrase:Q.passphrase},...K&&{ca:K}};if(jG(process.env.CLAUDIN_PROXY_RESOLVES_HOSTS))Y.lookup=(Z,X,$)=>{$(null,Z,bG(X))};return new m(G,{...Y,...J})}function _J(G={}){let J=E(),Q=C(),K=H.create({proxy:!1});if(!J){if(Q)K.defaults.httpsAgent=Q;return K}let Y=h(J,G);return K.interceptors.request.use((Z)=>{if(Z.url&&y(Z.url))Z.httpsAgent=Q,Z.httpAgent=Q;else Z.httpsAgent=Y,Z.httpAgent=Y;return Z}),K}function jJ(G){let J=E();if(!J)return;if(y(G))return;return h(J)}function qJ(G){let J=E();if(!J)return;if(y(G))return;return J}function UJ(G){let J=G?.provider&&r.get(G.provider)?{keepalive:!1}:{};if(G?.forAnthropicAPI){let Y=process.env.ANTHROPIC_UNIX_SOCKET;if(Y&&typeof Bun<"u")return{...J,unix:Y}}let Q=E();if(Q){if(typeof Bun<"u")return{...J,proxy:Q,...P()};return{...J,dispatcher:o(Q)}}let K=P();if(G?.provider&&!K.dispatcher)return{...J,...K,dispatcher:TG(G.provider)};return{...J,...K}}function NJ(){let G=E(),J=C();if(x!==void 0)H.interceptors.request.eject(x),x=void 0;if(H.defaults.proxy=void 0,H.defaults.httpAgent=void 0,H.defaults.httpsAgent=void 0,G){H.defaults.proxy=!1;let Q=h(G);x=H.interceptors.request.use((K)=>{if(K.url&&y(K.url))if(J)K.httpsAgent=J,K.httpAgent=J;else delete K.httpsAgent,delete K.httpAgent;else K.httpsAgent=Q,K.httpAgent=Q;return K}),D().setGlobalDispatcher(o(G))}else if(J){H.defaults.httpsAgent=J;let Q=P();if(Q.dispatcher)D().setGlobalDispatcher(Q.dispatcher)}}async function TJ(){let G=E();if(!G)return{};let[{NodeHttpHandler:J},{defaultProvider:Q}]=await Promise.all([import("./index-1.1.26-pm334xks.mjs"),import("./index-1.1.26-vpyv4546.mjs")]),K=h(G),Y=new J({httpAgent:K,httpsAgent:K});return{requestHandler:Y,credentials:Q({clientConfig:{requestHandler:Y}})}}function FJ(){o.cache.clear?.(),W("Cleared proxy agent cache")}var r,UG,o,T,NG,CG,TG,x;var PG=j(()=>{RG();_G();g();i();a();GG();KG();r=new Map;UG=new Map;o=q((G)=>{let J=D(),Q=N(),K=U(),Y={httpProxy:G,httpsProxy:G,noProxy:process.env.NO_PROXY||process.env.no_proxy};if(Q||K){let Z={...Q&&{cert:Q.cert,key:Q.key,passphrase:Q.passphrase},...K&&{ca:K}};Y.connect=Z,Y.requestTls=Z}return new J.EnvHttpProxyAgent(Y)}),T={connections:12,keepAliveTimeout:30000,pipelining:1},NG={firstParty:{...T,allowH2:!0},openai:{...T,allowH2:!0},gemini:{...T,allowH2:!0},mistral:{...T,allowH2:!0},github:{...T,allowH2:!0},codex:{...T,allowH2:!0},"nvidia-nim":{...T,allowH2:!0},minimax:{...T,allowH2:!0}},CG=NG.openai,TG=q((G)=>{let J=D(),Q=NG[G]??CG,K={...Q,allowH2:Q.allowH2&&!OG(G),keepAliveTimeout:r.get(G)?100:Q.keepAliveTimeout};return new J.Agent(K)})});
|
|
12
|
-
export{yG as y9,i as z9,N as A9,gG as B9,aG as C9,iG as D9,KG as E9,MJ as F9,HJ as G9,OG as H9,E as I9,y as J9,_J as K9,jJ as L9,qJ as M9,UJ as N9,NJ as O9,TJ as P9,FJ as Q9,PG as R9};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{G1 as K,f0 as Z,j2 as k}from"./cli-1.1.26-nv2mgz6h.mjs";import{N4 as J,O4 as H}from"./cli-1.1.26-qf02kggq.mjs";import{e$ as v,f$ as Y}from"./cli-1.1.26-mvjefec1.mjs";import{_ta as V,cua as X}from"./cli-1.1.26-zb5hq3ry.mjs";function N(M){let b=L.c(5),{status:P,withSpace:D}=M,Q=D===void 0?!1:D,q=A[P],z=!q.color,B=Q&&" ",y;if(b[0]!==q.color||b[1]!==q.icon||b[2]!==z||b[3]!==B)y=J(K,{color:q.color,dimColor:z,children:[q.icon,B]}),b[0]=q.color,b[1]=q.icon,b[2]=z,b[3]=B,b[4]=y;else y=b[4];return y}var L,A;var C=X(()=>{Y();k();H();L=V(Z(),1),A={success:{icon:v.tick,color:"success"},error:{icon:v.cross,color:"error"},warning:{icon:v.warning,color:"warning"},info:{icon:v.info,color:"suggestion"},pending:{icon:v.circle,color:void 0},loading:{icon:"…",color:void 0}}});
|
|
2
|
-
export{N as Qh,C as Rh};
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import{At as D,Bt as hJ,Op as G,Rp as a,co as R,do as BJ,xF as k,yF as HJ}from"./cli-1.1.26-kvt0v6vq.mjs";import{Z8 as ZJ,i9 as $J,x9 as bJ}from"./cli-1.1.26-tgtv1jp3.mjs";import{Dea as WJ,Jaa as C,Kaa as GJ,Laa as h,Maa as FJ,Naa as u,Oaa as kJ,Vea as jJ}from"./cli-1.1.26-mvjefec1.mjs";import{Lia as x,Xia as gJ}from"./cli-1.1.26-chwpygff.mjs";import{Nja as q,Pja as s,Qja as Y,Rja as r}from"./cli-1.1.26-3gepexgn.mjs";import{ska as M,xka as yJ}from"./cli-1.1.26-pf85an2q.mjs";import{Xka as o,Yka as CJ,fla as n,gla as EJ,lla as l,mla as TJ}from"./cli-1.1.26-nr4x1ay3.mjs";import{Hna as c,Ina as OJ,Lna as H,Mna as F,Nna as I,Nra as QJ,Ona as YJ,Pma as g,Pna as P,Qma as zJ,Qna as XJ,Rma as A,Sma as wJ,bna as f,cna as PJ,hsa as mJ}from"./cli-1.1.26-4aztw2ex.mjs";import{qsa as K,rsa as DJ}from"./cli-1.1.26-jz95bmqy.mjs";import{cua as B}from"./cli-1.1.26-zb5hq3ry.mjs";function UJ(J,Q){return Q.length<2?J:P(J,R(Q,0,-1))}var z;var L=B(()=>{XJ();BJ();z=UJ});function xJ(J,Q){Q=H(Q,J);var W=-1,$=Q.length;if(!$)return!0;while(++W<$){var Z=I(Q[W]);if(Z==="__proto__"&&!KJ.call(J,"__proto__"))return!1;if((Z==="constructor"||Z==="prototype")&&W<$-1)return!1}var X=z(J,Q);return X==null||delete X[I(k(Q))]}var IJ,KJ,N;var O=B(()=>{F();HJ();L();YJ();IJ=Object.prototype,KJ=IJ.hasOwnProperty;N=xJ});function MJ(J){return C(J)?void 0:J}var E;var T=B(()=>{GJ();E=MJ});function RJ(J){return A(J)||f(J)||!!(S&&J&&J[S])}var S,d;var _=B(()=>{DJ();PJ();wJ();S=K?K.isConcatSpreadable:void 0;d=RJ});function v(J,Q,W,$,Z){var X=-1,V=J.length;W||(W=d),Z||(Z=[]);while(++X<V){var U=J[X];if(Q>0&&W(U))if(Q>1)v(U,Q-1,W,$,Z);else g(Z,U);else if(!$)Z[Z.length]=U}return Z}var m;var j=B(()=>{zJ();_();m=v});function LJ(J){var Q=J==null?0:J.length;return Q?m(J,1):[]}var y;var b=B(()=>{j();y=LJ});function NJ(J){return u(h(J,void 0,y),J+"")}var i;var p=B(()=>{b();FJ();kJ();i=NJ});var SJ=1,AJ=2,fJ=4,dJ,NQ;var _J=B(()=>{OJ();TJ();O();F();CJ();T();p();EJ();dJ=i(function(J,Q){var W={};if(J==null)return W;var $=!1;if(Q=c(Q,function(X){return X=H(X,J),$||($=X.length>1),X}),o(J,n(J),W),$)W=l(W,SJ|AJ|fJ,E);var Z=Q.length;while(Z--)N(W,Q[Z]);return W}),NQ=dJ});function t(){let J=x("tengu_harbor_ledger",[]),Q=vJ().safeParse(J);return Q.success?Q.data:[]}function e(){return x("tengu_harbor",!1)}var vJ;var JJ=B(()=>{s();r();a();gJ();vJ=Y(()=>q.array(q.object({marketplace:q.string(),plugin:q.string()})))});function uQ(J,Q,W){let $=Object.entries(W??{}).filter(([Z])=>iJ.test(Z)).map(([Z,X])=>` ${Z}="${D(X)}"`).join("");return`<${M} source="${D(J)}"${$}>
|
|
2
|
-
${Q}
|
|
3
|
-
</${M}>`}function pJ(J,Q){if((J==="team"||J==="enterprise")&&Q)return{entries:Q,source:"org"};return{entries:t(),source:"ledger"}}function cJ(J,Q){let W=J.split(":");return Q.find(($)=>$.kind==="server"?J===$.name:W[0]==="plugin"&&W[1]===$.name)}function iQ(J,Q,W){if(!Q?.experimental?.["claude/channel"])return{action:"skip",kind:"capability",reason:"server did not declare claude/channel capability"};if(!e())return{action:"skip",kind:"disabled",reason:"channels feature is not currently available"};if(!ZJ()?.accessToken)return{action:"skip",kind:"auth",reason:"channels requires claude.ai authentication (run /login)"};let $=$J(),Z=$==="team"||$==="enterprise",X=Z?WJ("policySettings"):void 0;if(Z&&X?.channelsEnabled!==!0)return{action:"skip",kind:"policy",reason:"channels not enabled by org policy (set channelsEnabled: true in managed settings)"};let V=cJ(J,QJ());if(!V)return{action:"skip",kind:"session",reason:`server ${J} not in --channels list for this session`};if(V.kind==="plugin"){let U=W?G(W).marketplace:void 0;if(U!==V.marketplace)return{action:"skip",kind:"marketplace",reason:`you asked for plugin:${V.name}@${V.marketplace} but the installed ${V.name} plugin is from ${U??"an unknown source"}`};if(!V.dev){let{entries:qJ,source:VJ}=pJ($,X?.allowedChannelPlugins);if(!qJ.some((w)=>w.plugin===V.name&&w.marketplace===V.marketplace))return{action:"skip",kind:"allowlist",reason:VJ==="org"?`plugin ${V.name}@${V.marketplace} is not on your org's approved channels list (set allowedChannelPlugins in managed settings)`:`plugin ${V.name}@${V.marketplace} is not on the approved channels allowlist (use --dangerously-load-development-channels for local dev)`}}}else if(!V.dev)return{action:"skip",kind:"allowlist",reason:`server ${V.name} is not on the approved channels allowlist (use --dangerously-load-development-channels for local dev)`};return{action:"register"}}var bQ,uJ="notifications/claude/channel/permission",hQ,iJ;var oJ=B(()=>{s();mJ();yJ();bJ();r();a();jJ();hJ();JJ();bQ=Y(()=>q.object({method:q.literal("notifications/claude/channel"),params:q.object({content:q.string(),meta:q.record(q.string(),q.string()).optional()})})),hQ=Y(()=>q.object({method:q.literal(uJ),params:q.object({request_id:q.string(),behavior:q.enum(["allow","deny"])})})),iJ=/^[a-zA-Z_][a-zA-Z0-9_]*$/});
|
|
4
|
-
export{NQ as Ff,_J as Gf,JJ as Hf,bQ as If,uQ as Jf,cJ as Kf,iQ as Lf,oJ as Mf};
|