@relayfx/sdk 0.0.1

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 (73) hide show
  1. package/dist/index.js +8449 -0
  2. package/dist/migrations/20260701002839_sour_cerebro/migration.sql +160 -0
  3. package/dist/migrations/20260701002839_sour_cerebro/snapshot.json +1971 -0
  4. package/dist/migrations/20260701041134_acoustic_hulk/migration.sql +30 -0
  5. package/dist/migrations/20260701041134_acoustic_hulk/snapshot.json +2372 -0
  6. package/dist/migrations/20260701160543_condemned_stryfe/migration.sql +2 -0
  7. package/dist/migrations/20260701160543_condemned_stryfe/snapshot.json +2442 -0
  8. package/dist/migrations/20260701220315_heavy_gorgon/migration.sql +5 -0
  9. package/dist/migrations/20260701220315_heavy_gorgon/snapshot.json +2495 -0
  10. package/dist/migrations/20260701225444_polite_lord_hawal/migration.sql +24 -0
  11. package/dist/migrations/20260701225444_polite_lord_hawal/snapshot.json +2821 -0
  12. package/dist/migrations/20260702030128_flaky_misty_knight/migration.sql +1 -0
  13. package/dist/migrations/20260702030128_flaky_misty_knight/snapshot.json +2821 -0
  14. package/dist/types/ai/index.d.ts +2 -0
  15. package/dist/types/ai/language-model/language-model-registration.d.ts +89 -0
  16. package/dist/types/relay/adapter-outbox.d.ts +19 -0
  17. package/dist/types/relay/client.d.ts +102 -0
  18. package/dist/types/relay/database.d.ts +11 -0
  19. package/dist/types/relay/index.d.ts +10 -0
  20. package/dist/types/relay/operation.d.ts +921 -0
  21. package/dist/types/runtime/address/address-book-service.d.ts +74 -0
  22. package/dist/types/runtime/address/address-resolution-service.d.ts +106 -0
  23. package/dist/types/runtime/agent/agent-loop-service.d.ts +53 -0
  24. package/dist/types/runtime/agent/agent-registry-service.d.ts +31 -0
  25. package/dist/types/runtime/agent/prompt-assembler-service.d.ts +102 -0
  26. package/dist/types/runtime/child/child-run-service.d.ts +90 -0
  27. package/dist/types/runtime/child/parent-notifier-service.d.ts +40 -0
  28. package/dist/types/runtime/cluster/execution-entity.d.ts +393 -0
  29. package/dist/types/runtime/content/artifact-store-service.d.ts +73 -0
  30. package/dist/types/runtime/content/blob-store-service.d.ts +87 -0
  31. package/dist/types/runtime/envelope/envelope-service.d.ts +52 -0
  32. package/dist/types/runtime/execution/event-log-service.d.ts +54 -0
  33. package/dist/types/runtime/execution/execution-service.d.ts +62 -0
  34. package/dist/types/runtime/index.d.ts +25 -0
  35. package/dist/types/runtime/model/language-model-service.d.ts +58 -0
  36. package/dist/types/runtime/model/model-call-policy.d.ts +53 -0
  37. package/dist/types/runtime/observability/runtime-metrics.d.ts +9 -0
  38. package/dist/types/runtime/runner/runner-runtime-service.d.ts +132 -0
  39. package/dist/types/runtime/schedule/scheduler-service.d.ts +34 -0
  40. package/dist/types/runtime/tool/tool-runtime-service.d.ts +85 -0
  41. package/dist/types/runtime/wait/wait-service.d.ts +80 -0
  42. package/dist/types/runtime/wait/wait-signal.d.ts +15 -0
  43. package/dist/types/runtime/workflow/execution-workflow.d.ts +335 -0
  44. package/dist/types/runtime/workspace/workspace-planner-service.d.ts +63 -0
  45. package/dist/types/runtime/workspace/workspace-provider-service.d.ts +108 -0
  46. package/dist/types/runtime/workspace/workspace-runtime-service.d.ts +21 -0
  47. package/dist/types/schema/address-schema.d.ts +77 -0
  48. package/dist/types/schema/agent-schema.d.ts +360 -0
  49. package/dist/types/schema/content-schema.d.ts +106 -0
  50. package/dist/types/schema/envelope-schema.d.ts +167 -0
  51. package/dist/types/schema/execution-schema.d.ts +297 -0
  52. package/dist/types/schema/ids-schema.d.ts +61 -0
  53. package/dist/types/schema/index.d.ts +11 -0
  54. package/dist/types/schema/schedule-schema.d.ts +73 -0
  55. package/dist/types/schema/shared-schema.d.ts +11 -0
  56. package/dist/types/schema/tool-schema.d.ts +53 -0
  57. package/dist/types/schema/workspace-schema.d.ts +78 -0
  58. package/dist/types/store-sql/address/address-book-repository.d.ts +48 -0
  59. package/dist/types/store-sql/agent/agent-definition-repository.d.ts +49 -0
  60. package/dist/types/store-sql/chat/agent-chat-repository.d.ts +31 -0
  61. package/dist/types/store-sql/child/child-execution-repository.d.ts +61 -0
  62. package/dist/types/store-sql/cluster/cluster-registry-repository.d.ts +35 -0
  63. package/dist/types/store-sql/database/database-service.d.ts +25 -0
  64. package/dist/types/store-sql/envelope/envelope-repository.d.ts +158 -0
  65. package/dist/types/store-sql/execution/execution-event-repository.d.ts +86 -0
  66. package/dist/types/store-sql/execution/execution-repository.d.ts +80 -0
  67. package/dist/types/store-sql/idempotency/idempotency-repository.d.ts +42 -0
  68. package/dist/types/store-sql/index.d.ts +15 -0
  69. package/dist/types/store-sql/schedule/schedule-repository.d.ts +83 -0
  70. package/dist/types/store-sql/schema/relay-schema.d.ts +2302 -0
  71. package/dist/types/store-sql/tool/tool-call-repository.d.ts +66 -0
  72. package/dist/types/store-sql/workspace/workspace-lease-repository.d.ts +87 -0
  73. package/package.json +44 -0
