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

Function stripSystemReminders

src/components/messageActions.tsx:399–408  ·  view source on GitHub ↗
(text: string)

Source from the content-addressed store, hash-verified

397 return t14;
398}
399export function stripSystemReminders(text: string): string {
400 const CLOSE = '</system-reminder>';
401 let t = text.trimStart();
402 while (t.startsWith('<system-reminder>')) {
403 const end = t.indexOf(CLOSE);
404 if (end < 0) break;
405 t = t.slice(end + CLOSE.length).trimStart();
406 }
407 return t;
408}
409export function copyTextOf(msg: NavigableMessage): string {
410 switch (msg.type) {
411 case 'user':

Callers 3

isNavigableMessageFunction · 0.85
copyTextOfFunction · 0.85
computeStickyPromptTextFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected