@8btc/office-assistant-mcp 0.0.15 → 0.0.17

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 CHANGED
@@ -76563,6 +76563,9 @@ mjx-container:not([display='true']) svg {
76563
76563
  .fontkaiti {
76564
76564
  font-family: KaiTi, "楷体", "Microsoft YaHei", "STKaiti", Arial, serif;
76565
76565
  }
76566
+ .markdown-body > *:last-child {
76567
+ margin-bottom: 0 !important;
76568
+ }
76566
76569
  @property --tw-translate-x {
76567
76570
  syntax: "*";
76568
76571
  inherits: false;
@@ -76738,8 +76741,10 @@ mjx-container:not([display='true']) svg {
76738
76741
  `;
76739
76742
  const renderFullHtml = (segment) => {
76740
76743
  return `<!DOCTYPE html>
76741
- <html>
76744
+ <html lang="zh-CN">
76742
76745
  <head>
76746
+ <meta charset="UTF-8">
76747
+ <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1, minimum-scale=1, user-scalable=no">
76743
76748
  <title>Render report</title>
76744
76749
  <style>${style}</style>
76745
76750
  <style>
@@ -76989,13 +76994,16 @@ const createPage = async (page, item) => {
76989
76994
  path: tempFileName,
76990
76995
  format: "A4",
76991
76996
  printBackground: true,
76997
+ preferCSSPageSize: false,
76992
76998
  displayHeaderFooter: !hideHeader && !hideFooter,
76993
76999
  headerTemplate: hideHeader ? "" : headerTemplate,
76994
- footerTemplate: hideFooter ? "" : `
76995
- <div style="width: 100%; box-sizing: border-box; height: 67px; display: flex; justify-content: space-between; font-size: 13px; padding: 0 48px; position: fixed; bottom: 0; left: 0; font-family: KaiTi, 楷体, serif;">
76996
- <div>本报告由 Wujie Agent 生成</div>
76997
- </div>
76998
- `,
77000
+ footerTemplate: hideFooter ? "" : `<div style="width: 100%; box-sizing: border-box; height: 67px; font-size: 13px; padding: 0 48px; position: fixed; bottom: 0; left: 0; font-family: KaiTi, 楷体, serif;">
77001
+ <div style='display: flex; justify-content: space-between; align-items: center;'>
77002
+ <div>本报告由 Wujie Agent 生成</div>
77003
+ <div style='flex: auto;border-bottom: 1px solid #D4D4D4; margin: 0 10px'></div>
77004
+ <div style='flex: 0 0 58px;'></div>
77005
+ </div>
77006
+ </div>`,
76999
77007
  margin: hideHeader && hideFooter ? void 0 : hideFooter ? {
77000
77008
  top: "128px",
77001
77009
  right: 0,
@@ -77004,7 +77012,7 @@ const createPage = async (page, item) => {
77004
77012
  } : {
77005
77013
  top: "128px",
77006
77014
  right: "63px",
77007
- bottom: "128px",
77015
+ bottom: "120px",
77008
77016
  left: "63px"
77009
77017
  }
77010
77018
  });
@@ -77079,9 +77087,9 @@ async function mergePDFsWithPageNumbers({
77079
77087
  page2.drawText(`${pageNumber} / ${pageCount}`, {
77080
77088
  x: width - 73,
77081
77089
  // 居右
77082
- y: 37,
77090
+ y: 38.5,
77083
77091
  // 距离底部距离
77084
- size: 12,
77092
+ size: 11,
77085
77093
  font,
77086
77094
  color: pdfLib.rgb(82 / 255, 82 / 255, 82 / 255)
77087
77095
  // 灰色
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@8btc/office-assistant-mcp",
3
- "version": "0.0.15",
3
+ "version": "0.0.17",
4
4
  "description": "办公agent辅助mcp工具",
5
5
  "main": "dist/index.cjs",
6
6
  "type": "module",