-
Notifications
You must be signed in to change notification settings - Fork 25
Expand file tree
/
Copy pathpackage.json
More file actions
80 lines (80 loc) · 3.03 KB
/
Copy pathpackage.json
File metadata and controls
80 lines (80 loc) · 3.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
{
"name": "pi-permission-system",
"version": "0.8.0",
"description": "Permission enforcement extension for the Pi coding agent.",
"type": "module",
"main": "./index.ts",
"exports": {
".": "./index.ts"
},
"files": [
"index.ts",
"src",
"tests",
"config/config.example.json",
"schemas/permissions.schema.json",
"README.md",
"CHANGELOG.md",
"LICENSE"
],
"scripts": {
"typecheck": "npx --yes -p typescript@5.7.3 tsc -p tsconfig.json --noEmit",
"build": "npm run typecheck",
"lint": "npm run typecheck",
"validate:artifacts": "node ./scripts/validate-artifacts.mjs",
"test": "bun ./tests/approved-fixes.test.ts && bun ./tests/config-modal.test.ts && bun ./tests/config-modal-theme-red.test.ts && bun ./tests/config-preservation-red.test.ts && bun ./tests/directory-resource-matching-red.test.ts && bun ./tests/edge-red-agent-name-traversal.test.ts && bun ./tests/edit-decision-deduplication-red.test.ts && bun ./tests/edit-prompt-compaction-red.test.ts && bun ./tests/permission-persistence-red.test.ts && bun ./tests/permission-system.test.ts && bun ./tests/session-permanent-permission.test.ts && bun ./tests/types-shims-coverage.test.ts && bun ./tests/wildcard-multiline.test.ts && bun ./tests/wildcard-redos.test.ts",
"test:issue23": "bun ./tests/session-permanent-permission.test.ts",
"check": "npm run lint && npm run validate:artifacts && npm run test",
"postinstall": "node -e \"const fs=require('fs'),cp=require('child_process'),p=require('path');const cwd=process.cwd();const normalized=cwd.split(p.sep).join('/');if(!normalized.includes('/.pi/agent/extensions/'))process.exit(0);const s=p.resolve(cwd,'../../scripts/patch-vulnerable-deps.mjs');if(!fs.existsSync(s))process.exit(0);const r=cp.spawnSync(process.execPath,[s,'--target',cwd,'--quiet'],{stdio:'inherit'});process.exit(r.status||0)\""
},
"keywords": [
"pi-package",
"pi",
"pi-extension",
"pi-coding-agent",
"coding-agent",
"permissions",
"policy",
"access-control",
"authorization",
"security"
],
"author": "MasuRii",
"license": "MIT",
"repository": {
"type": "git",
"url": "git+https://github.com/MasuRii/pi-permission-system.git"
},
"homepage": "https://github.com/MasuRii/pi-permission-system#readme",
"bugs": {
"url": "https://github.com/MasuRii/pi-permission-system/issues"
},
"engines": {
"node": ">=20",
"bun": ">=1.1.0"
},
"publishConfig": {
"access": "public"
},
"pi": {
"extensions": [
"./index.ts"
]
},
"peerDependencies": {
"@sinclair/typebox": "^0.34.49",
"@earendil-works/pi-ai": "^0.74.0 || ^0.75.0 || ^0.78.0 || ^0.79.0 || ^0.80.0",
"@earendil-works/pi-coding-agent": "^0.74.0 || ^0.75.0 || ^0.78.0 || ^0.79.0 || ^0.80.0",
"@earendil-works/pi-tui": "^0.74.0 || ^0.75.0 || ^0.78.0 || ^0.79.0 || ^0.80.0"
},
"dependencies": {
"jsonc-parser": "^3.3.1"
},
"overrides": {
"protobufjs": "7.6.3",
"ws": "8.21.0"
},
"devDependencies": {
"@earendil-works/pi-coding-agent": "^0.80.3"
}
}