@relayfx/sdk 0.0.39 → 0.0.40

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.
Files changed (70) hide show
  1. package/dist/index.js +1185 -1086
  2. package/dist/migrations/20260709030349_agent_id_rename/migration.sql +8 -0
  3. package/dist/migrations/20260709030349_agent_id_rename/snapshot.json +4883 -0
  4. package/dist/migrations/mysql/0001_baseline.sql +8 -8
  5. package/dist/migrations/pg/20260709030349_agent_id_rename/migration.sql +8 -0
  6. package/dist/migrations/pg/20260709030349_agent_id_rename/snapshot.json +4883 -0
  7. package/dist/migrations/sqlite/0001_baseline.sql +8 -8
  8. package/dist/types/ai/embedding-model/embedding-model-registration.d.ts +2 -4
  9. package/dist/types/relay/adapter-outbox.d.ts +11 -11
  10. package/dist/types/relay/client.d.ts +50 -163
  11. package/dist/types/relay/database.d.ts +11 -10
  12. package/dist/types/relay/operation.d.ts +7 -7
  13. package/dist/types/runtime/address/address-resolution-service.d.ts +7 -7
  14. package/dist/types/runtime/agent/agent-loop-service.d.ts +15 -15
  15. package/dist/types/runtime/agent/prompt-assembler-service.d.ts +6 -44
  16. package/dist/types/runtime/agent/relay-approvals.d.ts +0 -19
  17. package/dist/types/runtime/agent/relay-instructions.d.ts +0 -15
  18. package/dist/types/runtime/agent/relay-permissions.d.ts +4 -4
  19. package/dist/types/runtime/agent/relay-steering.d.ts +2 -2
  20. package/dist/types/runtime/agent/relay-tool-executor.d.ts +5 -21
  21. package/dist/types/runtime/agent/relay-tool-output.d.ts +5 -5
  22. package/dist/types/runtime/agent/sequence-allocator.d.ts +0 -19
  23. package/dist/types/runtime/child/child-run-service.d.ts +2 -2
  24. package/dist/types/runtime/child/parent-notifier-service.d.ts +4 -4
  25. package/dist/types/runtime/child/spawn-child-run-tool.d.ts +14 -14
  26. package/dist/types/runtime/cluster/execution-entity.d.ts +25 -25
  27. package/dist/types/runtime/content/artifact-store-service.d.ts +0 -47
  28. package/dist/types/runtime/content/blob-store-service.d.ts +0 -33
  29. package/dist/types/runtime/envelope/envelope-service.d.ts +4 -4
  30. package/dist/types/runtime/execution/event-log-service.d.ts +0 -5
  31. package/dist/types/runtime/execution/execution-service.d.ts +9 -8
  32. package/dist/types/runtime/memory/memory-service.d.ts +5 -4
  33. package/dist/types/runtime/model/embedding-model-service.d.ts +3 -3
  34. package/dist/types/runtime/model/language-model-service.d.ts +0 -30
  35. package/dist/types/runtime/model/model-call-policy.d.ts +0 -58
  36. package/dist/types/runtime/runner/runner-runtime-service.d.ts +63 -74
  37. package/dist/types/runtime/schedule/scheduler-service.d.ts +5 -5
  38. package/dist/types/runtime/schema-registry/schema-registry-service.d.ts +0 -40
  39. package/dist/types/runtime/tool/tool-runtime-service.d.ts +6 -6
  40. package/dist/types/runtime/wait/wait-service.d.ts +2 -2
  41. package/dist/types/runtime/wait/wait-signal.d.ts +3 -3
  42. package/dist/types/runtime/workflow/execution-workflow.d.ts +15 -20
  43. package/dist/types/runtime/workspace/workspace-planner-service.d.ts +16 -15
  44. package/dist/types/runtime/workspace/workspace-runtime-service.d.ts +4 -4
  45. package/dist/types/schema/agent-schema.d.ts +0 -8
  46. package/dist/types/schema/execution-schema.d.ts +4 -4
  47. package/dist/types/store-sql/address/address-book-repository.d.ts +2 -2
  48. package/dist/types/store-sql/agent/agent-definition-repository.d.ts +3 -3
  49. package/dist/types/store-sql/chat/agent-chat-repository.d.ts +2 -2
  50. package/dist/types/store-sql/child/child-execution-repository.d.ts +2 -2
  51. package/dist/types/store-sql/cluster/cluster-registry-repository.d.ts +2 -2
  52. package/dist/types/store-sql/compaction/compaction-repository.d.ts +2 -2
  53. package/dist/types/store-sql/database/database-service.d.ts +11 -12
  54. package/dist/types/store-sql/database/notification-bus.d.ts +3 -3
  55. package/dist/types/store-sql/envelope/envelope-repository.d.ts +2 -2
  56. package/dist/types/store-sql/execution/execution-event-repository.d.ts +4 -4
  57. package/dist/types/store-sql/execution/execution-repository.d.ts +12 -12
  58. package/dist/types/store-sql/idempotency/idempotency-repository.d.ts +3 -3
  59. package/dist/types/store-sql/memory/memory-repository.d.ts +5 -5
  60. package/dist/types/store-sql/permission/permission-rule-repository.d.ts +2 -2
  61. package/dist/types/store-sql/schedule/schedule-repository.d.ts +2 -2
  62. package/dist/types/store-sql/schema/relay-schema.d.ts +21 -21
  63. package/dist/types/store-sql/session/context-epoch-repository.d.ts +2 -2
  64. package/dist/types/store-sql/session/session-repository.d.ts +6 -6
  65. package/dist/types/store-sql/skill/skill-definition-repository.d.ts +2 -2
  66. package/dist/types/store-sql/steering/steering-repository.d.ts +2 -2
  67. package/dist/types/store-sql/tenant/tenant-id.d.ts +3 -1
  68. package/dist/types/store-sql/tool/tool-call-repository.d.ts +2 -2
  69. package/dist/types/store-sql/workspace/workspace-lease-repository.d.ts +2 -2
  70. package/package.json +3 -14
@@ -1,28 +1,17 @@
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
+ import { SqlClient } from "effect/unstable/sql/SqlClient";
5
5
  import { WorkflowEngine } from "effect/unstable/workflow";
6
- import * as AgentRegistry from "../agent/agent-registry-service";
7
- import * as AgentLoop from "../agent/agent-loop-service";
8
- import * as AddressBook from "../address/address-book-service";
9
- import * as AddressResolution from "../address/address-resolution-service";
10
- import * as ArtifactStore from "../content/artifact-store-service";
11
- import * as BlobStore from "../content/blob-store-service";
12
- import * as ChildRunService from "../child/child-run-service";
13
- import * as EventLog from "../execution/event-log-service";
14
- import * as ExecutionService from "../execution/execution-service";
15
- import * as EmbeddingModelService from "../model/embedding-model-service";
16
- import * as LanguageModelService from "../model/language-model-service";
17
- import * as ModelCallPolicy from "../model/model-call-policy";
18
- import * as ParentNotifier from "../child/parent-notifier-service";
19
- import * as PromptAssembler from "../agent/prompt-assembler-service";
20
- import * as SchedulerService from "../schedule/scheduler-service";
21
- import * as SchemaRegistry from "../schema-registry/schema-registry-service";
22
- import * as SkillRegistry from "../skill/skill-registry-service";
23
- import * as ToolRuntime from "../tool/tool-runtime-service";
24
- import * as WaitService from "../wait/wait-service";
25
- import * as WorkspacePlanner from "../workspace/workspace-planner-service";
6
+ import { Service as ArtifactStoreService } from "../content/artifact-store-service";
7
+ import { Service as BlobStoreService } from "../content/blob-store-service";
8
+ import { Service as EmbeddingModelServiceService } from "../model/embedding-model-service";
9
+ import { Service as LanguageModelServiceService } from "../model/language-model-service";
10
+ import { Service as ParentNotifierService } from "../child/parent-notifier-service";
11
+ import { Service as PromptAssemblerService } from "../agent/prompt-assembler-service";
12
+ import { Service as SchedulerServiceService } from "../schedule/scheduler-service";
13
+ import { Service as SchemaRegistryService } from "../schema-registry/schema-registry-service";
14
+ import { Service as ToolRuntimeService } from "../tool/tool-runtime-service";
26
15
  export declare const DatabaseMode: Schema.Literals<readonly ["sql", "pg", "mysql", "sqlite", "memory"]>;
