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.
55 lines
1.7 KiB
JSON
55 lines
1.7 KiB
JSON
{
|
|
"name": "@snowluma/common",
|
|
"version": "1.9.1",
|
|
"private": true,
|
|
"type": "module",
|
|
"description": "SnowLuma shared infrastructure — leaf-package utilities with zero business dependencies. Logger / hex codec / log file transport / log line summariser / packet sender wire-protocol types / runtime config loader. Consumed by @snowluma/protocol, @snowluma/core, and @snowluma/onebot. Per-file subpath exports keep import sites unambiguous and let the bundler tree-shake aggressively (importing `@snowluma/common/hex` doesn't pull in `node:fs` from the logger transport).",
|
|
"main": "./src/index.ts",
|
|
"types": "./src/index.ts",
|
|
"exports": {
|
|
".": {
|
|
"types": "./src/index.ts",
|
|
"default": "./src/index.ts"
|
|
},
|
|
"./logger": {
|
|
"types": "./src/logger.ts",
|
|
"default": "./src/logger.ts"
|
|
},
|
|
"./hex": {
|
|
"types": "./src/hex.ts",
|
|
"default": "./src/hex.ts"
|
|
},
|
|
"./json": {
|
|
"types": "./src/json.ts",
|
|
"default": "./src/json.ts"
|
|
},
|
|
"./log-file-transport": {
|
|
"types": "./src/log-file-transport.ts",
|
|
"default": "./src/log-file-transport.ts"
|
|
},
|
|
"./log-summary": {
|
|
"types": "./src/log-summary.ts",
|
|
"default": "./src/log-summary.ts"
|
|
},
|
|
"./packet-sender": {
|
|
"types": "./src/packet-sender.ts",
|
|
"default": "./src/packet-sender.ts"
|
|
},
|
|
"./protocol-types": {
|
|
"types": "./src/protocol-types.ts",
|
|
"default": "./src/protocol-types.ts"
|
|
},
|
|
"./runtime": {
|
|
"types": "./src/runtime.ts",
|
|
"default": "./src/runtime.ts"
|
|
}
|
|
},
|
|
"scripts": {
|
|
"typecheck": "tsc --noEmit"
|
|
},
|
|
"devDependencies": {
|
|
"@types/node": "^24.12.2",
|
|
"typescript": "catalog:"
|
|
}
|
|
}
|