@awesomate/hosting-mcp 0.47.0 → 0.48.0

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/dist/index.js CHANGED
@@ -40136,6 +40136,25 @@ function packConfirmationPayload(body) {
40136
40136
  note: "This ingest would exceed the included allowance. NOTHING was purchased and the source was NOT added. An Ingestion Pack costs 1 credit ($100). State that plainly, get an explicit yes, then send the user to the hub Knowledge \u2192 Usage page to buy it (this tool never spends credits)."
40137
40137
  };
40138
40138
  }
40139
+ function addonRequiredPayload(body) {
40140
+ return {
40141
+ addon_required: true,
40142
+ purchased: false,
40143
+ dimension: body.dimension ?? null,
40144
+ addon: body.addon ?? null,
40145
+ message: typeof body.message === "string" ? body.message : null,
40146
+ note: "This is over the account's allowance, and the way past it is a monthly add-on billed to their card every month until they stop it. NOTHING was bought and the source was NOT added. Relay the message as it is, and if they want the add-on, send the owner to the hub Knowledge \u2192 Usage page to add it (this tool never buys it). Removing sources they no longer need also works."
40147
+ };
40148
+ }
40149
+ function storageFullPayload(body) {
40150
+ return {
40151
+ storage_full: true,
40152
+ purchased: false,
40153
+ reason: body.reason ?? null,
40154
+ message: typeof body.message === "string" ? body.message : null,
40155
+ note: "The Knowledge Base storage is full and the source was NOT added. Relay the message exactly as it is; offer no purchase, because none is open to this account or this person right now. Removing sources they no longer need frees space."
40156
+ };
40157
+ }
40139
40158
  function bodyOf(err) {
40140
40159
  return err.body && typeof err.body === "object" ? err.body : null;
40141
40160
  }
@@ -40148,6 +40167,8 @@ function mapKnowledgeError(err, apiBase) {
40148
40167
  return consentPayload(typeof body.error === "string" ? body.error : "Knowledge Platform consent is off");
40149
40168
  }
40150
40169
  if (err.status === 402 && body?.error === "pack_required") return packConfirmationPayload(body);
40170
+ if (err.status === 402 && body?.error === "addon_required") return addonRequiredPayload(body);
40171
+ if (err.status === 402 && body?.error === "storage_full") return storageFullPayload(body);
40151
40172
  throw err;
40152
40173
  }
40153
40174
  async function knowledgeStatus(config3) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@awesomate/hosting-mcp",
3
- "version": "0.47.0",
3
+ "version": "0.48.0",
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,13 @@
1
1
  {
2
2
  "versions": [
3
+ {
4
+ "version": "0.48.0",
5
+ "highlights": [
6
+ "Knowledge Base answers are now a hard limit: when a month's answers run out, your assistants stop answering until the 1st, and you are emailed at 80% and again at the limit",
7
+ "Past the limit: an answer pack adds 2,500 answers for the rest of the month (1 credit), or the monthly answers add-on adds 2,500 every month for $100 a month, stop anytime. Support Plus and above",
8
+ "A full library on Support Plus and up now points at the monthly storage add-on (1 TB for $100 a month) instead of a storage pack, and Claude relays it without ever buying it"
9
+ ]
10
+ },
3
11
  {
4
12
  "version": "0.47.0",
5
13
  "highlights": [
@@ -26,7 +26,15 @@ never offer a pack, since Essentials cannot buy one.
26
26
  ## Ingestion Packs (overage)
27
27
 
28
28
  One pack = **1 credit ($100)**, the user picks the dimension at purchase:
29
- +40 media-hours OR +5,000 pages OR +2,500 answers OR +50 GB-months.
29
+ +40 media-hours OR +5,000 pages OR +2,500 answers. The storage pack is no
30
+ longer sold (packs already held still count): extra storage is the monthly
31
+ storage add-on, 1 TB for $100 a month, which the owner adds on the hub's
32
+ Knowledge → Usage page. A full library on Support Plus and up answers 402
33
+ `addon_required` with the add-on's details when the owner can buy it, or 402
34
+ `storage_full` with a sentence when they can't (in a trial, at the cap, or
35
+ not the owner). Relay either one as it is; never buy anything.
36
+ An answers pack counts only for the calendar month (UTC) it is bought in, so
37
+ buying one late in the month buys less; say so before they confirm.
30
38
 
31
39
  - An ingest that would exceed included+packs returns `pack_required`. The
32
40
  tool response purchases NOTHING and queues NOTHING.
@@ -46,9 +54,16 @@ chat, n8n, `ask`) returns 429 `quota_exceeded` until the 1st of next month
46
54
  month". Answers on the client's own OpenRouter key never count.
47
55
 
48
56
  - The owner is emailed at 80% and again when the limit is reached.
49
- - Nothing ever debits credits on its own. The way past the limit is an answer
50
- pack (Support Plus and above, the pack flow above, applied straight away) or
51
- an upgrade. Essentials cannot buy packs, so for them it's the upgrade.
57
+ - Nothing ever debits credits on its own. The ways past the limit, all applied
58
+ straight away:
59
+ - an answer pack: 2,500 for the rest of this month, 1 credit, via the pack
60
+ flow above;
61
+ - the monthly answers add-on: 2,500 more answers in every month it runs,
62
+ $100 a month on the card, stop anytime (the paid month runs out). The
63
+ owner adds it on the hub's Knowledge → Usage page. Don't buy it from here;
64
+ - an upgrade.
65
+ Packs and the add-on are Support Plus and above, so for Essentials it's the
66
+ upgrade.
52
67
  - If a 429 `quota_exceeded` comes back from `ask` or a test chat, say so
53
68
  plainly and offer those two routes. Don't retry: nothing changes until the
54
69
  month turns or the allowance rises.