mirror of
https://github.com/hellodigua/ChatLab.git
synced 2026-10-25 17:54:34 +08:00
- Replace @mariozechner/pi-ai and pi-agent-core with @earendil-works scope - Adapt to AgentTool.execute() params type change (Record → unknown) - Migrate Agent constructor to use initialState for systemPrompt/tools/messages - Update onPayload callback signature to include model parameter - Filter finalMessages with isPiMessage() for new AgentMessage union type - Use state.errorMessage instead of deprecated state.error Co-authored-by: Cursor <cursoragent@cursor.com>
24 lines
635 B
JSON
24 lines
635 B
JSON
{
|
|
"name": "@openchatlab/node-runtime",
|
|
"version": "0.0.0",
|
|
"private": true,
|
|
"description": "ChatLab Node.js 运行时适配器:better-sqlite3、文件系统、路径管理",
|
|
"type": "module",
|
|
"main": "./src/index.ts",
|
|
"types": "./src/index.ts",
|
|
"dependencies": {
|
|
"@earendil-works/pi-agent-core": "0.74.2",
|
|
"@earendil-works/pi-ai": "0.74.2",
|
|
"@openchatlab/core": "workspace:*",
|
|
"better-sqlite3": "^12.4.6",
|
|
"gray-matter": "^4.0.3",
|
|
"js-tiktoken": "^1.0.21"
|
|
},
|
|
"optionalDependencies": {
|
|
"@node-rs/jieba": "^2.0.1"
|
|
},
|
|
"devDependencies": {
|
|
"@types/better-sqlite3": "^7.6.13"
|
|
}
|
|
}
|