feat: add remote workspaces and verified deliverables
This commit is contained in:
@@ -1,9 +1,11 @@
|
||||
<script lang="ts">
|
||||
import { models } from '$lib/stores';
|
||||
import WorkspaceFiles from './WorkspaceFiles.svelte';
|
||||
|
||||
export let selectedModels = [''];
|
||||
export let disabled = false;
|
||||
export let showSetDefault = true;
|
||||
let showWorkspace = false;
|
||||
|
||||
const strengths = [
|
||||
{ key: 'light', label: '轻度' },
|
||||
@@ -67,7 +69,7 @@
|
||||
? 'bg-white text-gray-900 shadow-sm dark:bg-gray-700 dark:text-white'
|
||||
: 'text-gray-500 hover:text-gray-800 dark:text-gray-400 dark:hover:text-gray-200'}"
|
||||
on:click={() => chooseMode('work')}
|
||||
disabled={disabled}
|
||||
{disabled}
|
||||
title="长链路、多步骤工作"
|
||||
>
|
||||
Work
|
||||
@@ -85,10 +87,24 @@
|
||||
? 'bg-gray-900 text-white dark:bg-white dark:text-gray-900'
|
||||
: 'text-gray-500 hover:bg-gray-100 dark:text-gray-400 dark:hover:bg-gray-800'}"
|
||||
on:click={() => chooseStrength(item.key)}
|
||||
disabled={disabled}
|
||||
{disabled}
|
||||
>
|
||||
{item.label}
|
||||
</button>
|
||||
{/each}
|
||||
</div>
|
||||
|
||||
<button
|
||||
type="button"
|
||||
class="rounded-xl border border-gray-200/80 p-2 text-gray-500 transition hover:bg-gray-100 hover:text-gray-900 dark:border-gray-700/80 dark:text-gray-400 dark:hover:bg-gray-800 dark:hover:text-white"
|
||||
on:click={() => (showWorkspace = true)}
|
||||
title="工作区文件"
|
||||
aria-label="工作区文件"
|
||||
>
|
||||
<svg viewBox="0 0 24 24" class="size-4" fill="none" stroke="currentColor" stroke-width="1.8">
|
||||
<path d="M3.5 6.5h6l2 2h9v10h-17z" stroke-linejoin="round" />
|
||||
</svg>
|
||||
</button>
|
||||
</div>
|
||||
|
||||
<WorkspaceFiles bind:show={showWorkspace} />
|
||||
|
||||
Reference in New Issue
Block a user