@solaqua/gji 0.6.2 → 0.7.1

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 (84) hide show
  1. package/README.md +26 -1
  2. package/dist/back.d.ts +1 -1
  3. package/dist/back.js +23 -17
  4. package/dist/clean.d.ts +1 -1
  5. package/dist/clean.js +44 -35
  6. package/dist/cli.d.ts +1 -1
  7. package/dist/cli.js +266 -165
  8. package/dist/completion.js +3 -3
  9. package/dist/config-command.js +5 -5
  10. package/dist/config.js +41 -35
  11. package/dist/conflict.d.ts +1 -1
  12. package/dist/conflict.js +14 -6
  13. package/dist/editor.js +29 -9
  14. package/dist/file-sync.d.ts +1 -0
  15. package/dist/file-sync.js +15 -11
  16. package/dist/git.d.ts +1 -1
  17. package/dist/git.js +21 -19
  18. package/dist/gji-bundle.mjs +1688 -865
  19. package/dist/go.d.ts +2 -2
  20. package/dist/go.js +39 -26
  21. package/dist/headless.js +1 -1
  22. package/dist/history-command.js +3 -3
  23. package/dist/history.js +12 -12
  24. package/dist/hooks.d.ts +3 -3
  25. package/dist/hooks.js +19 -19
  26. package/dist/index.js +13 -9
  27. package/dist/init.d.ts +5 -5
  28. package/dist/init.js +115 -103
  29. package/dist/install-prompt.d.ts +3 -3
  30. package/dist/install-prompt.js +57 -38
  31. package/dist/ls.d.ts +2 -2
  32. package/dist/ls.js +29 -29
  33. package/dist/new.d.ts +2 -2
  34. package/dist/new.js +97 -82
  35. package/dist/open.d.ts +2 -2
  36. package/dist/open.js +24 -21
  37. package/dist/package-manager.js +96 -45
  38. package/dist/pr.d.ts +2 -2
  39. package/dist/pr.js +47 -34
  40. package/dist/remove.d.ts +1 -1
  41. package/dist/remove.js +39 -27
  42. package/dist/repo-registry.js +14 -14
  43. package/dist/repo.js +29 -28
  44. package/dist/root.js +3 -3
  45. package/dist/run-hook.d.ts +6 -0
  46. package/dist/{trigger-hook.js → run-hook.js} +18 -8
  47. package/dist/shell-completion.d.ts +1 -1
  48. package/dist/shell-completion.js +67 -39
  49. package/dist/shell-handoff.js +2 -2
  50. package/dist/shell.d.ts +1 -1
  51. package/dist/shell.js +4 -4
  52. package/dist/status.d.ts +5 -5
  53. package/dist/status.js +23 -23
  54. package/dist/sync-files-command.d.ts +10 -0
  55. package/dist/sync-files-command.js +137 -0
  56. package/dist/sync.js +23 -15
  57. package/dist/warp.js +37 -33
  58. package/dist/worktree-info.d.ts +9 -9
  59. package/dist/worktree-info.js +31 -29
  60. package/dist/worktree-management.d.ts +1 -1
  61. package/dist/worktree-management.js +26 -11
  62. package/dist/worktree-prompts.js +5 -5
  63. package/man/man1/gji-back.1 +1 -1
  64. package/man/man1/gji-clean.1 +1 -1
  65. package/man/man1/gji-completion.1 +1 -1
  66. package/man/man1/gji-config.1 +1 -1
  67. package/man/man1/gji-go.1 +1 -1
  68. package/man/man1/gji-history.1 +1 -1
  69. package/man/man1/gji-init.1 +1 -1
  70. package/man/man1/gji-ls.1 +1 -1
  71. package/man/man1/gji-new.1 +1 -1
  72. package/man/man1/gji-open.1 +1 -1
  73. package/man/man1/gji-pr.1 +1 -1
  74. package/man/man1/gji-remove.1 +1 -1
  75. package/man/man1/gji-root.1 +1 -1
  76. package/man/man1/gji-run-hook.1 +9 -0
  77. package/man/man1/gji-status.1 +1 -1
  78. package/man/man1/gji-sync-files.1 +23 -0
  79. package/man/man1/gji-sync.1 +1 -1
  80. package/man/man1/gji-warp.1 +1 -1
  81. package/man/man1/gji.1 +10 -4
  82. package/package.json +8 -2
  83. package/dist/trigger-hook.d.ts +0 -6
  84. package/man/man1/gji-trigger-hook.1 +0 -9
