fix(onebot): trace empty text placeholder normalization

Document the compatibility rule in action metadata and regenerate the MCP catalog.
This commit is contained in:
DrSmoothl committed 2026-07-23 12:14:01 +08:00
1 parent a7b9ba14fb
commit edd2ac278a
4 files changed
+63 -54

No files matched your search

+7 -1
View File
@@ -323,7 +323,13 @@ export const f = {
}
}
return ok(raw);
}, { type: 'message', required: true, schema: { description: 'OneBot message: string | segment[] | object' } });
}, {
type: 'message',
required: true,
schema: {
description: 'OneBot message: string | segment[] | object. In segment arrays, text segments whose text field is exactly "" are compatibility placeholders and do not count as sendable segments; missing, null, and whitespace-only text remain subject to normal validation.',
},
});
},
/** Homogeneous array; `.nonEmpty()` rejects []. */
array<E>(el: Field<E>): Field<E[]> & { nonEmpty(): Field<E[]> } {