@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/bin/stdio.mjs
CHANGED
|
@@ -1668,9 +1668,11 @@ var SOCIAL_POST_STATUSES = [
|
|
|
1668
1668
|
"retrying",
|
|
1669
1669
|
"removing",
|
|
1670
1670
|
"removed",
|
|
1671
|
-
"removeFailed"
|
|
1671
|
+
"removeFailed",
|
|
1672
|
+
"partiallyRemoved"
|
|
1672
1673
|
];
|
|
1673
1674
|
var SOCIAL_POST_PLATFORMS = ["youtube", "facebook", "instagram", "tiktok"];
|
|
1675
|
+
var SOCIAL_POST_REMOVE_PLATFORMS = ["youtube", "facebook", "instagram", "tiktok", "threads", "twitter"];
|
|
1674
1676
|
var VIDEO_PLATFORM_BLOCKS = ["youtube", "tiktok", "facebook", "instagram"];
|
|
1675
1677
|
var SOCIAL_POST_TARGETS = ["workspaceId", "accountId"];
|
|
1676
1678
|
var TIKTOK_PRIVACY_LEVELS = ["PUBLIC_TO_EVERYONE", "FOLLOWER_OF_CREATOR", "MUTUAL_FOLLOW_FRIENDS", "SELF_ONLY"];
|
|
@@ -2134,19 +2136,23 @@ var SOCIAL_PUBLISHER_TOOLS = [
|
|
|
2134
2136
|
toolset: "social-publisher",
|
|
2135
2137
|
access: "full",
|
|
2136
2138
|
title: "Remove a post from the platforms",
|
|
2137
|
-
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.",
|
|
2138
|
-
input: z.object({
|
|
2139
|
+
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.",
|
|
2140
|
+
input: z.object({
|
|
2141
|
+
id: idField(POST_ID),
|
|
2142
|
+
version: versionField("the post"),
|
|
2143
|
+
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.")
|
|
2144
|
+
}),
|
|
2139
2145
|
annotations: { destructive: true, idempotent: true },
|
|
2140
2146
|
confirm: {
|
|
2141
|
-
describe: async ({ id }, { clients }) => {
|
|
2147
|
+
describe: async ({ id, platform }, { clients }) => {
|
|
2142
2148
|
const post = await clients.posts.getStatus(id);
|
|
2143
|
-
const platforms = postPlatforms(post);
|
|
2149
|
+
const platforms = platform ? [platform] : postPlatforms(post);
|
|
2144
2150
|
const where = platforms.length ? platforms.join(", ") : "the platforms it was published to";
|
|
2145
2151
|
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.`;
|
|
2146
2152
|
},
|
|
2147
2153
|
costFeaturePath: "socialMediaPublisher.removePost"
|
|
2148
2154
|
},
|
|
2149
|
-
run: ({ id, version }, { clients }) => clients.posts.removePost(id, version),
|
|
2155
|
+
run: ({ id, version, platform }, { clients }) => clients.posts.removePost(id, version, platform),
|
|
2150
2156
|
entity: (_result, args) => ({ entityType: "socialPost", entityId: args.id })
|
|
2151
2157
|
})
|
|
2152
2158
|
];
|