Skip to main content

Interface: ExternalHookRunner

Defined in: packages/core/src/application/ports/external-hook-runner.ts:27

Port for executing explicit external workflow hooks.

This is separate from HookRunner, which remains shell-only for built-in run: hooks. Implementations must declare the external hook types they accept so the kernel can build an unambiguous dispatch table.

Properties

acceptedTypes

readonly acceptedTypes: readonly string[]

Defined in: packages/core/src/application/ports/external-hook-runner.ts:29

External hook type names this runner accepts.

Methods

run()

run(definition, variables): Promise<HookResult>

Defined in: packages/core/src/application/ports/external-hook-runner.ts:38

Executes an explicit external hook.

Parameters

definition

ExternalHookDefinition

The normalized external hook definition

variables

TemplateVariables

Template variables available for runtime expansion

Returns

Promise<HookResult>

The workflow-compatible execution result