dsh-line-bot 0.10.2 → 0.10.3

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/CHANGELOG.md CHANGED
@@ -1,3 +1,8 @@
1
+ ## 0.10.3
2
+
3
+ - 面板「重新偵測」不再同步匯入 MLX 套件(原本可能卡住 8–30 秒),偵測一律走快取與檔案檢查。
4
+ - 語音狀態與參考音長度改為快取,`/api/line-bot/status` 不會被語音偵測拖慢。
5
+
1
6
  ## 0.10.2
2
7
 
3
8
  - 修正 Windows 一鍵配置語音環境:改為直接使用解壓後的 `crispasr.exe`(與 `openblas.dll` 同資料夾),不再只複製 exe 導致缺少 DLL、`--version` 失敗。
package/lib/host.mjs CHANGED
@@ -51,7 +51,7 @@ const { createVision } = visionMod
51
51
  const { createTts } = ttsMod
52
52
  const { chunkText, clip, inQuietWindow, jsonFail, jsonOk, maskSecret, readJsonBody, safeArray, sleep, readJsonSafe } = utilMod
53
53
 
54
- export const VERSION = '0.10.2'
54
+ export const VERSION = '0.10.3'
55
55
 
56
56
  // 環境變數提供的 Cloudflare API Token(方便用 shell 注入、不用把 token 寫進設定檔)。
57
57
  // 設定檔裡的 token 優先;兩者都沒有時才用環境變數。
@@ -2801,7 +2801,7 @@ export async function create({ ctx, config: pluginConfig, logger: upstream }) {
2801
2801
  return { messages: built.messages, parsed: built.parsed }
2802
2802
  }
2803
2803
  case 'voice-detect':
2804
- return tts.detect({ force: true, validate: true })
2804
+ return tts.detect({ force: true })
2805
2805
  case 'voice-install': {
2806
2806
  if (tts.status().installing) return { started: false, already: true }
2807
2807
  tts.install()
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-line-bot",
3
- "version": "0.10.2",
3
+ "version": "0.10.3",
4
4
  "description": "把 LINE 官方帳號(Messaging API)接進 DeepSeek Harness 的插件:內建 Cloudflare Tunnel、人設選擇(大肥魚或插件自訂)、主動傳訊與完整設定面板。",
5
5
  "type": "module",
6
6
  "main": "index.js",