@powerhousedao/academy 4.1.0-dev.9 → 5.0.0-staging.1

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.
@@ -611,6 +611,10 @@ Options:
611
611
  --config-file <path> Path to the powerhouse.config.js file. Default is
612
612
  './powerhouse.config.json'. This configures the switchboard behavior.
613
613
 
614
+ --dev Enable development mode to load local packages from the current directory.
615
+ This allows the switchboard to discover and load document models, processors,
616
+ and subgraphs from your local development environment.
617
+
614
618
  --db-path <DB_PATH> Path to the database for storing document data.
615
619
 
616
620
  --https-key-file <path> Path to the SSL key file if using HTTPS for secure connections.
@@ -626,6 +630,7 @@ Options:
626
630
  Examples:
627
631
  $ ph switchboard # Start switchboard with default settings
628
632
  $ ph switchboard --port 5000 # Use custom port 5000
633
+ $ ph switchboard --dev # Enable dev mode to load local packages
629
634
  $ ph switchboard --config-file custom.json # Use custom configuration file
630
635
  $ ph switchboard --packages pkg1 pkg2 # Load specific packages
631
636
  $ ph switchboard --base-path /switchboard # Set API base path to /switchboard
@@ -709,42 +714,55 @@ Notes:
709
714
 
710
715
  ```
711
716
  Command Overview:
712
- The vetra command sets up a complete Vetra development environment for working with Vetra projects.
713
- It starts three coordinated services: a Vetra Switchboard, a Local Reactor, and Connect Studio,
714
- enabling full document collaboration and real-time processing with a "Vetra" drive.
717
+ The vetra command sets up a Vetra development environment for working with Vetra projects.
718
+ It starts a Vetra Switchboard and optionally Connect Studio, enabling document collaboration
719
+ and real-time processing with a "Vetra" drive or connection to remote drives.
715
720
 
716
721
  This command:
717
722
  1. Starts a Vetra Switchboard with a "Vetra" drive for document storage
718
- 2. Starts a Local Reactor that connects to the Vetra Switchboard as a remote drive
719
- 3. Starts Connect Studio pointing to the Local Reactor for user interaction
720
- 4. Enables real-time updates, collaboration, and code generation across all services
723
+ 2. Optionally connects to remote drives instead of creating a local drive
724
+ 3. Starts Connect Studio pointing to the Switchboard for user interaction (unless disabled)
725
+ 4. Enables real-time updates, collaboration, and code generation
721
726
 
722
727
  Options:
723
- --generate Generate code automatically when document models are updated.
724
- This keeps your code in sync with model changes across all services.
728
+ --logs Enable verbose logging for all services. This provides detailed
729
+ output from Switchboard and Connect during startup and operation.
725
730
 
726
- --switchboard-port <port> Specify the port to use for the Vetra Switchboard service.
727
- Default is 4001. The Switchboard handles document storage.
731
+ --switchboard-port <port> Specify the port to use for the Vetra Switchboard service.
732
+ Default is 4001. The Switchboard handles document storage.
728
733
 
729
- --reactor-port <port> Specify the port to use for the Local Reactor service.
730
- Default is 4002. The Reactor provides the main API and connects to switchboard.
734
+ --connect-port <port> Specify the port to use for Connect Studio.
735
+ Default is 3000. Connect provides the user interface.
731
736
 
732
- --https-key-file <path> Path to the SSL key file if using HTTPS for secure connections.
737
+ --https-key-file <path> Path to the SSL key file if using HTTPS for secure connections.
733
738
 
734
- --https-cert-file <path> Path to the SSL certificate file if using HTTPS.
739
+ --https-cert-file <path> Path to the SSL certificate file if using HTTPS.
735
740
 
736
- --config-file <path> Path to the powerhouse.config.js file. This allows you to
737
- customize the behavior of all services in the Vetra development environment.
741
+ --config-file <path> Path to the powerhouse.config.js file. This allows you to
742
+ customize the behavior of the Vetra development environment.
738
743
 
739
- -w, --watch Watch for local changes to document models and processors,
740
- and automatically update both the Switchboard and Reactor accordingly.
744
+ -w, --watch Watch for local changes to document models and processors,
745
+ and automatically update the Switchboard accordingly.
746
+
747
+ --remote-drive <url> URL of remote drive to connect to. When specified, the switchboard
748
+ connects to this remote drive instead of creating a local Vetra drive.
749
+
750
+ --disable-connect Skip Connect initialization (only start switchboard and reactor).
751
+ Use this when you only need the backend services running.
752
+
753
+ --interactive Enable interactive mode for code generation. When enabled, the system
754
+ will prompt for user confirmation before generating code. This is useful
755
+ for development when you want control over when code regeneration happens.
741
756
 
742
757
  Examples:
743
- $ ph vetra # Start complete Vetra environment with defaults
744
- $ ph vetra --generate # Auto-generate code on model changes
745
- $ ph vetra --switchboard-port 5000 --reactor-port 5001 # Use custom ports
746
- $ ph vetra --config-file custom.powerhouse.config.js # Use custom configuration
747
- $ ph vetra --watch # Watch for changes and auto-update
758
+ $ ph vetra # Start Vetra environment with defaults
759
+ $ ph vetra --switchboard-port 5000 --connect-port 3001 # Use custom ports
760
+ $ ph vetra --config-file custom.powerhouse.config.js # Use custom configuration
761
+ $ ph vetra --watch # Watch for changes and auto-update
762
+ $ ph vetra --logs # Enable detailed logging
763
+ $ ph vetra --remote-drive http://localhost:4001/d/docs # Connect to remote drive
764
+ $ ph vetra --disable-connect # Start only backend services
765
+ $ ph vetra --interactive # Enable interactive code generation mode
748
766
  $ ph vetra --https-key-file key.pem --https-cert-file cert.pem # Use HTTPS
749
767
  ```
750
768