UNPKG

@luxorai/sandbox

Version:

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

17 lines • 614 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.automaticPageSize = automaticPageSize; exports.advancePageToken = advancePageToken; const errors_js_1 = require("./errors.js"); const AUTOMATIC_PAGE_SIZE = 100; function automaticPageSize() { return AUTOMATIC_PAGE_SIZE; } function advancePageToken(current, next) { const normalized = (next ?? "").trim(); if (normalized && normalized === current) { throw new errors_js_1.PaginationStalledError("sandbox: pagination token did not advance"); } return normalized; } //# sourceMappingURL=pagination.js.map