@powerhousedao/ph-cli 0.33.1-dev.0 → 0.34.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.
Files changed (80) hide show
  1. package/dist/package.json +51 -0
  2. package/dist/src/cli.d.ts +3 -0
  3. package/dist/src/cli.d.ts.map +1 -0
  4. package/dist/src/cli.js +10 -0
  5. package/dist/src/commands/connect.d.ts +6 -0
  6. package/dist/src/commands/connect.d.ts.map +1 -0
  7. package/dist/src/commands/connect.js +44 -0
  8. package/dist/src/commands/dev.d.ts +14 -0
  9. package/dist/src/commands/dev.d.ts.map +1 -0
  10. package/dist/src/commands/dev.js +88 -0
  11. package/dist/src/commands/generate.d.ts +21 -0
  12. package/dist/src/commands/generate.d.ts.map +1 -0
  13. package/dist/src/commands/generate.js +74 -0
  14. package/dist/src/commands/help.d.ts +3 -0
  15. package/dist/src/commands/help.d.ts.map +1 -0
  16. package/dist/src/commands/help.js +8 -0
  17. package/dist/src/commands/index.d.ts +14 -0
  18. package/dist/src/commands/index.d.ts.map +1 -0
  19. package/dist/src/commands/index.js +34 -0
  20. package/dist/src/commands/inspect.d.ts +10 -0
  21. package/dist/src/commands/inspect.d.ts.map +1 -0
  22. package/dist/src/commands/inspect.js +57 -0
  23. package/dist/src/commands/install.d.ts +15 -0
  24. package/dist/src/commands/install.d.ts.map +1 -0
  25. package/dist/src/commands/install.js +80 -0
  26. package/dist/src/commands/list.d.ts +9 -0
  27. package/dist/src/commands/list.d.ts.map +1 -0
  28. package/dist/src/commands/list.js +33 -0
  29. package/dist/src/commands/service.d.ts +5 -0
  30. package/dist/src/commands/service.d.ts.map +1 -0
  31. package/dist/src/commands/service.js +141 -0
  32. package/dist/src/commands/switchboard.d.ts +34 -0
  33. package/dist/src/commands/switchboard.d.ts.map +1 -0
  34. package/dist/src/commands/switchboard.js +82 -0
  35. package/dist/src/commands/uninstall.d.ts +15 -0
  36. package/dist/src/commands/uninstall.d.ts.map +1 -0
  37. package/dist/src/commands/uninstall.js +80 -0
  38. package/dist/src/index.d.ts +3 -0
  39. package/dist/src/index.d.ts.map +1 -0
  40. package/dist/src/index.js +2 -0
  41. package/dist/src/types.d.ts +2 -0
  42. package/dist/src/types.d.ts.map +1 -0
  43. package/dist/src/types.js +1 -0
  44. package/dist/src/utils.d.ts +47 -0
  45. package/dist/src/utils.d.ts.map +1 -0
  46. package/dist/src/utils.js +114 -0
  47. package/dist/tsconfig.tsbuildinfo +1 -0
  48. package/package.json +15 -15
  49. package/dist/chunk-3LA6D2BV.js +0 -109
  50. package/dist/chunk-4CHMELTF.js +0 -51
  51. package/dist/chunk-6VK3FH3G.js +0 -36
  52. package/dist/chunk-7FTFL36R.js +0 -52
  53. package/dist/chunk-ACKSBZXF.js +0 -85
  54. package/dist/chunk-D42NLWCH.js +0 -98
  55. package/dist/chunk-DYKO5D3K.js +0 -52
  56. package/dist/chunk-FEGQ7JEJ.js +0 -97
  57. package/dist/chunk-FFVIBNX6.js +0 -147
  58. package/dist/chunk-IFV5NKI4.js +0 -57
  59. package/dist/chunk-KPMNRIJU.js +0 -10
  60. package/dist/chunk-V725N3UP.js +0 -132
  61. package/dist/chunk-XYNGLOOS.js +0 -51
  62. package/dist/chunk-ZZ3KNXW6.js +0 -91
  63. package/dist/cli.js +0 -22
  64. package/dist/commands/connect.js +0 -8
  65. package/dist/commands/dev.js +0 -9
  66. package/dist/commands/generate.js +0 -8
  67. package/dist/commands/help.js +0 -6
  68. package/dist/commands/index.js +0 -68
  69. package/dist/commands/inspect.js +0 -9
  70. package/dist/commands/install.js +0 -11
  71. package/dist/commands/list.js +0 -9
  72. package/dist/commands/service.js +0 -8
  73. package/dist/commands/switchboard.js +0 -10
  74. package/dist/commands/uninstall.js +0 -11
  75. package/dist/index.js +0 -91
  76. package/dist/scripts/service-startup.sh +0 -7
  77. package/dist/scripts/service-unstartup.sh +0 -6
  78. package/dist/scripts/setup.sh +0 -24
  79. package/dist/types.js +0 -0
  80. package/dist/utils.js +0 -28
