@sellable/mcp 0.1.338 → 0.1.339

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sellable/mcp",
3
- "version": "0.1.338",
3
+ "version": "0.1.339",
4
4
  "type": "module",
5
5
  "description": "Sellable MCP server for Claude Code and Codex campaign workflows",
6
6
  "main": "dist/index.js",
@@ -1,92 +0,0 @@
1
- type RefillCampaignSendsInput = {
2
- mode?: "plan" | "apply";
3
- intent?: "plain" | "evergreen" | "active";
4
- campaignIds?: string[];
5
- tableIds?: string[];
6
- sendWindowDays?: number;
7
- targetDates?: string[];
8
- targetScheduledSends?: number;
9
- approvalMode?: "mark_ready" | "approve";
10
- yolo?: boolean;
11
- planRevision?: string;
12
- actionIds?: string[];
13
- };
14
- export declare const refillCampaignSendsToolDefinitions: {
15
- name: string;
16
- description: string;
17
- inputSchema: {
18
- type: string;
19
- properties: {
20
- mode: {
21
- type: string;
22
- enum: string[];
23
- default: string;
24
- description: string;
25
- };
26
- intent: {
27
- type: string;
28
- enum: string[];
29
- description: string;
30
- };
31
- campaignIds: {
32
- type: string;
33
- items: {
34
- type: string;
35
- };
36
- maxItems: number;
37
- description: string;
38
- };
39
- tableIds: {
40
- type: string;
41
- items: {
42
- type: string;
43
- };
44
- maxItems: number;
45
- description: string;
46
- };
47
- sendWindowDays: {
48
- type: string;
49
- minimum: number;
50
- maximum: number;
51
- description: string;
52
- };
53
- targetDates: {
54
- type: string;
55
- items: {
56
- type: string;
57
- };
58
- maxItems: number;
59
- description: string;
60
- };
61
- targetScheduledSends: {
62
- type: string;
63
- minimum: number;
64
- maximum: number;
65
- description: string;
66
- };
67
- approvalMode: {
68
- type: string;
69
- enum: string[];
70
- description: string;
71
- };
72
- yolo: {
73
- type: string;
74
- description: string;
75
- };
76
- planRevision: {
77
- type: string;
78
- description: string;
79
- };
80
- actionIds: {
81
- type: string;
82
- items: {
83
- type: string;
84
- };
85
- description: string;
86
- };
87
- };
88
- additionalProperties: boolean;
89
- };
90
- }[];
91
- export declare function refillCampaignSends(input: RefillCampaignSendsInput): Promise<unknown>;
92
- export {};
@@ -1,91 +0,0 @@
1
- import { getApi } from "../api.js";
2
- async function postRefillCampaignSends(body) {
3
- const api = getApi();
4
- return api.post("/api/v3/mcp/refill-campaign-sends", body);
5
- }
6
- export const refillCampaignSendsToolDefinitions = [
7
- {
8
- name: "refill_campaign_sends",
9
- description: "Default mode is plan and read-only. Use this as the canonical tool for plain fill, refill sends, max out sends, load everyone up, and fill send window requests. It returns a campaign send refill plan for regular campaigns and evergreen campaigns, including campaign/table ids, senders, source state, current evergreen source audit evidence, funnel counts, blockers, stable planRevision, and immutable actionIds. It does not create campaigns, create side campaigns, use unsupported_campaign_type internal targets, does not launch or start campaigns, spend paid InMail opt-in, and does not raw-write scheduler fields. mode apply requires yolo: true, the fresh planRevision from the immediately preceding plan, and selected actionIds only; apply rejects changed caps, source ids, target dates, approval mode, or selectors. Evergreen source fallback is evidence-gated: audit the current evergreen source first and recommend the next source-ladder option only after current-source exhaustion or insufficient good-prospect yield is proven. Scheduled completion is not claimed until scheduler-owned cells are reread with non-null scheduledFor.",
10
- inputSchema: {
11
- type: "object",
12
- properties: {
13
- mode: {
14
- type: "string",
15
- enum: ["plan", "apply"],
16
- default: "plan",
17
- description: 'Defaults to "plan"; plan mode is read-only and returns the plan of attack.',
18
- },
19
- intent: {
20
- type: "string",
21
- enum: ["plain", "evergreen", "active"],
22
- description: 'Use "plain" for generic fill/refill sends, "evergreen" for explicit evergreen, and "active" for exact active campaign refill.',
23
- },
24
- campaignIds: {
25
- type: "array",
26
- items: { type: "string" },
27
- maxItems: 25,
28
- description: "Optional exact CampaignOffer ids. Do not pass names.",
29
- },
30
- tableIds: {
31
- type: "array",
32
- items: { type: "string" },
33
- maxItems: 25,
34
- description: "Optional exact WorkflowTable ids. Do not pass names.",
35
- },
36
- sendWindowDays: {
37
- type: "number",
38
- minimum: 1,
39
- maximum: 30,
40
- description: "Optional send window size in days.",
41
- },
42
- targetDates: {
43
- type: "array",
44
- items: { type: "string" },
45
- maxItems: 30,
46
- description: "Optional ISO date keys for the send window.",
47
- },
48
- targetScheduledSends: {
49
- type: "number",
50
- minimum: 1,
51
- maximum: 500,
52
- description: "Optional bounded send target. This is not a launch request.",
53
- },
54
- approvalMode: {
55
- type: "string",
56
- enum: ["mark_ready", "approve"],
57
- description: "Planning preference. Use approve only when the user explicitly asked for approval; launch remains separate.",
58
- },
59
- yolo: {
60
- type: "boolean",
61
- description: "Required true for apply. Never use in production without explicit operator approval of exact workspace, campaign/table ids, action ids, caps/dates, and expected side effects.",
62
- },
63
- planRevision: {
64
- type: "string",
65
- description: "Required for apply. Copy from the fresh read-only plan response.",
66
- },
67
- actionIds: {
68
- type: "array",
69
- items: { type: "string" },
70
- description: "Required for apply. Select immutable actionIds from the fresh plan only.",
71
- },
72
- },
73
- additionalProperties: false,
74
- },
75
- },
76
- ];
77
- export function refillCampaignSends(input) {
78
- return postRefillCampaignSends({
79
- mode: input.mode ?? "plan",
80
- intent: input.intent,
81
- campaignIds: input.campaignIds,
82
- tableIds: input.tableIds,
83
- sendWindowDays: input.sendWindowDays,
84
- targetScheduledSends: input.targetScheduledSends,
85
- targetDates: input.targetDates,
86
- approvalMode: input.approvalMode,
87
- yolo: input.yolo,
88
- planRevision: input.planRevision,
89
- actionIds: input.actionIds,
90
- });
91
- }