Repository navigation
Commit fda3e42
committed
Add chinese-divination: Plum Blossom divination Mini App
梅花易数起卦与解卦。时间、数字、铜钱摇卦、每日一卦四种起法,按体用生克、京房八宫、
纳支、旬空月破、爻之合刑等传统规则断吉凶,落到所问之事上给应期与宜忌;内置六十四卦
全文(卦辞、彖传、三百八十四条爻辞与小象传)与干支时辰历法。既能在页面起卦,也能由
Agent 经 MCP 端点在对话里主动起卦。
安全与边界:
- 全部计算在本机完成:不联网、不调模型、不 spawn 进程,不读包目录以外的任何文件
- 卦历存在 Host 分配的 dataDir,原子写入,上限 500 条;坏盘另存而非删除
- 请求只认回环 Host/Origin,挡住 DNS rebinding 与跨源读取;403 不回显请求方
- 日志只记错误码,不记 error.message——fs 报错会把绝对路径与系统用户名带出去
平台与验证:
- 三个平台(Windows / macOS / Linux)均已实跑:安装、经 Agent 打开、四个分区走通
- 路径审计 0 问题:可移植路径、Windows 保留名、UTF-8 无 BOM 无 CRLF、大小写、
import 解析、最坏 dataDir 路径 112 字符(MAX_PATH 260 内)
- 228 项单元测试,在 UTC-8 到 UTC+14 四个时区与 C locale 下均为 228 通过 0 失败
- 冒烟脚本真起 start(context),83 项覆盖页面、四种起法、卦历增删查、同秒 id 撞车、
坏盘恢复、MCP 全路径与 dispose 幂等
- 尚未核对的一项:760px 断点以下的窄屏版式1 parent d9d9523 commit fda3e42
27 files changed
Lines changed: 19482 additions & 0 deletions
File tree
- plugins/weekbin/chinese-divination
- .minimax-plugin
- miniapp
- client
- node
- mcp
- skills/divination
- tests
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
| 67 | + | |
67 | 68 | | |
68 | 69 | | |
69 | 70 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
| 68 | + | |
68 | 69 | | |
69 | 70 | | |
70 | 71 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Loading
0 commit comments