Skip to content

Open-source, local-first AI agent for real work.

8.1 KB
Raw Blame
export * from "./agents/index.js";
export * from "./configuration/index.js";
export * from "./context-composition/index.js";
export type {
	AssistantSessionEvent,
	AssistantTurnTiming,
	ConversationMessageAppendedEvent,
	ConversationTurnEvent,
	ErrorEvent,
	HistoryEntry,
	HistoryMessageBranch,
	ProjectInfo,
	PromptAttachmentRef,
	PromptRequest,
	PromptResourceRef,
	QueueChangedEvent,
	RuntimeQueuePromptIfRunningOutcome,
	RuntimeSandboxGrantInfo,
	RuntimeSessionAgentSelection,
	RuntimeTurnPromptOutcome,
	SessionAttachment,
	SessionConfig,
	SessionError,
	SessionEvent,
	SessionEventBase,
	SessionExecutionMode,
	SessionExtensionEvent,
	SessionFacade,
	SessionHistoryInfo,
	SessionLifecycleEvent,
	SessionStateSnapshot,
	SettingsPatch,
	ToolEndEvent,
	ToolStartEvent,
	ToolUpdateEvent,
	UsageUpdateEvent,
} from "./contracts.js";
export {
	applyConversationDocumentCommand,
	type ConversationAgentAuthorReference,
	type ConversationAgentMessageDiscardEvent,
	type ConversationAgentMessageEvent,
	type ConversationAgentMessageRecord,
	type ConversationAuthorReference,
	type ConversationDocument,
	type ConversationMessageRecord,
	type ConversationMessageStreamEvent,
	type ConversationToolExecutionEvent,
	type ConversationUserAuthorReference,
	type ConversationUserMessageRecord,
	createEmptyConversationDocument,
	isConversationMessageRecord,
	selectConversationDocumentEntries,
} from "./conversation/index.js";
export { isSessionError, RUNTIME_ERROR_CODES, runtimeError } from "./errors.js";
export type {
	RecordedRuntimeFailure,
	RuntimeFailure,
	RuntimeFailureDetails,
	RuntimeFailureLockHolder,
	RuntimeFailureOrigin,
} from "./failure-contract.js";
export { readRuntimeFailure } from "./failure-contract.js";
export { runtimeFailureFromAIErrorDetails, runtimeFailureFromError } from "./failure-projection.js";
export {
	ConsecutiveFailureCircuitBreaker,
	type ConsecutiveFailureCircuitBreakerOptions,
	type ConsecutiveFailureCircuitBreakerSnapshot,
	type RuntimeContextUsage,
	RuntimeContextUsageTracker,
	type RuntimeContextUsageTrackerOptions,
} from "./kernel/index.js";
export * from "./observation/index.js";
export * from "./retry/index.js";
export type {
	RuntimeExecutionObservationEvent,
	RuntimeMessageEnvelope,
	RuntimeMessageOrigin,
} from "./runtime-execution-observation.js";
export type {
	CatalogRoutedRuntimeHostSessionBackendOptions,
	ComposedRuntimeFactoryOptions,
	InitializationRollbackTask,
	KernelRuntimeAssembly,
	KernelRuntimeFactory,
	KernelRuntimeSessionBackendOptions,
	RetryableCleanupTask,
	RetryableCloseControllerOptions,
	RunningChangedReason,
	RuntimeActiveSession,
	RuntimeActiveSessionCleanupOptions,
	RuntimeActiveSessionCreateOptions,
	RuntimeActiveSessionEndCause,
	RuntimeActiveSessionEventRelayOptions,
	RuntimeActiveSessionHookLifecycle,
	RuntimeActiveSessionHostObservation,
	RuntimeActiveSessionHostOperation,
	RuntimeActiveSessionHostOptions,
	RuntimeActiveSessionListenerKind,
	RuntimeActiveSessionRuntimePort,
	RuntimeActiveSessionStartSource,
	RuntimeActiveSessionTransition,
	RuntimeActiveSessionTransitionDecision,
	RuntimeActiveSessionTransitionKind,
	RuntimeActiveSessionTransitionLifecycle,
	RuntimeAgentAssemblyCreateInput,
	RuntimeAgentInstancePoolLease,
	RuntimeAgentInstancePoolOptions,
	RuntimeAgentPreparedInstance,
	RuntimeAgentSessionAssemblyBackendOptions,
	RuntimeAgentSessionAssemblyDecoratorContext,
	RuntimeAgentSessionConfigurationContext,
	RuntimeAgentSessionConfigurationResolver,
	RuntimeAgentSessionIdentity,
	RuntimeAgentSessionIdentityResolver,
	RuntimeAgentSessionResourceFactory,
	RuntimeAgentSessionResourceFactoryContext,
	RuntimeAssemblyOperation,
	RuntimeContextCompactionRequest,
	RuntimeContextCompactionResult,
	RuntimeContextCompactionState,
	RuntimeContextSummaryRequest,
	RuntimeContextSummaryResult,
	RuntimeCustomEntryInput,
	RuntimeDocumentParticipant,
	RuntimeDocumentParticipantContext,
	RuntimeDynamicState,
	RuntimeExecutionModeUpdate,
	RuntimeHostAgentBackendCandidate,
	RuntimeHostAgentBackendEntrySnapshot,
	RuntimeHostAgentBackendErrorCode,
	RuntimeHostAgentBackendObservation,
	RuntimeHostAgentBackendOperation,
	RuntimeHostAgentBackendPublishResult,
	RuntimeHostAgentBackendRegistryOptions,
	RuntimeHostAgentBackendRegistrySnapshot,
	RuntimeHostAgentBackendRetirement,
	RuntimeHostAgentBackendRevision,
	RuntimeHostAgentInstallation,
	RuntimeHostAgentInstallationOptions,
	RuntimeHostAgentInstallationRetirement,
	RuntimeHostCompositionContext,
	RuntimeHostLifecycleObservation,
	RuntimeHostLifecycleOperation,
	RuntimeHostOptions,
	RuntimeHostPathServices,
	RuntimeHostSessionAssembly,
	RuntimeHostSessionAssemblyAssessment,
	RuntimeHostSessionAssemblyCandidate,
	RuntimeHostSessionBackend,
	RuntimeHostSessionBackendRoute,
	RuntimeHostSessionBackendRouteDecision,
	RuntimeHostSessionPortName,
	RuntimeHostSessionRetryOptions,
	RuntimeModelCatalog,
	RuntimeModelCredentialResolver,
	RuntimeModelOptions,
	RuntimeModelRuntime,
	RuntimeModelSelectionStrategy,
	RuntimeNewSessionOptions,
	RuntimeOwnershipLease,
	RuntimeOwnershipManager,
	RuntimePreparedSessionBinding,
	RuntimePromptAdapter,
	RuntimePromptResult,
	RuntimeQueueSidecarStore,
	RuntimeResourceContext,
	RuntimeResources,
	RuntimeRetiredSessionCleanupOptions,
	RuntimeSandboxGrantStore,
	RuntimeSessionAccess,
	RuntimeSessionAccessResolver,
	RuntimeSessionAccessRoute,
	RuntimeSessionBackend,
	RuntimeSessionCatalog,
	RuntimeSessionConfigurationController,
	RuntimeSessionContextController,
	RuntimeSessionContextControllerOptions,
	RuntimeSessionContextDeliveryController,
	RuntimeSessionContextDeliveryMode,
	RuntimeSessionContextUsage,
	RuntimeSessionContextUsageView,
	RuntimeSessionConversationView,
	RuntimeSessionCoreAssembly,
	RuntimeSessionCorePorts,
	RuntimeSessionCreateRequest,
	RuntimeSessionEventStream,
	RuntimeSessionExecutionController,
	RuntimeSessionExecutionObservation,
	RuntimeSessionExecutionObservationStream,
	RuntimeSessionExtensionHost,
	RuntimeSessionExtensionSource,
	RuntimeSessionFileHistoryReader,
	RuntimeSessionHistoryController,
	RuntimeSessionHistoryReader,
	RuntimeSessionIdentity,
	RuntimeSessionIdentityLifecycle,
	RuntimeSessionInputQueueMode,
	RuntimeSessionMarkerIndex,
	RuntimeSessionMetadataController,
	RuntimeSessionModelController,
	RuntimeSessionModelView,
	RuntimeSessionPathResolveRequest,
	RuntimeSessionPeripherals,
	RuntimeSessionQueueController,
	RuntimeSessionQueueEntryView,
	RuntimeSessionQueueStateView,
	RuntimeSessionQueueView,
	RuntimeSessionSeedInitializer,
	RuntimeSessionSeedTarget,
	RuntimeSessionState,
	RuntimeSessionStateReader,
	RuntimeSessionStatus,
	RuntimeSessionToolController,
	RuntimeSessionTurnControl,
	RuntimeSessionValueIndex,
	RuntimeSessionWorkspaceView,
	RuntimeSharedModelController,
	RuntimeStateSource,
	RuntimeTurnPrompt,
} from "./runtime-host/index.js";
export {
	assessRuntimeHostSessionAssembly,
	CatalogRoutedRuntimeHostSessionBackend,
	CatalogRoutedRuntimeSessionAccessResolver,
	ComposedRuntimeFactory,
	CompositeRuntimeSessionCatalog,
	CompositeRuntimeSessionFileHistoryReader,
	createRuntimeSessionExtensionHost,
	DeferredRuntimeRetryEventStream,
	InitializationRollbackScope,
	InMemoryRuntimeSessionMarkerIndex,
	InMemoryRuntimeSessionValueIndex,
	KernelRuntimeSessionBackend,
	KernelRuntimeSessionContextController,
	mapKernelEventToSessionEvents,
	mapRuntimeSessionObservationEvent,
	RetryableCleanup,
	RetryableCloseController,
	RUNTIME_ACTIVE_SESSION_HOST_OBSERVATION,
	RUNTIME_HOST_AGENT_BACKEND_ERROR_CODES,
	RUNTIME_HOST_AGENT_BACKEND_OBSERVATION,
	RUNTIME_HOST_LIFECYCLE_OBSERVATION,
	RUNTIME_HOST_SESSION_PORT_NAMES,
	RuntimeActiveSessionEventRelay,
	RuntimeActiveSessionHost,
	RuntimeAgentInstancePool,
	RuntimeAgentSessionAssemblyBackend,
	RuntimeHost,
	RuntimeHostAgentBackendError,
	RuntimeHostAgentBackendRegistry,
	RuntimeHostSession,
	RuntimeModel,
	RuntimeOwnershipBinding,
	RuntimeSession,
	RuntimeSessionProjection,
	RuntimeSessionTransitionCleanup,
	waitForRuntimeSessionIdle,
	withRuntimeHostSessionRetry,
} from "./runtime-host/index.js";
export type {
	ContextCompactionEligibility,
	SessionContextState,
	SessionContextStateEvent,
} from "./session-context-state.js";
export * from "./session-extensions/index.js";
export type {
	RuntimeSessionLifecyclePhase,
	RuntimeSessionObservationEvent,
} from "./session-observation.js";