@sellable/mcp 0.1.311 → 0.1.313
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/README.md +27 -10
- package/dist/index-dev.js +0 -0
- package/dist/index.js +0 -0
- package/dist/tools/bootstrap.js +1 -1
- package/dist/tools/campaign-message-preparation.d.ts +6 -0
- package/dist/tools/campaign-message-preparation.js +6 -1
- package/dist/tools/model-quality.d.ts +2 -0
- package/dist/tools/model-quality.js +37 -0
- package/dist/tools/prompts.js +1 -1
- package/dist/tools/registry.d.ts +5 -0
- package/dist/update-check.js +4 -2
- package/package.json +1 -1
- package/skills/create-campaign/SKILL.md +38 -22
- package/skills/create-campaign/core/model-quality.json +1 -0
- package/skills/create-campaign-v2/SKILL.md +1 -1
- package/skills/create-campaign-v2/core/policy.md +6 -3
- package/skills/create-campaign-v2/references/final-handoff-contract.md +9 -2
- package/skills/research/config.json +0 -9
package/README.md
CHANGED
|
@@ -66,7 +66,7 @@ surfaces that are not posts or campaigns.
|
|
|
66
66
|
For Claude Code and Codex CLI:
|
|
67
67
|
|
|
68
68
|
```bash
|
|
69
|
-
|
|
69
|
+
curl -fsSL "https://app.sellable.dev/api/v2/cli/install" | sh
|
|
70
70
|
```
|
|
71
71
|
|
|
72
72
|
Agent-readable install instructions are available at:
|
|
@@ -78,8 +78,13 @@ https://app.sellable.dev/agent-install.txt
|
|
|
78
78
|
The reviewable curl installer is:
|
|
79
79
|
|
|
80
80
|
```bash
|
|
81
|
-
curl -fsSL "https://app.sellable.dev/api/v2/cli/install"
|
|
82
|
-
|
|
81
|
+
curl -fsSL "https://app.sellable.dev/api/v2/cli/install" | sh
|
|
82
|
+
```
|
|
83
|
+
|
|
84
|
+
Windows users can use the native PowerShell installer:
|
|
85
|
+
|
|
86
|
+
```powershell
|
|
87
|
+
iwr "https://app.sellable.dev/api/v2/cli/install.ps1" | iex
|
|
83
88
|
```
|
|
84
89
|
|
|
85
90
|
Phase 112 v1 uses package stdio MCP through `@sellable/mcp`. Hosted HTTP
|
|
@@ -88,7 +93,15 @@ MCP is a future/advanced mode until the hosted endpoint exists.
|
|
|
88
93
|
Package-mode installs launch `@sellable/mcp@latest`, so each fresh host MCP
|
|
89
94
|
start resolves the newest stable npm release. The MCP server also runs a cached
|
|
90
95
|
startup/auth update check and tells the agent to run
|
|
91
|
-
`
|
|
96
|
+
`curl -fsSL "https://app.sellable.dev/api/v2/cli/install" | sh` when the
|
|
97
|
+
installed runtime is behind npm.
|
|
98
|
+
|
|
99
|
+
For CI/scripted installs, set `SELLABLE_TOKEN` and `SELLABLE_WORKSPACE_ID`
|
|
100
|
+
before running the curl installer. The public path remains:
|
|
101
|
+
|
|
102
|
+
```bash
|
|
103
|
+
curl -fsSL "https://app.sellable.dev/api/v2/cli/install" | sh
|
|
104
|
+
```
|
|
92
105
|
|
|
93
106
|
### Publishing `@sellable/mcp`
|
|
94
107
|
|
|
@@ -110,12 +123,16 @@ also supported.
|
|
|
110
123
|
2. Click "Generate Token"
|
|
111
124
|
3. Copy the token (starts with `skt_live_`)
|
|
112
125
|
|
|
113
|
-
### 3. Claude Setup
|
|
126
|
+
### 3. Claude Setup Fallback
|
|
127
|
+
|
|
128
|
+
The public installer should handle Claude setup. Use this manual path only for
|
|
129
|
+
troubleshooting when Node/npm/npx are already known-good and the installer route
|
|
130
|
+
is unavailable.
|
|
114
131
|
|
|
115
|
-
Install MCP server:
|
|
132
|
+
Install MCP server manually:
|
|
116
133
|
|
|
117
134
|
```bash
|
|
118
|
-
claude mcp add --transport stdio sellable --
|
|
135
|
+
claude mcp add --transport stdio sellable -- npm exec --yes --package @sellable/mcp@latest -- sellable-mcp
|
|
119
136
|
```
|
|
120
137
|
|
|
121
138
|
Create auth config at `~/.sellable/config.json`:
|
|
@@ -135,15 +152,15 @@ The token is provided when you generate it. Use `list_workspaces` +
|
|
|
135
152
|
For customer/package installs, use the public installer:
|
|
136
153
|
|
|
137
154
|
```bash
|
|
138
|
-
|
|
155
|
+
curl -fsSL "https://app.sellable.dev/api/v2/cli/install" | sh
|
|
139
156
|
```
|
|
140
157
|
|
|
141
158
|
If you already have `~/.sellable/config.json`, rerun/verify without rewriting
|
|
142
159
|
auth:
|
|
143
160
|
|
|
144
161
|
```bash
|
|
145
|
-
|
|
146
|
-
sellable --verify-only --host codex
|
|
162
|
+
curl -fsSL "https://app.sellable.dev/api/v2/cli/install" | sh
|
|
163
|
+
sellable --verify-only --host codex --json
|
|
147
164
|
```
|
|
148
165
|
|
|
149
166
|
The installer does the full local setup:
|
package/dist/index-dev.js
CHANGED
|
File without changes
|
package/dist/index.js
CHANGED
|
File without changes
|
package/dist/tools/bootstrap.js
CHANGED
|
@@ -12,7 +12,7 @@ function toGuidance(check, message) {
|
|
|
12
12
|
return "Run get_auth_status and fix auth/workspace setup before continuing.";
|
|
13
13
|
}
|
|
14
14
|
if (check === "update") {
|
|
15
|
-
return
|
|
15
|
+
return 'Run curl -fsSL "https://app.sellable.dev/api/v2/cli/install" | sh, then restart Claude Code/Codex so Sellable reloads.';
|
|
16
16
|
}
|
|
17
17
|
if (check === "framework") {
|
|
18
18
|
return "Fix framework files and rerun bootstrap_create_campaign.";
|
|
@@ -11,6 +11,7 @@ type StartPrepareMessagesInput = PrepareMessagesBaseInput & {
|
|
|
11
11
|
batchSize?: number;
|
|
12
12
|
approvalMode?: ApprovalMode;
|
|
13
13
|
autoContinue?: boolean;
|
|
14
|
+
disableLowPassRateStop?: boolean;
|
|
14
15
|
};
|
|
15
16
|
type StatusPrepareMessagesInput = PrepareMessagesBaseInput;
|
|
16
17
|
type CancelPrepareMessagesInput = PrepareMessagesBaseInput;
|
|
@@ -52,6 +53,10 @@ export declare const campaignMessagePreparationToolDefinitions: ({
|
|
|
52
53
|
autoContinue: {
|
|
53
54
|
type: string;
|
|
54
55
|
};
|
|
56
|
+
disableLowPassRateStop: {
|
|
57
|
+
type: string;
|
|
58
|
+
description: string;
|
|
59
|
+
};
|
|
55
60
|
jobId?: undefined;
|
|
56
61
|
};
|
|
57
62
|
required: string[];
|
|
@@ -78,6 +83,7 @@ export declare const campaignMessagePreparationToolDefinitions: ({
|
|
|
78
83
|
batchSize?: undefined;
|
|
79
84
|
approvalMode?: undefined;
|
|
80
85
|
autoContinue?: undefined;
|
|
86
|
+
disableLowPassRateStop?: undefined;
|
|
81
87
|
};
|
|
82
88
|
additionalProperties: boolean;
|
|
83
89
|
required?: undefined;
|
|
@@ -6,7 +6,7 @@ async function postPrepareMessages(body) {
|
|
|
6
6
|
export const campaignMessagePreparationToolDefinitions = [
|
|
7
7
|
{
|
|
8
8
|
name: "start_campaign_message_preparation",
|
|
9
|
-
description: 'Start a bounded campaign message preparation job for a CampaignOffer campaignId. Use this after lead/message approval
|
|
9
|
+
description: 'Start a bounded campaign message preparation job for a CampaignOffer campaignId. Use this after lead/message approval when the user asks to "fill up", "load", "prepare", or "schedule" sends for attached senders. It never launches the campaign. The job queues pending Enrich Prospect cells first, lets ICP/rubric and Generate Message cascade, then marks ready or approves only the bounded cohort. Omit maxRowsToCheck and batchSize for the adaptive default: calibrate on at least 100 actually-enriched rows, estimate the row budget from observed rubric/pass yield, cap rows at 2500, then use batches up to 250 once the sample is strong enough. Do not interpret checkedRows as enriched rows; use progress.enrichedRows, needsEnrichRows, activeCellCount, preparedMessages, and stopReason.',
|
|
10
10
|
inputSchema: {
|
|
11
11
|
type: "object",
|
|
12
12
|
properties: {
|
|
@@ -34,6 +34,10 @@ export const campaignMessagePreparationToolDefinitions = [
|
|
|
34
34
|
description: "Defaults to mark_ready. Use approve only when the user explicitly asks to flip Approved cells.",
|
|
35
35
|
},
|
|
36
36
|
autoContinue: { type: "boolean" },
|
|
37
|
+
disableLowPassRateStop: {
|
|
38
|
+
type: "boolean",
|
|
39
|
+
description: "Operator override for explicit fill/exhaust requests. When true, keep processing eligible rows even if the enriched sample pass rate is low. Still bounded by targetPreparedMessages and maxRowsToCheck.",
|
|
40
|
+
},
|
|
37
41
|
},
|
|
38
42
|
required: ["campaignId"],
|
|
39
43
|
additionalProperties: false,
|
|
@@ -76,6 +80,7 @@ export function startPrepareCampaignMessages(input) {
|
|
|
76
80
|
batchSize: input.batchSize,
|
|
77
81
|
approvalMode: input.approvalMode,
|
|
78
82
|
autoContinue: input.autoContinue,
|
|
83
|
+
disableLowPassRateStop: input.disableLowPassRateStop,
|
|
79
84
|
});
|
|
80
85
|
}
|
|
81
86
|
export function getPrepareCampaignMessagesStatus(input) {
|
|
@@ -14,6 +14,7 @@ export type CampaignModelQualityResult = {
|
|
|
14
14
|
recommendedReasoningEffort: string;
|
|
15
15
|
minimumSummary: string;
|
|
16
16
|
confirmationRequired: boolean;
|
|
17
|
+
metadataStale: boolean;
|
|
17
18
|
message: string;
|
|
18
19
|
};
|
|
19
20
|
export type CampaignModelQualityHostConfig = {
|
|
@@ -33,6 +34,7 @@ export type CampaignModelQualityConfig = {
|
|
|
33
34
|
};
|
|
34
35
|
warningCopy: {
|
|
35
36
|
ok: string;
|
|
37
|
+
staleCodexMetadata: string;
|
|
36
38
|
unknownSettings: string;
|
|
37
39
|
belowMinimum: string;
|
|
38
40
|
};
|
|
@@ -37,6 +37,7 @@ const DEFAULT_MODEL_QUALITY_CONFIG = {
|
|
|
37
37
|
},
|
|
38
38
|
warningCopy: {
|
|
39
39
|
ok: "Campaign model settings meet the configured minimum: {minimumSummary}.",
|
|
40
|
+
staleCodexMetadata: "Codex host metadata appears stale: it can report GPT-5/default or GPT-5/high even when the UI is set to GPT 5.5 Extra High. Treating this as acceptable; continue without asking the user to switch.",
|
|
40
41
|
unknownSettings: "Model settings were not provided by the host. Best campaigns need at least {minimumSummary}. Confirm the user is on one of those settings, or ask them to switch before continuing.",
|
|
41
42
|
belowMinimum: "Best campaigns need at least {minimumSummary}. Current settings look below that: {currentSettings}. Please switch before continuing, or explicitly say to continue anyway.",
|
|
42
43
|
},
|
|
@@ -146,6 +147,22 @@ function findAcceptedHostConfig(host, model, config) {
|
|
|
146
147
|
: [[host, config.hosts[host]]];
|
|
147
148
|
return candidates.find(([, hostConfig]) => modelMeetsMinimum(model, hostConfig));
|
|
148
149
|
}
|
|
150
|
+
function looksLikeCodexStaleMetadata(host, model, reasoningEffort, config) {
|
|
151
|
+
if (host !== "codex")
|
|
152
|
+
return false;
|
|
153
|
+
if (!model || !reasoningEffort)
|
|
154
|
+
return false;
|
|
155
|
+
const normalizedModel = normalize(model).replace(/[_-]+/g, " ");
|
|
156
|
+
const normalizedReasoning = normalizeReasoning(reasoningEffort);
|
|
157
|
+
if (!normalizedModel.includes("gpt"))
|
|
158
|
+
return false;
|
|
159
|
+
const versions = extractModelVersions(normalizedModel);
|
|
160
|
+
const looksLikeBaseGpt5 = versions.some((version) => version === "5" || version === "5.0");
|
|
161
|
+
if (!looksLikeBaseGpt5)
|
|
162
|
+
return false;
|
|
163
|
+
return (["default", "auto", "standard"].includes(normalizedReasoning) ||
|
|
164
|
+
acceptsReasoning(reasoningEffort, config.hosts.codex));
|
|
165
|
+
}
|
|
149
166
|
export function evaluateCampaignModelQuality(input = {}) {
|
|
150
167
|
const config = getCampaignModelQualityConfig();
|
|
151
168
|
const host = normalizeHost([input.host, input.model].filter(Boolean).join(" "));
|
|
@@ -166,6 +183,7 @@ export function evaluateCampaignModelQuality(input = {}) {
|
|
|
166
183
|
recommendedReasoningEffort,
|
|
167
184
|
minimumSummary,
|
|
168
185
|
confirmationRequired: true,
|
|
186
|
+
metadataStale: false,
|
|
169
187
|
message: formatCopy(config.warningCopy.unknownSettings, {
|
|
170
188
|
minimumSummary,
|
|
171
189
|
currentSettings: "unknown",
|
|
@@ -185,12 +203,30 @@ export function evaluateCampaignModelQuality(input = {}) {
|
|
|
185
203
|
recommendedReasoningEffort,
|
|
186
204
|
minimumSummary,
|
|
187
205
|
confirmationRequired: false,
|
|
206
|
+
metadataStale: false,
|
|
188
207
|
message: formatCopy(config.warningCopy.ok, {
|
|
189
208
|
minimumSummary,
|
|
190
209
|
currentSettings: "current settings",
|
|
191
210
|
}),
|
|
192
211
|
};
|
|
193
212
|
}
|
|
213
|
+
if (looksLikeCodexStaleMetadata(host, model, reasoningEffort, config)) {
|
|
214
|
+
return {
|
|
215
|
+
status: "ok",
|
|
216
|
+
host,
|
|
217
|
+
model,
|
|
218
|
+
reasoningEffort,
|
|
219
|
+
recommendedModel,
|
|
220
|
+
recommendedReasoningEffort,
|
|
221
|
+
minimumSummary,
|
|
222
|
+
confirmationRequired: false,
|
|
223
|
+
metadataStale: true,
|
|
224
|
+
message: formatCopy(config.warningCopy.staleCodexMetadata, {
|
|
225
|
+
minimumSummary,
|
|
226
|
+
currentSettings: "stale Codex host metadata",
|
|
227
|
+
}),
|
|
228
|
+
};
|
|
229
|
+
}
|
|
194
230
|
const currentSettings = [
|
|
195
231
|
model ? `model "${model}"` : "unknown model",
|
|
196
232
|
reasoningEffort ? `reasoning "${reasoningEffort}"` : "unknown reasoning",
|
|
@@ -204,6 +240,7 @@ export function evaluateCampaignModelQuality(input = {}) {
|
|
|
204
240
|
recommendedReasoningEffort,
|
|
205
241
|
minimumSummary,
|
|
206
242
|
confirmationRequired: true,
|
|
243
|
+
metadataStale: false,
|
|
207
244
|
message: formatCopy(config.warningCopy.belowMinimum, {
|
|
208
245
|
minimumSummary,
|
|
209
246
|
currentSettings,
|
package/dist/tools/prompts.js
CHANGED
|
@@ -367,7 +367,7 @@ export function getPostFindLeadsScoutRegistry() {
|
|
|
367
367
|
codex: 'After confirm_lead_list copies source rows and the initial campaign-table execution slice exists, ask the filter-choice question immediately. Do not spawn anything before that question. After the answer, launch only Message Drafting. The filter-choice answer is the post-import user gate for this single worker; do not ask another question about starting it in step-wise or YOLO mode. The registry lookup is not a launch: after get_post_find_leads_scout_registry, immediately invoke Task/spawn_agent or the host background-agent mechanism before loading filter-leads.md, before saving rubrics, and before treating skip-filters as ready for message review. Both choices route through this kickoff; do not let filters_skipped jump straight from filter-choice to message-generation. If filters are chosen, the parent stays on Filter Rules and drafts/saves rubrics with MCP tools while Message Drafting runs in the background. If filters are skipped, move to Messages/message review only after Message Drafting has started or is ready; update_campaign(currentStep=messages) is not proof of launch. If the named Message Drafting custom agent is unavailable, spawn a generic gpt-5.5 xhigh Message Drafting background agent with the same lean campaign/table basis. When the background worker starts, persist workerDetails.messageDraftBuilder with statusSource "branch", status "branch-running", runId, startedAt, updatedAt, basisToken when known, and basis containing campaignId, selectedLeadListId, workflowTableId, filterChoice, and reviewBatchRowHash or reviewBatchRowIds; workerStatuses.messageDraftBuilder may be "running" as a simple badge only. Never put rich proof under workerStatuses and never use workerStatuses.messageDrafting. If no background-agent tool is callable, start the same full message branch inline before filter drafting or before skip-filter message review, record workerDetails.messageDraftBuilder with statusSource "parent-thread-fallback" and status "fallback-active", and require the same live context, prompt, assets, and validation gate before message review; do not wait until filters are saved and then call the registry.',
|
|
368
368
|
claude: "After confirm_lead_list copies source rows and the initial campaign-table execution slice exists, ask the filter-choice question immediately. Do not invoke any Task/Agent before that question. After the answer, invoke only Message Drafting. If filters are chosen, parent drafts/saves rubrics with MCP tools while Message Drafting runs, asks filter approval, then joins Message Drafting. If filters are skipped, invoke only Message Drafting and move to Messages/message review.",
|
|
369
369
|
parentThreadRule: 'Named agents are optional acceleration, but message drafting is not optional. The only normal background worker is Message Drafting. The filter-choice answer is the campaign-scoped go-ahead for this single post-import worker; do not ask another question to start it in step-wise or YOLO mode. If a named agent is unavailable, use a generic gpt-5.5 xhigh Message Drafting background agent. source work and filter work stay in the parent thread with MCP tools. If post-find-leads-message-scout is available, run it as the background Message Draft Builder after the filter-choice answer. The registry lookup is not a launch: get_post_find_leads_scout_registry only identifies the worker, and Message Drafting counts as started only after Task/spawn_agent or the host background-agent tool is invoked, or after the parent begins the same full message branch inline because no background-agent tool is callable. This launch must happen before loading filter-leads.md, save_rubrics, filter approval, or skip-filter message review; currentStep=messages is not proof of launch. If post-find-leads-message-scout is absent, do not customer-surface install status. Do not silently treat message drafting as started; the main thread must either launch the background worker or execute the same message branch from CampaignOffer state, selected source state, workflowTableId, and initial campaign-table execution slice rows. For a spawned worker, record workerDetails.messageDraftBuilder with statusSource branch / status branch-running, runId, startedAt, updatedAt, and basis containing campaignId, selectedLeadListId, workflowTableId, filterChoice, and reviewBatchRowHash or reviewBatchRowIds. workerStatuses.messageDraftBuilder is optional simple badge text only ("running", "ready", "blocked", "idle"); never put runId/statusSource/basis under workerStatuses and never use workerStatuses.messageDrafting. If no background-agent tool is callable, start that same full message branch inline before filter drafting or before skip-filter message review, record workerDetails.messageDraftBuilder with statusSource parent-thread-fallback / status fallback-active then ready, and require the same live context, prompt, assets, and validation gate before message review; do not report that as a background worker failure. If neither branch nor inline fallback can run, return blocked/retry-needed; do not wait until filters are saved and then call the registry. The Message Drafting handoff must be lean. Do not paste copied row counts, brief hashes, review-batch hashes, full reviewBatchRowIds, broad row data, or local debug artifacts into the spawn prompt. Local markdown/json files are not normal-path inputs. The filter-choice question is the first post-import user gate; do not load post-lead registries or filter references before it. Message drafting starts after the filter-choice answer, must load get_subskill_prompt({ subskillName: "generate-messages" }), and must load every required message asset named by generate-messages Mode 0 through get_subskill_asset before drafting. Reference Asset Loading means loading the required pre-draft reference pack before drafting; return blocked/retry-needed if required assets cannot be loaded; load ai-tells.md because it is never optional. The branch or parent-thread fallback loads the full generate-messages prompt and every referenced asset through get_subskill_asset. After generating/revising the candidate and before returning ready, must load get_subskill_prompt({ subskillName: "create-campaign-v2-validation" }) as the final internal validation gate, must read live campaign table state through scoped MCP/product tools, and must reject mismatched selectedLeadListId/workflowTableId/campaign/workspace input. Do not block when filters were chosen but leadScoringRubrics are not yet visible in the branch read; the parent owns save_rubrics and filter approval in parallel, so Message Drafting should return status ready with basisStatus usable_initial when campaign/list/table identity and the non-empty execution slice match. Do not use any alternate, local-artifact, or examples-only message prompt. User copy feedback, message QA, or rewrite requests before approve-message must be routed back to Message Drafting with the current recommendation, lean campaign/table basis, and latest user text; the parent must not rewrite or QA the template from memory and must not call update_campaign_brief before approve-message. The worker validates internally and returns only templateRecommendation, tokenFillRules, renderedGoodSample, status, approveOrReviseRecommendation, validationStatus, outputAt, outputHash, and blocked/retry detail. Do not render renderedFallbackSample, risk notes, or a qaReceipt on the normal happy path. On the filter path, save_rubrics keeps the browser on Filter Rules after save_rubrics so the user can approve the saved criteria; after saved-filter approval, move to Filter Leads with currentStep=apply-icp-rubric whether Message Drafting is ready or still running. Wait there for message approval. Enrichment, filtering, Generate Message cells, sender setup, sequence attach, and launch wait for template approval on the Use Template path. On the skip path, move to Messages/message review after Message Drafting has started or is ready and wait for message approval before enrichment or Settings. Do not render message review from checklist or shortcut instructions; message review requires a messageDraftRecommendation whose basis proves the generate-messages prompt, required message assets, and validation gate ran for the current campaign/table execution slice. Do not automatically rerun Message Drafting after filters/enrichment finish; show the initial draft by default and offer an enriched rewrite only with explicit user opt-in. Handoff and recommendation output are Markdown with labeled fields, not raw JSON.',
|
|
370
|
-
prepareMessagesRule: 'Default create-campaign stays on the existing reviewBatchLimit:15 first campaign-table execution slice. Only call start_campaign_message_preparation when the user explicitly asks for more prepared messages
|
|
370
|
+
prepareMessagesRule: 'Default create-campaign stays on the existing reviewBatchLimit:15 first campaign-table execution slice. Only call start_campaign_message_preparation when the user explicitly asks for more prepared messages, a send count, or to fill up/load sends for senders. Treat "fill up/load sends" as capacity-fill preparation: calculate the bounded target from sender capacity when needed, then let the job queue pending Enrich Prospect cells first, wait for ICP/rubric and Generate Message to cascade, and mark ready or approve only the target cohort. Do not interpret checkedRows as enriched rows; it is only the table cursor. Poll get_campaign_message_preparation_status and summarize enrichedRows, needsEnrichRows, activeCellCount, passed/prepared/approved count, target, estimated row budget remaining, and stopReason. For "prepare/generate X messages", set targetPreparedMessages:X, omit maxRowsToCheck so the backend calibrates on at least 100 actually-enriched rows, estimates the row budget from observed rubric/pass yield, caps maxRowsToCheck at 2500, and use approvalMode:mark_ready. After the calibration sample settles, the backend adapts later batches up to 250 rows while recalculating yield. For "approve X messages", use approvalMode:approve but still do not launch. For "schedule X sends" or "fill sender sends", use approvalMode:approve to approve exactly the bounded X-message cohort during preparation, then continue through sender, sequence, and final launch greenlight; final launch must verify that bounded cohort and must not broad approve-all. campaignId is CampaignOffer.id. If the user asks to stop preparation, the target is wrong, or status shows the wrong campaign/table, call cancel_campaign_message_preparation; otherwise do not cancel a healthy prepare run. cancel_campaign_message_preparation cancels the same pending workflow-table cells as the UI Cancel Pending Cells action. Low-level selectors are diagnostics and recovery only for this lane. start_campaign remains forbidden until final launch greenlight.',
|
|
371
371
|
},
|
|
372
372
|
};
|
|
373
373
|
}
|
package/dist/tools/registry.d.ts
CHANGED
|
@@ -508,6 +508,10 @@ export declare const allTools: ({
|
|
|
508
508
|
autoContinue: {
|
|
509
509
|
type: string;
|
|
510
510
|
};
|
|
511
|
+
disableLowPassRateStop: {
|
|
512
|
+
type: string;
|
|
513
|
+
description: string;
|
|
514
|
+
};
|
|
511
515
|
jobId?: undefined;
|
|
512
516
|
};
|
|
513
517
|
required: string[];
|
|
@@ -534,6 +538,7 @@ export declare const allTools: ({
|
|
|
534
538
|
batchSize?: undefined;
|
|
535
539
|
approvalMode?: undefined;
|
|
536
540
|
autoContinue?: undefined;
|
|
541
|
+
disableLowPassRateStop?: undefined;
|
|
537
542
|
};
|
|
538
543
|
additionalProperties: boolean;
|
|
539
544
|
required?: undefined;
|
package/dist/update-check.js
CHANGED
|
@@ -159,7 +159,7 @@ function buildNotice(mcp, installer) {
|
|
|
159
159
|
const installerVersion = installer.latestVersion
|
|
160
160
|
? ` The latest installer is ${installer.latestVersion}.`
|
|
161
161
|
: "";
|
|
162
|
-
return `Sellable update available: ${versions}. Run:
|
|
162
|
+
return `Sellable update available: ${versions}. Run: curl -fsSL "https://app.sellable.dev/api/v2/cli/install" | sh.${installerVersion}`;
|
|
163
163
|
}
|
|
164
164
|
export async function checkForUpdates(options) {
|
|
165
165
|
const currentVersion = readCurrentVersion();
|
|
@@ -212,7 +212,9 @@ export async function checkForUpdates(options) {
|
|
|
212
212
|
installer,
|
|
213
213
|
updateAvailable: mcp.outdated,
|
|
214
214
|
blocking: false,
|
|
215
|
-
guidance: notice
|
|
215
|
+
guidance: notice
|
|
216
|
+
? 'Run curl -fsSL "https://app.sellable.dev/api/v2/cli/install" | sh'
|
|
217
|
+
: null,
|
|
216
218
|
_userNotice: notice,
|
|
217
219
|
};
|
|
218
220
|
writeCache(status);
|
package/package.json
CHANGED
|
@@ -100,20 +100,25 @@ The default path stays the existing first campaign-table execution slice:
|
|
|
100
100
|
review the normal `reviewBatchLimit:15`, approve reviewed draft rows, then move
|
|
101
101
|
to Settings/sequence/final greenlight. Only call
|
|
102
102
|
`start_campaign_message_preparation` when the user explicitly asks for more
|
|
103
|
-
prepared messages
|
|
103
|
+
prepared messages, a send count, or language like "fill up/load sends for these
|
|
104
|
+
senders." Treat those requests as capacity-fill preparation: calculate the
|
|
105
|
+
bounded target from sender capacity when needed, then let the preparation job
|
|
106
|
+
queue pending `Enrich Prospect` cells, wait for ICP/rubric and Generate Message
|
|
107
|
+
cells to cascade, and mark ready or approve only the target cohort. Do not
|
|
108
|
+
count `checkedRows` as enriched rows; it is only the table cursor. Use
|
|
109
|
+
`progress.enrichedRows`, `progress.needsEnrichRows`, `activeCellCount`,
|
|
110
|
+
`preparedMessages`, `approvedRows`, target, estimated row budget remaining, and
|
|
111
|
+
`stopReason` to explain progress. If the user says "prepare/generate X
|
|
104
112
|
messages", set `targetPreparedMessages:X`, omit `maxRowsToCheck`, and keep
|
|
105
|
-
`approvalMode:"mark_ready"`. The backend calibrates on at least 100
|
|
106
|
-
estimates the row budget from observed rubric/pass yield, caps
|
|
113
|
+
`approvalMode:"mark_ready"`. The backend calibrates on at least 100 actually
|
|
114
|
+
enriched rows, estimates the row budget from observed rubric/pass yield, caps
|
|
107
115
|
`maxRowsToCheck` at 2500, then adapts later batches up to 250 rows while
|
|
108
|
-
recalculating yield.
|
|
109
|
-
`get_campaign_message_preparation_status` for preparation-job status: checked
|
|
110
|
-
rows, passed/prepared/approved count, target, estimated row budget remaining,
|
|
111
|
-
and stop reason. If the user says "approve X messages", use
|
|
116
|
+
recalculating yield. If the user says "approve X messages", use
|
|
112
117
|
`approvalMode:"approve"` but still do not launch. If the user says "schedule X
|
|
113
|
-
sends", use `approvalMode:"approve"` to approve
|
|
114
|
-
cohort during preparation, then continue through
|
|
115
|
-
launch greenlight; the launch path must verify that
|
|
116
|
-
broad approve-all.
|
|
118
|
+
sends" or asks to fill sender sends, use `approvalMode:"approve"` to approve
|
|
119
|
+
exactly the bounded X-message cohort during preparation, then continue through
|
|
120
|
+
sender, sequence, and final launch greenlight; the launch path must verify that
|
|
121
|
+
bounded cohort and must not broad approve-all.
|
|
117
122
|
When approving reviewed draft rows in the campaign table, resolve the actual
|
|
118
123
|
visible `Approved` cells with `select_campaign_cells({ columnRole: "approved",
|
|
119
124
|
rowSelector: { type: "rowIds", rowIds } })` and `update_cell` those returned
|
|
@@ -174,11 +179,17 @@ person/company this campaign is for, then I’ll turn that into a campaign brief
|
|
|
174
179
|
before we move into lead sourcing.
|
|
175
180
|
```
|
|
176
181
|
|
|
177
|
-
Exception: if `bootstrap_create_campaign.modelQuality.status === "warn"
|
|
178
|
-
|
|
182
|
+
Exception: if `bootstrap_create_campaign.modelQuality.status === "warn"` and
|
|
183
|
+
`bootstrap_create_campaign.modelQuality.metadataStale !== true`, the first
|
|
184
|
+
visible campaign message must be the model-quality warning from
|
|
179
185
|
`modelQuality.message`. Ask the user to switch to the configured minimum model
|
|
180
186
|
or explicitly continue anyway before identity setup, research, lead filtering,
|
|
181
|
-
message generation, or launch review.
|
|
187
|
+
message generation, or launch review. If `metadataStale === true`, continue
|
|
188
|
+
normally and do not ask the user to switch.
|
|
189
|
+
|
|
190
|
+
If `bootstrap_create_campaign.modelQuality.metadataStale === true`, continue
|
|
191
|
+
normally. Do not ask the user to switch models; this is an accepted Codex host
|
|
192
|
+
metadata mismatch.
|
|
182
193
|
|
|
183
194
|
If a linked/local skill file is stale or missing, silently use the installed
|
|
184
195
|
`sellable@sellable` plugin copy. Do not tell the user about the stale link,
|
|
@@ -807,12 +818,15 @@ there.
|
|
|
807
818
|
MCP tool access is required. First call `mcp__sellable__get_auth_status({})`
|
|
808
819
|
directly. If that tool is unavailable, stop and say this is a Codex
|
|
809
820
|
install/reload problem, not a campaign problem. Tell the user to
|
|
810
|
-
run `
|
|
811
|
-
Codex Desktop plugin, and Sellable skill bundle are
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
`
|
|
821
|
+
run `curl -fsSL "https://app.sellable.dev/api/v2/cli/install" | sh` so the
|
|
822
|
+
packaged MCP server, Codex Desktop plugin, and Sellable skill bundle are
|
|
823
|
+
installed. If they want an agent-readable checklist, tell them:
|
|
824
|
+
`Install Sellable CLI and skills using https://app.sellable.dev/agent-install.txt`.
|
|
825
|
+
For CLI verification, tell them to run
|
|
826
|
+
`sellable --verify-only --host all --json --artifact "$HOME/.local/sellable/app-sellable-dev/installer/.last-verify.json"`.
|
|
827
|
+
After that, they must fully quit and reopen Codex Desktop before starting a new
|
|
828
|
+
thread. Do not use `scripts/mcp/sellable-tool-call.mjs`, `npm run`, `node`, or
|
|
829
|
+
any local harness as a fallback for this interactive skill.
|
|
816
830
|
Do not mention prompt loading, local skill files, missing linked versions,
|
|
817
831
|
plugin cache paths, MCP namespaces, or runbooks in customer-facing progress
|
|
818
832
|
updates.
|
|
@@ -927,8 +941,10 @@ updates.
|
|
|
927
941
|
6. Call `mcp__sellable__bootstrap_create_campaign({ flowVersion: "v2", campaignId?, host?, model?, reasoningEffort? })`.
|
|
928
942
|
Pass the current host, model, and reasoning when the host exposes them.
|
|
929
943
|
7. If `safeToProceed !== true`, stop and show `blockingErrors` + `nextStep`.
|
|
930
|
-
8. If `modelQuality.status === "warn"
|
|
931
|
-
setup/research and wait for the user
|
|
944
|
+
8. If `modelQuality.status === "warn"` and `modelQuality.metadataStale !== true`,
|
|
945
|
+
show `modelQuality.message` before any setup/research and wait for the user
|
|
946
|
+
to switch or explicitly continue. If `metadataStale === true`, continue
|
|
947
|
+
normally and do not tell the user to switch.
|
|
932
948
|
|
|
933
949
|
## Execute Workflow
|
|
934
950
|
|
|
@@ -22,6 +22,7 @@
|
|
|
22
22
|
},
|
|
23
23
|
"warningCopy": {
|
|
24
24
|
"ok": "Campaign model settings meet the configured minimum: {minimumSummary}.",
|
|
25
|
+
"staleCodexMetadata": "Codex host metadata appears stale: it can report GPT-5/default or GPT-5/high even when the UI is set to GPT 5.5 Extra High. Treating this as acceptable; continue without asking the user to switch.",
|
|
25
26
|
"unknownSettings": "Model settings were not provided by the host. Best campaigns need at least {minimumSummary}. Confirm the user is on one of those settings, or ask them to switch before continuing.",
|
|
26
27
|
"belowMinimum": "Best campaigns need at least {minimumSummary}. Current settings look below that: {currentSettings}. Please switch before continuing, or explicitly say to continue anyway."
|
|
27
28
|
}
|
|
@@ -273,7 +273,7 @@ customer-facing source-choice labels.
|
|
|
273
273
|
|
|
274
274
|
After `confirm_lead_list` copies source rows and records the review batch, ask the filter-choice question immediately. Do not call `get_post_find_leads_scout_registry`, load filter/message prompts, or spawn Message Drafting before that question. Before it: short setup summary plus add filters, skip filters, or revise source; no extra watch link.
|
|
275
275
|
|
|
276
|
-
After filter choice, the only normal background worker is Message Drafting (`post-find-leads-message-scout`). The registry lookup is not a launch. Both choices must run this kickoff: call the registry, then
|
|
276
|
+
After filter choice, the only normal background worker is Message Drafting (`post-find-leads-message-scout`). The registry lookup is not a launch. Both choices must run this kickoff: call the registry, then `Task`/`spawn_agent` before filter refs, `save_rubrics`, or skip review. YOLO follows the same no-extra-question kickoff rule. If no background tool is callable, run inline as `parent-thread-fallback`; otherwise return `blocked` / `retry-needed`. `update_campaign({ currentStep: "messages" })` is not proof. On spawn, store proof at `watchNarration.workerDetails.messageDraftBuilder`: branch status, runId, timestamps, IDs, filterChoice, and reviewBatchRowHash/Ids. `workerStatuses.messageDraftBuilder` is only `running`; never store proof there or use `messageDrafting`.
|
|
277
277
|
|
|
278
278
|
Parent thread writes filters. On the filters path, start Message Drafting, load `references/filter-leads.md`, save rubrics, and ask users to approve saved criteria. Keep Filter Rules until criteria approval. After approval, move to `currentStep: "apply-icp-rubric"` so the app shows Filter Leads while Message Drafting finishes; no cells until template approval. Say Message Drafting is preparing it.
|
|
279
279
|
|
|
@@ -43,9 +43,12 @@ mutation gates:
|
|
|
43
43
|
message template/token rule set.
|
|
44
44
|
- Do not attach a sequence or call `start_campaign` until the user explicitly
|
|
45
45
|
chooses to launch.
|
|
46
|
-
- If the user requested an exact scheduled send count,
|
|
47
|
-
|
|
48
|
-
|
|
46
|
+
- If the user requested an exact scheduled send count, or asked to fill up/load
|
|
47
|
+
sends for attached senders, prepare that bounded count first. Capacity-fill
|
|
48
|
+
means calculating sender capacity, queueing pending enrichment in batches,
|
|
49
|
+
waiting for rubric/generation cascade, and approving only the bounded prepared
|
|
50
|
+
cohort. `checkedRows` is not enrichment proof. Do not broad approve-all rows
|
|
51
|
+
for exact-count scheduled-send intent.
|
|
49
52
|
|
|
50
53
|
Customer roleplay critique is advisory only. It cannot approve a campaign.
|
|
51
54
|
|
|
@@ -145,8 +145,12 @@ order, atomically:
|
|
|
145
145
|
3. **Approve generated messages** through the bounded or broad path:
|
|
146
146
|
- If the user asked for an exact send count, such as "schedule 250 sends",
|
|
147
147
|
verify the preparation job approved only the bounded prepared cohort for
|
|
148
|
-
that target.
|
|
149
|
-
|
|
148
|
+
that target. For "fill up/load sends for senders", calculate the bounded
|
|
149
|
+
target from sender capacity and use the same preparation path. Do not
|
|
150
|
+
treat `checkedRows` as enriched or prepared proof; verify
|
|
151
|
+
`progress.enrichedRows`, `progress.needsEnrichRows`, `activeCellCount`,
|
|
152
|
+
`preparedMessages`, `approvedRows`, and `stopReason`. Do not broad
|
|
153
|
+
approve-all rows for exact-count scheduled-send intent.
|
|
150
154
|
- If the user asked to approve/start all ready generated rows, use the broad
|
|
151
155
|
approve-batch path below.
|
|
152
156
|
4. **Broad-approve queued messages** only for explicit unbounded intent, via the
|
|
@@ -220,6 +224,9 @@ true:
|
|
|
220
224
|
- No approved generated message exists in the campaign table.
|
|
221
225
|
- The user requested an exact send count and the completed preparation job did
|
|
222
226
|
not satisfy that target.
|
|
227
|
+
- The user asked to fill sender capacity and pending enrichment/generation is
|
|
228
|
+
still active, or the preparation job stopped before the bounded target was
|
|
229
|
+
prepared and approved.
|
|
223
230
|
|
|
224
231
|
A refusal is NOT an escalation in the ladder sense — it's a pre-check
|
|
225
232
|
failure. Surface the specific reason so the user can fix it and say
|