@relayfx/sdk 0.0.28 → 0.0.30
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.js +3832 -3186
- package/dist/migrations/20260701002839_sour_cerebro/migration.sql +160 -0
- package/dist/migrations/20260701002839_sour_cerebro/snapshot.json +1971 -0
- package/dist/migrations/20260701041134_acoustic_hulk/migration.sql +30 -0
- package/dist/migrations/20260701041134_acoustic_hulk/snapshot.json +2372 -0
- package/dist/migrations/20260701160543_condemned_stryfe/migration.sql +2 -0
- package/dist/migrations/20260701160543_condemned_stryfe/snapshot.json +2442 -0
- package/dist/migrations/20260701220315_heavy_gorgon/migration.sql +5 -0
- package/dist/migrations/20260701220315_heavy_gorgon/snapshot.json +2495 -0
- package/dist/migrations/20260701225444_polite_lord_hawal/migration.sql +24 -0
- package/dist/migrations/20260701225444_polite_lord_hawal/snapshot.json +2821 -0
- package/dist/migrations/20260702030128_flaky_misty_knight/migration.sql +1 -0
- package/dist/migrations/20260702030128_flaky_misty_knight/snapshot.json +2821 -0
- package/dist/migrations/20260705003847_nervous_banshee/migration.sql +11 -0
- package/dist/migrations/20260705003847_nervous_banshee/snapshot.json +2954 -0
- package/dist/migrations/20260705012626_common_stryfe/migration.sql +31 -0
- package/dist/migrations/20260705012626_common_stryfe/snapshot.json +3378 -0
- package/dist/migrations/20260705015420_sweet_captain_marvel/migration.sql +10 -0
- package/dist/migrations/20260705015420_sweet_captain_marvel/snapshot.json +3485 -0
- package/dist/migrations/20260705023041_chunky_scalphunter/migration.sql +22 -0
- package/dist/migrations/20260705023041_chunky_scalphunter/snapshot.json +3753 -0
- package/dist/migrations/20260705030344_short_patriot/migration.sql +11 -0
- package/dist/migrations/20260705030344_short_patriot/snapshot.json +3873 -0
- package/dist/migrations/20260705045546_heavy_ben_grimm/migration.sql +30 -0
- package/dist/migrations/20260705045546_heavy_ben_grimm/snapshot.json +4193 -0
- package/dist/migrations/20260706185931_regular_shadow_king/migration.sql +166 -0
- package/dist/migrations/20260706185931_regular_shadow_king/snapshot.json +4844 -0
- package/dist/migrations/20260706233300_equal_cyclops/migration.sql +3 -0
- package/dist/migrations/20260706233300_equal_cyclops/snapshot.json +4883 -0
- package/dist/types/runtime/runner/runner-runtime-service.d.ts +10 -9
- package/dist/types/store-sql/database/notification-bus.d.ts +16 -0
- package/dist/types/store-sql/execution/execution-event-repository.d.ts +15 -2
- package/dist/types/store-sql/idempotency/idempotency-repository.d.ts +11 -2
- package/dist/types/store-sql/index.d.ts +1 -0
- package/dist/types/store-sql/memory/memory-repository.d.ts +12 -2
- package/dist/types/store-sql/schedule/schedule-repository.d.ts +21 -2
- package/dist/types/store-sql/skill/skill-definition-repository.d.ts +22 -2
- package/dist/types/store-sql/workspace/workspace-lease-repository.d.ts +25 -2
- package/package.json +1 -1
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { AddressBookRepository, AgentChatRepository, AgentDefinitionRepository, ChildExecutionRepository, ClusterRegistryRepository, CompactionRepository, ContextEpochRepository, Database, EnvelopeRepository, ExecutionEventRepository, ExecutionRepository, MemoryRepository, PermissionRuleRepository, ScheduleRepository, SessionRepository, SkillDefinitionRepository, SteeringRepository, ToolCallRepository, WorkspaceLeaseRepository } from "../../store-sql/index";
|
|
2
2
|
import { Config, Context, Crypto, Duration, Effect, Layer, Option, Schema } from "effect";
|
|
3
3
|
import { MessageStorage, RunnerAddress, RunnerStorage, Runners, Sharding, ShardingConfig } from "effect/unstable/cluster";
|
|
4
|
+
import * as SqlClient from "effect/unstable/sql/SqlClient";
|
|
4
5
|
import { WorkflowEngine } from "effect/unstable/workflow";
|
|
5
6
|
import * as AgentRegistry from "../agent/agent-registry-service";
|
|
6
7
|
import * as AgentLoop from "../agent/agent-loop-service";
|
|
@@ -22,10 +23,10 @@ import * as SkillRegistry from "../skill/skill-registry-service";
|
|
|
22
23
|
import * as ToolRuntime from "../tool/tool-runtime-service";
|
|
23
24
|
import * as WaitService from "../wait/wait-service";
|
|
24
25
|
import * as WorkspacePlanner from "../workspace/workspace-planner-service";
|
|
25
|
-
export declare const DatabaseMode: Schema.Literals<readonly ["sql", "memory"]>;
|
|
26
|
+
export declare const DatabaseMode: Schema.Literals<readonly ["sql", "pg", "mysql", "sqlite", "memory"]>;
|
|
26
27
|
export type DatabaseMode = typeof DatabaseMode.Type;
|
|
27
28
|
export declare const ReadinessStatus: Schema.Struct<{
|
|
28
|
-
readonly database: Schema.Literals<readonly ["sql", "memory"]>;
|
|
29
|
+
readonly database: Schema.Literals<readonly ["sql", "pg", "mysql", "sqlite", "memory"]>;
|
|
29
30
|
readonly cluster: Schema.Literal<"ready">;
|
|
30
31
|
readonly workflow: Schema.Literals<readonly ["ready", "client"]>;
|
|
31
32
|
readonly executionEntity: Schema.Literals<readonly ["registered", "client"]>;
|
|
@@ -70,8 +71,8 @@ export declare const clusterLayerHttp: (options: {
|
|
|
70
71
|
readonly runnerHost: string;
|
|
71
72
|
readonly rpcPort: number;
|
|
72
73
|
readonly assignedShardGroups: ReadonlyArray<string>;
|
|
73
|
-
} & ClusterHttpTuning) => Layer.Layer<ShardingConfig.ShardingConfig | Sharding.Sharding | Runners.Runners | MessageStorage.MessageStorage, ClusterConfigMismatch,
|
|
74
|
-
export declare const clusterLayerHttpClientOnly: (options?: ClusterHttpTuning) => Layer.Layer<ShardingConfig.ShardingConfig | Sharding.Sharding | Runners.Runners | MessageStorage.MessageStorage, never,
|
|
74
|
+
} & ClusterHttpTuning) => Layer.Layer<ShardingConfig.ShardingConfig | Sharding.Sharding | Runners.Runners | MessageStorage.MessageStorage, ClusterConfigMismatch, SqlClient.SqlClient | import("effect/unstable/http/HttpServer").HttpServer>;
|
|
75
|
+
export declare const clusterLayerHttpClientOnly: (options?: ClusterHttpTuning) => Layer.Layer<ShardingConfig.ShardingConfig | Sharding.Sharding | Runners.Runners | MessageStorage.MessageStorage, never, SqlClient.SqlClient>;
|
|
75
76
|
export declare const assertClusterConfig: (expected: {
|
|
76
77
|
readonly shardsPerGroup: number;
|
|
77
78
|
readonly availableShardGroups: ReadonlyArray<string>;
|
|
@@ -110,7 +111,7 @@ export declare const layerWithServices: <DatabaseError, DatabaseIn, LanguageMode
|
|
|
110
111
|
readonly blobStoreLayer?: Layer.Layer<BlobStore.Service> | undefined;
|
|
111
112
|
readonly artifactStoreLayer?: Layer.Layer<ArtifactStore.Service> | undefined;
|
|
112
113
|
readonly schemaRegistryLayer?: Layer.Layer<SchemaRegistry.Service> | undefined;
|
|
113
|
-
}) => Layer.Layer<Database.Service | AddressBookRepository.Service | AgentChatRepository.Service | AgentDefinitionRepository.Service | ChildExecutionRepository.Service | ClusterRegistryRepository.Service | CompactionRepository.Service | EnvelopeRepository.Service | ExecutionEventRepository.Service | ExecutionRepository.Service | MemoryRepository.Service | PermissionRuleRepository.Service | ContextEpochRepository.Service | ScheduleRepository.Service | SessionRepository.Service | SkillDefinitionRepository.Service | SteeringRepository.Service | ToolCallRepository.Service | WorkspaceLeaseRepository.Service | AddressBook.Service | EventLog.Service | WaitService.Service | ToolRuntime.Service | AgentRegistry.Service | AddressResolution.Service | ChildRunService.Service | LanguageModelService.Service | ModelCallPolicy.Service | SchemaRegistry.Service | BlobStore.Service | ArtifactStore.Service | PromptAssembler.Service | AgentLoop.Service | ParentNotifier.Service | SkillRegistry.Service | ExecutionService.Service | ShardingConfig.ShardingConfig | WorkspacePlanner.Service | WorkflowEngine.WorkflowEngine | Sharding.Sharding | SchedulerService.Service | Service | Runners.Runners | MessageStorage.MessageStorage, Config.ConfigError | ClusterConfigMismatch | DatabaseError | LanguageModelError | ToolRuntimeError,
|
|
114
|
+
}) => Layer.Layer<Database.Service | AddressBookRepository.Service | AgentChatRepository.Service | AgentDefinitionRepository.Service | ChildExecutionRepository.Service | ClusterRegistryRepository.Service | CompactionRepository.Service | EnvelopeRepository.Service | ExecutionEventRepository.Service | ExecutionRepository.Service | MemoryRepository.Service | PermissionRuleRepository.Service | ContextEpochRepository.Service | ScheduleRepository.Service | SessionRepository.Service | SkillDefinitionRepository.Service | SteeringRepository.Service | ToolCallRepository.Service | WorkspaceLeaseRepository.Service | AddressBook.Service | EventLog.Service | WaitService.Service | ToolRuntime.Service | AgentRegistry.Service | AddressResolution.Service | ChildRunService.Service | LanguageModelService.Service | ModelCallPolicy.Service | SchemaRegistry.Service | BlobStore.Service | ArtifactStore.Service | PromptAssembler.Service | AgentLoop.Service | ParentNotifier.Service | SkillRegistry.Service | ExecutionService.Service | ShardingConfig.ShardingConfig | WorkspacePlanner.Service | WorkflowEngine.WorkflowEngine | Sharding.Sharding | SchedulerService.Service | Service | Runners.Runners | MessageStorage.MessageStorage, Config.ConfigError | ClusterConfigMismatch | DatabaseError | LanguageModelError | ToolRuntimeError, SqlClient.SqlClient | Exclude<Exclude<DatabaseIn, BlobStore.Service>, ArtifactStore.Service> | Exclude<Exclude<Exclude<LanguageModelIn, Database.Service | AddressBookRepository.Service | AgentChatRepository.Service | AgentDefinitionRepository.Service | ChildExecutionRepository.Service | ClusterRegistryRepository.Service | CompactionRepository.Service | EnvelopeRepository.Service | ExecutionEventRepository.Service | ExecutionRepository.Service | MemoryRepository.Service | PermissionRuleRepository.Service | ContextEpochRepository.Service | ScheduleRepository.Service | SessionRepository.Service | SkillDefinitionRepository.Service | SteeringRepository.Service | ToolCallRepository.Service | WorkspaceLeaseRepository.Service>, BlobStore.Service>, ArtifactStore.Service> | Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<LanguageModelIn, never>, WorkflowEngine.WorkflowEngine>, ShardingConfig.ShardingConfig | Sharding.Sharding | Runners.Runners | MessageStorage.MessageStorage>, Database.Service | AddressBookRepository.Service | AgentChatRepository.Service | AgentDefinitionRepository.Service | ChildExecutionRepository.Service | ClusterRegistryRepository.Service | CompactionRepository.Service | EnvelopeRepository.Service | ExecutionEventRepository.Service | ExecutionRepository.Service | MemoryRepository.Service | PermissionRuleRepository.Service | ContextEpochRepository.Service | ScheduleRepository.Service | SessionRepository.Service | SkillDefinitionRepository.Service | SteeringRepository.Service | ToolCallRepository.Service | WorkspaceLeaseRepository.Service>, BlobStore.Service>, ArtifactStore.Service> | Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<ToolRuntimeIn, WaitService.Service>, EventLog.Service>, LanguageModelService.Service>, never>, WorkflowEngine.WorkflowEngine>, ShardingConfig.ShardingConfig | Sharding.Sharding | Runners.Runners | MessageStorage.MessageStorage>, Database.Service | AddressBookRepository.Service | AgentChatRepository.Service | AgentDefinitionRepository.Service | ChildExecutionRepository.Service | ClusterRegistryRepository.Service | CompactionRepository.Service | EnvelopeRepository.Service | ExecutionEventRepository.Service | ExecutionRepository.Service | MemoryRepository.Service | PermissionRuleRepository.Service | ContextEpochRepository.Service | ScheduleRepository.Service | SessionRepository.Service | SkillDefinitionRepository.Service | SteeringRepository.Service | ToolCallRepository.Service | WorkspaceLeaseRepository.Service>, BlobStore.Service>, ArtifactStore.Service> | Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<ToolRuntimeIn, ChildRunService.Service>, ModelCallPolicy.Service>, PromptAssembler.Service>, SchemaRegistry.Service>, WaitService.Service>, EventLog.Service>, LanguageModelService.Service>, never>, WorkflowEngine.WorkflowEngine>, ShardingConfig.ShardingConfig | Sharding.Sharding | Runners.Runners | MessageStorage.MessageStorage>, Database.Service | AddressBookRepository.Service | AgentChatRepository.Service | AgentDefinitionRepository.Service | ChildExecutionRepository.Service | ClusterRegistryRepository.Service | CompactionRepository.Service | EnvelopeRepository.Service | ExecutionEventRepository.Service | ExecutionRepository.Service | MemoryRepository.Service | PermissionRuleRepository.Service | ContextEpochRepository.Service | ScheduleRepository.Service | SessionRepository.Service | SkillDefinitionRepository.Service | SteeringRepository.Service | ToolCallRepository.Service | WorkspaceLeaseRepository.Service>, BlobStore.Service>, ArtifactStore.Service>>;
|
|
114
115
|
export declare const layerWithServicesMultiNode: <DatabaseError, DatabaseIn, LanguageModelError, LanguageModelIn, EmbeddingModelError, EmbeddingModelIn, ToolRuntimeError, ToolRuntimeIn>(options: {
|
|
115
116
|
readonly databaseLayer: Layer.Layer<Database.Service, DatabaseError, DatabaseIn>;
|
|
116
117
|
readonly languageModelLayer: Layer.Layer<LanguageModelService.Service, LanguageModelError, LanguageModelIn>;
|
|
@@ -125,7 +126,7 @@ export declare const layerWithServicesMultiNode: <DatabaseError, DatabaseIn, Lan
|
|
|
125
126
|
readonly rpcPort: number;
|
|
126
127
|
readonly assignedShardGroups: ReadonlyArray<string>;
|
|
127
128
|
} & ClusterHttpTuning;
|
|
128
|
-
}) => Layer.Layer<Database.Service | AddressBookRepository.Service | AgentChatRepository.Service | AgentDefinitionRepository.Service | ChildExecutionRepository.Service | ClusterRegistryRepository.Service | CompactionRepository.Service | EnvelopeRepository.Service | ExecutionEventRepository.Service | ExecutionRepository.Service | MemoryRepository.Service | PermissionRuleRepository.Service | ContextEpochRepository.Service | ScheduleRepository.Service | SessionRepository.Service | SkillDefinitionRepository.Service | SteeringRepository.Service | ToolCallRepository.Service | WorkspaceLeaseRepository.Service | AddressBook.Service | EventLog.Service | WaitService.Service | ToolRuntime.Service | AgentRegistry.Service | AddressResolution.Service | ChildRunService.Service | LanguageModelService.Service | ModelCallPolicy.Service | SchemaRegistry.Service | BlobStore.Service | ArtifactStore.Service | PromptAssembler.Service | AgentLoop.Service | ParentNotifier.Service | SkillRegistry.Service | ExecutionService.Service | ShardingConfig.ShardingConfig | WorkspacePlanner.Service | WorkflowEngine.WorkflowEngine | Sharding.Sharding | SchedulerService.Service | Service | Runners.Runners | MessageStorage.MessageStorage, Config.ConfigError | ClusterConfigMismatch | DatabaseError | LanguageModelError | ToolRuntimeError,
|
|
129
|
+
}) => Layer.Layer<Database.Service | AddressBookRepository.Service | AgentChatRepository.Service | AgentDefinitionRepository.Service | ChildExecutionRepository.Service | ClusterRegistryRepository.Service | CompactionRepository.Service | EnvelopeRepository.Service | ExecutionEventRepository.Service | ExecutionRepository.Service | MemoryRepository.Service | PermissionRuleRepository.Service | ContextEpochRepository.Service | ScheduleRepository.Service | SessionRepository.Service | SkillDefinitionRepository.Service | SteeringRepository.Service | ToolCallRepository.Service | WorkspaceLeaseRepository.Service | AddressBook.Service | EventLog.Service | WaitService.Service | ToolRuntime.Service | AgentRegistry.Service | AddressResolution.Service | ChildRunService.Service | LanguageModelService.Service | ModelCallPolicy.Service | SchemaRegistry.Service | BlobStore.Service | ArtifactStore.Service | PromptAssembler.Service | AgentLoop.Service | ParentNotifier.Service | SkillRegistry.Service | ExecutionService.Service | ShardingConfig.ShardingConfig | WorkspacePlanner.Service | WorkflowEngine.WorkflowEngine | Sharding.Sharding | SchedulerService.Service | Service | Runners.Runners | MessageStorage.MessageStorage, Config.ConfigError | ClusterConfigMismatch | DatabaseError | LanguageModelError | ToolRuntimeError, SqlClient.SqlClient | import("effect/unstable/http/HttpServer").HttpServer | Exclude<Exclude<DatabaseIn, BlobStore.Service>, ArtifactStore.Service> | Exclude<Exclude<Exclude<LanguageModelIn, Database.Service | AddressBookRepository.Service | AgentChatRepository.Service | AgentDefinitionRepository.Service | ChildExecutionRepository.Service | ClusterRegistryRepository.Service | CompactionRepository.Service | EnvelopeRepository.Service | ExecutionEventRepository.Service | ExecutionRepository.Service | MemoryRepository.Service | PermissionRuleRepository.Service | ContextEpochRepository.Service | ScheduleRepository.Service | SessionRepository.Service | SkillDefinitionRepository.Service | SteeringRepository.Service | ToolCallRepository.Service | WorkspaceLeaseRepository.Service>, BlobStore.Service>, ArtifactStore.Service> | Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<LanguageModelIn, never>, WorkflowEngine.WorkflowEngine>, ShardingConfig.ShardingConfig | Sharding.Sharding | Runners.Runners | MessageStorage.MessageStorage>, Database.Service | AddressBookRepository.Service | AgentChatRepository.Service | AgentDefinitionRepository.Service | ChildExecutionRepository.Service | ClusterRegistryRepository.Service | CompactionRepository.Service | EnvelopeRepository.Service | ExecutionEventRepository.Service | ExecutionRepository.Service | MemoryRepository.Service | PermissionRuleRepository.Service | ContextEpochRepository.Service | ScheduleRepository.Service | SessionRepository.Service | SkillDefinitionRepository.Service | SteeringRepository.Service | ToolCallRepository.Service | WorkspaceLeaseRepository.Service>, BlobStore.Service>, ArtifactStore.Service> | Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<ToolRuntimeIn, WaitService.Service>, EventLog.Service>, LanguageModelService.Service>, never>, WorkflowEngine.WorkflowEngine>, ShardingConfig.ShardingConfig | Sharding.Sharding | Runners.Runners | MessageStorage.MessageStorage>, Database.Service | AddressBookRepository.Service | AgentChatRepository.Service | AgentDefinitionRepository.Service | ChildExecutionRepository.Service | ClusterRegistryRepository.Service | CompactionRepository.Service | EnvelopeRepository.Service | ExecutionEventRepository.Service | ExecutionRepository.Service | MemoryRepository.Service | PermissionRuleRepository.Service | ContextEpochRepository.Service | ScheduleRepository.Service | SessionRepository.Service | SkillDefinitionRepository.Service | SteeringRepository.Service | ToolCallRepository.Service | WorkspaceLeaseRepository.Service>, BlobStore.Service>, ArtifactStore.Service> | Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<ToolRuntimeIn, ChildRunService.Service>, ModelCallPolicy.Service>, PromptAssembler.Service>, SchemaRegistry.Service>, WaitService.Service>, EventLog.Service>, LanguageModelService.Service>, never>, WorkflowEngine.WorkflowEngine>, ShardingConfig.ShardingConfig | Sharding.Sharding | Runners.Runners | MessageStorage.MessageStorage>, Database.Service | AddressBookRepository.Service | AgentChatRepository.Service | AgentDefinitionRepository.Service | ChildExecutionRepository.Service | ClusterRegistryRepository.Service | CompactionRepository.Service | EnvelopeRepository.Service | ExecutionEventRepository.Service | ExecutionRepository.Service | MemoryRepository.Service | PermissionRuleRepository.Service | ContextEpochRepository.Service | ScheduleRepository.Service | SessionRepository.Service | SkillDefinitionRepository.Service | SteeringRepository.Service | ToolCallRepository.Service | WorkspaceLeaseRepository.Service>, BlobStore.Service>, ArtifactStore.Service>>;
|
|
129
130
|
export declare const layerWithServicesMultiNodeClientOnly: <DatabaseError, DatabaseIn, LanguageModelError, LanguageModelIn, EmbeddingModelError, EmbeddingModelIn, ToolRuntimeError, ToolRuntimeIn>(options: {
|
|
130
131
|
readonly databaseLayer: Layer.Layer<Database.Service, DatabaseError, DatabaseIn>;
|
|
131
132
|
readonly languageModelLayer: Layer.Layer<LanguageModelService.Service, LanguageModelError, LanguageModelIn>;
|
|
@@ -136,12 +137,12 @@ export declare const layerWithServicesMultiNodeClientOnly: <DatabaseError, Datab
|
|
|
136
137
|
readonly artifactStoreLayer?: Layer.Layer<ArtifactStore.Service> | undefined;
|
|
137
138
|
readonly schemaRegistryLayer?: Layer.Layer<SchemaRegistry.Service> | undefined;
|
|
138
139
|
readonly cluster?: ClusterHttpTuning | undefined;
|
|
139
|
-
}) => Layer.Layer<Database.Service | AddressBookRepository.Service | AgentChatRepository.Service | AgentDefinitionRepository.Service | ChildExecutionRepository.Service | ClusterRegistryRepository.Service | CompactionRepository.Service | EnvelopeRepository.Service | ExecutionEventRepository.Service | ExecutionRepository.Service | MemoryRepository.Service | PermissionRuleRepository.Service | ContextEpochRepository.Service | ScheduleRepository.Service | SessionRepository.Service | SkillDefinitionRepository.Service | SteeringRepository.Service | ToolCallRepository.Service | WorkspaceLeaseRepository.Service | AddressBook.Service | EventLog.Service | WaitService.Service | ToolRuntime.Service | AgentRegistry.Service | AddressResolution.Service | ChildRunService.Service | LanguageModelService.Service | ModelCallPolicy.Service | SchemaRegistry.Service | BlobStore.Service | ArtifactStore.Service | PromptAssembler.Service | AgentLoop.Service | ParentNotifier.Service | SkillRegistry.Service | ExecutionService.Service | ShardingConfig.ShardingConfig | WorkspacePlanner.Service | Sharding.Sharding | Service | Runners.Runners | MessageStorage.MessageStorage, DatabaseError | LanguageModelError | ToolRuntimeError,
|
|
140
|
+
}) => Layer.Layer<Database.Service | AddressBookRepository.Service | AgentChatRepository.Service | AgentDefinitionRepository.Service | ChildExecutionRepository.Service | ClusterRegistryRepository.Service | CompactionRepository.Service | EnvelopeRepository.Service | ExecutionEventRepository.Service | ExecutionRepository.Service | MemoryRepository.Service | PermissionRuleRepository.Service | ContextEpochRepository.Service | ScheduleRepository.Service | SessionRepository.Service | SkillDefinitionRepository.Service | SteeringRepository.Service | ToolCallRepository.Service | WorkspaceLeaseRepository.Service | AddressBook.Service | EventLog.Service | WaitService.Service | ToolRuntime.Service | AgentRegistry.Service | AddressResolution.Service | ChildRunService.Service | LanguageModelService.Service | ModelCallPolicy.Service | SchemaRegistry.Service | BlobStore.Service | ArtifactStore.Service | PromptAssembler.Service | AgentLoop.Service | ParentNotifier.Service | SkillRegistry.Service | ExecutionService.Service | ShardingConfig.ShardingConfig | WorkspacePlanner.Service | Sharding.Sharding | Service | Runners.Runners | MessageStorage.MessageStorage, DatabaseError | LanguageModelError | ToolRuntimeError, SqlClient.SqlClient | Exclude<Exclude<DatabaseIn, BlobStore.Service>, ArtifactStore.Service> | Exclude<Exclude<Exclude<Exclude<Exclude<LanguageModelIn, never>, ShardingConfig.ShardingConfig | Sharding.Sharding | Runners.Runners | MessageStorage.MessageStorage>, Database.Service | AddressBookRepository.Service | AgentChatRepository.Service | AgentDefinitionRepository.Service | ChildExecutionRepository.Service | ClusterRegistryRepository.Service | CompactionRepository.Service | EnvelopeRepository.Service | ExecutionEventRepository.Service | ExecutionRepository.Service | MemoryRepository.Service | PermissionRuleRepository.Service | ContextEpochRepository.Service | ScheduleRepository.Service | SessionRepository.Service | SkillDefinitionRepository.Service | SteeringRepository.Service | ToolCallRepository.Service | WorkspaceLeaseRepository.Service>, BlobStore.Service>, ArtifactStore.Service> | Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<ToolRuntimeIn, WaitService.Service>, EventLog.Service>, LanguageModelService.Service>, never>, ShardingConfig.ShardingConfig | Sharding.Sharding | Runners.Runners | MessageStorage.MessageStorage>, Database.Service | AddressBookRepository.Service | AgentChatRepository.Service | AgentDefinitionRepository.Service | ChildExecutionRepository.Service | ClusterRegistryRepository.Service | CompactionRepository.Service | EnvelopeRepository.Service | ExecutionEventRepository.Service | ExecutionRepository.Service | MemoryRepository.Service | PermissionRuleRepository.Service | ContextEpochRepository.Service | ScheduleRepository.Service | SessionRepository.Service | SkillDefinitionRepository.Service | SteeringRepository.Service | ToolCallRepository.Service | WorkspaceLeaseRepository.Service>, BlobStore.Service>, ArtifactStore.Service> | Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<ToolRuntimeIn, ChildRunService.Service>, ModelCallPolicy.Service>, PromptAssembler.Service>, SchemaRegistry.Service>, WaitService.Service>, EventLog.Service>, LanguageModelService.Service>, never>, ShardingConfig.ShardingConfig | Sharding.Sharding | Runners.Runners | MessageStorage.MessageStorage>, Database.Service | AddressBookRepository.Service | AgentChatRepository.Service | AgentDefinitionRepository.Service | ChildExecutionRepository.Service | ClusterRegistryRepository.Service | CompactionRepository.Service | EnvelopeRepository.Service | ExecutionEventRepository.Service | ExecutionRepository.Service | MemoryRepository.Service | PermissionRuleRepository.Service | ContextEpochRepository.Service | ScheduleRepository.Service | SessionRepository.Service | SkillDefinitionRepository.Service | SteeringRepository.Service | ToolCallRepository.Service | WorkspaceLeaseRepository.Service>, BlobStore.Service>, ArtifactStore.Service>>;
|
|
140
141
|
export declare const layerWithLanguageModelService: <DatabaseError, DatabaseIn, LanguageModelError, LanguageModelIn>(options: {
|
|
141
142
|
readonly databaseLayer: Layer.Layer<Database.Service, DatabaseError, DatabaseIn>;
|
|
142
143
|
readonly languageModelLayer: Layer.Layer<LanguageModelService.Service, LanguageModelError, LanguageModelIn>;
|
|
143
|
-
}) => Layer.Layer<Database.Service | AddressBookRepository.Service | AgentChatRepository.Service | AgentDefinitionRepository.Service | ChildExecutionRepository.Service | ClusterRegistryRepository.Service | CompactionRepository.Service | EnvelopeRepository.Service | ExecutionEventRepository.Service | ExecutionRepository.Service | MemoryRepository.Service | PermissionRuleRepository.Service | ContextEpochRepository.Service | ScheduleRepository.Service | SessionRepository.Service | SkillDefinitionRepository.Service | SteeringRepository.Service | ToolCallRepository.Service | WorkspaceLeaseRepository.Service | AddressBook.Service | EventLog.Service | WaitService.Service | ToolRuntime.Service | AgentRegistry.Service | AddressResolution.Service | ChildRunService.Service | LanguageModelService.Service | ModelCallPolicy.Service | SchemaRegistry.Service | BlobStore.Service | ArtifactStore.Service | PromptAssembler.Service | AgentLoop.Service | ParentNotifier.Service | SkillRegistry.Service | ExecutionService.Service | ShardingConfig.ShardingConfig | WorkspacePlanner.Service | WorkflowEngine.WorkflowEngine | Sharding.Sharding | SchedulerService.Service | Service | Runners.Runners | MessageStorage.MessageStorage, Config.ConfigError | ClusterConfigMismatch | DatabaseError | LanguageModelError,
|
|
144
|
-
export declare const layer: Layer.Layer<Database.Service | AddressBookRepository.Service | AgentChatRepository.Service | AgentDefinitionRepository.Service | ChildExecutionRepository.Service | ClusterRegistryRepository.Service | CompactionRepository.Service | EnvelopeRepository.Service | ExecutionEventRepository.Service | ExecutionRepository.Service | MemoryRepository.Service | PermissionRuleRepository.Service | ContextEpochRepository.Service | ScheduleRepository.Service | SessionRepository.Service | SkillDefinitionRepository.Service | SteeringRepository.Service | ToolCallRepository.Service | WorkspaceLeaseRepository.Service | AddressBook.Service | EventLog.Service | WaitService.Service | ToolRuntime.Service | AgentRegistry.Service | AddressResolution.Service | ChildRunService.Service | LanguageModelService.Service | ModelCallPolicy.Service | SchemaRegistry.Service | BlobStore.Service | ArtifactStore.Service | PromptAssembler.Service | AgentLoop.Service | ParentNotifier.Service | SkillRegistry.Service | ExecutionService.Service | ShardingConfig.ShardingConfig | WorkspacePlanner.Service | WorkflowEngine.WorkflowEngine | Sharding.Sharding | SchedulerService.Service | Service | Runners.Runners | MessageStorage.MessageStorage, Config.ConfigError | ClusterConfigMismatch, import("@effect/sql-pg/PgClient").PgClient |
|
|
144
|
+
}) => Layer.Layer<Database.Service | AddressBookRepository.Service | AgentChatRepository.Service | AgentDefinitionRepository.Service | ChildExecutionRepository.Service | ClusterRegistryRepository.Service | CompactionRepository.Service | EnvelopeRepository.Service | ExecutionEventRepository.Service | ExecutionRepository.Service | MemoryRepository.Service | PermissionRuleRepository.Service | ContextEpochRepository.Service | ScheduleRepository.Service | SessionRepository.Service | SkillDefinitionRepository.Service | SteeringRepository.Service | ToolCallRepository.Service | WorkspaceLeaseRepository.Service | AddressBook.Service | EventLog.Service | WaitService.Service | ToolRuntime.Service | AgentRegistry.Service | AddressResolution.Service | ChildRunService.Service | LanguageModelService.Service | ModelCallPolicy.Service | SchemaRegistry.Service | BlobStore.Service | ArtifactStore.Service | PromptAssembler.Service | AgentLoop.Service | ParentNotifier.Service | SkillRegistry.Service | ExecutionService.Service | ShardingConfig.ShardingConfig | WorkspacePlanner.Service | WorkflowEngine.WorkflowEngine | Sharding.Sharding | SchedulerService.Service | Service | Runners.Runners | MessageStorage.MessageStorage, Config.ConfigError | ClusterConfigMismatch | DatabaseError | LanguageModelError, SqlClient.SqlClient | Exclude<Exclude<DatabaseIn, BlobStore.Service>, ArtifactStore.Service> | Exclude<Exclude<Exclude<LanguageModelIn, Database.Service | AddressBookRepository.Service | AgentChatRepository.Service | AgentDefinitionRepository.Service | ChildExecutionRepository.Service | ClusterRegistryRepository.Service | CompactionRepository.Service | EnvelopeRepository.Service | ExecutionEventRepository.Service | ExecutionRepository.Service | MemoryRepository.Service | PermissionRuleRepository.Service | ContextEpochRepository.Service | ScheduleRepository.Service | SessionRepository.Service | SkillDefinitionRepository.Service | SteeringRepository.Service | ToolCallRepository.Service | WorkspaceLeaseRepository.Service>, BlobStore.Service>, ArtifactStore.Service> | Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<LanguageModelIn, never>, WorkflowEngine.WorkflowEngine>, ShardingConfig.ShardingConfig | Sharding.Sharding | Runners.Runners | MessageStorage.MessageStorage>, Database.Service | AddressBookRepository.Service | AgentChatRepository.Service | AgentDefinitionRepository.Service | ChildExecutionRepository.Service | ClusterRegistryRepository.Service | CompactionRepository.Service | EnvelopeRepository.Service | ExecutionEventRepository.Service | ExecutionRepository.Service | MemoryRepository.Service | PermissionRuleRepository.Service | ContextEpochRepository.Service | ScheduleRepository.Service | SessionRepository.Service | SkillDefinitionRepository.Service | SteeringRepository.Service | ToolCallRepository.Service | WorkspaceLeaseRepository.Service>, BlobStore.Service>, ArtifactStore.Service>>;
|
|
145
|
+
export declare const layer: Layer.Layer<Database.Service | AddressBookRepository.Service | AgentChatRepository.Service | AgentDefinitionRepository.Service | ChildExecutionRepository.Service | ClusterRegistryRepository.Service | CompactionRepository.Service | EnvelopeRepository.Service | ExecutionEventRepository.Service | ExecutionRepository.Service | MemoryRepository.Service | PermissionRuleRepository.Service | ContextEpochRepository.Service | ScheduleRepository.Service | SessionRepository.Service | SkillDefinitionRepository.Service | SteeringRepository.Service | ToolCallRepository.Service | WorkspaceLeaseRepository.Service | AddressBook.Service | EventLog.Service | WaitService.Service | ToolRuntime.Service | AgentRegistry.Service | AddressResolution.Service | ChildRunService.Service | LanguageModelService.Service | ModelCallPolicy.Service | SchemaRegistry.Service | BlobStore.Service | ArtifactStore.Service | PromptAssembler.Service | AgentLoop.Service | ParentNotifier.Service | SkillRegistry.Service | ExecutionService.Service | ShardingConfig.ShardingConfig | WorkspacePlanner.Service | WorkflowEngine.WorkflowEngine | Sharding.Sharding | SchedulerService.Service | Service | Runners.Runners | MessageStorage.MessageStorage, Config.ConfigError | ClusterConfigMismatch, import("@effect/sql-pg/PgClient").PgClient | SqlClient.SqlClient>;
|
|
145
146
|
export declare const testLayerWithServices: <LanguageModelError, LanguageModelIn, ToolRuntimeError, ToolRuntimeIn>(options: {
|
|
146
147
|
readonly languageModelLayer: Layer.Layer<LanguageModelService.Service, LanguageModelError, LanguageModelIn>;
|
|
147
148
|
readonly embeddingModelLayer?: Layer.Layer<EmbeddingModelService.Service> | undefined;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Context, Effect, Layer, Stream } from "effect";
|
|
2
|
+
import * as SqlClient from "effect/unstable/sql/SqlClient";
|
|
3
|
+
import type { SqlError } from "effect/unstable/sql/SqlError";
|
|
4
|
+
export interface Interface {
|
|
5
|
+
readonly publish: (channel: string, payload: string) => Effect.Effect<void, SqlError>;
|
|
6
|
+
readonly subscribe: (channel: string) => Stream.Stream<string, SqlError>;
|
|
7
|
+
}
|
|
8
|
+
declare const Service_base: Context.ServiceClass<Service, "@relayfx/store-sql/NotificationBus", Interface>;
|
|
9
|
+
export declare class Service extends Service_base {
|
|
10
|
+
}
|
|
11
|
+
export declare const pgLayer: Layer.Layer<Service, never, SqlClient.SqlClient>;
|
|
12
|
+
export declare const inProcessLayer: Layer.Layer<Service, never, never>;
|
|
13
|
+
export declare const mysqlLayer: Layer.Layer<Service, never, never>;
|
|
14
|
+
export declare const layerFromDialect: Layer.Layer<Service, never, SqlClient.SqlClient>;
|
|
15
|
+
export declare const testLayer: (implementation: Interface) => Layer.Layer<Service, never, never>;
|
|
16
|
+
export {};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { Execution, Ids } from "../../schema/index";
|
|
2
2
|
import { Context, Effect, Layer, Option, Schema, Stream } from "effect";
|
|
3
|
-
import * as
|
|
3
|
+
import * as SqlClient from "effect/unstable/sql/SqlClient";
|
|
4
|
+
import * as NotificationBus from "../database/notification-bus";
|
|
4
5
|
export declare const executionEventsChannel = "relay_execution_events";
|
|
5
6
|
declare const DuplicateExecutionEvent_base: Schema.Class<DuplicateExecutionEvent, Schema.TaggedStruct<"DuplicateExecutionEvent", {
|
|
6
7
|
readonly execution_id: Schema.brand<Schema.String, "Relay.ExecutionId"> & {
|
|
@@ -72,7 +73,19 @@ export interface Interface {
|
|
|
72
73
|
declare const Service_base: Context.ServiceClass<Service, "@relayfx/store-sql/ExecutionEventRepository", Interface>;
|
|
73
74
|
export declare class Service extends Service_base {
|
|
74
75
|
}
|
|
75
|
-
export declare const
|
|
76
|
+
export declare const ExecutionEventRow: Schema.Struct<{
|
|
77
|
+
readonly id: Schema.String;
|
|
78
|
+
readonly execution_id: Schema.String;
|
|
79
|
+
readonly child_execution_id: Schema.NullishOr<Schema.String>;
|
|
80
|
+
readonly type: Schema.String;
|
|
81
|
+
readonly sequence: Schema.Union<readonly [Schema.Number, Schema.String]>;
|
|
82
|
+
readonly cursor: Schema.String;
|
|
83
|
+
readonly content_json: Schema.NullishOr<Schema.Unknown>;
|
|
84
|
+
readonly data_json: Schema.Unknown;
|
|
85
|
+
readonly created_at: Schema.Union<readonly [Schema.Date, Schema.String, Schema.Number]>;
|
|
86
|
+
}>;
|
|
87
|
+
export declare const layer: Layer.Layer<Service, never, SqlClient.SqlClient | NotificationBus.Service>;
|
|
88
|
+
export declare const layerWithBus: Layer.Layer<Service, never, SqlClient.SqlClient>;
|
|
76
89
|
export declare const memoryLayer: Layer.Layer<Service, never, never>;
|
|
77
90
|
export declare const testLayer: (implementation: Interface) => Layer.Layer<Service, never, never>;
|
|
78
91
|
export declare const append: (input: Execution.ExecutionEvent) => Effect.Effect<Execution.ExecutionEvent, DuplicateExecutionEvent | ExecutionEventOrderViolation | ExecutionEventRepositoryError, Service>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Shared } from "../../schema/index";
|
|
2
2
|
import { Context, Effect, Layer, Schema } from "effect";
|
|
3
|
-
import * as
|
|
3
|
+
import * as SqlClient from "effect/unstable/sql/SqlClient";
|
|
4
4
|
declare const IdempotencyRepositoryError_base: Schema.Class<IdempotencyRepositoryError, Schema.TaggedStruct<"IdempotencyRepositoryError", {
|
|
5
5
|
readonly message: Schema.String;
|
|
6
6
|
}>, import("effect/Cause").YieldableError>;
|
|
@@ -34,7 +34,16 @@ export interface Interface {
|
|
|
34
34
|
declare const Service_base: Context.ServiceClass<Service, "@relayfx/store-sql/IdempotencyRepository", Interface>;
|
|
35
35
|
export declare class Service extends Service_base {
|
|
36
36
|
}
|
|
37
|
-
export declare const
|
|
37
|
+
export declare const IdempotencyRow: Schema.Struct<{
|
|
38
|
+
readonly scope: Schema.String;
|
|
39
|
+
readonly operation: Schema.String;
|
|
40
|
+
readonly key: Schema.String;
|
|
41
|
+
readonly result_json: Schema.NullishOr<Schema.Unknown>;
|
|
42
|
+
readonly metadata_json: Schema.Unknown;
|
|
43
|
+
readonly created_at: Schema.Union<readonly [Schema.Date, Schema.String, Schema.Number]>;
|
|
44
|
+
readonly expires_at: Schema.NullishOr<Schema.Union<readonly [Schema.Date, Schema.String, Schema.Number]>>;
|
|
45
|
+
}>;
|
|
46
|
+
export declare const layer: Layer.Layer<Service, never, SqlClient.SqlClient>;
|
|
38
47
|
export declare const memoryLayer: Layer.Layer<Service, never, never>;
|
|
39
48
|
export declare const testLayer: (implementation: Interface) => Layer.Layer<Service, never, never>;
|
|
40
49
|
export declare const runOnce: <R>(input: OperationInput, create: Effect.Effect<Shared.JsonValue, IdempotencyRepositoryError, R>) => Effect.Effect<IdempotencyOutcome, IdempotencyRepositoryError, Service | R>;
|
|
@@ -10,6 +10,7 @@ export * as ExecutionEventRepository from "./execution/execution-event-repositor
|
|
|
10
10
|
export * as ExecutionRepository from "./execution/execution-repository";
|
|
11
11
|
export * as IdempotencyRepository from "./idempotency/idempotency-repository";
|
|
12
12
|
export * as MemoryRepository from "./memory/memory-repository";
|
|
13
|
+
export * as NotificationBus from "./database/notification-bus";
|
|
13
14
|
export * as PermissionRuleRepository from "./permission/permission-rule-repository";
|
|
14
15
|
export * as ContextEpochRepository from "./session/context-epoch-repository";
|
|
15
16
|
export * as RelaySchema from "./schema/relay-schema";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Ids, Shared } from "../../schema/index";
|
|
2
2
|
import { Context, Effect, Layer, Schema } from "effect";
|
|
3
3
|
import type * as Ai from "effect/unstable/ai";
|
|
4
|
-
import * as
|
|
4
|
+
import * as SqlClient from "effect/unstable/sql/SqlClient";
|
|
5
5
|
declare const MemoryRepositoryError_base: Schema.Class<MemoryRepositoryError, Schema.TaggedStruct<"MemoryRepositoryError", {
|
|
6
6
|
readonly message: Schema.String;
|
|
7
7
|
}>, import("effect/Cause").YieldableError>;
|
|
@@ -42,7 +42,17 @@ export interface Interface {
|
|
|
42
42
|
declare const Service_base: Context.ServiceClass<Service, "@relayfx/store-sql/MemoryRepository", Interface>;
|
|
43
43
|
export declare class Service extends Service_base {
|
|
44
44
|
}
|
|
45
|
-
export declare const
|
|
45
|
+
export declare const recallCandidateCap = 1000;
|
|
46
|
+
export declare const MemoryRow: Schema.Struct<{
|
|
47
|
+
readonly id: Schema.String;
|
|
48
|
+
readonly agent: Schema.String;
|
|
49
|
+
readonly subject: Schema.String;
|
|
50
|
+
readonly embedding: Schema.Union<readonly [Schema.$Array<Schema.Number>, Schema.String]>;
|
|
51
|
+
readonly parts_json: Schema.Unknown;
|
|
52
|
+
readonly metadata_json: Schema.Unknown;
|
|
53
|
+
readonly created_at: Schema.Union<readonly [Schema.Date, Schema.String, Schema.Number]>;
|
|
54
|
+
}>;
|
|
55
|
+
export declare const layer: Layer.Layer<Service, never, SqlClient.SqlClient>;
|
|
46
56
|
export declare const memoryLayer: Layer.Layer<Service, never, never>;
|
|
47
57
|
export declare const testLayer: (implementation: Interface) => Layer.Layer<Service, never, never>;
|
|
48
58
|
export declare const upsert: (input: UpsertInput) => Effect.Effect<MemoryRecord, MemoryRepositoryError, Service>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Content, Ids, Schedule, Shared } from "../../schema/index";
|
|
2
2
|
import { Context, Effect, Layer, Schema } from "effect";
|
|
3
|
-
import * as
|
|
3
|
+
import * as SqlClient from "effect/unstable/sql/SqlClient";
|
|
4
4
|
declare const ScheduleRepositoryError_base: Schema.Class<ScheduleRepositoryError, Schema.TaggedStruct<"ScheduleRepositoryError", {
|
|
5
5
|
readonly message: Schema.String;
|
|
6
6
|
}>, import("effect/Cause").YieldableError>;
|
|
@@ -70,7 +70,26 @@ export interface Interface {
|
|
|
70
70
|
declare const Service_base: Context.ServiceClass<Service, "@relayfx/store-sql/ScheduleRepository", Interface>;
|
|
71
71
|
export declare class Service extends Service_base {
|
|
72
72
|
}
|
|
73
|
-
export declare const
|
|
73
|
+
export declare const ScheduleRow: Schema.Struct<{
|
|
74
|
+
readonly id: Schema.String;
|
|
75
|
+
readonly kind: Schema.String;
|
|
76
|
+
readonly target_kind: Schema.String;
|
|
77
|
+
readonly address_id: Schema.NullishOr<Schema.String>;
|
|
78
|
+
readonly wait_id: Schema.NullishOr<Schema.String>;
|
|
79
|
+
readonly cron_expr: Schema.NullishOr<Schema.String>;
|
|
80
|
+
readonly input_json: Schema.NullishOr<Schema.Unknown>;
|
|
81
|
+
readonly state: Schema.String;
|
|
82
|
+
readonly next_run_at: Schema.Union<readonly [Schema.Date, Schema.String, Schema.Number]>;
|
|
83
|
+
readonly attempt: Schema.Union<readonly [Schema.Number, Schema.String, Schema.BigInt]>;
|
|
84
|
+
readonly claim_owner: Schema.NullishOr<Schema.String>;
|
|
85
|
+
readonly claim_expires_at: Schema.NullishOr<Schema.Union<readonly [Schema.Date, Schema.String, Schema.Number]>>;
|
|
86
|
+
readonly last_error: Schema.NullishOr<Schema.String>;
|
|
87
|
+
readonly idempotency_key: Schema.NullishOr<Schema.String>;
|
|
88
|
+
readonly metadata_json: Schema.Unknown;
|
|
89
|
+
readonly created_at: Schema.Union<readonly [Schema.Date, Schema.String, Schema.Number]>;
|
|
90
|
+
readonly updated_at: Schema.Union<readonly [Schema.Date, Schema.String, Schema.Number]>;
|
|
91
|
+
}>;
|
|
92
|
+
export declare const layer: Layer.Layer<Service, never, SqlClient.SqlClient>;
|
|
74
93
|
export declare const memoryLayer: Layer.Layer<Service, never, never>;
|
|
75
94
|
export declare const testLayer: (implementation: Interface) => Layer.Layer<Service, never, never>;
|
|
76
95
|
export declare const create: (input: CreateScheduleInput) => Effect.Effect<Schedule.ScheduleRecord, ScheduleRepositoryError, Service>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Ids, Skill } from "../../schema/index";
|
|
2
2
|
import { Context, Effect, Layer, Schema } from "effect";
|
|
3
|
-
import * as
|
|
3
|
+
import * as SqlClient from "effect/unstable/sql/SqlClient";
|
|
4
4
|
declare const SkillDefinitionRepositoryError_base: Schema.Class<SkillDefinitionRepositoryError, Schema.TaggedStruct<"SkillDefinitionRepositoryError", {
|
|
5
5
|
readonly message: Schema.String;
|
|
6
6
|
}>, import("effect/Cause").YieldableError>;
|
|
@@ -57,7 +57,27 @@ export interface Interface {
|
|
|
57
57
|
declare const Service_base: Context.ServiceClass<Service, "@relayfx/store-sql/SkillDefinitionRepository", Interface>;
|
|
58
58
|
export declare class Service extends Service_base {
|
|
59
59
|
}
|
|
60
|
-
export declare const
|
|
60
|
+
export declare const SkillDefinitionRow: Schema.Struct<{
|
|
61
|
+
readonly id: Schema.String;
|
|
62
|
+
readonly current_revision: Schema.Number;
|
|
63
|
+
readonly definition_json: Schema.Unknown;
|
|
64
|
+
readonly created_at: Schema.Union<readonly [Schema.Date, Schema.String, Schema.Number]>;
|
|
65
|
+
readonly updated_at: Schema.Union<readonly [Schema.Date, Schema.String, Schema.Number]>;
|
|
66
|
+
}>;
|
|
67
|
+
export declare const SkillDefinitionRevisionRow: Schema.Struct<{
|
|
68
|
+
readonly skill_definition_id: Schema.String;
|
|
69
|
+
readonly revision: Schema.Number;
|
|
70
|
+
readonly definition_json: Schema.Unknown;
|
|
71
|
+
readonly created_at: Schema.Union<readonly [Schema.Date, Schema.String, Schema.Number]>;
|
|
72
|
+
}>;
|
|
73
|
+
export declare const ExecutionSkillPinRow: Schema.Struct<{
|
|
74
|
+
readonly execution_id: Schema.String;
|
|
75
|
+
readonly skill_definition_id: Schema.String;
|
|
76
|
+
readonly skill_definition_revision: Schema.Number;
|
|
77
|
+
readonly skill_definition_snapshot_json: Schema.Unknown;
|
|
78
|
+
readonly created_at: Schema.Union<readonly [Schema.Date, Schema.String, Schema.Number]>;
|
|
79
|
+
}>;
|
|
80
|
+
export declare const layer: Layer.Layer<Service, never, SqlClient.SqlClient>;
|
|
61
81
|
export declare const memoryLayer: Layer.Layer<Service, never, never>;
|
|
62
82
|
export declare const testLayer: (implementation: Interface) => Layer.Layer<Service, never, never>;
|
|
63
83
|
export declare const put: (input: PutSkillDefinitionInput) => Effect.Effect<SkillDefinitionRecord, SkillDefinitionRepositoryError, Service>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Ids, Shared, Workspace } from "../../schema/index";
|
|
2
2
|
import { Context, Effect, Layer, Schema } from "effect";
|
|
3
|
-
import * as
|
|
3
|
+
import * as SqlClient from "effect/unstable/sql/SqlClient";
|
|
4
4
|
declare const WorkspaceLeaseRepositoryError_base: Schema.Class<WorkspaceLeaseRepositoryError, Schema.TaggedStruct<"WorkspaceLeaseRepositoryError", {
|
|
5
5
|
readonly message: Schema.String;
|
|
6
6
|
}>, import("effect/Cause").YieldableError>;
|
|
@@ -73,7 +73,30 @@ export interface Interface {
|
|
|
73
73
|
declare const Service_base: Context.ServiceClass<Service, "@relayfx/store-sql/WorkspaceLeaseRepository", Interface>;
|
|
74
74
|
export declare class Service extends Service_base {
|
|
75
75
|
}
|
|
76
|
-
export declare const
|
|
76
|
+
export declare const WorkspaceLeaseRow: Schema.Struct<{
|
|
77
|
+
readonly id: Schema.String;
|
|
78
|
+
readonly execution_id: Schema.String;
|
|
79
|
+
readonly provider_key: Schema.String;
|
|
80
|
+
readonly sandbox_ref: Schema.NullishOr<Schema.String>;
|
|
81
|
+
readonly latest_snapshot_ref: Schema.NullishOr<Schema.String>;
|
|
82
|
+
readonly status: Schema.String;
|
|
83
|
+
readonly resume_strategy: Schema.String;
|
|
84
|
+
readonly region: Schema.NullishOr<Schema.String>;
|
|
85
|
+
readonly request_json: Schema.NullishOr<Schema.Unknown>;
|
|
86
|
+
readonly metadata_json: Schema.Unknown;
|
|
87
|
+
readonly created_at: Schema.Union<readonly [Schema.Date, Schema.String, Schema.Number]>;
|
|
88
|
+
readonly updated_at: Schema.Union<readonly [Schema.Date, Schema.String, Schema.Number]>;
|
|
89
|
+
}>;
|
|
90
|
+
export declare const WorkspaceSnapshotRow: Schema.Struct<{
|
|
91
|
+
readonly id: Schema.String;
|
|
92
|
+
readonly lease_id: Schema.String;
|
|
93
|
+
readonly execution_id: Schema.String;
|
|
94
|
+
readonly reason: Schema.String;
|
|
95
|
+
readonly snapshot_ref: Schema.String;
|
|
96
|
+
readonly metadata_json: Schema.Unknown;
|
|
97
|
+
readonly created_at: Schema.Union<readonly [Schema.Date, Schema.String, Schema.Number]>;
|
|
98
|
+
}>;
|
|
99
|
+
export declare const layer: Layer.Layer<Service, never, SqlClient.SqlClient>;
|
|
77
100
|
export declare const memoryLayer: Layer.Layer<Service, never, never>;
|
|
78
101
|
export declare const testLayer: (implementation: Interface) => Layer.Layer<Service, never, never>;
|
|
79
102
|
export declare const plan: (input: PlanInput) => Effect.Effect<Workspace.WorkspaceLeaseRecord, WorkspaceLeaseRepositoryError | DuplicateWorkspaceLease, Service>;
|