@relayfx/sdk 0.7.1 → 0.7.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/http-server.js +1 -1
- package/dist/{index-s3mmg704.js → index-5y7758mg.js} +8 -3
- package/dist/{index-rppc919a.js → index-pa991hq0.js} +1 -1
- package/dist/{index-q7xzf506.js → index-syx9q5v3.js} +4 -0
- package/dist/index.js +2 -2
- package/dist/mysql.js +3 -3
- package/dist/postgres.js +3 -3
- package/dist/sqlite.js +3 -3
- package/package.json +2 -2
package/dist/http-server.js
CHANGED
|
@@ -47,7 +47,7 @@ import {
|
|
|
47
47
|
exports_workflow_schema,
|
|
48
48
|
exports_workspace_schema,
|
|
49
49
|
followExecutionFrom
|
|
50
|
-
} from "./index-
|
|
50
|
+
} from "./index-syx9q5v3.js";
|
|
51
51
|
import {
|
|
52
52
|
__export
|
|
53
53
|
} from "./index-nb39b5ae.js";
|
|
@@ -6902,6 +6902,11 @@ var makeSessionRepository = (errors) => Effect40.gen(function* () {
|
|
|
6902
6902
|
createdAt: input.createdAt
|
|
6903
6903
|
};
|
|
6904
6904
|
const desired = appendToRecord2(appendInput);
|
|
6905
|
+
const withRequestedTelemetry = (record2) => ({
|
|
6906
|
+
...record2,
|
|
6907
|
+
telemetry: input.telemetry,
|
|
6908
|
+
...input.compactionCommit === undefined ? {} : { compactionCommit: input.compactionCommit }
|
|
6909
|
+
});
|
|
6905
6910
|
if (existing !== undefined) {
|
|
6906
6911
|
if (!sameEntry(existing, desired) || existing._tag !== "Compaction" || existing.version !== 2) {
|
|
6907
6912
|
return yield* conflict4("checkpoint-id-reused", `Session checkpoint id ${input.id} was reused with different content`);
|
|
@@ -6912,7 +6917,7 @@ var makeSessionRepository = (errors) => Effect40.gen(function* () {
|
|
|
6912
6917
|
}
|
|
6913
6918
|
return {
|
|
6914
6919
|
_tag: "AlreadyPresent",
|
|
6915
|
-
checkpoint: existing,
|
|
6920
|
+
checkpoint: withRequestedTelemetry(existing),
|
|
6916
6921
|
leafId: currentLeaf(session) ?? existing.id
|
|
6917
6922
|
};
|
|
6918
6923
|
}
|
|
@@ -6925,7 +6930,7 @@ var makeSessionRepository = (errors) => Effect40.gen(function* () {
|
|
|
6925
6930
|
return yield* SessionRepositoryError.make({ message: "Session checkpoint insert returned no row" });
|
|
6926
6931
|
}
|
|
6927
6932
|
yield* updateLeaf(tenantId, { sessionId: input.sessionId, id: input.id, updatedAt: input.createdAt });
|
|
6928
|
-
return { _tag: "Appended", checkpoint: inserted, leafId: inserted.id };
|
|
6933
|
+
return { _tag: "Appended", checkpoint: withRequestedTelemetry(inserted), leafId: inserted.id };
|
|
6929
6934
|
})));
|
|
6930
6935
|
});
|
|
6931
6936
|
const countEntries = Effect40.fn("SessionRepository.countEntries")(function* (sessionId) {
|
|
@@ -131,6 +131,10 @@ var NonEmptyString = Schema2.String.check(Schema2.isMinLength(1)).annotate({
|
|
|
131
131
|
identifier: "Relay.NonEmptyString"
|
|
132
132
|
});
|
|
133
133
|
var canonicalValue = (value) => {
|
|
134
|
+
if (Object.prototype.toString.call(value) === "[object URL]")
|
|
135
|
+
return String(value);
|
|
136
|
+
if (value instanceof Uint8Array)
|
|
137
|
+
return Array.from(value);
|
|
134
138
|
if (Array.isArray(value))
|
|
135
139
|
return value.map(canonicalValue);
|
|
136
140
|
if (value !== null && typeof value === "object") {
|
package/dist/index.js
CHANGED
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
exports_tool_runtime,
|
|
15
15
|
exports_workflow_definition_host,
|
|
16
16
|
makeDatabaseIdentity
|
|
17
|
-
} from "./index-
|
|
17
|
+
} from "./index-5y7758mg.js";
|
|
18
18
|
import {
|
|
19
19
|
exports_context_overflow,
|
|
20
20
|
exports_model_registry
|
|
@@ -47,7 +47,7 @@ import {
|
|
|
47
47
|
exports_wait_schema,
|
|
48
48
|
exports_workflow_schema,
|
|
49
49
|
followExecutionFrom
|
|
50
|
-
} from "./index-
|
|
50
|
+
} from "./index-syx9q5v3.js";
|
|
51
51
|
import {
|
|
52
52
|
__export
|
|
53
53
|
} from "./index-nb39b5ae.js";
|
package/dist/mysql.js
CHANGED
|
@@ -2,14 +2,14 @@
|
|
|
2
2
|
import {
|
|
3
3
|
database,
|
|
4
4
|
normalizeMigrationCause
|
|
5
|
-
} from "./index-
|
|
5
|
+
} from "./index-pa991hq0.js";
|
|
6
6
|
import {
|
|
7
7
|
MigratorError,
|
|
8
8
|
RuntimeMigrationError,
|
|
9
9
|
SqlFailure
|
|
10
|
-
} from "./index-
|
|
10
|
+
} from "./index-5y7758mg.js";
|
|
11
11
|
import"./index-qa93yf6j.js";
|
|
12
|
-
import"./index-
|
|
12
|
+
import"./index-syx9q5v3.js";
|
|
13
13
|
import"./index-nb39b5ae.js";
|
|
14
14
|
|
|
15
15
|
// src/mysql.ts
|
package/dist/postgres.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import {
|
|
3
3
|
database,
|
|
4
4
|
normalizeMigrationCause
|
|
5
|
-
} from "./index-
|
|
5
|
+
} from "./index-pa991hq0.js";
|
|
6
6
|
import {
|
|
7
7
|
Dialect,
|
|
8
8
|
RuntimeMigrationError,
|
|
@@ -14,11 +14,11 @@ import {
|
|
|
14
14
|
fromDbTimestamp,
|
|
15
15
|
fromNullableDbTimestamp,
|
|
16
16
|
timestampParam
|
|
17
|
-
} from "./index-
|
|
17
|
+
} from "./index-5y7758mg.js";
|
|
18
18
|
import"./index-qa93yf6j.js";
|
|
19
19
|
import {
|
|
20
20
|
exports_ids_schema
|
|
21
|
-
} from "./index-
|
|
21
|
+
} from "./index-syx9q5v3.js";
|
|
22
22
|
import {
|
|
23
23
|
__export
|
|
24
24
|
} from "./index-nb39b5ae.js";
|
package/dist/sqlite.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import {
|
|
3
3
|
database,
|
|
4
4
|
normalizeMigrationCause
|
|
5
|
-
} from "./index-
|
|
5
|
+
} from "./index-pa991hq0.js";
|
|
6
6
|
import {
|
|
7
7
|
DatabaseAlreadyOwned,
|
|
8
8
|
RuntimeConfigurationError,
|
|
@@ -12,9 +12,9 @@ import {
|
|
|
12
12
|
make,
|
|
13
13
|
makeDatabaseIdentity,
|
|
14
14
|
runtimeLayer
|
|
15
|
-
} from "./index-
|
|
15
|
+
} from "./index-5y7758mg.js";
|
|
16
16
|
import"./index-qa93yf6j.js";
|
|
17
|
-
import"./index-
|
|
17
|
+
import"./index-syx9q5v3.js";
|
|
18
18
|
import"./index-nb39b5ae.js";
|
|
19
19
|
|
|
20
20
|
// src/sqlite-runtime.ts
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json.schemastore.org/package.json",
|
|
3
3
|
"name": "@relayfx/sdk",
|
|
4
|
-
"version": "0.7.
|
|
4
|
+
"version": "0.7.3",
|
|
5
5
|
"description": "Effect-native durable execution SDK for addressable agents and tools",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"exports": {
|
|
@@ -75,7 +75,7 @@
|
|
|
75
75
|
"@effect/vitest": "4.0.0-beta.98",
|
|
76
76
|
"@relayfx/ai": "0.0.0",
|
|
77
77
|
"@relayfx/runtime": "0.0.0",
|
|
78
|
-
"@relayfx/schema": "0.7.
|
|
78
|
+
"@relayfx/schema": "0.7.3",
|
|
79
79
|
"@relayfx/store-sql": "0.0.0",
|
|
80
80
|
"@types/bun": "1.3.14",
|
|
81
81
|
"typescript": "7.0.2",
|