27
16
  export type DatabaseMode = typeof DatabaseMode.Type;
28
17
  export declare const ReadinessStatus: Schema.Struct<{
@@ -71,8 +60,8 @@ export declare const clusterLayerHttp: (options: {
71
60
  readonly runnerHost: string;
72
61
  readonly rpcPort: number;
73
62
  readonly assignedShardGroups: ReadonlyArray<string>;
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>;
63
+ } & ClusterHttpTuning) => Layer.Layer<ShardingConfig.ShardingConfig | Sharding.Sharding | Runners.Runners | MessageStorage.MessageStorage, ClusterConfigMismatch, SqlClient | import("effect/unstable/http/HttpServer").HttpServer>;
64
+ export declare const clusterLayerHttpClientOnly: (options?: ClusterHttpTuning) => Layer.Layer<ShardingConfig.ShardingConfig | Sharding.Sharding | Runners.Runners | MessageStorage.MessageStorage, never, SqlClient>;
76
65
  export declare const assertClusterConfig: (expected: {
77
66
  readonly shardsPerGroup: number;
78
67
  readonly availableShardGroups: ReadonlyArray<string>;
@@ -82,76 +71,76 @@ export declare const layerWith: <CheckError, CheckIn, ClusterOut, ClusterError,
82
71
  readonly clusterLayer: Layer.Layer<ClusterOut, ClusterError, ClusterIn>;
83
72
  readonly repositoryLayer: Layer.Layer<RepositoryOut, RepositoryError, RepositoryIn>;
84
73
  readonly languageModelLayer: Layer.Layer<LanguageModelOut, LanguageModelError, LanguageModelIn>;
85
- readonly embeddingModelLayer?: Layer.Layer<EmbeddingModelService.Service, EmbeddingModelError, EmbeddingModelIn> | undefined;
86
- readonly toolRuntimeLayer: Layer.Layer<ToolRuntime.Service, ToolRuntimeError, ToolRuntimeIn>;
87
- readonly schedulerLayer: Layer.Layer<SchedulerService.Service, SchedulerError, SchedulerIn>;
88
- readonly promptAssemblerLayer?: Layer.Layer<PromptAssembler.Service> | undefined;
89
- readonly blobStoreLayer?: Layer.Layer<BlobStore.Service> | undefined;
90
- readonly artifactStoreLayer?: Layer.Layer<ArtifactStore.Service> | undefined;
91
- readonly schemaRegistryLayer?: Layer.Layer<SchemaRegistry.Service> | undefined;
92
- }) => Layer.Layer<AddressBook.Service | EventLog.Service | WaitService.Service | ToolRuntime.Service | AgentRegistry.Service | AddressResolution.Service | ChildRunService.Service | ModelCallPolicy.Service | SchemaRegistry.Service | BlobStore.Service | ArtifactStore.Service | PromptAssembler.Service | AgentLoop.Service | ParentNotifier.Service | SkillRegistry.Service | ExecutionService.Service | WorkspacePlanner.Service | WorkflowEngine.WorkflowEngine | SchedulerService.Service | Service | ClusterOut | RepositoryOut | LanguageModelOut, CheckError | ClusterError | RepositoryError | LanguageModelError | ToolRuntimeError | SchedulerError, Exclude<Exclude<RepositoryIn, BlobStore.Service>, ArtifactStore.Service> | Exclude<Exclude<Exclude<LanguageModelIn, RepositoryOut>, BlobStore.Service>, ArtifactStore.Service> | Exclude<Exclude<Exclude<Exclude<ClusterIn, SchemaRegistry.Service | BlobStore.Service | ArtifactStore.Service | PromptAssembler.Service | LanguageModelOut>, RepositoryOut>, BlobStore.Service>, ArtifactStore.Service> | Exclude<Exclude<Exclude<Exclude<Sharding.Sharding, ClusterOut>, RepositoryOut>, BlobStore.Service>, ArtifactStore.Service> | Exclude<Exclude<Exclude<Exclude<MessageStorage.MessageStorage, ClusterOut>, RepositoryOut>, BlobStore.Service>, ArtifactStore.Service> | Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<LanguageModelIn, never>, WorkflowEngine.WorkflowEngine>, ClusterOut>, RepositoryOut>, BlobStore.Service>, ArtifactStore.Service> | Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<AddressBookRepository.Service, LanguageModelOut>, never>, WorkflowEngine.WorkflowEngine>, ClusterOut>, RepositoryOut>, BlobStore.Service>, ArtifactStore.Service> | Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<AgentChatRepository.Service, LanguageModelOut>, never>, WorkflowEngine.WorkflowEngine>, ClusterOut>, RepositoryOut>, BlobStore.Service>, ArtifactStore.Service> | Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<AgentDefinitionRepository.Service, LanguageModelOut>, never>, WorkflowEngine.WorkflowEngine>, ClusterOut>, RepositoryOut>, BlobStore.Service>, ArtifactStore.Service> | Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<ChildExecutionRepository.Service, LanguageModelOut>, never>, WorkflowEngine.WorkflowEngine>, ClusterOut>, RepositoryOut>, BlobStore.Service>, ArtifactStore.Service> | Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<EnvelopeRepository.Service, LanguageModelOut>, never>, WorkflowEngine.WorkflowEngine>, ClusterOut>, RepositoryOut>, BlobStore.Service>, ArtifactStore.Service> | Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<ExecutionEventRepository.Service, LanguageModelOut>, never>, WorkflowEngine.WorkflowEngine>, ClusterOut>, RepositoryOut>, BlobStore.Service>, ArtifactStore.Service> | Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<ExecutionRepository.Service, LanguageModelOut>, never>, WorkflowEngine.WorkflowEngine>, ClusterOut>, RepositoryOut>, BlobStore.Service>, ArtifactStore.Service> | Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<ScheduleRepository.Service, LanguageModelOut>, never>, WorkflowEngine.WorkflowEngine>, ClusterOut>, RepositoryOut>, BlobStore.Service>, ArtifactStore.Service> | Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<SkillDefinitionRepository.Service, LanguageModelOut>, never>, WorkflowEngine.WorkflowEngine>, ClusterOut>, RepositoryOut>, BlobStore.Service>, ArtifactStore.Service> | Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<WorkspaceLeaseRepository.Service, LanguageModelOut>, never>, WorkflowEngine.WorkflowEngine>, ClusterOut>, RepositoryOut>, BlobStore.Service>, ArtifactStore.Service> | Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<LanguageModelService.Service, LanguageModelOut>, never>, WorkflowEngine.WorkflowEngine>, ClusterOut>, RepositoryOut>, BlobStore.Service>, ArtifactStore.Service> | Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<ShardingConfig.ShardingConfig, LanguageModelOut>, never>, WorkflowEngine.WorkflowEngine>, ClusterOut>, RepositoryOut>, BlobStore.Service>, ArtifactStore.Service> | Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<WorkflowEngine.WorkflowEngine, LanguageModelOut>, never>, WorkflowEngine.WorkflowEngine>, ClusterOut>, RepositoryOut>, BlobStore.Service>, ArtifactStore.Service> | Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Sharding.Sharding, LanguageModelOut>, never>, WorkflowEngine.WorkflowEngine>, ClusterOut>, RepositoryOut>, BlobStore.Service>, ArtifactStore.Service> | Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<CheckIn, LanguageModelOut>, never>, WorkflowEngine.WorkflowEngine>, ClusterOut>, RepositoryOut>, BlobStore.Service>, ArtifactStore.Service> | Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<ToolRuntimeIn, WaitService.Service>, EventLog.Service>, LanguageModelOut>, never>, WorkflowEngine.WorkflowEngine>, ClusterOut>, RepositoryOut>, 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>, LanguageModelOut>, never>, WorkflowEngine.WorkflowEngine>, ClusterOut>, RepositoryOut>, BlobStore.Service>, ArtifactStore.Service> | Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<SchedulerIn, AddressBook.Service | EventLog.Service | WaitService.Service | ToolRuntime.Service | AgentRegistry.Service | AddressResolution.Service | ChildRunService.Service | ModelCallPolicy.Service | SchemaRegistry.Service | PromptAssembler.Service | AgentLoop.Service | ParentNotifier.Service | SkillRegistry.Service | ExecutionService.Service | WorkspacePlanner.Service>, LanguageModelOut>, never>, WorkflowEngine.WorkflowEngine>, ClusterOut>, RepositoryOut>, BlobStore.Service>, ArtifactStore.Service>>;
74
+ readonly embeddingModelLayer?: Layer.Layer<EmbeddingModelServiceService, EmbeddingModelError, EmbeddingModelIn> | undefined;
75
+ readonly toolRuntimeLayer: Layer.Layer<ToolRuntimeService, ToolRuntimeError, ToolRuntimeIn>;
76
+ readonly schedulerLayer: Layer.Layer<SchedulerServiceService, SchedulerError, SchedulerIn>;
77
+ readonly promptAssemblerLayer?: Layer.Layer<PromptAssemblerService> | undefined;
78
+ readonly blobStoreLayer?: Layer.Layer<BlobStoreService> | undefined;
79
+ readonly artifactStoreLayer?: Layer.Layer<ArtifactStoreService> | undefined;
80
+ readonly schemaRegistryLayer?: Layer.Layer<SchemaRegistryService> | undefined;
81
+ }) => Layer.Layer<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 | SchemaRegistryService | BlobStoreService | ArtifactStoreService | PromptAssemblerService | import("../agent/agent-loop-service").Service | ParentNotifierService | import("../skill/skill-registry-service").Service | import("../execution/execution-service").Service | import("../workspace/workspace-planner-service").Service | WorkflowEngine.WorkflowEngine | SchedulerServiceService | Service | ClusterOut | RepositoryOut | LanguageModelOut, CheckError | ClusterError | RepositoryError | LanguageModelError | ToolRuntimeError | SchedulerError, Exclude<Exclude<RepositoryIn, BlobStoreService>, ArtifactStoreService> | Exclude<Exclude<Exclude<LanguageModelIn, RepositoryOut>, BlobStoreService>, ArtifactStoreService> | Exclude<Exclude<Exclude<Exclude<ClusterIn, SchemaRegistryService | BlobStoreService | ArtifactStoreService | PromptAssemblerService | LanguageModelOut>, RepositoryOut>, BlobStoreService>, ArtifactStoreService> | Exclude<Exclude<Exclude<Exclude<Sharding.Sharding, ClusterOut>, RepositoryOut>, BlobStoreService>, ArtifactStoreService> | Exclude<Exclude<Exclude<Exclude<MessageStorage.MessageStorage, ClusterOut>, RepositoryOut>, BlobStoreService>, ArtifactStoreService> | Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<LanguageModelIn, never>, WorkflowEngine.WorkflowEngine>, ClusterOut>, RepositoryOut>, BlobStoreService>, ArtifactStoreService> | Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<AddressBookRepository.Service, LanguageModelOut>, never>, WorkflowEngine.WorkflowEngine>, ClusterOut>, RepositoryOut>, BlobStoreService>, ArtifactStoreService> | Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<AgentChatRepository.Service, LanguageModelOut>, never>, WorkflowEngine.WorkflowEngine>, ClusterOut>, RepositoryOut>, BlobStoreService>, ArtifactStoreService> | Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<AgentDefinitionRepository.Service, LanguageModelOut>, never>, WorkflowEngine.WorkflowEngine>, ClusterOut>, RepositoryOut>, BlobStoreService>, ArtifactStoreService> | Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<ChildExecutionRepository.Service, LanguageModelOut>, never>, WorkflowEngine.WorkflowEngine>, ClusterOut>, RepositoryOut>, BlobStoreService>, ArtifactStoreService> | Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<EnvelopeRepository.Service, LanguageModelOut>, never>, WorkflowEngine.WorkflowEngine>, ClusterOut>, RepositoryOut>, BlobStoreService>, ArtifactStoreService> | Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<ExecutionEventRepository.Service, LanguageModelOut>, never>, WorkflowEngine.WorkflowEngine>, ClusterOut>, RepositoryOut>, BlobStoreService>, ArtifactStoreService> | Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<ExecutionRepository.Service, LanguageModelOut>, never>, WorkflowEngine.WorkflowEngine>, ClusterOut>, RepositoryOut>, BlobStoreService>, ArtifactStoreService> | Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<ScheduleRepository.Service, LanguageModelOut>, never>, WorkflowEngine.WorkflowEngine>, ClusterOut>, RepositoryOut>, BlobStoreService>, ArtifactStoreService> | Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<SkillDefinitionRepository.Service, LanguageModelOut>, never>, WorkflowEngine.WorkflowEngine>, ClusterOut>, RepositoryOut>, BlobStoreService>, ArtifactStoreService> | Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<WorkspaceLeaseRepository.Service, LanguageModelOut>, never>, WorkflowEngine.WorkflowEngine>, ClusterOut>, RepositoryOut>, BlobStoreService>, ArtifactStoreService> | Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<LanguageModelServiceService, LanguageModelOut>, never>, WorkflowEngine.WorkflowEngine>, ClusterOut>, RepositoryOut>, BlobStoreService>, ArtifactStoreService> | Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<ShardingConfig.ShardingConfig, LanguageModelOut>, never>, WorkflowEngine.WorkflowEngine>, ClusterOut>, RepositoryOut>, BlobStoreService>, ArtifactStoreService> | Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<WorkflowEngine.WorkflowEngine, LanguageModelOut>, never>, WorkflowEngine.WorkflowEngine>, ClusterOut>, RepositoryOut>, BlobStoreService>, ArtifactStoreService> | Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Sharding.Sharding, LanguageModelOut>, never>, WorkflowEngine.WorkflowEngine>, ClusterOut>, RepositoryOut>, BlobStoreService>, ArtifactStoreService> | Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<CheckIn, LanguageModelOut>, never>, WorkflowEngine.WorkflowEngine>, ClusterOut>, RepositoryOut>, BlobStoreService>, ArtifactStoreService> | Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<ToolRuntimeIn, import("../wait/wait-service").Service>, import("../execution/event-log-service").Service>, LanguageModelOut>, never>, WorkflowEngine.WorkflowEngine>, ClusterOut>, RepositoryOut>, BlobStoreService>, ArtifactStoreService> | 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("../wait/wait-service").Service>, import("../execution/event-log-service").Service>, LanguageModelOut>, never>, WorkflowEngine.WorkflowEngine>, ClusterOut>, RepositoryOut>, BlobStoreService>, ArtifactStoreService> | Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<SchedulerIn, 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 | SchemaRegistryService | PromptAssemblerService | import("../agent/agent-loop-service").Service | ParentNotifierService | import("../skill/skill-registry-service").Service | import("../execution/execution-service").Service | import("../workspace/workspace-planner-service").Service>, LanguageModelOut>, never>, WorkflowEngine.WorkflowEngine>, ClusterOut>, RepositoryOut>, BlobStoreService>, ArtifactStoreService>>;
93
82
  export declare const layerWithClient: <CheckError, CheckIn, ClusterOut, ClusterError, ClusterIn, RepositoryOut, RepositoryError, RepositoryIn, LanguageModelOut, LanguageModelError, LanguageModelIn, EmbeddingModelError, EmbeddingModelIn, ToolRuntimeError, ToolRuntimeIn>(options: {
94
83
  readonly checkLayer: Layer.Layer<Service, CheckError, CheckIn>;
95
84
  readonly clusterLayer: Layer.Layer<ClusterOut, ClusterError, ClusterIn>;
96
85
  readonly repositoryLayer: Layer.Layer<RepositoryOut, RepositoryError, RepositoryIn>;
97
86
  readonly languageModelLayer: Layer.Layer<LanguageModelOut, LanguageModelError, LanguageModelIn>;
98
- readonly embeddingModelLayer?: Layer.Layer<EmbeddingModelService.Service, EmbeddingModelError, EmbeddingModelIn> | undefined;
99
- readonly toolRuntimeLayer: Layer.Layer<ToolRuntime.Service, ToolRuntimeError, ToolRuntimeIn>;
100
- readonly promptAssemblerLayer?: Layer.Layer<PromptAssembler.Service> | undefined;
101
- readonly blobStoreLayer?: Layer.Layer<BlobStore.Service> | undefined;
102
- readonly artifactStoreLayer?: Layer.Layer<ArtifactStore.Service> | undefined;
103
- readonly schemaRegistryLayer?: Layer.Layer<SchemaRegistry.Service> | undefined;
104
- }) => Layer.Layer<AddressBook.Service | EventLog.Service | WaitService.Service | ToolRuntime.Service | AgentRegistry.Service | AddressResolution.Service | ChildRunService.Service | ModelCallPolicy.Service | SchemaRegistry.Service | BlobStore.Service | ArtifactStore.Service | PromptAssembler.Service | AgentLoop.Service | ParentNotifier.Service | SkillRegistry.Service | ExecutionService.Service | WorkspacePlanner.Service | Service | ClusterOut | RepositoryOut | LanguageModelOut, CheckError | ClusterError | RepositoryError | LanguageModelError | ToolRuntimeError, Exclude<Exclude<RepositoryIn, BlobStore.Service>, ArtifactStore.Service> | Exclude<Exclude<Exclude<ClusterIn, RepositoryOut>, BlobStore.Service>, ArtifactStore.Service> | Exclude<Exclude<Exclude<Exclude<Exclude<LanguageModelIn, never>, ClusterOut>, RepositoryOut>, BlobStore.Service>, ArtifactStore.Service> | Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<AddressBookRepository.Service, LanguageModelOut>, never>, ClusterOut>, RepositoryOut>, BlobStore.Service>, ArtifactStore.Service> | Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<AgentChatRepository.Service, LanguageModelOut>, never>, ClusterOut>, RepositoryOut>, BlobStore.Service>, ArtifactStore.Service> | Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<AgentDefinitionRepository.Service, LanguageModelOut>, never>, ClusterOut>, RepositoryOut>, BlobStore.Service>, ArtifactStore.Service> | Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<ChildExecutionRepository.Service, LanguageModelOut>, never>, ClusterOut>, RepositoryOut>, BlobStore.Service>, ArtifactStore.Service> | Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<EnvelopeRepository.Service, LanguageModelOut>, never>, ClusterOut>, RepositoryOut>, BlobStore.Service>, ArtifactStore.Service> | Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<ExecutionEventRepository.Service, LanguageModelOut>, never>, ClusterOut>, RepositoryOut>, BlobStore.Service>, ArtifactStore.Service> | Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<ExecutionRepository.Service, LanguageModelOut>, never>, ClusterOut>, RepositoryOut>, BlobStore.Service>, ArtifactStore.Service> | Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<ScheduleRepository.Service, LanguageModelOut>, never>, ClusterOut>, RepositoryOut>, BlobStore.Service>, ArtifactStore.Service> | Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<SkillDefinitionRepository.Service, LanguageModelOut>, never>, ClusterOut>, RepositoryOut>, BlobStore.Service>, ArtifactStore.Service> | Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<WorkspaceLeaseRepository.Service, LanguageModelOut>, never>, ClusterOut>, RepositoryOut>, BlobStore.Service>, ArtifactStore.Service> | Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<LanguageModelService.Service, LanguageModelOut>, never>, ClusterOut>, RepositoryOut>, BlobStore.Service>, ArtifactStore.Service> | Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<ShardingConfig.ShardingConfig, LanguageModelOut>, never>, ClusterOut>, RepositoryOut>, BlobStore.Service>, ArtifactStore.Service> | Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Sharding.Sharding, LanguageModelOut>, never>, ClusterOut>, RepositoryOut>, BlobStore.Service>, ArtifactStore.Service> | Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<CheckIn, LanguageModelOut>, never>, ClusterOut>, RepositoryOut>, BlobStore.Service>, ArtifactStore.Service> | Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<ToolRuntimeIn, WaitService.Service>, EventLog.Service>, LanguageModelOut>, never>, ClusterOut>, RepositoryOut>, 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>, LanguageModelOut>, never>, ClusterOut>, RepositoryOut>, BlobStore.Service>, ArtifactStore.Service>>;
87
+ readonly embeddingModelLayer?: Layer.Layer<EmbeddingModelServiceService, EmbeddingModelError, EmbeddingModelIn> | undefined;
88
+ readonly toolRuntimeLayer: Layer.Layer<ToolRuntimeService, ToolRuntimeError, ToolRuntimeIn>;
89
+ readonly promptAssemblerLayer?: Layer.Layer<PromptAssemblerService> | undefined;
90
+ readonly blobStoreLayer?: Layer.Layer<BlobStoreService> | undefined;
91
+ readonly artifactStoreLayer?: Layer.Layer<ArtifactStoreService> | undefined;
92
+ readonly schemaRegistryLayer?: Layer.Layer<SchemaRegistryService> | undefined;
93
+ }) => Layer.Layer<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 | SchemaRegistryService | BlobStoreService | ArtifactStoreService | PromptAssemblerService | import("../agent/agent-loop-service").Service | ParentNotifierService | import("../skill/skill-registry-service").Service | import("../execution/execution-service").Service | import("../workspace/workspace-planner-service").Service | Service | ClusterOut | RepositoryOut | LanguageModelOut, CheckError | ClusterError | RepositoryError | LanguageModelError | ToolRuntimeError, 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<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<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<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<ShardingConfig.ShardingConfig, 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<CheckIn, LanguageModelOut>, never>, ClusterOut>, RepositoryOut>, BlobStoreService>, ArtifactStoreService> | Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<ToolRuntimeIn, 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<ToolRuntimeIn, import("../child/child-run-service").Service>, import("../model/model-call-policy").Service>, PromptAssemblerService>, SchemaRegistryService>, import("../wait/wait-service").Service>, import("../execution/event-log-service").Service>, LanguageModelOut>, never>, ClusterOut>, RepositoryOut>, BlobStoreService>, ArtifactStoreService>>;
105
94
  export declare const layerWithServices: <DatabaseError, DatabaseIn, LanguageModelError, LanguageModelIn, EmbeddingModelError, EmbeddingModelIn, ToolRuntimeError, ToolRuntimeIn>(options: {
106
95
  readonly databaseLayer?: Layer.Layer<Database.Service, DatabaseError, DatabaseIn> | undefined;
107
- readonly languageModelLayer: Layer.Layer<LanguageModelService.Service, LanguageModelError, LanguageModelIn>;
108
- readonly embeddingModelLayer?: Layer.Layer<EmbeddingModelService.Service, EmbeddingModelError, EmbeddingModelIn> | undefined;
109
- readonly toolRuntimeLayer: Layer.Layer<ToolRuntime.Service, ToolRuntimeError, ToolRuntimeIn>;
110
- readonly promptAssemblerLayer?: Layer.Layer<PromptAssembler.Service> | undefined;
111
- readonly blobStoreLayer?: Layer.Layer<BlobStore.Service> | undefined;
112
- readonly artifactStoreLayer?: Layer.Layer<ArtifactStore.Service> | undefined;
113
- readonly schemaRegistryLayer?: Layer.Layer<SchemaRegistry.Service> | undefined;
114
- }) => Layer.Layer<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, 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>, 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>, 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>, 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>>;
96
+ readonly languageModelLayer: Layer.Layer<LanguageModelServiceService, LanguageModelError, LanguageModelIn>;
97
+ readonly embeddingModelLayer?: Layer.Layer<EmbeddingModelServiceService, EmbeddingModelError, EmbeddingModelIn> | undefined;
98
+ readonly toolRuntimeLayer: Layer.Layer<ToolRuntimeService, ToolRuntimeError, ToolRuntimeIn>;
99
+ readonly promptAssemblerLayer?: Layer.Layer<PromptAssemblerService> | undefined;
100
+ readonly blobStoreLayer?: Layer.Layer<BlobStoreService> | undefined;
101
+ readonly artifactStoreLayer?: Layer.Layer<ArtifactStoreService> | undefined;
102
+ readonly schemaRegistryLayer?: Layer.Layer<SchemaRegistryService> | undefined;
103
+ }) => Layer.Layer<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 | 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 | SchemaRegistryService | BlobStoreService | ArtifactStoreService | PromptAssemblerService | import("../agent/agent-loop-service").Service | ParentNotifierService | import("../skill/skill-registry-service").Service | import("../execution/execution-service").Service | ShardingConfig.ShardingConfig | import("../workspace/workspace-planner-service").Service | WorkflowEngine.WorkflowEngine | Sharding.Sharding | SchedulerServiceService | Service | Runners.Runners | MessageStorage.MessageStorage, Config.ConfigError | ClusterConfigMismatch | DatabaseError | LanguageModelError | ToolRuntimeError, SqlClient | Exclude<Exclude<DatabaseIn, BlobStoreService>, ArtifactStoreService> | Exclude<Exclude<Exclude<LanguageModelIn, 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>, BlobStoreService>, ArtifactStoreService> | Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<LanguageModelIn, never>, WorkflowEngine.WorkflowEngine>, ShardingConfig.ShardingConfig | Sharding.Sharding | Runners.Runners | MessageStorage.MessageStorage>, 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>, BlobStoreService>, ArtifactStoreService> | Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<ToolRuntimeIn, import("../wait/wait-service").Service>, import("../execution/event-log-service").Service>, LanguageModelServiceService>, never>, WorkflowEngine.WorkflowEngine>, ShardingConfig.ShardingConfig | Sharding.Sharding | Runners.Runners | MessageStorage.MessageStorage>, 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>, BlobStoreService>, ArtifactStoreService> | 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("../wait/wait-service").Service>, import("../execution/event-log-service").Service>, LanguageModelServiceService>, never>, WorkflowEngine.WorkflowEngine>, ShardingConfig.ShardingConfig | Sharding.Sharding | Runners.Runners | MessageStorage.MessageStorage>, 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>, BlobStoreService>, ArtifactStoreService>>;
115
104
  export declare const layerWithServicesMultiNode: <DatabaseError, DatabaseIn, LanguageModelError, LanguageModelIn, EmbeddingModelError, EmbeddingModelIn, ToolRuntimeError, ToolRuntimeIn>(options: {
116
105
  readonly databaseLayer?: Layer.Layer<Database.Service, DatabaseError, DatabaseIn> | undefined;
117
- readonly languageModelLayer: Layer.Layer<LanguageModelService.Service, LanguageModelError, LanguageModelIn>;
118
- readonly embeddingModelLayer?: Layer.Layer<EmbeddingModelService.Service, EmbeddingModelError, EmbeddingModelIn> | undefined;
119
- readonly toolRuntimeLayer: Layer.Layer<ToolRuntime.Service, ToolRuntimeError, ToolRuntimeIn>;
120
- readonly promptAssemblerLayer?: Layer.Layer<PromptAssembler.Service> | undefined;
121
- readonly blobStoreLayer?: Layer.Layer<BlobStore.Service> | undefined;
122
- readonly artifactStoreLayer?: Layer.Layer<ArtifactStore.Service> | undefined;
123
- readonly schemaRegistryLayer?: Layer.Layer<SchemaRegistry.Service> | undefined;
106
+ readonly languageModelLayer: Layer.Layer<LanguageModelServiceService, LanguageModelError, LanguageModelIn>;
107
+ readonly embeddingModelLayer?: Layer.Layer<EmbeddingModelServiceService, EmbeddingModelError, EmbeddingModelIn> | undefined;
108
+ readonly toolRuntimeLayer: Layer.Layer<ToolRuntimeService, ToolRuntimeError, ToolRuntimeIn>;
109
+ readonly promptAssemblerLayer?: Layer.Layer<PromptAssemblerService> | undefined;
110
+ readonly blobStoreLayer?: Layer.Layer<BlobStoreService> | undefined;
111
+ readonly artifactStoreLayer?: Layer.Layer<ArtifactStoreService> | undefined;
112
+ readonly schemaRegistryLayer?: Layer.Layer<SchemaRegistryService> | undefined;
124
113
  readonly cluster: {
125
114
  readonly runnerHost: string;
126
115
  readonly rpcPort: number;
127
116
  readonly assignedShardGroups: ReadonlyArray<string>;
128
117
  } & ClusterHttpTuning;
129
- }) => Layer.Layer<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, 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>, 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>, 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>, 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>>;
118
+ }) => Layer.Layer<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 | 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 | SchemaRegistryService | BlobStoreService | ArtifactStoreService | PromptAssemblerService | import("../agent/agent-loop-service").Service | ParentNotifierService | import("../skill/skill-registry-service").Service | import("../execution/execution-service").Service | ShardingConfig.ShardingConfig | import("../workspace/workspace-planner-service").Service | WorkflowEngine.WorkflowEngine | Sharding.Sharding | SchedulerServiceService | Service | Runners.Runners | MessageStorage.MessageStorage, Config.ConfigError | ClusterConfigMismatch | DatabaseError | LanguageModelError | ToolRuntimeError, SqlClient | import("effect/unstable/http/HttpServer").HttpServer | Exclude<Exclude<DatabaseIn, BlobStoreService>, ArtifactStoreService> | Exclude<Exclude<Exclude<LanguageModelIn, 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>, BlobStoreService>, ArtifactStoreService> | Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<LanguageModelIn, never>, WorkflowEngine.WorkflowEngine>, ShardingConfig.ShardingConfig | Sharding.Sharding | Runners.Runners | MessageStorage.MessageStorage>, 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>, BlobStoreService>, ArtifactStoreService> | Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<ToolRuntimeIn, import("../wait/wait-service").Service>, import("../execution/event-log-service").Service>, LanguageModelServiceService>, never>, WorkflowEngine.WorkflowEngine>, ShardingConfig.ShardingConfig | Sharding.Sharding | Runners.Runners | MessageStorage.MessageStorage>, 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>, BlobStoreService>, ArtifactStoreService> | 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("../wait/wait-service").Service>, import("../execution/event-log-service").Service>, LanguageModelServiceService>, never>, WorkflowEngine.WorkflowEngine>, ShardingConfig.ShardingConfig | Sharding.Sharding | Runners.Runners | MessageStorage.MessageStorage>, 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>, BlobStoreService>, ArtifactStoreService>>;
130
119
  export declare const layerWithServicesMultiNodeClientOnly: <DatabaseError, DatabaseIn, LanguageModelError, LanguageModelIn, EmbeddingModelError, EmbeddingModelIn, ToolRuntimeError, ToolRuntimeIn>(options: {
131
120
  readonly databaseLayer?: Layer.Layer<Database.Service, DatabaseError, DatabaseIn> | undefined;
132
- readonly languageModelLayer: Layer.Layer<LanguageModelService.Service, LanguageModelError, LanguageModelIn>;
133
- readonly embeddingModelLayer?: Layer.Layer<EmbeddingModelService.Service, EmbeddingModelError, EmbeddingModelIn> | undefined;
134
- readonly toolRuntimeLayer: Layer.Layer<ToolRuntime.Service, ToolRuntimeError, ToolRuntimeIn>;
135
- readonly promptAssemblerLayer?: Layer.Layer<PromptAssembler.Service> | undefined;
136
- readonly blobStoreLayer?: Layer.Layer<BlobStore.Service> | undefined;
137
- readonly artifactStoreLayer?: Layer.Layer<ArtifactStore.Service> | undefined;
138
- readonly schemaRegistryLayer?: Layer.Layer<SchemaRegistry.Service> | undefined;
121
+ readonly languageModelLayer: Layer.Layer<LanguageModelServiceService, LanguageModelError, LanguageModelIn>;
122
+ readonly embeddingModelLayer?: Layer.Layer<EmbeddingModelServiceService, EmbeddingModelError, EmbeddingModelIn> | undefined;
123
+ readonly toolRuntimeLayer: Layer.Layer<ToolRuntimeService, ToolRuntimeError, ToolRuntimeIn>;
124
+ readonly promptAssemblerLayer?: Layer.Layer<PromptAssemblerService> | undefined;
125
+ readonly blobStoreLayer?: Layer.Layer<BlobStoreService> | undefined;
126
+ readonly artifactStoreLayer?: Layer.Layer<ArtifactStoreService> | undefined;
127
+ readonly schemaRegistryLayer?: Layer.Layer<SchemaRegistryService> | undefined;
139
128
  readonly cluster?: ClusterHttpTuning | undefined;
140
- }) => Layer.Layer<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>, 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>, 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>, 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
+ }) => Layer.Layer<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 | 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 | SchemaRegistryService | BlobStoreService | ArtifactStoreService | PromptAssemblerService | import("../agent/agent-loop-service").Service | ParentNotifierService | import("../skill/skill-registry-service").Service | import("../execution/execution-service").Service | ShardingConfig.ShardingConfig | import("../workspace/workspace-planner-service").Service | Sharding.Sharding | Service | Runners.Runners | MessageStorage.MessageStorage, DatabaseError | LanguageModelError | ToolRuntimeError, SqlClient | Exclude<Exclude<DatabaseIn, BlobStoreService>, ArtifactStoreService> | Exclude<Exclude<Exclude<Exclude<Exclude<LanguageModelIn, never>, ShardingConfig.ShardingConfig | Sharding.Sharding | Runners.Runners | MessageStorage.MessageStorage>, 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>, BlobStoreService>, ArtifactStoreService> | Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<ToolRuntimeIn, import("../wait/wait-service").Service>, import("../execution/event-log-service").Service>, LanguageModelServiceService>, never>, ShardingConfig.ShardingConfig | Sharding.Sharding | Runners.Runners | MessageStorage.MessageStorage>, 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>, BlobStoreService>, ArtifactStoreService> | 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("../wait/wait-service").Service>, import("../execution/event-log-service").Service>, LanguageModelServiceService>, never>, ShardingConfig.ShardingConfig | Sharding.Sharding | Runners.Runners | MessageStorage.MessageStorage>, 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>, BlobStoreService>, ArtifactStoreService>>;
141
130
  export declare const layerWithLanguageModelService: <DatabaseError, DatabaseIn, LanguageModelError, LanguageModelIn>(options: {
142
131
  readonly databaseLayer?: Layer.Layer<Database.Service, DatabaseError, DatabaseIn> | undefined;
143
- readonly languageModelLayer: Layer.Layer<LanguageModelService.Service, LanguageModelError, LanguageModelIn>;
144
- }) => Layer.Layer<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, 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>, 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<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>;
132
+ readonly languageModelLayer: Layer.Layer<LanguageModelServiceService, LanguageModelError, LanguageModelIn>;
133
+ }) => Layer.Layer<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 | 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 | SchemaRegistryService | BlobStoreService | ArtifactStoreService | PromptAssemblerService | import("../agent/agent-loop-service").Service | ParentNotifierService | import("../skill/skill-registry-service").Service | import("../execution/execution-service").Service | ShardingConfig.ShardingConfig | import("../workspace/workspace-planner-service").Service | WorkflowEngine.WorkflowEngine | Sharding.Sharding | SchedulerServiceService | Service | Runners.Runners | MessageStorage.MessageStorage, Config.ConfigError | ClusterConfigMismatch | DatabaseError | LanguageModelError, SqlClient | Exclude<Exclude<DatabaseIn, BlobStoreService>, ArtifactStoreService> | Exclude<Exclude<Exclude<LanguageModelIn, 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>, BlobStoreService>, ArtifactStoreService> | Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<LanguageModelIn, never>, WorkflowEngine.WorkflowEngine>, ShardingConfig.ShardingConfig | Sharding.Sharding | Runners.Runners | MessageStorage.MessageStorage>, 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>, BlobStoreService>, ArtifactStoreService>>;
134
+ export declare const layer: Layer.Layer<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 | 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 | SchemaRegistryService | BlobStoreService | ArtifactStoreService | PromptAssemblerService | import("../agent/agent-loop-service").Service | ParentNotifierService | import("../skill/skill-registry-service").Service | import("../execution/execution-service").Service | ShardingConfig.ShardingConfig | import("../workspace/workspace-planner-service").Service | WorkflowEngine.WorkflowEngine | Sharding.Sharding | SchedulerServiceService | Service | Runners.Runners | MessageStorage.MessageStorage, Config.ConfigError | ClusterConfigMismatch, import("@effect/sql-pg/PgClient").PgClient | SqlClient>;
146
135
  export declare const testLayerWithServices: <LanguageModelError, LanguageModelIn, ToolRuntimeError, ToolRuntimeIn>(options: {
147
- readonly languageModelLayer: Layer.Layer<LanguageModelService.Service, LanguageModelError, LanguageModelIn>;
148
- readonly embeddingModelLayer?: Layer.Layer<EmbeddingModelService.Service> | undefined;
149
- readonly toolRuntimeLayer: Layer.Layer<ToolRuntime.Service, ToolRuntimeError, ToolRuntimeIn>;
150
- }) => Layer.Layer<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 | Crypto.Crypto | 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 | MessageStorage.MemoryDriver, Config.ConfigError | LanguageModelError | ToolRuntimeError, Exclude<Exclude<Exclude<Exclude<LanguageModelIn, 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>, Crypto.Crypto> | Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<LanguageModelIn, never>, WorkflowEngine.WorkflowEngine>, ShardingConfig.ShardingConfig | Sharding.Sharding | Runners.Runners | MessageStorage.MessageStorage | MessageStorage.MemoryDriver>, 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>, Crypto.Crypto> | Exclude<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 | MessageStorage.MemoryDriver>, 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>, Crypto.Crypto> | Exclude<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 | MessageStorage.MemoryDriver>, 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>, Crypto.Crypto>>;
151
- export declare const testLayerWithLanguageModelService: <LanguageModelError, LanguageModelIn>(languageModelLayer: Layer.Layer<LanguageModelService.Service, LanguageModelError, LanguageModelIn>) => Layer.Layer<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 | Crypto.Crypto | 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 | MessageStorage.MemoryDriver, Config.ConfigError | LanguageModelError, Exclude<Exclude<Exclude<Exclude<LanguageModelIn, 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>, Crypto.Crypto> | Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<LanguageModelIn, never>, WorkflowEngine.WorkflowEngine>, ShardingConfig.ShardingConfig | Sharding.Sharding | Runners.Runners | MessageStorage.MessageStorage | MessageStorage.MemoryDriver>, 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>, Crypto.Crypto>>;
152
- export declare const testLayer: Layer.Layer<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 | Crypto.Crypto | 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 | MessageStorage.MemoryDriver, Config.ConfigError, never>;
153
- export declare const testClientLayer: Layer.Layer<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 | Crypto.Crypto | 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 | MessageStorage.MemoryDriver, never, never>;
154
- export declare const testLayerWithDatabaseCheck: <DatabaseError, DatabaseIn>(databaseLayer: Layer.Layer<Database.Service, DatabaseError, DatabaseIn>) => Layer.Layer<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 | Crypto.Crypto | 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 | MessageStorage.MemoryDriver, Config.ConfigError | DatabaseError, Exclude<DatabaseIn, Crypto.Crypto>>;
155
- export declare const testClientLayerWithDatabaseCheck: <DatabaseError, DatabaseIn>(databaseLayer: Layer.Layer<Database.Service, DatabaseError, DatabaseIn>) => Layer.Layer<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 | Crypto.Crypto | 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 | MessageStorage.MemoryDriver, DatabaseError, Exclude<DatabaseIn, Crypto.Crypto>>;
136
+ readonly languageModelLayer: Layer.Layer<LanguageModelServiceService, LanguageModelError, LanguageModelIn>;
137
+ readonly embeddingModelLayer?: Layer.Layer<EmbeddingModelServiceService> | undefined;
138
+ readonly toolRuntimeLayer: Layer.Layer<ToolRuntimeService, ToolRuntimeError, ToolRuntimeIn>;
139
+ }) => Layer.Layer<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 | import("../address/address-book-service").Service | Crypto.Crypto | 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 | SchemaRegistryService | BlobStoreService | ArtifactStoreService | PromptAssemblerService | import("../agent/agent-loop-service").Service | ParentNotifierService | import("../skill/skill-registry-service").Service | import("../execution/execution-service").Service | ShardingConfig.ShardingConfig | import("../workspace/workspace-planner-service").Service | WorkflowEngine.WorkflowEngine | Sharding.Sharding | SchedulerServiceService | Service | Runners.Runners | MessageStorage.MessageStorage | MessageStorage.MemoryDriver, Config.ConfigError | LanguageModelError | ToolRuntimeError, Exclude<Exclude<Exclude<Exclude<LanguageModelIn, 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>, BlobStoreService>, ArtifactStoreService>, Crypto.Crypto> | Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<LanguageModelIn, never>, WorkflowEngine.WorkflowEngine>, ShardingConfig.ShardingConfig | Sharding.Sharding | Runners.Runners | MessageStorage.MessageStorage | MessageStorage.MemoryDriver>, 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>, BlobStoreService>, ArtifactStoreService>, Crypto.Crypto> | Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<ToolRuntimeIn, import("../wait/wait-service").Service>, import("../execution/event-log-service").Service>, LanguageModelServiceService>, never>, WorkflowEngine.WorkflowEngine>, ShardingConfig.ShardingConfig | Sharding.Sharding | Runners.Runners | MessageStorage.MessageStorage | MessageStorage.MemoryDriver>, 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>, BlobStoreService>, ArtifactStoreService>, Crypto.Crypto> | 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("../wait/wait-service").Service>, import("../execution/event-log-service").Service>, LanguageModelServiceService>, never>, WorkflowEngine.WorkflowEngine>, ShardingConfig.ShardingConfig | Sharding.Sharding | Runners.Runners | MessageStorage.MessageStorage | MessageStorage.MemoryDriver>, 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>, BlobStoreService>, ArtifactStoreService>, Crypto.Crypto>>;
140
+ export declare const testLayerWithLanguageModelService: <LanguageModelError, LanguageModelIn>(languageModelLayer: Layer.Layer<LanguageModelServiceService, LanguageModelError, LanguageModelIn>) => Layer.Layer<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 | import("../address/address-book-service").Service | Crypto.Crypto | 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 | SchemaRegistryService | BlobStoreService | ArtifactStoreService | PromptAssemblerService | import("../agent/agent-loop-service").Service | ParentNotifierService | import("../skill/skill-registry-service").Service | import("../execution/execution-service").Service | ShardingConfig.ShardingConfig | import("../workspace/workspace-planner-service").Service | WorkflowEngine.WorkflowEngine | Sharding.Sharding | SchedulerServiceService | Service | Runners.Runners | MessageStorage.MessageStorage | MessageStorage.MemoryDriver, Config.ConfigError | LanguageModelError, Exclude<Exclude<Exclude<Exclude<LanguageModelIn, 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>, BlobStoreService>, ArtifactStoreService>, Crypto.Crypto> | Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<LanguageModelIn, never>, WorkflowEngine.WorkflowEngine>, ShardingConfig.ShardingConfig | Sharding.Sharding | Runners.Runners | MessageStorage.MessageStorage | MessageStorage.MemoryDriver>, 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>, BlobStoreService>, ArtifactStoreService>, Crypto.Crypto>>;
141
+ export declare const testLayer: Layer.Layer<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 | import("../address/address-book-service").Service | Crypto.Crypto | 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 | SchemaRegistryService | BlobStoreService | ArtifactStoreService | PromptAssemblerService | import("../agent/agent-loop-service").Service | ParentNotifierService | import("../skill/skill-registry-service").Service | import("../execution/execution-service").Service | ShardingConfig.ShardingConfig | import("../workspace/workspace-planner-service").Service | WorkflowEngine.WorkflowEngine | Sharding.Sharding | SchedulerServiceService | Service | Runners.Runners | MessageStorage.MessageStorage | MessageStorage.MemoryDriver, Config.ConfigError, never>;
142
+ export declare const testClientLayer: Layer.Layer<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 | import("../address/address-book-service").Service | Crypto.Crypto | 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 | SchemaRegistryService | BlobStoreService | ArtifactStoreService | PromptAssemblerService | import("../agent/agent-loop-service").Service | ParentNotifierService | import("../skill/skill-registry-service").Service | import("../execution/execution-service").Service | ShardingConfig.ShardingConfig | import("../workspace/workspace-planner-service").Service | Sharding.Sharding | Service | Runners.Runners | MessageStorage.MessageStorage | MessageStorage.MemoryDriver, never, never>;
143
+ export declare const testLayerWithDatabaseCheck: <DatabaseError, DatabaseIn>(databaseLayer: Layer.Layer<Database.Service, DatabaseError, DatabaseIn>) => Layer.Layer<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 | import("../address/address-book-service").Service | Crypto.Crypto | 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 | SchemaRegistryService | BlobStoreService | ArtifactStoreService | PromptAssemblerService | import("../agent/agent-loop-service").Service | ParentNotifierService | import("../skill/skill-registry-service").Service | import("../execution/execution-service").Service | ShardingConfig.ShardingConfig | import("../workspace/workspace-planner-service").Service | WorkflowEngine.WorkflowEngine | Sharding.Sharding | SchedulerServiceService | Service | Runners.Runners | MessageStorage.MessageStorage | MessageStorage.MemoryDriver, Config.ConfigError | DatabaseError, Exclude<DatabaseIn, Crypto.Crypto>>;
144
+ export declare const testClientLayerWithDatabaseCheck: <DatabaseError, DatabaseIn>(databaseLayer: Layer.Layer<Database.Service, DatabaseError, DatabaseIn>) => Layer.Layer<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 | import("../address/address-book-service").Service | Crypto.Crypto | 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 | SchemaRegistryService | BlobStoreService | ArtifactStoreService | PromptAssemblerService | import("../agent/agent-loop-service").Service | ParentNotifierService | import("../skill/skill-registry-service").Service | import("../execution/execution-service").Service | ShardingConfig.ShardingConfig | import("../workspace/workspace-planner-service").Service | Sharding.Sharding | Service | Runners.Runners | MessageStorage.MessageStorage | MessageStorage.MemoryDriver, DatabaseError, Exclude<DatabaseIn, Crypto.Crypto>>;
156
145
  export declare const check: () => Effect.Effect<ReadinessStatus, RunnerRuntimeError, Service>;
