@abloatai/humans 0.49.0 → 0.50.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.
@@ -30,6 +30,7 @@ import { createModelProxy } from './createModelProxy.js';
30
30
  import { assertWriteOptions } from '@abloatai/transaction/resources/writeOptionsSchema';
31
31
  import { modelReadResponseSchema, commitRecordSchema, commitRecordListSchema, commitRecordWhereSchema, } from '@abloatai/transaction/wire';
32
32
  import { translateHttpError } from '@abloatai/transaction/errors';
33
+ import { kReadEvidence } from '@abloatai/transaction/internal/read-set';
33
34
  export function buildReactiveEngine(inputs) {
34
35
  const { options, internalOptions, url, logger, configuredApiKey, configuredAuthToken, credentialResolver, authCredentials, transport, participantId, kind, presence, cluster, createSibling, } = inputs;
35
36
  const schema = options.schema;
@@ -773,6 +774,10 @@ export function buildReactiveEngine(inputs) {
773
774
  });
774
775
  },
775
776
  };
777
+ Object.defineProperty(engine, kReadEvidence, {
778
+ value: { context: cluster.readSetContext, client: syncClient },
779
+ enumerable: false,
780
+ });
776
781
  // A model the schema projection left out answers with an error naming the
777
782
  // model and the fix, not `undefined`. An app can compile against the full
778
783
  // source schema while running a projection, so the type system never sees
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abloatai/humans",
3
- "version": "0.49.0",
3
+ "version": "0.50.0",
4
4
  "description": "The optional human-facing local-state package for Ablo: presence, live queries, and React bindings.",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",
@@ -84,7 +84,7 @@
84
84
  "directory": "packages/humans"
85
85
  },
86
86
  "dependencies": {
87
- "@abloatai/transaction": "^0.49.0",
87
+ "@abloatai/transaction": "^0.50.0",
88
88
  "mobx": "^6.13.7",
89
89
  "uuid": "^11.1.0",
90
90
  "zod": "^4.4.3"
@@ -77,6 +77,7 @@ import {
77
77
  commitRecordWhereSchema,
78
78
  } from '@abloatai/transaction/wire';
79
79
  import { translateHttpError } from '@abloatai/transaction/errors';
80
+ import { kReadEvidence } from '@abloatai/transaction/internal/read-set';
80
81
 
81
82
  /**
82
83
  * What the reactive build is fed: the factory's pass over the options bag
@@ -1026,6 +1027,11 @@ export function buildReactiveEngine<const S extends SchemaRecord>(
1026
1027
  },
1027
1028
  } as Ablo<S>;
1028
1029
 
1030
+ Object.defineProperty(engine, kReadEvidence, {
1031
+ value: { context: cluster.readSetContext, client: syncClient as object },
1032
+ enumerable: false,
1033
+ });
1034
+
1029
1035
  // A model the schema projection left out answers with an error naming the
1030
1036
  // model and the fix, not `undefined`. An app can compile against the full
1031
1037
  // source schema while running a projection, so the type system never sees