@@ -0,0 +1,23 @@
1
+ .TH GJI\-SYNC\-FILES 1 "June 2026" "gji 0.7.1" "User Commands"
2
+ .SH NAME
3
+ gji\-sync\-files \- manage local files copied into new worktrees
4
+ .SH SYNOPSIS
5
+ .B gji sync\-files [\fIoptions\fR] [options] [command]
6
+ .SH DESCRIPTION
7
+ manage local files copied into new worktrees
8
+ .SH OPTIONS
9
+ .TP
10
+ .B \-\-json
11
+ emit JSON instead of human\-readable output
12
+ .SH SUBCOMMANDS
13
+ .TP
14
+ .B list
15
+ list files synced into new worktrees for this repo
16
+ .TP
17
+ .B add
18
+ add repo\-local sync files to global config
19
+ .TP
20
+ .B remove
21
+ remove repo\-local sync files from global config
22
+ .SH "SEE ALSO"
23
+ .BR gji (1)
@@ -1,4 +1,4 @@
1
- .TH GJI\-SYNC 1 "May 2026" "gji 0.6.2" "User Commands"
1
+ .TH GJI\-SYNC 1 "June 2026" "gji 0.7.1" "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.6.2" "User Commands"
1
+ .TH GJI\-WARP 1 "June 2026" "gji 0.7.1" "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.6.2" "User Commands"
1
+ .TH GJI 1 "June 2026" "gji 0.7.1" "User Commands"
2
2
  .SH NAME
3
3
  gji \- Context switching without the mess.
4
4
  .SH SYNOPSIS
@@ -46,6 +46,9 @@ summarize repository and worktree health
46
46
  .B sync [options]
47
47
  fetch and update one or all worktrees
48
48
  .TP
49
+ .B sync\-files [options] [command]
50
+ manage local files copied into new worktrees
51
+ .TP
49
52
  .B ls [options]
50
53
  list active worktrees
51
54
  .TP
@@ -57,8 +60,10 @@ remove a linked worktree and delete its branch when present
57
60
  .br
58
61
  Alias: \fBrm\fR
59
62
  .TP
60
- .B trigger\-hook [options] <hook>
61
- 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
62
67
  .TP
63
68
  .B warp [options] [branch]
64
69
  jump to any worktree across all known repos
@@ -81,9 +86,10 @@ output the version number
81
86
  .BR gji\-root (1),
82
87
  .BR gji\-status (1),
83
88
  .BR gji\-sync (1),
89
+ .BR gji\-sync\-files (1),
84
90
  .BR gji\-ls (1),
85
91
  .BR gji\-clean (1),
86
92
  .BR gji\-remove (1),
87
- .BR gji\-trigger\-hook (1),
93
+ .BR gji\-run\-hook (1),
88
94
  .BR gji\-warp (1),
89
95
  .BR gji\-config (1)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@solaqua/gji",
3
- "version": "0.6.2",
3
+ "version": "0.7.1",
4
4
  "description": "Git worktree CLI for fast context switching.",
5
5
  "license": "MIT",
6
6
  "author": "sjquant",
@@ -49,7 +49,11 @@
49
49
  "docs:start": "pnpm --dir website start",
50
50
  "prepublishOnly": "pnpm test && pnpm build && pnpm generate-man",
51
51
  "test": "vitest run --passWithNoTests",
52
- "test:watch": "vitest"
52
+ "test:watch": "vitest",
53
+ "lint": "biome lint --write .",
54
+ "format": "biome format --write .",
55
+ "typecheck": "tsc --noEmit",
56
+ "prepare": "prek install || true"
53
57
  },
54
58
  "dependencies": {
55
59
  "@clack/core": "0.5.0",
@@ -58,6 +62,8 @@
58
62
  "update-notifier": "^7.3.1"
59
63
  },
60
64
  "devDependencies": {
65
+ "@biomejs/biome": "^2.4.15",
66
+ "@j178/prek": "^0.3.13",
61
67
  "@types/node": "^24.6.0",
62
68
  "esbuild": "^0.27.0",
63
69
  "typescript": "^5.9.3",
@@ -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.6.2" "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)