157
146
  export {};
@@ -1,8 +1,8 @@
1
1
  import { Schedule } from "../../schema/index";
2
2
  import { ExecutionRepository, ScheduleRepository } from "../../store-sql/index";
3
3
  import { Config, Context, Cron, Effect, Layer, Schema } from "effect";
4
- import * as EventLog from "../execution/event-log-service";
5
- import * as WaitService from "../wait/wait-service";
4
+ import { Service as EventLogService } from "../execution/event-log-service";
5
+ import { Service as WaitServiceService } from "../wait/wait-service";
6
6
  declare const SchedulerError_base: Schema.Class<SchedulerError, Schema.TaggedStruct<"SchedulerError", {
7
7
  readonly message: Schema.String;
8
8
  }>, import("effect/Cause").YieldableError>;
@@ -26,9 +26,9 @@ export declare const enabledConfig: Config.Config<boolean>;
26
26
  export declare const workerIdConfig: Config.Config<string>;
27
27
  export declare const parseCron: (cronExpr: string) => Effect.Effect<Cron.Cron, ScheduleCronInvalid>;
28
28
  export declare const startIdempotencyKey: (schedule: Schedule.ScheduleRecord) => string;
29
- export declare const make: Effect.Effect<Interface, Config.ConfigError, ExecutionRepository.Service | ScheduleRepository.Service | EventLog.Service | WaitService.Service | import("effect/unstable/cluster/Sharding").Sharding>;
30
- export declare const layer: Layer.Layer<Service, Config.ConfigError, ExecutionRepository.Service | ScheduleRepository.Service | EventLog.Service | WaitService.Service | import("effect/unstable/cluster/Sharding").Sharding>;
31
- export declare const memoryLayer: Layer.Layer<Service, Config.ConfigError, ExecutionRepository.Service | ScheduleRepository.Service | EventLog.Service | WaitService.Service | import("effect/unstable/cluster/Sharding").Sharding>;
29
+ export declare const make: Effect.Effect<Interface, Config.ConfigError, ExecutionRepository.Service | ScheduleRepository.Service | EventLogService | WaitServiceService | import("effect/unstable/cluster/Sharding").Sharding>;
30
+ export declare const layer: Layer.Layer<Service, Config.ConfigError, ExecutionRepository.Service | ScheduleRepository.Service | EventLogService | WaitServiceService | import("effect/unstable/cluster/Sharding").Sharding>;
31
+ export declare const memoryLayer: Layer.Layer<Service, Config.ConfigError, ExecutionRepository.Service | ScheduleRepository.Service | EventLogService | WaitServiceService | import("effect/unstable/cluster/Sharding").Sharding>;
32
32
  export declare const testLayer: (implementation: Interface) => Layer.Layer<Service, never, never>;
