mirror of
https://github.com/openai/codex.git
synced 2026-04-28 02:11:08 +03:00
cleanup
This commit is contained in:
@@ -1,8 +0,0 @@
|
||||
// Thin re‑export shim so test files that import `image-picker-overlay.js`
|
||||
// continue to work even though the real component is authored in TypeScript.
|
||||
//
|
||||
// We deliberately keep this file in plain JavaScript so Node can resolve it
|
||||
// without the “.tsx” extension when running under ts-node/esm in the test
|
||||
// environment.
|
||||
|
||||
export { default } from "./image-picker-overlay.tsx";
|
||||
@@ -5,8 +5,8 @@ import { Box, Text, useInput, useStdin } from "ink";
|
||||
|
||||
import SelectInput from "../select-input/select-input.js";
|
||||
|
||||
import { getDirectoryItems } from "../../utils/image-picker-utils.js";
|
||||
import type { PickerItem } from "../../utils/image-picker-utils.js";
|
||||
import { getDirectoryItems } from "../../utils/image-picker-utils";
|
||||
import type { PickerItem } from "../../utils/image-picker-utils";
|
||||
import React, { useMemo, useRef } from "react";
|
||||
|
||||
interface Props {
|
||||
|
||||
@@ -29,7 +29,7 @@ import { useInterval } from "use-interval";
|
||||
|
||||
// Internal imports
|
||||
// Image picker overlay triggered by "@" sentinel
|
||||
import ImagePickerOverlay from "./image-picker-overlay.js";
|
||||
import ImagePickerOverlay from "./image-picker-overlay";
|
||||
|
||||
const suggestions = [
|
||||
"explain this codebase to me",
|
||||
|
||||
@@ -1,4 +0,0 @@
|
||||
// Re‑export TypeScript implementation so regular `.js` import paths used by
|
||||
// the existing test‑suite continue to resolve correctly at runtime.
|
||||
|
||||
export * from "./image-picker-utils.ts";
|
||||
@@ -10,7 +10,7 @@ vi.mock("../src/utils/input-utils.js", () => ({
|
||||
imageFilenameByDataUrl: new Map(),
|
||||
}));
|
||||
|
||||
import ImagePickerOverlay from "../src/components/chat/image-picker-overlay.js";
|
||||
import ImagePickerOverlay from "../src/components/chat/image-picker-overlay";
|
||||
|
||||
async function type(
|
||||
stdin: NodeJS.WritableStream & { write(str: string): void },
|
||||
|
||||
Reference in New Issue
Block a user