MCPcopy Create free account
hub / github.com/scriptscat/scriptcat / initSkillFromCache

Function initSkillFromCache

src/pages/install/hooks.tsx:102–113  ·  view source on GitHub ↗
(uuid: string)

Source from the content-addressed store, hash-verified

100
101 // Skill ZIP 安装:从缓存加载并解析
102 const initSkillFromCache = async (uuid: string) => {
103 try {
104 setLoaded(true);
105 if (window.history.length > 1) {
106 setDoBackwards(true);
107 }
108 const data = await agentClient.getSkillInstallData(uuid);
109 setSkillPreview(data);
110 } catch (e: any) {
111 Message.error(t("script_info_load_failed") + " " + e.message);
112 }
113 };
114
115 // Skill 安装确认
116 const handleSkillInstall = async () => {

Callers 2

useInstallDataFunction · 0.85
loadSkillFromUrlFunction · 0.85

Calls 2

errorMethod · 0.80
getSkillInstallDataMethod · 0.45

Tested by

no test coverage detected