mirror of
https://github.com/QwenLM/qwen-code.git
synced 2025-12-23 02:07:52 +00:00
- Fix unused variable issues by removing unused variables and renaming caught errors to match ESLint rules - Fix TypeScript type mismatches in mode handling - Add missing curly braces to if statements to comply with ESLint rules - Resolve missing dependency warnings in React hooks - Clean up empty catch blocks by adding appropriate comments - Remove unused _lastEditorState variables that were declared but never read These changes ensure the codebase passes ESLint checks and follows best practices for code quality.
25 lines
656 B
TypeScript
25 lines
656 B
TypeScript
/**
|
|
* @license
|
|
* Copyright 2025 Qwen Team
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
export const AGENT_METHODS = {
|
|
authenticate: 'authenticate',
|
|
initialize: 'initialize',
|
|
session_cancel: 'session/cancel',
|
|
session_list: 'session/list',
|
|
session_load: 'session/load',
|
|
session_new: 'session/new',
|
|
session_prompt: 'session/prompt',
|
|
session_save: 'session/save',
|
|
session_set_mode: 'session/set_mode',
|
|
} as const;
|
|
|
|
export const CLIENT_METHODS = {
|
|
fs_read_text_file: 'fs/read_text_file',
|
|
fs_write_text_file: 'fs/write_text_file',
|
|
session_request_permission: 'session/request_permission',
|
|
session_update: 'session/update',
|
|
} as const;
|