@businesskit/agent 1.0.5 → 1.0.8
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/.claude-plugin/marketplace.json +1 -1
- package/.claude-plugin/plugin.json +1 -1
- package/.cursor-plugin/plugin.json +1 -1
- package/.superconsole-plugin/plugin.json +61 -31
- package/AGENTS.md +33 -15
- package/README.md +101 -113
- package/bin/businesskit.js +47 -8
- package/commands/brief.md +12 -0
- package/commands/chase.md +12 -0
- package/commands/competitors.md +12 -0
- package/commands/create-page.md +43 -15
- package/commands/crm.md +13 -0
- package/commands/drafts.md +12 -0
- package/commands/followups.md +13 -0
- package/commands/inbox-rules.md +12 -0
- package/commands/inbox.md +13 -0
- package/commands/otp.md +12 -0
- package/commands/pipeline.md +13 -0
- package/commands/post.md +12 -0
- package/commands/reply.md +12 -0
- package/commands/repurpose.md +12 -0
- package/commands/social-analytics.md +12 -0
- package/commands/social-inbox.md +12 -0
- package/commands/social-reply.md +12 -0
- package/commands/social.md +12 -0
- package/commands/triage.md +12 -0
- package/commands/update-agent.md +33 -0
- package/commands/update-content.md +1 -0
- package/commands/update-page.md +3 -2
- package/commands/write-blog.md +4 -0
- package/commands/write-docs.md +6 -0
- package/commands/write-guide.md +5 -0
- package/commands/write-newsletter.md +4 -0
- package/dist/server.js +7513 -0
- package/mcp_config.json +6 -2
- package/package.json +25 -5
- package/plugin.json +1 -1
- package/scripts/release.js +200 -0
- package/scripts/setup.sh +70 -35
- package/scripts/setup.ts +58 -21
- package/scripts/update.sh +56 -0
- package/server.json +3 -3
- package/skills/README.md +3 -2
- package/skills/cms/SKILL.md +111 -0
- package/skills/cms/references/cms-hubs.md +84 -0
- package/skills/cms/references/html-blocks.md +177 -0
- package/skills/crm/SKILL.md +15 -29
- package/skills/docs/SKILL.md +65 -0
- package/skills/docs/references/how-to.md +155 -0
- package/skills/inbox/SKILL.md +32 -40
- package/skills/pages/SKILL.md +62 -17
- package/skills/pages/references/sections-catalog.json +377 -144
- package/skills/social/SKILL.md +83 -210
- package/skills/social/evals/evals.json +66 -0
- package/skills/social/evals/rubric.md +26 -0
- package/skills/social/examples/repurposing-blog-to-social.md +93 -0
- package/skills/social/examples/weekly-content-calendar.md +30 -0
- package/skills/social/linkedin/SKILL.md +107 -0
- package/skills/social/linkedin/evals/evals.json +106 -0
- package/skills/social/linkedin/evals/rubric.md +28 -0
- package/skills/social/linkedin/examples/gasp-weekly-sprint.md +24 -0
- package/skills/social/linkedin/examples/growth-posts-by-format.md +140 -0
- package/skills/social/linkedin/references/gasp-funnel-and-calibration.md +90 -0
- package/skills/social/linkedin/references/six-growth-formats.md +114 -0
- package/skills/social/references/platforms.md +76 -0
- package/skills/social/references/post-templates.md +105 -0
- package/skills/social/references/reverse-engineering.md +62 -0
- package/src/data/sections-catalog.json +950 -0
- package/src/db.ts +181 -0
- package/src/server.ts +119 -0
- package/src/tools/content.ts +326 -0
- package/src/tools/crm.ts +1416 -0
- package/src/tools/domains.ts +89 -0
- package/src/tools/inbox.ts +1400 -0
- package/src/tools/index.ts +138 -0
- package/src/tools/pages.ts +1217 -0
- package/src/tools/shop.ts +771 -0
- package/src/tools/social.ts +2131 -0
- package/src/tools/system.ts +96 -0
- package/src/tools/types.ts +17 -0
- package/src/worker-tick.ts +394 -0
- package/skills/docs-cms/SKILL.md +0 -53
- package/skills/docs-cms/references/how-to.md +0 -383
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
// src/tools/domains.ts
|
|
2
|
+
// Domain Management MCP Tools: Expiry Tracking & Domain Notes
|
|
3
|
+
|
|
4
|
+
import { execute, query } from '../db.js';
|
|
5
|
+
import type { ToolDefinition, ToolContext } from './types.js';
|
|
6
|
+
|
|
7
|
+
export const domainTools: ToolDefinition[] = [
|
|
8
|
+
{
|
|
9
|
+
name: 'domain_list_expiring',
|
|
10
|
+
domain: 'domains',
|
|
11
|
+
description:
|
|
12
|
+
'List tracked domains from my_domains that are expired or expiring within N days (defaults to 30 days). Returns days left, registrar, auto-renew status, renewal price, and notes.',
|
|
13
|
+
inputSchema: {
|
|
14
|
+
type: 'object',
|
|
15
|
+
properties: {
|
|
16
|
+
days: { type: 'number', description: 'Lookahead horizon in days (e.g. 7, 30, 60). Defaults to 30.' },
|
|
17
|
+
},
|
|
18
|
+
},
|
|
19
|
+
handler: async (args: Record<string, any>, ctx: ToolContext) => {
|
|
20
|
+
const profileId = ctx.profileId;
|
|
21
|
+
const days = Number(args.days || 30);
|
|
22
|
+
const horizonSecs = Math.floor(Date.now() / 1000) + days * 86400;
|
|
23
|
+
|
|
24
|
+
const rows = await query(
|
|
25
|
+
`SELECT id, domain_name, registrar, expiry_date, auto_renew, renewal_price, agent_notes, status
|
|
26
|
+
FROM my_domains
|
|
27
|
+
WHERE profile_id = ? AND (expiry_date <= ? OR status = 'expired')
|
|
28
|
+
ORDER BY expiry_date ASC LIMIT 50`,
|
|
29
|
+
[profileId, horizonSecs]
|
|
30
|
+
);
|
|
31
|
+
|
|
32
|
+
return {
|
|
33
|
+
lookahead_days: days,
|
|
34
|
+
total: rows.length,
|
|
35
|
+
domains: rows.map((r: any) => ({
|
|
36
|
+
id: r.id,
|
|
37
|
+
domain: r.domain_name,
|
|
38
|
+
registrar: r.registrar,
|
|
39
|
+
expiry_date: r.expiry_date,
|
|
40
|
+
auto_renew: Boolean(r.auto_renew),
|
|
41
|
+
renewal_price: r.renewal_price,
|
|
42
|
+
agent_notes: r.agent_notes,
|
|
43
|
+
status: r.status,
|
|
44
|
+
})),
|
|
45
|
+
};
|
|
46
|
+
},
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
name: 'domain_set_agent_notes',
|
|
50
|
+
domain: 'domains',
|
|
51
|
+
description:
|
|
52
|
+
'Record agent analysis, recommendation, or renewal reminders into agent_notes on a domain without overwriting user notes.',
|
|
53
|
+
inputSchema: {
|
|
54
|
+
type: 'object',
|
|
55
|
+
properties: {
|
|
56
|
+
id: { type: 'string', description: "Domain row ID or domain name (e.g. 'dom_xyz' or 'example.com')" },
|
|
57
|
+
text: { type: 'string', description: 'Agent analysis or notes to save' },
|
|
58
|
+
},
|
|
59
|
+
required: ['id', 'text'],
|
|
60
|
+
},
|
|
61
|
+
handler: async (args: Record<string, any>, ctx: ToolContext) => {
|
|
62
|
+
const profileId = ctx.profileId;
|
|
63
|
+
const ref = String(args.id).trim();
|
|
64
|
+
const text = String(args.text).trim();
|
|
65
|
+
|
|
66
|
+
const domains = await query<{ id: string; domain_name: string }>(
|
|
67
|
+
'SELECT id, domain_name FROM my_domains WHERE profile_id = ? AND (id = ? OR domain_name = ?) LIMIT 1',
|
|
68
|
+
[profileId, ref, ref]
|
|
69
|
+
);
|
|
70
|
+
|
|
71
|
+
if (domains.length === 0) {
|
|
72
|
+
throw new Error(`Domain not found with identifier: ${ref}`);
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
const domain = domains[0];
|
|
76
|
+
await execute(
|
|
77
|
+
"UPDATE my_domains SET agent_notes = ?, updated_at = strftime('%s','now') WHERE id = ? AND profile_id = ?",
|
|
78
|
+
[text, domain.id, profileId]
|
|
79
|
+
);
|
|
80
|
+
|
|
81
|
+
return {
|
|
82
|
+
id: domain.id,
|
|
83
|
+
domain: domain.domain_name,
|
|
84
|
+
agent_notes: text,
|
|
85
|
+
status: 'updated',
|
|
86
|
+
};
|
|
87
|
+
},
|
|
88
|
+
},
|
|
89
|
+
];
|