mirror of
https://github.com/teamchong/pxpipe.git
synced 2026-07-22 02:02:51 +02:00
241cdbb6aa
- Add `packageManager` field so corepack uses the pinned version - Add `preinstall: npx only-allow pnpm` guard to block accidental `npm install` (npm exits non-zero with a clear redirect) - Add `engines.pnpm: >=10` requirement - Bundles the previously-uncommitted restart + test:restart script entries (already in use via the diagnostic-instrumentation slice)
69 lines
1.7 KiB
JSON
69 lines
1.7 KiB
JSON
{
|
|
"name": "pixelpipe",
|
|
"version": "0.2.0",
|
|
"description": "Token-saving proxy for Claude Code: renders system prompt + tool definitions as images, achieving 65-73% token savings on Opus 4.7 while preserving 100% reasoning quality. Runs on Node and Cloudflare Workers.",
|
|
"type": "module",
|
|
"bin": {
|
|
"pixelpipe": "bin/cli.js"
|
|
},
|
|
"exports": {
|
|
".": {
|
|
"types": "./dist/core/proxy.d.ts",
|
|
"import": "./dist/core/proxy.js"
|
|
},
|
|
"./node": {
|
|
"types": "./dist/node.d.ts",
|
|
"import": "./dist/node.js"
|
|
},
|
|
"./worker": {
|
|
"types": "./dist/worker.d.ts",
|
|
"import": "./dist/worker.js"
|
|
}
|
|
},
|
|
"files": [
|
|
"bin/",
|
|
"dist/",
|
|
"README.md",
|
|
"LICENSE"
|
|
],
|
|
"scripts": {
|
|
"build": "node scripts/build.mjs",
|
|
"build:atlas": "tsx scripts/gen-atlas.ts",
|
|
"dev:node": "tsx watch src/node.ts",
|
|
"dev:worker": "wrangler dev",
|
|
"deploy:worker": "wrangler deploy",
|
|
"restart": "bash scripts/restart.sh",
|
|
"typecheck": "tsc --noEmit",
|
|
"test": "vitest run",
|
|
"test:watch": "vitest",
|
|
"test:restart": "bash tests/restart.test.sh",
|
|
"preinstall": "npx only-allow pnpm"
|
|
},
|
|
"keywords": [
|
|
"claude",
|
|
"claude-code",
|
|
"anthropic",
|
|
"proxy",
|
|
"token-optimization",
|
|
"prompt-cache",
|
|
"opus-4-7",
|
|
"cloudflare-workers"
|
|
],
|
|
"engines": {
|
|
"node": ">=18",
|
|
"pnpm": ">=10"
|
|
},
|
|
"packageManager": "pnpm@10.21.0",
|
|
"license": "MIT",
|
|
"devDependencies": {
|
|
"@cloudflare/workers-types": "^4.20240512.0",
|
|
"@napi-rs/canvas": "^0.1.53",
|
|
"@types/node": "^20.12.0",
|
|
"esbuild": "^0.21.0",
|
|
"tsx": "^4.10.0",
|
|
"typescript": "^5.4.0",
|
|
"vitest": "^1.6.0",
|
|
"wrangler": "^3.60.0"
|
|
}
|
|
}
|