List active schedules, optionally filtered by agent.
Returns: Memory[].
GET /schedules
ackSchedule(memoryId)
Acknowledge a schedule — marks it as processed for the current cycle.
Returns: { status: string, memory_id: string }.
POST /schedule/ack
updateSchedule(id, cronTag, newContent?)
Update a schedule's cron expression and optionally its content.
Returns: Memory.
PATCH /schedule/:id
cancelSchedule(id)
Cancel a schedule.
Returns: { status: string, memory_id: string }.
DELETE /schedule/:id
Watcher Operations
watcherStatus()
Get current watcher status — running state, watched entities, interval, tick count.
Returns: WatcherStatus.
GET /watcher/status
watcherHistory(options?)
Retrieve watcher tick history.
options.limit (number?) — Max ticks to return. Returns: WatcherTickHistory — { ticks: WatcherTick[], total: number }.
GET /watcher/history
watcherStart(entityIds, options?)
Start the watcher on specified entities.
entityIds (string[]) — Entities to watch. options.interval_ms (number?) — Custom tick interval in milliseconds. Returns: { status: string }.
POST /watcher/start
watcherStop()
Stop the watcher.
Returns: { status: string }.
POST /watcher/stop
watcherWatch(entityId)
Add an entity to the watcher's observation list.
Returns: { status: string, entity_id: string }.
POST /watcher/watch
watcherUnwatch(entityId)
Remove an entity from the watcher's observation list.
Returns: { status: string, entity_id: string }.
POST /watcher/unwatch
Team Operations
createTeam(name, description)
Create a new team for shared memory scoping.
Returns: Team.
POST /teams
getTeam(id)
Retrieve team details.
Returns: Team.
GET /teams/:id
deleteTeam(id)
Delete a team.
Returns: { status: string }.
DELETE /teams/:id
addTeamMember(teamId, agentId)
Add an agent to a team.
Returns: { status, team_id, agent_id }.
POST /teams/:id/members
listTeamMembers(teamId)
List all members of a team.
Returns: TeamMember[].
GET /teams/:id/members
removeTeamMember(teamId, agentId)
Remove an agent from a team.
Returns: { status: string }.
DELETE /teams/:id/members/:agentId
Event Streaming
subscribeEvents(options?)
Subscribe to the server-sent events (SSE) stream. Returns an unsubscribe function immediately.
options.onEvent ((event: SSEEvent) => void) — Callback for each received event. options.onError ((error: Error) => void) — Callback for errors. options.signal (AbortSignal?) — Signal for cancellation. Returns: () => void — call to unsubscribe.