@powerhousedao/ph-cli 5.0.0-staging.9 → 5.0.1-staging.3

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 (94) 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 +55 -31
  7. package/dist/src/commands/connect.js.map +1 -1
  8. package/dist/src/commands/dev.d.ts +3 -3
  9. package/dist/src/commands/dev.d.ts.map +1 -1
  10. package/dist/src/commands/generate.d.ts +4 -4
  11. package/dist/src/commands/generate.d.ts.map +1 -1
  12. package/dist/src/commands/generate.js +4 -3
  13. package/dist/src/commands/generate.js.map +1 -1
  14. package/dist/src/commands/help.d.ts +1 -1
  15. package/dist/src/commands/help.d.ts.map +1 -1
  16. package/dist/src/commands/index.d.ts +13 -4
  17. package/dist/src/commands/index.d.ts.map +1 -1
  18. package/dist/src/commands/index.js +13 -29
  19. package/dist/src/commands/index.js.map +1 -1
  20. package/dist/src/commands/inspect.d.ts +3 -3
  21. package/dist/src/commands/inspect.d.ts.map +1 -1
  22. package/dist/src/commands/install.d.ts +2 -3
  23. package/dist/src/commands/install.d.ts.map +1 -1
  24. package/dist/src/commands/install.js +1 -2
  25. package/dist/src/commands/install.js.map +1 -1
  26. package/dist/src/commands/list.d.ts +2 -2
  27. package/dist/src/commands/list.d.ts.map +1 -1
  28. package/dist/src/commands/list.js +1 -1
  29. package/dist/src/commands/list.js.map +1 -1
  30. package/dist/src/commands/reactor.d.ts +4 -4
  31. package/dist/src/commands/reactor.d.ts.map +1 -1
  32. package/dist/src/commands/register-commands.d.ts +5 -0
  33. package/dist/src/commands/register-commands.d.ts.map +1 -0
  34. package/dist/src/commands/register-commands.js +30 -0
  35. package/dist/src/commands/register-commands.js.map +1 -0
  36. package/dist/src/commands/service.d.ts +2 -2
  37. package/dist/src/commands/service.d.ts.map +1 -1
  38. package/dist/src/commands/service.js.map +1 -1
  39. package/dist/src/commands/switchboard.d.ts +5 -5
  40. package/dist/src/commands/switchboard.d.ts.map +1 -1
  41. package/dist/src/commands/switchboard.js +2 -4
  42. package/dist/src/commands/switchboard.js.map +1 -1
  43. package/dist/src/commands/uninstall.d.ts +3 -3
  44. package/dist/src/commands/uninstall.d.ts.map +1 -1
  45. package/dist/src/commands/uninstall.js.map +1 -1
  46. package/dist/src/commands/vetra.d.ts +4 -3
  47. package/dist/src/commands/vetra.d.ts.map +1 -1
  48. package/dist/src/commands/vetra.js +2 -1
  49. package/dist/src/commands/vetra.js.map +1 -1
  50. package/dist/src/help.d.ts +5 -5
  51. package/dist/src/help.d.ts.map +1 -1
  52. package/dist/src/help.js +95 -37
  53. package/dist/src/help.js.map +1 -1
  54. package/dist/src/index.d.ts +2 -0
  55. package/dist/src/index.d.ts.map +1 -1
  56. package/dist/src/index.js +2 -0
  57. package/dist/src/index.js.map +1 -1
  58. package/dist/src/services/connect.d.ts +1 -3
  59. package/dist/src/services/connect.d.ts.map +1 -1
  60. package/dist/src/services/connect.js +1 -15
  61. package/dist/src/services/connect.js.map +1 -1
  62. package/dist/src/services/dev.d.ts.map +1 -1
  63. package/dist/src/services/dev.js +8 -6
  64. package/dist/src/services/dev.js.map +1 -1
  65. package/dist/src/services/generate.d.ts +3 -0
  66. package/dist/src/services/generate.d.ts.map +1 -1
  67. package/dist/src/services/generate.js +11 -2
  68. package/dist/src/services/generate.js.map +1 -1
  69. package/dist/src/services/reactor.d.ts +1 -1
  70. package/dist/src/services/reactor.d.ts.map +1 -1
  71. package/dist/src/services/reactor.js +2 -2
  72. package/dist/src/services/reactor.js.map +1 -1
  73. package/dist/src/services/switchboard.d.ts +2 -1
  74. package/dist/src/services/switchboard.d.ts.map +1 -1
  75. package/dist/src/services/switchboard.js +24 -22
  76. package/dist/src/services/switchboard.js.map +1 -1
  77. package/dist/src/services/vetra.d.ts +2 -2
  78. package/dist/src/services/vetra.d.ts.map +1 -1
  79. package/dist/src/services/vetra.js +31 -67
  80. package/dist/src/services/vetra.js.map +1 -1
  81. package/dist/src/utils.d.ts +11 -4
  82. package/dist/src/utils.d.ts.map +1 -1
  83. package/dist/src/utils.js +18 -14
  84. package/dist/src/utils.js.map +1 -1
  85. package/dist/src/version.d.ts +1 -1
  86. package/dist/src/version.js +1 -1
  87. package/dist/test/utils.test.d.ts +2 -0
  88. package/dist/test/utils.test.d.ts.map +1 -0
  89. package/dist/test/utils.test.js +132 -0
  90. package/dist/test/utils.test.js.map +1 -0
  91. package/dist/tsconfig.tsbuildinfo +1 -0
  92. package/package.json +16 -20
  93. package/dist/package.json +0 -58
  94. package/dist/tsconfig.lib.tsbuildinfo +0 -1
