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.
- package/CHANGELOG.md +10 -0
- package/README.md +8 -7
- package/README.ru.md +7 -6
- package/dist/cli.js +12 -25
- package/dist/cli.js.map +3 -3
- package/dist/daemon.js +1 -1
- package/dist/daemon.js.map +2 -2
- package/dist/mcp.js +6 -3
- package/dist/mcp.js.map +2 -2
- package/docs/configuration.md +1 -1
- package/docs/integrations.md +13 -10
- package/docs/ru/configuration.md +1 -1
- package/docs/ru/integrations.md +13 -11
- package/package.json +1 -1
package/docs/configuration.md
CHANGED
|
@@ -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 |
|
package/docs/integrations.md
CHANGED
|
@@ -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
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
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:...}`
|
|
177
|
-
expanded only in `devcontainer.json`, so it is set in
|
|
178
|
-
server. A user-level MCP configuration outside the
|
|
179
|
-
an absolute `REVDECK_HOST_ROOT`), otherwise it may
|
|
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
|
package/docs/ru/configuration.md
CHANGED
|
@@ -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-сессии; текущий проект должен быть участником |
|
package/docs/ru/integrations.md
CHANGED
|
@@ -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
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
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`, поэтому переменная задаётся в
|
|
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`;
|