ZiFan1117/bazidiy--packages-ontology0

@bazidiy/ontology

BaziDIY:确定性的八字/五行/算珠规则 DSH 工具,外加手链 SVG 渲染和算珠编辑器

AI 分析

核心用途是提供八字计算、五行分析及手链款式设计的确定性算法工具。适合需要进行传统命理分析、设计定制手链并进行可视化渲染的用户。

包名
@bazidiy/ontology
版本
0.1.0
许可证
GPL-3.0
最近更新
2026年8月26日

安装

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:ZiFan1117/bazidiy#02148bf6bdc268a8749334e02ec817cc62933ed5&path:packages/ontology

@bazidiy/ontology

BaziDIY ontology plugin: deterministic wuxing/bead/style rules exposed as model-facing dsh tools. No LLM calls inside execute — the rules derive 旺衰/喜用神/珠子匹配/款式方案 from data only.

Tools

ToolInputOutput type
calculate_bazibirth_date, birth_hour, genderbazi_result
propose_designsbead_ids?, wrist_size?, day_master_element, month_branch_wuxingdesign_proposal
generate_designstyle_name, beads, wrist_size?, summary, rationaledesign_result
save_designstyle_name, slots, wrist_size, summary, rationaledesign_saved
load_designdesign_loaded

Data

src/data/*.ts is generated from backend/ontology/data (schema v3, hardness removed). Regenerate with node scripts/gen-data.mjs.

Model Experience

What the model sees

Five tool schemas. calculate_bazi returns day_master_element / month_branch_wuxing which the model passes straight into propose_designs. propose_designs returns favorable / unfavorable / designs that the model quotes verbatim. generate_design validates bead names are full names (no abbreviations). save_design persists the settled design per session id; load_design restores it in the same session.

Token effect

Schema cost per request where the tools are visible; result tokens are data-dependent.

KV Cache effect

Prefix-stable while the tool definitions and visibility are unchanged.

Known Limitations and Deferred Work

  • calculate_bazi ignores gender; 节气 uses a simplified month boundary (same as the v8 reference).
  • generate_design validates bead names but not that the style_name/beads sequence came from propose_designs — the prompt constrains this, not the tool.
  • save_design/load_design key by the calling agent's session id; a design is only reachable from the session that saved it.