revdeck 0.4.0 → 0.4.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 +8 -0
- package/README.md +2 -2
- package/README.ru.md +2 -2
- package/dist/cli.js +10 -6
- package/dist/cli.js.map +2 -2
- package/dist/daemon.js +1 -1
- package/dist/daemon.js.map +1 -1
- package/dist/mcp.js +1 -1
- package/dist/mcp.js.map +1 -1
- package/docs/integrations.md +2 -2
- package/docs/ru/integrations.md +2 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -6,6 +6,14 @@ All notable changes to this project are documented here. The format is based on
|
|
|
6
6
|
|
|
7
7
|
## [Unreleased]
|
|
8
8
|
|
|
9
|
+
## [0.4.1] - 2026-11-12
|
|
10
|
+
|
|
11
|
+
### Fixed
|
|
12
|
+
|
|
13
|
+
- `revdeck daemon start --host` now warns when a daemon is already running and does not rebind;
|
|
14
|
+
use `revdeck daemon restart --host 0.0.0.0`. `revdeck daemon install --host 0.0.0.0` writes the
|
|
15
|
+
binding into the systemd unit / launchd plist.
|
|
16
|
+
|
|
9
17
|
## [0.4.0] - 2026-11-12
|
|
10
18
|
|
|
11
19
|
### Added
|
package/README.md
CHANGED
|
@@ -176,8 +176,8 @@ rebuild the container. Inside the container revdeck never starts a local daemon,
|
|
|
176
176
|
never invoked there; if the host socket is missing it fails with a clear `DEVCONTAINER` error.
|
|
177
177
|
`revdeck doctor` is aware of this mode.
|
|
178
178
|
|
|
179
|
-
If a Unix socket cannot be mounted (for example Docker Desktop on macOS),
|
|
180
|
-
`revdeck daemon
|
|
179
|
+
If a Unix socket cannot be mounted (for example Docker Desktop on macOS), restart the host daemon with
|
|
180
|
+
`revdeck daemon restart --host 0.0.0.0` (or `revdeck daemon install --host 0.0.0.0` for a service). The container reads `daemon.json` from the mounted state and
|
|
181
181
|
falls back to HTTP with the same session token; `.mcp.json` / `.cursor/mcp.json` get the required
|
|
182
182
|
`REVDECK_*` env from `revdeck devcontainer --write`. Binding the daemon to `0.0.0.0` exposes its HTTP
|
|
183
183
|
port to the network, so use it only on a trusted network.
|
package/README.ru.md
CHANGED
|
@@ -162,8 +162,8 @@ revdeck devcontainer --write # добавить их в .devcontainer/devcontai
|
|
|
162
162
|
вызываются; если сокет хоста недоступен, команда падает с понятной ошибкой `DEVCONTAINER`.
|
|
163
163
|
`revdeck doctor` знает об этом режиме.
|
|
164
164
|
|
|
165
|
-
Если Unix-сокет не монтируется (например, Docker Desktop на macOS),
|
|
166
|
-
`revdeck daemon
|
|
165
|
+
Если Unix-сокет не монтируется (например, Docker Desktop на macOS), перезапустите демон на хосте с
|
|
166
|
+
`revdeck daemon restart --host 0.0.0.0` (или `revdeck daemon install --host 0.0.0.0` для сервиса). Клиент в контейнере прочитает `daemon.json` из смонтированного
|
|
167
167
|
state и переключится на HTTP с тем же токеном сессии; `revdeck devcontainer --write` добавляет нужные
|
|
168
168
|
`REVDECK_*` в `.mcp.json` / `.cursor/mcp.json`. Привязка к `0.0.0.0` открывает HTTP-порт в сеть —
|
|
169
169
|
используйте это только в доверенной сети.
|
package/dist/cli.js
CHANGED
|
@@ -168,7 +168,7 @@ var VERSION;
|
|
|
168
168
|
var init_version = __esm({
|
|
169
169
|
"src/version.ts"() {
|
|
170
170
|
"use strict";
|
|
171
|
-
VERSION = "0.4.
|
|
171
|
+
VERSION = "0.4.1";
|
|
172
172
|
}
|
|
173
173
|
});
|
|
174
174
|
|
|
@@ -1922,7 +1922,7 @@ async function ensureGitignore(root) {
|
|
|
1922
1922
|
`);
|
|
1923
1923
|
writers.out(tr("\u2714 .revdeck/ \u0434\u043E\u0431\u0430\u0432\u043B\u0435\u043D \u0432 .gitignore", "\u2714 .revdeck/ added to .gitignore"));
|
|
1924
1924
|
}
|
|
1925
|
-
async function installService() {
|
|
1925
|
+
async function installService(host) {
|
|
1926
1926
|
const glab = await resolveExecutable("glab");
|
|
1927
1927
|
const gh = await resolveExecutable("gh");
|
|
1928
1928
|
const envVars = [
|
|
@@ -1932,6 +1932,7 @@ async function installService() {
|
|
|
1932
1932
|
];
|
|
1933
1933
|
const root = packageRoot();
|
|
1934
1934
|
const daemon2 = path6.join(root, "dist", "daemon.js");
|
|
1935
|
+
const hostArgs = host ? ` --host ${host}` : "";
|
|
1935
1936
|
if (!existsSync5(daemon2)) throw new Error(tr("\u043D\u0435\u0442 dist/daemon.js: \u0441\u043D\u0430\u0447\u0430\u043B\u0430 \u0432\u044B\u043F\u043E\u043B\u043D\u0438\u0442\u0435 npm run build", "dist/daemon.js is missing: run npm run build first"));
|
|
1936
1937
|
if (daemon2.includes(`${path6.sep}_npx${path6.sep}`)) {
|
|
1937
1938
|
writers.err(tr("! \u043F\u0430\u043A\u0435\u0442 \u0437\u0430\u043F\u0443\u0449\u0435\u043D \u0447\u0435\u0440\u0435\u0437 npx: \u043F\u0443\u0442\u044C \u043A \u0434\u0435\u043C\u043E\u043D\u0443 \u043C\u043E\u0436\u0435\u0442 \u0438\u0441\u0447\u0435\u0437\u043D\u0443\u0442\u044C \u043F\u0440\u0438 \u043E\u0447\u0438\u0441\u0442\u043A\u0435 \u043A\u0435\u0448\u0430.", "! running from an npx cache: the daemon path can be evicted."));
|
|
@@ -1949,7 +1950,7 @@ async function installService() {
|
|
|
1949
1950
|
"After=default.target",
|
|
1950
1951
|
"",
|
|
1951
1952
|
"[Service]",
|
|
1952
|
-
`ExecStart=${process.execPath} ${daemon2}`,
|
|
1953
|
+
`ExecStart=${process.execPath} ${daemon2}${hostArgs}`,
|
|
1953
1954
|
...envVars.map((item) => `Environment="${systemdEscape(item)}"`),
|
|
1954
1955
|
"Restart=on-failure",
|
|
1955
1956
|
"RestartSec=2",
|
|
@@ -1973,7 +1974,7 @@ async function installService() {
|
|
|
1973
1974
|
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
|
1974
1975
|
<plist version="1.0"><dict>
|
|
1975
1976
|
<key>Label</key><string>io.revdeck.daemon</string>
|
|
1976
|
-
<key>ProgramArguments</key><array><string>${process.execPath}</string><string>${daemon2}</string
|
|
1977
|
+
<key>ProgramArguments</key><array><string>${process.execPath}</string><string>${daemon2}</string>${host ? `<string>--host</string><string>${xmlEscape(host)}</string>` : ""}</array>
|
|
1977
1978
|
<key>EnvironmentVariables</key><dict>${envVars.map((item) => `<key>${xmlEscape(item.slice(0, item.indexOf("=")))}</key><string>${xmlEscape(item.slice(item.indexOf("=") + 1))}</string>`).join("")}</dict>
|
|
1978
1979
|
<key>RunAtLoad</key><true/>
|
|
1979
1980
|
<key>KeepAlive</key><true/>
|
|
@@ -2225,7 +2226,7 @@ async function runDevcontainer(rootInput, options) {
|
|
|
2225
2226
|
writers.out(tr(" 1. \u041D\u0430 \u0445\u043E\u0441\u0442\u0435: revdeck daemon restart \u2014 \u043E\u043D \u0441\u043E\u0437\u0434\u0430\u0441\u0442 \u0441\u043E\u043A\u0435\u0442 \u043C\u043E\u0441\u0442\u0430.", " 1. On the host: revdeck daemon restart \u2014 it creates the bridge socket."));
|
|
2226
2227
|
writers.out(tr(" 2. \u041F\u0435\u0440\u0435\u0441\u043E\u0431\u0435\u0440\u0438\u0442\u0435/\u043F\u0435\u0440\u0435\u043E\u0442\u043A\u0440\u043E\u0439\u0442\u0435 devcontainer.", " 2. Rebuild/reopen the devcontainer."));
|
|
2227
2228
|
writers.out(tr(" 3. \u0412 \u043A\u043E\u043D\u0442\u0435\u0439\u043D\u0435\u0440\u0435: revdeck doctor \u2014 \u043E\u043D \u043D\u0435 \u0431\u0443\u0434\u0435\u0442 \u0438\u0441\u043A\u0430\u0442\u044C glab/gh \u0432\u043D\u0443\u0442\u0440\u0438.", " 3. In the container: revdeck doctor \u2014 it will not look for glab/gh inside."));
|
|
2228
|
-
writers.out(tr(" \u0414\u043B\u044F UI/MCP \u0438\u0437 \u043A\u043E\u043D\u0442\u0435\u0439\u043D\u0435\u0440\u0430 (\u0438\u043B\u0438 \u0435\u0441\u043B\u0438 \u0441\u043E\u043A\u0435\u0442 \u043D\u0435 \u043C\u043E\u043D\u0442\u0438\u0440\u0443\u0435\u0442\u0441\u044F) \u0437\u0430\u043F\u0443\u0441\u0442\u0438\u0442\u0435 \u0434\u0435\u043C\u043E\u043D \u043D\u0430 \u0445\u043E\u0441\u0442\u0435 \u0441 --host 0.0.0.0.", " For the UI/MCP from the container (or when the socket cannot be mounted),
|
|
2229
|
+
writers.out(tr(" \u0414\u043B\u044F UI/MCP \u0438\u0437 \u043A\u043E\u043D\u0442\u0435\u0439\u043D\u0435\u0440\u0430 (\u0438\u043B\u0438 \u0435\u0441\u043B\u0438 \u0441\u043E\u043A\u0435\u0442 \u043D\u0435 \u043C\u043E\u043D\u0442\u0438\u0440\u0443\u0435\u0442\u0441\u044F) \u043F\u0435\u0440\u0435\u0437\u0430\u043F\u0443\u0441\u0442\u0438\u0442\u0435 \u0434\u0435\u043C\u043E\u043D \u043D\u0430 \u0445\u043E\u0441\u0442\u0435 \u0441 --host 0.0.0.0.", " For the UI/MCP from the container (or when the socket cannot be mounted), restart the daemon on the host with --host 0.0.0.0."));
|
|
2229
2230
|
}
|
|
2230
2231
|
async function mergeMcpEnv(root, env) {
|
|
2231
2232
|
for (const relative of [".mcp.json", ".cursor/mcp.json"]) {
|
|
@@ -2976,6 +2977,9 @@ async function daemon(action, values = {}) {
|
|
|
2976
2977
|
client2.close();
|
|
2977
2978
|
const info = await daemonInfo();
|
|
2978
2979
|
writers.out(`${started ? tr("\u0437\u0430\u043F\u0443\u0449\u0435\u043D", "started") : tr("\u0443\u0436\u0435 \u0440\u0430\u0431\u043E\u0442\u0430\u0435\u0442", "already running")} ${tr("\u0434\u0435\u043C\u043E\u043D", "daemon")} pid ${ping.pid}, ${tr("\u0432\u0435\u0440\u0441\u0438\u044F", "version")} ${ping.version}`);
|
|
2980
|
+
if (values.host && !started) {
|
|
2981
|
+
writers.err(tr("! \u0443\u0436\u0435 \u0437\u0430\u043F\u0443\u0449\u0435\u043D\u043D\u044B\u0439 \u0434\u0435\u043C\u043E\u043D \u043D\u0435 \u043C\u0435\u043D\u044F\u0435\u0442 bind-\u0430\u0434\u0440\u0435\u0441: \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u0443\u0439\u0442\u0435 revdeck daemon restart --host 0.0.0.0", "! a running daemon does not rebind: use revdeck daemon restart --host 0.0.0.0"));
|
|
2982
|
+
}
|
|
2979
2983
|
if (info) writers.out(`${uiBaseUrl(info)}/?t=${info.token}`);
|
|
2980
2984
|
return;
|
|
2981
2985
|
}
|
|
@@ -2990,7 +2994,7 @@ async function daemon(action, values = {}) {
|
|
|
2990
2994
|
return;
|
|
2991
2995
|
}
|
|
2992
2996
|
if (action === "install") {
|
|
2993
|
-
await installService();
|
|
2997
|
+
await installService(values.host ? String(values.host) : void 0);
|
|
2994
2998
|
return;
|
|
2995
2999
|
}
|
|
2996
3000
|
if (action === "uninstall") {
|