@hyperdrive.bot/cli 1.0.6 → 1.0.8

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 (97) hide show
  1. package/README.md +415 -67
  2. package/dist/commands/account/add.d.ts +6 -6
  3. package/dist/commands/account/list.d.ts +3 -0
  4. package/dist/commands/account/list.js +9 -2
  5. package/dist/commands/account/remove.d.ts +3 -3
  6. package/dist/commands/auth/login.d.ts +4 -4
  7. package/dist/commands/auth/login.js +1 -0
  8. package/dist/commands/ci/account/create.d.ts +7 -6
  9. package/dist/commands/ci/account/create.js +49 -3
  10. package/dist/commands/ci/account/delete.d.ts +3 -3
  11. package/dist/commands/ci/account/list.d.ts +2 -2
  12. package/dist/commands/config/get.d.ts +1 -1
  13. package/dist/commands/config/set.d.ts +2 -2
  14. package/dist/commands/deployment/create.d.ts +10 -10
  15. package/dist/commands/deployment/get.d.ts +4 -4
  16. package/dist/commands/deployment/launch.d.ts +6 -6
  17. package/dist/commands/deployment/list.d.ts +3 -3
  18. package/dist/commands/deployment/list.js +17 -17
  19. package/dist/commands/domain/switch.d.ts +1 -1
  20. package/dist/commands/example.d.ts +3 -3
  21. package/dist/commands/git/connect.d.ts +2 -2
  22. package/dist/commands/git/connect.js +1 -0
  23. package/dist/commands/git/disconnect.d.ts +3 -3
  24. package/dist/commands/git/list.d.ts +2 -2
  25. package/dist/commands/git/sync.d.ts +7 -7
  26. package/dist/commands/git/sync.js +24 -23
  27. package/dist/commands/init.d.ts +1 -0
  28. package/dist/commands/init.js +20 -19
  29. package/dist/commands/jira/connect.d.ts +2 -1
  30. package/dist/commands/jira/connect.js +17 -6
  31. package/dist/commands/jira/hook/add.d.ts +17 -0
  32. package/dist/commands/jira/hook/add.js +147 -0
  33. package/dist/commands/jira/hook/list.d.ts +14 -0
  34. package/dist/commands/jira/hook/list.js +105 -0
  35. package/dist/commands/jira/hook/remove.d.ts +15 -0
  36. package/dist/commands/jira/hook/remove.js +119 -0
  37. package/dist/commands/jira/hook/toggle.d.ts +15 -0
  38. package/dist/commands/jira/hook/toggle.js +136 -0
  39. package/dist/commands/jira/status.d.ts +1 -1
  40. package/dist/commands/module/analyze.d.ts +5 -5
  41. package/dist/commands/module/create.d.ts +17 -17
  42. package/dist/commands/module/create.js +9 -1
  43. package/dist/commands/module/destroy.d.ts +3 -3
  44. package/dist/commands/module/get.d.ts +2 -2
  45. package/dist/commands/module/link.d.ts +4 -4
  46. package/dist/commands/module/list.d.ts +1 -1
  47. package/dist/commands/module/list.js +12 -11
  48. package/dist/commands/module/reanalyze.d.ts +6 -6
  49. package/dist/commands/module/update.d.ts +19 -19
  50. package/dist/commands/parameter/add.d.ts +7 -7
  51. package/dist/commands/parameter/backfill.d.ts +4 -4
  52. package/dist/commands/parameter/backfill.js +4 -3
  53. package/dist/commands/parameter/clear.d.ts +6 -6
  54. package/dist/commands/parameter/list.d.ts +6 -6
  55. package/dist/commands/parameter/list.js +4 -3
  56. package/dist/commands/parameter/pull.d.ts +6 -6
  57. package/dist/commands/parameter/remove.d.ts +7 -7
  58. package/dist/commands/parameter/sync.d.ts +6 -6
  59. package/dist/commands/parameter/update.d.ts +7 -7
  60. package/dist/commands/project/init.d.ts +21 -0
  61. package/dist/commands/project/init.js +576 -0
  62. package/dist/commands/project/list.d.ts +10 -0
  63. package/dist/commands/project/list.js +119 -0
  64. package/dist/commands/project/status.d.ts +13 -0
  65. package/dist/commands/project/status.js +163 -0
  66. package/dist/commands/project/sync.d.ts +26 -0
  67. package/dist/commands/project/sync.js +388 -0
  68. package/dist/commands/stage/access.d.ts +15 -0
  69. package/dist/commands/stage/access.js +130 -0
  70. package/dist/commands/stage/create.d.ts +11 -11
  71. package/dist/commands/stage/list.d.ts +1 -1
  72. package/dist/commands/stage/list.js +21 -20
  73. package/dist/commands/stage/revoke.d.ts +18 -0
  74. package/dist/commands/stage/revoke.js +171 -0
  75. package/dist/commands/stage/share.d.ts +23 -0
  76. package/dist/commands/stage/share.js +292 -0
  77. package/dist/commands/test-api.d.ts +1 -1
  78. package/dist/services/auth-service.d.ts +15 -82
  79. package/dist/services/auth-service.js +24 -237
  80. package/dist/services/hyperdrive-sigv4.d.ts +162 -24
  81. package/dist/services/hyperdrive-sigv4.js +107 -193
  82. package/dist/services/tenant-service.d.ts +6 -0
  83. package/dist/services/tenant-service.js +13 -0
  84. package/dist/utils/account-flow.d.ts +2 -2
  85. package/dist/utils/account-flow.js +4 -4
  86. package/dist/utils/auth-flow.d.ts +1 -0
  87. package/dist/utils/auth-flow.js +2 -0
  88. package/dist/utils/git-flow.d.ts +1 -0
  89. package/dist/utils/git-flow.js +2 -2
  90. package/dist/utils/hook-flow.d.ts +21 -0
  91. package/dist/utils/hook-flow.js +154 -0
  92. package/dist/utils/jira-flow.d.ts +2 -2
  93. package/dist/utils/jira-flow.js +4 -4
  94. package/dist/utils/table.d.ts +17 -0
  95. package/dist/utils/table.js +41 -0
  96. package/oclif.manifest.json +844 -154
  97. package/package.json +59 -15
