@semiont/gateway 0.5.32 → 0.5.34
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/index.js +15 -3
- package/dist/index.js.map +1 -1
- package/dist/openapi.json +77 -10
- package/package.json +5 -5
package/dist/index.js
CHANGED
|
@@ -10346,7 +10346,7 @@ healthRouter.get("/api/health", async (c) => {
|
|
|
10346
10346
|
const response = {
|
|
10347
10347
|
status: "operational",
|
|
10348
10348
|
message: "Semiont API is running",
|
|
10349
|
-
version: "0.5.
|
|
10349
|
+
version: "0.5.34",
|
|
10350
10350
|
timestamp: (/* @__PURE__ */ new Date()).toISOString(),
|
|
10351
10351
|
database: dbStatus ? "connected" : "disconnected",
|
|
10352
10352
|
environment: nodeEnv
|
|
@@ -11100,7 +11100,7 @@ statusRouter.get("/api/status", async (c) => {
|
|
|
11100
11100
|
const did = kbDid(siteDomain);
|
|
11101
11101
|
const response = {
|
|
11102
11102
|
status: "operational",
|
|
11103
|
-
version: "0.5.
|
|
11103
|
+
version: "0.5.34",
|
|
11104
11104
|
features: {
|
|
11105
11105
|
semanticContent: "planned",
|
|
11106
11106
|
collaboration: "planned",
|
|
@@ -12022,6 +12022,16 @@ function createBusRouter(authMiddleware2) {
|
|
|
12022
12022
|
const { _userId: _injected, ...echo } = payload;
|
|
12023
12023
|
const failure = {
|
|
12024
12024
|
...echo,
|
|
12025
|
+
// The machine-readable class, so a caller can BRANCH on this
|
|
12026
|
+
// rather than parse the sentence. It is the one failure the
|
|
12027
|
+
// gateway synthesizes that is transient by nature — the peer is
|
|
12028
|
+
// usually seconds from connecting — and the weaver's boot passes
|
|
12029
|
+
// gave up on it for the life of the process because they could
|
|
12030
|
+
// not tell it apart from a refusal (2026-09-09: empty graph
|
|
12031
|
+
// behind a healthy /health). `busRequest` maps it to
|
|
12032
|
+
// `bus.peer-unavailable`; `isPeerUnavailable` is what retries on
|
|
12033
|
+
// it.
|
|
12034
|
+
code: "peer-unavailable",
|
|
12025
12035
|
message: `No subscriber for ${channel}: the service that answers it is not connected`
|
|
12026
12036
|
};
|
|
12027
12037
|
recordUnanswerableRequest(channel);
|
|
@@ -12246,7 +12256,7 @@ app.get("/api/openapi.json", (c) => {
|
|
|
12246
12256
|
const openApiPath = fs.existsSync(distPath) ? distPath : path.join(__dirname$1, "../../../specs/openapi.json");
|
|
12247
12257
|
const openApiContent = fs.readFileSync(openApiPath, "utf-8");
|
|
12248
12258
|
const openApiSpec = JSON.parse(openApiContent);
|
|
12249
|
-
openApiSpec.info = { ...openApiSpec.info, version: "0.5.
|
|
12259
|
+
openApiSpec.info = { ...openApiSpec.info, version: "0.5.34" };
|
|
12250
12260
|
const port2 = gatewayService.port || 4e3;
|
|
12251
12261
|
const apiUrl = gatewayService.publicURL || `http://localhost:${port2}`;
|
|
12252
12262
|
if (apiUrl) {
|
|
@@ -12289,6 +12299,8 @@ var port = gatewayService.port || 4e3;
|
|
|
12289
12299
|
if (config.env?.NODE_ENV !== "test") {
|
|
12290
12300
|
const { initObservabilityNode } = await import('@semiont/observability/node');
|
|
12291
12301
|
initObservabilityNode({ serviceName: "semiont-gateway" });
|
|
12302
|
+
const { registerSupervisorRestartCount } = await import('@semiont/observability/node');
|
|
12303
|
+
registerSupervisorRestartCount();
|
|
12292
12304
|
const { JWTService: JWTService2 } = await Promise.resolve().then(() => (init_jwt(), jwt_exports));
|
|
12293
12305
|
JWTService2.initialize({ site: { domain: effectiveDomain, oauthAllowedDomains: effectiveOAuthAllowedDomains } });
|
|
12294
12306
|
const server = serve({
|