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,30 +1,23 @@
|
||||
// BridgeInterface — the surface OneBot (and any other external consumer)
|
||||
// is allowed to see. The concrete Bridge class additionally exposes raw
|
||||
// protocol primitives (sendRawPacket, packet dispatch, PID management)
|
||||
// used by the in-tree action / contacts / highway modules; those internal
|
||||
// methods deliberately do NOT appear here so that callers depending on
|
||||
// the interface stay decoupled from the wire format.
|
||||
//
|
||||
// Every method below has a matching signature on Bridge; `Bridge
|
||||
// implements BridgeInterface` is the compile-time enforcement.
|
||||
|
||||
import type { BridgeEventBus } from './event-bus';
|
||||
import type { IdentityService } from './identity-service';
|
||||
import type {
|
||||
FriendInfo, QQGroupInfo, GroupMemberInfo,
|
||||
UserProfileInfo, GroupRequestInfo,
|
||||
} from './qq-info';
|
||||
import type { MessageElement, ForwardNodePayload } from './events';
|
||||
import type { SendPacketResult } from '../protocol/packet-sender';
|
||||
import type { GroupFilesResult } from './actions/group-file';
|
||||
import type { MediaIndexNode } from './actions/shared';
|
||||
import type { WebHonorType } from './web/group-honor';
|
||||
import type {
|
||||
SendMessageReceipt,
|
||||
DownloadRKeyInfo,
|
||||
ClientKeyInfo,
|
||||
DownloadRKeyInfo,
|
||||
SendMessageReceipt,
|
||||
UploadedFileMeta,
|
||||
} from './bridge';
|
||||
import type { SendPacketResult } from '../protocol/packet-sender';
|
||||
import type { BridgeEventBus } from './event-bus';
|
||||
import type { ForwardNodePayload, MessageElement } from './events';
|
||||
import type { IdentityService } from './identity-service';
|
||||
import type {
|
||||
FriendInfo,
|
||||
GroupMemberInfo,
|
||||
GroupRequestInfo,
|
||||
QQGroupInfo,
|
||||
UserProfileInfo,
|
||||
} from './qq-info';
|
||||
import type { WebHonorType } from './web/group-honor';
|
||||
|
||||
export interface BridgeInterface {
|
||||
// ─── Shared state ───
|
||||
|
||||
Reference in new issue
Block a user