33
33
  export declare const runOnce: () => Effect.Effect<number, SchedulerError, Service>;
34
34
  export {};
@@ -3,65 +3,25 @@ import { Context, Effect, Layer, Schema } from "effect";
3
3
  declare const SchemaRefNotRegistered_base: Schema.Class<SchemaRefNotRegistered, Schema.TaggedStruct<"SchemaRefNotRegistered", {
4
4
  readonly schema_ref: Schema.String;
5
5
  }>, import("effect/Cause").YieldableError>;
6
- /**
7
- * Raised when a `schema_ref` carried by an agent (`output_schema_ref` /
8
- * `StructuredPart.schema_ref`) cannot be resolved to a registered schema.
9
- * No fallback is applied — resolution is an execution-time typed failure,
10
- * mirroring `ModelRegistry.LanguageModelNotRegistered`.
11
- *
12
- * @experimental
13
- */
14
6
  export declare class SchemaRefNotRegistered extends SchemaRefNotRegistered_base {
15
7
  }
16
- /**
17
- * A named schema registration. `ref` is the string agents carry in
18
- * `output_schema_ref` / `StructuredPart.schema_ref` (e.g. `"schema:review-output"`).
19
- * Schemas are code; refs are the durable pointer. Registration is
20
- * composition-time (a layer input), never persisted.
21
- *
22
- * @experimental
23
- */
24
8
  export interface Registration {
25
9
  readonly ref: string;
26
10
  readonly schema: Schema.Top;
27
11
  readonly metadata?: Shared.Metadata;
28
12
  }
