Interface: PromptScriptConfig¶
Defined in: core/src/types/config.ts:95
PromptScript configuration file (promptscript.yaml).
Properties¶
customConventions?¶
optionalcustomConventions:Record\<string,OutputConvention>
Defined in: core/src/types/config.ts:246
Custom convention definitions. Register custom conventions that can be referenced by name in targets.
extends?¶
optionalextends:string
Defined in: core/src/types/config.ts:104
Extend another configuration file. Paths are resolved relative to the current config file.
Example¶
formatting?¶
optionalformatting:FormattingConfig
Defined in: core/src/types/config.ts:227
Formatting configuration. Controls how generated markdown files are formatted.
Example¶
inherit?¶
optionalinherit:string
Defined in: core/src/types/config.ts:113
Inheritance path
input?¶
optionalinput:object
Defined in: core/src/types/config.ts:119
Input file configuration. Controls which PromptScript files to compile.
entry?¶
optionalentry:string
Entry file path (defaults to '.promptscript/project.prs')
exclude?¶
optionalexclude:string[]
Glob patterns for files to exclude
include?¶
optionalinclude:string[]
Glob patterns for additional files to include
output?¶
optionaloutput:object
Defined in: core/src/types/config.ts:207
Output configuration. Global output settings applied to all targets.
baseDir?¶
optionalbaseDir:string
Base directory for all output files
header?¶
optionalheader:string
Custom header to prepend to generated files
overwrite?¶
optionaloverwrite:boolean
Whether to overwrite existing files without warning
project¶
project:
object
Defined in: core/src/types/config.ts:107
Project identification
id¶
id:
string
team?¶
optionalteam:string
registry?¶
optionalregistry:object
Defined in: core/src/types/config.ts:129
Registry configuration
auth?¶
optionalauth:object
Authentication for HTTP registries
auth.token?¶
optionaltoken:string
Token for bearer auth, or "username:password" for basic auth
auth.tokenEnvVar?¶
optionaltokenEnvVar:string
Environment variable containing the token (alternative to token)
auth.type¶
type:
"bearer"|"basic"
Authentication type
cache?¶
optionalcache:object
Cache settings
cache.enabled?¶
optionalenabled:boolean
Whether caching is enabled
cache.ttl?¶
optionalttl:number
Cache TTL in milliseconds
git?¶
optionalgit:object
Git repository configuration. When specified, the registry will be cloned from a Git repository.
git.auth?¶
optionalauth:object
Authentication options for private repositories
git.auth.sshKeyPath?¶
optionalsshKeyPath:string
Path to SSH key (for SSH auth).
Default¶
git.auth.token?¶
optionaltoken:string
Personal access token (for token auth)
git.auth.tokenEnvVar?¶
optionaltokenEnvVar:string
Environment variable containing the token
git.auth.type¶
type:
"token"|"ssh"
Authentication type. - 'token': Use a personal access token (PAT) - 'ssh': Use SSH key authentication
git.path?¶
optionalpath:string
Subdirectory within the repository to use as registry root.
Example¶
git.ref?¶
optionalref:string
Git ref to checkout (branch, tag, or commit hash).
Default¶
git.url¶
url:
string
Git repository URL (HTTPS or SSH)
path?¶
optionalpath:string
Local path to registry
url?¶
optionalurl:string
Remote URL (HTTP registry)
targets¶
targets:
TargetEntry[]
Defined in: core/src/types/config.ts:240
Output targets.
Can be simple names or objects with configuration:
Example¶
validation?¶
optionalvalidation:object
Defined in: core/src/types/config.ts:249
Validation settings
requiredGuards?¶
optionalrequiredGuards:string[]
rules?¶
optionalrules:Record\<string,"error"|"warning"|"off">
version¶
version:
"1"
Defined in: core/src/types/config.ts:97
Config version
watch?¶
optionalwatch:object
Defined in: core/src/types/config.ts:192
Watch mode configuration. Settings for prs compile --watch.
clearScreen?¶
optionalclearScreen:boolean
Clear screen before each recompilation
debounce?¶
optionaldebounce:number
Debounce time in milliseconds before recompiling
exclude?¶
optionalexclude:string[]
Glob patterns for files to ignore
include?¶
optionalinclude:string[]
Glob patterns for files to watch (defaults to '**/*.prs')