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(verse): agent looks become level rewards, with a finished art pass
rubenluetke10-beep0d3495c1296a
diff --git a/art/studies/agent-symbol-companions/exports/accessories.glb b/art/studies/agent-symbol-companions/exports/accessories.glbindex 268af558c0..ebc59c603b 100644Binary files a/art/studies/agent-symbol-companions/exports/accessories.glb and b/art/studies/agent-symbol-companions/exports/accessories.glb differdiff --git a/docs/agent-society/level-system.md b/docs/agent-society/level-system.mdindex 6ac3110fd3..b3cc64f662 100644--- a/docs/agent-society/level-system.md+++ b/docs/agent-society/level-system.md@@ -101,6 +101,29 @@ The person chooses per slot (automatic = the finest unlock, own clothes, orany unlocked piece; stored per browser profile). Agents always wear theirbest unlocks.+### Agent looks++Agents also unlock the wearable looks of their profile symbol+(`LOOK_UNLOCKS` in `rules.py`, ids from `companion/accessories.json`):++| Agent level | Looks |+|---|---|+| 1 | sunglasses, cap, headphones, coder hoodie |+| 2 | lab coat |+| 3 | cigar |+| 4 | suit and tie |+| 6 | top hat |+| 8 | tuxedo |+| 10 | crown |++The snapshot carries them as `looks` and a level-up's `ProgressionAwarded`+names them in `unlocked_looks`. The agent's level-up toast shows the agent+already wearing its new look, the Level Hall's Team page lists every look+with its level and each agent's next one, and the Appearance picker marks a+locked look with the level it opens at. The lock is a reward, never a+penalty: a look an agent already wears stays wearable, and an unreachable+level system locks nothing.+## 5. The level-up moment- **In the world:** a single gold ring runs out across the floor and a softdiff --git a/jarvis/core/events.py b/jarvis/core/events.pyindex 30f84c9448..8e228eeeb4 100644--- a/jarvis/core/events.py+++ b/jarvis/core/events.py@@ -2420,6 +2420,8 @@ class ProgressionAwarded(Event):previous_level: int = 1title: str = ""unlocked: tuple[str, ...] = ()+ #: Agent looks (``LOOK_UNLOCKS``) this level-up opened; agents only.+ unlocked_looks: tuple[str, ...] = ()@dataclass(frozen=True, slots=True)diff --git a/jarvis/progression/rules.py b/jarvis/progression/rules.pyindex a98d5f082a..7aace7e77b 100644--- a/jarvis/progression/rules.py+++ b/jarvis/progression/rules.py@@ -229,6 +229,31 @@ def rewards_between(kind: SubjectKind, before: int, after: int) -> list[Reward]:]+# ------------------------------------------------------------------ agent looks++#: The agent level at which each wearable look unlocks+#: (``companion/accessories.json`` ids). Four are open from the start, so+#: every agent can be dressed at once; the rest arrive as level-up rewards.+#: A look an agent already wears is never taken away, whatever its level.+LOOK_UNLOCKS: Final[dict[str, int]] = {+ "sunglasses": 1,+ "cap": 1,+ "headphones": 1,+ "hoodie": 1,+ "lab_coat": 2,+ "cigar": 3,+ "suit": 4,+ "top_hat": 6,+ "tuxedo": 8,+ "crown": 10,+}+++def looks_between(before: int, after: int) -> list[str]:+ """Agent looks newly unlocked when an agent climbs from ``before`` to ``after``."""+ return [look for look, at in LOOK_UNLOCKS.items() if before < at <= after]++# ------------------------------------------------------------------ titles_RANK_BANDS: Final[tuple[tuple[int, str], ...]] = tuple((level, rank) for level, rank, _ in RANKS)diff --git a/jarvis/progression/service.py b/jarvis/progression/service.pyindex 5ef54a5bcb..367421428d 100644--- a/jarvis/progression/service.py+++ b/jarvis/progression/service.py@@ -28,6 +28,7 @@ from .rules import (RULES_BY_SOURCE,WORLD_ACTIONS,agent_subject,+ looks_between,pet_subject,progress_for_xp,rewards_between,@@ -143,6 +144,9 @@ class ProgressionService:unlocked = tuple(r.reward_id for r in rewards_between(kind, award.level_before, award.level_after))+ looks = (+ tuple(looks_between(award.level_before, award.level_after)) if kind == "agent" else ()+ )try:await self._bus.publish(ProgressionAwarded(@@ -157,6 +161,7 @@ class ProgressionService:previous_level=award.level_before,title=title_for(kind, award.level_after),unlocked=unlocked,+ unlocked_looks=looks,))except Exception: # noqa: BLE001 - the award is stored; the Verse catches up on its next readdiff --git a/jarvis/ui/web/frontend/src/assets/society/companions/accessories.glb b/jarvis/ui/web/frontend/src/assets/society/companions/accessories.glbindex 268af558c0..ebc59c603b 100644Binary files a/jarvis/ui/web/frontend/src/assets/society/companions/accessories.glb and b/jarvis/ui/web/frontend/src/assets/society/companions/accessories.glb differdiff --git a/jarvis/ui/web/frontend/src/components/society/AgentSymbol.tsx b/jarvis/ui/web/frontend/src/components/society/AgentSymbol.tsxindex 2dc2d9f87e..20c0ed9bd4 100644--- a/jarvis/ui/web/frontend/src/components/society/AgentSymbol.tsx+++ b/jarvis/ui/web/frontend/src/components/society/AgentSymbol.tsx@@ -111,7 +111,9 @@ function AccessoryItemShapes({ item, shape, color, regions }: { item: AccessoryI// Paint back to front; body patches keep their authored layering.const ordered = regions ? parts : [...parts].sort((a, b) => partDepth(a) - partDepth(b));return <g data-accessory={item.id} transform={`translate(${x} ${y}) scale(${k})`}>- {ordered.map((part, index) => <AccessoryPartShape key={index} part={part} color={color} />)}+ {ordered.map((part, index) => part.opacity === undefined+ ? <AccessoryPartShape key={index} part={part} color={color} />+ : <g key={index} opacity={part.opacity}><AccessoryPartShape part={part} color={color} /></g>)}</g>;}@@ -130,7 +132,7 @@ export function AgentSymbol({ shape, color, size, eyes = "lines", thinking = fal<g className="agent-symbol-character">{draw(worn.filter(item => item.slot === "back"))}{worn.flatMap(item => item.parts.map((part, index) => {- if (part.t !== "rim") return null;+ if (part.t !== "rim" || part.only === "3d") return null;// A hood frames the head only: clip the grown silhouette at maxY below the neckline.const [, anchorY, anchorK] = ACCESSORY_CATALOG.shapes[shape].anchors[item.slot];const clipId = `${maskId}-rim-${index}`;diff --git a/jarvis/ui/web/frontend/src/components/society/card/AgentProfileDialog.tsx b/jarvis/ui/web/frontend/src/components/society/card/AgentProfileDialog.tsxindex 050ae04db8..dff65a8b84 100644--- a/jarvis/ui/web/frontend/src/components/society/card/AgentProfileDialog.tsx+++ b/jarvis/ui/web/frontend/src/components/society/card/AgentProfileDialog.tsx@@ -140,7 +140,7 @@ export function AgentProfileDialog({ agent, sample, onClose }: {</dl></TabsContent>{!lead && <TabsContent value="look" className="min-h-0 flex-1 overflow-y-auto px-2 pb-4">- <CompanionEditor value={look} onChange={setLook} disabled={sample || save.isPending} preview3d={false} />+ <CompanionEditor value={look} onChange={setLook} disabled={sample || save.isPending} preview3d={false} agentId={agent.agentId} /></TabsContent>}<TabsContent value="memory" className="mt-3 min-h-0 flex-1 overflow-hidden"><AgentMemoryFiles agentId={agent.agentId} sample={sample} /></TabsContent></Tabs>diff --git a/jarvis/ui/web/frontend/src/components/society/companion/AccessoryPicker.tsx b/jarvis/ui/web/frontend/src/components/society/companion/AccessoryPicker.tsxindex deba92ecc4..f26573f08d 100644--- a/jarvis/ui/web/frontend/src/components/society/companion/AccessoryPicker.tsx+++ b/jarvis/ui/web/frontend/src/components/society/companion/AccessoryPicker.tsx@@ -1,30 +1,42 @@import { useState } from "react";-import { Shuffle, X } from "lucide-react";+import { Lock, Shuffle, Sparkles, X } from "lucide-react";import { useT } from "@/i18n";import { AgentSymbol } from "../AgentSymbol";import { ACCESSORY_IDS_BY_SLOT, OFFERED_SLOTS, randomAccessories, type AccessoryChoice, type AccessorySlot } from "./accessories";+import { lookOpen, nextLook, useAgentLooks } from "./agentLooks";import type { CompanionAppearance } from "./appearance";/** Picker order: what people change most comes first; empty slots stay hidden. */const PICKER_SLOTS = (["outfit", "head", "face", "mouth", "neck", "back", "held"] as AccessorySlot[]).filter(slot => OFFERED_SLOTS.includes(slot));-/** One tile per item, each showing this agent already wearing it. */-export function AccessoryPicker({ value, onChange }: { value: CompanionAppearance; onChange: (next: AccessoryChoice) => void }) {+/**+ * One tile per item, each showing this agent already wearing it. Looks open+ * with the agent's level; a locked tile says when it opens, and a look the+ * agent already wears stays selectable whatever its level.+ */+export function AccessoryPicker({ value, onChange, agentId }: { value: CompanionAppearance; onChange: (next: AccessoryChoice) => void; agentId?: string }) {const t = useT();const [slot, setSlot] = useState<AccessorySlot>(PICKER_SLOTS[0] ?? "head");+ const looks = useAgentLooks(agentId);const worn = value.accessories;+ const wearable = (id: string) => lookOpen(looks, id) || Object.values(worn).includes(id);+ const upcoming = nextLook(looks);const choose = (id: string | undefined) => {const next = { ...worn };if (id) next[slot] = id; else delete next[slot];onChange(next);};- const tile = "grid h-[76px] w-[76px] place-items-center rounded-lg border focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring";+ const surprise = () => {+ const rolled = randomAccessories();+ onChange(Object.fromEntries(Object.entries(rolled).filter(([, id]) => id && wearable(id))) as AccessoryChoice);+ };+ const tile = "relative grid h-[76px] w-[76px] place-items-center rounded-lg border focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring";return <div data-testid="accessory-picker"><div className="mb-2 flex items-center justify-between gap-2"><span className="text-sm font-medium">{t("society.companion.accessories")}</span><div className="flex gap-1">- <button type="button" onClick={() => onChange(randomAccessories())} className="inline-flex items-center gap-1.5 rounded-md px-2 py-1 text-xs text-muted-foreground hover:bg-secondary hover:text-foreground">+ <button type="button" onClick={surprise} className="inline-flex items-center gap-1.5 rounded-md px-2 py-1 text-xs text-muted-foreground hover:bg-secondary hover:text-foreground"><Shuffle size={14} />{t("society.companion.randomize")}</button><button type="button" disabled={!Object.keys(worn).length} onClick={() => onChange({})} className="inline-flex items-center gap-1.5 rounded-md px-2 py-1 text-xs text-muted-foreground hover:bg-secondary hover:text-foreground disabled:opacity-40">@@ -32,6 +44,14 @@ export function AccessoryPicker({ value, onChange }: { value: CompanionAppearanc</button></div></div>+ {looks.unlocks && (+ <p className="mb-3 flex items-center gap-1.5 rounded-lg bg-secondary/60 px-3 py-2 text-xs text-muted-foreground" data-testid="look-progress">+ <Sparkles size={14} className="shrink-0 text-primary" aria-hidden />+ {upcoming+ ? t("society.companion.next_look").replace("{0}", String(looks.level)).replace("{1}", t(`society.companion.items.${upcoming.id}`)).replace("{2}", String(upcoming.level))+ : t("society.companion.all_looks_open")}+ </p>+ )}<div className="mb-3 flex flex-wrap gap-1.5" role="tablist" aria-label={t("society.companion.accessories")}>{PICKER_SLOTS.map(s => <button key={s} type="button" role="tab" aria-selected={slot === s} onClick={() => setSlot(s)}className={`relative rounded-full border px-2.5 py-1 text-xs ${slot === s ? "border-transparent bg-primary text-primary-foreground" : "border-border bg-background text-foreground hover:bg-secondary"}`}>@@ -45,11 +65,20 @@ export function AccessoryPicker({ value, onChange }: { value: CompanionAppearanc{t("society.companion.none")}</button>{ACCESSORY_IDS_BY_SLOT[slot].map(id => {- const label = t(`society.companion.items.${id}`);+ const name = t(`society.companion.items.${id}`);const active = worn[slot] === id;- return <button key={id} type="button" aria-pressed={active} aria-label={label} title={label} onClick={() => choose(id)}- className={`${tile} ${active ? "border-foreground bg-secondary" : "border-border hover:bg-secondary"}`}>- <AgentSymbol shape={value.shape} color={value.color} eyes={value.eyes} accessories={{ ...worn, [slot]: id }} size={60} />+ const open = wearable(id);+ const at = looks.unlocks?.[id];+ const label = open ? name : `${name} · ${t("society.companion.unlocks_at").replace("{0}", String(at))}`;+ return <button key={id} type="button" aria-pressed={active} aria-label={label} title={label} disabled={!open} onClick={() => choose(id)}+ data-locked={open ? undefined : "true"}+ className={`${tile} ${active ? "border-foreground bg-secondary" : open ? "border-border hover:bg-secondary" : "cursor-not-allowed border-dashed border-border"}`}>+ <span className={open ? undefined : "opacity-35 grayscale"}>+ <AgentSymbol shape={value.shape} color={value.color} eyes={value.eyes} accessories={{ ...worn, [slot]: id }} size={60} />+ </span>+ {!open && <span className="absolute bottom-1 left-1/2 inline-flex -translate-x-1/2 items-center gap-0.5 rounded-full bg-background/90 px-1.5 py-0.5 text-[10px] font-semibold text-foreground shadow-sm">+ <Lock size={9} aria-hidden />{t("society.level.lv").replace("{0}", String(at))}+ </span>}</button>;})}</div>diff --git a/jarvis/ui/web/frontend/src/components/society/companion/AgentAppearanceDialog.test.tsx b/jarvis/ui/web/frontend/src/components/society/companion/AgentAppearanceDialog.test.tsxindex be42e7e1f6..d04c632740 100644--- a/jarvis/ui/web/frontend/src/components/society/companion/AgentAppearanceDialog.test.tsx+++ b/jarvis/ui/web/frontend/src/components/society/companion/AgentAppearanceDialog.test.tsx@@ -15,18 +15,22 @@ function setup(fail = false, legacy = false) {const figure = legacy ? { contract: 1 as const, archetype: "biped" as const, base: "rogue", parts: {} } : original.figure!;const agent = { ...original, agentId: "appearance-test", figure: { ...figure, companion: { ...defaultCompanion("test"), shape: "circle" as const } } };const close = vi.fn();- const fetcher = vi.fn(async () => new Response(JSON.stringify({ agent }), { status: fail ? 500 : 200 }));+ // The look picker reads agent levels; an unreachable level system leaves every look open.+ const fetcher = vi.fn(async (url: RequestInfo | URL) => String(url).startsWith("/api/progression")+ ? new Response("{}", { status: 404 })+ : new Response(JSON.stringify({ agent }), { status: fail ? 500 : 200 }));+ const saves = () => fetcher.mock.calls.filter(([url]) => String(url).startsWith("/api/society/agents/"));vi.stubGlobal("fetch", fetcher);render(<QueryClientProvider client={new QueryClient({ defaultOptions: { queries: { retry: false }, mutations: { retry: false } } })}><AgentAppearanceDialog agent={agent} sample={false} onClose={close} /></QueryClientProvider>);- return { agent, fetcher, close };+ return { agent, fetcher, close, saves };}it("saves companion edits without overwriting character parts or other agent fields", async () => {- const { agent, fetcher } = setup();+ const { agent, saves } = setup();fireEvent.click(screen.getByRole("button", { name: "society.companion.shapes.cloud" }));fireEvent.click(screen.getByRole("button", { name: "society.card.save" }));- await waitFor(() => expect(fetcher).toHaveBeenCalledOnce());- const [, init] = fetcher.mock.calls[0] as unknown as [string, RequestInit];+ await waitFor(() => expect(saves()).toHaveLength(1));+ const [, init] = saves()[0] as unknown as [string, RequestInit];const body = JSON.parse(init.body as string);expect(Object.keys(body)).toEqual(["avatar"]);expect(body.avatar.companion.shape).toBe("cloud");@@ -63,14 +67,14 @@ it("keeps shape customization without size or following-distance sliders", () =>});it("saves a chosen hairstyle on the recipe without dropping its colours", async () => {- const { agent, fetcher } = setup();+ const { agent, saves } = setup();fireEvent.click(screen.getByRole("tab", { name: "society.companion.character" }));await screen.findByTestId("character-preview");fireEvent.click(screen.getByRole("button", { name: "society.office.hair_beanie" }));expect(screen.getByRole("button", { name: "society.office.hair_beanie" }).getAttribute("aria-pressed")).toBe("true");fireEvent.click(screen.getByRole("button", { name: "society.card.save" }));- await waitFor(() => expect(fetcher).toHaveBeenCalledOnce());- const [, init] = fetcher.mock.calls[0] as unknown as [string, RequestInit];+ await waitFor(() => expect(saves()).toHaveLength(1));+ const [, init] = saves()[0] as unknown as [string, RequestInit];const body = JSON.parse(init.body as string);expect(body.avatar.hairStyle).toBe("beanie");expect(body.avatar.palette).toEqual(agent.figure?.palette);diff --git a/jarvis/ui/web/frontend/src/components/society/companion/AgentAppearanceDialog.tsx b/jarvis/ui/web/frontend/src/components/society/companion/AgentAppearanceDialog.tsxindex 4c71f42134..23a869df25 100644--- a/jarvis/ui/web/frontend/src/components/society/companion/AgentAppearanceDialog.tsx+++ b/jarvis/ui/web/frontend/src/components/society/companion/AgentAppearanceDialog.tsx@@ -70,7 +70,7 @@ export function AgentAppearanceDialog({ agent, sample, onClose }: { agent: Socie<Dialog.Content data-testid="agent-appearance-dialog" onCloseAutoFocus={e => { e.preventDefault(); opener.current?.focus(); }} className="fixed left-1/2 top-1/2 z-50 flex max-h-[90dvh] w-[min(640px,calc(100vw-24px))] -translate-x-1/2 -translate-y-1/2 flex-col overflow-hidden rounded-xl border border-border bg-popover text-foreground shadow-float"><header className="flex items-center gap-3 border-b border-border p-4"><AgentSwatch agent={{ ...agent, figure: recipe }} size={48} /><div className="flex-1"><Dialog.Title className="font-semibold">{displayName}</Dialog.Title><Dialog.Description className="text-sm text-muted-foreground">{t("society.companion.appearance")}</Dialog.Description></div><button aria-label={t("society.card.close")} onClick={close} className="rounded p-2 hover:bg-secondary"><X size={18} /></button></header><div className="flex shrink-0 gap-2 border-b border-border p-3" role="tablist" aria-label={t("society.companion.appearance")}>{(["character", "companion"] as const).map(value => <button key={value} type="button" role="tab" aria-selected={tab === value} onClick={() => setTab(value)} className={`rounded-md px-3 py-2 text-sm ${tab === value ? "bg-secondary text-foreground" : "text-muted-foreground"}`}>{t(`society.companion.${value}`)}</button>)}</div>- <div className="min-h-0 overflow-y-auto">{tab === "character" ? <CharacterEditor value={recipe} onChange={setRecipe} disabled={saving || sample} /> : <CompanionEditor value={resolveCompanion(agent.agentId, recipe.companion)} onChange={companion => setRecipe(r => ({ ...r, companion }))} disabled={saving || sample} lead={agent.tier === "lead"} />}</div>+ <div className="min-h-0 overflow-y-auto">{tab === "character" ? <CharacterEditor value={recipe} onChange={setRecipe} disabled={saving || sample} /> : <CompanionEditor value={resolveCompanion(agent.agentId, recipe.companion)} onChange={companion => setRecipe(r => ({ ...r, companion }))} disabled={saving || sample} lead={agent.tier === "lead"} agentId={agent.agentId} />}</div><footer className="flex shrink-0 flex-wrap justify-end gap-2 border-t border-border p-4">{error && <p role="alert" className="w-full text-sm text-destructive">{t("society.profile_card.save_error")}</p>}{discard ? <><span className="mr-auto text-sm" role="alert">{t("society.profile_card.unsaved")}</span><Button variant="ghost" onClick={() => setDiscard(false)}>{t("society.profile_card.keep_editing")}</Button><Button variant="secondary" onClick={onClose}>{t("society.profile_card.discard")}</Button></> : <><Button variant="ghost" onClick={close} disabled={saving}>{t("society.card.close")}</Button><Button onClick={() => void save()} disabled={!dirty || saving || sample}>{t(saving ? "society.card.saving" : "society.card.save")}</Button></>}diff --git a/jarvis/ui/web/frontend/src/components/society/companion/AgentFollower.tsx b/jarvis/ui/web/frontend/src/components/society/companion/AgentFollower.tsxindex ab696df373..772ede7d06 100644--- a/jarvis/ui/web/frontend/src/components/society/companion/AgentFollower.tsx+++ b/jarvis/ui/web/frontend/src/components/society/companion/AgentFollower.tsx@@ -55,6 +55,8 @@ export function CompanionModel({ appearance, lead = false }: { appearance: Compa/** Worn items from the shared catalog, placed on the 1 m symbol master. */function CompanionAccessories({ appearance }: { appearance: CompanionAppearance }) {const { scene } = useGLTF(accessoryModels);+ // Polished metal reads black without something to reflect: soften it then.+ const reflective = useThree(state => !!state.scene.environment);const instance = useMemo(() => {const group = new Group();const materials: Material[] = [];@@ -82,11 +84,12 @@ function CompanionAccessories({ appearance }: { appearance: CompanionAppearanceconst own = source.clone();const token = source.name.split(":")[1] ?? "";if (token && !token.startsWith("#")) own.color.set(resolveFill(token, appearance.color));+ if (!reflective && own.metalness > 0.5) { own.metalness = 0.35; own.roughness = 0.42; }mesh.material = own;materials.push(own);});return { group, materials };- }, [scene, appearance.shape, appearance.color, appearance.accessories]);+ }, [scene, reflective, appearance.shape, appearance.color, appearance.accessories]);useEffect(() => () => { instance.materials.forEach(material => material.dispose()); }, [instance]);return <primitive object={instance.group} dispose={null} />;}diff --git a/jarvis/ui/web/frontend/src/components/society/companion/CompanionEditor.tsx b/jarvis/ui/web/frontend/src/components/society/companion/CompanionEditor.tsxindex aa91845f72..f6e427631a 100644--- a/jarvis/ui/web/frontend/src/components/society/companion/CompanionEditor.tsx+++ b/jarvis/ui/web/frontend/src/components/society/companion/CompanionEditor.tsx@@ -7,8 +7,10 @@ import gigiMark from "@/assets/gigi-companion-avatar.png";import { lazy, Suspense } from "react";const CompanionPreview = lazy(() => import("./CompanionPreview").then(m => ({ default: m.CompanionPreview })));-export function CompanionEditor({ value, onChange, disabled = false, lead = false, preview3d = true }: {+export function CompanionEditor({ value, onChange, disabled = false, lead = false, preview3d = true, agentId }: {value: CompanionAppearance; onChange: (next: CompanionAppearance) => void; disabled?: boolean; lead?: boolean;+ /** The agent whose level opens its looks; without one nothing is locked. */+ agentId?: string;/** The 3D turntable needs its own WebGL context; dialogs outside the map skip it. */preview3d?: boolean;}) {@@ -42,7 +44,7 @@ export function CompanionEditor({ value, onChange, disabled = false, lead = fals</button>)}</div></div>- <AccessoryPicker value={value} onChange={accessories => update({ accessories })} />+ <AccessoryPicker value={value} onChange={accessories => update({ accessories })} agentId={agentId} /></>}<label className="flex items-center justify-between gap-3 text-sm">{t("society.companion.visible")}<Switch checked={value.enabled} onCheckedChange={enabled => update({ enabled })} aria-label={t("society.companion.visible")} />diff --git a/jarvis/ui/web/frontend/src/components/society/companion/accessories.json b/jarvis/ui/web/frontend/src/components/society/companion/accessories.jsonindex bd1b4fe96e..fce67b380e 100644--- a/jarvis/ui/web/frontend/src/components/society/companion/accessories.json+++ b/jarvis/ui/web/frontend/src/components/society/companion/accessories.json@@ -1 +1 @@-{"schema":2,"slots":["back","outfit","neck","mouth","face","head","held"],"slotDepth":{"back":-1,"outfit":1,"neck":1,"mouth":1,"face":1,"head":0,"held":0.4},"slotFlatShift":{"outfit":1.0,"neck":1.0},"frontDepthM":0.25,"shapes":{"circle":{"top":3.8,"bottom":36.2,"eyeY":17.2,"anchors":{"head":[20,5.2,1],"neck":[20,22.4,1.0],"held":[33.5,29,1.35],"back":[20,20,1],"outfit":[20,22.4,1.0],"face":[20,17.2,1],"mouth":[20,24.0,1.15]}},"squircle":{"top":3.8,"bottom":36.2,"eyeY":17.2,"anchors":{"head":[20,4.4,1],"neck":[20,22.4,1.0],"held":[34,29,1.35],"back":[20,20,1],"outfit":[20,22.4,1.0],"face":[20,17.2,1],"mouth":[20,24.0,1.15]}},"pill":{"top":8.48,"bottom":31.52,"eyeY":17.2,"anchors":{"head":[20,9.6,0.95],"neck":[20,22.2,0.85],"held":[35.5,26,1.282],"back":[20,20,0.95],"outfit":[20,22.2,0.85],"face":[20,17.2,1],"mouth":[20,24.0,1.15]}},"triangle":{"top":5.5,"bottom":33.5,"eyeY":23,"anchors":{"head":[20,8.6,0.72],"neck":[20,28.0,0.8],"held":[32.5,31,1.215],"back":[20,22,0.9],"outfit":[20,28.0,0.8],"face":[20,23,0.9],"mouth":[20,29.12,1.035]}},"hexagon":{"top":3.5,"bottom":36.5,"eyeY":17.2,"anchors":{"head":[20,5.8,0.9],"neck":[20,22.4,0.95],"held":[33,29,1.282],"back":[20,20,0.95],"outfit":[20,22.4,0.95],"face":[20,17.2,1],"mouth":[20,24.0,1.15]}},"cloud":{"top":5.028,"bottom":32,"eyeY":23,"anchors":{"head":[19.2,6.6,0.95],"neck":[20,27.6,0.7],"held":[37,27.5,1.215],"back":[21,20,1],"outfit":[20,27.6,0.7],"face":[20,23,0.9],"mouth":[20,29.12,1.035]}},"drop":{"top":3,"bottom":40.5,"eyeY":25,"anchors":{"head":[20,9.6,0.72],"neck":[20,30.0,0.95],"held":[32.5,34,1.282],"back":[20,25,0.95],"outfit":[20,30.0,0.95],"face":[20,25,1],"mouth":[20,31.8,1.15]}}},"items":[{"id":"suit","slot":"outfit","scale":1,"bounds":[-1.55,-0.4,1.55,2.1],"regions":true,"parts":[{"t":"region","pts":[[-20,7.0],[-15,3.2],[-10,1.0],[-5,-0.2],[5,-0.2],[10,1.0],[15,3.2],[20,7.0],[60,60.0],[-60,60.0]],"mode":"wrap","fill":"#2c3a55"},{"t":"region","pts":[[-4.6,-0.4],[4.6,-0.4],[0,8.8]],"mode":"front","fill":"#f4f6f8"},{"t":"region","pts":[[-4.4,-0.4],[-0.9,0.2],[-2.6,2.8]],"mode":"front","fill":"#dfe4ea"},{"t":"region","pts":[[4.4,-0.4],[2.6,2.8],[0.9,0.2]],"mode":"front","fill":"#dfe4ea"},{"t":"region","pts":[[-1.0,2.0],[1.0,2.0],[2.1,8.2],[0,10.4],[-2.1,8.2]],"mode":"front","fill":"#b3243b"},{"t":"region","pts":[[-1.1,3.9],[1.2,3.1],[1.32,3.75],[-1.2,4.55]],"mode":"front","fill":"#86182b"},{"t":"region","pts":[[-1.6,6.7],[1.75,5.6],[1.85,6.3],[-1.65,7.4]],"mode":"front","fill":"#86182b"},{"t":"poly","pts":[[-1.55,-0.4],[1.55,-0.4],[1.0,2.1],[-1.0,2.1]],"z":0.9,"d":0.9,"smooth":false,"fill":"#b3243b"},{"t":"region","pts":[[-4.6,-0.4],[0,8.8],[-1.3,10.4],[-6.9,3.4],[-8.2,0.2]],"mode":"front","fill":"#212b42"},{"t":"region","pts":[[8.2,0.2],[6.9,3.4],[1.3,10.4],[0,8.8],[4.6,-0.4]],"mode":"front","fill":"#212b42"},{"t":"region","pts":[[0.739,12.006],[0.306,12.439],[-0.306,12.439],[-0.739,12.006],[-0.739,11.394],[-0.306,10.961],[0.306,10.961],[0.739,11.394]],"mode":"front","fill":"#18202f"},{"t":"region","pts":[[0.739,14.706],[0.306,15.139],[-0.306,15.139],[-0.739,14.706],[-0.739,14.094],[-0.306,13.661],[0.306,13.661],[0.739,14.094]],"mode":"front","fill":"#18202f"},{"t":"region","pts":[[5.0,4.0],[8.8,4.0],[8.8,4.5],[5.0,4.5]],"mode":"front","fill":"#18202f"},{"t":"region","pts":[[5.4,4.0],[6.9,4.0],[6.0,2.3]],"mode":"front","fill":"#f4f6f8"},{"t":"region","pts":[[6.4,4.0],[8.2,4.0],[7.6,2.5]],"mode":"front","fill":"#f4f6f8"}]},{"id":"tuxedo","slot":"outfit","scale":1,"bounds":[-4.1,-1.5,4.1,2.7],"regions":true,"parts":[{"t":"region","pts":[[-20,7.0],[-15,3.2],[-10,1.0],[-5,-0.2],[5,-0.2],[10,1.0],[15,3.2],[20,7.0],[60,60.0],[-60,60.0]],"mode":"wrap","fill":"#22232b"},{"t":"region","pts":[[-4.4,-0.4],[4.4,-0.4],[0,9.8]],"mode":"front","fill":"#f4f6f8"},{"t":"region","pts":[[-1.85,3.0],[-1.5,3.0],[-1.5,7.6],[-1.85,7.6]],"mode":"front","fill":"#dfe4ea"},{"t":"region","pts":[[1.5,3.0],[1.85,3.0],[1.85,7.6],[1.5,7.6]],"mode":"front","fill":"#dfe4ea"},{"t":"region","pts":[[0.462,3.791],[0.191,4.062],[-0.191,4.062],[-0.462,3.791],[-0.462,3.409],[-0.191,3.138],[0.191,3.138],[0.462,3.409]],"mode":"front","fill":"#101014"},{"t":"region","pts":[[0.462,5.991],[0.191,6.262],[-0.191,6.262],[-0.462,5.991],[-0.462,5.609],[-0.191,5.338],[0.191,5.338],[0.462,5.609]],"mode":"front","fill":"#101014"},{"t":"region","pts":[[0.416,8.172],[0.172,8.416],[-0.172,8.416],[-0.416,8.172],[-0.416,7.828],[-0.172,7.584],[0.172,7.584],[0.416,7.828]],"mode":"front","fill":"#101014"},{"t":"region","pts":[[-4.6,-0.4],[0,9.8],[-1.3,11.4],[-6.9,3.4],[-8.2,0.2]],"mode":"front","fill":"#3a3c48"},{"t":"region","pts":[[8.2,0.2],[6.9,3.4],[1.3,11.4],[0,9.8],[4.6,-0.4]],"mode":"front","fill":"#3a3c48"},{"t":"poly","pts":[[0,-0.1],[3.6,-1.5],[4.1,0.9],[3.6,2.7],[0,1.3],[-3.6,2.7],[-4.1,0.9],[-3.6,-1.5]],"z":0.9,"d":1.0,"smooth":false,"fill":"#22232b"},{"t":"sphere","c":[0,0.6,1.4],"r":[1.1,1.3,0.7],"fill":"#26272f"},{"t":"region","pts":[[5.0,4.0],[8.8,4.0],[8.8,4.5],[5.0,4.5]],"mode":"front","fill":"#0d0d10"},{"t":"region","pts":[[5.4,4.0],[6.9,4.0],[6.0,2.3]],"mode":"front","fill":"#f4f6f8"},{"t":"region","pts":[[6.4,4.0],[8.2,4.0],[7.6,2.5]],"mode":"front","fill":"#f4f6f8"}]},{"id":"lab_coat","slot":"outfit","scale":1,"bounds":[-1.4,-0.4,1.4,1.9],"regions":true,"parts":[{"t":"region","pts":[[-20,7.0],[-15,3.2],[-10,1.0],[-5,-0.2],[5,-0.2],[10,1.0],[15,3.2],[20,7.0],[60,60.0],[-60,60.0]],"mode":"wrap","fill":"#f2f4f7"},{"t":"region","pts":[[-4.0,-0.4],[4.0,-0.4],[0,7.6]],"mode":"front","fill":"#a9c8ef"},{"t":"region","pts":[[-0.9,1.8],[0.9,1.8],[1.8,6.6],[0,8.4],[-1.8,6.6]],"mode":"front","fill":"#0f766e"},{"t":"poly","pts":[[-1.4,-0.4],[1.4,-0.4],[0.9,1.9],[-0.9,1.9]],"z":0.9,"d":0.8,"smooth":false,"fill":"#0f766e"},{"t":"region","pts":[[-4.6,-0.4],[0,7.6],[-1.3,9.2],[-7.5,3.4],[-8.8,0.2]],"mode":"front","fill":"#dde2e9"},{"t":"region","pts":[[8.8,0.2],[7.5,3.4],[1.3,9.2],[0,7.6],[4.6,-0.4]],"mode":"front","fill":"#dde2e9"},{"t":"region","pts":[[-0.2,9.2],[0.25,9.2],[0.25,40],[-0.2,40]],"mode":"front","fill":"#dde2e9"},{"t":"region","pts":[[5.6,1.8],[6.3,1.8],[6.3,4.6],[5.6,4.6]],"mode":"front","fill":"#2f6fe0"},{"t":"region","pts":[[6.9,2.3],[7.6,2.3],[7.6,4.6],[6.9,4.6]],"mode":"front","fill":"#e0483e"},{"t":"region","pts":[[4.6,3.8],[8.8,3.8],[8.8,7.6],[4.6,7.6]],"mode":"front","fill":"#dde2e9"},{"t":"region","pts":[[-8.8,4.4],[-5.0,4.4],[-5.0,8.8],[-8.8,8.8]],"mode":"front","fill":"#ffffff"},{"t":"region","pts":[[-8.8,4.4],[-5.0,4.4],[-5.0,5.5],[-8.8,5.5]],"mode":"front","fill":"#0f766e"},{"t":"region","pts":[[-8.2,6.4],[-5.6,6.4],[-5.6,6.8],[-8.2,6.8]],"mode":"front","fill":"#c5ccd6"},{"t":"region","pts":[[-8.2,7.4],[-6.4,7.4],[-6.4,7.8],[-8.2,7.8]],"mode":"front","fill":"#c5ccd6"}]},{"id":"hoodie","slot":"outfit","scale":1,"bounds":[-2.55,1.85,8.47,7.7],"regions":true,"parts":[{"t":"rim","w":1.9,"fill":"#4a5160","maxY":4.0},{"t":"region","pts":[[-20,7.8],[-15,4.0],[-10,1.8],[-5,0.6],[5,0.6],[10,1.8],[15,4.0],[20,7.8],[60,60.8],[-60,60.8]],"mode":"wrap","fill":"#4a5160"},{"t":"region","pts":[[-5.2,0.8],[5.2,0.8],[4.0,2.7],[0,3.3],[-4.0,2.7]],"mode":"front","fill":"#3a404c"},{"t":"region","pts":[[-6.4,7.6],[6.4,7.6],[7.8,13.0],[-7.8,13.0]],"mode":"front","fill":"#3a404c"},{"t":"tube","pts":[[2.2,2.2,0.7],[1.9,6.6,0.7]],"w":0.7,"smooth":false,"fill":"#e5e7eb"},{"t":"sphere","c":[1.9,7.0,0.8],"r":[0.45,0.7,0.45],"fill":"#9ca3af"},{"t":"tube","pts":[[-2.2,2.2,0.7],[-1.9,6.6,0.7]],"w":0.7,"smooth":false,"fill":"#e5e7eb"},{"t":"sphere","c":[-1.9,7.0,0.8],"r":[0.45,0.7,0.45],"fill":"#9ca3af"},{"t":"tube","pts":[[5.2,2.6,0.5],[4.2,3.5,0.5],[5.2,4.4,0.5]],"w":0.55,"smooth":false,"fill":"#34d399"},{"t":"tube","pts":[[6.6,2.4,0.5],[5.8,4.6,0.5]],"w":0.55,"smooth":false,"fill":"#34d399"},{"t":"tube","pts":[[7.2,2.6,0.5],[8.2,3.5,0.5],[7.2,4.4,0.5]],"w":0.55,"smooth":false,"fill":"#34d399"}]},{"id":"crown","slot":"head","scale":1.15,"bounds":[-10.3,-12.23,10.3,0.7],"regions":false,"parts":[{"t":"dome","c":[0,-1.6,0],"r":[7.2,6.0,7.2],"fill":"#a61e36"},{"t":"cyl","c":[0,-1.8,0],"r":[8.0,8.5],"h":4.4,"dz":1.0,"fill":"#f2c14e"},{"t":"cyl","c":[0,0.25,0],"r":[8.15,8.15],"h":0.9,"dz":1.0,"fill":"#c8922a"},{"t":"cyl","c":[0,-3.75,0],"r":[8.55,8.55],"h":0.7,"dz":1.0,"fill":"#c8922a"},{"t":"cyl","c":[4.82,-6.5,6.634],"r":[2.5,0],"h":5.6,"dz":1.0,"fill":"#f2c14e"},{"t":"sphere","c":[4.82,-9.7,6.634],"r":[1.05,1.05,1.05],"fill":"#ffe08a"},{"t":"cyl","c":[7.799,-6.5,-2.534],"r":[2.5,0],"h":5.6,"dz":1.0,"fill":"#f2c14e"},{"t":"sphere","c":[7.799,-9.7,-2.534],"r":[1.05,1.05,1.05],"fill":"#ffe08a"},{"t":"cyl","c":[0.0,-6.5,-8.2],"r":[2.5,0],"h":5.6,"dz":1.0,"fill":"#f2c14e"},{"t":"sphere","c":[0.0,-9.7,-8.2],"r":[1.05,1.05,1.05],"fill":"#ffe08a"},{"t":"cyl","c":[-7.799,-6.5,-2.534],"r":[2.5,0],"h":5.6,"dz":1.0,"fill":"#f2c14e"},{"t":"sphere","c":[-7.799,-9.7,-2.534],"r":[1.05,1.05,1.05],"fill":"#ffe08a"},{"t":"cyl","c":[-4.82,-6.5,6.634],"r":[2.5,0],"h":5.6,"dz":1.0,"fill":"#f2c14e"},{"t":"sphere","c":[-4.82,-9.7,6.634],"r":[1.05,1.05,1.05],"fill":"#ffe08a"},{"t":"sphere","c":[0,-1.9,8.6],"r":[1.7,1.7,0.8],"fill":"#d7263d"},{"t":"sphere","c":[-6.317,-1.9,5.688],"r":[1.1,1.1,0.6],"fill":"#2f6fe0"},{"t":"sphere","c":[6.317,-1.9,5.688],"r":[1.1,1.1,0.6],"fill":"#2f6fe0"},{"t":"sphere","c":[0,-7.8,0],"r":[1.25,1.25,1.25],"fill":"#f2c14e"},{"t":"tube","pts":[[0,-8.8,0],[0,-11.8,0]],"w":0.85,"smooth":false,"fill":"#f2c14e"},{"t":"tube","pts":[[-1.1,-10.7,0],[1.1,-10.7,0]],"w":0.85,"smooth":false,"fill":"#f2c14e"},{"t":"box","c":[-3.2,-2.9,8.9],"s":[4.2,0.6,0.1],"round":0.3,"fill":"#ffe39b","only":"2d"}]},{"id":"top_hat","slot":"head","scale":1.12,"bounds":[-13.82,-13.84,13.63,2.37],"regions":false,"parts":[{"t":"cyl","c":[-0.052,0.303,0],"r":[12.4,12.4],"h":1.4,"dz":1.0,"fill":"#1e1f26","rot":-6.0},{"t":"sphere","c":[-12.227,1.18,0],"r":[1.6,1.2,4.2],"fill":"#1e1f26","only":"2d","rot":-6.0},{"t":"sphere","c":[12.039,-1.37,0],"r":[1.6,1.2,4.2],"fill":"#1e1f26","only":"2d","rot":-6.0},{"t":"cyl","c":[-0.794,-6.758,0],"r":[7.4,7.8],"h":12.6,"dz":1.0,"fill":"#272832","rot":-6.0},{"t":"cyl","c":[-0.261,-1.686,0],"r":[7.5,7.55],"h":2.8,"dz":1.0,"fill":"#b3243b","rot":-6.0},{"t":"box","c":[-5.275,-7.293,7.9],"s":[1.3,9.6,0.1],"round":0.6,"fill":"#3b3d4a","only":"2d","rot":-6.0}]},{"id":"cap","slot":"head","scale":1.15,"bounds":[-11.6,-7.8,11.6,4.3],"regions":false,"parts":[{"t":"dome","c":[0,1.8,0],"r":[9.4,8.4,9.4],"fill":"#2f6fe0"},{"t":"tube","pts":[[0,-6.2,0],[0,1.4,0]],"w":0.45,"smooth":false,"fill":"#2556b8","only":"2d"},{"t":"tube","pts":[[-4.8,-5.6,0],[-6.2,1.6,0]],"w":0.45,"smooth":true,"fill":"#2556b8","only":"2d"},{"t":"tube","pts":[[4.8,-5.6,0],[6.2,1.6,0]],"w":0.45,"smooth":true,"fill":"#2556b8","only":"2d"},{"t":"sphere","c":[0,-6.6,0],"r":[1.2,1.2,1.2],"fill":"#2556b8"},{"t":"poly","pts":[[0.0,-3.4],[0.529,-2.128],[1.902,-2.018],[0.856,-1.122],[1.176,0.218],[0.0,-0.5],[-1.176,0.218],[-0.856,-1.122],[-1.902,-2.018],[-0.529,-2.128]],"z":8.7,"d":0.4,"smooth":false,"fill":"#ffffff"},{"t":"sphere","c":[0,2.4,7.6],"r":[11.6,1.9,7.4],"fill":"#1f4aa0"},{"t":"box","c":[0,1.6,8.9],"s":[14,0.5,0.1],"round":0.25,"fill":"#3a6fd0","only":"2d"}]},{"id":"headphones","slot":"head","scale":1,"bounds":[-15.7,-9.8,15.7,12.6],"regions":false,"parts":[{"t":"tube","pts":[[-12.8,5.6,0],[-12.0,-1.8,0],[-6.8,-7.2,0],[0,-8.6,0],[6.8,-7.2,0],[12.0,-1.8,0],[12.8,5.6,0]],"w":2.4,"smooth":true,"fill":"#2b2d34"},{"t":"tube","pts":[[-5.4,-6.4,0.9],[0,-7.6,0.9],[5.4,-6.4,0.9]],"w":1.6,"smooth":true,"fill":"#454956"},{"t":"sphere","c":[11.4,7.4,0],"r":[1.4,4.6,4.2],"fill":"#f97316"},{"t":"sphere","c":[13.1,7.4,0],"r":[2.6,5.2,4.8],"fill":"#2b2d34"},{"t":"box","c":[14.0,7.4,0],"s":[1.2,4.4,3.2],"round":0.5,"fill":"#3d404a"},{"t":"sphere","c":[-11.4,7.4,0],"r":[1.4,4.6,4.2],"fill":"#f97316"},{"t":"sphere","c":[-13.1,7.4,0],"r":[2.6,5.2,4.8],"fill":"#2b2d34"},{"t":"box","c":[-14.0,7.4,0],"s":[1.2,4.4,3.2],"round":0.5,"fill":"#3d404a"}]},{"id":"sunglasses","slot":"face","scale":1,"bounds":[-11.05,-3.35,11.05,2.9],"regions":false,"parts":[{"t":"poly","pts":[[-8.6,-2.7],[-1.4,-2.7],[-1.6,1.2],[-3.0,2.9],[-7.0,2.9],[-8.4,1.2]],"z":0.9,"d":1.0,"smooth":false,"fill":"#14151a"},{"t":"poly","pts":[[8.4,1.2],[7.0,2.9],[3.0,2.9],[1.6,1.2],[1.4,-2.7],[8.6,-2.7]],"z":0.9,"d":1.0,"smooth":false,"fill":"#14151a"},{"t":"tube","pts":[[-9.2,-2.7,1.2],[9.2,-2.7,1.2]],"w":1.3,"smooth":false,"fill":"#14151a"},{"t":"tube","pts":[[-1.5,-1.4,1.1],[0,-2.0,1.1],[1.5,-1.4,1.1]],"w":0.9,"smooth":true,"fill":"#14151a"},{"t":"tube","pts":[[-9.0,-2.4,0.8],[-10.6,-2.2,0]],"w":0.9,"smooth":false,"fill":"#14151a"},{"t":"tube","pts":[[9.0,-2.4,0.8],[10.6,-2.2,0]],"w":0.9,"smooth":false,"fill":"#14151a"},{"t":"tube","pts":[[-7.0,-1.4,1.6],[-5.6,0.9,1.6]],"w":0.7,"smooth":false,"fill":"#5b5f6e","only":"2d"},{"t":"tube","pts":[[-5.4,-1.6,1.6],[-4.8,-0.6,1.6]],"w":0.5,"smooth":false,"fill":"#5b5f6e","only":"2d"},{"t":"tube","pts":[[2.2,-1.4,1.6],[3.6,0.9,1.6]],"w":0.7,"smooth":false,"fill":"#5b5f6e","only":"2d"}]},{"id":"cigar","slot":"mouth","scale":1,"bounds":[-1.02,-8.0,14.88,3.88],"regions":false,"parts":[{"t":"tube","pts":[[0.4,0,0.8],[9.6,2.2,1.4]],"w":2.8,"smooth":false,"fill":"#7b4a28"},{"t":"tube","pts":[[0.4,0,0.82],[1.5,0.27,0.86]],"w":2.85,"smooth":false,"fill":"#5a3519"},{"t":"tube","pts":[[2.6,0.52,0.9],[3.8,0.82,0.95]],"w":3.0,"smooth":false,"fill":"#f2c14e"},{"t":"tube","pts":[[3.0,0.62,0.92],[3.4,0.72,0.94]],"w":3.05,"smooth":false,"fill":"#b3243b"},{"t":"tube","pts":[[9.6,2.2,1.4],[10.9,2.5,1.45]],"w":2.75,"smooth":false,"fill":"#a3a3a3"},{"t":"tube","pts":[[10.9,2.5,1.45],[11.3,2.6,1.47]],"w":2.55,"smooth":false,"fill":"#ff6a1a","glow":true},{"t":"tube","pts":[[11.8,1.3,1.5],[13.4,-1.4,1.6],[11.9,-4.4,1.7],[13.8,-7.6,1.8]],"w":0.8,"smooth":true,"fill":"#d6d8de"},{"t":"tube","pts":[[12.8,-0.6,1.5],[14.6,-2.4,1.6],[14.0,-4.8,1.7]],"w":0.55,"smooth":true,"fill":"#d6d8de"}]}]}+{"schema":2,"slots":["back","outfit","neck","mouth","face","head","held"],"slotDepth":{"back":-1,"outfit":1,"neck":1,"mouth":1,"face":1,"head":0,"held":0.4},"slotFlatShift":{"outfit":1.0,"neck":1.0},"frontDepthM":0.25,"shapes":{"circle":{"top":3.8,"bottom":36.2,"eyeY":17.2,"anchors":{"head":[20,5.2,1],"neck":[20,22.4,1.0],"held":[33.5,29,1.35],"back":[20,20,1],"outfit":[20,22.4,1.0],"face":[20,17.2,1],"mouth":[20,24.0,1.15]}},"squircle":{"top":3.8,"bottom":36.2,"eyeY":17.2,"anchors":{"head":[20,4.4,1],"neck":[20,22.4,1.0],"held":[34,29,1.35],"back":[20,20,1],"outfit":[20,22.4,1.0],"face":[20,17.2,1],"mouth":[20,24.0,1.15]}},"pill":{"top":8.48,"bottom":31.52,"eyeY":17.2,"anchors":{"head":[20,9.6,0.95],"neck":[20,22.2,0.85],"held":[35.5,26,1.282],"back":[20,20,0.95],"outfit":[20,22.2,0.85],"face":[20,17.2,1],"mouth":[20,24.0,1.15]}},"triangle":{"top":5.5,"bottom":33.5,"eyeY":23,"anchors":{"head":[20,8.6,0.72],"neck":[20,28.0,0.8],"held":[32.5,31,1.215],"back":[20,22,0.9],"outfit":[20,28.0,0.8],"face":[20,23,0.9],"mouth":[20,29.12,1.035]}},"hexagon":{"top":3.5,"bottom":36.5,"eyeY":17.2,"anchors":{"head":[20,5.8,0.9],"neck":[20,22.4,0.95],"held":[33,29,1.282],"back":[20,20,0.95],"outfit":[20,22.4,0.95],"face":[20,17.2,1],"mouth":[20,24.0,1.15]}},"cloud":{"top":5.028,"bottom":32,"eyeY":23,"anchors":{"head":[19.2,6.6,0.95],"neck":[20,27.6,0.7],"held":[37,27.5,1.215],"back":[21,20,1],"outfit":[20,27.6,0.7],"face":[20,23,0.9],"mouth":[20,29.12,1.035]}},"drop":{"top":3,"bottom":40.5,"eyeY":25,"anchors":{"head":[20,9.6,0.72],"neck":[20,30.0,0.95],"held":[32.5,34,1.282],"back":[20,25,0.95],"outfit":[20,30.0,0.95],"face":[20,25,1],"mouth":[20,31.8,1.15]}}},"items":[{"id":"suit","slot":"outfit","scale":1,"bounds":[-8.42,-0.4,8.42,10.62],"regions":true,"parts":[{"t":"region","pts":[[-20,7.0],[-15,3.2],[-10,1.0],[-5,-0.2],[5,-0.2],[10,1.0],[15,3.2],[20,7.0],[60,60.0],[-60,60.0]],"mode":"wrap","fill":"#2c3a55"},{"t":"region","pts":[[8.0,1.2],[60,1.2],[60,60],[11.5,60]],"mode":"front","fill":"#05070d","opacity":0.16,"only":"2d"},{"t":"region","pts":[[-60,0.0],[-9.5,0.8],[-12.5,60],[-60,60]],"mode":"front","fill":"#ffffff","opacity":0.05,"only":"2d"},{"t":"region","pts":[[-4.6,-0.4],[4.6,-0.4],[0,8.8]],"mode":"front","fill":"#f4f6f8"},{"t":"region","pts":[[-4.4,-0.4],[-0.9,0.2],[-2.6,2.8]],"mode":"front","fill":"#dfe4ea"},{"t":"region","pts":[[4.4,-0.4],[2.6,2.8],[0.9,0.2]],"mode":"front","fill":"#dfe4ea"},{"t":"region","pts":[[-4.6,-0.4],[4.6,-0.4],[3.6,1.3],[-3.6,1.3]],"mode":"front","fill":"#05070d","opacity":0.2,"only":"2d"},{"t":"region","pts":[[-1.0,2.0],[1.0,2.0],[2.1,8.2],[0,10.4],[-2.1,8.2]],"mode":"front","fill":"#b3243b"},{"t":"region","pts":[[-1.1,3.9],[1.2,3.1],[1.32,3.75],[-1.2,4.55]],"mode":"front","fill":"#86182b"},{"t":"region","pts":[[-1.6,6.7],[1.75,5.6],[1.85,6.3],[-1.65,7.4]],"mode":"front","fill":"#86182b"},{"t":"poly","pts":[[-1.55,-0.4],[1.55,-0.4],[1.0,2.1],[-1.0,2.1]],"z":0.9,"d":0.9,"smooth":false,"fill":"#b3243b"},{"t":"region","pts":[[-4.6,-0.4],[0,8.8],[-1.3,10.4],[-6.9,3.4],[-8.2,0.2]],"mode":"front","fill":"#212b42"},{"t":"region","pts":[[8.2,0.2],[6.9,3.4],[1.3,10.4],[0,8.8],[4.6,-0.4]],"mode":"front","fill":"#212b42"},{"t":"tube","pts":[[-8.2,0.2,0.3],[-6.9,3.4,0.3],[-1.3,10.4,0.3]],"w":0.45,"smooth":false,"fill":"#ffffff","opacity":0.16,"only":"2d"},{"t":"tube","pts":[[8.2,0.2,0.3],[6.9,3.4,0.3],[1.3,10.4,0.3]],"w":0.45,"smooth":false,"fill":"#ffffff","opacity":0.1,"only":"2d"},{"t":"region","pts":[[0.739,12.006],[0.306,12.439],[-0.306,12.439],[-0.739,12.006],[-0.739,11.394],[-0.306,10.961],[0.306,10.961],[0.739,11.394]],"mode":"front","fill":"#18202f"},{"t":"region","pts":[[0.739,14.706],[0.306,15.139],[-0.306,15.139],[-0.739,14.706],[-0.739,14.094],[-0.306,13.661],[0.306,13.661],[0.739,14.094]],"mode":"front","fill":"#18202f"},{"t":"region","pts":[[5.0,4.0],[8.8,4.0],[8.8,4.5],[5.0,4.5]],"mode":"front","fill":"#18202f"},{"t":"region","pts":[[5.4,4.0],[6.9,4.0],[6.0,2.3]],"mode":"front","fill":"#f4f6f8"},{"t":"region","pts":[[6.4,4.0],[8.2,4.0],[7.6,2.5]],"mode":"front","fill":"#f4f6f8"}]},{"id":"tuxedo","slot":"outfit","scale":1,"bounds":[-8.42,-1.5,8.42,11.62],"regions":true,"parts":[{"t":"region","pts":[[-20,7.0],[-15,3.2],[-10,1.0],[-5,-0.2],[5,-0.2],[10,1.0],[15,3.2],[20,7.0],[60,60.0],[-60,60.0]],"mode":"wrap","fill":"#22232b"},{"t":"region","pts":[[8.0,1.2],[60,1.2],[60,60],[11.5,60]],"mode":"front","fill":"#05070d","opacity":0.22,"only":"2d"},{"t":"region","pts":[[-60,0.0],[-9.5,0.8],[-12.5,60],[-60,60]],"mode":"front","fill":"#ffffff","opacity":0.06,"only":"2d"},{"t":"region","pts":[[-4.4,-0.4],[4.4,-0.4],[0,9.8]],"mode":"front","fill":"#f4f6f8"},{"t":"region","pts":[[-4.4,-0.4],[4.4,-0.4],[3.4,1.3],[-3.4,1.3]],"mode":"front","fill":"#05070d","opacity":0.2,"only":"2d"},{"t":"region","pts":[[-1.85,3.0],[-1.5,3.0],[-1.5,7.6],[-1.85,7.6]],"mode":"front","fill":"#dfe4ea"},{"t":"region","pts":[[1.5,3.0],[1.85,3.0],[1.85,7.6],[1.5,7.6]],"mode":"front","fill":"#dfe4ea"},{"t":"region","pts":[[0.462,3.791],[0.191,4.062],[-0.191,4.062],[-0.462,3.791],[-0.462,3.409],[-0.191,3.138],[0.191,3.138],[0.462,3.409]],"mode":"front","fill":"#101014"},{"t":"region","pts":[[0.462,5.991],[0.191,6.262],[-0.191,6.262],[-0.462,5.991],[-0.462,5.609],[-0.191,5.338],[0.191,5.338],[0.462,5.609]],"mode":"front","fill":"#101014"},{"t":"region","pts":[[0.416,8.172],[0.172,8.416],[-0.172,8.416],[-0.416,8.172],[-0.416,7.828],[-0.172,7.584],[0.172,7.584],[0.416,7.828]],"mode":"front","fill":"#101014"},{"t":"region","pts":[[-4.6,-0.4],[0,9.8],[-1.3,11.4],[-6.9,3.4],[-8.2,0.2]],"mode":"front","fill":"#3a3c48","gloss":true},{"t":"region","pts":[[8.2,0.2],[6.9,3.4],[1.3,11.4],[0,9.8],[4.6,-0.4]],"mode":"front","fill":"#3a3c48","gloss":true},{"t":"tube","pts":[[-8.2,0.2,0.3],[-6.9,3.4,0.3],[-1.3,11.4,0.3]],"w":0.45,"smooth":false,"fill":"#ffffff","opacity":0.16,"only":"2d"},{"t":"tube","pts":[[8.2,0.2,0.3],[6.9,3.4,0.3],[1.3,11.4,0.3]],"w":0.45,"smooth":false,"fill":"#ffffff","opacity":0.1,"only":"2d"},{"t":"poly","pts":[[0,-0.1],[3.6,-1.5],[4.1,0.9],[3.6,2.7],[0,1.3],[-3.6,2.7],[-4.1,0.9],[-3.6,-1.5]],"z":0.9,"d":1.0,"smooth":false,"fill":"#22232b"},{"t":"sphere","c":[0,0.6,1.4],"r":[1.1,1.3,0.7],"fill":"#26272f"},{"t":"region","pts":[[5.0,4.0],[8.8,4.0],[8.8,4.5],[5.0,4.5]],"mode":"front","fill":"#0d0d10"},{"t":"region","pts":[[5.4,4.0],[6.9,4.0],[6.0,2.3]],"mode":"front","fill":"#f4f6f8"},{"t":"region","pts":[[6.4,4.0],[8.2,4.0],[7.6,2.5]],"mode":"front","fill":"#f4f6f8"}]},{"id":"lab_coat","slot":"outfit","scale":1,"bounds":[-9.03,-0.4,9.03,9.42],"regions":true,"parts":[{"t":"region","pts":[[-20,7.0],[-15,3.2],[-10,1.0],[-5,-0.2],[5,-0.2],[10,1.0],[15,3.2],[20,7.0],[60,60.0],[-60,60.0]],"mode":"wrap","fill":"#f2f4f7"},{"t":"region","pts":[[8.0,1.2],[60,1.2],[60,60],[11.5,60]],"mode":"front","fill":"#05070d","opacity":0.08,"only":"2d"},{"t":"region","pts":[[-4.0,-0.4],[4.0,-0.4],[0,7.6]],"mode":"front","fill":"#a9c8ef"},{"t":"region","pts":[[-4.0,-0.4],[4.0,-0.4],[3.0,1.3],[-3.0,1.3]],"mode":"front","fill":"#05070d","opacity":0.2,"only":"2d"},{"t":"region","pts":[[-0.9,1.8],[0.9,1.8],[1.8,6.6],[0,8.4],[-1.8,6.6]],"mode":"front","fill":"#0f766e"},{"t":"poly","pts":[[-1.4,-0.4],[1.4,-0.4],[0.9,1.9],[-0.9,1.9]],"z":0.9,"d":0.8,"smooth":false,"fill":"#0f766e"},{"t":"region","pts":[[-4.6,-0.4],[0,7.6],[-1.3,9.2],[-7.5,3.4],[-8.8,0.2]],"mode":"front","fill":"#dde2e9"},{"t":"region","pts":[[8.8,0.2],[7.5,3.4],[1.3,9.2],[0,7.6],[4.6,-0.4]],"mode":"front","fill":"#dde2e9"},{"t":"tube","pts":[[-8.8,0.2,0.3],[-7.5,3.4,0.3],[-1.3,9.2,0.3]],"w":0.45,"smooth":false,"fill":"#ffffff","opacity":0.16,"only":"2d"},{"t":"tube","pts":[[8.8,0.2,0.3],[7.5,3.4,0.3],[1.3,9.2,0.3]],"w":0.45,"smooth":false,"fill":"#ffffff","opacity":0.1,"only":"2d"},{"t":"region","pts":[[-0.2,9.2],[0.25,9.2],[0.25,40],[-0.2,40]],"mode":"front","fill":"#dde2e9"},{"t":"region","pts":[[5.6,1.8],[6.3,1.8],[6.3,4.6],[5.6,4.6]],"mode":"front","fill":"#2f6fe0"},{"t":"region","pts":[[6.9,2.3],[7.6,2.3],[7.6,4.6],[6.9,4.6]],"mode":"front","fill":"#e0483e"},{"t":"region","pts":[[4.6,3.8],[8.8,3.8],[8.8,7.6],[4.6,7.6]],"mode":"front","fill":"#dde2e9"},{"t":"region","pts":[[-8.8,4.4],[-5.0,4.4],[-5.0,8.8],[-8.8,8.8]],"mode":"front","fill":"#ffffff"},{"t":"region","pts":[[-8.8,4.4],[-5.0,4.4],[-5.0,5.5],[-8.8,5.5]],"mode":"front","fill":"#0f766e"},{"t":"region","pts":[[-8.2,6.4],[-5.6,6.4],[-5.6,6.8],[-8.2,6.8]],"mode":"front","fill":"#c5ccd6"},{"t":"region","pts":[[-8.2,7.4],[-6.4,7.4],[-6.4,7.8],[-8.2,7.8]],"mode":"front","fill":"#c5ccd6"}]},{"id":"hoodie","slot":"outfit","scale":1,"bounds":[-2.55,1.85,8.47,7.7],"regions":true,"parts":[{"t":"rim","w":1.9,"fill":"#4a5160","maxY":4.0},{"t":"rim","w":0.75,"fill":"#3a404c","maxY":4.0,"only":"2d"},{"t":"region","pts":[[-20,7.8],[-15,4.0],[-10,1.8],[-5,0.6],[5,0.6],[10,1.8],[15,4.0],[20,7.8],[60,60.8],[-60,60.8]],"mode":"wrap","fill":"#4a5160"},{"t":"region","pts":[[8.0,2.0],[60,2.0],[60,60.8],[11.5,60.8]],"mode":"front","fill":"#05070d","opacity":0.18,"only":"2d"},{"t":"region","pts":[[-5.2,0.8],[5.2,0.8],[4.0,2.7],[0,3.3],[-4.0,2.7]],"mode":"front","fill":"#3a404c"},{"t":"region","pts":[[-6.4,7.6],[6.4,7.6],[7.8,13.0],[-7.8,13.0]],"mode":"front","fill":"#3a404c"},{"t":"tube","pts":[[2.2,2.2,0.7],[1.9,6.6,0.7]],"w":0.7,"smooth":false,"fill":"#e5e7eb"},{"t":"sphere","c":[1.9,7.0,0.8],"r":[0.45,0.7,0.45],"fill":"#9ca3af"},{"t":"tube","pts":[[-2.2,2.2,0.7],[-1.9,6.6,0.7]],"w":0.7,"smooth":false,"fill":"#e5e7eb"},{"t":"sphere","c":[-1.9,7.0,0.8],"r":[0.45,0.7,0.45],"fill":"#9ca3af"},{"t":"tube","pts":[[5.2,2.6,0.5],[4.2,3.5,0.5],[5.2,4.4,0.5]],"w":0.55,"smooth":false,"fill":"#34d399"},{"t":"tube","pts":[[6.6,2.4,0.5],[5.8,4.6,0.5]],"w":0.55,"smooth":false,"fill":"#34d399"},{"t":"tube","pts":[[7.2,2.6,0.5],[8.2,3.5,0.5],[7.2,4.4,0.5]],"w":0.55,"smooth":false,"fill":"#34d399"}]},{"id":"crown","slot":"head","scale":1.15,"bounds":[-10.3,-12.23,10.3,2.6],"regions":false,"parts":[{"t":"sphere","c":[0,0.9,0],"r":[8.8,1.7,0.1],"fill":"#05070d","opacity":0.22,"only":"2d"},{"t":"dome","c":[0,-1.6,0],"r":[7.2,6.0,7.2],"fill":"#a61e36"},{"t":"cyl","c":[0,-1.8,0],"r":[8.0,8.5],"h":4.4,"dz":1.0,"fill":"#f2c14e","metal":true},{"t":"cyl","c":[0,0.25,0],"r":[8.15,8.15],"h":0.9,"dz":1.0,"fill":"#c8922a","metal":true},{"t":"cyl","c":[0,-3.75,0],"r":[8.55,8.55],"h":0.7,"dz":1.0,"fill":"#c8922a","metal":true},{"t":"cyl","c":[4.82,-6.5,6.634],"r":[2.5,0],"h":5.6,"dz":1.0,"fill":"#f2c14e","metal":true},{"t":"sphere","c":[4.82,-9.7,6.634],"r":[1.05,1.05,1.05],"fill":"#ffe08a","metal":true},{"t":"cyl","c":[7.799,-6.5,-2.534],"r":[2.5,0],"h":5.6,"dz":1.0,"fill":"#f2c14e","metal":true},{"t":"sphere","c":[7.799,-9.7,-2.534],"r":[1.05,1.05,1.05],"fill":"#ffe08a","metal":true},{"t":"cyl","c":[0.0,-6.5,-8.2],"r":[2.5,0],"h":5.6,"dz":1.0,"fill":"#f2c14e","metal":true},{"t":"sphere","c":[0.0,-9.7,-8.2],"r":[1.05,1.05,1.05],"fill":"#ffe08a","metal":true},{"t":"cyl","c":[-7.799,-6.5,-2.534],"r":[2.5,0],"h":5.6,"dz":1.0,"fill":"#f2c14e","metal":true},{"t":"sphere","c":[-7.799,-9.7,-2.534],"r":[1.05,1.05,1.05],"fill":"#ffe08a","metal":true},{"t":"cyl","c":[-4.82,-6.5,6.634],"r":[2.5,0],"h":5.6,"dz":1.0,"fill":"#f2c14e","metal":true},{"t":"sphere","c":[-4.82,-9.7,6.634],"r":[1.05,1.05,1.05],"fill":"#ffe08a","metal":true},{"t":"sphere","c":[0,-1.9,8.6],"r":[1.7,1.7,0.8],"fill":"#d7263d","gloss":true},{"t":"sphere","c":[-6.317,-1.9,5.688],"r":[1.1,1.1,0.6],"fill":"#2f6fe0"},{"t":"sphere","c":[6.317,-1.9,5.688],"r":[1.1,1.1,0.6],"fill":"#2f6fe0"},{"t":"sphere","c":[-0.55,-2.5,9.5],"r":[0.5,0.4,0.1],"fill":"#ffffff","opacity":0.85,"only":"2d"},{"t":"sphere","c":[0,-7.8,0],"r":[1.25,1.25,1.25],"fill":"#f2c14e","metal":true},{"t":"tube","pts":[[0,-8.8,0],[0,-11.8,0]],"w":0.85,"smooth":false,"fill":"#f2c14e","metal":true},{"t":"tube","pts":[[-1.1,-10.7,0],[1.1,-10.7,0]],"w":0.85,"smooth":false,"fill":"#f2c14e","metal":true},{"t":"box","c":[-3.2,-2.9,8.9],"s":[4.2,0.6,0.1],"round":0.3,"fill":"#ffe39b","only":"2d"}]},{"id":"top_hat","slot":"head","scale":1.12,"bounds":[-13.82,-13.84,13.63,3.79],"regions":false,"parts":[{"t":"sphere","c":[0.105,1.795,0],"r":[10.8,1.7,0.1],"fill":"#05070d","opacity":0.24,"only":"2d","rot":-6.0},{"t":"cyl","c":[-0.052,0.303,0],"r":[12.4,12.4],"h":1.4,"dz":1.0,"fill":"#1e1f26","rot":-6.0},{"t":"sphere","c":[-12.227,1.18,0],"r":[1.6,1.2,4.2],"fill":"#1e1f26","only":"2d","rot":-6.0},{"t":"sphere","c":[12.039,-1.37,0],"r":[1.6,1.2,4.2],"fill":"#1e1f26","only":"2d","rot":-6.0},{"t":"cyl","c":[-0.794,-6.758,0],"r":[7.4,7.8],"h":12.6,"dz":1.0,"fill":"#272832","rot":-6.0},{"t":"cyl","c":[-0.261,-1.686,0],"r":[7.5,7.55],"h":2.8,"dz":1.0,"fill":"#b3243b","gloss":true,"rot":-6.0},{"t":"box","c":[-5.275,-7.293,7.9],"s":[1.3,9.6,0.1],"round":0.6,"fill":"#3b3d4a","only":"2d","rot":-6.0}]},{"id":"cap","slot":"head","scale":1.15,"bounds":[-11.6,-7.8,11.6,6.1],"regions":false,"parts":[{"t":"sphere","c":[0,3.0,0],"r":[9.4,1.6,0.1],"fill":"#05070d","opacity":0.18,"only":"2d"},{"t":"dome","c":[0,1.8,0],"r":[9.4,8.4,9.4],"fill":"#2f6fe0"},{"t":"tube","pts":[[0,-6.2,0],[0,1.4,0]],"w":0.45,"smooth":false,"fill":"#2556b8","only":"2d"},{"t":"tube","pts":[[-4.8,-5.6,0],[-6.2,1.6,0]],"w":0.45,"smooth":true,"fill":"#2556b8","only":"2d"},{"t":"tube","pts":[[4.8,-5.6,0],[6.2,1.6,0]],"w":0.45,"smooth":true,"fill":"#2556b8","only":"2d"},{"t":"sphere","c":[0,-6.6,0],"r":[1.2,1.2,1.2],"fill":"#2556b8"},{"t":"poly","pts":[[0.0,-3.4],[0.529,-2.128],[1.902,-2.018],[0.856,-1.122],[1.176,0.218],[0.0,-0.5],[-1.176,0.218],[-0.856,-1.122],[-1.902,-2.018],[-0.529,-2.128]],"z":8.7,"d":0.4,"smooth":false,"fill":"#ffffff"},{"t":"sphere","c":[0,4.7,7.5],"r":[10.4,1.4,0.1],"fill":"#05070d","opacity":0.2,"only":"2d"},{"t":"sphere","c":[0,2.4,7.6],"r":[11.6,1.9,7.4],"fill":"#1f4aa0"},{"t":"box","c":[0,1.6,8.9],"s":[14,0.5,0.1],"round":0.25,"fill":"#3a6fd0","only":"2d"}]},{"id":"headphones","slot":"head","scale":1,"bounds":[-15.7,-9.8,15.7,12.6],"regions":false,"parts":[{"t":"tube","pts":[[-12.8,5.6,0],[-12.0,-1.8,0],[-6.8,-7.2,0],[0,-8.6,0],[6.8,-7.2,0],[12.0,-1.8,0],[12.8,5.6,0]],"w":2.4,"smooth":true,"fill":"#2b2d34"},{"t":"tube","pts":[[-5.4,-6.4,0.9],[0,-7.6,0.9],[5.4,-6.4,0.9]],"w":1.6,"smooth":true,"fill":"#454956"},{"t":"sphere","c":[11.4,7.4,0],"r":[1.4,4.6,4.2],"fill":"#f97316"},{"t":"sphere","c":[13.1,7.4,0],"r":[2.6,5.2,4.8],"fill":"#2b2d34"},{"t":"box","c":[14.0,7.4,0],"s":[1.2,4.4,3.2],"round":0.5,"fill":"#3d404a"},{"t":"sphere","c":[-11.4,7.4,0],"r":[1.4,4.6,4.2],"fill":"#f97316"},{"t":"sphere","c":[-13.1,7.4,0],"r":[2.6,5.2,4.8],"fill":"#2b2d34"},{"t":"box","c":[-14.0,7.4,0],"s":[1.2,4.4,3.2],"round":0.5,"fill":"#3d404a"}]},{"id":"sunglasses","slot":"face","scale":1,"bounds":[-11.05,-3.35,11.05,2.9],"regions":false,"parts":[{"t":"poly","pts":[[-8.6,-2.7],[-1.4,-2.7],[-1.6,1.2],[-3.0,2.9],[-7.0,2.9],[-8.4,1.2]],"z":0.9,"d":1.0,"smooth":false,"fill":"#14151a","gloss":true},{"t":"poly","pts":[[8.4,1.2],[7.0,2.9],[3.0,2.9],[1.6,1.2],[1.4,-2.7],[8.6,-2.7]],"z":0.9,"d":1.0,"smooth":false,"fill":"#14151a","gloss":true},{"t":"tube","pts":[[-9.2,-2.7,1.2],[9.2,-2.7,1.2]],"w":1.3,"smooth":false,"fill":"#14151a","gloss":true},{"t":"tube","pts":[[-1.5,-1.4,1.1],[0,-2.0,1.1],[1.5,-1.4,1.1]],"w":0.9,"smooth":true,"fill":"#14151a","gloss":true},{"t":"tube","pts":[[-9.0,-2.4,0.8],[-10.6,-2.2,0]],"w":0.9,"smooth":false,"fill":"#14151a","gloss":true},{"t":"tube","pts":[[9.0,-2.4,0.8],[10.6,-2.2,0]],"w":0.9,"smooth":false,"fill":"#14151a","gloss":true},{"t":"tube","pts":[[-7.0,-1.4,1.6],[-5.6,0.9,1.6]],"w":0.7,"smooth":false,"fill":"#5b5f6e","only":"2d"},{"t":"tube","pts":[[-5.4,-1.6,1.6],[-4.8,-0.6,1.6]],"w":0.5,"smooth":false,"fill":"#5b5f6e","only":"2d"},{"t":"tube","pts":[[2.2,-1.4,1.6],[3.6,0.9,1.6]],"w":0.7,"smooth":false,"fill":"#5b5f6e","only":"2d"}]},{"id":"cigar","slot":"mouth","scale":1,"bounds":[-1.02,-8.0,14.88,5.2],"regions":false,"parts":[{"t":"tube","pts":[[0.4,0,0.8],[9.6,2.2,1.4]],"w":2.8,"smooth":false,"fill":"#7b4a28"},{"t":"tube","pts":[[0.4,0,0.82],[1.5,0.27,0.86]],"w":2.85,"smooth":false,"fill":"#5a3519"},{"t":"tube","pts":[[2.6,0.52,0.9],[3.8,0.82,0.95]],"w":3.0,"smooth":false,"fill":"#f2c14e","metal":true},{"t":"tube","pts":[[3.0,0.62,0.92],[3.4,0.72,0.94]],"w":3.05,"smooth":false,"fill":"#b3243b"},{"t":"tube","pts":[[9.6,2.2,1.4],[10.9,2.5,1.45]],"w":2.75,"smooth":false,"fill":"#a3a3a3"},{"t":"tube","pts":[[10.9,2.5,1.45],[11.3,2.6,1.47]],"w":2.55,"smooth":false,"fill":"#ff6a1a","glow":true},{"t":"sphere","c":[11.2,2.6,1.3],"r":[2.6,2.6,0.1],"fill":"#ff8a3d","opacity":0.28,"only":"2d"},{"t":"tube","pts":[[11.8,1.3,1.5],[13.4,-1.4,1.6],[11.9,-4.4,1.7],[13.8,-7.6,1.8]],"w":0.8,"smooth":true,"fill":"#d6d8de"},{"t":"tube","pts":[[12.8,-0.6,1.5],[14.6,-2.4,1.6],[14.0,-4.8,1.7]],"w":0.55,"smooth":true,"fill":"#d6d8de"}]}]}diff --git a/jarvis/ui/web/frontend/src/components/society/companion/accessories.ts b/jarvis/ui/web/frontend/src/components/society/companion/accessories.tsindex ac3866f8e6..1979ae43fd 100644--- a/jarvis/ui/web/frontend/src/components/society/companion/accessories.ts+++ b/jarvis/ui/web/frontend/src/components/society/companion/accessories.ts@@ -18,7 +18,13 @@ export type AccessoryChoice = Partial<Record<AccessorySlot, string>>;type Vec2 = [number, number];type Vec3 = [number, number, number];/** "2d" parts are flat-only shading; "3d" parts exist only as meshes. */-interface PartBase { fill: string; glow?: boolean; rot?: number; only?: "2d" | "3d" }+interface PartBase {+ fill: string; glow?: boolean; rot?: number; only?: "2d" | "3d";+ /** Flat shading: a translucent shadow or highlight. */+ opacity?: number;+ /** 3D finish: polished metal or a glossy surface. */+ metal?: boolean; gloss?: boolean;+}export type AccessoryPart = PartBase & (| { t: "sphere" | "dome"; c: Vec3; r: Vec3 }| { t: "box"; c: Vec3; s: Vec3; round: number }diff --git a/jarvis/ui/web/frontend/src/components/society/companion/agentLooks.ts b/jarvis/ui/web/frontend/src/components/society/companion/agentLooks.tsnew file mode 100644index 0000000000..5ac7bbd4f6--- /dev/null+++ b/jarvis/ui/web/frontend/src/components/society/companion/agentLooks.ts@@ -0,0 +1,41 @@+/**+ * Which wearable looks an agent has unlocked. The rulebook's LOOK_UNLOCKS+ * arrive with the progression snapshot; the agent's level from its subject.+ * Unknown data never locks anything: an unreachable level system leaves+ * every look open, and a look an agent already wears always stays wearable.+ */+import { useQuery } from "@tanstack/react-query";+import { agentSubject, fetchProgression } from "../progression/progressionApi";++export interface AgentLooks {+ level: number;+ /** look id -> agent level it opens at; null while unknown (nothing locked). */+ unlocks: Readonly<Record<string, number>> | null;+}++export function lookOpen(looks: AgentLooks, id: string): boolean {+ const at = looks.unlocks?.[id];+ return at === undefined || looks.level >= at;+}++/** The next locked look and its level, lowest first; undefined once all are open. */+export function nextLook(looks: AgentLooks): { id: string; level: number } | undefined {+ if (!looks.unlocks) return undefined;+ return Object.entries(looks.unlocks)+ .filter(([, at]) => at > looks.level)+ .sort((a, b) => a[1] - b[1])+ .map(([id, level]) => ({ id, level }))[0];+}++export function useAgentLooks(agentId: string | undefined): AgentLooks {+ const snapshot = useQuery({+ queryKey: ["progression", "looks"],+ enabled: !!agentId,+ staleTime: 60_000,+ retry: false,+ queryFn: () => fetchProgression(),+ });+ if (!agentId || !snapshot.data || Object.keys(snapshot.data.looks).length === 0) return { level: 1, unlocks: null };+ const subject = snapshot.data.subjects.find((row) => row.subjectId === agentSubject(agentId));+ return { level: subject?.level ?? 1, unlocks: snapshot.data.looks };+}diff --git a/jarvis/ui/web/frontend/src/components/society/office/OfficeStage.tsx b/jarvis/ui/web/frontend/src/components/society/office/OfficeStage.tsxindex cfb1fd08ec..245970ca85 100644--- a/jarvis/ui/web/frontend/src/components/society/office/OfficeStage.tsx+++ b/jarvis/ui/web/frontend/src/components/society/office/OfficeStage.tsx@@ -508,7 +508,7 @@ export function OfficeStage({ onOpenLedger, onSelectAgent, onCreateAgent, onOpen<OfficeFullMap open={mapOpen} onOpen={() => setMapOpen(true)} onClose={() => setMapOpen(false)}layout={layout} agents={agents} selectedId={selection?.kind === "agent" ? selection.id : null} />{!compact && showHintBar && <p className="office-hud office-help" data-office-ui>{t("society.office.help")}</p>}- <LevelToasts names={agentNames} />+ <LevelToasts names={agentNames} agents={jarvisAgents} /><LevelHallScreen agents={jarvisAgents} playerName={playerName} petName={petName} playerLook={playerToyLook} /><LevelUpBanner playerName={playerName} petName={petName} />{creating && (diff --git a/jarvis/ui/web/frontend/src/components/society/progression/LevelHud.tsx b/jarvis/ui/web/frontend/src/components/society/progression/LevelHud.tsxindex 73ae42243d..709d85820f 100644--- a/jarvis/ui/web/frontend/src/components/society/progression/LevelHud.tsx+++ b/jarvis/ui/web/frontend/src/components/society/progression/LevelHud.tsx@@ -11,6 +11,16 @@ import { RANK_INFO, rankAt, rankOf, type RankId, type SubjectKind } from "./leveimport { RankInsignia } from "./insignia/RankInsignia";import { PERSON_SUBJECT, petSubject } from "./progressionApi";import { useProgression, type Celebration } from "./progressionStore";+import { AgentSymbol } from "../AgentSymbol";+import { resolveCompanion, type CompanionAppearance } from "../companion/appearance";+import type { SocietyAgent } from "../data";+import { accessoryItem, type AccessoryChoice } from "../companion/accessories";++/** The accessory choice that puts one look on, in its own slot. */+function lookSlot(id: string): AccessoryChoice {+ const item = accessoryItem(id);+ return item ? { [item.slot]: id } : {};+}const TOAST_MS = 6500;@@ -109,31 +119,51 @@ export function LevelHud({ playerName, petName, compact }: { playerName: string;}/** An agent's level-up: a quiet card in the corner, gone on its own. */-export function LevelToasts({ names }: { names: ReadonlyMap<string, string> }) {+export function LevelToasts({ names, agents = [] }: { names: ReadonlyMap<string, string>; agents?: readonly SocietyAgent[] }) {const t = useT();const toasts = useProgression((s) => s.toasts);const dismiss = useProgression((s) => s.dismissToast);useEffect(() => {if (toasts.length === 0) return;- const timers = toasts.map((toast) => setTimeout(() => dismiss(toast.id), TOAST_MS));+ // A new look gets a moment longer: it is the part worth looking at.+ const timers = toasts.map((toast) => setTimeout(() => dismiss(toast.id), TOAST_MS + (toast.looks?.length ? 3000 : 0)));return () => timers.forEach(clearTimeout);}, [toasts, dismiss]);if (toasts.length === 0) return null;return (<div className="level-toasts" role="status" aria-live="polite" data-office-ui>- {toasts.map((toast) => <LevelToast key={toast.id} toast={toast} name={names.get(toast.subjectId.slice("agent:".length)) ?? toast.subjectId.slice("agent:".length)}- onClose={() => dismiss(toast.id)} label={t} />)}+ {toasts.map((toast) => {+ const agentId = toast.subjectId.slice("agent:".length);+ const agent = agents.find((a) => a.agentId === agentId);+ return <LevelToast key={toast.id} toast={toast} name={names.get(agentId) ?? agentId}+ look={resolveCompanion(agentId, agent?.figure?.companion)} onClose={() => dismiss(toast.id)} label={t} />;+ })}</div>);}-function LevelToast({ toast, name, onClose, label }: { toast: Celebration; name: string; onClose: () => void; label: (key: string) => string }) {+function LevelToast({ toast, name, look, onClose, label }: { toast: Celebration; name: string; look: CompanionAppearance; onClose: () => void; label: (key: string) => string }) {+ const looks = toast.looks ?? [];return (<button type="button" className="level-toast" onClick={onClose}><LevelChip kind="agent" level={toast.level} /><span><strong>{label("society.level.agent_up").replace("{0}", name).replace("{1}", String(toast.level))}</strong><em>{toast.away ? label("society.level.while_away") : label(`society.level.title.${rankOf(toast.title)}`)}</em>+ {looks.length > 0 && (+ <span className="level-toast-looks" data-testid="level-toast-looks">+ {/* The symbol shows the agent already wearing its new look. */}+ {looks.map((id) => {+ return (+ <span key={id} className="level-toast-look">+ <AgentSymbol shape={look.shape} color={look.color} eyes={look.eyes} size={30}+ accessories={{ ...look.accessories, ...lookSlot(id) }} />+ <span>{label("society.level.new_look").replace("{0}", label(`society.companion.items.${id}`))}</span>+ </span>+ );+ })}+ </span>+ )}</span></button>);diff --git a/jarvis/ui/web/frontend/src/components/society/progression/hall/LevelHallScreen.tsx b/jarvis/ui/web/frontend/src/components/society/progression/hall/LevelHallScreen.tsxindex a637d1b2ca..c4eb1aed44 100644--- a/jarvis/ui/web/frontend/src/components/society/progression/hall/LevelHallScreen.tsx+++ b/jarvis/ui/web/frontend/src/components/society/progression/hall/LevelHallScreen.tsx@@ -36,8 +36,41 @@ import { LevelHero, RewardCard, RuleRow, Section, TabIcon, type HallWho } from "import { RanksTab } from "./RanksTab";import { RewardsTab } from "./RewardsTab";import { StudioTab } from "./StudioTab";+import { AgentSymbol } from "../../AgentSymbol";+import { accessoryItem } from "../../companion/accessories";+import { resolveCompanion } from "../../companion/appearance";import "./hall.css";+const NO_LOOKS: Readonly<Record<string, number>> = {};++/** Every agent look in unlock order, each worn by a sample agent symbol. */+function LooksRoad({ looks }: { looks: Readonly<Record<string, number>> }) {+ const t = useT();+ const road = Object.entries(looks).sort((a, b) => a[1] - b[1] || a[0].localeCompare(b[0]));+ if (road.length === 0) return null;+ return (+ <ol className="hall-looks" data-testid="hall-looks">+ {road.map(([id, level], i) => {+ const item = accessoryItem(id);+ if (!item) return null;+ return (+ <li key={id}>+ <AgentSymbol shape={(["circle", "squircle", "hexagon", "drop", "pill"] as const)[i % 5]!}+ color={["#7ab6ef", "#bba7ed", "#79c7c4", "#f2a65a", "#ed91aa"][i % 5]!} size={58} accessories={{ [item.slot]: id }} />+ <strong>{t(`society.companion.items.${id}`)}</strong>+ <em>{level <= 1 ? t("society.hall.look_start") : t("society.level.lv").replace("{0}", String(level))}</em>+ </li>+ );+ })}+ </ol>+ );+}++/** The next look an agent at `level` opens, lowest first. */+function nextLookFor(looks: Readonly<Record<string, number>>, level: number): [string, number] | undefined {+ return Object.entries(looks).filter(([, at]) => at > level).sort((a, b) => a[1] - b[1])[0];+}+const LEAD_AGENT_ID = "jarvis";// Stable fallbacks: a selector that returns a fresh [] or {} re-renders forever.const NO_RULES: XpRuleRow[] = [];@@ -156,26 +189,47 @@ function GuideTab({ who, petName }: { who: HallWho; petName: string }) {function TeamTab({ agents }: { agents: readonly SocietyAgent[] }) {const t = useT();const subjects = useProgression((s) => s.subjects);+ const looks = useProgression((s) => s.snapshot?.looks ?? NO_LOOKS);const rows = useMemo(() => agents.filter((a) => a.agentId !== LEAD_AGENT_ID && a.tier !== "lead").map((a) => ({ agent: a, subject: subjects[agentSubject(a.agentId)] })).sort((a, b) => (b.subject?.xp ?? 0) - (a.subject?.xp ?? 0) || a.agent.name.localeCompare(b.agent.name)), [agents, subjects]);return (<div className="hall-team">+ {Object.keys(looks).length > 0 && (+ <Section title={t("society.hall.looks_title")}>+ <p className="hall-lead">{t("society.hall.looks_body")}</p>+ <LooksRoad looks={looks} />+ </Section>+ )}<Section title={t("society.level.team")}>{rows.length === 0 ? <p className="hall-empty">{t("society.level.no_agents")}</p> : (<ol className="hall-ranking">- {rows.map(({ agent, subject }, i) => (+ {rows.map(({ agent, subject }, i) => {+ const level = subject?.level ?? 1;+ const look = resolveCompanion(agent.agentId, agent.figure?.companion);+ const next = nextLookFor(looks, level);+ const nextItem = next ? accessoryItem(next[0]) : undefined;+ return (<li key={agent.agentId} data-podium={i < 3 ? i + 1 : undefined}><span className="hall-rank">{i + 1}</span>- <LevelChip kind="agent" level={subject?.level ?? 1} />+ <AgentSymbol shape={look.shape} color={look.color} eyes={look.eyes} accessories={look.accessories} size={34} />+ <LevelChip kind="agent" level={level} /><span className="hall-rank-body"><span><strong>{agent.name}</strong> <em>{t(`society.level.title.${rankOf(subject?.title)}`)}</em></span><XpBar fraction={levelFraction(subject)} kind="agent" label={t("society.level.agent_xp_label").replace("{0}", agent.name)} />+ {next && nextItem && (+ <span className="hall-rank-next">+ <AgentSymbol shape={look.shape} color={look.color} eyes={look.eyes} size={22}+ accessories={{ ...look.accessories, [nextItem.slot]: next[0] }} />+ {t("society.hall.next_look").replace("{0}", t(`society.companion.items.${next[0]}`)).replace("{1}", String(next[1]))}+ </span>+ )}</span><span className="hall-rank-xp">{t("society.level.total").replace("{0}", String(subject?.xp ?? 0))}</span></li>- ))}+ );+ })}</ol>)}</Section>diff --git a/jarvis/ui/web/frontend/src/components/society/progression/hall/hall.css b/jarvis/ui/web/frontend/src/components/society/progression/hall/hall.cssindex 41cae574cb..e67d587f95 100644--- a/jarvis/ui/web/frontend/src/components/society/progression/hall/hall.css+++ b/jarvis/ui/web/frontend/src/components/society/progression/hall/hall.css@@ -238,6 +238,11 @@.hall-ranking li[data-podium="1"] .hall-rank { color:var(--h-gold-ink); }.hall-rank-body { display:flex; flex-direction:column; gap:6px; flex:1; min-width:0; }.hall-rank-body em { font-style:normal; font-size:11.5px; color:var(--h-muted); }+.hall-rank-next { display:flex; align-items:center; gap:6px; font-size:11.5px; color:var(--h-muted); }+.hall-looks { display:grid; grid-template-columns:repeat(auto-fill, minmax(104px, 1fr)); gap:8px; margin:0; padding:0; list-style:none; }+.hall-looks li { display:flex; flex-direction:column; align-items:center; gap:4px; padding:12px 8px 10px; border:1px solid var(--h-line); border-radius:12px; background:var(--h-panel); text-align:center; }+.hall-looks strong { font-size:12px; line-height:1.2; }+.hall-looks em { font-style:normal; font-size:11px; color:var(--h-muted); }.hall-rank-xp { font-size:12px; color:var(--h-muted); font-variant-numeric:tabular-nums; white-space:nowrap; }@media (max-width:860px) {diff --git a/jarvis/ui/web/frontend/src/components/society/progression/hall/hall.test.tsx b/jarvis/ui/web/frontend/src/components/society/progression/hall/hall.test.tsxindex e5843cc62a..d50fd23ae6 100644--- a/jarvis/ui/web/frontend/src/components/society/progression/hall/hall.test.tsx+++ b/jarvis/ui/web/frontend/src/components/society/progression/hall/hall.test.tsx@@ -29,7 +29,7 @@ function snapshot(): ProgressionSnapshot {return {subjects: [{ subjectId: "person", kind: "person", xp: 130, level: 3, xpIntoLevel: 25, xpForNext: 90, title: "private" }],petId: "gigi", recent: [], latestSeq: 0, maxLevel: 50, levelXp: CURVE, rules: RULES, rewards: REWARDS,- titles: { person: BANDS, agent: BANDS, pet: BANDS },+ titles: { person: BANDS, agent: BANDS, pet: BANDS }, looks: { cap: 1, suit: 4, crown: 10 },};}diff --git a/jarvis/ui/web/frontend/src/components/society/progression/progression.css b/jarvis/ui/web/frontend/src/components/society/progression/progression.cssindex d98cbdee3c..7c8ed4a9e4 100644--- a/jarvis/ui/web/frontend/src/components/society/progression/progression.css+++ b/jarvis/ui/web/frontend/src/components/society/progression/progression.css@@ -55,6 +55,8 @@.level-toast span { display:flex; flex-direction:column; gap:1px; min-width:0; }.level-toast strong { font-size:12px; }.level-toast em { font-style:normal; font-size:11px; color:hsl(var(--muted-foreground)); }+.level-toast .level-toast-looks { margin-top:5px; gap:4px; }+.level-toast .level-toast-look { flex-direction:row; align-items:center; gap:7px; font-size:11.5px; font-weight:600; color:hsl(var(--primary)); }@keyframes level-toast-in { from { opacity:0; transform:translateX(-24px) scale(.96); } to { opacity:1; transform:none; } }/* ---------- world plate and "+XP" (in-world, one look) ---------- */diff --git a/jarvis/ui/web/frontend/src/components/society/progression/progression.test.ts b/jarvis/ui/web/frontend/src/components/society/progression/progression.test.tsindex 4f22337d0c..0ecafd89fe 100644--- a/jarvis/ui/web/frontend/src/components/society/progression/progression.test.ts+++ b/jarvis/ui/web/frontend/src/components/society/progression/progression.test.ts@@ -1,7 +1,7 @@import { beforeEach, describe, expect, it } from "vitest";import { equippedFor, levelFraction, progressFor, unlockedFor } from "./cosmetics";import { parseAwardEvent, parseSnapshot, type ProgressionSnapshot, type RewardRow } from "./progressionApi";-import { awayCelebrations, useProgression } from "./progressionStore";+import { awayCelebrations, looksBetween, useProgression } from "./progressionStore";import { RANK_INFO, rankAt, REWARD_IDS, slotOf, TITLE_IDS } from "./levelCatalog";import { rankArt } from "./insignia/rankArt";import { rackRows, ribbonsFor } from "./regalia/decorations3d";@@ -24,7 +24,7 @@ const CURVE = [0, 40, 105, 195, 310, 450];function snapshot(overrides: Partial<ProgressionSnapshot> = {}): ProgressionSnapshot {return {subjects: [], petId: "ember", recent: [], latestSeq: 0, maxLevel: 50, levelXp: CURVE, rules: [], rewards: REWARDS,- titles: { person: BANDS, agent: BANDS, pet: BANDS },+ titles: { person: BANDS, agent: BANDS, pet: BANDS }, looks: { cap: 1, suit: 4, crown: 10 },...overrides,};}@@ -235,3 +235,19 @@ describe("level catalog", () => {for (const id of REWARD_IDS) expect(["uniform", "headwear", "decoration"]).toContain(slotOf(id));});});++describe("agent looks as level rewards", () => {+ it("names the looks an agent climb opened, lowest first", () => {+ expect(looksBetween({ cap: 1, suit: 4, crown: 10 }, 1, 4)).toEqual(["suit"]);+ expect(looksBetween({ cap: 1, suit: 4, crown: 10 }, 3, 12)).toEqual(["suit", "crown"]);+ expect(looksBetween({ cap: 1 }, 1, 1)).toEqual([]);+ });+ it("tells an away agent level-up with the looks it opened", () => {+ const snap = snapshot({+ subjects: [{ subjectId: "agent:scout", kind: "agent", xp: 200, level: 4, xpIntoLevel: 5, xpForNext: 115, title: "private_first_class" }],+ recent: [{ seq: 7, subjectId: "agent:scout", kind: "agent", source: "task_done", xp: 40, levelBefore: 3, levelAfter: 4, tsMs: 1 }],+ });+ const [party] = awayCelebrations(snap, 1);+ expect(party?.looks).toEqual(["suit"]);+ });+});diff --git a/jarvis/ui/web/frontend/src/components/society/progression/progressionApi.ts b/jarvis/ui/web/frontend/src/components/society/progression/progressionApi.tsindex 426742d72b..71b7460681 100644--- a/jarvis/ui/web/frontend/src/components/society/progression/progressionApi.ts+++ b/jarvis/ui/web/frontend/src/components/society/progression/progressionApi.ts@@ -52,6 +52,8 @@ export interface ProgressionSnapshot {rules: XpRuleRow[];rewards: RewardRow[];titles: Record<SubjectKind, { level: number; title: string }[]>;+ /** The agent level each wearable look opens at (companion accessory ids). */+ looks: Record<string, number>;}/** One `ProgressionAwarded` from the bus, as the WebSocket delivers it. */@@ -66,6 +68,8 @@ export interface AwardEvent {previousLevel: number;title: string;unlocked: RewardId[];+ /** Agent looks this level-up opened. */+ unlockedLooks?: string[];}type Raw = Record<string, unknown>;@@ -100,6 +104,7 @@ export function parseSnapshot(body: Raw): ProgressionSnapshot {return { rewardId: row.reward_id as RewardId, slot: str(row.slot) as Slot, levels: { person: at("person"), agent: at("agent"), pet: at("pet") } };}),titles: { person: bands("person"), agent: bands("agent"), pet: bands("pet") },+ looks: Object.fromEntries(list(body.looks).filter((row) => str(row.look_id)).map((row) => [str(row.look_id), num(row.agent, 1)])),};}@@ -112,6 +117,7 @@ export function parseAwardEvent(payload: unknown): AwardEvent | null {seq: num(p.seq), subjectId, kind: kindOf(p.subject_kind), source: str(p.xp_source), xp: num(p.xp),totalXp: num(p.total_xp), level: num(p.level, 1), previousLevel: num(p.previous_level, 1), title: str(p.title),unlocked: Array.isArray(p.unlocked) ? p.unlocked.filter(isRewardId) : [],+ unlockedLooks: Array.isArray(p.unlocked_looks) ? p.unlocked_looks.filter((v): v is string => typeof v === "string") : [],};}diff --git a/jarvis/ui/web/frontend/src/components/society/progression/progressionStore.ts b/jarvis/ui/web/frontend/src/components/society/progression/progressionStore.tsindex a3e4846fb4..61e92a6d01 100644--- a/jarvis/ui/web/frontend/src/components/society/progression/progressionStore.ts+++ b/jarvis/ui/web/frontend/src/components/society/progression/progressionStore.ts@@ -20,6 +20,8 @@ export interface Celebration {previousLevel: number;title: string;unlocked: RewardId[];+ /** Agent looks the level-up opened (agents only). */+ looks: string[];/** Earned while the Verse was closed: told, not staged in the world. */away: boolean;}@@ -77,13 +79,18 @@ interface ProgressionState {let nextId = 1;-export function celebrationOf(award: Pick<AwardEvent, "subjectId" | "kind" | "level" | "previousLevel" | "title" | "unlocked">, away = false): Celebration {+export function celebrationOf(award: Pick<AwardEvent, "subjectId" | "kind" | "level" | "previousLevel" | "title" | "unlocked"> & { unlockedLooks?: string[] }, away = false): Celebration {return {id: nextId++, subjectId: award.subjectId, kind: award.kind, level: award.level, previousLevel: award.previousLevel,- title: award.title, unlocked: award.unlocked, away,+ title: award.title, unlocked: award.unlocked, looks: award.unlockedLooks ?? [], away,};}+/** Agent looks opened by a climb from `before` to `after`, in the order they unlock. */+export function looksBetween(looks: Readonly<Record<string, number>>, before: number, after: number): string[] {+ return Object.entries(looks ?? {}).filter(([, at]) => at > before && at <= after).sort((a, b) => a[1] - b[1]).map(([id]) => id);+}+export const useProgression = create<ProgressionState>((set, get) => ({snapshot: null,subjects: {},@@ -197,9 +204,11 @@ export function awayCelebrations(snapshot: ProgressionSnapshot, seenSeq: numberconst unlocked = snapshot.rewards.filter((r) => { const at = r.levels[row.kind]; return at !== null && at > (prior?.previousLevel ?? row.levelBefore) && at <= row.levelAfter; }).map((r) => r.rewardId);+ const from = prior?.previousLevel ?? row.levelBefore;latest.set(row.subjectId, celebrationOf({- subjectId: row.subjectId, kind: row.kind, level: row.levelAfter, previousLevel: prior?.previousLevel ?? row.levelBefore,+ subjectId: row.subjectId, kind: row.kind, level: row.levelAfter, previousLevel: from,title: subject?.title ?? "", unlocked,+ unlockedLooks: row.kind === "agent" ? looksBetween(snapshot.looks, from, row.levelAfter) : [],}, true));}return [...latest.values()];diff --git a/jarvis/ui/web/frontend/src/i18n/locales/society/de.json b/jarvis/ui/web/frontend/src/i18n/locales/society/de.jsonindex 97b93242ad..5939f92e70 100644--- a/jarvis/ui/web/frontend/src/i18n/locales/society/de.json+++ b/jarvis/ui/web/frontend/src/i18n/locales/society/de.json@@ -810,6 +810,9 @@"cloud": "Wolke","drop": "Tropfen"},+ "next_look": "Level {0} · nächster Look: {1} ab Level {2}",+ "all_looks_open": "Alle Looks sind freigeschaltet.",+ "unlocks_at": "ab Level {0}","accessories": "Accessoires","randomize": "Überrasch mich","remove_all": "Alle entfernen",@@ -1385,6 +1388,7 @@"next_promotion": "Nächste Beförderung: {0} ab Level {1}","no_insignia": "Noch kein Abzeichen","pet_up": "{0} ist aufgestiegen",+ "new_look": "Neuer Look: {0}","agent_up": "{0} hat Level {1} erreicht","while_away": "Während du weg warst","banner_aria": "{0} hat Level {1} erreicht. Zum Schließen klicken.",@@ -1562,6 +1566,10 @@"other": "Weitere"},"limits_note": "Grenzen halten es fair: Manche Aktionen zählen nur ein paar Mal am Tag.",+ "looks_title": "Agenten-Looks",+ "looks_body": "Agenten schalten mit jedem Level neue Looks frei. Anziehen kannst du sie im Profil unter „Aussehen“; ein getragener Look bleibt immer erhalten.",+ "look_start": "Von Anfang an",+ "next_look": "Nächster Look: {0} ab Level {1}","team_note": "Agenten steigen durch erledigte Arbeit auf und tragen immer ihre besten Teile."}}diff --git a/jarvis/ui/web/frontend/src/i18n/locales/society/en.json b/jarvis/ui/web/frontend/src/i18n/locales/society/en.jsonindex 1cde54c0e1..e75b5aba27 100644--- a/jarvis/ui/web/frontend/src/i18n/locales/society/en.json+++ b/jarvis/ui/web/frontend/src/i18n/locales/society/en.json@@ -810,6 +810,9 @@"cloud": "Cloud","drop": "Drop"},+ "next_look": "Level {0} · next look: {1} at level {2}",+ "all_looks_open": "Every look is unlocked.",+ "unlocks_at": "unlocks at level {0}","accessories": "Accessories","randomize": "Surprise me","remove_all": "Remove all",@@ -1385,6 +1388,7 @@"next_promotion": "Next promotion: {0} at level {1}","no_insignia": "No insignia yet","pet_up": "{0} levelled up",+ "new_look": "New look: {0}","agent_up": "{0} reached level {1}","while_away": "While you were away","banner_aria": "{0} reached level {1}. Click to close.",@@ -1562,6 +1566,10 @@"other": "More"},"limits_note": "Limits keep it fair: some actions only count a few times a day.",+ "looks_title": "Agent looks",+ "looks_body": "Agents unlock new looks as they level up. Dress them in the profile's Appearance tab; a look an agent wears is never taken away.",+ "look_start": "From the start",+ "next_look": "Next look: {0} at level {1}","team_note": "Agents level up from finished work and always wear their best unlocks."}}diff --git a/jarvis/ui/web/frontend/src/i18n/locales/society/es.json b/jarvis/ui/web/frontend/src/i18n/locales/society/es.jsonindex 898497cfb7..debd9ff957 100644--- a/jarvis/ui/web/frontend/src/i18n/locales/society/es.json+++ b/jarvis/ui/web/frontend/src/i18n/locales/society/es.json@@ -810,6 +810,9 @@"cloud": "Nube","drop": "Gota"},+ "next_look": "Nivel {0} · próximo look: {1} en el nivel {2}",+ "all_looks_open": "Todos los looks están desbloqueados.",+ "unlocks_at": "desde el nivel {0}","accessories": "Accesorios","randomize": "Sorpréndeme","remove_all": "Quitar todo",@@ -1385,6 +1388,7 @@"next_promotion": "Próximo ascenso: {0} en el nivel {1}","no_insignia": "Aún sin insignia","pet_up": "{0} ha subido de nivel",+ "new_look": "Nuevo look: {0}","agent_up": "{0} ha llegado al nivel {1}","while_away": "Mientras no estabas","banner_aria": "{0} ha llegado al nivel {1}. Haz clic para cerrar.",@@ -1562,6 +1566,10 @@"other": "Más"},"limits_note": "Los límites lo mantienen justo: algunas acciones solo cuentan unas pocas veces al día.",+ "looks_title": "Looks de los agentes",+ "looks_body": "Los agentes desbloquean nuevos looks al subir de nivel. Vístelos en la pestaña Apariencia del perfil; un look que ya llevan nunca se pierde.",+ "look_start": "Desde el inicio",+ "next_look": "Próximo look: {0} en el nivel {1}","team_note": "Los agentes suben de nivel con el trabajo terminado y siempre llevan sus mejores piezas."}}diff --git a/jarvis/ui/web/progression_routes.py b/jarvis/ui/web/progression_routes.pyindex 69073340d8..bcfd70ce97 100644--- a/jarvis/ui/web/progression_routes.py+++ b/jarvis/ui/web/progression_routes.py@@ -16,6 +16,7 @@ from fastapi import APIRouter, HTTPException, Query, Requestfrom pydantic import BaseModel, Fieldfrom jarvis.progression.rules import (+ LOOK_UNLOCKS,MAX_LEVEL,REWARDS,RULES,@@ -57,6 +58,7 @@ def _rulebook() -> dict[str, Any]:}for r in REWARDS],+ "looks": [{"look_id": look, "agent": level} for look, level in LOOK_UNLOCKS.items()],"titles": {kind: [{"level": lvl, "title": t} for lvl, t in bands]for kind, bands in TITLES.items()diff --git a/scripts/art/build_companion_accessories.py b/scripts/art/build_companion_accessories.pyindex 811ab7b0c0..7483969cbd 100644--- a/scripts/art/build_companion_accessories.py+++ b/scripts/art/build_companion_accessories.py@@ -307,8 +307,9 @@ BUILDERS = {MATERIALS = {}-def material(fill, glow):- key = f"acc:{fill}{':glow' if glow else ''}"+def material(fill, glow, metal=False, gloss=False):+ finish = ":metal" if metal else ":gloss" if gloss else ""+ key = f"acc:{fill}{':glow' if glow else ''}{finish}"if key in MATERIALS:return MATERIALS[key]mat = bpy.data.materials.new(key)@@ -320,6 +321,11 @@ def material(fill, glow):color = (*[c / 12.92 if c <= 0.04045 else ((c + 0.055) / 1.055) ** 2.4 for c in srgb], 1)bsdf.inputs["Base Color"].default_value = colorbsdf.inputs["Roughness"].default_value = 0.55 if fill.startswith("#f") else 0.7+ if metal:+ bsdf.inputs["Metallic"].default_value = 1.0+ bsdf.inputs["Roughness"].default_value = 0.32+ elif gloss:+ bsdf.inputs["Roughness"].default_value = 0.22if glow:bsdf.inputs["Emission Color"].default_value = colorbsdf.inputs["Emission Strength"].default_value = 1.4@@ -455,7 +461,12 @@ def main():count = 0for item in catalog["items"]:pieces = [- (BUILDERS[p["t"]](p), material(p["fill"], p.get("glow", False)))+ (+ BUILDERS[p["t"]](p),+ material(+ p["fill"], p.get("glow", False), p.get("metal", False), p.get("gloss", False)+ ),+ )for p in item["parts"]if p["t"] not in ("region", "rim") and p.get("only") != "2d"]diff --git a/scripts/art/companion_accessories.py b/scripts/art/companion_accessories.pyindex a8d1892ea2..a859a9a580 100644--- a/scripts/art/companion_accessories.py+++ b/scripts/art/companion_accessories.py@@ -202,10 +202,29 @@ def torso(top=0.0):return [(x, y + top) for x, y in pts]+def shade(pts, opacity=0.16):+ """Flat-only fabric shadow on the clothing (light falls from the upper left)."""+ return region(pts, "#05070d", mode="front", opacity=opacity, only="2d")+++def chin_shadow(width):+ """The head's soft shadow across the top of the shirt."""+ return front([(-width, -0.4), (width, -0.4), (width - 1.0, 1.3), (-width + 1.0, 1.3)], "#05070d",+ opacity=0.2, only="2d")+++SIDE_SHADE = [(8.0, 1.2), (60, 1.2), (60, 60), (11.5, 60)]+SHOULDER_LIGHT = [(-60, 0.0), (-9.5, 0.8), (-12.5, 60), (-60, 60)]++def lapels(v_tip, fill, reach=8.2):"""Two lapels along a shirt V that opens at the neckline and closes at v_tip."""left = [(-4.6, -0.4), (0, v_tip), (-1.3, v_tip + 1.6), (-reach + 1.3, 3.4), (-reach, 0.2)]- return [front(left, fill), front([(-x, y) for x, y in reversed(left)], fill)]+ edge = [(-reach, 0.2, 0.3), (-reach + 1.3, 3.4, 0.3), (-1.3, v_tip + 1.6, 0.3)]+ # A fine light edge along each lapel's outer roll (flat only).+ shine = [tube(edge, 0.45, "#ffffff", opacity=0.16, only="2d"),+ tube([(-x, y, z) for x, y, z in edge], 0.45, "#ffffff", opacity=0.1, only="2d")]+ return [front(left, fill), front([(-x, y) for x, y in reversed(left)], fill), *shine]def outfit_items():@@ -218,8 +237,8 @@ def outfit_items():front([(6.4, 4.0), (8.2, 4.0), (7.6, 2.5)], SHIRT)]items["suit"] = [- jacket(NAVY),- front([(-4.6, -0.4), (4.6, -0.4), (0, 8.8)], SHIRT), *collar,+ jacket(NAVY), shade(SIDE_SHADE), region(SHOULDER_LIGHT, "#ffffff", mode="front", opacity=0.05, only="2d"),+ front([(-4.6, -0.4), (4.6, -0.4), (0, 8.8)], SHIRT), *collar, chin_shadow(4.6),front([(-1.0, 2.0), (1.0, 2.0), (2.1, 8.2), (0, 10.4), (-2.1, 8.2)], BURGUNDY),front([(-1.1, 3.9), (1.2, 3.1), (1.32, 3.75), (-1.2, 4.55)], BURGUNDY_DARK),front([(-1.6, 6.7), (1.75, 5.6), (1.85, 6.3), (-1.65, 7.4)], BURGUNDY_DARK),@@ -229,8 +248,8 @@ def outfit_items():*pocket_square,]items["tuxedo"] = [- jacket(TUX),- front([(-4.4, -0.4), (4.4, -0.4), (0, 9.8)], SHIRT),+ jacket(TUX), shade(SIDE_SHADE, 0.22), region(SHOULDER_LIGHT, "#ffffff", mode="front", opacity=0.06, only="2d"),+ front([(-4.4, -0.4), (4.4, -0.4), (0, 9.8)], SHIRT), chin_shadow(4.4),front(rect(-1.85, 3.0, -1.5, 7.6), SHIRT_SHADE), front(rect(1.5, 3.0, 1.85, 7.6), SHIRT_SHADE),front(octagon(0, 3.6, 0.5), INK), front(octagon(0, 5.8, 0.5), INK), front(octagon(0, 8.0, 0.45), INK),*lapels(9.8, TUX_SATIN),@@ -241,8 +260,8 @@ def outfit_items():front([(5.4, 4.0), (6.9, 4.0), (6.0, 2.3)], SHIRT), front([(6.4, 4.0), (8.2, 4.0), (7.6, 2.5)], SHIRT),]items["lab_coat"] = [- jacket(COAT),- front([(-4.0, -0.4), (4.0, -0.4), (0, 7.6)], COAT_BLUE),+ jacket(COAT), shade(SIDE_SHADE, 0.08),+ front([(-4.0, -0.4), (4.0, -0.4), (0, 7.6)], COAT_BLUE), chin_shadow(4.0),front([(-0.9, 1.8), (0.9, 1.8), (1.8, 6.6), (0, 8.4), (-1.8, 6.6)], TEAL),poly([(-1.4, -0.4), (1.4, -0.4), (0.9, 1.9), (-0.9, 1.9)], TEAL, z=0.9, d=0.8),*lapels(7.6, COAT_SHADE, reach=8.8),@@ -259,7 +278,8 @@ def outfit_items():sphere((-0.3, 7.0, 0.8), [0.45, 0.7, 0.45], "#9ca3af")], 2.2)items["hoodie"] = [rim(1.9, HOODIE, maxY=4.0),- region(torso(0.8), HOODIE),+ rim(0.75, HOODIE_DARK, maxY=4.0, only="2d"),+ region(torso(0.8), HOODIE), shade([(x, y + 0.8) for x, y in SIDE_SHADE], 0.18),front([(-5.2, 0.8), (5.2, 0.8), (4.0, 2.7), (0, 3.3), (-4.0, 2.7)], HOODIE_DARK),front([(-6.4, 7.6), (6.4, 7.6), (7.8, 13.0), (-7.8, 13.0)], HOODIE_DARK),*strings, *code,@@ -277,29 +297,34 @@ def head_items():sapphires = [sphere((8.5 * math.sin(math.radians(a)), -1.9, 8.5 * math.cos(math.radians(a))), [1.1, 1.1, 0.6],"#2f6fe0") for a in (-48, 48)]items["crown"] = [+ sphere((0, 0.9, 0), [8.8, 1.7, 0.1], "#05070d", opacity=0.22, only="2d"),dome((0, -1.6, 0), [7.2, 6.0, 7.2], "#a61e36"),cyl((0, -1.8, 0), 8.0, 8.5, 4.4, GOLD),cyl((0, 0.25, 0), 8.15, 8.15, 0.9, GOLD_DARK), cyl((0, -3.75, 0), 8.55, 8.55, 0.7, GOLD_DARK),*spikes,- sphere((0, -1.9, 8.6), [1.7, 1.7, 0.8], "#d7263d"), *sapphires,+ sphere((0, -1.9, 8.6), [1.7, 1.7, 0.8], "#d7263d", gloss=True), *sapphires,+ sphere((-0.55, -2.5, 9.5), [0.5, 0.4, 0.1], "#ffffff", opacity=0.85, only="2d"),sphere((0, -7.8, 0), 1.25, GOLD),tube([(0, -8.8, 0), (0, -11.8, 0)], 0.85, GOLD), tube([(-1.1, -10.7, 0), (1.1, -10.7, 0)], 0.85, GOLD),box((-3.2, -2.9, 8.9), (4.2, 0.6, 0.1), "#ffe39b", 0.3, only="2d"),]items["top_hat"] = place([+ sphere((0, 1.0, 0), [10.8, 1.7, 0.1], "#05070d", opacity=0.24, only="2d"),cyl((0, -0.5, 0), 12.4, 12.4, 1.4, "#1e1f26"),sphere((-12.2, -0.9, 0), [1.6, 1.2, 4.2], "#1e1f26", only="2d"),sphere((12.2, -0.9, 0), [1.6, 1.2, 4.2], "#1e1f26", only="2d"),cyl((0, -7.6, 0), 7.4, 7.8, 12.6, "#272832"),- cyl((0, -2.5, 0), 7.5, 7.55, 2.8, BURGUNDY),+ cyl((0, -2.5, 0), 7.5, 7.55, 2.8, BURGUNDY, gloss=True),box((-4.4, -8.6, 7.9), (1.3, 9.6, 0.1), "#3b3d4a", 0.6, only="2d"),], dy=0.8, rot=-6)seams = [tube([(0, -6.2, 0), (0, 1.4, 0)], 0.45, "#2556b8", only="2d"),*both_sides([tube([(-0.2, -5.6, 0), (-1.6, 1.6, 0)], 0.45, "#2556b8", smooth=True, only="2d")], -4.6)]items["cap"] = [+ sphere((0, 3.0, 0), [9.4, 1.6, 0.1], "#05070d", opacity=0.18, only="2d"),dome((0, 1.8, 0), [9.4, 8.4, 9.4], "#2f6fe0"), *seams,sphere((0, -6.6, 0), 1.2, "#2556b8"),poly(star(0, -1.4, 2.0, 0.9), "#ffffff", z=8.7, d=0.4),+ sphere((0, 4.7, 7.5), [10.4, 1.4, 0.1], "#05070d", opacity=0.2, only="2d"),sphere((0, 2.4, 7.6), [11.6, 1.9, 7.4], "#1f4aa0"),box((0, 1.6, 8.9), (14, 0.5, 0.1), "#3a6fd0", 0.25, only="2d"),]@@ -336,6 +361,7 @@ def mouth_items():tube([(3.0, 0.62, 0.92), (3.4, 0.72, 0.94)], 3.05, BURGUNDY),tube([(9.6, 2.2, 1.4), (10.9, 2.5, 1.45)], 2.75, "#a3a3a3"),tube([(10.9, 2.5, 1.45), (11.3, 2.6, 1.47)], 2.55, "#ff6a1a", glow=True),+ sphere((11.2, 2.6, 1.3), [2.6, 2.6, 0.1], "#ff8a3d", opacity=0.28, only="2d"),tube([(11.8, 1.3, 1.5), (13.4, -1.4, 1.6), (11.9, -4.4, 1.7), (13.8, -7.6, 1.8)], 0.8, "#d6d8de", smooth=True),tube([(12.8, -0.6, 1.5), (14.6, -2.4, 1.6), (14.0, -4.8, 1.7)], 0.55, "#d6d8de", smooth=True),]}@@ -404,6 +430,13 @@ def main():"held": [*anchors["held"][:2], round(anchors["held"][2] * HELD_BOOST, 3)]},}groups = {"outfit": outfit_items(), "head": head_items(), "face": face_items(), "mouth": mouth_items()}+ for group in groups.values():+ for parts in group.values():+ for part in parts:+ if part["fill"] in (GOLD, GOLD_DARK, "#ffe08a"):+ part["metal"] = True+ if part["fill"] in ("#14151a", TUX_SATIN):+ part["gloss"] = Trueitems = []for slot, group in groups.items():for item_id, parts in group.items():diff --git a/tests/contract/test_agent_companion.py b/tests/contract/test_agent_companion.pyindex 7c3b327b8a..6c67e04940 100644--- a/tests/contract/test_agent_companion.py+++ b/tests/contract/test_agent_companion.py@@ -37,7 +37,8 @@ def test_accessory_slots_and_ids_match_the_frontend_catalog():ids = [item["id"] for item in catalog["items"]]assert len(ids) == len(set(ids))assert all(re.fullmatch(r"[a-z0-9_]{1,40}", item_id) for item_id in ids)- assert {item["slot"] for item in catalog["items"]} == set(catalog["slots"])+ # Slots may stay empty (the set is small and finished), but never name an unknown slot.+ assert {item["slot"] for item in catalog["items"]} <= set(catalog["slots"])def test_worn_accessories_survive_and_bare_looks_stay_unchanged():diff --git a/tests/unit/progression/test_frontend_parity.py b/tests/unit/progression/test_frontend_parity.pyindex 86bfcd1de7..f5515f77d3 100644--- a/tests/unit/progression/test_frontend_parity.py+++ b/tests/unit/progression/test_frontend_parity.py@@ -11,7 +11,15 @@ import jsonimport refrom pathlib import Path-from jarvis.progression.rules import REWARDS, RULES, SLOTS, SUBJECT_KINDS, TITLES, WORLD_ACTIONS+from jarvis.progression.rules import (+ LOOK_UNLOCKS,+ REWARDS,+ RULES,+ SLOTS,+ SUBJECT_KINDS,+ TITLES,+ WORLD_ACTIONS,+)_FRONTEND = Path(__file__).resolve().parents[3] / "jarvis/ui/web/frontend/src"_CATALOG = _FRONTEND / "components/society/progression/levelCatalog.ts"@@ -52,3 +60,10 @@ def test_every_id_has_a_label_in_every_language():assert set(level["slot"]) == set(SLOTS), langfor kind in SUBJECT_KINDS:assert f"rules_{kind}" in level, (lang, kind)+++def test_every_agent_look_is_a_real_accessory():+ catalog = json.loads(+ (_FRONTEND / "components/society/companion/accessories.json").read_text(encoding="utf-8")+ )+ assert set(LOOK_UNLOCKS) == {item["id"] for item in catalog["items"]}diff --git a/tests/unit/progression/test_rules.py b/tests/unit/progression/test_rules.pyindex 3a4dda6706..ac63cf95f2 100644--- a/tests/unit/progression/test_rules.py+++ b/tests/unit/progression/test_rules.py@@ -3,6 +3,7 @@from __future__ import annotationsfrom jarvis.progression.rules import (+ LOOK_UNLOCKS,MAX_LEVEL,RANKS,REWARDS,@@ -12,6 +13,7 @@ from jarvis.progression.rules import (TITLES,WORLD_ACTIONS,level_for_xp,+ looks_between,progress_for_xp,rewards_between,subject_kind,@@ -125,3 +127,11 @@ def test_subject_ids_name_their_kind():assert subject_kind("pet:ember") == "pet"assert subject_kind("pet:") is Noneassert subject_kind("robot:x") is None+++def test_agent_looks_start_open_and_climb_as_rewards():+ assert sum(1 for level in LOOK_UNLOCKS.values() if level == 1) >= 3+ assert max(LOOK_UNLOCKS.values()) <= 10+ assert looks_between(1, 1) == []+ assert looks_between(3, 4) == ["suit"]+ assert set(looks_between(1, 50)) == {k for k, v in LOOK_UNLOCKS.items() if v > 1}