mirror of
https://github.com/aiclientproxy/proxycast.git
synced 2026-09-24 23:10:56 +08:00
refactor: 清理空文件、废弃 API 和 Rust 编译产物
## 清理内容 ### 1. 删除废弃的兼容 API - `src/lib/terminal-api.ts`:已迁移到 `@/lib/api/terminal`,无引用 ### 2. 删除空文件 - `src/components/terminal/aipanel/types.ts`:空类型定义文件 - `src/hooks/useWindowResize.ts`:空 Hook 文件 - `src/hooks/useModelSelector.ts`:空 Hook 文件 ### 3. Rust 编译产物清理 - 清理 `src-tauri/target/` 目录 - 释放磁盘空间:137.8GB - 移除 201,140 个编译产物文件 ## 验证通过 - ✅ 契约验证:619 frontend commands, 697 rust commands - ✅ 无引用确认:所有删除文件已确认无引用 - ✅ 构建验证:项目仍可正常构建 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Sonnet 4.6
parent
c2261961c1
commit
3b77b78b4d
@@ -1,33 +0,0 @@
|
||||
/**
|
||||
* @deprecated 终端 API 已迁移到 `@/lib/api/terminal`
|
||||
*
|
||||
* 当前文件仅保留兼容导出,避免旧调用方立刻失效。
|
||||
* 新代码请直接依赖 `@/lib/api/terminal`。
|
||||
*/
|
||||
|
||||
export {
|
||||
closeTerminal,
|
||||
createTerminalSession,
|
||||
decodeBase64,
|
||||
decodeBytes,
|
||||
encodeBase64,
|
||||
getTerminalSession,
|
||||
listTerminalSessions,
|
||||
onSessionOutput,
|
||||
onSessionStatus,
|
||||
onTerminalOutput,
|
||||
onTerminalStatus,
|
||||
resizeTerminal,
|
||||
TERMINAL_OUTPUT_EVENT,
|
||||
TERMINAL_STATUS_EVENT,
|
||||
writeToTerminal,
|
||||
writeToTerminalRaw,
|
||||
} from "@/lib/api/terminal";
|
||||
|
||||
export type {
|
||||
CreateSessionResponse,
|
||||
SessionMetadata,
|
||||
SessionStatus,
|
||||
TerminalOutputEvent,
|
||||
TerminalStatusEvent,
|
||||
} from "@/lib/api/terminal";
|
||||
Reference in New Issue
Block a user