feat(onebot): expose stranger profile signatures

Return the NapCat-compatible long_nick field from get_stranger_info for both freshly fetched and cached user profiles. Keep the field present as an empty string when profile data is unavailable so callers receive a stable response shape.

Document the response contract in the Action schema and generated MCP catalog, and cover fetched, cached, and empty fallback paths with regression tests. This change reuses the existing profile signature value and does not add QQ requests or alter protocol packets.

Closes #246
This commit is contained in:
DrSmoothl committed 2026-07-19 17:26:59 +08:00
1 parent 3c2a402b8a
commit 65e819d96e
6 files changed
+83 -15

No files matched your search

@@ -225,6 +225,7 @@ export async function getStrangerInfo(
nickname: p.nickname,
sex: p.sex,
age: p.age,
long_nick: p.sign,
qq_level: p.level,
level: p.level,
};
@@ -236,6 +237,7 @@ export async function getStrangerInfo(
nickname: p.nickname,
sex: p.sex,
age: p.age,
long_nick: p.sign,
qq_level: p.level,
level: p.level,
};