@relayfx/sdk 0.7.12 → 0.7.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{index-chbsjf5d.js → index-0fta2cfp.js} +5394 -3616
- package/dist/{index-agr4t5nk.js → index-fn3rdmbr.js} +1 -1
- package/dist/index.js +13 -1
- package/dist/migrations/20260725010000_event_history_binding/migration.sql +8 -0
- package/dist/migrations/mysql/0019_event_history_binding.sql +9 -0
- package/dist/migrations/pg/20260725010000_event_history_binding/migration.sql +8 -0
- package/dist/migrations/sqlite/0019_event_history_binding.sql +8 -0
- package/dist/mysql.js +83 -3
- package/dist/postgres.js +15 -4
- package/dist/sqlite.js +69 -14
- package/dist/types/relay/event-history.d.ts +8 -0
- package/dist/types/relay/index.d.ts +2 -0
- package/dist/types/relay/mysql-migrations.d.ts +1 -1
- package/dist/types/relay/runtime-database-owner.d.ts +7 -1
- package/dist/types/relay/runtime.d.ts +5 -1
- package/dist/types/relay/sqlite-migrations.d.ts +6 -1
- package/dist/types/relay/sqlite-runtime.d.ts +1 -0
- package/dist/types/relay/tool-runtime.d.ts +14 -1
- package/dist/types/runtime/runner/runner-runtime-service.d.ts +3 -2
- package/dist/types/runtime/tool/tool-runtime-service.d.ts +20 -4
- package/dist/types/store-sql/execution/event-history-file-system.d.ts +10 -2
- package/dist/types/store-sql/execution/runtime-event-history.d.ts +12 -0
- package/dist/types/store-sql/portable.d.ts +1 -0
- package/dist/types/store-sql/schema/execution-schema.d.ts +52 -0
- package/dist/types/store-sql/schema/relay-schema.d.ts +1 -1
- package/package.json +3 -3
|
@@ -101,7 +101,7 @@ export declare const layerWithClient: <CheckError, CheckIn, ClusterOut, ClusterE
|
|
|
101
101
|
readonly toolTransitionCoordinatorLayer: Layer.Layer<ToolTransitionCoordinatorService, CoordinatorError, CoordinatorIn>;
|
|
102
102
|
}) => Layer.Layer<ClusterOut | LanguageModelOut | RepositoryOut | import("../address/address-book-service").Service | import("../execution/event-log-service").Service | import("../wait/wait-service").Service | ToolRuntimeService | import("../agent/agent-registry-service").Service | import("../address/address-resolution-service").Service | import("../child/child-run-service").Service | import("../model/model-call-policy").Service | import("../presence/presence-contract").Service | SchemaRegistryService | BlobStoreService | import("../state/execution-state-service").Service | ParentNotifierService | import("../skill/skill-registry-service").Service | import("../execution/execution-service").Service | import("../execution/active-execution-registry").Service | ToolTransitionCoordinatorService | import("../workspace/workspace-planner-service").Service | import("../inbox/inbox-service").Service | import("../topic/topic-service").Service | import("../envelope/envelope-service").Service | ArtifactStoreService | PromptAssemblerService | import("../agent/agent-loop-service").Service | import("../resident/resident-registry-service").Service | import("../resident/resident-instance-service").Service | import("../execution/execution-watch-service").Service | import("../execution/session-stream-service").Service | Service, CheckError | ClusterError | CoordinatorError | LanguageModelError | RepositoryError | ToolRuntimeError | Config.ConfigError, LanguageModelIn | Exclude<LanguageModelIn, ArtifactStoreService> | Exclude<Exclude<RepositoryIn, BlobStoreService>, ArtifactStoreService> | Exclude<Exclude<Exclude<ClusterIn, RepositoryOut>, BlobStoreService>, ArtifactStoreService> | Exclude<Exclude<Exclude<Exclude<Exclude<LanguageModelIn, never>, ClusterOut>, RepositoryOut>, BlobStoreService>, ArtifactStoreService> | Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<CheckIn, LanguageModelOut>, never>, ClusterOut>, RepositoryOut>, BlobStoreService>, ArtifactStoreService> | Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<AddressBookRepository.Service, LanguageModelOut>, never>, ClusterOut>, RepositoryOut>, BlobStoreService>, ArtifactStoreService> | Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<AgentChatRepository.Service, LanguageModelOut>, never>, ClusterOut>, RepositoryOut>, BlobStoreService>, ArtifactStoreService> | Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<AgentDefinitionRepository.Service, LanguageModelOut>, never>, ClusterOut>, RepositoryOut>, BlobStoreService>, ArtifactStoreService> | Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<ChildExecutionRepository.Service, LanguageModelOut>, never>, ClusterOut>, RepositoryOut>, BlobStoreService>, ArtifactStoreService> | Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<EnvelopeRepository.Service, LanguageModelOut>, never>, ClusterOut>, RepositoryOut>, BlobStoreService>, ArtifactStoreService> | Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<ResidentRepository.Service, LanguageModelOut>, never>, ClusterOut>, RepositoryOut>, BlobStoreService>, ArtifactStoreService> | Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<ExecutionEventRepository.Service, LanguageModelOut>, never>, ClusterOut>, RepositoryOut>, BlobStoreService>, ArtifactStoreService> | Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<ExecutionRepository.Service, LanguageModelOut>, never>, ClusterOut>, RepositoryOut>, BlobStoreService>, ArtifactStoreService> | Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<ExecutionStateRepository.Service, LanguageModelOut>, never>, ClusterOut>, RepositoryOut>, BlobStoreService>, ArtifactStoreService> | Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<InboxRepository.Service, LanguageModelOut>, never>, ClusterOut>, RepositoryOut>, BlobStoreService>, ArtifactStoreService> | Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<TopicRepository.Service, LanguageModelOut>, never>, ClusterOut>, RepositoryOut>, BlobStoreService>, ArtifactStoreService> | Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<PresenceRepository.Service, LanguageModelOut>, never>, ClusterOut>, RepositoryOut>, BlobStoreService>, ArtifactStoreService> | Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<ScheduleRepository.Service, LanguageModelOut>, never>, ClusterOut>, RepositoryOut>, BlobStoreService>, ArtifactStoreService> | Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<SkillDefinitionRepository.Service, LanguageModelOut>, never>, ClusterOut>, RepositoryOut>, BlobStoreService>, ArtifactStoreService> | Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<WorkspaceLeaseRepository.Service, LanguageModelOut>, never>, ClusterOut>, RepositoryOut>, BlobStoreService>, ArtifactStoreService> | Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<LanguageModelServiceService, LanguageModelOut>, never>, ClusterOut>, RepositoryOut>, BlobStoreService>, ArtifactStoreService> | Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<BlobStoreService, LanguageModelOut>, never>, ClusterOut>, RepositoryOut>, BlobStoreService>, ArtifactStoreService> | Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Sharding.Sharding, LanguageModelOut>, never>, ClusterOut>, RepositoryOut>, BlobStoreService>, ArtifactStoreService> | Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<ShardingConfig.ShardingConfig, LanguageModelOut>, never>, ClusterOut>, RepositoryOut>, BlobStoreService>, ArtifactStoreService> | Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<CoordinatorIn, import("../address/address-book-service").Service | import("../execution/event-log-service").Service | import("../agent/agent-registry-service").Service | import("../resident/resident-registry-service").Service | import("../resident/resident-instance-service").Service>, import("../state/execution-state-service").Service>, import("../wait/wait-service").Service>, import("../execution/event-log-service").Service>, LanguageModelOut>, never>, ClusterOut>, RepositoryOut>, BlobStoreService>, ArtifactStoreService> | Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<ToolRuntimeIn, import("../address/address-book-service").Service | import("../execution/event-log-service").Service | import("../agent/agent-registry-service").Service | import("../resident/resident-registry-service").Service | import("../resident/resident-instance-service").Service>, import("../state/execution-state-service").Service>, import("../wait/wait-service").Service>, import("../execution/event-log-service").Service>, LanguageModelOut>, never>, ClusterOut>, RepositoryOut>, BlobStoreService>, ArtifactStoreService> | Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<LanguageModelIn, import("../inbox/inbox-service").Service>, import("../address/address-book-service").Service | import("../inbox/inbox-service").Service | import("../envelope/envelope-service").Service>, import("../inbox/inbox-service").Service | import("../topic/topic-service").Service>, import("../address/address-book-service").Service | import("../execution/event-log-service").Service | import("../agent/agent-registry-service").Service | import("../resident/resident-registry-service").Service | import("../resident/resident-instance-service").Service>, import("../state/execution-state-service").Service>, import("../wait/wait-service").Service>, import("../execution/event-log-service").Service>, LanguageModelOut>, never>, ClusterOut>, RepositoryOut>, BlobStoreService>, ArtifactStoreService> | Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<LanguageModelIn, SchemaRegistryService>, import("../inbox/inbox-service").Service>, import("../address/address-book-service").Service | import("../inbox/inbox-service").Service | import("../envelope/envelope-service").Service>, import("../inbox/inbox-service").Service | import("../topic/topic-service").Service>, import("../address/address-book-service").Service | import("../execution/event-log-service").Service | import("../agent/agent-registry-service").Service | import("../resident/resident-registry-service").Service | import("../resident/resident-instance-service").Service>, import("../state/execution-state-service").Service>, import("../wait/wait-service").Service>, import("../execution/event-log-service").Service>, LanguageModelOut>, never>, ClusterOut>, RepositoryOut>, BlobStoreService>, ArtifactStoreService> | Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<ToolRuntimeIn, import("../child/child-run-service").Service>, import("../model/model-call-policy").Service>, PromptAssemblerService>, SchemaRegistryService>, import("../inbox/inbox-service").Service>, import("../address/address-book-service").Service | import("../inbox/inbox-service").Service | import("../envelope/envelope-service").Service>, import("../inbox/inbox-service").Service | import("../topic/topic-service").Service>, import("../address/address-book-service").Service | import("../execution/event-log-service").Service | import("../agent/agent-registry-service").Service | import("../resident/resident-registry-service").Service | import("../resident/resident-instance-service").Service>, import("../state/execution-state-service").Service>, import("../wait/wait-service").Service>, import("../execution/event-log-service").Service>, LanguageModelOut>, never>, ClusterOut>, RepositoryOut>, BlobStoreService>, ArtifactStoreService>>;
|
|
103
103
|
/** @deprecated Use `Runtime.layerEmbedded` for an embedded process role. */
|
|
104
|
-
export declare const layerWithServices: <DatabaseError, DatabaseIn, LanguageModelError, LanguageModelIn, EmbeddingModelError, EmbeddingModelIn, ToolRuntimeError, ToolRuntimeIn>(options: {
|
|
104
|
+
export declare const layerWithServices: <DatabaseError, DatabaseIn, LanguageModelError, LanguageModelIn, EmbeddingModelError, EmbeddingModelIn, ToolRuntimeError, ToolRuntimeIn, ExecutionEventRepositoryError = never>(options: {
|
|
105
105
|
readonly onCheckpointCommitted?: AgentLoopLayerOptions["onCheckpointCommitted"];
|
|
106
106
|
readonly databaseLayer: Layer.Layer<SqlClient, DatabaseError, DatabaseIn>;
|
|
107
107
|
readonly languageModelLayer: Layer.Layer<LanguageModelServiceService, LanguageModelError, LanguageModelIn>;
|
|
@@ -111,7 +111,8 @@ export declare const layerWithServices: <DatabaseError, DatabaseIn, LanguageMode
|
|
|
111
111
|
readonly blobStoreLayer?: Layer.Layer<BlobStoreService, LanguageModelError, LanguageModelIn> | undefined;
|
|
112
112
|
readonly artifactStoreLayer?: Layer.Layer<ArtifactStoreService, LanguageModelError, LanguageModelIn> | undefined;
|
|
113
113
|
readonly schemaRegistryLayer?: Layer.Layer<SchemaRegistryService, LanguageModelError, LanguageModelIn> | undefined;
|
|
114
|
-
}) => Layer.Layer<MessageStorage.MessageStorage | Runners.Runners | AddressBookRepository.Service | AgentChatRepository.Service | AgentDefinitionRepository.Service | ChildExecutionRepository.Service | ChildFanOutRepository.Service | ClusterRegistryRepository.Service | CompactionRepository.Service | ContextEpochRepository.Service | EnvelopeRepository.Service | ResidentRepository.Service | NotificationBus.Service | ExecutionEventRepository.Service | ExecutionRepository.Service | ExecutionStateRepository.Service | InboxRepository.Service | TopicRepository.Service | MemoryRepository.Service | PermissionRuleRepository.Service | PresenceRepository.Service | ScheduleRepository.Service | SessionRepository.Service | SkillDefinitionRepository.Service | SteeringRepository.Service | ToolCallRepository.Service | WorkspaceLeaseRepository.Service | WorkflowDefinitionRepository.Service | import("../address/address-book-service").Service | import("../execution/event-log-service").Service | import("../wait/wait-service").Service | ToolRuntimeService | import("../agent/agent-registry-service").Service | import("../address/address-resolution-service").Service | import("../child/child-run-service").Service | LanguageModelServiceService | import("../model/model-call-policy").Service | import("../presence/presence-contract").Service | SchemaRegistryService | BlobStoreService | import("../state/execution-state-service").Service | ParentNotifierService | import("../skill/skill-registry-service").Service | import("../execution/execution-service").Service | import("../execution/active-execution-registry").Service | ToolTransitionCoordinatorService | import("../workspace/workspace-planner-service").Service | import("../inbox/inbox-service").Service | import("../topic/topic-service").Service | import("../envelope/envelope-service").Service | ArtifactStoreService | PromptAssemblerService | import("../agent/agent-loop-service").Service | import("../resident/resident-registry-service").Service | import("../resident/resident-instance-service").Service | import("../execution/execution-watch-service").Service | import("../execution/session-stream-service").Service | SchedulerServiceService | Service | Sharding.Sharding | ShardingConfig.ShardingConfig | WorkflowEngine.WorkflowEngine, DatabaseError | LanguageModelError | ToolRuntimeError | ClusterConfigMismatch | Config.ConfigError, DatabaseIn | Exclude<LanguageModelIn, SqlClient> | Exclude<Exclude<LanguageModelIn, ArtifactStoreService>, SqlClient> | Exclude<Exclude<Exclude<Exclude<LanguageModelIn, AddressBookRepository.Service | AgentChatRepository.Service | AgentDefinitionRepository.Service | ChildExecutionRepository.Service | ChildFanOutRepository.Service | ClusterRegistryRepository.Service | CompactionRepository.Service | ContextEpochRepository.Service | EnvelopeRepository.Service | ResidentRepository.Service | NotificationBus.Service | ExecutionEventRepository.Service | ExecutionRepository.Service | ExecutionStateRepository.Service | InboxRepository.Service | TopicRepository.Service | MemoryRepository.Service | PermissionRuleRepository.Service | PresenceRepository.Service | ScheduleRepository.Service | SessionRepository.Service | SkillDefinitionRepository.Service | SteeringRepository.Service | ToolCallRepository.Service | WorkspaceLeaseRepository.Service | WorkflowDefinitionRepository.Service>, BlobStoreService>, ArtifactStoreService>, SqlClient> | Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<LanguageModelIn, never>, WorkflowEngine.WorkflowEngine>, MessageStorage.MessageStorage | Runners.Runners | Sharding.Sharding | ShardingConfig.ShardingConfig>, AddressBookRepository.Service | AgentChatRepository.Service | AgentDefinitionRepository.Service | ChildExecutionRepository.Service | ChildFanOutRepository.Service | ClusterRegistryRepository.Service | CompactionRepository.Service | ContextEpochRepository.Service | EnvelopeRepository.Service | ResidentRepository.Service | NotificationBus.Service | ExecutionEventRepository.Service | ExecutionRepository.Service | ExecutionStateRepository.Service | InboxRepository.Service | TopicRepository.Service | MemoryRepository.Service | PermissionRuleRepository.Service | PresenceRepository.Service | ScheduleRepository.Service | SessionRepository.Service | SkillDefinitionRepository.Service | SteeringRepository.Service | ToolCallRepository.Service | WorkspaceLeaseRepository.Service | WorkflowDefinitionRepository.Service>, BlobStoreService>, ArtifactStoreService>, SqlClient> | Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<ToolRuntimeIn, import("../address/address-book-service").Service | import("../execution/event-log-service").Service | import("../agent/agent-registry-service").Service | import("../resident/resident-registry-service").Service | import("../resident/resident-instance-service").Service>, import("../state/execution-state-service").Service>, import("../wait/wait-service").Service>, import("../execution/event-log-service").Service>, LanguageModelServiceService>, never>, WorkflowEngine.WorkflowEngine>, MessageStorage.MessageStorage | Runners.Runners | Sharding.Sharding | ShardingConfig.ShardingConfig>, AddressBookRepository.Service | AgentChatRepository.Service | AgentDefinitionRepository.Service | ChildExecutionRepository.Service | ChildFanOutRepository.Service | ClusterRegistryRepository.Service | CompactionRepository.Service | ContextEpochRepository.Service | EnvelopeRepository.Service | ResidentRepository.Service | NotificationBus.Service | ExecutionEventRepository.Service | ExecutionRepository.Service | ExecutionStateRepository.Service | InboxRepository.Service | TopicRepository.Service | MemoryRepository.Service | PermissionRuleRepository.Service | PresenceRepository.Service | ScheduleRepository.Service | SessionRepository.Service | SkillDefinitionRepository.Service | SteeringRepository.Service | ToolCallRepository.Service | WorkspaceLeaseRepository.Service | WorkflowDefinitionRepository.Service>, BlobStoreService>, ArtifactStoreService>, SqlClient> | Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<LanguageModelIn, import("../inbox/inbox-service").Service>, import("../address/address-book-service").Service | import("../inbox/inbox-service").Service | import("../envelope/envelope-service").Service>, import("../inbox/inbox-service").Service | import("../topic/topic-service").Service>, import("../address/address-book-service").Service | import("../execution/event-log-service").Service | import("../agent/agent-registry-service").Service | import("../resident/resident-registry-service").Service | import("../resident/resident-instance-service").Service>, import("../state/execution-state-service").Service>, import("../wait/wait-service").Service>, import("../execution/event-log-service").Service>, LanguageModelServiceService>, never>, WorkflowEngine.WorkflowEngine>, MessageStorage.MessageStorage | Runners.Runners | Sharding.Sharding | ShardingConfig.ShardingConfig>, AddressBookRepository.Service | AgentChatRepository.Service | AgentDefinitionRepository.Service | ChildExecutionRepository.Service | ChildFanOutRepository.Service | ClusterRegistryRepository.Service | CompactionRepository.Service | ContextEpochRepository.Service | EnvelopeRepository.Service | ResidentRepository.Service | NotificationBus.Service | ExecutionEventRepository.Service | ExecutionRepository.Service | ExecutionStateRepository.Service | InboxRepository.Service | TopicRepository.Service | MemoryRepository.Service | PermissionRuleRepository.Service | PresenceRepository.Service | ScheduleRepository.Service | SessionRepository.Service | SkillDefinitionRepository.Service | SteeringRepository.Service | ToolCallRepository.Service | WorkspaceLeaseRepository.Service | WorkflowDefinitionRepository.Service>, BlobStoreService>, ArtifactStoreService>, SqlClient> | Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<LanguageModelIn, SchemaRegistryService>, import("../inbox/inbox-service").Service>, import("../address/address-book-service").Service | import("../inbox/inbox-service").Service | import("../envelope/envelope-service").Service>, import("../inbox/inbox-service").Service | import("../topic/topic-service").Service>, import("../address/address-book-service").Service | import("../execution/event-log-service").Service | import("../agent/agent-registry-service").Service | import("../resident/resident-registry-service").Service | import("../resident/resident-instance-service").Service>, import("../state/execution-state-service").Service>, import("../wait/wait-service").Service>, import("../execution/event-log-service").Service>, LanguageModelServiceService>, never>, WorkflowEngine.WorkflowEngine>, MessageStorage.MessageStorage | Runners.Runners | Sharding.Sharding | ShardingConfig.ShardingConfig>, AddressBookRepository.Service | AgentChatRepository.Service | AgentDefinitionRepository.Service | ChildExecutionRepository.Service | ChildFanOutRepository.Service | ClusterRegistryRepository.Service | CompactionRepository.Service | ContextEpochRepository.Service | EnvelopeRepository.Service | ResidentRepository.Service | NotificationBus.Service | ExecutionEventRepository.Service | ExecutionRepository.Service | ExecutionStateRepository.Service | InboxRepository.Service | TopicRepository.Service | MemoryRepository.Service | PermissionRuleRepository.Service | PresenceRepository.Service | ScheduleRepository.Service | SessionRepository.Service | SkillDefinitionRepository.Service | SteeringRepository.Service | ToolCallRepository.Service | WorkspaceLeaseRepository.Service | WorkflowDefinitionRepository.Service>, BlobStoreService>, ArtifactStoreService>, SqlClient> | Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<ToolRuntimeIn, import("../child/child-run-service").Service>, import("../model/model-call-policy").Service>, PromptAssemblerService>, SchemaRegistryService>, import("../inbox/inbox-service").Service>, import("../address/address-book-service").Service | import("../inbox/inbox-service").Service | import("../envelope/envelope-service").Service>, import("../inbox/inbox-service").Service | import("../topic/topic-service").Service>, import("../address/address-book-service").Service | import("../execution/event-log-service").Service | import("../agent/agent-registry-service").Service | import("../resident/resident-registry-service").Service | import("../resident/resident-instance-service").Service>, import("../state/execution-state-service").Service>, import("../wait/wait-service").Service>, import("../execution/event-log-service").Service>, LanguageModelServiceService>, never>, WorkflowEngine.WorkflowEngine>, MessageStorage.MessageStorage | Runners.Runners | Sharding.Sharding | ShardingConfig.ShardingConfig>, AddressBookRepository.Service | AgentChatRepository.Service | AgentDefinitionRepository.Service | ChildExecutionRepository.Service | ChildFanOutRepository.Service | ClusterRegistryRepository.Service | CompactionRepository.Service | ContextEpochRepository.Service | EnvelopeRepository.Service | ResidentRepository.Service | NotificationBus.Service | ExecutionEventRepository.Service | ExecutionRepository.Service | ExecutionStateRepository.Service | InboxRepository.Service | TopicRepository.Service | MemoryRepository.Service | PermissionRuleRepository.Service | PresenceRepository.Service | ScheduleRepository.Service | SessionRepository.Service | SkillDefinitionRepository.Service | SteeringRepository.Service | ToolCallRepository.Service | WorkspaceLeaseRepository.Service | WorkflowDefinitionRepository.Service>, BlobStoreService>, ArtifactStoreService>, SqlClient>>;
|
|
114
|
+
readonly executionEventRepositoryLayer?: Layer.Layer<ExecutionEventRepository.Service, ExecutionEventRepositoryError, NotificationBus.Service | SqlClient> | undefined;
|
|
115
|
+
}) => Layer.Layer<MessageStorage.MessageStorage | Runners.Runners | AddressBookRepository.Service | AgentChatRepository.Service | AgentDefinitionRepository.Service | ChildExecutionRepository.Service | ChildFanOutRepository.Service | ClusterRegistryRepository.Service | CompactionRepository.Service | ContextEpochRepository.Service | EnvelopeRepository.Service | ResidentRepository.Service | NotificationBus.Service | ExecutionEventRepository.Service | ExecutionRepository.Service | ExecutionStateRepository.Service | InboxRepository.Service | TopicRepository.Service | MemoryRepository.Service | PermissionRuleRepository.Service | PresenceRepository.Service | ScheduleRepository.Service | SessionRepository.Service | SkillDefinitionRepository.Service | SteeringRepository.Service | ToolCallRepository.Service | WorkspaceLeaseRepository.Service | WorkflowDefinitionRepository.Service | import("../address/address-book-service").Service | import("../execution/event-log-service").Service | import("../wait/wait-service").Service | ToolRuntimeService | import("../agent/agent-registry-service").Service | import("../address/address-resolution-service").Service | import("../child/child-run-service").Service | LanguageModelServiceService | import("../model/model-call-policy").Service | import("../presence/presence-contract").Service | SchemaRegistryService | BlobStoreService | import("../state/execution-state-service").Service | ParentNotifierService | import("../skill/skill-registry-service").Service | import("../execution/execution-service").Service | import("../execution/active-execution-registry").Service | ToolTransitionCoordinatorService | import("../workspace/workspace-planner-service").Service | import("../inbox/inbox-service").Service | import("../topic/topic-service").Service | import("../envelope/envelope-service").Service | ArtifactStoreService | PromptAssemblerService | import("../agent/agent-loop-service").Service | import("../resident/resident-registry-service").Service | import("../resident/resident-instance-service").Service | import("../execution/execution-watch-service").Service | import("../execution/session-stream-service").Service | SchedulerServiceService | Service | Sharding.Sharding | ShardingConfig.ShardingConfig | WorkflowEngine.WorkflowEngine, DatabaseError | ExecutionEventRepositoryError | LanguageModelError | ToolRuntimeError | ClusterConfigMismatch | Config.ConfigError, DatabaseIn | Exclude<LanguageModelIn, SqlClient> | Exclude<Exclude<LanguageModelIn, ArtifactStoreService>, SqlClient> | Exclude<Exclude<Exclude<Exclude<LanguageModelIn, AddressBookRepository.Service | AgentChatRepository.Service | AgentDefinitionRepository.Service | ChildExecutionRepository.Service | ChildFanOutRepository.Service | ClusterRegistryRepository.Service | CompactionRepository.Service | ContextEpochRepository.Service | EnvelopeRepository.Service | ResidentRepository.Service | NotificationBus.Service | ExecutionEventRepository.Service | ExecutionRepository.Service | ExecutionStateRepository.Service | InboxRepository.Service | TopicRepository.Service | MemoryRepository.Service | PermissionRuleRepository.Service | PresenceRepository.Service | ScheduleRepository.Service | SessionRepository.Service | SkillDefinitionRepository.Service | SteeringRepository.Service | ToolCallRepository.Service | WorkspaceLeaseRepository.Service | WorkflowDefinitionRepository.Service>, BlobStoreService>, ArtifactStoreService>, SqlClient> | Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<LanguageModelIn, never>, WorkflowEngine.WorkflowEngine>, MessageStorage.MessageStorage | Runners.Runners | Sharding.Sharding | ShardingConfig.ShardingConfig>, AddressBookRepository.Service | AgentChatRepository.Service | AgentDefinitionRepository.Service | ChildExecutionRepository.Service | ChildFanOutRepository.Service | ClusterRegistryRepository.Service | CompactionRepository.Service | ContextEpochRepository.Service | EnvelopeRepository.Service | ResidentRepository.Service | NotificationBus.Service | ExecutionEventRepository.Service | ExecutionRepository.Service | ExecutionStateRepository.Service | InboxRepository.Service | TopicRepository.Service | MemoryRepository.Service | PermissionRuleRepository.Service | PresenceRepository.Service | ScheduleRepository.Service | SessionRepository.Service | SkillDefinitionRepository.Service | SteeringRepository.Service | ToolCallRepository.Service | WorkspaceLeaseRepository.Service | WorkflowDefinitionRepository.Service>, BlobStoreService>, ArtifactStoreService>, SqlClient> | Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<ToolRuntimeIn, import("../address/address-book-service").Service | import("../execution/event-log-service").Service | import("../agent/agent-registry-service").Service | import("../resident/resident-registry-service").Service | import("../resident/resident-instance-service").Service>, import("../state/execution-state-service").Service>, import("../wait/wait-service").Service>, import("../execution/event-log-service").Service>, LanguageModelServiceService>, never>, WorkflowEngine.WorkflowEngine>, MessageStorage.MessageStorage | Runners.Runners | Sharding.Sharding | ShardingConfig.ShardingConfig>, AddressBookRepository.Service | AgentChatRepository.Service | AgentDefinitionRepository.Service | ChildExecutionRepository.Service | ChildFanOutRepository.Service | ClusterRegistryRepository.Service | CompactionRepository.Service | ContextEpochRepository.Service | EnvelopeRepository.Service | ResidentRepository.Service | NotificationBus.Service | ExecutionEventRepository.Service | ExecutionRepository.Service | ExecutionStateRepository.Service | InboxRepository.Service | TopicRepository.Service | MemoryRepository.Service | PermissionRuleRepository.Service | PresenceRepository.Service | ScheduleRepository.Service | SessionRepository.Service | SkillDefinitionRepository.Service | SteeringRepository.Service | ToolCallRepository.Service | WorkspaceLeaseRepository.Service | WorkflowDefinitionRepository.Service>, BlobStoreService>, ArtifactStoreService>, SqlClient> | Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<LanguageModelIn, import("../inbox/inbox-service").Service>, import("../address/address-book-service").Service | import("../inbox/inbox-service").Service | import("../envelope/envelope-service").Service>, import("../inbox/inbox-service").Service | import("../topic/topic-service").Service>, import("../address/address-book-service").Service | import("../execution/event-log-service").Service | import("../agent/agent-registry-service").Service | import("../resident/resident-registry-service").Service | import("../resident/resident-instance-service").Service>, import("../state/execution-state-service").Service>, import("../wait/wait-service").Service>, import("../execution/event-log-service").Service>, LanguageModelServiceService>, never>, WorkflowEngine.WorkflowEngine>, MessageStorage.MessageStorage | Runners.Runners | Sharding.Sharding | ShardingConfig.ShardingConfig>, AddressBookRepository.Service | AgentChatRepository.Service | AgentDefinitionRepository.Service | ChildExecutionRepository.Service | ChildFanOutRepository.Service | ClusterRegistryRepository.Service | CompactionRepository.Service | ContextEpochRepository.Service | EnvelopeRepository.Service | ResidentRepository.Service | NotificationBus.Service | ExecutionEventRepository.Service | ExecutionRepository.Service | ExecutionStateRepository.Service | InboxRepository.Service | TopicRepository.Service | MemoryRepository.Service | PermissionRuleRepository.Service | PresenceRepository.Service | ScheduleRepository.Service | SessionRepository.Service | SkillDefinitionRepository.Service | SteeringRepository.Service | ToolCallRepository.Service | WorkspaceLeaseRepository.Service | WorkflowDefinitionRepository.Service>, BlobStoreService>, ArtifactStoreService>, SqlClient> | Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<LanguageModelIn, SchemaRegistryService>, import("../inbox/inbox-service").Service>, import("../address/address-book-service").Service | import("../inbox/inbox-service").Service | import("../envelope/envelope-service").Service>, import("../inbox/inbox-service").Service | import("../topic/topic-service").Service>, import("../address/address-book-service").Service | import("../execution/event-log-service").Service | import("../agent/agent-registry-service").Service | import("../resident/resident-registry-service").Service | import("../resident/resident-instance-service").Service>, import("../state/execution-state-service").Service>, import("../wait/wait-service").Service>, import("../execution/event-log-service").Service>, LanguageModelServiceService>, never>, WorkflowEngine.WorkflowEngine>, MessageStorage.MessageStorage | Runners.Runners | Sharding.Sharding | ShardingConfig.ShardingConfig>, AddressBookRepository.Service | AgentChatRepository.Service | AgentDefinitionRepository.Service | ChildExecutionRepository.Service | ChildFanOutRepository.Service | ClusterRegistryRepository.Service | CompactionRepository.Service | ContextEpochRepository.Service | EnvelopeRepository.Service | ResidentRepository.Service | NotificationBus.Service | ExecutionEventRepository.Service | ExecutionRepository.Service | ExecutionStateRepository.Service | InboxRepository.Service | TopicRepository.Service | MemoryRepository.Service | PermissionRuleRepository.Service | PresenceRepository.Service | ScheduleRepository.Service | SessionRepository.Service | SkillDefinitionRepository.Service | SteeringRepository.Service | ToolCallRepository.Service | WorkspaceLeaseRepository.Service | WorkflowDefinitionRepository.Service>, BlobStoreService>, ArtifactStoreService>, SqlClient> | Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<ToolRuntimeIn, import("../child/child-run-service").Service>, import("../model/model-call-policy").Service>, PromptAssemblerService>, SchemaRegistryService>, import("../inbox/inbox-service").Service>, import("../address/address-book-service").Service | import("../inbox/inbox-service").Service | import("../envelope/envelope-service").Service>, import("../inbox/inbox-service").Service | import("../topic/topic-service").Service>, import("../address/address-book-service").Service | import("../execution/event-log-service").Service | import("../agent/agent-registry-service").Service | import("../resident/resident-registry-service").Service | import("../resident/resident-instance-service").Service>, import("../state/execution-state-service").Service>, import("../wait/wait-service").Service>, import("../execution/event-log-service").Service>, LanguageModelServiceService>, never>, WorkflowEngine.WorkflowEngine>, MessageStorage.MessageStorage | Runners.Runners | Sharding.Sharding | ShardingConfig.ShardingConfig>, AddressBookRepository.Service | AgentChatRepository.Service | AgentDefinitionRepository.Service | ChildExecutionRepository.Service | ChildFanOutRepository.Service | ClusterRegistryRepository.Service | CompactionRepository.Service | ContextEpochRepository.Service | EnvelopeRepository.Service | ResidentRepository.Service | NotificationBus.Service | ExecutionEventRepository.Service | ExecutionRepository.Service | ExecutionStateRepository.Service | InboxRepository.Service | TopicRepository.Service | MemoryRepository.Service | PermissionRuleRepository.Service | PresenceRepository.Service | ScheduleRepository.Service | SessionRepository.Service | SkillDefinitionRepository.Service | SteeringRepository.Service | ToolCallRepository.Service | WorkspaceLeaseRepository.Service | WorkflowDefinitionRepository.Service>, BlobStoreService>, ArtifactStoreService>, SqlClient>>;
|
|
115
116
|
/** @deprecated Use `Runtime.layerRunner` for a runner process role. */
|
|
116
117
|
export declare const layerWithServicesMultiNode: <DatabaseError, DatabaseIn, LanguageModelError, LanguageModelIn, EmbeddingModelError, EmbeddingModelIn, ToolRuntimeError, ToolRuntimeIn>(options: {
|
|
117
118
|
readonly onCheckpointCommitted?: AgentLoopLayerOptions["onCheckpointCommitted"];
|
|
@@ -1,16 +1,26 @@
|
|
|
1
1
|
import { Tool } from "../../schema/index";
|
|
2
2
|
import { ToolCallRepository } from "../../store-sql/portable";
|
|
3
3
|
import { Tool as AiTool, Toolkit } from "effect/unstable/ai";
|
|
4
|
-
import { Effect, Layer, Schema } from "effect";
|
|
4
|
+
import { Context, Effect, Layer, Schema } from "effect";
|
|
5
5
|
import { Service as EventLogService } from "../execution/event-log-service";
|
|
6
6
|
import { Service as WaitServiceService } from "../wait/wait-service";
|
|
7
7
|
export * from "./tool-runtime-contract";
|
|
8
|
-
import { Service } from "./tool-runtime-contract";
|
|
8
|
+
import { Service, ToolExecutionFailed } from "./tool-runtime-contract";
|
|
9
9
|
export { Identifiers } from "./tool-runtime-identifiers";
|
|
10
|
-
import type { DynamicToolOptions, PlacedToolOptions, RegisteredTool, RunInput, ToolkitRegistrationOptions, ToolOptions } from "./tool-runtime-contract";
|
|
10
|
+
import type { DynamicToolOptions, PlacedToolOptions, RegisteredTool, RunInput, ToolExecutionContext, ToolkitRegistrationOptions, ToolOptions } from "./tool-runtime-contract";
|
|
11
11
|
export declare const toolFromRegistered: (tool: RegisteredTool) => AiTool.Any;
|
|
12
|
+
export interface ToolkitInvocationContext<Services, Requirements> {
|
|
13
|
+
readonly make: (context: ToolExecutionContext) => Effect.Effect<Context.Context<Services>, ToolExecutionFailed, Requirements>;
|
|
14
|
+
}
|
|
15
|
+
export interface HandledToolkitRegistrationOptions<Services = never, Requirements = never> {
|
|
16
|
+
readonly tools?: ToolkitRegistrationOptions;
|
|
17
|
+
readonly invocation?: ToolkitInvocationContext<Services, Requirements>;
|
|
18
|
+
}
|
|
19
|
+
interface RegisteredToolkitInvocationContext<Services> {
|
|
20
|
+
readonly make: (context: ToolExecutionContext) => Effect.Effect<Context.Context<Services>, ToolExecutionFailed>;
|
|
21
|
+
}
|
|
12
22
|
export declare const toolsFromToolkit: {
|
|
13
|
-
<Tools extends Record<string, AiTool.Any>>(toolkit: Toolkit.WithHandler<Tools>, options?: ToolkitRegistrationOptions): ReadonlyArray<RegisteredTool>;
|
|
23
|
+
<Tools extends Record<string, AiTool.Any>>(toolkit: Toolkit.WithHandler<Tools>, options?: ToolkitRegistrationOptions, invocation?: RegisteredToolkitInvocationContext<AiTool.HandlerServices<Tools[keyof Tools]>>): ReadonlyArray<RegisteredTool>;
|
|
14
24
|
(options?: ToolkitRegistrationOptions): <Tools extends Record<string, AiTool.Any>>(toolkit: Toolkit.WithHandler<Tools>) => ReadonlyArray<RegisteredTool>;
|
|
15
25
|
};
|
|
16
26
|
export declare const tool: {
|
|
@@ -38,6 +48,12 @@ export declare const layerFromToolkit: {
|
|
|
38
48
|
<Tools extends Record<string, AiTool.Any>>(toolkit: Toolkit.Toolkit<Tools>, options?: ToolkitRegistrationOptions): Layer.Layer<Service, never, ToolCallRepository.Service | EventLogService | WaitServiceService | AiTool.HandlersFor<Tools>>;
|
|
39
49
|
(options?: ToolkitRegistrationOptions): <Tools extends Record<string, AiTool.Any>>(toolkit: Toolkit.Toolkit<Tools>) => Layer.Layer<Service, never, ToolCallRepository.Service | EventLogService | WaitServiceService | AiTool.HandlersFor<Tools>>;
|
|
40
50
|
};
|
|
51
|
+
export declare const layerFromHandledToolkit: {
|
|
52
|
+
<Tools extends Record<string, AiTool.Any>, E, R>(toolkit: Effect.Effect<Toolkit.WithHandler<Tools>, E, R>): Layer.Layer<Service, E, ToolCallRepository.Service | EventLogService | WaitServiceService | R>;
|
|
53
|
+
<Tools extends Record<string, AiTool.Any>, E, R, InvocationRequirements>(toolkit: Effect.Effect<Toolkit.WithHandler<Tools>, E, R>, options: HandledToolkitRegistrationOptions<AiTool.HandlerServices<Tools[keyof Tools]>, InvocationRequirements>): Layer.Layer<Service, E, ToolCallRepository.Service | EventLogService | WaitServiceService | R | InvocationRequirements>;
|
|
54
|
+
(): <Tools extends Record<string, AiTool.Any>, E, R>(toolkit: Effect.Effect<Toolkit.WithHandler<Tools>, E, R>) => Layer.Layer<Service, E, ToolCallRepository.Service | EventLogService | WaitServiceService | R>;
|
|
55
|
+
<Services, InvocationRequirements>(options: HandledToolkitRegistrationOptions<Services, InvocationRequirements>): <Tools extends Record<string, AiTool.Any>, E, R>(toolkit: Effect.Effect<Toolkit.WithHandler<Tools>, E, R>) => Layer.Layer<Service, E, ToolCallRepository.Service | EventLogService | WaitServiceService | R | InvocationRequirements>;
|
|
56
|
+
};
|
|
41
57
|
export declare const memoryLayer: (tools?: ReadonlyArray<RegisteredTool>) => Layer.Layer<Service, never, never>;
|
|
42
58
|
export declare const memoryLayerFromToolkit: {
|
|
43
59
|
<Tools extends Record<string, AiTool.Any>>(toolkit: Toolkit.Toolkit<Tools>, options?: ToolkitRegistrationOptions): Layer.Layer<Service, never, Exclude<AiTool.HandlersFor<Tools>, ToolCallRepository.Service | EventLogService | WaitServiceService>>;
|
|
@@ -1,7 +1,15 @@
|
|
|
1
|
-
import { Crypto, Layer, Path } from "effect";
|
|
1
|
+
import { Crypto, Effect, Layer, Path, Semaphore } from "effect";
|
|
2
2
|
import { FileSystem } from "effect/FileSystem";
|
|
3
|
-
import { Service } from "./event-history-store";
|
|
3
|
+
import { HistoryReadError, HistoryWriteError, Service } from "./event-history-store";
|
|
4
4
|
export interface Options {
|
|
5
5
|
readonly rootDirectory: string;
|
|
6
|
+
readonly operationGate?: Semaphore.Semaphore;
|
|
6
7
|
}
|
|
8
|
+
export declare const readRootMarker: (options: Options) => Effect.Effect<string | undefined, HistoryReadError, FileSystem>;
|
|
9
|
+
export declare const readProvisionalRootMarker: (options: Options) => Effect.Effect<string | undefined, HistoryReadError, FileSystem>;
|
|
10
|
+
export declare const prepareRoot: (options: Options, allowCreate: boolean) => Effect.Effect<undefined, HistoryWriteError, Crypto.Crypto | FileSystem | Path.Path>;
|
|
11
|
+
export declare const initializeRoot: (options: Options, storeIdentity: string) => Effect.Effect<void, HistoryWriteError, Crypto.Crypto | FileSystem | Path.Path>;
|
|
12
|
+
export declare const prepareProvisionalRootMarker: (options: Options, storeIdentity: string) => Effect.Effect<void, HistoryWriteError, Crypto.Crypto | FileSystem | Path.Path>;
|
|
13
|
+
export declare const publishRootMarker: (options: Options, storeIdentity: string) => Effect.Effect<undefined, HistoryWriteError, FileSystem | Path.Path>;
|
|
14
|
+
export declare const checkRoot: (options: Options, storeIdentity: string) => Effect.Effect<void, HistoryReadError, FileSystem>;
|
|
7
15
|
export declare const layer: (options: Options) => Layer.Layer<Service, never, FileSystem | Crypto.Crypto | Path.Path>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Crypto, Effect, Layer } from "effect";
|
|
2
|
+
import { FileSystem } from "effect/FileSystem";
|
|
3
|
+
import { Path } from "effect/Path";
|
|
4
|
+
import { SqlClient } from "effect/unstable/sql/SqlClient";
|
|
5
|
+
import { type Options } from "./event-history-file-system";
|
|
6
|
+
import { HistoryReadError, HistoryWriteError } from "./event-history-store";
|
|
7
|
+
import { Service } from "./execution-event-repository";
|
|
8
|
+
export declare const initializeFileSystem: (options: Options) => Effect.Effect<undefined, HistoryWriteError, Crypto.Crypto | FileSystem | Path | SqlClient>;
|
|
9
|
+
export declare const fileSystemHealth: (options: Options) => Effect.Effect<undefined, HistoryReadError, FileSystem | SqlClient>;
|
|
10
|
+
/** Internal runtime composition. Archive repositories and codecs are intentionally not exported. */
|
|
11
|
+
export declare const fileSystemRepositoryLayer: (options: Options) => Layer.Layer<Service, HistoryWriteError, Crypto.Crypto | FileSystem | Path | import("../database/notification-bus").Service | SqlClient>;
|
|
12
|
+
export type FileSystemRequirements = FileSystem | Crypto.Crypto | Path | SqlClient;
|
|
@@ -9,6 +9,7 @@ export * as ContextEpochRepository from "./session/context-epoch-repository";
|
|
|
9
9
|
export * as EnvelopeRepository from "./envelope/envelope-repository";
|
|
10
10
|
export * as ResidentRepository from "./resident/resident-repository";
|
|
11
11
|
export * as ExecutionEventRepository from "./execution/execution-event-repository";
|
|
12
|
+
export * as RuntimeEventHistory from "./execution/runtime-event-history";
|
|
12
13
|
export * as ExecutionRepository from "./execution/execution-repository";
|
|
13
14
|
export * as ExecutionStateRepository from "./state/execution-state-repository";
|
|
14
15
|
export * as IdempotencyRepository from "./idempotency/idempotency-repository";
|
|
@@ -1083,6 +1083,58 @@ export declare const relayExecutionEventHeads: import("drizzle-orm/pg-core").PgT
|
|
|
1083
1083
|
};
|
|
1084
1084
|
dialect: 'pg';
|
|
1085
1085
|
}>;
|
|
1086
|
+
export declare const relayEventHistoryBindings: import("drizzle-orm/pg-core").PgTableWithColumns<{
|
|
1087
|
+
name: "relay_event_history_bindings";
|
|
1088
|
+
schema: undefined;
|
|
1089
|
+
columns: {
|
|
1090
|
+
bindingKey: import("drizzle-orm/pg-core").PgBuildColumn<"relay_event_history_bindings", import("drizzle-orm/pg-core").SetNotNull<import("drizzle-orm/pg-core").PgIntegerBuilder>, {
|
|
1091
|
+
name: string;
|
|
1092
|
+
tableName: "relay_event_history_bindings";
|
|
1093
|
+
dataType: "number int32";
|
|
1094
|
+
data: number;
|
|
1095
|
+
driverParam: string | number;
|
|
1096
|
+
notNull: true;
|
|
1097
|
+
hasDefault: false;
|
|
1098
|
+
isPrimaryKey: false;
|
|
1099
|
+
isAutoincrement: false;
|
|
1100
|
+
hasRuntimeDefault: false;
|
|
1101
|
+
enumValues: undefined;
|
|
1102
|
+
identity: undefined;
|
|
1103
|
+
generated: undefined;
|
|
1104
|
+
}>;
|
|
1105
|
+
storeIdentity: import("drizzle-orm/pg-core").PgBuildColumn<"relay_event_history_bindings", import("drizzle-orm/pg-core").SetNotNull<import("drizzle-orm/pg-core").PgTextBuilder<[string, ...string[]]>>, {
|
|
1106
|
+
name: string;
|
|
1107
|
+
tableName: "relay_event_history_bindings";
|
|
1108
|
+
dataType: "string";
|
|
1109
|
+
data: string;
|
|
1110
|
+
driverParam: string;
|
|
1111
|
+
notNull: true;
|
|
1112
|
+
hasDefault: false;
|
|
1113
|
+
isPrimaryKey: false;
|
|
1114
|
+
isAutoincrement: false;
|
|
1115
|
+
hasRuntimeDefault: false;
|
|
1116
|
+
enumValues: undefined;
|
|
1117
|
+
identity: undefined;
|
|
1118
|
+
generated: undefined;
|
|
1119
|
+
}>;
|
|
1120
|
+
state: import("drizzle-orm/pg-core").PgBuildColumn<"relay_event_history_bindings", import("drizzle-orm/pg-core").SetNotNull<import("drizzle-orm/pg-core").Set$Type<import("drizzle-orm/pg-core").PgTextBuilder<[string, ...string[]]>, "allocating" | "publishing" | "ready">>, {
|
|
1121
|
+
name: string;
|
|
1122
|
+
tableName: "relay_event_history_bindings";
|
|
1123
|
+
dataType: "string";
|
|
1124
|
+
data: "allocating" | "publishing" | "ready";
|
|
1125
|
+
driverParam: string;
|
|
1126
|
+
notNull: true;
|
|
1127
|
+
hasDefault: false;
|
|
1128
|
+
isPrimaryKey: false;
|
|
1129
|
+
isAutoincrement: false;
|
|
1130
|
+
hasRuntimeDefault: false;
|
|
1131
|
+
enumValues: undefined;
|
|
1132
|
+
identity: undefined;
|
|
1133
|
+
generated: undefined;
|
|
1134
|
+
}>;
|
|
1135
|
+
};
|
|
1136
|
+
dialect: 'pg';
|
|
1137
|
+
}>;
|
|
1086
1138
|
export declare const relayExecutionEventArchiveManifests: import("drizzle-orm/pg-core").PgTableWithColumns<{
|
|
1087
1139
|
name: "relay_execution_event_archive_manifests";
|
|
1088
1140
|
schema: undefined;
|
|
@@ -2,7 +2,7 @@ export { relayWorkflowDefinitionRevisions, relayWorkflowRuns, relayWorkflowOpera
|
|
|
2
2
|
export { relayResidentKinds, relayResidentInstances } from "./resident-schema";
|
|
3
3
|
export { relayAddressBookEntries } from "./address-book-schema";
|
|
4
4
|
export { relayAgentDefinitions, relayAgentDefinitionRevisions, relaySkillDefinitions, relaySkillDefinitionRevisions, relayExecutionSkillPins, relayAgentChats, relayAgentCompactions, relayMemoryRecords, relayPermissionRules, } from "./agent-schema";
|
|
5
|
-
export { relayExecutionState, relayExecutionStateOps, relayExecutionContextEpochs, relayExecutions, relayChildExecutions, relayChildFanOuts, relayChildFanOutMembers, relayExecutionEventArchiveBlocks, relayExecutionEventArchiveManifests, relayExecutionEventIdentityDirectory, relayExecutionEventHeads, relayExecutionEvents, } from "./execution-schema";
|
|
5
|
+
export { relayExecutionState, relayExecutionStateOps, relayExecutionContextEpochs, relayExecutions, relayChildExecutions, relayChildFanOuts, relayChildFanOutMembers, relayExecutionEventArchiveBlocks, relayExecutionEventArchiveManifests, relayEventHistoryBindings, relayExecutionEventIdentityDirectory, relayExecutionEventHeads, relayExecutionEvents, } from "./execution-schema";
|
|
6
6
|
export { relaySteeringMessages, relaySteeringDrains, relayInboxMessages, relayInboxDrains, relayTopicSubscriptions, } from "./communication-schema";
|
|
7
7
|
export { relaySessions, relaySessionEntries } from "./session-schema";
|
|
8
8
|
export { relayEnvelopes, relayWaits, relayEnvelopeReady, relayRouteAttempts } from "./envelope-schema";
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json.schemastore.org/package.json",
|
|
3
3
|
"name": "@relayfx/sdk",
|
|
4
|
-
"version": "0.7.
|
|
4
|
+
"version": "0.7.13",
|
|
5
5
|
"description": "Effect-native durable execution SDK for addressable agents and tools",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"exports": {
|
|
@@ -63,6 +63,7 @@
|
|
|
63
63
|
"@effect/ai-openai": "4.0.0-beta.98",
|
|
64
64
|
"@effect/ai-openai-compat": "4.0.0-beta.98",
|
|
65
65
|
"@effect/ai-openrouter": "4.0.0-beta.98",
|
|
66
|
+
"@effect/platform-bun": "4.0.0-beta.98",
|
|
66
67
|
"@effect/sql-pg": "4.0.0-beta.98",
|
|
67
68
|
"@effect/sql-mysql2": "4.0.0-beta.98",
|
|
68
69
|
"@effect/sql-sqlite-bun": "4.0.0-beta.98",
|
|
@@ -71,11 +72,10 @@
|
|
|
71
72
|
"pg": "8.21.0"
|
|
72
73
|
},
|
|
73
74
|
"devDependencies": {
|
|
74
|
-
"@effect/platform-bun": "4.0.0-beta.98",
|
|
75
75
|
"@effect/vitest": "4.0.0-beta.98",
|
|
76
76
|
"@relayfx/ai": "0.0.0",
|
|
77
77
|
"@relayfx/runtime": "0.0.0",
|
|
78
|
-
"@relayfx/schema": "0.7.
|
|
78
|
+
"@relayfx/schema": "0.7.13",
|
|
79
79
|
"@relayfx/store-sql": "0.0.0",
|
|
80
80
|
"@types/bun": "1.3.14",
|
|
81
81
|
"typescript": "7.0.2",
|