koishi-plugin-market-next 3.3.0 → 3.3.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/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # koishi-plugin-market-next
2
2
 
3
- ![Version](https://img.shields.io/badge/version-3.3.0-blue)
3
+ ![Version](https://img.shields.io/badge/version-3.3.1-blue)
4
4
  ![Koishi](https://img.shields.io/badge/Koishi-%5E4.18.11-6f42c1)
5
5
  ![TypeScript](https://img.shields.io/badge/TypeScript-5.x-3178c6)
6
6
  ![License](https://img.shields.io/badge/license-AGPL--3.0-orange)
@@ -81,6 +81,7 @@ plugins:
81
81
  endpoint: https://registry.koishi.t4wefan.pub/index.json
82
82
  timeout: 30s
83
83
  autoRoute: true
84
+ logLevel: warn
84
85
  chatlunaTool: false
85
86
  ```
86
87
 
@@ -92,6 +93,7 @@ plugins:
92
93
  | `search.timeout` | `30s` | 获取市场索引的超时时间。 |
93
94
  | `search.proxyAgent` | 空 | 请求市场索引时使用的代理。 |
94
95
  | `search.autoRoute` | `true` | 当前市场源失败时是否自动尝试备用市场源。 |
96
+ | `search.logLevel` | `warn` | 市场后端日志级别:`silent`、`error`、`warn`、`info`、`debug`。 |
95
97
  | `chatlunaTool` | `false` | 是否启用 ChatLuna 插件市场查询工具。 |
96
98
 
97
99
  可选市场索引:
@@ -124,6 +126,17 @@ plugins:
124
126
  autoRoute: false
125
127
  ```
126
128
 
129
+ 排查加载、fallback 或缓存回退问题时可以提高日志级别:
130
+
131
+ ```yaml
132
+ plugins:
133
+ market-next:
134
+ search:
135
+ logLevel: debug
136
+ ```
137
+
138
+ 市场搜索输入已做 120ms 防抖,并设置 500ms 最大等待上限;连续输入时不会每个字符都触发完整筛选,但长时间连续输入也会定期同步结果。
139
+
127
140
  ## ChatLuna 市场查询 Tool
128
141
 
129
142
  开启 `chatlunaTool` 后,如果当前 Koishi 同时安装并启用了 ChatLuna,本插件会注册只读工具:
@@ -216,7 +229,7 @@ plugins:
216
229
 
217
230
  ### 刷新 WebUI 后市场才显示
218
231
 
219
- 这通常表示后端已经拿到市场索引,但第一次 Console 连接时数据没有及时同步到前端,或者依赖刷新占用了较长时间。`3.3.0` 会优先返回市场索引,并在当前源失败时尝试备用源。
232
+ 这通常表示后端已经拿到市场索引,但第一次 Console 连接时数据没有及时同步到前端,或者依赖刷新占用了较长时间。`3.3.1` 会优先返回市场索引,并在当前源失败时尝试备用源。
220
233
 
221
234
  ### 网络正常但显示 failed to fetch
222
235