@cachly-dev/mcp-server 0.10.280 → 0.10.282
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/src/cli-argumente.js +1 -1
- package/dist/src/client-kopf.js +1 -0
- package/dist/src/handlers/brain.js +71 -70
- package/dist/src/handlers/share.js +11 -11
- package/dist/src/handlers/team.js +49 -43
- package/dist/src/import-docs.js +11 -0
- package/dist/src/index.js +127 -123
- package/dist/src/remote-logo.js +3 -3
- package/dist/src/rolle.js +12 -0
- package/dist/src/schluessel-klassen.js +1 -0
- package/dist/src/speicher-zugang.js +1 -0
- package/dist/src/suchstatistik.js +1 -1
- package/glama.json +1 -1
- package/package.json +1 -1
- package/server.json +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
const s=["ambient-auffrischen","ambient-credit","ambient-recall","ambient-stats","autopilot","autosetup","badge","bench","claim","cls-ingest","demo","digest","doctor","export","health","index","init","invite","join","learn-git","openapi","publish","refer","setup","share","startwissen-import","status","tool-specs","uninstall","upgrade"];function u(e,n){return e===void 0||e===""?"server":e==="--help"||e==="-h"||e==="help"?"hilfe":e==="--version"||e==="-v"||e==="version"?"version":s.includes(e)?"server":n?"unbekannt":"server"}function r(e,n){const t=e.indexOf(`--${n}`);if(t===-1)return;const i=e[t+1];return i===void 0||i.startsWith("--")?void 0:i}function a(e,n){return n.filter(t=>e.includes(`--${t}`)&&r(e,t)===void 0)}const o=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;function f(e,n){const t=[];o.test(e.instanceId)||t.push(`The instance ID "${e.instanceId.slice(0,40)}" is not a UUID. Copy it from the dashboard (Instances > your brain).`);const i=e.apiKey.split(".").length===3;return!e.apiKey.startsWith("cky_")&&!i&&t.push('The API key does not look right. It starts with "cky_" (or is a JWT with three parts).'),n.includes(e.editor)||t.push(`Unknown editor "${e.editor}". Allowed: ${n.join(", ")}.`),t}export{s as BEKANNTE_BEFEHLE,a as flagsOhneWert,u as klassiereArgument,r as leseFlag,f as pruefeInitEingaben};
|
|
1
|
+
const s=["ambient-auffrischen","ambient-credit","ambient-recall","ambient-stats","autopilot","autosetup","badge","bench","claim","cls-ingest","demo","digest","doctor","export","health","index","init","import-docs","invite","join","learn-git","openapi","publish","refer","setup","share","startwissen-import","status","tool-specs","uninstall","upgrade"];function u(e,n){return e===void 0||e===""?"server":e==="--help"||e==="-h"||e==="help"?"hilfe":e==="--version"||e==="-v"||e==="version"?"version":s.includes(e)?"server":n?"unbekannt":"server"}function r(e,n){const t=e.indexOf(`--${n}`);if(t===-1)return;const i=e[t+1];return i===void 0||i.startsWith("--")?void 0:i}function a(e,n){return n.filter(t=>e.includes(`--${t}`)&&r(e,t)===void 0)}const o=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;function f(e,n){const t=[];o.test(e.instanceId)||t.push(`The instance ID "${e.instanceId.slice(0,40)}" is not a UUID. Copy it from the dashboard (Instances > your brain).`);const i=e.apiKey.split(".").length===3;return!e.apiKey.startsWith("cky_")&&!i&&t.push('The API key does not look right. It starts with "cky_" (or is a JWT with three parts).'),n.includes(e.editor)||t.push(`Unknown editor "${e.editor}". Allowed: ${n.join(", ")}.`),t}export{s as BEKANNTE_BEFEHLE,a as flagsOhneWert,u as klassiereArgument,r as leseFlag,f as pruefeInitEingaben};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const f="X-Cachly-Client";function l(t){return`mcp/${t}`}function d(t,s){try{const r=new URL(t),n=new URL(s);return r.origin===n.origin&&r.pathname.startsWith(n.pathname.replace(/\/+$/,"")||"/")}catch{return!1}}function i(t,s,r=globalThis){const n=r.fetch,a=n.bind(r);return r.fetch=((e,o)=>{const h=typeof e=="string"?e:e instanceof URL?e.href:e.url;if(!d(h,t()))return a(e,o);const c=new Headers(o?.headers??(e instanceof Request?e.headers:void 0));return c.has(f)||c.set(f,s),a(e,{...o,headers:c})}),()=>{r.fetch=n}}export{f as CLIENT_KOPF,l as clientKopfWert,i as installiereClientKopf,d as istApiAdresse};
|