dsh-git-desk 0.22.0 → 0.24.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.
- package/README.md +6 -3
- package/client.highlight.js +47 -0
- package/client.js +30 -3
- package/dist/host/lib/ai.js +1 -0
- package/dist/host/lib/git.js +24 -4
- package/dist/host/lib/rpc.js +1 -0
- package/package.json +19 -1
package/README.md
CHANGED
|
@@ -30,13 +30,15 @@ The tab is not a global panel. It does not sit above the Workspace session list.
|
|
|
30
30
|
|
|
31
31
|
- **Repositories.** Every repository in the workspace is listed. The header picker scopes the whole panel, including its remote, branches, and sync. When the workspace has no repository, the panel offers to initialize one.
|
|
32
32
|
- **Changes.** Conflicts, Staged, and Unstaged groups. A file with both kinds appears in both groups with `↕`.
|
|
33
|
+
- **Multi-select.** Cmd-click on macOS, or Ctrl-click elsewhere, toggles files; Shift-click selects a contiguous range in one section. Ctrl/Cmd+Space and Shift+Space do the same from the keyboard. At two or more selected files a bar above the list shows the count and stages, unstages, or discards the whole selection in one request. A plain click still opens one diff, conflicts cannot join a batch, and a successful action clears the batch. In the compact layout a modifier click keeps the list on screen so the bar stays reachable.
|
|
33
34
|
- **Bulk staging.** Each section header has one icon for the whole section. The plus stages every unstaged file, the minus unstages every staged file, both in a single request. The tooltip names the action. Conflicted files are excluded until they are resolved. A rename sends both of its paths, so the section empties completely.
|
|
34
35
|
- **Full-file diff.** Both sides show the entire file, line 1 to the last line. No unchanged runs are collapsed.
|
|
35
36
|
- **Change navigation.** The toolbar shows which change you are reading and how many the file has. The arrows jump to the previous or next change and keep both sides aligned.
|
|
36
37
|
- **Tooltips.** Every icon-only control shows a native tooltip with the same text as its accessible name, so the sync, layout, and staging icons read without guessing.
|
|
37
38
|
- **Two comparisons.** Staged compares `HEAD` to `Staged` with one arrow per block. Unstaged compares `Staged` to `Local` with two arrows per block.
|
|
39
|
+
- **Syntax colors.** Both sides of the split diff and the unified diff color code with the file's CodeMirror grammar and the host token palette, so a file reads the same here as in the Files editor and the native preview. The grammars load on first use. A file over 4,000 lines or 200,000 characters, an unknown suffix, and the conflict and binary views render plain.
|
|
38
40
|
- **Block actions.** Left arrow stages a local block. Right arrow in the unstaged diff reverts the block to the staged version after confirmation. Right arrow in the staged diff unstages the block.
|
|
39
|
-
- **Discard.** The trash control in the diff header restores the selected file to the last commit, or deletes it when it is untracked, after a confirmation. This cannot be undone.
|
|
41
|
+
- **Discard.** The trash control in the diff header restores the selected file to the last commit, or deletes it when it is untracked, after a confirmation. This cannot be undone. A batch discard names every path in one confirmation and sends one request.
|
|
40
42
|
- **Commit.** Message, amend toggle, skip hooks toggle, and commit button. The button is disabled until something is staged and no conflict remains. Skip hooks commits with `--no-verify` when a hook is broken.
|
|
41
43
|
- **AI commit actions.** The sparkle button next to Commit offers two actions. **Write a commit message** reads the staged patch and fills the message field. **Create a branch and commit** generates the message, derives the branch name, and opens the branch dialog for confirmation. Both use the model selected in Settings and run only when you click them.
|
|
42
44
|
- **Branches.** The header menu searches local and remote branches, switches local branches, and creates a branch from `HEAD` without a commit. Choosing a remote branch creates a local tracking branch. The commit box still offers **Branch** for create-and-commit.
|
|
@@ -44,9 +46,9 @@ The tab is not a global panel. It does not sit above the Workspace session list.
|
|
|
44
46
|
- **Sync.** Fetch, pull, and push appear once in the header. Ahead and behind counts appear on push and pull only when they are not zero. Pull fast-forwards only. When local changes would be overwritten, pull stashes them, retries, and restores them with staged files still staged. A conflicting restore keeps the stash, switches to Changes, and shows a notice that stays until it is closed or another sync runs.
|
|
45
47
|
- **History.** Lanes, refs, author, relative time, commit detail, file list, and a read-only full-file diff preview in the right panel matching JetBrains ergonomics.
|
|
46
48
|
- **Commit actions.** Right-click a commit, or use the actions control in the detail header, to undo the last commit, revert it, cherry-pick it onto the current branch, or reset the branch to it. Undo and revert open Changes with the message filled and the changes staged. Undo is refused for a pushed HEAD, revert and cherry-pick are refused for merge commits, and every action is refused while another operation is in progress. The menu states the reason on the disabled row.
|
|
47
|
-
- **Stashes.**
|
|
49
|
+
- **Stashes.** Stash one file from its diff header or multiple files from the Changes selection bar. The Stashes tab also lets you choose staged, unstaged, and untracked files. Stashing includes all staged and unstaged changes in each selected file. Renamed files are refused. Apply, pop, or drop the resulting Git stash from Stashes.
|
|
48
50
|
- **Conflicts.** Marker view with `Accept ours` and `Accept theirs`. Commit is blocked until the conflict group is empty.
|
|
49
|
-
- **Layout.** Changes, History, and Stashes are horizontal segmented tabs above a consistent two-panel body: the navigator on the left and the preview on the right. Below 900 pixels the navigator and diff take turns at full width. The split diff stays the default, with the two arrows in the center gutter. The right pane is a preview at normal width; use the expand control for a full-width split, or switch to the unified diff.
|
|
51
|
+
- **Layout.** Changes, History, and Stashes are horizontal segmented tabs above a consistent two-panel body: the navigator on the left and the preview on the right. Below 900 pixels the navigator and diff take turns at full width. The split diff stays the default, with the two arrows in the center gutter and a draggable divider between the panes. The right pane is a preview at normal width; use the expand control for a full-width split, or switch to the unified diff.
|
|
50
52
|
- **Theme.** Every color uses native `--dsw-alias-*` or `--dsw-specific-*` design system tokens. Dark and light follow the host.
|
|
51
53
|
|
|
52
54
|
## Architecture
|
|
@@ -74,6 +76,7 @@ Details, endpoint table, and verification are in [`docs/implementation.md`](docs
|
|
|
74
76
|
|
|
75
77
|
- The tab uses the current session's workspace path. A per-session `workingDirectory` override or a DSH worktree outside the workspace is not followed.
|
|
76
78
|
- Stash is file-level. Hunk-level stash is not implemented.
|
|
79
|
+
- Multi-select has no arrow-key navigation. Tab reaches each row, Ctrl/Cmd+Space toggles a row, and Shift+Space extends the range.
|
|
77
80
|
- Discard has no undo. It is refused for a conflicted file, while another operation is in progress, and for a rename whose old path holds another file. An untracked nested repository is not deleted.
|
|
78
81
|
- Commit messages and branch names are not generated by a model.
|
|
79
82
|
- Conflict resolution is whole-side plus the marker view. There is no three-pane editor.
|