feat(workspace): slash commands ranked by name, taller link cards with a link marker
MindSift CI & Docker Release / Build, Test in Container & Push (push) Successful in 1m22s

- /li lists /link first: name prefix, aliases, name, then description
- link cards about twice as tall; the bare address below becomes an accent
  link marker; the link chip bar under bullets is gone, bare web addresses
  in text are links themselves

chore(release): v0.14.3

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
sandrodachandClaude Opus 5.5 committed 2026-10-31 00:19:19 +01:00
1 parent 08ae91fcdb
commit 6a855fc32c
10 files changed
+109 -72

No files matched your search

+11
View File
@@ -25,6 +25,17 @@ export function linkCardUrl(content: string): string | null {
}
/** Replaces the address by a named link, which shows no preview. */
/** "example.com/pfad" for a short link marker (no scheme, no www.) */
export function linkHost(url: string): string {
try {
const u = new URL(url);
const path = u.pathname === '/' ? '' : u.pathname;
return u.host.replace(/^www\./, '') + path;
} catch {
return url;
}
}
export function hidePreviewContent(content: string, url: string, title: string): string {
const label = (title || new URL(url).hostname).replace(/[[\]]/g, '').trim() || url;
return content.replace(url, `[${label}](${url})`);