MCPcopy Create free account
hub / github.com/SethGammon/Citadel / extractPatternLines

Function extractPatternLines

core/memory/blocks.js:82–88  ·  view source on GitHub ↗
(text, limit = 8)

Source from the content-addressed store, hash-verified

80}
81
82function extractPatternLines(text, limit = 8) {
83 return text
84 .split(/\r?\n/)
85 .map((line) => line.trim())
86 .filter((line) => line.startsWith('- ') || line.startsWith('**What') || line.startsWith('**Why') || line.startsWith('| `/'))
87 .slice(0, limit);
88}
89
90function block(id, type, scope, sources, body, confidence = 'medium', options = {}) {
91 return {

Callers 1

buildBlocksFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected