@clawdb/types
v0.1.3
Published
Shared TypeScript domain types used across ClawDB SDKs and adapters.
Downloads
890
Readme
@clawdb/types
Shared TypeScript domain types used across ClawDB SDKs and adapters.
Install
npm install @clawdb/typesExports
Core models:
MemoryRecordMemoryTypeSearchResultBranchInfoBranchStatusSyncResultReflectJobClawDBSessionClawDBConfigClawDBErrorClawDBErrorCode
Example
import type { MemoryRecord, MemoryType } from '@clawdb/types';
const kind: MemoryType = 'task';
const memory: Partial<MemoryRecord> = {
content: 'Ship release notes',
memoryType: kind,
};Notes
createdAt,updatedAt, and related temporal fields are represented asDateobjects in the TypeScript surface.- Error codes here are the shared wire-level codes;
@clawdb/errorsextends them with client-only variants such asSESSION_EXPIRED.
