dsh-metaphysics 0.63.0 → 0.65.0
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.
- package/CHANGELOG.md +123 -0
- package/client.almanac.js +10 -10
- package/client.chart.js +137 -137
- package/client.chenggu.js +39 -39
- package/client.convert.js +38 -38
- package/client.daliuren.js +43 -43
- package/client.fengshui.js +13 -13
- package/client.js +475 -344
- package/client.liuyao.js +19 -19
- package/client.mbti.js +3 -3
- package/client.name.js +14 -14
- package/client.numerology.js +33 -33
- package/client.qimen.js +17 -17
- package/client.star.js +40 -40
- package/client.tarot.js +39 -39
- package/client.xiaoliuren.js +3 -3
- package/client.zeri.js +22 -22
- package/engine/diff.js +20 -0
- package/engine/index.js +6 -4
- package/engine/interpret.js +4 -3
- package/engine/ziwei.js +268 -23
- package/index.js +34 -2
- package/package.json +1 -1
- package//345/221/275/347/220/206/346/216/222/347/233/230.html +582 -56
package/index.js
CHANGED
|
@@ -65,7 +65,8 @@ const OPTION_KEYS = [
|
|
|
65
65
|
'upper', 'lower', 'changing', 'count',
|
|
66
66
|
'leapMonth', 'leapAsNext', 'brightnessSchool', 'gengYearSihua', 'tianmaSchool',
|
|
67
67
|
'tiankongSchool', 'jiekongSchool', 'kuiyueSchool', 'tianshiTianshang',
|
|
68
|
-
'changshengSchool', 'lateZishi', 'shenzhuSchool', 'zuoyaoSchool',
|
|
68
|
+
'changshengSchool', 'lateZishi', 'shenzhuSchool', 'mingzhuSchool', 'zuoyaoSchool', 'liunianSihua',
|
|
69
|
+
'sihuaVariant', 'jieluSchool', 'suipoSchool',
|
|
69
70
|
'action', 'toAge', 'sitting', 'facing', 'fortuneYear', 'period',
|
|
70
71
|
'sittingOffset', 'sittingDegree', 'facingOffset', 'facingDegree',
|
|
71
72
|
'fortuneDate', 'fortuneTime', 'surname', 'givenName', 'limit',
|
|
@@ -109,7 +110,12 @@ const OPTION_HINTS = {
|
|
|
109
110
|
changshengSchool: '仅 ziwei:长生十二神起点流派',
|
|
110
111
|
lateZishi: '仅 ziwei:晚子时口径 current-day / next-day',
|
|
111
112
|
shenzhuSchool: '仅 ziwei:身主安法 common / verse',
|
|
113
|
+
mingzhuSchool: '仅 ziwei:命主取法 soul-branch 按命宫地支(默认)/ year-branch 按生年年支(中州派)',
|
|
112
114
|
zuoyaoSchool: '仅 ziwei:杂曜取盘 minimal / full',
|
|
115
|
+
liunianSihua: '仅 ziwei:流年四化取干 year-stem 按流年天干(默认)/ life-palace-stem 按流年命宫宫干',
|
|
116
|
+
sihuaVariant: '仅 ziwei:十干四化变体 default 或 廉破曲阳/贪阴阳机/阳武同阴…(整表替换)',
|
|
117
|
+
jieluSchool: '仅 ziwei:截路空亡 off 照常排(默认)/ zhongzhou 整组不排(截空、副截、旬空、副旬都不出)',
|
|
118
|
+
suipoSchool: '仅 ziwei:岁前十二神 off 照常(默认)/ zhongzhou 大耗改岁破(宫位不变只换名字)',
|
|
113
119
|
action: 'fengshui:natal(默认)/ advise / xuankong 玄空;name:assess / generate',
|
|
114
120
|
toAge: '仅 trend:算到几岁 10–100,默认 100',
|
|
115
121
|
sitting: '仅 fengshui advise/xuankong 玄空:坐山(24 山之一)',
|
|
@@ -140,7 +146,7 @@ const READ_KEYS = ['withInterpret', 'detail', 'ask', 'question', 'direction', 's
|
|
|
140
146
|
/** 每个体系实际会读的参数:help 按这张表展开,避免「有这个键但该体系不看」 */
|
|
141
147
|
const SYSTEM_PARAMS = {
|
|
142
148
|
bazi: [...BIRTH_KEYS, 'hourUnknown', 'verifyPast', 'rectify', 'events', 'rectifyHours', 'cross', 'diff', 'trace', ...READ_KEYS],
|
|
143
|
-
ziwei: [...BIRTH_KEYS, 'leapMonth', 'leapAsNext', 'brightnessSchool', 'gengYearSihua', 'tianmaSchool', 'tiankongSchool', 'jiekongSchool', 'kuiyueSchool', 'tianshiTianshang', 'changshengSchool', 'lateZishi', 'shenzhuSchool', 'zuoyaoSchool', 'cross', 'diff', 'trace', ...READ_KEYS],
|
|
149
|
+
ziwei: [...BIRTH_KEYS, 'leapMonth', 'leapAsNext', 'brightnessSchool', 'gengYearSihua', 'tianmaSchool', 'tiankongSchool', 'jiekongSchool', 'kuiyueSchool', 'tianshiTianshang', 'changshengSchool', 'lateZishi', 'shenzhuSchool', 'mingzhuSchool', 'zuoyaoSchool', 'liunianSihua', 'sihuaVariant', 'jieluSchool', 'suipoSchool', 'cross', 'diff', 'trace', ...READ_KEYS],
|
|
144
150
|
liuyao: ['datetime', 'lines', 'seed', 'trace', ...READ_KEYS],
|
|
145
151
|
tarot: ['count', 'seed', ...READ_KEYS],
|
|
146
152
|
meihua: ['datetime', 'mode', 'upper', 'lower', 'changing', ...READ_KEYS],
|
|
@@ -826,11 +832,37 @@ export function apply(ctx) {
|
|
|
826
832
|
enum: ['common', 'verse'],
|
|
827
833
|
description: '紫微斗数:身主安法(只影响子/午年生人)。common(默认,通行表)子午皆火星;verse 按安身主诀「子午安身铃火宿」逐字取子铃星、午火星。',
|
|
828
834
|
},
|
|
835
|
+
mingzhuSchool: {
|
|
836
|
+
type: 'string',
|
|
837
|
+
enum: ['soul-branch', 'year-branch'],
|
|
838
|
+
description: '紫微斗数:命主取法。两派共用同一张十二支→命主星的表(子贪狼、丑亥巨门、寅戌禄存、卯酉文曲、辰申廉贞、巳未武曲、午破军),分歧只在拿哪个地支去查:soul-branch(默认,通行本 /《紫微斗数全书》卷二「安命主」)用命宫地支,year-branch(中州派,文墨「安命主 - 依据中州派理论」)用生年年支。命主的定义是「依地支指定的一颗星」,命宫里不一定有它,换取法不改任何宫位与星曜落宫。实测命宫地支与生年年支重合的只占约 8%,两派约九成的人结果不同。',
|
|
839
|
+
},
|
|
829
840
|
zuoyaoSchool: {
|
|
830
841
|
type: 'string',
|
|
831
842
|
enum: ['minimal', 'full'],
|
|
832
843
|
description: '紫微斗数:杂曜取盘。minimal(默认,通行简盘 49 颗,与旧盘和存档一致);full 另按安星诀补入十二颗杂曜(解神、天巫、天月、阴煞、天官、天福、天厨、蜚廉、天德、年解、天才、天寿),共 61 颗。诀文属近代通行辑本并核,非《紫微斗数全书》原文。',
|
|
833
844
|
},
|
|
845
|
+
liunianSihua: {
|
|
846
|
+
type: 'string',
|
|
847
|
+
enum: ['year-stem', 'life-palace-stem'],
|
|
848
|
+
description: '紫微斗数:流年四化的取干口径。year-stem(默认)用该年干支的天干,life-palace-stem 改用该年流年命宫那一宫的宫干(文墨「依据流年命宫天干」)。年干随年份走,命宫宫干由五虎遁从生年干起,两者是两张表,实测十二年会换十二次,四颗化星全变。每年回显 sihuaStem / sihuaStemFrom 说明实际用了哪一干。',
|
|
849
|
+
},
|
|
850
|
+
sihuaVariant: {
|
|
851
|
+
type: 'string',
|
|
852
|
+
enum: ['default', '廉破曲阳', '贪阴阳机', '阳武同阴', '阳武府同', '阳武府相',
|
|
853
|
+
'阳武同相', '巨阳武昌', '梁紫府武', '梁紫相武', '破巨阳贪'],
|
|
854
|
+
description: '紫微斗数:十干四化变体,整表替换生年、宫干自化、大限宫干、飞星与流年所查的那张表。default(默认)各干取通行表;其余取值按文墨天机「十干四化」原文四字命名,依禄权科忌顺序念,如 廉破曲阳 = 廉贞禄破军权文曲科太阳忌。可选:廉破曲阳(甲)、贪阴阳机(戊)、阳武同阴/阳武府同/阳武府相/阳武同相(庚)、巨阳武昌(辛)、梁紫府武/梁紫相武(壬)、破巨阳贪(癸);乙丙丁己四干无变体。变体天干与所查该干不符时不生效,不会串表。与庚干那一项重叠时以本参数为准。',
|
|
855
|
+
},
|
|
856
|
+
jieluSchool: {
|
|
857
|
+
type: 'string',
|
|
858
|
+
enum: ['off', 'zhongzhou'],
|
|
859
|
+
description: '紫微斗数:截路空亡(截空、副截、旬空、副旬这一组杂曜)取舍。off(默认,通行本)照常排;zhongzhou(中州派)整组不排——《中州派紫微斗数》体系不收截路空亡。只影响杂曜清单,不动宫盘与主星。需 jiekongSchool 非 off 才能看到差别。',
|
|
860
|
+
},
|
|
861
|
+
suipoSchool: {
|
|
862
|
+
type: 'string',
|
|
863
|
+
enum: ['off', 'zhongzhou'],
|
|
864
|
+
description: '紫微斗数:岁前十二神的记名口径。off(默认,通行本)照常;zhongzhou(中州派)把「大耗」改记作「岁破」,宫位不变、只换名字。依据《中州派紫微斗数》岁前十二神以岁破代大耗。',
|
|
865
|
+
},
|
|
834
866
|
action: {
|
|
835
867
|
type: 'string',
|
|
836
868
|
enum: ['natal', 'advise', 'xuankong', 'assess', 'generate'],
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-metaphysics",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.65.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "命理排盘(玄学 xuanxue)for DeepSeek Harness: nineteen systems and eleven quick references (almanac, solar–lunar conversion, …), with climate adjustment (tiaohou), the 120 Qiongtong Baojian entries, 1,062-char name library with per-character pinyin, Kangxi stroke counts, five-grid (五格/三才) analysis and mechanical phonetics checks, a 78-card tarot library on the Rider-Waite-Smith base (per-card English name, image description, core meaning and astrological correspondence, cross-checked against three published sources; court cards carry no zodiac by design and the chart says so), classical quotes (Ziping Zhenquan / Di Tian Sui / San Ming Tong Hui), hexagram body relations (六冲/六合/伏吟/反吟/化进神/化退神) plus yongshen placement (用神落位) with month/day strength (月建日辰旺衰) and whole-hexagram per-line strength (全卦逐爻旺衰) and response-time clues (应期线索:逢值/逢冲/逢合 + 月建五态快慢) for liuyao, plus an MBTI-style 16-type questionnaire and exact dayun handover dates (交运日) with annual suiyun hints (岁运并临/伏吟反吟), palace conditions (击刑/入墓), month states (旺相休囚死) and stem–palace relations (天盘干与宫生克) for qimen, flying four-transformations with chained flights (四化飞星串连), three-way-four-corner composite flights (三方四正复合飞化), switchable leap-month policy (闰月按日切分/整月归次月/整月归本月) eleven school switches (亮度/庚干四化/天马/天空/截空旬空/魁钺/天伤天使/长生/晚子时/身主/杂曜全表) for ziwei, the last one opting in to a 61-star minor-star (杂曜) table where each of the twelve extra stars carries its placement verse and the palace it landed in (verses accepted only when at least two independent published editions give the same table, homonymous stars never merged), caliber diffs for bazi/ziwei/qimen (same inputs, one switch, root-field changes), shadow-chart IDs (same normalized params → same ID; version bumps auto-diff chart fields), step-by-step deduction traces (liuyao najia→liuqin→shiying→fushen→strength; bazi strength score and pattern/yongshen; ziwei pattern conditions), and a bundled offline single-file page (命理排盘.html), a panel-to-chat handoff that asks the Harness about a finished chart, per-tab lazy engine chunks so the first-screen client bundle stays under 100KB gzip, and a public verification report (128 classical hexagram cases, 312 Zi Wei charts × 34 patterns, 12 dayun handover cases) generated from the same source that gates CI.",
|
|
6
6
|
"keywords": [
|