Skip to content

The agent that grows with you

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

hermes-seaeye[bot]22210107177b
diff --git a/apps/desktop/src/app/chat/index.tsx b/apps/desktop/src/app/chat/index.tsx
index 1bb98203b5d..2ed1169f4e1 100644
--- a/apps/desktop/src/app/chat/index.tsx
+++ b/apps/desktop/src/app/chat/index.tsx
@@ -246,10 +246,7 @@ function ChatRuntimeBoundary({
const expandWindow = useCallback(() => setWindowPages(pages => pages + 1), [])
- const transcriptWindow = useMemo(
- () => ({ olderAvailable: windowed, expandWindow }),
- [expandWindow, windowed]
- )
+ const transcriptWindow = useMemo(() => ({ olderAvailable: windowed, expandWindow }), [expandWindow, windowed])
const runtime = useIncrementalExternalStoreRuntime<ThreadMessage>({
messageRepository: runtimeMessageRepository,
diff --git a/apps/desktop/src/app/chat/transcript-window.test.ts b/apps/desktop/src/app/chat/transcript-window.test.ts
index 4726724f68e..a09793cd378 100644
--- a/apps/desktop/src/app/chat/transcript-window.test.ts
+++ b/apps/desktop/src/app/chat/transcript-window.test.ts
@@ -122,12 +122,7 @@ describe('selectTranscriptWindow', () => {
})
describe('alignToBranchGroup', () => {
- const messages = [
- message('u-1', 10),
- message('a-1', 10, 'g'),
- message('a-2', 10, 'g'),
- message('u-2', 10)
- ]
+ const messages = [message('u-1', 10), message('a-1', 10, 'g'), message('a-2', 10, 'g'), message('u-2', 10)]
it('widens a cut that lands mid-group back to the group start', () => {
expect(alignToBranchGroup(messages, 2)).toBe(1)
diff --git a/apps/desktop/src/app/chat/transcript-window.ts b/apps/desktop/src/app/chat/transcript-window.ts
index 29d2d1c9d27..aa8848a5d2c 100644
--- a/apps/desktop/src/app/chat/transcript-window.ts
+++ b/apps/desktop/src/app/chat/transcript-window.ts
@@ -77,10 +77,7 @@ export function alignToBranchGroup(messages: readonly ChatMessage[], start: numb
* Walks newest-first accumulating weight until the budget is met, keeps at
* least MIN messages, then aligns the cut off a branch-group boundary.
*/
-export function selectTranscriptWindow(
- messages: readonly ChatMessage[],
- pages = 1
-): TranscriptWindow {
+export function selectTranscriptWindow(messages: readonly ChatMessage[], pages = 1): TranscriptWindow {
const budget = TRANSCRIPT_WINDOW_BUDGET * Math.max(1, Math.floor(pages))
if (messages.length === 0) {
diff --git a/apps/desktop/src/components/assistant-ui/thread/transcript-window.tsx b/apps/desktop/src/components/assistant-ui/thread/transcript-window.tsx
index 331fec19146..1ce059acd06 100644
--- a/apps/desktop/src/components/assistant-ui/thread/transcript-window.tsx
+++ b/apps/desktop/src/components/assistant-ui/thread/transcript-window.tsx
@@ -12,13 +12,7 @@ const TranscriptWindowContext = createContext<TranscriptWindowValue>({
expandWindow: () => {}
})
-export function TranscriptWindowProvider({
- children,
- value
-}: {
- children: ReactNode
- value: TranscriptWindowValue
-}) {
+export function TranscriptWindowProvider({ children, value }: { children: ReactNode; value: TranscriptWindowValue }) {
return <TranscriptWindowContext.Provider value={value}>{children}</TranscriptWindowContext.Provider>
}
@@ -31,10 +25,7 @@ export function useTranscriptWindow(): TranscriptWindowValue {
* more messages — the DOM page is already-materialized content, so spending it
* first keeps the click cheap and the store window as small as it can be.
*/
-export function resolveShowEarlierAction(
- hiddenCount: number,
- olderAvailable: boolean
-): 'dom' | 'window' | null {
+export function resolveShowEarlierAction(hiddenCount: number, olderAvailable: boolean): 'dom' | 'window' | null {
if (hiddenCount > 0) {
return 'dom'
}
diff --git a/apps/desktop/src/components/pane-shell/tree/store.ts b/apps/desktop/src/components/pane-shell/tree/store.ts
index 7392a04b05d..ab6284a9c3d 100644
--- a/apps/desktop/src/components/pane-shell/tree/store.ts
+++ b/apps/desktop/src/components/pane-shell/tree/store.ts
@@ -1280,11 +1280,7 @@ export function moveTreePanes(
* back to a single-zone move at `fallbackGroupId` when the set can't merge
* (non-rectangular selection).
*/
-export function mergeTreeZones(
- groupIds: string[],
- paneId: string | readonly string[],
- fallbackGroupId: null | string
-) {
+export function mergeTreeZones(groupIds: string[], paneId: string | readonly string[], fallbackGroupId: null | string) {
const tree = $layoutTree.get()
if (!tree) {
diff --git a/apps/desktop/src/store/native-notifications.ts b/apps/desktop/src/store/native-notifications.ts
index df33a30729d..555d88d04d0 100644
--- a/apps/desktop/src/store/native-notifications.ts
+++ b/apps/desktop/src/store/native-notifications.ts
@@ -10,13 +10,7 @@ import { $activeSessionId } from './session'
// Native OS notifications (Electron `Notification`), separate from the in-app
// toast feed in `notifications.ts`. Each kind toggles independently.
export type NativeNotificationKind =
- | 'approval'
- | 'backgroundDone'
- | 'credits'
- | 'input'
- | 'plugin'
- | 'turnDone'
- | 'turnError'
+ 'approval' | 'backgroundDone' | 'credits' | 'input' | 'plugin' | 'turnDone' | 'turnError'
export const NATIVE_NOTIFICATION_KINDS: readonly NativeNotificationKind[] = [
'approval',
diff --git a/apps/desktop/src/store/profile-share.ts b/apps/desktop/src/store/profile-share.ts
index ee5d0528712..d1aa8f229a9 100644
--- a/apps/desktop/src/store/profile-share.ts
+++ b/apps/desktop/src/store/profile-share.ts
@@ -80,8 +80,7 @@ export async function exportProfileBundle(profile: string, output?: string): Pro
return archive
}
-const isThemeMode = (value: unknown): value is ThemeMode =>
- value === 'light' || value === 'dark' || value === 'system'
+const isThemeMode = (value: unknown): value is ThemeMode => value === 'light' || value === 'dark' || value === 'system'
/**
* Apply an imported overlay: install bundled themes, assign the new profile's