@solaqua/gji 0.7.0 → 0.7.2

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 (52) hide show
  1. package/dist/back.js +1 -1
  2. package/dist/clean.d.ts +2 -1
  3. package/dist/clean.js +8 -16
  4. package/dist/cli.js +7 -6
  5. package/dist/gji-bundle.mjs +568 -273
  6. package/dist/go.d.ts +2 -4
  7. package/dist/go.js +19 -48
  8. package/dist/history.d.ts +1 -0
  9. package/dist/history.js +12 -5
  10. package/dist/hooks.d.ts +3 -3
  11. package/dist/hooks.js +3 -3
  12. package/dist/init.d.ts +3 -3
  13. package/dist/init.js +12 -12
  14. package/dist/install-prompt.js +22 -21
  15. package/dist/new.js +72 -10
  16. package/dist/open.d.ts +2 -2
  17. package/dist/open.js +22 -18
  18. package/dist/pr.js +4 -4
  19. package/dist/remove.d.ts +3 -2
  20. package/dist/remove.js +8 -13
  21. package/dist/repo.d.ts +0 -1
  22. package/dist/repo.js +0 -9
  23. package/dist/run-hook.d.ts +6 -0
  24. package/dist/{trigger-hook.js → run-hook.js} +13 -7
  25. package/dist/shell-completion.js +5 -5
  26. package/dist/warp.js +24 -53
  27. package/dist/worktree-info.d.ts +0 -1
  28. package/dist/worktree-info.js +17 -11
  29. package/dist/worktree-picker.d.ts +14 -0
  30. package/dist/worktree-picker.js +228 -0
  31. package/man/man1/gji-back.1 +1 -1
  32. package/man/man1/gji-clean.1 +1 -1
  33. package/man/man1/gji-completion.1 +1 -1
  34. package/man/man1/gji-config.1 +1 -1
  35. package/man/man1/gji-go.1 +1 -1
  36. package/man/man1/gji-history.1 +1 -1
  37. package/man/man1/gji-init.1 +1 -1
  38. package/man/man1/gji-ls.1 +1 -1
  39. package/man/man1/gji-new.1 +1 -1
  40. package/man/man1/gji-open.1 +1 -1
  41. package/man/man1/gji-pr.1 +1 -1
  42. package/man/man1/gji-remove.1 +1 -1
  43. package/man/man1/gji-root.1 +1 -1
  44. package/man/man1/gji-run-hook.1 +9 -0
  45. package/man/man1/gji-status.1 +1 -1
  46. package/man/man1/gji-sync-files.1 +1 -1
  47. package/man/man1/gji-sync.1 +1 -1
  48. package/man/man1/gji-warp.1 +1 -1
  49. package/man/man1/gji.1 +6 -4
  50. package/package.json +3 -7
  51. package/dist/trigger-hook.d.ts +0 -6
  52. package/man/man1/gji-trigger-hook.1 +0 -9
@@ -1,4 +1,4 @@
1
- .TH GJI\-REMOVE 1 "May 2026" "gji 0.7.0" "User Commands"
1
+ .TH GJI\-REMOVE 1 "June 2026" "gji 0.7.2" "User Commands"
2
2
  .SH NAME
3
3
  gji\-remove \- remove a linked worktree and delete its branch when present
4
4
  .SH SYNOPSIS
@@ -1,4 +1,4 @@
1
- .TH GJI\-ROOT 1 "May 2026" "gji 0.7.0" "User Commands"
1
+ .TH GJI\-ROOT 1 "June 2026" "gji 0.7.2" "User Commands"
2
2
  .SH NAME
3
3
  gji\-root \- print the main repository root path
4
4
  .SH SYNOPSIS
@@ -0,0 +1,9 @@
1
+ .TH GJI\-RUN\-HOOK 1 "June 2026" "gji 0.7.2" "User Commands"
2
+ .SH NAME
3
+ gji\-run\-hook \- run a named hook (after\-create, after\-enter, before\-remove) in the current worktree
4
+ .SH SYNOPSIS
5
+ .B gji run\-hook [options] <hook>
6
+ .SH DESCRIPTION
7
+ run a named hook (after\-create, after\-enter, before\-remove) in the current worktree
8
+ .SH "SEE ALSO"
9
+ .BR gji (1)
@@ -1,4 +1,4 @@
1
- .TH GJI\-STATUS 1 "May 2026" "gji 0.7.0" "User Commands"
1
+ .TH GJI\-STATUS 1 "June 2026" "gji 0.7.2" "User Commands"
2
2
  .SH NAME
3
3
  gji\-status \- summarize repository and worktree health
4
4
  .SH SYNOPSIS
