feat: multi-tier agent hierarchy, wallet ledger, and player UX polish

Add configurable agent max level and default sub-agent credit ratio, per-agent block direct player login on suspend, admin/agent wallet transaction views, and match detail my-bets section with refreshed player card styling.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-06-10 16:15:34 +08:00
parent 641c92a5f5
commit ef6b15f119
39 changed files with 2398 additions and 410 deletions

View File

@@ -11,6 +11,12 @@ export enum UserStatus {
LOCKED = 'LOCKED',
}
/** Minimum agent tier (root agents). Actual levels are unbounded integers when `agent.max_level` is 0. */
export const MIN_AGENT_LEVEL = 1;
/**
* Legacy enum for the original two-tier demo. Production code should use numeric `agentLevel` / `AgentProfile.level`.
*/
export enum AgentLevel {
LEVEL_1 = 1,
LEVEL_2 = 2,