mirror of
https://github.com/donlucasx/xscapes.git
synced 2026-10-20 08:43:32 +02:00
Three of his six reports from the first day with the mirror on, the ones that needed no review first: - A kitten swam on the wet sand where the tide meets the shore. The swimmer lanes ended a fixed distance above the companion's row, which on a tall scape is below the waterline. They now stop two rows above the shore's own mean waterline, read off the shore every frame. - The done knock carried the agent's whole last message across the sea in a dotted box. Balloon text is capped at 44 runes with an ellipsis; a short ask is untouched. - Diffing the host's model against Terminal.app's readback of a real Claude Code startup found ESC ( B drawn as a 'B': charset designations are ESC plus an intermediate plus one final byte. Modelled, with a split-read test. Also notes/gradientaudit: the per-hour measurement of the 256 sky and sea (distinct tones, band heights, largest CIE76 step) at his 124x62 geometry, for the gradient review he asked to do together before anything changes. No palette changed. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NtoYrsT7EnxmaDCjF2Bc3p
57 lines
1.8 KiB
Go
57 lines
1.8 KiB
Go
package main
|
|
|
|
import (
|
|
"fmt"
|
|
"math"
|
|
"strings"
|
|
|
|
"github.com/donlucasx/xscapes/internal/canvas"
|
|
"github.com/donlucasx/xscapes/internal/companion"
|
|
"github.com/donlucasx/xscapes/internal/scape"
|
|
)
|
|
|
|
func kittenPage(seed int64) string {
|
|
cat := companion.NewCat()
|
|
_, chh := cat.Size()
|
|
|
|
counts := []struct {
|
|
n int
|
|
note string
|
|
}{
|
|
{2, "roughly one in three takes to the water"},
|
|
{5, "beach tier is set by how many are ON the beach, not the total"},
|
|
{8, "swimmers ride the swell and waddle sideways in their own lanes"},
|
|
{12, "the sea absorbs what the sand cannot hold"},
|
|
{18, "a proper fan-out"},
|
|
}
|
|
|
|
var b strings.Builder
|
|
b.WriteString(`<style>.win{border:1px solid #2a2a32;border-radius:6px;overflow:hidden}</style>`)
|
|
b.WriteString(`<h1>xscapes — the kitten ladder</h1>`)
|
|
|
|
for _, cc := range counts {
|
|
var row strings.Builder
|
|
fit := 0
|
|
for _, t := range []float64{3.0, 4.1} {
|
|
c := canvas.New(76, 18, canvas.AlphaFar, canvas.AlphaMid, canvas.AlphaNear)
|
|
scape.NewShore(seed, false).Update(c, t, scape.Activity{
|
|
Working: true, Level: math.Min(1, 0.3+float64(cc.n)*0.05), ContextUsed: 0.3,
|
|
})
|
|
top := c.H - 2 - chh
|
|
kc := companion.NewCat()
|
|
kc.Draw(c.Near(), 3, top, t, companion.Working)
|
|
fit = kc.DrawKittens(c.Near(), c.Mid(), 3, top, cc.n, c.W-1, int(float64(c.H)*0.42)+1, 0, t, seed)
|
|
fmt.Fprintf(&row, `<div class="win">%s</div>`, c.HTMLFragment(12))
|
|
}
|
|
short := ""
|
|
if fit < cc.n {
|
|
short = fmt.Sprintf(" — <b>%d of %d fit</b>", fit, cc.n)
|
|
}
|
|
fmt.Fprintf(&b, `<div class="card"><div class="meta"><div class="nm">%d subagents</div>`+
|
|
`<div class="rg">%d drawn</div><div class="nt">%s%s</div></div>`+
|
|
`<div style="display:flex;gap:12px">%s</div></div>`,
|
|
cc.n, fit, cc.note, short, row.String())
|
|
}
|
|
return canvas.HTMLPage("xscapes — kitten ladder", b.String())
|
|
}
|