Skip to main content

Crate gate4agent_runtime_native

Crate gate4agent_runtime_native 

Source
Expand description

Tick-driven native runtime for embedding gate4agent in an owning app core.

Modules§

shell_efficiency
Folds gate4agent_shell_native::ShellEfficiencyFacts – plain facts a NativeEffectShell accumulates inside collect_terminal_frames and reclassify_foreground – into the same “distribution, not an average” contract tick_profile uses for NativeRuntime::tick’s own phases.
tick_profile
Fixed-window latency profiling for the phases inside crate::NativeRuntime::tick.

Structs§

NativeHistoryConfig
NativeHistoryRoot
NativeInstanceLaunchOverlay
Host-only launch mutations applied to one exact native PTY instance.
NativeLaunchEnvironmentOverlay
Backward-compatible environment-only overlay used by existing node flows.
NativeLaunchProfile
Host-owned child-process environment policy, absent from the wire protocol.
NativeLaunchProfileControl
Clonable host-local control for selecting profiles without mutable runtime access.
NativeLaunchProfileDescriptor
Revisioned non-secret descriptor for a built-in native launch profile.
NativeLaunchProfileId
Host-local identifier for a non-wire native launch profile.
NativeMcpServerLaunchOverlay
Host-only MCP-server launch overlay for one exact instance, PTY or ACP.
NativeProviderExit
NativeProviderOperationError
NativeRuntime
Owns the kernel tick and all native effect workers. Product apps retain only the bounded handle returned by NativeRuntime::new.
NativeRuntimeConfig
NativeRuntimeTick
NativeSessionCatalogAuthority
Independent read-only authority for projecting provider-native history into bounded session metadata. It does not create kernel or provider sessions.
NativeSessionCatalogPage
NativeSessionSelectionResolution
PhysicalExitAck
ProviderOperationKey
ProviderSupervisorFault
ProviderSupervisorSnapshot
ScopedNativeSessionCatalogEntry
ScopedNativeSessionCatalogPage
VendorCapabilitySet
VendorContractResolution
VendorLauncherIdentity
VendorVersionProbeCache
Bounded host-local cache keyed by provider, platform, and exact launcher identity. A metadata or content identity change evicts the prior entry for the same canonical path fingerprint before the new result is inserted.
VendorVersionProbeResult

Enums§

HistorySourceLayout
NativeChildEnvironmentResolveError
NativeLaunchProfileError
NativeProviderControlError
NativeProviderResultPoll
NativeProviderShutdownError
NativeSessionCatalogError
NativeSessionPreviewError
OneShotSessionPersistence
ProviderStopCause
ProviderSupervisorFaultKind
ProviderSupervisorState
VendorCapabilityUnavailableReason
VendorCapabilityVerdict
VendorCliFamily
VendorFallbackReason
VendorPlatform
VendorRuntimeMode
VendorVersionProbeStatus
VendorVersionStatus

Constants§

CLAUDE_WINDOWS_X86_64_2_1_223_CONTRACT_ID
CLAUDE_WINDOWS_X86_64_2_1_224_CONTRACT_ID
ZAI_GLM_ANTHROPIC_BASE_URL
ZAI_GLM_CLAUDE_OPTIONAL_ENV_KEYS
ZAI_GLM_CLAUDE_OWNED_ENV_KEYS
ZAI_GLM_CLAUDE_PROFILE
Z.AI GLM Coding Plan over the installed Claude Code CLI.
ZAI_GLM_CLAUDE_PROFILE_ID
ZAI_GLM_CLAUDE_PROFILE_REVISION
ZAI_GLM_CLAUDE_REQUIRED_ENV_KEYS

Traits§

NativeChildEnvironmentResolver
Resolves an exact, declared environment overlay at native spawn dispatch.
NativeProviderExecutor
A reviewed provider adapter with fixed launch policy.
NativeProviderOperation
Provider-specific ownership of one physical operation.

Functions§

orca_home_roots
Pinned Orca-compatible roots beneath an explicitly supplied native home.
probe_installed_vendor_version
Probes one exact, absolute launcher without inheriting the parent process environment. The returned value contains no child output, environment values, launcher path, or command line. Windows accepts an exact .exe only; command-script wrappers degrade to raw passthrough instead of adding a shell interpreter to this probe path. The deadline covers launcher fingerprinting, child execution, capture, and the post-execution identity check.
resolve_vendor_contract
Resolves a pure runtime contract from already captured vendor --version output. It never launches a process and never rejects the raw PTY lifecycle.