@agent-crm/sdk
v3.0.0
Published
The headless CRM for Claude
Readme
@agent-crm/sdk
Programmatic helpers for Agent CRM's Supabase-backed hosted workspace. Hosted workspace provisioning and access flow through the desktop app, API, or CLI session auth.
import type { AcrmDatabase } from "@agent-crm/sdk";
import { Workspace, importTranscript } from "@agent-crm/sdk";
declare function getDatabaseForAuthenticatedWorkspace(): Promise<AcrmDatabase>;
const db: AcrmDatabase = await getDatabaseForAuthenticatedWorkspace();
const workspace = Workspace.fromDatabase(db);
try {
const result = await importTranscript(workspace, {
source: "granola",
source_id: "meeting-123",
title: "Discovery — Acme",
participants: [{ email: "[email protected]" }],
});
console.log(result.transcript_record_id);
} finally {
await workspace.close();
}Workspace.fromDatabase() wraps an explicit database handle. The SDK no longer
resolves filesystem-backed workspace paths.
See the main README for an overview of the workspace model, the EAV schema, and the CLI on top of this SDK.
