Skip to content

HostCapabilitiesZ

const HostCapabilitiesZ: ZodObject<{ agentIdentification: ZodOptional<ZodBoolean>; blockingHooks: ZodArray<ZodEnum<{ post-tool-edit: "post-tool-edit"; pre-tool-edit: "pre-tool-edit"; session-start: "session-start"; session-stop: "session-stop"; skill-invoke: "skill-invoke"; subagent-result: "subagent-result"; subagent-start: "subagent-start"; user-prompt: "user-prompt"; }>>; hooks: ZodArray<ZodEnum<{ post-tool-edit: "post-tool-edit"; pre-tool-edit: "pre-tool-edit"; session-start: "session-start"; session-stop: "session-stop"; skill-invoke: "skill-invoke"; subagent-result: "subagent-result"; subagent-start: "subagent-start"; user-prompt: "user-prompt"; }>>; skillSystem: ZodEnum<{ native: "native"; none: "none"; prompted: "prompted"; }>; slashCommands: ZodBoolean; streamingOutput: ZodBoolean; subagentSpawn: ZodEnum<{ native: "native"; none: "none"; shell-out: "shell-out"; }>; }, $strip>

Defined in: types/src/host.ts:11

Capability descriptor a host adapter declares about its environment. The core uses it to decide which abstract events the host can deliver and which of them can block. Zod schema kept in parity with AbstractEventZ; the HostCapabilities type is derived from it so the schema is the single source of truth.