ai/at
ai/at
1
0
This commit is contained in:
syui 2025-02-24 16:26:16 +09:00
parent ee92b41380
commit 84f95c31ef
Signed by: syui
GPG Key ID: 5417CFEBAD92DF56

View File

@ -18,10 +18,12 @@ function at-repos-env() {
)
d=${0:a:h}
dh=${0:a:h:h}
f=~/.config/atproto/token.json
name=${host%%.*}
domain=${host##*.}
}
function at-repos-json() {
f=~/.config/atproto/token.json
j="{
\"did\": \"did:plc:6qyecktefllvenje24fcxnie\",
\"didDoc\": {
@ -43,6 +45,7 @@ function at-repos-json() {
}
function at-repos-token() {
at-repos-json
if [ -z "$host" ] && [ -f $f ];then
host=`cat $f|jq -r ".didDoc.service.[].serviceEndpoint"`
handle=`cat $f|jq -r ".handle"`
@ -119,11 +122,6 @@ function at-repos-social-app-write() {
grep -R $did_admin .|cut -d : -f 1|sort -u|xargs sed -i "s/${did_admin}/${did}/g"
}
function at-repos-docker() {
cd $d
docker compose build && docker compose up -d
}
function at-repos-bsky-patch() {
f=$d/repos/atproto/services/bsky/api.js
curl -sL https://raw.githubusercontent.com/bluesky-social/atproto/refs/heads/main/services/bsky/api.js -o $f
@ -138,8 +136,12 @@ function at-repos-bsky-patch() {
popd
}
function at-repos-docker() {
cd $d
docker compose build && docker compose up -d
}
at-repos-env
at-repos-token
at-repos-clone
at-repos-pull
at-repos-social-app-icon