From cb06624d12bc99a27c51401bf83969d6c5ac425b Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Sat, 9 May 2026 08:01:11 +0000 Subject: [PATCH 1/4] build(deps-dev): bump hono from 4.12.14 to 4.12.18 Bumps [hono](https://github.com/honojs/hono) from 4.12.14 to 4.12.18. - [Release notes](https://github.com/honojs/hono/releases) - [Commits](https://github.com/honojs/hono/compare/v4.12.14...v4.12.18) --- updated-dependencies: - dependency-name: hono dependency-version: 4.12.18 dependency-type: direct:development ... Signed-off-by: dependabot[bot] --- packages/core/package.json | 2 +- pnpm-lock.yaml | 16 ++++++++-------- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/packages/core/package.json b/packages/core/package.json index 479285c7..b477e12c 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -21,7 +21,7 @@ "@rollup/plugin-node-resolve": "^16.0.3", "@types/node": "^24.12.2", "cross-env": "^10.1.0", - "hono": "^4.12.14", + "hono": "^4.12.18", "tsx": "^4.21.0", "typescript": "catalog:", "vite": "catalog:", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index daf6cd1e..11fd5462 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -35,7 +35,7 @@ importers: devDependencies: '@hono/node-server': specifier: ^1.19.14 - version: 1.19.14(hono@4.12.14) + version: 1.19.14(hono@4.12.18) '@rollup/plugin-node-resolve': specifier: ^16.0.3 version: 16.0.3 @@ -46,8 +46,8 @@ importers: specifier: ^10.1.0 version: 10.1.0 hono: - specifier: ^4.12.14 - version: 4.12.14 + specifier: ^4.12.18 + version: 4.12.18 tsx: specifier: ^4.21.0 version: 4.21.0 @@ -1583,8 +1583,8 @@ packages: hermes-parser@0.25.1: resolution: {integrity: sha512-6pEjquH3rqaI6cYAXYPcz9MS4rY6R4ngRgrgfDshRptUZIc3lw0MCIJIGDj9++mfySOuPTHB4nrSW99BCvOPIA==} - hono@4.12.14: - resolution: {integrity: sha512-am5zfg3yu6sqn5yjKBNqhnTX7Cv+m00ox+7jbaKkrLMRJ4rAdldd1xPd/JzbBWspqaQv6RSTrgFN95EsfhC+7w==} + hono@4.12.18: + resolution: {integrity: sha512-RWzP96k/yv0PQfyXnWjs6zot20TqfpfsNXhOnev8d1InAxubW93L11/oNUc3tQqn2G0bSdAOBpX+2uDFHV7kdQ==} engines: {node: '>=16.9.0'} ignore@5.3.2: @@ -2403,9 +2403,9 @@ snapshots: '@floating-ui/utils@0.2.11': {} - '@hono/node-server@1.19.14(hono@4.12.14)': + '@hono/node-server@1.19.14(hono@4.12.18)': dependencies: - hono: 4.12.14 + hono: 4.12.18 '@humanfs/core@0.19.1': {} @@ -3430,7 +3430,7 @@ snapshots: dependencies: hermes-estree: 0.25.1 - hono@4.12.14: {} + hono@4.12.18: {} ignore@5.3.2: {} From 463e0ffb5dbee2fb5f4fa615c32a366318944ed3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=97=B6=E7=91=BE?= Date: Sat, 16 May 2026 14:22:49 +0800 Subject: [PATCH 2/4] fix(send): keep c2c video compatQMsgSceneType at 2 (#38) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Commit 29f28d6 changed c2c video `compatQmsgSceneType` from 2 to 1 as a "symmetric asymmetry" cleanup, matching the image/ptt convention where the field tracks the upload's sceneType (c2c=1, group=2). For video this is wrong. Image and ptt have *different* legacy compat elements per scene (notOnlineImage vs customFace; ptt c2c vs group), so the server needs to know which scene shape to emit. The legacy `videoFile` element (packet element type 19) has no scene split — fromChatType / toChatType live inside the element itself — so the QQ NT server emits a single group-shaped compat payload regardless. NapCat hardcodes `compatQMsgSceneType: 2` for *both* UploadGroupVideo and UploadPrivateVideo for exactly this reason. Setting it to 1 on c2c made the server emit a c2c-scene shaped compat blob that older QQ clients failed to resolve, showing the message as "视频已过期" on those receivers. Newer clients only read the commonElem(48, 11) and displayed fine — which is why only "some devices" saw the breakage. Keep `commonElem.businessType = isGroup ? 21 : 11` untouched — that piece of 29f28d6 is still correct and is what fixed PbSendMsg result=79. --- packages/core/src/bridge/highway/video-upload.ts | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/packages/core/src/bridge/highway/video-upload.ts b/packages/core/src/bridge/highway/video-upload.ts index b8990ce3..5ed36be3 100644 --- a/packages/core/src/bridge/highway/video-upload.ts +++ b/packages/core/src/bridge/highway/video-upload.ts @@ -487,11 +487,17 @@ export async function uploadVideoMsgInfo( subFileType: 100, }, ], - // Scene tag the NTV2 upload registers under. image-upload and - // ptt-upload both differentiate (group=2, c2c=1); video was - // hardcoded to the group value, which contributed to the c2c - // send-back rejection (PbSendMsg result=79). - compatQmsgSceneType: isGroup ? 2 : 1, + // Hardcoded 2 even on c2c (matches NapCat). Image/PTT use + // `isGroup ? 2 : 1` because their legacy compat elements differ + // per scene (notOnlineImage vs customFace; ptt c2c vs group), + // but the legacy `videoFile` element has no scene split — its + // fromChatType/toChatType live inside the element itself — so + // the server generates a single group-shaped compat payload + // regardless. Setting 1 here makes the server emit a c2c-scene + // shaped compat blob that old QQ clients fail to resolve, + // showing the message as "视频已过期" on those receivers while + // new clients (which only read the commonElem) display fine. + compatQmsgSceneType: 2, extBizInfo: { pic: { bizType: 0, textSummary: 'Nya~' }, video: { bytesPbReserve: new Uint8Array([0x80, 0x01, 0x00]) }, From b959783ded652f88a8914aacb9f17ea82f39bd34 Mon Sep 17 00:00:00 2001 From: DrSmoothl <1787882683@qq.com> Date: Sat, 16 May 2026 14:54:56 +0800 Subject: [PATCH 3/4] Revert "fix(send): keep c2c video compatQMsgSceneType at 2 (#38)" This reverts commit 463e0ffb5dbee2fb5f4fa615c32a366318944ed3. --- packages/core/src/bridge/highway/video-upload.ts | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) diff --git a/packages/core/src/bridge/highway/video-upload.ts b/packages/core/src/bridge/highway/video-upload.ts index 5ed36be3..b8990ce3 100644 --- a/packages/core/src/bridge/highway/video-upload.ts +++ b/packages/core/src/bridge/highway/video-upload.ts @@ -487,17 +487,11 @@ export async function uploadVideoMsgInfo( subFileType: 100, }, ], - // Hardcoded 2 even on c2c (matches NapCat). Image/PTT use - // `isGroup ? 2 : 1` because their legacy compat elements differ - // per scene (notOnlineImage vs customFace; ptt c2c vs group), - // but the legacy `videoFile` element has no scene split — its - // fromChatType/toChatType live inside the element itself — so - // the server generates a single group-shaped compat payload - // regardless. Setting 1 here makes the server emit a c2c-scene - // shaped compat blob that old QQ clients fail to resolve, - // showing the message as "视频已过期" on those receivers while - // new clients (which only read the commonElem) display fine. - compatQmsgSceneType: 2, + // Scene tag the NTV2 upload registers under. image-upload and + // ptt-upload both differentiate (group=2, c2c=1); video was + // hardcoded to the group value, which contributed to the c2c + // send-back rejection (PbSendMsg result=79). + compatQmsgSceneType: isGroup ? 2 : 1, extBizInfo: { pic: { bizType: 0, textSummary: 'Nya~' }, video: { bytesPbReserve: new Uint8Array([0x80, 0x01, 0x00]) }, From 9dedcf93a8ac6cd93e456c4fb3b6a00050db6f7d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A2=A8=E6=A2=93=E6=9F=92?= <1787882683@qq.com> Date: Wed, 3 Jun 2026 22:19:31 +0800 Subject: [PATCH 4/4] Dev (#82) * test(sdk): remove obsolete actions-sync guard c49ae1c removed the SDK's hardcoded action-name list (src/actions.ts / SNOWLUMA_ACTIONS) and updated exports, but left the test that guarded it. The test imports SNOWLUMA_ACTIONS from ../src -- now undefined ("not iterable") -- and its registerAction('...') enumeration of onebot is itself stale after the declarative action-kit migration. Nothing else references SNOWLUMA_ACTIONS; the list it kept in sync no longer exists, so the guard is dead. Removing it makes the sdk suite green (16 tests). * fix(mcp): add repository metadata so the provenance publish validates npm publish --provenance rejected @snowluma/mcp@1.9.5 with E422 because package.json had no repository.url to match the GitHub repo asserted in the provenance statement. Add repository/homepage/bugs (mirroring @snowluma/sdk and @snowluma/ui, directory packages/mcp) and refresh the now-inaccurate 'read-only' description. 1.9.5 was never successfully published, so re-running the publish workflow will ship it. --- packages/mcp/package.json | 11 ++++++++++- packages/sdk/tests/actions-sync.test.ts | 23 ----------------------- 2 files changed, 10 insertions(+), 24 deletions(-) delete mode 100644 packages/sdk/tests/actions-sync.test.ts diff --git a/packages/mcp/package.json b/packages/mcp/package.json index eaa20351..01e97107 100644 --- a/packages/mcp/package.json +++ b/packages/mcp/package.json @@ -1,7 +1,16 @@ { "name": "@snowluma/mcp", "version": "1.9.5", - "description": "MCP server exposing the SnowLuma OneBot action catalog (read-only docs + JSON Schemas) to LLM clients.", + "description": "MCP server exposing the SnowLuma OneBot action catalog (docs + JSON Schemas) and optional execution to LLM clients.", + "repository": { + "type": "git", + "url": "git+https://github.com/SnowLuma/SnowLuma.git", + "directory": "packages/mcp" + }, + "homepage": "https://github.com/SnowLuma/SnowLuma#readme", + "bugs": { + "url": "https://github.com/SnowLuma/SnowLuma/issues" + }, "type": "module", "bin": { "snowluma-mcp": "./dist/server.js" diff --git a/packages/sdk/tests/actions-sync.test.ts b/packages/sdk/tests/actions-sync.test.ts deleted file mode 100644 index 41c79daf..00000000 --- a/packages/sdk/tests/actions-sync.test.ts +++ /dev/null @@ -1,23 +0,0 @@ -import fs from 'node:fs'; -import { fileURLToPath } from 'node:url'; -import { describe, expect, it } from 'vitest'; -import { SNOWLUMA_ACTIONS } from '../src'; - -describe('SnowLuma action list', () => { - it('stays in sync with core registerAction calls', () => { - // Actions moved out of @snowluma/core into the dedicated - // @snowluma/onebot package in the RoadMap #3 4-way split. - const actionsDir = fileURLToPath(new URL('../../onebot/src/actions/', import.meta.url)); - const registered = new Set(); - - for (const file of fs.readdirSync(actionsDir)) { - if (!file.endsWith('.ts')) continue; - const source = fs.readFileSync(new URL(file, `file://${actionsDir}/`), 'utf8'); - for (const match of source.matchAll(/registerAction\('([^']+)'/g)) { - registered.add(match[1]!); - } - } - - expect([...SNOWLUMA_ACTIONS].sort()).toEqual([...registered].sort()); - }); -});