@8btc/finance-assistant-mcp 0.0.47 → 0.0.49

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.
Files changed (2) hide show
  1. package/dist/index.cjs +30 -18
  2. 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.47";
48
+ const version = "0.0.49";
49
49
  const pkgJSON = {
50
50
  version
51
51
  };
@@ -2406,11 +2406,19 @@ function Chapter4$4({ data, roeSvg }) {
2406
2406
  /* @__PURE__ */ jsxRuntime.jsx("div", { className: "section-sub-header", children: "4.1 近五年财务趋势" }),
2407
2407
  /* @__PURE__ */ jsxRuntime.jsxs("ul", { className: "list", children: [
2408
2408
  /* @__PURE__ */ jsxRuntime.jsxs("li", { children: [
2409
- /* @__PURE__ */ jsxRuntime.jsx("strong", { children: "ROE (净资产收益率):" }),
2409
+ /* @__PURE__ */ jsxRuntime.jsxs("strong", { children: [
2410
+ "ROE (净资产收益率) ",
2411
+ formatNumberToUnit(data.roe * 100),
2412
+ "%:"
2413
+ ] }),
2410
2414
  data.roe_review
2411
2415
  ] }),
2412
2416
  /* @__PURE__ */ jsxRuntime.jsxs("li", { children: [
2413
- /* @__PURE__ */ jsxRuntime.jsx("strong", { children: "毛利率:" }),
2417
+ /* @__PURE__ */ jsxRuntime.jsxs("strong", { children: [
2418
+ "毛利率 ",
2419
+ formatNumberToUnit(data.gp_margin * 100),
2420
+ "%:"
2421
+ ] }),
2414
2422
  data.gp_margin_review
2415
2423
  ] }),
2416
2424
  /* @__PURE__ */ jsxRuntime.jsxs("li", { children: [
@@ -2435,15 +2443,18 @@ function Chapter4$4({ data, roeSvg }) {
2435
2443
  /* @__PURE__ */ jsxRuntime.jsxs("ul", { className: "list", children: [
2436
2444
  /* @__PURE__ */ jsxRuntime.jsxs("li", { children: [
2437
2445
  /* @__PURE__ */ jsxRuntime.jsx("strong", { children: "股本回报率:" }),
2438
- data.gp_margin_review
2446
+ formatNumberToUnit(data.roe * 100),
2447
+ "%"
2439
2448
  ] }),
2440
2449
  /* @__PURE__ */ jsxRuntime.jsxs("li", { children: [
2441
2450
  /* @__PURE__ */ jsxRuntime.jsx("strong", { children: "毛利率:" }),
2442
- data.gp_margin_review
2451
+ formatNumberToUnit(data.gp_margin * 100),
2452
+ "%"
2443
2453
  ] }),
2444
2454
  /* @__PURE__ */ jsxRuntime.jsxs("li", { children: [
2445
- /* @__PURE__ */ jsxRuntime.jsx("strong", { children: "3年收入GAGR:" }),
2446
- data.cagr_3y
2455
+ /* @__PURE__ */ jsxRuntime.jsx("strong", { children: "3年收入CAGR:" }),
2456
+ formatNumberToUnit(data.cagr_3y),
2457
+ "%"
2447
2458
  ] })
2448
2459
  ] }),
2449
2460
  /* @__PURE__ */ jsxRuntime.jsx("div", { className: "section-sub-header", children: "4.3 财务结构" }),
@@ -2451,15 +2462,18 @@ function Chapter4$4({ data, roeSvg }) {
2451
2462
  /* @__PURE__ */ jsxRuntime.jsxs("ul", { className: "list", children: [
2452
2463
  /* @__PURE__ */ jsxRuntime.jsxs("li", { children: [
2453
2464
  /* @__PURE__ */ jsxRuntime.jsx("strong", { children: "资产负债率:" }),
2454
- data.liability_to_asset
2465
+ formatNumberToUnit(data.liability_to_asset * 100),
2466
+ "%"
2455
2467
  ] }),
2456
2468
  /* @__PURE__ */ jsxRuntime.jsxs("li", { children: [
2457
2469
  /* @__PURE__ */ jsxRuntime.jsx("strong", { children: "流动比率:" }),
2458
- data.current_ratio
2470
+ formatNumberToUnit(data.current_ratio * 100),
2471
+ "%"
2459
2472
  ] }),
2460
2473
  /* @__PURE__ */ jsxRuntime.jsxs("li", { children: [
2461
2474
  /* @__PURE__ */ jsxRuntime.jsx("strong", { children: "现金比率:" }),
2462
- data.cash_ratio
2475
+ formatNumberToUnit(data.cash_ratio * 100),
2476
+ "%"
2463
2477
  ] })
2464
2478
  ] }),
2465
2479
  /* @__PURE__ */ jsxRuntime.jsx("div", { className: "section-sub-header", children: "4.4 现金流" }),
@@ -2467,15 +2481,13 @@ function Chapter4$4({ data, roeSvg }) {
2467
2481
  /* @__PURE__ */ jsxRuntime.jsxs("ul", { className: "list", children: [
2468
2482
  /* @__PURE__ */ jsxRuntime.jsxs("li", { children: [
2469
2483
  /* @__PURE__ */ jsxRuntime.jsx("strong", { children: "经营现金流:" }),
2470
- data.cfo
2471
- ] }),
2472
- /* @__PURE__ */ jsxRuntime.jsxs("li", { children: [
2473
- /* @__PURE__ */ jsxRuntime.jsx("strong", { children: "自由现金流:" }),
2474
- data.current_ratio
2484
+ formatNumberToUnit(data.cfo),
2485
+ "元"
2475
2486
  ] }),
2476
2487
  /* @__PURE__ */ jsxRuntime.jsxs("li", { children: [
2477
2488
  /* @__PURE__ */ jsxRuntime.jsx("strong", { children: "经营现金流/净利润比例:" }),
2478
- data.cfo_to_np
2489
+ formatNumberToUnit(data.cfo_to_np * 100),
2490
+ "%"
2479
2491
  ] })
2480
2492
  ] })
2481
2493
  ] });
@@ -2487,7 +2499,7 @@ function Chapter5$4({ data }) {
2487
2499
  /* @__PURE__ */ jsxRuntime.jsx("thead", { className: "border-t border-b h-[64px]", children: /* @__PURE__ */ jsxRuntime.jsxs("tr", { children: [
2488
2500
  /* @__PURE__ */ jsxRuntime.jsx("th", { className: "w-[150px] px-2 font-normal", children: "公司" }),
2489
2501
  /* @__PURE__ */ jsxRuntime.jsx("th", { className: "w-[100px] px-2 font-normal", children: "股票代码" }),
2490
- /* @__PURE__ */ jsxRuntime.jsx("th", { className: "w-[100px] px-2 font-normal", children: "TTM市盈率" }),
2502
+ /* @__PURE__ */ jsxRuntime.jsx("th", { className: "w-[100px] px-2 font-normal", children: "PE" }),
2491
2503
  /* @__PURE__ */ jsxRuntime.jsx("th", { className: "w-[330px] px-2 font-normal", children: "估值点评" })
2492
2504
  ] }) }),
2493
2505
  /* @__PURE__ */ jsxRuntime.jsx("tbody", { children: data.pe_list.map((it, index) => {
@@ -2849,7 +2861,7 @@ const toolHandler$4 = async (args) => {
2849
2861
  const pdfUrl = await generatePDF({
2850
2862
  list: resp,
2851
2863
  title: "基本面分析报告",
2852
- headerSubTitle: `基本面分析报告`,
2864
+ headerSubTitle: `${args.name}(${args.code}.${args.market})- 基本面分析报告`,
2853
2865
  footerTitle: "本报告由 Wujie Agent 生成",
2854
2866
  renderCatalogue: renderCatalogue$4
2855
2867
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@8btc/finance-assistant-mcp",
3
- "version": "0.0.47",
3
+ "version": "0.0.49",
4
4
  "description": "财经agent辅助mcp工具",
5
5
  "main": "dist/index.cjs",
6
6
  "type": "module",