mirror of
https://github.com/QwenLM/qwen-code.git
synced 2026-05-05 15:31:27 +00:00
Some checks are pending
Qwen Code CI / Lint (GitHub Actions) (push) Waiting to run
Qwen Code CI / Lint (Javascript) (push) Waiting to run
Qwen Code CI / Lint (Shell) (push) Waiting to run
Qwen Code CI / Lint (YAML) (push) Waiting to run
Qwen Code CI / Lint (push) Blocked by required conditions
Qwen Code CI / Test (push) Blocked by required conditions
Qwen Code CI / Test-1 (push) Blocked by required conditions
Qwen Code CI / Test-2 (push) Blocked by required conditions
Qwen Code CI / Test-3 (push) Blocked by required conditions
Qwen Code CI / Test-4 (push) Blocked by required conditions
Qwen Code CI / Test-5 (push) Blocked by required conditions
Qwen Code CI / Test-6 (push) Blocked by required conditions
Qwen Code CI / Test-7 (push) Blocked by required conditions
Qwen Code CI / Test-8 (push) Blocked by required conditions
Qwen Code CI / Post Coverage Comment (push) Blocked by required conditions
Qwen Code CI / CodeQL (push) Waiting to run
E2E Tests / E2E Test (Linux) - sandbox:docker (push) Waiting to run
E2E Tests / E2E Test (Linux) - sandbox:none (push) Waiting to run
E2E Tests / E2E Test (Linux) - sandbox:docker-1 (push) Waiting to run
E2E Tests / E2E Test (Linux) - sandbox:none-1 (push) Waiting to run
E2E Tests / E2E Test (Linux) - sandbox:docker-2 (push) Waiting to run
E2E Tests / E2E Test (Linux) - sandbox:none-2 (push) Waiting to run
E2E Tests / E2E Test - macOS (push) Waiting to run
41 lines
949 B
TypeScript
41 lines
949 B
TypeScript
/**
|
|
* @license
|
|
* Copyright 2025 Qwen
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
import type React from 'react';
|
|
import { Box, Text } from 'ink';
|
|
import { MarkdownDisplay } from '../utils/MarkdownDisplay.js';
|
|
import { Colors } from '../colors.js';
|
|
import type { PlanResultDisplay } from '@qwen-code/qwen-code-core';
|
|
|
|
interface PlanSummaryDisplayProps {
|
|
data: PlanResultDisplay;
|
|
availableHeight?: number;
|
|
childWidth: number;
|
|
}
|
|
|
|
export const PlanSummaryDisplay: React.FC<PlanSummaryDisplayProps> = ({
|
|
data,
|
|
availableHeight,
|
|
childWidth,
|
|
}) => {
|
|
const { message, plan } = data;
|
|
|
|
return (
|
|
<Box flexDirection="column">
|
|
<Box marginBottom={1}>
|
|
<Text color={Colors.AccentGreen} wrap="wrap">
|
|
{message}
|
|
</Text>
|
|
</Box>
|
|
<MarkdownDisplay
|
|
text={plan}
|
|
isPending={false}
|
|
availableTerminalHeight={availableHeight}
|
|
terminalWidth={childWidth}
|
|
/>
|
|
</Box>
|
|
);
|
|
};
|