@claudiolabs/claudin 1.1.24 → 1.1.26
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunks/AgentTool-1.1.26-pww3rzse.mjs +1 -0
- package/dist/chunks/App-1.1.26-4vaezrz4.mjs +1 -0
- package/dist/chunks/ApproveApiKey-1.1.26-rngrjmp0.mjs +1 -0
- package/dist/chunks/AssistantSessionChooser-1.1.26-n2977m3p.mjs +1 -0
- package/dist/chunks/AutoModeOptInDialog-1.1.26-9y3h164v.mjs +1 -0
- package/dist/chunks/BypassPermissionsModeDialog-1.1.26-qzf3wf2e.mjs +1 -0
- package/dist/chunks/ClaudeMdExternalIncludesDialog-1.1.26-4rsh36df.mjs +1 -0
- package/dist/chunks/ConsoleOAuthFlow-1.1.26-g1kknwq5.mjs +1 -0
- package/dist/chunks/DiffDialog-1.1.26-4bt5rf4c.mjs +6 -0
- package/dist/chunks/Doctor-1.1.26-jnzpfe2z.mjs +1 -0
- package/dist/chunks/ExplorerDialog-1.1.26-h4ha2k3s.mjs +6 -0
- package/dist/chunks/ITermBackend-1.1.26-6vq713nq.mjs +1 -0
- package/dist/chunks/InvalidConfigDialog-1.1.26-5mpbyw8j.mjs +1 -0
- package/dist/chunks/InvalidSettingsDialog-1.1.26-y240kr8g.mjs +1 -0
- package/dist/chunks/MigrationDialog-1.1.26-bhdbn3pv.mjs +1 -0
- package/dist/chunks/Onboarding-1.1.26-v8am83rd.mjs +1 -0
- package/dist/chunks/ProviderManager-1.1.26-22a8rbdy.mjs +1 -0
- package/dist/chunks/REPL-1.1.26-z72g0j0z.mjs +1 -0
- package/dist/chunks/ResumeConversation-1.1.26-gh9s3rjn.mjs +1 -0
- package/dist/chunks/SnapshotUpdateDialog-1.1.26-r40qtar2.mjs +1 -0
- package/dist/chunks/TeleportProgress-1.1.26-23se9f85.mjs +1 -0
- package/dist/chunks/TeleportRepoMismatchDialog-1.1.26-7r52d8rv.mjs +1 -0
- package/dist/chunks/TeleportResumeWrapper-1.1.26-k6atzshz.mjs +1 -0
- package/dist/chunks/TmuxBackend-1.1.26-ym3spr0b.mjs +9 -0
- package/dist/chunks/ToolSearchTool-1.1.26-c332beft.mjs +1 -0
- package/dist/chunks/TrustDialog-1.1.26-sqqx0vck.mjs +1 -0
- package/dist/chunks/activeProvider-1.1.26-maqce1gv.mjs +1 -0
- package/dist/chunks/add-dir-1.1.26-qcws8kjg.mjs +1 -0
- package/dist/chunks/agentTypes-1.1.26-fw01kwc9.mjs +1 -0
- package/dist/chunks/agents-1.1.26-dasaamxr.mjs +3 -0
- package/dist/chunks/agents-1.1.26-p33pq694.mjs +110 -0
- package/dist/chunks/api-1.1.26-msb1jnzq.mjs +1 -0
- package/dist/chunks/asciicast-1.1.26-vf9e0v5b.mjs +1 -0
- package/dist/chunks/assistant-1.1.26-h2aycjkn.mjs +1 -0
- package/dist/chunks/auth-1.1.26-dk7wnv7t.mjs +1 -0
- package/dist/chunks/auth-1.1.26-q8xgzm5r.mjs +1 -0
- package/dist/chunks/autoMode-1.1.26-zrzav382.mjs +52 -0
- package/dist/chunks/autoModeSetup-1.1.26-x7k5ammk.mjs +44 -0
- package/dist/chunks/autoUpdater-1.1.26-6hmytwm6.mjs +1 -0
- package/dist/chunks/backgroundHousekeeping-1.1.26-09grqe05.mjs +1 -0
- package/dist/chunks/branch-1.1.26-e1qfc78k.mjs +4 -0
- package/dist/chunks/bridge-1.1.26-h1bxacst.mjs +2 -0
- package/dist/chunks/bridgeConfig-1.1.26-vpz1r911.mjs +1 -0
- package/dist/chunks/bridgeEnabled-1.1.26-xkeegvk7.mjs +1 -0
- package/dist/chunks/bridgeMain-1.1.26-dnv31x02.mjs +88 -0
- package/dist/chunks/bridgePointer-1.1.26-d2zjebn5.mjs +1 -0
- package/dist/chunks/btw-1.1.26-9hcjg1vm.mjs +1 -0
- package/dist/chunks/buddy-1.1.26-20xpa564.mjs +3 -0
- package/dist/chunks/cache-probe-1.1.26-p18jjck5.mjs +21 -0
- package/dist/chunks/cacheStats-1.1.26-tndvbhbh.mjs +4 -0
- package/dist/chunks/caches-1.1.26-g9aneehb.mjs +1 -0
- package/dist/chunks/cd-1.1.26-1mhwbmvw.mjs +3 -0
- package/dist/chunks/claudeDesktop-1.1.26-8970gddx.mjs +1 -0
- package/dist/chunks/claudemd-1.1.26-a0wvdz6h.mjs +1 -0
- package/dist/chunks/clear-1.1.26-8f7hbzks.mjs +1 -0
- package/dist/chunks/clearTerminal-1.1.26-yxrgchg6.mjs +1 -0
- package/dist/chunks/cli-1.1.26-01erqdx7.mjs +6 -0
- package/dist/chunks/cli-1.1.26-0qa3rcd8.mjs +6 -0
- package/dist/chunks/cli-1.1.26-132vkvj1.mjs +2 -0
- package/dist/chunks/cli-1.1.26-14kc3afb.mjs +3 -0
- package/dist/chunks/cli-1.1.26-14n169e4.mjs +2 -0
- package/dist/chunks/cli-1.1.26-16s9pjdh.mjs +2 -0
- package/dist/chunks/cli-1.1.26-1mbz2mcm.mjs +2 -0
- package/dist/chunks/cli-1.1.26-1v8jg7nn.mjs +2 -0
- package/dist/chunks/cli-1.1.26-1vdqjs9c.mjs +21 -0
- package/dist/chunks/cli-1.1.26-1ze7r6x4.mjs +24 -0
- package/dist/chunks/cli-1.1.26-28qe790b.mjs +2 -0
- package/dist/chunks/cli-1.1.26-2dzytde4.mjs +2 -0
- package/dist/chunks/cli-1.1.26-2fbt2m4z.mjs +4 -0
- package/dist/chunks/cli-1.1.26-2j0g9z56.mjs +2 -0
- package/dist/chunks/cli-1.1.26-2k53vhr6.mjs +2 -0
- package/dist/chunks/cli-1.1.26-2msjf68r.mjs +2 -0
- package/dist/chunks/cli-1.1.26-2s2gpj0g.mjs +2 -0
- package/dist/chunks/cli-1.1.26-31negda3.mjs +2 -0
- package/dist/chunks/cli-1.1.26-32vewh62.mjs +6 -0
- package/dist/chunks/cli-1.1.26-38m8cha0.mjs +2 -0
- package/dist/chunks/cli-1.1.26-3c44vscp.mjs +2 -0
- package/dist/chunks/cli-1.1.26-3gepexgn.mjs +66 -0
- package/dist/chunks/cli-1.1.26-3hemew00.mjs +3 -0
- package/dist/chunks/cli-1.1.26-3htpgh4y.mjs +2 -0
- package/dist/chunks/cli-1.1.26-3k8e9a3k.mjs +2 -0
- package/dist/chunks/cli-1.1.26-3p2ch222.mjs +2 -0
- package/dist/chunks/cli-1.1.26-3z39qjr1.mjs +24 -0
- package/dist/chunks/cli-1.1.26-4aztw2ex.mjs +2 -0
- package/dist/chunks/cli-1.1.26-4cj6rr02.mjs +2 -0
- package/dist/chunks/cli-1.1.26-4jbtcb3c.mjs +17 -0
- package/dist/chunks/cli-1.1.26-4jn0r6an.mjs +2 -0
- package/dist/chunks/cli-1.1.26-516p6zzp.mjs +2 -0
- package/dist/chunks/cli-1.1.26-55ayan24.mjs +133 -0
- package/dist/chunks/cli-1.1.26-5fv3wdye.mjs +2 -0
- package/dist/chunks/cli-1.1.26-5p6865dd.mjs +2 -0
- package/dist/chunks/cli-1.1.26-6ac72fwz.mjs +5 -0
- package/dist/chunks/cli-1.1.26-6c5rgjbj.mjs +2 -0
- package/dist/chunks/cli-1.1.26-6p5bpbzy.mjs +2 -0
- package/dist/chunks/cli-1.1.26-6qzbf8mr.mjs +3 -0
- package/dist/chunks/cli-1.1.26-6v5e8fy8.mjs +2 -0
- package/dist/chunks/cli-1.1.26-73s95190.mjs +4 -0
- package/dist/chunks/cli-1.1.26-79g0hfrb.mjs +4 -0
- package/dist/chunks/cli-1.1.26-79j24jxp.mjs +2 -0
- package/dist/chunks/cli-1.1.26-7h1213xq.mjs +1 -0
- package/dist/chunks/cli-1.1.26-7pa47kxq.mjs +2 -0
- package/dist/chunks/cli-1.1.26-7ssnr221.mjs +4 -0
- package/dist/chunks/cli-1.1.26-851khk0n.mjs +2 -0
- package/dist/chunks/cli-1.1.26-89reg5gc.mjs +2 -0
- package/dist/chunks/cli-1.1.26-8h5tr358.mjs +2 -0
- package/dist/chunks/cli-1.1.26-8vq4pfa8.mjs +2 -0
- package/dist/chunks/cli-1.1.26-8wng8tbf.mjs +2 -0
- package/dist/chunks/cli-1.1.26-945rz3ns.mjs +2 -0
- package/dist/chunks/cli-1.1.26-97w71raz.mjs +2 -0
- package/dist/chunks/cli-1.1.26-9kzdvxzw.mjs +2 -0
- package/dist/chunks/cli-1.1.26-9mg6k159.mjs +2 -0
- package/dist/chunks/cli-1.1.26-9x90xrtz.mjs +2 -0
- package/dist/chunks/cli-1.1.26-ab2xbv4t.mjs +2 -0
- package/dist/chunks/cli-1.1.26-abp7zq8a.mjs +7 -0
- package/dist/chunks/cli-1.1.26-agrrdhst.mjs +12 -0
- package/dist/chunks/cli-1.1.26-aj61ygn7.mjs +2 -0
- package/dist/chunks/cli-1.1.26-arx4za97.mjs +2 -0
- package/dist/chunks/cli-1.1.26-avyt487s.mjs +4 -0
- package/dist/chunks/cli-1.1.26-b3m57q7j.mjs +24 -0
- package/dist/chunks/cli-1.1.26-b5xvjyj6.mjs +2 -0
- package/dist/chunks/cli-1.1.26-bc7nnmyt.mjs +4 -0
- package/dist/chunks/cli-1.1.26-bmzjvqhh.mjs +2 -0
- package/dist/chunks/cli-1.1.26-bs6j2409.mjs +2 -0
- package/dist/chunks/cli-1.1.26-bv6bd469.mjs +2 -0
- package/dist/chunks/cli-1.1.26-c1s0antn.mjs +2 -0
- package/dist/chunks/cli-1.1.26-c9m56qw1.mjs +4 -0
- package/dist/chunks/cli-1.1.26-cdkkrgj3.mjs +6 -0
- package/dist/chunks/cli-1.1.26-chwpygff.mjs +2 -0
- package/dist/chunks/cli-1.1.26-cmeam5fv.mjs +4 -0
- package/dist/chunks/cli-1.1.26-crwbhf2k.mjs +2 -0
- package/dist/chunks/cli-1.1.26-d6m0sag3.mjs +2 -0
- package/dist/chunks/cli-1.1.26-dq31hqw9.mjs +2 -0
- package/dist/chunks/cli-1.1.26-dyyg0r9f.mjs +2 -0
- package/dist/chunks/cli-1.1.26-e807ek7h.mjs +3 -0
- package/dist/chunks/cli-1.1.26-e8stbnjk.mjs +2 -0
- package/dist/chunks/cli-1.1.26-eb90p21t.mjs +10 -0
- package/dist/chunks/cli-1.1.26-edg965cj.mjs +2 -0
- package/dist/chunks/cli-1.1.26-etwfcg1g.mjs +2 -0
- package/dist/chunks/cli-1.1.26-exd0gw3b.mjs +3 -0
- package/dist/chunks/cli-1.1.26-f0cvk9rp.mjs +3 -0
- package/dist/chunks/cli-1.1.26-f624n21e.mjs +2 -0
- package/dist/chunks/cli-1.1.26-fcnssbje.mjs +2 -0
- package/dist/chunks/cli-1.1.26-ft1bty40.mjs +45 -0
- package/dist/chunks/cli-1.1.26-g0jbhnrw.mjs +3 -0
- package/dist/chunks/cli-1.1.26-g1a27741.mjs +3 -0
- package/dist/chunks/cli-1.1.26-g3eqp15d.mjs +2 -0
- package/dist/chunks/cli-1.1.26-g54bqv9d.mjs +2 -0
- package/dist/chunks/cli-1.1.26-g825efx8.mjs +3 -0
- package/dist/chunks/cli-1.1.26-grerq74y.mjs +4 -0
- package/dist/chunks/cli-1.1.26-gt65gs27.mjs +2 -0
- package/dist/chunks/cli-1.1.26-h2bzv8a9.mjs +2 -0
- package/dist/chunks/cli-1.1.26-h8pwf3e5.mjs +34 -0
- package/dist/chunks/cli-1.1.26-hc0z3th3.mjs +2 -0
- package/dist/chunks/cli-1.1.26-hgr89jmg.mjs +2 -0
- package/dist/chunks/cli-1.1.26-hk66nk4j.mjs +2 -0
- package/dist/chunks/cli-1.1.26-hkn2maax.mjs +12 -0
- package/dist/chunks/cli-1.1.26-hwb66n0d.mjs +20 -0
- package/dist/chunks/cli-1.1.26-hxty6b5t.mjs +24 -0
- package/dist/chunks/cli-1.1.26-j0ggtb42.mjs +2 -0
- package/dist/chunks/cli-1.1.26-j0pfn318.mjs +2 -0
- package/dist/chunks/cli-1.1.26-j3g54xq9.mjs +25 -0
- package/dist/chunks/cli-1.1.26-j522h2zj.mjs +2 -0
- package/dist/chunks/cli-1.1.26-j5jzf8nr.mjs +2 -0
- package/dist/chunks/cli-1.1.26-jaq75h39.mjs +2 -0
- package/dist/chunks/cli-1.1.26-jcshhf4v.mjs +2 -0
- package/dist/chunks/cli-1.1.26-jp74zrnt.mjs +2 -0
- package/dist/chunks/cli-1.1.26-jstehae2.mjs +25 -0
- package/dist/chunks/cli-1.1.26-jv1escq9.mjs +9 -0
- package/dist/chunks/cli-1.1.26-jz95bmqy.mjs +2 -0
- package/dist/chunks/cli-1.1.26-k287xjcs.mjs +2 -0
- package/dist/chunks/cli-1.1.26-k827q3s7.mjs +2 -0
- package/dist/chunks/cli-1.1.26-kb5qx4tp.mjs +15 -0
- package/dist/chunks/cli-1.1.26-kk4ymgvj.mjs +2 -0
- package/dist/chunks/cli-1.1.26-kmpjjneg.mjs +50 -0
- package/dist/chunks/cli-1.1.26-krj2sk8f.mjs +2 -0
- package/dist/chunks/cli-1.1.26-ktfnpsqn.mjs +2 -0
- package/dist/chunks/cli-1.1.26-kvt0v6vq.mjs +5459 -0
- package/dist/chunks/cli-1.1.26-kvy3vgrt.mjs +20 -0
- package/dist/chunks/cli-1.1.26-kz0et72d.mjs +2 -0
- package/dist/chunks/cli-1.1.26-m2ajjr1n.mjs +2 -0
- package/dist/chunks/cli-1.1.26-m3gpc1yq.mjs +6 -0
- package/dist/chunks/cli-1.1.26-m8mebydd.mjs +3 -0
- package/dist/chunks/cli-1.1.26-mb749hsh.mjs +2 -0
- package/dist/chunks/cli-1.1.26-mdtsa5pq.mjs +2 -0
- package/dist/chunks/cli-1.1.26-mvjefec1.mjs +206 -0
- package/dist/chunks/cli-1.1.26-n0thzakv.mjs +2 -0
- package/dist/chunks/cli-1.1.26-n43rh2dq.mjs +2 -0
- package/dist/chunks/cli-1.1.26-nbkw9wa7.mjs +2 -0
- package/dist/chunks/cli-1.1.26-nkp41vem.mjs +2 -0
- package/dist/chunks/cli-1.1.26-np0se5jr.mjs +2 -0
- package/dist/chunks/cli-1.1.26-nr4x1ay3.mjs +6 -0
- package/dist/chunks/cli-1.1.26-nv2mgz6h.mjs +60 -0
- package/dist/chunks/cli-1.1.26-p2gpyynf.mjs +2 -0
- package/dist/chunks/cli-1.1.26-pdpvbn6t.mjs +2 -0
- package/dist/chunks/cli-1.1.26-pejnbqtd.mjs +2 -0
- package/dist/chunks/cli-1.1.26-pf85an2q.mjs +2 -0
- package/dist/chunks/cli-1.1.26-phdsw9kw.mjs +2 -0
- package/dist/chunks/cli-1.1.26-pp0zr4bw.mjs +39 -0
- package/dist/chunks/cli-1.1.26-pttfqxxh.mjs +2 -0
- package/dist/chunks/cli-1.1.26-pttr45sa.mjs +2 -0
- package/dist/chunks/cli-1.1.26-pzpydjmr.mjs +2 -0
- package/dist/chunks/cli-1.1.26-q4vaz10d.mjs +2 -0
- package/dist/chunks/cli-1.1.26-q77fmxtz.mjs +2 -0
- package/dist/chunks/cli-1.1.26-q9msymy9.mjs +7 -0
- package/dist/chunks/cli-1.1.26-qf02kggq.mjs +2 -0
- package/dist/chunks/cli-1.1.26-qr2ee3t2.mjs +2 -0
- package/dist/chunks/cli-1.1.26-qw49rw3y.mjs +17 -0
- package/dist/chunks/cli-1.1.26-qymrzn5k.mjs +2 -0
- package/dist/chunks/cli-1.1.26-r4ewzysx.mjs +3 -0
- package/dist/chunks/cli-1.1.26-rbxsj403.mjs +8 -0
- package/dist/chunks/cli-1.1.26-rgz7nebj.mjs +2 -0
- package/dist/chunks/cli-1.1.26-rkdk0vdh.mjs +2 -0
- package/dist/chunks/cli-1.1.26-rpd6k1rg.mjs +2 -0
- package/dist/chunks/cli-1.1.26-rr47cs5n.mjs +2 -0
- package/dist/chunks/cli-1.1.26-rrq5hxxh.mjs +9 -0
- package/dist/chunks/cli-1.1.26-rtk9fw0k.mjs +2 -0
- package/dist/chunks/cli-1.1.26-rzrs3g9w.mjs +2 -0
- package/dist/chunks/cli-1.1.26-sfz2mk5a.mjs +15 -0
- package/dist/chunks/cli-1.1.26-snnmp5qx.mjs +2 -0
- package/dist/chunks/cli-1.1.26-ssxrwqk2.mjs +2 -0
- package/dist/chunks/cli-1.1.26-swdk2n55.mjs +2 -0
- package/dist/chunks/cli-1.1.26-sx40y42s.mjs +2 -0
- package/dist/chunks/cli-1.1.26-syjzv1v1.mjs +18 -0
- package/dist/chunks/cli-1.1.26-t05x8de5.mjs +2 -0
- package/dist/chunks/cli-1.1.26-ta82bxzt.mjs +3 -0
- package/dist/chunks/cli-1.1.26-tcbtd5f6.mjs +2 -0
- package/dist/chunks/cli-1.1.26-tgtv1jp3.mjs +16 -0
- package/dist/chunks/cli-1.1.26-thxyzhdj.mjs +42 -0
- package/dist/chunks/cli-1.1.26-txmxmpj4.mjs +2 -0
- package/dist/chunks/cli-1.1.26-tyvfnyw1.mjs +2 -0
- package/dist/chunks/cli-1.1.26-v0vv0v6c.mjs +58 -0
- package/dist/chunks/cli-1.1.26-v440gznh.mjs +3 -0
- package/dist/chunks/cli-1.1.26-v6fnwae1.mjs +2 -0
- package/dist/chunks/cli-1.1.26-v7k7gw6h.mjs +2 -0
- package/dist/chunks/cli-1.1.26-vb3pa5k9.mjs +2 -0
- package/dist/chunks/cli-1.1.26-vne421we.mjs +133 -0
- package/dist/chunks/cli-1.1.26-vpdrb404.mjs +2 -0
- package/dist/chunks/cli-1.1.26-vxzeagvf.mjs +2 -0
- package/dist/chunks/cli-1.1.26-vypd5zf6.mjs +5 -0
- package/dist/chunks/cli-1.1.26-w94mate8.mjs +2 -0
- package/dist/chunks/cli-1.1.26-w9hym0b4.mjs +2 -0
- package/dist/chunks/cli-1.1.26-wy5w6zkt.mjs +2 -0
- package/dist/chunks/cli-1.1.26-x64s4kth.mjs +2 -0
- package/dist/chunks/cli-1.1.26-x82tpywr.mjs +2 -0
- package/dist/chunks/cli-1.1.26-xdcmgkcr.mjs +15 -0
- package/dist/chunks/cli-1.1.26-xkj6kd3c.mjs +2 -0
- package/dist/chunks/cli-1.1.26-xnqas0g4.mjs +2 -0
- package/dist/chunks/cli-1.1.26-xrb5tnj3.mjs +2 -0
- package/dist/chunks/cli-1.1.26-xrqbcbv5.mjs +2 -0
- package/dist/chunks/cli-1.1.26-xspr3ymb.mjs +2 -0
- package/dist/chunks/cli-1.1.26-xwryqq86.mjs +2 -0
- package/dist/chunks/cli-1.1.26-xzbv3dzb.mjs +2 -0
- package/dist/chunks/cli-1.1.26-y82xxzhw.mjs +2 -0
- package/dist/chunks/cli-1.1.26-yz9ks5m0.mjs +2 -0
- package/dist/chunks/cli-1.1.26-z2cjynpf.mjs +2 -0
- package/dist/chunks/cli-1.1.26-z5qgpexv.mjs +3 -0
- package/dist/chunks/cli-1.1.26-zb5hq3ry.mjs +2 -0
- package/dist/chunks/cli-1.1.26-zsf06fnj.mjs +2 -0
- package/dist/chunks/cli-1.1.26-zy2fcj67.mjs +2 -0
- package/dist/chunks/cli-1.1.26-zyt75y9a.mjs +2 -0
- package/dist/chunks/client-1.1.26-5m13dtqt.mjs +1 -0
- package/dist/chunks/color-1.1.26-hc4gee57.mjs +1 -0
- package/dist/chunks/compact-1.1.26-k29q801r.mjs +3 -0
- package/dist/chunks/config-1.1.26-20jye461.mjs +1 -0
- package/dist/chunks/config-1.1.26-f3tsx9mm.mjs +1 -0
- package/dist/chunks/constants-1.1.26-vyt7y0vq.mjs +1 -0
- package/dist/chunks/context-1.1.26-xg3zeq1z.mjs +1 -0
- package/dist/chunks/context-noninteractive-1.1.26-n05p37yd.mjs +1 -0
- package/dist/chunks/conversation-1.1.26-g9vfc7p7.mjs +1 -0
- package/dist/chunks/copilotHeaders-1.1.26-gr7hc6j5.mjs +1 -0
- package/dist/chunks/copy-1.1.26-t50s90xg.mjs +9 -0
- package/dist/chunks/cost-1.1.26-9hp3110j.mjs +1 -0
- package/dist/chunks/createSSHSession-1.1.26-hpzpfpqk.mjs +1 -0
- package/dist/chunks/createSession-1.1.26-4mxab0d8.mjs +1 -0
- package/dist/chunks/debug-1.1.26-m7p7fchf.mjs +1 -0
- package/dist/chunks/defaultActionDeps-1.1.26-0fr1vrkt.mjs +1534 -0
- package/dist/chunks/desktop-1.1.26-1qjp6a2c.mjs +1 -0
- package/dist/chunks/detectRepository-1.1.26-pmahtt3f.mjs +1 -0
- package/dist/chunks/detection-1.1.26-1wrkcwrj.mjs +1 -0
- package/dist/chunks/diff-1.1.26-c4nqg8fb.mjs +1 -0
- package/dist/chunks/doctor-1.1.26-0jtnwy0r.mjs +1 -0
- package/dist/chunks/doctorDiagnostic-1.1.26-x38xj5dq.mjs +1 -0
- package/dist/chunks/earlyInput-1.1.26-gp0650zq.mjs +1 -0
- package/dist/chunks/effort-1.1.26-8w1e6q0y.mjs +13 -0
- package/dist/chunks/engine-1.1.26-jt09gh12.mjs +1 -0
- package/dist/chunks/envLessBridgeConfig-1.1.26-p0x7avh5.mjs +1 -0
- package/dist/chunks/envUtils-1.1.26-p89sr6v4.mjs +1 -0
- package/dist/chunks/environmentSelection-1.1.26-d8vnmed1.mjs +1 -0
- package/dist/chunks/environments-1.1.26-fz5c214j.mjs +1 -0
- package/dist/chunks/errors-1.1.26-6bzb64g6.mjs +1 -0
- package/dist/chunks/exampleCommands-1.1.26-s4bn18p7.mjs +1 -0
- package/dist/chunks/execFileNoThrow-1.1.26-xh0x0cbp.mjs +1 -0
- package/dist/chunks/exit-1.1.26-55716s6k.mjs +1 -0
- package/dist/chunks/explorer-1.1.26-969pqrwa.mjs +1 -0
- package/dist/chunks/export-1.1.26-mgccr0ea.mjs +2 -0
- package/dist/chunks/extra-usage-1.1.26-sbe56spy.mjs +1 -0
- package/dist/chunks/extra-usage-noninteractive-1.1.26-h08e3n8t.mjs +1 -0
- package/dist/chunks/fast-1.1.26-rbaqsfka.mjs +1 -0
- package/dist/chunks/feedback-1.1.26-2m81mwds.mjs +14 -0
- package/dist/chunks/firstPartyEventLogger-1.1.26-ckqh8nb4.mjs +1 -0
- package/dist/chunks/git-1.1.26-0he7ww02.mjs +1 -0
- package/dist/chunks/githubModelsCredentials-1.1.26-xj1mdstq.mjs +1 -0
- package/dist/chunks/goal-1.1.26-n5s850gv.mjs +4 -0
- package/dist/chunks/growthbook-1.1.26-ka05jsbm.mjs +1 -0
- package/dist/chunks/headless-1.1.26-q9en6pe9.mjs +2 -0
- package/dist/chunks/heapdump-1.1.26-7ewvqmvf.mjs +6 -0
- package/dist/chunks/help-1.1.26-brf53t1m.mjs +1 -0
- package/dist/chunks/hookChains-1.1.26-rkf6y8rc.mjs +3 -0
- package/dist/chunks/hooks-1.1.26-9pdav42n.mjs +1 -0
- package/dist/chunks/hooks-1.1.26-szkj02ez.mjs +79 -0
- package/dist/chunks/ide-1.1.26-m5p57hjq.mjs +3 -0
- package/dist/chunks/image-processor-napi-1.1.26-rekvc35q.mjs +1 -0
- package/dist/chunks/import-1.1.26-7gbx5jy9.mjs +261 -0
- package/dist/chunks/inboundAttachments-1.1.26-tzg5nege.mjs +1 -0
- package/dist/chunks/index-1.1.26-1xcc10z3.mjs +1 -0
- package/dist/chunks/index-1.1.26-46seym0e.mjs +1 -0
- package/dist/chunks/index-1.1.26-4qsakkwp.mjs +1 -0
- package/dist/chunks/index-1.1.26-62wb3t76.mjs +5 -0
- package/dist/chunks/index-1.1.26-7dq7zd2s.mjs +2 -0
- package/dist/chunks/index-1.1.26-924a690m.mjs +1 -0
- package/dist/chunks/index-1.1.26-9hqzzjph.mjs +1 -0
- package/dist/chunks/index-1.1.26-bmzaqft1.mjs +1 -0
- package/dist/chunks/index-1.1.26-cpb34jqj.mjs +9 -0
- package/dist/chunks/index-1.1.26-cpx6j4xt.mjs +1 -0
- package/dist/chunks/index-1.1.26-gyna59qe.mjs +1 -0
- package/dist/chunks/index-1.1.26-h45zww68.mjs +30 -0
- package/dist/chunks/index-1.1.26-matsx1ed.mjs +1 -0
- package/dist/chunks/index-1.1.26-pm334xks.mjs +1 -0
- package/dist/chunks/index-1.1.26-qrbfj1zz.mjs +1 -0
- package/dist/chunks/index-1.1.26-sh5v696c.mjs +1 -0
- package/dist/chunks/index-1.1.26-srjepzh3.mjs +2 -0
- package/dist/chunks/index-1.1.26-syyhrh9b.mjs +23 -0
- package/dist/chunks/index-1.1.26-te4885d9.mjs +1 -0
- package/dist/chunks/index-1.1.26-tyjd8na6.mjs +1 -0
- package/dist/chunks/index-1.1.26-vk1z10tp.mjs +1 -0
- package/dist/chunks/index-1.1.26-vpyv4546.mjs +9 -0
- package/dist/chunks/index-1.1.26-xc6bagza.mjs +1 -0
- package/dist/chunks/init-1.1.26-bnpznn1w.mjs +1 -0
- package/dist/chunks/initReplBridge-1.1.26-c4s4p9cb.mjs +1 -0
- package/dist/chunks/ink-1.1.26-vgbt5egw.mjs +1 -0
- package/dist/chunks/insights-1.1.26-vcx1pevy.mjs +870 -0
- package/dist/chunks/install-1.1.26-4y132asw.mjs +1 -0
- package/dist/chunks/install-github-app-1.1.26-93zf234q.mjs +149 -0
- package/dist/chunks/install-slack-app-1.1.26-mhrfx4re.mjs +1 -0
- package/dist/chunks/instrumentation-1.1.26-c4qjkj2f.mjs +1 -0
- package/dist/chunks/interactiveHelpers-1.1.26-d3arqch8.mjs +1 -0
- package/dist/chunks/keybindings-1.1.26-vn76vb0k.mjs +2 -0
- package/dist/chunks/knowledge-1.1.26-tqdt6kx8.mjs +2 -0
- package/dist/chunks/latestVersionCache-1.1.26-nefaqy0s.mjs +1 -0
- package/dist/chunks/loadAgentsDir-1.1.26-w9zj8h13.mjs +1 -0
- package/dist/chunks/loadPluginHooks-1.1.26-p32pd0zg.mjs +1 -0
- package/dist/chunks/log-1.1.26-esy3mc70.mjs +1 -0
- package/dist/chunks/main-1.1.26-mj3gcxpm.mjs +1 -0
- package/dist/chunks/managedEnv-1.1.26-z6q7c9s8.mjs +1 -0
- package/dist/chunks/mcp-1.1.26-4c7syme5.mjs +17 -0
- package/dist/chunks/mcp-1.1.26-fhs36m57.mjs +1 -0
- package/dist/chunks/mcp-1.1.26-nadsprjm.mjs +4 -0
- package/dist/chunks/mcpb-1.1.26-ek6r8msb.mjs +1 -0
- package/dist/chunks/memory-1.1.26-b3m4e86v.mjs +72 -0
- package/dist/chunks/model-1.1.26-fhssfrx1.mjs +1 -0
- package/dist/chunks/model-1.1.26-v4t85ag1.mjs +2 -0
- package/dist/chunks/node-1.1.26-y7ck63cv.mjs +15 -0
- package/dist/chunks/oauth-1.1.26-8bftajjg.mjs +1 -0
- package/dist/chunks/openaiShim-1.1.26-wvmheb4c.mjs +14 -0
- package/dist/chunks/output-style-1.1.26-rgrmrr2a.mjs +1 -0
- package/dist/chunks/package-SHMK2LJE-1.1.26-grxx0tgk.mjs +1 -0
- package/dist/chunks/parseConnectUrl-1.1.26-64n8w8aa.mjs +1 -0
- package/dist/chunks/parser-1.1.26-p8fcgcbm.mjs +1 -0
- package/dist/chunks/passes-1.1.26-65c9vjm7.mjs +1 -0
- package/dist/chunks/permissions-1.1.26-bvde1j7e.mjs +1 -0
- package/dist/chunks/permissions-1.1.26-xx4tbm19.mjs +3 -0
- package/dist/chunks/plan-1.1.26-0p7zmpya.mjs +1 -0
- package/dist/chunks/plist-1.1.26-emtpv6yq.mjs +1 -0
- package/dist/chunks/plugin-1.1.26-6mz4s6ce.mjs +29 -0
- package/dist/chunks/pluginStartupCheck-1.1.26-zsxa12d4.mjs +1 -0
- package/dist/chunks/plugins-1.1.26-z4gc0hj4.mjs +9 -0
- package/dist/chunks/preActionHook-1.1.26-zja64r0y.mjs +2 -0
- package/dist/chunks/print-1.1.26-4jbs3r8a.mjs +57 -0
- package/dist/chunks/process-1.1.26-nkvbv24g.mjs +1 -0
- package/dist/chunks/processBashCommand-1.1.26-881sdvc5.mjs +1 -0
- package/dist/chunks/processSlashCommand-1.1.26-watbp07x.mjs +9 -0
- package/dist/chunks/prompt-1.1.26-734yg5r7.mjs +1 -0
- package/dist/chunks/prompt-1.1.26-ta9d8xgm.mjs +1 -0
- package/dist/chunks/prompts-1.1.26-cacdrcnk.mjs +1 -0
- package/dist/chunks/protocolHandler-1.1.26-qfw93skn.mjs +13 -0
- package/dist/chunks/provider-1.1.26-yk3xh49r.mjs +2 -0
- package/dist/chunks/providerProfiles-1.1.26-srvwhkc8.mjs +1 -0
- package/dist/chunks/providerValidation-1.1.26-57a6s8yj.mjs +6 -0
- package/dist/chunks/rate-limit-options-1.1.26-14exf6fk.mjs +1 -0
- package/dist/chunks/registerSubcommands-1.1.26-1yddk8hw.mjs +26 -0
- package/dist/chunks/registry-1.1.26-z88679pc.mjs +1 -0
- package/dist/chunks/release-notes-1.1.26-e7dkgbnp.mjs +5 -0
- package/dist/chunks/reload-plugins-1.1.26-6r85z0m0.mjs +2 -0
- package/dist/chunks/remote-env-1.1.26-rg1652ey.mjs +1 -0
- package/dist/chunks/remoteBridgeCore-1.1.26-jmhet39g.mjs +1 -0
- package/dist/chunks/remoteSession-1.1.26-5rva0545.mjs +1 -0
- package/dist/chunks/rename-1.1.26-vp06xehr.mjs +1 -0
- package/dist/chunks/replBridgeHandle-1.1.26-cs214vs7.mjs +1 -0
- package/dist/chunks/replLauncher-1.1.26-j0wpsd4v.mjs +1 -0
- package/dist/chunks/resume-1.1.26-agfxxd17.mjs +2 -0
- package/dist/chunks/rewind-1.1.26-dr3rgj2z.mjs +1 -0
- package/dist/chunks/rootOptions-1.1.26-nc1jrtkg.mjs +1 -0
- package/dist/chunks/runWorkflowHeadless-1.1.26-4xq2d4x0.mjs +10 -0
- package/dist/chunks/sandbox-adapter-1.1.26-v5bmtrnt.mjs +1 -0
- package/dist/chunks/sandbox-toggle-1.1.26-5pxvxje1.mjs +1 -0
- package/dist/chunks/session-1.1.26-7ejzc2bx.mjs +2 -0
- package/dist/chunks/sessionDiscovery-1.1.26-n6vex16t.mjs +1 -0
- package/dist/chunks/sessionFileAccessHooks-1.1.26-q07mz5fe.mjs +1 -0
- package/dist/chunks/sessionStorage-1.1.26-3x2gtfk1.mjs +1 -0
- package/dist/chunks/settings-1.1.26-5hc0bpnb.mjs +1 -0
- package/dist/chunks/setup-1.1.26-2qatx87q.mjs +12 -0
- package/dist/chunks/sinks-1.1.26-0d001pg9.mjs +1 -0
- package/dist/chunks/skills-1.1.26-5q1xvy1e.mjs +1 -0
- package/dist/chunks/startupProfiler-1.1.26-76scq5n6.mjs +1 -0
- package/dist/chunks/startupUpdateCheck-1.1.26-jw39czgq.mjs +1 -0
- package/dist/chunks/state-1.1.26-zh2a5cb0.mjs +1 -0
- package/dist/chunks/stats-1.1.26-3yvhzgsr.mjs +1 -0
- package/dist/chunks/status-1.1.26-ey3zzjzf.mjs +1 -0
- package/dist/chunks/stickers-1.1.26-pnx0arwe.mjs +1 -0
- package/dist/chunks/subprocessEnv-1.1.26-93d936pm.mjs +1 -0
- package/dist/chunks/tasks-1.1.26-05xaegas.mjs +1 -0
- package/dist/chunks/teamHelpers-1.1.26-zn888hhw.mjs +1 -0
- package/dist/chunks/teammateModeSnapshot-1.1.26-bhkgw59h.mjs +1 -0
- package/dist/chunks/teleport-1.1.26-9m3eaa2j.mjs +1 -0
- package/dist/chunks/terminalSetup-1.1.26-p0bvd0b7.mjs +1 -0
- package/dist/chunks/theme-1.1.26-ys6mqfn7.mjs +1 -0
- package/dist/chunks/thinkback-1.1.26-v4qbcex4.mjs +1 -0
- package/dist/chunks/thinkback-play-1.1.26-6gg066vk.mjs +1 -0
- package/dist/chunks/toolPool-1.1.26-g4p6wj1v.mjs +1 -0
- package/dist/chunks/toolSearch-1.1.26-0whd6fnj.mjs +1 -0
- package/dist/chunks/tools-1.1.26-m8c4e11h.mjs +1 -0
- package/dist/chunks/trustedDevice-1.1.26-w86xceqp.mjs +1 -0
- package/dist/chunks/turndown.cjs-1.1.26-kk4sc8q3.mjs +69 -0
- package/dist/chunks/types-1.1.26-myrve966.mjs +1 -0
- package/dist/chunks/ultrareviewCommand-1.1.26-fyxh8eqb.mjs +4 -0
- package/dist/chunks/update-1.1.26-96yjt7je.mjs +72 -0
- package/dist/chunks/upgrade-1.1.26-x2geqcxm.mjs +1 -0
- package/dist/chunks/upload-1.1.26-vpwb30tf.mjs +7 -0
- package/dist/chunks/upstreamproxy-1.1.26-xe96amnx.mjs +14 -0
- package/dist/chunks/url-handler-napi-1.1.26-2v7h396d.mjs +1 -0
- package/dist/chunks/usage-1.1.26-pbyahcbc.mjs +1 -0
- package/dist/chunks/util-1.1.26-f55brgp6.mjs +1 -0
- package/dist/chunks/utils-1.1.26-ntj5p9c6.mjs +1 -0
- package/dist/chunks/vim-1.1.26-n3dckyqd.mjs +1 -0
- package/dist/chunks/watchLoop-1.1.26-shv6pr8d.mjs +13 -0
- package/dist/chunks/watcher-1.1.26-bdahcrvk.mjs +1 -0
- package/dist/chunks/wiki-1.1.26-9q9evb0p.mjs +132 -0
- package/dist/chunks/workflows-1.1.26-pv1pmcm0.mjs +1 -0
- package/dist/chunks/worktree-1.1.26-k3z8qg36.mjs +1 -0
- package/dist/chunks/worktreeModeEnabled-1.1.26-c966pdm7.mjs +1 -0
- package/dist/chunks/wrapper-1.1.26-smg8ftbk.mjs +7 -0
- package/dist/cli.mjs +2 -2
- package/package.json +9 -9
- package/dist/chunks/AgentTool-1.1.24-qv4fnna8.mjs +0 -1
- package/dist/chunks/App-1.1.24-say2rpmy.mjs +0 -1
- package/dist/chunks/ApproveApiKey-1.1.24-gm23618e.mjs +0 -1
- package/dist/chunks/AssistantSessionChooser-1.1.24-86rnm17k.mjs +0 -1
- package/dist/chunks/AutoModeOptInDialog-1.1.24-xpvbmbs3.mjs +0 -1
- package/dist/chunks/BypassPermissionsModeDialog-1.1.24-er5kqrm5.mjs +0 -1
- package/dist/chunks/ClaudeMdExternalIncludesDialog-1.1.24-vqcj9ryy.mjs +0 -1
- package/dist/chunks/ConsoleOAuthFlow-1.1.24-nxtt3gvy.mjs +0 -1
- package/dist/chunks/DiffDialog-1.1.24-cn4z7xcf.mjs +0 -6
- package/dist/chunks/Doctor-1.1.24-nq687w3y.mjs +0 -1
- package/dist/chunks/ExplorerDialog-1.1.24-aajhejtf.mjs +0 -6
- package/dist/chunks/ITermBackend-1.1.24-t998qy29.mjs +0 -1
- package/dist/chunks/InvalidConfigDialog-1.1.24-r5a5gmqd.mjs +0 -1
- package/dist/chunks/InvalidSettingsDialog-1.1.24-pfhn03af.mjs +0 -1
- package/dist/chunks/MigrationDialog-1.1.24-bdj4skrs.mjs +0 -1
- package/dist/chunks/Onboarding-1.1.24-2fjwdtrt.mjs +0 -1
- package/dist/chunks/ProviderManager-1.1.24-hk5fjxsy.mjs +0 -1
- package/dist/chunks/REPL-1.1.24-c424ewnm.mjs +0 -1
- package/dist/chunks/ResumeConversation-1.1.24-6vrvymt3.mjs +0 -1
- package/dist/chunks/SnapshotUpdateDialog-1.1.24-4bnhs3c5.mjs +0 -1
- package/dist/chunks/TeleportProgress-1.1.24-2my71fq7.mjs +0 -1
- package/dist/chunks/TeleportRepoMismatchDialog-1.1.24-jk3wwkbf.mjs +0 -1
- package/dist/chunks/TeleportResumeWrapper-1.1.24-j2b1t7n2.mjs +0 -1
- package/dist/chunks/TmuxBackend-1.1.24-xtsgfdrz.mjs +0 -9
- package/dist/chunks/ToolSearchTool-1.1.24-v916xcsm.mjs +0 -1
- package/dist/chunks/TrustDialog-1.1.24-334mbya2.mjs +0 -1
- package/dist/chunks/activeProvider-1.1.24-ha5w75qf.mjs +0 -1
- package/dist/chunks/add-dir-1.1.24-5ddz7jxk.mjs +0 -1
- package/dist/chunks/agentTypes-1.1.24-zyfmeacn.mjs +0 -1
- package/dist/chunks/agents-1.1.24-3nesz6hb.mjs +0 -110
- package/dist/chunks/agents-1.1.24-7vbfmsmd.mjs +0 -3
- package/dist/chunks/api-1.1.24-dkqpat59.mjs +0 -1
- package/dist/chunks/asciicast-1.1.24-d40wfrpr.mjs +0 -1
- package/dist/chunks/assistant-1.1.24-jj35h9kw.mjs +0 -1
- package/dist/chunks/auth-1.1.24-e4nfc4rk.mjs +0 -1
- package/dist/chunks/auth-1.1.24-fjhrv05m.mjs +0 -1
- package/dist/chunks/autoMode-1.1.24-tdgcdezx.mjs +0 -52
- package/dist/chunks/autoModeSetup-1.1.24-qdp17k5x.mjs +0 -44
- package/dist/chunks/autoUpdater-1.1.24-zp05t0xp.mjs +0 -1
- package/dist/chunks/backgroundHousekeeping-1.1.24-hcarqdg1.mjs +0 -1
- package/dist/chunks/branch-1.1.24-3df7e69c.mjs +0 -4
- package/dist/chunks/bridge-1.1.24-2ybb995s.mjs +0 -2
- package/dist/chunks/bridgeConfig-1.1.24-7y8hnb44.mjs +0 -1
- package/dist/chunks/bridgeEnabled-1.1.24-4z88m0dk.mjs +0 -1
- package/dist/chunks/bridgeMain-1.1.24-5vh38zjk.mjs +0 -88
- package/dist/chunks/bridgePointer-1.1.24-e431wg6e.mjs +0 -1
- package/dist/chunks/btw-1.1.24-c9cx5x03.mjs +0 -1
- package/dist/chunks/buddy-1.1.24-sbda0mvf.mjs +0 -3
- package/dist/chunks/cache-probe-1.1.24-qxe2hv8y.mjs +0 -21
- package/dist/chunks/cacheStats-1.1.24-8rgatdb3.mjs +0 -4
- package/dist/chunks/caches-1.1.24-zj2axnpf.mjs +0 -1
- package/dist/chunks/cd-1.1.24-f7dgvfpq.mjs +0 -3
- package/dist/chunks/claudeDesktop-1.1.24-7ws7tbt6.mjs +0 -1
- package/dist/chunks/claudemd-1.1.24-71y4hxrm.mjs +0 -1
- package/dist/chunks/clear-1.1.24-njwpqwdd.mjs +0 -1
- package/dist/chunks/clearTerminal-1.1.24-f6wcsvqq.mjs +0 -1
- package/dist/chunks/cli-1.1.24-0jwj33ps.mjs +0 -2
- package/dist/chunks/cli-1.1.24-0qefwnmv.mjs +0 -2
- package/dist/chunks/cli-1.1.24-0zt6ghdg.mjs +0 -2
- package/dist/chunks/cli-1.1.24-12hfxy63.mjs +0 -12
- package/dist/chunks/cli-1.1.24-14842nvc.mjs +0 -2
- package/dist/chunks/cli-1.1.24-190psky8.mjs +0 -2
- package/dist/chunks/cli-1.1.24-1kpad5gy.mjs +0 -2
- package/dist/chunks/cli-1.1.24-1m0md9q7.mjs +0 -2
- package/dist/chunks/cli-1.1.24-228jgyfg.mjs +0 -2
- package/dist/chunks/cli-1.1.24-241znxsf.mjs +0 -2
- package/dist/chunks/cli-1.1.24-25bjk4fa.mjs +0 -2
- package/dist/chunks/cli-1.1.24-2d5h000x.mjs +0 -2
- package/dist/chunks/cli-1.1.24-2g0372f8.mjs +0 -2
- package/dist/chunks/cli-1.1.24-2md121ma.mjs +0 -2
- package/dist/chunks/cli-1.1.24-2qkkzsk3.mjs +0 -5456
- package/dist/chunks/cli-1.1.24-2yjpqx2j.mjs +0 -2
- package/dist/chunks/cli-1.1.24-308y9m4j.mjs +0 -2
- package/dist/chunks/cli-1.1.24-32h2wd2e.mjs +0 -3
- package/dist/chunks/cli-1.1.24-36c9cxby.mjs +0 -25
- package/dist/chunks/cli-1.1.24-3cgaxth4.mjs +0 -2
- package/dist/chunks/cli-1.1.24-3n53gv32.mjs +0 -2
- package/dist/chunks/cli-1.1.24-3n6e2e3w.mjs +0 -12
- package/dist/chunks/cli-1.1.24-3w12t3c9.mjs +0 -2
- package/dist/chunks/cli-1.1.24-47657dtc.mjs +0 -2
- package/dist/chunks/cli-1.1.24-4cre60p8.mjs +0 -2
- package/dist/chunks/cli-1.1.24-4p3bjzm5.mjs +0 -2
- package/dist/chunks/cli-1.1.24-4t3rdp3k.mjs +0 -2
- package/dist/chunks/cli-1.1.24-4wpk3xd9.mjs +0 -2
- package/dist/chunks/cli-1.1.24-58gfq4p1.mjs +0 -2
- package/dist/chunks/cli-1.1.24-5jpkct15.mjs +0 -2
- package/dist/chunks/cli-1.1.24-5pkkmh85.mjs +0 -2
- package/dist/chunks/cli-1.1.24-5r5ayhj5.mjs +0 -2
- package/dist/chunks/cli-1.1.24-5vw5z579.mjs +0 -2
- package/dist/chunks/cli-1.1.24-64d8tfjb.mjs +0 -2
- package/dist/chunks/cli-1.1.24-6gj496xe.mjs +0 -4
- package/dist/chunks/cli-1.1.24-6hqn628p.mjs +0 -2
- package/dist/chunks/cli-1.1.24-6mm894jd.mjs +0 -5
- package/dist/chunks/cli-1.1.24-6pgc4c5x.mjs +0 -2
- package/dist/chunks/cli-1.1.24-6ptbgma9.mjs +0 -6
- package/dist/chunks/cli-1.1.24-6rneem3p.mjs +0 -2
- package/dist/chunks/cli-1.1.24-6tjp5zv1.mjs +0 -2
- package/dist/chunks/cli-1.1.24-707k0kc7.mjs +0 -133
- package/dist/chunks/cli-1.1.24-7ae9t2qz.mjs +0 -2
- package/dist/chunks/cli-1.1.24-7ahqssha.mjs +0 -2
- package/dist/chunks/cli-1.1.24-7ax9c4aj.mjs +0 -2
- package/dist/chunks/cli-1.1.24-7ga8r482.mjs +0 -2
- package/dist/chunks/cli-1.1.24-7ht46b9h.mjs +0 -4
- package/dist/chunks/cli-1.1.24-7m3kth8w.mjs +0 -2
- package/dist/chunks/cli-1.1.24-7qe2p4yb.mjs +0 -2
- package/dist/chunks/cli-1.1.24-7ymj1nkq.mjs +0 -2
- package/dist/chunks/cli-1.1.24-8d439hr1.mjs +0 -2
- package/dist/chunks/cli-1.1.24-8fbhkz2k.mjs +0 -7
- package/dist/chunks/cli-1.1.24-8n6b217h.mjs +0 -50
- package/dist/chunks/cli-1.1.24-8nrya8sx.mjs +0 -2
- package/dist/chunks/cli-1.1.24-8s7nf1y6.mjs +0 -2
- package/dist/chunks/cli-1.1.24-8xvf355a.mjs +0 -2
- package/dist/chunks/cli-1.1.24-8yspjjkp.mjs +0 -2
- package/dist/chunks/cli-1.1.24-8zb03vbp.mjs +0 -2
- package/dist/chunks/cli-1.1.24-92s2r0nt.mjs +0 -2
- package/dist/chunks/cli-1.1.24-93bhcjrs.mjs +0 -2
- package/dist/chunks/cli-1.1.24-9414cm38.mjs +0 -2
- package/dist/chunks/cli-1.1.24-985tmwb6.mjs +0 -2
- package/dist/chunks/cli-1.1.24-98nyrm5c.mjs +0 -3
- package/dist/chunks/cli-1.1.24-9dnr05fm.mjs +0 -2
- package/dist/chunks/cli-1.1.24-9grm6x6h.mjs +0 -2
- package/dist/chunks/cli-1.1.24-9jq4gf5s.mjs +0 -2
- package/dist/chunks/cli-1.1.24-9tw7bj9k.mjs +0 -58
- package/dist/chunks/cli-1.1.24-a6q6r9em.mjs +0 -2
- package/dist/chunks/cli-1.1.24-aaym95m1.mjs +0 -2
- package/dist/chunks/cli-1.1.24-abyr5pge.mjs +0 -2
- package/dist/chunks/cli-1.1.24-agq0y77k.mjs +0 -9
- package/dist/chunks/cli-1.1.24-awf7k3ez.mjs +0 -4
- package/dist/chunks/cli-1.1.24-b3nksc62.mjs +0 -2
- package/dist/chunks/cli-1.1.24-bd6f0h85.mjs +0 -2
- package/dist/chunks/cli-1.1.24-bhe5cv5z.mjs +0 -2
- package/dist/chunks/cli-1.1.24-bjbqxwc9.mjs +0 -2
- package/dist/chunks/cli-1.1.24-bnm1yphs.mjs +0 -2
- package/dist/chunks/cli-1.1.24-bnyxg0c8.mjs +0 -2
- package/dist/chunks/cli-1.1.24-bph6jjd7.mjs +0 -4
- package/dist/chunks/cli-1.1.24-bskn8qpc.mjs +0 -2
- package/dist/chunks/cli-1.1.24-c0j54zba.mjs +0 -25
- package/dist/chunks/cli-1.1.24-c1c7arb3.mjs +0 -2
- package/dist/chunks/cli-1.1.24-c7007hz6.mjs +0 -2
- package/dist/chunks/cli-1.1.24-c80wbwvr.mjs +0 -2
- package/dist/chunks/cli-1.1.24-chach6xd.mjs +0 -39
- package/dist/chunks/cli-1.1.24-cjkjb1w0.mjs +0 -4
- package/dist/chunks/cli-1.1.24-ctw3hzrp.mjs +0 -2
- package/dist/chunks/cli-1.1.24-d371v1bp.mjs +0 -42
- package/dist/chunks/cli-1.1.24-dt22ehz1.mjs +0 -18
- package/dist/chunks/cli-1.1.24-dw6eynz7.mjs +0 -16
- package/dist/chunks/cli-1.1.24-e21q73az.mjs +0 -2
- package/dist/chunks/cli-1.1.24-e960m296.mjs +0 -2
- package/dist/chunks/cli-1.1.24-eh4c00hd.mjs +0 -4
- package/dist/chunks/cli-1.1.24-ex7hr389.mjs +0 -3
- package/dist/chunks/cli-1.1.24-ez9nx0pe.mjs +0 -133
- package/dist/chunks/cli-1.1.24-f0pc1fm3.mjs +0 -2
- package/dist/chunks/cli-1.1.24-f2exw52y.mjs +0 -2
- package/dist/chunks/cli-1.1.24-f942w88t.mjs +0 -2
- package/dist/chunks/cli-1.1.24-fkkcnvap.mjs +0 -18
- package/dist/chunks/cli-1.1.24-fqh8r338.mjs +0 -2
- package/dist/chunks/cli-1.1.24-ftgtm0ys.mjs +0 -2
- package/dist/chunks/cli-1.1.24-fwb0d06k.mjs +0 -34
- package/dist/chunks/cli-1.1.24-gb39akdj.mjs +0 -2
- package/dist/chunks/cli-1.1.24-gbya20sv.mjs +0 -2
- package/dist/chunks/cli-1.1.24-ghegqjt7.mjs +0 -2
- package/dist/chunks/cli-1.1.24-gm25g2rw.mjs +0 -2
- package/dist/chunks/cli-1.1.24-hbp5ttza.mjs +0 -2
- package/dist/chunks/cli-1.1.24-hbvsy3cq.mjs +0 -2
- package/dist/chunks/cli-1.1.24-hhgxzt7m.mjs +0 -4
- package/dist/chunks/cli-1.1.24-hmzgqyyq.mjs +0 -24
- package/dist/chunks/cli-1.1.24-hty94kzp.mjs +0 -2
- package/dist/chunks/cli-1.1.24-jetxd54w.mjs +0 -2
- package/dist/chunks/cli-1.1.24-jm1y3v0c.mjs +0 -2
- package/dist/chunks/cli-1.1.24-jm2wjmkx.mjs +0 -3
- package/dist/chunks/cli-1.1.24-jnksvjkj.mjs +0 -3
- package/dist/chunks/cli-1.1.24-jrvf41s6.mjs +0 -2
- package/dist/chunks/cli-1.1.24-k1dhj122.mjs +0 -2
- package/dist/chunks/cli-1.1.24-k2cach52.mjs +0 -2
- package/dist/chunks/cli-1.1.24-kfzxwy9d.mjs +0 -2
- package/dist/chunks/cli-1.1.24-m6pr9whf.mjs +0 -2
- package/dist/chunks/cli-1.1.24-m70g3zj4.mjs +0 -21
- package/dist/chunks/cli-1.1.24-m8jww9mz.mjs +0 -2
- package/dist/chunks/cli-1.1.24-mgndv90z.mjs +0 -24
- package/dist/chunks/cli-1.1.24-mwva78xt.mjs +0 -2
- package/dist/chunks/cli-1.1.24-myqjptqw.mjs +0 -2
- package/dist/chunks/cli-1.1.24-n18majmw.mjs +0 -8
- package/dist/chunks/cli-1.1.24-n5vwxtj6.mjs +0 -3
- package/dist/chunks/cli-1.1.24-n7r6kv9g.mjs +0 -2
- package/dist/chunks/cli-1.1.24-ne1bt8jx.mjs +0 -2
- package/dist/chunks/cli-1.1.24-nhr9sjgz.mjs +0 -2
- package/dist/chunks/cli-1.1.24-nhz403dg.mjs +0 -3
- package/dist/chunks/cli-1.1.24-nrfpn2q3.mjs +0 -2
- package/dist/chunks/cli-1.1.24-nsggarp4.mjs +0 -2
- package/dist/chunks/cli-1.1.24-nv8d7bav.mjs +0 -2
- package/dist/chunks/cli-1.1.24-p2a545ga.mjs +0 -3
- package/dist/chunks/cli-1.1.24-p71y388t.mjs +0 -2
- package/dist/chunks/cli-1.1.24-pe23qamd.mjs +0 -206
- package/dist/chunks/cli-1.1.24-pgkt8y4z.mjs +0 -6
- package/dist/chunks/cli-1.1.24-pqkmk87x.mjs +0 -2
- package/dist/chunks/cli-1.1.24-pqrtr5rf.mjs +0 -2
- package/dist/chunks/cli-1.1.24-prprq6xe.mjs +0 -2
- package/dist/chunks/cli-1.1.24-pt8vrhq3.mjs +0 -6
- package/dist/chunks/cli-1.1.24-q9qfp0ng.mjs +0 -2
- package/dist/chunks/cli-1.1.24-qn608pma.mjs +0 -2
- package/dist/chunks/cli-1.1.24-s0dcztj8.mjs +0 -2
- package/dist/chunks/cli-1.1.24-s241cgaj.mjs +0 -3
- package/dist/chunks/cli-1.1.24-sa4ycqpk.mjs +0 -2
- package/dist/chunks/cli-1.1.24-sdsp22c3.mjs +0 -2
- package/dist/chunks/cli-1.1.24-skqekybx.mjs +0 -2
- package/dist/chunks/cli-1.1.24-sm5pzkcb.mjs +0 -17
- package/dist/chunks/cli-1.1.24-sv60tfze.mjs +0 -2
- package/dist/chunks/cli-1.1.24-swr2gr8m.mjs +0 -9
- package/dist/chunks/cli-1.1.24-t811r68k.mjs +0 -2
- package/dist/chunks/cli-1.1.24-tbzjj2e8.mjs +0 -24
- package/dist/chunks/cli-1.1.24-tpafhmrw.mjs +0 -2
- package/dist/chunks/cli-1.1.24-tvhfdndb.mjs +0 -15
- package/dist/chunks/cli-1.1.24-tyxhhrt7.mjs +0 -2
- package/dist/chunks/cli-1.1.24-v322mn8d.mjs +0 -6
- package/dist/chunks/cli-1.1.24-vandpwa9.mjs +0 -2
- package/dist/chunks/cli-1.1.24-vf59rwy3.mjs +0 -60
- package/dist/chunks/cli-1.1.24-vg493phv.mjs +0 -2
- package/dist/chunks/cli-1.1.24-vmd44jz3.mjs +0 -2
- package/dist/chunks/cli-1.1.24-vprvwjs1.mjs +0 -3
- package/dist/chunks/cli-1.1.24-vvnnh8xs.mjs +0 -17
- package/dist/chunks/cli-1.1.24-vz1y844w.mjs +0 -2
- package/dist/chunks/cli-1.1.24-w4yh1rwm.mjs +0 -2
- package/dist/chunks/cli-1.1.24-w828y1cd.mjs +0 -2
- package/dist/chunks/cli-1.1.24-wf4vw9fr.mjs +0 -4
- package/dist/chunks/cli-1.1.24-wjy2ctev.mjs +0 -3
- package/dist/chunks/cli-1.1.24-wmzctccq.mjs +0 -4
- package/dist/chunks/cli-1.1.24-wr42vnqf.mjs +0 -2
- package/dist/chunks/cli-1.1.24-wshydefj.mjs +0 -2
- package/dist/chunks/cli-1.1.24-ww5zft49.mjs +0 -20
- package/dist/chunks/cli-1.1.24-wx6qsawc.mjs +0 -2
- package/dist/chunks/cli-1.1.24-wygwske9.mjs +0 -2
- package/dist/chunks/cli-1.1.24-x1wayra7.mjs +0 -7
- package/dist/chunks/cli-1.1.24-x77tmaf2.mjs +0 -2
- package/dist/chunks/cli-1.1.24-x7j3vdgw.mjs +0 -2
- package/dist/chunks/cli-1.1.24-x8cd4qb4.mjs +0 -2
- package/dist/chunks/cli-1.1.24-xcmmqx6c.mjs +0 -1
- package/dist/chunks/cli-1.1.24-xdhm369m.mjs +0 -15
- package/dist/chunks/cli-1.1.24-xmtasnec.mjs +0 -2
- package/dist/chunks/cli-1.1.24-xyb7vhk3.mjs +0 -3
- package/dist/chunks/cli-1.1.24-y0p1ztq1.mjs +0 -2
- package/dist/chunks/cli-1.1.24-y4gprept.mjs +0 -2
- package/dist/chunks/cli-1.1.24-y4pvshdf.mjs +0 -2
- package/dist/chunks/cli-1.1.24-y55w7gqd.mjs +0 -2
- package/dist/chunks/cli-1.1.24-yadxqz7j.mjs +0 -4
- package/dist/chunks/cli-1.1.24-yay2cxmw.mjs +0 -2
- package/dist/chunks/cli-1.1.24-yh801h84.mjs +0 -2
- package/dist/chunks/cli-1.1.24-ymqwnn04.mjs +0 -5
- package/dist/chunks/cli-1.1.24-yp46sbt0.mjs +0 -6
- package/dist/chunks/cli-1.1.24-ys3jea4v.mjs +0 -2
- package/dist/chunks/cli-1.1.24-yz19vhn7.mjs +0 -45
- package/dist/chunks/cli-1.1.24-yz5bzn1k.mjs +0 -2
- package/dist/chunks/cli-1.1.24-yzfk4k7c.mjs +0 -2
- package/dist/chunks/cli-1.1.24-z2byr0bb.mjs +0 -3
- package/dist/chunks/cli-1.1.24-z5t424fy.mjs +0 -15
- package/dist/chunks/cli-1.1.24-zc49jxpp.mjs +0 -24
- package/dist/chunks/cli-1.1.24-zey4mks2.mjs +0 -6
- package/dist/chunks/cli-1.1.24-zjc9nfba.mjs +0 -66
- package/dist/chunks/cli-1.1.24-znb9n8xc.mjs +0 -2
- package/dist/chunks/cli-1.1.24-zqsb8jf1.mjs +0 -2
- package/dist/chunks/cli-1.1.24-zzy8r310.mjs +0 -3
- package/dist/chunks/client-1.1.24-04048dd4.mjs +0 -1
- package/dist/chunks/color-1.1.24-c0gzcmgh.mjs +0 -1
- package/dist/chunks/compact-1.1.24-191dct4e.mjs +0 -3
- package/dist/chunks/config-1.1.24-0gw6ge6e.mjs +0 -1
- package/dist/chunks/config-1.1.24-ndcrhj7n.mjs +0 -1
- package/dist/chunks/constants-1.1.24-tbk9zrcf.mjs +0 -1
- package/dist/chunks/context-1.1.24-m2nks3pf.mjs +0 -1
- package/dist/chunks/context-noninteractive-1.1.24-fpjb3z40.mjs +0 -1
- package/dist/chunks/conversation-1.1.24-1fhfrjjb.mjs +0 -1
- package/dist/chunks/copilotHeaders-1.1.24-7gr1sjfz.mjs +0 -1
- package/dist/chunks/copy-1.1.24-cp9c2gz7.mjs +0 -9
- package/dist/chunks/cost-1.1.24-n2977gae.mjs +0 -1
- package/dist/chunks/createSSHSession-1.1.24-mnvhz35z.mjs +0 -1
- package/dist/chunks/createSession-1.1.24-jmw71620.mjs +0 -1
- package/dist/chunks/debug-1.1.24-fbfn7n50.mjs +0 -1
- package/dist/chunks/defaultActionDeps-1.1.24-2sn9h6p5.mjs +0 -1534
- package/dist/chunks/desktop-1.1.24-scm6c1n6.mjs +0 -1
- package/dist/chunks/detectRepository-1.1.24-pegwcpzf.mjs +0 -1
- package/dist/chunks/detection-1.1.24-0k1tkgs4.mjs +0 -1
- package/dist/chunks/diff-1.1.24-0jvr5nbq.mjs +0 -1
- package/dist/chunks/doctor-1.1.24-ek4hj124.mjs +0 -1
- package/dist/chunks/doctorDiagnostic-1.1.24-rkkj1qaa.mjs +0 -1
- package/dist/chunks/earlyInput-1.1.24-0jq2yety.mjs +0 -1
- package/dist/chunks/effort-1.1.24-pj04350n.mjs +0 -13
- package/dist/chunks/engine-1.1.24-d8ghs7v2.mjs +0 -1
- package/dist/chunks/envLessBridgeConfig-1.1.24-0sz4c3p3.mjs +0 -1
- package/dist/chunks/envUtils-1.1.24-x72tjbvh.mjs +0 -1
- package/dist/chunks/environmentSelection-1.1.24-kdf8c1wj.mjs +0 -1
- package/dist/chunks/environments-1.1.24-4f4e4q0j.mjs +0 -1
- package/dist/chunks/errors-1.1.24-e9mdyym2.mjs +0 -1
- package/dist/chunks/exampleCommands-1.1.24-k8gqpgm6.mjs +0 -1
- package/dist/chunks/execFileNoThrow-1.1.24-nf306f2h.mjs +0 -1
- package/dist/chunks/exit-1.1.24-dvx9hpkk.mjs +0 -1
- package/dist/chunks/explorer-1.1.24-jwyvpptp.mjs +0 -1
- package/dist/chunks/export-1.1.24-wjaf1p5p.mjs +0 -2
- package/dist/chunks/extra-usage-1.1.24-29n7nt5d.mjs +0 -1
- package/dist/chunks/extra-usage-noninteractive-1.1.24-y28scbnf.mjs +0 -1
- package/dist/chunks/fast-1.1.24-b97zvms4.mjs +0 -1
- package/dist/chunks/feedback-1.1.24-6epgxnyy.mjs +0 -14
- package/dist/chunks/firstPartyEventLogger-1.1.24-z3cng876.mjs +0 -1
- package/dist/chunks/git-1.1.24-g44mqdr1.mjs +0 -1
- package/dist/chunks/githubModelsCredentials-1.1.24-xys028w7.mjs +0 -1
- package/dist/chunks/goal-1.1.24-g5h8tqdv.mjs +0 -4
- package/dist/chunks/growthbook-1.1.24-sp4nsdp2.mjs +0 -1
- package/dist/chunks/headless-1.1.24-xjc45ts1.mjs +0 -2
- package/dist/chunks/heapdump-1.1.24-k9vdtkem.mjs +0 -6
- package/dist/chunks/help-1.1.24-4pb60ggc.mjs +0 -1
- package/dist/chunks/hookChains-1.1.24-fgx8qw71.mjs +0 -3
- package/dist/chunks/hooks-1.1.24-gy3rfx2s.mjs +0 -79
- package/dist/chunks/hooks-1.1.24-qvh9gx4b.mjs +0 -1
- package/dist/chunks/ide-1.1.24-ecb37fdx.mjs +0 -3
- package/dist/chunks/image-processor-napi-1.1.24-3bf65p63.mjs +0 -1
- package/dist/chunks/import-1.1.24-bpnr0awz.mjs +0 -261
- package/dist/chunks/inboundAttachments-1.1.24-h4st0drb.mjs +0 -1
- package/dist/chunks/index-1.1.24-1qfnahpf.mjs +0 -5
- package/dist/chunks/index-1.1.24-2c5tqanw.mjs +0 -1
- package/dist/chunks/index-1.1.24-3pkassck.mjs +0 -1
- package/dist/chunks/index-1.1.24-4gnpx2tt.mjs +0 -30
- package/dist/chunks/index-1.1.24-5kf8n97z.mjs +0 -1
- package/dist/chunks/index-1.1.24-7nn95an1.mjs +0 -2
- package/dist/chunks/index-1.1.24-8005ram7.mjs +0 -1
- package/dist/chunks/index-1.1.24-80m0ydka.mjs +0 -2
- package/dist/chunks/index-1.1.24-931bwhyw.mjs +0 -9
- package/dist/chunks/index-1.1.24-a3t3jmq6.mjs +0 -1
- package/dist/chunks/index-1.1.24-bvewx84q.mjs +0 -1
- package/dist/chunks/index-1.1.24-hvxes6d7.mjs +0 -1
- package/dist/chunks/index-1.1.24-j4v31wtc.mjs +0 -1
- package/dist/chunks/index-1.1.24-jt13vzsz.mjs +0 -1
- package/dist/chunks/index-1.1.24-k9m56w47.mjs +0 -1
- package/dist/chunks/index-1.1.24-ksthp5f5.mjs +0 -1
- package/dist/chunks/index-1.1.24-p0dh0w23.mjs +0 -1
- package/dist/chunks/index-1.1.24-qzv3z9d8.mjs +0 -1
- package/dist/chunks/index-1.1.24-ry33qapt.mjs +0 -23
- package/dist/chunks/index-1.1.24-wrwbr5my.mjs +0 -1
- package/dist/chunks/index-1.1.24-x476ts8e.mjs +0 -1
- package/dist/chunks/index-1.1.24-yz1p3g13.mjs +0 -1
- package/dist/chunks/index-1.1.24-zpd6455g.mjs +0 -9
- package/dist/chunks/init-1.1.24-t8nj0b2a.mjs +0 -1
- package/dist/chunks/initReplBridge-1.1.24-0rrs2446.mjs +0 -1
- package/dist/chunks/ink-1.1.24-n7wnynts.mjs +0 -1
- package/dist/chunks/insights-1.1.24-brh3tfms.mjs +0 -870
- package/dist/chunks/install-1.1.24-bnszrzxv.mjs +0 -1
- package/dist/chunks/install-github-app-1.1.24-5rgjevwd.mjs +0 -149
- package/dist/chunks/install-slack-app-1.1.24-yh7a017r.mjs +0 -1
- package/dist/chunks/instrumentation-1.1.24-v7zemczf.mjs +0 -1
- package/dist/chunks/interactiveHelpers-1.1.24-b7xw2wrx.mjs +0 -1
- package/dist/chunks/keybindings-1.1.24-31h2q3ex.mjs +0 -2
- package/dist/chunks/knowledge-1.1.24-8nq0v4s7.mjs +0 -2
- package/dist/chunks/latestVersionCache-1.1.24-a6axfzxn.mjs +0 -1
- package/dist/chunks/loadAgentsDir-1.1.24-k6dhs78a.mjs +0 -1
- package/dist/chunks/loadPluginHooks-1.1.24-kv2hvbav.mjs +0 -1
- package/dist/chunks/log-1.1.24-gv1f1hxb.mjs +0 -1
- package/dist/chunks/main-1.1.24-e2ntxz1f.mjs +0 -1
- package/dist/chunks/managedEnv-1.1.24-rfa63jew.mjs +0 -1
- package/dist/chunks/mcp-1.1.24-3a5demcw.mjs +0 -4
- package/dist/chunks/mcp-1.1.24-5patw3xq.mjs +0 -17
- package/dist/chunks/mcp-1.1.24-jcnn5rdj.mjs +0 -1
- package/dist/chunks/mcpb-1.1.24-b7zrasgt.mjs +0 -1
- package/dist/chunks/memory-1.1.24-dvn88stz.mjs +0 -72
- package/dist/chunks/model-1.1.24-jqp66a34.mjs +0 -1
- package/dist/chunks/model-1.1.24-pxgrw9n0.mjs +0 -2
- package/dist/chunks/node-1.1.24-9kx9ct5c.mjs +0 -15
- package/dist/chunks/oauth-1.1.24-5v87662s.mjs +0 -1
- package/dist/chunks/openaiShim-1.1.24-29jaq53v.mjs +0 -14
- package/dist/chunks/output-style-1.1.24-vt1w07zs.mjs +0 -1
- package/dist/chunks/package-SHMK2LJE-1.1.24-bz44pm49.mjs +0 -1
- package/dist/chunks/parseConnectUrl-1.1.24-e5ppdssa.mjs +0 -1
- package/dist/chunks/parser-1.1.24-r4f154gw.mjs +0 -1
- package/dist/chunks/passes-1.1.24-znx7myf5.mjs +0 -1
- package/dist/chunks/permissions-1.1.24-djrvvvz7.mjs +0 -3
- package/dist/chunks/permissions-1.1.24-v5xhwsne.mjs +0 -1
- package/dist/chunks/plan-1.1.24-vhaqffge.mjs +0 -1
- package/dist/chunks/plist-1.1.24-a5racx0y.mjs +0 -1
- package/dist/chunks/plugin-1.1.24-a97brm8r.mjs +0 -29
- package/dist/chunks/pluginStartupCheck-1.1.24-md4nbg2a.mjs +0 -1
- package/dist/chunks/plugins-1.1.24-mza746hr.mjs +0 -9
- package/dist/chunks/preActionHook-1.1.24-n8ztas45.mjs +0 -2
- package/dist/chunks/print-1.1.24-3xs40xg6.mjs +0 -57
- package/dist/chunks/process-1.1.24-7znk7nvb.mjs +0 -1
- package/dist/chunks/processBashCommand-1.1.24-454rvsw5.mjs +0 -1
- package/dist/chunks/processSlashCommand-1.1.24-8k5m3gk9.mjs +0 -9
- package/dist/chunks/prompt-1.1.24-bk6dfj1e.mjs +0 -1
- package/dist/chunks/prompt-1.1.24-vvcbfmdp.mjs +0 -1
- package/dist/chunks/prompts-1.1.24-b6ebw0vv.mjs +0 -1
- package/dist/chunks/protocolHandler-1.1.24-n1vv96tn.mjs +0 -13
- package/dist/chunks/provider-1.1.24-t07b1cf0.mjs +0 -2
- package/dist/chunks/providerProfiles-1.1.24-pnze1322.mjs +0 -1
- package/dist/chunks/providerValidation-1.1.24-6atsq725.mjs +0 -6
- package/dist/chunks/rate-limit-options-1.1.24-awx453hm.mjs +0 -1
- package/dist/chunks/registerSubcommands-1.1.24-es1k3f52.mjs +0 -26
- package/dist/chunks/registry-1.1.24-f8gdvha6.mjs +0 -1
- package/dist/chunks/release-notes-1.1.24-wc0ns08n.mjs +0 -5
- package/dist/chunks/reload-plugins-1.1.24-n65zs7m1.mjs +0 -2
- package/dist/chunks/remote-env-1.1.24-edv7k83f.mjs +0 -1
- package/dist/chunks/remoteBridgeCore-1.1.24-skqbqsp7.mjs +0 -1
- package/dist/chunks/remoteSession-1.1.24-y4nvb00c.mjs +0 -1
- package/dist/chunks/rename-1.1.24-5h35tqzj.mjs +0 -1
- package/dist/chunks/replBridgeHandle-1.1.24-y59d2vsb.mjs +0 -1
- package/dist/chunks/replLauncher-1.1.24-3fh8y1wc.mjs +0 -1
- package/dist/chunks/resume-1.1.24-mbmqkywe.mjs +0 -2
- package/dist/chunks/rewind-1.1.24-7d2yrzwh.mjs +0 -1
- package/dist/chunks/rootOptions-1.1.24-32jzw8gf.mjs +0 -1
- package/dist/chunks/runWorkflowHeadless-1.1.24-tr01e02n.mjs +0 -10
- package/dist/chunks/sandbox-adapter-1.1.24-n544gb1b.mjs +0 -1
- package/dist/chunks/sandbox-toggle-1.1.24-3jt7dn2v.mjs +0 -1
- package/dist/chunks/session-1.1.24-5gj3f8bf.mjs +0 -2
- package/dist/chunks/sessionDiscovery-1.1.24-qdssyy70.mjs +0 -1
- package/dist/chunks/sessionFileAccessHooks-1.1.24-j2d90dxq.mjs +0 -1
- package/dist/chunks/sessionStorage-1.1.24-jk2064js.mjs +0 -1
- package/dist/chunks/settings-1.1.24-xb5xvwd4.mjs +0 -1
- package/dist/chunks/setup-1.1.24-wdr88mhm.mjs +0 -12
- package/dist/chunks/sinks-1.1.24-zbp12cks.mjs +0 -1
- package/dist/chunks/skills-1.1.24-fs0fj8pg.mjs +0 -1
- package/dist/chunks/startupProfiler-1.1.24-sm8szq0q.mjs +0 -1
- package/dist/chunks/startupUpdateCheck-1.1.24-mc3ted4v.mjs +0 -1
- package/dist/chunks/state-1.1.24-5c4debwf.mjs +0 -1
- package/dist/chunks/stats-1.1.24-0bt4qf8n.mjs +0 -6
- package/dist/chunks/status-1.1.24-abhqj5mw.mjs +0 -1
- package/dist/chunks/stickers-1.1.24-zh8qjsyy.mjs +0 -1
- package/dist/chunks/subprocessEnv-1.1.24-gp4ayqrk.mjs +0 -1
- package/dist/chunks/tasks-1.1.24-1cxy0tgz.mjs +0 -1
- package/dist/chunks/teamHelpers-1.1.24-5bb9mm83.mjs +0 -1
- package/dist/chunks/teammateModeSnapshot-1.1.24-nb3dp4e3.mjs +0 -1
- package/dist/chunks/teleport-1.1.24-c7prtcv6.mjs +0 -1
- package/dist/chunks/terminalSetup-1.1.24-sfx4nye5.mjs +0 -1
- package/dist/chunks/theme-1.1.24-x6419d8v.mjs +0 -1
- package/dist/chunks/thinkback-1.1.24-f315phwt.mjs +0 -1
- package/dist/chunks/thinkback-play-1.1.24-79eppsfc.mjs +0 -1
- package/dist/chunks/toolPool-1.1.24-8yd82av5.mjs +0 -1
- package/dist/chunks/toolSearch-1.1.24-jmqktrq1.mjs +0 -1
- package/dist/chunks/tools-1.1.24-5fm8t3kw.mjs +0 -1
- package/dist/chunks/trustedDevice-1.1.24-w4sh0m0v.mjs +0 -1
- package/dist/chunks/turndown.cjs-1.1.24-h4ea8fek.mjs +0 -69
- package/dist/chunks/types-1.1.24-5xkkfxsk.mjs +0 -1
- package/dist/chunks/ultrareviewCommand-1.1.24-aqb6hpdg.mjs +0 -4
- package/dist/chunks/update-1.1.24-der2v1xy.mjs +0 -72
- package/dist/chunks/upgrade-1.1.24-grzzzksq.mjs +0 -1
- package/dist/chunks/upload-1.1.24-tjetbg6e.mjs +0 -7
- package/dist/chunks/upstreamproxy-1.1.24-19aj3b1w.mjs +0 -14
- package/dist/chunks/url-handler-napi-1.1.24-xm0gtc5y.mjs +0 -1
- package/dist/chunks/usage-1.1.24-69x06f48.mjs +0 -1
- package/dist/chunks/util-1.1.24-1ea4gbm5.mjs +0 -1
- package/dist/chunks/utils-1.1.24-sr136rh9.mjs +0 -1
- package/dist/chunks/vim-1.1.24-e90y2xp6.mjs +0 -1
- package/dist/chunks/watchLoop-1.1.24-wfk9enxd.mjs +0 -13
- package/dist/chunks/watcher-1.1.24-tcqfrpkm.mjs +0 -1
- package/dist/chunks/wiki-1.1.24-aevd508s.mjs +0 -132
- package/dist/chunks/workflows-1.1.24-4wkmgpjr.mjs +0 -1
- package/dist/chunks/worktree-1.1.24-2vf4mmjm.mjs +0 -1
- package/dist/chunks/worktreeModeEnabled-1.1.24-s2v499tv.mjs +0 -1
- package/dist/chunks/wrapper-1.1.24-arr1pkz0.mjs +0 -7
- /package/dist/chunks/{cli-1.1.24-qt5m4501.mjs → cli-1.1.26-6g0bq6h6.mjs} +0 -0
- /package/dist/chunks/{cli-1.1.24-x19qr19f.mjs → cli-1.1.26-7q7jw0ck.mjs} +0 -0
- /package/dist/chunks/{cli-1.1.24-vwmxvbv9.mjs → cli-1.1.26-nqygxkhw.mjs} +0 -0
- /package/dist/chunks/{cli-1.1.24-k5cs55nk.mjs → cli-1.1.26-rbz29dt9.mjs} +0 -0
- /package/dist/chunks/{cli-1.1.24-1mx8wjec.mjs → cli-1.1.26-sgj6knz9.mjs} +0 -0
- /package/dist/chunks/{cli-1.1.24-a33s2dcr.mjs → cli-1.1.26-t8fgt5kw.mjs} +0 -0
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{re as Jq,ve as Tq}from"./cli-1.1.24-7ht46b9h.mjs";import{Ae as zq,Be as bq}from"./cli-1.1.24-e960m296.mjs";import{AM as a,DM as l,HM as t,MI as h,MM as e,NI as fq,OM as Rq,UG as r,VG as Gq,VM as qq,ZM as Fq,hM as S,kM as Nq,nN as D,qN as Cq,vM as s,vo as n,wM as _q,wo as yq}from"./cli-1.1.24-2qkkzsk3.mjs";import{F1 as F,H1 as C,YZ as i,ZZ as Kq,g0 as Bq,k2 as Oq}from"./cli-1.1.24-vf59rwy3.mjs";import{I4 as v,J4 as R,K4 as p}from"./cli-1.1.24-9dnr05fm.mjs";import{L4 as Lq}from"./cli-1.1.24-ys3jea4v.mjs";import{$aa as x,Bha as m,Jha as wq,e$ as g,f$ as Zq,r$ as $,raa as o,saa as Hq,t$ as Xq,wba as vq}from"./cli-1.1.24-pe23qamd.mjs";import{Hla as B,Kla as Yq}from"./cli-1.1.24-zey4mks2.mjs";import{ema as P,hma as u,mma as Wq}from"./cli-1.1.24-eh4c00hd.mjs";import{Wta as d,_ta as Vq}from"./cli-1.1.24-hty94kzp.mjs";import{readFile as c}from"fs/promises";import{join as j}from"path";function Qq(){return s}function Aq(){return Mq}function Uq(){return`thinkback@${Qq()}`}async function jq(){let{enabled:H}=await D(),q=H.find((U)=>U.name==="thinkback"||U.source&&U.source.includes(Uq()));if(!q)return null;let J=j(q.path,"skills",Sq);if(await x(J))return J;return null}async function Iq(H){let q=j(H,"year_in_review.js"),J=j(H,"player.js");try{await c(q)}catch(z){if(u(z))return{success:!1,message:"No animation found. Run /think-back first to generate one."};return m(z),{success:!1,message:`Could not access animation data: ${P(z).message}`}}try{await c(J)}catch(z){if(u(z))return{success:!1,message:"Player script not found. The player.js file is missing from the thinkback skill."};return m(z),{success:!1,message:`Could not access player script: ${P(z).message}`}}let U=i.get(process.stdout);if(!U)return{success:!1,message:"Failed to access terminal instance"};U.enterAlternateScreen();try{await g("node",[J],{stdio:"inherit",cwd:H,reject:!1})}catch{}finally{U.exitAlternateScreen()}let O=j(H,"year_in_review.html");if(await x(O)){let z=o();$(z==="macos"?"open":z==="windows"?"start":"xdg-open",[O])}return{success:!0,message:"Year in review animation complete!"}}function Pq({onReady:H,onError:q}){let[J,U]=K.useState({phase:"checking"}),[O,z]=K.useState("");if(K.useEffect(()=>{async function Z(){try{let y=await l(),Y=Qq(),G=Aq(),X=Uq(),_=Y in y,L=qq(X);if(!_)U({phase:"installing-marketplace"}),B(`Installing marketplace ${G}`),await t({source:"github",repo:G},(V)=>{z(V)}),S(),B(`Marketplace ${Y} installed`);else if(!L)U({phase:"installing-marketplace"}),z("Updating marketplace…"),B(`Refreshing marketplace ${Y}`),await e(Y,(V)=>{z(V)}),a(),S(),B(`Marketplace ${Y} refreshed`);if(!L){U({phase:"installing-plugin"}),B(`Installing plugin ${X}`);let V=await zq([X]);if(V.failed.length>0){let w=V.failed.map((W)=>`${W.name}: ${W.error}`).join(", ");throw Error(`Failed to install plugin: ${w}`)}S(),B(`Plugin ${X} installed`)}else{let{disabled:V}=await D();if(V.some((W)=>W.name==="thinkback"||W.source?.includes(X))){U({phase:"enabling-plugin"}),B(`Enabling plugin ${X}`);let W=await Jq(X);if(!W.success)throw Error(`Failed to enable plugin: ${W.message}`);S(),B(`Plugin ${X} enabled`)}}U({phase:"ready"}),H()}catch(y){let Y=P(y);m(Y),U({phase:"error",message:Y.message}),q(Y.message)}}Z()},[H,q]),J.phase==="error")return v(F,{flexDirection:"column",children:R(C,{color:"error",children:["Error: ",J.message]})});if(J.phase==="ready")return null;let T=J.phase==="checking"?"Checking thinkback installation…":J.phase==="installing-marketplace"?"Installing marketplace…":J.phase==="enabling-plugin"?"Enabling thinkback plugin…":"Installing thinkback plugin…";return v(F,{flexDirection:"column",children:R(F,{children:[v(h,{}),v(C,{children:O||T})]})})}function mq(H){let q=k.c(19),{onDone:J,onAction:U,skillDir:O,hasGenerated:z}=H,[T,Z]=K.useState(!1),y;if(q[0]!==z)y=z?[{label:"Play animation",value:"play",description:"Watch your year in review"},{label:"Edit content",value:"edit",description:"Modify the animation"},{label:"Fix errors",value:"fix",description:"Fix validation or rendering issues"},{label:"Regenerate",value:"regenerate",description:"Create a new animation from scratch"}]:[{label:"Let's go!",value:"regenerate",description:"Generate your personalized animation"}],q[0]=z,q[1]=y;else y=q[1];let Y=y,G;if(q[2]!==U||q[3]!==J||q[4]!==O)G=function(b){if(Z(!0),b==="play")Iq(O).then(()=>{J(void 0,{display:"skip"})});else U(b)},q[2]=U,q[3]=J,q[4]=O,q[5]=G;else G=q[5];let X=G,_;if(q[6]!==J)_=function(){J(void 0,{display:"skip"})},q[6]=J,q[7]=_;else _=q[7];let L=_;if(T)return null;let V;if(q[8]!==z)V=!z&&R(F,{flexDirection:"column",children:[v(C,{children:"Relive your year of coding with Claude."}),v(C,{dimColor:!0,children:"We'll create a personalized ASCII animation celebrating your journey."})]}),q[8]=z,q[9]=V;else V=q[9];let w;if(q[10]!==X||q[11]!==Y)w=v(r,{options:Y,onChange:X,visibleOptionCount:5}),q[10]=X,q[11]=Y,q[12]=w;else w=q[12];let W;if(q[13]!==V||q[14]!==w)W=R(F,{flexDirection:"column",gap:1,children:[V,w]}),q[13]=V,q[14]=w,q[15]=W;else W=q[15];let f;if(q[16]!==L||q[17]!==W)f=v(n,{title:"Think Back on 2025 with Claude Code",subtitle:"Generate your 2025 Claude Code Think Back (takes a few minutes to run)",onCancel:L,color:"claude",children:W}),q[16]=L,q[17]=W,q[18]=f;else f=q[18];return f}function hq(H){let q=k.c(27),{onDone:J}=H,[U,O]=K.useState(!1),[z,T]=K.useState(null),[Z,y]=K.useState(null),[Y,G]=K.useState(null),X;if(q[0]===Symbol.for("react.memo_cache_sentinel"))X=function(){O(!0)},q[0]=X;else X=q[0];let _=X,L;if(q[1]!==J)L=(Q)=>{T(Q),J(`Error with thinkback: ${Q}. Try running /plugin to manually install the think-back plugin.`,{display:"system"})},q[1]=J,q[2]=L;else L=q[2];let V=L,w,W;if(q[3]!==V||q[4]!==U||q[5]!==z||q[6]!==Z)w=()=>{if(U&&!Z&&!z)jq().then((Q)=>{if(Q)B(`Thinkback skill directory: ${Q}`),y(Q);else V("Could not find thinkback skill directory")})},W=[U,Z,z,V],q[3]=V,q[4]=U,q[5]=z,q[6]=Z,q[7]=w,q[8]=W;else w=q[7],W=q[8];K.useEffect(w,W);let f,M;if(q[9]!==Z)f=()=>{if(!Z)return;let Q=j(Z,"year_in_review.js");x(Q).then((N)=>{B(`Checking for ${Q}: ${N?"found":"not found"}`),G(N)})},M=[Z],q[9]=Z,q[10]=f,q[11]=M;else f=q[10],M=q[11];K.useEffect(f,M);let b;if(q[12]!==J)b=function(N){J({edit:xq,fix:Eq,regenerate:uq}[N],{display:"user",shouldQuery:!0})},q[12]=J,q[13]=b;else b=q[13];let E=b;if(z){let Q;if(q[14]!==z)Q=R(C,{color:"error",children:["Error: ",z]}),q[14]=z,q[15]=Q;else Q=q[15];let N;if(q[16]===Symbol.for("react.memo_cache_sentinel"))N=v(C,{dimColor:!0,children:"Try running /plugin to manually install the think-back plugin."}),q[16]=N;else N=q[16];let A;if(q[17]!==Q)A=R(F,{flexDirection:"column",children:[Q,N]}),q[17]=Q,q[18]=A;else A=q[18];return A}if(!U){let Q;if(q[19]!==V)Q=v(Pq,{onReady:_,onError:V}),q[19]=V,q[20]=Q;else Q=q[20];return Q}if(!Z||Y===null){let Q;if(q[21]===Symbol.for("react.memo_cache_sentinel"))Q=R(F,{children:[v(h,{}),v(C,{children:"Loading thinkback skill…"})]}),q[21]=Q;else Q=q[21];return Q}let I;if(q[22]!==E||q[23]!==Y||q[24]!==J||q[25]!==Z)I=v(mq,{onDone:J,onAction:E,skillDir:Z,hasGenerated:Y}),q[22]=E,q[23]=Y,q[24]=J,q[25]=Z,q[26]=I;else I=q[26];return I}async function Yz(H){return v(hq,{onDone:H})}var k,K,Mq="anthropics/claude-plugins-official",Sq="thinkback",xq='Use the Skill tool to invoke the "thinkback" skill with mode=edit to modify my existing Claude Code year in review animation. Ask me what I want to change. When the animation is ready, tell the user to run /think-back again to play it.',Eq='Use the Skill tool to invoke the "thinkback" skill with mode=fix to fix validation or rendering errors in my existing Claude Code year in review animation. Run the validator, identify errors, and fix them. When the animation is ready, tell the user to run /think-back again to play it.',uq='Use the Skill tool to invoke the "thinkback" skill with mode=regenerate to create a completely new Claude Code year in review animation from scratch. Delete the existing animation and start fresh. When the animation is ready, tell the user to run /think-back again to play it.';var Dq=Vq(()=>{Zq();Gq();yq();fq();Kq();Oq();Tq();Yq();Wq();Xq();vq();wq();Hq();Nq();Fq();Rq();_q();Cq();bq();p();k=d(Bq(),1),K=d(Lq(),1)});
|
|
2
|
-
export{Iq as he,Yz as ie,Dq as je};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{_ta as M}from"./cli-1.1.24-hty94kzp.mjs";function P(j){return j.message?.role??j.role}function G(j){return j.message?j.message.content:j.content}function K(j){if(!j||typeof j!=="object")return!1;if(j.type==="image")return!0;if(j.type==="tool_result"&&Array.isArray(j.content))return j.content.some((q)=>K(q));return!1}function Q(j){if(!Array.isArray(j))return!1;return j.some((q)=>K(q))}function U(j){if(!Array.isArray(j)||j.length===0)return!1;return j.every((q)=>{let w=q;return w&&typeof w==="object"&&w.type==="tool_result"})}function V(j){let q=j[j.length-1];if(!q||typeof q!=="object")return"user";if(P(q)!=="user")return"agent";if(U(G(q)))return"agent";return"user"}function W(j){return j.some((q)=>Q(G(q)))}function X(j){let q={"x-initiator":V(j)};if(W(j))q["Copilot-Vision-Request"]="true";return q}function Z(j,q={}){return(w,B)=>{let E=new Headers(B?.headers);for(let[z,F]of Object.entries(q))if(!E.has(z))E.set(z,F);try{if(typeof B?.body==="string"){let z=JSON.parse(B.body);if(Array.isArray(z?.messages))for(let[F,L]of Object.entries(X(z.messages)))E.set(F,L)}}catch{}return j(w,{...B,headers:E})}}var Y=()=>{};
|
|
2
|
-
export{V as Zi,W as _i,X as $i,Z as aj,Y as bj};
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import{Ifa as P,bga as R,r$ as Q,t$ as M}from"./cli-1.1.24-pe23qamd.mjs";import{Hla as G,Kla as C}from"./cli-1.1.24-zey4mks2.mjs";import{_ta as j}from"./cli-1.1.24-hty94kzp.mjs";import{promises as I}from"node:fs";import{homedir as y}from"node:os";import K from"node:path";function O(q){let z;try{z=new URL(q)}catch(A){throw Error(`Invalid URL format: ${q}`)}if(z.protocol!=="http:"&&z.protocol!=="https:")throw Error(`Invalid URL protocol: must use http:// or https://, got ${z.protocol}`)}async function g(q){try{let z=process.platform;if(z==="win32"){let{code:V}=await Q("explorer",[q]);return V===0}let A=z==="darwin"?"open":"xdg-open",{code:J}=await Q(A,[q]);return J===0}catch(z){return!1}}function k(){let q=process.env.XDG_DATA_HOME&&process.env.XDG_DATA_HOME.length>0?process.env.XDG_DATA_HOME:K.join(y(),".local","share");return[K.join(q,"applications"),"/usr/local/share/applications","/usr/share/applications","/var/lib/snapd/desktop/applications","/var/lib/flatpak/exports/share/applications"]}function U(q){let z=q.split(`
|
|
2
|
-
`),A=!1;for(let J of z){let V=J.trim();if(V.startsWith("[")){A=V==="[Desktop Entry]";continue}if(!A)continue;if(!V.startsWith("Exec="))continue;let $=V.slice(5).replace(S,"").replace(/%%/g,"%").trim();if($.length===0)return null;let Y=$.match(/^"([^"]+)"|^(\S+)/);if(!Y)return null;return Y[1]??Y[2]??null}return null}async function L(q){for(let z of k()){let A=K.join(z,q);try{return await I.readFile(A,"utf8")}catch(J){}}return null}async function _(q){let{code:z}=await Q("which",[q],{timeout:X,useCwd:!1});return z===0}async function B(){let{code:q,stdout:z}=await Q("xdg-settings",["get","default-web-browser"],{timeout:X,useCwd:!1});if(q!==0)return null;let A=z.trim();if(A.length===0||!A.endsWith(".desktop"))return null;let J=await L(A);if(J==null)return null;return U(J)}async function N(){for(let q of v)if(await _(q))return q;return null}async function f(){if(Z!==void 0)return Z;try{let q=await B();if(q)return Z=q,q}catch(q){G(`browser: xdg-settings detection failed: ${String(q)}`)}try{let q=await N();return Z=q,q}catch(q){return G(`browser: probe list failed: ${String(q)}`),Z=null,null}}async function W(q,z){let{code:A}=await Q(q,[z]);return A===0}async function w(q){try{O(q);let z=process.env.BROWSER,A=process.platform;if(A==="win32"){if(z){let{code:H}=await Q(z,[`"${q}"`]);return H===0}let{code:Y}=await Q("rundll32",["url,OpenURL",q],{});return Y===0}if(A==="darwin"){let Y=z||"open",{code:H}=await Q(Y,[q]);return H===0}if(z){if(await W(z,q))return!0}let J;try{J=P().oauthBrowser}catch(Y){G(`browser: failed to read oauthBrowser setting: ${String(Y)}`)}if(J&&J.length>0){if(await W(J,q))return!0}let V=await f();if(V){if(await W(V,q))return!0}let{code:$}=await Q("xdg-open",[q]);return $===0}catch(z){return!1}}var S,v,X=2000,Z=void 0;var m=j(()=>{M();C();R();S=/%[fFuUdDnNickvm]/g,v=["brave-browser","brave","firefox","chromium","google-chrome","microsoft-edge"]});
|
|
3
|
-
export{g as h5,w as i5,m as j5};
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import{A_ as ra,B_ as Xc,C_ as Yc,D_ as Zc,E_ as Jc,F_ as el,G_ as Hc,H_ as cr,I_ as Cc,J_ as Ts,K_ as gl,k_ as nt,l_ as hl,m_ as bl,n_ as ml,o_ as fn,p_ as $c,q_ as fu,r_ as Al,s_ as ys,t_ as El,u_ as st,v_ as hs,w_ as k,x_ as ur,y_ as Qc,z_ as Bc}from"./cli-1.1.24-ww5zft49.mjs";import{L_ as ie}from"./cli-1.1.24-jnksvjkj.mjs";import{Lta as kc,Mta as Le}from"./cli-1.1.24-swr2gr8m.mjs";import{Ota as Vc}from"./cli-1.1.24-cjkjb1w0.mjs";import{Qta as Fe,Rta as ve,Uta as De,Vta as ee}from"./cli-1.1.24-vvnnh8xs.mjs";import{$ta as Bs,Yta as E}from"./cli-1.1.24-hty94kzp.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 j_};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{_ta as B}from"./cli-1.1.24-hty94kzp.mjs";function F(z){let k=z.trim();if(!k.startsWith("/"))return null;let b=k.slice(1).split(" ");if(!b[0])return null;let j=b[0],l=!1,q=1;if(b.length>1&&b[1]==="(MCP)")j=j+" (MCP)",l=!0,q=2;let A=b.slice(q).join(" ");return{commandName:j,args:A,isMcp:l}}var C=()=>{};
|
|
2
|
-
export{F as Ui,C as Vi};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{_X as Xq,cY as wq,gY as xq,hY as c,iY as zq,qY as Yq}from"./cli-1.1.24-zqsb8jf1.mjs";import{X3 as vq,c4 as Nq}from"./cli-1.1.24-a6q6r9em.mjs";import{Bha as b,Jha as yq,T$ as jq,_ea as C,afa as Mq,paa as Fq,s$ as Oq,t$ as Lq}from"./cli-1.1.24-pe23qamd.mjs";import{Jja as R,Lja as Qq,Mja as w,Nja as Vq}from"./cli-1.1.24-zjc9nfba.mjs";import{Hla as G,Kla as Jq,kla as z,lla as y,pla as qq}from"./cli-1.1.24-zey4mks2.mjs";import{fma as W,gma as x,mma as e}from"./cli-1.1.24-eh4c00hd.mjs";import{Ama as a,pma as s,qma as l,sma as t}from"./cli-1.1.24-8s7nf1y6.mjs";import{Vpa as i,aoa as r,boa as Aq,dsa as m,eoa as d,nra as u}from"./cli-1.1.24-bnm1yphs.mjs";import{$ta as Hq,_ta as T}from"./cli-1.1.24-hty94kzp.mjs";import{mkdir as Dq,readdir as I,readFile as Zq,unlink as $q,writeFile as h}from"fs/promises";import{join as D}from"path";function _J(q){if(M===q)return;M=q,E()}function WJ(){if(M===void 0)return;M=void 0,E()}function E(){try{Gq.emit()}catch{}}function Kq(q){return D(U(q),pq)}async function g(q){let J=Kq(q);try{let Q=(await Zq(J,"utf-8")).trim(),V=parseInt(Q,10);return isNaN(V)?0:V}catch{return 0}}async function Rq(q,J){let Q=Kq(q);await h(Q,String(J))}function BJ(){if(t(process.env.CLAUDIN_ENABLE_TASKS))return!0;return!i()}async function EJ(q){let J=U(q),Q=await o(q),V;try{V=await C(Q,f);let Y=await Wq(q);if(Y>0){let Z=await g(q);if(Y>Z)await Rq(q,Y)}let X;try{X=await I(J)}catch{X=[]}for(let Z of X)if(Z.endsWith(".json")&&!Z.startsWith(".")){let $=D(J,Z);try{await $q($)}catch{}}E()}finally{if(V)await V()}}async function HJ(q){let J=await P(q),Q=0;for(let V of J){if(V.status!=="completed"||V.metadata?._internal)continue;if(await v(q,V.id,{metadata:{...V.metadata,_internal:!0}}))Q++}return Q}function OJ(){if(process.env.CLAUDIN_TASK_LIST_ID)return process.env.CLAUDIN_TASK_LIST_ID;let q=Xq();if(q)return q.teamName;return c()||M||d()}function _q(q){return q.replace(/[^a-zA-Z0-9_-]/g,"-")}function U(q){return D(s(),"tasks",_q(q))}function S(q,J){return D(U(q),`${_q(J)}.json`)}async function bq(q){let J=U(q);try{await Dq(J,{recursive:!0})}catch{}}async function Wq(q){let J=U(q),Q;try{Q=await I(J)}catch{return 0}let V=0;for(let Y of Q){if(!Y.endsWith(".json"))continue;let X=parseInt(Y.replace(".json",""),10);if(!isNaN(X)&&X>V)V=X}return V}async function cq(q){let[J,Q]=await Promise.all([Wq(q),g(q)]);return Math.max(J,Q)}async function jJ(q,J){let Q=await o(q),V;try{V=await C(Q,f);let Y=await cq(q),X=String(Y+1),Z={id:X,...J},$=S(q,X);return await h($,z(Z,null,2)),E(),X}finally{if(V)await V()}}async function O(q,J){let Q=S(q,J);try{let V=await Zq(Q,"utf-8"),Y=y(V),X=Pq().safeParse(Y);if(!X.success)return G(`[Tasks] Task ${J} failed schema validation: ${X.error.message}`),null;return X.data}catch(V){if(x(V)==="ENOENT")return null;return G(`[Tasks] Failed to read task ${J}: ${W(V)}`),b(V),null}}async function Uq(q,J,Q){let V=await O(q,J);if(!V)return null;let Y={...V,...Q,id:J},X=S(q,J);return await h(X,z(Y,null,2)),E(),Y}async function v(q,J,Q){let V=S(q,J);if(!await O(q,J))return null;let X;try{return X=await C(V,f),await Uq(q,J,Q)}finally{await X?.()}}async function vJ(q,J){let Q=S(q,J);try{let V=parseInt(J,10);if(!isNaN(V)){let X=await g(q);if(V>X)await Rq(q,V)}try{await $q(Q)}catch(X){if(x(X)==="ENOENT")return!1;throw X}let Y=await P(q);for(let X of Y){let Z=X.blocks.filter((K)=>K!==J),$=X.blockedBy.filter((K)=>K!==J);if(Z.length!==X.blocks.length||$.length!==X.blockedBy.length)await v(q,X.id,{blocks:Z,blockedBy:$})}return E(),!0}catch{return!1}}async function P(q){let J=U(q),Q;try{Q=await I(J)}catch{return[]}let V=Q.filter((X)=>X.endsWith(".json")).map((X)=>X.replace(".json",""));return(await Promise.all(V.map((X)=>O(q,X)))).filter((X)=>X!==null)}async function xJ(q,J,Q){let[V,Y]=await Promise.all([O(q,J),O(q,Q)]);if(!V||!Y)return!1;if(!V.blocks.includes(Q))await v(q,J,{blocks:[...V.blocks,Q]});if(!Y.blockedBy.includes(J))await v(q,Q,{blockedBy:[...Y.blockedBy,J]});return!0}function hq(q){return D(U(q),".lock")}async function o(q){await bq(q);let J=hq(q);try{await h(J,"",{flag:"wx"})}catch{}return J}async function zJ(q,J,Q,V={}){let Y=S(q,J);if(!await O(q,J))return{success:!1,reason:"task_not_found"};if(V.checkAgentBusy)return uq(q,J,Q);let Z;try{Z=await C(Y,f);let $=await O(q,J);if(!$)return{success:!1,reason:"task_not_found"};if($.owner&&$.owner!==Q)return{success:!1,reason:"already_claimed",task:$};if($.status==="completed")return{success:!1,reason:"already_resolved",task:$};let K=await P(q),H=new Set(K.filter((A)=>A.status!=="completed").map((A)=>A.id)),N=$.blockedBy.filter((A)=>H.has(A));if(N.length>0)return{success:!1,reason:"blocked",task:$,blockedByTasks:N};return{success:!0,task:await Uq(q,J,{owner:Q})}}catch($){return G(`[Tasks] Failed to claim task ${J}: ${W($)}`),b($),{success:!1,reason:"task_not_found"}}finally{if(Z)await Z()}}async function uq(q,J,Q){let V=await o(q),Y;try{Y=await C(V,f);let X=await P(q),Z=X.find((_)=>_.id===J);if(!Z)return{success:!1,reason:"task_not_found"};if(Z.owner&&Z.owner!==Q)return{success:!1,reason:"already_claimed",task:Z};if(Z.status==="completed")return{success:!1,reason:"already_resolved",task:Z};let $=new Set(X.filter((_)=>_.status!=="completed").map((_)=>_.id)),K=Z.blockedBy.filter((_)=>$.has(_));if(K.length>0)return{success:!1,reason:"blocked",task:Z,blockedByTasks:K};let H=X.filter((_)=>_.status!=="completed"&&_.owner===Q&&_.id!==J);if(H.length>0)return{success:!1,reason:"agent_busy",task:Z,busyWithTasks:H.map((_)=>_.id)};return{success:!0,task:await v(q,J,{owner:Q})}}catch(X){return G(`[Tasks] Failed to claim task ${J} with busy check: ${W(X)}`),b(X),{success:!1,reason:"task_not_found"}}finally{if(Y)await Y()}}async function CJ(q,J,Q,V){let X=(await P(q)).filter((K)=>K.status!=="completed"&&(K.owner===J||K.owner===Q));for(let K of X)await v(q,K.id,{owner:void 0,status:"pending"});if(X.length>0)G(`[Tasks] Unassigned ${X.length} task(s) from ${Q}`);let $=`${Q} ${V==="terminated"?"was terminated":"has shut down"}.`;if(X.length>0){let K=X.map((H)=>`#${H.id} "${H.subject}"`).join(", ");$+=` ${X.length} task(s) were unassigned: ${K}. Use TaskList to check availability and TaskUpdate with owner to reassign them to idle teammates.`}return{unassignedTasks:X.map((K)=>({id:K.id,subject:K.subject})),notificationMessage:$}}var Gq,M,UJ,fq,Pq,pq=".highwatermark",f;var Bq=T(()=>{Qq();m();Jq();a();e();Vq();Mq();yq();Aq();qq();Yq();wq();Gq=r();UJ=Gq.subscribe;fq=w(()=>R.enum(["pending","in_progress","completed"])),Pq=w(()=>R.object({id:R.string(),subject:R.string(),description:R.string(),activeForm:R.string().optional(),owner:R.string().optional(),status:fq(),blocks:R.array(R.string()),blockedBy:R.array(R.string()),metadata:R.record(R.string(),R.unknown()).optional()})),f={retries:{retries:30,minTimeout:5,maxTimeout:100}}});function n(q){return q==="tmux"||q==="iterm2"}var Eq=()=>{};import{mkdirSync as Tq,readFileSync as lq,writeFileSync as Iq}from"fs";import{mkdir as gq,readFile as Cq,rm as k,writeFile as oq}from"fs/promises";import{join as p}from"path";function Sq(q){return q.replace(/[^a-zA-Z0-9]/g,"-").toLowerCase()}function gJ(q){return q.replace(/@/g,"-")}function L(q){return p(l(),Sq(q))}function F(q){return p(L(q),"config.json")}function B(q){try{let J=lq(F(q),"utf-8");return y(J)}catch(J){if(x(J)==="ENOENT")return null;return G(`[TeammateTool] Failed to read team file for ${q}: ${W(J)}`),null}}async function nq(q){try{let J=await Cq(F(q),"utf-8");return y(J)}catch(J){if(x(J)==="ENOENT")return null;return G(`[TeammateTool] Failed to read team file for ${q}: ${W(J)}`),null}}function j(q,J){let Q=L(q);Tq(Q,{recursive:!0}),Iq(F(q),z(J,null,2))}async function kq(q,J){let Q=L(q);await gq(Q,{recursive:!0}),await oq(F(q),z(J,null,2))}function oJ(q,J){let Q=J.agentId||J.name;if(!Q)return G("[TeammateTool] removeTeammateFromTeamFile called with no identifier"),!1;let V=B(q);if(!V)return G(`[TeammateTool] Cannot remove teammate ${Q}: failed to read team file for "${q}"`),!1;let Y=V.members.length;if(V.members=V.members.filter((X)=>{if(J.agentId&&X.agentId===J.agentId)return!1;if(J.name&&X.name===J.name)return!1;return!0}),V.members.length===Y)return G(`[TeammateTool] Teammate ${Q} not found in team file for "${q}"`),!1;return j(q,V),G(`[TeammateTool] Removed teammate from team file: ${Q}`),!0}function nJ(q,J){let Q=B(q);if(!Q)return!1;let V=Q.hiddenPaneIds??[];if(!V.includes(J))V.push(J),Q.hiddenPaneIds=V,j(q,Q),G(`[TeammateTool] Added ${J} to hidden panes for team ${q}`);return!0}function kJ(q,J){let Q=B(q);if(!Q)return!1;let V=Q.hiddenPaneIds??[],Y=V.indexOf(J);if(Y!==-1)V.splice(Y,1),Q.hiddenPaneIds=V,j(q,Q),G(`[TeammateTool] Removed ${J} from hidden panes for team ${q}`);return!0}function rJ(q,J){let Q=B(q);if(!Q)return!1;let V=Q.members.findIndex((Y)=>Y.tmuxPaneId===J);if(V===-1)return!1;if(Q.members.splice(V,1),Q.hiddenPaneIds){let Y=Q.hiddenPaneIds.indexOf(J);if(Y!==-1)Q.hiddenPaneIds.splice(Y,1)}return j(q,Q),G(`[TeammateTool] Removed member with pane ${J} from team ${q}`),!0}function dJ(q,J){let Q=B(q);if(!Q)return!1;let V=Q.members.findIndex((Y)=>Y.agentId===J);if(V===-1)return!1;return Q.members.splice(V,1),j(q,Q),G(`[TeammateTool] Removed member ${J} from team ${q}`),!0}function rq(q,J,Q){let V=B(q);if(!V)return!1;let Y=V.members.find((Z)=>Z.name===J);if(!Y)return G(`[TeammateTool] Cannot set member mode: member ${J} not found in team ${q}`),!1;if(Y.mode===Q)return!0;let X=V.members.map((Z)=>Z.name===J?{...Z,mode:Q}:Z);return j(q,{...V,members:X}),G(`[TeammateTool] Set member ${J} in team ${q} to mode: ${Q}`),!0}function iJ(q,J){if(!zq())return;let Q=J??c(),V=xq();if(Q&&V)rq(Q,V,q)}function mJ(q,J){let Q=B(q);if(!Q)return!1;let V=new Map(J.map((Z)=>[Z.memberName,Z.mode])),Y=!1,X=Q.members.map((Z)=>{let $=V.get(Z.name);if($!==void 0&&Z.mode!==$)return Y=!0,{...Z,mode:$};return Z});if(Y)j(q,{...Q,members:X}),G(`[TeammateTool] Set ${J.length} member modes in team ${q}`);return!0}async function sJ(q,J,Q){let V=await nq(q);if(!V){G(`[TeammateTool] Cannot set member active: team ${q} not found`);return}let Y=V.members.find((X)=>X.name===J);if(!Y){G(`[TeammateTool] Cannot set member active: member ${J} not found in team ${q}`);return}if(Y.isActive===Q)return;Y.isActive=Q,await kq(q,V),G(`[TeammateTool] Set member ${J} in team ${q} to ${Q?"active":"idle"}`)}async function dq(q){let J=p(q,".git"),Q=null;try{let Y=(await Cq(J,"utf-8")).trim().match(/^gitdir:\s*(.+)$/);if(Y&&Y[1]){let X=Y[1],Z=p(X,"..","..");Q=p(Z,"..")}}catch{}if(Q){let V=await Oq(jq(),["worktree","remove","--force",q],{cwd:Q});if(V.code===0){G(`[TeammateTool] Removed worktree via git: ${q}`);return}if(V.stderr?.includes("not a working tree")){G(`[TeammateTool] Worktree already removed: ${q}`);return}G(`[TeammateTool] git worktree remove failed, falling back to rm: ${V.stderr}`)}try{await k(q,{recursive:!0,force:!0}),G(`[TeammateTool] Removed worktree directory manually: ${q}`)}catch(V){G(`[TeammateTool] Failed to remove worktree ${q}: ${W(V)}`)}}function tJ(q){u().add(q)}function aJ(q){u().delete(q)}async function eJ(){let q=u();if(q.size===0)return;let J=Array.from(q);G(`cleanupSessionTeams: removing ${J.length} orphan team dir(s): ${J.join(", ")}`),await Promise.allSettled(J.map((Q)=>iq(Q))),await Promise.allSettled(J.map((Q)=>mq(Q))),q.clear()}async function iq(q){let J=B(q);if(!J)return;let Q=J.members.filter(($)=>$.name!==vq&&$.tmuxPaneId&&$.backendType&&n($.backendType));if(Q.length===0)return;let[{ensureBackendsRegistered:V,getBackendByType:Y},{isInsideTmux:X}]=await Promise.all([import("./registry-1.1.24-f8gdvha6.mjs"),import("./detection-1.1.24-0k1tkgs4.mjs")]);await V();let Z=!await X();await Promise.allSettled(Q.map(async($)=>{if(!$.tmuxPaneId||!$.backendType||!n($.backendType))return;let K=await Y($.backendType).killPane($.tmuxPaneId,Z);G(`cleanupSessionTeams: killPane ${$.name} (${$.backendType} ${$.tmuxPaneId}) → ${K}`)}))}async function mq(q){let J=Sq(q),Q=B(q),V=[];if(Q){for(let Z of Q.members)if(Z.worktreePath)V.push(Z.worktreePath)}for(let Z of V)await dq(Z);let Y=L(q);try{await k(Y,{recursive:!0,force:!0}),G(`[TeammateTool] Cleaned up team directory: ${Y}`)}catch(Z){G(`[TeammateTool] Failed to clean up team directory ${Y}: ${W(Z)}`)}let X=U(J);try{await k(X,{recursive:!0,force:!0}),G(`[TeammateTool] Cleaned up tasks directory: ${X}`),E()}catch(Z){G(`[TeammateTool] Failed to clean up tasks directory ${X}: ${W(Z)}`)}}var IJ;var sq=T(()=>{Qq();m();Jq();a();e();Lq();Fq();Vq();qq();Bq();Yq();Eq();Nq();IJ=w(()=>R.strictObject({operation:R.enum(["spawnTeam","cleanup"]).describe("Operation: spawnTeam to create a team, cleanup to remove team and task directories."),agent_type:R.string().optional().describe('Type/role of the team lead (e.g., "researcher", "test-runner"). Used for team file and inter-agent coordination.'),team_name:R.string().optional().describe("Name for the new team to create (required for spawnTeam)."),description:R.string().optional().describe("Team description/purpose (only used with spawnTeam).")}))});
|
|
2
|
-
export{_J as gW,WJ as hW,UJ as iW,fq as jW,BJ as kW,EJ as lW,HJ as mW,OJ as nW,_q as oW,U as pW,bq as qW,jJ as rW,O as sW,v as tW,vJ as uW,P as vW,xJ as wW,zJ as xW,CJ as yW,Bq as zW,n as AW,Eq as BW,IJ as CW,Sq as DW,gJ as EW,L as FW,F as GW,B as HW,nq as IW,kq as JW,oJ as KW,nJ as LW,kJ as MW,rJ as NW,dJ as OW,rq as PW,iJ as QW,mJ as RW,sJ as SW,tJ as TW,aJ as UW,eJ as VW,mq as WW,sq as XW};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import{R9 as D}from"./cli-1.1.24-ez9nx0pe.mjs";import{Hla as W,Kla as a,tla as L,xla as JG}from"./cli-1.1.24-zey4mks2.mjs";import{Ama as GG,rma as c,sma as jG}from"./cli-1.1.24-8s7nf1y6.mjs";import{Csa as q,Dsa as g}from"./cli-1.1.24-yz5bzn1k.mjs";import{gta as H,yta as RG}from"./cli-1.1.24-zc49jxpp.mjs";import{Fta as XG}from"./cli-1.1.24-pgkt8y4z.mjs";import{$ta as e,Wta as WG,_ta as j}from"./cli-1.1.24-hty94kzp.mjs";function yG(){U.cache.clear?.(),W("Cleared CA certificates cache")}var U;var i=j(()=>{g();a();GG();JG();U=q(()=>{let G=c("--use-system-ca")||c("--use-openssl-ca"),J=process.env.NODE_EXTRA_CA_CERTS;if(W(`CA certs: useSystemCA=${G}, extraCertsPath=${J}`),!G&&!J)return;let Q=e("tls"),K=[];if(G){let Y=Q.getCACertificates,Z=Y?.("system");if(Z&&Z.length>0)K.push(...Z),W(`CA certs: Loaded ${K.length} system CA certificates (--use-system-ca)`);else if(!Y&&!J){W("CA certs: --use-system-ca set but system CA API unavailable, deferring to runtime");return}else K.push(...Q.rootCertificates),W(`CA certs: Loaded ${K.length} bundled root certificates as base (--use-system-ca fallback)`)}else K.push(...Q.rootCertificates),W(`CA certs: Loaded ${K.length} bundled root certificates as base`);if(J)try{let Y=L().readFileSync(J,{encoding:"utf8"});K.push(Y),W(`CA certs: Appended extra certificates from NODE_EXTRA_CA_CERTS (${J})`)}catch(Y){W(`CA certs: Failed to read NODE_EXTRA_CA_CERTS file (${J}): ${Y}`,{level:"error"})}return K.length>0?K:void 0})});import{Agent as IG}from"https";function gG(){let G=N(),J=U();if(!G&&!J)return;return{...G,...J&&{ca:J}}}function P(){let G=N(),J=U();if(!G&&!J)return{};let Q={...G,...J&&{ca:J}};if(typeof Bun<"u")return{tls:Q};return W("TLS: Created undici agent with custom certificates"),{dispatcher:new(D()).Agent({connect:{cert:Q.cert,key:Q.key,passphrase:Q.passphrase,...Q.ca&&{ca:Q.ca}},pipelining:1})}}function aG(){N.cache.clear?.(),C.cache.clear?.(),W("Cleared mTLS configuration cache")}function iG(){if(!N())return;if(process.env.NODE_EXTRA_CA_CERTS)W("NODE_EXTRA_CA_CERTS detected - Node.js will automatically append to built-in CAs")}var N,C;var KG=j(()=>{g();i();a();JG();N=q(()=>{let G={};if(process.env.CLAUDIN_CLIENT_CERT)try{G.cert=L().readFileSync(process.env.CLAUDIN_CLIENT_CERT,{encoding:"utf8"}),W("mTLS: Loaded client certificate from CLAUDIN_CLIENT_CERT")}catch(J){W(`mTLS: Failed to load client certificate: ${J}`,{level:"error"})}if(process.env.CLAUDIN_CLIENT_KEY)try{G.key=L().readFileSync(process.env.CLAUDIN_CLIENT_KEY,{encoding:"utf8"}),W("mTLS: Loaded client key from CLAUDIN_CLIENT_KEY")}catch(J){W(`mTLS: Failed to load client key: ${J}`,{level:"error"})}if(process.env.CLAUDIN_CLIENT_KEY_PASSPHRASE)G.passphrase=process.env.CLAUDIN_CLIENT_KEY_PASSPHRASE,W("mTLS: Using client key passphrase");if(Object.keys(G).length===0)return;return G}),C=q(()=>{let G=N(),J=U();if(!G&&!J)return;let Q={...G,...J&&{ca:J},keepAlive:!0};return W("mTLS: Creating HTTPS agent with custom certificates"),new IG(Q)})});var QG=()=>{};import*as YG from"net";import*as ZG from"http";import{Agent as SG}from"https";var B,p;var $G=j(()=>{QG();B=Symbol("AgentBaseInternalState");p=class p extends ZG.Agent{constructor(G){super(G);this[B]={}}isSecureEndpoint(G){if(G){if(typeof G.secureEndpoint==="boolean")return G.secureEndpoint;if(typeof G.protocol==="string")return G.protocol==="https:"}let{stack:J}=Error();if(typeof J!=="string")return!1;return J.split(`
|
|
2
|
-
`).some((Q)=>Q.indexOf("(https.js:")!==-1||Q.indexOf("node:https:")!==-1)}incrementSockets(G){if(this.maxSockets===1/0&&this.maxTotalSockets===1/0)return null;if(!this.sockets[G])this.sockets[G]=[];let J=new YG.Socket({writable:!1});return this.sockets[G].push(J),this.totalSocketCount++,J}decrementSockets(G,J){if(!this.sockets[G]||J===null)return;let Q=this.sockets[G],K=Q.indexOf(J);if(K!==-1){if(Q.splice(K,1),this.totalSocketCount--,Q.length===0)delete this.sockets[G]}}getName(G){if(this.isSecureEndpoint(G))return SG.prototype.getName.call(this,G);return super.getName(G)}createSocket(G,J,Q){let K={...J,secureEndpoint:this.isSecureEndpoint(J)},Y=this.getName(K),Z=this.incrementSockets(Y);Promise.resolve().then(()=>this.connect(G,K)).then((X)=>{if(this.decrementSockets(Y,Z),typeof X.addRequest==="function")try{return X.addRequest(G,K)}catch($){return Q($)}this[B].currentSocket=X,super.createSocket(G,J,Q)},(X)=>{this.decrementSockets(Y,Z),Q(X)})}createConnection(){let G=this[B].currentSocket;if(this[B].currentSocket=void 0,!G)throw Error("No socket was returned in the `connect()` function");return G}get defaultPort(){return this[B].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(G){if(this[B])this[B].defaultPort=G}get protocol(){return this[B].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(G){if(this[B])this[B].protocol=G}}});function n(G){return new Promise((J,Q)=>{let K=0,Y=[];function Z(){let w=G.read();if(w)_(w);else G.once("readable",Z)}function X(){G.removeListener("end",$),G.removeListener("error",V),G.removeListener("readable",Z)}function $(){X(),v("onend"),Q(Error("Proxy connection ended before receiving CONNECT response"))}function V(w){X(),v("onerror %o",w),Q(w)}function _(w){Y.push(w),K+=w.length;let z=Buffer.concat(Y,K),O=z.indexOf(`\r
|
|
3
|
-
\r
|
|
4
|
-
`);if(O===-1){v("have not received end of HTTP headers yet..."),Z();return}let b=z.slice(0,O).toString("ascii").split(`\r
|
|
5
|
-
`),f=b.shift();if(!f)return G.destroy(),Q(Error("No header received from proxy CONNECT response"));let t=f.split(" "),FG=+t[1],EG=t.slice(2).join(" "),I={};for(let S of b){if(!S)continue;let u=S.indexOf(":");if(u===-1)return G.destroy(),Q(Error(`Invalid header from proxy CONNECT response: "${S}"`));let d=S.slice(0,u).toLowerCase(),l=S.slice(u+1).trimStart(),A=I[d];if(typeof A==="string")I[d]=[A,l];else if(Array.isArray(A))A.push(l);else I[d]=l}v("got proxy server response: %o %o",f,I),X(),J({connect:{statusCode:FG,statusText:EG,headers:I},buffered:z})}G.on("error",V),G.on("end",$),Z()})}var wG,v;var zG=j(()=>{wG=WG(XG(),1),v=wG.default("https-proxy-agent:parse-proxy-response")});function VG(){return async({response:G,scheme:J})=>{if(J.toLowerCase()!=="negotiate")throw Error(`Expected Negotiate scheme but got "${J}"`);let Q;try{Q=await import("kerberos")}catch{throw Error('The "kerberos" package is required for Negotiate proxy authentication. Install it with: npm install kerberos')}let K=G.headers["proxy-authenticate"]||"",Y=Array.isArray(K)?K[0]:K,Z=typeof Y==="string"&&Y.includes(" ")?Y.split(" ").slice(1).join(" "):void 0,$=await(await Q.initializeClient("HTTP@proxy",{mechOID:Q.GSS_MECH_OID_SPNEGO})).step(Z||"");if(!$)throw Error("Kerberos client.step() returned no token");return{headers:{"Proxy-Authorization":`Negotiate ${$}`}}}}var BG=()=>{};import*as M from"net";import*as R from"tls";import LG from"assert";import{URL as DG}from"url";function MG(G){setImmediate(()=>{G.resume()})}function s(G,...J){let Q={},K;for(K in G)if(!J.includes(K))Q[K]=G[K];return Q}var HG,F,k=(G)=>{if(G.servername===void 0&&G.host&&!M.isIP(G.host))return{...G,servername:G.host};return G},m;var _G=j(()=>{$G();zG();BG();HG=WG(XG(),1),F=HG.default("https-proxy-agent");m=class m extends p{constructor(G,J){super(J);if(this.options={path:void 0},this.proxy=typeof G==="string"?new DG(G):G,this.proxyHeaders=J?.headers??{},F("Creating new HttpsProxyAgent instance: %o",this.proxy.href),J?.negotiate)this.onProxyAuth=VG();else if(J?.onProxyAuth)this.onProxyAuth=J.onProxyAuth;let Q=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,""),K=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={ALPNProtocols:["http/1.1"],...J?s(J,"headers","onProxyAuth","negotiate"):null,host:Q,port:K}}async connect(G,J){let{proxy:Q}=this;if(!J.host)throw TypeError('No "host" provided');let K;if(Q.protocol==="https:")F("Creating `tls.Socket`: %o",this.connectOpts),K=R.connect(k(this.connectOpts));else F("Creating `net.Socket`: %o",this.connectOpts),K=M.connect(this.connectOpts);let Y=typeof this.proxyHeaders==="function"?this.proxyHeaders():{...this.proxyHeaders},Z=M.isIPv6(J.host)?`[${J.host}]`:J.host,X=`CONNECT ${Z}:${J.port} HTTP/1.1\r
|
|
6
|
-
`;if(Q.username||Q.password){let z=`${decodeURIComponent(Q.username)}:${decodeURIComponent(Q.password)}`;Y["Proxy-Authorization"]=`Basic ${Buffer.from(z).toString("base64")}`}if(Y.Host=`${Z}:${J.port}`,!Y["Proxy-Connection"])Y["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close";for(let z of Object.keys(Y))X+=`${z}: ${Y[z]}\r
|
|
7
|
-
`;let $=n(K);K.write(`${X}\r
|
|
8
|
-
`);let{connect:V,buffered:_}=await $;if(G.emit("proxyConnect",V),this.emit("proxyConnect",V,G),G.emit("proxy",{proxy:this.proxy.href,socket:K}),V.statusCode===200){if(G.once("socket",MG),J.secureEndpoint)return F("Upgrading socket connection to TLS"),R.connect({...s(k(J),"host","path","port"),socket:K});return K}if(V.statusCode===407&&this.onProxyAuth){F("Got 407 response, invoking onProxyAuth callback"),K.destroy();let z=V.headers["proxy-authenticate"]||"",O=Array.isArray(z)?z[0].split(/\s/)[0]:z.split(/\s/)[0],b=await this.onProxyAuth({response:V,scheme:O});return this._connectWithAuth(G,J,b.headers)}K.destroy();let w=new M.Socket({writable:!1});return w.readable=!0,G.once("socket",(z)=>{F("Replaying proxy buffer for failed request"),LG(z.listenerCount("data")>0),z.push(_),z.push(null)}),w}async _connectWithAuth(G,J,Q){let{proxy:K}=this,Y;if(K.protocol==="https:")Y=R.connect(k(this.connectOpts));else Y=M.connect(this.connectOpts);let Z=typeof this.proxyHeaders==="function"?this.proxyHeaders():{...this.proxyHeaders},X=M.isIPv6(J.host)?`[${J.host}]`:J.host,$=`CONNECT ${X}:${J.port} HTTP/1.1\r
|
|
9
|
-
`;if(K.username||K.password){let w=`${decodeURIComponent(K.username)}:${decodeURIComponent(K.password)}`;Z["Proxy-Authorization"]=`Basic ${Buffer.from(w).toString("base64")}`}if(Object.assign(Z,Q),Z.Host=`${X}:${J.port}`,!Z["Proxy-Connection"])Z["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close";for(let w of Object.keys(Z))$+=`${w}: ${Z[w]}\r
|
|
10
|
-
`;let V=n(Y);Y.write(`${$}\r
|
|
11
|
-
`);let{connect:_}=await V;if(G.emit("proxyConnect",_),this.emit("proxyConnect",_,G),_.statusCode===200){if(G.once("socket",MG),J.secureEndpoint)return F("Upgrading socket connection to TLS"),R.connect({...s(k(J),"host","path","port"),socket:Y});return Y}throw Y.destroy(),Error(`Proxy authentication failed with status ${_.statusCode} after retry`)}};m.protocols=["http","https"]});function MJ(G){r.set(G,!0),qG(G)}function qG(G){TG.cache.delete?.(G)}function HJ(G){UG.set(G,!0),qG(G)}function OG(G){return UG.get(G)===!0}function bG(G){switch(G.family){case 0:case 4:case 6:return G.family;case"IPv6":return 6;case"IPv4":case void 0:return 4;default:throw Error(`Unsupported address family: ${G.family}`)}}function E(G=process.env){return G.https_proxy||G.HTTPS_PROXY||G.http_proxy||G.HTTP_PROXY}function AG(G=process.env){return G.no_proxy||G.NO_PROXY}function y(G,J=AG()){if(!J)return!1;if(J==="*")return!0;try{let Q=new URL(G),K=Q.hostname.toLowerCase(),Y=Q.port||(Q.protocol==="https:"||Q.protocol==="wss:"?"443":"80"),Z=`${K}:${Y}`;return J.split(/[,\s]+/).filter(Boolean).some(($)=>{if($=$.toLowerCase().trim(),$.includes(":"))return Z===$;if($.startsWith(".")){let V=$;return K===$.substring(1)||K.endsWith(V)}return K===$||K.endsWith("."+$)})}catch{return!1}}function h(G,J={}){let Q=N(),K=U(),Y={...Q&&{cert:Q.cert,key:Q.key,passphrase:Q.passphrase},...K&&{ca:K}};if(jG(process.env.CLAUDIN_PROXY_RESOLVES_HOSTS))Y.lookup=(Z,X,$)=>{$(null,Z,bG(X))};return new m(G,{...Y,...J})}function _J(G={}){let J=E(),Q=C(),K=H.create({proxy:!1});if(!J){if(Q)K.defaults.httpsAgent=Q;return K}let Y=h(J,G);return K.interceptors.request.use((Z)=>{if(Z.url&&y(Z.url))Z.httpsAgent=Q,Z.httpAgent=Q;else Z.httpsAgent=Y,Z.httpAgent=Y;return Z}),K}function jJ(G){let J=E();if(!J)return;if(y(G))return;return h(J)}function qJ(G){let J=E();if(!J)return;if(y(G))return;return J}function UJ(G){let J=G?.provider&&r.get(G.provider)?{keepalive:!1}:{};if(G?.forAnthropicAPI){let Y=process.env.ANTHROPIC_UNIX_SOCKET;if(Y&&typeof Bun<"u")return{...J,unix:Y}}let Q=E();if(Q){if(typeof Bun<"u")return{...J,proxy:Q,...P()};return{...J,dispatcher:o(Q)}}let K=P();if(G?.provider&&!K.dispatcher)return{...J,...K,dispatcher:TG(G.provider)};return{...J,...K}}function NJ(){let G=E(),J=C();if(x!==void 0)H.interceptors.request.eject(x),x=void 0;if(H.defaults.proxy=void 0,H.defaults.httpAgent=void 0,H.defaults.httpsAgent=void 0,G){H.defaults.proxy=!1;let Q=h(G);x=H.interceptors.request.use((K)=>{if(K.url&&y(K.url))if(J)K.httpsAgent=J,K.httpAgent=J;else delete K.httpsAgent,delete K.httpAgent;else K.httpsAgent=Q,K.httpAgent=Q;return K}),D().setGlobalDispatcher(o(G))}else if(J){H.defaults.httpsAgent=J;let Q=P();if(Q.dispatcher)D().setGlobalDispatcher(Q.dispatcher)}}async function TJ(){let G=E();if(!G)return{};let[{NodeHttpHandler:J},{defaultProvider:Q}]=await Promise.all([import("./index-1.1.24-8005ram7.mjs"),import("./index-1.1.24-931bwhyw.mjs")]),K=h(G),Y=new J({httpAgent:K,httpsAgent:K});return{requestHandler:Y,credentials:Q({clientConfig:{requestHandler:Y}})}}function FJ(){o.cache.clear?.(),W("Cleared proxy agent cache")}var r,UG,o,T,NG,CG,TG,x;var PG=j(()=>{RG();_G();g();i();a();GG();KG();r=new Map;UG=new Map;o=q((G)=>{let J=D(),Q=N(),K=U(),Y={httpProxy:G,httpsProxy:G,noProxy:process.env.NO_PROXY||process.env.no_proxy};if(Q||K){let Z={...Q&&{cert:Q.cert,key:Q.key,passphrase:Q.passphrase},...K&&{ca:K}};Y.connect=Z,Y.requestTls=Z}return new J.EnvHttpProxyAgent(Y)}),T={connections:12,keepAliveTimeout:30000,pipelining:1},NG={firstParty:{...T,allowH2:!0},openai:{...T,allowH2:!0},gemini:{...T,allowH2:!0},mistral:{...T,allowH2:!0},github:{...T,allowH2:!0},codex:{...T,allowH2:!0},"nvidia-nim":{...T,allowH2:!0},minimax:{...T,allowH2:!0}},CG=NG.openai,TG=q((G)=>{let J=D(),Q=NG[G]??CG,K={...Q,allowH2:Q.allowH2&&!OG(G),keepAliveTimeout:r.get(G)?100:Q.keepAliveTimeout};return new J.Agent(K)})});
|
|
12
|
-
export{yG as u9,i as v9,N as w9,gG as x9,aG as y9,iG as z9,KG as A9,MJ as B9,HJ as C9,OG as D9,E as E9,y as F9,_J as G9,jJ as H9,qJ as I9,UJ as J9,NJ as K9,TJ as L9,FJ as M9,PG as N9};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{Fd as z,Gd as K}from"./cli-1.1.24-b3nksc62.mjs";import{qL as w,sL as J}from"./cli-1.1.24-2qkkzsk3.mjs";import{L4 as H}from"./cli-1.1.24-ys3jea4v.mjs";import{Wta as E,_ta as G}from"./cli-1.1.24-hty94kzp.mjs";function V(q,v,k){return B.useMemo(()=>{let D=w(k,v);return z(q,D,k.mode)},[q,v,k,!1,!1])}var B;var N=G(()=>{J();K();B=E(H(),1)});
|
|
2
|
-
export{V as Bd,N as Cd};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{W1 as W,g0 as f,i2 as X,k2 as k}from"./cli-1.1.24-vf59rwy3.mjs";import{H4 as V,I4 as J,K4 as K}from"./cli-1.1.24-9dnr05fm.mjs";import{L4 as P}from"./cli-1.1.24-ys3jea4v.mjs";import{Mha as U,Nha as O}from"./cli-1.1.24-bph6jjd7.mjs";import{Wta as Q,_ta as L}from"./cli-1.1.24-hty94kzp.mjs";import{PassThrough as C}from"stream";function E(q){let b=Z.c(5),{children:w}=q,{exit:z}=W(),B,H;if(b[0]!==z)B=()=>{let D=setTimeout(z,0);return()=>clearTimeout(D)},H=[z],b[0]=z,b[1]=B,b[2]=H;else B=b[1],H=b[2];y.useLayoutEffect(B,H);let G;if(b[3]!==w)G=J(V,{children:w}),b[3]=w,b[4]=G;else G=b[4];return G}function Y(q){let b=q.indexOf(M);if(b===-1)return q;let w=b+M.length,z=q.indexOf(F,w);if(z===-1)return q;return q.slice(w,z)}function g(q,b){return new Promise(async(w)=>{let z="",B=new C;if(b!==void 0)B.columns=b;B.on("data",(G)=>{z+=G.toString()});let H=await X(J(E,{children:q}),{stdout:B,patchConsole:!1});await Promise.race([H.waitUntilExit(),new Promise((G)=>setTimeout(G,3000))]),await w(Y(z))})}async function N(q,b){let w=await g(q,b);return U(w)}var Z,y,M="\x1B[?2026h",F="\x1B[?2026l";var j=L(()=>{O();k();K();Z=Q(f(),1),y=Q(P(),1)});
|
|
2
|
-
export{g as Nc,N as Oc,j as Pc};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{Bf as PJ,yf as UG,zf as RG}from"./cli-1.1.24-gm25g2rw.mjs";import{$G as uG,BN as WJ,HO as mG,KG as YJ,KN as jJ,LG as CJ,LN as HJ,LO as pJ,MI as JG,NI as ZJ,NN as fG,ON as hG,PN as TG,QN as dG,TN as NG,UG as QG,_N as iG,iO as qJ,jO as CG,lO as VJ,no as h,oo as jG,po as p,py as LG,qO as mJ,qo as MG,qy as XJ,ro as r,so as WG,sy as cG,vo as BG,wo as EJ}from"./cli-1.1.24-2qkkzsk3.mjs";import{SY as LJ,TY as hJ,eZ as zG,gZ as TJ,jZ as wG,kZ as QJ}from"./cli-1.1.24-4p3bjzm5.mjs";import{$1 as JJ,D1 as m,F1 as Y,H1 as Q,L1 as FG,a0 as GJ,f0 as AJ,g0 as bG,k2 as VG,p0 as DG}from"./cli-1.1.24-vf59rwy3.mjs";import{H4 as n,I4 as L,J4 as X,K4 as a}from"./cli-1.1.24-9dnr05fm.mjs";import{L4 as $G}from"./cli-1.1.24-ys3jea4v.mjs";import{i5 as AG,j5 as dJ}from"./cli-1.1.24-32h2wd2e.mjs";import{b9 as eG,t9 as gJ}from"./cli-1.1.24-dw6eynz7.mjs";import{Dda as yG,Eda as IG,Fda as KJ,Gha as sG,Jha as _J,Vda as kG,Wda as zJ,a$ as S,b$ as rG,cea as pG}from"./cli-1.1.24-pe23qamd.mjs";import{Cka as gG,Dka as SJ}from"./cli-1.1.24-7ae9t2qz.mjs";import{Eka as C,Hka as bJ}from"./cli-1.1.24-prprq6xe.mjs";import{fma as HG,mma as tG}from"./cli-1.1.24-eh4c00hd.mjs";import{Wta as e,_ta as GG}from"./cli-1.1.24-hty94kzp.mjs";function KG(J){let G=oG.c(9),{serverToolsCount:Z,serverPromptsCount:z,serverResourcesCount:q}=J,H;if(G[0]!==z||G[1]!==q||G[2]!==Z){if(H=[],Z>0)H.push("tools");if(q>0)H.push("resources");if(z>0)H.push("prompts");G[0]=z,G[1]=q,G[2]=Z,G[3]=H}else H=G[3];let k;if(G[4]===Symbol.for("react.memo_cache_sentinel"))k=L(Q,{bold:!0,children:"Capabilities: "}),G[4]=k;else k=G[4];let W;if(G[5]!==H)W=H.length>0?L(r,{children:H}):"none",G[5]=H,G[6]=W;else W=G[6];let D;if(G[7]!==W)D=X(Y,{children:[k,L(Q,{color:"text",children:W})]}),G[7]=W,G[8]=D;else D=G[8];return D}var oG;var SG=GG(()=>{VG();WG();a();oG=e(bG(),1)});function EG(J,G){switch(J.client.type){case"connected":return{message:`Reconnected to ${G}.`,success:!0};case"needs-auth":return{message:`${G} requires authentication. Use the 'Authenticate' option.`,success:!1};case"failed":return{message:`Failed to reconnect to ${G}.`,success:!1};default:return{message:`Unknown result when reconnecting to ${G}.`,success:!1}}}function PG(J,G){let Z=J instanceof Error?J.message:String(J);return`Error reconnecting to ${G}: ${Z}`}var _G=()=>{};function OL({server:J,serverToolsCount:G,onViewTools:Z,onCancel:z,onComplete:q,borderless:H=!1}){let[k]=DG(),W=wG(),{columns:D}=LJ(),[I,U]=E.default.useState(!1),[$,R]=E.default.useState(null),_=LG((V)=>V.mcp),f=XJ(),[O,K]=E.default.useState(null),[P,w]=E.useState(!1),N=E.useRef(null),[g,j]=E.useState(!1),[c,T]=E.useState(null),[A,y]=E.useState(!1),[u,i]=E.useState(null),[l,v]=E.useState(!1),[o,s]=E.useState(!1),x=E.useRef(void 0),B=E.useRef(!1),[xG,XG]=E.useState(""),[DJ,wJ]=E.useState(0),[aG,nG]=E.useState(null);E.useEffect(()=>()=>{if(B.current=!0,N.current?.abort(),x.current!==void 0)clearTimeout(x.current)},[]);let YG=J.isAuthenticated||J.client.type==="connected"&&G>0,ZG=UG(),MJ=E.default.useCallback(async()=>{j(!1),T(null),w(!0);try{let V=await ZG(J.name),F=V.client.type==="connected";if(C("",{success:F}),F)q?.(`Authentication successful. Connected to ${J.name}.`);else if(V.client.type==="needs-auth")q?.("Authentication successful, but server still requires authentication. You may need to manually restart Claudin.");else q?.("Authentication successful, but server reconnection failed. You may need to manually restart Claudin for the changes to take effect.")}catch(V){C("",{success:!1}),q?.(PG(V,J.name))}finally{w(!1)}},[ZG,J.name,q]),fJ=E.default.useCallback(async()=>{await mG(J.name,{...J.config,scope:J.scope}),f((V)=>{let F=V.mcp.clients.map((t)=>t.name===J.name?{...t,type:"needs-auth"}:t),M=hG(V.mcp.tools,J.name),d=TG(V.mcp.commands,J.name),qG=dG(V.mcp.resources,J.name);return{...V,mcp:{...V.mcp,clients:F,tools:M,commands:d,resources:qG}}}),C("",{}),q?.(`Disconnected from ${J.name}.`),y(!1),i(null),v(!1)},[J.name,J.config,J.scope,f,q]);zG("confirm:no",()=>{N.current?.abort(),N.current=null,U(!1),K(null)},{context:"Confirmation",isActive:I}),zG("confirm:no",()=>{j(!1),T(null)},{context:"Confirmation",isActive:g}),zG("confirm:no",()=>{y(!1),i(null),v(!1)},{context:"Confirmation",isActive:A}),JJ((V,F)=>{if(F.return&&g)MJ();if(F.return&&A)if(l)fJ();else{let M=`${gG().CLAUDE_AI_ORIGIN}/settings/connectors`;i(M),v(!0),AG(M)}if(V==="c"&&!o){let M=O||c||u;if(M)GJ(M).then((d)=>{if(B.current)return;if(d)process.stdout.write(d);if(s(!0),x.current!==void 0)clearTimeout(x.current);x.current=setTimeout(s,2000,!1)})}});let NJ=kG(String(J.name)),UJ=fG(_.commands,J.name).length,lG=RG(),RJ=E.default.useCallback(async()=>{let V=gG().CLAUDE_AI_ORIGIN,M=eG()?.organizationUuid,d;if(M&&J.config.type==="claudeai-proxy"&&J.config.id){let qG=J.config.id.startsWith("mcprs")?"mcpsrv"+J.config.id.slice(5):J.config.id,t=encodeURIComponent(process.env.CLAUDE_CODE_ENTRYPOINT||"cli");d=`${V}/api/organizations/${M}/mcp/start-auth/${qG}?product_surface=${t}`}else d=`${V}/settings/connectors`;T(d),j(!0),C("",{}),await AG(d)},[J.config]),OJ=E.default.useCallback(()=>{y(!0),C("",{})},[]),yJ=E.default.useCallback(async()=>{let V=J.client.type!=="disabled";try{if(await lG(J.name),J.config.type==="claudeai-proxy")C("",{new_state:V?"disabled":"enabled"});z()}catch(F){q?.(`Failed to ${V?"disable":"enable"} MCP server '${J.name}': ${HG(F)}`)}},[J.client.type,J.config.type,J.name,lG,z,q]),IJ=E.default.useCallback(async()=>{if(J.config.type==="claudeai-proxy")return;U(!0),R(null);let V=new AbortController;N.current=V;try{if(J.isAuthenticated&&J.config)await CG(J.name,J.config,{preserveStepUpState:!0});if(J.config){await VJ(J.name,J.config,K,V.signal,{onWaitingForCallback:(M)=>{nG(()=>M)}}),C("",{wasAuthenticated:J.isAuthenticated});let F=await ZG(J.name);if(F.client.type==="connected"){let M=YG?`Authentication successful. Reconnected to ${J.name}.`:`Authentication successful. Connected to ${J.name}.`;q?.(M)}else if(F.client.type==="needs-auth")q?.("Authentication successful, but server still requires authentication. You may need to manually restart Claudin.");else sG(J.name,"Reconnection failed after authentication"),q?.("Authentication successful, but server reconnection failed. You may need to manually restart Claudin for the changes to take effect.")}}catch(F){if(F instanceof Error&&!(F instanceof qJ))R(F.message)}finally{U(!1),N.current=null,nG(null),XG("")}},[J.isAuthenticated,J.config,J.name,q,ZG,YG]),BJ=async()=>{if(J.config.type==="claudeai-proxy")return;if(J.config)await CG(J.name,J.config),C("",{}),await mG(J.name,{...J.config,scope:J.scope}),f((V)=>{let F=V.mcp.clients.map((t)=>t.name===J.name?{...t,type:"failed"}:t),M=hG(V.mcp.tools,J.name),d=TG(V.mcp.commands,J.name),qG=dG(V.mcp.resources,J.name);return{...V,mcp:{...V.mcp,clients:F,tools:M,commands:d,resources:qG}}}),q?.(`Authentication cleared for ${J.name}.`)};if(I)return X(Y,{flexDirection:"column",gap:1,padding:1,children:[X(Q,{color:"claude",children:["Authenticating with ",J.name,"…"]}),X(Y,{children:[L(JG,{}),L(Q,{children:" A browser window will open for authentication"})]}),O&&X(Y,{flexDirection:"column",children:[X(Y,{children:[X(Q,{dimColor:!0,children:["If your browser doesn't open automatically, copy this URL manually"," "]}),o?L(Q,{color:"success",children:"(Copied!)"}):L(Q,{dimColor:!0,children:L(h,{shortcut:"c",action:"copy",parens:!0})})]}),L(FG,{url:O})]}),I&&O&&aG&&X(Y,{flexDirection:"column",marginTop:1,children:[L(Q,{dimColor:!0,children:"If the redirect page shows a connection error, paste the URL from your browser's address bar:"}),X(Y,{children:[X(Q,{dimColor:!0,children:["URL ",">"," "]}),L(YJ,{value:xG,onChange:XG,onSubmit:(F)=>{aG(F.trim()),XG("")},cursorOffset:DJ,onChangeCursorOffset:wJ,columns:D-8})]})]}),L(Y,{marginLeft:3,children:L(Q,{dimColor:!0,children:"Return here after authenticating in your browser. Press Esc to go back."})})]});if(g)return X(Y,{flexDirection:"column",gap:1,padding:1,children:[X(Q,{color:"claude",children:["Authenticating with ",J.name,"…"]}),X(Y,{children:[L(JG,{}),L(Q,{children:" A browser window will open for authentication"})]}),c&&X(Y,{flexDirection:"column",children:[X(Y,{children:[X(Q,{dimColor:!0,children:["If your browser doesn't open automatically, copy this URL manually"," "]}),o?L(Q,{color:"success",children:"(Copied!)"}):L(Q,{dimColor:!0,children:L(h,{shortcut:"c",action:"copy",parens:!0})})]}),L(FG,{url:c})]}),X(Y,{marginLeft:3,flexDirection:"column",children:[X(Q,{color:"permission",children:["Press ",L(Q,{bold:!0,children:"Enter"})," after authenticating in your browser."]}),L(Q,{dimColor:!0,italic:!0,children:L(p,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"back"})})]})]});if(A)return X(Y,{flexDirection:"column",gap:1,padding:1,children:[X(Q,{color:"claude",children:["Clear authentication for ",J.name]}),l?X(n,{children:[L(Q,{children:'Find the MCP server in the browser and click "Disconnect".'}),u&&X(Y,{flexDirection:"column",children:[X(Y,{children:[X(Q,{dimColor:!0,children:["If your browser didn't open automatically, copy this URL manually"," "]}),o?L(Q,{color:"success",children:"(Copied!)"}):L(Q,{dimColor:!0,children:L(h,{shortcut:"c",action:"copy",parens:!0})})]}),L(FG,{url:u})]}),X(Y,{marginLeft:3,flexDirection:"column",children:[X(Q,{color:"permission",children:["Press ",L(Q,{bold:!0,children:"Enter"})," when done."]}),L(Q,{dimColor:!0,italic:!0,children:L(p,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"back"})})]})]}):X(n,{children:[L(Q,{children:'This will open claude.ai in the browser. Find the MCP server in the list and click "Disconnect".'}),X(Y,{marginLeft:3,flexDirection:"column",children:[X(Q,{color:"permission",children:["Press ",L(Q,{bold:!0,children:"Enter"})," to open the browser."]}),L(Q,{dimColor:!0,italic:!0,children:L(p,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"back"})})]})]})]});if(P)return X(Y,{flexDirection:"column",gap:1,padding:1,children:[X(Q,{color:"text",children:["Connecting to ",L(Q,{bold:!0,children:J.name}),"…"]}),X(Y,{children:[L(JG,{}),L(Q,{children:" Establishing connection to MCP server"})]}),L(Q,{dimColor:!0,children:"This may take a few moments."})]});let b=[];if(J.client.type==="disabled")b.push({label:"Enable",value:"toggle-enabled"});if(J.client.type==="connected"&&G>0)b.push({label:"View tools",value:"tools"});if(J.config.type==="claudeai-proxy"){if(J.client.type==="connected")b.push({label:"Clear authentication",value:"claudeai-clear-auth"});else if(J.client.type!=="disabled")b.push({label:"Authenticate",value:"claudeai-auth"})}else{if(YG)b.push({label:"Re-authenticate",value:"reauth"}),b.push({label:"Clear authentication",value:"clear-auth"});if(!YG)b.push({label:"Authenticate",value:"auth"})}if(J.client.type!=="disabled"){if(J.client.type!=="needs-auth")b.push({label:"Reconnect",value:"reconnectMcpServer"});b.push({label:"Disable",value:"toggle-enabled"})}if(b.length===0)b.push({label:"Back",value:"back"});return X(Y,{flexDirection:"column",children:[X(Y,{flexDirection:"column",paddingX:1,borderStyle:H?void 0:"round",children:[L(Y,{marginBottom:1,children:X(Q,{bold:!0,children:[NJ," MCP Server"]})}),X(Y,{flexDirection:"column",gap:0,children:[X(Y,{children:[L(Q,{bold:!0,children:"Status: "}),J.client.type==="disabled"?X(Q,{children:[m("inactive",k)(S.radioOff)," disabled"]}):J.client.type==="connected"?X(Q,{children:[m("success",k)(S.tick)," connected"]}):J.client.type==="pending"?X(n,{children:[L(Q,{dimColor:!0,children:S.radioOff}),L(Q,{children:" connecting…"})]}):J.client.type==="needs-auth"?X(Q,{children:[m("warning",k)(S.triangleUpOutline)," needs authentication"]}):X(Q,{children:[m("error",k)(S.cross)," failed"]})]}),J.transport!=="claudeai-proxy"&&X(Y,{children:[L(Q,{bold:!0,children:"Auth: "}),YG?X(Q,{children:[m("success",k)(S.tick)," authenticated"]}):X(Q,{children:[m("error",k)(S.cross)," not authenticated"]})]}),X(Y,{children:[L(Q,{bold:!0,children:"URL: "}),L(Q,{dimColor:!0,children:J.config.url})]}),X(Y,{children:[L(Q,{bold:!0,children:"Config location: "}),L(Q,{dimColor:!0,children:NG(J.scope)})]}),J.client.type==="connected"&&L(KG,{serverToolsCount:G,serverPromptsCount:UJ,serverResourcesCount:_.resources[J.name]?.length||0}),J.client.type==="connected"&&G>0&&X(Y,{children:[L(Q,{bold:!0,children:"Tools: "}),X(Q,{dimColor:!0,children:[G," tools"]})]})]}),$&&L(Y,{marginTop:1,children:X(Q,{color:"error",children:["Error: ",$]})}),b.length>0&&L(Y,{marginTop:1,children:L(QG,{options:b,onChange:async(V)=>{switch(V){case"tools":Z();break;case"auth":case"reauth":await IJ();break;case"clear-auth":await BJ();break;case"claudeai-auth":await RJ();break;case"claudeai-clear-auth":OJ();break;case"reconnectMcpServer":w(!0);try{let F=await ZG(J.name);if(J.config.type==="claudeai-proxy")C("",{success:F.client.type==="connected"});let{message:M}=EG(F,J.name);q?.(M)}catch(F){if(J.config.type==="claudeai-proxy")C("",{success:!1});q?.(PG(F,J.name))}finally{w(!1)}break;case"toggle-enabled":await yJ();break;case"back":z();break}},onCancel:z})})]}),L(Y,{marginTop:1,children:L(Q,{dimColor:!0,italic:!0,children:W.pending?X(n,{children:["Press ",W.keyName," again to exit"]}):X(r,{children:[L(h,{shortcut:"↑↓",action:"navigate"}),L(h,{shortcut:"Enter",action:"select"}),L(p,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"back"})]})})})]})}var E;var $J=GG(()=>{rG();bJ();SJ();QJ();hJ();AJ();VG();TJ();mJ();pJ();PJ();iG();cG();gJ();dJ();tG();_J();pG();MG();uG();WG();jG();ZJ();CJ();SG();_G();a();E=e($G(),1)});function iL({server:J,serverToolsCount:G,onViewTools:Z,onCancel:z,onComplete:q,borderless:H=!1}){let[k]=DG(),W=wG(),D=LG((P)=>P.mcp),I=UG(),U=RG(),[$,R]=OG.useState(!1),_=OG.default.useCallback(async()=>{let P=J.client.type!=="disabled";try{await U(J.name),z()}catch(w){q(`Failed to ${P?"disable":"enable"} MCP server '${J.name}': ${HG(w)}`)}},[J.client.type,J.name,U,z,q]),f=kG(String(J.name)),O=fG(D.commands,J.name).length,K=[];if(J.client.type!=="disabled"&&G>0)K.push({label:"View tools",value:"tools"});if(J.client.type!=="disabled")K.push({label:"Reconnect",value:"reconnectMcpServer"});if(K.push({label:J.client.type!=="disabled"?"Disable":"Enable",value:"toggle-enabled"}),K.length===0)K.push({label:"Back",value:"back"});if($)return X(Y,{flexDirection:"column",gap:1,padding:1,children:[X(Q,{color:"text",children:["Reconnecting to ",L(Q,{bold:!0,children:J.name})]}),X(Y,{children:[L(JG,{}),L(Q,{children:" Restarting MCP server process"})]}),L(Q,{dimColor:!0,children:"This may take a few moments."})]});return X(Y,{flexDirection:"column",children:[X(Y,{flexDirection:"column",paddingX:1,borderStyle:H?void 0:"round",children:[L(Y,{marginBottom:1,children:X(Q,{bold:!0,children:[f," MCP Server"]})}),X(Y,{flexDirection:"column",gap:0,children:[X(Y,{children:[L(Q,{bold:!0,children:"Status: "}),J.client.type==="disabled"?X(Q,{children:[m("inactive",k)(S.radioOff)," disabled"]}):J.client.type==="connected"?X(Q,{children:[m("success",k)(S.tick)," connected"]}):J.client.type==="pending"?X(n,{children:[L(Q,{dimColor:!0,children:S.radioOff}),L(Q,{children:" connecting…"})]}):X(Q,{children:[m("error",k)(S.cross)," failed"]})]}),X(Y,{children:[L(Q,{bold:!0,children:"Command: "}),L(Q,{dimColor:!0,children:J.config.command})]}),J.config.args&&J.config.args.length>0&&X(Y,{children:[L(Q,{bold:!0,children:"Args: "}),L(Q,{dimColor:!0,children:J.config.args.join(" ")})]}),X(Y,{children:[L(Q,{bold:!0,children:"Config location: "}),L(Q,{dimColor:!0,children:NG(WJ(J.name)?.scope??"dynamic")})]}),J.client.type==="connected"&&L(KG,{serverToolsCount:G,serverPromptsCount:O,serverResourcesCount:D.resources[J.name]?.length||0}),J.client.type==="connected"&&G>0&&X(Y,{children:[L(Q,{bold:!0,children:"Tools: "}),X(Q,{dimColor:!0,children:[G," tools"]})]})]}),K.length>0&&L(Y,{marginTop:1,children:L(QG,{options:K,onChange:async(P)=>{if(P==="tools")Z();else if(P==="reconnectMcpServer"){R(!0);try{let w=await I(J.name),{message:N}=EG(w,J.name);q?.(N)}catch(w){q?.(PG(w,J.name))}finally{R(!1)}}else if(P==="toggle-enabled")await _();else if(P==="back")z()},onCancel:z})})]}),L(Y,{marginTop:1,children:L(Q,{dimColor:!0,italic:!0,children:W.pending?X(n,{children:["Press ",W.keyName," again to exit"]}):X(r,{children:[L(h,{shortcut:"↑↓",action:"navigate"}),L(h,{shortcut:"Enter",action:"select"}),L(p,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"back"})]})})})]})}var OG;var cJ=GG(()=>{rG();QJ();VG();jJ();PJ();iG();cG();tG();pG();MG();uG();WG();jG();ZJ();SG();_G();a();OG=e($G(),1)});function tL(J){let G=FJ.c(44),{tool:Z,server:z,onBack:q}=J,[H,k]=vG.default.useState(""),W,D;if(G[0]!==z.name||G[1]!==Z){D=yG(Z.name,z.name);let s=Z.userFacingName?Z.userFacingName({}):D;W=IG(s),G[0]=z.name,G[1]=Z,G[2]=W,G[3]=D}else W=G[2],D=G[3];let I=W,U;if(G[4]!==Z)U=Z.isReadOnly?.({})??!1,G[4]=Z,G[5]=U;else U=G[5];let $=U,R;if(G[6]!==Z)R=Z.isDestructive?.({})??!1,G[6]=Z,G[7]=R;else R=G[7];let _=R,f;if(G[8]!==Z)f=Z.isOpenWorld?.({})??!1,G[8]=Z,G[9]=f;else f=G[9];let O=f,K,P;if(G[10]!==Z)K=()=>{(async function(){try{let B=await Z.description({},{isNonInteractiveSession:!1,toolPermissionContext:{mode:"default",additionalWorkingDirectories:new Map,alwaysAllowRules:{},alwaysDenyRules:{},alwaysAskRules:{},isBypassPermissionsModeAvailable:!1},tools:[]});k(B)}catch{k("Failed to load description")}})()},P=[Z],G[10]=Z,G[11]=K,G[12]=P;else K=G[11],P=G[12];vG.default.useEffect(K,P);let w;if(G[13]!==$)w=$&&L(Q,{color:"success",children:" [read-only]"}),G[13]=$,G[14]=w;else w=G[14];let N;if(G[15]!==_)N=_&&L(Q,{color:"error",children:" [destructive]"}),G[15]=_,G[16]=N;else N=G[16];let g;if(G[17]!==O)g=O&&L(Q,{dimColor:!0,children:" [open-world]"}),G[17]=O,G[18]=g;else g=G[18];let j;if(G[19]!==I||G[20]!==w||G[21]!==N||G[22]!==g)j=X(n,{children:[I,w,N,g]}),G[19]=I,G[20]=w,G[21]=N,G[22]=g,G[23]=j;else j=G[23];let c=j,T;if(G[24]===Symbol.for("react.memo_cache_sentinel"))T=L(Q,{bold:!0,children:"Tool name: "}),G[24]=T;else T=G[24];let A;if(G[25]!==D)A=X(Y,{children:[T,L(Q,{dimColor:!0,children:D})]}),G[25]=D,G[26]=A;else A=G[26];let y;if(G[27]===Symbol.for("react.memo_cache_sentinel"))y=L(Q,{bold:!0,children:"Full name: "}),G[27]=y;else y=G[27];let u;if(G[28]!==Z.name)u=X(Y,{children:[y,L(Q,{dimColor:!0,children:Z.name})]}),G[28]=Z.name,G[29]=u;else u=G[29];let i;if(G[30]!==H)i=H&&X(Y,{flexDirection:"column",marginTop:1,children:[L(Q,{bold:!0,children:"Description:"}),L(Q,{wrap:"wrap",children:H})]}),G[30]=H,G[31]=i;else i=G[31];let l;if(G[32]!==Z.inputJSONSchema)l=Z.inputJSONSchema&&Z.inputJSONSchema.properties&&Object.keys(Z.inputJSONSchema.properties).length>0&&X(Y,{flexDirection:"column",marginTop:1,children:[L(Q,{bold:!0,children:"Parameters:"}),L(Y,{marginLeft:2,flexDirection:"column",children:Object.entries(Z.inputJSONSchema.properties).map((s)=>{let[x,B]=s,XG=Z.inputJSONSchema?.required?.includes(x);return X(Q,{children:["• ",x,XG&&L(Q,{dimColor:!0,children:" (required)"}),":"," ",L(Q,{dimColor:!0,children:typeof B==="object"&&B&&"type"in B?String(B.type):"unknown"}),typeof B==="object"&&B&&"description"in B&&X(Q,{dimColor:!0,children:[" - ",String(B.description)]})]},x)})})]}),G[32]=Z.inputJSONSchema,G[33]=l;else l=G[33];let v;if(G[34]!==A||G[35]!==u||G[36]!==i||G[37]!==l)v=X(Y,{flexDirection:"column",children:[A,u,i,l]}),G[34]=A,G[35]=u,G[36]=i,G[37]=l,G[38]=v;else v=G[38];let o;if(G[39]!==q||G[40]!==z.name||G[41]!==v||G[42]!==c)o=L(BG,{title:c,subtitle:z.name,onCancel:q,inputGuide:uJ,children:v}),G[39]=q,G[40]=z.name,G[41]=v,G[42]=c,G[43]=o;else o=G[43];return o}function uJ(J){return J.pending?X(Q,{children:["Press ",J.keyName," again to exit"]}):L(p,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"go back"})}var FJ,vG;var iJ=GG(()=>{VG();KJ();MG();EJ();a();FJ=e(bG(),1),vG=e($G(),1)});function PQ(J){let G=kJ.c(21),{server:Z,onSelectTool:z,onBack:q}=J,H=LG(xJ),k;G:{if(Z.client.type!=="connected"){let P;if(G[0]===Symbol.for("react.memo_cache_sentinel"))P=[],G[0]=P;else P=G[0];k=P;break G}let K;if(G[1]!==H||G[2]!==Z.name)K=HJ(H,Z.name),G[1]=H,G[2]=Z.name,G[3]=K;else K=G[3];k=K}let W=k,D;if(G[4]!==Z.name||G[5]!==W){let K;if(G[7]!==Z.name)K=(P,w)=>{let N=yG(P.name,Z.name),g=P.userFacingName?P.userFacingName({}):N,j=IG(g),c=P.isReadOnly?.({})??!1,T=P.isDestructive?.({})??!1,A=P.isOpenWorld?.({})??!1,y=[];if(c)y.push("read-only");if(T)y.push("destructive");if(A)y.push("open-world");return{label:j,value:w.toString(),description:y.length>0?y.join(", "):void 0,descriptionColor:T?"error":c?"success":void 0}},G[7]=Z.name,G[8]=K;else K=G[8];D=W.map(K),G[4]=Z.name,G[5]=W,G[6]=D}else D=G[6];let I=D,U=`Tools for ${Z.name}`,$=W.length,R;if(G[9]!==W.length)R=zJ(W.length,"tool"),G[9]=W.length,G[10]=R;else R=G[10];let _=`${$} ${R}`,f;if(G[11]!==q||G[12]!==z||G[13]!==W||G[14]!==I)f=W.length===0?L(Q,{dimColor:!0,children:"No tools available"}):L(QG,{options:I,onChange:(K)=>{let P=parseInt(K),w=W[P];if(w)z(w,P)},onCancel:q}),G[11]=q,G[12]=z,G[13]=W,G[14]=I,G[15]=f;else f=G[15];let O;if(G[16]!==q||G[17]!==U||G[18]!==_||G[19]!==f)O=L(BG,{title:U,subtitle:_,onCancel:q,inputGuide:vJ,children:f}),G[16]=q,G[17]=U,G[18]=_,G[19]=f,G[20]=O;else O=G[20];return O}function vJ(J){return J.pending?X(Q,{children:["Press ",J.keyName," again to exit"]}):X(r,{children:[L(h,{shortcut:"↑↓",action:"navigate"}),L(h,{shortcut:"Enter",action:"select"}),L(p,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"back"})]})}function xJ(J){return J.mcp.tools}var kJ;var aJ=GG(()=>{VG();KJ();iG();cG();pG();MG();uG();WG();EJ();jG();a();kJ=e(bG(),1)});
|
|
2
|
-
export{OL as pf,$J as qf,iL as rf,cJ as sf,tL as tf,iJ as uf,PQ as vf,aJ as wf};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{$1 as d,F1 as k,H1 as y,N1 as MQ,W1 as _Q,X1 as aQ,g0 as u,k2 as a,s1 as QQ,t1 as uQ}from"./cli-1.1.24-vf59rwy3.mjs";import{I4 as K,J4 as l,K4 as m}from"./cli-1.1.24-9dnr05fm.mjs";import{L4 as v}from"./cli-1.1.24-ys3jea4v.mjs";import{$4 as n,b5 as t,g5 as YV}from"./cli-1.1.24-8zb03vbp.mjs";import{_8 as $Q,b9 as P,e9 as pQ,t9 as XV}from"./cli-1.1.24-dw6eynz7.mjs";import{Bha as CQ,Ffa as fQ,Ifa as x,Jha as VV,bfa as mQ,bga as QV,cfa as eQ}from"./cli-1.1.24-pe23qamd.mjs";import{Oha as IQ,Pha as sQ}from"./cli-1.1.24-bph6jjd7.mjs";import{Cka as r,Dka as nQ}from"./cli-1.1.24-7ae9t2qz.mjs";import{Hla as E,Kla as iQ}from"./cli-1.1.24-zey4mks2.mjs";import{gta as i,yta as tQ}from"./cli-1.1.24-zc49jxpp.mjs";import{Wta as T,_ta as F}from"./cli-1.1.24-hty94kzp.mjs";function XQ(){let X=VQ.useContext(QQ);if(!X)throw Error("useTerminalSize must be used within an Ink App component");return X}var VQ;var YQ=F(()=>{uQ();VQ=T(v(),1)});function ZQ(X,Q){if(Q.escape)return"escape";if(Q.return)return"enter";if(Q.tab)return"tab";if(Q.backspace)return"backspace";if(Q.delete)return"delete";if(Q.upArrow)return"up";if(Q.downArrow)return"down";if(Q.leftArrow)return"left";if(Q.rightArrow)return"right";if(Q.pageUp)return"pageup";if(Q.pageDown)return"pagedown";if(Q.wheelUp)return"wheelup";if(Q.wheelDown)return"wheeldown";if(Q.home)return"home";if(Q.end)return"end";if(X.length===1)return X.toLowerCase();return null}var GQ=()=>{};function JQ(X){let Q=X.split("+"),V={key:"",ctrl:!1,alt:!1,shift:!1,meta:!1,super:!1};for(let Z of Q){let Y=Z.toLowerCase();switch(Y){case"ctrl":case"control":V.ctrl=!0;break;case"alt":case"opt":case"option":V.alt=!0;break;case"shift":V.shift=!0;break;case"meta":V.meta=!0;break;case"cmd":case"command":case"super":case"win":V.super=!0;break;case"esc":V.key="escape";break;case"return":V.key="enter";break;case"space":V.key=" ";break;case"↑":V.key="up";break;case"↓":V.key="down";break;case"←":V.key="left";break;case"→":V.key="right";break;default:V.key=Y;break}}return V}function hQ(X){if(X===" ")return[JQ("space")];return X.trim().split(/\s+/).map(JQ)}function yQ(X){let Q=[];if(X.ctrl)Q.push("ctrl");if(X.alt)Q.push("alt");if(X.shift)Q.push("shift");if(X.meta)Q.push("meta");if(X.super)Q.push("cmd");let V=lQ(X.key);return Q.push(V),Q.join("+")}function lQ(X){switch(X){case"escape":return"Esc";case" ":return"Space";case"tab":return"tab";case"enter":return"Enter";case"backspace":return"Backspace";case"delete":return"Delete";case"up":return"↑";case"down":return"↓";case"left":return"←";case"right":return"→";case"pageup":return"PageUp";case"pagedown":return"PageDown";case"home":return"Home";case"end":return"End";default:return X}}function c(X){return X.map(yQ).join(" ")}function NV(X){let Q=[];for(let V of X)for(let[Z,Y]of Object.entries(V.bindings))Q.push({chord:hQ(Z),action:Y,context:V.context});return Q}var LQ=()=>{};function qQ(X,Q,V){let Z=V.findLast((Y)=>Y.action===X&&Y.context===Q);return Z?c(Z.chord):void 0}function kQ(X,Q){let V=ZQ(X,Q);if(!V)return null;let Z=Q.escape?!1:Q.meta;return{key:V,ctrl:Q.ctrl,alt:Z,shift:Q.shift,meta:Z,super:Q.super}}function HQ(X,Q){return X.key===Q.key&&X.ctrl===Q.ctrl&&X.shift===Q.shift&&(X.alt||X.meta)===(Q.alt||Q.meta)&&X.super===Q.super}function cQ(X,Q){if(X.length>=Q.chord.length)return!1;for(let V=0;V<X.length;V++){let Z=X[V],Y=Q.chord[V];if(!Z||!Y)return!1;if(!HQ(Z,Y))return!1}return!0}function gQ(X,Q){if(X.length!==Q.chord.length)return!1;for(let V=0;V<X.length;V++){let Z=X[V],Y=Q.chord[V];if(!Z||!Y)return!1;if(!HQ(Z,Y))return!1}return!0}function zQ(X,Q,V,Z,Y){if(Q.escape&&Y!==null)return{type:"chord_cancelled"};let G=kQ(X,Q);if(!G){if(Y!==null)return{type:"chord_cancelled"};return{type:"none"}}let J=Y?[...Y,G]:[G],L=new Set(V),N=Z.filter((q)=>L.has(q.context)),z=new Map;for(let q of N)if(q.chord.length>J.length&&cQ(J,q))z.set(c(q.chord),q.action);let B=!1;for(let q of z.values())if(q!==null){B=!0;break}if(B)return{type:"chord_started",pending:J};let H;for(let q of N)if(gQ(J,q))H=q;if(H){if(H.action===null)return{type:"unbound"};return{type:"match",action:H.action}}if(Y!==null)return{type:"chord_cancelled"};return{type:"none"}}var NQ=F(()=>{GQ();LQ()});function TV(X){let Q=g.c(24),{bindings:V,pendingChordRef:Z,pendingChord:Y,setPendingChord:G,activeContexts:J,registerActiveContext:L,unregisterActiveContext:N,handlerRegistryRef:z,children:B}=X,H;if(Q[0]!==V)H=(U,O)=>qQ(U,O,V),Q[0]=V,Q[1]=H;else H=Q[1];let q=H,w;if(Q[2]!==z)w=(U)=>{let O=z.current;if(!O)return dQ;if(!O.has(U.action))O.set(U.action,new Set);return O.get(U.action)?.add(U),()=>{let S=O.get(U.action);if(S){if(S.delete(U),S.size===0)O.delete(U.action)}}},Q[2]=z,Q[3]=w;else w=Q[3];let p=w,D;if(Q[4]!==J||Q[5]!==z)D=(U)=>{let O=z.current;if(!O)return!1;let S=O.get(U);if(!S||S.size===0)return!1;for(let e of S)if(J.has(e.context))return e.handler(),!0;return!1},Q[4]=J,Q[5]=z,Q[6]=D;else D=Q[6];let A=D,_;if(Q[7]!==V||Q[8]!==Z)_=(U,O,S)=>zQ(U,O,S,V,Z.current),Q[7]=V,Q[8]=Z,Q[9]=_;else _=Q[9];let I;if(Q[10]!==J||Q[11]!==V||Q[12]!==q||Q[13]!==A||Q[14]!==Y||Q[15]!==L||Q[16]!==p||Q[17]!==G||Q[18]!==_||Q[19]!==N)I={resolve:_,setPendingChord:G,getDisplayText:q,bindings:V,pendingChord:Y,activeContexts:J,registerActiveContext:L,unregisterActiveContext:N,registerHandler:p,invokeAction:A},Q[10]=J,Q[11]=V,Q[12]=q,Q[13]=A,Q[14]=Y,Q[15]=L,Q[16]=p,Q[17]=G,Q[18]=_,Q[19]=N,Q[20]=I;else I=Q[20];let j=I,W;if(Q[21]!==B||Q[22]!==j)W=K(BQ.Provider,{value:j,children:B}),Q[21]=B,Q[22]=j,Q[23]=W;else W=Q[23];return W}function dQ(){}function h(){return f.useContext(BQ)}function KV(X,Q){let V=g.c(5),Z=Q===void 0?!0:Q,Y=h(),G,J;if(V[0]!==X||V[1]!==Z||V[2]!==Y)G=()=>{if(!Y||!Z)return;return Y.registerActiveContext(X),()=>{Y.unregisterActiveContext(X)}},J=[X,Y,Z],V[0]=X,V[1]=Z,V[2]=Y,V[3]=G,V[4]=J;else G=V[3],J=V[4];f.useLayoutEffect(G,J)}var g,f,BQ;var UQ=F(()=>{NQ();m();g=T(u(),1),f=T(v(),1),BQ=f.createContext(null)});function RV(X,Q,V={}){let{context:Z="Global",isActive:Y=!0}=V,G=h();C.useEffect(()=>{if(!G||!Y)return;return G.registerHandler({action:X,context:Z,handler:Q})},[X,Z,Q,G,Y]);let J=C.useCallback((L,N,z)=>{if(!G)return;let B=[...G.activeContexts,Z,"Global"],H=[...new Set(B)],q=G.resolve(L,N,H);switch(q.type){case"match":if(G.setPendingChord(null),q.action===X){if(Q()!==!1)z.stopImmediatePropagation()}break;case"chord_started":G.setPendingChord(q.pending),z.stopImmediatePropagation();break;case"chord_cancelled":G.setPendingChord(null);break;case"unbound":G.setPendingChord(null),z.stopImmediatePropagation();break;case"none":break}},[X,Z,Q,G]);d(J,{isActive:Y})}function OQ(X,Q={}){let{context:V="Global",isActive:Z=!0}=Q,Y=h();C.useEffect(()=>{if(!Y||!Z)return;let J=[];for(let[L,N]of Object.entries(X))J.push(Y.registerHandler({action:L,context:V,handler:N}));return()=>{for(let L of J)L()}},[V,X,Y,Z]);let G=C.useCallback((J,L,N)=>{if(!Y)return;let z=[...Y.activeContexts,V,"Global"],B=[...new Set(z)],H=Y.resolve(J,L,B);switch(H.type){case"match":if(Y.setPendingChord(null),H.action in X){let q=X[H.action];if(q&&q()!==!1)N.stopImmediatePropagation()}break;case"chord_started":Y.setPendingChord(H.pending),N.stopImmediatePropagation();break;case"chord_cancelled":Y.setPendingChord(null);break;case"unbound":Y.setPendingChord(null),N.stopImmediatePropagation();break;case"none":break}},[V,X,Y]);d(G,{isActive:Z})}var C;var wQ=F(()=>{a();UQ();C=T(v(),1)});function o(X,Q,V){let Z=M.useRef(0),Y=M.useRef(void 0),G=M.useCallback(()=>{if(Y.current)clearTimeout(Y.current),Y.current=void 0},[]);return M.useEffect(()=>{return()=>{G()}},[G]),M.useCallback(()=>{let J=Date.now();if(J-Z.current<=FQ&&Y.current!==void 0)G(),X(!1),Q();else V?.(),X(!0),G(),Y.current=setTimeout((z,B)=>{z(!1),B.current=void 0},FQ,X,Y);Z.current=J},[X,Q,V,G])}var M,FQ=800;var WQ=F(()=>{M=T(v(),1)});function jQ(X,Q,V,Z=!0){let{exit:Y}=_Q(),[G,J]=R.useState({pending:!1,keyName:null}),L=R.useMemo(()=>V??Y,[V,Y]),N=o((w)=>J({pending:w,keyName:"Ctrl-C"}),L),z=o((w)=>J({pending:w,keyName:"Ctrl-D"}),L),B=R.useCallback(()=>{if(Q?.())return;N()},[N,Q]),H=R.useCallback(()=>{z()},[z]),q=R.useMemo(()=>({"app:interrupt":B,"app:exit":H}),[B,H]);return X(q,{context:"Global",isActive:Z}),G}var R;var TQ=F(()=>{aQ();WQ();R=T(v(),1)});function $V(X,Q,V){return jQ(OQ,Q,X,V)}var oQ=F(()=>{wQ();TQ()});function SQ(){return $.useContext(s)!==null}function bV(X){let Q=KQ.c(3),V=$.useContext(s),Z;if(Q[0]!==V||Q[1]!==X)Z=V?{rows:V.rows,columns:V.columns}:X,Q[0]=V,Q[1]=X,Q[2]=Z;else Z=Q[2];return Z}function xV(){return $.useContext(s)?.scrollRef??null}var KQ,$,s;var AQ=F(()=>{KQ=T(u(),1),$=T(v(),1),s=$.createContext(null)});function DQ(X){let Q=RQ.c(21),{width:V,color:Z,char:Y,padding:G,title:J}=X,L=Y===void 0?"─":Y,N=G===void 0?0:G,{columns:z}=XQ(),B=Math.max(0,(V??z)-N);if(J){let p=IQ(J)+2,D=Math.max(0,B-p),A=Math.floor(D/2),_=D-A,I=!Z,j;if(Q[0]!==L||Q[1]!==A)j=L.repeat(A),Q[0]=L,Q[1]=A,Q[2]=j;else j=Q[2];let W;if(Q[3]!==J)W=K(y,{dimColor:!0,children:K(MQ,{children:J})}),Q[3]=J,Q[4]=W;else W=Q[4];let U;if(Q[5]!==L||Q[6]!==_)U=L.repeat(_),Q[5]=L,Q[6]=_,Q[7]=U;else U=Q[7];let O;if(Q[8]!==Z||Q[9]!==I||Q[10]!==j||Q[11]!==W||Q[12]!==U)O=l(y,{color:Z,dimColor:I,children:[j," ",W," ",U]}),Q[8]=Z,Q[9]=I,Q[10]=j,Q[11]=W,Q[12]=U,Q[13]=O;else O=Q[13];return O}let H=!Z,q;if(Q[14]!==L||Q[15]!==B)q=L.repeat(B),Q[14]=L,Q[15]=B,Q[16]=q;else q=Q[16];let w;if(Q[17]!==Z||Q[18]!==H||Q[19]!==q)w=K(y,{color:Z,dimColor:H,children:q}),Q[17]=Z,Q[18]=H,Q[19]=q,Q[20]=w;else w=Q[20];return w}var RQ;var EQ=F(()=>{YQ();sQ();a();m();RQ=T(u(),1)});function oV(X){let Q=PQ.c(9),{children:V,color:Z}=X;if(SQ()){let L;if(Q[0]!==V)L=K(k,{flexDirection:"column",paddingX:1,flexShrink:0,children:V}),Q[0]=V,Q[1]=L;else L=Q[1];return L}let Y;if(Q[2]!==Z)Y=K(DQ,{color:Z}),Q[2]=Z,Q[3]=Y;else Y=Q[3];let G;if(Q[4]!==V)G=K(k,{flexDirection:"column",paddingX:2,children:V}),Q[4]=V,Q[5]=G;else G=Q[5];let J;if(Q[6]!==Y||Q[7]!==G)J=l(k,{flexDirection:"column",paddingTop:1,children:[Y,G]}),Q[6]=Y,Q[7]=G,Q[8]=J;else J=Q[8];return J}var PQ;var rQ=F(()=>{AQ();a();EQ();m();PQ=T(u(),1)});async function ZV(X="claude_code_guest_pass"){let{accessToken:Q,orgUUID:V}=await n(),Z={...t(Q),"x-organization-uuid":V},Y=`${r().BASE_API_URL}/api/oauth/organizations/${V}/referral/eligibility`;return(await i.get(Y,{headers:Z,params:{campaign:X},timeout:5000})).data}async function ZX(X="claude_code_guest_pass"){let{accessToken:Q,orgUUID:V}=await n(),Z={...t(Q),"x-organization-uuid":V},Y=`${r().BASE_API_URL}/api/oauth/organizations/${V}/referral/redemptions`;return(await i.get(Y,{headers:Z,params:{campaign:X},timeout:1e4})).data}function xQ(){return!!(P()?.organizationUuid&&$Q()&&pQ()==="max")}function GX(){if(!xQ())return{eligible:!1,needsRefresh:!1,hasCache:!1};let X=P()?.organizationUuid;if(!X)return{eligible:!1,needsRefresh:!1,hasCache:!1};let V=x().passesEligibilityCache?.[X];if(!V)return{eligible:!1,needsRefresh:!0,hasCache:!1};let{eligible:Z,timestamp:Y}=V,J=Date.now()-Y>bQ;return{eligible:Z,needsRefresh:J,hasCache:!0}}function JX(X){let Q=GV[X.currency]??`${X.currency} `,V=X.amount_minor_units/100,Z=V%1===0?V.toString():V.toFixed(2);return`${Q}${Z}`}function LX(){let X=P()?.organizationUuid;if(!X)return null;return x().passesEligibilityCache?.[X]?.referrer_reward??null}function qX(){let X=P()?.organizationUuid;if(!X)return null;return x().passesEligibilityCache?.[X]?.remaining_passes??null}async function vQ(){if(b)return E("Passes: Reusing in-flight eligibility fetch"),b;let X=P()?.organizationUuid;if(!X)return null;return b=(async()=>{try{let Q=await ZV(),V={...Q,timestamp:Date.now()};return fQ((Z)=>({...Z,passesEligibilityCache:{...Z.passesEligibilityCache,[X]:V}})),E(`Passes eligibility cached for org ${X}: ${Q.eligible}`),Q}catch(Q){return E("Failed to fetch and cache passes eligibility"),CQ(Q),null}finally{b=null}})(),b}async function JV(){if(!xQ())return null;let X=P()?.organizationUuid;if(!X)return null;let V=x().passesEligibilityCache?.[X],Z=Date.now();if(!V)return E("Passes: No cache, fetching eligibility in background (command unavailable this session)"),vQ(),null;if(Z-V.timestamp>bQ){E("Passes: Cache stale, returning cached data and refreshing in background"),vQ();let{timestamp:J,...L}=V;return L}E("Passes: Using fresh cached eligibility data");let{timestamp:Y,...G}=V;return G}async function HX(){if(mQ())return;JV()}var bQ=86400000,b=null,GV;var LV=F(()=>{tQ();nQ();XV();QV();iQ();VV();eQ();YV();GV={USD:"$",EUR:"€",GBP:"£",BRL:"R$",CAD:"CA$",AUD:"A$",NZD:"NZ$",SGD:"S$"}});
|
|
2
|
-
export{XQ as SY,YQ as TY,JQ as UY,hQ as VY,c as WY,NV as XY,LQ as YY,qQ as ZY,zQ as _Y,NQ as $Y,TV as aZ,h as bZ,KV as cZ,UQ as dZ,RV as eZ,OQ as fZ,wQ as gZ,o as hZ,WQ as iZ,$V as jZ,oQ as kZ,s as lZ,SQ as mZ,bV as nZ,xV as oZ,AQ as pZ,DQ as qZ,EQ as rZ,oV as sZ,rQ as tZ,ZX as uZ,GX as vZ,JX as wZ,LX as xZ,qX as yZ,JV as zZ,HX as AZ,LV as BZ};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{b5 as N,g5 as $}from"./cli-1.1.24-8zb03vbp.mjs";import{$5 as L,V8 as M,c6 as Y,t9 as Z}from"./cli-1.1.24-dw6eynz7.mjs";import{Bha as Q,Jha as X}from"./cli-1.1.24-pe23qamd.mjs";import{Cka as J,Dka as V}from"./cli-1.1.24-7ae9t2qz.mjs";import{ema as P,mma as S}from"./cli-1.1.24-eh4c00hd.mjs";import{gta as K,yta as W}from"./cli-1.1.24-zc49jxpp.mjs";import{_ta as R}from"./cli-1.1.24-hty94kzp.mjs";async function f(){let F=M()?.accessToken;if(!F)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 y=await L();if(!y)throw Error("Unable to get organization UUID");let G=`${J().BASE_API_URL}/v1/environment_providers`;try{let B={...N(F),"x-organization-uuid":y},q=await K.get(G,{headers:B,timeout:15000});if(q.status!==200)throw Error(`Failed to fetch environments: ${q.status} ${q.statusText}`);return q.data.environments}catch(B){let q=P(B);throw Q(q),Error(`Failed to fetch environments: ${q.message}`)}}async function j(F){let y=M()?.accessToken;if(!y)throw Error("No access token available");let G=await L();if(!G)throw Error("Unable to get organization UUID");let B=`${J().BASE_API_URL}/v1/environment_providers/cloud/create`;return(await K.post(B,{name:F,kind:"anthropic_cloud",description:"",config:{environment_type:"anthropic",cwd:"/home/user",init_script:null,environment:{},languages:[{name:"python",version:"3.11"},{name:"node",version:"20"}],network_config:{allowed_hosts:[],allow_default_hosts:!0}}},{headers:{...N(y),"anthropic-beta":"ccr-byoc-2025-07-29","x-organization-uuid":G},timeout:15000})).data}var b=R(()=>{W();V();Y();Z();S();X();$()});
|
|
2
|
-
export{f as rY,j as sY,b as tY};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{MI as U,NI as w}from"./cli-1.1.24-2qkkzsk3.mjs";import{F1 as N,H1 as O,g0 as f,k2 as k}from"./cli-1.1.24-vf59rwy3.mjs";import{I4 as M,J4 as H,K4 as R}from"./cli-1.1.24-9dnr05fm.mjs";import{Wta as Y,_ta as Z}from"./cli-1.1.24-hty94kzp.mjs";function _(X){let q=V.c(10),{message:I,bold:P,dimColor:Q,subtitle:D}=X,J=P===void 0?!1:P,K=Q===void 0?!1:Q,E;if(q[0]===Symbol.for("react.memo_cache_sentinel"))E=M(U,{}),q[0]=E;else E=q[0];let v;if(q[1]!==J||q[2]!==K||q[3]!==I)v=H(N,{flexDirection:"row",children:[E,H(O,{bold:J,dimColor:K,children:[" ",I]})]}),q[1]=J,q[2]=K,q[3]=I,q[4]=v;else v=q[4];let z;if(q[5]!==D)z=D&&M(O,{dimColor:!0,children:D}),q[5]=D,q[6]=z;else z=q[6];let G;if(q[7]!==v||q[8]!==z)G=H(N,{flexDirection:"column",children:[v,z]}),q[7]=v,q[8]=z,q[9]=G;else G=q[9];return G}var V;var A=Z(()=>{k();w();R();V=Y(f(),1)});
|
|
2
|
-
export{_ as ah,A as bh};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{Bha as C,Jha as J,r$ as z,t$ as H}from"./cli-1.1.24-pe23qamd.mjs";H();J();var K=/https:\/\/[^\s]+\/pull\/\d+/;function M(q){try{let k=JSON.parse(q);if(!Array.isArray(k))return[];return k.filter((v)=>typeof v==="object"&&v!==null&&typeof v.number==="number")}catch(k){return C(`failed to parse gh issue list output: ${k instanceof Error?k.message:String(k)}`),[]}}function O(q){let k=q.trim(),v=k.lastIndexOf("/");return v===-1?k||"main":k.slice(v+1)||"main"}function Q(q){let k=q.match(K);if(k)return k[0];let v=q.trim();return/^https?:\/\/\S+$/.test(v)?v:null}async function W(q){let{stdout:k,code:v,error:A}=await z("gh",["issue","list","--label",q,"--state","open","--json","number,title,body,updatedAt"]);if(v!==0){if(A)C(`gh issue list failed: ${A}`);return[]}return M(k)}async function X(){let{stdout:q,code:k}=await z("git",["rev-parse","--abbrev-ref","origin/HEAD"]);if(k!==0)return"main";return O(q)}async function Y(){let{stdout:q,code:k}=await z("git",["status","--porcelain"]);if(k!==0)return!1;return q.trim().length>0}async function Z(q){let k=await z("git",["add","-A"]);if(k.code!==0)return C(`git add failed: ${k.error??k.stderr}`),!1;let v=await z("git",["commit","-m",q]);if(v.code!==0)return C(`git commit failed: ${v.error??v.stderr}`),!1;return!0}async function $(q){let{code:k,stderr:v,error:A}=await z("git",["push","-u","origin",q]);if(k!==0)return C(`git push failed: ${A??v}`),!1;return!0}async function B(q){let{stdout:k,code:v,stderr:A,error:G}=await z("gh",["pr","create","--base",q.base,"--head",q.head,"--title",q.title,"--body-file",q.bodyFile]);if(v!==0)return C(`gh pr create failed: ${G??A}`),null;return Q(k)}async function D(q,k){let{code:v,stderr:A,error:G}=await z("gh",["issue","comment",String(q),"--body",k]);if(v!==0)return C(`gh issue comment failed: ${G??A}`),!1;return!0}
|
|
2
|
-
export{W as a,X as b,Y as c,Z as d,$ as e,B as f,D as g};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{_ta as s}from"./cli-1.1.24-hty94kzp.mjs";function c(){return"claude-code/99.0.0"}function i(){let e=process.env.CLAUDE_CODE_ENTRYPOINT??"cli",n=process.env.CLAUDE_AGENT_SDK_VERSION?`, agent-sdk/${process.env.CLAUDE_AGENT_SDK_VERSION}`:"",t=process.env.CLAUDE_AGENT_SDK_CLIENT_APP?`, client-app/${process.env.CLAUDE_AGENT_SDK_CLIENT_APP}`:"";return`claudin/1.1.24 (${e}${n}${t})`}var r=()=>{};
|
|
2
|
-
export{c as V4,i as W4,r as X4};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{$p as i,Wo as j,Xo as m,Yo as Xq,Yp as l,_p as Rq,bq as Aq,rp as D,wp as Zq}from"./cli-1.1.24-2qkkzsk3.mjs";import{Bha as L,Jha as Qq,kda as u,mda as g,pda as h,qda as n,vda as vq}from"./cli-1.1.24-pe23qamd.mjs";import{Jja as d,Lja as Uq}from"./cli-1.1.24-zjc9nfba.mjs";import{Hla as V,Kla as e,kla as P,lla as v,pla as f,tla as M,xla as y}from"./cli-1.1.24-zey4mks2.mjs";import{fma as W,gma as O,hma as C,mma as N}from"./cli-1.1.24-eh4c00hd.mjs";import{gta as p,yta as qq}from"./cli-1.1.24-zc49jxpp.mjs";import{_ta as E}from"./cli-1.1.24-hty94kzp.mjs";import{homedir as a}from"os";import{resolve as t}from"path";async function Fq(Z){let q=Z.trim(),$=M(),Q=q.match(/^([a-zA-Z0-9._-]+@[^:]+:.+?(?:\.git)?)(#(.+))?$/);if(Q?.[1]){let z=Q[1],G=Q[3];return G?{source:"git",url:z,ref:G}:{source:"git",url:z}}if(q.startsWith("http://")||q.startsWith("https://")){let z=q.match(/^([^#]+)(#(.+))?$/),G=z?.[1]||q,X=z?.[3];if(G.endsWith(".git")||G.includes("/_git/"))return X?{source:"git",url:G,ref:X}:{source:"git",url:G};let Y;try{Y=new URL(G)}catch(x){return{source:"url",url:G}}if(Y.hostname==="github.com"||Y.hostname==="www.github.com"){if(Y.pathname.match(/^\/([^/]+\/[^/]+?)(\/|\.git|$)/)?.[1]){let J=G.endsWith(".git")?G:`${G}.git`;return X?{source:"git",url:J,ref:X}:{source:"git",url:J}}}return{source:"url",url:G}}let K=process.platform==="win32"&&(q.startsWith(".\\")||q.startsWith("..\\")||/^[a-zA-Z]:[/\\]/.test(q));if(q.startsWith("./")||q.startsWith("../")||q.startsWith("/")||q.startsWith("~")||K){let z=t(q.startsWith("~")?q.replace(/^~/,a()):q),G;try{G=await $.stat(z)}catch(X){let Y=O(X);return{error:Y==="ENOENT"?`Path does not exist: ${z}`:`Cannot access path: ${z} (${Y??X})`}}if(G.isFile())if(z.endsWith(".json"))return{source:"file",path:z};else return{error:`File path must point to a .json file (marketplace.json), but got: ${z}`};else if(G.isDirectory())return{source:"directory",path:z};else return{error:`Path is neither a file nor a directory: ${z}`}}if(q.includes("/")&&!q.startsWith("@")){if(q.includes(":"))return null;let z=q.match(/^([^#@]+)(?:[#@](.+))?$/),G=z?.[1]||q,X=z?.[2];return X?{source:"github",repo:G,ref:X}:{source:"github",repo:G}}return null}var r=E(()=>{N();y()});import{randomBytes as $q}from"crypto";import{readFile as Bq,rename as Gq,unlink as Yq,writeFile as xq}from"fs/promises";import{join as Jq}from"path";function c(){return Jq(D(),Kq)}async function Hq(){let Z=c();try{let q=await Bq(Z,{encoding:"utf-8"}),$=v(q);if(typeof $!=="object"||$===null||!("version"in $)||!("fetchedAt"in $)||!("counts"in $))return V("Install counts cache has invalid structure"),null;let Q=$;if(Q.version!==_)return V(`Install counts cache version mismatch (got ${Q.version}, expected ${_})`),null;if(typeof Q.fetchedAt!=="string"||!Array.isArray(Q.counts))return V("Install counts cache has invalid structure"),null;let B=new Date(Q.fetchedAt).getTime();if(Number.isNaN(B))return V("Install counts cache has invalid fetchedAt timestamp"),null;if(!Q.counts.every((G)=>typeof G==="object"&&G!==null&&typeof G.plugin==="string"&&typeof G.unique_installs==="number"))return V("Install counts cache has malformed entries"),null;if(Date.now()-B>zq)return V("Install counts cache is stale (>24h old)"),null;return{version:Q.version,fetchedAt:Q.fetchedAt,counts:Q.counts}}catch(q){if(O(q)!=="ENOENT")V(`Failed to load install counts cache: ${W(q)}`);return null}}async function Vq(Z){let q=c(),$=`${q}.${$q(8).toString("hex")}.tmp`;try{let Q=D();await M().mkdir(Q);let B=P(Z,null,2);await xq($,B,{encoding:"utf-8",mode:384}),await Gq($,q),V("Install counts cache saved successfully")}catch(Q){L(Q);try{await Yq($)}catch{}}}async function Wq(){V(`Fetching install counts from ${w}`);let Z=performance.now();try{let q=await p.get(w,{timeout:1e4});if(!q.data?.plugins||!Array.isArray(q.data.plugins))throw Error("Invalid response format from install counts API");return j("install_counts",w,"success",performance.now()-Z),q.data.plugins}catch(q){throw j("install_counts",w,"failure",performance.now()-Z,m(q)),q}}async function nq(){let Z=await Hq();if(Z){V("Using cached install counts"),j("install_counts",w,"cache_hit",0);let q=new Map;for(let $ of Z.counts)q.set($.plugin,$.unique_installs);return q}try{let q=await Wq(),$={version:_,fetchedAt:new Date().toISOString(),counts:q};await Vq($);let Q=new Map;for(let B of q)Q.set(B.plugin,B.unique_installs);return Q}catch(q){return L(q),V(`Failed to fetch install counts: ${W(q)}`),null}}function lq(Z){if(Z<1000)return String(Z);if(Z<1e6){let B=(Z/1000).toFixed(1);return B.endsWith(".0")?`${B.slice(0,-2)}K`:`${B}K`}let $=(Z/1e6).toFixed(1);return $.endsWith(".0")?`${$.slice(0,-2)}M`:`${$}M`}var _=1,Kq="install-counts-cache.json",w="https://raw.githubusercontent.com/anthropics/claude-plugins-official/refs/heads/stats/stats/plugin-installs.json",zq=86400000;var Oq=E(()=>{qq();e();N();y();Qq();f();Xq();Zq()});import{readdir as wq,readFile as A,stat as Iq}from"fs/promises";import*as H from"path";function jq(Z){let q=H.basename(Z),$=H.basename(H.dirname(Z));if(q==="plugin.json")return"plugin";if(q==="marketplace.json")return"marketplace";if($===".claude-plugin")return"plugin";return"unknown"}function F(Z){return Z.issues.map((q)=>({path:q.path.join(".")||"root",message:q.message,code:q.code}))}function I(Z,q,$,Q){if(Z.includes(".."))$.push({path:q,message:Q?`Path contains "..": ${Z}. ${Q}`:`Path contains ".." which could be a path traversal attempt: ${Z}`})}function Eq(Z){let q=Z.replace(/^(\.\.\/)+/,"");return`Plugin source paths are resolved relative to the marketplace root (the directory containing .claude-plugin/), not relative to marketplace.json. Use "${q!==Z?`./${q}`:"./plugins/my-plugin"}" instead of "${Z}".`}async function S(Z){let q=[],$=[],Q=H.resolve(Z),B;try{B=await A(Q,{encoding:"utf-8"})}catch(X){let Y=O(X),x;if(Y==="ENOENT")x=`File not found: ${Q}`;else if(Y==="EISDIR")x=`Path is not a file: ${Q}`;else x=`Failed to read file: ${W(X)}`;return{success:!1,errors:[{path:"file",message:x,code:Y}],warnings:[],filePath:Q,fileType:"plugin"}}let K;try{K=v(B)}catch(X){return{success:!1,errors:[{path:"json",message:`Invalid JSON syntax: ${W(X)}`}],warnings:[],filePath:Q,fileType:"plugin"}}if(K&&typeof K==="object"){let X=K;if(X.commands)(Array.isArray(X.commands)?X.commands:[X.commands]).forEach((x,J)=>{if(typeof x==="string")I(x,`commands[${J}]`,q)});if(X.agents)(Array.isArray(X.agents)?X.agents:[X.agents]).forEach((x,J)=>{if(typeof x==="string")I(x,`agents[${J}]`,q)});if(X.skills)(Array.isArray(X.skills)?X.skills:[X.skills]).forEach((x,J)=>{if(typeof x==="string")I(x,`skills[${J}]`,q)})}let z=K;if(typeof K==="object"&&K!==null){let X=K,Y=Object.keys(X).filter((x)=>Mq.has(x));if(Y.length>0){let x={...X};for(let J of Y)delete x[J],$.push({path:J,message:`Field '${J}' belongs in the marketplace entry (marketplace.json), `+"not plugin.json. It's harmless here but unused — Claudin "+"ignores it at load time."});z=x}}let G=g().strict().safeParse(z);if(!G.success)q.push(...F(G.error));if(G.success){let X=G.data;if(!/^[a-z0-9]+(-[a-z0-9]+)*$/.test(X.name))$.push({path:"name",message:`Plugin name "${X.name}" is not kebab-case. Claudin accepts it, but the Claude.ai marketplace sync requires kebab-case (lowercase letters, digits, and hyphens only, e.g., "my-plugin").`});if(!X.version)$.push({path:"version",message:'No version specified. Consider adding a version following semver (e.g., "1.0.0")'});if(!X.description)$.push({path:"description",message:"No description provided. Adding a description helps users understand what your plugin does"});if(!X.author)$.push({path:"author",message:"No author information provided. Consider adding author details for plugin attribution"})}return{success:q.length===0,errors:q,warnings:$,filePath:Q,fileType:"plugin"}}async function k(Z){let q=[],$=[],Q=H.resolve(Z),B;try{B=await A(Q,{encoding:"utf-8"})}catch(X){let Y=O(X),x;if(Y==="ENOENT")x=`File not found: ${Q}`;else if(Y==="EISDIR")x=`Path is not a file: ${Q}`;else x=`Failed to read file: ${W(X)}`;return{success:!1,errors:[{path:"file",message:x,code:Y}],warnings:[],filePath:Q,fileType:"marketplace"}}let K;try{K=v(B)}catch(X){return{success:!1,errors:[{path:"json",message:`Invalid JSON syntax: ${W(X)}`}],warnings:[],filePath:Q,fileType:"marketplace"}}if(K&&typeof K==="object"){let X=K;if(Array.isArray(X.plugins))X.plugins.forEach((Y,x)=>{if(Y&&typeof Y==="object"&&"source"in Y){let J=Y.source;if(typeof J==="string")I(J,`plugins[${x}].source`,q,Eq(J));if(J&&typeof J==="object"&&"path"in J&&typeof J.path==="string")I(J.path,`plugins[${x}].source.path`,q)}})}let G=n().extend({plugins:d.array(h().strict())}).strict().safeParse(K);if(!G.success)q.push(...F(G.error));if(G.success){let X=G.data;if(!X.plugins||X.plugins.length===0)$.push({path:"plugins",message:"Marketplace has no plugins defined"});if(X.plugins){X.plugins.forEach((J,U)=>{if(X.plugins.filter((R)=>R.name===J.name).length>1)q.push({path:`plugins[${U}].name`,message:`Duplicate plugin name "${J.name}" found in marketplace`})});let Y=H.dirname(Q),x=H.basename(Y)===".claude-plugin"?H.dirname(Y):Y;for(let[J,U]of X.plugins.entries()){if(!U.version||typeof U.source!=="string"||!U.source.startsWith("./"))continue;let T=H.join(x,U.source,".claude-plugin","plugin.json"),R;try{let s=await A(T,{encoding:"utf-8"}),b=v(s);if(typeof b.version==="string")R=b.version}catch{continue}if(R&&R!==U.version)$.push({path:`plugins[${J}].version`,message:`Entry declares version "${U.version}" but ${U.source}/.claude-plugin/plugin.json says "${R}". `+"At install time, plugin.json wins (calculatePluginVersion precedence) — the entry version is silently ignored. "+`Update this entry to "${R}" to match.`})}}if(!X.metadata?.description)$.push({path:"metadata.description",message:"No marketplace description provided. Adding a description helps users understand what this marketplace offers"})}return{success:q.length===0,errors:q,warnings:$,filePath:Q,fileType:"marketplace"}}function Nq(Z,q,$){let Q=[],B=[],K=q.match(i);if(!K)return B.push({path:"frontmatter",message:"No frontmatter block found. Add YAML frontmatter between --- delimiters at the top of the file to set description and other metadata."}),{success:!0,errors:Q,warnings:B,filePath:Z,fileType:$};let z=K[1]||"",G;try{G=l(z)}catch(J){return Q.push({path:"frontmatter",message:`YAML frontmatter failed to parse: ${W(J)}. At runtime this ${$} loads with empty metadata (all frontmatter fields silently dropped).`}),{success:!1,errors:Q,warnings:B,filePath:Z,fileType:$}}if(G===null||typeof G!=="object"||Array.isArray(G))return Q.push({path:"frontmatter",message:`Frontmatter must be a YAML mapping (key: value pairs), got ${Array.isArray(G)?"an array":G===null?"null":typeof G}.`}),{success:!1,errors:Q,warnings:B,filePath:Z,fileType:$};let X=G;if(X.description!==void 0){let J=X.description;if(typeof J!=="string"&&typeof J!=="number"&&typeof J!=="boolean"&&J!==null)Q.push({path:"description",message:`description must be a string, got ${Array.isArray(J)?"array":typeof J}. At runtime this value is dropped.`})}else B.push({path:"description",message:`No description in frontmatter. A description helps users and Claude understand when to use this ${$}.`});if(X.name!==void 0&&X.name!==null&&typeof X.name!=="string")Q.push({path:"name",message:`name must be a string, got ${typeof X.name}.`});let Y=X["allowed-tools"];if(Y!==void 0&&Y!==null){if(typeof Y!=="string"&&!Array.isArray(Y))Q.push({path:"allowed-tools",message:`allowed-tools must be a string or array of strings, got ${typeof Y}.`});else if(Array.isArray(Y)&&Y.some((J)=>typeof J!=="string"))Q.push({path:"allowed-tools",message:"allowed-tools array must contain only strings."})}let x=X.shell;if(x!==void 0&&x!==null)if(typeof x!=="string")Q.push({path:"shell",message:`shell must be a string, got ${typeof x}.`});else{let J=x.trim().toLowerCase();if(J!=="bash"&&J!=="powershell")Q.push({path:"shell",message:`shell must be 'bash' or 'powershell', got '${x}'.`})}return{success:Q.length===0,errors:Q,warnings:B,filePath:Z,fileType:$}}async function _q(Z){let q;try{q=await A(Z,{encoding:"utf-8"})}catch(B){if(O(B)==="ENOENT")return{success:!0,errors:[],warnings:[],filePath:Z,fileType:"hooks"};return{success:!1,errors:[{path:"file",message:`Failed to read file: ${W(B)}`}],warnings:[],filePath:Z,fileType:"hooks"}}let $;try{$=v(q)}catch(B){return{success:!1,errors:[{path:"json",message:`Invalid JSON syntax: ${W(B)}. At runtime this breaks the entire plugin load.`}],warnings:[],filePath:Z,fileType:"hooks"}}let Q=u().safeParse($);if(!Q.success)return{success:!1,errors:F(Q.error),warnings:[],filePath:Z,fileType:"hooks"};return{success:!0,errors:[],warnings:[],filePath:Z,fileType:"hooks"}}async function o(Z,q){let $;try{$=await wq(Z,{withFileTypes:!0})}catch(B){let K=O(B);if(K==="ENOENT"||K==="ENOTDIR")return[];throw B}if(q)return $.filter((B)=>B.isDirectory()).map((B)=>H.join(Z,B.name,"SKILL.md"));let Q=[];for(let B of $){let K=H.join(Z,B.name);if(B.isDirectory())Q.push(...await o(K,!1));else if(B.isFile()&&B.name.toLowerCase().endsWith(".md"))Q.push(K)}return Q}async function QQ(Z){let q=[],$=[["skill",H.join(Z,"skills")],["agent",H.join(Z,"agents")],["command",H.join(Z,"commands")]];for(let[B,K]of $){let z=await o(K,B==="skill");for(let G of z){let X;try{X=await A(G,{encoding:"utf-8"})}catch(x){if(C(x))continue;q.push({success:!1,errors:[{path:"file",message:`Failed to read: ${W(x)}`}],warnings:[],filePath:G,fileType:B});continue}let Y=Nq(G,X,B);if(Y.errors.length>0||Y.warnings.length>0)q.push(Y)}}let Q=await _q(H.join(Z,"hooks","hooks.json"));if(Q.errors.length>0||Q.warnings.length>0)q.push(Q);return q}async function XQ(Z){let q=H.resolve(Z),$=null;try{$=await Iq(q)}catch(B){if(!C(B))throw B}if($?.isDirectory()){let B=H.join(q,".claude-plugin","marketplace.json"),K=await k(B);if(K.errors[0]?.code!=="ENOENT")return K;let z=H.join(q,".claude-plugin","plugin.json"),G=await S(z);if(G.errors[0]?.code!=="ENOENT")return G;return{success:!1,errors:[{path:"directory",message:"No manifest found in directory. Expected .claude-plugin/marketplace.json or .claude-plugin/plugin.json"}],warnings:[],filePath:q,fileType:"plugin"}}switch(jq(Z)){case"plugin":return S(Z);case"marketplace":return k(Z);case"unknown":{try{let B=await A(q,{encoding:"utf-8"}),K=v(B);if(Array.isArray(K.plugins))return k(Z)}catch(B){if(O(B)==="ENOENT")return{success:!1,errors:[{path:"file",message:`File not found: ${q}`}],warnings:[],filePath:q,fileType:"plugin"}}return S(Z)}}}var Mq;var Lq=E(()=>{Uq();N();Aq();f();Rq();vq();Mq=new Set(["category","source","tags","strict","id"])});
|
|
2
|
-
export{Fq as nc,r as oc,nq as pc,lq as qc,Oq as rc,QQ as sc,XQ as tc,Lq as uc};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{b9 as Z,e9 as T,k9 as f,t9 as WB}from"./cli-1.1.24-dw6eynz7.mjs";import{Ifa as A,Ufa as v,bga as QB,e$ as O,f$ as BB,oca as _,pca as KB}from"./cli-1.1.24-pe23qamd.mjs";import{Qja as w,Sja as JB}from"./cli-1.1.24-n7r6kv9g.mjs";import{Ama as e,sma as F}from"./cli-1.1.24-8s7nf1y6.mjs";import{Dna as M,Ena as m,Nma as S,Oma as s,dsa as a,eoa as R,rna as I,sna as i}from"./cli-1.1.24-bnm1yphs.mjs";import{Csa as q,Dsa as t}from"./cli-1.1.24-yz5bzn1k.mjs";import{_ta as K}from"./cli-1.1.24-hty94kzp.mjs";function u(B,J){return B+b(h()*(J-B+1))}var b,h,D;var G=K(()=>{b=Math.floor,h=Math.random;D=u});function p(B){var J=B.length;return J?B[D(0,J-1)]:void 0}var Y;var H=K(()=>{G();Y=p});function l(B,J){return M(J,function(X){return B[X]})}var z;var P=K(()=>{m();z=l});function c(B){return B==null?[]:z(B,I(B))}var U;var C=K(()=>{P();i();U=c});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,g.cache.clear?.()}function TB(){W=null,Q=null,g.cache.clear?.(),j.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 j()}var W=null,Q=null,g,j;var ZB=K(()=>{BB();t();a();WB();QB();JB();KB();e();g=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(),d=V?.organizationUuid,y=V?.accountUuid;return{deviceId:J,sessionId:R(),email:XB(),appVersion:"99.0.0",platform:_(),organizationUuid:d,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}}}});j=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 zV,r as AV,vB as BV,TB as CV,j as DV,ZB as EV};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{C5 as x,H5 as G,I5 as V,V8 as m,t9 as X,w8 as W}from"./cli-1.1.24-dw6eynz7.mjs";import{Qaa as J,Raa as z,Uaa as Y,bfa as w,cfa as B}from"./cli-1.1.24-pe23qamd.mjs";import{Dka as M,vka as Z}from"./cli-1.1.24-7ae9t2qz.mjs";import{_ta as j}from"./cli-1.1.24-hty94kzp.mjs";function D(){q=void 0,J()}function L(){if(q!==void 0)return q;if(x()!=="firstParty")return q=z(!1);if(!G())return q=z(!1);if(w())return q=z(!1);if(process.env.CLAUDE_CODE_ENTRYPOINT==="local-agent")return q=z(!1);let Q=m();if(Q?.accessToken&&Q.subscriptionType===null)return q=z(!0);if(Q?.accessToken&&Q.scopes?.includes(Z)&&(Q.subscriptionType==="enterprise"||Q.subscriptionType==="team"))return q=z(!0);try{let{key:$}=W({skipRetrievingKeyFromApiKeyHelper:!0});if($)return q=z(!0)}catch{}return q=z(!1)}var q;var f=j(()=>{M();X();V();B();Y()});function g(Q){let $=Q.toUpperCase();return k.has($)||v.some((F)=>$.startsWith(F))}var k,v,S,I;var K=j(()=>{k=new Set(["CLAUDE_CODE_PROVIDER_MANAGED_BY_HOST","CLAUDIN_USE_BEDROCK","CLAUDIN_USE_VERTEX","CLAUDIN_USE_FOUNDRY","CLAUDIN_USE_GITHUB","ANTHROPIC_BASE_URL","ANTHROPIC_BEDROCK_BASE_URL","ANTHROPIC_VERTEX_BASE_URL","ANTHROPIC_FOUNDRY_BASE_URL","ANTHROPIC_FOUNDRY_RESOURCE","ANTHROPIC_VERTEX_PROJECT_ID","CLOUD_ML_REGION","ANTHROPIC_API_KEY","ANTHROPIC_AUTH_TOKEN","CLAUDE_CODE_OAUTH_TOKEN","AWS_BEARER_TOKEN_BEDROCK","ANTHROPIC_FOUNDRY_API_KEY","CLAUDIN_SKIP_BEDROCK_AUTH","CLAUDIN_SKIP_VERTEX_AUTH","CLAUDIN_SKIP_FOUNDRY_AUTH","ANTHROPIC_MODEL","ANTHROPIC_DEFAULT_HAIKU_MODEL","ANTHROPIC_DEFAULT_HAIKU_MODEL_DESCRIPTION","ANTHROPIC_DEFAULT_HAIKU_MODEL_NAME","ANTHROPIC_DEFAULT_HAIKU_MODEL_SUPPORTED_CAPABILITIES","ANTHROPIC_DEFAULT_OPUS_MODEL","ANTHROPIC_DEFAULT_OPUS_MODEL_DESCRIPTION","ANTHROPIC_DEFAULT_OPUS_MODEL_NAME","ANTHROPIC_DEFAULT_OPUS_MODEL_SUPPORTED_CAPABILITIES","ANTHROPIC_DEFAULT_SONNET_MODEL","ANTHROPIC_DEFAULT_SONNET_MODEL_DESCRIPTION","ANTHROPIC_DEFAULT_SONNET_MODEL_NAME","ANTHROPIC_DEFAULT_SONNET_MODEL_SUPPORTED_CAPABILITIES","ANTHROPIC_SMALL_FAST_MODEL","ANTHROPIC_SMALL_FAST_MODEL_AWS_REGION","CLAUDIN_SUBAGENT_MODEL"]),v=["VERTEX_REGION_CLAUDE_"];S=["apiKeyHelper","awsAuthRefresh","awsCredentialExport","gcpAuthRefresh","otelHeadersHelper","statusLine"],I=new Set(["ANTHROPIC_CUSTOM_HEADERS","ANTHROPIC_CUSTOM_MODEL_OPTION","ANTHROPIC_CUSTOM_MODEL_OPTION_DESCRIPTION","ANTHROPIC_CUSTOM_MODEL_OPTION_NAME","ANTHROPIC_DEFAULT_HAIKU_MODEL","ANTHROPIC_DEFAULT_HAIKU_MODEL_DESCRIPTION","ANTHROPIC_DEFAULT_HAIKU_MODEL_NAME","ANTHROPIC_DEFAULT_HAIKU_MODEL_SUPPORTED_CAPABILITIES","ANTHROPIC_DEFAULT_OPUS_MODEL","ANTHROPIC_DEFAULT_OPUS_MODEL_DESCRIPTION","ANTHROPIC_DEFAULT_OPUS_MODEL_NAME","ANTHROPIC_DEFAULT_OPUS_MODEL_SUPPORTED_CAPABILITIES","ANTHROPIC_DEFAULT_SONNET_MODEL","ANTHROPIC_DEFAULT_SONNET_MODEL_DESCRIPTION","ANTHROPIC_DEFAULT_SONNET_MODEL_NAME","ANTHROPIC_DEFAULT_SONNET_MODEL_SUPPORTED_CAPABILITIES","ANTHROPIC_MODEL","ANTHROPIC_SMALL_FAST_MODEL_AWS_REGION","ANTHROPIC_SMALL_FAST_MODEL","AWS_DEFAULT_REGION","AWS_PROFILE","AWS_REGION","BASH_DEFAULT_TIMEOUT_MS","BASH_MAX_OUTPUT_LENGTH","BASH_MAX_TIMEOUT_MS","CLAUDIN_BASH_MAINTAIN_PROJECT_WORKING_DIR","CLAUDIN_API_KEY_HELPER_TTL_MS","CLAUDIN_DISABLE_EXPERIMENTAL_BETAS","CLAUDIN_DISABLE_NONESSENTIAL_TRAFFIC","CLAUDIN_DISABLE_TERMINAL_TITLE","CLAUDE_CODE_ENABLE_TELEMETRY","CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS","CLAUDIN_IDE_SKIP_AUTO_INSTALL","CLAUDIN_MAX_OUTPUT_TOKENS","CLAUDIN_SKIP_BEDROCK_AUTH","CLAUDIN_SKIP_FOUNDRY_AUTH","CLAUDIN_SKIP_VERTEX_AUTH","CLAUDIN_SUBAGENT_MODEL","CLAUDIN_USE_BEDROCK","CLAUDIN_USE_FOUNDRY","CLAUDIN_USE_GITHUB","CLAUDIN_USE_VERTEX","DISABLE_AUTOUPDATER","DISABLE_BUG_COMMAND","DISABLE_COST_WARNINGS","DISABLE_ERROR_REPORTING","DISABLE_FEEDBACK_COMMAND","DISABLE_TELEMETRY","ENABLE_TOOL_SEARCH","MAX_MCP_OUTPUT_TOKENS","MAX_THINKING_TOKENS","MCP_TIMEOUT","MCP_TOOL_TIMEOUT","OTEL_EXPORTER_OTLP_HEADERS","OTEL_EXPORTER_OTLP_LOGS_HEADERS","OTEL_EXPORTER_OTLP_LOGS_PROTOCOL","OTEL_EXPORTER_OTLP_METRICS_CLIENT_CERTIFICATE","OTEL_EXPORTER_OTLP_METRICS_CLIENT_KEY","OTEL_EXPORTER_OTLP_METRICS_HEADERS","OTEL_EXPORTER_OTLP_METRICS_PROTOCOL","OTEL_EXPORTER_OTLP_PROTOCOL","OTEL_EXPORTER_OTLP_TRACES_HEADERS","OTEL_LOG_TOOL_DETAILS","OTEL_LOG_USER_PROMPTS","OTEL_LOGS_EXPORT_INTERVAL","OTEL_LOGS_EXPORTER","OTEL_METRIC_EXPORT_INTERVAL","OTEL_METRICS_EXPORTER","OTEL_METRICS_INCLUDE_ACCOUNT_UUID","OTEL_METRICS_INCLUDE_SESSION_ID","OTEL_METRICS_INCLUDE_VERSION","OTEL_RESOURCE_ATTRIBUTES","USE_BUILTIN_RIPGREP","VERTEX_REGION_CLAUDE_3_5_HAIKU","VERTEX_REGION_CLAUDE_3_5_SONNET","VERTEX_REGION_CLAUDE_3_7_SONNET","VERTEX_REGION_CLAUDE_4_0_OPUS","VERTEX_REGION_CLAUDE_4_0_SONNET","VERTEX_REGION_CLAUDE_4_1_OPUS","VERTEX_REGION_CLAUDE_4_5_SONNET","VERTEX_REGION_CLAUDE_4_6_SONNET","VERTEX_REGION_CLAUDE_HAIKU_4_5"])});
|
|
2
|
-
export{D as sV,L as tV,f as uV,g as vV,S as wV,I as xV,K as yV};
|