-
Notifications
You must be signed in to change notification settings - Fork 25
Expand file tree
/
Copy pathpackage.json
More file actions
72 lines (72 loc) · 2.56 KB
/
Copy pathpackage.json
File metadata and controls
72 lines (72 loc) · 2.56 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
{
"name": "pi-rtk-optimizer",
"version": "0.9.0",
"description": "Pi extension that optimizes RTK command rewriting and tool output compaction for the coding agent.",
"type": "module",
"main": "./index.ts",
"exports": {
".": "./index.ts"
},
"files": [
"index.ts",
"src",
"config/config.example.json",
"README.md",
"CHANGELOG.md",
"LICENSE"
],
"scripts": {
"build": "tsc -p tsconfig.json --noCheck",
"typecheck": "tsc -p tsconfig.json",
"test": "bun ./src/output-compactor.test.ts && bun ./src/command-rewriter.test.ts && bun ./src/runtime-guard.test.ts && bun ./src/package-lock-integrity.test.ts && bun ./src/additional-coverage.test.ts && bun ./src/config-modal.test.ts && bun ./src/index.test.ts",
"check": "npm run typecheck && npm run test && npm run build:check",
"build:check": "esbuild ./index.ts --bundle --platform=node --format=esm --outfile=./.pi-rtk-optimizer-check.mjs --external:@earendil-works/pi-coding-agent --external:@earendil-works/pi-tui && node -e \"import { unlinkSync } from 'node:fs'; unlinkSync('./.pi-rtk-optimizer-check.mjs');\"",
"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",
"rtk",
"token-optimization",
"tool-compaction",
"output-compaction",
"command-rewrite",
"optimization"
],
"author": "MasuRii",
"license": "MIT",
"repository": {
"type": "git",
"url": "git+https://github.com/MasuRii/pi-rtk-optimizer.git"
},
"bugs": {
"url": "https://github.com/MasuRii/pi-rtk-optimizer/issues"
},
"homepage": "https://github.com/MasuRii/pi-rtk-optimizer#readme",
"engines": {
"node": ">=20"
},
"publishConfig": {
"access": "public"
},
"devDependencies": {
"esbuild": "0.28.1",
"typescript": "6.0.3"
},
"pi": {
"extensions": [
"./index.ts"
]
},
"peerDependencies": {
"@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"
},
"overrides": {
"protobufjs": "7.6.3",
"ws": "8.21.0"
}
}