@powerhousedao/switchboard 6.4.0-next.2 → 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/dist/server.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
  import { n as StoredDocumentsRefusedError, r as resolveUnsupportedStoredDocuments } from "./from-env-CLImR6qa.mjs";
3
- import { a as resolveKeyframes, i as isPortAvailable, n as deriveAttachmentServiceConfig, o as resolvePgliteStorageDirs, r as initSwitchboardProcess, s as startSwitchboard, t as createReactorKysely, u as applySwitchboardReactorDefaults } from "./server-CbKdygtT.mjs";
3
+ import { a as resolveKeyframes, i as isPortAvailable, n as deriveAttachmentServiceConfig, o as resolvePgliteStorageDirs, r as initSwitchboardProcess, s as startSwitchboard, t as createReactorKysely, u as applySwitchboardReactorDefaults } from "./server-CrAdM6CN.mjs";
4
4
  export { StoredDocumentsRefusedError, applySwitchboardReactorDefaults, createReactorKysely, deriveAttachmentServiceConfig, initSwitchboardProcess, isPortAvailable, resolveKeyframes, resolvePgliteStorageDirs, resolveUnsupportedStoredDocuments, startSwitchboard };
5
- !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]="293c6b56-d507-575e-a939-cd9642f043b8")}catch(e){}}();
6
- //# debugId=293c6b56-d507-575e-a939-cd9642f043b8
5
+ !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]="22faedaa-2c3e-573d-8b7b-4d1af5959a31")}catch(e){}}();
6
+ //# debugId=22faedaa-2c3e-573d-8b7b-4d1af5959a31
@@ -187,11 +187,6 @@ type StartServerOptions = {
187
187
  privacy?: PrivacyOptions;
188
188
  processorConfig?: Map<string, unknown>;
189
189
  disableLocalPackages?: boolean;
190
- /**
191
- * False keeps the Vetra codegen processor out of a `dev` switchboard, so
192
- * no drive there rewrites the project's code. Set by the inspector plugin.
193
- */
194
- codegenProcessor?: boolean;
195
190
  enableDocumentModelSubgraphs?: boolean;
196
191
  /**
197
192
  * When true, enables dynamic loading of document models from the registry
@@ -325,4 +320,4 @@ type SwitchboardReactor = {
325
320
  //#endregion
326
321
  export { SwitchboardDriveDocumentType as a, SwitchboardDeps as i, StartServerOptions as n, SwitchboardDriveInput as o, StorageOptions as r, SwitchboardReactor as s, IdentityOptions as t };
327
322
  export {};
328
- //# sourceMappingURL=types-D8s6VzUO.d.mts.map
323
+ //# sourceMappingURL=types-Crizw8W4.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types-D8s6VzUO.d.mts","names":[],"sources":["../src/privacy.mts","../src/types.ts"],"mappings":";;;;;;;;;;;KAyBY;;EAEV;;EAEA;;EAEA,SAAS;;EAET;EACA;EACA;EACA;;;;;;;;;;KCRU;;KAKA,wBAAwB;EAClC,eAAe;;KAGL;EACV;EACA;EACA;;KAGU;;EAEV;;;;;;EAMA;;;;;EAKA;;EAGA;;;;;;;KAQU;;;;;;;;;;;;;;;;;;;;;EAqBV,UAAU;;;;;;;;EAQV;;;;;;;EAOA;;;;;EAKA,aAAa;;;;;;;EAOb;EACA;;;;;;;EAOA;;;;;;EAMA;EACA;EACA;EACA,QAAQ;EACR;EACA;EACA;IAEM;IACA;;;;;;;EASN,WAAW;;EAEX;;;EAGA;;;;;;;;EAQA,oBAAoB;;;EAGpB;;;;EAIA;;;EAGA;IACE;;;;;;;IAOA;MACE;MACA;QAAW;QAAkB;;MAC7B;QAAU;QAAkB;QAAqB;;;;;EAIrD,UAAU;EACV,kBAAkB;EAClB;;;;;EAKA;EACA;;;;;;EAMA;;;;;;EAMA,iBAAiB;EACjB,SAAS;;;;;;;;;;EAUT;;;;;;;;;;EAUA;;;;;;;;;EASA;IACE;IACA;IACA;;;;;;;;;;;EAWF;IACE;IACA;;;;;;;;;EASF,6BAA6B;;;KAInB;EACV,SAAS;;EAET,UAAU;;EAEV,oBAAoB;;EAEpB,eAAe;;EAEf;;EAEA;;EAEA,aAAa;;EAEb,gBAAgB;;KAGN;EACV;EACA,SAAS;;;;;EAKT,mBAAmB;;EAEnB,+BAA+B;;;EAG/B,mBAAmB;;EAEnB;;EAEA,iBAAiB;;EAEjB;IAAY,SAAS;;;EAErB;;EAEA;;EAEA,WAAW;;EAEX,QAAQ;;;;;EAKR;;;;;;;;EAQA,gBAAgB"}
1
+ {"version":3,"file":"types-Crizw8W4.d.mts","names":[],"sources":["../src/privacy.mts","../src/types.ts"],"mappings":";;;;;;;;;;;KAyBY;;EAEV;;EAEA;;EAEA,SAAS;;EAET;EACA;EACA;EACA;;;;;;;;;;KCRU;;KAKA,wBAAwB;EAClC,eAAe;;KAGL;EACV;EACA;EACA;;KAGU;;EAEV;;;;;;EAMA;;;;;EAKA;;EAGA;;;;;;;KAQU;;;;;;;;;;;;;;;;;;;;;EAqBV,UAAU;;;;;;;;EAQV;;;;;;;EAOA;;;;;EAKA,aAAa;;;;;;;EAOb;EACA;;;;;;;EAOA;;;;;;EAMA;EACA;EACA;EACA,QAAQ;EACR;EACA;EACA;IAEM;IACA;;;;;;;EASN,WAAW;;EAEX;;;EAGA;;;;;;;;EAQA,oBAAoB;;;EAGpB;;;;EAIA;;;EAGA;IACE;;;;;;;IAOA;MACE;MACA;QAAW;QAAkB;;MAC7B;QAAU;QAAkB;QAAqB;;;;;EAIrD,UAAU;EACV,kBAAkB;EAClB;EACA;;;;;;EAMA;;;;;;EAMA,iBAAiB;EACjB,SAAS;;;;;;;;;;EAUT;;;;;;;;;;EAUA;;;;;;;;;EASA;IACE;IACA;IACA;;;;;;;;;;;EAWF;IACE;IACA;;;;;;;;;EASF,6BAA6B;;;KAInB;EACV,SAAS;;EAET,UAAU;;EAEV,oBAAoB;;EAEpB,eAAe;;EAEf;;EAEA;;EAEA,aAAa;;EAEb,gBAAgB;;KAGN;EACV;EACA,SAAS;;;;;EAKT,mBAAmB;;EAEnB,+BAA+B;;;EAG/B,mBAAmB;;EAEnB;;EAEA,iBAAiB;;EAEjB;IAAY,SAAS;;;EAErB;;EAEA;;EAEA,WAAW;;EAEX,QAAQ;;;;;EAKR;;;;;;;;EAQA,gBAAgB"}
package/dist/utils.d.mts CHANGED
@@ -1,4 +1,4 @@
1
- import { o as SwitchboardDriveInput } from "./types-D8s6VzUO.mjs";
1
+ import { o as SwitchboardDriveInput } from "./types-Crizw8W4.mjs";
2
2
  import { IReactorClient } from "@powerhousedao/reactor";
3
3
  //#region src/postgres-url.d.mts
4
4
  export declare function isPostgresUrl(url: string): boolean;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@powerhousedao/switchboard",
3
3
  "type": "module",
4
- "version": "6.4.0-next.2",
4
+ "version": "6.4.0-next.3",
5
5
  "main": "dist/index.mjs",
6
6
  "exports": {
7
7
  ".": {
@@ -105,23 +105,23 @@
105
105
  "@opentelemetry/sdk-node": "^0.218.0",
106
106
  "@opentelemetry/sdk-trace-base": "^2.7.1",
107
107
  "@opentelemetry/semantic-conventions": "^1.41.1",
108
- "@powerhousedao/config": "6.4.0-next.2",
109
- "@powerhousedao/host-core": "6.4.0-next.2",
110
- "@powerhousedao/opentelemetry-instrumentation-reactor": "6.4.0-next.2",
111
- "@powerhousedao/reactor": "6.4.0-next.2",
112
- "@powerhousedao/reactor-api": "6.4.0-next.2",
113
- "@powerhousedao/reactor-attachments": "6.4.0-next.2",
114
- "@powerhousedao/reactor-drive": "6.4.0-next.2",
115
- "@powerhousedao/reactor-group": "6.4.0-next.2",
116
- "@powerhousedao/reactor-privacy": "6.4.0-next.2",
117
- "@powerhousedao/reactor-workflow": "6.4.0-next.2",
118
- "@powerhousedao/shared": "6.4.0-next.2",
119
- "@powerhousedao/workflow": "6.4.0-next.2",
108
+ "@powerhousedao/config": "6.4.0-next.3",
109
+ "@powerhousedao/host-core": "6.4.0-next.3",
110
+ "@powerhousedao/opentelemetry-instrumentation-reactor": "6.4.0-next.3",
111
+ "@powerhousedao/reactor": "6.4.0-next.3",
112
+ "@powerhousedao/reactor-api": "6.4.0-next.3",
113
+ "@powerhousedao/reactor-attachments": "6.4.0-next.3",
114
+ "@powerhousedao/reactor-drive": "6.4.0-next.3",
115
+ "@powerhousedao/reactor-group": "6.4.0-next.3",
116
+ "@powerhousedao/reactor-privacy": "6.4.0-next.3",
117
+ "@powerhousedao/reactor-workflow": "6.4.0-next.3",
118
+ "@powerhousedao/shared": "6.4.0-next.3",
119
+ "@powerhousedao/workflow": "6.4.0-next.3",
120
120
  "@pyroscope/nodejs": "^0.4.5",
121
- "@renown/sdk": "6.4.0-next.2",
121
+ "@renown/sdk": "6.4.0-next.3",
122
122
  "@sentry/node": "^10.53.1",
123
123
  "@sentry/opentelemetry": "^10.53.1",
124
- "document-model": "6.4.0-next.2",
124
+ "document-model": "6.4.0-next.3",
125
125
  "dotenv": "^16.4.7",
126
126
  "express": "^4.22.1",
127
127
  "graphql": "^16",
@@ -137,7 +137,6 @@
137
137
  "@openfeature/core": "1.9.1",
138
138
  "@openfeature/env-var-provider": "0.3.1",
139
139
  "@openfeature/server-sdk": "1.19.0",
140
- "@powerhousedao/vetra": "6.4.0-next.2",
141
140
  "@types/express": "^4.17.25",
142
141
  "@types/node": "25.2.3",
143
142
  "@types/pg": "8.16.0",
@@ -149,14 +148,10 @@
149
148
  "vitest": "5.0.3"
150
149
  },
151
150
  "peerDependencies": {
152
- "@powerhousedao/vetra": "6.4.0-next.2",
153
151
  "react": ">=19.0.0",
154
152
  "vite": "^8.0.0"
155
153
  },
156
154
  "peerDependenciesMeta": {
157
- "@powerhousedao/vetra": {
158
- "optional": true
159
- },
160
155
  "vite": {
161
156
  "optional": true
162
157
  }
@@ -1,8 +1,7 @@
1
1
  /**
2
2
  * The inspector plugin: what it reports (every loaded document model module,
3
3
  * all specification versions), when (ready, each package reload), where (a
4
- * file, gone at shutdown), and that it keeps the Vetra codegen processor out
5
- * of a dev switchboard.
4
+ * file, gone at shutdown).
6
5
  */
7
6
  import type { HostPlugin, ResolvedPlugin } from "@powerhousedao/host-core";
8
7
  import {
@@ -229,20 +228,11 @@ describe("inspector hooks", () => {
229
228
  expect(logger.warn).toHaveBeenCalledTimes(1);
230
229
  });
231
230
 
232
- it("switches the codegen processor off unless asked to keep it", () => {
233
- const { ctx } = stubContext(new Map());
234
- expect(
235
- createInspectorPlugin({ reportFile }).hooks!.transformServerOptions!(
236
- { dev: true },
237
- ctx,
238
- ),
239
- ).toEqual({ dev: true, codegenProcessor: false });
240
- expect(
241
- createInspectorPlugin({
242
- reportFile,
243
- codegen: true,
244
- }).hooks!.transformServerOptions!({ dev: true }, ctx),
245
- ).toEqual({ dev: true });
231
+ it("accepts the retired codegen setting and changes no server option", () => {
232
+ for (const codegen of [undefined, false, true]) {
233
+ const plugin = createInspectorPlugin({ reportFile, codegen });
234
+ expect(plugin.hooks).not.toHaveProperty("transformServerOptions");
235
+ }
246
236
  });
247
237
  });
248
238
 
package/tsconfig.json CHANGED
@@ -45,9 +45,6 @@
45
45
  {
46
46
  "path": "../../packages/shared"
47
47
  },
48
- {
49
- "path": "../../packages/vetra"
50
- },
51
48
  {
52
49
  "path": "../../packages/workflow"
53
50
  }