MCPcopy Create free account
hub / github.com/block/buzz / getRecordString

Function getRecordString

desktop/src/features/agents/ui/agentSessionFileRead.ts:131–142  ·  view source on GitHub ↗
(
  record: Record<string, unknown>,
  keys: string[],
)

Source from the content-addressed store, hash-verified

129}
130
131function getRecordString(
132 record: Record<string, unknown>,
133 keys: string[],
134): string | null {
135 for (const key of keys) {
136 const value = record[key];
137 if (typeof value === "string") {
138 return value;
139 }
140 }
141 return null;
142}
143
144function isReadFileMetaLine(line: string) {
145 return /^\[showing lines \d+-\d+ of \d+; use offset=\d+ to continue\]$/.test(

Callers 1

getResultTextFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected