Publish Claude Code Binaries / Stage and publish binaries (push) Canceled after 0s
Publish Tutti App Runtime / Build darwin-arm64 (push) Canceled after 0s
Publish Tutti App Runtime / Build darwin-amd64 (push) Canceled after 0s
Publish Tutti App Runtime / Build linux-amd64 (push) Canceled after 0s
Publish Tutti App Runtime / Build windows-amd64 (push) Canceled after 0s
Sync Tutti Agent Skills / sync (push) Canceled after 0s
Windows Agent Adapters / Test Windows agent adapters (push) Canceled after 0s
Windows Daemon Adapters / Test Windows daemon adapters (push) Canceled after 0s
Publish Tutti App Runtime / Publish runtime catalog (push) Canceled after 0s
52 lines
1.1 KiB
TypeScript
52 lines
1.1 KiB
TypeScript
import { Button } from "@tutti-os/ui-system";
|
|
|
|
interface AgentGUITuttiPlanReviewActionSlotController {
|
|
planReviewDraftHasContent: boolean;
|
|
planReviewPreferencesDiverged: boolean;
|
|
planReviewSendActive: boolean;
|
|
requestPendingPlanChanges(): void;
|
|
}
|
|
|
|
export function AgentGUITuttiPlanReviewActionSlot({
|
|
controller,
|
|
label
|
|
}: {
|
|
controller: AgentGUITuttiPlanReviewActionSlotController;
|
|
label: string;
|
|
}): React.JSX.Element | null {
|
|
if (
|
|
!controller.planReviewSendActive ||
|
|
!controller.planReviewPreferencesDiverged ||
|
|
controller.planReviewDraftHasContent
|
|
) {
|
|
return null;
|
|
}
|
|
return (
|
|
<AgentGUITuttiPlanReviewAction
|
|
label={label}
|
|
onRequestChanges={controller.requestPendingPlanChanges}
|
|
/>
|
|
);
|
|
}
|
|
|
|
export function AgentGUITuttiPlanReviewAction({
|
|
label,
|
|
onRequestChanges
|
|
}: {
|
|
label: string;
|
|
onRequestChanges(): void;
|
|
}): React.JSX.Element {
|
|
return (
|
|
<Button
|
|
type="button"
|
|
variant="secondary"
|
|
size="sm"
|
|
className="rounded-full"
|
|
data-testid="agent-gui-plan-request-changes"
|
|
onClick={onRequestChanges}
|
|
>
|
|
{label}
|
|
</Button>
|
|
);
|
|
}
|