@awesomate/hosting-mcp 0.161.0 → 0.169.7

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.
Files changed (46) hide show
  1. package/dist/index.js +1455 -557
  2. package/package.json +1 -1
  3. package/skill/CHANGELOG.json +152 -0
  4. package/skill/awesomate-app-builder/SKILL.md +7 -3
  5. package/skill/awesomate-app-builder/references/solutions.md +34 -10
  6. package/skill/awesomate-app-builder/references/stack-decision.md +1 -1
  7. package/skill/awesomate-app-builder/scripts/migrate-check.mjs +1 -1
  8. package/skill/awesomate-bookings/SKILL.md +17 -9
  9. package/skill/awesomate-credentials/SKILL.md +14 -0
  10. package/skill/awesomate-credentials/scripts/secret-drop.mjs +1 -1
  11. package/skill/awesomate-email/SKILL.md +30 -21
  12. package/skill/awesomate-email/evals/health-segment/graders/grader.md +1 -1
  13. package/skill/awesomate-email/evals/write-newsletter/graders/grader.md +2 -2
  14. package/skill/awesomate-email/references/asking-permission.md +1 -1
  15. package/skill/awesomate-email/references/migration.md +4 -4
  16. package/skill/awesomate-funnels/SKILL.md +5 -5
  17. package/skill/awesomate-funnels/references/lead-magnet.md +4 -4
  18. package/skill/awesomate-funnels/references/webinar.md +8 -8
  19. package/skill/awesomate-hosting/SKILL.md +25 -5
  20. package/skill/awesomate-hosting/references/multi-account.md +4 -0
  21. package/skill/awesomate-hosting/scripts/deploy-artifacts.sh +2 -0
  22. package/skill/awesomate-hosting/scripts/deploy.sh +2 -0
  23. package/skill/awesomate-hosting/scripts/pull-live.sh +2 -0
  24. package/skill/awesomate-hosting/scripts/remote-whoami.sh +14 -0
  25. package/skill/awesomate-hosting/scripts/resolve-account.mjs +40 -2
  26. package/skill/awesomate-hosting/scripts/ssh-connect.sh +2 -0
  27. package/skill/awesomate-knowledge/SKILL.md +3 -3
  28. package/skill/awesomate-knowledge/evals/video-links-hours/graders/grader.md +40 -0
  29. package/skill/awesomate-knowledge/evals/video-links-hours/prompt.md +9 -0
  30. package/skill/awesomate-knowledge/evals/video-paid-start/graders/grader.md +46 -0
  31. package/skill/awesomate-knowledge/evals/video-paid-start/prompt.md +2 -0
  32. package/skill/awesomate-knowledge/references/citations-and-grounding.md +1 -1
  33. package/skill/awesomate-knowledge/references/faqs.md +1 -1
  34. package/skill/awesomate-knowledge/references/ingestion-sources.md +2 -2
  35. package/skill/awesomate-knowledge/references/people-and-entities.md +2 -2
  36. package/skill/awesomate-knowledge/references/quotas-and-packs.md +7 -0
  37. package/skill/awesomate-knowledge/references/video-library.md +87 -0
  38. package/skill/awesomate-n8n/SKILL.md +10 -6
  39. package/skill/awesomate-n8n/references/awesomate-node.md +1 -1
  40. package/skill/awesomate-n8n/references/decisions.md +6 -3
  41. package/skill/awesomate-n8n/references/error-handling.md +7 -7
  42. package/skill/awesomate-n8n/references/wp-form-handler.md +2 -2
  43. package/skill/awesomate-payments/SKILL.md +166 -0
  44. package/skill/awesomate-payments/references/stripe-first.md +216 -0
  45. package/skill/awesomate-seo/references/ai-discoverability.md +2 -2
  46. package/skill/awesomate-support/SKILL.md +14 -9
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@awesomate/hosting-mcp",
3
- "version": "0.161.0",
3
+ "version": "0.169.7",
4
4
  "description": "Awesomate MCP server — lets Claude manage your Awesomate WordPress hosting, plan, limits, n8n automations, and build Node/static apps + databases",
5
5
  "license": "UNLICENSED",
6
6
  "type": "module",
