ai/at
ai/at
1
0

fix pds version

This commit is contained in:
syui 2025-02-23 16:26:40 +09:00
parent c6ccde30cb
commit 94d11e805a
Signed by: syui
GPG Key ID: 5417CFEBAD92DF56
2 changed files with 19 additions and 6 deletions

View File

@ -27,13 +27,25 @@ function at-unset() {
unset t password token refresh
}
function at-version() {
function at-version-json() {
latest=`curl -sL https://raw.githubusercontent.com/bluesky-social/atproto/refs/heads/main/packages/pds/package.json |jq -r .version`
echo latest: $latest
echo $host
curl -sL ${host}/xrpc/_health |jq .
echo syu.is
curl -sL syu.is/xrpc/_health |jq .
echo "["
echo "{\"latest\":\"$latest\"},"
e=${pds_list[@]: -1}
echo "["
for i in $pds_list; do
t=`curl -sL ${i}/xrpc/_health |jq -r .version`
echo "{\"$i\":\"$t\"}"
if [ "$e" != "$i" ];then
echo ,
fi
done
echo "]"
echo "]"
}
function at-version() {
at-version-json |jq .
}
function at-uri() {

View File

@ -37,3 +37,4 @@ github=(
https://github.com/did-method-plc/did-method-plc
)
tag=( at bsky bsync pds bgs plc ozone feed jetstream social-app oauth )
pds_list=(bsky.social syu.is boobee.blue socl.is )