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,16 +1,5 @@
|
||||
// Identity-aware, one-line readable rendering for log output.
|
||||
//
|
||||
// Two layers consume this:
|
||||
// - bridge/packet-pipeline.ts → notice events (recall / join / poke / …)
|
||||
// - onebot/instance.ts → received-message log
|
||||
//
|
||||
// All formatters are defensive: any field lookup that throws falls
|
||||
// back to the raw numeric form, so a malformed event or stale
|
||||
// Identity cache never crashes the logger. Cache misses simply
|
||||
// degrade to the previous "just print the uin / groupId" output.
|
||||
|
||||
import type { IdentityService } from '../bridge/identity-service';
|
||||
import type { QQEventVariant } from '../bridge/events';
|
||||
import type { IdentityService } from '../bridge/identity-service';
|
||||
import type { MessageStore } from '../onebot/message-store';
|
||||
import type { JsonObject, JsonValue } from '../onebot/types';
|
||||
|
||||
|
||||
Reference in new issue
Block a user