@swarmrecall/shared
v0.3.0
Published
Shared types, Zod schemas, and constants for the SwarmRecall ecosystem.
Downloads
39
Readme
@swarmrecall/shared
Shared types, Zod schemas, and constants for the SwarmRecall ecosystem.
Install
npm install @swarmrecall/sharedWhat's Included
Types
TypeScript interfaces for all SwarmRecall data models:
Owner,Agent,ApiKey— Core identityMemory,MemorySession— Episodic memoryEntity,Relation,EntityType— Knowledge graphLearning,LearningPattern— Error tracking and pattern detectionAgentSkill,SkillOverride— Skill registryPool,PoolMember— Shared data pools for cross-agent collaboration
Schemas
Zod validation schemas for all API request bodies:
MemoryCreateSchema,EntityCreateSchema,LearningCreateSchema,SkillRegisterSchemaPoolCreateSchema,PoolMemberAddSchema- Pagination, search, and filter schemas
Constants
MEMORY_CATEGORIES— fact, preference, decision, context, session_summaryENTITY_TYPES— Person, Organization, Project, Task, Goal, etc.LEARNING_CATEGORIES— correction, insight, knowledge_gap, best_practice, error, feature_requestAPI_KEY_SCOPES— memory, knowledge, learnings, skills, pools (read/write)POOL_ACCESS_LEVELS— none, read, readwrite
Usage
import {
type Memory,
type Pool,
MemoryCreateSchema,
MEMORY_CATEGORIES,
API_KEY_SCOPES,
} from '@swarmrecall/shared';License
MIT