megareviewer 0.1.0 → 0.2.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/dist/server.js +295 -87
- package/dist/web/assets/{core-vltS_6PD.js → core-B6rr2vvd.js} +1 -1
- package/dist/web/assets/index-ClcSjEKy.css +1 -0
- package/dist/web/assets/index-DwjurLQh.js +65 -0
- package/dist/web/index.html +2 -2
- package/package.json +1 -1
- package/dist/web/assets/index-COk-CpeI.js +0 -65
- package/dist/web/assets/index-DYdJE6_f.css +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
:root{--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light dark;--color-surface:#fff;--color-surface-subtle:#f6f8fa;--color-surface-sunken:#eaeef2;--color-text:#1f2328;--color-text-muted:#59636e;--color-border:#d1d9e0;--color-border-strong:#818b98;--color-accent:#0860ca;--color-accent-bg:#0860ca;--color-on-accent:#fff;--color-focus:#0860ca;--color-success:#17742f;--color-warning:#865a00;--color-danger:#cf222e;--color-danger-subtle:#ffebe9;--color-warning-subtle:#fff8c5;--diff-added-bg:#dafbe1;--diff-added-word-bg:#aceebb;--diff-deleted-bg:#ffebe9;--diff-deleted-word-bg:#ffcecb;--risk-contract-bg:#cf222e;--risk-contract-text:#fff;--risk-logic-bg:#eaeef2;--risk-logic-text:#1f2328;--risk-mechanical-bg:#f6f8fa;--risk-mechanical-text:#59636e;--space-1:4px;--space-2:8px;--space-3:12px;--space-4:16px;--space-5:24px;--space-6:32px;--space-7:48px;--radius-1:4px;--radius-2:6px;--radius-3:10px;--font-ui:system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;--font-mono:ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;--text-xs:12px;--text-sm:13px;--text-md:14px;--text-lg:16px;--text-xl:20px;--text-2xl:24px;--line-height:1.5;--line-height-code:20px;--focus-ring:0 0 0 2px var(--color-surface), 0 0 0 4px var(--color-focus)}@media (prefers-color-scheme:dark){:root{--lightningcss-light: ;--lightningcss-dark:initial;--color-surface:#0d1117;--color-surface-subtle:#151b23;--color-surface-sunken:#212830;--color-text:#f0f6fc;--color-text-muted:#9198a1;--color-border:#3d444d;--color-border-strong:#656c76;--color-accent:#4493f8;--color-accent-bg:#1f6feb;--color-on-accent:#fff;--color-focus:#4493f8;--color-success:#3fb950;--color-warning:#d29922;--color-danger:#ff6a61;--color-danger-subtle:#25171c;--color-warning-subtle:#272115;--diff-added-bg:#12261e;--diff-added-word-bg:#1d5730;--diff-deleted-bg:#2d1619;--diff-deleted-word-bg:#6e2b2e;--risk-contract-bg:#da3633;--risk-contract-text:#fff;--risk-logic-bg:#262c36;--risk-logic-text:#f0f6fc;--risk-mechanical-bg:#151b23;--risk-mechanical-text:#9198a1}}*,:before,:after{box-sizing:border-box}html{font-family:var(--font-ui);font-size:var(--text-md);line-height:var(--line-height);color:var(--color-text);background:var(--color-surface);-webkit-text-size-adjust:100%}body{min-height:100vh;margin:0}h1,h2,h3{margin:0 0 var(--space-3);line-height:1.25}h1{font-size:var(--text-2xl)}h2{font-size:var(--text-lg)}p{margin:0 0 var(--space-3)}a{color:var(--color-accent)}code,kbd,pre{font-family:var(--font-mono);font-size:.92em}kbd{padding:0 var(--space-1);border:1px solid var(--color-border-strong);border-radius:var(--radius-1);background:var(--color-surface-subtle)}:focus-visible{box-shadow:var(--focus-ring);outline:none}.muted{color:var(--color-text-muted)}.button{align-items:center;gap:var(--space-2);min-height:32px;padding:0 var(--space-3);border:1px solid var(--color-border-strong);border-radius:var(--radius-2);background:var(--color-surface-subtle);color:var(--color-text);font:inherit;cursor:pointer;font-weight:500;display:inline-flex}.button:hover:not(:disabled){background:var(--color-surface-sunken)}.button.primary{border-color:var(--color-accent-bg);background:var(--color-accent-bg);color:var(--color-on-accent)}.button.primary:hover:not(:disabled){background:var(--color-accent-bg);filter:brightness(1.08)}.button:disabled{cursor:not-allowed;opacity:.6}.input{min-height:32px;padding:0 var(--space-3);border:1px solid var(--color-border-strong);border-radius:var(--radius-2);background:var(--color-surface);color:var(--color-text);font:inherit}.input[aria-invalid=true]{border-color:var(--color-danger)}.field-error{color:var(--color-danger)}.banner{padding:var(--space-2) var(--space-3);border:1px solid var(--color-border);border-radius:var(--radius-2);background:var(--color-surface-subtle)}.banner.danger{border-color:var(--color-danger);background:var(--color-danger-subtle)}.banner.warning{border-color:var(--color-warning);background:var(--color-warning-subtle)}.skeleton{background:var(--color-surface-sunken);animation:1.4s ease-in-out infinite skeleton-pulse}@keyframes skeleton-pulse{50%{opacity:.5}}@media (prefers-reduced-motion:reduce){.skeleton{animation:none}}.error-detail{padding:var(--space-3);border-radius:var(--radius-2);background:var(--color-surface-subtle);white-space:pre-wrap;overflow:auto}.app-header{height:48px;padding:0 var(--space-5);border-bottom:1px solid var(--color-border);background:var(--color-surface-subtle);justify-content:space-between;align-items:center;display:flex}.brand{color:var(--color-text);font-weight:600;font-size:var(--text-lg);text-decoration:none}.status-indicator{align-items:center;gap:var(--space-2);color:var(--color-text-muted);font-size:var(--text-sm);display:inline-flex}.status-dot{background:var(--color-text-muted);border-radius:50%;width:8px;height:8px}.status-dot.tone-ok{background:var(--color-success)}.status-dot.tone-warning{background:var(--color-warning)}.status-dot.tone-danger{background:var(--color-danger)}.page{padding:var(--space-5)}.narrow{max-width:720px;margin:0 auto}main.narrow{padding:var(--space-7) var(--space-5)}.picker{gap:var(--space-5);max-width:960px;margin:0 auto;display:grid}.url-form label{margin-bottom:var(--space-1);font-weight:500;display:block}.url-form-row{gap:var(--space-2);display:flex}.url-form-row .input{flex:1;min-width:0}.hint{margin:var(--space-1) 0 0;color:var(--color-text-muted);font-size:var(--text-sm)}.hint.field-error{color:var(--color-danger)}.setup-items{gap:var(--space-2) var(--space-5);padding:var(--space-3) var(--space-4);border:1px solid var(--color-border);border-radius:var(--radius-2);font-size:var(--text-sm);flex-wrap:wrap;margin:0;display:flex}.setup-item{gap:var(--space-2);display:flex}.setup-item dt{font-weight:600}.setup-item dd{margin:0}.setup-item.state-missing dd,.setup-item.state-error dd{color:var(--color-danger)}.setup-item.state-optional dd{color:var(--color-text-muted)}.setup-item dt:before{content:"";width:8px;height:8px;margin-right:var(--space-2);background:var(--color-text-muted);vertical-align:1px;border-radius:50%;display:inline-block}.setup-item.state-ok dt:before{background:var(--color-success)}.setup-item.state-missing dt:before,.setup-item.state-error dt:before{background:var(--color-danger)}.pr-lists{gap:var(--space-4);display:grid}.pr-list-header{margin-bottom:var(--space-3);justify-content:space-between;align-items:center;display:flex}.pr-list-header h2{margin:0;line-height:32px}.pr-rows{border:1px solid var(--color-border);border-radius:var(--radius-2);margin:0;padding:0;list-style:none;overflow:hidden}.pr-rows li+li{border-top:1px solid var(--color-border)}.pr-row{align-items:baseline;gap:var(--space-3);width:100%;padding:var(--space-3) var(--space-4);background:var(--color-surface);color:var(--color-text);font:inherit;text-align:left;cursor:pointer;border:0;grid-template-columns:80px minmax(140px,200px) 1fr auto;display:grid}.pr-row:hover{background:var(--color-surface-subtle)}.pr-row:focus-visible{box-shadow:inset 0 0 0 2px var(--color-focus);position:relative}li.pr-row.skeleton{cursor:default;height:46px}.pr-host{color:var(--color-text-muted);font-size:var(--text-xs);text-transform:uppercase;letter-spacing:.04em}.pr-repo{font-family:var(--font-mono);font-size:var(--text-sm);text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.pr-title{font-weight:500}.pr-meta{color:var(--color-text-muted);font-size:var(--text-sm);white-space:nowrap}.empty{padding:var(--space-5);border:1px dashed var(--color-border);border-radius:var(--radius-2);color:var(--color-text-muted);text-align:center}@media (width<=1023px){.pr-row{grid-template-columns:1fr auto}.pr-title{grid-column:1/-1}}.review-page{gap:var(--space-4);max-width:1600px;margin:0 auto;display:grid}.model-text{white-space:pre-line;overflow-wrap:anywhere}.badge{padding:0 var(--space-2);border:1px solid var(--color-border-strong);border-radius:var(--radius-3);background:var(--color-surface-subtle);color:var(--color-text);font-size:var(--text-xs);white-space:nowrap;font-weight:600;line-height:20px;display:inline-block}.button.quiet{background:0 0;border-color:#0000}.panel-header{align-items:baseline;gap:var(--space-3);margin-bottom:var(--space-3);display:flex}.panel-header h2{margin:0}.panel-header .button{margin-left:auto}.review-header{gap:var(--space-2) var(--space-4);grid-template-columns:minmax(0,1fr) auto;display:grid}.review-title h1{margin-bottom:var(--space-1)}.pr-meta{color:var(--color-text-muted);margin:0}.review-actions{align-self:start}.published{color:var(--color-success);margin:0;font-weight:600}.published a{color:inherit}.stale-banner,.warnings,.failed-banner{grid-column:1/-1}.stale-banner{align-items:center;gap:var(--space-3);flex-wrap:wrap;display:flex}.warnings{gap:var(--space-2);font-size:var(--text-sm);margin:0;padding:0;list-style:none;display:grid}details.warnings{padding:var(--space-2) var(--space-3)}details.warnings ul{margin:var(--space-2) 0 0;padding-left:var(--space-5)}.failed-banner p{margin-bottom:var(--space-2)}.progress-strip{gap:var(--space-2) var(--space-5);padding:var(--space-2) var(--space-3);border:1px solid var(--color-border);border-radius:var(--radius-2);background:var(--color-surface-subtle);font-size:var(--text-sm);flex-wrap:wrap;margin:0;list-style:none;display:flex}.stage{color:var(--color-text-muted)}.stage.running{color:var(--color-accent);font-weight:600}.stage.done{color:var(--color-success)}.stage.failed{color:var(--color-danger);font-weight:600}.intent-panel{padding:var(--space-3) var(--space-4);border:1px solid var(--color-border);border-radius:var(--radius-2)}.intent-pending{margin:0}.intent-columns{gap:var(--space-5);grid-template-columns:repeat(3,minmax(0,1fr));display:grid}.intent-columns[hidden]{display:none}.intent-column h3{margin-bottom:var(--space-2);color:var(--color-text-muted);font-size:var(--text-sm);text-transform:uppercase;letter-spacing:.04em}.mismatch-count{color:var(--color-danger);font-weight:600;font-size:var(--text-sm)}.chips{gap:var(--space-2);margin:0 0 var(--space-2);flex-wrap:wrap;padding:0;list-style:none;display:flex}.chip{padding:0 var(--space-2);border:1px solid var(--color-border);border-radius:var(--radius-3);background:var(--color-surface-subtle);font-size:var(--text-xs);line-height:22px}.behavior-changes{gap:var(--space-1);padding-left:var(--space-5);margin:0;display:grid}.mismatches{gap:var(--space-2);margin:0;padding:0;list-style:none;display:grid}.mismatch{justify-items:start;gap:var(--space-1);width:100%;padding:var(--space-2) var(--space-3);border:1px solid var(--color-border);border-radius:var(--radius-2);background:var(--color-surface);color:var(--color-text);font:inherit;text-align:left;cursor:pointer;display:grid}.mismatch:hover{background:var(--color-surface-subtle)}.mismatch.selected{border-color:var(--color-accent);box-shadow:0 0 0 1px var(--color-accent)}.badge.mismatch-contradicts{border-color:var(--risk-contract-bg);background:var(--risk-contract-bg);color:var(--risk-contract-text)}.badge.mismatch-missing,.badge.mismatch-unrequested{border-color:var(--color-warning);background:var(--color-warning-subtle);color:var(--color-text)}.review-body{gap:var(--space-5);grid-template-columns:340px minmax(0,1fr);align-items:start;display:grid}.review-sidebar{gap:var(--space-5);max-height:100vh;padding:var(--space-1);display:grid;position:sticky;top:0;overflow-y:auto}.tour-nav ol,.decision-list ol{gap:var(--space-1);margin:0;padding:0;list-style:none;display:grid}.tour-entry{align-items:baseline;gap:var(--space-2);width:100%;padding:var(--space-1) var(--space-2);border-radius:var(--radius-2);color:var(--color-text);font:inherit;text-align:left;cursor:pointer;background:0 0;border:1px solid #0000;grid-template-columns:16px auto minmax(0,1fr);display:grid}.tour-entry:hover{background:var(--color-surface-subtle)}.tour-entry.current{border-color:var(--color-border);background:var(--color-surface-sunken);font-weight:600}.tour-entry.mechanical{color:var(--color-text-muted);grid-template-columns:16px minmax(0,1fr)}.tour-mark{color:var(--color-success)}.tour-number{color:var(--color-text-muted);font-variant-numeric:tabular-nums}.decision{gap:var(--space-2);padding:var(--space-3);border:1px solid var(--color-border);border-radius:var(--radius-2);grid-template-columns:minmax(0,1fr);display:grid}.decision.selected{border-color:var(--color-accent);box-shadow:0 0 0 1px var(--color-accent)}.decision .badge{justify-self:start}.decision-title{color:var(--color-text);font:inherit;text-align:left;cursor:pointer;background:0 0;border:0;padding:0;font-weight:600}.decision-title:hover{color:var(--color-accent)}.why summary{color:var(--color-text-muted);font-size:var(--text-sm);cursor:pointer}.why p{margin:var(--space-1) 0 0;font-size:var(--text-sm)}.verdict-buttons{gap:var(--space-2);display:flex}.button.verdict.approve[aria-pressed=true]{border-color:var(--color-success);background:var(--color-surface-sunken);color:var(--color-success)}.button.verdict.reject[aria-pressed=true]{border-color:var(--color-danger);background:var(--color-danger-subtle);color:var(--color-text)}.input.comment{width:100%;padding:var(--space-2) var(--space-3);resize:vertical}.input.comment[readonly]{background:var(--color-surface-subtle)}.save-status{margin-top:calc(-1 * var(--space-1));color:var(--color-text-muted);font-size:var(--text-xs);justify-self:end}.save-status.failed{color:var(--color-danger)}.main-area{gap:var(--space-3);min-width:0;scroll-margin-top:var(--space-4);grid-template-columns:minmax(0,1fr);display:grid}.main-area:focus{outline:none}.main-area>h2,.main-area>p{margin:0}.main-area .back{justify-self:start}.step-count{color:var(--color-text-muted);font-size:var(--text-sm);text-transform:uppercase;letter-spacing:.04em;font-weight:600}.step-buttons{justify-content:flex-end;gap:var(--space-2);padding-top:var(--space-2);display:flex}.usage-footer{padding-top:var(--space-3);border-top:1px solid var(--color-border);color:var(--color-text-muted);font-size:var(--text-sm);position:relative}.usage{border-radius:var(--radius-1);color:inherit;font:inherit;cursor:help;background:0 0;border:0;padding:0}.usage-breakdown{bottom:calc(100% + var(--space-1));z-index:1;padding:var(--space-2) var(--space-3);border:1px solid var(--color-border-strong);border-radius:var(--radius-2);background:var(--color-surface);color:var(--color-text);border-spacing:var(--space-3) var(--space-1);font-variant-numeric:tabular-nums;display:none;position:absolute;left:0}.usage-breakdown td,.usage-breakdown thead th{text-align:right}.usage-breakdown tbody th{text-align:left;font-weight:500}.usage-footer:hover .usage-breakdown,.usage:focus-visible+.usage-breakdown{display:table}.shortcut-hint{font-size:var(--text-xs);margin:0}.dialog-backdrop{z-index:10;padding:var(--space-5);background:#00000073;place-items:center;display:grid;position:fixed;inset:0}.dialog{gap:var(--space-3);width:min(760px,100%);max-height:calc(100vh - 2 * var(--space-5));padding:var(--space-4) var(--space-5);border:1px solid var(--color-border-strong);border-radius:var(--radius-3);background:var(--color-surface);display:grid;overflow-y:auto}.shortcuts-dialog{width:min(420px,100%)}.dialog-header{justify-content:space-between;align-items:center;display:flex}.dialog-header h2{margin:0}.dialog label{font-weight:500}.summary-field{width:100%;padding:var(--space-2) var(--space-3);resize:vertical}.preview{padding:var(--space-3) var(--space-4);border:1px solid var(--color-border);border-radius:var(--radius-2);background:var(--color-surface-subtle)}.preview h3{font-size:var(--text-md)}.preview h4{margin:var(--space-3) 0 var(--space-2);font-size:var(--text-sm)}.publication-verdict.approve{color:var(--color-success)}.publication-verdict.request_changes{color:var(--color-danger)}.preview-comments{gap:var(--space-2);margin:0;padding:0;list-style:none;display:grid}.preview-comments li{padding:var(--space-2) var(--space-3);border:1px solid var(--color-border);border-radius:var(--radius-2);background:var(--color-surface)}.posted-text{margin:var(--space-1) 0 0;font-family:var(--font-mono);font-size:var(--text-sm);white-space:pre-wrap;overflow-wrap:anywhere}.dialog-actions{justify-content:flex-end;gap:var(--space-2);display:flex}.dialog .banner p{margin-bottom:var(--space-2)}.shortcut-list{gap:var(--space-2);margin:0;display:grid}.shortcut-list div{grid-template-columns:80px minmax(0,1fr);align-items:baseline;display:grid}.shortcut-list dt{gap:var(--space-1);display:flex}.shortcut-list dd{margin:0}.skeleton-title{border-radius:var(--radius-2);width:50%;height:32px}.skeleton-panel{border-radius:var(--radius-2);height:140px}.skeleton-sidebar,.skeleton-main{border-radius:var(--radius-2);height:420px}@media (width<=1023px){.review-page{min-width:1000px}}.visually-hidden{clip-path:inset(50%);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}.diff-view,.mechanical-rows,.file-notices ul{gap:var(--space-4);grid-template-columns:minmax(0,1fr);display:grid}.hunk-card{border:1px solid var(--color-border);border-radius:var(--radius-2);background:var(--color-surface);scroll-margin-top:var(--space-4);position:relative}.hunk-card.risk-contract{border-left:3px solid var(--risk-contract-bg)}.hunk-card.highlighted{border-color:var(--color-accent);box-shadow:0 0 0 1px var(--color-accent)}.hunk-header{align-items:center;gap:var(--space-1) var(--space-2);padding:var(--space-2) var(--space-3);border-bottom:1px solid var(--color-border);border-radius:var(--radius-2) var(--radius-2) 0 0;background:var(--color-surface-subtle);font-size:var(--text-sm);flex-wrap:wrap;display:flex}.file-path{font-family:var(--font-mono);overflow-wrap:anywhere;font-weight:600}.file-status{padding:0 var(--space-2);border:1px solid var(--color-border-strong);border-radius:var(--radius-3);color:var(--color-text-muted);font-size:var(--text-xs)}.hunk-heading,.hunk-ranges{min-width:0;color:var(--color-text-muted);font-size:var(--text-xs);text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.hunk-heading{flex:0 auto}.hunk-proof{color:var(--color-success);font-size:var(--text-xs)}.risk{margin-left:auto;position:relative}.risk-badge{padding:0 var(--space-2);border-radius:var(--radius-3);font:inherit;font-size:var(--text-xs);cursor:help;border:1px solid #0000;font-weight:600;line-height:20px}.risk-badge.risk-contract{background:var(--risk-contract-bg);color:var(--risk-contract-text)}.risk-badge.risk-logic{border-color:var(--color-border-strong);background:var(--risk-logic-bg);color:var(--risk-logic-text)}.risk-badge.risk-mechanical{border-color:var(--color-border);background:var(--risk-mechanical-bg);color:var(--risk-mechanical-text);font-weight:400}.risk-reason{top:calc(100% + var(--space-1));z-index:1;width:max-content;max-width:360px;padding:var(--space-2) var(--space-3);border:1px solid var(--color-border-strong);border-radius:var(--radius-2);background:var(--color-surface);color:var(--color-text);font-size:var(--text-sm);display:none;position:absolute;right:0}.risk:hover .risk-reason,.risk-badge:focus-visible+.risk-reason{display:block}.hunk-body{content-visibility:auto;overflow-x:auto}.diff-table{border-collapse:collapse;min-width:100%;font-family:var(--font-mono);font-size:var(--text-xs);line-height:var(--line-height-code);tab-size:4}.diff-line td{height:var(--line-height-code);vertical-align:top;padding:0}.diff-line .line-number,.diff-line .line-marker{color:var(--color-text-muted);-webkit-user-select:none;user-select:none}.diff-line .line-number{width:1%;min-width:5ch;padding:0 var(--space-2);text-align:right;white-space:nowrap}.diff-line .line-marker{text-align:center;width:2ch}.diff-line .line-code{padding-right:var(--space-4);white-space:pre}.line-add{background:var(--diff-added-bg)}.line-del{background:var(--diff-deleted-bg)}.token{color:var(--token-light);text-decoration:none}@media (prefers-color-scheme:dark){.token{color:var(--token-dark)}}.token.italic{font-style:italic}.token.bold{font-weight:600}.token.changed{color:var(--color-text)}.line-add .changed{background:var(--diff-added-word-bg)}.line-del .changed{background:var(--diff-deleted-word-bg)}.line-note{margin-left:var(--space-2);padding:0 var(--space-1);border:1px solid var(--color-border-strong);border-radius:var(--radius-1);color:var(--color-text-muted);font-family:var(--font-ui);-webkit-user-select:none;user-select:none;font-size:11px;line-height:16px}.show-all{margin:var(--space-2) var(--space-3)}.mechanical-group,.file-notices{gap:var(--space-3);grid-template-columns:minmax(0,1fr);display:grid}.mechanical-header{justify-content:space-between;align-items:center;gap:var(--space-3);display:flex}.mechanical-header h2,.file-notices h2{margin:0}.mechanical-count{color:var(--color-text-muted);font-weight:400}.mechanical-rows,.file-notices ul{gap:var(--space-2);margin:0;padding:0;list-style:none}.mechanical-row{gap:var(--space-2);grid-template-columns:minmax(0,1fr);display:grid}.mechanical-summary{padding:var(--space-1) var(--space-3);border:1px solid var(--color-border);border-radius:var(--radius-2);background:var(--risk-mechanical-bg);color:var(--risk-mechanical-text);font-family:var(--font-mono);font-size:var(--text-xs);line-height:var(--line-height-code);text-align:left;overflow-wrap:anywhere;display:block}.mechanical-toggle{width:100%;font-family:var(--font-mono);cursor:pointer}.mechanical-toggle:before{content:"▸";width:2ch;display:inline-block}.mechanical-toggle[aria-expanded=true]:before{content:"▾"}.mechanical-toggle:hover{color:var(--color-text)}.file-notice{align-items:center;gap:var(--space-2);padding:var(--space-2) var(--space-3);border:1px solid var(--color-border-strong);border-radius:var(--radius-2);background:var(--risk-logic-bg);color:var(--risk-logic-text);font-size:var(--text-sm);flex-wrap:wrap;display:flex}
|