Skip to content

toolmark-monorepo / @toolmark/core / ToolmarkEventMap

Interface: ToolmarkEventMap ​

Defined in: packages/core/src/events.ts:17

Every registry event and its payload.

Properties ​

call ​

call: object

Defined in: packages/core/src/events.ts:19

A call passed resolution and policy and is about to be validated.

caller ​

caller: Caller

callId ​

callId: string

input ​

input: unknown

tool ​

tool: string


change ​

change: object

Defined in: packages/core/src/events.ts:38

The registry revision changed (fired once per microtask).

rev ​

rev: number


confirm ​

confirm: object

Defined in: packages/core/src/events.ts:29

A confirmation changed stage.

confirmId ​

confirmId: string

result? ​

optional result?: ToolResult<unknown>

stage ​

stage: "pending" | "approved" | "rejected" | "expired"

tool ​

tool: string


error ​

error: ToolmarkErrorEvent

Defined in: packages/core/src/events.ts:40

A misconfiguration or runtime problem (production reports instead of throwing).


interaction ​

interaction: object

Defined in: packages/core/src/events.ts:36

A user-originated interaction with a tool's UI (tour hooks).

caller ​

caller: "human"

kind ​

kind: "input" | "focus" | "submit"

param? ​

optional param?: string

tool ​

tool: string


result ​

result: object

Defined in: packages/core/src/events.ts:21

A call settled.

caller ​

caller: Caller

callId ​

callId: string

durationMs ​

durationMs: number

result ​

result: ToolResult<unknown>

tool ​

tool: string