@modelcontextprotocol/server-system-monitor 1.3.0 → 1.3.2

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/mcp-app.html CHANGED
@@ -81,7 +81,7 @@ Boolean requesting whether a visible border and background is provided by the ho
81
81
  - omitted: host decides border`)});v({method:_("ui/request-display-mode"),params:v({mode:hn.describe("The display mode being requested.")})});var am=v({mode:hn.describe("The display mode that was actually set. May differ from requested if not supported.")}).passthrough(),cm=$([_("model"),_("app")]).describe("Tool visibility scope - who can access the tool.");v({resourceUri:y().optional(),visibility:I(cm).optional().describe(`Who can access this tool. Default: ["model", "app"]
82
82
  - "model": Tool visible to and callable by the agent
83
83
  - "app": Tool callable by the app from this server only`)});v({mimeTypes:I(y()).optional().describe('Array of supported MIME types for UI resources.\nMust include `"text/html;profile=mcp-app"` for MCP Apps support.')});v({method:_("ui/download-file"),params:v({contents:I($([nc,sc])).describe("Resource contents to download — embedded (inline data) or linked (host fetches). Uses standard MCP resource types.")})});v({method:_("ui/message"),params:v({role:_("user").describe('Message role, currently only "user" is supported.'),content:I(Cn).describe("Message content blocks (text, image, etc.).")})});v({method:_("ui/notifications/sandbox-resource-ready"),params:v({html:y().describe("HTML content to load into the inner iframe."),sandbox:y().optional().describe("Optional override for the inner iframe's sandbox attribute."),csp:Ui.optional().describe("CSP configuration from resource metadata."),permissions:Yi.optional().describe("Sandbox permissions from resource metadata.")})});var lm=v({method:_("ui/notifications/tool-result"),params:Cs.describe("Standard MCP tool execution result.")}),ac=v({toolInfo:v({id:kn.optional().describe("JSON-RPC id of the tools/call request."),tool:qi.describe("Tool definition including name, inputSchema, etc.")}).optional().describe("Metadata of the tool call that instantiated this App."),theme:Ug.optional().describe("Current color theme preference."),styles:sm.optional().describe("Style configuration for theming the app."),displayMode:hn.optional().describe("How the UI is currently displayed."),availableDisplayModes:I(hn).optional().describe("Display modes the host supports."),containerDimensions:$([v({height:L().describe("Fixed container height in pixels.")}),v({maxHeight:$([L(),ei()]).optional().describe("Maximum container height in pixels.")})]).and($([v({width:L().describe("Fixed container width in pixels.")}),v({maxWidth:$([L(),ei()]).optional().describe("Maximum container width in pixels.")})])).optional().describe(`Container dimensions. Represents the dimensions of the iframe or other
