@relayfx/sdk 0.3.1 → 0.3.3
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 +67 -37
- package/dist/http-server.js +22 -0
- package/dist/index-25gwk9tj.js +3423 -0
- package/dist/{index-3sv8mmz5.js → index-49fm2rdv.js} +23 -30
- package/dist/{index-c2skef55.js → index-8pa5e2yn.js} +16521 -18783
- package/dist/index-cphmds30.js +2852 -0
- package/dist/index-nb39b5ae.js +17 -0
- package/dist/index.js +315 -844
- package/dist/mysql.js +18 -18
- package/dist/postgres.js +724 -24
- package/dist/sqlite.js +57 -168
- package/dist/types/ai/index.d.ts +2 -1
- package/dist/types/ai/language-model/language-model-registration.d.ts +9 -6
- package/dist/types/relay/adapter-outbox.d.ts +1 -1
- package/dist/types/relay/ai.d.ts +34 -2
- package/dist/types/relay/child-fan-out-admission.d.ts +5 -0
- package/dist/types/relay/child-fan-out-host.d.ts +73 -0
- package/dist/types/relay/client-public.d.ts +481 -0
- package/dist/types/relay/client.d.ts +1 -478
- package/dist/types/relay/database-identity.d.ts +4 -0
- package/dist/types/relay/http-server.d.ts +95 -0
- package/dist/types/relay/index.d.ts +37 -14
- package/dist/types/relay/internal-client.d.ts +22 -0
- package/dist/types/relay/language-model-registration.d.ts +13 -0
- package/dist/types/relay/mysql.d.ts +6 -7
- package/dist/types/relay/operation.d.ts +4 -4
- package/dist/types/relay/postgres.d.ts +10 -7
- package/dist/types/relay/runtime-acquisition-error.d.ts +61 -0
- package/dist/types/relay/runtime-database-adapter.d.ts +8 -5
- package/dist/types/relay/runtime-database-owner.d.ts +13 -0
- package/dist/types/relay/runtime-database-public.d.ts +10 -0
- package/dist/types/relay/runtime.d.ts +77 -72
- package/dist/types/relay/sqlite-runtime.d.ts +5 -18
- package/dist/types/relay/sqlite.d.ts +4 -31
- package/dist/types/relay/state-version-conflict.d.ts +12 -0
- package/dist/types/relay/tool-runtime.d.ts +44 -0
- package/dist/types/relay/tool-worker.d.ts +2 -2
- package/dist/types/relay/workflow-definition-host.d.ts +32 -0
- package/dist/types/runtime/agent/agent-loop-error.d.ts +21 -0
- package/dist/types/runtime/agent/agent-loop-service.d.ts +6 -16
- package/dist/types/runtime/agent/prompt-assembler-service.d.ts +3 -3
- package/dist/types/runtime/cluster/execution-entity.d.ts +3 -3
- package/dist/types/runtime/execution/execution-service.d.ts +3 -0
- package/dist/types/runtime/index.d.ts +1 -0
- package/dist/types/runtime/model/language-model-service.d.ts +5 -12
- package/dist/types/runtime/model/model-hub.d.ts +27 -0
- package/dist/types/runtime/presence/presence-contract.d.ts +24 -0
- package/dist/types/runtime/presence/presence-service.d.ts +6 -24
- package/dist/types/runtime/runner/runner-runtime-service.d.ts +29 -13
- package/dist/types/runtime/session/session-store-service.d.ts +4 -1
- package/dist/types/runtime/tool/tool-runtime-contract.d.ts +121 -0
- package/dist/types/runtime/tool/tool-runtime-service.d.ts +6 -120
- package/dist/types/runtime/workflow/execution-workflow.d.ts +22 -24
- package/dist/types/schema/agent-schema.d.ts +4 -1
- package/dist/types/schema/execution-schema.d.ts +13 -2
- package/dist/types/schema/index.d.ts +1 -0
- package/dist/types/schema/pagination-schema.d.ts +17 -0
- package/dist/types/schema/shared-schema.d.ts +4 -0
- package/dist/types/store-sql/schema/relay-schema.d.ts +12 -12
- package/dist/types/store-sql/session/session-repository.d.ts +54 -11
- package/package.json +17 -14
- package/dist/index-9k4k3wq1.js +0 -2860
- package/dist/index-d3dme13d.js +0 -141
- package/dist/types/relay/database.d.ts +0 -16
package/dist/mysql.js
CHANGED
|
@@ -1,18 +1,19 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
|
-
|
|
4
|
-
normalizeMigrationCause
|
|
5
|
-
|
|
6
|
-
} from "./index-3sv8mmz5.js";
|
|
3
|
+
database,
|
|
4
|
+
normalizeMigrationCause
|
|
5
|
+
} from "./index-49fm2rdv.js";
|
|
7
6
|
import {
|
|
8
7
|
MigratorError,
|
|
9
8
|
RuntimeMigrationError,
|
|
10
9
|
SqlFailure
|
|
11
|
-
} from "./index-
|
|
12
|
-
import"./index-
|
|
10
|
+
} from "./index-8pa5e2yn.js";
|
|
11
|
+
import"./index-25gwk9tj.js";
|
|
12
|
+
import"./index-cphmds30.js";
|
|
13
|
+
import"./index-nb39b5ae.js";
|
|
13
14
|
|
|
14
15
|
// src/mysql.ts
|
|
15
|
-
import { Effect
|
|
16
|
+
import { Effect } from "effect";
|
|
16
17
|
import { SqlClient } from "effect/unstable/sql/SqlClient";
|
|
17
18
|
|
|
18
19
|
// ../../migrations/mysql/0001_baseline.sql
|
|
@@ -86,13 +87,6 @@ var migrations = [
|
|
|
86
87
|
];
|
|
87
88
|
|
|
88
89
|
// src/mysql.ts
|
|
89
|
-
var runtimeDatabaseLayer2 = (options) => runtimeDatabaseLayer({
|
|
90
|
-
...options,
|
|
91
|
-
dialect: "mysql",
|
|
92
|
-
ownership: "shared-multi-node",
|
|
93
|
-
schemaHead: String(migrations.at(-1)?.[0]),
|
|
94
|
-
schema: verifySchema
|
|
95
|
-
});
|
|
96
90
|
var verifySchema = Effect.gen(function* () {
|
|
97
91
|
const sql = yield* SqlClient;
|
|
98
92
|
const rows = yield* sql`SELECT migration_id, name FROM relay_migrations ORDER BY migration_id`;
|
|
@@ -128,10 +122,16 @@ var runMigrations = Effect.gen(function* () {
|
|
|
128
122
|
yield* sql`INSERT INTO relay_migrations (migration_id, name) VALUES (${id}, ${name})`;
|
|
129
123
|
}
|
|
130
124
|
});
|
|
131
|
-
var
|
|
132
|
-
|
|
125
|
+
var database2 = (options) => database({
|
|
126
|
+
...options,
|
|
127
|
+
dialect: "mysql",
|
|
128
|
+
ownership: "shared-multi-node",
|
|
129
|
+
schemaHead: String(migrations.at(-1)?.[0]),
|
|
130
|
+
acquire: verifySchema,
|
|
131
|
+
verify: verifySchema,
|
|
132
|
+
migrate: normalizeMigrationCause(runMigrations, "mysql", "apply").pipe(Effect.andThen(verifySchema))
|
|
133
|
+
});
|
|
134
|
+
var MySQL = { database: database2 };
|
|
133
135
|
export {
|
|
134
|
-
runtimeDatabaseLayer2 as runtimeDatabaseLayer,
|
|
135
|
-
migrate,
|
|
136
136
|
MySQL
|
|
137
137
|
};
|