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.
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266<script lang="ts"> import Keys from './Keys.svelte'; import { dismissal } from './popover';
// A pane under the (?) beside settings: what albedo is, who makes it (on // tiles two to a row, an odd one centred under them), and whose work it is // built on (pills in centred rows); or, from `?`, the keys. Like settings, // it is not modal; Escape or a click elsewhere closes it. let { view = $bindable('about'), onclose, }: { view?: 'about' | 'keys'; onclose: () => void } = $props(); let pane = $state<HTMLElement>();
const REPO = 'https://tangled.org/okami.mom/albedo';
const people = [ { name: 'ana', handle: 'okami.mom' }, { name: 'dawn', handle: 'ptr.pet' }, { name: 'aly', handle: 'aly.codes' }, ];
// What the web client is built on; THIRD_PARTY_NOTICES.md has the rest. const notices = [ { name: 'Svelte', url: 'https://svelte.dev', license: 'MIT' }, { name: 'Svelte Flow', url: 'https://svelteflow.dev', license: 'MIT' }, { name: 'Diffs, from Pierre', url: 'https://diffs.com', license: 'Apache-2.0', }, { name: 'Words, from Pierre', url: 'https://diffs.com/words', license: 'Apache-2.0', }, { name: 'Highlights, from Pierre', url: 'https://diffs.com/highlights', license: 'Apache-2.0', }, { name: 'Shiki', url: 'https://shiki.style', license: 'MIT' }, { name: 'Pele', url: 'https://pele.run', license: 'MIT' }, { name: 'Lucide', url: 'https://lucide.dev', license: 'ISC' }, { name: 'madoromi', url: 'https://madoromi.moonwit.ch/', license: 'MPL-2.0', }, { name: 'Lobe icons', url: 'https://lobehub.com/icons', license: 'MIT' }, ];
$effect(() => dismissal( (target) => !!pane?.contains(target) || !!target.closest('[data-about-toggle]'), onclose, ), );</script>
{#if view === 'keys'} <div class="pane keys side-pane" bind:this={pane} role="dialog" aria-label="keys" > <header class="row"> <h2>keys</h2> <button class="link" onclick={() => (view = 'about')}>about albedo</button > </header> <Keys /> </div>{:else} <div class="pane side-pane" bind:this={pane} role="dialog" aria-label="about albedo" > <header> <h2><span class="spark" aria-hidden="true">✦</span> albedo</h2> <p class="lead"> a coding agent that lives in a daemon, with a terminal and a canvas to work with it. free software under the <a href="https://www.gnu.org/licenses/agpl-3.0.html" target="_blank" rel="noopener noreferrer">GNU Affero General Public License v3.0</a >, with the classpath exception. </p> </header>
<section> <h3>made by</h3> <ul class="people"> {#each people as person (person.handle)} <li> <span class="name">{person.name}</span> <a href="https://bsky.app/profile/{person.handle}" target="_blank" rel="noopener noreferrer">@{person.handle}</a > </li> {/each} </ul> <p class="note"> and with thanks to everyone else whose care, fixes and ideas are in it too: <a href="{REPO}/commits/main" target="_blank" rel="noopener noreferrer" >see every contributor on tangled</a >. </p> </section>
<section> <h3>built on</h3> <ul class="notices"> {#each notices as notice (notice.name)} <li> <a href={notice.url} target="_blank" rel="noopener noreferrer" >{notice.name}</a > <span class="license">{notice.license}</span> </li> {/each} </ul> <p class="note"> <a href="{REPO}/blob/main/THIRD_PARTY_NOTICES.md" target="_blank" rel="noopener noreferrer">all third party notices</a > · <a href={REPO} target="_blank" rel="noopener noreferrer">source</a> </p> </section> </div>{/if}
<style> /* Where it hangs is `.side-pane` (app.css); this is how its own cards stack. */ .pane { display: grid; gap: 20px; width: 320px; padding: 18px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; } .pane.keys { gap: 14px; width: 600px; max-width: calc(100vw - 20px); } .row { display: flex; align-items: baseline; justify-content: space-between; } .link { padding: 0; color: var(--accent); font: inherit; font-size: calc(var(--type-sm) * var(--ui-scale)); background: none; border: 0; cursor: pointer; } .link:hover { text-decoration: underline; text-underline-offset: 2px; } h2 { margin: 0; font-size: calc(var(--type-xl) * var(--ui-scale)); font-weight: var(--weight-strong); letter-spacing: -0.01em; } .spark { color: var(--brand-from); } h3 { margin: 0 0 10px; font-size: calc(var(--type-md) * var(--ui-scale)); font-weight: var(--weight-strong); text-align: center; } .lead { margin: 6px 0 0; color: var(--muted); font-size: calc(var(--type-md) * var(--ui-scale)); line-height: 1.45; } ul { margin: 0; padding: 0; list-style: none; } /* The people two to a row on tiles, an odd one out centred under them. */ .people { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; } .people li { display: grid; justify-items: center; gap: 1px; padding: 9px 8px; font-size: calc(var(--type-md) * var(--ui-scale)); background: var(--well); border-radius: 10px; } .people li:last-child:nth-child(odd) { grid-column: 1 / -1; justify-self: center; width: calc(50% - 3px); } .people a { font-size: calc(var(--type-sm) * var(--ui-scale)); } .name { font-weight: var(--weight-strong); } /* What it is built on, flowing into centred rows of pills. */ .notices { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; } .notices li { display: flex; align-items: baseline; gap: 6px; padding: 4px 10px; font-size: calc(var(--type-md) * var(--ui-scale)); background: var(--well); border-radius: 999px; } .license { color: var(--faint); font-size: calc(var(--type-xs) * var(--ui-scale)); font-variant-numeric: tabular-nums; } .note { margin: 12px 0 0; color: var(--muted); font-size: calc(var(--type-sm) * var(--ui-scale)); line-height: 1.45; text-align: center; } a { color: var(--accent); text-decoration: none; } a:hover { text-decoration: underline; text-underline-offset: 2px; }</style>