feat(onebot): expose birthdays in stranger profiles (#594)

Include available birthday information in stranger profiles and preserve hidden birth years.
This commit is contained in:
C₂₂H₂₅NO₆ authored and GitHub committed 2026-10-31 18:01:16 +08:00
1 parent 6b8362e049
commit 947af4b22c
10 files changed
+192 -6

No files matched your search

@@ -45,4 +45,13 @@ describe('get_stranger_info action', () => {
expect(schema?.required).toContain('remark');
expect(schema?.required).toContain('long_nick');
});
it('documents the NapCat-compatible birthday fields as optional integers', () => {
const schema = getStrangerInfo.describe().returnsSchema;
for (const field of ['birthday_year', 'birthday_month', 'birthday_day']) {
expect(schema?.properties?.[field]).toMatchObject({ type: 'integer' });
expect(schema?.required).not.toContain(field);
}
});
});