Handle matching login and decorative content manifests

Add matching frame and message handling, per-connection session
encryption, and loopback traffic dispatch. Serve the decorative content
manifest and empty indices to remove startup download waits.

Resolve character requests to their explicit account ID, include the
nickname in profile replies, and redact matching traffic logs.
This commit is contained in:
N0VAN0M4LY committed 2026-11-24 08:12:40 +08:00
1 parent 18f63bf33e
commit 5a1fd594e0
24 files changed
+857 -37

No files matched your search

@@ -1,15 +1,18 @@
/** Char action names mapped to their handlers (full list of names: research-data/char_actions_37.json). */
import type { AccountStore } from '../../accounts/account-store.ts';
import type { PlayerProfiles } from '../../profile/player-profiles.ts';
import type { CharActionHandler } from '../char-action.ts';
import { initialMeta, legacyUserData } from './online-init-actions.ts';
import { entitlementsFull, initialMeta, legacyUserData } from './online-init-actions.ts';
export interface ActionDependencies {
readonly profiles: PlayerProfiles;
readonly accounts: AccountStore;
}
export function actionTable(deps: ActionDependencies): ReadonlyMap<string, CharActionHandler> {
return new Map<string, CharActionHandler>([
['cln_get_initial_meta', initialMeta()],
['cln_legacy_get_userdata', legacyUserData(deps.profiles)],
['cln_upd_entitlements_full', entitlementsFull(deps.profiles, deps.accounts)],
['cln_legacy_get_userdata', legacyUserData(deps.profiles, deps.accounts)],
]);
}