Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions fallow-baselines/health.json
Original file line number Diff line number Diff line change
Expand Up @@ -499,7 +499,7 @@
"count": 1
}
},
"src/utils/text-surface.ts": {
"src/snapshot/snapshot-presentation/text-surface.ts": {
"crap_high": {
"count": 1
}
Expand Down Expand Up @@ -588,7 +588,7 @@
"src/utils/screenshot-result.ts:high impact",
"packages/platform-web/src/json-utils.ts:high impact",
"packages/platform-android/src/settings.ts:complexity",
"src/utils/text-surface.ts:high impact",
"src/snapshot/snapshot-presentation/text-surface.ts:high impact",
"src/daemon/handlers/session-test-sharding.ts:high impact",
"src/daemon/handlers/session-replay-runtime.ts:complexity",
"packages/platform-apple/src/core/debug-symbols/utils.ts:high impact",
Expand Down
2 changes: 1 addition & 1 deletion src/commands/interaction/runtime/selector-read-shared.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import type {
} from '@agent-device/kernel/snapshot';
import { findNodeByRef, normalizeRef } from '@agent-device/kernel/snapshot';
import { isSparseSnapshotQualityVerdict } from '@agent-device/capture-kit/snapshot-quality-verdict';
import { extractReadableText } from '../../../utils/text-surface.ts';
import { extractReadableText } from '../../../snapshot/snapshot-presentation/text-surface.ts';
import { now, toBackendContext } from '../../runtime-common.ts';
import { findNodeByLabel } from './selector-read-utils.ts';
import type { SelectorSnapshotInput } from '../../command-input.ts';
Expand Down
5 changes: 4 additions & 1 deletion src/daemon/handlers/interaction-read.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,10 @@ import { runtimeExecutionFromContext } from '../snapshot-runtime-capture-input.t
import { emitDiagnostic } from '@agent-device/host-kit/diagnostics';
import type { SessionState } from '../types.ts';
import type { SnapshotNode } from '@agent-device/kernel/snapshot';
import { extractReadableText, prefersValueForReadableText } from '../../utils/text-surface.ts';
import {
extractReadableText,
prefersValueForReadableText,
} from '../../snapshot/snapshot-presentation/text-surface.ts';
import type { ContextFromFlags } from './interaction-common.ts';
import { resolveRectCenter } from './interaction-targeting.ts';

Expand Down
6 changes: 5 additions & 1 deletion src/snapshot/snapshot-lines.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
import { isSystemScrollIndicatorLabel } from '@agent-device/kernel/scroll-indicator';
import type { SnapshotNode } from '@agent-device/kernel/snapshot';
import { buildTextPreview, describeTextSurface, trimText } from '../utils/text-surface.ts';
import {
buildTextPreview,
describeTextSurface,
trimText,
} from './snapshot-presentation/text-surface.ts';

type SnapshotDisplayLine = {
node: SnapshotNode;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import assert from 'node:assert/strict';
import { test } from 'vitest';
import { extractReadableText } from '../text-surface.ts';
import { extractReadableText } from './text-surface.ts';

test('extractReadableText ignores generic implementation identifiers as fallback text', () => {
assert.equal(
Expand Down
File renamed without changes.
Loading