The working context was 70% of the model's window, and a model whose catalog never declared one got 70% of a guessed 131,072: a chat on a custom provider was told it had 91,750 tokens, then had every tool result trimmed to a bare note, including a 14-character shell answer, and spent its remaining steps reading nothing. - workingContextTokens: the declared window less the room the answer needs (max_output_tokens, else a tenth clamped to 8,000-64,000), capped by grabContextBudgetTokens when an install sets one. - An undeclared window is assumed to be 1,000,000, and the guess is not silent: the picker marks such a model and the Models page says what a run works to. A provider that refuses the prompt for size stops the run with its own limit (fatal: no fallback, no rest, no retry). - fitTranscriptToContext: a result under 2,000 characters is never cut, a trimmed one keeps its start and its end, and the newest turn's results are cut last. over_budget says whether the static prompt or the request is over; the static case stops the run at once instead of trimming every turn. - Built-in tools are deferred by family (groupTools, ToolGroups) on a model short of window; load_tools takes a family name or a prefix. Wrap-up tools, closing tools and load_tools are never deferred. - Usage reports what the app's own prompt and tools took before the conversation did.
1573 lines
63 KiB
TypeScript
1573 lines
63 KiB
TypeScript
import { UnlimitedLimit } from "@/src/utils/run-limit";
|
|
import { SiteData } from "./site-data";
|
|
|
|
export const AppData = {
|
|
HashCost: 12,
|
|
/**
|
|
* Shared with twui's `ColorSchemeSelector`, so it must stay `theme`.
|
|
*/
|
|
ThemeStorageKey: "theme",
|
|
/**
|
|
* How many of a build's files the loading page downloads at once.
|
|
*/
|
|
PrecacheConcurrency: 6,
|
|
/**
|
|
* How many more times the loading page downloads files it finds
|
|
* missing from the cache after a pass, before it gives up on them.
|
|
*/
|
|
PrecacheVerifyPasses: 2,
|
|
/**
|
|
* How long the loading page waits for a new service worker to take
|
|
* over before it reloads into the app anyway.
|
|
*/
|
|
PrecacheWorkerWaitMs: 10_000,
|
|
/**
|
|
* The loading page gives up and lets the app run from the network
|
|
* when no new file lands for this long.
|
|
*/
|
|
PrecacheStallMs: 30_000,
|
|
/**
|
|
* Prefix of the composer's unsent drafts in `localStorage`, one per
|
|
* bot and workspace.
|
|
*/
|
|
ComposerDraftStorageKey: `${SiteData["SiteSlug"]}_composer_draft`,
|
|
/**
|
|
* Prefix of the chat header's model data in `localStorage`: one catalog
|
|
* per user, and one small setting per bot and workspace.
|
|
* `HarnessCatalogCacheMs` is how long the catalog is shown before it is
|
|
* fetched again, `HarnessOverviewCacheMs` the setting.
|
|
*/
|
|
HarnessCacheStorageKey: `${SiteData["SiteSlug"]}_harness_cache`,
|
|
HarnessCatalogCacheMs: 60 * 60 * 1000,
|
|
/**
|
|
* The per-conversation key an older version wrote. Removed on logout
|
|
* and by `clearHarnessCache`.
|
|
*/
|
|
LegacyHarnessOverviewStorageKey: `${SiteData["SiteSlug"]}_harness_overview`,
|
|
HarnessOverviewCacheMs: 10 * 60 * 1000,
|
|
/**
|
|
* The mode (`ComputerViewModes`) each computer was last viewed in on
|
|
* this device, in `localStorage` (`rememberComputerViewMode`): the
|
|
* next open starts there.
|
|
*/
|
|
ComputerViewModeStorageKey: `${SiteData["SiteSlug"]}_computer_view_modes`,
|
|
/**
|
|
* Whether each user left the conversation's debug view open, on this
|
|
* device (`readDebugOpen`/`rememberDebugOpen`): the view is theirs, so
|
|
* it stays as they left it in every conversation.
|
|
*/
|
|
DebugViewStorageKey: `${SiteData["SiteSlug"]}_debug_view_open`,
|
|
/**
|
|
* Which conversations were left with Plan mode on, on this device
|
|
* (`readPlanMode`/`rememberPlanMode`): keyed by bot and workspace, so
|
|
* a mode turned on here doesn't follow the user to another
|
|
* conversation.
|
|
*/
|
|
PlanModeStorageKey: `${SiteData["SiteSlug"]}_plan_mode`,
|
|
ServerHealthMessage: "Server Running Well",
|
|
AuthKeyCookieName: `${SiteData["SiteSlug"]}_auth_key`,
|
|
AuthCSRFCookieName: `${SiteData["SiteSlug"]}_auth_csrf`,
|
|
/**
|
|
* The build this browser has been through the loading page for
|
|
* (`handlePrecacheGate`). Set by the page itself, so not `HttpOnly`;
|
|
* it holds nothing private.
|
|
*/
|
|
BuildCookieName: `${SiteData["SiteSlug"]}_build`,
|
|
BuildCookieMaxAgeSeconds: 365 * 24 * 60 * 60,
|
|
/**
|
|
* The bot this browser was last in: `/admin/bots` opens its own chat
|
|
* again, falling back to the coordinator (super admin) or the latest
|
|
* bot when the grant is gone. One small id. `HttpOnly`: only the server
|
|
* reads it.
|
|
*/
|
|
LastVisitedBotCookieName: `${SiteData["SiteSlug"]}_last_visited_bot_id`,
|
|
LastVisitedCookieMaxAgeSeconds: 365 * 24 * 60 * 60,
|
|
AuthExpiryDays: 60,
|
|
APICrudBasePath: "/api/admin/crud",
|
|
ForcePrivateHeaderKey: `x-${SiteData["SiteSlug"]}-force-private`,
|
|
ForcePublicHeaderKey: `x-${SiteData["SiteSlug"]}-force-public`,
|
|
DefaultQueryLimit: 40,
|
|
MainImageSize: 500,
|
|
MaxImageWidth: 1500,
|
|
ImageThumbnailSize: 150,
|
|
ImageQuality: 85,
|
|
ImageThumbnailQuality: 70,
|
|
PaystackEndpoint: "https://api.paystack.co",
|
|
ContactFormLimit: 5,
|
|
RateLimitWindowMinutes: 15,
|
|
UsernameRegex: /^[a-z0-9._-]{3,32}$/,
|
|
PasswordMinLength: 8,
|
|
PasswordMaxLength: 128,
|
|
PasswordAttemptLimit: 10,
|
|
/**
|
|
* Docker network shared by the app and every computer. The app makes
|
|
* sure it exists on startup and before it creates a container, and
|
|
* joins it when it runs in docker.
|
|
*/
|
|
DockerNetworkName: SiteData["SiteSlug"],
|
|
/**
|
|
* How many extra docker networks the app's own container may join
|
|
* (`app_extra_networks`, Settings > General). Computers never join them.
|
|
*/
|
|
AppExtraNetworksMax: 16,
|
|
/**
|
|
* Port a computer's agent listens on inside its container: its shell
|
|
* and file API, Playwright MCP (`/mcp`), its screen (`/desktop/`) and
|
|
* its shell (`/terminal/`).
|
|
*/
|
|
ComputerPort: 8080,
|
|
/**
|
|
* Every computer the app creates runs this image (built from
|
|
* `computer/`), unless the `COMPUTER_IMAGE` app setting names another,
|
|
* named `<ComputerContainerPrefix>-<computer id>` on `DockerNetworkName`.
|
|
* Its tag is the image's version: bump it with any change under
|
|
* `computer/` (the release workflow builds that tag), and bump
|
|
* `ComputerWorkspaceLayout` too when existing computers must move to it.
|
|
*/
|
|
ComputerImage: "ghcr.io/moduletrace/cobble-computer:1.4.5",
|
|
ComputerContainerPrefix: `${SiteData["SiteSlug"]}-computer`,
|
|
/**
|
|
* Only a computer's workspace (`ComputerWorkspaceDir` in its
|
|
* container) is kept, at `DATA_DIR/<ComputerDataDir>/<id>`, owned by
|
|
* the computer's user, plus its browser profile
|
|
* (`ComputerBrowserDataDir`). Both stay when the computer is deleted.
|
|
* The rest of its home (`ComputerHomeDir`: dotfiles, the env files)
|
|
* lives in the container and goes with it. Every bot works in
|
|
* `bots/<bot id>` there, a user's work in `bots/<bot id>/users/<user
|
|
* id>`, and a workspace's bots share `workspaces/<workspace id>`
|
|
* (`computerRunDirs`).
|
|
*/
|
|
ComputerDataDir: "computers",
|
|
ComputerHomeDir: "/home/gem",
|
|
ComputerWorkspaceDir: "/home/gem/workspace",
|
|
/**
|
|
* A computer's browser profile (cookies, logins, site permissions) is
|
|
* kept at `DATA_DIR/<ComputerBrowserDataDir>/<id>`, outside its
|
|
* workspace, and mounted at `ComputerBrowserProfileDir`, which Chrome
|
|
* is pointed at with `--user-data-dir`.
|
|
*/
|
|
ComputerBrowserDataDir: "computer-browsers",
|
|
ComputerBrowserProfileDir: "/home/gem/.cobble-browser",
|
|
/**
|
|
* The managed policy file a computer's browser reads (Chrome's folder;
|
|
* the image links Chromium's to it), written into the container by
|
|
* `syncComputerBrowserPolicy`.
|
|
*/
|
|
ComputerBrowserPolicyFile: "/etc/opt/chrome/policies/managed/cobble.json",
|
|
/**
|
|
* Where a computer's Playwright MCP writes what a browser tool saves
|
|
* without a name (snapshots, console logs), outside every run's
|
|
* folders: `withBrowserOutputs` turns those links into the tool that
|
|
* reads them.
|
|
*/
|
|
ComputerBrowserOutputDir: "/home/gem/.cobble/playwright",
|
|
/**
|
|
* Chrome saves downloads here itself (the seed prefs), since Playwright
|
|
* attached over CDP leaves them to the browser. After each browser tool
|
|
* call `withBrowserOutputs` moves finished ones into the run's
|
|
* `ComputerDownloadsFolder`, so whichever run's call comes next on that
|
|
* computer gets them (a download the user starts in the live view
|
|
* included).
|
|
*/
|
|
ComputerBrowserDownloadsDir: "/home/gem/Downloads",
|
|
ComputerDownloadsFolder: "downloads",
|
|
/**
|
|
* The most a computer's workspace (`DATA_DIR/computers/<id>`) may hold,
|
|
* when the install saves no `computer_workspace_quota_mb` setting. It
|
|
* is one folder for every bot and user on that computer, mounted from
|
|
* the data volume, so a run that fills it takes the host's disk with
|
|
* it: `computer_write_file`, `computer_edit_file` and every
|
|
* `computer_bash` command that outgrows it are told to free space
|
|
* first (`computerWorkspaceRoomError`). 0 sets no limit.
|
|
*/
|
|
ComputerWorkspaceQuotaMb: 10240,
|
|
/**
|
|
* The share of the workspace quota past which `warn-computer-workspaces`
|
|
* reports a computer, so the install hears about it while writes still
|
|
* fit: a bot only ever learns of a full workspace when its own write is
|
|
* refused, mid-run.
|
|
*/
|
|
ComputerWorkspaceWarnShare: 0.8,
|
|
/**
|
|
* How long a media row nothing points at stays before
|
|
* `prune-orphan-media` deletes it. Long enough that an upload in flight,
|
|
* or one a delete is still tidying, is never taken with it.
|
|
*/
|
|
MediaOrphanKeepDays: 30,
|
|
/**
|
|
* Written at the root of a computer's workspace once it uses that
|
|
* layout, so an older computer's whole home is told apart and moved
|
|
* aside (`prepareComputerDataDir`).
|
|
*/
|
|
ComputerWorkspaceMarker: ".cobble-workspace",
|
|
/**
|
|
* An older computer's whole home is moved aside to
|
|
* `<id><ComputerOldHomeSuffix><timestamp>` and kept, never archived.
|
|
*/
|
|
ComputerOldHomeSuffix: "-home-",
|
|
/**
|
|
* How long a computer's old home stays after
|
|
* `prepareComputerDataDir` moved it aside, before
|
|
* `prune-computer-homes` deletes it. Nothing mounts it again
|
|
* (backups leave it out), so its only role is a look at what an
|
|
* earlier layout held.
|
|
*/
|
|
ComputerOldHomeKeepDays: 45,
|
|
/**
|
|
* Recorded in a container's `metadata.layout`: the image and mounts it
|
|
* was created with. A container with another value is recreated
|
|
* (`migrateComputerLayout`), keeping its workspace and browser profile.
|
|
* `cobble-computer` moved every computer off the AIO sandbox;
|
|
* `cobble-computer-accounts` gave worker bots their own accounts (the
|
|
* container gets `NET_ADMIN` to keep them off its services);
|
|
* `cobble-computer-homes` has workers work in their own home
|
|
* (`/home/cb-<bot>/workspace`, a link the agent keeps to their folder),
|
|
* which an older agent would make a folder that isn't kept;
|
|
* `cobble-computer-caches` is the image whose agent reports its
|
|
* workspace (`/api/usage`), keeps run caches out of it, clears its
|
|
* browser profile's caches at each start, and leaves a host directory
|
|
* mounted inside a bot's folder alone (its size and its permissions
|
|
* are the host's), so a computer still running an older one is
|
|
* recreated onto it once.
|
|
*/
|
|
ComputerWorkspaceLayout: "cobble-computer-host-mounts",
|
|
ComputerUserUid: 1000,
|
|
ComputerUserGid: 1000,
|
|
/**
|
|
* A worker bot's own account on a computer is uid and gid
|
|
* `ComputerWorkerIdBase + bot id` (`cb-<bot id>`, no sudo), and a
|
|
* workspace's group is gid `ComputerWorkspaceGroupIdBase + workspace
|
|
* id` (`cw-<workspace id>`); keep both alike with
|
|
* `computer/agent/config.ts`. A host directory mounted into a
|
|
* computer is owned by its users, so this app tells the user which
|
|
* ids to give the folder (`hostDirectoryPermissionCommand`).
|
|
*/
|
|
ComputerWorkerIdBase: 100_000,
|
|
ComputerWorkspaceGroupIdBase: 10_000_000,
|
|
/**
|
|
* A host directory is checked by running `test -d` and `test -w` as
|
|
* each account that reaches it, in a throwaway container of the
|
|
* computer's image, for at most this long (a cold image pull is not
|
|
* part of it: the image is already there).
|
|
*/
|
|
HostDirectoryProbeTimeoutMs: 60 * 1000,
|
|
/**
|
|
* How long giving the bots access to a host folder may take: an ACL
|
|
* entry on everything already there, which is a walk of the whole
|
|
* folder, so a big one is allowed several minutes.
|
|
*/
|
|
HostDirectoryGrantTimeoutMs: 10 * 60 * 1000,
|
|
/**
|
|
* How much of a host folder is copied into the bot's own folder before
|
|
* an approved delete: past this, the delete goes ahead without a copy
|
|
* and the result says so, since the folder is the user's own data and
|
|
* copying a whole disk into the workspace is what the quota guards.
|
|
*/
|
|
HostDirectoryRecoverMaxBytes: 512 * 1024 * 1024,
|
|
/**
|
|
* Where the copy of a deleted path is kept, in the run's own folder.
|
|
*/
|
|
HostDirectoryRecoverFolder: "recovered",
|
|
/**
|
|
* How long copying the paths an approved delete names may take.
|
|
*/
|
|
HostDirectoryRecoverTimeoutMs: 5 * 60 * 1000,
|
|
/**
|
|
* A worker's install request (`request_install`): at most this many
|
|
* packages, a reason and notes this long, its answer this long.
|
|
*/
|
|
InstallRequestMaxPackages: 20,
|
|
InstallRequestReasonMaxChars: 1000,
|
|
InstallRequestAnswerMaxChars: 2000,
|
|
/**
|
|
* Resources a new computer's container gets, saved on the computer
|
|
* (`cpus`, `memory_mb`) when it is created.
|
|
*/
|
|
ComputerDefaultCpus: 1,
|
|
ComputerDefaultMemoryMb: 2048,
|
|
ComputerMinCpus: 0.25,
|
|
ComputerMaxCpus: 64,
|
|
ComputerMinMemoryMb: 512,
|
|
/**
|
|
* Docker's health check on every computer container: its agent's
|
|
* `/health`, which passes once the browser and its tools answer. A new computer stays
|
|
* `creating` until it passes, for at most `ComputerHealthyTimeoutMs`,
|
|
* checked every `ComputerHealthPollMs`.
|
|
*/
|
|
ComputerHealthcheck: {
|
|
IntervalSeconds: 5,
|
|
TimeoutSeconds: 5,
|
|
StartPeriodSeconds: 120,
|
|
StartIntervalSeconds: 1,
|
|
Retries: 3,
|
|
},
|
|
ComputerHealthyTimeoutMs: 5 * 60 * 1000,
|
|
ComputerHealthPollMs: 2000,
|
|
/**
|
|
* A computer being set up or restarted (`creating`) has its container's
|
|
* `updated_at` touched this often by the process doing it
|
|
* (`keepComputerSetupAlive`). Untouched for `ComputerSetupStaleMs`, the
|
|
* process is gone (the app restarted mid-way): the computer shows as
|
|
* failed so it can be set up again, and `syncComputers` starts it
|
|
* again (`computerSetupInterrupted`).
|
|
*/
|
|
ComputerSetupHeartbeatMs: 30 * 1000,
|
|
ComputerSetupStaleMs: 3 * 60 * 1000,
|
|
/**
|
|
* A layout migration (`migrateComputerLayout`) whose setup failed
|
|
* while the old container kept running (an image that couldn't be
|
|
* pulled) waits this long before it tries again
|
|
* (`metadata.setup_failed_at`), instead of on every sync.
|
|
*/
|
|
ComputerMigrateRetryMs: 60 * 60 * 1000,
|
|
/**
|
|
* How long docker gives a computer's container to stop before it is
|
|
* killed, when it is removed or recreated.
|
|
*/
|
|
ComputerStopTimeoutSeconds: 10,
|
|
/**
|
|
* A computer is reached at its hostname, else its IP address. Each
|
|
* address gets this long to answer, and the one that did is reused
|
|
* for `ComputerAddressCacheMs`.
|
|
*/
|
|
ComputerReachTimeoutMs: 2000,
|
|
ComputerAddressCacheMs: 60 * 1000,
|
|
/**
|
|
* Per computer container.
|
|
*/
|
|
ComputerShmBytes: 2 * 1024 * 1024 * 1024,
|
|
/**
|
|
* The docker engine API, reached over its unix socket.
|
|
*/
|
|
DockerSocketPath: "/var/run/docker.sock",
|
|
/**
|
|
* Cap on a bot's `system_prompt` and `memory`, and on a workspace's
|
|
* `system_prompt`, so self-updates can't grow a prompt without bound.
|
|
*/
|
|
PromptMaxLength: 20000,
|
|
/**
|
|
* A save that replaces a shared text whole (a workspace's context, a
|
|
* bot's instructions or memory) is refused once when it would drop a
|
|
* heading or cut the text below `SharedTextShrinkShare` of its length:
|
|
* a bot retyping from what it remembers of its prompt otherwise deletes
|
|
* sections and reports the job done. Below the minimum the text is too
|
|
* short to read as a document with sections.
|
|
*/
|
|
SharedTextGuardMinChars: 200,
|
|
SharedTextShrinkShare: 0.5,
|
|
/**
|
|
* Cap on a user's role in one workspace (`workspace_user_roles`), which
|
|
* joins every prompt there when a bot works for them.
|
|
*/
|
|
WorkspaceUserRoleMaxLength: 2000,
|
|
/**
|
|
* `bots_queue` (bun-sqlite `isQueue`). A job that hasn't sent an update
|
|
* within the lock timeout is presumed lost and goes back to the queue,
|
|
* so long computer jobs must call `updateBotJob` more often than this.
|
|
*/
|
|
BotQueueMaxAttempts: 3,
|
|
BotQueueLockTimeoutMs: 10 * 60 * 1000,
|
|
BotQueueBackoffMs: 30 * 1000,
|
|
/**
|
|
* A reply's deadline: one attempt (its model run and tools included)
|
|
* gives up after this long and counts as a failed try, so a chat answer
|
|
* that hangs without ever answering can't hold the conversation
|
|
* forever. The lock is outlived by the heartbeat, so this is the only
|
|
* thing that stops a live but stuck reply. A task run has none (a
|
|
* command or a build may hold it for hours): only Stop, a lost lock or
|
|
* the process ending stops its work, and a command on its computer is
|
|
* stopped when the call is aborted.
|
|
*/
|
|
BotJobAttemptTimeoutMs: 2 * 60 * 60 * 1000,
|
|
/**
|
|
* A failed scheduled run is tried again after this, doubling each time
|
|
* (`scheduledRunRetryAt`), so a short outage doesn't sink the run.
|
|
*/
|
|
ScheduledRunRetryMs: 5 * 60 * 1000,
|
|
/**
|
|
* The queue handler's lock name. Stable across restarts, so on startup
|
|
* it can release the jobs it was running when the process stopped.
|
|
*/
|
|
BotQueueWorker: "main",
|
|
BotQueuePollMs: 3000,
|
|
/**
|
|
* Tasks run at once. Tasks on the same computer always run one at a time.
|
|
*/
|
|
BotQueueConcurrency: 3,
|
|
/**
|
|
* Chat replies run at once, on their own slots so they never wait
|
|
* behind long tasks. One per bot at a time.
|
|
*/
|
|
BotQueueReplyConcurrency: 3,
|
|
/**
|
|
* Finished jobs are deleted after this many days.
|
|
*/
|
|
BotQueueRetentionDays: 30,
|
|
/**
|
|
* A bot's schedules (`cron_jobs`): how many it can have, and the
|
|
* shortest gap between two runs, so a schedule can't flood the queue.
|
|
*/
|
|
CronJobMaxPerBot: 20,
|
|
/**
|
|
* A worker asking another bot directly, through the coordinator's gate:
|
|
* how deep asks may nest (a bot answering one asking someone else), how
|
|
* many one bot may have open at once for a user, and how large its
|
|
* brief and the coordinator's reason may be.
|
|
*/
|
|
AskMaxDepth: 2,
|
|
AskMaxOpenPerBot: 3,
|
|
AskBriefMaxChars: 8000,
|
|
AskReasonMaxChars: 600,
|
|
/**
|
|
* How many turns the coordinator gets to return a usable decision: one
|
|
* more than this and the request fails rather than being guessed at.
|
|
*/
|
|
AskGateAttempts: 2,
|
|
/**
|
|
* How far back a run is shown the requests its bot made to the crew
|
|
* from the same place (`grabCrewRequests`), and how many at most.
|
|
*/
|
|
CrewRequestsRecentMs: 6 * 60 * 60 * 1000,
|
|
CrewRequestsListed: 8,
|
|
/**
|
|
* Files an answer may have copied over to the bot that asked
|
|
* (`shareAskFiles`); refs past it are left as written.
|
|
*/
|
|
AskSharedFilesMax: 30,
|
|
/**
|
|
* Finished asks are deleted after this many days, and past this many in
|
|
* one place (a workspace, or bots' own chats) the oldest finished ones
|
|
* go: the defaults, each with the most an install may set
|
|
* (`ask_keep_days`, `ask_max_per_place`, Settings > General).
|
|
*/
|
|
AskKeepDays: 30,
|
|
AskKeepDaysMax: 3650,
|
|
AskMaxPerPlace: 200,
|
|
AskMaxPerPlaceMax: 10000,
|
|
CronJobMinIntervalMs: 5 * 60 * 1000,
|
|
/**
|
|
* Due schedules queued per tick of the `run-cron-jobs` cron.
|
|
*/
|
|
CronJobBatchSize: 50,
|
|
/**
|
|
* A bot's hooks (`bot_hooks`): how many one user gives one bot, the
|
|
* largest body a call may send, how many calls a minute one hook and
|
|
* one address may make, how many calls join one waiting run before
|
|
* the next queues a run of its own, and how long calls are kept by
|
|
* default (the install may set its own, `hook_events_keep_days`, up to
|
|
* `BotHookEventsKeepDaysMax`).
|
|
*/
|
|
BotHookMaxPerBot: 20,
|
|
BotHookMaxPayloadBytes: 64 * 1024,
|
|
BotHookRateLimit: 30,
|
|
BotHookIpRateLimit: 120,
|
|
BotHookMaxEventsPerRun: 20,
|
|
BotHookEventsKeepDays: 30,
|
|
BotHookEventsKeepDaysMax: 3650,
|
|
/**
|
|
* Logs (Activity) are deleted after this many days by the daily
|
|
* `prune-logs` cron: the default, with the most an install may set
|
|
* (`logs_keep_days`, Settings > General).
|
|
*/
|
|
LogsKeepDays: 90,
|
|
LogsKeepDaysMax: 3650,
|
|
/**
|
|
* How many hook calls a list loads at once, and how much of each call's
|
|
* payload and response a list shows (the whole of both opens on one).
|
|
*/
|
|
BotHookCallsPageSize: 20,
|
|
BotHookCallPreviewChars: 400,
|
|
/**
|
|
* A call naming a delivery already taken this recently isn't run again.
|
|
*/
|
|
BotHookIdempotencyWindowMs: 24 * 60 * 60 * 1000,
|
|
/**
|
|
* A hook's runner (the process that calls it, kept up by the
|
|
* `sync-computers` cron): the longest command and folder it may hold,
|
|
* how much of its log is kept, and how much of the log the app reads
|
|
* back to say why it exited.
|
|
*/
|
|
BotHookRunnerCommandMaxLength: 2000,
|
|
BotHookRunnerDirMaxLength: 300,
|
|
BotHookRunnerLogMaxBytes: 512 * 1024,
|
|
BotHookRunnerErrorChars: 400,
|
|
/**
|
|
* How long the app waits for its ensure command on a computer.
|
|
*/
|
|
BotHookRunnerExecTimeoutMs: 30 * 1000,
|
|
/**
|
|
* How long a stopped runner gets to end after SIGTERM, before it's
|
|
* killed.
|
|
*/
|
|
BotHookRunnerStopMs: 5 * 1000,
|
|
/**
|
|
* Tasks (the crew's to-do list, `tasks`): the longest title, brief and
|
|
* note, how many one bot or workspace can hold, and how many files one
|
|
* task carries. A brief is where an unattended run's whole plan lives
|
|
* (they run with `UnattendedMaxToolSteps` and nobody watching), so it
|
|
* holds a real work order: steps, paths, what to do when a check fails.
|
|
*/
|
|
TaskTitleMaxLength: 120,
|
|
TaskDescriptionMaxLength: 20000,
|
|
TaskNoteMaxLength: 4000,
|
|
TaskMaxPerScope: 200,
|
|
TaskMediaMaxPerTask: 20,
|
|
/**
|
|
* Parts one workspace-wide task can be split into, so a crew that keeps
|
|
* splitting never turns one task into a hundred. A part can't be split
|
|
* again, so this is the whole tree.
|
|
*/
|
|
TaskSubtaskMaxPerParent: 12,
|
|
/**
|
|
* Tasks a workspace page lists at a time, before the View all button
|
|
* opens the rest in a modal: wide ones first, then each bot's.
|
|
*/
|
|
TaskSectionShown: 5,
|
|
/**
|
|
* Subtasks a workspace-wide task's own panel lists inline, before its
|
|
* View all button opens every one of them in a modal.
|
|
*/
|
|
TaskSubtasksShown: 7,
|
|
/**
|
|
* Open tasks a chat reply carries as a digest for its reminder, and how
|
|
* many `list_tasks` hands back at once.
|
|
*/
|
|
TaskReminderDigestCount: 3,
|
|
TaskListToolLimit: 20,
|
|
/**
|
|
* Automatic model picks (`rankAutoModels`). A free model from outside
|
|
* `AutoModelVendorPreference` must have at least this much context, and
|
|
* this intelligence index or, unscored, this many billion parameters.
|
|
* It is a floor for models that say what they have, so a model without
|
|
* a declared window is never filtered on it (`HarnessUnknownContextWindow`
|
|
* is what a run assumes for one of those).
|
|
*/
|
|
HarnessAutoMinContext: 32_000,
|
|
/**
|
|
* The window a run assumes for a model whose catalog never said
|
|
* (`run-text-loop.ts`): a custom provider lists ids and nothing else.
|
|
* It is a guess, and the provider has the last word: a model that is
|
|
* smaller refuses a prompt past its real window, and that refusal
|
|
* stops the run with the provider's own message, which names the
|
|
* limit to set on the model (`Settings > Models`). Never learn a
|
|
* smaller window into this: a run that quietly assumed 131072 here
|
|
* gave a model a 91,750-token working context and went blind.
|
|
*/
|
|
HarnessUnknownContextWindow: 1_000_000,
|
|
/**
|
|
* A provider's declared window (`harness_providers.context_length`),
|
|
* handed to the models it lists without one of their own: the least and
|
|
* most a super admin may set, so a typo can't ask for a 40-token window.
|
|
*/
|
|
HarnessProviderContextMin: 1_000,
|
|
HarnessProviderContextMax: 10_000_000,
|
|
HarnessAutoMinScore: 12,
|
|
HarnessAutoMinSizeB: 20,
|
|
/**
|
|
* Models tried per harness call before giving up (the pick, its
|
|
* fallback models, then automatic picks).
|
|
*/
|
|
HarnessMaxCandidates: 6,
|
|
HarnessRequestTimeoutMs: 3 * 60 * 1000,
|
|
/**
|
|
* How long a provider may take to send the whole response body once its
|
|
* headers have arrived. The request timeout above bounds only the wait
|
|
* for headers; a streamed answer (speech, a video) keeps sending past it,
|
|
* so the body gets this generous deadline of its own rather than being
|
|
* cut off mid-stream (M2).
|
|
*/
|
|
HarnessBodyTimeoutMs: 10 * 60 * 1000,
|
|
/**
|
|
* One tool call gives up after this long unless the tool names its own
|
|
* deadline (`HarnessTool.timeout_ms`, `null` for none), so a tool that
|
|
* ignores its own limits can't stall the run. Its result comes back as
|
|
* an error the model can work around.
|
|
*/
|
|
HarnessToolTimeoutMs: 10 * 60 * 1000,
|
|
/**
|
|
* A model that rate limits or fails is skipped for this long, unless
|
|
* the provider says when to come back (capped at the max).
|
|
*/
|
|
HarnessCooldownMs: 60 * 1000,
|
|
HarnessMaxCooldownMs: 24 * 60 * 60 * 1000,
|
|
/**
|
|
* How long a model (or a provider, for a bad key or no credits) that
|
|
* failed is passed over before it is tried again, provider's
|
|
* `Retry-After` included. The install may save its own
|
|
* (`harness_model_rest_seconds`, Settings > General), read through
|
|
* `grabModelRestMs`. One failure once benched the pinned model for an
|
|
* hour and every reply ran on a weak free model meanwhile.
|
|
*/
|
|
HarnessModelRestMs: 2 * 60 * 1000,
|
|
HarnessModelRestMinSeconds: 10,
|
|
HarnessModelRestMaxSeconds: 60 * 60,
|
|
/**
|
|
* The shortest bench a retryable failure earns, even when the provider
|
|
* sends `Retry-After: 0` or a date already past: without a floor the
|
|
* model is tried again on the very next turn and fails again (L2).
|
|
*/
|
|
HarnessRetryAfterFloorMs: 5 * 1000,
|
|
/**
|
|
* Models the text harness tries, in order, after its pick and before
|
|
* the automatic free picks (`fallback_model_ids` in its options).
|
|
*/
|
|
HarnessTextFallbackModelsMax: 3,
|
|
/**
|
|
* Model turns in one text run before it must stop and report.
|
|
* Unlimited by default: a run is bounded by the job's deadline and its
|
|
* token budget instead, and stops when the work is done. The install
|
|
* may save its own limit, or keep it unlimited (the
|
|
* `harness_max_tool_steps` setting, Settings > General), which wins
|
|
* over this one; a task run reads it through
|
|
* `grabHarnessMaxToolSteps`.
|
|
*/
|
|
HarnessMaxToolSteps: UnlimitedLimit,
|
|
/**
|
|
* Model turns a routine run or a hook call may take: nobody watches
|
|
* them, and one routine run once spent 39M tokens checking a site.
|
|
* Unlimited by default, like a task's: the token budget and the job's
|
|
* deadline end it. The install may save its own
|
|
* (`unattended_max_tool_steps`), read through
|
|
* `grabUnattendedMaxToolSteps`; a brief's own `max_steps` can only
|
|
* lower it.
|
|
*/
|
|
UnattendedMaxToolSteps: UnlimitedLimit,
|
|
/**
|
|
* Prompt tokens one run may spend in all (every turn resends the
|
|
* prompt): past it the next turn is the wrap up. The one bound that
|
|
* always holds, since step limits are unlimited by default, for runs
|
|
* whose turns are large. The install may save its own
|
|
* (`run_max_prompt_tokens`), read through `grabRunMaxPromptTokens`.
|
|
*
|
|
* 4M, not 40M: at 40M a run could spend 195 turns re-reading its own
|
|
* notes and still be under the ceiling, which is what one task run did
|
|
* (30M tokens, zero rows written, Nov 2026). A run that needs more than
|
|
* 4M is a run to split, and an install can raise it to
|
|
* `RunMaxPromptTokensMax`.
|
|
*/
|
|
RunMaxPromptTokens: 4_000_000,
|
|
/**
|
|
* Share of its token budget a run is told about, once: past half of
|
|
* it, every further turn costs what the answer costs, so it lands the
|
|
* work rather than going on gathering (`tokensLowNote`).
|
|
*/
|
|
HarnessRunTokensWarnShare: 0.5,
|
|
/**
|
|
* Share of its token budget a run may spend before it is told, once,
|
|
* that nothing has been produced yet: a quarter in, it still has room
|
|
* to land the work, and a run that spends the whole budget measuring
|
|
* ends with a report of what it found and none of what it was asked for
|
|
* (`commitEarlyNote`). 0 turns it off.
|
|
*/
|
|
HarnessRunTokensCommitShare: 0.25,
|
|
/**
|
|
* How many times an identical call may fail before the run is answered
|
|
* from that failure instead of paying for it again: one retry (a
|
|
* transient error is worth retrying), then the note that the call
|
|
* itself is wrong. A failing command was once repeated five times in a
|
|
* row, each repeat resending the whole transcript.
|
|
*/
|
|
HarnessSameFailureRetries: 1,
|
|
/**
|
|
* How many times the review may send an answer back to be written again
|
|
* before the run stops without an answer. A note fixes most answers; the
|
|
* second rewrite is for the one that dropped the claim but named a file
|
|
* that isn't there. Past this the answer is never sent and the job fails
|
|
* saying so (`reviewBotReply`): a reply claimed a resumed run was under
|
|
* way, was sent back for it, and came back byte for byte to the user.
|
|
*/
|
|
HarnessReviewRewrites: 2,
|
|
/**
|
|
* How many turns a run may spend retrying a closing card (a failed
|
|
* `ask_user`/`suggest_next_steps`, or a card put up beside other work)
|
|
* before the run ends on the answer it wrote. Without a bound a model
|
|
* told its card "was not created" re-asks, the once-per-run guard refuses
|
|
* the re-ask, and the same note loops for the whole token budget.
|
|
*/
|
|
MaxClosingRetries: 2,
|
|
/**
|
|
* How many messages a reply or task report may write without ending on
|
|
* `send_reply` before the run stops without sending one. A bare message
|
|
* is a draft, never the answer: the draft is sent back with the note
|
|
* that nothing went out. Past this the run fails honestly and the user
|
|
* gets Retry, rather than a message the app cannot stand behind.
|
|
*/
|
|
HarnessReplyDraftsMax: 2,
|
|
/**
|
|
* An optional tighter cap on the working context: how many tokens
|
|
* (estimated) of system prompt, tool definitions and transcript a run
|
|
* sends per turn before old tool output is trimmed. Unlimited by
|
|
* default, so the model's own window decides (minus the reserve it
|
|
* needs for its answer, `workingContextTokens`): an install that
|
|
* saved `harness_context_budget_tokens` asks for less, for a model
|
|
* whose window it pays for by the token. Every turn resends all of
|
|
* it, so a run that only trims at a 1M window pays for its whole
|
|
* history on every step; that is what this setting is for.
|
|
*/
|
|
HarnessContextBudgetTokens: UnlimitedLimit,
|
|
/**
|
|
* The least a saved working context may be: below it a run would trim
|
|
* the output it is reading right now (one full tool result is ~20000
|
|
* tokens, and the system prompt and tool definitions sit on top).
|
|
*/
|
|
HarnessContextBudgetMinTokens: 40_000,
|
|
HarnessContextBudgetMaxTokens: 1_000_000,
|
|
/**
|
|
* Run token budgets the settings page accepts.
|
|
*/
|
|
RunMaxPromptTokensMin: 100_000,
|
|
RunMaxPromptTokensMax: 100_000_000,
|
|
/**
|
|
* Longest tool result handed back to the model. Above
|
|
* `BotFileReadMaxChars` so a full read arrives whole, note and all: a
|
|
* 45 KB article body read in pieces is a body the run never holds.
|
|
*/
|
|
HarnessToolResultMaxChars: 60_000,
|
|
/**
|
|
* Longest result of a browser tool (`browser_*`, the computer's or a
|
|
* user's own browser): page snapshots and `browser_evaluate` output
|
|
* were the heaviest results a run kept resending.
|
|
*/
|
|
HarnessBrowserResultMaxChars: 16_000,
|
|
/**
|
|
* Extension tools (MCP servers, a user's browsers) are listed by name
|
|
* and loaded with `load_tools` only when their definitions together
|
|
* pass this many characters; below it they're simply all given.
|
|
*/
|
|
HarnessDeferToolsMinChars: 6000,
|
|
/**
|
|
* The bot's own tools (tasks, schedules, hooks, files, plans, crew,
|
|
* knowledgebases, graphics) are deferred the same way, but only when
|
|
* they are both this large and past `HarnessDeferBuiltinToolsShare` of
|
|
* the working context: at 25 tools they were ~33k tokens of every
|
|
* turn, which on a 131k-window model left the conversation about 50k
|
|
* to work in. Deferring costs a turn to load them, so a model with a
|
|
* window that holds them comfortably keeps them inline.
|
|
*/
|
|
HarnessDeferBuiltinToolsMinChars: 20_000,
|
|
/**
|
|
* Share of the working context the bot's own tool definitions must
|
|
* pass before they are deferred rather than sent every turn.
|
|
*/
|
|
HarnessDeferBuiltinToolsShare: 0.1,
|
|
/**
|
|
* How much of a deferred tool's description its line in the list
|
|
* shows.
|
|
*/
|
|
HarnessDeferredToolLineChars: 140,
|
|
/**
|
|
* Images one tool call may hand back (the rest are dropped), and how
|
|
* many of the newest tool images stay in a run's transcript: every
|
|
* step resends them, so older screenshots give way to their reading
|
|
* (when one was made) or a note.
|
|
*/
|
|
HarnessToolMaxImages: 4,
|
|
HarnessToolImagesKept: 3,
|
|
/**
|
|
* Steps left when a run is told, once, that it's nearly out, so it
|
|
* saves its report before the wrap up ends it (two runs in a row once
|
|
* ran out with the report unwritten). Only in runs of at least
|
|
* `HarnessStepsLowMinSteps` steps, where the warning still leaves room
|
|
* to act on it. Long runs are warned earlier, a share of their budget
|
|
* (`HarnessStepsLowWarnShare`) in, never below this many steps.
|
|
*/
|
|
HarnessStepsLowWarning: 5,
|
|
HarnessStepsLowMinSteps: 15,
|
|
/**
|
|
* Share of a run's steps it is warned to save with: a tenth of a 200
|
|
* step run (20) rather than the 5 a short reply gets, so a long audit
|
|
* has room to write its report after measuring.
|
|
*/
|
|
HarnessStepsLowWarnShare: 0.1,
|
|
/**
|
|
* Trimmed turns between the two notes a run gets about it
|
|
* (`contextTrimmedNote`): often enough to connect a missing earlier
|
|
* reading to its cause, rarely enough to cost nothing. A turn is
|
|
* trimmed when earlier tool output no longer fits the working context.
|
|
*/
|
|
HarnessTrimNoteEvery: 3,
|
|
/**
|
|
* Image readings kept across runs: one upload read once, not once per
|
|
* reply (`media-readings`).
|
|
*/
|
|
HarnessMediaReadingsCached: 100,
|
|
/**
|
|
* Longest side, in pixels, of an image before a vision read: a 1920
|
|
* screenshot is read as a 1024 one, which is a third of the image
|
|
* tokens and two to three times as quick, and still shows the text a
|
|
* reading is for. Images already within it are sent untouched.
|
|
*/
|
|
HarnessVisionImageMaxSide: 1024,
|
|
/**
|
|
* Upload cap for audio sent to transcription.
|
|
*/
|
|
HarnessMaxAudioBytes: 25 * 1024 * 1024,
|
|
/**
|
|
* Reference images one `generate_image` call passes on, and the
|
|
* largest each may be.
|
|
*/
|
|
ImageReferenceMaxCount: 4,
|
|
ImageReferenceMaxBytes: 10 * 1024 * 1024,
|
|
/**
|
|
* The largest image downloaded from a URL a provider hands back (H4):
|
|
* a generated image is a few MB, so a body past this is refused rather
|
|
* than buffered whole into the app's memory.
|
|
*/
|
|
HarnessImageDownloadMaxBytes: 25 * 1024 * 1024,
|
|
/**
|
|
* `generate_video`: the still images one call passes on (first and
|
|
* last frame, or references to follow), the videos it passes to change
|
|
* and the largest each video may be (sent inline, as a `data:` URL).
|
|
*/
|
|
VideoImageMaxCount: 4,
|
|
VideoSourceMaxCount: 2,
|
|
VideoSourceMaxBytes: 30 * 1024 * 1024,
|
|
/**
|
|
* A video is made as a job at the provider: asked for, then checked on
|
|
* every `VideoPollIntervalMs` until it's done, for at most
|
|
* `VideoMaxWaitMs` (below `HarnessToolTimeoutMs`, so the tool call
|
|
* gets to say what happened).
|
|
*/
|
|
VideoPollIntervalMs: 10 * 1000,
|
|
VideoMaxWaitMs: 8 * 60 * 1000,
|
|
/**
|
|
* The largest video downloaded from a provider (M9): each output is
|
|
* streamed to disk and cut past this, so one call can't fill memory or
|
|
* the data volume with an unbounded body.
|
|
*/
|
|
VideoOutputMaxBytes: 200 * 1024 * 1024,
|
|
/**
|
|
* Room left inside `HarnessToolTimeoutMs` for the video downloads after
|
|
* the job is ready (M9): the wait deadline is the tool's timeout minus
|
|
* this, so submitting, waiting and downloading all fit in one tool call
|
|
* rather than the wait running past it and being cut off mid-download.
|
|
*/
|
|
VideoDownloadMarginMs: 2 * 60 * 1000,
|
|
/**
|
|
* `transform_image`: the largest source file and source (in pixels) it
|
|
* opens, the longest side a result may have, the steps one call takes,
|
|
* and the longest side of the preview the bot looks at afterwards.
|
|
*/
|
|
ImageTransformMaxBytes: 25 * 1024 * 1024,
|
|
ImageTransformMaxInputPixels: 100_000_000,
|
|
ImageTransformMaxDimension: 8192,
|
|
ImageTransformMaxOperations: 12,
|
|
ImageTransformPreviewMaxSide: 1024,
|
|
/**
|
|
* Connecting to an MCP server (a computer) gives up after this long.
|
|
*/
|
|
McpConnectTimeoutMs: 15 * 1000,
|
|
/**
|
|
* One MCP tool call gives up after this long without progress.
|
|
*/
|
|
McpToolTimeoutMs: 5 * 60 * 1000,
|
|
/**
|
|
* One connector tool call gives up after this long. A provider bills per
|
|
* action, so this sits beside the per-run cap rather than in place of it.
|
|
*/
|
|
ConnectorToolTimeoutMs: 5 * 60 * 1000,
|
|
/**
|
|
* How many connector actions one run may take, to any provider, before
|
|
* its calls are refused: a search loop in Gmail is billed per call and
|
|
* would otherwise run to the step limit.
|
|
*/
|
|
ConnectorActionsPerRun: 50,
|
|
/**
|
|
* The most an install may raise that to: a provider bills per action, so
|
|
* the ceiling is what one run can cost.
|
|
*/
|
|
ConnectorActionsPerRunMax: 500,
|
|
/**
|
|
* How long a connect link stays good. The card in its message says it
|
|
* expired after this, and a new call makes another.
|
|
*/
|
|
ConnectorRequestTtlMs: 15 * 60 * 1000,
|
|
/**
|
|
* How long a provider session (one MCP endpoint per account) is kept
|
|
* before it is made again. Providers expire them on their own schedule;
|
|
* this only keeps the cache from outliving the truth.
|
|
*/
|
|
ConnectorSessionTtlMs: 25 * 60 * 1000,
|
|
/**
|
|
* When a provider can't pin one account to a session, its tools run
|
|
* through REST instead. This is how long that is remembered before a
|
|
* session is tried again.
|
|
*/
|
|
ConnectorRestRetryMs: 60 * 60 * 1000,
|
|
/**
|
|
* How many of a connection's apps one page lists. One connection can
|
|
* hold thousands, so the page never reads them all at once.
|
|
*/
|
|
ConnectorAppsPageSize: 24,
|
|
/**
|
|
* Listing an MCP server's tools pages at most this many times and keeps
|
|
* at most this many tools (M11): a server that keeps handing back a
|
|
* cursor, or the same one again, would otherwise page forever.
|
|
*/
|
|
McpToolListMaxPages: 50,
|
|
McpToolListMaxTools: 500,
|
|
/**
|
|
* A bash command on a computer (`computer_bash`) is killed there, with
|
|
* everything it started, after at most this long: 0 leaves it no time
|
|
* limit at all, so a script may run for hours. The bot may name its own
|
|
* `timeout`, which a limit here still caps. Long work holds the
|
|
* computer (one task run per computer), and Stop ends it.
|
|
*/
|
|
ComputerCommandMaxSeconds: 0,
|
|
/**
|
|
* What a computer's command hands the bot back (its start and end), and
|
|
* what `computer_read_file` reads: lines at a time, each line cut
|
|
* past `ComputerReadFileMaxLineChars`, files up to
|
|
* `ComputerReadFileMaxBytes`. `computer_write_file` and
|
|
* `computer_edit_file` take files up to `ComputerWriteFileMaxChars`.
|
|
* Never above `HarnessToolResultMaxChars`: the harness cuts there too,
|
|
* and a larger cap only meant the tool's own head-and-tail note was
|
|
* thrown away by the second cut.
|
|
*/
|
|
ComputerCommandMaxOutputChars: 40_000,
|
|
ComputerReadFileMaxLines: 2000,
|
|
ComputerReadFileMaxLineChars: 2000,
|
|
ComputerReadFileMaxBytes: 10 * 1024 * 1024,
|
|
ComputerWriteFileMaxChars: 5 * 1024 * 1024,
|
|
/**
|
|
* MCP servers set up in Settings, under MCPs: a stdio server runs in
|
|
* `DATA_DIR/<McpDataDir>/<id>` (its setup installs there, so it
|
|
* survives updates), its setup command may take `McpSetupTimeoutMs`,
|
|
* and it's stopped after `McpStdioIdleMs` without a call.
|
|
*/
|
|
McpDataDir: "mcp",
|
|
McpSetupTimeoutMs: 10 * 60 * 1000,
|
|
McpStdioIdleMs: 10 * 60 * 1000,
|
|
/**
|
|
* A custom tool (Settings, under Tools) gives up after its own timeout,
|
|
* `CustomToolDefaultTimeoutMs` when it has none, never past
|
|
* `CustomToolMaxTimeoutMs`.
|
|
*/
|
|
CustomToolDefaultTimeoutMs: 60 * 1000,
|
|
CustomToolMaxTimeoutMs: 10 * 60 * 1000,
|
|
/**
|
|
* A custom tool's answer is read up to this many bytes (M11): an
|
|
* unbounded `res.text()` (then pretty-printed, doubling it) could fill
|
|
* memory. Past the cap the answer is cut and says so.
|
|
*/
|
|
CustomToolResponseMaxBytes: 2 * 1024 * 1024,
|
|
/**
|
|
* Skills (Settings, under Skills): how long one's body may be, and how
|
|
* much of it `load_skill` hands back in one call. A runbook past that
|
|
* is worth splitting into two skills. These are the defaults: the
|
|
* install sets its own on Settings > General (`skill_body_max_chars`,
|
|
* `skill_body_shown_chars`, `grab-skill-limits.ts`), never past
|
|
* `SkillBodyLimitMax`.
|
|
*/
|
|
SkillBodyMaxChars: 60000,
|
|
SkillBodyShownChars: 30000,
|
|
SkillBodyLimitMax: 1000000,
|
|
SkillDescriptionMaxChars: 300,
|
|
/**
|
|
* How long the super admin has to confirm an MCP server or tool the
|
|
* coordinator proposed (`extension_proposals`). After that its card
|
|
* reads expired and the bot has to propose it again, so a card left in
|
|
* an old thread can't be confirmed weeks later.
|
|
*/
|
|
ExtensionProposalTtlMs: 24 * 60 * 60 * 1000,
|
|
/**
|
|
* A proposal's background check: the bot's summary, and the sources it
|
|
* read (at least one).
|
|
*/
|
|
ExtensionResearchMinChars: 40,
|
|
ExtensionResearchMaxChars: 6000,
|
|
ExtensionResearchSourcesMax: 10,
|
|
/**
|
|
* Extension bundles (Settings > MCP servers, Tools, Skills,
|
|
* Knowledgebases): the most items one imported file may hold, and the
|
|
* most documents one knowledgebase item carries.
|
|
*/
|
|
ExtensionBundleMaxItems: 500,
|
|
ExtensionBundleMaxDocuments: 2000,
|
|
/**
|
|
* The biggest bundle the import modal reads, before parsing.
|
|
*/
|
|
ExtensionBundleMaxBytes: 25_000_000,
|
|
/**
|
|
* `search_computers`: how long the command may run on each computer,
|
|
* and how much of each computer's output the bot reads.
|
|
*/
|
|
ComputerSearchTimeoutMs: 30 * 1000,
|
|
ComputerSearchMaxOutputChars: 4000,
|
|
/**
|
|
* `capture_secret`: the longest value it saves (a file or a command's
|
|
* output; longer is refused, never cut), and how long the command may
|
|
* run.
|
|
*/
|
|
CapturedSecretMaxChars: 8000,
|
|
CaptureSecretTimeoutMs: 30 * 1000,
|
|
/**
|
|
* How many of a job's latest steps (`bots_queue_updates`) the
|
|
* working-on panel shows.
|
|
*/
|
|
BotJobUpdatesShown: 12,
|
|
/**
|
|
* How long a finished job's steps stay before they're cleared
|
|
* (`clear-job-steps` cron). Long enough for every process's live relay
|
|
* to have pushed the last ones (`LiveRelayPollMs`).
|
|
*/
|
|
BotJobStepsKeepMs: 60 * 1000,
|
|
/**
|
|
* The debug view's detailed trace of a job (`bot_job_traces`, read and
|
|
* written only by `process-bot-job`): how many rows one job keeps, how
|
|
* much of any one text, and how long the rows stay before the daily
|
|
* `prune-bot-traces` deletes them (the install may set its own, the app
|
|
* setting `bot_trace_keep_days`, up to `BotTraceKeepDaysMax`).
|
|
*/
|
|
BotTraceRowsPerJob: 400,
|
|
BotTraceTextMaxChars: 4000,
|
|
BotTraceArgumentsMaxChars: 2000,
|
|
BotTraceResultMaxChars: 8000,
|
|
BotTraceKeepDays: 7,
|
|
BotTraceKeepDaysMax: 365,
|
|
/**
|
|
* How many of a session's jobs the debug view offers, newest first.
|
|
*/
|
|
BotTraceJobsPerSession: 5,
|
|
/**
|
|
* How often each server process reads new bot messages, job steps and
|
|
* bot changes from the database for its own sockets (`liveRelay`).
|
|
*/
|
|
LiveRelayPollMs: 1500,
|
|
/**
|
|
* While a reply is due in the open conversation, how often the page
|
|
* checks for new messages itself, in case a live push was missed (the
|
|
* socket was down) and the thinking row would otherwise stay up.
|
|
*/
|
|
BotReplyCatchUpMs: 5000,
|
|
/**
|
|
* How many of a session's latest messages that check reads.
|
|
*/
|
|
BotReplyCatchUpMessages: 20,
|
|
/**
|
|
* How long one read of a chip's view (the next steps a bot suggested,
|
|
* the questions it asked) may hang before it is dropped and asked
|
|
* again: a chip read as its message was pushed, on a phone waking up,
|
|
* once said "(not available)" until the page was reloaded.
|
|
*/
|
|
BotRefViewTimeoutMs: 8000,
|
|
/**
|
|
* How long to wait between those reads, one more read after each, so
|
|
* a ref named before its row was written heals itself in seconds.
|
|
*/
|
|
BotRefViewRetryDelaysMs: [800, 2500],
|
|
/**
|
|
* A window regaining focus and its tab becoming visible are often one
|
|
* return, and each may fire more than once: a second signal this soon
|
|
* after the first (a refocus, a socket remount) is the same return.
|
|
*/
|
|
RefocusGapMs: 1000,
|
|
/**
|
|
* How much of the conversation a bot sees when it replies.
|
|
*/
|
|
BotReplyHistoryMessages: 40,
|
|
/**
|
|
* How many of a session's latest messages the conversation page
|
|
* renders with; older ones load as the thread is scrolled up.
|
|
*/
|
|
ConversationFirstMessages: 30,
|
|
/**
|
|
* How many older messages each scroll to the top of the thread loads.
|
|
*/
|
|
ConversationOlderMessages: 30,
|
|
/**
|
|
* The phone's pull-to-reload gesture on the thread, in pixels: how far
|
|
* the finger travels before the gesture counts as a pull rather than a
|
|
* tap (`PullToRefreshMinPx`), how much of that travel shows
|
|
* (`PullToRefreshResistance`), and the room it opens under the newest
|
|
* message (`PullToRefreshRoomPx`), which no drag opens deeper.
|
|
*/
|
|
PullToRefreshMinPx: 8,
|
|
PullToRefreshResistance: 0.6,
|
|
PullToRefreshRoomPx: 64,
|
|
/**
|
|
* How far short of the column's edge the content still counts as the
|
|
* thread's end for the pull: a phone's fractional device pixel ratio
|
|
* leaves it a fraction of a pixel short, and a thumb that comes to rest
|
|
* a pixel above the newest message is at the bottom too.
|
|
*/
|
|
PullToRefreshEndSlackPx: 2,
|
|
/**
|
|
* How long that room must stay full, in milliseconds, before letting go
|
|
* reloads: an exhausted thread reaches the limit by accident too easily,
|
|
* and keeping the finger there says the reload was meant.
|
|
*/
|
|
PullToRefreshHoldMs: 200,
|
|
/**
|
|
* The shortest the reloading icon stays up, in milliseconds: a reload
|
|
* the server answers at once still says it happened.
|
|
*/
|
|
PullToRefreshMinLoadingMs: 1000,
|
|
/**
|
|
* The phone's sideways swipes, anywhere on a page, in pixels: how far
|
|
* the finger travels before the drag counts as a swipe at all
|
|
* (`MobileSwipeMinPx`), and how much more sideways than up or down it
|
|
* has to be (`MobileSwipeAxisRatio`), so a diagonal drag that is
|
|
* mostly scrolling stays a scroll.
|
|
*/
|
|
MobileSwipeMinPx: 50,
|
|
MobileSwipeAxisRatio: 1.5,
|
|
/**
|
|
* How long the finger may be down before the drag stops counting as a
|
|
* swipe, in milliseconds: a swipe is a flick, while a finger that has
|
|
* rested on the page is scrolling, selecting text or reaching for a
|
|
* quote, not changing panes.
|
|
*/
|
|
MobileSwipeMaxMs: 800,
|
|
/**
|
|
* The most model calls a message's details modal lists one by one. A
|
|
* long task can take hundreds; the totals still count every one.
|
|
*/
|
|
MessageDetailsMaxCalls: 200,
|
|
/**
|
|
* The most model calls and failed calls a message's details report
|
|
* lists one by one when it's copied (the Details modal's icon): a
|
|
* whole report for a bug report, not only the first calls the modal
|
|
* shows. The totals count every call either way.
|
|
*/
|
|
MessageDetailsCopyMaxCalls: 2000,
|
|
/**
|
|
* The most characters of a provider's error kept on a failed model
|
|
* call (`harness_call_failures.error`), shown in the message's details.
|
|
*/
|
|
HarnessFailureErrorMaxChars: 2000,
|
|
/**
|
|
* Days of usage the usage page totals by default, and the most it will
|
|
* total at once.
|
|
*/
|
|
UsageDefaultDays: 30,
|
|
UsageMaxDays: 365,
|
|
/**
|
|
* Models listed per page on the usage page, the busiest first.
|
|
*/
|
|
UsageModelPageSize: 20,
|
|
/**
|
|
* How much of a bot's last message the rail's lists carry, as plain
|
|
* text (`messagePreview`): a row shows one line of it.
|
|
*/
|
|
RailPreviewMaxChars: 160,
|
|
/**
|
|
* A session with this many messages is closed when the user writes
|
|
* again, and the message starts the next one (carrying a summary).
|
|
* The install may save its own number (the `bot_session_max_messages`
|
|
* setting, Settings > General), read through `grabBotSessionMaxMessages`.
|
|
*/
|
|
BotSessionMaxMessages: 120,
|
|
/**
|
|
* The most messages a saved session length may ask for.
|
|
*/
|
|
BotSessionMaxMessagesMax: 2000,
|
|
/**
|
|
* The longest chat message a user may send, in characters of the
|
|
* composer's markdown (formatting and `[bot:ID]` refs count). The
|
|
* install may save its own number (the `bot_message_max_chars`
|
|
* setting, Settings > General), read through `grabBotMessageMaxChars`.
|
|
*/
|
|
BotMessageMaxChars: 20000,
|
|
/**
|
|
* The most characters a saved message length may allow.
|
|
*/
|
|
BotMessageMaxCharsMax: 200000,
|
|
/**
|
|
* How much of a closed session the bot reads to summarize it, and how
|
|
* long the summary may be.
|
|
*/
|
|
BotSessionSummaryMessages: 80,
|
|
BotSessionSummaryMaxChars: 4000,
|
|
/**
|
|
* The first messages of a session the bot reads to name and summarize
|
|
* it once the first reply is in, how much of each message it reads (a
|
|
* pasted brief can run to tens of thousands of characters, and the
|
|
* naming turn is a model call like any other), and how long its title
|
|
* may be.
|
|
*/
|
|
BotSessionNameMessages: 4,
|
|
BotSessionNameMessageChars: 2000,
|
|
BotSessionTitleMaxChars: 80,
|
|
/**
|
|
* Sessions listed per page in a conversation's sessions modal.
|
|
*/
|
|
BotSessionsPageSize: 30,
|
|
/**
|
|
* What a bot's search of its earlier sessions in a conversation
|
|
* (`search_past_sessions`) returns at most, and how much of each
|
|
* message it shows around the match.
|
|
*/
|
|
PastSessionSearchLimit: 20,
|
|
PastSessionSnippetChars: 300,
|
|
/**
|
|
* Messages `read_past_session` returns per call, and how much of each.
|
|
*/
|
|
PastSessionReadMessages: 20,
|
|
PastSessionReadMessageChars: 2000,
|
|
/**
|
|
* Worker bots the rail lists, most recently visited first, before
|
|
* "See all bots".
|
|
*/
|
|
RailRecentBots: 5,
|
|
/**
|
|
* Workspaces the rail lists, most recently visited first, before
|
|
* "See all workspaces".
|
|
*/
|
|
RailRecentWorkspaces: 5,
|
|
/**
|
|
* Stones shown beside "See all bots" and "See all workspaces".
|
|
*/
|
|
RailSeeAllStones: 3,
|
|
/**
|
|
* Recent sessions the rail lists under the open bot, before "All
|
|
* sessions".
|
|
*/
|
|
RailRecentSessions: 5,
|
|
/**
|
|
* Recent sessions a workspace's dashboard shows.
|
|
*/
|
|
WorkspaceActivityItems: 6,
|
|
/**
|
|
* Tool turns a chat reply may take. Long work goes to a task instead.
|
|
* Unlimited by default, like a task's: the job's deadline and the
|
|
* token budget end it. The install may save its own limit (the
|
|
* `bot_reply_max_tool_steps` setting, Settings > General), which wins
|
|
* over this one; a reply reads it through `grabReplyMaxToolSteps`.
|
|
*/
|
|
BotReplyMaxToolSteps: UnlimitedLimit,
|
|
/**
|
|
* From this many characters, a bot message whose run called no tools
|
|
* shows "No tools used" under it (`MessageNoToolsChip`): a long report
|
|
* with nothing behind it was made up, and the user acted on one.
|
|
*/
|
|
MessageNoToolsMinChars: 400,
|
|
/**
|
|
* Messages a chat reply may send while it works (`send_message`):
|
|
* acknowledging something the user wrote meanwhile, a heads-up. Its
|
|
* answer still comes at the end.
|
|
*/
|
|
BotReplyInterimMessagesMax: 3,
|
|
/**
|
|
* The most steps a saved run limit may ask for, for a task run or a
|
|
* chat reply. A typo in the settings page can't turn one run into an
|
|
* hour of tool calls, and a huge limit still ends with a report.
|
|
*/
|
|
BotStepLimitMax: 10000,
|
|
/**
|
|
* The least steps a task run needs before it plans first (`planBotTask`):
|
|
* a shorter run's own first turn already is its plan. How long a plan
|
|
* may be is capped here too, since a model writes it. A plan is an
|
|
* economy, never a gate: a run whose plan can't be written just starts.
|
|
*/
|
|
BotTaskPlanMinSteps: 10,
|
|
BotTaskPlanMaxSteps: 12,
|
|
BotTaskPlanMaxGather: 8,
|
|
BotTaskPlanTextMaxChars: 400,
|
|
/**
|
|
* Chat attachments: per file, per message, and how much of a
|
|
* document's text a reply reads.
|
|
*/
|
|
BotAttachmentMaxBytes: 20 * 1024 * 1024,
|
|
BotAttachmentMaxFiles: 6,
|
|
BotAttachmentMaxTextChars: 40_000,
|
|
/**
|
|
* How much of a document's text is kept on its `media` row. A ceiling
|
|
* on the column itself: without it a 20 MB PDF left 20 MB of text in
|
|
* the database, even though a reply reads at most
|
|
* `BotAttachmentMaxTextChars` of it.
|
|
*/
|
|
BotAttachmentTextStoreMaxChars: 200000,
|
|
/**
|
|
* Only this many of the latest messages with files hand the files
|
|
* themselves to a reply; older ones are named.
|
|
*/
|
|
BotReplyAttachmentMessages: 4,
|
|
/**
|
|
* And only while they're within this many of the conversation's latest
|
|
* messages: a file from far back is named, not re-attached, so one old
|
|
* document isn't read from disk and resent in full on every reply of a
|
|
* long session (images are cheap now: `MediaReadings` reads each once).
|
|
*/
|
|
BotReplyAttachmentMaxAgeMessages: 20,
|
|
/**
|
|
* Longest HTML document a bot graphic (`bot_graphics`) may be.
|
|
*/
|
|
BotGraphicMaxChars: 200000,
|
|
/**
|
|
* Tallest a graphic grows inline in the thread (px) before it scrolls
|
|
* inside its frame.
|
|
*/
|
|
BotGraphicInlineMaxHeight: 640,
|
|
/**
|
|
* Largest text file (markdown, CSV, plain text) the file preview reads
|
|
* into the page (bytes); a bigger one is only offered to download.
|
|
*/
|
|
FilePreviewMaxTextBytes: 2 * 1024 * 1024,
|
|
/**
|
|
* Most rows of a CSV the file preview draws.
|
|
*/
|
|
FilePreviewMaxTableRows: 1000,
|
|
/**
|
|
* Most questions one `ask_user` card holds.
|
|
*/
|
|
BotQuestionMaxQuestions: 6,
|
|
/**
|
|
* Most options one question offers (its "Other" not counted).
|
|
*/
|
|
BotQuestionMaxOptions: 8,
|
|
/**
|
|
* Longest answer a user may type into a question's "Other".
|
|
*/
|
|
BotQuestionOtherMaxChars: 1000,
|
|
/**
|
|
* Most next steps one `suggest_next_steps` row offers.
|
|
*/
|
|
BotSuggestionMaxSteps: 4,
|
|
/**
|
|
* Longest one suggested next step may be (the text that fills the
|
|
* user's input).
|
|
*/
|
|
BotSuggestionStepMaxChars: 120,
|
|
/**
|
|
* Longest heading a bot may give its suggested next steps.
|
|
*/
|
|
BotSuggestionTitleMaxChars: 120,
|
|
/**
|
|
* Most steps one plan may hold (`create_plan`). Short enough that a
|
|
* user reads the whole thing before approving it.
|
|
*/
|
|
BotPlanMaxSteps: 10,
|
|
/**
|
|
* Longest title a plan may have.
|
|
*/
|
|
BotPlanTitleMaxChars: 120,
|
|
/**
|
|
* Longest goal a plan may state (what "done" means).
|
|
*/
|
|
BotPlanGoalMaxChars: 300,
|
|
/**
|
|
* Longest one plan step may be.
|
|
*/
|
|
BotPlanStepMaxChars: 240,
|
|
/**
|
|
* Longest line a bot may keep on a finished step, saying what it
|
|
* produced.
|
|
*/
|
|
BotPlanStepNoteMaxChars: 400,
|
|
/**
|
|
* Plans shown in a conversation's prompt as earlier ones, so a bot
|
|
* remembers work it already broke down.
|
|
*/
|
|
BotPlanPastShown: 3,
|
|
/**
|
|
* Longest dictation the composer records before it stops on its own.
|
|
*/
|
|
ComposerVoiceMaxMs: 5 * 60 * 1000,
|
|
/**
|
|
* Most bots or workspaces the composer's mention menu lists at once.
|
|
*/
|
|
ComposerMentionMaxItems: 6,
|
|
/**
|
|
* How long a message's copy button shows a check after it copied the
|
|
* message, before it goes back to the copy icon.
|
|
*/
|
|
CopyConfirmationMs: 1500,
|
|
/**
|
|
* Most of a bot message read aloud; the rest is cut.
|
|
*/
|
|
SpeechMaxChars: 4000,
|
|
/**
|
|
* Bot files: a bot's own directory and a workspace's shared one live
|
|
* under `DATA_DIR` (`DATA_DIR/bots/<id>`, `DATA_DIR/workspaces/<id>`),
|
|
* on the data volume, never on a computer.
|
|
*/
|
|
BotDataDir: "bots",
|
|
WorkspaceDataDir: "workspaces",
|
|
/**
|
|
* The per-owner quota when the General settings page has none saved.
|
|
*/
|
|
BotFileQuotaMb: 1024,
|
|
/**
|
|
* One file a bot writes in one call, and the most of a file a read
|
|
* hands back at once (the rest comes with an offset).
|
|
*/
|
|
BotFileWriteMaxChars: 200_000,
|
|
BotFileReadMaxChars: 55_000,
|
|
BotFileListMaxItems: 200,
|
|
BotFileNameMaxChars: 120,
|
|
BotFilePathMaxChars: 400,
|
|
/**
|
|
* Most folders deep a path may go, so nothing buries a file.
|
|
*/
|
|
BotFilePathMaxDepth: 8,
|
|
/**
|
|
* Most folders deep the files browser opens: a computer's workspace
|
|
* starts four down (`bots/<bot>/users/<user>`) before a bot's own
|
|
* folders begin.
|
|
*/
|
|
StorageBrowserMaxDepth: 16,
|
|
/**
|
|
* The files modal and the bot's file list: one page of them.
|
|
*/
|
|
BotFilesPageSize: 50,
|
|
/**
|
|
* The files browser at `/admin/files`: how many entries one folder
|
|
* shows, and the most of a file it hands back at once.
|
|
*/
|
|
StorageBrowserPageSize: 200,
|
|
StorageBrowserReadMaxBytes: 50 * 1024 * 1024,
|
|
/**
|
|
* The database browser at `/admin/settings/database`: how many records
|
|
* of a table one page shows, how much of a value a cell carries before
|
|
* the rest waits behind its record's modal, and the most of one value
|
|
* that modal shows (a whole media row or job checkpoint is not meant
|
|
* to be rendered).
|
|
*/
|
|
DatabaseBrowserPageSize: 50,
|
|
DatabaseBrowserCellMaxChars: 400,
|
|
DatabaseBrowserValueMaxChars: 20000,
|
|
/**
|
|
* The most words one search matches in the database browser.
|
|
*/
|
|
DatabaseBrowserMaxSearchWords: 8,
|
|
/**
|
|
* The most a bot copies off a computer into its own files in one
|
|
* call, so a folder of raw evidence can't fill the data volume.
|
|
*/
|
|
BotFileImportMaxBytes: 20 * 1024 * 1024,
|
|
/**
|
|
* The most a bot copies from its own files onto a computer in one call
|
|
* (`export_file`), the other direction of `BotFileImportMaxBytes`. The
|
|
* bytes go base64 encoded in one request, so this stays well under the
|
|
* agent's own body limit.
|
|
*/
|
|
BotFileExportMaxBytes: 20 * 1024 * 1024,
|
|
/**
|
|
* The most file paths one brief is checked for at the start of a task
|
|
* run (`namedFiles`), the reconciliation that says where a source the
|
|
* brief names actually is. A brief naming more than this is not about
|
|
* its files.
|
|
*/
|
|
NamedFilesMax: 5,
|
|
/**
|
|
* Ingesting a knowledgebase document: how much text one chunk holds,
|
|
* how much of the previous chunk it repeats, and the largest file it
|
|
* reads at all (also the largest attachment a reply reads).
|
|
*/
|
|
ChunkTargetChars: 1200,
|
|
ChunkOverlapChars: 200,
|
|
IngestMaxBytes: 20 * 1024 * 1024,
|
|
/**
|
|
* The fixed width of every vector, whatever the embedding model
|
|
* returns: shorter vectors are padded with zeros and longer ones cut,
|
|
* then all are normalized. Changing it needs
|
|
* `bunx bun-sqlite schema --vector` and a full re-ingest.
|
|
*/
|
|
EmbeddingDimensions: 1536,
|
|
/**
|
|
* Texts sent to the embedding model per call, and per run of the
|
|
* ingestion worker.
|
|
*/
|
|
EmbeddingBatchSize: 32,
|
|
EmbeddingMaxInputChars: 8000,
|
|
/**
|
|
* How many chunks a knowledgebase search returns, and how many more it
|
|
* asks the vector index for before filtering to the run's ones.
|
|
*/
|
|
RagTopChunks: 8,
|
|
RagOverFetch: 4,
|
|
RagMaxK: 60,
|
|
/**
|
|
* How long a search box waits after the last keystroke before it
|
|
* searches.
|
|
*/
|
|
SearchDebounceMs: 250,
|
|
/**
|
|
* The database is vacuumed at boot once this share of its pages, and
|
|
* at least this many bytes, sit free (after a big delete, such as the
|
|
* bot file index being dropped).
|
|
*/
|
|
DbVacuumMinFreeRatio: 0.2,
|
|
DbVacuumMinFreeBytes: 4 * 1024 * 1024,
|
|
/**
|
|
* Knowledgebases: the most one document holds (an upload, or text
|
|
* written in), how much of a pasted text a form takes, how many
|
|
* passages a reply is handed before the bot asks for any (retrieved
|
|
* for the newest user message), and how much of a document
|
|
* `read_knowledgebase_document` hands back at once.
|
|
*/
|
|
KnowledgebaseDocumentMaxBytes: 20 * 1024 * 1024,
|
|
KnowledgebaseTextMaxChars: 200_000,
|
|
KnowledgebaseAutoPassages: 4,
|
|
KnowledgebaseReadMaxChars: 12_000,
|
|
FileIngestPollMs: 5000,
|
|
FileIngestConcurrency: 2,
|
|
FileIngestWorker: "ingest",
|
|
FileIngestMaxAttempts: 2,
|
|
/**
|
|
* What a speech model reads when a voice is tried in the model settings.
|
|
*/
|
|
VoicePreviewText:
|
|
"Hi there. This is how I'll sound when I read my replies aloud.",
|
|
/**
|
|
* Largest picture a bot or a workspace can have.
|
|
*/
|
|
ProfileImageMaxBytes: 5 * 1024 * 1024,
|
|
/**
|
|
* A user with an open socket seen this recently gets no push: they
|
|
* are already looking at the app.
|
|
*/
|
|
PushPresenceWindowMs: 45_000,
|
|
/**
|
|
* A notification's body is one line, cut here.
|
|
*/
|
|
PushBodyMaxChars: 140,
|
|
/**
|
|
* How long a push service may hold a notification for a device that
|
|
* is offline.
|
|
*/
|
|
PushTtlSeconds: 60 * 60,
|
|
/**
|
|
* Whole-data archives (Settings > Backups): the file name prefix and
|
|
* how many of them are kept, newest first. They live outside
|
|
* `DATA_DIR` (`BACKUP_ARCHIVE_DIR`), never in the database's own
|
|
* `db/.backups` directory, which keeps its bun-sqlite snapshots.
|
|
*/
|
|
DataBackupNamePrefix: "cobble-data-",
|
|
DataBackupsKept: 5,
|
|
/**
|
|
* Log entries a restore leaves in `DATA_DIR` for the next boot to
|
|
* write (`queueBootLog`): written before the restart they would land
|
|
* in the replaced database, which the process still has open.
|
|
*/
|
|
PendingBootLogsFile: ".pending-boot-logs.json",
|
|
/**
|
|
* How often the backups page asks how a whole-data archive or restore
|
|
* is going, and how long it waits for the app to come back after a
|
|
* restore restarted it before it reloads anyway.
|
|
*/
|
|
DataBackupPollMs: 2000,
|
|
DataRestoreWaitMs: 120000,
|
|
/**
|
|
* Responses smaller than this go out uncompressed: the encoding
|
|
* costs more than it saves.
|
|
*/
|
|
CompressMinBytes: 1024,
|
|
/**
|
|
* Brotli quality for page scripts and styles, compressed once per
|
|
* file and kept in memory (`compressResponse`). 11 is about 25 times
|
|
* slower for 10% less; 5 is close to 9's size at half the time.
|
|
*/
|
|
CompressBrotliQuality: 5,
|
|
/**
|
|
* How many compressed page scripts and styles, and how many bytes of
|
|
* them, stay in memory. A rebuild names its files anew, so the oldest
|
|
* go first.
|
|
*/
|
|
CompressCacheMaxFiles: 600,
|
|
CompressCacheMaxBytes: 32 * 1024 * 1024,
|
|
|
|
DefaultIconSize: 16,
|
|
} as const;
|