29
- /**
30
- * @experimental
31
- */
32
13
  export interface Interface {
33
14
  readonly register: (registration: Registration) => Effect.Effect<void>;
34
15
  readonly registrations: Effect.Effect<ReadonlyArray<Registration>>;
35
16
  readonly resolve: (ref: string) => Effect.Effect<Registration, SchemaRefNotRegistered>;
36
17
  }
37
18
  declare const Service_base: Context.ServiceClass<Service, "@relayfx/runtime/SchemaRegistry", Interface>;
38
- /**
39
- * @experimental
40
- */
41
19
  export declare class Service extends Service_base {
42
20
  }
43
- /**
44
- * @experimental
45
- */
46
21
  export declare const layer: (initialRegistrations?: ReadonlyArray<Registration>) => Layer.Layer<Service, never, never>;
47
- /**
48
- * @experimental
49
- */
50
22
  export declare const memoryLayer: (initialRegistrations?: ReadonlyArray<Registration>) => Layer.Layer<Service, never, never>;
51
- /**
52
- * @experimental
53
- */
54
23
  export declare const testLayer: (implementation: Interface) => Layer.Layer<Service, never, never>;
55
- /**
56
- * @experimental
57
- */
58
24
  export declare const register: (registration: Registration) => Effect.Effect<void, never, Service>;
