UNPKG

@luxorai/sandbox

Version:

TypeScript SDK for Luxor Sandbox: cloud sandboxes (microVMs) for AI agents on Luxor Agent Cloud

13 lines • 457 B
import { PaginationStalledError } from "./errors.js"; const AUTOMATIC_PAGE_SIZE = 100; export function automaticPageSize() { return AUTOMATIC_PAGE_SIZE; } export function advancePageToken(current, next) { const normalized = (next ?? "").trim(); if (normalized && normalized === current) { throw new PaginationStalledError("sandbox: pagination token did not advance"); } return normalized; } //# sourceMappingURL=pagination.js.map