Workflow Step Execution (step/index.ts)

CodeMachine-CLI · automation, step, execution, workflow, engine, hooks, resume

Handles execution of individual workflow steps, including engine selection, lifecycle hooks, resume logic, and scenario resolution.

// Source: https://github.com/mperkins0155/CodeMachine-CLI | License: Apache-2.0 | Copyright You must retain, in the Source form of any Derivative Works
// Provided via justclaw.it.com; keep this notice with the code.
/**
 * Step Execution Module
 *
 * Handles running individual workflow steps including:
 * - Engine selection
 * - Lifecycle hooks (before/after)
 * - Execution and resume
 */

export { executeStep, type StepOutput, type StepExecutorOptions, type ChainedPrompt } from './execute.js';
export { selectEngine, EngineAuthCache, authCache } from './engine.js';
export { beforeRun, afterRun, cleanupRun, type BeforeRunOptions, type AfterRunResult } from './hooks.js';
export { runStepFresh, runStepResume, type RunStepOptions, type RunStepResult } from './run.js';
export { shouldSkipStep

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search 40K more like it.

Get a free API key