Refactor bridge modules: imports & cleanup
Standardize and reorganize imports, type usages and minor formatting across the bridge modules. This commit moves protobuf helpers, makeOidbEnvelope/runOidb, OidbBase and logger imports into consistent places, reorders and groups action/contacts exports in Bridge, removes or trims file-level comments, and fixes whitespace/logic ordering in several highway, element-builder and msg-push files. These are refactors and import/type adjustments across many files under packages/core/src (bridge, highway, msg-push, webui, utils, etc.) with no intended behavioral changes.
This commit is contained in:
1 parent
c49ae1c8d9
commit
b56868878c
83 files changed
+356
-919
No files matched your search
@@ -1,27 +1,9 @@
|
||||
// Incoming packet pipeline — the chain that turns a single PacketInfo
|
||||
// arriving from the hook layer into a stream of QQEventVariant
|
||||
// emissions on the typed event bus. Replaces the inline orchestration
|
||||
// that previously lived on Bridge.onPacket / triggerMemberCacheRefresh /
|
||||
// rememberEventIdentity / dispatchAfterIdentityRefresh / etc.
|
||||
//
|
||||
// Stage chain per parser output:
|
||||
// parse → enrich identity (sync, or async refresh)
|
||||
// → side-effects (remember UID/UIN + schedule roster refresh)
|
||||
// → log
|
||||
// → emit on bus
|
||||
//
|
||||
// The pipeline owns its cmd handler map and its per-group coalesce table
|
||||
// for background member-list refreshes. It does NOT own protocol calls
|
||||
// — `refreshMemberCache` is injected by Bridge because it ultimately
|
||||
// dispatches OIDB packets through Bridge.fetchGroupList /
|
||||
// Bridge.fetchGroupMemberList.
|
||||
|
||||
import type { PacketInfo } from '../protocol/types';
|
||||
import { formatEvent } from '../utils/event-format';
|
||||
import { createLogger, type Logger } from '../utils/logger';
|
||||
import type { BridgeEventBus } from './event-bus';
|
||||
import type { QQEventVariant } from './events';
|
||||
import type { IdentityService } from './identity-service';
|
||||
import type { BridgeEventBus } from './event-bus';
|
||||
import { createLogger, type Logger } from '../utils/logger';
|
||||
import { formatEvent } from '../utils/event-format';
|
||||
|
||||
const moduleLog = createLogger('Bridge');
|
||||
const moduleEventLog = createLogger('Event');
|
||||
|
||||
Reference in new issue
Block a user