@goodandready/dsh-voice 0.9.22 → 0.9.24
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/updater.js +14 -3
- package/package.json +1 -1
package/lib/updater.js
CHANGED
|
@@ -219,12 +219,23 @@ export function checkProfileLock(profileDir) {
|
|
|
219
219
|
const live = readLockPid(lockPath);
|
|
220
220
|
if (live !== null && isProcessAlive(live)) return { locked: true, pid: live };
|
|
221
221
|
}
|
|
222
|
-
|
|
222
|
+
const finalPid = readLockPid(lockPath);
|
|
223
|
+
if (finalPid !== null && isProcessAlive(finalPid)) {
|
|
224
|
+
return { locked: true, pid: finalPid };
|
|
225
|
+
}
|
|
226
|
+
const postStat = statSync(lockPath);
|
|
227
|
+
if (postStat.mtimeMs !== initialStat.mtimeMs || postStat.size !== initialStat.size) {
|
|
228
|
+
const live = readLockPid(lockPath);
|
|
229
|
+
if (live !== null && isProcessAlive(live)) return { locked: true, pid: live };
|
|
230
|
+
}
|
|
231
|
+
const postPid = readLockPid(lockPath);
|
|
232
|
+
if (postPid !== null && isProcessAlive(postPid)) {
|
|
233
|
+
return { locked: true, pid: postPid };
|
|
234
|
+
}
|
|
235
|
+
if (p1 === pid && p2 === pid && p3 === pid && finalPid === pid && postPid === pid) {
|
|
223
236
|
unlinkSync(lockPath);
|
|
224
237
|
return { locked: false, cleanedStale: true };
|
|
225
238
|
}
|
|
226
|
-
const pFinal = readLockPid(lockPath);
|
|
227
|
-
if (pFinal !== null && isProcessAlive(pFinal)) return { locked: true, pid: pFinal };
|
|
228
239
|
return { locked: false };
|
|
229
240
|
} catch {
|
|
230
241
|
if (!existsSync(lockPath)) return { locked: false };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@goodandready/dsh-voice",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.24",
|
|
4
4
|
"description": "Voice input for DeepSeek Harness: dictation chunked by pauses and voice messages, each with its own provider fallback chain (Deepgram, Groq, HuggingFace, local whisper.cpp, plus any OpenAI-compatible API of your own).",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|