Something went wrong. Try again.
small gleam coding and persistent agent daemon with a detachable cli and a canvas ui forked from okami.mom/albedo
Something went wrong. Try again.
123456789101112131415<script lang="ts"> import type { ShellCommand } from '../api'; import type { ShellCommandWindow, WindowProps } from '../board.svelte'; import { headline } from '../jobs.svelte'; import ShellCommandView from '../views/ShellCommandView.svelte'; import WindowFrame from './WindowFrame.svelte';
let { id, data, selected }: WindowProps<ShellCommandWindow> = $props(); let command = $state<ShellCommand | null>(null);</script>
<WindowFrame {id} selected={!!selected} title="shell · {command ? headline(command.command) : 'command output'}"> <ShellCommandView sessionId={data.sessionId} commandId={data.commandId} oncommand={(found) => (command = found)} /></WindowFrame>