1.2: Build API client (src/api.ts) #2
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Fetch wrappers for all damascus-v3 API endpoints.
Functions:
fetchHealth()→ { healthy, components: { postgres, redis } }fetchWorkers()→ { count, workers: [{ agent_id, running, addr }] }fetchStatus(since?)→ { agents: [{ id, events }] }fetchEvents(filters?)→ { events: [...] }sendMessage({ to, content, from?, context? })→ { ok, job_id }fetchPersona(id)→ { frontmatter, content }fetchSkills(agentId)→ [{ name, description, requiredTools, preconditions }]Base URL from env var or window.location.