59
- /**
60
- * @experimental
61
- */
62
25
  export declare const registrations: () => Effect.Effect<readonly Registration[], never, Service>;
63
- /**
64
- * @experimental
65
- */
66
26
  export declare const resolve: (ref: string) => Effect.Effect<Registration, SchemaRefNotRegistered, Service>;
67
27
  export {};
@@ -1,9 +1,9 @@
1
1
  import { Execution, Ids, Shared, Tool } from "../../schema/index";
2
2
  import { ToolCallRepository } from "../../store-sql/index";
3
- import * as Ai from "effect/unstable/ai";
3
+ import { Tool as AiTool } from "effect/unstable/ai";
4
4
  import { Context, Effect, Layer, Schema } from "effect";
5
- import * as EventLog from "../execution/event-log-service";
6
- import * as WaitService from "../wait/wait-service";
5
+ import { Service as EventLogService } from "../execution/event-log-service";
6
+ import { Service as WaitServiceService } from "../wait/wait-service";
7
7
  declare const ToolNotRegistered_base: Schema.Class<ToolNotRegistered, Schema.TaggedStruct<"ToolNotRegistered", {
8
8
  readonly tool_name: Schema.String;
9
9
  }>, import("effect/Cause").YieldableError>;
@@ -55,7 +55,7 @@ export declare class ToolCallInfo extends ToolCallInfo_base {
55
55
  export interface RegisteredTool {
56
56
  readonly name: Shared.NonEmptyString;
57
57
  readonly definition: Tool.Definition;
58
- readonly tool: Ai.Tool.Any;
58
+ readonly tool: AiTool.Any;
59
59
  readonly requiredPermissions?: ReadonlyArray<string>;
60
60
  readonly validateInput?: (input: Shared.JsonValue) => Effect.Effect<void, ToolInputInvalid, any>;
61
61
  readonly run: (input: Shared.JsonValue, context: ToolExecutionContext) => Effect.Effect<Shared.JsonValue, unknown, any>;
@@ -100,14 +100,14 @@ export interface Interface {
100
100
  declare const Service_base: Context.ServiceClass<Service, "@relayfx/runtime/ToolRuntime", Interface>;
101
101
  export declare class Service extends Service_base {
102
102
  }
103
- export declare const toolFromRegistered: (tool: RegisteredTool) => Ai.Tool.Any;
103
+ export declare const toolFromRegistered: (tool: RegisteredTool) => AiTool.Any;
104
104
  export declare const tool: <const Name extends string, Input extends Schema.Constraint, Output extends Schema.Constraint>(name: Name, options: ToolOptions<Input, Output>) => RegisteredTool & {
105
105
  readonly name: Name;
106
106
  };
107
107
  export declare const dynamicTool: <const Name extends string>(name: Name, options: DynamicToolOptions) => RegisteredTool & {
108
108
  readonly name: Name;
109
109
  };
110
- export declare const layer: (initialTools?: ReadonlyArray<RegisteredTool>) => Layer.Layer<Service, never, ToolCallRepository.Service | EventLog.Service | WaitService.Service>;
110
+ export declare const layer: (initialTools?: ReadonlyArray<RegisteredTool>) => Layer.Layer<Service, never, ToolCallRepository.Service | EventLogService | WaitServiceService>;
111
111
  export declare const memoryLayer: (tools?: ReadonlyArray<RegisteredTool>) => Layer.Layer<Service, never, never>;
112
112
  export declare const testLayer: (implementation: Interface) => Layer.Layer<Service, never, never>;
113
113
  export declare const register: (registeredTool: RegisteredTool) => Effect.Effect<void, never, Service>;
@@ -1,7 +1,7 @@
1
1
  import { Envelope, Execution, Ids, Shared } from "../../schema/index";
2
2
  import { EnvelopeRepository, ScheduleRepository } from "../../store-sql/index";
3
3
  import { Context, Effect, Layer, Schema } from "effect";
4
- import * as EventLog from "../execution/event-log-service";
4
+ import { Service as EventLogService } from "../execution/event-log-service";
5
5
  declare const WaitNotFound_base: Schema.Class<WaitNotFound, Schema.TaggedStruct<"WaitNotFound", {
6
6
  readonly wait_id: Schema.brand<Schema.String, "Relay.WaitId"> & {
7
7
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WaitId">;
@@ -68,7 +68,7 @@ export interface Interface {
68
68
  declare const Service_base: Context.ServiceClass<Service, "@relayfx/runtime/WaitService", Interface>;
69
69
  export declare class Service extends Service_base {
70
70
  }
71
- export declare const layer: Layer.Layer<Service, never, EnvelopeRepository.Service | ScheduleRepository.Service | EventLog.Service>;
71
+ export declare const layer: Layer.Layer<Service, never, EnvelopeRepository.Service | ScheduleRepository.Service | EventLogService>;
72
72
  export declare const memoryLayer: Layer.Layer<Service, never, never>;
73
73
  export declare const testLayer: (implementation: Interface) => Layer.Layer<Service, never, never>;
74
74
  export declare const create: (input: CreateWaitInput) => Effect.Effect<EnvelopeRepository.WaitRecord, WaitDefinitionMissing | WaitServiceError, Service>;
@@ -1,16 +1,16 @@
1
1
  import { Ids } from "../../schema/index";
2
2
  import { ExecutionRepository } from "../../store-sql/index";
3
3
  import { Effect } from "effect";
4
- import * as ExecutionWorkflow from "../workflow/execution-workflow";
4
+ import type { SignalWaitInput, WaitSignalState } from "../workflow/execution-workflow";
5
5
  export interface ExecutionSignalClient {
6
- readonly signalWait: (input: ExecutionWorkflow.SignalWaitInput) => Effect.Effect<void, unknown>;
6
+ readonly signalWait: (input: SignalWaitInput) => Effect.Effect<void, unknown>;
7
7
  }
8
8
  export type ExecutionClientFactory = (executionId: Ids.ExecutionId) => ExecutionSignalClient;
9
9
  export interface SignalWorkflowWaitInput {
10
10
  readonly makeExecutionClient: ExecutionClientFactory;
11
11
  readonly executionId: Ids.ExecutionId;
12
12
  readonly waitId: Ids.WaitId;
13
- readonly state: ExecutionWorkflow.WaitSignalState;
13
+ readonly state: WaitSignalState;
14
14
  readonly signaledAt: number;
15
15
  }
16
16
  export declare const signalWorkflowWait: (input: SignalWorkflowWaitInput) => Effect.Effect<void, unknown, ExecutionRepository.Service>;