@xharness/cordis-plugin-im-adapter-qq 0.0.0-stage → 4.0.1-alpha.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +7 -2
- package/lib/index.js +3733 -0
- package/lib/types/api.d.ts +332 -0
- package/lib/types/api.d.ts.map +1 -0
- package/lib/types/bot.d.ts +188 -0
- package/lib/types/bot.d.ts.map +1 -0
- package/lib/types/config.d.ts +87 -0
- package/lib/types/config.d.ts.map +1 -0
- package/lib/types/decode.d.ts +111 -0
- package/lib/types/decode.d.ts.map +1 -0
- package/lib/types/errors.d.ts +74 -0
- package/lib/types/errors.d.ts.map +1 -0
- package/lib/types/index.d.ts +20 -0
- package/lib/types/index.d.ts.map +1 -0
- package/lib/types/keyboard.d.ts +54 -0
- package/lib/types/keyboard.d.ts.map +1 -0
- package/lib/types/modes/index.d.ts +21 -0
- package/lib/types/modes/index.d.ts.map +1 -0
- package/lib/types/modes/markdown.d.ts +17 -0
- package/lib/types/modes/markdown.d.ts.map +1 -0
- package/lib/types/modes/shared.d.ts +178 -0
- package/lib/types/modes/shared.d.ts.map +1 -0
- package/lib/types/modes/text.d.ts +15 -0
- package/lib/types/modes/text.d.ts.map +1 -0
- package/lib/types/passive.d.ts +147 -0
- package/lib/types/passive.d.ts.map +1 -0
- package/lib/types/prepare.d.ts +71 -0
- package/lib/types/prepare.d.ts.map +1 -0
- package/lib/types/send.d.ts +93 -0
- package/lib/types/send.d.ts.map +1 -0
- package/lib/types/stream.d.ts +111 -0
- package/lib/types/stream.d.ts.map +1 -0
- package/lib/types/token.d.ts +73 -0
- package/lib/types/token.d.ts.map +1 -0
- package/lib/types/ws.d.ts +136 -0
- package/lib/types/ws.d.ts.map +1 -0
- package/package.json +48 -3
- package/src/api.ts +511 -0
- package/src/bot.ts +333 -0
- package/src/config.ts +119 -0
- package/src/decode.ts +670 -0
- package/src/errors.ts +223 -0
- package/src/index.ts +22 -0
- package/src/keyboard.ts +133 -0
- package/src/modes/index.ts +30 -0
- package/src/modes/markdown.ts +159 -0
- package/src/modes/shared.ts +553 -0
- package/src/modes/text.ts +42 -0
- package/src/passive.ts +288 -0
- package/src/prepare.ts +171 -0
- package/src/send.ts +296 -0
- package/src/stream.ts +449 -0
- package/src/token.ts +174 -0
- package/src/ws.ts +358 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2019-present Shigma
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,3 +1,8 @@
|
|
|
1
|
-
#
|
|
1
|
+
# @xharness/cordis-plugin-im-adapter-qq
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
QQ official-bot adapter for [Satori](https://github.com/satorijs/satori): group (群聊) and C2C (单聊) chats only, publishing `msg_type` text or markdown messages through `plugin-im-core` modes, with passive replies and the v2 gateway.
|
|
4
|
+
|
|
5
|
+
- Upstream: `@satorijs/adapter-qq`, ported in place. The platform routes, wire envelopes, gateway frames and token endpoints carry over; the rendering pipeline does not, so the `src/` here is this repository's own source rather than a copy of the upstream one.
|
|
6
|
+
- Pin: the upstream version and source commit are recorded in the `adapter-qq/` row of the [IM vendored-package manifest](../README.md).
|
|
7
|
+
- Sync: follow [the sync procedure](../README.md#sync-procedure) and port upstream changes into these modules as its I12 entry describes.
|
|
8
|
+
- Consumer: the [im-bundle](../../../packages/experimental/im-bundle/README.md) profile bundle mounts it as its `im-qq` row.
|