@powerhousedao/ph-cli 0.32.1-dev.0 → 0.33.1-dev.0
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/dist/{chunk-27FF7J6K.js → chunk-4CHMELTF.js} +7 -1
- package/dist/{chunk-36HFAN3C.js → chunk-7FTFL36R.js} +1 -1
- package/dist/chunk-DYKO5D3K.js +52 -0
- package/dist/chunk-XYNGLOOS.js +51 -0
- package/dist/cli.js +2 -2
- package/dist/commands/connect.js +1 -1
- package/dist/commands/index.js +2 -2
- package/dist/index.js +2 -2
- package/package.json +7 -7
|
@@ -1,8 +1,13 @@
|
|
|
1
1
|
// src/commands/connect.ts
|
|
2
|
+
import { getConfig } from "@powerhousedao/config/powerhouse";
|
|
2
3
|
import {
|
|
3
4
|
startConnectStudio
|
|
4
5
|
} from "@powerhousedao/connect";
|
|
5
|
-
|
|
6
|
+
|
|
7
|
+
// package.json
|
|
8
|
+
var version = "0.33.1-dev.0";
|
|
9
|
+
|
|
10
|
+
// src/commands/connect.ts
|
|
6
11
|
async function startConnect(connectOptions) {
|
|
7
12
|
const { documentModelsDir, editorsDir } = getConfig();
|
|
8
13
|
const options = { documentModelsDir, editorsDir, ...connectOptions };
|
|
@@ -24,6 +29,7 @@ function connectCommand(program) {
|
|
|
24
29
|
await startConnectStudio({
|
|
25
30
|
port: studio?.port?.toString() || void 0,
|
|
26
31
|
packages,
|
|
32
|
+
phCliVersion: typeof version === "string" ? version : void 0,
|
|
27
33
|
localDocuments: documentModelsDir || void 0,
|
|
28
34
|
localEditors: editorsDir || void 0,
|
|
29
35
|
open: studio?.openBrowser,
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import {
|
|
2
|
+
inspectCommand
|
|
3
|
+
} from "./chunk-IFV5NKI4.js";
|
|
4
|
+
import {
|
|
5
|
+
installCommand
|
|
6
|
+
} from "./chunk-FEGQ7JEJ.js";
|
|
7
|
+
import {
|
|
8
|
+
listCommand
|
|
9
|
+
} from "./chunk-6VK3FH3G.js";
|
|
10
|
+
import {
|
|
11
|
+
serviceCommand
|
|
12
|
+
} from "./chunk-FFVIBNX6.js";
|
|
13
|
+
import {
|
|
14
|
+
uninstallCommand
|
|
15
|
+
} from "./chunk-D42NLWCH.js";
|
|
16
|
+
import {
|
|
17
|
+
connectCommand
|
|
18
|
+
} from "./chunk-XYNGLOOS.js";
|
|
19
|
+
import {
|
|
20
|
+
devCommand
|
|
21
|
+
} from "./chunk-3LA6D2BV.js";
|
|
22
|
+
import {
|
|
23
|
+
reactorCommand
|
|
24
|
+
} from "./chunk-ZZ3KNXW6.js";
|
|
25
|
+
import {
|
|
26
|
+
generateCommand
|
|
27
|
+
} from "./chunk-ACKSBZXF.js";
|
|
28
|
+
import {
|
|
29
|
+
helpCommand
|
|
30
|
+
} from "./chunk-KPMNRIJU.js";
|
|
31
|
+
|
|
32
|
+
// src/commands/index.ts
|
|
33
|
+
var commands = [
|
|
34
|
+
devCommand,
|
|
35
|
+
connectCommand,
|
|
36
|
+
generateCommand,
|
|
37
|
+
reactorCommand,
|
|
38
|
+
helpCommand,
|
|
39
|
+
installCommand,
|
|
40
|
+
uninstallCommand,
|
|
41
|
+
serviceCommand,
|
|
42
|
+
listCommand,
|
|
43
|
+
inspectCommand
|
|
44
|
+
];
|
|
45
|
+
function registerCommands(program) {
|
|
46
|
+
commands.forEach((command) => command(program));
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export {
|
|
50
|
+
commands,
|
|
51
|
+
registerCommands
|
|
52
|
+
};
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
// src/commands/connect.ts
|
|
2
|
+
import { getConfig } from "@powerhousedao/config/powerhouse";
|
|
3
|
+
import {
|
|
4
|
+
startConnectStudio
|
|
5
|
+
} from "@powerhousedao/connect";
|
|
6
|
+
|
|
7
|
+
// package.json
|
|
8
|
+
var version = "0.32.1-dev.0";
|
|
9
|
+
|
|
10
|
+
// src/commands/connect.ts
|
|
11
|
+
async function startConnect(connectOptions) {
|
|
12
|
+
const { documentModelsDir, editorsDir } = getConfig();
|
|
13
|
+
const options = { documentModelsDir, editorsDir, ...connectOptions };
|
|
14
|
+
return await startConnectStudio(options);
|
|
15
|
+
}
|
|
16
|
+
function connectCommand(program) {
|
|
17
|
+
program.command("connect").description("Starts Connect Studio").option("-p, --port <port>", "Port to run the server on", "3000").option("-h, --host", "Expose the server to the network").option("--https", "Enable HTTPS").option("--open", "Open the browser").option(
|
|
18
|
+
"--config-file <configFile>",
|
|
19
|
+
"Path to the powerhouse.config.js file"
|
|
20
|
+
).option(
|
|
21
|
+
"-le, --local-editors <localEditors>",
|
|
22
|
+
"Link local document editors path"
|
|
23
|
+
).option(
|
|
24
|
+
"-ld, --local-documents <localDocuments>",
|
|
25
|
+
"Link local documents path"
|
|
26
|
+
).action(async (...args) => {
|
|
27
|
+
const connectOptions = args.at(0) || {};
|
|
28
|
+
const { documentModelsDir, editorsDir, packages, studio } = getConfig();
|
|
29
|
+
await startConnectStudio({
|
|
30
|
+
port: studio?.port?.toString() || void 0,
|
|
31
|
+
packages,
|
|
32
|
+
phCliVersion: typeof version === "string" ? version : void 0,
|
|
33
|
+
localDocuments: documentModelsDir || void 0,
|
|
34
|
+
localEditors: editorsDir || void 0,
|
|
35
|
+
open: studio?.openBrowser,
|
|
36
|
+
...connectOptions
|
|
37
|
+
});
|
|
38
|
+
});
|
|
39
|
+
}
|
|
40
|
+
if (process.argv.at(2) === "spawn") {
|
|
41
|
+
const optionsArg = process.argv.at(3);
|
|
42
|
+
const options = optionsArg ? JSON.parse(optionsArg) : {};
|
|
43
|
+
startConnect(options).catch((e) => {
|
|
44
|
+
throw e;
|
|
45
|
+
});
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
export {
|
|
49
|
+
startConnect,
|
|
50
|
+
connectCommand
|
|
51
|
+
};
|
package/dist/cli.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
registerCommands
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-7FTFL36R.js";
|
|
5
5
|
import "./chunk-IFV5NKI4.js";
|
|
6
6
|
import "./chunk-FEGQ7JEJ.js";
|
|
7
7
|
import "./chunk-6VK3FH3G.js";
|
|
8
8
|
import "./chunk-FFVIBNX6.js";
|
|
9
9
|
import "./chunk-D42NLWCH.js";
|
|
10
10
|
import "./chunk-V725N3UP.js";
|
|
11
|
-
import "./chunk-
|
|
11
|
+
import "./chunk-4CHMELTF.js";
|
|
12
12
|
import "./chunk-3LA6D2BV.js";
|
|
13
13
|
import "./chunk-ZZ3KNXW6.js";
|
|
14
14
|
import "./chunk-ACKSBZXF.js";
|
package/dist/commands/connect.js
CHANGED
package/dist/commands/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
commands,
|
|
3
3
|
registerCommands
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-7FTFL36R.js";
|
|
5
5
|
import "../chunk-IFV5NKI4.js";
|
|
6
6
|
import {
|
|
7
7
|
install,
|
|
@@ -25,7 +25,7 @@ import "../chunk-V725N3UP.js";
|
|
|
25
25
|
import {
|
|
26
26
|
connectCommand,
|
|
27
27
|
startConnect
|
|
28
|
-
} from "../chunk-
|
|
28
|
+
} from "../chunk-4CHMELTF.js";
|
|
29
29
|
import {
|
|
30
30
|
dev,
|
|
31
31
|
devCommand
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
commands
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-7FTFL36R.js";
|
|
4
4
|
import "./chunk-IFV5NKI4.js";
|
|
5
5
|
import {
|
|
6
6
|
install,
|
|
@@ -37,7 +37,7 @@ import {
|
|
|
37
37
|
import {
|
|
38
38
|
connectCommand,
|
|
39
39
|
startConnect
|
|
40
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-4CHMELTF.js";
|
|
41
41
|
import {
|
|
42
42
|
dev,
|
|
43
43
|
devCommand
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@powerhousedao/ph-cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.33.1-dev.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"license": "AGPL-3.0-only",
|
|
6
6
|
"type": "module",
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"graphql-tag": "^2.12.6",
|
|
23
23
|
"knex": "^3.1.0",
|
|
24
24
|
"luxon": "^3.5.0",
|
|
25
|
-
"document-drive": "1.
|
|
25
|
+
"document-drive": "1.19.0"
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
28
|
"colorette": "^2.0.20",
|
|
@@ -31,14 +31,14 @@
|
|
|
31
31
|
"pm2": "^5.4.3",
|
|
32
32
|
"react": "^18.3.1",
|
|
33
33
|
"react-dom": "^18.3.1",
|
|
34
|
-
"@powerhousedao/codegen": "0.
|
|
34
|
+
"@powerhousedao/codegen": "0.36.0",
|
|
35
|
+
"@powerhousedao/connect": "1.0.0-dev.201",
|
|
36
|
+
"@powerhousedao/design-system": "1.27.0",
|
|
35
37
|
"@powerhousedao/config": "1.17.0",
|
|
36
|
-
"@powerhousedao/design-system": "1.26.0",
|
|
37
|
-
"@powerhousedao/reactor-local": "1.20.0",
|
|
38
38
|
"@powerhousedao/scalars": "1.23.0",
|
|
39
|
-
"@powerhousedao/connect": "1.0.0-dev.200",
|
|
40
39
|
"document-model": "2.20.0",
|
|
41
|
-
"
|
|
40
|
+
"@powerhousedao/reactor-local": "1.20.1",
|
|
41
|
+
"document-model-libs": "1.132.1"
|
|
42
42
|
},
|
|
43
43
|
"scripts": {
|
|
44
44
|
"build": "tsup",
|