kist
Version:
Package Pipeline Processor
59 lines (58 loc) • 2.22 kB
TypeScript
import { AbstractProcess } from "./core/abstract/AbstractProcess";
/**
* The Kist class encapsulates the kist CLI functionality.
* It manages the pipeline execution, configuration loading, and live reload.
*/
export declare class Kist extends AbstractProcess {
/**
* Constructs the Kist class instance and initializes necessary components.
*/
constructor();
/**
* Executes the Kist workflow.
*
* This method orchestrates the execution of the Kist pipeline, starting
* from initializing the ActionRegistry, loading configuration settings,
* running the pipeline stages through the `PipelineManager`, and
* optionally enabling live reload for real-time updates.
*
* @returns {Promise<void>} Resolves when the workflow completes successfully.
* @example
* const Kist = new Kist();
* Kist.run().then(() => console.log("Pipeline execution complete."));
*/
run(): Promise<void>;
/**
* Initializes the ActionRegistry with available actions.
* Automatically registers core actions and discovers external plugins.
*/
private initializeActionRegistry;
/**
* Sets up live reload functionality.
* Monitors file changes and restarts the pipeline when updates are detected.
*
* @param pipelineManager - The manager responsible for the pipeline process.
* @param liveReloadServer - The server for live reload connections.
*/
private setupLiveReload;
/**
* Registers handlers for graceful shutdown signals.
*
* @param pipelineManager - The manager responsible for the pipeline process.
* @param liveReloadServer - The server for live reload connections.
*/
private registerShutdownHandlers;
/**
* Handles graceful shutdown of the pipeline and live reload server.
*
* @param pipelineManager - The manager responsible for the pipeline process.
* @param liveReloadServer - The server for live reload connections.
*/
private handleShutdown;
/**
* Handles errors occurring during the execution of the Kist workflow.
*
* @param error - The error object to log and handle.
*/
private handleError;
}