π File detail
utils/systemPromptType.ts
π§© .tsπ 15 linesπΎ 382 bytesπ text
β Back to All Filesπ― Use case
This file lives under βutils/β, which covers cross-cutting helpers (shell, tempfiles, settings, messages, process input, β¦). On the API surface it exposes SystemPrompt and asSystemPrompt β mainly functions, hooks, or classes. What the file header says: Branded type for system prompt arrays. This module is intentionally dependency-free so it can be imported from anywhere without risking circular initialization issues.
Generated from folder role, exports, dependency roots, and inline comments β not hand-reviewed for every path.
π§ Inline summary
Branded type for system prompt arrays. This module is intentionally dependency-free so it can be imported from anywhere without risking circular initialization issues.
π€ Exports (heuristic)
SystemPromptasSystemPrompt
π₯οΈ Source preview
/**
* Branded type for system prompt arrays.
*
* This module is intentionally dependency-free so it can be imported
* from anywhere without risking circular initialization issues.
*/
export type SystemPrompt = readonly string[] & {
readonly __brand: 'SystemPrompt'
}
export function asSystemPrompt(value: readonly string[]): SystemPrompt {
return value as SystemPrompt
}