{#if loading} {:else if error} {:else}
(selectedFolder = id)} oncreate={openCreateFolder} onrename={openRenameFolder} ondelete={deleteFolder} />

新建技能

{#if showZipUpload}
uploadZip(e.currentTarget.files)} /> {zipUploading ? '安装中…' : '选择 .zip'}

zip 根目录即为 skill(须直接含 SKILL.md)。名称取自 manifest;仅 UTF-8 文本;当前选中管理文件夹时会自动归入。覆盖同 name 会更新内容(可能使绑定角色会话不可安全恢复)。

{/if} {#if showNewSkill}

技能名称仅允许小写字母、数字和连字符,且以字母或数字开头。创建后会生成 SKILL.md 模板;当前选中文件夹时新技能会自动归入其中。

{/if}
{#if skills.length === 0}
{:else if visibleSkills.length === 0}
{:else}
{#each visibleSkills as skill (skill.id)} {/each}
{/if}
{ if (e.key === 'Enter') submitFolderModal(); }} />

父文件夹

{/if}