gate4agent-types 0.4.6

Pure data contracts for gate4agent backends and shells
Documentation
//! Pure data contracts shared by gate4agent engines and shells.

mod adapter;
mod capability;
mod control;
mod executable;
mod history;
mod id;
mod input;
mod readiness;
mod resume;
mod session_options;
mod spec;

pub use adapter::{
    AdapterBinding, AdapterBindingError, AdapterFamily, AdapterId, AdapterIdError,
    AdapterVerification, MAX_ADAPTER_REVISION_LEN,
};
pub use capability::{
    validate_capability_models, CapabilityModelSummary, CapabilityProbeFailure,
    CapabilityProbeRequest, CapabilitySnapshot, CapabilityValidationError, PendingCapabilityProbe,
    CAPABILITY_MODELS_MAX, CAPABILITY_MODEL_ID_MAX_BYTES, CAPABILITY_MODEL_LABEL_MAX_BYTES,
};
pub use control::{
    ActiveProviderTool, AgentInstanceId, ApprovalLevel, CommandEnvelope, CommandId,
    ContextWindowUsage,
    ControlCommand, ControlEffect,
    ControlError, ControlEvent, ControlEventKind, ControlHealth, ControlObservation,
    ControlSnapshot, EffectEnvelope, ForegroundAuthority, ForegroundProcess, ForegroundProcessKind,
    ForegroundRequirement, ForegroundSnapshot, HostDecisionAuthority, HostRequestDecision,
    HostRequestOutcome,
    ObservationEnvelope, ObservationIgnoredReason,
    OperationId, OperatorGateInput, OperatorGateKind, OperatorGateOption,
    OperatorGateOptionSemantics, OperatorGateState, OperatorGateSubject, ProviderActivity,
    ProviderAvailableCommand, ProviderConfigChoice, ProviderConfigOption,
    ProviderConfigOptionKind,
    ProviderEvent, ProviderEventValidationError,
    ProviderInteraction, ProviderInteractionId, ProviderInteractionKind,
    ProviderInteractionOption, ProviderInteractionOutcome, ProviderInteractionResponse,
    ProviderInteractionResponseError,
    ProviderInteractionResponseKind, ProviderInteractionStatus, ProviderInteractionTarget,
    ProviderModeInfo, ProviderPlanPriority, ProviderPlanStatus, ProviderPlanStep,
    ProviderRateLimitKind,
    ProviderRuntimeCapability, ProviderRuntimePolicy, ProviderRuntimePolicyError,
    ProviderSessionIdentity, ProviderSessionKey, ProviderSnapshot, ProviderSource,
    ProviderSourceCursor, ProviderStopReason, ProviderSubagent, PtyScreenState, SessionGeneration,
    SessionSnapshot,
    SessionStatus, StartRequest, TerminalFrame, TerminalMouseProtocolEncoding, TerminalSize,
    TokenUsage, TransportKind,
    CONTROL_INSTANCE_IDENTITIES_CAPACITY, CONTROL_INSTANCE_IDENTITIES_MAX,
    CONTROL_SESSIONS_MAX, FOREGROUND_PROCESS_NAME_MAX_BYTES,
    OPERATOR_GATE_OPTIONS_MAX, OPERATOR_GATE_OPTION_TEXT_MAX_BYTES, OPERATOR_GATE_PATH_MAX_BYTES,
    PROVIDER_AVAILABLE_COMMANDS_MAX, PROVIDER_CONFIG_OPTIONS_MAX,
    PROVIDER_CONFIG_OPTION_CHOICES_MAX,
    PROVIDER_EVENT_ID_MAX_BYTES, PROVIDER_EVENT_TEXT_MAX_BYTES, PROVIDER_EVENT_TOOLS_MAX,
    PROVIDER_INGRESS_EVENTS_MAX, PROVIDER_INTERACTIONS_MAX, PROVIDER_INTERACTION_FAILURE_MAX_BYTES,
    PROVIDER_INTERACTION_OPTIONS_MAX,
    PROVIDER_INTERACTION_RESPONSE_MAX_BYTES, PROVIDER_MODE_CATALOG_MAX, PROVIDER_PLAN_STEPS_MAX,
    PROVIDER_SESSION_LOCATOR_MAX_BYTES,
    PROVIDER_SUBAGENTS_MAX, PTY_SCREEN_GATE_NAME_MAX_BYTES, TERMINAL_COLUMNS_MAX,
    TERMINAL_ROWS_MAX, WORKING_DIRECTORY_MAX_BYTES,
};
pub use control::{validate_session_config_value_json, validate_session_control_id};
pub use executable::normalize_executable_name;
pub use history::{
    validate_candidate_id, validate_history_error, validate_native_session_id,
    HistoryCandidateSummary, HistoryMessageRecord,
    HistoryMessageRole, HistoryOperation, HistoryQuery, HistorySessionRecord, HistorySnapshot,
    NativeSessionCatalogEntry, NativeSessionCatalogPage, NativeSessionCatalogSummary,
    NativeSessionCatalogScope, NativeSessionCatalogWindow, NativeSessionExternalGroup,
    NativeSessionExternalGroupKind,
    NativeSessionPreview, NativeSessionPreviewMessage,
    SessionRecordPreview,
    HistoryValidationError, PendingHistoryOperation, HISTORY_CANDIDATE_ID_MAX_BYTES,
    HISTORY_DISCOVERY_LIMIT_MAX, HISTORY_ERROR_MAX_BYTES, HISTORY_MESSAGES_MAX,
    HISTORY_MESSAGE_MAX_BYTES, HISTORY_MODEL_MAX_BYTES, HISTORY_SESSION_ID_MAX_BYTES,
    HISTORY_TITLE_MAX_BYTES, NATIVE_SESSION_CATALOG_LIMIT_MAX,
    NATIVE_SESSION_EXTERNAL_GROUP_ID_MAX_BYTES, NATIVE_SESSION_EXTERNAL_GROUP_LABEL_MAX_BYTES,
    NATIVE_SESSION_PREVIEW_MESSAGE_LIMIT_MAX, NATIVE_SESSION_PREVIEW_TEXT_MAX_BYTES,
};
pub use id::{AgentId, AgentIdError};
pub use input::{
    normalize_semantic_prompt, prepare_agent_command, prepare_input, prepare_input_with_limits,
    prepare_shell_command, sanitize_prompt_text, AgentCommand, InputAction, InputPrepareError,
    PreparedInput, PreparedInputKind, PreparedWrite, PreparedWriteKind, PromptFraming,
    PromptPayload, ShellCommand, TerminalControl, TerminalText, BRACKETED_PASTE_END,
    BRACKETED_PASTE_START, SEMANTIC_PROMPT_MAX_BYTES, TERMINAL_INPUT_CHUNK_MAX_BYTES,
    TERMINAL_INPUT_MAX_BYTES, TERMINAL_SUBMIT_DELAY_MS, TERMINAL_WRITE_DELAY_MAX_MS,
};
pub use readiness::{AgentReadinessSpec, DraftReadySignal};
pub use resume::{
    validate_resume_error, PendingResumeOperation, ResumeAuthorityTarget, ResumeLaunchRequest,
    ResumePhase, ResumeSessionSummary, ResumeSnapshot, ResumeTarget, ResumeValidationError,
    RESUME_ERROR_MAX_BYTES,
};
pub use session_options::{
    SessionOptionSelection, SessionOptionValidationError, SessionOptionValue,
    SESSION_OPTION_ID_MAX_BYTES, SESSION_OPTION_VALUES_MAX, SESSION_OPTION_VALUE_MAX_BYTES,
};
pub use spec::{
    AcpTransportSpec, AgentAdapterCapabilities, AgentCapabilities, AgentCommandMode, AgentSpec,
    AgentTransportCapabilities, DetectionSpec, InitialPromptMode, LaunchSpec, NativeDraftMode,
    PipePromptDelivery, PipeProtocol, PipeTransportSpec, ProcessMatcher, PromptSpec,
    RuntimePlatform, SpecVerification,
};