@powerhousedao/ph-cli 4.1.0-dev.9 → 4.1.0-dev.90
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/README.md +21 -4
- package/dist/src/cli.js +14 -1
- package/dist/src/cli.js.map +1 -1
- package/dist/src/commands/connect.d.ts +17 -6
- package/dist/src/commands/connect.d.ts.map +1 -1
- package/dist/src/commands/connect.js +56 -36
- package/dist/src/commands/connect.js.map +1 -1
- package/dist/src/commands/dev.d.ts +3 -3
- package/dist/src/commands/dev.d.ts.map +1 -1
- package/dist/src/commands/generate.d.ts +4 -4
- package/dist/src/commands/generate.d.ts.map +1 -1
- package/dist/src/commands/generate.js +5 -3
- package/dist/src/commands/generate.js.map +1 -1
- package/dist/src/commands/help.d.ts +1 -1
- package/dist/src/commands/help.d.ts.map +1 -1
- package/dist/src/commands/index.d.ts +13 -4
- package/dist/src/commands/index.d.ts.map +1 -1
- package/dist/src/commands/index.js +13 -29
- package/dist/src/commands/index.js.map +1 -1
- package/dist/src/commands/inspect.d.ts +3 -3
- package/dist/src/commands/inspect.d.ts.map +1 -1
- package/dist/src/commands/install.d.ts +2 -3
- package/dist/src/commands/install.d.ts.map +1 -1
- package/dist/src/commands/install.js +1 -2
- package/dist/src/commands/install.js.map +1 -1
- package/dist/src/commands/list.d.ts +2 -2
- package/dist/src/commands/list.d.ts.map +1 -1
- package/dist/src/commands/list.js +1 -1
- package/dist/src/commands/list.js.map +1 -1
- package/dist/src/commands/reactor.d.ts +4 -4
- package/dist/src/commands/reactor.d.ts.map +1 -1
- package/dist/src/commands/reactor.js +1 -0
- package/dist/src/commands/reactor.js.map +1 -1
- package/dist/src/commands/register-commands.d.ts +5 -0
- package/dist/src/commands/register-commands.d.ts.map +1 -0
- package/dist/src/commands/register-commands.js +30 -0
- package/dist/src/commands/register-commands.js.map +1 -0
- package/dist/src/commands/service.d.ts +2 -2
- package/dist/src/commands/service.d.ts.map +1 -1
- package/dist/src/commands/service.js.map +1 -1
- package/dist/src/commands/switchboard.d.ts +5 -5
- package/dist/src/commands/switchboard.d.ts.map +1 -1
- package/dist/src/commands/switchboard.js +12 -6
- package/dist/src/commands/switchboard.js.map +1 -1
- package/dist/src/commands/uninstall.d.ts +3 -3
- package/dist/src/commands/uninstall.d.ts.map +1 -1
- package/dist/src/commands/uninstall.js.map +1 -1
- package/dist/src/commands/vetra.d.ts +9 -4
- package/dist/src/commands/vetra.d.ts.map +1 -1
- package/dist/src/commands/vetra.js +12 -6
- package/dist/src/commands/vetra.js.map +1 -1
- package/dist/src/help.d.ts +6 -6
- package/dist/src/help.d.ts.map +1 -1
- package/dist/src/help.js +133 -57
- package/dist/src/help.js.map +1 -1
- package/dist/src/index.d.ts +2 -0
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/index.js +2 -0
- package/dist/src/index.js.map +1 -1
- package/dist/src/services/connect.d.ts +1 -3
- package/dist/src/services/connect.d.ts.map +1 -1
- package/dist/src/services/connect.js +1 -15
- package/dist/src/services/connect.js.map +1 -1
- package/dist/src/services/dev.d.ts.map +1 -1
- package/dist/src/services/dev.js +8 -6
- package/dist/src/services/dev.js.map +1 -1
- package/dist/src/services/generate.d.ts +4 -0
- package/dist/src/services/generate.d.ts.map +1 -1
- package/dist/src/services/generate.js +12 -3
- package/dist/src/services/generate.js.map +1 -1
- package/dist/src/services/reactor.d.ts +2 -1
- package/dist/src/services/reactor.d.ts.map +1 -1
- package/dist/src/services/reactor.js +2 -2
- package/dist/src/services/reactor.js.map +1 -1
- package/dist/src/services/switchboard.d.ts +8 -2
- package/dist/src/services/switchboard.d.ts.map +1 -1
- package/dist/src/services/switchboard.js +44 -7
- package/dist/src/services/switchboard.js.map +1 -1
- package/dist/src/services/vetra.d.ts +4 -6
- package/dist/src/services/vetra.d.ts.map +1 -1
- package/dist/src/services/vetra.js +78 -171
- package/dist/src/services/vetra.js.map +1 -1
- package/dist/src/utils.d.ts +11 -4
- package/dist/src/utils.d.ts.map +1 -1
- package/dist/src/utils.js +18 -14
- package/dist/src/utils.js.map +1 -1
- package/dist/src/version.d.ts +1 -1
- package/dist/src/version.d.ts.map +1 -1
- package/dist/src/version.js +1 -1
- package/dist/src/version.js.map +1 -1
- package/dist/test/utils.test.d.ts +2 -0
- package/dist/test/utils.test.d.ts.map +1 -0
- package/dist/test/utils.test.js +132 -0
- package/dist/test/utils.test.js.map +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -0
- package/package.json +16 -20
- package/dist/package.json +0 -58
- package/dist/tsconfig.lib.tsbuildinfo +0 -1
package/dist/src/help.js
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import { DEFAULT_ASSETS_DIR_NAME, DEFAULT_EXTERNAL_PACKAGES_FILE_NAME, DEFAULT_STYLES_FILE_NAME, } from "@powerhousedao/builder-tools/connect-build";
|
|
2
1
|
/**
|
|
3
2
|
* Help text for the connect studio command
|
|
4
3
|
*/
|
|
5
4
|
export const connectStudioHelp = `
|
|
6
5
|
Command Overview:
|
|
7
6
|
The connect command starts the Connect Studio, a development environment for building
|
|
8
|
-
and testing Powerhouse applications. It provides a visual interface for working with
|
|
7
|
+
and testing Powerhouse applications. It provides a visual interface for working with
|
|
9
8
|
your project.
|
|
10
9
|
|
|
11
10
|
This command:
|
|
@@ -15,42 +14,71 @@ Command Overview:
|
|
|
15
14
|
4. Supports various configuration options for customization
|
|
16
15
|
|
|
17
16
|
Options:
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
--
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
17
|
+
--port <port> Port to run the server on. Default is 3000.
|
|
18
|
+
|
|
19
|
+
--host Expose the server to the network. By default, the server
|
|
20
|
+
only accepts connections from localhost.
|
|
21
|
+
|
|
22
|
+
--open Automatically open the browser window after starting the server.
|
|
23
|
+
|
|
24
|
+
--cors Enable CORS (Cross-Origin Resource Sharing).
|
|
25
|
+
|
|
26
|
+
--strictPort Exit if specified port is already in use.
|
|
27
|
+
|
|
28
|
+
--force Force the optimizer to ignore the cache and re-bundle.
|
|
29
|
+
|
|
30
|
+
--mode <mode> Vite mode to use (e.g., development, production).
|
|
31
|
+
|
|
32
|
+
--config-file <configFile> Path to the powerhouse.config.js file. This allows you to
|
|
33
|
+
customize the behavior of Connect Studio.
|
|
34
|
+
|
|
35
|
+
--vite-config-file <file> Path to the vite config file.
|
|
36
|
+
|
|
37
|
+
--project-root <path> The root directory of the project. Default is current directory.
|
|
30
38
|
|
|
31
39
|
Examples:
|
|
32
|
-
$ ph connect
|
|
33
|
-
$ ph connect
|
|
34
|
-
$ ph connect
|
|
35
|
-
$ ph connect --
|
|
36
|
-
$ ph connect --
|
|
37
|
-
$ ph connect --
|
|
38
|
-
$ ph connect
|
|
40
|
+
$ ph connect # Start Connect Studio on default port 3000
|
|
41
|
+
$ ph connect --port 8080 # Start on port 8080
|
|
42
|
+
$ ph connect --host # Expose to network (not just localhost)
|
|
43
|
+
$ ph connect --open # Open browser automatically
|
|
44
|
+
$ ph connect --cors # Enable CORS
|
|
45
|
+
$ ph connect --strictPort # Exit if port is in use
|
|
46
|
+
$ ph connect --force # Force re-bundle
|
|
47
|
+
$ ph connect --mode production # Use production mode
|
|
48
|
+
$ ph connect --config-file custom.config.js # Use custom configuration
|
|
49
|
+
$ ph connect --vite-config-file vite.config.js # Use custom vite config
|
|
50
|
+
$ ph connect --project-root /path/to/project # Set project root
|
|
51
|
+
$ ph connect --port 8080 --open # Start on port 8080 and open browser
|
|
39
52
|
`;
|
|
40
53
|
/**
|
|
41
54
|
* Help text for the connect build command
|
|
42
55
|
*/
|
|
43
56
|
export const connectBuildHelp = `
|
|
44
57
|
Command Overview:
|
|
45
|
-
The Connect build command creates a
|
|
58
|
+
The Connect build command creates a production build with the project's local and
|
|
59
|
+
external packages included.
|
|
46
60
|
|
|
47
61
|
Options:
|
|
48
|
-
--
|
|
49
|
-
|
|
50
|
-
--
|
|
51
|
-
|
|
52
|
-
--
|
|
53
|
-
|
|
62
|
+
--outDir <outDir> Output directory. Defaults to 'dist'.
|
|
63
|
+
|
|
64
|
+
--base <base> Base path for the app. Default is "/".
|
|
65
|
+
|
|
66
|
+
--mode <mode> Vite mode to use (e.g., development, production).
|
|
67
|
+
|
|
68
|
+
--config-file <configFile> Path to the powerhouse.config.js file.
|
|
69
|
+
|
|
70
|
+
--vite-config-file <file> Path to the vite config file.
|
|
71
|
+
|
|
72
|
+
--project-root <path> The root directory of the project. Default is current directory.
|
|
73
|
+
|
|
74
|
+
Examples:
|
|
75
|
+
$ ph connect build # Build with defaults
|
|
76
|
+
$ ph connect build --outDir build # Output to 'build' directory
|
|
77
|
+
$ ph connect build --base /app # Set base path to '/app'
|
|
78
|
+
$ ph connect build --mode production # Use production mode
|
|
79
|
+
$ ph connect build --config-file custom.config.js # Use custom configuration
|
|
80
|
+
$ ph connect build --vite-config-file vite.config.js # Use custom vite config
|
|
81
|
+
$ ph connect build --project-root /path/to/project # Set project root
|
|
54
82
|
`;
|
|
55
83
|
/**
|
|
56
84
|
* Help text for the connect preview command
|
|
@@ -61,10 +89,38 @@ Command Overview:
|
|
|
61
89
|
NOTE: You must run \`ph connect build\` first.
|
|
62
90
|
|
|
63
91
|
Options:
|
|
64
|
-
--
|
|
65
|
-
|
|
66
|
-
--port <port>
|
|
67
|
-
|
|
92
|
+
--outDir <outDir> Output directory. Defaults to 'dist'.
|
|
93
|
+
|
|
94
|
+
--port <port> Port to run the server on. Default is 3000.
|
|
95
|
+
|
|
96
|
+
--host Expose the server to the network.
|
|
97
|
+
|
|
98
|
+
--open Open browser on startup.
|
|
99
|
+
|
|
100
|
+
--strictPort Exit if specified port is already in use.
|
|
101
|
+
|
|
102
|
+
--base <base> Base path for the app. Default is "/".
|
|
103
|
+
|
|
104
|
+
--mode <mode> Vite mode to use (e.g., development, production).
|
|
105
|
+
|
|
106
|
+
--config-file <configFile> Path to the powerhouse.config.js file.
|
|
107
|
+
|
|
108
|
+
--vite-config-file <file> Path to the vite config file.
|
|
109
|
+
|
|
110
|
+
--project-root <path> The root directory of the project. Default is current directory.
|
|
111
|
+
|
|
112
|
+
Examples:
|
|
113
|
+
$ ph connect preview # Preview with defaults
|
|
114
|
+
$ ph connect preview --outDir build # Preview from 'build' directory
|
|
115
|
+
$ ph connect preview --port 8080 # Preview on port 8080
|
|
116
|
+
$ ph connect preview --host # Expose to network
|
|
117
|
+
$ ph connect preview --open # Open browser automatically
|
|
118
|
+
$ ph connect preview --strictPort # Exit if port is in use
|
|
119
|
+
$ ph connect preview --base /app # Set base path to '/app'
|
|
120
|
+
$ ph connect preview --mode production # Use production mode
|
|
121
|
+
$ ph connect preview --config-file custom.config.js # Use custom configuration
|
|
122
|
+
$ ph connect preview --vite-config-file vite.config.js # Use custom vite config
|
|
123
|
+
$ ph connect preview --project-root /path/to/project # Set project root
|
|
68
124
|
`;
|
|
69
125
|
/**
|
|
70
126
|
* Help text for the generate command
|
|
@@ -99,7 +155,7 @@ Options:
|
|
|
99
155
|
|
|
100
156
|
-p, --processor <name> Name of the processor to generate.
|
|
101
157
|
|
|
102
|
-
--processor-type <type> Type of processor to generate.
|
|
158
|
+
--processor-type <type> Type of processor to generate. 'relationalDb' or 'analytics'
|
|
103
159
|
|
|
104
160
|
-s, --subgraph <name> Name of the subgraph to use or create.
|
|
105
161
|
|
|
@@ -126,7 +182,7 @@ Examples:
|
|
|
126
182
|
$ ph generate my-document-model.zip # Generate from a specific model zip file
|
|
127
183
|
$ ph generate -i # Run in interactive mode
|
|
128
184
|
$ ph generate --editor ToDoList --document-types powerhouse/todo # Generate a ToDoList editor for todo documents
|
|
129
|
-
$ ph generate -p MyProcessor
|
|
185
|
+
$ ph generate -p MyProcessor --processor-type relationalDb # Generate a specific processor
|
|
130
186
|
$ ph generate --watch # Generate and watch for changes
|
|
131
187
|
$ ph generate --drive-editor custom-drive-explorer # Generate a custom drive editor
|
|
132
188
|
$ ph generate -s MySubgraph # Generate with a specific subgraph
|
|
@@ -295,42 +351,57 @@ Examples:
|
|
|
295
351
|
*/
|
|
296
352
|
export const vetraHelp = `
|
|
297
353
|
Command Overview:
|
|
298
|
-
The vetra command sets up a
|
|
299
|
-
It starts
|
|
300
|
-
|
|
354
|
+
The vetra command sets up a Vetra development environment for working with Vetra projects.
|
|
355
|
+
It starts a Vetra Switchboard and optionally Connect Studio, enabling document collaboration
|
|
356
|
+
and real-time processing with a "Vetra" drive or connection to remote drives.
|
|
301
357
|
|
|
302
358
|
This command:
|
|
303
359
|
1. Starts a Vetra Switchboard with a "Vetra" drive for document storage
|
|
304
|
-
2.
|
|
305
|
-
3. Starts Connect Studio pointing to the
|
|
306
|
-
4. Enables real-time updates, collaboration, and code generation
|
|
360
|
+
2. Optionally connects to remote drives instead of creating a local drive
|
|
361
|
+
3. Starts Connect Studio pointing to the Switchboard for user interaction (unless disabled)
|
|
362
|
+
4. Enables real-time updates, collaboration, and code generation
|
|
307
363
|
|
|
308
364
|
Options:
|
|
309
|
-
--
|
|
310
|
-
|
|
365
|
+
--logs Enable verbose logging for all services. This provides detailed
|
|
366
|
+
output from Switchboard and Connect during startup and operation.
|
|
311
367
|
|
|
312
|
-
--switchboard-port <port>
|
|
313
|
-
|
|
368
|
+
--switchboard-port <port> Specify the port to use for the Vetra Switchboard service.
|
|
369
|
+
Default is 4001. The Switchboard handles document storage.
|
|
314
370
|
|
|
315
|
-
--
|
|
316
|
-
|
|
371
|
+
--connect-port <port> Specify the port to use for Connect Studio.
|
|
372
|
+
Default is 3000. Connect provides the user interface.
|
|
317
373
|
|
|
318
|
-
--https-key-file <path>
|
|
374
|
+
--https-key-file <path> Path to the SSL key file if using HTTPS for secure connections.
|
|
319
375
|
|
|
320
|
-
--https-cert-file <path>
|
|
376
|
+
--https-cert-file <path> Path to the SSL certificate file if using HTTPS.
|
|
321
377
|
|
|
322
|
-
--config-file <path>
|
|
323
|
-
|
|
378
|
+
--config-file <path> Path to the powerhouse.config.js file. This allows you to
|
|
379
|
+
customize the behavior of the Vetra development environment.
|
|
324
380
|
|
|
325
|
-
-w, --watch
|
|
326
|
-
|
|
381
|
+
-w, --watch Enable dynamic loading for document-models and editors in
|
|
382
|
+
connect-studio and switchboard. When enabled, the system will
|
|
383
|
+
watch for changes in these directories and reload them dynamically.
|
|
384
|
+
|
|
385
|
+
--remote-drive <url> URL of remote drive to connect to. When specified, the switchboard
|
|
386
|
+
connects to this remote drive instead of creating a local Vetra drive.
|
|
387
|
+
|
|
388
|
+
--disable-connect Skip Connect initialization (only start switchboard and reactor).
|
|
389
|
+
Use this when you only need the backend services running.
|
|
390
|
+
|
|
391
|
+
--interactive Enable interactive mode for code generation. When enabled, the system
|
|
392
|
+
will prompt for user confirmation before generating code. This is useful
|
|
393
|
+
for development when you want control over when code regeneration happens.
|
|
327
394
|
|
|
328
395
|
Examples:
|
|
329
|
-
$ ph vetra
|
|
330
|
-
$ ph vetra --
|
|
331
|
-
$ ph vetra --
|
|
332
|
-
$ ph vetra --
|
|
333
|
-
$ ph vetra
|
|
396
|
+
$ ph vetra # Start Vetra environment with defaults
|
|
397
|
+
$ ph vetra --switchboard-port 5000 --connect-port 3001 # Use custom ports
|
|
398
|
+
$ ph vetra --config-file custom.powerhouse.config.js # Use custom configuration
|
|
399
|
+
$ ph vetra --watch # Enable dynamic loading for development
|
|
400
|
+
$ ph vetra -w # Enable dynamic loading (short form)
|
|
401
|
+
$ ph vetra --logs # Enable detailed logging
|
|
402
|
+
$ ph vetra --remote-drive http://localhost:4001/d/docs # Connect to remote drive
|
|
403
|
+
$ ph vetra --disable-connect # Start only backend services
|
|
404
|
+
$ ph vetra --interactive # Enable interactive code generation mode
|
|
334
405
|
$ ph vetra --https-key-file key.pem --https-cert-file cert.pem # Use HTTPS
|
|
335
406
|
`;
|
|
336
407
|
/**
|
|
@@ -433,6 +504,10 @@ Options:
|
|
|
433
504
|
--config-file <path> Path to the powerhouse.config.js file. Default is
|
|
434
505
|
'./powerhouse.config.json'. This configures the switchboard behavior.
|
|
435
506
|
|
|
507
|
+
--dev Enable development mode to load local packages from the current directory.
|
|
508
|
+
This allows the switchboard to discover and load document models, processors,
|
|
509
|
+
and subgraphs from your local development environment.
|
|
510
|
+
|
|
436
511
|
--db-path <DB_PATH> Path to the database for storing document data.
|
|
437
512
|
|
|
438
513
|
--https-key-file <path> Path to the SSL key file if using HTTPS for secure connections.
|
|
@@ -448,6 +523,7 @@ Options:
|
|
|
448
523
|
Examples:
|
|
449
524
|
$ ph switchboard # Start switchboard with default settings
|
|
450
525
|
$ ph switchboard --port 5000 # Use custom port 5000
|
|
526
|
+
$ ph switchboard --dev # Enable dev mode to load local packages
|
|
451
527
|
$ ph switchboard --config-file custom.json # Use custom configuration file
|
|
452
528
|
$ ph switchboard --packages pkg1 pkg2 # Load specific packages
|
|
453
529
|
$ ph switchboard --base-path /switchboard # Set API base path to /switchboard
|
package/dist/src/help.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"help.js","sourceRoot":"","sources":["../../src/help.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"help.js","sourceRoot":"","sources":["../../src/help.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgDhC,CAAC;AAEF;;GAEG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;CA0B/B,CAAC;AAEF;;GAEG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsCjC,CAAC;AAEF;;GAEG;AACH,MAAM,CAAC,MAAM,YAAY,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+D3B,CAAC;AAEF;;GAEG;AACH,MAAM,CAA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"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC;AACpC,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC"}
|
package/dist/src/index.js
CHANGED
package/dist/src/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC;AACpC,cAAc,YAAY,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC;AACpC,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC"}
|
|
@@ -1,4 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
export type ConnectOptions = ConnectStudioOptions;
|
|
3
|
-
export declare function startConnect(connectOptions: ConnectOptions): Promise<void | undefined>;
|
|
1
|
+
export { buildConnect, previewConnect, startConnectStudio, } from "@powerhousedao/builder-tools";
|
|
4
2
|
//# sourceMappingURL=connect.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"connect.d.ts","sourceRoot":"","sources":["../../../src/services/connect.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,
|
|
1
|
+
{"version":3,"file":"connect.d.ts","sourceRoot":"","sources":["../../../src/services/connect.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,YAAY,EACZ,cAAc,EACd,kBAAkB,GACnB,MAAM,8BAA8B,CAAC"}
|
|
@@ -1,16 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
import { getConfig } from "@powerhousedao/config/utils";
|
|
3
|
-
import packageJson from "../../package.json" with { type: "json" };
|
|
4
|
-
const version = packageJson.version;
|
|
5
|
-
export async function startConnect(connectOptions) {
|
|
6
|
-
const { packages, studio, logLevel } = getConfig(connectOptions.configFile);
|
|
7
|
-
return await startConnectStudio({
|
|
8
|
-
port: studio?.port?.toString() || undefined,
|
|
9
|
-
packages,
|
|
10
|
-
phCliVersion: typeof version === "string" ? version : undefined,
|
|
11
|
-
open: studio?.openBrowser,
|
|
12
|
-
logLevel: logLevel,
|
|
13
|
-
...connectOptions,
|
|
14
|
-
});
|
|
15
|
-
}
|
|
1
|
+
export { buildConnect, previewConnect, startConnectStudio, } from "@powerhousedao/builder-tools";
|
|
16
2
|
//# sourceMappingURL=connect.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"connect.js","sourceRoot":"","sources":["../../../src/services/connect.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"connect.js","sourceRoot":"","sources":["../../../src/services/connect.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,YAAY,EACZ,cAAc,EACd,kBAAkB,GACnB,MAAM,8BAA8B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dev.d.ts","sourceRoot":"","sources":["../../../src/services/dev.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"dev.d.ts","sourceRoot":"","sources":["../../../src/services/dev.ts"],"names":[],"mappings":"AAaA,MAAM,MAAM,UAAU,GAAG;IACvB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB,CAAC;AA4EF,wBAAsB,QAAQ,CAAC,EAC7B,QAAQ,EACR,KAAK,EACL,eAA4C,EAC5C,UAAU,GACX,EAAE,UAAU,iBAcZ"}
|
package/dist/src/services/dev.js
CHANGED
|
@@ -1,15 +1,14 @@
|
|
|
1
|
+
import { getConfig } from "@powerhousedao/config/node";
|
|
1
2
|
import { blue, green, red } from "colorette";
|
|
2
3
|
import { fork } from "node:child_process";
|
|
3
4
|
import path, { dirname } from "node:path";
|
|
4
5
|
import { fileURLToPath } from "node:url";
|
|
5
|
-
import { getConfig } from "../utils.js";
|
|
6
6
|
import { DefaultReactorOptions } from "./reactor.js";
|
|
7
7
|
const __dirname = import.meta.dirname || dirname(fileURLToPath(import.meta.url));
|
|
8
8
|
function spawnLocalSwitchboard(options) {
|
|
9
9
|
const child = fork(path.join(dirname(__dirname), "commands", "switchboard.js"), ["spawn", JSON.stringify(options)], { silent: true });
|
|
10
10
|
return new Promise((resolve) => {
|
|
11
11
|
child.on("message", (message) => {
|
|
12
|
-
// eslint-disable-next-line @typescript-eslint/no-base-to-string
|
|
13
12
|
const text = message.toString();
|
|
14
13
|
if (text.startsWith("driveUrl:")) {
|
|
15
14
|
const driveUrl = text.substring("driveUrl:".length);
|
|
@@ -34,13 +33,16 @@ function spawnLocalSwitchboard(options) {
|
|
|
34
33
|
});
|
|
35
34
|
});
|
|
36
35
|
}
|
|
37
|
-
async function spawnConnect(options, localReactorUrl) {
|
|
38
|
-
|
|
36
|
+
async function spawnConnect(options = {}, localReactorUrl) {
|
|
37
|
+
if (localReactorUrl) {
|
|
38
|
+
options.defaultDrivesUrl = options.defaultDrivesUrl
|
|
39
|
+
? options.defaultDrivesUrl.concat([localReactorUrl])
|
|
40
|
+
: [localReactorUrl];
|
|
41
|
+
}
|
|
42
|
+
const child = fork(path.join(dirname(__dirname), "commands", "connect.js"), ["spawn", JSON.stringify(options)], {
|
|
39
43
|
silent: true,
|
|
40
44
|
env: {
|
|
41
45
|
...process.env,
|
|
42
|
-
// TODO add studio variables?
|
|
43
|
-
PH_CONNECT_DEFAULT_DRIVES_URL: localReactorUrl,
|
|
44
46
|
},
|
|
45
47
|
});
|
|
46
48
|
return new Promise((resolve) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dev.js","sourceRoot":"","sources":["../../../src/services/dev.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,GAAG,EAAE,MAAM,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"dev.js","sourceRoot":"","sources":["../../../src/services/dev.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAC;AACvD,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,GAAG,EAAE,MAAM,WAAW,CAAC;AAE7C,OAAO,EAAE,IAAI,EAAE,MAAM,oBAAoB,CAAC;AAC1C,OAAO,IAAI,EAAE,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAC1C,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAEzC,OAAO,EAAE,qBAAqB,EAAE,MAAM,cAAc,CAAC;AAErD,MAAM,SAAS,GACb,MAAM,CAAC,IAAI,CAAC,OAAO,IAAI,OAAO,CAAC,aAAa,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC;AAWjE,SAAS,qBAAqB,CAAC,OAAwB;IACrD,MAAM,KAAK,GAAG,IAAI,CAChB,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,EAAE,UAAU,EAAE,gBAAgB,CAAC,EAC3D,CAAC,OAAO,EAAE,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC,EAClC,EAAE,MAAM,EAAE,IAAI,EAAE,CACiB,CAAC;IAEpC,OAAO,IAAI,OAAO,CAAuB,CAAC,OAAO,EAAE,EAAE;QACnD,KAAK,CAAC,EAAE,CAAC,SAAS,EAAE,CAAC,OAAO,EAAE,EAAE;YAC9B,MAAM,IAAI,GAAG,OAAO,CAAC,QAAQ,EAAE,CAAC;YAEhC,IAAI,IAAI,CAAC,UAAU,CAAC,WAAW,CAAC,EAAE,CAAC;gBACjC,MAAM,QAAQ,GAAG,IAAI,CAAC,SAAS,CAAC,WAAW,CAAC,MAAM,CAAC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AAG,qBAAqB,CAAC,IAAI,EAC5C,UAAU,GACC;IACX,IAAI,CAAC;QACH,MAAM,UAAU,GAAG,SAAS,CAAC,UAAU,CAAC,CAAC;QACzC,MAAM,KAAK,GAAG,UAAU,CAAC,OAAO,EAAE,KAAK,CAAC;QACxC,MAAM,EAAE,QAAQ,EAAE,GAAG,MAAM,qBAAqB,CAAC;YAC/C,QAAQ;YACR,IAAI,EAAE,eAAe;YACrB,KAAK;YACL,KAAK;SACN,CAAC,CAAC;QACH,MAAM,YAAY,CAAC,EAAE,UAAU,EAAE,EAAE,QAAQ,CAAC,CAAC;IAC/C,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,OAAO,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;IACvB,CAAC;AACH,CAAC"}
|
|
@@ -4,15 +4,19 @@ export type GenerateOptions = {
|
|
|
4
4
|
processors?: string;
|
|
5
5
|
documentModels?: string;
|
|
6
6
|
skipFormat?: boolean;
|
|
7
|
+
force?: boolean;
|
|
7
8
|
watch?: boolean;
|
|
8
9
|
editor?: string;
|
|
9
10
|
processor?: string;
|
|
10
11
|
documentTypes?: string;
|
|
12
|
+
allowedDocumentTypes?: string;
|
|
13
|
+
isDragAndDropEnabled?: boolean;
|
|
11
14
|
processorType?: "analytics" | "relationalDb";
|
|
12
15
|
subgraph?: string;
|
|
13
16
|
importScript?: string;
|
|
14
17
|
file?: string;
|
|
15
18
|
driveEditor?: string;
|
|
19
|
+
driveEditorAppId?: string;
|
|
16
20
|
migrationFile?: string;
|
|
17
21
|
schemaFile?: string;
|
|
18
22
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"generate.d.ts","sourceRoot":"","sources":["../../../src/services/generate.ts"],"names":[],"mappings":"AAaA,MAAM,MAAM,eAAe,GAAG;IAC5B,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB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AE,MAAM,CAAC;IACtB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB,CAAC;AAEF,wBAAsB,aAAa,CACjC,QAAQ,EAAE,MAAM,GAAG,SAAS,EAC5B,OAAO,EAAE,eAAe,iBAkFzB"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { generate as generateCode, generateDBSchema, generateDriveEditor, generateEditor, generateFromFile, generateImportScript, generateProcessor, generateSubgraph, } from "@powerhousedao/codegen";
|
|
2
|
-
import { getConfig } from "@powerhousedao/config/
|
|
2
|
+
import { getConfig } from "@powerhousedao/config/node";
|
|
3
3
|
import path from "path";
|
|
4
4
|
export async function startGenerate(filePath, options) {
|
|
5
5
|
const baseConfig = getConfig();
|
|
@@ -20,6 +20,7 @@ export async function startGenerate(filePath, options) {
|
|
|
20
20
|
editor: !!options.editor,
|
|
21
21
|
editorName: options.editor,
|
|
22
22
|
documentTypes: options.documentTypes,
|
|
23
|
+
allowedDocumentTypes: options.allowedDocumentTypes,
|
|
23
24
|
processor: !!options.processor,
|
|
24
25
|
processorName: options.processor,
|
|
25
26
|
processorType: options.processorType,
|
|
@@ -29,6 +30,8 @@ export async function startGenerate(filePath, options) {
|
|
|
29
30
|
importScriptName: options.importScript,
|
|
30
31
|
driveEditor: !!options.driveEditor,
|
|
31
32
|
driveEditorName: options.driveEditor,
|
|
33
|
+
driveEditorAppId: options.driveEditorAppId,
|
|
34
|
+
isDragAndDropEnabled: options.isDragAndDropEnabled,
|
|
32
35
|
migrationFile: options.migrationFile,
|
|
33
36
|
schemaFile: options.schemaFile,
|
|
34
37
|
};
|
|
@@ -36,7 +39,13 @@ export async function startGenerate(filePath, options) {
|
|
|
36
39
|
if (!command.driveEditorName) {
|
|
37
40
|
throw new Error("Drive editor name is required (--drive-editor or -d)");
|
|
38
41
|
}
|
|
39
|
-
await generateDriveEditor(
|
|
42
|
+
await generateDriveEditor({
|
|
43
|
+
config,
|
|
44
|
+
name: command.driveEditorName,
|
|
45
|
+
appId: command.driveEditorAppId,
|
|
46
|
+
allowedDocumentTypes: command.allowedDocumentTypes,
|
|
47
|
+
isDragAndDropEnabled: command.isDragAndDropEnabled,
|
|
48
|
+
});
|
|
40
49
|
}
|
|
41
50
|
else if (command.editor) {
|
|
42
51
|
if (!command.editorName) {
|
|
@@ -62,7 +71,7 @@ export async function startGenerate(filePath, options) {
|
|
|
62
71
|
});
|
|
63
72
|
}
|
|
64
73
|
else if (filePath) {
|
|
65
|
-
await generateFromFile(filePath, config);
|
|
74
|
+
await generateFromFile(filePath, config, { force: options.force });
|
|
66
75
|
}
|
|
67
76
|
else {
|
|
68
77
|
await generateCode(config);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"generate.js","sourceRoot":"","sources":["../../../src/services/generate.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,IAAI,YAAY,EACxB,gBAAgB,EAChB,mBAAmB,EACnB,cAAc,EACd,gBAAgB,EAChB,oBAAoB,EACpB,iBAAiB,EACjB,gBAAgB,GACjB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,SAAS,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"generate.js","sourceRoot":"","sources":["../../../src/services/generate.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,IAAI,YAAY,EACxB,gBAAgB,EAChB,mBAAmB,EACnB,cAAc,EACd,gBAAgB,EAChB,oBAAoB,EACpB,iBAAiB,EACjB,gBAAgB,GACjB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAC;AACvD,OAAO,IAAI,MAAM,MAAM,CAAC;AAyBxB,MAAM,CAAC,KAAK,UAAU,aAAa,CACjC,QAA4B,EAC5B,OAAwB;IAExB,M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C;QACpD,MAAM,gBAAgB,CAAC,OAAO,CAAC,YAAY,EAAE,OAAO,CAAC,IAAI,IAAI,IAAI,EAAE,MAAM,CAAC,CAAC;IAC7E,CAAC;SAAM,IAAI,OAAO,CAAC,YAAY,IAAI,OAAO,CAAC,gBAAgB,EAAE,CAAC;QAC5D,MAAM,oBAAoB,CAAC,OAAO,CAAC,gBAAgB,EAAE,MAAM,CAAC,CAAC;IAC/D,CAAC;SAAM,IAAI,OAAO,CAAC,aAAa,EAAE,CAAC;QACjC,MAAM,EAAE,aAAa,EAAE,UAAU,EAAE,GAAG,OAAO,CAAC;QAC9C,MAAM,gBAAgB,CAAC;YACrB,aAAa,EAAE,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,GAAG,EAAE,EAAE,aAAa,CAAC;YACtD,UAAU,EAAE,UAAU,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,GAAG,EAAE,EAAE,UAAU,CAAC,CAAC,CAAC,CAAC,SAAS;SAC1E,CAAC,CAAC;IACL,CAAC;SAAM,IAAI,QAAQ,EAAE,CAAC;QACpB,MAAM,gBAAgB,CAAC,QAAQ,EAAE,MAAM,EAAE,EAAE,KAAK,EAAE,OAAO,CAAC,KAAK,EAAE,CAAC,CAAC;IACrE,CAAC;SAAM,CAAC;QACN,MAAM,YAAY,CAAC,MAAM,CAAC,CAAC;IAC7B,CAAC;AACH,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { LocalReactor, StartServerOptions } from "@powerhousedao/reactor-local";
|
|
2
2
|
export type ReactorOptions = StartServerOptions & {
|
|
3
3
|
configFile?: string;
|
|
4
4
|
generate?: boolean;
|
|
@@ -30,6 +30,7 @@ export declare const DefaultReactorOptions: {
|
|
|
30
30
|
triggers: never[];
|
|
31
31
|
};
|
|
32
32
|
};
|
|
33
|
+
mcp: true;
|
|
33
34
|
};
|
|
34
35
|
export declare function startLocalReactor(reactorOptions: ReactorOptions): Promise<LocalReactor>;
|
|
35
36
|
//# sourceMappingURL=reactor.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"reactor.d.ts","sourceRoot":"","sources":["../../../src/services/reactor.ts"],"names":[],"mappings":"AAGA,OAAO,
|
|
1
|
+
{"version":3,"file":"reactor.d.ts","sourceRoot":"","sources":["../../../src/services/reactor.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EACV,YAAY,EAEZ,kBAAkB,EACnB,MAAM,8BAA8B,CAAC;AAatC,MAAM,MAAM,cAAc,GAAG,kBAAkB,GAAG;IAChD,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,kBAAkB,CAAC,EAAE,MAAM,CAAC;CAC7B,CAAC;AAEF,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;CAGjC,CAAC;AAgCF,wBAAsB,iBAAiB,CAAC,cAAc,EAAE,cAAc,yBA2BrE"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { generateFromFile } from "@powerhousedao/codegen";
|
|
2
|
-
import { getConfig } from "@powerhousedao/config/
|
|
2
|
+
import { getConfig } from "@powerhousedao/config/node";
|
|
3
3
|
import { DefaultStartServerOptions, startServer, } from "@powerhousedao/reactor-local";
|
|
4
|
-
import { InternalTransmitter
|
|
4
|
+
import { InternalTransmitter } from "document-drive";
|
|
5
5
|
import { readFileSync } from "node:fs";
|
|
6
6
|
export const DefaultReactorOptions = {
|
|
7
7
|
...DefaultStartServerOptions,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"reactor.js","sourceRoot":"","sources":["../../../src/services/reactor.ts"],"names":[],"mappings":"AAAA,OAAO,EAA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3D,CAAC;YACJ,CAAC;YACD,KAAK,MAAM,IAAI,IAAI,aAAa,EAAE,CAAC;gBACjC,MAAM,gBAAgB,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC;YACvC,CAAC;YACD,OAAO,OAAO,CAAC,OAAO,EAAE,CAAC;QAC3B,CAAC;QACD,YAAY,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,OAAO,EAAE;KACtC,CAAC;IAEF,MAAM,eAAe,GAAG,OAAO,CAAC,MAAM,CAAC,SAAS,CAAC;IAEjD,iBAAiB;IACjB,MAAM,QAAQ,GAAmB;QAC/B,OAAO,EAAE,YAAY;QACrB,UAAU,EAAE,wCAAwC;QACpD,KAAK,EAAE,wCAAwC;QAC/C,MAAM,EAAE;YACN,YAAY,EAAE,CAAC,2BAA2B,CAAC;YAC3C,KAAK,EAAE,CAAC,QAAQ,CAAC;YACjB,MAAM,EAAE,CAAC,GAAG,CAAC;YACb,UAAU,EAAE,CAAC,GAAG,CAAC;SAClB;QACD,KAAK,EAAE,KAAK;QACZ,MAAM,EAAE,KAAK;QACb,QAAQ,EAAE;YACR,IAAI,EAAE,EAAE;YACR,IAAI,EAAE,wCAAwC;YAC9C,eAAe,EAAE,UAAU;SAC5B;KACF,CAAC;IAEF,MAAM,WAAW,GAAG,IAAI,mBAAmB,CAAC,OAAO,CAAC,MAAM,EAAE,SAAS,CAAC,CAAC;IAEvE,QAAQ,CAAC,WAAW,GAAG,WAAW,CAAC;IAEnC,MAAM,eAAe,CAAC,WAAW,CAAC,QAAQ,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAC;AAChE,CAAC"}
|
|
@@ -1,3 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import type { StartServerOptions } from "@powerhousedao/switchboard/server";
|
|
2
|
+
type SwitchboardOptions = StartServerOptions & {
|
|
3
|
+
remoteDrives?: string[];
|
|
4
|
+
useVetraDrive?: boolean;
|
|
5
|
+
vetraDriveId?: string;
|
|
6
|
+
};
|
|
7
|
+
export declare function startSwitchboard(options: SwitchboardOptions): Promise<import("@powerhousedao/switchboard/server").SwitchboardReactor>;
|
|
8
|
+
export {};
|
|
3
9
|
//# sourceMappingURL=switchboard.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"switchboard.d.ts","sourceRoot":"","sources":["../../../src/services/switchboard.ts"],"names":[],"mappings":"AACA,OAAO,
|
|
1
|
+
{"version":3,"file":"switchboard.d.ts","sourceRoot":"","sources":["../../../src/services/switchboard.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,mCAAmC,CAAC;AA+C5E,KAAK,kBAAkB,GAAG,kBAAkB,GAAG;IAC7C,YAAY,CAAC,EAAE,MAAM,EAAE,CAAC;IACxB,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB,CAAC;AAEF,wBAAsB,gBAAgB,CAAC,OAAO,EAAE,kBAAkB,2EAmCjE"}
|