MCP servers as editable rows per transport (stdio command and arguments, HTTP URL, SSE endpoints) with parallel tool calls; MiniMax with its key as a secret reference; web fetch with byte, duration and a danger-toned private-networks toggle, its fields disabled while it is off; tool output limits with a token estimate. Fixes sticky positioning across the app: the frame and main used overflow hidden, which made each a scroll container that never scrolls, so the Settings save bar and sidebar never stuck. Both now clip instead.
41 lines
1.2 KiB
Vue
41 lines
1.2 KiB
Vue
<script setup lang="ts">
|
|
import { ref } from "vue";
|
|
|
|
import { Button } from "@/components/ui/button";
|
|
import { Input } from "@/components/ui/input";
|
|
import { SecretReference } from "@/components/ui/secret-reference";
|
|
|
|
/** Where a secret lives. Archie resolves it; the value never reaches the UI. */
|
|
interface SecretRef {
|
|
engine: string;
|
|
key: string;
|
|
}
|
|
|
|
defineProps<{ resolved?: boolean; disabled?: boolean; idPrefix: string }>();
|
|
const model = defineModel<SecretRef>({ required: true });
|
|
const editing = ref(false);
|
|
</script>
|
|
|
|
<template>
|
|
<div v-if="!editing">
|
|
<SecretReference
|
|
:engine="model.engine || 'unset'"
|
|
:secret-key="model.key || 'unset'"
|
|
:resolved="resolved"
|
|
:disabled="disabled"
|
|
@change="editing = true"
|
|
/>
|
|
</div>
|
|
<div v-else class="flex flex-wrap items-end gap-2">
|
|
<label class="grid gap-1 text-xs text-fg-subtle">
|
|
Engine
|
|
<Input :id="`${idPrefix}-engine`" v-model="model.engine" class="w-28 font-mono" />
|
|
</label>
|
|
<label class="grid min-w-48 flex-1 gap-1 text-xs text-fg-subtle">
|
|
Key
|
|
<Input :id="`${idPrefix}-key`" v-model="model.key" class="font-mono" />
|
|
</label>
|
|
<Button variant="ghost" size="sm" @click="editing = false">Done</Button>
|
|
</div>
|
|
</template>
|