84
- container holding the app. Specify either width or maxWidth, and either height or maxHeight.`),locale:y().optional().describe("User's language and region preference in BCP 47 format."),timeZone:y().optional().describe("User's timezone in IANA format."),userAgent:y().optional().describe("Host application identifier."),platform:$([_("web"),_("desktop"),_("mobile")]).optional().describe("Platform type for responsive design decisions."),deviceCapabilities:v({touch:K().optional().describe("Whether the device supports touch input."),hover:K().optional().describe("Whether the device supports hover interactions.")}).optional().describe("Device input capabilities."),safeAreaInsets:v({top:L().describe("Top safe area inset in pixels."),right:L().describe("Right safe area inset in pixels."),bottom:L().describe("Bottom safe area inset in pixels."),left:L().describe("Left safe area inset in pixels.")}).optional().describe("Mobile safe area boundaries in pixels.")}).passthrough(),um=v({method:_("ui/notifications/host-context-changed"),params:ac.describe("Partial context update containing only changed fields.")});v({method:_("ui/update-model-context"),params:v({content:I(Cn).optional().describe("Context content blocks (text, image, etc.)."),structuredContent:Y(y(),J().describe("Structured content for machine-readable context data.")).optional().describe("Structured content for machine-readable context data.")})});v({method:_("ui/initialize"),params:v({appInfo:Ps.describe("App identification (name and version)."),appCapabilities:rm.describe("Features and capabilities this app provides."),protocolVersion:y().describe("Protocol version this app supports.")})});var hm=v({protocolVersion:y().describe('Negotiated protocol version string (e.g., "2025-11-21").'),hostInfo:Ps.describe("Host application identification and version."),hostCapabilities:om.describe("Features and capabilities provided by the host."),hostContext:ac.describe("Rich context about the host environment.")}).passthrough();class dm extends Zg{constructor(n,s={},i={autoResize:!0}){super(i);T(this,"_appInfo");T(this,"_capabilities");T(this,"options");T(this,"_hostCapabilities");T(this,"_hostInfo");T(this,"_hostContext");T(this,"sendOpenLink",this.openLink);this._appInfo=n,this._capabilities=s,this.options=i,this.setRequestHandler(Ts,o=>(console.log("Received ping:",o.params),{})),this.onhostcontextchanged=()=>{}}getHostCapabilities(){return this._hostCapabilities}getHostVersion(){return this._hostInfo}getHostContext(){return this._hostContext}set ontoolinput(n){this.setNotificationHandler(Qg,s=>n(s.params))}set ontoolinputpartial(n){this.setNotificationHandler(tm,s=>n(s.params))}set ontoolresult(n){this.setNotificationHandler(lm,s=>n(s.params))}set ontoolcancelled(n){this.setNotificationHandler(em,s=>n(s.params))}set onhostcontextchanged(n){this.setNotificationHandler(um,s=>{this._hostContext={...this._hostContext,...s.params},n(s.params)})}set onteardown(n){this.setRequestHandler(im,(s,i)=>n(s.params,i))}set oncalltool(n){this.setRequestHandler(oc,(s,i)=>n(s.params,i))}set onlisttools(n){this.setRequestHandler(ic,(s,i)=>n(s.params,i))}assertCapabilityForMethod(n){}assertRequestHandlerCapability(n){switch(n){case"tools/call":case"tools/list":if(!this._capabilities.tools)throw Error(`Client does not support tool capability (required for ${n})`);return;case"ping":case"ui/resource-teardown":return;default:throw Error(`No handler for method ${n} registered`)}}assertNotificationCapability(n){}assertTaskCapability(n){throw Error("Tasks are not supported in MCP Apps")}assertTaskHandlerCapability(n){throw Error("Task handlers are not supported in MCP Apps")}async callServerTool(n,s){if(typeof n=="string")throw Error(`callServerTool() expects an object as its first argument, but received a string ("${n}"). Did you mean: callServerTool({ name: "${n}", arguments: { ... } })?`);return await this.request({method:"tools/call",params:n},Cs,s)}async readServerResource(n,s){return await this.request({method:"resources/read",params:n},ec,s)}async listServerResources(n,s){return await this.request({method:"resources/list",params:n},tc,s)}sendMessage(n,s){return this.request({method:"ui/message",params:n},Gg,s)}sendLog(n){return this.notification({method:"notifications/message",params:n})}updateModelContext(n,s){return this.request({method:"ui/update-model-context",params:n},Ri,s)}openLink(n,s){return this.request({method:"ui/open-link",params:n},Xg,s)}downloadFile(n,s){return this.request({method:"ui/download-file",params:n},Kg,s)}requestTeardown(n={}){return this.notification({method:"ui/notifications/request-teardown",params:n})}requestDisplayMode(n,s){return this.request({method:"ui/request-display-mode",params:n},am,s)}sendSizeChanged(n){return this.notification({method:"ui/notifications/size-changed",params:n})}setupSizeChangedNotifications(){let n=!1,s=0,i=0,o=()=>{n||(n=!0,requestAnimationFrame(()=>{n=!1;let a=document.documentElement,c=a.style.width,l=a.style.height;a.style.width="fit-content",a.style.height="max-content";let u=a.getBoundingClientRect();a.style.width=c,a.style.height=l;let h=window.innerWidth-a.clientWidth,d=Math.ceil(u.width+h),f=Math.ceil(u.height);(d!==s||f!==i)&&(s=d,i=f,this.sendSizeChanged({width:d,height:f}))}))};o();let r=new ResizeObserver(o);return r.observe(document.documentElement),r.observe(document.body),()=>r.disconnect()}async connect(n=new qg(window.parent,window.parent),s){var i;if(this.transport)throw Error("App is already connected. Call close() before connecting again.");await super.connect(n);try{let o=await this.request({method:"ui/initialize",params:{appCapabilities:this._capabilities,appInfo:this._appInfo,protocolVersion:Vg}},hm,s);if(o===void 0)throw Error(`Server sent invalid initialize result: ${o}`);this._hostCapabilities=o.hostCapabilities,this._hostInfo=o.hostInfo,this._hostContext=o.hostContext,await this.notification({method:"ui/notifications/initialized"}),(i=this.options)!=null&&i.autoResize&&this.setupSizeChangedNotifications()}catch(o){throw this.close(),o}}}/*!
84
+ container holding the app. Specify either width or maxWidth, and either height or maxHeight.`),locale:y().optional().describe("User's language and region preference in BCP 47 format."),timeZone:y().optional().describe("User's timezone in IANA format."),userAgent:y().optional().describe("Host application identifier."),platform:$([_("web"),_("desktop"),_("mobile")]).optional().describe("Platform type for responsive design decisions."),deviceCapabilities:v({touch:K().optional().describe("Whether the device supports touch input."),hover:K().optional().describe("Whether the device supports hover interactions.")}).optional().describe("Device input capabilities."),safeAreaInsets:v({top:L().describe("Top safe area inset in pixels."),right:L().describe("Right safe area inset in pixels."),bottom:L().describe("Bottom safe area inset in pixels."),left:L().describe("Left safe area inset in pixels.")}).optional().describe("Mobile safe area boundaries in pixels.")}).passthrough(),um=v({method:_("ui/notifications/host-context-changed"),params:ac.describe("Partial context update containing only changed fields.")});v({method:_("ui/update-model-context"),params:v({content:I(Cn).optional().describe("Context content blocks (text, image, etc.)."),structuredContent:Y(y(),J().describe("Structured content for machine-readable context data.")).optional().describe("Structured content for machine-readable context data.")})});v({method:_("ui/initialize"),params:v({appInfo:Ps.describe("App identification (name and version)."),appCapabilities:rm.describe("Features and capabilities this app provides."),protocolVersion:y().describe("Protocol version this app supports.")})});var hm=v({protocolVersion:y().describe('Negotiated protocol version string (e.g., "2025-11-21").'),hostInfo:Ps.describe("Host application identification and version."),hostCapabilities:om.describe("Features and capabilities provided by the host."),hostContext:ac.describe("Rich context about the host environment.")}).passthrough();class dm extends Zg{constructor(n,s={},i={autoResize:!0}){super(i);T(this,"_appInfo");T(this,"_capabilities");T(this,"options");T(this,"_hostCapabilities");T(this,"_hostInfo");T(this,"_hostContext");T(this,"sendOpenLink",this.openLink);this._appInfo=n,this._capabilities=s,this.options=i,this.setRequestHandler(Ts,o=>(console.log("Received ping:",o.params),{})),this.onhostcontextchanged=()=>{}}getHostCapabilities(){return this._hostCapabilities}getHostVersion(){return this._hostInfo}getHostContext(){return this._hostContext}set ontoolinput(n){this.setNotificationHandler(Qg,s=>n(s.params))}set ontoolinputpartial(n){this.setNotificationHandler(tm,s=>n(s.params))}set ontoolresult(n){this.setNotificationHandler(lm,s=>n(s.params))}set ontoolcancelled(n){this.setNotificationHandler(em,s=>n(s.params))}set onhostcontextchanged(n){this.setNotificationHandler(um,s=>{this._hostContext={...this._hostContext,...s.params},n(s.params)})}set onteardown(n){this.setRequestHandler(im,(s,i)=>n(s.params,i))}set oncalltool(n){this.setRequestHandler(oc,(s,i)=>n(s.params,i))}set onlisttools(n){this.setRequestHandler(ic,(s,i)=>n(s.params,i))}assertCapabilityForMethod(n){}assertRequestHandlerCapability(n){switch(n){case"tools/call":case"tools/list":if(!this._capabilities.tools)throw Error(`Client does not support tool capability (required for ${n})`);return;case"ping":case"ui/resource-teardown":return;default:throw Error(`No handler for method ${n} registered`)}}assertNotificationCapability(n){}assertTaskCapability(n){throw Error("Tasks are not supported in MCP Apps")}assertTaskHandlerCapability(n){throw Error("Task handlers are not supported in MCP Apps")}async callServerTool(n,s){if(typeof n=="string")throw Error(`callServerTool() expects an object as its first argument, but received a string ("${n}"). Did you mean: callServerTool({ name: "${n}", arguments: { ... } })?`);return await this.request({method:"tools/call",params:n},Cs,s)}async readServerResource(n,s){return await this.request({method:"resources/read",params:n},ec,s)}async listServerResources(n,s){return await this.request({method:"resources/list",params:n},tc,s)}sendMessage(n,s){return this.request({method:"ui/message",params:n},Gg,s)}sendLog(n){return this.notification({method:"notifications/message",params:n})}updateModelContext(n,s){return this.request({method:"ui/update-model-context",params:n},Ri,s)}openLink(n,s){return this.request({method:"ui/open-link",params:n},Xg,s)}downloadFile(n,s){return this.request({method:"ui/download-file",params:n},Kg,s)}requestTeardown(n={}){return this.notification({method:"ui/notifications/request-teardown",params:n})}requestDisplayMode(n,s){return this.request({method:"ui/request-display-mode",params:n},am,s)}sendSizeChanged(n){return this.notification({method:"ui/notifications/size-changed",params:n})}setupSizeChangedNotifications(){let n=!1,s=0,i=0,o=()=>{n||(n=!0,requestAnimationFrame(()=>{n=!1;let a=document.documentElement,c=a.style.height;a.style.height="max-content";let l=Math.ceil(a.getBoundingClientRect().height);a.style.height=c;let u=Math.ceil(window.innerWidth);(u!==s||l!==i)&&(s=u,i=l,this.sendSizeChanged({width:u,height:l}))}))};o();let r=new ResizeObserver(o);return r.observe(document.documentElement),r.observe(document.body),()=>r.disconnect()}async connect(n=new qg(window.parent,window.parent),s){var i;if(this.transport)throw Error("App is already connected. Call close() before connecting again.");await super.connect(n);try{let o=await this.request({method:"ui/initialize",params:{appCapabilities:this._capabilities,appInfo:this._appInfo,protocolVersion:Vg}},hm,s);if(o===void 0)throw Error(`Server sent invalid initialize result: ${o}`);this._hostCapabilities=o.hostCapabilities,this._hostInfo=o.hostInfo,this._hostContext=o.hostContext,await this.notification({method:"ui/notifications/initialized"}),(i=this.options)!=null&&i.autoResize&&this.setupSizeChangedNotifications()}catch(o){throw this.close(),o}}}/*!
85
85
  * @kurkle/color v0.3.4
86
86
  * https://github.com/kurkle/color#readme
87
87
  * (c) 2024 Jukka Kurkela
package/dist/server.js CHANGED
@@ -149,22 +149,22 @@ var require_code = __commonJS((exports) => {
149
149
  i2++;
150
150
  }
151
151
  }
152
- function mergeExprItems(a2, b) {
153
- if (b === '""')
152
+ function mergeExprItems(a2, b2) {
153
+ if (b2 === '""')
154
154
  return a2;
155
155
  if (a2 === '""')
156
- return b;
156
+ return b2;
157
157
  if (typeof a2 == "string") {
158
- if (b instanceof Name || a2[a2.length - 1] !== '"')
158
+ if (b2 instanceof Name || a2[a2.length - 1] !== '"')
159
159
  return;
160
- if (typeof b != "string")
161
- return `${a2.slice(0, -1)}${b}"`;
162
- if (b[0] === '"')
163
- return a2.slice(0, -1) + b.slice(1);
160
+ if (typeof b2 != "string")
161
+ return `${a2.slice(0, -1)}${b2}"`;
162
+ if (b2[0] === '"')
163
+ return a2.slice(0, -1) + b2.slice(1);
164
164
  return;
165
165
  }
166
- if (typeof b == "string" && b[0] === '"' && !(a2 instanceof Name))
167
- return `"${a2}${b.slice(1)}`;
166
+ if (typeof b2 == "string" && b2[0] === '"' && !(a2 instanceof Name))
167
+ return `"${a2}${b2.slice(1)}`;
168
168
  return;
169
169
  }
170
170
  function strConcat(c1, c2) {
@@ -529,17 +529,17 @@ var require_codegen = __commonJS((exports) => {
529
529
  this.nodes = nodes;
530
530
  }
531
531
  render(opts) {
532
- return this.nodes.reduce((code, n) => code + n.render(opts), "");
532
+ return this.nodes.reduce((code, n2) => code + n2.render(opts), "");
533
533
  }
534
534
  optimizeNodes() {
535
535
  const { nodes } = this;
536
536
  let i2 = nodes.length;
537
537
  while (i2--) {
538
- const n = nodes[i2].optimizeNodes();
539
- if (Array.isArray(n))
540
- nodes.splice(i2, 1, ...n);
541
- else if (n)
542
- nodes[i2] = n;
538
+ const n2 = nodes[i2].optimizeNodes();
539
+ if (Array.isArray(n2))
540
+ nodes.splice(i2, 1, ...n2);
541
+ else if (n2)
542
+ nodes[i2] = n2;
543
543
  else
544
544
  nodes.splice(i2, 1);
545
545
  }
@@ -549,16 +549,16 @@ var require_codegen = __commonJS((exports) => {
549
549
  const { nodes } = this;
550
550
  let i2 = nodes.length;
551
551
  while (i2--) {
552
- const n = nodes[i2];
553
- if (n.optimizeNames(names, constants))
552
+ const n2 = nodes[i2];
553
+ if (n2.optimizeNames(names, constants))
554
554
  continue;
555
- subtractNames(names, n.names);
555
+ subtractNames(names, n2.names);
556
556
  nodes.splice(i2, 1);
557
557
  }
558
558
  return nodes.length > 0 ? this : undefined;
559
559
  }
560
560
  get names() {
561
- return this.nodes.reduce((names, n) => addNames(names, n.names), {});
561
+ return this.nodes.reduce((names, n2) => addNames(names, n2.names), {});
562
562
  }
563
563
  }
564
564
 
@@ -953,8 +953,8 @@ var require_codegen = __commonJS((exports) => {
953
953
  endFunc() {
954
954
  return this._endBlockNode(Func);
955
955
  }
956
- optimize(n = 1) {
957
- while (n-- > 0) {
956
+ optimize(n2 = 1) {
957
+ while (n2-- > 0) {
958
958
  this._root.optimizeNodes();
959
959
  this._root.optimizeNames(this._root.names, this._constants);
960
960
  }
@@ -968,19 +968,19 @@ var require_codegen = __commonJS((exports) => {
968
968
  this._nodes.push(node);
969
969
  }
970
970
  _endBlockNode(N1, N2) {
971
- const n = this._currNode;
972
- if (n instanceof N1 || N2 && n instanceof N2) {
971
+ const n2 = this._currNode;
972
+ if (n2 instanceof N1 || N2 && n2 instanceof N2) {
973
973
  this._nodes.pop();
974
974
  return this;
975
975
  }
976
976
  throw new Error(`CodeGen: not in block "${N2 ? `${N1.kind}/${N2.kind}` : N1.kind}"`);
977
977
  }
978
978
  _elseNode(node) {
979
- const n = this._currNode;
980
- if (!(n instanceof If)) {
979
+ const n2 = this._currNode;
980
+ if (!(n2 instanceof If)) {
981
981
  throw new Error('CodeGen: "else" without "if"');
982
982
  }
983
- this._currNode = n.else = node;
983
+ this._currNode = n2.else = node;
984
984
  return this;
985
985
  }
986
986
  get _root() {
@@ -997,8 +997,8 @@ var require_codegen = __commonJS((exports) => {
997
997
  }
998
998
  exports.CodeGen = CodeGen;
999
999
  function addNames(names, from) {
1000
- for (const n in from)
1001
- names[n] = (names[n] || 0) + (from[n] || 0);
1000
+ for (const n2 in from)
1001
+ names[n2] = (names[n2] || 0) + (from[n2] || 0);
1002
1002
  return names;
1003
1003
  }
1004
1004
  function addExprNames(names, from) {
@@ -1018,11 +1018,11 @@ var require_codegen = __commonJS((exports) => {
1018
1018
  items.push(c);
1019
1019
  return items;
1020
1020
  }, []));
1021
- function replaceName(n) {
1022
- const c = constants[n.str];
1023
- if (c === undefined || names[n.str] !== 1)
1024
- return n;
1025
- delete names[n.str];
1021
+ function replaceName(n2) {
1022
+ const c = constants[n2.str];
1023
+ if (c === undefined || names[n2.str] !== 1)
1024
+ return n2;
1025
+ delete names[n2.str];
1026
1026
  return c;
1027
1027
  }
1028
1028
  function canOptimize(e2) {
@@ -1030,8 +1030,8 @@ var require_codegen = __commonJS((exports) => {
1030
1030
  }
1031
1031
  }
1032
1032
  function subtractNames(names, from) {
1033
- for (const n in from)
1034
- names[n] = (names[n] || 0) - (from[n] || 0);
1033
+ for (const n2 in from)
1034
+ names[n2] = (names[n2] || 0) - (from[n2] || 0);
1035
1035
  }
1036
1036
  function not(x) {
1037
1037
  return typeof x == "boolean" || typeof x == "number" || x === null ? !x : (0, code_1._)`!${par(x)}`;
@@ -1184,7 +1184,7 @@ var require_util = __commonJS((exports) => {
1184
1184
  }
1185
1185
  exports.evaluatedPropsToName = evaluatedPropsToName;
1186
1186
  function setEvaluated(gen, props, ps) {
1187
- Object.keys(ps).forEach((p) => gen.assign((0, codegen_1._)`${props}${(0, codegen_1.getProperty)(p)}`, true));
1187
+ Object.keys(ps).forEach((p2) => gen.assign((0, codegen_1._)`${props}${(0, codegen_1.getProperty)(p2)}`, true));
1188
1188
  }
1189
1189
  exports.setEvaluated = setEvaluated;
1190
1190
  var snippets = {};
@@ -1720,11 +1720,11 @@ var require_code2 = __commonJS((exports) => {
1720
1720
  }
1721
1721
  exports.noPropertyInData = noPropertyInData;
1722
1722
  function allSchemaProperties(schemaMap) {
1723
- return schemaMap ? Object.keys(schemaMap).filter((p) => p !== "__proto__") : [];
1723
+ return schemaMap ? Object.keys(schemaMap).filter((p2) => p2 !== "__proto__") : [];
1724
1724
  }
1725
1725
  exports.allSchemaProperties = allSchemaProperties;
1726
1726
  function schemaProperties(it, schemaMap) {
1727
- return allSchemaProperties(schemaMap).filter((p) => !(0, util_1.alwaysValidSchema)(it, schemaMap[p]));
1727
+ return allSchemaProperties(schemaMap).filter((p2) => !(0, util_1.alwaysValidSchema)(it, schemaMap[p2]));
1728
1728
  }
1729
1729
  exports.schemaProperties = schemaProperties;
1730
1730
  function callValidateCode({ schemaCode, data, it: { gen, topSchemaRef, schemaPath, errorPath }, it }, func, context, passSchema) {
@@ -1743,13 +1743,13 @@ var require_code2 = __commonJS((exports) => {
1743
1743
  exports.callValidateCode = callValidateCode;
1744
1744
  var newRegExp = (0, codegen_1._)`new RegExp`;
1745
1745
  function usePattern({ gen, it: { opts } }, pattern) {
1746
- const u2 = opts.unicodeRegExp ? "u" : "";
1746
+ const u = opts.unicodeRegExp ? "u" : "";
1747
1747
  const { regExp } = opts.code;
1748
- const rx = regExp(pattern, u2);
1748
+ const rx = regExp(pattern, u);
1749
1749
  return gen.scopeValue("pattern", {
1750
1750
  key: rx.toString(),
1751
1751
  ref: rx,
1752
- code: (0, codegen_1._)`${regExp.code === "new RegExp" ? newRegExp : (0, util_2.useFunc)(gen, regExp)}(${pattern}, ${u2})`
1752
+ code: (0, codegen_1._)`${regExp.code === "new RegExp" ? newRegExp : (0, util_2.useFunc)(gen, regExp)}(${pattern}, ${u})`
1753
1753
  });
1754
1754
  }
1755
1755
  exports.usePattern = usePattern;
@@ -1999,43 +1999,43 @@ var require_subschema = __commonJS((exports) => {
1999
1999
 
2000
2000
  // ../../node_modules/fast-deep-equal/index.js
2001
2001
  var require_fast_deep_equal = __commonJS((exports, module) => {
2002
- module.exports = function equal(a2, b) {
2003
- if (a2 === b)
2002
+ module.exports = function equal(a2, b2) {
2003
+ if (a2 === b2)
2004
2004
  return true;
2005
- if (a2 && b && typeof a2 == "object" && typeof b == "object") {
2006
- if (a2.constructor !== b.constructor)
2005
+ if (a2 && b2 && typeof a2 == "object" && typeof b2 == "object") {
2006
+ if (a2.constructor !== b2.constructor)
2007
2007
  return false;
2008
2008
  var length, i2, keys;
2009
2009
  if (Array.isArray(a2)) {
2010
2010
  length = a2.length;
2011
- if (length != b.length)
2011
+ if (length != b2.length)
2012
2012
  return false;
2013
2013
  for (i2 = length;i2-- !== 0; )
2014
- if (!equal(a2[i2], b[i2]))
2014
+ if (!equal(a2[i2], b2[i2]))
2015
2015
  return false;
2016
2016
  return true;
2017
2017
  }
2018
2018
  if (a2.constructor === RegExp)
2019
- return a2.source === b.source && a2.flags === b.flags;
2019
+ return a2.source === b2.source && a2.flags === b2.flags;
2020
2020
  if (a2.valueOf !== Object.prototype.valueOf)
2021
- return a2.valueOf() === b.valueOf();
2021
+ return a2.valueOf() === b2.valueOf();
2022
2022
  if (a2.toString !== Object.prototype.toString)
2023
- return a2.toString() === b.toString();
2023
+ return a2.toString() === b2.toString();
2024
2024
  keys = Object.keys(a2);
2025
2025
  length = keys.length;
2026
- if (length !== Object.keys(b).length)
2026
+ if (length !== Object.keys(b2).length)
2027
2027
  return false;
2028
2028
  for (i2 = length;i2-- !== 0; )
2029
- if (!Object.prototype.hasOwnProperty.call(b, keys[i2]))
2029
+ if (!Object.prototype.hasOwnProperty.call(b2, keys[i2]))
2030
2030
  return false;
2031
2031
  for (i2 = length;i2-- !== 0; ) {
2032
2032
  var key = keys[i2];
2033
- if (!equal(a2[key], b[key]))
2033
+ if (!equal(a2[key], b2[key]))
2034
2034
  return false;
2035
2035
  }
2036
2036
  return true;
2037
2037
  }
2038
- return a2 !== a2 && b !== b;
2038
+ return a2 !== a2 && b2 !== b2;
2039
2039
  };
2040
2040
  });
2041
2041
 
@@ -2195,12 +2195,12 @@ var require_resolve = __commonJS((exports) => {
2195
2195
  function getFullPath(resolver, id = "", normalize) {
2196
2196
  if (normalize !== false)
2197
2197
  id = normalizeId(id);
2198
- const p = resolver.parse(id);
2199
- return _getFullPath(resolver, p);
2198
+ const p2 = resolver.parse(id);
2199
+ return _getFullPath(resolver, p2);
2200
2200
  }
2201
2201
  exports.getFullPath = getFullPath;
2202
- function _getFullPath(resolver, p) {
2203
- const serialized = resolver.serialize(p);
2202
+ function _getFullPath(resolver, p2) {
2203
+ const serialized = resolver.serialize(p2);
2204
2204
  return serialized.split("#")[0] + "#";
2205
2205
  }
2206
2206
  exports._getFullPath = _getFullPath;
@@ -2965,11 +2965,11 @@ var require_compile = __commonJS((exports) => {
2965
2965
  return sch || this.schemas[ref] || resolveSchema.call(this, root, ref);
2966
2966
  }
2967
2967
  function resolveSchema(root, ref) {
2968
- const p = this.opts.uriResolver.parse(ref);
2969
- const refPath = (0, resolve_1._getFullPath)(this.opts.uriResolver, p);
2968
+ const p2 = this.opts.uriResolver.parse(ref);
2969
+ const refPath = (0, resolve_1._getFullPath)(this.opts.uriResolver, p2);
2970
2970
  let baseId = (0, resolve_1.getFullPath)(this.opts.uriResolver, root.baseId, undefined);
2971
2971
  if (Object.keys(root.schema).length > 0 && refPath === baseId) {
2972
- return getJsonPointer.call(this, p, root);
2972
+ return getJsonPointer.call(this, p2, root);
2973
2973
  }
2974
2974
  const id = (0, resolve_1.normalizeId)(refPath);
2975
2975
  const schOrRef = this.refs[id] || this.schemas[id];
@@ -2977,7 +2977,7 @@ var require_compile = __commonJS((exports) => {
2977
2977
  const sch = resolveSchema.call(this, root, schOrRef);
2978
2978
  if (typeof (sch === null || sch === undefined ? undefined : sch.schema) !== "object")
2979
2979
  return;
2980
- return getJsonPointer.call(this, p, sch);
2980
+ return getJsonPointer.call(this, p2, sch);
2981
2981
  }
2982
2982
  if (typeof (schOrRef === null || schOrRef === undefined ? undefined : schOrRef.schema) !== "object")
2983
2983
  return;
@@ -2991,7 +2991,7 @@ var require_compile = __commonJS((exports) => {
2991
2991
  baseId = (0, resolve_1.resolveUrl)(this.opts.uriResolver, baseId, schId);
2992
2992
  return new SchemaEnv({ schema, schemaId, root, baseId });
2993
2993
  }
2994
- return getJsonPointer.call(this, p, schOrRef);
2994
+ return getJsonPointer.call(this, p2, schOrRef);
2995
2995
  }
2996
2996
  exports.resolveSchema = resolveSchema;
2997
2997
  var PREVENT_SCOPE_CHANGE = new Set([
@@ -3890,17 +3890,17 @@ var require_core = __commonJS((exports) => {
3890
3890
  return this.opts.defaultMeta = typeof meta3 == "object" ? meta3[schemaId] || meta3 : undefined;
3891
3891
  }
3892
3892
  validate(schemaKeyRef, data) {
3893
- let v2;
3893
+ let v;
3894
3894
  if (typeof schemaKeyRef == "string") {
3895
- v2 = this.getSchema(schemaKeyRef);
3896
- if (!v2)
3895
+ v = this.getSchema(schemaKeyRef);
3896
+ if (!v)
3897
3897
  throw new Error(`no schema with key or ref "${schemaKeyRef}"`);
3898
3898
  } else {
3899
- v2 = this.compile(schemaKeyRef);
3899
+ v = this.compile(schemaKeyRef);
3900
3900
  }
3901
- const valid = v2(data);
3902
- if (!("$async" in v2))
3903
- this.errors = v2.errors;
3901
+ const valid = v(data);
3902
+ if (!("$async" in v))
3903
+ this.errors = v.errors;
3904
3904
  return valid;
3905
3905
  }
3906
3906
  compile(schema, _meta) {
@@ -3947,9 +3947,9 @@ var require_core = __commonJS((exports) => {
3947
3947
  this.addSchema(_schema, ref, meta3);
3948
3948
  }
3949
3949
  async function _loadSchema(ref) {
3950
- const p = this._loading[ref];
3951
- if (p)
3952
- return p;
3950
+ const p2 = this._loading[ref];
3951
+ if (p2)
3952
+ return p2;
3953
3953
  try {
3954
3954
  return await (this._loading[ref] = loadSchema(ref));
3955
3955
  } finally {
@@ -4372,8 +4372,8 @@ var require_ref = __commonJS((exports) => {
4372
4372
  return callRef(cxt, (0, codegen_1._)`${rootName}.validate`, root, root.$async);
4373
4373
  }
4374
4374
  function callValidate(sch) {
4375
- const v2 = getValidate(cxt, sch);
4376
- callRef(cxt, v2, sch, sch.$async);
4375
+ const v = getValidate(cxt, sch);
4376
+ callRef(cxt, v, sch, sch.$async);
4377
4377
  }
4378
4378
  function inlineRefSchema(sch) {
4379
4379
  const schName = gen.scopeValue("schema", opts.code.source === true ? { ref: sch, code: (0, codegen_1.stringify)(sch) } : { ref: sch });
@@ -4395,7 +4395,7 @@ var require_ref = __commonJS((exports) => {
4395
4395
  return sch.validate ? gen.scopeValue("validate", { ref: sch.validate }) : (0, codegen_1._)`${gen.scopeValue("wrapper", { ref: sch })}.validate`;
4396
4396
  }
4397
4397
  exports.getValidate = getValidate;
4398
- function callRef(cxt, v2, sch, $async) {
4398
+ function callRef(cxt, v, sch, $async) {
4399
4399
  const { gen, it } = cxt;
4400
4400
  const { allErrors, schemaEnv: env, opts } = it;
4401
4401
  const passCxt = opts.passContext ? names_1.default.this : codegen_1.nil;
@@ -4408,8 +4408,8 @@ var require_ref = __commonJS((exports) => {
4408
4408
  throw new Error("async schema referenced by sync schema");
4409
4409
  const valid = gen.let("valid");
4410
4410
  gen.try(() => {
4411
- gen.code((0, codegen_1._)`await ${(0, code_1.callValidateCode)(cxt, v2, passCxt)}`);
4412
- addEvaluatedFrom(v2);
4411
+ gen.code((0, codegen_1._)`await ${(0, code_1.callValidateCode)(cxt, v, passCxt)}`);
4412
+ addEvaluatedFrom(v);
4413
4413
  if (!allErrors)
4414
4414
  gen.assign(valid, true);
4415
4415
  }, (e2) => {
@@ -4421,7 +4421,7 @@ var require_ref = __commonJS((exports) => {
4421
4421
  cxt.ok(valid);
4422
4422
  }
4423
4423
  function callSyncRef() {
4424
- cxt.result((0, code_1.callValidateCode)(cxt, v2, passCxt), () => addEvaluatedFrom(v2), () => addErrorsFrom(v2));
4424
+ cxt.result((0, code_1.callValidateCode)(cxt, v, passCxt), () => addEvaluatedFrom(v), () => addErrorsFrom(v));
4425
4425
  }
4426
4426
  function addErrorsFrom(source) {
4427
4427
  const errs = (0, codegen_1._)`${source}.errors`;
@@ -4600,8 +4600,8 @@ var require_pattern = __commonJS((exports) => {
4600
4600
  error: error49,
4601
4601
  code(cxt) {
4602
4602
  const { data, $data, schema, schemaCode, it } = cxt;
4603
- const u2 = it.opts.unicodeRegExp ? "u" : "";
4604
- const regExp = $data ? (0, codegen_1._)`(new RegExp(${schemaCode}, ${u2}))` : (0, code_1.usePattern)(cxt, schema);
4603
+ const u = it.opts.unicodeRegExp ? "u" : "";
4604
+ const regExp = $data ? (0, codegen_1._)`(new RegExp(${schemaCode}, ${u}))` : (0, code_1.usePattern)(cxt, schema);
4605
4605
  cxt.fail$data((0, codegen_1._)`!${regExp}.test(${data})`);
4606
4606
  }
4607
4607
  };
@@ -4872,7 +4872,7 @@ var require_enum = __commonJS((exports) => {
4872
4872
  cxt.pass(valid);
4873
4873
  function loopEnum() {
4874
4874
  gen.assign(valid, false);
4875
- gen.forOf("v", schemaCode, (v2) => gen.if((0, codegen_1._)`${getEql()}(${data}, ${v2})`, () => gen.assign(valid, true).break()));
4875
+ gen.forOf("v", schemaCode, (v) => gen.if((0, codegen_1._)`${getEql()}(${data}, ${v})`, () => gen.assign(valid, true).break()));
4876
4876
  }
4877
4877
  function equalCode(vSchema, i2) {
4878
4878
  const sch = schema[i2];
@@ -5323,12 +5323,12 @@ var require_additionalProperties = __commonJS((exports) => {
5323
5323
  const propsSchema = (0, util_1.schemaRefOrVal)(it, parentSchema.properties, "properties");
5324
5324
  definedProp = (0, code_1.isOwnProperty)(gen, propsSchema, key);
5325
5325
  } else if (props.length) {
5326
- definedProp = (0, codegen_1.or)(...props.map((p) => (0, codegen_1._)`${key} === ${p}`));
5326
+ definedProp = (0, codegen_1.or)(...props.map((p2) => (0, codegen_1._)`${key} === ${p2}`));
5327
5327
  } else {
5328
5328
  definedProp = codegen_1.nil;
5329
5329
  }
5330
5330
  if (patProps.length) {
5331
- definedProp = (0, codegen_1.or)(definedProp, ...patProps.map((p) => (0, codegen_1._)`${(0, code_1.usePattern)(cxt, p)}.test(${key})`));
5331
+ definedProp = (0, codegen_1.or)(definedProp, ...patProps.map((p2) => (0, codegen_1._)`${(0, code_1.usePattern)(cxt, p2)}.test(${key})`));
5332
5332
  }
5333
5333
  return (0, codegen_1.not)(definedProp);
5334
5334
  }
@@ -5405,7 +5405,7 @@ var require_properties = __commonJS((exports) => {
5405
5405
  if (it.opts.unevaluated && allProps.length && it.props !== true) {
5406
5406
  it.props = util_1.mergeEvaluated.props(gen, (0, util_1.toHash)(allProps), it.props);
5407
5407
  }
5408
- const properties = allProps.filter((p) => !(0, util_1.alwaysValidSchema)(it, schema[p]));
5408
+ const properties = allProps.filter((p2) => !(0, util_1.alwaysValidSchema)(it, schema[p2]));
5409
5409
  if (properties.length === 0)
5410
5410
  return;
5411
5411
  const valid = gen.name("valid");
@@ -5452,7 +5452,7 @@ var require_patternProperties = __commonJS((exports) => {
5452
5452
  const { gen, schema, data, parentSchema, it } = cxt;
5453
5453
  const { opts } = it;
5454
5454
  const patterns = (0, code_1.allSchemaProperties)(schema);
5455
- const alwaysValidPatterns = patterns.filter((p) => (0, util_1.alwaysValidSchema)(it, schema[p]));
5455
+ const alwaysValidPatterns = patterns.filter((p2) => (0, util_1.alwaysValidSchema)(it, schema[p2]));
5456
5456
  if (patterns.length === 0 || alwaysValidPatterns.length === patterns.length && (!it.opts.unevaluated || it.props === true)) {
5457
5457
  return;
5458
5458
  }
@@ -6169,7 +6169,7 @@ var require_ajv = __commonJS((exports, module) => {
6169
6169
  class Ajv extends core_1.default {
6170
6170
  _addVocabularies() {
6171
6171
  super._addVocabularies();
6172
- draft7_1.default.forEach((v2) => this.addVocabulary(v2));
6172
+ draft7_1.default.forEach((v) => this.addVocabulary(v));
6173
6173
  if (this.opts.discriminator)
6174
6174
  this.addKeyword(discriminator_1.default);
6175
6175
  }
@@ -6694,8 +6694,8 @@ var require_util2 = __commonJS((exports) => {
6694
6694
  const stringify = {};
6695
6695
  for (let i2 = 0;i2 < obj.length; i2++) {
6696
6696
  let keys = Object.keys(obj[i2]);
6697
- keys.sort((a2, b) => {
6698
- return a2 - b;
6697
+ keys.sort((a2, b2) => {
6698
+ return a2 - b2;
6699
6699
  });
6700
6700
  let str = "";
6701
6701
  for (let j2 = 0;j2 < keys.length; j2++) {
@@ -6710,12 +6710,12 @@ var require_util2 = __commonJS((exports) => {
6710
6710
  return uniques;
6711
6711
  }
6712
6712
  function sortByKey(array3, keys) {
6713
- return array3.sort((a2, b) => {
6713
+ return array3.sort((a2, b2) => {
6714
6714
  let x = "";
6715
6715
  let y2 = "";
6716
6716
  keys.forEach((key) => {
6717
6717
  x = x + a2[key];
6718
- y2 = y2 + b[key];
6718
+ y2 = y2 + b2[key];
6719
6719
  });
6720
6720
  return x < y2 ? -1 : x > y2 ? 1 : 0;
6721
6721
  });
@@ -7275,19 +7275,19 @@ var require_util2 = __commonJS((exports) => {
7275
7275
  if (typeof ms === "number" && ms > 1600000000000) {
7276
7276
  const l = ms % 100 + 15;
7277
7277
  for (let i2 = 0;i2 < l; i2++) {
7278
- const r = Math.random() * 61.99999999 + 1;
7279
- const rs = parseInt(Math.floor(r).toString(), 10);
7280
- const rs2 = parseInt(r.toString().split(".")[0], 10);
7278
+ const r2 = Math.random() * 61.99999999 + 1;
7279
+ const rs = parseInt(Math.floor(r2).toString(), 10);
7280
+ const rs2 = parseInt(r2.toString().split(".")[0], 10);
7281
7281
  const q2 = Math.random() * 61.99999999 + 1;
7282
7282
  const qs = parseInt(Math.floor(q2).toString(), 10);
7283
7283
  const qs2 = parseInt(q2.toString().split(".")[0], 10);
7284
- notPolluted = notPolluted && r !== q2;
7284
+ notPolluted = notPolluted && r2 !== q2;
7285
7285
  notPolluted = notPolluted && rs === rs2 && qs === qs2;
7286
7286
  st += s2[rs - 1];
7287
7287
  }
7288
7288
  notPolluted = notPolluted && st.length === l;
7289
- let p = Math.random() * l * 0.9999999999;
7290
- let stm = st.substr(0, p) + " " + st.substr(p, 2000);
7289
+ let p2 = Math.random() * l * 0.9999999999;
7290
+ let stm = st.substr(0, p2) + " " + st.substr(p2, 2000);
7291
7291
  try {
7292
7292
  stm.__proto__.replace = stringReplace;
7293
7293
  } catch (e2) {
@@ -7295,16 +7295,16 @@ var require_util2 = __commonJS((exports) => {
7295
7295
  }
7296
7296
  let sto = stm.replace(/ /g, "");
7297
7297
  notPolluted = notPolluted && st === sto;
7298
- p = Math.random() * l * 0.9999999999;
7299
- stm = st.substr(0, p) + "{" + st.substr(p, 2000);
7298
+ p2 = Math.random() * l * 0.9999999999;
7299
+ stm = st.substr(0, p2) + "{" + st.substr(p2, 2000);
7300
7300
  sto = stm.replace(/{/g, "");
7301
7301
  notPolluted = notPolluted && st === sto;
7302
- p = Math.random() * l * 0.9999999999;
7303
- stm = st.substr(0, p) + "*" + st.substr(p, 2000);
7302
+ p2 = Math.random() * l * 0.9999999999;
7303
+ stm = st.substr(0, p2) + "*" + st.substr(p2, 2000);
7304
7304
  sto = stm.replace(/\*/g, "");
