@8btc/finance-assistant-mcp 0.0.64 → 0.0.66

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 +8 -8
  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.64";
48
+ const version = "0.0.66";
49
49
  const pkgJSON = {
50
50
  version
51
51
  };
@@ -180,7 +180,7 @@ const renderHeat = (heat) => {
180
180
  center: ["50%", "75%"],
181
181
  radius: "90%",
182
182
  min: 0,
183
- max: 1,
183
+ max: 100,
184
184
  splitNumber: 8,
185
185
  axisLine: {
186
186
  lineStyle: {
@@ -601,7 +601,7 @@ function Chapter3$5({
601
601
  }
602
602
  }, [data]);
603
603
  const sentimentValue = sentiment?.value || 0;
604
- const normalized = sentimentValue / 100;
604
+ const normalized = sentimentValue;
605
605
  const slideWidth = normalized * 400;
606
606
  return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "chapterPage", children: [
607
607
  /* @__PURE__ */ jsxRuntime.jsx(SectionHeader, { index: 3, title: financialNewsTOCMarket[2].title }),
@@ -770,7 +770,7 @@ function Chapter4Sector({ data }) {
770
770
  d.industry_impact.bullish_industries.map((it, index) => {
771
771
  return /* @__PURE__ */ jsxRuntime.jsxs("tr", { className: "h-[40px]", children: [
772
772
  /* @__PURE__ */ jsxRuntime.jsx("td", { className: "px-2", children: it.sector }),
773
- /* @__PURE__ */ jsxRuntime.jsx("td", { className: "px-2", children: Array(it.score).fill(void 0).map((itt, index2) => {
773
+ /* @__PURE__ */ jsxRuntime.jsx("td", { className: "px-2", children: Array(Math.round(it.score)).fill(void 0).map((itt, index2) => {
774
774
  return /* @__PURE__ */ jsxRuntime.jsx("span", { children: "★" }, index2);
775
775
  }) })
776
776
  ] }, index);
@@ -778,7 +778,7 @@ function Chapter4Sector({ data }) {
778
778
  d.industry_impact.bearish_industries.map((it, index) => {
779
779
  return /* @__PURE__ */ jsxRuntime.jsxs("tr", { className: "h-[40px]", children: [
780
780
  /* @__PURE__ */ jsxRuntime.jsx("td", { className: "px-2", children: it.sector }),
781
- /* @__PURE__ */ jsxRuntime.jsx("td", { className: "px-2", children: Array(Math.abs(it.score)).fill(void 0).map((itt, index2) => {
781
+ /* @__PURE__ */ jsxRuntime.jsx("td", { className: "px-2", children: Array(Math.abs(Math.round(it.score))).fill(void 0).map((itt, index2) => {
782
782
  return /* @__PURE__ */ jsxRuntime.jsx("span", { children: "▼" }, index2);
783
783
  }) })
784
784
  ] }, index);
@@ -791,7 +791,7 @@ function Chapter4Sector({ data }) {
791
791
  /* @__PURE__ */ jsxRuntime.jsxs("strong", { children: [
792
792
  it.sector,
793
793
  "(",
794
- Array(it.score).fill(void 0).map((itt, index2) => {
794
+ Array(Math.round(it.score)).fill(void 0).map((itt, index2) => {
795
795
  return /* @__PURE__ */ jsxRuntime.jsx("span", { children: "★" }, index2);
796
796
  }),
797
797
  "):"
@@ -808,7 +808,7 @@ function Chapter4Sector({ data }) {
808
808
  /* @__PURE__ */ jsxRuntime.jsxs("strong", { children: [
809
809
  it.sector,
810
810
  "(",
811
- Array(Math.abs(it.score)).fill(void 0).map((itt, index2) => {
811
+ Array(Math.abs(Math.round(it.score))).fill(void 0).map((itt, index2) => {
812
812
  return /* @__PURE__ */ jsxRuntime.jsx("span", { children: "▼" }, index2);
813
813
  }),
814
814
  "):"
@@ -1886,7 +1886,7 @@ const renderInstitutionPie = (rawData) => {
1886
1886
  radius: "70%",
1887
1887
  label: {
1888
1888
  formatter: (v) => {
1889
- return `${v.name} ${formatNumberToUnit(Number(v.value || 0))}%`;
1889
+ return `${v.name}`;
1890
1890
  }
1891
1891
  },
1892
1892
  data: rawData.map((it) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@8btc/finance-assistant-mcp",
3
- "version": "0.0.64",
3
+ "version": "0.0.66",
4
4
  "description": "财经agent辅助mcp工具",
5
5
  "main": "dist/index.cjs",
6
6
  "type": "module",