MCPcopy Create free account
hub / github.com/IgorWarzocha/howcode / buildLocalSessionToken

Function buildLocalSessionToken

shared/session-paths.ts:4–6  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2const localSessionPathPattern = /^local:\/\/([^/]+)\/[^?]+(?:\?chatGroupId=([^&]+))?$/
3
4function buildLocalSessionToken() {
5 return `${Date.now()}-${Math.random().toString(36).slice(2, 8)}`
6}
7
8export function isLocalSessionPath(sessionPath: string | null | undefined) {
9 return typeof sessionPath === 'string' && sessionPath.startsWith(LOCAL_SESSION_PREFIX)

Callers 1

createLocalThreadDraftFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected