@mastra/deployer 1.64.0-alpha.4 → 1.64.0-alpha.5
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/docs/SKILL.md
CHANGED
|
@@ -3,7 +3,7 @@ name: mastra-deployer
|
|
|
3
3
|
description: Documentation for @mastra/deployer. Use when working with @mastra/deployer APIs, configuration, or implementation.
|
|
4
4
|
metadata:
|
|
5
5
|
package: "@mastra/deployer"
|
|
6
|
-
version: "1.64.0-alpha.
|
|
6
|
+
version: "1.64.0-alpha.5"
|
|
7
7
|
---
|
|
8
8
|
|
|
9
9
|
## When to use
|
package/dist/server/index.cjs
CHANGED
|
@@ -4525,12 +4525,21 @@ async function createHonoServer(mastra, options = { tools: {} }) {
|
|
|
4525
4525
|
if (serverMiddleware && serverMiddleware.length > 0) for (const m of serverMiddleware) app.use(m.path, skipIfFrameworkPublic(m.handler));
|
|
4526
4526
|
const browserStreamSetup = options.browserStream === false ? null : await setupBrowserStream(app, {
|
|
4527
4527
|
getToolset: async (agentId) => {
|
|
4528
|
+
const resolveBrowser = async (agent) => {
|
|
4529
|
+
if (!agent) return void 0;
|
|
4530
|
+
if (agent.browser) return agent.browser;
|
|
4531
|
+
try {
|
|
4532
|
+
return (await agent.getWorkspace())?.browser;
|
|
4533
|
+
} catch {
|
|
4534
|
+
return;
|
|
4535
|
+
}
|
|
4536
|
+
};
|
|
4528
4537
|
try {
|
|
4529
4538
|
const runtimeAgent = mastra.getAgentById(agentId);
|
|
4530
|
-
if (runtimeAgent) return runtimeAgent
|
|
4539
|
+
if (runtimeAgent) return await resolveBrowser(runtimeAgent);
|
|
4531
4540
|
} catch {}
|
|
4532
4541
|
try {
|
|
4533
|
-
return (await mastra.getEditor?.()?.agent.getById(agentId))
|
|
4542
|
+
return await resolveBrowser(await mastra.getEditor?.()?.agent.getById(agentId));
|
|
4534
4543
|
} catch {
|
|
4535
4544
|
return;
|
|
4536
4545
|
}
|