mirror of
https://github.com/kennethnym/aris.git
synced 2026-03-20 17:11:17 +00:00
Add listActions() and executeAction() to FeedSource for write operations back to external services. Actions use arktype schemas for input validation via StandardSchemaV1. - ActionDefinition type with optional input schema - FeedEngine routes actions with existence and ID validation - Source IDs use reverse-domain format (aris.location, aris.tfl) - LocationSource: update-location action with schema validation - TflSource: set-lines-of-interest action with lineId validation - No-op implementations for sources without actions Co-authored-by: Ona <no-reply@ona.com>
47 lines
1.4 KiB
TypeScript
47 lines
1.4 KiB
TypeScript
// Context
|
|
export type { Context, ContextKey } from "./context"
|
|
export { contextKey, contextValue } from "./context"
|
|
|
|
// Actions
|
|
export type { ActionDefinition } from "./action"
|
|
export { UnknownActionError } from "./action"
|
|
|
|
// Feed
|
|
export type { FeedItem } from "./feed"
|
|
|
|
// Feed Source
|
|
export type { FeedSource } from "./feed-source"
|
|
|
|
// Feed Engine
|
|
export type { 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"
|
|
|
|
// Context Provider (deprecated - use FeedSource)
|
|
export type { ContextProvider } from "./context-provider"
|
|
|
|
// Context Bridge (deprecated - use FeedEngine)
|
|
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"
|
|
|
|
// Feed Controller (deprecated - use FeedEngine)
|
|
export type {
|
|
FeedControllerConfig,
|
|
FeedSubscriber as FeedControllerSubscriber,
|
|
} from "./feed-controller"
|
|
export { FeedController } from "./feed-controller"
|