feat: publish shared task and reply activities through MCP

This commit is contained in:
2026-10-07 21:38:33 +09:00
parent 48ef396ec1
commit 794859e4a4
53 changed files with 4076 additions and 453 deletions
+18
View File
@@ -0,0 +1,18 @@
import type { Page } from "@playwright/test";
/** Register before navigation: this stream starts in a client effect after hydration. */
export function waitForWorkspaceHydration(page: Page) {
return page.waitForResponse((response) => {
if (response.status() !== 200) return false;
const path = new URL(response.url()).pathname;
return (
path === "/api/activities/events" ||
(response.request().isNavigationRequest() &&
["/login", "/setup", "/onboarding"].includes(path))
);
});
}
export async function navigateHydrated(page: Page, url: string) {
await Promise.all([waitForWorkspaceHydration(page), page.goto(url)]);
}