- engine/(registry/types/runtime/expression)物理迁入包, 解耦shared/types(域类型归包, 宿主type-only re-export) - 31个纯Node能力+27个测试迁入包; 宿主留守Electron/浏览器/AI依赖能力, index.ts经@rpa/core/capabilities拉起 - 新增createEngine()/defaultEngine: excel缓存/Excel句柄/db连接/FTP客户端/OCR实例/拟真设置挂引擎实例 - remaining-core子流程依赖改为host-bridge注入, 包内不再import宿主flows - 宿主main/index.ts启动时注入子流程源; electron-vite/vitest/tsconfig配@rpa/core源码别名 - 验证: typecheck绿, 快照909个id diff为零, 332测试过(2个桌面冒烟因会话无交互SetForegroundWindow被拒, 环境阻塞)
41 lines
1.0 KiB
JSON
41 lines
1.0 KiB
JSON
{
|
|
"name": "@rpa/core",
|
|
"version": "0.1.0",
|
|
"private": true,
|
|
"description": "RPA 能力层:零 Electron 依赖的流程引擎、能力注册表与纯 Node 能力",
|
|
"main": "./src/index.ts",
|
|
"types": "./src/index.ts",
|
|
"exports": {
|
|
".": "./src/index.ts",
|
|
"./capabilities": "./src/capabilities/index.ts"
|
|
},
|
|
"scripts": {
|
|
"test": "vitest run",
|
|
"typecheck": "tsc --noEmit -p tsconfig.json"
|
|
},
|
|
"dependencies": {
|
|
"@gutenye/ocr-node": "^1.4.9",
|
|
"adm-zip": "^0.5.16",
|
|
"basic-ftp": "^6.2.3",
|
|
"exceljs": "^4.4.0",
|
|
"imapflow": "^2.10.0",
|
|
"mailparser": "^3.14.1",
|
|
"mssql": "^12.7.13",
|
|
"mysql2": "^3.24.6",
|
|
"nodemailer": "^6.9.16",
|
|
"pdf-lib": "^1.17.1",
|
|
"pg": "^8.23.1",
|
|
"pngjs": "^7.0.0",
|
|
"sm-crypto": "^0.5.8"
|
|
},
|
|
"devDependencies": {
|
|
"@types/adm-zip": "^0.5.7",
|
|
"@types/mssql": "^12.3.0",
|
|
"@types/nodemailer": "^6.4.17",
|
|
"@types/pg": "^8.23.1",
|
|
"@types/pngjs": "^6.0.5",
|
|
"typescript": "^5.7.2",
|
|
"vitest": "^2.1.8"
|
|
}
|
|
}
|