@hyperdrive.bot/gut 0.1.11 → 0.1.12
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 +128 -3
- package/dist/commands/worktree/create.js +5 -7
- package/oclif.manifest.json +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -18,7 +18,7 @@ $ npm install -g @hyperdrive.bot/gut
|
|
|
18
18
|
$ gut COMMAND
|
|
19
19
|
running command...
|
|
20
20
|
$ gut (--version)
|
|
21
|
-
@hyperdrive.bot/gut/0.1.
|
|
21
|
+
@hyperdrive.bot/gut/0.1.12 linux-x64 node-v22.22.1
|
|
22
22
|
$ gut --help [COMMAND]
|
|
23
23
|
USAGE
|
|
24
24
|
$ gut COMMAND
|
|
@@ -30,6 +30,9 @@ USAGE
|
|
|
30
30
|
* [`gut add [PATH]`](#gut-add-path)
|
|
31
31
|
* [`gut affected [ENTITY]`](#gut-affected-entity)
|
|
32
32
|
* [`gut audit`](#gut-audit)
|
|
33
|
+
* [`gut auth login`](#gut-auth-login)
|
|
34
|
+
* [`gut auth logout`](#gut-auth-logout)
|
|
35
|
+
* [`gut auth status`](#gut-auth-status)
|
|
33
36
|
* [`gut back`](#gut-back)
|
|
34
37
|
* [`gut checkout BRANCH`](#gut-checkout-branch)
|
|
35
38
|
* [`gut commit`](#gut-commit)
|
|
@@ -58,6 +61,7 @@ USAGE
|
|
|
58
61
|
* [`gut status`](#gut-status)
|
|
59
62
|
* [`gut sync`](#gut-sync)
|
|
60
63
|
* [`gut ticket`](#gut-ticket)
|
|
64
|
+
* [`gut ticket config`](#gut-ticket-config)
|
|
61
65
|
* [`gut ticket focus TICKETID`](#gut-ticket-focus-ticketid)
|
|
62
66
|
* [`gut ticket get TICKETID`](#gut-ticket-get-ticketid)
|
|
63
67
|
* [`gut ticket hint [HINT] TICKETID`](#gut-ticket-hint-hint-ticketid)
|
|
@@ -67,6 +71,7 @@ USAGE
|
|
|
67
71
|
* [`gut unfocus`](#gut-unfocus)
|
|
68
72
|
* [`gut used-by [ENTITY]`](#gut-used-by-entity)
|
|
69
73
|
* [`gut workspace ACTION`](#gut-workspace-action)
|
|
74
|
+
* [`gut worktree create NAME`](#gut-worktree-create-name)
|
|
70
75
|
|
|
71
76
|
## `gut add [PATH]`
|
|
72
77
|
|
|
@@ -155,6 +160,64 @@ EXAMPLES
|
|
|
155
160
|
$ gut audit --compliance
|
|
156
161
|
```
|
|
157
162
|
|
|
163
|
+
## `gut auth login`
|
|
164
|
+
|
|
165
|
+
Authenticate with Gut using OAuth 2.0 PKCE flow
|
|
166
|
+
|
|
167
|
+
```
|
|
168
|
+
USAGE
|
|
169
|
+
$ gut auth login [-d <value>] [-p <value>]
|
|
170
|
+
|
|
171
|
+
FLAGS
|
|
172
|
+
-d, --domain=<value> Tenant domain (e.g., acme.hyperdrive.bot)
|
|
173
|
+
-p, --port=<value> [default: 8766] Local callback server port
|
|
174
|
+
|
|
175
|
+
DESCRIPTION
|
|
176
|
+
Authenticate with Gut using OAuth 2.0 PKCE flow
|
|
177
|
+
|
|
178
|
+
EXAMPLES
|
|
179
|
+
$ gut auth login
|
|
180
|
+
|
|
181
|
+
$ gut auth login --domain acme.hyperdrive.bot
|
|
182
|
+
|
|
183
|
+
$ gut auth login --port 9876
|
|
184
|
+
```
|
|
185
|
+
|
|
186
|
+
## `gut auth logout`
|
|
187
|
+
|
|
188
|
+
Remove stored credentials and logout
|
|
189
|
+
|
|
190
|
+
```
|
|
191
|
+
USAGE
|
|
192
|
+
$ gut auth logout
|
|
193
|
+
|
|
194
|
+
DESCRIPTION
|
|
195
|
+
Remove stored credentials and logout
|
|
196
|
+
|
|
197
|
+
EXAMPLES
|
|
198
|
+
$ gut auth logout
|
|
199
|
+
```
|
|
200
|
+
|
|
201
|
+
## `gut auth status`
|
|
202
|
+
|
|
203
|
+
Show current authentication status
|
|
204
|
+
|
|
205
|
+
```
|
|
206
|
+
USAGE
|
|
207
|
+
$ gut auth status [-v]
|
|
208
|
+
|
|
209
|
+
FLAGS
|
|
210
|
+
-v, --verbose Show detailed credential information
|
|
211
|
+
|
|
212
|
+
DESCRIPTION
|
|
213
|
+
Show current authentication status
|
|
214
|
+
|
|
215
|
+
EXAMPLES
|
|
216
|
+
$ gut auth status
|
|
217
|
+
|
|
218
|
+
$ gut auth status --verbose
|
|
219
|
+
```
|
|
220
|
+
|
|
158
221
|
## `gut back`
|
|
159
222
|
|
|
160
223
|
Navigate back to the previous focus
|
|
@@ -842,6 +905,31 @@ EXAMPLES
|
|
|
842
905
|
$ gut ticket update PROJ-1234 --status in_progress
|
|
843
906
|
```
|
|
844
907
|
|
|
908
|
+
## `gut ticket config`
|
|
909
|
+
|
|
910
|
+
Configure ticket source (JIRA, GitHub, etc.) for this tenant
|
|
911
|
+
|
|
912
|
+
```
|
|
913
|
+
USAGE
|
|
914
|
+
$ gut ticket config [--secret-arn <value>] [-j] [--show] [--type jira|github|linear] [--url <value>]
|
|
915
|
+
|
|
916
|
+
FLAGS
|
|
917
|
+
-j, --json output as JSON
|
|
918
|
+
--secret-arn=<value> AWS Secrets Manager ARN for credentials
|
|
919
|
+
--show show current configuration
|
|
920
|
+
--type=<option> source type
|
|
921
|
+
<options: jira|github|linear>
|
|
922
|
+
--url=<value> base URL (e.g., https://company.atlassian.net)
|
|
923
|
+
|
|
924
|
+
DESCRIPTION
|
|
925
|
+
Configure ticket source (JIRA, GitHub, etc.) for this tenant
|
|
926
|
+
|
|
927
|
+
EXAMPLES
|
|
928
|
+
$ gut ticket config --show
|
|
929
|
+
|
|
930
|
+
$ gut ticket config --type jira --url https://company.atlassian.net --secret-arn arn:aws:secretsmanager:...
|
|
931
|
+
```
|
|
932
|
+
|
|
845
933
|
## `gut ticket focus TICKETID`
|
|
846
934
|
|
|
847
935
|
Focus on a ticket - downloads manifest and clones required entities
|
|
@@ -959,25 +1047,35 @@ Sync ticket state with external source (JIRA, GitHub, etc.)
|
|
|
959
1047
|
|
|
960
1048
|
```
|
|
961
1049
|
USAGE
|
|
962
|
-
$ gut ticket sync TICKETID [-d push|pull] [-j]
|
|
1050
|
+
$ gut ticket sync TICKETID [-d push|pull] [-j] [--no-enrich]
|
|
963
1051
|
|
|
964
1052
|
ARGUMENTS
|
|
965
|
-
TICKETID ticket ID to sync
|
|
1053
|
+
TICKETID ticket ID to sync (e.g., PROJ-1234)
|
|
966
1054
|
|
|
967
1055
|
FLAGS
|
|
968
1056
|
-d, --direction=<option> [default: push] sync direction (push: gut -> source, pull: source -> gut)
|
|
969
1057
|
<options: push|pull>
|
|
970
1058
|
-j, --json output as JSON
|
|
1059
|
+
--no-enrich skip enrichment queue when pulling new tickets
|
|
971
1060
|
|
|
972
1061
|
DESCRIPTION
|
|
973
1062
|
Sync ticket state with external source (JIRA, GitHub, etc.)
|
|
974
1063
|
|
|
1064
|
+
For pull direction:
|
|
1065
|
+
- If ticket exists in gut: updates from source
|
|
1066
|
+
- If ticket doesn't exist: creates it and queues enrichment
|
|
1067
|
+
|
|
1068
|
+
For push direction:
|
|
1069
|
+
- Updates source system with gut ticket state
|
|
1070
|
+
|
|
975
1071
|
EXAMPLES
|
|
976
1072
|
$ gut ticket sync PROJ-1234
|
|
977
1073
|
|
|
978
1074
|
$ gut ticket sync PROJ-1234 --direction push
|
|
979
1075
|
|
|
980
1076
|
$ gut ticket sync PROJ-1234 --direction pull
|
|
1077
|
+
|
|
1078
|
+
$ gut ticket sync PROJ-1234 --direction pull --no-enrich
|
|
981
1079
|
```
|
|
982
1080
|
|
|
983
1081
|
## `gut ticket update TICKETID`
|
|
@@ -1075,4 +1173,31 @@ EXAMPLES
|
|
|
1075
1173
|
|
|
1076
1174
|
$ gut workspace generate-metadata
|
|
1077
1175
|
```
|
|
1176
|
+
|
|
1177
|
+
## `gut worktree create NAME`
|
|
1178
|
+
|
|
1179
|
+
Create mirrored worktrees for super-repo and focused entities
|
|
1180
|
+
|
|
1181
|
+
```
|
|
1182
|
+
USAGE
|
|
1183
|
+
$ gut worktree create NAME [--base-dir <value>] [--from <value>] [--install]
|
|
1184
|
+
|
|
1185
|
+
ARGUMENTS
|
|
1186
|
+
NAME Branch name for the worktree
|
|
1187
|
+
|
|
1188
|
+
FLAGS
|
|
1189
|
+
--base-dir=<value> [default: /tmp/gut-worktrees] Root directory for worktrees
|
|
1190
|
+
--from=<value> Base branch to create from (defaults to current branch)
|
|
1191
|
+
--install Run pnpm install after creation
|
|
1192
|
+
|
|
1193
|
+
DESCRIPTION
|
|
1194
|
+
Create mirrored worktrees for super-repo and focused entities
|
|
1195
|
+
|
|
1196
|
+
EXAMPLES
|
|
1197
|
+
$ gut worktree create workflow/deploy-batch
|
|
1198
|
+
|
|
1199
|
+
$ gut worktree create workflow/deploy-batch --from master --install
|
|
1200
|
+
|
|
1201
|
+
$ gut worktree create feature/story-42 --base-dir /home/user/worktrees
|
|
1202
|
+
```
|
|
1078
1203
|
<!-- commandsstop -->
|
|
@@ -53,13 +53,11 @@ export default class WorktreeCreate extends BaseCommand {
|
|
|
53
53
|
const entityRelativePath = entity.path.replace(/^\.\//, '');
|
|
54
54
|
const entityWtPath = path.join(wtPath, entityRelativePath);
|
|
55
55
|
const entityMainPath = path.join(workspaceRoot, entityRelativePath);
|
|
56
|
-
//
|
|
57
|
-
//
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
entityBaseBranch = await this.gitService.getCurrentBranch(entityMainPath);
|
|
62
|
-
this.log(chalk.yellow(`⚠ Entity "${entity.name}" does not have branch "${baseBranch}", using "${entityBaseBranch}" instead`));
|
|
56
|
+
// Always use the entity's current branch as base — the super-repo branch
|
|
57
|
+
// may exist but be stale (e.g., api has master but works on develop)
|
|
58
|
+
const entityBaseBranch = await this.gitService.getCurrentBranch(entityMainPath);
|
|
59
|
+
if (entityBaseBranch !== baseBranch) {
|
|
60
|
+
this.log(chalk.yellow(`⚠ Entity "${entity.name}" is on "${entityBaseBranch}" (super-repo: "${baseBranch}")`));
|
|
63
61
|
}
|
|
64
62
|
// Remove submodule stub
|
|
65
63
|
fs.rmSync(entityWtPath, { force: true, recursive: true });
|
package/oclif.manifest.json
CHANGED
package/package.json
CHANGED