MCPcopy Index your code
hub / github.com/Linen-dev/linen.dev / encodeCursor

Function encodeCursor

apps/web/utilities/cursor.ts:6–8  ·  view source on GitHub ↗
(data: string)

Source from the content-addressed store, hash-verified

4const SKIP_ENCODE_CURSOR = process.env.SKIP_ENCODE_CURSOR === 'true';
5
6export function encodeCursor(data: string) {
7 return SKIP_ENCODE_CURSOR ? data : Buffer.from(data).toString('base64');
8}
9
10const defaultCursor: FindThreadsByCursorType = {
11 sort: 'desc',

Callers 2

buildCursorFunction · 0.90
cursor.test.tsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected