diff --git a/packages/docs/config.ts b/packages/docs/config.ts index e14ae43..203b2f7 100644 --- a/packages/docs/config.ts +++ b/packages/docs/config.ts @@ -77,7 +77,8 @@ const themeConfig: ThemeConfig = { { label: '使用', position: 'left', - to: 'install', + to: 'guide/install/shell', + activeBasePath: 'guide', }, { label: '开发', @@ -139,16 +140,20 @@ const themeConfig: ThemeConfig = { title: '使用', items: [ { - label: '安装', - to: '/install', + label: '安装 Chronocat', + to: '/guide/install/shell', + }, + { + label: '安装引擎', + to: '/guide/install/engine', }, { label: '接入', - to: '/connect', + to: '/guide/connect', }, { label: '配置', - to: '/config', + to: '/guide/config', }, ], }, diff --git a/packages/docs/docs/develop/index.mdx b/packages/docs/docs/develop/index.mdx index 8976260..97c415a 100644 --- a/packages/docs/docs/develop/index.mdx +++ b/packages/docs/docs/develop/index.mdx @@ -18,7 +18,7 @@ import { AreaDevelop } from '@site/src/components/AreaDevelop' 前往接入 diff --git a/packages/docs/docs/faq/2/index.mdx b/packages/docs/docs/faq/2/index.mdx index 8d507b6..2c0e5d9 100644 --- a/packages/docs/docs/faq/2/index.mdx +++ b/packages/docs/docs/faq/2/index.mdx @@ -9,5 +9,5 @@ Chronocat 自身实现了 Satori 协议,但并不实现任何特定的功能 引擎提供。你可以安装不同的 Chronocat 引擎来使用各种功能。 目前,已经有多个框架可供接入 -Chronocat,支持的框架可参见 [接入](/connect) 页面。你也可以使用该页面列举的 SDK +Chronocat,支持的框架可参见 [接入](/guide/connect) 页面。你也可以使用该页面列举的 SDK 进行开发。 diff --git a/packages/docs/docs/faq/3/index.mdx b/packages/docs/docs/faq/3/index.mdx index bd2dbc4..c24f90b 100644 --- a/packages/docs/docs/faq/3/index.mdx +++ b/packages/docs/docs/faq/3/index.mdx @@ -12,4 +12,4 @@ sidebar_position: 3 正常运行。需要注意的是,登录后 Satori 服务才会启动,因此请先登录 QQ。 -![恭喜](./congratulations.png) +![恭喜](congratulations.png) diff --git a/packages/docs/docs/faq/4/index.mdx b/packages/docs/docs/faq/4/index.mdx index 6cc887e..b98662f 100644 --- a/packages/docs/docs/faq/4/index.mdx +++ b/packages/docs/docs/faq/4/index.mdx @@ -25,7 +25,7 @@ PR 是否修复了某个 bug;此时你可以在自己的环境中使用开发 前往安装 diff --git a/packages/docs/docs/faq/5/index.mdx b/packages/docs/docs/faq/5/index.mdx index 6edc5a8..b362c0d 100644 --- a/packages/docs/docs/faq/5/index.mdx +++ b/packages/docs/docs/faq/5/index.mdx @@ -5,7 +5,7 @@ sidebar_position: 5 持续运行 Chronocat 30 天后,你会发现自己的 QQ 被踢下线。 -![下线](./offline.png) +![下线](offline.png) 这是正常现象。PCQQ 持续登录超 30 天后会被下线。退出 QQ 后重新启动 QQ 并登录即可。 diff --git a/packages/docs/docs/faq/6/index.mdx b/packages/docs/docs/faq/6/index.mdx index 29cee5a..1aec9b6 100644 --- a/packages/docs/docs/faq/6/index.mdx +++ b/packages/docs/docs/faq/6/index.mdx @@ -22,7 +22,7 @@ sidebar_position: 6 如果你还未检查过插件加载器是否安装成功,Chronocat 插件是否安装成功,那么应当首先检查。 -在一台全新的电脑上,可以通过检查 [配置文件](/config) 是否生成来快速确定 Chronocat 是否成功启动。 +在一台全新的电脑上,可以通过检查 [配置文件](/guide/config) 是否生成来快速确定 Chronocat 是否成功启动。 ## 2. QQ 尚未登录 diff --git a/packages/docs/docs/config/index.mdx b/packages/docs/docs/guide/config/index.mdx similarity index 90% rename from packages/docs/docs/config/index.mdx rename to packages/docs/docs/guide/config/index.mdx index c5b224c..7f7ece1 100644 --- a/packages/docs/docs/config/index.mdx +++ b/packages/docs/docs/guide/config/index.mdx @@ -52,13 +52,6 @@ Chronocat 之前,你需要将所有 `DEFINE_CHRONO_TOKEN` ::: -### 从 v0.0.45 迁移 - -如果你从 Chronocat 版本 0.0.45 或更早迁移,那么: - -- 新的默认配置会生成,且所有 token 配置项将会保持与旧的 `RED_PROTOCOL_TOKEN` 文件一致。 -- **旧的 `RED_PROTOCOL_TOKEN` 文件将会失效,但将被保留。** 请在迁移后及时删除旧文件,避免造成混淆。 - ## 编辑 我们推荐使用任意一款带有 LSP 功能的编辑器来编辑 Chronocat 配置文件: @@ -78,7 +71,7 @@ Chronocat 之前,你需要将所有 `DEFINE_CHRONO_TOKEN` Chronocat 配置文件参考 diff --git a/packages/docs/docs/config/reference.mdx b/packages/docs/docs/guide/config/reference.mdx similarity index 100% rename from packages/docs/docs/config/reference.mdx rename to packages/docs/docs/guide/config/reference.mdx diff --git a/packages/docs/docs/connect/avilla.mdx b/packages/docs/docs/guide/connect/avilla.mdx similarity index 100% rename from packages/docs/docs/connect/avilla.mdx rename to packages/docs/docs/guide/connect/avilla.mdx diff --git a/packages/docs/docs/connect/index.mdx b/packages/docs/docs/guide/connect/index.mdx similarity index 100% rename from packages/docs/docs/connect/index.mdx rename to packages/docs/docs/guide/connect/index.mdx diff --git a/packages/docs/docs/connect/kiramibot.mdx b/packages/docs/docs/guide/connect/kiramibot.mdx similarity index 100% rename from packages/docs/docs/connect/kiramibot.mdx rename to packages/docs/docs/guide/connect/kiramibot.mdx diff --git a/packages/docs/docs/connect/koishi-config.png b/packages/docs/docs/guide/connect/koishi-config.png similarity index 100% rename from packages/docs/docs/connect/koishi-config.png rename to packages/docs/docs/guide/connect/koishi-config.png diff --git a/packages/docs/docs/connect/koishi.mdx b/packages/docs/docs/guide/connect/koishi.mdx similarity index 100% rename from packages/docs/docs/connect/koishi.mdx rename to packages/docs/docs/guide/connect/koishi.mdx diff --git a/packages/docs/docs/connect/nonebot.mdx b/packages/docs/docs/guide/connect/nonebot.mdx similarity index 100% rename from packages/docs/docs/connect/nonebot.mdx rename to packages/docs/docs/guide/connect/nonebot.mdx diff --git a/packages/docs/docs/guide/install/engine/chronocat-api.mdx b/packages/docs/docs/guide/install/engine/chronocat-api.mdx new file mode 100644 index 0000000..f2875e2 --- /dev/null +++ b/packages/docs/docs/guide/install/engine/chronocat-api.mdx @@ -0,0 +1,28 @@ +--- +title: chronocat-api +--- + +import Link from '@docusaurus/Link' + +Chronocat API 引擎,实现了基础的 API 功能。绝大多数 API 都需要安装此引擎。 + +## 下载 + +可从 LiteLoaderQQNT 插件商店搜索「Chronocat Engine:API」直接安装,也可以在 Chronocat +下载页找到插件。文件名应当类似 `chronocat-llqqnt-engine-chronocat-api-v0.0.0.zip`。 + + + 前往 Chronocat 下载页 + + +## 提供 + +chronocat-api 引擎为 Chronocat 项目本身提供,与 Chronocat Shell 的版本号保持同步。 + +## 源代码 + +chronocat-api 引擎的源代码位于 +[这里](https://github.com/chrononeko/chronocat/tree/master/packages/engine-chronocat-api)。 diff --git a/packages/docs/docs/guide/install/engine/chronocat-event.mdx b/packages/docs/docs/guide/install/engine/chronocat-event.mdx new file mode 100644 index 0000000..4a84d7d --- /dev/null +++ b/packages/docs/docs/guide/install/engine/chronocat-event.mdx @@ -0,0 +1,28 @@ +--- +title: chronocat-event +--- + +import Link from '@docusaurus/Link' + +Chronocat 事件引擎,实现了事件的监听和推送。监听消息需要安装此引擎。 + +## 下载 + +可从 LiteLoaderQQNT 插件商店搜索「Chronocat Engine:Event」直接安装,也可以在 Chronocat +下载页找到插件。文件名应当类似 `chronocat-llqqnt-engine-chronocat-event-v0.0.0.zip`。 + + + 前往 Chronocat 下载页 + + +## 提供 + +chronocat-event 引擎为 Chronocat 项目本身提供,与 Chronocat Shell 的版本号保持同步。 + +## 源代码 + +chronocat-event 引擎的源代码位于 +[这里](https://github.com/chrononeko/chronocat/tree/master/packages/engine-chronocat-event)。 diff --git a/packages/docs/docs/guide/install/engine/index.mdx b/packages/docs/docs/guide/install/engine/index.mdx new file mode 100644 index 0000000..5925ea2 --- /dev/null +++ b/packages/docs/docs/guide/install/engine/index.mdx @@ -0,0 +1,40 @@ +--- +title: 安装引擎 +--- + +import Link from '@docusaurus/Link' +import DocCardList from '@theme/DocCardList' + +Chronocat 自身实现了 Satori 协议,但并不实现任何特定的功能;这些功能由 Chronocat +引擎提供。你可以为 Chronocat 安装引擎来添加功能。 + +## :star: 一句话说明 :star: + +**绝大多数情况下,安装「chronocat-api」和「chronocat-event」两个引擎即可。** 二者均可从 LiteLoaderQQNT +插件商店搜索「Chronocat」直接安装,也可以在 Chronocat 下载页找到插件。 + + + 前往 Chronocat 下载页 + + +## 引擎一览 + + + +## 下一步 + +接下来,你可以将 Chronocat 接入你喜爱的应用或框架。 + + + 前往接入 + + +--- + +## 引擎功能参考 diff --git a/packages/docs/docs/guide/install/engine/poke.mdx b/packages/docs/docs/guide/install/engine/poke.mdx new file mode 100644 index 0000000..cf3a11a --- /dev/null +++ b/packages/docs/docs/guide/install/engine/poke.mdx @@ -0,0 +1,35 @@ +--- +title: poke +--- + +import Link from '@docusaurus/Link' + +戳一戳事件引擎,实现了戳一戳消息的接收。 + +目前仅支持如下环境: + +- Windows x64 +- QQ 9.9.2-16183 及以上 + +开发者近期没有精力将此引擎移植到其他环境。 + +只能识别戳一戳消息的来源聊天/来源群。群内触发的戳一戳消息无法得知发送者。可以用于触发随机文字/表情包等内容回复。 + +## 下载 + +可从 LiteLoaderQQNT 插件商店搜索「Chronocat Engine:Poke」直接安装,也可以在项目发布仓库下载。 + + + LiteLoaderQQNT-Plugin-Chronocat-Engine-Poke + + +## 提供 + +poke 引擎为 Team Chrononeko 提供,但并不由 Chronocat 项目直接提供。最新版本以项目仓库提供的版本为准。 + +## 源代码 + +目前没有开放源代码的计划。 diff --git a/packages/docs/docs/guide/install/shell/index.mdx b/packages/docs/docs/guide/install/shell/index.mdx new file mode 100644 index 0000000..bd1fddb --- /dev/null +++ b/packages/docs/docs/guide/install/shell/index.mdx @@ -0,0 +1,38 @@ +--- +title: 安装 Chronocat +--- + +import Link from '@docusaurus/Link' +import { UntrustedContents } from '@site/src/components/UntrustedContents' + +Chronocat 提供了多种安装方法,你可以根据自己的需求进行选择。 + +## :star: 一句话说明 :star: + +安装最新版 [QQ](https://im.qq.com) 和 +[LiteLoaderQQNT](https://liteloaderqqnt.github.io),在插件市场搜索安装「Chronocat」「Chronocat Engine:API」「Chronocat Engine:Event」,最后重启 +QQ 即可。 + +## 本机安装(推荐) + +本机安装会在当前电脑上安装 QQ 和 Chronocat 并运行,推荐使用这种方法安装 Chronocat。 + + + 本机安装 + + +## 手机安装 + + + +社区提供了在手机上安装和运行 Chronocat 的方法,基于 ZeroTermux。 + + + 手机安装 + diff --git a/packages/docs/docs/install/exit.png b/packages/docs/docs/guide/install/shell/native/exit.png similarity index 100% rename from packages/docs/docs/install/exit.png rename to packages/docs/docs/guide/install/shell/native/exit.png diff --git a/packages/docs/docs/install/native.mdx b/packages/docs/docs/guide/install/shell/native/index.mdx similarity index 100% rename from packages/docs/docs/install/native.mdx rename to packages/docs/docs/guide/install/shell/native/index.mdx diff --git a/packages/docs/docs/install/llqqnt-airgap-extract.png b/packages/docs/docs/guide/install/shell/native/llqqnt-airgap-extract.png similarity index 100% rename from packages/docs/docs/install/llqqnt-airgap-extract.png rename to packages/docs/docs/guide/install/shell/native/llqqnt-airgap-extract.png diff --git a/packages/docs/docs/install/llqqnt-airgap.mdx b/packages/docs/docs/guide/install/shell/native/llqqnt-airgap.mdx similarity index 90% rename from packages/docs/docs/install/llqqnt-airgap.mdx rename to packages/docs/docs/guide/install/shell/native/llqqnt-airgap.mdx index 0dcaeae..307625e 100644 --- a/packages/docs/docs/install/llqqnt-airgap.mdx +++ b/packages/docs/docs/guide/install/shell/native/llqqnt-airgap.mdx @@ -13,7 +13,7 @@ LiteLoaderQQNT 提供了详细的安装教程,可以直接前往 LiteLoaderQQN 前往 LiteLoaderQQNT @@ -51,11 +51,11 @@ LiteLoaderQQNT 提供了详细的安装教程,可以直接前往 LiteLoaderQQN 结论:Chronocat 已成功安装在你的 QQ 上。 -接下来,你可以将 Chronocat 接入你喜爱的应用或框架。 +接下来,你可以为 Chronocat 安装引擎来添加功能。 - 前往接入 + 安装引擎 diff --git a/packages/docs/docs/install/llqqnt-ensure.png b/packages/docs/docs/guide/install/shell/native/llqqnt-ensure.png similarity index 100% rename from packages/docs/docs/install/llqqnt-ensure.png rename to packages/docs/docs/guide/install/shell/native/llqqnt-ensure.png diff --git a/packages/docs/docs/install/llqqnt-market.png b/packages/docs/docs/guide/install/shell/native/llqqnt-market.png similarity index 100% rename from packages/docs/docs/install/llqqnt-market.png rename to packages/docs/docs/guide/install/shell/native/llqqnt-market.png diff --git a/packages/docs/docs/install/login.png b/packages/docs/docs/guide/install/shell/native/login.png similarity index 100% rename from packages/docs/docs/install/login.png rename to packages/docs/docs/guide/install/shell/native/login.png diff --git a/packages/docs/docs/install/settings1.png b/packages/docs/docs/guide/install/shell/native/settings1.png similarity index 100% rename from packages/docs/docs/install/settings1.png rename to packages/docs/docs/guide/install/shell/native/settings1.png diff --git a/packages/docs/docs/install/settings2.png b/packages/docs/docs/guide/install/shell/native/settings2.png similarity index 100% rename from packages/docs/docs/install/settings2.png rename to packages/docs/docs/guide/install/shell/native/settings2.png diff --git a/packages/docs/docs/install/phone/index.mdx b/packages/docs/docs/guide/install/shell/phone/index.mdx similarity index 82% rename from packages/docs/docs/install/phone/index.mdx rename to packages/docs/docs/guide/install/shell/phone/index.mdx index 763a701..1fbce59 100644 --- a/packages/docs/docs/install/phone/index.mdx +++ b/packages/docs/docs/guide/install/shell/phone/index.mdx @@ -7,8 +7,8 @@ import { UntrustedContents } from '@site/src/components/UntrustedContents' -来自社区的 [@initialencounter](https://github.com/initialencounter) 在 ZeroTermux 软件和 -[社区 Docker 镜像](/install/docker/community) 的基础上制作了 chronocat-termux,可以在手机上安装和使用 Chronocat。 +来自社区的 [@initialencounter](https://github.com/initialencounter) 在 ZeroTermux 软件和社区 +Docker 镜像的基础上制作了 chronocat-termux,可以在手机上安装和使用 Chronocat。 - 本机安装 - - -## 手机安装 - - - -社区提供了在手机上安装和运行 Chronocat 的方法,基于 ZeroTermux。 - - - 手机安装 - - -## Docker 安装 - -Chronocat 也提供了 Docker 安装镜像,适合熟悉 Docker 的用户进行安装。 - -:::warning[确保你熟悉 Docker] - -在 Docker 中使用 Chronocat 的体验低于本机安装(尤其是对于 Windows)。此外,如果你不熟悉 -Docker,对于一些非常常见的操作你可能都需要花费大量的时间去研究解决。 - -因此,大多数情况下我们都推荐本机安装。在使用 Docker -安装前,请确保你熟悉 Docker! - -::: - -:::warning[确保你熟悉 Docker 卷映射] - -确保你熟悉 Docker 卷映射的使用方法。需要使用正确的权限进行 Chronocat -镜像的卷映射才能持久化 QQ 的登录状态,否则登录态将会在容器删除后丢失。 - -在使用 Docker 安装前,请确保你熟悉 Docker! - -::: - -:::warning[确保你熟悉 Docker 容器组网] - -确保你熟悉 Docker 的端口映射和容器间组网的方法。当你将全部负载容器化后,你需要使用 -Docker 对其进行组网。 - -在使用 Docker 安装前,请确保你熟悉 Docker! - -::: - -:::warning[请先学习 Docker 容器组网] - -不管你是否部署了多个容器,不管你打算以何种方式连接 Chronocat,你都应该先学习 Docker -的端口映射和组网。如果你遇到连接问题,你更应该立即学习,而不是直接在社区提问。 - -在使用 Docker 安装前,请确保你熟悉 Docker! - -::: - - - Docker 安装 - diff --git a/packages/docs/docs/more/changelog.mdx b/packages/docs/docs/more/changelog.mdx index 1e2ca42..eeb144f 100644 --- a/packages/docs/docs/more/changelog.mdx +++ b/packages/docs/docs/more/changelog.mdx @@ -3,6 +3,179 @@ title: 更新日志 sidebar_position: 10000 --- +## [v0.2.4](https://github.com/chrononeko/chronocat/releases/tag/v0.2.4) (2024-03-10) + +LiteLoaderQQNT 用户请安装前三个插件。此版本新增的「戳一戳引擎」可根据自身需求选择安装。 + +### [iife](https://github.com/chrononeko/chronocat/tree/master/packages/iife) + +- 修复了 iife 未加载引擎的问题 ([`4a098692`](https://github.com/chrononeko/chronocat/commit/4a098692c5cb1bba973784a7c4ae245786e35128)) + +### [engine-chronocat-api](https://github.com/chrononeko/chronocat/tree/master/packages/engine-chronocat-api) + +- 修复了 `guild.get` 返回结果内没有群名称的问题 感谢群友发现问题 ([`1311e1b5`](https://github.com/chrononeko/chronocat/commit/1311e1b5d131a6ecd0493fe62ba274ac7b0ce9bc)) +- 修复了 `guild.list` 耗时较长且提示「获取群列表失败」,实际上正确获取了最新数据的问题 ([`2800c7c8`](https://github.com/chrononeko/chronocat/commit/2800c7c8e4685dd158ec1a0c6889caa4c779f2da)) + +### [engine-poke](https://github.com/chrononeko/engine-poke/tree/master) + +- 实现戳一戳引擎 + +## [v0.2.3](https://github.com/chrononeko/chronocat/releases/tag/v0.2.3) (2024-03-10) + +这个版本包含重大架构更改。请阅读 Team Chrononeko +的最新博客以了解详情。**LiteLoaderQQNT 用户请安装全部三个插件,TI 用户请直接安装 TI 文件**。 + +### [shell](https://github.com/chrononeko/chronocat/tree/master/packages/shell) + +- 使用被动式引擎加载 ([`7ea06d1e`](https://github.com/chrononeko/chronocat/commit/7ea06d1ef8c7a3bf8fb2794f46bec71279ac4004)) +- 实现 IIFE ([`1cae1a07`](https://github.com/chrononeko/chronocat/commit/1cae1a0720a17519ee7e91de6dcd9dc582e6a5a2)) +- 实现可信安装 ([`6f5fb99a`](https://github.com/chrononeko/chronocat/commit/6f5fb99afe966662c9656f678fd90e1ab3ad7016)) +- 优化启动体验 ([`f721816d`](https://github.com/chrononeko/chronocat/commit/f721816d9ee5bc253ebe906646ca8de95038da40)) +- 实现 API 注册优先级 ([`49d12bec`](https://github.com/chrononeko/chronocat/commit/49d12becefb43a058d52bd0df52b094ddfdff3c3)) +- 修改挂载点 ([`41b0eba4`](https://github.com/chrononeko/chronocat/commit/41b0eba4ce246a0a04622a4047133fd55df0e26e)) +- LiteLoaderQQNT 插件取消内置引擎 ([`d9c736f0`](https://github.com/chrononeko/chronocat/commit/d9c736f07d1e24ed672c4c420a864627c5af59f7)) +- 引擎打包为 LiteLoaderQQNT 插件 ([`6614d827`](https://github.com/chrononeko/chronocat/commit/6614d8270fecd07f00eb99d5deb42aa1aef6debd)) + +## [v0.2.2](https://github.com/chrononeko/chronocat/releases/tag/v0.2.2) (2024-03-08) + +### [shell](https://github.com/chrononeko/chronocat/tree/master/packages/shell) + +- 即使外部引擎存在,也始终加载内置引擎 ([`1205dc7d`](https://github.com/chrononeko/chronocat/commit/1205dc7d180f10e5c6863e17a14980527a36371d)) +- 修复了 IPv6 无法调用 Satori API 的问题 感谢群友发现问题 ([`ae9b642e`](https://github.com/chrononeko/chronocat/commit/ae9b642ed5a0e88fa41a14f891d19e6acf7afa56)) + +### [llqqnt](https://github.com/chrononeko/chronocat/tree/master/packages/llqqnt) + +- 发布包同时支持 LiteLoaderQQNT v0 和 v1 ([`81ca85e1`](https://github.com/chrononeko/chronocat/commit/81ca85e1ff5fa22acdf04a1b8032206119a3c3c1)) + +### [engine-chronocat-api](https://github.com/chrononeko/chronocat/tree/master/packages/engine-chronocat-api) + +- 实现 `channel.list` ([`32e8060f`](https://github.com/chrononeko/chronocat/commit/32e8060facb4d0acd0e9f2871b1c100006987d8b)) +- 实现 `channel.get` ([`1d5ed2d0`](https://github.com/chrononeko/chronocat/commit/1d5ed2d05e909e273ae8080e140e7006f2ee8c7d)) +- 实现 `unsafe.channel.mute` ([`6efc2148`](https://github.com/chrononeko/chronocat/commit/6efc21489de1e2ab19ac8f63d31a93d351ec3a57)) +- 实现 `unsafe.channel.member.mute` ([`10b73626`](https://github.com/chrononeko/chronocat/commit/10b7362656d16c09d26572fa038505a138b6b515)) +- 实现 `user.channel.create` ([`8e38e330`](https://github.com/chrononeko/chronocat/commit/8e38e33069801cf72bbb63ecc54c90de85d16487)) +- 实现 `guild.get` ([`6e499f49`](https://github.com/chrononeko/chronocat/commit/6e499f499f408cc0a86916efe0220232fc93f752)) +- 实现 `guild.list` ([`991f654b`](https://github.com/chrononeko/chronocat/commit/991f654b490c9a36e51400d4c8acd2bf68e11a4f)) +- 实现 `guild.approve` ([`b71a61a4`](https://github.com/chrononeko/chronocat/commit/b71a61a4307e7ea6a4eebf103f62a5b4fdafef05)) +- 实现 `guild.remove` ([`c6374f57`](https://github.com/chrononeko/chronocat/commit/c6374f574d869099420e88ac33eddfe7de71e440)) +- 实现 `guild.member.get` ([`45d64494`](https://github.com/chrononeko/chronocat/commit/45d644947eb7370157f062679619341a58949ce3)) +- 实现 `guild.member.list` ([`d0df894c`](https://github.com/chrononeko/chronocat/commit/d0df894c10a7af1de09417c9f7e22d2c30b2270a)) +- 实现 `message.get` ([`6f71181e`](https://github.com/chrononeko/chronocat/commit/6f71181ee226bace81af61c4a6768cb4450756e6)) +- 实现 `message.delete` ([`bf14ad47`](https://github.com/chrononeko/chronocat/commit/bf14ad477f4b18e68bc82d485ae2db0b4ae6798e)) +- 实现 `message.list` ([`df371ce6`](https://github.com/chrononeko/chronocat/commit/df371ce674f747d83704c77f8cdbe7af81eb73fe)) +- 实现 `user.get` ([`163fcda9`](https://github.com/chrononeko/chronocat/commit/163fcda9d2dca0796fd1a785e9a3e56a60bbee0b)) +- 实现 `friend.list` ([`122ee09d`](https://github.com/chrononeko/chronocat/commit/122ee09de938080c1d7a9ea93bec08d778f3eac8)) +- 实现 `friend.approve` ([`81a6ed14`](https://github.com/chrononeko/chronocat/commit/81a6ed1449561c13ef41214a0c16b2f98ec6b558)) +- 实现 `unsafe.friend.remove` ([`f4d59395`](https://github.com/chrononeko/chronocat/commit/f4d59395654c4d04bb78b111675c0414fd57e060)) + +### [engine-chronocat-event](https://github.com/chrononeko/chronocat/tree/master/packages/engine-chronocat-event) + +- 修复 `guild-member-added` 事件中没有 Member 资源的问题 感谢群友发现问题 ([`09b7d625`](https://github.com/chrononeko/chronocat/commit/09b7d625df03bf1f714b2420f42f1dd3446e45bf)) + +## [v0.2.1](https://github.com/chrononeko/chronocat/releases/tag/v0.2.1) (2024-03-08) + +### [shell](https://github.com/chrononeko/chronocat/tree/master/packages/shell) + +- 内置 chronocat 两个引擎,在未找到外部引擎时自动加载内置引擎 ([`6c5404e5`](https://github.com/chrononeko/chronocat/commit/6c5404e5085f353a47be17ea3ba0f47c41b89da0)) +- 统一日志与 HTTP 错误码 ([`2f41a2c8`](https://github.com/chrononeko/chronocat/commit/2f41a2c89be30f8285caedccb098ffc2fc7726ce)) +- 优化 API 调用报错时的日志 ([`3c7c3e1c`](https://github.com/chrononeko/chronocat/commit/3c7c3e1c1be31c8ff75624bb56e61160c6af7931)) +- 修复了日志在终端直接输出时会产生空行的问题 ([`90941772`](https://github.com/chrononeko/chronocat/commit/90941772fbcd2b5fb8793dc7527829d20bb8e578)) + +### [engine-chronocat-api](https://github.com/chrononeko/chronocat/tree/master/packages/engine-chronocat-api) + +- 修复了 at 元素的解析和发送问题 ([`1d30a45d`](https://github.com/chrononeko/chronocat/commit/1d30a45d1f2abd5330a45df49a0e1a14d7bce22f)) +- 实现 `qface.get` 和 `qface.list` ([`32f24c5c`](https://github.com/chrononeko/chronocat/commit/32f24c5ce251b9592dbd1804185214bc2427360d)) +- 实现 `login.get` ([`0b9e6970`](https://github.com/chrononeko/chronocat/commit/0b9e6970a19d7855323c80ff9593855fe289f4ab)) + +### [engine-chronocat-event](https://github.com/chrononeko/chronocat/tree/master/packages/engine-chronocat-event) + +- 修复了 at 元素的解析和发送问题 ([`1d30a45d`](https://github.com/chrononeko/chronocat/commit/1d30a45d1f2abd5330a45df49a0e1a14d7bce22f)) + +## [v0.2.0](https://github.com/chrononeko/chronocat/releases/tag/v0.2.0) (2024-03-06) + +这是一个主要(Major)版本,并包含破坏性更改。请阅读 Team Chrononeko 的最新博客以了解详情。Chronocat v0.1.x 将会继续维护。 + +### [shell](https://github.com/chrononeko/chronocat/tree/master/packages/shell) + +- 重构 core 到 Chronocat Shell + +### [engine-chronocat-api](https://github.com/chrononeko/chronocat/tree/master/packages/engine-chronocat-api) + +- 首个版本 + +### [engine-chronocat-event](https://github.com/chrononeko/chronocat/tree/master/packages/engine-chronocat-event) + +- 首个版本 + +## [v0.1.1](https://github.com/chrononeko/chronocat/releases/tag/v0.1.1) (2024-02-25) + +### [core](https://github.com/chrononeko/chronocat/tree/master/packages/core) + +- Satori:`pcpoke` 支持收发具体类型,包括「戳一戳」「比心」「点赞」「心碎」「666」「放大招」 ([`567494fb`](https://github.com/chrononeko/chronocat/commit/567494fbed23cefef4b7c973068716e956b95565)) +- Satori:`pcpoke` 不要与其他元素一起发送 ([`3b8b1b24`](https://github.com/chrononeko/chronocat/commit/3b8b1b24f61e6f2c06c30b8072c1b36871acc0d5)) +- Satori:`pcpoke` 添加日志提示 ([`44ce55ad`](https://github.com/chrononeko/chronocat/commit/44ce55ad92216b836a849746e050666580c10506)) + +## [v0.1.0](https://github.com/chrononeko/chronocat/releases/tag/v0.1.0) (2024-02-23) + +### [core](https://github.com/chrononeko/chronocat/tree/master/packages/core) + +- 登录服务接入日志 ([`e2a0d398`](https://github.com/chrononeko/chronocat/commit/e2a0d398d1ab8d3e4b4723065ae8bac589a38300)) +- 弃用实验性 `platform` 配置项 ([`1df2f55c`](https://github.com/chrononeko/chronocat/commit/1df2f55ca17c85017a501991f2485d20be9687b4)) + +## [v0.0.75](https://github.com/chrononeko/chronocat/releases/tag/v0.0.75) (2024-02-13) + +### [core](https://github.com/chrononeko/chronocat/tree/master/packages/core) + +- Satori:实现了 API `unsafe.channel.mute`、`unsafe.channel.member.mute` ([`3fd12863`](https://github.com/chrononeko/chronocat/commit/3fd128630b691374524fc45e05fdd989db139c22)) +- Satori:实现了 API `channel.list` ([`ebc9d1e4`](https://github.com/chrononeko/chronocat/commit/ebc9d1e4aa1cf5a0e3c41810f8535e01b410f54d)) +- Satori:实现了 API `channel.get`、`guild.get`、`user.get`、`message.list`、`guild.member.kick` ([`dfe6b097`](https://github.com/chrononeko/chronocat/commit/dfe6b097f958439b071352eeadb483b08b2b8250)) + +## [v0.0.74](https://github.com/chrononeko/chronocat/releases/tag/v0.0.74) (2024-02-06) + +### [core](https://github.com/chrononeko/chronocat/tree/master/packages/core) + +- 日志回复消息可点击 ([`92cec78e`](https://github.com/chrononeko/chronocat/commit/92cec78e5f2f0badd592698f831c226112ae8a2d)) +- 日志打印戳一戳消息 ([`720eddca`](https://github.com/chrononeko/chronocat/commit/720eddca88dfdce791acceb11be27de77fa4fcf0)) +- Satori:实现了 API `message.get`、`message.delete` ([`ab94944b`](https://github.com/chrononeko/chronocat/commit/ab94944b79c6756589ae25931adbcf6d20aed079)) +- Satori:实现 `face` 元素,支持任意 QQ 表情/Emoji/超级表情收发,支持接收掷骰结果/剪刀石头布结果/接龙次数 ([`013b28a4`](https://github.com/chrononeko/chronocat/commit/013b28a4b7cd4a7bdaf593f05d20eb0f70870c56)) +- Satori:实现 `pcpoke` 元素,支持收发「窗口抖动」表情 ([`39914807`](https://github.com/chrononeko/chronocat/commit/399148074ef98ae3ec8ae7ce1c755652d88ce4a5)) +- Red & Satori:实现了 `message-deleted` 事件 ([`87f06d5d`](https://github.com/chrononeko/chronocat/commit/87f06d5d9a190e6c5f1bba2de4391f5f45f3ea7c)) + +## [v0.0.73](https://github.com/chrononeko/chronocat/releases/tag/v0.0.73) (2024-01-29) + +### [core](https://github.com/chrononeko/chronocat/tree/master/packages/core) + +- 细化日志信息 ([`089ae1f7`](https://github.com/chrononeko/chronocat/commit/089ae1f75d4c7afb4dae2ac826eefab029f8f226)) + +### [module-native](https://github.com/chrononeko/module-native/tree/master) + +- 彻底修复无法发送合并转发和接收戳一戳的问题 ([`b43ed6f5`](https://github.com/chrononeko/module-native/commit/b43ed6f53c527e7685f6e1251eacf3aab4126b4b)) + +## [v0.0.72](https://github.com/chrononeko/chronocat/releases/tag/v0.0.72) (2024-01-28) + +### [core](https://github.com/chrononeko/chronocat/tree/master/packages/core) + +- 修复了模块加载失败时不会打印错误日志的问题 ([`2e9a2807`](https://github.com/chrononeko/chronocat/commit/2e9a2807d12904420f7a79d938f40c37d1f91cfe)) +- 内存泄漏时日志提示并转储 ([`3b4f6910`](https://github.com/chrononeko/chronocat/commit/3b4f69100303a65c290699c94a0ada4f9726f2ac)) + +## [v0.0.71](https://github.com/chrononeko/chronocat/releases/tag/v0.0.71) (2024-01-22) + +### [core](https://github.com/chrononeko/chronocat/tree/master/packages/core) + +- 尝试修复无法发送合并转发和接收戳一戳的问题 ([`11623ef1`](https://github.com/chrononeko/chronocat/commit/11623ef12c937ee9cb28814b85ea9eb55d1a240a)) +- 优化文件体积 ([`fbd489e3`](https://github.com/chrononeko/chronocat/commit/fbd489e362ae02aa6a816b2d82fc9ac06ffcafa2)) +- 远程登录支持 https ([`02ecb31e`](https://github.com/chrononeko/chronocat/commit/02ecb31e594dab5ed7db45de284b5864d9324503)) + +### [llqqnt](https://github.com/chrononeko/chronocat/tree/master/packages/llqqnt) + +- 修复了 LiteLoaderQQNT 无法加载 Chronocat 的问题 感谢群友发现问题 ([`12458892`](https://github.com/chrononeko/chronocat/commit/12458892be7bf398d85c955392649f993bfce30f)) + +## [v0.0.70](https://github.com/chrononeko/chronocat/releases/tag/v0.0.70) (2024-01-20) + +### [core](https://github.com/chrononeko/chronocat/tree/master/packages/core) + +- 添加了初始化完成的日志 ([`9c91cc11`](https://github.com/chrononeko/chronocat/commit/9c91cc11b9bab48b4c8718003de6715340fb536c)) + ## [v0.0.69](https://github.com/chrononeko/chronocat/releases/tag/v0.0.69) (2024-01-18) ### [core](https://github.com/chrononeko/chronocat/tree/master/packages/core) diff --git a/packages/docs/sidebars.ts b/packages/docs/sidebars.ts index e95d62b..4b16e58 100644 --- a/packages/docs/sidebars.ts +++ b/packages/docs/sidebars.ts @@ -4,10 +4,10 @@ const sidebars: SidebarsConfig = { guide: [ { type: 'category', - label: '安装', + label: '安装 Chronocat', link: { type: 'doc', - id: 'install/index', + id: 'guide/install/shell/index', }, items: [ { @@ -15,12 +15,25 @@ const sidebars: SidebarsConfig = { label: '本机安装', link: { type: 'doc', - id: 'install/native', + id: 'guide/install/shell/native/index', }, - items: ['install/llqqnt-airgap'], + items: ['guide/install/shell/native/llqqnt-airgap'], }, - 'install/phone/index', - 'install/trusted-installation', + 'guide/install/shell/phone/index', + 'guide/install/shell/trusted-installation', + ], + }, + { + type: 'category', + label: '安装引擎', + link: { + type: 'doc', + id: 'guide/install/engine/index', + }, + items: [ + 'guide/install/engine/chronocat-api', + 'guide/install/engine/chronocat-event', + 'guide/install/engine/poke', ], }, { @@ -28,13 +41,13 @@ const sidebars: SidebarsConfig = { label: '接入', link: { type: 'doc', - id: 'connect/index', + id: 'guide/connect/index', }, items: [ - 'connect/koishi', - 'connect/nonebot', - 'connect/avilla', - 'connect/kiramibot', + 'guide/connect/koishi', + 'guide/connect/nonebot', + 'guide/connect/avilla', + 'guide/connect/kiramibot', ], }, { @@ -42,9 +55,9 @@ const sidebars: SidebarsConfig = { label: '配置', link: { type: 'doc', - id: 'config/index', + id: 'guide/config/index', }, - items: ['config/reference'], + items: ['guide/config/reference'], }, ], developSatori: [ diff --git a/packages/docs/src/components/HomepageFeatures/index.tsx b/packages/docs/src/components/HomepageFeatures/index.tsx index eb915d8..917f7ee 100644 --- a/packages/docs/src/components/HomepageFeatures/index.tsx +++ b/packages/docs/src/components/HomepageFeatures/index.tsx @@ -17,13 +17,13 @@ const FeatureList: FeatureItem[] = [ title: '安装', description: '如果你尚未安装 Chronocat,请从这里开始安装。Chronocat 可通过 LiteLoaderQQNT 安装。', - to: '/install', + to: '/guide/install/shell', }, { title: '接入', description: '如果你已安装 Chronocat,请从这里开始将 Chronocat 接入你喜爱的应用或框架。Chronocat 支持多种应用和框架。', - to: '/connect', + to: '/guide/connect', }, { title: '开发', diff --git a/packages/docs/src/pages/guide/index.tsx b/packages/docs/src/pages/guide/index.tsx new file mode 100644 index 0000000..75ef767 --- /dev/null +++ b/packages/docs/src/pages/guide/index.tsx @@ -0,0 +1,6 @@ +// https://github.com/import-js/eslint-plugin-import/issues/2802 +// eslint-disable-next-line import/no-unresolved +import { Redirect } from '@docusaurus/router' + +// eslint-disable-next-line import/no-default-export +export default () => diff --git a/packages/docs/src/pages/guide/install.tsx b/packages/docs/src/pages/guide/install.tsx new file mode 100644 index 0000000..75ef767 --- /dev/null +++ b/packages/docs/src/pages/guide/install.tsx @@ -0,0 +1,6 @@ +// https://github.com/import-js/eslint-plugin-import/issues/2802 +// eslint-disable-next-line import/no-unresolved +import { Redirect } from '@docusaurus/router' + +// eslint-disable-next-line import/no-default-export +export default () => diff --git a/packages/shell/static/openapi.yaml b/packages/shell/static/openapi.yaml index 81cc43a..c695bd6 100644 --- a/packages/shell/static/openapi.yaml +++ b/packages/shell/static/openapi.yaml @@ -1,7 +1,7 @@ openapi: 3.1.0 info: title: Chronocat Satori - version: 0.0.50 + version: 0.2.0 description: | # Chronocat Satori OpenAPI 定义