mirror of
https://gitee.com/wanwujie/deer-flow
synced 2026-05-02 10:10:44 +08:00
feat: add .skill file preview support
Enable previewing .skill files (ZIP archives) by extracting and displaying their SKILL.md content. Add caching to avoid repeated ZIP extraction. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -30,6 +30,8 @@ export function useArtifactContent({
|
||||
return loadArtifactContent({ filepath, threadId });
|
||||
},
|
||||
enabled,
|
||||
// Cache artifact content for 5 minutes to avoid repeated fetches (especially for .skill ZIP extraction)
|
||||
staleTime: 5 * 60 * 1000,
|
||||
});
|
||||
return { content: isWriteFile ? content : data, isLoading, error };
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user