@8btc/office-assistant-mcp 0.0.4 → 0.0.5

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 +5 -1
  2. package/package.json +1 -1
package/dist/index.cjs CHANGED
@@ -76969,6 +76969,9 @@ const isLocalPath = (inputPath) => {
76969
76969
  if (typeof inputPath !== "string" || inputPath.trim() === "") {
76970
76970
  return false;
76971
76971
  }
76972
+ if (inputPath.startsWith("data:image/")) {
76973
+ return false;
76974
+ }
76972
76975
  const normalizedPath = inputPath.trim();
76973
76976
  const isNetworkUrl = /^(http|https|ftp):\/\/|^\/\//i.test(normalizedPath);
76974
76977
  if (isNetworkUrl) {
@@ -76988,7 +76991,6 @@ const isLocalPath = (inputPath) => {
76988
76991
  };
76989
76992
  const localImageToBase64 = async (imagePath) => {
76990
76993
  try {
76991
- logger.info("imagePath:::" + imagePath);
76992
76994
  if (!imagePath) {
76993
76995
  return null;
76994
76996
  }
@@ -77233,6 +77235,7 @@ const toolHandler = async (args) => {
77233
77235
  title: args.reportTitle,
77234
77236
  createPage
77235
77237
  });
77238
+ logger.info(`pdfUrl: ${pdfUrl}`);
77236
77239
  logger.info(`end: ${(/* @__PURE__ */ new Date()).getTime()}`);
77237
77240
  return {
77238
77241
  content: [
@@ -77247,6 +77250,7 @@ const toolHandler = async (args) => {
77247
77250
  }
77248
77251
  };
77249
77252
  } catch (error) {
77253
+ logger.error("pdf生成失败了");
77250
77254
  logger.error(error?.message);
77251
77255
  if (error instanceof types_js.McpError) throw error;
77252
77256
  if (error instanceof ValidateError)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@8btc/office-assistant-mcp",
3
- "version": "0.0.4",
3
+ "version": "0.0.5",
4
4
  "description": "办公agent辅助mcp工具",
5
5
  "main": "dist/index.cjs",
6
6
  "type": "module",