mirror of
https://github.com/QwenLM/qwen-code.git
synced 2025-12-19 09:33:53 +00:00
Complete session message handling with JSONL support and UI enhancements - Add JSONL session file reading capability - Improve error handling and authentication flows - Update UI components for better user experience - Fix command identifier references - Enhance MarkdownRenderer with copy functionality - Update Tailwind configuration for better component coverage
38 lines
666 B
TypeScript
38 lines
666 B
TypeScript
/**
|
|
* @license
|
|
* Copyright 2025 Qwen Team
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
export interface PermissionOption {
|
|
name: string;
|
|
kind: string;
|
|
optionId: string;
|
|
}
|
|
|
|
export interface ToolCall {
|
|
title?: string;
|
|
kind?: string;
|
|
toolCallId?: string;
|
|
rawInput?: {
|
|
command?: string;
|
|
description?: string;
|
|
[key: string]: unknown;
|
|
};
|
|
content?: Array<{
|
|
type: string;
|
|
[key: string]: unknown;
|
|
}>;
|
|
locations?: Array<{
|
|
path: string;
|
|
line?: number | null;
|
|
}>;
|
|
status?: string;
|
|
}
|
|
|
|
export interface PermissionRequestProps {
|
|
options: PermissionOption[];
|
|
toolCall: ToolCall;
|
|
onResponse: (optionId: string) => void;
|
|
}
|