source dump of claude code
at main 14 lines 382 B view raw
1/** 2 * Branded type for system prompt arrays. 3 * 4 * This module is intentionally dependency-free so it can be imported 5 * from anywhere without risking circular initialization issues. 6 */ 7 8export type SystemPrompt = readonly string[] & { 9 readonly __brand: 'SystemPrompt' 10} 11 12export function asSystemPrompt(value: readonly string[]): SystemPrompt { 13 return value as SystemPrompt 14}