Dodaios is an open-source agent OS for your desktop: it runs your coding agents, browser and apps by voice or chat, on your own machine. Formerly Personal Jarvis.
Python agent-orchestrationai-agentai-coding-assistantclaude-codecoding-agentcomputer-usedesktop-applocal-firstmcppersonal-jarvisvoice-assistantvoice-coding
feat(brand): make the hooded figure the Dodaios logo (#535)
Ruben Lütkeac1bebaff8c3
diff --git a/assets/brand/banner.png b/assets/brand/banner.pngindex 19489b7b4a..e6683cf049 100644Binary files a/assets/brand/banner.png and b/assets/brand/banner.png differdiff --git a/assets/brand/dodaios-logo.png b/assets/brand/dodaios-logo.pngnew file mode 100644index 0000000000..45095981c3Binary files /dev/null and b/assets/brand/dodaios-logo.png differdiff --git a/assets/brand/dodaios-logo.svg b/assets/brand/dodaios-logo.svgnew file mode 100644index 0000000000..14405c5a3d--- /dev/null+++ b/assets/brand/dodaios-logo.svg@@ -0,0 +1,4 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256">+ <title>Dodaios</title>+ <path fill="#000" fill-rule="evenodd" d="M102.7 211.5 L100.1 210.4 L98.8 210.1 L96.8 210.0 L93.7 210.6 L92.0 211.2 L90.6 211.9 L87.4 214.1 L85.1 216.3 L82.2 220.0 L80.1 223.4 L77.9 227.8 L75.6 233.8 L74.1 239.8 L73.6 244.4 L73.7 248.3 L74.3 250.3 L75.6 252.3 L76.8 253.5 L78.2 254.4 L79.9 255.2 L82.2 255.8 L83.4 256.0 L86.1 256.0 L89.9 255.5 L94.0 254.2 L97.6 252.3 L100.6 250.0 L102.6 248.0 L103.7 246.6 L106.1 243.0 L108.0 238.9 L109.3 234.6 L110.1 229.8 L110.1 225.4 L109.4 221.3 L108.5 218.7 L107.6 216.8 L106.7 215.2 L105.5 213.9 L103.9 212.3Z M26.7 89.7 L21.9 95.3 L17.8 101.1 L15.7 104.3 L13.6 107.9 L11.4 112.6 L9.9 117.3 L9.5 120.8 L9.6 123.2 L9.9 125.0 L10.4 127.2 L11.2 129.5 L13.8 134.6 L15.1 136.5 L17.9 140.1 L20.8 143.0 L23.3 145.3 L28.0 148.9 L33.5 152.2 L40.5 155.4 L47.0 157.5 L51.6 158.6 L55.7 159.2 L56.0 159.5 L54.2 161.6 L53.1 163.6 L53.0 165.5 L53.5 167.4 L55.0 170.1 L56.7 172.1 L59.2 174.4 L62.6 176.8 L62.6 177.0 L59.7 180.2 L54.2 185.9 L50.2 190.2 L46.9 194.3 L44.5 197.7 L42.5 201.2 L41.1 204.6 L40.3 207.6 L39.9 210.5 L38.9 212.7 L38.1 215.4 L37.8 218.2 L37.8 222.2 L37.9 224.2 L38.5 227.7 L39.8 232.2 L40.8 234.6 L43.5 239.7 L46.2 243.2 L48.5 245.7 L51.3 247.8 L53.2 249.0 L55.7 250.1 L58.4 250.9 L60.1 251.1 L64.0 251.0 L66.0 250.6 L69.2 249.3 L70.3 248.6 L70.7 248.2 L71.0 244.6 L71.0 240.6 L70.3 233.9 L68.7 227.3 L66.3 221.1 L64.3 217.2 L62.9 214.9 L60.6 212.0 L58.5 209.9 L55.8 207.9 L53.8 206.9 L52.1 206.3 L50.2 205.9 L47.8 205.9 L45.0 206.6 L42.7 207.9 L40.5 209.8 L40.4 209.4 L41.8 206.9 L43.1 205.3 L45.4 203.2 L47.8 201.8 L49.7 201.1 L52.3 200.6 L54.0 200.5 L56.2 200.7 L58.5 201.3 L60.8 202.4 L63.3 204.0 L66.7 207.3 L70.1 211.9 L71.0 213.6 L73.0 217.7 L73.1 217.7 L74.0 213.7 L75.6 208.9 L77.0 205.5 L80.0 200.0 L82.5 196.2 L85.7 192.2 L88.9 188.9 L92.8 185.7 L93.0 185.8 L92.9 186.1 L90.7 189.8 L87.2 196.5 L84.2 203.2 L82.9 207.1 L81.6 211.3 L80.9 214.9 L80.5 218.5 L83.1 214.6 L85.2 212.0 L88.2 209.0 L90.5 207.3 L92.4 206.0 L95.9 204.6 L98.4 203.9 L101.9 203.9 L104.5 204.3 L107.5 205.6 L109.9 207.3 L111.6 209.0 L113.3 211.2 L114.4 213.2 L116.0 217.4 L116.5 219.9 L116.7 222.1 L116.7 226.6 L116.5 229.1 L115.7 232.7 L114.1 237.0 L112.8 239.7 L110.1 243.7 L107.5 246.8 L103.6 250.2 L103.5 250.5 L115.2 251.8 L124.0 252.3 L134.0 252.2 L142.1 251.6 L149.5 250.5 L153.2 249.8 L157.8 248.7 L161.3 247.7 L166.4 245.8 L171.5 243.4 L175.5 240.9 L178.2 238.4 L179.2 237.0 L179.8 235.8 L180.5 234.0 L181.1 231.7 L181.1 227.2 L180.5 223.3 L179.2 218.7 L178.1 215.8 L177.1 213.9 L177.2 213.5 L179.0 214.8 L182.2 217.9 L185.0 221.4 L187.3 225.6 L188.1 227.8 L188.4 229.2 L188.7 231.1 L188.7 233.1 L188.4 234.9 L187.7 237.1 L186.1 240.3 L184.4 242.4 L183.3 243.5 L183.3 243.7 L183.8 243.7 L186.4 243.0 L190.0 241.7 L191.7 240.9 L195.5 238.5 L197.6 236.8 L198.6 235.7 L199.8 233.9 L200.4 232.7 L200.8 231.5 L200.9 228.8 L200.4 227.1 L198.9 224.0 L197.4 222.1 L194.4 219.1 L192.4 217.3 L187.6 213.9 L183.7 211.5 L180.4 209.8 L171.2 205.6 L160.5 201.2 L153.8 198.0 L149.2 195.4 L144.7 192.6 L141.1 190.0 L129.6 180.9 L125.1 177.6 L121.4 175.2 L116.6 172.6 L113.2 171.1 L110.7 170.2 L105.7 169.0 L103.3 168.7 L100.4 168.5 L96.9 168.6 L93.9 168.9 L89.0 170.1 L84.8 171.6 L81.1 173.4 L78.2 175.0 L71.8 179.2 L71.0 179.3 L68.2 177.9 L65.8 176.1 L63.1 173.4 L61.9 171.6 L61.1 170.1 L60.4 167.7 L60.3 167.1 L60.4 166.9 L63.7 169.5 L67.8 171.6 L70.7 172.5 L72.9 172.7 L78.0 168.0 L81.5 165.2 L87.6 161.0 L92.8 158.1 L97.2 155.8 L105.0 152.3 L109.4 150.5 L125.8 144.4 L131.9 141.9 L137.2 139.5 L142.6 136.6 L146.3 134.3 L149.7 131.7 L152.3 129.3 L152.5 129.4 L152.5 129.9 L151.8 133.0 L150.2 136.5 L148.7 138.9 L145.9 142.4 L143.6 144.7 L140.4 147.2 L137.7 148.9 L137.5 149.2 L139.3 149.0 L142.3 148.4 L146.7 147.1 L150.9 145.3 L153.0 144.0 L154.1 143.1 L155.7 141.6 L157.2 139.3 L158.3 136.8 L158.8 134.2 L158.9 131.6 L158.5 128.0 L157.9 125.4 L156.7 121.6 L155.5 118.7 L152.3 112.5 L149.4 108.1 L145.6 102.9 L142.2 98.8 L139.0 95.3 L136.1 92.5 L131.6 88.4 L124.4 82.8 L116.6 77.8 L107.5 72.8 L95.6 67.1 L87.1 63.4 L83.3 62.0 L78.0 60.2 L74.7 59.4 L71.9 59.0 L68.0 58.9 L65.8 59.3 L64.3 59.7 L63.1 60.2 L55.5 65.3 L49.4 69.6 L43.1 74.4 L37.3 79.3 L32.4 83.9Z M60.8 106.5 L62.5 106.4 L63.2 106.6 L64.9 107.6 L66.3 109.1 L68.1 111.5 L69.6 114.4 L71.4 118.8 L72.1 121.0 L73.2 125.7 L73.7 129.0 L73.9 133.9 L73.5 136.7 L72.9 138.2 L71.7 139.5 L70.7 140.0 L69.2 140.1 L67.0 139.3 L65.1 138.0 L63.2 136.1 L61.7 133.9 L60.1 131.1 L59.0 128.8 L58.0 125.7 L57.2 122.4 L56.7 118.4 L56.7 114.4 L57.0 112.4 L57.6 110.2 L58.3 108.7 L59.3 107.4Z M40.7 93.0 L41.0 93.1 L39.2 97.8 L38.2 101.3 L37.1 105.6 L36.4 109.7 L35.7 115.7 L35.6 122.5 L36.1 127.2 L37.0 131.2 L38.6 135.8 L40.9 140.0 L42.6 142.3 L44.1 144.0 L48.0 147.3 L51.3 149.4 L54.6 151.0 L57.4 152.2 L63.0 153.9 L68.2 154.9 L72.3 155.5 L76.3 155.7 L82.5 155.7 L82.9 155.8 L82.9 156.1 L79.3 156.8 L74.9 157.5 L68.9 157.9 L64.1 157.9 L60.2 157.6 L56.8 157.2 L53.4 156.6 L49.1 155.5 L45.1 154.2 L41.3 152.7 L38.1 151.1 L34.5 149.0 L31.7 147.0 L29.2 144.9 L26.2 141.9 L24.4 139.5 L23.2 137.6 L21.8 134.6 L20.8 131.6 L20.5 129.7 L20.2 126.9 L20.3 124.6 L20.7 121.7 L21.7 118.5 L23.3 114.8 L24.8 112.1 L27.3 108.1 L30.6 103.7 L34.3 99.4Z M113.4 92.6 L115.0 92.5 L117.1 93.2 L119.1 94.5 L120.7 96.2 L122.1 98.3 L124.0 101.8 L125.1 104.4 L126.4 108.4 L127.2 112.2 L127.7 115.7 L127.8 120.0 L127.4 123.0 L126.7 125.7 L125.5 127.8 L123.9 129.3 L122.5 129.8 L120.8 129.9 L118.4 129.2 L116.1 127.8 L114.1 125.8 L112.0 123.0 L110.3 119.8 L109.2 117.0 L108.3 114.1 L107.5 110.2 L107.2 106.9 L107.3 102.5 L107.7 99.8 L108.6 97.2 L109.8 95.1 L111.5 93.4Z M31.1 66.4 L27.1 72.2 L23.3 78.5 L20.1 84.9 L18.5 88.8 L18.4 89.4 L21.7 84.7 L25.6 79.7 L31.6 72.8 L37.6 66.7 L46.4 58.9 L55.2 52.1 L58.9 49.5 L63.7 46.5 L66.5 44.9 L72.0 42.3 L75.2 41.2 L77.6 40.6 L77.2 40.3 L73.9 39.6 L69.6 39.6 L69.4 39.5 L69.6 39.2 L72.9 38.1 L75.0 37.7 L79.7 37.6 L82.8 38.1 L85.6 38.9 L88.4 40.1 L92.0 41.8 L97.1 44.8 L101.5 47.8 L106.3 51.4 L112.7 56.6 L138.3 78.5 L147.0 86.4 L153.5 92.8 L157.9 97.6 L162.0 102.5 L164.7 106.0 L167.5 110.1 L169.5 113.6 L171.7 118.4 L172.4 121.0 L173.0 124.6 L173.0 125.8 L172.6 128.6 L171.8 131.8 L170.5 134.6 L168.4 138.1 L165.9 141.0 L163.3 143.6 L160.8 145.6 L157.4 147.6 L154.3 149.1 L151.1 150.3 L145.2 152.0 L137.7 153.5 L123.6 155.6 L118.2 156.7 L110.6 158.5 L102.8 160.9 L98.8 162.5 L98.6 162.8 L98.7 162.8 L103.3 162.3 L109.2 162.3 L115.2 163.2 L118.2 164.0 L121.0 164.9 L126.3 167.3 L129.6 169.1 L133.3 171.4 L146.5 180.3 L153.2 184.2 L160.4 187.8 L165.4 189.8 L168.8 190.8 L168.9 190.7 L168.0 189.0 L166.2 184.4 L163.6 174.5 L161.5 168.1 L159.1 162.7 L156.5 158.0 L156.7 157.7 L159.4 159.5 L163.3 162.9 L167.5 167.4 L170.4 171.1 L173.3 175.3 L175.8 179.3 L182.5 191.3 L184.8 194.7 L187.9 198.5 L191.8 202.1 L196.0 205.0 L199.0 206.6 L201.6 207.6 L204.2 208.4 L206.7 208.9 L210.1 209.2 L212.4 209.2 L216.9 208.6 L219.5 207.9 L221.7 207.1 L224.1 205.9 L226.2 204.6 L230.8 201.3 L232.3 199.9 L235.9 196.2 L239.9 191.3 L243.7 185.4 L246.2 180.5 L246.5 179.5 L241.6 182.0 L237.1 183.6 L232.6 184.7 L228.0 185.2 L224.2 185.2 L219.3 184.7 L212.9 183.1 L208.2 181.3 L205.2 179.8 L202.2 178.1 L197.5 174.9 L175.7 158.8 L167.8 152.2 L165.3 150.7 L165.8 150.2 L169.2 149.0 L173.6 147.1 L177.3 145.2 L180.5 143.3 L185.7 139.6 L187.3 138.3 L190.3 135.3 L193.0 131.6 L194.3 129.4 L195.1 127.7 L196.3 123.3 L196.4 121.6 L196.3 117.6 L195.7 114.5 L194.8 111.1 L193.2 106.9 L191.3 102.6 L186.5 93.7 L174.3 73.8 L170.6 67.3 L168.3 62.7 L166.6 59.0 L160.7 44.1 L157.3 36.5 L154.4 30.5 L152.0 26.2 L149.2 21.6 L146.5 17.9 L146.4 17.6 L146.6 17.5 L148.1 18.3 L150.5 20.1 L153.2 22.4 L155.3 24.5 L159.3 29.3 L163.9 36.2 L167.8 43.5 L171.0 51.2 L174.1 60.4 L176.6 69.1 L176.9 68.9 L177.1 67.5 L178.3 64.7 L179.6 63.0 L180.9 62.0 L183.2 61.0 L189.9 59.9 L194.9 58.6 L199.0 56.8 L202.2 55.1 L204.9 53.3 L207.9 50.8 L211.4 47.4 L214.9 43.0 L217.4 39.0 L217.4 38.8 L217.1 38.8 L215.9 39.5 L213.8 40.3 L211.6 41.0 L208.7 41.6 L206.3 41.9 L202.6 41.8 L199.1 41.3 L197.2 40.8 L193.2 39.5 L188.0 37.2 L181.1 33.2 L172.8 27.5 L163.9 20.9 L153.8 13.7 L146.4 9.0 L136.9 3.5 L132.1 1.3 L128.0 0.3 L125.2 0.0 L122.6 0.0 L119.4 0.3 L115.5 1.1 L110.5 2.7 L105.8 4.6 L99.1 7.9 L88.9 14.0 L76.8 22.4 L71.6 26.4 L63.6 32.9 L57.0 38.6 L49.8 45.3 L44.6 50.5 L39.1 56.5 L34.5 61.9Z"/>+</svg>diff --git a/assets/brand/social-preview.png b/assets/brand/social-preview.pngindex 53126922d8..164228b83c 100644Binary files a/assets/brand/social-preview.png and b/assets/brand/social-preview.png differdiff --git a/assets/icons/jarvis-1024.png b/assets/icons/jarvis-1024.pngindex 89ba8a842b..e2c52133e0 100644Binary files a/assets/icons/jarvis-1024.png and b/assets/icons/jarvis-1024.png differdiff --git a/assets/icons/jarvis-dev.ico b/assets/icons/jarvis-dev.icoindex e2fedfedd2..9c8047f4d3 100644Binary files a/assets/icons/jarvis-dev.ico and b/assets/icons/jarvis-dev.ico differdiff --git a/assets/icons/jarvis-dev.png b/assets/icons/jarvis-dev.pngindex 132b12cb75..0c6ee87518 100644Binary files a/assets/icons/jarvis-dev.png and b/assets/icons/jarvis-dev.png differdiff --git a/assets/icons/jarvis-gigi-256.png b/assets/icons/jarvis-gigi-256.pngindex 98d8d008c4..14bafd6b87 100644Binary files a/assets/icons/jarvis-gigi-256.png and b/assets/icons/jarvis-gigi-256.png differdiff --git a/assets/icons/jarvis.icns b/assets/icons/jarvis.icnsindex 6cb6b5a147..1f2145c5dc 100644Binary files a/assets/icons/jarvis.icns and b/assets/icons/jarvis.icns differdiff --git a/assets/icons/jarvis.ico b/assets/icons/jarvis.icoindex 5523a4441b..4aceffea63 100644Binary files a/assets/icons/jarvis.ico and b/assets/icons/jarvis.ico differdiff --git a/docs/BRAND.md b/docs/BRAND.mdindex c757ab028a..d876898990 100644--- a/docs/BRAND.md+++ b/docs/BRAND.md@@ -56,7 +56,9 @@ asset must stay on the same values so nothing drifts.composer. No glows.- **Both modes, always.** A colour comes from a theme token or from the per-appearancetables in `terminalThemes.ts`. Never hardcode one mode's value.-- **Gigi** is black-and-white: a black body, white eyes and outline, no disc behind it.+- **The logo** is the hooded figure in black and white: black ink on a white tile, white ink+ on dark surfaces. It is the primary Dodaios logo; no other mark stands in for it. Its single source is `assets/brand/dodaios-logo.svg`; every icon is+ rendered from it by `scripts/make_app_icon.py`.- **Rasters convert on max(r, g, b), the orb on luma.** That is what keeps a mark legibleafter it loses its colour.@@ -130,5 +132,7 @@ Write like a senior engineer who respects the reader's time.| Hero banner (CSS fallback source) | `assets/brand/banner.html` → `banner-css.png` || Banner render script | `assets/brand/render.ps1` || Product Orb | `jarvis/ui/web/frontend/public/hero-orb.png` |-| Mascot (Gigi) | `assets/icons/jarvis-gigi-256.png` |+| Logo (vector source) | `assets/brand/dodaios-logo.svg` |+| Logo (raster master, 1254 px) | `assets/brand/dodaios-logo.png` |+| App icon (rendered) | `assets/icons/jarvis.ico`, `jarvis-1024.png`, `jarvis.icns` || App screenshots | `assets/screenshots/` |diff --git a/docs/architecture-overview.md b/docs/architecture-overview.mdindex a0312fbfd7..7fce8767cb 100644--- a/docs/architecture-overview.md+++ b/docs/architecture-overview.md@@ -296,7 +296,7 @@ The six desktop power-user features that were historically Windows-only are now## Brand mark / logo (BINDING)-**The official Jarvis logo is the Gigi GHOST mascot** — the black ghost character with glowing yellow eyes (`jarvis-gigi-256.png` == the maintainer's master `Jarvis-Logo (1).png` at the repo root, md5 `7de0a930`; also served to the frontend as `/jarvis-logo.png`). **The gold four-point star (`jarvis-mark-256.png` / `jarvis.ico` md5 `73bd5837`) is "AI-slop" the maintainer rejects — do NOT use it** as the brand mark anywhere (UI avatar, titlebar/taskbar icon, marketing, videos, intro/onboarding films). Titlebar/taskbar icon must be the ghost (`assets/icons/jarvis.ico`); sidebar avatar is `Sidebar.tsx <img src="/jarvis-logo.png">`. When a feature needs "the Jarvis logo", it is always the ghost mascot.+**The official Jarvis logo is the hooded figure** in `assets/brand/dodaios-logo.svg` (black ink on white, one even-odd path). Every app icon — `assets/icons/jarvis.ico`/`.icns`/`jarvis-1024.png`, the bundled `jarvis/assets/icons/jarvis.png`, the DEV copy, the frontend favicon, splash and `jarvis-mark-256.png` — is rendered from it by `python scripts/make_app_icon.py`, which also writes `src/components/brand/jarvisLogoPath.ts` for the in-app mark; `tests/test_app_icon.py` fails when the two drift. Edit the SVG and re-run the script; never hand-edit a PNG or ICO.---diff --git a/docs/dev-instance.md b/docs/dev-instance.mdindex bfe049ab4c..2aa2a97aa3 100644--- a/docs/dev-instance.md+++ b/docs/dev-instance.md@@ -55,7 +55,7 @@ AppUserModelID). The first dev start also writes the Start-Menu entry`Personal Jarvis Dev` through the same code path the default app uses, so thetaskbar button is named and iconed from the first launch.-The dev icon is rendered by `scripts/make_dev_icon.py` into both icon homes+The dev icon is rendered by `scripts/make_app_icon.py` into both icon homes(`jarvis/assets/icons/` ships with the package, `assets/icons/` is thebuild-tool copy).diff --git a/jarvis/assets/__init__.py b/jarvis/assets/__init__.pyindex 9e8c08692f..1ff19775e5 100644--- a/jarvis/assets/__init__.py+++ b/jarvis/assets/__init__.py@@ -100,7 +100,7 @@ def _instance_icon(default_name: str) -> Path | None:"""The icon file for the running *instance* (``jarvis.core.instance``).The dev app carries a DEV-badged copy (``jarvis-dev.ico`` / ``.png``,- rendered by ``scripts/make_dev_icon.py``) so its taskbar, dock and tray+ rendered by ``scripts/make_app_icon.py``) so its taskbar, dock and trayentries are told apart from the default app's at a glance. A missing badgedfile falls back to the default icon rather than to no icon at all."""diff --git a/jarvis/assets/icons/jarvis-dev.ico b/jarvis/assets/icons/jarvis-dev.icoindex e2fedfedd2..9c8047f4d3 100644Binary files a/jarvis/assets/icons/jarvis-dev.ico and b/jarvis/assets/icons/jarvis-dev.ico differdiff --git a/jarvis/assets/icons/jarvis-dev.png b/jarvis/assets/icons/jarvis-dev.pngindex 837c71c90c..0c6ee87518 100644Binary files a/jarvis/assets/icons/jarvis-dev.png and b/jarvis/assets/icons/jarvis-dev.png differdiff --git a/jarvis/assets/icons/jarvis.ico b/jarvis/assets/icons/jarvis.icoindex 5523a4441b..4aceffea63 100644Binary files a/jarvis/assets/icons/jarvis.ico and b/jarvis/assets/icons/jarvis.ico differdiff --git a/jarvis/assets/icons/jarvis.png b/jarvis/assets/icons/jarvis.pngindex 98d8d008c4..14bafd6b87 100644Binary files a/jarvis/assets/icons/jarvis.png and b/jarvis/assets/icons/jarvis.png differdiff --git a/jarvis/ui/web/frontend/index.html b/jarvis/ui/web/frontend/index.htmlindex dae9deb951..2e802dc2de 100644--- a/jarvis/ui/web/frontend/index.html+++ b/jarvis/ui/web/frontend/index.html@@ -8,7 +8,7 @@<meta charset="UTF-8" /><meta name="viewport" content="width=device-width, initial-scale=1.0" /><link rel="icon" href="/jarvis.ico" sizes="any" />- <link rel="icon" type="image/png" sizes="256x256" href="/jarvis-gigi-256.png" />+ <link rel="icon" type="image/png" sizes="256x256" href="/jarvis-gigi-256.png?v=hood" /><link rel="icon" type="image/x-icon" href="/jarvis-gigi.ico" /><!-- Neutral, trademark-free fallback title. The inline boot script belowoverwrites it with the user's own assistant name (from the localStorage@@ -229,7 +229,7 @@<div id="jarvis-boot-splash"><div class="jbs-group"><div class="jbs-mark" aria-hidden="true">- <img src="/jarvis-gigi-256.png" alt="" width="256" height="256" />+ <img src="/jarvis-gigi-256.png?v=hood" alt="" width="256" height="256" /></div><!-- Painted synchronously by the inline script below from the cachedassistant name (the user's chosen wake word, e.g. "Nico"). Left@@ -446,7 +446,7 @@var mark = document.createElement("div");mark.className = "jbs-mark";mark.setAttribute("aria-hidden", "true");- mark.innerHTML = '<img src="/jarvis-gigi-256.png" alt="" width="256" height="256">';+ mark.innerHTML = '<img src="/jarvis-gigi-256.png?v=hood" alt="" width="256" height="256">';var progress = document.createElement("div");progress.className = "jbs-progress";progress.setAttribute("aria-hidden", "true");diff --git a/jarvis/ui/web/frontend/public/jarvis-gigi-256.png b/jarvis/ui/web/frontend/public/jarvis-gigi-256.pngindex 98d8d008c4..14bafd6b87 100644Binary files a/jarvis/ui/web/frontend/public/jarvis-gigi-256.png and b/jarvis/ui/web/frontend/public/jarvis-gigi-256.png differdiff --git a/jarvis/ui/web/frontend/public/jarvis-gigi.ico b/jarvis/ui/web/frontend/public/jarvis-gigi.icoindex 5523a4441b..4aceffea63 100644Binary files a/jarvis/ui/web/frontend/public/jarvis-gigi.ico and b/jarvis/ui/web/frontend/public/jarvis-gigi.ico differdiff --git a/jarvis/ui/web/frontend/public/jarvis-logo.png b/jarvis/ui/web/frontend/public/jarvis-logo.pngindex e315a19075..14bafd6b87 100644Binary files a/jarvis/ui/web/frontend/public/jarvis-logo.png and b/jarvis/ui/web/frontend/public/jarvis-logo.png differdiff --git a/jarvis/ui/web/frontend/public/jarvis-mark-256.png b/jarvis/ui/web/frontend/public/jarvis-mark-256.pngindex dd31656782..101028cca5 100644Binary files a/jarvis/ui/web/frontend/public/jarvis-mark-256.png and b/jarvis/ui/web/frontend/public/jarvis-mark-256.png differdiff --git a/jarvis/ui/web/frontend/public/jarvis.ico b/jarvis/ui/web/frontend/public/jarvis.icoindex 5523a4441b..4aceffea63 100644Binary files a/jarvis/ui/web/frontend/public/jarvis.ico and b/jarvis/ui/web/frontend/public/jarvis.ico differdiff --git a/jarvis/ui/web/frontend/src/assets/jarvis-mark.png b/jarvis/ui/web/frontend/src/assets/jarvis-mark.pngindex 98d8d008c4..14bafd6b87 100644Binary files a/jarvis/ui/web/frontend/src/assets/jarvis-mark.png and b/jarvis/ui/web/frontend/src/assets/jarvis-mark.png differdiff --git a/jarvis/ui/web/frontend/src/components/BootSplash.tsx b/jarvis/ui/web/frontend/src/components/BootSplash.tsxindex cd050a618f..f460b68cb4 100644--- a/jarvis/ui/web/frontend/src/components/BootSplash.tsx+++ b/jarvis/ui/web/frontend/src/components/BootSplash.tsx@@ -55,7 +55,7 @@ export function BootSplash({><div className="jbs-group"><div className="jbs-mark" aria-hidden="true">- <img src="/jarvis-gigi-256.png" alt="" width={256} height={256} />+ <img src="/jarvis-gigi-256.png?v=hood" alt="" width={256} height={256} /></div><div className="name">{name}</div><divdiff --git a/jarvis/ui/web/frontend/src/components/MascotGigi.tsx b/jarvis/ui/web/frontend/src/components/MascotGigi.tsxindex 903fc21859..473c26533f 100644--- a/jarvis/ui/web/frontend/src/components/MascotGigi.tsx+++ b/jarvis/ui/web/frontend/src/components/MascotGigi.tsx@@ -1,4 +1,5 @@-import { useCallback, useEffect, useId, useRef, useState } from "react";+import { useCallback, useEffect, useRef, useState } from "react";+import { JARVIS_LOGO_PATH } from "@/components/brand/jarvisLogoPath";import { cn } from "@/lib/utils";import { translate, useT } from "@/i18n";import { useEventStore, type VoiceState, type SectionId } from "@/store/events";@@ -59,7 +60,6 @@ export function MascotGigi({cue,}: Props) {const t = useT();- const uid = `gigi${useId().replace(/:/g, "")}`;const [action, setAction] = useState<MascotAction>("idle");const voiceState = useEventStore((s) => s.voiceState);const transcription = useEventStore((s) => s.transcription);@@ -104,11 +104,8 @@ export function MascotGigi({}, [cueAction, cueKey]);const voiceClass = reactToVoice ? voiceClassFor(voiceState) : "";- // Below ~80px blur-halos turn into a muddy disc. The mark is then just- // ink: black body, white eyes and outline, no plate behind it.+ // Small marks hold still: a floating 20px figure only reads as jitter.const compact = size < 80;- const glow = compact ? undefined : `url(#${uid}YGlow)`;- const soft = compact ? undefined : `url(#${uid}SoftGlow)`;return (<div@@ -120,129 +117,9 @@ export function MascotGigi({aria-label={t("mascot_gigi.aria_label")}title="Gigi">+ {/* The Personal Jarvis mark: ink on paper, paper on charcoal. */}<svg viewBox="0 0 256 256" xmlns="http://www.w3.org/2000/svg" className="gigi-svg">- <defs>- <filter id={`${uid}YGlow`} x="-50%" y="-50%" width="200%" height="200%">- <feGaussianBlur stdDeviation="3" result="b" />- <feMerge>- <feMergeNode in="b" />- <feMergeNode in="SourceGraphic" />- </feMerge>- </filter>- <filter id={`${uid}SoftGlow`} x="-50%" y="-50%" width="200%" height="200%">- <feGaussianBlur stdDeviation="6" result="b" />- <feMerge>- <feMergeNode in="b" />- <feMergeNode in="SourceGraphic" />- </feMerge>- </filter>- <radialGradient id={`${uid}Body`} cx="50%" cy="35%">- <stop offset="0%" stopColor="#232323" />- <stop offset="55%" stopColor="#0E0E0E" />- <stop offset="100%" stopColor="#050505" />- </radialGradient>- <linearGradient id={`${uid}YAccent`} x1="0%" y1="0%" x2="0%" y2="100%">- <stop offset="0%" stopColor="hsl(var(--gigi-on-body))" />- <stop offset="100%" stopColor="hsl(var(--gigi-on-body))" stopOpacity="0.78" />- </linearGradient>- </defs>-- {!compact && (- <path- className="gigi-halo"- d="M 58 90 Q 58 36 128 36 Q 198 36 198 90 L 198 208 L 180 186 L 160 208 L 140 186 L 120 208 L 100 186 L 80 208 L 58 186 Z"- fill="hsl(var(--gigi-trim))"- opacity="0.18"- filter={soft}- />- )}-- {/* Body */}- <path- className="gigi-body"- d="M 58 90 Q 58 36 128 36 Q 198 36 198 90 L 198 208 L 180 186 L 160 208 L 140 186 L 120 208 L 100 186 L 80 208 L 58 186 Z"- fill={`url(#${uid}Body)`}- stroke="hsl(var(--gigi-trim))"- strokeWidth={compact ? 3.2 : 2.2}- strokeOpacity="1"- />-- {/* Scanlines */}- <g className="gigi-scanlines">- <rect x="58" y="132" width="140" height="2.4" fill="hsl(var(--gigi-on-body))" opacity="0.55" />- <rect x="58" y="160" width="140" height="1.4" fill="hsl(var(--gigi-on-body))" opacity="0.3" />- </g>-- {/* Glitch pixels right */}- <g className="gigi-glitch-right" fill="hsl(var(--gigi-trim))" filter={glow}>- <rect x="200" y="104" width="6" height="6" />- <rect x="208" y="128" width="4" height="4" />- <rect x="202" y="146" width="9" height="3" />- <rect x="197" y="168" width="3" height="5" />- <rect x="206" y="176" width="5" height="3" />- </g>- {/* Glitch pixels left */}- <g className="gigi-glitch-left" fill="hsl(var(--gigi-trim))" opacity="0.7" filter={glow}>- <rect x="44" y="96" width="6" height="4" />- <rect x="48" y="124" width="4" height="6" />- <rect x="40" y="148" width="8" height="3" />- <rect x="50" y="170" width="3" height="5" />- </g>-- {/* Chromatic displacement slices */}- <rect x="64" y="118" width="18" height="10" fill="hsl(var(--gigi-on-body))" opacity="0.32" />- <rect x="170" y="118" width="18" height="10" fill="hsl(var(--gigi-on-body))" opacity="0.32" />-- {!compact && (- <>- <ellipse cx="102" cy="108" rx="13" ry="17" fill="hsl(var(--gigi-on-body))" opacity="0.35" filter={soft} />- <ellipse cx="154" cy="108" rx="13" ry="17" fill="hsl(var(--gigi-on-body))" opacity="0.35" filter={soft} />- </>- )}-- {/* Eye sockets — auto-blinkend */}- <g className="gigi-eyes">- <ellipse cx="102" cy="108" rx="10" ry="14" fill={`url(#${uid}YAccent)`} filter={glow} />- <ellipse cx="154" cy="108" rx="10" ry="14" fill={`url(#${uid}YAccent)`} filter={glow} />- </g>-- {/* Pupils — driften sanft */}- <g className="gigi-pupils">- <ellipse className="gigi-pupil gigi-pupil-left" cx="104" cy="112" rx="4" ry="6" fill="#050505" />- <ellipse className="gigi-pupil gigi-pupil-right" cx="156" cy="112" rx="4" ry="6" fill="#050505" />- </g>-- {/* Eye sparkle */}- <g className="gigi-sparkle">- <circle cx="106" cy="105" r="2" fill="hsl(var(--gigi-on-body))" />- <circle cx="158" cy="105" r="2" fill="hsl(var(--gigi-on-body))" />- </g>-- {/* Mouth — subtile Atmung */}- <g className="gigi-mouth">- <ellipse cx="128" cy="146" rx="7" ry="10" fill={`url(#${uid}YAccent)`} filter={glow} />- <ellipse cx="128" cy="146" rx="3" ry="5" fill="#050505" />- </g>-- {/* Left arm — waves (pivot point at the shoulder via fill-box) */}- <path- className="gigi-arm gigi-arm-left"- d="M 58 140 Q 40 148 42 162"- stroke="hsl(var(--gigi-trim))"- strokeWidth="5.5"- fill="none"- strokeLinecap="round"- filter={glow}- />- <path- className="gigi-arm gigi-arm-right"- d="M 198 140 Q 216 148 214 162"- stroke="hsl(var(--gigi-trim))"- strokeWidth="5.5"- fill="none"- strokeLinecap="round"- filter={glow}- />+ <path className="gigi-body" d={JARVIS_LOGO_PATH} fillRule="evenodd" fill="hsl(var(--gigi-trim))" /></svg></div>diff --git a/jarvis/ui/web/frontend/src/components/board/ShareCard.tsx b/jarvis/ui/web/frontend/src/components/board/ShareCard.tsxindex 03e372b1aa..229860de94 100644--- a/jarvis/ui/web/frontend/src/components/board/ShareCard.tsx+++ b/jarvis/ui/web/frontend/src/components/board/ShareCard.tsx@@ -106,7 +106,7 @@ export const ShareCard = forwardRef<HTMLDivElement, ShareCardProps>(boxShadow: "0 0 24px -6px rgba(245,244,239,0.5)",}}>- <img src="/jarvis-mark-256.png" width={38} height={38} alt="" style={{ display: "block" }} />+ <img src="/jarvis-mark-256.png?v=hood" width={38} height={38} alt="" style={{ display: "block" }} /></span><spanstyle={{diff --git a/jarvis/ui/web/frontend/src/components/brand/jarvisLogoPath.ts b/jarvis/ui/web/frontend/src/components/brand/jarvisLogoPath.tsnew file mode 100644index 0000000000..c1c06c13eb--- /dev/null+++ b/jarvis/ui/web/frontend/src/components/brand/jarvisLogoPath.ts@@ -0,0 +1,4 @@+// Generated from assets/brand/dodaios-logo.svg by scripts/make_app_icon.py.+// The Personal Jarvis mark in a 0 0 256 256 viewBox; fill it with fill-rule="evenodd".+export const JARVIS_LOGO_PATH =+ "M102.7 211.5 L100.1 210.4 L98.8 210.1 L96.8 210.0 L93.7 210.6 L92.0 211.2 L90.6 211.9 L87.4 214.1 L85.1 216.3 L82.2 220.0 L80.1 223.4 L77.9 227.8 L75.6 233.8 L74.1 239.8 L73.6 244.4 L73.7 248.3 L74.3 250.3 L75.6 252.3 L76.8 253.5 L78.2 254.4 L79.9 255.2 L82.2 255.8 L83.4 256.0 L86.1 256.0 L89.9 255.5 L94.0 254.2 L97.6 252.3 L100.6 250.0 L102.6 248.0 L103.7 246.6 L106.1 243.0 L108.0 238.9 L109.3 234.6 L110.1 229.8 L110.1 225.4 L109.4 221.3 L108.5 218.7 L107.6 216.8 L106.7 215.2 L105.5 213.9 L103.9 212.3Z M26.7 89.7 L21.9 95.3 L17.8 101.1 L15.7 104.3 L13.6 107.9 L11.4 112.6 L9.9 117.3 L9.5 120.8 L9.6 123.2 L9.9 125.0 L10.4 127.2 L11.2 129.5 L13.8 134.6 L15.1 136.5 L17.9 140.1 L20.8 143.0 L23.3 145.3 L28.0 148.9 L33.5 152.2 L40.5 155.4 L47.0 157.5 L51.6 158.6 L55.7 159.2 L56.0 159.5 L54.2 161.6 L53.1 163.6 L53.0 165.5 L53.5 167.4 L55.0 170.1 L56.7 172.1 L59.2 174.4 L62.6 176.8 L62.6 177.0 L59.7 180.2 L54.2 185.9 L50.2 190.2 L46.9 194.3 L44.5 197.7 L42.5 201.2 L41.1 204.6 L40.3 207.6 L39.9 210.5 L38.9 212.7 L38.1 215.4 L37.8 218.2 L37.8 222.2 L37.9 224.2 L38.5 227.7 L39.8 232.2 L40.8 234.6 L43.5 239.7 L46.2 243.2 L48.5 245.7 L51.3 247.8 L53.2 249.0 L55.7 250.1 L58.4 250.9 L60.1 251.1 L64.0 251.0 L66.0 250.6 L69.2 249.3 L70.3 248.6 L70.7 248.2 L71.0 244.6 L71.0 240.6 L70.3 233.9 L68.7 227.3 L66.3 221.1 L64.3 217.2 L62.9 214.9 L60.6 212.0 L58.5 209.9 L55.8 207.9 L53.8 206.9 L52.1 206.3 L50.2 205.9 L47.8 205.9 L45.0 206.6 L42.7 207.9 L40.5 209.8 L40.4 209.4 L41.8 206.9 L43.1 205.3 L45.4 203.2 L47.8 201.8 L49.7 201.1 L52.3 200.6 L54.0 200.5 L56.2 200.7 L58.5 201.3 L60.8 202.4 L63.3 204.0 L66.7 207.3 L70.1 211.9 L71.0 213.6 L73.0 217.7 L73.1 217.7 L74.0 213.7 L75.6 208.9 L77.0 205.5 L80.0 200.0 L82.5 196.2 L85.7 192.2 L88.9 188.9 L92.8 185.7 L93.0 185.8 L92.9 186.1 L90.7 189.8 L87.2 196.5 L84.2 203.2 L82.9 207.1 L81.6 211.3 L80.9 214.9 L80.5 218.5 L83.1 214.6 L85.2 212.0 L88.2 209.0 L90.5 207.3 L92.4 206.0 L95.9 204.6 L98.4 203.9 L101.9 203.9 L104.5 204.3 L107.5 205.6 L109.9 207.3 L111.6 209.0 L113.3 211.2 L114.4 213.2 L116.0 217.4 L116.5 219.9 L116.7 222.1 L116.7 226.6 L116.5 229.1 L115.7 232.7 L114.1 237.0 L112.8 239.7 L110.1 243.7 L107.5 246.8 L103.6 250.2 L103.5 250.5 L115.2 251.8 L124.0 252.3 L134.0 252.2 L142.1 251.6 L149.5 250.5 L153.2 249.8 L157.8 248.7 L161.3 247.7 L166.4 245.8 L171.5 243.4 L175.5 240.9 L178.2 238.4 L179.2 237.0 L179.8 235.8 L180.5 234.0 L181.1 231.7 L181.1 227.2 L180.5 223.3 L179.2 218.7 L178.1 215.8 L177.1 213.9 L177.2 213.5 L179.0 214.8 L182.2 217.9 L185.0 221.4 L187.3 225.6 L188.1 227.8 L188.4 229.2 L188.7 231.1 L188.7 233.1 L188.4 234.9 L187.7 237.1 L186.1 240.3 L184.4 242.4 L183.3 243.5 L183.3 243.7 L183.8 243.7 L186.4 243.0 L190.0 241.7 L191.7 240.9 L195.5 238.5 L197.6 236.8 L198.6 235.7 L199.8 233.9 L200.4 232.7 L200.8 231.5 L200.9 228.8 L200.4 227.1 L198.9 224.0 L197.4 222.1 L194.4 219.1 L192.4 217.3 L187.6 213.9 L183.7 211.5 L180.4 209.8 L171.2 205.6 L160.5 201.2 L153.8 198.0 L149.2 195.4 L144.7 192.6 L141.1 190.0 L129.6 180.9 L125.1 177.6 L121.4 175.2 L116.6 172.6 L113.2 171.1 L110.7 170.2 L105.7 169.0 L103.3 168.7 L100.4 168.5 L96.9 168.6 L93.9 168.9 L89.0 170.1 L84.8 171.6 L81.1 173.4 L78.2 175.0 L71.8 179.2 L71.0 179.3 L68.2 177.9 L65.8 176.1 L63.1 173.4 L61.9 171.6 L61.1 170.1 L60.4 167.7 L60.3 167.1 L60.4 166.9 L63.7 169.5 L67.8 171.6 L70.7 172.5 L72.9 172.7 L78.0 168.0 L81.5 165.2 L87.6 161.0 L92.8 158.1 L97.2 155.8 L105.0 152.3 L109.4 150.5 L125.8 144.4 L131.9 141.9 L137.2 139.5 L142.6 136.6 L146.3 134.3 L149.7 131.7 L152.3 129.3 L152.5 129.4 L152.5 129.9 L151.8 133.0 L150.2 136.5 L148.7 138.9 L145.9 142.4 L143.6 144.7 L140.4 147.2 L137.7 148.9 L137.5 149.2 L139.3 149.0 L142.3 148.4 L146.7 147.1 L150.9 145.3 L153.0 144.0 L154.1 143.1 L155.7 141.6 L157.2 139.3 L158.3 136.8 L158.8 134.2 L158.9 131.6 L158.5 128.0 L157.9 125.4 L156.7 121.6 L155.5 118.7 L152.3 112.5 L149.4 108.1 L145.6 102.9 L142.2 98.8 L139.0 95.3 L136.1 92.5 L131.6 88.4 L124.4 82.8 L116.6 77.8 L107.5 72.8 L95.6 67.1 L87.1 63.4 L83.3 62.0 L78.0 60.2 L74.7 59.4 L71.9 59.0 L68.0 58.9 L65.8 59.3 L64.3 59.7 L63.1 60.2 L55.5 65.3 L49.4 69.6 L43.1 74.4 L37.3 79.3 L32.4 83.9Z M60.8 106.5 L62.5 106.4 L63.2 106.6 L64.9 107.6 L66.3 109.1 L68.1 111.5 L69.6 114.4 L71.4 118.8 L72.1 121.0 L73.2 125.7 L73.7 129.0 L73.9 133.9 L73.5 136.7 L72.9 138.2 L71.7 139.5 L70.7 140.0 L69.2 140.1 L67.0 139.3 L65.1 138.0 L63.2 136.1 L61.7 133.9 L60.1 131.1 L59.0 128.8 L58.0 125.7 L57.2 122.4 L56.7 118.4 L56.7 114.4 L57.0 112.4 L57.6 110.2 L58.3 108.7 L59.3 107.4Z M40.7 93.0 L41.0 93.1 L39.2 97.8 L38.2 101.3 L37.1 105.6 L36.4 109.7 L35.7 115.7 L35.6 122.5 L36.1 127.2 L37.0 131.2 L38.6 135.8 L40.9 140.0 L42.6 142.3 L44.1 144.0 L48.0 147.3 L51.3 149.4 L54.6 151.0 L57.4 152.2 L63.0 153.9 L68.2 154.9 L72.3 155.5 L76.3 155.7 L82.5 155.7 L82.9 155.8 L82.9 156.1 L79.3 156.8 L74.9 157.5 L68.9 157.9 L64.1 157.9 L60.2 157.6 L56.8 157.2 L53.4 156.6 L49.1 155.5 L45.1 154.2 L41.3 152.7 L38.1 151.1 L34.5 149.0 L31.7 147.0 L29.2 144.9 L26.2 141.9 L24.4 139.5 L23.2 137.6 L21.8 134.6 L20.8 131.6 L20.5 129.7 L20.2 126.9 L20.3 124.6 L20.7 121.7 L21.7 118.5 L23.3 114.8 L24.8 112.1 L27.3 108.1 L30.6 103.7 L34.3 99.4Z M113.4 92.6 L115.0 92.5 L117.1 93.2 L119.1 94.5 L120.7 96.2 L122.1 98.3 L124.0 101.8 L125.1 104.4 L126.4 108.4 L127.2 112.2 L127.7 115.7 L127.8 120.0 L127.4 123.0 L126.7 125.7 L125.5 127.8 L123.9 129.3 L122.5 129.8 L120.8 129.9 L118.4 129.2 L116.1 127.8 L114.1 125.8 L112.0 123.0 L110.3 119.8 L109.2 117.0 L108.3 114.1 L107.5 110.2 L107.2 106.9 L107.3 102.5 L107.7 99.8 L108.6 97.2 L109.8 95.1 L111.5 93.4Z M31.1 66.4 L27.1 72.2 L23.3 78.5 L20.1 84.9 L18.5 88.8 L18.4 89.4 L21.7 84.7 L25.6 79.7 L31.6 72.8 L37.6 66.7 L46.4 58.9 L55.2 52.1 L58.9 49.5 L63.7 46.5 L66.5 44.9 L72.0 42.3 L75.2 41.2 L77.6 40.6 L77.2 40.3 L73.9 39.6 L69.6 39.6 L69.4 39.5 L69.6 39.2 L72.9 38.1 L75.0 37.7 L79.7 37.6 L82.8 38.1 L85.6 38.9 L88.4 40.1 L92.0 41.8 L97.1 44.8 L101.5 47.8 L106.3 51.4 L112.7 56.6 L138.3 78.5 L147.0 86.4 L153.5 92.8 L157.9 97.6 L162.0 102.5 L164.7 106.0 L167.5 110.1 L169.5 113.6 L171.7 118.4 L172.4 121.0 L173.0 124.6 L173.0 125.8 L172.6 128.6 L171.8 131.8 L170.5 134.6 L168.4 138.1 L165.9 141.0 L163.3 143.6 L160.8 145.6 L157.4 147.6 L154.3 149.1 L151.1 150.3 L145.2 152.0 L137.7 153.5 L123.6 155.6 L118.2 156.7 L110.6 158.5 L102.8 160.9 L98.8 162.5 L98.6 162.8 L98.7 162.8 L103.3 162.3 L109.2 162.3 L115.2 163.2 L118.2 164.0 L121.0 164.9 L126.3 167.3 L129.6 169.1 L133.3 171.4 L146.5 180.3 L153.2 184.2 L160.4 187.8 L165.4 189.8 L168.8 190.8 L168.9 190.7 L168.0 189.0 L166.2 184.4 L163.6 174.5 L161.5 168.1 L159.1 162.7 L156.5 158.0 L156.7 157.7 L159.4 159.5 L163.3 162.9 L167.5 167.4 L170.4 171.1 L173.3 175.3 L175.8 179.3 L182.5 191.3 L184.8 194.7 L187.9 198.5 L191.8 202.1 L196.0 205.0 L199.0 206.6 L201.6 207.6 L204.2 208.4 L206.7 208.9 L210.1 209.2 L212.4 209.2 L216.9 208.6 L219.5 207.9 L221.7 207.1 L224.1 205.9 L226.2 204.6 L230.8 201.3 L232.3 199.9 L235.9 196.2 L239.9 191.3 L243.7 185.4 L246.2 180.5 L246.5 179.5 L241.6 182.0 L237.1 183.6 L232.6 184.7 L228.0 185.2 L224.2 185.2 L219.3 184.7 L212.9 183.1 L208.2 181.3 L205.2 179.8 L202.2 178.1 L197.5 174.9 L175.7 158.8 L167.8 152.2 L165.3 150.7 L165.8 150.2 L169.2 149.0 L173.6 147.1 L177.3 145.2 L180.5 143.3 L185.7 139.6 L187.3 138.3 L190.3 135.3 L193.0 131.6 L194.3 129.4 L195.1 127.7 L196.3 123.3 L196.4 121.6 L196.3 117.6 L195.7 114.5 L194.8 111.1 L193.2 106.9 L191.3 102.6 L186.5 93.7 L174.3 73.8 L170.6 67.3 L168.3 62.7 L166.6 59.0 L160.7 44.1 L157.3 36.5 L154.4 30.5 L152.0 26.2 L149.2 21.6 L146.5 17.9 L146.4 17.6 L146.6 17.5 L148.1 18.3 L150.5 20.1 L153.2 22.4 L155.3 24.5 L159.3 29.3 L163.9 36.2 L167.8 43.5 L171.0 51.2 L174.1 60.4 L176.6 69.1 L176.9 68.9 L177.1 67.5 L178.3 64.7 L179.6 63.0 L180.9 62.0 L183.2 61.0 L189.9 59.9 L194.9 58.6 L199.0 56.8 L202.2 55.1 L204.9 53.3 L207.9 50.8 L211.4 47.4 L214.9 43.0 L217.4 39.0 L217.4 38.8 L217.1 38.8 L215.9 39.5 L213.8 40.3 L211.6 41.0 L208.7 41.6 L206.3 41.9 L202.6 41.8 L199.1 41.3 L197.2 40.8 L193.2 39.5 L188.0 37.2 L181.1 33.2 L172.8 27.5 L163.9 20.9 L153.8 13.7 L146.4 9.0 L136.9 3.5 L132.1 1.3 L128.0 0.3 L125.2 0.0 L122.6 0.0 L119.4 0.3 L115.5 1.1 L110.5 2.7 L105.8 4.6 L99.1 7.9 L88.9 14.0 L76.8 22.4 L71.6 26.4 L63.6 32.9 L57.0 38.6 L49.8 45.3 L44.6 50.5 L39.1 56.5 L34.5 61.9Z";diff --git a/jarvis/ui/web/frontend/src/components/society/RuntimeBadge.tsx b/jarvis/ui/web/frontend/src/components/society/RuntimeBadge.tsxindex 8078645144..5a8c47128c 100644--- a/jarvis/ui/web/frontend/src/components/society/RuntimeBadge.tsx+++ b/jarvis/ui/web/frontend/src/components/society/RuntimeBadge.tsx@@ -12,7 +12,7 @@ export function RuntimeMark({ runtime, label }: { runtime: AgentRuntime; label:// The built-in runtime carries the Jarvis app logo, not the user's pet:// here it names a product beside Hermes and OpenClaw, not the companion.return runtime === "jarvis"- ? <img src="/jarvis-gigi-256.png" alt="" aria-hidden="true" width={16} height={16} className="size-4 shrink-0 rounded-[4px]" data-testid="runtime-mark-jarvis" />+ ? <img src="/jarvis-gigi-256.png?v=hood" alt="" aria-hidden="true" width={16} height={16} className="size-4 shrink-0 rounded-[4px]" data-testid="runtime-mark-jarvis" />: <ProviderLogo providerId={runtime} label={label} size="sm" />;}diff --git a/jarvis/ui/web/frontend/src/index.css b/jarvis/ui/web/frontend/src/index.cssindex b3448ca02d..2b41bb5940 100644--- a/jarvis/ui/web/frontend/src/index.css+++ b/jarvis/ui/web/frontend/src/index.css@@ -1505,12 +1505,6 @@ body {transform-origin: 50% 50%;}- /* White outline does the lighting. A small lift keeps the black body a- figure on charcoal instead of a hole. */- .dark .gigi-body {- filter: brightness(1.15);- }-.gigi-compact .gigi-root,.gigi-compact .gigi-svg {animation: none;diff --git a/scripts/install_shortcuts.py b/scripts/install_shortcuts.pyindex da6c9122a2..7a14c305c9 100644--- a/scripts/install_shortcuts.py+++ b/scripts/install_shortcuts.py@@ -286,7 +286,7 @@ def install_dev_shortcut() -> int:return 2if not DEV_ICON_PATH.is_file():print(- f"Error: {DEV_ICON_PATH} is missing — run scripts/make_dev_icon.py first.",+ f"Error: {DEV_ICON_PATH} is missing — run scripts/make_app_icon.py first.",file=sys.stderr,)return 2diff --git a/scripts/make_app_icon.py b/scripts/make_app_icon.pynew file mode 100644index 0000000000..677b1fc269--- /dev/null+++ b/scripts/make_app_icon.py@@ -0,0 +1,238 @@+"""Render every Personal Jarvis app icon from the vector logo.++ python scripts/make_app_icon.py++The single source is ``assets/brand/dodaios-logo.svg``: the hooded figure as one+even-odd path in a ``0 0 256 256`` viewBox. Everything else is generated from+it — the taskbar/dock tile at every ICO size, the 1024 px master the macOS+``.icns`` is built from, the DEV-badged copy, the free-standing white mark for+dark surfaces, and ``src/components/brand/jarvisLogoPath.ts`` that the+frontend draws the same figure with. ``tests/test_app_icon.py`` fails when the+TypeScript copy drifts from the SVG.++The tile is the logo as it was drawn: black ink on white paper, cut to a+superellipse (the shape platforms use for their own icons). A faint dark+hairline inside the edge keeps the tile's outline on a light taskbar.++Sizes are rendered, not downsampled from one bitmap, and the figure grows to+fill more of the tile as the tile shrinks — at 16 px it is the silhouette, not+the margin, that a person recognises.+"""++from __future__ import annotations++import math+import re+from pathlib import Path++import numpy as np+from PIL import Image, ImageChops, ImageDraw, ImageFont++ROOT = Path(__file__).resolve().parent.parent+LOGO_SVG = ROOT / "assets" / "brand" / "dodaios-logo.svg"+FRONTEND = ROOT / "jarvis" / "ui" / "web" / "frontend"+LOGO_TS = FRONTEND / "src" / "components" / "brand" / "jarvisLogoPath.ts"+VIEWBOX = 256.0++SQUIRCLE_N = 5.0 # superellipse exponent; 5 is the shape platforms settled on+SUPERSAMPLE = 4+PAPER = (255, 255, 255)+INK = (10, 10, 10)+DEV_AMBER = (241, 180, 103) # the interface's "degraded" amber (#F1B467)+DEV_INK = (20, 20, 20)+#: The figure's box as a fraction of the tile — bigger where the tile is smaller.+SPAN_LARGE = 0.72+SPAN_SMALL = 0.88+SPAN_FULL_AT = 64+SPAN_SMALL_AT = 16+HAIRLINE_ALPHA = 0.14+HAIRLINE_WIDTH = 0.007++MASTER = 1024+ICO_SIZES = (16, 20, 24, 32, 40, 48, 64, 128, 256)+++def logo_path_data(svg: Path = LOGO_SVG) -> str:+ """The ``d`` attribute of the logo's single path."""+ match = re.search(r'<path[^>]*\sd="([^"]+)"', svg.read_text(encoding="utf-8"))+ if not match:+ raise SystemExit(f"{svg} has no <path d=...>")+ return match.group(1)+++def logo_polygons(d: str) -> list[list[tuple[float, float]]]:+ """Split an ``M … L … Z`` path into closed polygons in viewBox units."""+ polygons = []+ for sub in d.split("Z"):+ numbers = [float(n) for n in re.findall(r"-?\d+(?:\.\d+)?", sub)]+ if len(numbers) >= 6:+ polygons.append(list(zip(numbers[0::2], numbers[1::2], strict=True)))+ return polygons+++def figure_mask(size: int, span: float) -> Image.Image:+ """The figure as an antialiased ``L`` mask, centred in a ``size`` square.++ The path's subpaths are filled even-odd: each one is XOR-ed into the mask,+ so a hole (an eye, a fold of the cloak) cuts the shape it sits in.+ """+ big = size * SUPERSAMPLE+ scale = big * span / VIEWBOX+ offset = (big - VIEWBOX * scale) / 2.0+ acc = np.zeros((big, big), dtype=bool)+ for polygon in logo_polygons(logo_path_data()):+ layer = Image.new("1", (big, big), 0)+ points = [(x * scale + offset, y * scale + offset) for x, y in polygon]+ ImageDraw.Draw(layer).polygon(points, fill=1)+ acc ^= np.asarray(layer, dtype=bool)+ mask = Image.fromarray((acc * 255).astype(np.uint8), mode="L")+ return mask.resize((size, size), Image.Resampling.LANCZOS)+++def squircle_mask(size: int) -> Image.Image:+ """A superellipse the width of ``size``, antialiased by supersampling."""+ big = size * SUPERSAMPLE+ mask = Image.new("L", (big, big), 0)+ radius = big / 2.0+ exponent = 2.0 / SQUIRCLE_N+ points = []+ for i in range(720):+ theta = 2.0 * math.pi * i / 720+ cos_t, sin_t = math.cos(theta), math.sin(theta)+ x = radius * (abs(cos_t) ** exponent) * (1 if cos_t >= 0 else -1)+ y = radius * (abs(sin_t) ** exponent) * (1 if sin_t >= 0 else -1)+ points.append((radius + x, radius + y))+ ImageDraw.Draw(mask).polygon(points, fill=255)+ return mask.resize((size, size), Image.Resampling.LANCZOS)+++def mark_span(size: int) -> float:+ """Interpolate the figure size, so no two neighbouring sizes jump."""+ t = min(1.0, max(0.0, (size - SPAN_SMALL_AT) / (SPAN_FULL_AT - SPAN_SMALL_AT)))+ return SPAN_SMALL + (SPAN_LARGE - SPAN_SMALL) * t+++def _hairline(size: int) -> Image.Image:+ """A ring just inside the tile edge, so the white tile survives a light taskbar."""+ inset = max(1, round(size * HAIRLINE_WIDTH))+ inner = Image.new("L", (size, size), 0)+ inner.paste(squircle_mask(size - 2 * inset), (inset, inset))+ ring = ImageChops.subtract(squircle_mask(size), inner)+ line = Image.new("RGBA", (size, size), (*INK, 255))+ line.putalpha(ring.point(lambda v: int(v * HAIRLINE_ALPHA)))+ return line+++def render_tile(size: int) -> Image.Image:+ """Render one icon size from the vector — never by resampling a bigger one."""+ tile = Image.new("RGBA", (size, size), (*PAPER, 255))+ tile.alpha_composite(_hairline(size))+ ink = Image.new("RGBA", (size, size), (*INK, 255))+ ink.putalpha(figure_mask(size, mark_span(size)))+ tile.alpha_composite(ink)+ tile.putalpha(squircle_mask(size))+ return tile+++def _dev_ribbon(size: int) -> Image.Image:+ """The amber DEV label the dev instance wears in its lower-right corner.++ Below 32 px the word cannot be read, so the label collapses to a plain+ amber block that still says "this is the other one" at a glance.+ """+ ribbon = Image.new("RGBA", (size, size), (0, 0, 0, 0))+ draw = ImageDraw.Draw(ribbon)+ width = size * 0.5+ height = size * 0.2+ margin = size * 0.05+ x1 = size - margin+ y1 = size - margin+ x0 = x1 - width+ y0 = y1 - height+ draw.rounded_rectangle((x0, y0, x1, y1), radius=height * 0.28, fill=(*DEV_AMBER, 255))+ if size >= 32:+ font = ImageFont.load_default(size=int(height * 0.78))+ left, top, right, bottom = draw.textbbox((0, 0), "DEV", font=font)+ tx = x0 + (width - (right - left)) / 2 - left+ ty = y0 + (height - (bottom - top)) / 2 - top+ draw.text((tx, ty), "DEV", font=font, fill=(*DEV_INK, 255))+ return ribbon+++def render_dev_tile(size: int) -> Image.Image:+ """The dev instance's icon: the same tile, wearing the DEV ribbon."""+ tile = render_tile(size)+ tile.alpha_composite(_dev_ribbon(size))+ return tile+++def render_mark(size: int) -> Image.Image:+ """The free-standing figure in white, for dark surfaces with their own frame."""+ mark = Image.new("RGBA", (size, size), (*PAPER, 255))+ mark.putalpha(figure_mask(size, 1.0))+ return mark+++def write_png(path: Path, image: Image.Image) -> None:+ path.parent.mkdir(parents=True, exist_ok=True)+ image.save(path, format="PNG")+++def write_ico(path: Path, members: list[Image.Image]) -> None:+ """Write every ICO member from its own render, largest first."""+ path.parent.mkdir(parents=True, exist_ok=True)+ largest, *rest = members+ largest.save(path, format="ICO", sizes=[m.size for m in members], append_images=rest)+++def logo_ts_source(d: str) -> str:+ return (+ "// Generated from assets/brand/dodaios-logo.svg by scripts/make_app_icon.py.\n"+ '// The Personal Jarvis mark in a 0 0 256 256 viewBox; fill it with fill-rule="evenodd".\n'+ f'export const JARVIS_LOGO_PATH =\n "{d}";\n'+ )+++def main() -> None:+ LOGO_TS.write_text(logo_ts_source(logo_path_data()), encoding="utf-8", newline="\n")++ tile_256 = render_tile(256)+ members = [render_tile(s) for s in sorted(ICO_SIZES, reverse=True)]+ public = FRONTEND / "public"++ write_png(ROOT / "assets" / "icons" / "jarvis-1024.png", render_tile(MASTER))+ for path in (+ ROOT / "jarvis" / "assets" / "icons" / "jarvis.png",+ ROOT / "assets" / "icons" / "jarvis-gigi-256.png",+ public / "jarvis-gigi-256.png",+ public / "jarvis-logo.png",+ FRONTEND / "src" / "assets" / "jarvis-mark.png",+ ROOT / "video" / "public" / "jarvis-gigi.png",+ ROOT / "video" / "public" / "jarvis-mark.png",+ ROOT / "videos" / "agent-mode-launch" / "assets" / "gigi.png",+ ):+ write_png(path, tile_256)+ write_png(public / "jarvis-mark-256.png", render_mark(256))+ for path in (+ ROOT / "jarvis" / "assets" / "icons" / "jarvis.ico",+ ROOT / "assets" / "icons" / "jarvis.ico",+ public / "jarvis.ico",+ public / "jarvis-gigi.ico",+ ):+ write_ico(path, members)+ # The dev instance (``--instance dev``) shows its own DEV-badged copy on the+ # taskbar and in its shortcut, rendered from the same vector.+ dev_members = [render_dev_tile(s) for s in sorted(ICO_SIZES, reverse=True)]+ dev_png = render_dev_tile(256)+ write_png(ROOT / "assets" / "icons" / "jarvis-dev.png", dev_png)+ write_png(ROOT / "jarvis" / "assets" / "icons" / "jarvis-dev.png", dev_png)+ for path in (+ ROOT / "jarvis" / "assets" / "icons" / "jarvis-dev.ico",+ ROOT / "assets" / "icons" / "jarvis-dev.ico",+ ):+ write_ico(path, dev_members)+ print(f"wrote the app icon at {MASTER} px, 256 px, {len(ICO_SIZES)} ICO members, and DEV")+++if __name__ == "__main__":+ main()diff --git a/scripts/make_dev_icon.py b/scripts/make_dev_icon.pydeleted file mode 100644index ffee888f0d..0000000000--- a/scripts/make_dev_icon.py+++ /dev/null@@ -1,102 +0,0 @@-"""Render the dev-instance app icon: the mascot with a signal-yellow DEV tag.-- python scripts/make_dev_icon.py--Writes ``jarvis-dev.png`` (256 px) and ``jarvis-dev.ico`` (16…256 px) next to-the default icon in BOTH icon homes — the in-package copy that ships with the-code (``jarvis/assets/icons/``) and the build-tool copy (``assets/icons/``).-``jarvis.core.instance`` names these files; ``jarvis.assets.bundled_app_icon``-and ``jarvis.ui.icon_utils.project_icon_path`` resolve them for the dev app.--The tag is drawn at 4× and downsampled so it stays crisp at every size. At-16 px the letters are gone but the yellow corner remains — that is the whole-point: the two taskbar buttons must be told apart at a glance.-"""--from __future__ import annotations--import sys-from pathlib import Path--from PIL import Image, ImageDraw, ImageFont--ROOT = Path(__file__).resolve().parent.parent-SOURCE_PNG = ROOT / "jarvis" / "assets" / "icons" / "jarvis.png"-TARGET_DIRS = (ROOT / "jarvis" / "assets" / "icons", ROOT / "assets" / "icons")-PNG_NAME = "jarvis-dev.png"-ICO_NAME = "jarvis-dev.ico"-ICO_SIZES = [(16, 16), (24, 24), (32, 32), (48, 48), (64, 64), (128, 128), (256, 256)]--YELLOW = (255, 214, 10, 255)-INK = (10, 10, 10, 255)-LABEL = "DEV"---def _bold_font(size: int) -> ImageFont.FreeTypeFont | ImageFont.ImageFont:- for name in ("segoeuib.ttf", "arialbd.ttf", "DejaVuSans-Bold.ttf", "Arial Bold.ttf"):- try:- return ImageFont.truetype(name, size)- except OSError:- continue- return ImageFont.load_default()---def render(source: Path, size: int = 256) -> Image.Image:- scale = 4- big = size * scale- base = Image.open(source).convert("RGBA").resize((big, big), Image.LANCZOS)-- # Tag geometry (relative to the icon): a rounded pill in the lower-right- # corner, wide enough for the word with comfortable padding, on a thin dark- # outline so it still separates from a light desktop or a light taskbar.- font = _bold_font(int(big * 0.20))- probe = ImageDraw.Draw(base)- tw = probe.textlength(LABEL, font=font)- bbox = font.getbbox(LABEL)- th = bbox[3] - bbox[1]- pad_x = int(big * 0.045)- pad_y = int(big * 0.035)- w = int(tw) + 2 * pad_x- h = th + 2 * pad_y- x1 = big - int(big * 0.03)- y1 = big - int(big * 0.03)- x0 = x1 - w- y0 = y1 - h- radius = int(h * 0.28)- outline = max(2, int(big * 0.008))-- tag = Image.new("RGBA", (big, big), (0, 0, 0, 0))- d = ImageDraw.Draw(tag)- d.rounded_rectangle(- (x0 - outline, y0 - outline, x1 + outline, y1 + outline),- radius=radius + outline,- fill=INK,- )- d.rounded_rectangle((x0, y0, x1, y1), radius=radius, fill=YELLOW)- d.text(- (x0 + pad_x, y0 + pad_y - bbox[1]),- LABEL,- font=font,- fill=INK,- )- base.alpha_composite(tag)- return base.resize((size, size), Image.LANCZOS)---def main() -> int:- if not SOURCE_PNG.is_file():- print(f"source icon missing: {SOURCE_PNG}", file=sys.stderr)- return 1- master = render(SOURCE_PNG, 256)- for target_dir in TARGET_DIRS:- target_dir.mkdir(parents=True, exist_ok=True)- png = target_dir / PNG_NAME- ico = target_dir / ICO_NAME- master.save(png, format="PNG")- master.save(ico, format="ICO", sizes=ICO_SIZES)- print(f"[ok] {png}\n[ok] {ico}")- return 0---if __name__ == "__main__":- raise SystemExit(main())diff --git a/scripts/make_gigi_app_icon.py b/scripts/make_gigi_app_icon.pydeleted file mode 100644index 914a193e8f..0000000000--- a/scripts/make_gigi_app_icon.py+++ /dev/null@@ -1,396 +0,0 @@-"""Render the desktop app icon: Gigi standing in a pool of light.-- python scripts/make_gigi_app_icon.py--The icon is drawn from vector geometry, not resampled from a raster. Every-shape — the body path, the trim outline, eyes, mouth, scanlines, cheek slices,-glitch pixels and arms — is copied from the canonical mascot in-``jarvis/ui/web/frontend/src/components/MascotGigi.tsx`` (viewBox ``0 0 256-256``); ``tests/test_app_icon.py`` fails if the two drift apart.--**The lighting is the whole design.** Gigi's white accents are what make him-alive, and a white tile is exactly the background that hides them — the trim-outline, the arms and the glitch pixels all vanish into it, leaving a flat-black blob. Turning the tile black is not the fix either: then his body-disappears instead. What works is a value sandwich, darkest in the middle:--* the tile is a pool of light — bright behind him, falling away to near-black- at the corners;-* his body is a solid ink darker than any part of that pool, so he reads as a- silhouette standing *in* the light rather than a drawing pasted onto it;-* his trim, eyes and mouth are paper white with a soft glow, and the glow has- somewhere dark to land.--Two more details, both because a dark tile meets a dark taskbar: the tile is a-superellipse, the shape platforms use for their own icons, and a hairline of-white sits just inside the edge to draw the outline when fill and background-match.--Sizes are rendered, not downsampled, and they are not the same drawing shrunk.-Below 48 px the scanlines, cheeks, glitch pixels and arms are dropped — they-are under a pixel there and only muddy the face — and Gigi grows to fill more-of the tile, because at 16 px it is the ghost, not the frame, that a person-recognises.-"""--from __future__ import annotations--import math-from pathlib import Path--from PIL import Image, ImageChops, ImageDraw, ImageFilter, ImageFont--ROOT = Path(__file__).resolve().parent.parent--# ── Geometry, mirrored from MascotGigi.tsx (viewBox 0 0 256 256) ──────────────-#: Body outline: a domed head over straight flanks, closed by the zigzag skirt.-BODY_DOME = ((58, 90), (58, 36), (128, 36), (198, 36), (198, 90))-BODY_SKIRT = (- (198, 208),- (180, 186),- (160, 208),- (140, 186),- (120, 208),- (100, 186),- (80, 208),- (58, 186),-)-#: Eyes, pupils, mouth as (cx, cy, rx, ry); sparkles as (cx, cy, r).-EYES = ((102, 108, 10, 14), (154, 108, 10, 14))-PUPILS = ((104, 112, 4, 6), (156, 112, 4, 6))-SPARKLES = ((106, 105, 2), (158, 105, 2))-MOUTH = (128, 146, 7, 10)-MOUTH_INNER = (128, 146, 3, 5)-#: Body decoration as (x, y, w, h[, opacity]) — the pixel-ghost character.-SCANLINES = ((58, 132, 140, 2.4, 0.55), (58, 160, 140, 1.4, 0.30))-CHEEKS = ((64, 118, 18, 10), (170, 118, 18, 10))-GLITCH_RIGHT = (- (200, 104, 6, 6),- (208, 128, 4, 4),- (202, 146, 9, 3),- (197, 168, 3, 5),- (206, 176, 5, 3),-)-GLITCH_LEFT = ((44, 96, 6, 4), (48, 124, 4, 6), (40, 148, 8, 3), (50, 170, 3, 5))-#: Arms, as the control points of one quadratic each.-ARM_LEFT = ((58, 140), (40, 148), (42, 162))-ARM_RIGHT = ((198, 140), (216, 148), (214, 162))-#: Horizontal extent of the drawing including arms and glitch pixels.-DRAWING_X = (40.0, 216.0)--# ── Treatment ────────────────────────────────────────────────────────────────-SQUIRCLE_N = 5.0 # superellipse exponent; 5 is the shape platforms settled on-SUPERSAMPLE = 4-#: The pool of light: bright at its centre, near-black by the corners.-POOL_INNER = (122, 122, 122)-POOL_OUTER = (11, 11, 11)-POOL_CENTRE = (0.5, 0.44)-POOL_RADIUS = 0.66-#: Ink darker than every part of the pool, so he is always the darkest thing.-BODY_INK = (10, 10, 10)-FACE_INK = (6, 6, 6) # pupils and the mouth's core, a touch deeper still-PAPER = (255, 255, 255)-DEV_AMBER = (241, 180, 103) # the interface's "degraded" amber (#F1B467)-DEV_INK = (20, 20, 20)-#: The mark's box as a fraction of the tile — bigger where the tile is smaller.-SPAN_LARGE = 0.62-SPAN_SMALL = 0.76-SPAN_FULL_AT = 64-SPAN_SMALL_AT = 16-#: Below this, scanlines/cheeks/glitch/arms are under a pixel and only muddy it.-DETAIL_FROM = 48-HAIRLINE_ALPHA = 0.12-HAIRLINE_WIDTH = 0.007-TRIM_WIDTH = 2.6 # stroke width in mascot units-ARM_WIDTH = 5.5--MASTER = 1024-ICO_SIZES = (16, 20, 24, 32, 40, 48, 64, 128, 256)---def _quadratic(p0, p1, p2, steps: int = 64):- """Sample a quadratic Bezier — the ``Q`` segments of the body and arms."""- for i in range(steps + 1):- t = i / steps- u = 1.0 - t- yield (- u * u * p0[0] + 2 * u * t * p1[0] + t * t * p2[0],- u * u * p0[1] + 2 * u * t * p1[1] + t * t * p2[1],- )---def body_polygon() -> list[tuple[float, float]]:- """Flatten the body path into a polygon in the 256-unit mascot space."""- points: list[tuple[float, float]] = [(58.0, 90.0)]- points += list(_quadratic((58, 90), (58, 36), (128, 36)))[1:]- points += list(_quadratic((128, 36), (198, 36), (198, 90)))[1:]- points += [(float(x), float(y)) for x, y in BODY_SKIRT]- return points---def squircle_mask(size: int) -> Image.Image:- """A superellipse the width of ``size``, antialiased by supersampling."""- big = size * SUPERSAMPLE- mask = Image.new("L", (big, big), 0)- radius = big / 2.0- exponent = 2.0 / SQUIRCLE_N- points = []- for i in range(720):- theta = 2.0 * math.pi * i / 720- cos_t, sin_t = math.cos(theta), math.sin(theta)- x = radius * (abs(cos_t) ** exponent) * (1 if cos_t >= 0 else -1)- y = radius * (abs(sin_t) ** exponent) * (1 if sin_t >= 0 else -1)- points.append((radius + x, radius + y))- ImageDraw.Draw(mask).polygon(points, fill=255)- return mask.resize((size, size), Image.Resampling.LANCZOS)---def pool_of_light(size: int) -> Image.Image:- """A radial field: lit where Gigi stands, falling away at the corners."""- image = Image.new("RGB", (size, size))- pixels = image.load()- cx, cy = POOL_CENTRE- for y in range(size):- dy = (y / size - cy) / POOL_RADIUS- for x in range(size):- dx = (x / size - cx) / POOL_RADIUS- t = min(1.0, math.hypot(dx, dy))- t = t * t * (3.0 - 2.0 * t) # smoothstep, so the falloff has no seam- pixels[x, y] = tuple(- round(POOL_INNER[i] + (POOL_OUTER[i] - POOL_INNER[i]) * t) for i in range(3)- )- return image---def mark_span(size: int) -> float:- """Interpolate the mark size, so no two neighbouring sizes jump."""- t = min(1.0, max(0.0, (size - SPAN_SMALL_AT) / (SPAN_FULL_AT - SPAN_SMALL_AT)))- return SPAN_SMALL + (SPAN_LARGE - SPAN_SMALL) * t---class _Mascot:- """Maps mascot units onto a supersampled canvas and draws Gigi there."""-- def __init__(self, size: int, span: float, detail: bool) -> None:- ys = [p[1] for p in body_polygon()]- self.x0, self.x1 = DRAWING_X- self.y0, self.y1 = min(ys), max(ys)- self.scale = (size * SUPERSAMPLE * span) / max(self.x1 - self.x0, self.y1 - self.y0)- self.width = round((self.x1 - self.x0) * self.scale) + 4- self.height = round((self.y1 - self.y0) * self.scale) + 4- self.detail = detail-- def at(self, x: float, y: float) -> tuple[float, float]:- return ((x - self.x0) * self.scale, (y - self.y0) * self.scale)-- def _oval(self, cx: float, cy: float, rx: float, ry: float) -> tuple[float, ...]:- return (*self.at(cx - rx, cy - ry), *self.at(cx + rx, cy + ry))-- def _rect(self, x: float, y: float, w: float, h: float) -> tuple[float, ...]:- return (*self.at(x, y), *self.at(x + w, y + h))-- def _stroke(self, draw, points, width: float, fill) -> None:- """Stamp a disc along a path — PIL has no round cap and frays on curves.-- The path is densified first: a polygon's straight flanks carry only- their end points, and stamping those alone leaves a dotted line.- """- radius = max(1.0, width * self.scale / 2.0)- step = max(0.5, radius / 2.0)- for (x0, y0), (x1, y1) in zip(points, points[1:], strict=False):- span = math.hypot(x1 - x0, y1 - y0)- for i in range(max(1, int(span / step)) + 1):- t = min(1.0, i * step / span) if span else 0.0- x, y = x0 + (x1 - x0) * t, y0 + (y1 - y0) * t- draw.ellipse((x - radius, y - radius, x + radius, y + radius), fill=fill)-- def _layer(self) -> tuple[Image.Image, ImageDraw.ImageDraw]:- layer = Image.new("RGBA", (self.width, self.height), (0, 0, 0, 0))- return layer, ImageDraw.Draw(layer)-- def render(self) -> Image.Image:- polygon = [self.at(x, y) for x, y in body_polygon()]-- # Solid ink body — darker than any part of the pool behind it.- silhouette = Image.new("L", (self.width, self.height), 0)- ImageDraw.Draw(silhouette).polygon(polygon, fill=255)- body = Image.new("RGB", (self.width, self.height), BODY_INK)- gigi = Image.merge("RGBA", (*body.split(), silhouette))-- # Trim: the paper outline that separates ink from a dark ground.- self._stroke(ImageDraw.Draw(gigi), [*polygon, polygon[0]], TRIM_WIDTH, (*PAPER, 255))-- glowing, glow_draw = self._layer() # gets a blurred copy underneath- matte, matte_draw = self._layer() # stays crisp, no glow- if self.detail:- for x, y, w, h, opacity in SCANLINES:- matte_draw.rectangle(self._rect(x, y, w, h), fill=(*PAPER, round(255 * opacity)))- for x, y, w, h in CHEEKS:- matte_draw.rectangle(self._rect(x, y, w, h), fill=(*PAPER, 82))- for pixels, alpha in ((GLITCH_RIGHT, 255), (GLITCH_LEFT, 179)):- for x, y, w, h in pixels:- glow_draw.rectangle(self._rect(x, y, w, h), fill=(*PAPER, alpha))- for arm in (ARM_LEFT, ARM_RIGHT):- self._stroke(- glow_draw,- [self.at(*point) for point in _quadratic(*arm, steps=160)],- ARM_WIDTH,- (*PAPER, 255),- )- for eye in EYES:- glow_draw.ellipse(self._oval(*eye), fill=(*PAPER, 255))- glow_draw.ellipse(self._oval(*MOUTH), fill=(*PAPER, 255))-- # A wide soft halo, then the tight glow, then the crisp shapes.- halo, halo_draw = self._layer()- for cx, cy, rx, ry in EYES:- halo_draw.ellipse(self._oval(cx, cy, rx + 4, ry + 4), fill=(*PAPER, 165))- halo_draw.ellipse(- self._oval(MOUTH[0], MOUTH[1], MOUTH[2] + 4, MOUTH[3] + 4), fill=(*PAPER, 130)- )- gigi.alpha_composite(halo.filter(ImageFilter.GaussianBlur(max(1.0, 8.0 * self.scale))))- gigi.alpha_composite(glowing.filter(ImageFilter.GaussianBlur(max(1.0, 3.2 * self.scale))))- gigi.alpha_composite(glowing)- gigi.alpha_composite(matte)-- face, face_draw = self._layer()- for pupil in PUPILS:- face_draw.ellipse(self._oval(*pupil), fill=(*FACE_INK, 255))- face_draw.ellipse(self._oval(*MOUTH_INNER), fill=(*FACE_INK, 255))- if self.detail:- for cx, cy, r in SPARKLES:- face_draw.ellipse(self._oval(cx, cy, r, r), fill=(*PAPER, 255))- gigi.alpha_composite(face)-- return gigi.resize(- (max(1, self.width // SUPERSAMPLE), max(1, self.height // SUPERSAMPLE)),- Image.Resampling.LANCZOS,- )---def _hairline(size: int) -> Image.Image:- """A ring just inside the tile edge, so the shape survives a dark taskbar."""- inset = max(1, round(size * HAIRLINE_WIDTH))- inner = Image.new("L", (size, size), 0)- inner.paste(squircle_mask(size - 2 * inset), (inset, inset))- ring = ImageChops.subtract(squircle_mask(size), inner)- line = Image.new("RGBA", (size, size), (*PAPER, 255))- line.putalpha(ring.point(lambda v: int(v * HAIRLINE_ALPHA)))- return line---def render_tile(size: int) -> Image.Image:- """Render one icon size from scratch — never by resampling a bigger one."""- tile = pool_of_light(size).convert("RGBA")- tile.alpha_composite(_hairline(size))- gigi = _Mascot(size, mark_span(size), size >= DETAIL_FROM).render()- tile.alpha_composite(gigi, ((size - gigi.width) // 2, (size - gigi.height) // 2))- tile.putalpha(squircle_mask(size))- return tile---def _dev_ribbon(size: int) -> Image.Image:- """The amber DEV label the dev instance wears in its lower-right corner.-- Drawn from the same amber the interface uses for "degraded" so the two- icons share a palette, and sized from the tile so it survives every ICO- member: below 32 px the word cannot be read, so the label collapses to a- plain amber block that still says "this is the other one" at a glance.- """- ribbon = Image.new("RGBA", (size, size), (0, 0, 0, 0))- draw = ImageDraw.Draw(ribbon)- width = size * 0.5- height = size * 0.2- margin = size * 0.05- x1 = size - margin- y1 = size - margin- x0 = x1 - width- y0 = y1 - height- radius = height * 0.28- draw.rounded_rectangle((x0, y0, x1, y1), radius=radius, fill=(*DEV_AMBER, 255))- if size >= 32:- font = ImageFont.load_default(size=int(height * 0.78))- text = "DEV"- left, top, right, bottom = draw.textbbox((0, 0), text, font=font)- tx = x0 + (width - (right - left)) / 2 - left- ty = y0 + (height - (bottom - top)) / 2 - top- draw.text((tx, ty), text, font=font, fill=(*DEV_INK, 255))- return ribbon---def render_dev_tile(size: int) -> Image.Image:- """The dev instance's icon: the same tile, wearing the DEV ribbon."""- tile = render_tile(size)- tile.alpha_composite(_dev_ribbon(size))- return tile---def render_mark(size: int) -> Image.Image:- """The free-standing mark, for surfaces that bring their own frame.-- The share card's ring, for one. With no tile there is no edge to keep clear- of, so it fills the canvas instead of sitting inside a tile's margin.- """- gigi = _Mascot(size, 1.0, True).render()- canvas = Image.new("RGBA", (size, size), (0, 0, 0, 0))- canvas.alpha_composite(gigi, ((size - gigi.width) // 2, (size - gigi.height) // 2))- return canvas---def write_png(path: Path, image: Image.Image) -> None:- path.parent.mkdir(parents=True, exist_ok=True)- image.save(path, format="PNG")---def write_ico(path: Path, members: list[Image.Image]) -> None:- """Write every ICO member from its own render, largest first."""- path.parent.mkdir(parents=True, exist_ok=True)- largest, *rest = members- largest.save(path, format="ICO", sizes=[m.size for m in members], append_images=rest)---def main() -> None:- master = render_tile(MASTER)- tile_256 = render_tile(256)- members = [render_tile(s) for s in sorted(ICO_SIZES, reverse=True)]-- write_png(ROOT / "assets" / "icons" / "jarvis-1024.png", master)- for path in (- ROOT / "jarvis" / "assets" / "icons" / "jarvis.png",- ROOT / "assets" / "icons" / "jarvis-gigi-256.png",- ROOT / "jarvis" / "ui" / "web" / "frontend" / "public" / "jarvis-gigi-256.png",- # Bundled copy: imported by GigiMark so Vite gives it a content hash.- # A public/ file keeps its name forever, and browsers keep serving the- # cached one — the reason a redrawn icon does not show up in the app.- ROOT / "jarvis" / "ui" / "web" / "frontend" / "src" / "assets" / "jarvis-mark.png",- ):- write_png(path, tile_256)- write_png(- ROOT / "jarvis" / "ui" / "web" / "frontend" / "public" / "jarvis-mark-256.png",- render_mark(256),- )- for path in (- ROOT / "jarvis" / "assets" / "icons" / "jarvis.ico",- ROOT / "assets" / "icons" / "jarvis.ico",- ROOT / "jarvis" / "ui" / "web" / "frontend" / "public" / "jarvis.ico",- ROOT / "jarvis" / "ui" / "web" / "frontend" / "public" / "jarvis-gigi.ico",- ):- write_ico(path, members)- # The dev instance (``--instance dev``) shows its own DEV-badged copy on the- # taskbar and in its shortcut. It is rendered here, from the same drawing,- # so a redrawn Gigi can no longer leave the dev icon one draft behind.- dev_members = [render_dev_tile(s) for s in sorted(ICO_SIZES, reverse=True)]- write_png(ROOT / "assets" / "icons" / "jarvis-dev.png", render_dev_tile(256))- for path in (- ROOT / "jarvis" / "assets" / "icons" / "jarvis-dev.ico",- ROOT / "assets" / "icons" / "jarvis-dev.ico",- ):- write_ico(path, dev_members)- print(- f"wrote the app icon at {MASTER} px, 256 px, {len(ICO_SIZES)} ICO members, "- "and the DEV-badged copy"- )---if __name__ == "__main__":- main()diff --git a/tests/test_app_icon.py b/tests/test_app_icon.pyindex c257692e23..cfc3257717 100644--- a/tests/test_app_icon.py+++ b/tests/test_app_icon.py@@ -1,116 +1,50 @@-"""The app icon is drawn from the mascot's own geometry — keep the two in sync.--``scripts/make_gigi_app_icon.py`` copies every shape out of ``MascotGigi.tsx``-because there is no runtime that can share them: one side is Python drawing a-PNG at build time, the other is React drawing SVG in a browser. A copy that-nothing checks drifts silently, and the drift only shows up as a taskbar icon-that no longer matches the mascot on screen.--The last test is the one that would have caught the icon this replaced: a body-no darker than its background is a drawing pasted onto a tile, not a ghost-standing in light, and it is exactly what makes an icon look dead.+"""The app icon and the in-app mark are drawn from one vector logo.++``scripts/make_app_icon.py`` renders every native icon from+``assets/brand/dodaios-logo.svg`` and writes the same path into+``src/components/brand/jarvisLogoPath.ts`` for the frontend. There is no+runtime that can share the two — one side is Python drawing a PNG at build+time, the other is React drawing SVG in a browser — so a copy nothing checks+would drift and show up as a taskbar icon that no longer matches the app."""from __future__ import annotations-import refrom pathlib import Pathimport pytest--from scripts.make_gigi_app_icon import (- ARM_LEFT,- ARM_RIGHT,- BODY_DOME,- BODY_INK,- BODY_SKIRT,- CHEEKS,- EYES,- GLITCH_LEFT,- GLITCH_RIGHT,- MOUTH,- MOUTH_INNER,- POOL_INNER,- POOL_OUTER,- PUPILS,- SCANLINES,+from PIL import Image++from scripts.make_app_icon import (+ LOGO_TS,+ figure_mask,+ logo_path_data,+ logo_polygons,+ logo_ts_source,render_tile,)-MASCOT = (- Path(__file__).resolve().parents[1]- / "jarvis"- / "ui"- / "web"- / "frontend"- / "src"- / "components"- / "MascotGigi.tsx"-)+ROOT = Path(__file__).resolve().parents[1][email protected](scope="module")-def mascot_source() -> str:- return MASCOT.read_text(encoding="utf-8")---def test_body_path_matches_the_mascot(mascot_source: str) -> None:- """The dome control points and the zigzag skirt come from the SVG path."""- match = re.search(r'className="gigi-body"\s*\n\s*d="([^"]+)"', mascot_source)- assert match, "MascotGigi.tsx no longer exposes a gigi-body path"- numbers = [float(n) for n in re.findall(r"-?\d+(?:\.\d+)?", match.group(1))]- points = list(zip(numbers[0::2], numbers[1::2], strict=True))- assert points[: len(BODY_DOME)] == [(float(x), float(y)) for x, y in BODY_DOME]- assert points[len(BODY_DOME) :] == [(float(x), float(y)) for x, y in BODY_SKIRT]---def test_ellipses_match_the_mascot(mascot_source: str) -> None:- """Eyes, pupils and both mouth ellipses are the mascot's own."""- drawn = {- (float(cx), float(cy), float(rx), float(ry))- for cx, cy, rx, ry in re.findall(- r'<ellipse[^>]*?cx="([\d.]+)" cy="([\d.]+)" rx="([\d.]+)" ry="([\d.]+)"',- mascot_source,- )- }- for shape in (*EYES, *PUPILS, MOUTH, MOUTH_INNER):- assert tuple(float(v) for v in shape) in drawn, f"{shape} is not in MascotGigi.tsx"---def test_rectangles_match_the_mascot(mascot_source: str) -> None:- """Scanlines, cheek slices and glitch pixels come from the same rects."""- drawn = {- (float(x), float(y), float(w), float(h))- for x, y, w, h in re.findall(- r'<rect x="([\d.]+)" y="([\d.]+)" width="([\d.]+)" height="([\d.]+)"',- mascot_source,- )- }- scanlines = [shape[:4] for shape in SCANLINES]- for shape in (*scanlines, *CHEEKS, *GLITCH_LEFT, *GLITCH_RIGHT):- assert tuple(float(v) for v in shape) in drawn, f"{shape} is not in MascotGigi.tsx"---def test_arms_match_the_mascot(mascot_source: str) -> None:- """Both arms are the quadratics the mascot waves with."""- paths = re.findall(r'className="gigi-arm[^"]*"\s*\n\s*d="([^"]+)"', mascot_source)- assert len(paths) == 2, "MascotGigi.tsx no longer draws two arms"- drawn = set()- for path in paths:- numbers = [float(n) for n in re.findall(r"-?\d+(?:\.\d+)?", path)]- drawn.add(tuple(zip(numbers[0::2], numbers[1::2], strict=True)))- for arm in (ARM_LEFT, ARM_RIGHT):- assert tuple((float(x), float(y)) for x, y in arm) in drawn, f"{arm} is not an arm"---def test_gigi_is_darker_than_every_part_of_his_ground() -> None:- """He must read as a silhouette standing in light, not a shape on a tile.-- Equal values are what made the previous icon look dead: the outline was the- only thing separating him from the background, so he read as a wireframe.- """- assert max(BODY_INK) < min(POOL_OUTER), "the body is not darker than the tile's darkest point"- assert min(POOL_INNER) > max(POOL_OUTER), "the pool of light has no falloff"+def test_frontend_path_matches_the_logo_svg() -> None:+ """The TypeScript copy is exactly what the generator would write."""+ assert LOGO_TS.read_text(encoding="utf-8") == logo_ts_source(logo_path_data())+++def test_logo_fits_its_viewbox() -> None:+ points = [p for polygon in logo_polygons(logo_path_data()) for p in polygon]+ assert points, "the logo path is empty"+ assert all(0.0 <= x <= 256.0 and 0.0 <= y <= 256.0 for x, y in points)+++def test_eyes_are_cut_out_of_the_figure() -> None:+ """Even-odd filling keeps the holes: the figure is not one solid blob."""+ mask = figure_mask(256, 1.0)+ histogram = mask.histogram()+ ink, paper = sum(histogram[200:]), sum(histogram[:56])+ assert 0.25 < ink / (256 * 256) < 0.6, "the figure covers an implausible share of its box"+ assert paper > ink, "the background is missing"@pytest.mark.parametrize("size", [16, 32, 256])@@ -124,3 +58,9 @@ def test_every_size_renders_a_filled_tile(size: int) -> None:assert tile.size == (size, size)assert tile.getpixel((size // 2, size // 2))[3] == 255assert tile.getpixel((0, 0))[3] < 16+++def test_committed_icons_are_the_current_render() -> None:+ """Re-run ``python scripts/make_app_icon.py`` after editing the logo."""+ committed = Image.open(ROOT / "jarvis" / "assets" / "icons" / "jarvis.png").convert("RGBA")+ assert committed.tobytes() == render_tile(256).tobytes()diff --git a/tests/unit/core/test_instance.py b/tests/unit/core/test_instance.pyindex cda41057ee..d56b8d0bfe 100644--- a/tests/unit/core/test_instance.py+++ b/tests/unit/core/test_instance.py@@ -122,7 +122,7 @@ def test_environ_pins_or_clears_the_variable() -> None:def test_dev_icons_ship_in_both_icon_homes() -> None:- # Rendered by scripts/make_dev_icon.py; the taskbar/tray/dock resolve them.+ # Rendered by scripts/make_app_icon.py; the taskbar/tray/dock resolve them.root = Path(inst.__file__).resolve().parents[2]for home in (root / "jarvis" / "assets" / "icons", root / "assets" / "icons"):assert (home / inst.DEV_ICON_FILE_NAME).is_file(), homediff --git a/tests/unit/ui/test_icon_identity.py b/tests/unit/ui/test_icon_identity.pyindex f5e0453012..d822a7df90 100644--- a/tests/unit/ui/test_icon_identity.py+++ b/tests/unit/ui/test_icon_identity.py@@ -132,8 +132,8 @@ def test_bundled_ico_carries_taskbar_sizes() -> None:assert (256, 256) in sizes-def test_bundled_app_icon_png_is_dark_rounded_tile() -> None:- """Desktop PNG keeps the dark rounded tile and transparent corners."""+def test_bundled_app_icon_png_is_paper_rounded_tile() -> None:+ """Desktop PNG is the white rounded tile with transparent corners."""from PIL import Imagefrom jarvis.assets import bundled_app_icon_png@@ -144,8 +144,8 @@ def test_bundled_app_icon_png_is_dark_rounded_tile() -> None:width, height = image.sizeassert width == heightassert image.getpixel((0, 0))[3] < 10- tile = image.getpixel((width // 2, 2))- assert max(tile[:3]) < 80 and tile[3] > 240+ tile = image.getpixel((width // 2, 4))+ assert min(tile[:3]) > 200 and tile[3] > 240def test_bundled_app_icon_png_exists_for_linux() -> None: