feat(web): migrate to @assistant-ui/react 0.14 (tap 0.9.8 with update-depth fix)

- @assistant-ui/react ^0.11.53 -> ^0.14.29, react-markdown ^0.11.9 -> ^0.14.7
- resolves @assistant-ui/tap 0.9.8, which ships the upstream fix for
  bulk message prepends (per-scheduler MAX_UPDATE_DEPTH guard, PR
  assistant-ui/assistant-ui#5370) that the local patch covered for 0.3.5
- API migration: useAssistantApi -> useAui, useAssistantState -> useAuiState
  with s.* selector access; TextMessagePart type-guard for content.find;
  portable DefaultComponentsMap annotation for memoizeMarkdownComponents

Verified: tsc clean, 1762 unit tests, history-load e2e 12/12 against the
unpatched upstream scheduler.
This commit is contained in:
weishu
2026-08-02 00:12:29 +08:00
parent 58ff91e5c4
commit 9b299eaab7
20 changed files with 574 additions and 123 deletions
+8 -4
View File
@@ -1,7 +1,14 @@
{
"name": "hapi",
"private": true,
"workspaces": ["cli", "shared", "hub", "web", "website", "docs"],
"workspaces": [
"cli",
"shared",
"hub",
"web",
"website",
"docs"
],
"scripts": {
"build:site": "bun run --cwd website build && bun run --cwd docs docs:build && cp -r docs/.vitepress/dist website/dist/public/docs",
"dev": "concurrently \"bun run dev:hub\" \"bun run dev:web\" --kill-others-on-exit",
@@ -37,8 +44,5 @@
"playwright": "1.60.0",
"react-devtools-core": "^7.0.1",
"vite-plugin-pwa": "^1.2.0"
},
"patchedDependencies": {
"@assistant-ui/tap@0.3.5": "patches/@assistant-ui%2Ftap@0.3.5.patch"
}
}