feat: 添加更好的 SQLite3 模块加载和错误处理,更新相关组件以支持项目路径

This commit is contained in:
catlog22
2026-02-06 23:07:56 +08:00
parent 5cdbb43b3b
commit 3d862e6ed8
15 changed files with 541 additions and 38 deletions

View File

@@ -524,8 +524,18 @@ export function useProjectOperations(): UseProjectOperationsReturn {
isLoading: projectsQuery.isLoading,
error: projectsQuery.error,
refetch,
copyToCodex: (request) => copyMutation.mutateAsync({ ...request, source: 'claude', target: 'codex' }),
copyFromCodex: (request) => copyMutation.mutateAsync({ ...request, source: 'codex', target: 'claude' }),
copyToCodex: (request) => copyMutation.mutateAsync({
...request,
source: 'claude',
target: 'codex',
projectPath: request.projectPath ?? projectPath ?? undefined,
}),
copyFromCodex: (request) => copyMutation.mutateAsync({
...request,
source: 'codex',
target: 'claude',
projectPath: request.projectPath ?? projectPath ?? undefined,
}),
isCopying: copyMutation.isPending,
fetchOtherServers,
isFetchingServers: serversQuery.isFetching,