@orangepro/orangepro-mcp 0.2.16 → 0.2.18
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.
|
@@ -244,9 +244,11 @@ nav.tabs{display:flex;gap:2px;margin:18px 0 0;border-bottom:1px solid var(--bd)}
|
|
|
244
244
|
.paywall-btn:hover{opacity:.85}
|
|
245
245
|
|
|
246
246
|
|
|
247
|
-
/* === OPTION A: MODE TOGGLE === */
|
|
248
|
-
.mode-
|
|
249
|
-
.mode-
|
|
247
|
+
/* === OPTION A: MODE TOGGLE (SEGMENTED PILL) === */
|
|
248
|
+
.mode-switch{display:inline-flex;align-items:center;background:var(--s2);border-radius:7px;padding:3px;gap:2px;border:1px solid var(--bd)}
|
|
249
|
+
.mode-btn{padding:5px 14px;font:650 11px var(--sans);border-radius:5px;cursor:pointer;border:none;background:transparent;color:var(--muted);transition:all .15s;letter-spacing:.01em}
|
|
250
|
+
.mode-btn:hover{color:var(--ink)}
|
|
251
|
+
.mode-btn.active{background:var(--orange);color:#1a0a02;box-shadow:0 1px 3px rgba(240,136,62,.25)}
|
|
250
252
|
body[data-mode="simple"] .expert-only{display:none!important}
|
|
251
253
|
body[data-mode="simple"] .kpis{grid-template-columns:repeat(3,1fr)}
|
|
252
254
|
body[data-mode="simple"] .gen-test .gen-test-body{display:block}
|
|
@@ -284,7 +286,10 @@ body[data-mode="expert"] .simple-only{display:none!important}
|
|
|
284
286
|
<span class="hdr-name" id="repo-name">—</span>
|
|
285
287
|
</div>
|
|
286
288
|
<div class="hdr-right">
|
|
287
|
-
<
|
|
289
|
+
<div class="mode-switch" id="mode-switch">
|
|
290
|
+
<button class="mode-btn active" data-mode="simple">Simple</button>
|
|
291
|
+
<button class="mode-btn" data-mode="expert">Expert</button>
|
|
292
|
+
</div>
|
|
288
293
|
<span class="hdr-tag" id="framework">—</span>
|
|
289
294
|
<span id="scan-date">—</span>
|
|
290
295
|
</div>
|
|
@@ -362,7 +367,7 @@ body[data-mode="expert"] .simple-only{display:none!important}
|
|
|
362
367
|
<section class="panel" id="panel-risks" role="tabpanel">
|
|
363
368
|
<div class="simple-intro simple-only">
|
|
364
369
|
<h2>Your highest-risk blind spots</h2>
|
|
365
|
-
<p>These
|
|
370
|
+
<p>These are your highest-risk integration points — where multiple flows converge, where recent changes landed, and where no test proves they hold. Each card includes a generated test you can copy into your repo.</p>
|
|
366
371
|
</div>
|
|
367
372
|
<p class="bridge expert-only">This is the <b>priority-gap worklist</b>, ranked by blast radius and test weakness. It is separate from the coverage-status cards above: <b>Reachable · no test signal</b> is one strict coverage bucket, not the number of priority gaps.</p>
|
|
368
373
|
<p class="bridge" id="risk-cap-note" style="font-size:12px;opacity:.75"></p>
|
|
@@ -515,13 +520,13 @@ function activateTab(tabId){
|
|
|
515
520
|
}
|
|
516
521
|
function setMode(m){
|
|
517
522
|
viewMode=m;localStorage.setItem("opro-view",m);document.body.dataset.mode=m;
|
|
518
|
-
document.
|
|
523
|
+
document.querySelectorAll(".mode-btn").forEach(b=>{b.classList.toggle("active",b.dataset.mode===m)});
|
|
519
524
|
renderKpisForMode();
|
|
520
525
|
activateTab(m==="simple"?"risks":"codebase");
|
|
521
526
|
if(typeof renderRisks==="function")renderRisks();
|
|
522
527
|
}
|
|
523
|
-
document.
|
|
524
|
-
document.
|
|
528
|
+
document.querySelectorAll(".mode-btn").forEach(b=>{b.onclick=()=>setMode(b.dataset.mode)});
|
|
529
|
+
document.querySelectorAll(".mode-btn").forEach(b=>{b.classList.toggle("active",b.dataset.mode===viewMode)});
|
|
525
530
|
|
|
526
531
|
|
|
527
532
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@orangepro/orangepro-mcp",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.18",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "OrangePro (`opro`) — a local-first, BYOK CLI + MCP server that builds an evidence graph from a local checkout, ingests runtime coverage, and generates grounded tests. Metadata-only exports; no source upload; generated tests stay local.",
|
|
6
6
|
"license": "MIT",
|