@powerhousedao/switchboard 6.4.0-next.1 → 6.4.0-next.2
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/plugin-inspector.test.d.ts +2 -0
- package/.tsbuild/test/plugin-inspector.test.d.ts.map +1 -0
- package/.tsbuild/tsconfig.tsbuildinfo +1 -1
- package/CHANGELOG.md +11 -0
- package/dist/index.mjs +1 -1
- package/dist/plugins/attachments.mjs +3 -3
- package/dist/plugins/inspector.d.mts +68 -0
- package/dist/plugins/inspector.d.mts.map +1 -0
- package/dist/plugins/inspector.mjs +107 -0
- package/dist/plugins/inspector.mjs.map +1 -0
- package/dist/{server-BMRdMNvC.mjs → server-CbKdygtT.mjs} +4 -4
- package/dist/{server-BMRdMNvC.mjs.map → server-CbKdygtT.mjs.map} +1 -1
- package/dist/server.d.mts +3 -3
- package/dist/server.d.mts.map +1 -1
- package/dist/server.mjs +3 -3
- package/dist/{types-Crizw8W4.d.mts → types-D8s6VzUO.d.mts} +6 -1
- package/dist/{types-Crizw8W4.d.mts.map → types-D8s6VzUO.d.mts.map} +1 -1
- package/dist/utils.d.mts +1 -1
- package/package.json +23 -17
- package/test/plugin-inspector.test.ts +300 -0
- package/tsdown.config.ts +1 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,14 @@
|
|
|
1
|
+
## 6.4.0-next.2 (2026-11-23)
|
|
2
|
+
|
|
3
|
+
### 🚀 Features
|
|
4
|
+
|
|
5
|
+
- **switchboard:** add the inspector plugin that reports loaded document models ([d286a0f1ce](https://github.com/powerhouse-inc/powerhouse/commit/d286a0f1ce))
|
|
6
|
+
|
|
7
|
+
### ❤️ Thank You
|
|
8
|
+
|
|
9
|
+
- Claude
|
|
10
|
+
- Wouter Kampmann
|
|
11
|
+
|
|
1
12
|
## 6.4.0-next.1 (2026-11-22)
|
|
2
13
|
|
|
3
14
|
### 🚀 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-
|
|
7
|
+
import { d as initProfilerFromEnv, r as initSwitchboardProcess, s as startSwitchboard } from "./server-CbKdygtT.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-
|
|
1
|
+
import { c as attachmentsPlugin, l as attachmentsPluginConfigSchema } from "../server-CbKdygtT.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]="e9cb264f-88de-5ad2-8c4c-bfa38e7f72df")}catch(e){}}();
|
|
4
|
+
//# debugId=e9cb264f-88de-5ad2-8c4c-bfa38e7f72df
|
|
@@ -0,0 +1,68 @@
|
|
|
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
|
+
transformServerOptions: (options: Record<string, unknown>, ctx: SwitchboardHostContext) => Record<string, unknown>;
|
|
45
|
+
onReactorReady: (ctx: SwitchboardHostContext) => void;
|
|
46
|
+
onShutdown: (ctx: SwitchboardHostContext) => void;
|
|
47
|
+
}, InspectorPluginConfig>;
|
|
48
|
+
/** The report of what the package manager holds, packages and models sorted. */
|
|
49
|
+
export declare function inspectorReportOf(packages: Iterable<readonly [string, readonly DocumentModelModule[]]>, meta: {
|
|
50
|
+
sequence: number;
|
|
51
|
+
localPackage?: string;
|
|
52
|
+
now?: Date;
|
|
53
|
+
}): InspectorReport;
|
|
54
|
+
/** Readers never see half a report: written beside the file, then renamed. */
|
|
55
|
+
export declare function writeInspectorReport(file: string, report: InspectorReport): void;
|
|
56
|
+
/**
|
|
57
|
+
* The inspector: reports the runtime this switchboard loaded to whoever
|
|
58
|
+
* started it. Once the reactor is ready, and again each time a package
|
|
59
|
+
* reloads, it writes every loaded document model module's `documentModel`
|
|
60
|
+
* (all specification versions) to `reportFile`. A file, as the run record
|
|
61
|
+
* is: the reader needs no address, and either side restarts alone. The file
|
|
62
|
+
* goes when the switchboard stops.
|
|
63
|
+
*/
|
|
64
|
+
export declare function createInspectorPlugin(rawConfig: unknown): InspectorPlugin;
|
|
65
|
+
//#endregion
|
|
66
|
+
export { createInspectorPlugin as default };
|
|
67
|
+
export {};
|
|
68
|
+
//# 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;;;GAUtC,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,yBACE,SAAS,yBACT,KAAK,2BACF;EACL,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,107 @@
|
|
|
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]="9e644745-0f0c-57a8-9ad4-8b0648fa99be")}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
|
+
/**
|
|
12
|
+
* Whether a dev switchboard keeps the Vetra codegen processor, which
|
|
13
|
+
* rewrites the project's code from documents on `vetra` drives. Off: a
|
|
14
|
+
* switchboard that reports its runtime only reads the project.
|
|
15
|
+
*/
|
|
16
|
+
codegen: z.boolean().default(false)
|
|
17
|
+
});
|
|
18
|
+
const INSPECTOR_REPORT_VERSION = 1;
|
|
19
|
+
const samePath = (a, b) => {
|
|
20
|
+
const [left, right] = [path.resolve(a), path.resolve(b)];
|
|
21
|
+
return process.platform === "win32" ? left.toLowerCase() === right.toLowerCase() : left === right;
|
|
22
|
+
};
|
|
23
|
+
/** The report of what the package manager holds, packages and models sorted. */
|
|
24
|
+
function inspectorReportOf(packages, meta) {
|
|
25
|
+
const reported = Array.from(packages, ([name, modules]) => ({
|
|
26
|
+
name,
|
|
27
|
+
local: meta.localPackage ? samePath(name, meta.localPackage) : false,
|
|
28
|
+
models: modules.map((module) => ({
|
|
29
|
+
documentType: module.documentModel.global.id,
|
|
30
|
+
name: module.documentModel.global.name,
|
|
31
|
+
...module.version === void 0 ? {} : { version: module.version },
|
|
32
|
+
documentModel: module.documentModel.global
|
|
33
|
+
})).sort((a, b) => a.documentType.localeCompare(b.documentType) || (a.version ?? 0) - (b.version ?? 0))
|
|
34
|
+
})).sort((a, b) => a.name.localeCompare(b.name));
|
|
35
|
+
return {
|
|
36
|
+
version: 1,
|
|
37
|
+
sequence: meta.sequence,
|
|
38
|
+
writtenAt: (meta.now ?? /* @__PURE__ */ new Date()).toISOString(),
|
|
39
|
+
pid: process.pid,
|
|
40
|
+
packages: reported
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
/** Readers never see half a report: written beside the file, then renamed. */
|
|
44
|
+
function writeInspectorReport(file, report) {
|
|
45
|
+
mkdirSync(path.dirname(file), { recursive: true });
|
|
46
|
+
const temp = `${file}.${process.pid}.tmp`;
|
|
47
|
+
writeFileSync(temp, JSON.stringify(report));
|
|
48
|
+
try {
|
|
49
|
+
renameSync(temp, file);
|
|
50
|
+
} catch (error) {
|
|
51
|
+
rmSync(temp, { force: true });
|
|
52
|
+
throw error;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
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
|
+
function createInspectorPlugin(rawConfig) {
|
|
64
|
+
const config = inspectorPluginConfigSchema.parse(rawConfig ?? {});
|
|
65
|
+
const file = path.resolve(config.reportFile);
|
|
66
|
+
let sequence = 0;
|
|
67
|
+
let stopped = false;
|
|
68
|
+
return {
|
|
69
|
+
name: "switchboard-inspector",
|
|
70
|
+
appliesTo: "switchboard",
|
|
71
|
+
configSchema: inspectorPluginConfigSchema,
|
|
72
|
+
hooks: {
|
|
73
|
+
transformServerOptions: (options) => config.codegen ? options : {
|
|
74
|
+
...options,
|
|
75
|
+
codegenProcessor: false
|
|
76
|
+
},
|
|
77
|
+
onReactorReady: (ctx) => {
|
|
78
|
+
const { packageManager } = ctx.api;
|
|
79
|
+
const logger = ctx.logger;
|
|
80
|
+
const { disableLocalPackages } = ctx.options;
|
|
81
|
+
const localPackage = disableLocalPackages ? void 0 : process.cwd();
|
|
82
|
+
const report = (packages) => {
|
|
83
|
+
if (stopped) return;
|
|
84
|
+
try {
|
|
85
|
+
writeInspectorReport(file, inspectorReportOf(packages, {
|
|
86
|
+
sequence: ++sequence,
|
|
87
|
+
localPackage
|
|
88
|
+
}));
|
|
89
|
+
} catch (error) {
|
|
90
|
+
logger.warn("The inspector could not write its report to @file: @error", file, error);
|
|
91
|
+
}
|
|
92
|
+
};
|
|
93
|
+
report(packageManager.getDocumentModels());
|
|
94
|
+
packageManager.onDocumentModelsChange((packages) => report(Object.entries(packages)));
|
|
95
|
+
},
|
|
96
|
+
onShutdown: () => {
|
|
97
|
+
stopped = true;
|
|
98
|
+
rmSync(file, { force: true });
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
};
|
|
102
|
+
}
|
|
103
|
+
//#endregion
|
|
104
|
+
export { INSPECTOR_REPORT_VERSION, createInspectorPlugin, createInspectorPlugin as default, inspectorPluginConfigSchema, inspectorReportOf, writeInspectorReport };
|
|
105
|
+
|
|
106
|
+
//# sourceMappingURL=inspector.mjs.map
|
|
107
|
+
//# debugId=9e644745-0f0c-57a8-9ad4-8b0648fa99be
|
|
@@ -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 /**\n * Whether a dev switchboard keeps the Vetra codegen processor, which\n * rewrites the project's code from documents on `vetra` drives. Off: a\n * switchboard that reports its runtime only reads the project.\n */\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 transformServerOptions: (\n options: Record<string, unknown>,\n ctx: SwitchboardHostContext,\n ) => Record<string, unknown>;\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 transformServerOptions: (options) =>\n config.codegen ? options : { ...options, codegenProcessor: false },\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;;;;;;CAM5B,SAAS,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK;AACpC,CAAC;AAeD,MAAa,2BAA2B;AAmDxC,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,yBAAyB,YACvB,OAAO,UAAU,UAAU;IAAE,GAAG;IAAS,kBAAkB;GAAM;GACnE,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":"9e644745-0f0c-57a8-9ad4-8b0648fa99be"}
|
|
@@ -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]="ef1186cf-3af2-530c-8354-5415967a19a6")}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";
|
|
@@ -2182,7 +2182,7 @@ async function initServer(requestedPort, options, config, renown, renownConfig,
|
|
|
2182
2182
|
reportError
|
|
2183
2183
|
});
|
|
2184
2184
|
}
|
|
2185
|
-
const vetraProcessorFactory = dev ? (await import("@powerhousedao/vetra/processors")).processorFactory : void 0;
|
|
2185
|
+
const vetraProcessorFactory = dev && options.codegenProcessor !== false ? (await import("@powerhousedao/vetra/processors")).processorFactory : void 0;
|
|
2186
2186
|
if (!options.disableLocalPackages) packages.push(basePath);
|
|
2187
2187
|
const packageLoaders = [];
|
|
2188
2188
|
if (viteLoader) packageLoaders.push(viteLoader);
|
|
@@ -2676,5 +2676,5 @@ function feedCatchUpPriority(priority, server) {
|
|
|
2676
2676
|
//#endregion
|
|
2677
2677
|
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
2678
|
|
|
2679
|
-
//# sourceMappingURL=server-
|
|
2680
|
-
//# debugId=
|
|
2679
|
+
//# sourceMappingURL=server-CbKdygtT.mjs.map
|
|
2680
|
+
//# debugId=ef1186cf-3af2-530c-8354-5415967a19a6
|