package/package.json CHANGED
@@ -1,27 +1,33 @@
1
1
  {
2
2
  "name": "@hyperdrive.bot/cli",
3
3
  "description": "hyperdrive.bot is a command-line interface (CLI) tool designed for managing and deploying projects using the Hyperdrive API. The CLI acts as a proxy to the Hyperdrive API, enabling users to:",
4
- "version": "1.0.6",
4
+ "version": "1.0.8",
5
5
  "author": "marcelomarra",
6
6
  "bin": {
7
7
  "hd": "./bin/run.js",
8
8
  "hyperdrive.bot": "./bin/run.js",
9
- "hyperdrive": "./bin/run.js"
9
+ "hyperdrive": "./bin/run.js",
10
+ "gut": "./bin/run.js"
10
11
  },
11
12
  "bugs": "https://github.com/hyperdrive/hd/issues",
12
13
  "dependencies": {
13
- "@aws-crypto/sha256-js": "^5.2.0",
14
14
  "@aws-sdk/client-cloudwatch-logs": "^3.958.0",
15
15
  "@aws-sdk/client-cognito-identity": "^3.922.0",
16
16
  "@aws-sdk/client-cognito-identity-provider": "^3.971.0",
17
- "@oclif/core": "^3",
17
+ "@hyperdrive.bot/bmad-workflow": "file:../bmad-workflow",
18
+ "@hyperdrive.bot/cli-auth": "^1.0.2",
19
+ "@hyperdrive.bot/gh-plugin": "file:../hyperdrive-gh",
20
+ "@hyperdrive.bot/glab-plugin": "file:../hyperdrive-glab",
21
+ "@hyperdrive.bot/gut": "file:../gut",
22
+ "@hyperdrive.bot/jira-plugin": "file:../hyperdrive-jira",
23
+ "@hyperdrive.bot/vercel-plugin": "file:../hyperdrive-vercel",
24
+ "@oclif/core": "^4",
18
25
  "@oclif/plugin-help": "^6",
19
26
  "@oclif/plugin-not-found": "^3.1.8",
20
27
  "@oclif/plugin-plugins": "^5",
21
- "@smithy/protocol-http": "^5.3.4",
22
- "@smithy/signature-v4": "^5.3.4",
23
28
  "axios": "^1.7.1",
24
29
  "chalk": "^5.3.0",
30
+ "cli-table3": "^0.6.5",
25
31
  "inquirer": "^9.2.20",
26
32
  "jsonwebtoken": "^9.0.3",
27
33
  "moment": "^2.30.1",
@@ -30,9 +36,10 @@
30
36
  },
31
37
  "devDependencies": {
32
38
  "@oclif/prettier-config": "^0.2.1",
33
- "@oclif/test": "^3",
39
+ "@oclif/test": "^4",
34
40
  "@types/chai": "^4",
35
41
  "@types/inquirer": "^9.0.7",
42
+ "@types/js-yaml": "^4.0.9",
36
43
  "@types/jsonwebtoken": "^9.0.10",
37
44
  "@types/mocha": "^10",
38
45
  "@types/node": "^18",
@@ -79,9 +86,50 @@
79
86
  },
80
87
  "plugins": [
81
88
  "@oclif/plugin-help",
82
- "@oclif/plugin-plugins"
89
+ "@oclif/plugin-plugins",
90
+ "@hyperdrive.bot/gut",
91
+ "@hyperdrive.bot/bmad-workflow",
92
+ "@hyperdrive.bot/gh-plugin",
93
+ "@hyperdrive.bot/glab-plugin",
94
+ "@hyperdrive.bot/jira-plugin",
95
+ "@hyperdrive.bot/vercel-plugin"
83
96
  ],
84
- "topicSeparator": " "
97
+ "topicSeparator": " ",
98
+ "topics": {
99
+ "entity": {
100
+ "description": "Manage workspace entities (from gut plugin)"
101
+ },
102
+ "ticket": {
103
+ "description": "Manage tickets from the ADHB system (from gut plugin)"
104
+ },
105
+ "workflow": {
106
+ "description": "AI-driven development workflow orchestration (from bmad-workflow plugin)"
107
+ },
108
+ "stories": {
109
+ "description": "Manage user stories (from bmad-workflow plugin)"
110
+ },
111
+ "epics": {
112
+ "description": "Manage epics (from bmad-workflow plugin)"
113
+ },
114
+ "prd": {
115
+ "description": "PRD validation and fixing (from bmad-workflow plugin)"
116
+ },
117
+ "gh": {
118
+ "description": "GitHub CLI passthrough (gh-plugin)"
119
+ },
120
+ "glab": {
121
+ "description": "GitLab CLI passthrough (glab-plugin)"
122
+ },
123
+ "jira": {
124
+ "description": "Jira CLI for issues, boards, and sprints (jira-plugin)"
125
+ },
126
+ "jira hook": {
127
+ "description": "Manage Jira status transition hooks"
128
+ },
129
+ "vercel": {
130
+ "description": "Vercel CLI passthrough (vercel-plugin)"
131
+ }
132
+ }
85
133
  },
86
134
  "repository": "hyperdrive/hd",
87
135
  "scripts": {
@@ -104,9 +152,5 @@
104
152
  "version": "oclif readme && git add README.md",
105
153
  "publish:docker": "docker logout && aws ecr-public get-login-password --region us-east-1 | docker login --username AWS --password-stdin public.ecr.aws/j4f5a6i6 && docker build --platform linux/amd64 -t public.ecr.aws/j4f5a6i6/devsquad/hyperdrive:latest . && docker push public.ecr.aws/j4f5a6i6/devsquad/hyperdrive:latest"
106
154
  },
107
- "types": "dist/index.d.ts",
108
- "publishConfig": {
109
- "access": "public",
110
- "registry": "https://registry.npmjs.org/"
111
- }
112
- }
155
+ "types": "dist/index.d.ts"
156
+ }