@powerhousedao/reactor-local 4.0.4 → 4.1.0-dev.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/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/src/default-processors.d.ts +8 -0
- package/dist/src/default-processors.d.ts.map +1 -0
- package/dist/src/default-processors.js +8 -0
- package/dist/src/default-processors.js.map +1 -0
- package/dist/src/server.d.ts.map +1 -1
- package/dist/src/server.js +71 -11
- package/dist/src/server.js.map +1 -1
- package/dist/src/types.d.ts +7 -2
- package/dist/src/types.d.ts.map +1 -1
- package/dist/src/types.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +7 -6
package/dist/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export { startServer } from "./src/server.js";
|
|
2
|
-
export { DefaultStartServerOptions, type LocalReactor, type
|
|
2
|
+
export { DefaultStartServerOptions, type LocalReactor, type RemoteDriveInputSimple, type StartServerOptions } from "./src/types.js";
|
|
3
3
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAE9C,OAAO,EACL,yBAAyB,EACzB,KAAK,YAAY,EACjB,KAAK,kBAAkB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAE9C,OAAO,EACL,yBAAyB,EACzB,KAAK,YAAY,EACjB,KAAK,sBAAsB,EAC3B,KAAK,kBAAkB,EACxB,MAAM,gBAAgB,CAAC"}
|
package/dist/index.js
CHANGED
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAE9C,OAAO,EACL,yBAAyB,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAE9C,OAAO,EACL,yBAAyB,EAI1B,MAAM,gBAAgB,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { type Processor } from "@powerhousedao/reactor-api";
|
|
2
|
+
declare const PROCESSOR_KEYS: {
|
|
3
|
+
readonly CODEGEN: "ph/codegen/processor";
|
|
4
|
+
};
|
|
5
|
+
export declare const DEFAULT_PROCESSORS: Record<string, Processor>;
|
|
6
|
+
export type DefaultProcessors = (typeof PROCESSOR_KEYS)[keyof typeof PROCESSOR_KEYS];
|
|
7
|
+
export {};
|
|
8
|
+
//# sourceMappingURL=default-processors.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"default-processors.d.ts","sourceRoot":"","sources":["../../src/default-processors.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,4BAA4B,CAAC;AAG5D,QAAA,MAAM,cAAc;;CAEV,CAAC;AAEX,eAAO,MAAM,kBAAkB,EAAE,MAAM,CAAC,MAAM,EAAE,SAAS,CAExD,CAAC;AAEF,MAAM,MAAM,iBAAiB,GAC3B,CAAC,OAAO,cAAc,CAAC,CAAC,MAAM,OAAO,cAAc,CAAC,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { codegenProcessorFactory } from "@powerhousedao/vetra/processors";
|
|
2
|
+
const PROCESSOR_KEYS = {
|
|
3
|
+
CODEGEN: "ph/codegen/processor",
|
|
4
|
+
};
|
|
5
|
+
export const DEFAULT_PROCESSORS = {
|
|
6
|
+
[PROCESSOR_KEYS.CODEGEN]: [codegenProcessorFactory],
|
|
7
|
+
};
|
|
8
|
+
//# sourceMappingURL=default-processors.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"default-processors.js","sourceRoot":"","sources":["../../src/default-processors.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,uBAAuB,EAAE,MAAM,iCAAiC,CAAC;AAE1E,MAAM,cAAc,GAAG;IACrB,OAAO,EAAE,sBAAsB;CACvB,CAAC;AAEX,MAAM,CAAC,MAAM,kBAAkB,GAA8B;IAC3D,CAAC,cAAc,CAAC,OAAO,CAAC,EAAE,CAAC,uBAAuB,CAAC;CACpD,CAAC"}
|
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":"AAWA,OAAO,EAEL,KAAK,YAAY,EAEjB,KAAK,kBAAkB,EACxB,MAAM,YAAY,CAAC;AAgDpB,QAAA,MAAM,WAAW,GACf,UAAU,kBAAkB,KAC3B,OAAO,CAAC,YAAY,CA+GtB,CAAC;AAEF,OAAO,EAAE,WAAW,EAAE,CAAC"}
|
package/dist/src/server.js
CHANGED
|
@@ -1,15 +1,54 @@
|
|
|
1
1
|
import { isLogLevel } from "@powerhousedao/config";
|
|
2
2
|
import { startAPI } from "@powerhousedao/reactor-api";
|
|
3
|
-
import { InMemoryCache, logger, ReactorBuilder } from "document-drive";
|
|
3
|
+
import { InMemoryCache, logger, ReactorBuilder, } from "document-drive";
|
|
4
4
|
import dotenv from "dotenv";
|
|
5
5
|
import path from "node:path";
|
|
6
|
+
import { DEFAULT_PROCESSORS } from "./default-processors.js";
|
|
6
7
|
import { DefaultStartServerOptions, } from "./types.js";
|
|
7
8
|
import { addDefaultDrive, createStorage, startViteServer } from "./util.js";
|
|
8
9
|
import { VitePackageLoader } from "./vite-loader.js";
|
|
9
10
|
dotenv.config();
|
|
11
|
+
/**
|
|
12
|
+
* Normalizes remote drive input to DefaultRemoteDriveInput format.
|
|
13
|
+
* If a string URL is provided, it uses Connect-compatible defaults.
|
|
14
|
+
*/
|
|
15
|
+
function normalizeRemoteDriveInput(input) {
|
|
16
|
+
if (typeof input === "string") {
|
|
17
|
+
// URL-only input, use Connect-compatible defaults
|
|
18
|
+
return {
|
|
19
|
+
url: input,
|
|
20
|
+
options: {
|
|
21
|
+
sharingType: "public",
|
|
22
|
+
availableOffline: true,
|
|
23
|
+
listeners: [
|
|
24
|
+
{
|
|
25
|
+
block: true,
|
|
26
|
+
callInfo: {
|
|
27
|
+
data: input,
|
|
28
|
+
name: "switchboard-push",
|
|
29
|
+
transmitterType: "SwitchboardPush",
|
|
30
|
+
},
|
|
31
|
+
filter: {
|
|
32
|
+
branch: ["main"],
|
|
33
|
+
documentId: ["*"],
|
|
34
|
+
documentType: ["*"],
|
|
35
|
+
scope: ["global"],
|
|
36
|
+
},
|
|
37
|
+
label: "Switchboard Sync",
|
|
38
|
+
listenerId: "1",
|
|
39
|
+
system: true,
|
|
40
|
+
},
|
|
41
|
+
],
|
|
42
|
+
triggers: [],
|
|
43
|
+
},
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
// Already a complete configuration, return as-is
|
|
47
|
+
return input;
|
|
48
|
+
}
|
|
10
49
|
const startServer = async (options) => {
|
|
11
50
|
process.setMaxListeners(0);
|
|
12
|
-
const { port, storage, drive, dev, dbPath, packages = [], configFile, logLevel, } = {
|
|
51
|
+
const { port, storage, drive, dev, dbPath, packages = [], configFile, logLevel, remoteDrives = [], } = {
|
|
13
52
|
...DefaultStartServerOptions,
|
|
14
53
|
...options,
|
|
15
54
|
};
|
|
@@ -28,15 +67,21 @@ const startServer = async (options) => {
|
|
|
28
67
|
}
|
|
29
68
|
// create document drive server with all available document models & storage
|
|
30
69
|
const cache = new InMemoryCache();
|
|
31
|
-
const
|
|
70
|
+
const reactorBuilder = new ReactorBuilder([])
|
|
32
71
|
.withCache(cache)
|
|
33
|
-
.withStorage(createStorage(storage, cache))
|
|
34
|
-
|
|
35
|
-
// init drive server + add a default drive
|
|
72
|
+
.withStorage(createStorage(storage, cache));
|
|
73
|
+
const driveServer = reactorBuilder.build();
|
|
74
|
+
// init drive server + conditionally add a default drive
|
|
36
75
|
await driveServer.initialize();
|
|
37
|
-
const driveUrl =
|
|
76
|
+
const driveUrl = options?.disableDefaultDrive
|
|
77
|
+
? null
|
|
78
|
+
: await addDefaultDrive(driveServer, drive, serverPort);
|
|
38
79
|
// create loader
|
|
39
80
|
const packageLoader = vite ? new VitePackageLoader(vite) : undefined;
|
|
81
|
+
const processors = options?.processors?.reduce((acc, processor) => {
|
|
82
|
+
acc[processor] = DEFAULT_PROCESSORS[processor];
|
|
83
|
+
return acc;
|
|
84
|
+
}, {});
|
|
40
85
|
// start api
|
|
41
86
|
const api = await startAPI(driveServer, {
|
|
42
87
|
port: serverPort,
|
|
@@ -45,15 +90,30 @@ const startServer = async (options) => {
|
|
|
45
90
|
packageLoader,
|
|
46
91
|
configFile,
|
|
47
92
|
packages,
|
|
48
|
-
|
|
49
|
-
// "ph/common/drive-analytics": [DriveAnalyticsProcessorFactory],
|
|
50
|
-
// },
|
|
93
|
+
processors,
|
|
51
94
|
});
|
|
52
95
|
// add vite middleware after express app is initialized if applicable
|
|
53
96
|
if (vite) {
|
|
54
97
|
api.app.use(vite.middlewares);
|
|
55
98
|
}
|
|
56
|
-
|
|
99
|
+
// Add remote drives after full initialization (including PackageManager)
|
|
100
|
+
if (remoteDrives.length > 0) {
|
|
101
|
+
const processedRemoteDrives = remoteDrives.map(normalizeRemoteDriveInput);
|
|
102
|
+
for (const remoteDrive of processedRemoteDrives) {
|
|
103
|
+
try {
|
|
104
|
+
await driveServer.addRemoteDrive(remoteDrive.url, remoteDrive.options);
|
|
105
|
+
}
|
|
106
|
+
catch (error) {
|
|
107
|
+
logger.error(` ➜ Failed to connect to remote drive ${remoteDrive.url}:`, error);
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
if (driveUrl) {
|
|
112
|
+
logger.info(` ➜ Reactor: ${driveUrl}`);
|
|
113
|
+
}
|
|
114
|
+
else {
|
|
115
|
+
logger.info(` ➜ Reactor: http://localhost:${serverPort}/graphql (no default drive)`);
|
|
116
|
+
}
|
|
57
117
|
return {
|
|
58
118
|
driveUrl,
|
|
59
119
|
getDocumentPath: (driveId, documentId) => {
|
package/dist/src/server.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"server.js","sourceRoot":"","sources":["../../src/server.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AACnD,OAAO,EAAE,QAAQ,
|
|
1
|
+
{"version":3,"file":"server.js","sourceRoot":"","sources":["../../src/server.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AACnD,OAAO,EAAE,QAAQ,EAAkB,MAAM,4BAA4B,CAAC;AACtE,OAAO,EACL,aAAa,EACb,MAAM,EACN,cAAc,GAEf,MAAM,gBAAgB,CAAC;AACxB,OAAO,MAAM,MAAM,QAAQ,CAAC;AAC5B,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAC7D,OAAO,EACL,yBAAyB,GAI1B,MAAM,YAAY,CAAC;AACpB,OAAO,EAAE,eAAe,EAAE,aAAa,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AAC5E,OAAO,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAErD,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;GAGG;AACH,SAAS,yBAAyB,CAChC,KAA6B;IAE7B,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE,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QACD,MAAM,EAAE,WAAW;KACpB,CAAC;AACJ,CAAC,CAAC;AAEF,OAAO,EAAE,WAAW,EAAE,CAAC"}
|
package/dist/src/types.d.ts
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { type LogLevel } from "@powerhousedao/config";
|
|
2
|
-
import { type DriveInput, type IDocumentDriveServer } from "document-drive";
|
|
2
|
+
import { type DefaultRemoteDriveInput, type DriveInput, type IDocumentDriveServer } from "document-drive";
|
|
3
|
+
import { type DefaultProcessors } from "./default-processors.js";
|
|
4
|
+
export type RemoteDriveInputSimple = string | DefaultRemoteDriveInput;
|
|
3
5
|
export type StorageOptions = {
|
|
4
6
|
type: "filesystem" | "memory" | "postgres" | "browser";
|
|
5
7
|
filesystemPath?: string;
|
|
@@ -12,12 +14,15 @@ export type StartServerOptions = {
|
|
|
12
14
|
storage?: StorageOptions;
|
|
13
15
|
dbPath?: string;
|
|
14
16
|
drive?: DriveInput;
|
|
17
|
+
disableDefaultDrive?: boolean;
|
|
15
18
|
packages?: string[];
|
|
16
19
|
https?: {
|
|
17
20
|
keyPath: string;
|
|
18
21
|
certPath: string;
|
|
19
22
|
} | boolean | undefined;
|
|
20
23
|
logLevel?: LogLevel;
|
|
24
|
+
remoteDrives?: RemoteDriveInputSimple[];
|
|
25
|
+
processors?: Array<DefaultProcessors>;
|
|
21
26
|
};
|
|
22
27
|
export declare const DefaultStartServerOptions: {
|
|
23
28
|
port: number;
|
|
@@ -42,7 +47,7 @@ export declare const DefaultStartServerOptions: {
|
|
|
42
47
|
};
|
|
43
48
|
};
|
|
44
49
|
export type LocalReactor = {
|
|
45
|
-
driveUrl: string;
|
|
50
|
+
driveUrl: string | null;
|
|
46
51
|
getDocumentPath: (driveId: string, documentId: string) => string;
|
|
47
52
|
server: IDocumentDriveServer;
|
|
48
53
|
};
|
package/dist/src/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src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AAC;AAEF,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;CAqBR,CAAC;AAE/B,MAAM,MAAM,YAAY,GAAG;IACzB,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,eAAe,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,KAAK,MAAM,CAAC;IACjE,MAAM,EAAE,oBAAoB,CAAC;CAC9B,CAAC"}
|
package/dist/src/types.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/types.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/types.ts"],"names":[],"mappings":"AAMA,OAAO,IAAI,MAAM,WAAW,CAAC;AAiC7B,MAAM,CAAC,MAAM,yBAAyB,GAAG;IACvC,IAAI,EAAE,IAAI;IACV,OAAO,EAAE;QACP,IAAI,EAAE,YAAY;QAClB,cAAc,EAAE,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,GAAG,EAAE,EAAE,kBAAkB,CAAC;KAC7D;IACD,MAAM,EAAE,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,GAAG,EAAE,EAAE,mBAAmB,CAAC;IACrD,KAAK,EAAE;QACL,EAAE,EAAE,YAAY;QAChB,IAAI,EAAE,YAAY;QAClB,MAAM,EAAE;YACN,IAAI,EAAE,YAAY;YAClB,IAAI,EAAE,qEAAqE;SAC5E;QACD,KAAK,EAAE;YACL,gBAAgB,EAAE,IAAI;YACtB,SAAS,EAAE,EAAE;YACb,WAAW,EAAE,QAAQ;YACrB,QAAQ,EAAE,EAAE;SACb;KACF;CAC2B,CAAC"}
|