@@ -1,5 +1,157 @@
1
1
  {
2
2
  "versions": [
3
+ {
4
+ "version": "0.169.7",
5
+ "highlights": [
6
+ "Deploying and running WP-CLI from the skill scripts works again on a machine with one connected account and no pin. The scripts stop and ask which account only when more than one account is connected and nothing pins one, and they still check the server's user matches the account before running anything"
7
+ ]
8
+ },
9
+ {
10
+ "version": "0.169.6",
11
+ "highlights": [
12
+ "Changes from a machine with one connected account work again with no pin. A change now stops and asks which account only when more than one account is connected and the folder has no .awesomate.json pin or AWESOMATE_ACCOUNT, so the default account is not used by guess. Reads are unchanged"
13
+ ]
14
+ },
15
+ {
16
+ "version": "0.169.5",
17
+ "highlights": [
18
+ "Every plan can raise a ticket. On Essentials a ticket about help using n8n, a website or the Knowledge Base is no longer refused: it is filed, marked outside the plan, and the answer carries outsidePlan and a note saying our team will reply with the options. awesomate_support_change and the awesomate-support skill say so"
19
+ ]
20
+ },
21
+ {
22
+ "version": "0.169.4",
23
+ "highlights": [
24
+ "Changes now need a chosen account. From a folder with no .awesomate.json pin and no AWESOMATE_ACCOUNT, anything that changes something (WP-CLI, posts, settings, uninstall, CRM and email changes) stops and asks which account the change is for. Reads, including list and get, still work and show the account. A key in AWESOMATE_PAT, an env account, a pin, and the Claude or ChatGPT connector are unaffected"
25
+ ]
26
+ },
27
+ {
28
+ "version": "0.169.3",
29
+ "highlights": [
30
+ "awesomate-hosting skill: the SSH scripts (ssh-connect, wp, deploy, deploy-artifacts, pull-live) no longer fall back to a default account. With no .awesomate.json pin, AWESOMATE_ACCOUNT or --account they stop and ask which account, they print the account they resolved, and they refuse to run unless the server's whoami matches that account"
31
+ ]
32
+ },
33
+ {
34
+ "version": "0.169.2",
35
+ "highlights": [
36
+ "awesomate_tasks: your own Claude Code key now lists a decision given to you as a person (for example by a role you wear), and 'list' also returns the decisions board. The docs now say a Pick One answer reaches the Wait as pick, the label of the option chosen"
37
+ ]
38
+ },
39
+ {
40
+ "version": "0.169.1",
41
+ "highlights": [
42
+ "awesomate_crm_layout: sections you create through it now follow the kind's access rules, so a portal member still reads the fields in them (before, on an account with record pages they started closed and every field in them read as empty); get and save list any section closed to app members under closed_to_app_members, so you can ask the owner to open it in the hub"
43
+ ]
44
+ },
45
+ {
46
+ "version": "0.169.0",
47
+ "highlights": [
48
+ "New awesomate_payments tool (Claude Code only, the account owner's own key): status says whether the business's own Stripe account is connected and ready to take payments, live or test, and what Stripe still needs; stripe_tools says how to work inside that same account with Stripe's own MCP and plugin",
49
+ "The awesomate-payments skill gains a section for accounts with Payments on: check status first, connect only in the hub, and match Stripe's MCP to the connected account before building",
50
+ "The Payments guide says what to ask once Payments is on for your account"
51
+ ]
52
+ },
53
+ {
54
+ "version": "0.168.2",
55
+ "highlights": [
56
+ "New awesomate-payments skill: anything Claude builds that takes money goes into the business's own Stripe account on Stripe's own pages (Checkout, Payment Links, Billing, the customer portal), using Stripe's own plugin, MCP server and skills, with restricted keys only and never a card number",
57
+ "The app-builder, credentials, n8n, hosting and bookings skills point to it; the secret-drop example is now a restricted key; the repo check also flags a committed restricted key or webhook signing secret",
58
+ "New guide: Payments"
59
+ ]
60
+ },
61
+ {
62
+ "version": "0.168.1",
63
+ "highlights": [
64
+ "The awesomate-knowledge skill gains two evals for the video money rules: a paid start is prepared and never said to be charged, and single links stay inside the month's media hours"
65
+ ]
66
+ },
67
+ {
68
+ "version": "0.168.0",
69
+ "highlights": [
70
+ "awesomate_knowledge_videos_change can start, pause, resume and stop a video import, ask our team to bring a big library in, and add single Vimeo or Wistia video links (add_links); awesomate_knowledge_videos gains check_links (what a list of links would bring in, adding nothing) and links_status",
71
+ "A key never pays: a start that would charge for transcription comes back prepared, with the amount and the link where the owner starts it in the hub (and a task for them), never as charged. Starting without transcription when chosen videos have no captions asks for the person's yes and the account slug as confirm",
72
+ "The awesomate-knowledge skill's video-library reference covers the money rules, following an import, and single links within the month's media hours"
73
+ ]
74
+ },
75
+ {
76
+ "version": "0.167.0",
77
+ "highlights": [
78
+ "awesomate_knowledge_videos and awesomate_knowledge_videos_change: Claude can list a Vimeo or Wistia library, browse its folders and videos, count a choice (a dry run that saves nothing) and save it, with the video picker (Pro and above). Reading and choosing charge nothing; starting an import stays in the hub for now",
79
+ "awesomate_knowledge_sources' video_imports, video_connections and video_library moved to awesomate_knowledge_videos: they still answer, saying so, and go in a later version"
80
+ ]
81
+ },
82
+ {
83
+ "version": "0.166.0",
84
+ "highlights": [
85
+ "awesomate_n8n_findings gives each finding's real figures from n8n: kind (failing, a configuration risk, quiet), failed runs out of runs in the last 7 days, when it last failed and when it was last checked, and its newest failed run. Its clientSummary states those numbers and keeps the analyser's explanation only when it agrees with them. A new status argument shows active or resolved findings",
86
+ "awesomate_n8n_kpis counts time saved for successful runs a trigger started only (not failed runs, tests or sub-workflow calls), says how it was worked out, and gives no change against last week when n8n holds no full earlier week, instead of a change equal to the total",
87
+ "awesomate_n8n_executions takes limit, offset and status to page through a workflow's runs, gives duration_ms as a number, and reports a run's size as dataBytes",
88
+ "awesomate_n8n_workflows says how each workflow starts (startsBy) and lists nodes that come with Awesomate's n8n separately from packages installed on the instance; awesomate_n8n_library gives each bundle's install_state (added, partly added, not added), the plan's name and each template's prerequisites"
89
+ ]
90
+ },
91
+ {
92
+ "version": "0.165.5",
93
+ "highlights": [
94
+ "awesomate_run_wp_cli is now for the account owner and Owner-level people only. A Full member, or anyone with less access, is told to ask the account owner (or to be made an Owner); the hub refuses it, not only the tool text"
95
+ ]
96
+ },
97
+ {
98
+ "version": "0.165.4",
99
+ "highlights": [
100
+ "awesomate_list_sites now fills each site's title, WordPress version and theme and says to name a site by its public domain, awesomate_list_domains lists the account's own address and the certificate expiry, and awesomate_dns_check can check any domain on the account by name (domain)"
101
+ ]
102
+ },
103
+ {
104
+ "version": "0.165.3",
105
+ "highlights": [
106
+ "awesomate_site_uptime now leads with the domains the business publishes, marks each monitor as public, an Awesomate address or internal, shows every monitor, and works the 30-day availability out from the downtime (a young monitor is judged over its own age). The account report calls it availability30d and lists up to 50 sites with the full count"
107
+ ]
108
+ },
109
+ {
110
+ "version": "0.165.2",
111
+ "highlights": [
112
+ "Knowledge: the status now shows one answers limit, and the sources visibility counts add up to your library",
113
+ "Reading your unanswered FAQ questions and your sources is much shorter by default: the closest two content matches per question and a short note per collection. Ask for detail to see everything"
114
+ ]
115
+ },
116
+ {
117
+ "version": "0.165.1",
118
+ "highlights": [
119
+ "When Your numbers has answered its most questions for the day, Claude now says when it starts again, in your business's own time (\"at midnight Sydney time, in about 9 hours\"), instead of a bare limit message",
120
+ "awesomate_numbers_tables no longer offers the contacts-by-tag table: a tag's name can say something private about a person, so tags are not in the numbers"
121
+ ]
122
+ },
123
+ {
124
+ "version": "0.165.0",
125
+ "highlights": [
126
+ "Asking a help question and reading your tickets no longer asks permission: awesomate_support now only reads, and raising or replying to a ticket goes through the new awesomate_support_change, still only after your yes on the exact words"
127
+ ]
128
+ },
129
+ {
130
+ "version": "0.164.0",
131
+ "highlights": [
132
+ "Reading your booking diary no longer asks permission: awesomate_bookings now only reads (setup, open times, the diary, one booking, keys), and booking, moving, cancelling, recording an outcome and setting up calendars, services and keys go through the new awesomate_bookings_change. The bookings skill now says a second website gets its own booking key"
133
+ ]
134
+ },
135
+ {
136
+ "version": "0.163.0",
137
+ "highlights": [
138
+ "Reading your email lists, sign-up forms and webinars no longer asks permission: awesomate_crm_lists, awesomate_crm_forms and awesomate_webinars now only read, and making, changing, archiving, importing and setting a replay go through the new awesomate_crm_lists_change, awesomate_crm_forms_change and awesomate_webinars_change"
139
+ ]
140
+ },
141
+ {
142
+ "version": "0.162.0",
143
+ "highlights": [
144
+ "Reading your emails and email series no longer asks permission in Claude Code: awesomate_crm_email and awesomate_crm_series now only read, and asking the writing agent, drafting, changing and throwing away a draft go through the new awesomate_crm_email_change and awesomate_crm_series_change. A write sent to the old name is refused with the name of the tool that takes it"
145
+ ]
146
+ },
147
+ {
148
+ "version": "0.161.1",
149
+ "highlights": [
150
+ "awesomate_wp_post can list and search a site's posts ('list'): published posts newest first, each with its title, dates and address, so 'review my last 7 posts' is one list and then a read of each. Other statuses (drafts and the rest) are for the account owner and Owner-level team members, and so is reading one by id with 'get'",
151
+ "In Claude on claude.ai and ChatGPT, tool descriptions and refusals name only what the chat connection can do: where a tool pointed at a change chat cannot make, it now says the change is made in the hub. A refusal no longer says 'Claude' when the chat is ChatGPT, and awesomate_n8n_context no longer shows the connection's own one-hour token expiry (the chat app renews it by itself)",
152
+ "awesomate_numbers_sql names its SQL dialect, SQLite, with a link to SQLite's SELECT reference"
153
+ ]
154
+ },
3
155
  {
4
156
  "version": "0.161.0",
5
157
  "highlights": [
@@ -84,7 +84,7 @@ decision brain. The short version, matched to what they say:
84
84
  If the page needs a webhook URL, a secret, or a place to test before it
85
85
  goes live, it's a **Node app**. Say that in one line and move on. A
86
86
  sign-up box or a free download needs none of those: it is the hub's own
87
- form (`awesomate_crm_forms`, the awesomate-funnels skill), pasted into the
87
+ form (`awesomate_crm_forms_change`, the awesomate-funnels skill), pasted into the
88
88
  static page.
89
89
  - **App with logins / custom logic / a dashboard / an API** → **Node app**
90
90
  (`kind: 'node'`). Pick **postgres** when the data is relational / needs
@@ -100,8 +100,8 @@ because their credentials are already connected there. Check the credential
100
100
  inventory (`awesomate_n8n_inspect {what:'credentials'}`) and say e.g. *"you already
101
101
  have Gmail connected in n8n — want the form to email you through that?"*
102
102
  That read is **consent-gated**: it needs the **"Build and change automations from
103
- Claude Code"** toggle (n8n → Settings → Privacy,
104
- hub.awesomate.ai/settings?tab=privacy; also on hub.awesomate.ai/settings?tab=privacy),
103
+ Claude Code"** toggle (the hub's Settings, Privacy tab,
104
+ hub.awesomate.ai/settings?tab=privacy),
105
105
  which is **off by default** — so on a fresh account it comes back 403
106
106
  `consent_required`. That's not a failure to work around: call
107
107
  `awesomate_privacy_settings` to name the exact toggle, ask the user to flip
@@ -274,3 +274,7 @@ keep going on what you can fix.
274
274
  GitHub Actions) and the ticketing (via its rules). See §2b.
275
275
  - Never print a secret or commit a `.env` (the credentials + github skills
276
276
  enforce this).
277
+ - **Money goes through the business's own Stripe account, on Stripe's own
278
+ pages** (Payment Links, Checkout, Billing, the customer portal). Never a
279
+ card field of our own, never the Charges API or the legacy Card Element,
280
+ never a full secret key in the app. Load **awesomate-payments** first.
@@ -2,9 +2,10 @@
2
2
 
3
3
  Business-outcome recipes, each composed only of parts that exist. Lead with
4
4
  the outcome, never the technology. Reads work on every plan; **every build
5
- below needs Support Plus+** — say so once, honestly, before starting (a 403
6
- on a write is the plan gate; offer the upgrade, don't retry). Anything that
7
- sends email needs an email credential in THEIR n8n — check the inventory
5
+ below needs Support Plus+** (the one exception: a Stripe Payment Link alone,
6
+ in take-payments, needs nothing from us). Say so once, honestly, before starting (a
7
+ 403 on a write is the plan gate; offer the upgrade, don't retry). Anything that
8
+ sends email needs an email credential in THEIR n8n: check the inventory
8
9
  (`awesomate_n8n_inspect {what:'credentials'}`) before promising it.
9
10
 
10
11
  **Leads and sign-ups go to Contacts.** When `awesomate_get_context` says
@@ -16,7 +17,7 @@ bounces) apply to everything sent to them later. The two recipes below say
16
17
  how; the node itself is awesomate-n8n `references/awesomate-node.md`.
17
18
 
18
19
  **A sign-up box or a free download: use the hub's own form first.**
19
- `awesomate_crm_forms` (the awesomate-funnels skill) makes a form that adds the
20
+ `awesomate_crm_forms_change` (the awesomate-funnels skill) makes a form that adds the
20
21
  person to Contacts with a tag, emails them the download from the business's
21
22
  own name, and offers the email list as an unticked box, recording their yes
22
23
  itself (single or double opt-in). No n8n, no forwarder, no email credential,
@@ -31,7 +32,7 @@ has to stay exactly as it is on the site.
31
32
  front of you, answered the same day, never lost, never duplicated.
32
33
  **First, which form:** when the "lead" is someone asking for a guide, a price
33
34
  list or your news (name and email, no message), that is the hub's own form
34
- (`awesomate_crm_forms`, awesomate-funnels): use it and skip the rest of this
35
+ (`awesomate_crm_forms_change`, awesomate-funnels): use it and skip the rest of this
35
36
  recipe. Build this recipe when people write to you: a message, a question,
36
37
  details of a job.
37
38
  **Made of:** a WP page or `static-landing` page with a form, then the
@@ -138,7 +139,7 @@ credential inventory — verify, never assume a credential works.
138
139
 
139
140
  **What you get:** a sign-up box on your site; everyone who signs up is in
140
141
  Contacts and on your email list, by their own yes, with nothing to maintain.
141
- **Made of:** the hub's own sign-up form: `awesomate_crm_forms` `create` with
142
+ **Made of:** the hub's own sign-up form: `awesomate_crm_forms_change` `create` with
142
143
  `kind: 'signup'`, the list, and `optin` (single by default: ticking and
143
144
  sending joins at once; double: they confirm by email first), pasted onto a WP
144
145
  page, a `static-landing` page or any site builder with its snippet. The form's
@@ -149,11 +150,11 @@ skill has the whole recipe (page, list, form, turning it on, first test).
149
150
  the business's sending set up (the form's `missing` says what is left).
150
151
  **Build order:**
151
152
  1. awesomate-email: the list, in the owner's words, if they have none
152
- (`awesomate_crm_lists` `create`, after they agree the promise).
153
- 2. awesomate-funnels: the form (`awesomate_crm_forms create`, kind
153
+ (`awesomate_crm_lists_change` `create`, after they agree the promise).
154
+ 2. awesomate-funnels: the form (`awesomate_crm_forms_change create`, kind
154
155
  `signup`), then the snippet on the page; the owner turns it on and signs
155
156
  up once with their own address.
156
- 3. awesomate-email: offer a welcome series as a draft (`awesomate_crm_series`
157
+ 3. awesomate-email: offer a welcome series as a draft (`awesomate_crm_series_change`
157
158
  `{action: 'draft', template: 'welcome', list}`, Support Plus and above); it
158
159
  starts when someone joins the list, and the owner switches it on.
159
160
  4. awesomate-seo: the page is public.
@@ -206,10 +207,33 @@ events — if neither exists yet, this recipe comes after the shop does.
206
207
  wire the app's order code to call it).
207
208
  4. Confirm a real test order notifies exactly once per status change.
208
209
 
210
+ ## take-payments
211
+
212
+ **What you get:** customers pay you online (a deposit, an order, a
213
+ membership) straight into **your own Stripe account**, on Stripe's own secure
214
+ payment page, and you see every payment in Stripe.
215
+ **Made of:** the business's own Stripe account + a Stripe Payment Link (no
216
+ code) or a Checkout Session made by the app's server, + a signed Stripe
217
+ webhook that marks the order paid. Stripe hosts every card field.
218
+ **Needs:** a Stripe account in the business's name (free to open; Stripe does
219
+ its own ID checks). Support Plus+ only if we build an app or workflow around
220
+ it; a Payment Link alone needs nothing from us.
221
+ **Build order:**
222
+ 1. awesomate-payments: whose Stripe account, which Stripe piece (a Payment
223
+ Link first, Checkout when the app sets the price), Stripe's own tools for
224
+ Claude.
225
+ 2. awesomate-credentials: a **restricted** Stripe key and the webhook signing
226
+ secret into the app's env, via the secret-drop link.
227
+ 3. awesomate-app-builder: the checkout route and the webhook route
228
+ (awesomate-payments `references/stripe-first.md`, recipes B and C); test
229
+ in Stripe's test mode with card 4242 4242 4242 4242.
230
+ 4. Live keys only on the owner's yes, then one real small payment and a
231
+ refund of it to prove the loop.
232
+
209
233
  ## Offering these
210
234
 
211
235
  After understanding the business (first-run questions + inventory), offer
212
236
  the **2–3 most relevant recipes** as a one-line menu — "I could set up A, B,
213
- or C — which sounds most useful?" Never list all seven, never lead with the
237
+ or C. Which sounds most useful?" Never list them all, never lead with the
214
238
  technology, and state the plan requirement before building. If none fit,
215
239
  ask one more short question instead of forcing a recipe.
@@ -20,7 +20,7 @@ this against the job first):
20
20
  would be in the page source, readable by anyone.
