@hstm-labs/forge-deliverer
v0.4.0
Published
Output packaging and delivery for Forge — merges artifacts from all generation stages, validates self-containment, creates compressed archives, and writes deliverables to configurable targets.
Downloads
2,862
Readme
@hstm-labs/forge-deliverer
Output packaging and delivery for Forge — merges artifacts from all generation stages, validates self-containment, creates compressed archives, and writes deliverables to configurable targets.
Installation
npm install @hstm-labs/forge-delivererPublic API
Types
DeliveryResult— complete delivery output with manifest and archive pathDeliveryManifest,DeliveryStageEntry— manifest tracking all delivered filesSelfContainmentResult,SelfContainmentCheck— self-containment validationDeliveryOptions— delivery configuration
Classes
DeliverStage— pipeline stage implementingPipelineStageinterface
Functions
mergeArtifacts(stageOutputs)— merge artifacts from all pipeline stagesvalidateSelfContainment(outputDir)— verify no dangling imports/referencescreateArchive(outputDir, archivePath)— create .tgz archivedeliverToTarget(archive, target)— write to configured delivery targetformatDeliveryResult(),deliveryResultToJson()— output formatters
Usage
import { DeliverStage } from '@hstm-labs/forge-deliverer';
const stage = new DeliverStage();
const result = await stage.execute(input);
console.log(`Delivered to: ${result.data.archivePath}`);