API reference
API reference
Everything a workspace can import from @norbital-ai/bolt and @norbital-ai/ui, and the bolt command, generated from the source at the pinned release: signatures, parameters and props, examples, and a link to each definition. The guides explain how the pieces fit; this is the exact surface.
Namespaces
@norbital-ai/bolt103 symbols — @norbital-ai/bolt: author declarations, small composition helpers and their types. Native services use separate entries. Terms: server code (transforms, verdicts, effects, automations, syncs, integrations) receives a ctx from these declarations; the page SDK is @norbital-ai/bolt/page; Device is what the shell running a page provides (ctx.device); a shell is the container a workspace runs in (the web shell, or a native app); a host runs a bundle and supplies its Facilities (@norbital-ai/host-api, the host contract); secrets are encrypted tenant values declared with secrets; an environment (local, staging, production, and a tenant inside one) is an operator concern, never a workspace setting.bolt14 symbols — The bolt command (@norbital-ai/bolt-cli's bin): a workspace's verbs, run inside it or given its directory, and the template repository's bolt templates CI verbs. Exit 0 ok, 1 author errors, 2 tool failure.@norbital-ai/bolt-cli/test34 symbols — Public test edge: one scoped workspace layer and Effect-native callers.@norbital-ai/bolt/artifact10 symbols — @norbital-ai/bolt/artifact: a host's reader of built artifacts (read.ts).@norbital-ai/bolt/docs2 symbols — @norbital-ai/bolt/docs: the API reference and authoring skills as data. scripts/docs.ts writes it at build time from every public entry's declarations and oss/skills/ (one JSON document per namespace and per skill, plus index.json); the website renders it and the agent's docs tool searches it (through its host's Docs port). Read lazily from build/docs/, next to this module in the published package.@norbital-ai/bolt/engine51 symbols — One flat, Effect-native engine surface. Hosts own the runtime edge. ── exports: db ──@norbital-ai/bolt/errors8 symbols — @norbital-ai/bolt/errors: canonical tagged errors shared by guest bodies, pages and the test kit. The guest loads a family only when an operation needs it; these reexports retain the public class identities.@norbital-ai/bolt/host-api1 symbols — @norbital-ai/bolt/host-api: this release's HostApi (@norbital-ai/host-api), the one value a host takes from a release it runs on its own module graph.@norbital-ai/bolt/page7 symbols — Page types and standalone helpers. The shell hands each component its own context.@norbital-ai/bolt/protocol2 symbols — @norbital-ai/bolt/protocol: the wire and artifact types — a host or a client written outside Bolt names its bodies with these. TemplateManifest decodes norbital.template.json for the catalogue, host picker and website. The paths and handlers stay internal.@norbital-ai/host-api330 symbols — @norbital-ai/host-api: the contract between a host and a Bolt release. A host (Colony, bolt-server, a third party's) depends on this package, never on Bolt's engine; a release's Bolt depends on it and answers it. It owns every type that crosses: the HostApi a release answers (host.ts), the facilities and ports a host supplies (facilities.ts, ai.ts, browser.ts, guest.ts, media.ts, integrations.ts, db.ts, logs.ts, audit.ts), the authority a host reads (authority.ts), what a host adds to the agent (tools.ts) and Studio's port (studio.ts), with the failures they share (errors.ts), the Port helpers that call them and the SQL wire both database adapters and the engine share (wire.ts). It also holds the adapters every host binds the same way: System 1 (system-1.ts), Norbital Convert (convert.ts), the deadline timer (deadline-timer.ts) and the recovery storage contract's reads of a branch without its release (storage.ts). Versioning: the protocol version is HOST_API_VERSION, one integer bumped on any change either side could misread. The package version follows the oss release line for publication; what a host checks is the HOST_API number a release reports (HostApiCore.version), which must equal its own (supports). Bolt package versions are independent. Node-only parts (signed host operations and the Node port implementations) are @norbital-ai/host-api/node; everything here also runs inside a cell.@norbital-ai/host-api/node63 symbols — @norbital-ai/host-api/node: the Node-only parts of the contract — signed host operations — and the one Node implementation of the ports every host (Colony, bolt-server, bolt-cli) supplies. Nothing here enters the cell bundle.@norbital-ai/host-api/node/guest-hooks11 symbols — The prelude's host hooks and the guest module as a classic script: what every guest runner serves (GuestIsolatesPort) and bolt check's declaration evaluation reuse. Bolt runs no guest itself: each host owns its runner as HostPorts.guests (bolt-cli's node_guests, which bolt-server and bolt dev use; Colony's isolated-vm).@norbital-ai/ui563 symbols — @norbital-ai/ui: the views, the field kinds and inputs, Form/Field, and the primitives. Layout is ./layout. The views take the page's ctx as a prop; the shell provides the representation registry once per page. A model-backed view is exported typed by what its naked prop names (Workspace in ./model/types.ts): the component is Svelte's generic-component shape over its own name-erased implementation. Live model rows grouped into state, enum or relation lanes; dragging a card updates its lane field under the viewer's grants.@norbital-ai/ui/behaviors379 symbols — Single-source composable Svelte-5 headless behavior primitives. Used directly by @norbital-ai/ui built-in components AND exported for tenants to compose custom widgets with identical keyboard navigation, ARIA, overflow, resizing, dismissal, focus management, shortcuts, selection, pagination, clipboard, floating, portals, dates, direct manipulation, canvas gestures, live announcements and agent observability hooks.@norbital-ai/ui/brand10 symbols — @norbital-ai/ui/brand: the product's own marks for the shell, the host and the website, never a workspace's. AccretionDisc is the agent's orb and the full-surface loading mark; attach_dot_field draws any dot-field geometry; NorbiusStrip is Norbius's mark in the shell's chrome. AccessFrame is the access pages' one look (Bolt's sign-in, a host's workspace picker) over NorbiusField, the band at page scale, around one AccessCard. ConceptIcon draws each Bolt concept's one icon; Icon from the root also takes it as concept:<name>.@norbital-ai/ui/code4 symbols — The setup every CodeMirror surface shares: its theme over the kit's tokens, the code colours and the languages.@norbital-ai/ui/effect10 symbols — @norbital-ai/ui/effect: the one Svelte edge. A page's Effects run on the browser runtime its mount creates (mount_edge(ManagedRuntime.make(ShellLive)) in the shell, the root layout in a host app): run hands {#await} a Promise, fork runs an event handler's effect, observe owns streamed state and attach runs a scoped fiber for an element's lifetime. Every fiber runs in the mounted runtime's scope, so unmounting interrupts them all.@norbital-ai/ui/i18n4 symbols — The kit's own chrome strings. English by default. The enclosing surface sets the viewer's text once.@norbital-ai/ui/layout24 symbols — The layout layer: the layoutPack primitives and AppShell. Inset and scroll-port context stay internal.@norbital-ai/ui/read2 symbols — @norbital-ai/ui/read: the read helpers a host or page shares with ui's views. label_read reads a record label's own-field dependencies; unref turns read rows back into foreign-key ids with each target's label in $refs.