@relayfx/sdk 0.0.7 → 0.0.9

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 (29) hide show
  1. package/dist/index.js +5848 -5140
  2. package/dist/migrations/20260706185931_regular_shadow_king/migration.sql +166 -0
  3. package/dist/migrations/20260706185931_regular_shadow_king/snapshot.json +4844 -0
  4. package/dist/migrations/20260706233300_equal_cyclops/migration.sql +3 -0
  5. package/dist/migrations/20260706233300_equal_cyclops/snapshot.json +4883 -0
  6. package/dist/types/relay/client.d.ts +5 -0
  7. package/dist/types/relay/index.d.ts +1 -1
  8. package/dist/types/relay/operation.d.ts +2 -1
  9. package/dist/types/runtime/address/address-resolution-service.d.ts +1 -0
  10. package/dist/types/runtime/agent/agent-loop-service.d.ts +1 -5
  11. package/dist/types/runtime/child/spawn-child-run-tool.d.ts +2 -0
  12. package/dist/types/runtime/cluster/execution-entity.d.ts +3 -0
  13. package/dist/types/runtime/execution/execution-service.d.ts +1 -0
  14. package/dist/types/runtime/index.d.ts +2 -0
  15. package/dist/types/runtime/runner/runner-runtime-service.d.ts +14 -14
  16. package/dist/types/runtime/tool/tool-input-schema-digest.d.ts +6 -0
  17. package/dist/types/runtime/workflow/activity-version-registry.d.ts +89 -0
  18. package/dist/types/runtime/workflow/execution-workflow.d.ts +39 -1
  19. package/dist/types/schema/agent-schema.d.ts +34 -0
  20. package/dist/types/schema/execution-schema.d.ts +3 -2
  21. package/dist/types/schema/ids-schema.d.ts +5 -0
  22. package/dist/types/schema/shared-schema.d.ts +2 -0
  23. package/dist/types/store-sql/agent/agent-definition-repository.d.ts +3 -0
  24. package/dist/types/store-sql/execution/execution-repository.d.ts +2 -0
  25. package/dist/types/store-sql/index.d.ts +1 -0
  26. package/dist/types/store-sql/schema/relay-schema.d.ts +487 -22
  27. package/dist/types/store-sql/session/session-repository.d.ts +1 -0
  28. package/dist/types/store-sql/tenant/tenant-id.d.ts +15 -0
  29. package/package.json +1 -1
@@ -34,7 +34,11 @@ export interface StartExecutionByAgentDefinitionInput {
34
34
  readonly wait_id?: Ids.WaitId;
35
35
  readonly metadata?: Shared.Metadata;
36
36
  }
