@burdenoff/fe-libs 2026.903.8 → 2026.903.9
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/dist/shared/assistant/api.js +1 -1
- package/dist/shared/assistant/images.js +1 -1
- package/dist/shared/assistant/index.d.ts +45 -27
- package/dist/shared/assistant/index.d.ts.map +1 -1
- package/dist/shared/assistant/progress.js +1 -1
- package/dist/shared/assistant/speech/hostedTtsProtocol.js +16 -15
- package/dist/shared/assistant/voice/languages.js +18 -18
- package/dist/shared-assistant.js +28 -24
- package/package.json +1 -1
|
@@ -288,4 +288,4 @@ async function H(e, n, r, i, a, o) {
|
|
|
288
288
|
});
|
|
289
289
|
}
|
|
290
290
|
//#endregion
|
|
291
|
-
export { M as buildPromptRequestBody, V as checkAssistantAiCredits, T as createAssistantSandbox, A as createAssistantSession, B as downloadAssistantArtifact, I as extendAssistantSandboxTTL, x as findExistingSandbox, R as getAssistantArtifacts, P as getAssistantMessages, z as getAssistantSession, F as getAssistantStreamAccess, H as reportAssistantAiTokenUsage, N as sendAssistantPromptAsync, L as sendHeartbeat, j as stopReapedAssistantSandbox, k as waitForAssistantServiceReady, O as waitForSandboxRunning };
|
|
291
|
+
export { w as buildAssistantSandboxEnv, M as buildPromptRequestBody, V as checkAssistantAiCredits, T as createAssistantSandbox, A as createAssistantSession, B as downloadAssistantArtifact, I as extendAssistantSandboxTTL, x as findExistingSandbox, R as getAssistantArtifacts, P as getAssistantMessages, z as getAssistantSession, F as getAssistantStreamAccess, C as modeRequiresConfirmWrites, H as reportAssistantAiTokenUsage, S as selectExistingAssistantSandbox, N as sendAssistantPromptAsync, L as sendHeartbeat, j as stopReapedAssistantSandbox, k as waitForAssistantServiceReady, O as waitForSandboxRunning };
|
|
@@ -45,4 +45,4 @@ function o(e) {
|
|
|
45
45
|
return n.startsWith("ai-assistant-vibe-plugins-") ? "vibe-plugins" : n.startsWith("ai-assistant-api-calls-") ? "api-calls" : n.startsWith("ai-assistant-general-") ? "general" : n.startsWith("ai-assistant-assistant-") ? "assistant" : null;
|
|
46
46
|
}
|
|
47
47
|
//#endregion
|
|
48
|
-
export { t as ASSISTANT_API_AUTH_STRATEGY, i as getImageForMode, r as getImageTagForMode, a as getResourcesForMode, o as resolveSandboxAssistantMode };
|
|
48
|
+
export { t as ASSISTANT_API_AUTH_STRATEGY, i as getImageForMode, r as getImageTagForMode, a as getResourcesForMode, n as getSandboxImageRegistry, o as resolveSandboxAssistantMode };
|
|
@@ -4,34 +4,46 @@
|
|
|
4
4
|
*
|
|
5
5
|
* export const useAssistantTransport = () =>
|
|
6
6
|
* useSandboxAssistantTransport({ product: 'myproduct', gatherPageContext });
|
|
7
|
+
*
|
|
8
|
+
* ★★ EVERY line below is `export *`, deliberately, and it should stay that way.
|
|
9
|
+
*
|
|
10
|
+
* This barrel was previously an enumerated list naming the symbols whichever
|
|
11
|
+
* consumer came first happened to import. Three separate times a caller then
|
|
12
|
+
* needed a symbol that had been left behind, and each time it cost a full
|
|
13
|
+
* publish cycle to add one name. When the list was finally audited it was
|
|
14
|
+
* hiding FOURTEEN symbols across nine modules — including `DEFAULT_SPEECH_RATE`,
|
|
15
|
+
* `modeRequiresConfirmWrites` and `buildAssistantSandboxEnv`, none of which
|
|
16
|
+
* anyone had chosen to conceal; they were simply never typed out.
|
|
17
|
+
*
|
|
18
|
+
* A star export is complete by construction: the MODULE decides what is public,
|
|
19
|
+
* and a helper added there is reachable with no second edit here. The failure
|
|
20
|
+
* mode it removes is silent — a missing name looks exactly like a name that was
|
|
21
|
+
* withheld on purpose, so nobody questions it until a consumer is blocked.
|
|
22
|
+
*
|
|
23
|
+
* If a symbol genuinely should not be public, stop exporting it from its own
|
|
24
|
+
* module. Do not re-introduce an allow-list here.
|
|
25
|
+
*
|
|
26
|
+
* Checked for ambiguity when this was written: no two modules below declare the
|
|
27
|
+
* same exported name, so no binding is silently dropped. Re-run that check
|
|
28
|
+
* before adding a module (a duplicate name is excluded by ES semantics without
|
|
29
|
+
* any error, which is exactly the kind of quiet loss this file now exists to
|
|
30
|
+
* prevent).
|
|
7
31
|
*/
|
|
8
|
-
export
|
|
9
|
-
export
|
|
10
|
-
export
|
|
11
|
-
export
|
|
12
|
-
export
|
|
13
|
-
export
|
|
14
|
-
export
|
|
15
|
-
export
|
|
16
|
-
export
|
|
17
|
-
export
|
|
18
|
-
export
|
|
19
|
-
export
|
|
20
|
-
export
|
|
21
|
-
export
|
|
22
|
-
export
|
|
23
|
-
export type { SpeechEngine, SpeechSpeakOptions, SpeechSpeakHandlers, SpeechErrorReason } from './speech/types';
|
|
24
|
-
export { buildVoiceTranscriptMarkdown, voiceTranscriptFilename, buildContinuedFromVoiceNote } from './voice/voiceTranscript';
|
|
25
|
-
export { resolveLanguagePair, replyFollowsInput } from './voice/languagePair';
|
|
26
|
-
export { ASSISTANT_LANGUAGES, resolveAssistantLanguage, findAssistantLanguage } from './voice/languages';
|
|
27
|
-
export type { AssistantLanguage } from './voice/languages';
|
|
28
|
-
export { browserSpeechEngine } from './speech/browserSpeechEngine';
|
|
29
|
-
export { createHostedTtsEngine } from './speech/hostedTtsSpeechEngine';
|
|
30
|
-
export { createRoutingSpeechEngine } from './speech/routingSpeechEngine';
|
|
31
|
-
export { HOSTED_VOICES, HOSTED_TTS_TIER, hostedSupportsLanguage } from './speech/hostedVoiceCatalogue';
|
|
32
|
-
export type { SpeechEngineConfig } from './speech/createSpeechEngine';
|
|
33
|
-
export { getSpeechEngine, resetSpeechEngine, configureSpeechEngine, readSpeechEngineConfig, } from './speech/createSpeechEngine';
|
|
34
|
-
export type { SpeechVoiceLike } from './speech/types';
|
|
32
|
+
export * from './useSandboxAssistantTransport';
|
|
33
|
+
export * from './createSandboxAssistantTransport';
|
|
34
|
+
export * from './runtime';
|
|
35
|
+
export * from './gatewayClient';
|
|
36
|
+
export * from './progress';
|
|
37
|
+
export * from './api';
|
|
38
|
+
export * from './types';
|
|
39
|
+
export * from './voice/turnVisibility';
|
|
40
|
+
export * from './speech/types';
|
|
41
|
+
export * from './speech/createSpeechEngine';
|
|
42
|
+
export * from './speech/browserSpeechEngine';
|
|
43
|
+
export * from './speech/hostedTtsSpeechEngine';
|
|
44
|
+
export * from './speech/routingSpeechEngine';
|
|
45
|
+
export * from './speech/hostedVoiceCatalogue';
|
|
46
|
+
export * from './voice/useVoiceInput';
|
|
35
47
|
export * from './voice/voiceStageState';
|
|
36
48
|
export * from './voice/voiceSession';
|
|
37
49
|
export * from './voice/speechVoices';
|
|
@@ -41,4 +53,10 @@ export * from './voice/voicePreview';
|
|
|
41
53
|
export * from './voice/assistantPollSchedule';
|
|
42
54
|
export * from './voice/captionText';
|
|
43
55
|
export * from './voice/languagePair';
|
|
56
|
+
export * from './voice/languages';
|
|
57
|
+
export * from './pendingWrite';
|
|
58
|
+
export * from './images';
|
|
59
|
+
export * from './operations';
|
|
60
|
+
export * from './capabilities';
|
|
61
|
+
export * from './speech/hostedTtsProtocol';
|
|
44
62
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/shared/assistant/index.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/shared/assistant/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AAGH,cAAc,gCAAgC,CAAC;AAC/C,cAAc,mCAAmC,CAAC;AAClD,cAAc,WAAW,CAAC;AAC1B,cAAc,iBAAiB,CAAC;AAChC,cAAc,YAAY,CAAC;AAC3B,cAAc,OAAO,CAAC;AACtB,cAAc,SAAS,CAAC;AAGxB,cAAc,wBAAwB,CAAC;AAKvC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,6BAA6B,CAAC;AAC5C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,+BAA+B,CAAC;AAG9C,cAAc,uBAAuB,CAAC;AACtC,cAAc,yBAAyB,CAAC;AACxC,cAAc,sBAAsB,CAAC;AACrC,cAAc,sBAAsB,CAAC;AACrC,cAAc,yBAAyB,CAAC;AACxC,cAAc,uBAAuB,CAAC;AACtC,cAAc,sBAAsB,CAAC;AACrC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,qBAAqB,CAAC;AACpC,cAAc,sBAAsB,CAAC;AACrC,cAAc,mBAAmB,CAAC;AAGlC,cAAc,gBAAgB,CAAC;AAK/B,cAAc,UAAU,CAAC;AACzB,cAAc,cAAc,CAAC;AAC7B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,4BAA4B,CAAC"}
|
|
@@ -106,4 +106,4 @@ function f(n) {
|
|
|
106
106
|
return r;
|
|
107
107
|
}
|
|
108
108
|
//#endregion
|
|
109
|
-
export { s as buildProgress, a as getAssistantMedia, l as isReapedSandboxConnectionError, u as isRecoverable, f as mapSessionToHistory, d as mergeMessagesById, c as sanitize };
|
|
109
|
+
export { s as buildProgress, a as getAssistantMedia, t as getAssistantText, e as getRawMessageCreatedAt, o as getToolProgress, l as isReapedSandboxConnectionError, u as isRecoverable, f as mapSessionToHistory, d as mergeMessagesById, c as sanitize };
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
//#region src/shared/assistant/speech/hostedTtsProtocol.ts
|
|
2
|
-
|
|
2
|
+
var e = .25, t = 4, n = 2, r = 4;
|
|
3
|
+
function i(e, t) {
|
|
3
4
|
return t ? !1 : e === "not-allowed" || e === "unsupported";
|
|
4
5
|
}
|
|
5
|
-
var
|
|
6
|
-
function
|
|
6
|
+
var a = 2e3;
|
|
7
|
+
function o(e, t, n, r, i) {
|
|
7
8
|
let a = {
|
|
8
9
|
text: e,
|
|
9
10
|
languageCode: t,
|
|
@@ -11,32 +12,32 @@ function n(e, t, n, r, i) {
|
|
|
11
12
|
};
|
|
12
13
|
return r && r.toLowerCase().startsWith(t.toLowerCase()) && (a.voiceName = r), i !== void 0 && (a.speakingRate = i), a;
|
|
13
14
|
}
|
|
14
|
-
function
|
|
15
|
+
function s(e) {
|
|
15
16
|
return e === 401 || e === 403 ? "not-allowed" : e === 404 || e === 501 ? "unsupported" : "unknown";
|
|
16
17
|
}
|
|
17
|
-
function
|
|
18
|
+
function c(e) {
|
|
18
19
|
let t = globalThis.Buffer, n = typeof atob == "function" ? atob(e) : t?.from(e, "base64").toString("binary") ?? "", r = new Uint8Array(n.length);
|
|
19
20
|
for (let e = 0; e < n.length; e += 1) r[e] = n.charCodeAt(e);
|
|
20
21
|
return r;
|
|
21
22
|
}
|
|
22
|
-
function
|
|
23
|
+
function l(e, t) {
|
|
23
24
|
if (t instanceof ArrayBuffer) return t.byteLength > 0 ? new Uint8Array(t) : null;
|
|
24
25
|
if (e?.includes("json") || typeof t == "object") {
|
|
25
26
|
let e = t.audioContent;
|
|
26
27
|
if (!e) return null;
|
|
27
|
-
let n =
|
|
28
|
+
let n = c(e);
|
|
28
29
|
return n.length > 0 ? n : null;
|
|
29
30
|
}
|
|
30
31
|
return null;
|
|
31
32
|
}
|
|
32
|
-
function
|
|
33
|
-
if (e.length <=
|
|
34
|
-
let
|
|
35
|
-
for (;
|
|
36
|
-
let e =
|
|
37
|
-
|
|
33
|
+
function u(e, t = a) {
|
|
34
|
+
if (e.length <= t) return [e];
|
|
35
|
+
let n = [], r = e;
|
|
36
|
+
for (; r.length > t;) {
|
|
37
|
+
let e = r.slice(0, t).lastIndexOf(" "), i = e > t * .5 ? e : t;
|
|
38
|
+
n.push(r.slice(0, i).trim()), r = r.slice(i).trim();
|
|
38
39
|
}
|
|
39
|
-
return
|
|
40
|
+
return r && n.push(r), n.filter((e) => e.length > 0);
|
|
40
41
|
}
|
|
41
42
|
//#endregion
|
|
42
|
-
export { n as buildRequest,
|
|
43
|
+
export { a as HOSTED_TTS_MAX_CHARS, r as SPEAKING_RATE_MAX, n as SPEAKING_RATE_MAX_STREAMING, t as SPEAKING_RATE_MAX_SYNC, e as SPEAKING_RATE_MIN, c as base64ToBytes, o as buildRequest, s as classifyHttpFailure, l as decodeAudioResponse, i as shouldDisableEngine, u as splitForVendor };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
//#region src/shared/assistant/voice/languages.ts
|
|
2
|
-
var e = .
|
|
2
|
+
var e = .9, t = .85, n = [
|
|
3
3
|
{
|
|
4
4
|
code: "en",
|
|
5
5
|
tag: "en-IN",
|
|
@@ -11,77 +11,77 @@ var e = .85, t = [
|
|
|
11
11
|
tag: "hi-IN",
|
|
12
12
|
label: "हिन्दी",
|
|
13
13
|
english: "Hindi",
|
|
14
|
-
rate:
|
|
14
|
+
rate: t
|
|
15
15
|
},
|
|
16
16
|
{
|
|
17
17
|
code: "bn",
|
|
18
18
|
tag: "bn-IN",
|
|
19
19
|
label: "বাংলা",
|
|
20
20
|
english: "Bengali",
|
|
21
|
-
rate:
|
|
21
|
+
rate: t
|
|
22
22
|
},
|
|
23
23
|
{
|
|
24
24
|
code: "te",
|
|
25
25
|
tag: "te-IN",
|
|
26
26
|
label: "తెలుగు",
|
|
27
27
|
english: "Telugu",
|
|
28
|
-
rate:
|
|
28
|
+
rate: t
|
|
29
29
|
},
|
|
30
30
|
{
|
|
31
31
|
code: "mr",
|
|
32
32
|
tag: "mr-IN",
|
|
33
33
|
label: "मराठी",
|
|
34
34
|
english: "Marathi",
|
|
35
|
-
rate:
|
|
35
|
+
rate: t
|
|
36
36
|
},
|
|
37
37
|
{
|
|
38
38
|
code: "ta",
|
|
39
39
|
tag: "ta-IN",
|
|
40
40
|
label: "தமிழ்",
|
|
41
41
|
english: "Tamil",
|
|
42
|
-
rate:
|
|
42
|
+
rate: t
|
|
43
43
|
},
|
|
44
44
|
{
|
|
45
45
|
code: "gu",
|
|
46
46
|
tag: "gu-IN",
|
|
47
47
|
label: "ગુજરાતી",
|
|
48
48
|
english: "Gujarati",
|
|
49
|
-
rate:
|
|
49
|
+
rate: t
|
|
50
50
|
},
|
|
51
51
|
{
|
|
52
52
|
code: "kn",
|
|
53
53
|
tag: "kn-IN",
|
|
54
54
|
label: "ಕನ್ನಡ",
|
|
55
55
|
english: "Kannada",
|
|
56
|
-
rate:
|
|
56
|
+
rate: t
|
|
57
57
|
},
|
|
58
58
|
{
|
|
59
59
|
code: "ml",
|
|
60
60
|
tag: "ml-IN",
|
|
61
61
|
label: "മലയാളം",
|
|
62
62
|
english: "Malayalam",
|
|
63
|
-
rate:
|
|
63
|
+
rate: t
|
|
64
64
|
},
|
|
65
65
|
{
|
|
66
66
|
code: "pa",
|
|
67
67
|
tag: "pa-IN",
|
|
68
68
|
label: "ਪੰਜਾਬੀ",
|
|
69
69
|
english: "Punjabi",
|
|
70
|
-
rate:
|
|
70
|
+
rate: t
|
|
71
71
|
},
|
|
72
72
|
{
|
|
73
73
|
code: "ur",
|
|
74
74
|
tag: "ur-IN",
|
|
75
75
|
label: "اردو",
|
|
76
76
|
english: "Urdu",
|
|
77
|
-
rate:
|
|
77
|
+
rate: t
|
|
78
78
|
},
|
|
79
79
|
{
|
|
80
80
|
code: "ar",
|
|
81
81
|
tag: "ar-SA",
|
|
82
82
|
label: "العربية",
|
|
83
83
|
english: "Arabic",
|
|
84
|
-
rate:
|
|
84
|
+
rate: t
|
|
85
85
|
},
|
|
86
86
|
{
|
|
87
87
|
code: "es",
|
|
@@ -113,12 +113,12 @@ var e = .85, t = [
|
|
|
113
113
|
label: "日本語",
|
|
114
114
|
english: "Japanese"
|
|
115
115
|
}
|
|
116
|
-
],
|
|
117
|
-
function
|
|
118
|
-
return e ?
|
|
116
|
+
], r = new Map(n.map((e) => [e.code, e])), i = r.get("en");
|
|
117
|
+
function a(e) {
|
|
118
|
+
return e ? r.get(e.trim().toLowerCase().split("-")[0]) ?? null : null;
|
|
119
119
|
}
|
|
120
|
-
function
|
|
121
|
-
return
|
|
120
|
+
function o(e, t) {
|
|
121
|
+
return a(e) ?? a(t) ?? i;
|
|
122
122
|
}
|
|
123
123
|
//#endregion
|
|
124
|
-
export {
|
|
124
|
+
export { n as ASSISTANT_LANGUAGES, e as DEFAULT_SPEECH_RATE, a as findAssistantLanguage, o as resolveAssistantLanguage };
|
package/dist/shared-assistant.js
CHANGED
|
@@ -1,25 +1,29 @@
|
|
|
1
1
|
import { useVoiceInput as e } from "./shared/assistant/voice/useVoiceInput.js";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import { DEFAULT_SPEAKABLE_LABELS as
|
|
23
|
-
import { PREVIEW_LANGUAGES as
|
|
24
|
-
import { POLL_FAST_MS as
|
|
25
|
-
|
|
2
|
+
import { buildSandboxContextInput as t, executeSandboxGraphQL as n, isQuotaExhaustedError as r } from "./shared/assistant/gatewayClient.js";
|
|
3
|
+
import { CHECK_AI_CREDITS as i, CREATE_SANDBOX as a, EXTEND_SANDBOX_TTL as o, GET_ACTIVE_SANDBOXES as s, GET_SANDBOX as c, PROXY_SANDBOX_REQUEST as l, REPORT_AI_TOKEN_USAGE as u, STOP_ASSISTANT_SANDBOX as d, WAIT_FOR_SANDBOX_RUNNING as f } from "./shared/assistant/operations.js";
|
|
4
|
+
import { ASSISTANT_API_AUTH_STRATEGY as p, getImageForMode as m, getImageTagForMode as h, getResourcesForMode as g, getSandboxImageRegistry as _, resolveSandboxAssistantMode as v } from "./shared/assistant/images.js";
|
|
5
|
+
import { getCapability as y, isUnknownFieldError as b, markSupported as x, markUnsupported as S } from "./shared/assistant/capabilities.js";
|
|
6
|
+
import { buildAssistantSandboxEnv as C, buildPromptRequestBody as w, checkAssistantAiCredits as T, createAssistantSandbox as E, createAssistantSession as D, downloadAssistantArtifact as O, extendAssistantSandboxTTL as k, findExistingSandbox as A, getAssistantArtifacts as j, getAssistantMessages as M, getAssistantSession as N, getAssistantStreamAccess as P, modeRequiresConfirmWrites as F, reportAssistantAiTokenUsage as I, selectExistingAssistantSandbox as L, sendAssistantPromptAsync as R, sendHeartbeat as z, stopReapedAssistantSandbox as B, waitForAssistantServiceReady as V, waitForSandboxRunning as H } from "./shared/assistant/api.js";
|
|
7
|
+
import { AssistantRuntimeManager as U } from "./shared/assistant/runtime.js";
|
|
8
|
+
import { buildProgress as W, getAssistantMedia as G, getAssistantText as K, getRawMessageCreatedAt as q, getToolProgress as J, isReapedSandboxConnectionError as Y, isRecoverable as X, mapSessionToHistory as Z, mergeMessagesById as Q, sanitize as $ } from "./shared/assistant/progress.js";
|
|
9
|
+
import { createSandboxAssistantTransport as ee } from "./shared/assistant/createSandboxAssistantTransport.js";
|
|
10
|
+
import { useSandboxAssistantTransport as te } from "./shared/assistant/useSandboxAssistantTransport.js";
|
|
11
|
+
import { chatTurns as ne, groupBySession as re, groupConsecutiveBySession as ie, isVoiceTurn as ae, voiceMarker as oe, voiceSessionIdOf as se, voiceTurnsOnly as ce } from "./shared/assistant/voice/turnVisibility.js";
|
|
12
|
+
import { browserSpeechEngine as le } from "./shared/assistant/speech/browserSpeechEngine.js";
|
|
13
|
+
import { HOSTED_TTS_TIER as ue, HOSTED_VOICES as de, hostedLocaleFor as fe, hostedSupportsLanguage as pe } from "./shared/assistant/speech/hostedVoiceCatalogue.js";
|
|
14
|
+
import { HOSTED_TTS_MAX_CHARS as me, SPEAKING_RATE_MAX as he, SPEAKING_RATE_MAX_STREAMING as ge, SPEAKING_RATE_MAX_SYNC as _e, SPEAKING_RATE_MIN as ve, base64ToBytes as ye, buildRequest as be, classifyHttpFailure as xe, decodeAudioResponse as Se, shouldDisableEngine as Ce, splitForVendor as we } from "./shared/assistant/speech/hostedTtsProtocol.js";
|
|
15
|
+
import { createHostedTtsEngine as Te } from "./shared/assistant/speech/hostedTtsSpeechEngine.js";
|
|
16
|
+
import { createRoutingSpeechEngine as Ee } from "./shared/assistant/speech/routingSpeechEngine.js";
|
|
17
|
+
import { configureSpeechEngine as De, createSpeechEngines as Oe, getSpeechEngine as ke, readSpeechEngineConfig as Ae, resetSpeechEngine as je } from "./shared/assistant/speech/createSpeechEngine.js";
|
|
18
|
+
import { micIsInterrupt as Me, showsAssistantCaption as Ne, showsUserCaption as Pe, voiceStageState as Fe, waveformIsActive as Ie, waveformIsSettled as Le } from "./shared/assistant/voice/voiceStageState.js";
|
|
19
|
+
import { ENDPOINT_GRACE_MS as Re, INITIAL_SESSION as ze, INTERRUPT_MAX_MS as Be, INTERRUPT_MIN_MS as Ve, SILENCE_SUBMIT_MS as He, isCapturing as Ue, isEcho as We, isSubmittable as Ge, orbMode as Ke, planReplyConsumption as qe, spokenSoFar as Je, voiceSessionReducer as Ye } from "./shared/assistant/voice/voiceSession.js";
|
|
20
|
+
import { SPEECH_LANG as Xe, VOICE_LIST_TIMEOUT_MS as Ze, isSpeechBlocked as Qe, languageDisplayName as $e, normalizeLangTag as et, primaryLanguageSubtag as tt, selectVoiceForLocale as nt, speechGate as rt, speechLangForLocale as it, voiceAvailability as at, voiceQualityRank as ot, voicesForLocale as st } from "./shared/assistant/voice/speechVoices.js";
|
|
21
|
+
import { buildContinuedFromVoiceNote as ct, buildVoiceTranscriptMarkdown as lt, voiceTranscriptFilename as ut } from "./shared/assistant/voice/voiceTranscript.js";
|
|
22
|
+
import { DEFAULT_SPEAKABLE_LABELS as dt, MAX_SPEAKABLE_CHARS as ft, MAX_SPOKEN_TABLE_ROWS as pt, SPEECH_CHUNK_CHARS as mt, SPEECH_CHUNK_CJK_CHARS as ht, chunkForSpeech as gt, containsCjk as _t, speakableEmail as vt, splitTableRow as yt, toSpeakableText as bt } from "./shared/assistant/voice/speakableText.js";
|
|
23
|
+
import { PREVIEW_LANGUAGES as xt, voicePreviewText as St } from "./shared/assistant/voice/voicePreview.js";
|
|
24
|
+
import { POLL_FAST_MS as Ct, POLL_FAST_UNTIL_MS as wt, POLL_SLOW_MS as Tt, POLL_STEADY_MS as Et, POLL_STEADY_UNTIL_MS as Dt, pollDelayMs as Ot } from "./shared/assistant/voice/assistantPollSchedule.js";
|
|
25
|
+
import { toCaptionText as kt } from "./shared/assistant/voice/captionText.js";
|
|
26
|
+
import { ASSISTANT_LANGUAGES as At, DEFAULT_SPEECH_RATE as jt, findAssistantLanguage as Mt, resolveAssistantLanguage as Nt } from "./shared/assistant/voice/languages.js";
|
|
27
|
+
import { replyFollowsInput as Pt, resolveLanguagePair as Ft } from "./shared/assistant/voice/languagePair.js";
|
|
28
|
+
import { findPendingWrite as It, parseConfirmationRefusal as Lt } from "./shared/assistant/pendingWrite.js";
|
|
29
|
+
export { p as ASSISTANT_API_AUTH_STRATEGY, At as ASSISTANT_LANGUAGES, U as AssistantRuntimeManager, i as CHECK_AI_CREDITS, a as CREATE_SANDBOX, dt as DEFAULT_SPEAKABLE_LABELS, jt as DEFAULT_SPEECH_RATE, Re as ENDPOINT_GRACE_MS, o as EXTEND_SANDBOX_TTL, s as GET_ACTIVE_SANDBOXES, c as GET_SANDBOX, me as HOSTED_TTS_MAX_CHARS, ue as HOSTED_TTS_TIER, de as HOSTED_VOICES, ze as INITIAL_SESSION, Be as INTERRUPT_MAX_MS, Ve as INTERRUPT_MIN_MS, ft as MAX_SPEAKABLE_CHARS, pt as MAX_SPOKEN_TABLE_ROWS, Ct as POLL_FAST_MS, wt as POLL_FAST_UNTIL_MS, Tt as POLL_SLOW_MS, Et as POLL_STEADY_MS, Dt as POLL_STEADY_UNTIL_MS, xt as PREVIEW_LANGUAGES, l as PROXY_SANDBOX_REQUEST, u as REPORT_AI_TOKEN_USAGE, He as SILENCE_SUBMIT_MS, he as SPEAKING_RATE_MAX, ge as SPEAKING_RATE_MAX_STREAMING, _e as SPEAKING_RATE_MAX_SYNC, ve as SPEAKING_RATE_MIN, mt as SPEECH_CHUNK_CHARS, ht as SPEECH_CHUNK_CJK_CHARS, Xe as SPEECH_LANG, d as STOP_ASSISTANT_SANDBOX, Ze as VOICE_LIST_TIMEOUT_MS, f as WAIT_FOR_SANDBOX_RUNNING, ye as base64ToBytes, le as browserSpeechEngine, C as buildAssistantSandboxEnv, ct as buildContinuedFromVoiceNote, W as buildProgress, w as buildPromptRequestBody, be as buildRequest, t as buildSandboxContextInput, lt as buildVoiceTranscriptMarkdown, ne as chatTurns, T as checkAssistantAiCredits, gt as chunkForSpeech, xe as classifyHttpFailure, De as configureSpeechEngine, _t as containsCjk, E as createAssistantSandbox, D as createAssistantSession, Te as createHostedTtsEngine, Ee as createRoutingSpeechEngine, ee as createSandboxAssistantTransport, Oe as createSpeechEngines, Se as decodeAudioResponse, O as downloadAssistantArtifact, n as executeSandboxGraphQL, k as extendAssistantSandboxTTL, Mt as findAssistantLanguage, A as findExistingSandbox, It as findPendingWrite, j as getAssistantArtifacts, G as getAssistantMedia, M as getAssistantMessages, N as getAssistantSession, P as getAssistantStreamAccess, K as getAssistantText, y as getCapability, m as getImageForMode, h as getImageTagForMode, q as getRawMessageCreatedAt, g as getResourcesForMode, _ as getSandboxImageRegistry, ke as getSpeechEngine, J as getToolProgress, re as groupBySession, ie as groupConsecutiveBySession, fe as hostedLocaleFor, pe as hostedSupportsLanguage, Ue as isCapturing, We as isEcho, r as isQuotaExhaustedError, Y as isReapedSandboxConnectionError, X as isRecoverable, Qe as isSpeechBlocked, Ge as isSubmittable, b as isUnknownFieldError, ae as isVoiceTurn, $e as languageDisplayName, Z as mapSessionToHistory, x as markSupported, S as markUnsupported, Q as mergeMessagesById, Me as micIsInterrupt, F as modeRequiresConfirmWrites, et as normalizeLangTag, Ke as orbMode, Lt as parseConfirmationRefusal, qe as planReplyConsumption, Ot as pollDelayMs, tt as primaryLanguageSubtag, Ae as readSpeechEngineConfig, Pt as replyFollowsInput, I as reportAssistantAiTokenUsage, je as resetSpeechEngine, Nt as resolveAssistantLanguage, Ft as resolveLanguagePair, v as resolveSandboxAssistantMode, $ as sanitize, L as selectExistingAssistantSandbox, nt as selectVoiceForLocale, R as sendAssistantPromptAsync, z as sendHeartbeat, Ce as shouldDisableEngine, Ne as showsAssistantCaption, Pe as showsUserCaption, vt as speakableEmail, rt as speechGate, it as speechLangForLocale, we as splitForVendor, yt as splitTableRow, Je as spokenSoFar, B as stopReapedAssistantSandbox, kt as toCaptionText, bt as toSpeakableText, te as useSandboxAssistantTransport, e as useVoiceInput, at as voiceAvailability, oe as voiceMarker, St as voicePreviewText, ot as voiceQualityRank, se as voiceSessionIdOf, Ye as voiceSessionReducer, Fe as voiceStageState, ut as voiceTranscriptFilename, ce as voiceTurnsOnly, st as voicesForLocale, V as waitForAssistantServiceReady, H as waitForSandboxRunning, Ie as waveformIsActive, Le as waveformIsSettled };
|