@powerhousedao/reactor-local 6.0.0-dev.11 → 6.0.0-dev.110
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/src/server.d.ts.map +1 -1
- package/dist/src/server.js +67 -83
- package/dist/src/server.js.map +1 -1
- package/dist/src/types.d.ts +6 -3
- 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 +8 -27
- package/dist/src/util.d.ts +0 -5
- package/dist/src/util.d.ts.map +0 -1
- package/dist/src/util.js +0 -46
- package/dist/src/util.js.map +0 -1
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":"AAoBA,OAAO,KAAK,EACV,YAAY,EAGZ,kBAAkB,EACnB,MAAM,YAAY,CAAC;AAcpB,QAAA,MAAM,WAAW,GACf,UAAU,kBAAkB,KAC3B,OAAO,CAAC,YAAY,CA+JtB,CAAC;AAEF,OAAO,EAAE,WAAW,EAAE,CAAC"}
|
package/dist/src/server.js
CHANGED
|
@@ -1,53 +1,21 @@
|
|
|
1
1
|
import { isLogLevel } from "@powerhousedao/config";
|
|
2
|
-
import { EventBus, ReactorBuilder, ReactorClientBuilder, } from "@powerhousedao/reactor";
|
|
3
|
-
import { VitePackageLoader,
|
|
4
|
-
import {
|
|
2
|
+
import { EventBus, ReactorBuilder, ReactorClientBuilder, driveCollectionId, parseDriveUrl, } from "@powerhousedao/reactor";
|
|
3
|
+
import { VitePackageLoader, initializeAndStartAPI, startViteServer, } from "@powerhousedao/reactor-api";
|
|
4
|
+
import { driveCreateDocument, driveCreateState, } from "@powerhousedao/shared/document-drive";
|
|
5
|
+
import { logger } from "document-model";
|
|
5
6
|
import dotenv from "dotenv";
|
|
6
7
|
import path from "node:path";
|
|
7
8
|
import { DefaultStartServerOptions } from "./types.js";
|
|
8
|
-
import { addDefaultDrive, createStorage } from "./util.js";
|
|
9
|
-
dotenv.config();
|
|
10
|
-
/**
|
|
11
|
-
* Normalizes remote drive input to DefaultRemoteDriveInput format.
|
|
12
|
-
* If a string URL is provided, it uses Connect-compatible defaults.
|
|
13
|
-
*/
|
|
14
9
|
function normalizeRemoteDriveInput(input) {
|
|
15
10
|
if (typeof input === "string") {
|
|
16
|
-
|
|
17
|
-
return {
|
|
18
|
-
url: input,
|
|
19
|
-
options: {
|
|
20
|
-
sharingType: "public",
|
|
21
|
-
availableOffline: true,
|
|
22
|
-
listeners: [
|
|
23
|
-
{
|
|
24
|
-
block: true,
|
|
25
|
-
callInfo: {
|
|
26
|
-
data: input,
|
|
27
|
-
name: "switchboard-push",
|
|
28
|
-
transmitterType: "SwitchboardPush",
|
|
29
|
-
},
|
|
30
|
-
filter: {
|
|
31
|
-
branch: ["main"],
|
|
32
|
-
documentId: ["*"],
|
|
33
|
-
documentType: ["*"],
|
|
34
|
-
scope: ["global"],
|
|
35
|
-
},
|
|
36
|
-
label: "Switchboard Sync",
|
|
37
|
-
listenerId: "1",
|
|
38
|
-
system: true,
|
|
39
|
-
},
|
|
40
|
-
],
|
|
41
|
-
triggers: [],
|
|
42
|
-
},
|
|
43
|
-
};
|
|
11
|
+
return { url: input };
|
|
44
12
|
}
|
|
45
|
-
// Already a complete configuration, return as-is
|
|
46
13
|
return input;
|
|
47
14
|
}
|
|
15
|
+
dotenv.config();
|
|
48
16
|
const startServer = async (options) => {
|
|
49
17
|
process.setMaxListeners(0);
|
|
50
|
-
const { port, storage,
|
|
18
|
+
const { port, storage, dev, drive, dbPath, packages = [], configFile, logLevel, remoteDrives = [], mcp, } = {
|
|
51
19
|
...DefaultStartServerOptions,
|
|
52
20
|
...options,
|
|
53
21
|
};
|
|
@@ -64,46 +32,17 @@ const startServer = async (options) => {
|
|
|
64
32
|
if (dev) {
|
|
65
33
|
packages.push(basePath);
|
|
66
34
|
}
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
.
|
|
73
|
-
|
|
74
|
-
featureFlags: {
|
|
75
|
-
enableDualActionCreate: true,
|
|
76
|
-
},
|
|
77
|
-
});
|
|
78
|
-
const driveServer = reactorBuilder.build();
|
|
79
|
-
const eventBus = new EventBus();
|
|
80
|
-
const builder = new ReactorBuilder()
|
|
81
|
-
.withEventBus(eventBus)
|
|
82
|
-
.withLegacyStorage(storageImpl)
|
|
83
|
-
.withFeatures({
|
|
84
|
-
legacyStorageEnabled: true,
|
|
85
|
-
});
|
|
86
|
-
const clientModule = await new ReactorClientBuilder()
|
|
87
|
-
.withReactorBuilder(builder)
|
|
88
|
-
.buildModule();
|
|
89
|
-
const client = clientModule.client;
|
|
90
|
-
const syncManager = clientModule.reactorModule?.syncModule?.syncManager;
|
|
91
|
-
if (!syncManager) {
|
|
92
|
-
throw new Error("SyncManager not available from ReactorClientBuilder");
|
|
93
|
-
}
|
|
94
|
-
const registry = clientModule.reactorModule?.documentModelRegistry;
|
|
95
|
-
if (!registry) {
|
|
96
|
-
throw new Error("DocumentModelRegistry not available from ReactorClientBuilder");
|
|
97
|
-
}
|
|
98
|
-
// init drive server + conditionally add a default drive
|
|
99
|
-
await driveServer.initialize();
|
|
100
|
-
const driveUrl = options?.disableDefaultDrive
|
|
101
|
-
? null
|
|
102
|
-
: await addDefaultDrive(driveServer, drive, serverPort);
|
|
35
|
+
const initializeClient = async (documentModels) => {
|
|
36
|
+
const eventBus = new EventBus();
|
|
37
|
+
const builder = new ReactorBuilder()
|
|
38
|
+
.withEventBus(eventBus)
|
|
39
|
+
.withDocumentModels(documentModels);
|
|
40
|
+
return new ReactorClientBuilder().withReactorBuilder(builder).buildModule();
|
|
41
|
+
};
|
|
103
42
|
// create loader
|
|
104
43
|
const packageLoader = vite ? VitePackageLoader.build(vite) : undefined;
|
|
105
44
|
// start api
|
|
106
|
-
const api = await
|
|
45
|
+
const api = await initializeAndStartAPI(initializeClient, {
|
|
107
46
|
port: serverPort,
|
|
108
47
|
dbPath,
|
|
109
48
|
https: options?.https,
|
|
@@ -111,20 +50,66 @@ const startServer = async (options) => {
|
|
|
111
50
|
configFile,
|
|
112
51
|
packages,
|
|
113
52
|
mcp,
|
|
114
|
-
|
|
115
|
-
// "ph/common/drive-analytics": [DriveAnalyticsProcessorFactory],
|
|
116
|
-
// },
|
|
117
|
-
});
|
|
53
|
+
}, "switchboard");
|
|
118
54
|
// add vite middleware after express app is initialized if applicable
|
|
119
55
|
if (vite) {
|
|
120
|
-
api.app.
|
|
56
|
+
api.app.mountRawMiddleware(vite.middlewares);
|
|
57
|
+
}
|
|
58
|
+
// Conditionally add a default drive
|
|
59
|
+
let driveUrl = null;
|
|
60
|
+
if (!options?.disableDefaultDrive) {
|
|
61
|
+
let driveId = drive.id;
|
|
62
|
+
if (!driveId || driveId.length === 0) {
|
|
63
|
+
driveId = drive.slug;
|
|
64
|
+
}
|
|
65
|
+
if (!driveId || driveId.length === 0) {
|
|
66
|
+
throw new Error("Invalid Drive Id");
|
|
67
|
+
}
|
|
68
|
+
try {
|
|
69
|
+
const { global } = driveCreateState();
|
|
70
|
+
const document = driveCreateDocument({
|
|
71
|
+
global: {
|
|
72
|
+
...global,
|
|
73
|
+
name: drive.global.name,
|
|
74
|
+
icon: drive.global.icon ?? global.icon,
|
|
75
|
+
},
|
|
76
|
+
local: {
|
|
77
|
+
availableOffline: drive.local?.availableOffline ?? false,
|
|
78
|
+
sharingType: drive.local?.sharingType ?? "public",
|
|
79
|
+
listeners: drive.local?.listeners ?? [],
|
|
80
|
+
triggers: drive.local?.triggers ?? [],
|
|
81
|
+
},
|
|
82
|
+
});
|
|
83
|
+
if (drive.id && drive.id.length > 0) {
|
|
84
|
+
document.header.id = drive.id;
|
|
85
|
+
}
|
|
86
|
+
if (drive.slug && drive.slug.length > 0) {
|
|
87
|
+
document.header.slug = drive.slug;
|
|
88
|
+
}
|
|
89
|
+
if (drive.global.name) {
|
|
90
|
+
document.header.name = drive.global.name;
|
|
91
|
+
}
|
|
92
|
+
await api.client.create(document);
|
|
93
|
+
}
|
|
94
|
+
catch (e) {
|
|
95
|
+
const errorMessage = e instanceof Error ? e.message : String(e);
|
|
96
|
+
if (!errorMessage.includes("already exists")) {
|
|
97
|
+
throw e;
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
driveUrl = `http://localhost:${serverPort}/d/${driveId}`;
|
|
121
101
|
}
|
|
122
102
|
// Add remote drives after full initialization (including PackageManager)
|
|
123
103
|
if (remoteDrives.length > 0) {
|
|
124
104
|
const processedRemoteDrives = remoteDrives.map(normalizeRemoteDriveInput);
|
|
125
105
|
for (const remoteDrive of processedRemoteDrives) {
|
|
126
106
|
try {
|
|
127
|
-
|
|
107
|
+
const parsed = parseDriveUrl(remoteDrive.url);
|
|
108
|
+
const remoteName = `remote-drive-${parsed.driveId}-${crypto.randomUUID()}`;
|
|
109
|
+
await api.syncManager.add(remoteName, driveCollectionId("main", parsed.driveId), {
|
|
110
|
+
type: "gql",
|
|
111
|
+
parameters: { url: parsed.graphqlEndpoint },
|
|
112
|
+
});
|
|
128
113
|
}
|
|
129
114
|
catch (error) {
|
|
130
115
|
logger.error(` ➜ Failed to connect to remote drive ${remoteDrive.url}:`, error);
|
|
@@ -145,7 +130,6 @@ const startServer = async (options) => {
|
|
|
145
130
|
}
|
|
146
131
|
return path.join(storage.filesystemPath, driveId, `${documentId}.json`);
|
|
147
132
|
},
|
|
148
|
-
server: driveServer,
|
|
149
133
|
};
|
|
150
134
|
};
|
|
151
135
|
export { startServer };
|
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,E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AO,CAAC,EACzC;oBACE,IAAI,EAAE,KAAK;oBACX,UAAU,EAAE,EAAE,GAAG,EAAE,MAAM,CAAC,eAAe,EAAE;iBAC5C,CACF,CAAC;YACJ,CAAC;YAAC,OAAO,KAAK,EAAE,CAAC;gBACf,MAAM,CAAC,KAAK,CACV,0CAA0C,WAAW,CAAC,GAAG,GAAG,EAC5D,KAAK,CACN,CAAC;YACJ,CAAC;QACH,CAAC;IACH,CAAC;IAED,IAAI,QAAQ,EAAE,CAAC;QACb,MAAM,CAAC,IAAI,CAAC,mBAAmB,QAAQ,EAAE,CAAC,CAAC;IAC7C,CAAC;SAAM,CAAC;QACN,MAAM,CAAC,IAAI,CACT,oCAAoC,UAAU,6BAA6B,CAC5E,CAAC;IACJ,CAAC;IAED,OAAO;QACL,QAAQ;QACR,eAAe,EAAE,CAAC,OAAe,EAAE,UAAkB,EAAU,EAAE;YAC/D,IAAI,CAAC,OAAO,CAAC,cAAc,EAAE,CAAC;gBAC5B,MAAM,IAAI,KAAK,CACb,0EAA0E,CAC3E,CAAC;YACJ,CAAC;YACD,OAAO,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,cAAc,EAAE,OAAO,EAAE,GAAG,UAAU,OAAO,CAAC,CAAC;QAC1E,CAAC;KACF,CAAC;AACJ,CAAC,CAAC;AAEF,OAAO,EAAE,WAAW,EAAE,CAAC"}
|
package/dist/src/types.d.ts
CHANGED
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
import type { LogLevel } from "@powerhousedao/config";
|
|
2
|
-
import type {
|
|
3
|
-
export type
|
|
2
|
+
import type { DriveInput } from "@powerhousedao/shared/document-drive";
|
|
3
|
+
export type RemoteDriveInput = {
|
|
4
|
+
url: string;
|
|
5
|
+
options?: Record<string, unknown>;
|
|
6
|
+
};
|
|
7
|
+
export type RemoteDriveInputSimple = string | RemoteDriveInput;
|
|
4
8
|
export type StorageOptions = {
|
|
5
9
|
type: "filesystem" | "memory" | "postgres" | "browser";
|
|
6
10
|
filesystemPath?: string;
|
|
@@ -49,6 +53,5 @@ export declare const DefaultStartServerOptions: {
|
|
|
49
53
|
export type LocalReactor = {
|
|
50
54
|
driveUrl: string | null;
|
|
51
55
|
getDocumentPath: (driveId: string, documentId: string) => string;
|
|
52
|
-
server: IDocumentDriveServer;
|
|
53
56
|
};
|
|
54
57
|
//# sourceMappingURL=types.d.ts.map
|
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,KAAK,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACtD,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACtD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,sCAAsC,CAAC;AAGvE,MAAM,MAAM,gBAAgB,GAAG;IAC7B,GAAG,EAAE,MAAM,CAAC;IACZ,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACnC,CAAC;AAEF,MAAM,MAAM,sBAAsB,GAAG,MAAM,GAAG,gBAAgB,CAAC;AAE/D,MAAM,MAAM,cAAc,GAAG;IAC3B,IAAI,EAAE,YAAY,GAAG,QAAQ,GAAG,UAAU,GAAG,SAAS,CAAC;IACvD,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG;IAC/B,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,GAAG,CAAC,EAAE,OAAO,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACvB,OAAO,CAAC,EAAE,cAAc,CAAC;IACzB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,UAAU,CAAC;IACnB,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;IACpB,KAAK,CAAC,EACF;QACE,OAAO,EAAE,MAAM,CAAC;QAChB,QAAQ,EAAE,MAAM,CAAC;KAClB,GACD,OAAO,GACP,SAAS,CAAC;IACd,QAAQ,CAAC,EAAE,QAAQ,CAAC;IACpB,YAAY,CAAC,EAAE,sBAAsB,EAAE,CAAC;IACxC,GAAG,CAAC,EAAE,OAAO,CAAC;CACf,CAAC;AAEF,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;CAsBR,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;CAClE,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":"AAEA,OAAO,IAAI,MAAM,WAAW,CAAC;AAoC7B,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;IACD,GAAG,EAAE,IAAI;CACmB,CAAC"}
|