补齐平台壳宿主消费门禁

新增平台壳草稿通知和角标 HostBridge 同步层

补充真实 Tauri transport 单测和跳一跳完成集成测试

扩展原生壳门禁覆盖 H5 宿主消费链路

更新宿主壳协议、方案和共享决策记录
This commit is contained in:
2026-06-19 03:38:24 +08:00
parent 5ab7b53bf2
commit 49fffbca74
8 changed files with 379 additions and 13 deletions
@@ -191,10 +191,6 @@ import {
saveBabyObjectMatchDraft,
} from '../../services/edutainment-baby-object';
import { getExternalGenerationQueueOverview } from '../../services/external-generation';
import {
setHostAppBadgeCount,
showHostLocalNotification,
} from '../../services/host-bridge/hostBridge';
import {
jumpHopClient,
type JumpHopGalleryCardResponse,
@@ -553,6 +549,10 @@ import {
type PlatformHostDraftNotification,
sendPlatformHostDraftNotificationOnce,
} from './platformHostNotificationModel';
import {
sendPlatformHostDraftNotificationToHost,
syncPlatformHostDraftBadgeCountToHost,
} from './platformHostBridgeSync';
import {
buildMatch3DProfileFromSession,
hasMatch3DRuntimeAsset,
@@ -2030,7 +2030,7 @@ export function PlatformEntryFlowShellImpl({
sendPlatformHostDraftNotificationOnce(
sentPlatformHostDraftNotificationKeysRef.current,
notification,
showHostLocalNotification,
sendPlatformHostDraftNotificationToHost,
);
},
[],
@@ -3340,7 +3340,7 @@ export function PlatformEntryFlowShellImpl({
[draftGenerationNotices, visibleDraftNoticeKeys],
);
useEffect(() => {
void setHostAppBadgeCount({ count: unreadDraftGenerationUpdateCount });
syncPlatformHostDraftBadgeCountToHost(unreadDraftGenerationUpdateCount);
}, [unreadDraftGenerationUpdateCount]);
const resultViewError =
autosaveCoordinator.customWorldAutoSaveError ??