37
+ export interface RegisterAgentInput extends Agent.DefineInput {
38
+ readonly address?: Ids.AddressId;
39
+ }
37
40
  export interface Interface {
41
+ readonly registerAgent: (input: RegisterAgentInput) => Effect.Effect<Agent.DefinitionRegistered, ClientError>;
38
42
  readonly registerAgentDefinition: (input: Agent.RegisterDefinitionPayload) => Effect.Effect<Agent.DefinitionRegistered, ClientError>;
39
43
  readonly getAgentDefinition: (id: Ids.AgentDefinitionId) => Effect.Effect<Agent.DefinitionRecord | undefined, ClientError>;
40
44
  readonly listAgentDefinitions: () => Effect.Effect<Agent.DefinitionList, ClientError>;
@@ -79,6 +83,7 @@ export declare class Service extends Service_base {
79
83
  export declare const layerFromRuntime: Layer.Layer<Service, never, AgentRegistry.Service | AddressBook.Service | ExecutionService.Service | WaitService.Service | EventLog.Service | EnvelopeRepository.Service | ExecutionRepository.Service | SessionRepository.Service | SteeringRepository.Service | ClusterRegistryRepository.Service | ScheduleRepository.Service | SkillRegistry.Service | Sharding.Sharding | ShardingConfig.ShardingConfig>;
80
84
  export declare const testLayer: (implementation: Interface) => Layer.Layer<Service, never, never>;
81
85
  export declare const registerAgentDefinition: (input: Agent.RegisterDefinitionPayload) => Effect.Effect<Agent.DefinitionRegistered, ClientError, Service>;
86
+ export declare const registerAgent: (input: RegisterAgentInput) => Effect.Effect<Agent.DefinitionRegistered, ClientError, Service>;
82
87
  export declare const getAgentDefinition: (id: string & import("effect/Brand").Brand<"Relay.AgentDefinitionId">) => Effect.Effect<Agent.DefinitionRecord | undefined, ClientError, Service>;
83
88
  export declare const listAgentDefinitions: () => Effect.Effect<Agent.DefinitionList, ClientError, Service>;
84
89
  export declare const listAgentDefinitionRevisions: (id: string & import("effect/Brand").Brand<"Relay.AgentDefinitionId">) => Effect.Effect<Agent.DefinitionRevisionList, ClientError, Service>;
@@ -3,7 +3,7 @@ export * as Client from "./client";
3
3
  export * as Database from "./database";
4
4
  export * as Operation from "./operation";
5
5
  export { Address, Agent, Content, Envelope, Execution, Ids, Schedule, Shared, Skill, Tool } from "../schema/index";
6
- export { AddressBook, AddressResolution, AgentLoop, AgentRegistry, ArtifactStore, BlobStore, ChildRunService, EnvelopeService, EventLog, ExecutionEntity, ExecutionService, ExecutionWorkflow, LanguageModelService, ModelCallPolicy, PromptAssembler, SchedulerService, SchemaRegistry, SkillRegistry, ToolRuntime, WaitService, } from "../runtime/index";
6
+ export { AddressBook, AddressResolution, AgentLoop, AgentRegistry, ActivityVersionRegistry, ArtifactStore, BlobStore, ChildRunService, EnvelopeService, EventLog, ExecutionEntity, ExecutionService, ExecutionWorkflow, LanguageModelService, ModelCallPolicy, PromptAssembler, SchedulerService, SchemaRegistry, SkillRegistry, ToolRuntime, WaitService, } from "../runtime/index";
7
7
  export { RunnerRuntime } from "../runtime/index";
8
8
  export { LanguageModelRegistration } from "../ai/index";
9
9
  export { RelaySchema, SkillDefinitionRepository } from "../store-sql/index";
@@ -120,6 +120,7 @@ export declare const StartExecutionInput: Schema.Struct<{
120
120
  readonly output_schema_ref: Schema.optionalKey<Schema.String>;
121
121
  readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
122
122
  }>>;
123
+ readonly agent_definition_tool_input_schema_digests: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
123
124
  readonly wait_id: Schema.optionalKey<Schema.brand<Schema.String, "Relay.WaitId"> & {
124
125
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WaitId">;
125
126
  }>;
@@ -1076,7 +1077,7 @@ export declare const ReplayExecutionResult: Schema.Struct<{
1076
1077
  readonly child_execution_id: Schema.optionalKey<Schema.brand<Schema.String, "Relay.ChildExecutionId"> & {
1077
1078
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.ChildExecutionId">;
1078
1079
  }>;
1079
- readonly type: Schema.Literals<readonly ["execution.accepted", "execution.started", "execution.completed", "execution.failed", "execution.cancelled", "model.input.prepared", "model.output.delta", "model.reasoning.delta", "model.output.completed", "model.usage.reported", "tool.call.requested", "tool.result.received", "tool.approval.requested", "tool.approval.resolved", "permission.ask.requested", "permission.ask.resolved", "steering.received", "envelope.accepted", "envelope.routed", "envelope.ready", "delivery.attempt", "wait.created", "wait.woken", "wait.timed_out", "wait.cancelled", "child_run.spawned", "child_run.event", "workspace.lease.planned", "workspace.lease.acquired", "workspace.suspended", "workspace.resumed", "workspace.snapshot.created", "workspace.lease.released", "workspace.lease.failed"]>;
1080
+ readonly type: Schema.Literals<readonly ["execution.accepted", "execution.started", "execution.completed", "execution.failed", "execution.cancelled", "model.input.prepared", "model.output.delta", "model.reasoning.delta", "model.output.completed", "model.usage.reported", "budget.exceeded", "tool.call.requested", "tool.result.received", "tool.approval.requested", "tool.approval.resolved", "permission.ask.requested", "permission.ask.resolved", "steering.received", "envelope.accepted", "envelope.routed", "envelope.ready", "delivery.attempt", "wait.created", "wait.woken", "wait.timed_out", "wait.cancelled", "child_run.spawned", "child_run.event", "workspace.lease.planned", "workspace.lease.acquired", "workspace.suspended", "workspace.resumed", "workspace.snapshot.created", "workspace.lease.released", "workspace.lease.failed"]>;
1080
1081
  readonly sequence: Schema.Int;
1081
1082
  readonly cursor: Schema.String;
1082
1083
  readonly content: Schema.optionalKey<Schema.$Array<Schema.Union<readonly [Schema.Struct<{
@@ -109,6 +109,7 @@ export declare const LocalAgentTarget: Schema.Struct<{
109
109
  readonly output_schema_ref: Schema.optionalKey<Schema.String>;
110
110
  readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
111
111
  }>;
112
+ readonly tool_input_schema_digests: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
112
113
  }>;
113
114
  export interface LocalAgentTarget extends Schema.Schema.Type<typeof LocalAgentTarget> {
114
115
  }
@@ -37,11 +37,6 @@ declare const AgentLoopBudgetExceeded_base: Schema.Class<AgentLoopBudgetExceeded
37
37
  readonly token_budget: Schema.Int;
38
38
  readonly next_event_sequence: Schema.Int;
39
39
  }>, import("effect/Cause").YieldableError>;
40
- /**
41
- * Raised when an agent's per-execution `token_budget` is reached. Checked
42
- * between turns at durable boundaries (never mid-stream); the execution fails
43
- * terminally, exactly like `AgentLoopError` (docs/spec/07 + ADR-0021).
44
- */
45
40
  export declare class AgentLoopBudgetExceeded extends AgentLoopBudgetExceeded_base {
46
41
  }
47
42
  export interface RunInput {
@@ -50,6 +45,7 @@ export interface RunInput {
50
45
  readonly agent: Agent.Definition;
51
46
  readonly agentDefinitionId?: Ids.AgentDefinitionId;
52
47
  readonly agentDefinitionRevision?: Agent.DefinitionRevision;
48
+ readonly agentDefinitionToolInputSchemaDigests?: Agent.ToolInputSchemaDigests;
53
49
  readonly input: ReadonlyArray<Content.Part>;
54
50
  readonly resumeToolCall?: Tool.Call;
55
51
  readonly memorySubjectId?: Ids.MemorySubjectId;
@@ -192,12 +192,14 @@ export interface DispatchInput {
192
192
  readonly agentDefinitionId: Ids.AgentDefinitionId;
193
193
  readonly agentDefinitionRevision: Agent.DefinitionRevision;
194
194
  readonly agentDefinitionSnapshot: Agent.Definition;
195
+ readonly agentDefinitionToolInputSchemaDigests?: Agent.ToolInputSchemaDigests;
195
196
  readonly metadata: Shared.Metadata;
196
197
  }
197
198
  export interface Config {
198
199
  readonly agent: Agent.Definition;
199
200
  readonly agentDefinitionId: Ids.AgentDefinitionId;
200
201
  readonly agentDefinitionRevision: Agent.DefinitionRevision;
202
+ readonly agentDefinitionToolInputSchemaDigests?: Agent.ToolInputSchemaDigests;
201
203
  readonly childRuns: ChildRunService.Interface;
202
204
  readonly eventLog: EventLog.Interface;
203
205
  readonly waits: WaitService.Interface;
@@ -128,6 +128,7 @@ export declare const Start: Rpc.Rpc<"start", Schema.Struct<{
128
128
  readonly output_schema_ref: Schema.optionalKey<Schema.String>;
129
129
  readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
130
130
  }>>;
131
+ readonly agent_definition_tool_input_schema_digests: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
131
132
  readonly wait_id: Schema.optionalKey<Schema.brand<Schema.String, "Relay.WaitId"> & {
132
133
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WaitId">;
133
134
  }>;
@@ -293,6 +294,7 @@ export declare const entity: Entity.Entity<"Relay/Execution", Rpc.Rpc<"start", S
293
294
  readonly output_schema_ref: Schema.optionalKey<Schema.String>;
294
295
  readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
295
296
  }>>;
297
+ readonly agent_definition_tool_input_schema_digests: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
296
298
  readonly wait_id: Schema.optionalKey<Schema.brand<Schema.String, "Relay.WaitId"> & {
297
299
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WaitId">;
298
300
  }>;
@@ -457,6 +459,7 @@ export declare const client: Effect.Effect<(entityId: string) => import("effect/
457
459
  readonly output_schema_ref: Schema.optionalKey<Schema.String>;
458
460
  readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
459
461
  }>>;
462
+ readonly agent_definition_tool_input_schema_digests: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
460
463
  readonly wait_id: Schema.optionalKey<Schema.brand<Schema.String, "Relay.WaitId"> & {
461
464
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WaitId">;
462
465
  }>;
@@ -19,6 +19,7 @@ export interface AcceptInput {
19
19
  readonly agentDefinitionId?: Ids.AgentDefinitionId;
20
20
  readonly agentDefinitionRevision?: Agent.DefinitionRevision;
21
21
  readonly agentDefinitionSnapshot?: Agent.Definition;
22
+ readonly agentDefinitionToolInputSchemaDigests?: Agent.ToolInputSchemaDigests;
22
23
  readonly metadata?: Shared.Metadata;
23
24
  }
24
25
  export interface RunInput {
@@ -26,10 +26,12 @@ export * as SchemaRegistry from "./schema-registry/schema-registry-service";
26
26
  export * as RelaySessionStore from "./session/session-store-service";
27
27
  export * as SkillRegistry from "./skill/skill-registry-service";
28
28
  export * as ToolRuntime from "./tool/tool-runtime-service";
29
+ export * as ToolInputSchemaDigest from "./tool/tool-input-schema-digest";
29
30
  export * as WaitService from "./wait/wait-service";
30
31
  export * as WaitSignal from "./wait/wait-signal";
31
32
  export * as WorkspacePlanner from "./workspace/workspace-planner-service";
32
33
  export * as WorkspaceProvider from "./workspace/workspace-provider-service";
33
34
  export * as WorkspaceRuntime from "./workspace/workspace-runtime-service";
34
35
  export * as ExecutionWorkflow from "./workflow/execution-workflow";
36
+ export * as ActivityVersionRegistry from "./workflow/activity-version-registry";
35
37
  export declare const runtimePackage = "./index";
@@ -1,5 +1,5 @@
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
- import { Config, Context, Duration, Effect, Layer, Option, Schema } from "effect";
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
4
  import { WorkflowEngine } from "effect/unstable/workflow";
5
5
  import * as AgentRegistry from "../agent/agent-registry-service";
@@ -88,7 +88,7 @@ export declare const layerWith: <CheckError, CheckIn, ClusterOut, ClusterError,
88
88
  readonly blobStoreLayer?: Layer.Layer<BlobStore.Service> | undefined;
89
89
  readonly artifactStoreLayer?: Layer.Layer<ArtifactStore.Service> | undefined;
90
90
  readonly schemaRegistryLayer?: Layer.Layer<SchemaRegistry.Service> | undefined;
91
- }) => Layer.Layer<AddressBook.Service | AgentRegistry.Service | AddressResolution.Service | EventLog.Service | ChildRunService.Service | WaitService.Service | ToolRuntime.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<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 | AgentRegistry.Service | AddressResolution.Service | EventLog.Service | ChildRunService.Service | WaitService.Service | ToolRuntime.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>>;
91
+ }) => 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>>;
92
92
  export declare const layerWithClient: <CheckError, CheckIn, ClusterOut, ClusterError, ClusterIn, RepositoryOut, RepositoryError, RepositoryIn, LanguageModelOut, LanguageModelError, LanguageModelIn, EmbeddingModelError, EmbeddingModelIn, ToolRuntimeError, ToolRuntimeIn>(options: {
93
93
  readonly checkLayer: Layer.Layer<Service, CheckError, CheckIn>;
94
94
  readonly clusterLayer: Layer.Layer<ClusterOut, ClusterError, ClusterIn>;
@@ -100,7 +100,7 @@ export declare const layerWithClient: <CheckError, CheckIn, ClusterOut, ClusterE
100
100
  readonly blobStoreLayer?: Layer.Layer<BlobStore.Service> | undefined;
101
101
  readonly artifactStoreLayer?: Layer.Layer<ArtifactStore.Service> | undefined;
102
102
  readonly schemaRegistryLayer?: Layer.Layer<SchemaRegistry.Service> | undefined;
103
- }) => Layer.Layer<AddressBook.Service | AgentRegistry.Service | AddressResolution.Service | EventLog.Service | ChildRunService.Service | WaitService.Service | ToolRuntime.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<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>>;
103
+ }) => 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>>;
104
104
  export declare const layerWithServices: <DatabaseError, DatabaseIn, LanguageModelError, LanguageModelIn, EmbeddingModelError, EmbeddingModelIn, ToolRuntimeError, ToolRuntimeIn>(options: {
105
105
  readonly databaseLayer: Layer.Layer<Database.Service, DatabaseError, DatabaseIn>;
106
106
  readonly languageModelLayer: Layer.Layer<LanguageModelService.Service, LanguageModelError, LanguageModelIn>;
@@ -110,7 +110,7 @@ export declare const layerWithServices: <DatabaseError, DatabaseIn, LanguageMode
110
110
  readonly blobStoreLayer?: Layer.Layer<BlobStore.Service> | undefined;
111
111
  readonly artifactStoreLayer?: Layer.Layer<ArtifactStore.Service> | undefined;
112
112
  readonly schemaRegistryLayer?: Layer.Layer<SchemaRegistry.Service> | undefined;
113
- }) => Layer.Layer<Database.Service | AddressBookRepository.Service | AgentChatRepository.Service | AgentDefinitionRepository.Service | ChildExecutionRepository.Service | ClusterRegistryRepository.Service | CompactionRepository.Service | EnvelopeRepository.Service | ExecutionEventRepository.Service | ExecutionRepository.Service | MemoryRepository.Service | PermissionRuleRepository.Service | ContextEpochRepository.Service | ScheduleRepository.Service | SessionRepository.Service | SkillDefinitionRepository.Service | SteeringRepository.Service | ToolCallRepository.Service | WorkspaceLeaseRepository.Service | AddressBook.Service | AgentRegistry.Service | AddressResolution.Service | EventLog.Service | ChildRunService.Service | WaitService.Service | ToolRuntime.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, import("effect/unstable/sql/SqlClient").SqlClient | Exclude<Exclude<DatabaseIn, BlobStore.Service>, ArtifactStore.Service> | Exclude<Exclude<Exclude<LanguageModelIn, Database.Service | AddressBookRepository.Service | AgentChatRepository.Service | AgentDefinitionRepository.Service | ChildExecutionRepository.Service | ClusterRegistryRepository.Service | CompactionRepository.Service | EnvelopeRepository.Service | ExecutionEventRepository.Service | ExecutionRepository.Service | MemoryRepository.Service | PermissionRuleRepository.Service | ContextEpochRepository.Service | ScheduleRepository.Service | SessionRepository.Service | SkillDefinitionRepository.Service | SteeringRepository.Service | ToolCallRepository.Service | WorkspaceLeaseRepository.Service>, BlobStore.Service>, ArtifactStore.Service> | Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<LanguageModelIn, never>, WorkflowEngine.WorkflowEngine>, ShardingConfig.ShardingConfig | Sharding.Sharding | Runners.Runners | MessageStorage.MessageStorage>, Database.Service | AddressBookRepository.Service | AgentChatRepository.Service | AgentDefinitionRepository.Service | ChildExecutionRepository.Service | ClusterRegistryRepository.Service | CompactionRepository.Service | EnvelopeRepository.Service | ExecutionEventRepository.Service | ExecutionRepository.Service | MemoryRepository.Service | PermissionRuleRepository.Service | ContextEpochRepository.Service | ScheduleRepository.Service | SessionRepository.Service | SkillDefinitionRepository.Service | SteeringRepository.Service | ToolCallRepository.Service | WorkspaceLeaseRepository.Service>, BlobStore.Service>, ArtifactStore.Service> | Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<ToolRuntimeIn, ChildRunService.Service>, ModelCallPolicy.Service>, PromptAssembler.Service>, SchemaRegistry.Service>, WaitService.Service>, EventLog.Service>, LanguageModelService.Service>, never>, WorkflowEngine.WorkflowEngine>, ShardingConfig.ShardingConfig | Sharding.Sharding | Runners.Runners | MessageStorage.MessageStorage>, Database.Service | AddressBookRepository.Service | AgentChatRepository.Service | AgentDefinitionRepository.Service | ChildExecutionRepository.Service | ClusterRegistryRepository.Service | CompactionRepository.Service | EnvelopeRepository.Service | ExecutionEventRepository.Service | ExecutionRepository.Service | MemoryRepository.Service | PermissionRuleRepository.Service | ContextEpochRepository.Service | ScheduleRepository.Service | SessionRepository.Service | SkillDefinitionRepository.Service | SteeringRepository.Service | ToolCallRepository.Service | WorkspaceLeaseRepository.Service>, BlobStore.Service>, ArtifactStore.Service>>;
113
+ }) => Layer.Layer<Database.Service | AddressBookRepository.Service | AgentChatRepository.Service | AgentDefinitionRepository.Service | ChildExecutionRepository.Service | ClusterRegistryRepository.Service | CompactionRepository.Service | EnvelopeRepository.Service | ExecutionEventRepository.Service | ExecutionRepository.Service | MemoryRepository.Service | PermissionRuleRepository.Service | ContextEpochRepository.Service | ScheduleRepository.Service | SessionRepository.Service | SkillDefinitionRepository.Service | SteeringRepository.Service | ToolCallRepository.Service | WorkspaceLeaseRepository.Service | AddressBook.Service | EventLog.Service | WaitService.Service | ToolRuntime.Service | AgentRegistry.Service | AddressResolution.Service | ChildRunService.Service | LanguageModelService.Service | ModelCallPolicy.Service | SchemaRegistry.Service | BlobStore.Service | ArtifactStore.Service | PromptAssembler.Service | AgentLoop.Service | ParentNotifier.Service | SkillRegistry.Service | ExecutionService.Service | ShardingConfig.ShardingConfig | WorkspacePlanner.Service | WorkflowEngine.WorkflowEngine | Sharding.Sharding | SchedulerService.Service | Service | Runners.Runners | MessageStorage.MessageStorage, Config.ConfigError | ClusterConfigMismatch | DatabaseError | LanguageModelError | ToolRuntimeError, import("effect/unstable/sql/SqlClient").SqlClient | Exclude<Exclude<DatabaseIn, BlobStore.Service>, ArtifactStore.Service> | Exclude<Exclude<Exclude<LanguageModelIn, Database.Service | AddressBookRepository.Service | AgentChatRepository.Service | AgentDefinitionRepository.Service | ChildExecutionRepository.Service | ClusterRegistryRepository.Service | CompactionRepository.Service | EnvelopeRepository.Service | ExecutionEventRepository.Service | ExecutionRepository.Service | MemoryRepository.Service | PermissionRuleRepository.Service | ContextEpochRepository.Service | ScheduleRepository.Service | SessionRepository.Service | SkillDefinitionRepository.Service | SteeringRepository.Service | ToolCallRepository.Service | WorkspaceLeaseRepository.Service>, BlobStore.Service>, ArtifactStore.Service> | Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<LanguageModelIn, never>, WorkflowEngine.WorkflowEngine>, ShardingConfig.ShardingConfig | Sharding.Sharding | Runners.Runners | MessageStorage.MessageStorage>, Database.Service | AddressBookRepository.Service | AgentChatRepository.Service | AgentDefinitionRepository.Service | ChildExecutionRepository.Service | ClusterRegistryRepository.Service | CompactionRepository.Service | EnvelopeRepository.Service | ExecutionEventRepository.Service | ExecutionRepository.Service | MemoryRepository.Service | PermissionRuleRepository.Service | ContextEpochRepository.Service | ScheduleRepository.Service | SessionRepository.Service | SkillDefinitionRepository.Service | SteeringRepository.Service | ToolCallRepository.Service | WorkspaceLeaseRepository.Service>, BlobStore.Service>, ArtifactStore.Service> | Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<ToolRuntimeIn, WaitService.Service>, EventLog.Service>, LanguageModelService.Service>, never>, WorkflowEngine.WorkflowEngine>, ShardingConfig.ShardingConfig | Sharding.Sharding | Runners.Runners | MessageStorage.MessageStorage>, Database.Service | AddressBookRepository.Service | AgentChatRepository.Service | AgentDefinitionRepository.Service | ChildExecutionRepository.Service | ClusterRegistryRepository.Service | CompactionRepository.Service | EnvelopeRepository.Service | ExecutionEventRepository.Service | ExecutionRepository.Service | MemoryRepository.Service | PermissionRuleRepository.Service | ContextEpochRepository.Service | ScheduleRepository.Service | SessionRepository.Service | SkillDefinitionRepository.Service | SteeringRepository.Service | ToolCallRepository.Service | WorkspaceLeaseRepository.Service>, BlobStore.Service>, ArtifactStore.Service> | Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<ToolRuntimeIn, ChildRunService.Service>, ModelCallPolicy.Service>, PromptAssembler.Service>, SchemaRegistry.Service>, WaitService.Service>, EventLog.Service>, LanguageModelService.Service>, never>, WorkflowEngine.WorkflowEngine>, ShardingConfig.ShardingConfig | Sharding.Sharding | Runners.Runners | MessageStorage.MessageStorage>, Database.Service | AddressBookRepository.Service | AgentChatRepository.Service | AgentDefinitionRepository.Service | ChildExecutionRepository.Service | ClusterRegistryRepository.Service | CompactionRepository.Service | EnvelopeRepository.Service | ExecutionEventRepository.Service | ExecutionRepository.Service | MemoryRepository.Service | PermissionRuleRepository.Service | ContextEpochRepository.Service | ScheduleRepository.Service | SessionRepository.Service | SkillDefinitionRepository.Service | SteeringRepository.Service | ToolCallRepository.Service | WorkspaceLeaseRepository.Service>, BlobStore.Service>, ArtifactStore.Service>>;
114
114
  export declare const layerWithServicesMultiNode: <DatabaseError, DatabaseIn, LanguageModelError, LanguageModelIn, EmbeddingModelError, EmbeddingModelIn, ToolRuntimeError, ToolRuntimeIn>(options: {
115
115
  readonly databaseLayer: Layer.Layer<Database.Service, DatabaseError, DatabaseIn>;
116
116
  readonly languageModelLayer: Layer.Layer<LanguageModelService.Service, LanguageModelError, LanguageModelIn>;
@@ -125,7 +125,7 @@ export declare const layerWithServicesMultiNode: <DatabaseError, DatabaseIn, Lan
125
125
  readonly rpcPort: number;
126
126
  readonly assignedShardGroups: ReadonlyArray<string>;
127
127
  } & ClusterHttpTuning;
128
- }) => Layer.Layer<Database.Service | AddressBookRepository.Service | AgentChatRepository.Service | AgentDefinitionRepository.Service | ChildExecutionRepository.Service | ClusterRegistryRepository.Service | CompactionRepository.Service | EnvelopeRepository.Service | ExecutionEventRepository.Service | ExecutionRepository.Service | MemoryRepository.Service | PermissionRuleRepository.Service | ContextEpochRepository.Service | ScheduleRepository.Service | SessionRepository.Service | SkillDefinitionRepository.Service | SteeringRepository.Service | ToolCallRepository.Service | WorkspaceLeaseRepository.Service | AddressBook.Service | AgentRegistry.Service | AddressResolution.Service | EventLog.Service | ChildRunService.Service | WaitService.Service | ToolRuntime.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, import("effect/unstable/sql/SqlClient").SqlClient | import("effect/unstable/http/HttpServer").HttpServer | Exclude<Exclude<DatabaseIn, BlobStore.Service>, ArtifactStore.Service> | Exclude<Exclude<Exclude<LanguageModelIn, Database.Service | AddressBookRepository.Service | AgentChatRepository.Service | AgentDefinitionRepository.Service | ChildExecutionRepository.Service | ClusterRegistryRepository.Service | CompactionRepository.Service | EnvelopeRepository.Service | ExecutionEventRepository.Service | ExecutionRepository.Service | MemoryRepository.Service | PermissionRuleRepository.Service | ContextEpochRepository.Service | ScheduleRepository.Service | SessionRepository.Service | SkillDefinitionRepository.Service | SteeringRepository.Service | ToolCallRepository.Service | WorkspaceLeaseRepository.Service>, BlobStore.Service>, ArtifactStore.Service> | Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<LanguageModelIn, never>, WorkflowEngine.WorkflowEngine>, ShardingConfig.ShardingConfig | Sharding.Sharding | Runners.Runners | MessageStorage.MessageStorage>, Database.Service | AddressBookRepository.Service | AgentChatRepository.Service | AgentDefinitionRepository.Service | ChildExecutionRepository.Service | ClusterRegistryRepository.Service | CompactionRepository.Service | EnvelopeRepository.Service | ExecutionEventRepository.Service | ExecutionRepository.Service | MemoryRepository.Service | PermissionRuleRepository.Service | ContextEpochRepository.Service | ScheduleRepository.Service | SessionRepository.Service | SkillDefinitionRepository.Service | SteeringRepository.Service | ToolCallRepository.Service | WorkspaceLeaseRepository.Service>, BlobStore.Service>, ArtifactStore.Service> | Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<ToolRuntimeIn, ChildRunService.Service>, ModelCallPolicy.Service>, PromptAssembler.Service>, SchemaRegistry.Service>, WaitService.Service>, EventLog.Service>, LanguageModelService.Service>, never>, WorkflowEngine.WorkflowEngine>, ShardingConfig.ShardingConfig | Sharding.Sharding | Runners.Runners | MessageStorage.MessageStorage>, Database.Service | AddressBookRepository.Service | AgentChatRepository.Service | AgentDefinitionRepository.Service | ChildExecutionRepository.Service | ClusterRegistryRepository.Service | CompactionRepository.Service | EnvelopeRepository.Service | ExecutionEventRepository.Service | ExecutionRepository.Service | MemoryRepository.Service | PermissionRuleRepository.Service | ContextEpochRepository.Service | ScheduleRepository.Service | SessionRepository.Service | SkillDefinitionRepository.Service | SteeringRepository.Service | ToolCallRepository.Service | WorkspaceLeaseRepository.Service>, BlobStore.Service>, ArtifactStore.Service>>;
128
+ }) => Layer.Layer<Database.Service | AddressBookRepository.Service | AgentChatRepository.Service | AgentDefinitionRepository.Service | ChildExecutionRepository.Service | ClusterRegistryRepository.Service | CompactionRepository.Service | EnvelopeRepository.Service | ExecutionEventRepository.Service | ExecutionRepository.Service | MemoryRepository.Service | PermissionRuleRepository.Service | ContextEpochRepository.Service | ScheduleRepository.Service | SessionRepository.Service | SkillDefinitionRepository.Service | SteeringRepository.Service | ToolCallRepository.Service | WorkspaceLeaseRepository.Service | AddressBook.Service | EventLog.Service | WaitService.Service | ToolRuntime.Service | AgentRegistry.Service | AddressResolution.Service | ChildRunService.Service | LanguageModelService.Service | ModelCallPolicy.Service | SchemaRegistry.Service | BlobStore.Service | ArtifactStore.Service | PromptAssembler.Service | AgentLoop.Service | ParentNotifier.Service | SkillRegistry.Service | ExecutionService.Service | ShardingConfig.ShardingConfig | WorkspacePlanner.Service | WorkflowEngine.WorkflowEngine | Sharding.Sharding | SchedulerService.Service | Service | Runners.Runners | MessageStorage.MessageStorage, Config.ConfigError | ClusterConfigMismatch | DatabaseError | LanguageModelError | ToolRuntimeError, import("effect/unstable/sql/SqlClient").SqlClient | import("effect/unstable/http/HttpServer").HttpServer | Exclude<Exclude<DatabaseIn, BlobStore.Service>, ArtifactStore.Service> | Exclude<Exclude<Exclude<LanguageModelIn, Database.Service | AddressBookRepository.Service | AgentChatRepository.Service | AgentDefinitionRepository.Service | ChildExecutionRepository.Service | ClusterRegistryRepository.Service | CompactionRepository.Service | EnvelopeRepository.Service | ExecutionEventRepository.Service | ExecutionRepository.Service | MemoryRepository.Service | PermissionRuleRepository.Service | ContextEpochRepository.Service | ScheduleRepository.Service | SessionRepository.Service | SkillDefinitionRepository.Service | SteeringRepository.Service | ToolCallRepository.Service | WorkspaceLeaseRepository.Service>, BlobStore.Service>, ArtifactStore.Service> | Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<LanguageModelIn, never>, WorkflowEngine.WorkflowEngine>, ShardingConfig.ShardingConfig | Sharding.Sharding | Runners.Runners | MessageStorage.MessageStorage>, Database.Service | AddressBookRepository.Service | AgentChatRepository.Service | AgentDefinitionRepository.Service | ChildExecutionRepository.Service | ClusterRegistryRepository.Service | CompactionRepository.Service | EnvelopeRepository.Service | ExecutionEventRepository.Service | ExecutionRepository.Service | MemoryRepository.Service | PermissionRuleRepository.Service | ContextEpochRepository.Service | ScheduleRepository.Service | SessionRepository.Service | SkillDefinitionRepository.Service | SteeringRepository.Service | ToolCallRepository.Service | WorkspaceLeaseRepository.Service>, BlobStore.Service>, ArtifactStore.Service> | Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<ToolRuntimeIn, WaitService.Service>, EventLog.Service>, LanguageModelService.Service>, never>, WorkflowEngine.WorkflowEngine>, ShardingConfig.ShardingConfig | Sharding.Sharding | Runners.Runners | MessageStorage.MessageStorage>, Database.Service | AddressBookRepository.Service | AgentChatRepository.Service | AgentDefinitionRepository.Service | ChildExecutionRepository.Service | ClusterRegistryRepository.Service | CompactionRepository.Service | EnvelopeRepository.Service | ExecutionEventRepository.Service | ExecutionRepository.Service | MemoryRepository.Service | PermissionRuleRepository.Service | ContextEpochRepository.Service | ScheduleRepository.Service | SessionRepository.Service | SkillDefinitionRepository.Service | SteeringRepository.Service | ToolCallRepository.Service | WorkspaceLeaseRepository.Service>, BlobStore.Service>, ArtifactStore.Service> | Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<ToolRuntimeIn, ChildRunService.Service>, ModelCallPolicy.Service>, PromptAssembler.Service>, SchemaRegistry.Service>, WaitService.Service>, EventLog.Service>, LanguageModelService.Service>, never>, WorkflowEngine.WorkflowEngine>, ShardingConfig.ShardingConfig | Sharding.Sharding | Runners.Runners | MessageStorage.MessageStorage>, Database.Service | AddressBookRepository.Service | AgentChatRepository.Service | AgentDefinitionRepository.Service | ChildExecutionRepository.Service | ClusterRegistryRepository.Service | CompactionRepository.Service | EnvelopeRepository.Service | ExecutionEventRepository.Service | ExecutionRepository.Service | MemoryRepository.Service | PermissionRuleRepository.Service | ContextEpochRepository.Service | ScheduleRepository.Service | SessionRepository.Service | SkillDefinitionRepository.Service | SteeringRepository.Service | ToolCallRepository.Service | WorkspaceLeaseRepository.Service>, BlobStore.Service>, ArtifactStore.Service>>;
129
129
  export declare const layerWithServicesMultiNodeClientOnly: <DatabaseError, DatabaseIn, LanguageModelError, LanguageModelIn, EmbeddingModelError, EmbeddingModelIn, ToolRuntimeError, ToolRuntimeIn>(options: {
130
130
  readonly databaseLayer: Layer.Layer<Database.Service, DatabaseError, DatabaseIn>;
131
131
  readonly languageModelLayer: Layer.Layer<LanguageModelService.Service, LanguageModelError, LanguageModelIn>;
@@ -136,21 +136,21 @@ export declare const layerWithServicesMultiNodeClientOnly: <DatabaseError, Datab
136
136
  readonly artifactStoreLayer?: Layer.Layer<ArtifactStore.Service> | undefined;
137
137
  readonly schemaRegistryLayer?: Layer.Layer<SchemaRegistry.Service> | undefined;
138
138
  readonly cluster?: ClusterHttpTuning | undefined;
139
- }) => Layer.Layer<Database.Service | AddressBookRepository.Service | AgentChatRepository.Service | AgentDefinitionRepository.Service | ChildExecutionRepository.Service | ClusterRegistryRepository.Service | CompactionRepository.Service | EnvelopeRepository.Service | ExecutionEventRepository.Service | ExecutionRepository.Service | MemoryRepository.Service | PermissionRuleRepository.Service | ContextEpochRepository.Service | ScheduleRepository.Service | SessionRepository.Service | SkillDefinitionRepository.Service | SteeringRepository.Service | ToolCallRepository.Service | WorkspaceLeaseRepository.Service | AddressBook.Service | AgentRegistry.Service | AddressResolution.Service | EventLog.Service | ChildRunService.Service | WaitService.Service | ToolRuntime.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, import("effect/unstable/sql/SqlClient").SqlClient | Exclude<Exclude<DatabaseIn, BlobStore.Service>, ArtifactStore.Service> | Exclude<Exclude<Exclude<Exclude<Exclude<LanguageModelIn, never>, ShardingConfig.ShardingConfig | Sharding.Sharding | Runners.Runners | MessageStorage.MessageStorage>, Database.Service | AddressBookRepository.Service | AgentChatRepository.Service | AgentDefinitionRepository.Service | ChildExecutionRepository.Service | ClusterRegistryRepository.Service | CompactionRepository.Service | EnvelopeRepository.Service | ExecutionEventRepository.Service | ExecutionRepository.Service | MemoryRepository.Service | PermissionRuleRepository.Service | ContextEpochRepository.Service | ScheduleRepository.Service | SessionRepository.Service | SkillDefinitionRepository.Service | SteeringRepository.Service | ToolCallRepository.Service | WorkspaceLeaseRepository.Service>, BlobStore.Service>, ArtifactStore.Service> | Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<ToolRuntimeIn, ChildRunService.Service>, ModelCallPolicy.Service>, PromptAssembler.Service>, SchemaRegistry.Service>, WaitService.Service>, EventLog.Service>, LanguageModelService.Service>, never>, ShardingConfig.ShardingConfig | Sharding.Sharding | Runners.Runners | MessageStorage.MessageStorage>, Database.Service | AddressBookRepository.Service | AgentChatRepository.Service | AgentDefinitionRepository.Service | ChildExecutionRepository.Service | ClusterRegistryRepository.Service | CompactionRepository.Service | EnvelopeRepository.Service | ExecutionEventRepository.Service | ExecutionRepository.Service | MemoryRepository.Service | PermissionRuleRepository.Service | ContextEpochRepository.Service | ScheduleRepository.Service | SessionRepository.Service | SkillDefinitionRepository.Service | SteeringRepository.Service | ToolCallRepository.Service | WorkspaceLeaseRepository.Service>, BlobStore.Service>, ArtifactStore.Service>>;
139
+ }) => Layer.Layer<Database.Service | AddressBookRepository.Service | AgentChatRepository.Service | AgentDefinitionRepository.Service | ChildExecutionRepository.Service | ClusterRegistryRepository.Service | CompactionRepository.Service | EnvelopeRepository.Service | ExecutionEventRepository.Service | ExecutionRepository.Service | MemoryRepository.Service | PermissionRuleRepository.Service | ContextEpochRepository.Service | ScheduleRepository.Service | SessionRepository.Service | SkillDefinitionRepository.Service | SteeringRepository.Service | ToolCallRepository.Service | WorkspaceLeaseRepository.Service | AddressBook.Service | EventLog.Service | WaitService.Service | ToolRuntime.Service | AgentRegistry.Service | AddressResolution.Service | ChildRunService.Service | LanguageModelService.Service | ModelCallPolicy.Service | SchemaRegistry.Service | BlobStore.Service | ArtifactStore.Service | PromptAssembler.Service | AgentLoop.Service | ParentNotifier.Service | SkillRegistry.Service | ExecutionService.Service | ShardingConfig.ShardingConfig | WorkspacePlanner.Service | Sharding.Sharding | Service | Runners.Runners | MessageStorage.MessageStorage, DatabaseError | LanguageModelError | ToolRuntimeError, import("effect/unstable/sql/SqlClient").SqlClient | Exclude<Exclude<DatabaseIn, BlobStore.Service>, ArtifactStore.Service> | Exclude<Exclude<Exclude<Exclude<Exclude<LanguageModelIn, never>, ShardingConfig.ShardingConfig | Sharding.Sharding | Runners.Runners | MessageStorage.MessageStorage>, Database.Service | AddressBookRepository.Service | AgentChatRepository.Service | AgentDefinitionRepository.Service | ChildExecutionRepository.Service | ClusterRegistryRepository.Service | CompactionRepository.Service | EnvelopeRepository.Service | ExecutionEventRepository.Service | ExecutionRepository.Service | MemoryRepository.Service | PermissionRuleRepository.Service | ContextEpochRepository.Service | ScheduleRepository.Service | SessionRepository.Service | SkillDefinitionRepository.Service | SteeringRepository.Service | ToolCallRepository.Service | WorkspaceLeaseRepository.Service>, BlobStore.Service>, ArtifactStore.Service> | Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<ToolRuntimeIn, WaitService.Service>, EventLog.Service>, LanguageModelService.Service>, never>, ShardingConfig.ShardingConfig | Sharding.Sharding | Runners.Runners | MessageStorage.MessageStorage>, Database.Service | AddressBookRepository.Service | AgentChatRepository.Service | AgentDefinitionRepository.Service | ChildExecutionRepository.Service | ClusterRegistryRepository.Service | CompactionRepository.Service | EnvelopeRepository.Service | ExecutionEventRepository.Service | ExecutionRepository.Service | MemoryRepository.Service | PermissionRuleRepository.Service | ContextEpochRepository.Service | ScheduleRepository.Service | SessionRepository.Service | SkillDefinitionRepository.Service | SteeringRepository.Service | ToolCallRepository.Service | WorkspaceLeaseRepository.Service>, BlobStore.Service>, ArtifactStore.Service> | Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<ToolRuntimeIn, ChildRunService.Service>, ModelCallPolicy.Service>, PromptAssembler.Service>, SchemaRegistry.Service>, WaitService.Service>, EventLog.Service>, LanguageModelService.Service>, never>, ShardingConfig.ShardingConfig | Sharding.Sharding | Runners.Runners | MessageStorage.MessageStorage>, Database.Service | AddressBookRepository.Service | AgentChatRepository.Service | AgentDefinitionRepository.Service | ChildExecutionRepository.Service | ClusterRegistryRepository.Service | CompactionRepository.Service | EnvelopeRepository.Service | ExecutionEventRepository.Service | ExecutionRepository.Service | MemoryRepository.Service | PermissionRuleRepository.Service | ContextEpochRepository.Service | ScheduleRepository.Service | SessionRepository.Service | SkillDefinitionRepository.Service | SteeringRepository.Service | ToolCallRepository.Service | WorkspaceLeaseRepository.Service>, BlobStore.Service>, ArtifactStore.Service>>;
140
140
  export declare const layerWithLanguageModelService: <DatabaseError, DatabaseIn, LanguageModelError, LanguageModelIn>(options: {
141
141
  readonly databaseLayer: Layer.Layer<Database.Service, DatabaseError, DatabaseIn>;
142
142
  readonly languageModelLayer: Layer.Layer<LanguageModelService.Service, LanguageModelError, LanguageModelIn>;
143
- }) => Layer.Layer<Database.Service | AddressBookRepository.Service | AgentChatRepository.Service | AgentDefinitionRepository.Service | ChildExecutionRepository.Service | ClusterRegistryRepository.Service | CompactionRepository.Service | EnvelopeRepository.Service | ExecutionEventRepository.Service | ExecutionRepository.Service | MemoryRepository.Service | PermissionRuleRepository.Service | ContextEpochRepository.Service | ScheduleRepository.Service | SessionRepository.Service | SkillDefinitionRepository.Service | SteeringRepository.Service | ToolCallRepository.Service | WorkspaceLeaseRepository.Service | AddressBook.Service | AgentRegistry.Service | AddressResolution.Service | EventLog.Service | ChildRunService.Service | WaitService.Service | ToolRuntime.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, import("effect/unstable/sql/SqlClient").SqlClient | Exclude<Exclude<DatabaseIn, BlobStore.Service>, ArtifactStore.Service> | Exclude<Exclude<Exclude<LanguageModelIn, Database.Service | AddressBookRepository.Service | AgentChatRepository.Service | AgentDefinitionRepository.Service | ChildExecutionRepository.Service | ClusterRegistryRepository.Service | CompactionRepository.Service | EnvelopeRepository.Service | ExecutionEventRepository.Service | ExecutionRepository.Service | MemoryRepository.Service | PermissionRuleRepository.Service | ContextEpochRepository.Service | ScheduleRepository.Service | SessionRepository.Service | SkillDefinitionRepository.Service | SteeringRepository.Service | ToolCallRepository.Service | WorkspaceLeaseRepository.Service>, BlobStore.Service>, ArtifactStore.Service> | Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<LanguageModelIn, never>, WorkflowEngine.WorkflowEngine>, ShardingConfig.ShardingConfig | Sharding.Sharding | Runners.Runners | MessageStorage.MessageStorage>, Database.Service | AddressBookRepository.Service | AgentChatRepository.Service | AgentDefinitionRepository.Service | ChildExecutionRepository.Service | ClusterRegistryRepository.Service | CompactionRepository.Service | EnvelopeRepository.Service | ExecutionEventRepository.Service | ExecutionRepository.Service | MemoryRepository.Service | PermissionRuleRepository.Service | ContextEpochRepository.Service | ScheduleRepository.Service | SessionRepository.Service | SkillDefinitionRepository.Service | SteeringRepository.Service | ToolCallRepository.Service | WorkspaceLeaseRepository.Service>, BlobStore.Service>, ArtifactStore.Service>>;
144
- export declare const layer: Layer.Layer<Database.Service | AddressBookRepository.Service | AgentChatRepository.Service | AgentDefinitionRepository.Service | ChildExecutionRepository.Service | ClusterRegistryRepository.Service | CompactionRepository.Service | EnvelopeRepository.Service | ExecutionEventRepository.Service | ExecutionRepository.Service | MemoryRepository.Service | PermissionRuleRepository.Service | ContextEpochRepository.Service | ScheduleRepository.Service | SessionRepository.Service | SkillDefinitionRepository.Service | SteeringRepository.Service | ToolCallRepository.Service | WorkspaceLeaseRepository.Service | AddressBook.Service | AgentRegistry.Service | AddressResolution.Service | EventLog.Service | ChildRunService.Service | WaitService.Service | ToolRuntime.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 | import("effect/unstable/sql/SqlClient").SqlClient>;
143
+ }) => Layer.Layer<Database.Service | AddressBookRepository.Service | AgentChatRepository.Service | AgentDefinitionRepository.Service | ChildExecutionRepository.Service | ClusterRegistryRepository.Service | CompactionRepository.Service | EnvelopeRepository.Service | ExecutionEventRepository.Service | ExecutionRepository.Service | MemoryRepository.Service | PermissionRuleRepository.Service | ContextEpochRepository.Service | ScheduleRepository.Service | SessionRepository.Service | SkillDefinitionRepository.Service | SteeringRepository.Service | ToolCallRepository.Service | WorkspaceLeaseRepository.Service | AddressBook.Service | EventLog.Service | WaitService.Service | ToolRuntime.Service | AgentRegistry.Service | AddressResolution.Service | ChildRunService.Service | LanguageModelService.Service | ModelCallPolicy.Service | SchemaRegistry.Service | BlobStore.Service | ArtifactStore.Service | PromptAssembler.Service | AgentLoop.Service | ParentNotifier.Service | SkillRegistry.Service | ExecutionService.Service | ShardingConfig.ShardingConfig | WorkspacePlanner.Service | WorkflowEngine.WorkflowEngine | Sharding.Sharding | SchedulerService.Service | Service | Runners.Runners | MessageStorage.MessageStorage, Config.ConfigError | ClusterConfigMismatch | DatabaseError | LanguageModelError, import("effect/unstable/sql/SqlClient").SqlClient | Exclude<Exclude<DatabaseIn, BlobStore.Service>, ArtifactStore.Service> | Exclude<Exclude<Exclude<LanguageModelIn, Database.Service | AddressBookRepository.Service | AgentChatRepository.Service | AgentDefinitionRepository.Service | ChildExecutionRepository.Service | ClusterRegistryRepository.Service | CompactionRepository.Service | EnvelopeRepository.Service | ExecutionEventRepository.Service | ExecutionRepository.Service | MemoryRepository.Service | PermissionRuleRepository.Service | ContextEpochRepository.Service | ScheduleRepository.Service | SessionRepository.Service | SkillDefinitionRepository.Service | SteeringRepository.Service | ToolCallRepository.Service | WorkspaceLeaseRepository.Service>, BlobStore.Service>, ArtifactStore.Service> | Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<LanguageModelIn, never>, WorkflowEngine.WorkflowEngine>, ShardingConfig.ShardingConfig | Sharding.Sharding | Runners.Runners | MessageStorage.MessageStorage>, Database.Service | AddressBookRepository.Service | AgentChatRepository.Service | AgentDefinitionRepository.Service | ChildExecutionRepository.Service | ClusterRegistryRepository.Service | CompactionRepository.Service | EnvelopeRepository.Service | ExecutionEventRepository.Service | ExecutionRepository.Service | MemoryRepository.Service | PermissionRuleRepository.Service | ContextEpochRepository.Service | ScheduleRepository.Service | SessionRepository.Service | SkillDefinitionRepository.Service | SteeringRepository.Service | ToolCallRepository.Service | WorkspaceLeaseRepository.Service>, BlobStore.Service>, ArtifactStore.Service>>;
144
+ export declare const layer: Layer.Layer<Database.Service | AddressBookRepository.Service | AgentChatRepository.Service | AgentDefinitionRepository.Service | ChildExecutionRepository.Service | ClusterRegistryRepository.Service | CompactionRepository.Service | EnvelopeRepository.Service | ExecutionEventRepository.Service | ExecutionRepository.Service | MemoryRepository.Service | PermissionRuleRepository.Service | ContextEpochRepository.Service | ScheduleRepository.Service | SessionRepository.Service | SkillDefinitionRepository.Service | SteeringRepository.Service | ToolCallRepository.Service | WorkspaceLeaseRepository.Service | AddressBook.Service | EventLog.Service | WaitService.Service | ToolRuntime.Service | AgentRegistry.Service | AddressResolution.Service | ChildRunService.Service | LanguageModelService.Service | ModelCallPolicy.Service | SchemaRegistry.Service | BlobStore.Service | ArtifactStore.Service | PromptAssembler.Service | AgentLoop.Service | ParentNotifier.Service | SkillRegistry.Service | ExecutionService.Service | ShardingConfig.ShardingConfig | WorkspacePlanner.Service | WorkflowEngine.WorkflowEngine | Sharding.Sharding | SchedulerService.Service | Service | Runners.Runners | MessageStorage.MessageStorage, Config.ConfigError | ClusterConfigMismatch, import("@effect/sql-pg/PgClient").PgClient | import("effect/unstable/sql/SqlClient").SqlClient>;
145
145
  export declare const testLayerWithServices: <LanguageModelError, LanguageModelIn, ToolRuntimeError, ToolRuntimeIn>(options: {
146
146
  readonly languageModelLayer: Layer.Layer<LanguageModelService.Service, LanguageModelError, LanguageModelIn>;
147
147
  readonly embeddingModelLayer?: Layer.Layer<EmbeddingModelService.Service> | undefined;
148
148
  readonly toolRuntimeLayer: Layer.Layer<ToolRuntime.Service, ToolRuntimeError, ToolRuntimeIn>;
149
- }) => 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 | AgentRegistry.Service | AddressResolution.Service | EventLog.Service | ChildRunService.Service | WaitService.Service | ToolRuntime.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<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 | 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> | 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>>;
150
- 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 | AgentRegistry.Service | AddressResolution.Service | EventLog.Service | ChildRunService.Service | WaitService.Service | ToolRuntime.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<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 | 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>>;
151
- 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 | AgentRegistry.Service | AddressResolution.Service | EventLog.Service | ChildRunService.Service | WaitService.Service | ToolRuntime.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>;
152
- 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 | AgentRegistry.Service | AddressResolution.Service | EventLog.Service | ChildRunService.Service | WaitService.Service | ToolRuntime.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>;
153
- 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 | AgentRegistry.Service | AddressResolution.Service | EventLog.Service | ChildRunService.Service | WaitService.Service | ToolRuntime.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, DatabaseIn>;
154
- 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 | AgentRegistry.Service | AddressResolution.Service | EventLog.Service | ChildRunService.Service | WaitService.Service | ToolRuntime.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, DatabaseIn>;
149
+ }) => 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>>;
150
+ 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>>;
151
+ 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>;
152
+ 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>;
153
+ 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>>;
154
+ 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>>;
155
155
  export declare const check: () => Effect.Effect<ReadinessStatus, RunnerRuntimeError, Service>;
