Skip to content

The agent that grows with you

fmt(js): `npm run fix` on merge (#120759)

hermes-seaeye[bot]f799fd8578af
diff --git a/apps/desktop/src/lib/speech-text.test.ts b/apps/desktop/src/lib/speech-text.test.ts
index b66cb462839..b22d7c28d42 100644
--- a/apps/desktop/src/lib/speech-text.test.ts
+++ b/apps/desktop/src/lib/speech-text.test.ts
@@ -7,9 +7,7 @@ describe('sanitizeTextForSpeech', () => {
// The "code block omitted" summary used to be read aloud as English text
// (#86602). Code that can't be spoken should be silence, not a sentence.
// The "here is code:" colon also closes: the voice never waits on it.
- expect(sanitizeTextForSpeech('Here is code:\n```ts\nconst x = 1\n```\nDone.')).toBe(
- 'Here is code. Done.'
- )
+ expect(sanitizeTextForSpeech('Here is code:\n```ts\nconst x = 1\n```\nDone.')).toBe('Here is code. Done.')
})
it('still keeps normal prose and inline code readable', () => {
@@ -94,9 +92,7 @@ Second sentence.`
it('does not speak a placeholder word for URLs', () => {
// Used to say the English word "link" (#86602); URLs are silence now.
- expect(sanitizeTextForSpeech('See https://example.com/a-huge-page for details')).toBe(
- 'See for details'
- )
+ expect(sanitizeTextForSpeech('See https://example.com/a-huge-page for details')).toBe('See for details')
})
it('keeps ~~strike~~ readable instead of speaking tildes', () => {
@@ -112,9 +108,9 @@ Second sentence.`
it('closes a colon that a code block used to follow', () => {
// The real repro: "one line added to the regex list:" then a code fence.
// The voice hit the colon, found a wall of punctuation, and stuttered.
- expect(
- sanitizeTextForSpeech('One line added to the regex list:\n```ts\nconst x = 1\n```\nBye.')
- ).toBe('One line added to the regex list. Bye.')
+ expect(sanitizeTextForSpeech('One line added to the regex list:\n```ts\nconst x = 1\n```\nBye.')).toBe(
+ 'One line added to the regex list. Bye.'
+ )
})
it('closes a colon that ends the speakable text', () => {
diff --git a/apps/desktop/src/lib/voice-barge-in.test.ts b/apps/desktop/src/lib/voice-barge-in.test.ts
index 2853cbf53f1..e597c7dd229 100644
--- a/apps/desktop/src/lib/voice-barge-in.test.ts
+++ b/apps/desktop/src/lib/voice-barge-in.test.ts
@@ -1,6 +1,10 @@
import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest'
-import { bargeInTriggerLevels, DEFAULT_BARGE_IN_THRESHOLD_MULTIPLIER, monitorSpeechDuringPlayback } from './voice-barge-in'
+import {
+ bargeInTriggerLevels,
+ DEFAULT_BARGE_IN_THRESHOLD_MULTIPLIER,
+ monitorSpeechDuringPlayback
+} from './voice-barge-in'
// Drive the real monitor with a fake mic: `micLevel` is the byte-domain RMS
// level the analyser reports, `playing` is the TTS-flowing flag, and each
diff --git a/apps/desktop/src/store/voice-prefs.ts b/apps/desktop/src/store/voice-prefs.ts
index c5e9051f22b..bb8cf68e1df 100644
--- a/apps/desktop/src/store/voice-prefs.ts
+++ b/apps/desktop/src/store/voice-prefs.ts
@@ -27,9 +27,7 @@ export const $voiceStopPhrase = atom<string | null>(BACKEND_DEFAULT_STOP_PHRASES
/** How the desktop matcher should treat `voice.stop_phrases` (#117801). */
export type VoiceStopPhraseConfig =
- | { mode: 'default' }
- | { mode: 'custom'; phrases: readonly string[] }
- | { mode: 'disabled' }
+ { mode: 'default' } | { mode: 'custom'; phrases: readonly string[] } | { mode: 'disabled' }
// Full matcher config — kept in sync with `$voiceStopPhrase` so the spoken
// stop recognizer honours the same list the notice advertises.