dsh-folia 4.26.0-pre.77 → 4.26.0-pre.78
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/lib/client.js +1 -1
- package/lib/routes/pet-chat.js +1 -1
- package/package.json +1 -1
package/lib/client.js
CHANGED
|
@@ -22164,7 +22164,7 @@ window.__ModuleLoader__.load({
|
|
|
22164
22164
|
|
|
22165
22165
|
React.useEffect(() => {
|
|
22166
22166
|
void (async () => {
|
|
22167
|
-
const resp = await apiJson("/pet-chat/capabilities", { parse: "always" }).catch(() => null);
|
|
22167
|
+
const resp = await apiJson("/pet-chat/capabilities/catalog", { parse: "always" }).catch(() => null);
|
|
22168
22168
|
const doc = (resp && resp.data) || null;
|
|
22169
22169
|
if (doc && Array.isArray(doc.items)) setState((prev) => ({ ...prev, items: doc.items, error: null }));
|
|
22170
22170
|
else setState((prev) => ({ ...prev, error: weT("读取失败,重开设置页再试") }));
|
package/lib/routes/pet-chat.js
CHANGED
|
@@ -4803,7 +4803,7 @@ async function handleMicTest(req, res) {
|
|
|
4803
4803
|
// 自检:一次性跑「ffmpeg → 设备 → 录音 → 转写」四步,把每步结果原样返回。
|
|
4804
4804
|
// 目的:发版前/真机排查时**一个请求就能看到哪一步坏了**,不用来回猜。
|
|
4805
4805
|
if (tail === '/selftest' && (method === 'GET' || method === 'HEAD')) { void handleSelfTest(res); return; }
|
|
4806
|
-
if (tail === '/capabilities' && (method === 'GET' || method === 'HEAD')) { handleCapabilities(res); return; }
|
|
4806
|
+
if (tail === '/capabilities/catalog' && (method === 'GET' || method === 'HEAD')) { handleCapabilities(res); return; }
|
|
4807
4807
|
if (tail === '/work-plugins' && (method === 'GET' || method === 'HEAD')) { handleWorkPlugins(res); return; }
|
|
4808
4808
|
if (tail === '/asr' && (method === 'GET' || method === 'HEAD')) { handleAsrStatus(res); return; }
|
|
4809
4809
|
if (tail === '/asr' && method === 'POST') { handleAsrPrepare(res); return; }
|
package/package.json
CHANGED