@powerhousedao/switchboard 6.4.0-next.1 → 6.4.0-next.3

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,39 @@
1
+ ## 6.4.0-next.3 (2026-11-23)
2
+
3
+ ### 🚀 Features
4
+
5
+ - ⚠️ **switchboard,connect:** no built-in vetra package ([1e9b9ba2c6](https://github.com/powerhouse-inc/powerhouse/commit/1e9b9ba2c6))
6
+ - ⚠️ **ph-cli:** generate stubs only, no dependency on the vetra package ([329d9de807](https://github.com/powerhouse-inc/powerhouse/commit/329d9de807))
7
+ - **switchboard:** add the inspector plugin that reports loaded document models ([d286a0f1ce](https://github.com/powerhouse-inc/powerhouse/commit/d286a0f1ce))
8
+
9
+ ### ⚠️ Breaking Changes
10
+
11
+ - **switchboard,connect:** no built-in vetra package ([1e9b9ba2c6](https://github.com/powerhouse-inc/powerhouse/commit/1e9b9ba2c6))
12
+ switchboard dev mode and Connect studio mode no longer
13
+ load @powerhousedao/vetra by themselves.
14
+ Co-Authored-By: Claude <noreply@anthropic.com>
15
+ Claude-Session: https://claude.ai/code/session_016fHjTMdimGetqa3JnGXsnE
16
+ - **ph-cli:** generate stubs only, no dependency on the vetra package ([329d9de807](https://github.com/powerhouse-inc/powerhouse/commit/329d9de807))
17
+ ph generate --document and --extract are removed.
18
+ Co-Authored-By: Claude <noreply@anthropic.com>
19
+ Claude-Session: https://claude.ai/code/session_016fHjTMdimGetqa3JnGXsnE
20
+
21
+ ### ❤️ Thank You
22
+
23
+ - Claude
24
+ - Wouter Kampmann
25
+
26
+ ## 6.4.0-next.2 (2026-11-23)
27
+
28
+ ### 🚀 Features
29
+
30
+ - **switchboard:** add the inspector plugin that reports loaded document models ([d286a0f1ce](https://github.com/powerhouse-inc/powerhouse/commit/d286a0f1ce))
31
+
32
+ ### ❤️ Thank You
33
+
34
+ - Claude
35
+ - Wouter Kampmann
36
+
1
37
  ## 6.4.0-next.1 (2026-11-22)
2
38
 
3
39
  ### 🚀 Features
package/dist/index.mjs CHANGED
@@ -4,7 +4,7 @@
4
4
  import { n as installObservabilitySignals } from "./observability-CldagyT_.mjs";
5
5
  import { n as StoredDocumentsRefusedError, t as switchboardConfigFromEnv } from "./from-env-CLImR6qa.mjs";
6
6
  import { a as callerOverEnv, o as mergeSwitchboardConfig } from "./schema-BbwISVSO.mjs";
7
- import { d as initProfilerFromEnv, r as initSwitchboardProcess, s as startSwitchboard } from "./server-BMRdMNvC.mjs";
7
+ import { d as initProfilerFromEnv, r as initSwitchboardProcess, s as startSwitchboard } from "./server-CrAdM6CN.mjs";
8
8
  import * as Sentry from "@sentry/node";
9
9
  import { childLogger } from "document-model";
10
10
  import { getConfig } from "@powerhousedao/config/node";
@@ -1,4 +1,4 @@
1
- import { c as attachmentsPlugin, l as attachmentsPluginConfigSchema } from "../server-BMRdMNvC.mjs";
1
+ import { c as attachmentsPlugin, l as attachmentsPluginConfigSchema } from "../server-CrAdM6CN.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]="52cbb932-b837-5ed3-8411-f63b07453e9d")}catch(e){}}();
4
- //# debugId=52cbb932-b837-5ed3-8411-f63b07453e9d
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]="7fb10f42-4b1a-587d-bad9-adf4411696bf")}catch(e){}}();
4
+ //# debugId=7fb10f42-4b1a-587d-bad9-adf4411696bf
@@ -0,0 +1,67 @@
1
+ import { t as SwitchboardHostContext } from "../plugin-host-Z-4Ruypj.mjs";
2
+ import { DocumentModelModule } from "document-model";
3
+ import { z } from "zod";
4
+ import { HostPlugin } from "@powerhousedao/host-core";
5
+ //#region src/plugins/inspector.d.mts
6
+ export declare const inspectorPluginConfigSchema: z.ZodObject<{
7
+ reportFile: z.ZodString;
8
+ codegen: z.ZodDefault<z.ZodBoolean>;
9
+ }, z.core.$strict>;
10
+ export type InspectorPluginConfig = z.infer<typeof inspectorPluginConfigSchema>;
11
+ /** What a host.js entry writes. */
12
+ export type InspectorPluginConfigInput = z.input<typeof inspectorPluginConfigSchema>;
13
+ declare global {
14
+ interface PHPluginConfigs {
15
+ "@powerhousedao/switchboard/plugins/inspector": InspectorPluginConfigInput;
16
+ }
17
+ }
18
+ export declare const INSPECTOR_REPORT_VERSION = 1;
19
+ /** One loaded document model module: one version of one document type. */
20
+ export interface InspectorModelReport {
21
+ documentType: string;
22
+ name: string;
23
+ /** The module's version; absent on a model that is not versioned. */
24
+ version?: number;
25
+ /** The module's `documentModel` global state: every specification. */
26
+ documentModel: DocumentModelModule["documentModel"]["global"];
27
+ }
28
+ export interface InspectorPackageReport {
29
+ /** The package as the package manager keys it: a name, or a folder. */
30
+ name: string;
31
+ /** The project itself: the working directory, loaded as a package. */
32
+ local: boolean;
33
+ models: InspectorModelReport[];
34
+ }
35
+ export interface InspectorReport {
36
+ version: typeof INSPECTOR_REPORT_VERSION;
37
+ /** Counts the reports of this process: 1 at ready, +1 per reload. */
38
+ sequence: number;
39
+ writtenAt: string;
40
+ pid: number;
41
+ packages: InspectorPackageReport[];
42
+ }
43
+ export type InspectorPlugin = HostPlugin<{
44
+ onReactorReady: (ctx: SwitchboardHostContext) => void;
45
+ onShutdown: (ctx: SwitchboardHostContext) => void;
46
+ }, InspectorPluginConfig>;
47
+ /** The report of what the package manager holds, packages and models sorted. */
48
+ export declare function inspectorReportOf(packages: Iterable<readonly [string, readonly DocumentModelModule[]]>, meta: {
49
+ sequence: number;
50
+ localPackage?: string;
51
+ now?: Date;
52
+ }): InspectorReport;
53
+ /** Readers never see half a report: written beside the file, then renamed. */
54
+ export declare function writeInspectorReport(file: string, report: InspectorReport): void;
55
+ /**
56
+ * The inspector: reports the runtime this switchboard loaded to whoever
57
+ * started it. Once the reactor is ready, and again each time a package
58
+ * reloads, it writes every loaded document model module's `documentModel`
59
+ * (all specification versions) to `reportFile`. A file, as the run record
60
+ * is: the reader needs no address, and either side restarts alone. The file
61
+ * goes when the switchboard stops.
62
+ */
63
+ export declare function createInspectorPlugin(rawConfig: unknown): InspectorPlugin;
64
+ //#endregion
65
+ export { createInspectorPlugin as default };
66
+ export {};
67
+ //# sourceMappingURL=inspector.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"inspector.d.mts","names":[],"sources":["../../src/plugins/inspector.mts"],"mappings":";;;;;qBAOa,6BAA2B,EAAA;;;GAOtC,EAAA,KAAA;YAEU,wBAAwB,EAAE,aAAa;;YAGvC,6BAA6B,EAAE,aAClC;QAGD;YACI;IACR,gDAAgD;;;qBAIvC;;iBAGI;EACf;EACA;;EAEA;;EAEA,eAAe;;iBAGA;;EAEf;;EAEA;EACA,QAAQ;;iBAGO;EACf,gBAAgB;;EAEhB;EACA;EACA;EACA,UAAU;;YAGA,kBAAkB;EAE1B,iBAAiB,KAAK;EACtB,aAAa,KAAK;GAEpB;;wBAqBc,kBACd,UAAU,oCAAoC,yBAC9C;EAAQ;EAAkB;EAAuB,MAAM;IACtD;;wBA2Ba,qBACd,cACA,QAAQ;;;;;;;;;wBAqBM,sBAAsB,qBAAqB"}
@@ -0,0 +1,100 @@
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]="ab14949e-ae8b-5503-8f6c-1a80a6ea6fc0")}catch(e){}}();
3
+ import { mkdirSync, renameSync, rmSync, writeFileSync } from "node:fs";
4
+ import path from "node:path";
5
+ import { z } from "zod";
6
+ //#region src/plugins/inspector.mts
7
+ const inspectorPluginConfigSchema = z.strictObject({
8
+ /** Where the report is written: an absolute path, or one relative to the
9
+ * working directory. */
10
+ reportFile: z.string().min(1),
11
+ /** @deprecated Accepted and ignored: no switchboard brings a codegen
12
+ * processor of its own. */
13
+ codegen: z.boolean().default(false)
14
+ });
15
+ const INSPECTOR_REPORT_VERSION = 1;
16
+ const samePath = (a, b) => {
17
+ const [left, right] = [path.resolve(a), path.resolve(b)];
18
+ return process.platform === "win32" ? left.toLowerCase() === right.toLowerCase() : left === right;
19
+ };
20
+ /** The report of what the package manager holds, packages and models sorted. */
21
+ function inspectorReportOf(packages, meta) {
22
+ const reported = Array.from(packages, ([name, modules]) => ({
23
+ name,
24
+ local: meta.localPackage ? samePath(name, meta.localPackage) : false,
25
+ models: modules.map((module) => ({
26
+ documentType: module.documentModel.global.id,
27
+ name: module.documentModel.global.name,
28
+ ...module.version === void 0 ? {} : { version: module.version },
29
+ documentModel: module.documentModel.global
30
+ })).sort((a, b) => a.documentType.localeCompare(b.documentType) || (a.version ?? 0) - (b.version ?? 0))
31
+ })).sort((a, b) => a.name.localeCompare(b.name));
32
+ return {
33
+ version: 1,
34
+ sequence: meta.sequence,
35
+ writtenAt: (meta.now ?? /* @__PURE__ */ new Date()).toISOString(),
36
+ pid: process.pid,
37
+ packages: reported
38
+ };
39
+ }
40
+ /** Readers never see half a report: written beside the file, then renamed. */
41
+ function writeInspectorReport(file, report) {
42
+ mkdirSync(path.dirname(file), { recursive: true });
43
+ const temp = `${file}.${process.pid}.tmp`;
44
+ writeFileSync(temp, JSON.stringify(report));
45
+ try {
46
+ renameSync(temp, file);
47
+ } catch (error) {
48
+ rmSync(temp, { force: true });
49
+ throw error;
50
+ }
51
+ }
52
+ /**
53
+ * The inspector: reports the runtime this switchboard loaded to whoever
54
+ * started it. Once the reactor is ready, and again each time a package
55
+ * reloads, it writes every loaded document model module's `documentModel`
56
+ * (all specification versions) to `reportFile`. A file, as the run record
57
+ * is: the reader needs no address, and either side restarts alone. The file
58
+ * goes when the switchboard stops.
59
+ */
60
+ function createInspectorPlugin(rawConfig) {
61
+ const config = inspectorPluginConfigSchema.parse(rawConfig ?? {});
62
+ const file = path.resolve(config.reportFile);
63
+ let sequence = 0;
64
+ let stopped = false;
65
+ return {
66
+ name: "switchboard-inspector",
67
+ appliesTo: "switchboard",
68
+ configSchema: inspectorPluginConfigSchema,
69
+ hooks: {
70
+ onReactorReady: (ctx) => {
71
+ const { packageManager } = ctx.api;
72
+ const logger = ctx.logger;
73
+ const { disableLocalPackages } = ctx.options;
74
+ const localPackage = disableLocalPackages ? void 0 : process.cwd();
75
+ const report = (packages) => {
76
+ if (stopped) return;
77
+ try {
78
+ writeInspectorReport(file, inspectorReportOf(packages, {
79
+ sequence: ++sequence,
80
+ localPackage
81
+ }));
82
+ } catch (error) {
83
+ logger.warn("The inspector could not write its report to @file: @error", file, error);
84
+ }
85
+ };
86
+ report(packageManager.getDocumentModels());
87
+ packageManager.onDocumentModelsChange((packages) => report(Object.entries(packages)));
88
+ },
89
+ onShutdown: () => {
90
+ stopped = true;
91
+ rmSync(file, { force: true });
92
+ }
93
+ }
94
+ };
95
+ }
96
+ //#endregion
97
+ export { INSPECTOR_REPORT_VERSION, createInspectorPlugin, createInspectorPlugin as default, inspectorPluginConfigSchema, inspectorReportOf, writeInspectorReport };
98
+
99
+ //# sourceMappingURL=inspector.mjs.map
100
+ //# debugId=ab14949e-ae8b-5503-8f6c-1a80a6ea6fc0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"inspector.mjs","sources":["../../src/plugins/inspector.mts"],"sourcesContent":["import type { HostPlugin } from \"@powerhousedao/host-core\";\nimport type { DocumentModelModule, ILogger } from \"document-model\";\nimport { mkdirSync, renameSync, rmSync, writeFileSync } from \"node:fs\";\nimport path from \"node:path\";\nimport { z } from \"zod\";\nimport type { SwitchboardHostContext } from \"../plugin-host.mjs\";\n\nexport const inspectorPluginConfigSchema = z.strictObject({\n /** Where the report is written: an absolute path, or one relative to the\n * working directory. */\n reportFile: z.string().min(1),\n /** @deprecated Accepted and ignored: no switchboard brings a codegen\n * processor of its own. */\n codegen: z.boolean().default(false),\n});\n\nexport type InspectorPluginConfig = z.infer<typeof inspectorPluginConfigSchema>;\n\n/** What a host.js entry writes. */\nexport type InspectorPluginConfigInput = z.input<\n typeof inspectorPluginConfigSchema\n>;\n\ndeclare global {\n interface PHPluginConfigs {\n \"@powerhousedao/switchboard/plugins/inspector\": InspectorPluginConfigInput;\n }\n}\n\nexport const INSPECTOR_REPORT_VERSION = 1;\n\n/** One loaded document model module: one version of one document type. */\nexport interface InspectorModelReport {\n documentType: string;\n name: string;\n /** The module's version; absent on a model that is not versioned. */\n version?: number;\n /** The module's `documentModel` global state: every specification. */\n documentModel: DocumentModelModule[\"documentModel\"][\"global\"];\n}\n\nexport interface InspectorPackageReport {\n /** The package as the package manager keys it: a name, or a folder. */\n name: string;\n /** The project itself: the working directory, loaded as a package. */\n local: boolean;\n models: InspectorModelReport[];\n}\n\nexport interface InspectorReport {\n version: typeof INSPECTOR_REPORT_VERSION;\n /** Counts the reports of this process: 1 at ready, +1 per reload. */\n sequence: number;\n writtenAt: string;\n pid: number;\n packages: InspectorPackageReport[];\n}\n\nexport type InspectorPlugin = HostPlugin<\n {\n onReactorReady: (ctx: SwitchboardHostContext) => void;\n onShutdown: (ctx: SwitchboardHostContext) => void;\n },\n InspectorPluginConfig\n>;\n\n/** What the plugin reads of the started API. */\ninterface InspectedApi {\n packageManager: {\n getDocumentModels(): Map<string, DocumentModelModule[]>;\n onDocumentModelsChange(\n handler: (packages: Record<string, DocumentModelModule[]>) => unknown,\n ): void;\n };\n}\n\nconst samePath = (a: string, b: string) => {\n const [left, right] = [path.resolve(a), path.resolve(b)];\n return process.platform === \"win32\"\n ? left.toLowerCase() === right.toLowerCase()\n : left === right;\n};\n\n/** The report of what the package manager holds, packages and models sorted. */\nexport function inspectorReportOf(\n packages: Iterable<readonly [string, readonly DocumentModelModule[]]>,\n meta: { sequence: number; localPackage?: string; now?: Date },\n): InspectorReport {\n const reported = Array.from(packages, ([name, modules]) => ({\n name,\n local: meta.localPackage ? samePath(name, meta.localPackage) : false,\n models: modules\n .map((module) => ({\n documentType: module.documentModel.global.id,\n name: module.documentModel.global.name,\n ...(module.version === undefined ? {} : { version: module.version }),\n documentModel: module.documentModel.global,\n }))\n .sort(\n (a, b) =>\n a.documentType.localeCompare(b.documentType) ||\n (a.version ?? 0) - (b.version ?? 0),\n ),\n })).sort((a, b) => a.name.localeCompare(b.name));\n return {\n version: INSPECTOR_REPORT_VERSION,\n sequence: meta.sequence,\n writtenAt: (meta.now ?? new Date()).toISOString(),\n pid: process.pid,\n packages: reported,\n };\n}\n\n/** Readers never see half a report: written beside the file, then renamed. */\nexport function writeInspectorReport(\n file: string,\n report: InspectorReport,\n): void {\n mkdirSync(path.dirname(file), { recursive: true });\n const temp = `${file}.${process.pid}.tmp`;\n writeFileSync(temp, JSON.stringify(report));\n try {\n renameSync(temp, file);\n } catch (error) {\n rmSync(temp, { force: true });\n throw error;\n }\n}\n\n/**\n * The inspector: reports the runtime this switchboard loaded to whoever\n * started it. Once the reactor is ready, and again each time a package\n * reloads, it writes every loaded document model module's `documentModel`\n * (all specification versions) to `reportFile`. A file, as the run record\n * is: the reader needs no address, and either side restarts alone. The file\n * goes when the switchboard stops.\n */\nexport function createInspectorPlugin(rawConfig: unknown): InspectorPlugin {\n const config = inspectorPluginConfigSchema.parse(rawConfig ?? {});\n const file = path.resolve(config.reportFile);\n let sequence = 0;\n let stopped = false;\n return {\n name: \"switchboard-inspector\",\n appliesTo: \"switchboard\",\n configSchema: inspectorPluginConfigSchema,\n hooks: {\n onReactorReady: (ctx) => {\n const { packageManager } = ctx.api as InspectedApi;\n const logger = ctx.logger as ILogger;\n const { disableLocalPackages } = ctx.options as {\n disableLocalPackages?: boolean;\n };\n const localPackage = disableLocalPackages ? undefined : process.cwd();\n const report = (\n packages: Iterable<readonly [string, readonly DocumentModelModule[]]>,\n ) => {\n if (stopped) return;\n try {\n writeInspectorReport(\n file,\n inspectorReportOf(packages, {\n sequence: ++sequence,\n localPackage,\n }),\n );\n } catch (error) {\n logger.warn(\n \"The inspector could not write its report to @file: @error\",\n file,\n error,\n );\n }\n };\n report(packageManager.getDocumentModels());\n packageManager.onDocumentModelsChange((packages) =>\n report(Object.entries(packages)),\n );\n },\n onShutdown: () => {\n stopped = true;\n rmSync(file, { force: true });\n },\n },\n };\n}\n\n// resolveHostPlugins consumes the DEFAULT export (plugin object or factory).\nexport default createInspectorPlugin;\n"],"names":[],"mappings":";;;;;;AAOA,MAAa,8BAA8B,EAAE,aAAa;;;CAGxD,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC;;;CAG5B,SAAS,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK;AACpC,CAAC;AAeD,MAAa,2BAA2B;AA+CxC,MAAM,YAAY,GAAW,MAAc;CACzC,MAAM,CAAC,MAAM,SAAS,CAAC,KAAK,QAAQ,CAAC,GAAG,KAAK,QAAQ,CAAC,CAAC;CACvD,OAAO,QAAQ,aAAa,UACxB,KAAK,YAAY,MAAM,MAAM,YAAY,IACzC,SAAS;AACf;;AAGA,SAAgB,kBACd,UACA,MACiB;CACjB,MAAM,WAAW,MAAM,KAAK,WAAW,CAAC,MAAM,cAAc;EAC1D;EACA,OAAO,KAAK,eAAe,SAAS,MAAM,KAAK,YAAY,IAAI;EAC/D,QAAQ,QACL,KAAK,YAAY;GAChB,cAAc,OAAO,cAAc,OAAO;GAC1C,MAAM,OAAO,cAAc,OAAO;GAClC,GAAI,OAAO,YAAY,KAAA,IAAY,CAAC,IAAI,EAAE,SAAS,OAAO,QAAQ;GAClE,eAAe,OAAO,cAAc;EACtC,EAAE,CAAC,CACF,MACE,GAAG,MACF,EAAE,aAAa,cAAc,EAAE,YAAY,MAC1C,EAAE,WAAW,MAAM,EAAE,WAAW,EACrC;CACJ,EAAE,CAAC,CAAC,MAAM,GAAG,MAAM,EAAE,KAAK,cAAc,EAAE,IAAI,CAAC;CAC/C,OAAO;EACL,SAAA;EACA,UAAU,KAAK;EACf,YAAY,KAAK,uBAAO,IAAI,KAAK,EAAA,CAAG,YAAY;EAChD,KAAK,QAAQ;EACb,UAAU;CACZ;AACF;;AAGA,SAAgB,qBACd,MACA,QACM;CACN,UAAU,KAAK,QAAQ,IAAI,GAAG,EAAE,WAAW,KAAK,CAAC;CACjD,MAAM,OAAO,GAAG,KAAK,GAAG,QAAQ,IAAI;CACpC,cAAc,MAAM,KAAK,UAAU,MAAM,CAAC;CAC1C,IAAI;EACF,WAAW,MAAM,IAAI;CACvB,SAAS,OAAO;EACd,OAAO,MAAM,EAAE,OAAO,KAAK,CAAC;EAC5B,MAAM;CACR;AACF;;;;;;;;;AAUA,SAAgB,sBAAsB,WAAqC;CACzE,MAAM,SAAS,4BAA4B,MAAM,aAAa,CAAC,CAAC;CAChE,MAAM,OAAO,KAAK,QAAQ,OAAO,UAAU;CAC3C,IAAI,WAAW;CACf,IAAI,UAAU;CACd,OAAO;EACL,MAAM;EACN,WAAW;EACX,cAAc;EACd,OAAO;GACL,iBAAiB,QAAQ;IACvB,MAAM,EAAE,mBAAmB,IAAI;IAC/B,MAAM,SAAS,IAAI;IACnB,MAAM,EAAE,yBAAyB,IAAI;IAGrC,MAAM,eAAe,uBAAuB,KAAA,IAAY,QAAQ,IAAI;IACpE,MAAM,UACJ,aACG;KACH,IAAI,SAAS;KACb,IAAI;MACF,qBACE,MACA,kBAAkB,UAAU;OAC1B,UAAU,EAAE;OACZ;MACF,CAAC,CACH;KACF,SAAS,OAAO;MACd,OAAO,KACL,6DACA,MACA,KACF;KACF;IACF;IACA,OAAO,eAAe,kBAAkB,CAAC;IACzC,eAAe,wBAAwB,aACrC,OAAO,OAAO,QAAQ,QAAQ,CAAC,CACjC;GACF;GACA,kBAAkB;IAChB,UAAU;IACV,OAAO,MAAM,EAAE,OAAO,KAAK,CAAC;GAC9B;EACF;CACF;AACF","debug_id":"ab14949e-ae8b-5503-8f6c-1a80a6ea6fc0"}
@@ -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]="d67a8a44-1f86-538e-a806-a6a54e5ca978")}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]="4dee3ffc-f391-52fa-bbd4-cffb550be07a")}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-CLImR6qa.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-gyxJnCxA.mjs";
5
5
  import { t as isPostgresUrl } from "./postgres-url-DTDhBjXX.mjs";
