@burdenoff/fe-libs 2026.906.4 → 2026.906.6
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.d.ts +34 -0
- package/dist/shared/assistant/api.d.ts.map +1 -1
- package/dist/shared/assistant/api.js +39 -14
- package/dist/shared/assistant/ui/AssistantChatArea.d.ts.map +1 -1
- package/dist/shared/assistant/ui/AssistantChatArea.js +254 -254
- package/dist/shared/assistant/ui/useVoiceSession.d.ts.map +1 -1
- package/dist/shared/assistant/ui/useVoiceSession.js +2 -0
- package/dist/shared/assistant/ui/voice/VoiceCaption.d.ts.map +1 -1
- package/dist/shared/assistant/ui/voice/VoiceCaption.js +22 -18
- package/dist/shared-assistant.js +87 -87
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useVoiceSession.d.ts","sourceRoot":"","sources":["../../../../src/shared/assistant/ui/useVoiceSession.ts"],"names":[],"mappings":"AAUA,OAAO,EAWL,KAAK,oBAAoB,EAE1B,MAAM,uBAAuB,CAAC;AAsC/B;;;;;;;;GAQG;AACH,MAAM,MAAM,kBAAkB,GAC1B,SAAS,GACT,eAAe,GACf,eAAe,GACf,oBAAoB,CAAC;AAMzB,UAAU,OAAO;IACf,+EAA+E;IAC/E;;;;;;;OAOG;IACH,QAAQ,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,cAAc,EAAE,MAAM,KAAK,IAAI,CAAC;IACzD;;;;OAIG;IACH,WAAW,EAAE;QAAE,EAAE,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,GAAG,IAAI,CAAC;IACjD,6EAA6E;IAC7E,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,eAAe,CAAC,EAAE,QAAQ,EAAE,WAAW,EAAE,QAAQ,EAAE,EAAE,OAAO;;
|
|
1
|
+
{"version":3,"file":"useVoiceSession.d.ts","sourceRoot":"","sources":["../../../../src/shared/assistant/ui/useVoiceSession.ts"],"names":[],"mappings":"AAUA,OAAO,EAWL,KAAK,oBAAoB,EAE1B,MAAM,uBAAuB,CAAC;AAsC/B;;;;;;;;GAQG;AACH,MAAM,MAAM,kBAAkB,GAC1B,SAAS,GACT,eAAe,GACf,eAAe,GACf,oBAAoB,CAAC;AAMzB,UAAU,OAAO;IACf,+EAA+E;IAC/E;;;;;;;OAOG;IACH,QAAQ,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,cAAc,EAAE,MAAM,KAAK,IAAI,CAAC;IACzD;;;;OAIG;IACH,WAAW,EAAE;QAAE,EAAE,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,GAAG,IAAI,CAAC;IACjD,6EAA6E;IAC7E,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,eAAe,CAAC,EAAE,QAAQ,EAAE,WAAW,EAAE,QAAQ,EAAE,EAAE,OAAO;;IAqftE,qEAAqE;;IAErE;;;;;;;OAOG;;;;;IAEH,+DAA+D;;IAE/D;;;;;;;OAOG;;IAIH,0EAA0E;;IAE1E,6DAA6D;;IAE7D,sDAAsD;;;;;;EA4B3D"}
|
|
@@ -77,6 +77,8 @@ function x({ onSubmit: x, latestReply: S, language: C }) {
|
|
|
77
77
|
error: "no-speech-support"
|
|
78
78
|
}) : G.error === "network" ? F("network") : G.error === "unknown" && F("recognition-failed");
|
|
79
79
|
}, [G.error]), d(() => {
|
|
80
|
+
G.error !== null || !G.isListening || F((e) => e === "network" || e === "recognition-failed" ? null : e);
|
|
81
|
+
}, [G.error, G.isListening]), d(() => {
|
|
80
82
|
if (G.isListening && F((e) => e === "not-capturing" ? null : e), !i(T) || G.isListening) return;
|
|
81
83
|
let e = setTimeout(() => F("not-capturing"), v);
|
|
82
84
|
return () => clearTimeout(e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"VoiceCaption.d.ts","sourceRoot":"","sources":["../../../../../src/shared/assistant/ui/voice/VoiceCaption.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAqB,KAAK,EAAE,EAAE,MAAM,OAAO,CAAC;AAEnD;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AAEH,UAAU,KAAK;IACb,IAAI,EAAE,MAAM,CAAC;IACb,gEAAgE;IAChE,IAAI,EAAE,MAAM,GAAG,WAAW,CAAC;IAC3B,mDAAmD;IACnD,QAAQ,EAAE,OAAO,CAAC;IAClB;;;;;;;;;;;;;OAaG;IACH,YAAY,CAAC,EAAE;QAAE,MAAM,EAAE,MAAM,EAAE,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,GAAG,IAAI,CAAC;IAC1D,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED;;;;GAIG;AACH,eAAO,MAAM,mBAAmB,wBAAwB,CAAC;AAEzD,eAAO,MAAM,YAAY,EAAE,EAAE,CAAC,KAAK,
|
|
1
|
+
{"version":3,"file":"VoiceCaption.d.ts","sourceRoot":"","sources":["../../../../../src/shared/assistant/ui/voice/VoiceCaption.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAqB,KAAK,EAAE,EAAE,MAAM,OAAO,CAAC;AAEnD;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AAEH,UAAU,KAAK;IACb,IAAI,EAAE,MAAM,CAAC;IACb,gEAAgE;IAChE,IAAI,EAAE,MAAM,GAAG,WAAW,CAAC;IAC3B,mDAAmD;IACnD,QAAQ,EAAE,OAAO,CAAC;IAClB;;;;;;;;;;;;;OAaG;IACH,YAAY,CAAC,EAAE;QAAE,MAAM,EAAE,MAAM,EAAE,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,GAAG,IAAI,CAAC;IAC1D,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED;;;;GAIG;AACH,eAAO,MAAM,mBAAmB,wBAAwB,CAAC;AAEzD,eAAO,MAAM,YAAY,EAAE,EAAE,CAAC,KAAK,CAqKlC,CAAC"}
|
|
@@ -1,34 +1,38 @@
|
|
|
1
1
|
import { useEffect as e, useRef as t } from "react";
|
|
2
|
-
import { jsx as n
|
|
2
|
+
import { jsx as n } from "react/jsx-runtime";
|
|
3
3
|
//#region src/shared/assistant/ui/voice/VoiceCaption.tsx
|
|
4
|
-
var
|
|
5
|
-
let
|
|
4
|
+
var r = "data-caption-scroll", i = ({ text: i, role: a, expanded: o, spokenChunks: s = null, testId: c }) => {
|
|
5
|
+
let l = t(null), u = a === "assistant", d = u && s && s.index >= 0 ? s : null, f = u && s !== null && s.index < 0;
|
|
6
6
|
return e(() => {
|
|
7
|
-
let e =
|
|
7
|
+
let e = l.current;
|
|
8
8
|
if (!e) return;
|
|
9
|
-
let t = e.closest(`[${
|
|
9
|
+
let t = e.closest(`[${r}]`);
|
|
10
10
|
if (!t) return;
|
|
11
|
-
let n = e.offsetTop - t.offsetTop,
|
|
12
|
-
|
|
13
|
-
}, [
|
|
11
|
+
let n = e.offsetTop - t.offsetTop, i = n + e.offsetHeight;
|
|
12
|
+
i > t.scrollTop + t.clientHeight ? t.scrollTop = i - t.clientHeight : n < t.scrollTop && (t.scrollTop = n);
|
|
13
|
+
}, [d?.index]), /* @__PURE__ */ n("div", {
|
|
14
14
|
className: "flex w-full justify-center",
|
|
15
15
|
children: /* @__PURE__ */ n("p", {
|
|
16
16
|
className: [
|
|
17
17
|
"w-full whitespace-pre-wrap break-words text-left",
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
18
|
+
o ? "max-w-[45rem]" : "max-w-md",
|
|
19
|
+
u ? "font-semibold text-text-primary" : "font-medium text-text-secondary",
|
|
20
|
+
u ? o ? "text-[clamp(1.625rem,2.5vw,2.25rem)] leading-[1.5]" : "text-[clamp(1.625rem,2vw,2rem)] leading-[1.5]" : o ? "text-[clamp(1.125rem,1.8vw,1.375rem)] leading-[1.5]" : "text-base leading-relaxed"
|
|
21
21
|
].join(" "),
|
|
22
22
|
role: "status",
|
|
23
23
|
"aria-live": "polite",
|
|
24
|
-
"data-testid":
|
|
25
|
-
children:
|
|
26
|
-
className:
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
24
|
+
"data-testid": c,
|
|
25
|
+
children: d ? d.chunks.slice(0, d.index + 1).map((e, t) => /* @__PURE__ */ n("span", {
|
|
26
|
+
className: [
|
|
27
|
+
"block",
|
|
28
|
+
t > 0 ? "mt-2" : "",
|
|
29
|
+
t === d.index ? "text-text-primary" : "text-text-muted transition-colors duration-300"
|
|
30
|
+
].join(" "),
|
|
31
|
+
ref: t === d.index ? l : void 0,
|
|
32
|
+
children: e
|
|
33
|
+
}, t)) : f ? null : i
|
|
30
34
|
})
|
|
31
35
|
});
|
|
32
36
|
};
|
|
33
37
|
//#endregion
|
|
34
|
-
export {
|
|
38
|
+
export { r as CAPTION_SCROLL_ATTR, i as VoiceCaption };
|
package/dist/shared-assistant.js
CHANGED
|
@@ -4,90 +4,90 @@ import { buildSandboxContextInput as i, executeSandboxGraphQL as a } from "./sha
|
|
|
4
4
|
import { CHECK_AI_CREDITS as o, CREATE_SANDBOX as s, EXTEND_SANDBOX_TTL as c, GET_ACTIVE_SANDBOXES as l, GET_SANDBOX as u, PROXY_SANDBOX_REQUEST as d, REPORT_AI_TOKEN_USAGE as f, STOP_ASSISTANT_SANDBOX as p, WAIT_FOR_SANDBOX_RUNNING as m } from "./shared/assistant/operations.js";
|
|
5
5
|
import { ASSISTANT_API_AUTH_STRATEGY as h, getImageForMode as g, getImageTagForMode as _, getResourcesForMode as v, getSandboxImageRegistry as y, resolveSandboxAssistantMode as b } from "./shared/assistant/images.js";
|
|
6
6
|
import { getCapability as x, isUnknownFieldError as S, markSupported as C, markUnsupported as w } from "./shared/assistant/capabilities.js";
|
|
7
|
-
import { buildAssistantSandboxEnv as T, buildPromptRequestBody as E, checkAssistantAiCredits as D, createAssistantSandbox as O, createAssistantSession as k, downloadAssistantArtifact as A, extendAssistantSandboxTTL as j, findExistingSandbox as M, getAssistantArtifacts as N, getAssistantMessages as P, getAssistantSession as F, getAssistantStreamAccess as I, modeRequiresConfirmWrites as L,
|
|
8
|
-
import { AssistantRuntimeManager as
|
|
9
|
-
import { buildProgress as
|
|
10
|
-
import { createSandboxAssistantTransport as
|
|
11
|
-
import { useSandboxAssistantTransport as
|
|
12
|
-
import { chatTurns as
|
|
13
|
-
import { browserSpeechEngine as
|
|
14
|
-
import { HOSTED_TTS_TIER as
|
|
15
|
-
import { HOSTED_TTS_MAX_CHARS as
|
|
16
|
-
import { createHostedTtsEngine as
|
|
17
|
-
import { createRoutingSpeechEngine as
|
|
18
|
-
import { configureSpeechEngine as
|
|
19
|
-
import { micIsInterrupt as
|
|
20
|
-
import { ENDPOINT_GRACE_MS as
|
|
21
|
-
import { SPEECH_LANG as
|
|
22
|
-
import { buildContinuedFromVoiceNote as
|
|
23
|
-
import { DEFAULT_SPEAKABLE_LABELS as
|
|
24
|
-
import { PREVIEW_LANGUAGES as
|
|
25
|
-
import { MINI_CAPTION_BUDGET as
|
|
26
|
-
import { POLL_FAST_MS as
|
|
27
|
-
import { toCaptionText as
|
|
28
|
-
import { ASSISTANT_LANGUAGES as
|
|
29
|
-
import { replyFollowsInput as
|
|
30
|
-
import { findPendingWrite as
|
|
31
|
-
import { AssistantProductProvider as
|
|
32
|
-
import { AssistantI18nProvider as
|
|
33
|
-
import { SPOKEN_LABEL_LANGUAGES as
|
|
34
|
-
import { detectScriptLocale as
|
|
35
|
-
import { IDLE_PLAYBACK as
|
|
36
|
-
import { MAX_INLINE_IMAGE_BASE64_BYTES as
|
|
37
|
-
import { BOILERPLATE_PAGE_SHARE as
|
|
38
|
-
import { ATTACHMENT_ACCEPT as
|
|
39
|
-
import { useAssistantStore as
|
|
40
|
-
import { isTurnInFlight as
|
|
41
|
-
import { AssistantToolActivity as
|
|
42
|
-
import { AssistantSpeechProvider as
|
|
43
|
-
import { useVoiceSession as
|
|
44
|
-
import { copyToClipboard as
|
|
45
|
-
import { getActorId as
|
|
46
|
-
import { ATTACHMENT_SOURCES as
|
|
47
|
-
import { SANDBOX_READY_TTL_MS as
|
|
48
|
-
import { AssistantAutoSpeakToggle as
|
|
49
|
-
import { AssistantMarkdownImage as
|
|
50
|
-
import { AssistantMarkdownRenderer as
|
|
51
|
-
import { AssistantMessageAttachments as
|
|
52
|
-
import { AssistantPendingWriteCard as
|
|
53
|
-
import { AssistantLanguageMenu as
|
|
54
|
-
import { AssistantReplyLanguageSelector as
|
|
55
|
-
import { AssistantSpeakButton as
|
|
56
|
-
import { AssistantSpokenTurnsNotice as
|
|
57
|
-
import { AssistantAttachmentButton as
|
|
58
|
-
import { AssistantAttachmentChips as
|
|
59
|
-
import { AssistantLanguageSelector as
|
|
60
|
-
import { ASSISTANT_MODE_META as
|
|
61
|
-
import { AssistantVoiceButton as
|
|
62
|
-
import { AUTO_VOICE as
|
|
63
|
-
import { AssistantVoiceOrb as
|
|
64
|
-
import { AssistantVoiceSessionButton as
|
|
65
|
-
import { CAPTION_SCROLL_ATTR as
|
|
66
|
-
import { VoiceConversationView as
|
|
67
|
-
import { VoiceWaveform as
|
|
68
|
-
import { VoiceMiniController as
|
|
69
|
-
import { VoiceStage as
|
|
70
|
-
import { VoiceTranscriptDrawer as
|
|
71
|
-
import { downloadFile as
|
|
72
|
-
import { AssistantMoreMenu as
|
|
73
|
-
import { AssistantHeader as
|
|
74
|
-
import { AssistantConversationList as
|
|
75
|
-
import { AssistantEmptyState as
|
|
76
|
-
import { AssistantMessageItem as
|
|
77
|
-
import { AssistantMessageList as
|
|
78
|
-
import { AssistantVoiceSession as
|
|
79
|
-
import { useAssistantApiAccess as
|
|
80
|
-
import { useConversationTurns as
|
|
81
|
-
import { isMultimodalBodyRejection as
|
|
82
|
-
import { aiCreditsUpdatedEventName as
|
|
83
|
-
import { useWorkspaceWriteAccess as
|
|
84
|
-
import { extractDocumentText as
|
|
85
|
-
import { useAssistantAttachments as
|
|
86
|
-
import { AssistantComposer as
|
|
87
|
-
import { isProdRuntime as
|
|
88
|
-
import { useAssistantHeartbeat as
|
|
89
|
-
import { useAssistantKeyboardShortcuts as
|
|
90
|
-
import { AssistantApiCallsConsentDialog as
|
|
91
|
-
import { AssistantChatArea as
|
|
92
|
-
import { AIAssistantPanel as
|
|
93
|
-
export {
|
|
7
|
+
import { buildAssistantSandboxEnv as T, buildPromptRequestBody as E, checkAssistantAiCredits as D, createAssistantSandbox as O, createAssistantSession as k, downloadAssistantArtifact as A, extendAssistantSandboxTTL as j, findExistingSandbox as M, getAssistantArtifacts as N, getAssistantMessages as P, getAssistantSession as F, getAssistantStreamAccess as I, modeRequiresConfirmWrites as L, releaseSupersededAssistantSandboxes as R, reportAssistantAiTokenUsage as z, selectExistingAssistantSandbox as B, selectSupersededAssistantSandboxes as V, sendAssistantPromptAsync as H, sendHeartbeat as U, stopReapedAssistantSandbox as W, waitForAssistantServiceReady as G, waitForSandboxRunning as K } from "./shared/assistant/api.js";
|
|
8
|
+
import { AssistantRuntimeManager as q } from "./shared/assistant/runtime.js";
|
|
9
|
+
import { buildProgress as J, getAssistantMedia as Y, getAssistantText as X, getRawMessageCreatedAt as Z, getToolProgress as Q, isReapedSandboxConnectionError as $, isRecoverable as ee, mapSessionToHistory as te, mergeMessagesById as ne, sanitize as re } from "./shared/assistant/progress.js";
|
|
10
|
+
import { createSandboxAssistantTransport as ie } from "./shared/assistant/createSandboxAssistantTransport.js";
|
|
11
|
+
import { useSandboxAssistantTransport as ae } from "./shared/assistant/useSandboxAssistantTransport.js";
|
|
12
|
+
import { chatTurns as oe, groupBySession as se, groupConsecutiveBySession as ce, isVoiceTurn as le, voiceMarker as ue, voiceSessionIdOf as de, voiceTurnsOnly as fe } from "./shared/assistant/voice/turnVisibility.js";
|
|
13
|
+
import { browserSpeechEngine as pe } from "./shared/assistant/speech/browserSpeechEngine.js";
|
|
14
|
+
import { HOSTED_TTS_TIER as me, HOSTED_VOICES as he, hostedLocaleFor as ge, hostedSupportsLanguage as _e } from "./shared/assistant/speech/hostedVoiceCatalogue.js";
|
|
15
|
+
import { HOSTED_TTS_MAX_CHARS as ve, SPEAKING_RATE_MAX as ye, SPEAKING_RATE_MAX_STREAMING as be, SPEAKING_RATE_MAX_SYNC as xe, SPEAKING_RATE_MIN as Se, base64ToBytes as Ce, buildRequest as we, classifyHttpFailure as Te, decodeAudioResponse as Ee, shouldDisableEngine as De, splitForVendor as Oe } from "./shared/assistant/speech/hostedTtsProtocol.js";
|
|
16
|
+
import { createHostedTtsEngine as ke } from "./shared/assistant/speech/hostedTtsSpeechEngine.js";
|
|
17
|
+
import { createRoutingSpeechEngine as Ae } from "./shared/assistant/speech/routingSpeechEngine.js";
|
|
18
|
+
import { configureSpeechEngine as je, createSpeechEngines as Me, getSpeechEngine as Ne, readSpeechEngineConfig as Pe, resetSpeechEngine as Fe } from "./shared/assistant/speech/createSpeechEngine.js";
|
|
19
|
+
import { micIsInterrupt as Ie, showsAssistantCaption as Le, showsUserCaption as Re, voiceStageState as ze, waveformIsActive as Be, waveformIsSettled as Ve } from "./shared/assistant/voice/voiceStageState.js";
|
|
20
|
+
import { ENDPOINT_GRACE_MS as He, INITIAL_SESSION as Ue, INTERRUPT_MAX_MS as We, INTERRUPT_MIN_MS as Ge, SILENCE_SUBMIT_MS as Ke, isCapturing as qe, isEcho as Je, isSubmittable as Ye, orbMode as Xe, planReplyConsumption as Ze, spokenSoFar as Qe, voiceSessionReducer as $e } from "./shared/assistant/voice/voiceSession.js";
|
|
21
|
+
import { SPEECH_LANG as et, VOICE_LIST_TIMEOUT_MS as tt, isSpeechBlocked as nt, languageDisplayName as rt, normalizeLangTag as it, primaryLanguageSubtag as at, selectVoiceForLocale as ot, speechGate as st, speechLangForLocale as ct, voiceAvailability as lt, voiceQualityRank as ut, voicesForLocale as dt } from "./shared/assistant/voice/speechVoices.js";
|
|
22
|
+
import { buildContinuedFromVoiceNote as ft, buildVoiceTranscriptMarkdown as pt, voiceTranscriptFilename as mt } from "./shared/assistant/voice/voiceTranscript.js";
|
|
23
|
+
import { DEFAULT_SPEAKABLE_LABELS as ht, MAX_SPEAKABLE_CHARS as gt, MAX_SPOKEN_TABLE_ROWS as _t, SPEECH_CHUNK_CHARS as vt, SPEECH_CHUNK_CJK_CHARS as yt, chunkForSpeech as bt, containsCjk as xt, speakableEmail as St, splitTableRow as Ct, toSpeakableText as wt } from "./shared/assistant/voice/speakableText.js";
|
|
24
|
+
import { PREVIEW_LANGUAGES as Tt, voicePreviewText as Et } from "./shared/assistant/voice/voicePreview.js";
|
|
25
|
+
import { MINI_CAPTION_BUDGET as Dt, showPreviousChunk as Ot } from "./shared/assistant/voice/miniCaptionBudget.js";
|
|
26
|
+
import { POLL_FAST_MS as kt, POLL_FAST_UNTIL_MS as At, POLL_SLOW_MS as jt, POLL_STEADY_MS as Mt, POLL_STEADY_UNTIL_MS as Nt, pollDelayMs as Pt } from "./shared/assistant/voice/assistantPollSchedule.js";
|
|
27
|
+
import { toCaptionText as Ft } from "./shared/assistant/voice/captionText.js";
|
|
28
|
+
import { ASSISTANT_LANGUAGES as It, DEFAULT_SPEECH_RATE as Lt, findAssistantLanguage as Rt, resolveAssistantLanguage as zt } from "./shared/assistant/voice/languages.js";
|
|
29
|
+
import { replyFollowsInput as Bt, resolveLanguagePair as Vt } from "./shared/assistant/voice/languagePair.js";
|
|
30
|
+
import { findPendingWrite as Ht, parseConfirmationRefusal as Ut } from "./shared/assistant/pendingWrite.js";
|
|
31
|
+
import { AssistantProductProvider as Wt, resolveModeConfig as Gt, useAssistantPageLabel as Kt, useAssistantProduct as qt, useAssistantProductOrNull as Jt, useAssistantStorageFolders as Yt } from "./shared/assistant/product.js";
|
|
32
|
+
import { AssistantI18nProvider as Xt, assistantTranslationKey as Zt, useAssistantI18nNamespace as Qt, useAssistantTr as $t } from "./shared/assistant/i18n.js";
|
|
33
|
+
import { SPOKEN_LABEL_LANGUAGES as en, speechLabelsFor as tn } from "./shared/assistant/voice/speechLabels.js";
|
|
34
|
+
import { detectScriptLocale as nn, resolveSpeechLocale as rn } from "./shared/assistant/voice/replyLanguage.js";
|
|
35
|
+
import { IDLE_PLAYBACK as an, isSpeakingMessage as on, requiresCancel as sn, speechPlaybackReducer as cn } from "./shared/assistant/voice/speechPlayback.js";
|
|
36
|
+
import { MAX_INLINE_IMAGE_BASE64_BYTES as ln, MAX_REQUEST_BODY_BYTES as un } from "./shared/assistant/gatewayLimits.js";
|
|
37
|
+
import { BOILERPLATE_PAGE_SHARE as dn, MAX_BOILERPLATE_LINE_CHARS as fn, MAX_EXTRACTED_CHARS as pn, MAX_PDF_PAGES_SCANNED as mn, MIN_PAGE_TEXT_CHARS as hn, MIN_TEXT_PAGE_SHARE as gn, columnLetterToIndex as _n, decodeXmlEntities as vn, docxXmlToText as yn, fitPdfPages as bn, formatPageRanges as xn, isMostlyImagePages as Sn, joinSheets as Cn, pageMarker as wn, parseSharedStrings as Tn, parseWorkbookSheets as En, pdfTextItemsToPage as Dn, sheetXmlToRows as On, summarisePageText as kn, truncatePagesForInline as An } from "./shared/assistant/documentText.js";
|
|
38
|
+
import { ATTACHMENT_ACCEPT as jn, AttachmentRejectedError as Mn, INLINE_IMAGE_MAX_DIM as Nn, INLINE_IMAGE_QUALITY as Pn, MAX_ATTACHMENTS as Fn, MAX_FILE_BYTES as In, MAX_INLINE_CHARS_PER_FILE as Ln, MAX_INLINE_CHARS_TOTAL as Rn, MAX_INLINE_IMAGE_BASE64_CHARS as zn, MAX_INLINE_IMAGE_PARTS as Bn, MAX_INLINE_TURN_BODY_BYTES as Vn, MAX_TURN_BODY_BYTES as Hn, PROMPT_ENVELOPE_RESERVE_BYTES as Un, TURN_BODY_HEADROOM_BYTES as Wn, buildAttachmentPromptBlock as Gn, buildPromptParts as Kn, buildPromptWithAttachments as qn, classifyAttachment as Jn, countInlineImageCandidates as Yn, countInlinedImageParts as Xn, detectDocumentFormat as Zn, estimateTurnBodyBytes as Qn, formatBytes as $n, getAttachmentSendBlocker as er, getExtension as tr, getSendableAttachments as nr, hasAttachmentWorkInFlight as rr, parseDataUrl as ir, toMessageAttachment as ar, truncateForInline as or, validateFile as sr } from "./shared/assistant/attachments.js";
|
|
39
|
+
import { useAssistantStore as cr } from "./shared/assistant/store.js";
|
|
40
|
+
import { isTurnInFlight as lr } from "./shared/assistant/turnState.js";
|
|
41
|
+
import { AssistantToolActivity as ur, parseToolActivity as dr } from "./shared/assistant/ui/AssistantToolActivity.js";
|
|
42
|
+
import { AssistantSpeechProvider as fr, useAssistantSpeech as pr } from "./shared/assistant/ui/AssistantSpeechProvider.js";
|
|
43
|
+
import { useVoiceSession as mr } from "./shared/assistant/ui/useVoiceSession.js";
|
|
44
|
+
import { copyToClipboard as hr } from "./shared/assistant/clipboard.js";
|
|
45
|
+
import { getActorId as gr, getOrganizationId as _r, getWorkspaceId as vr } from "./shared/assistant/context.js";
|
|
46
|
+
import { ATTACHMENT_SOURCES as yr, availableAttachmentSources as br, deviceHasCamera as xr } from "./shared/assistant/attachmentSources.js";
|
|
47
|
+
import { SANDBOX_READY_TTL_MS as Sr, createReadinessTracker as Cr, isRecentlyVerified as wr } from "./shared/assistant/sandboxReadiness.js";
|
|
48
|
+
import { AssistantAutoSpeakToggle as Tr } from "./shared/assistant/ui/AssistantAutoSpeakToggle.js";
|
|
49
|
+
import { AssistantMarkdownImage as Er, imageHostLabel as Dr, isRemoteImageSrc as Or } from "./shared/assistant/ui/AssistantMarkdownImage.js";
|
|
50
|
+
import { AssistantMarkdownRenderer as kr, assistantUrlTransform as Ar } from "./shared/assistant/ui/AssistantMarkdownRenderer.js";
|
|
51
|
+
import { AssistantMessageAttachments as jr } from "./shared/assistant/ui/AssistantMessageAttachments.js";
|
|
52
|
+
import { AssistantPendingWriteCard as Mr } from "./shared/assistant/ui/AssistantPendingWriteCard.js";
|
|
53
|
+
import { AssistantLanguageMenu as Nr } from "./shared/assistant/ui/AssistantLanguageMenu.js";
|
|
54
|
+
import { AssistantReplyLanguageSelector as Pr } from "./shared/assistant/ui/AssistantReplyLanguageSelector.js";
|
|
55
|
+
import { AssistantSpeakButton as Fr } from "./shared/assistant/ui/AssistantSpeakButton.js";
|
|
56
|
+
import { AssistantSpokenTurnsNotice as Ir } from "./shared/assistant/ui/AssistantSpokenTurnsNotice.js";
|
|
57
|
+
import { AssistantAttachmentButton as Lr } from "./shared/assistant/ui/composer/AssistantAttachmentButton.js";
|
|
58
|
+
import { AssistantAttachmentChips as Rr } from "./shared/assistant/ui/composer/AssistantAttachmentChips.js";
|
|
59
|
+
import { AssistantLanguageSelector as zr, FOLLOW_APP_LOCALE as Br } from "./shared/assistant/ui/composer/AssistantLanguageSelector.js";
|
|
60
|
+
import { ASSISTANT_MODE_META as Vr, AssistantModeSelector as Hr, nextModeIndex as Ur } from "./shared/assistant/ui/composer/AssistantModeSelector.js";
|
|
61
|
+
import { AssistantVoiceButton as Wr } from "./shared/assistant/ui/composer/AssistantVoiceButton.js";
|
|
62
|
+
import { AUTO_VOICE as Gr, AssistantVoiceSelector as Kr } from "./shared/assistant/ui/composer/AssistantVoiceSelector.js";
|
|
63
|
+
import { AssistantVoiceOrb as qr } from "./shared/assistant/ui/voice/AssistantVoiceOrb.js";
|
|
64
|
+
import { AssistantVoiceSessionButton as Jr } from "./shared/assistant/ui/voice/AssistantVoiceSessionButton.js";
|
|
65
|
+
import { CAPTION_SCROLL_ATTR as Yr, VoiceCaption as Xr } from "./shared/assistant/ui/voice/VoiceCaption.js";
|
|
66
|
+
import { VoiceConversationView as Zr } from "./shared/assistant/ui/voice/VoiceConversationView.js";
|
|
67
|
+
import { VoiceWaveform as Qr } from "./shared/assistant/ui/voice/VoiceWaveform.js";
|
|
68
|
+
import { VoiceMiniController as $r } from "./shared/assistant/ui/voice/VoiceMiniController.js";
|
|
69
|
+
import { VoiceStage as ei } from "./shared/assistant/ui/voice/VoiceStage.js";
|
|
70
|
+
import { VoiceTranscriptDrawer as ti } from "./shared/assistant/ui/voice/VoiceTranscriptDrawer.js";
|
|
71
|
+
import { downloadFile as ni, exportConversation as ri } from "./shared/assistant/exportConversation.js";
|
|
72
|
+
import { AssistantMoreMenu as ii } from "./shared/assistant/ui/AssistantMoreMenu.js";
|
|
73
|
+
import { AssistantHeader as ai } from "./shared/assistant/ui/AssistantHeader.js";
|
|
74
|
+
import { AssistantConversationList as oi } from "./shared/assistant/ui/AssistantConversationList.js";
|
|
75
|
+
import { AssistantEmptyState as si } from "./shared/assistant/ui/AssistantEmptyState.js";
|
|
76
|
+
import { AssistantMessageItem as ci } from "./shared/assistant/ui/AssistantMessageItem.js";
|
|
77
|
+
import { AssistantMessageList as li } from "./shared/assistant/ui/AssistantMessageList.js";
|
|
78
|
+
import { AssistantVoiceSession as ui } from "./shared/assistant/ui/voice/AssistantVoiceSession.js";
|
|
79
|
+
import { useAssistantApiAccess as di } from "./shared/assistant/useAssistantApiAccess.js";
|
|
80
|
+
import { useConversationTurns as fi } from "./shared/assistant/useConversationTurns.js";
|
|
81
|
+
import { isMultimodalBodyRejection as pi, isRecoverableAssistantError as mi } from "./shared/assistant/transportErrors.js";
|
|
82
|
+
import { aiCreditsUpdatedEventName as hi, dispatchAssistantQuotaExhausted as gi, notifyAiCreditsUpdated as _i } from "./shared/assistant/aiCredits.js";
|
|
83
|
+
import { useWorkspaceWriteAccess as vi } from "./shared/assistant/useWorkspaceWriteAccess.js";
|
|
84
|
+
import { extractDocumentText as yi } from "./shared/assistant/documentExtract.js";
|
|
85
|
+
import { useAssistantAttachments as bi } from "./shared/assistant/useAssistantAttachments.js";
|
|
86
|
+
import { AssistantComposer as xi } from "./shared/assistant/ui/composer/AssistantComposer.js";
|
|
87
|
+
import { isProdRuntime as Si } from "./shared/assistant/env.js";
|
|
88
|
+
import { useAssistantHeartbeat as Ci } from "./shared/assistant/useAssistantHeartbeat.js";
|
|
89
|
+
import { useAssistantKeyboardShortcuts as wi } from "./shared/assistant/useAssistantKeyboardShortcuts.js";
|
|
90
|
+
import { AssistantApiCallsConsentDialog as Ti } from "./shared/assistant/ui/AssistantApiCallsConsentDialog.js";
|
|
91
|
+
import { AssistantChatArea as Ei } from "./shared/assistant/ui/AssistantChatArea.js";
|
|
92
|
+
import { AIAssistantPanel as Di } from "./shared/assistant/ui/AIAssistantPanel.js";
|
|
93
|
+
export { Di as AIAssistantPanel, h as ASSISTANT_API_AUTH_STRATEGY, It as ASSISTANT_LANGUAGES, Vr as ASSISTANT_MODE_META, jn as ATTACHMENT_ACCEPT, yr as ATTACHMENT_SOURCES, Gr as AUTO_VOICE, Ti as AssistantApiCallsConsentDialog, Lr as AssistantAttachmentButton, Rr as AssistantAttachmentChips, Tr as AssistantAutoSpeakToggle, Ei as AssistantChatArea, xi as AssistantComposer, oi as AssistantConversationList, si as AssistantEmptyState, ai as AssistantHeader, Xt as AssistantI18nProvider, Nr as AssistantLanguageMenu, zr as AssistantLanguageSelector, Er as AssistantMarkdownImage, kr as AssistantMarkdownRenderer, jr as AssistantMessageAttachments, ci as AssistantMessageItem, li as AssistantMessageList, Hr as AssistantModeSelector, ii as AssistantMoreMenu, Mr as AssistantPendingWriteCard, Wt as AssistantProductProvider, Pr as AssistantReplyLanguageSelector, q as AssistantRuntimeManager, Fr as AssistantSpeakButton, fr as AssistantSpeechProvider, Ir as AssistantSpokenTurnsNotice, ur as AssistantToolActivity, Wr as AssistantVoiceButton, qr as AssistantVoiceOrb, Kr as AssistantVoiceSelector, ui as AssistantVoiceSession, Jr as AssistantVoiceSessionButton, Mn as AttachmentRejectedError, dn as BOILERPLATE_PAGE_SHARE, Yr as CAPTION_SCROLL_ATTR, o as CHECK_AI_CREDITS, s as CREATE_SANDBOX, ht as DEFAULT_SPEAKABLE_LABELS, Lt as DEFAULT_SPEECH_RATE, He as ENDPOINT_GRACE_MS, c as EXTEND_SANDBOX_TTL, Br as FOLLOW_APP_LOCALE, l as GET_ACTIVE_SANDBOXES, u as GET_SANDBOX, ve as HOSTED_TTS_MAX_CHARS, me as HOSTED_TTS_TIER, he as HOSTED_VOICES, an as IDLE_PLAYBACK, Ue as INITIAL_SESSION, Nn as INLINE_IMAGE_MAX_DIM, Pn as INLINE_IMAGE_QUALITY, We as INTERRUPT_MAX_MS, Ge as INTERRUPT_MIN_MS, Fn as MAX_ATTACHMENTS, fn as MAX_BOILERPLATE_LINE_CHARS, pn as MAX_EXTRACTED_CHARS, In as MAX_FILE_BYTES, Ln as MAX_INLINE_CHARS_PER_FILE, Rn as MAX_INLINE_CHARS_TOTAL, ln as MAX_INLINE_IMAGE_BASE64_BYTES, zn as MAX_INLINE_IMAGE_BASE64_CHARS, Bn as MAX_INLINE_IMAGE_PARTS, Vn as MAX_INLINE_TURN_BODY_BYTES, mn as MAX_PDF_PAGES_SCANNED, un as MAX_REQUEST_BODY_BYTES, gt as MAX_SPEAKABLE_CHARS, _t as MAX_SPOKEN_TABLE_ROWS, Hn as MAX_TURN_BODY_BYTES, Dt as MINI_CAPTION_BUDGET, hn as MIN_PAGE_TEXT_CHARS, gn as MIN_TEXT_PAGE_SHARE, kt as POLL_FAST_MS, At as POLL_FAST_UNTIL_MS, jt as POLL_SLOW_MS, Mt as POLL_STEADY_MS, Nt as POLL_STEADY_UNTIL_MS, Tt as PREVIEW_LANGUAGES, Un as PROMPT_ENVELOPE_RESERVE_BYTES, d as PROXY_SANDBOX_REQUEST, f as REPORT_AI_TOKEN_USAGE, Sr as SANDBOX_READY_TTL_MS, Ke as SILENCE_SUBMIT_MS, ye as SPEAKING_RATE_MAX, be as SPEAKING_RATE_MAX_STREAMING, xe as SPEAKING_RATE_MAX_SYNC, Se as SPEAKING_RATE_MIN, vt as SPEECH_CHUNK_CHARS, yt as SPEECH_CHUNK_CJK_CHARS, et as SPEECH_LANG, en as SPOKEN_LABEL_LANGUAGES, p as STOP_ASSISTANT_SANDBOX, Wn as TURN_BODY_HEADROOM_BYTES, tt as VOICE_LIST_TIMEOUT_MS, Xr as VoiceCaption, Zr as VoiceConversationView, $r as VoiceMiniController, ei as VoiceStage, ti as VoiceTranscriptDrawer, Qr as VoiceWaveform, m as WAIT_FOR_SANDBOX_RUNNING, hi as aiCreditsUpdatedEventName, Zt as assistantTranslationKey, Ar as assistantUrlTransform, br as availableAttachmentSources, Ce as base64ToBytes, pe as browserSpeechEngine, T as buildAssistantSandboxEnv, Gn as buildAttachmentPromptBlock, ft as buildContinuedFromVoiceNote, J as buildProgress, Kn as buildPromptParts, E as buildPromptRequestBody, qn as buildPromptWithAttachments, we as buildRequest, i as buildSandboxContextInput, pt as buildVoiceTranscriptMarkdown, oe as chatTurns, D as checkAssistantAiCredits, bt as chunkForSpeech, Jn as classifyAttachment, Te as classifyHttpFailure, t as classifyQuotaError, _n as columnLetterToIndex, je as configureSpeechEngine, xt as containsCjk, hr as copyToClipboard, Yn as countInlineImageCandidates, Xn as countInlinedImageParts, O as createAssistantSandbox, k as createAssistantSession, ke as createHostedTtsEngine, Cr as createReadinessTracker, Ae as createRoutingSpeechEngine, ie as createSandboxAssistantTransport, Me as createSpeechEngines, Ee as decodeAudioResponse, vn as decodeXmlEntities, Zn as detectDocumentFormat, nn as detectScriptLocale, xr as deviceHasCamera, gi as dispatchAssistantQuotaExhausted, yn as docxXmlToText, A as downloadAssistantArtifact, ni as downloadFile, Qn as estimateTurnBodyBytes, a as executeSandboxGraphQL, ri as exportConversation, j as extendAssistantSandboxTTL, yi as extractDocumentText, Rt as findAssistantLanguage, M as findExistingSandbox, Ht as findPendingWrite, bn as fitPdfPages, $n as formatBytes, xn as formatPageRanges, gr as getActorId, N as getAssistantArtifacts, Y as getAssistantMedia, P as getAssistantMessages, F as getAssistantSession, I as getAssistantStreamAccess, X as getAssistantText, er as getAttachmentSendBlocker, x as getCapability, tr as getExtension, g as getImageForMode, _ as getImageTagForMode, _r as getOrganizationId, Z as getRawMessageCreatedAt, v as getResourcesForMode, y as getSandboxImageRegistry, nr as getSendableAttachments, Ne as getSpeechEngine, Q as getToolProgress, vr as getWorkspaceId, se as groupBySession, ce as groupConsecutiveBySession, rr as hasAttachmentWorkInFlight, ge as hostedLocaleFor, _e as hostedSupportsLanguage, Dr as imageHostLabel, qe as isCapturing, Je as isEcho, Sn as isMostlyImagePages, pi as isMultimodalBodyRejection, Si as isProdRuntime, n as isQuotaExhaustedError, $ as isReapedSandboxConnectionError, wr as isRecentlyVerified, ee as isRecoverable, mi as isRecoverableAssistantError, Or as isRemoteImageSrc, on as isSpeakingMessage, nt as isSpeechBlocked, Ye as isSubmittable, lr as isTurnInFlight, S as isUnknownFieldError, le as isVoiceTurn, Cn as joinSheets, rt as languageDisplayName, te as mapSessionToHistory, C as markSupported, w as markUnsupported, ne as mergeMessagesById, Ie as micIsInterrupt, L as modeRequiresConfirmWrites, Ur as nextModeIndex, it as normalizeLangTag, _i as notifyAiCreditsUpdated, Xe as orbMode, wn as pageMarker, Ut as parseConfirmationRefusal, ir as parseDataUrl, Tn as parseSharedStrings, dr as parseToolActivity, En as parseWorkbookSheets, Dn as pdfTextItemsToPage, Ze as planReplyConsumption, Pt as pollDelayMs, at as primaryLanguageSubtag, r as quotaExhaustedEventName, Pe as readSpeechEngineConfig, R as releaseSupersededAssistantSandboxes, Bt as replyFollowsInput, z as reportAssistantAiTokenUsage, sn as requiresCancel, Fe as resetSpeechEngine, zt as resolveAssistantLanguage, Vt as resolveLanguagePair, Gt as resolveModeConfig, b as resolveSandboxAssistantMode, rn as resolveSpeechLocale, re as sanitize, B as selectExistingAssistantSandbox, V as selectSupersededAssistantSandboxes, ot as selectVoiceForLocale, H as sendAssistantPromptAsync, U as sendHeartbeat, On as sheetXmlToRows, De as shouldDisableEngine, Ot as showPreviousChunk, Le as showsAssistantCaption, Re as showsUserCaption, St as speakableEmail, st as speechGate, tn as speechLabelsFor, ct as speechLangForLocale, cn as speechPlaybackReducer, Oe as splitForVendor, Ct as splitTableRow, Qe as spokenSoFar, W as stopReapedAssistantSandbox, kn as summarisePageText, Ft as toCaptionText, ar as toMessageAttachment, wt as toSpeakableText, or as truncateForInline, An as truncatePagesForInline, di as useAssistantApiAccess, bi as useAssistantAttachments, Ci as useAssistantHeartbeat, Qt as useAssistantI18nNamespace, wi as useAssistantKeyboardShortcuts, Kt as useAssistantPageLabel, qt as useAssistantProduct, Jt as useAssistantProductOrNull, pr as useAssistantSpeech, Yt as useAssistantStorageFolders, cr as useAssistantStore, $t as useAssistantTr, fi as useConversationTurns, ae as useSandboxAssistantTransport, e as useVoiceInput, mr as useVoiceSession, vi as useWorkspaceWriteAccess, sr as validateFile, lt as voiceAvailability, ue as voiceMarker, Et as voicePreviewText, ut as voiceQualityRank, de as voiceSessionIdOf, $e as voiceSessionReducer, ze as voiceStageState, mt as voiceTranscriptFilename, fe as voiceTurnsOnly, dt as voicesForLocale, G as waitForAssistantServiceReady, K as waitForSandboxRunning, Be as waveformIsActive, Ve as waveformIsSettled };
|