feat(registry): index inline on publish/delete (no Jetstream worker required)
The registry record is written to the project owner's PDS via OAuth
DPoP, but until now the only thing reading those records into the local
Turso index was the Jetstream worker — which isn't deployed yet — so
new entries never appeared on /explore.
Index inline directly inside PUT/DELETE /api/registry/profile:
- After putProfileRecord succeeds, immediately upsertProfile() with the
exact record we just wrote. Uses recordCid + commit.rev returned by
the PDS so /explore knows what version it's looking at.
- After deleteProfileRecord succeeds, immediately deleteProfile() so
the entry disappears from /explore on the next request.
- Both PDS write + index write are idempotent (rkey 'self', SQL ON
CONFLICT DO UPDATE), so retrying a failed publish is safe.
- If the PDS write succeeds but the index write fails, we surface that
in the response so the user knows to retry instead of silently
diverging.
The Jetstream worker remains useful for picking up records authored
outside this app (other tooling), but it's no longer on the critical
path for the user-facing publish flow.
Made-with: Cursor