@8btc/office-assistant-mcp 0.0.22 → 0.0.24

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 +20 -7
  2. package/package.json +1 -1
package/dist/index.cjs CHANGED
@@ -138,7 +138,7 @@ const End = ({ data }) => /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "f
138
138
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "h-full py-[118px] px-[82px] relative z-10", children: [
139
139
  /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex mb-9", children: /* @__PURE__ */ jsxRuntime.jsx(AiWarn, { disclaimer: "本报告由 Wujie Agent 生成" }) }),
140
140
  /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex mb-[25px]", children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "bg-white p-3", children: /* @__PURE__ */ jsxRuntime.jsx(qrcode_react.QRCodeSVG, { value: data.qrcodeUrl, size: 126 }) }) }),
141
- /* @__PURE__ */ jsxRuntime.jsx("div", { className: "text-black w-[306px] py-2.5 px-2 text-sm leading-[150%]", children: "本文内容由大语言模型(LLM)生成,尽管我们力求信息的客观与全面,但鉴于生成式AI 的概率预测特性,文本中涉及的内容可能存在误差。" })
141
+ /* @__PURE__ */ jsxRuntime.jsx("div", { className: "text-black w-[306px] py-2.5 px-2 text-sm leading-[160%]", children: "本文内容由大语言模型(LLM)生成,尽管我们力求信息的客观与全面,但鉴于生成式AI 的概率预测特性,文本中涉及的内容可能存在误差。" })
142
142
  ] })
143
143
  ] });
144
144
  const Lv2Title = ({ children }) => /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "lv2Title flex items-center text-[18px] font-bold mb-[21px]", children: [
@@ -74988,7 +74988,7 @@ const MarkdownRenderer = (props) => {
74988
74988
  const Segment = ({ data }) => /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "w-full overflow-hidden min-h-full", children: [
74989
74989
  !!data.abstract && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "border border-[#737373] bg-[#F5F5F5] mb-8", children: [
74990
74990
  /* @__PURE__ */ jsxRuntime.jsx("div", { className: "py-1 px-3.5 bg-[#737373] text-white text-xs leading-[150%] font-bold", children: "摘要" }),
74991
- /* @__PURE__ */ jsxRuntime.jsx("div", { className: "indent-8 p-2.5", children: data.abstract })
74991
+ /* @__PURE__ */ jsxRuntime.jsx("div", { className: "indent-8 p-2.5 leading-[160%]", children: data.abstract })
74992
74992
  ] }),
74993
74993
  /* @__PURE__ */ jsxRuntime.jsx("div", { className: "markdown-body", children: data.paragraph?.map((item, idx) => /* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
74994
74994
  /* @__PURE__ */ jsxRuntime.jsx("h2", { className: "lv1Title", children: item.title }),
@@ -75587,6 +75587,10 @@ const style = `/*! tailwindcss v4.1.18 | MIT License | https://tailwindcss.com *
75587
75587
  --tw-leading: 150%;
75588
75588
  line-height: 150%;
75589
75589
  }
75590
+ .leading-\\[160\\%\\] {
75591
+ --tw-leading: 160%;
75592
+ line-height: 160%;
75593
+ }
75590
75594
  .font-bold {
75591
75595
  --tw-font-weight: var(--font-weight-bold);
75592
75596
  font-weight: var(--font-weight-bold);
@@ -75729,9 +75733,10 @@ const style = `/*! tailwindcss v4.1.18 | MIT License | https://tailwindcss.com *
75729
75733
  margin: 0;
75730
75734
  background-color: transparent;
75731
75735
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", "system-ui", "Helvetica Neue", simsun, Helvetica, Arial, "WenQuanYi Zen Hei", "sans-serif";
75732
- font-size: 14px;
75733
- line-height: 1.5;
75736
+ font-size: 16px;
75737
+ line-height: 160%;
75734
75738
  word-wrap: break-word;
75739
+ letter-spacing: 0.5px;
75735
75740
  }
75736
75741
  .markdown-body .octicon {
75737
75742
  display: inline-block;
@@ -75924,7 +75929,8 @@ const style = `/*! tailwindcss v4.1.18 | MIT License | https://tailwindcss.com *
75924
75929
  .markdown-body p {
75925
75930
  margin-top: 0;
75926
75931
  padding-bottom: 21px;
75927
- line-height: 150%;
75932
+ line-height: 160%;
75933
+ text-indent: 2em;
75928
75934
  }
75929
75935
  .markdown-body blockquote {
75930
75936
  margin: 0;
@@ -75997,7 +76003,7 @@ const style = `/*! tailwindcss v4.1.18 | MIT License | https://tailwindcss.com *
75997
76003
  .markdown-body .anchor:focus {
75998
76004
  outline: none;
75999
76005
  }
76000
- .markdown-body p, .markdown-body blockquote, .markdown-body ul, .markdown-body ol, .markdown-body dl, .markdown-body table, .markdown-body pre, .markdown-body details {
76006
+ .markdown-body blockquote, .markdown-body ul, .markdown-body ol, .markdown-body dl, .markdown-body table, .markdown-body pre, .markdown-body details {
76001
76007
  margin-top: 0;
76002
76008
  padding-bottom: var(--base-size-16);
76003
76009
  }
@@ -76060,6 +76066,7 @@ const style = `/*! tailwindcss v4.1.18 | MIT License | https://tailwindcss.com *
76060
76066
  }
76061
76067
  .markdown-body li > p {
76062
76068
  margin-top: var(--base-size-16);
76069
+ text-indent: 0;
76063
76070
  }
76064
76071
  .markdown-body li + li {
76065
76072
  margin-top: 0.25em;
@@ -76504,6 +76511,7 @@ const style = `/*! tailwindcss v4.1.18 | MIT License | https://tailwindcss.com *
76504
76511
  html {
76505
76512
  font-size: 16px;
76506
76513
  overscroll-behavior: none;
76514
+ text-autospace: normal;
76507
76515
  }
76508
76516
  body {
76509
76517
  margin: 0;
@@ -76511,6 +76519,8 @@ body {
76511
76519
  -webkit-font-smoothing: antialiased;
76512
76520
  -moz-osx-font-smoothing: grayscale;
76513
76521
  line-height: 1.5;
76522
+ font-weight: 400;
76523
+ color: #000;
76514
76524
  }
76515
76525
  code {
76516
76526
  font-family: XiangCui, source-code-pro, Menlo, Monaco, Consolas, "Courier New", monospace;
@@ -77147,8 +77157,11 @@ const createPages = async ({
77147
77157
  };
77148
77158
  async function generatePDF(params) {
77149
77159
  const dirname = `${(/* @__PURE__ */ new Date()).getTime()}`;
77160
+ const reg = /\s+/g;
77150
77161
  const outputPath = await getFileAutoRename(
77151
- getFullPath(`output/${params.title || getDateString()}.pdf`)
77162
+ getFullPath(
77163
+ `output/${(params.title || getDateString()).replace(reg, "")}.pdf`
77164
+ )
77152
77165
  );
77153
77166
  const { browser, page, pageInfoList } = await createPages({
77154
77167
  ...params,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@8btc/office-assistant-mcp",
3
- "version": "0.0.22",
3
+ "version": "0.0.24",
4
4
  "description": "办公agent辅助mcp工具",
5
5
  "main": "dist/index.cjs",
6
6
  "type": "module",