Move database work off the main thread on Node.js 24 and improve message handling and runtime diagnostics. Preserve migration, restart, and concurrency coverage with the async SQLite driver.
128 lines
4.1 KiB
JSON
128 lines
4.1 KiB
JSON
{
|
|
"license": "SEE LICENSE IN LICENSE",
|
|
"name": "@snowluma/onebot",
|
|
"version": "1.14.22",
|
|
"private": true,
|
|
"type": "module",
|
|
"description": "SnowLuma OneBot v11 adapter — the protocol translation layer that maps the public OneBot vocabulary (HTTP / WebSocket actions, message segments, post events) onto @snowluma/core's typed Api hub (`bridge.apis.<area>.method()`). Owns network adapters (HTTP server / HTTP client / WS server / WS client), the registered action handlers, the receive-side event→OneBot converter, message-id hashing, message store (SQLite-backed event history), media store, and the OneBot instance + manager that ties one OneBotConfig to one Bridge. Per-file subpath exports mirror the legacy `core/src/onebot/*` layout 1:1 so the previous `import { … } from '../onebot/<x>'` collapses to `import { … } from '@snowluma/onebot/<x>'`.",
|
|
"main": "./src/index.ts",
|
|
"types": "./src/index.ts",
|
|
"exports": {
|
|
".": {
|
|
"types": "./src/index.ts",
|
|
"default": "./src/index.ts"
|
|
},
|
|
"./action-kit": {
|
|
"types": "./src/action-kit.ts",
|
|
"default": "./src/action-kit.ts"
|
|
},
|
|
"./action-docs": {
|
|
"types": "./src/action-docs.ts",
|
|
"default": "./src/action-docs.ts"
|
|
},
|
|
"./manager": {
|
|
"types": "./src/manager.ts",
|
|
"default": "./src/manager.ts"
|
|
},
|
|
"./instance": {
|
|
"types": "./src/instance.ts",
|
|
"default": "./src/instance.ts"
|
|
},
|
|
"./instance-context": {
|
|
"types": "./src/instance-context.ts",
|
|
"default": "./src/instance-context.ts"
|
|
},
|
|
"./api-handler": {
|
|
"types": "./src/api-handler.ts",
|
|
"default": "./src/api-handler.ts"
|
|
},
|
|
"./config": {
|
|
"types": "./src/config.ts",
|
|
"default": "./src/config.ts"
|
|
},
|
|
"./global-config": {
|
|
"types": "./src/global-config.ts",
|
|
"default": "./src/global-config.ts"
|
|
},
|
|
"./types": {
|
|
"types": "./src/types.ts",
|
|
"default": "./src/types.ts"
|
|
},
|
|
"./message-id": {
|
|
"types": "./src/message-id.ts",
|
|
"default": "./src/message-id.ts"
|
|
},
|
|
"./message-parser": {
|
|
"types": "./src/message-parser.ts",
|
|
"default": "./src/message-parser.ts"
|
|
},
|
|
"./message-store": {
|
|
"types": "./src/message-store.ts",
|
|
"default": "./src/message-store.ts"
|
|
},
|
|
"./message-store-migration-worker": {
|
|
"types": "./src/message-store-migration-worker.ts",
|
|
"default": "./src/message-store-migration-worker.ts"
|
|
},
|
|
"./media-store": {
|
|
"types": "./src/media-store.ts",
|
|
"default": "./src/media-store.ts"
|
|
},
|
|
"./media-indexer": {
|
|
"types": "./src/media-indexer.ts",
|
|
"default": "./src/media-indexer.ts"
|
|
},
|
|
"./media-url-resolver": {
|
|
"types": "./src/media-url-resolver.ts",
|
|
"default": "./src/media-url-resolver.ts"
|
|
},
|
|
"./event-filter": {
|
|
"types": "./src/event-filter.ts",
|
|
"default": "./src/event-filter.ts"
|
|
},
|
|
"./event-pipeline": {
|
|
"types": "./src/event-pipeline.ts",
|
|
"default": "./src/event-pipeline.ts"
|
|
},
|
|
"./event-converter": {
|
|
"types": "./src/event-converter/index.ts",
|
|
"default": "./src/event-converter/index.ts"
|
|
},
|
|
"./event-converter/utils": {
|
|
"types": "./src/event-converter/utils.ts",
|
|
"default": "./src/event-converter/utils.ts"
|
|
},
|
|
"./instance-rkey": {
|
|
"types": "./src/instance-rkey.ts",
|
|
"default": "./src/instance-rkey.ts"
|
|
},
|
|
"./stream-storage": {
|
|
"types": "./src/stream-storage.ts",
|
|
"default": "./src/stream-storage.ts"
|
|
}
|
|
},
|
|
"scripts": {
|
|
"test": "vitest run",
|
|
"bench": "vitest bench --run",
|
|
"typecheck": "tsc --noEmit"
|
|
},
|
|
"dependencies": {
|
|
"@snowluma/common": "workspace:*",
|
|
"@snowluma/core": "workspace:*",
|
|
"@snowluma/proto-defs": "workspace:*",
|
|
"@snowluma/proton": "workspace:*",
|
|
"@snowluma/protocol": "workspace:*",
|
|
"@snowluma/websocket": "workspace:*",
|
|
"@snowluma/sqlite": "workspace:*"
|
|
},
|
|
"devDependencies": {
|
|
"@types/node": "catalog:",
|
|
"typescript": "catalog:",
|
|
"vite": "catalog:",
|
|
"vitest": "^4.1.4"
|
|
},
|
|
"engines": {
|
|
"node": ">=24"
|
|
}
|
|
}
|