@zephyrcloudio/harness
The platform-neutral Ze Harness Core. It owns durable Session coordination, Turn execution, plugin generations, policy, cancellation, terminal outcomes, and the Storage service contract.
Advanced hosts compose createCoreRuntime, makeSessionServices, and a StorageService from the
package root. Most applications should use @zephyrcloudio/harness-sdk instead.
import { createCoreRuntime, makeSessionServices, Storage } from '@zephyrcloudio/harness';
Core has no Node, HTTP, config-discovery, plugin-loading, CLI, SDK, or SQLite imports. Required state changes are awaited; events are observational only.
Core owns ordered action/resource permission evaluation, Tool projection validation, durable pending
requests, Session grants, and terminal settlement. Configured rules use full-string * and ?
matching; the last matching rule wins and no match asks. The effective order is Ze defaults, Server,
Session, then Agent. Ze defaults allow every Tool inside the session workdir and ask only for
external_directory paths and .env reads (.env.example stays allowed). Saved grants and hook
allowances never override a configured deny. A read-only call (every other projection is read, as
for read, grep, and glob) whose external_directory lies inside the directory of a discovered
workspace Skill is allowed instead of asking, as long as that Skill's own skill permission is
allow. A configured external_directory deny still wins, and writes and shell there still ask.
Request prompt
Every model request's instructions are, in order: the Agent's instructions, the Agent's
modelInstructions entry for the request model's family, the guidelines of the Tools in the
request, the Session system prompt, workspace AGENTS.md files, MCP server instructions, and the
Skill list. A Session system prompt adds to the Agent's prompt; to replace the Agent's prompt,
configure that Agent's instructions, which also drops its model-family instructions. The
instructions and Tool definitions stay byte-identical while the Session's Agent, model, and Tools
do, so providers can reuse their cached prefix.
Facts that change during a Session travel in one <runtime-context> developer message after the
conversation instead: the working directory, the date (UTC), and what the host's optional
environment port reports (platform and git state). Core builds it once per Turn, sends it at
the tail of each request in that Turn, and never stores it in history. The Node host reports the
resolved working directory, process.platform, and git status; the Worker host reports the
container path and linux, and leaves git state out because reading it would wake a stopped
container.
Authors
Input may carry an AuthorId: the host's own stable id for the person who wrote it. Core stores
the id with the input and never interprets it. Identity is opt-in for a host: one that sends no
ids, or one id and no profiles, changes nothing about what the model reads.
When a request names more than one author, every user message admitted with one reaches the
model with [author <id>] at its head. The tag is added to the request only, never to history,
and holds nothing but the id, so it reads the same on every request however that author is
described later. A conversation with a single author is not tagged: there is nobody to tell
apart.
What an id means lives in the author directory, a server-wide store of AuthorProfile records
(username, displayName, kind, and the owner's revision), written through the authors
service:
- A higher revision replaces the whole profile; a field left out is cleared.
- The same revision with the same values changes nothing, so a retry is safe.
- The same revision with different values is a
conflict, and a lower revision isstale; both leave the held profile as it is.
For each model request Core reads the profiles of the authors that request names. When there
is more than one author, or a profile for the only one, it lists them in the runtime-context
message, with who requested the Turn. The values are listed as
JSON data beside the id, and an author the directory does not know is listed by id alone. A
profile written while a Turn runs shows on that Turn's next request. Core has no notion of who
belongs to a Session; a host that wants the model to know says so itself, through the optional
contextLines port, which adds the host's own lines to the runtime-context message and is
asked before every model request.
A context summary is asked to keep each author's id with what it attributes to them, and its checkpoint records the ids of every message compacted so far, so those authors stay listed after their messages leave the context.
Hybrid CodeMode
Plugin and MCP tools are reached through execute({ code }), which calls them from JavaScript;
only the script's return value and console output enter the model context. Direct-only tools,
including every standard core tool, stay in the direct tool list and are not callable from
scripts. An Agent with an include-list toolset gets execute only when it selects a plugin or MCP
tool. Each operation inside a script still requires its usual permissions. execute
itself never asks for approval. Rejecting one operation can be handled by the script; cancelling
the Turn stops the whole execution. Interrupted scripts are not automatically replayed after a
restart.
CodeMode is on by default. Each host has one switch to turn it off:
| Host | Setting |
|---|---|
| Node server, CLI, and SDK | "codemode": { "enabled": false } in ze-harness.config.json or the SDK config option |
WorkerHarnessHost embedders, such as TAP |
codemode: { enabled: false } passed to the constructor |
The Worker deployment in packages/worker |
HARNESS_CODEMODE_ENABLED=false, which that Worker passes as the codemode option |
A configured execute deny rule also hides it.
See the CLI guide for inspecting executions and the CodeMode package for scripting usage and limits.
Activity streams
SessionServices.observation exposes two cursor streams over durable state. watchSessionActivity
pages one Session's changed Turns (and its title) after a per-Session SessionActivityCursor.
watchServerActivity pages every stamped Session, Turn, and Session deletion in the server's
database after a ServerActivityCursor: one monotonic counter per database that is stamped in the
same transaction as the change and never reused after a delete, so one reader observes spawned
children, their approvals and questions, and deletions without polling each Session. Omit
afterServerCursor to watch live from the current cursor (Storage.readServerActivityCursor);
pass one to replay from it. Both streams wake on the in-process activity hub, re-read when idle if
idleRefresh is set, and advance to the page's observed cursor once caught up.
Conversation entries
The composed SessionServices expose a conversation slice that appends outside conversation to a
Session without admitting work:
import { ConversationEntryId } from '@zephyrcloudio/harness-schema';
const receipt =
yield *
services.conversation.appendConversation({
sessionId,
request: {
entryId: ConversationEntryId.make('00000000-0000-4000-8000-000000000002'),
content: [{ type: 'text', text: 'Alice: the deploy finished.' }],
},
attribution: { clientId },
});
Each entry commits to Session history under the next history revision as a plain user message. It
never wakes the runner, never creates a Turn, and never calls a model. Every Turn and manual
compaction pins its model-visible history to its own admission revision, so work admitted before an
append never sees it; the next admitted work sees the full conversation. Replaying the same
entryId with identical content returns the recorded receipt, and reusing it with different
content fails with ConversationEntryConflict.
Provider authority and catalog composition
Core owns ProviderAuthority, which:
- Loads models and pricing from a host-supplied models.dev snapshot or the bundled offline snapshot (see Model catalog).
- Compiles one declarative provider plan for Turn registration and discovery. The plan maps
supported models.dev package and shape metadata to Ze's native
chat,responses, andmessagesadapters, while unknown explicit packages and shapes fail closed. - Resolves credentials from valid stored connections, a configured
providers.<id>.options.apiKey, or each definition's environment variables. Discovery checks stored state directly; Turn authentication checks the configured key first. - The discovery default is the configured default when it names an available composed model, otherwise no default (discovery stays up so credentials can be connected later). With no configured default, the first available model in lexical ref order. Turn setup instead fails loudly on a configured-but-unavailable ref — never a silent substitution to another provider.
- Emits atomic catalog revisions upon credential change and manages
reconnect_requiredstatus safely.
Provider discovery adds model IDs to the snapshot list; explicit definition.models entries take
precedence. Expected discovery failures log a warning and retain snapshot and configured models.
Unknown discovered or configured models default to text input/output with tools enabled. Explicit
capabilities, including tools: false, take precedence. Unknown limits remain zero until supplied
by discovery or config; no context or output window is guessed.
A models.dev entry advertises image input when its modalities.input lists image or it sets
attachment: true; the catalog takes that at face value, so a provider may still reject an image
the catalog allowed. A model without image input still serves a Session whose history holds
images. Each of its requests replaces every run of consecutive images in a user message, a
promoted steer, or a Tool result with one text placeholder, (image omitted: this model does not support image input) ((N images omitted: …) for a run of several), and the Turn publishes
model.images.omitted with the request's count whenever that count changes. Stored history
keeps the images, so switching back to an image-capable model shows them again, and the
compaction summarizer reads the same placeholders. Only a new prompt or steer that attaches an
image to such a model is rejected, with unsupported_prompt_content, before anything is stored,
so the user can pick an image-capable model instead.
Model catalog
One pipeline keeps two catalogs in step:
- The bundled snapshot (
src/model/bundled-models.json) ships in every build, so a harness works with no download. - The published catalog is a models.dev
api.jsondocument that Node hosts refresh fromZE_HARNESS_MODELS_URL(see the Server Node README). It uses the models.dev format so every released binary reads it with the normalizer it already applies to models.dev; there is no second format.
pnpm update:models-dev (from the repository root) builds Core, fetches models.dev, and applies
scripts/model-catalog-corrections.json. It keeps only providers the harness can use: those whose
declared package maps to a native protocol, plus the declarative presets. Amazon Bedrock is kept
as its Claude models on the Messages wire, with no base URL: the harness has no Bedrock Converse
client, so a host that enables it names a base URL that speaks Messages to Bedrock. It then normalizes that
document with the runtime normalizer and rewrites the bundled snapshot only when provider content
changed. Pass --published <file> to also write the published document; the bundled snapshot is
that document's normalized form, so shipped and published cannot drift. The build refuses to
write anything when anthropic, openai, opencode-go, or openrouter has no usable models.
Set MODELS_DEV_URL to override the https://models.dev/api.json source. Commit the updated
bundle and rebuild before distributing it. The Update bundled models workflow (workflow_dispatch) runs the same
build on GitHub and opens, or updates, a pull request on chore/update-bundled-models when the
bundle changed.
The normalizer maps each model's wire protocol from models.dev metadata: a model's
provider.shape (completions is chat, responses is responses) wins over its
provider.npm (@ai-sdk/openai-compatible is chat, @ai-sdk/openai is responses,
@ai-sdk/anthropic is messages), which wins over the provider's package. Unknown explicit
packages, shapes, statuses, and invalid catalog IDs are dropped rather than silently routed.
A model whose models.dev entry sets temperature: false is bundled with
capabilities.temperature: false; the Messages wire then omits temperature and top_p for it.
Corrections
scripts/model-catalog-corrections.json fixes upstream data before it is published or bundled:
{
"models": [
{ "provider": "openai", "model": "gpt-x", "reason": "Retired upstream", "hidden": true },
{ "provider": "openrouter", "model": "a/b", "reason": "Typo", "displayName": "A B" },
{
"provider": "opencode-go",
"model": "c",
"reason": "Served on /messages",
"protocol": "messages"
}
]
}
Each entry names one model and a reason, and either hides it or sets displayName and/or
protocol (chat, responses, or messages; written as the matching models.dev package). Unknown
fields, duplicate entries, entries that change nothing, and entries for models upstream no longer
lists fail the build, so a stale correction is removed instead of silently ignored.
Publishing
.github/workflows/publish-models.yml runs daily and on demand. It builds the published document,
validates it with the harness normalizer (scripts/publish-model-catalog.mjs), and, on main
once the bucket is configured, uploads it to R2 as api.json with Cache-Control: public, max-age=300. R2 derives the ETag from the bytes, so an unchanged catalog answers a harness's
If-None-Match with 304. Pull requests that change the pipeline build and validate without
uploading.
One-time setup before Node hosts default to the published catalog:
- Create an R2 bucket in the Cloudflare account that owns
theaiplatform.app. - Attach the custom domain
models.theaiplatform.appto the bucket. - Create an R2 API token with Object Read & Write on that bucket only.
- Add repository variables
ZE_MODELS_R2_ACCOUNT_IDandZE_MODELS_R2_BUCKET, and secretsZE_MODELS_R2_ACCESS_KEY_IDandZE_MODELS_R2_SECRET_ACCESS_KEYfrom the token. - Run the workflow, then check that
https://models.theaiplatform.app/api.jsonreturns anETagand answers thatETaginIf-None-Matchwith304. - Change the
ZE_HARNESS_MODELS_URLdefault inpackages/server-node/src/bootstrap/models-dev-cache.tsand the Server Node README tohttps://models.theaiplatform.app/api.json.
Named provider entries
Each providers.<id> entry is its own provider with its own credential. A named entry can inherit
the transport and model list of a built-in with base, then override the display name, credential
source, and any definition fields:
{
"providers": {
"openai-work": {
"base": "openai",
"definition": {
"displayName": "Work GPT",
"credentials": { "environment": ["OPENAI_WORK_API_KEY"] },
},
},
"openai-personal": {
"base": "openai",
"definition": {
"displayName": "Personal GPT",
"credentials": { "environment": ["OPENAI_PERSONAL_API_KEY"] },
},
},
},
}
Models are addressed per entry (openai-work/gpt-5-mini), and each entry keeps one stored
connection, one live-port key, and its own environment list. The base must name a known preset or
snapshot provider, cannot point at the entry itself, and cannot chain through another base entry.
Unknown, self, and chained bases fail closed at setup.
Tool result bound
Every tool result enters model context through one bound, whatever its source: core and plugin
tools, MCP tools, Task results, and the CodeMode executor's result (calls made inside a script
are not bounded, because their results feed the script). A result over MAX_TOOL_RESULT_BYTES
(50 KiB) or MAX_TOOL_RESULT_LINES (2,000 lines), both exported by @zephyrcloudio/harness-plugin,
keeps whole lines from its start and end around an omission marker, cuts each kept line to
MAX_TOOL_RESULT_LINE_CHARS (2,000), and ends with a notice. A tool's truncation declaration
weights the kept ends (head keeps nine tenths from the start, tail from the end); absent keeps
both ends equally.
The host spills the full text through WorkspaceFiles.writeToolOutput to a Session directory
outside every workdir (on Node under the OS temporary directory, on the Worker host under
/tmp/ze-harness/tool-output in the container), so spills never show in git status or match the
model's searches. The notice names that absolute path, which read pages without an
external-directory approval, and suggests jq for JSON. A host without writeToolOutput gets a
notice that says what was omitted and asks the model to narrow the call. JSON results are bounded
as indented JSON text, multipart results keep their images after the bounded text, and
discovered workspace instructions with their dedupe metadata are appended after the bound. The
stored result and every later request carry the bounded form.
MCP screenshots
MCP tool results containing images preserve the ordered text and image blocks plus
any structuredContent as a multipart canonical tool result. Other MCP blocks remain
JSON parts, and private _meta values are excluded. Audio and blob resources beyond
10 MB decoded are replaced with an explicit omission note instead of model text. Supported images use canonical
base64 with PNG, JPEG, GIF, or WebP MIME types; unsupported image content fails explicitly.
Results survive tool settlement, checkpoints, history replay, and compaction input.
A model without image input sees a placeholder in place of each run of tool images (see
Provider authority and catalog composition), and
the images policy (see "Image admission") also applies to tool images: a new result's images
are normalized once when the tool settles. New results still over the limits settle as failed
tools with a request for smaller output, allowing the model to continue; images already in
history over the size limit are lowered to placeholders in each request, never failing it. URL
images are not measured by the base64 limit.
Failed MCP calls retain their image content and failure status. Exact JSON text duplicates
of structuredContent are omitted; accompanying prose remains. Text and JSON tools retain their
existing result formats. This adds image handling to MCP tools; ordinary plugin tool
return values continue to be interpreted as JSON.
The default request-size estimator (canonical-json-utf8-quarter-v2-images) counts a
request's canonical JSON as bytes over four, except for images. Each image part in a user
message or Tool result is counted from the pixel dimensions in its base64 header (PNG, JPEG,
GIF, or WebP) the way its provider bills it: one unit per 28×28 px patch after downscaling to
a 2576 px long edge and at most 4,784 patches, the limits of Claude 4.7 and later (2,691 units
for a 1920×1080 screenshot; older models stop lower, so they are over-counted rather than
under-counted), or, for the openai provider, 85 plus 170 per 512 px tile after scaling into
2048×2048 and a 768 px short edge. A URL image or an unreadable header counts 4,784 units, the
most one image can cost. The base64 bytes
themselves are not counted, so a 600 KB screenshot no longer costs about 200,000 units and
cannot by itself trigger compaction, model_context_limit_reached, or a clamped output cap.
Within a Turn, each request after the first is projected from the provider's last reported
usage plus the estimate of the messages added since; the first request of a Turn uses the
full estimate. Hosts that need a provider tokenizer supply requestSizeEstimator to
createCoreRuntime; the Worker host exposes it as WorkerHarnessHostOptions.requestSizeEstimator.
Image admission
Attached images change exactly once, when they enter a Session, and never per model request.
A prompt's or steer's images are normalized before the Session mutation gate and the
idempotency lookup (so a resize never holds a deletion, and a replayed request normalizes to
the stored bytes instead of conflicting with them), an MCP prompt's once the server has
resolved it, and a tool result's when the tool settles, after plugin and MCP hooks have
produced the result and before it is recorded or handed to the host's toolDispatch lease. Request assembly only
validates; it never re-encodes. That keeps every later request, replay, and compaction on the
same bytes, which is what lets a provider's prompt cache keep matching, and it keeps the
stored message_json of a screenshot small enough for a Durable Object row.
The host supplies the pixels work through the ImageNormalizer capability, injected next to
contentResolver (imageNormalizer on the Node Server, SDK, and Worker host options). Core
decodes the base64, calls normalize({ bytes, mimeType, profile, signal }) with the policy's
maxLongEdge and maxBase64Bytes, and stores the returned bytes, MIME type, and dimensions.
{ kind: 'unchanged' } keeps the bytes and records the dimensions. A typed
ImageNormalizationError keeps the image as sent; the limits below then decide. Both reference
harnesses (pi, opencode) fit the long edge, apply EXIF orientation, keep PNG for transparency,
re-encode opaque images as JPEG, and step quality down until the byte bound holds; the
normalizer owns those choices. Without a normalizer, Core reads the dimensions from the image
header (PNG IHDR, JPEG SOF, GIF, WebP VP8/VP8L/VP8X) and keeps the bytes.
Every admitted base64 image part may carry width and height; they are optional so stored
parts without them still decode, absent for URL images and unreadable headers, and available to
token estimators. Dimensions a client sends are dropped at admission: only what Core measured
is recorded.
The images execution policy drives admission. Its defaults are documented provider limits
(https://platform.claude.com/docs/en/build-with-claude/vision, "Image limits and costs"), each
configurable and removable with { "kind": "unlimited" }:
| Field | Default | Source |
|---|---|---|
maxLongEdge |
2000 px | The per-image dimension cap Anthropic applies to every image in a request with more than 20 image blocks, counting resent history and tool screenshots; both reference harnesses use it. |
maxBase64Bytes |
5,000,000 | Amazon Bedrock's per-image cap ("5 MB base64-encoded", read as decimal since neither document says); the Claude API itself allows 10 MB. Enforced after normalization. |
maxPerMessage |
100 | The per-request cap for 200k-context models (600 for the rest). One message can never carry more than one request may. |
autoResize |
true |
Whether the normalizer runs. Off, header dimensions are still recorded and the limits still apply. |
maxLongEdge is only applied by a normalizer; Core never rejects an image for its dimensions.
maxBase64Bytes and maxPerMessage are enforced in Core after normalization: a prompt over
either fails admission with image_too_large or too_many_images, naming the configured value;
a tool result over either settles as a failed tool. Admission is the only gate. History is
never validated against the limits again: an image admitted before a limit was set, or before
it was lowered, is replaced by a placeholder in each request that cannot carry it, the way
images a text-only model cannot take are (model.images.omitted counts both), and the stored
image comes back when the limit is raised.
Hosts hand images in as bytes. A durable content reference names content the host resolves at request time; what it resolves to is never normalized, and an image over the limits is lowered to a placeholder in each request like any other history image, with no error to whoever attached it. A host that wants its images normalized, and over-limit ones refused up front, passes them inline and lets admission store them.
Public TypeScript exports
AdmittedPromptAdmittedSteerAppendConversationCommandAppendConversationEntryCommandAssistantMessageAppendCancelSessionMcpCredentialCommandClaimedContextCompactionClaimedSessionWorkClaimedTurnCompleteSessionMcpCredentialCallbackCommandConfiguredAgentContextCompactionConflictContextCompactionNotFoundContextEditConversationEntryConflictCoreMcpCandidateCoreRuntimeCoreRuntimeCandidateCoreRuntimeConfigcreateCoreRuntimeCreateCoreRuntimeOptionsdefaultProviderIdsDeleteSessionCommandDurableContentResolutionErrorDurableContentResolverDurableContextSelectionDurableHistoryMessageDurableTurnMessageForkSessionCommandForkSessionInputGenerationCompanionHistoryVisibilityConflictImageNormalizationErrorImageNormalizationProfileImageNormalizationResultImageNormalizerInvalidServerCursorInvalidSessionCursorInvalidTurnTransitionListPluginJournalInputListServerActivityInputListSessionActivityInputListSessionCompactionsInputListSessionConversationInputListSessionTurnsInputListTurnEventsInputloadBundledModelsDevSnapshotmakeContentFingerprintmakeLateBoundMcpCredentialConnectionsmakeLineRangeReadermakeReconnectingMcpCredentialLifecyclemakeSessionMcpCredentialRuntimemakeSessionMcpCredentialServerResolvermakeSessionMutationGatemakeSessionServicesMCP_CREDENTIAL_AUTHORIZATION_REQUIRED_REASONSMCP_CREDENTIAL_CALLBACK_DENIED_REASONSMCP_CREDENTIAL_REVOCATION_STATUSESMcpCredentialHostConnectionsMcpCredentialIdentityMcpPromptReservationMcpPromptReservationInputNormalizedModelRecordNormalizedModelsDevSnapshotNormalizedProviderRecordPermissionConflictPermissionReplyReceiptPermissionReplyResolutionPermissionRequestNotFoundPermissionResolutionPluginContributionPluginJournalPagePreparedTurnInputPrivateHistoryMessageContinuationPrivateModelMessageContinuationPrivateSessionPluginIntegrationPrivateTurnMessageContinuationProgrammaticPluginCandidatePromotedSteerPromptAdmissionContextPromptAdmissionStalePromptConflictProviderConfigEntryProviderConfigMapProviderDefinitionMapPublicMcpCatalogPromptPublicMcpCatalogResourcePublicMcpCatalogResourceTemplatePublicMcpCatalogServerPublicMcpCatalogSnapshotPublicMcpCatalogToolPublicMcpResourceAnnotationsPublicMcpResourceContentsPublicMcpResourceReadResultPublicMcpServerCatalogpublicSessionMcpCredentialForgetResultpublicSessionMcpCredentialStatusQuestionConflictQuestionReplyReceiptQuestionRequestNotFoundQuestionResolutionQuestionResolutionInputReadMcpResourceCommandRecoveryResultRejectQuestionInputReloadResultReplaceSessionConfigurationInputReplyPermissionInputReplyQuestionInputRequestSizeEstimationErrorRequestSizeEstimatorResolvedModelResolvedPromptRunInputRuntimeCandidateErrorRuntimeContextLinesRuntimeEnvironmentRuntimeEnvironmentFactsRuntimeStartupErrorSavedPermissionNotFoundServerActivityEntryServerActivityPageServerDeletionReceiptServerNameSessionActivityPageSessionAuthorsApiSessionAuthorsServiceSessionCompactionHistoryBoundarySessionCompactionPositionSessionCompactionsApiSessionCompactionsPageSessionCompactionsServiceSessionCompactionStateSessionConfigurationConflictSessionConflictSessionConversationApiSessionConversationPageSessionConversationServiceSessionDeletionApiSessionDeletionReceiptSessionDeletionServiceSessionExecutionApiSessionExecutionServiceSessionHistoryBoundarySessionLifecycleApiSessionLifecycleServiceSessionMcpCredentialAuthorizationSessionMcpCredentialAuthorizationRequiredReasonSessionMcpCredentialCallbackDeniedReasonSessionMcpCredentialErrorsessionMcpCredentialFailureSessionMcpCredentialForgetResultSessionMcpCredentialRevocationStatusSessionMcpCredentialRuntimeSessionMcpCredentialRuntimeInputSessionMcpCredentialServerBindingSessionMcpCredentialStatusSessionMcpErrorSessionMcpRuntimeSessionMcpSurfaceApiSessionMcpSurfaceServiceSessionMutationGateSessionMutationLeaseSessionNotFoundSessionObservationApiSessionObservationServiceSessionOverlayRevisionSessionPromptsApiSessionPromptsServiceSessionRuntimeSessionRuntimeErrorSessionServiceClosedSessionServicesSessionServicesInputSessionTurnRefSessionTurnsPageSessionTurnStateStartSessionMcpCredentialCommandSteerConflictSteeringModelBoundaryInputSteeringModelBoundaryResultSteeringTerminalBoundaryResultSteerRejectedStorageStorageErrorStorageFailureStorageServiceSubmitContextCompactionCommandSubmitMcpPromptCommandSubmitPromptCommandTerminalCommitTerminalToolOutputArtifacttextFingerprintToolCallCompletionToolCallNotFoundToolCallRequestToolCallSettlementToolDispatchErrorToolDispatchLeaseToolDispatchLifecycleToolDispatchOutcomeToolPermissionCallbackResolutionTurnTurnEventsPageTurnNotFoundVERSIONWatchServerActivityInputWatchSessionActivityInputWebFetchWebFetchErrorWebFetchFormatwithSessionMutationwithSessionMutationExclusiveWorkspaceDirectoryEntryWorkspaceFileErrorWorkspaceFilesWorkspaceFileTargetWorkspaceLinePageWorkspaceLineRangeWorkspaceShellWorkspaceShellErrorWorkspaceShellTurn