Skip to content

inspectBlockGeneration

Inspects built-in block generation through the staged generator boundary without mutating the destination workspace.

Use stopAfter to halt after the plan, validate, or render stage. The render stage includes copied template file paths, emitter-owned source previews, starter manifest previews, and post-render intent metadata. Any temporary render state is cleaned up before the promise resolves.

const inspection = await inspectBlockGeneration({
answers,
noInstall: true,
packageManager: "bun",
projectDir: "demo-block",
templateId: "basic",
stopAfter: "render",
});

Planning input plus an optional stopAfter stage selector.

Optional generator service instance. Defaults to a new BlockGeneratorService.

Propagates planning, validation, or render failures from BlockGeneratorService.

inspectBlockGeneration(input, service?): Promise<InspectBlockGenerationPlanResult>

Defined in: wp-typia-project-tools/src/runtime/block-generator-tool-contract.ts:230

InspectBlockGenerationInput & object

BlockGeneratorService

Promise<InspectBlockGenerationPlanResult>

inspectBlockGeneration(input, service?): Promise<InspectBlockGenerationValidateResult>

Defined in: wp-typia-project-tools/src/runtime/block-generator-tool-contract.ts:234

InspectBlockGenerationInput & object

BlockGeneratorService

Promise<InspectBlockGenerationValidateResult>

inspectBlockGeneration(input, service?): Promise<InspectBlockGenerationRenderResult>

Defined in: wp-typia-project-tools/src/runtime/block-generator-tool-contract.ts:238

InspectBlockGenerationInput & object

BlockGeneratorService

Promise<InspectBlockGenerationRenderResult>