Files
plugins/packages/privacy-gate/page/agents-panel.html
T
Muyang 80547ec2ab privacy-gate: per-agent controls and a graphical settings page (#1111)
privacy-gate's settings page and panel gain per-agent switches and an
"other agents" list. disabledAgents entries the UI can't show as one id
(globs such as `claude-*`) are kept verbatim on save and lock the rows
they match. A save reads the options again and refuses when the agent
fields changed since load, and merges into the current object so
unrelated options are kept.

Run at 30956ba616b3 (the reviewed head), on WSL with a temp HOME:
- packages/privacy-gate: bun test, 76 pass / 0 fail.
- bun scripts/check.mjs privacy-gate: ok.
- Broken by hand: with mergeDisabled dropping patterns, "a glob policy
  survives an options save and unrelated options are kept" goes red.

Thanks @siml1169.
2026-11-14 13:26:28 +08:00

32 lines
1.1 KiB
HTML

<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>ShyPie protection</title>
<link rel="stylesheet" href="style.css">
</head>
<body class="panel-page">
<main class="panel-shell">
<header class="panel-head">
<div>
<p class="kicker">ShyPie Filter</p>
<h1 id="panel-title">Agent protection</h1>
<p class="hint" id="panel-lede">Disabled agents bypass the gate entirely.</p>
</div>
<span class="count" id="panel-count"></span>
</header>
<div class="list" id="panel-list" aria-label="Agent protection"></div>
<p class="hint" id="panel-patterns" hidden></p>
<footer class="panel-actions">
<span class="status" id="panel-status" role="status" aria-live="polite"></span>
<button id="panel-save" type="button" disabled>Save</button>
</footer>
</main>
<script src="_magpie/bridge.js"></script>
<script src="agents.js"></script>
<script src="policy.js"></script>
<script src="panel.js" defer></script>
</body>
</html>