TaskHookContext
Nadle / TaskHookContext
Interface: TaskHookContext<Options>
Defined in: packages/nadle/src/core/plugins/plugin.ts:49
Context passed to task-level hooks (beforeTask/afterTask).
Type Parameters
Options
Options
Properties
error?
readonlyoptionalerror?:unknown
Defined in: packages/nadle/src/core/plugins/plugin.ts:53
The error — present only in afterTask when result is "failed".
logger
readonlylogger:Logger
Defined in: packages/nadle/src/core/plugins/plugin.ts:51
The core logger (respects --log-level and the active reporter).
pluginOptions
readonlypluginOptions:Options
Defined in: packages/nadle/src/core/plugins/plugin.ts:59
The options this plugin was applied with.
result?
readonlyoptionalresult?:"up-to-date"|"from-cache"|"failed"|"canceled"|"done"
Defined in: packages/nadle/src/core/plugins/plugin.ts:61
How the task settled — present only in afterTask.
task
readonlytask:RegisteredTask
Defined in: packages/nadle/src/core/plugins/plugin.ts:57
The task this hook fires for.
threadId?
readonlyoptionalthreadId?:number
Defined in: packages/nadle/src/core/plugins/plugin.ts:55
The worker thread id — present in beforeTask (meaningless under the inline executor).