Skip to content

PromptScript API


Interface: ValidatorConfig

Defined in: validator/src/types.ts:81

Validator configuration options.

Extended by

Properties

blockedPatterns?

optional blockedPatterns?: (string | RegExp)[]

Defined in: validator/src/types.ts:87

Patterns to block in content (strings are converted to RegExp)


customRules?

optional customRules?: ValidationRule[]

Defined in: validator/src/types.ts:91

Custom validation rules to add


disableRules?

optional disableRules?: string[]

Defined in: validator/src/types.ts:89

Array of rule names to disable


ignoreHashes?

optional ignoreHashes?: boolean

Defined in: validator/src/types.ts:103

Skip reference integrity checks


lockfile?

optional lockfile?: Lockfile

Defined in: validator/src/types.ts:99

Lockfile for reference integrity checks


logger?

optional logger?: Logger

Defined in: validator/src/types.ts:93

Logger for verbose/debug output


policies?

optional policies?: PolicyDefinition[]

Defined in: validator/src/types.ts:95

Extension compliance policies


registryReferences?

optional registryReferences?: Set\<string>

Defined in: validator/src/types.ts:101

Set of resolved absolute paths that came from registry cache


requiredGuards?

optional requiredGuards?: string[]

Defined in: validator/src/types.ts:85

List of guards that must be present in

Guards

block


rules?

optional rules?: Record\<string, "off" | Severity>

Defined in: validator/src/types.ts:83

Override severity for specific rules (rule name -> severity or 'off')


skipPolicies?

optional skipPolicies?: boolean

Defined in: validator/src/types.ts:97

Skip policy evaluation