mirror of
https://github.com/getcompanion-ai/co-mono.git
synced 2026-04-15 08:03:39 +00:00
Add npm script to build a standalone binary using Bun's bytecode compilation. The binary is ~30% faster than Node.js for CLI operations. Benchmark results (10 runs, simple query): - Bun Bytecode Binary: 1.82s avg - Bun runtime: 2.09s avg - Node.js: 2.59s avg Startup time only (--help): - Bun Bytecode: 0.049s (3.8x faster than Node) - Bun runtime: 0.121s - Node.js: 0.185s Usage: npm run build:binary Output: dist/pi-binary Requires Bun 1.3+ for bytecode compilation support.
57 lines
1.5 KiB
JSON
57 lines
1.5 KiB
JSON
{
|
|
"name": "@mariozechner/pi-coding-agent",
|
|
"version": "0.11.6",
|
|
"description": "Coding agent CLI with read, bash, edit, write tools and session management",
|
|
"type": "module",
|
|
"bin": {
|
|
"pi": "dist/cli.js"
|
|
},
|
|
"main": "./dist/index.js",
|
|
"types": "./dist/index.d.ts",
|
|
"files": [
|
|
"dist",
|
|
"CHANGELOG.md"
|
|
],
|
|
"scripts": {
|
|
"clean": "rm -rf dist",
|
|
"build": "tsgo -p tsconfig.build.json && chmod +x dist/cli.js && npm run copy-theme-assets",
|
|
"build:binary": "command -v bun >/dev/null 2>&1 || { echo 'Error: Bun is required for building the binary. Install it from https://bun.sh'; exit 1; } && npm run build && bun build --compile --bytecode ./dist/cli.js --outfile dist/pi",
|
|
"copy-theme-assets": "cp src/theme/*.json dist/theme/",
|
|
"dev": "tsgo -p tsconfig.build.json --watch --preserveWatchOutput",
|
|
"check": "tsgo --noEmit",
|
|
"test": "vitest --run",
|
|
"prepublishOnly": "npm run clean && npm run build"
|
|
},
|
|
"dependencies": {
|
|
"@mariozechner/pi-agent-core": "^0.11.6",
|
|
"@mariozechner/pi-ai": "^0.11.6",
|
|
"@mariozechner/pi-tui": "^0.11.6",
|
|
"chalk": "^5.5.0",
|
|
"diff": "^8.0.2",
|
|
"glob": "^11.0.3"
|
|
},
|
|
"devDependencies": {
|
|
"@types/diff": "^7.0.2",
|
|
"@types/node": "^24.3.0",
|
|
"typescript": "^5.7.3",
|
|
"vitest": "^3.2.4"
|
|
},
|
|
"keywords": [
|
|
"coding-agent",
|
|
"ai",
|
|
"llm",
|
|
"cli",
|
|
"tui",
|
|
"agent"
|
|
],
|
|
"author": "Mario Zechner",
|
|
"license": "MIT",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "git+https://github.com/badlogic/pi-mono.git",
|
|
"directory": "packages/coding-agent"
|
|
},
|
|
"engines": {
|
|
"node": ">=20.0.0"
|
|
}
|
|
}
|