@@ -2014,10 +2014,9 @@ async function initServer(requestedPort, options, config, renown, renownConfig,
2014
2014
  if (storeMaintenance) reactorBuilder.withStoreMaintenance(storeMaintenance);
2015
2015
  if (poolInstrumentation) reactorBuilder.withInstrumentedPool(poolInstrumentation);
2016
2016
  const clientBuilder = new ReactorClientBuilder().withReactorBuilder(reactorBuilder);
2017
- const vetraDocumentModels = dev ? Object.values(await import("@powerhousedao/vetra/document-models")).filter((m) => typeof m === "object" && m !== null && "documentModel" in m && "reducer" in m) : [];
2018
2017
  applySwitchboardReactorDefaults(reactorBuilder, clientBuilder, {
2019
2018
  signalHandlers: options.signalHandlers,
2020
- documentModels: [...documentModels, ...vetraDocumentModels],
2019
+ documentModels,
2021
2020
  upgradeManifests,
2022
2021
  executorConfig: {
2023
2022
  ...hasSkipThreshold ? { maxSkipThreshold } : {},
@@ -2182,7 +2181,6 @@ async function initServer(requestedPort, options, config, renown, renownConfig,
2182
2181
  reportError
2183
2182
  });
2184
2183
  }
2185
- const vetraProcessorFactory = dev ? (await import("@powerhousedao/vetra/processors")).processorFactory : void 0;
2186
2184
  if (!options.disableLocalPackages) packages.push(basePath);
2187
2185
  const packageLoaders = [];
2188
2186
  if (viteLoader) packageLoaders.push(viteLoader);
@@ -2232,7 +2230,6 @@ async function initServer(requestedPort, options, config, renown, renownConfig,
2232
2230
  packages,
2233
2231
  processorConfig: options.processorConfig,
2234
2232
  ...renown ? { hostSigner: renown.signer } : {},
2235
- processors: vetraProcessorFactory ? { "@powerhousedao/vetra": [vetraProcessorFactory] } : {},
2236
2233
  configFile: configPath,
2237
2234
  server: {
2238
2235
  basePath: config.server.basePath,
@@ -2676,5 +2673,5 @@ function feedCatchUpPriority(priority, server) {
2676
2673
  //#endregion
2677
2674
  export { resolveKeyframes as a, attachmentsPlugin as c, initProfilerFromEnv as d, isPortAvailable as i, attachmentsPluginConfigSchema as l, deriveAttachmentServiceConfig as n, resolvePgliteStorageDirs as o, initSwitchboardProcess as r, startSwitchboard as s, createReactorKysely as t, applySwitchboardReactorDefaults as u };
2678
2675
 
2679
- //# sourceMappingURL=server-BMRdMNvC.mjs.map
2680
- //# debugId=d67a8a44-1f86-538e-a806-a6a54e5ca978
2676
+ //# sourceMappingURL=server-CrAdM6CN.mjs.map
2677
+ //# debugId=4dee3ffc-f391-52fa-bbd4-cffb550be07a