@akiojin/gwt 6.24.0 → 6.26.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 (3) hide show
  1. package/README.ja.md +67 -1
  2. package/README.md +67 -1
  3. package/package.json +1 -1
package/README.ja.md CHANGED
@@ -145,7 +145,7 @@ gwt clean
145
145
  |-----|------|
146
146
  | `Enter` | 既存エージェントペインにフォーカス / 非表示ペインを表示 / ウィザードを開く |
147
147
  | `d` | エージェントペインを削除(確認あり) |
148
- | `v` | エージェントペインの表示/非表示を切り替え |
148
+ | `v` | GitViewを開く(選択中ブランチのgit状態詳細) |
149
149
  | `Space` | ブランチの選択/選択解除 |
150
150
  | `Up/Down` | ブランチ間を移動 |
151
151
  | `PageUp/PageDown` | ページ移動 |
@@ -167,6 +167,20 @@ gwt clean
167
167
  | `Esc` | フィルターモードを終了 |
168
168
  | 入力 | ブランチ名でフィルター |
169
169
 
170
+ ### GitView画面
171
+
172
+ GitView画面は、選択中ブランチの詳細なgit状態(ファイル一覧、直近コミット)を表示します。
173
+
174
+ | キー | 動作 |
175
+ |-----|------|
176
+ | `Up/Down` | ファイル・コミット間を移動 |
177
+ | `Space` | ファイルのdiffまたはコミット詳細を展開/折りたたみ |
178
+ | `Enter` | PRリンクをブラウザで開く(ヘッダーにフォーカス時) |
179
+ | `v` / `Esc` | ブランチリストに戻る |
180
+
181
+ マウス:
182
+ - ヘッダーのPRリンクをクリックするとブラウザで開きます。
183
+
170
184
  ## ステータスアイコンの凡例
171
185
 
172
186
  | アイコン | 色 | 意味 |
@@ -239,6 +253,58 @@ gwt は PATH 上のエージェントを検出し、ランチャーに表示し
239
253
  - `models` は任意です。定義するとモデル選択ステップが表示されます。
240
254
  - `versionCommand` は任意です。定義するとバージョン検出に使用されます。
241
255
 
256
+ ## Bareリポジトリワークフロー
257
+
258
+ gwtは効率的なワークツリー管理のためにbareリポジトリワークフローをサポートしています。このアプローチではbareリポジトリ(`.git`データ)をワークツリーから分離し、より整理されたプロジェクト構成を提供します。
259
+
260
+ ### ディレクトリ構造
261
+
262
+ ```text
263
+ /project/
264
+ ├── repo.git/ # Bareリポジトリ
265
+ ├── main/ # ワークツリー(mainブランチ)
266
+ ├── feature-x/ # ワークツリー(feature/xブランチ)
267
+ └── .gwt/ # gwt設定
268
+ └── project.json
269
+ ```
270
+
271
+ ### Bareリポジトリのセットアップ
272
+
273
+ ```bash
274
+ # bareリポジトリとしてクローン
275
+ git clone --bare https://github.com/user/repo.git repo.git
276
+
277
+ # bareリポジトリからワークツリーを作成
278
+ cd repo.git
279
+ git worktree add ../main main
280
+ git worktree add ../feature-x feature/x
281
+ ```
282
+
283
+ ### Bareリポジトリでのgwt使用
284
+
285
+ bareリポジトリまたはそのワークツリー内でgwtを実行した場合:
286
+
287
+ | 起動場所 | ヘッダー表示 |
288
+ |----------|-------------|
289
+ | 通常リポジトリ | `Working Directory: /path [branch]` |
290
+ | Bareリポジトリ | `Working Directory: /path/repo.git [bare]` |
291
+ | ワークツリー(通常) | `Working Directory: /path [branch]` |
292
+ | ワークツリー(bare方式) | `Working Directory: /path [branch] (repo.git)` |
293
+
294
+ ### `.worktrees/`方式からのマイグレーション
295
+
296
+ 既存の`.worktrees/`ディレクトリ方式を使用しているリポジトリがある場合、gwtはこれを検出してbareリポジトリ方式へのマイグレーションを提案します:
297
+
298
+ 1. **バックアップ**: `.gwt-migration-backup/`にバックアップを作成
299
+ 2. **bareリポジトリ作成**: `{repo-name}.git`を作成
300
+ 3. **ワークツリー移行**: 既存ワークツリーを新構造に移動
301
+ 4. **クリーンアップ**: 古い`.worktrees/`ディレクトリを削除
302
+ 5. **設定作成**: `.gwt/project.json`を作成
303
+
304
+ ### サブモジュールサポート
305
+
306
+ ワークツリー作成時、gwtはサブモジュールが存在する場合は自動的に初期化します。これにより、ワークツリー作成直後からサブモジュールを使用できます。
307
+
242
308
  ## 高度なワークフロー
