feat(chat): add support action cards and live entitlements

This commit is contained in:
Codex
2026-07-24 17:59:57 +08:00
parent 19b8fc51d6
commit 76bffc1a0d
52 changed files with 1151 additions and 40 deletions
+2
View File
@@ -18,6 +18,7 @@ interface UserState {
avatarUrl: string | null;
isVip: boolean;
creditBalance: number;
entitlements: MachineContext["entitlements"];
}
type UserSnapshot = SnapshotFrom<typeof userMachine>;
@@ -59,5 +60,6 @@ function selectUserState(state: UserSnapshot): UserState {
avatarUrl: state.context.avatarUrl,
isVip: state.context.isVip,
creditBalance: state.context.creditBalance,
entitlements: state.context.entitlements,
};
}