@powerhousedao/ph-cli 4.1.0-dev.12 → 4.1.0-dev.120

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.
Files changed (132) hide show
  1. package/README.md +21 -4
  2. package/dist/src/cli.js +14 -1
  3. package/dist/src/cli.js.map +1 -1
  4. package/dist/src/commands/connect.d.ts +17 -6
  5. package/dist/src/commands/connect.d.ts.map +1 -1
  6. package/dist/src/commands/connect.js +56 -36
  7. package/dist/src/commands/connect.js.map +1 -1
  8. package/dist/src/commands/generate.d.ts +4 -4
  9. package/dist/src/commands/generate.d.ts.map +1 -1
  10. package/dist/src/commands/generate.js +6 -3
  11. package/dist/src/commands/generate.js.map +1 -1
  12. package/dist/src/commands/help.d.ts +1 -1
  13. package/dist/src/commands/help.d.ts.map +1 -1
  14. package/dist/src/commands/index.d.ts +11 -4
  15. package/dist/src/commands/index.d.ts.map +1 -1
  16. package/dist/src/commands/index.js +11 -29
  17. package/dist/src/commands/index.js.map +1 -1
  18. package/dist/src/commands/inspect.d.ts +3 -3
  19. package/dist/src/commands/inspect.d.ts.map +1 -1
  20. package/dist/src/commands/install.d.ts +2 -3
  21. package/dist/src/commands/install.d.ts.map +1 -1
  22. package/dist/src/commands/install.js.map +1 -1
  23. package/dist/src/commands/list.d.ts +2 -2
  24. package/dist/src/commands/list.d.ts.map +1 -1
  25. package/dist/src/commands/list.js +1 -1
  26. package/dist/src/commands/list.js.map +1 -1
  27. package/dist/src/commands/migrate.d.ts +3 -0
  28. package/dist/src/commands/migrate.d.ts.map +1 -0
  29. package/dist/src/commands/migrate.js +8 -0
  30. package/dist/src/commands/migrate.js.map +1 -0
  31. package/dist/src/commands/register-commands.d.ts +5 -0
  32. package/dist/src/commands/register-commands.d.ts.map +1 -0
  33. package/dist/src/commands/register-commands.js +28 -0
  34. package/dist/src/commands/register-commands.js.map +1 -0
  35. package/dist/src/commands/service.d.ts +2 -2
  36. package/dist/src/commands/service.d.ts.map +1 -1
  37. package/dist/src/commands/service.js.map +1 -1
  38. package/dist/src/commands/switchboard.d.ts +6 -6
  39. package/dist/src/commands/switchboard.d.ts.map +1 -1
  40. package/dist/src/commands/switchboard.js +16 -7
  41. package/dist/src/commands/switchboard.js.map +1 -1
  42. package/dist/src/commands/uninstall.d.ts +3 -3
  43. package/dist/src/commands/uninstall.d.ts.map +1 -1
  44. package/dist/src/commands/uninstall.js.map +1 -1
  45. package/dist/src/commands/vetra.d.ts +4 -3
  46. package/dist/src/commands/vetra.d.ts.map +1 -1
  47. package/dist/src/commands/vetra.js +11 -6
  48. package/dist/src/commands/vetra.js.map +1 -1
  49. package/dist/src/help.d.ts +6 -6
  50. package/dist/src/help.d.ts.map +1 -1
  51. package/dist/src/help.js +131 -61
  52. package/dist/src/help.js.map +1 -1
  53. package/dist/src/index.d.ts +2 -0
  54. package/dist/src/index.d.ts.map +1 -1
  55. package/dist/src/index.js +2 -0
  56. package/dist/src/index.js.map +1 -1
  57. package/dist/src/services/connect.d.ts +1 -3
  58. package/dist/src/services/connect.d.ts.map +1 -1
  59. package/dist/src/services/connect.js +1 -15
  60. package/dist/src/services/connect.js.map +1 -1
  61. package/dist/src/services/generate.d.ts +8 -0
  62. package/dist/src/services/generate.d.ts.map +1 -1
  63. package/dist/src/services/generate.js +25 -4
  64. package/dist/src/services/generate.js.map +1 -1
  65. package/dist/src/services/migrate/migrate.d.ts +3 -0
  66. package/dist/src/services/migrate/migrate.d.ts.map +1 -0
  67. package/dist/src/services/migrate/migrate.js +282 -0
  68. package/dist/src/services/migrate/migrate.js.map +1 -0
  69. package/dist/src/services/migrate/migrations/templates/document-models.d.ts +2 -0
  70. package/dist/src/services/migrate/migrations/templates/document-models.d.ts.map +1 -0
  71. package/dist/src/services/migrate/migrations/templates/document-models.js +6 -0
  72. package/dist/src/services/migrate/migrations/templates/document-models.js.map +1 -0
  73. package/dist/src/services/migrate/migrations/templates/editors.d.ts +2 -0
  74. package/dist/src/services/migrate/migrations/templates/editors.d.ts.map +1 -0
  75. package/dist/src/services/migrate/migrations/templates/editors.js +6 -0
  76. package/dist/src/services/migrate/migrations/templates/editors.js.map +1 -0
  77. package/dist/src/services/migrate/migrations/templates/index.d.ts +2 -0
  78. package/dist/src/services/migrate/migrations/templates/index.d.ts.map +1 -0
  79. package/dist/src/services/migrate/migrations/templates/index.js +7 -0
  80. package/dist/src/services/migrate/migrations/templates/index.js.map +1 -0
  81. package/dist/src/services/migrate/migrations/templates/packageJson.d.ts +55 -0
  82. package/dist/src/services/migrate/migrations/templates/packageJson.d.ts.map +1 -0
  83. package/dist/src/services/migrate/migrations/templates/packageJson.js +55 -0
  84. package/dist/src/services/migrate/migrations/templates/packageJson.js.map +1 -0
  85. package/dist/src/services/migrate/migrations/templates/tsConfig.d.ts +2 -0
  86. package/dist/src/services/migrate/migrations/templates/tsConfig.d.ts.map +1 -0
  87. package/dist/src/services/migrate/migrations/templates/tsConfig.js +45 -0
  88. package/dist/src/services/migrate/migrations/templates/tsConfig.js.map +1 -0
  89. package/dist/src/services/switchboard.d.ts +37 -2
  90. package/dist/src/services/switchboard.d.ts.map +1 -1
  91. package/dist/src/services/switchboard.js +46 -8
  92. package/dist/src/services/switchboard.js.map +1 -1
  93. package/dist/src/services/vetra.d.ts +4 -6
  94. package/dist/src/services/vetra.d.ts.map +1 -1
  95. package/dist/src/services/vetra.js +128 -166
  96. package/dist/src/services/vetra.js.map +1 -1
  97. package/dist/src/utils/configure-vetra-github-url.d.ts +12 -0
  98. package/dist/src/utils/configure-vetra-github-url.d.ts.map +1 -0
  99. package/dist/src/utils/configure-vetra-github-url.js +230 -0
  100. package/dist/src/utils/configure-vetra-github-url.js.map +1 -0
  101. package/dist/src/utils.d.ts +11 -4
  102. package/dist/src/utils.d.ts.map +1 -1
  103. package/dist/src/utils.js +18 -14
  104. package/dist/src/utils.js.map +1 -1
  105. package/dist/src/version.d.ts +1 -1
  106. package/dist/src/version.d.ts.map +1 -1
  107. package/dist/src/version.js +1 -1
  108. package/dist/src/version.js.map +1 -1
  109. package/dist/test/utils.test.d.ts +2 -0
  110. package/dist/test/utils.test.d.ts.map +1 -0
  111. package/dist/test/utils.test.js +132 -0
  112. package/dist/test/utils.test.js.map +1 -0
  113. package/dist/tsconfig.tsbuildinfo +1 -0
  114. package/package.json +19 -21
  115. package/dist/package.json +0 -58
  116. package/dist/src/commands/dev.d.ts +0 -6
  117. package/dist/src/commands/dev.d.ts.map +0 -1
  118. package/dist/src/commands/dev.js +0 -25
  119. package/dist/src/commands/dev.js.map +0 -1
  120. package/dist/src/commands/reactor.d.ts +0 -9
  121. package/dist/src/commands/reactor.d.ts.map +0 -1
  122. package/dist/src/commands/reactor.js +0 -42
  123. package/dist/src/commands/reactor.js.map +0 -1
  124. package/dist/src/services/dev.d.ts +0 -10
  125. package/dist/src/services/dev.d.ts.map +0 -1
  126. package/dist/src/services/dev.js +0 -75
  127. package/dist/src/services/dev.js.map +0 -1
  128. package/dist/src/services/reactor.d.ts +0 -35
  129. package/dist/src/services/reactor.d.ts.map +0 -1
  130. package/dist/src/services/reactor.js +0 -92
  131. package/dist/src/services/reactor.js.map +0 -1
  132. 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