156
156
  export {};
@@ -0,0 +1,6 @@
1
+ import { Tool } from "../../schema/index";
2
+ import { Crypto, Effect } from "effect";
3
+ export declare const digestInputSchema: (inputSchema: import("effect/Schema").Json) => Effect.Effect<string, import("effect/PlatformError").PlatformError, Crypto.Crypto>;
4
+ export declare const digestDefinitions: (definitions: readonly Tool.Definition[], toolNames: readonly string[]) => Effect.Effect<{
5
+ [k: string]: string;
6
+ }, import("effect/PlatformError").PlatformError, Crypto.Crypto>;
@@ -0,0 +1,89 @@
1
+ import { Crypto, Effect, Schema } from "effect";
2
+ export declare const ActivityManifestEntry: Schema.Struct<{
3
+ readonly name: Schema.String;
4
+ readonly signature_hash: Schema.String;
5
+ }>;
6
+ export interface ActivityManifestEntry extends Schema.Schema.Type<typeof ActivityManifestEntry> {
7
+ }
8
+ export declare const ActivityManifest: Schema.Struct<{
9
+ readonly version: Schema.Literal<1>;
10
+ readonly generated_from: Schema.String;
11
+ readonly hash_algorithm: Schema.Literal<"sha256-json-schema-v1">;
12
+ readonly activities: Schema.$Array<Schema.Struct<{
13
+ readonly name: Schema.String;
14
+ readonly signature_hash: Schema.String;
15
+ }>>;
16
+ }>;
17
+ export interface ActivityManifest extends Schema.Schema.Type<typeof ActivityManifest> {
18
+ }
19
+ export declare const ActivityManifestChange: Schema.Struct<{
20
+ readonly type: Schema.Literals<readonly ["removed", "changed", "added"]>;
21
+ readonly name: Schema.String;
22
+ readonly baseline_hash: Schema.optionalKey<Schema.String>;
23
+ readonly current_hash: Schema.optionalKey<Schema.String>;
24
+ }>;
25
+ export interface ActivityManifestChange extends Schema.Schema.Type<typeof ActivityManifestChange> {
26
+ }
27
+ export declare const ActivityManifestGuardResult: Schema.Struct<{
28
+ readonly status: Schema.Literals<readonly ["pass", "fail"]>;
29
+ readonly waiting_executions: Schema.Int;
30
+ readonly breaking_changes: Schema.$Array<Schema.Struct<{
31
+ readonly type: Schema.Literals<readonly ["removed", "changed", "added"]>;
32
+ readonly name: Schema.String;
33
+ readonly baseline_hash: Schema.optionalKey<Schema.String>;
34
+ readonly current_hash: Schema.optionalKey<Schema.String>;
35
+ }>>;
36
+ readonly additive_changes: Schema.$Array<Schema.Struct<{
37
+ readonly type: Schema.Literals<readonly ["removed", "changed", "added"]>;
38
+ readonly name: Schema.String;
39
+ readonly baseline_hash: Schema.optionalKey<Schema.String>;
40
+ readonly current_hash: Schema.optionalKey<Schema.String>;
41
+ }>>;
42
+ }>;
43
+ export interface ActivityManifestGuardResult extends Schema.Schema.Type<typeof ActivityManifestGuardResult> {
44
+ }
45
+ declare const ActivityManifestGuardFailed_base: Schema.Class<ActivityManifestGuardFailed, Schema.TaggedStruct<"ActivityManifestGuardFailed", {
46
+ readonly message: Schema.String;
47
+ readonly result: Schema.Struct<{
48
+ readonly status: Schema.Literals<readonly ["pass", "fail"]>;
49
+ readonly waiting_executions: Schema.Int;
50
+ readonly breaking_changes: Schema.$Array<Schema.Struct<{
51
+ readonly type: Schema.Literals<readonly ["removed", "changed", "added"]>;
52
+ readonly name: Schema.String;
53
+ readonly baseline_hash: Schema.optionalKey<Schema.String>;
54
+ readonly current_hash: Schema.optionalKey<Schema.String>;
55
+ }>>;
56
+ readonly additive_changes: Schema.$Array<Schema.Struct<{
57
+ readonly type: Schema.Literals<readonly ["removed", "changed", "added"]>;
58
+ readonly name: Schema.String;
59
+ readonly baseline_hash: Schema.optionalKey<Schema.String>;
60
+ readonly current_hash: Schema.optionalKey<Schema.String>;
61
+ }>>;
62
+ }>;
63
+ }>, import("effect/Cause").YieldableError>;
64
+ export declare class ActivityManifestGuardFailed extends ActivityManifestGuardFailed_base {
65
+ }
66
+ export declare const currentManifest: () => Effect.Effect<{
67
+ version: 1;
68
+ generated_from: string;
69
+ hash_algorithm: "sha256-json-schema-v1";
70
+ activities: {
71
+ name: string;
72
+ signature_hash: string;
73
+ }[];
74
+ }, import("effect/PlatformError").PlatformError, Crypto.Crypto>;
75
+ export declare const diffManifests: (baseline: ActivityManifest, current: ActivityManifest) => {
76
+ breaking: ActivityManifestChange[];
77
+ additive: ActivityManifestChange[];
78
+ };
79
+ export declare const evaluateGuard: (input: {
80
+ readonly baseline: ActivityManifest;
81
+ readonly current: ActivityManifest;
82
+ readonly waitingExecutions: number;
83
+ }) => ActivityManifestGuardResult;
84
+ export declare const guard: (input: {
85
+ readonly baseline: ActivityManifest;
86
+ readonly current: ActivityManifest;
87
+ readonly waitingExecutions: number;
88
+ }) => Effect.Effect<ActivityManifestGuardResult, ActivityManifestGuardFailed, never>;
89
+ export {};
@@ -4,6 +4,7 @@ import { Workflow } from "effect/unstable/workflow";
4
4
  import { Effect, Layer, Option, Schema } from "effect";
