@8btc/office-assistant-mcp 0.0.8 → 0.0.9
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 +8 -0
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -77003,6 +77003,10 @@ const extractAllImageSrc = (html2) => {
|
|
|
77003
77003
|
const srcs = [];
|
|
77004
77004
|
let match;
|
|
77005
77005
|
while ((match = regex.exec(html2)) !== null) {
|
|
77006
|
+
if (!match[1].startsWith("data:image/")) {
|
|
77007
|
+
logger.info("extractAllImageSrc match[0]:" + match[0], match[1]);
|
|
77008
|
+
logger.info("extractAllImageSrc match[1]:" + match[1]);
|
|
77009
|
+
}
|
|
77006
77010
|
if (isLocalPath(match[1])) {
|
|
77007
77011
|
srcs.push(match[1]);
|
|
77008
77012
|
}
|
|
@@ -77232,6 +77236,10 @@ const tool = {
|
|
|
77232
77236
|
const toolHandler = async (args) => {
|
|
77233
77237
|
try {
|
|
77234
77238
|
logger.info(`start: ${(/* @__PURE__ */ new Date()).getTime()}`);
|
|
77239
|
+
try {
|
|
77240
|
+
logger.info(JSON.stringify(args));
|
|
77241
|
+
} catch (e) {
|
|
77242
|
+
}
|
|
77235
77243
|
const generatedTemplates = await generateBasePdf(args);
|
|
77236
77244
|
const pdfUrl = await generatePDF({
|
|
77237
77245
|
list: generatedTemplates,
|