Reorganize package layout and rename core/account types: - Move channel hook & socket sources/tests into packages/channel-hook and packages/channel-socket (many files renamed). - Remove ChannelManager from packages/channel and drop its export from package.json (multi-account host folded into Hub). - Update tests to use HookSink instead of BridgeManagerSink. - In @snowluma/core: move account/apis/* up to src/apis, rename account-context→core-context, account-interface→core-ctx, account→core, and add hub.ts; delete AccountManager. - Update constructors and type usages to accept CoreContext/CoreCtx and adapt identifiers accordingly. This is a refactor to clarify responsibilities (split transport implementations, fold multi-account manager into Hub, and rebrand the account layer as Core).
16 lines
937 B
TypeScript
16 lines
937 B
TypeScript
// `@snowluma/channel-hook` — the `inject` channel implementation
|
|
// (NTQQ in-process hook). Registered with `Hub` from `@snowluma/core`
|
|
// as a `ChannelAdapter` of kind `'inject'`. Everything pid-related is
|
|
// scoped to this package — neither `@snowluma/channel` nor anything
|
|
// downstream knows about it.
|
|
|
|
// ─── Hook runtime ──────────────────────────────────────────────────
|
|
export {
|
|
HookManager, type HookSink, type HookManagerDeps, type HookProcessBaseInfo, type HookProcessInfo,
|
|
type HookProcessStatus, type QqPortLoginInfo
|
|
} from './hook-manager';
|
|
|
|
// ─── Concrete Channel + Adapter ────────────────────────────────────
|
|
export { HookChannel } from './hook-channel';
|
|
export { HookAdapter, type HookAdapterOptions } from './hook-adapter';
|