export interface AnnotationLocation
Members6
-
endColumn?: number
-
endLine?: number
-
file?: string
-
startColumn?: number
-
startLine?: number
-
title?: string
export interface ArtifactOperationSnapshot
Members3
-
fileCount?: number
-
name: string
-
operation: "upload" | "download"
export interface BeelzebubConfig<C = unknown>
Members12
-
beelzebub?: unknown
Internal: back-reference to the Beelzebub instance.
-
commandRunner?: CommandRunner
Injectable process runner used by task $exec() calls.
-
context?: C
Host services for task classes, read as $context. Passed by reference: never cloned or merged.
-
failureMode?: "throw" | "log"
How public task entry points handle failures. CI-safe throw is the v2 default. log is retained as an explicit compatibility mode for callers that relied on the v1 behavior.
-
helpLogger?: LoggerLike | null
-
logger?: LoggerLike | null
-
name?: string
Internal: explicit name override.
-
parentPath?: string
Internal: parent path for sub-tasks.
-
signal?: AbortSignal
Cancels every run of this instance. Task classes read it as $signal (combined with any $pipeline signal), and $exec passes it to the command runner.
-
silent?: boolean
-
verbose?: boolean
-
workflow?: WorkflowRuntime
Injectable local or hosted workflow runtime.
export interface BeelzebubModule
Singleton factory + namespace. Calling bz() returns the (lazily initialized) global Beelzebub instance. Methods like bz.add, bz.run, etc. delegate to that instance.
Members15
-
BeelzebubModule(config?: BeelzebubConfig<unknown>): Beelzebub
-
CLI: typeof BzCLI
-
decorators: { defaultTask: (_value: unknown, context: ClassMethodDecoratorContext) => void; help: (desc: string) => (_value: unknown, context: ClassMethodDecoratorContext) => void; vars: (varDefs: unknown) => (_value: unknown, context: ClassMethodDecoratorContext) => void }
-
InterfaceTasks: typeof InterfaceTasks
-
Tasks: typeof BzTasks
-
TmplStrFunc: typeof TmplStrFunc
-
add(...args: [Tasks: unknown, config?: BeelzebubConfig<unknown>]): void | Promise<unknown>
-
create<C = unknown>(config?: BeelzebubConfig<C>): Beelzebub<C>
-
delete(): void
-
getExecutions(...args: []): readonly TaskExecution<unknown>[]
-
init(...args: [config: BeelzebubConfig<unknown>]): void
-
parallel(...args: [parent: unknown, ...args: unknown[]]): Promise<unknown>
-
printHelp(...args: []): void
-
run<T = unknown>(...args: [parent?: unknown, ...args: unknown[]]): Promise<T>
-
sequence(...args: [parent: unknown, ...args: unknown[]]): Promise<unknown>
export interface CacheOperationSnapshot
Members4
export interface CLIRunOptions
Members4
-
args?: string[]
-
config?: BeelzebubConfig<unknown>
-
cwd?: string
-
file?: string
export interface CommandRunner
Members1
-
exec(command: string, args?: readonly string[], options?: ExecOptions): Promise<ExecResult>
export interface ExecOptions
Members11
-
acceptedExitCodes?: readonly number[]
-
capture?: boolean
-
cwd?: string
-
env?: ProcessEnv
-
input?: string | Uint8Array<ArrayBufferLike>
-
shell?: boolean
-
signal?: AbortSignal
-
silent?: boolean
-
stderr?: (chunk: string) => void
-
stdout?: (chunk: string) => void
-
timeoutMs?: number
export interface ExecResult
Members7
-
args: readonly string[]
-
command: string
-
durationMs: number
-
exitCode: number | null
-
signal: Signals | null
-
stderr: string
-
stdout: string
export interface ExecutePipelineOptions
Members4
export interface FlatTaskListEntry
Members3
-
name: string
-
stats: unknown
-
tasks: Record<string, TaskRecord>
export interface LocalWorkflowRuntimeOptions
Members1
export interface LoggerLike
Members18
-
clear(...args: unknown[]): void
-
count(...args: unknown[]): void
-
debug(...args: unknown[]): void
-
dir(...args: unknown[]): void
-
dirxml(...args: unknown[]): void
-
error(...args: unknown[]): void
-
group(...args: unknown[]): void
-
groupCollapsed(...args: unknown[]): void
-
groupEnd(...args: unknown[]): void
-
info(...args: unknown[]): void
-
log(...args: unknown[]): void
-
profile(...args: unknown[]): void
-
profileEnd(...args: unknown[]): void
-
time(...args: unknown[]): void
-
timeEnd(...args: unknown[]): void
-
timeStamp(...args: unknown[]): void
-
trace(...args: unknown[]): void
-
warn(...args: unknown[]): void
export interface MemoryUsage
Runtime memory counters captured while a task is executing.
Members5
-
arrayBuffers?: number
-
external?: number
-
heapTotal: number
-
heapUsed: number
export interface PipelineContext
Members1
-
steps: Readonly<Record<string, PipelineStepResult>>
export interface PipelineDefinition
A step for executePipeline: task is whatever its execute callback understands.
Members4
-
continueOnError?: boolean
-
id: string
-
task: unknown
-
when?: PipelineCondition
export interface PipelineOptions
Members2
export interface PipelineResult<V extends Record<string, unknown> = Record<string, unknown>>
Members3
-
conclusion: PipelineOutcome
-
order: readonly (keyof V & string)[]
-
steps: { readonly [K in string | number | symbol]: PipelineStepResult<V[K]> }
export interface PipelineStep<T = unknown>
A $pipeline step. task is a task path ('.build', 'Build.compile'), a task reference, or a function run with the calling task class as this. T is the step's value, inferred from a function task.
Members4
-
continueOnError?: boolean
inherited
-
id: string
inherited
-
task: string | TaskReference | ((this: BzTasks) => T | Promise<T>)
-
when?: PipelineCondition
inherited
export interface PipelineStepEndEvent<T = unknown>
Members10
-
completedAt: Date
inherited
-
conclusion: PipelineOutcome
inherited
-
durationMs: number
inherited
-
error?: Error
inherited
-
id: string
inherited
-
outcome: PipelineOutcome
inherited
-
pipelineId: string
inherited
-
startedAt: Date
inherited
-
stepId: string
inherited
-
value?: T
inherited
export interface PipelineStepEvent
Members3
-
pipelineId: string
-
startedAt: Date
-
stepId: string
export interface PipelineStepExecution
What executePipeline hands its execute callback for each step that runs.
Members2
-
signal: AbortSignal
The step's signal: the pipeline signal, or, for a step that runs after cancellation because its when passed, a signal that has not aborted, so cleanup can finish.
-
stepId: string
export interface PipelineStepResult<T = unknown>
Members8
-
completedAt: Date
-
conclusion: PipelineOutcome
-
durationMs: number
-
error?: Error
-
id: string
-
outcome: PipelineOutcome
-
startedAt: Date
-
value?: T
export interface StatsDiff
Members2
-
memory: { heapTotal: number; heapUsed: number; rss: number }
-
time: number
export interface StatsSnapshot
Members2
-
memory: MemoryUsage
-
time: number
export interface SummarySink
Members2
-
clear(): Promise<void>
-
write(markdown: string, options?: SummaryWriteOptions): Promise<void>
export interface SummaryWriteOptions
Members1
export interface TaskExecution<T = unknown>
Members8
-
completedAt: Date
-
conclusion: TaskOutcome
-
durationMs: number
-
error?: Error
-
outcome: TaskOutcome
-
startedAt: Date
-
task: string
-
value?: T
export interface TaskInfo<V extends Record<string, unknown> = Record<string, unknown>>
Members2
export interface TaskRecord
Members3
-
func: TaskFn
-
taskId: string
-
tasksObj: unknown
export interface TaskReference
A task path with variables, as accepted by $run.
Members2
-
task: string
-
vars?: Record<string, unknown>
export interface TaskRunStats
Members3
-
diff: StatsDiff | Record<string, never>
-
end: StatsSnapshot | Record<string, never>
-
start: StatsSnapshot | Record<string, never>
export interface TaskTree
Members4
-
name: string
-
stats: unknown
-
subTasks: TaskTree[]
-
tasks: Record<string, TaskRecord>
export interface VarDef
Members7
-
alias?: string
-
default?: unknown
-
describe?: string
-
items?: VarDef
-
properties?: Record<string, VarDef>
-
required?: boolean
-
type: string
export interface VLoggerLike
Members2
-
info(...args: unknown[]): void
-
log(...args: unknown[]): void
export interface WorkflowContext
Members9
-
actor?: string
-
eventName?: string
-
payload?: unknown
-
ref?: string
-
repository?: string
-
runAttempt?: string
-
runId?: string
-
sha?: string
-
workspace?: string
export interface WorkflowExecutionSnapshot
Members4
-
artifacts: readonly ArtifactOperationSnapshot[]
-
caches: readonly CacheOperationSnapshot[]
-
diagnosticCount: number
-
outputs: Readonly<Record<string, string>>
export interface WorkflowRuntime
Members17
-
context: WorkflowContext
-
provider: string
-
summary: WorkflowSummary
-
addPath(path: string): Promise<void>
-
debug(message: string): void
-
error(message: string, location?: AnnotationLocation): void
-
exportVariable(name: string, value: unknown): Promise<void>
-
getEnv(): Readonly<Record<string, string>>
Environment overrides for child processes started through $exec, beneath the caller's options.env. A runtime that scopes exportVariable and addPath to itself returns them here.
-
getExecutionSnapshot(): WorkflowExecutionSnapshot
Redacted, provider-neutral execution data for bridge adapters and tests.
-
getState(name: string): string | undefined
-
group<T>(name: string, fn: () => Promise<T>): Promise<T>
-
info(message: string): void
-
maskSecret(value: string): void
-
notice(message: string, location?: AnnotationLocation): void
-
saveState(name: string, value: unknown): Promise<void>
-
setOutput(name: string, value: unknown): Promise<void>
-
warning(message: string, location?: AnnotationLocation): void