Files
memind/package.json
john 08feae8bef feat(h5-session): Session Broker、run SSE replay 与 Finish 竞态修复
落地 H5 Session 架构 Patch 1–5(Broker 收口、Router decision、SSE taxonomy、goosed 边界检查),
并新增可选 MEMIND_RUN_STREAM_REPLAY run 事件回放与 H5 假交付 guard;修复 Finish 先于 agent-run
gate 导致 UI 永久 loading 的竞态,接入 verify:h5-session-patches 回归脚本。

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-06 14:19:48 +08:00

109 lines
9.2 KiB
JSON

{
"name": "tkmind-h5",
"private": true,
"version": "0.1.0",
"type": "module",
"scripts": {
"dev": "node scripts/dev-core.mjs",
"setup:dev-launchagent": "bash scripts/install-memind-dev-launchagent.sh",
"setup:dev-launchagent:uninstall": "bash scripts/install-memind-dev-launchagent.sh --uninstall",
"dev:all": "node scripts/dev.mjs",
"dev:plaza": "node scripts/dev-plaza.mjs",
"start:plaza": "node scripts/start-plaza-prod.mjs",
"dev:plaza-proxy": "node scripts/plaza-local-proxy.mjs",
"open:local-test": "node scripts/open-local-test.mjs",
"setup:plaza-dns": "node scripts/setup-plaza-local-dns.mjs",
"setup:plaza-dns:remove": "node scripts/setup-plaza-local-dns.mjs --remove",
"dev:plaza-dns": "node scripts/plaza-local-dns-server.mjs",
"open:plaza": "node scripts/open-plaza-local.mjs",
"check:plaza": "node scripts/check-plaza-local.mjs",
"setup:plaza-local": "node scripts/setup-plaza-local.mjs",
"setup:plaza-tunnel": "bash scripts/install-plaza-tunnel.sh",
"setup:plaza-tls": "node scripts/plaza-local-tls.mjs",
"dev:vite": "vite",
"dev:server": "node server.mjs",
"dev:adm": "node admin-server.mjs",
"dev:plaza-express": "node plaza-server.mjs",
"dev:ops": "cd ops && npm run dev",
"launch:executor": "node scripts/launch-executor.mjs",
"launch:aider": "node scripts/launch-executor.mjs aider",
"launch:openhands": "node scripts/launch-executor.mjs openhands",
"ops:grant": "node scripts/grant-ops-role.mjs",
"seed:plaza": "node scripts/seed-plaza-demo.mjs",
"seed:plaza-covers": "node scripts/seed-plaza-covers.mjs",
"backfill:plaza-cover-urls": "node scripts/backfill-plaza-cover-urls.mjs",
"backfill:plaza-public-urls": "node scripts/backfill-plaza-public-urls.mjs",
"enrich:plaza": "node scripts/enrich-plaza-posts.mjs",
"build": "vite build",
"build:portal-runtime": "node scripts/build-portal-runtime.mjs",
"build:mindspace-service-runtime": "node scripts/build-mindspace-service-runtime.mjs",
"check:mindspace-public-links": "node scripts/check-mindspace-public-links.mjs --downloads-only",
"check:mindspace-public-links:all": "node scripts/check-mindspace-public-links.mjs --all-links",
"check:mindspace-cover": "node scripts/check-mindspace-cover.mjs",
"demo:thumbnails": "node scripts/thumbnail-preview-demo.mjs",
"check:conversation-package-manifest": "node scripts/check-conversation-package-manifest.mjs",
"check:memory-v2": "node scripts/check-memory-v2-health.mjs",
"canary:memory-v2-app": "node scripts/check-memory-v2-app-canary.mjs",
"check:memory-v2-contracts": "node scripts/check-memory-v2-contracts.mjs",
"check:memory-v2-config": "node scripts/check-memory-v2-config-gaps.mjs",
"check:memory-v2-session": "node scripts/check-memory-v2-session-flow.mjs",
"check:memory-v2-stack": "node scripts/check-memory-v2-stack.mjs",
"scaffold:memory-v2-backend": "node scripts/scaffold-memory-v2-backend.mjs",
"smoke:memory-v2-pgvector": "node scripts/smoke-memory-v2-pgvector.mjs",
"smoke:memory-v2-qdrant": "node scripts/smoke-memory-v2-qdrant.mjs",
"smoke:memory-v2-external": "node scripts/smoke-memory-v2-external.mjs",
"mock:memory-v2-services": "node scripts/mock-memory-v2-services.mjs",
"test": "node --test auth.test.mjs asr-proxy.test.mjs billing.test.mjs billing-recharge.test.mjs wechat-pay.test.mjs wechat-oauth.test.mjs wechat-mp.test.mjs schedule-intent.test.mjs schedule-reminder-worker.test.mjs capabilities.test.mjs policies.test.mjs chat-skills.test.mjs chat-intent-router.test.mjs chat-finish-sync.test.mjs chat-agent-run-gate.test.mjs conversation-display.test.mjs user-publish.test.mjs user-memory-profile.test.mjs skills-registry.test.mjs agent-run-gateway.test.mjs agent-run-routes.test.mjs session-broker.test.mjs sse-event-taxonomy.test.mjs goosed-proxy-boundary.test.mjs agent-run-stream.test.mjs mindspace-h5-html-finish-guard.test.mjs admin-routes.test.mjs direct-chat-service.test.mjs tool-gateway.test.mjs mindspace.test.mjs mindspace-scan.test.mjs mindspace-assets.test.mjs mindspace-local-runtime-services.test.mjs mindspace-local-server-adapter.test.mjs mindspace-public-asset-token.test.mjs mindspace-remote-server-adapter.test.mjs mindspace-server-adapter.test.mjs mindspace-pages.test.mjs mindspace-page-sync-service.test.mjs public-site-bases.test.mjs mindspace-html-download-links.test.mjs mindspace-page-purge.test.mjs mindspace-public-delivery.test.mjs mindspace-public-page-context.test.mjs mindspace-public-route.test.mjs mindspace-publications.test.mjs mindspace-public-links.test.mjs mindspace-chat-save.test.mjs mindspace-chat-docx-package.test.mjs mindspace-public-finish-sync.test.mjs mindspace-chat-context.test.mjs mindspace-canonical-url.test.mjs mindspace-conversation-package.test.mjs mindspace-conversation-package-backfill.test.mjs mindspace-conversation-package-public-html.test.mjs mindspace-conversation-package-verify.test.mjs mindspace-conversation-package-registry.test.mjs mindspace-conversation-package-routes.test.mjs mindspace-conversation-package-store.test.mjs mindspace-conversation-schema.test.mjs mindspace-runtime-config.test.mjs mindspace-service.test.mjs mindspace-storage-adapter.test.mjs mindspace-content-scan.test.mjs mindspace-html-localize.test.mjs mindspace-visual-editor.test.mjs mindspace-cleanup.test.mjs mindspace-thumbnails.test.mjs mindspace-workspace-thumbnails.test.mjs mindspace-workspace-sync.test.mjs mindspace-asset-preview.test.mjs mindspace-agent-jobs.test.mjs mindspace-agent-runner.test.mjs mindspace-sandbox-mcp.test.mjs message-stream.test.mjs mindspace-service/mindspace-rpc-server.test.mjs plaza-posts.test.mjs plaza-interactions.test.mjs plaza-algorithm.test.mjs plaza-seo.test.mjs plaza-ops.test.mjs user-auth.test.mjs llm-providers.test.mjs admin-guard.test.mjs user-feedback.test.mjs memory-v2.test.mjs memory-v2-admin-config.test.mjs memory-v2-adapter-scaffold.test.mjs memory-v2-backend-contract.test.mjs memory-v2-health.test.mjs memory-v2-runtime.test.mjs memory-v2-plugin-backends.test.mjs memory-v2-pgvector.test.mjs memory-v2-pgvector-schema.test.mjs memory-v2-pgvector-backfill.test.mjs memory-v2-pgvector-smoke.test.mjs memory-v2-qdrant.test.mjs memory-v2-weaviate.test.mjs memory-v2-mem0.test.mjs memory-v2-letta.test.mjs memory-v2-external-adapters.test.mjs scripts/embed-memory-v2-local-hash.test.mjs scripts/check-memory-v2-app-canary.test.mjs scripts/check-memory-v2-config-gaps.test.mjs scripts/check-memory-v2-contracts.test.mjs scripts/check-memory-v2-health.test.mjs scripts/check-memory-v2-session-flow.test.mjs scripts/check-memory-v2-stack.test.mjs scripts/setup-memory-v2-pgvector-schema.test.mjs scripts/backfill-memory-v2-pgvector.test.mjs scripts/scaffold-memory-v2-backend.test.mjs scripts/smoke-memory-v2-pgvector.test.mjs scripts/smoke-memory-v2-qdrant.test.mjs scripts/smoke-memory-v2-external.test.mjs scripts/mock-memory-v2-services.test.mjs",
"test:mindspace-service": "node --test mindspace-service/mindspace-rpc-server.test.mjs",
"verify:chat-finish-sync": "node scripts/verify-chat-finish-sync.mjs",
"verify:public-finish-sync-runtime": "node scripts/verify-public-finish-sync-runtime.mjs",
"verify:mindspace-publish-guards": "node scripts/verify-mindspace-publish-guards.mjs",
"verify:mindspace-publish-guards:full": "node scripts/verify-mindspace-publish-guards.mjs --with-runtime",
"verify:mindspace-page-sync-guards": "node scripts/verify-mindspace-page-sync-guards.mjs",
"verify:wechat-channel-isolation": "node scripts/check-wechat-channel-isolation.mjs",
"verify:goosed-proxy-boundary": "node scripts/check-goosed-proxy-boundary.mjs",
"verify:h5-session-patches": "node scripts/verify-h5-session-patches.mjs",
"test:mindspace-e2e": "node scripts/mindspace-e2e.mjs",
"test:mindspace-pages-e2e": "node scripts/mindspace-pages-e2e.mjs",
"test:mindspace-publications-e2e": "node scripts/mindspace-publications-e2e.mjs",
"test:mindspace-agent-jobs-e2e": "node scripts/mindspace-agent-jobs-e2e.mjs",
"test:fruit-john-e2e": "node scripts/fruit-theme-john-e2e.mjs",
"generate:openapi": "node scripts/generate-openapi.mjs",
"check:openapi": "node scripts/generate-openapi.mjs && git diff --ignore-space-change --exit-code openapi.json",
"test:local": "vite build && node server.mjs",
"preview": "node server.mjs",
"start": "pnpm run build && node server.mjs",
"deploy:prod": "bash scripts/release-prod.sh",
"deploy:105": "bash scripts/sync-to-105.sh",
"deploy:plaza-105": "bash scripts/deploy-plaza-105.sh"
},
"dependencies": {
"@node-rs/argon2": "^2.0.2",
"@resvg/resvg-js": "^2.6.2",
"debug": "^4.4.3",
"express": "^4.21.2",
"framer-motion": "^12.42.0",
"http-proxy-middleware": "^3.0.3",
"jsonrepair": "^3.14.0",
"lucide-react": "^1.21.0",
"mysql2": "^3.22.5",
"pg": "^8.22.0",
"playwright": "^1.61.1",
"qrcode": "^1.5.4",
"react": "^19.0.0",
"react-dom": "^19.0.0",
"react-router-dom": "^7.13.1",
"redis": "^4.7.1",
"sharp": "^0.35.2",
"undici": "^6.26.0"
},
"devDependencies": {
"@types/react": "^19.0.10",
"@types/react-dom": "^19.0.4",
"@vitejs/plugin-react": "^4.3.4",
"happy-dom": "^20.10.2",
"typescript": "^5.8.2",
"vite": "^6.2.0"
}
}