Files
hapi/package.json
T
weishu a469d66bc4 fix(web): patch assistant-ui tap scheduler for bulk history prepends
Loading an older page prepends hundreds of messages in one flush. tap's
scheduler aborts after 50 dirty resources and drops the overflow, so the
thread never applied the merged page: the scroll-restore gate never
passed and the top sentinel kept re-triggering (loads everything at
once). Raise MAX_FLUSH_LIMIT 50->2000 via bun patchedDependencies.

Adds a Playwright regression spec driving the real message-window store
and HappyThread against a fake paginated API: one page per top
approach, scroll restored, no idle reloads.
2026-07-28 19:39:32 +08:00

45 lines
2.5 KiB
JSON

{
"name": "hapi",
"private": true,
"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",
"build": "bun run build:cli && bun run build:web && (cd hub && bun run generate:embedded-web-assets) && bun run build:hub",
"build:cli": "bun run typecheck:cli",
"build:single-exe": "bun run download:tunwg && bun run build:web && (cd hub && bun run generate:embedded-web-assets) && (cd cli && bun run build:exe:allinone)",
"build:single-exe:all": "bun run download:tunwg && bun run build:web && (cd hub && bun run generate:embedded-web-assets) && (cd cli && bun run build:exe:allinone:all)",
"download:tunwg": "bun run hub/scripts/download-tunwg.ts",
"build:hub": "cd hub && bun run build",
"build:web": "cd web && bun run build",
"dev:hub": "cd hub && bun run dev",
"dev:web": "cd web && bun run dev",
"typecheck": "bun run typecheck:cli && bun run typecheck:web && bun run typecheck:hub",
"typecheck:cli": "cd cli && bun run typecheck",
"typecheck:hub": "cd hub && bun run typecheck",
"typecheck:web": "cd web && bun run typecheck",
"test": "bun run test:cli && bun run test:hub && bun run test:web && bun run test:shared",
"test:cli": "cd cli && bun run test",
"test:hub": "cd hub && bun run test",
"test:web": "cd web && bun run test",
"test:shared": "cd shared && bun run test",
"test:e2e": "playwright test",
"test:e2e:ui": "playwright test --ui",
"test:mermaid-lightbox:playwright": "timeout 600 node scripts/dev/mermaid-lightbox-playwright.mjs",
"test:mermaid-lightbox:live": "timeout 900 env HAPI_LIVE=1 playwright test -c web/playwright.live.config.ts",
"seed:mermaid-lightbox:session": "bun run scripts/dev/mermaid-lightbox-seed-session-db.ts",
"clean-session": "bun run hub/scripts/cleanup-sessions.ts",
"release-all": "cd cli && bun run release-all"
},
"devDependencies": {
"@playwright/test": "^1.60.0",
"concurrently": "^9.2.1",
"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"
}
}