revdeck 0.8.0 → 0.8.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.
@@ -353,7 +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
+ | `REVDECK_HOST_ROOT` | host path of the worktree mounted into a devcontainer; `revdeck devcontainer --write` sets `${localWorkspaceFolder}`, and the container client maps its root to it before RPC |
357
357
  | `REVDECK_UI_HOST` | host used by `revdeck ui` from a container (for example `host.docker.internal`) |
358
358
  | `REVDECK_ROOT` | project root for the MCP server |
359
359
  | `REVDECK_FEATURE` | feature id for a feature-scoped MCP session; the current project must be a member |
@@ -150,12 +150,14 @@ and the `REVDECK_*` keys are managed.
150
150
 
151
151
  `REVDECK_HOST_ROOT` closes the path gap between the two sides: the daemon reads `.revdeck.yml` and rule
152
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.
153
+ writes `${localWorkspaceFolder}`, which the devcontainer tooling expands to the host path of the
154
+ opened folder, so no user-specific path is committed. If the repository is a subfolder of the opened
155
+ workspace, set `REVDECK_HOST_ROOT` manually (for example `${localWorkspaceFolder}/subdir`). The CLI and
156
+ MCP server in the container map their worktree path (and paths under it) to the host path before
157
+ `reviews.open`, `reviews.remoteList` and `projects.register`. Without the mapping the review still opens
158
+ (platform calls run on the host), but the UI shows auto-discovery and a "directory is not visible"
159
+ warning instead of the project config. Reviews opened before the mapping keep the old container root;
160
+ reopen them.
159
161
 
160
162
  The daemon creates the bridge socket on startup. On the host run `revdeck daemon restart`, then rebuild
161
163
  the container. Inside the container `revdeck` never starts its own daemon: if the socket is unreachable
@@ -173,10 +175,11 @@ expose the UI token to the container; `--host 0.0.0.0` is for a browser on anoth
173
175
  not for giving the agent more rights.
174
176
 
175
177
  `revdeck devcontainer --write` adds the `REVDECK_*` variables to the `revdeck` MCP server in `.mcp.json`
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.
178
+ and `.cursor/mcp.json` inside the repository. `REVDECK_HOST_ROOT` is the exception: `${localEnv:...}`
179
+ and `${localWorkspaceFolder}` are expanded only in `devcontainer.json`, so it is set in
180
+ `containerEnv`/`remoteEnv` and inherited by the MCP server. A user-level MCP configuration outside the
181
+ repository needs the same variables manually (with an absolute `REVDECK_HOST_ROOT`), otherwise it may
182
+ start a second daemon in the container.
180
183
 
181
184
  The container user must be able to connect to the host bridge socket (the bridge socket is `0666`
182
185
  inside the mounted directory `0755`; its methods are limited by the `read`/`draft` capability). The UI
@@ -349,7 +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
+ | `REVDECK_HOST_ROOT` | путь рабочей копии на хосте для devcontainer: `revdeck devcontainer --write` ставит `${localWorkspaceFolder}`, клиент в контейнере заменяет на него свой root перед RPC |
353
353
  | `REVDECK_UI_HOST` | хост для `revdeck ui` из контейнера (например, `host.docker.internal`) |
354
354
  | `REVDECK_ROOT` | корень проекта для MCP-сервера |
355
355
  | `REVDECK_FEATURE` | id фичи для MCP-сессии; текущий проект должен быть участником |
@@ -151,13 +151,14 @@ revdeck devcontainer --write # добавить их в .devcontainer/devcontai
151
151
  и ключи сохраняются; revdeck управляет только двумя своими mounts и ключами `REVDECK_*`.
152
152
 
153
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
- контейнера — откройте их заново.
154
+ правил на хосте, а контейнер видит ту же рабочую копию в `/workspaces/...`. `--write` записывает
155
+ `${localWorkspaceFolder}`; клиент devcontainer раскрывает его в путь открытой папки на хосте, поэтому
156
+ личный путь не коммитится. Если репозиторий — подпапка открытого workspace, задайте
157
+ `REVDECK_HOST_ROOT` вручную (например, `${localWorkspaceFolder}/subdir`). CLI и MCP-сервер в
158
+ контейнере заменяют свой путь (и пути внутри него) на путь хоста перед `reviews.open`,
159
+ `reviews.remoteList` и `projects.register`. Без этого ревью всё равно открывается (платформенные
160
+ вызовы идут на хосте), но UI показывает автообнаружение и предупреждение «каталог не виден» вместо
161
+ конфига проекта. Ревью, открытые до появления маппинга, хранят путь контейнера — откройте их заново.
161
162
 
162
163
  Демон создаёт сокет моста при старте. На хосте выполните `revdeck daemon restart`, затем пересоберите
163
164
  контейнер. В контейнере revdeck никогда не запускает свой демон: если сокет недоступен, команда
@@ -173,10 +174,11 @@ revdeck devcontainer --write # добавить их в .devcontainer/devcontai
173
174
  расширения прав агента.
174
175
 
175
176
  `revdeck devcontainer --write` добавляет `REVDECK_*` в MCP-сервер `revdeck` в `.mcp.json` и
176
- `.cursor/mcp.json` внутри репозитория. Исключение — `REVDECK_HOST_ROOT`: `${localEnv:...}` раскрывается
177
- только в `devcontainer.json`, поэтому переменная задаётся в `containerEnv`/`remoteEnv`, а MCP-сервер
178
- наследует её. Пользовательский MCP вне репозитория нужно снабдить теми же переменными вручную
179
- (`REVDECK_HOST_ROOT` — абсолютным путём), иначе он может поднять второй демон в контейнере.
177
+ `.cursor/mcp.json` внутри репозитория. Исключение — `REVDECK_HOST_ROOT`: `${localEnv:...}` и
178
+ `${localWorkspaceFolder}` раскрываются только в `devcontainer.json`, поэтому переменная задаётся в
179
+ `containerEnv`/`remoteEnv`, а MCP-сервер наследует её. Пользовательский MCP вне репозитория нужно
180
+ снабдить теми же переменными вручную (`REVDECK_HOST_ROOT` — абсолютным путём), иначе он может поднять
181
+ второй демон в контейнере.
180
182
 
181
183
  Пользователь контейнера должен иметь доступ к сокету моста (сокет `0666` в смонтированном каталоге
182
184
  `0755`; методы ограничены капабилити `read`/`draft`). UI открывается на хосте через `revdeck ui`;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "revdeck",
3
- "version": "0.8.0",
3
+ "version": "0.8.1",
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",