dsh-plugin-xiaoliuren
小六壬占卜:时间/报数/随机三种起卦,结论优先的白话成败结论 + 掌诀排盘、吉凶、五行、方位、神煞与断辞(DSH 工具插件 + 界面小部件 + 库 + CLI)
AI 分析
核心用途是提供小六壬占卜排盘与断辞解析。适合对传统占卜感兴趣、希望在 DSH 界面或命令行中进行快速起卦与吉凶推算的娱乐或研究用户。
安装
此插件尚未提供可验证的 bundle,或兼容性检查未通过。请先阅读仓库说明。 阅读完整 README ↗
说明文档
阅读完整 README ↗Library usage
import { castTime, castNumbers, castRandom } from 'dsh-plugin-xiaoliuren'
const r = castNumbers([3, 15, 5]) // numbers: month=3, day=15, hour=5
const r2 = castTime('2024-02-10T12:00:00', { calendar: 'lunar' }) // lunar time casting
const r3 = castRandom({ randomSource: { seed: 42 } }) // reproducible random
Public API: castTime, castNumbers, castRandom, compute, advance, renderSteps, getPalace, PALACES, shichenFromHour, shichenName, solarToLunar, makeRng, and all types.
CLI usage
xiaoliuren
xiaoliuren time --datetime 2024-02-10T12:00:00 --question "Will this project succeed?"
xiaoliuren time --calendar lunar
xiaoliuren numbers 3 15 5
xiaoliuren random --seed 42 --json
Invalid input prints a Chinese error and exits non-zero. Default output is the conclusion-first card:
【小六壬】结果
所问:Will this project succeed?
起卦:报数(3·15·5)→ 小吉
结论:所问之事大吉,成功可期,诸事顺遂 —— 宜积极行动,趁势而为。
(吉|木|北方|六合)
※ 以上为传统民俗文化娱乐参考,不构成任何专业建议。