Skip to content

Commit 4638e64

Browse files
authored
refactor(desktop): remove internal compatibility facades (#4151)
Import shared thread search and the Computer Use PIP feed from their owning modules. Remove the Desktop-only forwarding file and the completed PIP migration re-exports while leaving the PIP controller and lifecycle unchanged. Generated-by: Codex
1 parent f701b8d commit 4638e64

5 files changed

Lines changed: 4 additions & 48 deletions

File tree

apps/desktop/src/main/__tests__/thread-search.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ import {
2828
findMatch,
2929
foldForMatch,
3030
runThreadSearch,
31-
} from '../search/thread-search.js';
31+
} from '@maka/core/thread-search';
3232

3333
type Entry = { session: SessionSummary; messages: StoredMessage[] };
3434
type SearchOutcome = Awaited<ReturnType<typeof runThreadSearch>>;

apps/desktop/src/main/computer-use/pip-window.ts

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -761,12 +761,3 @@ export function createComputerUsePipController(
761761
},
762762
};
763763
}
764-
765-
766-
767-
// Re-exported so callers keep their type import path while the code moves.
768-
export type { ParentWindowLike, PipWindowLike } from './pip-electron.js';
769-
770-
// Re-exported so callers and tests keep their import path while the code
771-
// moves. Comes out in a later cut.
772-
export { withComputerUsePip } from './pip-feed.js';

apps/desktop/src/main/desktop-native-capability-assembly.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,8 @@ import {
2525
createDesktopPhysicalInputGuard,
2626
} from './computer-use-host.js';
2727
import { createCursorOverlayController } from './computer-use/cursor-overlay-window.js';
28-
import {
29-
createComputerUsePipController,
30-
withComputerUsePip,
31-
} from './computer-use/pip-window.js';
28+
import { withComputerUsePip } from './computer-use/pip-feed.js';
29+
import { createComputerUsePipController } from './computer-use/pip-window.js';
3230
import {
3331
createComputerUseStatusItem,
3432
withComputerUseStatusItem,

apps/desktop/src/main/runtime-host-search-ipc-main.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,14 @@
1818
*/
1919

2020
import type { SearchResult } from '@maka/core/search';
21+
import { runThreadSearch } from '@maka/core/thread-search';
2122
import type { DesktopRuntimeHostClient } from './runtime-host-client.js';
2223
import { toDesktopHostSessionSummary } from './runtime-host-session-catalog-ipc-main.js';
2324
import {
2425
handleReconnectableRead,
2526
readWithFallback,
2627
type ReconnectableReadIpcMain,
2728
} from './ipc-reconnect-policy.js';
28-
import { runThreadSearch } from './search/thread-search.js';
2929

3030
interface RuntimeHostSearchIpcDeps {
3131
readonly ipcMain: ReconnectableReadIpcMain;

apps/desktop/src/main/search/thread-search.ts

Lines changed: 0 additions & 33 deletions
This file was deleted.

0 commit comments

Comments
 (0)