The ultimate harness for coding agents and beyond. All your agents. All your machines. One command center. Start with code, then follow your curiosity and build across disciplines: CAD, circuits, robots, games and music.
TypeScript 3d-modelingagent-frameworkagent-harnessai-agentscadclaude-codecodexcoding-agentsdeveloper-toolsesp32game-developmentmcp-servermulti-agentopen-hardwareopencodeopenharnesspcbroboticsterminaltmux
Merge remote-tracking branch 'origin/main' into device-live-tab-sync
dee3b9a558a2c5a
diff --cc devices/harness-device/firmware/main/ui/habitat/ui_habitat.cindex 2dc2dcfe7,1c5257698..f25ee4c2f--- a/devices/harness-device/firmware/main/ui/habitat/ui_habitat.c+++ b/devices/harness-device/firmware/main/ui/habitat/ui_habitat.c@@@ -1274,23 -1243,21 +1274,23 @@@ static void focus_clipped(ht_scene_t *fif (w > 0) ht_text(f, x, y, w, font, ink, BG, probe);}/*- * The top of Focus's two lists, as the LVGL TABS picker drew it: the 60 x 32 close pill at y 16 —+ * The top of Focus's lists: the 60 x 32 close pill at y 16 (tabs use Done below) —- * the way back, in place of a ← — and the list's name in grey Literata 20 (literata_20: the Kindle- * style of the curved name and the pane names, owner 2026-10-02), letter-spaced 2, at y 62.+ * the way back, in place of a ← — and the list's name in grey Inter 20 (inter_20: the "Kindle dark"+ * style of the curved name and the pane names, in Inter since owner 2026-10-03), letter-spaced 2, at y 62.*/static void focus_header(ht_scene_t *f, const char *title){enum { CLOSE_X = 203, CLOSE_Y = 16, CLOSE_W = 60, CLOSE_H = 32, TITLE_Y = 62 };- const ht_font_t *small = &ht_lv_literata_20.base, *cross = &ht_lv_montserrat_22.base;+ const ht_font_t *small = &ht_lv_inter_20.base, *cross = &ht_lv_montserrat_22.base;uint16_t fg = color(0xeaeaf0), close = color(0x171718);// make_close_pill: COL_FG at 10 % over black, the cross centred in it.- int cw = ht_measure(cross, HT_LV_CROSS);- ht_box(f, CLOSE_X, CLOSE_Y, CLOSE_W, CLOSE_H, CLOSE_H / 2, close, close);- ht_text(f, CLOSE_X + (CLOSE_W - cw) / 2, CLOSE_Y + (CLOSE_H - cross->height) / 2, cw, cross, fg,- close, HT_LV_CROSS);- s.hits[s.hit_count++] = (hit_t){{CLOSE_X - 40, 0, CLOSE_W + 80, CLOSE_Y + CLOSE_H + 12}, A_HOME, 0, true};+ if (s.view != TABS) {+ int cw = ht_measure(cross, HT_LV_CROSS);+ ht_box(f, CLOSE_X, CLOSE_Y, CLOSE_W, CLOSE_H, CLOSE_H / 2, close, close);+ ht_text(f, CLOSE_X + (CLOSE_W - cw) / 2, CLOSE_Y + (CLOSE_H - cross->height) / 2, cw, cross, fg,+ close, HT_LV_CROSS);+ s.hits[s.hit_count++] = (hit_t){{CLOSE_X - 40, 0, CLOSE_W + 80, CLOSE_Y + CLOSE_H + 12}, A_HOME, 0, true};+ }// A letter to a run, which is how the spacing is drawn.int tw = 0;for (const char *c = title; *c; c++) { char one[2] = {*c, 0}; tw += ht_measure(small, one) + 2; }@@@ -1570,7 -1537,7 +1570,7 @@@ static void tab_name(ht_scene_t *f, con}}/*- * FOCUS'S TABS: "TABS" on top (focus_header), then the same carousel, in Literata 30 — the name on at most two lines of 204 px, as- * FOCUS'S TABS: the close pill and "TABS" on top (focus_header), then the same carousel, in Inter 30 — the name on at most two lines of 204 px, as++ * FOCUS'S TABS: "TABS" on top (focus_header), then the same carousel, in Inter 30 — the name on at most two lines of 204 px, as* the mono version wrapped at twelve cells, ending in "..." past that; neighbours peek in at the* edges, cut to whole letters inside x 42..424. The tab you are in is green.*/diff --cc devices/harness-device/firmware/test/test_character.cindex afd06159f,a5b40e226..ea1732983--- a/devices/harness-device/firmware/test/test_character.c+++ b/devices/harness-device/firmware/test/test_character.c@@@ -254,19 -254,31 +254,31 @@@ static const ht_pet_t *pet_of(const chafor (unsigned i = 0; i < ht_pet_count; i++) if (!strcmp(ht_pets[i].engine, engine)) return &ht_pets[i];return NULL;}- // The index of the pet's frame whose pixels these are (every frame is in some loop), or -1.- static int pet_frame(const ht_pet_t *pet, const uint16_t *px)+ // The index of the pet's frame this run's sprite draws (every frame is in some loop), or -1: by pixels for an+ // RGB565 + alpha8 pet, by cells for one that stores cell frames (Muse). Exactly one of frames / cells is set.+ static int pet_frame(const ht_pet_t *pet, const ht_sprite_t *sp){+ assert(!pet->frames != !pet->cells);for (int s = 0; s < HT_PET_STATES; s++)- for (int k = 0; k < HT_PET_STEPS; k++)- if (pet->frames[pet->loops[s][k].frame].px == px) return pet->loops[s][k].frame;+ for (int k = 0; k < HT_PET_STEPS; k++) {+ int fr = pet->loops[s][k].frame;+ if (pet->cells ? sp->cells == pet->cells[fr].cells : sp->pixels == pet->frames[fr].px) return fr;+ }return -1;}+ // Whether row `row` of the pet's frame `fr` has any ink (alpha, or a non-zero palette index).+ static bool pet_row_inked(const ht_pet_t *pet, int fr, int row)+ {+ int w = pet->w;+ for (int x = 0; x < w; x++)+ if (pet->cells ? pet->cells[fr].cells[row * w + x] != 0 : pet->frames[fr].a[row * w + x] != 0) return true;+ return false;+ }// The index of the scene's frame whose cells these are, or -1.-static int scene_frame(const ht_pet_scene_t *sc, const uint8_t *cells)+static int scene_frame(const ht_pet_scene_t *sc, const uint8_t *cells, unsigned levels){unsigned n = 0;- for (unsigned i = 0; i < sc->steps * HT_PET_SCENE_LEVELS; i++) if (sc->loop[i] >= n) n = sc->loop[i] + 1u;+ for (unsigned i = 0; i < sc->steps * levels; i++) if (sc->loop[i] >= n) n = sc->loop[i] + 1u;for (unsigned k = 0; k < n; k++) if (sc->frames[k].cells == cells) return (int)k;return -1;}diff --cc devices/harness-device/firmware/test/test_touch_ui.pyindex 80031c0e3,7b9f6125a..2295e8df4--- a/devices/harness-device/firmware/test/test_touch_ui.py+++ b/devices/harness-device/firmware/test/test_touch_ui.py@@@ -365,12 -365,11 +365,12 @@@ static void focus_only_inter(void)for (int i = 0; i < scene.count; i++) {const ht_run_t *r = &scene.runs[i];if (!r->text[0]) continue;- bool icon = (r->font == &ht_lv_montserrat_14.base && !strcmp(r->text, HT_LV_BELL)) ||+ bool icon = (r->font == &ht_done_28 && !strcmp(r->text, HT_DONE)) ||+ (r->font == &ht_lv_montserrat_14.base && !strcmp(r->text, HT_LV_BELL)) ||(r->font == &ht_lv_montserrat_22.base && !strcmp(r->text, HT_LV_CROSS));bool art = r->font == &ht_wave || r->font == &ht_spark;- assert(focus_literata(r->font) || icon || art);- if (r->arc) assert(r->font == &ht_lv_literata_med_26.base);+ assert(focus_inter(r->font) || icon || art);+ if (r->arc) assert(r->font == &ht_lv_inter_med_26.base);}}// Every straight text run of a Focus page sits inside the glass (r 230 on its four corners) and a bracket@@@ -2379,14 -2337,13 +2379,14 @@@ int main(int argc, char **argv){bool green=false;for(int i=0;i<scene.count;i++) if(strstr(scene.runs[i].text,"Harness") && scene.runs[i].fg==color(HT_THEME_VOICE) &&- scene.runs[i].font==&ht_lv_literata_30.base) green=true;+ scene.runs[i].font==&ht_lv_inter_30.base) green=true;assert(green);- bool title=false, arrow=false; // the close pill and "TABS" on top; no ← at the bottom+ bool title=false, arrow=false, done=false;for(int i=0;i<scene.count;i++) { title |= !strcmp(scene.runs[i].text,"T") && scene.runs[i].y==62;- arrow |= !strcmp(scene.runs[i].text,"\xe2\x86\x90"); }- assert(title && !arrow);- tap(3000,233,30); assert(s.view==HOME); // the cross goes back+ arrow |= !strcmp(scene.runs[i].text,"\xe2\x86\x90");+ done |= !strcmp(scene.runs[i].text,HT_DONE) && scene.runs[i].y==400; }+ assert(title && !arrow && done && action_enabled(A_TAB_DONE) && !action_enabled(A_HOME));+ tap(3000,233,420); assert(s.view==HOME);}// The Focus states that say something plain: connecting (the wordmark) and a tab list with no tabs.reset(); ht_character_select(&character, HT_CHARACTER_FOCUS); s.connected = false; scene_take();