@sellable/mcp 0.1.555 → 0.1.556
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.
|
@@ -27,6 +27,12 @@ type RefillV2ApprovalPreparationInput = Pick<RefillSendsV2Input, "workspaceId" |
|
|
|
27
27
|
now?: Date;
|
|
28
28
|
approvalExpiresAt?: string;
|
|
29
29
|
};
|
|
30
|
+
export declare function resolveRefillV2InstalledIdentity(env?: Record<string, string | undefined>): {
|
|
31
|
+
readonly mcpVersion: string;
|
|
32
|
+
readonly installVersion: string;
|
|
33
|
+
readonly pluginVersion: string;
|
|
34
|
+
readonly cacheIdentity: string;
|
|
35
|
+
};
|
|
30
36
|
export declare const REFILL_V2_RUNTIME_IDENTITY: {
|
|
31
37
|
readonly contract: {
|
|
32
38
|
readonly version: "2.0.0";
|
|
@@ -34,10 +40,10 @@ export declare const REFILL_V2_RUNTIME_IDENTITY: {
|
|
|
34
40
|
readonly cacheKey: "refill-contract-v1";
|
|
35
41
|
};
|
|
36
42
|
readonly installed: {
|
|
37
|
-
readonly mcpVersion:
|
|
38
|
-
readonly installVersion:
|
|
39
|
-
readonly pluginVersion:
|
|
40
|
-
readonly cacheIdentity:
|
|
43
|
+
readonly mcpVersion: string;
|
|
44
|
+
readonly installVersion: string;
|
|
45
|
+
readonly pluginVersion: string;
|
|
46
|
+
readonly cacheIdentity: string;
|
|
41
47
|
};
|
|
42
48
|
};
|
|
43
49
|
export declare const refillSendsV2ToolDefinitions: {
|
|
@@ -143,10 +149,10 @@ export declare function prepareRefillSendsV2Approval(input: RefillV2ApprovalPrep
|
|
|
143
149
|
cacheKey: "refill-contract-v1";
|
|
144
150
|
};
|
|
145
151
|
installed: {
|
|
146
|
-
mcpVersion:
|
|
147
|
-
installVersion:
|
|
148
|
-
pluginVersion:
|
|
149
|
-
cacheIdentity:
|
|
152
|
+
mcpVersion: string;
|
|
153
|
+
installVersion: string;
|
|
154
|
+
pluginVersion: string;
|
|
155
|
+
cacheIdentity: string;
|
|
150
156
|
};
|
|
151
157
|
};
|
|
152
158
|
approvalFingerprint: string;
|
|
@@ -8,18 +8,26 @@ import { getPrepareCampaignMessagesStatus, stopSatisfiedPrepareCampaignMessages,
|
|
|
8
8
|
import { getRefillPlanV2 } from "./evergreen-refill-plan.js";
|
|
9
9
|
import { executeOneYoloPrimitive, executeStartCampaignPrimitive, prepareRowSelectorValue, refillPrepareRequestHash, refreshPaidInmailCreditsWithRetry, } from "./refill-executors.js";
|
|
10
10
|
import { runSchedulerSweep } from "./scheduler-run.js";
|
|
11
|
+
function installedIdentityEnv(env, name, fallback) {
|
|
12
|
+
const value = env[name]?.trim();
|
|
13
|
+
return value || fallback;
|
|
14
|
+
}
|
|
15
|
+
export function resolveRefillV2InstalledIdentity(env = process.env) {
|
|
16
|
+
const mcpVersion = installedIdentityEnv(env, "SELLABLE_MCP_PACKAGE_VERSION", "unresolved-mcp");
|
|
17
|
+
return {
|
|
18
|
+
mcpVersion,
|
|
19
|
+
installVersion: installedIdentityEnv(env, "SELLABLE_INSTALL_PACKAGE_VERSION", "unresolved-install"),
|
|
20
|
+
pluginVersion: installedIdentityEnv(env, "SELLABLE_CODEX_PLUGIN_VERSION", "unresolved-plugin"),
|
|
21
|
+
cacheIdentity: installedIdentityEnv(env, "SELLABLE_PLUGIN_CACHE_IDENTITY", `mcp-package:${mcpVersion}`),
|
|
22
|
+
};
|
|
23
|
+
}
|
|
11
24
|
export const REFILL_V2_RUNTIME_IDENTITY = {
|
|
12
25
|
contract: {
|
|
13
26
|
version: REFILL_CONTRACT_VERSION,
|
|
14
27
|
hash: REFILL_CONTRACT_HASH,
|
|
15
28
|
cacheKey: REFILL_CONTRACT_CACHE_VERSION,
|
|
16
29
|
},
|
|
17
|
-
installed:
|
|
18
|
-
mcpVersion: "phase98-local",
|
|
19
|
-
installVersion: "phase98-local",
|
|
20
|
-
pluginVersion: "phase98-local",
|
|
21
|
-
cacheIdentity: "phase98-local-plugin-cache",
|
|
22
|
-
},
|
|
30
|
+
installed: resolveRefillV2InstalledIdentity(),
|
|
23
31
|
};
|
|
24
32
|
const FORBIDDEN_ACTIONS = [
|
|
25
33
|
"Do not schedule sends.",
|
|
@@ -509,10 +509,10 @@ export declare function executeRefillSendsCommand(input?: RefillSendsCommandInpu
|
|
|
509
509
|
cacheKey: "refill-contract-v1";
|
|
510
510
|
};
|
|
511
511
|
installed: {
|
|
512
|
-
mcpVersion:
|
|
513
|
-
installVersion:
|
|
514
|
-
pluginVersion:
|
|
515
|
-
cacheIdentity:
|
|
512
|
+
mcpVersion: string;
|
|
513
|
+
installVersion: string;
|
|
514
|
+
pluginVersion: string;
|
|
515
|
+
cacheIdentity: string;
|
|
516
516
|
};
|
|
517
517
|
};
|
|
518
518
|
approvalFingerprint: string;
|