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 { useSvelteFlow } from '@xyflow/svelte'; import type { Board } from './board.svelte';
// Renders nothing: it sits inside <SvelteFlow> so it can reach the flow's // helpers and hand them to the board while its canvas is on screen. let { board, canvas }: { board: Board; canvas: string } = $props(); const flow = useSvelteFlow();
$effect(() => { board.attach(canvas, flow); return () => board.detach(canvas, flow); });</script>