Skip to content

chore: rename remaining Cloudflare identifiers to piyaz#141

Merged
FrkAk merged 2 commits into
mainfrom
rebrand/piyaz-cloudflare
Jun 17, 2026
Merged

chore: rename remaining Cloudflare identifiers to piyaz#141
FrkAk merged 2 commits into
mainfrom
rebrand/piyaz-cloudflare

Conversation

@FrkAk

@FrkAk FrkAk commented Jun 17, 2026

Copy link
Copy Markdown
Owner

Summary

Task Reference: [MYMR-226]

Renames the remaining mymir Cloudflare identifiers to piyaz — the in-repo part of the cutover. After this, no mymir identifiers remain in code/config.

What ships here:

  • Realtime broker / Durable Object rename: DO class MymirBroker → PiyazBroker, binding MYMIR_BROKER → PIYAZ_BROKER, WS headers X-Mymir-User-Id/X-Mymir-Broker-Sig → X-Piyaz-*, DO instance name mymir-broker-global → piyaz-broker-global. (worker-cf.ts, lib/realtime/*, app/api/events/route.ts, components/providers/RealtimeBridge.tsx)
  • Auth: env var MYMIR_VERIFIED_OAUTH_CLIENT_IDS → PIYAZ_VERIFIED_OAUTH_CLIENT_IDS (lib/auth/verified-oauth-clients.ts).
  • wrangler.jsonc: worker mymir/mymir-production → piyaz/piyaz-production, R2 piyaz-isr-cache, D1 piyaz-tag-cache (new database_id), DO binding/class PIYAZ_BROKER/PiyazBroker, migration v1 new_sqlite_classes. AUTH_KV unchanged (id-bound).
  • Deploy guard: placeholder bucket regex mymir-placeholder- → piyaz-placeholder- (scripts/assert-deploy-ready.ts).
  • Tests: broker DO + verified-oauth-clients suites updated to the new names.
  • cloudflare-env.d.ts: regenerated via cf-typegen (PIYAZ_BROKER/PiyazBroker, dead MYMIR_DB_DRIVER dropped).
  • Docs: corrected a stale comment in open-next.config.ts (cited the deleted scripts/postbuild-cf.ts).

Type of change

  • Refactor / cleanup
  • Documentation

Testing

  • Tested locally with bun run dev
  • Linting passes (bun run lint)
  • Typecheck passes (bun run typecheck)

Notes for reviewer

  • This is the in-repo half of the Cloudflare cutover. Provisioning, secrets, deploy:cf, the app.piyaz.ai custom-domain move, and decommissioning the old mymir-* resources are operator steps not in this PR.
  • The DO uses a fresh v1 migration because piyaz-production is a new worker (no renamed_classes needed); there is no live DO state to preserve across the worker swap. Do not deploy this onto the existing mymir-production worker — v1 would be treated as already-applied and PIYAZ_BROKER would not bind.
  • cloudflare-env.d.ts is the real cf-typegen output. It carries unrelated runtime-type churn from wrangler 4.101.0 (vs the committed ^4.97.0-era output), including a new ambient Agent Memory type section. These are generated, unreferenced by our code, and harmless.

@FrkAk FrkAk force-pushed the rebrand/piyaz-cloudflare branch from cc1430d to 34e87a0 Compare June 17, 2026 18:47
@FrkAk FrkAk self-assigned this Jun 17, 2026
@FrkAk FrkAk merged commit a76d962 into main Jun 17, 2026
4 checks passed
@FrkAk FrkAk deleted the rebrand/piyaz-cloudflare branch June 17, 2026 22:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant