@sellable/mcp 0.1.554 → 0.1.555

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 (40) hide show
  1. package/dist/index-dev.js +0 -0
  2. package/dist/index.js +0 -0
  3. package/dist/refill-contract.d.ts +157 -0
  4. package/dist/refill-contract.js +487 -0
  5. package/dist/refill-run-client.d.ts +5 -0
  6. package/dist/refill-run-client.js +15 -0
  7. package/dist/refill-run-loop.d.ts +12 -1
  8. package/dist/refill-run-loop.js +158 -13
  9. package/dist/tools/campaign-message-preparation.d.ts +62 -0
  10. package/dist/tools/campaign-message-preparation.js +41 -0
  11. package/dist/tools/evergreen-refill-plan.d.ts +3 -0
  12. package/dist/tools/evergreen-refill-plan.js +29 -7
  13. package/dist/tools/prompts.js +9 -0
  14. package/dist/tools/refill-executors.d.ts +38 -0
  15. package/dist/tools/refill-executors.js +222 -3
  16. package/dist/tools/refill-sends-v2.d.ts +112 -1
  17. package/dist/tools/refill-sends-v2.js +302 -2
  18. package/dist/tools/refill-sends.d.ts +678 -32
  19. package/dist/tools/refill-sends.js +274 -13
  20. package/dist/tools/refill-target-plan.js +486 -14
  21. package/dist/tools/registry.d.ts +96 -27
  22. package/dist/tools/registry.js +1 -3
  23. package/dist/tools/scheduler-fill-capacity.js +1 -1
  24. package/dist/tools/scheduler-run.d.ts +71 -0
  25. package/dist/tools/scheduler-run.js +203 -1
  26. package/dist/tools/workspaces.d.ts +4 -6
  27. package/dist/tools/workspaces.js +11 -13
  28. package/package.json +1 -1
  29. package/skills/refill-sends/SKILL.md +91 -353
  30. package/skills/refill-sends-v2/SKILL.md +6 -6
  31. package/skills/refill-sends-v2-workflow/SKILL.md +5 -5
  32. package/skills/refill-sends-v2-workflow/core/flow.v1.json +8 -8
  33. package/skills/refill-sends-workflow/SKILL.md +100 -743
  34. package/skills/refill-sends-workflow/core/contract.v2.json +543 -0
  35. package/skills/refill-sends-workflow/core/flow.v1.json +185 -1
  36. package/dist/refill-date-window.d.ts +0 -34
  37. package/dist/refill-date-window.js +0 -210
  38. package/dist/tools/refill-sends-evergreen.d.ts +0 -28
  39. package/dist/tools/refill-sends-evergreen.js +0 -47
  40. package/skills/research/config.json +0 -9
@@ -1,6 +1,8 @@
1
1
  type RefillSendsIntent = "plain" | "active" | "evergreen";
2
2
  type RefillSendsApprovalMode = "approve" | "mark_ready";
3
3
  type RefillSendsExecutionMode = "manual" | "scheduled" | "yolo";
4
+ declare const REFILL_SEND_ACTION_TYPES: readonly ["send_invite", "send_inmail_closed"];
5
+ type RefillSendsActionType = (typeof REFILL_SEND_ACTION_TYPES)[number];
4
6
  type RefillSendsCommandInput = {
5
7
  yolo?: boolean;
6
8
  executionMode?: RefillSendsExecutionMode;
@@ -16,6 +18,17 @@ type RefillSendsCommandInput = {
16
18
  tableId?: string;
17
19
  intent?: RefillSendsIntent;
18
20
  approvalMode?: RefillSendsApprovalMode;
21
+ actionTypes?: RefillSendsActionType[];
22
+ expectedTargetShapeRevision?: string;
23
+ expectedActionKey?: string;
24
+ runId?: string;
25
+ fence?: number;
26
+ scopeHash?: string;
27
+ targetShapeRevision?: string;
28
+ actionFingerprint?: string;
29
+ expectedTargetsHash?: string;
30
+ approvalExpiresAt?: string;
31
+ approvalFingerprint?: string;
19
32
  };
20
33
  type PaidInmailRefreshApprovalPacket = {
21
34
  approvalSource: "explicit_yolo_flag";
@@ -74,6 +87,14 @@ export declare const refillSendsToolDefinitions: {
74
87
  };
75
88
  description: string;
76
89
  };
90
+ actionTypes: {
91
+ type: string;
92
+ items: {
93
+ type: string;
94
+ enum: string[];
95
+ };
96
+ description: string;
97
+ };
77
98
  horizonSendDays: {
78
99
  type: string;
79
100
  minimum: number;
@@ -108,12 +129,106 @@ export declare const refillSendsToolDefinitions: {
108
129
  enum: string[];
109
130
  description: string;
110
131
  };
132
+ expectedTargetShapeRevision: {
133
+ type: string;
134
+ description: string;
135
+ };
136
+ expectedActionKey: {
137
+ type: string;
138
+ description: string;
139
+ };
140
+ runId: {
141
+ type: string;
142
+ };
143
+ fence: {
144
+ type: string;
145
+ };
146
+ scopeHash: {
147
+ type: string;
148
+ };
149
+ targetShapeRevision: {
150
+ type: string;
151
+ };
152
+ actionFingerprint: {
153
+ type: string;
154
+ };
155
+ expectedTargetsHash: {
156
+ type: string;
157
+ };
158
+ approvalExpiresAt: {
159
+ type: string;
160
+ };
161
+ approvalFingerprint: {
162
+ type: string;
163
+ };
111
164
  };
112
165
  required: never[];
113
166
  additionalProperties: boolean;
114
167
  };