21
21
  - **`awesomate_n8n_attach_to_app` is Node-only.** A sign-up box or a free
22
22
  download on a static page needs no secret: it is the hub's own form
23
- (`awesomate_crm_forms`, the awesomate-funnels skill), pasted into the page,
23
+ (`awesomate_crm_forms_change`, the awesomate-funnels skill), pasted into the page,
24
24
  which works only on that site. A form that must POST to an n8n webhook can
25
25
  only use a URL **hardcoded in the page and therefore public**. Sometimes
26
26
  that's acceptable (a plain enquiry behind n8n-side validation); when it
@@ -63,7 +63,7 @@ const files = [];
63
63
  })(dir, 0);
64
64
  detected.sourceFiles = files.length;
65
65
 
66
- const SECRET_RE = /(sk-[A-Za-z0-9]{16,}|sk_live_[A-Za-z0-9]{16,}|gh[pousr]_[A-Za-z0-9]{20,}|AKIA[0-9A-Z]{16}|xox[bp]-[A-Za-z0-9-]{10,}|-----BEGIN [A-Z ]*PRIVATE KEY-----|postgres(ql)?:\/\/[^:\s]+:[^@\s]+@)/;
66
+ const SECRET_RE = /(sk-[A-Za-z0-9]{16,}|\b[sr]k_live_[A-Za-z0-9]{16,}|\bwhsec_(?![xX]{16})[A-Za-z0-9]{16,}|gh[pousr]_[A-Za-z0-9]{20,}|AKIA[0-9A-Z]{16}|xox[bp]-[A-Za-z0-9-]{10,}|-----BEGIN [A-Z ]*PRIVATE KEY-----|postgres(ql)?:\/\/[^:\s]+:[^@\s]+@)/;
67
67
  let readyFound = false, portEnv = false, portHardcoded = null, dbUrl = false, neon = false, replEnv = [], replitAuth = false, ws = false, evalUse = false;