@@ -1,4 +1,4 @@
1
- .TH GJI\-SYNC\-FILES 1 "May 2026" "gji 0.7.0" "User Commands"
1
+ .TH GJI\-SYNC\-FILES 1 "June 2026" "gji 0.7.2" "User Commands"
2
2
  .SH NAME
3
3
  gji\-sync\-files \- manage local files copied into new worktrees
4
4
  .SH SYNOPSIS
@@ -1,4 +1,4 @@
1
- .TH GJI\-SYNC 1 "May 2026" "gji 0.7.0" "User Commands"
1
+ .TH GJI\-SYNC 1 "June 2026" "gji 0.7.2" "User Commands"
2
2
  .SH NAME
3
3
  gji\-sync \- fetch and update one or all worktrees
4
4
  .SH SYNOPSIS
@@ -1,4 +1,4 @@
1
- .TH GJI\-WARP 1 "May 2026" "gji 0.7.0" "User Commands"
1
+ .TH GJI\-WARP 1 "June 2026" "gji 0.7.2" "User Commands"
2
2
  .SH NAME
3
3
  gji\-warp \- jump to any worktree across all known repos
4
4
  .SH SYNOPSIS
package/man/man1/gji.1 CHANGED
@@ -1,4 +1,4 @@
1
- .TH GJI 1 "May 2026" "gji 0.7.0" "User Commands"
1
+ .TH GJI 1 "June 2026" "gji 0.7.2" "User Commands"
2
2
  .SH NAME
3
3
  gji \- Context switching without the mess.
4
4
  .SH SYNOPSIS
@@ -60,8 +60,10 @@ remove a linked worktree and delete its branch when present
60
60
  .br
61
61
  Alias: \fBrm\fR
62
62
  .TP
63
- .B trigger\-hook [options] <hook>
64
- run a named hook (afterCreate, afterEnter, beforeRemove) in the current worktree
63
+ .B run\-hook [options] <hook>
64
+ run a named hook (after\-create, after\-enter, before\-remove) in the current worktree
65
+ .br
66
+ Alias: \fBtrigger\-hook\fR
65
67
  .TP
66
68
  .B warp [options] [branch]
67
69
  jump to any worktree across all known repos
@@ -88,6 +90,6 @@ output the version number
88
90
  .BR gji\-ls (1),
89
91
  .BR gji\-clean (1),
90
92
  .BR gji\-remove (1),
91
- .BR gji\-trigger\-hook (1),
93
+ .BR gji\-run\-hook (1),
92
94
  .BR gji\-warp (1),
93
95
  .BR gji\-config (1)
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "@solaqua/gji",
3
- "version": "0.7.0",
3
+ "version": "0.7.2",
4
4
  "description": "Git worktree CLI for fast context switching.",
5
5
  "license": "MIT",
6
6
  "author": "sjquant",
7
7
  "type": "module",
8
- "packageManager": "pnpm@10.6.3",
8
+ "packageManager": "pnpm@11.9.0+sha512.bd682d5d03fe525ef7c9fd6780c6884d1e756ac4c9c9fe00c538782824310dcf90e3ddc4f53835f06dfaebd5085e41855e0bcbb3b60de2ac5bbab89e5036f03b",
9
9
  "homepage": "https://github.com/sjquant/gji#readme",
10
10
  "bugs": {
11
11
  "url": "https://github.com/sjquant/gji/issues"
@@ -66,12 +66,8 @@
66
66
  "@j178/prek": "^0.3.13",
67
67
  "@types/node": "^24.6.0",
68
68
  "esbuild": "^0.27.0",
69
+ "tsx": "^4.22.4",
69
70
  "typescript": "^5.9.3",
70
71
  "vitest": "^3.2.4"
71
- },
72
- "pnpm": {
73
- "onlyBuiltDependencies": [
74
- "esbuild"
75
- ]
76
72
  }
77
73
  }
@@ -1,6 +0,0 @@
1
- export interface TriggerHookCommandOptions {
2
- cwd: string;
3
- hook: string;
4
- stderr: (chunk: string) => void;
5
- }
6
- export declare function runTriggerHookCommand(options: TriggerHookCommandOptions): Promise<number>;
@@ -1,9 +0,0 @@
1
- .TH GJI\-TRIGGER\-HOOK 1 "May 2026" "gji 0.7.0" "User Commands"
2
- .SH NAME
3
- gji\-trigger\-hook \- run a named hook (afterCreate, afterEnter, beforeRemove) in the current worktree
4
- .SH SYNOPSIS
5
- .B gji trigger\-hook [options] <hook>
6
- .SH DESCRIPTION
7
- run a named hook (afterCreate, afterEnter, beforeRemove) in the current worktree
8
- .SH "SEE ALSO"
9
- .BR gji (1)