@semiont/make-meaning 0.5.27 → 0.5.29

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.
@@ -0,0 +1,2 @@
1
+
2
+ export { };
@@ -10130,11 +10130,12 @@ var Weaver = class _Weaver {
10130
10130
  for (const id of viewIds) {
10131
10131
  if (!graphIds.has(id)) return "annotation-set-mismatch";
10132
10132
  }
10133
+ const bodyKey = (a) => _Weaver.canonicalJson(a.body ?? []);
10133
10134
  const viewById = new Map(annotations.map((a) => [String(a.id), a]));
10134
10135
  for (const graphAnnotation of graphAnnotations) {
10135
10136
  const viewAnnotation = viewById.get(String(graphAnnotation.id));
10136
10137
  if (!viewAnnotation) continue;
10137
- if (_Weaver.canonicalJson(graphAnnotation.body) !== _Weaver.canonicalJson(viewAnnotation.body)) {
10138
+ if (bodyKey(graphAnnotation) !== bodyKey(viewAnnotation)) {
10138
10139
  return "annotation-body-mismatch";
10139
10140
  }
10140
10141
  }
@@ -10322,12 +10323,17 @@ var Weaver = class _Weaver {
10322
10323
  representations: [{
10323
10324
  mediaType: event.payload.format,
10324
10325
  checksum: event.payload.contentChecksum,
10325
- rel: "original"
10326
+ rel: "original",
10327
+ // The URI lives on the REPRESENTATION (STORAGE-URI-ONE-HOME D1).
10328
+ // `ResourceDescriptor` is `additionalProperties: true`, so writing it
10329
+ // at the top level typechecks and then reads back as undefined
10330
+ // through `getStorageUri` — which is how the graph projection silently
10331
+ // lost all 57 of its URIs until the P2 live gate caught it.
10332
+ ...event.payload.storageUri ? { storageUri: event.payload.storageUri } : {}
10326
10333
  }],
10327
10334
  archived: false,
10328
10335
  dateCreated: (/* @__PURE__ */ new Date()).toISOString(),
10329
- wasAttributedTo: didToAgent(event.userId),
10330
- ...event.payload.storageUri ? { storageUri: event.payload.storageUri } : {}
10336
+ wasAttributedTo: didToAgent(event.userId)
10331
10337
  };
10332
10338
  }
10333
10339
  /**
@@ -10617,11 +10623,11 @@ var envConfig = createTomlConfigLoader(
10617
10623
  configPath,
10618
10624
  process.env
10619
10625
  )(null);
10620
- var backendPublicURL = envConfig.services?.backend?.publicURL;
10621
- if (!backendPublicURL) {
10622
- throw new Error("services.backend.publicURL is required in ~/.semiontconfig");
10626
+ var gatewayPublicURL = envConfig.services?.gateway?.publicURL;
10627
+ if (!gatewayPublicURL) {
10628
+ throw new Error("services.gateway.publicURL is required in ~/.semiontconfig");
10623
10629
  }
10624
- var baseUrl = backendPublicURL;
10630
+ var baseUrl = gatewayPublicURL;
10625
10631
  var maybeGraphConfig = envConfig.services?.graph;
10626
10632
  if (!maybeGraphConfig?.type) {
10627
10633
  throw new Error("services.graph.type is required in ~/.semiontconfig");
@@ -10660,7 +10666,7 @@ async function authenticate() {
10660
10666
  isTransientFetchError,
10661
10667
  STARTUP_FETCH_RETRY,
10662
10668
  ({ attempt, attempts, delayMs, error }) => {
10663
- logger.warn("Backend unreachable, retrying authentication", {
10669
+ logger.warn("Gateway unreachable, retrying authentication", {
10664
10670
  attempt,
10665
10671
  attempts,
10666
10672
  retryInMs: delayMs,