File extension appended to a new prompt's filename when the user does not
supply one (e.g. '.prompt.ts'). Includes the leading dot.
Glob patterns used by FilePromptProvider when no explicit
includePatterns option is provided.
Adds a new property to a prompt in a source file.
Absolute path to the file to edit.
Name of the exported function to add the property to.
The key to add.
The value to assign.
Dynamically imports filePath, calls the exported function named
promptName with params, and returns the resulting config object.
Absolute path to the prompt file.
Name of the exported function to invoke.
Positional arguments forwarded to the function.
Generates the starter source code for a new prompt file.
The module ID passed to the prompts() helper (typically derived from the file name).
The initial prompt function name.
The package path to import the prompts() helper from.
Parses the given files and returns all discovered prompts. Reads fresh file content at the time of the call.
Absolute paths of the files to parse.
The project root; used to compute relative prompt IDs.
Removes a property from a prompt source file entirely.
Absolute path to the file to edit.
The property definition to remove.
Renames an exported prompt in a source file.
Absolute path to the file to edit.
Current prompt name.
New prompt name.
Updates the value of an existing property in a prompt source file.
Absolute path to the file to edit.
The property definition to update (must carry source-position metadata).
The new value to write.
OptionalpromptId: stringThe prompt ID, used to re-parse for fresh spans.
Strategy object that knows how to parse, edit, and execute a specific prompt file format.
The default implementation is TSPromptFileType, which handles TypeScript
.prompt.tsfiles. Provide a custom implementation to support other file formats, then pass it to FilePromptProvider via itsfileTypeoption.