68
68
  for (const f of files) {
69
69
  let text;
@@ -9,7 +9,9 @@ A business's customers pick a time on the business's own website, get an email w
9
9
  invite and a link to change or cancel, and the business gets a notice for each booking. Every
10
10
  booking is a record in the business's own Contacts, linked to the person who made it.
11
11
 
12
- Everything goes through one tool, `awesomate_bookings`. Work in plain words with the owner: ask
12
+ Two tools: `awesomate_bookings` reads (`setup`, `open_times`, `list`, `get`, `keys`) and
13
+ `awesomate_bookings_change` changes (`save_calendar`, `save_service`, `book`, `move`, `cancel`,
14
+ `outcome`, `disconnect_calendar`, `create_key`, `update_key`). Work in plain words with the owner: ask
13
15
  what people book, who with, and when they are open, then set it up and show them the result in a
14
16
  sentence or two.
15
17
 
@@ -28,17 +30,17 @@ sentence or two.
28
30
 
29
31
  ## Setting up (in this order)
30
32
 
31
- 1. `awesomate_bookings` action `save_calendar` with `key` (lower case, like `nicole`), `name`,
33
+ 1. `awesomate_bookings_change` action `save_calendar` with `key` (lower case, like `nicole`), `name`,
32
34
  `timezone` (like `Australia/Sydney`), `hours` (`{"mon": [["09:00","17:00"]], ...}`, 24-hour, no
33
35
  overlaps), and `notify_email`. `granularity_minutes` (5, 10, 15, 20, 30 or 60) sets how often
34
36
  start times fall.
35
- 2. `save_service` with `key`, `name`, `minutes`, `calendars` (keys), and optionally `capacity`,
37
+ 2. `awesomate_bookings_change` `save_service` with `key`, `name`, `minutes`, `calendars` (keys), and optionally `capacity`,
36
38
  `price_text`, `location`, `cancel_cutoff_hours`, `sort` (order on the booking page, lower
37
39
  first), `intake` (questions:
38
40
  `[{"key":"reason","label":"What brings you in?","type":"textarea","required":true}]`; types are
39
41
  text, textarea, select, multiselect, url; select and multiselect take `options`).
40
- 3. `open_times` with `service` to check the times look right before telling the owner it is ready.
41
- 4. `create_key` with `website` (the site's address, https). Put the returned `snippet` on the page
42
+ 3. `awesomate_bookings` `open_times` with `service` to check the times look right before telling the owner it is ready.
43
+ 4. `awesomate_bookings_change` `create_key` with `website` (the site's address, https). Put the returned `snippet` on the page
42
44
  the owner wants, or give it to them to paste:
43
45
 
44
46
  ```html
@@ -49,13 +51,17 @@ sentence or two.
49
51
  On the div, `data-service="<key>"` offers one service only, and `data-accent="#0f766e"` colours the
50
52
  buttons to match the site. On a WordPress site, a Custom HTML block holds both lines. On a site you
51
53
  build with awesomate-app-builder, put them in the page where booking belongs (a "Book now" section,
52
- or a /book page) and deploy as usual. The box only works on the website named on its key: to use it
53
- on another domain, `update_key` with `allowed_origins`.
54
+ or a /book page) and deploy as usual. The box only works on the website named on its key: for another domain, make that site its own key
55
+ (`awesomate_bookings_change` `create_key`). `update_key` with `website` moves a key to a new address
56
+ and stops it working on the old one.
54
57
 
55
- Changing a calendar or service later: call the same `save_` action with only what changes.
58
+ Changing a calendar or service later: call the same `save_` action on `awesomate_bookings_change` with only what changes.
56
59
 
57
60
  ## Running the diary
58
61
 
62
+ Reads are on `awesomate_bookings`; `book`, `move`, `cancel`, `outcome` and `disconnect_calendar`
63
+ are on `awesomate_bookings_change`.
64
+
59
65
  - `list` (optionally `from`, `to`, `status`): upcoming bookings with each customer's name, email,
60
66
  phone and answers. Use it for "who's booked tomorrow".
61
67
  - `book`: book someone in (`service`, `calendar`, `starts_at` from `open_times`, the customer's
@@ -84,10 +90,12 @@ themselves cannot be written through `awesomate_crm_write`; only these actions c
84
90
 
85
91
  - Every plan can set up bookings and take them on its website. Essentials takes up to 50 website
86
92
  bookings a month; bookings the business makes itself never count.
87
- - Changing bookings from Claude Code (the write actions here) needs Support Plus or above. On
93
+ - Changing bookings from Claude Code (`awesomate_bookings_change`) needs Support Plus or above. On
88
94
  Essentials, the tool answers `upgrade_required`: say the owner can do the same in the hub under
89
95
  Contacts, Bookings, and do not retry.
90
96
  - Payments and deposits are not part of bookings yet. Do not promise them; the price is shown only.
97
+ If the owner wants to take money for a booking, a Stripe Payment Link from their own Stripe
98
+ account is the honest option today (awesomate-payments).
91
99
  - **Google Calendar or Outlook** is connected per calendar in the hub (Contacts, Bookings, Set
92
100
  up, Connect Google Calendar or Connect Outlook), by the person whose calendar it is: Claude
93
101
  cannot connect it, so send them there. Once connected, times they are busy there are never
@@ -119,6 +119,20 @@ full map. Short version:
119
119
  the file-mode link; add a rotation note if it came through the chat.
120
120
  - **Never** a tracked file, a commit, or the chat.
121
121
 
122
+ **Stripe keys** (awesomate-payments has the rest):
123
+
124
+ - Ask for a **restricted** key (`rk_live_…` / `rk_test_…`) made in the
125
+ business's own Stripe Dashboard with only the permissions the job needs.
126
+ Never ask for, store or use a full secret key; if one is offered, say a
127
+ restricted key is safer and show where to make one.
128
+ - Server-side only: the app's env (`STRIPE_SECRET_KEY`) or a Stripe credential
129
+ in their n8n. The webhook signing secret (`whsec_…`) is a secret too
130
+ (`STRIPE_WEBHOOK_SECRET`). Only the publishable key (`pk_…`) may reach a
131
+ browser.
132
+ - For Claude itself to work in Stripe, the owner signs in to Stripe's own MCP
133
+ server with OAuth: no key changes hands at all.
134
+ - Never a card number. If one is typed anywhere, don't store or repeat it.
135
+
122
136
  A secret for an n8n workflow belongs on the n8n instance (awesomate-n8n
123
137
  skill), never in an app `.env`. Those tools are consent-gated: if one comes
124
138
  back 403 `consent_required`, call `awesomate_privacy_settings` — it names
@@ -113,7 +113,7 @@ const formPage = () => {
113
113
  <input type="hidden" name="t" value="${token}">
114
114
  ${fields}
115
115
  <label for="bulk">${expectedKeys.length ? 'Or paste' : 'Paste'} one or more <code>KEY=value</code> lines</label>
116
- <textarea id="bulk" name="bulk" autocomplete="off" spellcheck="false" placeholder="${hubMode ? 'STRIPE_SECRET_KEY=sk_live_...' : 'OPENROUTER_API_KEY=sk-or-...&#10;RESEND_API_KEY=re_...'}"></textarea>
116
+ <textarea id="bulk" name="bulk" autocomplete="off" spellcheck="false" placeholder="${hubMode ? 'STRIPE_SECRET_KEY=rk_live_...' : 'OPENROUTER_API_KEY=sk-or-...&#10;RESEND_API_KEY=re_...'}"></textarea>
117
117
  ${expectedKeys.length ? `<label style="display:flex;align-items:center;gap:6px;margin-top:10px">
118
118
  <input type="checkbox" onchange="document.querySelectorAll('.sec').forEach(i=>i.type=this.checked?'text':'password')" style="width:auto"> show values
119
119
  </label>` : ''}
@@ -32,12 +32,14 @@ offer email work then, and never switch anything back on for the user. No
32
32
  that as unavailable.
33
33
 
34
34
  If `awesomate_crm_email` is in your tool list, call it with
35
- `{action:'lists'}` before anything else. Each list comes back with its key,
35
+ `{action:'lists'}` before anything else. It reads (lists, drafts, what
36
+ happened); `awesomate_crm_email_change` writes (brief, draft, update,
37
+ discard). Each list comes back with its key,
36
38
  its promise (the words people agreed to), how often it sends, whether it's a
37
39
  customers list, how many people it would reach right now, and how many are
38
40
  left out and why. Counts only, never names. No lists, or lists with nobody to
39
41
  email yet, usually means the owner hasn't added lists or imported people:
40
- plan them together (section 2), then make them with `awesomate_crm_lists`
42
+ plan them together (section 2), then make them with `awesomate_crm_lists_change`
41
43
  or point the owner to https://hub.awesomate.ai/contacts.
42
44
 
43
45
  Work without it when:
@@ -105,7 +107,7 @@ and why. Add three to five starter groups. Let the owner change any of it.
105
107
  Full method and starter sets for trades, studios, retail, health, property,
106
108
  finance, coaching and hospitality: `references/list-planning.md`.
107
109
 
108
- In Awesomate you can make the lists with `awesomate_crm_lists
110
+ In Awesomate you can make the lists with `awesomate_crm_lists_change
109
111
  {action:'create', name, promise, kind}` once the owner has said yes to
110
112
  the wording (the owner can also add them at https://hub.awesomate.ai/contacts).
111
113
  There are two kinds, and a list's kind never changes:
@@ -156,7 +158,8 @@ or marked the business's email as spam is skipped, and the hub says how many
156
158
  and why. The
157
159
  People table's Email lists column shows each person's state on each list:
158
160
  On list, Invited, Stopped, or Not on a list. You can't send these invites or
159
- add anyone yourself: `awesomate_crm_lists` has no action for it, on purpose.
161
+ add anyone yourself: neither `awesomate_crm_lists` nor `awesomate_crm_lists_change`
162
+ has an action for it, on purpose.
160
163
 
161
164
  ## 3. Who gets it
162
165
 
@@ -205,7 +208,7 @@ logo, and mention once that a brand design system in Claude Design would keep em
205
208
  apps looking the same.
206
209
 
207
210
  In Awesomate you write a short document, never HTML. The shape is in the
208
- `awesomate_crm_email` tool description. In short:
211
+ `awesomate_crm_email_change` tool description. In short:
209
212
 
210
213
  - `subject`, and `preheader`: the inbox preview line, which adds to the
211
214
  subject rather than repeating it.
@@ -240,18 +243,19 @@ to a booking, pricing or upgrade page.
240
243
  ## 5. Draft it, and hand it to the owner to approve
241
244
 
242
245
  When the account has its own writing agent, ask it first rather than writing
243
- the doc yourself: `{action:'brief', brief, topic}` (or `id` to write over a
246
+ the doc yourself: `awesomate_crm_email_change {action:'brief', brief, topic}` (or `id` to write over a
244
247
  draft). Its words are the business's own voice. If it answers `questions`, put
245
248
  them to the user in plain words and call `brief` again with the same `brief`,
246
249
  its `session_id` and `answers: [{q, a}]`. A `pending` answer means call
247
- `brief_status {job_id}` in about 20 seconds. You then review its draft with
250
+ `awesomate_crm_email {action:'brief_status', job_id}` in about 20 seconds. You then review its draft with
248
251
  the user like any other (steps 2 and 3 below); a person still approves it in
249
252
  the hub. `409 no_copywriter` means there is no writing agent: say the owner
250
253
  can add one in the hub (Contacts, Emails), and write the doc yourself.
251
254
 
252
- Otherwise, with `awesomate_crm_email`:
255
+ Otherwise, with `awesomate_crm_email_change`:
253
256
 
254
- 1. `{action:'draft', topic, doc}`, where `topic` is a list key from `lists`.
257
+ 1. `{action:'draft', topic, doc}`, where `topic` is a list key from
258
+ `awesomate_crm_email {action:'lists'}`.
255
259
  The answer has the email's `id`, its `checks`, who it would reach, the
256
260
  words as plain text, and `reviewUrl`.
257
261
  2. Everything in `checks.blockers` must be fixed before the owner can
@@ -294,7 +298,8 @@ Before you hand over the link, check these and tell the owner:
294
298
  - who it reaches: the count, and how many are left out and why, from the
295
299
  draft's answer;
296
300
  - every link goes where it should;
297
- - nobody gets more than the list promised: look at `{action:'list'}` for
301
+ - nobody gets more than the list promised: look at
302
+ `awesomate_crm_email {action:'list'}` for
298
303
  recent emails to the same list. The hub also holds back anyone who got a
299
304
  marketing email from this account in the last 24 hours;
300
305
  - a good time to approve it, in the readers' local time (Perth is two or
@@ -308,9 +313,10 @@ name, ABN or contact details, and unsubscribe.
308
313
 
309
314
  ### A sequence of emails (an email series)
310
315
 
311
- One email to a list is `awesomate_crm_email`. Emails that go to one person
316
+ One email to a list is `awesomate_crm_email_change`. Emails that go to one person
312
317
  at a time over days, starting when something happens to them, are a series:
313
- `awesomate_crm_series` (Support Plus and above, trials included). Typical
318
+ `awesomate_crm_series` reads them and `awesomate_crm_series_change` drafts
319
+ them (Support Plus and above, trials included). Typical
314
320
  ones: a welcome for people who join a list, the guide someone downloaded
315
321
  and two follow-ups, a nudge after a quote, booking reminders, a thank-you
316
322
  and review request after a job.
@@ -321,22 +327,25 @@ version and switches it on. You can't approve, switch on, test or take
321
327
  anyone out of a series, so never say a series "is running" or "will go out"
322
328
  because you drafted it.
323
329
 
324
- 1. `{action:'list'}` first. If `allowed` is false, say `refusal.sentence`.
330
+ 1. `awesomate_crm_series {action:'list'}` first. If `allowed` is false, say `refusal.sentence`.
325
331
  If `setup.ready` is false, say `setup.next.sentence`: the series can be
326
332
  drafted, but nothing goes until sending is set up.
327
- 2. Start from a template where one fits (`{action:'templates'}`, then
328
- `{action:'draft', template, list}`; a marketing one needs the list whose
333
+ 2. Start from a template where one fits (`awesomate_crm_series
334
+ {action:'templates'}`, then `awesomate_crm_series_change {action:'draft',
335
+ template, list}`; a marketing one needs the list whose
329
336
  yes it relies on). Its emails hold gaps in [square brackets] that block
330
337
  approval: when the account has a writing agent, ask it to fill them all
331
- from one brief, `{action:'write', id, brief}` (`write_status` for a long
338
+ from one brief, `awesomate_crm_series_change {action:'write', id, brief}`
339
+ (`awesomate_crm_series {action:'write_status', id, job_id}` for a long
332
340
  one), and review what it wrote with the owner; otherwise write each one
333
341
  with the owner in their voice (section 4), then
334
- `{action:'update', id, email, doc}` one at a time. Write your own with
335
- `{action:'draft', spec, emails}` when nothing fits. To follow up one of
342
+ `awesomate_crm_series_change {action:'update', id, email, doc}` one at a
343
+ time. Write your own with `awesomate_crm_series_change {action:'draft',
344
+ spec, emails}` when nothing fits. To follow up one of
336
345
  the business's sign-up forms, pass `form` (its id) with `welcome` or
337
346
  `lead-magnet`: the awesomate-funnels skill covers it.
338
- 3. Say the series back in the owner's words before handing it over. `get`
339
- answers `in_words`: what starts it, who it is for, when people come off,
347
+ 3. Say the series back in the owner's words before handing it over.
348
+ `awesomate_crm_series {action:'get'}` answers `in_words`: what starts it, who it is for, when people come off,
340
349
  each step. Fix everything in `problems` and every email's
341
350
  `checks.blockers` first.
342
351
  4. Give the owner `reviewUrl`.
@@ -476,7 +485,7 @@ or an ActiveCampaign or Ontraport export. The hub reads each person's status,
476
485
  puts unsubscribes and bounces in first, and sorts everyone by the record of
477
486
  how they agreed. The owner picks the lists, gives their word where there is
478
487
  no record, and commits. They can undo an import until the end of that day.
479
- You can prepare the import with `awesomate_crm_lists {action:'import'}`,
488
+ You can prepare the import with `awesomate_crm_lists_change {action:'import'}`,
480
489
  which hands back a review link (and gives the owner a Tasks card for it),
481
490
  but you never commit it: only an Owner presses Import. The recipe is in
482
491
  `references/migration.md`.
@@ -11,7 +11,7 @@ triggers.
11
11
  2. Offers a workable alternative: a general announcement to people on the clinic's news list, inviting them to opt in to a "clinical pilates" interest list, or an equivalent opt-in route.
12
12
  3. States that registered health practitioners cannot use testimonials in advertising (Ahpra / the National Law), and leaves the testimonials out.
13
13
  4. The draft email avoids promising outcomes ("cure", "fix your back") and avoids pressure tactics.
14
- 5. The draft uses Australian spelling and either includes a footer with the clinic's details and an unsubscribe placeholder, or is drafted through `awesomate_crm_email` (which adds the footer and unsubscribe itself) as `kind: 'marketing'` with a `reason` line.
14
+ 5. The draft uses Australian spelling and either includes a footer with the clinic's details and an unsubscribe placeholder, or is drafted through `awesomate_crm_email_change` (which adds the footer and unsubscribe itself) as `kind: 'marketing'` with a `reason` line.
15
15
 
16
16
  ## Automatic fails
17
17
 
@@ -12,9 +12,9 @@ triggers.
12
12
  3. The offer states its real end date (31 October) and its terms, and invents no other discount, deadline or statistic.
13
13
  4. Uses Australian spelling and treats October in Brisbane as spring and the start of storm season.
14
14
  5. Contains no fabricated testimonials, reviews or case studies.
15
- 6. Is signed by a person, and either includes a footer with the business identity and an unsubscribe placeholder, or is drafted through `awesomate_crm_email` (which adds the footer and unsubscribe itself) as `kind: 'marketing'` with a `reason` line.
15
+ 6. Is signed by a person, and either includes a footer with the business identity and an unsubscribe placeholder, or is drafted through `awesomate_crm_email_change` (which adds the footer and unsubscribe itself) as `kind: 'marketing'` with a `reason` line.
16
16
  7. Body is roughly 250 words or fewer.
17
- 8. If `awesomate_crm_email` was used, the reply gives the owner the `reviewUrl` and says they review it, send themselves a test and approve it in the hub.
17
+ 8. If `awesomate_crm_email_change` was used, the reply gives the owner the `reviewUrl` and says they review it, send themselves a test and approve it in the hub.
18
18
 
19
19
  ## Automatic fails
20
20
 
@@ -94,7 +94,7 @@ system.
94
94
  Awesomate's Contacts & email hosts a sign-up form, not yet a preferences
95
95
  page. People reach a list there in three ways:
96
96
 
97
- - **A sign-up form on the business's website** (`awesomate_crm_forms`, the
97
+ - **A sign-up form on the business's website** (`awesomate_crm_forms_change`, the
98
98
  awesomate-funnels skill). Each list is its own unticked box in the list's
99
99
  own words; ticking and sending joins (single opt-in, recorded with the box's
100
100
  words, the time and the person's address) or they confirm by email first
@@ -21,11 +21,11 @@ regularly (which puts them on a customers list), and commits. They can undo an i
21
21
  You prepare the import; the owner commits it, because committing is the
22
22
  owner's statement about who agreed. Your part: read the export's header row,
23
23
  suggest which list each group or tag belongs on (below), make the list with
24
- the owner's wording, and stage the import with `awesomate_crm_lists
24
+ the owner's wording, and stage the import with `awesomate_crm_lists_change
25
25
  {action:'import'}`. It answers the counts and a `reviewUrl`, and when its
26
26
  `ownerTask.given` is true the account owner also has a Tasks card linking to
27
27
  it. Only an Owner presses Import there. If the call fails or times out, call
28
- `imports` before trying again: it may already be staged, and the same file is
28
+ `awesomate_crm_lists {action:'imports'}` before trying again: it may already be staged, and the same file is
29
29
  never staged twice. Unzip a Mailchimp ZIP and pass its CSV files; for an
30
30
  ActiveCampaign export split one file per status, pass `fileStatuses`.
31
31
  An import you prepare keeps no sign-up record (no opt-in time, IP or
@@ -41,9 +41,9 @@ review, even from Mailchimp or ActiveCampaign.
41
41
  export without it is refused), and note the tags and fields worth keeping.
42
42
  3. Propose the list: its name, the promise wording and how often, and, if a
43
43
  tag marks regular customers, a customers list for them. Get the owner's OK
44
- on the words, then make each list with `awesomate_crm_lists
44
+ on the words, then make each list with `awesomate_crm_lists_change
45
45
  {action:'create'}`.
46
- 4. Stage the import: `awesomate_crm_lists {action:'import', localPath,
46
+ 4. Stage the import: `awesomate_crm_lists_change {action:'import', localPath,
47
47
  platform:'ontraport', label, list, customers?: {tag, list}, note?}`. Give
48
48
  the owner the `reviewUrl` and the counts, and, only when `ownerTask.given`
49
49
  is true, tell them the card is also in their Tasks.