@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.
- package/dist/index.js +1185 -1086
- package/dist/migrations/20260709030349_agent_id_rename/migration.sql +8 -0
- package/dist/migrations/20260709030349_agent_id_rename/snapshot.json +4883 -0
- package/dist/migrations/mysql/0001_baseline.sql +8 -8
- package/dist/migrations/pg/20260709030349_agent_id_rename/migration.sql +8 -0
- package/dist/migrations/pg/20260709030349_agent_id_rename/snapshot.json +4883 -0
- package/dist/migrations/sqlite/0001_baseline.sql +8 -8
- package/dist/types/ai/embedding-model/embedding-model-registration.d.ts +2 -4
- package/dist/types/relay/adapter-outbox.d.ts +11 -11
- package/dist/types/relay/client.d.ts +50 -163
- package/dist/types/relay/database.d.ts +11 -10
- package/dist/types/relay/operation.d.ts +7 -7
- package/dist/types/runtime/address/address-resolution-service.d.ts +7 -7
- package/dist/types/runtime/agent/agent-loop-service.d.ts +15 -15
- package/dist/types/runtime/agent/prompt-assembler-service.d.ts +6 -44
- package/dist/types/runtime/agent/relay-approvals.d.ts +0 -19
- package/dist/types/runtime/agent/relay-instructions.d.ts +0 -15
- package/dist/types/runtime/agent/relay-permissions.d.ts +4 -4
- package/dist/types/runtime/agent/relay-steering.d.ts +2 -2
- package/dist/types/runtime/agent/relay-tool-executor.d.ts +5 -21
- package/dist/types/runtime/agent/relay-tool-output.d.ts +5 -5
- package/dist/types/runtime/agent/sequence-allocator.d.ts +0 -19
- package/dist/types/runtime/child/child-run-service.d.ts +2 -2
- package/dist/types/runtime/child/parent-notifier-service.d.ts +4 -4
- package/dist/types/runtime/child/spawn-child-run-tool.d.ts +14 -14
- package/dist/types/runtime/cluster/execution-entity.d.ts +25 -25
- package/dist/types/runtime/content/artifact-store-service.d.ts +0 -47
- package/dist/types/runtime/content/blob-store-service.d.ts +0 -33
- package/dist/types/runtime/envelope/envelope-service.d.ts +4 -4
- package/dist/types/runtime/execution/event-log-service.d.ts +0 -5
- package/dist/types/runtime/execution/execution-service.d.ts +9 -8
- package/dist/types/runtime/memory/memory-service.d.ts +5 -4
- package/dist/types/runtime/model/embedding-model-service.d.ts +3 -3
- package/dist/types/runtime/model/language-model-service.d.ts +0 -30
- package/dist/types/runtime/model/model-call-policy.d.ts +0 -58
- package/dist/types/runtime/runner/runner-runtime-service.d.ts +63 -74
- package/dist/types/runtime/schedule/scheduler-service.d.ts +5 -5
- package/dist/types/runtime/schema-registry/schema-registry-service.d.ts +0 -40
- package/dist/types/runtime/tool/tool-runtime-service.d.ts +6 -6
- package/dist/types/runtime/wait/wait-service.d.ts +2 -2
- package/dist/types/runtime/wait/wait-signal.d.ts +3 -3
- package/dist/types/runtime/workflow/execution-workflow.d.ts +15 -20
- package/dist/types/runtime/workspace/workspace-planner-service.d.ts +16 -15
- package/dist/types/runtime/workspace/workspace-runtime-service.d.ts +4 -4
- package/dist/types/schema/agent-schema.d.ts +0 -8
- package/dist/types/schema/execution-schema.d.ts +4 -4
- package/dist/types/store-sql/address/address-book-repository.d.ts +2 -2
- package/dist/types/store-sql/agent/agent-definition-repository.d.ts +3 -3
- package/dist/types/store-sql/chat/agent-chat-repository.d.ts +2 -2
- package/dist/types/store-sql/child/child-execution-repository.d.ts +2 -2
- package/dist/types/store-sql/cluster/cluster-registry-repository.d.ts +2 -2
- package/dist/types/store-sql/compaction/compaction-repository.d.ts +2 -2
- package/dist/types/store-sql/database/database-service.d.ts +11 -12
- package/dist/types/store-sql/database/notification-bus.d.ts +3 -3
- package/dist/types/store-sql/envelope/envelope-repository.d.ts +2 -2
- package/dist/types/store-sql/execution/execution-event-repository.d.ts +4 -4
- package/dist/types/store-sql/execution/execution-repository.d.ts +12 -12
- package/dist/types/store-sql/idempotency/idempotency-repository.d.ts +3 -3
- package/dist/types/store-sql/memory/memory-repository.d.ts +5 -5
- package/dist/types/store-sql/permission/permission-rule-repository.d.ts +2 -2
- package/dist/types/store-sql/schedule/schedule-repository.d.ts +2 -2
- package/dist/types/store-sql/schema/relay-schema.d.ts +21 -21
- package/dist/types/store-sql/session/context-epoch-repository.d.ts +2 -2
- package/dist/types/store-sql/session/session-repository.d.ts +6 -6
- package/dist/types/store-sql/skill/skill-definition-repository.d.ts +2 -2
- package/dist/types/store-sql/steering/steering-repository.d.ts +2 -2
- package/dist/types/store-sql/tenant/tenant-id.d.ts +3 -1
- package/dist/types/store-sql/tool/tool-call-repository.d.ts +2 -2
- package/dist/types/store-sql/workspace/workspace-lease-repository.d.ts +2 -2
- 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
|
|
4
|
+
import { SqlClient } from "effect/unstable/sql/SqlClient";
|
|
5
5
|
import { WorkflowEngine } from "effect/unstable/workflow";
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import
|
|
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
|
|
75
|
-
export declare const clusterLayerHttpClientOnly: (options?: ClusterHttpTuning) => Layer.Layer<ShardingConfig.ShardingConfig | Sharding.Sharding | Runners.Runners | MessageStorage.MessageStorage, never, 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<
|
|
86
|
-
readonly toolRuntimeLayer: Layer.Layer<
|
|
87
|
-
readonly schedulerLayer: Layer.Layer<
|
|
88
|
-
readonly promptAssemblerLayer?: Layer.Layer<
|
|
89
|
-
readonly blobStoreLayer?: Layer.Layer<
|
|
90
|
-
readonly artifactStoreLayer?: Layer.Layer<
|
|
91
|
-
readonly schemaRegistryLayer?: Layer.Layer<
|
|
92
|
-
}) => Layer.Layer<
|
|
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<
|
|
99
|
-
readonly toolRuntimeLayer: Layer.Layer<
|
|
100
|
-
readonly promptAssemblerLayer?: Layer.Layer<
|
|
101
|
-
readonly blobStoreLayer?: Layer.Layer<
|
|
102
|
-
readonly artifactStoreLayer?: Layer.Layer<
|
|
103
|
-
readonly schemaRegistryLayer?: Layer.Layer<
|
|
104
|
-
}) => Layer.Layer<
|
|
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<
|
|
108
|
-
readonly embeddingModelLayer?: Layer.Layer<
|
|
109
|
-
readonly toolRuntimeLayer: Layer.Layer<
|
|
110
|
-
readonly promptAssemblerLayer?: Layer.Layer<
|
|
111
|
-
readonly blobStoreLayer?: Layer.Layer<
|
|
112
|
-
readonly artifactStoreLayer?: Layer.Layer<
|
|
113
|
-
readonly schemaRegistryLayer?: Layer.Layer<
|
|
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 |
|
|
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<
|
|
118
|
-
readonly embeddingModelLayer?: Layer.Layer<
|
|
119
|
-
readonly toolRuntimeLayer: Layer.Layer<
|
|
120
|
-
readonly promptAssemblerLayer?: Layer.Layer<
|
|
121
|
-
readonly blobStoreLayer?: Layer.Layer<
|
|
122
|
-
readonly artifactStoreLayer?: Layer.Layer<
|
|
123
|
-
readonly schemaRegistryLayer?: Layer.Layer<
|
|
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 |
|
|
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<
|
|
133
|
-
readonly embeddingModelLayer?: Layer.Layer<
|
|
134
|
-
readonly toolRuntimeLayer: Layer.Layer<
|
|
135
|
-
readonly promptAssemblerLayer?: Layer.Layer<
|
|
136
|
-
readonly blobStoreLayer?: Layer.Layer<
|
|
137
|
-
readonly artifactStoreLayer?: Layer.Layer<
|
|
138
|
-
readonly schemaRegistryLayer?: Layer.Layer<
|
|
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 |
|
|
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<
|
|
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 |
|
|
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 |
|
|
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<
|
|
148
|
-
readonly embeddingModelLayer?: Layer.Layer<
|
|
149
|
-
readonly toolRuntimeLayer: Layer.Layer<
|
|
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 |
|
|
151
|
-
export declare const testLayerWithLanguageModelService: <LanguageModelError, LanguageModelIn>(languageModelLayer: Layer.Layer<
|
|
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 |
|
|
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 |
|
|
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 |
|
|
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 |
|
|
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
|
|
5
|
-
import
|
|
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 |
|
|
30
|
-
export declare const layer: Layer.Layer<Service, Config.ConfigError, ExecutionRepository.Service | ScheduleRepository.Service |
|
|
31
|
-
export declare const memoryLayer: Layer.Layer<Service, Config.ConfigError, ExecutionRepository.Service | ScheduleRepository.Service |
|
|
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
|
|
3
|
+
import { Tool as AiTool } from "effect/unstable/ai";
|
|
4
4
|
import { Context, Effect, Layer, Schema } from "effect";
|
|
5
|
-
import
|
|
6
|
-
import
|
|
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:
|
|
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) =>
|
|
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 |
|
|
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
|
|
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 |
|
|
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
|
|
4
|
+
import type { SignalWaitInput, WaitSignalState } from "../workflow/execution-workflow";
|
|
5
5
|
export interface ExecutionSignalClient {
|
|
6
|
-
readonly signalWait: (input:
|
|
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:
|
|
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>;
|