115
168
  }[];
116
169
  export declare function refillSendsCommand(input?: RefillSendsCommandInput): {
170
+ targetDate: string | null;
171
+ untilDate: string | null;
172
+ horizonSendDays: number | null;
173
+ fillWindow: {
174
+ mode: string;
175
+ targetDate: string;
176
+ description: string;
177
+ untilDate?: undefined;
178
+ horizonSendDays?: undefined;
179
+ horizonHours?: undefined;
180
+ } | {
181
+ mode: string;
182
+ untilDate: string;
183
+ description: string;
184
+ targetDate?: undefined;
185
+ horizonSendDays?: undefined;
186
+ horizonHours?: undefined;
187
+ } | {
188
+ mode: string;
189
+ horizonSendDays: number | null;
190
+ horizonHours: number | null;
191
+ description: string;
192
+ targetDate?: undefined;
193
+ untilDate?: undefined;
194
+ };
195
+ approvalMode: RefillSendsApprovalMode;
196
+ campaignId: string | null;
197
+ tableId: string | null;
198
+ senderScope: string;
199
+ senderSelectors: {
200
+ senders: string[];
201
+ senderIds: string[];
202
+ senderNames: string[];
203
+ };
204
+ firstOperationalSteps: string[];
205
+ approvalContract: string;
206
+ forbiddenActions: string[];
207
+ hostExamples: {
208
+ claude: string[];
209
+ codex: string[];
210
+ mcpTool: {
211
+ name: string;
212
+ arguments: {
213
+ expectedActionKey?: string | undefined;
214
+ expectedTargetShapeRevision?: string | undefined;
215
+ targetDate: string | null;
216
+ untilDate: string | null;
217
+ horizonSendDays: number | null;
218
+ campaignId: string | undefined;
219
+ tableId: string | undefined;
220
+ intent: RefillSendsIntent;
221
+ approvalMode: RefillSendsApprovalMode;
222
+ workspaceId: string | null;
223
+ actionTypes?: ("send_invite" | "send_inmail_closed")[] | undefined;
224
+ yolo: boolean;
225
+ senders: string[];
226
+ senderIds: string[];
227
+ senderNames: string[];
228
+ };
229
+ };
230
+ };
231
+ actionTypes?: ("send_invite" | "send_inmail_closed")[] | undefined;
117
232
  command: string;
118
233
  tool: string;
119
234
  promptName: string;
@@ -127,6 +242,30 @@ export declare function refillSendsCommand(input?: RefillSendsCommandInput): {
127
242
  workspaceId: string | null;
128
243
  workspaceResolution: string;
129
244
  intent: RefillSendsIntent;
245
+ };
246
+ export declare function executeRefillSendsCommand(input?: RefillSendsCommandInput): Promise<import("./workspace-context.js").WorkspaceRequiredResult | {
247
+ autoPaidInmailRefresh: {
248
+ enabled: boolean;
249
+ status: string;
250
+ refreshedPaidInmailSenderIds: never[];
251
+ failedPaidInmailRefreshes: never[];
252
+ refreshReceipts: never[];
253
+ note: string;
254
+ attemptedSenderIds?: undefined;
255
+ targetPlanReread?: undefined;
256
+ workspaceId?: undefined;
257
+ workspaceResolution?: undefined;
258
+ };
259
+ yoloExecution: {
260
+ enabled: false;
261
+ status: "not_run_without_yolo";
262
+ selectedAction: null;
263
+ targetPlanReread: false;
264
+ blocker?: undefined;
265
+ result?: undefined;
266
+ refusalReason?: undefined;
267
+ postActionFirstAction?: undefined;
268
+ };
130
269
  targetDate: string | null;
131
270
  untilDate: string | null;
132
271
  horizonSendDays: number | null;
@@ -170,10 +309,8 @@ export declare function refillSendsCommand(input?: RefillSendsCommandInput): {
170
309
  mcpTool: {
171
310
  name: string;
172
311
  arguments: {
173
- yolo: boolean;
174
- senders: string[];
175
- senderIds: string[];
176
- senderNames: string[];
312
+ expectedActionKey?: string | undefined;
313
+ expectedTargetShapeRevision?: string | undefined;
177
314
  targetDate: string | null;
178
315
  untilDate: string | null;
179
316
  horizonSendDays: number | null;
@@ -182,32 +319,125 @@ export declare function refillSendsCommand(input?: RefillSendsCommandInput): {
182
319
  intent: RefillSendsIntent;
183
320
  approvalMode: RefillSendsApprovalMode;
184
321
  workspaceId: string | null;
322
+ actionTypes?: ("send_invite" | "send_inmail_closed")[] | undefined;
323
+ yolo: boolean;
324
+ senders: string[];
325
+ senderIds: string[];
326
+ senderNames: string[];
185
327
  };
186
328
  };
187
329
  };
188
- };
189
- export declare function executeRefillSendsCommand(input?: RefillSendsCommandInput): Promise<import("./workspace-context.js").WorkspaceRequiredResult | {
330
+ actionTypes?: ("send_invite" | "send_inmail_closed")[] | undefined;
331
+ command: string;
332
+ tool: string;
333
+ promptName: string;
334
+ workflowPromptName: string;
335
+ workflowAsset: {
336
+ subskillName: string;
337
+ assetPath: string;
338
+ };
339
+ yolo: boolean;
340
+ executionMode: RefillSendsExecutionMode;
341
+ workspaceId: string | null;
342
+ workspaceResolution: string;
343
+ intent: RefillSendsIntent;
344
+ } | {
190
345
  autoPaidInmailRefresh: {
191
346
  enabled: boolean;
192
347
  status: string;
193
348
  refreshedPaidInmailSenderIds: never[];
194
349
  failedPaidInmailRefreshes: never[];
350
+ refreshReceipts: never[];
351
+ attemptedSenderIds: never[];
352
+ targetPlanReread: boolean;
353
+ workspaceId: string | null;
354
+ workspaceResolution: string;
195
355
  note: string;
196
- refreshReceipts?: undefined;
197
- attemptedSenderIds?: undefined;
198
- targetPlanReread?: undefined;
199
- workspaceId?: undefined;
200
- workspaceResolution?: undefined;
201
356
  };
202
357
  yoloExecution: {
203
- enabled: false;
204
- status: "not_run_without_yolo";
205
- selectedAction: null;
206
- targetPlanReread: false;
358
+ enabled: boolean;
359
+ status: string;
360
+ selectedAction: Record<string, unknown> | null;
361
+ targetPlanReread: boolean;
362
+ blocker?: undefined;
207
363
  result?: undefined;
208
364
  refusalReason?: undefined;
209
365
  postActionFirstAction?: undefined;
210
366
  };
367
+ changed: boolean;
368
+ expectedTargetShapeRevision: string | null;
369
+ actualTargetShapeRevision: string | null;
370
+ expectedActionKey: string | null;
371
+ actualActionKey: string | null;
372
+ shapeChanged: boolean;
373
+ actionChanged: boolean;
374
+ ok: boolean;
375
+ code: string;
376
+ targetPlan: unknown;
377
+ targetPlanBeforePaidRefresh: null;
378
+ targetPlanBeforeYoloPrimitive: null;
379
+ targetDate: string | null;
380
+ untilDate: string | null;
381
+ horizonSendDays: number | null;
382
+ fillWindow: {
383
+ mode: string;
384
+ targetDate: string;
385
+ description: string;
386
+ untilDate?: undefined;
387
+ horizonSendDays?: undefined;
388
+ horizonHours?: undefined;
389
+ } | {
390
+ mode: string;
391
+ untilDate: string;
392
+ description: string;
393
+ targetDate?: undefined;
394
+ horizonSendDays?: undefined;
395
+ horizonHours?: undefined;
396
+ } | {
397
+ mode: string;
398
+ horizonSendDays: number | null;
399
+ horizonHours: number | null;
400
+ description: string;
401
+ targetDate?: undefined;
402
+ untilDate?: undefined;
403
+ };
404
+ approvalMode: RefillSendsApprovalMode;
405
+ campaignId: string | null;
406
+ tableId: string | null;
407
+ senderScope: string;
408
+ senderSelectors: {
409
+ senders: string[];
410
+ senderIds: string[];
411
+ senderNames: string[];
412
+ };
413
+ firstOperationalSteps: string[];
414
+ approvalContract: string;
415
+ forbiddenActions: string[];
416
+ hostExamples: {
417
+ claude: string[];
418
+ codex: string[];
419
+ mcpTool: {
420
+ name: string;
421
+ arguments: {
422
+ expectedActionKey?: string | undefined;
423
+ expectedTargetShapeRevision?: string | undefined;
424
+ targetDate: string | null;
425
+ untilDate: string | null;
426
+ horizonSendDays: number | null;
427
+ campaignId: string | undefined;
428
+ tableId: string | undefined;
429
+ intent: RefillSendsIntent;
430
+ approvalMode: RefillSendsApprovalMode;
431
+ workspaceId: string | null;
432
+ actionTypes?: ("send_invite" | "send_inmail_closed")[] | undefined;
433
+ yolo: boolean;
434
+ senders: string[];
435
+ senderIds: string[];
436
+ senderNames: string[];
437
+ };
438
+ };
439
+ };
440
+ actionTypes?: ("send_invite" | "send_inmail_closed")[] | undefined;
211
441
  command: string;
212
442
  tool: string;
213
443
  promptName: string;
@@ -221,6 +451,100 @@ export declare function executeRefillSendsCommand(input?: RefillSendsCommandInpu
221
451
  workspaceId: string | null;
222
452
  workspaceResolution: string;
223
453
  intent: RefillSendsIntent;
454
+ } | {
455
+ yoloExecution: {
456
+ selectedAction: Record<string, unknown> | null;
457
+ targetPlanReread: boolean;
458
+ status: "blocked";
459
+ blocker: string;
460
+ response: unknown;
461
+ enabled: boolean;
462
+ result?: undefined;
463
+ refusalReason?: undefined;
464
+ postActionFirstAction?: undefined;
465
+ } | {
466
+ selectedAction: Record<string, unknown> | null;
467
+ targetPlanReread: boolean;
468
+ status: "awaiting_approval";
469
+ runId: string;
470
+ fence: number;
471
+ scope: Record<string, unknown> | {
472
+ version: 2;
473
+ workspaceId: string;
474
+ intent: "active" | "plain" | "evergreen" | "auto";
475
+ senderIds: string[];
476
+ campaignIds: string[];
477
+ tableIds: string[];
478
+ actionIds: string[];
479
+ approvalMode: "mark_ready" | "approve";
480
+ dateSelector: {
481
+ kind: "target_date";
482
+ targetDate: string;
483
+ untilDate?: undefined;
484
+ horizonSendDays?: undefined;
485
+ } | {
486
+ kind: "until_date";
487
+ untilDate: string;
488
+ targetDate?: undefined;
489
+ horizonSendDays?: undefined;
490
+ } | {
491
+ kind: "horizon_send_days";
492
+ horizonSendDays: number;
493
+ targetDate?: undefined;
494
+ untilDate?: undefined;
495
+ } | {
496
+ kind: "scheduler_default";
497
+ targetDate?: undefined;
498
+ untilDate?: undefined;
499
+ horizonSendDays?: undefined;
500
+ };
501
+ senderTimezones: {
502
+ [k: string]: string;
503
+ };
504
+ expectedTargetsHash: string;
505
+ maxPlacements: number;
506
+ contract: {
507
+ version: "2.0.0";
508
+ hash: string;
509
+ cacheKey: "refill-contract-v1";
510
+ };
511
+ installed: {
512
+ mcpVersion: "phase98-local";
513
+ installVersion: "phase98-local";
514
+ pluginVersion: "phase98-local";
515
+ cacheIdentity: "phase98-local-plugin-cache";
516
+ };
517
+ };
518
+ approvalFingerprint: string;
519
+ scopeHash: string;
520
+ targetShapeRevision: string;
521
+ actionFingerprint: string;
522
+ expectedTargetsHash: string;
523
+ sideEffectEnvelope: string[];
524
+ maxPlacements: number;
525
+ approvalExpiresAt: string;
526
+ blocker?: undefined;
527
+ response?: undefined;
528
+ enabled: boolean;
529
+ result?: undefined;
530
+ refusalReason?: undefined;
531
+ postActionFirstAction?: undefined;
532
+ };
533
+ targetPlan: unknown;
534
+ targetPlanBeforePaidRefresh: null;
535
+ targetPlanBeforeYoloPrimitive: unknown;
536
+ autoPaidInmailRefresh: {
537
+ enabled: boolean;
538
+ status: string;
539
+ refreshedPaidInmailSenderIds: never[];
540
+ failedPaidInmailRefreshes: never[];
541
+ refreshReceipts: never[];
542
+ attemptedSenderIds: never[];
543
+ targetPlanReread: boolean;
544
+ workspaceId: string;
545
+ workspaceResolution: string;
546
+ note: string;
547
+ };
224
548
  targetDate: string | null;
225
549
  untilDate: string | null;
226
550
  horizonSendDays: number | null;
@@ -264,10 +588,111 @@ export declare function executeRefillSendsCommand(input?: RefillSendsCommandInpu
264
588
  mcpTool: {
265
589
  name: string;
266
590
  arguments: {
591
+ expectedActionKey?: string | undefined;
592
+ expectedTargetShapeRevision?: string | undefined;
593
+ targetDate: string | null;
594
+ untilDate: string | null;
595
+ horizonSendDays: number | null;
596
+ campaignId: string | undefined;
597
+ tableId: string | undefined;
598
+ intent: RefillSendsIntent;
599
+ approvalMode: RefillSendsApprovalMode;
600
+ workspaceId: string | null;
601
+ actionTypes?: ("send_invite" | "send_inmail_closed")[] | undefined;
267
602
  yolo: boolean;
268
603
  senders: string[];
269
604
  senderIds: string[];
270
605
  senderNames: string[];
606
+ };
607
+ };
608
+ };
609
+ actionTypes?: ("send_invite" | "send_inmail_closed")[] | undefined;
610
+ command: string;
611
+ tool: string;
612
+ promptName: string;
613
+ workflowPromptName: string;
614
+ workflowAsset: {
615
+ subskillName: string;
616
+ assetPath: string;
617
+ };
618
+ yolo: boolean;
619
+ executionMode: RefillSendsExecutionMode;
620
+ workspaceId: string | null;
621
+ workspaceResolution: string;
622
+ intent: RefillSendsIntent;
623
+ } | {
624
+ ok: boolean;
625
+ code: string;
626
+ yoloExecution: {
627
+ enabled: boolean;
628
+ status: string;
629
+ blocker: string;
630
+ selectedAction: Record<string, unknown> | null;
631
+ targetPlanReread: boolean;
632
+ result?: undefined;
633
+ refusalReason?: undefined;
634
+ postActionFirstAction?: undefined;
635
+ };
636
+ targetPlan: unknown;
637
+ targetPlanBeforePaidRefresh: null;
638
+ targetPlanBeforeYoloPrimitive: unknown;
639
+ autoPaidInmailRefresh: {
640
+ enabled: boolean;
641
+ status: string;
642
+ refreshedPaidInmailSenderIds: never[];
643
+ failedPaidInmailRefreshes: never[];
644
+ refreshReceipts: never[];
645
+ attemptedSenderIds: never[];
646
+ targetPlanReread: boolean;
647
+ workspaceId: string;
648
+ workspaceResolution: string;
649
+ note: string;
650
+ };
651
+ targetDate: string | null;
652
+ untilDate: string | null;
653
+ horizonSendDays: number | null;
654
+ fillWindow: {
655
+ mode: string;
656
+ targetDate: string;
657
+ description: string;
658
+ untilDate?: undefined;
659
+ horizonSendDays?: undefined;
660
+ horizonHours?: undefined;
661
+ } | {
662
+ mode: string;
663
+ untilDate: string;
664
+ description: string;
665
+ targetDate?: undefined;
666
+ horizonSendDays?: undefined;
667
+ horizonHours?: undefined;
668
+ } | {
669
+ mode: string;
670
+ horizonSendDays: number | null;
671
+ horizonHours: number | null;
672
+ description: string;
673
+ targetDate?: undefined;
674
+ untilDate?: undefined;
675
+ };
676
+ approvalMode: RefillSendsApprovalMode;
677
+ campaignId: string | null;
678
+ tableId: string | null;
679
+ senderScope: string;
680
+ senderSelectors: {
681
+ senders: string[];
682
+ senderIds: string[];
683
+ senderNames: string[];
684
+ };
685
+ firstOperationalSteps: string[];
686
+ approvalContract: string;
687
+ forbiddenActions: string[];
688
+ hostExamples: {
689
+ claude: string[];
690
+ codex: string[];
691
+ mcpTool: {
692
+ name: string;
693
+ arguments: {
694
+ expectedActionKey?: string | undefined;
695
+ expectedTargetShapeRevision?: string | undefined;
271
696
  targetDate: string | null;
272
697
  untilDate: string | null;
273
698
  horizonSendDays: number | null;
@@ -276,9 +701,223 @@ export declare function executeRefillSendsCommand(input?: RefillSendsCommandInpu
276
701
  intent: RefillSendsIntent;
277
702
  approvalMode: RefillSendsApprovalMode;
278
703
  workspaceId: string | null;
704
+ actionTypes?: ("send_invite" | "send_inmail_closed")[] | undefined;
705
+ yolo: boolean;
706
+ senders: string[];
707
+ senderIds: string[];
708
+ senderNames: string[];
279
709
  };
280
710
  };
281
711
  };
712
+ actionTypes?: ("send_invite" | "send_inmail_closed")[] | undefined;
713
+ command: string;
714
+ tool: string;
715
+ promptName: string;
716
+ workflowPromptName: string;
717
+ workflowAsset: {
718
+ subskillName: string;
719
+ assetPath: string;
720
+ };
721
+ yolo: boolean;
722
+ executionMode: RefillSendsExecutionMode;
723
+ workspaceId: string | null;
724
+ workspaceResolution: string;
725
+ intent: RefillSendsIntent;
726
+ } | {
727
+ yoloExecution: {
728
+ selectedAction: Record<string, unknown> | null;
729
+ targetPlanReread: boolean;
730
+ readOnly: boolean;
731
+ mode: string;
732
+ forbiddenActions: string[];
733
+ boundedAuthority: string;
734
+ blocker: string;
735
+ workspaceId: string;
736
+ guidance: string;
737
+ warnings: string[];
738
+ journalPath: string | null;
739
+ text: string;
740
+ workspaceResolution: string;
741
+ enabled: boolean;
742
+ status?: undefined;
743
+ result?: undefined;
744
+ refusalReason?: undefined;
745
+ postActionFirstAction?: undefined;
746
+ } | {
747
+ selectedAction: Record<string, unknown> | null;
748
+ targetPlanReread: boolean;
749
+ readOnly: boolean;
750
+ mode: string;
751
+ forbiddenActions: string[];
752
+ boundedAuthority: string;
753
+ warnings: any[];
754
+ journalPath: string | null;
755
+ text: string;
756
+ workspaceId: string;
757
+ workspaceResolution: string;
758
+ blocker?: undefined;
759
+ guidance?: undefined;
760
+ enabled: boolean;
761
+ status?: undefined;
762
+ result?: undefined;
763
+ refusalReason?: undefined;
764
+ postActionFirstAction?: undefined;
765
+ } | {
766
+ selectedAction: Record<string, unknown> | null;
767
+ targetPlanReread: boolean;
768
+ readOnly: boolean;
769
+ forbiddenActions: string[];
770
+ boundedAuthority: string;
771
+ status: "dry_run";
772
+ plan: Record<string, unknown>;
773
+ enabled: boolean;
774
+ blocker?: undefined;
775
+ result?: undefined;
776
+ refusalReason?: undefined;
777
+ postActionFirstAction?: undefined;
778
+ } | {
779
+ selectedAction: Record<string, unknown> | null;
780
+ targetPlanReread: boolean;
781
+ readOnly: boolean;
782
+ forbiddenActions: string[];
783
+ boundedAuthority: string;
784
+ status: "in_progress";
785
+ runId: string;
786
+ fence: number;
787
+ gate: import("../refill-run-loop.js").RefillLoopGate;
788
+ guidance: string;
789
+ journalPath?: string | null;
790
+ enabled: boolean;
791
+ blocker?: undefined;
792
+ result?: undefined;
793
+ refusalReason?: undefined;
794
+ postActionFirstAction?: undefined;
795
+ } | {
796
+ selectedAction: Record<string, unknown> | null;
797
+ targetPlanReread: boolean;
798
+ readOnly: boolean;
799
+ forbiddenActions: string[];
800
+ boundedAuthority: string;
801
+ status: "blocked";
802
+ blocker: string;
803
+ runId?: string;
804
+ fence?: number;
805
+ gate?: import("../refill-run-loop.js").RefillLoopGate;
806
+ guidance: string;
807
+ holderRunId?: string;
808
+ report?: Record<string, unknown>;
809
+ journalPath?: string | null;
810
+ enabled: boolean;
811
+ result?: undefined;
812
+ refusalReason?: undefined;
813
+ postActionFirstAction?: undefined;
814
+ } | {
815
+ selectedAction: Record<string, unknown> | null;
816
+ targetPlanReread: boolean;
817
+ readOnly: boolean;
818
+ forbiddenActions: string[];
819
+ boundedAuthority: string;
820
+ status: "terminal";
821
+ doneReason: string;
822
+ report: Record<string, unknown>;
823
+ runId: string;
824
+ journalPath?: string | null;
825
+ enabled: boolean;
826
+ blocker?: undefined;
827
+ result?: undefined;
828
+ refusalReason?: undefined;
829
+ postActionFirstAction?: undefined;
830
+ };
831
+ targetPlan: unknown;
832
+ targetPlanBeforePaidRefresh: null;
833
+ targetPlanBeforeYoloPrimitive: unknown;
834
+ autoPaidInmailRefresh: {
835
+ enabled: boolean;
836
+ status: string;
837
+ refreshedPaidInmailSenderIds: never[];
838
+ failedPaidInmailRefreshes: never[];
839
+ refreshReceipts: never[];
840
+ attemptedSenderIds: never[];
841
+ targetPlanReread: boolean;
842
+ workspaceId: string;
843
+ workspaceResolution: string;
844
+ note: string;
845
+ };
846
+ targetDate: string | null;
847
+ untilDate: string | null;
848
+ horizonSendDays: number | null;
849
+ fillWindow: {
850
+ mode: string;
851
+ targetDate: string;
852
+ description: string;
853
+ untilDate?: undefined;
854
+ horizonSendDays?: undefined;
855
+ horizonHours?: undefined;
856
+ } | {
857
+ mode: string;
858
+ untilDate: string;
859
+ description: string;
860
+ targetDate?: undefined;
861
+ horizonSendDays?: undefined;
862
+ horizonHours?: undefined;
863
+ } | {
864
+ mode: string;
865
+ horizonSendDays: number | null;
866
+ horizonHours: number | null;
867
+ description: string;
868
+ targetDate?: undefined;
869
+ untilDate?: undefined;
870
+ };
871
+ approvalMode: RefillSendsApprovalMode;
872
+ campaignId: string | null;
873
+ tableId: string | null;
874
+ senderScope: string;
875
+ senderSelectors: {
876
+ senders: string[];
877
+ senderIds: string[];
878
+ senderNames: string[];
879
+ };
880
+ firstOperationalSteps: string[];
881
+ approvalContract: string;
882
+ forbiddenActions: string[];
883
+ hostExamples: {
884
+ claude: string[];
885
+ codex: string[];
886
+ mcpTool: {
887
+ name: string;
888
+ arguments: {
889
+ expectedActionKey?: string | undefined;
890
+ expectedTargetShapeRevision?: string | undefined;
891
+ targetDate: string | null;
892
+ untilDate: string | null;
893
+ horizonSendDays: number | null;
894
+ campaignId: string | undefined;
895
+ tableId: string | undefined;
896
+ intent: RefillSendsIntent;
897
+ approvalMode: RefillSendsApprovalMode;
898
+ workspaceId: string | null;
899
+ actionTypes?: ("send_invite" | "send_inmail_closed")[] | undefined;
900
+ yolo: boolean;
901
+ senders: string[];
902
+ senderIds: string[];
903
+ senderNames: string[];
904
+ };
905
+ };
906
+ };
907
+ actionTypes?: ("send_invite" | "send_inmail_closed")[] | undefined;
908
+ command: string;
909
+ tool: string;
910
+ promptName: string;
911
+ workflowPromptName: string;
912
+ workflowAsset: {
913
+ subskillName: string;
914
+ assetPath: string;
915
+ };
916
+ yolo: boolean;
917
+ executionMode: RefillSendsExecutionMode;
918
+ workspaceId: string | null;
919
+ workspaceResolution: string;
920
+ intent: RefillSendsIntent;
282
921
  } | {
283
922
  targetPlan: unknown;
284
923
  targetPlanBeforePaidRefresh: unknown;
@@ -317,6 +956,7 @@ export declare function executeRefillSendsCommand(input?: RefillSendsCommandInpu
317
956
  status: "not_run_without_yolo";
318
957
  selectedAction: null;
319
958
  targetPlanReread: false;
959
+ blocker?: undefined;
320
960
  result?: undefined;
321
961
  refusalReason?: undefined;
322
962
  postActionFirstAction?: undefined;
@@ -325,6 +965,7 @@ export declare function executeRefillSendsCommand(input?: RefillSendsCommandInpu
325
965
  status: "skipped_after_paid_refresh";
326
966
  selectedAction: null;
327
967
  targetPlanReread: true;
968
+ blocker?: undefined;
328
969
  result?: undefined;
329
970
  refusalReason?: undefined;
330
971
  postActionFirstAction?: undefined;
@@ -336,20 +977,8 @@ export declare function executeRefillSendsCommand(input?: RefillSendsCommandInpu
336
977
  targetPlanReread: boolean;
337
978
  refusalReason: string | undefined;
338
979
  postActionFirstAction: Record<string, unknown> | null;
980
+ blocker?: undefined;
339
981
  };
340
- command: string;
341
- tool: string;
342
- promptName: string;
343
- workflowPromptName: string;
344
- workflowAsset: {
345
- subskillName: string;
346
- assetPath: string;
347
- };
348
- yolo: boolean;
349
- executionMode: RefillSendsExecutionMode;
350
- workspaceId: string | null;
351
- workspaceResolution: string;
352
- intent: RefillSendsIntent;
353
982
  targetDate: string | null;
354
983
  untilDate: string | null;
355
984
  horizonSendDays: number | null;
@@ -393,10 +1022,8 @@ export declare function executeRefillSendsCommand(input?: RefillSendsCommandInpu
393
1022
  mcpTool: {
394
1023
  name: string;
395
1024
  arguments: {
396
- yolo: boolean;
397
- senders: string[];
398
- senderIds: string[];
399
- senderNames: string[];
1025
+ expectedActionKey?: string | undefined;
1026
+ expectedTargetShapeRevision?: string | undefined;
400
1027
  targetDate: string | null;
401
1028
  untilDate: string | null;
402
1029
  horizonSendDays: number | null;
@@ -405,8 +1032,27 @@ export declare function executeRefillSendsCommand(input?: RefillSendsCommandInpu
405
1032
  intent: RefillSendsIntent;
406
1033
  approvalMode: RefillSendsApprovalMode;
407
1034
  workspaceId: string | null;
1035
+ actionTypes?: ("send_invite" | "send_inmail_closed")[] | undefined;
1036
+ yolo: boolean;
1037
+ senders: string[];
1038
+ senderIds: string[];
1039
+ senderNames: string[];
408
1040
  };
409
1041
  };
410
1042
  };
1043
+ actionTypes?: ("send_invite" | "send_inmail_closed")[] | undefined;
1044
+ command: string;
1045
+ tool: string;
1046
+ promptName: string;
1047
+ workflowPromptName: string;
1048
+ workflowAsset: {
1049
+ subskillName: string;
1050
+ assetPath: string;
1051
+ };
1052
+ yolo: boolean;
1053
+ executionMode: RefillSendsExecutionMode;
1054
+ workspaceId: string | null;
1055
+ workspaceResolution: string;
1056
+ intent: RefillSendsIntent;
411
1057
  }>;
412
1058
  export {};