243
309
 
244
310
  ### ブランチ戦略
package/README.md CHANGED
@@ -145,7 +145,7 @@ The tool presents an interactive interface with the following options:
145
145
  |-----|--------|
146
146
  | `Enter` | Focus existing agent pane / Show hidden pane / Open wizard |
147
147
  | `d` | Delete agent pane (with confirmation) |
148
- | `v` | Toggle agent pane visibility (show/hide) |
148
+ | `v` | Open GitView (git status details for selected branch) |
149
149
  | `Space` | Select/Deselect branch |
150
150
  | `Up/Down` | Navigate branches |
151
151
  | `PageUp/PageDown` | Page navigation |
@@ -167,6 +167,20 @@ Mouse:
167
167
  | `Esc` | Exit filter mode |
168
168
  | Type | Filter branches by name |
169
169
 
170
+ ### GitView Screen
171
+
172
+ The GitView screen shows detailed git status for a branch, including files and recent commits.
173
+
174
+ | Key | Action |
175
+ |-----|--------|
176
+ | `Up/Down` | Navigate files and commits |
177
+ | `Space` | Expand/collapse file diff or commit details |
178
+ | `Enter` | Open PR link in browser (when focused on header) |
179
+ | `v` / `Esc` | Return to branch list |
180
+
181
+ Mouse:
182
+ - Click on the PR link in the header to open it in your browser.
183
+
170
184
  ## Status Icons Legend
171
185
 
172
186
  | Icon | Color | Meaning |
@@ -239,6 +253,58 @@ Notes:
239
253
  - `models` is optional. If defined, model selection step will be shown for this agent.
240
254
  - `versionCommand` is optional. If defined, version detection will use this command instead of skipping version selection.
241
255
 
256
+ ## Bare Repository Workflow
257
+
258
+ gwt supports a bare repository workflow for efficient worktree management. This approach keeps the bare repository (`.git` data) separate from worktrees, providing cleaner project organization.
259
+
260
+ ### Directory Structure
261
+
262
+ ```text
263
+ /project/
264
+ ├── repo.git/ # Bare repository
265
+ ├── main/ # Worktree (main branch)
266
+ ├── feature-x/ # Worktree (feature/x branch)
267
+ └── .gwt/ # gwt configuration
268
+ └── project.json
269
+ ```
270
+
271
+ ### Setting Up a Bare Repository
272
+
273
+ ```bash
274
+ # Clone as bare repository
275
+ git clone --bare https://github.com/user/repo.git repo.git
276
+
277
+ # Create worktrees from bare repository
278
+ cd repo.git
279
+ git worktree add ../main main
280
+ git worktree add ../feature-x feature/x
281
+ ```
282
+
283
+ ### Using gwt with Bare Repositories
284
+
285
+ When you run gwt in a bare repository or its worktrees:
286
+
287
+ | Location | Header Display |
288
+ |----------|----------------|
289
+ | Normal repository | `Working Directory: /path [branch]` |
290
+ | Bare repository | `Working Directory: /path/repo.git [bare]` |
291
+ | Worktree (normal) | `Working Directory: /path [branch]` |
292
+ | Worktree (bare-based) | `Working Directory: /path [branch] (repo.git)` |
293
+
294
+ ### Migration from `.worktrees/` Method
295
+
296
+ If you have an existing repository using the `.worktrees/` directory method, gwt will detect this and offer migration to the bare repository method:
297
+
298
+ 1. **Backup**: Creates backup in `.gwt-migration-backup/`
299
+ 2. **Create bare repo**: Creates `{repo-name}.git`
300
+ 3. **Migrate worktrees**: Moves existing worktrees to new structure
301
+ 4. **Cleanup**: Removes old `.worktrees/` directory
302
+ 5. **Configure**: Creates `.gwt/project.json`
303
+
304
+ ### Submodule Support
305
+
306
+ When creating worktrees, gwt automatically initializes submodules if present. This ensures submodules are ready to use immediately after worktree creation.
307
+
242
308
  ## Advanced Workflows
243
309
 
244
310
  ### Branch Strategy
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@akiojin/gwt",
3
- "version": "6.24.0",
3
+ "version": "6.26.0",
4
4
  "description": "Interactive Git worktree manager with Coding Agent selection (Claude Code / Codex CLI / Gemini CLI)",
5
5
  "bin": {
6
6
  "gwt": "bin/gwt.js"