@relayfx/sdk 0.3.6 → 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-mtvz1bjn.js → index-3w6txjtg.js} +63 -426
- package/dist/{index-2vsf6dks.js → index-cs3be24t.js} +1 -1
- package/dist/{index-e02krw55.js → index-p43mg4kt.js} +5882 -5127
- package/dist/{index-8fpd6kvj.js → index-x32kbvxv.js} +1004 -970
- 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 +44 -41
- package/dist/types/relay/sqlite-migrations.d.ts +6 -1
- package/dist/types/runtime/address/address-resolution-service.d.ts +3 -0
- package/dist/types/runtime/agent/agent-loop-events.d.ts +24 -0
- package/dist/types/runtime/agent/relay-tool-executor.d.ts +2 -2
- package/dist/types/runtime/agent/sequence-allocator.d.ts +1 -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/execution/event-log-service.d.ts +3 -1
- 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/tool/tool-runtime-contract.d.ts +4 -1
- package/dist/types/runtime/workflow/execution-workflow-state.d.ts +43 -0
- package/dist/types/runtime/workflow/execution-workflow.d.ts +6 -0
- package/dist/types/schema/agent-schema.d.ts +24 -0
- package/dist/types/schema/execution-schema.d.ts +5 -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 +13 -5
- 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
|
@@ -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");
|
|
@@ -442,6 +442,9 @@ var DefinitionSchema = Schema5.Struct({
|
|
|
442
442
|
skill_definition_ids: Schema5.optionalKey(Schema5.Array(SkillDefinitionId)),
|
|
443
443
|
permission_rules: Schema5.optionalKey(PermissionRuleset),
|
|
444
444
|
turn_policy: Schema5.optionalKey(TurnPolicySnapshot),
|
|
445
|
+
tool_execution: Schema5.optionalKey(Schema5.Struct({
|
|
446
|
+
concurrency: PositiveSafeInteger
|
|
447
|
+
})),
|
|
445
448
|
compaction_policy: Schema5.optionalKey(CompactionPolicy),
|
|
446
449
|
max_tool_turns: Schema5.optionalKey(Schema5.Int.check(Schema5.isGreaterThanOrEqualTo(1))),
|
|
447
450
|
max_wait_turns: Schema5.optionalKey(Schema5.Int.check(Schema5.isGreaterThanOrEqualTo(0))),
|
|
@@ -463,6 +466,7 @@ var define = (input) => ({
|
|
|
463
466
|
...input.skill_definition_ids === undefined ? {} : { skill_definition_ids: input.skill_definition_ids },
|
|
464
467
|
...input.permission_rules === undefined ? {} : { permission_rules: input.permission_rules },
|
|
465
468
|
...input.turn_policy === undefined ? {} : { turn_policy: input.turn_policy },
|
|
469
|
+
...input.tool_execution === undefined ? {} : { tool_execution: input.tool_execution },
|
|
466
470
|
...input.compaction_policy === undefined ? {} : { compaction_policy: input.compaction_policy },
|
|
467
471
|
...input.max_tool_turns === undefined ? {} : { max_tool_turns: input.max_tool_turns },
|
|
468
472
|
...input.max_wait_turns === undefined ? {} : { max_wait_turns: input.max_wait_turns },
|
|
@@ -680,8 +684,8 @@ var ExecutionEventType = Schema7.Literals([
|
|
|
680
684
|
"state.deleted",
|
|
681
685
|
"inbox.enqueued",
|
|
682
686
|
"inbox.drained",
|
|
683
|
-
"
|
|
684
|
-
"
|
|
687
|
+
"resident.created",
|
|
688
|
+
"resident.destroyed",
|
|
685
689
|
"envelope.accepted",
|
|
686
690
|
"envelope.routed",
|
|
687
691
|
"envelope.ready",
|
|
@@ -813,8 +817,8 @@ var EnvelopeReady = Schema9.Struct({
|
|
|
813
817
|
attempt: Schema9.Int,
|
|
814
818
|
metadata: Schema9.optionalKey(Metadata)
|
|
815
819
|
}).annotate({ identifier: "Relay.EnvelopeReady" });
|
|
816
|
-
var
|
|
817
|
-
__export2(
|
|
820
|
+
var exports_resident_schema = {};
|
|
821
|
+
__export2(exports_resident_schema, {
|
|
818
822
|
KindDefinition: () => KindDefinition,
|
|
819
823
|
InstanceStatus: () => InstanceStatus,
|
|
820
824
|
Instance: () => Instance
|
|
@@ -847,26 +851,26 @@ var InboxPolicy = Schema10.Struct({
|
|
|
847
851
|
max_batch: Schema10.optionalKey(Schema10.Int.check(Schema10.isGreaterThan(0)))
|
|
848
852
|
}).annotate({ identifier: "Relay.Inbox.InboxPolicy" });
|
|
849
853
|
var KindDefinition = Schema11.Struct({
|
|
850
|
-
kind:
|
|
854
|
+
kind: ResidentKindName,
|
|
851
855
|
agent_id: AgentId,
|
|
852
856
|
inbox: Schema11.optionalKey(InboxPolicy),
|
|
853
857
|
state_enabled: Schema11.optionalKey(Schema11.Boolean),
|
|
854
858
|
continue_as_new_after_turns: Schema11.optionalKey(Schema11.Int.check(Schema11.isGreaterThan(0))),
|
|
855
859
|
metadata: Schema11.optionalKey(Metadata)
|
|
856
|
-
}).annotate({ identifier: "Relay.
|
|
860
|
+
}).annotate({ identifier: "Relay.Resident.KindDefinition" });
|
|
857
861
|
var InstanceStatus = Schema11.Literals(["active", "destroyed"]).annotate({
|
|
858
|
-
identifier: "Relay.
|
|
862
|
+
identifier: "Relay.Resident.InstanceStatus"
|
|
859
863
|
});
|
|
860
864
|
var Instance = Schema11.Struct({
|
|
861
|
-
kind:
|
|
862
|
-
key:
|
|
865
|
+
kind: ResidentKindName,
|
|
866
|
+
key: ResidentKey,
|
|
863
867
|
address_id: AddressId,
|
|
864
868
|
execution_id: ExecutionId,
|
|
865
869
|
generation: Schema11.Int.check(Schema11.isGreaterThanOrEqualTo(0)),
|
|
866
870
|
status: InstanceStatus,
|
|
867
871
|
created_at: TimestampMillis,
|
|
868
872
|
destroyed_at: Schema11.optionalKey(TimestampMillis)
|
|
869
|
-
}).annotate({ identifier: "Relay.
|
|
873
|
+
}).annotate({ identifier: "Relay.Resident.Instance" });
|
|
870
874
|
var exports_pagination_schema = {};
|
|
871
875
|
__export2(exports_pagination_schema, {
|
|
872
876
|
SessionCursorCodec: () => SessionCursorCodec,
|
|
@@ -1742,6 +1746,7 @@ __export(exports_operation, {
|
|
|
1742
1746
|
SteerAccepted: () => SteerAccepted,
|
|
1743
1747
|
StartExecutionResult: () => StartExecutionResult,
|
|
1744
1748
|
StartExecutionInput: () => StartExecutionInput,
|
|
1749
|
+
SpawnResidentInput: () => SpawnResidentInput,
|
|
1745
1750
|
SpawnChildRunInput: () => SpawnChildRunInput2,
|
|
1746
1751
|
SessionSummary: () => SessionSummary,
|
|
1747
1752
|
SessionStreamItem: () => SessionStreamItem,
|
|
@@ -1749,11 +1754,12 @@ __export(exports_operation, {
|
|
|
1749
1754
|
RouteExecutionResult: () => RouteExecutionResult,
|
|
1750
1755
|
ResolveToolApprovalInput: () => ResolveToolApprovalInput,
|
|
1751
1756
|
ResolvePermissionInput: () => ResolvePermissionInput,
|
|
1757
|
+
ResidentInstance: () => ResidentInstance,
|
|
1752
1758
|
ReplayExecutionResult: () => ReplayExecutionResult,
|
|
1753
1759
|
ReplayExecutionInput: () => ReplayExecutionInput,
|
|
1754
1760
|
ReleaseToolWorkInput: () => ReleaseToolWorkInput,
|
|
1755
1761
|
ReleaseEnvelopeReadyInput: () => ReleaseEnvelopeReadyInput,
|
|
1756
|
-
|
|
1762
|
+
PutResidentStateInput: () => PutResidentStateInput,
|
|
1757
1763
|
PublishTopicInput: () => PublishTopicInput,
|
|
1758
1764
|
PermissionAnswer: () => PermissionAnswer,
|
|
1759
1765
|
PendingToolCallList: () => PendingToolCallList,
|
|
@@ -1770,20 +1776,19 @@ __export(exports_operation, {
|
|
|
1770
1776
|
ListSchedulesResult: () => ListSchedulesResult,
|
|
1771
1777
|
ListSchedulesInput: () => ListSchedulesInput,
|
|
1772
1778
|
ListRunnersResult: () => ListRunnersResult,
|
|
1779
|
+
ListResidentsInput: () => ListResidentsInput,
|
|
1780
|
+
ListResidentStateInput: () => ListResidentStateInput,
|
|
1773
1781
|
ListPendingToolCallsInput: () => ListPendingToolCallsInput,
|
|
1774
1782
|
ListPendingApprovalsInput: () => ListPendingApprovalsInput,
|
|
1775
1783
|
ListInboxMessagesInput: () => ListInboxMessagesInput,
|
|
1776
1784
|
ListExecutionsResult: () => ListExecutionsResult,
|
|
1777
1785
|
ListExecutionsInput: () => ListExecutionsInput,
|
|
1778
|
-
ListEntityStateInput: () => ListEntityStateInput,
|
|
1779
|
-
ListEntitiesInput: () => ListEntitiesInput,
|
|
1780
1786
|
InspectChildFanOutResult: () => InspectChildFanOutResult,
|
|
1781
1787
|
InspectChildFanOutInput: () => InspectChildFanOutInput,
|
|
1782
1788
|
GetSessionResult: () => GetSessionResult,
|
|
1783
1789
|
GetSessionInput: () => GetSessionInput,
|
|
1784
|
-
|
|
1785
|
-
|
|
1786
|
-
GetEntityInput: () => GetEntityInput,
|
|
1790
|
+
GetResidentStateInput: () => GetResidentStateInput,
|
|
1791
|
+
GetResidentInput: () => GetResidentInput,
|
|
1787
1792
|
FulfillToolCallInput: () => FulfillToolCallInput,
|
|
1788
1793
|
FollowStopReason: () => FollowStopReason,
|
|
1789
1794
|
FollowExecutionItem: () => FollowExecutionItem,
|
|
@@ -1796,9 +1801,8 @@ __export(exports_operation, {
|
|
|
1796
1801
|
EnvelopeReadyReleased: () => EnvelopeReadyReleased,
|
|
1797
1802
|
EnvelopeReadyLease: () => EnvelopeReadyLease,
|
|
1798
1803
|
EnvelopeReadyAcked: () => EnvelopeReadyAcked,
|
|
1799
|
-
|
|
1800
|
-
|
|
1801
|
-
DeleteEntityStateInput: () => DeleteEntityStateInput,
|
|
1804
|
+
DestroyResidentInput: () => DestroyResidentInput,
|
|
1805
|
+
DeleteResidentStateInput: () => DeleteResidentStateInput,
|
|
1802
1806
|
CreateScheduleResult: () => CreateScheduleResult,
|
|
1803
1807
|
CreateScheduleInput: () => CreateScheduleInput,
|
|
1804
1808
|
CreateChildFanOutInput: () => CreateChildFanOutInput,
|
|
@@ -1838,58 +1842,58 @@ var StartExecutionResult = Schema22.Struct({
|
|
|
1838
1842
|
status: exports_execution_schema.ExecutionStatus,
|
|
1839
1843
|
metadata: Schema22.optionalKey(exports_shared_schema.Metadata)
|
|
1840
1844
|
}).annotate({ identifier: "Relay.Operation.StartExecutionResult" });
|
|
1841
|
-
var
|
|
1842
|
-
kind: exports_ids_schema.
|
|
1843
|
-
key: exports_ids_schema.
|
|
1845
|
+
var SpawnResidentInput = Schema22.Struct({
|
|
1846
|
+
kind: exports_ids_schema.ResidentKindName,
|
|
1847
|
+
key: exports_ids_schema.ResidentKey,
|
|
1844
1848
|
input: Schema22.optionalKey(Schema22.Array(exports_content_schema.Part)),
|
|
1845
1849
|
metadata: Schema22.optionalKey(exports_shared_schema.Metadata),
|
|
1846
1850
|
created_at: exports_shared_schema.TimestampMillis
|
|
1847
|
-
}).annotate({ identifier: "Relay.Operation.
|
|
1848
|
-
var
|
|
1849
|
-
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"
|
|
1850
1854
|
});
|
|
1851
|
-
var
|
|
1852
|
-
kind: exports_ids_schema.
|
|
1853
|
-
key: exports_ids_schema.
|
|
1855
|
+
var DestroyResidentInput = Schema22.Struct({
|
|
1856
|
+
kind: exports_ids_schema.ResidentKindName,
|
|
1857
|
+
key: exports_ids_schema.ResidentKey,
|
|
1854
1858
|
reason: Schema22.optionalKey(Schema22.String),
|
|
1855
1859
|
destroyed_at: exports_shared_schema.TimestampMillis
|
|
1856
|
-
}).annotate({ identifier: "Relay.Operation.
|
|
1857
|
-
var
|
|
1858
|
-
kind: Schema22.optionalKey(exports_ids_schema.
|
|
1859
|
-
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),
|
|
1860
1864
|
after_key: Schema22.optionalKey(Schema22.String),
|
|
1861
1865
|
limit: Schema22.optionalKey(Schema22.Int.check(Schema22.isGreaterThan(0)))
|
|
1862
|
-
}).annotate({ identifier: "Relay.Operation.
|
|
1863
|
-
var
|
|
1866
|
+
}).annotate({ identifier: "Relay.Operation.ListResidentsInput" });
|
|
1867
|
+
var ResidentInstance = exports_resident_schema.Instance;
|
|
1864
1868
|
var StreamExecutionInput = Schema22.Struct({
|
|
1865
1869
|
execution_id: exports_execution_schema.Execution.fields.id,
|
|
1866
1870
|
after_cursor: Schema22.optionalKey(exports_shared_schema.NonEmptyString),
|
|
1867
1871
|
limit: Schema22.optionalKey(Schema22.Int.check(Schema22.isGreaterThan(0)))
|
|
1868
1872
|
}).annotate({ identifier: "Relay.Operation.StreamExecutionInput" });
|
|
1869
|
-
var
|
|
1870
|
-
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"
|
|
1871
1875
|
});
|
|
1872
|
-
var
|
|
1876
|
+
var PutResidentStateInput = Schema22.Struct({
|
|
1873
1877
|
execution_id: exports_ids_schema.ExecutionId,
|
|
1874
1878
|
key: exports_state_schema.StateKey,
|
|
1875
1879
|
value: exports_shared_schema.JsonValue,
|
|
1876
1880
|
expected_version: Schema22.optionalKey(Schema22.Int.check(Schema22.isGreaterThanOrEqualTo(0))),
|
|
1877
1881
|
idempotency_key: Schema22.optionalKey(exports_state_schema.StateIdempotencyKey.check(Schema22.makeFilter((value) => !value.startsWith("relay:internal:")))),
|
|
1878
1882
|
updated_at: exports_shared_schema.TimestampMillis
|
|
1879
|
-
}).annotate({ identifier: "Relay.Operation.
|
|
1880
|
-
var
|
|
1883
|
+
}).annotate({ identifier: "Relay.Operation.PutResidentStateInput" });
|
|
1884
|
+
var DeleteResidentStateInput = Schema22.Struct({
|
|
1881
1885
|
execution_id: exports_ids_schema.ExecutionId,
|
|
1882
1886
|
key: exports_state_schema.StateKey,
|
|
1883
1887
|
expected_version: Schema22.optionalKey(Schema22.Int.check(Schema22.isGreaterThanOrEqualTo(0))),
|
|
1884
1888
|
idempotency_key: Schema22.optionalKey(exports_state_schema.StateIdempotencyKey.check(Schema22.makeFilter((value) => !value.startsWith("relay:internal:")))),
|
|
1885
1889
|
removed_at: exports_shared_schema.TimestampMillis
|
|
1886
|
-
}).annotate({ identifier: "Relay.Operation.
|
|
1887
|
-
var
|
|
1890
|
+
}).annotate({ identifier: "Relay.Operation.DeleteResidentStateInput" });
|
|
1891
|
+
var ListResidentStateInput = Schema22.Struct({
|
|
1888
1892
|
execution_id: exports_ids_schema.ExecutionId,
|
|
1889
1893
|
prefix: Schema22.optionalKey(Schema22.String),
|
|
1890
1894
|
after_key: Schema22.optionalKey(Schema22.String),
|
|
1891
1895
|
limit: Schema22.optionalKey(Schema22.Int.check(Schema22.isGreaterThan(0)))
|
|
1892
|
-
}).annotate({ identifier: "Relay.Operation.
|
|
1896
|
+
}).annotate({ identifier: "Relay.Operation.ListResidentStateInput" });
|
|
1893
1897
|
var WaitTerminalState = Schema22.Literals(["resolved", "timed_out", "cancelled"]).annotate({
|
|
1894
1898
|
identifier: "Relay.Operation.WaitTerminalState"
|
|
1895
1899
|
});
|
|
@@ -2377,140 +2381,27 @@ var RouteExecutionResult = Schema22.Struct({
|
|
|
2377
2381
|
runner_address: Schema22.NullOr(Schema22.String),
|
|
2378
2382
|
owned: Schema22.Boolean
|
|
2379
2383
|
}).annotate({ identifier: "Relay.Operation.RouteExecutionResult" });
|
|
2380
|
-
|
|
2381
|
-
// src/command.ts
|
|
2382
|
-
var exports_command = {};
|
|
2383
|
-
__export(exports_command, {
|
|
2384
|
-
outputSchemaRef: () => outputSchemaRef,
|
|
2385
|
-
make: () => make,
|
|
2386
|
-
inputSchemaRef: () => inputSchemaRef,
|
|
2387
|
-
EntityNotFound: () => EntityNotFound,
|
|
2388
|
-
CommandTimedOut: () => CommandTimedOut,
|
|
2389
|
-
CommandReplyInvalid: () => CommandReplyInvalid
|
|
2390
|
-
});
|
|
2391
|
-
import { Function, Schema as Schema23 } from "effect";
|
|
2392
|
-
var make = Function.dual(2, (name, options) => ({ name, ...options }));
|
|
2393
|
-
var inputSchemaRef = (name) => `relay/command/${name}/input`;
|
|
2394
|
-
var outputSchemaRef = (name) => `relay/command/${name}/output`;
|
|
2395
|
-
|
|
2396
|
-
class CommandTimedOut extends Schema23.TaggedErrorClass()("CommandTimedOut", {
|
|
2397
|
-
command: exports_shared_schema.NonEmptyString,
|
|
2398
|
-
wait_id: exports_ids_schema.WaitId,
|
|
2399
|
-
timeout: Schema23.String
|
|
2400
|
-
}) {
|
|
2401
|
-
}
|
|
2402
|
-
|
|
2403
|
-
class CommandReplyInvalid extends Schema23.TaggedErrorClass()("CommandReplyInvalid", {
|
|
2404
|
-
command: exports_shared_schema.NonEmptyString,
|
|
2405
|
-
wait_id: exports_ids_schema.WaitId,
|
|
2406
|
-
message: Schema23.String
|
|
2407
|
-
}) {
|
|
2408
|
-
}
|
|
2409
|
-
|
|
2410
|
-
class EntityNotFound extends Schema23.TaggedErrorClass()("EntityNotFound", {
|
|
2411
|
-
kind: exports_ids_schema.EntityKindName,
|
|
2412
|
-
key: exports_ids_schema.EntityKey
|
|
2413
|
-
}) {
|
|
2414
|
-
}
|
|
2415
|
-
|
|
2416
2384
|
// src/client-public.ts
|
|
2417
|
-
|
|
2418
|
-
__export(exports_client_public, {
|
|
2419
|
-
watchPresence: () => watchPresence,
|
|
2420
|
-
watchExecutions: () => watchExecutions,
|
|
2421
|
-
wake: () => wake,
|
|
2422
|
-
unsubscribeTopic: () => unsubscribeTopic,
|
|
2423
|
-
subscribeTopic: () => subscribeTopic,
|
|
2424
|
-
submitInboundEnvelope: () => submitInboundEnvelope,
|
|
2425
|
-
streamSession: () => streamSession,
|
|
2426
|
-
streamExecution: () => streamExecution,
|
|
2427
|
-
steer: () => steer,
|
|
2428
|
-
startExecutionByAgentDefinition: () => startExecutionByAgentDefinition,
|
|
2429
|
-
startExecutionByAddress: () => startExecutionByAddress,
|
|
2430
|
-
startExecution: () => startExecution,
|
|
2431
|
-
spawnChildRun: () => spawnChildRun,
|
|
2432
|
-
send: () => send,
|
|
2433
|
-
routeExecution: () => routeExecution,
|
|
2434
|
-
resolveToolApproval: () => resolveToolApproval,
|
|
2435
|
-
resolvePermission: () => resolvePermission,
|
|
2436
|
-
replayExecution: () => replayExecution,
|
|
2437
|
-
releaseToolWork: () => releaseToolWork,
|
|
2438
|
-
releaseEnvelopeReady: () => releaseEnvelopeReady,
|
|
2439
|
-
registerEntityKind: () => registerEntityKind,
|
|
2440
|
-
registerAgentDefinition: () => registerAgentDefinition,
|
|
2441
|
-
registerAgent: () => registerAgent,
|
|
2442
|
-
registerAddressBookRoute: () => registerAddressBookRoute,
|
|
2443
|
-
publishTopic: () => publishTopic,
|
|
2444
|
-
pageExecutionEvents: () => pageExecutionEvents,
|
|
2445
|
-
listWaits: () => listWaits,
|
|
2446
|
-
listTopicSubscriptions: () => listTopicSubscriptions,
|
|
2447
|
-
listToolAttempts: () => listToolAttempts,
|
|
2448
|
-
listSkillDefinitions: () => listSkillDefinitions,
|
|
2449
|
-
listSkillDefinitionRevisions: () => listSkillDefinitionRevisions,
|
|
2450
|
-
listSessions: () => listSessions,
|
|
2451
|
-
listSchedules: () => listSchedules,
|
|
2452
|
-
listRunners: () => listRunners,
|
|
2453
|
-
listPendingToolCalls: () => listPendingToolCalls,
|
|
2454
|
-
listPendingApprovals: () => listPendingApprovals,
|
|
2455
|
-
listInboxMessages: () => listInboxMessages,
|
|
2456
|
-
listExecutions: () => listExecutions,
|
|
2457
|
-
listEntities: () => listEntities,
|
|
2458
|
-
listAgentDefinitions: () => listAgentDefinitions,
|
|
2459
|
-
listAgentDefinitionRevisions: () => listAgentDefinitionRevisions,
|
|
2460
|
-
listAddressBookRoutes: () => listAddressBookRoutes,
|
|
2461
|
-
inspectExecution: () => inspectExecution,
|
|
2462
|
-
inspectChildFanOut: () => inspectChildFanOut,
|
|
2463
|
-
getSkillDefinition: () => getSkillDefinition,
|
|
2464
|
-
getSession: () => getSession,
|
|
2465
|
-
getPresence: () => getPresence,
|
|
2466
|
-
getOrCreateEntity: () => getOrCreateEntity,
|
|
2467
|
-
getExecution: () => getExecution,
|
|
2468
|
-
getEntity: () => getEntity,
|
|
2469
|
-
getAgentDefinition: () => getAgentDefinition,
|
|
2470
|
-
getAddressBookRoute: () => getAddressBookRoute,
|
|
2471
|
-
fulfillToolCall: () => fulfillToolCall,
|
|
2472
|
-
followExecutionFrom: () => followExecutionFrom,
|
|
2473
|
-
followExecution: () => followExecution,
|
|
2474
|
-
destroyEntity: () => destroyEntity,
|
|
2475
|
-
createSchedule: () => createSchedule,
|
|
2476
|
-
createChildFanOut: () => createChildFanOut,
|
|
2477
|
-
completeToolWork: () => completeToolWork,
|
|
2478
|
-
claimToolWork: () => claimToolWork,
|
|
2479
|
-
claimEnvelopeReady: () => claimEnvelopeReady,
|
|
2480
|
-
cancelSchedule: () => cancelSchedule,
|
|
2481
|
-
cancelExecution: () => cancelExecution,
|
|
2482
|
-
cancelChildFanOut: () => cancelChildFanOut,
|
|
2483
|
-
awaitWait: () => awaitWait,
|
|
2484
|
-
askEntity: () => askEntity,
|
|
2485
|
-
ackEnvelopeReady: () => ackEnvelopeReady,
|
|
2486
|
-
WaitKindMismatch: () => WaitKindMismatch,
|
|
2487
|
-
StateVersionConflict: () => StateVersionConflict,
|
|
2488
|
-
Service: () => Service,
|
|
2489
|
-
ExecutionNotFound: () => ExecutionNotFound,
|
|
2490
|
-
EventLogCursorNotFound: () => EventLogCursorNotFound,
|
|
2491
|
-
EntityNamespaceReserved: () => EntityNamespaceReserved,
|
|
2492
|
-
ClientError: () => ClientError
|
|
2493
|
-
});
|
|
2494
|
-
import { Context, Effect, Schema as Schema24, Stream } from "effect";
|
|
2385
|
+
import { Context, Effect, Schema as Schema23, Stream } from "effect";
|
|
2495
2386
|
|
|
2496
|
-
class ClientError extends
|
|
2497
|
-
message:
|
|
2387
|
+
class ClientError extends Schema23.TaggedErrorClass()("ClientError", {
|
|
2388
|
+
message: Schema23.String
|
|
2498
2389
|
}) {
|
|
2499
2390
|
}
|
|
2500
2391
|
|
|
2501
|
-
class ExecutionNotFound extends
|
|
2392
|
+
class ExecutionNotFound extends Schema23.TaggedErrorClass()("ExecutionNotFound", {
|
|
2502
2393
|
execution_id: exports_ids_schema.ExecutionId
|
|
2503
2394
|
}) {
|
|
2504
2395
|
}
|
|
2505
2396
|
|
|
2506
|
-
class
|
|
2397
|
+
class ResidentNamespaceReserved extends Schema23.TaggedErrorClass()("ResidentNamespaceReserved", { id: Schema23.String, message: Schema23.String }) {
|
|
2507
2398
|
}
|
|
2508
2399
|
|
|
2509
|
-
class WaitKindMismatch extends
|
|
2400
|
+
class WaitKindMismatch extends Schema23.TaggedErrorClass()("WaitKindMismatch", {
|
|
2510
2401
|
wait_id: exports_ids_schema.WaitId,
|
|
2511
|
-
expected:
|
|
2512
|
-
actual:
|
|
2513
|
-
message:
|
|
2402
|
+
expected: Schema23.String,
|
|
2403
|
+
actual: Schema23.String,
|
|
2404
|
+
message: Schema23.String
|
|
2514
2405
|
}) {
|
|
2515
2406
|
}
|
|
2516
2407
|
|
|
@@ -2589,266 +2480,12 @@ var followExecutionFrom = (dependencies) => (input) => {
|
|
|
2589
2480
|
return connect(state);
|
|
2590
2481
|
})).pipe(Stream.takeUntil((item) => item._tag === "stopped"));
|
|
2591
2482
|
};
|
|
2592
|
-
var registerAgentDefinition = Effect.fn("Client.registerAgentDefinition.call")(function* (input) {
|
|
2593
|
-
const service = yield* Service;
|
|
2594
|
-
return yield* service.registerAgentDefinition(input);
|
|
2595
|
-
});
|
|
2596
|
-
var registerEntityKind = Effect.fn("Client.registerEntityKind.call")(function* (input) {
|
|
2597
|
-
const service = yield* Service;
|
|
2598
|
-
return yield* service.registerEntityKind(input);
|
|
2599
|
-
});
|
|
2600
|
-
var getOrCreateEntity = Effect.fn("Client.getOrCreateEntity.call")(function* (input) {
|
|
2601
|
-
const service = yield* Service;
|
|
2602
|
-
return yield* service.getOrCreateEntity(input);
|
|
2603
|
-
});
|
|
2604
|
-
var getEntity = Effect.fn("Client.getEntity.call")(function* (input) {
|
|
2605
|
-
const service = yield* Service;
|
|
2606
|
-
return yield* service.getEntity(input);
|
|
2607
|
-
});
|
|
2608
|
-
var destroyEntity = Effect.fn("Client.destroyEntity.call")(function* (input) {
|
|
2609
|
-
const service = yield* Service;
|
|
2610
|
-
return yield* service.destroyEntity(input);
|
|
2611
|
-
});
|
|
2612
|
-
var listEntities = Effect.fn("Client.listEntities.call")(function* (input) {
|
|
2613
|
-
const service = yield* Service;
|
|
2614
|
-
return yield* service.listEntities(input);
|
|
2615
|
-
});
|
|
2616
|
-
function registerAgent(input) {
|
|
2617
|
-
return Effect.gen(function* () {
|
|
2618
|
-
const service = yield* Service;
|
|
2619
|
-
if (isRegisterBatonAgentInput(input))
|
|
2620
|
-
return yield* service.registerAgent(input);
|
|
2621
|
-
return yield* service.registerAgent(input);
|
|
2622
|
-
}).pipe(Effect.withSpan("Client.registerAgent.call"));
|
|
2623
|
-
}
|
|
2624
|
-
var isRegisterBatonAgentInput = (input) => ("agent" in input);
|
|
2625
|
-
var getAgentDefinition = Effect.fn("Client.getAgentDefinition.call")(function* (id2) {
|
|
2626
|
-
const service = yield* Service;
|
|
2627
|
-
return yield* service.getAgentDefinition(id2);
|
|
2628
|
-
});
|
|
2629
|
-
var listAgentDefinitions = Effect.fn("Client.listAgentDefinitions.call")(function* () {
|
|
2630
|
-
const service = yield* Service;
|
|
2631
|
-
return yield* service.listAgentDefinitions();
|
|
2632
|
-
});
|
|
2633
|
-
var listAgentDefinitionRevisions = Effect.fn("Client.listAgentDefinitionRevisions.call")(function* (id2) {
|
|
2634
|
-
const service = yield* Service;
|
|
2635
|
-
return yield* service.listAgentDefinitionRevisions(id2);
|
|
2636
|
-
});
|
|
2637
|
-
var getSkillDefinition = Effect.fn("Client.getSkillDefinition.call")(function* (id2) {
|
|
2638
|
-
const service = yield* Service;
|
|
2639
|
-
return yield* service.getSkillDefinition(id2);
|
|
2640
|
-
});
|
|
2641
|
-
var listSkillDefinitions = Effect.fn("Client.listSkillDefinitions.call")(function* () {
|
|
2642
|
-
const service = yield* Service;
|
|
2643
|
-
return yield* service.listSkillDefinitions();
|
|
2644
|
-
});
|
|
2645
|
-
var listSkillDefinitionRevisions = Effect.fn("Client.listSkillDefinitionRevisions.call")(function* (id2) {
|
|
2646
|
-
const service = yield* Service;
|
|
2647
|
-
return yield* service.listSkillDefinitionRevisions(id2);
|
|
2648
|
-
});
|
|
2649
|
-
var registerAddressBookRoute = Effect.fn("Client.registerAddressBookRoute.call")(function* (input) {
|
|
2650
|
-
const service = yield* Service;
|
|
2651
|
-
return yield* service.registerAddressBookRoute(input);
|
|
2652
|
-
});
|
|
2653
|
-
var getAddressBookRoute = Effect.fn("Client.getAddressBookRoute.call")(function* (id2) {
|
|
2654
|
-
const service = yield* Service;
|
|
2655
|
-
return yield* service.getAddressBookRoute(id2);
|
|
2656
|
-
});
|
|
2657
|
-
var listAddressBookRoutes = Effect.fn("Client.listAddressBookRoutes.call")(function* () {
|
|
2658
|
-
const service = yield* Service;
|
|
2659
|
-
return yield* service.listAddressBookRoutes();
|
|
2660
|
-
});
|
|
2661
|
-
var startExecution = Effect.fn("Client.startExecution.call")(function* (input) {
|
|
2662
|
-
const service = yield* Service;
|
|
2663
|
-
return yield* service.startExecution(input);
|
|
2664
|
-
});
|
|
2665
|
-
var startExecutionByAddress = Effect.fn("Client.startExecutionByAddress.call")(function* (input) {
|
|
2666
|
-
const service = yield* Service;
|
|
2667
|
-
return yield* service.startExecutionByAddress(input);
|
|
2668
|
-
});
|
|
2669
|
-
var startExecutionByAgentDefinition = Effect.fn("Client.startExecutionByAgentDefinition.call")(function* (input) {
|
|
2670
|
-
const service = yield* Service;
|
|
2671
|
-
return yield* service.startExecutionByAgentDefinition(input);
|
|
2672
|
-
});
|
|
2673
|
-
var cancelExecution = Effect.fn("Client.cancelExecution.call")(function* (input) {
|
|
2674
|
-
const service = yield* Service;
|
|
2675
|
-
return yield* service.cancelExecution(input);
|
|
2676
|
-
});
|
|
2677
|
-
var steer = Effect.fn("Client.steer.call")(function* (input) {
|
|
2678
|
-
const service = yield* Service;
|
|
2679
|
-
return yield* service.steer(input);
|
|
2680
|
-
});
|
|
2681
|
-
var getExecution = Effect.fn("Client.getExecution.call")(function* (id2) {
|
|
2682
|
-
const service = yield* Service;
|
|
2683
|
-
return yield* service.getExecution(id2);
|
|
2684
|
-
});
|
|
2685
|
-
var listExecutions = Effect.fn("Client.listExecutions.call")(function* (input) {
|
|
2686
|
-
const service = yield* Service;
|
|
2687
|
-
return yield* service.listExecutions(input);
|
|
2688
|
-
});
|
|
2689
|
-
var listSessions = Effect.fn("Client.listSessions.call")(function* (input) {
|
|
2690
|
-
const service = yield* Service;
|
|
2691
|
-
return yield* service.listSessions(input);
|
|
2692
|
-
});
|
|
2693
|
-
var getSession = Effect.fn("Client.getSession.call")(function* (input) {
|
|
2694
|
-
const service = yield* Service;
|
|
2695
|
-
return yield* service.getSession(input);
|
|
2696
|
-
});
|
|
2697
|
-
var listWaits = Effect.fn("Client.listWaits.call")(function* (input) {
|
|
2698
|
-
const service = yield* Service;
|
|
2699
|
-
return yield* service.listWaits(input);
|
|
2700
|
-
});
|
|
2701
|
-
var replayExecution = Effect.fn("Client.replayExecution.call")(function* (input) {
|
|
2702
|
-
const service = yield* Service;
|
|
2703
|
-
return yield* service.replayExecution(input);
|
|
2704
|
-
});
|
|
2705
|
-
var pageExecutionEvents = Effect.fn("Client.pageExecutionEvents.call")(function* (input) {
|
|
2706
|
-
const service = yield* Service;
|
|
2707
|
-
return yield* service.pageExecutionEvents(input);
|
|
2708
|
-
});
|
|
2709
|
-
var listRunners = Effect.fn("Client.listRunners.call")(function* () {
|
|
2710
|
-
const service = yield* Service;
|
|
2711
|
-
return yield* service.listRunners();
|
|
2712
|
-
});
|
|
2713
|
-
var routeExecution = Effect.fn("Client.routeExecution.call")(function* (executionId) {
|
|
2714
|
-
const service = yield* Service;
|
|
2715
|
-
return yield* service.routeExecution(executionId);
|
|
2716
|
-
});
|
|
2717
|
-
var subscribeTopic = Effect.fn("Client.subscribeTopic.call")(function* (input) {
|
|
2718
|
-
const service = yield* Service;
|
|
2719
|
-
return yield* service.subscribeTopic(input);
|
|
2720
|
-
});
|
|
2721
|
-
var unsubscribeTopic = Effect.fn("Client.unsubscribeTopic.call")(function* (input) {
|
|
2722
|
-
const service = yield* Service;
|
|
2723
|
-
return yield* service.unsubscribeTopic(input);
|
|
2724
|
-
});
|
|
2725
|
-
var publishTopic = Effect.fn("Client.publishTopic.call")(function* (input) {
|
|
2726
|
-
const service = yield* Service;
|
|
2727
|
-
return yield* service.publishTopic(input);
|
|
2728
|
-
});
|
|
2729
|
-
var listTopicSubscriptions = Effect.fn("Client.listTopicSubscriptions.call")(function* (input) {
|
|
2730
|
-
const service = yield* Service;
|
|
2731
|
-
return yield* service.listTopicSubscriptions(input);
|
|
2732
|
-
});
|
|
2733
|
-
var listInboxMessages = Effect.fn("Client.listInboxMessages.call")(function* (input) {
|
|
2734
|
-
const service = yield* Service;
|
|
2735
|
-
return yield* service.listInboxMessages(input);
|
|
2736
|
-
});
|
|
2737
|
-
var inspectExecution = Effect.fn("Client.inspectExecution.call")(function* (executionId) {
|
|
2738
|
-
const service = yield* Service;
|
|
2739
|
-
return yield* service.inspectExecution(executionId);
|
|
2740
|
-
});
|
|
2741
|
-
var send = Effect.fn("Client.send.call")(function* (input) {
|
|
2742
|
-
const service = yield* Service;
|
|
2743
|
-
return yield* service.send(input);
|
|
2744
|
-
});
|
|
2745
|
-
var streamExecution = (input) => Stream.unwrap(Service.pipe(Effect.map((service) => service.streamExecution(input))));
|
|
2746
|
-
var followExecution = (input) => Stream.unwrap(Service.pipe(Effect.map((service) => service.followExecution(input))));
|
|
2747
|
-
var streamSession = (input) => Stream.unwrap(Service.pipe(Effect.map((service) => service.streamSession(input))));
|
|
2748
|
-
var watchExecutions = (input) => Stream.unwrap(Service.pipe(Effect.map((service) => service.watchExecutions(input))));
|
|
2749
|
-
var getPresence = Effect.fn("Client.getPresence.call")(function* (scope) {
|
|
2750
|
-
const service = yield* Service;
|
|
2751
|
-
return yield* service.getPresence(scope);
|
|
2752
|
-
});
|
|
2753
|
-
var watchPresence = (scope) => Stream.unwrap(Service.pipe(Effect.map((service) => service.watchPresence(scope))));
|
|
2754
|
-
var wake = Effect.fn("Client.wake.call")(function* (input) {
|
|
2755
|
-
const service = yield* Service;
|
|
2756
|
-
return yield* service.wake(input);
|
|
2757
|
-
});
|
|
2758
|
-
var listPendingApprovals = Effect.fn("Client.listPendingApprovals.call")(function* (input) {
|
|
2759
|
-
const service = yield* Service;
|
|
2760
|
-
return yield* service.listPendingApprovals(input);
|
|
2761
|
-
});
|
|
2762
|
-
var resolveToolApproval = Effect.fn("Client.resolveToolApproval.call")(function* (input) {
|
|
2763
|
-
const service = yield* Service;
|
|
2764
|
-
return yield* service.resolveToolApproval(input);
|
|
2765
|
-
});
|
|
2766
|
-
var resolvePermission = Effect.fn("Client.resolvePermission.call")(function* (input) {
|
|
2767
|
-
const service = yield* Service;
|
|
2768
|
-
return yield* service.resolvePermission(input);
|
|
2769
|
-
});
|
|
2770
|
-
var listPendingToolCalls = Effect.fn("Client.listPendingToolCalls.call")(function* (input) {
|
|
2771
|
-
const service = yield* Service;
|
|
2772
|
-
return yield* service.listPendingToolCalls(input);
|
|
2773
|
-
});
|
|
2774
|
-
var fulfillToolCall = Effect.fn("Client.fulfillToolCall.call")(function* (input) {
|
|
2775
|
-
const service = yield* Service;
|
|
2776
|
-
return yield* service.fulfillToolCall(input);
|
|
2777
|
-
});
|
|
2778
|
-
var claimToolWork = Effect.fn("Client.claimToolWork.call")(function* (input) {
|
|
2779
|
-
const service = yield* Service;
|
|
2780
|
-
return yield* service.claimToolWork(input);
|
|
2781
|
-
});
|
|
2782
|
-
var completeToolWork = Effect.fn("Client.completeToolWork.call")(function* (input) {
|
|
2783
|
-
const service = yield* Service;
|
|
2784
|
-
return yield* service.completeToolWork(input);
|
|
2785
|
-
});
|
|
2786
|
-
var releaseToolWork = Effect.fn("Client.releaseToolWork.call")(function* (input) {
|
|
2787
|
-
const service = yield* Service;
|
|
2788
|
-
return yield* service.releaseToolWork(input);
|
|
2789
|
-
});
|
|
2790
|
-
var listToolAttempts = Effect.fn("Client.listToolAttempts.call")(function* (input) {
|
|
2791
|
-
const service = yield* Service;
|
|
2792
|
-
return yield* service.listToolAttempts(input);
|
|
2793
|
-
});
|
|
2794
|
-
var submitInboundEnvelope = Effect.fn("Client.submitInboundEnvelope.call")(function* (input) {
|
|
2795
|
-
const service = yield* Service;
|
|
2796
|
-
return yield* service.submitInboundEnvelope(input);
|
|
2797
|
-
});
|
|
2798
|
-
var spawnChildRun = Effect.fn("Client.spawnChildRun.call")(function* (input) {
|
|
2799
|
-
const service = yield* Service;
|
|
2800
|
-
return yield* service.spawnChildRun(input);
|
|
2801
|
-
});
|
|
2802
|
-
var createChildFanOut = Effect.fn("Client.createChildFanOut.call")(function* (input) {
|
|
2803
|
-
const service = yield* Service;
|
|
2804
|
-
return yield* service.createChildFanOut(input);
|
|
2805
|
-
});
|
|
2806
|
-
var cancelChildFanOut = Effect.fn("Client.cancelChildFanOut.call")(function* (input) {
|
|
2807
|
-
const service = yield* Service;
|
|
2808
|
-
return yield* service.cancelChildFanOut(input);
|
|
2809
|
-
});
|
|
2810
|
-
var inspectChildFanOut = Effect.fn("Client.inspectChildFanOut.call")(function* (input) {
|
|
2811
|
-
const service = yield* Service;
|
|
2812
|
-
return yield* service.inspectChildFanOut(input);
|
|
2813
|
-
});
|
|
2814
|
-
var claimEnvelopeReady = Effect.fn("Client.claimEnvelopeReady.call")(function* (input) {
|
|
2815
|
-
const service = yield* Service;
|
|
2816
|
-
return yield* service.claimEnvelopeReady(input);
|
|
2817
|
-
});
|
|
2818
|
-
var ackEnvelopeReady = Effect.fn("Client.ackEnvelopeReady.call")(function* (input) {
|
|
2819
|
-
const service = yield* Service;
|
|
2820
|
-
return yield* service.ackEnvelopeReady(input);
|
|
2821
|
-
});
|
|
2822
|
-
var releaseEnvelopeReady = Effect.fn("Client.releaseEnvelopeReady.call")(function* (input) {
|
|
2823
|
-
const service = yield* Service;
|
|
2824
|
-
return yield* service.releaseEnvelopeReady(input);
|
|
2825
|
-
});
|
|
2826
|
-
var createSchedule = Effect.fn("Client.createSchedule.call")(function* (input) {
|
|
2827
|
-
const service = yield* Service;
|
|
2828
|
-
return yield* service.createSchedule(input);
|
|
2829
|
-
});
|
|
2830
|
-
var cancelSchedule = Effect.fn("Client.cancelSchedule.call")(function* (input) {
|
|
2831
|
-
const service = yield* Service;
|
|
2832
|
-
return yield* service.cancelSchedule(input);
|
|
2833
|
-
});
|
|
2834
|
-
var listSchedules = Effect.fn("Client.listSchedules.call")(function* (input) {
|
|
2835
|
-
const service = yield* Service;
|
|
2836
|
-
return yield* service.listSchedules(input);
|
|
2837
|
-
});
|
|
2838
|
-
var askEntity = Effect.fn("Client.askEntity.call")(function* (input) {
|
|
2839
|
-
const service = yield* Service;
|
|
2840
|
-
return yield* service.askEntity(input);
|
|
2841
|
-
});
|
|
2842
|
-
var awaitWait = Effect.fn("Client.awaitWait.call")(function* (input) {
|
|
2843
|
-
const service = yield* Service;
|
|
2844
|
-
return yield* service.awaitWait(input);
|
|
2845
|
-
});
|
|
2846
2483
|
|
|
2847
2484
|
// ../runtime/src/presence/presence-contract.ts
|
|
2848
|
-
import { Context as Context2, Schema as
|
|
2485
|
+
import { Context as Context2, Schema as Schema24 } from "effect";
|
|
2849
2486
|
|
|
2850
|
-
class PresenceError extends
|
|
2851
|
-
message:
|
|
2487
|
+
class PresenceError extends Schema24.TaggedErrorClass()("PresenceError", {
|
|
2488
|
+
message: Schema24.String
|
|
2852
2489
|
}) {
|
|
2853
2490
|
}
|
|
2854
2491
|
|
|
@@ -2856,4 +2493,4 @@ class Service2 extends Context2.Service()("@relayfx/runtime/presence/presence-co
|
|
|
2856
2493
|
}
|
|
2857
2494
|
var PresenceIdentity = Context2.Reference("@relayfx/runtime/PresenceIdentity", { defaultValue: () => ({}) });
|
|
2858
2495
|
|
|
2859
|
-
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 };
|