@de-otio/epimethian-mcp 5.4.0 → 5.4.1
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 +9 -8
- package/dist/cli/index.js.map +2 -2
- package/package.json +1 -1
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.
|
|
49327
|
+
const epimethianTag = `Epimethian v${"5.4.1"}`;
|
|
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.
|
|
49352
|
+
const epimethianTag = `Epimethian v${"5.4.1"}`;
|
|
49353
49353
|
const effectiveClient = cfg.attribution ? opts.clientLabel : void 0;
|
|
49354
49354
|
let versionMessage;
|
|
49355
49355
|
if (opts.versionMessage && effectiveClient)
|
|
@@ -57548,7 +57548,7 @@ ${truncated}`);
|
|
|
57548
57548
|
inputSchema: {
|
|
57549
57549
|
page_id: external_exports.string().describe("The Confluence page ID"),
|
|
57550
57550
|
section: external_exports.string().describe("Heading text identifying the section to replace (case-insensitive)"),
|
|
57551
|
-
body: external_exports.string().describe("New content for this section
|
|
57551
|
+
body: external_exports.string().describe("New content for this section \u2014 GFM markdown or Confluence storage format. Markdown is auto-detected and converted. The heading itself is preserved; only content under it is replaced."),
|
|
57552
57552
|
version: external_exports.number().int().positive().describe("The page version number from your most recent get_page call"),
|
|
57553
57553
|
version_message: external_exports.string().optional().describe("Optional version comment")
|
|
57554
57554
|
},
|
|
@@ -57566,7 +57566,8 @@ ${truncated}`);
|
|
|
57566
57566
|
}
|
|
57567
57567
|
const page = await getPage(page_id, true);
|
|
57568
57568
|
const fullBody = page.body?.storage?.value ?? page.body?.value ?? "";
|
|
57569
|
-
const
|
|
57569
|
+
const sectionStorage = looksLikeMarkdown(body) ? markdownToStorage(body) : body;
|
|
57570
|
+
const newFullBody = replaceSection(fullBody, section, sectionStorage);
|
|
57570
57571
|
if (newFullBody === null) {
|
|
57571
57572
|
return toolResult(
|
|
57572
57573
|
`Section "${section}" not found. Use headings_only to see available sections.`
|
|
@@ -58624,7 +58625,7 @@ ${lines.join("\n")}${echo2}`
|
|
|
58624
58625
|
inputSchema: {}
|
|
58625
58626
|
},
|
|
58626
58627
|
async () => {
|
|
58627
|
-
let text2 = `epimethian-mcp v${"5.4.
|
|
58628
|
+
let text2 = `epimethian-mcp v${"5.4.1"}`;
|
|
58628
58629
|
try {
|
|
58629
58630
|
const pending = await getPendingUpdate();
|
|
58630
58631
|
if (pending) {
|
|
@@ -58654,7 +58655,7 @@ ${pending.type === "major" ? "Major" : "Minor"} update available: v${pending.cur
|
|
|
58654
58655
|
const pending = await getPendingUpdate();
|
|
58655
58656
|
if (!pending) {
|
|
58656
58657
|
return toolResult(
|
|
58657
|
-
`epimethian-mcp v${"5.4.
|
|
58658
|
+
`epimethian-mcp v${"5.4.1"} is already up to date.`
|
|
58658
58659
|
);
|
|
58659
58660
|
}
|
|
58660
58661
|
const output = await performUpgrade(pending.latest);
|
|
@@ -58682,12 +58683,12 @@ async function main() {
|
|
|
58682
58683
|
const serverName = config3.profile ? `confluence-${config3.profile}` : "confluence";
|
|
58683
58684
|
const server = new McpServer({
|
|
58684
58685
|
name: serverName,
|
|
58685
|
-
version: "5.4.
|
|
58686
|
+
version: "5.4.1"
|
|
58686
58687
|
});
|
|
58687
58688
|
registerTools(server, config3);
|
|
58688
58689
|
const transport = new StdioServerTransport();
|
|
58689
58690
|
await server.connect(transport);
|
|
58690
|
-
checkForUpdates("5.4.
|
|
58691
|
+
checkForUpdates("5.4.1").catch(() => {
|
|
58691
58692
|
});
|
|
58692
58693
|
}
|
|
58693
58694
|
|