@8btc/finance-assistant-mcp 0.0.66 → 0.0.68
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 -5
- 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.68";
|
|
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 }),
|
|
@@ -2460,7 +2467,7 @@ function Chapter4$4({ data, roeSvg }) {
|
|
|
2460
2467
|
] })
|
|
2461
2468
|
] }),
|
|
2462
2469
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "section-sub-header", children: "4.4 现金流" }),
|
|
2463
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { children: data.
|
|
2470
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { children: data.cash_flow_ratio_review }),
|
|
2464
2471
|
/* @__PURE__ */ jsxRuntime.jsxs("ul", { className: "list", children: [
|
|
2465
2472
|
/* @__PURE__ */ jsxRuntime.jsxs("li", { children: [
|
|
2466
2473
|
/* @__PURE__ */ jsxRuntime.jsx("strong", { children: "经营现金流:" }),
|
|
@@ -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
|
-
|
|
2775
|
+
cash_flow_ratio_review: z.z.number().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(
|
|
@@ -2852,7 +2859,8 @@ const toolHandler$4 = async (partialArgs) => {
|
|
|
2852
2859
|
logger.info(jsonData);
|
|
2853
2860
|
const args = {
|
|
2854
2861
|
...partialArgs,
|
|
2855
|
-
...jsonData
|
|
2862
|
+
...jsonData,
|
|
2863
|
+
pe_list: partialArgs.pe_list
|
|
2856
2864
|
};
|
|
2857
2865
|
const resp = generateFundamentalHtml(args);
|
|
2858
2866
|
const pdfUrl = await generatePDF({
|