@de-otio/epimethian-mcp 5.4.1 → 5.4.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.4.1"}`;
49327
+ const epimethianTag = `Epimethian v${"5.4.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.4.1"}`;
49352
+ const epimethianTag = `Epimethian v${"5.4.2"}`;
49353
49353
  const effectiveClient = cfg.attribution ? opts.clientLabel : void 0;
49354
49354
  let versionMessage;
49355
49355
  if (opts.versionMessage && effectiveClient)
@@ -57300,6 +57300,14 @@ function registerTools(server, config3) {
57300
57300
  });
57301
57301
  }
57302
57302
  const spaceId = await resolveSpaceId(space_key);
57303
+ const existing = await getPageByTitle(spaceId, title, false);
57304
+ if (existing) {
57305
+ return toolError(
57306
+ new Error(
57307
+ `A page titled "${title}" already exists in this space (page ID: ${existing.id}). Creating another page with the same title would produce a confusing duplicate. If you intend to modify the existing page, call get_page with ID ${existing.id} first to review its current content before deciding whether to update it.`
57308
+ )
57309
+ );
57310
+ }
57303
57311
  const page = await createPage(spaceId, title, finalBody, parent_id, getClientLabel(server));
57304
57312
  logMutation({
57305
57313
  timestamp: (/* @__PURE__ */ new Date()).toISOString(),
@@ -58625,7 +58633,7 @@ ${lines.join("\n")}${echo2}`
58625
58633
  inputSchema: {}
58626
58634
  },
58627
58635
  async () => {
58628
- let text2 = `epimethian-mcp v${"5.4.1"}`;
58636
+ let text2 = `epimethian-mcp v${"5.4.2"}`;
58629
58637
  try {
58630
58638
  const pending = await getPendingUpdate();
58631
58639
  if (pending) {
@@ -58655,7 +58663,7 @@ ${pending.type === "major" ? "Major" : "Minor"} update available: v${pending.cur
58655
58663
  const pending = await getPendingUpdate();
58656
58664
  if (!pending) {
58657
58665
  return toolResult(
58658
- `epimethian-mcp v${"5.4.1"} is already up to date.`
58666
+ `epimethian-mcp v${"5.4.2"} is already up to date.`
58659
58667
  );
58660
58668
  }
58661
58669
  const output = await performUpgrade(pending.latest);
@@ -58683,12 +58691,12 @@ async function main() {
58683
58691
  const serverName = config3.profile ? `confluence-${config3.profile}` : "confluence";
58684
58692
  const server = new McpServer({
58685
58693
  name: serverName,
58686
- version: "5.4.1"
58694
+ version: "5.4.2"
58687
58695
  });
58688
58696
  registerTools(server, config3);
58689
58697
  const transport = new StdioServerTransport();
58690
58698
  await server.connect(transport);
58691
- checkForUpdates("5.4.1").catch(() => {
58699
+ checkForUpdates("5.4.2").catch(() => {
58692
58700
  });
58693
58701
  }
58694
58702