From 66668d85d603c5841d755a6023aa1925559fc6d4 Mon Sep 17 00:00:00 2001 From: 苏向夜 Date: Wed, 25 Feb 2026 01:32:51 +0800 Subject: chore(workspace): replace legacy codes --- packages/ui/src/components/AssistantView.svelte | 436 ------------------------ 1 file changed, 436 deletions(-) delete mode 100644 packages/ui/src/components/AssistantView.svelte (limited to 'packages/ui/src/components/AssistantView.svelte') diff --git a/packages/ui/src/components/AssistantView.svelte b/packages/ui/src/components/AssistantView.svelte deleted file mode 100644 index 54509a5..0000000 --- a/packages/ui/src/components/AssistantView.svelte +++ /dev/null @@ -1,436 +0,0 @@ - - -
-
-
-
- -
-
-

Game Assistant

-

Powered by {getProviderName()}

-
-
- -
- {#if !settingsState.settings.assistant.enabled} -
- - Disabled -
- {:else if !assistantState.isProviderHealthy} -
- - Offline -
- {:else} -
-
- Online -
- {/if} - - - - - - -
-
- - -
- {#if assistantState.messages.length === 0} -
- -
-

How can I help you today?

-

I can analyze your game logs, diagnose crashes, or explain mod features.

-
- {#if !settingsState.settings.assistant.enabled} -
- Assistant is disabled. Enable it in . -
- {:else if !assistantState.isProviderHealthy} -
- {getProviderHelpText()} -
- {/if} -
- {/if} - -
- {#each assistantState.messages as msg, idx} -
- {#if msg.role === 'assistant'} -
- -
- {/if} - -
- {#if msg.role === 'user'} -
- {msg.content} -
- {:else} - {@const parsed = parseMessageContent(msg.content)} - - - {#if parsed.thinking} -
-
- - - Thinking Process - - -
- {parsed.thinking} - {#if parsed.isThinking} - - {/if} -
-
-
- {/if} - - -
- {#if parsed.content} - {@html renderMarkdown(parsed.content)} - {:else if assistantState.isProcessing && idx === assistantState.messages.length - 1 && !parsed.isThinking} - - - - - - {/if} -
- - - {#if msg.stats} -
-
- Eval: - {msg.stats.eval_count} tokens -
-
- Time: - {(msg.stats.total_duration / 1e9).toFixed(2)}s -
- {#if msg.stats.eval_duration > 0} -
- Speed: - {(msg.stats.eval_count / (msg.stats.eval_duration / 1e9)).toFixed(1)} t/s -
- {/if} -
- {/if} - {/if} -
-
- {/each} -
- - -
-
- - - -
-
-
-
- - -- cgit v1.2.3-70-g09d2