Reference
Every public symbol in @construct-space/sdk. Pick a section.
Surface boundary
The SDK exposes only what a sandboxed Space needs. Agent RPC, model selection, skill catalog, assistant panel state, theme readers, host chrome (toasts, panels, OS info, i18n) are deliberately not here — Spaces declare actions in actions.ts and the agent calls them, never the other way around. Internal built-in Spaces that need host primitives import them directly from the host, not through this package.
Composables (31)
| Group | Count | What it covers |
|---|---|---|
| Auth & Identity | 3 | Read user, check role permissions (RBAC), per-resource ACL (ABAC) |
| Organization | 5 | Org tenant directory — members, teams, departments, roles |
| Toolbar & Breadcrumb | 2 | Contribute toolbar items + declare breadcrumb trail. Panels/popovers live in @construct-space/ui. |
| Routing & Shortcuts | 2 | useNavigator (GetX-style) + per-space keybinds |
| Networking & Data | 3 | HTTP client (full), file storage, per-space KV |
| Messaging | 2 | Fire notifications + send email — Spaces don't manage inbox or render toasts |
| Utilities | 3 | Google Fonts, markdown, date format |
Quick links
- Most common starting point:
useAuth,useStorage,useLocalStorage - For sharing a resource:
useAccess— see the walkthrough - For typed models: use
@construct-space/graph - For exposing actions to the agent: write them in
actions.ts. The agent calls them viaspace_run_action. You never call the agent.