@@ -0,0 +1,2 @@
1
+ export * as LanguageModelRegistration from "./language-model/language-model-registration";
2
+ export declare const aiPackage = "./index";
@@ -0,0 +1,89 @@
1
+ import * as Anthropic from "@effect/ai-anthropic";
2
+ import * as OpenAi from "@effect/ai-openai";
3
+ import * as OpenAiCompat from "@effect/ai-openai-compat";
4
+ import * as OpenRouter from "@effect/ai-openrouter";
5
+ import { ModelRegistry } from "@batonfx/core";
6
+ import { Config, Effect, Layer, Redacted } from "effect";
7
+ export interface RegistrationOptions {
8
+ readonly registrationKey?: string;
9
+ readonly metadata?: ModelRegistry.Metadata;
10
+ }
11
+ export interface OpenAiInput extends RegistrationOptions {
12
+ readonly model: string;
13
+ readonly config?: Omit<typeof OpenAi.OpenAiLanguageModel.Config.Service, "model">;
14
+ }
15
+ export interface AnthropicInput extends RegistrationOptions {
16
+ readonly model: string;
17
+ readonly config?: Omit<typeof Anthropic.AnthropicLanguageModel.Config.Service, "model">;
18
+ }
19
+ export interface OpenRouterInput extends RegistrationOptions {
20
+ readonly model: string;
21
+ readonly config?: Omit<typeof OpenRouter.OpenRouterLanguageModel.Config.Service, "model">;
22
+ }
23
+ export interface OpenAiCompatibleInput extends RegistrationOptions {
24
+ readonly provider?: string;
25
+ readonly model: string;
26
+ readonly config?: Omit<typeof OpenAiCompat.OpenAiLanguageModel.Config.Service, "model">;
27
+ }
28
+ export declare const openAi: (input: OpenAiInput) => Effect.Effect<ModelRegistry.Registration, never, OpenAi.OpenAiClient.OpenAiClient>;
29
+ export declare const anthropic: (input: AnthropicInput) => Effect.Effect<ModelRegistry.Registration, never, Anthropic.AnthropicClient.AnthropicClient>;
30
+ export declare const openRouter: (input: OpenRouterInput) => Effect.Effect<ModelRegistry.Registration, never, OpenRouter.OpenRouterClient.OpenRouterClient>;
31
+ export declare const openAiCompatible: (input: OpenAiCompatibleInput) => Effect.Effect<ModelRegistry.Registration, never, OpenAiCompat.OpenAiClient.OpenAiClient>;
32
+ export declare const openAiClientLayerConfig: (options?: {
33
+ readonly apiKey?: Config.Config<Redacted.Redacted<string> | undefined> | undefined;
34
+ readonly apiUrl?: Config.Config<string> | undefined;
35
+ readonly organizationId?: Config.Config<Redacted.Redacted<string> | undefined> | undefined;
36
+ readonly projectId?: Config.Config<Redacted.Redacted<string> | undefined> | undefined;
37
+ readonly transformClient?: ((client: import("effect/unstable/http/HttpClient").HttpClient) => import("effect/unstable/http/HttpClient").HttpClient) | undefined;
38
+ }) => Layer.Layer<OpenAi.OpenAiClient.OpenAiClient, Config.ConfigError, import("effect/unstable/http/HttpClient").HttpClient>;
39
+ export declare const anthropicClientLayerConfig: (options?: {
40
+ readonly apiKey?: Config.Config<Redacted.Redacted<string> | undefined> | undefined;
41
+ readonly apiUrl?: Config.Config<string> | undefined;
42
+ readonly apiVersion?: Config.Config<string> | undefined;
43
+ readonly transformClient?: ((client: import("effect/unstable/http/HttpClient").HttpClient) => import("effect/unstable/http/HttpClient").HttpClient) | undefined;
44
+ }) => Layer.Layer<Anthropic.AnthropicClient.AnthropicClient, Config.ConfigError, import("effect/unstable/http/HttpClient").HttpClient>;
45
+ export declare const openRouterClientLayerConfig: (options?: {
46
+ readonly apiKey?: Config.Config<Redacted.Redacted<string> | undefined> | undefined;
47
+ readonly apiUrl?: Config.Config<string> | undefined;
48
+ readonly siteReferrer?: Config.Config<string> | undefined;
49
+ readonly siteTitle?: Config.Config<string> | undefined;
50
+ readonly transformClient?: ((client: import("effect/unstable/http/HttpClient").HttpClient) => import("effect/unstable/http/HttpClient").HttpClient) | undefined;
51
+ }) => Layer.Layer<OpenRouter.OpenRouterClient.OpenRouterClient, Config.ConfigError, import("effect/unstable/http/HttpClient").HttpClient>;
52
+ export declare const openAiCompatibleClientLayerConfig: (options?: {
53
+ readonly apiKey?: Config.Config<Redacted.Redacted<string> | undefined> | undefined;
54
+ readonly apiUrl?: Config.Config<string> | undefined;
55
+ readonly organizationId?: Config.Config<Redacted.Redacted<string> | undefined> | undefined;
56
+ readonly projectId?: Config.Config<Redacted.Redacted<string> | undefined> | undefined;
57
+ readonly transformClient?: ((client: import("effect/unstable/http/HttpClient").HttpClient) => import("effect/unstable/http/HttpClient").HttpClient) | undefined;
58
+ }) => Layer.Layer<OpenAiCompat.OpenAiClient.OpenAiClient, Config.ConfigError, import("effect/unstable/http/HttpClient").HttpClient>;
59
+ export interface WithOpenAiOptions extends OpenAiInput {
60
+ readonly apiKey: Config.Config<Redacted.Redacted<string>>;
61
+ readonly clientConfig?: Omit<NonNullable<Parameters<typeof OpenAi.OpenAiClient.layerConfig>[0]>, "apiKey">;
62
+ }
63
+ export interface WithAnthropicOptions extends AnthropicInput {
64
+ readonly apiKey: Config.Config<Redacted.Redacted<string>>;
65
+ readonly clientConfig?: Omit<NonNullable<Parameters<typeof Anthropic.AnthropicClient.layerConfig>[0]>, "apiKey">;
66
+ }
67
+ export interface WithOpenRouterOptions extends OpenRouterInput {
68
+ readonly apiKey: Config.Config<Redacted.Redacted<string>>;
69
+ readonly clientConfig?: Omit<NonNullable<Parameters<typeof OpenRouter.OpenRouterClient.layerConfig>[0]>, "apiKey">;
70
+ }
71
+ export interface WithOpenAiCompatibleOptions extends OpenAiCompatibleInput {
72
+ readonly apiKey: Config.Config<Redacted.Redacted<string>>;
73
+ readonly clientConfig?: Omit<NonNullable<Parameters<typeof OpenAiCompat.OpenAiClient.layerConfig>[0]>, "apiKey">;
74
+ }
75
+ export declare const withOpenAi: (options: WithOpenAiOptions) => Layer.Layer<ModelRegistry.Service, Config.ConfigError, never>;
76
+ export declare const withAnthropic: (options: WithAnthropicOptions) => Layer.Layer<ModelRegistry.Service, Config.ConfigError, never>;
77
+ export declare const withOpenRouter: (options: WithOpenRouterOptions) => Layer.Layer<ModelRegistry.Service, Config.ConfigError, never>;
78
+ export declare const withOpenAiCompatible: (options: WithOpenAiCompatibleOptions) => Layer.Layer<ModelRegistry.Service, Config.ConfigError, never>;
79
+ export interface DeterministicInput extends RegistrationOptions {
80
+ readonly provider?: string;
81
+ readonly model?: string;
82
+ }
83
+ export declare const deterministicModel: (input?: DeterministicInput) => Effect.Effect<ModelRegistry.Registration, never, never>;
84
+ export declare const withDeterministic: (input?: DeterministicInput) => Layer.Layer<ModelRegistry.Service, never, never>;
85
+ export interface WithOpenAiOrDeterministicOptions extends WithOpenAiOptions {
86
+ readonly fallbackModel: string;
87
+ readonly fallbackProvider?: string;
88
+ }
89
+ export declare const withOpenAiOrDeterministic: (options: WithOpenAiOrDeterministicOptions) => Layer.Layer<ModelRegistry.Service, never, never>;
@@ -0,0 +1,19 @@
1
+ import { Context, Effect, Layer } from "effect";
2
+ import * as Client from "./client";
3
+ import * as Operation from "./operation";
4
+ export interface Interface {
5
+ readonly claim: (input: Operation.ClaimEnvelopeReadyInput) => Effect.Effect<Operation.EnvelopeReadyLease | null, Client.ClientError>;
6
+ readonly ack: (input: Operation.AckEnvelopeReadyInput) => Effect.Effect<Operation.EnvelopeReadyAcked, Client.ClientError>;
7
+ readonly release: (input: Operation.ReleaseEnvelopeReadyInput) => Effect.Effect<Operation.EnvelopeReadyReleased, Client.ClientError>;
8
+ readonly submitInbound: (input: Operation.SubmitInboundEnvelopeInput) => Effect.Effect<Operation.SubmitInboundEnvelopeAccepted, Client.ClientError>;
9
+ }
10
+ declare const Service_base: Context.ServiceClass<Service, "@relayfx/sdk/AdapterOutbox", Interface>;
11
+ export declare class Service extends Service_base {
12
+ }
13
+ export declare const layer: Layer.Layer<Service, never, Client.Service>;
14
+ export declare const testLayer: (implementation: Interface) => Layer.Layer<Service, never, never>;
15
+ export declare const claim: (input: Operation.ClaimEnvelopeReadyInput) => Effect.Effect<Operation.EnvelopeReadyLease | null, Client.ClientError, Service>;
16
+ export declare const ack: (input: Operation.AckEnvelopeReadyInput) => Effect.Effect<Operation.EnvelopeReadyAcked, Client.ClientError, Service>;
17
+ export declare const release: (input: Operation.ReleaseEnvelopeReadyInput) => Effect.Effect<Operation.EnvelopeReadyReleased, Client.ClientError, Service>;
18
+ export declare const submitInbound: (input: Operation.SubmitInboundEnvelopeInput) => Effect.Effect<Operation.SubmitInboundEnvelopeAccepted, Client.ClientError, Service>;
19
+ export {};
@@ -0,0 +1,102 @@
1
+ import { AddressBook, AgentRegistry, EventLog, ExecutionService, WaitService } from "../runtime/index";
2
+ import { Address, Agent, Content, Envelope, Execution, Ids, Shared } from "../schema/index";
3
+ import { ClusterRegistryRepository, EnvelopeRepository, ExecutionRepository, ScheduleRepository } from "../store-sql/index";
4
+ import { Context, Effect, Layer, Schema, Stream } from "effect";
5
+ import { Sharding, ShardingConfig } from "effect/unstable/cluster";
6
+ import * as Operation from "./operation";
7
+ declare const ClientError_base: Schema.Class<ClientError, Schema.TaggedStruct<"ClientError", {
8
+ readonly message: Schema.String;
9
+ }>, import("effect/Cause").YieldableError>;
10
+ export declare class ClientError extends ClientError_base {
11
+ }
12
+ export interface StartExecutionByAddressInput {
13
+ readonly address_id: Ids.AddressId;
14
+ readonly input?: ReadonlyArray<Content.Part>;
15
+ readonly idempotency_key: Shared.NonEmptyString;
16
+ readonly execution_id?: Ids.ExecutionId;
17
+ readonly event_sequence?: Execution.ExecutionEventSequence;
18
+ readonly started_at: Shared.TimestampMillis;
19
+ readonly completed_at: Shared.TimestampMillis;
20
+ readonly wait_id?: Ids.WaitId;
21
+ readonly metadata?: Shared.Metadata;
22
+ }
23
+ export interface StartExecutionByAgentDefinitionInput {
24
+ readonly root_address_id: Ids.AddressId;
25
+ readonly agent_definition_id: Ids.AgentDefinitionId;
26
+ readonly input?: ReadonlyArray<Content.Part>;
27
+ readonly idempotency_key: Shared.NonEmptyString;
28
+ readonly execution_id?: Ids.ExecutionId;
29
+ readonly event_sequence?: Execution.ExecutionEventSequence;
30
+ readonly started_at: Shared.TimestampMillis;
31
+ readonly completed_at: Shared.TimestampMillis;
32
+ readonly wait_id?: Ids.WaitId;
33
+ readonly metadata?: Shared.Metadata;
34
+ }
35
+ export interface Interface {
36
+ readonly registerAgentDefinition: (input: Agent.RegisterDefinitionPayload) => Effect.Effect<Agent.DefinitionRegistered, ClientError>;
37
+ readonly getAgentDefinition: (id: Ids.AgentDefinitionId) => Effect.Effect<Agent.DefinitionRecord | undefined, ClientError>;
38
+ readonly listAgentDefinitions: () => Effect.Effect<Agent.DefinitionList, ClientError>;
39
+ readonly listAgentDefinitionRevisions: (id: Ids.AgentDefinitionId) => Effect.Effect<Agent.DefinitionRevisionList, ClientError>;
40
+ readonly registerAddressBookRoute: (input: Address.RegisterRoutePayload) => Effect.Effect<Address.RouteRegistered, ClientError>;
41
+ readonly getAddressBookRoute: (id: Ids.AddressId) => Effect.Effect<Address.RouteRecord | undefined, ClientError>;
42
+ readonly listAddressBookRoutes: () => Effect.Effect<Address.RouteList, ClientError>;
43
+ readonly startExecution: (input: Operation.StartExecutionInput) => Effect.Effect<Operation.StartExecutionResult, ClientError>;
44
+ readonly startExecutionByAddress: (input: StartExecutionByAddressInput) => Effect.Effect<Operation.StartExecutionResult, ClientError>;
45
+ readonly startExecutionByAgentDefinition: (input: StartExecutionByAgentDefinitionInput) => Effect.Effect<Operation.StartExecutionResult, ClientError>;
46
+ readonly cancelExecution: (input: Operation.CancelExecutionInput) => Effect.Effect<Operation.CancelExecutionAccepted, ClientError>;
47
+ readonly getExecution: (id: Ids.ExecutionId) => Effect.Effect<Execution.Execution | undefined, ClientError>;
48
+ readonly listExecutions: (input: Operation.ListExecutionsInput) => Effect.Effect<Operation.ListExecutionsResult, ClientError>;
49
+ readonly listWaits: (input: Operation.ListWaitsInput) => Effect.Effect<ReadonlyArray<Operation.WaitView>, ClientError>;
50
+ readonly replayExecution: (input: Operation.ReplayExecutionInput) => Effect.Effect<Operation.ReplayExecutionResult, ClientError>;
51
+ readonly listRunners: () => Effect.Effect<Operation.ListRunnersResult, ClientError>;
52
+ readonly routeExecution: (executionId: Ids.ExecutionId) => Effect.Effect<Operation.RouteExecutionResult, ClientError>;
53
+ readonly send: (input: Envelope.SendInput) => Effect.Effect<Envelope.EnvelopeAccepted, ClientError>;
54
+ readonly streamExecution: (input: Operation.StreamExecutionInput) => Stream.Stream<Execution.ExecutionEvent, ClientError>;
55
+ readonly wake: (input: Operation.WakeInput) => Effect.Effect<Operation.WakeAccepted, ClientError>;
56
+ readonly listPendingApprovals: (input: Operation.ListPendingApprovalsInput) => Effect.Effect<Operation.PendingToolApprovalList, ClientError>;
57
+ readonly resolveToolApproval: (input: Operation.ResolveToolApprovalInput) => Effect.Effect<Operation.WakeAccepted, ClientError>;
58
+ readonly submitInboundEnvelope: (input: Operation.SubmitInboundEnvelopeInput) => Effect.Effect<Operation.SubmitInboundEnvelopeAccepted, ClientError>;
59
+ readonly spawnChildRun: (input: Execution.SpawnChildRunInput) => Effect.Effect<Execution.ChildRunAccepted, ClientError>;
60
+ readonly claimEnvelopeReady: (input: Operation.ClaimEnvelopeReadyInput) => Effect.Effect<Operation.EnvelopeReadyLease | null, ClientError>;
61
+ readonly ackEnvelopeReady: (input: Operation.AckEnvelopeReadyInput) => Effect.Effect<Operation.EnvelopeReadyAcked, ClientError>;
62
+ readonly releaseEnvelopeReady: (input: Operation.ReleaseEnvelopeReadyInput) => Effect.Effect<Operation.EnvelopeReadyReleased, ClientError>;
63
+ readonly createSchedule: (input: Operation.CreateScheduleInput) => Effect.Effect<Operation.CreateScheduleResult, ClientError>;
64
+ readonly cancelSchedule: (input: Operation.CancelScheduleInput) => Effect.Effect<Operation.CancelScheduleResult, ClientError>;
65
+ readonly listSchedules: (input: Operation.ListSchedulesInput) => Effect.Effect<Operation.ListSchedulesResult, ClientError>;
66
+ }
67
+ declare const Service_base: Context.ServiceClass<Service, "@relayfx/sdk/Client", Interface>;
68
+ export declare class Service extends Service_base {
69
+ }
70
+ export declare const layerFromRuntime: Layer.Layer<Service, never, AgentRegistry.Service | AddressBook.Service | ExecutionService.Service | WaitService.Service | EventLog.Service | EnvelopeRepository.Service | ExecutionRepository.Service | ClusterRegistryRepository.Service | ScheduleRepository.Service | Sharding.Sharding | ShardingConfig.ShardingConfig>;
71
+ export declare const testLayer: (implementation: Interface) => Layer.Layer<Service, never, never>;
72
+ export declare const registerAgentDefinition: (input: Agent.RegisterDefinitionPayload) => Effect.Effect<Agent.DefinitionRegistered, ClientError, Service>;
73
+ export declare const getAgentDefinition: (id: string & import("effect/Brand").Brand<"Relay.AgentDefinitionId">) => Effect.Effect<Agent.DefinitionRecord | undefined, ClientError, Service>;
74
+ export declare const listAgentDefinitions: () => Effect.Effect<Agent.DefinitionList, ClientError, Service>;
75
+ export declare const listAgentDefinitionRevisions: (id: string & import("effect/Brand").Brand<"Relay.AgentDefinitionId">) => Effect.Effect<Agent.DefinitionRevisionList, ClientError, Service>;
76
+ export declare const registerAddressBookRoute: (input: Address.RegisterRoutePayload) => Effect.Effect<Address.RouteRegistered, ClientError, Service>;
77
+ export declare const getAddressBookRoute: (id: string & import("effect/Brand").Brand<"Relay.AddressId">) => Effect.Effect<Address.RouteRecord | undefined, ClientError, Service>;
78
+ export declare const listAddressBookRoutes: () => Effect.Effect<Address.RouteList, ClientError, Service>;
79
+ export declare const startExecution: (input: Operation.StartExecutionInput) => Effect.Effect<Operation.StartExecutionResult, ClientError, Service>;
80
+ export declare const startExecutionByAddress: (input: StartExecutionByAddressInput) => Effect.Effect<Operation.StartExecutionResult, ClientError, Service>;
81
+ export declare const startExecutionByAgentDefinition: (input: StartExecutionByAgentDefinitionInput) => Effect.Effect<Operation.StartExecutionResult, ClientError, Service>;
82
+ export declare const cancelExecution: (input: Operation.CancelExecutionInput) => Effect.Effect<Operation.CancelExecutionAccepted, ClientError, Service>;
83
+ export declare const getExecution: (id: string & import("effect/Brand").Brand<"Relay.ExecutionId">) => Effect.Effect<Execution.Execution | undefined, ClientError, Service>;
84
+ export declare const listExecutions: (input: Operation.ListExecutionsInput) => Effect.Effect<Operation.ListExecutionsResult, ClientError, Service>;
85
+ export declare const listWaits: (input: Operation.ListWaitsInput) => Effect.Effect<readonly Operation.WaitView[], ClientError, Service>;
86
+ export declare const replayExecution: (input: Operation.ReplayExecutionInput) => Effect.Effect<Operation.ReplayExecutionResult, ClientError, Service>;
87
+ export declare const listRunners: () => Effect.Effect<Operation.ListRunnersResult, ClientError, Service>;
88
+ export declare const routeExecution: (executionId: string & import("effect/Brand").Brand<"Relay.ExecutionId">) => Effect.Effect<Operation.RouteExecutionResult, ClientError, Service>;
89
+ export declare const send: (input: Envelope.SendInput) => Effect.Effect<Envelope.EnvelopeAccepted, ClientError, Service>;
90
+ export declare const streamExecution: (input: Operation.StreamExecutionInput) => Stream.Stream<Execution.ExecutionEvent, ClientError, Service>;
91
+ export declare const wake: (input: Operation.WakeInput) => Effect.Effect<Operation.WakeAccepted, ClientError, Service>;
92
+ export declare const listPendingApprovals: (input: Operation.ListPendingApprovalsInput) => Effect.Effect<Operation.PendingToolApprovalList, ClientError, Service>;
93
+ export declare const resolveToolApproval: (input: Operation.ResolveToolApprovalInput) => Effect.Effect<Operation.WakeAccepted, ClientError, Service>;
94
+ export declare const submitInboundEnvelope: (input: Operation.SubmitInboundEnvelopeInput) => Effect.Effect<Operation.SubmitInboundEnvelopeAccepted, ClientError, Service>;
95
+ export declare const spawnChildRun: (input: Execution.SpawnChildRunInput) => Effect.Effect<Execution.ChildRunAccepted, ClientError, Service>;
96
+ export declare const claimEnvelopeReady: (input: Operation.ClaimEnvelopeReadyInput) => Effect.Effect<Operation.EnvelopeReadyLease | null, ClientError, Service>;
97
+ export declare const ackEnvelopeReady: (input: Operation.AckEnvelopeReadyInput) => Effect.Effect<Operation.EnvelopeReadyAcked, ClientError, Service>;
98
+ export declare const releaseEnvelopeReady: (input: Operation.ReleaseEnvelopeReadyInput) => Effect.Effect<Operation.EnvelopeReadyReleased, ClientError, Service>;
99
+ export declare const createSchedule: (input: Operation.CreateScheduleInput) => Effect.Effect<Operation.CreateScheduleResult, ClientError, Service>;
100
+ export declare const cancelSchedule: (input: Operation.CancelScheduleInput) => Effect.Effect<Operation.CancelScheduleResult, ClientError, Service>;
101
+ export declare const listSchedules: (input: Operation.ListSchedulesInput) => Effect.Effect<Operation.ListSchedulesResult, ClientError, Service>;
102
+ export {};
@@ -0,0 +1,11 @@
1
+ import * as StoreSql from "../store-sql/index";
2
+ export type Drizzle = StoreSql.Database.Drizzle;
3
+ export type PgTimestamp = StoreSql.Database.PgTimestamp;
4
+ export type DatabaseError = StoreSql.Database.DatabaseError;
5
+ export declare const Service: typeof StoreSql.Database.Service;
6
+ export declare const layerFromPgClient: import("effect/Layer").Layer<StoreSql.Database.Service, never, import("@effect/sql-pg/PgClient").PgClient>;
7
+ export declare const testLayer: (db: StoreSql.Database.Drizzle) => import("effect/Layer").Layer<StoreSql.Database.Service, never, never>;
8
+ export declare const check: () => import("effect/Effect").Effect<void, import("drizzle-orm/effect-core").EffectDrizzleQueryError, StoreSql.Database.Service>;
9
+ export declare const pgTypeParsers: {
10
+ getTypeParser: (typeId: number, format?: "text" | "binary") => any;
11
+ };
@@ -0,0 +1,10 @@
1
+ export * as AdapterOutbox from "./adapter-outbox";
2
+ export * as Client from "./client";
3
+ export * as Database from "./database";
4
+ export * as Operation from "./operation";
5
+ export { Address, Agent, Content, Envelope, Execution, Ids, Schedule, Shared, Tool } from "../schema/index";
6
+ export { AddressBook, AddressResolution, AgentLoop, AgentRegistry, ArtifactStore, BlobStore, ChildRunService, EnvelopeService, EventLog, ExecutionEntity, ExecutionService, ExecutionWorkflow, LanguageModelService, ModelCallPolicy, PromptAssembler, SchedulerService, ToolRuntime, WaitService, } from "../runtime/index";
7
+ export { RunnerRuntime } from "../runtime/index";
8
+ export { LanguageModelRegistration } from "../ai/index";
9
+ export { RelaySchema } from "../store-sql/index";
10
+ export declare const relayPackage = "@relayfx/sdk";