@8btc/finance-assistant-mcp 0.0.59 → 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.
- package/dist/index.cjs +11 -12
- 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.60";
|
|
49
49
|
const pkgJSON = {
|
|
50
50
|
version
|
|
51
51
|
};
|
|
@@ -1893,9 +1893,7 @@ const renderInstitutionPie = (rawData) => {
|
|
|
1893
1893
|
radius: "70%",
|
|
1894
1894
|
label: {
|
|
1895
1895
|
formatter: (v) => {
|
|
1896
|
-
return `${v.name} ${formatNumberToUnit(
|
|
1897
|
-
Number(v.value || 0) * 100
|
|
1898
|
-
)}%`;
|
|
1896
|
+
return `${v.name} ${formatNumberToUnit(Number(v.value || 0))}%`;
|
|
1899
1897
|
}
|
|
1900
1898
|
},
|
|
1901
1899
|
data: rawData.map((it) => {
|
|
@@ -2845,9 +2843,9 @@ const tool$4 = {
|
|
|
2845
2843
|
description: "生成基本面分析报告pdf,传入的json参数必须是标准格式的",
|
|
2846
2844
|
inputSchema: zodToJsonSchema(fundamentalSchema)
|
|
2847
2845
|
};
|
|
2848
|
-
const toolHandler$4 = async (
|
|
2846
|
+
const toolHandler$4 = async (partialArgs) => {
|
|
2849
2847
|
try {
|
|
2850
|
-
const result = z.object(fundamentalSchema).safeParse(
|
|
2848
|
+
const result = z.object(fundamentalSchema).safeParse(partialArgs);
|
|
2851
2849
|
if (!result.success) {
|
|
2852
2850
|
throw new types_js.McpError(
|
|
2853
2851
|
types_js.ErrorCode.InvalidParams,
|
|
@@ -2855,14 +2853,15 @@ const toolHandler$4 = async (args) => {
|
|
|
2855
2853
|
);
|
|
2856
2854
|
}
|
|
2857
2855
|
logger.info(`start: ${(/* @__PURE__ */ new Date()).getTime()}`);
|
|
2858
|
-
logger.info(
|
|
2859
|
-
const jsonData = await getJsonDataIfExists(
|
|
2860
|
-
logger.info(`readFile `,
|
|
2856
|
+
logger.info(partialArgs);
|
|
2857
|
+
const jsonData = await getJsonDataIfExists(partialArgs.raw_data_path, {});
|
|
2858
|
+
logger.info(`readFile `, partialArgs.raw_data_path);
|
|
2861
2859
|
logger.info(jsonData);
|
|
2862
|
-
const
|
|
2863
|
-
...
|
|
2860
|
+
const args = {
|
|
2861
|
+
...partialArgs,
|
|
2864
2862
|
...jsonData
|
|
2865
|
-
}
|
|
2863
|
+
};
|
|
2864
|
+
const resp = generateFundamentalHtml(args);
|
|
2866
2865
|
const pdfUrl = await generatePDF({
|
|
2867
2866
|
list: resp,
|
|
2868
2867
|
title: "基本面分析报告",
|