@8btc/finance-assistant-mcp 0.0.50 → 0.0.52
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/dist/index.cjs +13 -25
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -45,7 +45,7 @@ function _interopNamespaceDefault(e) {
|
|
|
45
45
|
}
|
|
46
46
|
const echarts__namespace = /* @__PURE__ */ _interopNamespaceDefault(echarts);
|
|
47
47
|
const d3__namespace = /* @__PURE__ */ _interopNamespaceDefault(d3);
|
|
48
|
-
const version = "0.0.
|
|
48
|
+
const version = "0.0.52";
|
|
49
49
|
const pkgJSON = {
|
|
50
50
|
version
|
|
51
51
|
};
|
|
@@ -554,6 +554,10 @@ function formatNumberToUnit(num, decimal = 2) {
|
|
|
554
554
|
const result = (n / value).toFixed(decimal);
|
|
555
555
|
const formatted = result.replace(/\.?0*$/, "");
|
|
556
556
|
return `${formatted}${unit}`;
|
|
557
|
+
} else if (Math.abs(n) < 1) {
|
|
558
|
+
const result = n.toFixed(decimal);
|
|
559
|
+
const formatted = result.replace(/\.?0*$/, "");
|
|
560
|
+
return `${formatted}`;
|
|
557
561
|
}
|
|
558
562
|
}
|
|
559
563
|
return n.toString();
|
|
@@ -5766,9 +5770,9 @@ function Chapter2$1({ data }) {
|
|
|
5766
5770
|
] }),
|
|
5767
5771
|
/* @__PURE__ */ jsxRuntime.jsxs("li", { children: [
|
|
5768
5772
|
/* @__PURE__ */ jsxRuntime.jsxs("strong", { children: [
|
|
5769
|
-
"拐点信号: 预计",
|
|
5773
|
+
"拐点信号: 预计 ",
|
|
5770
5774
|
data.turning_point_signal_date,
|
|
5771
|
-
"转为",
|
|
5775
|
+
" 转为",
|
|
5772
5776
|
data.turning_point_signal_regime
|
|
5773
5777
|
] }),
|
|
5774
5778
|
/* @__PURE__ */ jsxRuntime.jsx("ul", { className: "list", children: /* @__PURE__ */ jsxRuntime.jsxs("li", { children: [
|
|
@@ -5977,35 +5981,19 @@ function Chapter7$1({ data }) {
|
|
|
5977
5981
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "section-sub-header", children: "7.1 预测表现细分" }),
|
|
5978
5982
|
/* @__PURE__ */ jsxRuntime.jsxs("ul", { className: "list", children: [
|
|
5979
5983
|
/* @__PURE__ */ jsxRuntime.jsxs("li", { children: [
|
|
5980
|
-
/* @__PURE__ */ jsxRuntime.
|
|
5981
|
-
"平均方向命中率:",
|
|
5982
|
-
formatNumberToUnit(data.ada * 100),
|
|
5983
|
-
"%"
|
|
5984
|
-
] }),
|
|
5984
|
+
/* @__PURE__ */ jsxRuntime.jsx("strong", { children: "平均方向命中率:" }),
|
|
5985
5985
|
data.ada_interpret
|
|
5986
5986
|
] }),
|
|
5987
5987
|
/* @__PURE__ */ jsxRuntime.jsxs("li", { children: [
|
|
5988
|
-
/* @__PURE__ */ jsxRuntime.
|
|
5989
|
-
"均方根误差 (RMSE):",
|
|
5990
|
-
formatNumberToUnit(data.rmse * 100),
|
|
5991
|
-
"%"
|
|
5992
|
-
] }),
|
|
5988
|
+
/* @__PURE__ */ jsxRuntime.jsx("strong", { children: "均方根误差 (RMSE):" }),
|
|
5993
5989
|
data.rmse_interpret
|
|
5994
5990
|
] }),
|
|
5995
5991
|
/* @__PURE__ */ jsxRuntime.jsxs("li", { children: [
|
|
5996
|
-
/* @__PURE__ */ jsxRuntime.
|
|
5997
|
-
"平均绝对误差 (MAE):",
|
|
5998
|
-
formatNumberToUnit(data.mae * 100),
|
|
5999
|
-
"%"
|
|
6000
|
-
] }),
|
|
5992
|
+
/* @__PURE__ */ jsxRuntime.jsx("strong", { children: "平均绝对误差 (MAE):" }),
|
|
6001
5993
|
data.mae_interpret
|
|
6002
5994
|
] }),
|
|
6003
5995
|
/* @__PURE__ */ jsxRuntime.jsxs("li", { children: [
|
|
6004
|
-
/* @__PURE__ */ jsxRuntime.
|
|
6005
|
-
"最大单次误差:",
|
|
6006
|
-
formatNumberToUnit(data.maximum_single_error * 100),
|
|
6007
|
-
"%"
|
|
6008
|
-
] }),
|
|
5996
|
+
/* @__PURE__ */ jsxRuntime.jsx("strong", { children: "最大单次误差:" }),
|
|
6009
5997
|
data.maximum_single_error_interpret
|
|
6010
5998
|
] })
|
|
6011
5999
|
] }),
|
|
@@ -9205,7 +9193,7 @@ for (const item of parsed.tokens) {
|
|
|
9205
9193
|
if (isHostValue) {
|
|
9206
9194
|
host = "0.0.0.0";
|
|
9207
9195
|
}
|
|
9208
|
-
console.
|
|
9196
|
+
console.error(`VERSION ${pkgJSON.version}`);
|
|
9209
9197
|
const values = JSON.parse(JSON.stringify(parsed.values));
|
|
9210
9198
|
values.host = host;
|
|
9211
9199
|
if (values.help) {
|
|
@@ -9235,7 +9223,7 @@ if (transport === "sse") {
|
|
|
9235
9223
|
const host2 = values.host || "localhost";
|
|
9236
9224
|
runHTTPStreamableServer(host2, port, endpoint).catch(console.error);
|
|
9237
9225
|
} else {
|
|
9238
|
-
console.
|
|
9226
|
+
console.error("MCP listen on stdio");
|
|
9239
9227
|
runStdioServer().catch(console.error);
|
|
9240
9228
|
}
|
|
9241
9229
|
exports.renderChapter3 = renderChapter3;
|