mirror of
https://github.com/getcompanion-ai/co-mono.git
synced 2026-04-16 16:00:58 +00:00
- Replace JSON Schema with Zod schemas for tool parameter definitions - Add runtime validation for all tool calls at provider level - Create shared validation module with detailed error formatting - Update Agent API with comprehensive event system - Add agent tests with calculator tool for multi-turn execution - Add abort test to verify proper handling of aborted requests - Update documentation with detailed event flow examples - Rename generate.ts to stream.ts for clarity
52 lines
1.1 KiB
JSON
52 lines
1.1 KiB
JSON
{
|
|
"name": "@mariozechner/pi-ai",
|
|
"version": "0.5.31",
|
|
"description": "Unified LLM API with automatic model discovery and provider configuration",
|
|
"type": "module",
|
|
"main": "./dist/index.js",
|
|
"types": "./dist/index.d.ts",
|
|
"files": [
|
|
"dist",
|
|
"README.md"
|
|
],
|
|
"scripts": {
|
|
"clean": "rm -rf dist",
|
|
"generate-models": "npx tsx scripts/generate-models.ts",
|
|
"build": "npm run generate-models && tsc -p tsconfig.build.json",
|
|
"dev": "tsc -p tsconfig.build.json --watch",
|
|
"check": "biome check --write .",
|
|
"test": "vitest --run",
|
|
"prepublishOnly": "npm run clean && npm run build"
|
|
},
|
|
"dependencies": {
|
|
"@anthropic-ai/sdk": "^0.61.0",
|
|
"@google/genai": "^1.17.0",
|
|
"chalk": "^5.6.2",
|
|
"openai": "^5.20.0",
|
|
"zod-to-json-schema": "^3.24.6"
|
|
},
|
|
"keywords": [
|
|
"ai",
|
|
"llm",
|
|
"openai",
|
|
"anthropic",
|
|
"gemini",
|
|
"unified",
|
|
"api"
|
|
],
|
|
"author": "Mario Zechner",
|
|
"license": "MIT",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "git+https://github.com/badlogic/pi-mono.git",
|
|
"directory": "packages/ai"
|
|
},
|
|
"engines": {
|
|
"node": ">=20.0.0"
|
|
},
|
|
"devDependencies": {
|
|
"@types/node": "^24.3.0",
|
|
"canvas": "^3.2.0",
|
|
"vitest": "^3.2.4"
|
|
}
|
|
}
|