revdeck 0.6.0 → 0.8.0
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 +66 -1
- package/CONTRIBUTING.md +5 -1
- package/README.md +57 -17
- package/README.ru.md +59 -21
- package/SECURITY.md +1 -1
- package/dist/cli.js +485 -263
- package/dist/cli.js.map +4 -4
- package/dist/daemon.js +428 -121
- package/dist/daemon.js.map +4 -4
- package/dist/mcp.js +76 -28
- package/dist/mcp.js.map +4 -4
- package/dist/ui/assets/index-BIVPy49b.css +1 -0
- package/dist/ui/assets/index-BcvEWwhI.js +18 -0
- package/dist/ui/favicon.svg +8 -3
- package/dist/ui/icon-128.png +0 -0
- package/dist/ui/icon-32.png +0 -0
- package/dist/ui/index.html +4 -2
- package/docs/README.md +3 -0
- package/docs/architecture.md +10 -6
- package/docs/assets/brand/README.md +49 -0
- package/docs/assets/brand/icon-1024.png +0 -0
- package/docs/assets/brand/icon-128.png +0 -0
- package/docs/assets/brand/icon-256.png +0 -0
- package/docs/assets/brand/icon-32.png +0 -0
- package/docs/assets/brand/icon-512.png +0 -0
- package/docs/assets/brand/icon-64.png +0 -0
- package/docs/assets/brand/icon.svg +9 -0
- package/docs/assets/brand/logo-dark.png +0 -0
- package/docs/assets/brand/logo-dark.svg +13 -0
- package/docs/assets/brand/logo.png +0 -0
- package/docs/assets/brand/logo.svg +13 -0
- package/docs/capabilities.md +23 -11
- package/docs/configuration.md +25 -8
- package/docs/integrations.md +30 -16
- package/docs/protocol.md +34 -13
- package/docs/ru/README.md +3 -0
- package/docs/ru/architecture.md +10 -6
- package/docs/ru/capabilities.md +24 -10
- package/docs/ru/configuration.md +21 -6
- package/docs/ru/integrations.md +29 -16
- package/docs/ru/protocol.md +33 -12
- package/docs/ru/threat-model.md +6 -5
- package/docs/threat-model.md +10 -8
- package/package.json +5 -2
- package/skills/revdeck/en/Feedback.md +3 -2
- package/skills/revdeck/en/Review.md +3 -2
- package/skills/revdeck/ru/Feedback.md +3 -2
- package/skills/revdeck/ru/Review.md +2 -2
- package/dist/ui/assets/index-BH0dNFhd.css +0 -1
- package/dist/ui/assets/index-Wz1DYbiv.js +0 -14
package/dist/ui/favicon.svg
CHANGED
|
@@ -1,4 +1,9 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64">
|
|
2
|
-
<rect width="64" height="64" rx="14" fill="#
|
|
3
|
-
<
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64" fill="none">
|
|
2
|
+
<rect width="64" height="64" rx="14" fill="#3B6EF5"/>
|
|
3
|
+
<rect x="22" y="12" width="26" height="33" rx="4.5" fill="#7C5CFF"/>
|
|
4
|
+
<rect x="17.5" y="16.5" width="26" height="33" rx="4.5" fill="#D7E3FF"/>
|
|
5
|
+
<rect x="13" y="21.5" width="28" height="32" rx="5" fill="#FFFFFF"/>
|
|
6
|
+
<rect x="18" y="29.2" width="12" height="2.6" rx="1.3" fill="#3B6EF5"/>
|
|
7
|
+
<rect x="18" y="34.6" width="17.5" height="2.6" rx="1.3" fill="#3B6EF5"/>
|
|
8
|
+
<rect x="18" y="40" width="8.5" height="2.6" rx="1.3" fill="#3B6EF5"/>
|
|
4
9
|
</svg>
|
|
Binary file
|
|
Binary file
|
package/dist/ui/index.html
CHANGED
|
@@ -6,9 +6,11 @@
|
|
|
6
6
|
<meta name="color-scheme" content="light dark" />
|
|
7
7
|
<meta name="referrer" content="no-referrer" />
|
|
8
8
|
<link rel="icon" href="/favicon.svg" type="image/svg+xml" />
|
|
9
|
+
<link rel="icon" href="/icon-32.png" type="image/png" sizes="32x32" />
|
|
10
|
+
<link rel="apple-touch-icon" href="/icon-128.png" />
|
|
9
11
|
<title>revdeck</title>
|
|
10
|
-
<script type="module" crossorigin src="/assets/index-
|
|
11
|
-
<link rel="stylesheet" crossorigin href="/assets/index-
|
|
12
|
+
<script type="module" crossorigin src="/assets/index-BcvEWwhI.js"></script>
|
|
13
|
+
<link rel="stylesheet" crossorigin href="/assets/index-BIVPy49b.css">
|
|
12
14
|
</head>
|
|
13
15
|
<body>
|
|
14
16
|
<div id="app"></div>
|
package/docs/README.md
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
<p align="center"><img src="assets/brand/icon-128.png" alt="revdeck" width="72"></p>
|
|
2
|
+
|
|
1
3
|
# revdeck documentation
|
|
2
4
|
|
|
3
5
|
[English](README.md) | [Русский](ru/README.md)
|
|
@@ -13,5 +15,6 @@ slightly behind.
|
|
|
13
15
|
| RPC and HTTP protocol | [protocol.md](protocol.md) | [ru/protocol.md](ru/protocol.md) |
|
|
14
16
|
| Threat model | [threat-model.md](threat-model.md) | [ru/threat-model.md](ru/threat-model.md) |
|
|
15
17
|
| Harness integrations | [integrations.md](integrations.md) | [ru/integrations.md](ru/integrations.md) |
|
|
18
|
+
| Brand assets | [assets/brand/README.md](assets/brand/README.md) | [(EN)](assets/brand/README.md) |
|
|
16
19
|
|
|
17
20
|
Start with the [README](../README.md) for installation, commands and MCP setup.
|
package/docs/architecture.md
CHANGED
|
@@ -35,8 +35,8 @@ agent (MCP/CLI) ──▶ revdeck daemon ──glab/gh──▶ GitLab/GitHub
|
|
|
35
35
|
- `src/daemon/store.ts` — SQLite (`node:sqlite`): projects and their roots, reviews, diff/thread snapshot,
|
|
36
36
|
drafts, findings, decisions, comments, approvals, audit.
|
|
37
37
|
- `src/daemon/rpc.ts` — [JSON-RPC](protocol.md) over a Unix socket (0600) for the CLI and MCP.
|
|
38
|
-
- `src/daemon/bridge.ts` — an additional RPC socket in a stable home-based directory for devcontainers.
|
|
39
|
-
- `src/daemon/http.ts` — UI and `/api/*`, SSE events, cookie session with a
|
|
38
|
+
- `src/daemon/bridge.ts` — an additional agent-scoped RPC socket in a stable home-based directory for devcontainers (no publish/checks/admin, no UI token).
|
|
39
|
+
- `src/daemon/http.ts` — UI and `/api/*`, SSE events, cookie session with a launch token (not mounted into containers).
|
|
40
40
|
- `src/cli` — commands, `init`, `doctor`, export/import of the old file format.
|
|
41
41
|
- `src/mcp` — MCP server: tools and prompts, a thin wrapper over RPC.
|
|
42
42
|
- `ui` — Svelte 5 SPA, built into `dist/ui`.
|
|
@@ -49,8 +49,9 @@ agent (MCP/CLI) ──▶ revdeck daemon ──glab/gh──▶ GitLab/GitHub
|
|
|
49
49
|
3. The agent requests `revdeck_context`: the daemon assembles effective rules (documents and sections
|
|
50
50
|
for changed paths), snippets, threads, and findings.
|
|
51
51
|
4. The agent writes drafts (`drafts.put`, `findings.put`, `summary.put`, `notes.update`).
|
|
52
|
-
5. A human in the UI calls `publish.preview` → sees the exact plan and hash →
|
|
53
|
-
`publish.commit`. The
|
|
52
|
+
5. A human in the UI or host CLI calls `publish.preview` → sees the exact plan and hash →
|
|
53
|
+
`publish.approve` → `publish.commit`. The bridge has no approve/commit (`CAPABILITY`); the daemon
|
|
54
|
+
executes only the items included in the approved plan.
|
|
54
55
|
6. Background sync every 2 minutes refreshes open reviews and broadcasts SSE events to the UI.
|
|
55
56
|
|
|
56
57
|
## Data model
|
|
@@ -76,7 +77,9 @@ registry (`projects`, `project_roots`) is populated when a review is opened or w
|
|
|
76
77
|
registered explicitly (`revdeck projects add <path>`).
|
|
77
78
|
|
|
78
79
|
- The UI selects one project at a time: a switcher, a projects home, and a review queue scoped to the
|
|
79
|
-
selection. The selection is kept in the URL and in local storage.
|
|
80
|
+
selection. The selection is kept in the URL and in local storage. The projects home registers a
|
|
81
|
+
working copy, edits the display title and roots, and deletes a project with its cached reviews;
|
|
82
|
+
project deletion never calls the platform.
|
|
80
83
|
- The MCP server is the isolation point. It resolves its project from `REVDECK_ROOT` (or the current
|
|
81
84
|
directory), lists only that project, and rejects review ids/URLs from other projects. The agent gets
|
|
82
85
|
no `root` or project overrides.
|
|
@@ -128,7 +131,8 @@ documents declared in `context.sources` of each repository (`context.maxBytes` c
|
|
|
128
131
|
Harnesses without MCP use the CLI.
|
|
129
132
|
- **Rules**: `rules.map`/`rules.sources` in `.revdeck.yml`; rule packs can be distributed as a regular
|
|
130
133
|
configuration file.
|
|
131
|
-
- **Checks**: `checks` with argv,
|
|
134
|
+
- **Checks**: `checks` with argv; the agent only plans, a human runs them in the UI or host CLI;
|
|
135
|
+
the bridge denies `checks.run`.
|
|
132
136
|
|
|
133
137
|
## Performance
|
|
134
138
|
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
# revdeck brand assets
|
|
2
|
+
|
|
3
|
+
Logo and icon files used by the README, documentation and the web UI.
|
|
4
|
+
|
|
5
|
+
## Logo (wordmark)
|
|
6
|
+
|
|
7
|
+
| File | Use |
|
|
8
|
+
|---|---|
|
|
9
|
+
| `logo.svg` | light backgrounds, README/docs |
|
|
10
|
+
| `logo-dark.svg` | dark backgrounds (`prefers-color-scheme: dark`) |
|
|
11
|
+
| `logo.png` | 1819×512 raster fallback, light backgrounds |
|
|
12
|
+
| `logo-dark.png` | 1819×512 raster fallback, dark backgrounds |
|
|
13
|
+
|
|
14
|
+
The SVG wordmark uses outlined Inter glyphs (SIL Open Font License 1.1). Keep the icon and the
|
|
15
|
+
wordmark together; do not stretch, recolor or add effects.
|
|
16
|
+
|
|
17
|
+
## Icon
|
|
18
|
+
|
|
19
|
+
| File | Use |
|
|
20
|
+
|---|---|
|
|
21
|
+
| `icon.svg` | favicon and scalable UI icon (64×64 viewBox) |
|
|
22
|
+
| `icon-32.png` | 32×32 favicon fallback |
|
|
23
|
+
| `icon-64.png` | 64×64 UI |
|
|
24
|
+
| `icon-128.png` | 128×128 UI / Apple touch icon |
|
|
25
|
+
| `icon-256.png` | 256×256 |
|
|
26
|
+
| `icon-512.png` | 512×512 |
|
|
27
|
+
| `icon-1024.png` | 1024×1024 source asset |
|
|
28
|
+
|
|
29
|
+
## Palette
|
|
30
|
+
|
|
31
|
+
| Token | Value |
|
|
32
|
+
|---|---|
|
|
33
|
+
| blue | `#3B6EF5` |
|
|
34
|
+
| violet | `#7C5CFF` |
|
|
35
|
+
| pale blue | `#D7E3FF` |
|
|
36
|
+
| light text | `#16191D` |
|
|
37
|
+
| dark text | `#E6E9EE` |
|
|
38
|
+
|
|
39
|
+
Clear space around the mark: at least half the icon's corner radius. Minimum icon size: 24 px.
|
|
40
|
+
|
|
41
|
+
## Where it is used
|
|
42
|
+
|
|
43
|
+
- `README.md` / `README.ru.md` — centered logo with a dark-mode variant;
|
|
44
|
+
- `docs/README.md` / `docs/ru/README.md` — icon in the documentation index;
|
|
45
|
+
- `ui/public/favicon.svg`, `ui/public/icon-32.png`, `ui/public/icon-128.png` — browser tab,
|
|
46
|
+
bookmarks and Apple touch icon;
|
|
47
|
+
- `ui/src/App.svelte` — sidebar brand icon.
|
|
48
|
+
|
|
49
|
+
The assets are part of the package through the `docs` and `dist/ui` entries in `package.json`.
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64" fill="none">
|
|
2
|
+
<rect width="64" height="64" rx="14" fill="#3B6EF5"/>
|
|
3
|
+
<rect x="22" y="12" width="26" height="33" rx="4.5" fill="#7C5CFF"/>
|
|
4
|
+
<rect x="17.5" y="16.5" width="26" height="33" rx="4.5" fill="#D7E3FF"/>
|
|
5
|
+
<rect x="13" y="21.5" width="28" height="32" rx="5" fill="#FFFFFF"/>
|
|
6
|
+
<rect x="18" y="29.2" width="12" height="2.6" rx="1.3" fill="#3B6EF5"/>
|
|
7
|
+
<rect x="18" y="34.6" width="17.5" height="2.6" rx="1.3" fill="#3B6EF5"/>
|
|
8
|
+
<rect x="18" y="40" width="8.5" height="2.6" rx="1.3" fill="#3B6EF5"/>
|
|
9
|
+
</svg>
|
|
Binary file
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
<!-- revdeck logo. Wordmark outlines are from Inter, SIL Open Font License 1.1. -->
|
|
2
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 227.43 64" fill="none">
|
|
3
|
+
<rect width="64" height="64" rx="14" fill="#3B6EF5"/>
|
|
4
|
+
<rect x="22" y="12" width="26" height="33" rx="4.5" fill="#7C5CFF"/>
|
|
5
|
+
<rect x="17.5" y="16.5" width="26" height="33" rx="4.5" fill="#D7E3FF"/>
|
|
6
|
+
<rect x="13" y="21.5" width="28" height="32" rx="5" fill="#FFFFFF"/>
|
|
7
|
+
<rect x="18" y="29.2" width="12" height="2.6" rx="1.3" fill="#3B6EF5"/>
|
|
8
|
+
<rect x="18" y="34.6" width="17.5" height="2.6" rx="1.3" fill="#3B6EF5"/>
|
|
9
|
+
<rect x="18" y="40" width="8.5" height="2.6" rx="1.3" fill="#3B6EF5"/>
|
|
10
|
+
<g transform="translate(78.00 47.03) scale(1 -1)">
|
|
11
|
+
<path fill="#E6E9EE" d="M2.26 0.00L2.26 21.66L7.42 21.66L7.42 18.04L7.48 18.04Q8.08 19.93 9.35 20.89Q10.63 21.85 12.74 21.85Q13.26 21.85 13.69 21.83Q14.13 21.80 14.44 21.78L14.44 17.08Q14.15 17.11 13.44 17.17Q12.74 17.22 11.97 17.22Q10.75 17.22 9.76 16.66Q8.76 16.10 8.19 14.98Q7.61 13.85 7.61 12.16L7.61 0.00ZM25.94 -0.49Q22.69 -0.49 20.30 0.96Q17.91 2.41 16.61 4.97Q15.31 7.53 15.31 10.80Q15.31 14.11 16.64 16.67Q17.98 19.23 20.32 20.69Q22.67 22.15 25.72 22.15Q28.08 22.15 29.99 21.33Q31.91 20.52 33.29 19.01Q34.67 17.51 35.42 15.44Q36.16 13.38 36.16 10.89L36.16 9.44L17.38 9.44L17.38 13.07L33.51 13.07L31.11 12.12Q31.11 13.91 30.46 15.22Q29.81 16.52 28.63 17.23Q27.44 17.94 25.81 17.94Q24.20 17.94 23.02 17.23Q21.84 16.52 21.19 15.22Q20.54 13.91 20.54 12.12L20.54 9.79Q20.54 7.97 21.19 6.59Q21.84 5.21 23.08 4.44Q24.31 3.67 26.07 3.67Q27.35 3.67 28.33 4.05Q29.32 4.43 29.98 5.12Q30.64 5.81 30.92 6.72L35.90 6.72Q35.50 4.59 34.11 2.97Q32.71 1.34 30.60 0.43Q28.49 -0.49 25.94 -0.49ZM44.23 0.00L36.11 21.66L41.77 21.66L45.64 10.49Q46.25 8.67 46.80 6.85Q47.36 5.03 47.90 3.21L46.62 3.21Q47.16 5.03 47.70 6.85Q48.24 8.67 48.83 10.49L52.64 21.66L58.22 21.66L50.10 0.00ZM67.63 -0.44Q64.82 -0.44 62.70 0.97Q60.59 2.39 59.42 4.93Q58.26 7.47 58.26 10.84Q58.26 14.18 59.43 16.72Q60.61 19.25 62.72 20.68Q64.83 22.10 67.60 22.10Q69.02 22.10 70.23 21.72Q71.44 21.33 72.42 20.56Q73.40 19.79 74.08 18.60L74.12 18.60L74.12 30.56L79.47 30.56L79.47 0.00L74.20 0.00L74.20 3.31L74.17 3.31Q73.50 2.05 72.51 1.22Q71.52 0.38 70.29 -0.03Q69.06 -0.44 67.63 -0.44ZM68.92 4.00Q70.58 4.00 71.82 4.85Q73.05 5.70 73.73 7.24Q74.40 8.78 74.40 10.84Q74.40 12.92 73.73 14.46Q73.05 15.99 71.82 16.84Q70.58 17.68 68.92 17.68Q67.36 17.68 66.17 16.89Q64.98 16.09 64.33 14.57Q63.67 13.05 63.67 10.84Q63.67 8.65 64.33 7.13Q64.98 5.60 66.17 4.80Q67.36 4.00 68.92 4.00ZM92.82 -0.49Q89.57 -0.49 87.18 0.96Q84.79 2.41 83.49 4.97Q82.20 7.53 82.20 10.80Q82.20 14.11 83.53 16.67Q84.86 19.23 87.21 20.69Q89.56 22.15 92.61 22.15Q94.96 22.15 96.88 21.33Q98.79 20.52 100.17 19.01Q101.56 17.51 102.30 15.44Q103.04 13.38 103.04 10.89L103.04 9.44L84.27 9.44L84.27 13.07L100.39 13.07L97.99 12.12Q97.99 13.91 97.34 15.22Q96.70 16.52 95.51 17.23Q94.33 17.94 92.70 17.94Q91.09 17.94 89.90 17.23Q88.72 16.52 88.07 15.22Q87.43 13.91 87.43 12.12L87.43 9.79Q87.43 7.97 88.07 6.59Q88.72 5.21 89.96 4.44Q91.20 3.67 92.95 3.67Q94.23 3.67 95.22 4.05Q96.20 4.43 96.86 5.12Q97.52 5.81 97.81 6.72L102.79 6.72Q102.39 4.59 100.99 2.97Q99.59 1.34 97.48 0.43Q95.37 -0.49 92.82 -0.49ZM115.34 -0.49Q112.16 -0.49 109.76 0.94Q107.36 2.38 106.03 4.92Q104.69 7.47 104.69 10.80Q104.69 14.15 106.03 16.71Q107.36 19.27 109.76 20.71Q112.16 22.15 115.34 22.15Q117.40 22.15 119.14 21.54Q120.88 20.92 122.18 19.81Q123.49 18.70 124.28 17.18Q125.07 15.67 125.24 13.84L120.01 13.84Q119.87 14.70 119.51 15.42Q119.14 16.13 118.55 16.64Q117.97 17.16 117.18 17.44Q116.40 17.72 115.41 17.72Q113.75 17.72 112.56 16.87Q111.37 16.03 110.74 14.47Q110.10 12.92 110.10 10.80Q110.10 8.71 110.74 7.16Q111.37 5.62 112.56 4.78Q113.75 3.93 115.41 3.93Q116.40 3.93 117.17 4.21Q117.94 4.48 118.50 5.00Q119.07 5.51 119.43 6.24Q119.80 6.96 119.97 7.85L125.24 7.85Q125.10 6.05 124.32 4.53Q123.55 3.01 122.23 1.88Q120.91 0.75 119.16 0.13Q117.41 -0.49 115.34 -0.49ZM132.73 6.66L132.73 12.98L133.26 12.98L141.52 21.66L147.91 21.66L137.91 10.93L136.80 10.93ZM127.85 0.00L127.85 30.56L133.20 30.56L133.20 0.00ZM142.07 0.00L134.70 9.75L138.28 13.48L148.43 0.00Z"/>
|
|
12
|
+
</g>
|
|
13
|
+
</svg>
|
|
Binary file
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
<!-- revdeck logo. Wordmark outlines are from Inter, SIL Open Font License 1.1. -->
|
|
2
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 227.43 64" fill="none">
|
|
3
|
+
<rect width="64" height="64" rx="14" fill="#3B6EF5"/>
|
|
4
|
+
<rect x="22" y="12" width="26" height="33" rx="4.5" fill="#7C5CFF"/>
|
|
5
|
+
<rect x="17.5" y="16.5" width="26" height="33" rx="4.5" fill="#D7E3FF"/>
|
|
6
|
+
<rect x="13" y="21.5" width="28" height="32" rx="5" fill="#FFFFFF"/>
|
|
7
|
+
<rect x="18" y="29.2" width="12" height="2.6" rx="1.3" fill="#3B6EF5"/>
|
|
8
|
+
<rect x="18" y="34.6" width="17.5" height="2.6" rx="1.3" fill="#3B6EF5"/>
|
|
9
|
+
<rect x="18" y="40" width="8.5" height="2.6" rx="1.3" fill="#3B6EF5"/>
|
|
10
|
+
<g transform="translate(78.00 47.03) scale(1 -1)">
|
|
11
|
+
<path fill="#16191D" d="M2.26 0.00L2.26 21.66L7.42 21.66L7.42 18.04L7.48 18.04Q8.08 19.93 9.35 20.89Q10.63 21.85 12.74 21.85Q13.26 21.85 13.69 21.83Q14.13 21.80 14.44 21.78L14.44 17.08Q14.15 17.11 13.44 17.17Q12.74 17.22 11.97 17.22Q10.75 17.22 9.76 16.66Q8.76 16.10 8.19 14.98Q7.61 13.85 7.61 12.16L7.61 0.00ZM25.94 -0.49Q22.69 -0.49 20.30 0.96Q17.91 2.41 16.61 4.97Q15.31 7.53 15.31 10.80Q15.31 14.11 16.64 16.67Q17.98 19.23 20.32 20.69Q22.67 22.15 25.72 22.15Q28.08 22.15 29.99 21.33Q31.91 20.52 33.29 19.01Q34.67 17.51 35.42 15.44Q36.16 13.38 36.16 10.89L36.16 9.44L17.38 9.44L17.38 13.07L33.51 13.07L31.11 12.12Q31.11 13.91 30.46 15.22Q29.81 16.52 28.63 17.23Q27.44 17.94 25.81 17.94Q24.20 17.94 23.02 17.23Q21.84 16.52 21.19 15.22Q20.54 13.91 20.54 12.12L20.54 9.79Q20.54 7.97 21.19 6.59Q21.84 5.21 23.08 4.44Q24.31 3.67 26.07 3.67Q27.35 3.67 28.33 4.05Q29.32 4.43 29.98 5.12Q30.64 5.81 30.92 6.72L35.90 6.72Q35.50 4.59 34.11 2.97Q32.71 1.34 30.60 0.43Q28.49 -0.49 25.94 -0.49ZM44.23 0.00L36.11 21.66L41.77 21.66L45.64 10.49Q46.25 8.67 46.80 6.85Q47.36 5.03 47.90 3.21L46.62 3.21Q47.16 5.03 47.70 6.85Q48.24 8.67 48.83 10.49L52.64 21.66L58.22 21.66L50.10 0.00ZM67.63 -0.44Q64.82 -0.44 62.70 0.97Q60.59 2.39 59.42 4.93Q58.26 7.47 58.26 10.84Q58.26 14.18 59.43 16.72Q60.61 19.25 62.72 20.68Q64.83 22.10 67.60 22.10Q69.02 22.10 70.23 21.72Q71.44 21.33 72.42 20.56Q73.40 19.79 74.08 18.60L74.12 18.60L74.12 30.56L79.47 30.56L79.47 0.00L74.20 0.00L74.20 3.31L74.17 3.31Q73.50 2.05 72.51 1.22Q71.52 0.38 70.29 -0.03Q69.06 -0.44 67.63 -0.44ZM68.92 4.00Q70.58 4.00 71.82 4.85Q73.05 5.70 73.73 7.24Q74.40 8.78 74.40 10.84Q74.40 12.92 73.73 14.46Q73.05 15.99 71.82 16.84Q70.58 17.68 68.92 17.68Q67.36 17.68 66.17 16.89Q64.98 16.09 64.33 14.57Q63.67 13.05 63.67 10.84Q63.67 8.65 64.33 7.13Q64.98 5.60 66.17 4.80Q67.36 4.00 68.92 4.00ZM92.82 -0.49Q89.57 -0.49 87.18 0.96Q84.79 2.41 83.49 4.97Q82.20 7.53 82.20 10.80Q82.20 14.11 83.53 16.67Q84.86 19.23 87.21 20.69Q89.56 22.15 92.61 22.15Q94.96 22.15 96.88 21.33Q98.79 20.52 100.17 19.01Q101.56 17.51 102.30 15.44Q103.04 13.38 103.04 10.89L103.04 9.44L84.27 9.44L84.27 13.07L100.39 13.07L97.99 12.12Q97.99 13.91 97.34 15.22Q96.70 16.52 95.51 17.23Q94.33 17.94 92.70 17.94Q91.09 17.94 89.90 17.23Q88.72 16.52 88.07 15.22Q87.43 13.91 87.43 12.12L87.43 9.79Q87.43 7.97 88.07 6.59Q88.72 5.21 89.96 4.44Q91.20 3.67 92.95 3.67Q94.23 3.67 95.22 4.05Q96.20 4.43 96.86 5.12Q97.52 5.81 97.81 6.72L102.79 6.72Q102.39 4.59 100.99 2.97Q99.59 1.34 97.48 0.43Q95.37 -0.49 92.82 -0.49ZM115.34 -0.49Q112.16 -0.49 109.76 0.94Q107.36 2.38 106.03 4.92Q104.69 7.47 104.69 10.80Q104.69 14.15 106.03 16.71Q107.36 19.27 109.76 20.71Q112.16 22.15 115.34 22.15Q117.40 22.15 119.14 21.54Q120.88 20.92 122.18 19.81Q123.49 18.70 124.28 17.18Q125.07 15.67 125.24 13.84L120.01 13.84Q119.87 14.70 119.51 15.42Q119.14 16.13 118.55 16.64Q117.97 17.16 117.18 17.44Q116.40 17.72 115.41 17.72Q113.75 17.72 112.56 16.87Q111.37 16.03 110.74 14.47Q110.10 12.92 110.10 10.80Q110.10 8.71 110.74 7.16Q111.37 5.62 112.56 4.78Q113.75 3.93 115.41 3.93Q116.40 3.93 117.17 4.21Q117.94 4.48 118.50 5.00Q119.07 5.51 119.43 6.24Q119.80 6.96 119.97 7.85L125.24 7.85Q125.10 6.05 124.32 4.53Q123.55 3.01 122.23 1.88Q120.91 0.75 119.16 0.13Q117.41 -0.49 115.34 -0.49ZM132.73 6.66L132.73 12.98L133.26 12.98L141.52 21.66L147.91 21.66L137.91 10.93L136.80 10.93ZM127.85 0.00L127.85 30.56L133.20 30.56L133.20 0.00ZM142.07 0.00L134.70 9.75L138.28 13.48L148.43 0.00Z"/>
|
|
12
|
+
</g>
|
|
13
|
+
</svg>
|
package/docs/capabilities.md
CHANGED
|
@@ -20,16 +20,16 @@ agent (MCP/CLI) ──unix socket──▶ revdeck daemon ──glab/gh──▶
|
|
|
20
20
|
The core guarantees:
|
|
21
21
|
|
|
22
22
|
- **The human publishes.** Agents write drafts (summaries, findings, replies, line comments). A human
|
|
23
|
-
approves the exact plan in the UI or CLI; the daemon then posts it.
|
|
24
|
-
approval.
|
|
23
|
+
approves the exact plan in the UI or CLI on the host; the daemon then posts it. The devcontainer
|
|
24
|
+
bridge has no `publish.approve`/`publish.commit` (`CAPABILITY`), so an agent cannot create an approval.
|
|
25
25
|
- **Tokens stay on the host.** The daemon calls `glab`/`gh`; platform tokens are not passed over RPC
|
|
26
26
|
and are scrubbed from child environments.
|
|
27
27
|
- **Project rules are explicit.** For changed paths revdeck selects repository documents and exact
|
|
28
28
|
sections (`AGENTS.md`, architecture, style guides, ADRs).
|
|
29
29
|
- **One local database.** Reviews, projects, features, drafts, approvals and audit live in SQLite in
|
|
30
30
|
the user's state directory.
|
|
31
|
-
- **Agent work is review-only.** Checks are planned by the agent and run
|
|
32
|
-
Publishing, resolving and approvals remain human actions.
|
|
31
|
+
- **Agent work is review-only.** Checks are planned by the agent and run by a human in the UI or the
|
|
32
|
+
host CLI; the bridge denies `checks.run`. Publishing, resolving and approvals remain human actions.
|
|
33
33
|
|
|
34
34
|
## Reviews
|
|
35
35
|
|
|
@@ -53,7 +53,7 @@ The core guarantees:
|
|
|
53
53
|
- Optional secret scan with masked previews only.
|
|
54
54
|
- Optional review version history by head/base SHA.
|
|
55
55
|
- Change groups: explicit or derived by file kind/module.
|
|
56
|
-
- Project checks: argv
|
|
56
|
+
- Project checks: argv, path scoping; the agent only plans, a human runs them in the UI or host CLI with the full command shown.
|
|
57
57
|
- Read-only reviews: drafts, findings, comments, reactions, checks and publishing are disabled.
|
|
58
58
|
- Export/import of the legacy file format.
|
|
59
59
|
|
|
@@ -82,7 +82,9 @@ A project is a repository, not a "frontend" or "backend" kind.
|
|
|
82
82
|
- `revdeck projects` lists projects, roots and review counts; `revdeck projects add <path>` registers a
|
|
83
83
|
project before its first review.
|
|
84
84
|
- The UI has a project switcher and a projects home; only the selected project's reviews are shown.
|
|
85
|
-
The selection is stored in the URL and local storage.
|
|
85
|
+
The selection is stored in the URL and local storage. The projects home can add a project, edit its
|
|
86
|
+
display title and working-copy roots, and delete the project with its cached reviews. Deletion never
|
|
87
|
+
touches MRs/PRs or comments on the platform.
|
|
86
88
|
- An MCP server is scoped to the repository it runs in: status/list/open only see that project, and a
|
|
87
89
|
review id or URL from another project is rejected. `REVDECK_ROOT` supports multi-root workspaces.
|
|
88
90
|
- Devcontainers mount a stable bridge to the host daemon; the container never starts its own daemon.
|
|
@@ -124,11 +126,13 @@ a permanent project link; a project appears in a feature while at least one of i
|
|
|
124
126
|
|
|
125
127
|
## User interface
|
|
126
128
|
|
|
127
|
-
- Local Svelte 5 SPA served by the daemon with a
|
|
128
|
-
- Project switcher, projects home, feature list and feature page.
|
|
129
|
+
- Local Svelte 5 SPA served by the daemon with a launch token (rotated with the daemon) and cookie session.
|
|
130
|
+
- Project switcher, projects home (add/edit/delete project), feature list and feature page.
|
|
129
131
|
- Review tabs: Overview, Threads, Findings, Diff, Rules, Analytics.
|
|
130
|
-
- Keyboard shortcuts (`1`–`5`, `o`, `r`, `s`, `p`,
|
|
132
|
+
- Keyboard shortcuts (`1`–`5`, `o`, `r`, `s`, `p`, `?`, `h`), command palette, deep links to threads,
|
|
131
133
|
findings and diff lines with browser Back/Forward.
|
|
134
|
+
- Command reference page (`#/help`): searchable CLI usage, common flags and UI shortcuts, with
|
|
135
|
+
click-to-copy commands. Reachable from the sidebar and by `h`.
|
|
132
136
|
- Markdown preview, attachment button, reactions, line comments, publish dialog with exact plan.
|
|
133
137
|
- Russian and English interface; language is independent from the language of review output.
|
|
134
138
|
- Responsive sidebar and mobile backdrop; dark/light theme via CSS variables.
|
|
@@ -137,6 +141,12 @@ a permanent project link; a project appears in a feature while at least one of i
|
|
|
137
141
|
|
|
138
142
|
- Unix socket with `0700` directory and `0600` socket; loopback UI only; `Host`/`Origin` checks,
|
|
139
143
|
`HttpOnly` `SameSite=Strict` cookie, CSP.
|
|
144
|
+
- The devcontainer bridge is agent-scoped (`read`/`draft`): `publish.*`, `checks.run`, decisions,
|
|
145
|
+
platform writes and feature/project administration return `CAPABILITY`. The UI token is not mounted
|
|
146
|
+
into the container.
|
|
147
|
+
- Rule and profile documents must be git-tracked, have a safe extension and are denied for local
|
|
148
|
+
secrets (`.env*`, `.git/config`, `.npmrc`, `.revdeck.local.*`, keys); reads verify the opened fd's
|
|
149
|
+
realpath to close symlink TOCTOU.
|
|
140
150
|
- Platform CLI calls without a shell, outside the working copy, with a scrubbed environment; secrets
|
|
141
151
|
redacted in logs and errors.
|
|
142
152
|
- MR text, comments and diff are untrusted data; the skill and context say so.
|
|
@@ -144,7 +154,8 @@ a permanent project link; a project appears in a feature while at least one of i
|
|
|
144
154
|
external images are links, not loads.
|
|
145
155
|
- Approvals are random, single-use, TTL-bound and tied to the review and plan hash.
|
|
146
156
|
- Project and feature scopes are **context isolation**, not a security boundary: one daemon and one
|
|
147
|
-
database remain
|
|
157
|
+
database remain. The bridge limits writes, but read methods still see the local database; a process
|
|
158
|
+
with access to the user's home can read it.
|
|
148
159
|
- Hard isolation would require a separate daemon/state directory under another user/container; that is
|
|
149
160
|
outside the current model and breaks cross-project review.
|
|
150
161
|
|
|
@@ -190,7 +201,8 @@ the agent process and containers would still need a host process. File exchange
|
|
|
190
201
|
|
|
191
202
|
Consequences: daemon lifecycle, socket permissions, a bridge for containers, version-matched clients,
|
|
192
203
|
background sync and SSE. One daemon serves several repositories; `root` is passed on open and config is
|
|
193
|
-
read from that root.
|
|
204
|
+
read from that root. A devcontainer client passes the host worktree path (`REVDECK_HOST_ROOT`) instead
|
|
205
|
+
of the container mount path, so the host daemon reads the project config and rules.
|
|
194
206
|
|
|
195
207
|
### Project scopes
|
|
196
208
|
|
package/docs/configuration.md
CHANGED
|
@@ -43,7 +43,8 @@ publish:
|
|
|
43
43
|
|
|
44
44
|
`revdeck` also reads `.revdeck.local.yml` (or `.revdeck.local.yaml`) next to the base config. Use it for
|
|
45
45
|
local roles, checks, output language or provider settings without changing the shared file. `init`
|
|
46
|
-
adds both local names to `.gitignore`.
|
|
46
|
+
adds both local names to `.gitignore`. If the file is **tracked by git**, it came from the repository
|
|
47
|
+
(not from the user) and is ignored as personal overrides; a warning is shown.
|
|
47
48
|
|
|
48
49
|
Merge rules:
|
|
49
50
|
|
|
@@ -53,6 +54,13 @@ Merge rules:
|
|
|
53
54
|
- local file alone is allowed, but a base `.revdeck.yml` is recommended for the team;
|
|
54
55
|
- YAML/schema errors in the local file are reported, never silently ignored.
|
|
55
56
|
|
|
57
|
+
Rule and `context.sources` documents are read only if they are **tracked by git**, have a safe
|
|
58
|
+
extension (`.md`, `.mdx`, `.rst`, `.txt`, `.adoc`; profiles may also be `.yaml`, `.yml`, `.json`) and
|
|
59
|
+
do not match the secret deny-list (`.env*`, `.git/**`, `.npmrc`, `.revdeck.local.*`, `*.pem`, keys).
|
|
60
|
+
The opened file descriptor's realpath is checked inside the root, so a parent symlink swap cannot
|
|
61
|
+
escape the repository. In a directory without `.git` (tests, scratch dirs) the tracked check is
|
|
62
|
+
skipped.
|
|
63
|
+
|
|
56
64
|
```yaml
|
|
57
65
|
# .revdeck.local.yml — do not commit
|
|
58
66
|
review:
|
|
@@ -66,7 +74,7 @@ output:
|
|
|
66
74
|
|
|
67
75
|
| Field | Default | Meaning |
|
|
68
76
|
|---|---|---|
|
|
69
|
-
| `type` | `auto` | `auto` — inferred from the git remote; otherwise an explicit platform |
|
|
77
|
+
| `type` | `auto` | `auto` — inferred from the git remote; otherwise an explicit platform. `revdeck init` writes the remote platform, or `gitlab` when the host is not recognized (`--provider` overrides it) |
|
|
70
78
|
| `host` | from the remote | host without a scheme |
|
|
71
79
|
| `project` | from the remote | GitLab `group/project`, GitHub `owner/repo` |
|
|
72
80
|
| `base` | `develop`/`main` | base for the local diff |
|
|
@@ -91,6 +99,10 @@ revdeck projects # list projects, review counts and roots
|
|
|
91
99
|
revdeck projects add /path/repo # register a project before its first review
|
|
92
100
|
```
|
|
93
101
|
|
|
102
|
+
In the projects home, **Add project** registers a working copy, **Edit** changes the display title
|
|
103
|
+
and the working-copy roots, and **Delete** removes the project and its cached reviews from revdeck.
|
|
104
|
+
MRs/PRs and comments on the platform are never touched by project deletion.
|
|
105
|
+
|
|
94
106
|
The UI and agent scope are described in [architecture.md](architecture.md) and
|
|
95
107
|
[capabilities](capabilities.md#project-scopes).
|
|
96
108
|
|
|
@@ -308,8 +320,10 @@ alternative. Examples: `src/**/*.ts`, `docs/{guides,adr}/**`, `**/*.test.ts`.
|
|
|
308
320
|
|
|
309
321
|
## checks
|
|
310
322
|
|
|
311
|
-
Checks are argv arrays
|
|
312
|
-
|
|
323
|
+
Checks are argv arrays that execute code on the host. The repository controls them, so they are
|
|
324
|
+
human-only: the devcontainer bridge denies `checks.run`, and the CLI refuses `--run` inside a
|
|
325
|
+
container. `argv: ["sh","-c","…"]` is still an argv array and executes arbitrary code — read the full
|
|
326
|
+
command before confirming.
|
|
313
327
|
|
|
314
328
|
| Field | Meaning |
|
|
315
329
|
|---|---|
|
|
@@ -317,11 +331,13 @@ string would allow arbitrary code to be executed during a review.
|
|
|
317
331
|
| `name` | display name |
|
|
318
332
|
| `argv` | command and arguments; the executable comes first |
|
|
319
333
|
| `when` | glob paths: run only if the diff touched them; empty — always |
|
|
320
|
-
| `consent` |
|
|
334
|
+
| `consent` | deprecated and ignored: checks always require a human UI/host-CLI run |
|
|
321
335
|
| `timeoutMs` | timeout (default 300,000) |
|
|
322
336
|
|
|
323
|
-
Running:
|
|
324
|
-
|
|
337
|
+
Running: a human uses **Run matching** in the Rules tab (the dialog shows the full argv) or
|
|
338
|
+
`revdeck checks <N> --run --yes` on the host; `revdeck checks` prints the commands first. Read-only
|
|
339
|
+
reviews disable the runner. The agent can only show the plan; the bridge returns `CAPABILITY` for
|
|
340
|
+
`checks.run`. Host checks are not sandboxed yet.
|
|
325
341
|
|
|
326
342
|
## publish
|
|
327
343
|
|
|
@@ -335,8 +351,9 @@ confirmation. Read-only reviews disable the runner. The MCP tool only shows the
|
|
|
335
351
|
|---|---|
|
|
336
352
|
| `REVDECK_STATE_DIR` | state directory (default `~/.local/state/revdeck`) |
|
|
337
353
|
| `REVDECK_RUNTIME_DIR` | socket directory (default `$XDG_RUNTIME_DIR/revdeck`) |
|
|
338
|
-
| `REVDECK_URL` + `REVDECK_TOKEN` | connect to the daemon over HTTP (container/port forwarding) |
|
|
354
|
+
| `REVDECK_URL` + `REVDECK_TOKEN` | connect to the daemon over HTTP (container/port forwarding); the token is agent-scoped, not the UI token |
|
|
339
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 |
|
|
340
357
|
| `REVDECK_UI_HOST` | host used by `revdeck ui` from a container (for example `host.docker.internal`) |
|
|
341
358
|
| `REVDECK_ROOT` | project root for the MCP server |
|
|
342
359
|
| `REVDECK_FEATURE` | feature id for a feature-scoped MCP session; the current project must be a member |
|
package/docs/integrations.md
CHANGED
|
@@ -131,8 +131,8 @@ revdeck devcontainer # print the mounts and environment
|
|
|
131
131
|
revdeck devcontainer --write # merge them into .devcontainer/devcontainer.json
|
|
132
132
|
```
|
|
133
133
|
|
|
134
|
-
`--write` mounts the stable bridge `~/.local/state/revdeck/devcontainer/run` (socket) and
|
|
135
|
-
`~/.local/state/revdeck/devcontainer/state` (read-only `daemon.json
|
|
134
|
+
`--write` mounts the stable bridge `~/.local/state/revdeck/devcontainer/run` (agent-scoped socket) and
|
|
135
|
+
`~/.local/state/revdeck/devcontainer/state` (read-only info `daemon.json`: capabilities and an agent-scoped token, no UI token) and sets:
|
|
136
136
|
|
|
137
137
|
```json
|
|
138
138
|
{
|
|
@@ -148,31 +148,45 @@ absolute home directory, so the shared repository file is valid for every develo
|
|
|
148
148
|
environment variables, `runArgs`, comments and foreign keys are preserved; only the two revdeck mounts
|
|
149
149
|
and the `REVDECK_*` keys are managed.
|
|
150
150
|
|
|
151
|
+
`REVDECK_HOST_ROOT` closes the path gap between the two sides: the daemon reads `.revdeck.yml` and rule
|
|
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.
|
|
159
|
+
|
|
151
160
|
The daemon creates the bridge socket on startup. On the host run `revdeck daemon restart`, then rebuild
|
|
152
161
|
the container. Inside the container `revdeck` never starts its own daemon: if the socket is unreachable
|
|
153
162
|
it fails with a `DEVCONTAINER` error and a hint. `revdeck doctor` does not look for `glab`/`gh` in the
|
|
154
163
|
container.
|
|
155
164
|
|
|
156
|
-
On macOS with Docker Desktop the host Unix socket is not proxied. The bridge
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
165
|
+
On macOS with Docker Desktop the host Unix socket is not proxied. The bridge is agent-scoped: it allows
|
|
166
|
+
`read`/`draft` only, and its `daemon.json` contains no UI token. The UI is opened on the host; the
|
|
167
|
+
container uses the mounted socket. If the socket is not reachable, set `REVDECK_URL` +
|
|
168
|
+
`REVDECK_TOKEN` from the user's environment (an agent-scoped token); there is no automatic HTTP
|
|
169
|
+
fallback with the UI token.
|
|
170
|
+
|
|
171
|
+
On Linux, if the socket is not reachable, the same `REVDECK_URL` + `REVDECK_TOKEN` path applies. Do not
|
|
172
|
+
expose the UI token to the container; `--host 0.0.0.0` is for a browser on another trusted machine,
|
|
173
|
+
not for giving the agent more rights.
|
|
163
174
|
|
|
164
175
|
`revdeck devcontainer --write` adds the `REVDECK_*` variables to the `revdeck` MCP server in `.mcp.json`
|
|
165
|
-
and `.cursor/mcp.json` inside the repository.
|
|
166
|
-
|
|
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.
|
|
167
180
|
|
|
168
|
-
The container user must be able to connect to the host socket (
|
|
169
|
-
|
|
170
|
-
|
|
181
|
+
The container user must be able to connect to the host bridge socket (the bridge socket is `0666`
|
|
182
|
+
inside the mounted directory `0755`; its methods are limited by the `read`/`draft` capability). The UI
|
|
183
|
+
is opened on the host with `revdeck ui`; the UI token is not passed to the container.
|
|
171
184
|
|
|
172
185
|
Fallbacks:
|
|
173
186
|
|
|
174
|
-
1. `REVDECK_URL=http://host.docker.internal:<port>` and `REVDECK_TOKEN=<token>` — the
|
|
175
|
-
with the daemon started on the host with `--host 0.0.0.0
|
|
187
|
+
1. `REVDECK_URL=http://host.docker.internal:<port>` and `REVDECK_TOKEN=<agent-scoped-token>` — the
|
|
188
|
+
HTTP transport, with the daemon started on the host with `--host 0.0.0.0`; the token is
|
|
189
|
+
agent-scoped and must not be the UI token.
|
|
176
190
|
2. `revdeck export <N>` on the host and `revdeck import <N>` in the container — a file bridge.
|
|
177
191
|
|
|
178
192
|
## Several projects and devcontainers
|
package/docs/protocol.md
CHANGED
|
@@ -8,9 +8,12 @@
|
|
|
8
8
|
JSON lines, one request/response per line.
|
|
9
9
|
2. **Devcontainer bridge socket**: `~/.local/state/revdeck/devcontainer/run/daemon.sock`, the same
|
|
10
10
|
protocol on a stable home-based path. The daemon serves it in addition to the primary socket and
|
|
11
|
-
writes
|
|
12
|
-
|
|
13
|
-
is not
|
|
11
|
+
writes an info file to `~/.local/state/revdeck/devcontainer/state/daemon.json`. The bridge is
|
|
12
|
+
**agent-scoped**: only the `read`/`draft` capability set is allowed. The info file contains an
|
|
13
|
+
`agentToken` for the restricted `/api/rpc` transport; the UI token is not in that file.
|
|
14
|
+
3. **HTTP**: `POST /api/rpc` on loopback with a cookie session. The UI token lives on the host; it is
|
|
15
|
+
not mounted into the container. For a container where the socket is not forwarded, set
|
|
16
|
+
`REVDECK_URL` + `REVDECK_TOKEN` from the user's environment; the token is agent-scoped.
|
|
14
17
|
4. **UI HTTP**: `/api/*` and SSE `/api/events` for the browser.
|
|
15
18
|
|
|
16
19
|
## Messages
|
|
@@ -33,8 +36,9 @@ Error:
|
|
|
33
36
|
{"id": 1, "error": {"message": "...", "code": "APPROVAL", "hint": "..."}}
|
|
34
37
|
```
|
|
35
38
|
|
|
36
|
-
`id` is a number.
|
|
37
|
-
|
|
39
|
+
`id` is a number. The primary socket is authorized by its file permissions (0600). The devcontainer
|
|
40
|
+
bridge is authorized by transport capability: `agent` may read and draft, but human-only methods return
|
|
41
|
+
`{"error":{"code":"CAPABILITY"}}` even if the socket is reachable.
|
|
38
42
|
|
|
39
43
|
## Methods
|
|
40
44
|
|
|
@@ -43,6 +47,8 @@ authorization is enforced by the socket file's permissions.
|
|
|
43
47
|
| `ping` | — | version, protocol, pid |
|
|
44
48
|
| `projects.list` | — | registered projects with review counts and roots |
|
|
45
49
|
| `projects.register` | `root` | project resolved from that working copy |
|
|
50
|
+
| `projects.update` | `project`, `title?`, `roots?` | rename a project or replace its working-copy roots |
|
|
51
|
+
| `projects.remove` | `project` | delete a project and its cached reviews (platform untouched) |
|
|
46
52
|
| `reviews.list` | `project?` / `root?` | saved reviews, optionally scoped to one project |
|
|
47
53
|
| `features.list` | `project?`, `includeArchived?` | feature summaries |
|
|
48
54
|
| `features.get` | `feature` | feature with ordered members and roles |
|
|
@@ -81,8 +87,21 @@ authorization is enforced by the socket file's permissions.
|
|
|
81
87
|
| `publish.approve` | `review`, `kind`, `ids[]`, `hash` | `approvalId`, `expiresAt` |
|
|
82
88
|
| `publish.commit` | `review`, `approvalId` | per-item results |
|
|
83
89
|
| `rules.get` | `review` | rules markdown, checks, warnings |
|
|
84
|
-
| `checks.run` | `review`, `allowRun`, `ids[]` | check results |
|
|
85
|
-
|
|
90
|
+
| `checks.run` | `review`, `allowRun`, `ids[]` | check results (human-only) |
|
|
91
|
+
|
|
92
|
+
## Capabilities
|
|
93
|
+
|
|
94
|
+
- **human** — primary socket (0600), UI session on the host, host CLI. All methods.
|
|
95
|
+
- **agent** — devcontainer bridge and any restricted HTTP token. Read/draft methods only:
|
|
96
|
+
`reviews.*` (read/open/refresh), `diff.get`, `rules.get`, `features.list/get/context/forReview`,
|
|
97
|
+
`features.addNote/updateNote/deleteNote` (author forced to `agent`; only own notes),
|
|
98
|
+
`drafts.put`, `findings.put/list`, `summary.put`, `notes.*` (server-only publication fields ignored),
|
|
99
|
+
`publish.preview`, `projects.list`, `versions.*`, `analytics.get`, `secrets.get`.
|
|
100
|
+
|
|
101
|
+
Human-only methods return `CAPABILITY` on the bridge: `publish.approve`, `publish.commit`,
|
|
102
|
+
`checks.run`, `decisions.put`, `comments.update/delete`, `reactions.*`, `attachments.upload`,
|
|
103
|
+
`reviews.remove`, `projects.register/update/remove`, and feature administration
|
|
104
|
+
(`features.create/update/delete/addReviews/removeReview/reorder`).
|
|
86
105
|
|
|
87
106
|
## Project scope
|
|
88
107
|
|
|
@@ -126,8 +145,9 @@ isolation boundary. Feature membership is the only explicit cross-project door.
|
|
|
126
145
|
3. `publish.commit` verifies that the approval has not been used and has not expired, marks it as used,
|
|
127
146
|
and executes only `items`. Items that have already been posted are skipped.
|
|
128
147
|
|
|
129
|
-
The agent cannot call `publish.approve`: the MCP tool does not expose it
|
|
130
|
-
in the CLI
|
|
148
|
+
The agent cannot call `publish.approve`: the MCP tool does not expose it, and the bridge denies it with
|
|
149
|
+
`CAPABILITY`. A human confirms in the UI or in the host CLI (`--yes`); the host CLI uses the primary
|
|
150
|
+
human socket.
|
|
131
151
|
|
|
132
152
|
## HTTP API (UI)
|
|
133
153
|
|
|
@@ -138,11 +158,11 @@ in the CLI with `--yes`.
|
|
|
138
158
|
| GET | `/api/health` | liveness |
|
|
139
159
|
| GET | `/api/projects` | registered projects |
|
|
140
160
|
| GET | `/api/reviews?project=` | review list, optionally scoped |
|
|
141
|
-
| POST | `/api/projects/register` | register
|
|
161
|
+
| POST | `/api/projects/register`, `/update`, `/remove` | register, edit or delete a project |
|
|
142
162
|
| GET | `/api/state?review=` | snapshot for the UI |
|
|
143
163
|
| GET | `/api/diff?review=&file=` | file hunks |
|
|
144
164
|
| GET | `/api/rules?review=` | rules |
|
|
145
|
-
| GET | `/api/events` | SSE: `review` |
|
|
165
|
+
| GET | `/api/events` | SSE: `review`, `feature`, `project` |
|
|
146
166
|
| POST | `/api/reviews/open`, `/api/reviews/refresh` | open/refresh |
|
|
147
167
|
| POST | `/api/drafts`, `/api/findings`, `/api/summary`, `/api/decisions` | drafts |
|
|
148
168
|
| POST | `/api/notes` | `action: add/update/delete` |
|
|
@@ -158,5 +178,6 @@ in the CLI with `--yes`.
|
|
|
158
178
|
|
|
159
179
|
## Versioning
|
|
160
180
|
|
|
161
|
-
`PROTOCOL_VERSION` in `src/version.ts` is
|
|
162
|
-
the same package version. A method mismatch returns `METHOD` with a hint to update
|
|
181
|
+
`PROTOCOL_VERSION` in `src/version.ts` is reported in `ping` and in the bridge info; the client and
|
|
182
|
+
daemon must be the same package version. A method mismatch returns `METHOD` with a hint to update
|
|
183
|
+
revdeck. Version 2 is the agent-scoped bridge.
|
package/docs/ru/README.md
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
<p align="center"><img src="../assets/brand/icon-128.png" alt="revdeck" width="72"></p>
|
|
2
|
+
|
|
1
3
|
# Документация revdeck
|
|
2
4
|
|
|
3
5
|
[English](../README.md) | Русский
|
|
@@ -13,5 +15,6 @@
|
|
|
13
15
|
| Протокол RPC и HTTP | [../protocol.md](../protocol.md) | [protocol.md](protocol.md) |
|
|
14
16
|
| Модель угроз | [../threat-model.md](../threat-model.md) | [threat-model.md](threat-model.md) |
|
|
15
17
|
| Интеграции с харнессами | [../integrations.md](../integrations.md) | [integrations.md](integrations.md) |
|
|
18
|
+
| Бренд-ассеты | [(EN)](../assets/brand/README.md) | [(EN)](../assets/brand/README.md) |
|
|
16
19
|
|
|
17
20
|
Начните с [README](../../README.ru.md): установка, команды и настройка MCP.
|