refactor(packages): rename @snowluma/bridge → @snowluma/protocol

The package previously named "bridge" houses the protocol-byte layer
(OIDB cmds, msg-push decoders, highway uploaders, element-builder,
event bus). The name "bridge" suggested transport/lifecycle, which it
isn't — that role lives in core/hook and core/bridge/manager. Rename
to match what's actually inside.

This is a pure rename: zero logic changes, all 73 import sites updated
mechanically and TS-verified. core/onebot dependencies key updated.
ESLint override path adjusted for the moved oidb-services directory.

Rename detection threshold: git log --find-renames=20% recommended
when following history across this commit — content-replacement
(@snowluma/bridge → @snowluma/protocol) dropped per-file similarity
below git's default 50% on import-heavy files.
This commit is contained in:
DrSmoothl committed 2026-05-23 23:31:03 +08:00
1 parent 98296fcec5
commit c16064d7e3
238 files changed
+247 -284

No files matched your search

+7 -7
View File
@@ -1,18 +1,18 @@
// InteractionApi — facade over interactive-engagement OIDB cmds
// (poke / like / reaction / essence / emoji-like-list). Every method
// is a one-line forwarder to a self-contained namespace under
// @snowluma/bridge/oidb-services. The facade exists purely to keep
// @snowluma/protocol/oidb-services. The facade exists purely to keep
// the `bridge.apis.interaction.X(...)` ergonomic call style; all wire
// work (envelope build / encode / send / decode) lives in the
// namespace files.
import type { BridgeContext } from '../bridge-context';
import { SendPoke } from '@snowluma/bridge/oidb-services/interaction/send-poke';
import { SendLike } from '@snowluma/bridge/oidb-services/interaction/send-like';
import { SetEssence } from '@snowluma/bridge/oidb-services/interaction/set-essence';
import { SetReaction } from '@snowluma/bridge/oidb-services/reaction/set-reaction';
import { FetchReactionSummary } from '@snowluma/bridge/oidb-services/reaction/fetch-reaction-summary';
import { GetEmojiLikes } from '@snowluma/bridge/oidb-services/reaction/get-emoji-likes';
import { SendPoke } from '@snowluma/protocol/oidb-services/interaction/send-poke';
import { SendLike } from '@snowluma/protocol/oidb-services/interaction/send-like';
import { SetEssence } from '@snowluma/protocol/oidb-services/interaction/set-essence';
import { SetReaction } from '@snowluma/protocol/oidb-services/reaction/set-reaction';
import { FetchReactionSummary } from '@snowluma/protocol/oidb-services/reaction/fetch-reaction-summary';
import { GetEmojiLikes } from '@snowluma/protocol/oidb-services/reaction/get-emoji-likes';
export class InteractionApi {
constructor(private readonly ctx: BridgeContext) {}