@agent-surface/core
v0.26.0
Published
Framework-agnostic registry, types, policies, errors, snapshot, invocation for frontend agent surfaces
Maintainers
Readme
@agent-surface/core
Framework-neutral contracts, registry, policy, confirmation, invocation and exposure gateway.
const contract = defineAgentComponentContract({
type: "devices.table",
description: "Device table",
observations: { readState: observationContract({ description: "State", output }) },
actions: { selectRows: actionContract({ description: "Select", input, effect: "local-state" }) },
});
const registry = createAgentSurfaceRegistry({ authority });
registry.register(contract.bind({
observations: { readState: { read } },
actions: { selectRows: { execute } },
}));The compiler authority is mandatory. Raw/unknown/stale/changed registrations fail closed. Use createAgentExposureGateway(authority) at final provider/MCP assembly.
See Core API.
