From ae8332ab3f2f7252c02f9ce301b4686e5ae7cb43 Mon Sep 17 00:00:00 2001 From: jules Date: Thu, 11 Jun 2026 13:31:54 +1000 Subject: [PATCH] =?UTF-8?q?refactor:=20rename=20@crema/arcadia-client=20?= =?UTF-8?q?=E2=86=92=20@crema/arcadia-core-client?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Disambiguates the Phoenix/auth client lib from lib-arcadia-agents-client. Dir lib-arcadia-client → lib-arcadia-core-client; alias updated in tsconfig paths, vite config, app.css @source, imports, CI and docs. Co-Authored-By: Claude Opus 4.8 (1M context) --- README.md | 16 ++++++++-------- scripts/sync-spec.mjs | 2 +- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 39da08f..a9f5399 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# @crema/arcadia-client +# @crema/arcadia-core-client Typed HTTP client + React bindings for the [arcadia](https://git.sky-ai.com/CremaUIStudio/arcadia-app) Phoenix API. Wraps the OpenAPI-spec'd surface at `/api/v1` with auth (Bearer JWT and/or service-account API key), tenant context (`X-Tenant-ID`), idempotency keys, error normalization, and rate-limit-aware retry. @@ -13,7 +13,7 @@ import { useArcadia, useArcadiaClient, ArcadiaError, -} from "@crema/arcadia-client"; +} from "@crema/arcadia-core-client"; ``` ## Usage in a Crema app @@ -21,7 +21,7 @@ import { In `app/root.tsx`, wrap providers: ```tsx -import { ArcadiaProvider } from "@crema/arcadia-client"; +import { ArcadiaProvider } from "@crema/arcadia-core-client"; { @@ -129,7 +129,7 @@ favourites, DNA-change subscriptions, notifications, search, @-mention search), there's a typed wrapper over the generic client: ```ts -import { createArcadiaClient, createSocialBindings } from "@crema/arcadia-client"; +import { createArcadiaClient, createSocialBindings } from "@crema/arcadia-core-client"; const client = createArcadiaClient({ baseUrl, getToken }); const social = createSocialBindings(client); @@ -156,5 +156,5 @@ Realtime: the social write paths broadcast via Phoenix.PubSub → ## Conventions - Inline imports only — no own `package.json` (lib lives by the consuming app's deps). -- Path-aliased into apps via `tsconfig.json` `paths`: `@crema/arcadia-client` → `../lib-arcadia-client/src/index.tsx`. +- Path-aliased into apps via `tsconfig.json` `paths`: `@crema/arcadia-core-client` → `../lib-arcadia-core-client/src/index.tsx`. - Tailwind doesn't scan this lib — no UI; nothing to scan. diff --git a/scripts/sync-spec.mjs b/scripts/sync-spec.mjs index abe3e94..27f0eb2 100644 --- a/scripts/sync-spec.mjs +++ b/scripts/sync-spec.mjs @@ -2,7 +2,7 @@ // Fetches the arcadia OpenAPI spec and regenerates ../src/generated/openapi.d.ts. // // Usage (from a consuming app, with arcadia reachable): -// node ../lib-arcadia-client/scripts/sync-spec.mjs +// node ../lib-arcadia-core-client/scripts/sync-spec.mjs // // Configurable via env: // ARCADIA_OPENAPI_URL default: http://localhost:4000/api/openapi