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

Function collectUserFileKeys

apps/sim/lib/core/utils/user-file.ts:48–52  ·  view source on GitHub ↗
(value: unknown)

Source from the content-addressed store, hash-verified

46 * Finds storage keys for UserFile objects embedded in a value.
47 */
48export function collectUserFileKeys(value: unknown): string[] {
49 const keys = new Set<string>()
50 collectUserFileKeysInto(value, keys, new WeakSet<object>())
51 return Array.from(keys)
52}
53
54function collectUserFileKeysInto(value: unknown, keys: Set<string>, seen: WeakSet<object>): void {
55 if (!value || typeof value !== 'object') {

Callers 2

executeFromBlockMethod · 0.90

Calls 1

collectUserFileKeysIntoFunction · 0.85

Tested by

no test coverage detected