package/dist/index.js DELETED
@@ -1,91 +0,0 @@
1
- import {
2
- commands
3
- } from "./chunk-7FTFL36R.js";
4
- import "./chunk-IFV5NKI4.js";
5
- import {
6
- install,
7
- installCommand,
8
- installDependency
9
- } from "./chunk-FEGQ7JEJ.js";
10
- import {
11
- list,
12
- listCommand
13
- } from "./chunk-6VK3FH3G.js";
14
- import {
15
- manageService,
16
- serviceCommand
17
- } from "./chunk-FFVIBNX6.js";
18
- import {
19
- uninstall,
20
- uninstallCommand,
21
- uninstallDependency
22
- } from "./chunk-D42NLWCH.js";
23
- import {
24
- POWERHOUSE_CONFIG_FILE,
25
- POWERHOUSE_GLOBAL_DIR,
26
- SUPPORTED_PACKAGE_MANAGERS,
27
- defaultPathValidation,
28
- findNodeProjectRoot,
29
- getConfig,
30
- getPackageManagerFromLockfile,
31
- getPackageManagerFromPath,
32
- getProjectInfo,
33
- isPowerhouseProject,
34
- packageManagers,
35
- updateConfigFile
36
- } from "./chunk-V725N3UP.js";
37
- import {
38
- connectCommand,
39
- startConnect
40
- } from "./chunk-4CHMELTF.js";
41
- import {
42
- dev,
43
- devCommand
44
- } from "./chunk-3LA6D2BV.js";
45
- import {
46
- DefaultSwitchboardOptions,
47
- reactorCommand,
48
- switchboard
49
- } from "./chunk-ZZ3KNXW6.js";
50
- import {
51
- generate,
52
- generateCommand
53
- } from "./chunk-ACKSBZXF.js";
54
- import {
55
- helpCommand
56
- } from "./chunk-KPMNRIJU.js";
57
- export {
58
- DefaultSwitchboardOptions,
59
- POWERHOUSE_CONFIG_FILE,
60
- POWERHOUSE_GLOBAL_DIR,
61
- SUPPORTED_PACKAGE_MANAGERS,
62
- commands,
63
- connectCommand,
64
- defaultPathValidation,
65
- dev,
66
- devCommand,
67
- findNodeProjectRoot,
68
- generate,
69
- generateCommand,
70
- getConfig,
71
- getPackageManagerFromLockfile,
72
- getPackageManagerFromPath,
73
- getProjectInfo,
74
- helpCommand,
75
- install,
76
- installCommand,
77
- installDependency,
78
- isPowerhouseProject,
79
- list,
80
- listCommand,
81
- manageService,
82
- packageManagers,
83
- reactorCommand,
84
- serviceCommand,
85
- startConnect,
86
- switchboard,
87
- uninstall,
88
- uninstallCommand,
89
- uninstallDependency,
90
- updateConfigFile
91
- };
@@ -1,7 +0,0 @@
1
- #!/bin/bash
2
- OUTPUT=$(pm2 startup | tail -n 1)
3
- eval $OUTPUT
4
- ps aux | grep pm2 | grep -v grep | awk '{print $2}' | xargs kill -9 > /dev/null 2>&1
5
- sudo systemctl daemon-reload
6
- sudo systemctl enable pm2-$USER
7
- sudo systemctl start pm2-$USER
@@ -1,6 +0,0 @@
1
- #!/bin/bash
2
- sudo systemctl stop pm2-$USER
3
- sudo systemctl disable pm2-$USER
4
- OUTPUT=$(pm2 unstartup | tail -n 1)
5
- eval $OUTPUT
6
- sudo systemctl daemon-reload
@@ -1,24 +0,0 @@
1
- #!/usr/bin/env bash
2
- curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.34.0/install.sh | bash
3
- \. ~/.nvm/nvm.sh
4
- export NVM_DIR="$HOME/.nvm"
5
- [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
6
- [ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion
7
- nvm --version
8
- nvm install 22
9
- curl -fsSL https://get.pnpm.io/install.sh | sh -
10
- export PNPM_HOME="/home/$USER/.local/share/pnpm"
11
- export PATH="$PNPM_HOME:$PATH"
12
- pnpm install -g ph-cmd
13
- echo ""
14
- echo " 🎉 Setup Complete! 🎉"
15
- echo "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━"
16
- echo " To complete installation:"
17
- echo " 1. Restart your terminal"
18
- echo " OR"
19
- echo " Run: source ~/.bashrc"
20
- echo ""
21
- echo " 2. Start using Powerhouse by typing:"
22
- echo " ph"
23
- echo "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━"
24
- echo ""
package/dist/types.js DELETED
File without changes
package/dist/utils.js DELETED
@@ -1,28 +0,0 @@
1
- import {
2
- POWERHOUSE_CONFIG_FILE,
3
- POWERHOUSE_GLOBAL_DIR,
4
- SUPPORTED_PACKAGE_MANAGERS,
5
- defaultPathValidation,
6
- findNodeProjectRoot,
7
- getConfig,
8
- getPackageManagerFromLockfile,
9
- getPackageManagerFromPath,
10
- getProjectInfo,
11
- isPowerhouseProject,
12
- packageManagers,
13
- updateConfigFile
14
- } from "./chunk-V725N3UP.js";
15
- export {
16
- POWERHOUSE_CONFIG_FILE,
17
- POWERHOUSE_GLOBAL_DIR,
18
- SUPPORTED_PACKAGE_MANAGERS,
19
- defaultPathValidation,
20
- findNodeProjectRoot,
21
- getConfig,
22
- getPackageManagerFromLockfile,
23
- getPackageManagerFromPath,
24
- getProjectInfo,
25
- isPowerhouseProject,
26
- packageManagers,
27
- updateConfigFile
28
- };