Files
MosaicIQ/packages/shared/package.json
francy51 0624026af3 Migrate to Pi Coding Agent SDK for multi-provider LLM support
Replace the custom Pi API fetch client with the @earendil-works/pi-coding-agent
SDK, enabling support for multiple LLM providers (Anthropic, OpenAI, DeepSeek,
Google Gemini, xAI/ZAI) while maintaining backward compatibility.

Key changes:
- Add piSdk.ts with SDK session management and provider auto-detection
- Refactor client.ts to delegate to SDK adapter, keeping public API surface
- Update documentation to reflect multi-provider environment variables
- Add RPC contracts for LLM model selection and provider configuration
- Update agent runner to support provider-specific tools and parameters

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-15 00:17:26 -04:00

39 lines
884 B
JSON

{
"name": "@mosaiciq/shared",
"private": true,
"type": "module",
"exports": {
"./db": {
"types": "./src/db/index.ts",
"import": "./src/db/index.ts"
},
"./data": {
"types": "./src/data/index.ts",
"import": "./src/data/index.ts"
},
"./llm": {
"types": "./src/llm/index.ts",
"import": "./src/llm/index.ts"
},
"./agents": {
"types": "./src/agents/index.ts",
"import": "./src/agents/index.ts"
},
"./export": {
"types": "./src/export/index.ts",
"import": "./src/export/index.ts"
}
},
"dependencies": {
"@earendil-works/pi-coding-agent": "^0.74.0",
"@mosaiciq/contracts": "workspace:*",
"better-sqlite3": "^12.10.0",
"exceljs": "^4.4.0",
"pptxgenjs": "^4.0.1",
"typebox": "^1.1.38"
},
"devDependencies": {
"@types/better-sqlite3": "^7.6.13"
}
}