Inline base64 source maps had been checked into tracked src files. This strips those comments from the repository without changing runtime behavior or adding ongoing guardrails, per the requested one-time cleanup scope. Constraint: Keep this change limited to tracked source cleanup only Rejected: Add CI/source verification guard | user requested one-time cleanup only Confidence: high Scope-risk: narrow Reversibility: clean Directive: If these directives reappear, fix the producing transform instead of reintroducing repo-side cleanup code Tested: rg -n "sourceMappingURL" ., bun run smoke, bun run verify:privacy, bun run test:provider, npm run test:provider-recommendation Not-tested: bun run typecheck (repository has many pre-existing unrelated failures) Co-authored-by: anandh8x <test@example.com>
23 lines
813 B
TypeScript
23 lines
813 B
TypeScript
import React from 'react';
|
|
import type { StatsStore } from './context/stats.js';
|
|
import type { Root } from './ink.js';
|
|
import type { Props as REPLProps } from './screens/REPL.js';
|
|
import type { AppState } from './state/AppStateStore.js';
|
|
import type { FpsMetrics } from './utils/fpsTracker.js';
|
|
type AppWrapperProps = {
|
|
getFpsMetrics: () => FpsMetrics | undefined;
|
|
stats?: StatsStore;
|
|
initialState: AppState;
|
|
};
|
|
export async function launchRepl(root: Root, appProps: AppWrapperProps, replProps: REPLProps, renderAndRun: (root: Root, element: React.ReactNode) => Promise<void>): Promise<void> {
|
|
const {
|
|
App
|
|
} = await import('./components/App.js');
|
|
const {
|
|
REPL
|
|
} = await import('./screens/REPL.js');
|
|
await renderAndRun(root, <App {...appProps}>
|
|
<REPL {...replProps} />
|
|
</App>);
|
|
}
|