privacy-gate 0.3.0: branded bilingual docs, ShyPie icon and README.
Installs with `magpie plugin add @magpie-community/middleware-privacy-gate`
(from this repo's dist index until npm has the package). Names the
built-in "JS gateway plugins" / "JS 网关插件" (id `middleware`). Icons
are a pie, a shield and a gold chevron, with no bird. magpie.icon points
at packages/privacy-gate/assets/shypie-icon.svg. The middleware code
(privacy-gate.middleware.js) is unchanged since e0a4548a.
Reviewed at 85dbd121b833017982d0a97a2f3fab50be98caab. The last round
(67ae63c3b..85dbd121b) changed only docs/operations.md:10 (ends the
sentence) and the aria-label of the two shypie-icon SVGs ("with a gold
chevron").
Run at 85dbd121b on mote (macOS), Bun 1.4.2, HOME=$(mktemp -d):
- bun test packages/privacy-gate: 62 pass, 0 fail.
- bun scripts/check.mjs privacy-gate: ok, exit 0.
- bun scripts/check.mjs (whole repo): exit 0.
- bun test (root): 6449 pass, 20 skip, 0 fail, 472 files.
- npm pack --dry-run: 12 files, version 0.3.0.
- git merge-tree with origin/main ab0d3fe54: clean.
Not tried: installing 0.3.0 into a running magpie (dist has 0.1.0 only
until this merges). No mover or min in yetone/magpie references it.
49 lines
1.3 KiB
JSON
49 lines
1.3 KiB
JSON
{
|
|
"name": "@magpie-community/middleware-privacy-gate",
|
|
"version": "0.3.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"
|
|
],
|
|
"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",
|
|
"options": {
|
|
"allowModels": [],
|
|
"localModels": [],
|
|
"localProviders": [],
|
|
"binaryPolicy": "fail",
|
|
"guideTools": [],
|
|
"allowUnknownProtocol": false,
|
|
"blobBase64Chars": 400,
|
|
"blobHexChars": 400,
|
|
"scanChars": 200000,
|
|
"maxNodes": 40000,
|
|
"maxDepth": 40,
|
|
"logMaxLines": 40,
|
|
"logEveryRows": 50
|
|
}
|
|
}
|
|
}
|