android / debug (push) Successful in 2m16s
android / release (push) Successful in 2m9s
ci / checks (push) Successful in 3m39s
ci / test (push) Successful in 2m5s
ci / docker (push) Successful in 1m52s
ci / web (push) Successful in 13s
ci / publish-edge-images (deploy/docker/claw.Dockerfile, rhema-claw) (push) Successful in 1m56s
ci / chart (push) Successful in 6s
ci / publish-edge-images (deploy/docker/ui.Dockerfile, rhema-claw-ui) (push) Successful in 20s
ci / publish-edge-chart (push) Successful in 4s
The web client kept its own dark shell: an icon rail, neon jade accents, and rows that reported state with colored dots and pills. Rhema Together had since settled on a warmer, quieter language, and the two surfaces no longer looked like one product. The shell is now one 232px sidebar plus a view. Chat lists sessions in the sidebar and renders the transcript in a 760px column; settings moves its searchable nav into the same sidebar and its pages onto an 880px column. The palette, type scale, controls, cards, and markdown come from Together's light theme, with its dark values following the OS. FiraCode Nerd Font Mono sets code, and the product mark, logo, and lucide icons replace the glyph characters. Status is a word now: running, waiting, held, connected, live, snapshot. The rail, its dots, the duplicate consent deny action, and the session key tag are gone. The model backend moved into the chat topbar beside the stream state. The mobile shell keeps the composer fixed in chat and lets settings scroll as a document. README and component docs follow the new layout. nuxt typecheck and build pass; checked light and dark at 1280x800 and 390x844 against mock API data.
182 lines
4.4 KiB
Vue
182 lines
4.4 KiB
Vue
<script setup lang="ts">
|
|
// The Skills page: what discovery finds for the chat workspace, what
|
|
// each skill's trigger is, and its on/off switch. Toggles persist in
|
|
// the daemon's settings table, so a row flips without editing config.
|
|
import type { ClawSkill, SkillsState } from '~/composables/useClaw'
|
|
|
|
defineProps<{
|
|
state: SkillsState | null
|
|
loading: boolean
|
|
/** The skill whose toggle is in flight. */
|
|
saving: string | null
|
|
}>()
|
|
|
|
defineEmits<{
|
|
refresh: []
|
|
toggle: [name: string, enabled: boolean]
|
|
}>()
|
|
|
|
const TIERS: Record<ClawSkill['tier'], string> = {
|
|
workspace: 'workspace',
|
|
global: 'global',
|
|
'workspace-agents': 'workspace .agents',
|
|
'home-agents': 'home .agents',
|
|
}
|
|
</script>
|
|
|
|
<template>
|
|
<div class="page">
|
|
<PageHeader title="Skills" subtitle="Instruction files the agent reads on demand.">
|
|
<template #actions>
|
|
<button :disabled="loading" @click="$emit('refresh')">
|
|
{{ loading ? 'Refreshing…' : 'Refresh' }}
|
|
</button>
|
|
</template>
|
|
</PageHeader>
|
|
|
|
<div class="scroll">
|
|
<p v-if="!state" class="muted">loading skills…</p>
|
|
|
|
<template v-else>
|
|
<AppCallout
|
|
v-if="state.disabled.length"
|
|
variant="info"
|
|
title="Some skills are held back"
|
|
>
|
|
A disabled skill keeps its files and disappears from the prompt
|
|
and the transcript. The switch persists across restarts.
|
|
</AppCallout>
|
|
|
|
<SettingCard title="Installed" :meta="`${state.skills.length} found`">
|
|
<p v-if="state.skills.length === 0" class="empty">
|
|
No skills found. Put a <code>SKILL.md</code> under a folder in the
|
|
global directory, or in the workspace's
|
|
<code>.rhema/skills</code>.
|
|
</p>
|
|
|
|
<template v-else>
|
|
<div v-for="skill in state.skills" :key="skill.name" class="skill">
|
|
<div class="skill-head">
|
|
<span class="skill-name mono">{{ skill.name }}</span>
|
|
<span class="skill-tier">{{ TIERS[skill.tier] }}</span>
|
|
<span class="skill-state" :class="{ off: !skill.enabled }">
|
|
{{ skill.enabled ? 'enabled' : 'disabled' }}
|
|
</span>
|
|
<button
|
|
class="skill-toggle"
|
|
:disabled="saving === skill.name"
|
|
:aria-label="`${skill.enabled ? 'Disable' : 'Enable'} ${skill.name}`"
|
|
@click="$emit('toggle', skill.name, !skill.enabled)"
|
|
>
|
|
{{ saving === skill.name ? 'Saving…' : skill.enabled ? 'Disable' : 'Enable' }}
|
|
</button>
|
|
</div>
|
|
<p class="skill-trigger">{{ skill.description }}</p>
|
|
<p class="skill-path mono">{{ skill.path }}</p>
|
|
</div>
|
|
</template>
|
|
</SettingCard>
|
|
|
|
<p class="footnote">
|
|
Discovery reads <span class="mono">{{ state.root }}</span>, then the
|
|
chat workspace's <code>.rhema/skills</code> and
|
|
<code>.agents/skills</code> under
|
|
<span class="mono">{{ state.workspace }}</span>. A skill in a rhema
|
|
directory shadows the same name in an <code>.agents</code> directory.
|
|
</p>
|
|
</template>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
|
|
<style scoped>
|
|
.page {
|
|
display: flex;
|
|
flex-direction: column;
|
|
min-height: 0;
|
|
min-width: 0;
|
|
flex: 1;
|
|
}
|
|
|
|
.scroll {
|
|
flex: 1;
|
|
overflow-y: auto;
|
|
padding: 0 var(--sp-8) var(--sp-10);
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: var(--sp-4);
|
|
width: 100%;
|
|
max-width: 880px;
|
|
margin: 0 auto;
|
|
}
|
|
|
|
.muted {
|
|
color: var(--text3);
|
|
}
|
|
|
|
.empty {
|
|
margin: 0;
|
|
padding: 13px 16px;
|
|
color: var(--text3);
|
|
}
|
|
|
|
.skill {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 3px;
|
|
padding: 12px 16px;
|
|
}
|
|
|
|
.skill-head {
|
|
display: flex;
|
|
align-items: baseline;
|
|
gap: 12px;
|
|
}
|
|
|
|
.skill-name {
|
|
font-weight: 600;
|
|
color: var(--text);
|
|
}
|
|
|
|
.skill-tier {
|
|
color: var(--text3);
|
|
font-size: 11.5px;
|
|
}
|
|
|
|
.skill-state {
|
|
margin-left: auto;
|
|
color: var(--ok);
|
|
font-size: 11.5px;
|
|
}
|
|
|
|
.skill-state.off {
|
|
color: var(--text3);
|
|
}
|
|
|
|
.skill-toggle {
|
|
padding: 2px 9px;
|
|
font-size: 11.5px;
|
|
}
|
|
|
|
.skill-trigger {
|
|
margin: 0;
|
|
color: var(--text2);
|
|
font-size: 12.5px;
|
|
overflow-wrap: anywhere;
|
|
}
|
|
|
|
.skill-path {
|
|
margin: 0;
|
|
color: var(--text3);
|
|
font-size: 11.5px;
|
|
overflow-wrap: anywhere;
|
|
}
|
|
|
|
.footnote {
|
|
margin: 0;
|
|
padding: 0 2px;
|
|
color: var(--text3);
|
|
font-size: 12px;
|
|
}
|
|
</style>
|