revdeck 0.7.0 → 0.8.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/CHANGELOG.md +19 -0
- package/CONTRIBUTING.md +5 -1
- package/README.md +10 -1
- package/README.ru.md +10 -1
- package/SECURITY.md +1 -1
- package/dist/cli.js +69 -17
- package/dist/cli.js.map +3 -3
- package/dist/daemon.js +9 -1
- package/dist/daemon.js.map +2 -2
- package/dist/mcp.js +23 -3
- package/dist/mcp.js.map +2 -2
- package/docs/capabilities.md +2 -1
- package/docs/configuration.md +1 -0
- package/docs/integrations.md +13 -2
- package/docs/ru/capabilities.md +2 -1
- package/docs/ru/configuration.md +1 -0
- package/docs/ru/integrations.md +13 -2
- package/package.json +5 -2
package/docs/capabilities.md
CHANGED
|
@@ -201,7 +201,8 @@ the agent process and containers would still need a host process. File exchange
|
|
|
201
201
|
|
|
202
202
|
Consequences: daemon lifecycle, socket permissions, a bridge for containers, version-matched clients,
|
|
203
203
|
background sync and SSE. One daemon serves several repositories; `root` is passed on open and config is
|
|
204
|
-
read from that root.
|
|
204
|
+
read from that root. A devcontainer client passes the host worktree path (`REVDECK_HOST_ROOT`) instead
|
|
205
|
+
of the container mount path, so the host daemon reads the project config and rules.
|
|
205
206
|
|
|
206
207
|
### Project scopes
|
|
207
208
|
|
package/docs/configuration.md
CHANGED
|
@@ -353,6 +353,7 @@ reviews disable the runner. The agent can only show the plan; the bridge returns
|
|
|
353
353
|
| `REVDECK_RUNTIME_DIR` | socket directory (default `$XDG_RUNTIME_DIR/revdeck`) |
|
|
354
354
|
| `REVDECK_URL` + `REVDECK_TOKEN` | connect to the daemon over HTTP (container/port forwarding); the token is agent-scoped, not the UI token |
|
|
355
355
|
| `REVDECK_DEV_CONTAINER=1` | do not start a local daemon; fail with a host-daemon hint instead |
|
|
356
|
+
| `REVDECK_HOST_ROOT` | host path of the worktree mounted into a devcontainer; the container client maps its root to it before RPC |
|
|
356
357
|
| `REVDECK_UI_HOST` | host used by `revdeck ui` from a container (for example `host.docker.internal`) |
|
|
357
358
|
| `REVDECK_ROOT` | project root for the MCP server |
|
|
358
359
|
| `REVDECK_FEATURE` | feature id for a feature-scoped MCP session; the current project must be a member |
|
package/docs/integrations.md
CHANGED
|
@@ -148,6 +148,15 @@ absolute home directory, so the shared repository file is valid for every develo
|
|
|
148
148
|
environment variables, `runArgs`, comments and foreign keys are preserved; only the two revdeck mounts
|
|
149
149
|
and the `REVDECK_*` keys are managed.
|
|
150
150
|
|
|
151
|
+
`REVDECK_HOST_ROOT` closes the path gap between the two sides: the daemon reads `.revdeck.yml` and rule
|
|
152
|
+
documents on the host, while the container sees the same worktree under `/workspaces/...`. `--write`
|
|
153
|
+
derives it from the repository root as `${localEnv:HOME}/relative/path`; a repository outside `$HOME`
|
|
154
|
+
needs the variable set manually. The CLI and MCP server in the container map their worktree path (and
|
|
155
|
+
paths under it) to the host path before `reviews.open`, `reviews.remoteList` and `projects.register`.
|
|
156
|
+
Without the mapping the review still opens (platform calls run on the host), but the UI shows
|
|
157
|
+
auto-discovery and a "directory is not visible" warning instead of the project config. Reviews opened
|
|
158
|
+
before the mapping keep the old container root; reopen them.
|
|
159
|
+
|
|
151
160
|
The daemon creates the bridge socket on startup. On the host run `revdeck daemon restart`, then rebuild
|
|
152
161
|
the container. Inside the container `revdeck` never starts its own daemon: if the socket is unreachable
|
|
153
162
|
it fails with a `DEVCONTAINER` error and a hint. `revdeck doctor` does not look for `glab`/`gh` in the
|
|
@@ -164,8 +173,10 @@ expose the UI token to the container; `--host 0.0.0.0` is for a browser on anoth
|
|
|
164
173
|
not for giving the agent more rights.
|
|
165
174
|
|
|
166
175
|
`revdeck devcontainer --write` adds the `REVDECK_*` variables to the `revdeck` MCP server in `.mcp.json`
|
|
167
|
-
and `.cursor/mcp.json` inside the repository.
|
|
168
|
-
|
|
176
|
+
and `.cursor/mcp.json` inside the repository. `REVDECK_HOST_ROOT` is the exception: `${localEnv:...}` is
|
|
177
|
+
expanded only in `devcontainer.json`, so it is set in `containerEnv`/`remoteEnv` and inherited by the MCP
|
|
178
|
+
server. A user-level MCP configuration outside the repository needs the same variables manually (with
|
|
179
|
+
an absolute `REVDECK_HOST_ROOT`), otherwise it may start a second daemon in the container.
|
|
169
180
|
|
|
170
181
|
The container user must be able to connect to the host bridge socket (the bridge socket is `0666`
|
|
171
182
|
inside the mounted directory `0755`; its methods are limited by the `read`/`draft` capability). The UI
|
package/docs/ru/capabilities.md
CHANGED
|
@@ -203,7 +203,8 @@ MCP — тонкие клиенты. Альтернатива — MCP-проце
|
|
|
203
203
|
|
|
204
204
|
Последствия: жизненный цикл демона, права сокета, мост для контейнеров, совпадение версий клиентов,
|
|
205
205
|
фоновый sync и SSE. Один демон обслуживает несколько репозиториев; `root` передаётся при открытии, а
|
|
206
|
-
конфиг читается из этого root'а.
|
|
206
|
+
конфиг читается из этого root'а. Клиент в devcontainer передаёт путь рабочей копии на хосте
|
|
207
|
+
(`REVDECK_HOST_ROOT`), а не путь монтирования в контейнере, поэтому демон хоста видит конфиг и правила.
|
|
207
208
|
|
|
208
209
|
### Скоупы проектов
|
|
209
210
|
|
package/docs/ru/configuration.md
CHANGED
|
@@ -349,6 +349,7 @@ argv) или выполняет `revdeck checks <N> --run --yes` на хосте
|
|
|
349
349
|
| `REVDECK_RUNTIME_DIR` | каталог сокета (по умолчанию `$XDG_RUNTIME_DIR/revdeck`) |
|
|
350
350
|
| `REVDECK_URL` + `REVDECK_TOKEN` | подключение к демону по HTTP (контейнер/проброс порта); токен агентский, не UI |
|
|
351
351
|
| `REVDECK_DEV_CONTAINER=1` | не запускать локальный демон, а подсказать про демон хоста |
|
|
352
|
+
| `REVDECK_HOST_ROOT` | путь рабочей копии на хосте для devcontainer: клиент в контейнере заменяет на него свой root перед RPC |
|
|
352
353
|
| `REVDECK_UI_HOST` | хост для `revdeck ui` из контейнера (например, `host.docker.internal`) |
|
|
353
354
|
| `REVDECK_ROOT` | корень проекта для MCP-сервера |
|
|
354
355
|
| `REVDECK_FEATURE` | id фичи для MCP-сессии; текущий проект должен быть участником |
|
package/docs/ru/integrations.md
CHANGED
|
@@ -150,6 +150,15 @@ revdeck devcontainer --write # добавить их в .devcontainer/devcontai
|
|
|
150
150
|
репозитория подходит всем разработчикам. Чужие mounts, переменные окружения, `runArgs`, комментарии
|
|
151
151
|
и ключи сохраняются; revdeck управляет только двумя своими mounts и ключами `REVDECK_*`.
|
|
152
152
|
|
|
153
|
+
`REVDECK_HOST_ROOT` закрывает разрыв путей между сторонами: демон читает `.revdeck.yml` и документы
|
|
154
|
+
правил на хосте, а контейнер видит ту же рабочую копию в `/workspaces/...`. `--write` выводит его из
|
|
155
|
+
корня репозитория как `${localEnv:HOME}/относительный/путь`; для репозитория вне `$HOME` переменную
|
|
156
|
+
нужно задать вручную. CLI и MCP-сервер в контейнере заменяют свой путь (и пути внутри него) на путь
|
|
157
|
+
хоста перед `reviews.open`, `reviews.remoteList` и `projects.register`. Без этого ревью всё равно
|
|
158
|
+
открывается (платформенные вызовы идут на хосте), но UI показывает автообнаружение и предупреждение
|
|
159
|
+
«каталог не виден» вместо конфига проекта. Ревью, открытые до появления маппинга, хранят путь
|
|
160
|
+
контейнера — откройте их заново.
|
|
161
|
+
|
|
153
162
|
Демон создаёт сокет моста при старте. На хосте выполните `revdeck daemon restart`, затем пересоберите
|
|
154
163
|
контейнер. В контейнере revdeck никогда не запускает свой демон: если сокет недоступен, команда
|
|
155
164
|
падает с ошибкой `DEVCONTAINER` и подсказкой. `revdeck doctor` не ищет `glab`/`gh` в контейнере.
|
|
@@ -164,8 +173,10 @@ revdeck devcontainer --write # добавить их в .devcontainer/devcontai
|
|
|
164
173
|
расширения прав агента.
|
|
165
174
|
|
|
166
175
|
`revdeck devcontainer --write` добавляет `REVDECK_*` в MCP-сервер `revdeck` в `.mcp.json` и
|
|
167
|
-
`.cursor/mcp.json` внутри репозитория.
|
|
168
|
-
|
|
176
|
+
`.cursor/mcp.json` внутри репозитория. Исключение — `REVDECK_HOST_ROOT`: `${localEnv:...}` раскрывается
|
|
177
|
+
только в `devcontainer.json`, поэтому переменная задаётся в `containerEnv`/`remoteEnv`, а MCP-сервер
|
|
178
|
+
наследует её. Пользовательский MCP вне репозитория нужно снабдить теми же переменными вручную
|
|
179
|
+
(`REVDECK_HOST_ROOT` — абсолютным путём), иначе он может поднять второй демон в контейнере.
|
|
169
180
|
|
|
170
181
|
Пользователь контейнера должен иметь доступ к сокету моста (сокет `0666` в смонтированном каталоге
|
|
171
182
|
`0755`; методы ограничены капабилити `read`/`draft`). UI открывается на хосте через `revdeck ui`;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "revdeck",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.8.0",
|
|
4
4
|
"description": "Agent-first code review for GitLab and GitHub: local daemon, CLI, MCP server and a triage UI.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -27,7 +27,9 @@
|
|
|
27
27
|
"build:ui": "vite build --config ui/vite.config.ts",
|
|
28
28
|
"prepack": "npm run build",
|
|
29
29
|
"prepublishOnly": "npm run typecheck && npm test",
|
|
30
|
-
"typecheck": "
|
|
30
|
+
"typecheck": "npm run typecheck:server && npm run typecheck:ui",
|
|
31
|
+
"typecheck:server": "node ./node_modules/typescript-7/bin/tsc --noEmit",
|
|
32
|
+
"typecheck:ui": "svelte-check --tsconfig ui/tsconfig.json --threshold error",
|
|
31
33
|
"test": "vitest run",
|
|
32
34
|
"test:watch": "vitest",
|
|
33
35
|
"dev:daemon": "tsx src/daemon/main.ts",
|
|
@@ -50,6 +52,7 @@
|
|
|
50
52
|
"svelte-check": "^4.5.0",
|
|
51
53
|
"tsx": "^4.23.15",
|
|
52
54
|
"typescript": "^6.0.3",
|
|
55
|
+
"typescript-7": "npm:typescript@^7.0.2",
|
|
53
56
|
"vite": "^8.3.6",
|
|
54
57
|
"vitest": "^5.1.0"
|
|
55
58
|
},
|