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>
25 lines
1.1 KiB
TypeScript
25 lines
1.1 KiB
TypeScript
import * as React from 'react';
|
|
import type { CommandResultDisplay, LocalJSXCommandContext } from '../../commands.js';
|
|
import { Feedback } from '../../components/Feedback.js';
|
|
import type { LocalJSXCommandOnDone } from '../../types/command.js';
|
|
import type { Message } from '../../types/message.js';
|
|
|
|
// Shared function to render the Feedback component
|
|
export function renderFeedbackComponent(onDone: (result?: string, options?: {
|
|
display?: CommandResultDisplay;
|
|
}) => void, abortSignal: AbortSignal, messages: Message[], initialDescription: string = '', backgroundTasks: {
|
|
[taskId: string]: {
|
|
type: string;
|
|
identity?: {
|
|
agentId: string;
|
|
};
|
|
messages?: Message[];
|
|
};
|
|
} = {}): React.ReactNode {
|
|
return <Feedback abortSignal={abortSignal} messages={messages} initialDescription={initialDescription} onDone={onDone} backgroundTasks={backgroundTasks} />;
|
|
}
|
|
export async function call(onDone: LocalJSXCommandOnDone, context: LocalJSXCommandContext, args?: string): Promise<React.ReactNode> {
|
|
const initialDescription = args || '';
|
|
return renderFeedbackComponent(onDone, context.abortController.signal, context.messages, initialDescription);
|
|
}
|