@claudiolabs/claudin 1.1.26 → 1.1.27
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunks/AgentTool-1.1.27-db5m9gzv.mjs +1 -0
- package/dist/chunks/App-1.1.27-jz9pzpv7.mjs +1 -0
- package/dist/chunks/ApproveApiKey-1.1.27-b5mwy6bs.mjs +1 -0
- package/dist/chunks/AssistantSessionChooser-1.1.27-2kwhe57h.mjs +1 -0
- package/dist/chunks/AutoModeOptInDialog-1.1.27-g5rhes32.mjs +1 -0
- package/dist/chunks/BypassPermissionsModeDialog-1.1.27-jxn4ptdz.mjs +1 -0
- package/dist/chunks/ClaudeMdExternalIncludesDialog-1.1.27-2veddc9s.mjs +1 -0
- package/dist/chunks/ConsoleOAuthFlow-1.1.27-mt31pcwm.mjs +1 -0
- package/dist/chunks/DiffDialog-1.1.27-ts2drs72.mjs +6 -0
- package/dist/chunks/Doctor-1.1.27-mh9ttzx4.mjs +1 -0
- package/dist/chunks/ExplorerDialog-1.1.27-qh4nye9z.mjs +6 -0
- package/dist/chunks/ITermBackend-1.1.27-054hfzze.mjs +1 -0
- package/dist/chunks/InvalidConfigDialog-1.1.27-gyk98cx3.mjs +1 -0
- package/dist/chunks/InvalidSettingsDialog-1.1.27-agv9khdv.mjs +1 -0
- package/dist/chunks/MigrationDialog-1.1.27-fhzyv0es.mjs +1 -0
- package/dist/chunks/Onboarding-1.1.27-e7a3yzxe.mjs +1 -0
- package/dist/chunks/ProviderManager-1.1.27-zc2zrqpt.mjs +1 -0
- package/dist/chunks/REPL-1.1.27-zm25dsxc.mjs +1 -0
- package/dist/chunks/ResumeConversation-1.1.27-93vdmd0g.mjs +1 -0
- package/dist/chunks/SnapshotUpdateDialog-1.1.27-rcmc5990.mjs +1 -0
- package/dist/chunks/TeleportProgress-1.1.27-7mwc4ntd.mjs +1 -0
- package/dist/chunks/TeleportRepoMismatchDialog-1.1.27-jyjyshza.mjs +1 -0
- package/dist/chunks/TeleportResumeWrapper-1.1.27-g4s9ej88.mjs +1 -0
- package/dist/chunks/TmuxBackend-1.1.27-bfqad2sg.mjs +9 -0
- package/dist/chunks/ToolSearchTool-1.1.27-b39dysny.mjs +1 -0
- package/dist/chunks/TrustDialog-1.1.27-nerfy2hh.mjs +1 -0
- package/dist/chunks/activeProvider-1.1.27-7akd7pzq.mjs +1 -0
- package/dist/chunks/add-dir-1.1.27-jfd8t81g.mjs +1 -0
- package/dist/chunks/agentTypes-1.1.27-gvc8sgz1.mjs +1 -0
- package/dist/chunks/agents-1.1.27-pdcva4bt.mjs +110 -0
- package/dist/chunks/agents-1.1.27-vdvjpsev.mjs +3 -0
- package/dist/chunks/api-1.1.27-v0jrrv5d.mjs +1 -0
- package/dist/chunks/asciicast-1.1.27-a6ydv5ce.mjs +1 -0
- package/dist/chunks/assistant-1.1.27-gazcm6s7.mjs +1 -0
- package/dist/chunks/auth-1.1.27-d561ngfq.mjs +1 -0
- package/dist/chunks/auth-1.1.27-gp1b9bvj.mjs +1 -0
- package/dist/chunks/autoMode-1.1.27-187c13xb.mjs +52 -0
- package/dist/chunks/autoModeSetup-1.1.27-v3ap18cy.mjs +44 -0
- package/dist/chunks/autoUpdater-1.1.27-hty6t0t8.mjs +1 -0
- package/dist/chunks/backgroundHousekeeping-1.1.27-efmykd33.mjs +1 -0
- package/dist/chunks/branch-1.1.27-d16zzy8m.mjs +4 -0
- package/dist/chunks/bridge-1.1.27-3znqrqgh.mjs +2 -0
- package/dist/chunks/bridgeConfig-1.1.27-bbn4xfe7.mjs +1 -0
- package/dist/chunks/bridgeEnabled-1.1.27-hky0jg83.mjs +1 -0
- package/dist/chunks/bridgeMain-1.1.27-j9tfnew8.mjs +88 -0
- package/dist/chunks/bridgePointer-1.1.27-95k3w0tb.mjs +1 -0
- package/dist/chunks/btw-1.1.27-wx6yv865.mjs +1 -0
- package/dist/chunks/buddy-1.1.27-9afpekx4.mjs +3 -0
- package/dist/chunks/cache-probe-1.1.27-f84tajyp.mjs +21 -0
- package/dist/chunks/cacheStats-1.1.27-g9qwr4y9.mjs +4 -0
- package/dist/chunks/caches-1.1.27-fw7fsfx6.mjs +1 -0
- package/dist/chunks/cd-1.1.27-y9t4zyf7.mjs +3 -0
- package/dist/chunks/claudeDesktop-1.1.27-182n35a2.mjs +1 -0
- package/dist/chunks/claudemd-1.1.27-gp9ndxg8.mjs +1 -0
- package/dist/chunks/clear-1.1.27-rrvq1asb.mjs +1 -0
- package/dist/chunks/clearTerminal-1.1.27-6esk4j27.mjs +1 -0
- package/dist/chunks/cli-1.1.27-090g18py.mjs +2 -0
- package/dist/chunks/cli-1.1.27-0h1xdjxp.mjs +2 -0
- package/dist/chunks/cli-1.1.27-0rz9qd34.mjs +4 -0
- package/dist/chunks/cli-1.1.27-0wv0k9sb.mjs +2 -0
- package/dist/chunks/cli-1.1.27-14xp8pk4.mjs +2 -0
- package/dist/chunks/cli-1.1.27-1hdrfsqd.mjs +2 -0
- package/dist/chunks/cli-1.1.27-1qrkn0zf.mjs +25 -0
- package/dist/chunks/cli-1.1.27-1rztfj2j.mjs +2 -0
- package/dist/chunks/cli-1.1.27-1vmmkyhn.mjs +3 -0
- package/dist/chunks/cli-1.1.27-1yvzf2v8.mjs +2 -0
- package/dist/chunks/cli-1.1.27-1yyef8w3.mjs +2 -0
- package/dist/chunks/cli-1.1.27-1ztbchyz.mjs +2 -0
- package/dist/chunks/cli-1.1.27-22f6jd6a.mjs +2 -0
- package/dist/chunks/cli-1.1.27-2922x4n2.mjs +5 -0
- package/dist/chunks/cli-1.1.27-2e7wwbbp.mjs +2 -0
- package/dist/chunks/cli-1.1.27-2mtc2dbf.mjs +2 -0
- package/dist/chunks/cli-1.1.27-3cjhx8c4.mjs +4 -0
- package/dist/chunks/cli-1.1.27-3eax0jv3.mjs +6 -0
- package/dist/chunks/cli-1.1.27-3mpdw95c.mjs +2 -0
- package/dist/chunks/cli-1.1.27-3qx1npht.mjs +2 -0
- package/dist/chunks/cli-1.1.27-42wr3qtg.mjs +2 -0
- package/dist/chunks/cli-1.1.27-48ezce33.mjs +206 -0
- package/dist/chunks/cli-1.1.27-4an77vdm.mjs +2 -0
- package/dist/chunks/cli-1.1.27-4ch8wq6c.mjs +3 -0
- package/dist/chunks/cli-1.1.27-4cjm0m5c.mjs +24 -0
- package/dist/chunks/cli-1.1.27-4pm4y79r.mjs +2 -0
- package/dist/chunks/cli-1.1.27-4xegg6js.mjs +2 -0
- package/dist/chunks/cli-1.1.27-51sqdnt6.mjs +2 -0
- package/dist/chunks/cli-1.1.27-55evh9sy.mjs +21 -0
- package/dist/chunks/cli-1.1.27-575dbhvc.mjs +2 -0
- package/dist/chunks/cli-1.1.27-5jvkkbcy.mjs +2 -0
- package/dist/chunks/cli-1.1.27-5vejs4bz.mjs +3 -0
- package/dist/chunks/cli-1.1.27-6dm0tj1c.mjs +2 -0
- package/dist/chunks/cli-1.1.27-6f5wmt15.mjs +2 -0
- package/dist/chunks/cli-1.1.27-6g67vpnz.mjs +2 -0
- package/dist/chunks/cli-1.1.27-6s7e0eyt.mjs +2 -0
- package/dist/chunks/cli-1.1.27-6spv5ha8.mjs +60 -0
- package/dist/chunks/cli-1.1.27-704q0rhh.mjs +2 -0
- package/dist/chunks/cli-1.1.27-79504h3t.mjs +2 -0
- package/dist/chunks/cli-1.1.27-7a101p3z.mjs +2 -0
- package/dist/chunks/cli-1.1.27-7gnbh46g.mjs +2 -0
- package/dist/chunks/cli-1.1.27-7hws4y92.mjs +4 -0
- package/dist/chunks/cli-1.1.27-7jakzfss.mjs +24 -0
- package/dist/chunks/cli-1.1.27-7jc0gzqt.mjs +4 -0
- package/dist/chunks/cli-1.1.27-7wrz865m.mjs +2 -0
- package/dist/chunks/cli-1.1.27-7zpnm6dn.mjs +2 -0
- package/dist/chunks/cli-1.1.27-83exfkej.mjs +2 -0
- package/dist/chunks/cli-1.1.27-8em170zt.mjs +2 -0
- package/dist/chunks/cli-1.1.27-8fve969w.mjs +2 -0
- package/dist/chunks/cli-1.1.27-8gsqhqyf.mjs +42 -0
- package/dist/chunks/cli-1.1.27-8vkygf4q.mjs +2 -0
- package/dist/chunks/cli-1.1.27-8vrv0ver.mjs +2 -0
- package/dist/chunks/cli-1.1.27-8zkr609d.mjs +4 -0
- package/dist/chunks/cli-1.1.27-91eh3cyz.mjs +3 -0
- package/dist/chunks/cli-1.1.27-9427t707.mjs +2 -0
- package/dist/chunks/cli-1.1.27-94qc7asn.mjs +2 -0
- package/dist/chunks/cli-1.1.27-96ccvbyj.mjs +2 -0
- package/dist/chunks/cli-1.1.27-96yksxag.mjs +2 -0
- package/dist/chunks/cli-1.1.27-98bpezgc.mjs +45 -0
- package/dist/chunks/cli-1.1.27-9chfrr9e.mjs +2 -0
- package/dist/chunks/cli-1.1.27-9d0bkxf6.mjs +15 -0
- package/dist/chunks/cli-1.1.27-9m09gcqr.mjs +2 -0
- package/dist/chunks/cli-1.1.27-9sswt66t.mjs +12 -0
- package/dist/chunks/cli-1.1.27-a454a3rb.mjs +2 -0
- package/dist/chunks/cli-1.1.27-aahmf6wc.mjs +2 -0
- package/dist/chunks/cli-1.1.27-b0s2nhr1.mjs +24 -0
- package/dist/chunks/cli-1.1.27-b3bkjfyh.mjs +2 -0
- package/dist/chunks/cli-1.1.27-b42yen3p.mjs +2 -0
- package/dist/chunks/cli-1.1.27-bpbp93hw.mjs +2 -0
- package/dist/chunks/cli-1.1.27-bwc1f1yx.mjs +15 -0
- package/dist/chunks/cli-1.1.27-byba8306.mjs +20 -0
- package/dist/chunks/cli-1.1.27-byxgdj3w.mjs +2 -0
- package/dist/chunks/cli-1.1.27-cth2wwrh.mjs +2 -0
- package/dist/chunks/cli-1.1.27-cth3rq9k.mjs +2 -0
- package/dist/chunks/cli-1.1.27-cw1p9ac2.mjs +3 -0
- package/dist/chunks/cli-1.1.27-cw9bqwta.mjs +2 -0
- package/dist/chunks/cli-1.1.27-cxy3fqs0.mjs +2 -0
- package/dist/chunks/cli-1.1.27-d0k9rgj1.mjs +2 -0
- package/dist/chunks/cli-1.1.27-d1zgycfk.mjs +2 -0
- package/dist/chunks/cli-1.1.27-d4km9s81.mjs +2 -0
- package/dist/chunks/cli-1.1.27-d4w9gqgs.mjs +50 -0
- package/dist/chunks/cli-1.1.27-d5q76t7c.mjs +3 -0
- package/dist/chunks/cli-1.1.27-d7r6x0ew.mjs +2 -0
- package/dist/chunks/cli-1.1.27-dfww0knt.mjs +2 -0
- package/dist/chunks/cli-1.1.27-dhzbmaf3.mjs +2 -0
- package/dist/chunks/cli-1.1.27-e2p4abq5.mjs +2 -0
- package/dist/chunks/cli-1.1.27-e53f6at7.mjs +2 -0
- package/dist/chunks/cli-1.1.27-eag2dgb4.mjs +2 -0
- package/dist/chunks/cli-1.1.27-es2rn3j6.mjs +2 -0
- package/dist/chunks/cli-1.1.27-eypype7d.mjs +8 -0
- package/dist/chunks/cli-1.1.27-f218cppx.mjs +34 -0
- package/dist/chunks/cli-1.1.27-f3cv6wk1.mjs +2 -0
- package/dist/chunks/cli-1.1.27-fary910g.mjs +2 -0
- package/dist/chunks/cli-1.1.27-fc1my4zp.mjs +2 -0
- package/dist/chunks/cli-1.1.27-fdhry9qy.mjs +2 -0
- package/dist/chunks/cli-1.1.27-fr8vw4x1.mjs +2 -0
- package/dist/chunks/cli-1.1.27-fw9r8cwg.mjs +4 -0
- package/dist/chunks/cli-1.1.27-fxmty4t4.mjs +5 -0
- package/dist/chunks/cli-1.1.27-g8n6nr2e.mjs +1 -0
- package/dist/chunks/cli-1.1.27-gan2msv5.mjs +3 -0
- package/dist/chunks/cli-1.1.27-ge84mp6e.mjs +2 -0
- package/dist/chunks/cli-1.1.27-ggg6m9qt.mjs +2 -0
- package/dist/chunks/cli-1.1.27-gmknn4xh.mjs +2 -0
- package/dist/chunks/cli-1.1.27-gnhg7s3x.mjs +2 -0
- package/dist/chunks/cli-1.1.27-gnvm8gat.mjs +2 -0
- package/dist/chunks/cli-1.1.27-h7ytc7jg.mjs +9 -0
- package/dist/chunks/cli-1.1.27-hafa2nxa.mjs +2 -0
- package/dist/chunks/cli-1.1.27-hcnrf84n.mjs +2 -0
- package/dist/chunks/cli-1.1.27-hh78rvvf.mjs +2 -0
- package/dist/chunks/cli-1.1.27-hhkkts5k.mjs +6 -0
- package/dist/chunks/cli-1.1.27-hrwxg46q.mjs +2 -0
- package/dist/chunks/cli-1.1.27-hs6hv3bh.mjs +20 -0
- package/dist/chunks/cli-1.1.27-j362egg2.mjs +2 -0
- package/dist/chunks/cli-1.1.27-jcn2gvsw.mjs +2 -0
- package/dist/chunks/cli-1.1.27-jfqvck1y.mjs +2 -0
- package/dist/chunks/cli-1.1.27-jg3tymed.mjs +2 -0
- package/dist/chunks/cli-1.1.27-jh817v59.mjs +2 -0
- package/dist/chunks/cli-1.1.27-jm7jbypb.mjs +2 -0
- package/dist/chunks/cli-1.1.27-jmegwyzr.mjs +2 -0
- package/dist/chunks/cli-1.1.27-jmz9pczh.mjs +3 -0
- package/dist/chunks/cli-1.1.27-jt1gb6nf.mjs +2 -0
- package/dist/chunks/cli-1.1.27-jvs6enw9.mjs +2 -0
- package/dist/chunks/cli-1.1.27-k115ge4q.mjs +6 -0
- package/dist/chunks/cli-1.1.27-k2fyp83y.mjs +2 -0
- package/dist/chunks/cli-1.1.27-k6dwtkrp.mjs +2 -0
- package/dist/chunks/cli-1.1.27-k9jt24bv.mjs +2 -0
- package/dist/chunks/cli-1.1.27-kdv6nw9e.mjs +12 -0
- package/dist/chunks/cli-1.1.27-kerbk21s.mjs +2 -0
- package/dist/chunks/cli-1.1.27-kgpk1m6k.mjs +2 -0
- package/dist/chunks/cli-1.1.27-kkt8se1z.mjs +2 -0
- package/dist/chunks/cli-1.1.27-kpqha1ce.mjs +2 -0
- package/dist/chunks/cli-1.1.27-krtd4rf3.mjs +3 -0
- package/dist/chunks/cli-1.1.27-m2n4m352.mjs +2 -0
- package/dist/chunks/cli-1.1.27-m5wtrd2b.mjs +2 -0
- package/dist/chunks/cli-1.1.27-m6ne80zc.mjs +2 -0
- package/dist/chunks/cli-1.1.27-maxx6jt7.mjs +4 -0
- package/dist/chunks/cli-1.1.27-me6jhh1k.mjs +2 -0
- package/dist/chunks/cli-1.1.27-mqt20a61.mjs +2 -0
- package/dist/chunks/cli-1.1.27-mr1wxvzb.mjs +3 -0
- package/dist/chunks/cli-1.1.27-n09bs0db.mjs +2 -0
- package/dist/chunks/cli-1.1.27-n3fg97y6.mjs +2 -0
- package/dist/chunks/cli-1.1.27-n6vfvfw4.mjs +2 -0
- package/dist/chunks/cli-1.1.27-nbgxr715.mjs +10 -0
- package/dist/chunks/cli-1.1.27-njcbrvnc.mjs +58 -0
- package/dist/chunks/cli-1.1.27-nmp82pea.mjs +3 -0
- package/dist/chunks/cli-1.1.27-nx2yxmg9.mjs +3 -0
- package/dist/chunks/cli-1.1.27-nxkc7nfr.mjs +2 -0
- package/dist/chunks/cli-1.1.27-ny95570d.mjs +133 -0
- package/dist/chunks/cli-1.1.27-p1sh0ft2.mjs +2 -0
- package/dist/chunks/cli-1.1.27-p7kjkqhn.mjs +2 -0
- package/dist/chunks/cli-1.1.27-p99q7a22.mjs +133 -0
- package/dist/chunks/cli-1.1.27-pab2avnw.mjs +2 -0
- package/dist/chunks/cli-1.1.27-pyjha53q.mjs +2 -0
- package/dist/chunks/cli-1.1.27-q2msmggk.mjs +2 -0
- package/dist/chunks/cli-1.1.27-q830jx95.mjs +2 -0
- package/dist/chunks/cli-1.1.27-qcvp3n4v.mjs +2 -0
- package/dist/chunks/cli-1.1.27-qkzc0vzs.mjs +2 -0
- package/dist/chunks/cli-1.1.27-qnzhd86k.mjs +2 -0
- package/dist/chunks/cli-1.1.27-r2qyxh4t.mjs +26 -0
- package/dist/chunks/cli-1.1.27-r32k5nw7.mjs +4 -0
- package/dist/chunks/cli-1.1.27-r335xv52.mjs +6 -0
- package/dist/chunks/cli-1.1.27-r3r36jvq.mjs +25 -0
- package/dist/chunks/cli-1.1.27-r4ck0s0j.mjs +2 -0
- package/dist/chunks/cli-1.1.27-r9jjyax0.mjs +7 -0
- package/dist/chunks/cli-1.1.27-rct7c74m.mjs +2 -0
- package/dist/chunks/cli-1.1.27-rnwaxvgf.mjs +2 -0
- package/dist/chunks/cli-1.1.27-rqdq9mhj.mjs +2 -0
- package/dist/chunks/cli-1.1.27-ryd2t3vk.mjs +2 -0
- package/dist/chunks/cli-1.1.27-s62prq89.mjs +2 -0
- package/dist/chunks/cli-1.1.27-sbj1hdj9.mjs +2 -0
- package/dist/chunks/cli-1.1.27-scfswqdr.mjs +2 -0
- package/dist/chunks/cli-1.1.27-sdw0p0c4.mjs +58 -0
- package/dist/chunks/cli-1.1.27-sngxwsap.mjs +2 -0
- package/dist/chunks/cli-1.1.27-sr4a2gd6.mjs +2 -0
- package/dist/chunks/cli-1.1.27-sw6tnehx.mjs +2 -0
- package/dist/chunks/cli-1.1.27-t13xq38e.mjs +2 -0
- package/dist/chunks/cli-1.1.27-t1dxp2pw.mjs +2 -0
- package/dist/chunks/cli-1.1.27-t32zh7r1.mjs +2 -0
- package/dist/chunks/cli-1.1.27-t4rm4dqf.mjs +6 -0
- package/dist/chunks/cli-1.1.27-tc4b7enb.mjs +17 -0
- package/dist/chunks/cli-1.1.27-tpefzkds.mjs +4 -0
- package/dist/chunks/cli-1.1.27-tw693ept.mjs +2 -0
- package/dist/chunks/cli-1.1.27-v24sqtag.mjs +24 -0
- package/dist/chunks/cli-1.1.27-v49qz5nz.mjs +2 -0
- package/dist/chunks/cli-1.1.27-v9dwxgsv.mjs +15 -0
- package/dist/chunks/cli-1.1.27-vh1r16sd.mjs +6 -0
- package/dist/chunks/cli-1.1.27-vhdd7ed4.mjs +39 -0
- package/dist/chunks/cli-1.1.27-w0jz23zw.mjs +2 -0
- package/dist/chunks/cli-1.1.27-w8pwj9ef.mjs +5522 -0
- package/dist/chunks/cli-1.1.27-wbtq2bbb.mjs +2 -0
- package/dist/chunks/cli-1.1.27-wj32ftfy.mjs +2 -0
- package/dist/chunks/cli-1.1.27-wpnpp1vg.mjs +2 -0
- package/dist/chunks/cli-1.1.27-wtthtmes.mjs +3 -0
- package/dist/chunks/cli-1.1.27-wz24bwzn.mjs +2 -0
- package/dist/chunks/cli-1.1.27-x6dqasdj.mjs +17 -0
- package/dist/chunks/cli-1.1.27-xdfkhk5m.mjs +16 -0
- package/dist/chunks/cli-1.1.27-xjabxtdd.mjs +7 -0
- package/dist/chunks/cli-1.1.27-xx0q9f0f.mjs +2 -0
- package/dist/chunks/cli-1.1.27-y6pe4jk6.mjs +2 -0
- package/dist/chunks/cli-1.1.27-y712t8h2.mjs +2 -0
- package/dist/chunks/cli-1.1.27-y935z28w.mjs +2 -0
- package/dist/chunks/cli-1.1.27-yghv5btz.mjs +2 -0
- package/dist/chunks/cli-1.1.27-z32qkf2d.mjs +18 -0
- package/dist/chunks/cli-1.1.27-zbbzy1ze.mjs +2 -0
- package/dist/chunks/cli-1.1.27-zgweqxf0.mjs +9 -0
- package/dist/chunks/cli-1.1.27-zq9wak2z.mjs +2 -0
- package/dist/chunks/cli-1.1.27-zr523fbq.mjs +3 -0
- package/dist/chunks/client-1.1.27-ex7wh5hg.mjs +1 -0
- package/dist/chunks/color-1.1.27-58s1yrz1.mjs +1 -0
- package/dist/chunks/compact-1.1.27-c1wgqww4.mjs +3 -0
- package/dist/chunks/config-1.1.27-7vwe1qph.mjs +1 -0
- package/dist/chunks/config-1.1.27-ymfcbn84.mjs +1 -0
- package/dist/chunks/constants-1.1.27-3r2715sd.mjs +1 -0
- package/dist/chunks/context-1.1.27-yznf0qn9.mjs +1 -0
- package/dist/chunks/context-noninteractive-1.1.27-g15en4j2.mjs +1 -0
- package/dist/chunks/conversation-1.1.27-jmmsnhbw.mjs +1 -0
- package/dist/chunks/copilotHeaders-1.1.27-g0p5y9rf.mjs +1 -0
- package/dist/chunks/copy-1.1.27-pr6pzthk.mjs +9 -0
- package/dist/chunks/cost-1.1.27-q1yqmxr9.mjs +1 -0
- package/dist/chunks/createSSHSession-1.1.27-4cwnpwje.mjs +1 -0
- package/dist/chunks/createSession-1.1.27-xdq80vrv.mjs +1 -0
- package/dist/chunks/debug-1.1.27-42bn4afg.mjs +1 -0
- package/dist/chunks/defaultActionDeps-1.1.27-t14xxt79.mjs +1534 -0
- package/dist/chunks/desktop-1.1.27-c8h6b96d.mjs +1 -0
- package/dist/chunks/detectRepository-1.1.27-qx3djtsx.mjs +1 -0
- package/dist/chunks/detection-1.1.27-0974kbef.mjs +1 -0
- package/dist/chunks/diff-1.1.27-1cb81w47.mjs +1 -0
- package/dist/chunks/doctor-1.1.27-5ky6nxzq.mjs +1 -0
- package/dist/chunks/doctorDiagnostic-1.1.27-jcx2c92k.mjs +1 -0
- package/dist/chunks/earlyInput-1.1.27-btzh8ch0.mjs +1 -0
- package/dist/chunks/effort-1.1.27-5yvfxd52.mjs +13 -0
- package/dist/chunks/engine-1.1.27-xcjbgefa.mjs +1 -0
- package/dist/chunks/envLessBridgeConfig-1.1.27-tdwb5zkz.mjs +1 -0
- package/dist/chunks/envUtils-1.1.27-r07jyd3m.mjs +1 -0
- package/dist/chunks/environmentSelection-1.1.27-dr64k9he.mjs +1 -0
- package/dist/chunks/environments-1.1.27-s1z96vy8.mjs +1 -0
- package/dist/chunks/errors-1.1.27-bm50fpjg.mjs +1 -0
- package/dist/chunks/exampleCommands-1.1.27-wnw6egjm.mjs +1 -0
- package/dist/chunks/execFileNoThrow-1.1.27-evt4sr84.mjs +1 -0
- package/dist/chunks/exit-1.1.27-vgdg65b7.mjs +1 -0
- package/dist/chunks/explorer-1.1.27-zkb8zkpf.mjs +1 -0
- package/dist/chunks/export-1.1.27-tda60v40.mjs +2 -0
- package/dist/chunks/extra-usage-1.1.27-2bmjnc65.mjs +1 -0
- package/dist/chunks/extra-usage-noninteractive-1.1.27-m7byqk30.mjs +1 -0
- package/dist/chunks/fast-1.1.27-8bjn4w16.mjs +1 -0
- package/dist/chunks/feedback-1.1.27-vzfx84xw.mjs +14 -0
- package/dist/chunks/firstPartyEventLogger-1.1.27-57d5r280.mjs +1 -0
- package/dist/chunks/git-1.1.27-pe9yjmar.mjs +1 -0
- package/dist/chunks/githubModelsCredentials-1.1.27-r2w00yyn.mjs +1 -0
- package/dist/chunks/goal-1.1.27-da40b321.mjs +4 -0
- package/dist/chunks/growthbook-1.1.27-rmhw14zh.mjs +1 -0
- package/dist/chunks/headless-1.1.27-gwzekzne.mjs +2 -0
- package/dist/chunks/heapdump-1.1.27-0702z5xd.mjs +6 -0
- package/dist/chunks/help-1.1.27-gwcwagyv.mjs +1 -0
- package/dist/chunks/hookChains-1.1.27-jyc4rzjs.mjs +3 -0
- package/dist/chunks/hooks-1.1.27-8p1xt4z2.mjs +1 -0
- package/dist/chunks/hooks-1.1.27-vvzpa77q.mjs +79 -0
- package/dist/chunks/ide-1.1.27-w2am9w2t.mjs +3 -0
- package/dist/chunks/image-processor-napi-1.1.27-fk490n21.mjs +1 -0
- package/dist/chunks/import-1.1.27-69zkqd7t.mjs +261 -0
- package/dist/chunks/inboundAttachments-1.1.27-7whcznny.mjs +1 -0
- package/dist/chunks/index-1.1.27-03qtf3bh.mjs +9 -0
- package/dist/chunks/index-1.1.27-2w3eyz3g.mjs +1 -0
- package/dist/chunks/index-1.1.27-4td4kk2r.mjs +2 -0
- package/dist/chunks/index-1.1.27-72s4gvww.mjs +1 -0
- package/dist/chunks/index-1.1.27-7rmx1z0f.mjs +9 -0
- package/dist/chunks/index-1.1.27-949q66tk.mjs +1 -0
- package/dist/chunks/index-1.1.27-9w6rbss1.mjs +1 -0
- package/dist/chunks/index-1.1.27-9w6y0sqf.mjs +5 -0
- package/dist/chunks/index-1.1.27-9za77x22.mjs +2 -0
- package/dist/chunks/index-1.1.27-av965j5w.mjs +1 -0
- package/dist/chunks/index-1.1.27-dpf9bwn3.mjs +1 -0
- package/dist/chunks/index-1.1.27-dzzkz91c.mjs +1 -0
- package/dist/chunks/index-1.1.27-ed0cj234.mjs +30 -0
- package/dist/chunks/index-1.1.27-fz6pezpj.mjs +1 -0
- package/dist/chunks/index-1.1.27-haym7ds6.mjs +1 -0
- package/dist/chunks/index-1.1.27-k2zye2ba.mjs +1 -0
- package/dist/chunks/index-1.1.27-ktav82bw.mjs +1 -0
- package/dist/chunks/index-1.1.27-qj3j1rkb.mjs +1 -0
- package/dist/chunks/index-1.1.27-r6ypg71x.mjs +1 -0
- package/dist/chunks/index-1.1.27-r8jqe3yp.mjs +1 -0
- package/dist/chunks/index-1.1.27-rcxd3h0n.mjs +23 -0
- package/dist/chunks/index-1.1.27-spc0z43g.mjs +1 -0
- package/dist/chunks/index-1.1.27-xvd24vg3.mjs +1 -0
- package/dist/chunks/init-1.1.27-kbwzggfn.mjs +1 -0
- package/dist/chunks/initReplBridge-1.1.27-r8gnhged.mjs +1 -0
- package/dist/chunks/ink-1.1.27-btbyg6z5.mjs +1 -0
- package/dist/chunks/insights-1.1.27-r17n37gt.mjs +870 -0
- package/dist/chunks/install-1.1.27-rst7c5sr.mjs +1 -0
- package/dist/chunks/install-github-app-1.1.27-qe83k348.mjs +149 -0
- package/dist/chunks/install-slack-app-1.1.27-9btj28ve.mjs +1 -0
- package/dist/chunks/instrumentation-1.1.27-zs5yatff.mjs +1 -0
- package/dist/chunks/interactiveHelpers-1.1.27-vkw6dmnx.mjs +1 -0
- package/dist/chunks/keybindings-1.1.27-1sx34z24.mjs +2 -0
- package/dist/chunks/knowledge-1.1.27-3vda7yge.mjs +2 -0
- package/dist/chunks/latestVersionCache-1.1.27-8vg474pc.mjs +1 -0
- package/dist/chunks/loadAgentsDir-1.1.27-ax53z9hj.mjs +1 -0
- package/dist/chunks/loadPluginHooks-1.1.27-34tp38m5.mjs +1 -0
- package/dist/chunks/log-1.1.27-trbh6pmv.mjs +1 -0
- package/dist/chunks/main-1.1.27-y8ep0qqz.mjs +1 -0
- package/dist/chunks/managedEnv-1.1.27-xf362k5y.mjs +1 -0
- package/dist/chunks/mcp-1.1.27-af12t0f2.mjs +1 -0
- package/dist/chunks/mcp-1.1.27-qzntdrh6.mjs +17 -0
- package/dist/chunks/mcp-1.1.27-vsgp33q0.mjs +4 -0
- package/dist/chunks/mcpb-1.1.27-m9bw286t.mjs +1 -0
- package/dist/chunks/memory-1.1.27-tzff1b9e.mjs +72 -0
- package/dist/chunks/model-1.1.27-968y8qcm.mjs +2 -0
- package/dist/chunks/model-1.1.27-p2b82a7t.mjs +1 -0
- package/dist/chunks/node-1.1.27-bghx5g4n.mjs +1 -0
- package/dist/chunks/node-1.1.27-rjfnqhpk.mjs +15 -0
- package/dist/chunks/oauth-1.1.27-19qatx62.mjs +1 -0
- package/dist/chunks/openaiShim-1.1.27-p50pa80m.mjs +14 -0
- package/dist/chunks/output-style-1.1.27-6h4astb5.mjs +1 -0
- package/dist/chunks/package-OS7RONXY-1.1.27-nvbtkqpn.mjs +1 -0
- package/dist/chunks/parseConnectUrl-1.1.27-3gy61f1e.mjs +1 -0
- package/dist/chunks/parser-1.1.27-6m7zhkr7.mjs +1 -0
- package/dist/chunks/passes-1.1.27-2n9jw11x.mjs +1 -0
- package/dist/chunks/permissions-1.1.27-ah7j2bj9.mjs +3 -0
- package/dist/chunks/permissions-1.1.27-qnhk36mh.mjs +1 -0
- package/dist/chunks/plan-1.1.27-vkhc8mq9.mjs +1 -0
- package/dist/chunks/plist-1.1.27-vg4h3pf9.mjs +1 -0
- package/dist/chunks/plugin-1.1.27-benemmgh.mjs +29 -0
- package/dist/chunks/pluginStartupCheck-1.1.27-tyd8w4ay.mjs +1 -0
- package/dist/chunks/plugins-1.1.27-er0je2r7.mjs +9 -0
- package/dist/chunks/preActionHook-1.1.27-8w2hxz61.mjs +2 -0
- package/dist/chunks/print-1.1.27-nf4vjdv0.mjs +57 -0
- package/dist/chunks/process-1.1.27-1en4vj8c.mjs +1 -0
- package/dist/chunks/processBashCommand-1.1.27-y2nx754j.mjs +1 -0
- package/dist/chunks/processSlashCommand-1.1.27-mert7w0e.mjs +9 -0
- package/dist/chunks/prompt-1.1.27-0qqepg5j.mjs +1 -0
- package/dist/chunks/prompt-1.1.27-40pnv6x7.mjs +1 -0
- package/dist/chunks/prompts-1.1.27-kvtvsbhd.mjs +1 -0
- package/dist/chunks/protocolHandler-1.1.27-27de09ht.mjs +13 -0
- package/dist/chunks/provider-1.1.27-g4r1c84c.mjs +2 -0
- package/dist/chunks/providerProfiles-1.1.27-tp6zknw0.mjs +1 -0
- package/dist/chunks/providerValidation-1.1.27-ntakvdzk.mjs +6 -0
- package/dist/chunks/rate-limit-options-1.1.27-fvdwd7xd.mjs +1 -0
- package/dist/chunks/registerSubcommands-1.1.27-5pprq81w.mjs +26 -0
- package/dist/chunks/registry-1.1.27-vccj3rtk.mjs +1 -0
- package/dist/chunks/release-notes-1.1.27-a7x9237x.mjs +5 -0
- package/dist/chunks/reload-plugins-1.1.27-7yf3667k.mjs +2 -0
- package/dist/chunks/remote-env-1.1.27-2vdhr1s9.mjs +1 -0
- package/dist/chunks/remoteBridgeCore-1.1.27-0qn70btv.mjs +1 -0
- package/dist/chunks/remoteSession-1.1.27-21n6mx7d.mjs +1 -0
- package/dist/chunks/rename-1.1.27-x0qfjvj2.mjs +1 -0
- package/dist/chunks/replBridgeHandle-1.1.27-661m032k.mjs +1 -0
- package/dist/chunks/replLauncher-1.1.27-48an8y55.mjs +1 -0
- package/dist/chunks/resume-1.1.27-0n7jaz71.mjs +2 -0
- package/dist/chunks/rewind-1.1.27-0dhz50d0.mjs +1 -0
- package/dist/chunks/rootOptions-1.1.27-8k0jbnfk.mjs +1 -0
- package/dist/chunks/runWorkflowHeadless-1.1.27-3a15vms4.mjs +10 -0
- package/dist/chunks/sandbox-adapter-1.1.27-j8pr6jz7.mjs +1 -0
- package/dist/chunks/sandbox-toggle-1.1.27-r1nrcxaz.mjs +1 -0
- package/dist/chunks/session-1.1.27-bv5zha49.mjs +2 -0
- package/dist/chunks/sessionDiscovery-1.1.27-z50hzta3.mjs +1 -0
- package/dist/chunks/sessionFileAccessHooks-1.1.27-vc8ajjh0.mjs +1 -0
- package/dist/chunks/sessionStorage-1.1.27-0vfss5b6.mjs +1 -0
- package/dist/chunks/settings-1.1.27-jar0d6ey.mjs +1 -0
- package/dist/chunks/setup-1.1.27-ggnhb2c8.mjs +12 -0
- package/dist/chunks/sinks-1.1.27-qevt5nft.mjs +1 -0
- package/dist/chunks/skills-1.1.27-wjq94pk8.mjs +1 -0
- package/dist/chunks/startupProfiler-1.1.27-q5yb3a35.mjs +1 -0
- package/dist/chunks/startupUpdateCheck-1.1.27-k3spb2gh.mjs +1 -0
- package/dist/chunks/state-1.1.27-fpyqkxby.mjs +1 -0
- package/dist/chunks/stats-1.1.27-xb10zj7e.mjs +1 -0
- package/dist/chunks/status-1.1.27-7vscpczw.mjs +1 -0
- package/dist/chunks/stickers-1.1.27-j4em7gfg.mjs +1 -0
- package/dist/chunks/subprocessEnv-1.1.27-0dm2v5n5.mjs +1 -0
- package/dist/chunks/tasks-1.1.27-a7d9cx1a.mjs +1 -0
- package/dist/chunks/teamHelpers-1.1.27-2jkv3830.mjs +1 -0
- package/dist/chunks/teammateModeSnapshot-1.1.27-8vmyznjc.mjs +1 -0
- package/dist/chunks/teleport-1.1.27-d6bgvctx.mjs +1 -0
- package/dist/chunks/terminalSetup-1.1.27-8k6bdqzf.mjs +1 -0
- package/dist/chunks/theme-1.1.27-dzme81zx.mjs +1 -0
- package/dist/chunks/thinkback-1.1.27-8hrqe8zc.mjs +1 -0
- package/dist/chunks/thinkback-play-1.1.27-7pf0t9jk.mjs +1 -0
- package/dist/chunks/toolPool-1.1.27-yndm4vnc.mjs +1 -0
- package/dist/chunks/toolSearch-1.1.27-m1tpg8zj.mjs +1 -0
- package/dist/chunks/tools-1.1.27-f6v2cxn6.mjs +1 -0
- package/dist/chunks/trustedDevice-1.1.27-bkp7wbqw.mjs +1 -0
- package/dist/chunks/turndown.cjs-1.1.27-ev0anxmd.mjs +69 -0
- package/dist/chunks/types-1.1.27-pgjcgwmr.mjs +1 -0
- package/dist/chunks/ultrareviewCommand-1.1.27-fzpef911.mjs +4 -0
- package/dist/chunks/update-1.1.27-0rwrmj8m.mjs +72 -0
- package/dist/chunks/upgrade-1.1.27-zacn9g92.mjs +1 -0
- package/dist/chunks/upload-1.1.27-9natjvcx.mjs +7 -0
- package/dist/chunks/upstreamproxy-1.1.27-484n2sck.mjs +14 -0
- package/dist/chunks/url-handler-napi-1.1.27-e0vf9zwd.mjs +1 -0
- package/dist/chunks/usage-1.1.27-qdx2zhbe.mjs +1 -0
- package/dist/chunks/util-1.1.27-m60qqy4m.mjs +1 -0
- package/dist/chunks/utils-1.1.27-bpj1f9q9.mjs +1 -0
- package/dist/chunks/vim-1.1.27-dvj5bk5p.mjs +1 -0
- package/dist/chunks/watchLoop-1.1.27-1vydfkzw.mjs +13 -0
- package/dist/chunks/watcher-1.1.27-jxayr96k.mjs +1 -0
- package/dist/chunks/wiki-1.1.27-t7nxcbah.mjs +132 -0
- package/dist/chunks/workflows-1.1.27-7bdgxjth.mjs +1 -0
- package/dist/chunks/worktree-1.1.27-6kkgvwks.mjs +1 -0
- package/dist/chunks/worktreeModeEnabled-1.1.27-ax7kv7qq.mjs +1 -0
- package/dist/chunks/wrapper-1.1.27-q9kmdf61.mjs +7 -0
- package/dist/cli.mjs +2 -2
- package/package.json +9 -9
- package/dist/chunks/AgentTool-1.1.26-pww3rzse.mjs +0 -1
- package/dist/chunks/App-1.1.26-4vaezrz4.mjs +0 -1
- package/dist/chunks/ApproveApiKey-1.1.26-rngrjmp0.mjs +0 -1
- package/dist/chunks/AssistantSessionChooser-1.1.26-n2977m3p.mjs +0 -1
- package/dist/chunks/AutoModeOptInDialog-1.1.26-9y3h164v.mjs +0 -1
- package/dist/chunks/BypassPermissionsModeDialog-1.1.26-qzf3wf2e.mjs +0 -1
- package/dist/chunks/ClaudeMdExternalIncludesDialog-1.1.26-4rsh36df.mjs +0 -1
- package/dist/chunks/ConsoleOAuthFlow-1.1.26-g1kknwq5.mjs +0 -1
- package/dist/chunks/DiffDialog-1.1.26-4bt5rf4c.mjs +0 -6
- package/dist/chunks/Doctor-1.1.26-jnzpfe2z.mjs +0 -1
- package/dist/chunks/ExplorerDialog-1.1.26-h4ha2k3s.mjs +0 -6
- package/dist/chunks/ITermBackend-1.1.26-6vq713nq.mjs +0 -1
- package/dist/chunks/InvalidConfigDialog-1.1.26-5mpbyw8j.mjs +0 -1
- package/dist/chunks/InvalidSettingsDialog-1.1.26-y240kr8g.mjs +0 -1
- package/dist/chunks/MigrationDialog-1.1.26-bhdbn3pv.mjs +0 -1
- package/dist/chunks/Onboarding-1.1.26-v8am83rd.mjs +0 -1
- package/dist/chunks/ProviderManager-1.1.26-22a8rbdy.mjs +0 -1
- package/dist/chunks/REPL-1.1.26-z72g0j0z.mjs +0 -1
- package/dist/chunks/ResumeConversation-1.1.26-gh9s3rjn.mjs +0 -1
- package/dist/chunks/SnapshotUpdateDialog-1.1.26-r40qtar2.mjs +0 -1
- package/dist/chunks/TeleportProgress-1.1.26-23se9f85.mjs +0 -1
- package/dist/chunks/TeleportRepoMismatchDialog-1.1.26-7r52d8rv.mjs +0 -1
- package/dist/chunks/TeleportResumeWrapper-1.1.26-k6atzshz.mjs +0 -1
- package/dist/chunks/TmuxBackend-1.1.26-ym3spr0b.mjs +0 -9
- package/dist/chunks/ToolSearchTool-1.1.26-c332beft.mjs +0 -1
- package/dist/chunks/TrustDialog-1.1.26-sqqx0vck.mjs +0 -1
- package/dist/chunks/activeProvider-1.1.26-maqce1gv.mjs +0 -1
- package/dist/chunks/add-dir-1.1.26-qcws8kjg.mjs +0 -1
- package/dist/chunks/agentTypes-1.1.26-fw01kwc9.mjs +0 -1
- package/dist/chunks/agents-1.1.26-dasaamxr.mjs +0 -3
- package/dist/chunks/agents-1.1.26-p33pq694.mjs +0 -110
- package/dist/chunks/api-1.1.26-msb1jnzq.mjs +0 -1
- package/dist/chunks/asciicast-1.1.26-vf9e0v5b.mjs +0 -1
- package/dist/chunks/assistant-1.1.26-h2aycjkn.mjs +0 -1
- package/dist/chunks/auth-1.1.26-dk7wnv7t.mjs +0 -1
- package/dist/chunks/auth-1.1.26-q8xgzm5r.mjs +0 -1
- package/dist/chunks/autoMode-1.1.26-zrzav382.mjs +0 -52
- package/dist/chunks/autoModeSetup-1.1.26-x7k5ammk.mjs +0 -44
- package/dist/chunks/autoUpdater-1.1.26-6hmytwm6.mjs +0 -1
- package/dist/chunks/backgroundHousekeeping-1.1.26-09grqe05.mjs +0 -1
- package/dist/chunks/branch-1.1.26-e1qfc78k.mjs +0 -4
- package/dist/chunks/bridge-1.1.26-h1bxacst.mjs +0 -2
- package/dist/chunks/bridgeConfig-1.1.26-vpz1r911.mjs +0 -1
- package/dist/chunks/bridgeEnabled-1.1.26-xkeegvk7.mjs +0 -1
- package/dist/chunks/bridgeMain-1.1.26-dnv31x02.mjs +0 -88
- package/dist/chunks/bridgePointer-1.1.26-d2zjebn5.mjs +0 -1
- package/dist/chunks/btw-1.1.26-9hcjg1vm.mjs +0 -1
- package/dist/chunks/buddy-1.1.26-20xpa564.mjs +0 -3
- package/dist/chunks/cache-probe-1.1.26-p18jjck5.mjs +0 -21
- package/dist/chunks/cacheStats-1.1.26-tndvbhbh.mjs +0 -4
- package/dist/chunks/caches-1.1.26-g9aneehb.mjs +0 -1
- package/dist/chunks/cd-1.1.26-1mhwbmvw.mjs +0 -3
- package/dist/chunks/claudeDesktop-1.1.26-8970gddx.mjs +0 -1
- package/dist/chunks/claudemd-1.1.26-a0wvdz6h.mjs +0 -1
- package/dist/chunks/clear-1.1.26-8f7hbzks.mjs +0 -1
- package/dist/chunks/clearTerminal-1.1.26-yxrgchg6.mjs +0 -1
- package/dist/chunks/cli-1.1.26-01erqdx7.mjs +0 -6
- package/dist/chunks/cli-1.1.26-0qa3rcd8.mjs +0 -6
- package/dist/chunks/cli-1.1.26-132vkvj1.mjs +0 -2
- package/dist/chunks/cli-1.1.26-14kc3afb.mjs +0 -3
- package/dist/chunks/cli-1.1.26-14n169e4.mjs +0 -2
- package/dist/chunks/cli-1.1.26-16s9pjdh.mjs +0 -2
- package/dist/chunks/cli-1.1.26-1mbz2mcm.mjs +0 -2
- package/dist/chunks/cli-1.1.26-1v8jg7nn.mjs +0 -2
- package/dist/chunks/cli-1.1.26-1vdqjs9c.mjs +0 -21
- package/dist/chunks/cli-1.1.26-1ze7r6x4.mjs +0 -24
- package/dist/chunks/cli-1.1.26-28qe790b.mjs +0 -2
- package/dist/chunks/cli-1.1.26-2dzytde4.mjs +0 -2
- package/dist/chunks/cli-1.1.26-2fbt2m4z.mjs +0 -4
- package/dist/chunks/cli-1.1.26-2j0g9z56.mjs +0 -2
- package/dist/chunks/cli-1.1.26-2k53vhr6.mjs +0 -2
- package/dist/chunks/cli-1.1.26-2msjf68r.mjs +0 -2
- package/dist/chunks/cli-1.1.26-2s2gpj0g.mjs +0 -2
- package/dist/chunks/cli-1.1.26-31negda3.mjs +0 -2
- package/dist/chunks/cli-1.1.26-32vewh62.mjs +0 -6
- package/dist/chunks/cli-1.1.26-38m8cha0.mjs +0 -2
- package/dist/chunks/cli-1.1.26-3c44vscp.mjs +0 -2
- package/dist/chunks/cli-1.1.26-3gepexgn.mjs +0 -66
- package/dist/chunks/cli-1.1.26-3hemew00.mjs +0 -3
- package/dist/chunks/cli-1.1.26-3htpgh4y.mjs +0 -2
- package/dist/chunks/cli-1.1.26-3k8e9a3k.mjs +0 -2
- package/dist/chunks/cli-1.1.26-3p2ch222.mjs +0 -2
- package/dist/chunks/cli-1.1.26-3z39qjr1.mjs +0 -24
- package/dist/chunks/cli-1.1.26-4aztw2ex.mjs +0 -2
- package/dist/chunks/cli-1.1.26-4cj6rr02.mjs +0 -2
- package/dist/chunks/cli-1.1.26-4jbtcb3c.mjs +0 -17
- package/dist/chunks/cli-1.1.26-4jn0r6an.mjs +0 -2
- package/dist/chunks/cli-1.1.26-516p6zzp.mjs +0 -2
- package/dist/chunks/cli-1.1.26-55ayan24.mjs +0 -133
- package/dist/chunks/cli-1.1.26-5fv3wdye.mjs +0 -2
- package/dist/chunks/cli-1.1.26-5p6865dd.mjs +0 -2
- package/dist/chunks/cli-1.1.26-6ac72fwz.mjs +0 -5
- package/dist/chunks/cli-1.1.26-6c5rgjbj.mjs +0 -2
- package/dist/chunks/cli-1.1.26-6g0bq6h6.mjs +0 -26
- package/dist/chunks/cli-1.1.26-6p5bpbzy.mjs +0 -2
- package/dist/chunks/cli-1.1.26-6qzbf8mr.mjs +0 -3
- package/dist/chunks/cli-1.1.26-6v5e8fy8.mjs +0 -2
- package/dist/chunks/cli-1.1.26-73s95190.mjs +0 -4
- package/dist/chunks/cli-1.1.26-79g0hfrb.mjs +0 -4
- package/dist/chunks/cli-1.1.26-79j24jxp.mjs +0 -2
- package/dist/chunks/cli-1.1.26-7h1213xq.mjs +0 -1
- package/dist/chunks/cli-1.1.26-7pa47kxq.mjs +0 -2
- package/dist/chunks/cli-1.1.26-7q7jw0ck.mjs +0 -2
- package/dist/chunks/cli-1.1.26-7ssnr221.mjs +0 -4
- package/dist/chunks/cli-1.1.26-851khk0n.mjs +0 -2
- package/dist/chunks/cli-1.1.26-89reg5gc.mjs +0 -2
- package/dist/chunks/cli-1.1.26-8h5tr358.mjs +0 -2
- package/dist/chunks/cli-1.1.26-8vq4pfa8.mjs +0 -2
- package/dist/chunks/cli-1.1.26-8wng8tbf.mjs +0 -2
- package/dist/chunks/cli-1.1.26-945rz3ns.mjs +0 -2
- package/dist/chunks/cli-1.1.26-97w71raz.mjs +0 -2
- package/dist/chunks/cli-1.1.26-9kzdvxzw.mjs +0 -2
- package/dist/chunks/cli-1.1.26-9mg6k159.mjs +0 -2
- package/dist/chunks/cli-1.1.26-9x90xrtz.mjs +0 -2
- package/dist/chunks/cli-1.1.26-ab2xbv4t.mjs +0 -2
- package/dist/chunks/cli-1.1.26-abp7zq8a.mjs +0 -7
- package/dist/chunks/cli-1.1.26-agrrdhst.mjs +0 -12
- package/dist/chunks/cli-1.1.26-aj61ygn7.mjs +0 -2
- package/dist/chunks/cli-1.1.26-arx4za97.mjs +0 -2
- package/dist/chunks/cli-1.1.26-avyt487s.mjs +0 -4
- package/dist/chunks/cli-1.1.26-b3m57q7j.mjs +0 -24
- package/dist/chunks/cli-1.1.26-b5xvjyj6.mjs +0 -2
- package/dist/chunks/cli-1.1.26-bc7nnmyt.mjs +0 -4
- package/dist/chunks/cli-1.1.26-bmzjvqhh.mjs +0 -2
- package/dist/chunks/cli-1.1.26-bs6j2409.mjs +0 -2
- package/dist/chunks/cli-1.1.26-bv6bd469.mjs +0 -2
- package/dist/chunks/cli-1.1.26-c1s0antn.mjs +0 -2
- package/dist/chunks/cli-1.1.26-c9m56qw1.mjs +0 -4
- package/dist/chunks/cli-1.1.26-cdkkrgj3.mjs +0 -6
- package/dist/chunks/cli-1.1.26-chwpygff.mjs +0 -2
- package/dist/chunks/cli-1.1.26-cmeam5fv.mjs +0 -4
- package/dist/chunks/cli-1.1.26-crwbhf2k.mjs +0 -2
- package/dist/chunks/cli-1.1.26-d6m0sag3.mjs +0 -2
- package/dist/chunks/cli-1.1.26-dq31hqw9.mjs +0 -2
- package/dist/chunks/cli-1.1.26-dyyg0r9f.mjs +0 -2
- package/dist/chunks/cli-1.1.26-e807ek7h.mjs +0 -3
- package/dist/chunks/cli-1.1.26-e8stbnjk.mjs +0 -2
- package/dist/chunks/cli-1.1.26-eb90p21t.mjs +0 -10
- package/dist/chunks/cli-1.1.26-edg965cj.mjs +0 -2
- package/dist/chunks/cli-1.1.26-etwfcg1g.mjs +0 -2
- package/dist/chunks/cli-1.1.26-exd0gw3b.mjs +0 -3
- package/dist/chunks/cli-1.1.26-f0cvk9rp.mjs +0 -3
- package/dist/chunks/cli-1.1.26-f624n21e.mjs +0 -2
- package/dist/chunks/cli-1.1.26-fcnssbje.mjs +0 -2
- package/dist/chunks/cli-1.1.26-ft1bty40.mjs +0 -45
- package/dist/chunks/cli-1.1.26-g0jbhnrw.mjs +0 -3
- package/dist/chunks/cli-1.1.26-g1a27741.mjs +0 -3
- package/dist/chunks/cli-1.1.26-g3eqp15d.mjs +0 -2
- package/dist/chunks/cli-1.1.26-g54bqv9d.mjs +0 -2
- package/dist/chunks/cli-1.1.26-g825efx8.mjs +0 -3
- package/dist/chunks/cli-1.1.26-grerq74y.mjs +0 -4
- package/dist/chunks/cli-1.1.26-gt65gs27.mjs +0 -2
- package/dist/chunks/cli-1.1.26-h2bzv8a9.mjs +0 -2
- package/dist/chunks/cli-1.1.26-h8pwf3e5.mjs +0 -34
- package/dist/chunks/cli-1.1.26-hc0z3th3.mjs +0 -2
- package/dist/chunks/cli-1.1.26-hgr89jmg.mjs +0 -2
- package/dist/chunks/cli-1.1.26-hk66nk4j.mjs +0 -2
- package/dist/chunks/cli-1.1.26-hkn2maax.mjs +0 -12
- package/dist/chunks/cli-1.1.26-hwb66n0d.mjs +0 -20
- package/dist/chunks/cli-1.1.26-hxty6b5t.mjs +0 -24
- package/dist/chunks/cli-1.1.26-j0ggtb42.mjs +0 -2
- package/dist/chunks/cli-1.1.26-j0pfn318.mjs +0 -2
- package/dist/chunks/cli-1.1.26-j3g54xq9.mjs +0 -25
- package/dist/chunks/cli-1.1.26-j522h2zj.mjs +0 -2
- package/dist/chunks/cli-1.1.26-j5jzf8nr.mjs +0 -2
- package/dist/chunks/cli-1.1.26-jaq75h39.mjs +0 -2
- package/dist/chunks/cli-1.1.26-jcshhf4v.mjs +0 -2
- package/dist/chunks/cli-1.1.26-jp74zrnt.mjs +0 -2
- package/dist/chunks/cli-1.1.26-jstehae2.mjs +0 -25
- package/dist/chunks/cli-1.1.26-jv1escq9.mjs +0 -9
- package/dist/chunks/cli-1.1.26-jz95bmqy.mjs +0 -2
- package/dist/chunks/cli-1.1.26-k287xjcs.mjs +0 -2
- package/dist/chunks/cli-1.1.26-k827q3s7.mjs +0 -2
- package/dist/chunks/cli-1.1.26-kb5qx4tp.mjs +0 -15
- package/dist/chunks/cli-1.1.26-kk4ymgvj.mjs +0 -2
- package/dist/chunks/cli-1.1.26-kmpjjneg.mjs +0 -50
- package/dist/chunks/cli-1.1.26-krj2sk8f.mjs +0 -2
- package/dist/chunks/cli-1.1.26-ktfnpsqn.mjs +0 -2
- package/dist/chunks/cli-1.1.26-kvt0v6vq.mjs +0 -5459
- package/dist/chunks/cli-1.1.26-kvy3vgrt.mjs +0 -20
- package/dist/chunks/cli-1.1.26-kz0et72d.mjs +0 -2
- package/dist/chunks/cli-1.1.26-m2ajjr1n.mjs +0 -2
- package/dist/chunks/cli-1.1.26-m3gpc1yq.mjs +0 -6
- package/dist/chunks/cli-1.1.26-m8mebydd.mjs +0 -3
- package/dist/chunks/cli-1.1.26-mb749hsh.mjs +0 -2
- package/dist/chunks/cli-1.1.26-mdtsa5pq.mjs +0 -2
- package/dist/chunks/cli-1.1.26-mvjefec1.mjs +0 -206
- package/dist/chunks/cli-1.1.26-n0thzakv.mjs +0 -2
- package/dist/chunks/cli-1.1.26-n43rh2dq.mjs +0 -2
- package/dist/chunks/cli-1.1.26-nbkw9wa7.mjs +0 -2
- package/dist/chunks/cli-1.1.26-nkp41vem.mjs +0 -2
- package/dist/chunks/cli-1.1.26-np0se5jr.mjs +0 -2
- package/dist/chunks/cli-1.1.26-nr4x1ay3.mjs +0 -6
- package/dist/chunks/cli-1.1.26-nv2mgz6h.mjs +0 -60
- package/dist/chunks/cli-1.1.26-p2gpyynf.mjs +0 -2
- package/dist/chunks/cli-1.1.26-pdpvbn6t.mjs +0 -2
- package/dist/chunks/cli-1.1.26-pejnbqtd.mjs +0 -2
- package/dist/chunks/cli-1.1.26-pf85an2q.mjs +0 -2
- package/dist/chunks/cli-1.1.26-phdsw9kw.mjs +0 -2
- package/dist/chunks/cli-1.1.26-pp0zr4bw.mjs +0 -39
- package/dist/chunks/cli-1.1.26-pttfqxxh.mjs +0 -2
- package/dist/chunks/cli-1.1.26-pttr45sa.mjs +0 -2
- package/dist/chunks/cli-1.1.26-pzpydjmr.mjs +0 -2
- package/dist/chunks/cli-1.1.26-q4vaz10d.mjs +0 -2
- package/dist/chunks/cli-1.1.26-q77fmxtz.mjs +0 -2
- package/dist/chunks/cli-1.1.26-q9msymy9.mjs +0 -7
- package/dist/chunks/cli-1.1.26-qf02kggq.mjs +0 -2
- package/dist/chunks/cli-1.1.26-qr2ee3t2.mjs +0 -2
- package/dist/chunks/cli-1.1.26-qw49rw3y.mjs +0 -17
- package/dist/chunks/cli-1.1.26-qymrzn5k.mjs +0 -2
- package/dist/chunks/cli-1.1.26-r4ewzysx.mjs +0 -3
- package/dist/chunks/cli-1.1.26-rbxsj403.mjs +0 -8
- package/dist/chunks/cli-1.1.26-rgz7nebj.mjs +0 -2
- package/dist/chunks/cli-1.1.26-rkdk0vdh.mjs +0 -2
- package/dist/chunks/cli-1.1.26-rpd6k1rg.mjs +0 -2
- package/dist/chunks/cli-1.1.26-rr47cs5n.mjs +0 -2
- package/dist/chunks/cli-1.1.26-rrq5hxxh.mjs +0 -9
- package/dist/chunks/cli-1.1.26-rtk9fw0k.mjs +0 -2
- package/dist/chunks/cli-1.1.26-rzrs3g9w.mjs +0 -2
- package/dist/chunks/cli-1.1.26-sfz2mk5a.mjs +0 -15
- package/dist/chunks/cli-1.1.26-snnmp5qx.mjs +0 -2
- package/dist/chunks/cli-1.1.26-ssxrwqk2.mjs +0 -2
- package/dist/chunks/cli-1.1.26-swdk2n55.mjs +0 -2
- package/dist/chunks/cli-1.1.26-sx40y42s.mjs +0 -2
- package/dist/chunks/cli-1.1.26-syjzv1v1.mjs +0 -18
- package/dist/chunks/cli-1.1.26-t05x8de5.mjs +0 -2
- package/dist/chunks/cli-1.1.26-ta82bxzt.mjs +0 -3
- package/dist/chunks/cli-1.1.26-tcbtd5f6.mjs +0 -2
- package/dist/chunks/cli-1.1.26-tgtv1jp3.mjs +0 -16
- package/dist/chunks/cli-1.1.26-thxyzhdj.mjs +0 -42
- package/dist/chunks/cli-1.1.26-txmxmpj4.mjs +0 -2
- package/dist/chunks/cli-1.1.26-tyvfnyw1.mjs +0 -2
- package/dist/chunks/cli-1.1.26-v0vv0v6c.mjs +0 -58
- package/dist/chunks/cli-1.1.26-v440gznh.mjs +0 -3
- package/dist/chunks/cli-1.1.26-v6fnwae1.mjs +0 -2
- package/dist/chunks/cli-1.1.26-v7k7gw6h.mjs +0 -2
- package/dist/chunks/cli-1.1.26-vb3pa5k9.mjs +0 -2
- package/dist/chunks/cli-1.1.26-vne421we.mjs +0 -133
- package/dist/chunks/cli-1.1.26-vpdrb404.mjs +0 -2
- package/dist/chunks/cli-1.1.26-vxzeagvf.mjs +0 -2
- package/dist/chunks/cli-1.1.26-vypd5zf6.mjs +0 -5
- package/dist/chunks/cli-1.1.26-w94mate8.mjs +0 -2
- package/dist/chunks/cli-1.1.26-w9hym0b4.mjs +0 -2
- package/dist/chunks/cli-1.1.26-wy5w6zkt.mjs +0 -2
- package/dist/chunks/cli-1.1.26-x64s4kth.mjs +0 -2
- package/dist/chunks/cli-1.1.26-x82tpywr.mjs +0 -2
- package/dist/chunks/cli-1.1.26-xdcmgkcr.mjs +0 -15
- package/dist/chunks/cli-1.1.26-xkj6kd3c.mjs +0 -2
- package/dist/chunks/cli-1.1.26-xnqas0g4.mjs +0 -2
- package/dist/chunks/cli-1.1.26-xrb5tnj3.mjs +0 -2
- package/dist/chunks/cli-1.1.26-xrqbcbv5.mjs +0 -2
- package/dist/chunks/cli-1.1.26-xspr3ymb.mjs +0 -2
- package/dist/chunks/cli-1.1.26-xwryqq86.mjs +0 -2
- package/dist/chunks/cli-1.1.26-xzbv3dzb.mjs +0 -2
- package/dist/chunks/cli-1.1.26-y82xxzhw.mjs +0 -2
- package/dist/chunks/cli-1.1.26-yz9ks5m0.mjs +0 -2
- package/dist/chunks/cli-1.1.26-z2cjynpf.mjs +0 -2
- package/dist/chunks/cli-1.1.26-z5qgpexv.mjs +0 -3
- package/dist/chunks/cli-1.1.26-zb5hq3ry.mjs +0 -2
- package/dist/chunks/cli-1.1.26-zsf06fnj.mjs +0 -2
- package/dist/chunks/cli-1.1.26-zy2fcj67.mjs +0 -2
- package/dist/chunks/cli-1.1.26-zyt75y9a.mjs +0 -2
- package/dist/chunks/client-1.1.26-5m13dtqt.mjs +0 -1
- package/dist/chunks/color-1.1.26-hc4gee57.mjs +0 -1
- package/dist/chunks/compact-1.1.26-k29q801r.mjs +0 -3
- package/dist/chunks/config-1.1.26-20jye461.mjs +0 -1
- package/dist/chunks/config-1.1.26-f3tsx9mm.mjs +0 -1
- package/dist/chunks/constants-1.1.26-vyt7y0vq.mjs +0 -1
- package/dist/chunks/context-1.1.26-xg3zeq1z.mjs +0 -1
- package/dist/chunks/context-noninteractive-1.1.26-n05p37yd.mjs +0 -1
- package/dist/chunks/conversation-1.1.26-g9vfc7p7.mjs +0 -1
- package/dist/chunks/copilotHeaders-1.1.26-gr7hc6j5.mjs +0 -1
- package/dist/chunks/copy-1.1.26-t50s90xg.mjs +0 -9
- package/dist/chunks/cost-1.1.26-9hp3110j.mjs +0 -1
- package/dist/chunks/createSSHSession-1.1.26-hpzpfpqk.mjs +0 -1
- package/dist/chunks/createSession-1.1.26-4mxab0d8.mjs +0 -1
- package/dist/chunks/debug-1.1.26-m7p7fchf.mjs +0 -1
- package/dist/chunks/defaultActionDeps-1.1.26-0fr1vrkt.mjs +0 -1534
- package/dist/chunks/desktop-1.1.26-1qjp6a2c.mjs +0 -1
- package/dist/chunks/detectRepository-1.1.26-pmahtt3f.mjs +0 -1
- package/dist/chunks/detection-1.1.26-1wrkcwrj.mjs +0 -1
- package/dist/chunks/diff-1.1.26-c4nqg8fb.mjs +0 -1
- package/dist/chunks/doctor-1.1.26-0jtnwy0r.mjs +0 -1
- package/dist/chunks/doctorDiagnostic-1.1.26-x38xj5dq.mjs +0 -1
- package/dist/chunks/earlyInput-1.1.26-gp0650zq.mjs +0 -1
- package/dist/chunks/effort-1.1.26-8w1e6q0y.mjs +0 -13
- package/dist/chunks/engine-1.1.26-jt09gh12.mjs +0 -1
- package/dist/chunks/envLessBridgeConfig-1.1.26-p0x7avh5.mjs +0 -1
- package/dist/chunks/envUtils-1.1.26-p89sr6v4.mjs +0 -1
- package/dist/chunks/environmentSelection-1.1.26-d8vnmed1.mjs +0 -1
- package/dist/chunks/environments-1.1.26-fz5c214j.mjs +0 -1
- package/dist/chunks/errors-1.1.26-6bzb64g6.mjs +0 -1
- package/dist/chunks/exampleCommands-1.1.26-s4bn18p7.mjs +0 -1
- package/dist/chunks/execFileNoThrow-1.1.26-xh0x0cbp.mjs +0 -1
- package/dist/chunks/exit-1.1.26-55716s6k.mjs +0 -1
- package/dist/chunks/explorer-1.1.26-969pqrwa.mjs +0 -1
- package/dist/chunks/export-1.1.26-mgccr0ea.mjs +0 -2
- package/dist/chunks/extra-usage-1.1.26-sbe56spy.mjs +0 -1
- package/dist/chunks/extra-usage-noninteractive-1.1.26-h08e3n8t.mjs +0 -1
- package/dist/chunks/fast-1.1.26-rbaqsfka.mjs +0 -1
- package/dist/chunks/feedback-1.1.26-2m81mwds.mjs +0 -14
- package/dist/chunks/firstPartyEventLogger-1.1.26-ckqh8nb4.mjs +0 -1
- package/dist/chunks/git-1.1.26-0he7ww02.mjs +0 -1
- package/dist/chunks/githubModelsCredentials-1.1.26-xj1mdstq.mjs +0 -1
- package/dist/chunks/goal-1.1.26-n5s850gv.mjs +0 -4
- package/dist/chunks/growthbook-1.1.26-ka05jsbm.mjs +0 -1
- package/dist/chunks/headless-1.1.26-q9en6pe9.mjs +0 -2
- package/dist/chunks/heapdump-1.1.26-7ewvqmvf.mjs +0 -6
- package/dist/chunks/help-1.1.26-brf53t1m.mjs +0 -1
- package/dist/chunks/hookChains-1.1.26-rkf6y8rc.mjs +0 -3
- package/dist/chunks/hooks-1.1.26-9pdav42n.mjs +0 -1
- package/dist/chunks/hooks-1.1.26-szkj02ez.mjs +0 -79
- package/dist/chunks/ide-1.1.26-m5p57hjq.mjs +0 -3
- package/dist/chunks/image-processor-napi-1.1.26-rekvc35q.mjs +0 -1
- package/dist/chunks/import-1.1.26-7gbx5jy9.mjs +0 -261
- package/dist/chunks/inboundAttachments-1.1.26-tzg5nege.mjs +0 -1
- package/dist/chunks/index-1.1.26-1xcc10z3.mjs +0 -1
- package/dist/chunks/index-1.1.26-46seym0e.mjs +0 -1
- package/dist/chunks/index-1.1.26-4qsakkwp.mjs +0 -1
- package/dist/chunks/index-1.1.26-62wb3t76.mjs +0 -5
- package/dist/chunks/index-1.1.26-7dq7zd2s.mjs +0 -2
- package/dist/chunks/index-1.1.26-924a690m.mjs +0 -1
- package/dist/chunks/index-1.1.26-9hqzzjph.mjs +0 -1
- package/dist/chunks/index-1.1.26-bmzaqft1.mjs +0 -1
- package/dist/chunks/index-1.1.26-cpb34jqj.mjs +0 -9
- package/dist/chunks/index-1.1.26-cpx6j4xt.mjs +0 -1
- package/dist/chunks/index-1.1.26-gyna59qe.mjs +0 -1
- package/dist/chunks/index-1.1.26-h45zww68.mjs +0 -30
- package/dist/chunks/index-1.1.26-matsx1ed.mjs +0 -1
- package/dist/chunks/index-1.1.26-pm334xks.mjs +0 -1
- package/dist/chunks/index-1.1.26-qrbfj1zz.mjs +0 -1
- package/dist/chunks/index-1.1.26-sh5v696c.mjs +0 -1
- package/dist/chunks/index-1.1.26-srjepzh3.mjs +0 -2
- package/dist/chunks/index-1.1.26-syyhrh9b.mjs +0 -23
- package/dist/chunks/index-1.1.26-te4885d9.mjs +0 -1
- package/dist/chunks/index-1.1.26-tyjd8na6.mjs +0 -1
- package/dist/chunks/index-1.1.26-vk1z10tp.mjs +0 -1
- package/dist/chunks/index-1.1.26-vpyv4546.mjs +0 -9
- package/dist/chunks/index-1.1.26-xc6bagza.mjs +0 -1
- package/dist/chunks/init-1.1.26-bnpznn1w.mjs +0 -1
- package/dist/chunks/initReplBridge-1.1.26-c4s4p9cb.mjs +0 -1
- package/dist/chunks/ink-1.1.26-vgbt5egw.mjs +0 -1
- package/dist/chunks/insights-1.1.26-vcx1pevy.mjs +0 -870
- package/dist/chunks/install-1.1.26-4y132asw.mjs +0 -1
- package/dist/chunks/install-github-app-1.1.26-93zf234q.mjs +0 -149
- package/dist/chunks/install-slack-app-1.1.26-mhrfx4re.mjs +0 -1
- package/dist/chunks/instrumentation-1.1.26-c4qjkj2f.mjs +0 -1
- package/dist/chunks/interactiveHelpers-1.1.26-d3arqch8.mjs +0 -1
- package/dist/chunks/keybindings-1.1.26-vn76vb0k.mjs +0 -2
- package/dist/chunks/knowledge-1.1.26-tqdt6kx8.mjs +0 -2
- package/dist/chunks/latestVersionCache-1.1.26-nefaqy0s.mjs +0 -1
- package/dist/chunks/loadAgentsDir-1.1.26-w9zj8h13.mjs +0 -1
- package/dist/chunks/loadPluginHooks-1.1.26-p32pd0zg.mjs +0 -1
- package/dist/chunks/log-1.1.26-esy3mc70.mjs +0 -1
- package/dist/chunks/main-1.1.26-mj3gcxpm.mjs +0 -1
- package/dist/chunks/managedEnv-1.1.26-z6q7c9s8.mjs +0 -1
- package/dist/chunks/mcp-1.1.26-4c7syme5.mjs +0 -17
- package/dist/chunks/mcp-1.1.26-fhs36m57.mjs +0 -1
- package/dist/chunks/mcp-1.1.26-nadsprjm.mjs +0 -4
- package/dist/chunks/mcpb-1.1.26-ek6r8msb.mjs +0 -1
- package/dist/chunks/memory-1.1.26-b3m4e86v.mjs +0 -72
- package/dist/chunks/model-1.1.26-fhssfrx1.mjs +0 -1
- package/dist/chunks/model-1.1.26-v4t85ag1.mjs +0 -2
- package/dist/chunks/node-1.1.26-y7ck63cv.mjs +0 -15
- package/dist/chunks/oauth-1.1.26-8bftajjg.mjs +0 -1
- package/dist/chunks/openaiShim-1.1.26-wvmheb4c.mjs +0 -14
- package/dist/chunks/output-style-1.1.26-rgrmrr2a.mjs +0 -1
- package/dist/chunks/package-SHMK2LJE-1.1.26-grxx0tgk.mjs +0 -1
- package/dist/chunks/parseConnectUrl-1.1.26-64n8w8aa.mjs +0 -1
- package/dist/chunks/parser-1.1.26-p8fcgcbm.mjs +0 -1
- package/dist/chunks/passes-1.1.26-65c9vjm7.mjs +0 -1
- package/dist/chunks/permissions-1.1.26-bvde1j7e.mjs +0 -1
- package/dist/chunks/permissions-1.1.26-xx4tbm19.mjs +0 -3
- package/dist/chunks/plan-1.1.26-0p7zmpya.mjs +0 -1
- package/dist/chunks/plist-1.1.26-emtpv6yq.mjs +0 -1
- package/dist/chunks/plugin-1.1.26-6mz4s6ce.mjs +0 -29
- package/dist/chunks/pluginStartupCheck-1.1.26-zsxa12d4.mjs +0 -1
- package/dist/chunks/plugins-1.1.26-z4gc0hj4.mjs +0 -9
- package/dist/chunks/preActionHook-1.1.26-zja64r0y.mjs +0 -2
- package/dist/chunks/print-1.1.26-4jbs3r8a.mjs +0 -57
- package/dist/chunks/process-1.1.26-nkvbv24g.mjs +0 -1
- package/dist/chunks/processBashCommand-1.1.26-881sdvc5.mjs +0 -1
- package/dist/chunks/processSlashCommand-1.1.26-watbp07x.mjs +0 -9
- package/dist/chunks/prompt-1.1.26-734yg5r7.mjs +0 -1
- package/dist/chunks/prompt-1.1.26-ta9d8xgm.mjs +0 -1
- package/dist/chunks/prompts-1.1.26-cacdrcnk.mjs +0 -1
- package/dist/chunks/protocolHandler-1.1.26-qfw93skn.mjs +0 -13
- package/dist/chunks/provider-1.1.26-yk3xh49r.mjs +0 -2
- package/dist/chunks/providerProfiles-1.1.26-srvwhkc8.mjs +0 -1
- package/dist/chunks/providerValidation-1.1.26-57a6s8yj.mjs +0 -6
- package/dist/chunks/rate-limit-options-1.1.26-14exf6fk.mjs +0 -1
- package/dist/chunks/registerSubcommands-1.1.26-1yddk8hw.mjs +0 -26
- package/dist/chunks/registry-1.1.26-z88679pc.mjs +0 -1
- package/dist/chunks/release-notes-1.1.26-e7dkgbnp.mjs +0 -5
- package/dist/chunks/reload-plugins-1.1.26-6r85z0m0.mjs +0 -2
- package/dist/chunks/remote-env-1.1.26-rg1652ey.mjs +0 -1
- package/dist/chunks/remoteBridgeCore-1.1.26-jmhet39g.mjs +0 -1
- package/dist/chunks/remoteSession-1.1.26-5rva0545.mjs +0 -1
- package/dist/chunks/rename-1.1.26-vp06xehr.mjs +0 -1
- package/dist/chunks/replBridgeHandle-1.1.26-cs214vs7.mjs +0 -1
- package/dist/chunks/replLauncher-1.1.26-j0wpsd4v.mjs +0 -1
- package/dist/chunks/resume-1.1.26-agfxxd17.mjs +0 -2
- package/dist/chunks/rewind-1.1.26-dr3rgj2z.mjs +0 -1
- package/dist/chunks/rootOptions-1.1.26-nc1jrtkg.mjs +0 -1
- package/dist/chunks/runWorkflowHeadless-1.1.26-4xq2d4x0.mjs +0 -10
- package/dist/chunks/sandbox-adapter-1.1.26-v5bmtrnt.mjs +0 -1
- package/dist/chunks/sandbox-toggle-1.1.26-5pxvxje1.mjs +0 -1
- package/dist/chunks/session-1.1.26-7ejzc2bx.mjs +0 -2
- package/dist/chunks/sessionDiscovery-1.1.26-n6vex16t.mjs +0 -1
- package/dist/chunks/sessionFileAccessHooks-1.1.26-q07mz5fe.mjs +0 -1
- package/dist/chunks/sessionStorage-1.1.26-3x2gtfk1.mjs +0 -1
- package/dist/chunks/settings-1.1.26-5hc0bpnb.mjs +0 -1
- package/dist/chunks/setup-1.1.26-2qatx87q.mjs +0 -12
- package/dist/chunks/sinks-1.1.26-0d001pg9.mjs +0 -1
- package/dist/chunks/skills-1.1.26-5q1xvy1e.mjs +0 -1
- package/dist/chunks/startupProfiler-1.1.26-76scq5n6.mjs +0 -1
- package/dist/chunks/startupUpdateCheck-1.1.26-jw39czgq.mjs +0 -1
- package/dist/chunks/state-1.1.26-zh2a5cb0.mjs +0 -1
- package/dist/chunks/stats-1.1.26-3yvhzgsr.mjs +0 -1
- package/dist/chunks/status-1.1.26-ey3zzjzf.mjs +0 -1
- package/dist/chunks/stickers-1.1.26-pnx0arwe.mjs +0 -1
- package/dist/chunks/subprocessEnv-1.1.26-93d936pm.mjs +0 -1
- package/dist/chunks/tasks-1.1.26-05xaegas.mjs +0 -1
- package/dist/chunks/teamHelpers-1.1.26-zn888hhw.mjs +0 -1
- package/dist/chunks/teammateModeSnapshot-1.1.26-bhkgw59h.mjs +0 -1
- package/dist/chunks/teleport-1.1.26-9m3eaa2j.mjs +0 -1
- package/dist/chunks/terminalSetup-1.1.26-p0bvd0b7.mjs +0 -1
- package/dist/chunks/theme-1.1.26-ys6mqfn7.mjs +0 -1
- package/dist/chunks/thinkback-1.1.26-v4qbcex4.mjs +0 -1
- package/dist/chunks/thinkback-play-1.1.26-6gg066vk.mjs +0 -1
- package/dist/chunks/toolPool-1.1.26-g4p6wj1v.mjs +0 -1
- package/dist/chunks/toolSearch-1.1.26-0whd6fnj.mjs +0 -1
- package/dist/chunks/tools-1.1.26-m8c4e11h.mjs +0 -1
- package/dist/chunks/trustedDevice-1.1.26-w86xceqp.mjs +0 -1
- package/dist/chunks/turndown.cjs-1.1.26-kk4sc8q3.mjs +0 -69
- package/dist/chunks/types-1.1.26-myrve966.mjs +0 -1
- package/dist/chunks/ultrareviewCommand-1.1.26-fyxh8eqb.mjs +0 -4
- package/dist/chunks/update-1.1.26-96yjt7je.mjs +0 -72
- package/dist/chunks/upgrade-1.1.26-x2geqcxm.mjs +0 -1
- package/dist/chunks/upload-1.1.26-vpwb30tf.mjs +0 -7
- package/dist/chunks/upstreamproxy-1.1.26-xe96amnx.mjs +0 -14
- package/dist/chunks/url-handler-napi-1.1.26-2v7h396d.mjs +0 -1
- package/dist/chunks/usage-1.1.26-pbyahcbc.mjs +0 -1
- package/dist/chunks/util-1.1.26-f55brgp6.mjs +0 -1
- package/dist/chunks/utils-1.1.26-ntj5p9c6.mjs +0 -1
- package/dist/chunks/vim-1.1.26-n3dckyqd.mjs +0 -1
- package/dist/chunks/watchLoop-1.1.26-shv6pr8d.mjs +0 -13
- package/dist/chunks/watcher-1.1.26-bdahcrvk.mjs +0 -1
- package/dist/chunks/wiki-1.1.26-9q9evb0p.mjs +0 -132
- package/dist/chunks/workflows-1.1.26-pv1pmcm0.mjs +0 -1
- package/dist/chunks/worktree-1.1.26-k3z8qg36.mjs +0 -1
- package/dist/chunks/worktreeModeEnabled-1.1.26-c966pdm7.mjs +0 -1
- package/dist/chunks/wrapper-1.1.26-smg8ftbk.mjs +0 -7
- /package/dist/chunks/{cli-1.1.26-t8fgt5kw.mjs → cli-1.1.27-097en7tp.mjs} +0 -0
- /package/dist/chunks/{cli-1.1.26-sgj6knz9.mjs → cli-1.1.27-5mn2zxpk.mjs} +0 -0
- /package/dist/chunks/{cli-1.1.26-rbz29dt9.mjs → cli-1.1.27-f8njyndt.mjs} +0 -0
- /package/dist/chunks/{cli-1.1.26-nqygxkhw.mjs → cli-1.1.27-sgvc7y72.mjs} +0 -0
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{p6 as H,q6 as _,r6 as Y,s6 as y}from"./cli-1.1.27-xdfkhk5m.mjs";import{D$ as M,F$ as f}from"./cli-1.1.27-48ezce33.mjs";import{Aka as F,Ala as S,Cka as b,jla as P,nla as p,xla as x}from"./cli-1.1.27-r335xv52.mjs";import{Xla as V,cma as R}from"./cli-1.1.27-0rz9qd34.mjs";import{ima as U,qma as g}from"./cli-1.1.27-t1dxp2pw.mjs";import{Vra as A,fqa as D,gqa as W}from"./cli-1.1.27-m6ne80zc.mjs";import{Mta as L}from"./cli-1.1.27-8vrv0ver.mjs";function I(){let q=D();if(q!==void 0)return q;let G=process.env.CLAUDE_CODE_WEBSOCKET_AUTH_FILE_DESCRIPTOR;if(!G){let w=process.env.CLAUDE_SESSION_INGRESS_TOKEN_FILE??H,z=Y(w,"session ingress token");return W(z),z}let Q=parseInt(G,10);if(Number.isNaN(Q))return x(`CLAUDE_CODE_WEBSOCKET_AUTH_FILE_DESCRIPTOR must be a valid file descriptor number, got: ${G}`,{level:"error"}),W(null),null;try{let w=P(),z=process.platform==="darwin"||process.platform==="freebsd"?`/dev/fd/${Q}`:`/proc/self/fd/${Q}`,X=w.readFileSync(z,{encoding:"utf8"}).trim();if(!X)return x("File descriptor contained empty token",{level:"error"}),W(null),null;return x(`Successfully read token from file descriptor ${Q}`),W(X),_(H,X,"session ingress token"),X}catch(w){x(`Failed to read token from file descriptor ${Q}: ${V(w)}`,{level:"error"});let z=process.env.CLAUDE_SESSION_INGRESS_TOKEN_FILE??H,X=Y(z,"session ingress token");return W(X),X}}function k(){let q=process.env.CLAUDE_CODE_SESSION_ACCESS_TOKEN;if(q)return q;return I()}function o(){let q=k();if(!q)return{};if(q.startsWith("sk-ant-sid")){let G={Cookie:`sessionKey=${q}`},Q=process.env.CLAUDE_CODE_ORGANIZATION_UUID;if(Q)G["X-Organization-Uuid"]=Q;return G}return{Authorization:`Bearer ${q}`}}function s(q){process.env.CLAUDE_CODE_SESSION_ACCESS_TOKEN=q}var u=L(()=>{A();y();S();R();p()});function E(){j(),K=setInterval(()=>{if(M("debug","session_keepalive_heartbeat",{refcount:J}),U(process.env.CLAUDE_CODE_REMOTE_SEND_KEEPALIVES))$?.()},C)}function v(){if(j(),$===null)return;B=setTimeout(()=>{M("info","session_idle_30s"),B=null},C)}function j(){if(B!==null)clearTimeout(B),B=null}function e(q){if($=q,J>0&&K===null)E()}function qq(){if($=null,K!==null)clearInterval(K),K=null;j()}function Gq(){if(U(process.env.CLAUDE_CODE_REMOTE_SEND_KEEPALIVES))$?.()}function Jq(){return $!==null}function Kq(q){if(J++,Z.set(q,(Z.get(q)??0)+1),J===1){if(O=Date.now(),$!==null&&K===null)E()}if(!N)N=!0,F(async()=>{M("info","session_activity_at_shutdown",{refcount:J,active:Object.fromEntries(Z),oldest_activity_ms:J>0&&O!==null?Date.now()-O:null})})}function Qq(q){if(J>0)J--;let G=(Z.get(q)??0)-1;if(G>0)Z.set(q,G);else Z.delete(q);if(J===0&&K!==null)clearInterval(K),K=null,v()}var C=30000,$=null,J=0,Z,O=null,K=null,B=null,N=!1;var m=L(()=>{b();f();g();Z=new Map});var $q;var h=L(()=>{$q={input_tokens:0,cache_creation_input_tokens:0,cache_read_input_tokens:0,output_tokens:0,output_tokens_details:{thinking_tokens:0},server_tool_use:{web_search_requests:0,web_fetch_requests:0},service_tier:"standard",cache_creation:{ephemeral_1h_input_tokens:0,ephemeral_5m_input_tokens:0},inference_geo:"",iterations:[],speed:"standard"}});
|
|
2
|
+
export{k as _W,o as $W,s as aX,u as bX,e as cX,qq as dX,Gq as eX,Jq as fX,Kq as gX,Qq as hX,m as iX,$q as jX,h as kX};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{Mta as b}from"./cli-1.1.27-8vrv0ver.mjs";import*as q from"node:child_process";import*as v from"node:crypto";import*as w from"node:fs";import*as x from"node:os";import*as z from"node:path";import*as A from"node:stream";import*as B from"node:util";var k=()=>{};
|
|
2
|
+
export{q as W_,v as X_,w as Y_,x as Z_,z as __,A as $_,B as a$,k as b$};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{ta as S,ua as R}from"./cli-1.1.27-xjabxtdd.mjs";import{za as j}from"./cli-1.1.27-hafa2nxa.mjs";import{aX as W,bX as A}from"./cli-1.1.27-pab2avnw.mjs";import{A8 as F,z8 as T}from"./cli-1.1.27-xdfkhk5m.mjs";import{Ala as P,xla as Q}from"./cli-1.1.27-r335xv52.mjs";import{Xla as z,cma as x}from"./cli-1.1.27-0rz9qd34.mjs";P();x();A();function f(G){return{write:(J)=>G.write(J),writeBatch:(J)=>G.writeBatch(J),close:()=>G.close(),isConnectedStatus:()=>G.isConnectedStatus(),getStateLabel:()=>G.getStateLabel(),setOnData:(J)=>G.setOnData(J),setOnClose:(J)=>G.setOnClose(J),setOnConnect:(J)=>G.setOnConnect(J),connect:()=>void G.connect(),getLastSequenceNum:()=>0,get droppedBatchCount(){return G.droppedBatchCount},reportState:()=>{},reportMetadata:()=>{},reportDelivery:()=>{},flush:()=>Promise.resolve()}}async function m(G){let{sessionUrl:J,ingressToken:X,sessionId:V,initialSequenceNum:_,getAuthToken:$}=G,O;if($)O=()=>{let B=$();if(!B)return{};return{Authorization:`Bearer ${B}`}};else W(X);let Y=G.epoch??await j(J,X);Q(`[bridge:repl] CCR v2: worker sessionId=${V} epoch=${Y}${G.epoch!==void 0?" (from /bridge)":" (via registerWorker)"}`);let Z=new URL(J);Z.pathname=Z.pathname.replace(/\/$/,"")+"/worker/events/stream";let L=new R(Z,{},V,void 0,_,O),q,K=new S(L,new URL(J),{getAuthHeaders:O,heartbeatIntervalMs:G.heartbeatIntervalMs,heartbeatJitterFraction:G.heartbeatJitterFraction,onEpochMismatch:()=>{Q("[bridge:repl] CCR v2: epoch superseded (409) — closing for poll-loop recovery");try{K.close(),L.close(),q?.(4090)}catch(B){Q(`[bridge:repl] CCR v2: error during epoch-mismatch cleanup: ${z(B)}`,{level:"error"})}throw Error("epoch superseded")}});L.setOnEvent((B)=>{K.reportDelivery(B.event_id,"received"),K.reportDelivery(B.event_id,"processed")});let H,E=!1,M=!1;return{write(B){return K.writeEvent(B)},async writeBatch(B){for(let N of B){if(M)break;await K.writeEvent(N)}},close(){M=!0,K.close(),L.close()},isConnectedStatus(){return E},getStateLabel(){if(L.isClosedStatus())return"closed";if(L.isConnectedStatus())return E?"connected":"init";return"connecting"},setOnData(B){L.setOnData(B)},setOnClose(B){q=B,L.setOnClose((N)=>{K.close(),B(N??4092)})},setOnConnect(B){H=B},getLastSequenceNum(){return L.getLastSequenceNum()},droppedBatchCount:0,reportState(B){K.reportState(B)},reportMetadata(B){K.reportMetadata(B)},reportDelivery(B,N){K.reportDelivery(B,N)},flush(){return K.flush()},connect(){if(!G.outboundOnly)L.connect();K.initialize(Y).then(()=>{E=!0,Q(`[bridge:repl] v2 transport ready for writes (epoch=${Y}, sse=${L.isConnectedStatus()?"open":"opening"})`),H?.()},(B)=>{Q(`[bridge:repl] CCR v2 initialize failed: ${z(B)}`,{level:"error"}),K.close(),L.close(),q?.(4091)})}}}class U{_active=!1;_pending=[];get active(){return this._active}get pendingCount(){return this._pending.length}start(){this._active=!0}end(){return this._active=!1,this._pending.splice(0)}enqueue(...G){if(!this._active)return!1;return this._pending.push(...G),!0}drop(){this._active=!1;let G=this._pending.length;return this._pending.length=0,G}deactivate(){this._active=!1}}P();F();var g={maxAttempts:5,baseDelayMs:500,jitterFraction:0.25,maxDelayMs:4000};function I(G,J,X=Math.random){let V=J.baseDelayMs*2**(G-1),_=V*J.jitterFraction*(2*X()-1);return Math.min(V+_,J.maxDelayMs)}async function b(G,J){let{label:X,logPrefix:V="[bridge]",signal:_,isRetryable:$}=J;for(let O=1;O<=J.maxAttempts;O++){let Y=await G();if(Y!==null)return Y;if($&&!$())return Q(`${V} ${X} failed permanently on attempt ${O}/${J.maxAttempts}, not retrying`),null;if(_?.aborted)return Q(`${V} ${X} aborted after attempt ${O}/${J.maxAttempts}`),null;if(O<J.maxAttempts){let Z=I(O,J);Q(`${V} ${X} failed (attempt ${O}/${J.maxAttempts}), retrying in ${Math.round(Z)}ms`),await T(Z)}}return null}
|
|
2
|
+
export{f as ma,m as na,U as oa,g as pa,b as qa};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{Zfa as P,sga as y}from"./cli-1.1.27-48ezce33.mjs";import{Mta as U}from"./cli-1.1.27-8vrv0ver.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 uY,M as vY,N as wY,Y as xY,C as yY,_ as zY,R as AY,E as BY,I as CY,f as DY,k as EY,A as FY,h as GY,b as HY,u as IY,T as JY,p as KY,m as LY,e as MY,W as NY,a as OY,s as PY,r as QY,g as RY};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{cO as Q,dO as $}from"./cli-1.1.27-w8pwj9ef.mjs";import{Dma as V,Ema as P,Fna as W,Gna as E}from"./cli-1.1.27-m6ne80zc.mjs";import{Mta as L}from"./cli-1.1.27-8vrv0ver.mjs";function Z(x,q,D,G){var H=-1,J=x==null?0:x.length;while(++H<J){var K=x[H];q(G,K,D(K),x)}return G}var M;var N=L(()=>{M=Z});function B(x,q,D,G){return Q(x,function(H,J,K){q(G,H,D(H),K)}),G}var S;var U=L(()=>{$();S=B});function I(x,q){return function(D,G){var H=V(D)?M:S,J=q?q():{};return H(D,x,W(G,2),J)}}var X;var Y=L(()=>{N();U();E();P();X=I});var R,v;var C=L(()=>{Y();R=X(function(x,q,D){x[D?0:1].push(q)},function(){return[[],[]]}),v=R});
|
|
2
|
+
export{v as Nd,C as Od};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{U_ as p,V_ as a}from"./cli-1.1.27-zgweqxf0.mjs";import{Kta as i}from"./cli-1.1.27-8vrv0ver.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 n_};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{Oi as W,Pi as v,Qi as T}from"./cli-1.1.27-jfqvck1y.mjs";import{Aja as X,Bja as C,Cja as $,Dja as F}from"./cli-1.1.27-njcbrvnc.mjs";import{Ala as B,xla as L}from"./cli-1.1.27-r335xv52.mjs";import{fma as H,qma as y}from"./cli-1.1.27-t1dxp2pw.mjs";import{Vra as j,Wna as E}from"./cli-1.1.27-m6ne80zc.mjs";import{Ysa as R,ota as N}from"./cli-1.1.27-4cjm0m5c.mjs";N();C();j();B();y();F();T();import{randomUUID as O}from"crypto";import{mkdir as U,writeFile as A}from"fs/promises";import{basename as I,join as M}from"path";var P=30000;function Q(q){L(`[bridge:inbound-attach] ${q}`)}var k=$(()=>X.object({file_uuid:X.string(),file_name:X.string()})),D=$(()=>X.array(k()));function S(q){if(typeof q!=="object"||q===null||!("file_attachments"in q))return[];let G=D().safeParse(q.file_attachments);return G.success?G.data:[]}function z(q){return I(q).replace(/[^a-zA-Z0-9._-]/g,"_")||"attachment"}function l(){return M(H(),"uploads",E())}async function x(q){let G=W();if(!G){Q("skip: no oauth token");return}let J;try{let V=`${v()}/api/oauth/files/${encodeURIComponent(q.file_uuid)}/content`,Z=await R.get(V,{headers:{Authorization:`Bearer ${G}`},responseType:"arraybuffer",timeout:P,validateStatus:()=>!0});if(Z.status!==200){Q(`fetch ${q.file_uuid} failed: status=${Z.status}`);return}J=Buffer.from(Z.data)}catch(V){Q(`fetch ${q.file_uuid} threw: ${V}`);return}let K=z(q.file_name),_=(q.file_uuid.slice(0,8)||O().slice(0,8)).replace(/[^a-zA-Z0-9_-]/g,"_"),w=l(),Y=M(w,`${_}-${K}`);try{await U(w,{recursive:!0}),await A(Y,J)}catch(V){Q(`write ${Y} failed: ${V}`);return}return Q(`resolved ${q.file_uuid} → ${Y} (${J.length} bytes)`),Y}async function f(q){if(q.length===0)return"";Q(`resolving ${q.length} attachment(s)`);let J=(await Promise.all(q.map(x))).filter((K)=>K!==void 0);if(J.length===0)return"";return J.map((K)=>`@"${K}"`).join(" ")+" "}function u(q,G){if(!G)return q;if(typeof q==="string")return G+q;let J=q.findLastIndex((K)=>K.type==="text");if(J!==-1){let K=q[J];if(K.type==="text")return[...q.slice(0,J),{...K,text:G+K.text},...q.slice(J+1)]}return[...q,{type:"text",text:G.trimEnd()}]}async function o(q,G){let J=S(q);if(J.length===0)return G;let K=await f(J);return u(G,K)}
|
|
2
|
+
export{S as Ca,f as Da,u as Ea,o as Fa};
|
|
@@ -0,0 +1,26 @@
|
|
|
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 X,S as Y,E as Z};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import{De as c,He as Eq}from"./cli-1.1.27-mqt20a61.mjs";import{$M as Lq,BM as n,Cp as t,Ep as Mq,HM as e,IM as P,Ip as i,Kp as Rq,MM as jq,NM as O,OM as qq,Op as A,QM as I,Qp as D,RM as Gq,Rp as Aq,Sp as h,Tp as S,Up as Fq,XM as Cq,_M as b,cN as Hq,cu as l,dN as Jq,du as wq,fM as v,fN as vq,gM as m,gN as y,hN as Qq,iM as Oq,iN as Xq,jN as Yq,kN as $q,lN as d,oN as Dq,yp as s,zp as Tq}from"./cli-1.1.27-w8pwj9ef.mjs";import{Qea as F,Sea as L,Sha as a,_ha as Bq,gfa as _q,lea as V,tea as Kq}from"./cli-1.1.27-48ezce33.mjs";import{jla as p,nla as xq}from"./cli-1.1.27-r335xv52.mjs";import{Wla as o,Zla as N,cma as Wq}from"./cli-1.1.27-0rz9qd34.mjs";import{Vra as Uq,aoa as f}from"./cli-1.1.27-m6ne80zc.mjs";import{Mta as Zq}from"./cli-1.1.27-8vrv0ver.mjs";import{dirname as Nq,join as u}from"path";function g(q){if(!k.includes(q))throw Error(`Invalid scope "${q}". Must be one of: ${k.join(", ")}`)}function JG(q){return k.includes(q)}function zq(q){return q==="project"||q==="local"?f():void 0}function QG(q){return F("projectSettings")?.enabledPlugins?.[q]===!0}function Vq(q){let H=q.includes("@"),G=["local","project","user"];for(let X of G){let J=F(D(X))?.enabledPlugins;if(!J)continue;for(let Y of Object.keys(J))if(H?Y===q:Y.startsWith(`${q}@`))return{pluginId:Y,scope:X}}return null}function bq(q,H){let{name:G,marketplace:X}=A(q);return H.find((J)=>{if(J.name===q||J.name===G)return!0;if(X&&J.source)return J.name===G&&J.source.includes(`@${X}`);return!1})}function yq(q){let{name:H}=A(q),G=O();if(G.plugins[q]?.length)return{pluginId:q,pluginName:H};let X=Object.keys(G.plugins).find((J)=>{let{name:Y}=A(J);return Y===H&&(G.plugins[J]?.length??0)>0});if(X)return{pluginId:X,pluginName:H};return null}function kq(q){let G=O().plugins[q];if(!G||G.length===0)return{scope:"user"};let X=f(),J=G.find((Z)=>Z.scope==="local"&&Z.projectPath===X);if(J)return{scope:J.scope,projectPath:J.projectPath};let Y=G.find((Z)=>Z.scope==="project"&&Z.projectPath===X);if(Y)return{scope:Y.scope,projectPath:Y.projectPath};let z=G.find((Z)=>Z.scope==="user");if(z)return{scope:z.scope};return{scope:G[0].scope,projectPath:G[0].projectPath}}async function XG(q,H="user"){g(H);let{name:G,marketplace:X}=A(q),J,Y,z;if(X){let $=await P(q);if($)J=$.entry,Y=X,z=$.marketplaceInstallLocation}else{let $=await n();for(let[B,K]of Object.entries($))try{let M=(await e(B)).plugins.find((R)=>R.name===G);if(M){J=M,Y=B,z=K.installLocation;break}}catch(U){a(o(U));continue}}if(!J||!Y){let $=X?`marketplace "${X}"`:"any configured marketplace";return{success:!1,message:`Plugin "${G}" not found in ${$}`}}let Z=J,x=`${Z.name}@${Y}`,Q=await Jq({pluginId:x,entry:Z,scope:H,marketplaceInstallLocation:z});if(!Q.ok)switch(Q.reason){case"local-source-no-location":return{success:!1,message:`Cannot install local plugin "${Q.pluginName}" without marketplace install location`};case"settings-write-failed":return{success:!1,message:`Failed to update settings: ${Q.message}`};case"resolution-failed":return{success:!1,message:Hq(Q.resolution)};case"blocked-by-policy":return{success:!1,message:`Plugin "${Q.pluginName}" is blocked by your organization's policy and cannot be installed`};case"dependency-blocked-by-policy":return{success:!1,message:`Plugin "${Q.pluginName}" depends on "${Q.blockedDependency}", which is blocked by your organization's policy`}}return{success:!0,message:`Successfully installed plugin: ${x} (scope: ${H})${Q.depNote}`,pluginId:x,pluginName:Z.name,scope:H}}async function YG(q,H="user",G=!0){g(H);let{enabled:X,disabled:J}=await d(),Y=[...X,...J],z=bq(q,Y),Z=D(H),x=F(Z),Q,$;if(z)Q=Object.keys(x?.enabledPlugins??{}).find((W)=>W===q||W===z.name||W.startsWith(`${z.name}@`))??(q.includes("@")?q:z.name),$=z.name;else{let W=yq(q);if(!W)return{success:!1,message:`Plugin "${q}" not found in installed plugins`};Q=W.pluginId,$=W.pluginName}let B=zq(H),U=O().plugins[Q],M=U?.find((W)=>W.scope===H&&W.projectPath===B);if(!M){let{scope:W}=kq(Q);if(W!==H&&U&&U.length>0){if(W==="project")return{success:!1,message:`Plugin "${q}" is enabled at project scope (.claudin/settings.json, shared with your team). To disable just for you: claudin plugin disable ${q} --scope local`};return{success:!1,message:`Plugin "${q}" is installed in ${W} scope, not ${H}. Use --scope ${W} to uninstall.`}}return{success:!1,message:`Plugin "${q}" is not installed in ${H} scope. Use --scope to specify the correct scope.`}}let R=M.installPath,_={...x?.enabledPlugins};_[Q]=void 0,L(Z,{enabledPlugins:_}),v(),qq(Q,H,B);let w=O().plugins[Q],j=!w||w.length===0;if(j&&R)await m(R);if(j){if(t(Q),G)await s(Q)}let C=h(Q,Y),E=S(C);return{success:!0,message:`Successfully uninstalled plugin: ${$} (scope: ${H})${E}`,pluginId:Q,pluginName:$,scope:H,reverseDependents:C.length>0?C:void 0}}async function r(q,H,G){let X=H?"enable":"disable";if(i(q)){let{error:_}=L("userSettings",{enabledPlugins:{...F("userSettings")?.enabledPlugins,[q]:H}});if(_)return{success:!1,message:`Failed to ${X} built-in plugin: ${_.message}`};v();let{name:T}=A(q);return{success:!0,message:`Successfully ${X}d built-in plugin: ${T}`,pluginId:q,pluginName:T,scope:"user"}}if(G)g(G);let J,Y,z=Vq(q);if(G)if(Y=G,z)J=z.pluginId;else if(q.includes("@"))J=q;else return{success:!1,message:`Plugin "${q}" not found in settings. Use plugin@marketplace format.`};else if(z)J=z.pluginId,Y=z.scope;else if(q.includes("@"))J=q,Y="user";else return{success:!1,message:`Plugin "${q}" not found in any editable settings scope. Use plugin@marketplace format.`};if(H&&l(J))return{success:!1,message:`Plugin "${J}" is blocked by your organization's policy and cannot be enabled`};let Z=D(Y),x=F(Z)?.enabledPlugins?.[J],Q={user:0,project:1,local:2},$=G&&z&&Q[G]>Q[z.scope];if(G&&x===void 0&&z&&z.scope!==G&&!$)return{success:!1,message:`Plugin "${q}" is installed at ${z.scope} scope, not ${G}. Use --scope ${z.scope} or omit --scope to auto-detect.`};let B=G&&!$?x===!0:c().has(J);if(H===B)return{success:!1,message:`Plugin "${q}" is already ${H?"enabled":"disabled"}${G?` at ${G} scope`:""}`};let K;if(!H){let{enabled:_,disabled:T}=await d(),w=h(J,[..._,...T]);if(w.length>0)K=w}let{error:U}=L(Z,{enabledPlugins:{...F(Z)?.enabledPlugins,[J]:H}});if(U)return{success:!1,message:`Failed to ${X} plugin: ${U.message}`};v();let{name:M}=A(J),R=S(K);return{success:!0,message:`Successfully ${X}d plugin: ${M} (scope: ${Y})${R}`,pluginId:J,pluginName:M,scope:Y,reverseDependents:K}}async function $G(q,H){return r(q,!0,H)}async function zG(q,H){return r(q,!1,H)}async function ZG(){let q=c();if(q.size===0)return{success:!0,message:"No enabled plugins to disable"};let H=[],G=[];for(let[X]of q){let J=await r(X,!1);if(J.success)H.push(X);else G.push(`${X}: ${J.message}`)}if(G.length>0)return{success:!1,message:`Disabled ${H.length} ${V(H.length,"plugin")}, ${G.length} failed:
|
|
2
|
+
${G.join(`
|
|
3
|
+
`)}`};return{success:!0,message:`Disabled ${H.length} ${V(H.length,"plugin")}`}}async function UG(q,H){let{name:G,marketplace:X}=A(q),J=X?`${G}@${X}`:q,Y=await P(q);if(!Y)return{success:!1,message:`Plugin "${G}" not found`,pluginId:J,scope:H};let{entry:z,marketplaceInstallLocation:Z}=Y,Q=I().plugins[J];if(!Q||Q.length===0)return{success:!1,message:`Plugin "${G}" is not installed`,pluginId:J,scope:H};let $=zq(H),B=Q.find((K)=>K.scope===H&&K.projectPath===$);if(!B){let K=$?`${H} (${$})`:H;return{success:!1,message:`Plugin "${G}" is not installed at scope ${K}`,pluginId:J,scope:H}}return fq({pluginId:J,pluginName:G,entry:z,marketplaceInstallLocation:Z,installation:B,scope:H,projectPath:$})}async function fq({pluginId:q,pluginName:H,entry:G,marketplaceInstallLocation:X,installation:J,scope:Y,projectPath:z}){let Z=p(),x=J.version,Q,$,B=!1,K;if(typeof G.source!=="string"){let U=await Yq(G.source,{manifest:{name:G.name}});Q=U.path,B=!0,K=U.gitCommitSha,$=await b(q,G.source,U.manifest,U.path,G.version,U.gitCommitSha)}else{let U;try{U=await Z.stat(X)}catch(T){if(N(T))return{success:!1,message:`Marketplace directory not found at ${X}`,pluginId:q,scope:Y};throw T}let M=U.isDirectory()?X:Nq(X);Q=u(M,G.source);try{await Z.stat(Q)}catch(T){if(N(T))return{success:!1,message:`Plugin source not found at ${Q}`,pluginId:q,scope:Y};throw T}let R,_=u(Q,".claude-plugin","plugin.json");try{R=await $q(_,G.name,G.source)}catch{}$=await b(q,G.source,R,Q,G.version)}try{let U=y(q,$),M=Qq(q,$);if(J.version===$||J.installPath===U||J.installPath===M)return{success:!0,message:`${H} is already at the latest version (${$}).`,pluginId:q,newVersion:$,oldVersion:x,alreadyUpToDate:!0,scope:Y};U=await Xq(Q,q,$,G);let _=J.installPath;if(Gq(q,Y,z,U,$,K),_&&_!==U){let j=I();if(!Object.values(j.plugins).some((E)=>E.some((W)=>W.installPath===_)))await m(_)}let T=z?`${Y} (${z})`:Y;return{success:!0,message:`Plugin "${H}" updated from ${x||"unknown"} to ${$} for scope ${T}. Restart to apply changes.`,pluginId:q,newVersion:$,oldVersion:x,scope:Y}}finally{if(B&&Q!==y(q,$))await Z.rm(Q,{recursive:!0,force:!0})}}var k,HG;var hq=Zq(()=>{Uq();Rq();Wq();xq();Bq();Oq();Fq();Cq();jq();Tq();Aq();vq();Dq();Mq();wq();Eq();Lq();_q();Kq();k=["user","project","local"],HG=["user","project","local","managed"]});
|
|
4
|
+
export{k as qe,HG as re,JG as se,QG as te,kq as ue,XG as ve,YG as we,$G as xe,zG as ye,ZG as ze,UG as Ae,hq as Be};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import{Dla as ZX,Gla as y8}from"./cli-1.1.27-jt1gb6nf.mjs";import{Yla as r,cma as R8}from"./cli-1.1.27-0rz9qd34.mjs";import{fma as $X,ima as NJ,qma as j8}from"./cli-1.1.27-t1dxp2pw.mjs";import{$ma as yJ,Bma as eJ,Cma as fX,Dma as fQ,Ema as T6,Fma as $Q,Gma as cX,Jma as JQ,Kma as pX,Lma as g,Mma as oJ,Nma as n,Oma as LQ,Rma as pQ,Sma as v6,Vma as l,Vra as sQ,Wma as wQ,Wna as XX,Xma as w,Yma as kQ,ana as OX,bna as h,cna as vJ,dna as tJ,ena as hX,fna as hJ,gna as wX,hna as y,ina as OJ,jna as gQ,kna as m6,nna as O,ona as GJ,rma as dQ,sma as P6,xma as qJ,yma as oX}from"./cli-1.1.27-m6ne80zc.mjs";import{Wra as SJ,Xra as CX,asa as cJ,bsa as TX,csa as HJ,dsa as J6,gsa as L,hsa as XJ,msa as LJ,nsa as zX,ssa as V,tsa as xJ}from"./cli-1.1.27-jg3tymed.mjs";import{Lta as uJ,Mta as U,Ota as N,Pta as W}from"./cli-1.1.27-8vrv0ver.mjs";function zJ({writeFn:J,flushIntervalMs:Q=1000,maxBufferSize:X=100,maxBufferBytes:$=1/0,immediateMode:Y=!1}){let Z=[],q=0,H=null,G=null;function I(){if(H)clearTimeout(H),H=null}function B(){if(G)J(G.join("")),G=null;if(Z.length===0)return;J(Z.join("")),Z=[],q=0,I()}function M(){if(!H)H=setTimeout(B,Q)}function F(){if(G){G.push(...Z),Z=[],q=0,I();return}let x=Z;Z=[],q=0,I(),G=x,setImmediate(()=>{let v=G;if(G=null,v)J(v.join(""))})}return{write(x){if(Y){J(x);return}if(Z.push(x),q+=x.length,M(),Z.length>=X||q>=$)F()},flush:B,dispose(){B()}}}var BJ=()=>{};function IJ(J){return t.add(J),()=>t.delete(J)}async function r8(){await Promise.all(Array.from(t).map((J)=>J()))}var t;var CJ=U(()=>{t=new Set});function WX(J){let Q=[],X=J.match(/^MCP server ["']([^"']+)["']/);if(X&&X[1])Q.push("mcp"),Q.push(X[1].toLowerCase());else{let Z=J.match(/^([^:[]+):/);if(Z&&Z[1])Q.push(Z[1].trim().toLowerCase())}let $=J.match(/^\[([^\]]+)]/);if($&&$[1])Q.push($[1].trim().toLowerCase());if(J.toLowerCase().includes("1p event:"))Q.push("1p");let Y=J.match(/:\s*([^:]+?)(?:\s+(?:type|mode|status|event))?:/);if(Y&&Y[1]){let Z=Y[1].trim().toLowerCase();if(Z.length<30&&!Z.includes(" "))Q.push(Z)}return Array.from(new Set(Q))}function EX(J,Q){if(!Q)return!0;if(J.length===0)return!1;if(Q.isExclusive)return!J.some((X)=>Q.exclude.includes(X));else return J.some((X)=>Q.include.includes(X))}function VJ(J,Q){if(!Q)return!0;let X=WX(J);return EX(X,Q)}var FJ;var DJ=U(()=>{xJ();FJ=V((J)=>{if(!J||J.trim()==="")return null;let Q=J.split(",").map((Z)=>Z.trim()).filter(Boolean);if(Q.length===0)return null;let X=Q.some((Z)=>Z.startsWith("!")),$=Q.some((Z)=>!Z.startsWith("!"));if(X&&$)return null;let Y=Q.map((Z)=>Z.replace(/^!/,"").toLowerCase());return{include:X?[]:Y,exclude:X?Y:[],isExclusive:X}})});function MX(J,Q){var X=-1,$=J==null?0:J.length;while(++X<$)if(Q(J[X],X,J)===!1)break;return J}var RJ;var AJ=U(()=>{RJ=MX});var BX,e;var _J=U(()=>{zX();BX=function(){try{var J=LJ(Object,"defineProperty");return J({},"",{}),J}catch(Q){}}(),e=BX});function IX(J,Q,X){if(Q=="__proto__"&&e)e(J,Q,{configurable:!0,enumerable:!0,value:X,writable:!0});else J[Q]=X}var m;var JJ=U(()=>{_J();m=IX});function VX(J,Q,X){var $=J[Q];if(!(FX.call(J,Q)&&SJ($,X))||X===void 0&&!(Q in J))m(J,Q,X)}var xX,FX,j;var QJ=U(()=>{JJ();CX();xX=Object.prototype,FX=xX.hasOwnProperty;j=VX});function DX(J,Q,X,$){var Y=!X;X||(X={});var Z=-1,q=Q.length;while(++Z<q){var H=Q[Z],G=$?$(X[H],J[H],H,X,J):void 0;if(G===void 0)G=J[H];if(Y)m(X,H,G);else j(X,H,G)}return X}var R;var k=U(()=>{QJ();JJ();R=DX});function RX(J,Q){return J&&R(Q,y(Q),J)}var wJ;var kJ=U(()=>{k();OJ();wJ=RX});function AX(J){var Q=[];if(J!=null)for(var X in Object(J))Q.push(X);return Q}var PJ;var TJ=U(()=>{PJ=AX});function SX(J){if(!L(J))return PJ(J);var Q=h(J),X=[];for(var $ in J)if(!($=="constructor"&&(Q||!_X.call(J,$))))X.push($);return X}var LX,_X,mJ;var jJ=U(()=>{XJ();vJ();TJ();LX=Object.prototype,_X=LX.hasOwnProperty;mJ=SX});function kX(J){return hJ(J)?yJ(J,!0):mJ(J)}var _;var d=U(()=>{OX();jJ();wX();_=kX});function PX(J,Q){return J&&R(Q,_(Q),J)}var dJ;var fJ=U(()=>{k();d();dJ=PX});var p={};uJ(p,{default:()=>$J});function mX(J,Q){if(Q)return J.slice();var X=J.length,$=bJ?bJ(X):new J.constructor(X);return J.copy($),$}var nJ,pJ,vX,gJ,bJ,$J;var lJ=U(()=>{TX();nJ=typeof p=="object"&&p&&!p.nodeType&&p,pJ=nJ&&typeof f=="object"&&f&&!f.nodeType&&f,vX=pJ&&pJ.exports===nJ,gJ=vX?cJ.Buffer:void 0,bJ=gJ?gJ.allocUnsafe:void 0;$J=mX});function jX(J,Q){var X=-1,$=J.length;Q||(Q=Array($));while(++X<$)Q[X]=J[X];return Q}var iJ;var rJ=U(()=>{iJ=jX});function yX(J,Q){return R(J,g(J),Q)}var sJ;var aJ=U(()=>{k();oJ();sJ=yX});var dX,b;var ZJ=U(()=>{hX();dX=tJ(Object.getPrototypeOf,Object),b=dX});var gX,bX,u;var YJ=U(()=>{fX();ZJ();oJ();pX();gX=Object.getOwnPropertySymbols,bX=!gX?JQ:function(J){var Q=[];while(J)eJ(Q,g(J)),J=b(J);return Q},u=bX});function uX(J,Q){return R(J,u(J),Q)}var QQ;var XQ=U(()=>{k();YJ();QQ=uX});function nX(J){return $Q(J,_,u)}var ZQ;var YQ=U(()=>{cX();YJ();d();ZQ=nX});function rX(J){var Q=J.length,X=new J.constructor(Q);if(Q&&typeof J[0]=="string"&&iX.call(J,"index"))X.index=J.index,X.input=J.input;return X}var lX,iX,qQ;var HQ=U(()=>{lX=Object.prototype,iX=lX.hasOwnProperty;qQ=rX});function sX(J){var Q=new J.constructor(J.byteLength);return new qJ(Q).set(new qJ(J)),Q}var S;var c=U(()=>{oX();S=sX});function aX(J,Q){var X=Q?S(J.buffer):J.buffer;return new J.constructor(X,J.byteOffset,J.byteLength)}var GQ;var KQ=U(()=>{c();GQ=aX});function eX(J){var Q=new J.constructor(J.source,tX.exec(J));return Q.lastIndex=J.lastIndex,Q}var tX,UQ;var NQ=U(()=>{tX=/\w*$/;UQ=eX});function Q6(J){return EQ?Object(EQ.call(J)):{}}var WQ,EQ,MQ;var zQ=U(()=>{J6();WQ=HJ?HJ.prototype:void 0,EQ=WQ?WQ.valueOf:void 0;MQ=Q6});function X6(J,Q){var X=Q?S(J.buffer):J.buffer;return new J.constructor(X,J.byteOffset,J.length)}var BQ;var IQ=U(()=>{c();BQ=X6});function D6(J,Q,X){var $=J.constructor;switch(Q){case N6:return S(J);case $6:case Z6:return new $(+J);case W6:return GQ(J,X);case E6:case M6:case z6:case B6:case I6:case C6:case x6:case F6:case V6:return BQ(J,X);case Y6:return new $;case q6:case K6:return new $(J);case H6:return UQ(J);case G6:return new $;case U6:return MQ(J)}}var $6="[object Boolean]",Z6="[object Date]",Y6="[object Map]",q6="[object Number]",H6="[object RegExp]",G6="[object Set]",K6="[object String]",U6="[object Symbol]",N6="[object ArrayBuffer]",W6="[object DataView]",E6="[object Float32Array]",M6="[object Float64Array]",z6="[object Int8Array]",B6="[object Int16Array]",I6="[object Int32Array]",C6="[object Uint8Array]",x6="[object Uint8ClampedArray]",F6="[object Uint16Array]",V6="[object Uint32Array]",CQ;var xQ=U(()=>{c();KQ();NQ();zQ();IQ();CQ=D6});var FQ,R6,VQ;var DQ=U(()=>{XJ();FQ=Object.create,R6=function(){function J(){}return function(Q){if(!L(Q))return{};if(FQ)return FQ(Q);J.prototype=Q;var X=new J;return J.prototype=void 0,X}}(),VQ=R6});function A6(J){return typeof J.constructor=="function"&&!h(J)?VQ(b(J)):{}}var RQ;var AQ=U(()=>{DQ();ZJ();vJ();RQ=A6});function _6(J){return n(J)&&O(J)==L6}var L6="[object Map]",_Q;var SQ=U(()=>{GJ();LQ();_Q=_6});var OQ,S6,PQ;var TQ=U(()=>{SQ();wQ();kQ();OQ=w&&w.isMap,S6=OQ?l(OQ):_Q,PQ=S6});function w6(J){return n(J)&&O(J)==O6}var O6="[object Set]",vQ;var mQ=U(()=>{GJ();LQ();vQ=w6});var jQ,k6,yQ;var hQ=U(()=>{mQ();wQ();kQ();jQ=w&&w.isSet,k6=jQ?l(jQ):vQ,yQ=k6});function i(J,Q,X,$,Y,Z){var q,H=Q&j6,G=Q&y6,I=Q&h6;if(X)q=Y?X(J,$,Y,Z):X(J);if(q!==void 0)return q;if(!L(J))return J;var B=fQ(J);if(B){if(q=qQ(J),!H)return iJ(J,q)}else{var M=O(J),F=M==uQ||M==b6;if(pQ(J))return $J(J,H);if(M==cQ||M==bQ||F&&!Y){if(q=G||F?{}:RQ(J),!H)return G?QQ(J,dJ(q,J)):sJ(J,wJ(q,J))}else{if(!z[M])return Y?J:{};q=CQ(J,M,H)}}Z||(Z=new dQ);var x=Z.get(J);if(x)return x;if(Z.set(J,q),yQ(J))J.forEach(function(D){q.add(i(D,Q,X,D,J,Z))});else if(PQ(J))J.forEach(function(D,A){q.set(A,i(D,Q,X,A,J,Z))});var v=I?G?ZQ:gQ:G?_:y,MJ=B?void 0:v(J);return RJ(MJ||J,function(D,A){if(MJ)A=D,D=J[A];j(q,A,i(D,Q,X,A,J,Z))}),q}var j6=1,y6=2,h6=4,bQ="[object Arguments]",d6="[object Array]",f6="[object Boolean]",p6="[object Date]",g6="[object Error]",uQ="[object Function]",b6="[object GeneratorFunction]",u6="[object Map]",c6="[object Number]",cQ="[object Object]",n6="[object RegExp]",l6="[object Set]",i6="[object String]",r6="[object Symbol]",o6="[object WeakMap]",s6="[object ArrayBuffer]",a6="[object DataView]",t6="[object Float32Array]",e6="[object Float64Array]",J8="[object Int8Array]",Q8="[object Int16Array]",X8="[object Int32Array]",$8="[object Uint8Array]",Z8="[object Uint8ClampedArray]",Y8="[object Uint16Array]",q8="[object Uint32Array]",z,nQ;var lQ=U(()=>{P6();AJ();QJ();kJ();fJ();lJ();rJ();aJ();XQ();m6();YQ();GJ();HQ();xQ();AQ();T6();v6();TQ();XJ();hQ();OJ();d();z={};z[bQ]=z[d6]=z[s6]=z[a6]=z[f6]=z[p6]=z[t6]=z[e6]=z[J8]=z[Q8]=z[X8]=z[u6]=z[c6]=z[cQ]=z[n6]=z[l6]=z[i6]=z[r6]=z[$8]=z[Z8]=z[Y8]=z[q8]=!0;z[g6]=z[uQ]=z[o6]=!1;nQ=i});function K8(J){return nQ(J,H8|G8)}var H8=1,G8=4,iQ;var rQ=U(()=>{lQ();iQ=K8});var V8={};uJ(V8,{writeFileSync_DEPRECATED:()=>F8,slowLogging:()=>E,jsonStringify:()=>KJ,jsonParse:()=>I8,cloneDeep:()=>x8,clone:()=>C8,callerFrame:()=>M8,SLOW_OPERATION_THRESHOLD_MS:()=>E8});import{closeSync as U8,writeFileSync as oQ,fsyncSync as N8,openSync as W8}from"fs";function M8(J){if(!J)return"";for(let Q of J.split(`
|
|
2
|
+
`)){if(Q.includes("slowOperations"))continue;let X=Q.match(/([^/\\]+?):(\d+):\d+\)?$/);if(X)return` @ ${X[1]}:${X[2]}`}return""}function B8(){return z8}function KJ(J,Q,X){let Y=[];try{const $=N(Y,E`JSON.stringify(${J})`,0);return JSON.stringify(J,Q,X)}catch(Z){var q=Z,H=1}finally{W(Y,q,H)}}function C8(J,Q){let $=[];try{const X=N($,E`structuredClone(${J})`,0);return structuredClone(J,Q)}catch(Y){var Z=Y,q=1}finally{W($,Z,q)}}function x8(J){let X=[];try{const Q=N(X,E`cloneDeep(${J})`,0);return iQ(J)}catch($){var Y=$,Z=1}finally{W(X,Y,Z)}}function F8(J,Q,X){let Z=[];try{const $=N(Z,E`fs.writeFileSync(${J}, ${Q})`,0);let Y=X!==null&&typeof X==="object"&&"flush"in X&&X.flush===!0;if(Y){let I=typeof X==="object"&&"encoding"in X?X.encoding:void 0,B=typeof X==="object"&&"mode"in X?X.mode:void 0,M;try{M=W8(J,"w",B),oQ(M,Q,{encoding:I??void 0}),N8(M)}finally{if(M!==void 0)U8(M)}}else oQ(J,Q,X)}catch(q){var H=q,G=1}finally{W(Z,H,G)}}var E8,z8,E,I8=(J,Q)=>{let $=[];try{const X=N($,E`JSON.parse(${J})`,0);return typeof Q>"u"?JSON.parse(J):JSON.parse(J,Q)}catch(Y){var Z=Y,q=1}finally{W($,Z,q)}};var UJ=U(()=>{rQ();sQ();aQ();E8=(()=>{let J=process.env.CLAUDIN_SLOW_OPERATION_THRESHOLD_MS;if(J!==void 0){let Q=Number(J);if(!Number.isNaN(Q)&&Q>=0)return Q}return 1/0})();z8={[Symbol.dispose](){}};E=B8});import*as K from"fs";import{mkdir as A8,open as o,readdir as L8,readFile as tQ,copyFile as _8,rename as S8,rmdir as O8,rm as w8,stat as k8,unlink as P8}from"fs/promises";import{homedir as eQ}from"os";import*as C from"path";function JX(J,Q){if(Q.startsWith("//")||Q.startsWith("\\\\"))return{resolvedPath:Q,isSymlink:!1,isCanonical:!1};try{let X=J.lstatSync(Q);if(X.isFIFO()||X.isSocket()||X.isCharacterDevice()||X.isBlockDevice())return{resolvedPath:Q,isSymlink:!1,isCanonical:!1};let $=J.realpathSync(Q);return{resolvedPath:$,isSymlink:$!==Q,isCanonical:!0}}catch(X){return{resolvedPath:Q,isSymlink:!1,isCanonical:!1}}}function H1(J,Q,X){let{resolvedPath:$}=JX(J,Q);if(X.has($))return!0;return X.add($),!1}function T8(J,Q){let X=Q,$=[];while(X!==C.dirname(X)){let Y;try{Y=J.lstatSync(X)}catch{$.unshift(C.basename(X)),X=C.dirname(X);continue}if(Y.isSymbolicLink())try{let Z=J.realpathSync(X);return $.length===0?Z:C.join(Z,...$)}catch{let Z=J.readlinkSync(X),q=C.isAbsolute(Z)?Z:C.resolve(C.dirname(X),Z);return $.length===0?q:C.join(q,...$)}try{let Z=J.realpathSync(X);if(Z!==X)return $.length===0?Z:C.join(Z,...$)}catch{}return}return}function G1(J){let Q=J;if(Q==="~")Q=eQ().normalize("NFC");else if(Q.startsWith("~/"))Q=C.join(eQ().normalize("NFC"),Q.slice(2));let X=new Set,$=s();if(X.add(Q),Q.startsWith("//")||Q.startsWith("\\\\"))return Array.from(X);try{let q=Q,H=new Set,G=40;for(let I=0;I<G;I++){if(H.has(q))break;if(H.add(q),!$.existsSync(q)){if(q===Q){let x=T8($,Q);if(x!==void 0)X.add(x)}break}let B=$.lstatSync(q);if(B.isFIFO()||B.isSocket()||B.isCharacterDevice()||B.isBlockDevice())break;if(!B.isSymbolicLink())break;let M=$.readlinkSync(q),F=C.isAbsolute(M)?M:C.resolve(C.dirname(q),M);X.add(F),q=F}}catch{}let{resolvedPath:Y,isSymlink:Z}=JX($,Q);if(Z&&Y!==Q)X.add(Y);return Array.from(X)}function s(){return m8}async function K1(J,Q,X){let G=[];try{const $=N(G,await o(J,"r"),1);let Y=(await $.stat()).size;if(Y<=Q)return null;let Z=Math.min(Y-Q,X);let q=Buffer.allocUnsafe(Z);let H=0;while(H<Z){let{bytesRead:x}=await $.read(q,H,Z-H,Q+H);if(x===0)break;H+=x}return{content:q.toString("utf8",0,H),bytesRead:H,bytesTotal:Y}}catch(I){var B=I,M=1}finally{var F=W(G,B,M);F&&await F}}async function U1(J,Q){let G=[];try{const X=N(G,await o(J,"r"),1);let $=(await X.stat()).size;if($===0)return{content:"",bytesRead:0,bytesTotal:0};let Y=Math.max(0,$-Q);let Z=$-Y;let q=Buffer.allocUnsafe(Z);let H=0;while(H<Z){let{bytesRead:x}=await X.read(q,H,Z-H,Y+H);if(x===0)break;H+=x}return{content:q.toString("utf8",0,H),bytesRead:H,bytesTotal:$}}catch(I){var B=I,M=1}finally{var F=W(G,B,M);F&&await F}}async function*N1(J){let X=await o(J,"r");try{let Y=(await X.stat()).size,Z=Buffer.alloc(0),q=Buffer.alloc(4096);while(Y>0){let H=Math.min(4096,Y);Y-=H,await X.read(q,0,H,Y);let G=Buffer.concat([q.subarray(0,H),Z]),I=G.indexOf(10);if(I===-1){Z=G;continue}Z=Buffer.from(G.subarray(0,I));let B=G.toString("utf8",I+1).split(`
|
|
3
|
+
`);for(let M=B.length-1;M>=0;M--){let F=B[M];if(F)yield F}}if(Z.length>0)yield Z.toString("utf8")}finally{await X.close()}}var v8,m8;var QX=U(()=>{R8();UJ();v8={cwd(){return process.cwd()},existsSync(J){let X=[];try{const Q=N(X,E`fs.existsSync(${J})`,0);return K.existsSync(J)}catch($){var Y=$,Z=1}finally{W(X,Y,Z)}},async stat(J){return k8(J)},async readdir(J){return L8(J,{withFileTypes:!0})},async unlink(J){return P8(J)},async rmdir(J){return O8(J)},async rm(J,Q){return w8(J,Q)},async mkdir(J,Q){try{await A8(J,{recursive:!0,...Q})}catch(X){if(r(X)!=="EEXIST")throw X}},async readFile(J,Q){return tQ(J,{encoding:Q.encoding})},async rename(J,Q){return S8(J,Q)},async copyFile(J,Q){let $=[];try{const X=N($,E`fs.copyFile(${J} → ${Q})`,0);return _8(J,Q)}catch(Y){var Z=Y,q=1}finally{W($,Z,q)}},statSync(J){let X=[];try{const Q=N(X,E`fs.statSync(${J})`,0);return K.statSync(J)}catch($){var Y=$,Z=1}finally{W(X,Y,Z)}},lstatSync(J){let X=[];try{const Q=N(X,E`fs.lstatSync(${J})`,0);return K.lstatSync(J)}catch($){var Y=$,Z=1}finally{W(X,Y,Z)}},readFileSync(J,Q){let $=[];try{const X=N($,E`fs.readFileSync(${J})`,0);return K.readFileSync(J,{encoding:Q.encoding})}catch(Y){var Z=Y,q=1}finally{W($,Z,q)}},readFileBytesSync(J){let X=[];try{const Q=N(X,E`fs.readFileBytesSync(${J})`,0);return K.readFileSync(J)}catch($){var Y=$,Z=1}finally{W(X,Y,Z)}},readSync(J,Q){let Y=[];try{const X=N(Y,E`fs.readSync(${J}, ${Q.length} bytes)`,0);let $=void 0;try{$=K.openSync(J,"r");let G=Buffer.alloc(Q.length),I=K.readSync($,G,0,Q.length,0);return{buffer:G,bytesRead:I}}finally{if($)K.closeSync($)}}catch(Z){var q=Z,H=1}finally{W(Y,q,H)}},appendFileSync(J,Q,X){let Y=[];try{const $=N(Y,E`fs.appendFileSync(${J}, ${Q.length} chars)`,0);if(X?.mode!==void 0)try{let G=K.openSync(J,"ax",X.mode);try{K.appendFileSync(G,Q)}finally{K.closeSync(G)}return}catch(G){if(r(G)!=="EEXIST")throw G}K.appendFileSync(J,Q)}catch(Z){var q=Z,H=1}finally{W(Y,q,H)}},copyFileSync(J,Q){let $=[];try{const X=N($,E`fs.copyFileSync(${J} → ${Q})`,0);K.copyFileSync(J,Q)}catch(Y){var Z=Y,q=1}finally{W($,Z,q)}},unlinkSync(J){let X=[];try{const Q=N(X,E`fs.unlinkSync(${J})`,0);K.unlinkSync(J)}catch($){var Y=$,Z=1}finally{W(X,Y,Z)}},renameSync(J,Q){let $=[];try{const X=N($,E`fs.renameSync(${J} → ${Q})`,0);K.renameSync(J,Q)}catch(Y){var Z=Y,q=1}finally{W($,Z,q)}},linkSync(J,Q){let $=[];try{const X=N($,E`fs.linkSync(${J} → ${Q})`,0);K.linkSync(J,Q)}catch(Y){var Z=Y,q=1}finally{W($,Z,q)}},symlinkSync(J,Q,X){let Y=[];try{const $=N(Y,E`fs.symlinkSync(${J} → ${Q})`,0);K.symlinkSync(J,Q,X)}catch(Z){var q=Z,H=1}finally{W(Y,q,H)}},readlinkSync(J){let X=[];try{const Q=N(X,E`fs.readlinkSync(${J})`,0);return K.readlinkSync(J)}catch($){var Y=$,Z=1}finally{W(X,Y,Z)}},realpathSync(J){let X=[];try{const Q=N(X,E`fs.realpathSync(${J})`,0);return K.realpathSync(J).normalize("NFC")}catch($){var Y=$,Z=1}finally{W(X,Y,Z)}},mkdirSync(J,Q){let Y=[];try{const X=N(Y,E`fs.mkdirSync(${J})`,0);let $={recursive:!0};if(Q?.mode!==void 0)$.mode=Q.mode;try{K.mkdirSync(J,$)}catch(G){if(r(G)!=="EEXIST")throw G}}catch(Z){var q=Z,H=1}finally{W(Y,q,H)}},readdirSync(J){let X=[];try{const Q=N(X,E`fs.readdirSync(${J})`,0);return K.readdirSync(J,{withFileTypes:!0})}catch($){var Y=$,Z=1}finally{W(X,Y,Z)}},readdirStringSync(J){let X=[];try{const Q=N(X,E`fs.readdirStringSync(${J})`,0);return K.readdirSync(J)}catch($){var Y=$,Z=1}finally{W(X,Y,Z)}},isDirEmptySync(J){let $=[];try{const Q=N($,E`fs.isDirEmptySync(${J})`,0);let X=this.readdirSync(J);return X.length===0}catch(Y){var Z=Y,q=1}finally{W($,Z,q)}},rmdirSync(J){let X=[];try{const Q=N(X,E`fs.rmdirSync(${J})`,0);K.rmdirSync(J)}catch($){var Y=$,Z=1}finally{W(X,Y,Z)}},rmSync(J,Q){let $=[];try{const X=N($,E`fs.rmSync(${J})`,0);K.rmSync(J,Q)}catch(Y){var Z=Y,q=1}finally{W($,Z,q)}},createWriteStream(J){return K.createWriteStream(J)},async readFileBytes(J,Q){if(Q===void 0)return tQ(J);let X=await o(J,"r");try{let{size:$}=await X.stat(),Y=Math.min($,Q),Z=Buffer.allocUnsafe(Y),q=0;while(q<Y){let{bytesRead:H}=await X.read(Z,q,Y-q,q);if(H===0)break;q+=H}return q<Y?Z.subarray(0,q):Z}finally{await X.close()}}},m8=v8});import{appendFile as h8,mkdir as d8,symlink as f8,unlink as p8}from"fs/promises";import{dirname as YX,join as qX}from"path";function L1(){let J=T();return HX=!0,T.cache.clear?.(),J}function u8(J){if(!T())return!1;if(typeof process>"u"||typeof process.versions>"u"||typeof process.versions.node>"u")return!1;let Q=b8();return VJ(J,Q)}function _1(J){EJ=J}function S1(){return EJ}async function c8(J,Q,X,$){if(J)await d8(Q,{recursive:!0}).catch(()=>{});await h8(X,$),NX()}function n8(){}function l8(){if(!P){let J=null;P=zJ({writeFn:(Q)=>{let X=UX(),$=YX(X),Y=J!==$;if(J=$,T()){if(Y)try{s().mkdirSync($)}catch{}s().appendFileSync(X,Q),NX();return}a=a.then(c8.bind(null,Y,$,X,Q)).catch(n8)},flushIntervalMs:1000,maxBufferSize:100,immediateMode:T()}),IJ(async()=>{P?.dispose(),await a})}return P}async function O1(){P?.flush(),await a}function D8(J,{level:Q}={level:"debug"}){if(WJ[Q]<WJ[g8()])return;if(!u8(J))return;if(EJ&&J.includes(`
|
|
4
|
+
`))J=KJ(J);let $=`${new Date().toISOString()} [${Q.toUpperCase()}] ${J.trim()}
|
|
5
|
+
`;if(GX()){ZX($);return}l8().write($)}function UX(){return KX()??process.env.CLAUDIN_DEBUG_LOGS_DIR??qX($X(),"debug",`${XX()}.txt`)}function w1(J,Q){}var WJ,g8,HX=!1,T,b8,GX,KX,EJ=!1,P=null,a,NX;var aQ=U(()=>{xJ();sQ();BJ();CJ();DJ();j8();QX();y8();UJ();WJ={verbose:0,debug:1,info:2,warn:3,error:4},g8=V(()=>{let J=process.env.CLAUDIN_DEBUG_LOG_LEVEL?.toLowerCase().trim();if(J&&Object.hasOwn(WJ,J))return J;return"debug"}),T=V(()=>{return HX||NJ(process.env.DEBUG)||NJ(process.env.DEBUG_SDK)||process.argv.includes("--debug")||process.argv.includes("-d")||GX()||process.argv.some((J)=>J.startsWith("--debug="))||KX()!==null});b8=V(()=>{let J=process.argv.find((X)=>X.startsWith("--debug="));if(!J)return null;let Q=J.substring(8);return FJ(Q)}),GX=V(()=>{return process.argv.includes("--debug-to-stderr")||process.argv.includes("-D")}),KX=V(()=>{for(let J=0;J<process.argv.length;J++){let Q=process.argv[J];if(Q.startsWith("--debug-file="))return Q.substring(13);if(Q==="--debug-file"&&J+1<process.argv.length)return process.argv[J+1]}return null});a=Promise.resolve();NX=V(async()=>{try{let J=UX(),Q=YX(J),X=qX(Q,"latest");await p8(X).catch(()=>{}),await f8(J,X)}catch{}})});
|
|
6
|
+
export{zJ as yka,BJ as zka,IJ as Aka,r8 as Bka,CJ as Cka,e as Dka,_J as Eka,m as Fka,JJ as Gka,j as Hka,QJ as Ika,R as Jka,k as Kka,_ as Lka,d as Mka,$J as Nka,lJ as Oka,iJ as Pka,rJ as Qka,b as Rka,ZJ as Ska,ZQ as Tka,YQ as Uka,BQ as Vka,IQ as Wka,RQ as Xka,AQ as Yka,nQ as Zka,lQ as _ka,E as $ka,KJ as ala,I8 as bla,C8 as cla,F8 as dla,V8 as ela,UJ as fla,JX as gla,H1 as hla,G1 as ila,s as jla,K1 as kla,U1 as lla,N1 as mla,QX as nla,g8 as ola,T as pla,L1 as qla,b8 as rla,GX as sla,KX as tla,_1 as ula,S1 as vla,O1 as wla,D8 as xla,UX as yla,w1 as zla,aQ as Ala};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import{A_ as hs,B_ as k,C_ as ur,D_ as Qc,E_ as Bc,F_ as ra,G_ as Xc,H_ as Yc,I_ as Zc,J_ as Jc,K_ as el,L_ as Hc,M_ as cr,N_ as Cc,O_ as Ts,P_ as gl,p_ as nt,q_ as hl,r_ as bl,s_ as ml,t_ as fn,u_ as $c,v_ as fu,w_ as Al,x_ as ys,y_ as El,z_ as st}from"./cli-1.1.27-hs6hv3bh.mjs";import{Q_ as ie}from"./cli-1.1.27-d5q76t7c.mjs";import{T_ as kc,U_ as Le}from"./cli-1.1.27-zgweqxf0.mjs";import{Ata as Vc}from"./cli-1.1.27-7hws4y92.mjs";import{Cta as Fe,Dta as ve,Gta as De,Hta as ee}from"./cli-1.1.27-tc4b7enb.mjs";import{Kta as E,Nta as Bs}from"./cli-1.1.27-8vrv0ver.mjs";var _t=E((S)=>{Object.defineProperty(S,"__esModule",{value:!0});S.resolveHttpHandlerRuntimeConfig=S.getHttpHandlerExtensionConfiguration=S.isValidHostname=S.HttpResponse=S.HttpRequest=S.Fields=S.Field=void 0;var N=ee();Object.defineProperty(S,"Field",{enumerable:!0,get:function(){return N.Field}});Object.defineProperty(S,"Fields",{enumerable:!0,get:function(){return N.Fields}});Object.defineProperty(S,"HttpRequest",{enumerable:!0,get:function(){return N.HttpRequest}});Object.defineProperty(S,"HttpResponse",{enumerable:!0,get:function(){return N.HttpResponse}});Object.defineProperty(S,"isValidHostname",{enumerable:!0,get:function(){return N.isValidHostname}});Object.defineProperty(S,"getHttpHandlerExtensionConfiguration",{enumerable:!0,get:function(){return N.getHttpHandlerExtensionConfiguration}});Object.defineProperty(S,"resolveHttpHandlerRuntimeConfig",{enumerable:!0,get:function(){return N.resolveHttpHandlerRuntimeConfig}})});var Ot=E((c)=>{Object.defineProperty(c,"__esModule",{value:!0});c.createAggregatedClient=c.convertMap=c._json=c.ServiceException=c.SENSITIVE_STRING=c.NoOpLogger=c.Command=c.Client=c.strictParseShort=c.strictParseLong=c.strictParseInt32=c.strictParseInt=c.strictParseFloat32=c.strictParseFloat=c.strictParseDouble=c.strictParseByte=c.splitHeader=c.splitEvery=c.quoteHeader=c.parseRfc7231DateTime=c.parseRfc3339DateTimeWithOffset=c.parseRfc3339DateTime=c.parseEpochTimestamp=c.parseBoolean=c.nv=c.logger=c.limitedParseFloat32=c.limitedParseFloat=c.limitedParseDouble=c.handleFloat=c.generateIdempotencyToken=c.expectUnion=c.expectString=c.expectShort=c.expectObject=c.expectNumber=c.expectNonNull=c.expectLong=c.expectInt32=c.expectInt=c.expectFloat32=c.expectByte=c.expectBoolean=c.dateToUtcString=c.copyDocumentWithTransform=c._parseRfc7231DateTime=c._parseRfc3339DateTimeWithOffset=c._parseEpochTimestamp=c.NumericValue=c.LazyJsonString=void 0;c.resolvedPath=c.extendedEncodeURIComponent=c.collectBody=c.withBaseException=c.throwDefaultError=c.take=c.serializeFloat=c.serializeDateTime=c.resolveDefaultRuntimeConfig=c.map=c.loadConfigsForDefaultMode=c.isSerializableHeaderValue=c.getValueFromTextNode=c.getDefaultExtensionConfiguration=c.getDefaultClientConfiguration=c.getArrayIfSingleItem=c.emitWarningIfUnsupportedVersion=c.decorateServiceException=void 0;var p=De();Object.defineProperty(c,"LazyJsonString",{enumerable:!0,get:function(){return p.LazyJsonString}});Object.defineProperty(c,"NumericValue",{enumerable:!0,get:function(){return p.NumericValue}});Object.defineProperty(c,"_parseEpochTimestamp",{enumerable:!0,get:function(){return p._parseEpochTimestamp}});Object.defineProperty(c,"_parseRfc3339DateTimeWithOffset",{enumerable:!0,get:function(){return p._parseRfc3339DateTimeWithOffset}});Object.defineProperty(c,"_parseRfc7231DateTime",{enumerable:!0,get:function(){return p._parseRfc7231DateTime}});Object.defineProperty(c,"copyDocumentWithTransform",{enumerable:!0,get:function(){return p.copyDocumentWithTransform}});Object.defineProperty(c,"dateToUtcString",{enumerable:!0,get:function(){return p.dateToUtcString}});Object.defineProperty(c,"expectBoolean",{enumerable:!0,get:function(){return p.expectBoolean}});Object.defineProperty(c,"expectByte",{enumerable:!0,get:function(){return p.expectByte}});Object.defineProperty(c,"expectFloat32",{enumerable:!0,get:function(){return p.expectFloat32}});Object.defineProperty(c,"expectInt",{enumerable:!0,get:function(){return p.expectInt}});Object.defineProperty(c,"expectInt32",{enumerable:!0,get:function(){return p.expectInt32}});Object.defineProperty(c,"expectLong",{enumerable:!0,get:function(){return p.expectLong}});Object.defineProperty(c,"expectNonNull",{enumerable:!0,get:function(){return p.expectNonNull}});Object.defineProperty(c,"expectNumber",{enumerable:!0,get:function(){return p.expectNumber}});Object.defineProperty(c,"expectObject",{enumerable:!0,get:function(){return p.expectObject}});Object.defineProperty(c,"expectShort",{enumerable:!0,get:function(){return p.expectShort}});Object.defineProperty(c,"expectString",{enumerable:!0,get:function(){return p.expectString}});Object.defineProperty(c,"expectUnion",{enumerable:!0,get:function(){return p.expectUnion}});Object.defineProperty(c,"generateIdempotencyToken",{enumerable:!0,get:function(){return p.generateIdempotencyToken}});Object.defineProperty(c,"handleFloat",{enumerable:!0,get:function(){return p.handleFloat}});Object.defineProperty(c,"limitedParseDouble",{enumerable:!0,get:function(){return p.limitedParseDouble}});Object.defineProperty(c,"limitedParseFloat",{enumerable:!0,get:function(){return p.limitedParseFloat}});Object.defineProperty(c,"limitedParseFloat32",{enumerable:!0,get:function(){return p.limitedParseFloat32}});Object.defineProperty(c,"logger",{enumerable:!0,get:function(){return p.logger}});Object.defineProperty(c,"nv",{enumerable:!0,get:function(){return p.nv}});Object.defineProperty(c,"parseBoolean",{enumerable:!0,get:function(){return p.parseBoolean}});Object.defineProperty(c,"parseEpochTimestamp",{enumerable:!0,get:function(){return p.parseEpochTimestamp}});Object.defineProperty(c,"parseRfc3339DateTime",{enumerable:!0,get:function(){return p.parseRfc3339DateTime}});Object.defineProperty(c,"parseRfc3339DateTimeWithOffset",{enumerable:!0,get:function(){return p.parseRfc3339DateTimeWithOffset}});Object.defineProperty(c,"parseRfc7231DateTime",{enumerable:!0,get:function(){return p.parseRfc7231DateTime}});Object.defineProperty(c,"quoteHeader",{enumerable:!0,get:function(){return p.quoteHeader}});Object.defineProperty(c,"splitEvery",{enumerable:!0,get:function(){return p.splitEvery}});Object.defineProperty(c,"splitHeader",{enumerable:!0,get:function(){return p.splitHeader}});Object.defineProperty(c,"strictParseByte",{enumerable:!0,get:function(){return p.strictParseByte}});Object.defineProperty(c,"strictParseDouble",{enumerable:!0,get:function(){return p.strictParseDouble}});Object.defineProperty(c,"strictParseFloat",{enumerable:!0,get:function(){return p.strictParseFloat}});Object.defineProperty(c,"strictParseFloat32",{enumerable:!0,get:function(){return p.strictParseFloat32}});Object.defineProperty(c,"strictParseInt",{enumerable:!0,get:function(){return p.strictParseInt}});Object.defineProperty(c,"strictParseInt32",{enumerable:!0,get:function(){return p.strictParseInt32}});Object.defineProperty(c,"strictParseLong",{enumerable:!0,get:function(){return p.strictParseLong}});Object.defineProperty(c,"strictParseShort",{enumerable:!0,get:function(){return p.strictParseShort}});var A=ve();Object.defineProperty(c,"Client",{enumerable:!0,get:function(){return A.Client}});Object.defineProperty(c,"Command",{enumerable:!0,get:function(){return A.Command}});Object.defineProperty(c,"NoOpLogger",{enumerable:!0,get:function(){return A.NoOpLogger}});Object.defineProperty(c,"SENSITIVE_STRING",{enumerable:!0,get:function(){return A.SENSITIVE_STRING}});Object.defineProperty(c,"ServiceException",{enumerable:!0,get:function(){return A.ServiceException}});Object.defineProperty(c,"_json",{enumerable:!0,get:function(){return A._json}});Object.defineProperty(c,"convertMap",{enumerable:!0,get:function(){return A.convertMap}});Object.defineProperty(c,"createAggregatedClient",{enumerable:!0,get:function(){return A.createAggregatedClient}});Object.defineProperty(c,"decorateServiceException",{enumerable:!0,get:function(){return A.decorateServiceException}});Object.defineProperty(c,"emitWarningIfUnsupportedVersion",{enumerable:!0,get:function(){return A.emitWarningIfUnsupportedVersion}});Object.defineProperty(c,"getArrayIfSingleItem",{enumerable:!0,get:function(){return A.getArrayIfSingleItem}});Object.defineProperty(c,"getDefaultClientConfiguration",{enumerable:!0,get:function(){return A.getDefaultClientConfiguration}});Object.defineProperty(c,"getDefaultExtensionConfiguration",{enumerable:!0,get:function(){return A.getDefaultExtensionConfiguration}});Object.defineProperty(c,"getValueFromTextNode",{enumerable:!0,get:function(){return A.getValueFromTextNode}});Object.defineProperty(c,"isSerializableHeaderValue",{enumerable:!0,get:function(){return A.isSerializableHeaderValue}});Object.defineProperty(c,"loadConfigsForDefaultMode",{enumerable:!0,get:function(){return A.loadConfigsForDefaultMode}});Object.defineProperty(c,"map",{enumerable:!0,get:function(){return A.map}});Object.defineProperty(c,"resolveDefaultRuntimeConfig",{enumerable:!0,get:function(){return A.resolveDefaultRuntimeConfig}});Object.defineProperty(c,"serializeDateTime",{enumerable:!0,get:function(){return A.serializeDateTime}});Object.defineProperty(c,"serializeFloat",{enumerable:!0,get:function(){return A.serializeFloat}});Object.defineProperty(c,"take",{enumerable:!0,get:function(){return A.take}});Object.defineProperty(c,"throwDefaultError",{enumerable:!0,get:function(){return A.throwDefaultError}});Object.defineProperty(c,"withBaseException",{enumerable:!0,get:function(){return A.withBaseException}});var Ie=ee();Object.defineProperty(c,"collectBody",{enumerable:!0,get:function(){return Ie.collectBody}});Object.defineProperty(c,"extendedEncodeURIComponent",{enumerable:!0,get:function(){return Ie.extendedEncodeURIComponent}});Object.defineProperty(c,"resolvedPath",{enumerable:!0,get:function(){return Ie.resolvedPath}})});var xt=E((Nt)=>{Object.defineProperty(Nt,"__esModule",{value:!0});Nt.toStream=Ys;var Xs=Bs("node:stream");function Ys(e){return Xs.Readable.from(Buffer.from(e))}});var jt=E((ro)=>{var Js=(e)=>typeof e==="string"&&e.indexOf("arn:")===0&&e.split(":").length>=6,eo=(e)=>{let t=e.split(":");if(t.length<6||t[0]!=="arn")throw Error("Malformed ARN");let[,r,n,s,o,...a]=t;return{partition:r,service:n,region:s,accountId:o,resource:a.join(":")}},to=(e)=>{let{partition:t="aws",service:r,region:n,accountId:s,resource:o}=e;if([r,n,s,o].some((a)=>typeof a!=="string"))throw Error("Input ARN object is invalid");return`arn:${t}:${r}:${n}:${s}:${o}`};ro.build=to;ro.parse=eo;ro.validate=Js});var or=E((ho)=>{var v=De(),$t=ve(),W=ee();class Mt{format(e){let t=[];for(let s of Object.keys(e)){let o=v.fromUtf8(s);t.push(Uint8Array.from([o.byteLength]),o,this.formatHeaderValue(e[s]))}let r=new Uint8Array(t.reduce((s,o)=>s+o.byteLength,0)),n=0;for(let s of t)r.set(s,n),n+=s.byteLength;return r}formatHeaderValue(e){switch(e.type){case"boolean":return Uint8Array.from([e.value?0:1]);case"byte":return Uint8Array.from([2,e.value]);case"short":let t=new DataView(new ArrayBuffer(3));return t.setUint8(0,3),t.setInt16(1,e.value,!1),new Uint8Array(t.buffer);case"integer":let r=new DataView(new ArrayBuffer(5));return r.setUint8(0,4),r.setInt32(1,e.value,!1),new Uint8Array(r.buffer);case"long":let n=new Uint8Array(9);return n[0]=5,n.set(e.value.bytes,1),n;case"binary":let s=new DataView(new ArrayBuffer(3+e.value.byteLength));s.setUint8(0,6),s.setUint16(1,e.value.byteLength,!1);let o=new Uint8Array(s.buffer);return o.set(e.value,3),o;case"string":let a=v.fromUtf8(e.value),u=new DataView(new ArrayBuffer(3+a.byteLength));u.setUint8(0,7),u.setUint16(1,a.byteLength,!1);let i=new Uint8Array(u.buffer);return i.set(a,3),i;case"timestamp":let d=new Uint8Array(9);return d[0]=8,d.set(_e.fromNumber(e.value.valueOf()).bytes,1),d;case"uuid":if(!ao.test(e.value))throw Error(`Invalid UUID received: ${e.value}`);let l=new Uint8Array(17);return l[0]=9,l.set(v.fromHex(e.value.replace(/\-/g,"")),1),l}}}var Ht;(function(e){e[e.boolTrue=0]="boolTrue",e[e.boolFalse=1]="boolFalse",e[e.byte=2]="byte",e[e.short=3]="short",e[e.integer=4]="integer",e[e.long=5]="long",e[e.byteArray=6]="byteArray",e[e.string=7]="string",e[e.timestamp=8]="timestamp",e[e.uuid=9]="uuid"})(Ht||(Ht={}));var ao=/^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$/;class _e{bytes;constructor(e){if(this.bytes=e,e.byteLength!==8)throw Error("Int64 buffers must be exactly 8 bytes")}static fromNumber(e){if(e>9223372036854776000||e<-9223372036854776000)throw Error(`${e} is too large (or, if negative, too small) to represent as an Int64`);let t=new Uint8Array(8);for(let r=7,n=Math.abs(Math.round(e));r>-1&&n>0;r--,n/=256)t[r]=n;if(e<0)Ct(t);return new _e(t)}valueOf(){let e=this.bytes.slice(0),t=e[0]&128;if(t)Ct(e);return parseInt(v.toHex(e),16)*(t?-1:1)}toString(){return String(this.valueOf())}}function Ct(e){for(let t=0;t<8;t++)e[t]^=255;for(let t=7;t>-1;t--)if(e[t]++,e[t]!==0)break}var Ft="X-Amz-Algorithm",Lt="X-Amz-Credential",Oe="X-Amz-Date",Gt="X-Amz-SignedHeaders",Wt="X-Amz-Expires",Ne="X-Amz-Signature",xe="X-Amz-Security-Token",io="X-Amz-Region-Set",je="authorization",$e=Oe.toLowerCase(),Kt="date",zt=[je,$e,Kt],qt=Ne.toLowerCase(),oe="x-amz-content-sha256",Vt=xe.toLowerCase(),uo="host",kt={authorization:!0,"cache-control":!0,connection:!0,expect:!0,from:!0,"keep-alive":!0,"max-forwards":!0,pragma:!0,referer:!0,te:!0,trailer:!0,"transfer-encoding":!0,upgrade:!0,"user-agent":!0,"x-amzn-trace-id":!0},Qt=/^proxy-/,Bt=/^sec-/,co=[/^proxy-/i,/^sec-/i],te="AWS4-HMAC-SHA256",lo="AWS4-ECDSA-P256-SHA256",Xt="AWS4-HMAC-SHA256-PAYLOAD",Yt="UNSIGNED-PAYLOAD",Zt=50,He="aws4_request",Jt=604800,er=({query:e={}})=>{let t=[],r={};for(let n of Object.keys(e)){if(n.toLowerCase()===qt)continue;let s=W.escapeUri(n);t.push(s);let o=e[n];if(typeof o==="string")r[s]=`${s}=${W.escapeUri(o)}`;else if(Array.isArray(o))r[s]=o.slice(0).reduce((a,u)=>a.concat([`${s}=${W.escapeUri(u)}`]),[]).sort().join("&")}return t.sort().map((n)=>r[n]).filter((n)=>n).join("&")},po=(e)=>fo(e).toISOString().replace(/\.\d{3}Z$/,"Z"),fo=(e)=>{if(typeof e==="number")return new Date(e*1000);if(typeof e==="string"){if(Number(e))return new Date(Number(e)*1000);return new Date(e)}return e};class Ce{service;regionProvider;credentialProvider;sha256;uriEscapePath;applyChecksum;constructor({applyChecksum:e,credentials:t,region:r,service:n,sha256:s,uriEscapePath:o=!0}){this.service=n,this.sha256=s,this.uriEscapePath=o,this.applyChecksum=typeof e==="boolean"?e:!0,this.regionProvider=$t.normalizeProvider(r),this.credentialProvider=$t.normalizeProvider(t)}createCanonicalRequest(e,t,r){let n=Object.keys(t).sort();return`${e.method}
|
|
2
|
+
${this.getCanonicalPath(e)}
|
|
3
|
+
${er(e)}
|
|
4
|
+
${n.map((s)=>`${s}:${t[s]}`).join(`
|
|
5
|
+
`)}
|
|
6
|
+
|
|
7
|
+
${n.join(";")}
|
|
8
|
+
${r}`}async createStringToSign(e,t,r,n){let s=new this.sha256;s.update(v.toUint8Array(r));let o=await s.digest();return`${n}
|
|
9
|
+
${e}
|
|
10
|
+
${t}
|
|
11
|
+
${v.toHex(o)}`}getCanonicalPath({path:e}){if(this.uriEscapePath){let t=[];for(let s of e.split("/")){if(s?.length===0)continue;if(s===".")continue;if(s==="..")t.pop();else t.push(s)}let r=`${e?.startsWith("/")?"/":""}${t.join("/")}${t.length>0&&e?.endsWith("/")?"/":""}`;return W.escapeUri(r).replace(/%2F/g,"/")}return e}validateResolvedCredentials(e){if(typeof e!=="object"||typeof e.accessKeyId!=="string"||typeof e.secretAccessKey!=="string")throw Error("Resolved credential object is not valid")}formatDate(e){let t=po(e).replace(/[\-:]/g,"");return{longDate:t,shortDate:t.slice(0,8)}}getCanonicalHeaderList(e){return Object.keys(e).sort().join(";")}}var G={},re=[],ne=(e,t,r)=>`${e}/${t}/${r}/${He}`,tr=async(e,t,r,n,s)=>{let o=await Ut(e,t.secretAccessKey,t.accessKeyId),a=`${r}:${n}:${s}:${v.toHex(o)}:${t.sessionToken}`;if(a in G)return G[a];re.push(a);while(re.length>Zt)delete G[re.shift()];let u=`AWS4${t.secretAccessKey}`;for(let i of[r,n,s,He])u=await Ut(e,u,i);return G[a]=u},go=()=>{re.length=0,Object.keys(G).forEach((e)=>{delete G[e]})},Ut=(e,t,r)=>{let n=new e(t);return n.update(v.toUint8Array(r)),n.digest()},Te=({headers:e},t,r)=>{let n={};for(let s of Object.keys(e).sort()){if(e[s]==null)continue;let o=s.toLowerCase();if(o in kt||t?.has(o)||Qt.test(o)||Bt.test(o)){if(!r||r&&!r.has(o))continue}n[o]=e[s].trim().replace(/\s+/g," ")}return n},se=async({headers:e,body:t},r)=>{for(let n of Object.keys(e))if(n.toLowerCase()===oe)return e[n];if(t==null)return"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855";else if(typeof t==="string"||ArrayBuffer.isView(t)||v.isArrayBuffer(t)){let n=new r;return n.update(v.toUint8Array(t)),v.toHex(await n.digest())}return Yt},rr=(e,t)=>{e=e.toLowerCase();for(let r of Object.keys(t))if(e===r.toLowerCase())return!0;return!1},nr=(e,t={})=>{let{headers:r,query:n={}}=W.HttpRequest.clone(e);for(let s of Object.keys(r)){let o=s.toLowerCase();if(o.slice(0,6)==="x-amz-"&&!t.unhoistableHeaders?.has(o)||t.hoistableHeaders?.has(o))n[s]=r[s],delete r[s]}return{...e,headers:r,query:n}},Se=(e)=>{e=W.HttpRequest.clone(e);for(let t of Object.keys(e.headers))if(zt.indexOf(t.toLowerCase())>-1)delete e.headers[t];return e};class sr extends Ce{headerFormatter=new Mt;constructor({applyChecksum:e,credentials:t,region:r,service:n,sha256:s,uriEscapePath:o=!0}){super({applyChecksum:e,credentials:t,region:r,service:n,sha256:s,uriEscapePath:o})}async presign(e,t={}){let{signingDate:r=new Date,expiresIn:n=3600,unsignableHeaders:s,unhoistableHeaders:o,signableHeaders:a,hoistableHeaders:u,signingRegion:i,signingService:d}=t,l=await this.credentialProvider();this.validateResolvedCredentials(l);let b=i??await this.regionProvider(),{longDate:y,shortDate:h}=this.formatDate(r);if(n>Jt)return Promise.reject("Signature version 4 presigned URLs must have an expiration date less than one week in the future");let R=ne(h,b,d??this.service),g=nr(Se(e),{unhoistableHeaders:o,hoistableHeaders:u});if(l.sessionToken)g.query[xe]=l.sessionToken;g.query[Ft]=te,g.query[Lt]=`${l.accessKeyId}/${R}`,g.query[Oe]=y,g.query[Wt]=n.toString(10);let T=Te(g,s,a);return g.query[Gt]=this.getCanonicalHeaderList(T),g.query[Ne]=await this.getSignature(y,R,this.getSigningKey(l,b,h,d),this.createCanonicalRequest(g,T,await se(e,this.sha256))),g}async sign(e,t){if(typeof e==="string")return this.signString(e,t);else if(e.headers&&e.payload)return this.signEvent(e,t);else if(e.message)return this.signMessage(e,t);else return this.signRequest(e,t)}async signEvent({headers:e,payload:t},{signingDate:r=new Date,priorSignature:n,signingRegion:s,signingService:o,eventStreamCredentials:a}){let u=s??await this.regionProvider(),{shortDate:i,longDate:d}=this.formatDate(r),l=ne(i,u,o??this.service),b=await se({headers:{},body:t},this.sha256),y=new this.sha256;y.update(e);let h=v.toHex(await y.digest()),R=[Xt,d,l,n,h,b].join(`
|
|
12
|
+
`);return this.signString(R,{signingDate:r,signingRegion:u,signingService:o,eventStreamCredentials:a})}async signMessage(e,{signingDate:t=new Date,signingRegion:r,signingService:n,eventStreamCredentials:s}){return this.signEvent({headers:this.headerFormatter.format(e.message.headers),payload:e.message.body},{signingDate:t,signingRegion:r,signingService:n,priorSignature:e.priorSignature,eventStreamCredentials:s}).then((a)=>{return{message:e.message,signature:a}})}async signString(e,{signingDate:t=new Date,signingRegion:r,signingService:n,eventStreamCredentials:s}={}){let o=s??await this.credentialProvider();this.validateResolvedCredentials(o);let a=r??await this.regionProvider(),{shortDate:u}=this.formatDate(t),i=new this.sha256(await this.getSigningKey(o,a,u,n));return i.update(v.toUint8Array(e)),v.toHex(await i.digest())}async signRequest(e,{signingDate:t=new Date,signableHeaders:r,unsignableHeaders:n,signingRegion:s,signingService:o}={}){let a=await this.credentialProvider();this.validateResolvedCredentials(a);let u=s??await this.regionProvider(),i=Se(e),{longDate:d,shortDate:l}=this.formatDate(t),b=ne(l,u,o??this.service);if(i.headers[$e]=d,a.sessionToken)i.headers[Vt]=a.sessionToken;let y=await se(i,this.sha256);if(!rr(oe,i.headers)&&this.applyChecksum)i.headers[oe]=y;let h=Te(i,n,r),R=await this.getSignature(d,b,this.getSigningKey(a,u,l,o),this.createCanonicalRequest(i,h,y));return i.headers[je]=`${te} Credential=${a.accessKeyId}/${b}, SignedHeaders=${this.getCanonicalHeaderList(h)}, Signature=${R}`,i}async getSignature(e,t,r,n){let s=await this.createStringToSign(e,t,n,te),o=new this.sha256(await r);return o.update(v.toUint8Array(s)),v.toHex(await o.digest())}getSigningKey(e,t,r,n){return tr(this.sha256,e,r,t,n||this.service)}}var yo={SignatureV4a:null};ho.ALGORITHM_IDENTIFIER=te;ho.ALGORITHM_IDENTIFIER_V4A=lo;ho.ALGORITHM_QUERY_PARAM=Ft;ho.ALWAYS_UNSIGNABLE_HEADERS=kt;ho.AMZ_DATE_HEADER=$e;ho.AMZ_DATE_QUERY_PARAM=Oe;ho.AUTH_HEADER=je;ho.CREDENTIAL_QUERY_PARAM=Lt;ho.DATE_HEADER=Kt;ho.EVENT_ALGORITHM_IDENTIFIER=Xt;ho.EXPIRES_QUERY_PARAM=Wt;ho.GENERATED_HEADERS=zt;ho.HOST_HEADER=uo;ho.KEY_TYPE_IDENTIFIER=He;ho.MAX_CACHE_SIZE=Zt;ho.MAX_PRESIGNED_TTL=Jt;ho.PROXY_HEADER_PATTERN=Qt;ho.REGION_SET_PARAM=io;ho.SEC_HEADER_PATTERN=Bt;ho.SHA256_HEADER=oe;ho.SIGNATURE_HEADER=qt;ho.SIGNATURE_QUERY_PARAM=Ne;ho.SIGNED_HEADERS_QUERY_PARAM=Gt;ho.SignatureV4=sr;ho.SignatureV4Base=Ce;ho.TOKEN_HEADER=Vt;ho.TOKEN_QUERY_PARAM=xe;ho.UNSIGNABLE_PATTERNS=co;ho.UNSIGNED_PAYLOAD=Yt;ho.clearCredentialCache=go;ho.createScope=ne;ho.getCanonicalHeaders=Te;ho.getCanonicalQuery=er;ho.getPayloadHash=se;ho.getSigningKey=tr;ho.hasHeader=rr;ho.moveHeadersToQuery=nr;ho.prepareRequest=Se;ho.signatureV4aContainer=yo});var _r=E(($a)=>{var X=_t(),lr=Ot(),na=xt(),sa=jt(),oa=cr(),aa=Fe(),ia=or(),ae=ra(),ua=Le(),dr=ie(),ca=ur(),la="content-length",da="x-amz-decoded-content-length";function pr(){return(e,t)=>async(r)=>{let{request:n}=r;if(X.HttpRequest.isInstance(n)){if(!(la in n.headers)&&!(da in n.headers))if(typeof t?.logger?.warn==="function"&&!(t.logger instanceof lr.NoOpLogger))t.logger.warn("Are you using a Stream of unknown length as the Body of a PutObject request? Consider using Upload instead from @aws-sdk/lib-storage.");else console.warn("Are you using a Stream of unknown length as the Body of a PutObject request? Consider using Upload instead from @aws-sdk/lib-storage.")}return e({...r})}}var fr={step:"finalizeRequest",tags:["CHECK_CONTENT_LENGTH_HEADER"],name:"getCheckContentLengthHeaderPlugin",override:!0},pa=(e)=>({applyToStack:(t)=>{t.add(pr(),fr)}}),gr=(e)=>{return(t,r)=>async(n)=>{let s=await e.region(),o=e.region,a=()=>{};if(r.__s3RegionRedirect)Object.defineProperty(e,"region",{writable:!1,value:async()=>{return r.__s3RegionRedirect}}),a=()=>Object.defineProperty(e,"region",{writable:!0,value:o});try{let u=await t(n);if(r.__s3RegionRedirect){a();let i=await e.region();if(s!==i)throw Error("Region was not restored following S3 region redirect.")}return u}catch(u){throw a(),u}}},yr={tags:["REGION_REDIRECT","S3"],name:"regionRedirectEndpointMiddleware",override:!0,relation:"before",toMiddleware:"endpointV2Middleware"};function hr(e){return(t,r)=>async(n)=>{try{return await t(n)}catch(s){if(e.followRegionRedirects){let o=s?.$metadata?.httpStatusCode,a=r.commandName==="HeadBucketCommand",u=s?.$response?.headers?.["x-amz-bucket-region"];if(u){if(o===301||o===400&&(s?.name==="IllegalLocationConstraintException"||a)){try{let i=u;r.logger?.debug(`Redirecting from ${await e.region()} to ${i}`),r.__s3RegionRedirect=i}catch(i){throw Error("Region redirect failed: "+i)}return t(n)}}}throw s}}}var br={step:"initialize",tags:["REGION_REDIRECT","S3"],name:"regionRedirectMiddleware",override:!0},fa=(e)=>({applyToStack:(t)=>{t.add(hr(e),br),t.addRelativeTo(gr(e),yr)}}),mr=(e)=>{return(t,r)=>async(n)=>{let s=await t(n),{response:o}=s;if(X.HttpResponse.isInstance(o)){if(o.headers.expires){o.headers.expiresstring=o.headers.expires;try{lr.parseRfc7231DateTime(o.headers.expires)}catch(a){r.logger?.warn(`AWS SDK Warning for ${r.clientName}::${r.commandName} response parsing (${o.headers.expires}): ${a}`),delete o.headers.expires}}}return s}},Ar={tags:["S3"],name:"s3ExpiresMiddleware",override:!0,relation:"after",toMiddleware:"deserializerMiddleware"},ga=(e)=>({applyToStack:(t)=>{t.addRelativeTo(mr(),Ar)}});class ue{data;lastPurgeTime=Date.now();static EXPIRED_CREDENTIAL_PURGE_INTERVAL_MS=30000;constructor(e={}){this.data=e}get(e){let t=this.data[e];if(!t)return;return t}set(e,t){return this.data[e]=t,t}delete(e){delete this.data[e]}async purgeExpired(){let e=Date.now();if(this.lastPurgeTime+ue.EXPIRED_CREDENTIAL_PURGE_INTERVAL_MS>e)return;for(let t in this.data){let r=this.data[t];if(!r.isRefreshing){let n=await r.identity;if(n.expiration){if(n.expiration.getTime()<e)delete this.data[t]}}}}}class B{_identity;isRefreshing;accessed;constructor(e,t=!1,r=Date.now()){this._identity=e,this.isRefreshing=t,this.accessed=r}get identity(){return this.accessed=Date.now(),this._identity}}class ce{createSessionFn;cache;static REFRESH_WINDOW_MS=60000;constructor(e,t=new ue){this.createSessionFn=e,this.cache=t}async getS3ExpressIdentity(e,t){let r=t.Bucket,{cache:n}=this,s=n.get(r);if(s)return s.identity.then((o)=>{if((o.expiration?.getTime()??0)<Date.now())return n.set(r,new B(this.getIdentity(r))).identity;if((o.expiration?.getTime()??0)<Date.now()+ce.REFRESH_WINDOW_MS&&!s.isRefreshing)s.isRefreshing=!0,this.getIdentity(r).then((i)=>{n.set(r,new B(Promise.resolve(i)))});return o});return n.set(r,new B(this.getIdentity(r))).identity}async getIdentity(e){await this.cache.purgeExpired().catch((n)=>{console.warn(`Error while clearing expired entries in S3ExpressIdentityCache:
|
|
13
|
+
`+n)});let t=await this.createSessionFn(e);if(!t.Credentials?.AccessKeyId||!t.Credentials?.SecretAccessKey)throw Error("s3#createSession response credential missing AccessKeyId or SecretAccessKey.");return{accessKeyId:t.Credentials.AccessKeyId,secretAccessKey:t.Credentials.SecretAccessKey,sessionToken:t.Credentials.SessionToken,expiration:t.Credentials.Expiration?new Date(t.Credentials.Expiration):void 0}}}var ya="Directory",ha="S3Express",ba="sigv4-s3express",Ue="X-Amz-S3session-Token",Me=Ue.toLowerCase(),ma="AWS_S3_DISABLE_EXPRESS_SESSION_AUTH",Aa="s3_disable_express_session_auth",Ea={environmentVariableSelector:(e)=>ae.booleanSelector(e,ma,ae.SelectorType.ENV),configFileSelector:(e)=>ae.booleanSelector(e,Aa,ae.SelectorType.CONFIG),default:!1};class Er extends ia.SignatureV4{async signWithCredentials(e,t,r){let n=ar(t);e.headers[Me]=t.sessionToken;let s=this;return ir(s,n),s.signRequest(e,r??{})}async presignWithCredentials(e,t,r){let n=ar(t);return delete e.headers[Me],e.headers[Ue]=t.sessionToken,e.query=e.query??{},e.query[Ue]=t.sessionToken,ir(this,n),this.presign(e,r)}}function ar(e){return{accessKeyId:e.accessKeyId,secretAccessKey:e.secretAccessKey,expiration:e.expiration}}function ir(e,t){let r=setTimeout(()=>{throw Error("SignatureV4S3Express credential override was created but not called.")},10),n=e.credentialProvider,s=()=>{return clearTimeout(r),e.credentialProvider=n,Promise.resolve(t)};e.credentialProvider=s}var Rr=(e)=>{return(t,r)=>async(n)=>{if(r.endpointV2){let s=r.endpointV2,o=s.properties?.authSchemes?.[0]?.name===ba;if(s.properties?.backend===ha||s.properties?.bucketType===ya)ua.setFeature(r,"S3_EXPRESS_BUCKET","J"),r.isS3ExpressBucket=!0;if(o){let u=n.input.Bucket;if(u){let i=await e.s3ExpressIdentityProvider.getS3ExpressIdentity(await e.credentials(),{Bucket:u});if(r.s3ExpressIdentity=i,X.HttpRequest.isInstance(n.request)&&i.sessionToken)n.request.headers[Me]=i.sessionToken}}}return t(n)}},wr={name:"s3ExpressMiddleware",step:"build",tags:["S3","S3_EXPRESS"],override:!0},Ra=(e)=>({applyToStack:(t)=>{t.add(Rr(e),wr)}}),wa=async(e,t,r,n)=>{let s=await n.signWithCredentials(r,e,{});if(s.headers["X-Amz-Security-Token"]||s.headers["x-amz-security-token"])throw Error("X-Amz-Security-Token must not be set for s3-express requests.");return s},Pa=(e)=>(t)=>{throw t},va=(e,t)=>{},Da=dr.httpSigningMiddlewareOptions,Pr=(e)=>(t,r)=>async(n)=>{if(!X.HttpRequest.isInstance(n.request))return t(n);let o=ca.getSmithyContext(r).selectedHttpAuthScheme;if(!o)throw Error("No HttpAuthScheme was selected: unable to sign request");let{httpAuthOption:{signingProperties:a={}},identity:u,signer:i}=o,d;if(r.s3ExpressIdentity)d=await wa(r.s3ExpressIdentity,a,n.request,await e.signer());else d=await i.sign(n.request,u,a);let l=await t({...n,request:d}).catch((i.errorHandler||Pa)(a));return(i.successHandler||va)(l.response,a),l},Ia=(e)=>({applyToStack:(t)=>{t.addRelativeTo(Pr(e),dr.httpSigningMiddlewareOptions)}}),Ta=(e,{session:t})=>{let[r,n]=t,{forcePathStyle:s,useAccelerateEndpoint:o,disableMultiregionAccessPoints:a,followRegionRedirects:u,s3ExpressIdentityProvider:i,bucketEndpoint:d,expectContinueHeader:l}=e;return Object.assign(e,{forcePathStyle:s??!1,useAccelerateEndpoint:o??!1,disableMultiregionAccessPoints:a??!1,followRegionRedirects:u??!1,s3ExpressIdentityProvider:i??new ce(async(b)=>r().send(new n({Bucket:b}))),bucketEndpoint:d??!1,expectContinueHeader:l??2097152})},Sa={CopyObjectCommand:!0,UploadPartCopyCommand:!0,CompleteMultipartUploadCommand:!0},vr=(e)=>(t,r)=>async(n)=>{let s=await t(n),{response:o}=s;if(!X.HttpResponse.isInstance(o))return s;let{statusCode:a,body:u}=o;if(a<200||a>=300)return s;let i=await _a(u,e);if(o.body=na.toStream(i),i.length===0&&Sa[r.commandName]){let l=Error("S3 aborted request");throw l.$metadata={httpStatusCode:503},l.name="InternalError",l}let d=e.utf8Encoder(i.subarray(i.length-16));if(d&&d.endsWith("</Error>"))o.statusCode=503;return s},_a=(e=new Uint8Array,t)=>{if(e instanceof Uint8Array)return Promise.resolve(e);return t.streamCollector(e)||Promise.resolve(new Uint8Array)},Dr={relation:"after",toMiddleware:"deserializerMiddleware",tags:["THROW_200_EXCEPTIONS","S3"],name:"throw200ExceptionsMiddleware",override:!0},Oa=(e)=>({applyToStack:(t)=>{t.addRelativeTo(vr(e),Dr)}});function Na(e){return(t,r)=>async(n)=>{if(e.bucketEndpoint){let s=r.endpointV2;if(s){let o=n.input.Bucket;if(typeof o==="string")try{let a=new URL(o);r.endpointV2={...s,url:a}}catch(a){let u=`@aws-sdk/middleware-sdk-s3: bucketEndpoint=true was set but Bucket=${o} could not be parsed as URL.`;if(r.logger?.constructor?.name==="NoOpLogger")console.warn(u);else r.logger?.warn?.(u);throw a}}}return t(n)}}var xa={name:"bucketEndpointMiddleware",override:!0,relation:"after",toMiddleware:"endpointV2Middleware"};function Ir({bucketEndpoint:e}){return(t)=>async(r)=>{let{input:{Bucket:n}}=r;if(!e&&typeof n==="string"&&!sa.validate(n)&&n.indexOf("/")>=0){let s=Error(`Bucket name shouldn't contain '/', received '${n}'`);throw s.name="InvalidBucketName",s}return t({...r})}}var Tr={step:"initialize",tags:["VALIDATE_BUCKET_NAME"],name:"validateBucketNameMiddleware",override:!0},ja=(e)=>({applyToStack:(t)=>{t.add(Ir(e),Tr),t.addRelativeTo(Na(e),xa)}});class Sr extends oa.AwsRestXmlProtocol{async serializeRequest(e,t,r){let n=await super.serializeRequest(e,t,r),s=aa.NormalizedSchema.of(e.input),o=s.getSchema(),a=0,u=o[6]??0;if(t&&typeof t==="object")for(let[i,d]of s.structIterator()){if(++a>u)break;if(i==="Bucket"){if(!t.Bucket&&d.getMergedTraits().httpLabel)throw Error("No value provided for input HTTP label: Bucket.");break}}return n}}$a.NODE_DISABLE_S3_EXPRESS_SESSION_AUTH_OPTIONS=Ea;$a.S3ExpressIdentityCache=ue;$a.S3ExpressIdentityCacheEntry=B;$a.S3ExpressIdentityProviderImpl=ce;$a.S3RestXmlProtocol=Sr;$a.SignatureV4S3Express=Er;$a.checkContentLengthHeader=pr;$a.checkContentLengthHeaderMiddlewareOptions=fr;$a.getCheckContentLengthHeaderPlugin=pa;$a.getRegionRedirectMiddlewarePlugin=fa;$a.getS3ExpiresMiddlewarePlugin=ga;$a.getS3ExpressHttpSigningPlugin=Ia;$a.getS3ExpressPlugin=Ra;$a.getThrow200ExceptionsPlugin=Oa;$a.getValidateBucketNamePlugin=ja;$a.regionRedirectEndpointMiddleware=gr;$a.regionRedirectEndpointMiddlewareOptions=yr;$a.regionRedirectMiddleware=hr;$a.regionRedirectMiddlewareOptions=br;$a.resolveS3Config=Ta;$a.s3ExpiresMiddleware=mr;$a.s3ExpiresMiddlewareOptions=Ar;$a.s3ExpressHttpSigningMiddleware=Pr;$a.s3ExpressHttpSigningMiddlewareOptions=Da;$a.s3ExpressMiddleware=Rr;$a.s3ExpressMiddlewareOptions=wr;$a.throw200ExceptionsMiddleware=vr;$a.throw200ExceptionsMiddlewareOptions=Dr;$a.validateBucketNameMiddleware=Ir;$a.validateBucketNameMiddlewareOptions=Tr});var tn=E((Ei)=>{var D=De(),Or=ve(),z=ee();class $r{format(e){let t=[];for(let s of Object.keys(e)){let o=D.fromUtf8(s);t.push(Uint8Array.from([o.byteLength]),o,this.formatHeaderValue(e[s]))}let r=new Uint8Array(t.reduce((s,o)=>s+o.byteLength,0)),n=0;for(let s of t)r.set(s,n),n+=s.byteLength;return r}formatHeaderValue(e){switch(e.type){case"boolean":return Uint8Array.from([e.value?0:1]);case"byte":return Uint8Array.from([2,e.value]);case"short":let t=new DataView(new ArrayBuffer(3));return t.setUint8(0,3),t.setInt16(1,e.value,!1),new Uint8Array(t.buffer);case"integer":let r=new DataView(new ArrayBuffer(5));return r.setUint8(0,4),r.setInt32(1,e.value,!1),new Uint8Array(r.buffer);case"long":let n=new Uint8Array(9);return n[0]=5,n.set(e.value.bytes,1),n;case"binary":let s=new DataView(new ArrayBuffer(3+e.value.byteLength));s.setUint8(0,6),s.setUint16(1,e.value.byteLength,!1);let o=new Uint8Array(s.buffer);return o.set(e.value,3),o;case"string":let a=D.fromUtf8(e.value),u=new DataView(new ArrayBuffer(3+a.byteLength));u.setUint8(0,7),u.setUint16(1,a.byteLength,!1);let i=new Uint8Array(u.buffer);return i.set(a,3),i;case"timestamp":let d=new Uint8Array(9);return d[0]=8,d.set(Ke.fromNumber(e.value.valueOf()).bytes,1),d;case"uuid":if(!di.test(e.value))throw Error(`Invalid UUID received: ${e.value}`);let l=new Uint8Array(17);return l[0]=9,l.set(D.fromHex(e.value.replace(/\-/g,"")),1),l}}}var Nr;(function(e){e[e.boolTrue=0]="boolTrue",e[e.boolFalse=1]="boolFalse",e[e.byte=2]="byte",e[e.short=3]="short",e[e.integer=4]="integer",e[e.long=5]="long",e[e.byteArray=6]="byteArray",e[e.string=7]="string",e[e.timestamp=8]="timestamp",e[e.uuid=9]="uuid"})(Nr||(Nr={}));var di=/^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$/;class Ke{bytes;constructor(e){if(this.bytes=e,e.byteLength!==8)throw Error("Int64 buffers must be exactly 8 bytes")}static fromNumber(e){if(e>9223372036854776000||e<-9223372036854776000)throw Error(`${e} is too large (or, if negative, too small) to represent as an Int64`);let t=new Uint8Array(8);for(let r=7,n=Math.abs(Math.round(e));r>-1&&n>0;r--,n/=256)t[r]=n;if(e<0)xr(t);return new Ke(t)}valueOf(){let e=this.bytes.slice(0),t=e[0]&128;if(t)xr(e);return parseInt(D.toHex(e),16)*(t?-1:1)}toString(){return String(this.valueOf())}}function xr(e){for(let t=0;t<8;t++)e[t]^=255;for(let t=7;t>-1;t--)if(e[t]++,e[t]!==0)break}var Hr="X-Amz-Algorithm",Cr="X-Amz-Credential",ze="X-Amz-Date",Ur="X-Amz-SignedHeaders",Mr="X-Amz-Expires",qe="X-Amz-Signature",Ve="X-Amz-Security-Token",pi="X-Amz-Region-Set",ke="authorization",Qe=ze.toLowerCase(),Fr="date",Lr=[ke,Qe,Fr],Gr=qe.toLowerCase(),ge="x-amz-content-sha256",Wr=Ve.toLowerCase(),fi="host",Kr={authorization:!0,"cache-control":!0,connection:!0,expect:!0,from:!0,"keep-alive":!0,"max-forwards":!0,pragma:!0,referer:!0,te:!0,trailer:!0,"transfer-encoding":!0,upgrade:!0,"user-agent":!0,"x-amzn-trace-id":!0},zr=/^proxy-/,qr=/^sec-/,gi=[/^proxy-/i,/^sec-/i],le="AWS4-HMAC-SHA256",yi="AWS4-ECDSA-P256-SHA256",Vr="AWS4-HMAC-SHA256-PAYLOAD",kr="UNSIGNED-PAYLOAD",Qr=50,Be="aws4_request",Br=604800,Xr=({query:e={}})=>{let t=[],r={};for(let n of Object.keys(e)){if(n.toLowerCase()===Gr)continue;let s=z.escapeUri(n);t.push(s);let o=e[n];if(typeof o==="string")r[s]=`${s}=${z.escapeUri(o)}`;else if(Array.isArray(o))r[s]=o.slice(0).reduce((a,u)=>a.concat([`${s}=${z.escapeUri(u)}`]),[]).sort().join("&")}return t.sort().map((n)=>r[n]).filter((n)=>n).join("&")},hi=(e)=>bi(e).toISOString().replace(/\.\d{3}Z$/,"Z"),bi=(e)=>{if(typeof e==="number")return new Date(e*1000);if(typeof e==="string"){if(Number(e))return new Date(Number(e)*1000);return new Date(e)}return e};class Xe{service;regionProvider;credentialProvider;sha256;uriEscapePath;applyChecksum;constructor({applyChecksum:e,credentials:t,region:r,service:n,sha256:s,uriEscapePath:o=!0}){this.service=n,this.sha256=s,this.uriEscapePath=o,this.applyChecksum=typeof e==="boolean"?e:!0,this.regionProvider=Or.normalizeProvider(r),this.credentialProvider=Or.normalizeProvider(t)}createCanonicalRequest(e,t,r){let n=Object.keys(t).sort();return`${e.method}
|
|
14
|
+
${this.getCanonicalPath(e)}
|
|
15
|
+
${Xr(e)}
|
|
16
|
+
${n.map((s)=>`${s}:${t[s]}`).join(`
|
|
17
|
+
`)}
|
|
18
|
+
|
|
19
|
+
${n.join(";")}
|
|
20
|
+
${r}`}async createStringToSign(e,t,r,n){let s=new this.sha256;s.update(D.toUint8Array(r));let o=await s.digest();return`${n}
|
|
21
|
+
${e}
|
|
22
|
+
${t}
|
|
23
|
+
${D.toHex(o)}`}getCanonicalPath({path:e}){if(this.uriEscapePath){let t=[];for(let s of e.split("/")){if(s?.length===0)continue;if(s===".")continue;if(s==="..")t.pop();else t.push(s)}let r=`${e?.startsWith("/")?"/":""}${t.join("/")}${t.length>0&&e?.endsWith("/")?"/":""}`;return z.escapeUri(r).replace(/%2F/g,"/")}return e}validateResolvedCredentials(e){if(typeof e!=="object"||typeof e.accessKeyId!=="string"||typeof e.secretAccessKey!=="string")throw Error("Resolved credential object is not valid")}formatDate(e){let t=hi(e).replace(/[\-:]/g,"");return{longDate:t,shortDate:t.slice(0,8)}}getCanonicalHeaderList(e){return Object.keys(e).sort().join(";")}}var K={},de=[],pe=(e,t,r)=>`${e}/${t}/${r}/${Be}`,Yr=async(e,t,r,n,s)=>{let o=await jr(e,t.secretAccessKey,t.accessKeyId),a=`${r}:${n}:${s}:${D.toHex(o)}:${t.sessionToken}`;if(a in K)return K[a];de.push(a);while(de.length>Qr)delete K[de.shift()];let u=`AWS4${t.secretAccessKey}`;for(let i of[r,n,s,Be])u=await jr(e,u,i);return K[a]=u},mi=()=>{de.length=0,Object.keys(K).forEach((e)=>{delete K[e]})},jr=(e,t,r)=>{let n=new e(t);return n.update(D.toUint8Array(r)),n.digest()},Ge=({headers:e},t,r)=>{let n={};for(let s of Object.keys(e).sort()){if(e[s]==null)continue;let o=s.toLowerCase();if(o in Kr||t?.has(o)||zr.test(o)||qr.test(o)){if(!r||r&&!r.has(o))continue}n[o]=e[s].trim().replace(/\s+/g," ")}return n},fe=async({headers:e,body:t},r)=>{for(let n of Object.keys(e))if(n.toLowerCase()===ge)return e[n];if(t==null)return"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855";else if(typeof t==="string"||ArrayBuffer.isView(t)||D.isArrayBuffer(t)){let n=new r;return n.update(D.toUint8Array(t)),D.toHex(await n.digest())}return kr},Zr=(e,t)=>{e=e.toLowerCase();for(let r of Object.keys(t))if(e===r.toLowerCase())return!0;return!1},Jr=(e,t={})=>{let{headers:r,query:n={}}=z.HttpRequest.clone(e);for(let s of Object.keys(r)){let o=s.toLowerCase();if(o.slice(0,6)==="x-amz-"&&!t.unhoistableHeaders?.has(o)||t.hoistableHeaders?.has(o))n[s]=r[s],delete r[s]}return{...e,headers:r,query:n}},We=(e)=>{e=z.HttpRequest.clone(e);for(let t of Object.keys(e.headers))if(Lr.indexOf(t.toLowerCase())>-1)delete e.headers[t];return e};class en extends Xe{headerFormatter=new $r;constructor({applyChecksum:e,credentials:t,region:r,service:n,sha256:s,uriEscapePath:o=!0}){super({applyChecksum:e,credentials:t,region:r,service:n,sha256:s,uriEscapePath:o})}async presign(e,t={}){let{signingDate:r=new Date,expiresIn:n=3600,unsignableHeaders:s,unhoistableHeaders:o,signableHeaders:a,hoistableHeaders:u,signingRegion:i,signingService:d}=t,l=await this.credentialProvider();this.validateResolvedCredentials(l);let b=i??await this.regionProvider(),{longDate:y,shortDate:h}=this.formatDate(r);if(n>Br)return Promise.reject("Signature version 4 presigned URLs must have an expiration date less than one week in the future");let R=pe(h,b,d??this.service),g=Jr(We(e),{unhoistableHeaders:o,hoistableHeaders:u});if(l.sessionToken)g.query[Ve]=l.sessionToken;g.query[Hr]=le,g.query[Cr]=`${l.accessKeyId}/${R}`,g.query[ze]=y,g.query[Mr]=n.toString(10);let T=Ge(g,s,a);return g.query[Ur]=this.getCanonicalHeaderList(T),g.query[qe]=await this.getSignature(y,R,this.getSigningKey(l,b,h,d),this.createCanonicalRequest(g,T,await fe(e,this.sha256))),g}async sign(e,t){if(typeof e==="string")return this.signString(e,t);else if(e.headers&&e.payload)return this.signEvent(e,t);else if(e.message)return this.signMessage(e,t);else return this.signRequest(e,t)}async signEvent({headers:e,payload:t},{signingDate:r=new Date,priorSignature:n,signingRegion:s,signingService:o,eventStreamCredentials:a}){let u=s??await this.regionProvider(),{shortDate:i,longDate:d}=this.formatDate(r),l=pe(i,u,o??this.service),b=await fe({headers:{},body:t},this.sha256),y=new this.sha256;y.update(e);let h=D.toHex(await y.digest()),R=[Vr,d,l,n,h,b].join(`
|
|
24
|
+
`);return this.signString(R,{signingDate:r,signingRegion:u,signingService:o,eventStreamCredentials:a})}async signMessage(e,{signingDate:t=new Date,signingRegion:r,signingService:n,eventStreamCredentials:s}){return this.signEvent({headers:this.headerFormatter.format(e.message.headers),payload:e.message.body},{signingDate:t,signingRegion:r,signingService:n,priorSignature:e.priorSignature,eventStreamCredentials:s}).then((a)=>{return{message:e.message,signature:a}})}async signString(e,{signingDate:t=new Date,signingRegion:r,signingService:n,eventStreamCredentials:s}={}){let o=s??await this.credentialProvider();this.validateResolvedCredentials(o);let a=r??await this.regionProvider(),{shortDate:u}=this.formatDate(t),i=new this.sha256(await this.getSigningKey(o,a,u,n));return i.update(D.toUint8Array(e)),D.toHex(await i.digest())}async signRequest(e,{signingDate:t=new Date,signableHeaders:r,unsignableHeaders:n,signingRegion:s,signingService:o}={}){let a=await this.credentialProvider();this.validateResolvedCredentials(a);let u=s??await this.regionProvider(),i=We(e),{longDate:d,shortDate:l}=this.formatDate(t),b=pe(l,u,o??this.service);if(i.headers[Qe]=d,a.sessionToken)i.headers[Wr]=a.sessionToken;let y=await fe(i,this.sha256);if(!Zr(ge,i.headers)&&this.applyChecksum)i.headers[ge]=y;let h=Ge(i,n,r),R=await this.getSignature(d,b,this.getSigningKey(a,u,l,o),this.createCanonicalRequest(i,h,y));return i.headers[ke]=`${le} Credential=${a.accessKeyId}/${b}, SignedHeaders=${this.getCanonicalHeaderList(h)}, Signature=${R}`,i}async getSignature(e,t,r,n){let s=await this.createStringToSign(e,t,n,le),o=new this.sha256(await r);return o.update(D.toUint8Array(s)),D.toHex(await o.digest())}getSigningKey(e,t,r,n){return Yr(this.sha256,e,r,t,n||this.service)}}var Ai={SignatureV4a:null};Ei.ALGORITHM_IDENTIFIER=le;Ei.ALGORITHM_IDENTIFIER_V4A=yi;Ei.ALGORITHM_QUERY_PARAM=Hr;Ei.ALWAYS_UNSIGNABLE_HEADERS=Kr;Ei.AMZ_DATE_HEADER=Qe;Ei.AMZ_DATE_QUERY_PARAM=ze;Ei.AUTH_HEADER=ke;Ei.CREDENTIAL_QUERY_PARAM=Cr;Ei.DATE_HEADER=Fr;Ei.EVENT_ALGORITHM_IDENTIFIER=Vr;Ei.EXPIRES_QUERY_PARAM=Mr;Ei.GENERATED_HEADERS=Lr;Ei.HOST_HEADER=fi;Ei.KEY_TYPE_IDENTIFIER=Be;Ei.MAX_CACHE_SIZE=Qr;Ei.MAX_PRESIGNED_TTL=Br;Ei.PROXY_HEADER_PATTERN=zr;Ei.REGION_SET_PARAM=pi;Ei.SEC_HEADER_PATTERN=qr;Ei.SHA256_HEADER=ge;Ei.SIGNATURE_HEADER=Gr;Ei.SIGNATURE_QUERY_PARAM=qe;Ei.SIGNED_HEADERS_QUERY_PARAM=Ur;Ei.SignatureV4=en;Ei.SignatureV4Base=Xe;Ei.TOKEN_HEADER=Wr;Ei.TOKEN_QUERY_PARAM=Ve;Ei.UNSIGNABLE_PATTERNS=gi;Ei.UNSIGNED_PAYLOAD=kr;Ei.clearCredentialCache=mi;Ei.createScope=pe;Ei.getCanonicalHeaders=Ge;Ei.getCanonicalQuery=Xr;Ei.getPayloadHash=fe;Ei.getSigningKey=Yr;Ei.hasHeader=Zr;Ei.moveHeadersToQuery=Jr;Ei.prepareRequest=We;Ei.signatureV4aContainer=Ai});var Ye=E((iu)=>{var au=_r(),rn=tn(),Y={CrtSignerV4:null};class nn{sigv4aSigner;sigv4Signer;signerOptions;static sigv4aDependency(){if(typeof Y.CrtSignerV4==="function")return"crt";else if(typeof rn.signatureV4aContainer.SignatureV4a==="function")return"js";return"none"}constructor(e){this.sigv4Signer=new au.SignatureV4S3Express(e),this.signerOptions=e}async sign(e,t={}){if(t.signingRegion==="*")return this.getSigv4aSigner().sign(e,t);return this.sigv4Signer.sign(e,t)}async signWithCredentials(e,t,r={}){if(r.signingRegion==="*"){let n=this.getSigv4aSigner(),s=Y.CrtSignerV4;if(s&&n instanceof s)return n.signWithCredentials(e,t,r);else throw Error(`signWithCredentials with signingRegion '*' is only supported when using the CRT dependency @aws-sdk/signature-v4-crt. Please check whether you have installed the "@aws-sdk/signature-v4-crt" package explicitly. You must also register the package by calling [require("@aws-sdk/signature-v4-crt");] or an ESM equivalent such as [import "@aws-sdk/signature-v4-crt";]. For more information please go to https://github.com/aws/aws-sdk-js-v3#functionality-requiring-aws-common-runtime-crt`)}return this.sigv4Signer.signWithCredentials(e,t,r)}async presign(e,t={}){if(t.signingRegion==="*"){let r=this.getSigv4aSigner(),n=Y.CrtSignerV4;if(n&&r instanceof n)return r.presign(e,t);else throw Error(`presign with signingRegion '*' is only supported when using the CRT dependency @aws-sdk/signature-v4-crt. Please check whether you have installed the "@aws-sdk/signature-v4-crt" package explicitly. You must also register the package by calling [require("@aws-sdk/signature-v4-crt");] or an ESM equivalent such as [import "@aws-sdk/signature-v4-crt";]. For more information please go to https://github.com/aws/aws-sdk-js-v3#functionality-requiring-aws-common-runtime-crt`)}return this.sigv4Signer.presign(e,t)}async presignWithCredentials(e,t,r={}){if(r.signingRegion==="*")throw Error("Method presignWithCredentials is not supported for [signingRegion=*].");return this.sigv4Signer.presignWithCredentials(e,t,r)}getSigv4aSigner(){if(!this.sigv4aSigner){let e=Y.CrtSignerV4,t=rn.signatureV4aContainer.SignatureV4a;if(this.signerOptions.runtime==="node"){if(!e&&!t)throw Error("Neither CRT nor JS SigV4a implementation is available. Please load either @aws-sdk/signature-v4-crt or @aws-sdk/signature-v4a. For more information please go to https://github.com/aws/aws-sdk-js-v3#functionality-requiring-aws-common-runtime-crt");if(e&&typeof e==="function")this.sigv4aSigner=new e({...this.signerOptions,signingAlgorithm:1});else if(t&&typeof t==="function")this.sigv4aSigner=new t({...this.signerOptions});else throw Error("Available SigV4a implementation is not a valid constructor. Please ensure you've properly imported @aws-sdk/signature-v4-crt or @aws-sdk/signature-v4a.For more information please go to https://github.com/aws/aws-sdk-js-v3#functionality-requiring-aws-common-runtime-crt")}else{if(!t||typeof t!=="function")throw Error("JS SigV4a implementation is not available or not a valid constructor. Please check whether you have installed the @aws-sdk/signature-v4a package explicitly. The CRT implementation is not available for browsers. You must also register the package by calling [require('@aws-sdk/signature-v4a');] or an ESM equivalent such as [import '@aws-sdk/signature-v4a';]. For more information please go to https://github.com/aws/aws-sdk-js-v3#using-javascript-non-crt-implementation-of-sigv4a");this.sigv4aSigner=new t({...this.signerOptions})}}return this.sigv4aSigner}}iu.SignatureV4MultiRegion=nn;iu.signatureV4CrtContainer=Y});var bn=E((yn)=>{Object.defineProperty(yn,"__esModule",{value:!0});yn.bdd=void 0;var lu=fn(),V="ref",x=-1,Z=!0,sn="isSet",gn="PartitionResult",J="booleanEquals",w="stringEquals",Ze="getAttr",on="us-east-1",an="sigv4",un="sts",cn="https://sts.{Region}.{PartitionResult#dnsSuffix}",ln={[V]:"Endpoint"},P={[V]:"Region"},Je={[V]:gn},q={},dn=[P],pn={conditions:[[sn,[ln]],[sn,dn],["aws.partition",dn,gn],[J,[{[V]:"UseFIPS"},Z]],[J,[{[V]:"UseDualStack"},Z]],[w,[P,"aws-global"]],[J,[{[V]:"UseGlobalEndpoint"},Z]],[w,[P,"eu-central-1"]],[J,[{fn:Ze,argv:[Je,"supportsDualStack"]},Z]],[J,[{fn:Ze,argv:[Je,"supportsFIPS"]},Z]],[w,[P,"ap-south-1"]],[w,[P,"eu-north-1"]],[w,[P,"eu-west-1"]],[w,[P,"eu-west-2"]],[w,[P,"eu-west-3"]],[w,[P,"sa-east-1"]],[w,[P,on]],[w,[P,"us-east-2"]],[w,[P,"us-west-2"]],[w,[P,"us-west-1"]],[w,[P,"ca-central-1"]],[w,[P,"ap-southeast-1"]],[w,[P,"ap-northeast-1"]],[w,[P,"ap-southeast-2"]],[w,[{fn:Ze,argv:[Je,"name"]},"aws-us-gov"]]],results:[[x],["https://sts.amazonaws.com",{authSchemes:[{name:an,signingName:un,signingRegion:on}]}],[cn,{authSchemes:[{name:an,signingName:un,signingRegion:"{Region}"}]}],[x,"Invalid Configuration: FIPS and custom endpoint are not supported"],[x,"Invalid Configuration: Dualstack and custom endpoint are not supported"],[ln,q],["https://sts-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",q],[x,"FIPS and DualStack are enabled, but this partition does not support one or both"],["https://sts.{Region}.amazonaws.com",q],["https://sts-fips.{Region}.{PartitionResult#dnsSuffix}",q],[x,"FIPS is enabled but this partition does not support FIPS"],["https://sts.{Region}.{PartitionResult#dualStackDnsSuffix}",q],[x,"DualStack is enabled but this partition does not support DualStack"],[cn,q],[x,"Invalid Configuration: Missing Region"]]},du=2,f=1e8,pu=new Int32Array([-1,1,-1,0,30,3,1,4,f+14,2,5,f+14,3,25,6,4,24,7,5,f+1,8,6,9,f+13,7,f+1,10,10,f+1,11,11,f+1,12,12,f+1,13,13,f+1,14,14,f+1,15,15,f+1,16,16,f+1,17,17,f+1,18,18,f+1,19,19,f+1,20,20,f+1,21,21,f+1,22,22,f+1,23,23,f+1,f+2,8,f+11,f+12,4,28,26,9,27,f+10,24,f+8,f+9,8,29,f+7,9,f+6,f+7,3,f+3,31,4,f+4,f+5]);yn.bdd=lu.BinaryDecisionDiagram.from(pu,du,pn.conditions,pn.results)});var tt=E((mn)=>{Object.defineProperty(mn,"__esModule",{value:!0});mn.defaultEndpointResolver=void 0;var gu=fu(),et=fn(),yu=bn(),hu=new et.EndpointCache({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS","UseGlobalEndpoint"]}),bu=(e,t={})=>{return hu.get(e,()=>(0,et.decideEndpoint)(yu.bdd,{endpointParams:e,logger:t.logger}))};mn.defaultEndpointResolver=bu;et.customEndpointFunctions.aws=gu.awsEndpointFunctions});var ot=E((Pn)=>{Object.defineProperty(Pn,"__esModule",{value:!0});Pn.resolveHttpAuthSchemeConfig=Pn.resolveStsAuthConfig=Pn.defaultSTSHttpAuthSchemeProvider=Pn.defaultSTSHttpAuthSchemeParametersProvider=void 0;var En=nt(),mu=Ye(),Au=st(),ye=ur(),Eu=tt(),Ru=at(),wu=(e)=>async(t,r,n)=>{if(!n)throw Error("Could not find `input` for `defaultEndpointRuleSetHttpAuthSchemeParametersProvider`");let s=await e(t,r,n),o=(0,ye.getSmithyContext)(r)?.commandInstance?.constructor?.getEndpointParameterInstructions;if(!o)throw Error(`getEndpointParameterInstructions() is not defined on '${r.commandName}'`);let a=await(0,Au.resolveParams)(n,{getEndpointParameterInstructions:o},t);return Object.assign(s,a)},Pu=async(e,t,r)=>{return{operation:(0,ye.getSmithyContext)(t).operation,region:await(0,ye.normalizeProvider)(e.region)()||(()=>{throw Error("expected `region` to be configured for `aws.auth#sigv4`")})()}};Pn.defaultSTSHttpAuthSchemeParametersProvider=wu(Pu);function Rn(e){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"sts",region:e.region},propertiesExtractor:(t,r)=>({signingProperties:{config:t,context:r}})}}function rt(e){return{schemeId:"aws.auth#sigv4a",signingProperties:{name:"sts",region:e.region},propertiesExtractor:(t,r)=>({signingProperties:{config:t,context:r}})}}function wn(e){return{schemeId:"smithy.api#noAuth"}}var vu=(e,t,r)=>{return(s)=>{let a=e(s).properties?.authSchemes;if(!a)return t(s);let u=[];for(let i of a){let{name:d,properties:l={},...b}=i,y=d.toLowerCase();if(d!==y)console.warn(`HttpAuthScheme has been normalized with lowercasing: '${d}' to '${y}'`);let h;if(y==="sigv4a"){h="aws.auth#sigv4a";let T=a.find((Pe)=>{let St=Pe.name.toLowerCase();return St!=="sigv4a"&&St.startsWith("sigv4")});if(mu.SignatureV4MultiRegion.sigv4aDependency()==="none"&&T)continue}else if(y.startsWith("sigv4"))h="aws.auth#sigv4";else throw Error(`Unknown HttpAuthScheme found in '@smithy.rules#endpointRuleSet': '${y}'`);let R=r[h];if(!R)throw Error(`Could not find HttpAuthOption create function for '${h}'`);let g=R(s);g.schemeId=h,g.signingProperties={...g.signingProperties||{},...b,...l},u.push(g)}return u}},Du=(e)=>{let t=[];switch(e.operation){case"AssumeRoleWithWebIdentity":{t.push(wn(e)),t.push(rt(e));break}default:t.push(Rn(e)),t.push(rt(e))}return t};Pn.defaultSTSHttpAuthSchemeProvider=vu(Eu.defaultEndpointResolver,Du,{"aws.auth#sigv4":Rn,"aws.auth#sigv4a":rt,"smithy.api#noAuth":wn});var Iu=(e)=>Object.assign(e,{stsClientCtor:Ru.STSClient});Pn.resolveStsAuthConfig=Iu;var Tu=(e)=>{let t=Pn.resolveStsAuthConfig(e),r=(0,En.resolveAwsSdkSigV4Config)(t),n=(0,En.resolveAwsSdkSigV4AConfig)(r);return Object.assign(n,{authSchemePreference:(0,ye.normalizeProvider)(e.authSchemePreference??[])})};Pn.resolveHttpAuthSchemeConfig=Tu});var it=E((In)=>{Object.defineProperty(In,"__esModule",{value:!0});In.commonParams=In.resolveClientEndpointParameters=void 0;var Ou=(e)=>{return Object.assign(e,{useDualstackEndpoint:e.useDualstackEndpoint??!1,useFipsEndpoint:e.useFipsEndpoint??!1,useGlobalEndpoint:e.useGlobalEndpoint??!1,defaultSigningName:"sts"})};In.resolveClientEndpointParameters=Ou;In.commonParams={UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}});var he=E((ct)=>{Object.defineProperty(ct,"__esModule",{value:!0});ct.STSServiceException=ct.__ServiceException=void 0;var Sn=k();Object.defineProperty(ct,"__ServiceException",{enumerable:!0,get:function(){return Sn.ServiceException}});class ut extends Sn.ServiceException{constructor(e){super(e);Object.setPrototypeOf(this,ut.prototype)}}ct.STSServiceException=ut});var bt=E((On)=>{Object.defineProperty(On,"__esModule",{value:!0});On.IDPCommunicationErrorException=On.InvalidIdentityTokenException=On.IDPRejectedClaimException=On.RegionDisabledException=On.PackedPolicyTooLargeException=On.MalformedPolicyDocumentException=On.ExpiredTokenException=void 0;var j=he();class lt extends j.STSServiceException{name="ExpiredTokenException";$fault="client";constructor(e){super({name:"ExpiredTokenException",$fault:"client",...e});Object.setPrototypeOf(this,lt.prototype)}}On.ExpiredTokenException=lt;class dt extends j.STSServiceException{name="MalformedPolicyDocumentException";$fault="client";constructor(e){super({name:"MalformedPolicyDocumentException",$fault:"client",...e});Object.setPrototypeOf(this,dt.prototype)}}On.MalformedPolicyDocumentException=dt;class pt extends j.STSServiceException{name="PackedPolicyTooLargeException";$fault="client";constructor(e){super({name:"PackedPolicyTooLargeException",$fault:"client",...e});Object.setPrototypeOf(this,pt.prototype)}}On.PackedPolicyTooLargeException=pt;class ft extends j.STSServiceException{name="RegionDisabledException";$fault="client";constructor(e){super({name:"RegionDisabledException",$fault:"client",...e});Object.setPrototypeOf(this,ft.prototype)}}On.RegionDisabledException=ft;class gt extends j.STSServiceException{name="IDPRejectedClaimException";$fault="client";constructor(e){super({name:"IDPRejectedClaimException",$fault:"client",...e});Object.setPrototypeOf(this,gt.prototype)}}On.IDPRejectedClaimException=gt;class yt extends j.STSServiceException{name="InvalidIdentityTokenException";$fault="client";constructor(e){super({name:"InvalidIdentityTokenException",$fault:"client",...e});Object.setPrototypeOf(this,yt.prototype)}}On.InvalidIdentityTokenException=yt;class ht extends j.STSServiceException{name="IDPCommunicationErrorException";$fault="client";$retryable={};constructor(e){super({name:"IDPCommunicationErrorException",$fault:"client",...e});Object.setPrototypeOf(this,ht.prototype)}}On.IDPCommunicationErrorException=ht});var Pt=E((Wn)=>{Object.defineProperty(Wn,"__esModule",{value:!0});Wn.AssumeRoleWithWebIdentity$=Wn.AssumeRole$=Wn.Tag$=Wn.ProvidedContext$=Wn.PolicyDescriptorType$=Wn.Credentials$=Wn.AssumeRoleWithWebIdentityResponse$=Wn.AssumeRoleWithWebIdentityRequest$=Wn.AssumeRoleResponse$=Wn.AssumeRoleRequest$=Wn.AssumedRoleUser$=Wn.errorTypeRegistries=Wn.RegionDisabledException$=Wn.PackedPolicyTooLargeException$=Wn.MalformedPolicyDocumentException$=Wn.InvalidIdentityTokenException$=Wn.IDPRejectedClaimException$=Wn.IDPCommunicationErrorException$=Wn.ExpiredTokenException$=Wn.STSServiceException$=void 0;var Mu="Arn",Fu="AccessKeyId",Lu="AssumeRole",Gu="AssumedRoleId",Wu="AssumeRoleRequest",Ku="AssumeRoleResponse",mt="AssumedRoleUser",zu="AssumeRoleWithWebIdentity",qu="AssumeRoleWithWebIdentityRequest",Vu="AssumeRoleWithWebIdentityResponse",ku="Audience",At="Credentials",Qu="ContextAssertion",xn="DurationSeconds",Bu="Expiration",Xu="ExternalId",Yu="ExpiredTokenException",Zu="IDPCommunicationErrorException",Ju="IDPRejectedClaimException",ec="InvalidIdentityTokenException",tc="Key",rc="MalformedPolicyDocumentException",jn="Policy",$n="PolicyArns",nc="ProviderArn",sc="ProvidedContexts",oc="ProvidedContextsListType",ac="ProvidedContext",ic="PolicyDescriptorType",uc="ProviderId",Hn="PackedPolicySize",cc="PackedPolicyTooLargeException",lc="Provider",Cn="RoleArn",dc="RegionDisabledException",Un="RoleSessionName",pc="SecretAccessKey",fc="SubjectFromWebIdentityToken",Et="SourceIdentity",gc="SerialNumber",yc="SessionToken",hc="Tags",bc="TokenCode",mc="TransitiveTagKeys",Ac="Tag",Ec="Value",Rc="WebIdentityToken",wc="arn",Pc="accessKeySecretType",$="awsQueryError",H="client",vc="clientTokenType",C="error",U="httpError",M="message",Dc="policyDescriptorListType",Mn="smithy.ts.sdk.synthetic.com.amazonaws.sts",Ic="tagListType",m="com.amazonaws.sts",Fn=Fe(),F=bt(),Tc=he(),Ln=Fn.TypeRegistry.for(Mn);Wn.STSServiceException$=[-3,Mn,"STSServiceException",0,[],[]];Ln.registerError(Wn.STSServiceException$,Tc.STSServiceException);var _=Fn.TypeRegistry.for(m);Wn.ExpiredTokenException$=[-3,m,Yu,{[$]:["ExpiredTokenException",400],[C]:H,[U]:400},[M],[0]];_.registerError(Wn.ExpiredTokenException$,F.ExpiredTokenException);Wn.IDPCommunicationErrorException$=[-3,m,Zu,{[$]:["IDPCommunicationError",400],[C]:H,[U]:400},[M],[0]];_.registerError(Wn.IDPCommunicationErrorException$,F.IDPCommunicationErrorException);Wn.IDPRejectedClaimException$=[-3,m,Ju,{[$]:["IDPRejectedClaim",403],[C]:H,[U]:403},[M],[0]];_.registerError(Wn.IDPRejectedClaimException$,F.IDPRejectedClaimException);Wn.InvalidIdentityTokenException$=[-3,m,ec,{[$]:["InvalidIdentityToken",400],[C]:H,[U]:400},[M],[0]];_.registerError(Wn.InvalidIdentityTokenException$,F.InvalidIdentityTokenException);Wn.MalformedPolicyDocumentException$=[-3,m,rc,{[$]:["MalformedPolicyDocument",400],[C]:H,[U]:400},[M],[0]];_.registerError(Wn.MalformedPolicyDocumentException$,F.MalformedPolicyDocumentException);Wn.PackedPolicyTooLargeException$=[-3,m,cc,{[$]:["PackedPolicyTooLarge",400],[C]:H,[U]:400},[M],[0]];_.registerError(Wn.PackedPolicyTooLargeException$,F.PackedPolicyTooLargeException);Wn.RegionDisabledException$=[-3,m,dc,{[$]:["RegionDisabledException",403],[C]:H,[U]:403},[M],[0]];_.registerError(Wn.RegionDisabledException$,F.RegionDisabledException);Wn.errorTypeRegistries=[Ln,_];var Sc=[0,m,Pc,8,0],_c=[0,m,vc,8,0];Wn.AssumedRoleUser$=[3,m,mt,0,[Gu,Mu],[0,0],2];Wn.AssumeRoleRequest$=[3,m,Wu,0,[Cn,Un,$n,jn,xn,hc,mc,Xu,gc,bc,Et,sc],[0,0,()=>Gn,0,1,()=>Nc,64,0,0,0,0,()=>Oc],2];Wn.AssumeRoleResponse$=[3,m,Ku,0,[At,mt,Hn,Et],[[()=>Wn.Credentials$,0],()=>Wn.AssumedRoleUser$,1,0]];Wn.AssumeRoleWithWebIdentityRequest$=[3,m,qu,0,[Cn,Un,Rc,uc,$n,jn,xn],[0,0,[()=>_c,0],0,()=>Gn,0,1],3];Wn.AssumeRoleWithWebIdentityResponse$=[3,m,Vu,0,[At,fc,mt,Hn,lc,ku,Et],[[()=>Wn.Credentials$,0],0,()=>Wn.AssumedRoleUser$,1,0,0,0]];Wn.Credentials$=[3,m,At,0,[Fu,pc,yc,Bu],[0,[()=>Sc,0],0,4],4];Wn.PolicyDescriptorType$=[3,m,ic,0,[wc],[0]];Wn.ProvidedContext$=[3,m,ac,0,[nc,Qu],[0,0]];Wn.Tag$=[3,m,Ac,0,[tc,Ec],[0,0],2];var Gn=[1,m,Dc,0,()=>Wn.PolicyDescriptorType$],Oc=[1,m,oc,0,()=>Wn.ProvidedContext$],Nc=[1,m,Ic,0,()=>Wn.Tag$];Wn.AssumeRole$=[9,m,Lu,0,()=>Wn.AssumeRoleRequest$,()=>Wn.AssumeRoleResponse$];Wn.AssumeRoleWithWebIdentity$=[9,m,zu,0,()=>Wn.AssumeRoleWithWebIdentityRequest$,()=>Wn.AssumeRoleWithWebIdentityResponse$]});var ls=E((us)=>{Object.defineProperty(us,"__esModule",{value:!0});us.getRuntimeConfig=void 0;var os=nt(),Uc=cr(),Mc=Ye(),Fc=ie(),Lc=k(),Gc=$c(),as=Cc(),is=Hc(),Wc=ot(),Kc=tt(),zc=Pt(),qc=(e)=>{return{apiVersion:"2011-06-15",base64Decoder:e?.base64Decoder??as.fromBase64,base64Encoder:e?.base64Encoder??as.toBase64,disableHostPrefix:e?.disableHostPrefix??!1,endpointProvider:e?.endpointProvider??Kc.defaultEndpointResolver,extensions:e?.extensions??[],httpAuthSchemeProvider:e?.httpAuthSchemeProvider??Wc.defaultSTSHttpAuthSchemeProvider,httpAuthSchemes:e?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:(t)=>t.getIdentityProvider("aws.auth#sigv4"),signer:new os.AwsSdkSigV4Signer},{schemeId:"aws.auth#sigv4a",identityProvider:(t)=>t.getIdentityProvider("aws.auth#sigv4a"),signer:new os.AwsSdkSigV4ASigner},{schemeId:"smithy.api#noAuth",identityProvider:(t)=>t.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),signer:new Fc.NoAuthSigner}],logger:e?.logger??new Lc.NoOpLogger,protocol:e?.protocol??Uc.AwsQueryProtocol,protocolSettings:e?.protocolSettings??{defaultNamespace:"com.amazonaws.sts",errorTypeRegistries:zc.errorTypeRegistries,xmlNamespace:"https://sts.amazonaws.com/doc/2011-06-15/",version:"2011-06-15",serviceTarget:"AWSSecurityTokenServiceV20110615"},serviceId:e?.serviceId??"STS",signerConstructor:e?.signerConstructor??Mc.SignatureV4MultiRegion,urlParser:e?.urlParser??Gc.parseUrl,utf8Decoder:e?.utf8Decoder??is.fromUtf8,utf8Encoder:e?.utf8Encoder??is.toUtf8}};us.getRuntimeConfig=qc});var As=E((bs)=>{Object.defineProperty(bs,"__esModule",{value:!0});bs.getRuntimeConfig=void 0;var tl=Qc(),rl=tl.__importDefault(Bc()),nl=Le(),be=nt(),ds=Xc(),me=ys(),sl=ie(),ol=Yc(),ps=hs(),O=Zc(),fs=Vc(),gs=k(),al=Jc(),il=el(),ul=kc(),cl=ls(),ll=(e)=>{(0,gs.emitWarningIfUnsupportedVersion)(process.version);let t=(0,il.resolveDefaultsModeConfig)(e),r=()=>t().then(gs.loadConfigsForDefaultMode),n=(0,cl.getRuntimeConfig)(e);(0,nl.emitWarningIfUnsupportedVersion)(process.version);let s={profile:e?.profile,logger:n.logger};return{...n,...e,runtime:"node",defaultsMode:t,authSchemePreference:e?.authSchemePreference??(0,O.loadConfig)(be.NODE_AUTH_SCHEME_PREFERENCE_OPTIONS,s),bodyLengthChecker:e?.bodyLengthChecker??al.calculateBodyLength,defaultUserAgentProvider:e?.defaultUserAgentProvider??(0,ds.createDefaultUserAgentProvider)({serviceId:n.serviceId,clientVersion:rl.default.version}),httpAuthSchemes:e?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:(o)=>o.getIdentityProvider("aws.auth#sigv4")||(async(a)=>await e.credentialDefaultProvider(a?.__config||{})()),signer:new be.AwsSdkSigV4Signer},{schemeId:"aws.auth#sigv4a",identityProvider:(o)=>o.getIdentityProvider("aws.auth#sigv4a"),signer:new be.AwsSdkSigV4ASigner},{schemeId:"smithy.api#noAuth",identityProvider:(o)=>o.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),signer:new sl.NoAuthSigner}],maxAttempts:e?.maxAttempts??(0,O.loadConfig)(ps.NODE_MAX_ATTEMPT_CONFIG_OPTIONS,e),region:e?.region??(0,O.loadConfig)(me.NODE_REGION_CONFIG_OPTIONS,{...me.NODE_REGION_CONFIG_FILE_OPTIONS,...s}),requestHandler:fs.NodeHttpHandler.create(e?.requestHandler??r),retryMode:e?.retryMode??(0,O.loadConfig)({...ps.NODE_RETRY_MODE_CONFIG_OPTIONS,default:async()=>(await r()).retryMode||ul.DEFAULT_RETRY_MODE},e),sha256:e?.sha256??ol.Hash.bind(null,"sha256"),sigv4aSigningRegionSet:e?.sigv4aSigningRegionSet??(0,O.loadConfig)(be.NODE_SIGV4A_CONFIG_OPTIONS,s),streamCollector:e?.streamCollector??fs.streamCollector,useDualstackEndpoint:e?.useDualstackEndpoint??(0,O.loadConfig)(me.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS,s),useFipsEndpoint:e?.useFipsEndpoint??(0,O.loadConfig)(me.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS,s),userAgentAppId:e?.userAgentAppId??(0,O.loadConfig)(ds.NODE_APP_ID_CONFIG_OPTIONS,s)}};bs.getRuntimeConfig=ll});var ws=E((Es)=>{Object.defineProperty(Es,"__esModule",{value:!0});Es.resolveHttpAuthRuntimeConfig=Es.getHttpAuthExtensionConfiguration=void 0;var dl=(e)=>{let{httpAuthSchemes:t,httpAuthSchemeProvider:r,credentials:n}=e;return{setHttpAuthScheme(s){let o=t.findIndex((a)=>a.schemeId===s.schemeId);if(o===-1)t.push(s);else t.splice(o,1,s)},httpAuthSchemes(){return t},setHttpAuthSchemeProvider(s){r=s},httpAuthSchemeProvider(){return r},setCredentials(s){n=s},credentials(){return n}}};Es.getHttpAuthExtensionConfiguration=dl;var pl=(e)=>{return{httpAuthSchemes:e.httpAuthSchemes(),httpAuthSchemeProvider:e.httpAuthSchemeProvider(),credentials:e.credentials()}};Es.resolveHttpAuthRuntimeConfig=pl});var Os=E((Ss)=>{Object.defineProperty(Ss,"__esModule",{value:!0});Ss.resolveRuntimeExtensions=void 0;var Ps=Ts(),vs=gl(),Ds=k(),Is=ws(),yl=(e,t)=>{let r=Object.assign((0,Ps.getAwsRegionExtensionConfiguration)(e),(0,Ds.getDefaultExtensionConfiguration)(e),(0,vs.getHttpHandlerExtensionConfiguration)(e),(0,Is.getHttpAuthExtensionConfiguration)(e));return t.forEach((n)=>n.configure(r)),Object.assign(e,(0,Ps.resolveAwsRegionExtensionConfiguration)(r),(0,Ds.resolveDefaultRuntimeConfig)(r),(0,vs.resolveHttpHandlerRuntimeConfig)(r),(0,Is.resolveHttpAuthRuntimeConfig)(r))};Ss.resolveRuntimeExtensions=yl});var at=E((Dt)=>{Object.defineProperty(Dt,"__esModule",{value:!0});Dt.STSClient=Dt.__Client=void 0;var Ns=hl(),Rl=bl(),wl=ml(),xs=Al(),Pl=ys(),vt=ie(),vl=Fe(),Dl=El(),Il=st(),js=hs(),Hs=k();Object.defineProperty(Dt,"__Client",{enumerable:!0,get:function(){return Hs.Client}});var $s=ot(),Tl=it(),Sl=As(),_l=Os();class Cs extends Hs.Client{config;constructor(...[e]){let t=(0,Sl.getRuntimeConfig)(e||{});super(t);this.initConfig=t;let r=(0,Tl.resolveClientEndpointParameters)(t),n=(0,xs.resolveUserAgentConfig)(r),s=(0,js.resolveRetryConfig)(n),o=(0,Pl.resolveRegionConfig)(s),a=(0,Ns.resolveHostHeaderConfig)(o),u=(0,Il.resolveEndpointConfig)(a),i=(0,$s.resolveHttpAuthSchemeConfig)(u),d=(0,_l.resolveRuntimeExtensions)(i,e?.extensions||[]);this.config=d,this.middlewareStack.use((0,vl.getSchemaSerdePlugin)(this.config)),this.middlewareStack.use((0,xs.getUserAgentPlugin)(this.config)),this.middlewareStack.use((0,js.getRetryPlugin)(this.config)),this.middlewareStack.use((0,Dl.getContentLengthPlugin)(this.config)),this.middlewareStack.use((0,Ns.getHostHeaderPlugin)(this.config)),this.middlewareStack.use((0,Rl.getLoggerPlugin)(this.config)),this.middlewareStack.use((0,wl.getRecursionDetectionPlugin)(this.config)),this.middlewareStack.use((0,vt.getHttpAuthSchemeEndpointRuleSetPlugin)(this.config,{httpAuthSchemeParametersProvider:$s.defaultSTSHttpAuthSchemeParametersProvider,identityProviderConfigProvider:async(l)=>new vt.DefaultIdentityProviderConfig({"aws.auth#sigv4":l.credentials,"aws.auth#sigv4a":l.credentials})})),this.middlewareStack.use((0,vt.getHttpSigningPlugin)(this.config))}destroy(){super.destroy()}}Dt.STSClient=Cs});var zl=E((I)=>{var L=at(),Ee=k(),Ms=st(),Fs=it(),Q=Pt(),Ae=bt(),It=Le(),Ol=Ts(),Nl=he();class Re extends Ee.Command.classBuilder().ep(Fs.commonParams).m(function(e,t,r,n){return[Ms.getEndpointPlugin(r,e.getEndpointParameterInstructions())]}).s("AWSSecurityTokenServiceV20110615","AssumeRole",{}).n("STSClient","AssumeRoleCommand").sc(Q.AssumeRole$).build(){}class we extends Ee.Command.classBuilder().ep(Fs.commonParams).m(function(e,t,r,n){return[Ms.getEndpointPlugin(r,e.getEndpointParameterInstructions())]}).s("AWSSecurityTokenServiceV20110615","AssumeRoleWithWebIdentity",{}).n("STSClient","AssumeRoleWithWebIdentityCommand").sc(Q.AssumeRoleWithWebIdentity$).build(){}var xl={AssumeRoleCommand:Re,AssumeRoleWithWebIdentityCommand:we};class Tt extends L.STSClient{}Ee.createAggregatedClient(xl,Tt);var Ls=(e)=>{if(typeof e?.Arn==="string"){let t=e.Arn.split(":");if(t.length>4&&t[4]!=="")return t[4]}return},Gs=async(e,t,r,n={})=>{let s=typeof e==="function"?await e():e,o=typeof t==="function"?await t():t,a="",u=s??o??(a=await Ol.stsRegionDefaultResolver(n)());return r?.debug?.("@aws-sdk/client-sts::resolveRegion","accepting first of:",`${s} (credential provider clientConfig)`,`${o} (contextual client)`,`${a} (STS default: AWS_REGION, profile region, or us-east-1)`),u},jl=(e,t)=>{let r,n;return async(s,o)=>{if(n=s,!r){let{logger:l=e?.parentClientConfig?.logger,profile:b=e?.parentClientConfig?.profile,region:y,requestHandler:h=e?.parentClientConfig?.requestHandler,credentialProviderLogger:R,userAgentAppId:g=e?.parentClientConfig?.userAgentAppId}=e,T=await Gs(y,e?.parentClientConfig?.region,R,{logger:l,profile:b}),Pe=!Ws(h);r=new t({...e,userAgentAppId:g,profile:b,credentialDefaultProvider:()=>async()=>n,region:T,requestHandler:Pe?h:void 0,logger:l})}let{Credentials:a,AssumedRoleUser:u}=await r.send(new Re(o));if(!a||!a.AccessKeyId||!a.SecretAccessKey)throw Error(`Invalid response from STS.assumeRole call with role ${o.RoleArn}`);let i=Ls(u),d={accessKeyId:a.AccessKeyId,secretAccessKey:a.SecretAccessKey,sessionToken:a.SessionToken,expiration:a.Expiration,...a.CredentialScope&&{credentialScope:a.CredentialScope},...i&&{accountId:i}};return It.setCredentialFeature(d,"CREDENTIALS_STS_ASSUME_ROLE","i"),d}},$l=(e,t)=>{let r;return async(n)=>{if(!r){let{logger:i=e?.parentClientConfig?.logger,profile:d=e?.parentClientConfig?.profile,region:l,requestHandler:b=e?.parentClientConfig?.requestHandler,credentialProviderLogger:y,userAgentAppId:h=e?.parentClientConfig?.userAgentAppId}=e,R=await Gs(l,e?.parentClientConfig?.region,y,{logger:i,profile:d}),g=!Ws(b);r=new t({...e,userAgentAppId:h,profile:d,region:R,requestHandler:g?b:void 0,logger:i})}let{Credentials:s,AssumedRoleUser:o}=await r.send(new we(n));if(!s||!s.AccessKeyId||!s.SecretAccessKey)throw Error(`Invalid response from STS.assumeRoleWithWebIdentity call with role ${n.RoleArn}`);let a=Ls(o),u={accessKeyId:s.AccessKeyId,secretAccessKey:s.SecretAccessKey,sessionToken:s.SessionToken,expiration:s.Expiration,...s.CredentialScope&&{credentialScope:s.CredentialScope},...a&&{accountId:a}};if(a)It.setCredentialFeature(u,"RESOLVED_ACCOUNT_ID","T");return It.setCredentialFeature(u,"CREDENTIALS_STS_ASSUME_ROLE_WEB_ID","k"),u}},Ws=(e)=>{return e?.metadata?.handlerProtocol==="h2"},Ks=(e,t)=>{if(!t)return e;else return class extends e{constructor(n){super(n);for(let s of t)this.middlewareStack.use(s)}}},zs=(e={},t)=>jl(e,Ks(L.STSClient,t)),qs=(e={},t)=>$l(e,Ks(L.STSClient,t)),Hl=(e)=>(t)=>e({roleAssumer:zs(t),roleAssumerWithWebIdentity:qs(t),...t});I.$Command=Ee.Command;I.STSServiceException=Nl.STSServiceException;I.AssumeRoleCommand=Re;I.AssumeRoleWithWebIdentityCommand=we;I.STS=Tt;I.decorateDefaultCredentialProvider=Hl;I.getDefaultRoleAssumer=zs;I.getDefaultRoleAssumerWithWebIdentity=qs;Object.prototype.hasOwnProperty.call(L,"__proto__")&&!Object.prototype.hasOwnProperty.call(I,"__proto__")&&Object.defineProperty(I,"__proto__",{enumerable:!0,value:L.__proto__});Object.keys(L).forEach(function(e){if(e!=="default"&&!Object.prototype.hasOwnProperty.call(I,e))I[e]=L[e]});Object.prototype.hasOwnProperty.call(Q,"__proto__")&&!Object.prototype.hasOwnProperty.call(I,"__proto__")&&Object.defineProperty(I,"__proto__",{enumerable:!0,value:Q.__proto__});Object.keys(Q).forEach(function(e){if(e!=="default"&&!Object.prototype.hasOwnProperty.call(I,e))I[e]=Q[e]});Object.prototype.hasOwnProperty.call(Ae,"__proto__")&&!Object.prototype.hasOwnProperty.call(I,"__proto__")&&Object.defineProperty(I,"__proto__",{enumerable:!0,value:Ae.__proto__});Object.keys(Ae).forEach(function(e){if(e!=="default"&&!Object.prototype.hasOwnProperty.call(I,e))I[e]=Ae[e]})});
|
|
25
|
+
export{zl as o_};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{Be as Tq,xe as Jq}from"./cli-1.1.27-r32k5nw7.mjs";import{Ge as zq,He as bq}from"./cli-1.1.27-mqt20a61.mjs";import{BM as l,FM as t,KI as h,KM as e,LI as fq,MM as Rq,SG as r,TG as Gq,TM as qq,XM as Fq,fM as S,iM as Nq,lN as D,oN as Cq,tM as s,uM as _q,yM as a,yo as n,zo as yq}from"./cli-1.1.27-w8pwj9ef.mjs";import{F1 as F,H1 as C,YZ as i,ZZ as Kq,g0 as Bq,k2 as Oq}from"./cli-1.1.27-6spv5ha8.mjs";import{U4 as v,V4 as R,W4 as p}from"./cli-1.1.27-kgpk1m6k.mjs";import{X4 as Lq}from"./cli-1.1.27-m5wtrd2b.mjs";import{I$ as $,Iaa as o,Jaa as Hq,K$ as Xq,Nba as vq,Sha as m,_ha as wq,qba as x,v$ as g,w$ as Zq}from"./cli-1.1.27-48ezce33.mjs";import{Ala as Yq,xla as B}from"./cli-1.1.27-r335xv52.mjs";import{Wla as P,Zla as u,cma as Wq}from"./cli-1.1.27-0rz9qd34.mjs";import{Ita as d,Mta as Vq}from"./cli-1.1.27-8vrv0ver.mjs";import{readFile as c}from"fs/promises";import{join as j}from"path";function Qq(){return s}function Aq(){return Mq}function Uq(){return`thinkback@${Qq()}`}async function jq(){let{enabled:H}=await D(),q=H.find((U)=>U.name==="thinkback"||U.source&&U.source.includes(Uq()));if(!q)return null;let J=j(q.path,"skills",Sq);if(await x(J))return J;return null}async function Iq(H){let q=j(H,"year_in_review.js"),J=j(H,"player.js");try{await c(q)}catch(z){if(u(z))return{success:!1,message:"No animation found. Run /think-back first to generate one."};return m(z),{success:!1,message:`Could not access animation data: ${P(z).message}`}}try{await c(J)}catch(z){if(u(z))return{success:!1,message:"Player script not found. The player.js file is missing from the thinkback skill."};return m(z),{success:!1,message:`Could not access player script: ${P(z).message}`}}let U=i.get(process.stdout);if(!U)return{success:!1,message:"Failed to access terminal instance"};U.enterAlternateScreen();try{await g("node",[J],{stdio:"inherit",cwd:H,reject:!1})}catch{}finally{U.exitAlternateScreen()}let O=j(H,"year_in_review.html");if(await x(O)){let z=o();$(z==="macos"?"open":z==="windows"?"start":"xdg-open",[O])}return{success:!0,message:"Year in review animation complete!"}}function Pq({onReady:H,onError:q}){let[J,U]=K.useState({phase:"checking"}),[O,z]=K.useState("");if(K.useEffect(()=>{async function Z(){try{let y=await l(),Y=Qq(),G=Aq(),X=Uq(),_=Y in y,L=qq(X);if(!_)U({phase:"installing-marketplace"}),B(`Installing marketplace ${G}`),await t({source:"github",repo:G},(V)=>{z(V)}),S(),B(`Marketplace ${Y} installed`);else if(!L)U({phase:"installing-marketplace"}),z("Updating marketplace…"),B(`Refreshing marketplace ${Y}`),await e(Y,(V)=>{z(V)}),a(),S(),B(`Marketplace ${Y} refreshed`);if(!L){U({phase:"installing-plugin"}),B(`Installing plugin ${X}`);let V=await zq([X]);if(V.failed.length>0){let w=V.failed.map((W)=>`${W.name}: ${W.error}`).join(", ");throw Error(`Failed to install plugin: ${w}`)}S(),B(`Plugin ${X} installed`)}else{let{disabled:V}=await D();if(V.some((W)=>W.name==="thinkback"||W.source?.includes(X))){U({phase:"enabling-plugin"}),B(`Enabling plugin ${X}`);let W=await Jq(X);if(!W.success)throw Error(`Failed to enable plugin: ${W.message}`);S(),B(`Plugin ${X} enabled`)}}U({phase:"ready"}),H()}catch(y){let Y=P(y);m(Y),U({phase:"error",message:Y.message}),q(Y.message)}}Z()},[H,q]),J.phase==="error")return v(F,{flexDirection:"column",children:R(C,{color:"error",children:["Error: ",J.message]})});if(J.phase==="ready")return null;let T=J.phase==="checking"?"Checking thinkback installation…":J.phase==="installing-marketplace"?"Installing marketplace…":J.phase==="enabling-plugin"?"Enabling thinkback plugin…":"Installing thinkback plugin…";return v(F,{flexDirection:"column",children:R(F,{children:[v(h,{}),v(C,{children:O||T})]})})}function mq(H){let q=k.c(19),{onDone:J,onAction:U,skillDir:O,hasGenerated:z}=H,[T,Z]=K.useState(!1),y;if(q[0]!==z)y=z?[{label:"Play animation",value:"play",description:"Watch your year in review"},{label:"Edit content",value:"edit",description:"Modify the animation"},{label:"Fix errors",value:"fix",description:"Fix validation or rendering issues"},{label:"Regenerate",value:"regenerate",description:"Create a new animation from scratch"}]:[{label:"Let's go!",value:"regenerate",description:"Generate your personalized animation"}],q[0]=z,q[1]=y;else y=q[1];let Y=y,G;if(q[2]!==U||q[3]!==J||q[4]!==O)G=function(b){if(Z(!0),b==="play")Iq(O).then(()=>{J(void 0,{display:"skip"})});else U(b)},q[2]=U,q[3]=J,q[4]=O,q[5]=G;else G=q[5];let X=G,_;if(q[6]!==J)_=function(){J(void 0,{display:"skip"})},q[6]=J,q[7]=_;else _=q[7];let L=_;if(T)return null;let V;if(q[8]!==z)V=!z&&R(F,{flexDirection:"column",children:[v(C,{children:"Relive your year of coding with Claude."}),v(C,{dimColor:!0,children:"We'll create a personalized ASCII animation celebrating your journey."})]}),q[8]=z,q[9]=V;else V=q[9];let w;if(q[10]!==X||q[11]!==Y)w=v(r,{options:Y,onChange:X,visibleOptionCount:5}),q[10]=X,q[11]=Y,q[12]=w;else w=q[12];let W;if(q[13]!==V||q[14]!==w)W=R(F,{flexDirection:"column",gap:1,children:[V,w]}),q[13]=V,q[14]=w,q[15]=W;else W=q[15];let f;if(q[16]!==L||q[17]!==W)f=v(n,{title:"Think Back on 2025 with Claude Code",subtitle:"Generate your 2025 Claude Code Think Back (takes a few minutes to run)",onCancel:L,color:"claude",children:W}),q[16]=L,q[17]=W,q[18]=f;else f=q[18];return f}function hq(H){let q=k.c(27),{onDone:J}=H,[U,O]=K.useState(!1),[z,T]=K.useState(null),[Z,y]=K.useState(null),[Y,G]=K.useState(null),X;if(q[0]===Symbol.for("react.memo_cache_sentinel"))X=function(){O(!0)},q[0]=X;else X=q[0];let _=X,L;if(q[1]!==J)L=(Q)=>{T(Q),J(`Error with thinkback: ${Q}. Try running /plugin to manually install the think-back plugin.`,{display:"system"})},q[1]=J,q[2]=L;else L=q[2];let V=L,w,W;if(q[3]!==V||q[4]!==U||q[5]!==z||q[6]!==Z)w=()=>{if(U&&!Z&&!z)jq().then((Q)=>{if(Q)B(`Thinkback skill directory: ${Q}`),y(Q);else V("Could not find thinkback skill directory")})},W=[U,Z,z,V],q[3]=V,q[4]=U,q[5]=z,q[6]=Z,q[7]=w,q[8]=W;else w=q[7],W=q[8];K.useEffect(w,W);let f,M;if(q[9]!==Z)f=()=>{if(!Z)return;let Q=j(Z,"year_in_review.js");x(Q).then((N)=>{B(`Checking for ${Q}: ${N?"found":"not found"}`),G(N)})},M=[Z],q[9]=Z,q[10]=f,q[11]=M;else f=q[10],M=q[11];K.useEffect(f,M);let b;if(q[12]!==J)b=function(N){J({edit:xq,fix:Eq,regenerate:uq}[N],{display:"user",shouldQuery:!0})},q[12]=J,q[13]=b;else b=q[13];let E=b;if(z){let Q;if(q[14]!==z)Q=R(C,{color:"error",children:["Error: ",z]}),q[14]=z,q[15]=Q;else Q=q[15];let N;if(q[16]===Symbol.for("react.memo_cache_sentinel"))N=v(C,{dimColor:!0,children:"Try running /plugin to manually install the think-back plugin."}),q[16]=N;else N=q[16];let A;if(q[17]!==Q)A=R(F,{flexDirection:"column",children:[Q,N]}),q[17]=Q,q[18]=A;else A=q[18];return A}if(!U){let Q;if(q[19]!==V)Q=v(Pq,{onReady:_,onError:V}),q[19]=V,q[20]=Q;else Q=q[20];return Q}if(!Z||Y===null){let Q;if(q[21]===Symbol.for("react.memo_cache_sentinel"))Q=R(F,{children:[v(h,{}),v(C,{children:"Loading thinkback skill…"})]}),q[21]=Q;else Q=q[21];return Q}let I;if(q[22]!==E||q[23]!==Y||q[24]!==J||q[25]!==Z)I=v(mq,{onDone:J,onAction:E,skillDir:Z,hasGenerated:Y}),q[22]=E,q[23]=Y,q[24]=J,q[25]=Z,q[26]=I;else I=q[26];return I}async function Yz(H){return v(hq,{onDone:H})}var k,K,Mq="anthropics/claude-plugins-official",Sq="thinkback",xq='Use the Skill tool to invoke the "thinkback" skill with mode=edit to modify my existing Claude Code year in review animation. Ask me what I want to change. When the animation is ready, tell the user to run /think-back again to play it.',Eq='Use the Skill tool to invoke the "thinkback" skill with mode=fix to fix validation or rendering errors in my existing Claude Code year in review animation. Run the validator, identify errors, and fix them. When the animation is ready, tell the user to run /think-back again to play it.',uq='Use the Skill tool to invoke the "thinkback" skill with mode=regenerate to create a completely new Claude Code year in review animation from scratch. Delete the existing animation and start fresh. When the animation is ready, tell the user to run /think-back again to play it.';var Dq=Vq(()=>{Zq();Gq();yq();fq();Kq();Oq();Tq();Yq();Wq();Xq();vq();wq();Hq();Nq();Fq();Rq();_q();Cq();bq();p();k=d(Bq(),1),K=d(Lq(),1)});
|
|
2
|
+
export{Iq as ne,Yz as oe,Dq as pe};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import{BQ as E,CQ as MQ,Sm as h,Tm as wQ,Um as u,Vm as LQ,uj as jQ}from"./cli-1.1.27-w8pwj9ef.mjs";import{Ala as XQ,jla as U,nla as UQ,xla as j}from"./cli-1.1.27-r335xv52.mjs";import{Yla as _,cma as vQ}from"./cli-1.1.27-0rz9qd34.mjs";import{Ita as GQ,Mta as C}from"./cli-1.1.27-8vrv0ver.mjs";function WQ(Z){let Q=[],$=null;return Z.split(`
|
|
2
|
+
`).forEach((W,Y)=>{let J=r.exec(W);if(J){$=$===null?J[1]??"":null;return}Q.push({text:W,number:Y+1,fence:$})}),Q}function YQ(Z){return Z.split(/\s+/).map((Q)=>Q.replace(/[,;]+$/,"")).filter((Q)=>Q.length>0)}function qQ(Z){return Z.match(a)?.length??0}function JQ(Z,Q,$){let W="",Y=[];for(let{text:J,number:q,fence:z}of Z){if(z===null||b.has(z))continue;let V=s.exec(J);if(V?.[1]!==void 0){W=V[1],Y=[];continue}let H=l.exec(J);if(!H)continue;let K=qQ(H[1]??""),B=Y[K]??W,G=J.slice(H[0].length).split(o)[0]??"",w=!1,X=null;for(let L of YQ(G)){let S=t.exec(L);if(S?.[1]!==void 0&&X!==null){$.push({path:X,claimed:Number(S[1].replace(/,/g,"")),line:J,lineNumber:q}),X=null;continue}X=null;let y=n.test(L);if(!y&&!i.test(L))continue;let M=B+L;if(Q.push({path:M,line:J,lineNumber:q}),!y)continue;if(X=M,!w)Y[K+1]=M,w=!0}Y.length=Math.min(Y.length,K+2)}}function VQ(Z,Q,$){for(let{text:W,number:Y,fence:J}of Z){if(J!==null&&b.has(J))continue;for(let q of W.matchAll(e)){let z=q[1],V=q[2];if(z===void 0||V===void 0)continue;let H=QQ.exec(V);if(H?.[1]!==void 0){let B=H[2]?.toLowerCase()==="k"?1000:1,G=Math.round(Number(H[1].replace(/,/g,""))*B);if(Number.isFinite(G)&&G>0)Q.push({file:z,claimed:G,line:W,lineNumber:Y});continue}let K=V.split(",").map((B)=>B.trim());if(K.length===0||K.some((B)=>B.length===0))continue;if(!K.every((B)=>ZQ.test(B)&&$Q.test(B)))continue;$.push({file:z,symbols:K,line:W,lineNumber:Y})}}}function I(Z){let Q=WQ(Z),$={fencedPaths:[],dirCounts:[],attributions:[],lineCounts:[]};return JQ(Q,$.fencedPaths,$.dirCounts),VQ(Q,$.lineCounts,$.attributions),$}function A(Z,Q){if(Q.includes("/"))return Z.includes(Q)?Q:null;let $=null;for(let W of Z){if(!W.endsWith(`/${Q}`)&&W!==Q)continue;if($!==null)return null;$=W}return $}function T(Z,Q,$){let W=Q.endsWith("/")?Q:`${Q}/`;return Z.filter((Y)=>Y.startsWith(W)&&$.some((J)=>Y.endsWith(J))).length}function k(Z){let Q=Z.slice(Z.lastIndexOf("/")+1),$=Q.lastIndexOf(".");if($<=0)return null;return Q.slice($).toLowerCase()}function P(Z){let Q=new Map;for(let $ of Z){let W=k($);if(W===null)continue;Q.set(W,(Q.get(W)??0)+1)}return Q}function O(Z){let Q=[...Z.values()].reduce((J,q)=>J+q,0);if(Q===0)return[];let $=[...Z].sort(([,J],[,q])=>q-J),W=[],Y=0;for(let[J,q]of $){if(W.length>=KQ)break;if(W.length>0&&q/Q<BQ)break;if(W.push(J),Y+=q,Y/Q>=zQ)break}return W}function N(Z){let Q=Z.filter((W)=>{let Y=k(W);return Y!==null&&!HQ.has(Y)}),$=O(P(Q));return $.length>0?$:O(P(Z))}function p(Z,Q){return Math.abs(Q-Z)>Math.max(3,Z*0.1)}function x(Z,Q){return Q*2<Z||Z*2<Q}var b,r,l,a,s,o,n,i,t,e,QQ,ZQ,$Q,HQ,zQ=0.9,BQ=0.02,KQ=6;var F=C(()=>{b=new Set(["typescript","ts","tsx","javascript","js","jsx","json","jsonc","yaml","yml","diff","python","go","rust"]),r=/^\s*```(\S*)/,l=/^((?:[│|]\s{0,4}|\s{4}|\s{2})*)(?:├──|└──|├─|└─|\|--)\s*/,a=/[│|]\s{0,4}|\s{4}|\s{2}/g,s=/^((?:[\w.@-]+\/)+)\s*$/,o=/\s*(?:←|<-|<--)\s*/,n=/^[\w.@-]+\/$/,i=/^[\w.@-]*[\w-]\.[a-zA-Z]\w{0,3}$/,t=/^\((\d[\d,]*)\)$/,e=/((?:[\w.@-]+\/)*[\w.@-]*[\w-]\.[a-zA-Z]\w{0,3})`?\s*\(([^()\n]*)\)/g,QQ=/~?(\d[\d,]*(?:\.\d+)?)\s*(k?)[-\s]lines?\b/i,ZQ=/^[A-Za-z_$][\w$]*$/,$Q=/[a-z][A-Z]|_/;HQ=new Set([".md",".mdx",".txt",".json",".jsonc",".yml",".yaml",".toml",".mod",".ini",".cfg",".lock",".snap",".csv",".svg",".png",".jpg",".jpeg",".gif",".ico",".webp",".pdf",".pem",".exe",".bin",".wasm",".map"])});import{execFile as AQ}from"child_process";import{isAbsolute as f,join as v,relative as DQ,sep as R}from"path";import{promisify as SQ}from"util";async function RQ(Z){try{let{stdout:Q}=await OQ("git",["-c","core.quotepath=false","ls-files"],{cwd:Z,encoding:"utf8",timeout:CQ,maxBuffer:bQ});return Q.split(`
|
|
3
|
+
`).filter(($)=>$.length>0)}catch(Q){return j(`[rulesLint] git ls-files failed in ${Z}: ${String(Q)}`),null}}function gQ(Z){if(Z.length===0)return!1;if(NQ.some((Q)=>Z.includes(Q)))return!1;if(f(Z))return!1;if(!Z.includes("/"))return!1;return/^[\w.@-]+(?:\/[\w.@-]+)+\/?$/.test(Z)}function D(Z,Q){let $=U();if($.existsSync(v(Z,Q)))return!0;if(!g.test(Q))return!1;let W=Q.replace(g,"");return[".ts",".tsx"].some((Y)=>$.existsSync(v(Z,W+Y)))}function d(Z,Q){let $=Q.split("/")[0];if(!$)return!1;let W=U(),Y=v(Z,$);try{return W.existsSync(Y)&&W.statSync(Y).isDirectory()}catch{return!1}}function _Q(Z){let Q=new Set,$=[];for(let W of Z.split(`
|
|
4
|
+
`))for(let Y of W.matchAll(IQ)){let J=Y[1];if(!J)continue;let q=J.trim().replace(kQ,"").replace(TQ,"");if(gQ(q)&&!Q.has(q))Q.add(q),$.push({path:q,line:W})}return $}async function hQ(Z,Q){let $=U();try{let W=await $.readFile(v(Z,Q),{encoding:"utf8"}),Y=W.split(`
|
|
5
|
+
`).length;return W.endsWith(`
|
|
6
|
+
`)?Y-1:Y}catch(W){return j(`[rulesLint] unreadable source ${Q}: ${String(W)}`),null}}async function uQ(Z,Q){let $=h(Q);if($===null)return null;let W=U(),Y;try{Y=await W.readFile(v(Z,Q),{encoding:"utf8"})}catch(q){return j(`[rulesLint] unreadable source ${Q}: ${String(q)}`),null}if(xQ.test(Y))return null;let J=new Set(u(Y,$).map((q)=>q.name));for(let q of Y.matchAll(FQ))for(let z of(q[1]??"").split(",")){let V=z.trim().split(/\s+as\s+/).pop()?.trim();if(V)J.add(V.replace(/^type\s+/,""))}return J}async function EQ(Z,Q,$,W,Y){let J=N(W);for(let{path:q,lineNumber:z}of $.fencedPaths){if(!d(Z,q))continue;if(D(Z,q))continue;Y.push({file:Q,line:z,kind:"missing_path",severity:"warning",message:`names \`${q}\` inside a fenced block, which does not exist`,fix:"Update or remove it — a map that lists a directory the tree no longer has sends the agent to search for nothing."})}for(let{path:q,claimed:z,lineNumber:V}of $.dirCounts){if(!D(Z,q))continue;let H=T(W,q,J);if(!p(z,H))continue;Y.push({file:Q,line:V,kind:"dir_count_drift",severity:"warning",message:`says \`${q}\` holds ${z} files; it holds ${H}`,fix:"Re-count or run `bun run verify:rules --fix`. A gap this size means the slice moved, split or died, not that it grew."})}for(let{file:q,claimed:z,lineNumber:V}of $.lineCounts){let H=A(W,q);if(H===null)continue;let K=await hQ(Z,H);if(K===null||!x(z,K))continue;Y.push({file:Q,line:V,kind:"stale_line_count",severity:"warning",message:`says \`${H}\` is ~${z.toLocaleString()} lines; it is ${K.toLocaleString()}`,fix:"Re-measure, or point the claim at the directory — a barrel and its implementation siblings are the usual mix-up."})}for(let{file:q,symbols:z,lineNumber:V}of $.attributions){let H=A(W,q);if(H===null)continue;let K=await uQ(Z,H);if(K===null)continue;let B=z.filter((G)=>!K.has(G));if(B.length===0)continue;Y.push({file:Q,line:V,kind:"wrong_attribution",severity:"warning",message:`places ${B.map((G)=>`\`${G}\``).join(", ")} in \`${H}\`, which does not define ${B.length===1?"it":"them"}`,fix:"Attribute the symbol to the file that declares it — importing a name is not defining it, and the map is what decides where the agent greps."})}}async function c(Z){let Q=U(),$;try{$=await Q.readdir(Z)}catch(Y){let J=_(Y);if(J==="ENOENT"||J==="EACCES"||J==="ENOTDIR")return[];throw Y}let W=[];for(let Y of $){let J=v(Z,Y.name);if(Y.isDirectory())W.push(...await c(J));else if(Y.isFile()&&Y.name.endsWith(".md"))W.push(J)}return W.sort()}function mQ(Z,Q){let $=m.default().add(Z);return Q.some((W)=>{if(W.startsWith("..")||f(W))return!1;return $.ignores(W)})}async function QZ(Z={}){let Q=U(),$=Z.root??Q.cwd(),W=await c(v($,PQ)),Y=yQ.map((V)=>v($,V)).filter((V)=>Q.existsSync(V)),J=Z.trackedFiles??await RQ($)??null,q=[],z=[];for(let V of[...W,...Y]){let H;try{H=await Q.readFile(V,{encoding:"utf8"})}catch(G){j(`[rulesLint] unreadable rule file ${V}: ${String(G)}`);continue}let K=!V.includes(`${R}rules${R}`),B=E(H);if(K)z.push({file:V,chars:H.length});if(!K){for(let G of B.unsupportedKeys)q.push({file:V,kind:"unsupported_key",severity:"error",message:`frontmatter key \`${G}\` is not supported and is ignored`,fix:G==="globs"?"Rename `globs:` to `paths:` — as written, the rule loads into every session instead of the files you scoped it to.":"Remove the key. Only `paths` is read; anything else leaves the rule unconditional."});if(B.malformedPaths)q.push({file:V,kind:"malformed_paths",severity:"error",message:"`paths:` is not a string or a list of strings",fix:'Write `paths: "src/**/*.ts"` or a YAML list of strings.'});if(!B.paths)z.push({file:V,chars:H.length});else if(J){if(!mQ(B.paths,J))q.push({file:V,kind:"inert_paths",severity:"error",message:`\`paths:\` matches no tracked file (${B.paths.join(", ")})`,fix:"Fix the patterns. As written the rule never loads, which is indistinguishable from a working rule at runtime."})}}for(let{path:G,line:w}of _Q(B.content)){if(!d($,G))continue;if(D($,G))continue;if(pQ.test(w))continue;q.push({file:V,kind:"missing_path",severity:"warning",message:`cites \`${G}\`, which does not exist`,fix:"Update or remove the reference — a rule that names a moved file sends the agent to the wrong place."})}if(J)await EQ($,V,I(H),J,q)}return{findings:q,unconditional:z,unconditionalChars:z.reduce((V,H)=>V+H.chars,0),filesChecked:W.length+Y.length}}function ZZ(Z,Q){let $=DQ(Z,Q);return $.length>0&&!$.startsWith("..")?$:Q}var m,yQ,PQ,OQ,CQ=1e4,bQ=33554432,IQ,TQ,kQ,NQ,pQ,g,xQ,FQ;var fQ=C(()=>{XQ();vQ();UQ();MQ();F();wQ();LQ();m=GQ(jQ(),1),yQ=["AGENTS.md","CLAUDE.md"],PQ=v(".claudin","rules"),OQ=SQ(AQ),IQ=/`([^`\n]+)`/g,TQ=/:\d+(?:-\d+)?$/,kQ=/[.,;:)\]]+$/,NQ=["<",">","*","~","...","$","|","://"," ","path/to"],pQ=/\b(removed|deleted|dropped|no longer|used to|formerly|superseded)\b/i,g=/\.js$/,xQ=/^\s*export\s+\*\s+from\s/m,FQ=/^\s*export\s*\{([^}]*)\}/gm});
|
|
7
|
+
export{o as Gg,I as Hg,A as Ig,T as Jg,N as Kg,p as Lg,x as Mg,F as Ng,RQ as Og,QZ as Pg,ZZ as Qg,fQ as Rg};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{Bi as C,Ci as t}from"./cli-1.1.27-14xp8pk4.mjs";import{Di as p,Ei as e}from"./cli-1.1.27-b42yen3p.mjs";import{SY as L,TY as i}from"./cli-1.1.27-9chfrr9e.mjs";import{F1 as b,H1 as P,k2 as s}from"./cli-1.1.27-6spv5ha8.mjs";import{U4 as M,W4 as y}from"./cli-1.1.27-kgpk1m6k.mjs";import{X4 as n}from"./cli-1.1.27-m5wtrd2b.mjs";import{r$ as T,s$ as m}from"./cli-1.1.27-48ezce33.mjs";import{dia as $,eia as o,fia as S,gia as v,iia as W,via as d}from"./cli-1.1.27-fw9r8cwg.mjs";import{Ita as a,Mta as l}from"./cli-1.1.27-8vrv0ver.mjs";function Zq(J,q,Y){if(J.startsWith("file-"))return Y?C(q):"+";if(J.startsWith("mcp-resource-"))return"◇";if(J.startsWith("agent-"))return"*";return"+"}function x(J){return J.startsWith("file-")||J.startsWith("mcp-resource-")||J.startsWith("agent-")}function $q(J){let q=J.metadata?.type;return q==="directory"||q==="file"}function Gq(J,q,Y){if(q<=0||Y<=0)return[];let G=J.replace(Yq," ").trim();if(G==="")return[];let Q=[],K="";for(let z of G.split(" ")){if(K==="")K=z;else if($(K)+1+$(z)<=q)K=`${K} ${z}`;else Q.push(K),K=z;while($(K)>q){let H=W(K,q);if(H==="")break;Q.push(H),K=K.slice(H.length)}if(Q.length>Y)break}if(K!=="")Q.push(K);if(Q.length<=Y)return Q;let O=Q.slice(Y-1).join(" "),A=Q.slice(0,Y);return A[Y-1]=$(O)<=q?O:v(O,q),A}function c(J,q,Y){let G=Math.floor(q*0.4),Q=Math.min(Y??$(J.displayText)+5,G),K=J.displayText;if($(K)>Q-2)K=v(K,Q-2);let O=$q(J)?`${h?C(J.displayText):"+"} `:"",A=J.tag?`[${J.tag}] `:"",z=Math.max(0,q-R-Q-$(A)-4),H=J.description?Gq(J.description,z,Kq):[];return{displayText:K,displayTextWidth:Q,pathIcon:O,tagText:A,descriptionLines:H}}function Oq(J,q,Y){if(x(J.id))return 1;return Math.max(1,c(J,q,Y).descriptionLines.length)}function Aq({suggestions:J,selectedSuggestion:q,maxColumnWidth:Y,overlay:G}){let{columns:Q,rows:K}=L(),O=Math.max(1,K-2),A=O>=qq?Math.min(Jq,O):O;if(J.length===0)return null;let z=Y??Math.max(...J.map((Z)=>$(Z.displayText)))+5,H=J.map((Z)=>Oq(Z,Q,z)),N=(Z)=>Math.max(0,Math.min(q-Math.floor(Z/2),J.length-Z)),U=Math.min(A,J.length);while(U>1){let Z=N(U);if(H.slice(Z,Z+U).reduce((B,j)=>B+j,0)<=O)break;U--}let V=N(U),X=Math.min(V+U,J.length),F=J.slice(V,X);return M(b,{flexDirection:"column",justifyContent:G?void 0:"flex-end",children:F.map((Z)=>M(zq,{item:Z,maxColumnWidth:z,isSelected:Z.id===J[q]?.id},`${Z.id}:${Z.id===J[q]?.id?"selected":"idle"}`))})}var E,qq=8,Jq=15,Kq=2,I,Qq=" ",R,Yq,h,zq,bq;var Uq=l(()=>{m();i();o();s();t();d();e();y();E=a(n(),1),I=`${T.pointer} `,R=$(I),Yq=/\s+/g,h=p();zq=E.memo(function({item:q,maxColumnWidth:Y,isSelected:G}){let Q=L().columns,K=G?I:Qq,O=G?"suggestion":void 0,A=G?"inverseText":void 0;if(x(q.id)){let k=Zq(q.id,q.displayText,h),B=!G,j=q.id.startsWith("file-"),u=q.id.startsWith("mcp-resource-"),Hq=2,kq=4,w=q.description?3:0,f;if(j){let _=q.description?Math.min(20,$(q.description)):0,r=Q-R-2-4-w-_;f=S(q.displayText,r)}else if(u)f=v(q.displayText,30);else f=q.displayText;let g=Q-R-2-$(f)-w-4,D;if(q.description){let _=v(q.description.replace(/\s+/g," "),Math.max(0,g));D=`${K}${k} ${f} - ${_}`}else D=`${K}${k} ${f}`;return M(b,{width:"100%",opaque:!0,backgroundColor:O,children:M(P,{color:A,dimColor:B,bold:G,wrap:"truncate",children:D})})}let{displayText:z,displayTextWidth:H,pathIcon:N,tagText:U,descriptionLines:V}=c(q,Q,Y),X=K+N+z+" ".repeat(Math.max(0,H-$(z))),F=" ".repeat($(X)+$(U)),Z=V.length>0?V.map((k,B)=>B===0?`${X}${U}${k}`:`${F}${k}`):[`${X}${U}`];return M(b,{flexDirection:"column",width:"100%",opaque:!0,backgroundColor:O,children:Z.map((k,B)=>M(P,{color:A,dimColor:!G,bold:G,wrap:"truncate",children:k},B))})});bq=E.memo(Aq)});
|
|
2
|
+
export{Aq as wi,bq as xi,Uq as yi};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{SG as h,ZG as v,yo as R,zo as r}from"./cli-1.1.27-w8pwj9ef.mjs";import{F1 as U,H1 as F,L1 as I,g0 as p,k2 as E}from"./cli-1.1.27-6spv5ha8.mjs";import{U4 as Z,V4 as L,W4 as N}from"./cli-1.1.27-kgpk1m6k.mjs";import{X4 as j}from"./cli-1.1.27-m5wtrd2b.mjs";import{Sea as B,gfa as S}from"./cli-1.1.27-48ezce33.mjs";import{uka as H,xka as b}from"./cli-1.1.27-7gnbh46g.mjs";import{Ita as P,Mta as A}from"./cli-1.1.27-8vrv0ver.mjs";function l(d){let f=O.c(18),{onAccept:J,onDecline:q,declineExits:m}=d,K;if(f[0]===Symbol.for("react.memo_cache_sentinel"))K=[],f[0]=K;else K=f[0];T.default.useEffect(x,K);let Q;if(f[1]!==J||f[2]!==q)Q=function(C){f:switch(C){case"accept":{H("",{}),B("userSettings",{skipAutoPermissionPrompt:!0}),J();break f}case"accept-default":{H("",{}),B("userSettings",{skipAutoPermissionPrompt:!0,permissions:{defaultMode:"auto"}}),J();break f}case"decline":H("",{}),q()}},f[1]=J,f[2]=q,f[3]=Q;else Q=f[3];let k=Q,V;if(f[4]===Symbol.for("react.memo_cache_sentinel"))V=L(U,{flexDirection:"column",gap:1,children:[Z(F,{children:u}),Z(I,{url:"https://code.claude.com/docs/en/security"})]}),f[4]=V;else V=f[4];let W;if(f[5]===Symbol.for("react.memo_cache_sentinel"))W=[{label:"Yes, and make it my default mode",value:"accept-default"}],f[5]=W;else W=f[5];let X;if(f[6]===Symbol.for("react.memo_cache_sentinel"))X={label:"Yes, enable auto mode",value:"accept"},f[6]=X;else X=f[6];let y=m?"No, exit":"No, go back",w;if(f[7]!==y)w=[...W,X,{label:y,value:"decline"}],f[7]=y,f[8]=w;else w=f[8];let z;if(f[9]!==k)z=(M)=>k(M),f[9]=k,f[10]=z;else z=f[10];let G;if(f[11]!==q||f[12]!==w||f[13]!==z)G=Z(h,{options:w,onChange:z,onCancel:q}),f[11]=q,f[12]=w,f[13]=z,f[14]=G;else G=f[14];let Y;if(f[15]!==q||f[16]!==G)Y=L(R,{title:"Enable auto mode?",color:"warning",onCancel:q,children:[V,G]}),f[15]=q,f[16]=G,f[17]=Y;else Y=f[17];return Y}function x(){H("",{})}var O,T,u="Auto mode lets Claudin handle permission prompts automatically — Claudin checks each tool call for risky actions and prompt injection before executing. Actions Claudin identifies as safe are executed, while actions Claudin identifies as risky are blocked and Claudin may try a different approach. Ideal for long-running tasks. Sessions are slightly more expensive. Claudin can make mistakes that allow harmful commands to run, it's recommended to only use in isolated environments. Shift+Tab to change mode.";var g=A(()=>{b();E();S();v();r();N();O=P(p(),1),T=P(j(),1)});
|
|
2
|
+
export{u as pc,l as qc,g as rc};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{H1 as t,g0 as s,k2 as f}from"./cli-1.1.27-6spv5ha8.mjs";import{U4 as n,V4 as c,W4 as r}from"./cli-1.1.27-kgpk1m6k.mjs";import{Ita as m,Mta as l}from"./cli-1.1.27-8vrv0ver.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 Sg,p as Tg};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{NH as z,OH as M,fG as L,fy as J,gG as h,gy as Z}from"./cli-1.1.27-w8pwj9ef.mjs";import{g0 as X}from"./cli-1.1.27-6spv5ha8.mjs";import{X4 as W}from"./cli-1.1.27-m5wtrd2b.mjs";import{Vra as V,qra as H}from"./cli-1.1.27-m6ne80zc.mjs";import{Ita as D,Mta as U}from"./cli-1.1.27-8vrv0ver.mjs";function v(){let b=P.c(6),{addNotification:k,removeNotification:l}=L(),[j,Q]=x.useState(u),p;if(b[0]===Symbol.for("react.memo_cache_sentinel"))p=()=>{let{errors:y}=z();Q(y)},b[0]=p;else p=b[0];J(p);let q,w;if(b[1]!==k||b[2]!==j||b[3]!==l)q=()=>{if(H())return;if(j.length>0){let y=`Found ${j.length} settings ${j.length===1?"issue":"issues"} · /doctor for details`;k({key:B,text:y,color:"warning",priority:"high",timeoutMs:60000})}else l(B)},w=[j,k,l],b[1]=k,b[2]=j,b[3]=l,b[4]=q,b[5]=w;else q=b[4],w=b[5];return x.useEffect(q,w),j}function u(){let{errors:b}=z();return b}var P,x,B="settings-errors";var A=U(()=>{h();V();M();Z();P=D(X(),1),x=D(W(),1)});
|
|
2
|
+
export{v as Ug,A as Vg};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{Ae as j,Be as E}from"./cli-1.1.27-r32k5nw7.mjs";import{BM as Y,KM as Z,MM as w,Op as W,QM as _,Rp as v,SM as $,XM as f,zM as X}from"./cli-1.1.27-w8pwj9ef.mjs";import{Mda as T,Sha as V,_ha as N,gga as S,sga as A,zda as Q}from"./cli-1.1.27-48ezce33.mjs";import{Ala as R,xla as B}from"./cli-1.1.27-r335xv52.mjs";import{Xla as L,cma as K}from"./cli-1.1.27-0rz9qd34.mjs";import{Mta as y}from"./cli-1.1.27-8vrv0ver.mjs";function d(q){if(J=q,G!==null&&G.length>0)q(G),G=null;return()=>{J=null}}async function C(){let q=await Y(),D=X(),x=new Set;for(let[z,h]of Object.entries(q)){let F=D[z]?.autoUpdate;if(F!==void 0?F:Q(z,h))x.add(z.toLowerCase())}return x}async function M(q,D){let x=!1;for(let{scope:z}of D)try{let h=await j(q,z);if(h.success&&!h.alreadyUpToDate)x=!0,B(`Plugin autoupdate: updated ${q} from ${h.oldVersion} to ${h.newVersion}`);else if(!h.alreadyUpToDate)B(`Plugin autoupdate: failed to update ${q}: ${h.message}`,{level:"warn"})}catch(h){B(`Plugin autoupdate: error updating ${q}: ${L(h)}`,{level:"warn"})}return x?q:null}async function P(q){let D=_(),x=Object.keys(D.plugins);if(x.length===0)return[];return(await Promise.allSettled(x.map(async(h)=>{let{marketplace:F}=W(h);if(!F||!q.has(F.toLowerCase()))return null;let H=D.plugins[h];if(!H||H.length===0)return null;let O=H.filter($);if(O.length===0)return null;return M(h,O)}))).filter((h)=>h.status==="fulfilled"&&h.value!==null).map((h)=>h.value)}async function m(q){return P(q)}function t(){(async()=>{if(S()){B("Plugin autoupdate: skipped (auto-updater disabled)");return}try{let q=await C();if(q.size===0)return;let x=(await Promise.allSettled(Array.from(q).map(async(h)=>{try{await Z(h,void 0,{disableCredentialHelper:!0})}catch(F){B(`Plugin autoupdate: failed to refresh marketplace ${h}: ${L(F)}`,{level:"warn"})}}))).filter((h)=>h.status==="rejected");if(x.length>0)B(`Plugin autoupdate: ${x.length} marketplace refresh(es) failed`,{level:"warn"});B("Plugin autoupdate: checking installed plugins");let z=await m(q);if(z.length>0)if(J)J(z);else G=z}catch(q){V(q)}})()}var J=null,G=null;var U=y(()=>{E();A();R();K();N();f();w();v();T()});
|
|
2
|
+
export{d as Ac,P as Bc,t as Cc,U as Dc};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{IN as h,RN as y,SN as S,YN as w,yN as L}from"./cli-1.1.27-w8pwj9ef.mjs";import{F1 as U,H1 as D,L1 as v,g0 as l,k2 as B}from"./cli-1.1.27-6spv5ha8.mjs";import{U4 as G,V4 as H,W4 as W}from"./cli-1.1.27-kgpk1m6k.mjs";import{Ita as C,Mta as M}from"./cli-1.1.27-8vrv0ver.mjs";function T(z){let q=u.c(26),{scope:A,parsingErrors:Q,warnings:R}=z,K=Q.length>0,X=R.length>0;if(!K&&!X)return null;let V;if(q[0]!==K||q[1]!==X)V=(K||X)&&H(D,{color:K?"error":"warning",children:["[",K?"Failed to parse":"Contains warnings","]"," "]}),q[0]=K,q[1]=X,q[2]=V;else V=q[2];let I;if(q[3]!==A)I=S(A),q[3]=A,q[4]=I;else I=q[4];let J;if(q[5]!==I)J=G(D,{children:I}),q[5]=I,q[6]=J;else J=q[6];let Y;if(q[7]!==V||q[8]!==J)Y=H(U,{children:[V,J]}),q[7]=V,q[8]=J,q[9]=Y;else Y=q[9];let P;if(q[10]===Symbol.for("react.memo_cache_sentinel"))P=G(D,{dimColor:!0,children:"Location: "}),q[10]=P;else P=q[10];let Z;if(q[11]!==A)Z=y(A),q[11]=A,q[12]=Z;else Z=q[12];let F;if(q[13]!==Z)F=H(U,{children:[P,G(D,{dimColor:!0,children:Z})]}),q[13]=Z,q[14]=F;else F=q[14];let O;if(q[15]!==Q)O=Q.map(E),q[15]=Q,q[16]=O;else O=q[16];let b;if(q[17]!==R)b=R.map(m),q[17]=R,q[18]=b;else b=q[18];let k;if(q[19]!==O||q[20]!==b)k=H(U,{marginLeft:1,flexDirection:"column",children:[O,b]}),q[19]=O,q[20]=b,q[21]=k;else k=q[21];let d;if(q[22]!==k||q[23]!==Y||q[24]!==F)d=H(U,{flexDirection:"column",marginTop:1,children:[Y,F,k]}),q[22]=k,q[23]=Y,q[24]=F,q[25]=d;else d=q[25];return d}function m(z,q){let A=z.mcpErrorMetadata?.serverName;return G(U,{children:H(D,{children:[G(D,{dimColor:!0,children:"└ "}),G(D,{color:"warning",children:"[Warning]"}),H(D,{dimColor:!0,children:[" ",A&&`[${A}] `,z.path&&z.path!==""?`${z.path}: `:"",z.message]})]})},`warning-${q}`)}function E(z,q){let A=z.mcpErrorMetadata?.serverName;return G(U,{children:H(D,{children:[G(D,{dimColor:!0,children:"└ "}),G(D,{color:"error",children:"[Error]"}),H(D,{dimColor:!0,children:[" ",A&&`[${A}] `,z.path&&z.path!==""?`${z.path}: `:"",z.message]})]})},`error-${q}`)}function x(){let z=u.c(6),q;if(z[0]===Symbol.for("react.memo_cache_sentinel"))q={scope:"user",config:L("user")},z[0]=q;else q=z[0];let A;if(z[1]===Symbol.for("react.memo_cache_sentinel"))A={scope:"project",config:L("project")},z[1]=A;else A=z[1];let Q;if(z[2]===Symbol.for("react.memo_cache_sentinel"))Q={scope:"local",config:L("local")},z[2]=Q;else Q=z[2];let R;if(z[3]===Symbol.for("react.memo_cache_sentinel"))R=[q,A,Q,{scope:"enterprise",config:L("enterprise")}],z[3]=R;else R=z[3];let K=R,X=K.some(j),V=K.some(_);if(!X&&!V)return null;let I;if(z[4]===Symbol.for("react.memo_cache_sentinel"))I=G(D,{bold:!0,children:"MCP Config Diagnostics"}),z[4]=I;else I=z[4];let J;if(z[5]===Symbol.for("react.memo_cache_sentinel"))J=H(U,{flexDirection:"column",marginTop:1,marginBottom:1,children:[I,G(U,{marginTop:1,children:H(D,{dimColor:!0,children:["For help configuring MCP servers, see:"," ",G(v,{url:"https://code.claude.com/docs/en/mcp",children:"https://code.claude.com/docs/en/mcp"})]})}),K.map(f)]}),z[5]=J;else J=z[5];return J}function f(z){let{scope:q,config:A}=z;return G(T,{scope:q,parsingErrors:N(A.errors,"fatal"),warnings:N(A.errors,"warning")},q)}function _(z){let{config:q}=z;return N(q.errors,"warning").length>0}function j(z){let{config:q}=z;return N(q.errors,"fatal").length>0}function N(z,q){return z.filter((A)=>A.mcpErrorMetadata?.severity===q)}var u;var p=M(()=>{h();w();B();W();u=C(l(),1)});
|
|
2
|
+
export{x as $g,p as ah};
|