feat(onebot): support moving friends between categories
Add the set_friends_category action with either an existing category ID or an exact unique category name. Validate the current friend and category roster before applying a change, reject missing or ambiguous targets, and surface failed updates instead of reporting false success. Expose the action through the SDK types and cover validation, successful updates, repeat requests, service rejection, and registry completeness. Closes #297
This commit is contained in:
10 files changed
+429
-3
No files matched your search
@@ -90,9 +90,9 @@ describe('compileActionRegistry namespace conflicts', () => {
|
||||
});
|
||||
|
||||
describe('compiled production Action registry', () => {
|
||||
it('preserves all 180 canonical Action docs', () => {
|
||||
expect(ACTION_REGISTRY.actions).toHaveLength(180);
|
||||
expect(collectActionDocs()).toHaveLength(180);
|
||||
it('preserves all 181 canonical Action docs', () => {
|
||||
expect(ACTION_REGISTRY.actions).toHaveLength(181);
|
||||
expect(collectActionDocs()).toHaveLength(181);
|
||||
});
|
||||
|
||||
it('resolves every executable name to exactly one canonical doc', () => {
|
||||
|
||||
Reference in new issue
Block a user