MCPcopy Create free account
hub / github.com/ChatLab/ChatLab / normalizePlatformId

Function normalizePlatformId

packages/core/src/merger/algorithms.ts:94–99  ·  view source on GitHub ↗
(platformId: string, platform: string, collidingIds: Set<string>)

Source from the content-addressed store, hash-verified

92}
93
94export function normalizePlatformId(platformId: string, platform: string, collidingIds: Set<string>): string {
95 if (!collidingIds.has(platformId)) return platformId
96 const np = encodeURIComponent(platform || 'unknown')
97 const ni = encodeURIComponent(platformId)
98 return `__chatlab_platform__${np}__${ni}`
99}
100
101// ==================== Helpers ====================
102

Callers 5

algorithms.test.tsFile · 0.90
buildMergedOutputFunction · 0.90
mergeMembersFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected