diff --git a/localinfra/pc/services/avatar/setup b/localinfra/pc/services/avatar/setup index 95a965097..77c638848 100755 --- a/localinfra/pc/services/avatar/setup +++ b/localinfra/pc/services/avatar/setup @@ -1,6 +1,6 @@ #!/bin/sh set -eu -if [ -z "${AVATAR_CMD:-}" ] && [ "$AVATAR_BIN" = "$AVATAR_BUILT" ] && [ ! -d "$TNGL_ROOT/avatar/node_modules" ]; then +if [ -z "${AVATAR_CMD:-}" ] && [ "$AVATAR_BIN" = "$AVATAR_BUILT" ] && [ ! -e "$AVATAR_BUILT" ]; then (cd "$TNGL_ROOT/avatar" && pnpm install --frozen-lockfile) fi patch-workerd "$TNGL_ROOT/avatar" diff --git a/localinfra/pc/services/camo/setup b/localinfra/pc/services/camo/setup index ca0eaf001..74e3d1d6c 100755 --- a/localinfra/pc/services/camo/setup +++ b/localinfra/pc/services/camo/setup @@ -1,6 +1,6 @@ #!/bin/sh set -eu -if [ -z "${CAMO_CMD:-}" ] && [ "$CAMO_BIN" = "$CAMO_BUILT" ] && [ ! -d "$TNGL_ROOT/camo/node_modules" ]; then +if [ -z "${CAMO_CMD:-}" ] && [ "$CAMO_BIN" = "$CAMO_BUILT" ] && [ ! -e "$CAMO_BUILT" ]; then (cd "$TNGL_ROOT/camo" && pnpm install --frozen-lockfile) fi patch-workerd "$TNGL_ROOT/camo" diff --git a/localinfra/scripts/init-data.sh b/localinfra/scripts/init-data.sh index 733a6d6d9..39f043fca 100644 --- a/localinfra/scripts/init-data.sh +++ b/localinfra/scripts/init-data.sh @@ -159,9 +159,9 @@ knot_create() { while :; do cr_resp=$(curl -sS -w '\n%{http_code}' \ -H "Content-Type: application/json" \ - -H "Authorization: Bearer $(service_token "$cr_jwt" sh.tangled.repo.reserveKey did:web:knot2.tngl.boltless.dev)" \ + -H "Authorization: Bearer $(service_token "$cr_jwt" org.tangled.repo.reserveKey did:web:knot2.tngl.boltless.dev)" \ -d "{\"repoDid\":\"$2\"}" \ - "${KNOT_URL}/xrpc/sh.tangled.repo.reserveKey") + "${KNOT_URL}/xrpc/org.tangled.repo.reserveKey") cr_status=$(printf '%s\n' "$cr_resp" | tail -n1) [ "$cr_status" = 503 ] && [ "$cr_attempt" -lt 30 ] || break printf '[knot] registry projection warming, retrying reserveKey (%s/30)\n' "$cr_attempt" >&2 @@ -209,9 +209,9 @@ wait_import() { curl -fsS -o /dev/null \ -H "Content-Type: application/json" \ - -H "Authorization: Bearer $(service_token "$(login did:plc:igzuueb63dytyy3tpaweofuu)" sh.tangled.knot.addMember did:web:knot2.tngl.boltless.dev)" \ - -d '{"subject":"did:plc:xbserj4jfuhzkbl3mszkvvrb"}' \ - "${KNOT_URL}/xrpc/sh.tangled.knot.addMember" + -H "Authorization: Bearer $(service_token "$(login did:plc:igzuueb63dytyy3tpaweofuu)" com.atproto.repo.createRecord did:web:knot2.tngl.boltless.dev)" \ + -d '{"repo":"did:web:knot2.tngl.boltless.dev","collection":"org.tangled.knot.member","rkey":"did:plc:xbserj4jfuhzkbl3mszkvvrb","record":{"$type":"org.tangled.knot.member","createdAt":"2026-01-01T00:00:00Z"}}' \ + "${KNOT_URL}/xrpc/com.atproto.repo.createRecord" printf '[knot2] member did:plc:xbserj4jfuhzkbl3mszkvvrb\n' >&2 create_repo did:plc:igzuueb63dytyy3tpaweofuu eab5nhp7li3ul6pnyltb4eri44 did:plc:2pt74ankjflp6tryyp7aloqe '{"name":"core","defaultBranch":"master","did":"did:plc:2pt74ankjflp6tryyp7aloqe","source":{"$type":"org.tangled.repo.defs#sourceExternal","uri":"https://knot1.tangled.sh/did:plc:ioighzh4jnrhybayw65gfbia"}}'