@8btc/office-assistant-mcp 0.0.16 → 0.0.18

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
@@ -75942,6 +75942,7 @@ const style = `/*! tailwindcss v4.1.18 | MIT License | https://tailwindcss.com *
75942
75942
  .markdown-body ul, .markdown-body ol {
75943
75943
  margin-top: 0;
75944
75944
  margin-bottom: 0;
75945
+ padding-left: 2em;
75945
75946
  }
75946
75947
  .markdown-body ol ol, .markdown-body ul ol {
75947
75948
  list-style-type: lower-roman;
@@ -76526,16 +76527,6 @@ code {
76526
76527
  width: var(--a4-width);
76527
76528
  height: var(--a4-height);
76528
76529
  }
76529
- .lv1Title {
76530
- font-size: 20px;
76531
- font-weight: 900;
76532
- margin-bottom: 21px;
76533
- font-family: SimSun, "宋体", "songti", serif;
76534
- }
76535
- .lv2Title {
76536
- font-family: SimSun, "宋体", "songti", serif;
76537
- color: #0A0A0A;
76538
- }
76539
76530
  .height-with-padding {
76540
76531
  height: var(--a4-height-with-padding);
76541
76532
  }
@@ -76563,6 +76554,25 @@ mjx-container:not([display='true']) svg {
76563
76554
  .fontkaiti {
76564
76555
  font-family: KaiTi, "楷体", "Microsoft YaHei", "STKaiti", Arial, serif;
76565
76556
  }
76557
+ .lv1Title.lv1Title {
76558
+ font-size: 20px;
76559
+ font-weight: 900;
76560
+ margin-bottom: 21px;
76561
+ font-family: SimSun, "宋体", "songti", serif;
76562
+ }
76563
+ .lv2Title.lv2Title {
76564
+ font-family: SimSun, "宋体", "songti", serif;
76565
+ color: #0A0A0A;
76566
+ }
76567
+ .markdown-body > *:last-child {
76568
+ margin-bottom: 0 !important;
76569
+ }
76570
+ .markdown-body ol {
76571
+ list-style-type: decimal;
76572
+ }
76573
+ .markdown-body ul {
76574
+ list-style-type: disc;
76575
+ }
76566
76576
  @property --tw-translate-x {
76567
76577
  syntax: "*";
76568
76578
  inherits: false;
@@ -76738,8 +76748,10 @@ mjx-container:not([display='true']) svg {
76738
76748
  `;
76739
76749
  const renderFullHtml = (segment) => {
76740
76750
  return `<!DOCTYPE html>
76741
- <html>
76751
+ <html lang="zh-CN">
76742
76752
  <head>
76753
+ <meta charset="UTF-8">
76754
+ <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1, minimum-scale=1, user-scalable=no">
76743
76755
  <title>Render report</title>
76744
76756
  <style>${style}</style>
76745
76757
  <style>
@@ -76989,10 +77001,15 @@ const createPage = async (page, item) => {
76989
77001
  path: tempFileName,
76990
77002
  format: "A4",
76991
77003
  printBackground: true,
77004
+ preferCSSPageSize: false,
76992
77005
  displayHeaderFooter: !hideHeader && !hideFooter,
76993
77006
  headerTemplate: hideHeader ? "" : headerTemplate,
76994
- footerTemplate: hideFooter ? "" : `<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;">
76995
- <div>本报告由 Wujie Agent 生成</div>
77007
+ 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;">
77008
+ <div style='display: flex; justify-content: space-between; align-items: center;'>
77009
+ <div>本报告由 Wujie Agent 生成</div>
77010
+ <div style='flex: auto;border-bottom: 1px solid #D4D4D4; margin: 0 10px'></div>
77011
+ <div style='flex: 0 0 58px;'></div>
77012
+ </div>
76996
77013
  </div>`,
76997
77014
  margin: hideHeader && hideFooter ? void 0 : hideFooter ? {
76998
77015
  top: "128px",
@@ -77002,7 +77019,7 @@ const createPage = async (page, item) => {
77002
77019
  } : {
77003
77020
  top: "128px",
77004
77021
  right: "63px",
77005
- bottom: "118px",
77022
+ bottom: "120px",
77006
77023
  left: "63px"
77007
77024
  }
77008
77025
  });
@@ -77077,9 +77094,9 @@ async function mergePDFsWithPageNumbers({
77077
77094
  page2.drawText(`${pageNumber} / ${pageCount}`, {
77078
77095
  x: width - 73,
77079
77096
  // 居右
77080
- y: 37,
77097
+ y: 38.5,
77081
77098
  // 距离底部距离
77082
- size: 12,
77099
+ size: 11,
77083
77100
  font,
77084
77101
  color: pdfLib.rgb(82 / 255, 82 / 255, 82 / 255)
77085
77102
  // 灰色
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@8btc/office-assistant-mcp",
3
- "version": "0.0.16",
3
+ "version": "0.0.18",
4
4
  "description": "办公agent辅助mcp工具",
5
5
  "main": "dist/index.cjs",
6
6
  "type": "module",