@8btc/finance-assistant-mcp 0.0.67 → 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.
Files changed (2) hide show
  1. package/dist/index.cjs +9 -2
  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.67";
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 }),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@8btc/finance-assistant-mcp",
3
- "version": "0.0.67",
3
+ "version": "0.0.68",
4
4
  "description": "财经agent辅助mcp工具",
5
5
  "main": "dist/index.cjs",
6
6
  "type": "module",