@burdenoff/fe-libs 2026.903.2 → 2026.903.4
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/index.d.ts +5 -0
- package/dist/shared/assistant/index.d.ts.map +1 -1
- package/dist/shared/assistant/pendingWrite.d.ts +73 -0
- package/dist/shared/assistant/pendingWrite.d.ts.map +1 -0
- package/dist/shared/assistant/pendingWrite.js +85 -0
- package/dist/shared/assistant/speech/browserSpeechEngine.d.ts +3 -0
- package/dist/shared/assistant/speech/browserSpeechEngine.d.ts.map +1 -0
- package/dist/shared/assistant/speech/browserSpeechEngine.js +89 -0
- package/dist/shared/assistant/speech/createSpeechEngine.d.ts +50 -0
- package/dist/shared/assistant/speech/createSpeechEngine.d.ts.map +1 -0
- package/dist/shared/assistant/speech/createSpeechEngine.js +31 -0
- package/dist/shared/assistant/speech/hostedTtsProtocol.d.ts +118 -0
- package/dist/shared/assistant/speech/hostedTtsProtocol.d.ts.map +1 -0
- package/dist/shared/assistant/speech/hostedTtsProtocol.js +42 -0
- package/dist/shared/assistant/speech/hostedTtsSpeechEngine.d.ts +10 -0
- package/dist/shared/assistant/speech/hostedTtsSpeechEngine.d.ts.map +1 -0
- package/dist/shared/assistant/speech/hostedTtsSpeechEngine.js +121 -0
- package/dist/shared/assistant/speech/hostedVoiceCatalogue.d.ts +35 -0
- package/dist/shared/assistant/speech/hostedVoiceCatalogue.d.ts.map +1 -0
- package/dist/shared/assistant/speech/hostedVoiceCatalogue.js +53 -0
- package/dist/shared/assistant/speech/index.d.ts +8 -0
- package/dist/shared/assistant/speech/index.d.ts.map +1 -0
- package/dist/shared/assistant/speech/routingSpeechEngine.d.ts +8 -0
- package/dist/shared/assistant/speech/routingSpeechEngine.d.ts.map +1 -0
- package/dist/shared/assistant/speech/routingSpeechEngine.js +1 -0
- package/dist/shared/assistant/speech/types.d.ts +65 -0
- package/dist/shared/assistant/speech/types.d.ts.map +1 -0
- package/dist/shared/assistant/voice/captionText.d.ts +43 -0
- package/dist/shared/assistant/voice/captionText.d.ts.map +1 -0
- package/dist/shared/assistant/voice/captionText.js +49 -0
- package/dist/shared/assistant/voice/speechVoices.d.ts +142 -0
- package/dist/shared/assistant/voice/speechVoices.d.ts.map +1 -0
- package/dist/shared/assistant/voice/voiceSession.d.ts +184 -0
- package/dist/shared/assistant/voice/voiceSession.d.ts.map +1 -0
- package/dist/shared/assistant/voice/voiceStageState.d.ts +49 -0
- package/dist/shared/assistant/voice/voiceStageState.d.ts.map +1 -0
- package/dist/shared-assistant.js +4 -1
- package/package.json +1 -1
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { VoiceSessionSnapshot } from './voiceSession';
|
|
2
|
+
export type VoiceStageState = 'connecting' | 'listening' | 'endpoint-grace' | 'thinking' | 'speaking' | 'interrupting' | 'mic-error' | 'ended';
|
|
3
|
+
export interface StageInputs {
|
|
4
|
+
snapshot: VoiceSessionSnapshot;
|
|
5
|
+
/** Is the recogniser genuinely running? False during start-up. */
|
|
6
|
+
capturing: boolean;
|
|
7
|
+
/** True from the moment the user cuts the assistant off until listening resumes. */
|
|
8
|
+
interrupting?: boolean;
|
|
9
|
+
/**
|
|
10
|
+
* The user has stopped producing new words and the submit timer is running.
|
|
11
|
+
*
|
|
12
|
+
* Its own state because the checklist asks for it: the two-second correction
|
|
13
|
+
* window should look like a deliberate pause the user can still speak into,
|
|
14
|
+
* not like the session has already moved on.
|
|
15
|
+
*/
|
|
16
|
+
awaitingEndpoint?: boolean;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Precedence is the whole design. A failure outranks a phase — a session that
|
|
20
|
+
* cannot hear must never render as "Listening…", which is precisely the lie the
|
|
21
|
+
* operator screenshotted.
|
|
22
|
+
*/
|
|
23
|
+
export declare function voiceStageState({ snapshot, capturing, interrupting, awaitingEndpoint, }: StageInputs): VoiceStageState;
|
|
24
|
+
/** Does this stage show the user's live transcript rather than the reply? */
|
|
25
|
+
export declare function showsUserCaption(state: VoiceStageState): boolean;
|
|
26
|
+
/** Does this stage show the assistant's caption? */
|
|
27
|
+
export declare function showsAssistantCaption(state: VoiceStageState): boolean;
|
|
28
|
+
/** Is the microphone control an INTERRUPT rather than a mute toggle? */
|
|
29
|
+
export declare function micIsInterrupt(state: VoiceStageState): boolean;
|
|
30
|
+
/**
|
|
31
|
+
* Does this stage show a LIVE waveform?
|
|
32
|
+
*
|
|
33
|
+
* ★ Shared rather than repeated, because the two surfaces had already drifted:
|
|
34
|
+
* the full stage and the docked strip each answered this question with their
|
|
35
|
+
* own inline expression, so teaching one about a new state silently left the
|
|
36
|
+
* other frozen. `endpoint-grace` in particular MUST animate — it is the window
|
|
37
|
+
* in which the user may still be talking, and a still waveform beside the words
|
|
38
|
+
* "still listening" says the opposite of the label.
|
|
39
|
+
*/
|
|
40
|
+
export declare function waveformIsActive(state: VoiceStageState): boolean;
|
|
41
|
+
/**
|
|
42
|
+
* Is the waveform open but WAITING rather than actively hearing speech?
|
|
43
|
+
*
|
|
44
|
+
* The correction window is not the same as mid-sentence listening, and a status
|
|
45
|
+
* line is a weak way to say so: a calmer, shorter profile makes the pause
|
|
46
|
+
* visible without implying the microphone closed.
|
|
47
|
+
*/
|
|
48
|
+
export declare function waveformIsSettled(state: VoiceStageState): boolean;
|
|
49
|
+
//# sourceMappingURL=voiceStageState.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"voiceStageState.d.ts","sourceRoot":"","sources":["../../../../src/shared/assistant/voice/voiceStageState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AAEH,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;AAE3D,MAAM,MAAM,eAAe,GACzB,YAAY,GAAG,WAAW,GAAG,gBAAgB,GAAG,UAAU,GAAG,UAAU,GAAG,cAAc,GAAG,WAAW,GAAG,OAAO,CAAC;AAEnH,MAAM,WAAW,WAAW;IAC1B,QAAQ,EAAE,oBAAoB,CAAC;IAC/B,kEAAkE;IAClE,SAAS,EAAE,OAAO,CAAC;IACnB,oFAAoF;IACpF,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB;;;;;;OAMG;IACH,gBAAgB,CAAC,EAAE,OAAO,CAAC;CAC5B;AAED;;;;GAIG;AACH,wBAAgB,eAAe,CAAC,EAC9B,QAAQ,EACR,SAAS,EACT,YAAoB,EACpB,gBAAwB,GACzB,EAAE,WAAW,GAAG,eAAe,CAwB/B;AAED,6EAA6E;AAC7E,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,eAAe,GAAG,OAAO,CAKhE;AAED,oDAAoD;AACpD,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,eAAe,GAAG,OAAO,CAErE;AAED,wEAAwE;AACxE,wBAAgB,cAAc,CAAC,KAAK,EAAE,eAAe,GAAG,OAAO,CAE9D;AAED;;;;;;;;;GASG;AACH,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,eAAe,GAAG,OAAO,CAEhE;AAED;;;;;;GAMG;AACH,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,eAAe,GAAG,OAAO,CAEjE"}
|
package/dist/shared-assistant.js
CHANGED
|
@@ -6,4 +6,7 @@ import { buildProgress as y, getAssistantMedia as b, isRecoverable as x, mapSess
|
|
|
6
6
|
import { createSandboxAssistantTransport as T } from "./shared/assistant/createSandboxAssistantTransport.js";
|
|
7
7
|
import { useSandboxAssistantTransport as E } from "./shared/assistant/useSandboxAssistantTransport.js";
|
|
8
8
|
import { chatTurns as D, groupBySession as O, groupConsecutiveBySession as k, isVoiceTurn as A, voiceMarker as j, voiceSessionIdOf as M, voiceTurnsOnly as N } from "./shared/assistant/voice/turnVisibility.js";
|
|
9
|
-
|
|
9
|
+
import { toCaptionText as P } from "./shared/assistant/voice/captionText.js";
|
|
10
|
+
import { findPendingWrite as F, parseConfirmationRefusal as I } from "./shared/assistant/pendingWrite.js";
|
|
11
|
+
import { createSpeechEngines as L } from "./shared/assistant/speech/createSpeechEngine.js";
|
|
12
|
+
export { v as AssistantRuntimeManager, y as buildProgress, n as buildPromptRequestBody, D as chatTurns, r as checkAssistantAiCredits, i as createAssistantSandbox, a as createAssistantSession, T as createSandboxAssistantTransport, L as createSpeechEngines, o as downloadAssistantArtifact, s as extendAssistantSandboxTTL, c as findExistingSandbox, F as findPendingWrite, l as getAssistantArtifacts, b as getAssistantMedia, u as getAssistantMessages, d as getAssistantSession, f as getAssistantStreamAccess, O as groupBySession, k as groupConsecutiveBySession, t as isQuotaExhaustedError, x as isRecoverable, A as isVoiceTurn, S as mapSessionToHistory, C as mergeMessagesById, I as parseConfirmationRefusal, p as reportAssistantAiTokenUsage, w as sanitize, m as sendAssistantPromptAsync, h as sendHeartbeat, P as toCaptionText, E as useSandboxAssistantTransport, e as useVoiceInput, j as voiceMarker, M as voiceSessionIdOf, N as voiceTurnsOnly, g as waitForAssistantServiceReady, _ as waitForSandboxRunning };
|