@sellable/mcp 0.1.36 → 0.1.37
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/tools/prompts.d.ts +2 -2
- package/dist/tools/prompts.js +9 -2
- package/package.json +1 -1
package/dist/tools/prompts.d.ts
CHANGED
|
@@ -47,8 +47,8 @@ export interface CompleteSenderResearchInput {
|
|
|
47
47
|
credibilitySignalsFound?: number;
|
|
48
48
|
notes?: string;
|
|
49
49
|
}
|
|
50
|
-
export declare const DEFAULT_SUBSKILL_PROMPT_CHUNK_CHARS =
|
|
51
|
-
export declare const MAX_SUBSKILL_PROMPT_CHUNK_CHARS =
|
|
50
|
+
export declare const DEFAULT_SUBSKILL_PROMPT_CHUNK_CHARS = 40000;
|
|
51
|
+
export declare const MAX_SUBSKILL_PROMPT_CHUNK_CHARS = 48000;
|
|
52
52
|
export declare const promptToolDefinitions: ({
|
|
53
53
|
name: string;
|
|
54
54
|
description: string;
|
package/dist/tools/prompts.js
CHANGED
|
@@ -1,8 +1,15 @@
|
|
|
1
1
|
import { getApi } from "../api.js";
|
|
2
2
|
import { getSkillByName, listSkills, stripFrontmatter } from "../skills.js";
|
|
3
3
|
import { markCreateCampaignPromptLoaded, markResearchPromptLoaded, markSenderResearchCompleted, } from "./flow-preflight.js";
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
// Chunk size sits below Claude Code's max-token cap on tool results
|
|
5
|
+
// (empirically around ~50k chars — fetch_linkedin_profile breached at
|
|
6
|
+
// 53,295 chars, which forced a python3 chunked-read fallback). 40k gives
|
|
7
|
+
// headroom and cuts a 105k subskill prompt from 5 round trips at 24k →
|
|
8
|
+
// 3 round trips at 40k, saving ~40% of agent latency on first load.
|
|
9
|
+
// MAX leaves room for the agent to request slightly larger windows when
|
|
10
|
+
// it knows the prompt fits, without breaching the cap.
|
|
11
|
+
export const DEFAULT_SUBSKILL_PROMPT_CHUNK_CHARS = 40_000;
|
|
12
|
+
export const MAX_SUBSKILL_PROMPT_CHUNK_CHARS = 48_000;
|
|
6
13
|
export const promptToolDefinitions = [
|
|
7
14
|
{
|
|
8
15
|
name: "get_message_prompt",
|