Files
oh-my-pi/packages/ai/package.json
T
can1357 e22d123009 refactor(fs): migrated remaining sync file operations to async
- Converted readdirSync, readFileSync, and statSync to async readdir, readFile, stat across skills and agent discovery.
- Made scanDirectoryForSkills async and refactored custom directory scanning to use Promise.all for concurrent processing.
- Updated agent discovery to use fs/promises for async file reading and refactored helper patterns.
- Added AgentParsingError exception class for better error handling during agent parsing.
- Added filesystem error type guards (isEnoent, isEacces, isPerm, etc.) to pi-utils for safe error checking.
- Added color manipulation utilities to pi-utils for accessibility features.
- Added color-blind mode setting to settings manager.
- Migrated plugins, settings, and config modules from sync to async file operations.
- Updated error handling to use new pi-utils type guards for type-safe checking.
2026-01-24 03:18:03 +01:00

99 lines
2.1 KiB
JSON

{
"name": "@oh-my-pi/pi-ai",
"version": "8.1.0",
"description": "Unified LLM API with automatic model discovery and provider configuration",
"type": "module",
"main": "./src/index.ts",
"types": "./src/index.ts",
"exports": {
".": {
"types": "./src/index.ts",
"import": "./src/index.ts"
},
"./models": {
"types": "./src/models.ts",
"import": "./src/models.ts"
},
"./models.generated": {
"types": "./src/models.generated.ts",
"import": "./src/models.generated.ts"
},
"./stream": {
"types": "./src/stream.ts",
"import": "./src/stream.ts"
},
"./types": {
"types": "./src/types.ts",
"import": "./src/types.ts"
},
"./usage": {
"types": "./src/usage.ts",
"import": "./src/usage.ts"
},
"./storage": {
"types": "./src/storage.ts",
"import": "./src/storage.ts"
},
"./providers/*": {
"types": "./src/providers/*.ts",
"import": "./src/providers/*.ts"
},
"./utils/*": {
"types": "./src/utils/*.ts",
"import": "./src/utils/*.ts"
}
},
"bin": {
"pi-ai": "./src/cli.ts"
},
"files": [
"src",
"README.md"
],
"scripts": {
"check": "tsgo -p tsconfig.json",
"generate-models": "bun scripts/generate-models.ts",
"test": "bun test"
},
"dependencies": {
"@oh-my-pi/pi-utils": "workspace:*",
"@anthropic-ai/sdk": "^0.71.2",
"@aws-sdk/client-bedrock-runtime": "^3.975.0",
"@bufbuild/protobuf": "^2.10.2",
"@connectrpc/connect": "^2.1.1",
"@connectrpc/connect-node": "^2.1.1",
"@google/genai": "^1.38.0",
"@mistralai/mistralai": "^1.13.0",
"@sinclair/typebox": "^0.34.41",
"ajv": "^8.17.1",
"ajv-formats": "^3.0.1",
"chalk": "^5.6.2",
"json5": "^2.2.3",
"openai": "^6.16.0",
"partial-json": "^0.1.7",
"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/can1357/oh-my-pi.git",
"directory": "packages/ai"
},
"engines": {
"bun": ">=1.0.0"
},
"devDependencies": {
"@types/node": "^25.0.10"
}
}