@powerhousedao/ph-cli 4.1.0-dev.9 → 4.1.0-dev.90
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +21 -4
- package/dist/src/cli.js +14 -1
- package/dist/src/cli.js.map +1 -1
- package/dist/src/commands/connect.d.ts +17 -6
- package/dist/src/commands/connect.d.ts.map +1 -1
- package/dist/src/commands/connect.js +56 -36
- package/dist/src/commands/connect.js.map +1 -1
- package/dist/src/commands/dev.d.ts +3 -3
- package/dist/src/commands/dev.d.ts.map +1 -1
- package/dist/src/commands/generate.d.ts +4 -4
- package/dist/src/commands/generate.d.ts.map +1 -1
- package/dist/src/commands/generate.js +5 -3
- package/dist/src/commands/generate.js.map +1 -1
- package/dist/src/commands/help.d.ts +1 -1
- package/dist/src/commands/help.d.ts.map +1 -1
- package/dist/src/commands/index.d.ts +13 -4
- package/dist/src/commands/index.d.ts.map +1 -1
- package/dist/src/commands/index.js +13 -29
- package/dist/src/commands/index.js.map +1 -1
- package/dist/src/commands/inspect.d.ts +3 -3
- package/dist/src/commands/inspect.d.ts.map +1 -1
- package/dist/src/commands/install.d.ts +2 -3
- package/dist/src/commands/install.d.ts.map +1 -1
- package/dist/src/commands/install.js +1 -2
- package/dist/src/commands/install.js.map +1 -1
- package/dist/src/commands/list.d.ts +2 -2
- package/dist/src/commands/list.d.ts.map +1 -1
- package/dist/src/commands/list.js +1 -1
- package/dist/src/commands/list.js.map +1 -1
- package/dist/src/commands/reactor.d.ts +4 -4
- package/dist/src/commands/reactor.d.ts.map +1 -1
- package/dist/src/commands/reactor.js +1 -0
- package/dist/src/commands/reactor.js.map +1 -1
- package/dist/src/commands/register-commands.d.ts +5 -0
- package/dist/src/commands/register-commands.d.ts.map +1 -0
- package/dist/src/commands/register-commands.js +30 -0
- package/dist/src/commands/register-commands.js.map +1 -0
- package/dist/src/commands/service.d.ts +2 -2
- package/dist/src/commands/service.d.ts.map +1 -1
- package/dist/src/commands/service.js.map +1 -1
- package/dist/src/commands/switchboard.d.ts +5 -5
- package/dist/src/commands/switchboard.d.ts.map +1 -1
- package/dist/src/commands/switchboard.js +12 -6
- package/dist/src/commands/switchboard.js.map +1 -1
- package/dist/src/commands/uninstall.d.ts +3 -3
- package/dist/src/commands/uninstall.d.ts.map +1 -1
- package/dist/src/commands/uninstall.js.map +1 -1
- package/dist/src/commands/vetra.d.ts +9 -4
- package/dist/src/commands/vetra.d.ts.map +1 -1
- package/dist/src/commands/vetra.js +12 -6
- package/dist/src/commands/vetra.js.map +1 -1
- package/dist/src/help.d.ts +6 -6
- package/dist/src/help.d.ts.map +1 -1
- package/dist/src/help.js +133 -57
- package/dist/src/help.js.map +1 -1
- package/dist/src/index.d.ts +2 -0
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/index.js +2 -0
- package/dist/src/index.js.map +1 -1
- package/dist/src/services/connect.d.ts +1 -3
- package/dist/src/services/connect.d.ts.map +1 -1
- package/dist/src/services/connect.js +1 -15
- package/dist/src/services/connect.js.map +1 -1
- package/dist/src/services/dev.d.ts.map +1 -1
- package/dist/src/services/dev.js +8 -6
- package/dist/src/services/dev.js.map +1 -1
- package/dist/src/services/generate.d.ts +4 -0
- package/dist/src/services/generate.d.ts.map +1 -1
- package/dist/src/services/generate.js +12 -3
- package/dist/src/services/generate.js.map +1 -1
- package/dist/src/services/reactor.d.ts +2 -1
- package/dist/src/services/reactor.d.ts.map +1 -1
- package/dist/src/services/reactor.js +2 -2
- package/dist/src/services/reactor.js.map +1 -1
- package/dist/src/services/switchboard.d.ts +8 -2
- package/dist/src/services/switchboard.d.ts.map +1 -1
- package/dist/src/services/switchboard.js +44 -7
- package/dist/src/services/switchboard.js.map +1 -1
- package/dist/src/services/vetra.d.ts +4 -6
- package/dist/src/services/vetra.d.ts.map +1 -1
- package/dist/src/services/vetra.js +78 -171
- package/dist/src/services/vetra.js.map +1 -1
- package/dist/src/utils.d.ts +11 -4
- package/dist/src/utils.d.ts.map +1 -1
- package/dist/src/utils.js +18 -14
- package/dist/src/utils.js.map +1 -1
- package/dist/src/version.d.ts +1 -1
- package/dist/src/version.d.ts.map +1 -1
- package/dist/src/version.js +1 -1
- package/dist/src/version.js.map +1 -1
- package/dist/test/utils.test.d.ts +2 -0
- package/dist/test/utils.test.d.ts.map +1 -0
- package/dist/test/utils.test.js +132 -0
- package/dist/test/utils.test.js.map +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -0
- package/package.json +16 -20
- package/dist/package.json +0 -58
- package/dist/tsconfig.lib.tsbuildinfo +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list.js","sourceRoot":"","sources":["../../../src/commands/list.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"list.js","sourceRoot":"","sources":["../../../src/commands/list.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAC;AAEvD,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAEtC,OAAO,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAE5D,MAAM,CAAC,MAAM,IAAI,GAMb,KAAK,EAAE,OAAO,EAAE,EAAE;IACpB,IAAI,OAAO,CAAC,KAAK,EAAE,CAAC;QAClB,OAAO,CAAC,GAAG,CAAC,uBAAuB,EAAE,EAAE,OAAO,EAAE,CAAC,CAAC;IACpD,CAAC;IAED,MAAM,WAAW,GAAG,cAAc,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;IAElD,IAAI,OAAO,CAAC,KAAK,EAAE,CAAC;QAClB,OAAO,CAAC,GAAG,CAAC,mBAAmB,EAAE,WAAW,CAAC,CAAC;IAChD,CAAC;IAED,IAAI,CAAC;QACH,MAAM,QAAQ,GAAG,SAAS,CAAC,WAAW,CAAC,IAAI,GAAG,yBAAyB,CAAC,CAAC;QAEzE,IAAI,CAAC,QAAQ,CAAC,QAAQ,IAAI,QAAQ,CAAC,QAAQ,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;YACzD,OAAO,CAAC,GAAG,CAAC,kCAAkC,CAAC,CAAC;YAChD,OAAO;QACT,CAAC;QAED,OAAO,CAAC,GAAG,CAAC,uBAAuB,CAAC,CAAC;QACrC,QAAQ,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC,GAAG,EAAE,EAAE;YAChC,OAAO,CAAC,GAAG,CAAC,GAAG,CAAC,WAAW,CAAC,CAAC;QAC/B,CAAC,CAAC,CAAC;IACL,CAAC;IAAC,OAAO,CAAC,EAAE,CAAC;QACX,OAAO,CAAC,GAAG,CAAC,kCAAkC,CAAC,CAAC;IAClD,CAAC;AACH,CAAC,CAAC;AAEF,MAAM,UAAU,WAAW,CAAC,OAAgB;IAC1C,MAAM,OAAO,GAAG,OAAO;SACpB,OAAO,CAAC,MAAM,CAAC;SACf,KAAK,CAAC,GAAG,CAAC;SACV,WAAW,CAAC,yBAAyB,CAAC;SACtC,MAAM,CAAC,SAAS,EAAE,sBAAsB,CAAC;SACzC,MAAM,CAAC,IAAI,CAAC,CAAC;IAEhB,aAAa,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAC;AACnC,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
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,
|
|
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"}
|
|
@@ -23,6 +23,7 @@ export function reactorCommand(program) {
|
|
|
23
23
|
.option("--packages <packages...>", "list of packages to be loaded, if defined then packages on config file are ignored")
|
|
24
24
|
.option("--remote-drives <urls>", "comma-separated remote drive URLs")
|
|
25
25
|
.option("--remote-drives-config <configFile>", "path to JSON file containing remote drive configurations")
|
|
26
|
+
.option("--mcp", "enable Mcp route at /mcp. Default: true")
|
|
26
27
|
.action(async (...args) => {
|
|
27
28
|
await switchboard(...args);
|
|
28
29
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"reactor.js","sourceRoot":"","sources":["../../../src/commands/reactor.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAGzC,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAE5C,KAAK,UAAU,qBAAqB,CAAC,OAAuB;IAC1D,MAAM,WAAW,GAAG,MAAM,MAAM,CAAC,wBAAwB,CAAC,CAAC;IAC3D,MAAM,EAAE,iBAAiB,EAAE,GAAG,WAAW,CAAC;IAC1C,OAAO,iBAAiB,CAAC,OAAO,CAAC,CAAC;AACpC,CAAC;AAED,MAAM,CAAC,MAAM,WAAW,GAGpB,KAAK,EAAE,OAAO,EAAE,EAAE;IAC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B,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 {
|
|
2
|
-
import {
|
|
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,
|
|
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":"
|
|
1
|
+
{"version":3,"file":"service.js","sourceRoot":"","sources":["../../../src/commands/service.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AACrC,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,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAEzC,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAQ5C,MAAM,OAAO,GAAG,CAAC,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,OAAO,EAAE,SAAS,CAAC,CAAC;AAEhE,MAAM,CAAC,MAAM,aAAa,GAAgC,KAAK,EAAE,MAAM,EAAE,EAAE;IACzE,IAAI,CAAC;QACH,MAAM,OAAO,GAAG,IAAI,CAAC,OAAO,CAAC,aAAa,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC;QAC7D,MAAM,gBAAgB,GAAG,IAAI,CAAC,IAAI,CAChC,OAAO,EACP,IAAI,EACJ,IAAI,EACJ,SAAS,EACT,oBAAoB,CACrB,CAAC;QACF,MAAM,eAAe,GAAG,IAAI,CAAC,IAAI,CAC/B,OAAO,EACP,IAAI,EACJ,IAAI,EACJ,SAAS,EACT,mBAAmB,CACpB,CAAC;QAEF,sCAAsC;QACtC,MAAM,eAAe,GAAG,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,GAAG,EAAE,EAAE,cAAc,CAAC,CAAC;QACjE,MAAM,WAAW,GAAG,IAAI,CAAC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AAK,EAAE,CAAC;QACf,OAAO,CAAC,KAAK,CAAC,QAAQ,EAAE,KAAK,CAAC,CAAC;QAC/B,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IAClB,CAAC;AACH,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 {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
export declare const
|
|
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,
|
|
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,19 +1,23 @@
|
|
|
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");
|
|
10
8
|
const { startSwitchboard } = Switchboard;
|
|
9
|
+
// Extract only the props that switchboard expects
|
|
10
|
+
const { port: rawPort, configFile, dev, dbPath, packages } = options;
|
|
11
|
+
const port = typeof rawPort === "string" ? parseInt(rawPort) : rawPort;
|
|
11
12
|
return startSwitchboard({
|
|
12
|
-
|
|
13
|
-
|
|
13
|
+
port,
|
|
14
|
+
configFile,
|
|
15
|
+
dev,
|
|
16
|
+
dbPath,
|
|
17
|
+
packages,
|
|
14
18
|
});
|
|
15
19
|
}
|
|
16
|
-
export const
|
|
20
|
+
export const runStartLocalSwitchboard = async (options) => {
|
|
17
21
|
return await startLocalSwitchboard(options);
|
|
18
22
|
};
|
|
19
23
|
export function switchboardCommand(program) {
|
|
@@ -23,13 +27,15 @@ export function switchboardCommand(program) {
|
|
|
23
27
|
.option("--port <PORT>", "port to host the api", "4001")
|
|
24
28
|
.option("--config-file <configFile>", "Path to the powerhouse.config.js file", "./powerhouse.config.json")
|
|
25
29
|
.option("--generate", "generate code when document model is updated")
|
|
30
|
+
.option("--dev", "enable development mode to load local packages")
|
|
26
31
|
.option("--db-path <DB_PATH>", "path to the database")
|
|
27
32
|
.option("--https-key-file <HTTPS_KEY_FILE>", "path to the ssl key file")
|
|
28
33
|
.option("--https-cert-file <HTTPS_CERT_FILE>", "path to the ssl cert file")
|
|
29
34
|
.option("--packages <packages...>", "list of packages to be loaded, if defined then packages on config file are ignored")
|
|
30
35
|
.option("--base-path <basePath>", "base path for the API endpoints (sets the BASE_PATH environment variable)")
|
|
36
|
+
.option("--mcp", "enable Mcp route at /mcp. Default: true")
|
|
31
37
|
.action(async (...args) => {
|
|
32
|
-
const { defaultDriveUrl } = await
|
|
38
|
+
const { defaultDriveUrl } = await runStartLocalSwitchboard(...args);
|
|
33
39
|
console.log(" ➜ Switchboard:", defaultDriveUrl);
|
|
34
40
|
});
|
|
35
41
|
setCustomHelp(command, switchboardHelp);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"switchboard.js","sourceRoot":"","sources":["../../../src/commands/switchboard.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAG7C,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAM5C,KAAK,UAAU,qBAAqB,CAAC,OAA2B;IAC9D,
|
|
1
|
+
{"version":3,"file":"switchboard.js","sourceRoot":"","sources":["../../../src/commands/switchboard.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAG7C,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAM5C,KAAK,UAAU,qBAAqB,CAAC,OAA2B;IAC9D,IAAI,OAAO,CAAC,QAAQ,EAAE,CAAC;QACrB,OAAO,CAAC,GAAG,CAAC,SAAS,GAAG,OAAO,CAAC,QAAQ,CAAC;IAC3C,CAAC;IAED,MAAM,WAAW,GAAG,MAAM,MAAM,CAAC,4BAA4B,CAAC,CAAC;IAC/D,MAAM,EAAE,gBAAgB,EAA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AAM,wBAAwB,CAAC,GAAG,IAAI,CAAC,CAAC;QACpE,OAAO,CAAC,GAAG,CAAC,oBAAoB,EAAE,eAAe,CAAC,CAAC;IACrD,CAAC,CAAC,CAAC;IAEL,aAAa,CAAC,OAAO,EAAE,eAAe,CAAC,CAAC;AAC1C,CAAC;AAED,IAAI,OAAO,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,CAAC,KAAK,OAAO,EAAE,CAAC;IACnC,MAAM,UAAU,GAAG,OAAO,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;IACtC,MAAM,OAAO,GAAG,UAAU,CAAC,CAAC,CAAE,IAAI,CAAC,KAAK,CAAC,UAAU,CAAoB,CAAC,CAAC,CAAC,EAAE,CAAC;IAC7E,qBAAqB,CAAC,OAAO,CAAC;SAC3B,IAAI,CAAC,CAAC,OAAO,EAAE,EAAE;QAChB,OAAO,CAAC,IAAI,EAAE,CAAC,YAAY,OAAO,CAAC,eAAe,EAAE,CAAC,CAAC;IACxD,CAAC,CAAC;SACD,KAAK,CAAC,CAAC,CAAU,EAAE,EAAE;QACpB,MAAM,CAAC,CAAC;IACV,CAAC,CAAC,CAAC;AACP,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
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,
|
|
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;AAWlD,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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"uninstall.js","sourceRoot":"","sources":["../../../src/commands/uninstall.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAC9C,OAAO,EAAE,MAAM,SAAS,CAAC;AAEzB,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"uninstall.js","sourceRoot":"","sources":["../../../src/commands/uninstall.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAC9C,OAAO,EAAE,MAAM,SAAS,CAAC;AAEzB,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAG3C,OAAO,EACL,6BAA6B,EAC7B,cAAc,EACd,eAAe,EACf,mBAAmB,EACnB,aAAa,EACb,0BAA0B,EAC1B,gBAAgB,GACjB,MAAM,aAAa,CAAC;AAErB,MAAM,U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CAAC,uCAAuC,CAAC,CAAC;QACrD,gBAAgB,CAAC,kBAAkB,EAAE,WAAW,CAAC,IAAI,EAAE,WAAW,CAAC,CAAC;QACpE,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;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,6 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
export declare const vetra: CommandActionType<[
|
|
1
|
+
import type { Command } from "commander";
|
|
2
|
+
import type { DevOptions } from "../services/vetra.js";
|
|
3
|
+
import type { CommandActionType } from "../types.js";
|
|
4
|
+
export declare const vetra: CommandActionType<[
|
|
5
|
+
DevOptions & {
|
|
6
|
+
logs?: boolean;
|
|
7
|
+
watch?: boolean;
|
|
8
|
+
}
|
|
9
|
+
]>;
|
|
5
10
|
export declare function vetraCommand(program: Command): void;
|
|
6
11
|
//# sourceMappingURL=vetra.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vetra.d.ts","sourceRoot":"","sources":["../../../src/commands/vetra.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
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"}
|
|
@@ -6,22 +6,28 @@ async function startVetraEnv(options) {
|
|
|
6
6
|
return startVetra(options);
|
|
7
7
|
}
|
|
8
8
|
export const vetra = async (options) => {
|
|
9
|
-
return startVetraEnv(
|
|
9
|
+
return startVetraEnv({
|
|
10
|
+
...options,
|
|
11
|
+
verbose: options.logs,
|
|
12
|
+
disableConnect: options.disableConnect,
|
|
13
|
+
interactive: options.interactive,
|
|
14
|
+
watch: options.watch,
|
|
15
|
+
});
|
|
10
16
|
};
|
|
11
17
|
export function vetraCommand(program) {
|
|
12
18
|
const cmd = program
|
|
13
19
|
.command("vetra")
|
|
20
|
+
.option("--logs", "Show additional logs")
|
|
14
21
|
.description("Starts Vetra development environment with switchboard, reactor, and connect")
|
|
15
|
-
.option("--generate", "generate code when document model is updated")
|
|
16
22
|
.option("--switchboard-port <port>", "port to use for the Vetra switchboard (default: 4001)")
|
|
17
|
-
.option("--reactor-port <port>", "port to use for the local reactor (default: 4002)")
|
|
18
23
|
.option("--connect-port <port>", "port to use for Connect (default: 3000)")
|
|
19
|
-
.option("--disable-default-drive", "disable automatic creation of the default 'powerhouse' drive in the reactor")
|
|
20
24
|
.option("--https-key-file <HTTPS_KEY_FILE>", "path to the ssl key file")
|
|
21
25
|
.option("--https-cert-file <HTTPS_CERT_FILE>", "path to the ssl cert file")
|
|
22
26
|
.option("--config-file <configFile>", "Path to the powerhouse.config.js file")
|
|
23
|
-
.option("-w, --watch", "
|
|
24
|
-
.option("--remote-drive <url>", "URL of remote drive to connect to (skips switchboard initialization)")
|
|
27
|
+
.option("-w, --watch", "Enable dynamic loading for document-models and editors in connect-studio and switchboard")
|
|
28
|
+
.option("--remote-drive <url>", "URL of remote drive to connect to (skips switchboard initialization)")
|
|
29
|
+
.option("--disable-connect", "Skip Connect initialization (only start switchboard and reactor)")
|
|
30
|
+
.option("--interactive", "Enable interactive mode for code generation (requires user confirmation before generating code)");
|
|
25
31
|
// Use the setCustomHelp utility to apply custom help formatting
|
|
26
32
|
setCustomHelp(cmd, vetraHelp);
|
|
27
33
|
cmd.action(vetra);
|
|
@@ -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,EAA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,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"}
|
package/dist/src/help.d.ts
CHANGED
|
@@ -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
|
|
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
|
|
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 --
|
|
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
|
|
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
|
|
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
|
*/
|
|
@@ -45,7 +45,7 @@ export declare const serviceHelp = "\nCommand Overview:\n The service command m
|
|
|
45
45
|
/**
|
|
46
46
|
* Help text for the switchboard command
|
|
47
47
|
*/
|
|
48
|
-
export declare const switchboardHelp = "\nCommand Overview:\n The switchboard command starts a local Switchboard instance, which acts as the document\n processing engine for Powerhouse projects. It provides the infrastructure for document\n models, processors, and real-time updates.\n\n This command:\n 1. Starts a local switchboard server\n 2. Loads document models and processors\n 3. Provides an API for document operations\n 4. Enables real-time document processing\n\nOptions:\n --port <PORT> Port to host the API. Default is 4001.\n \n --config-file <path> Path to the powerhouse.config.js file. Default is \n './powerhouse.config.json'. This configures the switchboard behavior.\n \n --db-path <DB_PATH> Path to the database for storing document data.\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 --packages <pkg...> List of packages to be loaded. If defined, packages specified\n in the config file are ignored.\n \n --base-path <path> Base path for the API endpoints. Sets the BASE_PATH environment \n variable used by the server to prefix all routes.\n\nExamples:\n $ ph switchboard # Start switchboard with default settings\n $ ph switchboard --port 5000 # Use custom port 5000\n $ ph switchboard --config-file custom.json # Use custom configuration file\n $ ph switchboard --packages pkg1 pkg2 # Load specific packages\n $ ph switchboard --base-path /switchboard # Set API base path to /switchboard\n";
|
|
48
|
+
export declare const switchboardHelp = "\nCommand Overview:\n The switchboard command starts a local Switchboard instance, which acts as the document\n processing engine for Powerhouse projects. It provides the infrastructure for document\n models, processors, and real-time updates.\n\n This command:\n 1. Starts a local switchboard server\n 2. Loads document models and processors\n 3. Provides an API for document operations\n 4. Enables real-time document processing\n\nOptions:\n --port <PORT> Port to host the API. Default is 4001.\n \n --config-file <path> Path to the powerhouse.config.js file. Default is \n './powerhouse.config.json'. This configures the switchboard behavior.\n \n --dev Enable development mode to load local packages from the current directory.\n This allows the switchboard to discover and load document models, processors,\n and subgraphs from your local development environment.\n \n --db-path <DB_PATH> Path to the database for storing document data.\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 --packages <pkg...> List of packages to be loaded. If defined, packages specified\n in the config file are ignored.\n \n --base-path <path> Base path for the API endpoints. Sets the BASE_PATH environment \n variable used by the server to prefix all routes.\n\nExamples:\n $ ph switchboard # Start switchboard with default settings\n $ ph switchboard --port 5000 # Use custom port 5000\n $ ph switchboard --dev # Enable dev mode to load local packages\n $ ph switchboard --config-file custom.json # Use custom configuration file\n $ ph switchboard --packages pkg1 pkg2 # Load specific packages\n $ ph switchboard --base-path /switchboard # Set API base path to /switchboard\n";
|
|
49
49
|
/**
|
|
50
50
|
* Help text for the reactor command
|
|
51
51
|
*/
|
package/dist/src/help.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"help.d.ts","sourceRoot":"","sources":["../../src/help.ts"],"names":[],"mappings":"
|
|
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"}
|