@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/mysql.js
CHANGED
|
@@ -2,14 +2,14 @@
|
|
|
2
2
|
import {
|
|
3
3
|
database,
|
|
4
4
|
normalizeMigrationCause
|
|
5
|
-
} from "./index-
|
|
5
|
+
} from "./index-cs3be24t.js";
|
|
6
6
|
import {
|
|
7
7
|
MigratorError,
|
|
8
8
|
RuntimeMigrationError,
|
|
9
9
|
SqlFailure
|
|
10
|
-
} from "./index-
|
|
11
|
-
import"./index-
|
|
12
|
-
import"./index-
|
|
10
|
+
} from "./index-p43mg4kt.js";
|
|
11
|
+
import"./index-x32kbvxv.js";
|
|
12
|
+
import"./index-3w6txjtg.js";
|
|
13
13
|
import"./index-nb39b5ae.js";
|
|
14
14
|
|
|
15
15
|
// src/mysql.ts
|
|
@@ -72,6 +72,17 @@ var _0010_workflow_runtime_default = `CREATE TABLE IF NOT EXISTS relay_workflow_
|
|
|
72
72
|
CREATE TABLE IF NOT EXISTS relay_workflow_lifecycle_events (tenant_id VARCHAR(255) NOT NULL, execution_id VARCHAR(255) NOT NULL, sequence INT NOT NULL, event_type VARCHAR(64) NOT NULL, operation_id VARCHAR(255), data_json JSON, created_at DATETIME(3) NOT NULL, PRIMARY KEY (tenant_id, execution_id, sequence));
|
|
73
73
|
`;
|
|
74
74
|
|
|
75
|
+
// ../../migrations/mysql/0011_execution_scoped_tool_calls.sql
|
|
76
|
+
var _0011_execution_scoped_tool_calls_default = "ALTER TABLE `relay_tool_results` ADD COLUMN `execution_id` VARCHAR(191) NULL;\n--> statement-breakpoint\nUPDATE `relay_tool_results` result JOIN `relay_tool_calls` tool_call\nON result.`tenant_id` = tool_call.`tenant_id` AND result.`tool_call_id` = tool_call.`id`\nSET result.`execution_id` = tool_call.`execution_id`;\n--> statement-breakpoint\nALTER TABLE `relay_tool_results` MODIFY COLUMN `execution_id` VARCHAR(191) NOT NULL;\n--> statement-breakpoint\nALTER TABLE `relay_tool_attempts` ADD COLUMN `execution_id` VARCHAR(191);\n--> statement-breakpoint\nUPDATE `relay_tool_attempts` attempt JOIN `relay_tool_calls` tool_call\nON attempt.`tenant_id` = tool_call.`tenant_id` AND attempt.`tool_call_id` = tool_call.`id`\nSET attempt.`execution_id` = tool_call.`execution_id`;\n--> statement-breakpoint\nALTER TABLE `relay_tool_attempts` MODIFY COLUMN `execution_id` VARCHAR(191) NOT NULL;\n--> statement-breakpoint\nALTER TABLE `relay_tool_calls` DROP PRIMARY KEY, ADD CONSTRAINT `pk_relay_tool_calls` PRIMARY KEY (`tenant_id`, `execution_id`, `id`);\n--> statement-breakpoint\nALTER TABLE `relay_tool_results` DROP PRIMARY KEY, ADD CONSTRAINT `pk_relay_tool_results` PRIMARY KEY (`tenant_id`, `execution_id`, `tool_call_id`);\n--> statement-breakpoint\nDROP INDEX `uq_relay_tool_attempts_number` ON `relay_tool_attempts`;\n--> statement-breakpoint\nDROP INDEX `idx_relay_tool_attempts_call` ON `relay_tool_attempts`;\n--> statement-breakpoint\nALTER TABLE `relay_tool_attempts` DROP PRIMARY KEY, ADD CONSTRAINT `pk_relay_tool_attempts` PRIMARY KEY (`tenant_id`, `execution_id`, `tool_call_id`, `id`);\n--> statement-breakpoint\nCREATE UNIQUE INDEX `uq_relay_tool_attempts_number` ON `relay_tool_attempts` (`tenant_id`, `execution_id`, `tool_call_id`, `attempt_number`);\n--> statement-breakpoint\nCREATE INDEX `idx_relay_tool_attempts_call` ON `relay_tool_attempts` (`tenant_id`, `execution_id`, `tool_call_id`, `attempt_number`);\n";
|
|
77
|
+
|
|
78
|
+
// ../../migrations/mysql/0012_rename_entity_to_resident.sql
|
|
79
|
+
var _0012_rename_entity_to_resident_default = `RENAME TABLE relay_entity_kinds TO relay_resident_kinds;
|
|
80
|
+
--> statement-breakpoint
|
|
81
|
+
RENAME TABLE relay_entity_instances TO relay_resident_instances;
|
|
82
|
+
--> statement-breakpoint
|
|
83
|
+
ALTER TABLE relay_resident_instances RENAME INDEX idx_relay_entity_instances_kind_status TO idx_relay_resident_instances_kind_status;
|
|
84
|
+
`;
|
|
85
|
+
|
|
75
86
|
// src/mysql-migrations.ts
|
|
76
87
|
var migrations = [
|
|
77
88
|
[1, "baseline", _0001_baseline_default],
|
|
@@ -83,7 +94,9 @@ var migrations = [
|
|
|
83
94
|
[7, "topic_subscriptions", _0007_topic_subscriptions_default],
|
|
84
95
|
[8, "child_fan_out", _0008_child_fan_out_default],
|
|
85
96
|
[9, "workflow_definitions", _0009_workflow_definitions_default],
|
|
86
|
-
[10, "workflow_runtime", _0010_workflow_runtime_default]
|
|
97
|
+
[10, "workflow_runtime", _0010_workflow_runtime_default],
|
|
98
|
+
[11, "execution_scoped_tool_calls", _0011_execution_scoped_tool_calls_default],
|
|
99
|
+
[12, "rename_entity_to_resident", _0012_rename_entity_to_resident_default]
|
|
87
100
|
];
|
|
88
101
|
|
|
89
102
|
// src/mysql.ts
|