@powerhousedao/reactor-local 6.0.0-dev.13 → 6.0.0-dev.131
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 +68 -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 +9 -28
- 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,22 @@
|
|
|
1
1
|
import { isLogLevel } from "@powerhousedao/config";
|
|
2
|
-
import { EventBus, ReactorBuilder, ReactorClientBuilder, } from "@powerhousedao/reactor";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
2
|
+
import { EventBus, ReactorBuilder, ReactorClientBuilder, driveCollectionId, parseDriveUrl, } from "@powerhousedao/reactor";
|
|
3
|
+
import { initializeAndStartAPI } from "@powerhousedao/reactor-api";
|
|
4
|
+
import { VitePackageLoader, startViteServer, } from "@powerhousedao/reactor-api/vite";
|
|
5
|
+
import { driveCreateDocument, driveCreateState, } from "@powerhousedao/shared/document-drive";
|
|
6
|
+
import { logger } from "document-model";
|
|
5
7
|
import dotenv from "dotenv";
|
|
6
8
|
import path from "node:path";
|
|
7
9
|
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
10
|
function normalizeRemoteDriveInput(input) {
|
|
15
11
|
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
|
-
};
|
|
12
|
+
return { url: input };
|
|
44
13
|
}
|
|
45
|
-
// Already a complete configuration, return as-is
|
|
46
14
|
return input;
|
|
47
15
|
}
|
|
16
|
+
dotenv.config();
|
|
48
17
|
const startServer = async (options) => {
|
|
49
18
|
process.setMaxListeners(0);
|
|
50
|
-
const { port, storage,
|
|
19
|
+
const { port, storage, dev, drive, dbPath, packages = [], configFile, logLevel, remoteDrives = [], mcp, } = {
|
|
51
20
|
...DefaultStartServerOptions,
|
|
52
21
|
...options,
|
|
53
22
|
};
|
|
@@ -64,46 +33,17 @@ const startServer = async (options) => {
|
|
|
64
33
|
if (dev) {
|
|
65
34
|
packages.push(basePath);
|
|
66
35
|
}
|
|
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);
|
|
36
|
+
const initializeClient = async (documentModels) => {
|
|
37
|
+
const eventBus = new EventBus();
|
|
38
|
+
const builder = new ReactorBuilder()
|
|
39
|
+
.withEventBus(eventBus)
|
|
40
|
+
.withDocumentModels(documentModels);
|
|
41
|
+
return new ReactorClientBuilder().withReactorBuilder(builder).buildModule();
|
|
42
|
+
};
|
|
103
43
|
// create loader
|
|
104
44
|
const packageLoader = vite ? VitePackageLoader.build(vite) : undefined;
|
|
105
45
|
// start api
|
|
106
|
-
const api = await
|
|
46
|
+
const api = await initializeAndStartAPI(initializeClient, {
|
|
107
47
|
port: serverPort,
|
|
108
48
|
dbPath,
|
|
109
49
|
https: options?.https,
|
|
@@ -111,20 +51,66 @@ const startServer = async (options) => {
|
|
|
111
51
|
configFile,
|
|
112
52
|
packages,
|
|
113
53
|
mcp,
|
|
114
|
-
|
|
115
|
-
// "ph/common/drive-analytics": [DriveAnalyticsProcessorFactory],
|
|
116
|
-
// },
|
|
117
|
-
});
|
|
54
|
+
}, "switchboard");
|
|
118
55
|
// add vite middleware after express app is initialized if applicable
|
|
119
56
|
if (vite) {
|
|
120
|
-
api.
|
|
57
|
+
api.httpAdapter.mountRawMiddleware(vite.middlewares);
|
|
58
|
+
}
|
|
59
|
+
// Conditionally add a default drive
|
|
60
|
+
let driveUrl = null;
|
|
61
|
+
if (!options?.disableDefaultDrive) {
|
|
62
|
+
let driveId = drive.id;
|
|
63
|
+
if (!driveId || driveId.length === 0) {
|
|
64
|
+
driveId = drive.slug;
|
|
65
|
+
}
|
|
66
|
+
if (!driveId || driveId.length === 0) {
|
|
67
|
+
throw new Error("Invalid Drive Id");
|
|
68
|
+
}
|
|
69
|
+
try {
|
|
70
|
+
const { global } = driveCreateState();
|
|
71
|
+
const document = driveCreateDocument({
|
|
72
|
+
global: {
|
|
73
|
+
...global,
|
|
74
|
+
name: drive.global.name,
|
|
75
|
+
icon: drive.global.icon ?? global.icon,
|
|
76
|
+
},
|
|
77
|
+
local: {
|
|
78
|
+
availableOffline: drive.local?.availableOffline ?? false,
|
|
79
|
+
sharingType: drive.local?.sharingType ?? "public",
|
|
80
|
+
listeners: drive.local?.listeners ?? [],
|
|
81
|
+
triggers: drive.local?.triggers ?? [],
|
|
82
|
+
},
|
|
83
|
+
});
|
|
84
|
+
if (drive.id && drive.id.length > 0) {
|
|
85
|
+
document.header.id = drive.id;
|
|
86
|
+
}
|
|
87
|
+
if (drive.slug && drive.slug.length > 0) {
|
|
88
|
+
document.header.slug = drive.slug;
|
|
89
|
+
}
|
|
90
|
+
if (drive.global.name) {
|
|
91
|
+
document.header.name = drive.global.name;
|
|
92
|
+
}
|
|
93
|
+
await api.client.create(document);
|
|
94
|
+
}
|
|
95
|
+
catch (e) {
|
|
96
|
+
const errorMessage = e instanceof Error ? e.message : String(e);
|
|
97
|
+
if (!errorMessage.includes("already exists")) {
|
|
98
|
+
throw e;
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
driveUrl = `http://localhost:${serverPort}/d/${driveId}`;
|
|
121
102
|
}
|
|
122
103
|
// Add remote drives after full initialization (including PackageManager)
|
|
123
104
|
if (remoteDrives.length > 0) {
|
|
124
105
|
const processedRemoteDrives = remoteDrives.map(normalizeRemoteDriveInput);
|
|
125
106
|
for (const remoteDrive of processedRemoteDrives) {
|
|
126
107
|
try {
|
|
127
|
-
|
|
108
|
+
const parsed = parseDriveUrl(remoteDrive.url);
|
|
109
|
+
const remoteName = `remote-drive-${parsed.driveId}-${crypto.randomUUID()}`;
|
|
110
|
+
await api.syncManager.add(remoteName, driveCollectionId("main", parsed.driveId), {
|
|
111
|
+
type: "gql",
|
|
112
|
+
parameters: { url: parsed.graphqlEndpoint },
|
|
113
|
+
});
|
|
128
114
|
}
|
|
129
115
|
catch (error) {
|
|
130
116
|
logger.error(` ➜ Failed to connect to remote drive ${remoteDrive.url}:`, error);
|
|
@@ -145,7 +131,6 @@ const startServer = async (options) => {
|
|
|
145
131
|
}
|
|
146
132
|
return path.join(storage.filesystemPath, driveId, `${documentId}.json`);
|
|
147
133
|
},
|
|
148
|
-
server: driveServer,
|
|
149
134
|
};
|
|
150
135
|
};
|
|
151
136
|
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,MA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AAC,GAAG,CACvB,UAAU,EACV,iBAAiB,CAAC,MAAM,EAAE,MAAM,CAAC,OAAO,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"}
|