revdeck 0.19.1 → 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-BPQZSbvp.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>
@@ -172,6 +172,13 @@ documents declared in `context.sources` of each repository (`context.maxBytes` c
172
172
  - Idle browser connections stay open for 65 seconds, and a request that fails on the network is retried
173
173
  or probed against `/api/health` before the UI treats the daemon as lost: a keep-alive socket the
174
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.
175
182
  - Threads and findings use a measured, page-windowed virtual list in the UI; only visible pages are in
176
183
  the DOM, while focus, editors and deep links stay pinned.
177
184
  - Snippets for threads and findings are computed on the server and size-limited.
@@ -175,6 +175,15 @@ OpenAPI разбирается на операции и схемы, а конт
175
175
  - Простаивающие соединения браузера живут 65 секунд, а запрос, упавший на сетевом уровне,
176
176
  повторяется или проверяется через `/api/health` раньше, чем UI покажет потерю связи: закрытый
177
177
  сервером keep-alive-сокет не должен выглядеть как недоступный демон.
178
+ - Эффекты UI привязаны к id ревью и не читают флаг загрузки, который сами же пишут: эффект,
179
+ читающий собственный `$state`, перезапускается после каждого обновления и превращает один запрос
180
+ в бесконечный цикл, поэтому устаревшие ответы отсекаются счётчиками запросов. Восстановление
181
+ черновиков по-прежнему идёт через `untrack`.
182
+ - Клиент API считает частоту обращений по каждому пути и один раз предупреждает в консоли, если
183
+ путь превышает 30 обращений в секунду; поллинг, повторы и пауза переподключения держатся заметно
184
+ ниже.
185
+ - `npm run audit:effects` статически проверяет каждый `$effect` на чтение состояния, которое он сам
186
+ пишет; CI падает на находке, которой нет в разобранном списке сходящихся шаблонов.
178
187
  - Треды и замечания используют измеряемый page-windowed virtual list в UI: в DOM только видимые
179
188
  страницы, а фокус, редакторы и deep-link'и остаются рабочими.
180
189
  - Сниппеты для тредов и замечаний считаются на сервере и ограничены по размеру.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "revdeck",
3
- "version": "0.19.1",
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",