feat: file indexing (#1352)

This commit is contained in:
Shelley Pham
2026-03-11 14:58:30 -07:00
committed by GitHub
parent 0a07bf7343
commit 0a5e3d6132
12 changed files with 1849 additions and 114 deletions

View File

@@ -34,6 +34,7 @@ import {
resolveImportFlagAlias,
} from "./cli/flagUtils";
import { formatErrorDetails } from "./cli/helpers/errorFormatter";
import { ensureFileIndex } from "./cli/helpers/fileIndex";
import type { ApprovalRequest } from "./cli/helpers/stream";
import { ProfileSelectionInline } from "./cli/profile-selection";
import {
@@ -55,6 +56,7 @@ import { markMilestone } from "./utils/timing";
// anti-pattern of creating new [] on every render which triggers useEffect re-runs
const EMPTY_APPROVAL_ARRAY: ApprovalRequest[] = [];
const EMPTY_MESSAGE_ARRAY: Message[] = [];
void ensureFileIndex();
function printHelp() {
// Keep this plaintext (no colors) so output pipes cleanly