Skip to content

Commit 4e77d99

Browse files
committed
refactor(apple-runner): move command exchange out of session owner
1 parent fb72443 commit 4e77d99

6 files changed

Lines changed: 515 additions & 483 deletions

File tree

‎packages/platform-apple/src/runner/__tests__/runner-failure-diagnostics.test.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { onTestFinished, test } from 'vitest';
55
import { AppError } from '@agent-device/kernel/errors';
66
import { logChunk } from '../runner-io.ts';
77
import { captureRunnerLogAttempt } from '../runner-failure-diagnostics.ts';
8-
import { parseRunnerResponse } from '../runner-session.ts';
8+
import { parseRunnerResponse } from '../runner-exchange.ts';
99
import { mkdtempForTestSync } from './tmp-dir.ts';
1010

1111
/**

‎packages/platform-apple/src/runner/__tests__/runner-response.test.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import {
88
readRunnerResponseData,
99
} from '../runner-contract.ts';
1010
import { isStructuredRunnerFailure } from '../runner-error-classification.ts';
11-
import { parseRunnerResponse } from '../runner-session.ts';
11+
import { parseRunnerResponse } from '../runner-exchange.ts';
1212
import type { RunnerSessionState } from '../runner-session-types.ts';
1313

1414
// A body cut off mid-write: the shape a runner that died while answering leaves behind.

‎packages/platform-apple/src/runner/__tests__/runner-session-response.test.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import { mkdtempForTestSync } from './tmp-dir.ts';
88
import { appleRunnerTestHost } from '../test-host.ts';
99
import { isRetryableRunnerError } from '../runner-error-classification.ts';
1010
import type { RunnerLogAttempt } from '../runner-failure-diagnostics.ts';
11-
import { parseRunnerResponse } from '../runner-session.ts';
11+
import { parseRunnerResponse } from '../runner-exchange.ts';
1212

1313
test('parseRunnerResponse preserves runner unsupported-operation codes', async () => {
1414
const response = new Response(

0 commit comments

Comments
 (0)