MCPcopy Create free account
hub / github.com/dwgx/WindsurfAPI / getSystemPrompts

Function getSystemPrompts

src/runtime-config.js:157–165  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

155}
156
157export function getSystemPrompts() {
158 const out = { ...DEFAULTS.systemPrompts };
159 for (const key of SYSTEM_PROMPT_KEYS) {
160 if (typeof _state.systemPrompts?.[key] === 'string') {
161 out[key] = _state.systemPrompts[key];
162 }
163 }
164 return out;
165}
166
167export function setSystemPrompts(patch) {
168 if (!patch || typeof patch !== 'object') return getSystemPrompts();

Callers 4

buildCascadeConfigFunction · 0.90
handleDashboardApiFunction · 0.90
setSystemPromptsFunction · 0.85
resetSystemPromptFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected