@relayfx/sdk 0.3.7 → 0.4.0
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/ai.js +1 -1
- package/dist/http-server.js +1 -1
- package/dist/{index-pw46cfne.js → index-3w6txjtg.js} +59 -426
- package/dist/{index-h8rx4xya.js → index-cs3be24t.js} +1 -1
- package/dist/{index-8awt651b.js → index-p43mg4kt.js} +5774 -5275
- package/dist/{index-t5bbk8cp.js → index-x32kbvxv.js} +935 -954
- package/dist/index.js +487 -22
- package/dist/migrations/20260719120000_rename_entity_to_resident/migration.sql +9 -0
- package/dist/migrations/mysql/0012_rename_entity_to_resident.sql +5 -0
- package/dist/migrations/pg/20260719120000_rename_entity_to_resident/migration.sql +9 -0
- package/dist/migrations/sqlite/0012_rename_entity_to_resident.sql +7 -0
- package/dist/mysql.js +18 -5
- package/dist/postgres.js +569 -550
- package/dist/sqlite.js +16 -5
- package/dist/types/relay/client-baton-agent.d.ts +30 -0
- package/dist/types/relay/client-child-runs.d.ts +35 -0
- package/dist/types/relay/client-error-mapping.d.ts +5 -0
- package/dist/types/relay/client-event-sequence.d.ts +3 -0
- package/dist/types/relay/client-execution-payloads.d.ts +12 -0
- package/dist/types/relay/client-public-agents.d.ts +15 -0
- package/dist/types/relay/client-public-child-runs.d.ts +9 -0
- package/dist/types/relay/client-public-envelope-ready.d.ts +6 -0
- package/dist/types/relay/client-public-executions.d.ts +247 -0
- package/dist/types/relay/client-public-messaging.d.ts +18 -0
- package/dist/types/relay/client-public-residents.d.ts +14 -0
- package/dist/types/relay/client-public-schedules.d.ts +6 -0
- package/dist/types/relay/client-public-tools.d.ts +12 -0
- package/dist/types/relay/client-public-workflows.d.ts +10 -0
- package/dist/types/relay/client-public.d.ts +133 -313
- package/dist/types/relay/client-runtime-wake.d.ts +10 -0
- package/dist/types/relay/client-tool-outcome.d.ts +16 -0
- package/dist/types/relay/client-view-mappers.d.ts +16 -0
- package/dist/types/relay/client-wait-signal.d.ts +5 -0
- package/dist/types/relay/client.d.ts +118 -1
- package/dist/types/relay/command.d.ts +6 -6
- package/dist/types/relay/http-server.d.ts +55 -37
- package/dist/types/relay/index.d.ts +3 -4
- package/dist/types/relay/internal-client.d.ts +5 -5
- package/dist/types/relay/mysql-migrations.d.ts +1 -1
- package/dist/types/relay/operation.d.ts +41 -41
- package/dist/types/relay/sqlite-migrations.d.ts +6 -1
- package/dist/types/runtime/agent/agent-loop-events.d.ts +24 -0
- package/dist/types/runtime/execution/event-log-memory.d.ts +7 -0
- package/dist/types/runtime/execution/event-log-repository.d.ts +8 -0
- package/dist/types/runtime/index.d.ts +2 -2
- package/dist/types/runtime/resident/resident-instance-service.d.ts +76 -0
- package/dist/types/runtime/resident/resident-registry-service.d.ts +35 -0
- package/dist/types/runtime/runner/runner-runtime-service.d.ts +14 -14
- package/dist/types/runtime/workflow/execution-workflow-state.d.ts +43 -0
- package/dist/types/schema/execution-schema.d.ts +2 -2
- package/dist/types/schema/ids-schema.d.ts +6 -6
- package/dist/types/schema/index.d.ts +1 -1
- package/dist/types/schema/{entity-schema.d.ts → resident-schema.d.ts} +6 -6
- package/dist/types/store-sql/envelope/envelope-ready-records.d.ts +51 -0
- package/dist/types/store-sql/envelope/envelope-records.d.ts +43 -0
- package/dist/types/store-sql/envelope/envelope-repository.d.ts +1 -2
- package/dist/types/store-sql/envelope/wait-records.d.ts +64 -0
- package/dist/types/store-sql/execution/execution-event-repository-memory.d.ts +8 -0
- package/dist/types/store-sql/execution/execution-event-repository-sql.d.ts +13 -0
- package/dist/types/store-sql/execution/execution-event-repository.d.ts +3 -4
- package/dist/types/store-sql/index.d.ts +1 -1
- package/dist/types/store-sql/portable.d.ts +1 -1
- package/dist/types/store-sql/resident/resident-repository.d.ts +36 -0
- package/dist/types/store-sql/schema/address-book-schema.d.ts +131 -0
- package/dist/types/store-sql/schema/agent-schema.d.ts +954 -0
- package/dist/types/store-sql/schema/communication-schema.d.ts +743 -0
- package/dist/types/store-sql/schema/envelope-schema.d.ts +701 -0
- package/dist/types/store-sql/schema/execution-schema.d.ts +1119 -0
- package/dist/types/store-sql/schema/idempotency-schema.d.ts +161 -0
- package/dist/types/store-sql/schema/presence-schema.d.ts +116 -0
- package/dist/types/store-sql/schema/relay-schema.d.ts +13 -6684
- package/dist/types/store-sql/schema/resident-schema.d.ts +294 -0
- package/dist/types/store-sql/schema/schedule-schema.d.ts +282 -0
- package/dist/types/store-sql/schema/schema-columns.d.ts +1 -0
- package/dist/types/store-sql/schema/session-schema.d.ts +228 -0
- package/dist/types/store-sql/schema/tool-schema.d.ts +627 -0
- package/dist/types/store-sql/schema/workflow-schema.d.ts +996 -0
- package/dist/types/store-sql/schema/workspace-schema.d.ts +338 -0
- package/dist/types/store-sql/session/session-entry-records.d.ts +52 -0
- package/dist/types/store-sql/session/session-records.d.ts +51 -0
- package/dist/types/store-sql/session/session-repository.d.ts +2 -3
- package/dist/types/store-sql/tool/tool-attempt-records.d.ts +52 -0
- package/dist/types/store-sql/tool/tool-call-records.d.ts +121 -0
- package/dist/types/store-sql/tool/tool-call-repository.d.ts +1 -2
- package/dist/types/store-sql/tool/tool-work-operations.d.ts +11 -0
- package/package.json +3 -3
- 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/store-sql/entity/entity-repository.d.ts +0 -36
package/dist/ai.js
CHANGED
package/dist/http-server.js
CHANGED
|
@@ -64,13 +64,13 @@ __export2(exports_ids_schema, {
|
|
|
64
64
|
SessionId: () => SessionId,
|
|
65
65
|
SessionEntryId: () => SessionEntryId,
|
|
66
66
|
ScheduleId: () => ScheduleId,
|
|
67
|
+
ResidentKindName: () => ResidentKindName,
|
|
68
|
+
ResidentKey: () => ResidentKey,
|
|
67
69
|
MemorySubjectId: () => MemorySubjectId,
|
|
68
70
|
ExecutionId: () => ExecutionId,
|
|
69
71
|
EventId: () => EventId,
|
|
70
72
|
EnvelopeReadyId: () => EnvelopeReadyId,
|
|
71
73
|
EnvelopeId: () => EnvelopeId,
|
|
72
|
-
EntityKindName: () => EntityKindName,
|
|
73
|
-
EntityKey: () => EntityKey,
|
|
74
74
|
ChildFanOutId: () => ChildFanOutId,
|
|
75
75
|
ChildExecutionId: () => ChildExecutionId,
|
|
76
76
|
AgentId: () => AgentId,
|
|
@@ -90,8 +90,8 @@ var AddressBookEntryId = id("Relay.AddressBookEntryId");
|
|
|
90
90
|
var AgentId = id("Relay.AgentId");
|
|
91
91
|
var WorkflowDefinitionId = id("Relay.WorkflowDefinitionId");
|
|
92
92
|
var WorkflowOperationId = id("Relay.WorkflowOperationId");
|
|
93
|
-
var
|
|
94
|
-
var
|
|
93
|
+
var ResidentKindName = id("Relay.ResidentKindName");
|
|
94
|
+
var ResidentKey = id("Relay.ResidentKey");
|
|
95
95
|
var SkillDefinitionId = id("Relay.SkillDefinitionId");
|
|
96
96
|
var EnvelopeId = id("Relay.EnvelopeId");
|
|
97
97
|
var EnvelopeReadyId = id("Relay.EnvelopeReadyId");
|
|
@@ -684,8 +684,8 @@ var ExecutionEventType = Schema7.Literals([
|
|
|
684
684
|
"state.deleted",
|
|
685
685
|
"inbox.enqueued",
|
|
686
686
|
"inbox.drained",
|
|
687
|
-
"
|
|
688
|
-
"
|
|
687
|
+
"resident.created",
|
|
688
|
+
"resident.destroyed",
|
|
689
689
|
"envelope.accepted",
|
|
690
690
|
"envelope.routed",
|
|
691
691
|
"envelope.ready",
|
|
@@ -817,8 +817,8 @@ var EnvelopeReady = Schema9.Struct({
|
|
|
817
817
|
attempt: Schema9.Int,
|
|
818
818
|
metadata: Schema9.optionalKey(Metadata)
|
|
819
819
|
}).annotate({ identifier: "Relay.EnvelopeReady" });
|
|
820
|
-
var
|
|
821
|
-
__export2(
|
|
820
|
+
var exports_resident_schema = {};
|
|
821
|
+
__export2(exports_resident_schema, {
|
|
822
822
|
KindDefinition: () => KindDefinition,
|
|
823
823
|
InstanceStatus: () => InstanceStatus,
|
|
824
824
|
Instance: () => Instance
|
|
@@ -851,26 +851,26 @@ var InboxPolicy = Schema10.Struct({
|
|
|
851
851
|
max_batch: Schema10.optionalKey(Schema10.Int.check(Schema10.isGreaterThan(0)))
|
|
852
852
|
}).annotate({ identifier: "Relay.Inbox.InboxPolicy" });
|
|
853
853
|
var KindDefinition = Schema11.Struct({
|
|
854
|
-
kind:
|
|
854
|
+
kind: ResidentKindName,
|
|
855
855
|
agent_id: AgentId,
|
|
856
856
|
inbox: Schema11.optionalKey(InboxPolicy),
|
|
857
857
|
state_enabled: Schema11.optionalKey(Schema11.Boolean),
|
|
858
858
|
continue_as_new_after_turns: Schema11.optionalKey(Schema11.Int.check(Schema11.isGreaterThan(0))),
|
|
859
859
|
metadata: Schema11.optionalKey(Metadata)
|
|
860
|
-
}).annotate({ identifier: "Relay.
|
|
860
|
+
}).annotate({ identifier: "Relay.Resident.KindDefinition" });
|
|
861
861
|
var InstanceStatus = Schema11.Literals(["active", "destroyed"]).annotate({
|
|
862
|
-
identifier: "Relay.
|
|
862
|
+
identifier: "Relay.Resident.InstanceStatus"
|
|
863
863
|
});
|
|
864
864
|
var Instance = Schema11.Struct({
|
|
865
|
-
kind:
|
|
866
|
-
key:
|
|
865
|
+
kind: ResidentKindName,
|
|
866
|
+
key: ResidentKey,
|
|
867
867
|
address_id: AddressId,
|
|
868
868
|
execution_id: ExecutionId,
|
|
869
869
|
generation: Schema11.Int.check(Schema11.isGreaterThanOrEqualTo(0)),
|
|
870
870
|
status: InstanceStatus,
|
|
871
871
|
created_at: TimestampMillis,
|
|
872
872
|
destroyed_at: Schema11.optionalKey(TimestampMillis)
|
|
873
|
-
}).annotate({ identifier: "Relay.
|
|
873
|
+
}).annotate({ identifier: "Relay.Resident.Instance" });
|
|
874
874
|
var exports_pagination_schema = {};
|
|
875
875
|
__export2(exports_pagination_schema, {
|
|
876
876
|
SessionCursorCodec: () => SessionCursorCodec,
|
|
@@ -1746,6 +1746,7 @@ __export(exports_operation, {
|
|
|
1746
1746
|
SteerAccepted: () => SteerAccepted,
|
|
1747
1747
|
StartExecutionResult: () => StartExecutionResult,
|
|
1748
1748
|
StartExecutionInput: () => StartExecutionInput,
|
|
1749
|
+
SpawnResidentInput: () => SpawnResidentInput,
|
|
1749
1750
|
SpawnChildRunInput: () => SpawnChildRunInput2,
|
|
1750
1751
|
SessionSummary: () => SessionSummary,
|
|
1751
1752
|
SessionStreamItem: () => SessionStreamItem,
|
|
@@ -1753,11 +1754,12 @@ __export(exports_operation, {
|
|
|
1753
1754
|
RouteExecutionResult: () => RouteExecutionResult,
|
|
1754
1755
|
ResolveToolApprovalInput: () => ResolveToolApprovalInput,
|
|
1755
1756
|
ResolvePermissionInput: () => ResolvePermissionInput,
|
|
1757
|
+
ResidentInstance: () => ResidentInstance,
|
|
1756
1758
|
ReplayExecutionResult: () => ReplayExecutionResult,
|
|
1757
1759
|
ReplayExecutionInput: () => ReplayExecutionInput,
|
|
1758
1760
|
ReleaseToolWorkInput: () => ReleaseToolWorkInput,
|
|
1759
1761
|
ReleaseEnvelopeReadyInput: () => ReleaseEnvelopeReadyInput,
|
|
1760
|
-
|
|
1762
|
+
PutResidentStateInput: () => PutResidentStateInput,
|
|
1761
1763
|
PublishTopicInput: () => PublishTopicInput,
|
|
1762
1764
|
PermissionAnswer: () => PermissionAnswer,
|
|
1763
1765
|
PendingToolCallList: () => PendingToolCallList,
|
|
@@ -1774,20 +1776,19 @@ __export(exports_operation, {
|
|
|
1774
1776
|
ListSchedulesResult: () => ListSchedulesResult,
|
|
1775
1777
|
ListSchedulesInput: () => ListSchedulesInput,
|
|
1776
1778
|
ListRunnersResult: () => ListRunnersResult,
|
|
1779
|
+
ListResidentsInput: () => ListResidentsInput,
|
|
1780
|
+
ListResidentStateInput: () => ListResidentStateInput,
|
|
1777
1781
|
ListPendingToolCallsInput: () => ListPendingToolCallsInput,
|
|
1778
1782
|
ListPendingApprovalsInput: () => ListPendingApprovalsInput,
|
|
1779
1783
|
ListInboxMessagesInput: () => ListInboxMessagesInput,
|
|
1780
1784
|
ListExecutionsResult: () => ListExecutionsResult,
|
|
1781
1785
|
ListExecutionsInput: () => ListExecutionsInput,
|
|
1782
|
-
ListEntityStateInput: () => ListEntityStateInput,
|
|
1783
|
-
ListEntitiesInput: () => ListEntitiesInput,
|
|
1784
1786
|
InspectChildFanOutResult: () => InspectChildFanOutResult,
|
|
1785
1787
|
InspectChildFanOutInput: () => InspectChildFanOutInput,
|
|
1786
1788
|
GetSessionResult: () => GetSessionResult,
|
|
1787
1789
|
GetSessionInput: () => GetSessionInput,
|
|
1788
|
-
|
|
1789
|
-
|
|
1790
|
-
GetEntityInput: () => GetEntityInput,
|
|
1790
|
+
GetResidentStateInput: () => GetResidentStateInput,
|
|
1791
|
+
GetResidentInput: () => GetResidentInput,
|
|
1791
1792
|
FulfillToolCallInput: () => FulfillToolCallInput,
|
|
1792
1793
|
FollowStopReason: () => FollowStopReason,
|
|
1793
1794
|
FollowExecutionItem: () => FollowExecutionItem,
|
|
@@ -1800,9 +1801,8 @@ __export(exports_operation, {
|
|
|
1800
1801
|
EnvelopeReadyReleased: () => EnvelopeReadyReleased,
|
|
1801
1802
|
EnvelopeReadyLease: () => EnvelopeReadyLease,
|
|
1802
1803
|
EnvelopeReadyAcked: () => EnvelopeReadyAcked,
|
|
1803
|
-
|
|
1804
|
-
|
|
1805
|
-
DeleteEntityStateInput: () => DeleteEntityStateInput,
|
|
1804
|
+
DestroyResidentInput: () => DestroyResidentInput,
|
|
1805
|
+
DeleteResidentStateInput: () => DeleteResidentStateInput,
|
|
1806
1806
|
CreateScheduleResult: () => CreateScheduleResult,
|
|
1807
1807
|
CreateScheduleInput: () => CreateScheduleInput,
|
|
1808
1808
|
CreateChildFanOutInput: () => CreateChildFanOutInput,
|
|
@@ -1842,58 +1842,58 @@ var StartExecutionResult = Schema22.Struct({
|
|
|
1842
1842
|
status: exports_execution_schema.ExecutionStatus,
|
|
1843
1843
|
metadata: Schema22.optionalKey(exports_shared_schema.Metadata)
|
|
1844
1844
|
}).annotate({ identifier: "Relay.Operation.StartExecutionResult" });
|
|
1845
|
-
var
|
|
1846
|
-
kind: exports_ids_schema.
|
|
1847
|
-
key: exports_ids_schema.
|
|
1845
|
+
var SpawnResidentInput = Schema22.Struct({
|
|
1846
|
+
kind: exports_ids_schema.ResidentKindName,
|
|
1847
|
+
key: exports_ids_schema.ResidentKey,
|
|
1848
1848
|
input: Schema22.optionalKey(Schema22.Array(exports_content_schema.Part)),
|
|
1849
1849
|
metadata: Schema22.optionalKey(exports_shared_schema.Metadata),
|
|
1850
1850
|
created_at: exports_shared_schema.TimestampMillis
|
|
1851
|
-
}).annotate({ identifier: "Relay.Operation.
|
|
1852
|
-
var
|
|
1853
|
-
identifier: "Relay.Operation.
|
|
1851
|
+
}).annotate({ identifier: "Relay.Operation.SpawnResidentInput" });
|
|
1852
|
+
var GetResidentInput = Schema22.Struct({ kind: exports_ids_schema.ResidentKindName, key: exports_ids_schema.ResidentKey }).annotate({
|
|
1853
|
+
identifier: "Relay.Operation.GetResidentInput"
|
|
1854
1854
|
});
|
|
1855
|
-
var
|
|
1856
|
-
kind: exports_ids_schema.
|
|
1857
|
-
key: exports_ids_schema.
|
|
1855
|
+
var DestroyResidentInput = Schema22.Struct({
|
|
1856
|
+
kind: exports_ids_schema.ResidentKindName,
|
|
1857
|
+
key: exports_ids_schema.ResidentKey,
|
|
1858
1858
|
reason: Schema22.optionalKey(Schema22.String),
|
|
1859
1859
|
destroyed_at: exports_shared_schema.TimestampMillis
|
|
1860
|
-
}).annotate({ identifier: "Relay.Operation.
|
|
1861
|
-
var
|
|
1862
|
-
kind: Schema22.optionalKey(exports_ids_schema.
|
|
1863
|
-
after_kind: Schema22.optionalKey(exports_ids_schema.
|
|
1860
|
+
}).annotate({ identifier: "Relay.Operation.DestroyResidentInput" });
|
|
1861
|
+
var ListResidentsInput = Schema22.Struct({
|
|
1862
|
+
kind: Schema22.optionalKey(exports_ids_schema.ResidentKindName),
|
|
1863
|
+
after_kind: Schema22.optionalKey(exports_ids_schema.ResidentKindName),
|
|
1864
1864
|
after_key: Schema22.optionalKey(Schema22.String),
|
|
1865
1865
|
limit: Schema22.optionalKey(Schema22.Int.check(Schema22.isGreaterThan(0)))
|
|
1866
|
-
}).annotate({ identifier: "Relay.Operation.
|
|
1867
|
-
var
|
|
1866
|
+
}).annotate({ identifier: "Relay.Operation.ListResidentsInput" });
|
|
1867
|
+
var ResidentInstance = exports_resident_schema.Instance;
|
|
1868
1868
|
var StreamExecutionInput = Schema22.Struct({
|
|
1869
1869
|
execution_id: exports_execution_schema.Execution.fields.id,
|
|
1870
1870
|
after_cursor: Schema22.optionalKey(exports_shared_schema.NonEmptyString),
|
|
1871
1871
|
limit: Schema22.optionalKey(Schema22.Int.check(Schema22.isGreaterThan(0)))
|
|
1872
1872
|
}).annotate({ identifier: "Relay.Operation.StreamExecutionInput" });
|
|
1873
|
-
var
|
|
1874
|
-
identifier: "Relay.Operation.
|
|
1873
|
+
var GetResidentStateInput = Schema22.Struct({ execution_id: exports_ids_schema.ExecutionId, key: exports_state_schema.StateKey }).annotate({
|
|
1874
|
+
identifier: "Relay.Operation.GetResidentStateInput"
|
|
1875
1875
|
});
|
|
1876
|
-
var
|
|
1876
|
+
var PutResidentStateInput = Schema22.Struct({
|
|
1877
1877
|
execution_id: exports_ids_schema.ExecutionId,
|
|
1878
1878
|
key: exports_state_schema.StateKey,
|
|
1879
1879
|
value: exports_shared_schema.JsonValue,
|
|
1880
1880
|
expected_version: Schema22.optionalKey(Schema22.Int.check(Schema22.isGreaterThanOrEqualTo(0))),
|
|
1881
1881
|
idempotency_key: Schema22.optionalKey(exports_state_schema.StateIdempotencyKey.check(Schema22.makeFilter((value) => !value.startsWith("relay:internal:")))),
|
|
1882
1882
|
updated_at: exports_shared_schema.TimestampMillis
|
|
1883
|
-
}).annotate({ identifier: "Relay.Operation.
|
|
1884
|
-
var
|
|
1883
|
+
}).annotate({ identifier: "Relay.Operation.PutResidentStateInput" });
|
|
1884
|
+
var DeleteResidentStateInput = Schema22.Struct({
|
|
1885
1885
|
execution_id: exports_ids_schema.ExecutionId,
|
|
1886
1886
|
key: exports_state_schema.StateKey,
|
|
1887
1887
|
expected_version: Schema22.optionalKey(Schema22.Int.check(Schema22.isGreaterThanOrEqualTo(0))),
|
|
1888
1888
|
idempotency_key: Schema22.optionalKey(exports_state_schema.StateIdempotencyKey.check(Schema22.makeFilter((value) => !value.startsWith("relay:internal:")))),
|
|
1889
1889
|
removed_at: exports_shared_schema.TimestampMillis
|
|
1890
|
-
}).annotate({ identifier: "Relay.Operation.
|
|
1891
|
-
var
|
|
1890
|
+
}).annotate({ identifier: "Relay.Operation.DeleteResidentStateInput" });
|
|
1891
|
+
var ListResidentStateInput = Schema22.Struct({
|
|
1892
1892
|
execution_id: exports_ids_schema.ExecutionId,
|
|
1893
1893
|
prefix: Schema22.optionalKey(Schema22.String),
|
|
1894
1894
|
after_key: Schema22.optionalKey(Schema22.String),
|
|
1895
1895
|
limit: Schema22.optionalKey(Schema22.Int.check(Schema22.isGreaterThan(0)))
|
|
1896
|
-
}).annotate({ identifier: "Relay.Operation.
|
|
1896
|
+
}).annotate({ identifier: "Relay.Operation.ListResidentStateInput" });
|
|
1897
1897
|
var WaitTerminalState = Schema22.Literals(["resolved", "timed_out", "cancelled"]).annotate({
|
|
1898
1898
|
identifier: "Relay.Operation.WaitTerminalState"
|
|
1899
1899
|
});
|
|
@@ -2381,140 +2381,27 @@ var RouteExecutionResult = Schema22.Struct({
|
|
|
2381
2381
|
runner_address: Schema22.NullOr(Schema22.String),
|
|
2382
2382
|
owned: Schema22.Boolean
|
|
2383
2383
|
}).annotate({ identifier: "Relay.Operation.RouteExecutionResult" });
|
|
2384
|
-
|
|
2385
|
-
// src/command.ts
|
|
2386
|
-
var exports_command = {};
|
|
2387
|
-
__export(exports_command, {
|
|
2388
|
-
outputSchemaRef: () => outputSchemaRef,
|
|
2389
|
-
make: () => make,
|
|
2390
|
-
inputSchemaRef: () => inputSchemaRef,
|
|
2391
|
-
EntityNotFound: () => EntityNotFound,
|
|
2392
|
-
CommandTimedOut: () => CommandTimedOut,
|
|
2393
|
-
CommandReplyInvalid: () => CommandReplyInvalid
|
|
2394
|
-
});
|
|
2395
|
-
import { Function, Schema as Schema23 } from "effect";
|
|
2396
|
-
var make = Function.dual(2, (name, options) => ({ name, ...options }));
|
|
2397
|
-
var inputSchemaRef = (name) => `relay/command/${name}/input`;
|
|
2398
|
-
var outputSchemaRef = (name) => `relay/command/${name}/output`;
|
|
2399
|
-
|
|
2400
|
-
class CommandTimedOut extends Schema23.TaggedErrorClass()("CommandTimedOut", {
|
|
2401
|
-
command: exports_shared_schema.NonEmptyString,
|
|
2402
|
-
wait_id: exports_ids_schema.WaitId,
|
|
2403
|
-
timeout: Schema23.String
|
|
2404
|
-
}) {
|
|
2405
|
-
}
|
|
2406
|
-
|
|
2407
|
-
class CommandReplyInvalid extends Schema23.TaggedErrorClass()("CommandReplyInvalid", {
|
|
2408
|
-
command: exports_shared_schema.NonEmptyString,
|
|
2409
|
-
wait_id: exports_ids_schema.WaitId,
|
|
2410
|
-
message: Schema23.String
|
|
2411
|
-
}) {
|
|
2412
|
-
}
|
|
2413
|
-
|
|
2414
|
-
class EntityNotFound extends Schema23.TaggedErrorClass()("EntityNotFound", {
|
|
2415
|
-
kind: exports_ids_schema.EntityKindName,
|
|
2416
|
-
key: exports_ids_schema.EntityKey
|
|
2417
|
-
}) {
|
|
2418
|
-
}
|
|
2419
|
-
|
|
2420
2384
|
// src/client-public.ts
|
|
2421
|
-
|
|
2422
|
-
__export(exports_client_public, {
|
|
2423
|
-
watchPresence: () => watchPresence,
|
|
2424
|
-
watchExecutions: () => watchExecutions,
|
|
2425
|
-
wake: () => wake,
|
|
2426
|
-
unsubscribeTopic: () => unsubscribeTopic,
|
|
2427
|
-
subscribeTopic: () => subscribeTopic,
|
|
2428
|
-
submitInboundEnvelope: () => submitInboundEnvelope,
|
|
2429
|
-
streamSession: () => streamSession,
|
|
2430
|
-
streamExecution: () => streamExecution,
|
|
2431
|
-
steer: () => steer,
|
|
2432
|
-
startExecutionByAgentDefinition: () => startExecutionByAgentDefinition,
|
|
2433
|
-
startExecutionByAddress: () => startExecutionByAddress,
|
|
2434
|
-
startExecution: () => startExecution,
|
|
2435
|
-
spawnChildRun: () => spawnChildRun,
|
|
2436
|
-
send: () => send,
|
|
2437
|
-
routeExecution: () => routeExecution,
|
|
2438
|
-
resolveToolApproval: () => resolveToolApproval,
|
|
2439
|
-
resolvePermission: () => resolvePermission,
|
|
2440
|
-
replayExecution: () => replayExecution,
|
|
2441
|
-
releaseToolWork: () => releaseToolWork,
|
|
2442
|
-
releaseEnvelopeReady: () => releaseEnvelopeReady,
|
|
2443
|
-
registerEntityKind: () => registerEntityKind,
|
|
2444
|
-
registerAgentDefinition: () => registerAgentDefinition,
|
|
2445
|
-
registerAgent: () => registerAgent,
|
|
2446
|
-
registerAddressBookRoute: () => registerAddressBookRoute,
|
|
2447
|
-
publishTopic: () => publishTopic,
|
|
2448
|
-
pageExecutionEvents: () => pageExecutionEvents,
|
|
2449
|
-
listWaits: () => listWaits,
|
|
2450
|
-
listTopicSubscriptions: () => listTopicSubscriptions,
|
|
2451
|
-
listToolAttempts: () => listToolAttempts,
|
|
2452
|
-
listSkillDefinitions: () => listSkillDefinitions,
|
|
2453
|
-
listSkillDefinitionRevisions: () => listSkillDefinitionRevisions,
|
|
2454
|
-
listSessions: () => listSessions,
|
|
2455
|
-
listSchedules: () => listSchedules,
|
|
2456
|
-
listRunners: () => listRunners,
|
|
2457
|
-
listPendingToolCalls: () => listPendingToolCalls,
|
|
2458
|
-
listPendingApprovals: () => listPendingApprovals,
|
|
2459
|
-
listInboxMessages: () => listInboxMessages,
|
|
2460
|
-
listExecutions: () => listExecutions,
|
|
2461
|
-
listEntities: () => listEntities,
|
|
2462
|
-
listAgentDefinitions: () => listAgentDefinitions,
|
|
2463
|
-
listAgentDefinitionRevisions: () => listAgentDefinitionRevisions,
|
|
2464
|
-
listAddressBookRoutes: () => listAddressBookRoutes,
|
|
2465
|
-
inspectExecution: () => inspectExecution,
|
|
2466
|
-
inspectChildFanOut: () => inspectChildFanOut,
|
|
2467
|
-
getSkillDefinition: () => getSkillDefinition,
|
|
2468
|
-
getSession: () => getSession,
|
|
2469
|
-
getPresence: () => getPresence,
|
|
2470
|
-
getOrCreateEntity: () => getOrCreateEntity,
|
|
2471
|
-
getExecution: () => getExecution,
|
|
2472
|
-
getEntity: () => getEntity,
|
|
2473
|
-
getAgentDefinition: () => getAgentDefinition,
|
|
2474
|
-
getAddressBookRoute: () => getAddressBookRoute,
|
|
2475
|
-
fulfillToolCall: () => fulfillToolCall,
|
|
2476
|
-
followExecutionFrom: () => followExecutionFrom,
|
|
2477
|
-
followExecution: () => followExecution,
|
|
2478
|
-
destroyEntity: () => destroyEntity,
|
|
2479
|
-
createSchedule: () => createSchedule,
|
|
2480
|
-
createChildFanOut: () => createChildFanOut,
|
|
2481
|
-
completeToolWork: () => completeToolWork,
|
|
2482
|
-
claimToolWork: () => claimToolWork,
|
|
2483
|
-
claimEnvelopeReady: () => claimEnvelopeReady,
|
|
2484
|
-
cancelSchedule: () => cancelSchedule,
|
|
2485
|
-
cancelExecution: () => cancelExecution,
|
|
2486
|
-
cancelChildFanOut: () => cancelChildFanOut,
|
|
2487
|
-
awaitWait: () => awaitWait,
|
|
2488
|
-
askEntity: () => askEntity,
|
|
2489
|
-
ackEnvelopeReady: () => ackEnvelopeReady,
|
|
2490
|
-
WaitKindMismatch: () => WaitKindMismatch,
|
|
2491
|
-
StateVersionConflict: () => StateVersionConflict,
|
|
2492
|
-
Service: () => Service,
|
|
2493
|
-
ExecutionNotFound: () => ExecutionNotFound,
|
|
2494
|
-
EventLogCursorNotFound: () => EventLogCursorNotFound,
|
|
2495
|
-
EntityNamespaceReserved: () => EntityNamespaceReserved,
|
|
2496
|
-
ClientError: () => ClientError
|
|
2497
|
-
});
|
|
2498
|
-
import { Context, Effect, Schema as Schema24, Stream } from "effect";
|
|
2385
|
+
import { Context, Effect, Schema as Schema23, Stream } from "effect";
|
|
2499
2386
|
|
|
2500
|
-
class ClientError extends
|
|
2501
|
-
message:
|
|
2387
|
+
class ClientError extends Schema23.TaggedErrorClass()("ClientError", {
|
|
2388
|
+
message: Schema23.String
|
|
2502
2389
|
}) {
|
|
2503
2390
|
}
|
|
2504
2391
|
|
|
2505
|
-
class ExecutionNotFound extends
|
|
2392
|
+
class ExecutionNotFound extends Schema23.TaggedErrorClass()("ExecutionNotFound", {
|
|
2506
2393
|
execution_id: exports_ids_schema.ExecutionId
|
|
2507
2394
|
}) {
|
|
2508
2395
|
}
|
|
2509
2396
|
|
|
2510
|
-
class
|
|
2397
|
+
class ResidentNamespaceReserved extends Schema23.TaggedErrorClass()("ResidentNamespaceReserved", { id: Schema23.String, message: Schema23.String }) {
|
|
2511
2398
|
}
|
|
2512
2399
|
|
|
2513
|
-
class WaitKindMismatch extends
|
|
2400
|
+
class WaitKindMismatch extends Schema23.TaggedErrorClass()("WaitKindMismatch", {
|
|
2514
2401
|
wait_id: exports_ids_schema.WaitId,
|
|
2515
|
-
expected:
|
|
2516
|
-
actual:
|
|
2517
|
-
message:
|
|
2402
|
+
expected: Schema23.String,
|
|
2403
|
+
actual: Schema23.String,
|
|
2404
|
+
message: Schema23.String
|
|
2518
2405
|
}) {
|
|
2519
2406
|
}
|
|
2520
2407
|
|
|
@@ -2593,266 +2480,12 @@ var followExecutionFrom = (dependencies) => (input) => {
|
|
|
2593
2480
|
return connect(state);
|
|
2594
2481
|
})).pipe(Stream.takeUntil((item) => item._tag === "stopped"));
|
|
2595
2482
|
};
|
|
2596
|
-
var registerAgentDefinition = Effect.fn("Client.registerAgentDefinition.call")(function* (input) {
|
|
2597
|
-
const service = yield* Service;
|
|
2598
|
-
return yield* service.registerAgentDefinition(input);
|
|
2599
|
-
});
|
|
2600
|
-
var registerEntityKind = Effect.fn("Client.registerEntityKind.call")(function* (input) {
|
|
2601
|
-
const service = yield* Service;
|
|
2602
|
-
return yield* service.registerEntityKind(input);
|
|
2603
|
-
});
|
|
2604
|
-
var getOrCreateEntity = Effect.fn("Client.getOrCreateEntity.call")(function* (input) {
|
|
2605
|
-
const service = yield* Service;
|
|
2606
|
-
return yield* service.getOrCreateEntity(input);
|
|
2607
|
-
});
|
|
2608
|
-
var getEntity = Effect.fn("Client.getEntity.call")(function* (input) {
|
|
2609
|
-
const service = yield* Service;
|
|
2610
|
-
return yield* service.getEntity(input);
|
|
2611
|
-
});
|
|
2612
|
-
var destroyEntity = Effect.fn("Client.destroyEntity.call")(function* (input) {
|
|
2613
|
-
const service = yield* Service;
|
|
2614
|
-
return yield* service.destroyEntity(input);
|
|
2615
|
-
});
|
|
2616
|
-
var listEntities = Effect.fn("Client.listEntities.call")(function* (input) {
|
|
2617
|
-
const service = yield* Service;
|
|
2618
|
-
return yield* service.listEntities(input);
|
|
2619
|
-
});
|
|
2620
|
-
function registerAgent(input) {
|
|
2621
|
-
return Effect.gen(function* () {
|
|
2622
|
-
const service = yield* Service;
|
|
2623
|
-
if (isRegisterBatonAgentInput(input))
|
|
2624
|
-
return yield* service.registerAgent(input);
|
|
2625
|
-
return yield* service.registerAgent(input);
|
|
2626
|
-
}).pipe(Effect.withSpan("Client.registerAgent.call"));
|
|
2627
|
-
}
|
|
2628
|
-
var isRegisterBatonAgentInput = (input) => ("agent" in input);
|
|
2629
|
-
var getAgentDefinition = Effect.fn("Client.getAgentDefinition.call")(function* (id2) {
|
|
2630
|
-
const service = yield* Service;
|
|
2631
|
-
return yield* service.getAgentDefinition(id2);
|
|
2632
|
-
});
|
|
2633
|
-
var listAgentDefinitions = Effect.fn("Client.listAgentDefinitions.call")(function* () {
|
|
2634
|
-
const service = yield* Service;
|
|
2635
|
-
return yield* service.listAgentDefinitions();
|
|
2636
|
-
});
|
|
2637
|
-
var listAgentDefinitionRevisions = Effect.fn("Client.listAgentDefinitionRevisions.call")(function* (id2) {
|
|
2638
|
-
const service = yield* Service;
|
|
2639
|
-
return yield* service.listAgentDefinitionRevisions(id2);
|
|
2640
|
-
});
|
|
2641
|
-
var getSkillDefinition = Effect.fn("Client.getSkillDefinition.call")(function* (id2) {
|
|
2642
|
-
const service = yield* Service;
|
|
2643
|
-
return yield* service.getSkillDefinition(id2);
|
|
2644
|
-
});
|
|
2645
|
-
var listSkillDefinitions = Effect.fn("Client.listSkillDefinitions.call")(function* () {
|
|
2646
|
-
const service = yield* Service;
|
|
2647
|
-
return yield* service.listSkillDefinitions();
|
|
2648
|
-
});
|
|
2649
|
-
var listSkillDefinitionRevisions = Effect.fn("Client.listSkillDefinitionRevisions.call")(function* (id2) {
|
|
2650
|
-
const service = yield* Service;
|
|
2651
|
-
return yield* service.listSkillDefinitionRevisions(id2);
|
|
2652
|
-
});
|
|
2653
|
-
var registerAddressBookRoute = Effect.fn("Client.registerAddressBookRoute.call")(function* (input) {
|
|
2654
|
-
const service = yield* Service;
|
|
2655
|
-
return yield* service.registerAddressBookRoute(input);
|
|
2656
|
-
});
|
|
2657
|
-
var getAddressBookRoute = Effect.fn("Client.getAddressBookRoute.call")(function* (id2) {
|
|
2658
|
-
const service = yield* Service;
|
|
2659
|
-
return yield* service.getAddressBookRoute(id2);
|
|
2660
|
-
});
|
|
2661
|
-
var listAddressBookRoutes = Effect.fn("Client.listAddressBookRoutes.call")(function* () {
|
|
2662
|
-
const service = yield* Service;
|
|
2663
|
-
return yield* service.listAddressBookRoutes();
|
|
2664
|
-
});
|
|
2665
|
-
var startExecution = Effect.fn("Client.startExecution.call")(function* (input) {
|
|
2666
|
-
const service = yield* Service;
|
|
2667
|
-
return yield* service.startExecution(input);
|
|
2668
|
-
});
|
|
2669
|
-
var startExecutionByAddress = Effect.fn("Client.startExecutionByAddress.call")(function* (input) {
|
|
2670
|
-
const service = yield* Service;
|
|
2671
|
-
return yield* service.startExecutionByAddress(input);
|
|
2672
|
-
});
|
|
2673
|
-
var startExecutionByAgentDefinition = Effect.fn("Client.startExecutionByAgentDefinition.call")(function* (input) {
|
|
2674
|
-
const service = yield* Service;
|
|
2675
|
-
return yield* service.startExecutionByAgentDefinition(input);
|
|
2676
|
-
});
|
|
2677
|
-
var cancelExecution = Effect.fn("Client.cancelExecution.call")(function* (input) {
|
|
2678
|
-
const service = yield* Service;
|
|
2679
|
-
return yield* service.cancelExecution(input);
|
|
2680
|
-
});
|
|
2681
|
-
var steer = Effect.fn("Client.steer.call")(function* (input) {
|
|
2682
|
-
const service = yield* Service;
|
|
2683
|
-
return yield* service.steer(input);
|
|
2684
|
-
});
|
|
2685
|
-
var getExecution = Effect.fn("Client.getExecution.call")(function* (id2) {
|
|
2686
|
-
const service = yield* Service;
|
|
2687
|
-
return yield* service.getExecution(id2);
|
|
2688
|
-
});
|
|
2689
|
-
var listExecutions = Effect.fn("Client.listExecutions.call")(function* (input) {
|
|
2690
|
-
const service = yield* Service;
|
|
2691
|
-
return yield* service.listExecutions(input);
|
|
2692
|
-
});
|
|
2693
|
-
var listSessions = Effect.fn("Client.listSessions.call")(function* (input) {
|
|
2694
|
-
const service = yield* Service;
|
|
2695
|
-
return yield* service.listSessions(input);
|
|
2696
|
-
});
|
|
2697
|
-
var getSession = Effect.fn("Client.getSession.call")(function* (input) {
|
|
2698
|
-
const service = yield* Service;
|
|
2699
|
-
return yield* service.getSession(input);
|
|
2700
|
-
});
|
|
2701
|
-
var listWaits = Effect.fn("Client.listWaits.call")(function* (input) {
|
|
2702
|
-
const service = yield* Service;
|
|
2703
|
-
return yield* service.listWaits(input);
|
|
2704
|
-
});
|
|
2705
|
-
var replayExecution = Effect.fn("Client.replayExecution.call")(function* (input) {
|
|
2706
|
-
const service = yield* Service;
|
|
2707
|
-
return yield* service.replayExecution(input);
|
|
2708
|
-
});
|
|
2709
|
-
var pageExecutionEvents = Effect.fn("Client.pageExecutionEvents.call")(function* (input) {
|
|
2710
|
-
const service = yield* Service;
|
|
2711
|
-
return yield* service.pageExecutionEvents(input);
|
|
2712
|
-
});
|
|
2713
|
-
var listRunners = Effect.fn("Client.listRunners.call")(function* () {
|
|
2714
|
-
const service = yield* Service;
|
|
2715
|
-
return yield* service.listRunners();
|
|
2716
|
-
});
|
|
2717
|
-
var routeExecution = Effect.fn("Client.routeExecution.call")(function* (executionId) {
|
|
2718
|
-
const service = yield* Service;
|
|
2719
|
-
return yield* service.routeExecution(executionId);
|
|
2720
|
-
});
|
|
2721
|
-
var subscribeTopic = Effect.fn("Client.subscribeTopic.call")(function* (input) {
|
|
2722
|
-
const service = yield* Service;
|
|
2723
|
-
return yield* service.subscribeTopic(input);
|
|
2724
|
-
});
|
|
2725
|
-
var unsubscribeTopic = Effect.fn("Client.unsubscribeTopic.call")(function* (input) {
|
|
2726
|
-
const service = yield* Service;
|
|
2727
|
-
return yield* service.unsubscribeTopic(input);
|
|
2728
|
-
});
|
|
2729
|
-
var publishTopic = Effect.fn("Client.publishTopic.call")(function* (input) {
|
|
2730
|
-
const service = yield* Service;
|
|
2731
|
-
return yield* service.publishTopic(input);
|
|
2732
|
-
});
|
|
2733
|
-
var listTopicSubscriptions = Effect.fn("Client.listTopicSubscriptions.call")(function* (input) {
|
|
2734
|
-
const service = yield* Service;
|
|
2735
|
-
return yield* service.listTopicSubscriptions(input);
|
|
2736
|
-
});
|
|
2737
|
-
var listInboxMessages = Effect.fn("Client.listInboxMessages.call")(function* (input) {
|
|
2738
|
-
const service = yield* Service;
|
|
2739
|
-
return yield* service.listInboxMessages(input);
|
|
2740
|
-
});
|
|
2741
|
-
var inspectExecution = Effect.fn("Client.inspectExecution.call")(function* (executionId) {
|
|
2742
|
-
const service = yield* Service;
|
|
2743
|
-
return yield* service.inspectExecution(executionId);
|
|
2744
|
-
});
|
|
2745
|
-
var send = Effect.fn("Client.send.call")(function* (input) {
|
|
2746
|
-
const service = yield* Service;
|
|
2747
|
-
return yield* service.send(input);
|
|
2748
|
-
});
|
|
2749
|
-
var streamExecution = (input) => Stream.unwrap(Service.pipe(Effect.map((service) => service.streamExecution(input))));
|
|
2750
|
-
var followExecution = (input) => Stream.unwrap(Service.pipe(Effect.map((service) => service.followExecution(input))));
|
|
2751
|
-
var streamSession = (input) => Stream.unwrap(Service.pipe(Effect.map((service) => service.streamSession(input))));
|
|
2752
|
-
var watchExecutions = (input) => Stream.unwrap(Service.pipe(Effect.map((service) => service.watchExecutions(input))));
|
|
2753
|
-
var getPresence = Effect.fn("Client.getPresence.call")(function* (scope) {
|
|
2754
|
-
const service = yield* Service;
|
|
2755
|
-
return yield* service.getPresence(scope);
|
|
2756
|
-
});
|
|
2757
|
-
var watchPresence = (scope) => Stream.unwrap(Service.pipe(Effect.map((service) => service.watchPresence(scope))));
|
|
2758
|
-
var wake = Effect.fn("Client.wake.call")(function* (input) {
|
|
2759
|
-
const service = yield* Service;
|
|
2760
|
-
return yield* service.wake(input);
|
|
2761
|
-
});
|
|
2762
|
-
var listPendingApprovals = Effect.fn("Client.listPendingApprovals.call")(function* (input) {
|
|
2763
|
-
const service = yield* Service;
|
|
2764
|
-
return yield* service.listPendingApprovals(input);
|
|
2765
|
-
});
|
|
2766
|
-
var resolveToolApproval = Effect.fn("Client.resolveToolApproval.call")(function* (input) {
|
|
2767
|
-
const service = yield* Service;
|
|
2768
|
-
return yield* service.resolveToolApproval(input);
|
|
2769
|
-
});
|
|
2770
|
-
var resolvePermission = Effect.fn("Client.resolvePermission.call")(function* (input) {
|
|
2771
|
-
const service = yield* Service;
|
|
2772
|
-
return yield* service.resolvePermission(input);
|
|
2773
|
-
});
|
|
2774
|
-
var listPendingToolCalls = Effect.fn("Client.listPendingToolCalls.call")(function* (input) {
|
|
2775
|
-
const service = yield* Service;
|
|
2776
|
-
return yield* service.listPendingToolCalls(input);
|
|
2777
|
-
});
|
|
2778
|
-
var fulfillToolCall = Effect.fn("Client.fulfillToolCall.call")(function* (input) {
|
|
2779
|
-
const service = yield* Service;
|
|
2780
|
-
return yield* service.fulfillToolCall(input);
|
|
2781
|
-
});
|
|
2782
|
-
var claimToolWork = Effect.fn("Client.claimToolWork.call")(function* (input) {
|
|
2783
|
-
const service = yield* Service;
|
|
2784
|
-
return yield* service.claimToolWork(input);
|
|
2785
|
-
});
|
|
2786
|
-
var completeToolWork = Effect.fn("Client.completeToolWork.call")(function* (input) {
|
|
2787
|
-
const service = yield* Service;
|
|
2788
|
-
return yield* service.completeToolWork(input);
|
|
2789
|
-
});
|
|
2790
|
-
var releaseToolWork = Effect.fn("Client.releaseToolWork.call")(function* (input) {
|
|
2791
|
-
const service = yield* Service;
|
|
2792
|
-
return yield* service.releaseToolWork(input);
|
|
2793
|
-
});
|
|
2794
|
-
var listToolAttempts = Effect.fn("Client.listToolAttempts.call")(function* (input) {
|
|
2795
|
-
const service = yield* Service;
|
|
2796
|
-
return yield* service.listToolAttempts(input);
|
|
2797
|
-
});
|
|
2798
|
-
var submitInboundEnvelope = Effect.fn("Client.submitInboundEnvelope.call")(function* (input) {
|
|
2799
|
-
const service = yield* Service;
|
|
2800
|
-
return yield* service.submitInboundEnvelope(input);
|
|
2801
|
-
});
|
|
2802
|
-
var spawnChildRun = Effect.fn("Client.spawnChildRun.call")(function* (input) {
|
|
2803
|
-
const service = yield* Service;
|
|
2804
|
-
return yield* service.spawnChildRun(input);
|
|
2805
|
-
});
|
|
2806
|
-
var createChildFanOut = Effect.fn("Client.createChildFanOut.call")(function* (input) {
|
|
2807
|
-
const service = yield* Service;
|
|
2808
|
-
return yield* service.createChildFanOut(input);
|
|
2809
|
-
});
|
|
2810
|
-
var cancelChildFanOut = Effect.fn("Client.cancelChildFanOut.call")(function* (input) {
|
|
2811
|
-
const service = yield* Service;
|
|
2812
|
-
return yield* service.cancelChildFanOut(input);
|
|
2813
|
-
});
|
|
2814
|
-
var inspectChildFanOut = Effect.fn("Client.inspectChildFanOut.call")(function* (input) {
|
|
2815
|
-
const service = yield* Service;
|
|
2816
|
-
return yield* service.inspectChildFanOut(input);
|
|
2817
|
-
});
|
|
2818
|
-
var claimEnvelopeReady = Effect.fn("Client.claimEnvelopeReady.call")(function* (input) {
|
|
2819
|
-
const service = yield* Service;
|
|
2820
|
-
return yield* service.claimEnvelopeReady(input);
|
|
2821
|
-
});
|
|
2822
|
-
var ackEnvelopeReady = Effect.fn("Client.ackEnvelopeReady.call")(function* (input) {
|
|
2823
|
-
const service = yield* Service;
|
|
2824
|
-
return yield* service.ackEnvelopeReady(input);
|
|
2825
|
-
});
|
|
2826
|
-
var releaseEnvelopeReady = Effect.fn("Client.releaseEnvelopeReady.call")(function* (input) {
|
|
2827
|
-
const service = yield* Service;
|
|
2828
|
-
return yield* service.releaseEnvelopeReady(input);
|
|
2829
|
-
});
|
|
2830
|
-
var createSchedule = Effect.fn("Client.createSchedule.call")(function* (input) {
|
|
2831
|
-
const service = yield* Service;
|
|
2832
|
-
return yield* service.createSchedule(input);
|
|
2833
|
-
});
|
|
2834
|
-
var cancelSchedule = Effect.fn("Client.cancelSchedule.call")(function* (input) {
|
|
2835
|
-
const service = yield* Service;
|
|
2836
|
-
return yield* service.cancelSchedule(input);
|
|
2837
|
-
});
|
|
2838
|
-
var listSchedules = Effect.fn("Client.listSchedules.call")(function* (input) {
|
|
2839
|
-
const service = yield* Service;
|
|
2840
|
-
return yield* service.listSchedules(input);
|
|
2841
|
-
});
|
|
2842
|
-
var askEntity = Effect.fn("Client.askEntity.call")(function* (input) {
|
|
2843
|
-
const service = yield* Service;
|
|
2844
|
-
return yield* service.askEntity(input);
|
|
2845
|
-
});
|
|
2846
|
-
var awaitWait = Effect.fn("Client.awaitWait.call")(function* (input) {
|
|
2847
|
-
const service = yield* Service;
|
|
2848
|
-
return yield* service.awaitWait(input);
|
|
2849
|
-
});
|
|
2850
2483
|
|
|
2851
2484
|
// ../runtime/src/presence/presence-contract.ts
|
|
2852
|
-
import { Context as Context2, Schema as
|
|
2485
|
+
import { Context as Context2, Schema as Schema24 } from "effect";
|
|
2853
2486
|
|
|
2854
|
-
class PresenceError extends
|
|
2855
|
-
message:
|
|
2487
|
+
class PresenceError extends Schema24.TaggedErrorClass()("PresenceError", {
|
|
2488
|
+
message: Schema24.String
|
|
2856
2489
|
}) {
|
|
2857
2490
|
}
|
|
2858
2491
|
|
|
@@ -2860,4 +2493,4 @@ class Service2 extends Context2.Service()("@relayfx/runtime/presence/presence-co
|
|
|
2860
2493
|
}
|
|
2861
2494
|
var PresenceIdentity = Context2.Reference("@relayfx/runtime/PresenceIdentity", { defaultValue: () => ({}) });
|
|
2862
2495
|
|
|
2863
|
-
export { exports_address_schema, exports_ids_schema, exports_shared_schema, exports_agent_schema, exports_tool_schema, exports_child_orchestration_schema, exports_execution_schema, exports_content_schema, exports_envelope_schema,
|
|
2496
|
+
export { exports_address_schema, exports_ids_schema, exports_shared_schema, exports_agent_schema, exports_tool_schema, exports_child_orchestration_schema, exports_execution_schema, exports_content_schema, exports_envelope_schema, exports_resident_schema, exports_inbox_schema, exports_pagination_schema, exports_presence_schema, exports_schedule_schema, exports_skill_schema, exports_state_schema, exports_wait_schema, exports_workflow_schema, exports_workspace_schema, StateVersionConflict, EventLogCursorNotFound, exports_operation, ClientError, ExecutionNotFound, ResidentNamespaceReserved, WaitKindMismatch, Service, followExecutionFrom, PresenceError, Service2 as Service1, PresenceIdentity };
|