@xlcongi/dsh-plugin-kanban 0.1.1 → 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +17 -35
  2. package/package.json +2 -2
package/README.md CHANGED
@@ -1,58 +1,40 @@
1
1
  # @xlcongi/dsh-plugin-kanban
2
2
 
3
- 把 **自选股盯盘看板**(本机 Flask,默认 `http://127.0.0.1:5000`)装进 DeepSeek Harness。
3
+ **自选股盯盘看板** DeepSeek Harness 插件:在对话里打开看板、查看当日与浮动盈亏、手填或导入持仓。
4
4
 
5
- > 非投资建议。只读公开行情,**不下单**。不做券商 OCR / 登录。
6
- >
7
- > **定位:本机自用 / 开发插件。** 需已有 `kanban/` 源码(`KANBAN_HOME`)。尚未捆绑 Python,**不能当市场插件指望别人装了就能用**。
8
- >
9
- > **npm 名说明:** 无作用域的 `dsh-plugin-kanban@0.0.1` 是他人占位包,与本仓库无关。请装 **`@xlcongi/dsh-plugin-kanban`**。
5
+ > 非投资建议。只读公开行情,**不下单**。不做券商登录 / OCR。
10
6
 
11
- ## 工具
7
+ ## 能做什么
12
8
 
13
9
  | 工具 | 作用 |
14
10
  |------|------|
15
- | `kanban_open` | 探测并启动看板,返回 URL |
16
- | `kanban_summary` | 实时总资产 / 当日与浮动盈亏 / 持仓摘要 |
17
- | `kanban_holdings_get` | 读当前持仓配置 |
18
- | `kanban_holdings_set` | 手填保存持仓(省略 `cash` 会保留现有现金,不会写成 0) |
19
- | `kanban_holdings_import` | 粘贴 CSV / JSON / 交割明细导入 |
20
- | `kanban_refresh` | 全量刷新(写盘) |
21
-
22
- ## 前置
23
-
24
- 1. 本机看板源码(含 `app.py`),通过其一找到:`KANBAN_HOME` / `SMART_QUANT_ROOT/kanban` / 同级 `../kanban`
25
- 2. `py -3 app.py` 可跑
26
- 3. 可选:`KANBAN_URL=http://127.0.0.1:5000`
11
+ | `kanban_open` | 打开盯盘看板(浏览器地址) |
12
+ | `kanban_summary` | 总资产 / 现金 / 当日与浮动盈亏 / 持仓摘要 |
13
+ | `kanban_holdings_get` | 读取当前持仓配置 |
14
+ | `kanban_holdings_set` | 手填保存持仓(未传现金时保留原现金,不会误清零) |
15
+ | `kanban_holdings_import` | 粘贴 CSV、JSON 或交割明细导入 |
16
+ | `kanban_refresh` | 全量刷新行情与报告 |
27
17
 
28
18
  ## 安装
29
19
 
30
- npm(发布后):
31
-
32
20
  ```sh
33
21
  dsh plugin --profile desktop add @xlcongi/dsh-plugin-kanban
34
22
  ```
35
23
 
36
- GitHub:
24
+ 或:
37
25
 
38
26
  ```sh
39
27
  dsh plugin --profile desktop add xlcongi/dsh-plugin-kanban
40
28
  ```
41
29
 
42
- 本机开发 link:在 profile `package.json`:
43
-
44
- ```json
45
- "@xlcongi/dsh-plugin-kanban": "link:D:/trae_projects/smart_quant/dsh-plugin-kanban"
46
- ```
47
-
48
- 并写入 `dsh.profile.bundles`,重启 DSH。
30
+ 安装后重启 DSH。首次使用请设置环境变量 `KANBAN_HOME` 指向看板程序目录(内含 `app.py`),或确认看板已在 `http://127.0.0.1:5000` 运行。
49
31
 
50
- ## 发布(维护者)
32
+ ## 使用示例
51
33
 
52
- 1. 首次:本机 `npm login` → `npm publish --access public`(OIDC 不能创建全新包)
53
- 2. 在 npm 包设置里加 Trusted Publisher:GitHub `xlcongi/dsh-plugin-kanban` / workflow `publish.yml`
54
- 3. 之后:`npm version patch` → `git push --tags` 走 Actions
34
+ - 「打开盯盘看板」
35
+ - 「现在持仓盈亏怎样」
36
+ - 「导入这段持仓 CSV」
55
37
 
56
- ## 与 Python 看板关系
38
+ ## 说明
57
39
 
58
- 本包是 Cordis JS 工具层,HTTP 调本地 Flask;UI/计算仍在你的 `kanban/`。
40
+ 插件通过本机看板服务展示页面与计算盈亏;数据留在本机,不上传券商账户。
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@xlcongi/dsh-plugin-kanban",
3
- "version": "0.1.1",
4
- "description": "自选股盯盘看板 DSH 插件(本机自用):启动本地看板、查盈亏、录入/导入持仓。只读公开行情,不下单。非投资建议。注意:npm 上无作用域的 dsh-plugin-kanban@0.0.1 是他人占名,不是本包。",
3
+ "version": "0.1.2",
4
+ "description": "自选股盯盘看板:在对话里打开看板、查看盈亏、录入或导入持仓。只读公开行情,不下单。非投资建议。",
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },