MCPcopy Create free account
hub / github.com/QodeXcli/QodeX / isImportantFact

Function isImportantFact

src/context/memory-select.ts:38–40  ·  view source on GitHub ↗
(fact: string)

Source from the content-addressed store, hash-verified

36
37/** A fact is "important" (always injected) if it carries the `!important` marker (case-insensitive). */
38export function isImportantFact(fact: string): boolean {
39 return /(^|\s)!important\b/i.test(fact);
40}
41
42/** Rough token estimate — ~4 chars/token, the usual heuristic; good enough for a budget gate. */
43export function estimateTokens(text: string): number {

Callers 2

selectInjectedFactsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected