Company Guard 0.4.7, tracking the author's public source: receipts stay individual requests and recent sessions are derived from the retained 25-request window; a pending application can be made from a verifiable Codex receipt, chosen in an explicit-consent dialog, rejected, or asked again within seven days, and none of these grants access; ordinary successful receipts stop once full-session authorization validates. By cyanask (#1211). Run at f4bb2cf15e (macOS via mote-run, temp HOME): bun test 36 pass, node --test 36 pass, check.mjs company-guard ok. The pages load nothing from outside and set no innerHTML; new writes go through wx/0600 with the owner check main already had. Not tried: Windows, where process.getuid is undefined (as on main).
73 lines
1.7 KiB
JSON
73 lines
1.7 KiB
JSON
{
|
|
"name": "@magpie-community/middleware-company-guard",
|
|
"version": "0.4.7",
|
|
"type": "module",
|
|
"license": "MIT",
|
|
"description": "Local company-name masking, reversible replies and session approvals for Magpie",
|
|
"files": [
|
|
"dist",
|
|
"src",
|
|
"vendor",
|
|
"company-guard.hooks.mjs",
|
|
"README.md",
|
|
"LICENSE",
|
|
"THIRD_PARTY_NOTICES.md",
|
|
"receipt-report.mjs",
|
|
"page",
|
|
"receipt-page.mjs"
|
|
],
|
|
"magpie": {
|
|
"middleware": "./dist/company-guard.middleware.js",
|
|
"hooks": "./company-guard.hooks.mjs",
|
|
"options": {
|
|
"companies": [],
|
|
"gatewayTimeoutMs": 4000
|
|
},
|
|
"page": {
|
|
"title": "Company name protection",
|
|
"titles": {
|
|
"zh": "公司名称保护",
|
|
"zh-TW": "公司名稱保護"
|
|
},
|
|
"file": "page/index-0.3.3.html",
|
|
"service": {
|
|
"port": 3469,
|
|
"option": "receiptPort"
|
|
}
|
|
}
|
|
},
|
|
"main": "./receipt-page.mjs",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "git+https://github.com/magpie-community/plugins.git",
|
|
"directory": "packages/company-guard"
|
|
},
|
|
"homepage": "https://github.com/cyanask/magpie-company-guard#readme",
|
|
"bugs": {
|
|
"url": "https://github.com/cyanask/magpie-company-guard/issues"
|
|
},
|
|
"keywords": [
|
|
"magpie-plugin",
|
|
"magpie",
|
|
"middleware",
|
|
"privacy",
|
|
"data-masking",
|
|
"codex"
|
|
],
|
|
"scripts": {
|
|
"build": "node scripts/build.mjs",
|
|
"check:dist": "node scripts/build.mjs --check",
|
|
"test": "npm run check:dist && node --test test/*.test.mjs"
|
|
},
|
|
"devDependencies": {
|
|
"esbuild": "0.25.12"
|
|
},
|
|
"os": [
|
|
"darwin"
|
|
],
|
|
"engines": {
|
|
"node": ">=20",
|
|
"magpie": ">=0.1.3841"
|
|
}
|
|
}
|