@superdoc/mcp 1.8.0-next.7 → 1.8.0-next.8
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.js +4 -3
- package/package.json +4 -4
package/dist/index.js
CHANGED
|
@@ -31616,7 +31616,7 @@ var init_host = __esm(() => {
|
|
|
31616
31616
|
});
|
|
31617
31617
|
|
|
31618
31618
|
// ../../packages/sdk/langs/node/src/runtime/sdk-version.generated.ts
|
|
31619
|
-
var SDK_VERSION = "2.21.0-next.
|
|
31619
|
+
var SDK_VERSION = "2.21.0-next.8";
|
|
31620
31620
|
|
|
31621
31621
|
// ../../packages/sdk/langs/node/src/runtime/embedded-platform.ts
|
|
31622
31622
|
import { accessSync, chmodSync, constants, existsSync, statSync } from "node:fs";
|
|
@@ -391585,6 +391585,7 @@ function resolveCommentCreationMetadata(context, input) {
|
|
|
391585
391585
|
}
|
|
391586
391586
|
const sessionAuthor = context.readAuthor();
|
|
391587
391587
|
const hasAuthorOverride = input.author !== undefined || input.authorId !== undefined || input.authorEmail !== undefined || input.authorImage !== undefined;
|
|
391588
|
+
const sessionAuthorEmail = !hasAuthorOverride && sessionAuthor?.email?.trim() ? sessionAuthor.email : undefined;
|
|
391588
391589
|
if (!sessionAuthor && input.author === undefined) {
|
|
391589
391590
|
return {
|
|
391590
391591
|
ok: false,
|
|
@@ -391592,7 +391593,7 @@ function resolveCommentCreationMetadata(context, input) {
|
|
|
391592
391593
|
message: "session.author required unless comments.create author is provided."
|
|
391593
391594
|
};
|
|
391594
391595
|
}
|
|
391595
|
-
if (!hasAuthorOverride && input.externalId === undefined && input.metadata === undefined) {
|
|
391596
|
+
if (!hasAuthorOverride && input.externalId === undefined && input.metadata === undefined && !sessionAuthorEmail) {
|
|
391596
391597
|
return EMPTY_COMMENT_CREATION_METADATA;
|
|
391597
391598
|
}
|
|
391598
391599
|
let author;
|
|
@@ -391620,7 +391621,7 @@ function resolveCommentCreationMetadata(context, input) {
|
|
|
391620
391621
|
...author ? { author } : {},
|
|
391621
391622
|
...input.externalId !== undefined ? { externalId: input.externalId } : {},
|
|
391622
391623
|
...input.authorId !== undefined ? { authorId: input.authorId } : {},
|
|
391623
|
-
...input.authorEmail !== undefined ? { authorEmail: input.authorEmail } : {},
|
|
391624
|
+
...input.authorEmail !== undefined || sessionAuthorEmail ? { authorEmail: input.authorEmail ?? sessionAuthorEmail } : {},
|
|
391624
391625
|
...input.authorImage !== undefined ? { authorImage: input.authorImage } : {},
|
|
391625
391626
|
...metadataJson !== undefined ? { metadataJson } : {}
|
|
391626
391627
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@superdoc/mcp",
|
|
3
|
-
"version": "1.8.0-next.
|
|
3
|
+
"version": "1.8.0-next.8",
|
|
4
4
|
"description": "Model Context Protocol server for SuperDoc, giving an AI agent tools to read and edit .docx files.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "AGPL-3.0",
|
|
@@ -24,13 +24,13 @@
|
|
|
24
24
|
],
|
|
25
25
|
"dependencies": {
|
|
26
26
|
"@modelcontextprotocol/sdk": "^1.26.0",
|
|
27
|
-
"@superdoc/sdk": "2.21.0-next.
|
|
27
|
+
"@superdoc/sdk": "2.21.0-next.8",
|
|
28
28
|
"debug": "^4.4.3",
|
|
29
29
|
"zod": "^4.3.6"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
|
-
"superdoc": "2.24.0-next.
|
|
33
|
-
"@superdoc/docx-engine": "0.23.0-next.
|
|
32
|
+
"superdoc": "2.24.0-next.8",
|
|
33
|
+
"@superdoc/docx-engine": "0.23.0-next.8",
|
|
34
34
|
"@superdoc/document-api": "0.1.0-alpha.0",
|
|
35
35
|
"@types/bun": "^1.3.8",
|
|
36
36
|
"@types/node": "22.19.2",
|