The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.
Rust agent-orchestrationai-agentsai-assistantdesktopllmlocal-firstmcppersonal-aiprivacyrustsecond-braintauri
chore: reorder imports and format test code
Steven Enamakel86efc3c0edec
diff --git a/app/src/components/flows/FlowRunInspectorDrawer.tsx b/app/src/components/flows/FlowRunInspectorDrawer.tsxindex 6551c74542..b21fec5728 100644--- a/app/src/components/flows/FlowRunInspectorDrawer.tsx+++ b/app/src/components/flows/FlowRunInspectorDrawer.tsx@@ -28,8 +28,8 @@ import { useFlowPendingApprovals } from '../../hooks/useFlowPendingApprovals';import { useFlowRunPoller } from '../../hooks/useFlowRunPoller';import { type FlowNodeRunStatus, useFlowRunProgress } from '../../hooks/useFlowRunProgress';import { type FlowRunItem, normalizeItems } from '../../lib/flows/runItems';-import { formatRunTimestamp } from '../../lib/flows/runTimestamp';import { summarizeStep } from '../../lib/flows/runStepSummary';+import { formatRunTimestamp } from '../../lib/flows/runTimestamp';import { useT } from '../../lib/i18n/I18nContext';import type { FlowRunStep } from '../../services/api/flowsApi';import { Alert, AlertDescription, Button, CenteredLoadingState } from '../ui';diff --git a/app/src/lib/flows/nodeSummary.ts b/app/src/lib/flows/nodeSummary.tsindex 394cc05a18..8eb7663b72 100644--- a/app/src/lib/flows/nodeSummary.ts+++ b/app/src/lib/flows/nodeSummary.ts@@ -12,9 +12,9 @@* `runStepSummary.ts` — so callers (React components that already hold a `t`* / `locale` from `useT()`) stay in control of localization.*/+import { truncateText } from '../../utils/truncateText';import { describeSchedule, type Translate } from './cron';import type { NodeKind } from './types';-import { truncateText } from '../../utils/truncateText';function str(config: Record<string, unknown>, key: string): string {const v = config[key];diff --git a/app/src/lib/flows/runStepSummary.ts b/app/src/lib/flows/runStepSummary.tsindex 2479e282df..a4b64910a1 100644--- a/app/src/lib/flows/runStepSummary.ts+++ b/app/src/lib/flows/runStepSummary.ts@@ -30,8 +30,8 @@*/import createDebug from 'debug';-import { type FlowRunItem, isPlainObject } from './runItems';import { truncateText } from '../../utils/truncateText';+import { type FlowRunItem, isPlainObject } from './runItems';const log = createDebug('app:flows:step-summary');diff --git a/app/src/lib/nativeNotifications/service.ts b/app/src/lib/nativeNotifications/service.tsindex df597a4692..ed8979fadc 100644--- a/app/src/lib/nativeNotifications/service.ts+++ b/app/src/lib/nativeNotifications/service.ts@@ -8,8 +8,8 @@ import {type NotificationItem,notificationReceived,} from '../../store/notificationSlice';-import { ensureNotificationPermission, showNativeNotification } from './tauriBridge';import { truncateText } from '../../utils/truncateText';+import { ensureNotificationPermission, showNativeNotification } from './tauriBridge';const log = debug('native-notifications');diff --git a/app/src/utils/__tests__/toolTimelineFormatting.test.ts b/app/src/utils/__tests__/toolTimelineFormatting.test.tsindex 45a153c58b..b7067bfe8f 100644--- a/app/src/utils/__tests__/toolTimelineFormatting.test.ts+++ b/app/src/utils/__tests__/toolTimelineFormatting.test.ts@@ -298,7 +298,10 @@ describe('formatTimelineEntry', () => {it('formats list with directory path', () => {expect(formatTimelineEntry(- entry({ name: 'list', argsBuffer: JSON.stringify({ path: 'crates/openhuman-core/src/tools' }) })+ entry({+ name: 'list',+ argsBuffer: JSON.stringify({ path: 'crates/openhuman-core/src/tools' }),+ }))).toEqual({ title: 'Listing directory', detail: 'crates/openhuman-core/src/tools' });});diff --git a/crates/openhuman-app/src/process_recovery/windows_imp/process_recovery_windows_tests.rs b/crates/openhuman-app/src/process_recovery/windows_imp/process_recovery_windows_tests.rsindex 26b28d6246..bf103c5384 100644--- a/crates/openhuman-app/src/process_recovery/windows_imp/process_recovery_windows_tests.rs+++ b/crates/openhuman-app/src/process_recovery/windows_imp/process_recovery_windows_tests.rs@@ -175,8 +175,8 @@ fn cim_runs_when_wmic_is_unavailable() {fn cim_runs_when_wmic_returns_nothing() {// 24H2 can leave a wmic shim that exits cleanly with no output,// which is not an error and still means no processes.- let out = select_enumeration(|| Ok(vec![]), || Ok(vec![proc(9, 0, "c", "c")]))- .expect("cim path");+ let out =+ select_enumeration(|| Ok(vec![]), || Ok(vec![proc(9, 0, "c", "c")])).expect("cim path");assert_eq!(out[0].pid, 9);}