MCPcopy Index your code
hub / github.com/simstudioai/sim / recordingLabels

Function recordingLabels

apps/sim/connectors/grain/grain.ts:198–202  ·  view source on GitHub ↗

* Extracts user-applied tag labels from a recording, dropping blanks.

(recording: GrainRecording)

Source from the content-addressed store, hash-verified

196 * Extracts user-applied tag labels from a recording, dropping blanks.
197 */
198function recordingLabels(recording: GrainRecording): string[] {
199 return (recording.tags ?? [])
200 .map((tag) => tag?.trim())
201 .filter((tag): tag is string => Boolean(tag))
202}
203
204/**
205 * Computes the metadata-based change-detection hash for a recording.

Callers 1

buildMetadataFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected