@semiont/make-meaning 0.5.28 → 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.
- package/README.md +7 -5
- package/dist/archivist-main.d.ts +2 -0
- package/dist/archivist-main.js +12568 -0
- package/dist/archivist-main.js.map +1 -0
- package/dist/index.d.ts +649 -460
- package/dist/index.js +580 -1060
- package/dist/index.js.map +1 -1
- package/dist/librarian-main.d.ts +2 -0
- package/dist/librarian-main.js +11449 -0
- package/dist/librarian-main.js.map +1 -0
- package/dist/smelter-main.js +21 -15
- package/dist/smelter-main.js.map +1 -1
- package/dist/weaver-main.d.ts +2 -0
- package/dist/weaver-main.js +13 -8
- package/dist/weaver-main.js.map +1 -1
- package/package.json +27 -16
package/dist/weaver-main.js
CHANGED
|
@@ -10323,12 +10323,17 @@ var Weaver = class _Weaver {
|
|
|
10323
10323
|
representations: [{
|
|
10324
10324
|
mediaType: event.payload.format,
|
|
10325
10325
|
checksum: event.payload.contentChecksum,
|
|
10326
|
-
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 } : {}
|
|
10327
10333
|
}],
|
|
10328
10334
|
archived: false,
|
|
10329
10335
|
dateCreated: (/* @__PURE__ */ new Date()).toISOString(),
|
|
10330
|
-
wasAttributedTo: didToAgent(event.userId)
|
|
10331
|
-
...event.payload.storageUri ? { storageUri: event.payload.storageUri } : {}
|
|
10336
|
+
wasAttributedTo: didToAgent(event.userId)
|
|
10332
10337
|
};
|
|
10333
10338
|
}
|
|
10334
10339
|
/**
|
|
@@ -10618,11 +10623,11 @@ var envConfig = createTomlConfigLoader(
|
|
|
10618
10623
|
configPath,
|
|
10619
10624
|
process.env
|
|
10620
10625
|
)(null);
|
|
10621
|
-
var
|
|
10622
|
-
if (!
|
|
10623
|
-
throw new Error("services.
|
|
10626
|
+
var gatewayPublicURL = envConfig.services?.gateway?.publicURL;
|
|
10627
|
+
if (!gatewayPublicURL) {
|
|
10628
|
+
throw new Error("services.gateway.publicURL is required in ~/.semiontconfig");
|
|
10624
10629
|
}
|
|
10625
|
-
var baseUrl =
|
|
10630
|
+
var baseUrl = gatewayPublicURL;
|
|
10626
10631
|
var maybeGraphConfig = envConfig.services?.graph;
|
|
10627
10632
|
if (!maybeGraphConfig?.type) {
|
|
10628
10633
|
throw new Error("services.graph.type is required in ~/.semiontconfig");
|
|
@@ -10661,7 +10666,7 @@ async function authenticate() {
|
|
|
10661
10666
|
isTransientFetchError,
|
|
10662
10667
|
STARTUP_FETCH_RETRY,
|
|
10663
10668
|
({ attempt, attempts, delayMs, error }) => {
|
|
10664
|
-
logger.warn("
|
|
10669
|
+
logger.warn("Gateway unreachable, retrying authentication", {
|
|
10665
10670
|
attempt,
|
|
10666
10671
|
attempts,
|
|
10667
10672
|
retryInMs: delayMs,
|