@lifetimescriptkiddie/shared-ptr-contract
v1.0.0
Published
Wire contract for the shared_ptr team-memory server: zod schemas for every /v1 route, the resume-briefing packet, prompt formatters and local conventions.
Readme
@lifetimescriptkiddie/shared-ptr-contract
The wire contract of shared_ptr, the team-memory server for AI agents. The server and its clients (the shared_ptr CLI, its MCP server, and agentctl) all validate their messages against these zod schemas.
.holds the schemas for every/v1route,ROUTES,CONTRACT_VERSION, and the resume-briefing packet../formatholds how a/v1/turnresponse is placed in a prompt. Untrusted memory is quoted../localholds the same-machine conventions: the home directory and the owner-token file.
Clients check GET /v1/meta and refuse a server that speaks a different contract version.
Node.js 20+, ESM only; zod ^4 is a peer dependency.