@sellable/mcp 0.1.311 → 0.1.312
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 +24 -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/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 +25 -17
- 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,12 @@ 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 installer. Direct `npx -y @sellable/install@latest --host all`
|
|
101
|
+
is a fallback only when Node/npm/npx are already known-good.
|
|
92
102
|
|
|
93
103
|
### Publishing `@sellable/mcp`
|
|
94
104
|
|
|
@@ -110,12 +120,16 @@ also supported.
|
|
|
110
120
|
2. Click "Generate Token"
|
|
111
121
|
3. Copy the token (starts with `skt_live_`)
|
|
112
122
|
|
|
113
|
-
### 3. Claude Setup
|
|
123
|
+
### 3. Claude Setup Fallback
|
|
124
|
+
|
|
125
|
+
The public installer should handle Claude setup. Use this manual path only for
|
|
126
|
+
troubleshooting when Node/npm/npx are already known-good and the installer route
|
|
127
|
+
is unavailable.
|
|
114
128
|
|
|
115
|
-
Install MCP server:
|
|
129
|
+
Install MCP server manually:
|
|
116
130
|
|
|
117
131
|
```bash
|
|
118
|
-
claude mcp add --transport stdio sellable --
|
|
132
|
+
claude mcp add --transport stdio sellable -- npm exec --yes --package @sellable/mcp@latest -- sellable-mcp
|
|
119
133
|
```
|
|
120
134
|
|
|
121
135
|
Create auth config at `~/.sellable/config.json`:
|
|
@@ -135,15 +149,15 @@ The token is provided when you generate it. Use `list_workspaces` +
|
|
|
135
149
|
For customer/package installs, use the public installer:
|
|
136
150
|
|
|
137
151
|
```bash
|
|
138
|
-
|
|
152
|
+
curl -fsSL "https://app.sellable.dev/api/v2/cli/install" | sh
|
|
139
153
|
```
|
|
140
154
|
|
|
141
155
|
If you already have `~/.sellable/config.json`, rerun/verify without rewriting
|
|
142
156
|
auth:
|
|
143
157
|
|
|
144
158
|
```bash
|
|
145
|
-
|
|
146
|
-
sellable --verify-only --host codex
|
|
159
|
+
curl -fsSL "https://app.sellable.dev/api/v2/cli/install" | sh
|
|
160
|
+
sellable --verify-only --host codex --json
|
|
147
161
|
```
|
|
148
162
|
|
|
149
163
|
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) {
|
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
|
|
@@ -807,12 +812,15 @@ there.
|
|
|
807
812
|
MCP tool access is required. First call `mcp__sellable__get_auth_status({})`
|
|
808
813
|
directly. If that tool is unavailable, stop and say this is a Codex
|
|
809
814
|
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
|
-
`
|
|
815
|
+
run `curl -fsSL "https://app.sellable.dev/api/v2/cli/install" | sh` so the
|
|
816
|
+
packaged MCP server, Codex Desktop plugin, and Sellable skill bundle are
|
|
817
|
+
installed. If they want an agent-readable checklist, tell them:
|
|
818
|
+
`Install Sellable CLI and skills using https://app.sellable.dev/agent-install.txt`.
|
|
819
|
+
For CLI verification, tell them to run
|
|
820
|
+
`sellable --verify-only --host all --json --artifact "$HOME/.local/sellable/app-sellable-dev/installer/.last-verify.json"`.
|
|
821
|
+
After that, they must fully quit and reopen Codex Desktop before starting a new
|
|
822
|
+
thread. Do not use `scripts/mcp/sellable-tool-call.mjs`, `npm run`, `node`, or
|
|
823
|
+
any local harness as a fallback for this interactive skill.
|
|
816
824
|
Do not mention prompt loading, local skill files, missing linked versions,
|
|
817
825
|
plugin cache paths, MCP namespaces, or runbooks in customer-facing progress
|
|
818
826
|
updates.
|
|
@@ -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
|