Interface: ValidateOptions¶
Defined in: validator/src/types.ts:161
Options for standalone validate function.
Extends¶
Properties¶
allowedPatterns?¶
optionalallowedPatterns?: (string|RegExp)[]
Defined in: validator/src/types.ts:137
Pattern sources exempt from blocked-patterns detection. A blocked pattern is subtracted from the active set when its source text matches an entry exactly.
Inherited from¶
ValidatorConfig.allowedPatterns
blockedPatterns?¶
optionalblockedPatterns?: (string|RegExp)[]
Defined in: validator/src/types.ts:96
Patterns to block in content (strings are converted to RegExp)
Inherited from¶
ValidatorConfig.blockedPatterns
customRules?¶
optionalcustomRules?:ValidationRule[]
Defined in: validator/src/types.ts:100
Custom validation rules to add
Inherited from¶
disableRules?¶
optionaldisableRules?:string[]
Defined in: validator/src/types.ts:98
Array of rule names to disable
Inherited from¶
excludes?¶
optionalexcludes?:ValidationExclude[]
Defined in: validator/src/types.ts:131
Rule exclusions for specific imports, bound to the commit pinned in the lockfile. Declared by the consumer in promptscript.yaml; an imported file can never mute its own scan.
Inherited from¶
externalRoots?¶
optionalexternalRoots?:string[]
Defined in: validator/src/types.ts:119
Absolute path roots holding imported (registry cache, vendored) content. Heuristic content rules skip text located under these roots by default.
Inherited from¶
ignoreHashes?¶
optionalignoreHashes?:boolean
Defined in: validator/src/types.ts:114
Skip reference integrity checks
Inherited from¶
importRoots?¶
optionalimportRoots?:ImportRoot[]
Defined in: validator/src/types.ts:143
Absolute roots holding imported content, keyed by import source and the commit the lockfile pins for it. Computed by the compiler from the lockfile (registry cache, vendor directory, reference roots).
Inherited from¶
lockfile?¶
optionallockfile?:Lockfile
Defined in: validator/src/types.ts:108
Lockfile for reference integrity checks
Inherited from¶
logger?¶
optionallogger?:Logger
Defined in: validator/src/types.ts:102
Logger for verbose/debug output
Inherited from¶
policies?¶
optionalpolicies?:PolicyDefinition[]
Defined in: validator/src/types.ts:104
Extension compliance policies
Inherited from¶
registryReferencePaths?¶
optionalregistryReferencePaths?:Map\<string,Map\<string,string>>
Defined in: validator/src/types.ts:112
Canonical lock keys keyed by source file and declared reference
Inherited from¶
ValidatorConfig.registryReferencePaths
registryReferences?¶
optionalregistryReferences?:Set\<string>
Defined in: validator/src/types.ts:110
Set of resolved absolute paths that came from registry cache
Inherited from¶
ValidatorConfig.registryReferences
requiredGuards?¶
optionalrequiredGuards?:string[]
Defined in: validator/src/types.ts:94
List of guards that must be present in
Guards¶
block
Inherited from¶
ValidatorConfig.requiredGuards
rules?¶
optionalrules?:Record\<string,"off"|Severity>
Defined in: validator/src/types.ts:92
Override severity for specific rules (rule name -> severity or 'off')
Inherited from¶
scanExternalContent?¶
optionalscanExternalContent?:boolean
Defined in: validator/src/types.ts:125
Scan imported content under externalRoots with heuristic rules anyway. Concrete security findings (decoded payloads, suspicious URLs) always scan.
Default¶
Inherited from¶
ValidatorConfig.scanExternalContent
skipPolicies?¶
optionalskipPolicies?:boolean
Defined in: validator/src/types.ts:106
Skip policy evaluation
Inherited from¶
validator?¶
optionalvalidator?:Validator
Defined in: validator/src/types.ts:163
Reuse an existing validator instance