Add completion, browser integration, and workspace improvements

This commit is contained in:
Knotty Wyvern
2026-10-07 11:25:17 -07:00
parent dd9fc64676
commit a8b1defb9d
86 changed files with 3524 additions and 203 deletions
+10
View File
@@ -6,6 +6,16 @@
<svg viewBox="0 0 24 24" aria-hidden="true">
{#if icon === "settings"}
<path d="m9 3-1 3-3 1-2 3 2 2v3l3 2 1 4h5l1-3 3-1 3-4-2-2V8l-3-2-1-3Z" /><circle cx="12" cy="12" r="3" />
{:else if icon === "globe"}
<circle cx="12" cy="12" r="9" /><ellipse cx="12" cy="12" rx="4" ry="9" /><path d="M3 12h18" />
{:else if icon === "arrow-left"}
<path d="M20 12H4m6-6-6 6 6 6" />
{:else if icon === "arrow-right"}
<path d="M4 12h16m-6-6 6 6-6 6" />
{:else if icon === "copy"}
<rect x="8" y="8" width="12" height="12" rx="2" /><path d="M16 8V4H4v12h4" />
{:else if icon === "stop"}
<rect x="5" y="5" width="14" height="14" rx="2" />
{:else if icon === "help"}
<circle cx="12" cy="12" r="9" /><path d="M9.5 9a2.5 2.5 0 1 1 4 2c-1 .6-1.5 1-1.5 3M12 17h.01" />
{:else if icon === "puzzle"}
+5
View File
@@ -2,6 +2,11 @@
import { onDestroy } from "svelte";
import Icon from "./Icon.svelte";
export type IconName =
| "globe"
| "arrow-left"
| "arrow-right"
| "copy"
| "stop"
| "settings"
| "help"
| "puzzle"
+16
View File
@@ -0,0 +1,16 @@
<script lang="ts">
import Icon from "./Icon.svelte";
import type { IconName } from "./IconButton.svelte";
let { image, icon }: { image?: string | null; icon?: IconName } = $props();
let failed = $state<string | null>(null);
</script>
{#if image && image !== failed}
<img class="tab-icon" src={image} alt="" width="16" height="16" draggable="false" onerror={() => { failed = image ?? null; }} />
{:else if icon}
<Icon {icon} />
{/if}
<style>
.tab-icon { width: 16px; height: 16px; flex-shrink: 0; object-fit: contain; }
</style>
+4
View File
@@ -1,5 +1,9 @@
// Stroke icons share the same 24px grid and weight as IconButton.
export const actionIcons = {
globe: '<circle cx="12" cy="12" r="9"/><ellipse cx="12" cy="12" rx="4" ry="9"/><path d="M3 12h18"/>',
puzzle: '<path d="M9 3H4v6a3 3 0 1 1 0 6v5h6a3 3 0 1 1 6 0h4v-6a3 3 0 1 0 0-6V3h-5a3 3 0 1 1-6 0Z"/>',
'split-right': '<rect x="3" y="4" width="18" height="16" rx="2"/><path d="M12 4v16m3-11 3 3-3 3"/>',
'split-down': '<rect x="3" y="4" width="18" height="16" rx="2"/><path d="M3 12h18m-12 3 3 3 3-3"/>',
kanban: '<rect x="3" y="4" width="5" height="16" rx="1"/><rect x="10" y="4" width="5" height="11" rx="1"/><rect x="17" y="4" width="4" height="7" rx="1"/>',
bookmark: '<path d="M6 4h12v16l-6-3-6 3z"/>',
'file-plus': '<path d="M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8zM14 2v6h6M12 18v-6M9 15h6"/>',