@8btc/finance-assistant-mcp 0.0.67 → 0.0.69
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 +10 -3
- 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.69";
|
|
49
49
|
const pkgJSON = {
|
|
50
50
|
version
|
|
51
51
|
};
|
|
@@ -585,6 +585,13 @@ function formatNumberToUnit(num, decimal = 2) {
|
|
|
585
585
|
}
|
|
586
586
|
return n.toString();
|
|
587
587
|
}
|
|
588
|
+
const normalizeRange = (val, clamp = true) => {
|
|
589
|
+
let result = (val + 1) / 2;
|
|
590
|
+
if (clamp) {
|
|
591
|
+
result = Math.max(0, Math.min(1, result));
|
|
592
|
+
}
|
|
593
|
+
return result;
|
|
594
|
+
};
|
|
588
595
|
function Chapter3$5({
|
|
589
596
|
data,
|
|
590
597
|
heatSvg,
|
|
@@ -601,7 +608,7 @@ function Chapter3$5({
|
|
|
601
608
|
}
|
|
602
609
|
}, [data]);
|
|
603
610
|
const sentimentValue = sentiment?.value || 0;
|
|
604
|
-
const normalized = sentimentValue;
|
|
611
|
+
const normalized = normalizeRange(sentimentValue, true);
|
|
605
612
|
const slideWidth = normalized * 400;
|
|
606
613
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "chapterPage", children: [
|
|
607
614
|
/* @__PURE__ */ jsxRuntime.jsx(SectionHeader, { index: 3, title: financialNewsTOCMarket[2].title }),
|
|
@@ -2765,7 +2772,7 @@ const fundamentalSchema = {
|
|
|
2765
2772
|
gp_margin_review: z.z.string(),
|
|
2766
2773
|
revenue_review: z.z.string(),
|
|
2767
2774
|
balance_review: z.z.string().describe("财务结构点评"),
|
|
2768
|
-
cash_flow_ratio_review: z.z.
|
|
2775
|
+
cash_flow_ratio_review: z.z.string().describe("现金流点评"),
|
|
2769
2776
|
peg_review: z.z.string().describe("peg 点评"),
|
|
2770
2777
|
industry_trends_commentary: z.z.string().describe("行业趋势展望"),
|
|
2771
2778
|
pe_list: z.z.array(
|