@powerhousedao/switchboard 6.2.3-dev.81 → 6.2.3-dev.83
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/.tsbuild/test/boot-ready-drives.test.d.ts +2 -0
- package/.tsbuild/test/boot-ready-drives.test.d.ts.map +1 -0
- package/.tsbuild/tsconfig.tsbuildinfo +1 -1
- package/CHANGELOG.md +29 -0
- package/dist/index.mjs +1 -1
- package/dist/plugins/attachments.mjs +3 -3
- package/dist/{server-cE1BWLQu.mjs → server-ChIFIbah.mjs} +15 -8
- package/dist/{server-cE1BWLQu.mjs.map → server-ChIFIbah.mjs.map} +1 -1
- package/dist/server.d.mts +7 -0
- package/dist/server.d.mts.map +1 -1
- package/dist/server.mjs +3 -3
- package/package.json +16 -16
- package/test/boot-ready-drives.test.ts +141 -0
- package/test/goldens/supergraph.graphql +8 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,32 @@
|
|
|
1
|
+
## 6.2.3-dev.83 (2026-10-30)
|
|
2
|
+
|
|
3
|
+
### 🩹 Fixes
|
|
4
|
+
|
|
5
|
+
- **connect:** a kept copy is ready once it holds the switchboard's revision ([f327ce1fa6](https://github.com/powerhouse-inc/powerhouse/commit/f327ce1fa6))
|
|
6
|
+
- **connect:** wait for the copy in every tab, and re-read moves before reconciling at boot ([243e0813d7](https://github.com/powerhouse-inc/powerhouse/commit/243e0813d7))
|
|
7
|
+
|
|
8
|
+
### ❤️ Thank You
|
|
9
|
+
|
|
10
|
+
- Benjamin Jordan
|
|
11
|
+
- Claude Opus 5.5
|
|
12
|
+
|
|
13
|
+
## 6.2.3-dev.82 (2026-10-29)
|
|
14
|
+
|
|
15
|
+
### 🚀 Features
|
|
16
|
+
|
|
17
|
+
- **reactor-router:** a backend's document types may read as open ([df1583eab1](https://github.com/powerhouse-inc/powerhouse/commit/df1583eab1))
|
|
18
|
+
- **reactor-browser:** createSwitchboardBackend, a Switchboard as a router backend ([f2b6b608af](https://github.com/powerhouse-inc/powerhouse/commit/f2b6b608af))
|
|
19
|
+
|
|
20
|
+
### 🩹 Fixes
|
|
21
|
+
|
|
22
|
+
- **reactor-browser:** a switchboard that loads models on demand gets no create pre-check ([cd57ceec10](https://github.com/powerhouse-inc/powerhouse/commit/cd57ceec10))
|
|
23
|
+
- **switchboard:** /ready waits for the default drive ([27cee3f720](https://github.com/powerhouse-inc/powerhouse/commit/27cee3f720))
|
|
24
|
+
|
|
25
|
+
### ❤️ Thank You
|
|
26
|
+
|
|
27
|
+
- Benjamin Jordan
|
|
28
|
+
- Claude Opus 5.5
|
|
29
|
+
|
|
1
30
|
## 6.2.3-dev.81 (2026-10-29)
|
|
2
31
|
|
|
3
32
|
### 🚀 Features
|
package/dist/index.mjs
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="18b13585-6e92-5bcd-97f9-428fc2caa7ad")}catch(e){}}();
|
|
4
4
|
import { n as StoredDocumentsRefusedError, t as switchboardConfigFromEnv } from "./from-env-BO0n9R02.mjs";
|
|
5
5
|
import { a as callerOverEnv, o as mergeSwitchboardConfig } from "./schema-0g_QdOWn.mjs";
|
|
6
|
-
import { o as startSwitchboard, r as initSwitchboardProcess, u as initProfilerFromEnv } from "./server-
|
|
6
|
+
import { o as startSwitchboard, r as initSwitchboardProcess, u as initProfilerFromEnv } from "./server-ChIFIbah.mjs";
|
|
7
7
|
import { metrics } from "@opentelemetry/api";
|
|
8
8
|
import { OTLPTraceExporter } from "@opentelemetry/exporter-trace-otlp-http";
|
|
9
9
|
import { ExpressInstrumentation } from "@opentelemetry/instrumentation-express";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as attachmentsPluginConfigSchema, s as attachmentsPlugin } from "../server-
|
|
1
|
+
import { c as attachmentsPluginConfigSchema, s as attachmentsPlugin } from "../server-ChIFIbah.mjs";
|
|
2
2
|
export { attachmentsPlugin, attachmentsPlugin as default, attachmentsPluginConfigSchema };
|
|
3
|
-
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="
|
|
4
|
-
//# debugId=
|
|
3
|
+
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="b480a8d2-6a27-5173-8a69-ba5f6620cff7")}catch(e){}}();
|
|
4
|
+
//# debugId=b480a8d2-6a27-5173-8a69-ba5f6620cff7
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="
|
|
2
|
+
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="52b0b740-6e36-58d5-bcd4-47889e1e4005")}catch(e){}}();
|
|
3
3
|
import { a as loadNodeFsClass, c as openForVerify, d as ATTACHMENT_URL_SIGNING_SECRET_ENV, f as resolveAttachmentUrlSigning, i as isSupportedMajor, l as pgliteModuleSpec, n as StoredDocumentsRefusedError, o as loadPGliteModule, r as resolveUnsupportedStoredDocuments, s as loadPgDump, t as switchboardConfigFromEnv, u as readPgVersionFile } from "./from-env-BO0n9R02.mjs";
|
|
4
4
|
import { a as resolveWorkerModelSources, l as resolveProjectionWorkerOptions, n as keepImportableSources, o as resolveWorkerPoolOptions, p as workerPoolIssues, s as assertProjectionWorkerSupported, t as buildWorkerDbConfig } from "./worker-pool-BWHBLBJd.mjs";
|
|
5
5
|
import { t as isPostgresUrl } from "./postgres-url-DTDhBjXX.mjs";
|
|
@@ -2299,6 +2299,11 @@ async function initServer(requestedPort, options, config, renown, renownConfig,
|
|
|
2299
2299
|
reportFailure(reporting, error, "Failed to register reactor-drive subgraph: @error");
|
|
2300
2300
|
}));
|
|
2301
2301
|
}
|
|
2302
|
+
if (options.drive) {
|
|
2303
|
+
if (!renown) throw new Error("Cannot create default drive without Renown identity");
|
|
2304
|
+
if ((options.drive.documentType ?? "powerhouse/document-drive") === "powerhouse/reactor-drive") defaultDriveUrl = await addDefaultReactorDrive(client, options.drive, serverPort, logger);
|
|
2305
|
+
else defaultDriveUrl = await addDefaultDrive(client, options.drive, serverPort, logger);
|
|
2306
|
+
}
|
|
2302
2307
|
runDetached("Marking the API ready", async () => {
|
|
2303
2308
|
await Promise.allSettled(lateSubgraphs);
|
|
2304
2309
|
try {
|
|
@@ -2306,13 +2311,14 @@ async function initServer(requestedPort, options, config, renown, renownConfig,
|
|
|
2306
2311
|
} catch (error) {
|
|
2307
2312
|
reportFailure(reporting, error, "Final router update before readiness failed: @error");
|
|
2308
2313
|
}
|
|
2314
|
+
try {
|
|
2315
|
+
await options.readyAfter;
|
|
2316
|
+
} catch (error) {
|
|
2317
|
+
reportFailure(reporting, error, "Not ready: the drives seeded after start failed: @error");
|
|
2318
|
+
return;
|
|
2319
|
+
}
|
|
2309
2320
|
api.readiness.markReady();
|
|
2310
2321
|
}, reporting);
|
|
2311
|
-
if (options.drive) {
|
|
2312
|
-
if (!renown) throw new Error("Cannot create default drive without Renown identity");
|
|
2313
|
-
if ((options.drive.documentType ?? "powerhouse/document-drive") === "powerhouse/reactor-drive") defaultDriveUrl = await addDefaultReactorDrive(client, options.drive, serverPort, logger);
|
|
2314
|
-
else defaultDriveUrl = await addDefaultDrive(client, options.drive, serverPort, logger);
|
|
2315
|
-
}
|
|
2316
2322
|
if (vite) api.httpAdapter.mountRawMiddleware(vite.middlewares);
|
|
2317
2323
|
if (remoteDrives.length > 0) for (const remoteDriveUrl of remoteDrives) {
|
|
2318
2324
|
let driveId;
|
|
@@ -2441,6 +2447,7 @@ function serverOptionsOf(config, deps) {
|
|
|
2441
2447
|
reactor: deps.reactor,
|
|
2442
2448
|
fatalErrorShutdown: deps.fatalErrorShutdown,
|
|
2443
2449
|
signalHandlers: deps.signalHandlers,
|
|
2450
|
+
readyAfter: deps.readyAfter,
|
|
2444
2451
|
pluginComposition: deps.pluginComposition,
|
|
2445
2452
|
logger: deps.logger,
|
|
2446
2453
|
registryUrl: config.packages.registryUrl,
|
|
@@ -2514,5 +2521,5 @@ function feedCatchUpPriority(priority, server) {
|
|
|
2514
2521
|
//#endregion
|
|
2515
2522
|
export { resolvePgliteStorageDirs as a, attachmentsPluginConfigSchema as c, isPortAvailable as i, applySwitchboardReactorDefaults as l, deriveAttachmentServiceConfig as n, startSwitchboard as o, initSwitchboardProcess as r, attachmentsPlugin as s, createReactorKysely as t, initProfilerFromEnv as u };
|
|
2516
2523
|
|
|
2517
|
-
//# sourceMappingURL=server-
|
|
2518
|
-
//# debugId=
|
|
2524
|
+
//# sourceMappingURL=server-ChIFIbah.mjs.map
|
|
2525
|
+
//# debugId=52b0b740-6e36-58d5-bcd4-47889e1e4005
|