Durable coding-agent harnesses (Claude Code, Codex, OpenCode, Pi, fx) on a Workflow SDK World
/**
* harness-world-process: the shared core of process harnesses on
* harness-world (Claude Code, Codex, OpenCode, Cursor). See README.md.
*/
export {
batchTranscript,
JOURNAL,
journalBatches,
journalKey,
journalRecords,
lastTurnEnd,
summarizeBatch,
TRANSCRIPT,
transcriptOf,
} from './records.ts';
export type { BatchRef, JournalBatch, JournalRecord, StoredEntry, TranscriptEntry, TranscriptToolCall } from './records.ts';
export { blobStreamName, DEFAULT_INLINE_MAX_BYTES, NativeJournal, readBlobs, readJournal } from './journal.ts';
export type { NativeJournalOptions } from './journal.ts';
export { placeSubmissions, waitForSubmissions } from './inbox.ts';
export type { WaitOptions } from './inbox.ts';
export { clip, failureText, Mutex, toolBridge, toolKey } from './tools.ts';
export type { BridgedTool, ToolBridge, ToolBridgeOptions, ToolResult } from './tools.ts';
export { zodFromJsonSchema, zodShapeFromJsonSchema } from './zod.ts';
export type { JsonSchemaObject } from './zod.ts';
export { openTurn, recoveryNote, restartEvent } from './recovery.ts';
export type { OpenTurn, RecoveryCall, RecoveryNote, RecoveryOptions } from './recovery.ts';
export { defaultRoot, defaultShell, GROUP_REGISTRY_SCRIPT, groupAlive, groupOf, identity, isAlive, killRegistered, ownGroup, ProcessHost, watchParent } from './host.ts';
export type { Exit, HostedProcess, PidRecord, ProcessHostOptions, SessionDir, SpawnOptions, WatchOptions } from './host.ts';
export { BuiltinCalls, replayBy } from './builtins.ts';
export type { BuiltinCall, BuiltinCallsOptions, BuiltinStart } from './builtins.ts';
export { openWorkspace, WORKSPACE_STREAM, workspaceMarker, workspaceNote } from './workspace.ts';
export type { WorkspaceRecord, WorkspaceState } from './workspace.ts';
export {
anthropicCountTokens,
anthropicMessages,
CLAUDE_BETAS,
CLAUDE_ROUTES,
CODEX_ROUTES,
GatewayError,
AI_GATEWAY_LANGUAGE_MODEL_ROUTE,
aiGatewayLanguageModel,
gatewayCredential,
gatewayHandler,
gatewayProxy,
gatewayToken,
gatewayUrl,
matchRoute,
MODEL_BODY_MAX_BYTES,
openaiResponses,
parseStrictJson,
upstreamUrl,
} from './gateway.ts';
export { isModelRequest, modelCrashArmed, ModelSteps, settleAbandonedModelSteps, unfinishedModelStep } from './model.ts';
export type { ModelStepOutput, ModelStepsOptions } from './model.ts';
export type { BodyCheck, BodyPolicy, GatewayCap, GatewayHandlerOptions, GatewayLedger, GatewayProxy, GatewayProxyOptions, GatewayRoute, ProviderTool, TrackedRequest, TrackEnd } from './gateway.ts';
export { FileTail } from './tail.ts';
export { journalLedger, SPEND_STREAM } from './ledger.ts';
export type { JournalLedger, SpendRecord } from './ledger.ts';
// The minter is `harness-world-process/machine-brand`, for the sandbox tier's session factory only.
export { isBrandedMachine } from './machine-brand.ts';
export type { BrandedMachine } from './machine-brand.ts';
export type {
AcquireDrills,
AcquireMachine,
AcquireMachineRequest,
CacheDir,
CacheFile,
ChannelExit,
FenceToken,
GatewayErrorCode,
GatewayHandler,
KillSignal,
LineChannel,
MachineBrand,
MachineRecord,
MachineRecordStore,
MachineSpawn,
MachineTail,
ProcessHostLike,
ProcessLike,
ProcessSpawn,
RelayedModelRequest,
RelayedModelResponse,
SessionMachine,
SessionProcess,
} from './environment.ts';
export { gatewayModelOptions, gatewayModelResult, ResponseCapture } from './agent-runs.ts';