dsh-voice-mode 0.7.26 → 0.7.28
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.en.md +21 -11
- package/README.md +34 -11
- package/lib/client.js +1234 -111
- package/lib/index.js +472 -56
- package/lib/msedge-tts.cjs +11 -5
- package/package.json +3 -2
package/lib/msedge-tts.cjs
CHANGED
|
@@ -11405,9 +11405,9 @@ var require_dist = __commonJS({
|
|
|
11405
11405
|
}
|
|
11406
11406
|
});
|
|
11407
11407
|
|
|
11408
|
-
// node_modules/.pnpm/follow-redirects@1.16.
|
|
11408
|
+
// node_modules/.pnpm/follow-redirects@1.16.1_debug@4.4.3/node_modules/follow-redirects/debug.js
|
|
11409
11409
|
var require_debug = __commonJS({
|
|
11410
|
-
"node_modules/.pnpm/follow-redirects@1.16.
|
|
11410
|
+
"node_modules/.pnpm/follow-redirects@1.16.1_debug@4.4.3/node_modules/follow-redirects/debug.js"(exports2, module2) {
|
|
11411
11411
|
var debug;
|
|
11412
11412
|
module2.exports = function() {
|
|
11413
11413
|
if (!debug) {
|
|
@@ -11425,9 +11425,9 @@ var require_debug = __commonJS({
|
|
|
11425
11425
|
}
|
|
11426
11426
|
});
|
|
11427
11427
|
|
|
11428
|
-
// node_modules/.pnpm/follow-redirects@1.16.
|
|
11428
|
+
// node_modules/.pnpm/follow-redirects@1.16.1_debug@4.4.3/node_modules/follow-redirects/index.js
|
|
11429
11429
|
var require_follow_redirects = __commonJS({
|
|
11430
|
-
"node_modules/.pnpm/follow-redirects@1.16.
|
|
11430
|
+
"node_modules/.pnpm/follow-redirects@1.16.1_debug@4.4.3/node_modules/follow-redirects/index.js"(exports2, module2) {
|
|
11431
11431
|
var url = require("node:url");
|
|
11432
11432
|
var URL2 = url.URL;
|
|
11433
11433
|
var http = require("node:http");
|
|
@@ -11655,6 +11655,12 @@ var require_follow_redirects = __commonJS({
|
|
|
11655
11655
|
RedirectableRequest.prototype._sanitizeOptions = function(options) {
|
|
11656
11656
|
if (!options.headers) {
|
|
11657
11657
|
options.headers = {};
|
|
11658
|
+
} else if (Array.isArray(options.headers)) {
|
|
11659
|
+
var headerList = options.headers;
|
|
11660
|
+
options.headers = {};
|
|
11661
|
+
for (var i = 0; i < headerList.length; i += 2) {
|
|
11662
|
+
options.headers[headerList[i]] = headerList[i + 1];
|
|
11663
|
+
}
|
|
11658
11664
|
}
|
|
11659
11665
|
if (!isArray(options.sensitiveHeaders)) {
|
|
11660
11666
|
options.sensitiveHeaders = [];
|
|
@@ -11929,7 +11935,7 @@ var require_follow_redirects = __commonJS({
|
|
|
11929
11935
|
return URL2 && value instanceof URL2;
|
|
11930
11936
|
}
|
|
11931
11937
|
function escapeRegex(regex) {
|
|
11932
|
-
return regex.replace(/[\]\\/()
|
|
11938
|
+
return regex.replace(/[[\]\\/()*+?.^$|]/g, "\\$&");
|
|
11933
11939
|
}
|
|
11934
11940
|
module2.exports = wrap({ http, https });
|
|
11935
11941
|
module2.exports.wrap = wrap;
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "dsh-voice-mode",
|
|
3
3
|
"description": "Full-duplex voice plugin for DeepSeek Harness: local zipformer2 streaming ASR (no API key) → editable draft; Edge TTS or local VITS / Kokoro read-aloud with live captions; true barge-in; hardened HTTP surface + model SHA256 pinning; compatible with all dsh releases since 0.1.1-rc.2 (verified 0.1.1-rc.2 → 0.2.1-rc.2).",
|
|
4
4
|
"icon": "./icon.svg",
|
|
5
|
-
"version": "0.7.
|
|
5
|
+
"version": "0.7.28",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"main": "lib/index.js",
|
|
8
8
|
"repository": {
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"scripts": {
|
|
48
48
|
"build": "node build.mjs",
|
|
49
49
|
"prepack": "node build.mjs",
|
|
50
|
-
"test": "node test/segmenter.test.mjs && node test/aec.test.mjs && node test/download.test.mjs && node test/endpoint.test.mjs && node test/endpoint-short.test.mjs && node test/resample.test.mjs && node test/sense-worker.test.mjs && node test/detect-route.test.mjs && node test/verify-client.mjs && node test/asr-host-rebuild.test.mjs && node test/barge-in-manual.test.mjs && node test/barge-in-detect-behavior.test.mjs && node test/sense-lang.test.mjs && node test/caption-a11y.test.mjs && node test/emotion.test.mjs && node test/emotion-tts-local.test.mjs && node test/emotion-integration.test.mjs && node test/backchannel.test.mjs && node test/strings-coverage.test.mjs && node test/yield-ms-wiring.test.mjs && node test/fail-streak-notice.test.mjs && node test/partial-gating.test.mjs && node test/asr-lifecycle.test.mjs && node test/steer-submit-behavior.test.mjs && node test/correct-cycle-behavior.test.mjs && node test/host-security-behavior.test.mjs && node test/echo-tail.test.mjs && node test/host-fixes.test.mjs && node test/tts-queue-engine.test.mjs && node test/matchBackchannel.test.mjs && node test/settings-load.test.mjs && node test/preview-error.test.mjs && node test/hold-clear.test.mjs && node test/barge-in-detect.test.mjs && node test/wakeword.test.mjs && node test/wake-standby.test.mjs && node test/wake-flow.test.mjs && node test/tts-playback.test.mjs && node test/settings-store.test.mjs && node test/i18n.test.mjs && node test/i18n-protocol.test.mjs && node test/package-install.test.mjs && node test/tts-runtime.test.mjs && node test/steer-submit.test.mjs && node test/draft-compose.test.mjs && node test/finalize-ux.test.mjs && node test/llm-correct.test.mjs && node test/autosend-decouple.test.mjs && node test/settings-effective.test.mjs && node test/silent-path-hints.test.mjs && node test/host-hardening.test.mjs",
|
|
50
|
+
"test": "node test/segmenter.test.mjs && node test/aec.test.mjs && node test/download.test.mjs && node test/endpoint.test.mjs && node test/endpoint-short.test.mjs && node test/resample.test.mjs && node test/sense-worker.test.mjs && node test/detect-route.test.mjs && node test/verify-client.mjs && node test/asr-host-rebuild.test.mjs && node test/barge-in-manual.test.mjs && node test/barge-in-detect-behavior.test.mjs && node test/sense-lang.test.mjs && node test/caption-a11y.test.mjs && node test/emotion.test.mjs && node test/emotion-tts-local.test.mjs && node test/emotion-integration.test.mjs && node test/backchannel.test.mjs && node test/strings-coverage.test.mjs && node test/yield-ms-wiring.test.mjs && node test/fail-streak-notice.test.mjs && node test/partial-gating.test.mjs && node test/asr-lifecycle.test.mjs && node test/steer-submit-behavior.test.mjs && node test/correct-cycle-behavior.test.mjs && node test/host-security-behavior.test.mjs && node test/echo-tail.test.mjs && node test/host-fixes.test.mjs && node test/tts-queue-engine.test.mjs && node test/matchBackchannel.test.mjs && node test/settings-load.test.mjs && node test/preview-error.test.mjs && node test/hold-clear.test.mjs && node test/barge-in-detect.test.mjs && node test/wakeword.test.mjs && node test/wake-standby.test.mjs && node test/wake-flow.test.mjs && node test/tts-playback.test.mjs && node test/settings-store.test.mjs && node test/i18n.test.mjs && node test/i18n-protocol.test.mjs && node test/package-install.test.mjs && node test/tts-runtime.test.mjs && node test/steer-submit.test.mjs && node test/draft-compose.test.mjs && node test/finalize-ux.test.mjs && node test/llm-correct.test.mjs && node test/autosend-decouple.test.mjs && node test/settings-effective.test.mjs && node test/silent-path-hints.test.mjs && node test/host-hardening.test.mjs && node test/mic-gesture.test.mjs && node test/shortcut-ui.test.mjs && node test/focus-ownership.test.mjs",
|
|
51
51
|
"verify:client": "node test/verify-client.mjs",
|
|
52
52
|
"prefetch": "node scripts/prefetch.mjs",
|
|
53
53
|
"list-voices": "node scripts/list-voices.mjs",
|
|
@@ -57,6 +57,7 @@
|
|
|
57
57
|
"verify": "node scripts/verify.mjs",
|
|
58
58
|
"typecheck": "node node_modules/typescript/bin/tsc -p tsconfig.json --noEmit && node node_modules/typescript/bin/tsc -p tsconfig.client.json --noEmit",
|
|
59
59
|
"check:anchors": "node scripts/check-anchors.mjs",
|
|
60
|
+
"check:doc-anchors": "node scripts/check-doc-anchors.mjs",
|
|
60
61
|
"typecheck:dual": "bash scripts/typecheck-dual.sh",
|
|
61
62
|
"smoke:runtime": "bash scripts/smoke-runtime.sh",
|
|
62
63
|
"verify:dual": "bash scripts/verify-dual.sh",
|