Skip to content
Français

FileIsolatedCommandRequest

import type { FileIsolatedCommandRequest } from "@elie-laloum/outpost/workflows";

The fields below cover all variants; the signature specifies their allowed combinations.

  • hooksOptional
    LifecycleHooks | undefined
    Declared workspaceReady, hostReady and sandboxReady preparation commands.
  • limitsOptional
    Pick<StageLimits, "copyMs" | "collectMs"> | undefined
    Copy and collection deadlines for file execution; Git preparation and integration limits are refused.
  • observationOptional
    ObservationHub | undefined
    Explicit observation hub preserving scoped delivery and synchronous usage accounting.
  • loggingOptional
    Logging | undefined
    Declared execution journal; replayable file effects are refused when reproduction is unsupported.
  • activityTransportOptional
    Transport | undefined
    Transport for bounded resource activity observations; liveness does not authorize recovery.
  • recoveryTransportOptional
    Transport | undefined
    Explicit Transport retaining sandbox recovery evidence independently of file snapshots.
  • sandboxProviderRequired
    SandboxProvider
    Execution provider with the required file binding capability; legacy providers remain usable for Git.
  • agentOptional
    DispatchAgent | undefined
    Explicitly composed agent compatible with the selected file execution and conversation capabilities.
  • signalOptional
    AbortSignal | undefined
    Cancellation signal propagated to the operation and its process group; reusable sandboxes remain usable.
  • variablesOptional
    Readonly<Record<string, string>> | undefined
    Only explicitly declared environment variables reach the sandbox; no implicit .env loading.
  • workspaceVariant-dependent
    FileWorkspace | undefined
    Open workspace borrowed for this operation; its caller remains responsible for closing it.
  • workspaceSourceVariant-dependent
    undefined | FileWorkspaceSource
    Declared source for an owned resource; mutually exclusive with borrowing an open workspace.
  • commandRequired
    Command
    Execute the declared command and preserve its actual exit status, cancellation and settled files.
  • outputsOptional
    readonly WorkspaceOutputOptions[] | undefined
    Declared protected publications performed only after successful work and sandbox closure.
  • recoveryVariant-dependent
    FileWorkspaceRecoveryAuthorization | undefined
    Explicit stopped-process recovery authorization; interrupted replay remains a separate workflow decision.
  • storageQuotaVariant-dependent
    Omit<StorageReservationOptions, "signal"> | undefined
    Admission reservation through Transport; coordinates cooperating writers without enforcing a physical disk quota.
  • inputsVariant-dependent
    readonly WorkspaceInput[] | undefined
    Explicit file inputs; JSON workflow parameters are never implicitly written to disk.
  • runtimeVariant-dependent
    WorkspaceRuntimeOptions | undefined
    Control directory and logical namespace, separate from the workspace files.
  • pathsVariant-dependent
    readonly string[] | undefined
    Explicit relative path selection; copy selection does not implicitly apply .gitignore.
  • retentionVariant-dependent
    WorkspaceRetention | undefined
    run cleans successful owned work, local retains it, portable additionally requires an explicit Transport and namespace.
export type FileIsolatedCommandRequest = FileSandboxOptions & {
  readonly command: Command;
  readonly outputs?: readonly WorkspaceOutputOptions[];
};