Skip to content

Durable coding-agent harnesses (Claude Code, Codex, OpenCode, Pi, fx) on a Workflow SDK World

5.6 KB
Raw Blame
export {
  armedChaos,
  ATTACH_DRILLS,
  chaosKey,
  chaosKind,
  chaosMatches,
  chaosOutputOf,
  crashedByChaos,
  DEFAULT_CHAOS_AFTER_MS,
  isSessionDrill,
} from './chaos.ts';
export type { ChaosKind, ChaosOutput, ChaosSpec, Drill, DrillTarget } from './chaos.ts';
export { commitClose, commitDetach, commitFact, finishFact, isDetached, isFactStep, parkedRecords, settleParked } from './facts.ts';
export {
  armChaosFire,
  armOwnerCheck,
  claimDropCallback,
  fireChaosStep,
  fireOwnerChaos,
  OWNER_QUEUE,
  ownerCheck,
  parkerAttached,
  policeParked,
  wakeAfterSettle,
  wakeSettled,
} from './owners.ts';
export type { OwnerContext, OwnerDriverOptions, OwnerMessage, OwnerPolicy, OwnerVerdict } from './owners.ts';
export { decode, encode } from './codec.ts';
export {
  activeDrive,
  anchorKey,
  anchorVerdict,
  browserAnchors,
  defaultAnchors,
  deliveryAnchors,
  driveSettled,
  exclusiveAnchors,
  hostAnchors,
  isAlive,
  judgeAnchor,
  localAnchors,
  postgresAnchors,
  processGone,
  processIdentity,
  ReleaseAnchor,
  tabAnchors,
  vercelAnchors,
} from './anchor.ts';
export type { Anchor, AnchorKind, AnchorPolicy, ProcessIdentity, Verdict, VerdictContext } from './anchor.ts';
export { announceTether, armTabLost, TAB_LOST_DELAY_SECONDS, tabLost, takeoverLane } from './tab-lost.ts';
export type { TabLostMessage } from './tab-lost.ts';
export { armTether, serveHostDrive, serveTabTether, TETHER_KEEPALIVE_MS, tetherDelivery } from './tether.ts';
export type { TabTetherOptions, TetherEnd, TetherMessage, TetherOptions } from './tether.ts';
export {
  anchorsOf,
  commitEpochStep,
  commitHandoff,
  deliver,
  EffectFailure,
  marksEnabled,
  writeMark,
  EffectInterrupted,
  resolveAbandoned,
  wakeLane,
  Fatal,
  Parked,
  QUEUE_NAME,
  QUEUE_PREFIX,
  Restart,
  DEFAULT_DIRECT_DRIVE_MS,
  directDeadline,
  PREEMPTION_REFRESH_MS,
  RUN_AHEAD_DEMOTE_MS,
  wake,
  workRemains,
  WRITE_STALL_MS,
  Yield,
} from './driver.ts';
export type { Admission, ChaosDriveOptions, DeliverMeta, DriverOptions, RecoverOutput, WakeOptions } from './driver.ts';
export { emptyState, fold, pendingSubmissions } from './fold.ts';
export { EXECUTION_CONTEXT, LEGACY_QUEUE_PREFIX, PI_WAKE_QUEUE, QUEUE_NAMESPACE, QUEUE_TOPIC } from './queue.ts';
export { recoverSessions, type RecoverSessionsOptions } from './recover.ts';
export {
  applyDocOps,
  DOC_MAX_BYTES,
  DocConflict,
  docBytes,
  docEventFor,
  defineDoc,
  diffDoc,
  docNameOf,
  docsHookToken,
  docsPrompt,
  DocTooLarge,
  DocVersionError,
  isDocLiveEvent,
  isDocsEnvelope,
  isDocsPayload,
  materializeDoc,
  namedDocs,
  promptDocsText,
  readDoc,
} from './docs.ts';
export { BLOB_PIECE_CHARS, type BlobContent, base64ToBytes, blobStreamName, bytesToBase64, readBlobContents, readBlobs, sha256Hex, writeBlob } from './blobs.ts';
export type {
  DeepReadonly,
  Doc,
  DocDefinition,
  DocEdit,
  DocEffect,
  DocLive,
  DocLiveEvent,
  DocOp,
  DocPath,
  DocsEnvelope,
  DocSnapshot,
  DocsIO,
  DocsPayload,
  DocsReader,
  DocState,
  JsonObject,
  JsonValue,
  PromptDocs,
} from './docs.ts';
export { hostToolIO } from './host-tool-io.ts';
export { isMark, mark, markTime, PROCESS_ID, processInfo } from './marks.ts';
export type { Mark, MarkName } from './marks.ts';
export { rawSessions, stateFromSnapshot } from './raw.ts';
export type { RawEvent, RawSession, RawSessions, RawSessionsOptions, RawSnapshot } from './raw.ts';
export { currentLane, handoffCount, homeLane, hostOf, isEpochStep, LANE_SPECS, laneAvailable, LANES, laneRank, needsOf, route } from './lanes.ts';
export type { Capability, HandoffOutput, HostFact, LaneOptions, LaneSpec } from './lanes.ts';
export { commitHost, markHostLost } from './facts.ts';
export type { CloseInput, DetachInput, ParkInput, RunEnvelope, SettleInput, StepEnvelope, SubmissionPayload } from './fold.ts';
export { effectNameOf, harnessOf, harnessOfQueue, legacyWorkflowNameFor, sameHarness, stepNameFor, workflowNameFor } from './names.ts';
export { LogFenced, LogSuperseded, SessionLog } from './session-log.ts';
export type { FenceNote, WriteInfo, WriteResult } from './session-log.ts';
export { inBandFenceSupported, isInBandSuperseded } from './fence.ts';
export { durableSessions, isAmbiguous, SubmissionConflict } from './sessions.ts';
export { hintsStreamName, publishHint, watchHints } from './hints.ts';
export { createDriveRoute } from './drive-route.ts';
export { ROUTE_PASS } from './sessions.ts';
export type { DriveRequest, DriveRoute, DriveRouteOptions } from './drive-route.ts';
export type { Hint, WatchHintsOptions } from './hints.ts';
export type {
  DurableSessions,
  DurableSessionsOptions,
  QueueRoute,
  SendOptions,
  StartOptions,
  UpdateDocOptions,
} from './sessions.ts';
export {
  closeRunStreams,
  decodeLine,
  effectStreamName,
  encodeLine,
  JsonLinesWriter,
  kernelStreamNames,
  setLocalLiveTap,
  liveStreamName,
  readJsonLines,
  tailJsonLines,
  tailJsonLinesAt,
  encodeCursor,
  decodeCursor,
  WRITE_DEADLINE_MS,
} from './streams.ts';
export type { StreamPosition, TailEntry, TailOptions } from './streams.ts';
export { chatRoute, isSettled, liveResponse } from './live-response.ts';
export { type ChatAuthorize, type ChatGate, chatGate, NO_AUTHORIZE_MESSAGE } from './authorize.ts';
export type { ChatRoute, ChatRouteOptions, ChatSessions, LiveResponseOptions, LiveSource } from './live-response.ts';
export type * from './types.ts';
export { createLocalEcho, type LocalEcho } from './local-echo.ts';
export {
  commitUnavailable,
  defaultHint,
  failingOf,
  lastUnavailable,
  MAX_FAILED_DELIVERIES,
  Unavailable,
  UNAVAILABLE_STEP,
  unavailableOf,
} from './unavailable.ts';
export type { UnavailableCode, UnavailableInfo, UnavailableInput } from './unavailable.ts';