- -p, --port <port> Port to run the server on. Default is 3000.
19
-
20
- -h, --host Expose the server to the network. By default, the server
21
- only accepts connections from localhost.
22
-
23
- --https Enable HTTPS for secure connections. You may need to provide
24
- certificate files for this option to work properly.
25
-
26
- --open Automatically open the browser window after starting the server.
27
-
28
- --config-file <path> Path to the powerhouse.config.js file. This allows you to
29
- customize the behavior of Connect Studio.
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 # Start Connect Studio on default port 3000
33
- $ ph connect -p 8080 # Start on port 8080
34
- $ ph connect -h # Expose to network (not just localhost)
35
- $ ph connect --https # Enable HTTPS
36
- $ ph connect --open # Open browser automatically
37
- $ ph connect --config-file custom.config.js # Use custom configuration
38
- $ ph connect -p 8080 --open # Start on port 8080 and open browser
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 connect build with the project's local and external packages included.
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
- --base <path> The base path for the app. Default is "/".
49
- --project-root <path> The root directory of the project. Default is "process.cwd()".
50
- --assets-dir-name <name> The name of the assets directory. Default is "${DEFAULT_ASSETS_DIR_NAME}".
51
- --external-packages-file-name <name> The name of the external packages file. Default is "${DEFAULT_EXTERNAL_PACKAGES_FILE_NAME}".
52
- --styles-file-name <name> The name of the styles file. Default is "${DEFAULT_STYLES_FILE_NAME}".
53
- --connect-path <path> The path to the Connect dist directory. Calls "resolveConnect()" if not provided.
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
- --base <path> The base path for the app. Default is "/".
65
- --project-root <path> The root directory of the project. Default is "process.cwd()".
66
- --port <port> The port to run the server on. Default is 4173.
67
- --open Open the browser. Default is true.
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 # Generate a specific processor
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,48 +351,57 @@ Examples:
295
351
  */
