@relayfx/sdk 0.0.27 → 0.0.29
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +4544 -3596
- package/dist/types/store-sql/address/address-book-repository.d.ts +11 -2
- package/dist/types/store-sql/agent/agent-definition-repository.d.ts +17 -2
- package/dist/types/store-sql/child/child-execution-repository.d.ts +11 -2
- package/dist/types/store-sql/cluster/cluster-registry-repository.d.ts +4 -4
- package/dist/types/store-sql/compaction/compaction-repository.d.ts +10 -2
- package/dist/types/store-sql/database/notification-bus.d.ts +16 -0
- package/dist/types/store-sql/execution/execution-event-repository.d.ts +15 -2
- package/dist/types/store-sql/idempotency/idempotency-repository.d.ts +11 -2
- package/dist/types/store-sql/index.d.ts +1 -0
- package/dist/types/store-sql/memory/memory-repository.d.ts +12 -2
- package/dist/types/store-sql/permission/permission-rule-repository.d.ts +9 -3
- package/dist/types/store-sql/schedule/schedule-repository.d.ts +21 -2
- package/dist/types/store-sql/session/context-epoch-repository.d.ts +8 -2
- package/dist/types/store-sql/skill/skill-definition-repository.d.ts +22 -2
- package/dist/types/store-sql/tool/tool-call-repository.d.ts +17 -2
- package/dist/types/store-sql/workspace/workspace-lease-repository.d.ts +25 -2
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Ids, Shared } from "../../schema/index";
|
|
2
2
|
import { Context, Effect, Layer, Schema } from "effect";
|
|
3
|
-
import * as
|
|
3
|
+
import * as SqlClient from "effect/unstable/sql/SqlClient";
|
|
4
4
|
export declare const RouteKind: Schema.Literals<readonly ["local-agent", "remote-relay", "local-adapter", "unavailable", "deferred-retry"]>;
|
|
5
5
|
export type RouteKind = typeof RouteKind.Type;
|
|
6
6
|
declare const AddressNotFound_base: Schema.Class<AddressNotFound, Schema.TaggedStruct<"AddressNotFound", {
|
|
@@ -39,7 +39,16 @@ export interface Interface {
|
|
|
39
39
|
declare const Service_base: Context.ServiceClass<Service, "@relayfx/store-sql/AddressBookRepository", Interface>;
|
|
40
40
|
export declare class Service extends Service_base {
|
|
41
41
|
}
|
|
42
|
-
export declare const
|
|
42
|
+
export declare const AddressBookRow: Schema.Struct<{
|
|
43
|
+
readonly id: Schema.String;
|
|
44
|
+
readonly address_id: Schema.String;
|
|
45
|
+
readonly route_kind: Schema.String;
|
|
46
|
+
readonly route_key: Schema.String;
|
|
47
|
+
readonly metadata_json: Schema.Unknown;
|
|
48
|
+
readonly created_at: Schema.Union<readonly [Schema.Date, Schema.String, Schema.Number]>;
|
|
49
|
+
readonly updated_at: Schema.Union<readonly [Schema.Date, Schema.String, Schema.Number]>;
|
|
50
|
+
}>;
|
|
51
|
+
export declare const layer: Layer.Layer<Service, never, SqlClient.SqlClient>;
|
|
43
52
|
export declare const memoryLayer: Layer.Layer<Service, never, never>;
|
|
44
53
|
export declare const testLayer: (implementation: Interface) => Layer.Layer<Service, never, never>;
|
|
45
54
|
export declare const upsert: (input: UpsertAddressBookEntryInput) => Effect.Effect<AddressBookEntry, AddressBookRepositoryError, Service>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Agent, Ids } from "../../schema/index";
|
|
2
2
|
import { Context, Effect, Layer, Schema } from "effect";
|
|
3
|
-
import * as
|
|
3
|
+
import * as SqlClient from "effect/unstable/sql/SqlClient";
|
|
4
4
|
declare const AgentDefinitionRepositoryError_base: Schema.Class<AgentDefinitionRepositoryError, Schema.TaggedStruct<"AgentDefinitionRepositoryError", {
|
|
5
5
|
readonly message: Schema.String;
|
|
6
6
|
}>, import("effect/Cause").YieldableError>;
|
|
@@ -41,7 +41,22 @@ export interface Interface {
|
|
|
41
41
|
declare const Service_base: Context.ServiceClass<Service, "@relayfx/store-sql/AgentDefinitionRepository", Interface>;
|
|
42
42
|
export declare class Service extends Service_base {
|
|
43
43
|
}
|
|
44
|
-
export declare const
|
|
44
|
+
export declare const AgentDefinitionRow: Schema.Struct<{
|
|
45
|
+
readonly id: Schema.String;
|
|
46
|
+
readonly current_revision: Schema.Number;
|
|
47
|
+
readonly definition_json: Schema.Unknown;
|
|
48
|
+
readonly tool_input_schema_digests_json: Schema.Unknown;
|
|
49
|
+
readonly created_at: Schema.Union<readonly [Schema.Date, Schema.String, Schema.Number]>;
|
|
50
|
+
readonly updated_at: Schema.Union<readonly [Schema.Date, Schema.String, Schema.Number]>;
|
|
51
|
+
}>;
|
|
52
|
+
export declare const AgentDefinitionRevisionRow: Schema.Struct<{
|
|
53
|
+
readonly agent_definition_id: Schema.String;
|
|
54
|
+
readonly revision: Schema.Number;
|
|
55
|
+
readonly definition_json: Schema.Unknown;
|
|
56
|
+
readonly tool_input_schema_digests_json: Schema.Unknown;
|
|
57
|
+
readonly created_at: Schema.Union<readonly [Schema.Date, Schema.String, Schema.Number]>;
|
|
58
|
+
}>;
|
|
59
|
+
export declare const layer: Layer.Layer<Service, never, SqlClient.SqlClient>;
|
|
45
60
|
export declare const memoryLayer: Layer.Layer<Service, never, never>;
|
|
46
61
|
export declare const testLayer: (implementation: Interface) => Layer.Layer<Service, never, never>;
|
|
47
62
|
export declare const put: (input: PutAgentDefinitionInput) => Effect.Effect<AgentDefinitionRecord, AgentDefinitionRepositoryError, Service>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Execution, Ids, Shared } from "../../schema/index";
|
|
2
2
|
import { Context, Effect, Layer, Schema } from "effect";
|
|
3
|
-
import * as
|
|
3
|
+
import * as SqlClient from "effect/unstable/sql/SqlClient";
|
|
4
4
|
declare const ChildExecutionRepositoryError_base: Schema.Class<ChildExecutionRepositoryError, Schema.TaggedStruct<"ChildExecutionRepositoryError", {
|
|
5
5
|
readonly message: Schema.String;
|
|
6
6
|
}>, import("effect/Cause").YieldableError>;
|
|
@@ -52,7 +52,16 @@ export interface Interface {
|
|
|
52
52
|
declare const Service_base: Context.ServiceClass<Service, "@relayfx/store-sql/ChildExecutionRepository", Interface>;
|
|
53
53
|
export declare class Service extends Service_base {
|
|
54
54
|
}
|
|
55
|
-
export declare const
|
|
55
|
+
export declare const ChildExecutionRow: Schema.Struct<{
|
|
56
|
+
readonly id: Schema.String;
|
|
57
|
+
readonly execution_id: Schema.String;
|
|
58
|
+
readonly address_id: Schema.String;
|
|
59
|
+
readonly status: Schema.String;
|
|
60
|
+
readonly metadata_json: Schema.Unknown;
|
|
61
|
+
readonly created_at: Schema.Union<readonly [Schema.Date, Schema.String, Schema.Number]>;
|
|
62
|
+
readonly updated_at: Schema.Union<readonly [Schema.Date, Schema.String, Schema.Number]>;
|
|
63
|
+
}>;
|
|
64
|
+
export declare const layer: Layer.Layer<Service, never, SqlClient.SqlClient>;
|
|
56
65
|
export declare const memoryLayer: Layer.Layer<Service, never, never>;
|
|
57
66
|
export declare const testLayer: (implementation: Interface) => Layer.Layer<Service, never, never>;
|
|
58
67
|
export declare const create: (input: CreateChildExecutionInput) => Effect.Effect<ChildExecutionRecord, ChildExecutionRepositoryError | DuplicateChildExecution, Service>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Context, Effect, Layer, Schema } from "effect";
|
|
2
|
-
import
|
|
2
|
+
import * as SqlClient from "effect/unstable/sql/SqlClient";
|
|
3
3
|
declare const ClusterRegistryError_base: Schema.Class<ClusterRegistryError, Schema.TaggedStruct<"ClusterRegistryError", {
|
|
4
4
|
readonly message: Schema.String;
|
|
5
5
|
}>, import("effect/Cause").YieldableError>;
|
|
@@ -20,9 +20,9 @@ export declare class Service extends Service_base {
|
|
|
20
20
|
}
|
|
21
21
|
export declare const RunnerRow: Schema.Struct<{
|
|
22
22
|
readonly address: Schema.String;
|
|
23
|
-
readonly healthy: Schema.Boolean
|
|
24
|
-
readonly last_heartbeat: Schema.Union<readonly [Schema.Date, Schema.
|
|
25
|
-
readonly owned_shards: Schema.Union<readonly [Schema.Number, Schema.
|
|
23
|
+
readonly healthy: Schema.Union<readonly [Schema.Boolean, Schema.Number, Schema.String]>;
|
|
24
|
+
readonly last_heartbeat: Schema.Union<readonly [Schema.Date, Schema.String, Schema.Number]>;
|
|
25
|
+
readonly owned_shards: Schema.Union<readonly [Schema.Number, Schema.String, Schema.BigInt]>;
|
|
26
26
|
}>;
|
|
27
27
|
export declare const LockRow: Schema.Struct<{
|
|
28
28
|
readonly address: Schema.String;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Ids } from "../../schema/index";
|
|
2
2
|
import { Context, Effect, Layer, Schema } from "effect";
|
|
3
|
-
import * as
|
|
3
|
+
import * as SqlClient from "effect/unstable/sql/SqlClient";
|
|
4
4
|
declare const CompactionRepositoryError_base: Schema.Class<CompactionRepositoryError, Schema.TaggedStruct<"CompactionRepositoryError", {
|
|
5
5
|
readonly message: Schema.String;
|
|
6
6
|
}>, import("effect/Cause").YieldableError>;
|
|
@@ -28,7 +28,15 @@ export interface Interface {
|
|
|
28
28
|
declare const Service_base: Context.ServiceClass<Service, "@relayfx/store-sql/CompactionRepository", Interface>;
|
|
29
29
|
export declare class Service extends Service_base {
|
|
30
30
|
}
|
|
31
|
-
export declare const
|
|
31
|
+
export declare const CompactionCheckpointRow: Schema.Struct<{
|
|
32
|
+
readonly execution_id: Schema.String;
|
|
33
|
+
readonly checkpoint_id: Schema.String;
|
|
34
|
+
readonly summary: Schema.String;
|
|
35
|
+
readonly first_kept_entry_id: Schema.String;
|
|
36
|
+
readonly turn: Schema.Number;
|
|
37
|
+
readonly created_at: Schema.Union<readonly [Schema.Date, Schema.String, Schema.Number]>;
|
|
38
|
+
}>;
|
|
39
|
+
export declare const layer: Layer.Layer<Service, never, SqlClient.SqlClient>;
|
|
32
40
|
export declare const memoryLayer: Layer.Layer<Service, never, never>;
|
|
33
41
|
export declare const testLayer: (implementation: Interface) => Layer.Layer<Service, never, never>;
|
|
34
42
|
export declare const get: (input: GetInput) => Effect.Effect<CompactionCheckpointRecord | undefined, CompactionRepositoryError, Service>;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Context, Effect, Layer, Stream } from "effect";
|
|
2
|
+
import * as SqlClient from "effect/unstable/sql/SqlClient";
|
|
3
|
+
import type { SqlError } from "effect/unstable/sql/SqlError";
|
|
4
|
+
export interface Interface {
|
|
5
|
+
readonly publish: (channel: string, payload: string) => Effect.Effect<void, SqlError>;
|
|
6
|
+
readonly subscribe: (channel: string) => Stream.Stream<string, SqlError>;
|
|
7
|
+
}
|
|
8
|
+
declare const Service_base: Context.ServiceClass<Service, "@relayfx/store-sql/NotificationBus", Interface>;
|
|
9
|
+
export declare class Service extends Service_base {
|
|
10
|
+
}
|
|
11
|
+
export declare const pgLayer: Layer.Layer<Service, never, SqlClient.SqlClient>;
|
|
12
|
+
export declare const inProcessLayer: Layer.Layer<Service, never, never>;
|
|
13
|
+
export declare const mysqlLayer: Layer.Layer<Service, never, never>;
|
|
14
|
+
export declare const layerFromDialect: Layer.Layer<Service, never, SqlClient.SqlClient>;
|
|
15
|
+
export declare const testLayer: (implementation: Interface) => Layer.Layer<Service, never, never>;
|
|
16
|
+
export {};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { Execution, Ids } from "../../schema/index";
|
|
2
2
|
import { Context, Effect, Layer, Option, Schema, Stream } from "effect";
|
|
3
|
-
import * as
|
|
3
|
+
import * as SqlClient from "effect/unstable/sql/SqlClient";
|
|
4
|
+
import * as NotificationBus from "../database/notification-bus";
|
|
4
5
|
export declare const executionEventsChannel = "relay_execution_events";
|
|
5
6
|
declare const DuplicateExecutionEvent_base: Schema.Class<DuplicateExecutionEvent, Schema.TaggedStruct<"DuplicateExecutionEvent", {
|
|
6
7
|
readonly execution_id: Schema.brand<Schema.String, "Relay.ExecutionId"> & {
|
|
@@ -72,7 +73,19 @@ export interface Interface {
|
|
|
72
73
|
declare const Service_base: Context.ServiceClass<Service, "@relayfx/store-sql/ExecutionEventRepository", Interface>;
|
|
73
74
|
export declare class Service extends Service_base {
|
|
74
75
|
}
|
|
75
|
-
export declare const
|
|
76
|
+
export declare const ExecutionEventRow: Schema.Struct<{
|
|
77
|
+
readonly id: Schema.String;
|
|
78
|
+
readonly execution_id: Schema.String;
|
|
79
|
+
readonly child_execution_id: Schema.NullishOr<Schema.String>;
|
|
80
|
+
readonly type: Schema.String;
|
|
81
|
+
readonly sequence: Schema.Union<readonly [Schema.Number, Schema.String]>;
|
|
82
|
+
readonly cursor: Schema.String;
|
|
83
|
+
readonly content_json: Schema.NullishOr<Schema.Unknown>;
|
|
84
|
+
readonly data_json: Schema.Unknown;
|
|
85
|
+
readonly created_at: Schema.Union<readonly [Schema.Date, Schema.String, Schema.Number]>;
|
|
86
|
+
}>;
|
|
87
|
+
export declare const layer: Layer.Layer<Service, never, SqlClient.SqlClient | NotificationBus.Service>;
|
|
88
|
+
export declare const layerWithBus: Layer.Layer<Service, never, SqlClient.SqlClient>;
|
|
76
89
|
export declare const memoryLayer: Layer.Layer<Service, never, never>;
|
|
77
90
|
export declare const testLayer: (implementation: Interface) => Layer.Layer<Service, never, never>;
|
|
78
91
|
export declare const append: (input: Execution.ExecutionEvent) => Effect.Effect<Execution.ExecutionEvent, DuplicateExecutionEvent | ExecutionEventOrderViolation | ExecutionEventRepositoryError, Service>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Shared } from "../../schema/index";
|
|
2
2
|
import { Context, Effect, Layer, Schema } from "effect";
|
|
3
|
-
import * as
|
|
3
|
+
import * as SqlClient from "effect/unstable/sql/SqlClient";
|
|
4
4
|
declare const IdempotencyRepositoryError_base: Schema.Class<IdempotencyRepositoryError, Schema.TaggedStruct<"IdempotencyRepositoryError", {
|
|
5
5
|
readonly message: Schema.String;
|
|
6
6
|
}>, import("effect/Cause").YieldableError>;
|
|
@@ -34,7 +34,16 @@ export interface Interface {
|
|
|
34
34
|
declare const Service_base: Context.ServiceClass<Service, "@relayfx/store-sql/IdempotencyRepository", Interface>;
|
|
35
35
|
export declare class Service extends Service_base {
|
|
36
36
|
}
|
|
37
|
-
export declare const
|
|
37
|
+
export declare const IdempotencyRow: Schema.Struct<{
|
|
38
|
+
readonly scope: Schema.String;
|
|
39
|
+
readonly operation: Schema.String;
|
|
40
|
+
readonly key: Schema.String;
|
|
41
|
+
readonly result_json: Schema.NullishOr<Schema.Unknown>;
|
|
42
|
+
readonly metadata_json: Schema.Unknown;
|
|
43
|
+
readonly created_at: Schema.Union<readonly [Schema.Date, Schema.String, Schema.Number]>;
|
|
44
|
+
readonly expires_at: Schema.NullishOr<Schema.Union<readonly [Schema.Date, Schema.String, Schema.Number]>>;
|
|
45
|
+
}>;
|
|
46
|
+
export declare const layer: Layer.Layer<Service, never, SqlClient.SqlClient>;
|
|
38
47
|
export declare const memoryLayer: Layer.Layer<Service, never, never>;
|
|
39
48
|
export declare const testLayer: (implementation: Interface) => Layer.Layer<Service, never, never>;
|
|
40
49
|
export declare const runOnce: <R>(input: OperationInput, create: Effect.Effect<Shared.JsonValue, IdempotencyRepositoryError, R>) => Effect.Effect<IdempotencyOutcome, IdempotencyRepositoryError, Service | R>;
|
|
@@ -10,6 +10,7 @@ export * as ExecutionEventRepository from "./execution/execution-event-repositor
|
|
|
10
10
|
export * as ExecutionRepository from "./execution/execution-repository";
|
|
11
11
|
export * as IdempotencyRepository from "./idempotency/idempotency-repository";
|
|
12
12
|
export * as MemoryRepository from "./memory/memory-repository";
|
|
13
|
+
export * as NotificationBus from "./database/notification-bus";
|
|
13
14
|
export * as PermissionRuleRepository from "./permission/permission-rule-repository";
|
|
14
15
|
export * as ContextEpochRepository from "./session/context-epoch-repository";
|
|
15
16
|
export * as RelaySchema from "./schema/relay-schema";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Ids, Shared } from "../../schema/index";
|
|
2
2
|
import { Context, Effect, Layer, Schema } from "effect";
|
|
3
3
|
import type * as Ai from "effect/unstable/ai";
|
|
4
|
-
import * as
|
|
4
|
+
import * as SqlClient from "effect/unstable/sql/SqlClient";
|
|
5
5
|
declare const MemoryRepositoryError_base: Schema.Class<MemoryRepositoryError, Schema.TaggedStruct<"MemoryRepositoryError", {
|
|
6
6
|
readonly message: Schema.String;
|
|
7
7
|
}>, import("effect/Cause").YieldableError>;
|
|
@@ -42,7 +42,17 @@ export interface Interface {
|
|
|
42
42
|
declare const Service_base: Context.ServiceClass<Service, "@relayfx/store-sql/MemoryRepository", Interface>;
|
|
43
43
|
export declare class Service extends Service_base {
|
|
44
44
|
}
|
|
45
|
-
export declare const
|
|
45
|
+
export declare const recallCandidateCap = 1000;
|
|
46
|
+
export declare const MemoryRow: Schema.Struct<{
|
|
47
|
+
readonly id: Schema.String;
|
|
48
|
+
readonly agent: Schema.String;
|
|
49
|
+
readonly subject: Schema.String;
|
|
50
|
+
readonly embedding: Schema.Union<readonly [Schema.$Array<Schema.Number>, Schema.String]>;
|
|
51
|
+
readonly parts_json: Schema.Unknown;
|
|
52
|
+
readonly metadata_json: Schema.Unknown;
|
|
53
|
+
readonly created_at: Schema.Union<readonly [Schema.Date, Schema.String, Schema.Number]>;
|
|
54
|
+
}>;
|
|
55
|
+
export declare const layer: Layer.Layer<Service, never, SqlClient.SqlClient>;
|
|
46
56
|
export declare const memoryLayer: Layer.Layer<Service, never, never>;
|
|
47
57
|
export declare const testLayer: (implementation: Interface) => Layer.Layer<Service, never, never>;
|
|
48
58
|
export declare const upsert: (input: UpsertInput) => Effect.Effect<MemoryRecord, MemoryRepositoryError, Service>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Agent } from "../../schema/index";
|
|
1
|
+
import type { Agent } from "../../schema/index";
|
|
2
2
|
import { Context, Effect, Layer, Schema } from "effect";
|
|
3
|
-
import * as
|
|
3
|
+
import * as SqlClient from "effect/unstable/sql/SqlClient";
|
|
4
4
|
declare const PermissionRuleRepositoryError_base: Schema.Class<PermissionRuleRepositoryError, Schema.TaggedStruct<"PermissionRuleRepositoryError", {
|
|
5
5
|
readonly message: Schema.String;
|
|
6
6
|
}>, import("effect/Cause").YieldableError>;
|
|
@@ -29,7 +29,13 @@ export interface Interface {
|
|
|
29
29
|
declare const Service_base: Context.ServiceClass<Service, "@relayfx/store-sql/PermissionRuleRepository", Interface>;
|
|
30
30
|
export declare class Service extends Service_base {
|
|
31
31
|
}
|
|
32
|
-
export declare const
|
|
32
|
+
export declare const PermissionRuleRow: Schema.Struct<{
|
|
33
|
+
readonly agent: Schema.String;
|
|
34
|
+
readonly scope: Schema.String;
|
|
35
|
+
readonly rule_json: Schema.Unknown;
|
|
36
|
+
readonly created_at: Schema.Union<readonly [Schema.Date, Schema.String, Schema.Number]>;
|
|
37
|
+
}>;
|
|
38
|
+
export declare const layer: Layer.Layer<Service, never, SqlClient.SqlClient>;
|
|
33
39
|
export declare const memoryLayer: Layer.Layer<Service, never, never>;
|
|
34
40
|
export declare const testLayer: (implementation: Interface) => Layer.Layer<Service, never, never>;
|
|
35
41
|
export declare const remember: (input: RememberInput) => Effect.Effect<PermissionRuleRecord, PermissionRuleRepositoryError, Service>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Content, Ids, Schedule, Shared } from "../../schema/index";
|
|
2
2
|
import { Context, Effect, Layer, Schema } from "effect";
|
|
3
|
-
import * as
|
|
3
|
+
import * as SqlClient from "effect/unstable/sql/SqlClient";
|
|
4
4
|
declare const ScheduleRepositoryError_base: Schema.Class<ScheduleRepositoryError, Schema.TaggedStruct<"ScheduleRepositoryError", {
|
|
5
5
|
readonly message: Schema.String;
|
|
6
6
|
}>, import("effect/Cause").YieldableError>;
|
|
@@ -70,7 +70,26 @@ export interface Interface {
|
|
|
70
70
|
declare const Service_base: Context.ServiceClass<Service, "@relayfx/store-sql/ScheduleRepository", Interface>;
|
|
71
71
|
export declare class Service extends Service_base {
|
|
72
72
|
}
|
|
73
|
-
export declare const
|
|
73
|
+
export declare const ScheduleRow: Schema.Struct<{
|
|
74
|
+
readonly id: Schema.String;
|
|
75
|
+
readonly kind: Schema.String;
|
|
76
|
+
readonly target_kind: Schema.String;
|
|
77
|
+
readonly address_id: Schema.NullishOr<Schema.String>;
|
|
78
|
+
readonly wait_id: Schema.NullishOr<Schema.String>;
|
|
79
|
+
readonly cron_expr: Schema.NullishOr<Schema.String>;
|
|
80
|
+
readonly input_json: Schema.NullishOr<Schema.Unknown>;
|
|
81
|
+
readonly state: Schema.String;
|
|
82
|
+
readonly next_run_at: Schema.Union<readonly [Schema.Date, Schema.String, Schema.Number]>;
|
|
83
|
+
readonly attempt: Schema.Union<readonly [Schema.Number, Schema.String, Schema.BigInt]>;
|
|
84
|
+
readonly claim_owner: Schema.NullishOr<Schema.String>;
|
|
85
|
+
readonly claim_expires_at: Schema.NullishOr<Schema.Union<readonly [Schema.Date, Schema.String, Schema.Number]>>;
|
|
86
|
+
readonly last_error: Schema.NullishOr<Schema.String>;
|
|
87
|
+
readonly idempotency_key: Schema.NullishOr<Schema.String>;
|
|
88
|
+
readonly metadata_json: Schema.Unknown;
|
|
89
|
+
readonly created_at: Schema.Union<readonly [Schema.Date, Schema.String, Schema.Number]>;
|
|
90
|
+
readonly updated_at: Schema.Union<readonly [Schema.Date, Schema.String, Schema.Number]>;
|
|
91
|
+
}>;
|
|
92
|
+
export declare const layer: Layer.Layer<Service, never, SqlClient.SqlClient>;
|
|
74
93
|
export declare const memoryLayer: Layer.Layer<Service, never, never>;
|
|
75
94
|
export declare const testLayer: (implementation: Interface) => Layer.Layer<Service, never, never>;
|
|
76
95
|
export declare const create: (input: CreateScheduleInput) => Effect.Effect<Schedule.ScheduleRecord, ScheduleRepositoryError, Service>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Ids } from "../../schema/index";
|
|
2
2
|
import { Context, Effect, Layer, Schema } from "effect";
|
|
3
|
-
import * as
|
|
3
|
+
import * as SqlClient from "effect/unstable/sql/SqlClient";
|
|
4
4
|
declare const ContextEpochRepositoryError_base: Schema.Class<ContextEpochRepositoryError, Schema.TaggedStruct<"ContextEpochRepositoryError", {
|
|
5
5
|
readonly message: Schema.String;
|
|
6
6
|
}>, import("effect/Cause").YieldableError>;
|
|
@@ -25,7 +25,13 @@ export interface Interface {
|
|
|
25
25
|
declare const Service_base: Context.ServiceClass<Service, "@relayfx/store-sql/ContextEpochRepository", Interface>;
|
|
26
26
|
export declare class Service extends Service_base {
|
|
27
27
|
}
|
|
28
|
-
export declare const
|
|
28
|
+
export declare const ContextEpochRow: Schema.Struct<{
|
|
29
|
+
readonly execution_id: Schema.String;
|
|
30
|
+
readonly baseline: Schema.String;
|
|
31
|
+
readonly dynamic_source_ids_json: Schema.Unknown;
|
|
32
|
+
readonly opened_at: Schema.Union<readonly [Schema.Date, Schema.String, Schema.Number]>;
|
|
33
|
+
}>;
|
|
34
|
+
export declare const layer: Layer.Layer<Service, never, SqlClient.SqlClient>;
|
|
29
35
|
export declare const memoryLayer: Layer.Layer<Service, never, never>;
|
|
30
36
|
export declare const testLayer: (implementation: Interface) => Layer.Layer<Service, never, never>;
|
|
31
37
|
export declare const save: (input: SaveInput) => Effect.Effect<ContextEpochRecord, ContextEpochRepositoryError, Service>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Ids, Skill } from "../../schema/index";
|
|
2
2
|
import { Context, Effect, Layer, Schema } from "effect";
|
|
3
|
-
import * as
|
|
3
|
+
import * as SqlClient from "effect/unstable/sql/SqlClient";
|
|
4
4
|
declare const SkillDefinitionRepositoryError_base: Schema.Class<SkillDefinitionRepositoryError, Schema.TaggedStruct<"SkillDefinitionRepositoryError", {
|
|
5
5
|
readonly message: Schema.String;
|
|
6
6
|
}>, import("effect/Cause").YieldableError>;
|
|
@@ -57,7 +57,27 @@ export interface Interface {
|
|
|
57
57
|
declare const Service_base: Context.ServiceClass<Service, "@relayfx/store-sql/SkillDefinitionRepository", Interface>;
|
|
58
58
|
export declare class Service extends Service_base {
|
|
59
59
|
}
|
|
60
|
-
export declare const
|
|
60
|
+
export declare const SkillDefinitionRow: Schema.Struct<{
|
|
61
|
+
readonly id: Schema.String;
|
|
62
|
+
readonly current_revision: Schema.Number;
|
|
63
|
+
readonly definition_json: Schema.Unknown;
|
|
64
|
+
readonly created_at: Schema.Union<readonly [Schema.Date, Schema.String, Schema.Number]>;
|
|
65
|
+
readonly updated_at: Schema.Union<readonly [Schema.Date, Schema.String, Schema.Number]>;
|
|
66
|
+
}>;
|
|
67
|
+
export declare const SkillDefinitionRevisionRow: Schema.Struct<{
|
|
68
|
+
readonly skill_definition_id: Schema.String;
|
|
69
|
+
readonly revision: Schema.Number;
|
|
70
|
+
readonly definition_json: Schema.Unknown;
|
|
71
|
+
readonly created_at: Schema.Union<readonly [Schema.Date, Schema.String, Schema.Number]>;
|
|
72
|
+
}>;
|
|
73
|
+
export declare const ExecutionSkillPinRow: Schema.Struct<{
|
|
74
|
+
readonly execution_id: Schema.String;
|
|
75
|
+
readonly skill_definition_id: Schema.String;
|
|
76
|
+
readonly skill_definition_revision: Schema.Number;
|
|
77
|
+
readonly skill_definition_snapshot_json: Schema.Unknown;
|
|
78
|
+
readonly created_at: Schema.Union<readonly [Schema.Date, Schema.String, Schema.Number]>;
|
|
79
|
+
}>;
|
|
80
|
+
export declare const layer: Layer.Layer<Service, never, SqlClient.SqlClient>;
|
|
61
81
|
export declare const memoryLayer: Layer.Layer<Service, never, never>;
|
|
62
82
|
export declare const testLayer: (implementation: Interface) => Layer.Layer<Service, never, never>;
|
|
63
83
|
export declare const put: (input: PutSkillDefinitionInput) => Effect.Effect<SkillDefinitionRecord, SkillDefinitionRepositoryError, Service>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Ids, Tool } from "../../schema/index";
|
|
2
2
|
import { Context, Effect, Layer, Schema } from "effect";
|
|
3
|
-
import * as
|
|
3
|
+
import * as SqlClient from "effect/unstable/sql/SqlClient";
|
|
4
4
|
declare const ToolCallRepositoryError_base: Schema.Class<ToolCallRepositoryError, Schema.TaggedStruct<"ToolCallRepositoryError", {
|
|
5
5
|
readonly message: Schema.String;
|
|
6
6
|
}>, import("effect/Cause").YieldableError>;
|
|
@@ -55,7 +55,22 @@ export interface Interface {
|
|
|
55
55
|
declare const Service_base: Context.ServiceClass<Service, "@relayfx/store-sql/ToolCallRepository", Interface>;
|
|
56
56
|
export declare class Service extends Service_base {
|
|
57
57
|
}
|
|
58
|
-
export declare const
|
|
58
|
+
export declare const ToolCallRow: Schema.Struct<{
|
|
59
|
+
readonly id: Schema.String;
|
|
60
|
+
readonly execution_id: Schema.String;
|
|
61
|
+
readonly name: Schema.String;
|
|
62
|
+
readonly input_json: Schema.Unknown;
|
|
63
|
+
readonly metadata_json: Schema.Unknown;
|
|
64
|
+
readonly created_at: Schema.Union<readonly [Schema.Date, Schema.String, Schema.Number]>;
|
|
65
|
+
}>;
|
|
66
|
+
export declare const ToolResultRow: Schema.Struct<{
|
|
67
|
+
readonly tool_call_id: Schema.String;
|
|
68
|
+
readonly output_json: Schema.Unknown;
|
|
69
|
+
readonly error: Schema.NullishOr<Schema.String>;
|
|
70
|
+
readonly metadata_json: Schema.Unknown;
|
|
71
|
+
readonly created_at: Schema.Union<readonly [Schema.Date, Schema.String, Schema.Number]>;
|
|
72
|
+
}>;
|
|
73
|
+
export declare const layer: Layer.Layer<Service, never, SqlClient.SqlClient>;
|
|
59
74
|
export declare const memoryLayer: Layer.Layer<Service, never, never>;
|
|
60
75
|
export declare const testLayer: (implementation: Interface) => Layer.Layer<Service, never, never>;
|
|
61
76
|
export declare const recordCall: (input: RecordCallInput) => Effect.Effect<ToolCallRecord, ToolCallRepositoryError | DuplicateToolCall, Service>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Ids, Shared, Workspace } from "../../schema/index";
|
|
2
2
|
import { Context, Effect, Layer, Schema } from "effect";
|
|
3
|
-
import * as
|
|
3
|
+
import * as SqlClient from "effect/unstable/sql/SqlClient";
|
|
4
4
|
declare const WorkspaceLeaseRepositoryError_base: Schema.Class<WorkspaceLeaseRepositoryError, Schema.TaggedStruct<"WorkspaceLeaseRepositoryError", {
|
|
5
5
|
readonly message: Schema.String;
|
|
6
6
|
}>, import("effect/Cause").YieldableError>;
|
|
@@ -73,7 +73,30 @@ export interface Interface {
|
|
|
73
73
|
declare const Service_base: Context.ServiceClass<Service, "@relayfx/store-sql/WorkspaceLeaseRepository", Interface>;
|
|
74
74
|
export declare class Service extends Service_base {
|
|
75
75
|
}
|
|
76
|
-
export declare const
|
|
76
|
+
export declare const WorkspaceLeaseRow: Schema.Struct<{
|
|
77
|
+
readonly id: Schema.String;
|
|
78
|
+
readonly execution_id: Schema.String;
|
|
79
|
+
readonly provider_key: Schema.String;
|
|
80
|
+
readonly sandbox_ref: Schema.NullishOr<Schema.String>;
|
|
81
|
+
readonly latest_snapshot_ref: Schema.NullishOr<Schema.String>;
|
|
82
|
+
readonly status: Schema.String;
|
|
83
|
+
readonly resume_strategy: Schema.String;
|
|
84
|
+
readonly region: Schema.NullishOr<Schema.String>;
|
|
85
|
+
readonly request_json: Schema.NullishOr<Schema.Unknown>;
|
|
86
|
+
readonly metadata_json: Schema.Unknown;
|
|
87
|
+
readonly created_at: Schema.Union<readonly [Schema.Date, Schema.String, Schema.Number]>;
|
|
88
|
+
readonly updated_at: Schema.Union<readonly [Schema.Date, Schema.String, Schema.Number]>;
|
|
89
|
+
}>;
|
|
90
|
+
export declare const WorkspaceSnapshotRow: Schema.Struct<{
|
|
91
|
+
readonly id: Schema.String;
|
|
92
|
+
readonly lease_id: Schema.String;
|
|
93
|
+
readonly execution_id: Schema.String;
|
|
94
|
+
readonly reason: Schema.String;
|
|
95
|
+
readonly snapshot_ref: Schema.String;
|
|
96
|
+
readonly metadata_json: Schema.Unknown;
|
|
97
|
+
readonly created_at: Schema.Union<readonly [Schema.Date, Schema.String, Schema.Number]>;
|
|
98
|
+
}>;
|
|
99
|
+
export declare const layer: Layer.Layer<Service, never, SqlClient.SqlClient>;
|
|
77
100
|
export declare const memoryLayer: Layer.Layer<Service, never, never>;
|
|
78
101
|
export declare const testLayer: (implementation: Interface) => Layer.Layer<Service, never, never>;
|
|
79
102
|
export declare const plan: (input: PlanInput) => Effect.Effect<Workspace.WorkspaceLeaseRecord, WorkspaceLeaseRepositoryError | DuplicateWorkspaceLease, Service>;
|