mirror of
https://github.com/claude-code-best/claude-code.git
synced 2026-06-18 06:15:51 +00:00
20 lines
698 B
TypeScript
20 lines
698 B
TypeScript
import React from 'react';
|
|
import { jsonParse } from '../../utils/slowOperations.js';
|
|
import type { Output } from './TeamDeleteTool.js';
|
|
export function renderToolUseMessage(_input: Record<string, unknown>): React.ReactNode {
|
|
return 'cleanup team: current';
|
|
}
|
|
export function renderToolResultMessage(content: Output | string, _progressMessages: unknown, {
|
|
verbose: _verbose
|
|
}: {
|
|
verbose: boolean;
|
|
}): React.ReactNode {
|
|
const result: Output = typeof content === 'string' ? jsonParse(content) : content;
|
|
|
|
// Suppress cleanup result - the batched shutdown message covers this
|
|
if ('success' in result && 'team_name' in result && 'message' in result) {
|
|
return null;
|
|
}
|
|
return null;
|
|
}
|