@sellable/mcp 0.1.618-phase111.20260720061815 → 0.1.618
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/refill-run-client.d.ts +4 -9
- package/dist/refill-run-client.js +0 -12
- package/dist/refill-run-loop.d.ts +0 -31
- package/dist/refill-run-loop.js +214 -196
- package/dist/tools/campaign-message-preparation.d.ts +0 -409
- package/dist/tools/campaign-message-preparation.js +4 -46
- package/dist/tools/campaign-processing.d.ts +40 -614
- package/dist/tools/campaign-processing.js +35 -306
- package/dist/tools/campaign-refill-state.d.ts +3 -174
- package/dist/tools/campaign-refill-state.js +3 -27
- package/dist/tools/evergreen-refill-plan.d.ts +0 -5
- package/dist/tools/evergreen-refill-plan.js +14 -127
- package/dist/tools/prompts.d.ts +0 -25
- package/dist/tools/prompts.js +0 -24
- package/dist/tools/refill-executors.d.ts +45 -37
- package/dist/tools/refill-executors.js +458 -261
- package/dist/tools/refill-sends-v2.d.ts +0 -370
- package/dist/tools/refill-sends-v2.js +18 -78
- package/dist/tools/refill-sends.d.ts +0 -600
- package/dist/tools/refill-sends.js +0 -112
- package/dist/tools/refill-target-plan.d.ts +0 -368
- package/dist/tools/refill-target-plan.js +78 -204
- package/dist/tools/registry.d.ts +321 -1440
- package/dist/tools/registry.js +0 -11
- package/package.json +1 -1
- package/skills/refill-sends/SKILL.md +1 -23
- package/skills/refill-sends-evergreen/SKILL.md +0 -5
- package/skills/refill-sends-evergreen-workflow/SKILL.md +0 -5
- package/skills/refill-sends-evergreen-workflow/core/flow.v1.json +0 -12
- package/skills/refill-sends-v2/SKILL.md +1 -23
- package/skills/refill-sends-v2-workflow/SKILL.md +1 -16
- package/skills/refill-sends-v2-workflow/core/flow.v1.json +0 -20
- package/skills/refill-sends-workflow/SKILL.md +1 -18
- package/skills/refill-sends-workflow/core/flow.v1.json +1 -26
- package/dist/refill-contract.d.ts +0 -157
- package/dist/refill-contract.js +0 -487
- package/skills/research/config.json +0 -9
|
@@ -1,7 +1,3 @@
|
|
|
1
|
-
type ExactRefillRunTarget = {
|
|
2
|
-
campaignId?: string;
|
|
3
|
-
tableId?: string;
|
|
4
|
-
};
|
|
5
1
|
export type RefillRunBlockerResult = {
|
|
6
2
|
blocker: "lease_lost";
|
|
7
3
|
} | {
|
|
@@ -40,7 +36,7 @@ export declare function advanceRefillRunGateRemote(input: {
|
|
|
40
36
|
targetShapeRevision?: string | null;
|
|
41
37
|
doneReason?: string | null;
|
|
42
38
|
progress?: unknown;
|
|
43
|
-
}
|
|
39
|
+
}): Promise<unknown>;
|
|
44
40
|
export declare function recordRunPlanned(input: {
|
|
45
41
|
workspaceId?: string;
|
|
46
42
|
runId: string;
|
|
@@ -48,7 +44,7 @@ export declare function recordRunPlanned(input: {
|
|
|
48
44
|
gate: string;
|
|
49
45
|
gateSeq: number;
|
|
50
46
|
planned: unknown;
|
|
51
|
-
}
|
|
47
|
+
}): Promise<unknown>;
|
|
52
48
|
export declare function recordRunOutcome(input: {
|
|
53
49
|
workspaceId?: string;
|
|
54
50
|
runId: string;
|
|
@@ -56,12 +52,11 @@ export declare function recordRunOutcome(input: {
|
|
|
56
52
|
eventId: string;
|
|
57
53
|
did?: unknown;
|
|
58
54
|
outcome: unknown;
|
|
59
|
-
}
|
|
55
|
+
}): Promise<unknown>;
|
|
60
56
|
export declare function completeRefillRun(input: {
|
|
61
57
|
workspaceId?: string;
|
|
62
58
|
runId: string;
|
|
63
59
|
fence: number;
|
|
64
60
|
doneReason: string;
|
|
65
61
|
progress?: unknown;
|
|
66
|
-
}
|
|
67
|
-
export {};
|
|
62
|
+
}): Promise<unknown>;
|
|
@@ -1,13 +1,5 @@
|
|
|
1
1
|
import { getApi, SellableApiError } from "./api.js";
|
|
2
2
|
const REFILL_RUNS_ROUTE = "/api/v3/mcp/refill-runs";
|
|
3
|
-
function exactTargetBody(input) {
|
|
4
|
-
return input.campaignId?.trim() && input.tableId?.trim()
|
|
5
|
-
? {
|
|
6
|
-
campaignId: input.campaignId.trim(),
|
|
7
|
-
tableId: input.tableId.trim(),
|
|
8
|
-
}
|
|
9
|
-
: {};
|
|
10
|
-
}
|
|
11
3
|
function parseBlockerBody(body) {
|
|
12
4
|
try {
|
|
13
5
|
const parsed = JSON.parse(body);
|
|
@@ -76,7 +68,6 @@ export function advanceRefillRunGateRemote(input) {
|
|
|
76
68
|
targetShapeRevision: input.targetShapeRevision,
|
|
77
69
|
doneReason: input.doneReason,
|
|
78
70
|
progress: input.progress,
|
|
79
|
-
...exactTargetBody(input),
|
|
80
71
|
});
|
|
81
72
|
}
|
|
82
73
|
export function recordRunPlanned(input) {
|
|
@@ -87,7 +78,6 @@ export function recordRunPlanned(input) {
|
|
|
87
78
|
gate: input.gate,
|
|
88
79
|
gateSeq: input.gateSeq,
|
|
89
80
|
planned: input.planned,
|
|
90
|
-
...exactTargetBody(input),
|
|
91
81
|
});
|
|
92
82
|
}
|
|
93
83
|
export function recordRunOutcome(input) {
|
|
@@ -98,7 +88,6 @@ export function recordRunOutcome(input) {
|
|
|
98
88
|
eventId: input.eventId,
|
|
99
89
|
did: input.did,
|
|
100
90
|
outcome: input.outcome,
|
|
101
|
-
...exactTargetBody(input),
|
|
102
91
|
});
|
|
103
92
|
}
|
|
104
93
|
export function completeRefillRun(input) {
|
|
@@ -108,6 +97,5 @@ export function completeRefillRun(input) {
|
|
|
108
97
|
fence: input.fence,
|
|
109
98
|
doneReason: input.doneReason,
|
|
110
99
|
progress: input.progress,
|
|
111
|
-
...exactTargetBody(input),
|
|
112
100
|
});
|
|
113
101
|
}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import type { appendIndexLine, appendJournalEvent, createRunJournal, renderBootstrapSection, renderCrashedAbandonedSection, renderExecutionEventSection, renderPlanSection, renderTerminalSection } from "./refill-journal.js";
|
|
2
2
|
import type { advanceRefillRunGateRemote, completeRefillRun, heartbeatRefillRun, recordRunOutcome, recordRunPlanned, refillRunStatus, startRefillRunRemote } from "./refill-run-client.js";
|
|
3
3
|
import type { getPrepareCampaignMessagesStatus } from "./tools/campaign-message-preparation.js";
|
|
4
|
-
import { type MessageTemplateRevisionV1, type RefillReportingContextV2, type RefillRunHandleV1, type RefillTargetConfigV1 } from "./tools/campaign-processing.js";
|
|
5
4
|
import type { executeOneYoloPrimitive, executeStartCampaignPrimitive, prepareRowSelectorValue, refillPrepareRequestHash, refreshPaidInmailCreditsWithRetry } from "./tools/refill-executors.js";
|
|
6
5
|
export type RefillLoopGate = "g0_bootstrap" | "g1_plan" | "g2_execute" | "g3_verify" | "g4_terminal";
|
|
7
6
|
export interface RefillV2LoopInput {
|
|
@@ -16,10 +15,6 @@ export interface RefillV2LoopInput {
|
|
|
16
15
|
runId: string;
|
|
17
16
|
fence: number;
|
|
18
17
|
};
|
|
19
|
-
runHandle?: RefillRunHandleV1;
|
|
20
|
-
targetConfig?: RefillTargetConfigV1;
|
|
21
|
-
reportingContext?: RefillReportingContextV2;
|
|
22
|
-
messageTemplateRevision?: MessageTemplateRevisionV1;
|
|
23
18
|
approvalMode?: "approve" | "mark_ready";
|
|
24
19
|
dryRun?: boolean;
|
|
25
20
|
agentKeywords?: string[];
|
|
@@ -74,10 +69,6 @@ export interface RefillV2LoopDeps {
|
|
|
74
69
|
targetDate?: string;
|
|
75
70
|
untilDate?: string;
|
|
76
71
|
horizonSendDays?: number;
|
|
77
|
-
targetConfig?: RefillTargetConfigV1;
|
|
78
|
-
runHandle?: RefillRunHandleV1;
|
|
79
|
-
reportingContext?: RefillReportingContextV2;
|
|
80
|
-
messageTemplateRevision?: MessageTemplateRevisionV1;
|
|
81
72
|
runState?: Record<string, unknown>;
|
|
82
73
|
journal?: boolean;
|
|
83
74
|
}) => Promise<Record<string, unknown>>;
|
|
@@ -104,9 +95,6 @@ export type RefillV2LoopResult = {
|
|
|
104
95
|
gate: RefillLoopGate;
|
|
105
96
|
guidance: string;
|
|
106
97
|
journalPath?: string | null;
|
|
107
|
-
targetConfig?: RefillTargetConfigV1;
|
|
108
|
-
runHandle?: RefillRunHandleV1;
|
|
109
|
-
refillReporting?: Record<string, unknown>;
|
|
110
98
|
} | {
|
|
111
99
|
status: "blocked";
|
|
112
100
|
blocker: string;
|
|
@@ -117,9 +105,6 @@ export type RefillV2LoopResult = {
|
|
|
117
105
|
holderRunId?: string;
|
|
118
106
|
report?: Record<string, unknown>;
|
|
119
107
|
journalPath?: string | null;
|
|
120
|
-
targetConfig?: RefillTargetConfigV1;
|
|
121
|
-
runHandle?: RefillRunHandleV1;
|
|
122
|
-
refillReporting?: Record<string, unknown>;
|
|
123
108
|
} | {
|
|
124
109
|
status: "terminal";
|
|
125
110
|
doneReason: string;
|
|
@@ -127,21 +112,5 @@ export type RefillV2LoopResult = {
|
|
|
127
112
|
runId: string;
|
|
128
113
|
guidance?: string;
|
|
129
114
|
journalPath?: string | null;
|
|
130
|
-
targetConfig?: RefillTargetConfigV1;
|
|
131
|
-
runHandle?: RefillRunHandleV1;
|
|
132
|
-
refillReporting?: Record<string, unknown>;
|
|
133
|
-
};
|
|
134
|
-
export declare function packetCoherenceFailure(plan: Record<string, unknown>): string | null;
|
|
135
|
-
export declare function terminalProjection(value: {
|
|
136
|
-
targetConfig?: unknown;
|
|
137
|
-
runHandle?: unknown;
|
|
138
|
-
refillReporting?: unknown;
|
|
139
|
-
reporting?: unknown;
|
|
140
|
-
lastOutcome?: unknown;
|
|
141
|
-
}): {
|
|
142
|
-
messageTemplateRevisionOutcome?: {} | null | undefined;
|
|
143
|
-
refillReporting?: Record<string, unknown> | undefined;
|
|
144
|
-
runHandle?: RefillRunHandleV1 | undefined;
|
|
145
|
-
targetConfig?: RefillTargetConfigV1 | undefined;
|
|
146
115
|
};
|
|
147
116
|
export declare function runRefillV2Loop(input: RefillV2LoopInput, deps: RefillV2LoopDeps): Promise<RefillV2LoopResult>;
|