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

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
This commit is contained in:
hermes-seaeye[bot] 2026-08-05 07:06:05 +00:00 committed by GitHub
parent 530d8148aa
commit 2221010717
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
7 changed files with 8 additions and 39 deletions

View File

@ -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,

View File

@ -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)

View File

@ -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) {

View File

@ -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'
}

View File

@ -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) {

View File

@ -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',

View File

@ -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