Skip to content

@tavora/sdk / LIMITS

Variable: LIMITS ​

const LIMITS: object

Defined in: packages/sdk/src/protocol.ts:1213

Type Declaration ​

aiUsageMinReadMs ​

readonly aiUsageMinReadMs: 60000 = 60_000

How often Tavora reads one AI account at most, for every module together; asking sooner gives the last reading.

aiUsageTimeoutMs ​

readonly aiUsageTimeoutMs: 40000 = 40_000

How long one aiUsage.read may take; the Codex command line can be slow to start.

discordTimeoutMs ​

readonly discordTimeoutMs: 15000 = 15_000

How long one discord.command may take; a slower answer is no-answer.

maxBlobBytes ​

readonly maxBlobBytes: number

One stored file (see Blobs).

maxBlobsBytes ​

readonly maxBlobsBytes: number

All stored files of one module in one workspace.

maxClipboardImageBytes ​

readonly maxClipboardImageBytes: number

A PNG a module puts on the clipboard.

maxContentIdLength ​

readonly maxContentIdLength: 200 = 200

A panel content's id (panel.setContent); its title has maxTitleLength.

maxDiscordAnswerBytes ​

readonly maxDiscordAnswerBytes: number

Largest Discord answer or event passed on, as JSON; a larger one is no-answer (or dropped, for an event).

maxDiscordSubscriptions ​

readonly maxDiscordSubscriptions: 32 = 32

Discord events one panel may subscribe to at once.

maxDocumentBytes ​

readonly maxDocumentBytes: number

One document's data.

maxDocuments ​

readonly maxDocuments: 1000 = 1000

maxDocumentsBytes ​

readonly maxDocumentsBytes: number

All documents of one module in one workspace.

maxGameOverlays ​

readonly maxGameOverlays: 8 = 8

Game overlays (overlay.showOverGame) one game may have at once.

maxHotkeyLabel ​

readonly maxHotkeyLabel: 60 = 60

Characters of the label hotkeys.set shows for its target.

maxHotkeys ​

readonly maxHotkeys: 100 = 100

Hotkeys one module may have in one workspace.

maxInFlight ​

readonly maxInFlight: 64 = 64

Requests a module may have waiting at once.

maxKeyLength ​

readonly maxKeyLength: 256 = 256

maxLeaderboardResults ​

readonly maxLeaderboardResults: 50 = 50

Results one leaderboards.submit may send.

maxLeaderboardRows ​

readonly maxLeaderboardRows: 100 = 100

Lines one leaderboards.top gives at most.

maxMenuEntries ​

readonly maxMenuEntries: 100 = 100

Entries in one menu, submenus included.

maxMenuHint ​

readonly maxMenuHint: 30 = 30

Characters of the hint on the right of a menu item, such as a shortcut.

maxMenuLabel ​

readonly maxMenuLabel: 80 = 80

Characters of a menu label or heading.

maxMessageBytes ​

readonly maxMessageBytes: number

Largest serialized request the host accepts.

maxNetworkInFlight ​

readonly maxNetworkInFlight: 6 = 6

network.fetch calls one panel may have running at once; more fail with BAD_REQUEST.

maxNetworkRedirects ​

readonly maxNetworkRedirects: 5 = 5

Redirects one network.fetch follows; each must go to a granted host.

maxNetworkResponseBytes ​

readonly maxNetworkResponseBytes: number

The body of one network.fetch answer, before any base64. A longer answer fails with QUOTA_EXCEEDED.

maxOverlays ​

readonly maxOverlays: 200 = 200

Overlays one module may have in one workspace; publishing more fails with QUOTA_EXCEEDED.

maxOverlaySourceName ​

readonly maxOverlaySourceName: 100 = 100

Characters of the name of one of them.

maxOverlaySources ​

readonly maxOverlaySources: 64 = 64

Entries in one panel's overlay.setSources list.

maxOverlayStateBytes ​

readonly maxOverlayStateBytes: number

What one overlay shows (overlay.publish), as JSON.

maxPanelStateBytes ​

readonly maxPanelStateBytes: number

UI state for one panel.

maxStoreBytes ​

readonly maxStoreBytes: number

Settings storage per module and workspace.

maxTitleLength ​

readonly maxTitleLength: 200 = 200

readonly navigateTimeoutMs: 5000 = 5_000

How long a panel has to save and switch after a panel.navigate event before Tavora counts it as failed.

networkTimeoutMs ​

readonly networkTimeoutMs: 15000 = 15_000

How long one network.fetch may take, redirects included.

pageTimeoutMs ​

readonly pageTimeoutMs: 30000 = 30_000

Deadline for an isolated page import, including cleanup.

For Tavora 0.24.58 and @tavora/sdk 0.3.20. Code under the MIT License. The Tavora name and logo are not covered by it.