Typed fetch-based client for control-plane API with error handling.
// Source: https://github.com/feder-cr/invisible_dots | License: MIT | Copyright 2026 feder-cr
// Provided via justclaw.it.com; keep this notice with the code.
/**
* Typed client for every route of the control-plane API (architecture
* section 9.6), built on `fetch` so it runs in Node and in browsers.
*/
import {
abortableSleep,
SseParser,
type ApprovalStatus,
type BrowserIdentity,
type ChannelKind,
type ListOrder,
type McpSecretsAnswer,
type StoredEvent,
type Skill,
type SkillListAnswer,
type ToolListAnswer,
} from "@invisible-dots/shared/browser";
import type {
AcceptedAnswer,
ApprovalRecord,
ApprovalsAnswer,
ApproveRequest,
ChannelLinkFrame,
ChannelPairingAnswer,
ChannelRecord,
ChannelsAnswer,
ComputerAnswer,
ConversationMessage,
CreateTask
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key