@unispec-ai/registry
v0.2.0
Published
TypeScript client for the Unispec contracts registry API
Readme
@unispec-ai/registry
TypeScript client for the Unispec contracts registry API (projects, draft files, validation, published versions, artifacts).
Renamed from
@unispecai/sdk(never published under that name). The platform SDK (memory / vector / knowledge / agents) is@unispec-ai/sdk.
Install
npm install @unispec-ai/registryRun locally (this monorepo)
From the repository root (with npm workspaces):
npm install
npm run build -w @unispec-ai/registryTypecheck without emitting files:
npm run typecheck -w @unispec-ai/registryIn this monorepo, any package listed in the root workspaces array can depend
on @unispec-ai/registry and npm resolves it to the local
packages/registry-sdk package.
Basic usage
import { SpecRegistryClient } from "@unispec-ai/registry";
const client = new SpecRegistryClient({
baseUrl: "https://registry.unispec.ai",
// A Firebase ID token or a platform API key (lb-sk_…) — both are accepted
// as `Authorization: Bearer <credential>`.
token: process.env.UNISPEC_TOKEN ?? process.env.UNISPEC_API_KEY,
});
const { project } = await client.projects.get("acme", "support-triage");
console.log(project.name);Publishing
Published from GitHub Actions via npm trusted publishing (OIDC) — see
.github/workflows/release.yml (tag registry-v<version>). The package is
configured so that:
- only
dist/andREADME.mdare published prepublishOnlyruns the build before publish- scoped publishing uses public access by default
