diffstalkerd 0.13.3 → 0.13.5
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/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,52 @@ All notable changes to this project will be documented in this file.
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
|
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
7
|
|
|
8
|
+
## [0.13.5] - 2026-09-29
|
|
9
|
+
|
|
10
|
+
### Added
|
|
11
|
+
|
|
12
|
+
- **History shows the commit's files as a tree.** History was a commit list
|
|
13
|
+
beside one long diff, with no way to see which files a commit touched or to
|
|
14
|
+
jump to one. It now has the same file tree and diff stack as Compare: each
|
|
15
|
+
file with its status and `+`/`-` counts, folders that collapse, and a click
|
|
16
|
+
that jumps to the file's diff. On a narrow or vertical screen the commit list
|
|
17
|
+
and the file tree sit side by side above the diffs, so the diffs keep the
|
|
18
|
+
full width. The daemon has a new `GET /repos/:id/commits/:hash/files` for it.
|
|
19
|
+
|
|
20
|
+
### Fixed
|
|
21
|
+
|
|
22
|
+
- **Many web tabs no longer hang the UI.** Each tab held two live event
|
|
23
|
+
streams: one for the daemon and one for the open repo. Browsers allow only
|
|
24
|
+
six open connections per host, so three tabs used them all, and every
|
|
25
|
+
request after that waited forever. The page looked frozen while the daemon
|
|
26
|
+
sat idle. Two changes fix it. A tab now holds one stream:
|
|
27
|
+
`GET /events?repo=<id>` carries the daemon events and the repo events
|
|
28
|
+
together. And a tab that stays hidden for ten seconds closes its stream;
|
|
29
|
+
when you come back it reopens, gets fresh state and fills the journal gap.
|
|
30
|
+
So only the tabs you can see hold a connection, however many are open.
|
|
31
|
+
`GET /repos/:id/events` stays for the terminal UI, which has no such limit.
|
|
32
|
+
- **A deep link survives a slow or failed first load.** Opening a link like
|
|
33
|
+
`/compare/<repo>?at=<file>` wrote `/` into the address bar before the repo
|
|
34
|
+
had opened. Normally that lasted a few milliseconds; when requests stalled it
|
|
35
|
+
lasted minutes, and a reload then lost the link. If the open failed and the
|
|
36
|
+
tab reconnected later, the repo came back in the background but the page
|
|
37
|
+
stayed on "Open a repository". Now the link stays put until the repo opens,
|
|
38
|
+
a reconnect shows the repo it reopened, and the `?at=` file is still
|
|
39
|
+
selected afterwards.
|
|
40
|
+
- **Opening a commit from a link no longer sticks on "Loading diff…".** The
|
|
41
|
+
history reload swapped in a new copy of the same commit while its diff was
|
|
42
|
+
loading, and the diff was thrown away as stale. It is now matched by hash.
|
|
43
|
+
- **Compare starts with the top file of the tree selected**, not the first by
|
|
44
|
+
flat path sort, which could be the last row in the tree.
|
|
45
|
+
|
|
46
|
+
## [0.13.4] - 2026-09-23
|
|
47
|
+
|
|
48
|
+
### Fixed
|
|
49
|
+
|
|
50
|
+
- **Text in the web UI can be selected and copied.** Commit messages,
|
|
51
|
+
hashes, authors, dates, file paths and errors now support normal browser
|
|
52
|
+
text selection. Control labels and diff line numbers stay out of selections.
|
|
53
|
+
|
|
8
54
|
## [0.13.3] - 2026-09-07
|
|
9
55
|
|
|
10
56
|
### Changed
|
package/README.md
CHANGED
|
@@ -205,6 +205,7 @@ values are rejected with a 400 so they can never be parsed as git flags.
|
|
|
205
205
|
| GET | `/repos/:id/history?count=` | Commit history (`CommitInfo[]`, default 100, ISO dates) |
|
|
206
206
|
| GET | `/repos/:id/commits/:hash` | One commit by hash or short hash (404 on unknown) — what a link to a commit outside a client's loaded log resolves through |
|
|
207
207
|
| GET | `/repos/:id/commits/:hash/diff?path=&whole=` | Diff introduced by one commit (404 on unknown hash; merge and `--allow-empty` commits are 200 with an empty diff, matching the CLI). `path` narrows to one file and `whole=true` widens its context to the whole file (400 without `path`). The pathspec carries BOTH sides of a rename, because scoping to the new path alone makes git report a rename as a plain add |
|
|
208
|
+
| GET | `/repos/:id/commits/:hash/files` | The same commit's changes split per file, each with git's status and `+`/`-` counts (same row shape as `/compare`'s `files`). 404 on unknown hash; a merge commit is 200 with no rows |
|
|
208
209
|
| GET | `/repos/:id/head-message` | HEAD commit message for amend prefill: `{message}` (`""` when the repo has no commits) |
|
|
209
210
|
| GET | `/repos/:id/branches` | Local branches (`name`, `current`, `tracking`) |
|
|
210
211
|
| GET | `/repos/:id/base-branches` | Candidate compare bases (remote branches in recent history) |
|
|
@@ -219,7 +220,7 @@ values are rejected with a 400 so they can never be parsed as git flags.
|
|
|
219
220
|
| GET | `/repos/:id/files` | All tracked + untracked (not ignored) paths: the fuzzy-finder source |
|
|
220
221
|
| GET | `/repos/:id/journal?since=` | Append-only edit journal: `{epoch, prunedBefore, entries}`; `since=<seq>` returns only entries with a higher seq (all when omitted) |
|
|
221
222
|
| GET | `/repos/:id/events` | SSE: `snapshot` on connect, then `state-change` events from the file watcher and `journal-append {entries}` per journal observation |
|
|
222
|
-
| GET | `/events
|
|
223
|
+
| GET | `/events?repo=` | Daemon-scope SSE: `snapshot` (open repos) on connect, then `repo-opened` / `repo-closed` / `follow-change` / `settings-change` / `discovery-change`. With `repo=<id>` the same stream also carries that repo's events — `repo-snapshot` right after the daemon `snapshot`, then `state-change` / `journal-append` as on `/repos/:id/events`. An id that is not open is still a 200: one `repo-missing {id}` follows the snapshot; an empty `repo=` is the same as none. See [One stream per tab](#one-stream-per-tab) |
|
|
223
224
|
| GET | `/follow` | Follow state: `{targetFile, enabled, followedRepoId, followedPath}` |
|
|
224
225
|
| GET | `/settings` | Daemon settings: `{watchRoots, persisted}`. `persisted: false` means this daemon holds them in memory only (no settings file) |
|
|
225
226
|
| GET | `/discovered` | Repos found under the watch directories: `{roots: [{path, repos: [{path, name, branch, lastActivity}], error, capped}]}`. See [Watch directories](#watch-directories) |
|
|
@@ -279,6 +280,35 @@ included: the response is byte-identical to the plain one.
|
|
|
279
280
|
Repo ids are stable hashes of the worktree root, so a cached id still
|
|
280
281
|
addresses the same repo after a daemon restart.
|
|
281
282
|
|
|
283
|
+
### One stream per tab
|
|
284
|
+
|
|
285
|
+
There are two event streams: `GET /events` for the daemon (open repos,
|
|
286
|
+
follow, settings, discovery) and `GET /repos/:id/events` for one repo
|
|
287
|
+
(status, journal). The CLI opens both. A browser must not: Chrome allows
|
|
288
|
+
six HTTP/1.1 connections per host, so two streams per tab meant three tabs
|
|
289
|
+
used them all up and every later request queued forever — the page looked
|
|
290
|
+
hung. `GET /events?repo=<id>` folds both into ONE stream:
|
|
291
|
+
|
|
292
|
+
- On connect: the daemon `snapshot` first, then the repo's `repo-snapshot`
|
|
293
|
+
(renamed only because `snapshot` is already taken on this stream). After
|
|
294
|
+
that, `state-change` and `journal-append` exactly as on
|
|
295
|
+
`/repos/:id/events`, with the same payloads and the same dedup.
|
|
296
|
+
- An id that is not open (the daemon restarted and the browser's
|
|
297
|
+
EventSource reconnected before the page re-POSTed `/repos`) is still a
|
|
298
|
+
200 with the normal daemon stream, plus one `repo-missing {id}` after the
|
|
299
|
+
snapshot. It is never a 404: a non-200 makes EventSource give up for
|
|
300
|
+
good, which would also cut off the daemon events.
|
|
301
|
+
- If the repo is closed while the stream is live (its last ref released),
|
|
302
|
+
the stream stays up: it gets `repo-missing {id}` (before the daemon's
|
|
303
|
+
`repo-closed`) and stops carrying repo events. A `/repos/:id/events`
|
|
304
|
+
stream is ended in that case, as before.
|
|
305
|
+
|
|
306
|
+
Even one stream per tab fills the pool once six tabs are open, so the
|
|
307
|
+
web UI also closes its stream in a tab that has been hidden for ten
|
|
308
|
+
seconds and reopens it when the tab is shown again (the repo ref is
|
|
309
|
+
kept; the daemon resends both snapshots on the reopen). A browser
|
|
310
|
+
client of your own should do the same.
|
|
311
|
+
|
|
282
312
|
### Journal
|
|
283
313
|
|
|
284
314
|
`GET /repos/:id/journal` serves the repo's append-only edit journal: an
|
|
@@ -297,8 +327,9 @@ as `/diff` responses.
|
|
|
297
327
|
refetch.
|
|
298
328
|
|
|
299
329
|
New entries stream as `journal-append {entries}` on the per-repo
|
|
300
|
-
`GET /repos/:id/events` channel
|
|
301
|
-
several hunks), batched so
|
|
330
|
+
`GET /repos/:id/events` channel (and on a combined `GET /events?repo=`
|
|
331
|
+
stream), one event per observation (possibly several hunks), batched so
|
|
332
|
+
clients apply them atomically.
|
|
302
333
|
|
|
303
334
|
The journal store lives above the repo's manager lifecycle: closing a
|
|
304
335
|
repo's last client (a browser F5) disposes the manager but keeps the
|