import { z } from "zod"; import { AcpAuthRequiredEventSchema } from "./events/acp-auth-required.js"; import { AcpSessionCompletedEventSchema } from "./events/acp-session-completed.js"; import { AcpSessionErrorEventSchema } from "./events/acp-session-error.js"; import { AcpSessionSpawnedEventSchema } from "./events/acp-session-spawned.js"; import { AcpSessionUpdateEventSchema } from "./events/acp-session-update.js"; import { AcpSessionUsageEventSchema } from "./events/acp-session-usage.js"; import { AppFilesChangedEventSchema } from "./events/app-files-changed.js"; import { AssistantActivityStateEventSchema } from "./events/assistant-activity-state.js"; import { AssistantStatusEventSchema } from "./events/assistant-status.js"; import { AssistantTextDeltaEventSchema } from "./events/assistant-text-delta.js"; import { AssistantThinkingDeltaEventSchema } from "./events/assistant-thinking-delta.js"; import { AssistantTurnStartEventSchema } from "./events/assistant-turn-start.js"; import { AvatarUpdatedEventSchema } from "./events/avatar-updated.js"; import { BackgroundToolCompletedEventSchema } from "./events/background-tool-completed.js"; import { BackgroundToolStartedEventSchema } from "./events/background-tool-started.js"; import { BookmarkCreatedEventSchema } from "./events/bookmark-created.js"; import { BookmarkDeletedEventSchema } from "./events/bookmark-deleted.js"; import { ClientSettingsUpdateEventSchema } from "./events/client-settings-update.js"; import { CompactionCircuitClosedEventSchema } from "./events/compaction-circuit-closed.js"; import { CompactionCircuitOpenEventSchema } from "./events/compaction-circuit-open.js"; import { ConfigChangedEventSchema } from "./events/config-changed.js"; import { ConfirmationRequestEventSchema } from "./events/confirmation-request.js"; import { ConfirmationStateChangedEventSchema } from "./events/confirmation-state-changed.js"; import { ContactRequestEventSchema } from "./events/contact-request.js"; import { ContactsChangedEventSchema } from "./events/contacts-changed.js"; import { ContextCompactedEventSchema } from "./events/context-compacted.js"; import { ContextWindowUsageEventSchema } from "./events/context-window-usage.js"; import { ConversationErrorEventSchema } from "./events/conversation-error.js"; import { ConversationInferenceProfileUpdatedEventSchema } from "./events/conversation-inference-profile-updated.js"; import { ConversationListInvalidatedEventSchema } from "./events/conversation-list-invalidated.js"; import { ConversationNoticeEventSchema } from "./events/conversation-notice.js"; import { ConversationTitleUpdatedEventSchema } from "./events/conversation-title-updated.js"; import { DiskPressureStatusChangedEventSchema } from "./events/disk-pressure-status-changed.js"; import { DocumentCommentCreatedEventSchema } from "./events/document-comment-created.js"; import { DocumentCommentDeletedEventSchema } from "./events/document-comment-deleted.js"; import { DocumentCommentReopenedEventSchema } from "./events/document-comment-reopened.js"; import { DocumentCommentResolvedEventSchema } from "./events/document-comment-resolved.js"; import { DocumentEditorShowEventSchema } from "./events/document-editor-show.js"; import { DocumentEditorUpdateEventSchema } from "./events/document-editor-update.js"; import { ErrorEventSchema } from "./events/error.js"; import { GenerationCancelledEventSchema } from "./events/generation-cancelled.js"; import { GenerationHandoffEventSchema } from "./events/generation-handoff.js"; import { HeartbeatAlertEventSchema } from "./events/heartbeat-alert.js"; import { HeartbeatConversationCreatedEventSchema } from "./events/heartbeat-conversation-created.js"; import { HomeFeedUpdatedEventSchema } from "./events/home-feed-updated.js"; import { HookEventSchema } from "./events/hook-event.js"; import { HostAppControlCancelEventSchema, HostAppControlRequestEventSchema, } from "./events/host-app-control.js"; import { HostBashCancelEventSchema, HostBashRequestEventSchema, } from "./events/host-bash.js"; import { HostBrowserCancelEventSchema, HostBrowserRequestEventSchema, } from "./events/host-browser.js"; import { HostCuCancelEventSchema, HostCuRequestEventSchema, } from "./events/host-cu.js"; import { HostFileCancelEventSchema, HostFileRequestEventSchema, } from "./events/host-file.js"; import { HostTransferCancelEventSchema, HostTransferRequestEventSchema, } from "./events/host-transfer.js"; import { HostUiSnapshotCancelEventSchema, HostUiSnapshotRequestEventSchema, } from "./events/host-ui-snapshot.js"; import { IdentityChangedEventSchema } from "./events/identity-changed.js"; import { InteractionResolvedEventSchema } from "./events/interaction-resolved.js"; import { MemoryRecalledEventSchema } from "./events/memory-recalled.js"; import { MemoryStatusEventSchema } from "./events/memory-status.js"; import { MessageCompleteEventSchema } from "./events/message-complete.js"; import { MessageDequeuedEventSchema } from "./events/message-dequeued.js"; import { MessageQueuedEventSchema } from "./events/message-queued.js"; import { MessageQueuedDeletedEventSchema } from "./events/message-queued-deleted.js"; import { MessageRequestCompleteEventSchema } from "./events/message-request-complete.js"; import { MessageRequeuedEventSchema } from "./events/message-requeued.js"; import { MessageSteeredEventSchema } from "./events/message-steered.js"; import { ModelInfoEventSchema } from "./events/model-info.js"; import { NavigateSettingsEventSchema } from "./events/navigate-settings.js"; import { NotificationConversationCreatedEventSchema } from "./events/notification-conversation-created.js"; import { NotificationIntentEventSchema } from "./events/notification-intent.js"; import { OAuthConnectResultEventSchema } from "./events/oauth-connect-result.js"; import { OpenConversationEventSchema } from "./events/open-conversation.js"; import { OpenPanelEventSchema } from "./events/open-panel.js"; import { OpenUrlEventSchema } from "./events/open-url.js"; import { PlatformDisconnectedEventSchema } from "./events/platform-disconnected.js"; import { QuestionRequestEventSchema } from "./events/question-request.js"; import { RecordingPauseEventSchema, RecordingResumeEventSchema, RecordingStartEventSchema, RecordingStopEventSchema, } from "./events/recording.js"; import { RelationshipStateUpdatedEventSchema } from "./events/relationship-state-updated.js"; import { ResourcePressureStatusChangedEventSchema } from "./events/resource-pressure-status-changed.js"; import { ScheduleConversationCreatedEventSchema } from "./events/schedule-conversation-created.js"; import { SecretRequestEventSchema } from "./events/secret-request.js"; import { ServiceGroupUpdateCompleteEventSchema } from "./events/service-group-update-complete.js"; import { ServiceGroupUpdateProgressEventSchema } from "./events/service-group-update-progress.js"; import { ServiceGroupUpdateStartingEventSchema } from "./events/service-group-update-starting.js"; import { ShowPlatformLoginEventSchema } from "./events/show-platform-login.js"; import { SkillStateChangedEventSchema } from "./events/skill-state-changed.js"; import { SoundsConfigUpdatedEventSchema } from "./events/sounds-config-updated.js"; import { SubagentEventEventSchema } from "./events/subagent-event.js"; import { SubagentSpawnedEventSchema } from "./events/subagent-spawned.js"; import { SubagentStatusChangedEventSchema } from "./events/subagent-status-changed.js"; import { SyncChangedEventSchema } from "./events/sync-changed.js"; import { ToolInputDeltaEventSchema } from "./events/tool-input-delta.js"; import { ToolOutputChunkEventSchema } from "./events/tool-output-chunk.js"; import { ToolResultEventSchema } from "./events/tool-result.js"; import { ToolUsePreviewStartEventSchema } from "./events/tool-use-preview-start.js"; import { ToolUseStartEventSchema } from "./events/tool-use-start.js"; import { UISurfaceCompleteEventSchema } from "./events/ui-surface-complete.js"; import { UISurfaceDismissEventSchema } from "./events/ui-surface-dismiss.js"; import { UISurfacePendingEventSchema } from "./events/ui-surface-pending.js"; import { UISurfaceShowEventSchema } from "./events/ui-surface-show.js"; import { UISurfaceUndoResultEventSchema } from "./events/ui-surface-undo-result.js"; import { UISurfaceUpdateEventSchema } from "./events/ui-surface-update.js"; import { UsageProgressEventSchema } from "./events/usage-progress.js"; import { UsageUpdateEventSchema } from "./events/usage-update.js"; import { UserMessageEchoEventSchema } from "./events/user-message-echo.js"; import { WorkflowCompletedEventSchema } from "./events/workflow-completed.js"; import { WorkflowLeafFinishedEventSchema } from "./events/workflow-leaf-finished.js"; import { WorkflowLeafStartedEventSchema } from "./events/workflow-leaf-started.js"; import { WorkflowProgressEventSchema } from "./events/workflow-progress.js"; import { WorkflowStartedEventSchema } from "./events/workflow-started.js"; export { APP_MUTATION_TOOL_NAMES, APP_MUTATION_TOOLS, type AppMutationTool, } from "./constants/app-tools.js"; export { CALL_SITE_COMPACTION_AGENT, CALL_SITE_SYNTHETIC_AGENT_ERROR_MESSAGE, } from "./constants/call-sites.js"; export { DOCUMENT_EDIT_TOOL_NAMES, DOCUMENT_MUTATION_TOOL_NAMES, DOCUMENT_MUTATION_TOOLS, type DocumentMutationTool, REOPENABLE_DOCUMENT_MUTATION_TOOL_NAMES, } from "./constants/document-tools.js"; export { SSE_REPLAY_RING_AGE_LIMIT_MS, SSE_REPLAY_RING_COUNT_LIMIT, } from "./constants/sse-replay.js"; export { DEFAULT_TOOL_EXECUTION_TIMEOUT_SEC } from "./constants/tool-execution.js"; export { ACP_CLAUDE_AUTH_REQUIRED_CODE, type AcpAuthRequiredEvent, AcpAuthRequiredEventSchema, } from "./events/acp-auth-required.js"; export { type AcpSessionCompletedEvent, AcpSessionCompletedEventSchema, type AcpStopReason, AcpStopReasonSchema, } from "./events/acp-session-completed.js"; export { type AcpSessionErrorEvent, AcpSessionErrorEventSchema, } from "./events/acp-session-error.js"; export { type AcpSessionSpawnedEvent, AcpSessionSpawnedEventSchema, } from "./events/acp-session-spawned.js"; export { type AcpSessionUpdateEvent, AcpSessionUpdateEventSchema, type AcpSessionUpdateType, AcpSessionUpdateTypeSchema, } from "./events/acp-session-update.js"; export { type AcpSessionUsageEvent, AcpSessionUsageEventSchema, } from "./events/acp-session-usage.js"; export { type AppFilesChangedEvent, AppFilesChangedEventSchema, } from "./events/app-files-changed.js"; export { type AssistantActivityAnchor, AssistantActivityAnchorSchema, type AssistantActivityPhase, AssistantActivityPhaseSchema, type AssistantActivityReason, AssistantActivityReasonSchema, type AssistantActivityStateEvent, AssistantActivityStateEventSchema, } from "./events/assistant-activity-state.js"; export { type AssistantOutboundAttachment, AssistantOutboundAttachmentSchema, } from "./events/assistant-outbound-attachment.js"; export { type AssistantStatusEvent, AssistantStatusEventSchema, } from "./events/assistant-status.js"; export { type AssistantTextDeltaEvent, AssistantTextDeltaEventSchema, } from "./events/assistant-text-delta.js"; export { type AssistantThinkingDeltaEvent, AssistantThinkingDeltaEventSchema, } from "./events/assistant-thinking-delta.js"; export { type AssistantTurnStartEvent, AssistantTurnStartEventSchema, } from "./events/assistant-turn-start.js"; export { type AvatarUpdatedEvent, AvatarUpdatedEventSchema, } from "./events/avatar-updated.js"; export { type BackgroundToolCompletedEvent, BackgroundToolCompletedEventSchema, } from "./events/background-tool-completed.js"; export { type BackgroundToolStartedEvent, BackgroundToolStartedEventSchema, } from "./events/background-tool-started.js"; export { type BookmarkCreatedEvent, BookmarkCreatedEventSchema, type BookmarkSummary, BookmarkSummarySchema, } from "./events/bookmark-created.js"; export { type BookmarkDeletedEvent, BookmarkDeletedEventSchema, } from "./events/bookmark-deleted.js"; export { type ClientSettingsUpdateEvent, ClientSettingsUpdateEventSchema, } from "./events/client-settings-update.js"; export { type CompactionCircuitClosedEvent, CompactionCircuitClosedEventSchema, } from "./events/compaction-circuit-closed.js"; export { type CompactionCircuitOpenEvent, CompactionCircuitOpenEventSchema, } from "./events/compaction-circuit-open.js"; export { type ConfigChangedEvent, ConfigChangedEventSchema, } from "./events/config-changed.js"; export { type ACPOption, type ACPOptionKind, ACPOptionKindSchema, ACPOptionSchema, type AllowlistOption, AllowlistOptionSchema, type ConfirmationDiff, ConfirmationDiffSchema, type ConfirmationExecutionTarget, ConfirmationExecutionTargetSchema, type ConfirmationRequestEvent, ConfirmationRequestEventSchema, type DirectoryScopeOption, DirectoryScopeOptionSchema, type ScopeOption, ScopeOptionSchema, } from "./events/confirmation-request.js"; export { type ConfirmationStateChangedEvent, ConfirmationStateChangedEventSchema, } from "./events/confirmation-state-changed.js"; export { type ContactRequestEvent, ContactRequestEventSchema, } from "./events/contact-request.js"; export { type ContactsChangedEvent, ContactsChangedEventSchema, } from "./events/contacts-changed.js"; export { type ContextCompactedEvent, ContextCompactedEventSchema, } from "./events/context-compacted.js"; export { type ContextWindowUsageEvent, ContextWindowUsageEventSchema, } from "./events/context-window-usage.js"; export { type ConversationErrorCode, ConversationErrorCodeSchema, type ConversationErrorEvent, ConversationErrorEventSchema, } from "./events/conversation-error.js"; export { type ConversationInferenceProfileUpdatedEvent, ConversationInferenceProfileUpdatedEventSchema, } from "./events/conversation-inference-profile-updated.js"; export { type ConversationListInvalidatedEvent, ConversationListInvalidatedEventSchema, type ConversationListInvalidatedReason, ConversationListInvalidatedReasonSchema, } from "./events/conversation-list-invalidated.js"; export { type ConversationNoticeEvent, ConversationNoticeEventSchema, ConversationNoticeSourceSchema, } from "./events/conversation-notice.js"; export { type ConversationTitleUpdatedEvent, ConversationTitleUpdatedEventSchema, } from "./events/conversation-title-updated.js"; export { type DiskPressureBlockedCapability, DiskPressureBlockedCapabilitySchema, type DiskPressureState, DiskPressureStateSchema, type DiskPressureStatus, type DiskPressureStatusChangedEvent, DiskPressureStatusChangedEventSchema, DiskPressureStatusSchema, } from "./events/disk-pressure-status-changed.js"; export { type DocumentCommentCreatedEvent, DocumentCommentCreatedEventSchema, } from "./events/document-comment-created.js"; export { type DocumentCommentDeletedEvent, DocumentCommentDeletedEventSchema, } from "./events/document-comment-deleted.js"; export { type DocumentCommentReopenedEvent, DocumentCommentReopenedEventSchema, } from "./events/document-comment-reopened.js"; export { type DocumentCommentResolvedEvent, DocumentCommentResolvedEventSchema, } from "./events/document-comment-resolved.js"; export { type DocumentEditorShowEvent, DocumentEditorShowEventSchema, } from "./events/document-editor-show.js"; export { type DocumentEditorUpdateEvent, DocumentEditorUpdateEventSchema, } from "./events/document-editor-update.js"; export { type ErrorEvent, ErrorEventSchema } from "./events/error.js"; export { type GenerationCancelledEvent, GenerationCancelledEventSchema, } from "./events/generation-cancelled.js"; export { type GenerationHandoffEvent, GenerationHandoffEventSchema, } from "./events/generation-handoff.js"; export { type HeartbeatAlertEvent, HeartbeatAlertEventSchema, } from "./events/heartbeat-alert.js"; export { type HeartbeatConversationCreatedEvent, HeartbeatConversationCreatedEventSchema, } from "./events/heartbeat-conversation-created.js"; export { type HomeFeedUpdatedEvent, HomeFeedUpdatedEventSchema, } from "./events/home-feed-updated.js"; export { type HookEvent, type HookEventOwner, HookEventOwnerSchema, HookEventSchema, } from "./events/hook-event.js"; export { type HostAppControlCancelEvent, HostAppControlCancelEventSchema, type HostAppControlInput, HostAppControlInputSchema, type HostAppControlRequestEvent, HostAppControlRequestEventSchema, type HostAppControlSequenceStep, HostAppControlSequenceStepSchema, } from "./events/host-app-control.js"; export { type HostBashCancelEvent, HostBashCancelEventSchema, type HostBashRequestEvent, HostBashRequestEventSchema, } from "./events/host-bash.js"; export { type HostBrowserCancelEvent, HostBrowserCancelEventSchema, type HostBrowserRequestEvent, HostBrowserRequestEventSchema, } from "./events/host-browser.js"; export { type HostCuCancelEvent, HostCuCancelEventSchema, type HostCuRequestEvent, HostCuRequestEventSchema, } from "./events/host-cu.js"; export { type HostFileCancelEvent, HostFileCancelEventSchema, type HostFileRequestEvent, HostFileRequestEventSchema, } from "./events/host-file.js"; export { type HostTransferCancelEvent, HostTransferCancelEventSchema, type HostTransferRequestEvent, HostTransferRequestEventSchema, } from "./events/host-transfer.js"; export { type HostUiSnapshotCancelEvent, HostUiSnapshotCancelEventSchema, type HostUiSnapshotRequestEvent, HostUiSnapshotRequestEventSchema, type HostUiSnapshotView, HostUiSnapshotViewSchema, } from "./events/host-ui-snapshot.js"; export { type IdentityChangedEvent, IdentityChangedEventSchema, } from "./events/identity-changed.js"; export { type InteractionResolutionState, InteractionResolutionStateSchema, type InteractionResolvedEvent, InteractionResolvedEventSchema, } from "./events/interaction-resolved.js"; export { type MemoryRecalledCandidateDebug, MemoryRecalledCandidateDebugSchema, type MemoryRecalledDegradation, MemoryRecalledDegradationSchema, type MemoryRecalledEvent, MemoryRecalledEventSchema, } from "./events/memory-recalled.js"; export { type MemoryStatusEvent, MemoryStatusEventSchema, } from "./events/memory-status.js"; export { type MessageCompleteEvent, MessageCompleteEventSchema, } from "./events/message-complete.js"; export { type MessageDequeuedEvent, MessageDequeuedEventSchema, } from "./events/message-dequeued.js"; export { type MessageQueuedEvent, MessageQueuedEventSchema, } from "./events/message-queued.js"; export { type MessageQueuedDeletedEvent, MessageQueuedDeletedEventSchema, } from "./events/message-queued-deleted.js"; export { type MessageRequestCompleteEvent, MessageRequestCompleteEventSchema, } from "./events/message-request-complete.js"; export { type MessageRequeuedEvent, MessageRequeuedEventSchema, } from "./events/message-requeued.js"; export { type MessageSteeredEvent, MessageSteeredEventSchema, } from "./events/message-steered.js"; export { type ModelInfoEvent, ModelInfoEventSchema, } from "./events/model-info.js"; export { type NavigateSettingsEvent, NavigateSettingsEventSchema, } from "./events/navigate-settings.js"; export { type NotificationConversationCreatedEvent, NotificationConversationCreatedEventSchema, } from "./events/notification-conversation-created.js"; export { type NotificationIntentEvent, NotificationIntentEventSchema, } from "./events/notification-intent.js"; export { type OAuthConnectResultEvent, OAuthConnectResultEventSchema, } from "./events/oauth-connect-result.js"; export { type OpenConversationEvent, OpenConversationEventSchema, } from "./events/open-conversation.js"; export { type OpenPanelEvent, OpenPanelEventSchema, } from "./events/open-panel.js"; export { type OpenUrlEvent, OpenUrlEventSchema } from "./events/open-url.js"; export { type PlatformDisconnectedEvent, PlatformDisconnectedEventSchema, } from "./events/platform-disconnected.js"; export { type AnsweredQuestion, type AnsweredQuestionResponse, AnsweredQuestionResponseSchema, AnsweredQuestionSchema, } from "./events/question-answered.js"; export { type QuestionEntry, QuestionEntrySchema, type QuestionOption, QuestionOptionSchema, type QuestionRequestEvent, QuestionRequestEventSchema, } from "./events/question-request.js"; export { type RecordingOptions, RecordingOptionsSchema, type RecordingPauseEvent, RecordingPauseEventSchema, type RecordingResumeEvent, RecordingResumeEventSchema, type RecordingStartEvent, RecordingStartEventSchema, type RecordingStopEvent, RecordingStopEventSchema, } from "./events/recording.js"; export { type RelationshipStateUpdatedEvent, RelationshipStateUpdatedEventSchema, } from "./events/relationship-state-updated.js"; export { type ResourcePressureState, ResourcePressureStateSchema, type ResourcePressureStatus, type ResourcePressureStatusChangedEvent, ResourcePressureStatusChangedEventSchema, ResourcePressureStatusSchema, } from "./events/resource-pressure-status-changed.js"; export { type ScheduleConversationCreatedEvent, ScheduleConversationCreatedEventSchema, } from "./events/schedule-conversation-created.js"; export { type SecretRequestEvent, SecretRequestEventSchema, } from "./events/secret-request.js"; export { type ServiceGroupUpdateCompleteEvent, ServiceGroupUpdateCompleteEventSchema, } from "./events/service-group-update-complete.js"; export { type ServiceGroupUpdateProgressEvent, ServiceGroupUpdateProgressEventSchema, } from "./events/service-group-update-progress.js"; export { type ServiceGroupUpdateStartingEvent, ServiceGroupUpdateStartingEventSchema, } from "./events/service-group-update-starting.js"; export { type ShowPlatformLoginEvent, ShowPlatformLoginEventSchema, } from "./events/show-platform-login.js"; export { type SkillStateChangedEvent, SkillStateChangedEventSchema, } from "./events/skill-state-changed.js"; export { type SoundsConfigUpdatedEvent, SoundsConfigUpdatedEventSchema, } from "./events/sounds-config-updated.js"; export { type SubagentEventEvent, SubagentEventEventSchema, type SubagentInnerEvent, SubagentInnerEventSchema, } from "./events/subagent-event.js"; export { type SubagentSpawnedEvent, SubagentSpawnedEventSchema, } from "./events/subagent-spawned.js"; export { type SubagentStatus, type SubagentStatusChangedEvent, SubagentStatusChangedEventSchema, SubagentStatusSchema, type SubagentUsageStats, SubagentUsageStatsSchema, } from "./events/subagent-status-changed.js"; export { type SyncChangedEvent, SyncChangedEventSchema, } from "./events/sync-changed.js"; export { type ToolInputDeltaEvent, ToolInputDeltaEventSchema, } from "./events/tool-input-delta.js"; export { type ToolOutputChunkEvent, ToolOutputChunkEventSchema, type ToolOutputChunkSubType, ToolOutputChunkSubTypeSchema, } from "./events/tool-output-chunk.js"; export { type RiskScopeOption, RiskScopeOptionSchema, type ToolActivityMetadata, ToolActivityMetadataSchema, type ToolResultEvent, ToolResultEventSchema, type WebFetchMetadata, WebFetchMetadataSchema, type WebSearchMetadata, WebSearchMetadataSchema, type WebSearchProviderId, WebSearchProviderIdSchema, type WebSearchResultItem, WebSearchResultItemSchema, } from "./events/tool-result.js"; export { type ToolUsePreviewStartEvent, ToolUsePreviewStartEventSchema, } from "./events/tool-use-preview-start.js"; export { type ToolUseStartEvent, ToolUseStartEventSchema, } from "./events/tool-use-start.js"; export { type UISurfaceCompleteEvent, UISurfaceCompleteEventSchema, } from "./events/ui-surface-complete.js"; export { type UISurfaceDismissEvent, UISurfaceDismissEventSchema, } from "./events/ui-surface-dismiss.js"; export { type UISurfacePendingEvent, UISurfacePendingEventSchema, } from "./events/ui-surface-pending.js"; export { type SurfaceAction, SurfaceActionSchema, type UISurfaceShowEvent, UISurfaceShowEventSchema, } from "./events/ui-surface-show.js"; export { type UISurfaceUndoResultEvent, UISurfaceUndoResultEventSchema, } from "./events/ui-surface-undo-result.js"; export { type UISurfaceUpdateEvent, UISurfaceUpdateEventSchema, } from "./events/ui-surface-update.js"; export { type UsageProgressEvent, UsageProgressEventSchema, } from "./events/usage-progress.js"; export { type UsageUpdateEvent, UsageUpdateEventSchema, } from "./events/usage-update.js"; export { type UserMessageEchoEvent, UserMessageEchoEventSchema, } from "./events/user-message-echo.js"; export { type WorkflowCompletedEvent, WorkflowCompletedEventSchema, type WorkflowRunStatus, WorkflowRunStatusSchema, } from "./events/workflow-completed.js"; export { type WorkflowLeafFinishedEvent, WorkflowLeafFinishedEventSchema, } from "./events/workflow-leaf-finished.js"; export { type WorkflowLeafStartedEvent, WorkflowLeafStartedEventSchema, } from "./events/workflow-leaf-started.js"; export { type WorkflowProgressEvent, WorkflowProgressEventSchema, } from "./events/workflow-progress.js"; export { type WorkflowStartedEvent, WorkflowStartedEventSchema, } from "./events/workflow-started.js"; export { type DictationContext, DictationContextSchema, type DictationRequest, DictationRequestSchema, } from "./requests/dictation.js"; export { type BackgroundToolCompletion, type ConversationAttachmentBlock, ConversationAttachmentBlockSchema, type ConversationContentBlock, ConversationContentBlockSchema, type ConversationMessage, type ConversationMessageAttachment, ConversationMessageAttachmentSchema, ConversationMessageSchema, type ConversationMessageSurface, ConversationMessageSurfaceSchema, type ConversationMessageToolCall, ConversationMessageToolCallSchema, type ConversationSlackMessage, ConversationSlackMessageSchema, type ConversationSubagentNotification, ConversationSubagentNotificationSchema, type ConversationSurfaceBlock, ConversationSurfaceBlockSchema, type ConversationTextBlock, ConversationTextBlockSchema, type ConversationThinkingBlock, ConversationThinkingBlockSchema, type ConversationToolUseBlock, ConversationToolUseBlockSchema, type PendingToolConfirmation, PendingToolConfirmationSchema, } from "./responses/conversation-message.js"; export { type DiskPressureStatusResponse, DiskPressureStatusResponseSchema, } from "./responses/disk-pressure-status.js"; export { type Capability, CapabilitySchema, type CapabilityTier, type ContextBanner, ContextBannerSchema, type Fact, type FactCategory, type FactConfidence, FactSchema, type FactSource, type FeedAction, FeedActionSchema, type FeedItem, type FeedItemCategory, FeedItemCategorySchema, type FeedItemDetailPanel, type FeedItemDetailPanelKind, FeedItemDetailPanelKindSchema, FeedItemDetailPanelSchema, FeedItemSchema, type FeedItemSourceType, FeedItemSourceTypeSchema, type FeedItemStatus, FeedItemStatusSchema, type FeedItemType, FeedItemTypeSchema, type FeedItemUrgency, FeedItemUrgencySchema, type HomeFeedResponse, HomeFeedResponseSchema, type RelationshipState, RelationshipStateSchema, type RelationshipTier, type SuggestedPrompt, SuggestedPromptSchema, type SuggestedPromptSource, SuggestedPromptSourceSchema, } from "./responses/home.js"; export { type LlmContextResponse, LlmContextResponseSchema, } from "./responses/llm-context-response.js"; export { type LatencyBreakdown, LatencyBreakdownSchema, type LatencyPhase, LatencyPhaseSchema, type LLMCallError, LLMCallErrorSchema, type LLMCallSummary, LLMCallSummarySchema, type LLMContextSection, LLMContextSectionSchema, type LLMRequestLogEntry, LLMRequestLogEntrySchema, } from "./responses/llm-request-log-entry.js"; export { type MemoryCandidate, MemoryCandidateSchema, type MemoryDegradation, MemoryDegradationSchema, type MemoryRecallLog, MemoryRecallLogSchema, } from "./responses/memory-recall-log.js"; export { type MemoryV2ActivationLog, MemoryV2ActivationLogSchema, type MemoryV2ConceptRow, MemoryV2ConceptRowSchema, type MemoryV2ConfigSnapshot, MemoryV2ConfigSnapshotSchema, } from "./responses/memory-v2-activation-log.js"; export { type MemoryV3SelectionLog, MemoryV3SelectionLogSchema, type MemoryV3SelectionRow, MemoryV3SelectionRowSchema, } from "./responses/memory-v3-selection-log.js"; export { type ResourcePressureStatusResponse, ResourcePressureStatusResponseSchema, } from "./responses/resource-pressure-status.js"; export { type SubagentDetailEvent, SubagentDetailEventSchema, type SubagentDetailResponse, SubagentDetailResponseSchema, } from "./responses/subagent-detail.js"; export { type WorkflowJournalResponse, WorkflowJournalResponseSchema, type WorkflowLeaf, WorkflowLeafSchema, } from "./responses/workflow-journal.js"; export { type AnySurfaceData, type CardSurfaceData, CardSurfaceDataSchema, type ChoiceOption, ChoiceOptionSchema, type ChoiceSurfaceData, ChoiceSurfaceDataSchema, coerceSurfaceDataRecord, type ConfirmationSurfaceData, ConfirmationSurfaceDataSchema, type CopyBlockSurfaceData, CopyBlockSurfaceDataSchema, DAEMON_INTERNAL_SURFACE_TYPES, type DocumentPreviewSurfaceData, DocumentPreviewSurfaceDataSchema, type DynamicPagePreview, DynamicPagePreviewSchema, type DynamicPageSurfaceData, DynamicPageSurfaceDataSchema, type FileUploadSurfaceData, FileUploadSurfaceDataSchema, type FormField, FormFieldSchema, type FormPage, FormPageSchema, type FormSurfaceData, FormSurfaceDataSchema, isDaemonInternalSurfaceType, type ListItem, ListItemSchema, type ListSurfaceData, ListSurfaceDataSchema, MODEL_INVOKABLE_SURFACE_TYPES, normalizeCopyBlockShowData, type OAuthConnectSurfaceData, OAuthConnectSurfaceDataSchema, SURFACE_DATA_SCHEMAS, SURFACE_TYPES, type SurfaceData, type SurfaceDataByType, type SurfaceType, SurfaceTypeSchema, type TableCellValue, TableCellValueSchema, type TableColumn, TableColumnSchema, type TableRow, TableRowSchema, type TableSurfaceData, TableSurfaceDataSchema, type VisualSurfaceData, VisualSurfaceDataSchema, type WorkResultDiff, WorkResultDiffSchema, type WorkResultItem, WorkResultItemSchema, type WorkResultMetadata, WorkResultMetadataSchema, type WorkResultMetric, WorkResultMetricSchema, type WorkResultSection, WorkResultSectionSchema, type WorkResultSectionType, WorkResultSectionTypeSchema, type WorkResultStatus, WorkResultStatusSchema, type WorkResultSurfaceData, WorkResultSurfaceDataSchema, type WorkResultTone, WorkResultToneSchema, } from "./surfaces.js"; /** * Canonical SSE event schema for the assistant runtime. * * Discriminated union over the `type` field. Each member is the * canonical wire-contract schema for a single event type, defined * alongside the daemon code that emits it. Consumers (web client, * gateway, evals) parse incoming events with this single schema * rather than maintaining their own dispatch table. * * Add new events by exporting their schema from `./events/` and * appending them to the union below. See `./README.md` for the full * migration recipe. */ export const AssistantEventSchema = z.discriminatedUnion("type", [ AcpAuthRequiredEventSchema, AcpSessionCompletedEventSchema, AcpSessionErrorEventSchema, AcpSessionSpawnedEventSchema, AcpSessionUpdateEventSchema, AcpSessionUsageEventSchema, AppFilesChangedEventSchema, AssistantActivityStateEventSchema, AssistantStatusEventSchema, AssistantTextDeltaEventSchema, AssistantThinkingDeltaEventSchema, AssistantTurnStartEventSchema, AvatarUpdatedEventSchema, BackgroundToolCompletedEventSchema, BackgroundToolStartedEventSchema, BookmarkCreatedEventSchema, BookmarkDeletedEventSchema, ClientSettingsUpdateEventSchema, CompactionCircuitClosedEventSchema, CompactionCircuitOpenEventSchema, ConfigChangedEventSchema, ConfirmationRequestEventSchema, ConfirmationStateChangedEventSchema, ContactRequestEventSchema, ContactsChangedEventSchema, ContextCompactedEventSchema, ContextWindowUsageEventSchema, ConversationErrorEventSchema, ConversationInferenceProfileUpdatedEventSchema, ConversationListInvalidatedEventSchema, ConversationNoticeEventSchema, ConversationTitleUpdatedEventSchema, DiskPressureStatusChangedEventSchema, DocumentCommentCreatedEventSchema, DocumentCommentDeletedEventSchema, DocumentCommentReopenedEventSchema, DocumentCommentResolvedEventSchema, DocumentEditorShowEventSchema, DocumentEditorUpdateEventSchema, ErrorEventSchema, GenerationCancelledEventSchema, GenerationHandoffEventSchema, HeartbeatAlertEventSchema, HeartbeatConversationCreatedEventSchema, HomeFeedUpdatedEventSchema, HookEventSchema, HostAppControlCancelEventSchema, HostAppControlRequestEventSchema, HostBashCancelEventSchema, HostBashRequestEventSchema, HostBrowserCancelEventSchema, HostBrowserRequestEventSchema, HostCuCancelEventSchema, HostCuRequestEventSchema, HostFileCancelEventSchema, HostFileRequestEventSchema, HostTransferCancelEventSchema, HostTransferRequestEventSchema, HostUiSnapshotCancelEventSchema, HostUiSnapshotRequestEventSchema, IdentityChangedEventSchema, InteractionResolvedEventSchema, MemoryRecalledEventSchema, MemoryStatusEventSchema, MessageCompleteEventSchema, MessageDequeuedEventSchema, MessageQueuedEventSchema, MessageQueuedDeletedEventSchema, MessageRequestCompleteEventSchema, MessageRequeuedEventSchema, MessageSteeredEventSchema, ModelInfoEventSchema, NavigateSettingsEventSchema, NotificationConversationCreatedEventSchema, NotificationIntentEventSchema, OAuthConnectResultEventSchema, OpenConversationEventSchema, OpenPanelEventSchema, OpenUrlEventSchema, PlatformDisconnectedEventSchema, QuestionRequestEventSchema, RecordingPauseEventSchema, RecordingResumeEventSchema, RecordingStartEventSchema, RecordingStopEventSchema, RelationshipStateUpdatedEventSchema, ResourcePressureStatusChangedEventSchema, ScheduleConversationCreatedEventSchema, SecretRequestEventSchema, ServiceGroupUpdateCompleteEventSchema, ServiceGroupUpdateProgressEventSchema, ServiceGroupUpdateStartingEventSchema, ShowPlatformLoginEventSchema, SkillStateChangedEventSchema, SoundsConfigUpdatedEventSchema, SubagentEventEventSchema, SubagentSpawnedEventSchema, SubagentStatusChangedEventSchema, SyncChangedEventSchema, ToolInputDeltaEventSchema, ToolOutputChunkEventSchema, ToolResultEventSchema, ToolUsePreviewStartEventSchema, ToolUseStartEventSchema, UISurfaceCompleteEventSchema, UISurfaceDismissEventSchema, UISurfacePendingEventSchema, UISurfaceShowEventSchema, UISurfaceUndoResultEventSchema, UISurfaceUpdateEventSchema, UsageProgressEventSchema, UsageUpdateEventSchema, UserMessageEchoEventSchema, WorkflowCompletedEventSchema, WorkflowLeafFinishedEventSchema, WorkflowLeafStartedEventSchema, WorkflowProgressEventSchema, WorkflowStartedEventSchema, ]); /** * Inferred TypeScript union for every event currently covered by * `AssistantEventSchema`. Consumers should reference this single type * rather than re-listing the individual member types — as each new * event migrates into the schema, it appears here automatically. */ export type AssistantEvent = z.infer; /** * SSE wire envelope wrapping every outbound event from the daemon. * * Transport-level metadata (`id`, `seq`, `emittedAt`, `conversationId`) * surrounds the semantic event payload in `message`. */ export const AssistantEventEnvelopeSchema = z.object({ id: z.string(), conversationId: z.string().optional(), seq: z.number().int().optional(), emittedAt: z.string(), message: AssistantEventSchema, }); export type AssistantEventEnvelope = z.infer< typeof AssistantEventEnvelopeSchema >;