The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
style: eslint --fix import ordering in salvaged IME tests
Teknium29ce48204785
diff --git a/ui-tui/packages/hermes-ink/src/ink/parse-keypress-drop-probe.test.ts b/ui-tui/packages/hermes-ink/src/ink/parse-keypress-drop-probe.test.tsindex 6cc013476db..cfd19403698 100644--- a/ui-tui/packages/hermes-ink/src/ink/parse-keypress-drop-probe.test.ts+++ b/ui-tui/packages/hermes-ink/src/ink/parse-keypress-drop-probe.test.ts@@ -12,12 +12,16 @@ function keysToText(keys: Array<{ name?: string; sequence?: string }>): string {// Reconstruct what the composer would insert: backspaces delete, everything// else with a printable sequence inserts its sequence.let out = ''+for (const k of keys) {if (k.name === 'backspace') {out = out.slice(0, -1)+continue}+const seq = k.sequence ?? ''+// Mirror the composer's PRINTABLE gateif (/^[ -~\u00a0-\uffff]+$/.test(seq)) {out += seq@@ -27,6 +31,7 @@ function keysToText(keys: Array<{ name?: string; sequence?: string }>): string {out += `«DROP:${[...seq].map(c => 'U+' + c.codePointAt(0)!.toString(16)).join(',')}»`}}+return out}@@ -58,6 +63,7 @@ describe('parser does not silently drop printable codepoints', () => {it('exhaustive: DEL between every pair of letters never drops a letter', () => {const letters = [...'aăâeêioôơuưy']+for (const a of letters) {for (const b of letters) {const input = `${a}\x7f${b}`diff --git a/ui-tui/src/__tests__/imeVietnameseTelex.test.tsx b/ui-tui/src/__tests__/imeVietnameseTelex.test.tsxindex 59d2be77825..f4dc2e2438b 100644--- a/ui-tui/src/__tests__/imeVietnameseTelex.test.tsx+++ b/ui-tui/src/__tests__/imeVietnameseTelex.test.tsx@@ -2,7 +2,7 @@ import { EventEmitter } from 'events'import { renderSync } from '@hermes/ink'import React, { useState } from 'react'-import { describe, expect, it, vi, beforeEach, afterEach } from 'vitest'+import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest'import { TextInput } from '../components/textInput.js'@@ -41,11 +41,13 @@ class FakeTty extends EventEmitter {}setRawMode(mode: boolean): this {this.isRaw = mode+return this}write(chunk: string | Uint8Array, cb?: (err?: Error | null) => void): boolean {this.chunks.push(typeof chunk === 'string' ? chunk : Buffer.from(chunk).toString('utf8'))cb?.()+return true}}@@ -192,10 +194,12 @@ describe('Fast-echo suppression reset (60ms window)', () => {try {await tick()+for (const r of reads) {stdin1.send(r)await tick()}+// After "ha", fast-echo is enabled (inkRepaintedRef.current = false)expect(values1.at(-1)).toBe('ha')