296
352
  export const vetraHelp = `
297
353
  Command Overview:
298
- The vetra command sets up a complete Vetra development environment for working with Vetra projects.
299
- It starts three coordinated services: a Vetra Switchboard, a Local Reactor, and Connect Studio,
300
- enabling full document collaboration and real-time processing with a "Vetra" drive.
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. Starts a Local Reactor that connects to the Vetra Switchboard as a remote drive
305
- 3. Starts Connect Studio pointing to the Local Reactor for user interaction
306
- 4. Enables real-time updates, collaboration, and code generation across all services
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
- --generate Generate code automatically when document models are updated.
310
- This keeps your code in sync with model changes across all services.
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> Specify the port to use for the Vetra Switchboard service.
313
- Default is 4001. The Switchboard handles document storage.
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
- --reactor-port <port> Specify the port to use for the Local Reactor service.
316
- Default is 4002. The Reactor provides the main API and connects to switchboard.
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> Path to the SSL key file if using HTTPS for secure connections.
374
+ --https-key-file <path> Path to the SSL key file if using HTTPS for secure connections.
319
375
 
320
- --https-cert-file <path> Path to the SSL certificate file if using HTTPS.
376
+ --https-cert-file <path> Path to the SSL certificate file if using HTTPS.
321
377
 
322
- --config-file <path> Path to the powerhouse.config.js file. This allows you to
323
- customize the behavior of all services in the Vetra development environment.
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 Watch for local changes to document models and processors,
326
- and automatically update both the Switchboard and Reactor accordingly.
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.
327
384
 
328
- --remote-drive <url> URL of remote drive to connect to (skips switchboard initialization).
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.
329
387
 
330
- --logs Enable verbose logging for all services. This provides detailed
331
- output from Switchboard, Reactor, and Connect during startup and operation.
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.
332
394
 
333
395
  Examples:
334
- $ ph vetra # Start complete Vetra environment with defaults
335
- $ ph vetra --generate # Auto-generate code on model changes
336
- $ ph vetra --switchboard-port 5000 --reactor-port 5001 # Use custom ports
337
- $ ph vetra --config-file custom.powerhouse.config.js # Use custom configuration
338
- $ ph vetra --watch # Watch for changes and auto-update
339
- $ ph vetra --logs # Enable detailed logging from all services
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
340
405
  $ ph vetra --https-key-file key.pem --https-cert-file cert.pem # Use HTTPS
341
406
  `;
