From a679049c3859b2d0b2557fd3e0e00d0ec7ae97f8 Mon Sep 17 00:00:00 2001 From: Peter Steinberger Date: Sun, 8 Mar 2026 02:08:23 +0000 Subject: [PATCH] refactor(doctor): type legacy migration fixtures --- src/commands/doctor.e2e-harness.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/commands/doctor.e2e-harness.ts b/src/commands/doctor.e2e-harness.ts index 9959f85a15a..b15bdfa6234 100644 --- a/src/commands/doctor.e2e-harness.ts +++ b/src/commands/doctor.e2e-harness.ts @@ -3,6 +3,7 @@ import os from "node:os"; import path from "node:path"; import { afterEach, beforeEach, vi } from "vitest"; import type { MockFn } from "../test-utils/vitest-mock-fn.js"; +import type { LegacyStateDetection } from "./doctor-state-migrations.js"; let originalIsTTY: boolean | undefined; let originalStateDir: string | undefined; @@ -113,7 +114,7 @@ export const autoMigrateLegacyStateDir = vi.fn().mockResolvedValue({ function createLegacyStateMigrationDetectionResult(params?: { hasLegacySessions?: boolean; preview?: string[]; -}) { +}): LegacyStateDetection { return { targetAgentId: "main", targetMainKey: "main", @@ -139,9 +140,8 @@ function createLegacyStateMigrationDetectionResult(params?: { hasLegacy: false, }, pairingAllowFrom: { - legacyTelegramPath: "/tmp/oauth/telegram-allowFrom.json", - targetTelegramPath: "/tmp/oauth/telegram-default-allowFrom.json", hasLegacyTelegram: false, + copyPlans: [], }, preview: params?.preview ?? [], };