@@ -1,7 +1,7 @@
1
- import { type LocalReactor } from "@powerhousedao/reactor-local";
2
- import { type Command } from "commander";
3
- import { type ReactorOptions } from "../services/reactor.js";
4
- import { type CommandActionType } from "../types.js";
1
+ import type { LocalReactor } from "@powerhousedao/reactor-local";
2
+ import type { Command } from "commander";
3
+ import type { ReactorOptions } from "../services/reactor.js";
4
+ import type { CommandActionType } from "../types.js";
5
5
  export declare const switchboard: CommandActionType<[
6
6
  ReactorOptions
7
7
  ], Promise<LocalReactor>>;
@@ -1 +1 @@
1
- {"version":3,"file":"reactor.d.ts","sourceRoot":"","sources":["../../../src/commands/reactor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,8BAA8B,CAAC;AACjE,OAAO,EAAE,KAAK,OAAO,EAAE,MAAM,WAAW,CAAC;AAEzC,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAC7D,OAAO,EAAE,KAAK,iBAAiB,EAAE,MAAM,aAAa,CAAC;AASrD,eAAO,MAAM,WAAW,EAAE,iBAAiB,CACzC;IAAC,cAAc;CAAC,EAChB,OAAO,CAAC,YAAY,CAAC,CAGtB,CAAC;AAEF,wBAAgB,cAAc,CAAC,OAAO,EAAE,OAAO,QAqC9C"}
1
+ {"version":3,"file":"reactor.d.ts","sourceRoot":"","sources":["../../../src/commands/reactor.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AACjE,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEzC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAC7D,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AASrD,eAAO,MAAM,WAAW,EAAE,iBAAiB,CACzC;IAAC,cAAc;CAAC,EAChB,OAAO,CAAC,YAAY,CAAC,CAGtB,CAAC;AAEF,wBAAgB,cAAc,CAAC,OAAO,EAAE,OAAO,QAqC9C"}
@@ -0,0 +1,5 @@
1
+ import type { Command } from "commander";
2
+ import { generateCommand } from "./generate.js";
3
+ export declare const commands: (typeof generateCommand)[];
4
+ export declare function registerCommands(program: Command): void;
5
+ //# sourceMappingURL=register-commands.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"register-commands.d.ts","sourceRoot":"","sources":["../../../src/commands/register-commands.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAGzC,OAAO,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAWhD,eAAO,MAAM,QAAQ,4BAapB,CAAC;AAEF,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,OAAO,QAEhD"}
@@ -0,0 +1,30 @@
1
+ import { connectCommand } from "./connect.js";
2
+ // import { devCommand } from "./dev.js";
3
+ import { generateCommand } from "./generate.js";
4
+ import { helpCommand } from "./help.js";
5
+ import { inspectCommand } from "./inspect.js";
6
+ import { installCommand } from "./install.js";
7
+ import { listCommand } from "./list.js";
8
+ import { reactorCommand } from "./reactor.js";
9
+ import { serviceCommand } from "./service.js";
10
+ import { switchboardCommand } from "./switchboard.js";
11
+ import { uninstallCommand } from "./uninstall.js";
12
+ import { vetraCommand } from "./vetra.js";
13
+ export const commands = [
14
+ // devCommand,
15
+ connectCommand,
16
+ generateCommand,
17
+ reactorCommand,
18
+ helpCommand,
19
+ installCommand,
20
+ uninstallCommand,
21
+ serviceCommand,
22
+ listCommand,
23
+ inspectCommand,
24
+ switchboardCommand,
25
+ vetraCommand,
26
+ ];
27
+ export function registerCommands(program) {
28
+ commands.forEach((command) => command(program));
29
+ }
30
+ //# sourceMappingURL=register-commands.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"register-commands.js","sourceRoot":"","sources":["../../../src/commands/register-commands.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAC9C,yCAAyC;AACzC,OAAO,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAChD,OAAO,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AACxC,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AACxC,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AACtD,OAAO,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAClD,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAE1C,MAAM,CAAC,MAAM,QAAQ,GAAG;IACtB,cAAc;IACd,cAAc;IACd,eAAe;IACf,cAAc;IACd,WAAW;IACX,cAAc;IACd,gBAAgB;IAChB,cAAc;IACd,WAAW;IACX,cAAc;IACd,kBAAkB;IAClB,YAAY;CACb,CAAC;AAEF,MAAM,UAAU,gBAAgB,CAAC,OAAgB;IAC/C,QAAQ,CAAC,OAAO,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,CAAC;AAClD,CAAC"}
@@ -1,5 +1,5 @@
1
- import { type Command } from "commander";
2
- import { type CommandActionType } from "../types.js";
1
+ import type { Command } from "commander";
2
+ import type { CommandActionType } from "../types.js";
3
3
  export declare const manageService: CommandActionType<[string]>;
4
4
  export declare function serviceCommand(program: Command): void;
5
5
  //# sourceMappingURL=service.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"service.d.ts","sourceRoot":"","sources":["../../../src/commands/service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAY,KAAK,OAAO,EAAE,MAAM,WAAW,CAAC;AAMnD,OAAO,EAAE,KAAK,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAWrD,eAAO,MAAM,aAAa,EAAE,iBAAiB,CAAC,CAAC,MAAM,CAAC,CAqErD,CAAC;AAEF,wBAAgB,cAAc,CAAC,OAAO,EAAE,OAAO,QAQ9C"}
1
+ {"version":3,"file":"service.d.ts","sourceRoot":"","sources":["../../../src/commands/service.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAOzC,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAWrD,eAAO,MAAM,aAAa,EAAE,iBAAiB,CAAC,CAAC,MAAM,CAAC,CAqErD,CAAC;AAEF,wBAAgB,cAAc,CAAC,OAAO,EAAE,OAAO,QAQ9C"}
@@ -1 +1 @@
1
- {"version":3,"file":"service.js","sourceRoot":"","sources":["../../../src/commands/service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAgB,MAAM,WAAW,CAAC;AACnD,OAAO,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAC9C,OAAO,EAAE,MAAM,SAAS,CAAC;AACzB,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AACzC,OAAO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,CAAC,CAAC;AAEF,MAAM,UAAU,cAAc,CAAC,OAAgB;IAC7C,MAAM,OAAO,GAAG,OAAO;SACpB,OAAO,CAAC,SAAS,CAAC;SAClB,WAAW,CAAC,6BAA6B,CAAC;SAC1C,WAAW,CAAC,IAAI,QAAQ,CAAC,QAAQ,CAAC,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC;SACtE,MAAM,CAAC,aAAa,CAAC,CAAC;IAEzB,aAAa,CAAC,OAAO,EAAE,WAAW,CAAC,CAAC;AACtC,CAAC"}
@@ -1,8 +1,8 @@
1
- import { type SwitchboardReactor } from "@powerhousedao/switchboard/server";
2
- import { type Command } from "commander";
3
- import { type ReactorOptions } from "../services/reactor.js";
4
- import { type CommandActionType } from "../types.js";
5
- export declare const switchboard: CommandActionType<[
1
+ import type { SwitchboardReactor } from "@powerhousedao/switchboard/server";
2
+ import type { Command } from "commander";
3
+ import type { ReactorOptions } from "../services/reactor.js";
4
+ import type { CommandActionType } from "../types.js";
5
+ export declare const runStartLocalSwitchboard: CommandActionType<[
6
6
  ReactorOptions
7
7
  ], Promise<SwitchboardReactor>>;
8
8
  export declare function switchboardCommand(program: Command): void;
@@ -1 +1 @@
1
- {"version":3,"file":"switchboard.d.ts","sourceRoot":"","sources":["../../../src/commands/switchboard.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,kBAAkB,EAAE,MAAM,mCAAmC,CAAC;AAC5E,OAAO,EAAE,KAAK,OAAO,EAAE,MAAM,WAAW,CAAC;AAEzC,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAC7D,OAAO,EAAE,KAAK,iBAAiB,EAAE,MAAM,aAAa,CAAC;AA+BrD,eAAO,MAAM,WAAW,EAAE,iBAAiB,CACzC;IAAC,cAAc;CAAC,EAChB,OAAO,CAAC,kBAAkB,CAAC,CAG5B,CAAC;AAEF,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,OAAO,QA8BlD"}
1
+ {"version":3,"file":"switchboard.d.ts","sourceRoot":"","sources":["../../../src/commands/switchboard.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,mCAAmC,CAAC;AAC5E,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEzC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAC7D,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AA6BrD,eAAO,MAAM,wBAAwB,EAAE,iBAAiB,CACtD;IAAC,cAAc;CAAC,EAChB,OAAO,CAAC,kBAAkB,CAAC,CAG5B,CAAC;AAEF,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,OAAO,QA8BlD"}
@@ -1,9 +1,7 @@
1
1
  import { switchboardHelp } from "../help.js";
2
2
  import { setCustomHelp } from "../utils.js";
3
3
  async function startLocalSwitchboard(options) {
4
- console.log("Starting switchboard", options);
5
4
  if (options.basePath) {
6
- console.log(`Setting BASE_PATH to ${options.basePath}`);
7
5
  process.env.BASE_PATH = options.basePath;
8
6
  }
9
7
  const Switchboard = await import("../services/switchboard.js");
@@ -19,7 +17,7 @@ async function startLocalSwitchboard(options) {
19
17
  packages,
20
18
  });
21
19
  }
22
- export const switchboard = async (options) => {
20
+ export const runStartLocalSwitchboard = async (options) => {
23
21
  return await startLocalSwitchboard(options);
24
22
  };
25
23
  export function switchboardCommand(program) {
@@ -37,7 +35,7 @@ export function switchboardCommand(program) {
37
35
  .option("--base-path <basePath>", "base path for the API endpoints (sets the BASE_PATH environment variable)")
38
36
  .option("--mcp", "enable Mcp route at /mcp. Default: true")
39
37
  .action(async (...args) => {
40
- const { defaultDriveUrl } = await switchboard(...args);
38
+ const { defaultDriveUrl } = await runStartLocalSwitchboard(...args);
41
39
  console.log(" ➜ Switchboard:", defaultDriveUrl);
42
40
  });
43
41
  setCustomHelp(command, switchboardHelp);
@@ -1 +1 @@
1
- {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P,CAAC"}
@@ -1,6 +1,6 @@
1
- import { type Command } from "commander";
2
- import { type CommandActionType } from "../types.js";
3
- import { type PackageManager } from "../utils.js";
1
+ import type { Command } from "commander";
2
+ import type { CommandActionType } from "../types.js";
3
+ import type { PackageManager } from "../utils.js";
4
4
  export declare function uninstallDependency(packageManager: PackageManager, dependencies: string[], projectPath: string, workspace?: boolean): void;
5
5
  export declare const uninstall: CommandActionType<[
6
6
  string[] | undefined,
@@ -1 +1 @@
1
- {"version":3,"file":"uninstall.d.ts","sourceRoot":"","sources":["../../../src/commands/uninstall.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,OAAO,EAAE,MAAM,WAAW,CAAC;AAKzC,OAAO,EAAE,KAAK,iBAAiB,EAAE,MAAM,aAAa,CAAC;AACrD,OAAO,EAGL,KAAK,cAAc,EAMpB,MAAM,aAAa,CAAC;AAErB,wBAAgB,mBAAmB,CACjC,cAAc,EAAE,cAAc,EAC9B,YAAY,EAAE,MAAM,EAAE,EACtB,WAAW,EAAE,MAAM,EACnB,SAAS,CAAC,EAAE,OAAO,QAuBpB;AAED,eAAO,MAAM,SAAS,EAAE,iBAAiB,CACvC;IACE,MAAM,EAAE,GAAG,SAAS;IACpB;QACE,KAAK,CAAC,EAAE,OAAO,CAAC;QAChB,MAAM,CAAC,EAAE,OAAO,CAAC;QACjB,SAAS,CAAC,EAAE,OAAO,CAAC;QACpB,cAAc,CAAC,EAAE,MAAM,CAAC;KACzB;CACF,CA2GF,CAAC;AAEF,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,OAAO,QAmBhD"}
1
+ {"version":3,"file":"uninstall.d.ts","sourceRoot":"","sources":["../../../src/commands/uninstall.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAKzC,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AACrD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAW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AAO,CAAC,KAAK,CAAC,gCAAgC,CAAC,CAAC;QAChD,MAAM,KAAK,CAAC;IACd,CAAC;IAED,IAAI,CAAC;QACH,OAAO,CAAC,GAAG,CAAC,gCAAgC,CAAC,CAAC;QAC9C,mBAAmB,CAAC,kBAAkB,EAAE,WAAW,CAAC,IAAI,CAAC,CAAC;QAC1D,OAAO,CAAC,GAAG,CAAC,qCAAqC,CAAC,CAAC;IACrD,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,OAAO,CAAC,KAAK,CAAC,gCAAgC,CAAC,CAAC;QAChD,MAAM,KAAK,CAAC;IACd,CAAC;AACH,CAAC,CAAC;AAEF,MAAM,UAAU,gBAAgB,CAAC,OAAgB;IAC/C,MAAM,OAAO,GAAG,OAAO;SACpB,OAAO,CAAC,WAAW,CAAC;SACpB,KAAK,CAAC,QAAQ,CAAC;SACf,WAAW,CAAC,mCAAmC,CAAC;SAChD,QAAQ,CAAC,mBAAmB,EAAE,qCAAqC,CAAC;SACpE,MAAM,CAAC,cAAc,EAAE,gCAAgC,CAAC;SACxD,MAAM,CAAC,SAAS,EAAE,sBAAsB,CAAC;SACzC,MAAM,CACL,iBAAiB,EACjB,2EAA2E,CAC5E;SACA,MAAM,CACL,oCAAoC,EACpC,8BAA8B,CAC/B;SACA,MAAM,CAAC,SAAS,CAAC,CAAC;IAErB,aAAa,CAAC,OAAO,EAAE,aAAa,CAAC,CAAC;AACxC,CAAC"}
@@ -1,9 +1,10 @@
1
- import { type Command } from "commander";
2
- import { type DevOptions } from "../services/vetra.js";
3
- import { type CommandActionType } from "../types.js";
1
+ import type { Command } from "commander";
2
+ import type { DevOptions } from "../services/vetra.js";
3
+ import type { CommandActionType } from "../types.js";
4
4
  export declare const vetra: CommandActionType<[
5
5
  DevOptions & {
6
6
  logs?: boolean;
7
+ watch?: boolean;
7
8
  }
8
9
  ]>;
9
10
  export declare function vetraCommand(program: Command): void;
@@ -1 +1 @@
1
- {"version":3,"file":"vetra.d.ts","sourceRoot":"","sources":["../../../src/commands/vetra.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,OAAO,EAAE,MAAM,WAAW,CAAC;AAEzC,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAE,KAAK,iBAAiB,EAAE,MAAM,aAAa,CAAC;AASrD,eAAO,MAAM,KAAK,EAAE,iBAAiB,CACnC;IAAC,UAAU,GAAG;QAAE,IAAI,CAAC,EAAE,OAAO,CAAA;KAAE;CAAC,CAQlC,CAAC;AAEF,wBAAgB,YAAY,CAAC,OAAO,EAAE,OAAO,QAuC5C"}
1
+ {"version":3,"file":"vetra.d.ts","sourceRoot":"","sources":["../../../src/commands/vetra.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEzC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AASrD,eAAO,MAAM,KAAK,EAAE,iBAAiB,CACnC;IAAC,UAAU,GAAG;QAAE,IAAI,CAAC,EAAE,OAAO,CAAC;QAAC,KAAK,CAAC,EAAE,OAAO,CAAA;KAAE;CAAC,CASnD,CAAC;AAEF,wBAAgB,YAAY,CAAC,OAAO,EAAE,OAAO,QAuC5C"}
@@ -11,6 +11,7 @@ export const vetra = async (options) => {
11
11
  verbose: options.logs,
12
12
  disableConnect: options.disableConnect,
13
13
  interactive: options.interactive,
14
+ watch: options.watch,
14
15
  });
15
16
  };
16
17
  export function vetraCommand(program) {
@@ -23,7 +24,7 @@ export function vetraCommand(program) {
23
24
  .option("--https-key-file <HTTPS_KEY_FILE>", "path to the ssl key file")
24
25
  .option("--https-cert-file <HTTPS_CERT_FILE>", "path to the ssl cert file")
25
26
  .option("--config-file <configFile>", "Path to the powerhouse.config.js file")
26
- .option("-w, --watch", "if the switchboard and reactor should watch for local changes to document models and processors")
27
+ .option("-w, --watch", "Enable dynamic loading for document-models and editors in connect-studio and switchboard")
27
28
  .option("--remote-drive <url>", "URL of remote drive to connect to (skips switchboard initialization)")
28
29
  .option("--disable-connect", "Skip Connect initialization (only start switchboard and reactor)")
29
30
  .option("--interactive", "Enable interactive mode for code generation (requires user confirmation before generating code)");
@@ -1 +1 @@
1
- {"version":3,"file":"vetra.js","sourceRoot":"","sources":["../../../src/commands/vetra.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAGvC,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAE5C,KAAK,UAAU,aAAa,CAAC,OAAmB;IAC9C,MAAM,KAAK,GAAG,MAAM,MAAM,CAAC,sBAAsB,CAAC,CAAC;IACnD,MAAM,EAAE,UAAU,EAAE,GAAG,KAAK,CAAC;IAC7B,OAAO,UAAU,CAAC,OAAO,CAAC,CAAC;AAC7B,CAAC;AAED,MAAM,CAAC,MAAM,KAAK,GAEd,KAAK,EAAE,OAAO,EAAE,EAAE;IACpB,OAAO,aAAa,CAAC;QACnB,GAAG,OAAO;QACV,OAAO,EAAE,OAAO,CAAC,IAAI;QACrB,cAAc,EAAE,OAAO,CAAC,cAAc;QACtC,WAAW,EAAE,OAAO,CAAC,WAAW;KACjC,CAAC,CAAC;AACL,CAAC,CAAC;AAEF,MAAM,UAAU,YAAY,CAAC,OAAgB;IAC3C,MAAM,GAAG,GAAG,OAAO;SAChB,OAAO,CAAC,OAAO,CAAC;SAChB,MAAM,CAAC,QAAQ,EAAE,sBAAsB,CAAC;SACxC,WAAW,CACV,6EAA6E,CAC9E;SACA,MAAM,CACL,2BAA2B,EAC3B,uDAAuD,CACxD;SACA,MAAM,CAAC,uBAAuB,EAAE,yCAAyC,CAAC;SAC1E,MAAM,CAAC,mCAAmC,EAAE,0BAA0B,CAAC;SACvE,MAAM,CAAC,qCAAqC,EAAE,2BAA2B,CAAC;SAC1E,MAAM,CACL,4BAA4B,EAC5B,uC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CAAyC,CAAC;SAC1E,MAAM,CAAC,mCAAmC,EAAE,0BAA0B,CAAC;SACvE,MAAM,CAAC,qCAAqC,EAAE,2BAA2B,CAAC;SAC1E,MAAM,CACL,4BAA4B,EAC5B,uCAAuC,CACxC;SACA,MAAM,CACL,aAAa,EACb,0FAA0F,CAC3F;SACA,MAAM,CACL,sBAAsB,EACtB,sEAAsE,CACvE;SACA,MAAM,CACL,mBAAmB,EACnB,kEAAkE,CACnE;SACA,MAAM,CACL,eAAe,EACf,iGAAiG,CAClG,CAAC;IAEJ,gEAAgE;IAChE,aAAa,CAAC,GAAG,EAAE,SAAS,CAAC,CAAC;IAE9B,GAAG,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;AACpB,CAAC"}
@@ -1,19 +1,19 @@
1
1
  /**
2
2
  * Help text for the connect studio command
3
3
  */
4
- export declare const connectStudioHelp = "\nCommand Overview:\n The connect command starts the Connect Studio, a development environment for building\n and testing Powerhouse applications. It provides a visual interface for working with \n your project.\n\n This command:\n 1. Starts a local Connect Studio server\n 2. Provides a web interface for development\n 3. Allows you to interact with your project components\n 4. Supports various configuration options for customization\n\nOptions:\n -p, --port <port> Port to run the server on. Default is 3000.\n \n -h, --host Expose the server to the network. By default, the server\n only accepts connections from localhost.\n \n --https Enable HTTPS for secure connections. You may need to provide\n certificate files for this option to work properly.\n \n --open Automatically open the browser window after starting the server.\n \n --config-file <path> Path to the powerhouse.config.js file. This allows you to\n customize the behavior of Connect Studio.\n\nExamples:\n $ ph connect # Start Connect Studio on default port 3000\n $ ph connect -p 8080 # Start on port 8080\n $ ph connect -h # Expose to network (not just localhost)\n $ ph connect --https # Enable HTTPS\n $ ph connect --open # Open browser automatically\n $ ph connect --config-file custom.config.js # Use custom configuration\n $ ph connect -p 8080 --open # Start on port 8080 and open browser\n";
4
+ export declare const connectStudioHelp = "\nCommand Overview:\n The connect command starts the Connect Studio, a development environment for building\n and testing Powerhouse applications. It provides a visual interface for working with\n your project.\n\n This command:\n 1. Starts a local Connect Studio server\n 2. Provides a web interface for development\n 3. Allows you to interact with your project components\n 4. Supports various configuration options for customization\n\nOptions:\n --port <port> Port to run the server on. Default is 3000.\n\n --host Expose the server to the network. By default, the server\n only accepts connections from localhost.\n\n --open Automatically open the browser window after starting the server.\n\n --cors Enable CORS (Cross-Origin Resource Sharing).\n\n --strictPort Exit if specified port is already in use.\n\n --force Force the optimizer to ignore the cache and re-bundle.\n\n --mode <mode> Vite mode to use (e.g., development, production).\n\n --config-file <configFile> Path to the powerhouse.config.js file. This allows you to\n customize the behavior of Connect Studio.\n\n --vite-config-file <file> Path to the vite config file.\n\n --project-root <path> The root directory of the project. Default is current directory.\n\nExamples:\n $ ph connect # Start Connect Studio on default port 3000\n $ ph connect --port 8080 # Start on port 8080\n $ ph connect --host # Expose to network (not just localhost)\n $ ph connect --open # Open browser automatically\n $ ph connect --cors # Enable CORS\n $ ph connect --strictPort # Exit if port is in use\n $ ph connect --force # Force re-bundle\n $ ph connect --mode production # Use production mode\n $ ph connect --config-file custom.config.js # Use custom configuration\n $ ph connect --vite-config-file vite.config.js # Use custom vite config\n $ ph connect --project-root /path/to/project # Set project root\n $ ph connect --port 8080 --open # Start on port 8080 and open browser\n";
5
5
  /**
6
6
  * Help text for the connect build command
7
7
  */
8
- export declare const connectBuildHelp = "\nCommand Overview:\n The Connect build command creates a connect build with the project's local and external packages included.\n\nOptions:\n --base <path> The base path for the app. Default is \"/\".\n --project-root <path> The root directory of the project. Default is \"process.cwd()\".\n --assets-dir-name <name> The name of the assets directory. Default is \"assets\".\n --external-packages-file-name <name> The name of the external packages file. Default is \"external-packages.js\".\n --styles-file-name <name> The name of the styles file. Default is \"style.css\".\n --connect-path <path> The path to the Connect dist directory. Calls \"resolveConnect()\" if not provided.\n";
8
+ export declare const connectBuildHelp = "\nCommand Overview:\n The Connect build command creates a production build with the project's local and\n external packages included.\n\nOptions:\n --outDir <outDir> Output directory. Defaults to 'dist'.\n\n --base <base> Base path for the app. Default is \"/\".\n\n --mode <mode> Vite mode to use (e.g., development, production).\n\n --config-file <configFile> Path to the powerhouse.config.js file.\n\n --vite-config-file <file> Path to the vite config file.\n\n --project-root <path> The root directory of the project. Default is current directory.\n\nExamples:\n $ ph connect build # Build with defaults\n $ ph connect build --outDir build # Output to 'build' directory\n $ ph connect build --base /app # Set base path to '/app'\n $ ph connect build --mode production # Use production mode\n $ ph connect build --config-file custom.config.js # Use custom configuration\n $ ph connect build --vite-config-file vite.config.js # Use custom vite config\n $ ph connect build --project-root /path/to/project # Set project root\n";
9
9
  /**
10
10
  * Help text for the connect preview command
11
11
  */
12
- export declare const connectPreviewHelp = "\nCommand Overview:\n The Connect preview command previews a built Connect project.\n NOTE: You must run `ph connect build` first.\n\nOptions:\n --base <path> The base path for the app. Default is \"/\".\n --project-root <path> The root directory of the project. Default is \"process.cwd()\".\n --port <port> The port to run the server on. Default is 4173.\n --open Open the browser. Default is true.\n";
12
+ export declare const connectPreviewHelp = "\nCommand Overview:\n The Connect preview command previews a built Connect project.\n NOTE: You must run `ph connect build` first.\n\nOptions:\n --outDir <outDir> Output directory. Defaults to 'dist'.\n\n --port <port> Port to run the server on. Default is 3000.\n\n --host Expose the server to the network.\n\n --open Open browser on startup.\n\n --strictPort Exit if specified port is already in use.\n\n --base <base> Base path for the app. Default is \"/\".\n\n --mode <mode> Vite mode to use (e.g., development, production).\n\n --config-file <configFile> Path to the powerhouse.config.js file.\n\n --vite-config-file <file> Path to the vite config file.\n\n --project-root <path> The root directory of the project. Default is current directory.\n\nExamples:\n $ ph connect preview # Preview with defaults\n $ ph connect preview --outDir build # Preview from 'build' directory\n $ ph connect preview --port 8080 # Preview on port 8080\n $ ph connect preview --host # Expose to network\n $ ph connect preview --open # Open browser automatically\n $ ph connect preview --strictPort # Exit if port is in use\n $ ph connect preview --base /app # Set base path to '/app'\n $ ph connect preview --mode production # Use production mode\n $ ph connect preview --config-file custom.config.js # Use custom configuration\n $ ph connect preview --vite-config-file vite.config.js # Use custom vite config\n $ ph connect preview --project-root /path/to/project # Set project root\n";
13
13
  /**
14
14
  * Help text for the generate command
15
15
  */
16
- export declare const generateHelp = "\nCommand Overview:\n The generate command creates code from document models. It helps you build editors, \n processors, and other components based on your document model files.\n\n This command:\n 1. Reads document model definitions\n 2. Generates code for specified components (editors, processors, etc.)\n 3. Supports customization of output and generation options\n 4. Can watch files for changes and regenerate code automatically\n\nArguments:\n [document-model-file] Optional. Path to the document model file to generate code from.\n If not provided, the command will look for document models in\n the default location.\n\nOptions:\n -i, --interactive Run the command in interactive mode, which will guide you\n through the generation process with prompts and options.\n \n --editors <path> Path to the directory where editors should be generated or found.\n \n -e, --editor <name> Name of the editor to generate or use.\n \n --file <path> Specific file path to the document model.\n \n --processors <path> Path to the directory where processors should be generated or found.\n \n -p, --processor <name> Name of the processor to generate.\n \n --processor-type <type> Type of processor to generate.\n \n -s, --subgraph <name> Name of the subgraph to use or create.\n \n --document-models <path> Path to the document models directory.\n \n --document-types <types> Document types supported by the editor, in the format\n 'namespace/type' (e.g., 'powerhouse/todo').\n \n -is, --import-script <name> Name of the import script to generate.\n \n -sf, --skip-format Skip formatting the generated code.\n \n -w, --watch Watch for changes in the document model and regenerate code\n when changes are detected.\n \n -d, --drive-editor <name> Generate a drive editor with the specified name.\n\n --migration-file <path> Path to the migration file when running 'ph generate\n \n --schema-file <path> Path to the output file. Defaults to 'schema.ts' at the same directory of the migration file.\n\nExamples:\n $ ph generate # Generate code using defaults\n $ ph generate my-document-model.zip # Generate from a specific model zip file\n $ ph generate -i # Run in interactive mode\n $ ph generate --editor ToDoList --document-types powerhouse/todo # Generate a ToDoList editor for todo documents\n $ ph generate -p MyProcessor # Generate a specific processor\n $ ph generate --watch # Generate and watch for changes\n $ ph generate --drive-editor custom-drive-explorer # Generate a custom drive editor\n $ ph generate -s MySubgraph # Generate with a specific subgraph\n $ ph generate --skip-format # Generate without formatting\n $ ph generate --migration-file ./migrations.ts # Generate types for an RelationalDB Processor\n";
16
+ export declare const generateHelp = "\nCommand Overview:\n The generate command creates code from document models. It helps you build editors, \n processors, and other components based on your document model files.\n\n This command:\n 1. Reads document model definitions\n 2. Generates code for specified components (editors, processors, etc.)\n 3. Supports customization of output and generation options\n 4. Can watch files for changes and regenerate code automatically\n\nArguments:\n [document-model-file] Optional. Path to the document model file to generate code from.\n If not provided, the command will look for document models in\n the default location.\n\nOptions:\n -i, --interactive Run the command in interactive mode, which will guide you\n through the generation process with prompts and options.\n \n --editors <path> Path to the directory where editors should be generated or found.\n \n -e, --editor <name> Name of the editor to generate or use.\n \n --file <path> Specific file path to the document model.\n \n --processors <path> Path to the directory where processors should be generated or found.\n \n -p, --processor <name> Name of the processor to generate.\n \n --processor-type <type> Type of processor to generate. 'relationalDb' or 'analytics'\n \n -s, --subgraph <name> Name of the subgraph to use or create.\n \n --document-models <path> Path to the document models directory.\n \n --document-types <types> Document types supported by the editor, in the format\n 'namespace/type' (e.g., 'powerhouse/todo').\n \n -is, --import-script <name> Name of the import script to generate.\n \n -sf, --skip-format Skip formatting the generated code.\n \n -w, --watch Watch for changes in the document model and regenerate code\n when changes are detected.\n \n -d, --drive-editor <name> Generate a drive editor with the specified name.\n\n --migration-file <path> Path to the migration file when running 'ph generate\n \n --schema-file <path> Path to the output file. Defaults to 'schema.ts' at the same directory of the migration file.\n\nExamples:\n $ ph generate # Generate code using defaults\n $ ph generate my-document-model.zip # Generate from a specific model zip file\n $ ph generate -i # Run in interactive mode\n $ ph generate --editor ToDoList --document-types powerhouse/todo # Generate a ToDoList editor for todo documents\n $ ph generate -p MyProcessor --processor-type relationalDb # Generate a specific processor\n $ ph generate --watch # Generate and watch for changes\n $ ph generate --drive-editor custom-drive-explorer # Generate a custom drive editor\n $ ph generate -s MySubgraph # Generate with a specific subgraph\n $ ph generate --skip-format # Generate without formatting\n $ ph generate --migration-file ./migrations.ts # Generate types for an RelationalDB Processor\n";
17
17
  /**
18
18
  * Help text for the install command
19
19
  */
@@ -33,7 +33,7 @@ export declare const devHelp = "\nCommand Overview:\n The dev command sets up a
33
33
  /**
34
34
  * Help text for the vetra command
35
35
  */
36
- export declare const vetraHelp = "\nCommand Overview:\n The vetra command sets up a Vetra development environment for working with Vetra projects.\n It starts a Vetra Switchboard and optionally Connect Studio, enabling document collaboration \n and real-time processing with a \"Vetra\" drive or connection to remote drives.\n\n This command:\n 1. Starts a Vetra Switchboard with a \"Vetra\" drive for document storage\n 2. Optionally connects to remote drives instead of creating a local drive\n 3. Starts Connect Studio pointing to the Switchboard for user interaction (unless disabled)\n 4. Enables real-time updates, collaboration, and code generation\n\nOptions:\n --logs Enable verbose logging for all services. This provides detailed\n output from Switchboard and Connect during startup and operation.\n \n --switchboard-port <port> Specify the port to use for the Vetra Switchboard service.\n Default is 4001. The Switchboard handles document storage.\n \n --connect-port <port> Specify the port to use for Connect Studio.\n Default is 3000. Connect provides the user interface.\n \n --https-key-file <path> Path to the SSL key file if using HTTPS for secure connections.\n \n --https-cert-file <path> Path to the SSL certificate file if using HTTPS.\n \n --config-file <path> Path to the powerhouse.config.js file. This allows you to\n customize the behavior of the Vetra development environment.\n \n -w, --watch Watch for local changes to document models and processors,\n and automatically update the Switchboard accordingly.\n \n --remote-drive <url> URL of remote drive to connect to. When specified, the switchboard\n connects to this remote drive instead of creating a local Vetra drive.\n \n --disable-connect Skip Connect initialization (only start switchboard and reactor).\n Use this when you only need the backend services running.\n \n --interactive Enable interactive mode for code generation. When enabled, the system\n will prompt for user confirmation before generating code. This is useful\n for development when you want control over when code regeneration happens.\n\nExamples:\n $ ph vetra # Start Vetra environment with defaults\n $ ph vetra --switchboard-port 5000 --connect-port 3001 # Use custom ports\n $ ph vetra --config-file custom.powerhouse.config.js # Use custom configuration\n $ ph vetra --watch # Watch for changes and auto-update\n $ ph vetra --logs # Enable detailed logging\n $ ph vetra --remote-drive http://localhost:4001/d/docs # Connect to remote drive\n $ ph vetra --disable-connect # Start only backend services\n $ ph vetra --interactive # Enable interactive code generation mode\n $ ph vetra --https-key-file key.pem --https-cert-file cert.pem # Use HTTPS\n";
36
+ export declare const vetraHelp = "\nCommand Overview:\n The vetra command sets up a Vetra development environment for working with Vetra projects.\n It starts a Vetra Switchboard and optionally Connect Studio, enabling document collaboration \n and real-time processing with a \"Vetra\" drive or connection to remote drives.\n\n This command:\n 1. Starts a Vetra Switchboard with a \"Vetra\" drive for document storage\n 2. Optionally connects to remote drives instead of creating a local drive\n 3. Starts Connect Studio pointing to the Switchboard for user interaction (unless disabled)\n 4. Enables real-time updates, collaboration, and code generation\n\nOptions:\n --logs Enable verbose logging for all services. This provides detailed\n output from Switchboard and Connect during startup and operation.\n \n --switchboard-port <port> Specify the port to use for the Vetra Switchboard service.\n Default is 4001. The Switchboard handles document storage.\n \n --connect-port <port> Specify the port to use for Connect Studio.\n Default is 3000. Connect provides the user interface.\n \n --https-key-file <path> Path to the SSL key file if using HTTPS for secure connections.\n \n --https-cert-file <path> Path to the SSL certificate file if using HTTPS.\n \n --config-file <path> Path to the powerhouse.config.js file. This allows you to\n customize the behavior of the Vetra development environment.\n \n -w, --watch Enable dynamic loading for document-models and editors in\n connect-studio and switchboard. When enabled, the system will\n watch for changes in these directories and reload them dynamically.\n \n --remote-drive <url> URL of remote drive to connect to. When specified, the switchboard\n connects to this remote drive instead of creating a local Vetra drive.\n \n --disable-connect Skip Connect initialization (only start switchboard and reactor).\n Use this when you only need the backend services running.\n \n --interactive Enable interactive mode for code generation. When enabled, the system\n will prompt for user confirmation before generating code. This is useful\n for development when you want control over when code regeneration happens.\n\nExamples:\n $ ph vetra # Start Vetra environment with defaults\n $ ph vetra --switchboard-port 5000 --connect-port 3001 # Use custom ports\n $ ph vetra --config-file custom.powerhouse.config.js # Use custom configuration\n $ ph vetra --watch # Enable dynamic loading for development\n $ ph vetra -w # Enable dynamic loading (short form)\n $ ph vetra --logs # Enable detailed logging\n $ ph vetra --remote-drive http://localhost:4001/d/docs # Connect to remote drive\n $ ph vetra --disable-connect # Start only backend services\n $ ph vetra --interactive # Enable interactive code generation mode\n $ ph vetra --https-key-file key.pem --https-cert-file cert.pem # Use HTTPS\n";
37
37
  /**
38
38
  * Help text for the inspect command
39
39
  */
@@ -1 +1 @@
1
- {"version":3,"file":"help.d.ts","sourceRoot":"","sources":["../../src/help.ts"],"names":[],"mappings":"AAMA;;GAEG;AACH,eAAO,MAAM,iBAAiB,itDAkC7B,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,gBAAgB,yrBAW5B,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,kBAAkB,gcAU9B,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,YAAY,o9GA+DxB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,WAAW,+jEAsCvB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,aAAa,4pEAwCzB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,QAAQ,ypCA2BpB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,OAAO,m7DAoCnB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,SAAS,81GAoDrB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,WAAW,miDAkCvB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,WAAW,+zDAqCvB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,eAAe,+pEAyC3B,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,WAAW,s6DAuCvB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,WAAW,2kCA0BvB,CAAC"}
1
+ {"version":3,"file":"help.d.ts","sourceRoot":"","sources":["../../src/help.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,eAAO,MAAM,iBAAiB,wzEAgD7B,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,gBAAgB,4oCA0B5B,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,kBAAkB,stDAsC9B,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,YAAY,k/GA+DxB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,WAAW,+jEAsCvB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,aAAa,4pEAwCzB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,QAAQ,ypCA2BpB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,OAAO,m7DAoCnB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,SAAS,4iHAsDrB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,WAAW,miDAkCvB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,WAAW,+zDAqCvB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,eAAe,+pEAyC3B,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,WAAW,s6DAuCvB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,WAAW,2kCA0BvB,CAAC"}
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
@@ -322,8 +378,9 @@ Options:
322
378
  --config-file <path> Path to the powerhouse.config.js file. This allows you to
323
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 the Switchboard 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
385
  --remote-drive <url> URL of remote drive to connect to. When specified, the switchboard
329
386
  connects to this remote drive instead of creating a local Vetra drive.
@@ -339,7 +396,8 @@ Examples:
339
396
  $ ph vetra # Start Vetra environment with defaults
340
397
  $ ph vetra --switchboard-port 5000 --connect-port 3001 # Use custom ports
341
398
  $ ph vetra --config-file custom.powerhouse.config.js # Use custom configuration
342
- $ ph vetra --watch # Watch for changes and auto-update
399
+ $ ph vetra --watch # Enable dynamic loading for development
400
+ $ ph vetra -w # Enable dynamic loading (short form)
343
401
  $ ph vetra --logs # Enable detailed logging
344
402
  $ ph vetra --remote-drive http://localhost:4001/d/docs # Connect to remote drive
345
403
  $ ph vetra --disable-connect # Start only backend services
@@ -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;AAEF;;GAEG;AACH,MAAM,CAAC,MAAM,QAAQ,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2BvB,CAAC;AAEF;;GAEG;AACH,MA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;;;;;;;;CA+D3B,CAAC;AAEF;;GAEG;AACH,MAAM,CAAC,MAAM,WAAW,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsC1B,CAAC;AAEF;;GAEG;AACH,MAAM,CAAC,MAAM,aAAa,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwC5B,CAAC;AAEF;;GAEG;AACH,MAAM,CAAC,MAAM,QAAQ,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2BvB,CAAC;AAEF;;GAEG;AACH,MAAM,CAAC,MAAM,OAAO,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoCtB,CAAC;AAEF;;GAEG;AACH,MAAM,CAAC,MAAM,SAAS,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsDxB,CAAC;AAEF;;GAEG;AACH,MAAM,CAAC,MAAM,WAAW,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkC1B,CAAC;AAEF;;GAEG;AACH,MAAM,CAAC,MAAM,WAAW,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAqC1B,CAAC;AAEF;;GAEG;AACH,MAAM,CAAC,MAAM,eAAe,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAyC9B,CAAC;AAEF;;GAEG;AACH,MAAM,CAAC,MAAM,WAAW,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAuC1B,CAAC;AAEF;;GAEG;AACH,MAAM,CAAC,MAAM,WAAW,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;CA0B1B,CAAC"}
@@ -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.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"}