342
407
  /**
@@ -439,6 +504,10 @@ Options:
439
504
  --config-file <path> Path to the powerhouse.config.js file. Default is
440
505
  './powerhouse.config.json'. This configures the switchboard behavior.
441
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
+
442
511
  --db-path <DB_PATH> Path to the database for storing document data.
443
512
 
444
513
  --https-key-file <path> Path to the SSL key file if using HTTPS for secure connections.
@@ -454,6 +523,7 @@ Options:
454
523
  Examples:
455
524
  $ ph switchboard # Start switchboard with default settings
456
525
  $ ph switchboard --port 5000 # Use custom port 5000
526
+ $ ph switchboard --dev # Enable dev mode to load local packages
457
527
  $ ph switchboard --config-file custom.json # Use custom configuration file
458
528
  $ ph switchboard --packages pkg1 pkg2 # Load specific packages
459
529
  $ ph switchboard --base-path /switchboard # Set API base path to /switchboard
@@ -1 +1 @@
1
- {"version":3,"file":"help.js","sourceRoot":"","sources":["../../src/help.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,uBAAuB,EACvB,mCAAmC,EACnC,wBAAwB,GACzB,MAAM,4CAA4C,CAAC;AAEpD;;GAEG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkChC,CAAC;AAEF;;GAEG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAG;;;;;;;2EAO2C,uBAAuB;6FACL,mCAAmC;uEACzD,wBAAwB;;CAE9F,CAAC;AAEF;;GAEG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAG;;;;;;;;;;CAUjC,CAAC;AAEF;;GAEG;AACH,MAAM,CAAC,MAAM,YAAY,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+D3B,CAAC;AAEF;;GAEG;AACH,MAAM,CAAC,MAAM,WAAW,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsC1B,CAAC;AAEF;;GAEG;AACH,MAAM,CAAC,MAAM,aAAa,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwC5B,CAAC;AAE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export * from "./help.js";
3
+ export * from "./types.js";
2
4
  export * from "./utils.js";
3
5
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC;AACpC,cAAc,YAAY,CAAC"}
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
@@ -1,3 +1,5 @@
1
1
  export * from "./commands/index.js";
2
+ export * from "./help.js";
3
+ export * from "./types.js";
2
4
  export * from "./utils.js";
3
5
  //# sourceMappingURL=index.js.map
@@ -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
- import { type ConnectStudioOptions } from "@powerhousedao/builder-tools/connect-studio";
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,KAAK,oBAAoB,EAE1B,MAAM,6CAA6C,CAAC;AAKrD,MAAM,MAAM,cAAc,GAAG,oBAAoB,CAAC;AAElD,wBAAsB,YAAY,CAAC,cAAc,EAAE,cAAc,6BAUhE"}
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
- import { startConnectStudio, } from "@powerhousedao/builder-tools/connect-studio";
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,EAEL,kBAAkB,GACnB,MAAM,6CAA6C,CAAC;AACrD,OAAO,EAAE,SAAS,EAAE,MAAM,6BAA6B,CAAC;AACxD,OAAO,WAAW,MAAM,oBAAoB,CAAC,OAAO,IAAI,EAAE,MAAM,EAAE,CAAC;AAEnE,MAAM,OAAO,GAAG,WAAW,CAAC,OAAO,CAAC;AAGpC,MAAM,CAAC,KAAK,UAAU,YAAY,CAAC,cAA8B;IAC/D,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,QAAQ,EAAE,GAAG,SAAS,CAAC,cAAc,CAAC,UAAU,CAAC,CAAC;IAC5E,OAAO,MAAM,kBAAkB,CAAC;QAC9B,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,SAAS;QAC3C,QAAQ;QACR,YAAY,EAAE,OAAO,OAAO,KAAK,QAAQ,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS;QAC/D,IAAI,EAAE,MAAM,EAAE,WAAW;QACzB,QAAQ,EAAE,QAAQ;QAClB,GAAG,cAAc;KAClB,CAAC,CAAC;AACL,CAAC"}
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"}
@@ -4,15 +4,23 @@ export type GenerateOptions = {
4
4
  processors?: string;
5
5
  documentModels?: string;
6
6
  skipFormat?: boolean;
7
+ force?: boolean;
7
8
  watch?: boolean;
9
+ specifiedPackageName?: string;
8
10
  editor?: string;
11
+ editorId?: string;
12
+ editorDirName?: string;
9
13
  processor?: string;
10
14
  documentTypes?: string;
15
+ allowedDocumentTypes?: string;
16
+ isDragAndDropEnabled?: boolean;
11
17
  processorType?: "analytics" | "relationalDb";
12
18
  subgraph?: string;
13
19
  importScript?: string;
14
20
  file?: string;
15
21
  driveEditor?: string;
22
+ driveEditorAppId?: string;
23
+ driveEditorDirName?: string;
16
24
  migrationFile?: string;
17
25
  schemaFile?: string;
18
26
  };
@@ -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,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,aAAa,C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AAE,MAAM,CAAC;IAC1B,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,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,iBA0FzB"}
@@ -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/utils";
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();
@@ -17,9 +17,13 @@ export async function startGenerate(filePath, options) {
17
17
  },
18
18
  };
19
19
  const command = {
20
+ specifiedPackageName: options.specifiedPackageName,
20
21
  editor: !!options.editor,
21
22
  editorName: options.editor,
23
+ editorId: options.editorId,
24
+ editorDirName: options.editorDirName,
22
25
  documentTypes: options.documentTypes,
26
+ allowedDocumentTypes: options.allowedDocumentTypes,
23
27
  processor: !!options.processor,
24
28
  processorName: options.processor,
25
29
  processorType: options.processorType,
@@ -29,6 +33,9 @@ export async function startGenerate(filePath, options) {
29
33
  importScriptName: options.importScript,
30
34
  driveEditor: !!options.driveEditor,
31
35
  driveEditorName: options.driveEditor,
36
+ driveEditorAppId: options.driveEditorAppId,
37
+ driveEditorDirName: options.driveEditorDirName,
38
+ isDragAndDropEnabled: options.isDragAndDropEnabled,
32
39
  migrationFile: options.migrationFile,
33
40
  schemaFile: options.schemaFile,
34
41
  };
@@ -36,13 +43,27 @@ export async function startGenerate(filePath, options) {
36
43
  if (!command.driveEditorName) {
37
44
  throw new Error("Drive editor name is required (--drive-editor or -d)");
38
45
  }
39
- await generateDriveEditor(command.driveEditorName, config);
46
+ await generateDriveEditor({
47
+ config,
48
+ name: command.driveEditorName,
49
+ appId: command.driveEditorAppId,
50
+ allowedDocumentTypes: command.allowedDocumentTypes,
51
+ isDragAndDropEnabled: command.isDragAndDropEnabled,
52
+ driveEditorDirName: command.driveEditorDirName,
53
+ });
40
54
  }
41
55
  else if (command.editor) {
42
56
  if (!command.editorName) {
43
57
  throw new Error("Editor name is required (--editor or -e)");
44
58
  }
45
- await generateEditor(command.editorName, command.documentTypes?.split(/[|,;]/g) ?? [], config);
59
+ await generateEditor({
60
+ name: command.editorName,
61
+ documentTypes: command.documentTypes?.split(/[|,;]/g) ?? [],
62
+ config: config,
63
+ editorId: command.editorId,
64
+ specifiedPackageName: command.specifiedPackageName,
65
+ editorDirName: command.editorDirName,
66
+ });
46
67
  }
47
68
  else if (command.processor && options.processor) {
48
69
  const processorType = options.processorType === "relationalDb" ? "relationalDb" : "analytics";
@@ -62,7 +83,7 @@ export async function startGenerate(filePath, options) {
62
83
  });
63
84
  }
64
85
  else if (filePath) {
65
- await generateFromFile(filePath, config);
86
+ await generateFromFile(filePath, config, { force: options.force });
66
87
  }
67
88
  else {
68
89
  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,6BAA6B,CAAC;AACxD,OAAO,IAAI,MAAM,MAAM,CAAC;AAqBxB,MAAM,CAAC,KAAK,UAAU,aAAa,CACjC,QAA4B,EAC5B,OAAwB;IAExB,MAAM,UAAU,GAAG,SAAS,EAAE,CAAC;IAE/B,MAAM,MAAM,GAAG;QACb,GAAG,UAAU;QACb,GAAG;YACD,GAAG,CAAC,OAAO,CAAC,OAAO,IAAI,EAAE,UAAU,EAAE,OAAO,CAAC,OA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I,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"}
@@ -0,0 +1,3 @@
1
+ /** Run all migrations */
2
+ export declare function migrate(): Promise<void>;
3
+ //# sourceMappingURL=migrate.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"migrate.d.ts","sourceRoot":"","sources":["../../../../src/services/migrate/migrate.ts"],"names":[],"mappings":"AAqBA,yBAAyB;AACzB,wBAAsB,OAAO,kBAkB5B"}