@sellable/mcp 0.1.365 → 0.1.366

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/api.d.ts CHANGED
@@ -2,6 +2,12 @@ export interface ApiResponse<T> {
2
2
  data: T;
3
3
  error?: string;
4
4
  }
5
+ export interface DownloadToFileResult {
6
+ path: string;
7
+ bytes: number;
8
+ contentType: string | null;
9
+ status: number;
10
+ }
5
11
  export declare class SellableApiError extends Error {
6
12
  status: number;
7
13
  body: string;
@@ -15,6 +21,7 @@ export declare class SellableApi {
15
21
  private request;
16
22
  get<T>(path: string): Promise<T>;
17
23
  getText(path: string): Promise<string>;
24
+ downloadToFile(requestPath: string, destinationPath: string): Promise<DownloadToFileResult>;
18
25
  post<T>(path: string, body?: object): Promise<T>;
19
26
  put<T>(path: string, body?: object): Promise<T>;
20
27
  patch<T>(path: string, body?: object): Promise<T>;
package/dist/api.js CHANGED
@@ -1,4 +1,9 @@
1
1
  import { getConfig, getConfigPath } from "./auth.js";
2
+ import { createWriteStream } from "node:fs";
3
+ import { mkdir, rename, rm, stat } from "node:fs/promises";
4
+ import path from "node:path";
5
+ import { Readable } from "node:stream";
6
+ import { pipeline } from "node:stream/promises";
2
7
  export class SellableApiError extends Error {
3
8
  status;
4
9
  body;
@@ -61,6 +66,33 @@ export class SellableApi {
61
66
  const response = await this.requestResponse("GET", path);
62
67
  return response.text();
63
68
  }
69
+ async downloadToFile(requestPath, destinationPath) {
70
+ const response = await this.requestResponse("GET", requestPath);
71
+ if (!response.body) {
72
+ throw new SellableApiError(response.status, "Response body was empty for file download");
73
+ }
74
+ await mkdir(path.dirname(destinationPath), { recursive: true });
75
+ const tempPath = `${destinationPath}.tmp-${process.pid}-${Date.now()}`;
76
+ let completed = false;
77
+ try {
78
+ const nodeStream = Readable.fromWeb(response.body);
79
+ await pipeline(nodeStream, createWriteStream(tempPath, { flags: "wx" }));
80
+ const fileStat = await stat(tempPath);
81
+ await rename(tempPath, destinationPath);
82
+ completed = true;
83
+ return {
84
+ path: destinationPath,
85
+ bytes: fileStat.size,
86
+ contentType: response.headers.get("content-type"),
87
+ status: response.status,
88
+ };
89
+ }
90
+ finally {
91
+ if (!completed) {
92
+ await rm(tempPath, { force: true }).catch(() => undefined);
93
+ }
94
+ }
95
+ }
64
96
  async post(path, body) {
65
97
  return this.request("POST", path, body);
66
98
  }
package/dist/index-dev.js CHANGED
File without changes
package/dist/index.js CHANGED
File without changes
package/dist/server.js CHANGED
@@ -48,6 +48,7 @@ import { exportTableCsv, listTables } from "./tools/tables.js";
48
48
  import { handleVerifyTableRow } from "./tools/verify-row.js";
49
49
  import { sanitizeWatchUrlsForMcpResult } from "./tools/watch-url-security.js";
50
50
  import { getCampaignWaterfall, setCampaignWaterfallOrder, } from "./tools/waterfalls.js";
51
+ import { exportWorkspaceCsv } from "./tools/workspace-export.js";
51
52
  import { addTeammate, createWorkspace, getActiveWorkspace, listWorkspaces, setActiveWorkspace, } from "./tools/workspaces.js";
52
53
  import { checkForUpdates, logUpdateNotice } from "./update-check.js";
53
54
  const server = new Server({
@@ -75,8 +76,9 @@ function markEvergreenSetupCampaignsDirty(args) {
75
76
  const campaignIds = new Set();
76
77
  const bindings = Array.isArray(args.bindings) ? args.bindings : [];
77
78
  for (const binding of bindings) {
78
- if (!binding || typeof binding !== "object" || Array.isArray(binding))
79
+ if (!binding || typeof binding !== "object" || Array.isArray(binding)) {
79
80
  continue;
81
+ }
80
82
  const campaignId = binding.campaignId;
81
83
  if (typeof campaignId === "string" && campaignId.trim()) {
82
84
  campaignIds.add(campaignId.trim());
@@ -84,8 +86,9 @@ function markEvergreenSetupCampaignsDirty(args) {
84
86
  }
85
87
  const receipts = Array.isArray(args.receipts) ? args.receipts : [];
86
88
  for (const receipt of receipts) {
87
- if (!receipt || typeof receipt !== "object" || Array.isArray(receipt))
89
+ if (!receipt || typeof receipt !== "object" || Array.isArray(receipt)) {
88
90
  continue;
91
+ }
89
92
  const campaignId = receipt.campaignId;
90
93
  if (typeof campaignId === "string" && campaignId.trim()) {
91
94
  campaignIds.add(campaignId.trim());
@@ -388,6 +391,9 @@ server.setRequestHandler(CallToolRequestSchema, async (request) => {
388
391
  case "export_table_csv":
389
392
  result = await exportTableCsv(args);
390
393
  break;
394
+ case "export_workspace_csv":
395
+ result = await exportWorkspaceCsv(args);
396
+ break;
391
397
  case "search_inbox_threads":
392
398
  result = await searchInboxThreads(args);
393
399
  break;
@@ -2,13 +2,13 @@ import { getApi } from "../api.js";
2
2
  export const cellToolDefinitions = [
3
3
  {
4
4
  name: "update_cell",
5
- description: "Update a cell's value. Use for saving crafted messages (messageCellId/subjectCellId), marking examples (exampleCellId with value: true/false), or approving an explicitly selected semantic Approved cell. For route-proof or send-review approval, use the approve cell returned by get_campaign_messages_preview or select_campaign_cells, not get_rows alone.",
5
+ description: "Update a cell's value. Use for saving crafted messages (messageCellId/subjectCellId), marking examples (exampleCellId with value: true/false), or approving for send (approveCellId with value: true).",
6
6
  inputSchema: {
7
7
  type: "object",
8
8
  properties: {
9
9
  cellId: {
10
10
  type: "string",
11
- description: "Cell ID (messageCellId/subjectCellId, exampleCellId, or a semantic Approved cell from preview/selector; not a stale get_rows approveCellId)",
11
+ description: "Cell ID (messageCellId/subjectCellId, exampleCellId, or approveCellId from row)",
12
12
  },
13
13
  value: {
14
14
  oneOf: [{ type: "string" }, { type: "boolean" }, { type: "object" }],
@@ -373,7 +373,7 @@ export function getPostFindLeadsScoutRegistry() {
373
373
  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.',
374
374
  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.",
375
375
  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.',
376
- prepareMessagesRule: `Default create-campaign stays on the existing reviewBatchLimit:15 first campaign-table execution slice. For plain post-mint fill/load/refill requests, load get_subskill_prompt({ subskillName: "refill-sends-workflow" }), then call resolve_campaign_fill_route({ intent:"plain" }) and get_campaign_refill_state before any mutation. Route outcomes are route:"evergreen_horizon", route:"active_campaigns", and route:"ask_create"; stay in the same campaignOfferId/campaignId context after minting. Plain fill is not an alias for fill_campaign_horizon or campaign creation. fill_campaign_horizon is evergreen-only and is not the generic regular-campaign fill path. Campaign creation is allowed only after route:"ask_create" and explicit user selection; it is never the default response to plain fill. Treat "fill up/load sends" as capacity-fill preparation: calculate the bounded target from sender capacity when needed, then use the refill workflow to decide same-campaign source replenishment, enrichment/prep, approval/ready state, scheduler reread, and sender-health blockers. Do not create warm-post-engager side campaigns. For already-running regular campaigns that need Signal Discovery source replenishment, use the guarded currentStep clear with clearCurrentStepIfMatches:"running", campaign-scoped provider prompt/search/select, and import_leads with the existing sourceLeadListId when a newly approved selected-post scrape would otherwise return reusedExistingSourceList. After confirm_lead_list copies rows into an existing table, avoid fixed maxRowsToCheck:100; inspect reviewBatch/table selectors or use adaptive/wider bounded prep so appended rows are included. Do not interpret checkedRows as enriched rows; it is only the table cursor. Prepared, approved, and ready_to_schedule rows are intermediate states; never call them scheduled unless a re-read proves scheduler-owned scheduled cells with non-null scheduledFor. Before source import, prep, or approval, require exact visible approval and a fresh get_campaign_refill_state reread; stop if freshness.stateHash or exact ids changed. For "approve X messages", use approvalMode:approve only when explicitly requested, but still do not launch. For "schedule X sends" or "fill sender sends", approve only when explicitly requested, then re-read campaign/table scheduled counts; if scheduler-owned scheduledFor cells are not present, report prepared/approved/ready - awaiting scheduler instead of success. Do not call start_campaign as part of fill/schedule horizon. Do not call start_campaign as part of refill sends. Launch/start is a separate explicit human action after the operator intentionally wants sends to go out, and it must still verify that the bounded cohort is the only approved 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, use cancel_campaign_message_preparation only for the exact active job. Low-level selectors are diagnostics and recovery only for this lane. start_campaign remains forbidden until explicit launch/start approval outside refill sends.`,
376
+ prepareMessagesRule: `Default create-campaign stays on the existing reviewBatchLimit:15 first campaign-table execution slice. For plain post-mint fill/load/refill requests, load get_subskill_prompt({ subskillName: "refill-sends-workflow" }), then call resolve_campaign_fill_route({ intent:"plain" }) and get_campaign_refill_state before any mutation. Route outcomes are route:"evergreen_horizon", route:"active_campaigns", and route:"ask_create"; stay in the same campaignOfferId/campaignId context after minting. Plain fill is not an alias for fill_campaign_horizon or campaign creation. fill_campaign_horizon is evergreen-only and is not the generic regular-campaign fill path. Campaign creation is allowed only after route:"ask_create" and explicit user selection; it is never the default response to plain fill. Treat "fill up/load sends" as capacity-fill preparation: calculate the bounded target from sender capacity when needed, then use the refill workflow to decide same-campaign source replenishment, enrichment/prep, approval/ready state, scheduler reread, and sender-health blockers. Do not create warm-post-engager side campaigns. Do not interpret checkedRows as enriched rows; it is only the table cursor. Prepared, approved, and ready_to_schedule rows are intermediate states; never call them scheduled unless a re-read proves scheduler-owned scheduled cells with non-null scheduledFor. Before source import, prep, or approval, require exact visible approval and a fresh get_campaign_refill_state reread; stop if freshness.stateHash or exact ids changed. For "approve X messages", use approvalMode:approve only when explicitly requested, but still do not launch. For "schedule X sends" or "fill sender sends", approve only when explicitly requested, then re-read campaign/table scheduled counts; if scheduler-owned scheduledFor cells are not present, report prepared/approved/ready - awaiting scheduler instead of success. Do not call start_campaign as part of fill/schedule horizon. Do not call start_campaign as part of refill sends. Launch/start is a separate explicit human action after the operator intentionally wants sends to go out, and it must still verify that the bounded cohort is the only approved 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, use cancel_campaign_message_preparation only for the exact active job. Low-level selectors are diagnostics and recovery only for this lane. start_campaign remains forbidden until explicit launch/start approval outside refill sends.`,
377
377
  },
378
378
  };
379
379
  }
@@ -42,6 +42,7 @@ import { setupEvergreenCampaignsToolDefinitions } from "./setup-evergreen-campai
42
42
  import { tableToolDefinitions } from "./tables.js";
43
43
  import { verifyRowToolDefinitions } from "./verify-row.js";
44
44
  import { waterfallToolDefinitions } from "./waterfalls.js";
45
+ import { workspaceExportToolDefinitions } from "./workspace-export.js";
45
46
  import { workspaceToolDefinitions } from "./workspaces.js";
46
47
  export const allTools = [
47
48
  ...campaignToolDefinitions,
@@ -83,6 +84,7 @@ export const allTools = [
83
84
  ...engageMemoryToolDefinitions,
84
85
  ...sequencerToolDefinitions,
85
86
  ...tableToolDefinitions,
87
+ ...workspaceExportToolDefinitions,
86
88
  ...columnSchemaToolDefinitions,
87
89
  ...blueprintCommitToolDefinitions,
88
90
  ...columnUpdateToolDefinitions,
@@ -50,7 +50,7 @@ export const rowToolDefinitions = [
50
50
  },
51
51
  {
52
52
  name: "get_rows",
53
- description: "Get row details for crafting. Returns: name, company, title, linkedinUrl, currentMessage, currentSubject, messageCellId, subjectCellId, approveCellId, exampleCellId, isExample, carryData (extra CSV columns like 'Jobs Hiring For'), enrichment (summary, experience, education). Use after selecting a lead. Do not treat approveCellId from get_rows as the product-visible approval source of truth; on campaign tables it can differ from the send-review Approved column. For route-proof or send-review approval, use get_campaign_messages_preview or select_campaign_cells to select the semantic Approved cell.",
53
+ description: "Get row details for crafting. Returns: name, company, title, linkedinUrl, currentMessage, currentSubject, messageCellId, subjectCellId, approveCellId, exampleCellId, isExample, carryData (extra CSV columns like 'Jobs Hiring For'), enrichment (summary, experience, education). Use after selecting a lead.",
54
54
  inputSchema: {
55
55
  type: "object",
56
56
  properties: {
@@ -13,7 +13,7 @@ type SetupEvergreenCampaignsInput = {
13
13
  }>;
14
14
  planRevision?: string;
15
15
  selectedActionIds?: string[];
16
- receipts?: unknown[];
16
+ receipts?: Array<Record<string, unknown>>;
17
17
  };
18
18
  export declare const setupEvergreenCampaignsToolDefinitions: {
19
19
  name: string;
@@ -6,7 +6,7 @@ async function postSetupEvergreenCampaigns(body) {
6
6
  export const setupEvergreenCampaignsToolDefinitions = [
7
7
  {
8
8
  name: "setup_evergreen_campaigns",
9
- description: "Evergreen campaign setup plan/verify command. Use plan mode first to inspect exact workspace/sender/campaign/table/source state and receive immutable lane packets. `selectedSenderIds` is a legacy shorthand for both scopes; prefer `postEngagerSenderIds` for the Post Engagers sender scope and `sharedSenderIds` for the shared lane sender scope when they differ. The command plans one Post Engagers lane per post-engager sender plus shared Signal Discovery and Shared Cold Fallback lanes for the shared sender set. yolo is only a parent-skill auto-execution hint for safe lane packets; this backend command remains read-only in plan mode and verifies receipts in verify mode. When safe-yolo needs normal setup work, the parent skill may ask for bounded delegated approval: one approval over the current planRevision, selected action ids, caps, allowed side-effect classes, and stop conditions lets lane workers execute without per-substep approval while staying inside that packet. Lane workers must execute creation, source import, create-campaign workflow steps, generate-messages, sequence attachment, pause_campaign review-state transition when the current table is still DRAFT, and review readiness through existing create-campaign workflow/subskills, then return receipts here for verification. Customer-visible verify receipts must set status:'succeeded' or status:'completed' and must include createCampaignStepReceipt with setupPlanCall, campaignBriefReceipt, sourceDecisionReceipt, filterDecisionReceipt, messageDraftingReceipt, reviewBatchReceipt, sequenceReceipt, and verifyCall nested inside createCampaignStepReceipt; top-level-only copies of those objects are not enough. messageDraftingReceipt must use statusSource:'branch' or statusSource:'packaged-generate-messages-worker' and include proof that generate-messages was loaded, start_campaign_message_preparation/get_campaign_message_preparation_status ran when the packaged worker path is used, validationResult:'passed', a passed qualityReview, and at least 3 concrete sampleMessages with row ids, generated message text, pass verdicts, and no issues; Shared Cold Fallback samples with a standalone name followed by 'Hey there' are rejected. This command does not launch campaigns, does not schedule sends, does not assign scheduler-owned send fields, does not raw-write campaign status, does not archive/delete cleanup targets, and does not spend paid credits.",
9
+ description: "Evergreen campaign setup plan/verify command. Use plan mode first to inspect exact workspace/sender/campaign/table/source state and receive immutable lane packets. `selectedSenderIds` is a legacy shorthand for both scopes; prefer `postEngagerSenderIds` for the Post Engagers sender scope and `sharedSenderIds` for the shared lane sender scope when they differ. The command plans one Post Engagers lane per post-engager sender plus shared Signal Discovery and Shared Cold Fallback lanes for the shared sender set. yolo is only a parent-skill auto-execution hint for safe lane packets; this backend command remains read-only in plan mode and verifies receipts in verify mode. When safe-yolo needs normal setup work, the parent skill may ask for bounded delegated approval: one approval over the current planRevision, selected action ids, caps, allowed side-effect classes, and stop conditions lets lane workers execute without per-substep approval while staying inside that packet. Lane workers must execute creation, source import, create-campaign workflow steps, generate-messages, sequence attachment, pause_campaign review-state transition when the current table is still DRAFT, and review readiness through existing create-campaign workflow/subskills, then return receipts here for verification. Customer-visible verify receipts must include createCampaignStepReceipt with setupPlanCall, campaignBriefReceipt, sourceDecisionReceipt, filterDecisionReceipt, messageDraftingReceipt, reviewBatchReceipt, sequenceReceipt, and verifyCall. messageDraftingReceipt must use statusSource:'branch' or statusSource:'packaged-generate-messages-worker' and include proof that generate-messages was loaded, start_campaign_message_preparation/get_campaign_message_preparation_status ran when the packaged worker path is used, validationResult:'passed', a passed qualityReview, and at least 3 concrete sampleMessages with row ids, generated message text, pass verdicts, and no issues; Shared Cold Fallback samples with a standalone name followed by 'Hey there' are rejected. This command does not launch campaigns, does not schedule sends, does not assign scheduler-owned send fields, does not raw-write campaign status, does not archive/delete cleanup targets, and does not spend paid credits.",
10
10
  inputSchema: {
11
11
  type: "object",
12
12
  properties: {
@@ -75,7 +75,7 @@ export const setupEvergreenCampaignsToolDefinitions = [
75
75
  type: "array",
76
76
  maxItems: 20,
77
77
  items: { type: "object" },
78
- description: "Required for verify. Structured lane worker receipts from create-campaign/source/message/sequence execution. Customer-visible lanes must use status:'succeeded' or status:'completed' and include createCampaignStepReceipt with setupPlanCall, campaignBriefReceipt, sourceDecisionReceipt, filterDecisionReceipt, messageDraftingReceipt, reviewBatchReceipt, sequenceReceipt, and verifyCall nested inside createCampaignStepReceipt. Top-level-only proof copies are not enough.",
78
+ description: "Required for verify. Structured lane worker receipts from create-campaign/source/message/sequence execution. Customer-visible lanes must include createCampaignStepReceipt with setupPlanCall, campaignBriefReceipt, sourceDecisionReceipt, filterDecisionReceipt, messageDraftingReceipt, reviewBatchReceipt, sequenceReceipt, and verifyCall.",
79
79
  },
80
80
  },
81
81
  required: [],
@@ -0,0 +1,110 @@
1
+ export type WorkspaceExportDataset = "people" | "events";
2
+ export type WorkspaceExportIntent = "reached_out_people" | "people_and_events" | "outreach_event_log" | "dashboard_messages" | "connections_sent";
3
+ type WorkspaceExportActionType = "INVITE" | "DM" | "INMAIL_OPEN" | "INMAIL_CLOSED" | "VIEW_PROFILE" | "COMMENT";
4
+ export interface ExportWorkspaceCsvInput {
5
+ exportType?: "outreach";
6
+ exportIntent?: WorkspaceExportIntent;
7
+ datasets?: WorkspaceExportDataset[];
8
+ actionTypes?: WorkspaceExportActionType[];
9
+ outputDir?: string;
10
+ fromSentAt?: string;
11
+ toSentAt?: string;
12
+ campaignIds?: string[];
13
+ tableIds?: string[];
14
+ }
15
+ export declare const workspaceExportToolDefinitions: {
16
+ name: string;
17
+ description: string;
18
+ inputSchema: {
19
+ type: string;
20
+ properties: {
21
+ exportType: {
22
+ type: string;
23
+ enum: string[];
24
+ description: string;
25
+ };
26
+ exportIntent: {
27
+ type: string;
28
+ enum: string[];
29
+ description: string;
30
+ };
31
+ datasets: {
32
+ type: string;
33
+ items: {
34
+ type: string;
35
+ enum: string[];
36
+ };
37
+ description: string;
38
+ };
39
+ actionTypes: {
40
+ type: string;
41
+ items: {
42
+ type: string;
43
+ enum: string[];
44
+ };
45
+ description: string;
46
+ };
47
+ outputDir: {
48
+ type: string;
49
+ description: string;
50
+ };
51
+ fromSentAt: {
52
+ type: string;
53
+ description: string;
54
+ };
55
+ toSentAt: {
56
+ type: string;
57
+ description: string;
58
+ };
59
+ campaignIds: {
60
+ type: string;
61
+ items: {
62
+ type: string;
63
+ };
64
+ description: string;
65
+ };
66
+ tableIds: {
67
+ type: string;
68
+ items: {
69
+ type: string;
70
+ };
71
+ description: string;
72
+ };
73
+ };
74
+ required: never[];
75
+ additionalProperties: boolean;
76
+ };
77
+ }[];
78
+ export declare function exportWorkspaceCsv(input?: ExportWorkspaceCsvInput): Promise<{
79
+ status: string;
80
+ outputDir: string;
81
+ manifestPath: string;
82
+ datasets: {
83
+ dataset: WorkspaceExportDataset;
84
+ path: string;
85
+ rows: number;
86
+ bytes: number;
87
+ status: "complete" | "failed";
88
+ }[];
89
+ exportCutoff: string;
90
+ exportIntent: WorkspaceExportIntent | null;
91
+ intentDescription: string | null;
92
+ countDefinitions: {
93
+ reachedOutPeople: string;
94
+ outreachEvents: string;
95
+ dashboardMessagesSent: string;
96
+ connectionsSent: string;
97
+ profileViews: string;
98
+ };
99
+ counts: Record<string, unknown>;
100
+ workspace: {
101
+ id?: string;
102
+ name?: string | null;
103
+ };
104
+ skipped: string[];
105
+ failures: {
106
+ dataset: WorkspaceExportDataset;
107
+ error: string;
108
+ }[];
109
+ }>;
110
+ export {};