Files
bootnode/web/lib/sdk-package.ts
T
zeekay 1d316ce4e6 fix(brand): remove hardcoded Bootnode leaks (terms, navbar, ai-chat, region-data, wallets sdk sample) + zoo IAM → zoolabs.id
- web/lib/brand.ts: zoo iam.url + iam.domain → zoolabs.id (zoo.id is NXDOMAIN)
- web/components/navbar.tsx: brand-aware `npm i {sdk}` snippet
- web/components/ai-chat.tsx: brand-namespaced localStorage keys
- web/components/lux/region-data.ts: brand-namespaced localStorage keys
- web/app/products/wallets/page.tsx: brand-aware SDK class + package in sample
- web/app/terms/page.tsx: BOOTNODE → {brand.name.toUpperCase()} in legal text
- web/lib/sdk-package.ts: shared brand→pkg/client map (single source of truth)
2026-04-30 00:24:49 -07:00

17 lines
632 B
TypeScript

// Brand-aware SDK package + client class names.
// Used by docs samples and install snippets.
import { getBrandKey_ } from "@/lib/brand"
const PACKAGES: Record<string, { pkg: string; client: string }> = {
bootnode: { pkg: "@bootnode/sdk", client: "BootnodeClient" },
hanzo: { pkg: "@hanzo/web3-sdk", client: "HanzoClient" },
lux: { pkg: "@luxfi/cloud-sdk", client: "LuxClient" },
zoo: { pkg: "@zooai/cloud-sdk", client: "ZooClient" },
pars: { pkg: "@parsnetwork/sdk", client: "ParsClient" },
}
export function getSdkPackage(): { pkg: string; client: string } {
return PACKAGES[getBrandKey_()] ?? PACKAGES.bootnode
}