0 ? '' : 'hidden'} id={(filteredItems ?? []).length > 0 ? 'suggestions-container' : undefined} >
{#if char === '/'}
{ const { type, data } = e; if (type === 'prompt') { command({ id: data.command, label: data.command, content: data.content, type: 'prompt' }); } else if (type === 'command' && data.id === 'compact') { command({ id: data.id, label: data.id }); onCompact(); } else if (type === 'command' && data.id === 'status') { command({ id: data.id, label: data.id }); onStatus(); } else if (type === 'command' && data.id === 'fork') { command({ id: data.id, label: data.id }); onFork(); } else if (type === 'command' && data.id === 'model') { command({ id: data.id, label: data.id }); onModel(); } else if (type === 'command' && data.id === 'compare') { command({ id: data.id, label: data.id }); onCompare?.(); } else if (type === 'command' && data.id === 'settings') { command({ id: data.id, label: data.id }); onSettings(); } else if (type === 'command' && data.id === 'temporary') { command({ id: data.id, label: data.id }); onTemporary(); } else if (type === 'command' && data.id === 'skills:create') { command({ id: data.id, label: data.id }); onCreateSkill(); } else if (type === 'skill') { command({ id: `${data.id}|${data.name}`, label: data.name }); onSelect({ type: 'skill', data: data }); } }} /> {:else if char === '#'}
{ const { type, data } = e; if (type === 'knowledge') { insertTextHandler(''); onUpload({ type: 'file', data: data }); } else if (type === 'web') { insertTextHandler(''); onUpload({ type: 'web', data: data }); } }} /> {:else if char === '@'}
{ const { type, data } = e; if (type === 'model') { insertTextHandler(''); onSelect({ type: 'model', data: data }); } else if (type === 'knowledge') { insertTextHandler(''); onUpload({ type: 'file', data: data }); } else if (type === 'filesystem') { insertTextHandler(''); onUpload({ type: 'filesystem', data: data }); } else if (type === 'web') { insertTextHandler(''); onUpload({ type: 'web', data: data }); } }} /> {:else if char === '$'}
{ const { type, data } = e; if (type === 'skill') { command({ id: `${data.id}|${data.name}`, label: data.name }); onSelect({ type: 'skill', data: data }); } }} /> {:else if char === ':'}
{ const { type, data } = e; if (type === 'emoji') { command({ id: data.name, label: data.shortCodes[0] }); } }} /> {/if}