lingshu-solver 1.0.8 → 1.0.9

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/index.html CHANGED
@@ -12298,8 +12298,12 @@ function showError(msg) {
12298
12298
  <span>粤公网安备44011402001444号</span>
12299
12299
  </a>
12300
12300
  </div>
12301
- <a href="/privacy.html" style="color:#94a3b8;">隐私与安全说明</a> ·
12302
- 远程调用端点:<code style="color:#94a3b8;">hongchenlingjing.com/mcp</code>
12301
+ <div style="margin-bottom:8px;">
12302
+ <a href="/privacy.html" style="color:#94a3b8;">隐私与安全说明</a> ·
12303
+ <a href="https://hongchenlingjing.com/mcp" style="color:#94a3b8;">远程调用端点 hongchenlingjing.com/mcp</a> ·
12304
+ <a href="https://hongchenlingjing.com/pay/" style="color:#94a3b8;">支持这个工具(托管端点 ¥0.01/次,付款后立即生效)</a>
12305
+ </div>
12306
+ <div style="color:#475569;">本网页版永久免费、不限次数、离线计算。托管端点也支持「不付费照常用」(调用时传 honorPaid)。</div>
12303
12307
  </footer>
12304
12308
  </body>
12305
12309
  </html>
package/mcp-server.js CHANGED
@@ -96,6 +96,9 @@ function shapeResult(r) {
96
96
  const diagnostics = {
97
97
  solverVersion: meta.solverVersion || null,
98
98
  truncated: !!(r.truncated || meta.truncated),
99
+ // 解析失败原因(如 NO_EQUATION)。新增:让调用方能区分「输入不可解析」与「已证明无解」,
100
+ // 并让托管端点的计费层把「解析失败」判为非计费情形(不收「我解析不了」的钱)。
101
+ inputError: r.error || null,
99
102
  terminatedBy: meta.terminatedBy || null,
100
103
  provenCount: (typeof r.provenCount === 'number') ? r.provenCount : null,
101
104
  completeness: detF(r.completeness)
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "lingshu-solver",
3
- "version": "1.0.8",
4
- "description": "灵数求解器 · 确定性实数方程组求解 MCP 工具(≤6变量):区间收缩 + Krawczyk 认证,离线零依赖零数据,诚实标记 truncated。",
3
+ "version": "1.0.9",
4
+ "description": "灵数求解器 · 确定性实数方程组求解 MCP 工具(≤6变量):区间收缩 + Krawczyk 认证,离线零依赖零数据,诚实标记 truncated。本地 stdio 永久免费;另有常驻托管端点 https://hongchenlingjing.com/mcp(按次 ¥0.01/次,支持 honorPaid 免费放行)。",
5
5
  "homepage": "https://genesis-plan.github.io/lingshu-solver/",
6
6
  "repository": {
7
7
  "type": "git",