@awesomate/hosting-mcp 0.172.46 → 0.172.66

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@awesomate/hosting-mcp",
3
- "version": "0.172.46",
3
+ "version": "0.172.66",
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,11 +1,30 @@
1
1
  {
2
2
  "versions": [
3
- {"version": "0.172.46", "highlights": ["Once the account owner switches on “Let my own Claude, ChatGPT and Grok see my customers”, the owner's own Claude, ChatGPT and Grok can read the booking diary: who is booked when and one booking. Email addresses and phone numbers read [email] and [phone]. Booking, moving and cancelling stay in the hub."]},
4
- {"version": "0.172.45", "highlights": ["awesomate_conversations reads the business's agents' conversations from Claude Code: every call, website chat, in-app chat, text and social message as a record (filter by channel, agent, still going, waiting on a person, one person, or words said), one record with what the agent did, and what was said for the account owner and the people they choose under Settings, Team. Taking over, replying, reviewing and recordings stay in the hub. On accounts with early access."]},
5
- {"version": "0.172.44", "highlights": ["Once the account owner switches on \"Let my own Claude, ChatGPT and Grok see my customers\", the owner's own Claude, ChatGPT and Grok can add and take off a person's tags, up to 5 at a time and 50 a day. A tag that starts an email series you have switched on waits on a card the owner taps in Tasks."]},
6
- {"version": "0.172.43", "highlights": ["Switches named for every AI app: \"Let your AI apps work with your automations\", \"Let your AI apps send emails you've checked\" and \"Let Claude Code act for you\". When one is off, the refusal names it and gives the hub link where the account owner switches it on, instead of describing a place in the hub."]},
7
- {"version": "0.172.42", "highlights": ["Once the account owner switches on \"Let my own Claude, ChatGPT and Grok see my customers\", the owner's own Claude, ChatGPT and Grok can find people in Contacts by name, phone number, ticket or booking day. Names show; email addresses and phone numbers read [email] and [phone]."]},
8
- {"version": "0.172.41", "highlights": ["The account owner's own Claude, ChatGPT and Grok can read the business's support inbox (list tickets, read one, see who a ticket can go to) once the owner switches on \"Let my own Claude, ChatGPT and Grok see my customers\" on the Claude page. Customers' names show; email addresses and phone numbers read [email] and [phone], and files stay in the hub."]},
3
+ {"version": "0.172.66", "highlights": ["awesomate_agents_change 'reset_codes' {agentId, email}: when a real visitor you name hit the limit on email codes (5 a day to one address from your business), lets that address be sent website chat and help centre codes again today (not codes for confirming who someone is), on the account owner's own key while they let it act for them in Agents. The same reset is on the agent's Website chat card in the hub."]},
4
+ {"version": "0.172.65", "highlights": ["Lists that fill from a tag (where the account has them): awesomate_crm_lists 'get' reads one list and 'tag_rule_preview' shows what filling a customers list from a tag would do now, in counts, and each list carries its tag_rules. awesomate_crm_lists_change 'propose_tag_rule' suggests one: it puts nobody on a list and sets no rule, and the account owner sets or declines it in the hub."]},
5
+ {"version": "0.172.64", "highlights": ["The guides and this what's-new list now name the feature each capability needs on the account: your customers in chat (`chat_customers`), the help centre, agents' conversations, one-to-one emails, sending emails you've checked, design system sync, confirming who someone is. Nothing changes in what the tools do."]},
6
+ {"version": "0.172.63", "highlights": ["awesomate_n8n_workflows_change: where the owner switched on \"Claude reads its answer\" for a marked automation (early access), 'run' waits up to 25 seconds and hands back what its last step gave out, and the new 'result' action reads a run's answer afterwards; 'preview' says whether it answers. Only the owner and Owner-level members get the answer.", "awesomate_n8n_executions: a run's debug view gives example items to Owner level only."]},
7
+ {"version": "0.172.62", "highlights": ["The connect now sets up Muse where it is installed: a router skill that sends Muse to the right Awesomate skill, a guide to calling the tools, and one rule in ~/AGENTS.md. It ends by checking the account with the hub and printing the account the folder uses. A connect that moves a folder to another account says so, and --switch <slug> goes back with no new code."]},
8
+ {"version": "0.172.61", "highlights": ["Ask Claude what is waiting in one step of your customer's path: awesomate_business_map action queue lists its open records, oldest first, with how long each has waited, whether it is late, the people it is for and the last time anyone was in touch."]},
9
+ {"version": "0.172.60", "highlights": ["A step on your customer's path can have ways out, such as Lost or Declined, each with the reasons a move there picks from: ask Claude to give the Quote step two ways out. A record moved to one leaves the journey, so it is never counted as waiting or late."]},
10
+ {"version": "0.172.58", "highlights": ["Ask Claude Code to email one person or a few about their job, booking, quote or account: it drafts a one-to-one email with no list (about the record when there is one), and you send it in the hub. When people you picked for a list email are not on that list, Claude offers to make it one-to-one instead. Needs the `email_direct` feature on the account."]},
11
+ {"version": "0.172.57", "highlights": ["Tool help only: awesomate_agents_change's example of an in-app page path is now /orders."]},
12
+ {"version": "0.172.56", "highlights": ["When a chat answer can't show a person because your customers switch doesn't cover it, it now carries the link to Contacts, People in the hub, where you can look them up yourself.", "awesomate_n8n_kpis says plainly when your n8n isn't installed yet, or when the figures can't be read just now and it's worth trying again shortly."]},
13
+ {"version": "0.172.55", "highlights": ["Ask Claude why an email isn't in your support inbox: awesomate_support_desk can now read Email delivery, where every email to your inbox in the last 30 days went (in your inbox, held, not filed, couldn't be filed yet, still being filed, or arrived while your inbox was switched off). It never sees who sent an email or its subject. In ChatGPT, Claude and Grok chat, only the account owner's own connection reads it, with the customers switch on."]},
14
+ {"version": "0.172.54", "highlights": ["Ask Claude, ChatGPT or Grok to publish a help article: it goes to the owner in Tasks, and only their yes puts it on your help centre. Needs the `chat_customers` and `help_centre` features on the account."]},
15
+ {"version": "0.172.53", "highlights": ["On the account owner's own connection, Claude, ChatGPT and Grok can read the business's help centre, add and rename its topics, and write help articles as drafts. A draft reaches the help pages only when someone publishes it in the hub; taking an article down and archiving stay in the hub too. Needs the `chat_customers` and `help_centre` features on the account."]},
16
+ {"version": "0.172.52", "highlights": ["Automation figures agree everywhere: awesomate_n8n_errors now looks back 7 days by default, the same window as awesomate_n8n_kpis, and the dashboard says when its run figures are the same as n8n_kpis’ own.", "Findings name a failure’s step, error type and code even with Details of errors off; the message still needs it on.", "awesomate_numbers_tables answers in fewer words, with a short glossary, and can read one table by name.", "awesomate_knowledge_status says which answer model the account uses by default, apart from the highest one the plan allows."]},
17
+ {"version": "0.172.51", "highlights": ["On the account owner's own chat connection, with “Let my Claude, ChatGPT and Grok send replies on my help desk” switched on, chat can send a reply on a help desk ticket after showing it to the owner and getting their yes. Needs the `chat_customers` feature on the account."]},
18
+ {"version": "0.172.50", "highlights": ["Once the account owner switches on “Let my own Claude, ChatGPT and Grok see my customers”, the owner's own Claude, ChatGPT and Grok can draft a reply on a support ticket (a person sends it from the hub), add a team note, change a ticket's status and assign it. Solving a ticket from chat sends no closing email. Needs the `chat_customers` feature on the account."]},
19
+ {"version": "0.172.49", "highlights": ["Once the account owner switches on “Let my own Claude, ChatGPT and Grok see my customers”, the owner's own Claude, ChatGPT and Grok can read your agents' conversations (website chats, calls and in-app chats) and what was said in them, where your account has it. Email addresses and phone numbers read [email] and [phone]; searching what was said, and call recordings, stay in the hub. A switch left on from before it named the conversations is switched off and on again to cover them. Needs the `chat_customers` and `conversation_api` features on the account."]},
20
+ {"version": "0.172.48", "highlights": ["Once the account owner switches on “Let my own Claude, ChatGPT and Grok see my customers”, the owner's own Claude, ChatGPT and Grok can book, move and cancel bookings, after showing the details and getting the owner's yes: at most 20 a day, never outside open times. The customer gets the usual email unless the owner says they already know. Needs the `chat_customers` feature on the account."]},
21
+ {"version": "0.172.47", "highlights": ["Claude, ChatGPT and Grok read the account in fewer words: what is switched off is listed, what is on is named once, and each chat tool says only what it can do from chat.", "Findings from the error analyser come grouped: one setting missing on many automations is one entry naming them all. Narrow by kind or severity.", "The Tasks list shows what is waiting; what was already done comes with include decided.", "A help answer cites a source with no web address by its title."]},
22
+ {"version": "0.172.46", "highlights": ["Once the account owner switches on “Let my own Claude, ChatGPT and Grok see my customers”, the owner's own Claude, ChatGPT and Grok can read the booking diary: who is booked when and one booking. Email addresses and phone numbers read [email] and [phone]. Booking, moving and cancelling stay in the hub. Needs the `chat_customers` feature on the account."]},
23
+ {"version": "0.172.45", "highlights": ["awesomate_conversations reads the business's agents' conversations from Claude Code: every call, website chat, in-app chat, text and social message as a record (filter by channel, agent, still going, waiting on a person, one person, or words said), one record with what the agent did, and what was said for the account owner and the people they choose under Settings, Team. Taking over, replying, reviewing and recordings stay in the hub. Needs the `conversation_api` feature on the account."]},
24
+ {"version": "0.172.44", "highlights": ["Once the account owner switches on \"Let my own Claude, ChatGPT and Grok see my customers\", the owner's own Claude, ChatGPT and Grok can add and take off a person's tags, up to 5 at a time and 50 a day. A tag that starts an email series you have switched on waits on a card the owner taps in Tasks. Needs the `chat_customers` feature on the account."]},
25
+ {"version": "0.172.43", "highlights": ["Switches named for every AI app: \"Let your AI apps work with your automations\", \"Let your AI apps send emails you've checked\" and \"Let Claude Code act for you\". When one is off, the refusal names it and gives the hub link where the account owner switches it on, instead of describing a place in the hub. The send switch needs the `email_claude_send` feature on the account."]},
26
+ {"version": "0.172.42", "highlights": ["Once the account owner switches on \"Let my own Claude, ChatGPT and Grok see my customers\", the owner's own Claude, ChatGPT and Grok can find people in Contacts by name, phone number, ticket or booking day. Names show; email addresses and phone numbers read [email] and [phone]. Needs the `chat_customers` feature on the account."]},
27
+ {"version": "0.172.41", "highlights": ["The account owner's own Claude, ChatGPT and Grok can read the business's support inbox (list tickets, read one, see who a ticket can go to) once the owner switches on \"Let my own Claude, ChatGPT and Grok see my customers\" on the Claude page. Customers' names show; email addresses and phone numbers read [email] and [phone], and files stay in the hub. Needs the `chat_customers` feature on the account."]},
9
28
  {"version": "0.172.40", "highlights": ["Groundwork for the account owner's own Claude, ChatGPT and Grok to work with their customers (help desk tickets, bookings, tags), behind the owner's own switch on the Claude page. Nothing new is offered yet."]},
10
29
  {"version": "0.172.39", "highlights": ["Grok can connect to Awesomate as a chat app, like Claude and ChatGPT: the guide is now Awesomate in Claude, ChatGPT and Grok (same address) with the steps for grok.com, and an ended connection is told to reconnect in its own chat app's connector settings rather than Claude's or ChatGPT's."]},
11
30
  {"version": "0.172.38", "highlights": ["Email templates can be approved: awesomate_crm_email templates with template_id now gives the template's words, its checks, out_of_date and, with preview: true, the template as built; on the owner's or a named approver's own key it also hands out a review_token. awesomate_crm_email_change template_approve {template_id, review_token, confirm} approves it, only on the person's yes and with the account slug typed back. A block email can be written in an approved template with a place for its words: add template: {id} to its doc. Needs Your own design for forms and emails."]},
@@ -35,10 +54,10 @@
35
54
  {"version": "0.172.14", "highlights": ["Brands, for accounts with more than one (dark, flag brands_client): a folder pins one with \"brand\" in .awesomate.json or AWESOMATE_BRAND, and the tools that write for a brand (contacts, lists, series, email, forms, awesomate_crm_write, installing a template, awesomate_business) take an optional brand argument that wins. A write that needs a brand with none is refused with an ask-the-user hint, never guessed; unsubscribe never needs one. Every answer says which brand it ran for."]},
36
55
  {"version": "0.172.13", "highlights": ["Email series drafts from the claude.ai and ChatGPT chat connector (chat writes step 20, for every account with the chat connector, where Contacts is on): awesomate_crm_series_change is on chat with draft (a series from a template, plus its list, name or form), update (the words of one email) and write (your writing assistant drafts the emails from a brief), and awesomate_crm_series gains write_status. Nothing is switched on from chat: an approver makes a series live in the hub. Email addresses and phone numbers in a series' emails read as [email] or [phone] where chat can see them."]},
37
56
  {"version": "0.172.12", "highlights": ["Making an email list from the claude.ai and ChatGPT chat connector (chat writes step 21, for every account with the chat connector, where Contacts is on): awesomate_crm_lists_change is on chat with `create` only, a new empty list with a name and the exact promise people will agree to, which nobody is put on. Renaming, archiving or restoring a list needs the hub: ask the owner through awesomate_ask_person (list_change)."]},
38
- {"version": "0.172.11", "highlights": ["Email from the claude.ai and ChatGPT chat connector (email quick send step 11, for every account with the chat connector): awesomate_crm_email (lists, list, get, brief_status, recipients, preview) and awesomate_crm_email_change (brief, draft, update, discard, test; send and stop on the account owner's own connection only) are on chat. In a chat, the names of the people an email goes to now show, never their addresses or phone numbers ([email], [phone]), and people are picked by a tag or a saved People list only. Sending from a chat needs a connection made from this version on and the owner's switch, now called \"Let Claude send emails you've checked\", switched on since it covered chats; the same code from the test copy, 250 a send, 1,000 a day and 5-minute hold apply."]},
57
+ {"version": "0.172.11", "highlights": ["Email from the claude.ai and ChatGPT chat connector (email quick send step 11, for every account with the chat connector): awesomate_crm_email (lists, list, get, brief_status, recipients, preview) and awesomate_crm_email_change (brief, draft, update, discard, test; send and stop on the account owner's own connection only) are on chat. In a chat, the names of the people an email goes to now show, never their addresses or phone numbers ([email], [phone]), and people are picked by a tag or a saved People list only. Sending from a chat needs a connection made from this version on and the owner's switch, now called \"Let Claude send emails you've checked\", switched on since it covered chats; the same code from the test copy, 250 a send, 1,000 a day and 5-minute hold apply. Sending needs the `email_claude_send` and `chat_more` features on the account."]},
39
58
  {"version": "0.172.10", "highlights": ["awesomate_crm_forms zernio_accounts: the business's Instagram and Facebook accounts in Zernio, each with can_campaign, so Claude shows the owner which accounts a comment campaign will listen on before writing it (the account owner's key; never asks for the Zernio key in a chat). awesomate_crm_hooks can send events recorded on people: events contact_event with names (up to 10 names or prefixes, campaign: for every campaign stage), body {id, event, name, at, person {email, first_name}, record, data, app}, Pro and above. A tool action can now need two features (zernio_accounts needs campaigns and Zernio channels)."]},
40
59
  {"version": "0.172.9", "highlights": ["Chat (claude.ai, ChatGPT) reads how Contacts is set up, where the account has the chat extras: awesomate_crm_schema and awesomate_crm_metrics (fields AI may read only), awesomate_crm_query series (people by when they were added), awesomate_crm_layout get, awesomate_crm_lists list, imports and import_status (counts, never who is on a list), awesomate_crm_forms ready, list, get and snippet, awesomate_crm_series list, templates, choices and get, and awesomate_crm_queries and awesomate_crm_recipes by name. No one's name or email reaches chat: who staged, approved or switched something on is left out, and addresses and phone numbers in an email's words show as [email] and [phone]. Claude Code is unchanged."]},
41
- {"version": "0.172.8", "highlights": ["Email the people you pick, and send what you checked: awesomate_crm_email_change takes people on draft and update (ids, a tag, a saved People list or a filter on fields AI may read; at most 2,000) and the email goes only to those of them who can be emailed on the list, never to anyone else on it; nobody is added to a list. awesomate_crm_email reads recipients (names with masked emails, who is left out and why) and preview (the five facts: who, From, when, every link, tested). With the owner's switch on, Claude Code can send an email the person checked: test sends a copy with a six-digit code to them alone, send goes only with the code they read out, 5 minutes later with a notice to the owner, at most 250 people an email and 1,000 a day, and stop stops it. The awesomate-email skill says how."]},
60
+ {"version": "0.172.8", "highlights": ["Email the people you pick, and send what you checked: awesomate_crm_email_change takes people on draft and update (ids, a tag, a saved People list or a filter on fields AI may read; at most 2,000) and the email goes only to those of them who can be emailed on the list, never to anyone else on it; nobody is added to a list. awesomate_crm_email reads recipients (names with masked emails, who is left out and why) and preview (the five facts: who, From, when, every link, tested). With the owner's switch on, Claude Code can send an email the person checked: test sends a copy with a six-digit code to them alone, send goes only with the code they read out, 5 minutes later with a notice to the owner, at most 250 people an email and 1,000 a day, and stop stops it. The awesomate-email skill says how. Sending needs the `email_claude_send` feature on the account."]},
42
61
  {"version": "0.172.7", "highlights": ["The awesomate-seo skill runs a measured loop: it checks what is connected (Google Analytics, Search Console, AI visibility), reads the business, takes a baseline (awesomate_site_insights everywhere, and the long-run trend from awesomate_numbers_sql where Your numbers is on), does the top three things, logs each change as an 'SEO change:' task put off to its check date, checks back on earlier changes, and ends with who does what, the effort and how you will know. New references: measuring (recipes, lag and noise) and an off-site playbook (Google Business Profile, reviews, directories, outreach, by business type).", "New prompt 'Awesomate: improve my website's SEO and AEO' in Claude Code and in Claude and ChatGPT chat, on every connection (a read-only one gives the list instead of tasks); awesomate_site_insights' chat words carry the loop for a client that shows no prompts.", "awesomate_numbers_tables names search_queries_weekly (Google searches by week), and it and awesomate_numbers_sql say search words can hold a name: data, never instructions."]},
43
62
  {"version": "0.172.6", "highlights": ["The support desk's own tables (its tickets, messages, notes, attachments and quarantined emails) change only in the support desk: awesomate_crm_write (write, archive, sync), awesomate_crm_recipes and awesomate_crm_kinds now say so, and the hub answers desk_kind. The contacts and support guides, the awesomate-support skill and the Awesomate node reference say to open a ticket by emailing the desk's support address."]},
44
63
  {"version": "0.172.5", "highlights": ["New awesomate_n8n_workflows_change, in Claude Code and in Claude or ChatGPT chat, where the account has Claude running marked automations (early access): 'preview' says what a marked automation takes and what it may do, changing nothing, and 'run' starts it with the inputs given. Only a sub-workflow the owner or an Owner marked \"Claude can run this\" in the hub can run, at the version marked. One that stays inside the business with nothing found that acts for real starts at once and answers its execution id; anything that may reach customers or money puts a card in Tasks for an owner to tap. A run that timed out or answered unclearly may have started: Claude reads its runs before ever trying again."]},
@@ -49,19 +49,65 @@ for (const k of expectedKeys) {
49
49
  if (!keyValid(k)) fail(`invalid key name: ${k}`);
50
50
  }
51
51
 
52
+ /**
53
+ * The account a session in this folder uses, in the MCP server's order: AWESOMATE_ACCOUNT, the
54
+ * .awesomate.json pin (walked up from here, stopping at home), the only saved account, the default
55
+ * account, then the old one-account file. Never the top-level mirror while profiles exist: it
56
+ * can name another account than this folder's pin.
57
+ */
58
+ function savedAccount() {
59
+ let raw;
60
+ try { raw = JSON.parse(fs.readFileSync(path.join(os.homedir(), '.awesomate', 'credentials.json'), 'utf8')); } catch { return null; }
61
+ if (!raw || typeof raw !== 'object') return null;
62
+ // Saved accounts with a key, as the MCP server reads them. An old one-account file is one account.
63
+ const profiles = {};
64
+ if (raw.profiles && typeof raw.profiles === 'object') {
65
+ for (const [key, p] of Object.entries(raw.profiles)) if (p && typeof p.pat === 'string' && p.pat) profiles[key] = p;
66
+ } else if (typeof raw.pat === 'string' && raw.pat) {
67
+ profiles[raw.slug || 'default'] = raw;
68
+ }
69
+ const named = (slug, why) => {
70
+ if (profiles[slug]) return profiles[slug];
71
+ fail(`${why} names the account "${slug}", which has no key saved on this computer. Connect it first, or pin this folder to a saved account.`);
72
+ };
73
+ if (process.env.AWESOMATE_ACCOUNT) return named(process.env.AWESOMATE_ACCOUNT, 'AWESOMATE_ACCOUNT');
74
+ const pinPath = (() => {
75
+ const explicit = process.env.AWESOMATE_PIN_FILE;
76
+ if (explicit) return fs.existsSync(explicit) ? explicit : null;
77
+ const home = path.resolve(os.homedir());
78
+ let dir = path.resolve(process.cwd());
79
+ for (;;) {
80
+ const candidate = path.join(dir, '.awesomate.json');
81
+ if (fs.existsSync(candidate)) return candidate;
82
+ if (dir === home) return null;
83
+ const parent = path.dirname(dir);
84
+ if (parent === dir) return null;
85
+ dir = parent;
86
+ }
87
+ })();
88
+ if (pinPath) {
89
+ let account = null;
90
+ try { account = JSON.parse(fs.readFileSync(pinPath, 'utf8'))?.account ?? null; } catch { /* unreadable pin */ }
91
+ if (typeof account !== 'string' || !account) fail(`${pinPath} names no account. Fix it or remove it.`);
92
+ return named(account, pinPath);
93
+ }
94
+ const saved = Object.keys(profiles);
95
+ if (saved.length === 1) return profiles[saved[0]];
96
+ if (raw.defaultProfile && profiles[raw.defaultProfile]) return profiles[raw.defaultProfile];
97
+ if (saved.length > 1) fail(`several accounts are saved on this computer (${saved.join(', ')}) and this folder is not pinned to one. Run it from the project folder, or set AWESOMATE_ACCOUNT.`);
98
+ return null;
99
+ }
100
+
52
101
  let hubAuth = null;
53
102
  if (hubMode) {
103
+ // A token from the environment goes with the environment's hub (or the default one), never with a
104
+ // saved account's address; a saved account's token goes with its own.
54
105
  let pat = process.env.AWESOMATE_PAT || '';
55
106
  let base = process.env.AWESOMATE_API_BASE || '';
56
- if (!pat || !base) {
57
- try {
58
- const raw = JSON.parse(fs.readFileSync(path.join(os.homedir(), '.awesomate', 'credentials.json'), 'utf8'));
59
- const prof = raw.profiles
60
- ? raw.profiles[process.env.AWESOMATE_ACCOUNT || raw.defaultProfile] || raw
61
- : raw;
62
- pat = pat || prof.pat || '';
63
- base = base || prof.apiBase || '';
64
- } catch { /* handled below */ }
107
+ if (!pat) {
108
+ const prof = savedAccount();
109
+ pat = prof?.pat || '';
110
+ base = base || prof?.apiBase || '';
65
111
  }
66
112
  if (!pat) fail('no Awesomate PAT found — connect your hosting first (~/.awesomate/credentials.json), or set AWESOMATE_PAT');
67
113
  hubAuth = { pat, base: (base || 'https://hub.awesomate.ai').replace(/\/+$/, '') };
@@ -122,7 +122,17 @@ There are two kinds, and a list's kind never changes:
122
122
  with regularly, about work they do for them, with no offers. People reach
123
123
  it when the owner says, while reviewing an import, that everyone with a
124
124
  given tag is that kind of customer. That statement is recorded with their
125
- name and the time.
125
+ name and the time. Where the account has lists that fill from a tag, an
126
+ Owner can also set a customers list to fill from a tag for good: everyone
127
+ tagged now and later joins (each list in `awesomate_crm_lists` carries
128
+ `tag_rules`). You can't set one. When the owner says everyone with a tag is
129
+ a current customer they work with regularly, run
130
+ `awesomate_crm_lists {action:'tag_rule_preview', key, tag}`, tell them the
131
+ counts, and on their yes suggest it with
132
+ `awesomate_crm_lists_change {action:'propose_tag_rule', key, tag}`. A
133
+ suggestion changes nothing: the Owner sets it on the list in the hub
134
+ (`review_url`). Never suggest it for one-off customers or anyone the
135
+ business doesn't work with regularly.
126
136
 
127
137
  The wording rules:
128
138
 
@@ -186,6 +196,18 @@ yet, no proof of consent): say both to the owner, with names, before
186
196
  anything else. Someone left out as not on the list can be invited to join
187
197
  it from the hub; never add them yourself.
188
198
 
199
+ **One person or a few, about their job.** Where the account has one-to-one
200
+ emails (`email_direct`), to email one person or a few (up to 10) about a
201
+ job, a booking, a quote or their account, draft a service email to them with
202
+ no list: `doc.kind: 'transactional'`, `people: {ids}`, no `topic`, and
203
+ `record` (the id of their job, booking or quote, linked to one of them) when
204
+ it is about one. Never an offer: an offer blocks a one-to-one email, and
205
+ news and offers still go on a list. You only draft it; the owner, or someone
206
+ they named, sends it in the hub. When a list email's `reach.hint` says some
207
+ picked people aren't on the list, tell the owner and ask whether to make it
208
+ one-to-one instead, only when it really is about their job, booking, quote
209
+ or account.
210
+
189
211
  - To count people by a field, call `awesomate_crm_metrics
190
212
  {action:'datasets'}` first, then `awesomate_crm_query`.
191
213
  - To look at a few example people (by tag, suburb, or a field the owner
@@ -9,7 +9,7 @@ No `awesomate_*` tools registered in the session at all →
9
9
 
10
10
  `scripts/bootstrap.mjs` is what the hub's Connect-Claude-Code prompt executes,
11
11
  via `npx -y --package=@awesomate/hosting-mcp awesomate-hosting-bootstrap`.
12
- Always the `--package=` form — a bare `-p` breaks the claude CLI's argv
12
+ Always the `--package=` form: a bare `-p` breaks the claude CLI's argv
13
13
  pre-scan if the command is ever wrapped in `claude mcp add`. It redeems the
14
14
  hub setup code for a scoped access token, stores it locally (chmod 600),
15
15
  installs this skill into `~/.claude/skills`, registers the MCP server, and
@@ -19,11 +19,36 @@ skill + MCP are still set up.
19
19
 
20
20
  ## Reading the connect result
21
21
 
22
- The bootstrap prints a final `AWESOMATE CONNECT: SUCCESS account=<slug>` (or
23
- `PARTIAL … issues=…` / `FAILED reason=…`) sentinel — when a connect ran as a
24
- `!` bang command, check for that line instead of assuming success from
25
- silence. `PARTIAL` means the token/pin are stored but a step (listed in
26
- `issues=`) needs the printed manual fix.
22
+ The bootstrap prints an `AWESOMATE CONNECT: SUCCESS account=<slug>` (or
23
+ `PARTIAL … issues=…` / `FAILED reason=…`) result line. When a connect ran as a
24
+ `!` bang command, look for that line instead of assuming success from
25
+ silence. It is the last line, and the line just before it is `Active Awesomate
26
+ account here: <slug> (why). Also saved on this computer: …`. A `--update`, which
27
+ has no result line, ends with that account line. `PARTIAL` means the token and pin are stored but a step (listed in
28
+ `issues=`) needs the printed manual fix. The issues added with Muse:
29
+
30
+ - `verify-hub`: the closing check could not read the account back from the hub
31
+ with the saved key. Run `awesomate_whoami`; if it fails too, connect again.
32
+ - `muse-agents-md` (a warning, never in `issues=`): Muse was found but there is
33
+ no `~/AGENTS.md` for the Awesomate rule. The connect never creates that file on
34
+ its own: run it again with `--muse`. The run still ends `SUCCESS`.
35
+ - `muse-router`: the router skill (`~/workspace/custom-skills/awesomate/`) does
36
+ not list every installed area skill. Run the connect or `--update` again.
37
+ - `muse-files`: the router, `skill.yaml` or the connector guide could not be
38
+ written, or a connector guide that is there could not be read (it is then
39
+ left as it is). The lines marked ✗ above name the file.
40
+ - `muse-no-skills`: no `awesomate-*` area skills were found to list.
41
+ - `verify-muse-router`, `verify-muse-connector`, `verify-muse-agents-md`: the
42
+ closing check read the router, the connector guide or the `~/AGENTS.md` rule
43
+ back from disk and did not find it. `verify-muse-agents-md` appears only when
44
+ `~/AGENTS.md` exists but has no rule; a missing file is the warning above.
45
+
46
+ `--switch <slug>` ends with `AWESOMATE SWITCH: SUCCESS account=<slug>` (or
47
+ `PARTIAL`/`FAILED reason=…`), read the same way. `issues=overridden` means the
48
+ switch is written but `AWESOMATE_ACCOUNT`, `AWESOMATE_PAT` or a pin file still
49
+ chooses another account here; the line marked ! names which. On `--update`, every
50
+ Muse issue above fails the run (exit 1) except `muse-agents-md`, which is a
51
+ warning.
27
52
 
28
53
  `FAILED reason=profile-belongs-to-someone-else` means this computer is already
29
54
  connected to the same account as a different person (an owner and a team member
@@ -36,7 +61,7 @@ Account, Your Claude Code.
36
61
  ## Sandboxed / ephemeral environments (cloud agent containers)
37
62
 
38
63
  - **Egress proxy**: if `HTTPS_PROXY`/`HTTP_PROXY` is set, the environment
39
- forces traffic through a proxy that Node's built-in fetch ignores — requests
64
+ forces traffic through a proxy that Node's built-in fetch ignores, so requests
40
65
  bypass it and the gateway answers 403, which looks like a bad code/token but
41
66
  is a transport failure. The bootstrap and MCP server handle this themselves
42
67
  (undici env-proxy agent); if an older version is in play, prefix commands
@@ -55,34 +80,34 @@ Account, Your Claude Code.
55
80
  diagnosis/test, and tell the user a real workstation is needed for a lasting
56
81
  install.
57
82
  - **No ssh client**: containers usually lack `ssh-keygen`/`ssh`, so deploy and
58
- shell are unavailable — reads and management calls still work. The bootstrap
83
+ shell are unavailable; reads and management calls still work. The bootstrap
59
84
  skips SSH with a note rather than failing.
60
- - Never probe connectivity with a POST to `/redeem` — it's state-changing. Use
85
+ - Never probe connectivity with a POST to `/redeem`: it's state-changing. Use
61
86
  `GET {apiBase}/api/hosting-access/context` (401 without a token still proves
62
87
  reachability).
63
88
 
64
89
  ## When you're stuck: generate a support report
65
90
 
66
91
  If a connect or tool failure survives the documented fixes (wrong account,
67
- proxy, resume, restart, legacy registrations), don't keep guessing — hand
92
+ proxy, resume, restart, legacy registrations), don't keep guessing: hand
68
93
  Awesomate a diagnostic they can act on:
69
94
 
70
95
  1. Run `node ~/.claude/skills/awesomate-hosting/scripts/support-report.mjs
71
96
  --note "<one line: what the user was doing and what happened>"`.
72
97
  It writes a **fully redacted** report to
73
- `~/.awesomate/support-report-<timestamp>.md` — tokens reduced to
98
+ `~/.awesomate/support-report-<timestamp>.md`, tokens reduced to
74
99
  prefix+last4, no key material, proxy credentials stripped. It includes
75
100
  versions, profiles/pin/registration state, live connectivity probes, and
76
101
  the last bootstrap log automatically.
77
102
  2. Show the user the file path and the headline findings (the ACTIVE line,
78
103
  any ⚠ LEGACY registration flags, and the probe results).
79
104
  3. **Ask the user before submitting.** With their OK, re-run with `--submit`
80
- — it POSTs the report to Awesomate and returns a reference like
81
- `ASR-XXXXXXXX`. Tell the user to quote that reference to
105
+ (it POSTs the report to Awesomate and returns a reference like
106
+ `ASR-XXXXXXXX`). Tell the user to quote that reference to
82
107
  support@awesomate.ai or their Awesomate contact; the report is already
83
108
  attached to it server-side. Submission works even when the token is
84
109
  broken (that's usually why you're here).
85
- 4. If `--submit` fails too (fully offline), the user emails the file itself —
110
+ 4. If `--submit` fails too (fully offline), the user emails the file itself:
86
111
  it's safe to send as-is.
87
112
 
88
113
  Never edit the report to add raw tokens, codes, or keys, and never submit
@@ -33,6 +33,15 @@ whoami result.
33
33
  set `AWESOMATE_ACCOUNT`. Don't guess an account for the user.
34
34
  - Connecting a second account never disconnects the first; re-pairing an
35
35
  account just refreshes its profile.
36
+ - **Folder moved to the wrong account by a connect?** The connect printed
37
+ `! This folder used the account "<old>" before this run` with the command
38
+ to switch back. With the user's yes, run it from that folder:
39
+ `npx -y --package=@awesomate/hosting-mcp awesomate-hosting-bootstrap --switch <old>`.
40
+ It uses the key already saved (no new code), rewrites the pin, and reads
41
+ the account back from the hub. Then restart, and check `awesomate_whoami`.
42
+ - Every connect, refresh and switch names `Active Awesomate account here:
43
+ <slug> (...)` and the other accounts saved, just before its result line (at
44
+ the end of a refresh). Read that line back to the user.
36
45
 
37
46
  ## Writes need a chosen account
38
47