@relayfx/test 0.3.1 → 0.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/dist/index.js +29 -20481
- package/dist/types/test/index.d.ts +0 -2
- package/dist/types/test/test-runtime.d.ts +6 -7
- package/dist/types/test/test-tools.d.ts +2 -2
- package/dist/types/test/wait-test-kit.d.ts +1 -1
- package/package.json +7 -6
- package/dist/types/runtime/address/address-book-service.d.ts +0 -74
- package/dist/types/runtime/address/address-resolution-service.d.ts +0 -172
- package/dist/types/runtime/agent/agent-loop-service.d.ts +0 -92
- package/dist/types/runtime/agent/agent-registry-service.d.ts +0 -31
- package/dist/types/runtime/agent/prompt-assembler-service.d.ts +0 -64
- package/dist/types/runtime/agent/relay-approvals.d.ts +0 -2
- package/dist/types/runtime/agent/relay-compaction.d.ts +0 -24
- package/dist/types/runtime/agent/relay-instructions.d.ts +0 -7
- package/dist/types/runtime/agent/relay-permissions.d.ts +0 -25
- package/dist/types/runtime/agent/relay-steering.d.ts +0 -17
- package/dist/types/runtime/agent/relay-tool-executor.d.ts +0 -22
- package/dist/types/runtime/agent/relay-tool-output.d.ts +0 -10
- package/dist/types/runtime/agent/sequence-allocator.d.ts +0 -8
- package/dist/types/runtime/child/child-fan-out-admission-service.d.ts +0 -30
- package/dist/types/runtime/child/child-fan-out-runtime.d.ts +0 -40
- package/dist/types/runtime/child/child-fan-out-transition-service.d.ts +0 -25
- package/dist/types/runtime/child/child-run-service.d.ts +0 -96
- package/dist/types/runtime/child/parent-notifier-service.d.ts +0 -42
- package/dist/types/runtime/child/spawn-child-run-tool.d.ts +0 -225
- package/dist/types/runtime/cluster/execution-entity.d.ts +0 -39
- package/dist/types/runtime/content/artifact-store-service.d.ts +0 -26
- package/dist/types/runtime/content/blob-store-service.d.ts +0 -54
- package/dist/types/runtime/entity/entity-instance-service.d.ts +0 -76
- package/dist/types/runtime/entity/entity-registry-service.d.ts +0 -35
- package/dist/types/runtime/envelope/envelope-service.d.ts +0 -56
- package/dist/types/runtime/execution/active-execution-registry.d.ts +0 -12
- package/dist/types/runtime/execution/event-log-service.d.ts +0 -93
- package/dist/types/runtime/execution/execution-service.d.ts +0 -66
- package/dist/types/runtime/execution/execution-watch-service.d.ts +0 -32
- package/dist/types/runtime/execution/session-stream-service.d.ts +0 -33
- package/dist/types/runtime/inbox/inbox-service.d.ts +0 -76
- package/dist/types/runtime/inbox/send-message-tool.d.ts +0 -27
- package/dist/types/runtime/inbox/wait-for-messages-tool.d.ts +0 -34
- package/dist/types/runtime/index.d.ts +0 -56
- package/dist/types/runtime/memory/memory-service.d.ts +0 -22
- package/dist/types/runtime/model/embedding-model-service.d.ts +0 -81
- package/dist/types/runtime/model/language-model-service.d.ts +0 -48
- package/dist/types/runtime/model/model-call-policy.d.ts +0 -14
- package/dist/types/runtime/observability/runtime-metrics.d.ts +0 -28
- package/dist/types/runtime/presence/presence-service.d.ts +0 -30
- package/dist/types/runtime/presence/presence-tool.d.ts +0 -20
- package/dist/types/runtime/runner/runner-runtime-service.d.ts +0 -149
- package/dist/types/runtime/schedule/scheduler-service.d.ts +0 -34
- package/dist/types/runtime/schema-registry/schema-registry-service.d.ts +0 -27
- package/dist/types/runtime/session/session-store-service.d.ts +0 -23
- package/dist/types/runtime/skill/skill-registry-service.d.ts +0 -44
- package/dist/types/runtime/state/execution-state-service.d.ts +0 -60
- package/dist/types/runtime/state/state-tools.d.ts +0 -5
- package/dist/types/runtime/tool/tool-input-schema-digest.d.ts +0 -6
- package/dist/types/runtime/tool/tool-runtime-service.d.ts +0 -162
- package/dist/types/runtime/tool/tool-transition-coordinator.d.ts +0 -13
- package/dist/types/runtime/topic/publish-to-topic-tool.d.ts +0 -24
- package/dist/types/runtime/topic/topic-service.d.ts +0 -50
- package/dist/types/runtime/wait/wait-service.d.ts +0 -81
- package/dist/types/runtime/wait/wait-signal.d.ts +0 -25
- package/dist/types/runtime/workflow/activity-version-registry.d.ts +0 -93
- package/dist/types/runtime/workflow/definition-runtime.d.ts +0 -95
- package/dist/types/runtime/workflow/execution-workflow.d.ts +0 -534
- package/dist/types/runtime/workspace/workspace-planner-service.d.ts +0 -64
- package/dist/types/runtime/workspace/workspace-provider-service.d.ts +0 -112
- package/dist/types/runtime/workspace/workspace-runtime-service.d.ts +0 -21
- package/dist/types/schema/address-schema.d.ts +0 -77
- package/dist/types/schema/agent-schema.d.ts +0 -901
- package/dist/types/schema/child-orchestration-schema.d.ts +0 -429
- package/dist/types/schema/content-schema.d.ts +0 -118
- package/dist/types/schema/entity-schema.d.ts +0 -40
- package/dist/types/schema/envelope-schema.d.ts +0 -180
- package/dist/types/schema/execution-schema.d.ts +0 -453
- package/dist/types/schema/ids-schema.d.ts +0 -106
- package/dist/types/schema/inbox-schema.d.ts +0 -81
- package/dist/types/schema/index.d.ts +0 -19
- package/dist/types/schema/presence-schema.d.ts +0 -28
- package/dist/types/schema/schedule-schema.d.ts +0 -79
- package/dist/types/schema/shared-schema.d.ts +0 -13
- package/dist/types/schema/skill-schema.d.ts +0 -260
- package/dist/types/schema/state-schema.d.ts +0 -35
- package/dist/types/schema/tool-schema.d.ts +0 -84
- package/dist/types/schema/wait-schema.d.ts +0 -98
- package/dist/types/schema/workflow-schema.d.ts +0 -2062
- package/dist/types/schema/workspace-schema.d.ts +0 -78
- package/dist/types/test/captured-model.d.ts +0 -19
- package/dist/types/test/scripted-model.d.ts +0 -49
|
@@ -1,76 +0,0 @@
|
|
|
1
|
-
import { Content, Entity, Ids, Shared } from "../../schema/index";
|
|
2
|
-
import { EntityRepository } from "@relayfx/store-sql/portable";
|
|
3
|
-
import { Context, Effect, Layer, Schema } from "effect";
|
|
4
|
-
import { Service as AddressBookService } from "../address/address-book-service";
|
|
5
|
-
import { Service as AgentRegistryService } from "../agent/agent-registry-service";
|
|
6
|
-
import { Service as EventLogService } from "../execution/event-log-service";
|
|
7
|
-
import { EntityKindInvalid, EntityKindNotFound, Service as EntityRegistryService } from "./entity-registry-service";
|
|
8
|
-
declare const EntityDestroyed_base: Schema.Class<EntityDestroyed, Schema.TaggedStruct<"EntityDestroyed", {
|
|
9
|
-
readonly kind: Schema.brand<Schema.String, "Relay.EntityKindName"> & {
|
|
10
|
-
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.EntityKindName">;
|
|
11
|
-
};
|
|
12
|
-
readonly key: Schema.brand<Schema.String, "Relay.EntityKey"> & {
|
|
13
|
-
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.EntityKey">;
|
|
14
|
-
};
|
|
15
|
-
}>, import("effect/Cause").YieldableError>;
|
|
16
|
-
export declare class EntityDestroyed extends EntityDestroyed_base {
|
|
17
|
-
}
|
|
18
|
-
declare const EntityNotFound_base: Schema.Class<EntityNotFound, Schema.TaggedStruct<"EntityNotFound", {
|
|
19
|
-
readonly kind: Schema.brand<Schema.String, "Relay.EntityKindName"> & {
|
|
20
|
-
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.EntityKindName">;
|
|
21
|
-
};
|
|
22
|
-
readonly key: Schema.brand<Schema.String, "Relay.EntityKey"> & {
|
|
23
|
-
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.EntityKey">;
|
|
24
|
-
};
|
|
25
|
-
}>, import("effect/Cause").YieldableError>;
|
|
26
|
-
export declare class EntityNotFound extends EntityNotFound_base {
|
|
27
|
-
}
|
|
28
|
-
declare const EntityServiceError_base: Schema.Class<EntityServiceError, Schema.TaggedStruct<"EntityServiceError", {
|
|
29
|
-
readonly message: Schema.String;
|
|
30
|
-
}>, import("effect/Cause").YieldableError>;
|
|
31
|
-
export declare class EntityServiceError extends EntityServiceError_base {
|
|
32
|
-
}
|
|
33
|
-
export interface GetOrCreateInput {
|
|
34
|
-
readonly kind: Ids.EntityKindName;
|
|
35
|
-
readonly key: Ids.EntityKey;
|
|
36
|
-
readonly input?: ReadonlyArray<Content.Part>;
|
|
37
|
-
readonly metadata?: Shared.Metadata;
|
|
38
|
-
readonly createdAt: number;
|
|
39
|
-
}
|
|
40
|
-
export interface Interface {
|
|
41
|
-
readonly getOrCreate: (input: GetOrCreateInput) => Effect.Effect<Entity.Instance, EntityKindNotFound | EntityKindInvalid | EntityServiceError>;
|
|
42
|
-
readonly get: (input: {
|
|
43
|
-
readonly kind: Ids.EntityKindName;
|
|
44
|
-
readonly key: Ids.EntityKey;
|
|
45
|
-
}) => Effect.Effect<Entity.Instance | undefined, EntityServiceError>;
|
|
46
|
-
readonly destroy: (input: {
|
|
47
|
-
readonly kind: Ids.EntityKindName;
|
|
48
|
-
readonly key: Ids.EntityKey;
|
|
49
|
-
readonly reason?: string;
|
|
50
|
-
readonly destroyedAt: number;
|
|
51
|
-
}) => Effect.Effect<Entity.Instance, EntityNotFound | EntityDestroyed | EntityServiceError>;
|
|
52
|
-
readonly list: (input: {
|
|
53
|
-
readonly kind?: Ids.EntityKindName;
|
|
54
|
-
readonly afterKind?: Ids.EntityKindName;
|
|
55
|
-
readonly afterKey?: string;
|
|
56
|
-
readonly limit?: number;
|
|
57
|
-
}) => Effect.Effect<ReadonlyArray<Entity.Instance>, EntityServiceError>;
|
|
58
|
-
}
|
|
59
|
-
declare const Service_base: Context.ServiceClass<Service, "@relayfx/runtime/entity/entity-instance-service/Service", Interface>;
|
|
60
|
-
export declare class Service extends Service_base {
|
|
61
|
-
}
|
|
62
|
-
export declare const entityExecutionId: {
|
|
63
|
-
(tenant: Ids.TenantId, kind: Ids.EntityKindName, key: Ids.EntityKey, generation: number): Ids.ExecutionId;
|
|
64
|
-
(kind: Ids.EntityKindName, key: Ids.EntityKey, generation: number): (tenant: Ids.TenantId) => Ids.ExecutionId;
|
|
65
|
-
};
|
|
66
|
-
export declare const entityAddressId: {
|
|
67
|
-
(tenant: Ids.TenantId, kind: Ids.EntityKindName, key: Ids.EntityKey): Ids.AddressId;
|
|
68
|
-
(kind: Ids.EntityKindName, key: Ids.EntityKey): (tenant: Ids.TenantId) => Ids.AddressId;
|
|
69
|
-
};
|
|
70
|
-
export declare const entitySessionId: {
|
|
71
|
-
(tenant: Ids.TenantId, kind: Ids.EntityKindName, key: Ids.EntityKey): Ids.SessionId;
|
|
72
|
-
(kind: Ids.EntityKindName, key: Ids.EntityKey): (tenant: Ids.TenantId) => Ids.SessionId;
|
|
73
|
-
};
|
|
74
|
-
export declare const layer: Layer.Layer<Service, never, EntityRepository.Service | AddressBookService | EventLogService | AgentRegistryService | EntityRegistryService | import("effect/unstable/cluster/Sharding").Sharding>;
|
|
75
|
-
export declare const testLayer: (implementation: Interface) => Layer.Layer<Service, never, never>;
|
|
76
|
-
export {};
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { Entity, Ids } from "../../schema/index";
|
|
2
|
-
import { EntityRepository } from "@relayfx/store-sql/portable";
|
|
3
|
-
import { Context, Effect, Layer, Schema } from "effect";
|
|
4
|
-
import { Service as AgentRegistryService } from "../agent/agent-registry-service";
|
|
5
|
-
declare const EntityKindNotFound_base: Schema.Class<EntityKindNotFound, Schema.TaggedStruct<"EntityKindNotFound", {
|
|
6
|
-
readonly kind: Schema.brand<Schema.String, "Relay.EntityKindName"> & {
|
|
7
|
-
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.EntityKindName">;
|
|
8
|
-
};
|
|
9
|
-
}>, import("effect/Cause").YieldableError>;
|
|
10
|
-
export declare class EntityKindNotFound extends EntityKindNotFound_base {
|
|
11
|
-
}
|
|
12
|
-
declare const EntityKindInvalid_base: Schema.Class<EntityKindInvalid, Schema.TaggedStruct<"EntityKindInvalid", {
|
|
13
|
-
readonly kind: Schema.brand<Schema.String, "Relay.EntityKindName"> & {
|
|
14
|
-
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.EntityKindName">;
|
|
15
|
-
};
|
|
16
|
-
readonly message: Schema.String;
|
|
17
|
-
}>, import("effect/Cause").YieldableError>;
|
|
18
|
-
export declare class EntityKindInvalid extends EntityKindInvalid_base {
|
|
19
|
-
}
|
|
20
|
-
declare const EntityRegistryError_base: Schema.Class<EntityRegistryError, Schema.TaggedStruct<"EntityRegistryError", {
|
|
21
|
-
readonly message: Schema.String;
|
|
22
|
-
}>, import("effect/Cause").YieldableError>;
|
|
23
|
-
export declare class EntityRegistryError extends EntityRegistryError_base {
|
|
24
|
-
}
|
|
25
|
-
export interface Interface {
|
|
26
|
-
readonly registerKind: (input: Entity.KindDefinition) => Effect.Effect<Entity.KindDefinition, EntityKindInvalid | EntityRegistryError>;
|
|
27
|
-
readonly getKind: (kind: Ids.EntityKindName) => Effect.Effect<Entity.KindDefinition | undefined, EntityRegistryError>;
|
|
28
|
-
readonly listKinds: Effect.Effect<ReadonlyArray<Entity.KindDefinition>, EntityRegistryError>;
|
|
29
|
-
}
|
|
30
|
-
declare const Service_base: Context.ServiceClass<Service, "@relayfx/runtime/entity/entity-registry-service/Service", Interface>;
|
|
31
|
-
export declare class Service extends Service_base {
|
|
32
|
-
}
|
|
33
|
-
export declare const layer: Layer.Layer<Service, never, EntityRepository.Service | AgentRegistryService>;
|
|
34
|
-
export declare const testLayer: (implementation: Interface) => Layer.Layer<Service, never, never>;
|
|
35
|
-
export {};
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
import { Envelope, Execution, Ids } from "../../schema/index";
|
|
2
|
-
import { EnvelopeRepository } from "@relayfx/store-sql/portable";
|
|
3
|
-
import { Context, Effect, Layer, Schema } from "effect";
|
|
4
|
-
import { Route, Service as AddressBookService } from "../address/address-book-service";
|
|
5
|
-
import { Service as EventLogService } from "../execution/event-log-service";
|
|
6
|
-
declare const EnvelopeAddressNotFound_base: Schema.Class<EnvelopeAddressNotFound, Schema.TaggedStruct<"EnvelopeAddressNotFound", {
|
|
7
|
-
readonly address_id: Schema.brand<Schema.String, "Relay.AddressId"> & {
|
|
8
|
-
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.AddressId">;
|
|
9
|
-
};
|
|
10
|
-
}>, import("effect/Cause").YieldableError>;
|
|
11
|
-
export declare class EnvelopeAddressNotFound extends EnvelopeAddressNotFound_base {
|
|
12
|
-
}
|
|
13
|
-
declare const EnvelopeRouteUnavailable_base: Schema.Class<EnvelopeRouteUnavailable, Schema.TaggedStruct<"EnvelopeRouteUnavailable", {
|
|
14
|
-
readonly address_id: Schema.brand<Schema.String, "Relay.AddressId"> & {
|
|
15
|
-
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.AddressId">;
|
|
16
|
-
};
|
|
17
|
-
readonly route_key: Schema.String;
|
|
18
|
-
}>, import("effect/Cause").YieldableError>;
|
|
19
|
-
export declare class EnvelopeRouteUnavailable extends EnvelopeRouteUnavailable_base {
|
|
20
|
-
}
|
|
21
|
-
declare const EnvelopeRouteDeferred_base: Schema.Class<EnvelopeRouteDeferred, Schema.TaggedStruct<"EnvelopeRouteDeferred", {
|
|
22
|
-
readonly address_id: Schema.brand<Schema.String, "Relay.AddressId"> & {
|
|
23
|
-
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.AddressId">;
|
|
24
|
-
};
|
|
25
|
-
readonly route_key: Schema.String;
|
|
26
|
-
}>, import("effect/Cause").YieldableError>;
|
|
27
|
-
export declare class EnvelopeRouteDeferred extends EnvelopeRouteDeferred_base {
|
|
28
|
-
}
|
|
29
|
-
declare const EnvelopeServiceError_base: Schema.Class<EnvelopeServiceError, Schema.TaggedStruct<"EnvelopeServiceError", {
|
|
30
|
-
readonly message: Schema.String;
|
|
31
|
-
}>, import("effect/Cause").YieldableError>;
|
|
32
|
-
export declare class EnvelopeServiceError extends EnvelopeServiceError_base {
|
|
33
|
-
}
|
|
34
|
-
export interface SendInput {
|
|
35
|
-
readonly envelopeId: Ids.EnvelopeId;
|
|
36
|
-
readonly executionId: Ids.ExecutionId;
|
|
37
|
-
readonly input: Envelope.SendInput;
|
|
38
|
-
readonly eventSequence: Execution.ExecutionEventSequence;
|
|
39
|
-
readonly createdAt: number;
|
|
40
|
-
readonly waitId?: Ids.WaitId;
|
|
41
|
-
}
|
|
42
|
-
export interface Interface {
|
|
43
|
-
readonly send: (input: SendInput) => Effect.Effect<Envelope.EnvelopeAccepted & {
|
|
44
|
-
readonly route_kind?: Route["kind"];
|
|
45
|
-
}, EnvelopeAddressNotFound | EnvelopeRouteUnavailable | EnvelopeRouteDeferred | EnvelopeServiceError>;
|
|
46
|
-
}
|
|
47
|
-
declare const Service_base: Context.ServiceClass<Service, "@relayfx/runtime/envelope/envelope-service/Service", Interface>;
|
|
48
|
-
export declare class Service extends Service_base {
|
|
49
|
-
}
|
|
50
|
-
export declare const layer: Layer.Layer<Service, never, EnvelopeRepository.Service | AddressBookService | EventLogService>;
|
|
51
|
-
export declare const memoryLayer: (routes?: Iterable<readonly [Ids.AddressId, Route]>) => Layer.Layer<Service, never, never>;
|
|
52
|
-
export declare const testLayer: (implementation: Interface) => Layer.Layer<Service, never, never>;
|
|
53
|
-
export declare const send: (input: SendInput) => Effect.Effect<Envelope.EnvelopeAccepted & {
|
|
54
|
-
readonly route_kind?: Route["kind"];
|
|
55
|
-
}, EnvelopeAddressNotFound | EnvelopeRouteDeferred | EnvelopeRouteUnavailable | EnvelopeServiceError, Service>;
|
|
56
|
-
export {};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { Ids } from "../../schema/index";
|
|
2
|
-
import { Context, Effect, Layer } from "effect";
|
|
3
|
-
export interface Interface {
|
|
4
|
-
readonly run: <A, E, R>(executionId: Ids.ExecutionId, effect: Effect.Effect<A, E, R>) => Effect.Effect<A, E, R>;
|
|
5
|
-
readonly interrupt: (executionId: Ids.ExecutionId) => Effect.Effect<boolean>;
|
|
6
|
-
}
|
|
7
|
-
declare const Service_base: Context.ServiceClass<Service, "@relayfx/runtime/execution/active-execution-registry/Service", Interface>;
|
|
8
|
-
export declare class Service extends Service_base {
|
|
9
|
-
}
|
|
10
|
-
export declare const layer: Layer.Layer<Service, never, never>;
|
|
11
|
-
export declare const testLayer: Layer.Layer<Service, never, never>;
|
|
12
|
-
export {};
|
|
@@ -1,93 +0,0 @@
|
|
|
1
|
-
import { Execution, Ids } from "../../schema/index";
|
|
2
|
-
import { ExecutionEventRepository } from "@relayfx/store-sql/portable";
|
|
3
|
-
import { Context, Effect, Layer, Option, Schema, Stream } from "effect";
|
|
4
|
-
declare const EventLogCursorNotFound_base: Schema.Class<EventLogCursorNotFound, Schema.TaggedStruct<"EventLogCursorNotFound", {
|
|
5
|
-
readonly execution_id: Schema.brand<Schema.String, "Relay.ExecutionId"> & {
|
|
6
|
-
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.ExecutionId">;
|
|
7
|
-
};
|
|
8
|
-
readonly cursor: Schema.String;
|
|
9
|
-
}>, import("effect/Cause").YieldableError>;
|
|
10
|
-
export declare class EventLogCursorNotFound extends EventLogCursorNotFound_base {
|
|
11
|
-
}
|
|
12
|
-
declare const EventLogError_base: Schema.Class<EventLogError, Schema.TaggedStruct<"EventLogError", {
|
|
13
|
-
readonly message: Schema.String;
|
|
14
|
-
}>, import("effect/Cause").YieldableError>;
|
|
15
|
-
export declare class EventLogError extends EventLogError_base {
|
|
16
|
-
}
|
|
17
|
-
export interface ReplayInput {
|
|
18
|
-
readonly executionId: Ids.ExecutionId;
|
|
19
|
-
readonly afterCursor?: string;
|
|
20
|
-
readonly limit?: number;
|
|
21
|
-
}
|
|
22
|
-
export type PageInput = {
|
|
23
|
-
readonly executionId: Ids.ExecutionId;
|
|
24
|
-
readonly direction: "forward";
|
|
25
|
-
readonly afterCursor?: string;
|
|
26
|
-
readonly beforeCursor?: never;
|
|
27
|
-
readonly limit?: number;
|
|
28
|
-
} | {
|
|
29
|
-
readonly executionId: Ids.ExecutionId;
|
|
30
|
-
readonly direction: "backward";
|
|
31
|
-
readonly afterCursor?: never;
|
|
32
|
-
readonly beforeCursor?: string;
|
|
33
|
-
readonly limit?: number;
|
|
34
|
-
};
|
|
35
|
-
export interface PageResult {
|
|
36
|
-
readonly events: ReadonlyArray<Execution.ExecutionEvent>;
|
|
37
|
-
readonly hasMore: boolean;
|
|
38
|
-
readonly oldestCursor?: string;
|
|
39
|
-
readonly newestCursor?: string;
|
|
40
|
-
}
|
|
41
|
-
export interface FindBySequenceOrCursorInput {
|
|
42
|
-
readonly executionId: Ids.ExecutionId;
|
|
43
|
-
readonly sequence: Execution.ExecutionEventSequence;
|
|
44
|
-
readonly cursor: string;
|
|
45
|
-
}
|
|
46
|
-
export interface FindByCursorInput {
|
|
47
|
-
readonly executionId: Ids.ExecutionId;
|
|
48
|
-
readonly cursor: string;
|
|
49
|
-
}
|
|
50
|
-
export interface FindBySequenceInput {
|
|
51
|
-
readonly executionId: Ids.ExecutionId;
|
|
52
|
-
readonly sequence: Execution.ExecutionEventSequence;
|
|
53
|
-
}
|
|
54
|
-
export interface FindFirstByTypeAfterSequenceInput {
|
|
55
|
-
readonly executionId: Ids.ExecutionId;
|
|
56
|
-
readonly type: Execution.ExecutionEventType;
|
|
57
|
-
readonly afterSequence: Execution.ExecutionEventSequence;
|
|
58
|
-
}
|
|
59
|
-
export interface Interface {
|
|
60
|
-
readonly append: (input: Execution.ExecutionEvent) => Effect.Effect<Execution.ExecutionEvent, EventLogError>;
|
|
61
|
-
readonly replay: (input: ReplayInput) => Effect.Effect<ReadonlyArray<Execution.ExecutionEvent>, EventLogCursorNotFound | EventLogError>;
|
|
62
|
-
readonly stream: (input: ReplayInput) => Stream.Stream<Execution.ExecutionEvent, EventLogCursorNotFound | EventLogError>;
|
|
63
|
-
readonly page: (input: PageInput) => Effect.Effect<PageResult, EventLogCursorNotFound | EventLogError>;
|
|
64
|
-
readonly findBySequenceOrCursor: (input: FindBySequenceOrCursorInput) => Effect.Effect<Option.Option<Execution.ExecutionEvent>, EventLogError>;
|
|
65
|
-
readonly findByCursor: (input: FindByCursorInput) => Effect.Effect<Option.Option<Execution.ExecutionEvent>, EventLogError>;
|
|
66
|
-
readonly findBySequence: (input: FindBySequenceInput) => Effect.Effect<Option.Option<Execution.ExecutionEvent>, EventLogError>;
|
|
67
|
-
readonly findFirstByTypeAfterSequence: (input: FindFirstByTypeAfterSequenceInput) => Effect.Effect<Option.Option<Execution.ExecutionEvent>, EventLogError>;
|
|
68
|
-
readonly maxSequence: (executionId: Ids.ExecutionId) => Effect.Effect<Execution.ExecutionEventSequence | undefined, EventLogError>;
|
|
69
|
-
readonly sumUsage: (executionId: Ids.ExecutionId) => Effect.Effect<number, EventLogError>;
|
|
70
|
-
}
|
|
71
|
-
declare const Service_base: Context.ServiceClass<Service, "@relayfx/runtime/execution/event-log-service/Service", Interface>;
|
|
72
|
-
export declare class Service extends Service_base {
|
|
73
|
-
}
|
|
74
|
-
export declare const layerFromRepository: Layer.Layer<Service, never, ExecutionEventRepository.Service>;
|
|
75
|
-
export declare const memoryLayer: Layer.Layer<Service, never, never>;
|
|
76
|
-
type TestImplementation = Omit<Interface, "page"> & Partial<Pick<Interface, "page">>;
|
|
77
|
-
export declare const testLayer: (implementation: TestImplementation) => Layer.Layer<Service, never, never>;
|
|
78
|
-
export declare const appendIdempotentTo: {
|
|
79
|
-
(eventLog: Interface, input: Execution.ExecutionEvent): Effect.Effect<Execution.ExecutionEvent, EventLogError>;
|
|
80
|
-
(input: Execution.ExecutionEvent): (eventLog: Interface) => Effect.Effect<Execution.ExecutionEvent, EventLogError>;
|
|
81
|
-
};
|
|
82
|
-
export declare const append: (input: Execution.ExecutionEvent) => Effect.Effect<Execution.ExecutionEvent, EventLogError, Service>;
|
|
83
|
-
export declare const appendIdempotent: (input: Execution.ExecutionEvent) => Effect.Effect<Execution.ExecutionEvent, EventLogError, Service>;
|
|
84
|
-
export declare const replay: (input: ReplayInput) => Effect.Effect<readonly Execution.ExecutionEvent[], EventLogCursorNotFound | EventLogError, Service>;
|
|
85
|
-
export declare const page: (input: PageInput) => Effect.Effect<PageResult, EventLogCursorNotFound | EventLogError, Service>;
|
|
86
|
-
export declare const findBySequenceOrCursor: (input: FindBySequenceOrCursorInput) => Effect.Effect<Option.Option<Execution.ExecutionEvent>, EventLogError, Service>;
|
|
87
|
-
export declare const findByCursor: (input: FindByCursorInput) => Effect.Effect<Option.Option<Execution.ExecutionEvent>, EventLogError, Service>;
|
|
88
|
-
export declare const findBySequence: (input: FindBySequenceInput) => Effect.Effect<Option.Option<Execution.ExecutionEvent>, EventLogError, Service>;
|
|
89
|
-
export declare const findFirstByTypeAfterSequence: (input: FindFirstByTypeAfterSequenceInput) => Effect.Effect<Option.Option<Execution.ExecutionEvent>, EventLogError, Service>;
|
|
90
|
-
export declare const maxSequence: (executionId: string & import("effect/Brand").Brand<"Relay.ExecutionId">) => Effect.Effect<number | undefined, EventLogError, Service>;
|
|
91
|
-
export declare const sumUsage: (executionId: string & import("effect/Brand").Brand<"Relay.ExecutionId">) => Effect.Effect<number, EventLogError, Service>;
|
|
92
|
-
export declare const stream: (input: ReplayInput) => Stream.Stream<Execution.ExecutionEvent, EventLogCursorNotFound | EventLogError, Service>;
|
|
93
|
-
export {};
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
import { Agent, Envelope, Execution, Ids, Shared } from "../../schema/index";
|
|
2
|
-
import { ExecutionRepository } from "@relayfx/store-sql/portable";
|
|
3
|
-
import { Context, Effect, Layer, Schema, Stream } from "effect";
|
|
4
|
-
import { ShardingConfig } from "effect/unstable/cluster";
|
|
5
|
-
import { Service as ChildRunServiceService } from "../child/child-run-service";
|
|
6
|
-
import { Service as EventLogService } from "./event-log-service";
|
|
7
|
-
import type { ReplayInput } from "./event-log-service";
|
|
8
|
-
declare const ExecutionServiceError_base: Schema.Class<ExecutionServiceError, Schema.TaggedStruct<"ExecutionServiceError", {
|
|
9
|
-
readonly message: Schema.String;
|
|
10
|
-
readonly next_event_sequence: Schema.optionalKey<Schema.Int>;
|
|
11
|
-
}>, import("effect/Cause").YieldableError>;
|
|
12
|
-
export declare class ExecutionServiceError extends ExecutionServiceError_base {
|
|
13
|
-
}
|
|
14
|
-
export interface AcceptInput {
|
|
15
|
-
readonly executionId: Ids.ExecutionId;
|
|
16
|
-
readonly rootAddressId: Ids.AddressId;
|
|
17
|
-
readonly sessionId?: Ids.SessionId;
|
|
18
|
-
readonly eventSequence: Execution.ExecutionEventSequence;
|
|
19
|
-
readonly createdAt: number;
|
|
20
|
-
readonly agentId?: Ids.AgentId;
|
|
21
|
-
readonly agentRevision?: Agent.DefinitionRevision;
|
|
22
|
-
readonly agentSnapshot?: Agent.Definition;
|
|
23
|
-
readonly agentToolInputSchemaDigests?: Agent.ToolInputSchemaDigests;
|
|
24
|
-
readonly metadata?: Shared.Metadata;
|
|
25
|
-
}
|
|
26
|
-
export interface RunInput {
|
|
27
|
-
readonly executionId: Ids.ExecutionId;
|
|
28
|
-
readonly eventSequence: Execution.ExecutionEventSequence;
|
|
29
|
-
readonly startedAt: number;
|
|
30
|
-
readonly completedAt: number;
|
|
31
|
-
readonly program: Effect.Effect<RunProgramResult, ExecutionServiceError>;
|
|
32
|
-
}
|
|
33
|
-
export interface RunProgramResult {
|
|
34
|
-
readonly _tag?: "completed" | "waiting";
|
|
35
|
-
readonly waitId?: Ids.WaitId;
|
|
36
|
-
readonly metadata?: Shared.Metadata;
|
|
37
|
-
readonly nextEventSequence?: Execution.ExecutionEventSequence;
|
|
38
|
-
}
|
|
39
|
-
export interface CancelInput {
|
|
40
|
-
readonly executionId: Ids.ExecutionId;
|
|
41
|
-
readonly eventSequence: Execution.ExecutionEventSequence;
|
|
42
|
-
readonly cancelledAt: number;
|
|
43
|
-
readonly reason?: string;
|
|
44
|
-
readonly metadata?: Shared.Metadata;
|
|
45
|
-
}
|
|
46
|
-
export interface Interface {
|
|
47
|
-
readonly accept: (input: AcceptInput) => Effect.Effect<Execution.Execution, ExecutionServiceError>;
|
|
48
|
-
readonly run: (input: RunInput) => Effect.Effect<Execution.Execution, ExecutionServiceError>;
|
|
49
|
-
readonly cancel: (input: CancelInput) => Effect.Effect<Execution.Execution, ExecutionServiceError>;
|
|
50
|
-
readonly send: (input: Envelope.SendInput) => Effect.Effect<Envelope.EnvelopeAccepted, ExecutionServiceError>;
|
|
51
|
-
readonly spawnChildRun: (input: Execution.SpawnChildRunInput) => Effect.Effect<Execution.ChildRunAccepted, ExecutionServiceError>;
|
|
52
|
-
readonly stream: (input: ReplayInput) => Stream.Stream<Execution.ExecutionEvent, ExecutionServiceError>;
|
|
53
|
-
}
|
|
54
|
-
declare const Service_base: Context.ServiceClass<Service, "@relayfx/runtime/execution/execution-service/Service", Interface>;
|
|
55
|
-
export declare class Service extends Service_base {
|
|
56
|
-
}
|
|
57
|
-
export declare const layer: Layer.Layer<Service, never, ExecutionRepository.Service | EventLogService | ChildRunServiceService | ShardingConfig.ShardingConfig>;
|
|
58
|
-
export declare const memoryLayer: Layer.Layer<Service, never, never>;
|
|
59
|
-
export declare const testLayer: (implementation: Interface) => Layer.Layer<Service, never, never>;
|
|
60
|
-
export declare const accept: (input: AcceptInput) => Effect.Effect<Execution.Execution, ExecutionServiceError, Service>;
|
|
61
|
-
export declare const run: (input: RunInput) => Effect.Effect<Execution.Execution, ExecutionServiceError, Service>;
|
|
62
|
-
export declare const cancel: (input: CancelInput) => Effect.Effect<Execution.Execution, ExecutionServiceError, Service>;
|
|
63
|
-
export declare const send: (input: Envelope.SendInput) => Effect.Effect<Envelope.EnvelopeAccepted, ExecutionServiceError, Service>;
|
|
64
|
-
export declare const spawnChildRun: (input: Execution.SpawnChildRunInput) => Effect.Effect<Execution.ChildRunAccepted, ExecutionServiceError, Service>;
|
|
65
|
-
export declare const stream: (input: ReplayInput) => Stream.Stream<Execution.ExecutionEvent, ExecutionServiceError, Service>;
|
|
66
|
-
export {};
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { Execution, Ids } from "../../schema/index";
|
|
2
|
-
import { ExecutionRepository } from "@relayfx/store-sql/portable";
|
|
3
|
-
import { Context, Layer, Schema, Stream } from "effect";
|
|
4
|
-
declare const ExecutionWatchError_base: Schema.Class<ExecutionWatchError, Schema.TaggedStruct<"ExecutionWatchError", {
|
|
5
|
-
readonly message: Schema.String;
|
|
6
|
-
}>, import("effect/Cause").YieldableError>;
|
|
7
|
-
export declare class ExecutionWatchError extends ExecutionWatchError_base {
|
|
8
|
-
}
|
|
9
|
-
export interface WatchInput {
|
|
10
|
-
readonly rootAddressId?: Ids.AddressId;
|
|
11
|
-
readonly sessionId?: Ids.SessionId;
|
|
12
|
-
readonly status?: Execution.ExecutionStatus;
|
|
13
|
-
readonly limit?: number;
|
|
14
|
-
}
|
|
15
|
-
export type ExecutionListChange = {
|
|
16
|
-
readonly _tag: "snapshot";
|
|
17
|
-
readonly records: ReadonlyArray<ExecutionRepository.ExecutionRecord>;
|
|
18
|
-
readonly nextCursor?: ExecutionRepository.ExecutionCursor;
|
|
19
|
-
} | {
|
|
20
|
-
readonly _tag: "upsert";
|
|
21
|
-
readonly record: ExecutionRepository.ExecutionRecord;
|
|
22
|
-
};
|
|
23
|
-
export interface Interface {
|
|
24
|
-
readonly watch: (input: WatchInput) => Stream.Stream<ExecutionListChange, ExecutionWatchError>;
|
|
25
|
-
}
|
|
26
|
-
declare const Service_base: Context.ServiceClass<Service, "@relayfx/runtime/execution/execution-watch-service/Service", Interface>;
|
|
27
|
-
export declare class Service extends Service_base {
|
|
28
|
-
}
|
|
29
|
-
export declare const layerFromServices: Layer.Layer<Service, never, ExecutionRepository.Service>;
|
|
30
|
-
export declare const memoryLayer: Layer.Layer<Service, never, ExecutionRepository.Service>;
|
|
31
|
-
export declare const testLayer: (implementation: Interface) => Layer.Layer<Service, never, never>;
|
|
32
|
-
export {};
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { Execution, Ids } from "../../schema/index";
|
|
2
|
-
import { ExecutionRepository } from "@relayfx/store-sql/portable";
|
|
3
|
-
import { Context, Layer, Schema, Stream } from "effect";
|
|
4
|
-
import { EventLogCursorNotFound, Service as EventLogService } from "./event-log-service";
|
|
5
|
-
declare const SessionStreamError_base: Schema.Class<SessionStreamError, Schema.TaggedStruct<"SessionStreamError", {
|
|
6
|
-
readonly message: Schema.String;
|
|
7
|
-
}>, import("effect/Cause").YieldableError>;
|
|
8
|
-
export declare class SessionStreamError extends SessionStreamError_base {
|
|
9
|
-
}
|
|
10
|
-
export interface StreamInput {
|
|
11
|
-
readonly sessionId: Ids.SessionId;
|
|
12
|
-
readonly resume?: ReadonlyArray<{
|
|
13
|
-
readonly executionId: Ids.ExecutionId;
|
|
14
|
-
readonly afterCursor?: string;
|
|
15
|
-
}>;
|
|
16
|
-
}
|
|
17
|
-
export type SessionStreamItem = {
|
|
18
|
-
readonly _tag: "execution_joined";
|
|
19
|
-
readonly record: ExecutionRepository.ExecutionRecord;
|
|
20
|
-
} | {
|
|
21
|
-
readonly _tag: "execution_event";
|
|
22
|
-
readonly event: Execution.ExecutionEvent;
|
|
23
|
-
};
|
|
24
|
-
export interface Interface {
|
|
25
|
-
readonly stream: (input: StreamInput) => Stream.Stream<SessionStreamItem, EventLogCursorNotFound | SessionStreamError>;
|
|
26
|
-
}
|
|
27
|
-
declare const Service_base: Context.ServiceClass<Service, "@relayfx/runtime/execution/session-stream-service/Service", Interface>;
|
|
28
|
-
export declare class Service extends Service_base {
|
|
29
|
-
}
|
|
30
|
-
export declare const layerFromServices: Layer.Layer<Service, never, ExecutionRepository.Service | EventLogService>;
|
|
31
|
-
export declare const memoryLayer: Layer.Layer<Service, never, ExecutionRepository.Service | EventLogService>;
|
|
32
|
-
export declare const testLayer: (implementation: Interface) => Layer.Layer<Service, never, never>;
|
|
33
|
-
export {};
|
|
@@ -1,76 +0,0 @@
|
|
|
1
|
-
import { Content, Envelope, Execution, Ids, Inbox } from "../../schema/index";
|
|
2
|
-
import { EnvelopeRepository, ExecutionRepository, InboxRepository } from "@relayfx/store-sql/portable";
|
|
3
|
-
import { Context, Effect, Layer, Schema } from "effect";
|
|
4
|
-
import { Service as EventLogService } from "../execution/event-log-service";
|
|
5
|
-
import { Service as WaitService } from "../wait/wait-service";
|
|
6
|
-
import type { ExecutionClientFactory } from "../wait/wait-signal";
|
|
7
|
-
declare const InboxDeliveryError_base: Schema.Class<InboxDeliveryError, Schema.TaggedStruct<"InboxDeliveryError", {
|
|
8
|
-
readonly execution_id: Schema.brand<Schema.String, "Relay.ExecutionId"> & {
|
|
9
|
-
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.ExecutionId">;
|
|
10
|
-
};
|
|
11
|
-
readonly message: Schema.String;
|
|
12
|
-
}>, import("effect/Cause").YieldableError>;
|
|
13
|
-
export declare class InboxDeliveryError extends InboxDeliveryError_base {
|
|
14
|
-
}
|
|
15
|
-
declare const InboxReplyTokenInvalid_base: Schema.Class<InboxReplyTokenInvalid, Schema.TaggedStruct<"InboxReplyTokenInvalid", {
|
|
16
|
-
readonly reply_token: Schema.String;
|
|
17
|
-
}>, import("effect/Cause").YieldableError>;
|
|
18
|
-
export declare class InboxReplyTokenInvalid extends InboxReplyTokenInvalid_base {
|
|
19
|
-
}
|
|
20
|
-
declare const InboxServiceError_base: Schema.Class<InboxServiceError, Schema.TaggedStruct<"InboxServiceError", {
|
|
21
|
-
readonly message: Schema.String;
|
|
22
|
-
}>, import("effect/Cause").YieldableError>;
|
|
23
|
-
export declare class InboxServiceError extends InboxServiceError_base {
|
|
24
|
-
}
|
|
25
|
-
export interface DeliverInput {
|
|
26
|
-
readonly executionId: Ids.ExecutionId;
|
|
27
|
-
readonly envelope: Envelope.Envelope;
|
|
28
|
-
readonly acceptance?: EnvelopeRepository.AcceptEnvelopeInput;
|
|
29
|
-
readonly idempotencyKey?: string;
|
|
30
|
-
readonly replyWaitId?: Ids.WaitId;
|
|
31
|
-
readonly eventSequence: Execution.ExecutionEventSequence;
|
|
32
|
-
readonly createdAt: number;
|
|
33
|
-
}
|
|
34
|
-
export interface DeliverResult {
|
|
35
|
-
readonly sequence: Inbox.MessageSequence;
|
|
36
|
-
readonly deduplicated: boolean;
|
|
37
|
-
}
|
|
38
|
-
export interface DrainInput {
|
|
39
|
-
readonly executionId: Ids.ExecutionId;
|
|
40
|
-
readonly drainId: string;
|
|
41
|
-
readonly maxBatch?: number;
|
|
42
|
-
}
|
|
43
|
-
export interface EnsureReplyWaitInput {
|
|
44
|
-
readonly envelope: Envelope.Envelope;
|
|
45
|
-
readonly waitId: Ids.WaitId;
|
|
46
|
-
}
|
|
47
|
-
export interface ReplyInput {
|
|
48
|
-
readonly replyToken: string;
|
|
49
|
-
readonly from: Ids.AddressId;
|
|
50
|
-
readonly content: ReadonlyArray<Content.Part>;
|
|
51
|
-
readonly createdAt: number;
|
|
52
|
-
}
|
|
53
|
-
export interface Interface {
|
|
54
|
-
readonly deliver: (input: DeliverInput) => Effect.Effect<DeliverResult, InboxDeliveryError>;
|
|
55
|
-
readonly ensureReplyWait: (input: EnsureReplyWaitInput) => Effect.Effect<void, InboxDeliveryError>;
|
|
56
|
-
readonly drain: (input: DrainInput) => Effect.Effect<ReadonlyArray<Inbox.Message>, InboxServiceError>;
|
|
57
|
-
readonly undrainedCount: (executionId: Ids.ExecutionId) => Effect.Effect<number, InboxServiceError>;
|
|
58
|
-
readonly reply: (input: ReplyInput) => Effect.Effect<Envelope.EnvelopeAccepted, InboxReplyTokenInvalid | InboxDeliveryError>;
|
|
59
|
-
}
|
|
60
|
-
declare const Service_base: Context.ServiceClass<Service, "@relayfx/runtime/inbox/inbox-service/Service", Interface>;
|
|
61
|
-
export declare class Service extends Service_base {
|
|
62
|
-
}
|
|
63
|
-
export interface SignalDependencies {
|
|
64
|
-
readonly makeExecutionClient: ExecutionClientFactory;
|
|
65
|
-
readonly executionRepository: ExecutionRepository.Service["Service"];
|
|
66
|
-
}
|
|
67
|
-
export declare const layer: Layer.Layer<Service, never, EnvelopeRepository.Service | InboxRepository.Service | EventLogService | WaitService>;
|
|
68
|
-
export declare const layerWithSignal: (dependencies: SignalDependencies) => Layer.Layer<Service, never, EnvelopeRepository.Service | InboxRepository.Service | EventLogService | WaitService>;
|
|
69
|
-
export declare const memoryLayer: Layer.Layer<Service, never, EventLogService | WaitService>;
|
|
70
|
-
export declare const testLayer: (implementation: Interface) => Layer.Layer<Service, never, never>;
|
|
71
|
-
export declare const deliver: (input: DeliverInput) => Effect.Effect<DeliverResult, InboxDeliveryError, Service>;
|
|
72
|
-
export declare const ensureReplyWait: (input: EnsureReplyWaitInput) => Effect.Effect<void, InboxDeliveryError, Service>;
|
|
73
|
-
export declare const drain: (input: DrainInput) => Effect.Effect<readonly Inbox.Message[], InboxServiceError, Service>;
|
|
74
|
-
export declare const undrainedCount: (id: Ids.ExecutionId) => Effect.Effect<number, InboxServiceError, Service>;
|
|
75
|
-
export declare const reply: (input: ReplyInput) => Effect.Effect<Envelope.EnvelopeAccepted, InboxDeliveryError | InboxReplyTokenInvalid, Service>;
|
|
76
|
-
export {};
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { Ids } from "../../schema/index";
|
|
2
|
-
import { Schema } from "effect";
|
|
3
|
-
import type { Interface as EnvelopeInterface } from "../envelope/envelope-service";
|
|
4
|
-
import type { RegisteredTool } from "../tool/tool-runtime-service";
|
|
5
|
-
import type { Interface as InboxInterface } from "./inbox-service";
|
|
6
|
-
export declare const toolName = "send_message";
|
|
7
|
-
export declare const permissionName = "relay.inbox.send";
|
|
8
|
-
export declare const Input: Schema.Struct<{
|
|
9
|
-
readonly to: Schema.String;
|
|
10
|
-
readonly content: Schema.Union<readonly [Schema.String, Schema.$Array<Schema.Struct<{
|
|
11
|
-
readonly type: Schema.Literal<"text">;
|
|
12
|
-
readonly text: Schema.String;
|
|
13
|
-
readonly provider_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
14
|
-
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
15
|
-
}>>]>;
|
|
16
|
-
readonly reply_token: Schema.optionalKey<Schema.String>;
|
|
17
|
-
}>;
|
|
18
|
-
export declare const Output: Schema.Struct<{
|
|
19
|
-
readonly envelope_id: Schema.String;
|
|
20
|
-
readonly delivered: Schema.Literals<readonly ["inbox", "outbox", "reply"]>;
|
|
21
|
-
}>;
|
|
22
|
-
export interface Config {
|
|
23
|
-
readonly inbox: InboxInterface;
|
|
24
|
-
readonly envelopes: EnvelopeInterface;
|
|
25
|
-
readonly from: Ids.AddressId;
|
|
26
|
-
}
|
|
27
|
-
export declare const registeredTool: (config: Config) => RegisteredTool;
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { Schema } from "effect";
|
|
2
|
-
import type { Interface as EventLogInterface } from "../execution/event-log-service";
|
|
3
|
-
import type { Interface as WaitServiceInterface } from "../wait/wait-service";
|
|
4
|
-
import type { RegisteredTool } from "../tool/tool-runtime-service";
|
|
5
|
-
import type { Interface as InboxInterface } from "./inbox-service";
|
|
6
|
-
export declare const toolName = "wait_for_messages";
|
|
7
|
-
export declare const permissionName = "relay.inbox.wait";
|
|
8
|
-
export declare const Input: Schema.Struct<{
|
|
9
|
-
readonly timeout: Schema.optionalKey<Schema.String>;
|
|
10
|
-
}>;
|
|
11
|
-
export interface Input extends Schema.Schema.Type<typeof Input> {
|
|
12
|
-
}
|
|
13
|
-
export declare const Output: Schema.Struct<{
|
|
14
|
-
readonly status: Schema.Literals<readonly ["messages", "timed_out"]>;
|
|
15
|
-
readonly messages: Schema.$Array<Schema.Struct<{
|
|
16
|
-
readonly sequence: Schema.Int;
|
|
17
|
-
readonly from: Schema.String;
|
|
18
|
-
readonly content: Schema.$Array<Schema.Struct<{
|
|
19
|
-
readonly type: Schema.Literal<"text">;
|
|
20
|
-
readonly text: Schema.String;
|
|
21
|
-
readonly provider_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
22
|
-
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
23
|
-
}>>;
|
|
24
|
-
readonly reply_token: Schema.optionalKey<Schema.String>;
|
|
25
|
-
readonly correlation_key: Schema.optionalKey<Schema.String>;
|
|
26
|
-
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
27
|
-
}>>;
|
|
28
|
-
}>;
|
|
29
|
-
export interface Config {
|
|
30
|
-
readonly inbox: InboxInterface;
|
|
31
|
-
readonly waits: WaitServiceInterface;
|
|
32
|
-
readonly eventLog: EventLogInterface;
|
|
33
|
-
}
|
|
34
|
-
export declare const registeredTool: (config: Config) => RegisteredTool;
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
export * as AddressBook from "./address/address-book-service";
|
|
2
|
-
export * as AddressResolution from "./address/address-resolution-service";
|
|
3
|
-
export * as AgentLoop from "./agent/agent-loop-service";
|
|
4
|
-
export * as AgentRegistry from "./agent/agent-registry-service";
|
|
5
|
-
export * as ArtifactStore from "./content/artifact-store-service";
|
|
6
|
-
export * as BlobStore from "./content/blob-store-service";
|
|
7
|
-
export * as ChildRunService from "./child/child-run-service";
|
|
8
|
-
export * as ChildFanOutAdmission from "./child/child-fan-out-admission-service";
|
|
9
|
-
export * as ChildFanOutTransition from "./child/child-fan-out-transition-service";
|
|
10
|
-
export * as ChildFanOutRuntime from "./child/child-fan-out-runtime";
|
|
11
|
-
export * as SpawnChildRunTool from "./child/spawn-child-run-tool";
|
|
12
|
-
export * as ExecutionEntity from "./cluster/execution-entity";
|
|
13
|
-
export * as EnvelopeService from "./envelope/envelope-service";
|
|
14
|
-
export * as EntityInstanceService from "./entity/entity-instance-service";
|
|
15
|
-
export * as EntityRegistry from "./entity/entity-registry-service";
|
|
16
|
-
export * as InboxService from "./inbox/inbox-service";
|
|
17
|
-
export * as TopicService from "./topic/topic-service";
|
|
18
|
-
export * as PublishToTopicTool from "./topic/publish-to-topic-tool";
|
|
19
|
-
export * as SendMessageTool from "./inbox/send-message-tool";
|
|
20
|
-
export * as WaitForMessagesTool from "./inbox/wait-for-messages-tool";
|
|
21
|
-
export * as EventLog from "./execution/event-log-service";
|
|
22
|
-
export * as ActiveExecutionRegistry from "./execution/active-execution-registry";
|
|
23
|
-
export * as ExecutionWatch from "./execution/execution-watch-service";
|
|
24
|
-
export * as ExecutionService from "./execution/execution-service";
|
|
25
|
-
export * as SessionStream from "./execution/session-stream-service";
|
|
26
|
-
export * as EmbeddingModelService from "./model/embedding-model-service";
|
|
27
|
-
export * as LanguageModelService from "./model/language-model-service";
|
|
28
|
-
export * as MemoryService from "./memory/memory-service";
|
|
29
|
-
export * as ModelCallPolicy from "./model/model-call-policy";
|
|
30
|
-
export * as ParentNotifier from "./child/parent-notifier-service";
|
|
31
|
-
export * as PresenceService from "./presence/presence-service";
|
|
32
|
-
export * as PresenceTool from "./presence/presence-tool";
|
|
33
|
-
export * as PromptAssembler from "./agent/prompt-assembler-service";
|
|
34
|
-
export * as RelayCompaction from "./agent/relay-compaction";
|
|
35
|
-
export * as RelayPermissions from "./agent/relay-permissions";
|
|
36
|
-
export * as RelaySteering from "./agent/relay-steering";
|
|
37
|
-
export * as RelayToolOutput from "./agent/relay-tool-output";
|
|
38
|
-
export * as RunnerRuntime from "./runner/runner-runtime-service";
|
|
39
|
-
export * as SchedulerService from "./schedule/scheduler-service";
|
|
40
|
-
export * as SchemaRegistry from "./schema-registry/schema-registry-service";
|
|
41
|
-
export * as RelaySessionStore from "./session/session-store-service";
|
|
42
|
-
export * as SkillRegistry from "./skill/skill-registry-service";
|
|
43
|
-
export * as ExecutionState from "./state/execution-state-service";
|
|
44
|
-
export * as StateTools from "./state/state-tools";
|
|
45
|
-
export * as ToolRuntime from "./tool/tool-runtime-service";
|
|
46
|
-
export * as ToolTransitionCoordinator from "./tool/tool-transition-coordinator";
|
|
47
|
-
export * as ToolInputSchemaDigest from "./tool/tool-input-schema-digest";
|
|
48
|
-
export * as WaitService from "./wait/wait-service";
|
|
49
|
-
export * as WaitSignal from "./wait/wait-signal";
|
|
50
|
-
export * as WorkspacePlanner from "./workspace/workspace-planner-service";
|
|
51
|
-
export * as WorkspaceProvider from "./workspace/workspace-provider-service";
|
|
52
|
-
export * as WorkspaceRuntime from "./workspace/workspace-runtime-service";
|
|
53
|
-
export * as ExecutionWorkflow from "./workflow/execution-workflow";
|
|
54
|
-
export * as WorkflowDefinitionRuntime from "./workflow/definition-runtime";
|
|
55
|
-
export * as ActivityVersionRegistry from "./workflow/activity-version-registry";
|
|
56
|
-
export declare const runtimePackage = "./index";
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { Memory } from "@batonfx/core";
|
|
2
|
-
import { MemoryRepository } from "@relayfx/store-sql/portable";
|
|
3
|
-
import { Context, Effect, Layer } from "effect";
|
|
4
|
-
import { Service as EmbeddingModelServiceService } from "../model/embedding-model-service";
|
|
5
|
-
import type { ModelSelection } from "../model/embedding-model-service";
|
|
6
|
-
export interface Options {
|
|
7
|
-
readonly topK?: number | undefined;
|
|
8
|
-
readonly minScore?: number | undefined;
|
|
9
|
-
readonly embeddingSelection?: ModelSelection | undefined;
|
|
10
|
-
}
|
|
11
|
-
export interface Interface extends Memory.Interface {
|
|
12
|
-
}
|
|
13
|
-
declare const Service_base: Context.ServiceClass<Service, "@relayfx/runtime/memory/memory-service/Service", Interface>;
|
|
14
|
-
export declare class Service extends Service_base {
|
|
15
|
-
}
|
|
16
|
-
export declare const layer: (options?: Options) => Layer.Layer<Service | Memory.Memory, never, MemoryRepository.Service | EmbeddingModelServiceService>;
|
|
17
|
-
export declare const memoryLayer: (options?: Options) => Layer.Layer<Service | Memory.Memory, never, MemoryRepository.Service | EmbeddingModelServiceService>;
|
|
18
|
-
export declare const testLayer: (implementation: Interface) => Layer.Layer<Service | Memory.Memory>;
|
|
19
|
-
export declare const recall: (input: Memory.RecallInput) => Effect.Effect<readonly Memory.Item[], Memory.MemoryError, Service>;
|
|
20
|
-
export declare const remember: (input: Memory.RememberInput) => Effect.Effect<void, Memory.MemoryError, Service>;
|
|
21
|
-
export declare const forget: (input: Memory.ForgetInput) => Effect.Effect<void, Memory.MemoryError, Service>;
|
|
22
|
-
export {};
|