revdeck 0.3.0 → 0.3.2
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 +19 -0
- package/README.md +11 -3
- package/README.ru.md +11 -3
- package/dist/cli.js +183 -99
- package/dist/cli.js.map +3 -3
- package/dist/daemon.js +131 -72
- package/dist/daemon.js.map +3 -3
- package/dist/mcp.js +1 -1
- package/dist/mcp.js.map +1 -1
- package/dist/ui/assets/{index-CXNMvRvo.js → index-DinUxV1o.js} +2 -2
- package/dist/ui/index.html +1 -1
- package/docs/configuration.md +2 -0
- package/docs/integrations.md +3 -2
- package/docs/ru/configuration.md +2 -0
- package/docs/ru/integrations.md +2 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -6,6 +6,25 @@ All notable changes to this project are documented here. The format is based on
|
|
|
6
6
|
|
|
7
7
|
## [Unreleased]
|
|
8
8
|
|
|
9
|
+
## [0.3.2] - 2026-11-12
|
|
10
|
+
|
|
11
|
+
### Fixed
|
|
12
|
+
|
|
13
|
+
- The daemon resolves `glab`/`gh` outside its own `PATH` (mise/asdf shims, `~/.local/bin`, Homebrew) and
|
|
14
|
+
accepts `REVDECK_GLAB`/`REVDECK_GH` overrides. `daemon install` captures the current PATH and resolved
|
|
15
|
+
binary paths in the systemd unit/launchd plist. A missing CLI now returns an install/PATH hint instead
|
|
16
|
+
of only `spawn glab ENOENT`; `doctor` prints the path resolved by the CLI and by the running daemon,
|
|
17
|
+
so a service with an outdated PATH is visible.
|
|
18
|
+
|
|
19
|
+
## [0.3.1] - 2026-11-12
|
|
20
|
+
|
|
21
|
+
### Fixed
|
|
22
|
+
|
|
23
|
+
- GitLab upload URLs: relative `/uploads/...` links are no longer rewritten to `https://host/uploads/...`
|
|
24
|
+
(GitLab expands them itself), and absolute host-only links are repaired to
|
|
25
|
+
`https://host/-/project/<id>/uploads/...` using the review's project id. The UI uses the same
|
|
26
|
+
project-aware base for images and videos.
|
|
27
|
+
|
|
9
28
|
## [0.3.0] - 2026-11-12
|
|
10
29
|
|
|
11
30
|
### Added
|
package/README.md
CHANGED
|
@@ -40,7 +40,9 @@ agent (MCP/CLI) ──unix socket──▶ revdeck daemon ──glab/gh──▶
|
|
|
40
40
|
## Install
|
|
41
41
|
|
|
42
42
|
Requirements: Node.js ≥ 22.13 (Node 24 LTS recommended — `node:sqlite` is experimental in 22.x), `git`, and an authenticated platform CLI
|
|
43
|
-
(`glab auth login` or `gh auth login`).
|
|
43
|
+
(`glab auth login` or `gh auth login`). The CLI must be in the daemon's `PATH`; set `REVDECK_GLAB` or
|
|
44
|
+
`REVDECK_GH` to an absolute path if it lives in a mise/asdf/homebrew shim or a custom location. revdeck
|
|
45
|
+
never reads or stores their tokens.
|
|
44
46
|
|
|
45
47
|
```bash
|
|
46
48
|
# one-off
|
|
@@ -68,6 +70,11 @@ untouched. It only shows the plan by default; add `--yes` to apply (`--keep-conf
|
|
|
68
70
|
`.revdeck.yml`). Auto-start on login: `revdeck daemon install` (systemd user unit on Linux, launchd
|
|
69
71
|
plist on macOS). Use a global install for this — an `npx` cache path can be evicted.
|
|
70
72
|
|
|
73
|
+
If `glab` works in the shell but the UI refresh fails with `spawn glab ENOENT`, the daemon has a
|
|
74
|
+
different `PATH` (systemd/launchd often do). Run `revdeck doctor`; it shows the path resolved by the
|
|
75
|
+
running daemon. Set `REVDECK_GLAB=/absolute/path/to/glab` (or `REVDECK_GH`), or reinstall the service
|
|
76
|
+
with `revdeck daemon install` so it captures the current `PATH`, then restart the daemon.
|
|
77
|
+
|
|
71
78
|
## Languages
|
|
72
79
|
|
|
73
80
|
The product is bilingual (Russian and English), and the two languages are independent:
|
|
@@ -129,8 +136,9 @@ working browser Back/Forward), and keeps a per-review "viewed" state and file fi
|
|
|
129
136
|
The UI has an **Attach** button next to reply, finding and line-comment editors; the CLI equivalent is
|
|
130
137
|
`revdeck attach <N> --file shot.png`. The file is uploaded by the daemon on the host, and the editor
|
|
131
138
|
receives a markdown link with an absolute platform URL, so GitLab renders images and videos in the
|
|
132
|
-
original MR. Relative GitLab `/uploads/...` links
|
|
133
|
-
`https://<host>/uploads/...`
|
|
139
|
+
original MR. Relative GitLab `/uploads/...` links are left for GitLab to expand in the project
|
|
140
|
+
context; absolute host-only links are repaired to `https://<host>/-/project/<id>/uploads/...` when the
|
|
141
|
+
GitLab project id is known.
|
|
134
142
|
|
|
135
143
|
GitLab is supported through project uploads (requires a `glab` with `--form` support). GitHub has no
|
|
136
144
|
public attachment API, so the button is disabled there and a link must be pasted manually. Only raster
|
package/README.ru.md
CHANGED
|
@@ -37,7 +37,9 @@ npx revdeck@latest init
|
|
|
37
37
|
```
|
|
38
38
|
|
|
39
39
|
Требования: Node.js ≥ 22.13 (рекомендуется Node 24 LTS: в 22.x `node:sqlite` экспериментален), `git`, для GitLab — `glab` с выполненным `glab auth login`, для
|
|
40
|
-
GitHub — `gh` с `gh auth login`.
|
|
40
|
+
GitHub — `gh` с `gh auth login`. CLI должен быть в `PATH` демона; если это mise/asdf/homebrew shim или
|
|
41
|
+
нестандартное место, задайте `REVDECK_GLAB` или `REVDECK_GH` с абсолютным путём. Токены revdeck не
|
|
42
|
+
читает и не хранит.
|
|
41
43
|
|
|
42
44
|
В проекте:
|
|
43
45
|
|
|
@@ -57,6 +59,11 @@ revdeck ui # ссылка на локальный интерфейс
|
|
|
57
59
|
(Linux) или launchd plist (macOS) и печатает команду включения. Для автозапуска ставьте пакет глобально:
|
|
58
60
|
путь в кеше `npx` может быть очищен.
|
|
59
61
|
|
|
62
|
+
Если `glab` работает в шелле, а обновление в UI падает с `spawn glab ENOENT`, у демона другой `PATH`
|
|
63
|
+
(так часто бывает у systemd/launchd). Запустите `revdeck doctor`: он покажет путь, который видит
|
|
64
|
+
работающий демон. Задайте `REVDECK_GLAB=/абсолютный/путь/glab` (или `REVDECK_GH`) либо переустановите
|
|
65
|
+
сервис через `revdeck daemon install`, чтобы он сохранил текущий `PATH`, и перезапустите демон.
|
|
66
|
+
|
|
60
67
|
## Языки
|
|
61
68
|
|
|
62
69
|
Продукт двуязычный (русский и английский), причём языки независимы:
|
|
@@ -114,8 +121,9 @@ UI показывает описание MR/PR, поддерживает deep li
|
|
|
114
121
|
В UI рядом с редакторами ответа, замечания и комментария к строке есть кнопка **Прикрепить**; в CLI —
|
|
115
122
|
`revdeck attach <N> --file shot.png`. Файл загружает демон на хосте, а в редактор попадает
|
|
116
123
|
markdown-ссылка с абсолютным URL платформы, поэтому GitLab показывает картинки и видео в исходном MR.
|
|
117
|
-
Относительные ссылки GitLab `/uploads/...`
|
|
118
|
-
|
|
124
|
+
Относительные ссылки GitLab `/uploads/...` остаются как есть — GitLab сам разворачивает их в контексте
|
|
125
|
+
проекта; абсолютные ссылки без project id исправляются на
|
|
126
|
+
`https://<host>/-/project/<id>/uploads/...`, если id проекта известен.
|
|
119
127
|
|
|
120
128
|
GitLab поддержан через project uploads (нужен `glab` с поддержкой `--form`). У GitHub нет публичного
|
|
121
129
|
API загрузки вложений, поэтому кнопка там отключена, а ссылку нужно вставить вручную. Принимаются
|