@relayfx/sdk 0.7.1 → 0.7.2

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.
@@ -8,7 +8,7 @@ import {
8
8
  SqlFailure,
9
9
  make,
10
10
  normalizeAcquisitionCause
11
- } from "./index-s3mmg704.js";
11
+ } from "./index-sp77tb7c.js";
12
12
 
13
13
  // src/migration-errors.ts
14
14
  import { Cause, Effect, Function } from "effect";
@@ -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) {
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-s3mmg704.js";
17
+ } from "./index-sp77tb7c.js";
18
18
  import {
19
19
  exports_context_overflow,
20
20
  exports_model_registry
package/dist/mysql.js CHANGED
@@ -2,12 +2,12 @@
2
2
  import {
3
3
  database,
4
4
  normalizeMigrationCause
5
- } from "./index-rppc919a.js";
5
+ } from "./index-75gb7ftn.js";
6
6
  import {
7
7
  MigratorError,
8
8
  RuntimeMigrationError,
9
9
  SqlFailure
10
- } from "./index-s3mmg704.js";
10
+ } from "./index-sp77tb7c.js";
11
11
  import"./index-qa93yf6j.js";
12
12
  import"./index-q7xzf506.js";
13
13
  import"./index-nb39b5ae.js";
package/dist/postgres.js CHANGED
@@ -2,7 +2,7 @@
2
2
  import {
3
3
  database,
4
4
  normalizeMigrationCause
5
- } from "./index-rppc919a.js";
5
+ } from "./index-75gb7ftn.js";
6
6
  import {
7
7
  Dialect,
8
8
  RuntimeMigrationError,
@@ -14,7 +14,7 @@ import {
14
14
  fromDbTimestamp,
15
15
  fromNullableDbTimestamp,
16
16
  timestampParam
17
- } from "./index-s3mmg704.js";
17
+ } from "./index-sp77tb7c.js";
18
18
  import"./index-qa93yf6j.js";
19
19
  import {
20
20
  exports_ids_schema
package/dist/sqlite.js CHANGED
@@ -2,7 +2,7 @@
2
2
  import {
3
3
  database,
4
4
  normalizeMigrationCause
5
- } from "./index-rppc919a.js";
5
+ } from "./index-75gb7ftn.js";
6
6
  import {
7
7
  DatabaseAlreadyOwned,
8
8
  RuntimeConfigurationError,
@@ -12,7 +12,7 @@ import {
12
12
  make,
13
13
  makeDatabaseIdentity,
14
14
  runtimeLayer
15
- } from "./index-s3mmg704.js";
15
+ } from "./index-sp77tb7c.js";
16
16
  import"./index-qa93yf6j.js";
17
17
  import"./index-q7xzf506.js";
18
18
  import"./index-nb39b5ae.js";
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.1",
4
+ "version": "0.7.2",
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.1",
78
+ "@relayfx/schema": "0.7.2",
79
79
  "@relayfx/store-sql": "0.0.0",
80
80
  "@types/bun": "1.3.14",
81
81
  "typescript": "7.0.2",