Skip to content

CompilerOptions

PromptScript API


Defined in: compiler/src/types.ts:172

Options for the compiler.

Properties

customConventions?

optional customConventions?: Record<string, OutputConvention>

Defined in: compiler/src/types.ts:180

Custom convention definitions


formatters

formatters: (string | Formatter | { config?: TargetConfig; name: string; })[]

Defined in: compiler/src/types.ts:178

Formatters to use (names, instances, or configs)


ignoreHashes?

optional ignoreHashes?: boolean

Defined in: compiler/src/types.ts:198

Skip reference integrity hash verification


logger?

optional logger?: Logger

Defined in: compiler/src/types.ts:190

Logger for verbose/debug output


markers?

optional markers?: MarkerMode

Defined in: compiler/src/types.ts:204

How generated markdown files are marked (output.markers in promptscript.yaml).

Default

'timestamp'

models?

optional models?: ModelsConfig

Defined in: compiler/src/types.ts:188

Model catalog settings (models in promptscript.yaml). Formatters use them to map agent models; the validator uses them for PS041. When validator.models is set, both use that instead.


prettier?

optional prettier?: PrettierMarkdownOptions

Defined in: compiler/src/types.ts:182

Prettier formatting options for markdown output


resolver

resolver: ResolverOptions

Defined in: compiler/src/types.ts:174

Resolver configuration


skillContent?

optional skillContent?: string

Defined in: compiler/src/types.ts:196

Content of the PromptScript SKILL.md to inject into compilation output. When provided (and config doesn’t disable it), this content is added to each formatter’s native skill directory.


validator?

optional validator?: ValidatorConfig

Defined in: compiler/src/types.ts:176

Validator configuration


verbatimMarkdown?

optional verbatimMarkdown?: boolean

Defined in: compiler/src/types.ts:209

Keep generated markdown as written: formatters skip their Prettier-style normalization (formatting.postFormat: false in promptscript.yaml).