dsh-metaphysics 0.72.1 → 0.72.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.
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,12 @@
|
|
|
1
|
+
## 0.72.2(2026-11-12,已发布)
|
|
2
|
+
|
|
3
|
+
> 侧栏那个名字的真正来源找到了:DSH 的插件界面读 `package.json` 的 `meta.title`,`displayName` 它根本不看。
|
|
4
|
+
|
|
5
|
+
- **根因**:`@deepseek-ai/dsh-client-ui-plugin-manager` 的 `packageText` / `rowText` 是 `title: pkg.meta?.title === void 0 ? pkg.name : resolveText(pkg.meta.title)`——没有 `meta.title` 就退回包名,我们两个都没有,于是显示的是别处带到界面的「命理」。
|
|
6
|
+
- **修法**:`package.json` 增加 `meta: { title: '烛微命盘', description: '二十二套命理排盘与速查,本地计算,每一步都能展开核对。' }`。
|
|
7
|
+
- **保留**:`displayName`(对其他宿主有用)、`locale/*.json` 的 `meta.title`(工具描述用)、包名 `dsh-metaphysics`、产物 `命理排盘.html`。
|
|
8
|
+
- **生效**:link 安装,重启 App 即读新 `package.json`。
|
|
9
|
+
|
|
1
10
|
## 0.72.1(2026-11-12,已发布)
|
|
2
11
|
|
|
3
12
|
> 插件在侧栏里显示的名字,也从「命理插件」换成了「烛微命盘」。
|
package/client.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
window.__ModuleLoader__.load({id:"dsh-metaphysics",version:"0.72.
|
|
1
|
+
window.__ModuleLoader__.load({id:"dsh-metaphysics",version:"0.72.2",factory(mt){const Xa=(function(){try{return mt("react")}catch{return globalThis.React}})();if(!Xa)return{inject:[],apply(){}};const r=Xa.createElement,ni={bazi:"client.chart.js",ziwei:"client.chart.js",hepan:"client.chart.js",trend:"client.chart.js",name:"client.name.js",fengshui:"client.fengshui.js",liuyao:"client.liuyao.js",meihua:"client.liuyao.js",qimen:"client.qimen.js",daliuren:"client.daliuren.js",tarot:"client.tarot.js",almanac:"client.almanac.js",convert:"client.convert.js",zeri:"client.zeri.js",chenggu:"client.chenggu.js",xiaoliuren:"client.xiaoliuren.js",star:"client.star.js",numerology:"client.numerology.js",mbti:"client.mbti.js",constitution:"client.constitution.js",wuyunliuqi:"client.wuyunliuqi.js",taiyi:"client.taiyi.js"},si=[{key:"general",label:"综合",dim:null,focus:""},{key:"wealth",label:"财运",dim:"work",focus:"钱财进出的落点主要看「工作与职业选择」与「事业发展」这两条。"},{key:"career",label:"事业",dim:"career",focus:"事业发展这条与你的问题最直接。"},{key:"love",label:"感情",dim:"love",focus:"感情这条与你的问题最直接。"},{key:"health",label:"健康",dim:"health",focus:"健康这条与你的问题最直接;下面只作提醒,不作任何诊断。"},{key:"study",label:"学业",dim:"career",focus:"学业与考试更贴近「事业发展」这条,讲的是长期积累与阶段进展。"},{key:"travel",label:"出行",dim:"overall",focus:"出行与迁动更贴近「整体运势」这条,看的是当下这一段的大环境。"}];window.__MP_VER="0.72.2",window.__MPGroups=[{title:"问一件事",hint:"心里有一件具体的事,起一卦再决定",items:[{k:"liuyao",label:"六爻",tip:"摇六次问事"},{k:"tarot",label:"塔罗",tip:"抽牌看选择"},{k:"meihua",label:"梅花",tip:"见闻起卦"},{k:"qimen",label:"奇门",tip:"看方位时机"},{k:"daliuren",label:"六壬",tip:"占事断来意"},{k:"xiaoliuren",label:"小六壬",tip:"掐指一算"}]},{title:"看一个人",hint:"看自己或身边人的性情与格局",items:[{k:"bazi",label:"八字",tip:"四柱看格局"},{k:"ziwei",label:"紫微",tip:"十二宫细看"},{k:"hepan",label:"合盘",tip:"两人合不合"},{k:"mbti",label:"人格",tip:"16 型问卷"},{k:"constitution",label:"体质",tip:"九种体质"},{k:"chenggu",label:"称骨",tip:"生辰称命重"},{k:"trend",label:"人生K",tip:"一生走势",wide:!0}]},{title:"查日子",hint:"挑时间、换农历,看一年的气与方位",items:[{k:"almanac",label:"黄历",tip:"今日宜忌"},{k:"zeri",label:"择日",tip:"挑好日子"},{k:"convert",label:"农历",tip:"公历农历"},{k:"wuyunliuqi",label:"运气",tip:"一年大势"},{k:"taiyi",label:"太乙",tip:"积年推局"},{k:"fengshui",label:"风水",tip:"房屋朝向"},{k:"name",label:"起名",tip:"八字选字"}]}],window.__MP_UNRELEASED=[];const X={};X.DIRECTIONS=si,X.compute=()=>{throw new Error("命理引擎尚未加载")};const oi=Object.create(null),_t=Object.create(null);function on(n){return ni[n]||ni.bazi||"client.chart.js"}const pi=()=>typeof performance<"u"&&performance.now?performance.now():Date.now();async function pn(n){const s=on(n);let S=oi[s];const F=!!S,ee=pi();if(!S){if(!mt||typeof mt.async!="function")throw new Error("当前宿主不支持客户端分块加载(require.async 缺失),请升级 DeepSeek Harness");let se=_t[s];se||(se=mt.async(`./${s}`).then(le=>{const re=le&&(le.Engine||le.default);if(!re||typeof re.compute!="function")throw new Error(`命理引擎分块 ${s} 未返回 Engine`);return oi[s]=re,re}),_t[s]=se,se.catch(()=>{}).then(()=>{delete _t[s]})),S=await se}for(const se of Object.keys(S))S[se]!==void 0&&(X[se]=S[se]);return Array.isArray(X.DIRECTIONS)||(X.DIRECTIONS=si),window.Engine=X,window.__MP_ENGINE_READY__=!0,window.__MP_LAST_LOAD={tab:n,chunk:s,cached:F,ms:Math.round((pi()-ee)*10)/10},X}window.__mpEnsureEngine=pn,window.Engine=X,(function(){const n={liuyao:!0,meihua:!0,daliuren:!0,tarot:!0},s=Z=>!!n[Z],S={general:"other",wealth:"business",career:"career",love:"love",health:"other",study:"career",travel:"action"},F=Z=>S[Z]||"other",ee="#ffffff",se="#1c1a15";function le(Z){const K=String(Z??"").match(/rgba?\(([^)]+)\)/i);if(!K)return null;const V=K[1].split(/[,\s/]+/).filter(Boolean).map(Number);return V.length<3||V.slice(0,3).some(G=>!Number.isFinite(G))||V.length>3&&Number.isFinite(V[3])&&V[3]<.95?null:[V[0],V[1],V[2]]}function re(Z){const K=String(Z||"").replace("#",""),V=K.length===3?K.split("").map(G=>G+G).join(""):K;return/^[0-9a-f]{6}$/i.test(V)?[0,2,4].map(G=>parseInt(V.slice(G,G+2),16)):null}function ye(Z){const K=V=>{const G=V/255;return G<=.03928?G/12.92:Math.pow((G+.055)/1.055,2.4)};return .2126*K(Z[0])+.7152*K(Z[1])+.0722*K(Z[2])}function t(Z,K){const V=ye(Z),G=ye(K),te=Math.max(V,G),Ne=Math.min(V,G);return(te+.05)/(Ne+.05)}function $e(Z){const K=typeof Z=="string"?le(Z):Z;return K?t(K,re(ee))>=t(K,re(se))?ee:se:""}function I(Z){const K=String(Z??"").trim();if(!K)return{lines:null,warning:""};const V=K.split(/[^0-9]+/).filter(Boolean).map(Number),G=V.filter(te=>![6,7,8,9].includes(te));return V.length===6&&G.length===0?{lines:V,warning:""}:{lines:null,warning:V.length!==6?`爻值需要正好 6 个数字(当前 ${V.length} 个),本次按随机摇卦。`:`爻值只能是 6/7/8/9(收到 ${G.join("/")}),本次按随机摇卦。`}}function xe(Z){const K=String(Z??"").trim();if(!K)return null;const V=Number(K);return Number.isFinite(V)?V:null}function we(Z){const K=Z instanceof Date?Z:new Date,V=G=>String(G).padStart(2,"0");return`${K.getFullYear()}-${V(K.getMonth()+1)}-${V(K.getDate())}`}window.__MPCore={NEED_ASK:n,needAsk:s,parseLines:I,toNumber:xe,parseRGB:le,hexToRGB:re,luminance:ye,contrastRatio:t,pickOnColor:$e,ON_DARK:ee,ON_LIGHT:se,kindOfDirection:F,todayStamp:we}})(),(function(){const n=`
|
|
2
2
|
.pp,.mp-it,.mp-al,.mp-cg,.mp-cl,.mp-cli,.mp-kline,.mp-mb,.mp-mb-paper,.mp-nm,.mp-quick,.mp-cdiff,.mp-shadow,.mp-trace-card,.mp-trace-layer,.mp-prof{--ink:#1b1b1b;--ink2:#3f3a33;--muted:#6f6a60;--label:#8a8378;--faint:#a9a296;
|
|
3
3
|
--line:#c8c1b2;--dimline:#b9b2a4;--hair:#e9e2d3;
|
|
4
4
|
/* 底色略沉作「桌面」,--card 跳到近白:原先 bg 与 card 只差 1/255,卡片感等于零。
|
package/package.json
CHANGED
|
@@ -1,9 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-metaphysics",
|
|
3
3
|
"displayName": "烛微命盘",
|
|
4
|
-
"version": "0.72.
|
|
4
|
+
"version": "0.72.2",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"description": "烛微命盘(玄学 xuanxue)for DeepSeek Harness: twenty-two 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 110KB 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.",
|
|
7
|
+
"meta": {
|
|
8
|
+
"title": "烛微命盘",
|
|
9
|
+
"description": "二十二套命理排盘与速查,本地计算,每一步都能展开核对。"
|
|
10
|
+
},
|
|
7
11
|
"keywords": [
|
|
8
12
|
"玄学",
|
|
9
13
|
"玄学排盘",
|
|
@@ -361,7 +361,7 @@ h3::after{content:"";flex:1;height:1px;background:linear-gradient(90deg,var(--li
|
|
|
361
361
|
<div class="wrap">
|
|
362
362
|
<header>
|
|
363
363
|
<div class="brand-row">
|
|
364
|
-
<div class="brand"><span class="seal" aria-hidden="true">微</span><span class="brand-txt">烛微命盘<span class="ver">v0.72.
|
|
364
|
+
<div class="brand"><span class="seal" aria-hidden="true">微</span><span class="brand-txt">烛微命盘<span class="ver">v0.72.2</span><small>八字 · 紫微 · 六爻 · 梅花 · 六壬 · 奇门 · 合盘 · 塔罗 全部在本机计算</small></span></div>
|
|
365
365
|
<div class="view-switch">
|
|
366
366
|
<span class="hint">熟练了可以换回平铺</span>
|
|
367
367
|
<span class="seg" role="group" aria-label="首屏样式">
|
|
@@ -31990,7 +31990,7 @@ return { interpret, DIRECTIONS, DIRECTION_DEFAULT, BRIGHTNESS, flowOf, parseDate
|
|
|
31990
31990
|
})();
|
|
31991
31991
|
|
|
31992
31992
|
window.Engine = __mods.index;
|
|
31993
|
-
window.__MP_VER = "0.72.
|
|
31993
|
+
window.__MP_VER = "0.72.2";
|
|
31994
31994
|
</script>
|
|
31995
31995
|
<script>
|
|
31996
31996
|
// 两个 UI 共用的表单规则:宿主面板(src/app.js)与独立页(src/web-ui.js)。
|