@voicemesh/dsh-voice 0.1.0-beta.3 → 0.1.0-beta.8
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 +54 -10
- package/cordis.patch.yml +0 -3
- package/icon.svg +5 -5
- package/lib/client.js +326 -171
- package/node_modules/@deepseek-ai/dsh-voice-client/lib/client.js +155 -155
- package/node_modules/@deepseek-ai/dsh-voice-client/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-voice-host/lib/index.js +92 -4
- package/node_modules/@deepseek-ai/dsh-voice-host/package.json +1 -1
- package/package.json +3 -3
- package/provenance.json +1 -1
package/lib/client.js
CHANGED
|
@@ -5,6 +5,7 @@ window.__ModuleLoader__.load({
|
|
|
5
5
|
var module = { exports: {} };
|
|
6
6
|
var exports = module.exports;
|
|
7
7
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
8
|
+
//#region \0rolldown/runtime.js
|
|
8
9
|
var __defProp$1 = Object.defineProperty;
|
|
9
10
|
var __esmMin = (fn, res) => () => (fn && (res = fn(fn = 0)), res);
|
|
10
11
|
var __exportAll$1 = (all, no_symbols) => {
|
|
@@ -16,10 +17,12 @@ window.__ModuleLoader__.load({
|
|
|
16
17
|
if (!no_symbols) __defProp$1(target, Symbol.toStringTag, { value: "Module" });
|
|
17
18
|
return target;
|
|
18
19
|
};
|
|
20
|
+
//#endregion
|
|
19
21
|
let react = require("react");
|
|
20
22
|
let _deepseek_ai_dsh_client_store = require("@deepseek-ai/dsh-client-store");
|
|
21
23
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
22
24
|
let _deepseek_ai_dsh_client_ui_primitives = require("@deepseek-ai/dsh-client-ui-primitives");
|
|
25
|
+
//#region ../../../../../Projects/voicemesh-composer/lib/listener-cues-CmmJi7tX.js
|
|
23
26
|
var EnergyVad = class {
|
|
24
27
|
sampleRate;
|
|
25
28
|
windowMs;
|
|
@@ -483,6 +486,8 @@ Use the user's language. A cue is a tiny reactive filler that only shows you are
|
|
|
483
486
|
}
|
|
484
487
|
}
|
|
485
488
|
};
|
|
489
|
+
//#endregion
|
|
490
|
+
//#region ../../../../../Projects/voicemesh-composer/lib/sts-caption-C_0Z9wjN.js
|
|
486
491
|
/**
|
|
487
492
|
* Reveal spoken text using the same timing policy for STS and Pipeline.
|
|
488
493
|
* @param text - Generated speech text.
|
|
@@ -511,6 +516,8 @@ Use the user's language. A cue is a tiny reactive filler that only shows you are
|
|
|
511
516
|
const boundary = text.slice(0, limit).search(/\s+\S*$/u);
|
|
512
517
|
return boundary < 0 ? 0 : boundary;
|
|
513
518
|
}
|
|
519
|
+
//#endregion
|
|
520
|
+
//#region ../../../../../Projects/voicemesh-composer/lib/pipeline-DhRGoLGf.js
|
|
514
521
|
/**
|
|
515
522
|
* Flutter `isIncompleteClause` parity: the semantic end-of-turn gate. A clause
|
|
516
523
|
* that ends on a trailing conjunction/preposition/determiner/modal, a
|
|
@@ -1389,6 +1396,8 @@ Use the user's language. A cue is a tiny reactive filler that only shows you are
|
|
|
1389
1396
|
}
|
|
1390
1397
|
return total;
|
|
1391
1398
|
}
|
|
1399
|
+
//#endregion
|
|
1400
|
+
//#region ../../../../../Projects/voicemesh-composer/lib/speech-markdown-BAE6-4Jf.js
|
|
1392
1401
|
var speech_markdown_BAE6_4Jf_exports = /* @__PURE__ */ __exportAll$1({ speechMarkdown: () => speechMarkdown });
|
|
1393
1402
|
/**
|
|
1394
1403
|
* Get the text content of a node or list of nodes.
|
|
@@ -12717,6 +12726,8 @@ function(test) {
|
|
|
12717
12726
|
}]
|
|
12718
12727
|
})]] });
|
|
12719
12728
|
}));
|
|
12729
|
+
//#endregion
|
|
12730
|
+
//#region ../../../../../Projects/voicemesh-composer/lib/browser.js
|
|
12720
12731
|
const taps = /* @__PURE__ */ new Set();
|
|
12721
12732
|
const listeners = /* @__PURE__ */ new Set();
|
|
12722
12733
|
let frame;
|
|
@@ -15286,6 +15297,8 @@ registerProcessor('sts-capture', StsCapture);
|
|
|
15286
15297
|
}
|
|
15287
15298
|
};
|
|
15288
15299
|
}
|
|
15300
|
+
//#endregion
|
|
15301
|
+
//#region src/client/config.ts
|
|
15289
15302
|
/**
|
|
15290
15303
|
* Persisted voice configuration for the DSH surface.
|
|
15291
15304
|
*
|
|
@@ -15752,16 +15765,20 @@ registerProcessor('sts-capture', StsCapture);
|
|
|
15752
15765
|
default: return config.deepgramVoiceModel;
|
|
15753
15766
|
}
|
|
15754
15767
|
}
|
|
15755
|
-
|
|
15756
|
-
|
|
15768
|
+
//#endregion
|
|
15769
|
+
//#region \0dsh-css:/Users/hgp/DeepSeek/voicemesh-dsh-voice/.release/package-1792089472529/client-build/src/client/AudioVisualizer.module.css.mjs
|
|
15770
|
+
const css$7 = ".owB5Ca_wave{height:28px;color:var(--dsw-alias-brand-primary,#80a9ed);flex:0 0 64px;align-items:center;display:inline-flex}.owB5Ca_wave svg{fill:currentColor}";
|
|
15771
|
+
const tagId$7 = "@voicemesh/dsh-voice/AudioVisualizer.module.css";
|
|
15757
15772
|
if (typeof document !== "undefined" && document.querySelector("style[data-plugin-css=" + JSON.stringify(tagId$7) + "]") === null) {
|
|
15758
15773
|
const tag = document.createElement("style");
|
|
15759
|
-
tag.dataset.plugin = "@
|
|
15774
|
+
tag.dataset.plugin = "@voicemesh/dsh-voice";
|
|
15760
15775
|
tag.dataset.pluginCss = tagId$7;
|
|
15761
15776
|
tag.textContent = css$7;
|
|
15762
15777
|
document.head.appendChild(tag);
|
|
15763
15778
|
}
|
|
15764
|
-
var AudioVisualizer_module_css_default = { "wave": "
|
|
15779
|
+
var AudioVisualizer_module_css_default = { "wave": "owB5Ca_wave" };
|
|
15780
|
+
//#endregion
|
|
15781
|
+
//#region src/client/AudioVisualizer.tsx
|
|
15765
15782
|
/** Live audio waveform contributed to the message toolbar. */
|
|
15766
15783
|
/**
|
|
15767
15784
|
* Render the input meter without owning playback or capture.
|
|
@@ -15838,6 +15855,8 @@ registerProcessor('sts-capture', StsCapture);
|
|
|
15838
15855
|
})
|
|
15839
15856
|
});
|
|
15840
15857
|
}
|
|
15858
|
+
//#endregion
|
|
15859
|
+
//#region src/client/glyphs.tsx
|
|
15841
15860
|
/** A filled microphone. */
|
|
15842
15861
|
function GlyphMic({ size = 18 }) {
|
|
15843
15862
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("svg", {
|
|
@@ -16127,6 +16146,8 @@ registerProcessor('sts-capture', StsCapture);
|
|
|
16127
16146
|
default: return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(GlyphMic, { size: s });
|
|
16128
16147
|
}
|
|
16129
16148
|
}
|
|
16149
|
+
//#endregion
|
|
16150
|
+
//#region src/client/state.ts
|
|
16130
16151
|
/**
|
|
16131
16152
|
* Live voice runtime state for the DSH surface.
|
|
16132
16153
|
*
|
|
@@ -16245,36 +16266,40 @@ registerProcessor('sts-capture', StsCapture);
|
|
|
16245
16266
|
default: return "Voice off";
|
|
16246
16267
|
}
|
|
16247
16268
|
}
|
|
16248
|
-
|
|
16249
|
-
|
|
16269
|
+
//#endregion
|
|
16270
|
+
//#region \0dsh-css:/Users/hgp/DeepSeek/voicemesh-dsh-voice/.release/package-1792089472529/client-build/src/client/VoiceQuickControls.module.css.mjs
|
|
16271
|
+
const css$6 = ".mLzIFq_cluster{align-items:center;gap:2px;height:28px;display:inline-flex}.mLzIFq_action{width:26px;height:26px;color:var(--dsw-alias-label-secondary,#9aa4b2);cursor:pointer;background:0 0;border:none;border-radius:50%;justify-content:center;align-items:center;line-height:0;transition:background-color .15s,color .15s;display:inline-flex}.mLzIFq_action:hover:not(:disabled){background:var(--dsw-alias-control-overlay,#ffffff0f);color:var(--dsw-alias-label-primary,#e6e9ed)}.mLzIFq_action:disabled{opacity:.45;cursor:default}.mLzIFq_muted{color:var(--dsw-alias-state-error-primary,#c2544d)}.mLzIFq_timer{font-variant-numeric:tabular-nums;white-space:nowrap;color:var(--dsw-alias-label-secondary,#9aa4b2);padding:0 3px;font-size:11px;line-height:1}.mLzIFq_standby{white-space:nowrap;color:var(--dsw-alias-label-secondary,#9aa4b2);padding:0 3px;font-size:11px;line-height:1}.mLzIFq_tipAnchor{font:inherit;cursor:help;background:0 0;border:0}.mLzIFq_tipAnchor:focus-visible{outline:2px solid var(--dsw-alias-brand-primary,#3978f6);border-radius:6px}.mLzIFq_tipBubble{z-index:100;text-align:left;background:var(--dsw-alias-tooltip-bg,#2b2f36);width:max-content;max-width:min(360px,80vw);color:var(--dsw-static-neutral-bluish-00,#eef1f5);pointer-events:none;animation:mLzIFq_tooltip-in .15s var(--ds-ease-in-out,ease-in-out);border-radius:8px;gap:4px;padding:8px 10px;font-size:13px;line-height:20px;display:grid;position:fixed}.mLzIFq_tipRow{grid-template-columns:auto minmax(0,1fr);gap:12px;display:grid}.mLzIFq_tipLabel{opacity:.7}.mLzIFq_tipValue{overflow-wrap:anywhere}@keyframes mLzIFq_tooltip-in{0%{opacity:0}}@media (prefers-reduced-motion:reduce){.mLzIFq_tipBubble{animation:none}}.mLzIFq_standbyParked{animation:2.4s ease-in-out infinite mLzIFq_voice-standby-breathe}@keyframes mLzIFq_voice-standby-breathe{0%,to{color:var(--dsw-alias-label-secondary,#9aa4b2)}50%{color:var(--dsw-alias-button-info-fill,#4176e6)}}@supports ((-webkit-background-clip:text) or (background-clip:text)){.mLzIFq_standbyParked{color:var(--dsw-alias-button-info-fill,#4176e6);background-image:linear-gradient(90deg, var(--dsw-alias-label-secondary,#9aa4b2) 0%, var(--dsw-alias-button-info-fill,#4176e6) 25%, var(--dsw-alias-label-secondary,#9aa4b2) 50%, var(--dsw-alias-button-info-fill,#4176e6) 75%, var(--dsw-alias-label-secondary,#9aa4b2) 100%);-webkit-text-fill-color:transparent;background-repeat:no-repeat;background-size:200% 100%;-webkit-background-clip:text;background-clip:text;animation:3.2s linear infinite mLzIFq_voice-standby-sheen}@keyframes mLzIFq_voice-standby-sheen{0%{background-position:0 0}to{background-position:100% 0}}}@media (prefers-reduced-motion:reduce){.mLzIFq_standbyParked{color:var(--dsw-alias-button-info-fill,#4176e6);-webkit-text-fill-color:var(--dsw-alias-button-info-fill,#4176e6);background-image:none;animation:none}}.mLzIFq_failure{background:color-mix(in srgb, var(--dsw-alias-state-error-primary,#c2544d) 14%, transparent);max-width:260px;height:24px;color:var(--dsw-alias-state-error-primary,#c2544d);border-radius:12px;align-items:center;gap:2px;padding-left:8px;font-size:11px;line-height:1;display:inline-flex}.mLzIFq_failureText{white-space:nowrap;text-overflow:ellipsis;user-select:text;overflow:hidden}.mLzIFq_failure .mLzIFq_action{color:inherit;width:22px;height:22px}.mLzIFq_notice{background:color-mix(in srgb, var(--dsw-alias-state-warn-primary,#f2a33c) 16%, transparent);max-width:260px;height:24px;color:var(--dsw-alias-state-warn-primary,#f2a33c);border-radius:12px;align-items:center;gap:2px;padding-left:8px;font-size:11px;line-height:1;animation:4s linear forwards mLzIFq_voice-notice-fade;display:inline-flex}.mLzIFq_noticeText{white-space:nowrap;text-overflow:ellipsis;user-select:text;overflow:hidden}.mLzIFq_notice .mLzIFq_action{color:inherit;width:22px;height:22px}@keyframes mLzIFq_voice-notice-fade{0%,70%{opacity:1}to{opacity:0}}";
|
|
16272
|
+
const tagId$6 = "@voicemesh/dsh-voice/VoiceQuickControls.module.css";
|
|
16250
16273
|
if (typeof document !== "undefined" && document.querySelector("style[data-plugin-css=" + JSON.stringify(tagId$6) + "]") === null) {
|
|
16251
16274
|
const tag = document.createElement("style");
|
|
16252
|
-
tag.dataset.plugin = "@
|
|
16275
|
+
tag.dataset.plugin = "@voicemesh/dsh-voice";
|
|
16253
16276
|
tag.dataset.pluginCss = tagId$6;
|
|
16254
16277
|
tag.textContent = css$6;
|
|
16255
16278
|
document.head.appendChild(tag);
|
|
16256
16279
|
}
|
|
16257
16280
|
var VoiceQuickControls_module_css_default = {
|
|
16258
|
-
"action": "
|
|
16259
|
-
"cluster": "
|
|
16260
|
-
"failure": "
|
|
16261
|
-
"failureText": "
|
|
16262
|
-
"muted": "
|
|
16263
|
-
"notice": "
|
|
16264
|
-
"noticeText": "
|
|
16265
|
-
"standby": "
|
|
16266
|
-
"standbyParked": "
|
|
16267
|
-
"timer": "
|
|
16268
|
-
"tipAnchor": "
|
|
16269
|
-
"tipBubble": "
|
|
16270
|
-
"tipLabel": "
|
|
16271
|
-
"tipRow": "
|
|
16272
|
-
"tipValue": "
|
|
16273
|
-
"tooltip-in": "
|
|
16274
|
-
"voice-notice-fade": "
|
|
16275
|
-
"voice-standby-breathe": "
|
|
16276
|
-
"voice-standby-sheen": "
|
|
16281
|
+
"action": "mLzIFq_action",
|
|
16282
|
+
"cluster": "mLzIFq_cluster",
|
|
16283
|
+
"failure": "mLzIFq_failure",
|
|
16284
|
+
"failureText": "mLzIFq_failureText",
|
|
16285
|
+
"muted": "mLzIFq_muted",
|
|
16286
|
+
"notice": "mLzIFq_notice",
|
|
16287
|
+
"noticeText": "mLzIFq_noticeText",
|
|
16288
|
+
"standby": "mLzIFq_standby",
|
|
16289
|
+
"standbyParked": "mLzIFq_standbyParked",
|
|
16290
|
+
"timer": "mLzIFq_timer",
|
|
16291
|
+
"tipAnchor": "mLzIFq_tipAnchor",
|
|
16292
|
+
"tipBubble": "mLzIFq_tipBubble",
|
|
16293
|
+
"tipLabel": "mLzIFq_tipLabel",
|
|
16294
|
+
"tipRow": "mLzIFq_tipRow",
|
|
16295
|
+
"tipValue": "mLzIFq_tipValue",
|
|
16296
|
+
"tooltip-in": "mLzIFq_tooltip-in",
|
|
16297
|
+
"voice-notice-fade": "mLzIFq_voice-notice-fade",
|
|
16298
|
+
"voice-standby-breathe": "mLzIFq_voice-standby-breathe",
|
|
16299
|
+
"voice-standby-sheen": "mLzIFq_voice-standby-sheen"
|
|
16277
16300
|
};
|
|
16301
|
+
//#endregion
|
|
16302
|
+
//#region src/client/SelectionTip.tsx
|
|
16278
16303
|
/** Composer voice indicator that spells out the selection on hover, focus, or tap. */
|
|
16279
16304
|
/** Gap kept between the bubble and the viewport edges. */
|
|
16280
16305
|
const EDGE_MARGIN = 12;
|
|
@@ -16417,6 +16442,8 @@ registerProcessor('sts-capture', StsCapture);
|
|
|
16417
16442
|
}, row.label))
|
|
16418
16443
|
})] });
|
|
16419
16444
|
}
|
|
16445
|
+
//#endregion
|
|
16446
|
+
//#region src/client/sts-settings.ts
|
|
16420
16447
|
/** Select provider-owned WebRTC event translation. @param provider - configured provider identity. @returns connection-local adapter. */
|
|
16421
16448
|
function createStsWebRtcAdapter(provider, config) {
|
|
16422
16449
|
if (provider === "openai-live") return {
|
|
@@ -16473,6 +16500,8 @@ registerProcessor('sts-capture', StsCapture);
|
|
|
16473
16500
|
outputSampleRate: 24e3
|
|
16474
16501
|
};
|
|
16475
16502
|
}
|
|
16503
|
+
//#endregion
|
|
16504
|
+
//#region src/client/voice-catalog.ts
|
|
16476
16505
|
const object$1 = (value) => typeof value === "object" && value !== null;
|
|
16477
16506
|
const strings = (value) => Array.isArray(value) && value.every((item) => typeof item === "string");
|
|
16478
16507
|
const isVoice = (value) => object$1(value) && typeof value.id === "string" && value.id !== "" && typeof value.name === "string" && typeof value.description === "string" && strings(value.languages) && typeof value.gender === "string" && typeof value.region === "string";
|
|
@@ -16532,6 +16561,8 @@ registerProcessor('sts-capture', StsCapture);
|
|
|
16532
16561
|
function voiceDisplayName(name) {
|
|
16533
16562
|
return name.replace(/(^|[\s_-])(\p{L})/gu, (_match, separator, letter) => separator + letter.toUpperCase());
|
|
16534
16563
|
}
|
|
16564
|
+
//#endregion
|
|
16565
|
+
//#region src/client/locales.ts
|
|
16535
16566
|
/** `voice` namespace dictionaries. */
|
|
16536
16567
|
/** Simplified Chinese dictionary (the key-set source of truth). */
|
|
16537
16568
|
const zh = {
|
|
@@ -17117,6 +17148,8 @@ registerProcessor('sts-capture', StsCapture);
|
|
|
17117
17148
|
const key = THINKING_LEVEL_KEYS[level];
|
|
17118
17149
|
return key === void 0 ? level : t(key);
|
|
17119
17150
|
}
|
|
17151
|
+
//#endregion
|
|
17152
|
+
//#region src/client/VoiceQuickControls.tsx
|
|
17120
17153
|
/**
|
|
17121
17154
|
* VoiceQuickControls: the live voice clock, manual pause, and mute beside the
|
|
17122
17155
|
* optional waveform.
|
|
@@ -17339,6 +17372,8 @@ registerProcessor('sts-capture', StsCapture);
|
|
|
17339
17372
|
]
|
|
17340
17373
|
});
|
|
17341
17374
|
}
|
|
17375
|
+
//#endregion
|
|
17376
|
+
//#region ../../../../../Projects/voicemesh-composer/node_modules/zod/v4/core/util.js
|
|
17342
17377
|
function getEnumValues(entries) {
|
|
17343
17378
|
const numericValues = Object.values(entries).filter((v) => typeof v === "number");
|
|
17344
17379
|
return Object.entries(entries).filter(([k, _]) => numericValues.indexOf(+k) === -1).map(([_, v]) => v);
|
|
@@ -17856,6 +17891,8 @@ registerProcessor('sts-capture', StsCapture);
|
|
|
17856
17891
|
fn[CONSTANT_CATCH] = true;
|
|
17857
17892
|
return fn;
|
|
17858
17893
|
}
|
|
17894
|
+
//#endregion
|
|
17895
|
+
//#region ../../../../../Projects/voicemesh-composer/node_modules/zod/v4/core/core.js
|
|
17859
17896
|
var _a$1;
|
|
17860
17897
|
const _zodDesc = {
|
|
17861
17898
|
value: void 0,
|
|
@@ -17961,6 +17998,8 @@ registerProcessor('sts-capture', StsCapture);
|
|
|
17961
17998
|
if (newConfig) Object.assign(globalConfig, newConfig);
|
|
17962
17999
|
return globalConfig;
|
|
17963
18000
|
}
|
|
18001
|
+
//#endregion
|
|
18002
|
+
//#region ../../../../../Projects/voicemesh-composer/node_modules/zod/v4/core/errors.js
|
|
17964
18003
|
function _getMessage() {
|
|
17965
18004
|
const internals = this._zod;
|
|
17966
18005
|
internals.message ?? (internals.message = JSON.stringify(internals.def, jsonStringifyReplacer, 2));
|
|
@@ -18073,6 +18112,8 @@ registerProcessor('sts-capture', StsCapture);
|
|
|
18073
18112
|
processError(error);
|
|
18074
18113
|
return fieldErrors;
|
|
18075
18114
|
}
|
|
18115
|
+
//#endregion
|
|
18116
|
+
//#region ../../../../../Projects/voicemesh-composer/node_modules/zod/v4/core/parse.js
|
|
18076
18117
|
function finalizeParams(callee, params) {
|
|
18077
18118
|
return {
|
|
18078
18119
|
callee: params?.callee ?? callee,
|
|
@@ -18272,6 +18313,8 @@ registerProcessor('sts-capture', StsCapture);
|
|
|
18272
18313
|
const _safeDecodeAsync = (_Err) => async (schema, value, _ctx) => {
|
|
18273
18314
|
return _safeParseAsync(_Err)(schema, value, _ctx);
|
|
18274
18315
|
};
|
|
18316
|
+
//#endregion
|
|
18317
|
+
//#region ../../../../../Projects/voicemesh-composer/node_modules/zod/v4/core/regexes.js
|
|
18275
18318
|
/**
|
|
18276
18319
|
* @deprecated CUID v1 is deprecated by its authors due to information leakage
|
|
18277
18320
|
* (timestamps embedded in the id). Use {@link cuid2} instead.
|
|
@@ -18340,6 +18383,8 @@ registerProcessor('sts-capture', StsCapture);
|
|
|
18340
18383
|
const number$1 = /^-?\d+(?:\.\d+)?$/;
|
|
18341
18384
|
const lowercase = /^[^A-Z]*$/;
|
|
18342
18385
|
const uppercase = /^[^a-z]*$/;
|
|
18386
|
+
//#endregion
|
|
18387
|
+
//#region ../../../../../Projects/voicemesh-composer/node_modules/zod/v4/core/checks.js
|
|
18343
18388
|
const $ZodCheck = /*@__PURE__*/ $constructor("$ZodCheck", (inst, def) => {
|
|
18344
18389
|
var _a;
|
|
18345
18390
|
inst._zod ?? (inst._zod = {});
|
|
@@ -18634,6 +18679,8 @@ registerProcessor('sts-capture', StsCapture);
|
|
|
18634
18679
|
payload.value = def.tx(payload.value);
|
|
18635
18680
|
};
|
|
18636
18681
|
});
|
|
18682
|
+
//#endregion
|
|
18683
|
+
//#region ../../../../../Projects/voicemesh-composer/node_modules/zod/v4/core/doc.js
|
|
18637
18684
|
var Doc = class {
|
|
18638
18685
|
constructor(args = [], closed = {}) {
|
|
18639
18686
|
this.content = [];
|
|
@@ -18666,11 +18713,15 @@ registerProcessor('sts-capture', StsCapture);
|
|
|
18666
18713
|
return new F(...Object.keys(this.closed), `return function (${this.args.join(", ")}) {\n${content.join("\n")}\n};`)(...Object.values(this.closed));
|
|
18667
18714
|
}
|
|
18668
18715
|
};
|
|
18716
|
+
//#endregion
|
|
18717
|
+
//#region ../../../../../Projects/voicemesh-composer/node_modules/zod/v4/core/versions.js
|
|
18669
18718
|
const version = {
|
|
18670
18719
|
major: 4,
|
|
18671
18720
|
minor: 6,
|
|
18672
18721
|
patch: 2
|
|
18673
18722
|
};
|
|
18723
|
+
//#endregion
|
|
18724
|
+
//#region ../../../../../Projects/voicemesh-composer/node_modules/zod/v4/core/schemas.js
|
|
18674
18725
|
const $ZodType = /*@__PURE__*/ $constructor("$ZodType", (inst, def) => {
|
|
18675
18726
|
var _a;
|
|
18676
18727
|
inst ?? (inst = {});
|
|
@@ -19853,6 +19904,8 @@ registerProcessor('sts-capture', StsCapture);
|
|
|
19853
19904
|
payload.issues.push(issue(_iss));
|
|
19854
19905
|
}
|
|
19855
19906
|
}
|
|
19907
|
+
//#endregion
|
|
19908
|
+
//#region ../../../../../Projects/voicemesh-composer/node_modules/zod/v4/core/memoizer.js
|
|
19856
19909
|
var $ZodCyclicError = class extends Error {
|
|
19857
19910
|
constructor() {
|
|
19858
19911
|
super(`Cannot parse a reference cycle that closes through a transform`);
|
|
@@ -20107,6 +20160,8 @@ registerProcessor('sts-capture', StsCapture);
|
|
|
20107
20160
|
const backEdges = ctx[STATE]?.backEdges;
|
|
20108
20161
|
return backEdges !== void 0 && isRef(value) && backEdges.has(value);
|
|
20109
20162
|
}
|
|
20163
|
+
//#endregion
|
|
20164
|
+
//#region ../../../../../Projects/voicemesh-composer/node_modules/zod/v4/locales/en.js
|
|
20110
20165
|
const error = () => {
|
|
20111
20166
|
const Sizable = {
|
|
20112
20167
|
string: {
|
|
@@ -20212,6 +20267,8 @@ registerProcessor('sts-capture', StsCapture);
|
|
|
20212
20267
|
function en_default() {
|
|
20213
20268
|
return { localeError: error() };
|
|
20214
20269
|
}
|
|
20270
|
+
//#endregion
|
|
20271
|
+
//#region ../../../../../Projects/voicemesh-composer/node_modules/zod/v4/core/registries.js
|
|
20215
20272
|
var _a;
|
|
20216
20273
|
var $ZodRegistry = class {
|
|
20217
20274
|
constructor() {
|
|
@@ -20257,6 +20314,8 @@ registerProcessor('sts-capture', StsCapture);
|
|
|
20257
20314
|
}
|
|
20258
20315
|
(_a = globalThis).__zod_globalRegistry ?? (_a.__zod_globalRegistry = registry());
|
|
20259
20316
|
const globalRegistry = globalThis.__zod_globalRegistry;
|
|
20317
|
+
//#endregion
|
|
20318
|
+
//#region ../../../../../Projects/voicemesh-composer/node_modules/zod/v4/core/api.js
|
|
20260
20319
|
// @__NO_SIDE_EFFECTS__
|
|
20261
20320
|
function _string(Class, params) {
|
|
20262
20321
|
return new Class({
|
|
@@ -20753,6 +20812,8 @@ registerProcessor('sts-capture', StsCapture);
|
|
|
20753
20812
|
ch._zod.check = fn;
|
|
20754
20813
|
return ch;
|
|
20755
20814
|
}
|
|
20815
|
+
//#endregion
|
|
20816
|
+
//#region ../../../../../Projects/voicemesh-composer/node_modules/zod/v4/core/to-json-schema.js
|
|
20756
20817
|
function assignProps(target, ...sources) {
|
|
20757
20818
|
for (const source of sources) for (const key of Reflect.ownKeys(source)) if (Object.prototype.propertyIsEnumerable.call(source, key)) assignProp(target, key, source[key]);
|
|
20758
20819
|
return target;
|
|
@@ -21193,6 +21254,8 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
21193
21254
|
extractDefs(ctx, schema);
|
|
21194
21255
|
return finalize(ctx, schema);
|
|
21195
21256
|
};
|
|
21257
|
+
//#endregion
|
|
21258
|
+
//#region ../../../../../Projects/voicemesh-composer/node_modules/zod/v4/core/json-schema-processors.js
|
|
21196
21259
|
const narrowMin = (agg, key, value) => {
|
|
21197
21260
|
if (agg[key] === void 0 || value > agg[key]) agg[key] = value;
|
|
21198
21261
|
};
|
|
@@ -21508,6 +21571,8 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
21508
21571
|
const seen = ctx.seen.get(schema);
|
|
21509
21572
|
seen.ref = def.innerType;
|
|
21510
21573
|
};
|
|
21574
|
+
//#endregion
|
|
21575
|
+
//#region ../../../../../Projects/voicemesh-composer/node_modules/zod/v4/classic/errors.js
|
|
21511
21576
|
const _installedErrorProtos = /* @__PURE__ */ new WeakSet([Object.prototype, Error.prototype]);
|
|
21512
21577
|
function _lazyMethod(proto, key, make) {
|
|
21513
21578
|
Object.defineProperty(proto, key, {
|
|
@@ -21556,6 +21621,8 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
21556
21621
|
});
|
|
21557
21622
|
};
|
|
21558
21623
|
const ZodRealError = /*@__PURE__*/ $constructor("ZodError", initializer, void 0, { Parent: Error });
|
|
21624
|
+
//#endregion
|
|
21625
|
+
//#region ../../../../../Projects/voicemesh-composer/node_modules/zod/v4/classic/parse.js
|
|
21559
21626
|
const parse = /* @__PURE__ */ _parse(ZodRealError);
|
|
21560
21627
|
const parseAsync = /* @__PURE__ */ _parseAsync(ZodRealError);
|
|
21561
21628
|
const safeParse = /* @__PURE__ */ _safeParse(ZodRealError);
|
|
@@ -21568,6 +21635,8 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
21568
21635
|
const safeDecode = /* @__PURE__ */ _safeDecode(ZodRealError);
|
|
21569
21636
|
const safeEncodeAsync = /* @__PURE__ */ _safeEncodeAsync(ZodRealError);
|
|
21570
21637
|
const safeDecodeAsync = /* @__PURE__ */ _safeDecodeAsync(ZodRealError);
|
|
21638
|
+
//#endregion
|
|
21639
|
+
//#region ../../../../../Projects/voicemesh-composer/node_modules/zod/v4/classic/schemas.js
|
|
21571
21640
|
function _ensureDefaultLocale() {
|
|
21572
21641
|
if (!globalConfig.localeError) config(en_default());
|
|
21573
21642
|
}
|
|
@@ -22456,6 +22525,8 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
22456
22525
|
} catch {}
|
|
22457
22526
|
};
|
|
22458
22527
|
}
|
|
22528
|
+
//#endregion
|
|
22529
|
+
//#region src/client/voice-preview-cache.ts
|
|
22459
22530
|
/** Browser CacheStorage adapter for reusable preview caching. */
|
|
22460
22531
|
/**
|
|
22461
22532
|
* Persist complete provider previews across page reloads.
|
|
@@ -22482,6 +22553,8 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
22482
22553
|
voice
|
|
22483
22554
|
]));
|
|
22484
22555
|
}
|
|
22556
|
+
//#endregion
|
|
22557
|
+
//#region src/client/host-address.ts
|
|
22485
22558
|
/** The address of the host this page talks to, for routes that must not assume a shared origin. */
|
|
22486
22559
|
/**
|
|
22487
22560
|
* Read the host address the runtime hands this page.
|
|
@@ -22507,6 +22580,8 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
22507
22580
|
const base = hostBaseUrl();
|
|
22508
22581
|
return `${base.protocol === "https:" ? "wss" : "ws"}://${base.host}${route}${query}`;
|
|
22509
22582
|
}
|
|
22583
|
+
//#endregion
|
|
22584
|
+
//#region src/client/voice-preview-stream.ts
|
|
22510
22585
|
/** Incremental preview transport; authentication uses the existing host session. */
|
|
22511
22586
|
/**
|
|
22512
22587
|
* Deliver audio before generation finishes and close the preview when cancelled.
|
|
@@ -22555,6 +22630,8 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
22555
22630
|
socket.close();
|
|
22556
22631
|
}
|
|
22557
22632
|
}
|
|
22633
|
+
//#endregion
|
|
22634
|
+
//#region src/client/voice-credentials.ts
|
|
22558
22635
|
/** Remove old persisted secrets before the config store rehydrates.
|
|
22559
22636
|
* @returns transient migration inputs; callers must discard each key after successful upload.
|
|
22560
22637
|
*/
|
|
@@ -22607,6 +22684,8 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
22607
22684
|
})
|
|
22608
22685
|
});
|
|
22609
22686
|
}
|
|
22687
|
+
//#endregion
|
|
22688
|
+
//#region src/client/voice-credential-readiness.ts
|
|
22610
22689
|
/** Return every missing host credential the active voice mode will use. */
|
|
22611
22690
|
function missingVoiceCredentials(config) {
|
|
22612
22691
|
if (config.voiceMode === "sts") {
|
|
@@ -22626,6 +22705,8 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
22626
22705
|
if (config.conversationalProvider === "custom" && config.conversationalBaseUrl !== "" && config.conversationalCredential === "") missing.add("conversational");
|
|
22627
22706
|
return [...missing];
|
|
22628
22707
|
}
|
|
22708
|
+
//#endregion
|
|
22709
|
+
//#region src/client/sts-model.ts
|
|
22629
22710
|
/** Narrow one thinking pair without trusting the wire. */
|
|
22630
22711
|
function isThinkingLevels(value) {
|
|
22631
22712
|
return typeof value === "object" && value !== null && typeof value.off === "string" && typeof value.on === "string";
|
|
@@ -22649,6 +22730,8 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
22649
22730
|
thinking: isThinkingLevels(listing.thinking) ? listing.thinking : null
|
|
22650
22731
|
};
|
|
22651
22732
|
}
|
|
22733
|
+
//#endregion
|
|
22734
|
+
//#region src/client/voice-transcript.ts
|
|
22652
22735
|
/** The row type stays a `string` so it can be compared against the typed event union. */
|
|
22653
22736
|
const TRANSCRIPT_ROW = "voice/sts/transcript";
|
|
22654
22737
|
/**
|
|
@@ -22730,21 +22813,25 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
22730
22813
|
};
|
|
22731
22814
|
}
|
|
22732
22815
|
};
|
|
22733
|
-
|
|
22734
|
-
|
|
22816
|
+
//#endregion
|
|
22817
|
+
//#region \0dsh-css:/Users/hgp/DeepSeek/voicemesh-dsh-voice/.release/package-1792089472529/client-build/src/client/VoiceTranscriptNodeView.module.css.mjs
|
|
22818
|
+
const css$5 = ".kO5VAW_userRow{justify-content:flex-end;display:flex}.kO5VAW_bubble{max-width:min(calc(var(--dsh-chat-content-width,748px) * .702), 82%);background:var(--dsw-specific-bubble);border-radius:22px;padding:10px 16px}.kO5VAW_bubble,.kO5VAW_speech{font-size:var(--dsh-content-font-size,14px);line-height:calc(22px + var(--dsh-content-font-delta,0px));color:var(--dsw-alias-label-primary);white-space:pre-wrap;overflow-wrap:anywhere}.kO5VAW_assistantRow{min-width:0}.kO5VAW_speech{white-space:normal}";
|
|
22819
|
+
const tagId$5 = "@voicemesh/dsh-voice/VoiceTranscriptNodeView.module.css";
|
|
22735
22820
|
if (typeof document !== "undefined" && document.querySelector("style[data-plugin-css=" + JSON.stringify(tagId$5) + "]") === null) {
|
|
22736
22821
|
const tag = document.createElement("style");
|
|
22737
|
-
tag.dataset.plugin = "@
|
|
22822
|
+
tag.dataset.plugin = "@voicemesh/dsh-voice";
|
|
22738
22823
|
tag.dataset.pluginCss = tagId$5;
|
|
22739
22824
|
tag.textContent = css$5;
|
|
22740
22825
|
document.head.appendChild(tag);
|
|
22741
22826
|
}
|
|
22742
22827
|
var VoiceTranscriptNodeView_module_css_default = {
|
|
22743
|
-
"assistantRow": "
|
|
22744
|
-
"bubble": "
|
|
22745
|
-
"speech": "
|
|
22746
|
-
"userRow": "
|
|
22828
|
+
"assistantRow": "kO5VAW_assistantRow",
|
|
22829
|
+
"bubble": "kO5VAW_bubble",
|
|
22830
|
+
"speech": "kO5VAW_speech",
|
|
22831
|
+
"userRow": "kO5VAW_userRow"
|
|
22747
22832
|
};
|
|
22833
|
+
//#endregion
|
|
22834
|
+
//#region src/client/VoiceTranscriptNodeView.tsx
|
|
22748
22835
|
/** Plain spoken text rendered by the optional voice/history integration. */
|
|
22749
22836
|
/** Render one live or saved speech bubble using the conversation theme. */
|
|
22750
22837
|
const VoiceTranscriptNodeView = (0, react.memo)(function VoiceTranscriptNodeView({ node }) {
|
|
@@ -22777,26 +22864,30 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
22777
22864
|
})
|
|
22778
22865
|
});
|
|
22779
22866
|
});
|
|
22780
|
-
|
|
22781
|
-
|
|
22867
|
+
//#endregion
|
|
22868
|
+
//#region \0dsh-css:/Users/hgp/DeepSeek/voicemesh-dsh-voice/.release/package-1792089472529/client-build/src/client/MicDock.module.css.mjs
|
|
22869
|
+
const css$4 = ".b0NYhG_controls{flex:none;width:34px;height:34px;position:relative;transform:translateY(-2px)}.b0NYhG_overlay{z-index:1;position:absolute}.b0NYhG_control{box-sizing:border-box;corner-shape:round;background:color-mix(in srgb, var(--dsw-alias-bg-layer-3,#2a2f36) 82%, black);--voice-wave-1:#4a6cbb;--voice-wave-2:#4260aa;--voice-wave-3:#e9be62;--voice-wave-4:#324a88;--voice-wave-5:#2a3f77;width:34px;height:34px;color:var(--dsw-alias-label-primary,#e6e9ed);cursor:pointer;border:0;border-radius:50%;justify-content:center;align-items:center;padding:0;display:inline-flex}.b0NYhG_control:focus-visible{outline-offset:1px;outline:2px solid}.b0NYhG_control.b0NYhG_lit{background:var(--voice-fill)}.b0NYhG_control.b0NYhG_lit:hover{background:var(--voice-hover)}body[data-ds-dark-theme] .b0NYhG_control:not(.b0NYhG_lit){background:#000}body[data-ds-dark-theme] .b0NYhG_control{--voice-wave-1:#c3d4ee;--voice-wave-2:#aec8f0;--voice-wave-3:#e9be62;--voice-wave-4:#80a9ed;--voice-wave-5:#6395e7}.b0NYhG_connecting .b0NYhG_glyph svg rect{transform-box:fill-box;transform-origin:50%;animation:.9s ease-in-out infinite b0NYhG_connecting-bars}.b0NYhG_connecting .b0NYhG_glyph svg rect:nth-child(2){animation-delay:-720ms}.b0NYhG_connecting .b0NYhG_glyph svg rect:nth-child(3){animation-delay:-540ms}.b0NYhG_connecting .b0NYhG_glyph svg rect:nth-child(4){animation-delay:-360ms}.b0NYhG_connecting .b0NYhG_glyph svg rect:nth-child(5){animation-delay:-180ms}@keyframes b0NYhG_connecting-bars{0%,to{opacity:.55;transform:scaleY(.35)}50%{opacity:1;transform:scaleY(1)}}.b0NYhG_glyph{justify-content:center;align-items:center;line-height:0;display:inline-flex}.b0NYhG_control:hover .b0NYhG_glyph,.b0NYhG_control:focus-visible .b0NYhG_glyph{animation:.42s cubic-bezier(.22,.9,.3,1) b0NYhG_voice-icon-nudge}@keyframes b0NYhG_voice-icon-nudge{0%{transform:scale(1)}45%{transform:scale(1.16)}to{transform:scale(1)}}.b0NYhG_hint{z-index:6;border:1px solid var(--dsw-alias-border-l2,#ffffff1f);corner-shape:round;background:var(--dsw-alias-bg-layer-2,#1c2128);color:var(--dsw-alias-label-primary,#e6e9ed);white-space:normal;overflow-wrap:anywhere;pointer-events:none;visibility:hidden;opacity:0;border-radius:8px;width:max-content;max-width:min(320px,100vw - 32px);padding:5px 10px;font-size:12px;line-height:1.4;transition:opacity 80ms,visibility 80ms;position:absolute;bottom:calc(100% + 10px);right:0}.b0NYhG_control:hover+.b0NYhG_hint,.b0NYhG_control:focus-visible+.b0NYhG_hint{visibility:visible;opacity:1;transition-delay:.1s}@media (prefers-reduced-motion:reduce){.b0NYhG_connecting .b0NYhG_glyph svg rect,.b0NYhG_control:hover .b0NYhG_glyph,.b0NYhG_control:focus-visible .b0NYhG_glyph{animation:none}}";
|
|
22870
|
+
const tagId$4 = "@voicemesh/dsh-voice/MicDock.module.css";
|
|
22782
22871
|
if (typeof document !== "undefined" && document.querySelector("style[data-plugin-css=" + JSON.stringify(tagId$4) + "]") === null) {
|
|
22783
22872
|
const tag = document.createElement("style");
|
|
22784
|
-
tag.dataset.plugin = "@
|
|
22873
|
+
tag.dataset.plugin = "@voicemesh/dsh-voice";
|
|
22785
22874
|
tag.dataset.pluginCss = tagId$4;
|
|
22786
22875
|
tag.textContent = css$4;
|
|
22787
22876
|
document.head.appendChild(tag);
|
|
22788
22877
|
}
|
|
22789
22878
|
var MicDock_module_css_default = {
|
|
22790
|
-
"connecting": "
|
|
22791
|
-
"connecting-bars": "
|
|
22792
|
-
"control": "
|
|
22793
|
-
"controls": "
|
|
22794
|
-
"glyph": "
|
|
22795
|
-
"hint": "
|
|
22796
|
-
"lit": "
|
|
22797
|
-
"overlay": "
|
|
22798
|
-
"voice-icon-nudge": "
|
|
22879
|
+
"connecting": "b0NYhG_connecting",
|
|
22880
|
+
"connecting-bars": "b0NYhG_connecting-bars",
|
|
22881
|
+
"control": "b0NYhG_control",
|
|
22882
|
+
"controls": "b0NYhG_controls",
|
|
22883
|
+
"glyph": "b0NYhG_glyph",
|
|
22884
|
+
"hint": "b0NYhG_hint",
|
|
22885
|
+
"lit": "b0NYhG_lit",
|
|
22886
|
+
"overlay": "b0NYhG_overlay",
|
|
22887
|
+
"voice-icon-nudge": "b0NYhG_voice-icon-nudge"
|
|
22799
22888
|
};
|
|
22889
|
+
//#endregion
|
|
22890
|
+
//#region src/client/MicDock.tsx
|
|
22800
22891
|
/**
|
|
22801
22892
|
* MicDock: the voice control, inside the message area.
|
|
22802
22893
|
*
|
|
@@ -23043,26 +23134,30 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
23043
23134
|
}, [sessionId, config.voiceMode]);
|
|
23044
23135
|
return null;
|
|
23045
23136
|
}
|
|
23046
|
-
|
|
23047
|
-
|
|
23137
|
+
//#endregion
|
|
23138
|
+
//#region \0dsh-css:/Users/hgp/DeepSeek/voicemesh-dsh-voice/.release/package-1792089472529/client-build/src/client/VoiceOrb.module.css.mjs
|
|
23139
|
+
const css$3 = ".RZlVia_frame{place-items:center;min-height:104px;padding:4px 0 10px;display:grid}.RZlVia_resume{cursor:pointer;background:0 0;border:0;border-radius:50%;place-items:center;padding:0;display:grid}.RZlVia_resume:focus-visible{outline-offset:4px;outline:2px solid #c89572}.RZlVia_orb{--voice-orb-scale:1;--voice-orb-shadow:22%;--voice-orb-cloud-growth:0;corner-shape:round;isolation:isolate;width:96px;height:96px;box-shadow:0 8px 32px color-mix(in srgb, #7c8fff var(--voice-orb-shadow), transparent);transform:scale(var(--voice-orb-scale));background-color:#0000;background-image:radial-gradient(circle at 78% 17%,#e5f0ff94,#0000 37%),linear-gradient(145deg,#6384eb 0%,#84adf4 47%,#b3d5ff 100%);background-position:0 0,0 0;background-repeat:repeat,repeat;background-size:145% 145%;background-attachment:scroll,scroll;background-origin:padding-box,padding-box;background-clip:border-box,border-box;border-radius:50%;place-items:center;transition:transform .12s ease-out,box-shadow .16s ease-out;animation:6.2s ease-in-out infinite alternate RZlVia_orb-sky;display:grid;position:relative;overflow:hidden}.RZlVia_orb:before{content:\"\";filter:blur(10px);background:radial-gradient(#304ed3ad,#4265e447 48%,#0000 74%);border-radius:50%;width:105%;height:90%;animation:5.7s ease-in-out infinite RZlVia_sky-contrast;position:absolute}.RZlVia_cloud,.RZlVia_cloud:before,.RZlVia_cloud:after{filter:blur(7px);content:\"\";background:radial-gradient(#fffffff5,#e0efffe0 42%,#a3c5f738 76%,#0000 88%);border-radius:50%;width:78%;height:52%;position:absolute}.RZlVia_cloud{opacity:.88;animation:4.7s ease-in-out infinite alternate RZlVia_cloud-ambient;transform:translate(-11%,19%)rotate(-14deg)}.RZlVia_cloud:before{opacity:.86;animation:3.9s ease-in-out infinite alternate RZlVia_cloud-ambient-front;transform:translate(45%,-70%)scale(.8)}.RZlVia_cloud:after{opacity:.78;animation:5.2s ease-in-out infinite alternate-reverse RZlVia_cloud-ambient-back;transform:translate(-50%,-48%)scale(.68)}.RZlVia_orb[data-standby]{background:radial-gradient(circle at 78% 17%,#ffd8b14d,#0000 37%),linear-gradient(145deg,#665d70 0%,#987565 52%,#c89572 100%);box-shadow:0 8px 28px #855b4540}.RZlVia_orb[data-standby]:before{visibility:hidden}.RZlVia_orb[data-standby] .RZlVia_cloud,.RZlVia_orb[data-standby] .RZlVia_cloud:before,.RZlVia_orb[data-standby] .RZlVia_cloud:after{background:radial-gradient(#f5ded3d1,#ae979d8f 48%,#0000 88%)}@keyframes RZlVia_cloud-ambient{0%{transform:translate(-30%, 9%) rotate(-19deg) scale(calc(.76 + var(--voice-orb-cloud-growth)));filter:blur(8px)brightness(.93)}to{transform:translate(13%, 28%) rotate(-5deg) scale(calc(1.16 + var(--voice-orb-cloud-growth)));filter:blur(6px)brightness(1.07)}}@keyframes RZlVia_cloud-ambient-front{0%{transform:translate(26%, -80%) rotate(-10deg) scale(calc(.58 + var(--voice-orb-cloud-growth)));filter:blur(8px)hue-rotate(-12deg)}to{transform:translate(69%, -54%) rotate(8deg) scale(calc(1.04 + var(--voice-orb-cloud-growth)));filter:blur(5px)hue-rotate(12deg)}}@keyframes RZlVia_cloud-ambient-back{0%{transform:translate(-75%, -30%) rotate(9deg) scale(calc(.52 + var(--voice-orb-cloud-growth)));filter:blur(9px)brightness(.89)}to{transform:translate(-24%, -63%) rotate(-8deg) scale(calc(.91 + var(--voice-orb-cloud-growth)));filter:blur(6px)brightness(1.09)}}@keyframes RZlVia_sky-contrast{0%,to{opacity:.16;transform:translate(-24%,-28%)rotate(-18deg)scale(.78)}50%{opacity:.72;transform:translate(22%,-4%)rotate(22deg)scale(1.12)}}@keyframes RZlVia_orb-sky{0%{filter:hue-rotate(-6deg)saturate(.98);background-position:12% 20%}to{filter:hue-rotate(9deg)saturate(1.1);background-position:88% 76%}}@media (prefers-reduced-motion:reduce){.RZlVia_orb{transition:none;animation:none;transform:none;box-shadow:0 8px 32px #7c8fff38}.RZlVia_cloud,.RZlVia_cloud:before,.RZlVia_cloud:after{animation:none}.RZlVia_orb:before{opacity:.16;animation:none}}";
|
|
23140
|
+
const tagId$3 = "@voicemesh/dsh-voice/VoiceOrb.module.css";
|
|
23048
23141
|
if (typeof document !== "undefined" && document.querySelector("style[data-plugin-css=" + JSON.stringify(tagId$3) + "]") === null) {
|
|
23049
23142
|
const tag = document.createElement("style");
|
|
23050
|
-
tag.dataset.plugin = "@
|
|
23143
|
+
tag.dataset.plugin = "@voicemesh/dsh-voice";
|
|
23051
23144
|
tag.dataset.pluginCss = tagId$3;
|
|
23052
23145
|
tag.textContent = css$3;
|
|
23053
23146
|
document.head.appendChild(tag);
|
|
23054
23147
|
}
|
|
23055
23148
|
var VoiceOrb_module_css_default = {
|
|
23056
|
-
"cloud": "
|
|
23057
|
-
"cloud-ambient": "
|
|
23058
|
-
"cloud-ambient-back": "
|
|
23059
|
-
"cloud-ambient-front": "
|
|
23060
|
-
"frame": "
|
|
23061
|
-
"orb": "
|
|
23062
|
-
"orb-sky": "
|
|
23063
|
-
"resume": "
|
|
23064
|
-
"sky-contrast": "
|
|
23149
|
+
"cloud": "RZlVia_cloud",
|
|
23150
|
+
"cloud-ambient": "RZlVia_cloud-ambient",
|
|
23151
|
+
"cloud-ambient-back": "RZlVia_cloud-ambient-back",
|
|
23152
|
+
"cloud-ambient-front": "RZlVia_cloud-ambient-front",
|
|
23153
|
+
"frame": "RZlVia_frame",
|
|
23154
|
+
"orb": "RZlVia_orb",
|
|
23155
|
+
"orb-sky": "RZlVia_orb-sky",
|
|
23156
|
+
"resume": "RZlVia_resume",
|
|
23157
|
+
"sky-contrast": "RZlVia_sky-contrast"
|
|
23065
23158
|
};
|
|
23159
|
+
//#endregion
|
|
23160
|
+
//#region src/client/VoiceOrb.tsx
|
|
23066
23161
|
/** Assistant-output cloud rendered above the composer while voice is live or parked. */
|
|
23067
23162
|
const ATTACK_MS = 110;
|
|
23068
23163
|
const RELEASE_MS = 240;
|
|
@@ -23181,75 +23276,79 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
23181
23276
|
}) : orb
|
|
23182
23277
|
});
|
|
23183
23278
|
}
|
|
23184
|
-
|
|
23185
|
-
|
|
23279
|
+
//#endregion
|
|
23280
|
+
//#region \0dsh-css:/Users/hgp/DeepSeek/voicemesh-dsh-voice/.release/package-1792089472529/client-build/src/client/VoiceSettings.module.css.mjs
|
|
23281
|
+
const css$2 = ".giayVW_page{max-width:640px;color:var(--dsw-alias-label-primary);flex-direction:column;gap:14px;display:flex}.giayVW_heading{color:var(--dsw-alias-label-primary);margin:0;font-size:16px;font-weight:500;line-height:24px}.giayVW_vadStatus{color:var(--dsw-alias-label-primary);font-size:12px;line-height:1.5}.giayVW_vadStatusOk{color:var(--dsw-alias-state-success-primary)}.giayVW_vadStatusWarn{color:var(--dsw-alias-state-warn-primary)}.giayVW_vadReason{color:var(--dsw-alias-label-tertiary);margin-top:4px;font-size:12px;line-height:18px;display:block}.giayVW_card{border:.5px solid var(--dsw-alias-border-l4);background:var(--dsw-alias-bg-layer-3);border-radius:16px;list-style:none;transition:border-color .16s,background .16s}.giayVW_card:hover{border-color:var(--dsw-alias-label-dimmed)}.giayVW_cardOpen{background:var(--dsw-alias-bg-layer-2);border-color:var(--dsw-alias-label-dimmed)}.giayVW_cardHeader{appearance:none;width:100%;font:inherit;color:inherit;text-align:left;cursor:pointer;background:0 0;border:0;border-radius:16px;align-items:center;gap:12px;padding:14px 16px;display:flex}.giayVW_cardHeader:focus-visible{outline:2px solid var(--dsw-alias-brand-primary);outline-offset:-2px}.giayVW_cardHeadText{flex-direction:column;flex:1;gap:4px;min-width:0;display:flex}.giayVW_cardTitle{color:var(--dsw-alias-label-primary);font-size:15px;font-weight:600;line-height:1.4}.giayVW_cardDesc{color:var(--dsw-alias-label-tertiary);font-size:13px;line-height:1.5}.giayVW_cardChevron{color:var(--dsw-alias-label-tertiary);flex:none;transition:transform .16s}.giayVW_cardChevronOpen{transform:rotate(180deg)}.giayVW_cardBody{border-top:.5px solid var(--dsw-alias-border-l2);flex-direction:column;gap:2px;margin:0 16px;padding:2px 0 8px;display:flex}.giayVW_cardBody>.giayVW_card+.giayVW_card{margin-top:6px}.giayVW_field{flex-direction:column;gap:6px;padding:12px 0;display:flex}.giayVW_field+.giayVW_field{border-top:.5px solid var(--dsw-alias-border-l2)}.giayVW_label{color:var(--dsw-alias-label-primary);font-size:13px;font-weight:500;line-height:1.5}.giayVW_input{box-sizing:border-box;border:.5px solid var(--dsw-alias-border-l4);width:100%;height:34px;font:inherit;background:var(--dsw-alias-bg-layer-3);color:var(--dsw-alias-label-primary);border-radius:8px;padding:0 12px;font-size:13px;line-height:1.5}.giayVW_input:focus-visible{border-color:var(--dsw-alias-brand-primary);outline:none}.giayVW_input::placeholder{color:var(--dsw-alias-label-dimmed)}.giayVW_input:disabled{color:var(--dsw-alias-label-tertiary);cursor:default}.giayVW_hint{color:var(--dsw-alias-label-tertiary);margin:0;font-size:12px;line-height:1.5}.giayVW_subsection{border-top:.5px solid var(--dsw-alias-border-l2)}.giayVW_subsection:first-child{border-top:none}.giayVW_subsectionBody>.giayVW_subsection{padding-inline-start:12px}.giayVW_subsectionHeader{appearance:none;width:100%;font:inherit;color:inherit;text-align:left;cursor:pointer;background:0 0;border:0;align-items:center;gap:10px;padding:12px 0;display:flex}.giayVW_subsectionHeader:focus-visible{outline:2px solid var(--dsw-alias-brand-primary);outline-offset:-2px}.giayVW_subsectionTitle{min-width:0;color:var(--dsw-alias-label-primary);flex:1;font-size:13px;font-weight:600;line-height:1.5}.giayVW_subsectionChevron{color:var(--dsw-alias-label-tertiary);flex:none;transition:transform .16s}.giayVW_subsectionChevronOpen{transform:rotate(180deg)}.giayVW_subsectionBody{flex-direction:column;gap:2px;padding:2px 0 10px;display:flex}.giayVW_labelRow{align-items:center;gap:8px;display:flex}.giayVW_labelRow .giayVW_label{flex:1;min-width:0}.giayVW_badge{corner-shape:round;white-space:nowrap;background:var(--dsw-alias-bg-module-platform);color:var(--dsw-alias-label-secondary);border-radius:999px;padding:1px 8px;font-size:11px;font-weight:500;line-height:17px}.giayVW_badgeMuted{corner-shape:round;white-space:nowrap;color:var(--dsw-alias-label-tertiary);border-radius:999px;padding:1px 8px;font-size:11px;line-height:17px}.giayVW_selector{background:var(--dsw-alias-bg-module-platform);width:100%;height:36px;font:inherit;color:var(--dsw-alias-label-primary);cursor:pointer;text-align:left;border:none;border-radius:18px;justify-content:space-between;align-items:center;gap:12px;padding:0 14px;font-size:14px;line-height:22px;display:inline-flex}.giayVW_selector:hover{background:var(--dsw-alias-interactive-bg-hover)}.giayVW_selector:focus-visible{outline:2px solid var(--dsw-alias-brand-primary);outline-offset:1px}.giayVW_chevron{color:var(--dsw-alias-label-secondary);flex:none}.giayVW_modelRow .giayVW_selector{flex:1;min-width:0}.giayVW_toggleRow{color:var(--dsw-alias-label-primary);justify-content:space-between;align-items:flex-start;gap:16px;padding:14px 0;font-size:13px;line-height:1.5;display:flex}.giayVW_toggleText{flex-direction:column;flex:1;gap:3px;min-width:0;display:flex}.giayVW_toggleLabel{color:var(--dsw-alias-label-primary);font-size:14px;line-height:22px}.giayVW_toggleDesc{color:var(--dsw-alias-label-tertiary);font-size:12px;line-height:18px}.giayVW_switch{box-sizing:border-box;background:var(--dsw-alias-border-l3);cursor:pointer;border:0;border-radius:10px;flex:none;width:36px;height:20px;padding:2px;position:relative}.giayVW_switchOn{background:var(--dsw-alias-brand-primary)}.giayVW_switch:focus-visible{outline:2px solid var(--dsw-alias-brand-primary);outline-offset:2px}.giayVW_switch:disabled{cursor:default;opacity:.5}.giayVW_thumb{corner-shape:round;background:var(--dsw-alias-label-primary-foreground);border-radius:50%;width:16px;height:16px;transition:transform .12s;display:block}.giayVW_switchOn .giayVW_thumb{transform:translate(16px)}.giayVW_sliderRow{flex-direction:column;gap:6px;padding:10px 0;display:flex}.giayVW_sliderHead{justify-content:space-between;align-items:center;display:flex}.giayVW_sliderLabel{color:var(--dsw-alias-label-primary);font-size:14px;line-height:22px}.giayVW_sliderValue{font-variant-numeric:tabular-nums;color:var(--dsw-alias-label-secondary);font-size:12px;line-height:18px}.giayVW_slider{width:100%;accent-color:var(--dsw-alias-button-primary-fill)}.giayVW_btnRow{flex-wrap:wrap;align-items:center;gap:8px;padding:8px 0 4px;display:flex}.giayVW_result{font-size:12px;line-height:18px}.giayVW_resultOk{color:var(--dsw-alias-state-success-primary)}.giayVW_resultFail{color:var(--dsw-alias-state-error-primary)}.giayVW_cardTop{position:relative}.giayVW_cardTopWithVoice{grid-template-columns:minmax(0,1fr) auto 42px;align-items:center;display:grid}.giayVW_cardTopWithVoice .giayVW_cardHeader{grid-area:1/1/auto/-1;grid-template-columns:subgrid;display:grid}.giayVW_cardTopWithVoice .giayVW_cardHeadText{grid-column:1}.giayVW_cardTopWithVoice .giayVW_cardChevron{grid-column:3;justify-self:end}.giayVW_cardTopWithVoice .giayVW_quickVoice{z-index:1;grid-area:1/2}.giayVW_voiceDot{corner-shape:round;background:#3984f5;border-radius:50%;flex:none;width:12px;height:12px}.giayVW_quickVoice{border:1px solid var(--dsw-alias-border-l4);background:var(--dsw-alias-bg-module-platform);color:var(--dsw-alias-label-primary);font:inherit;cursor:pointer;overflow-wrap:anywhere;border-radius:18px;align-items:center;gap:8px;max-width:180px;margin:0;padding:8px 12px;display:inline-flex}.giayVW_quickVoice:hover{background:var(--dsw-alias-interactive-bg-hover)}.giayVW_quickVoice:focus-visible{outline:2px solid var(--dsw-alias-brand-primary)}.giayVW_cardTopWithVoice .giayVW_quickVoice{gap:0;max-width:220px;padding:0;position:relative}.giayVW_voiceChoice,.giayVW_voicePreview{color:inherit;font:inherit;cursor:pointer;background:0 0;border:0;padding:8px 10px}.giayVW_voiceChoice{overflow-wrap:anywhere;align-items:center;gap:8px;min-width:0;display:inline-flex}.giayVW_voicePreview{border-left:1px solid var(--dsw-alias-border-l4);flex:none;font-size:12px}.giayVW_voiceChoice:focus-visible,.giayVW_voicePreview:focus-visible{outline:2px solid var(--dsw-alias-brand-primary);border-radius:12px}.giayVW_previewError{z-index:2;border:1px solid var(--dsw-alias-border-l4);background:var(--dsw-alias-bg-layer-2);border-radius:8px;width:240px;padding:10px;font-size:12px;position:absolute;top:100%;right:0}.giayVW_radioGroup{flex-wrap:wrap;gap:12px 24px;display:flex}.giayVW_radioGroup label{cursor:pointer;align-items:center;gap:8px;padding:6px 0;display:inline-flex}.giayVW_radioGroup input{width:16px;height:16px;accent-color:var(--dsw-alias-state-info-primary,#3978f6);cursor:pointer;margin:0}.giayVW_modelRow{align-items:center;gap:8px;display:flex}.giayVW_modelRow>:first-child{flex:1;min-width:0}.giayVW_modelRow>:last-child:not(:first-child){flex:none}.giayVW_realtimeSelectionRow{align-items:center;gap:12px;display:flex}.giayVW_realtimeModel{flex:1;min-width:0}.giayVW_realtimeSelectionRow>.giayVW_field{flex:none;max-width:40%}.giayVW_realtimeSelectionRow>.giayVW_field .giayVW_input{text-overflow:ellipsis;white-space:nowrap;width:auto;min-width:96px;overflow:hidden}.giayVW_subsectionSummary{text-overflow:ellipsis;white-space:nowrap;min-width:0;max-width:60%;color:var(--dsw-alias-label-secondary);font-size:12px;font-weight:400;overflow:hidden}";
|
|
23282
|
+
const tagId$2 = "@voicemesh/dsh-voice/VoiceSettings.module.css";
|
|
23186
23283
|
if (typeof document !== "undefined" && document.querySelector("style[data-plugin-css=" + JSON.stringify(tagId$2) + "]") === null) {
|
|
23187
23284
|
const tag = document.createElement("style");
|
|
23188
|
-
tag.dataset.plugin = "@
|
|
23285
|
+
tag.dataset.plugin = "@voicemesh/dsh-voice";
|
|
23189
23286
|
tag.dataset.pluginCss = tagId$2;
|
|
23190
23287
|
tag.textContent = css$2;
|
|
23191
23288
|
document.head.appendChild(tag);
|
|
23192
23289
|
}
|
|
23193
23290
|
var VoiceSettings_module_css_default = {
|
|
23194
|
-
"badge": "
|
|
23195
|
-
"badgeMuted": "
|
|
23196
|
-
"btnRow": "
|
|
23197
|
-
"card": "
|
|
23198
|
-
"cardBody": "
|
|
23199
|
-
"cardChevron": "
|
|
23200
|
-
"cardChevronOpen": "
|
|
23201
|
-
"cardDesc": "
|
|
23202
|
-
"cardHeadText": "
|
|
23203
|
-
"cardHeader": "
|
|
23204
|
-
"cardOpen": "
|
|
23205
|
-
"cardTitle": "
|
|
23206
|
-
"cardTop": "
|
|
23207
|
-
"cardTopWithVoice": "
|
|
23208
|
-
"chevron": "
|
|
23209
|
-
"field": "
|
|
23210
|
-
"heading": "
|
|
23211
|
-
"hint": "
|
|
23212
|
-
"input": "
|
|
23213
|
-
"label": "
|
|
23214
|
-
"labelRow": "
|
|
23215
|
-
"modelRow": "
|
|
23216
|
-
"page": "
|
|
23217
|
-
"previewError": "
|
|
23218
|
-
"quickVoice": "
|
|
23219
|
-
"radioGroup": "
|
|
23220
|
-
"realtimeModel": "
|
|
23221
|
-
"realtimeSelectionRow": "
|
|
23222
|
-
"result": "
|
|
23223
|
-
"resultFail": "
|
|
23224
|
-
"resultOk": "
|
|
23225
|
-
"selector": "
|
|
23226
|
-
"slider": "
|
|
23227
|
-
"sliderHead": "
|
|
23228
|
-
"sliderLabel": "
|
|
23229
|
-
"sliderRow": "
|
|
23230
|
-
"sliderValue": "
|
|
23231
|
-
"subsection": "
|
|
23232
|
-
"subsectionBody": "
|
|
23233
|
-
"subsectionChevron": "
|
|
23234
|
-
"subsectionChevronOpen": "
|
|
23235
|
-
"subsectionHeader": "
|
|
23236
|
-
"subsectionSummary": "
|
|
23237
|
-
"subsectionTitle": "
|
|
23238
|
-
"switch": "
|
|
23239
|
-
"switchOn": "
|
|
23240
|
-
"thumb": "
|
|
23241
|
-
"toggleDesc": "
|
|
23242
|
-
"toggleLabel": "
|
|
23243
|
-
"toggleRow": "
|
|
23244
|
-
"toggleText": "
|
|
23245
|
-
"vadReason": "
|
|
23246
|
-
"vadStatus": "
|
|
23247
|
-
"vadStatusOk": "
|
|
23248
|
-
"vadStatusWarn": "
|
|
23249
|
-
"voiceChoice": "
|
|
23250
|
-
"voiceDot": "
|
|
23251
|
-
"voicePreview": "
|
|
23291
|
+
"badge": "giayVW_badge",
|
|
23292
|
+
"badgeMuted": "giayVW_badgeMuted",
|
|
23293
|
+
"btnRow": "giayVW_btnRow",
|
|
23294
|
+
"card": "giayVW_card",
|
|
23295
|
+
"cardBody": "giayVW_cardBody",
|
|
23296
|
+
"cardChevron": "giayVW_cardChevron",
|
|
23297
|
+
"cardChevronOpen": "giayVW_cardChevronOpen",
|
|
23298
|
+
"cardDesc": "giayVW_cardDesc",
|
|
23299
|
+
"cardHeadText": "giayVW_cardHeadText",
|
|
23300
|
+
"cardHeader": "giayVW_cardHeader",
|
|
23301
|
+
"cardOpen": "giayVW_cardOpen",
|
|
23302
|
+
"cardTitle": "giayVW_cardTitle",
|
|
23303
|
+
"cardTop": "giayVW_cardTop",
|
|
23304
|
+
"cardTopWithVoice": "giayVW_cardTopWithVoice",
|
|
23305
|
+
"chevron": "giayVW_chevron",
|
|
23306
|
+
"field": "giayVW_field",
|
|
23307
|
+
"heading": "giayVW_heading",
|
|
23308
|
+
"hint": "giayVW_hint",
|
|
23309
|
+
"input": "giayVW_input",
|
|
23310
|
+
"label": "giayVW_label",
|
|
23311
|
+
"labelRow": "giayVW_labelRow",
|
|
23312
|
+
"modelRow": "giayVW_modelRow",
|
|
23313
|
+
"page": "giayVW_page",
|
|
23314
|
+
"previewError": "giayVW_previewError",
|
|
23315
|
+
"quickVoice": "giayVW_quickVoice",
|
|
23316
|
+
"radioGroup": "giayVW_radioGroup",
|
|
23317
|
+
"realtimeModel": "giayVW_realtimeModel",
|
|
23318
|
+
"realtimeSelectionRow": "giayVW_realtimeSelectionRow",
|
|
23319
|
+
"result": "giayVW_result",
|
|
23320
|
+
"resultFail": "giayVW_resultFail",
|
|
23321
|
+
"resultOk": "giayVW_resultOk",
|
|
23322
|
+
"selector": "giayVW_selector",
|
|
23323
|
+
"slider": "giayVW_slider",
|
|
23324
|
+
"sliderHead": "giayVW_sliderHead",
|
|
23325
|
+
"sliderLabel": "giayVW_sliderLabel",
|
|
23326
|
+
"sliderRow": "giayVW_sliderRow",
|
|
23327
|
+
"sliderValue": "giayVW_sliderValue",
|
|
23328
|
+
"subsection": "giayVW_subsection",
|
|
23329
|
+
"subsectionBody": "giayVW_subsectionBody",
|
|
23330
|
+
"subsectionChevron": "giayVW_subsectionChevron",
|
|
23331
|
+
"subsectionChevronOpen": "giayVW_subsectionChevronOpen",
|
|
23332
|
+
"subsectionHeader": "giayVW_subsectionHeader",
|
|
23333
|
+
"subsectionSummary": "giayVW_subsectionSummary",
|
|
23334
|
+
"subsectionTitle": "giayVW_subsectionTitle",
|
|
23335
|
+
"switch": "giayVW_switch",
|
|
23336
|
+
"switchOn": "giayVW_switchOn",
|
|
23337
|
+
"thumb": "giayVW_thumb",
|
|
23338
|
+
"toggleDesc": "giayVW_toggleDesc",
|
|
23339
|
+
"toggleLabel": "giayVW_toggleLabel",
|
|
23340
|
+
"toggleRow": "giayVW_toggleRow",
|
|
23341
|
+
"toggleText": "giayVW_toggleText",
|
|
23342
|
+
"vadReason": "giayVW_vadReason",
|
|
23343
|
+
"vadStatus": "giayVW_vadStatus",
|
|
23344
|
+
"vadStatusOk": "giayVW_vadStatusOk",
|
|
23345
|
+
"vadStatusWarn": "giayVW_vadStatusWarn",
|
|
23346
|
+
"voiceChoice": "giayVW_voiceChoice",
|
|
23347
|
+
"voiceDot": "giayVW_voiceDot",
|
|
23348
|
+
"voicePreview": "giayVW_voicePreview"
|
|
23252
23349
|
};
|
|
23350
|
+
//#endregion
|
|
23351
|
+
//#region src/client/LocalModelSetup.tsx
|
|
23253
23352
|
/** Local model installation dialog; progress belongs to the host and survives closing the dialog. */
|
|
23254
23353
|
/** Install a selected recognition, synthesis or wake pack.
|
|
23255
23354
|
* @param props - Installer, model kind and completion refresh.
|
|
@@ -23443,50 +23542,54 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
23443
23542
|
]
|
|
23444
23543
|
})] });
|
|
23445
23544
|
}
|
|
23446
|
-
|
|
23447
|
-
|
|
23545
|
+
//#endregion
|
|
23546
|
+
//#region \0dsh-css:/Users/hgp/DeepSeek/voicemesh-dsh-voice/.release/package-1792089472529/client-build/src/client/VoicePicker.module.css.mjs
|
|
23547
|
+
const css$1 = ".vM7mWG_dialog{border:1px solid var(--dsw-alias-border-l4);background:var(--dsw-alias-bg-layer-2);width:min(900px,100vw - 40px);max-height:min(850px,100dvh - 48px);color:var(--dsw-alias-label-primary);font:inherit;border-radius:20px;padding:0}.vM7mWG_dialog[open]{flex-direction:column;display:flex}.vM7mWG_dialog::backdrop{background:#00000073}.vM7mWG_header,.vM7mWG_controls,.vM7mWG_footer{padding:20px 24px}.vM7mWG_header,.vM7mWG_footer{align-items:center;gap:12px;display:flex}.vM7mWG_header{border-bottom:1px solid var(--dsw-alias-border-l4);justify-content:space-between}.vM7mWG_header h2{margin:0 0 8px;font-size:20px}.vM7mWG_header p,.vM7mWG_metadata p{color:var(--dsw-alias-label-tertiary);margin:0}.vM7mWG_dialog button,.vM7mWG_dialog select,.vM7mWG_dialog input:not([type=checkbox]){border:1px solid var(--dsw-alias-border-l4);background:var(--dsw-alias-bg-layer-3);color:inherit;font:inherit;border-radius:10px;padding:10px 12px}.vM7mWG_dialog button{cursor:pointer;flex-shrink:0}.vM7mWG_dialog button:hover{background:var(--dsw-alias-interactive-bg-hover)}.vM7mWG_dialog button:disabled{opacity:.5;cursor:default}.vM7mWG_dialog button[aria-pressed=true]{color:var(--dsw-alias-brand-primary)}.vM7mWG_dialog :focus-visible{outline:2px solid var(--dsw-alias-brand-primary);outline-offset:2px}.vM7mWG_controls>input{box-sizing:border-box;width:100%}.vM7mWG_filters{flex-wrap:wrap;align-items:center;gap:12px;margin:12px 0;display:flex}.vM7mWG_filters label{align-items:center;gap:6px;display:flex}.vM7mWG_list{min-height:120px;padding:0 24px 12px;overflow-y:auto}.vM7mWG_row{box-sizing:border-box;border:1px solid var(--dsw-alias-border-l4);border-radius:12px;align-items:center;gap:8px;min-height:68px;margin-bottom:10px;padding:10px 12px;display:flex}.vM7mWG_avatar{corner-shape:round;width:36px;height:36px;color:var(--dsw-static-neutral-00);border-radius:50%;flex-shrink:0;place-items:center;font-size:13px;font-weight:700;display:grid}.vM7mWG_avatar0{background:var(--dsw-static-amber-400)}.vM7mWG_avatar1{background:var(--dsw-static-amber-600)}.vM7mWG_avatar2{background:var(--dsw-static-neutral-bluish-600)}.vM7mWG_avatar3{background:var(--dsw-static-blue-400)}.vM7mWG_avatar4{background:var(--dsw-static-green-400)}.vM7mWG_avatar5{background:var(--dsw-static-deepseek-500)}.vM7mWG_metadata{overflow-wrap:anywhere;flex:1;min-width:0}.vM7mWG_metadata strong,.vM7mWG_metadata small{display:block}.vM7mWG_metadata small{color:var(--dsw-alias-label-tertiary)}.vM7mWG_metadata p{font-size:14px}.vM7mWG_row .vM7mWG_action{width:36px;height:36px;color:var(--dsw-alias-label-secondary);place-items:center;padding:0;display:grid}.vM7mWG_row .vM7mWG_select{padding-inline:14px}.vM7mWG_selectedRow{background:var(--dsw-alias-interactive-bg-hover)}.vM7mWG_footer{border-top:1px solid var(--dsw-alias-border-l4);flex-wrap:wrap}.vM7mWG_manual{flex:1;min-width:180px}.vM7mWG_manual summary{cursor:pointer;color:var(--dsw-alias-label-tertiary);font-size:13px}.vM7mWG_manualRow{align-items:center;gap:12px;margin-top:10px;display:flex}.vM7mWG_manualRow input{flex:1;min-width:0}@media (width<=600px){.vM7mWG_header,.vM7mWG_controls,.vM7mWG_footer{padding:14px}.vM7mWG_list{padding:0 14px}.vM7mWG_row{flex-wrap:wrap}.vM7mWG_metadata{flex-basis:calc(100% - 60px)}}.vM7mWG_compact{width:min(560px,100vw - 40px)}.vM7mWG_compact .vM7mWG_header{border:0;padding:22px 24px 8px}.vM7mWG_compact .vM7mWG_header h2{font-size:24px}.vM7mWG_carousel{text-align:center;padding:18px 24px;overflow-y:auto}.vM7mWG_dialog .vM7mWG_voiceOrb{corner-shape:round;color:#243d73;background:radial-gradient(at 30% 65%,#eef6ff 0%,#0000 52%),radial-gradient(at 80% 75%,#bacdff 0%,#0000 60%),linear-gradient(145deg,#687eff,#d6dfff);border:0;border-radius:50%;place-items:center;width:136px;height:136px;margin:8px auto 26px;display:grid;box-shadow:inset 0 0 24px #fff5}.vM7mWG_voiceOrb span{opacity:0;transition:opacity .15s}.vM7mWG_voiceOrb[aria-busy=true] span,.vM7mWG_voiceOrb:hover span,.vM7mWG_voiceOrb:focus-visible span,.vM7mWG_voiceOrbPlaying span{opacity:1}.vM7mWG_voiceOrbPlaying{animation:1.8s ease-in-out infinite vM7mWG_voicePreviewPulse}.vM7mWG_voiceSlide{justify-content:space-between;align-items:center;gap:18px;display:flex}.vM7mWG_voiceSlide>div{overflow-wrap:anywhere;flex:1;min-width:0}.vM7mWG_voiceSlide h3{margin:0 0 12px;font-size:30px}.vM7mWG_voiceSlide p{min-height:24px;color:var(--dsw-alias-label-tertiary);margin:0}.vM7mWG_dialog .vM7mWG_voiceSlide button{color:var(--dsw-alias-label-tertiary);background:0 0;border:0;font-size:36px}.vM7mWG_dots{justify-content:center;gap:12px;margin:24px 0 14px;display:flex}.vM7mWG_dialog .vM7mWG_dots button{corner-shape:round;background:color-mix(in srgb, var(--dsw-alias-brand-primary) 35%, transparent);border:0;border-radius:50%;width:12px;height:12px;padding:0}.vM7mWG_dialog .vM7mWG_dots button[aria-pressed=true]{background:var(--dsw-alias-brand-primary)}.vM7mWG_dialog .vM7mWG_dots button[aria-current=true]{outline:2px solid var(--dsw-alias-brand-primary);outline-offset:2px}.vM7mWG_selectedMark{background:color-mix(in srgb, var(--dsw-alias-brand-primary) 18%, transparent);color:var(--dsw-alias-brand-primary);border-radius:999px;margin:0 0 8px;padding:2px 8px;display:inline-block}.vM7mWG_carousel small{color:var(--dsw-alias-label-tertiary)}.vM7mWG_quickFooter{flex-wrap:wrap;align-items:center;gap:12px;padding:12px 24px 20px;display:flex}.vM7mWG_dialog .vM7mWG_browse{background:0 0;border:0;margin-right:auto;font-size:13px}.vM7mWG_dialog .vM7mWG_done{background:var(--dsw-alias-label-primary);color:var(--dsw-alias-bg-layer-2);padding-inline:24px}@keyframes vM7mWG_voicePreviewPulse{50%{filter:brightness(1.12);transform:scale(1.05)}}@media (prefers-reduced-motion:reduce){.vM7mWG_voiceOrbPlaying{animation:none}}@media (width<=480px){.vM7mWG_quickFooter{padding:14px}.vM7mWG_dialog .vM7mWG_browse{flex-basis:100%}}.vM7mWG_previewSpinner{box-sizing:border-box;corner-shape:round;vertical-align:middle;border:2px solid;border-right-color:#0000;border-radius:50%;width:1em;height:1em;animation:.75s linear infinite vM7mWG_voicePreviewSpin;display:inline-block}@keyframes vM7mWG_voicePreviewSpin{to{transform:rotate(360deg)}}";
|
|
23548
|
+
const tagId$1 = "@voicemesh/dsh-voice/VoicePicker.module.css";
|
|
23448
23549
|
if (typeof document !== "undefined" && document.querySelector("style[data-plugin-css=" + JSON.stringify(tagId$1) + "]") === null) {
|
|
23449
23550
|
const tag = document.createElement("style");
|
|
23450
|
-
tag.dataset.plugin = "@
|
|
23551
|
+
tag.dataset.plugin = "@voicemesh/dsh-voice";
|
|
23451
23552
|
tag.dataset.pluginCss = tagId$1;
|
|
23452
23553
|
tag.textContent = css$1;
|
|
23453
23554
|
document.head.appendChild(tag);
|
|
23454
23555
|
}
|
|
23455
23556
|
var VoicePicker_module_css_default = {
|
|
23456
|
-
"action": "
|
|
23457
|
-
"avatar": "
|
|
23458
|
-
"avatar0": "
|
|
23459
|
-
"avatar1": "
|
|
23460
|
-
"avatar2": "
|
|
23461
|
-
"avatar3": "
|
|
23462
|
-
"avatar4": "
|
|
23463
|
-
"avatar5": "
|
|
23464
|
-
"browse": "
|
|
23465
|
-
"carousel": "
|
|
23466
|
-
"compact": "
|
|
23467
|
-
"controls": "
|
|
23468
|
-
"dialog": "
|
|
23469
|
-
"done": "
|
|
23470
|
-
"dots": "
|
|
23471
|
-
"filters": "
|
|
23472
|
-
"footer": "
|
|
23473
|
-
"header": "
|
|
23474
|
-
"list": "
|
|
23475
|
-
"manual": "
|
|
23476
|
-
"manualRow": "
|
|
23477
|
-
"metadata": "
|
|
23478
|
-
"previewSpinner": "
|
|
23479
|
-
"quickFooter": "
|
|
23480
|
-
"row": "
|
|
23481
|
-
"select": "
|
|
23482
|
-
"selectedMark": "
|
|
23483
|
-
"selectedRow": "
|
|
23484
|
-
"voiceOrb": "
|
|
23485
|
-
"voiceOrbPlaying": "
|
|
23486
|
-
"voicePreviewPulse": "
|
|
23487
|
-
"voicePreviewSpin": "
|
|
23488
|
-
"voiceSlide": "
|
|
23557
|
+
"action": "vM7mWG_action",
|
|
23558
|
+
"avatar": "vM7mWG_avatar",
|
|
23559
|
+
"avatar0": "vM7mWG_avatar0",
|
|
23560
|
+
"avatar1": "vM7mWG_avatar1",
|
|
23561
|
+
"avatar2": "vM7mWG_avatar2",
|
|
23562
|
+
"avatar3": "vM7mWG_avatar3",
|
|
23563
|
+
"avatar4": "vM7mWG_avatar4",
|
|
23564
|
+
"avatar5": "vM7mWG_avatar5",
|
|
23565
|
+
"browse": "vM7mWG_browse",
|
|
23566
|
+
"carousel": "vM7mWG_carousel",
|
|
23567
|
+
"compact": "vM7mWG_compact",
|
|
23568
|
+
"controls": "vM7mWG_controls",
|
|
23569
|
+
"dialog": "vM7mWG_dialog",
|
|
23570
|
+
"done": "vM7mWG_done",
|
|
23571
|
+
"dots": "vM7mWG_dots",
|
|
23572
|
+
"filters": "vM7mWG_filters",
|
|
23573
|
+
"footer": "vM7mWG_footer",
|
|
23574
|
+
"header": "vM7mWG_header",
|
|
23575
|
+
"list": "vM7mWG_list",
|
|
23576
|
+
"manual": "vM7mWG_manual",
|
|
23577
|
+
"manualRow": "vM7mWG_manualRow",
|
|
23578
|
+
"metadata": "vM7mWG_metadata",
|
|
23579
|
+
"previewSpinner": "vM7mWG_previewSpinner",
|
|
23580
|
+
"quickFooter": "vM7mWG_quickFooter",
|
|
23581
|
+
"row": "vM7mWG_row",
|
|
23582
|
+
"select": "vM7mWG_select",
|
|
23583
|
+
"selectedMark": "vM7mWG_selectedMark",
|
|
23584
|
+
"selectedRow": "vM7mWG_selectedRow",
|
|
23585
|
+
"voiceOrb": "vM7mWG_voiceOrb",
|
|
23586
|
+
"voiceOrbPlaying": "vM7mWG_voiceOrbPlaying",
|
|
23587
|
+
"voicePreviewPulse": "vM7mWG_voicePreviewPulse",
|
|
23588
|
+
"voicePreviewSpin": "vM7mWG_voicePreviewSpin",
|
|
23589
|
+
"voiceSlide": "vM7mWG_voiceSlide"
|
|
23489
23590
|
};
|
|
23591
|
+
//#endregion
|
|
23592
|
+
//#region src/client/VoicePreviewIcon.tsx
|
|
23490
23593
|
/** Playback glyph shared by voice sample controls. */
|
|
23491
23594
|
/** Show preparation until audio starts, then expose the stop glyph. */
|
|
23492
23595
|
function VoicePreviewIcon({ loading, playing }) {
|
|
@@ -23496,6 +23599,8 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
23496
23599
|
children: loading ? "" : playing ? "■" : "▶"
|
|
23497
23600
|
});
|
|
23498
23601
|
}
|
|
23602
|
+
//#endregion
|
|
23603
|
+
//#region src/client/use-voice-preview.ts
|
|
23499
23604
|
/** React state for provider-independent sample playback. */
|
|
23500
23605
|
/**
|
|
23501
23606
|
* Own a cancellable preview for the selected provider and voice.
|
|
@@ -23562,6 +23667,8 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
23562
23667
|
stop
|
|
23563
23668
|
};
|
|
23564
23669
|
}
|
|
23670
|
+
//#endregion
|
|
23671
|
+
//#region src/client/SelectedVoiceControl.tsx
|
|
23565
23672
|
/** Header actions share the picker's provider-specific playback owner. */
|
|
23566
23673
|
function SelectedVoiceControl({ selection, voice, label = voice, previewVoice, onChoose, t }) {
|
|
23567
23674
|
const displayLabel = voiceDisplayName(label);
|
|
@@ -23605,6 +23712,8 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
23605
23712
|
]
|
|
23606
23713
|
});
|
|
23607
23714
|
}
|
|
23715
|
+
//#endregion
|
|
23716
|
+
//#region src/client/CredentialField.tsx
|
|
23608
23717
|
/** Consistent write-only credential editor for voice providers. */
|
|
23609
23718
|
/**
|
|
23610
23719
|
* Show credential status and apply a nonempty replacement key.
|
|
@@ -23649,6 +23758,8 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
23649
23758
|
]
|
|
23650
23759
|
});
|
|
23651
23760
|
}
|
|
23761
|
+
//#endregion
|
|
23762
|
+
//#region src/client/ConnectionSettings.tsx
|
|
23652
23763
|
/** Shared connection editor using the harness modal and button controls. */
|
|
23653
23764
|
/**
|
|
23654
23765
|
* Open provider-owned connection fields in a reusable settings popup.
|
|
@@ -23673,6 +23784,8 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
23673
23784
|
})]
|
|
23674
23785
|
})] });
|
|
23675
23786
|
}
|
|
23787
|
+
//#endregion
|
|
23788
|
+
//#region src/client/VoicePicker.tsx
|
|
23676
23789
|
/** Shared voice discovery dialog with provider-specific isolated previews. */
|
|
23677
23790
|
/** Voice indicators the compact carousel shows at once. */
|
|
23678
23791
|
const DOT_WINDOW = 9;
|
|
@@ -24119,16 +24232,20 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
24119
24232
|
})] })]
|
|
24120
24233
|
});
|
|
24121
24234
|
}
|
|
24122
|
-
|
|
24123
|
-
|
|
24235
|
+
//#endregion
|
|
24236
|
+
//#region \0dsh-css:/Users/hgp/DeepSeek/voicemesh-dsh-voice/.release/package-1792089472529/client-build/src/client/VoiceSettingsShell.module.css.mjs
|
|
24237
|
+
const css = "._1_VG4G_shell{box-sizing:border-box;border:.5px solid var(--dsw-alias-border-l4);background:0 0;border-radius:10px;width:100%;max-width:none;padding:16px}";
|
|
24238
|
+
const tagId = "@voicemesh/dsh-voice/VoiceSettingsShell.module.css";
|
|
24124
24239
|
if (typeof document !== "undefined" && document.querySelector("style[data-plugin-css=" + JSON.stringify(tagId) + "]") === null) {
|
|
24125
24240
|
const tag = document.createElement("style");
|
|
24126
|
-
tag.dataset.plugin = "@
|
|
24241
|
+
tag.dataset.plugin = "@voicemesh/dsh-voice";
|
|
24127
24242
|
tag.dataset.pluginCss = tagId;
|
|
24128
24243
|
tag.textContent = css;
|
|
24129
24244
|
document.head.appendChild(tag);
|
|
24130
24245
|
}
|
|
24131
|
-
var VoiceSettingsShell_module_css_default = { "shell": "
|
|
24246
|
+
var VoiceSettingsShell_module_css_default = { "shell": "_1_VG4G_shell" };
|
|
24247
|
+
//#endregion
|
|
24248
|
+
//#region src/client/VoiceSettings.tsx
|
|
24132
24249
|
/** Voice preferences, write-only host credential setup, and provider diagnostics. */
|
|
24133
24250
|
/** The test phrase spoken by the read-back test. */
|
|
24134
24251
|
const READ_BACK_TEST = "This is a voice test. Can you hear me?";
|
|
@@ -25674,6 +25791,8 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
25674
25791
|
})
|
|
25675
25792
|
] });
|
|
25676
25793
|
}
|
|
25794
|
+
//#endregion
|
|
25795
|
+
//#region src/client/VoiceSetupPrompt.tsx
|
|
25677
25796
|
/** Enable-time guidance for a bundle whose selected voice path is incomplete. */
|
|
25678
25797
|
/** Whether selected local engines have the model material they need on this host. */
|
|
25679
25798
|
function localEnginesReady(config, models) {
|
|
@@ -25739,6 +25858,8 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
25739
25858
|
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", { children: t("setup.body") })
|
|
25740
25859
|
});
|
|
25741
25860
|
}
|
|
25861
|
+
//#endregion
|
|
25862
|
+
//#region src/client/pipeline-tts.ts
|
|
25742
25863
|
/** Bidirectional text/audio transport for native streaming TTS providers. */
|
|
25743
25864
|
async function streamPipelineTts(route, settings, texts, audio, signal) {
|
|
25744
25865
|
signal.throwIfAborted();
|
|
@@ -25831,6 +25952,8 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
25831
25952
|
socket.close();
|
|
25832
25953
|
}
|
|
25833
25954
|
}
|
|
25955
|
+
//#endregion
|
|
25956
|
+
//#region ../../../../../../../private/tmp/dsh-harness-a2e96135-release/packages/util/crypto/lib/index.js
|
|
25834
25957
|
/**
|
|
25835
25958
|
* Random v4 UUID, minted from `crypto.getRandomValues`.
|
|
25836
25959
|
* @returns the UUID string.
|
|
@@ -25842,6 +25965,8 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
25842
25965
|
}).join("");
|
|
25843
25966
|
return `${hex.slice(0, 8)}-${hex.slice(8, 12)}-${hex.slice(12, 16)}-${hex.slice(16, 20)}-${hex.slice(20)}`;
|
|
25844
25967
|
}
|
|
25968
|
+
//#endregion
|
|
25969
|
+
//#region ../../../../../../../private/tmp/dsh-harness-a2e96135-release/node_modules/.pnpm/eventsource-parser@3.1.0/node_modules/eventsource-parser/dist/index.js
|
|
25845
25970
|
var ParseError = class extends Error {
|
|
25846
25971
|
constructor(message, options) {
|
|
25847
25972
|
super(message), this.name = "ParseError", this.type = options.type, this.field = options.field, this.value = options.value, this.line = options.line;
|
|
@@ -26005,6 +26130,8 @@ ${value}`, dataLines++;
|
|
|
26005
26130
|
function isEventPrefix(chunk, i, firstCharCode) {
|
|
26006
26131
|
return firstCharCode === 101 && chunk.charCodeAt(i + 1) === 118 && chunk.charCodeAt(i + 2) === 101 && chunk.charCodeAt(i + 3) === 110 && chunk.charCodeAt(i + 4) === 116 && chunk.charCodeAt(i + 5) === 58;
|
|
26007
26132
|
}
|
|
26133
|
+
//#endregion
|
|
26134
|
+
//#region ../../../../../../../private/tmp/dsh-harness-a2e96135-release/node_modules/.pnpm/@dsh-voice+harness-policy@file+plugins+voice+harness-policy+dsh-voice-harness-policy-0.1.1-18a298680892.tgz/node_modules/@dsh-voice/harness-policy/lib/index.js
|
|
26008
26135
|
/** Shared voice assistant wording and coding-tool declarations. */
|
|
26009
26136
|
/** Natural speech and truthful coding-status instructions shared by voice modes. */
|
|
26010
26137
|
const voiceAssistantStyle = "Speak as one assistant helping the user. Keep internal routing out of ordinary replies: do not mention queues, dispatch, delegation, a separate coding agent, or an inability to access files directly. You may say one brief natural statement of what you will check or change before calling the coding tool. Do not delay or repeat the tool call to produce that statement, and do not claim that work was accepted, started, running, or completed before the tool confirms it. After a successful admission receipt, give one brief natural acknowledgement only if you did not already speak an intent, then stay silent until the host supplies a recorded milestone or terminal outcome. Report status only from recorded task state. Explain internal routing only if the user asks about it. Report genuine failures or permission requirements plainly.";
|
|
@@ -26080,8 +26207,12 @@ ${value}`, dataLines++;
|
|
|
26080
26207
|
function taskReceiptInstructions(mode) {
|
|
26081
26208
|
return mode === "outcome" ? "After a successful admission receipt, acknowledge the request once, briefly and naturally only if you did not already speak an intent. Then stay silent and do not promise an update. The host delivers the terminal outcome automatically." : "After a successful admission receipt, acknowledge the request once, briefly and naturally only if you did not already speak an intent. Then stay silent and do not promise an update. The host may deliver a coding-agent milestone or terminal outcome automatically.";
|
|
26082
26209
|
}
|
|
26210
|
+
//#endregion
|
|
26211
|
+
//#region src/client/plain-language.ts
|
|
26083
26212
|
/** Additional speech guidance when the user enables plain-language coding summaries. */
|
|
26084
26213
|
const plainLanguageInstruction = "When explaining coding results or saved coding output, use everyday language and explain technical terms when needed. Keep file names, commands, errors, outcomes, and details the user explicitly requests accurate.";
|
|
26214
|
+
//#endregion
|
|
26215
|
+
//#region src/client/pipeline-conversation.ts
|
|
26085
26216
|
/** Streaming, tool-using conversational model for the STT/TTS pipeline. */
|
|
26086
26217
|
/** Cue-path diagnostics: the voice client is otherwise silent about why a filler never played. */
|
|
26087
26218
|
function cueDiagnostic(message) {
|
|
@@ -26387,6 +26518,8 @@ ${value}`, dataLines++;
|
|
|
26387
26518
|
if (typeof args !== "object" || args === null || !("text" in args) || typeof args.text !== "string" || !("intent" in args) || !listenerCueAllowed(args.intent, speechState)) return void 0;
|
|
26388
26519
|
return isCueDiscarded(args.text) ? void 0 : args.text.trim();
|
|
26389
26520
|
}
|
|
26521
|
+
//#endregion
|
|
26522
|
+
//#region ../../../../../Projects/voicemesh-composer/lib/wake.js
|
|
26390
26523
|
/**
|
|
26391
26524
|
* Create a resume gate.
|
|
26392
26525
|
* @returns a gate that starts unparked.
|
|
@@ -26639,6 +26772,8 @@ ${value}`, dataLines++;
|
|
|
26639
26772
|
}
|
|
26640
26773
|
};
|
|
26641
26774
|
}
|
|
26775
|
+
//#endregion
|
|
26776
|
+
//#region src/client/wake-channel.ts
|
|
26642
26777
|
/**
|
|
26643
26778
|
* The wake channel as the voice client uses it.
|
|
26644
26779
|
*
|
|
@@ -26792,6 +26927,8 @@ ${value}`, dataLines++;
|
|
|
26792
26927
|
if (!config.wakeEnabled) return false;
|
|
26793
26928
|
return config.wakePhrase.trim() !== "" && config.wakeModelId.trim() !== "";
|
|
26794
26929
|
}
|
|
26930
|
+
//#endregion
|
|
26931
|
+
//#region src/client/connect-chime.ts
|
|
26795
26932
|
/**
|
|
26796
26933
|
* Generate soft status notes.
|
|
26797
26934
|
* @param tone - connection transition.
|
|
@@ -26856,6 +26993,8 @@ ${value}`, dataLines++;
|
|
|
26856
26993
|
}
|
|
26857
26994
|
return out;
|
|
26858
26995
|
}
|
|
26996
|
+
//#endregion
|
|
26997
|
+
//#region src/client/status-sounds.ts
|
|
26859
26998
|
/** Short feedback that survives speech playback teardown and drains before releasing its output device. */
|
|
26860
26999
|
/** Create a disposable status player. @returns Playback, cancellation, and plugin-disposal actions. */
|
|
26861
27000
|
function createStatusSounds() {
|
|
@@ -26919,6 +27058,8 @@ ${value}`, dataLines++;
|
|
|
26919
27058
|
}
|
|
26920
27059
|
};
|
|
26921
27060
|
}
|
|
27061
|
+
//#endregion
|
|
27062
|
+
//#region src/client/voice-lifecycle.ts
|
|
26922
27063
|
/** Browser status feedback injected into the shared voice lifecycle. */
|
|
26923
27064
|
/**
|
|
26924
27065
|
* Create the plugin lifecycle with its browser status player.
|
|
@@ -26930,6 +27071,8 @@ ${value}`, dataLines++;
|
|
|
26930
27071
|
function createVoiceLifecycle(store, settings, sounds = createStatusSounds()) {
|
|
26931
27072
|
return createVoiceLifecycle$1(store, settings, sounds);
|
|
26932
27073
|
}
|
|
27074
|
+
//#endregion
|
|
27075
|
+
//#region src/client/loop.ts
|
|
26933
27076
|
/** Harness composition of the reusable speech pipeline and browser status cues. */
|
|
26934
27077
|
/**
|
|
26935
27078
|
* Compose a pipeline with the plugin's shared lifecycle feedback.
|
|
@@ -26948,6 +27091,8 @@ ${value}`, dataLines++;
|
|
|
26948
27091
|
}))
|
|
26949
27092
|
});
|
|
26950
27093
|
}
|
|
27094
|
+
//#endregion
|
|
27095
|
+
//#region src/client/last-output.ts
|
|
26951
27096
|
/** Host-backed access to saved coding output for read-back. */
|
|
26952
27097
|
const LAST_OUTPUT_PATH = "/api/voice/last-output";
|
|
26953
27098
|
/** Read the host-stored last raw agent output for a session (durable). */
|
|
@@ -26971,6 +27116,8 @@ ${value}`, dataLines++;
|
|
|
26971
27116
|
});
|
|
26972
27117
|
} catch {}
|
|
26973
27118
|
}
|
|
27119
|
+
//#endregion
|
|
27120
|
+
//#region src/client/dsh-transport.ts
|
|
26974
27121
|
/** The host voice route paths. */
|
|
26975
27122
|
const STT_ROUTE = "/api/voice/stt";
|
|
26976
27123
|
const STT_STREAM_ROUTE = "/api/voice/stt/stream";
|
|
@@ -27092,7 +27239,7 @@ ${value}`, dataLines++;
|
|
|
27092
27239
|
if (!sessionId || !deps.getConfig().transcriptHistory) return;
|
|
27093
27240
|
const connection = ctx.get("connection");
|
|
27094
27241
|
if (connection === void 0) throw new Error("Voice connection unavailable");
|
|
27095
|
-
if (!(await connection.rpc.call("/
|
|
27242
|
+
if (!(await connection.rpc.call("/api", "voice-pipeline/exchange", {
|
|
27096
27243
|
sessionId,
|
|
27097
27244
|
user: "",
|
|
27098
27245
|
assistant: caption.text,
|
|
@@ -27141,7 +27288,7 @@ ${value}`, dataLines++;
|
|
|
27141
27288
|
}
|
|
27142
27289
|
const connection = ctx.get("connection");
|
|
27143
27290
|
if (connection === void 0) throw new Error("Voice connection unavailable");
|
|
27144
|
-
const result = await connection.rpc.call("/
|
|
27291
|
+
const result = await connection.rpc.call("/api", "voice-pipeline/tool", {
|
|
27145
27292
|
sessionId,
|
|
27146
27293
|
conversationId: id,
|
|
27147
27294
|
callId,
|
|
@@ -27314,7 +27461,7 @@ ${value}`, dataLines++;
|
|
|
27314
27461
|
if (!deps.getConfig().transcriptHistory) return;
|
|
27315
27462
|
const connection = ctx.get("connection");
|
|
27316
27463
|
if (connection === void 0) throw new Error("Voice connection unavailable");
|
|
27317
|
-
if (!(await connection.rpc.call("/
|
|
27464
|
+
if (!(await connection.rpc.call("/api", "voice-pipeline/exchange", {
|
|
27318
27465
|
sessionId,
|
|
27319
27466
|
user,
|
|
27320
27467
|
assistant
|
|
@@ -27693,7 +27840,7 @@ ${value}`, dataLines++;
|
|
|
27693
27840
|
if (wake !== channel || wakeIdentity !== identity) return;
|
|
27694
27841
|
const connection = ctx.get("connection");
|
|
27695
27842
|
if (connection === void 0) throw new Error("Voice connection unavailable");
|
|
27696
|
-
const result = await connection.rpc.call("/
|
|
27843
|
+
const result = await connection.rpc.call("/api", "voice-local/wake-keywords", {
|
|
27697
27844
|
modelId: selected.wakeModelId,
|
|
27698
27845
|
phrases: [selected.wakePhrase.trim()]
|
|
27699
27846
|
});
|
|
@@ -28038,6 +28185,8 @@ ${value}`, dataLines++;
|
|
|
28038
28185
|
if (!res.ok) throw new Error(`ack router HTTP ${res.status}`);
|
|
28039
28186
|
return parseAckDecision((await res.json()).choices?.[0]?.message?.content?.trim() ?? "");
|
|
28040
28187
|
}
|
|
28188
|
+
//#endregion
|
|
28189
|
+
//#region src/client/sts-controller.ts
|
|
28041
28190
|
/** Harness signaling and settings supplied to the reusable realtime controller. */
|
|
28042
28191
|
/**
|
|
28043
28192
|
* Connect the selected harness session to the browser voice runtime.
|
|
@@ -28116,6 +28265,8 @@ ${value}`, dataLines++;
|
|
|
28116
28265
|
canEnd: (settings) => settings.endConversationEnabled
|
|
28117
28266
|
});
|
|
28118
28267
|
}
|
|
28268
|
+
//#endregion
|
|
28269
|
+
//#region src/client/voice-controls.ts
|
|
28119
28270
|
/**
|
|
28120
28271
|
* Route both modes through the same activation, pause, and resource-release sequence.
|
|
28121
28272
|
* @param select - adapter selected by the current voice settings.
|
|
@@ -28156,6 +28307,8 @@ ${value}`, dataLines++;
|
|
|
28156
28307
|
stop
|
|
28157
28308
|
};
|
|
28158
28309
|
}
|
|
28310
|
+
//#endregion
|
|
28311
|
+
//#region src/client/index.ts
|
|
28159
28312
|
/**
|
|
28160
28313
|
* Word one realtime failure. The host names its own endings with an application close code, so a
|
|
28161
28314
|
* replaced connection or a finished session is reported as itself instead of as a credential
|
|
@@ -28249,7 +28402,7 @@ ${value}`, dataLines++;
|
|
|
28249
28402
|
const credentialRequest = async (endpoint, slot, value, migrate = false, baseUrl = config.getSnapshot().conversationalBaseUrl) => {
|
|
28250
28403
|
const connection = ctx.get("connection");
|
|
28251
28404
|
if (!connection) throw new Error("Voice connection unavailable");
|
|
28252
|
-
const result = await connection.rpc.call("/voice-credentials
|
|
28405
|
+
const result = await connection.rpc.call("/api", `voice-credentials/${endpoint}`, {
|
|
28253
28406
|
slot,
|
|
28254
28407
|
...slot === "conversational" ? { baseUrl } : {},
|
|
28255
28408
|
...value === void 0 ? {} : {
|
|
@@ -28411,7 +28564,7 @@ ${value}`, dataLines++;
|
|
|
28411
28564
|
const selected = resolveStsSettings(cfg());
|
|
28412
28565
|
const connection = ctx.get("connection");
|
|
28413
28566
|
if (connection === void 0) throw new Error("Voice connection unavailable");
|
|
28414
|
-
const result = await connection.rpc.call("/
|
|
28567
|
+
const result = await connection.rpc.call("/api", "voice-sts/models", { provider: selected.provider }, signal);
|
|
28415
28568
|
if (!result.ok || typeof result.value !== "object" || result.value === null || !("models" in result.value) || !Array.isArray(result.value.models)) throw new Error("STS model discovery failed");
|
|
28416
28569
|
const listings = [];
|
|
28417
28570
|
for (const entry of result.value.models) {
|
|
@@ -28549,7 +28702,7 @@ ${value}`, dataLines++;
|
|
|
28549
28702
|
const selected = resolveStsSettings(c);
|
|
28550
28703
|
const connection = ctx.get("connection");
|
|
28551
28704
|
if (connection === void 0) return false;
|
|
28552
|
-
const result = await connection.rpc.call("/
|
|
28705
|
+
const result = await connection.rpc.call("/api", "voice-sts/probe", {
|
|
28553
28706
|
provider: selected.provider,
|
|
28554
28707
|
model: selected.model,
|
|
28555
28708
|
voice: selected.voice,
|
|
@@ -28562,7 +28715,7 @@ ${value}`, dataLines++;
|
|
|
28562
28715
|
listPipelineModels: async (provider, kind, signal) => {
|
|
28563
28716
|
const connection = ctx.get("connection");
|
|
28564
28717
|
if (!connection) throw new Error("Voice connection unavailable");
|
|
28565
|
-
const result = await connection.rpc.call("/
|
|
28718
|
+
const result = await connection.rpc.call("/api", "voice-sts/pipeline-models", {
|
|
28566
28719
|
provider,
|
|
28567
28720
|
kind
|
|
28568
28721
|
}, signal);
|
|
@@ -28573,14 +28726,14 @@ ${value}`, dataLines++;
|
|
|
28573
28726
|
localModelDownloadSize: async (request, signal) => {
|
|
28574
28727
|
const connection = ctx.get("connection");
|
|
28575
28728
|
if (!connection) throw new Error("Voice connection unavailable");
|
|
28576
|
-
const result = await connection.rpc.call("/
|
|
28729
|
+
const result = await connection.rpc.call("/api", "voice-local/install-size", request, signal);
|
|
28577
28730
|
if (!result.ok) throw new Error(result.error.message);
|
|
28578
28731
|
return typeof result.value === "number" && result.value > 0 ? result.value : null;
|
|
28579
28732
|
},
|
|
28580
28733
|
installLocalModels: async (request, signal) => {
|
|
28581
28734
|
const connection = ctx.get("connection");
|
|
28582
28735
|
if (!connection) throw new Error("Voice connection unavailable");
|
|
28583
|
-
const result = await connection.rpc.call("/
|
|
28736
|
+
const result = await connection.rpc.call("/api", request ? "voice-local/install" : "voice-local/install-status", request ?? {}, signal);
|
|
28584
28737
|
if (!result.ok) throw new Error(result.error.message);
|
|
28585
28738
|
const value = result.value;
|
|
28586
28739
|
if (typeof value !== "object" || value === null || !("running" in value) || typeof value.running !== "boolean" || !("phase" in value) || typeof value.phase !== "string" || !("downloaded" in value) || typeof value.downloaded !== "number" || !("total" in value) || typeof value.total !== "number" || !("error" in value) || value.error !== null && typeof value.error !== "string") throw new Error("Invalid local installation status");
|
|
@@ -28595,21 +28748,21 @@ ${value}`, dataLines++;
|
|
|
28595
28748
|
listLocalModels: async (signal) => {
|
|
28596
28749
|
const connection = ctx.get("connection");
|
|
28597
28750
|
if (!connection) throw new Error("Voice connection unavailable");
|
|
28598
|
-
const result = await connection.rpc.call("/
|
|
28751
|
+
const result = await connection.rpc.call("/api", "voice-local/models", {}, signal);
|
|
28599
28752
|
if (!result.ok || !Array.isArray(result.value)) throw new Error("Local model discovery failed");
|
|
28600
28753
|
return parseLocalModels(result.value);
|
|
28601
28754
|
},
|
|
28602
28755
|
wakeReady: async (modelId, signal) => {
|
|
28603
28756
|
const connection = ctx.get("connection");
|
|
28604
28757
|
if (!connection) throw new Error("Voice connection unavailable");
|
|
28605
|
-
const result = await connection.rpc.call("/
|
|
28758
|
+
const result = await connection.rpc.call("/api", "voice-local/wake-readiness", { modelId }, signal);
|
|
28606
28759
|
return result.ok && typeof result.value === "object" && result.value !== null && "ready" in result.value && result.value.ready === true;
|
|
28607
28760
|
},
|
|
28608
28761
|
listVoices: async (selection, signal) => {
|
|
28609
28762
|
const connection = ctx.get("connection");
|
|
28610
28763
|
if (connection === void 0) throw new Error("Voice connection unavailable");
|
|
28611
28764
|
const language = selection.provider === "fish" ? selection.language ?? new Intl.Locale(ctx.locale.getSnapshot().active).language : void 0;
|
|
28612
|
-
const result = await connection.rpc.call("/
|
|
28765
|
+
const result = await connection.rpc.call("/api", "voice-sts/voices", {
|
|
28613
28766
|
...selection,
|
|
28614
28767
|
...language === void 0 ? {} : { language }
|
|
28615
28768
|
}, signal);
|
|
@@ -28660,6 +28813,7 @@ ${value}`, dataLines++;
|
|
|
28660
28813
|
}
|
|
28661
28814
|
}, VoiceSetupPrompt));
|
|
28662
28815
|
}
|
|
28816
|
+
//#endregion
|
|
28663
28817
|
exports.MicDock = MicDock;
|
|
28664
28818
|
exports.VoiceSettings = VoiceSettings;
|
|
28665
28819
|
exports.apply = apply;
|
|
@@ -28675,3 +28829,4 @@ ${value}`, dataLines++;
|
|
|
28675
28829
|
}
|
|
28676
28830
|
});
|
|
28677
28831
|
|
|
28832
|
+
//# sourceMappingURL=client.js.map
|