chore: save wip changes

This commit is contained in:
2026-06-20 16:07:12 +01:00
parent 2e6cae4d02
commit 25713ef614
11 changed files with 275 additions and 199 deletions

View File

@@ -152,6 +152,14 @@ export const GenericObjectPayload = type("Record<string, unknown>")
/** Fallback payload shape for tool calls, tool results, and system notes. */
export type GenericObjectPayload = typeof GenericObjectPayload.infer
export const ConversationEntryPayload = type.or(
UserMessagePayload,
AssistantMessagePayload,
AttachmentPayload,
ContextSummaryPayload,
GenericObjectPayload,
)
/** Union of payload shapes that can be stored on a conversation entry. */
export type ConversationEntryPayload =
| UserMessagePayload

View File

@@ -1,69 +1,84 @@
// Context
export type { ContextEntry, ContextKey, ContextKeyPart } from "./context"
export { Context, contextKey, serializeKey } from "./context"
export type { ContextEntry, ContextKey, ContextKeyPart } from "./context";
export { Context, contextKey, serializeKey } from "./context";
// Actions
export type { ActionDefinition } from "./action"
export { UnknownActionError } from "./action"
export type { ActionDefinition } from "./action";
export { UnknownActionError } from "./action";
// Conversation
export type { ConversationEntryPayload } from "./conversation"
export {
AssistantMessagePayload,
AttachmentPayload,
AttachmentType,
ContextSummary,
ContextSummaryPayload,
ConversationEntryKind,
ConversationEntryMetadata,
ConversationEntryVisibility,
GenericObjectPayload,
JsonMessagePart,
MessagePart,
ModelRunMetadata,
TextMessagePart,
UserMessagePayload,
} from "./conversation"
AssistantMessagePayload,
AttachmentPayload,
AttachmentType,
ContextSummary,
ContextSummaryPayload,
ConversationEntryKind,
ConversationEntryMetadata,
ConversationEntryVisibility,
GenericObjectPayload,
JsonMessagePart,
MessagePart,
ModelRunMetadata,
TextMessagePart,
UserMessagePayload,
ConversationEntryPayload,
} from "./conversation";
// Feed
export type { FeedItem, FeedItemRenderer, FeedItemSignals, RenderedFeedItem, Slot } from "./feed"
export { TimeRelevance } from "./feed"
export type {
FeedItem,
FeedItemRenderer,
FeedItemSignals,
RenderedFeedItem,
Slot,
} from "./feed";
export { TimeRelevance } from "./feed";
// Feed Source
export type { FeedSource } from "./feed-source"
export type { FeedSource } from "./feed-source";
// Feed Post-Processor
export type { FeedEnhancement, FeedPostProcessor, ItemGroup } from "./feed-post-processor"
export type {
FeedEnhancement,
FeedPostProcessor,
ItemGroup,
} from "./feed-post-processor";
// Feed Engine
export type { FeedEngineConfig, FeedResult, FeedSubscriber, SourceError } from "./feed-engine"
export { FeedEngine } from "./feed-engine"
export type {
FeedEngineConfig,
FeedResult,
FeedSubscriber,
SourceError,
} from "./feed-engine";
export { FeedEngine } from "./feed-engine";
// =============================================================================
// DEPRECATED - Use FeedSource + FeedEngine instead
// =============================================================================
// Data Source (deprecated - use FeedSource)
export type { DataSource } from "./data-source"
export type { DataSource } from "./data-source";
// Context Provider (deprecated - use FeedSource)
export type { ContextProvider } from "./context-provider"
export type { ContextProvider } from "./context-provider";
// Context Bridge (deprecated - use FeedEngine)
export type { ProviderError, RefreshResult } from "./context-bridge"
export { ContextBridge } from "./context-bridge"
export type { ProviderError, RefreshResult } from "./context-bridge";
export { ContextBridge } from "./context-bridge";
// Reconciler (deprecated - use FeedEngine)
export type {
ReconcileResult,
ReconcilerConfig,
SourceError as ReconcilerSourceError,
} from "./reconciler"
export { Reconciler } from "./reconciler"
ReconcileResult,
ReconcilerConfig,
SourceError as ReconcilerSourceError,
} from "./reconciler";
export { Reconciler } from "./reconciler";
// Feed Controller (deprecated - use FeedEngine)
export type {
FeedControllerConfig,
FeedSubscriber as FeedControllerSubscriber,
} from "./feed-controller"
export { FeedController } from "./feed-controller"
FeedControllerConfig,
FeedSubscriber as FeedControllerSubscriber,
} from "./feed-controller";
export { FeedController } from "./feed-controller";