lingshu-solver 1.0.13 → 1.0.14
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/http-mcp-server.js +4 -1
- package/index.html +1 -1
- package/mcp-server.js +4 -1
- package/package.json +1 -1
package/http-mcp-server.js
CHANGED
|
@@ -47,7 +47,7 @@ const solverCore = require('./solver-core');
|
|
|
47
47
|
const { solve } = solverCore;
|
|
48
48
|
|
|
49
49
|
const SERVER_NAME = 'lingshu-solver';
|
|
50
|
-
const SERVER_VERSION = '1.0.
|
|
50
|
+
const SERVER_VERSION = '1.0.14';
|
|
51
51
|
const PORT = parseInt(process.env.PORT || '3000', 10);
|
|
52
52
|
|
|
53
53
|
// ---- 护栏常量(防畸形/恶意输入耗尽资源,与 stdio 版一致)----
|
|
@@ -736,6 +736,7 @@ function shapeResult(r) {
|
|
|
736
736
|
tier: s.tier || 'unknown',
|
|
737
737
|
certified: !!s.certified,
|
|
738
738
|
text: text,
|
|
739
|
+
cert: s.cert || null,
|
|
739
740
|
internals: {
|
|
740
741
|
residual: detF(s.residual),
|
|
741
742
|
certifiedRadius: detF(s.certifiedRadius)
|
|
@@ -786,6 +787,8 @@ function shapeResult(r) {
|
|
|
786
787
|
recommended: recommendedClean,
|
|
787
788
|
solutions: cleanSols,
|
|
788
789
|
warnings: r.warnings || [],
|
|
790
|
+
reportId: meta.reportId || r.reportId || null,
|
|
791
|
+
certification: r.certification || null,
|
|
789
792
|
diagnostics: diagnostics
|
|
790
793
|
};
|
|
791
794
|
}
|
package/index.html
CHANGED
|
@@ -11192,7 +11192,7 @@ function _runTail(state) {
|
|
|
11192
11192
|
|
|
11193
11193
|
// —— 可审计结构化溯源(切片A):每个结果附带完整证据链元数据 ——
|
|
11194
11194
|
// 设计目标:Agent / 上层系统拿到的不只是裸数字,而是"为什么是这个解"的可读证据链。
|
|
11195
|
-
var SOLVER_VERSION = "lingshu-solver/1.0.
|
|
11195
|
+
var SOLVER_VERSION = "lingshu-solver/1.0.14";
|
|
11196
11196
|
|
|
11197
11197
|
// —— 确定性可复现契约(Certified Real-Root Computation 六属性之「确定性可复现」)——
|
|
11198
11198
|
// 纯 JS 同步 SHA-256(零依赖,浏览器/Node 通用,免 Web Crypto 异步)。
|
package/mcp-server.js
CHANGED
|
@@ -19,7 +19,7 @@ const path = require('path');
|
|
|
19
19
|
const { solve } = require('./solver-core');
|
|
20
20
|
|
|
21
21
|
const SERVER_NAME = 'lingshu-solver';
|
|
22
|
-
const SERVER_VERSION = '1.0.
|
|
22
|
+
const SERVER_VERSION = '1.0.14';
|
|
23
23
|
|
|
24
24
|
// ---- 护栏常量(防畸形/恶意输入耗尽资源)----
|
|
25
25
|
const MAX_TOTAL_CHARS = 100 * 1024; // 单次请求方程文本总长上限 100KB
|
|
@@ -73,6 +73,7 @@ function shapeResult(r) {
|
|
|
73
73
|
tier: s.tier || 'unknown',
|
|
74
74
|
certified: !!s.certified,
|
|
75
75
|
text: text,
|
|
76
|
+
cert: s.cert || null,
|
|
76
77
|
internals: {
|
|
77
78
|
residual: detF(s.residual),
|
|
78
79
|
certifiedRadius: detF(s.certifiedRadius)
|
|
@@ -115,6 +116,8 @@ function shapeResult(r) {
|
|
|
115
116
|
recommended: recommendedClean,
|
|
116
117
|
solutions: cleanSols,
|
|
117
118
|
warnings: r.warnings || [],
|
|
119
|
+
reportId: meta.reportId || r.reportId || null,
|
|
120
|
+
certification: r.certification || null,
|
|
118
121
|
diagnostics: diagnostics
|
|
119
122
|
};
|
|
120
123
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "lingshu-solver",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.14",
|
|
4
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": {
|