@posty5/mcp 2.0.0 → 2.1.0
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/bin/stdio.js +12 -6
- package/dist/bin/stdio.js.map +1 -1
- package/dist/bin/stdio.mjs +12 -6
- package/dist/bin/stdio.mjs.map +1 -1
- package/dist/index.js +12 -6
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +12 -6
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
package/dist/index.mjs
CHANGED
|
@@ -1645,9 +1645,11 @@ var SOCIAL_POST_STATUSES = [
|
|
|
1645
1645
|
"retrying",
|
|
1646
1646
|
"removing",
|
|
1647
1647
|
"removed",
|
|
1648
|
-
"removeFailed"
|
|
1648
|
+
"removeFailed",
|
|
1649
|
+
"partiallyRemoved"
|
|
1649
1650
|
];
|
|
1650
1651
|
var SOCIAL_POST_PLATFORMS = ["youtube", "facebook", "instagram", "tiktok"];
|
|
1652
|
+
var SOCIAL_POST_REMOVE_PLATFORMS = ["youtube", "facebook", "instagram", "tiktok", "threads", "twitter"];
|
|
1651
1653
|
var VIDEO_PLATFORM_BLOCKS = ["youtube", "tiktok", "facebook", "instagram"];
|
|
1652
1654
|
var SOCIAL_POST_TARGETS = ["workspaceId", "accountId"];
|
|
1653
1655
|
var TIKTOK_PRIVACY_LEVELS = ["PUBLIC_TO_EVERYONE", "FOLLOWER_OF_CREATOR", "MUTUAL_FOLLOW_FRIENDS", "SELF_ONLY"];
|
|
@@ -2111,19 +2113,23 @@ var SOCIAL_PUBLISHER_TOOLS = [
|
|
|
2111
2113
|
toolset: "social-publisher",
|
|
2112
2114
|
access: "full",
|
|
2113
2115
|
title: "Remove a post from the platforms",
|
|
2114
|
-
description: "Deletes a published post's media from the platforms it was published to, at once. Instagram and TikTok offer no delete through their APIs, so media there stays. Irreversible. Paid, only when the removal succeeds: the price is in account_get_operation_costs.",
|
|
2115
|
-
input: z.object({
|
|
2116
|
+
description: "Deletes a published post's media from the platforms it was published to, at once, or from one platform when `platform` is given (the others keep their copies and the post becomes partiallyRemoved). Instagram and TikTok offer no delete through their APIs, so media there stays. Irreversible. Paid, only when the removal succeeds: the price is in account_get_operation_costs.",
|
|
2117
|
+
input: z.object({
|
|
2118
|
+
id: idField(POST_ID),
|
|
2119
|
+
version: versionField("the post"),
|
|
2120
|
+
platform: z.enum(SOCIAL_POST_REMOVE_PLATFORMS).optional().describe("Remove from this platform only. The post must have been published there. Omit to remove from every platform.")
|
|
2121
|
+
}),
|
|
2116
2122
|
annotations: { destructive: true, idempotent: true },
|
|
2117
2123
|
confirm: {
|
|
2118
|
-
describe: async ({ id }, { clients }) => {
|
|
2124
|
+
describe: async ({ id, platform }, { clients }) => {
|
|
2119
2125
|
const post = await clients.posts.getStatus(id);
|
|
2120
|
-
const platforms = postPlatforms(post);
|
|
2126
|
+
const platforms = platform ? [platform] : postPlatforms(post);
|
|
2121
2127
|
const where = platforms.length ? platforms.join(", ") : "the platforms it was published to";
|
|
2122
2128
|
return `Remove post #${post.numbering} from ${where}. The published media is deleted from those platforms immediately, and this is irreversible \u2014 it cannot be restored or re-published from here. Instagram and TikTok offer no delete through their APIs, so media there stays.`;
|
|
2123
2129
|
},
|
|
2124
2130
|
costFeaturePath: "socialMediaPublisher.removePost"
|
|
2125
2131
|
},
|
|
2126
|
-
run: ({ id, version }, { clients }) => clients.posts.removePost(id, version),
|
|
2132
|
+
run: ({ id, version, platform }, { clients }) => clients.posts.removePost(id, version, platform),
|
|
2127
2133
|
entity: (_result, args) => ({ entityType: "socialPost", entityId: args.id })
|
|
2128
2134
|
})
|
|
2129
2135
|
];
|