@awesomate/hosting-mcp 0.171.24 → 0.171.28

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
@@ -39886,6 +39886,7 @@ function loadConfig() {
39886
39886
 
39887
39887
  // src/http.ts
39888
39888
  var import_undici = __toESM(require_undici(), 1);
39889
+ import { AsyncLocalStorage } from "node:async_hooks";
39889
39890
 
39890
39891
  // src/scopes.ts
39891
39892
  var R = "hosting:read";
@@ -39991,6 +39992,9 @@ var TOOL_SCOPE = {
39991
39992
  // Support
39992
39993
  awesomate_support: R,
39993
39994
  awesomate_support_change: M,
39995
+ // The account's own help centre: help:write for the reads too (one opt-in permission, HL19).
39996
+ awesomate_help_centre: "help:write",
39997
+ awesomate_help_centre_change: "help:write",
39994
39998
  awesomate_request_build: "requests:write",
39995
39999
  // Knowledge
39996
40000
  awesomate_knowledge_status: KR,
@@ -40449,11 +40453,46 @@ function whoamiPlan(hubPlan, connectPlan) {
40449
40453
  var HUB_HELD_CODES = /* @__PURE__ */ new Set(["browser_only", "owner_sets_url", "owner_sets_access", "owner_sets_number"]);
40450
40454
  var dispatcher = process.env.HTTPS_PROXY || process.env.https_proxy || process.env.HTTP_PROXY || process.env.http_proxy ? new import_undici.EnvHttpProxyAgent() : new import_undici.Agent();
40451
40455
  var clientVersion = "unknown";
40456
+ var clientApp = () => null;
40457
+ var traces = new AsyncLocalStorage();
40452
40458
  function setClientVersion(version2) {
40453
40459
  clientVersion = version2;
40454
40460
  }
40461
+ function setClientApp(fn) {
40462
+ let known = null;
40463
+ clientApp = () => {
40464
+ if (known) return known;
40465
+ const v = fn();
40466
+ if (!v?.name) return null;
40467
+ const name = v.name.trim().toLowerCase().replace(/[^a-z0-9._@+-]+/g, "-").replace(/^-+|-+$/g, "").slice(0, 64);
40468
+ const version2 = (v.version ?? "").trim().replace(/[^A-Za-z0-9._+-]+/g, "-").slice(0, 32);
40469
+ if (!name || !/^[a-z0-9]/.test(name)) return null;
40470
+ known = `${name}/${version2 && /^[A-Za-z0-9]/.test(version2) ? version2 : "unknown"}`;
40471
+ return known;
40472
+ };
40473
+ }
40474
+ var TRACEPARENT = /^(?:00-(?!0{32})[0-9a-f]{32}-(?!0{16})[0-9a-f]{16}-[0-9a-f]{2}|(?!00|ff)[0-9a-f]{2}-(?!0{32})[0-9a-f]{32}-(?!0{16})[0-9a-f]{16}-[0-9a-f]{2}(?:-.*)?)$/;
40475
+ function traceparentOfCall(args) {
40476
+ const extra = args.length ? args[args.length - 1] : void 0;
40477
+ const meta = extra && typeof extra === "object" ? extra._meta : void 0;
40478
+ return meta && typeof meta === "object" ? meta.traceparent : void 0;
40479
+ }
40480
+ function withTraceparent(traceparent, fn) {
40481
+ const tp = typeof traceparent === "string" ? traceparent.trim().toLowerCase() : "";
40482
+ return TRACEPARENT.test(tp) ? traces.run(tp, fn) : fn();
40483
+ }
40484
+ function currentTraceparent() {
40485
+ return traces.getStore();
40486
+ }
40455
40487
  function authHeaders(config3) {
40456
- return { ...config3.headers, Authorization: `Bearer ${config3.pat}`, "x-awesomate-client": `mcp/${clientVersion}` };
40488
+ const app = clientApp();
40489
+ const trace = currentTraceparent();
40490
+ return {
40491
+ ...config3.headers,
40492
+ Authorization: `Bearer ${config3.pat}`,
40493
+ "x-awesomate-client": app ? `mcp/${clientVersion} ${app}` : `mcp/${clientVersion}`,
40494
+ ...trace ? { traceparent: trace } : {}
40495
+ };
40457
40496
  }
40458
40497
  function retryAfterSeconds(headers, now = Date.now()) {
40459
40498
  const raw = headers.get("retry-after")?.trim();
@@ -40640,11 +40679,156 @@ async function hubUploadFile(config3, path, file) {
40640
40679
  }
40641
40680
  if (!res.ok) {
40642
40681
  const serverMsg = body && typeof body === "object" && "message" in body && typeof body.message === "string" ? body.message : body && typeof body === "object" && "error" in body && typeof body.error === "string" ? body.error : `Upload failed (${res.status})`;
40643
- const hint = res.status === 413 ? " The file exceeds the 100 MB limit. Split it, compress it, or upload it in the hub at Knowledge \u2192 Sources." : res.status === 402 ? " NOTHING was ingested and nothing was purchased: the ingestion allowance is exhausted. State the pack price (1 credit = $100) and let the user decide in the hub." : "";
40682
+ const hint = res.status === 413 ? " The file is over the 100 MB limit. Only video and audio can be bigger (up to 10 GB on Pro). Split or compress it." : res.status === 402 ? " NOTHING was ingested and nothing was purchased: the ingestion allowance is exhausted. State the pack price (1 credit = $100) and let the user decide in the hub." : "";
40644
40683
  throw new HubApiError(`${/[.!?]$/.test(serverMsg) ? serverMsg : `${serverMsg}.`}${hint}`, res.status, body);
40645
40684
  }
40646
40685
  return body;
40647
40686
  }
40687
+ var PartError = class extends Error {
40688
+ constructor(status, message) {
40689
+ super(message);
40690
+ this.status = status;
40691
+ }
40692
+ };
40693
+ var URL_MARGIN_MS = 5 * 6e4;
40694
+ async function putPart(url, localPath, start, end) {
40695
+ const { createReadStream } = await import("node:fs");
40696
+ let res;
40697
+ try {
40698
+ res = await (0, import_undici.fetch)(url, {
40699
+ method: "PUT",
40700
+ headers: { "Content-Length": String(end - start) },
40701
+ body: createReadStream(localPath, { start, end: end - 1 }),
40702
+ duplex: "half",
40703
+ signal: AbortSignal.timeout(20 * 6e4),
40704
+ dispatcher
40705
+ });
40706
+ } catch (err) {
40707
+ throw new PartError(0, err instanceof Error ? err.message : "connection failed");
40708
+ }
40709
+ await res.arrayBuffer().catch(() => void 0);
40710
+ if (!res.ok) throw new PartError(res.status, `storage answered ${res.status}`);
40711
+ }
40712
+ async function sendParts(initial, localPath, refresh) {
40713
+ const { size_bytes: size, part_bytes: partBytes, part_count: partCount } = initial;
40714
+ const urls = new Map(initial.part_urls.map((p) => [p.part, p.url]));
40715
+ let expiresAt = initial.expires_at ? Date.parse(initial.expires_at) : Number.POSITIVE_INFINITY;
40716
+ const stored = new Set(initial.done);
40717
+ const queue = [];
40718
+ for (let p = 1; p <= partCount; p++) if (!stored.has(p)) queue.push(p);
40719
+ let refreshing = null;
40720
+ const fresh = () => refreshing ??= refresh().then((s) => {
40721
+ for (const p of s.part_urls) urls.set(p.part, p.url);
40722
+ for (const p of s.done) stored.add(p);
40723
+ expiresAt = s.expires_at ? Date.parse(s.expires_at) : Number.POSITIVE_INFINITY;
40724
+ }).finally(() => {
40725
+ refreshing = null;
40726
+ });
40727
+ const sendOne = async (part) => {
40728
+ const start = (part - 1) * partBytes;
40729
+ const end = Math.min(size, start + partBytes);
40730
+ for (let attempt = 1; ; attempt++) {
40731
+ if (!urls.has(part) || expiresAt - Date.now() < URL_MARGIN_MS) await fresh();
40732
+ if (stored.has(part)) return;
40733
+ const url = urls.get(part);
40734
+ if (!url) throw new PartError(0, `no address for part ${part}`);
40735
+ try {
40736
+ await putPart(url, localPath, start, end);
40737
+ return;
40738
+ } catch (err) {
40739
+ if (attempt >= 4) throw err;
40740
+ if (err instanceof PartError && err.status === 403) urls.delete(part);
40741
+ else await new Promise((r) => setTimeout(r, 1e3 * 2 ** (attempt - 1)));
40742
+ }
40743
+ }
40744
+ };
40745
+ let stopped = false;
40746
+ const workers = Array.from({ length: Math.max(1, Math.min(initial.concurrency || 3, queue.length)) }, async () => {
40747
+ try {
40748
+ for (let part = queue.shift(); part !== void 0 && !stopped; part = queue.shift()) await sendOne(part);
40749
+ } catch (err) {
40750
+ stopped = true;
40751
+ throw err;
40752
+ }
40753
+ });
40754
+ await Promise.all(workers);
40755
+ }
40756
+ async function readUploadState(file) {
40757
+ try {
40758
+ const { readFile: readFile2 } = await import("node:fs/promises");
40759
+ return JSON.parse(await readFile2(file, "utf8"));
40760
+ } catch {
40761
+ return {};
40762
+ }
40763
+ }
40764
+ async function writeUploadState(file, state) {
40765
+ try {
40766
+ const { mkdir, writeFile } = await import("node:fs/promises");
40767
+ const { dirname: dirname4 } = await import("node:path");
40768
+ await mkdir(dirname4(file), { recursive: true, mode: 448 });
40769
+ await writeFile(file, JSON.stringify(state, null, 2), { mode: 384 });
40770
+ } catch {
40771
+ }
40772
+ }
40773
+ async function hubUploadLargeFile(config3, file, options = {}, opts = {}) {
40774
+ const { homedir: homedir6 } = await import("node:os");
40775
+ const { join: join6 } = await import("node:path");
40776
+ const stateFile = opts.stateFile ?? join6(homedir6(), ".awesomate", "uploads.json");
40777
+ const key = `${config3.apiBase}|${file.localPath}|${file.sizeBytes}|${Math.round(file.mtimeMs)}`;
40778
+ const week = 7 * 24 * 3600 * 1e3;
40779
+ const state = await readUploadState(stateFile);
40780
+ for (const [k, v] of Object.entries(state)) if (!v || Date.now() - v.savedAt > week) delete state[k];
40781
+ let session = null;
40782
+ let resumed = false;
40783
+ if (state[key]) {
40784
+ try {
40785
+ session = await hubPost(config3, "/api/knowledge/uploads/large/resume", {
40786
+ ticket: state[key].ticket,
40787
+ options: {
40788
+ visibility: options.visibility,
40789
+ tags: options.tags,
40790
+ collection_ids: options.collection_ids
40791
+ }
40792
+ });
40793
+ resumed = true;
40794
+ } catch (err) {
40795
+ if (!(err instanceof HubApiError) || ![400, 404, 410].includes(err.status)) throw err;
40796
+ delete state[key];
40797
+ }
40798
+ }
40799
+ if (!session) {
40800
+ session = await hubPost(config3, "/api/knowledge/uploads/large", {
40801
+ ...options,
40802
+ filename: file.filename,
40803
+ mime: file.contentType,
40804
+ size_bytes: file.sizeBytes
40805
+ });
40806
+ state[key] = { ticket: session.ticket, savedAt: Date.now() };
40807
+ await writeUploadState(stateFile, state);
40808
+ }
40809
+ const ticket = session.ticket;
40810
+ const refresh = () => hubPost(config3, "/api/knowledge/uploads/large/resume", { ticket });
40811
+ try {
40812
+ await sendParts(session, file.localPath, refresh);
40813
+ } catch (err) {
40814
+ throw new HubApiError(
40815
+ `The upload stopped part way (${err instanceof Error ? err.message : "connection lost"}). What was sent is kept for 7 days: call this tool again with the same file to carry on.`,
40816
+ 0,
40817
+ null
40818
+ );
40819
+ }
40820
+ let job;
40821
+ try {
40822
+ job = await hubPost(config3, "/api/knowledge/uploads/large/complete", { ticket });
40823
+ } catch (err) {
40824
+ if (!(err instanceof HubApiError) || err.status !== 409) throw err;
40825
+ await sendParts(await refresh(), file.localPath, refresh);
40826
+ job = await hubPost(config3, "/api/knowledge/uploads/large/complete", { ticket });
40827
+ }
40828
+ delete state[key];
40829
+ await writeUploadState(stateFile, state);
40830
+ return { ...job, resumed };
40831
+ }
40648
40832
  function hubGet(config3, path) {
40649
40833
  return hubRequest(config3, "GET", path);
40650
40834
  }
@@ -42849,9 +43033,9 @@ async function knowledgeFaq(config3, args) {
42849
43033
  }
42850
43034
 
42851
43035
  // src/tools/kit.ts
42852
- import { AsyncLocalStorage } from "node:async_hooks";
43036
+ import { AsyncLocalStorage as AsyncLocalStorage2 } from "node:async_hooks";
42853
43037
  var defaultStamp = () => "account: unknown";
42854
- var stamps = new AsyncLocalStorage();
43038
+ var stamps = new AsyncLocalStorage2();
42855
43039
  function setAccountStamp(fn) {
42856
43040
  defaultStamp = fn;
42857
43041
  }
@@ -42942,6 +43126,8 @@ var TITLES = {
42942
43126
  awesomate_tasks_change: "Change your tasks",
42943
43127
  awesomate_support: "Read help and your support tickets",
42944
43128
  awesomate_support_change: "Raise or reply to a support ticket",
43129
+ awesomate_help_centre: "Read your help centre",
43130
+ awesomate_help_centre_change: "Write and publish help centre articles",
42945
43131
  // Destructive: rmSync/writeFileSync under ~/.claude/skills overwrites files
42946
43132
  // on the user's own machine, so it must always prompt.
42947
43133
  awesomate_skill_update: "Update Awesomate skills",
@@ -44090,6 +44276,8 @@ var groups_default = {
44090
44276
  awesomate_snapshot_site: { group: "website", surface: ["stdio"] },
44091
44277
  awesomate_support: { group: "help", surface: ["stdio"] },
44092
44278
  awesomate_support_change: { group: "help", surface: ["stdio"] },
44279
+ awesomate_help_centre: { group: "help", surface: ["stdio"] },
44280
+ awesomate_help_centre_change: { group: "help", surface: ["stdio"] },
44093
44281
  awesomate_support_desk: { group: "contacts", surface: ["stdio"] },
44094
44282
  awesomate_tasks: { group: "account", surface: ["stdio", "chat"] },
44095
44283
  awesomate_tasks_change: { group: "account", surface: ["stdio", "chat"], chat: { actions: ["add", "done", "take", "pass_on", "edit", "drop", "bring_back", "not_now", "cancel_not_now"], whole: true } },
@@ -44357,7 +44545,7 @@ function offeredOn(surface, name) {
44357
44545
  return entry.surface.includes(surface);
44358
44546
  }
44359
44547
  function createRegistrar(server2, surface, config3, stamp, features, opts = {}) {
44360
- const stamped = (cb) => (...args) => withAccountStamp(stamp, () => cb(...args));
44548
+ const stamped = (cb) => (...args) => withAccountStamp(stamp, () => withTraceparent(traceparentOfCall(args), () => cb(...args)));
44361
44549
  const wrap = opts.wrapTool ?? ((h) => h);
44362
44550
  const worded = (def) => surface === "stdio" ? def : wordedForChat(def, (tool, action) => chatOffers(tool, action, opts), (tool) => opts.readOnly || chatSpec(tool)?.whole ? void 0 : chatSpec(tool)?.actions);
44363
44551
  const registerTool = ((name, def, cb) => {
@@ -44395,6 +44583,7 @@ var FILES_ACTIONS = [
44395
44583
  "upload",
44396
44584
  "mkdir",
44397
44585
  "move",
44586
+ "copy",
44398
44587
  "make_public",
44399
44588
  "make_private",
44400
44589
  "delete",
@@ -44439,6 +44628,18 @@ async function localFile(raw) {
44439
44628
  if (!st.isFile()) throw new Error(`${abs} is not a file. Upload one file per call.`);
44440
44629
  return { abs, name: basename2(abs), size: st.size };
44441
44630
  }
44631
+ var FILES_MAX_BATCH = 100;
44632
+ function filesPairs(args) {
44633
+ if (args.items?.length) {
44634
+ if (args.path || args.to) throw new Error("Send either items or path and to, not both: put every move or copy in items.");
44635
+ if (args.items.length > FILES_MAX_BATCH) throw new Error(`At most ${FILES_MAX_BATCH} items in one call; send the rest in another.`);
44636
+ return args.items.map((it, i) => ({ from: filesPath(it.from, `items[${i}].from`), to: filesPath(it.to, `items[${i}].to`) }));
44637
+ }
44638
+ return [{ from: filesPath(args.path, "path"), to: filesPath(args.to, "to") }];
44639
+ }
44640
+ function entersPublic(pair) {
44641
+ return (pair.to === "public" || pair.to.startsWith("public/")) && !pair.from.startsWith("public/");
44642
+ }
44442
44643
  var PUBLIC_NOTE = "A file in public/ can be read by anyone who has its public_url, with no login. Files in private/ and temp/ are never served publicly.";
44443
44644
  async function filesAction(config3, args) {
44444
44645
  switch (args.action) {
@@ -44493,13 +44694,17 @@ async function filesAction(config3, args) {
44493
44694
  }
44494
44695
  case "mkdir":
44495
44696
  return hubPost(config3, "/api/files/mkdir", { path: filesPath(args.path) });
44496
- case "move": {
44497
- const from = filesPath(args.path, "path");
44498
- const to = filesPath(args.to, "to");
44499
- if (to.startsWith("public/") && !from.startsWith("public/") && !args.confirm) {
44500
- throw new Error(`Moving into public/ makes the file readable by anyone with its address. Ask the user first, then call again with confirm: true.`);
44501
- }
44502
- return hubPost(config3, "/api/files/move", { from, to });
44697
+ case "move":
44698
+ case "copy": {
44699
+ const pairs = filesPairs(args);
44700
+ if (pairs.some(entersPublic) && !args.confirm) {
44701
+ const verb = args.action === "copy" ? "Copying" : "Moving";
44702
+ throw new Error(`${verb} into public/ makes the file readable by anyone with its address. Ask the user first, then call again with confirm: true.`);
44703
+ }
44704
+ const route = args.action === "copy" ? "/api/files/copy" : "/api/files/move";
44705
+ const extra = args.action === "copy" && args.overwrite ? { overwrite: true } : {};
44706
+ const body = args.items?.length ? { items: pairs, ...extra } : { ...pairs[0], ...extra };
44707
+ return hubPost(config3, route, body);
44503
44708
  }
44504
44709
  case "make_public": {
44505
44710
  const from = filesPath(args.path);
@@ -46057,6 +46262,7 @@ var KB_UPLOAD_TYPES = {
46057
46262
  ".webp": "image/webp"
46058
46263
  };
46059
46264
  var KB_MAX_UPLOAD_BYTES = 100 * 1024 * 1024;
46265
+ var KB_MAX_MEDIA_BYTES = 10 * 1024 * 1024 * 1024;
46060
46266
  var KB_UNPARSEABLE = /* @__PURE__ */ new Set([".doc", ".docx", ".ppt", ".pptx", ".rtf", ".epub", ".html", ".htm"]);
46061
46267
  var KB_SPREADSHEETS = /* @__PURE__ */ new Set([".csv", ".tsv", ".xls", ".xlsx", ".xlsm", ".json"]);
46062
46268
  var KB_SHEET_KIND_CHOICE = 'Choose with the user, never guess: kind "sheet" makes each row a searchable, citable record, for things a customer asks about (price lists, fee tables, timetables, FAQs, policies, product lists). kind "data-import" builds a reportable dataset for totals and trends (job or invoice history, sales by month), answered by awesomate_knowledge_data; its rows are not searchable passages.';
@@ -46545,17 +46751,18 @@ function registerKnowledge(r) {
46545
46751
  "awesomate_files",
46546
46752
  {
46547
46753
  annotations: annotate("awesomate_files", DESTRUCTIVE),
46548
- description: "The account's Files: the folders on their automation account (n8n) that workflows read and write, and that the hub shows at Knowledge, Files. Three top folders: public/ (every file has a public_url anyone can open with no login: images for a site or email, downloads, media a workflow made), private/ (only the account, its workflows and the hub) and temp/ (scratch space). Support Plus, Pro and Embedded; the owner must also have switched on \"Open your automation account's file folders\" in Settings, Privacy. Paths are relative to the files folder and start with the top folder, e.g. public/images/logo.png. action 'status': whether Files is on, why not, and storage used against the plan's limit: call this first. 'list' {path?}: one folder (no path = the top folders); files in public/ carry public_url. 'search' {q?, top?, exts?}: find files by name across the folders (first 200 matches; truncated:true means narrow it). 'download' {path, to?, overwrite?}: save a file to THIS computer (to = a local file or folder, default the working directory); never overwrites without overwrite:true. 'upload' {localPath, path, overwrite?}: send a file from this computer (max 50 MB each); path is the target file, or a folder ending in / to keep the name. Upload into public/ only when the user wants it publicly reachable. 'mkdir' {path}. 'move' {path, to}: rename or move; moving into public/ needs confirm:true. 'make_public' {path, confirm:true}: moves private/ or temp/ to the same place under public/ and returns its public_url: ASK the user first, anyone with the address can read it. 'make_private' {path}: moves it out of public/; its public address stops serving it within seconds (the hub clears Cloudflare's copy, and does the same after a delete or a replace), though a browser that already opened it may show its own copy until it expires, and a downloaded copy is not recalled. 'delete' {path, confirm:true}: moves to the trash (not erased); ask first. 'trash': what is in the trash, when each was deleted, and its total size. 'empty_trash' {olderThanDays?, confirm:true}: erases what is in the trash for good (or only what was deleted more than olderThanDays ago): the one thing here that cannot be undone, so show the user what will go and get a clear yes first. Moving or renaming changes the path, so tell the user any workflow, page or app using the old path or address needs the new one. 'extract' {path}: unpack a .zip into a folder beside it, named after it. 'context_scan' {path}: read one file (a brochure, an about-us document) and propose business details from it, saving nothing: `fill` are details not saved yet, `conflict` differ from what is saved; it needs the owner's Learn Business Context from My Files switch in Settings, Privacy. Saving those details is the owner's own click in the hub (Files, the file's menu, Scan for business context), never Claude's. Contents stream between this computer and the hub: never paste a file's contents into the conversation to move it. A 507 files_storage_full means the plan's Files allowance is used: say how much, offer to find large or old files to remove, and leave any plan change to the user.",
46754
+ description: "The account's Files: the folders on their automation account (n8n) that workflows read and write, and that the hub shows at Knowledge, Files. Three top folders: public/ (every file has a public_url anyone can open with no login: images for a site or email, downloads, media a workflow made), private/ (only the account, its workflows and the hub) and temp/ (scratch space). Support Plus, Pro and Embedded; the owner must also have switched on \"Open your automation account's file folders\" in Settings, Privacy. Paths are relative to the files folder and start with the top folder, e.g. public/images/logo.png. action 'status': whether Files is on, why not, and storage used against the plan's limit: call this first. 'list' {path?}: one folder (no path = the top folders); files in public/ carry public_url. 'search' {q?, top?, exts?}: find files by name across the folders (first 200 matches; truncated:true means narrow it). 'download' {path, to?, overwrite?}: save a file to THIS computer (to = a local file or folder, default the working directory); never overwrites without overwrite:true. 'upload' {localPath, path, overwrite?}: send a file from this computer (max 50 MB each); path is the target file, or a folder ending in / to keep the name. Upload into public/ only when the user wants it publicly reachable. 'mkdir' {path}. 'move' {path, to}, or {items:[{from, to}]} for up to 100 at once: rename or move; a to ending in / (or a bare top folder) keeps the name; moving into public/ needs confirm:true. 'copy' {path, to, overwrite?} or {items}: copy files or folders (up to 200 files and 250 MB a call), same rules; copying into public/ needs confirm:true. A list answers each item in results. 'make_public' {path, confirm:true}: moves private/ or temp/ to the same place under public/ and returns its public_url: ASK the user first, anyone with the address can read it. 'make_private' {path}: moves it out of public/; its public address stops serving it within seconds (the hub clears Cloudflare's copy, and does the same after a delete or a replace), though a browser that already opened it may show its own copy until it expires, and a downloaded copy is not recalled. 'delete' {path, confirm:true}: moves to the trash (not erased); ask first. 'trash': what is in the trash, when each was deleted, and its total size. 'empty_trash' {olderThanDays?, confirm:true}: erases what is in the trash for good (or only what was deleted more than olderThanDays ago): the one thing here that cannot be undone, so show the user what will go and get a clear yes first. Moving or renaming changes the path, so tell the user any workflow, page or app using the old path or address needs the new one. 'extract' {path}: unpack a .zip into a folder beside it, named after it. 'context_scan' {path}: read one file (a brochure, an about-us document) and propose business details from it, saving nothing: `fill` are details not saved yet, `conflict` differ from what is saved; it needs the owner's Learn Business Context from My Files switch in Settings, Privacy. Saving those details is the owner's own click in the hub (Files, the file's menu, Scan for business context), never Claude's. Contents stream between this computer and the hub: never paste a file's contents into the conversation to move it. A 507 files_storage_full means the plan's Files allowance is used: say how much, offer to find large or old files to remove, and leave any plan change to the user.",
46549
46755
  inputSchema: {
46550
46756
  action: external_exports.enum(FILES_ACTIONS),
46551
46757
  path: external_exports.string().max(1024).optional().describe("A path in Files, starting public/, private/ or temp/. For upload, the target (a folder ending in / keeps the local name)."),
46552
- to: external_exports.string().max(4096).optional().describe("move: the new Files path. download: where to save on this computer (file or folder; ~ expands)."),
46758
+ to: external_exports.string().max(4096).optional().describe("move, copy: the new Files path, or a folder ending in / to keep the name. download: where to save on this computer (file or folder; ~ expands)."),
46759
+ items: external_exports.array(external_exports.object({ from: external_exports.string().max(1024), to: external_exports.string().max(1024) })).min(1).max(100).optional().describe("move, copy: several at once, each { from, to } with the same rules as path and to."),
46553
46760
  localPath: external_exports.string().max(4096).optional().describe("upload: the file on this computer (~ expands; prefer an absolute path)."),
46554
46761
  q: external_exports.string().max(200).optional().describe("search: part of a file name (* and ? work as wildcards)."),
46555
46762
  top: external_exports.enum(["public", "private", "temp"]).optional().describe("search: only this top folder."),
46556
46763
  exts: external_exports.array(external_exports.string().regex(/^\.[a-z0-9]+$/i)).max(20).optional().describe('search: only these extensions, e.g. [".png", ".jpg"].'),
46557
- overwrite: external_exports.boolean().optional().describe("upload: replace a file already at path. download: replace a local file."),
46558
- confirm: external_exports.boolean().optional().describe("true only after the user agreed: make_public, delete, empty_trash, and a move into public/."),
46764
+ overwrite: external_exports.boolean().optional().describe("upload, copy: replace a file already there. download: replace a local file."),
46765
+ confirm: external_exports.boolean().optional().describe("true only after the user agreed: make_public, delete, empty_trash, and a move or copy into public/."),
46559
46766
  olderThanDays: external_exports.number().int().min(1).max(3650).optional().describe("empty_trash: only what was deleted more than this many days ago. Leave out to empty everything.")
46560
46767
  }
46561
46768
  },
@@ -46713,7 +46920,7 @@ function registerKnowledge(r) {
46713
46920
  "awesomate_knowledge_upload",
46714
46921
  {
46715
46922
  annotations: annotate("awesomate_knowledge_upload", MUTATING),
46716
- description: `Ingest ONE file from the user's own computer into their Knowledge Base. Pass a LOCAL PATH: this server runs on their machine and streams the file to the hub itself, so the file contents never pass through the conversation. Handles documents (pdf, md, txt), spreadsheets (csv, tsv, xls, xlsx, xlsm, json; these NEED kind, see below), audio and video (transcribed, Pro and above), and images (OCR, Pro and above). Word/PowerPoint/RTF/EPUB files are NOT parseable yet: the tool refuses them with the workaround (export to PDF, or save as .md/.txt). Max 100 MB per file; bigger media goes through the hub's Knowledge \u2192 Sources page. SPREADSHEETS: pass kind, or the tool refuses before uploading. kind 'sheet' makes each row a searchable, citable record: price lists, fee tables, timetables, FAQs, policies, product lists, anything a customer asks about. kind 'data-import' builds a reportable dataset for totals and trends: job or invoice history, sales by month, read with awesomate_knowledge_data. If it is not obvious which the user wants, ask them; never guess. The same goes for a spreadsheet in the File Manager (fromFilesPath): pass kind with it. The source's title comes from the filename, slugified (spaces, punctuation and non-ASCII letters become _), even when title is passed; fix it afterwards with awesomate_knowledge_sources_change {action:'rename'}. visibility 'public' publishes the file, so it needs confirm: the account slug, passed only after the user agreed in so many words (the same rule as awesomate_knowledge_sources_change add). INGESTING COSTS MONEY and counts against the monthly allowance, so ALWAYS get explicit approval for the specific file(s) first and say what it will consume. For several files, call once per file and report progress; do not loop silently. Returns a job with its live status; poll awesomate_knowledge_sources {action:'jobs'} until it succeeds (a duplicate upload replays the earlier job, and a response already reading succeeded needs no polling), then probe the content with awesomate_knowledge_ask before building anything on it. RE-UPLOADING an updated file: the platform names a source from the file name, so a changed title that slugifies differently ("Ember & Leaf" against "Ember and Leaf") makes a DUPLICATE beside the old source. It updates in place only when the name slugifies the same, or when you pass replaceSourceId (the old source_id from awesomate_knowledge_sources list): then the hub sends the file under the matching name and the source keeps its id, citations, visibility, tags and collections (a custom title set with rename may need setting again afterwards). When an upload looks like an existing source the response carries a warning and similar_sources: tell the user, and if it is the same document, remove the new duplicate and upload again with replaceSourceId. A pack_required response means the allowance is exhausted: nothing was ingested and nothing was purchased.`,
46923
+ description: `Ingest ONE file from the user's own computer into their Knowledge Base. Pass a LOCAL PATH: this server runs on their machine and streams the file to the hub itself, so the file contents never pass through the conversation. Handles documents (pdf, md, txt), spreadsheets (csv, tsv, xls, xlsx, xlsm, json; these NEED kind, see below), audio and video (transcribed, Pro and above), and images (OCR, Pro and above). Word/PowerPoint/RTF/EPUB files are NOT parseable yet: the tool refuses them with the workaround (export to PDF, or save as .md/.txt). Max 100 MB per file, except video and audio, which can be up to 10 GB (Pro): those are sent in 64 MB parts straight from this machine to storage, and if the upload stops (closed laptop, lost connection) calling the tool again with the same file carries on where it stopped (parts are kept 7 days). A big upload takes a while; tell the user before starting. SPREADSHEETS: pass kind, or the tool refuses before uploading. kind 'sheet' makes each row a searchable, citable record: price lists, fee tables, timetables, FAQs, policies, product lists, anything a customer asks about. kind 'data-import' builds a reportable dataset for totals and trends: job or invoice history, sales by month, read with awesomate_knowledge_data. If it is not obvious which the user wants, ask them; never guess. The same goes for a spreadsheet in the File Manager (fromFilesPath): pass kind with it. The source's title comes from the filename, slugified (spaces, punctuation and non-ASCII letters become _), even when title is passed; fix it afterwards with awesomate_knowledge_sources_change {action:'rename'}. visibility 'public' publishes the file, so it needs confirm: the account slug, passed only after the user agreed in so many words (the same rule as awesomate_knowledge_sources_change add). INGESTING COSTS MONEY and counts against the monthly allowance, so ALWAYS get explicit approval for the specific file(s) first and say what it will consume. For several files, call once per file and report progress; do not loop silently. Returns a job with its live status; poll awesomate_knowledge_sources {action:'jobs'} until it succeeds (a duplicate upload replays the earlier job, and a response already reading succeeded needs no polling), then probe the content with awesomate_knowledge_ask before building anything on it. RE-UPLOADING an updated file: the platform names a source from the file name, so a changed title that slugifies differently ("Ember & Leaf" against "Ember and Leaf") makes a DUPLICATE beside the old source. It updates in place only when the name slugifies the same, or when you pass replaceSourceId (the old source_id from awesomate_knowledge_sources list): then the hub sends the file under the matching name and the source keeps its id, citations, visibility, tags and collections (a custom title set with rename may need setting again afterwards). When an upload looks like an existing source the response carries a warning and similar_sources: tell the user, and if it is the same document, remove the new duplicate and upload again with replaceSourceId. A pack_required response means the allowance is exhausted: nothing was ingested and nothing was purchased.`,
46717
46924
  inputSchema: {
46718
46925
  path: external_exports.string().min(1).max(4096).optional().describe("Path to the file on the user's machine (~ is expanded). Omit when using fromFilesPath."),
46719
46926
  fromFilesPath: external_exports.string().max(1024).optional().describe("Instead of a local file: a path in the account's File Manager (their n8n file system), relative to files/, e.g. 'public/reports/weekly.md'. The hub streams it from their storage: nothing leaves this machine."),
@@ -46776,14 +46983,15 @@ function registerKnowledge(r) {
46776
46983
  }
46777
46984
  if (!st.isFile()) return errorResult(new Error(`${abs} is not a regular file.`));
46778
46985
  if (st.size === 0) return errorResult(new Error(`${abs} is empty: nothing to ingest.`));
46779
- if (st.size > KB_MAX_UPLOAD_BYTES) {
46986
+ const ext = extname(abs).toLowerCase();
46987
+ const isMedia = /^(video|audio)\//.test(KB_UPLOAD_TYPES[ext] ?? "");
46988
+ if (st.size > (isMedia ? KB_MAX_MEDIA_BYTES : KB_MAX_UPLOAD_BYTES)) {
46780
46989
  return errorResult(
46781
46990
  new Error(
46782
- `${basename2(abs)} is ${(st.size / 1024 / 1024).toFixed(1)} MB, over the 100 MB limit. Split or compress it, or have the user upload it in the hub at Knowledge \u2192 Sources.`
46991
+ isMedia ? `${basename2(abs)} is ${(st.size / 1024 ** 3).toFixed(1)} GB, over the 10 GB limit for video and audio. Split the recording into parts and upload each one.` : `${basename2(abs)} is ${(st.size / 1024 / 1024).toFixed(1)} MB, over the 100 MB limit (only video and audio can be bigger, up to 10 GB). Split or compress it.`
46783
46992
  )
46784
46993
  );
46785
46994
  }
46786
- const ext = extname(abs).toLowerCase();
46787
46995
  if (KB_UNPARSEABLE.has(ext)) {
46788
46996
  return errorResult(
46789
46997
  new Error(
@@ -46799,6 +47007,13 @@ function registerKnowledge(r) {
46799
47007
  )
46800
47008
  );
46801
47009
  }
47010
+ if (replaceSourceId && st.size > KB_MAX_UPLOAD_BYTES) {
47011
+ return errorResult(
47012
+ new Error(
47013
+ `replaceSourceId is not supported for recordings over 100 MB: they go up in parts as a new source. Remove the old source first (awesomate_knowledge_sources_change), then upload again without replaceSourceId. Nothing was uploaded.`
47014
+ )
47015
+ );
47016
+ }
46802
47017
  const contentType = KB_UPLOAD_TYPES[ext] ?? "application/octet-stream";
46803
47018
  const filename = title?.trim() ? `${title.trim()}${ext}` : basename2(abs);
46804
47019
  const uploadQuery = new URLSearchParams();
@@ -46809,14 +47024,23 @@ function registerKnowledge(r) {
46809
47024
  for (const c of collectionIds ?? []) uploadQuery.append("collection_ids", c);
46810
47025
  if (replaceSourceId) uploadQuery.set("replace_source_id", replaceSourceId);
46811
47026
  const uploadQs = uploadQuery.toString();
46812
- const result = await hubUploadFile(r.config(), `/api/knowledge/sources${uploadQs ? `?${uploadQs}` : ""}`, {
47027
+ const result = st.size > KB_MAX_UPLOAD_BYTES ? await hubUploadLargeFile(
47028
+ r.config(),
47029
+ { localPath: abs, filename, contentType, sizeBytes: st.size, mtimeMs: st.mtimeMs },
47030
+ {
47031
+ ...visibility ? { visibility } : {},
47032
+ ...visibility === "public" && confirm ? { confirm } : {},
47033
+ ...tags?.length ? { tags } : {},
47034
+ ...collectionIds?.length ? { collection_ids: collectionIds } : {}
47035
+ }
47036
+ ) : await hubUploadFile(r.config(), `/api/knowledge/sources${uploadQs ? `?${uploadQs}` : ""}`, {
46813
47037
  localPath: abs,
46814
47038
  filename,
46815
47039
  contentType
46816
47040
  });
46817
47041
  const body = result;
46818
47042
  const jobStatus = typeof body.status === "string" ? body.status : "queued";
46819
- const replayNote = body.replayed === true ? "This file matched an earlier upload, so the platform replayed that job instead of ingesting it twice. " : "";
47043
+ const replayNote = (body.resumed === true ? "Carried on from where an earlier upload of this file stopped. " : "") + (body.replayed === true ? "This file matched an earlier upload, so the platform replayed that job instead of ingesting it twice. " : "");
46820
47044
  const note = jobStatus === "succeeded" ? `${replayNote}Already ingested: the job has SUCCEEDED, do not poll for it. Verify with awesomate_knowledge_ask before building on it.` : jobStatus === "failed" || jobStatus === "cancelled" ? `${replayNote}The job reports ${jobStatus}: read its error via awesomate_knowledge_sources {action:"jobs"}. A job that fails during processing creates no source row, so summary counts stay clean (only failed_jobs_7d shows it).` : `${replayNote}${jobStatus === "running" ? "Ingesting now" : "Queued"}: NOT yet ingested. Poll awesomate_knowledge_sources {action:"jobs"} and read the job's status AND error: a job that fails during processing creates no source row, so summary counts stay clean (only its failed_jobs_7d field shows it). Big media is transcribed and can take a while. Only after the job reports succeeded, verify with awesomate_knowledge_ask before building on it.`;
46821
47045
  return knowledgeResult({
46822
47046
  ...body,
@@ -48843,6 +49067,101 @@ function registerHelp(r) {
48843
49067
  },
48844
49068
  SUPPORT_CHANGE_HALF.guard(support)
48845
49069
  );
49070
+ const HELP_READS = ["centre", "articles", "article"];
49071
+ const HELP_CHANGES = ["create_topic", "create_article", "update_article", "publish", "unpublish", "archive"];
49072
+ const helpShape = {
49073
+ action: external_exports.enum([...HELP_READS, ...HELP_CHANGES]),
49074
+ id: external_exports.string().uuid().optional().describe("article, update_article, publish, unpublish, archive: the article id from articles"),
49075
+ status: external_exports.enum(["draft", "published", "archived"]).optional().describe("articles: only this status"),
49076
+ q: external_exports.string().max(200).optional().describe("articles: words in the title"),
49077
+ name: external_exports.string().max(200).optional().describe("create_topic: the topic name"),
49078
+ description: external_exports.string().max(500).nullable().optional().describe("create_topic: one line about the topic"),
49079
+ title: external_exports.string().max(200).optional().describe("create_article, update_article: the title"),
49080
+ slug: external_exports.string().max(120).optional().describe("create_article, update_article: the address part; made from the title when left out, fixed once published"),
49081
+ summary: external_exports.string().max(500).nullable().optional().describe("create_article, update_article: one or two sentences shown under the title"),
49082
+ body: external_exports.string().optional().describe('create_article, update_article: the article in Markdown. Leave a "[CHECK: ...]" note wherever a fact needs a person to confirm it: publishing is refused while one is there'),
49083
+ segments: external_exports.array(external_exports.string()).max(8).optional().describe("create_article, update_article: who it is for, ['all'] (default) or names from centre's segments"),
49084
+ topicId: external_exports.string().uuid().nullable().optional().describe("create_article, update_article: the topic id from centre"),
49085
+ confirm: external_exports.boolean().optional().describe("publish, unpublish, archive: true only after the user said yes to that change to the public pages")
49086
+ };
49087
+ const helpCentre = async (a) => {
49088
+ try {
49089
+ const cfg = r.config();
49090
+ const base2 = "/api/my-help/v1";
49091
+ if (a.action === "centre") {
49092
+ const { articles: _a, ...rest } = await hubGet(cfg, `${base2}/?articles=0`);
49093
+ return textResult(rest);
49094
+ }
49095
+ if (a.action === "articles") {
49096
+ const q2 = new URLSearchParams();
49097
+ if (a.status) q2.set("status", a.status);
49098
+ if (a.q) q2.set("q", a.q);
49099
+ const qs = q2.toString();
49100
+ const { articles } = await hubGet(cfg, `${base2}/${qs ? `?${qs}` : ""}`);
49101
+ return textResult({ articles });
49102
+ }
49103
+ if (a.action === "create_topic") {
49104
+ if (!a.name?.trim()) return errorResult(new Error("create_topic needs name."));
49105
+ return textResult(await hubPost(cfg, `${base2}/topics`, { name: a.name, ...a.description !== void 0 ? { description: a.description } : {} }));
49106
+ }
49107
+ const fields = Object.fromEntries(
49108
+ ["title", "slug", "summary", "body", "segments", "topicId"].filter((k) => a[k] !== void 0).map((k) => [k, a[k]])
49109
+ );
49110
+ if (a.action === "create_article") {
49111
+ if (!a.title?.trim() || !a.body?.trim()) return errorResult(new Error("create_article needs title and body. Nothing was sent."));
49112
+ return textResult(await hubPost(cfg, `${base2}/articles`, fields));
49113
+ }
49114
+ if (!a.id) return errorResult(new Error(`${a.action} needs id, the article's id from articles.`));
49115
+ const path = `${base2}/articles/${encodeURIComponent(a.id)}`;
49116
+ if (a.action === "article") return textResult(await hubGet(cfg, path));
49117
+ if (a.action === "update_article") {
49118
+ if (!Object.keys(fields).length) return errorResult(new Error("update_article needs at least one of title, slug, summary, body, segments, topicId."));
49119
+ return textResult(await hubPatch(cfg, path, fields));
49120
+ }
49121
+ if (a.action === "publish") {
49122
+ if (a.confirm !== true) {
49123
+ return errorResult(new Error("publish makes the article public on the help centre and sends it to the business's Knowledge. Show the user the title and what will go live, get an explicit yes, then call again with confirm: true. Nothing was sent."));
49124
+ }
49125
+ return textResult(await hubPost(cfg, `${path}/publish`, {}));
49126
+ }
49127
+ if (a.action === "unpublish" || a.action === "archive") {
49128
+ if (a.confirm !== true) {
49129
+ const what = a.action === "archive" ? "archives the article (restoring it is done in the hub)" : "takes the article off the public help pages";
49130
+ return errorResult(new Error(`${a.action} ${what}. Tell the user which article, get an explicit yes, then call again with confirm: true. Nothing was sent.`));
49131
+ }
49132
+ return textResult(await hubPost(cfg, `${path}/${a.action}`, {}));
49133
+ }
49134
+ return errorResult(new Error(unknownActionSentence(a.action)));
49135
+ } catch (err) {
49136
+ return errorResult(err);
49137
+ }
49138
+ };
49139
+ const HELP_READ_HALF = splitHalf([...HELP_READS], HELP_CHANGES, "awesomate_help_centre_change");
49140
+ r.registerTool(
49141
+ "awesomate_help_centre",
49142
+ {
49143
+ annotations: annotate("awesomate_help_centre", READ_ONLY),
49144
+ description: "Read the business's OWN help centre (its public help pages for its customers): action 'centre' (title, public address, whether its pages are on, the segments an article may name, and its topics), 'articles' {status?, q?} (articles without their bodies, each with where its page stands in Knowledge), 'article' {id} (one article: its working copy and its published copy). Needs a key with help:write, which no plan gives by itself: the account owner switches it on for one key in the hub (Claude Code, Get my code, 'Write, publish and take down your help centre articles'). A 403 with missingScopes ['help:write'] means this key was made without it: say so in one line and stop; never retry. 404 no_help_centre means the account has none. Not Awesomate's own help: questions about Awesomate are awesomate_support 'ask'. Write and publish with awesomate_help_centre_change.",
49145
+ inputSchema: {
49146
+ action: HELP_READ_HALF.action,
49147
+ ...pickShape(helpShape, ["id", "status", "q"])
49148
+ }
49149
+ },
49150
+ HELP_READ_HALF.guard(helpCentre)
49151
+ );
49152
+ const HELP_CHANGE_HALF = splitHalf([...HELP_CHANGES], HELP_READS, "awesomate_help_centre");
49153
+ r.registerTool(
49154
+ "awesomate_help_centre_change",
49155
+ {
49156
+ annotations: annotate("awesomate_help_centre_change", MUTATING),
49157
+ description: "Write the business's OWN help centre: action 'create_topic' {name, description?}, 'create_article' {title, body, summary?, topicId?, segments?, slug?} (always a draft, never public), 'update_article' {id, ...fields} (changes the working copy; a published article's public copy changes only when it is published again), 'publish' {id, confirm: true} (makes the working copy public on the help centre's pages while they are on, and where the centre feeds the business's Knowledge sends the page there: show the user what goes live and get an explicit yes first), 'unpublish' {id, confirm: true} (back to a draft, off the public pages) and 'archive' {id, confirm: true} (restoring is done in the hub); get a yes before each. Bodies are Markdown, in plain words the business's customers use. Leave a '[CHECK: ...]' note wherever a fact needs a person to confirm it: publish is refused (422) while one is there, so the person removes it after checking. A slug another article has answers 409 slug_taken. Needs a key with help:write, chosen by the account owner for one key in the hub; a 403 with missingScopes means this key lacks it: say so and stop. The centre's own settings, its address, topic order and restoring an archived article are done in the hub. Read first with awesomate_help_centre.",
49158
+ inputSchema: {
49159
+ action: HELP_CHANGE_HALF.action,
49160
+ ...pickShape(helpShape, ["id", "name", "description", "title", "slug", "summary", "body", "segments", "topicId", "confirm"])
49161
+ }
49162
+ },
49163
+ HELP_CHANGE_HALF.guard(helpCentre)
49164
+ );
48846
49165
  r.registerTool(
48847
49166
  "awesomate_request_build",
48848
49167
  {
@@ -49005,11 +49324,12 @@ var server = new McpServer(
49005
49324
  },
49006
49325
  { instructions: SERVER_INSTRUCTIONS }
49007
49326
  );
49327
+ setClientApp(() => server.server.getClientVersion());
49008
49328
  var featureCache = createFeatureCache(() => hubGet(requireConfig(), "/api/hosting-access/context"));
49009
49329
  var WHOAMI_CONTEXT_TIMEOUT_MS = 4e3;
49010
49330
  {
49011
49331
  const register = server.registerTool.bind(server);
49012
- server.registerTool = (name, def, cb) => register(name, def, async (...args) => {
49332
+ server.registerTool = (name, def, cb) => register(name, def, async (...args) => withTraceparent(traceparentOfCall(args), async () => {
49013
49333
  const hint = def?.annotations?.readOnlyHint === true;
49014
49334
  if (config2 && !callIsRead(String(name), hint, args[0])) {
49015
49335
  const refusal = fallbackWriteRefusal(config2);
@@ -49022,7 +49342,7 @@ ${refusal}` }], isError: true };
49022
49342
  ${refusal}` }], isError: true };
49023
49343
  }
49024
49344
  return cb(...args);
49025
- });
49345
+ }));
49026
49346
  }
49027
49347
  var registrar = createRegistrar(server, "stdio", requireConfig, accountStamp2, () => featureCache.known());
49028
49348
  setAccountStamp(accountStamp2);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@awesomate/hosting-mcp",
3
- "version": "0.171.24",
3
+ "version": "0.171.28",
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,19 @@
1
1
  {
2
2
  "versions": [
3
+ {"version": "0.171.28", "highlights": ["Behind the scenes: each request now tells the hub which Claude app and version sent it, and passes along a trace id when Claude Code sends one, so your account's history can later show what was done through Claude. Nothing changes in what you can ask for"]},
4
+ {"version": "0.171.27", "highlights": ["New tools awesomate_help_centre and awesomate_help_centre_change: read and write your business's own help centre (topics, and articles as drafts), and publish, take down or archive an article, each only after you say yes. They need a key with help centre writing, which the account owner switches on for one computer in the hub (Claude Code, Get my code)"]},
5
+ {
6
+ "version": "0.171.26",
7
+ "highlights": [
8
+ "Video and audio up to 10 GB can go into Knowledge from Claude Code on Pro, sent in parts straight to storage (when your account has it); an interrupted upload carries on when you ask again with the same file"
9
+ ]
10
+ },
11
+ {
12
+ "version": "0.171.25",
13
+ "highlights": [
14
+ "awesomate_files: new action copy (a file or a folder, up to 200 files and 250 MB a call, leaving the original), and move and copy take items (up to 100 { from, to } at once, each answered in results). A to ending in / (or a bare top folder) keeps the name. A move or copy into public/ needs confirm"
15
+ ]
16
+ },
3
17
  {
4
18
  "version": "0.171.24",
5
19
  "highlights": [
@@ -87,12 +87,14 @@ platform's answer beats anything you remember.
87
87
  Local FILES (PDFs, Markdown, videos on disk) go through
88
88
  `awesomate_knowledge_upload` below, which streams them from disk so their
89
89
  contents never enter the conversation. The owner can also use the hub's
90
- Knowledge → Sources upload page themselves (100 MB per file; bigger media by
91
- URL). Formats + caps: [ingestion-sources.md](references/ingestion-sources.md).
90
+ Knowledge → Sources upload page themselves (100 MB per file; video and audio
91
+ up to 10 GB on Pro). Formats + caps: [ingestion-sources.md](references/ingestion-sources.md).
92
92
 
93
93
  **`awesomate_knowledge_upload {path, title?, kind?}`** — ingest ONE file from the
94
94
  user's own computer. Pass a local path; the server streams it from disk, so
95
- file contents never pass through the conversation. 100 MB max, one call per
95
+ file contents never pass through the conversation. 100 MB max, except video
96
+ and audio up to 10 GB (Pro), sent in parts straight to storage: if a big
97
+ upload stops, call again with the same file and it carries on. One call per
96
98
  file, explicit approval first (it spends allowance). URLs and sitemaps stay on
97
99
  `awesomate_knowledge_sources_change` (`add`). A spreadsheet (csv, tsv, xls, xlsx, xlsm, json)
98
100
  needs `kind`: `sheet` for rows a customer asks about (price lists, fee tables,
@@ -33,7 +33,9 @@ contents never pass through the conversation and a 100 MB PDF costs no context.
33
33
 
34
34
  - One call per file. Report progress as you go; never loop silently through
35
35
  twenty files.
36
- - 100 MB per file. Bigger media goes through the hub at Knowledge → Sources.
36
+ - 100 MB per file, except video and audio: up to 10 GB on Pro, sent in parts
37
+ from their machine straight to storage. A big upload takes a while, so say
38
+ so first. If it stops, call again with the same file and it carries on.
37
39
  - A folder path is rejected on purpose — list it, agree the files, then upload.
38
40
  - Public URLs and whole sitemaps stay on `awesomate_knowledge_sources_change`
39
41
  `{action:'add'}`. Use that for their website; use upload for their disk.
@@ -15,7 +15,7 @@ estimating BEFORE asking approval.
15
15
  | YouTube link | `add {url}` | Refused on every plan (400): "YouTube links are not supported yet". No upgrade changes that, so never offer one for it. Uploading the business's own video files works on Pro and above, or add the page that embeds the video |
16
16
  | Any other link to a recording (Loom, podcast audio, a file address) | `add {url}` | **Not transcribed.** Read as a web page, which gives at most its title and description; a link straight to an audio or video file has no page to read and fails (`page_unreadable`). Pro and above; below Pro, or in a trial, it is refused (403 `upgrade_required`, `capability: "media_ingest"`). To transcribe the recording, upload the file |
17
17
  | PDF / book / document / markdown | hub upload page | Text layer used; scanned pages OCR'd automatically (`auto` mode, capped at 300 OCR pages per job — over that the job fails BEFORE any vision spend) |
18
- | Video/audio FILES | hub upload page (≤ 100 MB) | Transcribed (Deepgram, language defaults to English). Pro and above, within the month's media hours. A longer recording: split or compress it and upload each part |
18
+ | Video/audio FILES | `awesomate_knowledge_upload {path}` or the hub upload page (up to 10 GB) | Transcribed (Deepgram, language defaults to English). Pro and above, within the month's media hours. Over 100 MB the file goes to storage in 64 MB parts; an interrupted upload carries on when the same file is sent again (parts kept 7 days). Over 10 GB: split the recording and upload each part |
19
19
  | Images | hub upload page | Vision-described, then indexed |
20
20
  | Facebook export | hub upload page | The platform's facebook-export lane |
21
21
  | FAQs | Markdown file via `awesomate_knowledge_upload` | One `##` per question, so each becomes its own citable section. **Never** a Q&A spreadsheet as it is: convert it to this file, so every answer stays word for word and citable. Full recipe: [faqs.md](faqs.md) |
@@ -27,7 +27,7 @@ on with the first payment.
27
27
 
28
28
  Local files go through `awesomate_knowledge_upload`, which streams them from
29
29
  disk so their contents never enter the conversation (the owner can also use
30
- the hub upload page). 100 MB per file.
30
+ the hub upload page). 100 MB per file; video and audio up to 10 GB.
31
31
 
32
32
  ## Job lifecycle
33
33
 
@@ -205,6 +205,33 @@ to the Awesomate team, who scope, build, test, and deliver it.
205
205
  and send them to hub.awesomate.ai/settings?tab=privacy. You cannot flip it
206
206
  for them, and there is deliberately no tool that can.
207
207
 
208
+ ## 5b. Writing the business's own help centre
209
+
210
+ Some accounts have a public help centre: help pages for THEIR customers.
211
+ `awesomate_help_centre` reads it (`centre`, `articles`, `article`) and
212
+ `awesomate_help_centre_change` writes it (`create_topic`, `create_article`,
213
+ `update_article`, `publish`, `unpublish`, `archive`). This is not
214
+ Awesomate's help (that is §1), and not the support inbox.
215
+
216
+ - **It needs a key with `help:write`.** No plan gives it; the account
217
+ owner switches it on for one key in the hub (Claude Code, Get my code,
218
+ "Write, publish and take down your help centre articles"). A 403 naming
219
+ `help:write` means this key lacks it: say so in one line and stop.
220
+ `no_help_centre` means the account has none yet.
221
+ - **Write drafts in the customers' words**, in Markdown, short headings,
222
+ steps as numbered lists. Read `centre` first for the topics and the
223
+ segments an article may name.
224
+ - **Leave a `[CHECK: ...]` note on any fact you could not confirm** (a
225
+ price, a menu name, a time). Publishing is refused while one is there,
226
+ so a person confirms it and removes the note.
227
+ - **Publishing makes it public at once** on the centre's pages (while
228
+ they are switched on). Show the title and what goes live, get an
229
+ explicit yes, then `publish` with `confirm: true`. Taking one down
230
+ (`unpublish`) or archiving it needs a yes and `confirm: true` too. An
231
+ edit to a published article is not public until it is published again.
232
+ - The centre's settings, its address, topic order and restoring an
233
+ archived article stay in the hub.
234
+
208
235
  ## 6. Hard rules
209
236
 
210
237
  - **Never invent policy or pricing.** If the FAQ and tools don't say it,