MCPcopy Create free account
hub / github.com/Noumena-Network/code / formatStatus

Function formatStatus

src/commands/break-cache/break-cache.ts:31–44  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

29}
30
31function formatStatus(): string {
32 const current = getSystemPromptInjection()
33 const lines = [
34 'Prompt cache breaker state',
35 `- build feature BREAK_CACHE_COMMAND: ${isFeatureEnabled() ? 'enabled' : 'disabled'}`,
36 `- current injection: ${current ? current : '<none>'}`,
37 '',
38 'Notes:',
39 '- This command mutates an ant-only system prompt injection value.',
40 '- Changing the value forces a system prompt hash change on the next request.',
41 '- If BREAK_CACHE_COMMAND is disabled in the build, the injection is stored but not sent to the API.',
42 ]
43 return lines.join('\n')
44}
45
46function usage(): string {
47 return [

Callers 1

callFunction · 0.70

Calls 2

getSystemPromptInjectionFunction · 0.85
isFeatureEnabledFunction · 0.85

Tested by

no test coverage detected