@xbghc/warden 0.13.0 → 0.13.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.
- package/README.md +11 -9
- package/dist/cli.js +1 -1
- package/dist/web/assets/{index-DxvNLKja.js → index-CspXlI86.js} +46 -46
- package/dist/web/index.html +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -72,19 +72,21 @@ for a global install. The check never delays startup and fails silently. `--no-u
|
|
|
72
72
|
| Worktree, everything since base | `worktree:<path>:base:<ref>` | same, run inside the worktree |
|
|
73
73
|
|
|
74
74
|
Refs accept anything git can resolve (`main`, `v1.2`, `HEAD~3`, a sha). `@` is `HEAD`.
|
|
75
|
-
Worktrees are discovered with `git worktree list` (and made in the *
|
|
75
|
+
Worktrees are discovered with `git worktree list` (and made in the *Worktree* view, see below) and
|
|
76
76
|
share the review state of the main repository.
|
|
77
77
|
One whose directory is gone (git lists it as *prunable*) is not offered, and a remembered target
|
|
78
78
|
inside a removed worktree falls back to the working tree on the next load. The comments and viewed
|
|
79
79
|
flags kept under a worktree's key stay in the state file until a branch is checked out into that
|
|
80
80
|
slot again, which drops them: they were about another branch.
|
|
81
81
|
|
|
82
|
-
The sidebar is the navigation, and the only navigation:
|
|
83
|
-
|
|
84
|
-
none of it. There is no target switcher:
|
|
85
|
-
is picked from the
|
|
86
|
-
open the other two.
|
|
87
|
-
|
|
82
|
+
The sidebar is the navigation, and the only navigation: the picker at its top — *工作区*, *提交历史*,
|
|
83
|
+
*Worktree* — fills the left column with the controls for what the middle is showing, and the top bar
|
|
84
|
+
carries none of it. There is no separate target switcher: *工作区*'s two blocks *are* the working
|
|
85
|
+
tree, a commit is picked from the *提交历史* list, and the *审阅整条分支* and *对比两个 ref* forms below
|
|
86
|
+
its filters open the other two. While a commit, range or branch is under review the picker gains an
|
|
87
|
+
entry naming it — *提交 89d8ba2*, *main..feature*, *分支 vs main* — and reads that while its files are
|
|
88
|
+
in front, so the control at the top of the column says what the files below belong to; *工作区* is
|
|
89
|
+
then the way back.
|
|
88
90
|
|
|
89
91
|
`working`, `staged` and `all` are the three **local views** of one worktree. While any of them is
|
|
90
92
|
selected the sidebar shows two blocks — 未暂存 (`working`) and 已暂存 (`staged`) — instead of a
|
|
@@ -115,7 +117,7 @@ the fix and delete or re-attach it.
|
|
|
115
117
|
|
|
116
118
|
## Worktrees
|
|
117
119
|
|
|
118
|
-
Agents do their best work each in a worktree of its own, and the sidebar's *Worktree*
|
|
120
|
+
Agents do their best work each in a worktree of its own, and the sidebar's *Worktree* view is
|
|
119
121
|
where those are made and taken down without a trip to the terminal. The directories are numbered
|
|
120
122
|
**slots** beside the main worktree — `<repo>-1`, `<repo>-2`, … (工位 in the UI) — rather than one
|
|
121
123
|
directory per branch: a directory is where the dependencies get installed, and a fresh one for every
|
|
@@ -170,7 +172,7 @@ directory behind, `node_modules` and all, and the next branch is checked out int
|
|
|
170
172
|
| `n` / `p` | Next / previous hunk |
|
|
171
173
|
| `s` | Stage (Unstaged view) or unstage (Staged view) the picked lines |
|
|
172
174
|
| `Ctrl+Enter` | Save the comment being edited |
|
|
173
|
-
| `Esc` | Drop the picked lines / cancel editing / cancel re-attach mode / shut the rail / back to
|
|
175
|
+
| `Esc` | Drop the picked lines / cancel editing / cancel re-attach mode / shut the rail / back to the files under review |
|
|
174
176
|
|
|
175
177
|
## Staging
|
|
176
178
|
|
package/dist/cli.js
CHANGED
|
@@ -5665,7 +5665,7 @@ async function startServer(opts) {
|
|
|
5665
5665
|
}
|
|
5666
5666
|
|
|
5667
5667
|
// bin/cli.ts
|
|
5668
|
-
var VERSION = true ? "0.13.
|
|
5668
|
+
var VERSION = true ? "0.13.1" : "dev";
|
|
5669
5669
|
function parseArgs(argv) {
|
|
5670
5670
|
const args = { repoPath: process.cwd(), open: true, updateCheck: true, help: false, version: false };
|
|
5671
5671
|
for (let i = 0; i < argv.length; i++) {
|