@sellable/mcp 0.1.501 → 0.1.503

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.
Files changed (34) hide show
  1. package/dist/api.d.ts +5 -5
  2. package/dist/api.js +10 -10
  3. package/dist/index-dev.js +0 -0
  4. package/dist/index.js +0 -0
  5. package/dist/server.js +2 -2
  6. package/dist/tools/campaign-fill-routing.d.ts +5 -0
  7. package/dist/tools/campaign-fill-routing.js +13 -3
  8. package/dist/tools/campaign-message-preparation.d.ts +7 -13
  9. package/dist/tools/campaign-message-preparation.js +21 -24
  10. package/dist/tools/campaign-processing.d.ts +19 -0
  11. package/dist/tools/campaign-processing.js +31 -8
  12. package/dist/tools/campaign-refill-state.d.ts +5 -0
  13. package/dist/tools/campaign-refill-state.js +13 -3
  14. package/dist/tools/leads.d.ts +6 -47
  15. package/dist/tools/leads.js +26 -30
  16. package/dist/tools/prompts.js +1 -1
  17. package/dist/tools/readiness.d.ts +6 -0
  18. package/dist/tools/readiness.js +12 -5
  19. package/dist/tools/refill-sends.d.ts +34 -32
  20. package/dist/tools/refill-sends.js +67 -586
  21. package/dist/tools/refill-target-plan.d.ts +5 -0
  22. package/dist/tools/refill-target-plan.js +24 -50
  23. package/dist/tools/registry.d.ts +205 -47
  24. package/dist/tools/scheduler-fill-capacity.d.ts +5 -0
  25. package/dist/tools/scheduler-fill-capacity.js +13 -3
  26. package/dist/tools/sender-routing.d.ts +8 -1
  27. package/dist/tools/sender-routing.js +12 -3
  28. package/dist/tools/senders.d.ts +14 -1
  29. package/dist/tools/senders.js +31 -5
  30. package/dist/tools/workspace-context.d.ts +36 -0
  31. package/dist/tools/workspace-context.js +39 -0
  32. package/package.json +1 -1
  33. package/skills/refill-sends/SKILL.md +49 -28
  34. package/skills/refill-sends-workflow/SKILL.md +15 -10
@@ -1,7 +1,11 @@
1
1
  type RefillSendsIntent = "plain" | "active" | "evergreen";
2
2
  type RefillSendsApprovalMode = "approve" | "mark_ready";
3
+ type RefillSendsExecutionMode = "manual" | "scheduled" | "yolo";
3
4
  type RefillSendsCommandInput = {
4
5
  yolo?: boolean;
6
+ executionMode?: RefillSendsExecutionMode;
7
+ requireWorkspace?: boolean;
8
+ workspaceId?: string | null;
5
9
  senders?: string[];
6
10
  senderIds?: string[];
7
11
  senderNames?: string[];
@@ -23,6 +27,19 @@ export declare const refillSendsToolDefinitions: {
23
27
  type: string;
24
28
  description: string;
25
29
  };
30
+ executionMode: {
31
+ type: string;
32
+ enum: string[];
33
+ description: string;
34
+ };
35
+ requireWorkspace: {
36
+ type: string;
37
+ description: string;
38
+ };
39
+ workspaceId: {
40
+ type: string;
41
+ description: string;
42
+ };
26
43
  senders: {
27
44
  type: string;
28
45
  items: {
@@ -89,6 +106,9 @@ export declare function refillSendsCommand(input?: RefillSendsCommandInput): {
89
106
  promptName: string;
90
107
  workflowPromptName: string;
91
108
  yolo: boolean;
109
+ executionMode: RefillSendsExecutionMode;
110
+ workspaceId: string | null;
111
+ workspaceResolution: string;
92
112
  intent: RefillSendsIntent;
93
113
  targetDate: string | null;
94
114
  untilDate: string | null;
@@ -144,11 +164,12 @@ export declare function refillSendsCommand(input?: RefillSendsCommandInput): {
144
164
  tableId: string | undefined;
145
165
  intent: RefillSendsIntent;
146
166
  approvalMode: RefillSendsApprovalMode;
167
+ workspaceId: string | null;
147
168
  };
148
169
  };
149
170
  };
150
171
  };
151
- export declare function executeRefillSendsCommand(input?: RefillSendsCommandInput): Promise<{
172
+ export declare function executeRefillSendsCommand(input?: RefillSendsCommandInput): Promise<import("./workspace-context.js").WorkspaceRequiredResult | {
152
173
  autoPaidInmailRefresh: {
153
174
  enabled: boolean;
154
175
  status: string;
@@ -158,21 +179,17 @@ export declare function executeRefillSendsCommand(input?: RefillSendsCommandInpu
158
179
  refreshReceipts?: undefined;
159
180
  attemptedSenderIds?: undefined;
160
181
  targetPlanReread?: undefined;
161
- };
162
- yoloExecution: {
163
- enabled: false;
164
- status: "not_run_without_yolo";
165
- selectedAction: null;
166
- targetPlanReread: false;
167
- result?: undefined;
168
- refusalReason?: undefined;
169
- postActionFirstAction?: undefined;
182
+ workspaceId?: undefined;
183
+ workspaceResolution?: undefined;
170
184
  };
171
185
  command: string;
172
186
  tool: string;
173
187
  promptName: string;
174
188
  workflowPromptName: string;
175
189
  yolo: boolean;
190
+ executionMode: RefillSendsExecutionMode;
191
+ workspaceId: string | null;
192
+ workspaceResolution: string;
176
193
  intent: RefillSendsIntent;
177
194
  targetDate: string | null;
178
195
  untilDate: string | null;
@@ -228,56 +245,40 @@ export declare function executeRefillSendsCommand(input?: RefillSendsCommandInpu
228
245
  tableId: string | undefined;
229
246
  intent: RefillSendsIntent;
230
247
  approvalMode: RefillSendsApprovalMode;
248
+ workspaceId: string | null;
231
249
  };
232
250
  };
233
251
  };
234
252
  } | {
235
253
  targetPlan: unknown;
236
254
  targetPlanBeforePaidRefresh: unknown;
237
- targetPlanBeforeYoloPrimitive: unknown;
238
255
  autoPaidInmailRefresh: {
239
256
  enabled: boolean;
240
257
  status: string;
241
258
  refreshedPaidInmailSenderIds: string[];
242
259
  failedPaidInmailRefreshes: {
243
260
  senderId: string;
244
- attempts?: number;
245
261
  error: string;
246
- errors?: string[];
247
262
  }[];
248
263
  refreshReceipts: {
249
264
  senderId: string;
250
265
  actionKey: string | null;
251
- attempts: number;
252
- retryErrors: string[];
253
266
  receipt: import("./senders.js").RefreshPaidInmailCreditsResponse;
254
267
  }[];
255
268
  attemptedSenderIds: string[];
256
269
  targetPlanReread: boolean;
270
+ workspaceId: string | null;
271
+ workspaceResolution: string;
257
272
  note: string;
258
273
  };
259
- yoloExecution: {
260
- enabled: true;
261
- status: "skipped_after_paid_refresh";
262
- selectedAction: null;
263
- targetPlanReread: true;
264
- result?: undefined;
265
- refusalReason?: undefined;
266
- postActionFirstAction?: undefined;
267
- } | {
268
- enabled: true;
269
- status: "no_action" | "read_only_reread" | "executed_and_reread" | "refused";
270
- selectedAction: Record<string, unknown> | null;
271
- result: unknown;
272
- targetPlanReread: boolean;
273
- refusalReason: string | undefined;
274
- postActionFirstAction: Record<string, unknown> | null;
275
- };
276
274
  command: string;
277
275
  tool: string;
278
276
  promptName: string;
279
277
  workflowPromptName: string;
280
278
  yolo: boolean;
279
+ executionMode: RefillSendsExecutionMode;
280
+ workspaceId: string | null;
281
+ workspaceResolution: string;
281
282
  intent: RefillSendsIntent;
282
283
  targetDate: string | null;
283
284
  untilDate: string | null;
@@ -333,6 +334,7 @@ export declare function executeRefillSendsCommand(input?: RefillSendsCommandInpu
333
334
  tableId: string | undefined;
334
335
  intent: RefillSendsIntent;
335
336
  approvalMode: RefillSendsApprovalMode;
337
+ workspaceId: string | null;
336
338
  };
337
339
  };
338
340
  };