@de-otio/epimethian-mcp 5.3.1 → 5.3.2

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/cli/index.js CHANGED
@@ -49324,7 +49324,7 @@ async function getPage(pageId, includeBody) {
49324
49324
  async function createPage(spaceId, title, body, parentId, clientLabel) {
49325
49325
  const cfg = await getConfig();
49326
49326
  const pageBody = stripAttributionFooter(toStorageFormat(body));
49327
- const epimethianTag = `Epimethian v${"5.3.1"}`;
49327
+ const epimethianTag = `Epimethian v${"5.3.2"}`;
49328
49328
  const versionMsg = cfg.attribution && clientLabel ? `Created by ${clientLabel} (via ${epimethianTag})` : `Created by ${epimethianTag}`;
49329
49329
  const payload = {
49330
49330
  title,
@@ -49349,7 +49349,7 @@ async function createPage(spaceId, title, body, parentId, clientLabel) {
49349
49349
  async function updatePage(pageId, opts) {
49350
49350
  const cfg = await getConfig();
49351
49351
  const newVersion = opts.version + 1;
49352
- const epimethianTag = `Epimethian v${"5.3.1"}`;
49352
+ const epimethianTag = `Epimethian v${"5.3.2"}`;
49353
49353
  const effectiveClient = cfg.attribution ? opts.clientLabel : void 0;
49354
49354
  let versionMessage;
49355
49355
  if (opts.versionMessage && effectiveClient)
@@ -49580,7 +49580,10 @@ function stripAttributionFooter(body) {
49580
49580
  // Also strip bare (unmarked) attribution paragraphs — these appear
49581
49581
  // when an agent copies page content from get_page and passes it
49582
49582
  // back to update_page without removing the footer.
49583
- /<p[^>]*>[\s\S]*?<a\s[^>]*href="https:\/\/github\.com\/de-otio\/epimethian-mcp"[^>]*>(?:<em>)?Epimethian(?:<\/em>)?<\/a>[\s\S]*?<\/p>/gi,
49583
+ // Use (?:(?!<\/p>)[\s\S])*? instead of [\s\S]*? to prevent crossing
49584
+ // </p> boundaries — without this, the match spans from the first <p>
49585
+ // in the document to the attribution link, wiping the entire body.
49586
+ /<p[^>]*>(?:(?!<\/p>)[\s\S])*?<a\s[^>]*href="https:\/\/github\.com\/de-otio\/epimethian-mcp"[^>]*>(?:<em>)?Epimethian(?:<\/em>)?<\/a>(?:(?!<\/p>)[\s\S])*?<\/p>/gi,
49584
49587
  ""
49585
49588
  ).trimEnd();
49586
49589
  }
@@ -58537,7 +58540,7 @@ ${lines.join("\n")}${echo2}`
58537
58540
  inputSchema: {}
58538
58541
  },
58539
58542
  async () => {
58540
- let text2 = `epimethian-mcp v${"5.3.1"}`;
58543
+ let text2 = `epimethian-mcp v${"5.3.2"}`;
58541
58544
  try {
58542
58545
  const pending = await getPendingUpdate();
58543
58546
  if (pending) {
@@ -58567,7 +58570,7 @@ ${pending.type === "major" ? "Major" : "Minor"} update available: v${pending.cur
58567
58570
  const pending = await getPendingUpdate();
58568
58571
  if (!pending) {
58569
58572
  return toolResult(
58570
- `epimethian-mcp v${"5.3.1"} is already up to date.`
58573
+ `epimethian-mcp v${"5.3.2"} is already up to date.`
58571
58574
  );
58572
58575
  }
58573
58576
  const output = await performUpgrade(pending.latest);
@@ -58595,12 +58598,12 @@ async function main() {
58595
58598
  const serverName = config3.profile ? `confluence-${config3.profile}` : "confluence";
58596
58599
  const server = new McpServer({
58597
58600
  name: serverName,
58598
- version: "5.3.1"
58601
+ version: "5.3.2"
58599
58602
  });
58600
58603
  registerTools(server, config3);
58601
58604
  const transport = new StdioServerTransport();
58602
58605
  await server.connect(transport);
58603
- checkForUpdates("5.3.1").catch(() => {
58606
+ checkForUpdates("5.3.2").catch(() => {
58604
58607
  });
58605
58608
  }
58606
58609