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 +15 -2
- package/dist/index.js +3 -2
- package/dist/style.css +1 -1
- package/lib/browser/index.mjs +1 -1
- package/lib/browser/index.mjs.map +2 -2
- package/lib/node/index.js +254 -39
- package/lib/node/index.js.map +3 -3
- package/lib/node/market.d.ts +37 -1
- package/lib/shared/index.d.ts +5 -0
- package/lib/shared/index.js +1 -1
- package/lib/shared/index.js.map +2 -2
- package/lib/shared/index.mjs +1 -1
- package/lib/shared/index.mjs.map +2 -2
- package/package.json +1 -1
- package/src/node/locales/schema.de-DE.yml +1 -0
- package/src/node/locales/schema.en-US.yml +1 -0
- package/src/node/locales/schema.fr-FR.yml +1 -0
- package/src/node/locales/schema.ja-JP.yml +1 -0
- package/src/node/locales/schema.ru-RU.yml +1 -0
- package/src/node/locales/schema.zh-CN.yml +1 -0
- package/src/node/locales/schema.zh-TW.yml +1 -0
- package/src/node/market.ts +261 -25
- package/src/shared/index.ts +6 -1
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# koishi-plugin-market-next
|
|
2
2
|
|
|
3
|
-

|
|
4
4
|

|
|
5
5
|

|
|
6
6
|

|
|
@@ -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.
|
|
232
|
+
这通常表示后端已经拿到市场索引,但第一次 Console 连接时数据没有及时同步到前端,或者依赖刷新占用了较长时间。`3.3.1` 会优先返回市场索引,并在当前源失败时尝试备用源。
|
|
220
233
|
|
|
221
234
|
### 网络正常但显示 failed to fetch
|
|
222
235
|
|