revdeck 0.9.0 → 0.11.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 +68 -0
- package/README.md +16 -1
- package/README.ru.md +18 -2
- package/dist/cli.js +210 -6
- package/dist/cli.js.map +3 -3
- package/dist/daemon.js +778 -60
- package/dist/daemon.js.map +4 -4
- package/dist/mcp.js +152 -6
- package/dist/mcp.js.map +2 -2
- package/dist/ui/assets/index-7dUnDWDU.js +18 -0
- package/dist/ui/assets/index-ss3m4AHi.css +1 -0
- package/dist/ui/index.html +2 -2
- package/docs/architecture.md +14 -0
- package/docs/capabilities.md +22 -2
- package/docs/configuration.md +5 -1
- package/docs/protocol.md +9 -3
- package/docs/ru/architecture.md +14 -0
- package/docs/ru/capabilities.md +21 -2
- package/docs/ru/configuration.md +4 -1
- package/docs/ru/protocol.md +9 -3
- package/package.json +1 -1
- package/skills/revdeck/en/Feedback.md +5 -0
- package/skills/revdeck/en/Review.md +30 -8
- package/skills/revdeck/en/SKILL.md +13 -2
- package/skills/revdeck/ru/Feedback.md +4 -0
- package/skills/revdeck/ru/Review.md +29 -6
- package/skills/revdeck/ru/SKILL.md +12 -2
- package/dist/ui/assets/index-BIVPy49b.css +0 -1
- package/dist/ui/assets/index-CP-jcwGi.js +0 -18
|
@@ -0,0 +1 @@
|
|
|
1
|
+
:root{--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light dark;--bg:#f6f7f9;--panel:#fff;--panel-2:#f0f2f5;--border:#dfe3e8;--text:#16191d;--muted:#68707a;--accent:#3b6ef5;--accent-soft:#e6edff;--purple:#7c5cff;--ok:#1f8f4e;--ok-soft:#e4f6ea;--warn:#b26a00;--warn-soft:#fff2dc;--danger:#c93838;--danger-soft:#fdeaea;--add:#e6f6ec;--add-text:#116b35;--del:#fdecec;--del-text:#a12525;--code:#f1f3f6;--shadow:0 1px 2px #1018280f, 0 8px 24px #1018280f;--radius:10px;--mono:ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;--sans:-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Ubuntu, "Helvetica Neue", sans-serif}@media (prefers-color-scheme:dark){:root{--lightningcss-light: ;--lightningcss-dark:initial;--bg:#101216;--panel:#171a20;--panel-2:#1d2128;--border:#2a2f38;--text:#e6e9ee;--muted:#98a1ad;--accent:#6f95ff;--accent-soft:#1e2a4d;--purple:#9b8cff;--ok:#4cc27d;--ok-soft:#16311f;--warn:#e0a33a;--warn-soft:#33270f;--danger:#f07a7a;--danger-soft:#361a1a;--add:#12291b;--add-text:#7ed3a1;--del:#2d1717;--del-text:#f0a0a0;--code:#1f242c;--shadow:0 1px 2px #0000004d, 0 8px 24px #00000040}}*{box-sizing:border-box}html,body{background:var(--bg);height:100%;color:var(--text);font:14px/1.5 var(--sans);margin:0}#app{height:100%}button,input,textarea,select{font:inherit;color:inherit}button{cursor:pointer}a{color:var(--accent);text-decoration:none}a:hover{text-decoration:underline}code,pre{font-family:var(--mono);font-size:12.5px}pre{background:var(--code);border-radius:8px;padding:10px 12px;overflow:auto}.md p{margin:.35em 0}.md ul,.md ol{margin:.35em 0;padding-left:1.4em}.md h1,.md h2,.md h3,.md h4{margin:.8em 0 .35em;font-size:1em}.md blockquote{border-left:3px solid var(--border);color:var(--muted);margin:.4em 0;padding-left:10px}.md code{background:var(--code);border-radius:5px;padding:1px 5px}.md pre code{background:0 0;padding:0}.shell{grid-template-columns:290px minmax(0,1fr);height:100%;display:grid}.sidebar{border-right:1px solid var(--border);background:var(--panel);flex-direction:column;min-height:0;display:flex}.brand{letter-spacing:-.01em;align-items:center;gap:9px;padding:16px 16px 10px;font-weight:650;display:flex}.brand .brand-icon{border-radius:6px;flex:none;width:22px;height:22px}.sidebar-list{flex:1;padding:6px;overflow:auto}.review-row{text-align:left;cursor:pointer;background:0 0;border:1px solid #0000;border-radius:8px;width:100%;margin-bottom:2px;padding:8px 9px;display:block}.review-row:hover{background:var(--panel-2)}.review-row.active{background:var(--accent-soft);border-color:color-mix(in srgb, var(--accent) 30%, transparent)}.review-row .title{white-space:nowrap;text-overflow:ellipsis;font-weight:550;display:block;overflow:hidden}.review-row .meta{color:var(--muted);white-space:nowrap;text-overflow:ellipsis;font-size:12px;display:block;overflow:hidden}.sidebar-footer{border-top:1px solid var(--border);color:var(--muted);padding:10px 14px;font-size:12px}.main{flex-direction:column;min-width:0;min-height:0;display:flex}.header{border-bottom:1px solid var(--border);background:var(--panel);padding:16px 22px 10px}.header h1{letter-spacing:-.01em;margin:0;font-size:17px;line-height:1.35}.header .meta{color:var(--muted);flex-wrap:wrap;gap:6px 14px;margin-top:5px;font-size:12.5px;display:flex}.header-actions{align-items:center;gap:8px;margin-left:auto;display:flex}.title-row{align-items:flex-start;gap:14px;display:flex}.tabs{border-bottom:1px solid var(--border);background:var(--panel);gap:2px;padding:0 18px;display:flex;overflow-x:auto}.tab{color:var(--muted);white-space:nowrap;background:0 0;border:0;border-bottom:2px solid #0000;padding:10px 12px;font-weight:550}.tab.active{color:var(--text);border-bottom-color:var(--accent)}.tab .count{background:var(--panel-2);min-width:18px;color:var(--muted);text-align:center;border-radius:20px;margin-left:6px;padding:1px 5px;font-size:11px;display:inline-block}.content{flex:1;min-height:0;padding:18px 22px 60px;overflow:auto}.btn{border:1px solid var(--border);background:var(--panel);border-radius:8px;padding:6px 11px;font-weight:550}.btn:hover{background:var(--panel-2)}.btn.primary{background:var(--accent);border-color:var(--accent);color:#fff}.btn.primary:hover{filter:brightness(1.05)}.btn.danger{color:var(--danger);border-color:color-mix(in srgb, var(--danger) 35%, var(--border))}.btn:disabled{opacity:.55;cursor:default}.card{background:var(--panel);border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow);margin-bottom:12px;padding:14px 16px}.card.flat{box-shadow:none}.agent-message{border-left:3px solid var(--border);padding:2px 0 2px 10px}.agent-message.from-agent{border-left-color:var(--accent)}.card-head{flex-wrap:wrap;align-items:center;gap:10px;display:flex}.card-head .grow{flex:1;min-width:0}.card-title{overflow-wrap:anywhere;font-weight:600}.muted{color:var(--muted)}.small{font-size:12px}.mono{font-family:var(--mono)}.badge{background:var(--panel-2);color:var(--muted);white-space:nowrap;border-radius:20px;align-items:center;gap:5px;padding:2px 8px;font-size:11.5px;font-weight:600;display:inline-flex}.badge.blocker{background:var(--danger-soft);color:var(--danger)}.badge.major{background:var(--warn-soft);color:var(--warn)}.badge.minor{background:var(--accent-soft);color:var(--accent)}.badge.question{background:var(--panel-2);color:var(--muted)}.badge.ok{background:var(--ok-soft);color:var(--ok)}.badge.err{background:var(--danger-soft);color:var(--danger)}.path-link{color:var(--accent);font-family:var(--mono);cursor:pointer;background:0 0;border:0;padding:0;font-size:12px}textarea,input[type=text],input[type=number],select{background:var(--panel);border:1px solid var(--border);resize:vertical;border-radius:8px;width:100%;padding:7px 9px}textarea:focus,input:focus,select:focus{outline:2px solid color-mix(in srgb, var(--accent) 35%, transparent);outline-offset:-1px;border-color:var(--accent)}textarea.agent{background:var(--panel-2)}.row{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.row.end{justify-content:flex-end}.spread{justify-content:space-between;align-items:center;gap:10px;display:flex}.stack{flex-direction:column;gap:8px;display:flex}.snippet{border:1px solid var(--border);background:var(--panel);max-height:240px;font-family:var(--mono);border-radius:8px;margin:8px 0;font-size:12px;overflow:auto}.snippet-line{white-space:pre;grid-template-columns:52px 16px minmax(0,1fr);gap:0;padding-right:8px;display:grid}.snippet-line .n{color:var(--muted);text-align:right;-webkit-user-select:none;user-select:none;border-right:1px solid var(--border);padding-right:10px}.snippet-line .k{text-align:center;color:var(--muted)}.snippet-line.add{background:var(--add);color:var(--add-text)}.snippet-line.del{background:var(--del);color:var(--del-text)}.snippet-line.target{outline:1px solid var(--accent);outline-offset:-1px}.diff-line.target-line{background:var(--accent-soft)}.file-list{border-right:1px solid var(--border);flex:0 0 300px;width:300px;padding:6px;overflow:auto}.file-item{text-align:left;background:0 0;border:0;border-radius:7px;align-items:center;gap:8px;width:100%;padding:6px 8px;font-size:12.5px;display:flex}.file-item:hover{background:var(--panel-2)}.file-item.active{background:var(--accent-soft)}.file-item .name{text-overflow:ellipsis;white-space:nowrap;text-align:left;direction:rtl;flex:1;overflow:hidden}.file-item .counts{color:var(--muted);font-family:var(--mono);font-size:11px}.split{height:100%;min-height:0;display:flex}.diff-view{background:var(--panel);flex:1;min-width:0;overflow:auto}.diff-content{width:max-content;min-width:100%;display:block}.hunk-head{background:var(--panel-2);width:100%;color:var(--muted);font-family:var(--mono);border-top:1px solid var(--border);border-bottom:1px solid var(--border);z-index:1;padding:3px 10px;font-size:11.5px;position:sticky;top:0}.diff-line{width:100%;font-family:var(--mono);white-space:pre;cursor:pointer;grid-template-columns:52px 52px 16px minmax(max-content,1fr);font-size:12px;line-height:1.55;display:grid}.diff-line:hover{background:var(--panel-2)}.diff-line .n{color:var(--muted);text-align:right;-webkit-user-select:none;user-select:none;border-right:1px solid var(--border);padding-right:8px}.diff-line .k{text-align:center;color:var(--muted)}.diff-line.add{background:var(--add);color:var(--add-text)}.diff-line.del{background:var(--del);color:var(--del-text)}.diff-line .text{min-width:max-content;padding-left:8px}.note-composer{background:var(--panel);border-top:1px solid var(--border);padding:10px 12px;position:sticky;bottom:0;box-shadow:0 -6px 20px #0000000f}.empty{text-align:center;max-width:560px;color:var(--muted);margin:10vh auto}.empty h2{color:var(--text);margin-bottom:6px}.toast{background:var(--panel);border:1px solid var(--border);border-left:3px solid var(--accent);box-shadow:var(--shadow);z-index:50;border-radius:9px;max-width:420px;padding:10px 14px;position:fixed;bottom:18px;right:18px}.toast.error{border-left-color:var(--danger)}.toast.ok{border-left-color:var(--ok)}.overlay{z-index:40;background:#0006;justify-content:center;align-items:flex-start;padding-top:8vh;display:flex;position:fixed;inset:0}.backdrop{background:0 0;border:0;padding:0;position:absolute;inset:0}.dialog{background:var(--panel);border:1px solid var(--border);width:min(760px,92vw);max-height:80vh;box-shadow:var(--shadow);border-radius:12px;padding:18px;position:relative;overflow:auto}.palette{background:var(--panel);border:1px solid var(--border);width:min(560px,92vw);box-shadow:var(--shadow);border-radius:12px;position:relative;overflow:hidden}.palette input{border:0;border-bottom:1px solid var(--border);border-radius:0;padding:12px 14px}.palette-item{text-align:left;background:0 0;border:0;width:100%;padding:9px 14px;display:block}.palette-item.on{background:var(--accent-soft)}.kbd{font-family:var(--mono);border:1px solid var(--border);color:var(--muted);background:var(--panel-2);border-bottom-width:2px;border-radius:5px;padding:0 5px;font-size:11px}.switch{cursor:pointer;white-space:nowrap;align-items:center;gap:7px;display:inline-flex}.stats{flex-wrap:wrap;gap:18px;margin:10px 0 4px;display:flex}.stats .value{letter-spacing:-.02em;font-size:20px;font-weight:650}.stats .label{color:var(--muted);font-size:12px}.section-title{text-transform:uppercase;letter-spacing:.06em;color:var(--muted);margin:18px 0 8px;font-size:12px;font-weight:650}.alert{border:1px solid color-mix(in srgb, var(--warn) 35%, var(--border));background:var(--warn-soft);color:var(--text);border-radius:9px;margin-bottom:12px;padding:10px 12px;font-size:13px}.alert.error{border-color:color-mix(in srgb, var(--danger) 35%, var(--border));background:var(--danger-soft)}mark{background:var(--warn-soft);color:inherit;border-radius:3px;padding:0 2px}@media (max-width:860px){.shell{grid-template-columns:1fr}.sidebar{display:none}.file-list{flex-basis:auto;width:100%;max-height:160px}.split{flex-direction:column}}.lang-switch{gap:4px;margin-top:8px;display:flex}.lang-switch button{border:1px solid var(--border);background:var(--panel);color:var(--muted);border-radius:6px;flex:1;padding:2px 0;font-size:11px;font-weight:650}.lang-switch button.on{background:var(--accent-soft);border-color:color-mix(in srgb, var(--accent) 35%, var(--border));color:var(--accent)}.reactions{flex-wrap:wrap;align-items:center;gap:4px;margin-top:6px;display:flex}.reaction{border:1px solid var(--border);background:var(--panel);min-height:24px;color:var(--text);cursor:pointer;border-radius:999px;padding:0 8px;font-size:12px;line-height:22px}.reaction:hover:not(:disabled){border-color:var(--accent);background:var(--panel-2)}.reaction.mine{border-color:color-mix(in srgb, var(--accent) 45%, var(--border));background:var(--accent-soft);color:var(--accent)}.reaction.add{color:var(--muted);padding:0 10px}.reaction.pending{opacity:.55;cursor:progress}.reaction-picker{border:1px solid var(--border);background:var(--panel);border-radius:999px;flex-wrap:wrap;gap:2px;padding:2px;display:inline-flex}.reaction-picker .reaction{background:0 0;border:0;min-height:22px;font-size:14px;line-height:20px}.md img.md-media,.md video.md-media{border-radius:8px;max-width:100%;height:auto;margin:8px 0;display:block}.md video.md-media{max-height:70vh}.md-editor{border:1px solid var(--border);background:var(--panel);border-radius:8px;overflow:hidden}.md-editor:focus-within{border-color:var(--accent);box-shadow:0 0 0 2px color-mix(in srgb, var(--accent) 20%, transparent)}.md-editor-head{border-bottom:1px solid var(--border);background:var(--panel-2);align-items:center;gap:8px;padding:4px 6px;display:flex}.md-editor-tabs{gap:2px;display:flex}.md-editor-tabs button,.md-editor-tools button{color:var(--muted);background:0 0;border:0;border-radius:6px;padding:3px 7px;font-size:12px;line-height:20px}.md-editor-tabs button:hover,.md-editor-tools button:hover{background:var(--panel);color:var(--text)}.md-editor-tabs button.active{background:var(--panel);color:var(--text);box-shadow:var(--shadow);font-weight:650}.md-editor-tools{flex-wrap:wrap;align-items:center;gap:1px;margin-left:auto;display:flex}.md-editor-tools .btn{min-height:26px;padding:2px 8px;font-size:12px}.md-editor textarea{resize:vertical;background:0 0;border:0;border-radius:0;min-height:64px;display:block}.md-editor textarea:focus{border:0;outline:none}.md-editor-preview{min-height:64px;max-height:420px;padding:8px 10px;overflow:auto}.md-editor.disabled{opacity:.85}.shell.sidebar-collapsed{grid-template-columns:minmax(0,1fr)}.shell.sidebar-collapsed .sidebar{display:none}.sidebar-collapse{color:var(--muted);background:0 0;border:0;border-radius:6px;margin-left:auto;padding:0 6px;font-size:20px;line-height:20px}.sidebar-collapse:hover{color:var(--text);background:var(--panel-2)}.btn.icon{padding:4px 9px;line-height:20px}.sidebar-backdrop{display:none}@media (max-width:860px){.shell:not(.sidebar-collapsed) .sidebar{z-index:30;width:290px;box-shadow:var(--shadow);display:flex;position:fixed;inset:0 auto 0 0}.shell:not(.sidebar-collapsed) .sidebar-backdrop{z-index:20;background:#00000073;border:0;padding:0;display:block;position:fixed;inset:0}}.field{flex-direction:column;gap:4px;margin-top:10px;display:flex}.field>span{color:var(--muted);font-size:12px}.field small{display:block}.sidebar-actions{padding:6px 8px 8px}.sidebar-actions .btn{justify-content:center;width:100%}.card.highlight{border-color:var(--accent);box-shadow:0 0 0 2px color-mix(in srgb, var(--accent) 18%, transparent)}.file-tools{z-index:1;background:var(--panel);flex-direction:column;gap:6px;padding:2px 2px 8px;display:flex;position:sticky;top:0}.file-tools input:not([type=checkbox]){padding:5px 8px;font-size:12px}.file-nav{justify-content:space-between;align-items:center;display:flex}.file-row{border-radius:7px;align-items:center;gap:2px;display:flex}.file-row.active{background:var(--accent-soft)}.file-row .file-item{flex:1;min-width:0}.file-row .file-item.active{background:0 0}.file-check{width:auto;accent-color:var(--ok);margin-left:4px}@media (max-width:860px){.header{padding:12px}.title-row{flex-direction:column;gap:10px}.header h1{font-size:18px}.header-actions{flex-wrap:wrap;width:100%;margin-left:0}.header-actions .btn{flex:auto}}.finding-location{align-items:center;gap:2px;min-width:0;max-width:55%;display:flex}.finding-location .path-link{text-overflow:ellipsis;white-space:nowrap;min-width:0;overflow:hidden}.loading-bar{background:var(--panel-2);height:2px;overflow:hidden}.loading-bar:after{content:"";background:var(--accent);width:35%;height:100%;animation:1s ease-in-out infinite revdeck-loading;display:block}@keyframes revdeck-loading{0%{transform:translate(-100%)}to{transform:translate(300%)}}.sidebar-review-row{border-radius:8px;align-items:stretch;gap:2px;margin-bottom:2px;display:flex}.sidebar-review-row.active{background:var(--accent-soft)}.sidebar-review-row .review-row{flex:1;min-width:0;margin-bottom:0}.review-remove{color:var(--muted);opacity:0;background:0 0;border:0;border-radius:6px;width:24px;font-size:16px;line-height:1}.sidebar-review-row:hover .review-remove,.sidebar-review-row.active .review-remove,.review-remove:focus-visible{opacity:1}.review-remove:hover{color:var(--danger);background:var(--danger-soft)}.card,.card-head,.card-head .grow,.spread,.stack{min-width:0}.header h1,.header .meta span,.md,.md a,.mono{overflow-wrap:anywhere}.thread-location,.note-location{vertical-align:bottom;align-items:center;gap:2px;min-width:0;max-width:100%;display:inline-flex}.note-location{max-width:60%}.thread-location .path-link,.note-location .path-link{text-overflow:ellipsis;white-space:nowrap;min-width:0;overflow:hidden}.card table{table-layout:fixed;width:100%}.card td,.card th{overflow-wrap:anywhere;vertical-align:top}.review-banners{flex-direction:column;gap:10px;margin:10px 22px 0;display:flex}.review-banners .alert{margin:0}@media (max-width:860px){.review-banners{margin:10px 12px 0}}.readonly-banner{margin:0}.sidebar{position:relative}.project-switch{padding:2px 12px 0}.project-switch-label{letter-spacing:.09em;color:var(--muted);margin:0 4px 6px;font-size:10px;font-weight:700}.project-switch-button{text-align:left;border:1px solid var(--border);background:var(--panel);border-radius:9px;align-items:center;gap:9px;width:100%;padding:8px 9px;display:flex;box-shadow:0 1px 1px #10182808}.project-switch-button:hover{border-color:color-mix(in srgb, var(--muted) 35%, var(--border));background:var(--panel-2)}.project-dot{background:var(--project-color,var(--accent));border-radius:50%;flex:0 0 8px;width:8px;height:8px}.project-switch-text{flex-direction:column;flex:1;min-width:0;line-height:1.25;display:flex}.project-switch-name{white-space:nowrap;text-overflow:ellipsis;font-size:13px;font-weight:650;overflow:hidden}.project-switch-path{color:var(--muted);white-space:nowrap;text-overflow:ellipsis;font-size:10.5px;overflow:hidden}.project-switch-chev{color:var(--muted);font-size:13px}.project-popover-backdrop{z-index:35;background:0 0;border:0;padding:0;position:fixed;inset:0}.project-popover{z-index:40;background:var(--panel);border:1px solid color-mix(in srgb, var(--muted) 30%, var(--border));border-radius:12px;width:300px;padding:10px;position:absolute;top:112px;left:12px;box-shadow:0 12px 40px #1018282e,0 2px 8px #10182814}.project-popover:before{content:"";background:var(--panel);border-left:1px solid color-mix(in srgb, var(--muted) 30%, var(--border));border-top:1px solid color-mix(in srgb, var(--muted) 30%, var(--border));width:10px;height:10px;position:absolute;top:-6px;left:22px;transform:rotate(45deg)}.project-popover-head{align-items:center;padding:2px 4px 8px;font-size:13px;font-weight:700;display:flex}.project-popover-kbd{font-family:var(--mono);color:var(--muted);border:1px solid var(--border);border-bottom-width:2px;border-radius:5px;margin-left:auto;padding:0 5px;font-size:10px;line-height:17px}.project-search{border:1px solid var(--border);color:var(--muted);background:color-mix(in srgb, var(--bg) 55%, var(--panel));border-radius:8px;align-items:center;gap:7px;padding:6px 8px;display:flex}.project-search input{background:0 0;border:0;outline:0;flex:1;min-width:0;font-size:12.5px}.project-popover-label{letter-spacing:.09em;color:var(--muted);padding:10px 5px 4px;font-size:9.5px;font-weight:700}.project-popover-list{max-height:310px;overflow:auto}.project-popover-row{border-radius:8px;align-items:stretch;display:flex}.project-popover-row:hover,.project-popover-row.active{background:var(--panel-2)}.project-popover-item{text-align:left;background:0 0;border:0;border-radius:8px;flex:1;align-items:center;gap:8px;min-width:0;padding:7px 6px;display:flex}.project-popover-text{flex-direction:column;flex:1;min-width:0;line-height:1.25;display:flex}.project-popover-name{white-space:nowrap;text-overflow:ellipsis;font-size:12.8px;font-weight:600;overflow:hidden}.project-popover-path{color:var(--muted);white-space:nowrap;text-overflow:ellipsis;font-size:10.3px;overflow:hidden}.project-popover-count{color:var(--muted);background:var(--panel);border:1px solid var(--border);border-radius:10px;padding:0 6px;font-size:10.5px;font-weight:600}.project-popover-check{color:var(--accent);text-align:center;width:12px;font-size:12px;font-weight:700}.project-pin{color:var(--muted);opacity:0;cursor:pointer;background:0 0;border:0;width:24px;font-size:12px}.project-popover-row:hover .project-pin,.project-pin.on,.project-pin:focus-visible{opacity:1}.project-pin.on{color:var(--warn)}.project-popover-sep{background:var(--border);height:1px;margin:7px 4px}.project-popover-action{width:100%;color:var(--accent);text-align:left;background:0 0;border:0;border-radius:7px;padding:6px;font-weight:600}.project-popover-action:hover{background:var(--accent-soft)}.project-popover-hint{color:var(--muted);font-size:10.5px;font-family:var(--mono);margin:5px 6px 0}.project-popover-empty{padding:8px 6px}.sidebar-project-summary{color:var(--muted);margin-bottom:5px;font-size:11.5px}.sidebar-help{border:1px solid var(--border);background:var(--panel);width:100%;color:var(--muted);text-align:left;cursor:pointer;border-radius:7px;align-items:center;gap:6px;margin:8px 0 6px;padding:5px 7px;font-size:11.5px;display:flex}.sidebar-help:hover{color:var(--text);border-color:color-mix(in srgb, var(--accent) 45%, var(--border))}.sidebar-help-mark{border:1px solid var(--border);border-radius:50%;justify-content:center;align-items:center;width:16px;height:16px;font-size:10.5px;font-weight:700;display:inline-flex}.breadcrumbs{color:var(--muted);align-items:center;gap:6px;margin-bottom:6px;font-size:11.5px;display:flex}.breadcrumbs .sep{opacity:.55}.breadcrumbs .cur{color:var(--text);font-weight:600}.breadcrumb-link{color:var(--muted);font:inherit;cursor:pointer;background:0 0;border:0;padding:0}.breadcrumb-link:hover{color:var(--accent)}.projects-home{flex:1;min-height:0;padding:24px 30px 40px;overflow:auto}.projects-home-head{flex-wrap:wrap;justify-content:space-between;align-items:flex-start;gap:18px;margin-bottom:18px;display:flex}.projects-home-intro{flex:360px;min-width:320px}.projects-home-actions{flex-wrap:nowrap;flex:none;justify-content:flex-end;align-items:center;gap:8px;max-width:100%;margin-left:auto;display:flex}.projects-home-actions .btn{white-space:nowrap;flex:none}.projects-home-head h1{margin:0 0 4px;font-size:21px}.projects-home-head p{max-width:720px;margin:0}.project-home-search{border:1px solid var(--border);background:var(--panel);border-radius:8px;flex:160px;width:210px;min-width:120px;padding:6px 9px;font-size:12.5px}.projects-grid{grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:12px;display:grid}.project-card{text-align:left;border:1px solid var(--border);background:var(--panel);border-radius:var(--radius);box-shadow:var(--shadow);flex-direction:column;gap:8px;padding:13px 14px;display:flex}.project-card:hover{border-color:color-mix(in srgb, var(--accent) 45%, var(--border));background:color-mix(in srgb, var(--accent-soft) 35%, var(--panel))}.project-card-open{width:100%;color:inherit;font:inherit;text-align:left;cursor:pointer;background:0 0;border:0;flex-direction:column;gap:5px;padding:0;display:flex}.project-card-actions{gap:6px;margin-top:2px;display:flex}.project-card-action{border:1px solid var(--border);background:var(--panel);color:var(--muted);cursor:pointer;border-radius:6px;padding:2px 7px;font-size:11px}.project-card-action:hover{color:var(--text);border-color:color-mix(in srgb, var(--accent) 45%, var(--border))}.project-card-action.danger:hover{color:var(--danger,#d33);border-color:color-mix(in srgb, var(--danger,#d33) 45%, var(--border))}.project-card-top{align-items:center;gap:8px;display:flex}.project-card-name{text-overflow:ellipsis;white-space:nowrap;min-width:0;font-weight:650;overflow:hidden}.project-card-count{color:var(--muted);white-space:nowrap;margin-left:auto;font-size:11px}.project-card-path,.project-card-roots{color:var(--muted);font-size:11.5px;font-family:var(--mono);text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.project-card-roots{font-family:var(--sans);font-size:10.8px}.help-page{flex:1;min-height:0;padding:24px 30px 40px;overflow:auto}.help-search{border:1px solid var(--border);background:var(--panel);max-width:430px;color:var(--muted);border-radius:8px;align-items:center;gap:7px;margin:0 0 18px;padding:6px 10px;display:flex}.help-search input{font:inherit;color:var(--text);background:0 0;border:0;flex:1;padding:0}.help-search input:focus{outline:none}.help-group{margin:0 0 22px}.help-group h2{letter-spacing:-.01em;margin:0 0 9px;font-size:14px}.help-commands{gap:8px;display:grid}.help-command{border:1px solid var(--border);border-radius:var(--radius);background:var(--panel);padding:10px 12px}.help-command p{color:var(--muted);margin:6px 0 0;font-size:12.5px;line-height:1.45}.help-command-head{align-items:center;display:flex}.help-usage{width:100%;color:var(--text);font:inherit;text-align:left;cursor:pointer;background:0 0;border:0;align-items:baseline;gap:8px;padding:0;display:flex}.help-usage code{background:var(--code);overflow-wrap:anywhere;border-radius:5px;padding:2px 6px;font-size:12px}.help-copy{color:var(--muted);opacity:0;margin-left:auto;font-size:12px;transition:opacity .12s}.help-usage:hover .help-copy,.help-usage:focus-visible .help-copy{opacity:1}.help-example{border:1px dashed var(--border);color:var(--muted);cursor:pointer;overflow-wrap:anywhere;background:0 0;border-radius:6px;margin-top:7px;padding:4px 7px;font-size:11.5px}.help-example:hover{color:var(--text);border-color:color-mix(in srgb, var(--accent) 45%, var(--border))}.help-chips{flex-wrap:wrap;gap:7px;display:flex}.help-chip{border:1px solid var(--border);background:var(--panel);color:var(--muted);border-radius:7px;align-items:center;gap:6px;padding:4px 8px;font-size:11.5px;display:inline-flex}.help-chip code,.help-chip kbd{color:var(--text);font-size:11.5px}.project-edit-key{font-family:var(--mono);overflow-wrap:anywhere;margin-top:8px}@media (max-width:860px){.help-page,.projects-home{padding:16px}.projects-home-head{flex-direction:column}.projects-home-intro{flex-basis:auto;min-width:0}.projects-home-actions{flex-wrap:wrap;justify-content:flex-start;width:100%;margin-left:0}.project-home-search{flex-basis:100%;width:100%}}.sidebar-features{border-top:1px solid var(--border);max-height:30%;padding:8px 8px 4px;overflow:auto}.sidebar-feature-head{color:var(--muted);letter-spacing:.09em;justify-content:space-between;align-items:center;padding:2px 8px 5px;font-size:10px;font-weight:700;display:flex}.sidebar-feature-row{text-align:left;width:100%;color:var(--text);background:0 0;border:0;border-radius:7px;align-items:center;gap:7px;padding:6px 8px;display:flex}.sidebar-feature-row:hover{background:var(--panel-2)}.sidebar-feature-row.active{background:var(--accent-soft);box-shadow:inset 3px 0 0 var(--purple)}.sidebar-feature-row .f-icon{color:var(--purple)}.sidebar-feature-title{white-space:nowrap;text-overflow:ellipsis;flex:1;min-width:0;font-size:12.5px;font-weight:600;overflow:hidden}.sidebar-feature-count{color:var(--muted);font-size:10.5px}.sidebar-feature-all{width:100%;color:var(--accent);text-align:left;background:0 0;border:0;border-radius:6px;padding:5px 8px;font-size:11.5px;font-weight:600}.sidebar-feature-all:hover{background:var(--accent-soft)}.review-feature-badges{flex-wrap:wrap;gap:6px;margin-top:8px;display:flex}.feature-badge,.feature-add{border:1px solid var(--purple);background:var(--accent-soft);color:var(--text);border-radius:20px;padding:2px 9px;font-size:11px;font-weight:600}.feature-badge:hover,.feature-add:hover{background:var(--panel-2)}.feature-add{color:var(--muted);background:0 0;border-style:dashed}.feature-page,.feature-list-page{flex:1;min-height:0;overflow:auto}.feature-page-head{padding:20px 30px 0}.feature-title-row{align-items:flex-start;gap:16px;display:flex}.feature-title-row h1{flex-wrap:wrap;align-items:center;gap:9px;margin:0;font-size:23px;display:flex}.feature-meta{flex-wrap:wrap;align-items:center;gap:7px;margin-top:7px;display:flex}.feature-actions{flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:7px;display:flex}.feature-body{padding:16px 30px 40px}.feature-brief{margin-bottom:14px}.feature-projects{flex-direction:column;gap:12px;display:flex}.feature-project{padding:0;overflow:hidden}.feature-project-head{border-bottom:1px solid var(--border);background:color-mix(in srgb, var(--panel-2) 55%, var(--panel));align-items:center;gap:8px;padding:11px 14px;display:flex}.feature-project-name{font-weight:650}.feature-member{border-bottom:1px solid var(--border);align-items:center;gap:10px;padding:10px 14px;display:flex}.feature-member:last-child{border-bottom:0}.feature-role-input{border:1px solid var(--border);background:var(--panel);width:76px;color:var(--muted);font-family:var(--mono);text-transform:uppercase;letter-spacing:.04em;border-radius:5px;padding:2px 5px;font-size:10.5px}.feature-member-text{flex:1;min-width:0}.feature-member-title{color:var(--text);font:inherit;text-align:left;cursor:pointer;background:0 0;border:0;padding:0;font-weight:600;display:block}.feature-member-title:hover{color:var(--accent)}.feature-member-text .small{text-overflow:ellipsis;white-space:nowrap;margin-top:2px;overflow:hidden}.feature-context{margin-top:14px}.feature-context pre{white-space:pre-wrap;max-height:420px}.feature-list-page .feature-page-head{padding-bottom:6px}.feature-list-page .feature-body{padding-top:8px}.feature-list{flex-direction:column;gap:8px;display:flex}.feature-list-row{border:1px solid var(--border);background:var(--panel);text-align:left;border-radius:9px;align-items:center;gap:14px;width:100%;padding:11px 14px;display:flex;box-shadow:0 1px 2px #10182808}.feature-list-row:hover{border-color:color-mix(in srgb, var(--accent) 40%, var(--border));background:color-mix(in srgb, var(--accent-soft) 30%, var(--panel))}.feature-list-row:disabled{opacity:.6}.feature-list-main{flex-direction:column;flex:1;gap:3px;min-width:0;display:flex}.feature-list-title{align-items:center;gap:7px;font-weight:650;display:flex}.feature-list-projects{align-items:center;gap:4px;display:flex}.feature-pick-list{flex-direction:column;gap:6px;max-height:55vh;margin-top:10px;display:flex;overflow:auto}.review-picker{border:1px solid var(--border);background:var(--panel);border-radius:8px;padding:8px}.review-picker-list{flex-direction:column;gap:2px;max-height:260px;margin-top:7px;display:flex;overflow:auto}.review-picker-row{cursor:pointer;border-radius:6px;align-items:center;gap:8px;padding:5px 6px;display:flex}.review-picker-row:hover{background:var(--panel-2)}.review-picker-row.added{opacity:.6}.review-picker-text{flex-direction:column;flex:1;min-width:0;line-height:1.25;display:flex}.review-picker-title{white-space:nowrap;text-overflow:ellipsis;font-size:12.5px;font-weight:600;overflow:hidden}.review-picker-meta{color:var(--muted);white-space:nowrap;text-overflow:ellipsis;font-size:10.5px;overflow:hidden}@media (max-width:860px){.feature-page-head,.feature-body{padding-left:16px;padding-right:16px}.feature-title-row{flex-direction:column}.feature-actions{justify-content:flex-start}}.feature-contract{white-space:pre-wrap;max-height:360px;margin-bottom:0}.feature-notes{margin-top:14px}.feature-note-list{flex-direction:column;gap:8px;margin:10px 0 14px;display:flex}.feature-note{border:1px solid var(--border);background:color-mix(in srgb, var(--panel-2) 35%, var(--panel));border-radius:8px;padding:9px 10px}.feature-note-body{white-space:pre-wrap;margin:6px 0}.feature-note-form{border-top:1px solid var(--border);flex-direction:column;gap:8px;padding-top:10px;display:flex}.feature-note-form textarea,.feature-note-title{border:1px solid var(--border);background:var(--panel);font:inherit;border-radius:7px;padding:6px 8px}.feature-note-title{flex:1;min-width:120px}.sidebar-reopen{z-index:40;display:inline-flex;position:fixed;bottom:16px;left:16px;box-shadow:0 8px 24px #00000038}@media (max-width:860px){.sidebar-reopen{bottom:12px;left:12px}}.v-root.svelte-kiuzqw{position:relative}.v-container.svelte-kiuzqw{width:100%;position:relative}.v-page.svelte-kiuzqw{will-change:transform;width:100%;display:flow-root;position:absolute;top:0;left:0}.v-item.svelte-kiuzqw{display:block}
|
package/dist/ui/index.html
CHANGED
|
@@ -9,8 +9,8 @@
|
|
|
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-
|
|
13
|
-
<link rel="stylesheet" crossorigin href="/assets/index-
|
|
12
|
+
<script type="module" crossorigin src="/assets/index-7dUnDWDU.js"></script>
|
|
13
|
+
<link rel="stylesheet" crossorigin href="/assets/index-ss3m4AHi.css">
|
|
14
14
|
</head>
|
|
15
15
|
<body>
|
|
16
16
|
<div id="app"></div>
|
package/docs/architecture.md
CHANGED
|
@@ -53,6 +53,8 @@ agent (MCP/CLI) ──▶ revdeck daemon ──glab/gh──▶ GitLab/GitHub
|
|
|
53
53
|
`publish.approve` → `publish.commit`. The bridge has no approve/commit (`CAPABILITY`); the daemon
|
|
54
54
|
executes only the items included in the approved plan.
|
|
55
55
|
6. Background sync every 2 minutes refreshes open reviews and broadcasts SSE events to the UI.
|
|
56
|
+
7. The UI reads a review from the cached snapshot (`/api/state`); a stale snapshot is refreshed in the
|
|
57
|
+
background and the update arrives over SSE, so opening never waits for the platform.
|
|
56
58
|
|
|
57
59
|
`revdeck review 42` and `revdeck feedback 42` are thin CLI wrappers over the same `reviews.open` +
|
|
58
60
|
`rules.get` path. The scenario is a client-side context option: it shapes the agent instructions but
|
|
@@ -67,6 +69,12 @@ is not stored in the review, the daemon or the database.
|
|
|
67
69
|
- `ReviewRef` — platform, host, project, number. `reviewId` — `platform:host/project!number`.
|
|
68
70
|
- `DiffFile`/`Hunk`/`DiffLine` — line numbers in the old and new versions; a finding's `line` always
|
|
69
71
|
refers to the new file.
|
|
72
|
+
- `previews` — in-memory, TTL-limited snapshots for read-only MR/PR viewing; they reuse provider
|
|
73
|
+
`info`/`diff`/`threads` and never enter SQLite or the review list.
|
|
74
|
+
- `review_events` — append-only quality log (actor, type, finding/thread/rule, payload); metrics read
|
|
75
|
+
it instead of relying on the current snapshot.
|
|
76
|
+
- `ReviewInfo.merge` — mergeability at the last sync: target branch, diff base/head, platform detail
|
|
77
|
+
and `clean`/`conflict`/`behind`/`unknown`/`unavailable`. It is separate from the merge-base diff.
|
|
70
78
|
- `Thread`/`Note` — shared discussion model.
|
|
71
79
|
- `Finding` — a review finding with `id`, `fingerprint`, severity, file/line, text, and status
|
|
72
80
|
(`draft`, `accepted`, `rejected`, `published`, `fixed`, `stale`).
|
|
@@ -142,6 +150,12 @@ documents declared in `context.sources` of each repository (`context.maxBytes` c
|
|
|
142
150
|
|
|
143
151
|
- The diff is parsed on the server; the UI receives files as a list and hunks one file at a time.
|
|
144
152
|
- Review state does not contain the full diff; SSE reports changes and the UI refetches the state.
|
|
153
|
+
- Opening a review returns the cached snapshot; a stale snapshot is refreshed in the background. A
|
|
154
|
+
one-entry parsed-snapshot cache and one snippet index per view keep large reviews cheap.
|
|
155
|
+
- SSE heartbeats gate the polling fallback; review/feature/project events reload only their scope, and
|
|
156
|
+
unchanged lists are not reassigned in the UI.
|
|
157
|
+
- Threads and findings use a measured, page-windowed virtual list in the UI; only visible pages are in
|
|
158
|
+
the DOM, while focus, editors and deep links stay pinned.
|
|
145
159
|
- Snippets for threads and findings are computed on the server and size-limited.
|
|
146
160
|
- Rule context size is controlled by `rules.maxDocumentBytes` and `rules.maxTotalBytes` (`0` =
|
|
147
161
|
unlimited); MCP context can additionally be capped by the `max_bytes` parameter.
|
package/docs/capabilities.md
CHANGED
|
@@ -37,7 +37,26 @@ The core guarantees:
|
|
|
37
37
|
commits, diff, threads, notes and reactions.
|
|
38
38
|
- Open a review by number, URL, project reference or the current branch; multiple reviews can be
|
|
39
39
|
opened in one call.
|
|
40
|
-
- Local triage queue with cached snapshots; background sync and SSE keep the UI fresh.
|
|
40
|
+
- Local triage queue with cached snapshots; background sync and SSE keep the UI fresh. The UI opens a
|
|
41
|
+
review from the cached snapshot immediately; a stale snapshot is refreshed in the background, so
|
|
42
|
+
opening never waits for `glab`/`gh`. Background reloads merge into the current review, so tab loaders
|
|
43
|
+
such as Rules, Analytics and Diff are not restarted on every SSE/poll tick. SSE heartbeats gate the
|
|
44
|
+
polling fallback, and review, feature and project events reload only their own scope.
|
|
45
|
+
- Read-only MR/PR preview: `POST /api/previews/open` fetches info, diff and threads into a short-lived in-memory
|
|
46
|
+
cache; the preview route hides findings, comments, reactions and publishing, and never creates a
|
|
47
|
+
review record or metrics event.
|
|
48
|
+
- Project-level quality metrics are computed from an append-only `review_events` log: acceptance,
|
|
49
|
+
publish and rule-grounded rates, coverage completeness, time to first finding, review cycle, duplicates/rule candidates and
|
|
50
|
+
actor counts. Findings may carry a `rule` reference; review events include opened/synced, summary,
|
|
51
|
+
findings, decisions, publish and checks.
|
|
52
|
+
- Review context carries a conservative risk profile (`low`/`medium`/`high`, `fast`/`full`) derived from
|
|
53
|
+
the changed paths and diff size. The summary records `coverage` and `unknowns`, so an empty findings
|
|
54
|
+
list is not mistaken for a fully checked review.
|
|
55
|
+
- Reviews keep their merge context: target branch, diff base/head and platform mergeability
|
|
56
|
+
(`clean`/`conflict`/`behind`/`unknown`/`unavailable`). Context and UI surface conflicts or a branch
|
|
57
|
+
behind target before the agent draws conclusions.
|
|
58
|
+
- Threads and findings are virtualized above 30 cards: measured pages of 10 render only when visible,
|
|
59
|
+
focused cards stay mounted, and deep links scroll to the target page.
|
|
41
60
|
- Unified diff with per-file hunks, line numbers in old/new versions, changed-file filters and
|
|
42
61
|
viewed-state per review.
|
|
43
62
|
- Threads: read, reply, resolve, react; line comments from the human; reactions on MR/PR and notes.
|
|
@@ -60,7 +79,8 @@ The core guarantees:
|
|
|
60
79
|
## Agent interfaces
|
|
61
80
|
|
|
62
81
|
- **MCP server** over stdio with tools for status, list, open, context, threads, diff, rules, draft
|
|
63
|
-
replies, draft findings, summary, line notes, feature context/notes,
|
|
82
|
+
replies, draft findings, summary, line notes, review messages to the agent, feature context/notes,
|
|
83
|
+
publish preview and publish.
|
|
64
84
|
- **CLI** with the same capabilities for harnesses without MCP.
|
|
65
85
|
- **Explicit scenario entry points**: `revdeck review` / `revdeck feedback` and `/revdeck review|feedback`
|
|
66
86
|
fix "someone else's MR" or "your own MR" before the agent starts. `revdeck_context` takes
|
package/docs/configuration.md
CHANGED
|
@@ -77,7 +77,11 @@ output:
|
|
|
77
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) |
|
|
78
78
|
| `host` | from the remote | host without a scheme |
|
|
79
79
|
| `project` | from the remote | GitLab `group/project`, GitHub `owner/repo` |
|
|
80
|
-
| `base` | `develop`/`main` | base for the local diff |
|
|
80
|
+
| `base` | `develop`/`main` | base for the local diff; an open MR always uses its target branch from the platform |
|
|
81
|
+
|
|
82
|
+
For an open MR the target is taken from the MR, not from `base`. The review context shows the target
|
|
83
|
+
branch, the diff base/head and the platform merge status. `base` is only a fallback for reviewing a
|
|
84
|
+
local branch/diff without an MR.
|
|
81
85
|
|
|
82
86
|
Explicit CLI arguments (`--platform`, `--project`, `--host`) take precedence over the config, and the
|
|
83
87
|
config takes precedence over the git remote. This way, tampering with `.git/config` cannot redirect the
|
package/docs/protocol.md
CHANGED
|
@@ -83,6 +83,9 @@ bridge is authorized by transport capability: `agent` may read and draft, but hu
|
|
|
83
83
|
| `comments.delete` | `review`, `noteId` | delete an own platform comment |
|
|
84
84
|
| `attachments.upload` | `review`, `name`, `contentType`, `data` (base64) | `name`, absolute `url`, `markdown` |
|
|
85
85
|
| `notes.delete` | `review`, `noteId` | `{ok}` |
|
|
86
|
+
| `messages.list` | `review` | review-level messages to the agent |
|
|
87
|
+
| `messages.add` | `review`, `text` | new message; the role follows the client policy (`human`/`agent`) |
|
|
88
|
+
| `metrics.get` | `project`, `from`, `to` | project-level quality metrics |
|
|
86
89
|
| `publish.preview` | `review`, `kind`, `ids[]` | plan + warnings |
|
|
87
90
|
| `publish.approve` | `review`, `kind`, `ids[]`, `hash` | `approvalId`, `expiresAt` |
|
|
88
91
|
| `publish.commit` | `review`, `approvalId` | per-item results |
|
|
@@ -96,7 +99,7 @@ bridge is authorized by transport capability: `agent` may read and draft, but hu
|
|
|
96
99
|
`reviews.*` (read/open/refresh), `diff.get`, `rules.get`, `features.list/get/context/forReview`,
|
|
97
100
|
`features.addNote/updateNote/deleteNote` (author forced to `agent`; only own notes),
|
|
98
101
|
`drafts.put`, `findings.put/list`, `summary.put`, `notes.*` (server-only publication fields ignored),
|
|
99
|
-
`publish.preview`, `projects.list`, `versions.*`, `analytics.get`, `secrets.get`.
|
|
102
|
+
`publish.preview`, `projects.list`, `versions.*`, `analytics.get`, `metrics.get`, `messages.list/add`, `secrets.get`.
|
|
100
103
|
|
|
101
104
|
Human-only methods return `CAPABILITY` on the bridge: `publish.approve`, `publish.commit`,
|
|
102
105
|
`checks.run`, `decisions.put`, `comments.update/delete`, `reactions.*`, `attachments.upload`,
|
|
@@ -160,10 +163,13 @@ human socket.
|
|
|
160
163
|
| GET | `/api/reviews?project=` | review list, optionally scoped |
|
|
161
164
|
| POST | `/api/projects/register`, `/update`, `/remove` | register, edit or delete a project |
|
|
162
165
|
| GET | `/api/state?review=` | snapshot for the UI |
|
|
163
|
-
| GET | `/api/diff?review=&file=` | file hunks |
|
|
166
|
+
| GET | `/api/diff?review=&file=` | file hunks (including preview) |
|
|
164
167
|
| GET | `/api/rules?review=` | rules |
|
|
165
|
-
| GET | `/api/events` | SSE: `review`, `feature`, `project` |
|
|
168
|
+
| GET | `/api/events` | SSE: `review`, `feature`, `project`, `heartbeat` |
|
|
166
169
|
| POST | `/api/reviews/open`, `/api/reviews/refresh` | open/refresh |
|
|
170
|
+
| POST | `/api/previews/open` | read-only MR/PR preview without creating a review |
|
|
171
|
+
| GET | `/api/metrics?project=&from=&to=` | quality metrics |
|
|
172
|
+
| GET/POST | `/api/messages?review=` | messages to the agent |
|
|
167
173
|
| POST | `/api/drafts`, `/api/findings`, `/api/summary`, `/api/decisions` | drafts |
|
|
168
174
|
| POST | `/api/notes` | `action: add/update/delete` |
|
|
169
175
|
| GET | `/api/reactions?review=¬es=` | reactions for comment ids |
|
package/docs/ru/architecture.md
CHANGED
|
@@ -52,6 +52,8 @@ agent (MCP/CLI) ──▶ revdeck daemon ──glab/gh──▶ GitLab/GitHub
|
|
|
52
52
|
`publish.approve` → `publish.commit`. У моста нет approve/commit (`CAPABILITY`); демон выполняет
|
|
53
53
|
только пункты, вошедшие в подтверждённый план.
|
|
54
54
|
6. Фоновый sync раз в 2 минуты обновляет открытые ревью и рассылает SSE-события UI.
|
|
55
|
+
7. UI читает ревью из кешированного снимка (`/api/state`); устаревший снимок обновляется в фоне, а
|
|
56
|
+
результат приходит по SSE, поэтому открытие не ждёт платформу.
|
|
55
57
|
|
|
56
58
|
`revdeck review 42` и `revdeck feedback 42` — тонкие CLI-обёртки над тем же путём `reviews.open` +
|
|
57
59
|
`rules.get`. Сценарий — клиентская опция контекста: она задаёт инструкции агенту, но не сохраняется в
|
|
@@ -66,6 +68,12 @@ agent (MCP/CLI) ──▶ revdeck daemon ──glab/gh──▶ GitLab/GitHub
|
|
|
66
68
|
- `ReviewRef` — платформа, хост, проект, номер. `reviewId` — `platform:host/project!number`.
|
|
67
69
|
- `DiffFile`/`Hunk`/`DiffLine` — номера строк по старой и новой версии; `line` замечания всегда по
|
|
68
70
|
новому файлу.
|
|
71
|
+
- `previews` — in-memory снимки с TTL для просмотра MR/PR; используют `info`/`diff`/`threads`
|
|
72
|
+
провайдера и не попадают в SQLite или список ревью.
|
|
73
|
+
- `review_events` — append-only журнал качества (актор, тип, finding/thread/rule, payload); метрики
|
|
74
|
+
читают его, а не только текущий снимок.
|
|
75
|
+
- `ReviewInfo.merge` — mergeability на момент sync: target, база/head diff, детали платформы и
|
|
76
|
+
`clean`/`conflict`/`behind`/`unknown`/`unavailable`. Это отдельно от merge-base diff.
|
|
69
77
|
- `Thread`/`Note` — общая модель обсуждений.
|
|
70
78
|
- `Finding` — замечание с `id`, `fingerprint`, уровнем, файлом/строкой, текстом и статусом
|
|
71
79
|
(`draft`, `accepted`, `rejected`, `published`, `fixed`, `stale`).
|
|
@@ -143,6 +151,12 @@ OpenAPI разбирается на операции и схемы, а конт
|
|
|
143
151
|
|
|
144
152
|
- Diff парсится на сервере, UI получает файлы списком и hunks по одному файлу.
|
|
145
153
|
- Состояние ревью не содержит полный diff; SSE сообщает об изменениях, UI перезапрашивает состояние.
|
|
154
|
+
- Открытие ревью отдаёт кешированный снимок; устаревший обновляется в фоне. Однослотовый кеш
|
|
155
|
+
разобранного снимка и один индекс сниппетов на view удешевляют большие ревью.
|
|
156
|
+
- Heartbeat'ы SSE отключают поллинг-страховку; события review/feature/project обновляют только свою
|
|
157
|
+
часть, а неизменившиеся списки в UI не переприсваиваются.
|
|
158
|
+
- Треды и замечания используют измеряемый page-windowed virtual list в UI: в DOM только видимые
|
|
159
|
+
страницы, а фокус, редакторы и deep-link'и остаются рабочими.
|
|
146
160
|
- Сниппеты для тредов и замечаний считаются на сервере и ограничены по размеру.
|
|
147
161
|
- Размер контекста правил задают `rules.maxDocumentBytes` и `rules.maxTotalBytes` (`0` — без
|
|
148
162
|
ограничения); MCP-контекст дополнительно ограничивается параметром `max_bytes`.
|
package/docs/ru/capabilities.md
CHANGED
|
@@ -37,7 +37,26 @@ agent (MCP/CLI) ──unix socket──▶ revdeck daemon ──glab/gh──▶
|
|
|
37
37
|
- MR GitLab и PR GitHub нормализуются в одну модель: ref, описание, автор, статус, ветки, коммиты,
|
|
38
38
|
diff, треды, комментарии и реакции.
|
|
39
39
|
- Открытие ревью по номеру, URL, ссылке проекта или текущей ветке; несколько ревью за один вызов.
|
|
40
|
-
- Локальная очередь триажа с кешем снимков; фоновый sync и SSE обновляют UI.
|
|
40
|
+
- Локальная очередь триажа с кешем снимков; фоновый sync и SSE обновляют UI. UI сразу открывает ревью
|
|
41
|
+
из кеша, а устаревший снимок обновляет в фоне — открытие не ждёт `glab`/`gh`. Фоновые обновления
|
|
42
|
+
вливаются в текущее ревью, поэтому загрузчики вкладок (Rules, Analytics, Diff) не перезапускаются на
|
|
43
|
+
каждый SSE/поллинг. Heartbeat'ы SSE отключают поллинг-страховку, а события review/feature/project
|
|
44
|
+
обновляют только свою часть.
|
|
45
|
+
- Просмотр MR/PR без ревью: `POST /api/previews/open` получает info, diff и треды в короткоживущий кэш;
|
|
46
|
+
preview-маршрут скрывает замечания, комментарии, реакции и публикацию и не создаёт запись ревью
|
|
47
|
+
или событие метрик.
|
|
48
|
+
- Метрики качества по проекту считаются из append-only журнала `review_events`: acceptance,
|
|
49
|
+
publish и rule-grounded, полнота coverage, время до первого замечания, цикл ревью, дубли/кандидаты в правила и акторы.
|
|
50
|
+
Замечание может нести ссылку `rule`; события включают opened/synced, summary, findings, decisions,
|
|
51
|
+
publish и checks.
|
|
52
|
+
- Контекст ревью несёт консервативный профиль риска (`low`/`medium`/`high`, режим `fast`/`full`) по
|
|
53
|
+
путям и размеру diff. Выжимка хранит `coverage` и `unknowns`, поэтому пустой список замечаний не
|
|
54
|
+
принимается за полностью проверенное ревью.
|
|
55
|
+
- Ревью сохраняет контекст мержа: target, базу/head diff и mergeability платформы
|
|
56
|
+
(`clean`/`conflict`/`behind`/`unknown`/`unavailable`). Контекст и UI показывают конфликт или
|
|
57
|
+
отставание от target до того, как агент сделает выводы.
|
|
58
|
+
- Треды и замечания виртуализируются после 30 карточек: измеренные страницы по 10 рендерятся только
|
|
59
|
+
при попадании во viewport, карточка с фокусом остаётся в DOM, deep-link прокручивает к нужной странице.
|
|
41
60
|
- Unified diff с hunks по файлам, номерами строк в старой/новой версии, фильтром файлов и отметкой
|
|
42
61
|
«просмотрено» для каждого ревью.
|
|
43
62
|
- Треды: чтение, ответ, резолв, реакции; комментарии человека к строкам; реакции на MR/PR и заметки.
|
|
@@ -60,7 +79,7 @@ agent (MCP/CLI) ──unix socket──▶ revdeck daemon ──glab/gh──▶
|
|
|
60
79
|
## Интерфейсы агента
|
|
61
80
|
|
|
62
81
|
- **MCP-сервер** поверх stdio: status, list, open, context, threads, diff, rules, draft replies,
|
|
63
|
-
draft findings, summary, line notes, feature context/notes, publish preview и publish.
|
|
82
|
+
draft findings, summary, line notes, сообщения агенту, feature context/notes, publish preview и publish.
|
|
64
83
|
- **CLI** с теми же возможностями для харнессов без MCP.
|
|
65
84
|
- **Явные точки входа сценариев**: `revdeck review` / `revdeck feedback` и `/revdeck review|feedback`
|
|
66
85
|
фиксируют «чужой MR» или «свой MR» до старта агента. `revdeck_context` принимает
|
package/docs/ru/configuration.md
CHANGED
|
@@ -77,7 +77,10 @@ output:
|
|
|
77
77
|
| `type` | `auto` | `auto` — по git remote; иначе явная платформа. `revdeck init` пишет платформу remote'а, а если хост не распознан — `gitlab` (`--provider` переопределяет) |
|
|
78
78
|
| `host` | из remote | хост без схемы |
|
|
79
79
|
| `project` | из remote | GitLab `group/project`, GitHub `owner/repo` |
|
|
80
|
-
| `base` | `develop`/`main` | база для локального diff |
|
|
80
|
+
| `base` | `develop`/`main` | база для локального diff; для открытого MR цель всегда берётся с платформы |
|
|
81
|
+
|
|
82
|
+
Для открытого MR target берётся из MR, а не из `base`. Контекст ревью показывает target, базу/head
|
|
83
|
+
diff и статус мержа платформы. `base` — только запасная база для ревью локальной ветки/diff без MR.
|
|
81
84
|
|
|
82
85
|
Явные аргументы CLI (`--platform`, `--project`, `--host`) важнее конфига, конфиг важнее git remote.
|
|
83
86
|
Так подмена `.git/config` не перенаправит ревью на чужой проект.
|
package/docs/ru/protocol.md
CHANGED
|
@@ -83,6 +83,9 @@
|
|
|
83
83
|
| `comments.delete` | `review`, `noteId` | удалить свой комментарий платформы |
|
|
84
84
|
| `attachments.upload` | `review`, `name`, `contentType`, `data` (base64) | `name`, абсолютный `url`, `markdown` |
|
|
85
85
|
| `notes.delete` | `review`, `noteId` | `{ok}` |
|
|
86
|
+
| `messages.list` | `review` | сообщения агенту по ревью |
|
|
87
|
+
| `messages.add` | `review`, `text` | новое сообщение; роль по политике клиента (`human`/`agent`) |
|
|
88
|
+
| `metrics.get` | `project`, `from`, `to` | метрики качества по проекту |
|
|
86
89
|
| `publish.preview` | `review`, `kind`, `ids[]` | план + предупреждения |
|
|
87
90
|
| `publish.approve` | `review`, `kind`, `ids[]`, `hash` | `approvalId`, `expiresAt` |
|
|
88
91
|
| `publish.commit` | `review`, `approvalId` | результаты по пунктам |
|
|
@@ -96,7 +99,7 @@
|
|
|
96
99
|
`reviews.*` (чтение/open/refresh), `diff.get`, `rules.get`, `features.list/get/context/forReview`,
|
|
97
100
|
`features.addNote/updateNote/deleteNote` (автор принудительно `agent`; только свои заметки),
|
|
98
101
|
`drafts.put`, `findings.put/list`, `summary.put`, `notes.*` (серверные поля публикации
|
|
99
|
-
игнорируются), `publish.preview`, `projects.list`, `versions.*`, `analytics.get`, `secrets.get`.
|
|
102
|
+
игнорируются), `publish.preview`, `projects.list`, `versions.*`, `analytics.get`, `metrics.get`, `messages.list/add`, `secrets.get`.
|
|
100
103
|
|
|
101
104
|
Human-only методы возвращают `CAPABILITY` на мосту: `publish.approve`, `publish.commit`,
|
|
102
105
|
`checks.run`, `decisions.put`, `comments.update/delete`, `reactions.*`, `attachments.upload`,
|
|
@@ -159,10 +162,13 @@ Human-only методы возвращают `CAPABILITY` на мосту: `publ
|
|
|
159
162
|
| GET | `/api/reviews?project=` | список ревью, опционально в скоупе |
|
|
160
163
|
| POST | `/api/projects/register`, `/update`, `/remove` | зарегистрировать, изменить или удалить проект |
|
|
161
164
|
| GET | `/api/state?review=` | снимок для UI |
|
|
162
|
-
| GET | `/api/diff?review=&file=` | hunks файла |
|
|
165
|
+
| GET | `/api/diff?review=&file=` | hunks файла (включая preview) |
|
|
163
166
|
| GET | `/api/rules?review=` | правила |
|
|
164
|
-
| GET | `/api/events` | SSE: `review`, `feature`, `project` |
|
|
167
|
+
| GET | `/api/events` | SSE: `review`, `feature`, `project`, `heartbeat` |
|
|
165
168
|
| POST | `/api/reviews/open`, `/api/reviews/refresh` | открыть/обновить |
|
|
169
|
+
| POST | `/api/previews/open` | read-only просмотр MR/PR без создания ревью |
|
|
170
|
+
| GET | `/api/metrics?project=&from=&to=` | метрики качества |
|
|
171
|
+
| GET/POST | `/api/messages?review=` | сообщения агенту |
|
|
166
172
|
| POST | `/api/drafts`, `/api/findings`, `/api/summary`, `/api/decisions` | черновики |
|
|
167
173
|
| POST | `/api/notes` | `action: add/update/delete` |
|
|
168
174
|
| GET | `/api/reactions?review=¬es=` | реакции для id комментариев |
|
package/package.json
CHANGED
|
@@ -5,6 +5,11 @@ Command: `/revdeck feedback <N|URL>` (CLI: `revdeck feedback <N|URL>`).
|
|
|
5
5
|
The goal is to close every open finding together with the human: fix the code, reply, or disagree
|
|
6
6
|
with justification.
|
|
7
7
|
|
|
8
|
+
Before working through threads, check the "Branch and comparison base" section: target, diff
|
|
9
|
+
snapshot and merge status. If a target is present and status is `conflict` or `behind`, update the
|
|
10
|
+
branch first; with `unknown` or "not checked", verify the target. A local diff without an MR has no
|
|
11
|
+
target.
|
|
12
|
+
|
|
8
13
|
## Steps
|
|
9
14
|
|
|
10
15
|
1. Get the context (`revdeck_context` / `revdeck context`) and make sure the working branch matches
|
|
@@ -5,6 +5,21 @@ Command: `/revdeck review <N|URL>` (CLI: `revdeck review <N|URL>`).
|
|
|
5
5
|
The goal is to find real defects and violations of the repository rules and produce a verifiable list
|
|
6
6
|
of findings. The human publishes them.
|
|
7
7
|
|
|
8
|
+
Before reviewing code, check the "Branch and comparison base" section: target is where the MR
|
|
9
|
+
merges; the diff is a merge-base→head snapshot. If a target is present and status is `conflict` or
|
|
10
|
+
`behind`, update the branch first; with `unknown` or "not checked", verify the target and conflicts.
|
|
11
|
+
Do not claim there are no findings in those cases. A local diff without an MR has no target.
|
|
12
|
+
|
|
13
|
+
## Fast pass
|
|
14
|
+
|
|
15
|
+
If the context has `risk.mode: fast`, the diff is small and no risky path was detected. A short pass is
|
|
16
|
+
allowed: description, diff, rules, threads, tests and coverage. The full change map, analogue search,
|
|
17
|
+
ADRs and solution assessment may be shortened when the diff shows no risk. Evidence and `file:line`
|
|
18
|
+
are still mandatory. If a sensitive area appears (auth, migrations, CI, public contract, a larger
|
|
19
|
+
diff), switch to the full pass.
|
|
20
|
+
|
|
21
|
+
With `risk.mode: full` or no `risk`, use all steps below without shortcuts.
|
|
22
|
+
|
|
8
23
|
## Steps
|
|
9
24
|
|
|
10
25
|
1. Read the MR description from the context (`revdeck_context` / `revdeck context`) before the diff
|
|
@@ -25,9 +40,14 @@ of findings. The human publishes them.
|
|
|
25
40
|
{"title": "<ticket / title>", "scope": "<base>...<branch> · <N> files · <projects>",
|
|
26
41
|
"summary": "1-3 sentences: goal and approach",
|
|
27
42
|
"changes": ["what was changed, one item per change"],
|
|
28
|
-
"focus": ["what to look at: risky places, contested decisions"]
|
|
43
|
+
"focus": ["what to look at: risky places, contested decisions"],
|
|
44
|
+
"coverage": ["what was actually checked: files, commands, manual scenarios"],
|
|
45
|
+
"unknowns": ["what could not be checked and why"],
|
|
46
|
+
"duplicates": ["what already existed in threads and was not added"],
|
|
47
|
+
"ruleCandidates": ["proposed rules"]}
|
|
29
48
|
```
|
|
30
|
-
|
|
49
|
+
`coverage` and `unknowns` are mandatory: "no findings" without them means "not checked", not
|
|
50
|
+
"checked". If the service is unavailable, output the summary to the chat only.
|
|
31
51
|
3. Read the rules from the context (`rules.markdown`). These are the documents and sections already
|
|
32
52
|
selected for the changed paths. Build the change map (section 1 of `Criteria.md`) and check that
|
|
33
53
|
rules were found for every path. If a path is not matched or a document is not found, say so and
|
|
@@ -132,10 +152,12 @@ Findings in descending order of importance. For each one:
|
|
|
132
152
|
Record via `revdeck_draft_findings` (CLI: `revdeck findings <N> set --file findings.json`):
|
|
133
153
|
```json
|
|
134
154
|
{"findings": [{"id": "f1", "level": "blocker", "file": "<path as in diff>", "line": 42,
|
|
135
|
-
"title": "brief", "body": "what is wrong and how it manifests", "comment": "ready-to-use text"
|
|
155
|
+
"title": "brief", "body": "what is wrong and how it manifests", "comment": "ready-to-use text",
|
|
156
|
+
"rule": "docs/Architecture.md#layers"}]}
|
|
136
157
|
```
|
|
137
158
|
`id` is unique and stable; `level` is one of `blocker`, `major`, `minor`, `question`; `line` is the
|
|
138
|
-
line number in the new file or `null`.
|
|
159
|
+
line number in the new file or `null`. `rule` is an optional `document#section` reference when the
|
|
160
|
+
finding is grounded in a rule; it feeds rule-grounded metrics. A reference to a rule or precedent goes into `body` as the
|
|
139
161
|
last sentence, and into `comment` in wording the author can understand without access to the skill.
|
|
140
162
|
Do not prefix `comment` with the level: revdeck adds the severity marker to the published message.
|
|
141
163
|
The text passes the publication check: no platform command lines, HTML comments, invisible
|
|
@@ -148,10 +170,10 @@ is needed. Prose of 5–10 sentences, without repeating the findings.
|
|
|
148
170
|
Then "Rule candidates" per `Rules.md`, if there are any: these are proposals for the human, not
|
|
149
171
|
findings for the MR author.
|
|
150
172
|
|
|
151
|
-
At the end: the change map and the documents read,
|
|
152
|
-
|
|
153
|
-
opinion. If there are no findings, say so without inventing nitpicks; the solution
|
|
154
|
-
still given.
|
|
173
|
+
At the end: the change map and the documents read, `coverage` and `unknowns` from the summary, what
|
|
174
|
+
was checked by commands and with what result, which findings were not added because of threads, and
|
|
175
|
+
the overall opinion. If there are no findings, say so without inventing nitpicks; the solution
|
|
176
|
+
assessment is still given. "No findings" without `coverage`/`unknowns` is not enough.
|
|
155
177
|
|
|
156
178
|
## Limitations
|
|
157
179
|
|
|
@@ -29,6 +29,7 @@ capabilities.
|
|
|
29
29
|
| Findings draft | `revdeck_draft_findings` | `revdeck findings <N> set --file f.json` |
|
|
30
30
|
| Summary | `revdeck_set_summary` | `revdeck summary` (via `context`) |
|
|
31
31
|
| Line comments | `revdeck_notes` | `revdeck notes <N> ...` |
|
|
32
|
+
| Messages to the agent | `revdeck_messages` | `revdeck messages <N> [list\|ask\|reply]` |
|
|
32
33
|
| Publish plan | `revdeck_publish_preview` | `revdeck publish <N> --dry-run` |
|
|
33
34
|
| Features | `revdeck_feature` | `revdeck feature list\|get\|context` |
|
|
34
35
|
| Feature notes | `revdeck_feature_note` | `revdeck feature note ...` |
|
|
@@ -59,8 +60,18 @@ the context.
|
|
|
59
60
|
sections selected for the changed paths), threads, existing findings, and comments from the
|
|
60
61
|
human. Call the `revdeck_rules` MCP tool separately only if the rules were not included in the
|
|
61
62
|
context.
|
|
62
|
-
3.
|
|
63
|
-
|
|
63
|
+
3. Check the "Branch and comparison base" section. Target is where the MR merges; the diff is a
|
|
64
|
+
base→head snapshot. If the review has a target and merge status is `conflict`, `behind`, `unknown`
|
|
65
|
+
or "not checked", report it before reviewing code. With `conflict` or `behind`, update the branch
|
|
66
|
+
first; do not claim there are no findings until the target and conflicts are checked. For a local
|
|
67
|
+
diff without an MR the target is not applicable and is not a blocker.
|
|
68
|
+
4. Read `risk.mode` from the context: `fast` means the short pass ("Fast pass" in `Review.md`),
|
|
69
|
+
`full` means the complete procedure. If a sensitive area appears, switch to full.
|
|
70
|
+
5. Read the "Messages to the agent" section: these are human questions about the review. Answer the
|
|
71
|
+
latest question via `revdeck_messages` (MCP) or `revdeck messages <N> reply --as-agent --text ...`; the reply
|
|
72
|
+
is not published.
|
|
73
|
+
6. Run the procedure of the chosen scenario.
|
|
74
|
+
7. Record findings and reply drafts with the tools. **Do not publish.**
|
|
64
75
|
|
|
65
76
|
For a feature, first read the brief and contract, then every member review with its own rules; keep
|
|
66
77
|
findings on their owning review. The full procedure is in `Feature.md`.
|
|
@@ -5,6 +5,10 @@
|
|
|
5
5
|
Цель — вместе с человеком закрыть каждое открытое замечание: исправить код, ответить или
|
|
6
6
|
обоснованно не согласиться.
|
|
7
7
|
|
|
8
|
+
Перед разбором проверьте раздел «Ветка и база сравнения»: target, снимок diff и статус мержа.
|
|
9
|
+
Если target указан и статус `conflict` или `behind`, сначала обновите ветку; при `unknown`/
|
|
10
|
+
«не проверялся» проверьте target. Для локального diff без MR target не применим.
|
|
11
|
+
|
|
8
12
|
## Шаги
|
|
9
13
|
|
|
10
14
|
1. Получить контекст (`revdeck_context` / `revdeck context`) и убедиться, что рабочая ветка
|
|
@@ -5,6 +5,21 @@
|
|
|
5
5
|
Цель — найти реальные дефекты и нарушения правил репозитория и выдать проверяемый список замечаний.
|
|
6
6
|
Публикует их человек.
|
|
7
7
|
|
|
8
|
+
Перед оценкой кода проверьте раздел «Ветка и база сравнения»: target — куда мержится MR, diff —
|
|
9
|
+
снимок merge-base→head. Если target указан и статус `conflict` или `behind`, сначала обновите ветку;
|
|
10
|
+
при `unknown` или «не проверялся» проверьте target и конфликты. В этих случаях нельзя выдавать
|
|
11
|
+
«замечаний нет». Для локального diff без MR target не применим.
|
|
12
|
+
|
|
13
|
+
## Быстрый проход
|
|
14
|
+
|
|
15
|
+
Если в контексте `risk.mode: fast` — это маленький diff без рискованных путей. Разрешён короткий
|
|
16
|
+
проход: описание, diff, правила, треды, тесты и coverage. Полную карту изменений, поиск аналогов,
|
|
17
|
+
ADR и оценку решения можно сократить, если diff не подсказывает риск. Evidence и `file:line` всё
|
|
18
|
+
равно обязательны. Если по ходу нашлась чувствительная зона (auth, миграции, CI, публичный контракт,
|
|
19
|
+
крупный diff) — переходите к полному проходу.
|
|
20
|
+
|
|
21
|
+
При `risk.mode: full` или при отсутствии `risk` используйте все шаги ниже без сокращений.
|
|
22
|
+
|
|
8
23
|
## Шаги
|
|
9
24
|
|
|
10
25
|
1. Прочитать описание MR из контекста (`revdeck_context` / `revdeck context`) до diff и
|
|
@@ -23,8 +38,13 @@
|
|
|
23
38
|
{"title": "<тикет / название>", "scope": "<база>...<ветка> · <N> файлов · <проекты>",
|
|
24
39
|
"summary": "1-3 предложения: цель и подход",
|
|
25
40
|
"changes": ["что изменено, по одному пункту"],
|
|
26
|
-
"focus": ["на что смотреть: рискованные места, спорные решения"]
|
|
41
|
+
"focus": ["на что смотреть: рискованные места, спорные решения"],
|
|
42
|
+
"coverage": ["что реально проверено: файлы, команды, ручные сценарии"],
|
|
43
|
+
"unknowns": ["что проверить не удалось и почему"],
|
|
44
|
+
"duplicates": ["что уже было в тредах и не добавлено"],
|
|
45
|
+
"ruleCandidates": ["предложения в правила"]}
|
|
27
46
|
```
|
|
47
|
+
`coverage` и `unknowns` обязательны: «замечаний нет» без них означает «не проверял», а не «проверено».
|
|
28
48
|
Если сервис недоступен, выдать выжимку только в чат.
|
|
29
49
|
3. Прочитать правила из контекста (`rules.markdown`). Это уже выбранные документы и секции для
|
|
30
50
|
изменённых путей. Составить карту изменений (раздел 1 `Criteria.md`) и проверить, что для каждого
|
|
@@ -123,10 +143,12 @@
|
|
|
123
143
|
Записать через `revdeck_draft_findings` (CLI: `revdeck findings <N> set --file findings.json`):
|
|
124
144
|
```json
|
|
125
145
|
{"findings": [{"id": "f1", "level": "blocker", "file": "<путь как в diff>", "line": 42,
|
|
126
|
-
"title": "кратко", "body": "что не так и как проявляется", "comment": "готовый текст"
|
|
146
|
+
"title": "кратко", "body": "что не так и как проявляется", "comment": "готовый текст",
|
|
147
|
+
"rule": "docs/Architecture.md#слои"}]}
|
|
127
148
|
```
|
|
128
149
|
`id` уникален и стабилен; `level` — одно из `blocker`, `major`, `minor`, `question`; `line` — номер
|
|
129
|
-
строки нового файла или `null`.
|
|
150
|
+
строки нового файла или `null`. `rule` — необязательная ссылка `документ#раздел`, если замечание
|
|
151
|
+
основано на правиле; она нужна для метрик rule-grounded. Ссылка на правило или прецедент входит в `body` последним
|
|
130
152
|
предложением, а в `comment` — в формулировке, понятной автору без доступа к скиллу. Текст проходит
|
|
131
153
|
проверку публикации: без строк-команд платформы, HTML-комментариев, невидимых символов, `@all` и
|
|
132
154
|
внешних картинок. Не добавляйте уровень в начало `comment`: revdeck сам ставит маркер важности в
|
|
@@ -139,9 +161,10 @@
|
|
|
139
161
|
Затем — «Кандидаты в правила» по `Rules.md`, если они есть: это предложения человеку, а не
|
|
140
162
|
замечания автору MR.
|
|
141
163
|
|
|
142
|
-
В конце: карта изменений и прочитанные документы,
|
|
143
|
-
|
|
144
|
-
так и сказать без выдуманных придирок; оценка решения даётся всё равно.
|
|
164
|
+
В конце: карта изменений и прочитанные документы, `coverage` и `unknowns` из выжимки, что
|
|
165
|
+
проверено командами и с каким результатом, какие замечания не добавлены из-за тредов, общее мнение.
|
|
166
|
+
Если замечаний нет, так и сказать без выдуманных придирок; оценка решения даётся всё равно. Фразы
|
|
167
|
+
«замечаний нет» без `coverage`/`unknowns` недостаточно.
|
|
145
168
|
|
|
146
169
|
## Ограничения
|
|
147
170
|
|
|
@@ -28,6 +28,7 @@ description: "Ревью merge/pull request через локальный revdec
|
|
|
28
28
|
| Черновик замечаний | `revdeck_draft_findings` | `revdeck findings <N> set --file f.json` |
|
|
29
29
|
| Выжимка | `revdeck_set_summary` | `revdeck summary` (через `context`) |
|
|
30
30
|
| Комментарии к строкам | `revdeck_notes` | `revdeck notes <N> ...` |
|
|
31
|
+
| Вопросы агенту | `revdeck_messages` | `revdeck messages <N> [list\|ask\|reply]` |
|
|
31
32
|
| План публикации | `revdeck_publish_preview` | `revdeck publish <N> --dry-run` |
|
|
32
33
|
| Фичи | `revdeck_feature` | `revdeck feature list\|get\|context` |
|
|
33
34
|
| Заметки фичи | `revdeck_feature_note` | `revdeck feature note ...` |
|
|
@@ -57,8 +58,17 @@ feature-сессии скоуп ограничен участниками фич
|
|
|
57
58
|
Контекст уже содержит выжимку, файлы, **эффективные правила проекта** (документы и секции,
|
|
58
59
|
выбранные для изменённых путей), треды, существующие замечания и комментарии человека.
|
|
59
60
|
Отдельно вызывать MCP-инструмент `revdeck_rules` нужно только если правила не вошли в контекст.
|
|
60
|
-
3.
|
|
61
|
-
|
|
61
|
+
3. Проверить раздел «Ветка и база сравнения». Target — куда мержится MR, diff — снимок base→head.
|
|
62
|
+
Если у ревью есть target и статус мержа `conflict`, `behind`, `unknown` или «не проверялся»,
|
|
63
|
+
сообщите об этом до оценки кода. При `conflict` или `behind` сначала нужно обновить ветку; не
|
|
64
|
+
выдавайте «замечаний нет», пока target и конфликты не проверены. Для локального diff без MR
|
|
65
|
+
target не применим — это не блокер.
|
|
66
|
+
4. Посмотреть `risk.mode` в контексте: `fast` — короткий проход (раздел «Быстрый проход» в
|
|
67
|
+
`Review.md`), `full` — полная процедура. Если появилась чувствительная зона, переходите к full.
|
|
68
|
+
5. Прочитать раздел «Сообщения агенту»: это вопросы человека к ревью. Ответить на последний вопрос
|
|
69
|
+
через `revdeck_messages` (MCP) или `revdeck messages <N> reply --as-agent --text ...`; ответ не публикуется.
|
|
70
|
+
6. Выполнить процедуру выбранного сценария.
|
|
71
|
+
7. Черновики замечаний и ответов записать инструментами. **Не публиковать.**
|
|
62
72
|
|
|
63
73
|
Для фичи сначала прочитайте бриф и контракт, затем каждое ревью с его собственными правилами;
|
|
64
74
|
замечания держите на ревью-владельце. Полная процедура — в `Feature.md`.
|