Remove bridge proto schemas and parity test

Delete proto schema modules under packages/core/src/bridge/proto (action.ts, element.ts, highway.ts, longmsg.ts, message.ts, notify.ts, oidb-action.ts, oidb.ts) and the related test packages/core/tests/proton-parity.test.ts. These files contained protobuf schema definitions for the bridge layer; remove them as part of a cleanup/refactor. Update any imports or references to these modules to their new locations or replacements.
This commit is contained in:
手瓜一十雪 committed 2026-05-20 18:23:03 +08:00
1 parent 02bab710b8
commit 5ea1c3a961
45 files changed
+1361 -4230

No files matched your search

+3 -3
View File
@@ -386,7 +386,7 @@ export class Bridge implements BridgeInterface {
if (!response) {
throw new Error('failed to decode SendMessageResponse');
}
if (response.result !== undefined && response.result !== 0) {
if (response.result != null && response.result !== 0) {
throw new Error(`send group message rejected: result=${response.result} err=${response.errMsg ?? ''}`);
}
@@ -455,7 +455,7 @@ export class Bridge implements BridgeInterface {
if (!response) {
throw new Error('failed to decode SendMessageResponse');
}
if (response.result !== undefined && response.result !== 0) {
if (response.result != null && response.result !== 0) {
throw new Error(`send private message rejected: result=${response.result} err=${response.errMsg ?? ''}`);
}
@@ -569,7 +569,7 @@ export class Bridge implements BridgeInterface {
if (!response) {
throw new Error('failed to decode SendMessageResponse');
}
if (response.result !== undefined && response.result !== 0) {
if (response.result != null && response.result !== 0) {
throw new Error(`send c2c file message rejected: result=${response.result} err=${response.errMsg ?? ''}`);
}