@epam/ai-dial-mcp-apps 1.2.8 → 1.2.10
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/index.js +3 -3
- package/package.json +3 -3
package/index.js
CHANGED
|
@@ -60,7 +60,7 @@ var C = {
|
|
|
60
60
|
}] }
|
|
61
61
|
};
|
|
62
62
|
}, M = async (e, t, n) => {
|
|
63
|
-
if (
|
|
63
|
+
if (e.discovery !== "direct" && t?.toolInput == null) return t?.toolResult;
|
|
64
64
|
try {
|
|
65
65
|
return await n(e.toolsetId, e.mcpToolName, t?.toolInput ?? {}, e.kind);
|
|
66
66
|
} catch {
|
|
@@ -70,7 +70,7 @@ var C = {
|
|
|
70
70
|
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(() => {
|
|
71
71
|
r.invalidate(i), S((e) => e + 1);
|
|
72
72
|
}, [r, i]), T = h(async (e) => {
|
|
73
|
-
if (
|
|
73
|
+
if (t != null && l != null) try {
|
|
74
74
|
let a = A(n), { html: o, toolResult: s } = await r.getOrFetch(i, a, async () => {
|
|
75
75
|
let [e, r] = await Promise.all([u(t.toolsetId, t.resourceUri), M(t, n, d)]);
|
|
76
76
|
return {
|
|
@@ -232,7 +232,7 @@ var C = {
|
|
|
232
232
|
] })
|
|
233
233
|
})]
|
|
234
234
|
});
|
|
235
|
-
}), I =
|
|
235
|
+
}), I = 9e5, L = (e) => {
|
|
236
236
|
let t = v(/* @__PURE__ */ new Map()), n = v(/* @__PURE__ */ new Map());
|
|
237
237
|
return _(() => {
|
|
238
238
|
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.2.
|
|
4
|
+
"version": "1.2.10",
|
|
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.2.
|
|
23
|
+
"@epam/ai-dial-attachment-canvas": "1.2.10"
|
|
24
24
|
},
|
|
25
25
|
"peerDependencies": {
|
|
26
|
-
"@epam/ai-dial-chat-shared": "1.2.
|
|
26
|
+
"@epam/ai-dial-chat-shared": "1.2.10",
|
|
27
27
|
"@epam/ai-dial-ui-kit": "^0.15.4",
|
|
28
28
|
"react": "^19.2.8"
|
|
29
29
|
},
|