@claudiolabs/claudin 1.1.12 → 1.1.13
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/README.md +3 -24
- package/dist/chunks/AgentTool-1.1.13-63r89cdz.mjs +1 -0
- package/dist/chunks/App-1.1.13-d46t1gxs.mjs +1 -0
- package/dist/chunks/ApproveApiKey-1.1.13-ss1skn67.mjs +1 -0
- package/dist/chunks/AssistantSessionChooser-1.1.13-akb18zhk.mjs +1 -0
- package/dist/chunks/AutoModeOptInDialog-1.1.13-wy2pstpa.mjs +1 -0
- package/dist/chunks/BypassPermissionsModeDialog-1.1.13-nrs4ahv7.mjs +1 -0
- package/dist/chunks/ClaudeMdExternalIncludesDialog-1.1.13-p12n7vw3.mjs +1 -0
- package/dist/chunks/ConsoleOAuthFlow-1.1.13-tqx20akq.mjs +1 -0
- package/dist/chunks/DiffDialog-1.1.13-6nf4k00f.mjs +6 -0
- package/dist/chunks/Doctor-1.1.13-sab3pc3m.mjs +1 -0
- package/dist/chunks/ExplorerDialog-1.1.13-8j4yph77.mjs +6 -0
- package/dist/chunks/ITermBackend-1.1.13-ezctrhfh.mjs +1 -0
- package/dist/chunks/InvalidConfigDialog-1.1.13-fn55xkky.mjs +1 -0
- package/dist/chunks/InvalidSettingsDialog-1.1.13-v601bm3n.mjs +1 -0
- package/dist/chunks/MigrationDialog-1.1.13-m30010yq.mjs +1 -0
- package/dist/chunks/Onboarding-1.1.13-r6p8ac38.mjs +1 -0
- package/dist/chunks/ProviderManager-1.1.13-2mn20qcd.mjs +1 -0
- package/dist/chunks/REPL-1.1.13-mn8t5yw9.mjs +1 -0
- package/dist/chunks/ResumeConversation-1.1.13-ayr9p9vf.mjs +1 -0
- package/dist/chunks/SnapshotUpdateDialog-1.1.13-wvmmeycx.mjs +1 -0
- package/dist/chunks/TeleportProgress-1.1.13-wy75ekbh.mjs +1 -0
- package/dist/chunks/TeleportRepoMismatchDialog-1.1.13-mbjqq83z.mjs +1 -0
- package/dist/chunks/TeleportResumeWrapper-1.1.13-590kxc7c.mjs +1 -0
- package/dist/chunks/TmuxBackend-1.1.13-3z3twxzs.mjs +9 -0
- package/dist/chunks/ToolSearchTool-1.1.13-wzknhxkr.mjs +1 -0
- package/dist/chunks/TrustDialog-1.1.13-ev0qre9c.mjs +1 -0
- package/dist/chunks/activeProvider-1.1.13-mf4z3aws.mjs +1 -0
- package/dist/chunks/add-dir-1.1.13-r8re3j87.mjs +1 -0
- package/dist/chunks/agentTypes-1.1.13-nxkcga73.mjs +1 -0
- package/dist/chunks/agents-1.1.13-86a1wgye.mjs +110 -0
- package/dist/chunks/agents-1.1.13-w1pmkekd.mjs +3 -0
- package/dist/chunks/api-1.1.13-5ffq20rc.mjs +1 -0
- package/dist/chunks/asciicast-1.1.13-633wvh0n.mjs +1 -0
- package/dist/chunks/assistant-1.1.13-9q7zxtfz.mjs +1 -0
- package/dist/chunks/auth-1.1.13-a50e1ztc.mjs +1 -0
- package/dist/chunks/auth-1.1.13-xv576tj3.mjs +1 -0
- package/dist/chunks/autoMode-1.1.13-3n3c9p8y.mjs +48 -0
- package/dist/chunks/autoUpdater-1.1.13-mb65jkk5.mjs +1 -0
- package/dist/chunks/backgroundHousekeeping-1.1.13-avr9z4k0.mjs +1 -0
- package/dist/chunks/branch-1.1.13-gmg9we2y.mjs +4 -0
- package/dist/chunks/bridge-1.1.13-hvfvhpm1.mjs +2 -0
- package/dist/chunks/bridgeConfig-1.1.13-zzxf7mvh.mjs +1 -0
- package/dist/chunks/bridgeEnabled-1.1.13-f2fjmfs0.mjs +1 -0
- package/dist/chunks/bridgeMain-1.1.13-8tn5vy8z.mjs +88 -0
- package/dist/chunks/bridgePointer-1.1.13-97d9ec9y.mjs +1 -0
- package/dist/chunks/btw-1.1.13-v2hwppkk.mjs +1 -0
- package/dist/chunks/buddy-1.1.13-svfg8x3f.mjs +3 -0
- package/dist/chunks/cache-probe-1.1.13-td1bna05.mjs +21 -0
- package/dist/chunks/cacheStats-1.1.13-tmmf2k7r.mjs +4 -0
- package/dist/chunks/caches-1.1.13-s55yzhpm.mjs +1 -0
- package/dist/chunks/claudeDesktop-1.1.13-8d0bp8yb.mjs +1 -0
- package/dist/chunks/claudemd-1.1.13-3mc0z25q.mjs +1 -0
- package/dist/chunks/clear-1.1.13-1d9yvw3f.mjs +1 -0
- package/dist/chunks/clearTerminal-1.1.13-882kpw7s.mjs +1 -0
- package/dist/chunks/cli-1.1.13-03rdpsbf.mjs +2 -0
- package/dist/chunks/cli-1.1.13-0dha376x.mjs +3 -0
- package/dist/chunks/cli-1.1.13-0h48j6a1.mjs +7 -0
- package/dist/chunks/cli-1.1.13-0qy978b3.mjs +3 -0
- package/dist/chunks/cli-1.1.13-0x1mk1dp.mjs +2 -0
- package/dist/chunks/cli-1.1.13-0y4933cs.mjs +2 -0
- package/dist/chunks/cli-1.1.13-0yte5zpd.mjs +2 -0
- package/dist/chunks/cli-1.1.13-15nbdw38.mjs +2 -0
- package/dist/chunks/cli-1.1.13-17xy86gy.mjs +24 -0
- package/dist/chunks/cli-1.1.13-1d70jtz7.mjs +6 -0
- package/dist/chunks/cli-1.1.13-1frz0zm3.mjs +2 -0
- package/dist/chunks/cli-1.1.13-1jf910f2.mjs +2 -0
- package/dist/chunks/cli-1.1.13-1qk5qhgt.mjs +2 -0
- package/dist/chunks/cli-1.1.13-1rfveg0v.mjs +2 -0
- package/dist/chunks/cli-1.1.13-1x4z2mj8.mjs +2 -0
- package/dist/chunks/cli-1.1.13-24284zna.mjs +2 -0
- package/dist/chunks/cli-1.1.13-284pjmzy.mjs +4 -0
- package/dist/chunks/cli-1.1.13-2964cc2e.mjs +2 -0
- package/dist/chunks/cli-1.1.13-2a8k8qw7.mjs +2 -0
- package/dist/chunks/cli-1.1.13-2f0gzs1e.mjs +2 -0
- package/dist/chunks/cli-1.1.13-2m39r998.mjs +2 -0
- package/dist/chunks/cli-1.1.13-2mrqqgcm.mjs +202 -0
- package/dist/chunks/cli-1.1.13-2sx1bxbt.mjs +2 -0
- package/dist/chunks/cli-1.1.13-2txesqy8.mjs +2 -0
- package/dist/chunks/cli-1.1.13-3dmbtx8g.mjs +2 -0
- package/dist/chunks/cli-1.1.13-3wxfn6t5.mjs +2 -0
- package/dist/chunks/cli-1.1.13-46jvx14j.mjs +2 -0
- package/dist/chunks/cli-1.1.13-49gvv5kd.mjs +2 -0
- package/dist/chunks/cli-1.1.13-4tt8dq0e.mjs +42 -0
- package/dist/chunks/cli-1.1.13-4vt96sm8.mjs +2 -0
- package/dist/chunks/cli-1.1.13-53ght581.mjs +3 -0
- package/dist/chunks/cli-1.1.13-53zq1gs2.mjs +2 -0
- package/dist/chunks/cli-1.1.13-5kpppj1f.mjs +6 -0
- package/dist/chunks/cli-1.1.13-61mygvzg.mjs +2 -0
- package/dist/chunks/cli-1.1.13-64d0d5ye.mjs +2 -0
- package/dist/chunks/cli-1.1.13-65c7kxwt.mjs +12 -0
- package/dist/chunks/cli-1.1.13-669vhsjj.mjs +2 -0
- package/dist/chunks/cli-1.1.13-6727vw4f.mjs +2 -0
- package/dist/chunks/cli-1.1.13-6b845car.mjs +2 -0
- package/dist/chunks/cli-1.1.13-6c4qxmj3.mjs +4 -0
- package/dist/chunks/cli-1.1.13-6dcpjy34.mjs +17 -0
- package/dist/chunks/cli-1.1.13-6ebd7gpv.mjs +2 -0
- package/dist/chunks/cli-1.1.13-6jy1pnge.mjs +2 -0
- package/dist/chunks/cli-1.1.13-6k71beqh.mjs +2 -0
- package/dist/chunks/cli-1.1.13-6tf67wfm.mjs +2 -0
- package/dist/chunks/cli-1.1.13-74rczf0f.mjs +2 -0
- package/dist/chunks/cli-1.1.13-7h18kpv0.mjs +2 -0
- package/dist/chunks/cli-1.1.13-7k2bp2pf.mjs +2 -0
- package/dist/chunks/cli-1.1.13-7s34jqge.mjs +133 -0
- package/dist/chunks/cli-1.1.13-7srn3vy6.mjs +2 -0
- package/dist/chunks/cli-1.1.13-7wyfj1qp.mjs +2 -0
- package/dist/chunks/cli-1.1.13-82y6dszx.mjs +2 -0
- package/dist/chunks/cli-1.1.13-86kjp502.mjs +2 -0
- package/dist/chunks/cli-1.1.13-91q67gqp.mjs +2 -0
- package/dist/chunks/cli-1.1.13-9609q0ww.mjs +2 -0
- package/dist/chunks/cli-1.1.13-9ktdmvzq.mjs +15 -0
- package/dist/chunks/cli-1.1.13-9qhgyzkx.mjs +2 -0
- package/dist/chunks/cli-1.1.13-9s0arh3g.mjs +25 -0
- package/dist/chunks/cli-1.1.13-9v3mg87v.mjs +2 -0
- package/dist/chunks/cli-1.1.13-9x53mnyd.mjs +5 -0
- package/dist/chunks/cli-1.1.13-a3q7qm6t.mjs +2 -0
- package/dist/chunks/cli-1.1.13-a3s5tdea.mjs +2 -0
- package/dist/chunks/cli-1.1.13-a3zfe19b.mjs +25 -0
- package/dist/chunks/cli-1.1.13-a40ncbc3.mjs +2 -0
- package/dist/chunks/cli-1.1.13-a96dm0r5.mjs +4 -0
- package/dist/chunks/cli-1.1.13-aac9pss7.mjs +59 -0
- package/dist/chunks/cli-1.1.13-aeq919w1.mjs +2 -0
- package/dist/chunks/cli-1.1.13-aqph7zr1.mjs +2 -0
- package/dist/chunks/cli-1.1.13-ayx92dtj.mjs +6 -0
- package/dist/chunks/cli-1.1.13-b47k2p92.mjs +21 -0
- package/dist/chunks/cli-1.1.13-b9sg0jsz.mjs +2 -0
- package/dist/chunks/cli-1.1.13-baxww5k9.mjs +3 -0
- package/dist/chunks/cli-1.1.13-c4zxjf91.mjs +2 -0
- package/dist/chunks/cli-1.1.13-cd7jraqe.mjs +2 -0
- package/dist/chunks/cli-1.1.13-cey8v1xc.mjs +2 -0
- package/dist/chunks/cli-1.1.13-cg1m9a2x.mjs +2 -0
- package/dist/chunks/cli-1.1.13-ck2qzqbj.mjs +2 -0
- package/dist/chunks/cli-1.1.13-cm4vwx6e.mjs +2 -0
- package/dist/chunks/cli-1.1.13-cn9g3704.mjs +12 -0
- package/dist/chunks/cli-1.1.13-cqhxyzrd.mjs +2 -0
- package/dist/chunks/cli-1.1.13-d4z9sv3g.mjs +2 -0
- package/dist/chunks/cli-1.1.13-d54qh52e.mjs +3 -0
- package/dist/chunks/cli-1.1.13-d8d30wps.mjs +3 -0
- package/dist/chunks/cli-1.1.13-djvyb4s5.mjs +3 -0
- package/dist/chunks/cli-1.1.13-dpsjxc84.mjs +2 -0
- package/dist/chunks/cli-1.1.13-dthjfxxw.mjs +2 -0
- package/dist/chunks/cli-1.1.13-e4hsds4b.mjs +2 -0
- package/dist/chunks/cli-1.1.13-e4k7980n.mjs +2 -0
- package/dist/chunks/cli-1.1.13-e68npf24.mjs +2 -0
- package/dist/chunks/cli-1.1.13-ehaqachs.mjs +2 -0
- package/dist/chunks/cli-1.1.13-epjmphrz.mjs +133 -0
- package/dist/chunks/cli-1.1.13-ev08z5ye.mjs +24 -0
- package/dist/chunks/cli-1.1.13-ewxej7em.mjs +2 -0
- package/dist/chunks/cli-1.1.13-ey931psa.mjs +2 -0
- package/dist/chunks/cli-1.1.13-f5s7e6kg.mjs +2 -0
- package/dist/chunks/cli-1.1.13-far5gqfj.mjs +2 -0
- package/dist/chunks/cli-1.1.13-fccy9c48.mjs +2 -0
- package/dist/chunks/cli-1.1.13-fjxx2wgm.mjs +2 -0
- package/dist/chunks/cli-1.1.13-fkcaczca.mjs +2 -0
- package/dist/chunks/cli-1.1.13-fkvcsg0a.mjs +2 -0
- package/dist/chunks/cli-1.1.13-fr4zp0cx.mjs +3 -0
- package/dist/chunks/cli-1.1.13-g8k8na90.mjs +2 -0
- package/dist/chunks/cli-1.1.13-gaa8s22w.mjs +8 -0
- package/dist/chunks/cli-1.1.13-gechs2yp.mjs +4 -0
- package/dist/chunks/cli-1.1.13-gfyds6b8.mjs +18 -0
- package/dist/chunks/cli-1.1.13-gh95gh19.mjs +2 -0
- package/dist/chunks/cli-1.1.13-gmqmzw50.mjs +2 -0
- package/dist/chunks/cli-1.1.13-gzfw6n93.mjs +39 -0
- package/dist/chunks/cli-1.1.13-gznvgt6g.mjs +16 -0
- package/dist/chunks/cli-1.1.13-h1v6cap9.mjs +2 -0
- package/dist/chunks/cli-1.1.13-h7n0z0dz.mjs +2 -0
- package/dist/chunks/cli-1.1.13-h7xrb6x3.mjs +2 -0
- package/dist/chunks/cli-1.1.13-hb5bb8jk.mjs +3 -0
- package/dist/chunks/cli-1.1.13-hg8x8693.mjs +6 -0
- package/dist/chunks/cli-1.1.13-hzneg4va.mjs +2 -0
- package/dist/chunks/cli-1.1.13-j02dcs05.mjs +2 -0
- package/dist/chunks/cli-1.1.13-j7dbk8te.mjs +2 -0
- package/dist/chunks/cli-1.1.13-j98qjhp9.mjs +15 -0
- package/dist/chunks/cli-1.1.13-jdcqc6bd.mjs +2 -0
- package/dist/chunks/cli-1.1.13-je6371k7.mjs +2 -0
- package/dist/chunks/cli-1.1.13-jevpf9b3.mjs +2 -0
- package/dist/chunks/cli-1.1.13-k5sbyjwd.mjs +2 -0
- package/dist/chunks/cli-1.1.13-k6ef9cy7.mjs +34 -0
- package/dist/chunks/cli-1.1.13-kbf9vss4.mjs +4 -0
- package/dist/chunks/cli-1.1.13-kct81ph3.mjs +2 -0
- package/dist/chunks/cli-1.1.13-kjdr6edt.mjs +15 -0
- package/dist/chunks/cli-1.1.13-kmrz3wh8.mjs +2 -0
- package/dist/chunks/cli-1.1.13-kq8spsav.mjs +2 -0
- package/dist/chunks/cli-1.1.13-ksvd60yr.mjs +2 -0
- package/dist/chunks/cli-1.1.13-kw2fntc3.mjs +3 -0
- package/dist/chunks/cli-1.1.13-m5grg33r.mjs +4 -0
- package/dist/chunks/cli-1.1.13-mct1fasm.mjs +2 -0
- package/dist/chunks/cli-1.1.13-mt0y53s0.mjs +17 -0
- package/dist/chunks/cli-1.1.13-mzq23677.mjs +2 -0
- package/dist/chunks/cli-1.1.13-n24mxjbh.mjs +2 -0
- package/dist/chunks/cli-1.1.13-n8nv58q7.mjs +2 -0
- package/dist/chunks/cli-1.1.13-nbdp9ez1.mjs +3 -0
- package/dist/chunks/cli-1.1.13-nr09192d.mjs +2 -0
- package/dist/chunks/cli-1.1.13-pa4chrcw.mjs +2 -0
- package/dist/chunks/cli-1.1.13-pam922jf.mjs +2 -0
- package/dist/chunks/cli-1.1.13-pedv9sma.mjs +9 -0
- package/dist/chunks/cli-1.1.13-pjxb9g99.mjs +2 -0
- package/dist/chunks/cli-1.1.13-pmejqt4x.mjs +2 -0
- package/dist/chunks/cli-1.1.13-pscw4dkq.mjs +2 -0
- package/dist/chunks/cli-1.1.13-psmq4bkh.mjs +50 -0
- package/dist/chunks/cli-1.1.13-q1hx591h.mjs +2 -0
- package/dist/chunks/cli-1.1.13-q1yggv9b.mjs +2 -0
- package/dist/chunks/cli-1.1.13-qc5bvtyx.mjs +2 -0
- package/dist/chunks/cli-1.1.13-qd5r2qba.mjs +2 -0
- package/dist/chunks/cli-1.1.13-qhavh0s1.mjs +9 -0
- package/dist/chunks/cli-1.1.13-qr4adses.mjs +2 -0
- package/dist/chunks/cli-1.1.13-qtzpy08k.mjs +2 -0
- package/dist/chunks/cli-1.1.13-qv85wtc7.mjs +2 -0
- package/dist/chunks/cli-1.1.13-qxrjvprg.mjs +3 -0
- package/dist/chunks/cli-1.1.13-qyjx1fky.mjs +2 -0
- package/dist/chunks/cli-1.1.13-r2qnta4s.mjs +2 -0
- package/dist/chunks/cli-1.1.13-r4znfhyr.mjs +2 -0
- package/dist/chunks/cli-1.1.13-r9tfxszp.mjs +2 -0
- package/dist/chunks/cli-1.1.13-rcgr5xjp.mjs +1 -0
- package/dist/chunks/cli-1.1.13-rh27w2xj.mjs +24 -0
- package/dist/chunks/cli-1.1.13-rhtvcdjb.mjs +3 -0
- package/dist/chunks/cli-1.1.13-rmt4z6qm.mjs +2 -0
- package/dist/chunks/cli-1.1.13-rnajmfsp.mjs +2 -0
- package/dist/chunks/cli-1.1.13-rrp2vm36.mjs +2 -0
- package/dist/chunks/cli-1.1.13-segzta4x.mjs +2 -0
- package/dist/chunks/cli-1.1.13-shz97pa0.mjs +2 -0
- package/dist/chunks/cli-1.1.13-smefk747.mjs +2 -0
- package/dist/chunks/cli-1.1.13-snkbv1w2.mjs +2 -0
- package/dist/chunks/cli-1.1.13-sqg8rfkh.mjs +2 -0
- package/dist/chunks/cli-1.1.13-sycf9s0v.mjs +3 -0
- package/dist/chunks/cli-1.1.13-t4z97zfd.mjs +2 -0
- package/dist/chunks/cli-1.1.13-t8ypngwg.mjs +4 -0
- package/dist/chunks/cli-1.1.13-tma5xwa2.mjs +2 -0
- package/dist/chunks/cli-1.1.13-tx4y2gtw.mjs +2 -0
- package/dist/chunks/cli-1.1.13-tz8pn7w4.mjs +24 -0
- package/dist/chunks/cli-1.1.13-v06xvs9s.mjs +2 -0
- package/dist/chunks/cli-1.1.13-v2synpdg.mjs +2 -0
- package/dist/chunks/cli-1.1.13-v32emtk0.mjs +26 -0
- package/dist/chunks/cli-1.1.13-vm8xs878.mjs +3 -0
- package/dist/chunks/cli-1.1.13-vpgfmshm.mjs +4 -0
- package/dist/chunks/cli-1.1.13-vx6r9z72.mjs +45 -0
- package/dist/chunks/cli-1.1.13-vxpmt3js.mjs +66 -0
- package/dist/chunks/cli-1.1.13-wh5smpta.mjs +2 -0
- package/dist/chunks/cli-1.1.13-wje228e3.mjs +2 -0
- package/dist/chunks/cli-1.1.13-wmpc2gzg.mjs +2 -0
- package/dist/chunks/cli-1.1.13-wqteqtr2.mjs +2 -0
- package/dist/chunks/cli-1.1.13-ws1mny6h.mjs +58 -0
- package/dist/chunks/cli-1.1.13-x663d461.mjs +2 -0
- package/dist/chunks/cli-1.1.13-x79qava2.mjs +5413 -0
- package/dist/chunks/cli-1.1.13-x83epxhw.mjs +2 -0
- package/dist/chunks/cli-1.1.13-x92dpkgj.mjs +6 -0
- package/dist/chunks/cli-1.1.13-xbxnp58a.mjs +2 -0
- package/dist/chunks/cli-1.1.13-xjr3rwfq.mjs +6 -0
- package/dist/chunks/cli-1.1.13-xpwxcmvd.mjs +2 -0
- package/dist/chunks/cli-1.1.13-xqqf08vq.mjs +2 -0
- package/dist/chunks/cli-1.1.13-y5d299s9.mjs +2 -0
- package/dist/chunks/cli-1.1.13-y6pa258f.mjs +4 -0
- package/dist/chunks/cli-1.1.13-y6vdh2z1.mjs +2 -0
- package/dist/chunks/cli-1.1.13-ykzv8nyq.mjs +2 -0
- package/dist/chunks/cli-1.1.13-z39hx0gz.mjs +20 -0
- package/dist/chunks/cli-1.1.13-z3t7b0fc.mjs +2 -0
- package/dist/chunks/cli-1.1.13-z4p8zcbq.mjs +2 -0
- package/dist/chunks/cli-1.1.13-z9471mhs.mjs +4 -0
- package/dist/chunks/cli-1.1.13-zb95jpx7.mjs +4 -0
- package/dist/chunks/cli-1.1.13-zgnxf8h2.mjs +2 -0
- package/dist/chunks/cli-1.1.13-zmb192fn.mjs +18 -0
- package/dist/chunks/cli-1.1.13-zq5f89xg.mjs +5 -0
- package/dist/chunks/cli-1.1.13-zwkd4wt2.mjs +2 -0
- package/dist/chunks/client-1.1.13-6axfwqya.mjs +1 -0
- package/dist/chunks/color-1.1.13-g1rjvg86.mjs +1 -0
- package/dist/chunks/compact-1.1.13-9k4jts81.mjs +3 -0
- package/dist/chunks/config-1.1.13-58bj6t43.mjs +1 -0
- package/dist/chunks/config-1.1.13-csmwn3d0.mjs +1 -0
- package/dist/chunks/constants-1.1.13-cydjncsk.mjs +1 -0
- package/dist/chunks/context-1.1.13-04y3svxc.mjs +1 -0
- package/dist/chunks/context-noninteractive-1.1.13-03weyc85.mjs +1 -0
- package/dist/chunks/conversation-1.1.13-3e1jc3w3.mjs +1 -0
- package/dist/chunks/copilotHeaders-1.1.13-51e32r1x.mjs +1 -0
- package/dist/chunks/copy-1.1.13-4zq95frp.mjs +9 -0
- package/dist/chunks/cost-1.1.13-fwm0etgk.mjs +1 -0
- package/dist/chunks/createSSHSession-1.1.13-j73jx662.mjs +1 -0
- package/dist/chunks/createSession-1.1.13-2qt6zyq3.mjs +1 -0
- package/dist/chunks/debug-1.1.13-v33s5nkx.mjs +1 -0
- package/dist/chunks/defaultActionDeps-1.1.13-jyb9mebt.mjs +1526 -0
- package/dist/chunks/desktop-1.1.13-3pyvc57q.mjs +1 -0
- package/dist/chunks/detectRepository-1.1.13-c8evf71r.mjs +1 -0
- package/dist/chunks/detection-1.1.13-k5td7n26.mjs +1 -0
- package/dist/chunks/diff-1.1.13-d31m696z.mjs +1 -0
- package/dist/chunks/doctor-1.1.13-59947n3f.mjs +1 -0
- package/dist/chunks/doctorDiagnostic-1.1.13-tvrr2smf.mjs +1 -0
- package/dist/chunks/earlyInput-1.1.13-yngv0q4n.mjs +1 -0
- package/dist/chunks/effort-1.1.13-mknzxvcm.mjs +13 -0
- package/dist/chunks/engine-1.1.13-p9g24e16.mjs +1 -0
- package/dist/chunks/envLessBridgeConfig-1.1.13-wvdxmeaw.mjs +1 -0
- package/dist/chunks/envUtils-1.1.13-v5y7eb11.mjs +1 -0
- package/dist/chunks/environmentSelection-1.1.13-5fx84mw2.mjs +1 -0
- package/dist/chunks/environments-1.1.13-dkqy0n2f.mjs +1 -0
- package/dist/chunks/errors-1.1.13-xf58n7yx.mjs +1 -0
- package/dist/chunks/exampleCommands-1.1.13-1mqkdys8.mjs +1 -0
- package/dist/chunks/execFileNoThrow-1.1.13-08pbvmpc.mjs +1 -0
- package/dist/chunks/exit-1.1.13-n91w8c6v.mjs +1 -0
- package/dist/chunks/explorer-1.1.13-zh3tbspv.mjs +1 -0
- package/dist/chunks/export-1.1.13-vgfr4wyy.mjs +2 -0
- package/dist/chunks/extra-usage-1.1.13-ww6z773x.mjs +1 -0
- package/dist/chunks/extra-usage-noninteractive-1.1.13-sfm57e8v.mjs +1 -0
- package/dist/chunks/fast-1.1.13-2an1j0he.mjs +1 -0
- package/dist/chunks/feedback-1.1.13-dz4kng15.mjs +14 -0
- package/dist/chunks/firstPartyEventLogger-1.1.13-zdhe9x8w.mjs +1 -0
- package/dist/chunks/git-1.1.13-n4743t7m.mjs +1 -0
- package/dist/chunks/githubModelsCredentials-1.1.13-39mkwpe0.mjs +1 -0
- package/dist/chunks/goal-1.1.13-kt16xsn7.mjs +4 -0
- package/dist/chunks/growthbook-1.1.13-12sbk0rh.mjs +1 -0
- package/dist/chunks/headless-1.1.13-me11khs4.mjs +2 -0
- package/dist/chunks/heapdump-1.1.13-2m1pfhn8.mjs +6 -0
- package/dist/chunks/help-1.1.13-sdyj6mfj.mjs +1 -0
- package/dist/chunks/hookChains-1.1.13-kwx32g3b.mjs +3 -0
- package/dist/chunks/hooks-1.1.13-cgr9s1yz.mjs +1 -0
- package/dist/chunks/hooks-1.1.13-rbvjw5bs.mjs +79 -0
- package/dist/chunks/ide-1.1.13-699b7xgf.mjs +3 -0
- package/dist/chunks/image-processor-napi-1.1.13-m17yzsrx.mjs +1 -0
- package/dist/chunks/inboundAttachments-1.1.13-x1sbkysh.mjs +1 -0
- package/dist/chunks/index-1.1.13-1magnv9t.mjs +1 -0
- package/dist/chunks/index-1.1.13-20fw0vyg.mjs +1 -0
- package/dist/chunks/index-1.1.13-3dw8qr3q.mjs +1 -0
- package/dist/chunks/index-1.1.13-5fffrw39.mjs +23 -0
- package/dist/chunks/index-1.1.13-7v1v2795.mjs +1 -0
- package/dist/chunks/index-1.1.13-89b63y1a.mjs +1 -0
- package/dist/chunks/index-1.1.13-9hmkds89.mjs +1 -0
- package/dist/chunks/index-1.1.13-gy0jpfpr.mjs +1 -0
- package/dist/chunks/index-1.1.13-hvpk64ts.mjs +9 -0
- package/dist/chunks/index-1.1.13-pfnaxhas.mjs +9 -0
- package/dist/chunks/index-1.1.13-pq81pd76.mjs +2 -0
- package/dist/chunks/index-1.1.13-q7xgkez4.mjs +1 -0
- package/dist/chunks/index-1.1.13-qed5hqgm.mjs +1 -0
- package/dist/chunks/index-1.1.13-qncvk76v.mjs +1 -0
- package/dist/chunks/index-1.1.13-qzm5brgp.mjs +2 -0
- package/dist/chunks/index-1.1.13-sqz3new4.mjs +1 -0
- package/dist/chunks/index-1.1.13-swwn9vsr.mjs +1 -0
- package/dist/chunks/index-1.1.13-tseyy72z.mjs +1 -0
- package/dist/chunks/index-1.1.13-v219xtkm.mjs +1 -0
- package/dist/chunks/index-1.1.13-vbws03kk.mjs +30 -0
- package/dist/chunks/index-1.1.13-vpewasbk.mjs +1 -0
- package/dist/chunks/index-1.1.13-yncdgpnc.mjs +5 -0
- package/dist/chunks/index-1.1.13-zs9h2fe1.mjs +1 -0
- package/dist/chunks/init-1.1.13-6m1d58s6.mjs +1 -0
- package/dist/chunks/initReplBridge-1.1.13-awvfmbnw.mjs +1 -0
- package/dist/chunks/ink-1.1.13-vsh153b4.mjs +1 -0
- package/dist/chunks/insights-1.1.13-q1te7p8c.mjs +870 -0
- package/dist/chunks/install-1.1.13-4m9h1gcp.mjs +1 -0
- package/dist/chunks/install-github-app-1.1.13-6psvvf35.mjs +149 -0
- package/dist/chunks/install-slack-app-1.1.13-rav6afh8.mjs +1 -0
- package/dist/chunks/instrumentation-1.1.13-8hhppwk0.mjs +1 -0
- package/dist/chunks/interactiveHelpers-1.1.13-18fm94xz.mjs +1 -0
- package/dist/chunks/keybindings-1.1.13-3k2cx6e8.mjs +2 -0
- package/dist/chunks/knowledge-1.1.13-v9293wfr.mjs +2 -0
- package/dist/chunks/latestVersionCache-1.1.13-1hy01yw3.mjs +1 -0
- package/dist/chunks/loadAgentsDir-1.1.13-gkw0j99z.mjs +1 -0
- package/dist/chunks/loadPluginHooks-1.1.13-mh4yata3.mjs +1 -0
- package/dist/chunks/log-1.1.13-j05vnw45.mjs +1 -0
- package/dist/chunks/main-1.1.13-9eb7dv86.mjs +1 -0
- package/dist/chunks/managedEnv-1.1.13-9ded70wd.mjs +1 -0
- package/dist/chunks/mcp-1.1.13-kp94f55t.mjs +1 -0
- package/dist/chunks/mcp-1.1.13-vyp2stqn.mjs +4 -0
- package/dist/chunks/mcp-1.1.13-xwk9expt.mjs +17 -0
- package/dist/chunks/mcpb-1.1.13-e4x7a1cq.mjs +1 -0
- package/dist/chunks/memory-1.1.13-xq6wwcec.mjs +72 -0
- package/dist/chunks/model-1.1.13-e9231b6a.mjs +2 -0
- package/dist/chunks/model-1.1.13-qkp6et1j.mjs +1 -0
- package/dist/chunks/node-1.1.13-eg9nzfxw.mjs +12 -0
- package/dist/chunks/oauth-1.1.13-65c8za8p.mjs +1 -0
- package/dist/chunks/openaiShim-1.1.13-9ym9m1mj.mjs +14 -0
- package/dist/chunks/output-style-1.1.13-3ew33fvw.mjs +1 -0
- package/dist/chunks/package-L37ZVTF4-1.1.13-53j92t2g.mjs +1 -0
- package/dist/chunks/parseConnectUrl-1.1.13-1jbm6fkk.mjs +1 -0
- package/dist/chunks/parser-1.1.13-5g8tytma.mjs +1 -0
- package/dist/chunks/passes-1.1.13-5xeg8jj4.mjs +1 -0
- package/dist/chunks/permissions-1.1.13-rtwebb2e.mjs +3 -0
- package/dist/chunks/permissions-1.1.13-tzfqtc98.mjs +1 -0
- package/dist/chunks/plan-1.1.13-fh6rsd03.mjs +1 -0
- package/dist/chunks/plist-1.1.13-4dh5ng03.mjs +1 -0
- package/dist/chunks/plugin-1.1.13-s7ah8dsz.mjs +29 -0
- package/dist/chunks/pluginStartupCheck-1.1.13-yv5cavjc.mjs +1 -0
- package/dist/chunks/plugins-1.1.13-nbh7kt80.mjs +9 -0
- package/dist/chunks/preActionHook-1.1.13-364dz1r6.mjs +2 -0
- package/dist/chunks/print-1.1.13-cba5ekrx.mjs +57 -0
- package/dist/chunks/process-1.1.13-cavp5bw3.mjs +1 -0
- package/dist/chunks/processBashCommand-1.1.13-fxe0rhkm.mjs +1 -0
- package/dist/chunks/processSlashCommand-1.1.13-r4eqk2r6.mjs +9 -0
- package/dist/chunks/prompt-1.1.13-31mpaj7k.mjs +1 -0
- package/dist/chunks/prompt-1.1.13-ncxsva6c.mjs +1 -0
- package/dist/chunks/prompts-1.1.13-dhrj0hdm.mjs +1 -0
- package/dist/chunks/protocolHandler-1.1.13-gvd8r63q.mjs +13 -0
- package/dist/chunks/provider-1.1.13-aec8n85t.mjs +2 -0
- package/dist/chunks/providerProfiles-1.1.13-zy5qqb30.mjs +1 -0
- package/dist/chunks/providerValidation-1.1.13-cxfdm6ma.mjs +6 -0
- package/dist/chunks/rate-limit-options-1.1.13-v7dcfp2w.mjs +1 -0
- package/dist/chunks/registerSubcommands-1.1.13-w8vyweq5.mjs +26 -0
- package/dist/chunks/registry-1.1.13-0gr1a931.mjs +1 -0
- package/dist/chunks/release-notes-1.1.13-e00b70ja.mjs +5 -0
- package/dist/chunks/reload-plugins-1.1.13-sqy72754.mjs +2 -0
- package/dist/chunks/remote-env-1.1.13-xx2p7c0r.mjs +1 -0
- package/dist/chunks/remoteBridgeCore-1.1.13-8aq4kysc.mjs +1 -0
- package/dist/chunks/remoteSession-1.1.13-pnkdpev8.mjs +1 -0
- package/dist/chunks/rename-1.1.13-7mj7635m.mjs +1 -0
- package/dist/chunks/replBridgeHandle-1.1.13-1jjw29zv.mjs +1 -0
- package/dist/chunks/replLauncher-1.1.13-r9abzwa5.mjs +1 -0
- package/dist/chunks/resume-1.1.13-j22aqaqb.mjs +2 -0
- package/dist/chunks/rewind-1.1.13-f1jde571.mjs +1 -0
- package/dist/chunks/rootOptions-1.1.13-m3dg8wsz.mjs +1 -0
- package/dist/chunks/runWorkflowHeadless-1.1.13-g7t752v0.mjs +10 -0
- package/dist/chunks/sandbox-adapter-1.1.13-8dyb4jrf.mjs +1 -0
- package/dist/chunks/sandbox-toggle-1.1.13-ns6smzfv.mjs +1 -0
- package/dist/chunks/session-1.1.13-je6e2q22.mjs +2 -0
- package/dist/chunks/sessionDiscovery-1.1.13-75db2930.mjs +1 -0
- package/dist/chunks/sessionFileAccessHooks-1.1.13-8251mhbe.mjs +1 -0
- package/dist/chunks/sessionStorage-1.1.13-xg7nehyd.mjs +1 -0
- package/dist/chunks/settings-1.1.13-tbc6gf4g.mjs +1 -0
- package/dist/chunks/setup-1.1.13-pk56d4kg.mjs +5 -0
- package/dist/chunks/sinks-1.1.13-vgc4py0g.mjs +1 -0
- package/dist/chunks/skills-1.1.13-k0dra3w7.mjs +1 -0
- package/dist/chunks/startupProfiler-1.1.13-fvpsbvqy.mjs +1 -0
- package/dist/chunks/startupUpdateCheck-1.1.13-v5fdv702.mjs +1 -0
- package/dist/chunks/state-1.1.13-m97vrspe.mjs +1 -0
- package/dist/chunks/stats-1.1.13-x2ranep4.mjs +6 -0
- package/dist/chunks/status-1.1.13-xv9dh6gx.mjs +1 -0
- package/dist/chunks/stickers-1.1.13-am6n03pg.mjs +1 -0
- package/dist/chunks/subprocessEnv-1.1.13-w3gcpn8h.mjs +1 -0
- package/dist/chunks/tasks-1.1.13-y9rjkzvh.mjs +1 -0
- package/dist/chunks/teamHelpers-1.1.13-paydek0r.mjs +1 -0
- package/dist/chunks/teammateModeSnapshot-1.1.13-w7zznyew.mjs +1 -0
- package/dist/chunks/teleport-1.1.13-fm868anx.mjs +1 -0
- package/dist/chunks/terminalSetup-1.1.13-nfx648p3.mjs +1 -0
- package/dist/chunks/theme-1.1.13-2a11bn8e.mjs +1 -0
- package/dist/chunks/thinkback-1.1.13-8a8pxp4f.mjs +1 -0
- package/dist/chunks/thinkback-play-1.1.13-0v3gmmaa.mjs +1 -0
- package/dist/chunks/toolPool-1.1.13-6pma3gae.mjs +1 -0
- package/dist/chunks/toolSearch-1.1.13-gmb9gs2k.mjs +1 -0
- package/dist/chunks/tools-1.1.13-pdnr83pg.mjs +1 -0
- package/dist/chunks/trustedDevice-1.1.13-82cy5yze.mjs +1 -0
- package/dist/chunks/turndown.cjs-1.1.13-bqqaen2x.mjs +69 -0
- package/dist/chunks/types-1.1.13-2f1xtenh.mjs +1 -0
- package/dist/chunks/ultrareviewCommand-1.1.13-89cvmahe.mjs +4 -0
- package/dist/chunks/update-1.1.13-0hd3pst5.mjs +72 -0
- package/dist/chunks/upgrade-1.1.13-3yjr0p81.mjs +1 -0
- package/dist/chunks/upload-1.1.13-kxah5qjz.mjs +7 -0
- package/dist/chunks/upstreamproxy-1.1.13-1jkww0dp.mjs +14 -0
- package/dist/chunks/url-handler-napi-1.1.13-xxqesd6p.mjs +1 -0
- package/dist/chunks/usage-1.1.13-mwqdp27m.mjs +1 -0
- package/dist/chunks/util-1.1.13-vzt92dj7.mjs +1 -0
- package/dist/chunks/utils-1.1.13-dw4qnd8d.mjs +1 -0
- package/dist/chunks/vim-1.1.13-1d635y0m.mjs +1 -0
- package/dist/chunks/watchLoop-1.1.13-dd5a4gny.mjs +13 -0
- package/dist/chunks/watcher-1.1.13-s8bc1gyy.mjs +1 -0
- package/dist/chunks/wiki-1.1.13-0j3t4xgh.mjs +132 -0
- package/dist/chunks/workflows-1.1.13-4jfegd8x.mjs +1 -0
- package/dist/chunks/worktree-1.1.13-t2dn2nay.mjs +1 -0
- package/dist/chunks/worktreeModeEnabled-1.1.13-sc9g7vcd.mjs +1 -0
- package/dist/chunks/wrapper-1.1.13-4tbb5aym.mjs +7 -0
- package/dist/cli.mjs +2 -2
- package/dist/help-agents.txt +1 -1
- package/dist/help-auth.txt +1 -1
- package/dist/help-auto-mode.txt +1 -1
- package/dist/help-doctor.txt +1 -1
- package/dist/help-install.txt +1 -1
- package/dist/help-mcp.txt +1 -1
- package/dist/help-plugin.txt +1 -1
- package/dist/help-plugins.txt +1 -1
- package/dist/help-setup-token.txt +1 -1
- package/dist/help-update.txt +1 -1
- package/dist/help-upgrade.txt +1 -1
- package/dist/help-workflow.txt +1 -1
- package/dist/help.txt +3 -4
- package/install.cjs +2 -2
- package/package.json +9 -9
- package/dist/chunks/AgentTool-1.1.12-z67tcj7m.mjs +0 -1
- package/dist/chunks/App-1.1.12-6m8fx08p.mjs +0 -1
- package/dist/chunks/ApproveApiKey-1.1.12-9rdxzxf0.mjs +0 -1
- package/dist/chunks/AssistantSessionChooser-1.1.12-6rckmhy4.mjs +0 -1
- package/dist/chunks/AutoModeOptInDialog-1.1.12-xdatx4qm.mjs +0 -1
- package/dist/chunks/BypassPermissionsModeDialog-1.1.12-p6nvmxpz.mjs +0 -1
- package/dist/chunks/ClaudeMdExternalIncludesDialog-1.1.12-j1dkkgzh.mjs +0 -1
- package/dist/chunks/ConsoleOAuthFlow-1.1.12-9pjvfqhh.mjs +0 -1
- package/dist/chunks/DiffDialog-1.1.12-k3538pgr.mjs +0 -6
- package/dist/chunks/Doctor-1.1.12-8xnts7st.mjs +0 -1
- package/dist/chunks/ExplorerDialog-1.1.12-t2ees4c0.mjs +0 -6
- package/dist/chunks/Grove-1.1.12-z9nf34rs.mjs +0 -1
- package/dist/chunks/ITermBackend-1.1.12-dnkmjp57.mjs +0 -1
- package/dist/chunks/InvalidConfigDialog-1.1.12-hb5hwbwd.mjs +0 -1
- package/dist/chunks/InvalidSettingsDialog-1.1.12-7q3pvsg2.mjs +0 -1
- package/dist/chunks/MigrationDialog-1.1.12-w85qg0sk.mjs +0 -1
- package/dist/chunks/Onboarding-1.1.12-3p5fgrdr.mjs +0 -1
- package/dist/chunks/ProviderManager-1.1.12-sqzzs4qj.mjs +0 -1
- package/dist/chunks/REPL-1.1.12-ejf4py4g.mjs +0 -1
- package/dist/chunks/ResumeConversation-1.1.12-z1gm7qjh.mjs +0 -1
- package/dist/chunks/SnapshotUpdateDialog-1.1.12-ktkjmqt0.mjs +0 -1
- package/dist/chunks/TeleportProgress-1.1.12-df4xpg25.mjs +0 -1
- package/dist/chunks/TeleportRepoMismatchDialog-1.1.12-2jttx03a.mjs +0 -1
- package/dist/chunks/TeleportResumeWrapper-1.1.12-bsh7aza9.mjs +0 -1
- package/dist/chunks/TmuxBackend-1.1.12-1hm6hjzf.mjs +0 -9
- package/dist/chunks/ToolSearchTool-1.1.12-heqpnxfc.mjs +0 -1
- package/dist/chunks/TrustDialog-1.1.12-nqtr7drj.mjs +0 -1
- package/dist/chunks/activeProvider-1.1.12-36c5q5d7.mjs +0 -1
- package/dist/chunks/add-dir-1.1.12-4r3h4r9d.mjs +0 -1
- package/dist/chunks/agentTypes-1.1.12-xjtxhm9n.mjs +0 -1
- package/dist/chunks/agents-1.1.12-5a1wg8yy.mjs +0 -110
- package/dist/chunks/agents-1.1.12-yq791fds.mjs +0 -3
- package/dist/chunks/api-1.1.12-w7wkenbt.mjs +0 -1
- package/dist/chunks/asciicast-1.1.12-k7kngvg3.mjs +0 -1
- package/dist/chunks/assistant-1.1.12-n50thbh3.mjs +0 -1
- package/dist/chunks/auth-1.1.12-0qp19bt1.mjs +0 -1
- package/dist/chunks/auth-1.1.12-9a3a2p9d.mjs +0 -1
- package/dist/chunks/autoMode-1.1.12-zn10hew4.mjs +0 -48
- package/dist/chunks/autoUpdater-1.1.12-s1tcgwnw.mjs +0 -1
- package/dist/chunks/backgroundHousekeeping-1.1.12-6hfegmgt.mjs +0 -1
- package/dist/chunks/branch-1.1.12-92zy497f.mjs +0 -4
- package/dist/chunks/bridge-1.1.12-fmkkv0ft.mjs +0 -2
- package/dist/chunks/bridgeConfig-1.1.12-6ef9yk1w.mjs +0 -1
- package/dist/chunks/bridgeEnabled-1.1.12-h641n63k.mjs +0 -1
- package/dist/chunks/bridgeMain-1.1.12-4cgwnkv3.mjs +0 -88
- package/dist/chunks/bridgePointer-1.1.12-kfyejqjb.mjs +0 -1
- package/dist/chunks/btw-1.1.12-dnt55cvn.mjs +0 -1
- package/dist/chunks/buddy-1.1.12-2qy9cqkv.mjs +0 -3
- package/dist/chunks/cache-probe-1.1.12-y10v5wg0.mjs +0 -21
- package/dist/chunks/cacheStats-1.1.12-z78x71tj.mjs +0 -4
- package/dist/chunks/caches-1.1.12-rg9yrcpg.mjs +0 -1
- package/dist/chunks/claudeDesktop-1.1.12-4cwvvrgp.mjs +0 -1
- package/dist/chunks/claudemd-1.1.12-k6g88gh4.mjs +0 -1
- package/dist/chunks/clear-1.1.12-dbbxf36q.mjs +0 -1
- package/dist/chunks/clearTerminal-1.1.12-5t5v4w1p.mjs +0 -1
- package/dist/chunks/cli-1.1.12-03j3j1bx.mjs +0 -5
- package/dist/chunks/cli-1.1.12-03wcx04d.mjs +0 -4
- package/dist/chunks/cli-1.1.12-06rfexx7.mjs +0 -2
- package/dist/chunks/cli-1.1.12-074txgfh.mjs +0 -12
- package/dist/chunks/cli-1.1.12-0te4nxph.mjs +0 -3
- package/dist/chunks/cli-1.1.12-141j9tb0.mjs +0 -8
- package/dist/chunks/cli-1.1.12-14f97qyv.mjs +0 -2
- package/dist/chunks/cli-1.1.12-14n2vprd.mjs +0 -2
- package/dist/chunks/cli-1.1.12-1kpyfq9h.mjs +0 -3
- package/dist/chunks/cli-1.1.12-1n54vqtf.mjs +0 -1
- package/dist/chunks/cli-1.1.12-1v1j4j93.mjs +0 -2
- package/dist/chunks/cli-1.1.12-1w6d2zap.mjs +0 -3
- package/dist/chunks/cli-1.1.12-23j4qrhe.mjs +0 -24
- package/dist/chunks/cli-1.1.12-24hecrkb.mjs +0 -2
- package/dist/chunks/cli-1.1.12-2jkk9gdn.mjs +0 -2
- package/dist/chunks/cli-1.1.12-2nzqqw4h.mjs +0 -2
- package/dist/chunks/cli-1.1.12-2rsbwq0w.mjs +0 -2
- package/dist/chunks/cli-1.1.12-2sfgep06.mjs +0 -2
- package/dist/chunks/cli-1.1.12-30xcatmk.mjs +0 -2
- package/dist/chunks/cli-1.1.12-3avc8vy5.mjs +0 -2
- package/dist/chunks/cli-1.1.12-3nh3r36s.mjs +0 -2
- package/dist/chunks/cli-1.1.12-3rcvzpnf.mjs +0 -2
- package/dist/chunks/cli-1.1.12-3ytes8mc.mjs +0 -2
- package/dist/chunks/cli-1.1.12-4270h6mb.mjs +0 -2
- package/dist/chunks/cli-1.1.12-42p6d7f9.mjs +0 -2
- package/dist/chunks/cli-1.1.12-46wkbg3h.mjs +0 -24
- package/dist/chunks/cli-1.1.12-46xs6yv5.mjs +0 -2
- package/dist/chunks/cli-1.1.12-4q37r7c7.mjs +0 -2
- package/dist/chunks/cli-1.1.12-4v2wmqm5.mjs +0 -2
- package/dist/chunks/cli-1.1.12-4xwk18f5.mjs +0 -2
- package/dist/chunks/cli-1.1.12-52z4wbfk.mjs +0 -2
- package/dist/chunks/cli-1.1.12-53smjkkn.mjs +0 -2
- package/dist/chunks/cli-1.1.12-5c6amx7a.mjs +0 -2
- package/dist/chunks/cli-1.1.12-5dbxwy0d.mjs +0 -5408
- package/dist/chunks/cli-1.1.12-5ebdya2v.mjs +0 -2
- package/dist/chunks/cli-1.1.12-5epjf6b6.mjs +0 -2
- package/dist/chunks/cli-1.1.12-5n60hab1.mjs +0 -2
- package/dist/chunks/cli-1.1.12-5phn452s.mjs +0 -2
- package/dist/chunks/cli-1.1.12-5qar5rtd.mjs +0 -2
- package/dist/chunks/cli-1.1.12-5wda517s.mjs +0 -24
- package/dist/chunks/cli-1.1.12-6492m2bk.mjs +0 -3
- package/dist/chunks/cli-1.1.12-6h4jsnrb.mjs +0 -2
- package/dist/chunks/cli-1.1.12-6hs980bz.mjs +0 -4
- package/dist/chunks/cli-1.1.12-6kn2n3qt.mjs +0 -2
- package/dist/chunks/cli-1.1.12-6nk81f9n.mjs +0 -2
- package/dist/chunks/cli-1.1.12-6p7q4hd1.mjs +0 -3
- package/dist/chunks/cli-1.1.12-6w4t0de0.mjs +0 -66
- package/dist/chunks/cli-1.1.12-7009ycac.mjs +0 -2
- package/dist/chunks/cli-1.1.12-71evpmpb.mjs +0 -2
- package/dist/chunks/cli-1.1.12-7c33mey4.mjs +0 -17
- package/dist/chunks/cli-1.1.12-7fgcfdc9.mjs +0 -2
- package/dist/chunks/cli-1.1.12-7p6yz3vy.mjs +0 -2
- package/dist/chunks/cli-1.1.12-7v3c8nf8.mjs +0 -2
- package/dist/chunks/cli-1.1.12-7w47edrg.mjs +0 -2
- package/dist/chunks/cli-1.1.12-81527bdh.mjs +0 -2
- package/dist/chunks/cli-1.1.12-8e1x1ne0.mjs +0 -2
- package/dist/chunks/cli-1.1.12-8f8r3ncx.mjs +0 -6
- package/dist/chunks/cli-1.1.12-8fpt1x4e.mjs +0 -2
- package/dist/chunks/cli-1.1.12-8kym0ef6.mjs +0 -3
- package/dist/chunks/cli-1.1.12-8nsx4xmd.mjs +0 -2
- package/dist/chunks/cli-1.1.12-8vqxb580.mjs +0 -2
- package/dist/chunks/cli-1.1.12-916jr8n9.mjs +0 -3
- package/dist/chunks/cli-1.1.12-95neb0qs.mjs +0 -2
- package/dist/chunks/cli-1.1.12-9ebacb10.mjs +0 -2
- package/dist/chunks/cli-1.1.12-9f1q50xe.mjs +0 -5
- package/dist/chunks/cli-1.1.12-9rhhwnqq.mjs +0 -18
- package/dist/chunks/cli-1.1.12-9zcjp5sz.mjs +0 -25
- package/dist/chunks/cli-1.1.12-a5k4ztc0.mjs +0 -2
- package/dist/chunks/cli-1.1.12-aee47rfb.mjs +0 -2
- package/dist/chunks/cli-1.1.12-afkfmm9p.mjs +0 -4
- package/dist/chunks/cli-1.1.12-b2khpv7n.mjs +0 -2
- package/dist/chunks/cli-1.1.12-bc08z4xe.mjs +0 -2
- package/dist/chunks/cli-1.1.12-bjra5k78.mjs +0 -12
- package/dist/chunks/cli-1.1.12-bwz4w7h6.mjs +0 -2
- package/dist/chunks/cli-1.1.12-c2gz12r6.mjs +0 -6
- package/dist/chunks/cli-1.1.12-c2pssp70.mjs +0 -2
- package/dist/chunks/cli-1.1.12-c40rcer1.mjs +0 -133
- package/dist/chunks/cli-1.1.12-c4rttvkn.mjs +0 -6
- package/dist/chunks/cli-1.1.12-c5qeebez.mjs +0 -2
- package/dist/chunks/cli-1.1.12-c5qghmz7.mjs +0 -45
- package/dist/chunks/cli-1.1.12-cehv7hpf.mjs +0 -2
- package/dist/chunks/cli-1.1.12-cv3yy30x.mjs +0 -2
- package/dist/chunks/cli-1.1.12-cxgcszn5.mjs +0 -2
- package/dist/chunks/cli-1.1.12-d1nm8nza.mjs +0 -4
- package/dist/chunks/cli-1.1.12-d51fm3w8.mjs +0 -2
- package/dist/chunks/cli-1.1.12-d7rpenw1.mjs +0 -2
- package/dist/chunks/cli-1.1.12-dbebv805.mjs +0 -2
- package/dist/chunks/cli-1.1.12-ddtnjfs6.mjs +0 -2
- package/dist/chunks/cli-1.1.12-dgfste25.mjs +0 -3
- package/dist/chunks/cli-1.1.12-djycjsgd.mjs +0 -16
- package/dist/chunks/cli-1.1.12-dtv1b9yb.mjs +0 -2
- package/dist/chunks/cli-1.1.12-dyrae0ap.mjs +0 -17
- package/dist/chunks/cli-1.1.12-dz2c907x.mjs +0 -2
- package/dist/chunks/cli-1.1.12-e12y7jsd.mjs +0 -2
- package/dist/chunks/cli-1.1.12-ekjf9eqs.mjs +0 -2
- package/dist/chunks/cli-1.1.12-ep5dsvhp.mjs +0 -2
- package/dist/chunks/cli-1.1.12-eyp8nyhg.mjs +0 -9
- package/dist/chunks/cli-1.1.12-f9r3wz7j.mjs +0 -2
- package/dist/chunks/cli-1.1.12-fcmw5w0b.mjs +0 -2
- package/dist/chunks/cli-1.1.12-fhakaf4h.mjs +0 -2
- package/dist/chunks/cli-1.1.12-fkqwvtrq.mjs +0 -2
- package/dist/chunks/cli-1.1.12-fpn24m0s.mjs +0 -2
- package/dist/chunks/cli-1.1.12-fww07vcc.mjs +0 -20
- package/dist/chunks/cli-1.1.12-fx9tstdr.mjs +0 -4
- package/dist/chunks/cli-1.1.12-fy2fghxn.mjs +0 -6
- package/dist/chunks/cli-1.1.12-fzme9j9v.mjs +0 -2
- package/dist/chunks/cli-1.1.12-g42nmgyj.mjs +0 -2
- package/dist/chunks/cli-1.1.12-g74smv34.mjs +0 -2
- package/dist/chunks/cli-1.1.12-gcneaf27.mjs +0 -9
- package/dist/chunks/cli-1.1.12-gj4qv6k2.mjs +0 -2
- package/dist/chunks/cli-1.1.12-gj7b8n1z.mjs +0 -4
- package/dist/chunks/cli-1.1.12-gwf0e4mf.mjs +0 -2
- package/dist/chunks/cli-1.1.12-h7y15004.mjs +0 -21
- package/dist/chunks/cli-1.1.12-hg1d1fgx.mjs +0 -2
- package/dist/chunks/cli-1.1.12-hz5fe64e.mjs +0 -2
- package/dist/chunks/cli-1.1.12-j5w0mkzd.mjs +0 -2
- package/dist/chunks/cli-1.1.12-j66wgyhx.mjs +0 -2
- package/dist/chunks/cli-1.1.12-jcdbxf8s.mjs +0 -2
- package/dist/chunks/cli-1.1.12-jespejyn.mjs +0 -2
- package/dist/chunks/cli-1.1.12-jjjbjcg7.mjs +0 -2
- package/dist/chunks/cli-1.1.12-jv4zbbhn.mjs +0 -2
- package/dist/chunks/cli-1.1.12-k11knrs8.mjs +0 -2
- package/dist/chunks/cli-1.1.12-k27ty3ar.mjs +0 -2
- package/dist/chunks/cli-1.1.12-kdwqa420.mjs +0 -4
- package/dist/chunks/cli-1.1.12-kv8ajcy1.mjs +0 -6
- package/dist/chunks/cli-1.1.12-kzy42jsj.mjs +0 -2
- package/dist/chunks/cli-1.1.12-ma7hkjc4.mjs +0 -2
- package/dist/chunks/cli-1.1.12-mbz4shze.mjs +0 -133
- package/dist/chunks/cli-1.1.12-mc1t8ngb.mjs +0 -2
- package/dist/chunks/cli-1.1.12-mr8fpbax.mjs +0 -2
- package/dist/chunks/cli-1.1.12-mrjjav4s.mjs +0 -59
- package/dist/chunks/cli-1.1.12-n1489021.mjs +0 -24
- package/dist/chunks/cli-1.1.12-n32xbyrn.mjs +0 -3
- package/dist/chunks/cli-1.1.12-n7zph2hg.mjs +0 -2
- package/dist/chunks/cli-1.1.12-nfb55a30.mjs +0 -3
- package/dist/chunks/cli-1.1.12-nfqrrpxy.mjs +0 -2
- package/dist/chunks/cli-1.1.12-ngk7eqab.mjs +0 -2
- package/dist/chunks/cli-1.1.12-p4fz1xfs.mjs +0 -58
- package/dist/chunks/cli-1.1.12-ph37v1jt.mjs +0 -2
- package/dist/chunks/cli-1.1.12-pyh14x7q.mjs +0 -2
- package/dist/chunks/cli-1.1.12-q1ejgfk9.mjs +0 -2
- package/dist/chunks/cli-1.1.12-q6ks02c2.mjs +0 -2
- package/dist/chunks/cli-1.1.12-q8d5kbeh.mjs +0 -2
- package/dist/chunks/cli-1.1.12-qv15ch44.mjs +0 -2
- package/dist/chunks/cli-1.1.12-r39m68an.mjs +0 -12
- package/dist/chunks/cli-1.1.12-r8d25p10.mjs +0 -2
- package/dist/chunks/cli-1.1.12-ra14et4a.mjs +0 -2
- package/dist/chunks/cli-1.1.12-rambm7kx.mjs +0 -2
- package/dist/chunks/cli-1.1.12-rhbwxyg7.mjs +0 -2
- package/dist/chunks/cli-1.1.12-rn91dahv.mjs +0 -2
- package/dist/chunks/cli-1.1.12-rpazm264.mjs +0 -2
- package/dist/chunks/cli-1.1.12-rpfw7xpx.mjs +0 -18
- package/dist/chunks/cli-1.1.12-rz34q5jj.mjs +0 -2
- package/dist/chunks/cli-1.1.12-rz9vy1pm.mjs +0 -4
- package/dist/chunks/cli-1.1.12-saf4srq3.mjs +0 -2
- package/dist/chunks/cli-1.1.12-sj6ttn0z.mjs +0 -2
- package/dist/chunks/cli-1.1.12-sjzxt59x.mjs +0 -26
- package/dist/chunks/cli-1.1.12-sk6tjvhy.mjs +0 -15
- package/dist/chunks/cli-1.1.12-sn2zpx90.mjs +0 -2
- package/dist/chunks/cli-1.1.12-ss7r3f1r.mjs +0 -50
- package/dist/chunks/cli-1.1.12-swkg0qbh.mjs +0 -2
- package/dist/chunks/cli-1.1.12-t5bn5vd1.mjs +0 -2
- package/dist/chunks/cli-1.1.12-t72ybt8s.mjs +0 -2
- package/dist/chunks/cli-1.1.12-t7wqmksj.mjs +0 -2
- package/dist/chunks/cli-1.1.12-tnbdhy9q.mjs +0 -3
- package/dist/chunks/cli-1.1.12-tr130hgr.mjs +0 -2
- package/dist/chunks/cli-1.1.12-tyfp1v92.mjs +0 -2
- package/dist/chunks/cli-1.1.12-v395vz88.mjs +0 -202
- package/dist/chunks/cli-1.1.12-v6t5mf9a.mjs +0 -2
- package/dist/chunks/cli-1.1.12-v92yevq8.mjs +0 -2
- package/dist/chunks/cli-1.1.12-vf9e6229.mjs +0 -2
- package/dist/chunks/cli-1.1.12-vmt4b9p8.mjs +0 -2
- package/dist/chunks/cli-1.1.12-w03v7m0a.mjs +0 -3
- package/dist/chunks/cli-1.1.12-w367zd8v.mjs +0 -15
- package/dist/chunks/cli-1.1.12-w43nkerm.mjs +0 -2
- package/dist/chunks/cli-1.1.12-w85y45c2.mjs +0 -2
- package/dist/chunks/cli-1.1.12-w932xt3k.mjs +0 -2
- package/dist/chunks/cli-1.1.12-wffm9a57.mjs +0 -2
- package/dist/chunks/cli-1.1.12-wgwn4sap.mjs +0 -2
- package/dist/chunks/cli-1.1.12-wkfkz74f.mjs +0 -2
- package/dist/chunks/cli-1.1.12-x31de1c9.mjs +0 -2
- package/dist/chunks/cli-1.1.12-xa0wj1br.mjs +0 -4
- package/dist/chunks/cli-1.1.12-xgpj2nyq.mjs +0 -3
- package/dist/chunks/cli-1.1.12-xkbvk7gy.mjs +0 -2
- package/dist/chunks/cli-1.1.12-xnc015zw.mjs +0 -39
- package/dist/chunks/cli-1.1.12-xs6j60cr.mjs +0 -2
- package/dist/chunks/cli-1.1.12-xsn6jnhb.mjs +0 -2
- package/dist/chunks/cli-1.1.12-xstqyy5j.mjs +0 -2
- package/dist/chunks/cli-1.1.12-y138q38p.mjs +0 -2
- package/dist/chunks/cli-1.1.12-ydnrj62w.mjs +0 -2
- package/dist/chunks/cli-1.1.12-yefhww7n.mjs +0 -25
- package/dist/chunks/cli-1.1.12-yk347gmt.mjs +0 -7
- package/dist/chunks/cli-1.1.12-ym0xwz0f.mjs +0 -2
- package/dist/chunks/cli-1.1.12-ynj3kc2v.mjs +0 -4
- package/dist/chunks/cli-1.1.12-yppz4ya2.mjs +0 -15
- package/dist/chunks/cli-1.1.12-ytbvkdpk.mjs +0 -2
- package/dist/chunks/cli-1.1.12-yy8193ev.mjs +0 -2
- package/dist/chunks/cli-1.1.12-z3m10b9z.mjs +0 -2
- package/dist/chunks/cli-1.1.12-z6ysegyx.mjs +0 -2
- package/dist/chunks/cli-1.1.12-zc3ybemp.mjs +0 -3
- package/dist/chunks/cli-1.1.12-zcapjmh1.mjs +0 -34
- package/dist/chunks/cli-1.1.12-zdc0tyd1.mjs +0 -4
- package/dist/chunks/cli-1.1.12-zdsde34g.mjs +0 -42
- package/dist/chunks/cli-1.1.12-zm8dmy4y.mjs +0 -2
- package/dist/chunks/cli-1.1.12-zntk4z6s.mjs +0 -2
- package/dist/chunks/cli-1.1.12-zpcxbqx6.mjs +0 -2
- package/dist/chunks/cli-1.1.12-zpzh9jxt.mjs +0 -2
- package/dist/chunks/cli-1.1.12-zrye84ef.mjs +0 -6
- package/dist/chunks/cli-1.1.12-zvv4a1gt.mjs +0 -2
- package/dist/chunks/cli-1.1.12-zx5fc844.mjs +0 -3
- package/dist/chunks/client-1.1.12-vcr1mkrr.mjs +0 -1
- package/dist/chunks/color-1.1.12-ct9ya3mq.mjs +0 -1
- package/dist/chunks/compact-1.1.12-6r7bss38.mjs +0 -3
- package/dist/chunks/config-1.1.12-qqtdd7an.mjs +0 -1
- package/dist/chunks/config-1.1.12-y8t2tjqd.mjs +0 -1
- package/dist/chunks/constants-1.1.12-cm63efby.mjs +0 -1
- package/dist/chunks/context-1.1.12-ygn6bxv9.mjs +0 -1
- package/dist/chunks/context-noninteractive-1.1.12-hgswa08e.mjs +0 -1
- package/dist/chunks/conversation-1.1.12-tphkevth.mjs +0 -1
- package/dist/chunks/copilotHeaders-1.1.12-829bfs3w.mjs +0 -1
- package/dist/chunks/copy-1.1.12-r9n6a65j.mjs +0 -9
- package/dist/chunks/cost-1.1.12-n2rdrg20.mjs +0 -1
- package/dist/chunks/createSSHSession-1.1.12-egtd3eaw.mjs +0 -1
- package/dist/chunks/createSession-1.1.12-7gxk01sr.mjs +0 -1
- package/dist/chunks/debug-1.1.12-b6cytcv1.mjs +0 -1
- package/dist/chunks/defaultActionDeps-1.1.12-rgcrme58.mjs +0 -1526
- package/dist/chunks/desktop-1.1.12-eckskas4.mjs +0 -1
- package/dist/chunks/detectRepository-1.1.12-ratnwpjs.mjs +0 -1
- package/dist/chunks/detection-1.1.12-395de1na.mjs +0 -1
- package/dist/chunks/diff-1.1.12-7fqs95xh.mjs +0 -1
- package/dist/chunks/doctor-1.1.12-xfvdw00n.mjs +0 -1
- package/dist/chunks/doctorDiagnostic-1.1.12-tx9s23b0.mjs +0 -1
- package/dist/chunks/earlyInput-1.1.12-61wn1eaf.mjs +0 -1
- package/dist/chunks/effort-1.1.12-5q04d93m.mjs +0 -13
- package/dist/chunks/engine-1.1.12-8xkrm2vj.mjs +0 -1
- package/dist/chunks/envLessBridgeConfig-1.1.12-75x734zy.mjs +0 -1
- package/dist/chunks/envUtils-1.1.12-r6n7156t.mjs +0 -1
- package/dist/chunks/environmentSelection-1.1.12-x8tyrfwf.mjs +0 -1
- package/dist/chunks/environments-1.1.12-dcnn1d4j.mjs +0 -1
- package/dist/chunks/errors-1.1.12-nwhp3qgf.mjs +0 -1
- package/dist/chunks/exampleCommands-1.1.12-hwkpkwfe.mjs +0 -1
- package/dist/chunks/execFileNoThrow-1.1.12-y0sj5esm.mjs +0 -1
- package/dist/chunks/exit-1.1.12-gxfn9nw3.mjs +0 -1
- package/dist/chunks/explorer-1.1.12-jcxv04by.mjs +0 -1
- package/dist/chunks/export-1.1.12-zxnph32a.mjs +0 -2
- package/dist/chunks/extra-usage-1.1.12-7w75gnnp.mjs +0 -1
- package/dist/chunks/extra-usage-noninteractive-1.1.12-n12v83qy.mjs +0 -1
- package/dist/chunks/fast-1.1.12-371erhxm.mjs +0 -1
- package/dist/chunks/feedback-1.1.12-s34ps1x1.mjs +0 -14
- package/dist/chunks/firstPartyEventLogger-1.1.12-0ncbc73w.mjs +0 -1
- package/dist/chunks/git-1.1.12-wxtpf7pf.mjs +0 -1
- package/dist/chunks/githubModelsCredentials-1.1.12-tttfpren.mjs +0 -1
- package/dist/chunks/goal-1.1.12-800r9esg.mjs +0 -4
- package/dist/chunks/grove-1.1.12-hv4r4hb8.mjs +0 -1
- package/dist/chunks/growthbook-1.1.12-wxg22631.mjs +0 -1
- package/dist/chunks/headless-1.1.12-w864zwd1.mjs +0 -2
- package/dist/chunks/heapdump-1.1.12-3jwp0863.mjs +0 -6
- package/dist/chunks/help-1.1.12-kzvzc554.mjs +0 -1
- package/dist/chunks/hookChains-1.1.12-fkv0v6gn.mjs +0 -3
- package/dist/chunks/hooks-1.1.12-p4z7dnw6.mjs +0 -79
- package/dist/chunks/hooks-1.1.12-xchahxt5.mjs +0 -1
- package/dist/chunks/ide-1.1.12-d8rscp4q.mjs +0 -3
- package/dist/chunks/image-processor-napi-1.1.12-s674xy0j.mjs +0 -1
- package/dist/chunks/inboundAttachments-1.1.12-x8zn544c.mjs +0 -1
- package/dist/chunks/index-1.1.12-02zxjhq3.mjs +0 -1
- package/dist/chunks/index-1.1.12-1vh2ahxx.mjs +0 -1
- package/dist/chunks/index-1.1.12-2pstq7tv.mjs +0 -9
- package/dist/chunks/index-1.1.12-3dbbn7w7.mjs +0 -1
- package/dist/chunks/index-1.1.12-5a7hynt4.mjs +0 -1
- package/dist/chunks/index-1.1.12-5mfghyec.mjs +0 -1
- package/dist/chunks/index-1.1.12-6vq9c1cr.mjs +0 -1
- package/dist/chunks/index-1.1.12-7p2zkyey.mjs +0 -1
- package/dist/chunks/index-1.1.12-7vsfkxfa.mjs +0 -2
- package/dist/chunks/index-1.1.12-9kvmaraj.mjs +0 -23
- package/dist/chunks/index-1.1.12-c8fpc37f.mjs +0 -1
- package/dist/chunks/index-1.1.12-d9r4f332.mjs +0 -1
- package/dist/chunks/index-1.1.12-earg3m7e.mjs +0 -1
- package/dist/chunks/index-1.1.12-es1dys6g.mjs +0 -1
- package/dist/chunks/index-1.1.12-nghq39nb.mjs +0 -1
- package/dist/chunks/index-1.1.12-pbgc1mh4.mjs +0 -1
- package/dist/chunks/index-1.1.12-py9kpda6.mjs +0 -30
- package/dist/chunks/index-1.1.12-q0mp0qzt.mjs +0 -1
- package/dist/chunks/index-1.1.12-rw9g1s3p.mjs +0 -5
- package/dist/chunks/index-1.1.12-s6pbqjnw.mjs +0 -1
- package/dist/chunks/index-1.1.12-sbwkw323.mjs +0 -1
- package/dist/chunks/index-1.1.12-x2xqtds2.mjs +0 -9
- package/dist/chunks/index-1.1.12-yqxq96cy.mjs +0 -2
- package/dist/chunks/init-1.1.12-t8gxxp63.mjs +0 -1
- package/dist/chunks/initReplBridge-1.1.12-bvd6m3pc.mjs +0 -1
- package/dist/chunks/ink-1.1.12-c5se9pvd.mjs +0 -1
- package/dist/chunks/insights-1.1.12-5keqwf7b.mjs +0 -870
- package/dist/chunks/install-1.1.12-623af2vt.mjs +0 -1
- package/dist/chunks/install-github-app-1.1.12-e87ed92t.mjs +0 -149
- package/dist/chunks/install-slack-app-1.1.12-v4bew01g.mjs +0 -1
- package/dist/chunks/instrumentation-1.1.12-0c5g9078.mjs +0 -1
- package/dist/chunks/interactiveHelpers-1.1.12-2qc63t4e.mjs +0 -1
- package/dist/chunks/keybindings-1.1.12-a0tmf36r.mjs +0 -2
- package/dist/chunks/knowledge-1.1.12-363c6h7r.mjs +0 -2
- package/dist/chunks/latestVersionCache-1.1.12-fqjqfvtm.mjs +0 -1
- package/dist/chunks/loadAgentsDir-1.1.12-ybqbmem8.mjs +0 -1
- package/dist/chunks/loadPluginHooks-1.1.12-0szntw6f.mjs +0 -1
- package/dist/chunks/log-1.1.12-qb76ahe6.mjs +0 -1
- package/dist/chunks/main-1.1.12-e4jqmbqy.mjs +0 -1
- package/dist/chunks/managedEnv-1.1.12-gn8k7e7q.mjs +0 -1
- package/dist/chunks/mcp-1.1.12-79yf4k4w.mjs +0 -4
- package/dist/chunks/mcp-1.1.12-f2qmv0zk.mjs +0 -1
- package/dist/chunks/mcp-1.1.12-zfjm905b.mjs +0 -17
- package/dist/chunks/mcpb-1.1.12-5ce16qgj.mjs +0 -1
- package/dist/chunks/memory-1.1.12-d08yzqtm.mjs +0 -72
- package/dist/chunks/model-1.1.12-cba9df5d.mjs +0 -1
- package/dist/chunks/model-1.1.12-qqs773ew.mjs +0 -2
- package/dist/chunks/node-1.1.12-rvzx843p.mjs +0 -12
- package/dist/chunks/oauth-1.1.12-fktc2gey.mjs +0 -1
- package/dist/chunks/openaiShim-1.1.12-fhkx69xv.mjs +0 -14
- package/dist/chunks/output-style-1.1.12-t539nvk9.mjs +0 -1
- package/dist/chunks/package-L37ZVTF4-1.1.12-fhh7sea5.mjs +0 -1
- package/dist/chunks/parseConnectUrl-1.1.12-98w20c9k.mjs +0 -1
- package/dist/chunks/parser-1.1.12-zafdjj8h.mjs +0 -1
- package/dist/chunks/passes-1.1.12-cfx78b3r.mjs +0 -1
- package/dist/chunks/permissions-1.1.12-7v81g5xj.mjs +0 -3
- package/dist/chunks/permissions-1.1.12-8r0rwpj3.mjs +0 -1
- package/dist/chunks/plan-1.1.12-68zd5zhz.mjs +0 -1
- package/dist/chunks/plist-1.1.12-qbs00pf8.mjs +0 -1
- package/dist/chunks/plugin-1.1.12-thq4hntn.mjs +0 -29
- package/dist/chunks/pluginStartupCheck-1.1.12-ewtmw9rh.mjs +0 -1
- package/dist/chunks/plugins-1.1.12-3cv1cq26.mjs +0 -9
- package/dist/chunks/preActionHook-1.1.12-d2y5qxhy.mjs +0 -2
- package/dist/chunks/print-1.1.12-28d4f6k1.mjs +0 -57
- package/dist/chunks/privacy-settings-1.1.12-b9svr4k8.mjs +0 -1
- package/dist/chunks/process-1.1.12-chcr08qr.mjs +0 -1
- package/dist/chunks/processBashCommand-1.1.12-d1yg1qp9.mjs +0 -1
- package/dist/chunks/processSlashCommand-1.1.12-yh9sm9jn.mjs +0 -9
- package/dist/chunks/prompt-1.1.12-eqqsbefq.mjs +0 -1
- package/dist/chunks/prompt-1.1.12-my1cpxq3.mjs +0 -1
- package/dist/chunks/prompts-1.1.12-xznb2ad4.mjs +0 -1
- package/dist/chunks/protocolHandler-1.1.12-40y37me1.mjs +0 -13
- package/dist/chunks/provider-1.1.12-8tmes6kx.mjs +0 -2
- package/dist/chunks/providerProfiles-1.1.12-k7xhy2fd.mjs +0 -1
- package/dist/chunks/providerValidation-1.1.12-yshek88b.mjs +0 -6
- package/dist/chunks/rate-limit-options-1.1.12-gxbek2zs.mjs +0 -1
- package/dist/chunks/registerSubcommands-1.1.12-s1q5g1ny.mjs +0 -34
- package/dist/chunks/registry-1.1.12-wkqn4ts6.mjs +0 -1
- package/dist/chunks/release-notes-1.1.12-qfbyqd13.mjs +0 -5
- package/dist/chunks/reload-plugins-1.1.12-5my0jgr4.mjs +0 -2
- package/dist/chunks/remote-env-1.1.12-wz3p1bq9.mjs +0 -1
- package/dist/chunks/remoteBridgeCore-1.1.12-anebgzqr.mjs +0 -1
- package/dist/chunks/remoteSession-1.1.12-4622xyt5.mjs +0 -1
- package/dist/chunks/rename-1.1.12-tqghxn33.mjs +0 -1
- package/dist/chunks/replBridgeHandle-1.1.12-qc15dz9b.mjs +0 -1
- package/dist/chunks/replLauncher-1.1.12-s2k2vt3c.mjs +0 -1
- package/dist/chunks/resume-1.1.12-ryzpjeqs.mjs +0 -2
- package/dist/chunks/rewind-1.1.12-1fe45fnp.mjs +0 -1
- package/dist/chunks/rootOptions-1.1.12-bxwa8e9d.mjs +0 -1
- package/dist/chunks/runWorkflowHeadless-1.1.12-8arepd3m.mjs +0 -10
- package/dist/chunks/sandbox-adapter-1.1.12-y5vfwm88.mjs +0 -1
- package/dist/chunks/sandbox-toggle-1.1.12-bmqzjkd8.mjs +0 -1
- package/dist/chunks/session-1.1.12-55r46xq4.mjs +0 -2
- package/dist/chunks/sessionDiscovery-1.1.12-dyw8e5zx.mjs +0 -1
- package/dist/chunks/sessionFileAccessHooks-1.1.12-xy8msffh.mjs +0 -1
- package/dist/chunks/sessionStorage-1.1.12-wt7grqer.mjs +0 -1
- package/dist/chunks/settings-1.1.12-qw143rxg.mjs +0 -1
- package/dist/chunks/setup-1.1.12-0vs8v1y9.mjs +0 -5
- package/dist/chunks/sinks-1.1.12-b8md831f.mjs +0 -1
- package/dist/chunks/skills-1.1.12-8axg6568.mjs +0 -1
- package/dist/chunks/startupProfiler-1.1.12-m1fc0a1m.mjs +0 -1
- package/dist/chunks/startupUpdateCheck-1.1.12-4p3bf4ag.mjs +0 -1
- package/dist/chunks/state-1.1.12-ckqt4tjb.mjs +0 -1
- package/dist/chunks/stats-1.1.12-wf77dajm.mjs +0 -6
- package/dist/chunks/status-1.1.12-901ytber.mjs +0 -1
- package/dist/chunks/stickers-1.1.12-aebpa8cn.mjs +0 -1
- package/dist/chunks/subprocessEnv-1.1.12-r8kpq95b.mjs +0 -1
- package/dist/chunks/tasks-1.1.12-gmrvpykv.mjs +0 -1
- package/dist/chunks/teamHelpers-1.1.12-xyywtqtf.mjs +0 -1
- package/dist/chunks/teammateModeSnapshot-1.1.12-njh39thh.mjs +0 -1
- package/dist/chunks/teleport-1.1.12-rh5bkep5.mjs +0 -1
- package/dist/chunks/terminalSetup-1.1.12-ct6aey8w.mjs +0 -1
- package/dist/chunks/theme-1.1.12-t5254zeg.mjs +0 -1
- package/dist/chunks/thinkback-1.1.12-z360yz4z.mjs +0 -1
- package/dist/chunks/thinkback-play-1.1.12-y1wq3m6b.mjs +0 -1
- package/dist/chunks/toolPool-1.1.12-p38eypkj.mjs +0 -1
- package/dist/chunks/toolSearch-1.1.12-1tghfpxm.mjs +0 -1
- package/dist/chunks/tools-1.1.12-ajkb4njh.mjs +0 -1
- package/dist/chunks/trustedDevice-1.1.12-yjnkzy41.mjs +0 -1
- package/dist/chunks/turndown.cjs-1.1.12-3hpr7sds.mjs +0 -69
- package/dist/chunks/types-1.1.12-p981e2xb.mjs +0 -1
- package/dist/chunks/ultrareviewCommand-1.1.12-mvab53j9.mjs +0 -4
- package/dist/chunks/update-1.1.12-tnmfcwxb.mjs +0 -72
- package/dist/chunks/upgrade-1.1.12-d1wcx9qz.mjs +0 -1
- package/dist/chunks/upload-1.1.12-pdryb6wx.mjs +0 -7
- package/dist/chunks/upstreamproxy-1.1.12-96ye5mxn.mjs +0 -14
- package/dist/chunks/url-handler-napi-1.1.12-d3qb4n7w.mjs +0 -1
- package/dist/chunks/usage-1.1.12-rbb8qhyy.mjs +0 -1
- package/dist/chunks/util-1.1.12-dmfb6s9t.mjs +0 -1
- package/dist/chunks/utils-1.1.12-aqwbefma.mjs +0 -1
- package/dist/chunks/vim-1.1.12-750k4yz3.mjs +0 -1
- package/dist/chunks/watchLoop-1.1.12-ex8pbh7f.mjs +0 -13
- package/dist/chunks/watcher-1.1.12-jnj825rr.mjs +0 -1
- package/dist/chunks/wiki-1.1.12-pqmnnn75.mjs +0 -132
- package/dist/chunks/workflows-1.1.12-81m0dz4r.mjs +0 -1
- package/dist/chunks/worktree-1.1.12-fnr58dd9.mjs +0 -1
- package/dist/chunks/worktreeModeEnabled-1.1.12-m3y6kfsn.mjs +0 -1
- package/dist/chunks/wrapper-1.1.12-gz9canae.mjs +0 -7
- /package/dist/chunks/{cli-1.1.12-r3fqsq5b.mjs → cli-1.1.13-8812dqjq.mjs} +0 -0
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{ud as Z,vd as _,wd as $,zd as O}from"./cli-1.1.12-2rsbwq0w.mjs";import{Qd as Y,Vd as x}from"./cli-1.1.12-6hs980bz.mjs";import{VL as U,_L as W,dM as S,eM as X,oM as V}from"./cli-1.1.12-5dbxwy0d.mjs";import{Rka as R,Uka as K}from"./cli-1.1.12-fy2fghxn.mjs";import{pla as Q,wla as C}from"./cli-1.1.12-fx9tstdr.mjs";x();K();C();V();S();O();function b(G,J,L){let H=new Set(J.plugins.map((z)=>z.name)),A=`@${L}`,q=[];for(let z of Object.keys(G.plugins)){if(!z.endsWith(A))continue;let h=z.slice(0,-A.length);if(!H.has(h))q.push(z)}return q}async function F(){await Z();let G=X(),J=_(),L=await U(),H=[];for(let A of Object.keys(L))try{let q=await W(A);if(!q.forceRemoveDeletedPlugins)continue;let z=b(G,q,A);for(let h of z){if(h in J)continue;let T=G.plugins[h]??[];if(!T.some((B)=>B.scope==="user"||B.scope==="project"||B.scope==="local"))continue;for(let B of T){let{scope:E}=B;if(E!=="user"&&E!=="project"&&E!=="local")continue;try{await Y(h,E)}catch(v){R(`Failed to auto-uninstall delisted plugin ${h} from ${E}: ${Q(v)}`,{level:"error"})}}await $(h),H.push(h)}}catch(q){R(`Failed to check for delisted plugins in "${A}": ${Q(q)}`,{level:"warn"})}return H}
|
|
2
|
-
export{F as Xa};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{bta as r}from"./cli-1.1.12-2nzqqw4h.mjs";var i,p=(t,e)=>function(){try{return e||(0,t[i(t)[0]])((e={exports:{}}).exports,e),e.exports}catch(s){throw e=0,s}},c;var a=r(()=>{i=Object.getOwnPropertyNames,c=p({"package.json"(t,e){e.exports={name:"@mendable/firecrawl-js",version:"4.32.0",description:"JavaScript SDK for Firecrawl API",main:"dist/index.js",types:"dist/index.d.ts",exports:{"./package.json":"./package.json",".":{import:"./dist/index.js",default:"./dist/index.cjs"}},type:"module",scripts:{build:"tsup","build-and-publish":"pnpm run build && pnpm publish --access public","publish-beta":"pnpm run build && pnpm publish --access public --tag beta",test:"NODE_OPTIONS=--experimental-vm-modules jest --verbose src/__tests__/e2e/v2/*.test.ts --detectOpenHandles","test:unit":"NODE_OPTIONS=--experimental-vm-modules jest --verbose src/__tests__/unit/v2/*.test.ts"},repository:{type:"git",url:"git+https://github.com/firecrawl/firecrawl.git"},author:"Mendable.ai",license:"MIT",dependencies:{axios:"1.18.0",firecrawl:"4.30.1","typescript-event-target":"^1.1.1",zod:"^3.23.8","zod-to-json-schema":"^3.23.0"},bugs:{url:"https://github.com/firecrawl/firecrawl/issues"},homepage:"https://github.com/firecrawl/firecrawl#readme",devDependencies:{"@jest/globals":"^30.2.0","@types/dotenv":"^8.2.0","@types/jest":"^30.0.0","@types/mocha":"^10.0.6","@types/node":"^20.12.12","@types/uuid":"^9.0.8",dotenv:"^16.4.5",jest:"^30.2.0","ts-jest":"^29.4.5",tsup:"^8.5.0",typescript:"^5.4.5",uuid:"^14.0.0"},keywords:["firecrawl","mendable","crawler","web","scraper","api","sdk"],engines:{node:">=22.0.0"}}}})});
|
|
2
|
-
export{c as ni,a as oi};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{rU as N,sU as M,tU as F,vU as I,wU as V}from"./cli-1.1.12-30xcatmk.mjs";import{$8 as L,a9 as _,d9 as O,f9 as b,p9 as x,r9 as H,s9 as K}from"./cli-1.1.12-r39m68an.mjs";import{Oda as X,Tda as Y,Tea as Z,aea as G,lba as D,mfa as R,nba as A}from"./cli-1.1.12-v395vz88.mjs";import{Cla as $,Mla as m}from"./cli-1.1.12-pyh14x7q.mjs";import{bta as U}from"./cli-1.1.12-2nzqqw4h.mjs";function k(q){if(!q||!process.env.ANTHROPIC_UNIX_SOCKET)return q||{};let{ANTHROPIC_UNIX_SOCKET:z,ANTHROPIC_BASE_URL:B,ANTHROPIC_API_KEY:Q,ANTHROPIC_AUTH_TOKEN:j,CLAUDE_CODE_OAUTH_TOKEN:f,...P}=q;return P}function p(q){if(!q)return{};if(!$(process.env.CLAUDE_CODE_PROVIDER_MANAGED_BY_HOST))return q;let z={};for(let[B,Q]of Object.entries(q))if(!F(B))z[B]=Q;return z}function T(q){if(!q||!W)return q||{};let z={};for(let[B,Q]of Object.entries(q))if(!W.has(B))z[B]=Q;return z}function J(q){return T(p(k(q)))}function r(){if(W===void 0)W=process.env.CLAUDE_CODE_ENTRYPOINT==="claude-desktop"?new Set(Object.keys(process.env)):null;Object.assign(process.env,J(Z().env));for(let z of h){if(z==="policySettings")continue;if(!D(z))continue;Object.assign(process.env,J(X(z)?.env))}N(),Object.assign(process.env,J(X("policySettings")?.env));let q=J(Y()?.env);for(let[z,B]of Object.entries(q))if(I.has(z.toUpperCase()))process.env[z]=B}function g(){Object.assign(process.env,J(Z().env)),Object.assign(process.env,J(Y()?.env)),L(),O(),H(),x()}var W,h;var w=U(()=>{M();_();R();m();V();b();K();A();G();h=["userSettings","flagSettings","policySettings"]});
|
|
2
|
-
export{r as Jc,g as Kc,w as Lc};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{bta as K}from"./cli-1.1.12-2nzqqw4h.mjs";function C(f){return(j)=>{if(j.code==="EPIPE")f.destroy()}}function M(){process.stdout.on("error",C(process.stdout)),process.stderr.on("error",C(process.stderr))}function G(f,j){if(f.destroyed)return;f.write(j)}function N(f){G(process.stdout,f)}function Q(f){G(process.stderr,f)}function R(f){console.error(f),process.exit(1)}function S(f,j){return new Promise((H)=>{let q=(J)=>{clearTimeout(B),f.off("end",z),f.off("data",A),H(J)},z=()=>q(!1),A=()=>clearTimeout(B),B=setTimeout(q,j,!0);f.once("end",z),f.once("data",A)})}var L=()=>{};
|
|
2
|
-
export{M as Vka,N as Wka,Q as Xka,R as Yka,S as Zka,L as _ka};
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import{Z as k}from"./cli-1.1.12-bc08z4xe.mjs";import{Dga as $,Ega as F,Kga as z,Lga as H,Uga as P}from"./cli-1.1.12-v395vz88.mjs";import{Dka as V,Hka as C,Rka as X,Sja as _,Tja as A,Uja as B,Uka as E,Wja as L,uka as O,zka as N}from"./cli-1.1.12-fy2fghxn.mjs";import{pra as w,qna as Z}from"./cli-1.1.12-fpn24m0s.mjs";import{Bsa as y,jsa as q}from"./cli-1.1.12-5wda517s.mjs";y();w();A();F();L();E();C();P();N();import{dirname as I,join as x}from"path";var T=z(new Date);function D(){return x($.errors(),T+".jsonl")}function J(G){return x($.mcpLogs(G),T+".jsonl")}function S(G){let K=_(G);return{write(Q){K.write(O(Q)+`
|
|
2
|
-
`)},flush:K.flush,dispose:K.dispose}}var R=new Map;function W(G){let K=R.get(G);if(!K){let Q=I(G);K=S({writeFn:(U)=>{try{V().appendFileSync(G,U)}catch{V().mkdirSync(Q),V().appendFileSync(G,U)}},flushIntervalMs:1000,maxBufferSize:50}),R.set(G,K),B(async()=>K?.dispose())}return K}function f(G,K){}function v(G){if(typeof G==="string")return G;if(G&&typeof G==="object"){let K=G;if(typeof K.message==="string")return K.message;if(typeof K.error==="object"&&K.error&&"message"in K.error&&typeof K.error.message==="string")return K.error.message}return}function j(G){let K=G.stack||G.message,Q="";if(q.isAxiosError(G)&&G.config?.url){let U=[`url=${G.config.url}`];if(G.response?.status!==void 0)U.push(`status=${G.response.status}`);let Y=v(G.response?.data);if(Y)U.push(`body=${Y}`);Q=`[${U.join(",")}] `}X(`${G.name}: ${Q}${K}`,{level:"error"}),f(D(),{error:`${Q}${K}`})}function b(G,K){X(`MCP server "${G}" ${K}`,{level:"error"});let Q=J(G),Y={error:K instanceof Error?K.stack||K.message:String(K),timestamp:new Date().toISOString(),sessionId:Z(),cwd:V().cwd()};W(Q).write(Y)}function u(G,K){X(`MCP server "${G}": ${K}`);let Q=J(G),U={debug:K,timestamp:new Date().toISOString(),sessionId:Z(),cwd:V().cwd()};W(Q).write(U)}function M(){H({logError:j,logMCPError:b,logMCPDebug:u,getErrorsPath:D,getMCPLogsPath:J}),X("Error log sink initialized")}function r(){M(),k()}
|
|
3
|
-
export{r as X};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import{C2 as qJ,F2 as VJ}from"./cli-1.1.12-24hecrkb.mjs";import{Cba as ZJ,Eba as jJ,Mga as q,Qea as U,R$ as YJ,S$ as TJ,S_ as W,T_ as f,Tda as $J,Uga as u,aea as AJ,mfa as m,vba as y,xba as E}from"./cli-1.1.12-v395vz88.mjs";import{Oja as F,Rja as NJ}from"./cli-1.1.12-k27ty3ar.mjs";import{Dka as w,Hka as D,Rka as K,Uka as xJ,uka as b,vka as N,zka as P}from"./cli-1.1.12-fy2fghxn.mjs";import{$ka as QJ,qla as M,rla as v,ula as n,wla as j}from"./cli-1.1.12-fx9tstdr.mjs";import{Mla as k,zla as O}from"./cli-1.1.12-pyh14x7q.mjs";import{bta as T}from"./cli-1.1.12-2nzqqw4h.mjs";import{access as d,chmod as vJ,writeFile as RJ}from"fs/promises";import{homedir as h}from"os";import{join as B}from"path";function A(){return B(O(),"local")}function _J(J=h()){return B(J,".claude","local")}function p(J){let Q=J?.homeDir??h(),Y=J?.configHomeDir??O();return Array.from(new Set([B(Y,"local"),_J(Q)]))}function c(J){return[B(J,"node_modules",".bin","claudin"),B(J,"node_modules",".bin","claude")]}function GJ(J){let Q=J.replace(/\\+/g,"/");return Q.includes("/.claudin/local/node_modules/")||Q.includes("/.claude/local/node_modules/")}function V(){return B(A(),"claudin")}function rJ(){return GJ(y())}async function I(J,Q,Y){try{return await RJ(J,Q,{encoding:"utf8",flag:"wx",mode:Y}),!0}catch(Z){if(M(Z)==="EEXIST")return!1;throw Z}}async function OJ(){try{let J=A();await w().mkdir(J),await I(B(J,"package.json"),b({name:"claudin-local",version:"0.0.1",private:!0},null,2));let Q=V();if(await I(Q,`#!/bin/sh
|
|
2
|
-
exec "${J}/node_modules/.bin/claudin" "$@"`,493))await vJ(Q,493);return!0}catch(J){return q(J),!1}}async function JQ(J,Q){try{if(!await OJ())return"install_failed";let Z=await W("npm",["install",`@claudiolabs/claudin@${Q?Q:J==="stable"?"stable":"latest"}`],{cwd:A(),maxBuffer:1e6});if(Z.code!==0){let $=Error(`Failed to install Claude CLI package: ${Z.stderr}`);return q($),Z.code===190?"in_progress":"install_failed"}return U(($)=>({...$,installMethod:"local"})),"success"}catch(Y){return q(Y),"install_failed"}}async function QQ(){for(let J of p())for(let Q of c(J))try{return await d(Q),!0}catch{}return!1}async function YQ(){for(let J of p())for(let Q of c(J))try{return await d(Q),J}catch{}return null}function ZQ(){let J=process.env.SHELL||"";if(J.includes("zsh"))return"zsh";if(J.includes("bash"))return"bash";if(J.includes("fish"))return"fish";return"unknown"}var g=T(()=>{E();m();k();j();f();D();u();P()});import{open as MJ,readFile as wJ,stat as yJ}from"fs/promises";import{homedir as t}from"os";import{join as C}from"path";function S(J){let Q=J?.homedir??t(),Z=(J?.env??process.env).ZDOTDIR||Q;return{zsh:C(Z,".zshrc"),bash:C(Q,".bashrc"),fish:C(Q,".config/fish/config.fish")}}function a(J){let Q=!1;return{filtered:J.filter((Z)=>{if(s.test(Z)){let $=Z.match(/alias\s+claude\s*=\s*["']([^"']+)["']/);if(!$)$=Z.match(/alias\s+claude\s*=\s*([^#\n]+)/);if($&&$[1]){if($[1].trim()===V())return Q=!0,!1}}return!0}),hadAlias:Q}}async function L(J){try{return(await wJ(J,{encoding:"utf8"})).split(`
|
|
3
|
-
`)}catch(Q){if(n(Q))return null;throw Q}}async function l(J,Q){let Y=await MJ(J,"w");try{await Y.writeFile(Q.join(`
|
|
4
|
-
`),{encoding:"utf8"}),await Y.datasync()}finally{await Y.close()}}async function UJ(J){let Q=S(J);for(let Y of Object.values(Q)){let Z=await L(Y);if(!Z)continue;for(let $ of Z)if(s.test($)){let X=$.match(/alias\s+claude=["']?([^"'\s]+)/);if(X&&X[1])return X[1]}}return null}async function HQ(J){let Q=await UJ(J);if(!Q)return null;let Y=J?.homedir??t(),Z=Q.startsWith("~")?Q.replace("~",Y):Q;try{let $=await yJ(Z);if($.isFile()||$.isSymbolicLink())return Q}catch{}return null}var s;var o=T(()=>{j();g();s=/^\s*alias\s+claude\s*=/});import{constants as KJ}from"fs";import{access as WJ,readFile as CJ,stat as SJ,writeFile as i}from"fs/promises";import{homedir as z}from"os";import{join as H}from"path";function LJ(){let J=y();if(J.includes("/.bun/install/global/"))return!0;let Q=process.env.BUN_INSTALL;if(Q&&J.startsWith(Q))return!0;return!1}function XJ(){return LJ()?"bun":"npm"}function zJ(){let J=process.env.BUN_INSTALL||H(z(),".bun");return H(J,"install","global","node_modules","@claudiolabs/claudin")}async function kJ(){let J=await W("npm",["-g","config","get","prefix"],{cwd:z()});if(J.code!==0)return null;let Q=J.stdout.trim();if(!Q)return null;return YJ()==="windows"?H(Q,"node_modules","@claudiolabs/claudin"):H(Q,"lib","node_modules","@claudiolabs/claudin")}async function e(J){try{let Q=await CJ(H(J,"package.json"),"utf8"),Y=N(Q);return typeof Y.version==="string"?Y.version:null}catch(Q){if(!v(Q))q(Q);return null}}function r(J){return J==="bun"?Promise.resolve(zJ()):kJ()}async function bJ(J,Q,Y){let Z=J==="npm"?"bun":"npm",$=await r(Z);if(!$)return;let X=await e($);if(!X)return;let _=await r(J),G=_?await e(_):null;if(G&&X===G)return;K(`update: repairing stale ${Z} install ${X} at ${$}`);let x=await W(Z,Z==="npm"?["install","-g","--force",Q]:["install","-g",Q],{cwd:z()});if(x.code!==0){q(new R(`Failed to refresh the ${Z} global install at ${$}: ${x.stdout} ${x.stderr}`));return}if(Z==="bun")await HJ();Y?.(`Repaired old version ${X} at ${$}`)}async function PJ(J,Q){let Y=await W("node",[J],{cwd:Q});if(Y.code===0)return!0;if(!IJ.test(Y.error??""))return q(new R(`Skipped postinstall failed under node: ${Y.stdout} ${Y.stderr}`)),!1;let Z=await W("bun",[J],{cwd:Q});if(Z.code===0)return!0;return q(new R(`Skipped postinstall failed under bun: ${Z.stdout} ${Z.stderr}`)),!1}async function HJ(){let J=zJ(),Q=H(J,"install.cjs"),Y=H(J,"bin","claudin.exe");try{await WJ(Q,KJ.F_OK)}catch(Z){if(!v(Z))q(Z);return!1}try{if((await SJ(Y)).size>FJ)return!1}catch(Z){if(!v(Z))return q(Z),!1}if(!await PJ(Q,J))return!1;return K("update: repaired Bun global launcher via install.cjs"),!0}async function IQ(){}async function kQ(){return}async function bQ(){return}function PQ(J){let Y=$J()?.minimumVersion;if(!Y)return!1;let Z=!qJ(J,Y);if(Z)K(`Skipping update to ${J} - below minimumVersion ${Y}`);return Z}function BJ(){return H(O(),".update.lock")}async function DJ(){let J=w(),Q=BJ();try{let Y=await J.stat(Q);if(Date.now()-Y.mtimeMs<JJ)return!1;try{let $=await J.stat(Q);if(Date.now()-$.mtimeMs<JJ)return!1;await J.unlink(Q)}catch($){if(!v($))return q($),!1}}catch(Y){if(!v(Y))return q(Y),!1}try{return await i(Q,`${process.pid}`,{encoding:"utf8",flag:"wx"}),!0}catch(Y){let Z=M(Y);if(Z==="EEXIST")return!1;if(Z==="ENOENT")try{return await J.mkdir(O()),await i(Q,`${process.pid}`,{encoding:"utf8",flag:"wx"}),!0}catch($){if(M($)==="EEXIST")return!1;return q($),!1}return q(Y),!1}}async function fJ(){let J=w(),Q=BJ();try{if(await J.readFile(Q,{encoding:"utf8"})===`${process.pid}`)await J.unlink(Q)}catch(Y){if(v(Y))return;q(Y)}}async function EJ(){let J=XJ()==="bun",Q=null;if(J)Q=await W("bun",["pm","bin","-g"],{cwd:z()});else Q=await W("npm",["-g","config","get","prefix"],{cwd:z()});if(Q.code!==0)return q(Error(`Failed to check ${J?"bun":"npm"} permissions`)),null;return Q.stdout.trim()}async function mJ(){try{let J=await EJ();if(!J)return{hasPermissions:!1,npmPrefix:null};try{return await WJ(J,KJ.W_OK),{hasPermissions:!0,npmPrefix:J}}catch{return q(new R("Insufficient permissions for global npm install.")),{hasPermissions:!1,npmPrefix:J}}}catch(J){return q(J),{hasPermissions:!1,npmPrefix:null}}}async function DQ(J,Q={}){let Y=J==="stable"?"stable":"latest",Z=Q.timeoutMs??5000,$=await W("npm",["view",`@claudiolabs/claudin@${Y}`,"version","--prefer-online"],{abortSignal:AbortSignal.timeout(Z),cwd:z()});if($.code!==0){if(K(`npm view failed with code ${$.code}`),$.stderr)K(`npm stderr: ${$.stderr.trim()}`);else K("npm stderr: (empty)");if($.stdout)K(`npm stdout: ${$.stdout.trim()}`);return null}return $.stdout.trim()}async function fQ(){let J=await W("npm",["view","@claudiolabs/claudin","dist-tags","--json","--prefer-online"],{abortSignal:AbortSignal.timeout(5000),cwd:z()});if(J.code!==0)return K(`npm view dist-tags failed with code ${J.code}`),{latest:null,stable:null};try{let Q=N(J.stdout.trim());return{latest:typeof Q.latest==="string"?Q.latest:null,stable:typeof Q.stable==="string"?Q.stable:null}}catch(Q){return K(`Failed to parse dist-tags: ${Q}`),{latest:null,stable:null}}}async function EQ(J){return null}async function mQ(){return{latest:null,stable:null}}async function uQ(J){let Y=await W("npm",["view","@claudiolabs/claudin","versions","--json","--prefer-online"],{abortSignal:AbortSignal.timeout(30000),cwd:z()});if(Y.code!==0){if(K(`npm view versions failed with code ${Y.code}`),Y.stderr)K(`npm stderr: ${Y.stderr.trim()}`);return[]}try{return N(Y.stdout.trim()).slice(-J).reverse()}catch(Z){return K(`Failed to parse version history: ${Z}`),[]}}async function dQ(J,Q){if(!await DJ())return q(new R("Another process is currently installing an update")),F("tengu_auto_updater_lock_contention",{pid:process.pid,currentVersion:"99.0.0"}),"in_progress";try{await uJ();let Y=XJ();if(Y==="npm"&&ZJ.isNpmFromWindowsPath())return q(Error("Windows NPM detected in WSL environment")),F("tengu_auto_updater_windows_npm_in_wsl",{currentVersion:"99.0.0"}),console.error(`
|
|
5
|
-
Error: Windows NPM detected in WSL
|
|
6
|
-
|
|
7
|
-
You're running Claude Code in WSL but using the Windows NPM installation from /mnt/c/.
|
|
8
|
-
This configuration is not supported for updates.
|
|
9
|
-
|
|
10
|
-
To fix this issue:
|
|
11
|
-
1. Install Node.js within your Linux distribution: e.g. sudo apt install nodejs npm
|
|
12
|
-
2. Make sure Linux NPM is in your PATH before the Windows version
|
|
13
|
-
3. Try updating again with 'claude update'
|
|
14
|
-
`),"install_failed";let{hasPermissions:Z}=await mJ();if(!Z)return"no_permissions";let $=J?`@claudiolabs/claudin@${J}`:"@claudiolabs/claudin",_=await W(Y,Y==="npm"?["install","-g","--force",$]:["install","-g",$],{cwd:z()});if(_.code!==0){let G=new R(`Failed to install new version of claude: ${_.stdout} ${_.stderr}`);return q(G),"install_failed"}return await HJ(),await bJ(Y,$,Q?.onProgress),U((G)=>({...G,installMethod:"global"})),"success"}finally{await fJ()}}async function uJ(){let J=S();for(let[,Q]of Object.entries(J))try{let Y=await L(Q);if(!Y)continue;let{filtered:Z,hadAlias:$}=a(Y);if($)await l(Q,Z),K(`Removed claude alias from ${Q}`)}catch(Y){K(`Failed to remove alias from ${Q}: ${Y}`,{level:"error"})}}var R,FJ=4096,IJ,JJ=300000;var dJ=T(()=>{NJ();E();m();xJ();jJ();k();j();f();D();u();TJ();VJ();AJ();o();P();R=class R extends QJ{};IJ=/ENOENT/i});
|
|
15
|
-
export{rJ as xU,JQ as yU,QQ as zU,YQ as AU,ZQ as BU,g as CU,S as DU,a as EU,L as FU,l as GU,UJ as HU,HQ as IU,o as JU,zJ as KU,HJ as LU,IQ as MU,kQ as NU,bQ as OU,PQ as PU,BJ as QU,mJ as RU,DQ as SU,fQ as TU,EQ as UU,mQ as VU,uQ as WU,dQ as XU,dJ as YU};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{A8 as f,G5 as j,J5 as I,U7 as b,V7 as c,_8 as d}from"./cli-1.1.12-djycjsgd.mjs";import{q_ as F,r_ as D}from"./cli-1.1.12-zpzh9jxt.mjs";import{Mga as y,Uga as T}from"./cli-1.1.12-v395vz88.mjs";import{Uia as $,Via as R,Wia as _,Xia as E}from"./cli-1.1.12-6w4t0de0.mjs";import{Mja as q,Nja as m}from"./cli-1.1.12-rz34q5jj.mjs";import{Rka as W,Uka as z,uka as M,zka as U}from"./cli-1.1.12-fy2fghxn.mjs";import{ola as k,pla as Y,wla as O}from"./cli-1.1.12-fx9tstdr.mjs";import{Bsa as h,jsa as X}from"./cli-1.1.12-5wda517s.mjs";import{bta as A}from"./cli-1.1.12-2nzqqw4h.mjs";import{randomUUID as l}from"crypto";function p(J){if(!X.isAxiosError(J))return!1;if(!J.response)return!0;if(J.response.status>=500)return!0;return!1}async function u(J,B){let N;for(let K=0;K<=x;K++)try{return await X.get(J,B)}catch(Q){if(N=Q,!p(Q))throw Q;if(K>=x)throw W(`Teleport request failed after ${K+1} attempts: ${Y(Q)}`),Q;let V=S[K]??2000;W(`Teleport request failed (attempt ${K+1}/${x+1}), retrying in ${V}ms: ${Y(Q)}`),await b(V)}throw N}async function C(){let J=f()?.accessToken;if(J===void 0)throw Error("Claude Code web sessions require authentication with a Claude.ai account. API key authentication is not sufficient. Please run /login to authenticate, or check your authentication status with /status.");let B=await j();if(!B)throw Error("Unable to get organization UUID");return{accessToken:J,orgUUID:B}}async function BJ(){let{accessToken:J,orgUUID:B}=await C(),N=`${q().BASE_API_URL}/v1/sessions`;try{let K={...L(J),"anthropic-beta":"ccr-byoc-2025-07-29","x-organization-uuid":B},Q=await u(N,{headers:K});if(Q.status!==200)throw Error(`Failed to fetch code sessions: ${Q.statusText}`);return Q.data.data.map((Z)=>{let v=Z.session_context.sources.find((G)=>G.type==="git_repository"),H=null;if(v?.url){let G=F(v.url);if(G){let[w,P]=G.split("/");if(w&&P)H={name:P,owner:{login:w},default_branch:v.revision||void 0}}}return{id:Z.id,title:Z.title||"Untitled",description:"",status:Z.session_status,repo:H,turns:[],created_at:Z.created_at,updated_at:Z.updated_at}})}catch(K){let Q=k(K);throw y(Q),K}}function L(J){return{Authorization:`Bearer ${J}`,"Content-Type":"application/json","anthropic-version":"2023-06-01"}}async function NJ(J){let{accessToken:B,orgUUID:N}=await C(),K=`${q().BASE_API_URL}/v1/sessions/${J}`,Q={...L(B),"anthropic-beta":"ccr-byoc-2025-07-29","x-organization-uuid":N},V=await X.get(K,{headers:Q,timeout:15000,validateStatus:(Z)=>Z<500});if(V.status!==200){let v=V.data?.error?.message;if(V.status===404)throw Error(`Session not found: ${J}`);if(V.status===401)throw Error("Session expired. Please run /login to sign in again.");throw Error(v||`Failed to fetch session: ${V.status} ${V.statusText}`)}return V.data}function WJ(J){return J.session_context.outcomes?.find((N)=>N.type==="git_repository")?.git_info?.branches[0]}async function GJ(J,B,N){try{let{accessToken:K,orgUUID:Q}=await C(),V=`${q().BASE_API_URL}/v1/sessions/${J}/events`,Z={...L(K),"anthropic-beta":"ccr-byoc-2025-07-29","x-organization-uuid":Q},H={events:[{uuid:N?.uuid??l(),session_id:J,type:"user",parent_tool_use_id:null,message:{role:"user",content:B}}]};W(`[sendEventToRemoteSession] Sending event to session ${J}`);let G=await X.post(V,H,{headers:Z,validateStatus:(w)=>w<500,timeout:30000});if(G.status===200||G.status===201)return W(`[sendEventToRemoteSession] Successfully sent event to session ${J}`),!0;return W(`[sendEventToRemoteSession] Failed with status ${G.status}: ${M(G.data)}`),!1}catch(K){return W(`[sendEventToRemoteSession] Error: ${Y(K)}`),!1}}async function vJ(J,B){try{let{accessToken:N,orgUUID:K}=await C(),Q=`${q().BASE_API_URL}/v1/sessions/${J}`,V={...L(N),"anthropic-beta":"ccr-byoc-2025-07-29","x-organization-uuid":K};W(`[updateSessionTitle] Updating title for session ${J}: "${B}"`);let Z=await X.patch(Q,{title:B},{headers:V,validateStatus:(v)=>v<500});if(Z.status===200)return W(`[updateSessionTitle] Successfully updated title for session ${J}`),!0;return W(`[updateSessionTitle] Failed with status ${Z.status}: ${M(Z.data)}`),!1}catch(N){return W(`[updateSessionTitle] Error: ${Y(N)}`),!1}}var S,x,$J;var g=A(()=>{h();m();I();R();d();z();D();O();E();T();c();U();S=[2000,4000,8000,16000],x=S.length;$J=_(()=>$.object({id:$.string(),title:$.string(),description:$.string(),status:$.enum(["idle","working","waiting","completed","archived","cancelled","rejected"]),repo:$.object({name:$.string(),owner:$.object({login:$.string()}),default_branch:$.string().optional()}).nullable(),turns:$.array($.string()),created_at:$.string(),updated_at:$.string()}))});
|
|
2
|
-
export{p as D4,u as E4,$J as F4,C as G4,BJ as H4,L as I4,NJ as J4,WJ as K4,GJ as L4,vJ as M4,g as N4};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{hS as R,lK as Y,pm as W,sm as P,uk as Q,vk as I}from"./cli-1.1.12-5dbxwy0d.mjs";import{Xga as B,Yga as f}from"./cli-1.1.12-d1nm8nza.mjs";import{Dja as F,hja as H,ija as J}from"./cli-1.1.12-3avc8vy5.mjs";import{pra as $,qna as v}from"./cli-1.1.12-fpn24m0s.mjs";import{bta as Z}from"./cli-1.1.12-2nzqqw4h.mjs";import{randomUUID as U}from"crypto";function S(j){return j.flatMap((h)=>{switch(h.type){case"assistant":return[{type:"assistant",message:h.message,uuid:h.uuid,requestId:void 0,timestamp:new Date().toISOString()}];case"user":return[{type:"user",message:h.message,uuid:h.uuid??U(),timestamp:h.timestamp??new Date().toISOString(),isMeta:h.isSynthetic}];case"system":if(h.subtype==="compact_boundary")return[{type:"system",content:"Conversation compacted",level:"info",subtype:"compact_boundary",compactMetadata:X(h.compact_metadata),uuid:h.uuid,timestamp:new Date().toISOString()}];return[];default:return[]}})}function V(j){let h=j.preservedSegment;return{trigger:j.trigger,pre_tokens:j.preTokens,...h&&{preserved_segment:{head_uuid:h.headUuid,anchor_uuid:h.anchorUuid,tail_uuid:h.tailUuid}}}}function X(j){let h=j.preserved_segment;return{trigger:j.trigger,preTokens:j.pre_tokens,...h&&{preservedSegment:{headUuid:h.head_uuid,anchorUuid:h.anchor_uuid,tailUuid:h.tail_uuid}}}}function r(j){return j.flatMap((h)=>{switch(h.type){case"assistant":return[{type:"assistant",message:z(h),session_id:v(),parent_tool_use_id:null,uuid:h.uuid,error:h.error}];case"user":return[{type:"user",message:h.message,session_id:v(),parent_tool_use_id:null,uuid:h.uuid,timestamp:h.timestamp,isSynthetic:h.isMeta||h.isVisibleInTranscriptOnly,...h.toolUseResult!==void 0?{tool_use_result:h.toolUseResult}:{}}];case"system":if(h.subtype==="compact_boundary"&&h.compactMetadata)return[{type:"system",subtype:"compact_boundary",session_id:v(),uuid:h.uuid,compact_metadata:V(h.compactMetadata)}];if(h.subtype==="local_command"&&(h.content.includes(`<${H}>`)||h.content.includes(`<${J}>`)))return[w(h.content,h.uuid)];return[];default:return[]}})}function w(j,h){let x=B(j).replace(/<local-command-stdout>([\s\S]*?)<\/local-command-stdout>/,"$1").replace(/<local-command-stderr>([\s\S]*?)<\/local-command-stderr>/,"$1").trim();return{type:"assistant",message:Y({content:x}).message,parent_tool_use_id:null,session_id:v(),uuid:h}}function T(j){if(!j)return;return{status:j.status,...j.resetsAt!==void 0&&{resetsAt:j.resetsAt},...j.rateLimitType!==void 0&&{rateLimitType:j.rateLimitType},...j.utilization!==void 0&&{utilization:j.utilization},...j.overageStatus!==void 0&&{overageStatus:j.overageStatus},...j.overageResetsAt!==void 0&&{overageResetsAt:j.overageResetsAt},...j.overageDisabledReason!==void 0&&{overageDisabledReason:j.overageDisabledReason},...j.isUsingOverage!==void 0&&{isUsingOverage:j.isUsingOverage},...j.surpassedThreshold!==void 0&&{surpassedThreshold:j.surpassedThreshold}}}function z(j){let h=j.message.content;if(!Array.isArray(h))return j.message;let x=h.map((q)=>{if(q.type!=="tool_use")return q;if(q.name===Q){let y=W();if(y)return{...q,input:{...q.input,plan:y}}}return q});return{...j.message,content:x}}var G=Z(()=>{$();F();I();f();R();P()});
|
|
2
|
-
export{S as Te,V as Ue,X as Ve,r as We,w as Xe,T as Ye,G as Ze};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{Mga as U,Uga as m,Y$ as F,aaa as f,c$ as K,d$ as E}from"./cli-1.1.12-v395vz88.mjs";import{_ia as v,aja as x}from"./cli-1.1.12-3avc8vy5.mjs";import{Dka as D,Hka as g}from"./cli-1.1.12-fy2fghxn.mjs";import{bta as S}from"./cli-1.1.12-2nzqqw4h.mjs";import{basename as H,dirname as b,join as I,sep as O}from"path";function _(q,B){if(!q)return{directory:B||v(),prefix:""};let G=F(q,B);if(q.endsWith("/")||q.endsWith(O))return{directory:G,prefix:""};let N=b(G),J=H(q);return{directory:N,prefix:J}}async function k(q){let B=Z.get(q);if(B)return B;try{let J=(await D().readdir(q)).filter((M)=>M.isDirectory()&&!M.name.startsWith(".")).map((M)=>({name:M.name,path:I(q,M.name),type:"directory"})).slice(0,100);return Z.set(q,J),J}catch(G){return U(G),[]}}async function P(q,B={}){let{basePath:G=v(),maxResults:N=10}=B,{directory:J,prefix:M}=_(q,G),V=await k(J),z=M.toLowerCase();return V.filter((X)=>X.name.toLowerCase().startsWith(z)).slice(0,N).map((X)=>({id:X.path,displayText:X.name+"/",description:"directory",metadata:{type:"directory"}}))}function o(q){return q.startsWith("~/")||q.startsWith("/")||q.startsWith("./")||q.startsWith("../")||q==="~"||q==="."||q===".."}async function u(q,B=!1){let G=`${q}:${B}`,N=A.get(G);if(N)return N;try{let V=(await D().readdir(q)).filter((z)=>B||!z.name.startsWith(".")).map((z)=>({name:z.name,path:I(q,z.name),type:z.isDirectory()?"directory":"file"})).sort((z,W)=>{if(z.type==="directory"&&W.type!=="directory")return-1;if(z.type!=="directory"&&W.type==="directory")return 1;return z.name.localeCompare(W.name)}).slice(0,100);return A.set(G,V),V}catch(J){return U(J),[]}}async function h(q,B={}){let{basePath:G=v(),maxResults:N=10,includeFiles:J=!0,includeHidden:M=!1}=B,{directory:V,prefix:z}=_(q,G),W=await u(V,M),X=z.toLowerCase(),j=W.filter((Q)=>{if(!J&&Q.type==="file")return!1;return Q.name.toLowerCase().startsWith(X)}).slice(0,N),w=q.includes("/")||q.includes(O),Y="";if(w){let Q=q.lastIndexOf("/"),$=q.lastIndexOf(O),L=Math.max(Q,$);Y=q.substring(0,L+1)}if(Y.startsWith("./")||Y.startsWith("."+O))Y=Y.slice(2);return j.map((Q)=>{let $=Y+Q.name;return{id:$,displayText:Q.type==="directory"?$+"/":$,metadata:{type:Q.type}}})}var R=500,T=300000,Z,A;var C=S(()=>{E();x();g();m();f();Z=new K({max:R,ttl:T}),A=new K({max:R,ttl:T})});
|
|
2
|
-
export{P as Ah,o as Bh,h as Ch,C as Dh};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{sd as t,td as DJ}from"./cli-1.1.12-ngk7eqab.mjs";import{Xh as s,Yh as jJ}from"./cli-1.1.12-p4fz1xfs.mjs";import{Dj as g,FF as a,Fm as UJ,GF as LJ,MT as bJ,Mn as JJ,ND as ZJ,Zl as p,am as _J,eH as r,fE as PJ,gE as xJ,hS as h,iH as IJ,jH as l,kH as TJ,lE as o,mE as yJ,nm as m,pz as f,qz as wJ,sm as BJ,vO as $J,zm as d,zx as XJ}from"./cli-1.1.12-5dbxwy0d.mjs";import{EV as u,FV as c,QV as MJ}from"./cli-1.1.12-rn91dahv.mjs";import{p7 as YJ}from"./cli-1.1.12-djycjsgd.mjs";import{$da as D,Dga as A,Ega as NJ,Mga as _,Tda as j,Uga as k,aea as zJ,waa as KJ}from"./cli-1.1.12-v395vz88.mjs";import{cia as GJ}from"./cli-1.1.12-jjjbjcg7.mjs";import{Oja as b,Rja as S}from"./cli-1.1.12-k27ty3ar.mjs";import{Dka as W,Hka as VJ,Rka as I,Uka as WJ,zka as qJ}from"./cli-1.1.12-fy2fghxn.mjs";import{wla as e}from"./cli-1.1.12-fx9tstdr.mjs";import{Mla as QJ,zla as B}from"./cli-1.1.12-pyh14x7q.mjs";import{gpa as R,pra as C,xoa as H}from"./cli-1.1.12-fpn24m0s.mjs";import{_sa as SJ}from"./cli-1.1.12-2nzqqw4h.mjs";yJ();jJ();C();GJ();S();KJ();h();YJ();qJ();$J();JJ();k();e();h();XJ();ZJ();function P(){}C();S();NJ();WJ();QJ();VJ();wJ();k();LJ();BJ();bJ();TJ();MJ();zJ();UJ();_J();import{join as Q}from"path";var AJ=30;function N(){let q=((j()||{}).cleanupPeriodDays??AJ)*24*60*60*1000;return new Date(Date.now()-q)}function n(X,J){return{messages:X.messages+J.messages,errors:X.errors+J.errors}}function FJ(X){let J=X.split(".")[0].replace(/T(\d{2})-(\d{2})-(\d{2})-(\d{3})Z/,"T$1:$2:$3.$4Z");return new Date(J)}async function x(X,J,q){let $={messages:0,errors:0};try{let G=await W().readdir(X);for(let K of G)try{if(FJ(K.name)<J)if(await W().unlink(Q(X,K.name)),q)$.messages++;else $.errors++}catch(Z){_(Z)}}catch(G){if(G instanceof Error&&"code"in G&&G.code!=="ENOENT")_(G)}return $}async function HJ(){let X=W(),J=N(),q=A.errors(),$=A.baseLogs(),G=await x(q,J,!1);try{let K;try{K=await X.readdir($)}catch{return G}let Z=K.filter((Y)=>Y.isDirectory()&&Y.name.startsWith("mcp-logs-")).map((Y)=>Q($,Y.name));for(let Y of Z)G=n(G,await x(Y,J,!0)),await V(Y,X)}catch(K){if(K instanceof Error&&"code"in K&&K.code!=="ENOENT")_(K)}return G}async function U(X,J,q){if((await q.stat(X)).mtime<J)return await q.unlink(X),!0;return!1}async function V(X,J){try{await J.rmdir(X)}catch{}}async function RJ(){let X=N(),J={messages:0,errors:0},q=g(),$=W(),G;try{G=await $.readdir(q)}catch{return J}for(let K of G){if(!K.isDirectory())continue;let Z=Q(q,K.name),Y;try{Y=await $.readdir(Z)}catch{J.errors++;continue}for(let z of Y)if(z.isFile()){if(!z.name.endsWith(".jsonl")&&!z.name.endsWith(".cast"))continue;try{if(await U(Q(Z,z.name),X,$))J.messages++}catch{J.errors++}}else if(z.isDirectory()){let L=Q(Z,z.name),M=Q(L,d),v;try{v=await $.readdir(M)}catch{await V(L,$);continue}for(let w of v)if(w.isFile())try{if(await U(Q(M,w.name),X,$))J.messages++}catch{J.errors++}else if(w.isDirectory()){let T=Q(M,w.name),O;try{O=await $.readdir(T)}catch{continue}for(let E of O){if(!E.isFile())continue;try{if(await U(Q(T,E.name),X,$))J.messages++}catch{J.errors++}}await V(T,$)}await V(M,$),await V(L,$)}await V(Z,$)}return J}async function y(X,J,q=!0){let $=N(),G={messages:0,errors:0},K=W(),Z;try{Z=await K.readdir(X)}catch{return G}for(let Y of Z){if(!Y.isFile()||!Y.name.endsWith(J))continue;try{if(await U(Q(X,Y.name),$,K))G.messages++}catch{G.errors++}}if(q)await V(X,K);return G}async function vJ(){let X=m(),J=await y(X,".md"),q=Q(B(),"plans");if(q!==X){let $=await y(q,".md");return n(J,$)}return J}async function OJ(){let X=N(),J={messages:0,errors:0},q=W();try{let $=B(),G=Q($,"file-history"),K;try{K=await q.readdir(G)}catch{return J}let Z=K.filter((Y)=>Y.isDirectory()).map((Y)=>Q(G,Y.name));await Promise.all(Z.map(async(Y)=>{try{if((await q.stat(Y)).mtime<X)await q.rm(Y,{recursive:!0,force:!0}),J.messages++}catch{J.errors++}})),await V(G,q)}catch($){_($)}return J}async function EJ(){let X=N(),J={messages:0,errors:0},q=W();try{let $=B(),G=Q($,"session-env"),K;try{K=await q.readdir(G)}catch{return J}let Z=K.filter((Y)=>Y.isDirectory()).map((Y)=>Q(G,Y.name));for(let Y of Z)try{if((await q.stat(Y)).mtime<X)await q.rm(Y,{recursive:!0,force:!0}),J.messages++}catch{J.errors++}await V(G,q)}catch($){_($)}return J}async function kJ(){let X=N(),J={messages:0,errors:0},q=W();try{let $=Q(B(),"tasks"),G=c(u()),K;try{K=await q.readdir($)}catch{return J}for(let Z of K){if(!Z.isDirectory()||Z.name===G)continue;let Y=Q($,Z.name);try{if(await hJ(Y,q)<X)await q.rm(Y,{recursive:!0,force:!0}),J.messages++}catch{J.errors++}}await V($,q)}catch($){_($)}return J}async function hJ(X,J){let q=(await J.stat(X)).mtime,$=await J.readdir(X).catch(()=>[]);for(let G of $){if(!G.isFile())continue;try{let{mtime:K}=await J.stat(Q(X,G.name));if(K>q)q=K}catch{}}return q}async function CJ(){let X=N(),J={messages:0,errors:0},q=W(),$=Q(B(),"debug"),G;try{G=await q.readdir($)}catch{return J}for(let K of G){if(!K.isFile()||!K.name.endsWith(".txt")||K.name==="latest")continue;try{if(await U(Q($,K.name),X,q))J.messages++}catch{J.errors++}}return J}async function i(){let{errors:X}=l();if(X.length>0&&D("cleanupPeriodDays")){I("Skipping cleanup: settings have validation errors but cleanupPeriodDays was explicitly set. Fix settings errors to enable cleanup.");return}await HJ(),await RJ(),await vJ(),await OJ(),await EJ(),await kJ(),await CJ(),await f(),await a(N());let J=await p(N());if(J>0)b("tengu_worktree_cleanup",{removed:J})}IJ();DJ();var gJ=(xJ(),SJ(PJ));var F=600000;function dX(){s(),P(),gJ.initExtractMemories(),o(),t();let X=!0;async function J(){if(R()&&H()>Date.now()-60000){setTimeout(J,F).unref();return}if(X)X=!1,await i();if(R()&&H()>Date.now()-60000){setTimeout(J,F).unref();return}await r()}setTimeout(J,F).unref()}
|
|
2
|
-
export{dX as ka};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{I8 as Z,L8 as T,R8 as f,_8 as WB}from"./cli-1.1.12-djycjsgd.mjs";import{Dba as _,E_ as O,Eba as KB,F_ as BB,Tea as A,dfa as v,mfa as QB}from"./cli-1.1.12-v395vz88.mjs";import{_ia as w,aja as JB}from"./cli-1.1.12-3avc8vy5.mjs";import{Cla as F,Mla as e}from"./cli-1.1.12-pyh14x7q.mjs";import{Dma as I,Ema as c,Pma as M,Qma as m,Zla as S,_la as s,pra as a,qna as R}from"./cli-1.1.12-fpn24m0s.mjs";import{Ora as q,Pra as t}from"./cli-1.1.12-fkqwvtrq.mjs";import{bta as K}from"./cli-1.1.12-2nzqqw4h.mjs";function p(B,J){return B+b(h()*(J-B+1))}var b,h,D;var G=K(()=>{b=Math.floor,h=Math.random;D=p});function u(B){var J=B.length;return J?B[D(0,J-1)]:void 0}var Y;var H=K(()=>{G();Y=u});function l(B,J){return M(J,function(X){return B[X]})}var z;var P=K(()=>{m();z=l});function i(B){return B==null?[]:z(B,I(B))}var U;var C=K(()=>{P();c();U=i});function n(B){return Y(U(B))}var k;var E=K(()=>{H();C();k=n});function o(B){var J=S(B)?Y:k;return J(B)}var kB;var r=K(()=>{H();E();s();kB=o});async function vB(){if(W===null&&!Q)Q=YB(),W=await Q,Q=null,d.cache.clear?.()}function TB(){W=null,Q=null,d.cache.clear?.(),g.cache.clear?.()}function XB(){if(W!==null)return W;let B=Z();if(B?.emailAddress)return B.emailAddress;return}async function YB(){let B=Z();if(B?.emailAddress)return B.emailAddress;return g()}var W=null,Q=null,d,g;var ZB=K(()=>{BB();t();a();WB();QB();JB();KB();e();d=q((B)=>{let J=v(),X=A(),$,N,L;if(B){if($=T()??void 0,N=f()??void 0,$&&X.claudeCodeFirstTokenDate){let x=new Date(X.claudeCodeFirstTokenDate).getTime();if(!isNaN(x))L=x}}let V=Z(),j=V?.organizationUuid,y=V?.accountUuid;return{deviceId:J,sessionId:R(),email:XB(),appVersion:"99.0.0",platform:_(),organizationUuid:j,accountUuid:y,userType:void 0,subscriptionType:$,rateLimitTier:N,firstTokenTime:L,...F(process.env.GITHUB_ACTIONS)&&{githubActionsMetadata:{actor:process.env.GITHUB_ACTOR,actorId:process.env.GITHUB_ACTOR_ID,repository:process.env.GITHUB_REPOSITORY,repositoryId:process.env.GITHUB_REPOSITORY_ID,repositoryOwner:process.env.GITHUB_REPOSITORY_OWNER,repositoryOwnerId:process.env.GITHUB_REPOSITORY_OWNER_ID}}}});g=q(async()=>{let B=await O("git config --get user.email",{shell:!0,reject:!1,cwd:w()});return B.exitCode===0&&B.stdout?B.stdout.trim():void 0})});
|
|
2
|
-
export{kB as ZU,r as _U,vB as $U,TB as aV,g as bV,ZB as cV};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{GZ as u2,K1 as e2,PZ as Z,d1 as Y,f1 as u}from"./cli-1.1.12-mrjjav4s.mjs";import{n4 as t,o4 as o,p4 as U}from"./cli-1.1.12-gwf0e4mf.mjs";import{Cba as X,Eba as j}from"./cli-1.1.12-v395vz88.mjs";import{Zsa as s}from"./cli-1.1.12-2nzqqw4h.mjs";e2();j();U();var Q=s(u2(),1),K=58;function c2(){let l=Q.c(35),[e]=Z();if(X.terminal==="Apple_Terminal"){let c;if(l[0]!==e)c=t(t2,{theme:e,welcomeMessage:"Welcome to Claudin"}),l[0]=e,l[1]=c;else c=l[1];return c}if(["light","light-daltonized","light-ansi"].includes(e)){let c,O,R,k,A,a,I,i,V;if(l[2]===Symbol.for("react.memo_cache_sentinel"))c=o(u,{children:[o(u,{color:"claude",children:["Welcome to Claudin"," "]}),o(u,{dimColor:!0,children:["v","1.1.12"," "]})]}),O=t(u,{children:"…………………………………………………………………………………………………………………………………………………………"}),R=t(u,{children:" "}),k=t(u,{children:" "}),A=t(u,{children:" "}),a=t(u,{children:" ░░░░░░ "}),I=t(u,{children:" ░░░ ░░░░░░░░░░ "}),i=t(u,{children:" ░░░░░░░░░░░░░░░░░░░ "}),V=t(u,{children:" "}),l[2]=c,l[3]=O,l[4]=R,l[5]=k,l[6]=A,l[7]=a,l[8]=I,l[9]=i,l[10]=V;else c=l[2],O=l[3],R=l[4],k=l[5],A=l[6],a=l[7],I=l[8],i=l[9],V=l[10];let M;if(l[11]===Symbol.for("react.memo_cache_sentinel"))M=o(u,{children:[t(u,{dimColor:!0,children:" ░░░░"}),t(u,{children:" ██ "})]}),l[11]=M;else M=l[11];let E,W;if(l[12]===Symbol.for("react.memo_cache_sentinel"))E=o(u,{children:[t(u,{dimColor:!0,children:" ░░░░░░░░░░"}),t(u,{children:" ██▒▒██ "})]}),W=t(u,{children:" ▒▒ ██ ▒"}),l[12]=E,l[13]=W;else E=l[12],W=l[13];let N;if(l[14]===Symbol.for("react.memo_cache_sentinel"))N=o(u,{children:[" ",t(u,{color:"clawd_body",children:" █████████ "})," ▒▒░░▒▒ ▒ ▒▒"]}),l[14]=N;else N=l[14];let L;if(l[15]===Symbol.for("react.memo_cache_sentinel"))L=o(u,{children:[" ",t(u,{color:"clawd_body",backgroundColor:"clawd_background",children:"██▄█████▄██"})," ▒▒ ▒▒ "]}),l[15]=L;else L=l[15];let P;if(l[16]===Symbol.for("react.memo_cache_sentinel"))P=o(u,{children:[" ",t(u,{color:"clawd_body",children:" █████████ "})," ░ ▒ "]}),l[16]=P;else P=l[16];let v;if(l[17]===Symbol.for("react.memo_cache_sentinel"))v=t(Y,{width:K,children:o(u,{children:[c,O,R,k,A,a,I,i,V,M,E,W,N,L,P,o(u,{children:["…………………",t(u,{color:"clawd_body",children:"█ █ █ █"}),"……………………………………………………………………░…………………………▒…………"]})]})}),l[17]=v;else v=l[17];return v}let B,r,D,T,d,m,n;if(l[18]===Symbol.for("react.memo_cache_sentinel"))B=o(u,{children:[o(u,{color:"claude",children:["Welcome to Claudin"," "]}),o(u,{dimColor:!0,children:["v","1.1.12"," "]})]}),r=t(u,{children:"…………………………………………………………………………………………………………………………………………………………"}),D=t(u,{children:" "}),T=t(u,{children:" * █████▓▓░ "}),d=t(u,{children:" * ███▓░ ░░ "}),m=t(u,{children:" ░░░░░░ ███▓░ "}),n=t(u,{children:" ░░░ ░░░░░░░░░░ ███▓░ "}),l[18]=B,l[19]=r,l[20]=D,l[21]=T,l[22]=d,l[23]=m,l[24]=n;else B=l[18],r=l[19],D=l[20],T=l[21],d=l[22],m=l[23],n=l[24];let b,f,_,y,h;if(l[25]===Symbol.for("react.memo_cache_sentinel"))_=o(u,{children:[t(u,{children:" ░░░░░░░░░░░░░░░░░░░ "}),t(u,{bold:!0,children:"*"}),t(u,{children:" ██▓░░ ▓ "})]}),y=t(u,{children:" ░▓▓███▓▓░ "}),h=t(u,{dimColor:!0,children:" * ░░░░ "}),b=t(u,{dimColor:!0,children:" ░░░░░░░░ "}),f=t(u,{dimColor:!0,children:" ░░░░░░░░░░░░░░░░ "}),l[25]=b,l[26]=f,l[27]=_,l[28]=y,l[29]=h;else b=l[25],f=l[26],_=l[27],y=l[28],h=l[29];let C;if(l[30]===Symbol.for("react.memo_cache_sentinel"))C=t(u,{color:"clawd_body",children:" █████████ "}),l[30]=C;else C=l[30];let S;if(l[31]===Symbol.for("react.memo_cache_sentinel"))S=o(u,{children:[" ",C," ",t(u,{dimColor:!0,children:"*"}),t(u,{children:" "})]}),l[31]=S;else S=l[31];let w;if(l[32]===Symbol.for("react.memo_cache_sentinel"))w=o(u,{children:[" ",t(u,{color:"clawd_body",children:"██▄█████▄██"}),t(u,{children:" "}),t(u,{bold:!0,children:"*"}),t(u,{children:" "})]}),l[32]=w;else w=l[32];let g;if(l[33]===Symbol.for("react.memo_cache_sentinel"))g=o(u,{children:[" ",t(u,{color:"clawd_body",children:" █████████ "})," * "]}),l[33]=g;else g=l[33];let p;if(l[34]===Symbol.for("react.memo_cache_sentinel"))p=t(Y,{width:K,children:o(u,{children:[B,r,D,T,d,m,n,_,y,h,b,f,S,w,g,o(u,{children:["…………………",t(u,{color:"clawd_body",children:"█ █ █ █"}),"………………………………………………………………………………………………………………"]})]})}),l[34]=p;else p=l[34];return p}function t2(l){let e=Q.c(44),{theme:B,welcomeMessage:r}=l;if(["light","light-daltonized","light-ansi"].includes(B)){let a;if(e[0]!==r)a=o(u,{color:"claude",children:[r," "]}),e[0]=r,e[1]=a;else a=e[1];let I;if(e[2]===Symbol.for("react.memo_cache_sentinel"))I=o(u,{dimColor:!0,children:["v","1.1.12"," "]}),e[2]=I;else I=e[2];let i;if(e[3]!==a)i=o(u,{children:[a,I]}),e[3]=a,e[4]=i;else i=e[4];let V,M,E,W,N,L,P,v;if(e[5]===Symbol.for("react.memo_cache_sentinel"))E=t(u,{children:"…………………………………………………………………………………………………………………………………………………………"}),W=t(u,{children:" "}),N=t(u,{children:" "}),L=t(u,{children:" "}),P=t(u,{children:" ░░░░░░ "}),v=t(u,{children:" ░░░ ░░░░░░░░░░ "}),V=t(u,{children:" ░░░░░░░░░░░░░░░░░░░ "}),M=t(u,{children:" "}),e[5]=V,e[6]=M,e[7]=E,e[8]=W,e[9]=N,e[10]=L,e[11]=P,e[12]=v;else V=e[5],M=e[6],E=e[7],W=e[8],N=e[9],L=e[10],P=e[11],v=e[12];let z;if(e[13]===Symbol.for("react.memo_cache_sentinel"))z=o(u,{children:[t(u,{dimColor:!0,children:" ░░░░"}),t(u,{children:" ██ "})]}),e[13]=z;else z=e[13];let $,x,H;if(e[14]===Symbol.for("react.memo_cache_sentinel"))$=o(u,{children:[t(u,{dimColor:!0,children:" ░░░░░░░░░░"}),t(u,{children:" ██▒▒██ "})]}),x=t(u,{children:" ▒▒ ██ ▒"}),H=t(u,{children:" ▒▒░░▒▒ ▒ ▒▒"}),e[14]=$,e[15]=x,e[16]=H;else $=e[14],x=e[15],H=e[16];let q;if(e[17]===Symbol.for("react.memo_cache_sentinel"))q=o(u,{children:[" ",t(u,{color:"clawd_body",children:"▗"}),o(u,{color:"clawd_background",backgroundColor:"clawd_body",children:[" ","▗"," ","▖"," "]}),t(u,{color:"clawd_body",children:"▖"})," ▒▒ ▒▒ "]}),e[17]=q;else q=e[17];let F;if(e[18]===Symbol.for("react.memo_cache_sentinel"))F=o(u,{children:[" ",t(u,{backgroundColor:"clawd_body",children:" ".repeat(9)})," ░ ▒ "]}),e[18]=F;else F=e[18];let G;if(e[19]===Symbol.for("react.memo_cache_sentinel"))G=o(u,{children:["…………………",t(u,{backgroundColor:"clawd_body",children:" "}),t(u,{children:" "}),t(u,{backgroundColor:"clawd_body",children:" "}),t(u,{children:" "}),t(u,{backgroundColor:"clawd_body",children:" "}),t(u,{children:" "}),t(u,{backgroundColor:"clawd_body",children:" "}),"……………………………………………………………………░…………………………▒…………"]}),e[19]=G;else G=e[19];let J;if(e[20]!==i)J=t(Y,{width:K,children:o(u,{children:[i,E,W,N,L,P,v,V,M,z,$,x,H,q,F,G]})}),e[20]=i,e[21]=J;else J=e[21];return J}let T;if(e[22]!==r)T=o(u,{color:"claude",children:[r," "]}),e[22]=r,e[23]=T;else T=e[23];let d;if(e[24]===Symbol.for("react.memo_cache_sentinel"))d=o(u,{dimColor:!0,children:["v","1.1.12"," "]}),e[24]=d;else d=e[24];let m;if(e[25]!==T)m=o(u,{children:[T,d]}),e[25]=T,e[26]=m;else m=e[26];let n,b,f,_,y,h;if(e[27]===Symbol.for("react.memo_cache_sentinel"))n=t(u,{children:"…………………………………………………………………………………………………………………………………………………………"}),b=t(u,{children:" "}),f=t(u,{children:" * █████▓▓░ "}),_=t(u,{children:" * ███▓░ ░░ "}),y=t(u,{children:" ░░░░░░ ███▓░ "}),h=t(u,{children:" ░░░ ░░░░░░░░░░ ███▓░ "}),e[27]=n,e[28]=b,e[29]=f,e[30]=_,e[31]=y,e[32]=h;else n=e[27],b=e[28],f=e[29],_=e[30],y=e[31],h=e[32];let C,S,w,g,p;if(e[33]===Symbol.for("react.memo_cache_sentinel"))C=o(u,{children:[t(u,{children:" ░░░░░░░░░░░░░░░░░░░ "}),t(u,{bold:!0,children:"*"}),t(u,{children:" ██▓░░ ▓ "})]}),S=t(u,{children:" ░▓▓███▓▓░ "}),w=t(u,{dimColor:!0,children:" * ░░░░ "}),g=t(u,{dimColor:!0,children:" ░░░░░░░░ "}),p=t(u,{dimColor:!0,children:" ░░░░░░░░░░░░░░░░ "}),e[33]=C,e[34]=S,e[35]=w,e[36]=g,e[37]=p;else C=e[33],S=e[34],w=e[35],g=e[36],p=e[37];let c;if(e[38]===Symbol.for("react.memo_cache_sentinel"))c=o(u,{children:[" ",t(u,{dimColor:!0,children:"*"}),t(u,{children:" "})]}),e[38]=c;else c=e[38];let O;if(e[39]===Symbol.for("react.memo_cache_sentinel"))O=o(u,{children:[" ",t(u,{color:"clawd_body",children:"▗"}),o(u,{color:"clawd_background",backgroundColor:"clawd_body",children:[" ","▗"," ","▖"," "]}),t(u,{color:"clawd_body",children:"▖"}),t(u,{children:" "}),t(u,{bold:!0,children:"*"}),t(u,{children:" "})]}),e[39]=O;else O=e[39];let R;if(e[40]===Symbol.for("react.memo_cache_sentinel"))R=o(u,{children:[" ",t(u,{backgroundColor:"clawd_body",children:" ".repeat(9)})," * "]}),e[40]=R;else R=e[40];let k;if(e[41]===Symbol.for("react.memo_cache_sentinel"))k=o(u,{children:["…………………",t(u,{backgroundColor:"clawd_body",children:" "}),t(u,{children:" "}),t(u,{backgroundColor:"clawd_body",children:" "}),t(u,{children:" "}),t(u,{backgroundColor:"clawd_body",children:" "}),t(u,{children:" "}),t(u,{backgroundColor:"clawd_body",children:" "}),"………………………………………………………………………………………………………………"]}),e[41]=k;else k=e[41];let A;if(e[42]!==m)A=t(Y,{width:K,children:o(u,{children:[m,n,b,f,_,y,h,C,S,w,g,p,c,O,R,k]})}),e[42]=m,e[43]=A;else A=e[43];return A}
|
|
2
|
-
export{c2 as ba};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{SF as R,TF as E,UF as l,VF as i,WF as c,XF as w,YF as O,aG as y,bG as e}from"./cli-1.1.12-5dbxwy0d.mjs";import{qY as x,rY as s}from"./cli-1.1.12-dtv1b9yb.mjs";import{GZ as n,K1 as K,U0 as j,V0 as r,d1 as k,f1 as V,z1 as Q}from"./cli-1.1.12-mrjjav4s.mjs";import{m4 as A,n4 as P,o4 as D,p4 as v}from"./cli-1.1.12-gwf0e4mf.mjs";import{q4 as t}from"./cli-1.1.12-e12y7jsd.mjs";import{Zsa as p,bta as q}from"./cli-1.1.12-2nzqqw4h.mjs";function X1(J){let b=S.c(17),{query:$,placeholder:N,isFocused:W,isTerminalFocused:Z,prefix:g,width:H,cursorOffset:_,borderless:Y}=J,G=N===void 0?"Search…":N,h=g===void 0?"⌕":g,L=Y===void 0?!1:Y,B=_??$.length,m=L?void 0:"round",z=W?"suggestion":void 0,d=!W,F=L?0:1,T=!W,X;if(b[0]!==W||b[1]!==Z||b[2]!==B||b[3]!==G||b[4]!==$)X=W?P(A,{children:$?Z?D(A,{children:[P(V,{children:$.slice(0,B)}),P(V,{inverse:!0,children:B<$.length?$[B]:" "}),B<$.length&&P(V,{children:$.slice(B+1)})]}):P(V,{children:$}):Z?D(A,{children:[P(V,{inverse:!0,children:G.charAt(0)}),P(V,{dimColor:!0,children:G.slice(1)})]}):P(V,{dimColor:!0,children:G})}):$?P(V,{children:$}):P(V,{children:G}),b[0]=W,b[1]=Z,b[2]=B,b[3]=G,b[4]=$,b[5]=X;else X=b[5];let M;if(b[6]!==h||b[7]!==T||b[8]!==X)M=D(V,{dimColor:T,children:[h," ",X]}),b[6]=h,b[7]=T,b[8]=X,b[9]=M;else M=b[9];let I;if(b[10]!==M||b[11]!==m||b[12]!==z||b[13]!==d||b[14]!==F||b[15]!==H)I=P(k,{flexShrink:0,borderStyle:m,borderColor:z,borderDimColor:d,paddingX:F,width:H,children:M}),b[10]=M,b[11]=m,b[12]=z,b[13]=d,b[14]=F,b[15]=H,b[16]=I;else I=b[16];return I}var S;var u=q(()=>{K();v();S=p(n(),1)});function d1(J){if(J.ctrl&&(J.key==="k"||J.key==="u"||J.key==="w"))return!0;if(J.meta&&J.key==="backspace")return!0;return!1}function T1(J){return(J.ctrl||J.meta)&&J.key==="y"}function V1({isActive:J,onExit:b,onCancel:$,onExitUp:N,columns:W,passthroughCtrlKeys:Z=[],initialQuery:g="",backspaceExitsOnEmpty:H=!0}){let{columns:_}=x(),Y=W??_,[G,h]=U.useState(g),[L,B]=U.useState(g.length),m=U.useCallback((d)=>{h(d),B(d.length)},[]),z=(d)=>{if(!J)return;let F=y.fromText(G,Y,L);if(d.ctrl&&Z.includes(d.key.toLowerCase()))return;if(!d1(d))l();if(!T1(d))O();if(d.key==="return"||d.key==="down"){d.preventDefault(),b();return}if(d.key==="up"){if(d.preventDefault(),N)N();return}if(d.key==="escape"){if(d.preventDefault(),$)$();else if(G.length>0)h(""),B(0);else b();return}if(d.key==="backspace"){if(d.preventDefault(),d.meta){let{cursor:X,killed:M}=F.deleteWordBefore();R(M,"prepend"),h(X.text),B(X.offset);return}if(G.length===0){if(H)($??b)();return}let T=F.backspace();h(T.text),B(T.offset);return}if(d.key==="delete"){d.preventDefault();let T=F.del();h(T.text),B(T.offset);return}if(d.key==="left"&&(d.ctrl||d.meta||d.fn)){d.preventDefault();let T=F.prevWord();B(T.offset);return}if(d.key==="right"&&(d.ctrl||d.meta||d.fn)){d.preventDefault();let T=F.nextWord();B(T.offset);return}if(d.key==="left"){d.preventDefault();let T=F.left();B(T.offset);return}if(d.key==="right"){d.preventDefault();let T=F.right();B(T.offset);return}if(d.key==="home"){d.preventDefault(),B(0);return}if(d.key==="end"){d.preventDefault(),B(G.length);return}if(d.ctrl){switch(d.preventDefault(),d.key.toLowerCase()){case"a":B(0);return;case"e":B(G.length);return;case"b":B(F.left().offset);return;case"f":B(F.right().offset);return;case"d":{if(G.length===0){($??b)();return}let T=F.del();h(T.text),B(T.offset);return}case"h":{if(G.length===0){if(H)($??b)();return}let T=F.backspace();h(T.text),B(T.offset);return}case"k":{let{cursor:T,killed:X}=F.deleteToLineEnd();R(X,"append"),h(T.text),B(T.offset);return}case"u":{let{cursor:T,killed:X}=F.deleteToLineStart();R(X,"prepend"),h(T.text),B(T.offset);return}case"w":{let{cursor:T,killed:X}=F.deleteWordBefore();R(X,"prepend"),h(T.text),B(T.offset);return}case"y":{let T=E();if(T.length>0){let X=F.offset,M=F.insert(T);i(X,T.length),h(M.text),B(M.offset)}return}case"g":case"c":if($){$();return}}return}if(d.meta){switch(d.preventDefault(),d.key.toLowerCase()){case"b":B(F.prevWord().offset);return;case"f":B(F.nextWord().offset);return;case"d":{let T=F.deleteWordAfter();h(T.text),B(T.offset);return}case"y":{let T=c();if(T){let{text:X,start:M,length:I}=T,f=G.slice(0,M),a=G.slice(M+I),C=f+X+a,o=M+X.length;w(X.length),h(C),B(o)}return}}return}if(d.key==="tab")return;if(d.key.length>=1&&!b1.has(d.key)){d.preventDefault();let T=F.insert(d.key);h(T.text),B(T.offset)}};return Q((d,F,T)=>{z(new j(T.keypress))},{isActive:J}),{query:G,setQuery:m,cursorOffset:L,handleKeyDown:z}}var U,b1;var B1=q(()=>{r();K();e();s();U=p(t(),1);b1=new Set(["pageup","pagedown","insert","wheelup","wheeldown","mouse","f1","f2","f3","f4","f5","f6","f7","f8","f9","f10","f11","f12"])});
|
|
2
|
-
export{X1 as kh,u as lh,V1 as mh,B1 as nh};
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import{Zi as T,bQ as w,cQ as j}from"./cli-1.1.12-5dbxwy0d.mjs";import{Dka as J,Hka as C,Rka as X,Uka as S}from"./cli-1.1.12-fy2fghxn.mjs";import{qla as b,wla as y}from"./cli-1.1.12-fx9tstdr.mjs";import{Zsa as k,bta as A}from"./cli-1.1.12-2nzqqw4h.mjs";import{execFile as P}from"child_process";import{isAbsolute as x,join as V,relative as u,sep as D}from"path";import{promisify as h}from"util";async function c(q){try{let{stdout:z}=await m("git",["-c","core.quotepath=false","ls-files"],{cwd:q,encoding:"utf8",timeout:_,maxBuffer:g});return z.split(`
|
|
2
|
-
`).filter((Q)=>Q.length>0)}catch(z){return X(`[rulesLint] git ls-files failed in ${q}: ${String(z)}`),null}}function l(q){if(q.length===0)return!1;if(f.some((z)=>q.includes(z)))return!1;if(x(q))return!1;if(!q.includes("/"))return!1;return/^[\w.@-]+(?:\/[\w.@-]+)+\/?$/.test(q)}function a(q,z){let Q=J();if(Q.existsSync(V(q,z)))return!0;if(!U.test(z))return!1;let W=z.replace(U,"");return[".ts",".tsx"].some((Y)=>Q.existsSync(V(q,W+Y)))}function r(q,z){let Q=z.split("/")[0];if(!Q)return!1;let W=J(),Y=V(q,Q);try{return W.existsSync(Y)&&W.statSync(Y).isDirectory()}catch{return!1}}function s(q){let z=new Set,Q=[];for(let W of q.split(`
|
|
3
|
-
`))for(let Y of W.matchAll(E)){let $=Y[1];if(!$)continue;let H=$.trim().replace(F,"").replace(p,"");if(l(H)&&!z.has(H))z.add(H),Q.push({path:H,line:W})}return Q}async function L(q){let z=J(),Q;try{Q=await z.readdir(q)}catch(Y){let $=b(Y);if($==="ENOENT"||$==="EACCES"||$==="ENOTDIR")return[];throw Y}let W=[];for(let Y of Q){let $=V(q,Y.name);if(Y.isDirectory())W.push(...await L($));else if(Y.isFile()&&Y.name.endsWith(".md"))W.push($)}return W.sort()}function o(q,z){let Q=N.default().add(q);return z.some((W)=>{if(W.startsWith("..")||x(W))return!1;return Q.ignores(W)})}async function Yq(q={}){let z=J(),Q=q.root??z.cwd(),W=await L(V(Q,R)),Y=I.map((Z)=>V(Q,Z)).filter((Z)=>z.existsSync(Z)),$=q.trackedFiles??await c(Q)??null,H=[],G=[];for(let Z of[...W,...Y]){let B;try{B=await z.readFile(Z,{encoding:"utf8"})}catch(K){X(`[rulesLint] unreadable rule file ${Z}: ${String(K)}`);continue}let M=!Z.includes(`${D}rules${D}`),v=w(B);if(!M){for(let K of v.unsupportedKeys)H.push({file:Z,kind:"unsupported_key",severity:"error",message:`frontmatter key \`${K}\` is not supported and is ignored`,fix:K==="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(v.malformedPaths)H.push({file:Z,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(!v.paths)G.push({file:Z,chars:B.length});else if($){if(!o(v.paths,$))H.push({file:Z,kind:"inert_paths",severity:"error",message:`\`paths:\` matches no tracked file (${v.paths.join(", ")})`,fix:"Fix the patterns. As written the rule never loads, which is indistinguishable from a working rule at runtime."})}}for(let{path:K,line:O}of s(v.content)){if(!r(Q,K))continue;if(a(Q,K))continue;if(d.test(O))continue;H.push({file:Z,kind:"missing_path",severity:"warning",message:`cites \`${K}\`, which does not exist`,fix:"Update or remove the reference — a rule that names a moved file sends the agent to the wrong place."})}}return{findings:H,unconditional:G,unconditionalChars:G.reduce((Z,B)=>Z+B.chars,0),filesChecked:W.length+Y.length}}function Zq(q,z){let Q=u(q,z);return Q.length>0&&!Q.startsWith("..")?Q:z}var N,I,R,m,_=1e4,g=33554432,E,p,F,f,d,U;var n=A(()=>{S();y();C();j();N=k(T(),1),I=["AGENTS.md","CLAUDE.md"],R=V(".claudin","rules"),m=h(P),E=/`([^`\n]+)`/g,p=/:\d+(?:-\d+)?$/,F=/[.,;:)\]]+$/,f=["<",">","*","~","...","$","|","://"," ","path/to"],d=/\b(removed|deleted|dropped|no longer|used to|formerly|superseded)\b/i,U=/\.js$/});
|
|
4
|
-
export{Yq as ig,Zq as jg,n as kg};
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import{D2 as k,F2 as w}from"./cli-1.1.12-24hecrkb.mjs";import{G8 as j,_8 as v}from"./cli-1.1.12-djycjsgd.mjs";import{Sha as d,bia as h,cia as s}from"./cli-1.1.12-jjjbjcg7.mjs";import{Mla as q}from"./cli-1.1.12-pyh14x7q.mjs";import{bta as p}from"./cli-1.1.12-2nzqqw4h.mjs";function m(){return y()||!!process.env.CLAUDE_BRIDGE_OAUTH_TOKEN}function x(){return m()}async function O(){return x()}async function P(){if(!m())return"Remote Control needs an Anthropic web login (a claude.ai OAuth token with the user:profile scope). Run `/provider` and sign in with your claude.ai account. Note: an inference API key alone is not enough — the bridge token is separate.";return null}function y(){try{return j()}catch{return!1}}function Q(){return d("tengu_bridge_repl_v2",!1)}function R(){return d("tengu_bridge_repl_v2_cse_shim_enabled",!0)}function U(){{let b=h("tengu_bridge_min_version",{minVersion:"0.0.0"});if(b.minVersion&&k("99.0.0",b.minVersion))return`Your version of Claudin (99.0.0) is too old for Remote Control.
|
|
2
|
-
Version ${b.minVersion} or higher is required. Run \`claudin update\` to update.`}return null}function W(){return!1}function X(){return!1}var z=p(()=>{s();v();q();w()});
|
|
3
|
-
export{x as bX,O as cX,P as dX,Q as eX,R as fX,U as gX,W as hX,X as iX,z as jX};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{$L as _,dM as S,gM as w,mM as M,mp as L,np as j,oM as P,op as C,rp as O,sp as b,tM as f,uM as m,yM as c}from"./cli-1.1.12-5dbxwy0d.mjs";import{Cca as U,Kca as E,Mga as k,Oda as N,Qda as x,Tda as A,Uga as D,aea as T}from"./cli-1.1.12-v395vz88.mjs";import{_ia as R,aja as v}from"./cli-1.1.12-3avc8vy5.mjs";import{Rka as G,Uka as F}from"./cli-1.1.12-fy2fghxn.mjs";import{bta as y}from"./cli-1.1.12-2nzqqw4h.mjs";import{join as I}from"path";async function e(){let q=A(),J=[],Q=L();for(let[z,K]of Object.entries(Q))if(z.includes("@")&&K)J.push(z);if(q.enabledPlugins)for(let[z,K]of Object.entries(q.enabledPlugins)){if(!z.includes("@"))continue;let W=J.indexOf(z);if(K){if(W===-1)J.push(z)}else if(W!==-1)J.splice(W,1)}return J}function qq(){let q=new Map,J=L();for(let[z,K]of Object.entries(J)){if(!z.includes("@"))continue;if(K===!0)q.set(z,"flag");else if(K===!1)q.delete(z)}let Q=[{scope:"managed",source:"policySettings"},{scope:"user",source:"userSettings"},{scope:"project",source:"projectSettings"},{scope:"local",source:"localSettings"},{scope:"flag",source:"flagSettings"}];for(let{scope:z,source:K}of Q){let W=N(K);if(!W?.enabledPlugins)continue;for(let[V,Y]of Object.entries(W.enabledPlugins)){if(!V.includes("@"))continue;if(V in J&&J[V]!==Y)G(`Plugin ${V} from --add-dir (${J[V]}) overridden by ${K} (${Y})`);if(Y===!0)q.set(V,z);else if(Y===!1)q.delete(V)}}return G(`Found ${q.size} enabled plugins with scopes: ${Array.from(q.entries()).map(([z,K])=>`${z}(${K})`).join(", ")}`),q}function zq(q){return C[q]}async function Jq(){M().catch((Q)=>{k(Q)});let q=w(),J=Object.keys(q.plugins);return G(`Found ${J.length} installed plugins`),J}async function Kq(q,J,Q="user"){let z=Q!=="user"?R():void 0,K=O(Q),W=N(K),V={...W?.enabledPlugins},Y=[],H=[];for(let B=0;B<q.length;B++){let X=q[B];if(!X)continue;if(J)J(X,B+1,q.length);try{let Z=await _(X);if(!Z){H.push({name:X,error:"Plugin not found in any marketplace"});continue}let{entry:$,marketplaceInstallLocation:h}=Z;if(!U($.source))await f(X,$,Q,z);else m({pluginId:X,installPath:I(h,$.source),version:$.version},Q,z);V[X]=!0,Y.push(X)}catch(Z){let $=Z instanceof Error?Z.message:String(Z);H.push({name:X,error:$}),k(Z)}}return x(K,{...W,enabledPlugins:V}),{installed:Y,failed:H}}var p=y(()=>{v();F();D();T();j();P();S();b();c();E()});
|
|
2
|
-
export{e as Wd,qq as Xd,zq as Yd,Jq as Zd,Kq as _d,p as $d};
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import{VR as N,dx as B,eR as L,fR as w,fx as U,hS as d}from"./cli-1.1.12-5dbxwy0d.mjs";import{gba as z,nba as F,rda as P}from"./cli-1.1.12-v395vz88.mjs";import{jha as H,pha as v}from"./cli-1.1.12-d1nm8nza.mjs";import{bta as j}from"./cli-1.1.12-2nzqqw4h.mjs";async function V(R){let{messages:I,getAppState:O,options:{mainLoopModel:J,tools:Y,agentDefinitions:Z,customSystemPrompt:W,appendSystemPrompt:X}}=R,Q=N(I),{messages:K}=await B(Q),h=O();return L(K,J,async()=>h.toolPermissionContext,Y,Z,void 0,{options:{customSystemPrompt:W,appendSystemPrompt:X}},void 0,Q)}async function g(R,I){let O=await V(I);return{type:"text",value:b(O)}}function b(R){let{categories:I,totalTokens:O,rawMaxTokens:J,percentage:Y,model:Z,memoryFiles:W,mcpTools:X,agents:Q,skills:K}=R,h=`## Context Usage
|
|
2
|
-
|
|
3
|
-
`;h+=`**Model:** ${Z}
|
|
4
|
-
`,h+=`**Tokens:** ${H(O)} / ${H(J)} (${Y}%)
|
|
5
|
-
`,h+=`
|
|
6
|
-
`;let _=I.filter((q)=>q.tokens>0&&q.name!=="Free space"&&q.name!=="Autocompact buffer");if(_.length>0){h+=`### Estimated usage by category
|
|
7
|
-
|
|
8
|
-
`,h+=`| Category | Tokens | Percentage |
|
|
9
|
-
`,h+=`|----------|--------|------------|
|
|
10
|
-
`;for(let G of _){let $=(G.tokens/J*100).toFixed(1);h+=`| ${G.name} | ${H(G.tokens)} | ${$}% |
|
|
11
|
-
`}let q=I.find((G)=>G.name==="Free space");if(q&&q.tokens>0){let G=(q.tokens/J*100).toFixed(1);h+=`| Free space | ${H(q.tokens)} | ${G}% |
|
|
12
|
-
`}let E=I.find((G)=>G.name==="Autocompact buffer");if(E&&E.tokens>0){let G=(E.tokens/J*100).toFixed(1);h+=`| Autocompact buffer | ${H(E.tokens)} | ${G}% |
|
|
13
|
-
`}h+=`
|
|
14
|
-
`}if(X.length>0){h+=`### MCP Tools
|
|
15
|
-
|
|
16
|
-
`,h+=`| Tool | Server | Tokens |
|
|
17
|
-
`,h+=`|------|--------|--------|
|
|
18
|
-
`;for(let q of X)h+=`| ${q.name} | ${q.serverName} | ${H(q.tokens)} |
|
|
19
|
-
`;h+=`
|
|
20
|
-
`}if(Q.length>0){h+=`### Custom Agents
|
|
21
|
-
|
|
22
|
-
`,h+=`| Agent Type | Source | Tokens |
|
|
23
|
-
`,h+=`|------------|--------|--------|
|
|
24
|
-
`;for(let q of Q){let E;switch(q.source){case"projectSettings":E="Project";break;case"userSettings":E="User";break;case"localSettings":E="Local";break;case"flagSettings":E="Flag";break;case"policySettings":E="Policy";break;case"plugin":E="Plugin";break;case"built-in":E="Built-in";break;default:E=String(q.source)}h+=`| ${q.agentType} | ${E} | ${H(q.tokens)} |
|
|
25
|
-
`}h+=`
|
|
26
|
-
`}if(W.length>0){h+=`### Memory Files
|
|
27
|
-
|
|
28
|
-
`,h+=`| Type | Path | Tokens |
|
|
29
|
-
`,h+=`|------|------|--------|
|
|
30
|
-
`;for(let q of W)h+=`| ${q.type} | ${q.path} | ${H(q.tokens)} |
|
|
31
|
-
`;h+=`
|
|
32
|
-
`}if(K&&K.tokens>0&&K.skillFrontmatter.length>0){h+=`### Skills
|
|
33
|
-
|
|
34
|
-
`,h+=`| Skill | Source | Tokens |
|
|
35
|
-
`,h+=`|-------|--------|--------|
|
|
36
|
-
`;for(let q of K.skillFrontmatter)h+=`| ${q.name} | ${z(q.source)} | ${H(q.tokens)} |
|
|
37
|
-
`;h+=`
|
|
38
|
-
`}return h}var A=j(()=>{U();w();v();d();F();P()});
|
|
39
|
-
export{V as vh,g as wh,A as xh};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{n4 as v,p4 as D}from"./cli-1.1.12-gwf0e4mf.mjs";import{cta as B}from"./cli-1.1.12-2nzqqw4h.mjs";D();var w,z;function N(g,q){w=g,z=q}async function O(g,q,F,G){let H=w??import("./App-1.1.12-6m8fx08p.mjs"),J=z??import("./REPL-1.1.12-ejf4py4g.mjs");w=void 0,z=void 0;let[{App:K},{REPL:M}]=await Promise.all([H,J]);await G(g,v(K,{...q,children:v(M,{...F})}))}
|
|
2
|
-
export{N as db,O as eb};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{$M as N,RM as C,iN as $,jN as k,pN as V}from"./cli-1.1.12-5dbxwy0d.mjs";import{GZ as P,K1 as D,d1 as f,f1 as t,j1 as v}from"./cli-1.1.12-mrjjav4s.mjs";import{n4 as n,o4 as i,p4 as M}from"./cli-1.1.12-gwf0e4mf.mjs";import{Zsa as w,bta as L}from"./cli-1.1.12-2nzqqw4h.mjs";function W(o){let e=b.c(26),{scope:r,parsingErrors:s,warnings:m}=o,a=s.length>0,g=m.length>0;if(!a&&!g)return null;let p;if(e[0]!==a||e[1]!==g)p=(a||g)&&i(t,{color:a?"error":"warning",children:["[",a?"Failed to parse":"Contains warnings","]"," "]}),e[0]=a,e[1]=g,e[2]=p;else p=e[2];let c;if(e[3]!==r)c=k(r),e[3]=r,e[4]=c;else c=e[4];let l;if(e[5]!==c)l=n(t,{children:c}),e[5]=c,e[6]=l;else l=e[6];let u;if(e[7]!==p||e[8]!==l)u=i(f,{children:[p,l]}),e[7]=p,e[8]=l,e[9]=u;else u=e[9];let E;if(e[10]===Symbol.for("react.memo_cache_sentinel"))E=n(t,{dimColor:!0,children:"Location: "}),e[10]=E;else E=e[10];let h;if(e[11]!==r)h=$(r),e[11]=r,e[12]=h;else h=e[12];let d;if(e[13]!==h)d=i(f,{children:[E,n(t,{dimColor:!0,children:h})]}),e[13]=h,e[14]=d;else d=e[14];let T;if(e[15]!==s)T=s.map(F),e[15]=s,e[16]=T;else T=e[16];let _;if(e[17]!==m)_=m.map(x),e[17]=m,e[18]=_;else _=e[18];let y;if(e[19]!==T||e[20]!==_)y=i(f,{marginLeft:1,flexDirection:"column",children:[T,_]}),e[19]=T,e[20]=_,e[21]=y;else y=e[21];let S;if(e[22]!==y||e[23]!==u||e[24]!==d)S=i(f,{flexDirection:"column",marginTop:1,children:[u,d,y]}),e[22]=y,e[23]=u,e[24]=d,e[25]=S;else S=e[25];return S}function x(o,e){let r=o.mcpErrorMetadata?.serverName;return n(f,{children:i(t,{children:[n(t,{dimColor:!0,children:"└ "}),n(t,{color:"warning",children:"[Warning]"}),i(t,{dimColor:!0,children:[" ",r&&`[${r}] `,o.path&&o.path!==""?`${o.path}: `:"",o.message]})]})},`warning-${e}`)}function F(o,e){let r=o.mcpErrorMetadata?.serverName;return n(f,{children:i(t,{children:[n(t,{dimColor:!0,children:"└ "}),n(t,{color:"error",children:"[Error]"}),i(t,{dimColor:!0,children:[" ",r&&`[${r}] `,o.path&&o.path!==""?`${o.path}: `:"",o.message]})]})},`error-${e}`)}function J(){let o=b.c(6),e;if(o[0]===Symbol.for("react.memo_cache_sentinel"))e={scope:"user",config:C("user")},o[0]=e;else e=o[0];let r;if(o[1]===Symbol.for("react.memo_cache_sentinel"))r={scope:"project",config:C("project")},o[1]=r;else r=o[1];let s;if(o[2]===Symbol.for("react.memo_cache_sentinel"))s={scope:"local",config:C("local")},o[2]=s;else s=o[2];let m;if(o[3]===Symbol.for("react.memo_cache_sentinel"))m=[e,r,s,{scope:"enterprise",config:C("enterprise")}],o[3]=m;else m=o[3];let a=m,g=a.some(q),p=a.some(R);if(!g&&!p)return null;let c;if(o[4]===Symbol.for("react.memo_cache_sentinel"))c=n(t,{bold:!0,children:"MCP Config Diagnostics"}),o[4]=c;else c=o[4];let l;if(o[5]===Symbol.for("react.memo_cache_sentinel"))l=i(f,{flexDirection:"column",marginTop:1,marginBottom:1,children:[c,n(f,{marginTop:1,children:i(t,{dimColor:!0,children:["For help configuring MCP servers, see:"," ",n(v,{url:"https://code.claude.com/docs/en/mcp",children:"https://code.claude.com/docs/en/mcp"})]})}),a.map(A)]}),o[5]=l;else l=o[5];return l}function A(o){let{scope:e,config:r}=o;return n(W,{scope:e,parsingErrors:B(r.errors,"fatal"),warnings:B(r.errors,"warning")},e)}function R(o){let{config:e}=o;return B(e.errors,"warning").length>0}function q(o){let{config:e}=o;return B(e.errors,"fatal").length>0}function B(o,e){return o.filter((r)=>r.mcpErrorMetadata?.severity===e)}var b;var z=L(()=>{N();V();D();M();b=w(P(),1)});
|
|
2
|
-
export{J as wg,z as xg};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{P4 as M,Q4 as E}from"./cli-1.1.12-tnbdhy9q.mjs";import{Aga as p,Kfa as l,Nfa as L,Ofa as c,rfa as _,xga as S,zfa as F}from"./cli-1.1.12-v395vz88.mjs";import{Ela as Y,Mla as m}from"./cli-1.1.12-pyh14x7q.mjs";import{bta as B}from"./cli-1.1.12-2nzqqw4h.mjs";function R(J){if(!J)return;let Q=J.trim().replace(/^https?:\/\//i,"").replace(/\/+$/,"");if(!Q||Q.toLowerCase()==="github.com")return;return Q}function b(J){return J?`https://${J}/login/device/code`:g}function v(J){return J?`https://${J}/login/oauth/access_token`:f}function h(J){return J?`https://api.${J}/copilot_internal/v2/token`:G}function H(){return process.env.GITHUB_DEVICE_FLOW_CLIENT_ID?.trim()||T}function P(J){return new Promise((Q)=>setTimeout(Q,J))}async function r(J){let Q=J?.clientId??H();if(!Q)throw new q("No OAuth client ID: set GITHUB_DEVICE_FLOW_CLIENT_ID.");let Z=J?.fetchImpl??fetch,y=J?.scope?.trim()||C,$=y===C?[y]:[y,C],j="Device code request failed.",z=b(R(J?.domain));for(let V of $){let W=await Z(z,{method:"POST",headers:{Accept:"application/json"},body:new URLSearchParams({client_id:Q,scope:V})});if(!W.ok){let w=await W.text().catch(()=>"");j=`Device code request failed: ${W.status} ${w}`;let D=/invalid_scope/i.test(w);if(V!==C&&D)continue;throw new q(j)}let X=await W.json(),N=X.device_code,K=X.user_code,x=X.verification_uri;if(typeof N!=="string"||typeof K!=="string"||typeof x!=="string")throw new q("Malformed device code response from GitHub");return{device_code:N,user_code:K,verification_uri:x,expires_in:typeof X.expires_in==="number"?X.expires_in:900,interval:typeof X.interval==="number"?X.interval:5}}throw new q(j)}async function o(J,Q){let Z=Q?.clientId??H();if(!Z)throw new q("client_id required for polling");let y=Math.max(1,Q?.initialInterval??5),$=Q?.timeoutSeconds??900,j=Q?.fetchImpl??fetch,z=v(R(Q?.domain)),V=Date.now();while((Date.now()-V)/1000<$){let W=await j(z,{method:"POST",headers:{Accept:"application/json"},body:new URLSearchParams({client_id:Z,device_code:J,grant_type:"urn:ietf:params:oauth:grant-type:device_code"})});if(!W.ok){let K=await W.text().catch(()=>"");throw new q(`Token request failed: ${W.status} ${K}`)}let X=await W.json(),N=X.error;if(N==null){let K=X.access_token;if(typeof K==="string"&&K)return K;throw new q("No access_token in response")}if(N==="authorization_pending"){await P(y*1000);continue}if(N==="slow_down"){y=typeof X.interval==="number"?X.interval:y+5,await P(y*1000);continue}if(N==="expired_token")throw new q("Device code expired. Start the login flow again.");if(N==="access_denied")throw new q("Authorization was denied or cancelled.");throw new q(`GitHub OAuth error: ${N}`)}throw new q("Timed out waiting for authorization.")}async function e(J){await M(J)}async function I(J,Q){let Z=typeof Q==="function"?{fetchImpl:Q}:Q??{},y=Z.fetchImpl??fetch,$=h(R(Z.domain)),j=await y($,{method:"GET",headers:{Accept:"application/json",Authorization:`Bearer ${J}`,...u}});if(!j.ok){let K=await j.text().catch(()=>"");throw new q(`Copilot token exchange failed: ${j.status} ${K}`)}let z=await j.json(),V=z.token,W=z.expires_at,X=z.refresh_in,N=z.endpoints;if(typeof V!=="string"||typeof W!=="number"||typeof X!=="number"||!N||typeof N!=="object"||typeof N.api!=="string")throw new q("Malformed Copilot token response");return{token:V,expires_at:W,refresh_in:X,endpoints:N}}var T="Iv1.b507a08c87ecfe98",g="https://github.com/login/device/code",f="https://github.com/login/oauth/access_token",G="https://api.github.com/copilot_internal/v2/token",C="read:user",u,q;var O=B(()=>{E();u={"User-Agent":"GitHubCopilotChat/0.26.7","Editor-Version":"vscode/1.99.3","Editor-Plugin-Version":"copilot-chat/0.26.7","Copilot-Integration-Id":"vscode-chat"};q=class q extends Error{constructor(J){super(J);this.name="GitHubDeviceFlowError"}}});function k(){return S()?.transport==="github_copilot"}function d(J){let Q=J.match(/exp=(\d+)/);if(Q){let $=Number(Q[1]);if(!Number.isNaN($))return Date.now()>=$*1000?"expired":"valid"}let Z=J.split(".");if(Z.length===3&&Z.every(($)=>/^[A-Za-z0-9_-]+$/.test($)))try{let $=Z[1].replace(/-/g,"+").replace(/_/g,"/"),j=$+"=".repeat((4-$.length%4)%4),z=Buffer.from(j,"base64").toString("utf8"),V=JSON.parse(z);if(V&&typeof V==="object"&&V.exp)return Date.now()>=V.exp*1000?"expired":"valid"}catch{return"invalid_format"}return"invalid_format"}function a(){if(Y())return;try{return L().read()?.githubModels?.accessToken?.trim()||void 0}catch{return}}async function WJ(){if(Y())return;try{return(await L().readAsync())?.githubModels?.accessToken?.trim()||void 0}catch{return}}function yJ(){if(!k())return;if(Y())return;if(a())return}async function zJ(){if(!k())return!1;if(Y())return!1;if(A)return A;return A=(async()=>{try{let Z=L().read()?.githubModels,y=Z?.accessToken?.trim()||"",$=Z?.oauthAccessToken?.trim()||"";if(!y&&!$)return!1;if((y?d(y):"expired")==="valid")return!1;if(!$)return!1;let z=Z?.enterpriseDomain?.trim()||void 0,V=await I($,{domain:z});if(!n(V.token,$,z).success)return!1;let X=_().find((N)=>N.provider==="openai"&&N.extras?.githubToken!==void 0);if(X)F(X.id,{provider:"openai",name:X.name,baseUrl:X.baseUrl,model:X.model,apiKey:V.token,extras:{...X.extras,githubToken:V.token}});return!0}catch{return!1}finally{A=null}})(),A}function n(J,Q,Z){if(Y())return{success:!1,warning:"Bare mode: secure storage is disabled."};let y=J.trim();if(!y)return{success:!1,warning:"Token is empty."};let $=L(),j=$.read()||{},z=j[U],V=Q?.trim(),W={accessToken:y};if(V){if(W.oauthAccessToken=V,Z?.trim())W.enterpriseDomain=Z.trim()}else{if(z?.oauthAccessToken?.trim())W.oauthAccessToken=z.oauthAccessToken.trim();let N=Z?.trim()||z?.enterpriseDomain?.trim();if(N)W.enterpriseDomain=N}let X={...j,[U]:W};return $.update(X)}function jJ(){if(Y())return{success:!0};let J=L(),Z={...J.read()||{}};return delete Z[U],J.update(Z)}var U="githubModels",VJ="CLAUDE_CODE_GITHUB_TOKEN_HYDRATED",A=null;var s=B(()=>{p();m();c();O();l()});
|
|
2
|
-
export{R as L2,r as M2,o as N2,e as O2,I as P2,O as Q2,U as R2,VJ as S2,a as T2,WJ as U2,yJ as V2,zJ as W2,n as X2,jJ as Y2,s as Z2};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{Uh as g,Vh as Uf}from"./cli-1.1.12-hz5fe64e.mjs";import{ai as A,ci as Kf}from"./cli-1.1.12-9rhhwnqq.mjs";import{Al as Bf,Am as L,Av as T,Bl as Gf,Ev as _f,FC as I,Fm as Vf,GC as $f,GE as u,HE as jf,Hl as y,Jj as W,KS as Ff,LT as Hf,MT as d,WE as v,Wj as w,Xj as zf,am as Jf,bF as Df,fT as S,gt as h,ht as Yf,iS as l,mm as N,pv as m,qC as M,qv as Zf,rD as c,sT as p,sm as Qf,uD as bf,ws as E,wv as C,xs as P,ys as Xf,zT as k}from"./cli-1.1.12-5dbxwy0d.mjs";import{Mga as R,Uga as ff}from"./cli-1.1.12-v395vz88.mjs";import{Oja as O,Rja as e}from"./cli-1.1.12-k27ty3ar.mjs";import{eqa as H,pra as s,qna as U,rna as q,roa as F,wna as x}from"./cli-1.1.12-fpn24m0s.mjs";import{_sa as K,bta as t}from"./cli-1.1.12-2nzqqw4h.mjs";import{randomUUID as qf}from"crypto";async function lf({setMessages:V,readFileState:i,discoveredSkillNames:n,loadedNestedMemoryPaths:r,getAppState:G,setAppState:J,setConversationId:X}){let Y=l();await M("clear",{getAppState:G,setAppState:J,signal:AbortSignal.timeout(Y),timeoutMs:Y});let Z=F();if(Z)O("tengu_cache_eviction_hint",{scope:"conversation_clear",last_request_id:Z});let Q=new Set,_=[],$=(f)=>("isBackgrounded"in f)&&f.isBackgrounded===!1;if(G)for(let f of Object.values(G().tasks)){if($(f))continue;if(v(f))Q.add(f.agentId),_.push(f);else if(m(f))Q.add(f.identity.agentId)}if(V(()=>[]),X)X(qf());if(g(Q),I(x()),i.clear(),n?.clear(),r?.clear(),J)J((f)=>{let B={};for(let[D,z]of Object.entries(f.tasks)){if(!$(z)){B[D]=z;continue}try{if(z.status==="running"){if(h(z)){if(z.shellCommand?.kill(),z.shellCommand?.cleanup(),z.cleanupTimeoutId)clearTimeout(z.cleanupTimeoutId)}if("abortController"in z)z.abortController?.abort();if("unregisterCleanup"in z)z.unregisterCleanup?.()}}catch(a){R(a)}E(D)}return{...f,tasks:B,attribution:u(),standaloneAgentContext:void 0,fileHistory:{snapshots:[],trackedFiles:new Set,snapshotSequence:0},mcp:{clients:[],tools:[],commands:[],resources:{},pluginReconnectKey:f.mcp.pluginReconnectKey}}});N(),p(),H(),A(),T(),C();let o=U();q({setCurrentAsParent:!0}),L(o),await S();for(let f of _){if(f.status!=="running")continue;P(f.id,W(w(f.agentId)))}{let{saveMode:f}=(d(),K(Hf)),{isCoordinatorMode:B}=(Gf(),K(Bf));f(B()?"coordinator":"normal")}let b=y();if(b)k(b);let j=await c("clear");if(j.length>0)V(()=>j)}var xf=t(()=>{s();e();Zf();Df();Yf();zf();_f();jf();Ff();ff();Kf();Qf();$f();bf();d();Xf();Vf();Jf();Uf()});
|
|
2
|
-
export{lf as Sh,xf as Th};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{Rd as Jq,Vd as Tq}from"./cli-1.1.12-6hs980bz.mjs";import{$d as bq,_d as zq}from"./cli-1.1.12-xkbvk7gy.mjs";import{$n as n,BL as Nq,EM as D,HM as Cq,ML as s,NL as _q,RL as a,UL as l,YL as t,ao as yq,bM as e,dM as Rq,gI as u,hI as fq,kM as qq,oM as Fq,tG as r,uG as Gq,yL as S}from"./cli-1.1.12-5dbxwy0d.mjs";import{GZ as Bq,K1 as Oq,d1 as F,f1 as C,wZ as i,xZ as Kq}from"./cli-1.1.12-mrjjav4s.mjs";import{n4 as v,o4 as R,p4 as p}from"./cli-1.1.12-gwf0e4mf.mjs";import{q4 as Lq}from"./cli-1.1.12-e12y7jsd.mjs";import{E_ as g,F_ as Zq,Mga as m,R$ as o,R_ as $,S$ as Hq,T_ as Xq,Uga as wq,Waa as vq,zaa as x}from"./cli-1.1.12-v395vz88.mjs";import{Rka as B,Uka as Yq}from"./cli-1.1.12-fy2fghxn.mjs";import{ola as P,rla as h,wla as Wq}from"./cli-1.1.12-fx9tstdr.mjs";import{Zsa as d,bta as Vq}from"./cli-1.1.12-2nzqqw4h.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(h(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(h(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(u,{}),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 uq(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:hq}[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(u,{}),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(uq,{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.',hq='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 Hd,Yz as Id,Dq as Jd};
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import{$9 as Xc,K9 as nt,L9 as hl,M9 as bl,N9 as ml,O9 as fn,P9 as $c,Q9 as fu,R9 as Al,S9 as ys,T9 as El,U9 as st,V9 as hs,W9 as k,X9 as ur,Y9 as Qc,Z9 as Bc,_9 as ra,a_ as Yc,b_ as Zc,c_ as Jc,d_ as el,e_ as Hc,f_ as cr,g_ as Cc,h_ as Ts,i_ as gl}from"./cli-1.1.12-fww07vcc.mjs";import{j_ as ie}from"./cli-1.1.12-6492m2bk.mjs";import{Osa as kc,Psa as Le}from"./cli-1.1.12-eyp8nyhg.mjs";import{Rsa as Vc}from"./cli-1.1.12-ynj3kc2v.mjs";import{Tsa as Fe,Usa as ve,Xsa as De,Ysa as ee}from"./cli-1.1.12-7c33mey4.mjs";import{$sa as E,cta as Bs}from"./cli-1.1.12-2nzqqw4h.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 J9};
|