@powerhousedao/switchboard 5.0.0-staging.2 → 5.0.0-staging.20
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 +120 -0
- package/README.md +14 -14
- package/dist/src/clients/redis.d.ts +1 -1
- package/dist/src/clients/redis.d.ts.map +1 -1
- package/dist/src/clients/redis.js.map +1 -1
- package/dist/src/server.d.ts +1 -1
- package/dist/src/server.d.ts.map +1 -1
- package/dist/src/server.js +13 -8
- package/dist/src/server.js.map +1 -1
- package/dist/src/types.d.ts +3 -1
- package/dist/src/types.d.ts.map +1 -1
- package/dist/src/utils/gen-doc-model-type-defs.d.ts +1 -1
- package/dist/src/utils/gen-doc-model-type-defs.d.ts.map +1 -1
- package/dist/src/utils.d.ts +1 -1
- package/dist/src/utils.d.ts.map +1 -1
- package/dist/src/utils.js +1 -1
- package/dist/src/utils.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +6 -5
- package/tsconfig.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,123 @@
|
|
|
1
|
+
## 5.0.0-staging.20 (2025-09-30)
|
|
2
|
+
|
|
3
|
+
This was a version bump only for @powerhousedao/switchboard to align it with other projects, there were no code changes.
|
|
4
|
+
|
|
5
|
+
## 5.0.0-staging.19 (2025-09-29)
|
|
6
|
+
|
|
7
|
+
### 🚀 Features
|
|
8
|
+
|
|
9
|
+
- **codegen:** updated editor boilerplate with document state and example setName dispatch ([3e7c51cc3](https://github.com/powerhouse-inc/powerhouse/commit/3e7c51cc3))
|
|
10
|
+
|
|
11
|
+
### ❤️ Thank You
|
|
12
|
+
|
|
13
|
+
- acaldas @acaldas
|
|
14
|
+
|
|
15
|
+
## 5.0.0-staging.18 (2025-09-29)
|
|
16
|
+
|
|
17
|
+
This was a version bump only for @powerhousedao/switchboard to align it with other projects, there were no code changes.
|
|
18
|
+
|
|
19
|
+
## 5.0.0-staging.17 (2025-09-25)
|
|
20
|
+
|
|
21
|
+
This was a version bump only for @powerhousedao/switchboard to align it with other projects, there were no code changes.
|
|
22
|
+
|
|
23
|
+
## 5.0.0-staging.16 (2025-09-25)
|
|
24
|
+
|
|
25
|
+
This was a version bump only for @powerhousedao/switchboard to align it with other projects, there were no code changes.
|
|
26
|
+
|
|
27
|
+
## 5.0.0-staging.15 (2025-09-24)
|
|
28
|
+
|
|
29
|
+
### 🚀 Features
|
|
30
|
+
|
|
31
|
+
- added watch-packages option to vetra command and disabled dynamic package loading by default ([#1875](https://github.com/powerhouse-inc/powerhouse/pull/1875))
|
|
32
|
+
|
|
33
|
+
### ❤️ Thank You
|
|
34
|
+
|
|
35
|
+
- Guillermo Puente Sandoval @gpuente
|
|
36
|
+
|
|
37
|
+
## 5.0.0-staging.14 (2025-09-23)
|
|
38
|
+
|
|
39
|
+
This was a version bump only for @powerhousedao/switchboard to align it with other projects, there were no code changes.
|
|
40
|
+
|
|
41
|
+
## 5.0.0-staging.13 (2025-09-23)
|
|
42
|
+
|
|
43
|
+
### 🚀 Features
|
|
44
|
+
|
|
45
|
+
- enable supported document types for drag and drop feature ([#1860](https://github.com/powerhouse-inc/powerhouse/pull/1860))
|
|
46
|
+
- add processor configuration support to switchboard and Vetra integration ([#1859](https://github.com/powerhouse-inc/powerhouse/pull/1859))
|
|
47
|
+
- adding reactor client to subgraph args ([d0a8011e6](https://github.com/powerhouse-inc/powerhouse/commit/d0a8011e6))
|
|
48
|
+
|
|
49
|
+
### 🩹 Fixes
|
|
50
|
+
|
|
51
|
+
- **connect-e2e:** fix failing tests ([88c3bea94](https://github.com/powerhouse-inc/powerhouse/commit/88c3bea94))
|
|
52
|
+
|
|
53
|
+
### ❤️ Thank You
|
|
54
|
+
|
|
55
|
+
- acaldas @acaldas
|
|
56
|
+
- Benjamin Jordan (@thegoldenmule)
|
|
57
|
+
- Guillermo Puente Sandoval @gpuente
|
|
58
|
+
|
|
59
|
+
## 5.0.0-staging.12 (2025-09-17)
|
|
60
|
+
|
|
61
|
+
This was a version bump only for @powerhousedao/switchboard to align it with other projects, there were no code changes.
|
|
62
|
+
|
|
63
|
+
## 5.0.0-staging.11 (2025-09-17)
|
|
64
|
+
|
|
65
|
+
### 🚀 Features
|
|
66
|
+
|
|
67
|
+
- add processor configuration support to switchboard and Vetra integration ([#1859](https://github.com/powerhouse-inc/powerhouse/pull/1859))
|
|
68
|
+
|
|
69
|
+
### ❤️ Thank You
|
|
70
|
+
|
|
71
|
+
- Guillermo Puente Sandoval @gpuente
|
|
72
|
+
|
|
73
|
+
## 5.0.0-staging.10 (2025-09-11)
|
|
74
|
+
|
|
75
|
+
### 🚀 Features
|
|
76
|
+
|
|
77
|
+
- **reactor-api:** generate sdk ([ec107015c](https://github.com/powerhouse-inc/powerhouse/commit/ec107015c))
|
|
78
|
+
- **reactor-api:** initial gql codegen ([3db9e9778](https://github.com/powerhouse-inc/powerhouse/commit/3db9e9778))
|
|
79
|
+
- **monorepo:** make format consistent across ignores ([98469560f](https://github.com/powerhouse-inc/powerhouse/commit/98469560f))
|
|
80
|
+
- **monorepo:** use consistent separate type imports ([6fd4ac0f4](https://github.com/powerhouse-inc/powerhouse/commit/6fd4ac0f4))
|
|
81
|
+
|
|
82
|
+
### 🩹 Fixes
|
|
83
|
+
|
|
84
|
+
- annoyingly, you have to add ignores to the root eslint ([bb6d993bd](https://github.com/powerhouse-inc/powerhouse/commit/bb6d993bd))
|
|
85
|
+
- **docs:** improve document hooks documentation ([d05fcb835](https://github.com/powerhouse-inc/powerhouse/commit/d05fcb835))
|
|
86
|
+
|
|
87
|
+
### ❤️ Thank You
|
|
88
|
+
|
|
89
|
+
- Benjamin Jordan (@thegoldenmule)
|
|
90
|
+
- Callme-T
|
|
91
|
+
- ryanwolhuter @ryanwolhuter
|
|
92
|
+
|
|
93
|
+
## 5.0.0-staging.9 (2025-09-09)
|
|
94
|
+
|
|
95
|
+
This was a version bump only for @powerhousedao/switchboard to align it with other projects, there were no code changes.
|
|
96
|
+
|
|
97
|
+
## 5.0.0-staging.8 (2025-09-09)
|
|
98
|
+
|
|
99
|
+
This was a version bump only for @powerhousedao/switchboard to align it with other projects, there were no code changes.
|
|
100
|
+
|
|
101
|
+
## 5.0.0-staging.7 (2025-09-09)
|
|
102
|
+
|
|
103
|
+
This was a version bump only for @powerhousedao/switchboard to align it with other projects, there were no code changes.
|
|
104
|
+
|
|
105
|
+
## 5.0.0-staging.6 (2025-09-08)
|
|
106
|
+
|
|
107
|
+
This was a version bump only for @powerhousedao/switchboard to align it with other projects, there were no code changes.
|
|
108
|
+
|
|
109
|
+
## 5.0.0-staging.5 (2025-09-08)
|
|
110
|
+
|
|
111
|
+
This was a version bump only for @powerhousedao/switchboard to align it with other projects, there were no code changes.
|
|
112
|
+
|
|
113
|
+
## 5.0.0-staging.4 (2025-09-08)
|
|
114
|
+
|
|
115
|
+
This was a version bump only for @powerhousedao/switchboard to align it with other projects, there were no code changes.
|
|
116
|
+
|
|
117
|
+
## 5.0.0-staging.3 (2025-09-08)
|
|
118
|
+
|
|
119
|
+
This was a version bump only for @powerhousedao/switchboard to align it with other projects, there were no code changes.
|
|
120
|
+
|
|
1
121
|
## 5.0.0-staging.2 (2025-09-05)
|
|
2
122
|
|
|
3
123
|
### 🩹 Fixes
|
package/README.md
CHANGED
|
@@ -56,15 +56,15 @@ pnpm add -g @powerhousedao/switchboard
|
|
|
56
56
|
|
|
57
57
|
### Environment Variables
|
|
58
58
|
|
|
59
|
-
| Variable
|
|
60
|
-
|
|
61
|
-
| `PORT`
|
|
62
|
-
| `DATABASE_URL`
|
|
63
|
-
| `REDIS_URL`
|
|
64
|
-
| `REDIS_TLS_URL`
|
|
65
|
-
| `SENTRY_DSN`
|
|
66
|
-
| `SENTRY_ENV`
|
|
67
|
-
| `PYROSCOPE_SERVER_ADDRESS` | Pyroscope server address
|
|
59
|
+
| Variable | Description | Default |
|
|
60
|
+
| -------------------------- | ----------------------------- | --------------------- |
|
|
61
|
+
| `PORT` | Server port | `4001` |
|
|
62
|
+
| `DATABASE_URL` | Database connection string | `./.ph/drive-storage` |
|
|
63
|
+
| `REDIS_URL` | Redis connection URL | - |
|
|
64
|
+
| `REDIS_TLS_URL` | Redis TLS connection URL | - |
|
|
65
|
+
| `SENTRY_DSN` | Sentry DSN for error tracking | - |
|
|
66
|
+
| `SENTRY_ENV` | Sentry environment | - |
|
|
67
|
+
| `PYROSCOPE_SERVER_ADDRESS` | Pyroscope server address | - |
|
|
68
68
|
|
|
69
69
|
### Authentication Configuration
|
|
70
70
|
|
|
@@ -72,10 +72,10 @@ pnpm add -g @powerhousedao/switchboard
|
|
|
72
72
|
const options = {
|
|
73
73
|
auth: {
|
|
74
74
|
enabled: true,
|
|
75
|
-
guests: [
|
|
76
|
-
users: [
|
|
77
|
-
admins: [
|
|
78
|
-
}
|
|
75
|
+
guests: ["0x123", "0x456"],
|
|
76
|
+
users: ["0x789", "0xabc"],
|
|
77
|
+
admins: ["0xdef", "0xghi"],
|
|
78
|
+
},
|
|
79
79
|
};
|
|
80
80
|
```
|
|
81
81
|
|
|
@@ -92,7 +92,7 @@ Switchboard supports multiple storage backends:
|
|
|
92
92
|
### Using Docker Compose
|
|
93
93
|
|
|
94
94
|
```yaml
|
|
95
|
-
version:
|
|
95
|
+
version: "3.8"
|
|
96
96
|
services:
|
|
97
97
|
switchboard:
|
|
98
98
|
image: powerhouse/switchboard:latest
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { RedisClientType } from "redis";
|
|
2
2
|
export declare let redisClient: RedisClientType | undefined;
|
|
3
3
|
export declare const initRedis: (url: string) => Promise<RedisClientType | undefined>;
|
|
4
4
|
export declare const closeRedis: () => Promise<void> | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"redis.d.ts","sourceRoot":"","sources":["../../../src/clients/redis.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"redis.d.ts","sourceRoot":"","sources":["../../../src/clients/redis.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,OAAO,CAAC;AAG7C,eAAO,IAAI,WAAW,EAAE,eAAe,GAAG,SAAS,CAAC;AACpD,eAAO,MAAM,SAAS,GACpB,KAAK,MAAM,KACV,OAAO,CAAC,eAAe,GAAG,SAAS,CAiCrC,CAAC;AAeF,eAAO,MAAM,UAAU,iCAItB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"redis.js","sourceRoot":"","sources":["../../../src/clients/redis.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"redis.js","sourceRoot":"","sources":["../../../src/clients/redis.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAErC,MAAM,CAAC,IAAI,WAAwC,CAAC;AACpD,MAAM,CAAC,MAAM,SAAS,GAAG,KAAK,EAC5B,GAAW,EAC2B,EAAE;IACxC,IAAI,WAAW,EAAE,CAAC;QAChB,OAAO,WAAW,CAAC;IACrB,CAAC;IAED,OAAO,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE;QACrC,MAAM,MAAM,GAAG,GAAG,CAAC,QAAQ,CAAC,QAAQ,CAAC;YACnC,CAAC,CAAC;gBACE,GAAG,EAAE,IAAI;gBACT,kBAAkB,EAAE,KAAK;aAC1B;YACH,CAAC,CAAC,SAAS,CAAC;QACd,WAAW,GAAG,YAAY,CAAC;YACzB,GAAG;YACH,MAAM;SACP,CAAC,CAAC;QAEH,WAAW;aACR,OAAO,EAAE;aACT,IAAI,CAAC,CAAC,MAAM,EAAE,EAAE;YACf,WAAW,GAAG,MAAM,CAAC;YAErB,MAAM,CAAC,EAAE,CAAC,OAAO,EAAE,CAAC,GAAG,EAAE,EAAE;gBACzB,OAAO,CAAC,IAAI,CAAC,oBAAoB,EAAE,GAAG,CAAC,CAAC;YAC1C,CAAC,CAAC,CAAC;YACH,OAAO,CAAC,MAAM,CAAC,CAAC;QAClB,CAAC,CAAC;aACD,KAAK,CAAC,KAAK,EAAE,CAAU,EAAE,EAAE;YAC1B,MAAM,CAAC,CAAC,YAAY,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,KAAK,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;YAC9D,kCAAkC;YAClC,yCAAyC;QAC3C,CAAC,CAAC,CAAC;IACP,CAAC,CAAC,CAAC;AACL,CAAC,CAAC;AAEF,MAAM,KAAK,GAAG,WAAW,CACvB,KAAK,IAAI,EAAE;IACT,IAAI,CAAC;QACH,IAAI,WAAW,EAAE,CAAC;YAChB,MAAM,WAAW,CAAC,IAAI,EAAE,CAAC;QAC3B,CAAC;IACH,CAAC;IAAC,OAAO,GAAG,EAAE,CAAC;QACb,OAAO,CAAC,KAAK,CAAC,qBAAqB,EAAE,GAAG,CAAC,CAAC;IAC5C,CAAC;AACH,CAAC,EACD,IAAI,GAAG,EAAE,GAAG,CAAC,CACd,CAAC;AAEF,MAAM,CAAC,MAAM,UAAU,GAAG,GAAG,EAAE;IAC7B,aAAa,CAAC,KAAK,CAAC,CAAC;IAErB,OAAO,WAAW,EAAE,UAAU,EAAE,CAAC;AACnC,CAAC,CAAC"}
|
package/dist/src/server.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import {
|
|
2
|
+
import type { StartServerOptions, SwitchboardReactor } from "./types.js";
|
|
3
3
|
export declare const startSwitchboard: (options?: StartServerOptions) => Promise<SwitchboardReactor>;
|
|
4
4
|
export * from "./types.js";
|
|
5
5
|
//# sourceMappingURL=server.d.ts.map
|
package/dist/src/server.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../../src/server.ts"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../../src/server.ts"],"names":[],"mappings":";AAgCA,OAAO,KAAK,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAC;AAsJzE,eAAO,MAAM,gBAAgB,GAC3B,UAAS,kBAAuB,KAC/B,OAAO,CAAC,kBAAkB,CAmB5B,CAAC;AAEF,cAAc,YAAY,CAAC"}
|
package/dist/src/server.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
+
import { EventBus, InMemoryQueue, Reactor, ReactorClientBuilder, } from "@powerhousedao/reactor";
|
|
2
3
|
import { startAPI } from "@powerhousedao/reactor-api";
|
|
3
4
|
import { VitePackageLoader, startViteServer, } from "@powerhousedao/reactor-api/packages/vite-loader";
|
|
4
5
|
import * as Sentry from "@sentry/node";
|
|
@@ -7,7 +8,7 @@ import RedisCache from "document-drive/cache/redis";
|
|
|
7
8
|
import { DocumentAlreadyExistsError } from "document-drive/server/error";
|
|
8
9
|
import { FilesystemStorage } from "document-drive/storage/filesystem";
|
|
9
10
|
import { PrismaStorageFactory } from "document-drive/storage/prisma";
|
|
10
|
-
import { documentModelDocumentModelModule
|
|
11
|
+
import { documentModelDocumentModelModule } from "document-model";
|
|
11
12
|
import dotenv from "dotenv";
|
|
12
13
|
import express from "express";
|
|
13
14
|
import path from "path";
|
|
@@ -51,7 +52,7 @@ async function initServer(serverPort, options) {
|
|
|
51
52
|
const storage = storageFactory
|
|
52
53
|
? storageFactory.build()
|
|
53
54
|
: new FilesystemStorage(path.join(process.cwd(), dbUrl));
|
|
54
|
-
const
|
|
55
|
+
const driveServer = new ReactorBuilder([
|
|
55
56
|
documentModelDocumentModelModule,
|
|
56
57
|
driveDocumentModelModule,
|
|
57
58
|
])
|
|
@@ -59,17 +60,20 @@ async function initServer(serverPort, options) {
|
|
|
59
60
|
.withCache(cache)
|
|
60
61
|
.build();
|
|
61
62
|
// init drive server
|
|
62
|
-
await
|
|
63
|
+
await driveServer.initialize();
|
|
64
|
+
const queue = new InMemoryQueue(new EventBus());
|
|
65
|
+
const reactor = new Reactor(driveServer, storage, queue);
|
|
66
|
+
const client = new ReactorClientBuilder().withReactor(reactor).build();
|
|
63
67
|
const dbPath = dbUrl.startsWith("postgresql") ? dbUrl : ".ph/read-storage";
|
|
64
68
|
let defaultDriveUrl = undefined;
|
|
65
69
|
// Create default drive if provided
|
|
66
70
|
if (options.drive) {
|
|
67
|
-
defaultDriveUrl = await addDefaultDrive(
|
|
71
|
+
defaultDriveUrl = await addDefaultDrive(driveServer, options.drive, serverPort);
|
|
68
72
|
}
|
|
69
73
|
// start vite server if dev mode is enabled
|
|
70
74
|
const vite = dev ? await startViteServer() : undefined;
|
|
71
75
|
// get paths to local document models
|
|
72
|
-
if (dev) {
|
|
76
|
+
if (dev && !options.disableLocalPackages) {
|
|
73
77
|
// TODO get path from powerhouse config
|
|
74
78
|
const basePath = process.cwd();
|
|
75
79
|
packages.push(basePath);
|
|
@@ -77,13 +81,14 @@ async function initServer(serverPort, options) {
|
|
|
77
81
|
// create loader
|
|
78
82
|
const packageLoader = vite ? await VitePackageLoader.build(vite) : undefined;
|
|
79
83
|
// Start the API with the reactor and options
|
|
80
|
-
const api = await startAPI(
|
|
84
|
+
const api = await startAPI(driveServer, client, {
|
|
81
85
|
express: app,
|
|
82
86
|
port: serverPort,
|
|
83
87
|
dbPath: options.dbPath ?? dbPath,
|
|
84
88
|
https: options.https,
|
|
85
89
|
packageLoader,
|
|
86
90
|
packages: packages,
|
|
91
|
+
processorConfig: options.processorConfig,
|
|
87
92
|
configFile: options.configFile ?? path.join(process.cwd(), "powerhouse.config.json"),
|
|
88
93
|
mcp: options.mcp ?? true,
|
|
89
94
|
});
|
|
@@ -95,7 +100,7 @@ async function initServer(serverPort, options) {
|
|
|
95
100
|
if (remoteDrives.length > 0) {
|
|
96
101
|
for (const remoteDriveUrl of remoteDrives) {
|
|
97
102
|
try {
|
|
98
|
-
await
|
|
103
|
+
await driveServer.addRemoteDrive(remoteDriveUrl, {
|
|
99
104
|
availableOffline: true,
|
|
100
105
|
sharingType: "public",
|
|
101
106
|
listeners: [],
|
|
@@ -123,7 +128,7 @@ async function initServer(serverPort, options) {
|
|
|
123
128
|
return {
|
|
124
129
|
defaultDriveUrl,
|
|
125
130
|
api,
|
|
126
|
-
reactor,
|
|
131
|
+
reactor: driveServer,
|
|
127
132
|
};
|
|
128
133
|
}
|
|
129
134
|
export const startSwitchboard = async (options = {}) => {
|
package/dist/src/server.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"server.js","sourceRoot":"","sources":["../../src/server.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,4BAA4B,CAAC;AACtD,OAAO,EACL,iBAAiB,EACjB,eAAe,GAChB,MAAM,iDAAiD,CAAC;AACzD,OAAO,KAAK,MAAM,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"server.js","sourceRoot":"","sources":["../../src/server.ts"],"names":[],"mappings":";AACA,OAAO,EACL,QAAQ,EACR,aAAa,EACb,OAAO,EACP,oBAAoB,GACrB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,QAAQ,EAAE,MAAM,4BAA4B,CAAC;AACtD,OAAO,EACL,iBAAiB,EACjB,eAAe,GAChB,MAAM,iDAAiD,CAAC;AACzD,OAAO,KAAK,MAAM,MAAM,cAAc,CAAC;AAEvC,OAAO,EACL,aAAa,EACb,cAAc,EACd,wBAAwB,GACzB,MAAM,gBAAgB,CAAC;AACxB,OAAO,UAAU,MAAM,4BAA4B,CAAC;AACpD,OAAO,EAAE,0BAA0B,EAAE,MAAM,6BAA6B,CAAC;AACzE,OAAO,EAAE,iBAAiB,EAAE,MAAM,mCAAmC,CAAC;AACtE,OAAO,EAAE,oBAAoB,EAAE,MAAM,+BAA+B,CAAC;AAGrE,OAAO,EAAE,gCAAgC,EAAE,MAAM,gBAAgB,CAAC;AAClE,OAAO,MAAM,MAAM,QAAQ,CAAC;AAC5B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AC,GAAG,CAAC,wBAAwB,EAAE,CAAC;QACzC,IAAI,CAAC;YACH,MAAM,mBAAmB,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;QACzC,CAAC;QAAC,OAAO,CAAC,EAAE,CAAC;YACX,MAAM,CAAC,gBAAgB,CAAC,CAAC,CAAC,CAAC;YAC3B,OAAO,CAAC,KAAK,CAAC,yBAAyB,EAAE,CAAC,CAAC,CAAC;QAC9C,CAAC;IACH,CAAC;IAED,IAAI,CAAC;QACH,OAAO,MAAM,UAAU,CAAC,UAAU,EAAE,OAAO,CAAC,CAAC;IAC/C,CAAC;IAAC,OAAO,CAAC,EAAE,CAAC;QACX,MAAM,CAAC,gBAAgB,CAAC,CAAC,CAAC,CAAC;QAC3B,OAAO,CAAC,KAAK,CAAC,aAAa,EAAE,CAAC,CAAC,CAAC;QAChC,MAAM,CAAC,CAAC;IACV,CAAC;AACH,CAAC,CAAC;AAEF,cAAc,YAAY,CAAC"}
|
package/dist/src/types.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { DriveInput, IDocumentDriveServer } from "document-drive";
|
|
2
2
|
export type StorageOptions = {
|
|
3
3
|
type: "filesystem" | "memory" | "postgres" | "browser";
|
|
4
4
|
filesystemPath?: string;
|
|
@@ -23,6 +23,8 @@ export type StartServerOptions = {
|
|
|
23
23
|
admins: string[];
|
|
24
24
|
};
|
|
25
25
|
mcp?: boolean;
|
|
26
|
+
processorConfig?: Map<string, unknown>;
|
|
27
|
+
disableLocalPackages?: boolean;
|
|
26
28
|
};
|
|
27
29
|
export type SwitchboardReactor = {
|
|
28
30
|
defaultDriveUrl: string | undefined;
|
package/dist/src/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../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
export declare const getDocumentModelTypeDefs: (documentDriveServer: BaseDocumentDriveServer, typeDefs: string) => import("graphql").DocumentNode;
|
|
3
3
|
//# sourceMappingURL=gen-doc-model-type-defs.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"gen-doc-model-type-defs.d.ts","sourceRoot":"","sources":["../../../src/utils/gen-doc-model-type-defs.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"gen-doc-model-type-defs.d.ts","sourceRoot":"","sources":["../../../src/utils/gen-doc-model-type-defs.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,gBAAgB,CAAC;AAG9D,eAAO,MAAM,wBAAwB,GACnC,qBAAqB,uBAAuB,EAC5C,UAAU,MAAM,mCA2DjB,CAAC"}
|
package/dist/src/utils.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { DriveInput, IDocumentDriveServer } from "document-drive";
|
|
2
2
|
export declare function addDefaultDrive(driveServer: IDocumentDriveServer, drive: DriveInput, serverPort: number): Promise<string>;
|
|
3
3
|
//# sourceMappingURL=utils.d.ts.map
|
package/dist/src/utils.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/utils.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;AAGvE,wBAAsB,eAAe,CACnC,WAAW,EAAE,oBAAoB,EACjC,KAAK,EAAE,UAAU,EACjB,UAAU,EAAE,MAAM,mBAqBnB"}
|
package/dist/src/utils.js
CHANGED
package/dist/src/utils.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../src/utils.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../src/utils.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,0BAA0B,EAAE,MAAM,gBAAgB,CAAC;AAE5D,MAAM,CAAC,KAAK,UAAU,eAAe,CACnC,WAAiC,EACjC,KAAiB,EACjB,UAAkB;IAElB,IAAI,OAAO,GAAG,KAAK,CAAC,EAAE,CAAC;IACvB,IAAI,CAAC,OAAO,IAAI,OAAO,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QACrC,OAAO,GAAG,KAAK,CAAC,IAAI,CAAC;IACvB,CAAC;IAED,IAAI,CAAC,OAAO,IAAI,OAAO,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QACrC,MAAM,IAAI,KAAK,CAAC,kBAAkB,CAAC,CAAC;IACtC,CAAC;IAED,IAAI,CAAC;QACH,oBAAoB;QACpB,MAAM,WAAW,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;IACpC,CAAC;IAAC,OAAO,CAAC,EAAE,CAAC;QACX,IAAI,CAAC,CAAC,CAAC,YAAY,0BAA0B,CAAC,EAAE,CAAC;YAC/C,MAAM,CAAC,CAAC;QACV,CAAC;IACH,CAAC;IAED,OAAO,oBAAoB,UAAU,MAAM,OAAO,EAAE,CAAC;AACvD,CAAC"}
|