feat: add notification

This commit is contained in:
Henry Li
2026-01-31 11:08:27 +08:00
parent 4e0571f3b3
commit c62caf95c4
18 changed files with 482 additions and 56 deletions

View File

@@ -11,7 +11,11 @@ export async function loadArtifactContent({
filepath: string;
threadId: string;
}) {
const url = urlOfArtifact({ filepath, threadId });
let enhancedFilepath = filepath;
if (filepath.endsWith(".skill")) {
enhancedFilepath = filepath.replace(".md", ".skill/SKILL.md");
}
const url = urlOfArtifact({ filepath: enhancedFilepath, threadId });
const response = await fetch(url);
const text = await response.text();
return text;