7305
7305
  notPolluted = notPolluted && st === sto;
7306
- p = Math.random() * l * 0.9999999999;
7307
- stm = st.substr(0, p) + "$" + st.substr(p, 2000);
7306
+ p2 = Math.random() * l * 0.9999999999;
7307
+ stm = st.substr(0, p2) + "$" + st.substr(p2, 2000);
7308
7308
  sto = stm.replace(/\$/g, "");
7309
7309
  notPolluted = notPolluted && st === sto;
7310
7310
  const stl = st.toLowerCase();
@@ -7351,8 +7351,8 @@ var require_util2 = __commonJS((exports) => {
7351
7351
  const dirs = getDirectories(source2);
7352
7352
  const files = dirs.map((dir) => {
7353
7353
  return getFilesRecursively(dir);
7354
- }).reduce((a2, b) => {
7355
- return a2.concat(b);
7354
+ }).reduce((a2, b2) => {
7355
+ return a2.concat(b2);
7356
7356
  }, []);
7357
7357
  return files.concat(getFiles(source2));
7358
7358
  } catch {
@@ -10305,11 +10305,11 @@ var require_osinfo = __commonJS((exports) => {
10305
10305
  });
10306
10306
  }
10307
10307
  }
10308
- macs = macs.sort((a2, b) => {
10309
- if (a2 < b) {
10308
+ macs = macs.sort((a2, b2) => {
10309
+ if (a2 < b2) {
10310
10310
  return -1;
10311
10311
  }
10312
- if (a2 > b) {
10312
+ if (a2 > b2) {
10313
10313
  return 1;
10314
10314
  }
10315
10315
  return 0;
@@ -12478,7 +12478,7 @@ var require_cpu = __commonJS((exports) => {
12478
12478
  }
12479
12479
  if (result2.cores.length > 0) {
12480
12480
  if (result2.main === null) {
12481
- result2.main = Math.round(result2.cores.reduce((a2, b) => a2 + b, 0) / result2.cores.length);
12481
+ result2.main = Math.round(result2.cores.reduce((a2, b2) => a2 + b2, 0) / result2.cores.length);
12482
12482
  }
12483
12483
  let maxtmp = Math.max.apply(Math, result2.cores);
12484
12484
  result2.max = maxtmp > result2.main ? maxtmp : result2.main;
@@ -12541,7 +12541,7 @@ var require_cpu = __commonJS((exports) => {
12541
12541
  }
12542
12542
  });
12543
12543
  if (result2.cores.length > 0) {
12544
- result2.main = Math.round(result2.cores.reduce((a2, b) => a2 + b, 0) / result2.cores.length);
12544
+ result2.main = Math.round(result2.cores.reduce((a2, b2) => a2 + b2, 0) / result2.cores.length);
12545
12545
  const maxtmp = Math.max.apply(Math, result2.cores);
12546
12546
  result2.max = maxtmp > result2.main ? maxtmp : result2.main;
12547
12547
  } else {
@@ -14400,10 +14400,10 @@ var require_graphics = __commonJS((exports) => {
14400
14400
  const bus = parseInt(device["CL_DEVICE_PCI_BUS_ID_NV"]);
14401
14401
  const slot = parseInt(device["CL_DEVICE_PCI_SLOT_ID_NV"]);
14402
14402
  if (!isNaN(bus) && !isNaN(slot)) {
14403
- const b = bus & 255;
14404
- const d2 = slot >> 3 & 255;
14403
+ const b2 = bus & 255;
14404
+ const d = slot >> 3 & 255;
14405
14405
  const f2 = slot & 7;
14406
- busAddress = `${b.toString().padStart(2, "0")}:${d2.toString().padStart(2, "0")}.${f2}`;
14406
+ busAddress = `${b2.toString().padStart(2, "0")}:${d.toString().padStart(2, "0")}.${f2}`;
14407
14407
  }
14408
14408
  }
14409
14409
  if (busAddress) {
@@ -14620,7 +14620,7 @@ var require_graphics = __commonJS((exports) => {
14620
14620
  }
14621
14621
  try {
14622
14622
  if (model_raw.length > 2) {
14623
- result2.model = model_raw.match(/.{1,2}/g).map((v2) => String.fromCharCode(parseInt(v2, 16))).join("");
14623
+ result2.model = model_raw.match(/.{1,2}/g).map((v) => String.fromCharCode(parseInt(v, 16))).join("");
14624
14624
  }
14625
14625
  } catch {
14626
14626
  util2.noop();
@@ -19449,7 +19449,7 @@ var require_processes = __commonJS((exports) => {
19449
19449
  }
19450
19450
  }
19451
19451
  srvString = srvs.join("|");
19452
- } catch (d2) {
19452
+ } catch (d) {
19453
19453
  try {
19454
19454
  srvString = "";
19455
19455
  const tmpsrv = execSync("service --status-all 2> /dev/null", util2.execOptsLinux).toString().split(`
@@ -19507,8 +19507,8 @@ var require_processes = __commonJS((exports) => {
19507
19507
  });
19508
19508
  }
19509
19509
  const pids = [];
19510
- for (const p of ps) {
19511
- const pid = p.trim().split(" ")[2];
19510
+ for (const p2 of ps) {
19511
+ const pid = p2.trim().split(" ")[2];
19512
19512
  if (pid) {
19513
19513
  pids.push(parseInt(pid, 10));
19514
19514
  }
@@ -22755,17 +22755,17 @@ var require_audio = __commonJS((exports) => {
22755
22755
  return result2;
22756
22756
  }
22757
22757
  }
22758
- function parseWinAudioStatus(n) {
22759
- let status = n;
22760
- if (n === 1) {
22758
+ function parseWinAudioStatus(n2) {
22759
+ let status = n2;
22760
+ if (n2 === 1) {
22761
22761
  status = "other";
22762
- } else if (n === 2) {
22762
+ } else if (n2 === 2) {
22763
22763
  status = "unknown";
22764
- } else if (n === 3) {
22764
+ } else if (n2 === 3) {
22765
22765
  status = "enabled";
22766
- } else if (n === 4) {
22766
+ } else if (n2 === 4) {
22767
22767
  status = "disabled";
22768
- } else if (n === 5) {
22768
+ } else if (n2 === 5) {
22769
22769
  status = "not applicable";
22770
22770
  }
22771
22771
  return status;
@@ -45182,8 +45182,8 @@ function mergeCapabilities(base, additional) {
45182
45182
  }
45183
45183
 
45184
45184
  // ../../node_modules/@modelcontextprotocol/ext-apps/dist/src/server/index.js
45185
- var F = "2026-01-26";
45186
- var z2 = "ui/notifications/tool-input-partial";
45185
+ var Y = "2026-01-26";
45186
+ var F = "ui/notifications/tool-input-partial";
45187
45187
 
45188
45188
  class j {
45189
45189
  eventTarget;
@@ -45210,7 +45210,7 @@ class j {
45210
45210
  window.addEventListener("message", this.messageListener);
45211
45211
  }
45212
45212
  async send(Z, $) {
45213
- if (Z.method !== z2)
45213
+ if (Z.method !== F)
45214
45214
  console.debug("Sending message", Z);
45215
45215
  this.eventTarget.postMessage(Z, "*");
45216
45216
  }
@@ -45223,10 +45223,10 @@ class j {
45223
45223
  sessionId;
45224
45224
  setProtocolVersion;
45225
45225
  }
45226
- var g = exports_external.union([exports_external.literal("light"), exports_external.literal("dark")]).describe("Color theme preference for the host environment.");
45226
+ var M = exports_external.union([exports_external.literal("light"), exports_external.literal("dark")]).describe("Color theme preference for the host environment.");
45227
45227
  var G = exports_external.union([exports_external.literal("inline"), exports_external.literal("fullscreen"), exports_external.literal("pip")]).describe("Display mode for UI presentation.");
45228
- var i = exports_external.union([exports_external.literal("--color-background-primary"), exports_external.literal("--color-background-secondary"), exports_external.literal("--color-background-tertiary"), exports_external.literal("--color-background-inverse"), exports_external.literal("--color-background-ghost"), exports_external.literal("--color-background-info"), exports_external.literal("--color-background-danger"), exports_external.literal("--color-background-success"), exports_external.literal("--color-background-warning"), exports_external.literal("--color-background-disabled"), exports_external.literal("--color-text-primary"), exports_external.literal("--color-text-secondary"), exports_external.literal("--color-text-tertiary"), exports_external.literal("--color-text-inverse"), exports_external.literal("--color-text-ghost"), exports_external.literal("--color-text-info"), exports_external.literal("--color-text-danger"), exports_external.literal("--color-text-success"), exports_external.literal("--color-text-warning"), exports_external.literal("--color-text-disabled"), exports_external.literal("--color-border-primary"), exports_external.literal("--color-border-secondary"), exports_external.literal("--color-border-tertiary"), exports_external.literal("--color-border-inverse"), exports_external.literal("--color-border-ghost"), exports_external.literal("--color-border-info"), exports_external.literal("--color-border-danger"), exports_external.literal("--color-border-success"), exports_external.literal("--color-border-warning"), exports_external.literal("--color-border-disabled"), exports_external.literal("--color-ring-primary"), exports_external.literal("--color-ring-secondary"), exports_external.literal("--color-ring-inverse"), exports_external.literal("--color-ring-info"), exports_external.literal("--color-ring-danger"), exports_external.literal("--color-ring-success"), exports_external.literal("--color-ring-warning"), exports_external.literal("--font-sans"), exports_external.literal("--font-mono"), exports_external.literal("--font-weight-normal"), exports_external.literal("--font-weight-medium"), exports_external.literal("--font-weight-semibold"), exports_external.literal("--font-weight-bold"), exports_external.literal("--font-text-xs-size"), exports_external.literal("--font-text-sm-size"), exports_external.literal("--font-text-md-size"), exports_external.literal("--font-text-lg-size"), exports_external.literal("--font-heading-xs-size"), exports_external.literal("--font-heading-sm-size"), exports_external.literal("--font-heading-md-size"), exports_external.literal("--font-heading-lg-size"), exports_external.literal("--font-heading-xl-size"), exports_external.literal("--font-heading-2xl-size"), exports_external.literal("--font-heading-3xl-size"), exports_external.literal("--font-text-xs-line-height"), exports_external.literal("--font-text-sm-line-height"), exports_external.literal("--font-text-md-line-height"), exports_external.literal("--font-text-lg-line-height"), exports_external.literal("--font-heading-xs-line-height"), exports_external.literal("--font-heading-sm-line-height"), exports_external.literal("--font-heading-md-line-height"), exports_external.literal("--font-heading-lg-line-height"), exports_external.literal("--font-heading-xl-line-height"), exports_external.literal("--font-heading-2xl-line-height"), exports_external.literal("--font-heading-3xl-line-height"), exports_external.literal("--border-radius-xs"), exports_external.literal("--border-radius-sm"), exports_external.literal("--border-radius-md"), exports_external.literal("--border-radius-lg"), exports_external.literal("--border-radius-xl"), exports_external.literal("--border-radius-full"), exports_external.literal("--border-width-regular"), exports_external.literal("--shadow-hairline"), exports_external.literal("--shadow-sm"), exports_external.literal("--shadow-md"), exports_external.literal("--shadow-lg")]).describe("CSS variable keys available to MCP apps for theming.");
45229
- var o = exports_external.record(i.describe(`Style variables for theming MCP apps.
45228
+ var p = exports_external.union([exports_external.literal("--color-background-primary"), exports_external.literal("--color-background-secondary"), exports_external.literal("--color-background-tertiary"), exports_external.literal("--color-background-inverse"), exports_external.literal("--color-background-ghost"), exports_external.literal("--color-background-info"), exports_external.literal("--color-background-danger"), exports_external.literal("--color-background-success"), exports_external.literal("--color-background-warning"), exports_external.literal("--color-background-disabled"), exports_external.literal("--color-text-primary"), exports_external.literal("--color-text-secondary"), exports_external.literal("--color-text-tertiary"), exports_external.literal("--color-text-inverse"), exports_external.literal("--color-text-ghost"), exports_external.literal("--color-text-info"), exports_external.literal("--color-text-danger"), exports_external.literal("--color-text-success"), exports_external.literal("--color-text-warning"), exports_external.literal("--color-text-disabled"), exports_external.literal("--color-border-primary"), exports_external.literal("--color-border-secondary"), exports_external.literal("--color-border-tertiary"), exports_external.literal("--color-border-inverse"), exports_external.literal("--color-border-ghost"), exports_external.literal("--color-border-info"), exports_external.literal("--color-border-danger"), exports_external.literal("--color-border-success"), exports_external.literal("--color-border-warning"), exports_external.literal("--color-border-disabled"), exports_external.literal("--color-ring-primary"), exports_external.literal("--color-ring-secondary"), exports_external.literal("--color-ring-inverse"), exports_external.literal("--color-ring-info"), exports_external.literal("--color-ring-danger"), exports_external.literal("--color-ring-success"), exports_external.literal("--color-ring-warning"), exports_external.literal("--font-sans"), exports_external.literal("--font-mono"), exports_external.literal("--font-weight-normal"), exports_external.literal("--font-weight-medium"), exports_external.literal("--font-weight-semibold"), exports_external.literal("--font-weight-bold"), exports_external.literal("--font-text-xs-size"), exports_external.literal("--font-text-sm-size"), exports_external.literal("--font-text-md-size"), exports_external.literal("--font-text-lg-size"), exports_external.literal("--font-heading-xs-size"), exports_external.literal("--font-heading-sm-size"), exports_external.literal("--font-heading-md-size"), exports_external.literal("--font-heading-lg-size"), exports_external.literal("--font-heading-xl-size"), exports_external.literal("--font-heading-2xl-size"), exports_external.literal("--font-heading-3xl-size"), exports_external.literal("--font-text-xs-line-height"), exports_external.literal("--font-text-sm-line-height"), exports_external.literal("--font-text-md-line-height"), exports_external.literal("--font-text-lg-line-height"), exports_external.literal("--font-heading-xs-line-height"), exports_external.literal("--font-heading-sm-line-height"), exports_external.literal("--font-heading-md-line-height"), exports_external.literal("--font-heading-lg-line-height"), exports_external.literal("--font-heading-xl-line-height"), exports_external.literal("--font-heading-2xl-line-height"), exports_external.literal("--font-heading-3xl-line-height"), exports_external.literal("--border-radius-xs"), exports_external.literal("--border-radius-sm"), exports_external.literal("--border-radius-md"), exports_external.literal("--border-radius-lg"), exports_external.literal("--border-radius-xl"), exports_external.literal("--border-radius-full"), exports_external.literal("--border-width-regular"), exports_external.literal("--shadow-hairline"), exports_external.literal("--shadow-sm"), exports_external.literal("--shadow-md"), exports_external.literal("--shadow-lg")]).describe("CSS variable keys available to MCP apps for theming.");
45229
+ var r = exports_external.record(p.describe(`Style variables for theming MCP apps.
45230
45230
 
45231
45231
  Individual style keys are optional - hosts may provide any subset of these values.
45232
45232
  Values are strings containing CSS values (colors, sizes, font stacks, etc.).
@@ -45245,30 +45245,30 @@ Values are strings containing CSS values (colors, sizes, font stacks, etc.).
45245
45245
 
45246
45246
  Note: This type uses \`Record<K, string | undefined>\` rather than \`Partial<Record<K, string>>\`
45247
45247
  for compatibility with Zod schema generation. Both are functionally equivalent for validation.`);
45248
- var a = exports_external.object({ method: exports_external.literal("ui/open-link"), params: exports_external.object({ url: exports_external.string().describe("URL to open in the host's browser") }) });
45249
- var O = exports_external.object({ isError: exports_external.boolean().optional().describe("True if the host failed to open the URL (e.g., due to security policy).") }).passthrough();
45250
- var I = exports_external.object({ isError: exports_external.boolean().optional().describe("True if the download failed (e.g., user cancelled or host denied).") }).passthrough();
45251
- var w = exports_external.object({ isError: exports_external.boolean().optional().describe("True if the host rejected or failed to deliver the message.") }).passthrough();
45252
- var s = exports_external.object({ method: exports_external.literal("ui/notifications/sandbox-proxy-ready"), params: exports_external.object({}) });
45248
+ var n = exports_external.object({ method: exports_external.literal("ui/open-link"), params: exports_external.object({ url: exports_external.string().describe("URL to open in the host's browser") }) });
45249
+ var q = exports_external.object({ isError: exports_external.boolean().optional().describe("True if the host failed to open the URL (e.g., due to security policy).") }).passthrough();
45250
+ var O = exports_external.object({ isError: exports_external.boolean().optional().describe("True if the download failed (e.g., user cancelled or host denied).") }).passthrough();
45251
+ var I = exports_external.object({ isError: exports_external.boolean().optional().describe("True if the host rejected or failed to deliver the message.") }).passthrough();
45252
+ var i = exports_external.object({ method: exports_external.literal("ui/notifications/sandbox-proxy-ready"), params: exports_external.object({}) });
45253
45253
  var B = exports_external.object({ connectDomains: exports_external.array(exports_external.string()).optional().describe(`Origins for network requests (fetch/XHR/WebSocket).
45254
45254
 
45255
45255
  - Maps to CSP \`connect-src\` directive
45256
45256
  - Empty or omitted → no network connections (secure default)`), resourceDomains: exports_external.array(exports_external.string()).optional().describe("Origins for static resources (images, scripts, stylesheets, fonts, media).\n\n- Maps to CSP `img-src`, `script-src`, `style-src`, `font-src`, `media-src` directives\n- Wildcard subdomains supported: `https://*.example.com`\n- Empty or omitted → no network resources (secure default)"), frameDomains: exports_external.array(exports_external.string()).optional().describe("Origins for nested iframes.\n\n- Maps to CSP `frame-src` directive\n- Empty or omitted → no nested iframes allowed (`frame-src 'none'`)"), baseUriDomains: exports_external.array(exports_external.string()).optional().describe("Allowed base URIs for the document.\n\n- Maps to CSP `base-uri` directive\n- Empty or omitted → only same origin allowed (`base-uri 'self'`)") });
45257
45257
  var K = exports_external.object({ camera: exports_external.object({}).optional().describe("Request camera access.\n\nMaps to Permission Policy `camera` feature."), microphone: exports_external.object({}).optional().describe("Request microphone access.\n\nMaps to Permission Policy `microphone` feature."), geolocation: exports_external.object({}).optional().describe("Request geolocation access.\n\nMaps to Permission Policy `geolocation` feature."), clipboardWrite: exports_external.object({}).optional().describe("Request clipboard write access.\n\nMaps to Permission Policy `clipboard-write` feature.") });
45258
- var t = exports_external.object({ method: exports_external.literal("ui/notifications/size-changed"), params: exports_external.object({ width: exports_external.number().optional().describe("New width in pixels."), height: exports_external.number().optional().describe("New height in pixels.") }) });
45259
- var A = exports_external.object({ method: exports_external.literal("ui/notifications/tool-input"), params: exports_external.object({ arguments: exports_external.record(exports_external.string(), exports_external.unknown().describe("Complete tool call arguments as key-value pairs.")).optional().describe("Complete tool call arguments as key-value pairs.") }) });
45260
- var P = exports_external.object({ method: exports_external.literal("ui/notifications/tool-input-partial"), params: exports_external.object({ arguments: exports_external.record(exports_external.string(), exports_external.unknown().describe("Partial tool call arguments (incomplete, may change).")).optional().describe("Partial tool call arguments (incomplete, may change).") }) });
45261
- var H = exports_external.object({ method: exports_external.literal("ui/notifications/tool-cancelled"), params: exports_external.object({ reason: exports_external.string().optional().describe('Optional reason for the cancellation (e.g., "user action", "timeout").') }) });
45262
- var S = exports_external.object({ fonts: exports_external.string().optional() });
45263
- var y = exports_external.object({ variables: o.optional().describe("CSS variables for theming the app."), css: S.optional().describe("CSS blocks that apps can inject.") });
45264
- var _ = exports_external.object({ method: exports_external.literal("ui/resource-teardown"), params: exports_external.object({}) });
45265
- var e = exports_external.record(exports_external.string(), exports_external.unknown());
45266
- var q = exports_external.object({ text: exports_external.object({}).optional().describe("Host supports text content blocks."), image: exports_external.object({}).optional().describe("Host supports image content blocks."), audio: exports_external.object({}).optional().describe("Host supports audio content blocks."), resource: exports_external.object({}).optional().describe("Host supports resource content blocks."), resourceLink: exports_external.object({}).optional().describe("Host supports resource link content blocks."), structuredContent: exports_external.object({}).optional().describe("Host supports structured content.") });
45267
- var QQ = exports_external.object({ method: exports_external.literal("ui/notifications/request-teardown"), params: exports_external.object({}).optional() });
45268
- var C = exports_external.object({ experimental: exports_external.object({}).optional().describe("Experimental features (structure TBD)."), openLinks: exports_external.object({}).optional().describe("Host supports opening external URLs."), downloadFile: exports_external.object({}).optional().describe("Host supports file downloads via ui/download-file."), serverTools: exports_external.object({ listChanged: exports_external.boolean().optional().describe("Host supports tools/list_changed notifications.") }).optional().describe("Host can proxy tool calls to the MCP server."), serverResources: exports_external.object({ listChanged: exports_external.boolean().optional().describe("Host supports resources/list_changed notifications.") }).optional().describe("Host can proxy resource reads to the MCP server."), logging: exports_external.object({}).optional().describe("Host accepts log messages."), sandbox: exports_external.object({ permissions: K.optional().describe("Permissions granted by the host (camera, microphone, geolocation)."), csp: B.optional().describe("CSP domains approved by the host.") }).optional().describe("Sandbox configuration applied by the host."), updateModelContext: q.optional().describe("Host accepts context updates (ui/update-model-context) to be included in the model's context for future turns."), message: q.optional().describe("Host supports receiving content messages (ui/message) from the view.") });
45269
- var f = exports_external.object({ experimental: exports_external.object({}).optional().describe("Experimental features (structure TBD)."), tools: exports_external.object({ listChanged: exports_external.boolean().optional().describe("App supports tools/list_changed notifications.") }).optional().describe("App exposes MCP-style tools that the host can call."), availableDisplayModes: exports_external.array(G).optional().describe("Display modes the app supports.") });
45270
- var ZQ = exports_external.object({ method: exports_external.literal("ui/notifications/initialized"), params: exports_external.object({}).optional() });
45271
- var $Q = exports_external.object({ csp: B.optional().describe("Content Security Policy configuration for UI resources."), permissions: K.optional().describe("Sandbox permissions requested by the UI resource."), domain: exports_external.string().optional().describe(`Dedicated origin for view sandbox.
45258
+ var o = exports_external.object({ method: exports_external.literal("ui/notifications/size-changed"), params: exports_external.object({ width: exports_external.number().optional().describe("New width in pixels."), height: exports_external.number().optional().describe("New height in pixels.") }) });
45259
+ var w = exports_external.object({ method: exports_external.literal("ui/notifications/tool-input"), params: exports_external.object({ arguments: exports_external.record(exports_external.string(), exports_external.unknown().describe("Complete tool call arguments as key-value pairs.")).optional().describe("Complete tool call arguments as key-value pairs.") }) });
45260
+ var A = exports_external.object({ method: exports_external.literal("ui/notifications/tool-input-partial"), params: exports_external.object({ arguments: exports_external.record(exports_external.string(), exports_external.unknown().describe("Partial tool call arguments (incomplete, may change).")).optional().describe("Partial tool call arguments (incomplete, may change).") }) });
45261
+ var P = exports_external.object({ method: exports_external.literal("ui/notifications/tool-cancelled"), params: exports_external.object({ reason: exports_external.string().optional().describe('Optional reason for the cancellation (e.g., "user action", "timeout").') }) });
45262
+ var b = exports_external.object({ fonts: exports_external.string().optional() });
45263
+ var g = exports_external.object({ variables: r.optional().describe("CSS variables for theming the app."), css: b.optional().describe("CSS blocks that apps can inject.") });
45264
+ var H = exports_external.object({ method: exports_external.literal("ui/resource-teardown"), params: exports_external.object({}) });
45265
+ var a = exports_external.record(exports_external.string(), exports_external.unknown());
45266
+ var z2 = exports_external.object({ text: exports_external.object({}).optional().describe("Host supports text content blocks."), image: exports_external.object({}).optional().describe("Host supports image content blocks."), audio: exports_external.object({}).optional().describe("Host supports audio content blocks."), resource: exports_external.object({}).optional().describe("Host supports resource content blocks."), resourceLink: exports_external.object({}).optional().describe("Host supports resource link content blocks."), structuredContent: exports_external.object({}).optional().describe("Host supports structured content.") });
45267
+ var s = exports_external.object({ method: exports_external.literal("ui/notifications/request-teardown"), params: exports_external.object({}).optional() });
45268
+ var S = exports_external.object({ experimental: exports_external.object({}).optional().describe("Experimental features (structure TBD)."), openLinks: exports_external.object({}).optional().describe("Host supports opening external URLs."), downloadFile: exports_external.object({}).optional().describe("Host supports file downloads via ui/download-file."), serverTools: exports_external.object({ listChanged: exports_external.boolean().optional().describe("Host supports tools/list_changed notifications.") }).optional().describe("Host can proxy tool calls to the MCP server."), serverResources: exports_external.object({ listChanged: exports_external.boolean().optional().describe("Host supports resources/list_changed notifications.") }).optional().describe("Host can proxy resource reads to the MCP server."), logging: exports_external.object({}).optional().describe("Host accepts log messages."), sandbox: exports_external.object({ permissions: K.optional().describe("Permissions granted by the host (camera, microphone, geolocation)."), csp: B.optional().describe("CSP domains approved by the host.") }).optional().describe("Sandbox configuration applied by the host."), updateModelContext: z2.optional().describe("Host accepts context updates (ui/update-model-context) to be included in the model's context for future turns."), message: z2.optional().describe("Host supports receiving content messages (ui/message) from the view.") });
45269
+ var y = exports_external.object({ experimental: exports_external.object({}).optional().describe("Experimental features (structure TBD)."), tools: exports_external.object({ listChanged: exports_external.boolean().optional().describe("App supports tools/list_changed notifications.") }).optional().describe("App exposes MCP-style tools that the host can call."), availableDisplayModes: exports_external.array(G).optional().describe("Display modes the app supports.") });
45270
+ var t = exports_external.object({ method: exports_external.literal("ui/notifications/initialized"), params: exports_external.object({}).optional() });
45271
+ var e = exports_external.object({ csp: B.optional().describe("Content Security Policy configuration for UI resources."), permissions: K.optional().describe("Sandbox permissions requested by the UI resource."), domain: exports_external.string().optional().describe(`Dedicated origin for view sandbox.
45272
45272
 
45273
45273
  Useful when views need stable, dedicated origins for OAuth callbacks, CORS policies, or API key allowlists.
45274
45274
 
@@ -45283,27 +45283,27 @@ Boolean requesting whether a visible border and background is provided by the ho
45283
45283
  - \`true\`: request visible border + background
45284
45284
  - \`false\`: request no visible border + background
45285
45285
  - omitted: host decides border`) });
45286
- var JQ = exports_external.object({ method: exports_external.literal("ui/request-display-mode"), params: exports_external.object({ mode: G.describe("The display mode being requested.") }) });
45287
- var T = exports_external.object({ mode: G.describe("The display mode that was actually set. May differ from requested if not supported.") }).passthrough();
45288
- var u = exports_external.union([exports_external.literal("model"), exports_external.literal("app")]).describe("Tool visibility scope - who can access the tool.");
45289
- var XQ = exports_external.object({ resourceUri: exports_external.string().optional(), visibility: exports_external.array(u).optional().describe(`Who can access this tool. Default: ["model", "app"]
45286
+ var QQ = exports_external.object({ method: exports_external.literal("ui/request-display-mode"), params: exports_external.object({ mode: G.describe("The display mode being requested.") }) });
45287
+ var _ = exports_external.object({ mode: G.describe("The display mode that was actually set. May differ from requested if not supported.") }).passthrough();
45288
+ var C = exports_external.union([exports_external.literal("model"), exports_external.literal("app")]).describe("Tool visibility scope - who can access the tool.");
45289
+ var ZQ = exports_external.object({ resourceUri: exports_external.string().optional(), visibility: exports_external.array(C).optional().describe(`Who can access this tool. Default: ["model", "app"]
45290
45290
  - "model": Tool visible to and callable by the agent
45291
45291
  - "app": Tool callable by the app from this server only`) });
45292
- var RQ = exports_external.object({ mimeTypes: exports_external.array(exports_external.string()).optional().describe('Array of supported MIME types for UI resources.\nMust include `"text/html;profile=mcp-app"` for MCP Apps support.') });
45293
- var VQ = exports_external.object({ method: exports_external.literal("ui/download-file"), params: exports_external.object({ contents: exports_external.array(exports_external.union([EmbeddedResourceSchema, ResourceLinkSchema])).describe("Resource contents to download — embedded (inline data) or linked (host fetches). Uses standard MCP resource types.") }) });
45294
- var DQ = exports_external.object({ method: exports_external.literal("ui/message"), params: exports_external.object({ role: exports_external.literal("user").describe('Message role, currently only "user" is supported.'), content: exports_external.array(ContentBlockSchema).describe("Message content blocks (text, image, etc.).") }) });
45295
- var GQ = exports_external.object({ method: exports_external.literal("ui/notifications/sandbox-resource-ready"), params: exports_external.object({ html: exports_external.string().describe("HTML content to load into the inner iframe."), sandbox: exports_external.string().optional().describe("Optional override for the inner iframe's sandbox attribute."), csp: B.optional().describe("CSP configuration from resource metadata."), permissions: K.optional().describe("Sandbox permissions from resource metadata.") }) });
45296
- var E = exports_external.object({ method: exports_external.literal("ui/notifications/tool-result"), params: CallToolResultSchema.describe("Standard MCP tool execution result.") });
45297
- var k = exports_external.object({ toolInfo: exports_external.object({ id: RequestIdSchema.optional().describe("JSON-RPC id of the tools/call request."), tool: ToolSchema.describe("Tool definition including name, inputSchema, etc.") }).optional().describe("Metadata of the tool call that instantiated this App."), theme: g.optional().describe("Current color theme preference."), styles: y.optional().describe("Style configuration for theming the app."), displayMode: G.optional().describe("How the UI is currently displayed."), availableDisplayModes: exports_external.array(G).optional().describe("Display modes the host supports."), containerDimensions: exports_external.union([exports_external.object({ height: exports_external.number().describe("Fixed container height in pixels.") }), exports_external.object({ maxHeight: exports_external.union([exports_external.number(), exports_external.undefined()]).optional().describe("Maximum container height in pixels.") })]).and(exports_external.union([exports_external.object({ width: exports_external.number().describe("Fixed container width in pixels.") }), exports_external.object({ maxWidth: exports_external.union([exports_external.number(), exports_external.undefined()]).optional().describe("Maximum container width in pixels.") })])).optional().describe(`Container dimensions. Represents the dimensions of the iframe or other
45292
+ var TQ = exports_external.object({ mimeTypes: exports_external.array(exports_external.string()).optional().describe('Array of supported MIME types for UI resources.\nMust include `"text/html;profile=mcp-app"` for MCP Apps support.') });
45293
+ var $Q = exports_external.object({ method: exports_external.literal("ui/download-file"), params: exports_external.object({ contents: exports_external.array(exports_external.union([EmbeddedResourceSchema, ResourceLinkSchema])).describe("Resource contents to download — embedded (inline data) or linked (host fetches). Uses standard MCP resource types.") }) });
45294
+ var JQ = exports_external.object({ method: exports_external.literal("ui/message"), params: exports_external.object({ role: exports_external.literal("user").describe('Message role, currently only "user" is supported.'), content: exports_external.array(ContentBlockSchema).describe("Message content blocks (text, image, etc.).") }) });
45295
+ var XQ = exports_external.object({ method: exports_external.literal("ui/notifications/sandbox-resource-ready"), params: exports_external.object({ html: exports_external.string().describe("HTML content to load into the inner iframe."), sandbox: exports_external.string().optional().describe("Optional override for the inner iframe's sandbox attribute."), csp: B.optional().describe("CSP configuration from resource metadata."), permissions: K.optional().describe("Sandbox permissions from resource metadata.") }) });
45296
+ var T = exports_external.object({ method: exports_external.literal("ui/notifications/tool-result"), params: CallToolResultSchema.describe("Standard MCP tool execution result.") });
45297
+ var E = exports_external.object({ toolInfo: exports_external.object({ id: RequestIdSchema.optional().describe("JSON-RPC id of the tools/call request."), tool: ToolSchema.describe("Tool definition including name, inputSchema, etc.") }).optional().describe("Metadata of the tool call that instantiated this App."), theme: M.optional().describe("Current color theme preference."), styles: g.optional().describe("Style configuration for theming the app."), displayMode: G.optional().describe("How the UI is currently displayed."), availableDisplayModes: exports_external.array(G).optional().describe("Display modes the host supports."), containerDimensions: exports_external.union([exports_external.object({ height: exports_external.number().describe("Fixed container height in pixels.") }), exports_external.object({ maxHeight: exports_external.union([exports_external.number(), exports_external.undefined()]).optional().describe("Maximum container height in pixels.") })]).and(exports_external.union([exports_external.object({ width: exports_external.number().describe("Fixed container width in pixels.") }), exports_external.object({ maxWidth: exports_external.union([exports_external.number(), exports_external.undefined()]).optional().describe("Maximum container width in pixels.") })])).optional().describe(`Container dimensions. Represents the dimensions of the iframe or other
45298
45298
  container holding the app. Specify either width or maxWidth, and either height or maxHeight.`), locale: exports_external.string().optional().describe("User's language and region preference in BCP 47 format."), timeZone: exports_external.string().optional().describe("User's timezone in IANA format."), userAgent: exports_external.string().optional().describe("Host application identifier."), platform: exports_external.union([exports_external.literal("web"), exports_external.literal("desktop"), exports_external.literal("mobile")]).optional().describe("Platform type for responsive design decisions."), deviceCapabilities: exports_external.object({ touch: exports_external.boolean().optional().describe("Whether the device supports touch input."), hover: exports_external.boolean().optional().describe("Whether the device supports hover interactions.") }).optional().describe("Device input capabilities."), safeAreaInsets: exports_external.object({ top: exports_external.number().describe("Top safe area inset in pixels."), right: exports_external.number().describe("Right safe area inset in pixels."), bottom: exports_external.number().describe("Bottom safe area inset in pixels."), left: exports_external.number().describe("Left safe area inset in pixels.") }).optional().describe("Mobile safe area boundaries in pixels.") }).passthrough();
45299
- var R = exports_external.object({ method: exports_external.literal("ui/notifications/host-context-changed"), params: k.describe("Partial context update containing only changed fields.") });
45300
- var LQ = exports_external.object({ method: exports_external.literal("ui/update-model-context"), params: exports_external.object({ content: exports_external.array(ContentBlockSchema).optional().describe("Context content blocks (text, image, etc.)."), structuredContent: exports_external.record(exports_external.string(), exports_external.unknown().describe("Structured content for machine-readable context data.")).optional().describe("Structured content for machine-readable context data.") }) });
45301
- var WQ = exports_external.object({ method: exports_external.literal("ui/initialize"), params: exports_external.object({ appInfo: ImplementationSchema.describe("App identification (name and version)."), appCapabilities: f.describe("Features and capabilities this app provides."), protocolVersion: exports_external.string().describe("Protocol version this app supports.") }) });
45302
- var U = exports_external.object({ protocolVersion: exports_external.string().describe('Negotiated protocol version string (e.g., "2025-11-21").'), hostInfo: ImplementationSchema.describe("Host application identification and version."), hostCapabilities: C.describe("Features and capabilities provided by the host."), hostContext: k.describe("Rich context about the host environment.") }).passthrough();
45303
- var v = "ui/resourceUri";
45304
- var d = "text/html;profile=mcp-app";
45305
-
45306
- class OQ extends Protocol {
45299
+ var k = exports_external.object({ method: exports_external.literal("ui/notifications/host-context-changed"), params: E.describe("Partial context update containing only changed fields.") });
45300
+ var VQ = exports_external.object({ method: exports_external.literal("ui/update-model-context"), params: exports_external.object({ content: exports_external.array(ContentBlockSchema).optional().describe("Context content blocks (text, image, etc.)."), structuredContent: exports_external.record(exports_external.string(), exports_external.unknown().describe("Structured content for machine-readable context data.")).optional().describe("Structured content for machine-readable context data.") }) });
45301
+ var WQ = exports_external.object({ method: exports_external.literal("ui/initialize"), params: exports_external.object({ appInfo: ImplementationSchema.describe("App identification (name and version)."), appCapabilities: y.describe("Features and capabilities this app provides."), protocolVersion: exports_external.string().describe("Protocol version this app supports.") }) });
45302
+ var R = exports_external.object({ protocolVersion: exports_external.string().describe('Negotiated protocol version string (e.g., "2025-11-21").'), hostInfo: ImplementationSchema.describe("Host application identification and version."), hostCapabilities: S.describe("Features and capabilities provided by the host."), hostContext: E.describe("Rich context about the host environment.") }).passthrough();
45303
+ var U = "ui/resourceUri";
45304
+ var f = "text/html;profile=mcp-app";
45305
+
45306
+ class FQ extends Protocol {
45307
45307
  _appInfo;
45308
45308
  _capabilities;
45309
45309
  options;
@@ -45329,24 +45329,24 @@ class OQ extends Protocol {
45329
45329
  return this._hostContext;
45330
45330
  }
45331
45331
  set ontoolinput(Z) {
45332
- this.setNotificationHandler(A, ($) => Z($.params));
45332
+ this.setNotificationHandler(w, ($) => Z($.params));
45333
45333
  }
45334
45334
  set ontoolinputpartial(Z) {
45335
- this.setNotificationHandler(P, ($) => Z($.params));
45335
+ this.setNotificationHandler(A, ($) => Z($.params));
45336
45336
  }
45337
45337
  set ontoolresult(Z) {
45338
- this.setNotificationHandler(E, ($) => Z($.params));
45338
+ this.setNotificationHandler(T, ($) => Z($.params));
45339
45339
  }
45340
45340
  set ontoolcancelled(Z) {
45341
- this.setNotificationHandler(H, ($) => Z($.params));
45341
+ this.setNotificationHandler(P, ($) => Z($.params));
45342
45342
  }
45343
45343
  set onhostcontextchanged(Z) {
45344
- this.setNotificationHandler(R, ($) => {
45344
+ this.setNotificationHandler(k, ($) => {
45345
45345
  this._hostContext = { ...this._hostContext, ...$.params }, Z($.params);
45346
45346
  });
45347
45347
  }
45348
45348
  set onteardown(Z) {
45349
- this.setRequestHandler(_, ($, J) => Z($.params, J));
45349
+ this.setRequestHandler(H, ($, J) => Z($.params, J));
45350
45350
  }
45351
45351
  set oncalltool(Z) {
45352
45352
  this.setRequestHandler(CallToolRequestSchema, ($, J) => Z($.params, J));
@@ -45388,7 +45388,7 @@ class OQ extends Protocol {
45388
45388
  return await this.request({ method: "resources/list", params: Z }, ListResourcesResultSchema, $);
45389
45389
  }
45390
45390
  sendMessage(Z, $) {
45391
- return this.request({ method: "ui/message", params: Z }, w, $);
45391
+ return this.request({ method: "ui/message", params: Z }, I, $);
45392
45392
  }
45393
45393
  sendLog(Z) {
45394
45394
  return this.notification({ method: "notifications/message", params: Z });
@@ -45397,17 +45397,17 @@ class OQ extends Protocol {
45397
45397
  return this.request({ method: "ui/update-model-context", params: Z }, EmptyResultSchema, $);
45398
45398
  }
45399
45399
  openLink(Z, $) {
45400
- return this.request({ method: "ui/open-link", params: Z }, O, $);
45400
+ return this.request({ method: "ui/open-link", params: Z }, q, $);
45401
45401
  }
45402
45402
  sendOpenLink = this.openLink;
45403
45403
  downloadFile(Z, $) {
45404
- return this.request({ method: "ui/download-file", params: Z }, I, $);
45404
+ return this.request({ method: "ui/download-file", params: Z }, O, $);
45405
45405
  }
45406
45406
  requestTeardown(Z = {}) {
45407
45407
  return this.notification({ method: "ui/notifications/request-teardown", params: Z });
45408
45408
  }
45409
45409
  requestDisplayMode(Z, $) {
45410
- return this.request({ method: "ui/request-display-mode", params: Z }, T, $);
45410
+ return this.request({ method: "ui/request-display-mode", params: Z }, _, $);
45411
45411
  }
45412
45412
  sendSizeChanged(Z) {
45413
45413
  return this.notification({ method: "ui/notifications/size-changed", params: Z });
@@ -45418,25 +45418,25 @@ class OQ extends Protocol {
45418
45418
  return;
45419
45419
  Z = true, requestAnimationFrame(() => {
45420
45420
  Z = false;
45421
- let V = document.documentElement, L = V.style.width, W = V.style.height;
45422
- V.style.width = "fit-content", V.style.height = "max-content";
45423
- let x = V.getBoundingClientRect();
45424
- V.style.width = L, V.style.height = W;
45425
- let h = window.innerWidth - V.clientWidth, N = Math.ceil(x.width + h), Y = Math.ceil(x.height);
45426
- if (N !== $ || Y !== J)
45427
- $ = N, J = Y, this.sendSizeChanged({ width: N, height: Y });
45421
+ let W = document.documentElement, L = W.style.height;
45422
+ W.style.height = "max-content";
45423
+ let D = Math.ceil(W.getBoundingClientRect().height);
45424
+ W.style.height = L;
45425
+ let N = Math.ceil(window.innerWidth);
45426
+ if (N !== $ || D !== J)
45427
+ $ = N, J = D, this.sendSizeChanged({ width: N, height: D });
45428
45428
  });
45429
45429
  };
45430
45430
  X();
45431
- let D = new ResizeObserver(X);
45432
- return D.observe(document.documentElement), D.observe(document.body), () => D.disconnect();
45431
+ let V = new ResizeObserver(X);
45432
+ return V.observe(document.documentElement), V.observe(document.body), () => V.disconnect();
45433
45433
  }
45434
45434
  async connect(Z = new j(window.parent, window.parent), $) {
45435
45435
  if (this.transport)
45436
45436
  throw Error("App is already connected. Call close() before connecting again.");
45437
45437
  await super.connect(Z);
45438
45438
  try {
45439
- let J = await this.request({ method: "ui/initialize", params: { appCapabilities: this._capabilities, appInfo: this._appInfo, protocolVersion: F } }, U, $);
45439
+ let J = await this.request({ method: "ui/initialize", params: { appCapabilities: this._capabilities, appInfo: this._appInfo, protocolVersion: Y } }, R, $);
45440
45440
  if (J === undefined)
45441
45441
  throw Error(`Server sent invalid initialize result: ${J}`);
45442
45442
  if (this._hostCapabilities = J.hostCapabilities, this._hostInfo = J.hostInfo, this._hostContext = J.hostContext, await this.notification({ method: "ui/notifications/initialized" }), this.options?.autoResize)
@@ -45446,16 +45446,16 @@ class OQ extends Protocol {
45446
45446
  }
45447
45447
  }
45448
45448
  }
45449
- function hZ(Z, $, J, X) {
45450
- let D = J._meta, V = D.ui, L = D[v], W = D;
45451
- if (V?.resourceUri && !L)
45452
- W = { ...D, [v]: V.resourceUri };
45453
- else if (L && !V?.resourceUri)
45454
- W = { ...D, ui: { ...V, resourceUri: L } };
45455
- return Z.registerTool($, { ...J, _meta: W }, X);
45449
+ function fZ(Z, $, J, X) {
45450
+ let V = J._meta, W = V.ui, L = V[U], D = V;
45451
+ if (W?.resourceUri && !L)
45452
+ D = { ...V, [U]: W.resourceUri };
45453
+ else if (L && !W?.resourceUri)
45454
+ D = { ...V, ui: { ...W, resourceUri: L } };
45455
+ return Z.registerTool($, { ...J, _meta: D }, X);
45456
45456
  }
45457
- function mZ(Z, $, J, X, D) {
45458
- return Z.registerResource($, J, { mimeType: d, ...X }, D);
45457
+ function uZ(Z, $, J, X, V) {
45458
+ return Z.registerResource($, J, { mimeType: f, ...X }, V);
45459
45459
  }
45460
45460
 
45461
45461
  // ../../node_modules/@modelcontextprotocol/sdk/dist/esm/validation/ajv-provider.js
@@ -46444,7 +46444,7 @@ class McpServer {
46444
46444
  };
46445
46445
  this._registeredResourceTemplates[name] = registeredResourceTemplate;
46446
46446
  const variableNames = template.uriTemplate.variableNames;
46447
- const hasCompleter = Array.isArray(variableNames) && variableNames.some((v2) => !!template.completeCallback(v2));
46447
+ const hasCompleter = Array.isArray(variableNames) && variableNames.some((v) => !!template.completeCallback(v));
46448
46448
  if (hasCompleter) {
46449
46449
  this.setCompletionRequestHandler();
46450
46450
  }
@@ -46777,7 +46777,7 @@ function createServer() {
46777
46777
  version: "1.0.0"
46778
46778
  });
46779
46779
  const resourceUri = "ui://system-monitor/mcp-app.html";
46780
- hZ(server, "get-system-info", {
46780
+ fZ(server, "get-system-info", {
46781
46781
  title: "Get System Info",
46782
46782
  description: "Returns system information, including hostname, platform, CPU info, and memory.",
46783
46783
  inputSchema: {},
@@ -46790,7 +46790,7 @@ function createServer() {
46790
46790
  structuredContent: info
46791
46791
  };
46792
46792
  });
46793
- hZ(server, "poll-system-stats", {
46793
+ fZ(server, "poll-system-stats", {
46794
46794
  title: "Poll System Stats",
46795
46795
  description: "Returns dynamic system metrics for polling: per-core CPU timing, memory usage, and uptime. App-only.",
46796
46796
  inputSchema: {},
@@ -46803,13 +46803,13 @@ function createServer() {
46803
46803
  structuredContent: stats
46804
46804
  };
46805
46805
  });
46806
- mZ(server, resourceUri, resourceUri, { mimeType: d, description: "System Monitor UI" }, async () => {
46806
+ uZ(server, resourceUri, resourceUri, { mimeType: f, description: "System Monitor UI" }, async () => {
46807
46807
  const html = await fs.readFile(path.join(DIST_DIR, "mcp-app.html"), "utf-8");
46808
46808
  return {
46809
46809
  contents: [
46810
46810
  {
46811
46811
  uri: resourceUri,
46812
- mimeType: d,
46812
+ mimeType: f,
46813
46813
  text: html
46814
46814
  }
46815
46815
  ]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@modelcontextprotocol/server-system-monitor",
3
- "version": "1.3.0",
3
+ "version": "1.3.2",
4
4
  "type": "module",
5
5
  "description": "System monitor MCP App Server with real-time stats",
6
6
  "repository": {