@sellable/mcp 0.1.504 → 0.1.506
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/api.d.ts +5 -5
- package/dist/api.js +10 -10
- package/dist/index-dev.js +0 -0
- package/dist/index.js +0 -0
- package/dist/server.js +2 -2
- package/dist/tools/campaign-fill-routing.d.ts +5 -0
- package/dist/tools/campaign-fill-routing.js +13 -3
- package/dist/tools/campaign-message-preparation.d.ts +33 -23
- package/dist/tools/campaign-message-preparation.js +31 -30
- package/dist/tools/campaign-processing.d.ts +19 -0
- package/dist/tools/campaign-processing.js +31 -8
- package/dist/tools/campaign-refill-state.d.ts +5 -0
- package/dist/tools/campaign-refill-state.js +13 -3
- package/dist/tools/leads.d.ts +6 -47
- package/dist/tools/leads.js +26 -30
- package/dist/tools/prompts.js +1 -1
- package/dist/tools/readiness.d.ts +6 -0
- package/dist/tools/readiness.js +12 -5
- package/dist/tools/refill-sends.d.ts +112 -29
- package/dist/tools/refill-sends.js +222 -569
- package/dist/tools/refill-target-plan.d.ts +5 -0
- package/dist/tools/refill-target-plan.js +32 -65
- package/dist/tools/registry.d.ts +232 -48
- package/dist/tools/scheduler-fill-capacity.d.ts +5 -0
- package/dist/tools/scheduler-fill-capacity.js +13 -3
- package/dist/tools/sender-routing.d.ts +8 -1
- package/dist/tools/sender-routing.js +12 -3
- package/dist/tools/senders.d.ts +14 -1
- package/dist/tools/senders.js +31 -5
- package/dist/tools/workspace-context.d.ts +36 -0
- package/dist/tools/workspace-context.js +39 -0
- package/package.json +1 -1
- package/skills/refill-sends/SKILL.md +53 -29
- package/skills/refill-sends-workflow/SKILL.md +19 -12
|
@@ -1,7 +1,34 @@
|
|
|
1
1
|
type RefillSendsIntent = "plain" | "active" | "evergreen";
|
|
2
2
|
type RefillSendsApprovalMode = "approve" | "mark_ready";
|
|
3
|
+
type RefillSendsExecutionMode = "manual" | "scheduled" | "yolo";
|
|
4
|
+
type RefillSendsRowSelector = {
|
|
5
|
+
type: "reviewBatch";
|
|
6
|
+
basisHash?: string;
|
|
7
|
+
limit?: number;
|
|
8
|
+
} | {
|
|
9
|
+
type: "rowIds";
|
|
10
|
+
rowIds: string[];
|
|
11
|
+
} | {
|
|
12
|
+
type: "needsEnrichment";
|
|
13
|
+
limit?: number;
|
|
14
|
+
} | {
|
|
15
|
+
type: "needsApproval";
|
|
16
|
+
limit?: number;
|
|
17
|
+
} | {
|
|
18
|
+
type: "passedRows";
|
|
19
|
+
limit?: number;
|
|
20
|
+
} | {
|
|
21
|
+
type: "needsGeneratedMessage";
|
|
22
|
+
limit?: number;
|
|
23
|
+
} | {
|
|
24
|
+
type: "staleGeneratedMessages";
|
|
25
|
+
limit?: number;
|
|
26
|
+
};
|
|
3
27
|
type RefillSendsCommandInput = {
|
|
4
28
|
yolo?: boolean;
|
|
29
|
+
executionMode?: RefillSendsExecutionMode;
|
|
30
|
+
requireWorkspace?: boolean;
|
|
31
|
+
workspaceId?: string | null;
|
|
5
32
|
senders?: string[];
|
|
6
33
|
senderIds?: string[];
|
|
7
34
|
senderNames?: string[];
|
|
@@ -23,6 +50,19 @@ export declare const refillSendsToolDefinitions: {
|
|
|
23
50
|
type: string;
|
|
24
51
|
description: string;
|
|
25
52
|
};
|
|
53
|
+
executionMode: {
|
|
54
|
+
type: string;
|
|
55
|
+
enum: string[];
|
|
56
|
+
description: string;
|
|
57
|
+
};
|
|
58
|
+
requireWorkspace: {
|
|
59
|
+
type: string;
|
|
60
|
+
description: string;
|
|
61
|
+
};
|
|
62
|
+
workspaceId: {
|
|
63
|
+
type: string;
|
|
64
|
+
description: string;
|
|
65
|
+
};
|
|
26
66
|
senders: {
|
|
27
67
|
type: string;
|
|
28
68
|
items: {
|
|
@@ -89,6 +129,9 @@ export declare function refillSendsCommand(input?: RefillSendsCommandInput): {
|
|
|
89
129
|
promptName: string;
|
|
90
130
|
workflowPromptName: string;
|
|
91
131
|
yolo: boolean;
|
|
132
|
+
executionMode: RefillSendsExecutionMode;
|
|
133
|
+
workspaceId: string | null;
|
|
134
|
+
workspaceResolution: string;
|
|
92
135
|
intent: RefillSendsIntent;
|
|
93
136
|
targetDate: string | null;
|
|
94
137
|
untilDate: string | null;
|
|
@@ -144,11 +187,12 @@ export declare function refillSendsCommand(input?: RefillSendsCommandInput): {
|
|
|
144
187
|
tableId: string | undefined;
|
|
145
188
|
intent: RefillSendsIntent;
|
|
146
189
|
approvalMode: RefillSendsApprovalMode;
|
|
190
|
+
workspaceId: string | null;
|
|
147
191
|
};
|
|
148
192
|
};
|
|
149
193
|
};
|
|
150
194
|
};
|
|
151
|
-
export declare function executeRefillSendsCommand(input?: RefillSendsCommandInput): Promise<{
|
|
195
|
+
export declare function executeRefillSendsCommand(input?: RefillSendsCommandInput): Promise<import("./workspace-context.js").WorkspaceRequiredResult | {
|
|
152
196
|
autoPaidInmailRefresh: {
|
|
153
197
|
enabled: boolean;
|
|
154
198
|
status: string;
|
|
@@ -158,21 +202,17 @@ export declare function executeRefillSendsCommand(input?: RefillSendsCommandInpu
|
|
|
158
202
|
refreshReceipts?: undefined;
|
|
159
203
|
attemptedSenderIds?: undefined;
|
|
160
204
|
targetPlanReread?: undefined;
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
enabled: false;
|
|
164
|
-
status: "not_run_without_yolo";
|
|
165
|
-
selectedAction: null;
|
|
166
|
-
targetPlanReread: false;
|
|
167
|
-
result?: undefined;
|
|
168
|
-
refusalReason?: undefined;
|
|
169
|
-
postActionFirstAction?: undefined;
|
|
205
|
+
workspaceId?: undefined;
|
|
206
|
+
workspaceResolution?: undefined;
|
|
170
207
|
};
|
|
171
208
|
command: string;
|
|
172
209
|
tool: string;
|
|
173
210
|
promptName: string;
|
|
174
211
|
workflowPromptName: string;
|
|
175
212
|
yolo: boolean;
|
|
213
|
+
executionMode: RefillSendsExecutionMode;
|
|
214
|
+
workspaceId: string | null;
|
|
215
|
+
workspaceResolution: string;
|
|
176
216
|
intent: RefillSendsIntent;
|
|
177
217
|
targetDate: string | null;
|
|
178
218
|
untilDate: string | null;
|
|
@@ -228,56 +268,98 @@ export declare function executeRefillSendsCommand(input?: RefillSendsCommandInpu
|
|
|
228
268
|
tableId: string | undefined;
|
|
229
269
|
intent: RefillSendsIntent;
|
|
230
270
|
approvalMode: RefillSendsApprovalMode;
|
|
271
|
+
workspaceId: string | null;
|
|
231
272
|
};
|
|
232
273
|
};
|
|
233
274
|
};
|
|
234
275
|
} | {
|
|
235
276
|
targetPlan: unknown;
|
|
277
|
+
targetPlanBeforeYoloAction: unknown;
|
|
236
278
|
targetPlanBeforePaidRefresh: unknown;
|
|
237
|
-
targetPlanBeforeYoloPrimitive: unknown;
|
|
238
279
|
autoPaidInmailRefresh: {
|
|
239
280
|
enabled: boolean;
|
|
240
281
|
status: string;
|
|
241
282
|
refreshedPaidInmailSenderIds: string[];
|
|
242
283
|
failedPaidInmailRefreshes: {
|
|
243
284
|
senderId: string;
|
|
244
|
-
attempts?: number;
|
|
245
285
|
error: string;
|
|
246
|
-
errors?: string[];
|
|
247
286
|
}[];
|
|
248
287
|
refreshReceipts: {
|
|
249
288
|
senderId: string;
|
|
250
289
|
actionKey: string | null;
|
|
251
|
-
attempts: number;
|
|
252
|
-
retryErrors: string[];
|
|
253
290
|
receipt: import("./senders.js").RefreshPaidInmailCreditsResponse;
|
|
254
291
|
}[];
|
|
255
292
|
attemptedSenderIds: string[];
|
|
256
293
|
targetPlanReread: boolean;
|
|
294
|
+
workspaceId: string | null;
|
|
295
|
+
workspaceResolution: string;
|
|
257
296
|
note: string;
|
|
258
297
|
};
|
|
259
298
|
yoloExecution: {
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
299
|
+
status: string;
|
|
300
|
+
applied: boolean;
|
|
301
|
+
note: string;
|
|
302
|
+
action?: undefined;
|
|
303
|
+
toolName?: undefined;
|
|
304
|
+
input?: undefined;
|
|
305
|
+
startedAt?: undefined;
|
|
306
|
+
endedAt?: undefined;
|
|
307
|
+
startReceipt?: undefined;
|
|
308
|
+
waitReceipt?: undefined;
|
|
309
|
+
enabled: boolean;
|
|
310
|
+
workspaceId: string | null;
|
|
311
|
+
workspaceResolution: string;
|
|
312
|
+
targetPlanRereadAfterAction: boolean;
|
|
267
313
|
} | {
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
314
|
+
status: string;
|
|
315
|
+
applied: boolean;
|
|
316
|
+
action: Record<string, unknown>;
|
|
317
|
+
note: string;
|
|
318
|
+
toolName?: undefined;
|
|
319
|
+
input?: undefined;
|
|
320
|
+
startedAt?: undefined;
|
|
321
|
+
endedAt?: undefined;
|
|
322
|
+
startReceipt?: undefined;
|
|
323
|
+
waitReceipt?: undefined;
|
|
324
|
+
enabled: boolean;
|
|
325
|
+
workspaceId: string | null;
|
|
326
|
+
workspaceResolution: string;
|
|
327
|
+
targetPlanRereadAfterAction: boolean;
|
|
328
|
+
} | {
|
|
329
|
+
status: string;
|
|
330
|
+
applied: boolean;
|
|
331
|
+
action: Record<string, unknown>;
|
|
332
|
+
toolName: string;
|
|
333
|
+
input: {
|
|
334
|
+
workspaceId?: string | undefined;
|
|
335
|
+
rowSelector?: RefillSendsRowSelector | undefined;
|
|
336
|
+
approvalMode?: RefillSendsApprovalMode | undefined;
|
|
337
|
+
targetPreparedMessages?: number | undefined;
|
|
338
|
+
tableId?: string | undefined;
|
|
339
|
+
campaignId: string;
|
|
340
|
+
};
|
|
341
|
+
startedAt: string;
|
|
342
|
+
endedAt: string;
|
|
343
|
+
startReceipt: unknown;
|
|
344
|
+
waitReceipt: {
|
|
345
|
+
waited: boolean;
|
|
346
|
+
timedOut: boolean;
|
|
347
|
+
receipt: unknown;
|
|
348
|
+
};
|
|
349
|
+
note?: undefined;
|
|
350
|
+
enabled: boolean;
|
|
351
|
+
workspaceId: string | null;
|
|
352
|
+
workspaceResolution: string;
|
|
353
|
+
targetPlanRereadAfterAction: boolean;
|
|
275
354
|
};
|
|
276
355
|
command: string;
|
|
277
356
|
tool: string;
|
|
278
357
|
promptName: string;
|
|
279
358
|
workflowPromptName: string;
|
|
280
359
|
yolo: boolean;
|
|
360
|
+
executionMode: RefillSendsExecutionMode;
|
|
361
|
+
workspaceId: string | null;
|
|
362
|
+
workspaceResolution: string;
|
|
281
363
|
intent: RefillSendsIntent;
|
|
282
364
|
targetDate: string | null;
|
|
283
365
|
untilDate: string | null;
|
|
@@ -333,6 +415,7 @@ export declare function executeRefillSendsCommand(input?: RefillSendsCommandInpu
|
|
|
333
415
|
tableId: string | undefined;
|
|
334
416
|
intent: RefillSendsIntent;
|
|
335
417
|
approvalMode: RefillSendsApprovalMode;
|
|
418
|
+
workspaceId: string | null;
|
|
336
419
|
};
|
|
337
420
|
};
|
|
338
421
|
};
|