9b719f13ba
- 新增 SqliteStore(node:sqlite 封装):strategy_holdings 持仓生命周期表 + market_quotes_cache 行情缓存表 - DataStore 改造为门面委托 SqliteStore,保留兼容 API,启动检测自动迁移(幂等) - PositionManager 适配单票生命周期(openHolding/addShares/reduceShares/closeHolding),清仓转历史保留 - 新增一次性迁移脚本 scripts/migrate-json-to-sqlite.mjs + pnpm migrate 命令 - 修复 addToStrategy 语义 Bug(新增量 vs 绝对目标量),真实 API CRUD 回归通过 - 移除策略 tab 一键清零按钮及 remove-all-shares 端点(clearStrategyShares 保留供删除策略联动) - 插件 dispose 补充 storage.close() 关闭 SQLite 连接
62 lines
1.7 KiB
JSON
62 lines
1.7 KiB
JSON
{
|
|
"name": "one-divine-lot",
|
|
"version": "0.1.0",
|
|
"description": "神之一手 —— DSH 智能交易辅助系统插件:分仓管理(策略标签 + 持仓数据 + 本地存储),数据源直连 QMT Bridge REST",
|
|
"type": "module",
|
|
"main": "lib/index.js",
|
|
"exports": {
|
|
".": {
|
|
"types": "./lib/index.d.ts",
|
|
"default": "./lib/index.js"
|
|
},
|
|
"./client": {
|
|
"default": "./lib/client/index.js"
|
|
},
|
|
"./package.json": "./package.json"
|
|
},
|
|
"files": [
|
|
"lib"
|
|
],
|
|
"license": "MIT",
|
|
"dsh": {
|
|
"bundle": {
|
|
"patch": "./cordis.patch.yml"
|
|
},
|
|
"client": {
|
|
"inject": [
|
|
"@deepseek-ai/dsh-client-runtime",
|
|
"@deepseek-ai/dsh-client-ui-slots",
|
|
"@deepseek-ai/dsh-client-ui-conversation",
|
|
"@deepseek-ai/dsh-client-connection"
|
|
],
|
|
"platform": "web"
|
|
}
|
|
},
|
|
"dependencies": {
|
|
"@deepseek-ai/schemastery": "^3.18.1"
|
|
},
|
|
"peerDependencies": {
|
|
"@deepseek-ai/cordis": "^4.0.1",
|
|
"@deepseek-ai/dsh-client-connection": "^0.1.1-rc.2",
|
|
"@deepseek-ai/dsh-client-runtime": "^0.1.1-rc.2",
|
|
"@deepseek-ai/dsh-client-ui-conversation": "^0.1.1-rc.2",
|
|
"@deepseek-ai/dsh-client-ui-slots": "^0.1.1-rc.2",
|
|
"@deepseek-ai/dsh-settings": "^0.1.1-rc.2",
|
|
"react": "^18.2.0"
|
|
},
|
|
"scripts": {
|
|
"build": "rm -rf lib && tsc -p tsconfig.build.json && tsdown && node scripts/wrap-client.mjs",
|
|
"bundle": "tsdown",
|
|
"typecheck": "tsc --noEmit",
|
|
"migrate": "node scripts/migrate-json-to-sqlite.mjs"
|
|
},
|
|
"devDependencies": {
|
|
"@deepseek-ai/dsh-client-runtime": "0.1.1-rc.2",
|
|
"@deepseek-ai/dsh-client-ui-slots": "0.1.1-rc.2",
|
|
"@types/react": "~18.3.1",
|
|
"react": "^18.2.0",
|
|
"tsdown": "^0.22.2",
|
|
"typescript": "^5.6.0"
|
|
}
|
|
}
|