5
5
  import * as AddressResolution from "../address/address-resolution-service";
6
6
  import * as AgentLoop from "../agent/agent-loop-service";
7
+ import * as ParentNotifier from "../child/parent-notifier-service";
7
8
  import * as SkillRegistry from "../skill/skill-registry-service";
8
9
  import * as EventLog from "../execution/event-log-service";
9
10
  import * as ExecutionService from "../execution/execution-service";
@@ -136,6 +137,7 @@ export declare const StartInput: Schema.Struct<{
136
137
  readonly output_schema_ref: Schema.optionalKey<Schema.String>;
137
138
  readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
138
139
  }>>;
140
+ readonly agent_definition_tool_input_schema_digests: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
139
141
  readonly wait_id: Schema.optionalKey<Schema.brand<Schema.String, "Relay.WaitId"> & {
140
142
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WaitId">;
141
143
  }>;
@@ -222,6 +224,41 @@ export declare const StartResult: Schema.Struct<{
222
224
  }>;
223
225
  export interface StartResult extends Schema.Schema.Type<typeof StartResult> {
224
226
  }
227
+ export declare const StartExecutionWorkflowName = "Relay/Execution/Start";
228
+ export declare const ActivityNames: {
229
+ readonly resolveLocalAgent: "Relay/Execution/Start/ResolveLocalAgent";
230
+ readonly accept: "Relay/Execution/Start/Accept";
231
+ readonly cancel: (turn: number) => string;
232
+ readonly checkCancel: (turn: number) => string;
233
+ readonly loadWaitBeforeSleep: (waitId: Ids.WaitId) => string;
234
+ readonly loadWaitAfterWake: (waitId: Ids.WaitId) => string;
235
+ readonly markWaiting: (waitId: Ids.WaitId) => string;
236
+ readonly ensureWorkspace: "Relay/Execution/Start/EnsureWorkspace";
237
+ readonly suspendWorkspace: (key: string) => string;
238
+ readonly resumeWorkspace: (key: string) => string;
239
+ readonly releaseWorkspace: "Relay/Execution/Start/ReleaseWorkspace";
240
+ readonly complete: (turn: number) => string;
241
+ readonly checkQueuedChildCancellation: "Relay/Execution/Start/CheckQueuedChildCancellation";
242
+ readonly notifyParent: (status: ParentNotifier.ChildTerminalStatus) => string;
243
+ readonly continueAsNew: (turn: number) => string;
244
+ };
245
+ export declare const ActivityNameTemplates: {
246
+ readonly resolveLocalAgent: "Relay/Execution/Start/ResolveLocalAgent";
247
+ readonly accept: "Relay/Execution/Start/Accept";
248
+ readonly cancel: "Relay/Execution/Start/Cancel/:turn";
249
+ readonly checkCancel: "Relay/Execution/Start/CheckCancel/:turn";
250
+ readonly loadWaitBeforeSleep: "Relay/Execution/Start/LoadWaitBeforeSleep/:wait_id";
251
+ readonly loadWaitAfterWake: "Relay/Execution/Start/LoadWaitAfterWake/:wait_id";
252
+ readonly markWaiting: "Relay/Execution/Start/MarkWaiting/:wait_id";
253
+ readonly ensureWorkspace: "Relay/Execution/Start/EnsureWorkspace";
254
+ readonly suspendWorkspace: "Relay/Execution/Start/SuspendWorkspace/:key";
255
+ readonly resumeWorkspace: "Relay/Execution/Start/ResumeWorkspace/:key";
256
+ readonly releaseWorkspace: "Relay/Execution/Start/ReleaseWorkspace";
257
+ readonly complete: "Relay/Execution/Start/Complete/:turn";
258
+ readonly checkQueuedChildCancellation: "Relay/Execution/Start/CheckQueuedChildCancellation";
259
+ readonly notifyParent: "Relay/Execution/Start/NotifyParent/:status";
260
+ readonly continueAsNew: "Relay/Execution/Start/ContinueAsNew/:turn";
261
+ };
225
262
  export declare const StartExecutionWorkflow: Workflow.Workflow<"Relay/Execution/Start", Schema.Struct<{
226
263
  readonly execution_id: Schema.brand<Schema.String, "Relay.ExecutionId"> & {
227
264
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.ExecutionId">;
@@ -343,6 +380,7 @@ export declare const StartExecutionWorkflow: Workflow.Workflow<"Relay/Execution/
343
380
  readonly output_schema_ref: Schema.optionalKey<Schema.String>;
344
381
  readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
345
382
  }>>;
383
+ readonly agent_definition_tool_input_schema_digests: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
346
384
  readonly wait_id: Schema.optionalKey<Schema.brand<Schema.String, "Relay.WaitId"> & {
347
385
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WaitId">;
348
386
  }>;
@@ -368,7 +406,7 @@ export declare const StartExecutionWorkflow: Workflow.Workflow<"Relay/Execution/
368
406
  readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
369
407
  }>, typeof ExecutionWorkflowFailed>;
370
408
  export declare const sessionEntryScope: (input: StartInput, turn: number) => string;
371
- export declare const layer: Layer.Layer<never, never, ChildExecutionRepository.Service | ExecutionRepository.Service | AddressResolution.Service | EventLog.Service | WaitService.Service | ToolRuntime.Service | AgentLoop.Service | SkillRegistry.Service | ExecutionService.Service | WorkspacePlanner.Service | import("effect/unstable/workflow/WorkflowEngine").WorkflowEngine>;
409
+ export declare const layer: Layer.Layer<never, never, ChildExecutionRepository.Service | ExecutionRepository.Service | EventLog.Service | WaitService.Service | ToolRuntime.Service | AddressResolution.Service | AgentLoop.Service | SkillRegistry.Service | ExecutionService.Service | WorkspacePlanner.Service | import("effect/unstable/workflow/WorkflowEngine").WorkflowEngine>;
372
410
  export declare const start: <const Discard extends boolean = false>(input: StartInput, options?: {
373
411
  readonly discard?: Discard;
374
412
  }) => Effect.Effect<Discard extends true ? string : {