HostActionEnvelope
interfaceOne action in flight, with everything an interceptor needs to judge it. The envelope answers who asked, from where, in what scope, and with what input. It is handed to interceptors, never constructed by a mod.
Import
import { HostActionEnvelope } from '@modular/sdk';Members11
- actionId
KWhich action is running.
- actor
HostActorWho caused this: the user, an agent, a mod, or a mod view.
- id
stringIdentifies this run. Distinct from `actionId`, which names the action.
- input
CanonicalHostActionInput<K>The payload as it stands at this point in the interceptor chain.
- parentActionIdoptional
stringThe run that caused this one, when it was dispatched from another.
- scope
HostScopeWhere it applies: root, a workspace, an editor, or a session.
- signal
HostActionAbortSignalFires when the run is cancelled. Check it before slow work.
- source
HostActionSourceHow it was triggered: a command, a keybinding, a UI element, a tool.
- startedAt
numberEpoch milliseconds when the run began.
- traceId
stringCorrelates the span this action writes to the causal trace.
- workflowId
stringGroups every action in the same causal chain under one id.
Notes
- category
- Context