@epam/ai-dial-mcp-apps 1.3.0-dev.118 → 1.3.0-dev.126

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.
Files changed (2) hide show
  1. package/index.js +3 -3
  2. package/package.json +3 -3
package/index.js CHANGED
@@ -63,7 +63,7 @@ var C = {
63
63
  }] }
64
64
  };
65
65
  }, F = async (e, t, n) => {
66
- if (!(e.discovery === "direct" || t?.toolInput != null)) return t?.toolResult;
66
+ if (e.discovery !== "direct" && t?.toolInput == null) return t?.toolResult;
67
67
  try {
68
68
  return await n(e.toolsetId, e.mcpToolName, t?.toolInput ?? {}, e.kind);
69
69
  } catch {
@@ -73,7 +73,7 @@ var C = {
73
73
  let { hostContext: s, hostInfo: c, sandboxUrl: l, fetchResourceHtml: u, callTool: d } = a, [f, p] = y(), [m, _] = y(), [v, b] = y(() => t == null || l == null ? w.Unavailable : w.Loading), [x, S] = y(0), C = h(() => {
74
74
  r.invalidate(i), S((e) => e + 1);
75
75
  }, [r, i]), T = h(async (e) => {
76
- if (!(t == null || l == null)) try {
76
+ if (t != null && l != null) try {
77
77
  let a = N(n), { html: o, toolResult: s } = await r.getOrFetch(i, a, async () => {
78
78
  let [e, r] = await Promise.all([u(t.toolsetId, t.resourceUri), F(t, n, d)]);
79
79
  return {
@@ -235,7 +235,7 @@ var C = {
235
235
  ] })
236
236
  })]
237
237
  });
238
- }), z = 900 * 1e3, B = (e) => {
238
+ }), z = 9e5, B = (e) => {
239
239
  let t = v(/* @__PURE__ */ new Map()), n = v(/* @__PURE__ */ new Map());
240
240
  return _(() => {
241
241
  let r = (t) => `${e}:${t}`, i = (e, t) => `${r(e)}::${t ?? ""}`, a = (e, n) => {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@epam/ai-dial-mcp-apps",
3
3
  "description": "Host-agnostic MCP Apps building blocks — tool-call/message matching, the response cache, and the inline preview hook/component shared by the full-width canvas and inline surfaces",
4
- "version": "1.3.0-dev.118",
4
+ "version": "1.3.0-dev.126",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",
7
7
  "main": "./index.js",
@@ -20,10 +20,10 @@
20
20
  "@tabler/icons-react": "^3.44.0",
21
21
  "@mcp-ui/client": "^7.1.1",
22
22
  "@modelcontextprotocol/sdk": "^1.32.1",
23
- "@epam/ai-dial-attachment-canvas": "1.3.0-dev.118"
23
+ "@epam/ai-dial-attachment-canvas": "1.3.0-dev.126"
24
24
  },
25
25
  "peerDependencies": {
26
- "@epam/ai-dial-chat-shared": "1.3.0-dev.118",
26
+ "@epam/ai-dial-chat-shared": "1.3.0-dev.126",
27
27
  "@epam/ai-dial-ui-kit": "^0.16.0-dev.20",
28
28
  "react": "^19.2.8"
29
29
  },