@8btc/finance-assistant-mcp 0.0.58 → 0.0.60

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 +18 -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.58";
48
+ const version = "0.0.60";
49
49
  const pkgJSON = {
50
50
  version
51
51
  };
@@ -1017,6 +1017,7 @@ function Chapter7$2({ data }) {
1017
1017
  ] })
1018
1018
  ] });
1019
1019
  }
1020
+ const END_COVER_LINK = "https://www.wujieai.com/";
1020
1021
  function End$5({ data }) {
1021
1022
  return /* @__PURE__ */ jsxRuntime.jsxs(
1022
1023
  "div",
@@ -1028,7 +1029,7 @@ function End$5({ data }) {
1028
1029
  children: [
1029
1030
  /* @__PURE__ */ jsxRuntime.jsx("div", { className: "absolute top-0 left-0 right-0 bottom-0 z-0", children: /* @__PURE__ */ jsxRuntime.jsx("img", { className: "block w-full h-full object-cover", src: bg$4, alt: "" }) }),
1030
1031
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-col items-center justify-center w-[500px] mx-auto relative z-10", children: [
1031
- /* @__PURE__ */ jsxRuntime.jsx("div", { className: "bg-white p-3 mb-[50px]", children: /* @__PURE__ */ jsxRuntime.jsx(qrcode_react.QRCodeSVG, { value: "https://reactjs.org/", size: 150 }) }),
1032
+ /* @__PURE__ */ jsxRuntime.jsx("div", { className: "bg-white p-3 mb-[50px]", children: /* @__PURE__ */ jsxRuntime.jsx(qrcode_react.QRCodeSVG, { value: END_COVER_LINK, size: 150 }) }),
1032
1033
  /* @__PURE__ */ jsxRuntime.jsx("div", { className: "text-[18px] font-bold mb-3 fontsongti", children: "本报告由 Wujie Agent 生成" }),
1033
1034
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "text-[13px] tracking-[0.529px] leading-[1.5] mb-1 w-[456px]", children: [
1034
1035
  "本报告基于互联网公开信息及舆情大数据模型生成,旨在通过统计学维度量化",
@@ -1892,9 +1893,7 @@ const renderInstitutionPie = (rawData) => {
1892
1893
  radius: "70%",
1893
1894
  label: {
1894
1895
  formatter: (v) => {
1895
- return `${v.name} ${formatNumberToUnit(
1896
- Number(v.value || 0) * 100
1897
- )}%`;
1896
+ return `${v.name} ${formatNumberToUnit(Number(v.value || 0))}%`;
1898
1897
  }
1899
1898
  },
1900
1899
  data: rawData.map((it) => {
@@ -2561,7 +2560,7 @@ function End$4({ data }) {
2561
2560
  children: [
2562
2561
  /* @__PURE__ */ jsxRuntime.jsx("div", { className: "absolute top-0 left-0 right-0 bottom-0 z-0", children: /* @__PURE__ */ jsxRuntime.jsx("img", { className: "block w-full h-full object-cover", src: bg$3, alt: "" }) }),
2563
2562
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-col items-center justify-center w-[414px] mx-auto relative z-10", children: [
2564
- /* @__PURE__ */ jsxRuntime.jsx("div", { className: "bg-white p-3 mb-[50px]", children: /* @__PURE__ */ jsxRuntime.jsx(qrcode_react.QRCodeSVG, { value: "https://reactjs.org/", size: 150 }) }),
2563
+ /* @__PURE__ */ jsxRuntime.jsx("div", { className: "bg-white p-3 mb-[50px]", children: /* @__PURE__ */ jsxRuntime.jsx(qrcode_react.QRCodeSVG, { value: END_COVER_LINK, size: 150 }) }),
2565
2564
  /* @__PURE__ */ jsxRuntime.jsx("div", { className: "text-[18px] font-bold mb-3 fontsongti", children: "本报告由 Wujie Agent 生成" }),
2566
2565
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "text-[13px] tracking-[0.529px] leading-[1.5] mb-1", children: [
2567
2566
  "本报告仅从公开市场价格与技术指标角度对",
@@ -2844,9 +2843,9 @@ const tool$4 = {
2844
2843
  description: "生成基本面分析报告pdf,传入的json参数必须是标准格式的",
2845
2844
  inputSchema: zodToJsonSchema(fundamentalSchema)
2846
2845
  };
2847
- const toolHandler$4 = async (args) => {
2846
+ const toolHandler$4 = async (partialArgs) => {
2848
2847
  try {
2849
- const result = z.object(fundamentalSchema).safeParse(args);
2848
+ const result = z.object(fundamentalSchema).safeParse(partialArgs);
2850
2849
  if (!result.success) {
2851
2850
  throw new types_js.McpError(
2852
2851
  types_js.ErrorCode.InvalidParams,
@@ -2854,14 +2853,15 @@ const toolHandler$4 = async (args) => {
2854
2853
  );
2855
2854
  }
2856
2855
  logger.info(`start: ${(/* @__PURE__ */ new Date()).getTime()}`);
2857
- logger.info(args);
2858
- const jsonData = await getJsonDataIfExists(args.raw_data_path, {});
2859
- logger.info(`readFile `, args.raw_data_path);
2856
+ logger.info(partialArgs);
2857
+ const jsonData = await getJsonDataIfExists(partialArgs.raw_data_path, {});
2858
+ logger.info(`readFile `, partialArgs.raw_data_path);
2860
2859
  logger.info(jsonData);
2861
- const resp = generateFundamentalHtml({
2862
- ...args,
2860
+ const args = {
2861
+ ...partialArgs,
2863
2862
  ...jsonData
2864
- });
2863
+ };
2864
+ const resp = generateFundamentalHtml(args);
2865
2865
  const pdfUrl = await generatePDF({
2866
2866
  list: resp,
2867
2867
  title: "基本面分析报告",
@@ -3809,7 +3809,7 @@ function End$3({ data }) {
3809
3809
  children: [
3810
3810
  /* @__PURE__ */ jsxRuntime.jsx("div", { className: "absolute top-0 left-0 right-0 bottom-0 z-0", children: /* @__PURE__ */ jsxRuntime.jsx("img", { className: "block w-full h-full object-cover", src: bg$2, alt: "" }) }),
3811
3811
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-col items-center justify-center w-[414px] mx-auto relative z-10", children: [
3812
- /* @__PURE__ */ jsxRuntime.jsx("div", { className: "bg-white p-3 mb-[50px]", children: /* @__PURE__ */ jsxRuntime.jsx(qrcode_react.QRCodeSVG, { value: "https://reactjs.org/", size: 150 }) }),
3812
+ /* @__PURE__ */ jsxRuntime.jsx("div", { className: "bg-white p-3 mb-[50px]", children: /* @__PURE__ */ jsxRuntime.jsx(qrcode_react.QRCodeSVG, { value: END_COVER_LINK, size: 150 }) }),
3813
3813
  /* @__PURE__ */ jsxRuntime.jsx("div", { className: "text-[18px] font-bold mb-3 fontsongti", children: "本报告由 Wujie Agent 生成" }),
3814
3814
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "text-[13px] tracking-[0.529px] leading-[1.5] mb-1", children: [
3815
3815
  "本报告基于历史量价数据及多因子AI预测模型生成,旨在通过统计学维度量化个股的涨跌概率与波动区间。",
@@ -5084,7 +5084,7 @@ function End$2({ data }) {
5084
5084
  children: [
5085
5085
  /* @__PURE__ */ jsxRuntime.jsx("div", { className: "absolute top-0 left-0 right-0 bottom-0 z-0", children: /* @__PURE__ */ jsxRuntime.jsx("img", { className: "block w-full h-full object-cover", src: bg$1, alt: "" }) }),
5086
5086
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-col items-center justify-center w-[500px] mx-auto relative z-10", children: [
5087
- /* @__PURE__ */ jsxRuntime.jsx("div", { className: "bg-white p-3 mb-[50px]", children: /* @__PURE__ */ jsxRuntime.jsx(qrcode_react.QRCodeSVG, { value: "https://reactjs.org/", size: 150 }) }),
5087
+ /* @__PURE__ */ jsxRuntime.jsx("div", { className: "bg-white p-3 mb-[50px]", children: /* @__PURE__ */ jsxRuntime.jsx(qrcode_react.QRCodeSVG, { value: END_COVER_LINK, size: 150 }) }),
5088
5088
  /* @__PURE__ */ jsxRuntime.jsx("div", { className: "text-[18px] font-bold mb-3 fontsongti", children: "本报告由 Wujie Agent 生成" }),
5089
5089
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "text-[13px] tracking-[0.529px] leading-[1.5] mb-1", children: [
5090
5090
  "本报告基于历史市场数据、上市公司财务公开信息及AI量化模型生成,旨在",
@@ -6104,7 +6104,7 @@ function End$1({ data }) {
6104
6104
  children: [
6105
6105
  /* @__PURE__ */ jsxRuntime.jsx("div", { className: "absolute top-0 left-0 right-0 bottom-0 z-0", children: /* @__PURE__ */ jsxRuntime.jsx("img", { className: "block w-full h-full object-cover", src: bg, alt: "" }) }),
6106
6106
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-col items-center justify-center w-[500px] mx-auto relative z-10", children: [
6107
- /* @__PURE__ */ jsxRuntime.jsx("div", { className: "bg-white p-3 mb-[50px]", children: /* @__PURE__ */ jsxRuntime.jsx(qrcode_react.QRCodeSVG, { value: "https://reactjs.org/", size: 150 }) }),
6107
+ /* @__PURE__ */ jsxRuntime.jsx("div", { className: "bg-white p-3 mb-[50px]", children: /* @__PURE__ */ jsxRuntime.jsx(qrcode_react.QRCodeSVG, { value: END_COVER_LINK, size: 150 }) }),
6108
6108
  /* @__PURE__ */ jsxRuntime.jsx("div", { className: "text-[18px] font-bold mb-3 fontsongti", children: "本报告由 Wujie Agent 生成" }),
6109
6109
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "text-[13px] tracking-[0.529px] leading-[1.5] mb-1", children: [
6110
6110
  "本报告基于历史量价数据及多因子AI预测模型生成,旨在通过统计学维度量化个股的涨跌概率与波动区间。",
@@ -8664,7 +8664,7 @@ function End({ data }) {
8664
8664
  "w-[var(--a4-width)] h-[var(--a4-height)] mx-auto"
8665
8665
  ),
8666
8666
  children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-col items-center justify-center w-[414px] mx-auto", children: [
8667
- /* @__PURE__ */ jsxRuntime.jsx("div", { className: "bg-white p-3 mb-[50px]", children: /* @__PURE__ */ jsxRuntime.jsx(qrcode_react.QRCodeSVG, { value: "https://reactjs.org/", size: 150 }) }),
8667
+ /* @__PURE__ */ jsxRuntime.jsx("div", { className: "bg-white p-3 mb-[50px]", children: /* @__PURE__ */ jsxRuntime.jsx(qrcode_react.QRCodeSVG, { value: END_COVER_LINK, size: 150 }) }),
8668
8668
  /* @__PURE__ */ jsxRuntime.jsx("div", { className: "text-[18px] font-bold mb-3 fontsongti", children: "本报告由 Wujie Agent 生成" }),
8669
8669
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "text-[13px] tracking-[0.529px] leading-[1.5] mb-1", children: [
8670
8670
  "本报告仅从公开市场价格与技术指标角度对",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@8btc/finance-assistant-mcp",
3
- "version": "0.0.58",
3
+ "version": "0.0.60",
4
4
  "description": "财经agent辅助mcp工具",
5
5
  "main": "dist/index.cjs",
6
6
  "type": "module",