@powerhousedao/switchboard 6.2.3-dev.81 → 6.2.3-dev.82

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/CHANGELOG.md CHANGED
@@ -1,3 +1,20 @@
1
+ ## 6.2.3-dev.82 (2026-10-29)
2
+
3
+ ### 🚀 Features
4
+
5
+ - **reactor-router:** a backend's document types may read as open ([df1583eab1](https://github.com/powerhouse-inc/powerhouse/commit/df1583eab1))
6
+ - **reactor-browser:** createSwitchboardBackend, a Switchboard as a router backend ([f2b6b608af](https://github.com/powerhouse-inc/powerhouse/commit/f2b6b608af))
7
+
8
+ ### 🩹 Fixes
9
+
10
+ - **reactor-browser:** a switchboard that loads models on demand gets no create pre-check ([cd57ceec10](https://github.com/powerhouse-inc/powerhouse/commit/cd57ceec10))
11
+ - **switchboard:** /ready waits for the default drive ([27cee3f720](https://github.com/powerhouse-inc/powerhouse/commit/27cee3f720))
12
+
13
+ ### ❤️ Thank You
14
+
15
+ - Benjamin Jordan
16
+ - Claude Opus 5.5
17
+
1
18
  ## 6.2.3-dev.81 (2026-10-29)
2
19
 
3
20
  ### 🚀 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-cE1BWLQu.mjs";
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-cE1BWLQu.mjs";
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]="ddb87092-6a51-5878-96d6-b7bb6d1f6036")}catch(e){}}();
4
- //# debugId=ddb87092-6a51-5878-96d6-b7bb6d1f6036
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]="4a0fe5f4-e71e-59f2-8cbd-cc08a5334040")}catch(e){}}();
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-cE1BWLQu.mjs.map
2518
- //# debugId=4a0fe5f4-e71e-59f2-8cbd-cc08a5334040
2524
+ //# sourceMappingURL=server-ChIFIbah.mjs.map
2525
+ //# debugId=52b0b740-6e36-58d5-bcd4-47889e1e4005