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>
26 lines
855 B
TypeScript
26 lines
855 B
TypeScript
// Stub for external builds — the real hook is internal only.
|
|
//
|
|
// Self-contained: no relative imports. Typecheck sees this file at
|
|
// scripts/external-stubs/src/moreright/ before overlay, where ../types/
|
|
// would resolve to scripts/external-stubs/src/types/ (doesn't exist).
|
|
|
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
type M = any;
|
|
export function useMoreRight(_args: {
|
|
enabled: boolean;
|
|
setMessages: (action: M[] | ((prev: M[]) => M[])) => void;
|
|
inputValue: string;
|
|
setInputValue: (s: string) => void;
|
|
setToolJSX: (args: M) => void;
|
|
}): {
|
|
onBeforeQuery: (input: string, all: M[], n: number) => Promise<boolean>;
|
|
onTurnComplete: (all: M[], aborted: boolean) => Promise<void>;
|
|
render: () => null;
|
|
} {
|
|
return {
|
|
onBeforeQuery: async () => true,
|
|
onTurnComplete: async () => {},
|
|
render: () => null
|
|
};
|
|
}
|