feat: Add specialized context rendering for multi-cli-plan sessions

- Add MultiCliContextPackage type for multi-cli-plan context-package.json
- Create MultiCliContextContent component with sections for:
  - Selected solution (feasibility, effort, risk, CLI sources)
  - Implementation plan (approach, tasks with files, execution flow, milestones)
  - Dependencies (internal and external)
  - CLI consensus (agreements, resolved conflicts)
  - Technical concerns and constraints
- Update ExpandedMultiCliPanel to detect and use appropriate context renderer
- Add i18n translations for new context labels
This commit is contained in:
catlog22
2026-02-14 23:41:28 +08:00
parent 0bc0a13587
commit 9aa4dd1f6f
4 changed files with 367 additions and 4 deletions

View File

@@ -2244,6 +2244,42 @@ export interface RoundSynthesis {
user_feedback_incorporated?: string;
}
// Multi-cli-plan context-package.json structure
export interface MultiCliContextPackage {
solution?: {
name: string;
source_cli: string[];
feasibility: number;
effort: string;
risk: string;
summary: string;
};
implementation_plan?: {
approach: string;
tasks: Array<{
id: string;
name: string;
depends_on: string[];
files: SolutionFileAction[];
key_point: string | null;
}>;
execution_flow: string;
milestones: string[];
};
dependencies?: {
internal: string[];
external: string[];
};
technical_concerns?: string[];
consensus?: {
agreements: string[];
resolved_conflicts?: string;
};
constraints?: string[];
task_description?: string;
session_id?: string;
}
export interface LiteTasksResponse {
litePlan?: LiteTaskSession[];
liteFix?: LiteTaskSession[];