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