Compare commits

...
2 Commits
Author SHA1 Message Date
tbenandClaude Opus 5.5 40af378915 Release v0.12.5
Release image / image (release) Canceled after 0s
CI / check (push) Canceled after 0s
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-05 07:00:21 +01:00
tbenandClaude Opus 5.5 d8e63d1e3b Move the whole stone with its face
The stone breathes, rocks, hops, sinks or wobbles from its base under the
eyes' own motion. Transforms only: the outline and its cut never change.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-05 07:00:21 +01:00
4 changed files with 124 additions and 15 deletions
+1 -1
View File
@@ -105,7 +105,7 @@ Enables SQLite foreign keys (`enableForeignKeys`), `bunextInit()`, `ensureDocker
- **Voice:** mic -> `api/admin/bots/transcribe.ts`; play -> `GET speak-message` streamed into `<audio>`. Nothing recorded is stored. Both disabled with a note when the harness has no model.
- **Pictures:** `image_media_id` (private media, `bot-image`/`workspace-image`), via `set-profile-image.ts`, the `set_picture` tool or `update_workspace`. Bytes are **copied**, never moved; only picture-paradigm rows are deleted on replace. Format kept by `imageOutputFormat`.
- **Colour:** only `src/utils/bot-color.ts` resolves/validates colours and stones (`resolveBotColor`, `resolveBotStone`, `botColorNeedsPaperFace`); new bots get `pick-free-color.ts`.
- **Avatars:** `BotStone` draws the stone inline with the colour as SVG `fill` and the face as eyes. Coordinator: ink body, paper eyes. Each face moves only its eyes (`BotStoneFace`, keyframes `stone-*` in `main.css`: idle blinks at a per-bot pace, working glances, done hops once, asleep breathes, needs-you nudges; off under reduced motion; `still` for the logo). **Never put a stone in a circle/badge or add outline/shadow.** The wordmark is vector (`Wordmark`), never live text.
- **Avatars:** `BotStone` draws the stone inline with the colour as SVG `fill` and the face as eyes. Coordinator: ink body, paper eyes. Each face moves the stone and its eyes (keyframes `stone-*` in `main.css`; body in `BotStone`, transforms only from its base, never redrawing the outline or cut; eyes in `BotStoneFace`: idle blinks at a per-bot pace, working glances, done hops once, asleep breathes, needs-you nudges; off under reduced motion; `still` for the logo). **Never put a stone in a circle/badge or add outline/shadow.** The wordmark is vector (`Wordmark`), never live text.
- **Copy helpers:** `src/utils/crew-status.ts`, `src/utils/relative-time.ts` (relative timestamps only).
### Prompt and memory
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "cobble",
"version": "0.12.4",
"version": "0.12.5",
"module": "index.ts",
"type": "module",
"private": true,
+40 -13
View File
@@ -8,6 +8,19 @@ import {
import { botColorNeedsPaperFace, resolveBotStone } from "@/src/utils/bot-color";
import BotStoneFace from "./bot-stone-face";
/**
* How the whole stone moves for each face (`--animate-stone-body-*` in
* `main.css`). Only transforms: the outline and its one flat cut are never
* redrawn. The eyes move on top of this (`BotStoneFace`).
*/
const BodyMotionClasses: Record<BotFace, string> = {
idle: "animate-stone-body-idle",
working: "animate-stone-body-working",
done: "animate-stone-body-done",
asleep: "animate-stone-body-asleep",
"needs-you": "animate-stone-body-needs-you",
};
type Props = {
/**
* The bot's identity colour (`#rrggbb`). Omit (or `null`) for the
@@ -49,6 +62,8 @@ type Props = {
* # Bot Stone
* @description A Cobble bot avatar: a stone with exactly one flat cut and two
* eyes. Never put it in a circle, ring or badge, or add an outline or shadow.
* The stone and its eyes move with its face unless `still`; it may hop a
* little past its box, so it draws `overflow-visible`.
*/
export default function BotStone({
color,
@@ -88,20 +103,32 @@ export default function BotStone({
role={label ? "img" : undefined}
aria-label={label || undefined}
aria-hidden={label ? undefined : true}
className={twMerge("shrink-0", className)}
className={twMerge(
"shrink-0",
!still && "overflow-visible",
className,
)}
>
<path
d={body_path}
fill={is_coordinator ? undefined : color!}
className={is_coordinator ? "fill-ink" : undefined}
/>
<BotStoneFace
face={face}
fill_class={eye_fill}
stroke_class={eye_stroke}
still={still}
motion_seed={motion_seed}
/>
<g
className={twMerge(
"origin-bottom transform-fill",
!still && BodyMotionClasses[face],
"motion-reduce:animate-none",
)}
>
<path
d={body_path}
fill={is_coordinator ? undefined : color!}
className={is_coordinator ? "fill-ink" : undefined}
/>
<BotStoneFace
face={face}
fill_class={eye_fill}
stroke_class={eye_stroke}
still={still}
motion_seed={motion_seed}
/>
</g>
</svg>
);
}
+82
View File
@@ -212,6 +212,88 @@
/* Needs you: a double nudge, then a pause. */
--animate-stone-nudge: stone-nudge 2.6s ease-in-out infinite;
/* The whole stone, under the eyes: idle breathes, working rocks,
done squashes and hops once, asleep sinks and rises slowly,
needs-you wobbles in time with the eyes' nudge. Origin is the
stone's base, so it moves as if sitting on something. */
--animate-stone-body-idle: stone-body-idle 4.2s ease-in-out infinite;
--animate-stone-body-working: stone-body-working 1.8s ease-in-out infinite;
--animate-stone-body-done: stone-body-done 0.7s ease-out 1;
--animate-stone-body-asleep: stone-body-asleep 4.8s ease-in-out infinite;
--animate-stone-body-needs-you: stone-body-needs-you 2.6s ease-in-out
infinite;
@keyframes stone-body-idle {
0%,
100% {
transform: scale(1, 1);
}
50% {
transform: scale(1.01, 0.985);
}
}
@keyframes stone-body-working {
0%,
100% {
transform: rotate(0deg);
}
25% {
transform: rotate(-3deg);
}
75% {
transform: rotate(3deg);
}
}
@keyframes stone-body-done {
0% {
transform: translateY(0) scale(1, 1);
}
20% {
transform: translateY(0) scale(1.06, 0.9);
}
50% {
transform: translateY(-8px) scale(0.97, 1.04);
}
80% {
transform: translateY(0) scale(1.03, 0.96);
}
100% {
transform: translateY(0) scale(1, 1);
}
}
@keyframes stone-body-asleep {
0%,
100% {
transform: scale(1, 1);
}
50% {
transform: scale(1.025, 0.96);
}
}
@keyframes stone-body-needs-you {
0%,
68%,
100% {
transform: rotate(0deg);
}
73% {
transform: rotate(-5deg);
}
79% {
transform: rotate(4deg);
}
85% {
transform: rotate(-2deg);
}
91% {
transform: rotate(0deg);
}
}
@keyframes stone-blink {
0%,
93%,