Files
plugins/packages/privacy-gate/package.json
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

76 lines
2.0 KiB
JSON

{
"name": "@magpie-community/middleware-privacy-gate",
"version": "0.4.0",
"description": "Structural egress gate for Magpie: withholds or rejects image/file/audio parts, encoded blobs and disallowed models, and guides agents toward local extraction when Magpie cannot mask text. Companion to ShyPie for DeepSeek Harness.",
"type": "module",
"files": [
"privacy-gate.middleware.js",
"README.md",
"BRAND.md",
"assets",
"docs",
"page"
],
"keywords": [
"magpie",
"magpie-middleware",
"gateway-middleware",
"privacy",
"pii",
"dlp",
"security",
"shypie"
],
"license": "MIT",
"repository": {
"type": "git",
"url": "git+https://github.com/magpie-community/plugins.git",
"directory": "packages/privacy-gate"
},
"magpie": {
"middleware": "./privacy-gate.middleware.js",
"icon": "https://raw.githubusercontent.com/magpie-community/plugins/main/packages/privacy-gate/assets/shypie-icon.svg",
"page": {
"title": "ShyPie Filter",
"titles": { "zh": "ShyPie 防护" },
"file": "page/index.html",
"icon": "page/icon.svg"
},
"panels": [
{
"slot": "agents",
"file": "page/agents-panel.html",
"title": "ShyPie protection",
"titles": { "zh": "ShyPie 防护" }
}
],
"actions": [
{
"id": "shypie-protection",
"menu": "agent",
"title": "ShyPie protection",
"titles": { "zh": "ShyPie 防护" }
}
],
"permissions": [],
"options": {
"allowModels": [],
"localModels": [],
"localProviders": [],
"binaryPolicy": "fail",
"disabledAgents": [],
"protectUnknownAgent": true,
"extraAgents": [],
"guideTools": [],
"allowUnknownProtocol": false,
"blobBase64Chars": 400,
"blobHexChars": 400,
"scanChars": 200000,
"maxNodes": 40000,
"maxDepth": 40,
"logMaxLines": 40,
"logEveryRows": 50
}
}
}