feat(onebot): implement collection list retrieval
Replace the get_collection_list placeholder with authenticated, read-only collection retrieval through the existing bridge API. Add strict binary envelope validation, bounded pagination, accurate category filtering, preserved 64-bit identifiers, and explicit ticket, transport, service, and malformed-response failures. Cap item counts, page traversal, response bytes, per-request waits, and the total operation time. Expose the compatible response model through Core, OneBot, the SDK, and the generated MCP catalog. Cover protocol framing, cursor behavior, filtered hasMore semantics, cleanup failures, bridge ticket acquisition, and Action validation with regression tests. Verified with the live test bot without changing native components or adding any collection write behavior.
This commit is contained in:
15 files changed
+1912
-20
No files matched your search
@@ -21,6 +21,7 @@
|
||||
// imports below for any NTV2-named type.
|
||||
|
||||
export type * from './action.js';
|
||||
export type * from './collection.js';
|
||||
export type * from './element.js';
|
||||
// NOTE: `highway.ts` intentionally NOT re-exported here — see note above.
|
||||
export type * from './longmsg.js';
|
||||
|
||||
Reference in new issue
Block a user