@sellable/mcp 0.1.529 → 0.1.531
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/index-dev.js +0 -0
- package/dist/index.js +0 -0
- package/dist/tools/auth.js +3 -3
- package/dist/tools/bootstrap.js +1 -1
- package/dist/tools/campaigns.d.ts +2 -2
- package/dist/tools/campaigns.js +5 -17
- package/dist/tools/model-quality.d.ts +1 -2
- package/dist/tools/model-quality.js +1 -21
- package/package.json +2 -3
- package/dist/tools/refill-sends-evergreen.d.ts +0 -28
- package/dist/tools/refill-sends-evergreen.js +0 -47
- package/skills/research/config.json +0 -9
package/dist/index-dev.js
CHANGED
|
File without changes
|
package/dist/index.js
CHANGED
|
File without changes
|
package/dist/tools/auth.js
CHANGED
|
@@ -124,7 +124,7 @@ export async function getAuthStatus() {
|
|
|
124
124
|
" 3. Click it, come back here, and we'll keep going\\n\\n" +
|
|
125
125
|
"What email should I use?` " +
|
|
126
126
|
"2) Wait for the user to type their email in normal chat (do NOT use AskUserQuestion / request_user_input). " +
|
|
127
|
-
"3) Call `mcp__sellable__start_cli_login({ email })` with that email
|
|
127
|
+
"3) Call `mcp__sellable__start_cli_login({ email })` with that email. " +
|
|
128
128
|
"4) On `ok: true`, say verbatim (substituting the email exactly as typed):\\n" +
|
|
129
129
|
"`Magic link sent to {email}.\\n\\n" +
|
|
130
130
|
"─────────────────────────────────────────────\\n" +
|
|
@@ -135,8 +135,8 @@ export async function getAuthStatus() {
|
|
|
135
135
|
" 3. Come back here when you're done\\n\\n" +
|
|
136
136
|
"I'll be waiting right here.\\n\\n" +
|
|
137
137
|
" (If your team already uses Sellable, ask an admin to invite you into their shared workspace instead — that gets you straight in.)` " +
|
|
138
|
-
"5) Call `mcp__sellable__wait_for_cli_login({ sessionId })`
|
|
139
|
-
"6) If the result is `error.type === 'tool_timeout_guard'`, IMMEDIATELY re-call wait_for_cli_login with the SAME sessionId — do not narrate, do not call start_cli_login again.
|
|
138
|
+
"5) Call `mcp__sellable__wait_for_cli_login({ sessionId })` using the sessionId returned by start_cli_login. " +
|
|
139
|
+
"6) If the result is `error.type === 'tool_timeout_guard'`, IMMEDIATELY re-call wait_for_cli_login with the SAME sessionId — do not narrate, do not call start_cli_login again. Loop until you get a different result. " +
|
|
140
140
|
"7) On `ok: true`, the user is signed in and `~/.sellable/config.json` has been written. Branch on `isReturningUser` and use `activeWorkspaceName` when present, otherwise `activeWorkspaceId`, as `{workspaceLabel}`: " +
|
|
141
141
|
"if true, say `You're in {workspaceLabel}.\\n\\nExcited to help you launch your LinkedIn outbound campaign. We're at setup: first I'll use your LinkedIn profile to understand the company, then I'll draft the campaign brief, help choose where to find buyers, review messages, and wait for final launch approval.\\n\\nWhat's your LinkedIn profile URL or handle?`; " +
|
|
142
142
|
"if false, say `You're set up in {workspaceLabel}.\\n\\nExcited to help you launch your LinkedIn outbound campaign. We're at setup: first I'll use your LinkedIn profile to understand the company, then I'll draft the campaign brief, help choose where to find buyers, review messages, and wait for final launch approval.\\n\\nWhat's your LinkedIn profile URL or handle?`";
|
package/dist/tools/bootstrap.js
CHANGED
|
@@ -307,7 +307,7 @@ export async function bootstrapCreateCampaign(input = {}) {
|
|
|
307
307
|
? resumeDetected
|
|
308
308
|
? `Bootstrap complete.${workspaceNotice}${modelNotice} Resume from campaign state and navigation diagnostics first; treat local draft artifacts as debug-only evidence. Then load ${createCampaignSubskill?.name ?? "create-campaign"} instructions with get_subskill_prompt({ subskillName: "${createCampaignSubskill?.name ?? "create-campaign"}" }); if the response has hasMore=true, continue with nextOffset until hasMore=false.`
|
|
309
309
|
: flowVersion === "v2"
|
|
310
|
-
? `Bootstrap complete.${workspaceNotice}${modelNotice} Load the compact create-campaign-v2 entry prompt once with get_subskill_prompt({ subskillName: "create-campaign-v2" });
|
|
310
|
+
? `Bootstrap complete.${workspaceNotice}${modelNotice} Load the compact create-campaign-v2 entry prompt once with get_subskill_prompt({ subskillName: "create-campaign-v2" }); load flow/reference assets lazily only when that stage needs them. Preserve the pre-intake sequence: confirm auth/workspace status, ask only for the LinkedIn profile URL or handle, normalize handles to a full profile URL, require that profile identity before continuing, run lightweight profile/company lookup, then ask the target, offer, credibility, and prospect-source setup questions. Do not call list_senders or sender discovery during setup; sender availability belongs only to Settings after message approval. Then write the campaign brief, call create_campaign once to mint the watchable shell, surface the returned watch link once before brief approval, and hand off to lead finding without repeating the link.`
|
|
311
311
|
: `Bootstrap complete.${workspaceNotice}${modelNotice} Load ${createCampaignSubskill?.name ?? "create-campaign"} instructions with get_subskill_prompt({ subskillName: "${createCampaignSubskill?.name ?? "create-campaign"}" }); if the response has hasMore=true, continue with nextOffset until hasMore=false. Follow that flow before calling create_campaign.`
|
|
312
312
|
: "Bootstrap incomplete. Resolve blockingErrors and rerun bootstrap_create_campaign before provider/search/import tools.";
|
|
313
313
|
// Strip prompt body from createCampaignSubskill — it's loaded via the host
|
|
@@ -9,9 +9,9 @@ declare const LEAD_SOURCE_PROVIDERS: {
|
|
|
9
9
|
};
|
|
10
10
|
type LeadSourceProvider = (typeof LEAD_SOURCE_PROVIDERS)[keyof typeof LEAD_SOURCE_PROVIDERS];
|
|
11
11
|
export declare function buildWatchUrl(config: Pick<ReturnType<typeof getConfig>, "apiUrl" | "token" | "activeWorkspaceId" | "workspaceId">, path: string): string;
|
|
12
|
-
export type CampaignBuilderWatchMode = "claude" | "codex"
|
|
12
|
+
export type CampaignBuilderWatchMode = "claude" | "codex";
|
|
13
13
|
export declare function getCampaignBuilderWatchModeParam(): CampaignBuilderWatchMode;
|
|
14
|
-
export declare function getCampaignBuilderWatchModeDriverLabel(mode?: CampaignBuilderWatchMode): "Claude Code" | "Codex"
|
|
14
|
+
export declare function getCampaignBuilderWatchModeDriverLabel(mode?: CampaignBuilderWatchMode): "Claude Code" | "Codex";
|
|
15
15
|
export declare function buildCampaignWatchHandoffMarkdown(watchUrl: string, mode?: CampaignBuilderWatchMode): string;
|
|
16
16
|
export interface Campaign {
|
|
17
17
|
id: string;
|
package/dist/tools/campaigns.js
CHANGED
|
@@ -124,35 +124,23 @@ export function buildWatchUrl(config, path) {
|
|
|
124
124
|
}
|
|
125
125
|
return url.toString();
|
|
126
126
|
}
|
|
127
|
-
const CAMPAIGN_BUILDER_AGENT_WATCH_MODES = new Set([
|
|
128
|
-
"claude",
|
|
129
|
-
"codex",
|
|
130
|
-
"hermes",
|
|
131
|
-
]);
|
|
132
127
|
export function getCampaignBuilderWatchModeParam() {
|
|
133
128
|
const explicit = process.env.SELLABLE_WATCH_MODE_DRIVER?.trim().toLowerCase();
|
|
134
|
-
if (
|
|
129
|
+
if (explicit === "claude" || explicit === "codex")
|
|
135
130
|
return explicit;
|
|
136
|
-
}
|
|
137
131
|
return process.env.CODEX_HOME ? "codex" : "claude";
|
|
138
132
|
}
|
|
139
133
|
function getCampaignBuilderWatchModeFromUrl(watchUrl) {
|
|
140
134
|
try {
|
|
141
135
|
const mode = new URL(watchUrl).searchParams.get("mode");
|
|
142
|
-
return
|
|
143
|
-
? mode
|
|
144
|
-
: null;
|
|
136
|
+
return mode === "claude" || mode === "codex" ? mode : null;
|
|
145
137
|
}
|
|
146
138
|
catch {
|
|
147
139
|
return null;
|
|
148
140
|
}
|
|
149
141
|
}
|
|
150
142
|
export function getCampaignBuilderWatchModeDriverLabel(mode = getCampaignBuilderWatchModeParam()) {
|
|
151
|
-
|
|
152
|
-
return "Codex";
|
|
153
|
-
if (mode === "hermes")
|
|
154
|
-
return "Hermes";
|
|
155
|
-
return "Claude Code";
|
|
143
|
+
return mode === "codex" ? "Codex" : "Claude Code";
|
|
156
144
|
}
|
|
157
145
|
export function buildCampaignWatchHandoffMarkdown(watchUrl, mode = getCampaignBuilderWatchModeFromUrl(watchUrl) ?? getCampaignBuilderWatchModeParam()) {
|
|
158
146
|
const driverLabel = getCampaignBuilderWatchModeDriverLabel(mode);
|
|
@@ -173,7 +161,7 @@ function isValidBriefHandoffWatchUrl(watchUrl, campaignId) {
|
|
|
173
161
|
const url = new URL(watchUrl);
|
|
174
162
|
const mode = url.searchParams.get("mode");
|
|
175
163
|
return (url.pathname === `/campaign-builder/${campaignId}` &&
|
|
176
|
-
|
|
164
|
+
(mode === "claude" || mode === "codex") &&
|
|
177
165
|
Boolean(url.searchParams.get("workspaceId")) &&
|
|
178
166
|
Boolean(url.searchParams.get("token")));
|
|
179
167
|
}
|
|
@@ -185,7 +173,7 @@ function assertBriefHandoffWatchUrl(watchUrl, campaignId) {
|
|
|
185
173
|
if (isValidBriefHandoffWatchUrl(watchUrl, campaignId))
|
|
186
174
|
return;
|
|
187
175
|
throw new Error("create_campaign produced an invalid watchUrl for the brief approval handoff. " +
|
|
188
|
-
"Recover a fresh direct /campaign-builder/{campaignId}?mode={claude|codex
|
|
176
|
+
"Recover a fresh direct /campaign-builder/{campaignId}?mode={claude|codex}&workspaceId=...&token=... URL " +
|
|
189
177
|
"with create_campaign({ campaignId }) or get_campaign before asking for approval.");
|
|
190
178
|
}
|
|
191
179
|
export const campaignToolDefinitions = [
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export type CampaignModelHost = "claude" | "codex" | "
|
|
1
|
+
export type CampaignModelHost = "claude" | "codex" | "unknown";
|
|
2
2
|
export type CampaignModelQualityInput = {
|
|
3
3
|
host?: string | null;
|
|
4
4
|
model?: string | null;
|
|
@@ -33,7 +33,6 @@ export type CampaignModelQualityConfig = {
|
|
|
33
33
|
hosts: {
|
|
34
34
|
claude: CampaignModelQualityHostConfig;
|
|
35
35
|
codex: CampaignModelQualityHostConfig;
|
|
36
|
-
hermes: CampaignModelQualityHostConfig;
|
|
37
36
|
};
|
|
38
37
|
warningCopy: {
|
|
39
38
|
ok: string;
|
|
@@ -30,20 +30,6 @@ const DEFAULT_MODEL_QUALITY_CONFIG = {
|
|
|
30
30
|
],
|
|
31
31
|
recommendedReasoningEffort: "xhigh",
|
|
32
32
|
},
|
|
33
|
-
hermes: {
|
|
34
|
-
label: "Hermes",
|
|
35
|
-
minimumModel: "GPT 5.5",
|
|
36
|
-
familyKeywords: ["gpt"],
|
|
37
|
-
minimumVersion: "5.5",
|
|
38
|
-
minimumReasoningEffort: "xhigh",
|
|
39
|
-
acceptedReasoningEfforts: [
|
|
40
|
-
"extra high",
|
|
41
|
-
"extra-high",
|
|
42
|
-
"xhigh",
|
|
43
|
-
"extra_high",
|
|
44
|
-
],
|
|
45
|
-
recommendedReasoningEffort: "xhigh",
|
|
46
|
-
},
|
|
47
33
|
},
|
|
48
34
|
warningCopy: {
|
|
49
35
|
ok: "Active host model metadata meets the configured campaign floor: {currentSettings}.",
|
|
@@ -55,8 +41,6 @@ const TRUSTED_METADATA_SOURCE_KEYWORDS = [
|
|
|
55
41
|
"codex_turn_metadata",
|
|
56
42
|
"claude_runtime_metadata",
|
|
57
43
|
"claude_session_context",
|
|
58
|
-
"hermes_runtime_metadata",
|
|
59
|
-
"hermes_session_context",
|
|
60
44
|
"active_turn_metadata",
|
|
61
45
|
"user_confirmed",
|
|
62
46
|
];
|
|
@@ -65,9 +49,6 @@ const normalize = (value) => String(value ?? "")
|
|
|
65
49
|
.toLowerCase();
|
|
66
50
|
const normalizeHost = (host) => {
|
|
67
51
|
const normalized = normalize(host);
|
|
68
|
-
if (normalized.includes("hermes")) {
|
|
69
|
-
return "hermes";
|
|
70
|
-
}
|
|
71
52
|
if (normalized.includes("claude") ||
|
|
72
53
|
normalized.includes("opus") ||
|
|
73
54
|
normalized.includes("sonnet") ||
|
|
@@ -133,7 +114,6 @@ function findHostConfig(host, model, config) {
|
|
|
133
114
|
? [
|
|
134
115
|
["claude", config.hosts.claude],
|
|
135
116
|
["codex", config.hosts.codex],
|
|
136
|
-
["hermes", config.hosts.hermes],
|
|
137
117
|
]
|
|
138
118
|
: [[host, config.hosts[host]]];
|
|
139
119
|
return candidates.find(([, hostConfig]) => modelMeetsMinimum(model, hostConfig, {
|
|
@@ -150,7 +130,7 @@ export function evaluateCampaignModelQuality(input = {}) {
|
|
|
150
130
|
const model = input.model?.trim() || null;
|
|
151
131
|
const reasoningEffort = input.reasoningEffort?.trim() || null;
|
|
152
132
|
const metadataSource = input.metadataSource?.trim() || null;
|
|
153
|
-
const recommendationHost = host === "claude"
|
|
133
|
+
const recommendationHost = host === "claude" ? "claude" : "codex";
|
|
154
134
|
const recommendedHostConfig = config.hosts[recommendationHost];
|
|
155
135
|
const minimumSummary = getCampaignModelMinimumSummary(config);
|
|
156
136
|
const currentSettings = [
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sellable/mcp",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.531",
|
|
4
4
|
"type": "module",
|
|
5
|
-
"description": "Sellable MCP server for Claude Code
|
|
5
|
+
"description": "Sellable MCP server for Claude Code and Codex campaign workflows",
|
|
6
6
|
"main": "dist/index.js",
|
|
7
7
|
"bin": {
|
|
8
8
|
"mcp": "dist/index.js",
|
|
@@ -20,7 +20,6 @@
|
|
|
20
20
|
"mcp",
|
|
21
21
|
"claude-code",
|
|
22
22
|
"codex",
|
|
23
|
-
"hermes",
|
|
24
23
|
"sellable",
|
|
25
24
|
"linkedin",
|
|
26
25
|
"outreach"
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
type RefillSendsEvergreenInput = {
|
|
2
|
-
workspaceId?: string;
|
|
3
|
-
};
|
|
4
|
-
export declare const refillSendsEvergreenToolDefinitions: {
|
|
5
|
-
name: string;
|
|
6
|
-
description: string;
|
|
7
|
-
inputSchema: {
|
|
8
|
-
type: string;
|
|
9
|
-
properties: {
|
|
10
|
-
workspaceId: {
|
|
11
|
-
type: string;
|
|
12
|
-
description: string;
|
|
13
|
-
};
|
|
14
|
-
};
|
|
15
|
-
required: string[];
|
|
16
|
-
additionalProperties: boolean;
|
|
17
|
-
};
|
|
18
|
-
}[];
|
|
19
|
-
export declare function refillSendsEvergreenCommand(input: RefillSendsEvergreenInput): {
|
|
20
|
-
readOnly: boolean;
|
|
21
|
-
workspaceId: string | null;
|
|
22
|
-
firstOperationalSteps: string[];
|
|
23
|
-
approvalContract: string;
|
|
24
|
-
forbiddenActions: string[];
|
|
25
|
-
fillWindow: string;
|
|
26
|
-
hostExamples: string[];
|
|
27
|
-
};
|
|
28
|
-
export {};
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
export const refillSendsEvergreenToolDefinitions = [
|
|
2
|
-
{
|
|
3
|
-
name: "refill_sends_evergreen",
|
|
4
|
-
description: "Read-only Phase 85 evergreen refill command contract. It performs no mutations and only tells the operator to call get_evergreen_refill_plan for a dry-run packet and journal.",
|
|
5
|
-
inputSchema: {
|
|
6
|
-
type: "object",
|
|
7
|
-
properties: {
|
|
8
|
-
workspaceId: {
|
|
9
|
-
type: "string",
|
|
10
|
-
description: "Explicit request-scoped workspace id.",
|
|
11
|
-
},
|
|
12
|
-
},
|
|
13
|
-
required: ["workspaceId"],
|
|
14
|
-
additionalProperties: false,
|
|
15
|
-
},
|
|
16
|
-
},
|
|
17
|
-
];
|
|
18
|
-
export function refillSendsEvergreenCommand(input) {
|
|
19
|
-
return {
|
|
20
|
-
readOnly: true,
|
|
21
|
-
workspaceId: input.workspaceId ?? null,
|
|
22
|
-
firstOperationalSteps: [
|
|
23
|
-
"Call get_evergreen_refill_plan with the explicit workspaceId.",
|
|
24
|
-
"Read the returned packet, globalActionQueue, per-sender plans, and itinerary before taking any action.",
|
|
25
|
-
"Review the dry-run journal file path returned by get_evergreen_refill_plan.",
|
|
26
|
-
"Phase 85 is PLAN-ONLY; execution arrives in Phase 86.",
|
|
27
|
-
],
|
|
28
|
-
approvalContract: "Nothing is approved or executable in Phase 85. The evergreen command is read-only; Phase 86 introduces execution approval.",
|
|
29
|
-
forbiddenActions: [
|
|
30
|
-
"Do not schedule sends.",
|
|
31
|
-
"Do not send messages.",
|
|
32
|
-
"Do not approve messages.",
|
|
33
|
-
"Do not prepare messages.",
|
|
34
|
-
"Do not start or launch campaigns.",
|
|
35
|
-
"Do not create campaigns.",
|
|
36
|
-
"Do not switch providers or source families.",
|
|
37
|
-
"Do not lower paid InMail thresholds.",
|
|
38
|
-
"Do not refresh paid InMail credits.",
|
|
39
|
-
"Do not write scheduler fields.",
|
|
40
|
-
],
|
|
41
|
-
fillWindow: "Use only the target window and caps returned by get_evergreen_refill_plan.",
|
|
42
|
-
hostExamples: [
|
|
43
|
-
"refill_sends_evergreen({ workspaceId })",
|
|
44
|
-
"get_evergreen_refill_plan({ workspaceId })",
|
|
45
|
-
],
|
|
46
|
-
};
|
|
47
|
-
}
|