MCPcopy Index your code
hub / github.com/Opencode-DCP/opencode-dynamic-context-pruning / toStringArray

Function toStringArray

lib/state/utils.ts:184–187  ·  view source on GitHub ↗
(value: unknown)

Source from the content-addressed store, hash-verified

182 ]
183 : []
184 const toStringArray = (value: unknown): string[] =>
185 Array.isArray(value)
186 ? [...new Set(value.filter((item): item is string => typeof item === "string"))]
187 : []
188
189 state.blocksById.set(blockId, {
190 blockId,

Callers 1

loadPruneMessagesStateFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected