mirror of
https://bitbucket.org/siakitem/my-pi.git
synced 2026-08-28 08:35:57 +00:00
chore: initialize my-pi extension bundle
This commit is contained in:
@@ -0,0 +1,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"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user