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

Function encodeCursor

apps/sim/connectors/gitlab/gitlab.ts:510–512  ·  view source on GitHub ↗
(state: CursorState)

Source from the content-addressed store, hash-verified

508}
509
510function encodeCursor(state: CursorState): string {
511 return Buffer.from(JSON.stringify(state), 'utf8').toString('base64url')
512}
513
514function decodeCursor(cursor: string | undefined, initialPhase: SyncPhase): CursorState {
515 if (!cursor) return { phase: initialPhase, issuePage: 1 }

Callers 2

advanceFunction · 0.70
gitlab.tsFile · 0.70

Calls 1

toStringMethod · 0.45

Tested by

no test coverage detected