revdeck 0.19.0 → 0.19.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.
@@ -9,7 +9,7 @@
9
9
  <link rel="icon" href="/icon-32.png" type="image/png" sizes="32x32" />
10
10
  <link rel="apple-touch-icon" href="/icon-128.png" />
11
11
  <title>revdeck</title>
12
- <script type="module" crossorigin src="/assets/index-CHeSKVUo.js"></script>
12
+ <script type="module" crossorigin src="/assets/index-BBiL2dIu.js"></script>
13
13
  <link rel="stylesheet" crossorigin href="/assets/index-ahIeys_y.css">
14
14
  </head>
15
15
  <body>
@@ -169,6 +169,16 @@ documents declared in `context.sources` of each repository (`context.maxBytes` c
169
169
  one-entry parsed-snapshot cache and one snippet index per view keep large reviews cheap.
170
170
  - SSE heartbeats gate the polling fallback; review/feature/project events reload only their scope, and
171
171
  unchanged lists are not reassigned in the UI.
172
+ - Idle browser connections stay open for 65 seconds, and a request that fails on the network is retried
173
+ or probed against `/api/health` before the UI treats the daemon as lost: a keep-alive socket the
174
+ server closed must not look like an outage.
175
+ - UI effects are keyed by the review id and never read the loading flag they write: an effect that
176
+ reads its own `$state` runs again after every update and turns one fetch into an endless loop, so
177
+ stale responses are guarded by request counters instead. Draft restore keeps using `untrack`.
178
+ - The API client keeps a per-path request rate and warns once in the console when one path exceeds
179
+ 30 calls per second; polling, retries and reconnect backoff stay far below that.
180
+ - `npm run audit:effects` statically checks every `$effect` for reading state it writes, and CI fails
181
+ on a finding that is not in the reviewed list of converging patterns.
172
182
  - Threads and findings use a measured, page-windowed virtual list in the UI; only visible pages are in
173
183
  the DOM, while focus, editors and deep links stay pinned.
174
184
  - Snippets for threads and findings are computed on the server and size-limited.
@@ -221,6 +221,10 @@ a permanent project link; a project appears in a feature while at least one of i
221
221
  `/api/health` answers with a fresh session. An open tab shows the same explanation as an in-app card
222
222
  instead of raw `Failed to fetch`/401 errors; it probes the daemon, listens to `online`/visibility
223
223
  changes and recovers by itself. The page follows the browser language and the system theme.
224
+ - A single network blip is not reported as a loss: idle browser connections stay open for 65 seconds
225
+ (Node's five-second default let a request race into a socket the server was closing), an idempotent
226
+ request is retried once on a fresh connection, and a request that may have reached the daemon is
227
+ checked against `/api/health` first. The full-screen card needs a daemon that does not answer at all.
224
228
  - A connection loss does not lose work: replies and finding comments that did not reach the daemon are
225
229
  backed up in `localStorage` and restored (then saved) after the tab reconnects.
226
230
  - Responsive sidebar and mobile backdrop; dark/light theme via CSS variables.
@@ -172,6 +172,18 @@ OpenAPI разбирается на операции и схемы, а конт
172
172
  разобранного снимка и один индекс сниппетов на view удешевляют большие ревью.
173
173
  - Heartbeat'ы SSE отключают поллинг-страховку; события review/feature/project обновляют только свою
174
174
  часть, а неизменившиеся списки в UI не переприсваиваются.
175
+ - Простаивающие соединения браузера живут 65 секунд, а запрос, упавший на сетевом уровне,
176
+ повторяется или проверяется через `/api/health` раньше, чем UI покажет потерю связи: закрытый
177
+ сервером keep-alive-сокет не должен выглядеть как недоступный демон.
178
+ - Эффекты UI привязаны к id ревью и не читают флаг загрузки, который сами же пишут: эффект,
179
+ читающий собственный `$state`, перезапускается после каждого обновления и превращает один запрос
180
+ в бесконечный цикл, поэтому устаревшие ответы отсекаются счётчиками запросов. Восстановление
181
+ черновиков по-прежнему идёт через `untrack`.
182
+ - Клиент API считает частоту обращений по каждому пути и один раз предупреждает в консоли, если
183
+ путь превышает 30 обращений в секунду; поллинг, повторы и пауза переподключения держатся заметно
184
+ ниже.
185
+ - `npm run audit:effects` статически проверяет каждый `$effect` на чтение состояния, которое он сам
186
+ пишет; CI падает на находке, которой нет в разобранном списке сходящихся шаблонов.
175
187
  - Треды и замечания используют измеряемый page-windowed virtual list в UI: в DOM только видимые
176
188
  страницы, а фокус, редакторы и deep-link'и остаются рабочими.
177
189
  - Сниппеты для тредов и замечаний считаются на сервере и ограничены по размеру.
@@ -226,6 +226,11 @@ agent (MCP/CLI) ──unix socket──▶ revdeck daemon ──glab/gh──▶
226
226
  новой сессией. Открытая вкладка показывает то же объяснение карточкой вместо сырых
227
227
  `Failed to fetch`/401, слушает `online`/смену видимости, сама проверяет демон и восстанавливается.
228
228
  Язык страницы — по браузеру, тема — системная.
229
+ - Одиночный сетевой обрыв не считается потерей связи: простаивающие соединения браузера живут
230
+ 65 секунд (пять секунд по умолчанию в Node давали гонку с закрывающимся сокетом), идемпотентный
231
+ запрос повторяется один раз на новом соединении, а запрос, который мог дойти до демона,
232
+ проверяется через `/api/health`. Полноэкранная карточка появляется только когда демон не отвечает
233
+ вообще.
229
234
  - Обрыв связи не теряет работу: ответы и комментарии к замечаниям, не дошедшие до демона,
230
235
  сохраняются в `localStorage` и восстанавливаются (а затем отправляются) после переподключения.
231
236
  - Адаптивный сайдбар и мобильный backdrop; светлая/тёмная тема через CSS-переменные.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "revdeck",
3
- "version": "0.19.0",
3
+ "version": "0.19.2",
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",
@@ -29,6 +29,7 @@
29
29
  "prepublishOnly": "npm run typecheck && npm test",
30
30
  "typecheck": "npm run typecheck:server && npm run typecheck:ui",
31
31
  "typecheck:server": "node ./node_modules/typescript-7/bin/tsc --noEmit",
32
+ "audit:effects": "tsx scripts/audit-effects.ts",
32
33
  "typecheck:ui": "svelte-check --tsconfig ui/tsconfig.json --threshold error",
33
34
  "test": "vitest run",
34
35
  "test:watch": "vitest",