@sendinel/mcp-server 1.0.197 → 1.0.199
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/build/plan-limits.js +2 -0
- package/build/tools/contacts.js +1 -1
- package/build/tools/warmup.js +2 -2
- package/package.json +1 -1
package/build/plan-limits.js
CHANGED
|
@@ -2,6 +2,8 @@ import { adminDb } from './db.js';
|
|
|
2
2
|
import { getProjectId } from './project.js';
|
|
3
3
|
/** Shared cap copy for single adds and bulk imports, without assuming a plan tier. */
|
|
4
4
|
export function contactLimitMessage(limit, newCount) {
|
|
5
|
+
if (limit.limit < 0)
|
|
6
|
+
return 'Your contact limit is unlimited.';
|
|
5
7
|
const usage = `(${limit.current}/${limit.limit})`;
|
|
6
8
|
const message = newCount === undefined
|
|
7
9
|
? `Contact limit reached ${usage}.`
|
package/build/tools/contacts.js
CHANGED
|
@@ -1528,7 +1528,7 @@ Requirements: urgency without desperation, acknowledge the gap, one clear CTA, v
|
|
|
1528
1528
|
if (newCount > 0) {
|
|
1529
1529
|
const limit = await checkPlanLimit('contacts');
|
|
1530
1530
|
const remaining = Math.max(0, limit.limit - limit.current);
|
|
1531
|
-
if (newCount > remaining) {
|
|
1531
|
+
if (limit.limit >= 0 && newCount > remaining) {
|
|
1532
1532
|
return contactInputError('plan_limit', contactLimitMessage(limit, newCount));
|
|
1533
1533
|
}
|
|
1534
1534
|
}
|
package/build/tools/warmup.js
CHANGED
|
@@ -17,8 +17,8 @@ export function registerWarmupTools(server) {
|
|
|
17
17
|
inputSchema: { site_id: z.string().uuid() },
|
|
18
18
|
}, async ({ site_id }) => {
|
|
19
19
|
const { data, error } = await db().from('domain_health')
|
|
20
|
-
.select('warmup_day, warmup_daily_limit, total_sent, check_date')
|
|
21
|
-
.eq('project_id', getProjectId())
|
|
20
|
+
.select('warmup_day, warmup_daily_limit, total_sent, check_date, sites!inner(project_id)')
|
|
21
|
+
.eq('sites.project_id', getProjectId())
|
|
22
22
|
.eq('site_id', site_id)
|
|
23
23
|
.order('check_date', { ascending: false })
|
|
24
24
|
.limit(1)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sendinel/mcp-server",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.199",
|
|
4
4
|
"description": "AI-controlled email operations control plane for campaigns, contacts, segments, analytics, and multi-provider sending via MCP.",
|
|
5
5
|
"mcpName": "ai.sendinel/mcp-server",
|
|
6
6
|
"type": "module",
|